@lovrabet/lovrabet-cli 2.2.3-beta.1 → 2.2.3-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cli.js +1 -1
- package/lib/commands/api-doc/index.js +1 -1
- package/lib/commands/app/cache.js +1 -1
- package/lib/commands/app/definitions.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
|
+
function a64_0x4106(_0xd8c8b3,_0x22c583){_0xd8c8b3=_0xd8c8b3-0x192;const _0x59392e=a64_0x5939();let _0x4106a1=_0x59392e[_0xd8c8b3];return _0x4106a1;}const a64_0x52491c=a64_0x4106;(function(_0xbf99c8,_0xf16675){const _0x597a77=a64_0x4106,_0x4716d7=_0xbf99c8();while(!![]){try{const _0x25d4dd=-parseInt(_0x597a77(0x1ad))/0x1+parseInt(_0x597a77(0x1a0))/0x2+parseInt(_0x597a77(0x199))/0x3+-parseInt(_0x597a77(0x1a6))/0x4+parseInt(_0x597a77(0x198))/0x5+-parseInt(_0x597a77(0x1a8))/0x6+-parseInt(_0x597a77(0x1a3))/0x7;if(_0x25d4dd===_0xf16675)break;else _0x4716d7['push'](_0x4716d7['shift']());}catch(_0x2834bc){_0x4716d7['push'](_0x4716d7['shift']());}}}(a64_0x5939,0xef03a));import{bindExternalUserAccount,USER_ACCOUNT_BIND_PATH}from'../../core/api-client.js';function a64_0x5939(){const _0x41df65=['Bound\x20current\x20user\x20to\x20external\x20provider\x20account.','--account-id\x20cannot\x20be\x20empty.','2280112hXuCUI','toLowerCase','541182ugnDnT','includes','user-account','Pass\x20one\x20of:\x20','join','1402616GiQXAo','account-id','str','bind','将当前\x20AccessKey\x20所属的平台用户绑定到指定协同生态外部账号;已有同\x20provider\x20绑定可能被替换。','provider','External\x20account\x20binding\x20was\x20not\x20confirmed.','The\x20current\x20binding\x20is\x20not\x20exposed\x20by\x20the\x20server;\x20before\x20is\x20unavailable.','Unsupported\x20provider:\x20','External\x20account\x20provider','3012370eWroYe','4128600bVqQoj','External\x20account\x20ID\x20for\x20the\x20selected\x20provider','validation','apiError','write','trim','dingtalk','3016808xZaYgN','POST','Bind\x20the\x20current\x20platform\x20user\x20to\x20an\x20external\x20provider\x20account','3116645XYzgBN'];a64_0x5939=function(){return _0x41df65;};return a64_0x5939();}import{CliErrors}from'../../errors.js';const CURRENT_BINDING_WARNING=a64_0x52491c(0x195),SUPPORTED_PROVIDERS=[a64_0x52491c(0x19f)];function readBindingInput(_0x4a98cd){const _0x539afc=a64_0x52491c,_0x2d0969=_0x4a98cd[_0x539afc(0x1af)](_0x539afc(0x193))[_0x539afc(0x19e)]()[_0x539afc(0x1a7)]();if(!SUPPORTED_PROVIDERS[_0x539afc(0x1a9)](_0x2d0969))throw CliErrors['validation'](_0x539afc(0x196)+(_0x2d0969||'(empty)')+'.',_0x539afc(0x1ab)+SUPPORTED_PROVIDERS[_0x539afc(0x1ac)](',\x20')+'.');const _0x4b2fd4=_0x4a98cd[_0x539afc(0x1af)](_0x539afc(0x1ae))[_0x539afc(0x19e)]();if(!_0x4b2fd4)throw CliErrors[_0x539afc(0x19b)](_0x539afc(0x1a5),'Pass\x20the\x20external\x20account\x20ID\x20for\x20the\x20selected\x20provider.');return{'provider':_0x2d0969,'accountId':_0x4b2fd4};}function buildBindingData(_0x38b8ea,_0x3b3c91,_0xbb21cb){const _0x504cb0=a64_0x52491c;return{'operation':_0x504cb0(0x1b0),'selector':{'provider':_0x38b8ea,'accountId':_0x3b3c91},'before':null,'after':{'provider':_0x38b8ea,'accountId':_0x3b3c91,'bound':!![]},'dryRun':_0xbb21cb,'warnings':[CURRENT_BINDING_WARNING]};}export const bindUserAccount={'service':a64_0x52491c(0x1aa),'command':a64_0x52491c(0x1b0),'description':a64_0x52491c(0x1a2),'risk':a64_0x52491c(0x19d),'confirmationDescription':a64_0x52491c(0x192),'requiresAuth':!![],'requiresAppCode':![],'flags':[{'name':'provider','type':'string','required':!![],'enum':[...SUPPORTED_PROVIDERS],'description':a64_0x52491c(0x197)},{'name':a64_0x52491c(0x1ae),'type':'string','required':!![],'description':a64_0x52491c(0x19a)}],async 'validate'(_0x4548d5){readBindingInput(_0x4548d5);},async 'dryRun'(_0x51703f){const _0xa137fe=a64_0x52491c,{provider:_0x562160,accountId:_0x531ff3}=readBindingInput(_0x51703f);return{...buildBindingData(_0x562160,_0x531ff3,!![]),'method':_0xa137fe(0x1a1),'url':USER_ACCOUNT_BIND_PATH,'body':{'provider':_0x562160,'accountId':_0x531ff3}};},async 'execute'(_0x22147f){const _0x31617a=a64_0x52491c,{provider:_0x34b073,accountId:_0x1dd1b1}=readBindingInput(_0x22147f),_0x24c13f=await bindExternalUserAccount(_0x34b073,_0x1dd1b1);if(_0x24c13f!==!![])throw CliErrors[_0x31617a(0x19c)](_0x31617a(0x194),'Retry\x20with\x20the\x20same\x20--provider\x20and\x20--account-id\x20only\x20after\x20checking\x20the\x20current\x20AccessKey\x20identity.');return{'ok':!![],'data':buildBindingData(_0x34b073,_0x1dd1b1,![]),'message':_0x31617a(0x1a4)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x300e42,_0x1c9e8a){const _0x51da51=a65_0x2da7,_0x1a19d8=_0x300e42();while(!![]){try{const _0xfb8d24=-parseInt(_0x51da51(0xf5))/0x1+-parseInt(_0x51da51(0xf8))/0x2+parseInt(_0x51da51(0xf3))/0x3*(parseInt(_0x51da51(0xf0))/0x4)+-parseInt(_0x51da51(0xf2))/0x5+parseInt(_0x51da51(0xf1))/0x6+parseInt(_0x51da51(0xf4))/0x7*(parseInt(_0x51da51(0xf6))/0x8)+-parseInt(_0x51da51(0xf9))/0x9*(-parseInt(_0x51da51(0xf7))/0xa);if(_0xfb8d24===_0x1c9e8a)break;else _0x1a19d8['push'](_0x1a19d8['shift']());}catch(_0x3ec10e){_0x1a19d8['push'](_0x1a19d8['shift']());}}}(a65_0x1b65,0xe3eeb));function a65_0x2da7(_0x2729cc,_0xacc112){_0x2729cc=_0x2729cc-0xf0;const _0x1b652f=a65_0x1b65();let _0x2da7ca=_0x1b652f[_0x2729cc];return _0x2da7ca;}function a65_0x1b65(){const _0xcf032a=['9ARqVSl','982864KLupRe','5757318MWvCiE','7253620qltLYS','15ixpYmQ','13391kyEyMB','35121dZbsJK','2640ItiUBb','13035530mAePtS','3407040ykQNPY'];a65_0x1b65=function(){return _0xcf032a;};return a65_0x1b65();}import{bindUserAccount}from'../../commands/user-account/bind.js';export const userAccountDefinitions=[bindUserAccount];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a66_0x39304f=a66_0x54ff;(function(_0x5308c8,_0x3e1715){const _0x386327=a66_0x54ff,_0x93fc2c=_0x5308c8();while(!![]){try{const _0x205ac7=-parseInt(_0x386327(0x21c))/0x1+-parseInt(_0x386327(0x221))/0x2*(parseInt(_0x386327(0x20d))/0x3)+parseInt(_0x386327(0x20f))/0x4*(-parseInt(_0x386327(0x223))/0x5)+parseInt(_0x386327(0x22a))/0x6+parseInt(_0x386327(0x214))/0x7*(parseInt(_0x386327(0x220))/0x8)+-parseInt(_0x386327(0x207))/0x9*(parseInt(_0x386327(0x205))/0xa)+parseInt(_0x386327(0x21e))/0xb;if(_0x205ac7===_0x3e1715)break;else _0x93fc2c['push'](_0x93fc2c['shift']());}catch(_0x225744){_0x93fc2c['push'](_0x93fc2c['shift']());}}}(a66_0x2799,0x5986e));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';function a66_0x2799(){const _0x492e1a=['use','\x0aEnv:\x20','apps','Resolving\x20--app\x20requires\x20accessKey.\x20Pass\x20--appcode\x20directly,\x20or\x20set\x20accessKey\x20before\x20running\x20','length','appcode','修改当前工作目录已有绑定的应用上下文','filter','Usage:\x20','\x0aAccessKey:\x20not\x20written','accessKey','App\x20\x22','Workspace\x20app\x20context\x20is\x20not\x20initialized.','26710ajQbnL','\x20--appcode\x20<code>\x20[--env\x20daily]','522tnEVVr','app','\x20--app\x20<name>\x20[--env\x20daily]\x20or\x20','为尚未绑定应用的当前工作目录初始化应用上下文','includes','write','3qPaFDs','Invalid\x20env\x20\x22','2702888BQCJKd','appName','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20pass\x20--appcode\x20directly.','init','map','2202067WaBkCu','authRequired','\x20workspace\x20use\x20--appcode\x20<code>`\x20to\x20change\x20it.','join','command','string','defaultApp','../../commands/app/remote-source.js','35078sMDcPI','workspace\x20','9914509buZtwW','App\x20name\x20to\x20bind\x20as\x20the\x20current\x20workspace\x20default','8jBOFpg','672908PssZJp','workspace','5aFiGHd','env','\x20workspace\x20init\x20--appcode\x20<code>`\x20first.','Use\x20`','Workspace\x20app\x20context\x20is\x20already\x20initialized.','validation','project','2117844YvqqwR','trim','将更新当前工作目录已有的应用绑定,并把所选应用设为该目录的默认应用;不会写入\x20AccessKey。','\x20workspace\x20use\x20--app\x20<name>`\x20or\x20`','Missing\x20workspace\x20app\x20selector.','Target\x20environment','\x22\x20not\x20found.','from','\x20workspace\x20','appCode','Pass\x20either\x20--app\x20<name>\x20or\x20--appcode\x20<code>,\x20not\x20both.'];a66_0x2799=function(){return _0x492e1a;};return a66_0x2799();}const WORKSPACE_USE_FLAGS=[{'name':a66_0x39304f(0x208),'type':a66_0x39304f(0x219),'description':a66_0x39304f(0x21f)},{'name':'appcode','type':a66_0x39304f(0x219),'description':'App\x20code\x20to\x20bind\x20directly'},{'name':a66_0x39304f(0x224),'type':'string','description':a66_0x39304f(0x22f),'enum':[...RUNTIME_ENV_VALUES]}];async function executeWorkspaceUse(_0x19e738,_0x5d2c97){const _0x30ca86=a66_0x39304f,_0xb97c84=_0x19e738['str']('app')[_0x30ca86(0x22b)](),_0x31f563=_0x19e738['str'](_0x30ca86(0x1fd))[_0x30ca86(0x22b)](),_0x2da401=_0x19e738['str'](_0x30ca86(0x224))[_0x30ca86(0x22b)](),_0x3da865=resolveWorkspaceEnv(_0x2da401||_0x19e738['envName']||DEFAULT_CONFIG_VALUES[_0x30ca86(0x224)]);if(!_0xb97c84&&!_0x31f563)throw CliErrors[_0x30ca86(0x228)](_0x30ca86(0x22e),_0x30ca86(0x200)+CLI_BIN_NAME+_0x30ca86(0x1f5)+_0x5d2c97+_0x30ca86(0x209)+CLI_BIN_NAME+_0x30ca86(0x1f5)+_0x5d2c97+_0x30ca86(0x206));if(_0xb97c84&&_0x31f563)throw CliErrors[_0x30ca86(0x228)]('Conflicting\x20workspace\x20app\x20selectors.',_0x30ca86(0x1f7));const _0xbfb409=resolveWriteConfigPath(_0x30ca86(0x229)),_0x1e641f=readConfigFile(_0xbfb409);assertWorkspaceCommandState(_0x5d2c97,_0x1e641f);const _0x3eb986=_0x31f563||await resolveRemoteAppCode({'command':_0x5d2c97,'appName':_0xb97c84,'env':_0x3da865,'accessKey':_0x19e738[_0x30ca86(0x202)]});return writeWorkspaceConfig({'command':_0x5d2c97,'appName':_0xb97c84,'appcode':_0x3eb986,'env':_0x3da865,'shouldWriteEnv':!!_0x2da401,'accessKey':_0x19e738[_0x30ca86(0x202)]},_0xbfb409,_0x1e641f),{'ok':!![],'data':{'configPath':_0xbfb409,'app':_0xb97c84||null,'appcode':_0x3eb986,'env':_0x2da401?_0x3da865:null,'accessKeyWritten':![],'command':_0x30ca86(0x21d)+_0x5d2c97},'message':buildWorkspaceMessage(_0xbfb409,_0xb97c84,_0x3eb986,_0x2da401?_0x3da865:undefined)};}async function resolveRemoteAppCode(_0x406732){const _0x15337e=a66_0x39304f;if(!_0x406732[_0x15337e(0x202)])throw CliErrors[_0x15337e(0x215)](_0x15337e(0x1fb)+CLI_BIN_NAME+_0x15337e(0x1f5)+_0x406732[_0x15337e(0x218)]+'.');const {setActiveAK:_0x522bff}=await import('../../core/api-client.js'),{getRemoteAppList:_0x2edc01}=await import(_0x15337e(0x21b));_0x522bff(_0x406732[_0x15337e(0x202)]);const _0x3be71b=await _0x2edc01({'env':_0x406732['env'],'accessKey':_0x406732[_0x15337e(0x202)],'noCache':![]}),_0x4acee0=findAppByName(_0x3be71b['items'],_0x406732[_0x15337e(0x210)]);if(_0x4acee0&&!isRuntimeAccessibleApp(_0x4acee0))throw runtimeInaccessibleAppError(_0x4acee0,'\x22'+_0x406732['appName']+'\x22');const _0xb21f38=_0x4acee0?.[_0x15337e(0x1f6)]?.[_0x15337e(0x22b)]();if(_0xb21f38)return _0xb21f38;const _0x496892=_0x3be71b['items'][_0x15337e(0x213)](_0x5ef78f=>_0x5ef78f[_0x15337e(0x210)])[_0x15337e(0x1ff)](Boolean),_0x3a54f3=_0x496892[_0x15337e(0x1fc)]?'Available\x20apps:\x20'+Array[_0x15337e(0x1f4)](new Set(_0x496892))[_0x15337e(0x217)](',\x20')+'.':'Run\x20`'+CLI_BIN_NAME+_0x15337e(0x211);throw CliErrors[_0x15337e(0x228)](_0x15337e(0x203)+_0x406732['appName']+_0x15337e(0x1f3),_0x3a54f3);}function writeWorkspaceConfig(_0x40b8b1,_0x55c6b1,_0x4fd8c5){const _0x21b84f=a66_0x39304f;_0x40b8b1['shouldWriteEnv']&&(_0x4fd8c5[_0x21b84f(0x224)]=_0x40b8b1[_0x21b84f(0x224)]);if(_0x40b8b1[_0x21b84f(0x210)]){const _0x19a8b1=isRecord(_0x4fd8c5[_0x21b84f(0x1fa)])?{..._0x4fd8c5['apps']}:{},_0x36f5ee=isRecord(_0x19a8b1[_0x40b8b1[_0x21b84f(0x210)]])?_0x19a8b1[_0x40b8b1['appName']]:{};return _0x19a8b1[_0x40b8b1[_0x21b84f(0x210)]]={..._0x36f5ee,'appcode':_0x40b8b1[_0x21b84f(0x1fd)]},_0x4fd8c5[_0x21b84f(0x1fa)]=_0x19a8b1,_0x4fd8c5[_0x21b84f(0x21a)]=_0x40b8b1[_0x21b84f(0x210)],delete _0x4fd8c5[_0x21b84f(0x1fd)],delete _0x4fd8c5[_0x21b84f(0x208)],writeAndReturn(_0x55c6b1,_0x4fd8c5);}return _0x4fd8c5[_0x21b84f(0x1fd)]=_0x40b8b1[_0x21b84f(0x1fd)],delete _0x4fd8c5[_0x21b84f(0x21a)],delete _0x4fd8c5['app'],writeAndReturn(_0x55c6b1,_0x4fd8c5);}function writeAndReturn(_0x21826d,_0x905d59){return writeConfigFile(_0x21826d,_0x905d59),_0x21826d;}function resolveWorkspaceEnv(_0x174d42){const _0x223a9d=a66_0x39304f;if(RUNTIME_ENV_VALUES[_0x223a9d(0x20b)](_0x174d42))return _0x174d42;throw CliErrors[_0x223a9d(0x228)](_0x223a9d(0x20e)+_0x174d42+'\x22.\x20Allowed:\x20'+RUNTIME_ENV_VALUES[_0x223a9d(0x217)](',\x20'));}function buildWorkspaceMessage(_0x10f918,_0x2a5ef8,_0x3a3bb8,_0x24df05){const _0x3ab77f=a66_0x39304f,_0x329905=_0x2a5ef8?_0x2a5ef8+'\x20('+_0x3a3bb8+')':_0x3a3bb8,_0x533838=_0x24df05?_0x3ab77f(0x1f9)+_0x24df05:'';return'Workspace\x20configured.\x0aConfig\x20file:\x20'+_0x10f918+'\x0aDefault\x20app:\x20'+_0x329905+_0x533838+_0x3ab77f(0x201);}function isRecord(_0x3308ba){return typeof _0x3308ba==='object'&&_0x3308ba!==null&&!Array['isArray'](_0x3308ba);}function hasWorkspaceAppBinding(_0x57206a){const _0x25314b=a66_0x39304f;if(typeof _0x57206a['appcode']===_0x25314b(0x219)&&_0x57206a['appcode']['trim']()[_0x25314b(0x1fc)]>0x0)return!![];if(typeof _0x57206a[_0x25314b(0x21a)]!==_0x25314b(0x219)||!_0x57206a[_0x25314b(0x21a)]['trim']())return![];if(!isRecord(_0x57206a[_0x25314b(0x1fa)]))return![];const _0x153b33=_0x57206a['apps'][_0x57206a['defaultApp']['trim']()];return isRecord(_0x153b33)&&typeof _0x153b33[_0x25314b(0x1fd)]==='string'&&_0x153b33[_0x25314b(0x1fd)]['trim']()['length']>0x0;}function assertWorkspaceCommandState(_0x37dc17,_0x56c164){const _0x3b6f09=a66_0x39304f,_0x46caf3=hasWorkspaceAppBinding(_0x56c164);if(_0x37dc17===_0x3b6f09(0x212)&&_0x46caf3)throw CliErrors['validation'](_0x3b6f09(0x227),_0x3b6f09(0x226)+CLI_BIN_NAME+_0x3b6f09(0x22d)+CLI_BIN_NAME+_0x3b6f09(0x216));if(_0x37dc17===_0x3b6f09(0x1f8)&&!_0x46caf3)throw CliErrors[_0x3b6f09(0x228)](_0x3b6f09(0x204),'Run\x20`'+CLI_BIN_NAME+'\x20workspace\x20init\x20--app\x20<name>`\x20or\x20`'+CLI_BIN_NAME+_0x3b6f09(0x225));}function a66_0x54ff(_0xb78dd6,_0xbcbe7b){_0xb78dd6=_0xb78dd6-0x1f3;const _0x279994=a66_0x2799();let _0x54ff88=_0x279994[_0xb78dd6];return _0x54ff88;}function makeWorkspaceCommand(_0x33ed8b){const _0x5438eb=a66_0x39304f;return{'service':_0x5438eb(0x222),'command':_0x33ed8b,'description':_0x33ed8b===_0x5438eb(0x212)?_0x5438eb(0x20a):_0x5438eb(0x1fe),'risk':_0x5438eb(0x20c),'confirmationDescription':_0x33ed8b===_0x5438eb(0x212)?'将在尚未绑定应用的当前工作目录写入\x20Lovrabet\x20项目配置,并把所选应用设为该目录的默认应用;不会写入\x20AccessKey。':_0x5438eb(0x22c),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':WORKSPACE_USE_FLAGS,async 'execute'(_0x87a7a8){return executeWorkspaceUse(_0x87a7a8,_0x33ed8b);}};}export const workspaceDefinitions=[makeWorkspaceCommand('init'),makeWorkspaceCommand(a66_0x39304f(0x1f8))];
|
package/lib/config/schema.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a67_0x28b2(_0x19d4ac,_0x49e657){_0x19d4ac=_0x19d4ac-0xc3;const _0xf91cd9=a67_0xf91c();let _0x28b22a=_0xf91cd9[_0x19d4ac];return _0x28b22a;}const a67_0xa3a096=a67_0x28b2;(function(_0x2e6931,_0x4b8c56){const _0xd2988b=a67_0x28b2,_0x3b1de8=_0x2e6931();while(!![]){try{const _0x299598=parseInt(_0xd2988b(0xe0))/0x1*(parseInt(_0xd2988b(0xc5))/0x2)+-parseInt(_0xd2988b(0xde))/0x3*(parseInt(_0xd2988b(0xdf))/0x4)+parseInt(_0xd2988b(0xda))/0x5*(parseInt(_0xd2988b(0xd8))/0x6)+parseInt(_0xd2988b(0xd0))/0x7+parseInt(_0xd2988b(0xd1))/0x8+parseInt(_0xd2988b(0xce))/0x9+-parseInt(_0xd2988b(0xdd))/0xa;if(_0x299598===_0x4b8c56)break;else _0x3b1de8['push'](_0x3b1de8['shift']());}catch(_0x5aa2a1){_0x3b1de8['push'](_0x3b1de8['shift']());}}}(a67_0xf91c,0x7eaa2));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../constant/env.js';function a67_0xf91c(){const _0xd09eae=['enumValues','legacyCompatOnly','join','Config\x20key.\x20Top-level:\x20','filter','6SwjRYm','Default\x20output\x20format','3664315EVMrPr','Access\x20key\x20(client-ak\x20auth)','has','27622230ZWSsKg','36831ZSjcPW','312VUUXvB','93mXyFQa','fromEntries','Override\x20SkillHub\x20domain','21872kovkBM','map','entries','env','Override\x20API\x20domain','Override\x20runtime\x20domain','locale',';\x20local\x20alias:\x20apps.<alias>.appcode','Locale','8773632DdZcAB','riskLevel','7034713pUAALT','4071432bGBXHQ','format'];a67_0xf91c=function(){return _0xd09eae;};return a67_0xf91c();}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_0xa3a096(0xc8)],'importable':!![]},'format':{'description':a67_0xa3a096(0xd9),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':OUTPUT_FORMAT_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a67_0xa3a096(0xd2)],'importable':!![]},'pageSize':{'description':'Default\x20page\x20size','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'apiDomain':{'description':a67_0xa3a096(0xc9),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'userDomain':{'description':'Override\x20user\x20domain','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'runtimeDomain':{'description':a67_0xa3a096(0xca),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'skillHubDomain':{'description':a67_0xa3a096(0xc4),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'accessKey':{'description':a67_0xa3a096(0xdb),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'riskLevel':{'description':'Risk\x20level','topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a67_0xa3a096(0xcf)],'importable':!![]},'locale':{'description':a67_0xa3a096(0xcd),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a67_0xa3a096(0xcb)],'importable':!![],'legacyCompatOnly':!![]}};export const TOP_LEVEL_CONFIG_KEYS=new Set(Object[a67_0xa3a096(0xc7)](CONFIG_FIELD_SCHEMAS)['filter'](([,_0x2f4017])=>_0x2f4017['cliSettableTopLevel'])[a67_0xa3a096(0xc6)](([_0x48825d])=>_0x48825d));export const CONFIG_ENUM_VALUES=Object[a67_0xa3a096(0xc3)](Object['entries'](CONFIG_FIELD_SCHEMAS)[a67_0xa3a096(0xd7)](([,_0x15eab5])=>_0x15eab5[a67_0xa3a096(0xd3)])['map'](([_0x530ea3,_0x55f4b3])=>[_0x530ea3,[..._0x55f4b3['enumValues']||[]]]));export const IMPORTABLE_RUNTIME_CONFIG_KEYS=Object[a67_0xa3a096(0xc7)](CONFIG_FIELD_SCHEMAS)['filter'](([,_0x39f78b])=>_0x39f78b['importable'])[a67_0xa3a096(0xc6)](([_0x59200d])=>_0x59200d);export function getConfigFieldSchema(_0x51c1ff){return CONFIG_FIELD_SCHEMAS[_0x51c1ff];}export function getConfigEnumValues(_0x3e8e8e){const _0x3a5e6a=a67_0xa3a096;return getConfigFieldSchema(_0x3e8e8e)?.[_0x3a5e6a(0xd3)];}export function getConfigDefaultValue(_0x44f1c7){return getConfigFieldSchema(_0x44f1c7)?.['defaultValue'];}export function isTopLevelConfigKey(_0x507a23){const _0x2679b9=a67_0xa3a096;return TOP_LEVEL_CONFIG_KEYS[_0x2679b9(0xdc)](_0x507a23);}export function isLegacyCompatConfigKey(_0x3aeec5){const _0x360f18=a67_0xa3a096;return getConfigFieldSchema(_0x3aeec5)?.[_0x360f18(0xd4)]===!![];}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function formatConfigKeyList(_0x5ba621){const _0xa5ba67=a67_0xa3a096;return[..._0x5ba621][_0xa5ba67(0xd5)](',\x20');}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x5c1a92=a67_0xa3a096;return _0x5c1a92(0xd6)+getTopLevelConfigKeySummary()+_0x5c1a92(0xcc);}export function buildAppProfileListFields(_0x4eb483){return{'env':_0x4eb483,'hasAccessKey':![],'format':null,'pageSize':null,'riskLevel':null,'locale':null};}
|
package/lib/constant/app.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a68_0x6ffc68=a68_0x448f;(function(_0x38a520,_0x35201c){const _0x4a012e=a68_0x448f,_0x2920bd=_0x38a520();while(!![]){try{const _0x107eec=parseInt(_0x4a012e(0x170))/0x1*(parseInt(_0x4a012e(0x16b))/0x2)+parseInt(_0x4a012e(0x167))/0x3+-parseInt(_0x4a012e(0x171))/0x4*(parseInt(_0x4a012e(0x16c))/0x5)+parseInt(_0x4a012e(0x16d))/0x6*(parseInt(_0x4a012e(0x168))/0x7)+-parseInt(_0x4a012e(0x172))/0x8+-parseInt(_0x4a012e(0x169))/0x9+parseInt(_0x4a012e(0x16a))/0xa*(parseInt(_0x4a012e(0x16e))/0xb);if(_0x107eec===_0x35201c)break;else _0x2920bd['push'](_0x2920bd['shift']());}catch(_0x3e3fc5){_0x2920bd['push'](_0x2920bd['shift']());}}}(a68_0x5751,0x1fb45));function a68_0x448f(_0x1e25c8,_0x51fe0a){_0x1e25c8=_0x1e25c8-0x167;const _0x5751ce=a68_0x5751();let _0x448f29=_0x5751ce[_0x1e25c8];return _0x448f29;}function a68_0x5751(){const _0x26bf89=['802899xpcxVg','15450DdkTFN','666goKvxi','1282210ToLEEh','620166LoqSRG','1375PeFfKM','PUBLISHED','563wslNkU','4AiJzSp','268968abEEWV','75510NcLNLU','7YlvgOq'];a68_0x5751=function(){return _0x26bf89;};return a68_0x5751();}export const APP_PUBLISH_STATUS={'Published':a68_0x6ffc68(0x16f),'Unpublished':'UNPUBLISH'};export const RUNTIME_ACCESSIBLE_APP_STATUS=APP_PUBLISH_STATUS['Published'];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5733fe,_0x2e3416){const _0x6c0fed=a69_0x1217,_0x519611=_0x5733fe();while(!![]){try{const _0x4a3500=-parseInt(_0x6c0fed(0x1ac))/0x1+-parseInt(_0x6c0fed(0x1ab))/0x2+parseInt(_0x6c0fed(0x1b1))/0x3+parseInt(_0x6c0fed(0x1ad))/0x4+-parseInt(_0x6c0fed(0x1b0))/0x5+-parseInt(_0x6c0fed(0x1ae))/0x6*(-parseInt(_0x6c0fed(0x1a9))/0x7)+parseInt(_0x6c0fed(0x1aa))/0x8;if(_0x4a3500===_0x2e3416)break;else _0x519611['push'](_0x519611['shift']());}catch(_0x3b68cb){_0x519611['push'](_0x519611['shift']());}}}(a69_0x343f,0x540eb));function a69_0x1217(_0x585a54,_0x5d83a6){_0x585a54=_0x585a54-0x1a9;const _0x343f0d=a69_0x343f();let _0x121701=_0x343f0d[_0x585a54];return _0x121701;}export const AUTH_MODE={'ClientAk':'client-ak'};export function isAuthMode(_0x44fb0a){const _0x41826c=a69_0x1217;return _0x44fb0a===AUTH_MODE[_0x41826c(0x1af)];}function a69_0x343f(){const _0x385313=['1129778MktUOq','191580WEAsck','1922060kacdur','792nQvoXK','ClientAk','990080FavfTD','13317dusFRn','10563gxdkYS','4917136EnsOxM'];a69_0x343f=function(){return _0x385313;};return a69_0x343f();}
|
package/lib/constant/cli.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a70_0x3efdc1=a70_0x3e89;(function(_0x10a2ee,_0x212df6){const _0x133b6e=a70_0x3e89,_0x4b4830=_0x10a2ee();while(!![]){try{const _0x30b81b=parseInt(_0x133b6e(0xdc))/0x1*(-parseInt(_0x133b6e(0xe4))/0x2)+parseInt(_0x133b6e(0xf1))/0x3*(parseInt(_0x133b6e(0x108))/0x4)+-parseInt(_0x133b6e(0xfa))/0x5*(-parseInt(_0x133b6e(0x10e))/0x6)+parseInt(_0x133b6e(0x106))/0x7*(parseInt(_0x133b6e(0x100))/0x8)+parseInt(_0x133b6e(0xef))/0x9+-parseInt(_0x133b6e(0xf9))/0xa+-parseInt(_0x133b6e(0xdf))/0xb*(parseInt(_0x133b6e(0xf7))/0xc);if(_0x30b81b===_0x212df6)break;else _0x4b4830['push'](_0x4b4830['shift']());}catch(_0x4f8106){_0x4b4830['push'](_0x4b4830['shift']());}}}(a70_0x47f1,0x1a79e));import{PRODUCT_CONFIG}from'../constant/product.js';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';export const CLI_BIN_NAME=PRODUCT_CONFIG[a70_0x3efdc1(0x107)];export const CLI_DISPLAY_NAME=PRODUCT_CONFIG[a70_0x3efdc1(0xe9)];function a70_0x3e89(_0x49aabe,_0x38a300){_0x49aabe=_0x49aabe-0xdc;const _0x47f192=a70_0x47f1();let _0x3e8988=_0x47f192[_0x49aabe];return _0x3e8988;}export const NPM_PACKAGE_NAME=LOVRABET_NPM_PACKAGE_NAME;export const GLOBAL_FLAGS=[{'name':a70_0x3efdc1(0xf2),'meowKey':a70_0x3efdc1(0xf2),'type':a70_0x3efdc1(0x10d),'description':'Override\x20appcode','hint':a70_0x3efdc1(0xeb)},{'name':a70_0x3efdc1(0x104),'meowKey':a70_0x3efdc1(0x104),'type':a70_0x3efdc1(0x10d),'description':a70_0x3efdc1(0xec),'hint':a70_0x3efdc1(0xee)},{'name':'env','meowKey':a70_0x3efdc1(0xf4),'type':a70_0x3efdc1(0x10d),'description':a70_0x3efdc1(0xf5),'hint':a70_0x3efdc1(0xed)},{'name':a70_0x3efdc1(0xff),'meowKey':a70_0x3efdc1(0xff),'type':a70_0x3efdc1(0x10d),'description':a70_0x3efdc1(0xe2),'hint':a70_0x3efdc1(0x101)},{'name':'jq','meowKey':'jq','type':a70_0x3efdc1(0x10d),'description':a70_0x3efdc1(0xde),'hint':a70_0x3efdc1(0x105)},{'name':a70_0x3efdc1(0xe5),'meowKey':a70_0x3efdc1(0xe7),'type':a70_0x3efdc1(0x10b),'description':a70_0x3efdc1(0xfb)},{'name':a70_0x3efdc1(0xf0),'meowKey':'yes','type':'boolean','description':a70_0x3efdc1(0xf8)},{'name':a70_0x3efdc1(0xfe),'meowKey':a70_0x3efdc1(0xdd),'type':'boolean','description':'Force\x20non-interactive\x20mode\x20(CI)'},{'name':'global','meowKey':a70_0x3efdc1(0xe6),'type':a70_0x3efdc1(0x10b),'description':a70_0x3efdc1(0xfd)},{'name':'ci','meowKey':'ci','type':'boolean','description':'Alias\x20for\x20--non-interactive','hidden':!![]},{'name':a70_0x3efdc1(0xea),'meowKey':a70_0x3efdc1(0xea),'type':a70_0x3efdc1(0x10b),'description':a70_0x3efdc1(0xf3)},{'name':'id','meowKey':'id','type':'string','description':a70_0x3efdc1(0x10c),'hidden':!![]},{'name':a70_0x3efdc1(0x10a),'meowKey':'name','type':'string','description':'Name\x20filter','hidden':!![]},{'name':a70_0x3efdc1(0xe3),'meowKey':a70_0x3efdc1(0xe3),'type':a70_0x3efdc1(0x10d),'description':a70_0x3efdc1(0x109),'hidden':!![]},{'name':'params','meowKey':a70_0x3efdc1(0xfc),'type':'string','description':a70_0x3efdc1(0xf6),'hidden':!![]},{'name':a70_0x3efdc1(0x102),'meowKey':a70_0x3efdc1(0x102),'type':a70_0x3efdc1(0x10b),'description':'Verbose\x20output','hidden':!![]},{'name':'clear','meowKey':a70_0x3efdc1(0x103),'type':a70_0x3efdc1(0x10b),'description':a70_0x3efdc1(0xe1),'hidden':!![]}];function a70_0x47f1(){const _0xadeed1=['clear','app','<expr>','7vKymEa','cliBinName','4aoXhJS','SQL\x20query\x20code','name','boolean','Record\x20ID','string','433116QvnKnC','43678yvwDic','nonInteractive','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','209726PlbYGY','meowKey','Clear\x20output','Output\x20format','sqlcode','2qtzsxK','dry-run','global','dryRun','type','cliDisplayName','help','<code>','Select\x20app\x20profile\x20by\x20name','production\x20|\x20development\x20|\x20daily','<name>','354096IINrVf','yes','379851NezEWl','appcode','Show\x20help','env','Environment','JSON\x20params\x20for\x20execute\x20commands','72usVqLd','Skip\x20confirmation\x20for\x20high-risk\x20writes','1603940NniHYq','5nbVNTL','Preview\x20operation\x20without\x20executing','params','Use\x20global\x20config\x20scope','non-interactive','format','1510136RrPdST','json\x20|\x20pretty\x20|\x20compress','verbose'];a70_0x47f1=function(){return _0xadeed1;};return a70_0x47f1();}export const PIPELINE_FLAG_NAMES=new Set([a70_0x3efdc1(0xf2),a70_0x3efdc1(0x104),a70_0x3efdc1(0xf4),'format','jq',a70_0x3efdc1(0xe5),a70_0x3efdc1(0xf0),a70_0x3efdc1(0xfe),'ci']);export function buildMeowFlags(){const _0x52cd1d=a70_0x3efdc1;return Object['fromEntries'](GLOBAL_FLAGS['map'](_0x2ec08e=>[_0x2ec08e[_0x52cd1d(0xe0)],{'type':_0x2ec08e[_0x52cd1d(0xe8)]}]));}
|
package/lib/constant/defaults.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a71_0x3820f6=a71_0x3824;function a71_0x4fbf(){const _0x91f136=['main','8867120zvVfIG','1642ZYNays','4569272OCRSeF','50197LzMPkF','6980EPiSsD','38943elAyIF','compress','7409310BMsnWe','951tvkCZq','248ggxUzy','344937eMHNiF','production'];a71_0x4fbf=function(){return _0x91f136;};return a71_0x4fbf();}function a71_0x3824(_0x508be8,_0x275966){_0x508be8=_0x508be8-0x19f;const _0x4fbf81=a71_0x4fbf();let _0x382455=_0x4fbf81[_0x508be8];return _0x382455;}(function(_0x2be9da,_0x372d1e){const _0x2c7e4e=a71_0x3824,_0x3b5f6b=_0x2be9da();while(!![]){try{const _0x62902b=parseInt(_0x2c7e4e(0x1a8))/0x1*(-parseInt(_0x2c7e4e(0x1a1))/0x2)+parseInt(_0x2c7e4e(0x1aa))/0x3+-parseInt(_0x2c7e4e(0x1a2))/0x4+-parseInt(_0x2c7e4e(0x1a0))/0x5+parseInt(_0x2c7e4e(0x1a7))/0x6+-parseInt(_0x2c7e4e(0x1a3))/0x7*(-parseInt(_0x2c7e4e(0x1a9))/0x8)+parseInt(_0x2c7e4e(0x1a5))/0x9*(parseInt(_0x2c7e4e(0x1a4))/0xa);if(_0x62902b===_0x372d1e)break;else _0x3b5f6b['push'](_0x3b5f6b['shift']());}catch(_0x1e9ed4){_0x3b5f6b['push'](_0x3b5f6b['shift']());}}}(a71_0x4fbf,0xdab9a));export const DEFAULT_APP_PROFILE_NAME=a71_0x3820f6(0x19f);export const DEFAULT_CONFIG_VALUES={'env':a71_0x3820f6(0x1ab),'format':a71_0x3820f6(0x1a6),'locale':'en-US','riskLevel':'write'};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a71_0x3820f6(0x1a6);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a72_0x10e529=a72_0x3e5d;function a72_0x3e5d(_0x42cb83,_0xaa3538){_0x42cb83=_0x42cb83-0x186;const _0x4a52e7=a72_0x4a52();let _0x3e5d3a=_0x4a52e7[_0x42cb83];return _0x3e5d3a;}(function(_0x405eea,_0x5264ba){const _0x24406e=a72_0x3e5d,_0xd21da9=_0x405eea();while(!![]){try{const _0x4f590b=-parseInt(_0x24406e(0x187))/0x1+-parseInt(_0x24406e(0x186))/0x2*(parseInt(_0x24406e(0x18a))/0x3)+-parseInt(_0x24406e(0x18f))/0x4+parseInt(_0x24406e(0x188))/0x5*(parseInt(_0x24406e(0x190))/0x6)+-parseInt(_0x24406e(0x189))/0x7+-parseInt(_0x24406e(0x18c))/0x8+parseInt(_0x24406e(0x18e))/0x9;if(_0x4f590b===_0x5264ba)break;else _0xd21da9['push'](_0xd21da9['shift']());}catch(_0x42cb34){_0xd21da9['push'](_0xd21da9['shift']());}}}(a72_0x4a52,0xc63b3));import{PRODUCT_CONFIG}from'../constant/product.js';function a72_0x4a52(){const _0x3d229d=['6409634OIARod','3XkJBsd','skillSource','9570384iJiuop','npmRegistryBaseUrl','44195031rFaSKA','375096olHapQ','6jWxJVi','2089166GLgcRE','876153ztDWjE','139330RVhtCS'];a72_0x4a52=function(){return _0x3d229d;};return a72_0x4a52();}export const LOVRABET_NPM_PACKAGE_NAME=PRODUCT_CONFIG['npmPackageName'];export const LOVRABET_SKILL_SOURCE=PRODUCT_CONFIG[a72_0x10e529(0x18b)];export const NPM_REGISTRY_BASE_URL=PRODUCT_CONFIG[a72_0x10e529(0x18d)];
|
package/lib/constant/domain.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a73_0x59a1d4=a73_0x142b;function a73_0x142b(_0x5f37a1,_0x466d21){_0x5f37a1=_0x5f37a1-0xbc;const _0x519120=a73_0x5191();let _0x142b9a=_0x519120[_0x5f37a1];return _0x142b9a;}(function(_0x52b13b,_0xed7c65){const _0x313a7c=a73_0x142b,_0x341122=_0x52b13b();while(!![]){try{const _0x5acdcb=parseInt(_0x313a7c(0xc7))/0x1*(parseInt(_0x313a7c(0xc6))/0x2)+-parseInt(_0x313a7c(0xd0))/0x3+-parseInt(_0x313a7c(0xc5))/0x4+-parseInt(_0x313a7c(0xc1))/0x5*(-parseInt(_0x313a7c(0xce))/0x6)+parseInt(_0x313a7c(0xc9))/0x7*(-parseInt(_0x313a7c(0xbe))/0x8)+-parseInt(_0x313a7c(0xcb))/0x9+parseInt(_0x313a7c(0xc8))/0xa;if(_0x5acdcb===_0xed7c65)break;else _0x341122['push'](_0x341122['shift']());}catch(_0x30e3a2){_0x341122['push'](_0x341122['shift']());}}}(a73_0x5191,0x2c553));import{getEnv,isProduction}from'../constant/env.js';import{PRODUCT_CONFIG}from'../constant/product.js';let customApiDomain,customUserDomain,customRuntimeDomain,customSkillHubDomain;export function initDomains(_0x46a70b){const _0x485d32=a73_0x142b;customApiDomain=_0x46a70b?.[_0x485d32(0xc2)],customUserDomain=_0x46a70b?.[_0x485d32(0xca)],customRuntimeDomain=_0x46a70b?.[_0x485d32(0xcf)],customSkillHubDomain=_0x46a70b?.[_0x485d32(0xc3)];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a73_0x59a1d4(0xbc)]['production'][a73_0x59a1d4(0xc0)]:PRODUCT_CONFIG[a73_0x59a1d4(0xbc)][a73_0x59a1d4(0xc4)][a73_0x59a1d4(0xc0)]);export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?PRODUCT_CONFIG['domains'][a73_0x59a1d4(0xcd)][a73_0x59a1d4(0xcc)]:PRODUCT_CONFIG[a73_0x59a1d4(0xbc)][a73_0x59a1d4(0xc4)][a73_0x59a1d4(0xcc)]);export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?PRODUCT_CONFIG['domains']['production'][a73_0x59a1d4(0xbd)]:PRODUCT_CONFIG[a73_0x59a1d4(0xbc)][a73_0x59a1d4(0xc4)]['runtime']);function a73_0x5191(){const _0x55b670=['runtime','16zajYJO','skillhub','user','10OnYFLw','apiDomain','skillHubDomain','nonProduction','652612pUVmib','2CeSsRp','106368lTLOoQ','8867130cqhIQX','362005EdNWTi','userDomain','3008826kAyHfj','api','production','108132vfryYV','runtimeDomain','739923zPxaLN','domains'];a73_0x5191=function(){return _0x55b670;};return a73_0x5191();}export const getSkillHubDomain=()=>customSkillHubDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a73_0x59a1d4(0xbc)][a73_0x59a1d4(0xcd)][a73_0x59a1d4(0xbf)]:PRODUCT_CONFIG[a73_0x59a1d4(0xbc)]['nonProduction']['skillhub']);
|
package/lib/constant/env.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a74_0x50eb(_0x2de721,_0x709db2){_0x2de721=_0x2de721-0xcf;const _0x219ade=a74_0x219a();let _0x50eb23=_0x219ade[_0x2de721];return _0x50eb23;}const a74_0x5cd1a0=a74_0x50eb;(function(_0x2ad6f8,_0x4c75e6){const _0x1ece5e=a74_0x50eb,_0x43525d=_0x2ad6f8();while(!![]){try{const _0x2c3938=parseInt(_0x1ece5e(0xd6))/0x1+parseInt(_0x1ece5e(0xda))/0x2*(-parseInt(_0x1ece5e(0xd5))/0x3)+-parseInt(_0x1ece5e(0xcf))/0x4*(parseInt(_0x1ece5e(0xdf))/0x5)+-parseInt(_0x1ece5e(0xd0))/0x6*(-parseInt(_0x1ece5e(0xdb))/0x7)+-parseInt(_0x1ece5e(0xd7))/0x8*(-parseInt(_0x1ece5e(0xe0))/0x9)+parseInt(_0x1ece5e(0xd8))/0xa*(parseInt(_0x1ece5e(0xd9))/0xb)+-parseInt(_0x1ece5e(0xd1))/0xc*(parseInt(_0x1ece5e(0xd3))/0xd);if(_0x2c3938===_0x4c75e6)break;else _0x43525d['push'](_0x43525d['shift']());}catch(_0x4edf31){_0x43525d['push'](_0x43525d['shift']());}}}(a74_0x219a,0xe2fee));import{productEnv}from'../constant/product.js';export const RUNTIME_ENV_VALUES=[a74_0x5cd1a0(0xd4),'development',a74_0x5cd1a0(0xd2)];export function normalizeEnv(_0x40fedf){const _0x56cf80=a74_0x5cd1a0;return _0x40fedf==='online'?_0x56cf80(0xd4):_0x40fedf;}export function isProduction(_0x4d3c0a){const _0x1828d5=a74_0x5cd1a0;return normalizeEnv(_0x4d3c0a)===_0x1828d5(0xd4);}export function isDaily(_0x5d8b9b){const _0x2eff80=a74_0x5cd1a0;return normalizeEnv(_0x5d8b9b)===_0x2eff80(0xd2);}export function isDev(_0x872d87){const _0x3e7fe6=a74_0x5cd1a0,_0x5af141=normalizeEnv(_0x872d87);return _0x5af141===_0x3e7fe6(0xdc)||_0x5af141===_0x3e7fe6(0xde);}let env=normalizeEnv(productEnv(a74_0x5cd1a0(0xdd))||'production');export function getEnv(){return env;}export function initEnv(_0x1ffe7c){env=normalizeEnv(_0x1ffe7c);}function a74_0x219a(){const _0x2b1479=['daily','5089045tWwlBS','production','21tfkfRo','1240840cDsGbq','13693488JwWjrC','10rHjWkk','8290469AfylyJ','36262hzBlpy','7UrOuSK','development','ENV','dev','949930hJzCFr','9gfJZcs','4UMDpHV','11079522cFrYQS','132QPsOiH'];a74_0x219a=function(){return _0x2b1479;};return a74_0x219a();}
|
package/lib/constant/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a75_0x2894(_0x5880c9,_0x519ef9){_0x5880c9=_0x5880c9-0x6d;const _0x4a60b4=a75_0x4a60();let _0x289470=_0x4a60b4[_0x5880c9];return _0x289470;}const a75_0x28b7e3=a75_0x2894;(function(_0xc25149,_0x54de7d){const _0x18d998=a75_0x2894,_0x2921af=_0xc25149();while(!![]){try{const _0x24f557=parseInt(_0x18d998(0x6e))/0x1*(parseInt(_0x18d998(0x75))/0x2)+-parseInt(_0x18d998(0x78))/0x3*(-parseInt(_0x18d998(0x76))/0x4)+parseInt(_0x18d998(0x74))/0x5+-parseInt(_0x18d998(0x72))/0x6+parseInt(_0x18d998(0x6f))/0x7+-parseInt(_0x18d998(0x70))/0x8*(parseInt(_0x18d998(0x79))/0x9)+parseInt(_0x18d998(0x71))/0xa;if(_0x24f557===_0x54de7d)break;else _0x2921af['push'](_0x2921af['shift']());}catch(_0x1b0e8e){_0x2921af['push'](_0x2921af['shift']());}}}(a75_0x4a60,0x5ec4f));function a75_0x4a60(){const _0x46718c=['3688KgtyHQ','491684IqMPEx','pretty','3myGkzi','241938TriHfi','json','329IvLbNW','3308207AKrpgi','136CciZLV','696080TpQLTh','2582952SDiSmh','compress','19275QXkGQw'];a75_0x4a60=function(){return _0x46718c;};return a75_0x4a60();}export const OUTPUT_FORMAT_VALUES=[a75_0x28b7e3(0x6d),a75_0x28b7e3(0x77),a75_0x28b7e3(0x73)];
|
package/lib/constant/product.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a76_0xf1eb01=a76_0x4208;(function(_0x2937cc,_0x44199c){const _0x3ab08e=a76_0x4208,_0x56276c=_0x2937cc();while(!![]){try{const _0xc4a4a=-parseInt(_0x3ab08e(0x1a6))/0x1+parseInt(_0x3ab08e(0x1aa))/0x2+parseInt(_0x3ab08e(0x1b2))/0x3*(-parseInt(_0x3ab08e(0x19d))/0x4)+-parseInt(_0x3ab08e(0x1ac))/0x5*(-parseInt(_0x3ab08e(0x1a2))/0x6)+-parseInt(_0x3ab08e(0x1a4))/0x7+parseInt(_0x3ab08e(0x1a1))/0x8*(parseInt(_0x3ab08e(0x1ae))/0x9)+parseInt(_0x3ab08e(0x1a9))/0xa;if(_0xc4a4a===_0x44199c)break;else _0x56276c['push'](_0x56276c['shift']());}catch(_0x49669d){_0x56276c['push'](_0x56276c['shift']());}}}(a76_0x4490,0x2c7de));function a76_0x4208(_0x39e7ed,_0x568c1e){_0x39e7ed=_0x39e7ed-0x19d;const _0x44900b=a76_0x4490();let _0x42089d=_0x44900b[_0x39e7ed];return _0x42089d;}export const PRODUCT_CONFIG={'cliBinName':a76_0xf1eb01(0x1bb),'cliDisplayName':a76_0xf1eb01(0x1a3),'npmPackageName':a76_0xf1eb01(0x1b3),'skillSource':a76_0xf1eb01(0x1ab),'internalSkillSource':a76_0xf1eb01(0x1a7),'globalSkillName':a76_0xf1eb01(0x1bb),'npmRegistryBaseUrl':a76_0xf1eb01(0x1b1),'envPrefix':'LOVRABET','legacyEnvPrefixes':[a76_0xf1eb01(0x1b5)],'configFileNames':[a76_0xf1eb01(0x19f),a76_0xf1eb01(0x1b8)],'newConfigFileName':a76_0xf1eb01(0x19f),'homeDirName':a76_0xf1eb01(0x1b9),'logFileName':a76_0xf1eb01(0x1af),'invokeSource':a76_0xf1eb01(0x1b6),'userCenterDisplayName':a76_0xf1eb01(0x1bd),'skipNpxSkillsEnvSuffix':a76_0xf1eb01(0x1a0),'domains':{'production':{'user':'https://user.lovrabet.com','api':a76_0xf1eb01(0x1a8),'runtime':'https://runtime.lovrabet.com','skillhub':a76_0xf1eb01(0x19e)},'nonProduction':{'user':a76_0xf1eb01(0x1bc),'api':a76_0xf1eb01(0x1b4),'runtime':a76_0xf1eb01(0x1b0),'skillhub':a76_0xf1eb01(0x1ba)}},'accessKeyCreatePath':a76_0xf1eb01(0x1b7)};export function productEnvName(_0x3323db){return PRODUCT_CONFIG['envPrefix']+'_'+_0x3323db;}function a76_0x4490(){const _0x1baa24=['96289FXFVMV','git@codeup.aliyun.com:yuntoo/open/lovrabet-runtime-cli.git','https://api.lovrabet.com','603020SkxDhe','436684HJXloy','lovrabet/lovrabet-cli','199315ZKpfiU','legacyEnvPrefixes','9SDeEVX','.lovrabet-runtime.log','https://daily-runtime.lovrabet.com','https://registry.npmjs.org','6fgwait','@lovrabet/lovrabet-cli','https://daily-api.lovrabet.com','RABETBASE','cli:lovrabet-runtime','/user/ak','.lovrabetrc','.lovrabet','https://skills-daily.lovrabet.com','lovrabet','https://user-daily.lovrabet.com','Lovrabet\x20User\x20Center','132484yJAsOP','https://skills.lovrabet.com','.lovrabet.json','SKIP_NPX_SKILLS','509704cArvzZ','6GRoYRl','Lovrabet\x20Runtime\x20CLI','262157NTylSP','map'];a76_0x4490=function(){return _0x1baa24;};return a76_0x4490();}export function productEnvNames(_0x21ee51){const _0x25c6f1=a76_0xf1eb01;return[productEnvName(_0x21ee51),...PRODUCT_CONFIG[_0x25c6f1(0x1ad)][_0x25c6f1(0x1a5)](_0x51321d=>_0x51321d+'_'+_0x21ee51)];}export function productEnv(_0x2de53e){for(const _0x1d3d56 of productEnvNames(_0x2de53e)){const _0x385b22=process.env[_0x1d3d56];if(_0x385b22!==undefined)return _0x385b22;}return undefined;}
|
package/lib/constant/risk.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a77_0x5727(_0x8f2001,_0x531a68){_0x8f2001=_0x8f2001-0xca;const _0x3c50f3=a77_0x3c50();let _0x572729=_0x3c50f3[_0x8f2001];return _0x572729;}const a77_0x26e0e9=a77_0x5727;(function(_0x4fca34,_0x5a1c9e){const _0x3cc34c=a77_0x5727,_0x1a74a5=_0x4fca34();while(!![]){try{const _0x4e8747=parseInt(_0x3cc34c(0xcf))/0x1+-parseInt(_0x3cc34c(0xd3))/0x2*(-parseInt(_0x3cc34c(0xce))/0x3)+parseInt(_0x3cc34c(0xd1))/0x4+parseInt(_0x3cc34c(0xcb))/0x5*(-parseInt(_0x3cc34c(0xcc))/0x6)+-parseInt(_0x3cc34c(0xcd))/0x7+-parseInt(_0x3cc34c(0xd0))/0x8+-parseInt(_0x3cc34c(0xd4))/0x9*(-parseInt(_0x3cc34c(0xca))/0xa);if(_0x4e8747===_0x5a1c9e)break;else _0x1a74a5['push'](_0x1a74a5['shift']());}catch(_0x485eee){_0x1a74a5['push'](_0x1a74a5['shift']());}}}(a77_0x3c50,0x519eb));function a77_0x3c50(){const _0x28da3b=['read','6HbCFsZ','13590dWcmSA','high-risk-write','1370amWBxS','5qrAXim','380238eHdKYU','1225154cLuadM','12369mzfDFK','646809uuxOuM','4992328WaPSPE','1322812NzyZnS'];a77_0x3c50=function(){return _0x28da3b;};return a77_0x3c50();}export const RISK_LEVEL_VALUES=[a77_0x26e0e9(0xd2),'write',a77_0x26e0e9(0xd5)];
|
package/lib/constant/url.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a78_0x18f5(_0x7eeaf5,_0x167ca5){_0x7eeaf5=_0x7eeaf5-0x1d2;const _0x2afc4d=a78_0x2afc();let _0x18f54b=_0x2afc4d[_0x7eeaf5];return _0x18f54b;}const a78_0x561f1c=a78_0x18f5;function a78_0x2afc(){const _0x39a6a5=['11gpPIKE','10120432uJkvlM','110892KIPwSd','9kLlMAE','user','12030770UACsya','55ZiXEkl','accessKeyCreatePath','605GRbEsR','196DxrYpL','4984212VAMbhj','30956VQYCfM','2345376fEXECi','10884FerDyj'];a78_0x2afc=function(){return _0x39a6a5;};return a78_0x2afc();}(function(_0x1e0b79,_0x5518ee){const _0x3e51c6=a78_0x18f5,_0x2b1374=_0x1e0b79();while(!![]){try{const _0x1a2a67=-parseInt(_0x3e51c6(0x1d9))/0x1*(-parseInt(_0x3e51c6(0x1d8))/0x2)+parseInt(_0x3e51c6(0x1d7))/0x3+parseInt(_0x3e51c6(0x1d6))/0x4*(-parseInt(_0x3e51c6(0x1d3))/0x5)+-parseInt(_0x3e51c6(0x1db))/0x6*(-parseInt(_0x3e51c6(0x1d4))/0x7)+parseInt(_0x3e51c6(0x1da))/0x8+-parseInt(_0x3e51c6(0x1dc))/0x9*(-parseInt(_0x3e51c6(0x1de))/0xa)+parseInt(_0x3e51c6(0x1df))/0xb*(-parseInt(_0x3e51c6(0x1d5))/0xc);if(_0x1a2a67===_0x5518ee)break;else _0x2b1374['push'](_0x2b1374['shift']());}catch(_0x255447){_0x2b1374['push'](_0x2b1374['shift']());}}}(a78_0x2afc,0xc6c1b));import{PRODUCT_CONFIG}from'../constant/product.js';export const USER_ACCESS_KEY_CREATE_URL=''+PRODUCT_CONFIG['domains']['production'][a78_0x561f1c(0x1dd)]+PRODUCT_CONFIG[a78_0x561f1c(0x1d2)];
|
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_0x11f887=a79_0x4aa0;(function(_0x5670ba,_0x1c97d7){const _0x260578=a79_0x4aa0,_0x465a3f=_0x5670ba();while(!![]){try{const _0x15f679=parseInt(_0x260578(0x12e))/0x1+parseInt(_0x260578(0x12d))/0x2*(parseInt(_0x260578(0x120))/0x3)+parseInt(_0x260578(0x12f))/0x4+-parseInt(_0x260578(0x107))/0x5*(parseInt(_0x260578(0x113))/0x6)+parseInt(_0x260578(0x10e))/0x7+-parseInt(_0x260578(0x138))/0x8+-parseInt(_0x260578(0x115))/0x9*(-parseInt(_0x260578(0x13d))/0xa);if(_0x15f679===_0x1c97d7)break;else _0x465a3f['push'](_0x465a3f['shift']());}catch(_0x5541f1){_0x465a3f['push'](_0x465a3f['shift']());}}}(a79_0x3f54,0x5be72));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_0x11f887(0xf9)];export const NEW_CONFIG_NAME=PRODUCT_CONFIG[a79_0x11f887(0x12b)];function resolveConfigPath(_0x17e6a9){for(const _0x1afca5 of CONFIG_NAMES){const _0x37f8aa=resolve(_0x17e6a9,_0x1afca5);if(existsSync(_0x37f8aa))return _0x37f8aa;}return undefined;}export function resolveWriteConfigPath(_0x5952d2){const _0x432396=a79_0x11f887,_0xeb51a1=_0x5952d2===_0x432396(0x121)?process['cwd']():homedir(),_0x5dd11d=resolveConfigPath(_0xeb51a1);return _0x5dd11d??resolve(_0xeb51a1,NEW_CONFIG_NAME);}export function readConfigFile(_0x40b718){const _0x242507=a79_0x11f887;try{if(existsSync(_0x40b718)){const _0x11ce5b=readFileSync(_0x40b718,{'encoding':_0x242507(0xf4)});if(_0x11ce5b){const _0x3311bd=JSON['parse'](_0x11ce5b);return migrateOnlineEnv(_0x40b718,_0x3311bd),_0x3311bd;}}}catch{}return{};}function migrateOnlineEnv(_0x317d75,_0x3362f7){const _0x1cdb44=a79_0x11f887;let _0x5824b8=![];_0x3362f7['env']===_0x1cdb44(0x11d)&&(_0x3362f7[_0x1cdb44(0xec)]=_0x1cdb44(0x11b),_0x5824b8=!![]);if(_0x3362f7[_0x1cdb44(0x13f)]&&typeof _0x3362f7[_0x1cdb44(0x13f)]===_0x1cdb44(0xee))for(const _0x3ef813 of Object[_0x1cdb44(0x108)](_0x3362f7[_0x1cdb44(0x13f)])){_0x3ef813&&_0x3ef813[_0x1cdb44(0xec)]===_0x1cdb44(0x11d)&&(_0x3ef813[_0x1cdb44(0xec)]=_0x1cdb44(0x11b),_0x5824b8=!![]);}if(_0x5824b8)try{writeConfigFile(_0x317d75,_0x3362f7);}catch{}}export function writeConfigFile(_0x496c8e,_0x23389b){const _0x2cb762=a79_0x11f887,_0x5c7926=dirname(_0x496c8e);!existsSync(_0x5c7926)&&mkdirSync(_0x5c7926,{'recursive':!![]});const _0x238378=_0x496c8e+_0x2cb762(0x130);try{writeFileSync(_0x238378,JSON[_0x2cb762(0x10b)](_0x23389b,null,0x2)+'\x0a',{'encoding':_0x2cb762(0xf4),'mode':0x180});try{renameSync(_0x238378,_0x496c8e);}catch(_0x4bf306){if(_0x4bf306[_0x2cb762(0xf2)]===_0x2cb762(0x114)||_0x4bf306['code']===_0x2cb762(0x100)||_0x4bf306[_0x2cb762(0xf2)]===_0x2cb762(0x117)){writeFileSync(_0x496c8e,JSON['stringify'](_0x23389b,null,0x2)+'\x0a',{'encoding':'utf8'});try{unlinkSync(_0x238378);}catch{}}else throw _0x4bf306;}}catch(_0x32194){try{unlinkSync(_0x238378);}catch{}throw _0x32194;}}export function isNonInteractiveMode(_0x566745){const _0x143838=a79_0x11f887;return!!(_0x566745[_0x143838(0x104)]||_0x566745['ci']||productEnvNames('CI')[_0x143838(0x123)](_0x1c62d7=>process.env[_0x1c62d7]===_0x143838(0xf7))||process.env.CI==='true'||!process[_0x143838(0x129)][_0x143838(0x11c)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x21930a=a79_0x11f887;if(!process['stdin']['isTTY'])return![];try{const _0x3e1966=process['stdin'][_0x21930a(0xfa)];return process['stdin'][_0x21930a(0x122)](!![]),process[_0x21930a(0x128)]['setRawMode'](_0x3e1966??![]),!![];}catch{return![];}}export async function createContext(_0x539f21){const _0x234d73=a79_0x11f887,_0x1a0804=readRawConfig(),_0x2ac2a7=buildConfig(_0x1a0804,_0x539f21);await initGlobalEnvironment(_0x2ac2a7);const {getUserDomain:_0x1c7dc2,getApiDomain:_0x5e23e7}=await import(_0x234d73(0x132)),_0xa4e69e={'apiDomain':_0x5e23e7(),'userDomain':_0x1c7dc2()},_0x43379c=await buildAuth(_0x2ac2a7);logger[_0x234d73(0xf5)](process[_0x234d73(0x116)]());const _0x3413af=(CLI_BIN_NAME+'\x20'+process[_0x234d73(0x112)][_0x234d73(0xef)](0x2)[_0x234d73(0x13a)]('\x20'))['trim']();logger[_0x234d73(0xfb)](_0x3413af);const _0x3ba585=isNonInteractiveMode(_0x539f21);return{'config':_0x2ac2a7,'auth':_0x43379c,'logger':logger,'env':_0xa4e69e,'nonInteractive':_0x3ba585};}export function buildConfigFromFlags(_0x2b0626){return buildConfig(readRawConfig(),_0x2b0626);}export function getLocalAppAliases(_0x236961){const _0x51a676=a79_0x11f887;return _0x236961[_0x51a676(0x13f)]&&typeof _0x236961['apps']===_0x51a676(0xee)?_0x236961[_0x51a676(0x13f)]:{};}export function resolveLocalAppAliasCode(_0x149d39,_0x22c41e){const _0x56da61=a79_0x11f887;if(!_0x22c41e)return undefined;const _0x598413=getLocalAppAliases(_0x149d39)[_0x22c41e],_0x443227=_0x598413?.[_0x56da61(0x13e)];return typeof _0x443227===_0x56da61(0x102)&&_0x443227[_0x56da61(0xf1)]()?_0x443227[_0x56da61(0xf1)]():undefined;}export function readAppCodeFromConfig(){const _0x57cb66=a79_0x11f887,_0x3a6be3=readRawConfig(),_0x33c8bc=_0x3a6be3['appcode']??_0x3a6be3[_0x57cb66(0x11e)];if(typeof _0x33c8bc===_0x57cb66(0x102)&&_0x33c8bc[_0x57cb66(0xf1)]())return _0x33c8bc[_0x57cb66(0xf1)]();const _0x1fa701=resolveLocalAppAliasCode(_0x3a6be3,typeof _0x3a6be3[_0x57cb66(0x137)]===_0x57cb66(0x102)?_0x3a6be3[_0x57cb66(0x137)]:undefined);if(_0x1fa701)return _0x1fa701;const _0x414fbb=normalizeEnv(String(_0x3a6be3[_0x57cb66(0xec)]||_0x57cb66(0x11b))),_0x37a2cf=isDaily(_0x414fbb)?_0x57cb66(0xfc):isDev(_0x414fbb)?_0x57cb66(0x133):_0x57cb66(0x11b),_0x35cb8f=resolveCachedAppCode(typeof _0x3a6be3[_0x57cb66(0x137)]==='string'?_0x3a6be3[_0x57cb66(0x137)]:undefined,_0x37a2cf,typeof _0x3a6be3['accessKey']===_0x57cb66(0x102)?_0x3a6be3['accessKey']:undefined);if(_0x35cb8f)return _0x35cb8f;const _0x527774=Object[_0x57cb66(0x108)](getLocalAppAliases(_0x3a6be3))[_0x57cb66(0x11f)](_0x3e431d=>_0x3e431d?.[_0x57cb66(0x13e)]);return typeof _0x527774?.['appcode']===_0x57cb66(0x102)&&_0x527774['appcode']['trim']()?_0x527774[_0x57cb66(0x13e)][_0x57cb66(0xf1)]():undefined;}export function readScopedConfig(_0x474715){const _0x446295=a79_0x11f887,_0x3543c3=_0x474715['global']?'global':_0x446295(0x121);return readConfigFile(resolveWriteConfigPath(_0x3543c3));}export function writeScopedConfig(_0x30623f,_0x484b34){const _0x4b7d50=a79_0x11f887,_0xa47a5a=_0x484b34[_0x4b7d50(0x131)]?'global':_0x4b7d50(0x121);writeConfigFile(resolveWriteConfigPath(_0xa47a5a),_0x30623f);}export async function initGlobalEnvironment(_0x8d0894){const _0x9490b2=a79_0x11f887,{initEnv:_0x108e97}=await import(_0x9490b2(0x110));_0x108e97(_0x8d0894['env']);const {initDomains:_0x174826}=await import(_0x9490b2(0x132));_0x174826({'apiDomain':_0x8d0894[_0x9490b2(0xf0)][_0x9490b2(0x12c)]||_0x8d0894[_0x9490b2(0xf0)][_0x9490b2(0x101)]||undefined,'userDomain':_0x8d0894[_0x9490b2(0xf0)][_0x9490b2(0x10d)]||undefined,'runtimeDomain':_0x8d0894[_0x9490b2(0xf0)][_0x9490b2(0x13c)]||undefined,'skillHubDomain':_0x8d0894[_0x9490b2(0xf0)][_0x9490b2(0x119)]||undefined});}export function getProjectConfigPath(){const _0x47138f=a79_0x11f887;return resolveConfigPath(process[_0x47138f(0x116)]());}function a79_0x3f54(){const _0x35a596=['host','string','cache','nonInteractive','high-risk-write','projectConfig','5ZDuSPc','values','APPCODE','local-alias','stringify','write','userDomain','475419TQBDrd','inherit','./constant/env.js','missing','argv','3920034hvoyNC','EPERM','2029257aKixDi','cwd','EACCES','explicit','skillHubDomain','riskLevel','production','isTTY','online','app','find','273IIabju','project','setRawMode','some','empty','pageSize','FORMAT','error','stdin','stdout','format','newConfigFileName','apiDomain','5872fmfJWg','716686mbeINq','131528yGrFBc','.tmp','global','./constant/domain.js','development','ACCESS_KEY','VERBOSE','globalConfig','defaultApp','5850456Stcovo','read','join','authRequired','runtimeDomain','30IxJOtf','appcode','apps','env','top-level','object','slice','raw','trim','code','locale','utf8','setLogPath','APP','true','ENV','configFileNames','isRaw','setRawCommand','daily','parse','maxRisk','accessKey','EXDEV'];a79_0x3f54=function(){return _0x35a596;};return a79_0x3f54();}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0x555909){const _0x20c521=a79_0x11f887;if(!existsSync(_0x555909))return{'status':_0x20c521(0x111)};try{const _0x434be1=readFileSync(_0x555909,{'encoding':_0x20c521(0xf4)});if(!_0x434be1?.[_0x20c521(0xf1)]())return{'status':_0x20c521(0x124)};const _0x3473c0=JSON['parse'](_0x434be1);return{'status':'ok','data':_0x3473c0};}catch(_0x6fa035){return{'status':_0x20c521(0x127),'message':_0x6fa035 instanceof Error?_0x6fa035['message']:String(_0x6fa035)};}}export function loadRawConfigLayers(_0x3e15a8){const _0x3ccf09=a79_0x11f887;let _0x5a3fb8={},_0x62f01d={},_0x41ecfe,_0x133532;try{_0x41ecfe=resolveConfigPath(homedir());if(_0x41ecfe){const _0x5b1a7e=readFileSync(_0x41ecfe,{'encoding':_0x3ccf09(0xf4)});if(_0x5b1a7e)_0x5a3fb8=JSON[_0x3ccf09(0xfd)](_0x5b1a7e);}}catch{}try{const _0x55a82a=_0x3e15a8||process[_0x3ccf09(0x116)]();_0x133532=resolveConfigPath(_0x55a82a);if(_0x133532){const _0x107478=readFileSync(_0x133532,{'encoding':_0x3ccf09(0xf4)});if(_0x107478)_0x62f01d=JSON[_0x3ccf09(0xfd)](_0x107478);}}catch{}return{'globalPath':_0x41ecfe,'projectPath':_0x133532,'globalConfig':_0x5a3fb8,'projectConfig':_0x62f01d};}function mergeRawConfigLayers(_0x558c63){const _0x1957bf=a79_0x11f887,{globalConfig:_0x4f8d82,projectConfig:_0x594db4}=_0x558c63;if(_0x594db4['inherit']===![]){const _0x45aa80={..._0x594db4};return delete _0x45aa80[_0x1957bf(0x10f)],_0x45aa80;}const _0x2ae900={..._0x4f8d82,..._0x594db4};if('defaultApp'in _0x594db4)_0x2ae900[_0x1957bf(0x137)]=_0x594db4[_0x1957bf(0x137)];else _0x4f8d82['defaultApp']&&(_0x2ae900[_0x1957bf(0x137)]=_0x4f8d82[_0x1957bf(0x137)]);return _0x2ae900;}function a79_0x4aa0(_0x1c86ad,_0x4bf233){_0x1c86ad=_0x1c86ad-0xec;const _0x3f5498=a79_0x3f54();let _0x4aa08e=_0x3f5498[_0x1c86ad];return _0x4aa08e;}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0x5d587d){return mergeRawConfigLayers(loadRawConfigLayers(_0x5d587d));}export function readRawConfigWithLayers(_0x24ec4c){const _0xc6cb9f=loadRawConfigLayers(_0x24ec4c);return{'config':mergeRawConfigLayers(_0xc6cb9f),'layers':_0xc6cb9f};}export function resolveDefaultAppSource(_0x3dc86d){const _0x9a8013=a79_0x11f887;if('defaultApp'in _0x3dc86d[_0x9a8013(0x106)])return _0x9a8013(0x121);if(_0x3dc86d[_0x9a8013(0x106)]['inherit']===![])return null;if(_0x3dc86d[_0x9a8013(0x136)][_0x9a8013(0x137)])return _0x9a8013(0x131);return null;}function buildConfig(_0x1b989c,_0xff6252){const _0x390f65=a79_0x11f887,_0xd17d05=_0x1b989c[_0x390f65(0x137)]||undefined,_0x109df8=_0xff6252[_0x390f65(0x11e)]||env(_0x390f65(0xf6))||undefined,_0x59b73e=_0x109df8||_0xd17d05||undefined,_0xe51747=env(_0x390f65(0x134))||_0x1b989c[_0x390f65(0xff)]||undefined,_0x3becb3=_0xff6252[_0x390f65(0xec)]||env(_0x390f65(0xf8))||_0x1b989c['env']||DEFAULT_CONFIG_VALUES[_0x390f65(0xec)],_0x13bf01=normalizeEnv(String(_0x3becb3)),_0x28c6b2=isDaily(_0x13bf01)?'daily':isDev(_0x13bf01)?_0x390f65(0x133):_0x390f65(0x11b),_0x4113db=typeof _0xff6252[_0x390f65(0x13e)]===_0x390f65(0x102)?_0xff6252['appcode']:undefined,_0x2e1509=env(_0x390f65(0x109)),_0x4fcfa1=_0x109df8?undefined:_0x1b989c[_0x390f65(0x13e)]||_0x1b989c[_0x390f65(0x11e)]||undefined,_0x48cf6b=_0x109df8||(_0x4fcfa1?undefined:_0xd17d05),_0x4d656b=resolveLocalAppAliasCode(_0x1b989c,_0x48cf6b),_0x17ad15=resolveCachedAppCode(_0x48cf6b,_0x28c6b2,_0xe51747),_0x16f603=_0x4113db||_0x2e1509||_0x4fcfa1||_0x4d656b||_0x17ad15||undefined,_0x3a16f9=_0x4113db?_0x390f65(0x118):_0x2e1509?_0x390f65(0xec):_0x4fcfa1?_0x390f65(0xed):_0x4d656b?_0x390f65(0x10a):_0x17ad15?_0x390f65(0x103):undefined,_0x5dad56=_0x1b989c[_0x390f65(0xf3)]||DEFAULT_CONFIG_VALUES['locale'],_0x2198e9=undefined,_0x19f307=_0xff6252['format']||env(_0x390f65(0x126))||_0x1b989c[_0x390f65(0x12a)],_0x434d23=normalizeLegacyOutputFormat(_0x19f307),_0x327185=env('PAGE_SIZE')||_0x1b989c[_0x390f65(0x125)],_0x194b60=_0x327185?Number(_0x327185)||undefined:undefined,_0x13bb68=_0x1b989c['riskLevel']||_0x1b989c[_0x390f65(0xfe)],_0x2a2097=_0x13bb68===_0x390f65(0x139)||_0x13bb68===_0x390f65(0x10c)||_0x13bb68===_0x390f65(0x105)?_0x13bb68:DEFAULT_CONFIG_VALUES[_0x390f65(0x11a)],_0x1b61f0=env(_0x390f65(0x135)),_0xda7c42=_0x1b61f0==='1'||_0x1b61f0===_0x390f65(0xf7);return{'appCode':typeof _0x16f603===_0x390f65(0x102)&&_0x16f603[_0x390f65(0xf1)]()?_0x16f603[_0x390f65(0xf1)]():undefined,'appCodeSource':_0x3a16f9,'env':_0x28c6b2,'locale':_0x5dad56,'cookie':_0x2198e9,'accessKey':_0xe51747,'format':_0x434d23,'pageSize':_0x194b60,'riskLevel':_0x2a2097,'verbose':_0xda7c42,'defaultApp':_0xd17d05,'currentApp':typeof _0x59b73e===_0x390f65(0x102)?_0x59b73e:undefined,'raw':_0x1b989c};}function env(_0x47e180){return productEnv(_0x47e180);}async function buildAuth(_0x27faae){const _0x4a2523=a79_0x11f887,_0x1e7e7e='',_0xeae0fc=!!_0x27faae[_0x4a2523(0xff)];return{'cookie':_0x1e7e7e,'isLoggedIn':_0xeae0fc,async 'getOrLogin'(){const _0x4f9f49=_0x4a2523;if(_0xeae0fc)return _0x1e7e7e;throw CliErrors[_0x4f9f49(0x13b)]();}};}
|