@lovrabet/lovrabet-cli 2.2.6 → 2.2.7-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/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/notification/config-list.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/notification/shared.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/permit/dataset-get.js +1 -1
- package/lib/commands/permit/dataset-set.js +1 -1
- package/lib/commands/permit/index.js +1 -1
- package/lib/commands/permit/page-get.js +1 -1
- package/lib/commands/permit/page-set.js +1 -1
- package/lib/commands/permit/role-menus-set.js +1 -1
- package/lib/commands/permit/role-menus.js +1 -1
- package/lib/commands/permit/shared.js +1 -1
- package/lib/commands/personal-bff/index.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/create.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/schedule/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/service/dynamic.js +1 -1
- package/lib/commands/service/function-name-adapter.js +1 -1
- package/lib/commands/service/index.js +1 -1
- package/lib/commands/service/registry.js +1 -1
- package/lib/commands/skill/commands/create.js +1 -1
- package/lib/commands/skill/commands/diagram.js +1 -1
- package/lib/commands/skill/commands/install.js +1 -1
- package/lib/commands/skill/commands/list.js +1 -1
- package/lib/commands/skill/commands/push.js +1 -1
- package/lib/commands/skill/commands/validate.js +1 -1
- package/lib/commands/skill/diagram.js +1 -1
- package/lib/commands/skill/flags.js +1 -1
- package/lib/commands/skill/index.js +1 -1
- package/lib/commands/skill/manifest-helpers.js +1 -1
- package/lib/commands/skill/push-execute.js +1 -1
- package/lib/commands/skill/push-flow-helpers.js +1 -1
- package/lib/commands/skill/push-retarget.js +1 -1
- package/lib/commands/skill/scopes.js +1 -1
- package/lib/commands/skill/summary.js +1 -1
- package/lib/commands/skill/templates.js +1 -1
- package/lib/commands/skill/validate.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/update.js +1 -1
- package/lib/commands/user-account/bind.js +1 -1
- package/lib/commands/user-account/index.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/app.js +1 -1
- package/lib/constant/auth-mode.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/distribution.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/product.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/url.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/sdk-client.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/dryrun.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/preparse.js +1 -1
- package/lib/framework/rate-limit.js +1 -1
- package/lib/framework/raw-flags.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-confirmation.js +1 -1
- package/lib/framework/runner-error.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/service-order.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/help.js +1 -1
- package/lib/postinstall.js +1 -1
- package/lib/runtime/confirmation.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/skills/builtin-skill.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/runtime-skill-sync/constants.js +1 -1
- package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
- package/lib/skills/runtime-skill-sync/hashing.js +1 -1
- package/lib/skills/runtime-skill-sync/install-target.js +1 -1
- package/lib/skills/runtime-skill-sync/links.js +1 -1
- package/lib/skills/runtime-skill-sync/list-local.js +1 -1
- package/lib/skills/runtime-skill-sync/local-files.js +1 -1
- package/lib/skills/runtime-skill-sync/materialize.js +1 -1
- package/lib/skills/runtime-skill-sync/metadata.js +1 -1
- package/lib/skills/runtime-skill-sync/paths.js +1 -1
- package/lib/skills/runtime-skill-sync/push.js +1 -1
- package/lib/skills/runtime-skill-sync/scopes.js +1 -1
- package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
- package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
- package/lib/skills/runtime-skill-sync.js +1 -1
- package/lib/skills/skill-presence.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/lossless-json.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
- package/skills/lovrabet/SKILL.md +1 -1
- package/skills/lovrabet.manifest.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a84_0x2549b8=a84_0x100f;(function(_0x3b2021,_0xb7dc07){const _0x57b2f4=a84_0x100f,_0x1545fe=_0x3b2021();while(!![]){try{const _0x4369ad=-parseInt(_0x57b2f4(0xe8))/0x1*(parseInt(_0x57b2f4(0xd8))/0x2)+-parseInt(_0x57b2f4(0xd6))/0x3*(parseInt(_0x57b2f4(0xed))/0x4)+-parseInt(_0x57b2f4(0xf2))/0x5+-parseInt(_0x57b2f4(0xe2))/0x6+-parseInt(_0x57b2f4(0xe1))/0x7+parseInt(_0x57b2f4(0xf4))/0x8*(parseInt(_0x57b2f4(0xee))/0x9)+parseInt(_0x57b2f4(0xe4))/0xa;if(_0x4369ad===_0xb7dc07)break;else _0x1545fe['push'](_0x1545fe['shift']());}catch(_0x44e0cb){_0x1545fe['push'](_0x1545fe['shift']());}}}(a84_0x310c,0xcb882));function a84_0x100f(_0x202f81,_0x24ea11){_0x202f81=_0x202f81-0xd2;const _0x310c57=a84_0x310c();let _0x100f44=_0x310c57[_0x202f81];return _0x100f44;}import{bindExternalUserAccount,USER_ACCOUNT_BIND_PATH}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const CURRENT_BINDING_WARNING=a84_0x2549b8(0xea),SUPPORTED_PROVIDERS=[a84_0x2549b8(0xec)];function readBindingInput(_0x465462){const _0x35ef7e=a84_0x2549b8,_0x1a3f09=_0x465462['str']('provider')[_0x35ef7e(0xf3)]()['toLowerCase']();if(!SUPPORTED_PROVIDERS[_0x35ef7e(0xd4)](_0x1a3f09))throw CliErrors[_0x35ef7e(0xdc)](_0x35ef7e(0xdd)+(_0x1a3f09||_0x35ef7e(0xd2))+'.',_0x35ef7e(0xe7)+SUPPORTED_PROVIDERS[_0x35ef7e(0xe5)](',\x20')+'.');const _0x737e89=_0x465462[_0x35ef7e(0xeb)](_0x35ef7e(0xdb))[_0x35ef7e(0xf3)]();if(!_0x737e89)throw CliErrors[_0x35ef7e(0xdc)](_0x35ef7e(0xe6),_0x35ef7e(0xef));return{'provider':_0x1a3f09,'accountId':_0x737e89};}function a84_0x310c(){const _0x25fa4f=['Unsupported\x20provider:\x20','Retry\x20with\x20the\x20same\x20--provider\x20and\x20--account-id\x20only\x20after\x20checking\x20the\x20current\x20AccessKey\x20identity.','External\x20account\x20provider','string','10627379aCPbbR','4529604OHUuYK','write','49176040tOQKyE','join','--account-id\x20cannot\x20be\x20empty.','Pass\x20one\x20of:\x20','75266YwSULl','将当前\x20AccessKey\x20所属的平台用户绑定到指定协同生态外部账号;已有同\x20provider\x20绑定可能被替换。','The\x20current\x20binding\x20is\x20not\x20exposed\x20by\x20the\x20server;\x20before\x20is\x20unavailable.','str','dingtalk','5156qGSxDx','343890lCtDoS','Pass\x20the\x20external\x20account\x20ID\x20for\x20the\x20selected\x20provider.','External\x20account\x20binding\x20was\x20not\x20confirmed.','user-account','4882990GssycP','trim','40rJhUyT','(empty)','bind','includes','POST','2211FIwabi','apiError','2hpwAVp','Bind\x20the\x20current\x20platform\x20user\x20to\x20an\x20external\x20provider\x20account','Bound\x20current\x20user\x20to\x20external\x20provider\x20account.','account-id','validation'];a84_0x310c=function(){return _0x25fa4f;};return a84_0x310c();}function buildBindingData(_0x367e3c,_0x5a7ab0,_0x58ca6d){return{'operation':'bind','selector':{'provider':_0x367e3c,'accountId':_0x5a7ab0},'before':null,'after':{'provider':_0x367e3c,'accountId':_0x5a7ab0,'bound':!![]},'dryRun':_0x58ca6d,'warnings':[CURRENT_BINDING_WARNING]};}export const bindUserAccount={'service':a84_0x2549b8(0xf1),'command':a84_0x2549b8(0xd3),'description':a84_0x2549b8(0xd9),'risk':a84_0x2549b8(0xe3),'confirmationDescription':a84_0x2549b8(0xe9),'requiresAuth':!![],'requiresAppCode':![],'flags':[{'name':'provider','type':a84_0x2549b8(0xe0),'required':!![],'enum':[...SUPPORTED_PROVIDERS],'description':a84_0x2549b8(0xdf)},{'name':a84_0x2549b8(0xdb),'type':a84_0x2549b8(0xe0),'required':!![],'description':'External\x20account\x20ID\x20for\x20the\x20selected\x20provider'}],async 'validate'(_0x382929){readBindingInput(_0x382929);},async 'dryRun'(_0x938722){const _0x5c6f38=a84_0x2549b8,{provider:_0x255965,accountId:_0x1c3784}=readBindingInput(_0x938722);return{...buildBindingData(_0x255965,_0x1c3784,!![]),'method':_0x5c6f38(0xd5),'url':USER_ACCOUNT_BIND_PATH,'body':{'provider':_0x255965,'accountId':_0x1c3784}};},async 'execute'(_0x5d2a08){const _0x25e2ba=a84_0x2549b8,{provider:_0x5ac206,accountId:_0xe76997}=readBindingInput(_0x5d2a08),_0x2c932e=await bindExternalUserAccount(_0x5ac206,_0xe76997);if(_0x2c932e!==!![])throw CliErrors[_0x25e2ba(0xd7)](_0x25e2ba(0xf0),_0x25e2ba(0xde));return{'ok':!![],'data':buildBindingData(_0x5ac206,_0xe76997,![]),'message':_0x25e2ba(0xda)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x2ebc15,_0x421373){const _0x5f330f=a85_0x10a4,_0x5b02b8=_0x2ebc15();while(!![]){try{const _0x1e9ee3=parseInt(_0x5f330f(0x123))/0x1+parseInt(_0x5f330f(0x12b))/0x2*(parseInt(_0x5f330f(0x127))/0x3)+parseInt(_0x5f330f(0x125))/0x4*(-parseInt(_0x5f330f(0x124))/0x5)+parseInt(_0x5f330f(0x128))/0x6+parseInt(_0x5f330f(0x126))/0x7+-parseInt(_0x5f330f(0x129))/0x8+parseInt(_0x5f330f(0x12a))/0x9;if(_0x1e9ee3===_0x421373)break;else _0x5b02b8['push'](_0x5b02b8['shift']());}catch(_0x431182){_0x5b02b8['push'](_0x5b02b8['shift']());}}}(a85_0x20e0,0xb578b));function a85_0x10a4(_0xe171c,_0x52f735){_0xe171c=_0xe171c-0x123;const _0x20e0be=a85_0x20e0();let _0x10a4c6=_0x20e0be[_0xe171c];return _0x10a4c6;}import{bindUserAccount}from'../../commands/user-account/bind.js';function a85_0x20e0(){const _0x304152=['8531712VauzQh','9477896raddvr','2169909swWUVN','57250nlBvoF','59894VRCfIP','681385NxUggG','8IvXoyf','1139432dkAKcQ','33BTPHoP'];a85_0x20e0=function(){return _0x304152;};return a85_0x20e0();}export const userAccountDefinitions=[bindUserAccount];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a86_0x136f72=a86_0x3a2d;(function(_0x26293b,_0x3b1d08){const _0x1ecfb8=a86_0x3a2d,_0xde867e=_0x26293b();while(!![]){try{const _0xe1d6a5=parseInt(_0x1ecfb8(0x9e))/0x1+parseInt(_0x1ecfb8(0x95))/0x2+-parseInt(_0x1ecfb8(0x92))/0x3*(-parseInt(_0x1ecfb8(0x9a))/0x4)+-parseInt(_0x1ecfb8(0xa2))/0x5*(-parseInt(_0x1ecfb8(0xae))/0x6)+-parseInt(_0x1ecfb8(0xb3))/0x7+parseInt(_0x1ecfb8(0xc4))/0x8+-parseInt(_0x1ecfb8(0xa4))/0x9*(parseInt(_0x1ecfb8(0xb9))/0xa);if(_0xe1d6a5===_0x3b1d08)break;else _0xde867e['push'](_0xde867e['shift']());}catch(_0x52c3cf){_0xde867e['push'](_0xde867e['shift']());}}}(a86_0x7d6d,0x6c81e));import{CLI_BIN_NAME}from'../../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../../constant/env.js';import{CliErrors}from'../../errors.js';import{readConfigFile,resolveWriteConfigPath,writeConfigFile}from'../../context.js';import{findAppByName,isRuntimeAccessibleApp,runtimeInaccessibleAppError}from'../../commands/app/eligibility.js';const WORKSPACE_USE_FLAGS=[{'name':'app','type':a86_0x136f72(0xcb),'description':a86_0x136f72(0xa6)},{'name':a86_0x136f72(0xc7),'type':'string','description':a86_0x136f72(0x97)},{'name':'env','type':a86_0x136f72(0xcb),'description':a86_0x136f72(0x9b),'enum':[...RUNTIME_ENV_VALUES]}];async function executeWorkspaceUse(_0x17983e,_0x32cd61){const _0x1d3410=a86_0x136f72,_0x1bee90=_0x17983e['str'](_0x1d3410(0xad))[_0x1d3410(0xa5)](),_0x28590e=_0x17983e[_0x1d3410(0x94)](_0x1d3410(0xc7))[_0x1d3410(0xa5)](),_0x596427=_0x17983e[_0x1d3410(0x94)](_0x1d3410(0xbf))[_0x1d3410(0xa5)](),_0x50d04d=resolveWorkspaceEnv(_0x596427||_0x17983e['envName']||DEFAULT_CONFIG_VALUES[_0x1d3410(0xbf)]);if(!_0x1bee90&&!_0x28590e)throw CliErrors[_0x1d3410(0x91)](_0x1d3410(0x9c),_0x1d3410(0xc5)+CLI_BIN_NAME+_0x1d3410(0xa1)+_0x32cd61+_0x1d3410(0xc8)+CLI_BIN_NAME+_0x1d3410(0xa1)+_0x32cd61+_0x1d3410(0xbe));if(_0x1bee90&&_0x28590e)throw CliErrors[_0x1d3410(0x91)](_0x1d3410(0xb4),_0x1d3410(0xce));const _0x5bd856=resolveWriteConfigPath(_0x1d3410(0xb0)),_0x5da177=readConfigFile(_0x5bd856);assertWorkspaceCommandState(_0x32cd61,_0x5da177);const _0x276092=_0x28590e||await resolveRemoteAppCode({'command':_0x32cd61,'appName':_0x1bee90,'env':_0x50d04d,'accessKey':_0x17983e['accessKey']});return writeWorkspaceConfig({'command':_0x32cd61,'appName':_0x1bee90,'appcode':_0x276092,'env':_0x50d04d,'shouldWriteEnv':!!_0x596427,'accessKey':_0x17983e[_0x1d3410(0xbd)]},_0x5bd856,_0x5da177),{'ok':!![],'data':{'configPath':_0x5bd856,'app':_0x1bee90||null,'appcode':_0x276092,'env':_0x596427?_0x50d04d:null,'accessKeyWritten':![],'command':_0x1d3410(0xca)+_0x32cd61},'message':buildWorkspaceMessage(_0x5bd856,_0x1bee90,_0x276092,_0x596427?_0x50d04d:undefined)};}async function resolveRemoteAppCode(_0x127f5a){const _0xccf97=a86_0x136f72;if(!_0x127f5a[_0xccf97(0xbd)])throw CliErrors[_0xccf97(0xa7)](_0xccf97(0x96)+CLI_BIN_NAME+_0xccf97(0xa1)+_0x127f5a[_0xccf97(0xa8)]+'.');const {setActiveAK:_0x5ab9f0}=await import(_0xccf97(0xc9)),{getRemoteAppList:_0x4ce93a}=await import(_0xccf97(0xab));_0x5ab9f0(_0x127f5a[_0xccf97(0xbd)]);const _0x4066f2=await _0x4ce93a({'env':_0x127f5a[_0xccf97(0xbf)],'accessKey':_0x127f5a['accessKey'],'noCache':![]}),_0x4b5286=findAppByName(_0x4066f2[_0xccf97(0xa0)],_0x127f5a[_0xccf97(0xaa)]);if(_0x4b5286&&!isRuntimeAccessibleApp(_0x4b5286))throw runtimeInaccessibleAppError(_0x4b5286,'\x22'+_0x127f5a[_0xccf97(0xaa)]+'\x22');const _0x2104be=_0x4b5286?.[_0xccf97(0x93)]?.[_0xccf97(0xa5)]();if(_0x2104be)return _0x2104be;const _0x917e20=_0x4066f2[_0xccf97(0xa0)][_0xccf97(0x9f)](_0x4bdc42=>_0x4bdc42['appName'])['filter'](Boolean),_0x1ce838=_0x917e20[_0xccf97(0x9d)]?'Available\x20apps:\x20'+Array[_0xccf97(0xc3)](new Set(_0x917e20))[_0xccf97(0xcd)](',\x20')+'.':_0xccf97(0xc0)+CLI_BIN_NAME+'\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20pass\x20--appcode\x20directly.';throw CliErrors[_0xccf97(0x91)]('App\x20\x22'+_0x127f5a[_0xccf97(0xaa)]+_0xccf97(0xba),_0x1ce838);}function writeWorkspaceConfig(_0x57d81c,_0x54be99,_0x16ef83){const _0x252642=a86_0x136f72;_0x57d81c['shouldWriteEnv']&&(_0x16ef83[_0x252642(0xbf)]=_0x57d81c[_0x252642(0xbf)]);if(_0x57d81c['appName']){const _0x47b85d=isRecord(_0x16ef83[_0x252642(0xbb)])?{..._0x16ef83[_0x252642(0xbb)]}:{},_0x2ce6d1=isRecord(_0x47b85d[_0x57d81c[_0x252642(0xaa)]])?_0x47b85d[_0x57d81c[_0x252642(0xaa)]]:{};return _0x47b85d[_0x57d81c[_0x252642(0xaa)]]={..._0x2ce6d1,'appcode':_0x57d81c[_0x252642(0xc7)]},_0x16ef83[_0x252642(0xbb)]=_0x47b85d,_0x16ef83[_0x252642(0xc1)]=_0x57d81c[_0x252642(0xaa)],delete _0x16ef83[_0x252642(0xc7)],delete _0x16ef83['app'],writeAndReturn(_0x54be99,_0x16ef83);}return _0x16ef83[_0x252642(0xc7)]=_0x57d81c[_0x252642(0xc7)],delete _0x16ef83[_0x252642(0xc1)],delete _0x16ef83[_0x252642(0xad)],writeAndReturn(_0x54be99,_0x16ef83);}function writeAndReturn(_0x3c1ca1,_0x18f637){return writeConfigFile(_0x3c1ca1,_0x18f637),_0x3c1ca1;}function resolveWorkspaceEnv(_0x5d228a){const _0x18e680=a86_0x136f72;if(RUNTIME_ENV_VALUES[_0x18e680(0xc6)](_0x5d228a))return _0x5d228a;throw CliErrors[_0x18e680(0x91)](_0x18e680(0xc2)+_0x5d228a+_0x18e680(0x98)+RUNTIME_ENV_VALUES['join'](',\x20'));}function buildWorkspaceMessage(_0x16de84,_0x2075d5,_0x4f2d46,_0x57297c){const _0x1b19f4=a86_0x136f72,_0x5971f3=_0x2075d5?_0x2075d5+'\x20('+_0x4f2d46+')':_0x4f2d46,_0x313500=_0x57297c?_0x1b19f4(0x90)+_0x57297c:'';return'Workspace\x20configured.\x0aConfig\x20file:\x20'+_0x16de84+_0x1b19f4(0xb7)+_0x5971f3+_0x313500+_0x1b19f4(0xaf);}function isRecord(_0x2f7c03){const _0x4cf665=a86_0x136f72;return typeof _0x2f7c03===_0x4cf665(0xa3)&&_0x2f7c03!==null&&!Array['isArray'](_0x2f7c03);}function hasWorkspaceAppBinding(_0x2ed620){const _0x115246=a86_0x136f72;if(typeof _0x2ed620['appcode']===_0x115246(0xcb)&&_0x2ed620['appcode'][_0x115246(0xa5)]()[_0x115246(0x9d)]>0x0)return!![];if(typeof _0x2ed620[_0x115246(0xc1)]!==_0x115246(0xcb)||!_0x2ed620[_0x115246(0xc1)][_0x115246(0xa5)]())return![];if(!isRecord(_0x2ed620[_0x115246(0xbb)]))return![];const _0xd3a589=_0x2ed620['apps'][_0x2ed620['defaultApp'][_0x115246(0xa5)]()];return isRecord(_0xd3a589)&&typeof _0xd3a589[_0x115246(0xc7)]===_0x115246(0xcb)&&_0xd3a589['appcode'][_0x115246(0xa5)]()[_0x115246(0x9d)]>0x0;}function assertWorkspaceCommandState(_0x132058,_0x3ccf70){const _0x365ab6=a86_0x136f72,_0x3dc70f=hasWorkspaceAppBinding(_0x3ccf70);if(_0x132058===_0x365ab6(0xb5)&&_0x3dc70f)throw CliErrors[_0x365ab6(0x91)]('Workspace\x20app\x20context\x20is\x20already\x20initialized.',_0x365ab6(0xb2)+CLI_BIN_NAME+_0x365ab6(0xb1)+CLI_BIN_NAME+'\x20workspace\x20use\x20--appcode\x20<code>`\x20to\x20change\x20it.');if(_0x132058==='use'&&!_0x3dc70f)throw CliErrors[_0x365ab6(0x91)](_0x365ab6(0xa9),_0x365ab6(0xc0)+CLI_BIN_NAME+_0x365ab6(0xb6)+CLI_BIN_NAME+'\x20workspace\x20init\x20--appcode\x20<code>`\x20first.');}function makeWorkspaceCommand(_0x489226){const _0x2a6469=a86_0x136f72;return{'service':_0x2a6469(0xcc),'command':_0x489226,'description':_0x489226===_0x2a6469(0xb5)?_0x2a6469(0xb8):_0x2a6469(0xac),'risk':'write','confirmationDescription':_0x489226===_0x2a6469(0xb5)?_0x2a6469(0x99):_0x2a6469(0xcf),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':WORKSPACE_USE_FLAGS,async 'execute'(_0x4ad083){return executeWorkspaceUse(_0x4ad083,_0x489226);}};}function a86_0x3a2d(_0x40fc5d,_0x2fa197){_0x40fc5d=_0x40fc5d-0x90;const _0x7d6d1b=a86_0x7d6d();let _0x3a2d51=_0x7d6d1b[_0x40fc5d];return _0x3a2d51;}function a86_0x7d6d(){const _0x5c23f7=['Usage:\x20','includes','appcode','\x20--app\x20<name>\x20[--env\x20daily]\x20or\x20','../../core/api-client.js','workspace\x20','string','workspace','join','Pass\x20either\x20--app\x20<name>\x20or\x20--appcode\x20<code>,\x20not\x20both.','将更新当前工作目录已有的应用绑定,并把所选应用设为该目录的默认应用;不会写入\x20AccessKey。','\x0aEnv:\x20','validation','3vFcMfs','appCode','str','884080dZNTME','Resolving\x20--app\x20requires\x20accessKey.\x20Pass\x20--appcode\x20directly,\x20or\x20set\x20accessKey\x20before\x20running\x20','App\x20code\x20to\x20bind\x20directly','\x22.\x20Allowed:\x20','将在尚未绑定应用的当前工作目录写入\x20Lovrabet\x20项目配置,并把所选应用设为该目录的默认应用;不会写入\x20AccessKey。','1024864mvgEWf','Target\x20environment','Missing\x20workspace\x20app\x20selector.','length','319722lWbere','map','items','\x20workspace\x20','74290uOcdWo','object','360UgGhBt','trim','App\x20name\x20to\x20bind\x20as\x20the\x20current\x20workspace\x20default','authRequired','command','Workspace\x20app\x20context\x20is\x20not\x20initialized.','appName','../../commands/app/remote-source.js','修改当前工作目录已有绑定的应用上下文','app','6AXSlqW','\x0aAccessKey:\x20not\x20written','project','\x20workspace\x20use\x20--app\x20<name>`\x20or\x20`','Use\x20`','3132171fmWMOB','Conflicting\x20workspace\x20app\x20selectors.','init','\x20workspace\x20init\x20--app\x20<name>`\x20or\x20`','\x0aDefault\x20app:\x20','为尚未绑定应用的当前工作目录初始化应用上下文','64790BKouOW','\x22\x20not\x20found.','apps','use','accessKey','\x20--appcode\x20<code>\x20[--env\x20daily]','env','Run\x20`','defaultApp','Invalid\x20env\x20\x22','from','945784MPCkco'];a86_0x7d6d=function(){return _0x5c23f7;};return a86_0x7d6d();}export const workspaceDefinitions=[makeWorkspaceCommand(a86_0x136f72(0xb5)),makeWorkspaceCommand(a86_0x136f72(0xbc))];
|
package/lib/config/schema.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a87_0x1b39d9=a87_0x1c95;(function(_0x346799,_0x35a3a3){const _0x3acece=a87_0x1c95,_0x2c12c5=_0x346799();while(!![]){try{const _0x222e43=-parseInt(_0x3acece(0x116))/0x1+-parseInt(_0x3acece(0x113))/0x2*(parseInt(_0x3acece(0x102))/0x3)+-parseInt(_0x3acece(0xfa))/0x4+-parseInt(_0x3acece(0xf9))/0x5*(-parseInt(_0x3acece(0x118))/0x6)+-parseInt(_0x3acece(0x111))/0x7*(-parseInt(_0x3acece(0x109))/0x8)+-parseInt(_0x3acece(0x10e))/0x9*(-parseInt(_0x3acece(0x10c))/0xa)+-parseInt(_0x3acece(0xfc))/0xb*(-parseInt(_0x3acece(0x112))/0xc);if(_0x222e43===_0x35a3a3)break;else _0x2c12c5['push'](_0x2c12c5['shift']());}catch(_0x551b27){_0x2c12c5['push'](_0x2c12c5['shift']());}}}(a87_0x344b,0x9923b));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':a87_0x1b39d9(0xfd),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':RUNTIME_ENV_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a87_0x1b39d9(0x10f)],'importable':!![]},'format':{'description':'Default\x20output\x20format','topLevel':!![],'cliSettableTopLevel':!![],'enumValues':OUTPUT_FORMAT_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES['format'],'importable':!![]},'pageSize':{'description':a87_0x1b39d9(0x100),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'apiDomain':{'description':a87_0x1b39d9(0x103),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'userDomain':{'description':a87_0x1b39d9(0x10b),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'runtimeDomain':{'description':a87_0x1b39d9(0x106),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'skillHubDomain':{'description':a87_0x1b39d9(0x114),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'accessKey':{'description':a87_0x1b39d9(0x10d),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'riskLevel':{'description':a87_0x1b39d9(0x110),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a87_0x1b39d9(0x105)],'importable':!![]},'locale':{'description':a87_0x1b39d9(0xff),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES['locale'],'importable':!![],'legacyCompatOnly':!![]}};export const TOP_LEVEL_CONFIG_KEYS=new Set(Object[a87_0x1b39d9(0xfb)](CONFIG_FIELD_SCHEMAS)[a87_0x1b39d9(0x108)](([,_0x5a6054])=>_0x5a6054[a87_0x1b39d9(0x115)])['map'](([_0x34333d])=>_0x34333d));export const CONFIG_ENUM_VALUES=Object['fromEntries'](Object[a87_0x1b39d9(0xfb)](CONFIG_FIELD_SCHEMAS)['filter'](([,_0x87668b])=>_0x87668b[a87_0x1b39d9(0xfe)])[a87_0x1b39d9(0x101)](([_0x24db97,_0x49802d])=>[_0x24db97,[..._0x49802d[a87_0x1b39d9(0xfe)]||[]]]));function a87_0x344b(){const _0xd19633=['Access\x20key\x20(client-ak\x20auth)','135XOheYG','env','Risk\x20level','7cequgU','58332GDWuXo','65752vueImT','Override\x20SkillHub\x20domain','cliSettableTopLevel','470872xQrcqV','join','450798JcbOKU','25EBsRRl','3975904wxzblV','entries','5434nsvtKI','Target\x20environment','enumValues','Locale','Default\x20page\x20size','map','99HXaHDu','Override\x20API\x20domain','importable','riskLevel','Override\x20runtime\x20domain','legacyCompatOnly','filter','2330008fnqIBl','defaultValue','Override\x20user\x20domain','72510ORDhCb'];a87_0x344b=function(){return _0xd19633;};return a87_0x344b();}export const IMPORTABLE_RUNTIME_CONFIG_KEYS=Object[a87_0x1b39d9(0xfb)](CONFIG_FIELD_SCHEMAS)[a87_0x1b39d9(0x108)](([,_0x22ee47])=>_0x22ee47[a87_0x1b39d9(0x104)])[a87_0x1b39d9(0x101)](([_0x36ae0d])=>_0x36ae0d);export function getConfigFieldSchema(_0x11e7be){return CONFIG_FIELD_SCHEMAS[_0x11e7be];}export function getConfigEnumValues(_0x1a3881){const _0x5274d9=a87_0x1b39d9;return getConfigFieldSchema(_0x1a3881)?.[_0x5274d9(0xfe)];}export function getConfigDefaultValue(_0x186429){const _0x1f2b9e=a87_0x1b39d9;return getConfigFieldSchema(_0x186429)?.[_0x1f2b9e(0x10a)];}export function isTopLevelConfigKey(_0x33b918){return TOP_LEVEL_CONFIG_KEYS['has'](_0x33b918);}export function isLegacyCompatConfigKey(_0x31b5ba){const _0x5e62bc=a87_0x1b39d9;return getConfigFieldSchema(_0x31b5ba)?.[_0x5e62bc(0x107)]===!![];}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function formatConfigKeyList(_0x225420){const _0x4ec9ee=a87_0x1b39d9;return[..._0x225420][_0x4ec9ee(0x117)](',\x20');}function a87_0x1c95(_0x40dee0,_0x272d4c){_0x40dee0=_0x40dee0-0xf9;const _0x344bd6=a87_0x344b();let _0x1c95b8=_0x344bd6[_0x40dee0];return _0x1c95b8;}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){return'Config\x20key.\x20Top-level:\x20'+getTopLevelConfigKeySummary()+';\x20local\x20alias:\x20apps.<alias>.appcode';}export function buildAppProfileListFields(_0x29d06d){return{'env':_0x29d06d,'hasAccessKey':![],'format':null,'pageSize':null,'riskLevel':null,'locale':null};}
|
package/lib/constant/app.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a88_0x5170a3=a88_0x12b1;(function(_0x1c1cf0,_0xe43c64){const _0xdcc16b=a88_0x12b1,_0xc14372=_0x1c1cf0();while(!![]){try{const _0x52d889=-parseInt(_0xdcc16b(0x193))/0x1*(parseInt(_0xdcc16b(0x191))/0x2)+-parseInt(_0xdcc16b(0x18e))/0x3+parseInt(_0xdcc16b(0x190))/0x4+-parseInt(_0xdcc16b(0x18f))/0x5*(-parseInt(_0xdcc16b(0x18d))/0x6)+parseInt(_0xdcc16b(0x195))/0x7+-parseInt(_0xdcc16b(0x18c))/0x8+parseInt(_0xdcc16b(0x194))/0x9;if(_0x52d889===_0xe43c64)break;else _0xc14372['push'](_0xc14372['shift']());}catch(_0x19a7c0){_0xc14372['push'](_0xc14372['shift']());}}}(a88_0x8697,0x7db95));function a88_0x12b1(_0x2c198f,_0x38ff89){_0x2c198f=_0x2c198f-0x18c;const _0x86979=a88_0x8697();let _0x12b14d=_0x86979[_0x2c198f];return _0x12b14d;}export const APP_PUBLISH_STATUS={'Published':'PUBLISHED','Unpublished':a88_0x5170a3(0x192)};export const RUNTIME_ACCESSIBLE_APP_STATUS=APP_PUBLISH_STATUS['Published'];function a88_0x8697(){const _0x2098f0=['1eugjlj','14279112setOSW','5296221UHrIoB','7508232ZVyXGr','6kVCpoP','2800056DEHKHz','3247980nmVpha','482860fCdjJw','1453272dzfUIC','UNPUBLISH'];a88_0x8697=function(){return _0x2098f0;};return a88_0x8697();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a89_0xeb9b12=a89_0x4e61;(function(_0x734c46,_0x5f4766){const _0x465ea0=a89_0x4e61,_0x5f6902=_0x734c46();while(!![]){try{const _0x36ae47=parseInt(_0x465ea0(0x123))/0x1+parseInt(_0x465ea0(0x128))/0x2*(-parseInt(_0x465ea0(0x126))/0x3)+parseInt(_0x465ea0(0x122))/0x4+-parseInt(_0x465ea0(0x127))/0x5*(-parseInt(_0x465ea0(0x12b))/0x6)+-parseInt(_0x465ea0(0x125))/0x7+parseInt(_0x465ea0(0x129))/0x8+parseInt(_0x465ea0(0x124))/0x9;if(_0x36ae47===_0x5f4766)break;else _0x5f6902['push'](_0x5f6902['shift']());}catch(_0x3382e0){_0x5f6902['push'](_0x5f6902['shift']());}}}(a89_0x4a7f,0x219e0));export const AUTH_MODE={'ClientAk':a89_0xeb9b12(0x12c)};function a89_0x4e61(_0x252890,_0x3bc88a){_0x252890=_0x252890-0x122;const _0x4a7fe5=a89_0x4a7f();let _0x4e616d=_0x4a7fe5[_0x252890];return _0x4e616d;}function a89_0x4a7f(){const _0xdf9f45=['client-ak','76360YPIoVa','148747hHmdpl','330444BcJGAR','1540749zJdHXf','15cdjZeQ','5MjJuFl','106906CtBplV','1902272cdqGzf','ClientAk','1096386OrwTXf'];a89_0x4a7f=function(){return _0xdf9f45;};return a89_0x4a7f();}export function isAuthMode(_0x40d10c){const _0x1d63d0=a89_0xeb9b12;return _0x40d10c===AUTH_MODE[_0x1d63d0(0x12a)];}
|
package/lib/constant/cli.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a90_0x672207=a90_0x3978;(function(_0x46a146,_0xb50c29){const _0x47c7e4=a90_0x3978,_0x53ab87=_0x46a146();while(!![]){try{const _0xc781e0=parseInt(_0x47c7e4(0x16c))/0x1+parseInt(_0x47c7e4(0x17d))/0x2+-parseInt(_0x47c7e4(0x166))/0x3+parseInt(_0x47c7e4(0x174))/0x4+parseInt(_0x47c7e4(0x16a))/0x5*(parseInt(_0x47c7e4(0x183))/0x6)+-parseInt(_0x47c7e4(0x17b))/0x7+-parseInt(_0x47c7e4(0x163))/0x8*(parseInt(_0x47c7e4(0x168))/0x9);if(_0xc781e0===_0xb50c29)break;else _0x53ab87['push'](_0x53ab87['shift']());}catch(_0xfccffa){_0x53ab87['push'](_0x53ab87['shift']());}}}(a90_0x427e,0xd362e));import{PRODUCT_CONFIG}from'../constant/product.js';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';export const CLI_BIN_NAME=PRODUCT_CONFIG[a90_0x672207(0x16f)];function a90_0x3978(_0x4ac7b0,_0x5036c2){_0x4ac7b0=_0x4ac7b0-0x161;const _0x427ee9=a90_0x427e();let _0x397816=_0x427ee9[_0x4ac7b0];return _0x397816;}export const CLI_DISPLAY_NAME=PRODUCT_CONFIG[a90_0x672207(0x162)];export const NPM_PACKAGE_NAME=LOVRABET_NPM_PACKAGE_NAME;function a90_0x427e(){const _0x3562fc=['non-interactive','<code>','534CnqbxZ','<name>','JSON\x20params\x20for\x20execute\x20commands','production\x20|\x20development\x20|\x20daily','sqlcode','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','Select\x20app\x20profile\x20by\x20name','dryRun','Name\x20filter','appcode','clear','Environment','json\x20|\x20pretty\x20|\x20compress','env','boolean','cliDisplayName','24GufyHm','dry-run','params','4346142fpVOtk','type','890523yObXIV','map','95385xZdryq','help','342033UTasQf','app','string','cliBinName','meowKey','yes','Use\x20global\x20config\x20scope','name','3980640cGFSiQ','Output\x20format','format','Verbose\x20output','<expr>','nonInteractive','SQL\x20query\x20code','10283315NlLRcN','global','2090784ZfPmSI','verbose','Preview\x20operation\x20without\x20executing','Clear\x20output'];a90_0x427e=function(){return _0x3562fc;};return a90_0x427e();}export const GLOBAL_FLAGS=[{'name':a90_0x672207(0x18c),'meowKey':a90_0x672207(0x18c),'type':a90_0x672207(0x16e),'description':'Override\x20appcode','hint':a90_0x672207(0x182)},{'name':a90_0x672207(0x16d),'meowKey':'app','type':a90_0x672207(0x16e),'description':a90_0x672207(0x189),'hint':a90_0x672207(0x184)},{'name':a90_0x672207(0x190),'meowKey':a90_0x672207(0x190),'type':a90_0x672207(0x16e),'description':a90_0x672207(0x18e),'hint':a90_0x672207(0x186)},{'name':'format','meowKey':a90_0x672207(0x176),'type':a90_0x672207(0x16e),'description':a90_0x672207(0x175),'hint':a90_0x672207(0x18f)},{'name':'jq','meowKey':'jq','type':a90_0x672207(0x16e),'description':a90_0x672207(0x188),'hint':a90_0x672207(0x178)},{'name':'dry-run','meowKey':a90_0x672207(0x18a),'type':'boolean','description':a90_0x672207(0x17f)},{'name':a90_0x672207(0x171),'meowKey':a90_0x672207(0x171),'type':a90_0x672207(0x161),'description':'Skip\x20confirmation\x20for\x20high-risk\x20writes'},{'name':a90_0x672207(0x181),'meowKey':a90_0x672207(0x179),'type':'boolean','description':'Force\x20non-interactive\x20mode\x20(CI)'},{'name':a90_0x672207(0x17c),'meowKey':'global','type':a90_0x672207(0x161),'description':a90_0x672207(0x172)},{'name':'ci','meowKey':'ci','type':a90_0x672207(0x161),'description':'Alias\x20for\x20--non-interactive','hidden':!![]},{'name':a90_0x672207(0x16b),'meowKey':a90_0x672207(0x16b),'type':'boolean','description':'Show\x20help'},{'name':'id','meowKey':'id','type':a90_0x672207(0x16e),'description':'Record\x20ID','hidden':!![]},{'name':'name','meowKey':a90_0x672207(0x173),'type':a90_0x672207(0x16e),'description':a90_0x672207(0x18b),'hidden':!![]},{'name':a90_0x672207(0x187),'meowKey':'sqlcode','type':a90_0x672207(0x16e),'description':a90_0x672207(0x17a),'hidden':!![]},{'name':'params','meowKey':a90_0x672207(0x165),'type':a90_0x672207(0x16e),'description':a90_0x672207(0x185),'hidden':!![]},{'name':'verbose','meowKey':a90_0x672207(0x17e),'type':a90_0x672207(0x161),'description':a90_0x672207(0x177),'hidden':!![]},{'name':a90_0x672207(0x18d),'meowKey':a90_0x672207(0x18d),'type':'boolean','description':a90_0x672207(0x180),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a90_0x672207(0x18c),a90_0x672207(0x16d),a90_0x672207(0x190),a90_0x672207(0x176),'jq',a90_0x672207(0x164),a90_0x672207(0x171),a90_0x672207(0x181),'ci']);export function buildMeowFlags(){const _0x398b98=a90_0x672207;return Object['fromEntries'](GLOBAL_FLAGS[_0x398b98(0x169)](_0x2085f9=>[_0x2085f9[_0x398b98(0x170)],{'type':_0x2085f9[_0x398b98(0x167)]}]));}
|
package/lib/constant/defaults.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a91_0x5564a6=a91_0x31c2;(function(_0x2b7562,_0x119aa9){const _0x138ca6=a91_0x31c2,_0x10c645=_0x2b7562();while(!![]){try{const _0x5531ac=parseInt(_0x138ca6(0x12c))/0x1+-parseInt(_0x138ca6(0x129))/0x2+-parseInt(_0x138ca6(0x12b))/0x3*(-parseInt(_0x138ca6(0x12a))/0x4)+-parseInt(_0x138ca6(0x127))/0x5*(parseInt(_0x138ca6(0x131))/0x6)+parseInt(_0x138ca6(0x12d))/0x7+-parseInt(_0x138ca6(0x130))/0x8*(-parseInt(_0x138ca6(0x12f))/0x9)+-parseInt(_0x138ca6(0x128))/0xa;if(_0x5531ac===_0x119aa9)break;else _0x10c645['push'](_0x10c645['shift']());}catch(_0x2f97a6){_0x10c645['push'](_0x10c645['shift']());}}}(a91_0x25a7,0xc6f42));export const DEFAULT_APP_PROFILE_NAME='main';function a91_0x31c2(_0x3969d8,_0x3930b2){_0x3969d8=_0x3969d8-0x126;const _0x25a7e0=a91_0x25a7();let _0x31c20b=_0x25a7e0[_0x3969d8];return _0x31c20b;}export const DEFAULT_CONFIG_VALUES={'env':a91_0x5564a6(0x12e),'format':a91_0x5564a6(0x126),'locale':'en-US','riskLevel':'write'};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a91_0x5564a6(0x126);function a91_0x25a7(){const _0x111c4c=['7693518tXSnsr','production','4974741xDVfXy','16ADvMTp','1446BfJZda','compress','20245yEFPfg','20658510guBxVA','2254966SXZuDP','113128jADCUm','159bXlZCk','1280539fyFjKt'];a91_0x25a7=function(){return _0x111c4c;};return a91_0x25a7();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a92_0x263027=a92_0x1ae1;(function(_0x1e9cb4,_0x5b1995){const _0x39992b=a92_0x1ae1,_0x22ed0f=_0x1e9cb4();while(!![]){try{const _0x43824c=parseInt(_0x39992b(0x186))/0x1+-parseInt(_0x39992b(0x17c))/0x2*(-parseInt(_0x39992b(0x183))/0x3)+-parseInt(_0x39992b(0x17d))/0x4+-parseInt(_0x39992b(0x17f))/0x5*(-parseInt(_0x39992b(0x185))/0x6)+parseInt(_0x39992b(0x17e))/0x7+parseInt(_0x39992b(0x184))/0x8+-parseInt(_0x39992b(0x181))/0x9;if(_0x43824c===_0x5b1995)break;else _0x22ed0f['push'](_0x22ed0f['shift']());}catch(_0x478bb1){_0x22ed0f['push'](_0x22ed0f['shift']());}}}(a92_0x5301,0x1a535));import{PRODUCT_CONFIG}from'../constant/product.js';function a92_0x1ae1(_0x8c70a4,_0x810d59){_0x8c70a4=_0x8c70a4-0x17c;const _0x5301c5=a92_0x5301();let _0x1ae174=_0x5301c5[_0x8c70a4];return _0x1ae174;}export const LOVRABET_NPM_PACKAGE_NAME=PRODUCT_CONFIG[a92_0x263027(0x182)];export const LOVRABET_SKILL_SOURCE=PRODUCT_CONFIG['skillSource'];function a92_0x5301(){const _0x1cf98f=['81576dBagnU','304934spXlYV','5gRfvmE','npmRegistryBaseUrl','3806901vhiHSF','npmPackageName','6hjhRWs','1236872goYqbx','106878ystADd','139346IDwnHb','195882PhmJMb'];a92_0x5301=function(){return _0x1cf98f;};return a92_0x5301();}export const NPM_REGISTRY_BASE_URL=PRODUCT_CONFIG[a92_0x263027(0x180)];
|
package/lib/constant/domain.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a93_0x3e1237=a93_0x3d3a;(function(_0x5a1cd5,_0x813d39){const _0x15a662=a93_0x3d3a,_0x2d4abf=_0x5a1cd5();while(!![]){try{const _0x4e88e8=parseInt(_0x15a662(0xa2))/0x1*(-parseInt(_0x15a662(0xa3))/0x2)+parseInt(_0x15a662(0x93))/0x3+-parseInt(_0x15a662(0x94))/0x4+parseInt(_0x15a662(0x92))/0x5*(-parseInt(_0x15a662(0xa0))/0x6)+parseInt(_0x15a662(0x97))/0x7*(-parseInt(_0x15a662(0x99))/0x8)+-parseInt(_0x15a662(0x95))/0x9*(-parseInt(_0x15a662(0x90))/0xa)+parseInt(_0x15a662(0x98))/0xb*(parseInt(_0x15a662(0x9d))/0xc);if(_0x4e88e8===_0x813d39)break;else _0x2d4abf['push'](_0x2d4abf['shift']());}catch(_0x13a0aa){_0x2d4abf['push'](_0x2d4abf['shift']());}}}(a93_0xf6fe,0x4612d));import{getEnv,isProduction}from'../constant/env.js';import{PRODUCT_CONFIG}from'../constant/product.js';let customApiDomain,customUserDomain,customRuntimeDomain,customSkillHubDomain;export function initDomains(_0x392608){const _0x33f6b8=a93_0x3d3a;customApiDomain=_0x392608?.[_0x33f6b8(0x91)],customUserDomain=_0x392608?.['userDomain'],customRuntimeDomain=_0x392608?.[_0x33f6b8(0x9a)],customSkillHubDomain=_0x392608?.[_0x33f6b8(0x8f)];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a93_0x3e1237(0xa1)][a93_0x3e1237(0x9e)][a93_0x3e1237(0x96)]:PRODUCT_CONFIG[a93_0x3e1237(0xa1)][a93_0x3e1237(0x9b)][a93_0x3e1237(0x96)]);export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a93_0x3e1237(0xa1)]['production'][a93_0x3e1237(0x9c)]:PRODUCT_CONFIG[a93_0x3e1237(0xa1)][a93_0x3e1237(0x9b)][a93_0x3e1237(0x9c)]);function a93_0x3d3a(_0x5150e6,_0x5d6921){_0x5150e6=_0x5150e6-0x8f;const _0xf6fe38=a93_0xf6fe();let _0x3d3ab2=_0xf6fe38[_0x5150e6];return _0x3d3ab2;}function a93_0xf6fe(){const _0x45b0aa=['runtimeDomain','nonProduction','api','2589972spNLst','production','runtime','12oqadNL','domains','299xDiysE','8bniccq','skillHubDomain','60GQzvDK','apiDomain','603010bJgSmy','1363398PVIegT','1417600FRcxBF','113976XQjCDx','user','182679AutJfu','22INjjVA','24fhRHPT'];a93_0xf6fe=function(){return _0x45b0aa;};return a93_0xf6fe();}export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a93_0x3e1237(0xa1)][a93_0x3e1237(0x9e)][a93_0x3e1237(0x9f)]:PRODUCT_CONFIG['domains']['nonProduction'][a93_0x3e1237(0x9f)]);export const getSkillHubDomain=()=>customSkillHubDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a93_0x3e1237(0xa1)][a93_0x3e1237(0x9e)]['skillhub']:PRODUCT_CONFIG[a93_0x3e1237(0xa1)][a93_0x3e1237(0x9b)]['skillhub']);
|
package/lib/constant/env.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a94_0x1f74(){const _0x2008c1=['76170FjvZmi','dev','production','100AltClL','5034pVTMHq','2060724CpVvBg','1413FXTEfm','13755IeLywd','1191659cSwPaL','31976vvTZGh','242SkRUCj','21893030cuFFIu','daily','development'];a94_0x1f74=function(){return _0x2008c1;};return a94_0x1f74();}const a94_0x262bc4=a94_0x3aa3;(function(_0x50885c,_0x49bb91){const _0x3dea1d=a94_0x3aa3,_0x5f0db9=_0x50885c();while(!![]){try{const _0x3c5c5d=parseInt(_0x3dea1d(0x1c7))/0x1*(-parseInt(_0x3dea1d(0x1cf))/0x2)+-parseInt(_0x3dea1d(0x1c4))/0x3*(parseInt(_0x3dea1d(0x1ce))/0x4)+parseInt(_0x3dea1d(0x1cb))/0x5+-parseInt(_0x3dea1d(0x1c2))/0x6+-parseInt(_0x3dea1d(0x1c5))/0x7+-parseInt(_0x3dea1d(0x1c6))/0x8*(parseInt(_0x3dea1d(0x1c3))/0x9)+parseInt(_0x3dea1d(0x1c8))/0xa;if(_0x3c5c5d===_0x49bb91)break;else _0x5f0db9['push'](_0x5f0db9['shift']());}catch(_0x5e80c1){_0x5f0db9['push'](_0x5f0db9['shift']());}}}(a94_0x1f74,0x52e7a));import{productEnv}from'../constant/product.js';export const RUNTIME_ENV_VALUES=[a94_0x262bc4(0x1cd),a94_0x262bc4(0x1ca),a94_0x262bc4(0x1c9)];export function normalizeEnv(_0x3f9fab){return _0x3f9fab==='online'?'production':_0x3f9fab;}export function isProduction(_0x746fe){const _0x17ac7c=a94_0x262bc4;return normalizeEnv(_0x746fe)===_0x17ac7c(0x1cd);}function a94_0x3aa3(_0x5d9892,_0x104da5){_0x5d9892=_0x5d9892-0x1c2;const _0x1f745e=a94_0x1f74();let _0x3aa376=_0x1f745e[_0x5d9892];return _0x3aa376;}export function isDaily(_0x5c7024){const _0x3fe56d=a94_0x262bc4;return normalizeEnv(_0x5c7024)===_0x3fe56d(0x1c9);}export function isDev(_0x5b0a72){const _0x4cf69e=a94_0x262bc4,_0x4b3d0c=normalizeEnv(_0x5b0a72);return _0x4b3d0c===_0x4cf69e(0x1ca)||_0x4b3d0c===_0x4cf69e(0x1cc);}let env=normalizeEnv(productEnv('ENV')||a94_0x262bc4(0x1cd));export function getEnv(){return env;}export function initEnv(_0x2c07e8){env=normalizeEnv(_0x2c07e8);}
|
package/lib/constant/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a95_0x2cb2(){const _0x4d580c=['192858ELVjbB','55845iPATSa','4FQJQKn','28lOBYYD','26230TSQsbh','1650306tOBIjo','1165660oCdoYT','pretty','compress','49YfrRas','1302498fOUuhj','328872wPRuyT','json'];a95_0x2cb2=function(){return _0x4d580c;};return a95_0x2cb2();}const a95_0x5942f3=a95_0x5a58;function a95_0x5a58(_0x29229e,_0x403a61){_0x29229e=_0x29229e-0x1c8;const _0x2cb2e6=a95_0x2cb2();let _0x5a5863=_0x2cb2e6[_0x29229e];return _0x5a5863;}(function(_0x14c7cf,_0x68b455){const _0x214886=a95_0x5a58,_0x408f7e=_0x14c7cf();while(!![]){try{const _0x145d9d=parseInt(_0x214886(0x1d1))/0x1*(parseInt(_0x214886(0x1d3))/0x2)+parseInt(_0x214886(0x1d2))/0x3*(parseInt(_0x214886(0x1d4))/0x4)+parseInt(_0x214886(0x1c8))/0x5+-parseInt(_0x214886(0x1c9))/0x6+parseInt(_0x214886(0x1cd))/0x7*(parseInt(_0x214886(0x1cf))/0x8)+-parseInt(_0x214886(0x1ce))/0x9+-parseInt(_0x214886(0x1ca))/0xa;if(_0x145d9d===_0x68b455)break;else _0x408f7e['push'](_0x408f7e['shift']());}catch(_0x529550){_0x408f7e['push'](_0x408f7e['shift']());}}}(a95_0x2cb2,0x42933));export const OUTPUT_FORMAT_VALUES=[a95_0x5942f3(0x1d0),a95_0x5942f3(0x1cb),a95_0x5942f3(0x1cc)];
|
package/lib/constant/product.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a96_0x3eee3b=a96_0x195d;(function(_0x5819a6,_0x1e8c46){const _0x52d14f=a96_0x195d,_0x10ecce=_0x5819a6();while(!![]){try{const _0x4caf7b=-parseInt(_0x52d14f(0x111))/0x1+-parseInt(_0x52d14f(0x126))/0x2+parseInt(_0x52d14f(0x129))/0x3*(-parseInt(_0x52d14f(0x122))/0x4)+-parseInt(_0x52d14f(0x11c))/0x5*(-parseInt(_0x52d14f(0x114))/0x6)+-parseInt(_0x52d14f(0x124))/0x7*(-parseInt(_0x52d14f(0x11e))/0x8)+-parseInt(_0x52d14f(0x113))/0x9+parseInt(_0x52d14f(0x121))/0xa*(parseInt(_0x52d14f(0x127))/0xb);if(_0x4caf7b===_0x1e8c46)break;else _0x10ecce['push'](_0x10ecce['shift']());}catch(_0xa81af2){_0x10ecce['push'](_0x10ecce['shift']());}}}(a96_0x27b7,0x53c06));export const PRODUCT_CONFIG={'cliBinName':'lovrabet','cliDisplayName':a96_0x3eee3b(0x120),'npmPackageName':'@lovrabet/lovrabet-cli','skillSource':'lovrabet/lovrabet-cli','internalSkillSource':a96_0x3eee3b(0x125),'globalSkillName':a96_0x3eee3b(0x128),'npmRegistryBaseUrl':a96_0x3eee3b(0x11f),'envPrefix':'LOVRABET','legacyEnvPrefixes':[a96_0x3eee3b(0x119)],'configFileNames':[a96_0x3eee3b(0x115),'.lovrabetrc'],'newConfigFileName':a96_0x3eee3b(0x115),'homeDirName':a96_0x3eee3b(0x117),'logFileName':a96_0x3eee3b(0x11b),'invokeSource':'cli:lovrabet-runtime','userCenterDisplayName':a96_0x3eee3b(0x118),'skipNpxSkillsEnvSuffix':'SKIP_NPX_SKILLS','domains':{'production':{'user':a96_0x3eee3b(0x11a),'api':a96_0x3eee3b(0x112),'runtime':'https://runtime.lovrabet.com','skillhub':a96_0x3eee3b(0x11d)},'nonProduction':{'user':a96_0x3eee3b(0x116),'api':'https://daily-api.lovrabet.com','runtime':'https://daily-runtime.lovrabet.com','skillhub':'https://skills-daily.lovrabet.com'}},'accessKeyCreatePath':'/user/ak'};function a96_0x195d(_0x403d38,_0x3ce129){_0x403d38=_0x403d38-0x111;const _0x27b728=a96_0x27b7();let _0x195d1a=_0x27b728[_0x403d38];return _0x195d1a;}export function productEnvName(_0x508421){return PRODUCT_CONFIG['envPrefix']+'_'+_0x508421;}export function productEnvNames(_0x2f6952){const _0x2c6386=a96_0x3eee3b;return[productEnvName(_0x2f6952),...PRODUCT_CONFIG[_0x2c6386(0x123)]['map'](_0x3fd249=>_0x3fd249+'_'+_0x2f6952)];}export function productEnv(_0x52894d){for(const _0x36ca55 of productEnvNames(_0x52894d)){const _0x132c82=process.env[_0x36ca55];if(_0x132c82!==undefined)return _0x132c82;}return undefined;}function a96_0x27b7(){const _0x2449c3=['3GzdQzV','302137VtNUFp','https://api.lovrabet.com','5652027QAPUGX','452058xVVpdH','.lovrabet.json','https://user-daily.lovrabet.com','.lovrabet','Lovrabet\x20User\x20Center','RABETBASE','https://user.lovrabet.com','.lovrabet-runtime.log','5vwVSot','https://skills.lovrabet.com','362344lWvMma','https://registry.npmjs.org','Lovrabet\x20Runtime\x20CLI','10Yrfmdp','548116pBXnyI','legacyEnvPrefixes','77kyfLZX','git@codeup.aliyun.com:yuntoo/open/lovrabet-runtime-cli.git','700306zpErKT','13054822YntTao','lovrabet'];a96_0x27b7=function(){return _0x2449c3;};return a96_0x27b7();}
|
package/lib/constant/risk.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a97_0x1f344e=a97_0x10af;function a97_0x114b(){const _0x58c748=['65nluCEM','1098WRaJaW','21gmIQvN','20430UheyCG','3135790MaHmit','314460dxfzCL','3fJYAtp','write','845768LMfHUm','69956paXCVp','2213046YCwrSX'];a97_0x114b=function(){return _0x58c748;};return a97_0x114b();}function a97_0x10af(_0x9e4aa7,_0x462ced){_0x9e4aa7=_0x9e4aa7-0x140;const _0x114bbe=a97_0x114b();let _0x10af2a=_0x114bbe[_0x9e4aa7];return _0x10af2a;}(function(_0x2b254b,_0x59172f){const _0x25c404=a97_0x10af,_0x2539b0=_0x2b254b();while(!![]){try{const _0x39139f=-parseInt(_0x25c404(0x146))/0x1*(parseInt(_0x25c404(0x147))/0x2)+-parseInt(_0x25c404(0x141))/0x3*(parseInt(_0x25c404(0x144))/0x4)+-parseInt(_0x25c404(0x149))/0x5+-parseInt(_0x25c404(0x140))/0x6*(-parseInt(_0x25c404(0x148))/0x7)+parseInt(_0x25c404(0x143))/0x8+parseInt(_0x25c404(0x145))/0x9+-parseInt(_0x25c404(0x14a))/0xa;if(_0x39139f===_0x59172f)break;else _0x2539b0['push'](_0x2539b0['shift']());}catch(_0x254129){_0x2539b0['push'](_0x2539b0['shift']());}}}(a97_0x114b,0x21b16));export const RISK_LEVEL_VALUES=['read',a97_0x1f344e(0x142),'high-risk-write'];
|
package/lib/constant/url.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a98_0x49689f=a98_0x64e4;function a98_0x64e4(_0x364fa5,_0x40586a){_0x364fa5=_0x364fa5-0xe3;const _0x42e1f6=a98_0x42e1();let _0x64e404=_0x42e1f6[_0x364fa5];return _0x64e404;}(function(_0x1f37c6,_0x3ffc10){const _0x36d589=a98_0x64e4,_0x365a5f=_0x1f37c6();while(!![]){try{const _0x5940b8=parseInt(_0x36d589(0xf0))/0x1+parseInt(_0x36d589(0xe3))/0x2+parseInt(_0x36d589(0xe6))/0x3+parseInt(_0x36d589(0xe5))/0x4*(parseInt(_0x36d589(0xed))/0x5)+-parseInt(_0x36d589(0xec))/0x6*(parseInt(_0x36d589(0xe7))/0x7)+parseInt(_0x36d589(0xe8))/0x8*(-parseInt(_0x36d589(0xea))/0x9)+-parseInt(_0x36d589(0xe9))/0xa;if(_0x5940b8===_0x3ffc10)break;else _0x365a5f['push'](_0x365a5f['shift']());}catch(_0x453ace){_0x365a5f['push'](_0x365a5f['shift']());}}}(a98_0x42e1,0x364d1));function a98_0x42e1(){const _0x427cf8=['user','66NMiXfY','5GglpcV','accessKeyCreatePath','domains','251213vFsbiZ','277088aYSKUG','production','1293628Ziaqwv','1088145HKziYb','263949tybKvR','59664iMXweX','4312270azgoWU','9AiefOQ'];a98_0x42e1=function(){return _0x427cf8;};return a98_0x42e1();}import{PRODUCT_CONFIG}from'../constant/product.js';export const USER_ACCESS_KEY_CREATE_URL=''+PRODUCT_CONFIG[a98_0x49689f(0xef)][a98_0x49689f(0xe4)][a98_0x49689f(0xeb)]+PRODUCT_CONFIG[a98_0x49689f(0xee)];
|
package/lib/context.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function a99_0x1a21(){const _0x3869b8=['authRequired','APP','true','inherit','locale','35oKKArH','error','FORMAT','some','trim','apps','development','isTTY','173821ESPDIR','app','local-alias','string','./constant/env.js','riskLevel','object','stdin','EXDEV','global','projectConfig','values','join','stringify','./constant/domain.js','cwd','message','setLogPath','EPERM','accessKey','slice','code','925944NUrWZD','daily','newConfigFileName','stdout','find','PAGE_SIZE','read','ACCESS_KEY','format','8Qnqluh','setRawMode','parse','configFileNames','globalConfig','top-level','maxRisk','14166020XqLWUS','project','skillHubDomain','4000356LAYciV','argv','runtimeDomain','3805479nMCAfe','appcode','.tmp','1271814lnHoae','isRaw','env','write','raw','defaultApp','5580HamQxT','utf8','production','10QaonjM','pageSize'];a99_0x1a21=function(){return _0x3869b8;};return a99_0x1a21();}const a99_0x1a7dd6=a99_0x949c;(function(_0x27d3cd,_0x50a419){const _0x5567bd=a99_0x949c,_0x370f97=_0x27d3cd();while(!![]){try{const _0x40ce91=-parseInt(_0x5567bd(0x76))/0x1*(-parseInt(_0x5567bd(0x67))/0x2)+parseInt(_0x5567bd(0xa5))/0x3+-parseInt(_0x5567bd(0x9f))/0x4+parseInt(_0x5567bd(0xab))/0x5+parseInt(_0x5567bd(0x8c))/0x6*(-parseInt(_0x5567bd(0x6e))/0x7)+parseInt(_0x5567bd(0x95))/0x8*(-parseInt(_0x5567bd(0xa2))/0x9)+parseInt(_0x5567bd(0x9c))/0xa;if(_0x40ce91===_0x50a419)break;else _0x370f97['push'](_0x370f97['shift']());}catch(_0x3430e6){_0x370f97['push'](_0x370f97['shift']());}}}(a99_0x1a21,0x7e07d));import{readFileSync,existsSync,mkdirSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{resolve,dirname}from'node:path';function a99_0x949c(_0x1d4a91,_0x4e5874){_0x1d4a91=_0x1d4a91-0x66;const _0x1a211c=a99_0x1a21();let _0x949cfd=_0x1a211c[_0x1d4a91];return _0x949cfd;}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[a99_0x1a7dd6(0x98)];export const NEW_CONFIG_NAME=PRODUCT_CONFIG[a99_0x1a7dd6(0x8e)];function resolveConfigPath(_0x56c4d5){for(const _0x23ba1d of CONFIG_NAMES){const _0x2c5811=resolve(_0x56c4d5,_0x23ba1d);if(existsSync(_0x2c5811))return _0x2c5811;}return undefined;}export function resolveWriteConfigPath(_0x2ab1e5){const _0x2fb3ed=a99_0x1a7dd6,_0x318ed0=_0x2ab1e5==='project'?process[_0x2fb3ed(0x85)]():homedir(),_0xd28292=resolveConfigPath(_0x318ed0);return _0xd28292??resolve(_0x318ed0,NEW_CONFIG_NAME);}export function readConfigFile(_0x148098){const _0x178d4c=a99_0x1a7dd6;try{if(existsSync(_0x148098)){const _0x1bbfc5=readFileSync(_0x148098,{'encoding':_0x178d4c(0xac)});if(_0x1bbfc5){const _0x3cd9f2=JSON[_0x178d4c(0x97)](_0x1bbfc5);return migrateOnlineEnv(_0x148098,_0x3cd9f2),_0x3cd9f2;}}}catch{}return{};}function migrateOnlineEnv(_0x1673b8,_0xc04a75){const _0x513388=a99_0x1a7dd6;let _0x3231a8=![];_0xc04a75['env']==='online'&&(_0xc04a75[_0x513388(0xa7)]=_0x513388(0x66),_0x3231a8=!![]);if(_0xc04a75[_0x513388(0x73)]&&typeof _0xc04a75[_0x513388(0x73)]===_0x513388(0x7c))for(const _0x119887 of Object[_0x513388(0x81)](_0xc04a75[_0x513388(0x73)])){_0x119887&&_0x119887['env']==='online'&&(_0x119887[_0x513388(0xa7)]=_0x513388(0x66),_0x3231a8=!![]);}if(_0x3231a8)try{writeConfigFile(_0x1673b8,_0xc04a75);}catch{}}export function writeConfigFile(_0x130bd0,_0x3fb908){const _0x486322=a99_0x1a7dd6,_0xd0eb09=dirname(_0x130bd0);!existsSync(_0xd0eb09)&&mkdirSync(_0xd0eb09,{'recursive':!![]});const _0x5b16b9=_0x130bd0+_0x486322(0xa4);try{writeFileSync(_0x5b16b9,JSON[_0x486322(0x83)](_0x3fb908,null,0x2)+'\x0a',{'encoding':_0x486322(0xac),'mode':0x180});try{renameSync(_0x5b16b9,_0x130bd0);}catch(_0x2060e7){if(_0x2060e7[_0x486322(0x8b)]===_0x486322(0x88)||_0x2060e7[_0x486322(0x8b)]===_0x486322(0x7e)||_0x2060e7[_0x486322(0x8b)]==='EACCES'){writeFileSync(_0x130bd0,JSON[_0x486322(0x83)](_0x3fb908,null,0x2)+'\x0a',{'encoding':_0x486322(0xac)});try{unlinkSync(_0x5b16b9);}catch{}}else throw _0x2060e7;}}catch(_0x1b3a6b){try{unlinkSync(_0x5b16b9);}catch{}throw _0x1b3a6b;}}export function isNonInteractiveMode(_0x12d2ac){const _0xca34d4=a99_0x1a7dd6;return!!(_0x12d2ac['nonInteractive']||_0x12d2ac['ci']||productEnvNames('CI')[_0xca34d4(0x71)](_0x47451e=>process.env[_0x47451e]==='true')||process.env.CI===_0xca34d4(0x6b)||!process[_0xca34d4(0x8f)][_0xca34d4(0x75)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x568c6f=a99_0x1a7dd6;if(!process[_0x568c6f(0x7d)][_0x568c6f(0x75)])return![];try{const _0x378c58=process['stdin'][_0x568c6f(0xa6)];return process[_0x568c6f(0x7d)]['setRawMode'](!![]),process[_0x568c6f(0x7d)][_0x568c6f(0x96)](_0x378c58??![]),!![];}catch{return![];}}export async function createContext(_0x453650){const _0x10b57a=a99_0x1a7dd6,_0x329101=readRawConfig(),_0x18e0ce=buildConfig(_0x329101,_0x453650);await initGlobalEnvironment(_0x18e0ce);const {getUserDomain:_0x5c683f,getApiDomain:_0x39e89d}=await import(_0x10b57a(0x84)),_0x3b799e={'apiDomain':_0x39e89d(),'userDomain':_0x5c683f()},_0x58d5d6=await buildAuth(_0x18e0ce);logger[_0x10b57a(0x87)](process[_0x10b57a(0x85)]());const _0x4d48dc=(CLI_BIN_NAME+'\x20'+process[_0x10b57a(0xa0)][_0x10b57a(0x8a)](0x2)[_0x10b57a(0x82)]('\x20'))[_0x10b57a(0x72)]();logger['setRawCommand'](_0x4d48dc);const _0x152582=isNonInteractiveMode(_0x453650);return{'config':_0x18e0ce,'auth':_0x58d5d6,'logger':logger,'env':_0x3b799e,'nonInteractive':_0x152582};}export function buildConfigFromFlags(_0x3bd514){return buildConfig(readRawConfig(),_0x3bd514);}export function getLocalAppAliases(_0x25daff){const _0x533086=a99_0x1a7dd6;return _0x25daff[_0x533086(0x73)]&&typeof _0x25daff[_0x533086(0x73)]===_0x533086(0x7c)?_0x25daff['apps']:{};}export function resolveLocalAppAliasCode(_0x391281,_0x2c2297){const _0x5cd4b9=a99_0x1a7dd6;if(!_0x2c2297)return undefined;const _0x24bedd=getLocalAppAliases(_0x391281)[_0x2c2297],_0x23b918=_0x24bedd?.[_0x5cd4b9(0xa3)];return typeof _0x23b918==='string'&&_0x23b918[_0x5cd4b9(0x72)]()?_0x23b918['trim']():undefined;}export function readAppCodeFromConfig(){const _0x20884c=a99_0x1a7dd6,_0x51243e=readRawConfig(),_0x476e6d=_0x51243e[_0x20884c(0xa3)]??_0x51243e[_0x20884c(0x77)];if(typeof _0x476e6d==='string'&&_0x476e6d[_0x20884c(0x72)]())return _0x476e6d['trim']();const _0x60dc70=resolveLocalAppAliasCode(_0x51243e,typeof _0x51243e[_0x20884c(0xaa)]===_0x20884c(0x79)?_0x51243e[_0x20884c(0xaa)]:undefined);if(_0x60dc70)return _0x60dc70;const _0x57058c=normalizeEnv(String(_0x51243e[_0x20884c(0xa7)]||'production')),_0x4bd321=isDaily(_0x57058c)?_0x20884c(0x8d):isDev(_0x57058c)?_0x20884c(0x74):_0x20884c(0x66),_0x7c6f1a=resolveCachedAppCode(typeof _0x51243e[_0x20884c(0xaa)]===_0x20884c(0x79)?_0x51243e[_0x20884c(0xaa)]:undefined,_0x4bd321,typeof _0x51243e['accessKey']==='string'?_0x51243e['accessKey']:undefined);if(_0x7c6f1a)return _0x7c6f1a;const _0x344139=Object[_0x20884c(0x81)](getLocalAppAliases(_0x51243e))[_0x20884c(0x90)](_0x55bbba=>_0x55bbba?.[_0x20884c(0xa3)]);return typeof _0x344139?.[_0x20884c(0xa3)]===_0x20884c(0x79)&&_0x344139['appcode'][_0x20884c(0x72)]()?_0x344139[_0x20884c(0xa3)][_0x20884c(0x72)]():undefined;}export function readScopedConfig(_0x34d64a){const _0x55f590=a99_0x1a7dd6,_0x531402=_0x34d64a['global']?_0x55f590(0x7f):_0x55f590(0x9d);return readConfigFile(resolveWriteConfigPath(_0x531402));}export function writeScopedConfig(_0x190dfa,_0x44fb64){const _0xf04e9=a99_0x1a7dd6,_0xeb22ac=_0x44fb64[_0xf04e9(0x7f)]?_0xf04e9(0x7f):_0xf04e9(0x9d);writeConfigFile(resolveWriteConfigPath(_0xeb22ac),_0x190dfa);}export async function initGlobalEnvironment(_0x4aefbc){const _0x57fce3=a99_0x1a7dd6,{initEnv:_0x18dbe6}=await import(_0x57fce3(0x7a));_0x18dbe6(_0x4aefbc[_0x57fce3(0xa7)]);const {initDomains:_0x5e1120}=await import(_0x57fce3(0x84));_0x5e1120({'apiDomain':_0x4aefbc[_0x57fce3(0xa9)]['apiDomain']||_0x4aefbc[_0x57fce3(0xa9)]['host']||undefined,'userDomain':_0x4aefbc[_0x57fce3(0xa9)]['userDomain']||undefined,'runtimeDomain':_0x4aefbc[_0x57fce3(0xa9)][_0x57fce3(0xa1)]||undefined,'skillHubDomain':_0x4aefbc[_0x57fce3(0xa9)][_0x57fce3(0x9e)]||undefined});}export function getProjectConfigPath(){return resolveConfigPath(process['cwd']());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0x37e7e5){const _0x435009=a99_0x1a7dd6;if(!existsSync(_0x37e7e5))return{'status':'missing'};try{const _0x4d5781=readFileSync(_0x37e7e5,{'encoding':_0x435009(0xac)});if(!_0x4d5781?.[_0x435009(0x72)]())return{'status':'empty'};const _0x810f30=JSON[_0x435009(0x97)](_0x4d5781);return{'status':'ok','data':_0x810f30};}catch(_0x4b5496){return{'status':_0x435009(0x6f),'message':_0x4b5496 instanceof Error?_0x4b5496[_0x435009(0x86)]:String(_0x4b5496)};}}export function loadRawConfigLayers(_0x949b2){const _0x411dd6=a99_0x1a7dd6;let _0x58d4e8={},_0x50c000={},_0x50db3c,_0x4ce400;try{_0x50db3c=resolveConfigPath(homedir());if(_0x50db3c){const _0x4110bc=readFileSync(_0x50db3c,{'encoding':'utf8'});if(_0x4110bc)_0x58d4e8=JSON['parse'](_0x4110bc);}}catch{}try{const _0x2ac6d4=_0x949b2||process[_0x411dd6(0x85)]();_0x4ce400=resolveConfigPath(_0x2ac6d4);if(_0x4ce400){const _0x195100=readFileSync(_0x4ce400,{'encoding':_0x411dd6(0xac)});if(_0x195100)_0x50c000=JSON[_0x411dd6(0x97)](_0x195100);}}catch{}return{'globalPath':_0x50db3c,'projectPath':_0x4ce400,'globalConfig':_0x58d4e8,'projectConfig':_0x50c000};}function mergeRawConfigLayers(_0x228ed4){const _0x25e17e=a99_0x1a7dd6,{globalConfig:_0x502511,projectConfig:_0x5b18c5}=_0x228ed4;if(_0x5b18c5[_0x25e17e(0x6c)]===![]){const _0x27219a={..._0x5b18c5};return delete _0x27219a[_0x25e17e(0x6c)],_0x27219a;}const _0x529426={..._0x502511,..._0x5b18c5};if('defaultApp'in _0x5b18c5)_0x529426[_0x25e17e(0xaa)]=_0x5b18c5[_0x25e17e(0xaa)];else _0x502511[_0x25e17e(0xaa)]&&(_0x529426[_0x25e17e(0xaa)]=_0x502511[_0x25e17e(0xaa)]);return _0x529426;}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0x25aab0){return mergeRawConfigLayers(loadRawConfigLayers(_0x25aab0));}export function readRawConfigWithLayers(_0x3a49b7){const _0x4e393f=loadRawConfigLayers(_0x3a49b7);return{'config':mergeRawConfigLayers(_0x4e393f),'layers':_0x4e393f};}export function resolveDefaultAppSource(_0x34d7c5){const _0x5ca720=a99_0x1a7dd6;if(_0x5ca720(0xaa)in _0x34d7c5['projectConfig'])return _0x5ca720(0x9d);if(_0x34d7c5[_0x5ca720(0x80)][_0x5ca720(0x6c)]===![])return null;if(_0x34d7c5[_0x5ca720(0x99)][_0x5ca720(0xaa)])return _0x5ca720(0x7f);return null;}function buildConfig(_0x70237a,_0x246019){const _0x480b6a=a99_0x1a7dd6,_0x37305e=_0x70237a['defaultApp']||undefined,_0xdc2309=_0x246019[_0x480b6a(0x77)]||env(_0x480b6a(0x6a))||undefined,_0x258469=_0xdc2309||_0x37305e||undefined,_0x494119=env(_0x480b6a(0x93))||_0x70237a[_0x480b6a(0x89)]||undefined,_0x4a19ea=_0x246019[_0x480b6a(0xa7)]||env('ENV')||_0x70237a[_0x480b6a(0xa7)]||DEFAULT_CONFIG_VALUES[_0x480b6a(0xa7)],_0x39783f=normalizeEnv(String(_0x4a19ea)),_0x2ec8b5=isDaily(_0x39783f)?'daily':isDev(_0x39783f)?_0x480b6a(0x74):'production',_0xab3338=typeof _0x246019[_0x480b6a(0xa3)]===_0x480b6a(0x79)?_0x246019['appcode']:undefined,_0x45ae58=env('APPCODE'),_0x103701=_0xdc2309?undefined:_0x70237a[_0x480b6a(0xa3)]||_0x70237a['app']||undefined,_0x5cac37=_0xdc2309||(_0x103701?undefined:_0x37305e),_0x190f47=resolveLocalAppAliasCode(_0x70237a,_0x5cac37),_0x53b185=resolveCachedAppCode(_0x5cac37,_0x2ec8b5,_0x494119),_0xe0c130=_0xab3338||_0x45ae58||_0x103701||_0x190f47||_0x53b185||undefined,_0x5059ba=_0xab3338?'explicit':_0x45ae58?_0x480b6a(0xa7):_0x103701?_0x480b6a(0x9a):_0x190f47?_0x480b6a(0x78):_0x53b185?'cache':undefined,_0x3cd840=_0x70237a[_0x480b6a(0x6d)]||DEFAULT_CONFIG_VALUES[_0x480b6a(0x6d)],_0xb7de10=undefined,_0x237a14=_0x246019[_0x480b6a(0x94)]||env(_0x480b6a(0x70))||_0x70237a[_0x480b6a(0x94)],_0x2e27ee=normalizeLegacyOutputFormat(_0x237a14),_0x1b62c3=env(_0x480b6a(0x91))||_0x70237a[_0x480b6a(0x68)],_0x3c03d0=_0x1b62c3?Number(_0x1b62c3)||undefined:undefined,_0x53ef5b=_0x70237a['riskLevel']||_0x70237a[_0x480b6a(0x9b)],_0x27dfd8=_0x53ef5b===_0x480b6a(0x92)||_0x53ef5b===_0x480b6a(0xa8)||_0x53ef5b==='high-risk-write'?_0x53ef5b:DEFAULT_CONFIG_VALUES[_0x480b6a(0x7b)],_0x3e16c1=env('VERBOSE'),_0x27e37e=_0x3e16c1==='1'||_0x3e16c1===_0x480b6a(0x6b);return{'appCode':typeof _0xe0c130==='string'&&_0xe0c130['trim']()?_0xe0c130['trim']():undefined,'appCodeSource':_0x5059ba,'env':_0x2ec8b5,'locale':_0x3cd840,'cookie':_0xb7de10,'accessKey':_0x494119,'format':_0x2e27ee,'pageSize':_0x3c03d0,'riskLevel':_0x27dfd8,'verbose':_0x27e37e,'defaultApp':_0x37305e,'currentApp':typeof _0x258469===_0x480b6a(0x79)?_0x258469:undefined,'raw':_0x70237a};}function env(_0x699b33){return productEnv(_0x699b33);}async function buildAuth(_0x41031d){const _0x196314=a99_0x1a7dd6,_0x24ea9a='',_0x180070=!!_0x41031d[_0x196314(0x89)];return{'cookie':_0x24ea9a,'isLoggedIn':_0x180070,async 'getOrLogin'(){const _0x349586=_0x196314;if(_0x180070)return _0x24ea9a;throw CliErrors[_0x349586(0x69)]();}};}
|
|
1
|
+
const a99_0x36085e=a99_0x4b72;(function(_0x478059,_0x3456f0){const _0x4bb62c=a99_0x4b72,_0x4c9bf2=_0x478059();while(!![]){try{const _0x2f1c8f=parseInt(_0x4bb62c(0x21a))/0x1+parseInt(_0x4bb62c(0x22d))/0x2*(parseInt(_0x4bb62c(0x213))/0x3)+parseInt(_0x4bb62c(0x1f5))/0x4+parseInt(_0x4bb62c(0x231))/0x5*(-parseInt(_0x4bb62c(0x1f9))/0x6)+parseInt(_0x4bb62c(0x1fd))/0x7+parseInt(_0x4bb62c(0x203))/0x8*(-parseInt(_0x4bb62c(0x1f0))/0x9)+-parseInt(_0x4bb62c(0x21b))/0xa;if(_0x2f1c8f===_0x3456f0)break;else _0x4c9bf2['push'](_0x4c9bf2['shift']());}catch(_0x15f694){_0x4c9bf2['push'](_0x4c9bf2['shift']());}}}(a99_0x5cb9,0x2d41a));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['configFileNames'];export const NEW_CONFIG_NAME=PRODUCT_CONFIG[a99_0x36085e(0x22e)];function resolveConfigPath(_0x39e47c){for(const _0x16fe5a of CONFIG_NAMES){const _0x592701=resolve(_0x39e47c,_0x16fe5a);if(existsSync(_0x592701))return _0x592701;}return undefined;}export function resolveWriteConfigPath(_0x464b61){const _0x3a61c3=a99_0x36085e,_0x17a0f9=_0x464b61===_0x3a61c3(0x1fb)?process[_0x3a61c3(0x214)]():homedir(),_0x3f13d9=resolveConfigPath(_0x17a0f9);return _0x3f13d9??resolve(_0x17a0f9,NEW_CONFIG_NAME);}export function readConfigFile(_0x553561){const _0x543c88=a99_0x36085e;try{if(existsSync(_0x553561)){const _0x761fd=readFileSync(_0x553561,{'encoding':_0x543c88(0x216)});if(_0x761fd){const _0x330377=JSON[_0x543c88(0x1fe)](_0x761fd);return migrateOnlineEnv(_0x553561,_0x330377),_0x330377;}}}catch{}return{};}function migrateOnlineEnv(_0x220810,_0x19349d){const _0x500b87=a99_0x36085e;let _0x491893=![];_0x19349d['env']===_0x500b87(0x20b)&&(_0x19349d[_0x500b87(0x1f1)]=_0x500b87(0x228),_0x491893=!![]);if(_0x19349d[_0x500b87(0x21d)]&&typeof _0x19349d[_0x500b87(0x21d)]===_0x500b87(0x21f))for(const _0x5d692f of Object[_0x500b87(0x20e)](_0x19349d[_0x500b87(0x21d)])){_0x5d692f&&_0x5d692f[_0x500b87(0x1f1)]==='online'&&(_0x5d692f['env']='production',_0x491893=!![]);}if(_0x491893)try{writeConfigFile(_0x220810,_0x19349d);}catch{}}export function writeConfigFile(_0x43458a,_0x569e14){const _0x552e05=a99_0x36085e,_0x1c5b8e=dirname(_0x43458a);!existsSync(_0x1c5b8e)&&mkdirSync(_0x1c5b8e,{'recursive':!![]});const _0x312d5a=_0x43458a+_0x552e05(0x1fa);try{writeFileSync(_0x312d5a,JSON['stringify'](_0x569e14,null,0x2)+'\x0a',{'encoding':_0x552e05(0x216),'mode':0x180});try{renameSync(_0x312d5a,_0x43458a);}catch(_0x2fd416){if(_0x2fd416[_0x552e05(0x222)]===_0x552e05(0x20d)||_0x2fd416[_0x552e05(0x222)]===_0x552e05(0x1f2)||_0x2fd416[_0x552e05(0x222)]==='EACCES'){writeFileSync(_0x43458a,JSON[_0x552e05(0x219)](_0x569e14,null,0x2)+'\x0a',{'encoding':_0x552e05(0x216)});try{unlinkSync(_0x312d5a);}catch{}}else throw _0x2fd416;}}catch(_0x583b15){try{unlinkSync(_0x312d5a);}catch{}throw _0x583b15;}}export function isNonInteractiveMode(_0x5bdc60){const _0x7760bc=a99_0x36085e;return!!(_0x5bdc60['nonInteractive']||_0x5bdc60['ci']||productEnvNames('CI')[_0x7760bc(0x217)](_0x4e7347=>process.env[_0x4e7347]===_0x7760bc(0x212))||process.env.CI===_0x7760bc(0x212)||!process[_0x7760bc(0x207)][_0x7760bc(0x208)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x3e9ca1=a99_0x36085e;if(!process[_0x3e9ca1(0x21c)][_0x3e9ca1(0x208)])return![];try{const _0x2a1e1f=process[_0x3e9ca1(0x21c)]['isRaw'];return process['stdin'][_0x3e9ca1(0x225)](!![]),process['stdin'][_0x3e9ca1(0x225)](_0x2a1e1f??![]),!![];}catch{return![];}}export async function createContext(_0x4e8f5d){const _0x3d42a0=a99_0x36085e,_0x55dc3a=readRawConfig(),_0x2d1bb6=buildConfig(_0x55dc3a,_0x4e8f5d);await initGlobalEnvironment(_0x2d1bb6);const {getUserDomain:_0x5c6dd7,getApiDomain:_0x21f5e}=await import('./constant/domain.js'),_0x58d65e={'apiDomain':_0x21f5e(),'userDomain':_0x5c6dd7()},_0xbb15b8=await buildAuth(_0x2d1bb6);logger[_0x3d42a0(0x218)](process[_0x3d42a0(0x214)]());const _0x2cc846=(CLI_BIN_NAME+'\x20'+process[_0x3d42a0(0x204)][_0x3d42a0(0x1f8)](0x2)[_0x3d42a0(0x226)]('\x20'))[_0x3d42a0(0x230)]();logger[_0x3d42a0(0x210)](_0x2cc846);const _0x80b1dd=isNonInteractiveMode(_0x4e8f5d);return{'config':_0x2d1bb6,'auth':_0xbb15b8,'logger':logger,'env':_0x58d65e,'nonInteractive':_0x80b1dd};}export function buildConfigFromFlags(_0x6c26c5){return buildConfig(readRawConfig(),_0x6c26c5);}export function getLocalAppAliases(_0x3fa166){const _0x3b3480=a99_0x36085e;return _0x3fa166[_0x3b3480(0x21d)]&&typeof _0x3fa166['apps']==='object'?_0x3fa166[_0x3b3480(0x21d)]:{};}export function resolveLocalAppAliasCode(_0x5d80f5,_0x331380){const _0x1a943a=a99_0x36085e;if(!_0x331380)return undefined;const _0x4565cf=getLocalAppAliases(_0x5d80f5)[_0x331380],_0x229b0=_0x4565cf?.[_0x1a943a(0x21e)];return typeof _0x229b0===_0x1a943a(0x1f4)&&_0x229b0[_0x1a943a(0x230)]()?_0x229b0[_0x1a943a(0x230)]():undefined;}export function readAppCodeFromConfig(){const _0x763a9a=a99_0x36085e,_0x55d0ad=readRawConfig(),_0x5daa5f=_0x55d0ad[_0x763a9a(0x21e)]??_0x55d0ad[_0x763a9a(0x224)];if(typeof _0x5daa5f===_0x763a9a(0x1f4)&&_0x5daa5f['trim']())return _0x5daa5f[_0x763a9a(0x230)]();const _0x96a370=resolveLocalAppAliasCode(_0x55d0ad,typeof _0x55d0ad[_0x763a9a(0x205)]===_0x763a9a(0x1f4)?_0x55d0ad[_0x763a9a(0x205)]:undefined);if(_0x96a370)return _0x96a370;const _0x1a6744=normalizeEnv(String(_0x55d0ad[_0x763a9a(0x1f1)]||'production')),_0x256a2d=isDaily(_0x1a6744)?_0x763a9a(0x220):isDev(_0x1a6744)?_0x763a9a(0x20c):_0x763a9a(0x228),_0xc92652=resolveCachedAppCode(typeof _0x55d0ad[_0x763a9a(0x205)]===_0x763a9a(0x1f4)?_0x55d0ad['defaultApp']:undefined,_0x256a2d,typeof _0x55d0ad[_0x763a9a(0x211)]===_0x763a9a(0x1f4)?_0x55d0ad['accessKey']:undefined);if(_0xc92652)return _0xc92652;const _0x15c054=Object[_0x763a9a(0x20e)](getLocalAppAliases(_0x55d0ad))[_0x763a9a(0x234)](_0x402cf4=>_0x402cf4?.[_0x763a9a(0x21e)]);return typeof _0x15c054?.['appcode']===_0x763a9a(0x1f4)&&_0x15c054[_0x763a9a(0x21e)][_0x763a9a(0x230)]()?_0x15c054[_0x763a9a(0x21e)][_0x763a9a(0x230)]():undefined;}export function readScopedConfig(_0x5ce501){const _0x2c2b1b=a99_0x36085e,_0x3664d5=_0x5ce501['global']?_0x2c2b1b(0x200):'project';return readConfigFile(resolveWriteConfigPath(_0x3664d5));}export function writeScopedConfig(_0x56c0fa,_0xe98655){const _0x3bf369=a99_0x36085e,_0x436d4e=_0xe98655[_0x3bf369(0x200)]?_0x3bf369(0x200):_0x3bf369(0x1fb);writeConfigFile(resolveWriteConfigPath(_0x436d4e),_0x56c0fa);}export async function initGlobalEnvironment(_0x2f2403){const _0x2624a5=a99_0x36085e,{initEnv:_0xec0a18}=await import(_0x2624a5(0x215));_0xec0a18(_0x2f2403['env']);const {initDomains:_0x30cf54}=await import(_0x2624a5(0x202));_0x30cf54({'apiDomain':_0x2f2403[_0x2624a5(0x22a)][_0x2624a5(0x235)]||_0x2f2403[_0x2624a5(0x22a)][_0x2624a5(0x20a)]||undefined,'userDomain':_0x2f2403['raw'][_0x2624a5(0x232)]||undefined,'runtimeDomain':_0x2f2403[_0x2624a5(0x22a)][_0x2624a5(0x223)]||undefined,'skillHubDomain':_0x2f2403[_0x2624a5(0x22a)]['skillHubDomain']||undefined});}export function getProjectConfigPath(){return resolveConfigPath(process['cwd']());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0x5948e5){const _0x2137b7=a99_0x36085e;if(!existsSync(_0x5948e5))return{'status':'missing'};try{const _0x1e9e74=readFileSync(_0x5948e5,{'encoding':_0x2137b7(0x216)});if(!_0x1e9e74?.[_0x2137b7(0x230)]())return{'status':_0x2137b7(0x20f)};const _0x51d87e=JSON[_0x2137b7(0x1fe)](_0x1e9e74);return{'status':'ok','data':_0x51d87e};}catch(_0x4209c0){return{'status':'error','message':_0x4209c0 instanceof Error?_0x4209c0[_0x2137b7(0x22b)]:String(_0x4209c0)};}}function a99_0x5cb9(){const _0x4e0541=['code','runtimeDomain','app','setRawMode','join','cache','production','inherit','raw','message','projectConfig','662ZcjGqH','newConfigFileName','read','trim','10mZHOcV','userDomain','PAGE_SIZE','find','apiDomain','25209ACtRzZ','env','EXDEV','APP','string','304276VOBcmC','format','riskLevel','slice','658632XZwGNz','.tmp','project','APPCODE','297773vlNMbK','parse','high-risk-write','global','FORMAT','./constant/domain.js','264Vwkhxs','argv','defaultApp','pageSize','stdout','isTTY','locale','host','online','development','EPERM','values','empty','setRawCommand','accessKey','true','1788hsXVAu','cwd','./constant/env.js','utf8','some','setLogPath','stringify','342924XqPRMS','1614610miakVs','stdin','apps','appcode','object','daily','ENV'];a99_0x5cb9=function(){return _0x4e0541;};return a99_0x5cb9();}export function loadRawConfigLayers(_0x2b0b9e){const _0x485519=a99_0x36085e;let _0x3364bd={},_0x244d2d={},_0x1cc118,_0x8f28b0;try{_0x1cc118=resolveConfigPath(homedir());if(_0x1cc118){const _0x216692=readFileSync(_0x1cc118,{'encoding':_0x485519(0x216)});if(_0x216692)_0x3364bd=JSON[_0x485519(0x1fe)](_0x216692);}}catch{}try{const _0x27f447=_0x2b0b9e||process[_0x485519(0x214)]();_0x8f28b0=resolveConfigPath(_0x27f447);if(_0x8f28b0){const _0x24f71b=readFileSync(_0x8f28b0,{'encoding':_0x485519(0x216)});if(_0x24f71b)_0x244d2d=JSON[_0x485519(0x1fe)](_0x24f71b);}}catch{}return{'globalPath':_0x1cc118,'projectPath':_0x8f28b0,'globalConfig':_0x3364bd,'projectConfig':_0x244d2d};}function mergeRawConfigLayers(_0x59bba0){const _0x11e973=a99_0x36085e,{globalConfig:_0x5698b7,projectConfig:_0x900ed}=_0x59bba0;if(_0x900ed[_0x11e973(0x229)]===![]){const _0x880952={..._0x900ed};return delete _0x880952['inherit'],_0x880952;}const _0x317b5b={..._0x5698b7,..._0x900ed};if(_0x11e973(0x205)in _0x900ed)_0x317b5b[_0x11e973(0x205)]=_0x900ed[_0x11e973(0x205)];else _0x5698b7[_0x11e973(0x205)]&&(_0x317b5b[_0x11e973(0x205)]=_0x5698b7['defaultApp']);return _0x317b5b;}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0x4d8011){return mergeRawConfigLayers(loadRawConfigLayers(_0x4d8011));}export function readRawConfigWithLayers(_0x547633){const _0x5e4e6d=loadRawConfigLayers(_0x547633);return{'config':mergeRawConfigLayers(_0x5e4e6d),'layers':_0x5e4e6d};}export function resolveDefaultAppSource(_0x414c29){const _0x5a4075=a99_0x36085e;if(_0x5a4075(0x205)in _0x414c29[_0x5a4075(0x22c)])return _0x5a4075(0x1fb);if(_0x414c29[_0x5a4075(0x22c)][_0x5a4075(0x229)]===![])return null;if(_0x414c29['globalConfig'][_0x5a4075(0x205)])return _0x5a4075(0x200);return null;}function buildConfig(_0xd970d6,_0xdcd355){const _0x429295=a99_0x36085e,_0x32beb7=_0xd970d6[_0x429295(0x205)]||undefined,_0x33fd0f=_0xdcd355['app']||env(_0x429295(0x1f3))||undefined,_0x4957b9=_0x33fd0f||_0x32beb7||undefined,_0xdcf4a6=env('ACCESS_KEY')||_0xd970d6[_0x429295(0x211)]||undefined,_0x32af0d=_0xdcd355[_0x429295(0x1f1)]||env(_0x429295(0x221))||_0xd970d6['env']||DEFAULT_CONFIG_VALUES[_0x429295(0x1f1)],_0x3de1dc=normalizeEnv(String(_0x32af0d)),_0x45ea1a=isDaily(_0x3de1dc)?'daily':isDev(_0x3de1dc)?_0x429295(0x20c):'production',_0x471e95=typeof _0xdcd355[_0x429295(0x21e)]==='string'?_0xdcd355[_0x429295(0x21e)]:undefined,_0x18fa85=env(_0x429295(0x1fc)),_0x48d523=_0x33fd0f?undefined:_0xd970d6[_0x429295(0x21e)]||_0xd970d6[_0x429295(0x224)]||undefined,_0x320f07=_0x33fd0f||(_0x48d523?undefined:_0x32beb7),_0x1b47a1=resolveLocalAppAliasCode(_0xd970d6,_0x320f07),_0x3dc3d9=resolveCachedAppCode(_0x320f07,_0x45ea1a,_0xdcf4a6),_0x36eef3=_0x471e95||_0x18fa85||_0x48d523||_0x1b47a1||_0x3dc3d9||undefined,_0x53b5e6=_0x471e95?'explicit':_0x18fa85?_0x429295(0x1f1):_0x48d523?'top-level':_0x1b47a1?'local-alias':_0x3dc3d9?_0x429295(0x227):undefined,_0x5737fe=_0xd970d6[_0x429295(0x209)]||DEFAULT_CONFIG_VALUES[_0x429295(0x209)],_0x373d25=undefined,_0x14355b=_0xdcd355[_0x429295(0x1f6)]||env(_0x429295(0x201))||_0xd970d6[_0x429295(0x1f6)],_0x19dd3f=normalizeLegacyOutputFormat(_0x14355b),_0x38f78a=env(_0x429295(0x233))||_0xd970d6[_0x429295(0x206)],_0x118d92=_0x38f78a?Number(_0x38f78a)||undefined:undefined,_0x495e5b=_0xd970d6[_0x429295(0x1f7)]||_0xd970d6['maxRisk'],_0x1022f2=_0x495e5b===_0x429295(0x22f)||_0x495e5b==='write'||_0x495e5b===_0x429295(0x1ff)?_0x495e5b:DEFAULT_CONFIG_VALUES['riskLevel'],_0x5bbc22=env('VERBOSE'),_0x51813b=_0x5bbc22==='1'||_0x5bbc22===_0x429295(0x212);return{'appCode':typeof _0x36eef3===_0x429295(0x1f4)&&_0x36eef3[_0x429295(0x230)]()?_0x36eef3['trim']():undefined,'appCodeSource':_0x53b5e6,'env':_0x45ea1a,'locale':_0x5737fe,'cookie':_0x373d25,'accessKey':_0xdcf4a6,'format':_0x19dd3f,'pageSize':_0x118d92,'riskLevel':_0x1022f2,'verbose':_0x51813b,'defaultApp':_0x32beb7,'currentApp':typeof _0x4957b9===_0x429295(0x1f4)?_0x4957b9:undefined,'raw':_0xd970d6};}function a99_0x4b72(_0x2e754d,_0x2edecf){_0x2e754d=_0x2e754d-0x1f0;const _0x5cb97c=a99_0x5cb9();let _0x4b72bd=_0x5cb97c[_0x2e754d];return _0x4b72bd;}function env(_0x17011f){return productEnv(_0x17011f);}async function buildAuth(_0x1990e8){const _0x46631e=a99_0x36085e,_0x25532b='',_0x4e9471=!!_0x1990e8[_0x46631e(0x211)];return{'cookie':_0x25532b,'isLoggedIn':_0x4e9471,async 'getOrLogin'(){if(_0x4e9471)return _0x25532b;throw CliErrors['authRequired']();}};}
|