@lovrabet/lovrabet-cli 2.3.3-beta.1 → 2.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cli.js +1 -1
- package/lib/commands/api-doc/index.js +1 -1
- package/lib/commands/app/cache.js +1 -1
- package/lib/commands/app/definitions.js +1 -1
- package/lib/commands/app/eligibility.js +1 -1
- package/lib/commands/app/mock-loader.js +1 -1
- package/lib/commands/app/remote-source.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/approval/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/init.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/domain-config.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/region.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/kb-search-client.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/generated/official-routing.js +1 -1
- package/lib/generated/routing-contract.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/access-key-redaction.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.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/positive-safe-integer.js +1 -1
- package/lib/utils/redaction.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
package/lib/commands/update.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a85_0xd98eb0=a85_0x30c3;(function(_0x1f3da5,_0x1878f1){const _0xdd2e89=a85_0x30c3,_0x51f165=_0x1f3da5();while(!![]){try{const _0x212fac=parseInt(_0xdd2e89(0x13c))/0x1+parseInt(_0xdd2e89(0x152))/0x2+-parseInt(_0xdd2e89(0x146))/0x3+parseInt(_0xdd2e89(0x16f))/0x4*(-parseInt(_0xdd2e89(0x14e))/0x5)+-parseInt(_0xdd2e89(0x12a))/0x6+parseInt(_0xdd2e89(0x136))/0x7+parseInt(_0xdd2e89(0x161))/0x8;if(_0x212fac===_0x1878f1)break;else _0x51f165['push'](_0x51f165['shift']());}catch(_0x2dab57){_0x51f165['push'](_0x51f165['shift']());}}}(a85_0x2c72,0x9a46f));import{fileURLToPath}from'node:url';import{basename,dirname,relative,win32}from'node:path';import{execaSync}from'execa';import a85_0x10ccde from'semver';import{CliErrors}from'../errors.js';import{CLI_BIN_NAME}from'../constant/cli.js';function a85_0x30c3(_0x58be32,_0x257859){_0x58be32=_0x58be32-0x113;const _0x2c7214=a85_0x2c72();let _0x30c342=_0x2c7214[_0x58be32];return _0x30c342;}function a85_0x2c72(){const _0x4c628d=['apiError','1436426ToNkYw','\x20->\x20','trim','skillVersion','\x20\x20CLI\x20Built-in\x20Skill\x20','Current\x20version:\x20','find','Updated\x20to\x20v','@lovrabet/lovrabet-cli','Update\x20the\x20','npm','valid','write','Invalid\x20version:\x20','relative','8399704trzZbK','read','install',']:\x20','version','boolean','lib','json','Checking\x20npm\x20dist-tags...','update','source','state','/dist-tags','CLI\x20Built-in\x20Skill\x20repair\x20failed\x20[','868556IZmybM',',\x20then\x20verify\x20with:\x20','Already\x20on\x20requested\x20version\x20(v','latest','Run:\x20npm\x20install\x20-g\x20','string','Update\x20failed:\x20','validation','\x20doctor','--prefix','nonInteractive','basename','repairCommand','\x20CLI\x20from\x20npm','\x20dist-tags,\x20then\x20retry.','join','Global\x20npm\x20prefix\x20is\x20not\x20writable;\x20retrying\x20in\x20the\x20current\x20CLI\x20Node\x20environment:\x20','code','filter','Unable\x20to\x20resolve\x20','reason','exit\x20','Updating\x20','unknown','Install\x20a\x20specific\x20CLI\x20version','3750330uKDhQh','dirname','Version\x20comparison\x20failed:\x20','fromEntries','length','win32','beta','pipe',',\x20but\x20Built-in\x20Skill\x20verification\x20failed:\x20','stdout','entries','includes','6192011lPHQJK','warn','test','str','object','bool','85128aWxrlq','\x20is\x20current.',',\x20found\x20','Use\x20a\x20full\x20semver\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.','map','exitCode','CLI\x20updated\x20to\x20v','/-/package/','log','run','3791292plGgLM','expected\x20','\x20version\x20from\x20npm.','toLowerCase','Run:\x20','Choose\x20exactly\x20one\x20target:\x20--latest,\x20--beta,\x20or\x20--version\x20<version>.','stderr','error','5gESlzc','INSTALL_FAILED','args'];a85_0x2c72=function(){return _0x4c628d;};return a85_0x2c72();}import{LOVRABET_NPM_PACKAGE_NAME,NPM_REGISTRY_BASE_URL}from'../constant/distribution.js';import{getCliVersion}from'../utils/version.js';import{inspectInstalledBuiltinSkillVersion,installBuiltinSkill}from'../skills/builtin-skill.js';const updateFlags=[{'name':'latest','type':a85_0xd98eb0(0x166),'description':'Install\x20the\x20version\x20from\x20npm\x20latest\x20dist-tag','default':![]},{'name':'beta','type':a85_0xd98eb0(0x166),'description':'Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','default':![]},{'name':a85_0xd98eb0(0x165),'type':a85_0xd98eb0(0x116),'description':a85_0xd98eb0(0x129)}];function getRequestedVersion(_0x82326){const _0x2f7f9b=a85_0xd98eb0,_0x1df233=_0x82326[_0x2f7f9b(0x139)](_0x2f7f9b(0x165))[_0x2f7f9b(0x154)]();if(_0x1df233)return _0x1df233;return String(_0x82326[_0x2f7f9b(0x150)]?.[0x0]??'')[_0x2f7f9b(0x154)]();}async function validateUpdateFlags(_0x181426){const _0x2952e5=a85_0xd98eb0,_0x4e6c15=getRequestedVersion(_0x181426),_0x2912ba=[_0x181426[_0x2952e5(0x13b)](_0x2952e5(0x114))?_0x2952e5(0x114):'',_0x181426[_0x2952e5(0x13b)](_0x2952e5(0x130))?_0x2952e5(0x130):'',_0x4e6c15?_0x2952e5(0x165):'']['filter'](Boolean);if(_0x2912ba[_0x2952e5(0x12e)]>0x1)throw CliErrors[_0x2952e5(0x118)]('--latest,\x20--beta,\x20and\x20version\x20cannot\x20be\x20used\x20together.',_0x2952e5(0x14b));if(_0x4e6c15&&!a85_0x10ccde[_0x2952e5(0x15d)](_0x4e6c15))throw CliErrors[_0x2952e5(0x118)](_0x2952e5(0x15f)+_0x4e6c15,_0x2952e5(0x13f));}async function fetchNpmDistTags(){const _0x164969=a85_0xd98eb0;try{const _0x3368e3=NPM_REGISTRY_BASE_URL+_0x164969(0x143)+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+_0x164969(0x16d),_0x5cb45e=await fetch(_0x3368e3,{'signal':AbortSignal['timeout'](0x2710)});if(!_0x5cb45e['ok'])return null;const _0x489562=await _0x5cb45e[_0x164969(0x168)]();if(!_0x489562||typeof _0x489562!==_0x164969(0x13a))return null;return Object[_0x164969(0x12d)](Object[_0x164969(0x134)](_0x489562)[_0x164969(0x123)](([,_0x16b076])=>typeof _0x16b076===_0x164969(0x116)&&_0x16b076[_0x164969(0x154)]())[_0x164969(0x140)](([_0x4cde32,_0x1f52c6])=>[_0x4cde32,String(_0x1f52c6)['trim']()]));}catch{return null;}}async function resolveTargetVersion(_0xd16cd1){const _0x2f757a=a85_0xd98eb0,_0x3e7fff=getRequestedVersion(_0xd16cd1);if(_0x3e7fff)return{'version':_0x3e7fff,'source':'version'};const _0x40057d=_0xd16cd1[_0x2f757a(0x13b)](_0x2f757a(0x130))?'beta':_0x2f757a(0x114),_0x24bab2=await fetchNpmDistTags(),_0x48bd22=_0x24bab2?.[_0x40057d];if(!_0x48bd22)return null;return{'version':_0x48bd22,'source':_0x40057d};}function shouldInstallTarget(_0x7259b1,_0x1b2571){const _0x32248d=a85_0xd98eb0;if(_0x1b2571[_0x32248d(0x16b)]==='version'||_0x1b2571[_0x32248d(0x16b)]===_0x32248d(0x130))return!a85_0x10ccde['eq'](_0x7259b1,_0x1b2571[_0x32248d(0x165)]);return a85_0x10ccde['lt'](_0x7259b1,_0x1b2571['version']);}export function installCliPackage(_0x15458e,_0x12993b,_0x4e6335=resolveCurrentCliNpmPrefix()){const _0x907e18=a85_0xd98eb0,_0x480cff=LOVRABET_NPM_PACKAGE_NAME+'@'+_0x15458e,_0x108695=[_0x907e18(0x163),'-g',_0x480cff],_0x1c62bf=runNpmInstall(_0x108695,_0x12993b);if(_0x1c62bf['ok']||!isNpmPrefixPermissionError(_0x1c62bf[_0x907e18(0x14d)]))return _0x1c62bf;if(!_0x4e6335||_0x1c62bf[_0x907e18(0x14d)]?.[_0x907e18(0x149)]()[_0x907e18(0x135)](_0x4e6335[_0x907e18(0x149)]()))return _0x1c62bf;return console[_0x907e18(0x137)](_0x907e18(0x121)+_0x4e6335),runNpmInstall([..._0x108695,_0x907e18(0x11a),_0x4e6335],_0x12993b);}export function resolveCurrentCliNpmPrefix(_0x4a7922=fileURLToPath(import.meta.url),_0x16d6d3=process['platform']){const _0x1b981e=a85_0xd98eb0,_0x5e77ad=_0x16d6d3===_0x1b981e(0x12f)?win32:{'basename':basename,'dirname':dirname,'relative':relative},_0x3aa465=_0x5e77ad[_0x1b981e(0x12b)](_0x5e77ad[_0x1b981e(0x12b)](_0x5e77ad[_0x1b981e(0x12b)](_0x4a7922))),_0x4d8218=_0x16d6d3===_0x1b981e(0x12f)?'@lovrabet\x5clovrabet-cli':_0x1b981e(0x15a);let _0x1d6bdb=_0x5e77ad[_0x1b981e(0x12b)](_0x3aa465);while(!![]){if(_0x5e77ad[_0x1b981e(0x11c)](_0x1d6bdb)==='node_modules'&&_0x5e77ad[_0x1b981e(0x160)](_0x1d6bdb,_0x3aa465)===_0x4d8218){const _0x20f085=_0x5e77ad['dirname'](_0x1d6bdb);return _0x5e77ad[_0x1b981e(0x11c)](_0x20f085)===_0x1b981e(0x167)?_0x5e77ad['dirname'](_0x20f085):_0x20f085;}const _0x4d2e03=_0x5e77ad['dirname'](_0x1d6bdb);if(_0x4d2e03===_0x1d6bdb)return null;_0x1d6bdb=_0x4d2e03;}}function runNpmInstall(_0x2b72b6,_0xa2e845){const _0x52ed2d=a85_0xd98eb0;console[_0x52ed2d(0x144)]('*\x20'+[_0x52ed2d(0x15c),..._0x2b72b6][_0x52ed2d(0x120)]('\x20'));const _0x323c3d=execaSync(_0x52ed2d(0x15c),_0x2b72b6,{'cwd':process['cwd'](),'stdio':_0x52ed2d(0x131),'env':process.env,'extendEnv':![],'shell':![],'reject':![]}),_0x1965cf=_0x323c3d[_0x52ed2d(0x14c)]?String(_0x323c3d[_0x52ed2d(0x14c)])[_0x52ed2d(0x154)]():'',_0x367796=_0x323c3d['stdout']?String(_0x323c3d[_0x52ed2d(0x133)])['trim']():'';if(!_0xa2e845){if(_0x367796)process[_0x52ed2d(0x133)]['write'](_0x367796+'\x0a');if(_0x1965cf)process['stderr'][_0x52ed2d(0x15e)](_0x1965cf+'\x0a');}if(_0x323c3d[_0x52ed2d(0x141)]===0x0)return{'ok':!![]};const _0x3609c9=_0x1965cf||_0x367796||_0x323c3d['shortMessage']||_0x52ed2d(0x126)+(_0x323c3d[_0x52ed2d(0x141)]??'unknown');return{'ok':![],'error':_0x3609c9};}function isNpmPrefixPermissionError(_0xf0c235){const _0x13a89d=a85_0xd98eb0;return Boolean(_0xf0c235&&/\b(?:EACCES|EPERM)\b/[_0x13a89d(0x138)](_0xf0c235));}function repairCurrentBuiltinSkill(_0x237e7e){const _0x1065d9=a85_0xd98eb0;console[_0x1065d9(0x144)]('Checking\x20CLI\x20Built-in\x20Skill...');const _0xfac0ee=installBuiltinSkill({'stdio':_0x237e7e?_0x1065d9(0x131):'inherit'});if(_0xfac0ee['ok']){console[_0x1065d9(0x144)]('\x20\x20CLI\x20Built-in\x20Skill\x20'+_0xfac0ee['skillVersion']+'\x20is\x20current.');return;}throw CliErrors[_0x1065d9(0x151)](_0x1065d9(0x16e)+(_0xfac0ee[_0x1065d9(0x122)]||_0x1065d9(0x14f))+_0x1065d9(0x164)+(_0xfac0ee[_0x1065d9(0x14d)]||_0x1065d9(0x128)),'Run:\x20'+_0xfac0ee['repairCommand']+_0x1065d9(0x170)+CLI_BIN_NAME+_0x1065d9(0x119));}function verifyUpdatedBuiltinSkill(_0xd41a5c){const _0x40be4c=a85_0xd98eb0;console[_0x40be4c(0x144)]('Checking\x20CLI\x20Built-in\x20Skill...');const _0x4ac59b=inspectInstalledBuiltinSkillVersion(_0xd41a5c);if(_0x4ac59b[_0x40be4c(0x16c)]==='current'){console[_0x40be4c(0x144)](_0x40be4c(0x156)+_0xd41a5c+_0x40be4c(0x13d));return;}const _0x131eaa=_0x4ac59b[_0x40be4c(0x155)]?'expected\x20'+_0xd41a5c+_0x40be4c(0x13e)+_0x4ac59b[_0x40be4c(0x155)]:_0x40be4c(0x147)+_0xd41a5c+',\x20state\x20'+_0x4ac59b[_0x40be4c(0x16c)],_0x8bb8c5=_0x4ac59b[_0x40be4c(0x125)]?_0x131eaa+':\x20'+_0x4ac59b[_0x40be4c(0x125)]:_0x131eaa;throw CliErrors[_0x40be4c(0x151)](_0x40be4c(0x142)+_0xd41a5c+_0x40be4c(0x132)+_0x8bb8c5,_0x40be4c(0x14a)+_0x4ac59b[_0x40be4c(0x11d)]+_0x40be4c(0x170)+CLI_BIN_NAME+_0x40be4c(0x119));}async function execute(_0x4db805){const _0x249972=a85_0xd98eb0;await validateUpdateFlags(_0x4db805);const _0xfba7c8=getCliVersion();console[_0x249972(0x144)](_0x249972(0x157)+_0xfba7c8),console[_0x249972(0x144)](_0x249972(0x169));const _0x352d68=await resolveTargetVersion(_0x4db805);if(!_0x352d68){const _0x53aaf9=_0x4db805[_0x249972(0x13b)](_0x249972(0x130))?_0x249972(0x130):'latest',_0x47365a=_0x249972(0x124)+_0x53aaf9+_0x249972(0x148);throw CliErrors['apiError'](_0x47365a,_0x249972(0x115)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x53aaf9);}const _0xb181d2=[_0xfba7c8,_0x352d68['version']][_0x249972(0x158)](_0x103ac9=>!a85_0x10ccde[_0x249972(0x15d)](_0x103ac9));if(_0xb181d2){const _0x3ea511=_0x249972(0x12c)+_0xb181d2+'.';throw CliErrors[_0x249972(0x151)](_0x3ea511,'Run:\x20npm\x20view\x20'+LOVRABET_NPM_PACKAGE_NAME+_0x249972(0x11f));}if(!shouldInstallTarget(_0xfba7c8,_0x352d68)){const _0x343eae=_0x352d68[_0x249972(0x16b)]===_0x249972(0x165)?_0x249972(0x113)+_0x352d68[_0x249972(0x165)]+').':'Already\x20up\x20to\x20date\x20(v'+_0x352d68[_0x249972(0x165)]+').';return console[_0x249972(0x144)](_0x343eae),repairCurrentBuiltinSkill(_0x4db805[_0x249972(0x11b)]),{'ok':!![]};}console['log'](_0x249972(0x127)+LOVRABET_NPM_PACKAGE_NAME+':\x20'+_0xfba7c8+_0x249972(0x153)+_0x352d68[_0x249972(0x165)]);const _0x2fd658=installCliPackage(_0x352d68['version'],_0x4db805[_0x249972(0x11b)]);if(!_0x2fd658['ok']){const _0x21c816=_0x249972(0x117)+(_0x2fd658[_0x249972(0x14d)]||_0x249972(0x128));throw CliErrors['apiError'](_0x21c816,_0x249972(0x115)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x352d68[_0x249972(0x165)]);}return console[_0x249972(0x144)](_0x249972(0x159)+_0x352d68[_0x249972(0x165)]+'.'),console[_0x249972(0x144)]('\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.'),verifyUpdatedBuiltinSkill(_0x352d68['version']),{'ok':!![]};}export const updateDefinition={'service':a85_0xd98eb0(0x16a),'command':a85_0xd98eb0(0x145),'description':a85_0xd98eb0(0x15b)+CLI_BIN_NAME+a85_0xd98eb0(0x11e),'risk':a85_0xd98eb0(0x162),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
|
|
1
|
+
const a85_0x14a5fb=a85_0x4a53;(function(_0x5903ce,_0x50f9d2){const _0x450be4=a85_0x4a53,_0x3d8b6b=_0x5903ce();while(!![]){try{const _0x1f696c=parseInt(_0x450be4(0x15d))/0x1+-parseInt(_0x450be4(0x15f))/0x2+-parseInt(_0x450be4(0x190))/0x3*(parseInt(_0x450be4(0x167))/0x4)+parseInt(_0x450be4(0x148))/0x5+-parseInt(_0x450be4(0x154))/0x6+-parseInt(_0x450be4(0x18a))/0x7+parseInt(_0x450be4(0x153))/0x8*(parseInt(_0x450be4(0x14a))/0x9);if(_0x1f696c===_0x50f9d2)break;else _0x3d8b6b['push'](_0x3d8b6b['shift']());}catch(_0x914426){_0x3d8b6b['push'](_0x3d8b6b['shift']());}}}(a85_0x4bd2,0xa674a));import{fileURLToPath}from'node:url';import{basename,dirname,relative,win32}from'node:path';import{execaSync}from'execa';import a85_0x10eb0c from'semver';import{CliErrors}from'../errors.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{LOVRABET_NPM_PACKAGE_NAME,NPM_REGISTRY_BASE_URL}from'../constant/distribution.js';function a85_0x4bd2(){const _0x49ba49=['/-/package/','Use\x20a\x20full\x20semver\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.','Version\x20comparison\x20failed:\x20',',\x20found\x20','dirname','\x20CLI\x20from\x20npm','reason','object','169004gOYqbI',',\x20then\x20verify\x20with:\x20','1045826RLsLoT','toLowerCase','version','cwd','length','state','source','test','76cOMHvL','includes','exitCode','\x20is\x20current.','nonInteractive','node_modules','write','\x20version\x20from\x20npm.','Already\x20on\x20requested\x20version\x20(v','Checking\x20npm\x20dist-tags...','repairCommand','\x20\x20CLI\x20Built-in\x20Skill\x20','join','timeout','filter','basename','map','unknown','inherit','npm','apiError','bool','Invalid\x20version:\x20','error',',\x20state\x20','Update\x20the\x20','log','Updated\x20to\x20v','Current\x20version:\x20','find','platform','Install\x20a\x20specific\x20CLI\x20version','fromEntries','Global\x20npm\x20prefix\x20is\x20not\x20writable;\x20retrying\x20in\x20the\x20current\x20CLI\x20Node\x20environment:\x20','boolean','6841912pYtoGL','args','exit\x20','skillVersion','trim','stdout','70497oJXqzI','beta','string','win32','\x20->\x20',',\x20but\x20Built-in\x20Skill\x20verification\x20failed:\x20','\x20dist-tags,\x20then\x20retry.','Run:\x20npm\x20install\x20-g\x20','Updating\x20','pipe','expected\x20','json','/dist-tags','Checking\x20CLI\x20Built-in\x20Skill...','--latest,\x20--beta,\x20and\x20version\x20cannot\x20be\x20used\x20together.','lib','2061975avNHmV','relative','20473740CzxGmq','validation','\x20doctor','Already\x20up\x20to\x20date\x20(v','latest','entries','valid','\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.','stderr','8WKSWBi','1365882lfBHIG'];a85_0x4bd2=function(){return _0x49ba49;};return a85_0x4bd2();}import{getCliVersion}from'../utils/version.js';import{inspectInstalledBuiltinSkillVersion,installBuiltinSkill}from'../skills/builtin-skill.js';const updateFlags=[{'name':'latest','type':a85_0x14a5fb(0x189),'description':'Install\x20the\x20version\x20from\x20npm\x20latest\x20dist-tag','default':![]},{'name':'beta','type':a85_0x14a5fb(0x189),'description':'Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','default':![]},{'name':a85_0x14a5fb(0x161),'type':'string','description':a85_0x14a5fb(0x186)}];function getRequestedVersion(_0x3986fc){const _0x18e880=a85_0x14a5fb,_0xc4fe9b=_0x3986fc['str'](_0x18e880(0x161))[_0x18e880(0x18e)]();if(_0xc4fe9b)return _0xc4fe9b;return String(_0x3986fc[_0x18e880(0x18b)]?.[0x0]??'')[_0x18e880(0x18e)]();}async function validateUpdateFlags(_0x341305){const _0x4a1e43=a85_0x14a5fb,_0x3b0f18=getRequestedVersion(_0x341305),_0x4a0c41=[_0x341305[_0x4a1e43(0x17c)](_0x4a1e43(0x14e))?_0x4a1e43(0x14e):'',_0x341305[_0x4a1e43(0x17c)](_0x4a1e43(0x191))?_0x4a1e43(0x191):'',_0x3b0f18?_0x4a1e43(0x161):''][_0x4a1e43(0x175)](Boolean);if(_0x4a0c41[_0x4a1e43(0x163)]>0x1)throw CliErrors[_0x4a1e43(0x14b)](_0x4a1e43(0x146),'Choose\x20exactly\x20one\x20target:\x20--latest,\x20--beta,\x20or\x20--version\x20<version>.');if(_0x3b0f18&&!a85_0x10eb0c['valid'](_0x3b0f18))throw CliErrors[_0x4a1e43(0x14b)](_0x4a1e43(0x17d)+_0x3b0f18,_0x4a1e43(0x156));}async function fetchNpmDistTags(){const _0x37e038=a85_0x14a5fb;try{const _0x5f1568=NPM_REGISTRY_BASE_URL+_0x37e038(0x155)+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+_0x37e038(0x144),_0x35cf18=await fetch(_0x5f1568,{'signal':AbortSignal[_0x37e038(0x174)](0x2710)});if(!_0x35cf18['ok'])return null;const _0x95b1b4=await _0x35cf18[_0x37e038(0x143)]();if(!_0x95b1b4||typeof _0x95b1b4!==_0x37e038(0x15c))return null;return Object[_0x37e038(0x187)](Object[_0x37e038(0x14f)](_0x95b1b4)['filter'](([,_0x51c65f])=>typeof _0x51c65f===_0x37e038(0x192)&&_0x51c65f[_0x37e038(0x18e)]())[_0x37e038(0x177)](([_0x1b8835,_0xf59629])=>[_0x1b8835,String(_0xf59629)[_0x37e038(0x18e)]()]));}catch{return null;}}async function resolveTargetVersion(_0x32a812){const _0x2fee9b=a85_0x14a5fb,_0x12d44b=getRequestedVersion(_0x32a812);if(_0x12d44b)return{'version':_0x12d44b,'source':_0x2fee9b(0x161)};const _0x2905f7=_0x32a812[_0x2fee9b(0x17c)](_0x2fee9b(0x191))?_0x2fee9b(0x191):_0x2fee9b(0x14e),_0x32eb49=await fetchNpmDistTags(),_0x127f22=_0x32eb49?.[_0x2905f7];if(!_0x127f22)return null;return{'version':_0x127f22,'source':_0x2905f7};}function a85_0x4a53(_0x53c7fa,_0x2705e8){_0x53c7fa=_0x53c7fa-0x13e;const _0x4bd2e4=a85_0x4bd2();let _0x4a5328=_0x4bd2e4[_0x53c7fa];return _0x4a5328;}function shouldInstallTarget(_0x4a0a22,_0x56456){const _0x5617c2=a85_0x14a5fb;if(_0x56456[_0x5617c2(0x165)]===_0x5617c2(0x161)||_0x56456[_0x5617c2(0x165)]===_0x5617c2(0x191))return!a85_0x10eb0c['eq'](_0x4a0a22,_0x56456['version']);return a85_0x10eb0c['lt'](_0x4a0a22,_0x56456['version']);}export function installCliPackage(_0x17cdc9,_0x394574,_0x4996fe=resolveCurrentCliNpmPrefix()){const _0x38db8c=a85_0x14a5fb,_0x4a4330=LOVRABET_NPM_PACKAGE_NAME+'@'+_0x17cdc9,_0x47fb97=['install','-g',_0x4a4330],_0x5d2ad9=runNpmInstall(_0x47fb97,_0x394574);if(_0x5d2ad9['ok']||!isNpmPrefixPermissionError(_0x5d2ad9[_0x38db8c(0x17e)]))return _0x5d2ad9;if(!_0x4996fe||_0x5d2ad9[_0x38db8c(0x17e)]?.['toLowerCase']()[_0x38db8c(0x168)](_0x4996fe[_0x38db8c(0x160)]()))return _0x5d2ad9;return console['warn'](_0x38db8c(0x188)+_0x4996fe),runNpmInstall([..._0x47fb97,'--prefix',_0x4996fe],_0x394574);}export function resolveCurrentCliNpmPrefix(_0x4ec1eb=fileURLToPath(import.meta.url),_0xe9dd14=process[a85_0x14a5fb(0x185)]){const _0x46df55=a85_0x14a5fb,_0x3e8528=_0xe9dd14===_0x46df55(0x193)?win32:{'basename':basename,'dirname':dirname,'relative':relative},_0x6b52cb=_0x3e8528[_0x46df55(0x159)](_0x3e8528['dirname'](_0x3e8528['dirname'](_0x4ec1eb))),_0x2c9823=_0xe9dd14==='win32'?'@lovrabet\x5clovrabet-cli':'@lovrabet/lovrabet-cli';let _0xfe5cd1=_0x3e8528[_0x46df55(0x159)](_0x6b52cb);while(!![]){if(_0x3e8528['basename'](_0xfe5cd1)===_0x46df55(0x16c)&&_0x3e8528[_0x46df55(0x149)](_0xfe5cd1,_0x6b52cb)===_0x2c9823){const _0xfa5d6d=_0x3e8528[_0x46df55(0x159)](_0xfe5cd1);return _0x3e8528[_0x46df55(0x176)](_0xfa5d6d)===_0x46df55(0x147)?_0x3e8528[_0x46df55(0x159)](_0xfa5d6d):_0xfa5d6d;}const _0x146a4b=_0x3e8528[_0x46df55(0x159)](_0xfe5cd1);if(_0x146a4b===_0xfe5cd1)return null;_0xfe5cd1=_0x146a4b;}}function runNpmInstall(_0x40f8ac,_0x503770){const _0x5ca1d4=a85_0x14a5fb;console['log']('*\x20'+[_0x5ca1d4(0x17a),..._0x40f8ac][_0x5ca1d4(0x173)]('\x20'));const _0x4357d6=execaSync('npm',_0x40f8ac,{'cwd':process[_0x5ca1d4(0x162)](),'stdio':'pipe','env':process.env,'extendEnv':![],'shell':![],'reject':![]}),_0x201efe=_0x4357d6[_0x5ca1d4(0x152)]?String(_0x4357d6['stderr'])[_0x5ca1d4(0x18e)]():'',_0x4d8321=_0x4357d6[_0x5ca1d4(0x18f)]?String(_0x4357d6[_0x5ca1d4(0x18f)])[_0x5ca1d4(0x18e)]():'';if(!_0x503770){if(_0x4d8321)process[_0x5ca1d4(0x18f)][_0x5ca1d4(0x16d)](_0x4d8321+'\x0a');if(_0x201efe)process[_0x5ca1d4(0x152)][_0x5ca1d4(0x16d)](_0x201efe+'\x0a');}if(_0x4357d6[_0x5ca1d4(0x169)]===0x0)return{'ok':!![]};const _0xfd081f=_0x201efe||_0x4d8321||_0x4357d6['shortMessage']||_0x5ca1d4(0x18c)+(_0x4357d6[_0x5ca1d4(0x169)]??_0x5ca1d4(0x178));return{'ok':![],'error':_0xfd081f};}function isNpmPrefixPermissionError(_0x47d859){const _0x30db36=a85_0x14a5fb;return Boolean(_0x47d859&&/\b(?:EACCES|EPERM)\b/[_0x30db36(0x166)](_0x47d859));}function repairCurrentBuiltinSkill(_0x5b30b3){const _0x545b68=a85_0x14a5fb;console['log'](_0x545b68(0x145));const _0x3a1dba=installBuiltinSkill({'stdio':_0x5b30b3?_0x545b68(0x141):_0x545b68(0x179)});if(_0x3a1dba['ok']){console[_0x545b68(0x181)](_0x545b68(0x172)+_0x3a1dba['skillVersion']+'\x20is\x20current.');return;}throw CliErrors[_0x545b68(0x17b)]('CLI\x20Built-in\x20Skill\x20repair\x20failed\x20['+(_0x3a1dba['code']||'INSTALL_FAILED')+']:\x20'+(_0x3a1dba[_0x545b68(0x17e)]||_0x545b68(0x178)),'Run:\x20'+_0x3a1dba['repairCommand']+',\x20then\x20verify\x20with:\x20'+CLI_BIN_NAME+'\x20doctor');}function verifyUpdatedBuiltinSkill(_0x540e7b){const _0xefaa36=a85_0x14a5fb;console[_0xefaa36(0x181)]('Checking\x20CLI\x20Built-in\x20Skill...');const _0x200bad=inspectInstalledBuiltinSkillVersion(_0x540e7b);if(_0x200bad[_0xefaa36(0x164)]==='current'){console[_0xefaa36(0x181)](_0xefaa36(0x172)+_0x540e7b+_0xefaa36(0x16a));return;}const _0x1d6e21=_0x200bad[_0xefaa36(0x18d)]?_0xefaa36(0x142)+_0x540e7b+_0xefaa36(0x158)+_0x200bad['skillVersion']:_0xefaa36(0x142)+_0x540e7b+_0xefaa36(0x17f)+_0x200bad[_0xefaa36(0x164)],_0x14718a=_0x200bad[_0xefaa36(0x15b)]?_0x1d6e21+':\x20'+_0x200bad[_0xefaa36(0x15b)]:_0x1d6e21;throw CliErrors[_0xefaa36(0x17b)]('CLI\x20updated\x20to\x20v'+_0x540e7b+_0xefaa36(0x195)+_0x14718a,'Run:\x20'+_0x200bad[_0xefaa36(0x171)]+_0xefaa36(0x15e)+CLI_BIN_NAME+_0xefaa36(0x14c));}async function execute(_0x172df0){const _0x477eda=a85_0x14a5fb;await validateUpdateFlags(_0x172df0);const _0x1e7a3b=getCliVersion();console[_0x477eda(0x181)](_0x477eda(0x183)+_0x1e7a3b),console[_0x477eda(0x181)](_0x477eda(0x170));const _0x1c2933=await resolveTargetVersion(_0x172df0);if(!_0x1c2933){const _0x526eef=_0x172df0[_0x477eda(0x17c)](_0x477eda(0x191))?_0x477eda(0x191):_0x477eda(0x14e),_0x243699='Unable\x20to\x20resolve\x20'+_0x526eef+_0x477eda(0x16e);throw CliErrors[_0x477eda(0x17b)](_0x243699,_0x477eda(0x13f)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x526eef);}const _0x571286=[_0x1e7a3b,_0x1c2933[_0x477eda(0x161)]][_0x477eda(0x184)](_0x142c56=>!a85_0x10eb0c[_0x477eda(0x150)](_0x142c56));if(_0x571286){const _0x48980f=_0x477eda(0x157)+_0x571286+'.';throw CliErrors['apiError'](_0x48980f,'Run:\x20npm\x20view\x20'+LOVRABET_NPM_PACKAGE_NAME+_0x477eda(0x13e));}if(!shouldInstallTarget(_0x1e7a3b,_0x1c2933)){const _0x377777=_0x1c2933[_0x477eda(0x165)]==='version'?_0x477eda(0x16f)+_0x1c2933[_0x477eda(0x161)]+').':_0x477eda(0x14d)+_0x1c2933[_0x477eda(0x161)]+').';return console[_0x477eda(0x181)](_0x377777),repairCurrentBuiltinSkill(_0x172df0[_0x477eda(0x16b)]),{'ok':!![]};}console['log'](_0x477eda(0x140)+LOVRABET_NPM_PACKAGE_NAME+':\x20'+_0x1e7a3b+_0x477eda(0x194)+_0x1c2933[_0x477eda(0x161)]);const _0x32799b=installCliPackage(_0x1c2933[_0x477eda(0x161)],_0x172df0[_0x477eda(0x16b)]);if(!_0x32799b['ok']){const _0x4cb822='Update\x20failed:\x20'+(_0x32799b[_0x477eda(0x17e)]||'unknown');throw CliErrors[_0x477eda(0x17b)](_0x4cb822,_0x477eda(0x13f)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x1c2933[_0x477eda(0x161)]);}return console[_0x477eda(0x181)](_0x477eda(0x182)+_0x1c2933[_0x477eda(0x161)]+'.'),console[_0x477eda(0x181)](_0x477eda(0x151)),verifyUpdatedBuiltinSkill(_0x1c2933[_0x477eda(0x161)]),{'ok':!![]};}export const updateDefinition={'service':'update','command':'run','description':a85_0x14a5fb(0x180)+CLI_BIN_NAME+a85_0x14a5fb(0x15a),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a86_0x57e19a=a86_0x5584;(function(_0x5b8c4d,_0x1f7ff9){const _0x55faae=a86_0x5584,_0x4f7a14=_0x5b8c4d();while(!![]){try{const _0x1365bd=parseInt(_0x55faae(0xe2))/0x1*(-parseInt(_0x55faae(0xd1))/0x2)+parseInt(_0x55faae(0xcf))/0x3+-parseInt(_0x55faae(0xdd))/0x4*(parseInt(_0x55faae(0xe1))/0x5)+parseInt(_0x55faae(0xd8))/0x6+-parseInt(_0x55faae(0xe5))/0x7+-parseInt(_0x55faae(0xe6))/0x8+parseInt(_0x55faae(0xcb))/0x9;if(_0x1365bd===_0x1f7ff9)break;else _0x4f7a14['push'](_0x4f7a14['shift']());}catch(_0x32dc3a){_0x4f7a14['push'](_0x4f7a14['shift']());}}}(a86_0xba41,0x87673));import{bindExternalUserAccount,USER_ACCOUNT_BIND_PATH}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const CURRENT_BINDING_WARNING=a86_0x57e19a(0xce),SUPPORTED_PROVIDERS=[a86_0x57e19a(0xd3)];function readBindingInput(_0x55b23c){const _0x566fa8=a86_0x57e19a,_0x41e082=_0x55b23c[_0x566fa8(0xca)](_0x566fa8(0xd0))[_0x566fa8(0xde)]()['toLowerCase']();if(!SUPPORTED_PROVIDERS[_0x566fa8(0xd5)](_0x41e082))throw CliErrors[_0x566fa8(0xdc)](_0x566fa8(0xcd)+(_0x41e082||_0x566fa8(0xe9))+'.',_0x566fa8(0xd4)+SUPPORTED_PROVIDERS[_0x566fa8(0xdf)](',\x20')+'.');const _0x3eba14=_0x55b23c[_0x566fa8(0xca)](_0x566fa8(0xe0))[_0x566fa8(0xde)]();if(!_0x3eba14)throw CliErrors[_0x566fa8(0xdc)](_0x566fa8(0xe8),'Pass\x20the\x20external\x20account\x20ID\x20for\x20the\x20selected\x20provider.');return{'provider':_0x41e082,'accountId':_0x3eba14};}function buildBindingData(_0x878407,_0xbf0178,_0x4cab60){return{'operation':'bind','selector':{'provider':_0x878407,'accountId':_0xbf0178},'before':null,'after':{'provider':_0x878407,'accountId':_0xbf0178,'bound':!![]},'dryRun':_0x4cab60,'warnings':[CURRENT_BINDING_WARNING]};}export const bindUserAccount={'service':'user-account','command':a86_0x57e19a(0xc9),'description':a86_0x57e19a(0xe3),'risk':a86_0x57e19a(0xdb),'confirmationDescription':a86_0x57e19a(0xe7),'requiresAuth':!![],'requiresAppCode':![],'flags':[{'name':'provider','type':a86_0x57e19a(0xd9),'required':!![],'enum':[...SUPPORTED_PROVIDERS],'description':a86_0x57e19a(0xcc)},{'name':a86_0x57e19a(0xe0),'type':'string','required':!![],'description':'External\x20account\x20ID\x20for\x20the\x20selected\x20provider'}],async 'validate'(_0x5a6279){readBindingInput(_0x5a6279);},async 'dryRun'(_0x30d634){const _0x354f0d=a86_0x57e19a,{provider:_0x1ec3fc,accountId:_0x2d69fb}=readBindingInput(_0x30d634);return{...buildBindingData(_0x1ec3fc,_0x2d69fb,!![]),'method':_0x354f0d(0xd7),'url':USER_ACCOUNT_BIND_PATH,'body':{'provider':_0x1ec3fc,'accountId':_0x2d69fb}};},async 'execute'(_0xf0e5b1){const _0x304454=a86_0x57e19a,{provider:_0x511350,accountId:_0x238861}=readBindingInput(_0xf0e5b1),_0x3ceb42=await bindExternalUserAccount(_0x511350,_0x238861);if(_0x3ceb42!==!![])throw CliErrors[_0x304454(0xe4)](_0x304454(0xd6),_0x304454(0xd2));return{'ok':!![],'data':buildBindingData(_0x511350,_0x238861,![]),'message':_0x304454(0xda)};}};function a86_0x5584(_0xb8713a,_0xbe3515){_0xb8713a=_0xb8713a-0xc9;const _0xba41e5=a86_0xba41();let _0x5584d1=_0xba41e5[_0xb8713a];return _0x5584d1;}function a86_0xba41(){const _0x3821f1=['436YuPLab','Retry\x20with\x20the\x20same\x20--provider\x20and\x20--account-id\x20only\x20after\x20checking\x20the\x20current\x20AccessKey\x20identity.','dingtalk','Pass\x20one\x20of:\x20','includes','External\x20account\x20binding\x20was\x20not\x20confirmed.','POST','2310288vaNieG','string','Bound\x20current\x20user\x20to\x20external\x20provider\x20account.','write','validation','554908AQyEey','trim','join','account-id','35KyIQUJ','4733UNkMLr','Bind\x20the\x20current\x20platform\x20user\x20to\x20an\x20external\x20provider\x20account','apiError','2703848JuoEIm','8625704QfUfhL','Binds\x20the\x20platform\x20user\x20of\x20the\x20current\x20AccessKey\x20to\x20the\x20given\x20collaboration-provider\x20account.\x20An\x20existing\x20bind\x20for\x20the\x20same\x20provider\x20may\x20be\x20replaced.','--account-id\x20cannot\x20be\x20empty.','(empty)','bind','str','22823361jmloCN','External\x20account\x20provider','Unsupported\x20provider:\x20','The\x20current\x20binding\x20is\x20not\x20exposed\x20by\x20the\x20server;\x20before\x20is\x20unavailable.','3302982RHiUSo','provider'];a86_0xba41=function(){return _0x3821f1;};return a86_0xba41();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x316fdd,_0x80a529){const _0x4bfe78=a87_0x4c19,_0x588507=_0x316fdd();while(!![]){try{const _0x3ae941=parseInt(_0x4bfe78(0x17f))/0x1+parseInt(_0x4bfe78(0x182))/0x2+parseInt(_0x4bfe78(0x186))/0x3+parseInt(_0x4bfe78(0x181))/0x4+parseInt(_0x4bfe78(0x184))/0x5*(-parseInt(_0x4bfe78(0x185))/0x6)+-parseInt(_0x4bfe78(0x17e))/0x7*(parseInt(_0x4bfe78(0x183))/0x8)+parseInt(_0x4bfe78(0x17d))/0x9*(-parseInt(_0x4bfe78(0x180))/0xa);if(_0x3ae941===_0x80a529)break;else _0x588507['push'](_0x588507['shift']());}catch(_0x52cb56){_0x588507['push'](_0x588507['shift']());}}}(a87_0x457e,0x37141));function a87_0x4c19(_0x28a05d,_0x516e4b){_0x28a05d=_0x28a05d-0x17d;const _0x457e30=a87_0x457e();let _0x4c1964=_0x457e30[_0x28a05d];return _0x4c1964;}function a87_0x457e(){const _0x136f78=['4110kMivGn','1380cQlVHb','1123542IPXBEo','3789810IfkmEa','295736CvoNIq','324519JVkEXl','10sLVRHS','598832aArgRL','58516kFdFPS','8KggIUC'];a87_0x457e=function(){return _0x136f78;};return a87_0x457e();}import{bindUserAccount}from'../../commands/user-account/bind.js';export const userAccountDefinitions=[bindUserAccount];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a88_0x43c194=a88_0x4b5a;function a88_0x4b5a(_0x2f3c02,_0x3b6097){_0x2f3c02=_0x2f3c02-0x1e4;const _0x13ff36=a88_0x13ff();let _0x4b5a87=_0x13ff36[_0x2f3c02];return _0x4b5a87;}(function(_0x4a58b2,_0x3ef763){const _0x56bd5d=a88_0x4b5a,_0x2627e1=_0x4a58b2();while(!![]){try{const _0x34b3f2=parseInt(_0x56bd5d(0x209))/0x1+parseInt(_0x56bd5d(0x225))/0x2+-parseInt(_0x56bd5d(0x218))/0x3+-parseInt(_0x56bd5d(0x1e6))/0x4*(parseInt(_0x56bd5d(0x1ea))/0x5)+parseInt(_0x56bd5d(0x22d))/0x6*(-parseInt(_0x56bd5d(0x226))/0x7)+-parseInt(_0x56bd5d(0x227))/0x8*(parseInt(_0x56bd5d(0x1f9))/0x9)+-parseInt(_0x56bd5d(0x20b))/0xa*(-parseInt(_0x56bd5d(0x217))/0xb);if(_0x34b3f2===_0x3ef763)break;else _0x2627e1['push'](_0x2627e1['shift']());}catch(_0x333391){_0x2627e1['push'](_0x2627e1['shift']());}}}(a88_0x13ff,0x6bb61));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':a88_0x43c194(0x20c),'type':a88_0x43c194(0x1e8),'description':a88_0x43c194(0x222)},{'name':'appcode','type':a88_0x43c194(0x1e8),'description':a88_0x43c194(0x204)},{'name':a88_0x43c194(0x202),'type':a88_0x43c194(0x1e8),'description':a88_0x43c194(0x1e5),'enum':[...RUNTIME_ENV_VALUES]}];async function executeWorkspaceUse(_0x2c0f43,_0x430b47){const _0x1042c8=a88_0x43c194,_0xc84a1=_0x2c0f43[_0x1042c8(0x206)](_0x1042c8(0x20c))[_0x1042c8(0x208)](),_0x209918=_0x2c0f43['str'](_0x1042c8(0x1f0))['trim'](),_0x210c5c=_0x2c0f43[_0x1042c8(0x206)]('env')[_0x1042c8(0x208)](),_0x9acb67=resolveWorkspaceEnv(_0x210c5c||_0x2c0f43[_0x1042c8(0x1ec)]||DEFAULT_CONFIG_VALUES[_0x1042c8(0x202)]);if(!_0xc84a1&&!_0x209918)throw CliErrors[_0x1042c8(0x1e7)](_0x1042c8(0x1ee),'Usage:\x20'+CLI_BIN_NAME+_0x1042c8(0x212)+_0x430b47+_0x1042c8(0x224)+CLI_BIN_NAME+_0x1042c8(0x212)+_0x430b47+_0x1042c8(0x21e));if(_0xc84a1&&_0x209918)throw CliErrors[_0x1042c8(0x1e7)](_0x1042c8(0x21c),_0x1042c8(0x210));const _0x40ae55=resolveWriteConfigPath(_0x1042c8(0x1f4)),_0x17fbdb=readConfigFile(_0x40ae55);assertWorkspaceCommandState(_0x430b47,_0x17fbdb);const _0x2a8737=_0x209918||await resolveRemoteAppCode({'command':_0x430b47,'appName':_0xc84a1,'env':_0x9acb67,'accessKey':_0x2c0f43['accessKey']});return writeWorkspaceConfig({'command':_0x430b47,'appName':_0xc84a1,'appcode':_0x2a8737,'env':_0x9acb67,'shouldWriteEnv':!!_0x210c5c,'accessKey':_0x2c0f43[_0x1042c8(0x228)]},_0x40ae55,_0x17fbdb),{'ok':!![],'data':{'configPath':_0x40ae55,'app':_0xc84a1||null,'appcode':_0x2a8737,'env':_0x210c5c?_0x9acb67:null,'accessKeyWritten':![],'command':_0x1042c8(0x1fb)+_0x430b47},'message':buildWorkspaceMessage(_0x40ae55,_0xc84a1,_0x2a8737,_0x210c5c?_0x9acb67:undefined)};}async function resolveRemoteAppCode(_0x25d206){const _0x5307b8=a88_0x43c194;if(!_0x25d206[_0x5307b8(0x228)])throw CliErrors[_0x5307b8(0x22c)](_0x5307b8(0x20e)+CLI_BIN_NAME+'\x20workspace\x20'+_0x25d206[_0x5307b8(0x1f8)]+'.');const {setActiveAK:_0x62395c}=await import(_0x5307b8(0x1fa)),{getRemoteAppList:_0x493e73}=await import(_0x5307b8(0x214));_0x62395c(_0x25d206['accessKey']);const _0x3abf8e=await _0x493e73({'env':_0x25d206[_0x5307b8(0x202)],'accessKey':_0x25d206[_0x5307b8(0x228)],'noCache':![]}),_0x55c0d8=findAppByName(_0x3abf8e[_0x5307b8(0x1f7)],_0x25d206[_0x5307b8(0x22e)]);if(_0x55c0d8&&!isRuntimeAccessibleApp(_0x55c0d8))throw runtimeInaccessibleAppError(_0x55c0d8,'\x22'+_0x25d206[_0x5307b8(0x22e)]+'\x22');const _0x3132f0=_0x55c0d8?.[_0x5307b8(0x20f)]?.['trim']();if(_0x3132f0)return _0x3132f0;const _0x1fa539=_0x3abf8e[_0x5307b8(0x1f7)][_0x5307b8(0x21f)](_0x33284a=>_0x33284a[_0x5307b8(0x22e)])[_0x5307b8(0x211)](Boolean),_0x5ed69d=_0x1fa539[_0x5307b8(0x1fc)]?_0x5307b8(0x1fd)+Array[_0x5307b8(0x20d)](new Set(_0x1fa539))['join'](',\x20')+'.':'Run\x20`'+CLI_BIN_NAME+'\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20pass\x20--appcode\x20directly.';throw CliErrors[_0x5307b8(0x1e7)](_0x5307b8(0x205)+_0x25d206[_0x5307b8(0x22e)]+_0x5307b8(0x220),_0x5ed69d);}function writeWorkspaceConfig(_0x13c65f,_0x4c20c6,_0x2e5a27){const _0x522419=a88_0x43c194;_0x13c65f[_0x522419(0x1f5)]&&(_0x2e5a27['env']=_0x13c65f[_0x522419(0x202)]);if(_0x13c65f[_0x522419(0x22e)]){const _0x3b9d8c=isRecord(_0x2e5a27['apps'])?{..._0x2e5a27[_0x522419(0x20a)]}:{},_0x307ffd=isRecord(_0x3b9d8c[_0x13c65f[_0x522419(0x22e)]])?_0x3b9d8c[_0x13c65f[_0x522419(0x22e)]]:{};return _0x3b9d8c[_0x13c65f[_0x522419(0x22e)]]={..._0x307ffd,'appcode':_0x13c65f[_0x522419(0x1f0)]},_0x2e5a27['apps']=_0x3b9d8c,_0x2e5a27[_0x522419(0x22b)]=_0x13c65f['appName'],delete _0x2e5a27[_0x522419(0x1f0)],delete _0x2e5a27[_0x522419(0x20c)],writeAndReturn(_0x4c20c6,_0x2e5a27);}return _0x2e5a27[_0x522419(0x1f0)]=_0x13c65f['appcode'],delete _0x2e5a27['defaultApp'],delete _0x2e5a27[_0x522419(0x20c)],writeAndReturn(_0x4c20c6,_0x2e5a27);}function writeAndReturn(_0x122730,_0x363568){return writeConfigFile(_0x122730,_0x363568),_0x122730;}function resolveWorkspaceEnv(_0x568cb1){const _0x143b71=a88_0x43c194;if(RUNTIME_ENV_VALUES[_0x143b71(0x21a)](_0x568cb1))return _0x568cb1;throw CliErrors[_0x143b71(0x1e7)](_0x143b71(0x1f1)+_0x568cb1+_0x143b71(0x1ff)+RUNTIME_ENV_VALUES[_0x143b71(0x1f2)](',\x20'));}function buildWorkspaceMessage(_0x474816,_0x26c5ea,_0x9818d0,_0x57ab5b){const _0x4d464d=a88_0x43c194,_0x3c8ff5=_0x26c5ea?_0x26c5ea+'\x20('+_0x9818d0+')':_0x9818d0,_0x45646c=_0x57ab5b?_0x4d464d(0x1ef)+_0x57ab5b:'';return _0x4d464d(0x1f6)+_0x474816+_0x4d464d(0x219)+_0x3c8ff5+_0x45646c+_0x4d464d(0x213);}function isRecord(_0x4c6f7e){const _0x3e1e07=a88_0x43c194;return typeof _0x4c6f7e===_0x3e1e07(0x1fe)&&_0x4c6f7e!==null&&!Array[_0x3e1e07(0x21b)](_0x4c6f7e);}function hasWorkspaceAppBinding(_0x264d61){const _0x310851=a88_0x43c194;if(typeof _0x264d61[_0x310851(0x1f0)]==='string'&&_0x264d61[_0x310851(0x1f0)][_0x310851(0x208)]()[_0x310851(0x1fc)]>0x0)return!![];if(typeof _0x264d61['defaultApp']!==_0x310851(0x1e8)||!_0x264d61[_0x310851(0x22b)]['trim']())return![];if(!isRecord(_0x264d61[_0x310851(0x20a)]))return![];const _0x14453c=_0x264d61[_0x310851(0x20a)][_0x264d61[_0x310851(0x22b)][_0x310851(0x208)]()];return isRecord(_0x14453c)&&typeof _0x14453c[_0x310851(0x1f0)]==='string'&&_0x14453c['appcode'][_0x310851(0x208)]()[_0x310851(0x1fc)]>0x0;}function assertWorkspaceCommandState(_0x2839d8,_0x565d4a){const _0x5a1916=a88_0x43c194,_0x40e60f=hasWorkspaceAppBinding(_0x565d4a);if(_0x2839d8===_0x5a1916(0x203)&&_0x40e60f)throw CliErrors['validation'](_0x5a1916(0x229),_0x5a1916(0x221)+CLI_BIN_NAME+_0x5a1916(0x207)+CLI_BIN_NAME+_0x5a1916(0x201));if(_0x2839d8===_0x5a1916(0x21d)&&!_0x40e60f)throw CliErrors['validation'](_0x5a1916(0x1eb),_0x5a1916(0x216)+CLI_BIN_NAME+_0x5a1916(0x1e4)+CLI_BIN_NAME+_0x5a1916(0x22a));}function makeWorkspaceCommand(_0x2af531){const _0x5d04ee=a88_0x43c194;return{'service':_0x5d04ee(0x1ed),'command':_0x2af531,'description':_0x2af531===_0x5d04ee(0x203)?_0x5d04ee(0x223):_0x5d04ee(0x200),'risk':_0x5d04ee(0x1e9),'confirmationDescription':_0x2af531===_0x5d04ee(0x203)?_0x5d04ee(0x215):_0x5d04ee(0x1f3),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':WORKSPACE_USE_FLAGS,async 'execute'(_0x13264c){return executeWorkspaceUse(_0x13264c,_0x2af531);}};}function a88_0x13ff(){const _0x498910=['../../commands/app/remote-source.js','Writes\x20Lovrabet\x20project\x20config\x20in\x20the\x20current\x20working\x20directory\x20when\x20no\x20app\x20is\x20bound\x20yet,\x20and\x20sets\x20the\x20selected\x20app\x20as\x20the\x20directory\x20default.\x20AccessKey\x20is\x20not\x20written.','Run\x20`','33mXPyJK','191733HvyRsh','\x0aDefault\x20app:\x20','includes','isArray','Conflicting\x20workspace\x20app\x20selectors.','use','\x20--appcode\x20<code>\x20[--env\x20daily]','map','\x22\x20not\x20found.','Use\x20`','App\x20name\x20to\x20bind\x20as\x20the\x20current\x20workspace\x20default','Initialize\x20app\x20context\x20for\x20the\x20current\x20working\x20directory\x20when\x20no\x20app\x20is\x20bound\x20yet','\x20--app\x20<name>\x20[--env\x20daily]\x20or\x20','682420ubenAh','5613314rMNrNX','5831624KXOeQu','accessKey','Workspace\x20app\x20context\x20is\x20already\x20initialized.','\x20workspace\x20init\x20--appcode\x20<code>`\x20first.','defaultApp','authRequired','6hkWADo','appName','\x20workspace\x20init\x20--app\x20<name>`\x20or\x20`','Target\x20environment','126644KEqdzq','validation','string','write','85DpdMuO','Workspace\x20app\x20context\x20is\x20not\x20initialized.','envName','workspace','Missing\x20workspace\x20app\x20selector.','\x0aEnv:\x20','appcode','Invalid\x20env\x20\x22','join','Updates\x20the\x20app\x20binding\x20already\x20present\x20in\x20the\x20current\x20working\x20directory\x20and\x20sets\x20the\x20selected\x20app\x20as\x20the\x20directory\x20default.\x20AccessKey\x20is\x20not\x20written.','project','shouldWriteEnv','Workspace\x20configured.\x0aConfig\x20file:\x20','items','command','9zZYzEv','../../core/api-client.js','workspace\x20','length','Available\x20apps:\x20','object','\x22.\x20Allowed:\x20','Change\x20the\x20app\x20context\x20already\x20bound\x20to\x20the\x20current\x20working\x20directory','\x20workspace\x20use\x20--appcode\x20<code>`\x20to\x20change\x20it.','env','init','App\x20code\x20to\x20bind\x20directly','App\x20\x22','str','\x20workspace\x20use\x20--app\x20<name>`\x20or\x20`','trim','383685ZLpLYy','apps','6164310NcxHzo','app','from','Resolving\x20--app\x20requires\x20accessKey.\x20Pass\x20--appcode\x20directly,\x20or\x20set\x20accessKey\x20before\x20running\x20','appCode','Pass\x20either\x20--app\x20<name>\x20or\x20--appcode\x20<code>,\x20not\x20both.','filter','\x20workspace\x20','\x0aAccessKey:\x20not\x20written'];a88_0x13ff=function(){return _0x498910;};return a88_0x13ff();}export const workspaceDefinitions=[makeWorkspaceCommand(a88_0x43c194(0x203)),makeWorkspaceCommand(a88_0x43c194(0x21d))];
|
|
1
|
+
const a88_0x4617b1=a88_0x1bab;(function(_0xdde6e6,_0x41d9dd){const _0x5e4ed7=a88_0x1bab,_0x3d1b34=_0xdde6e6();while(!![]){try{const _0x2f399b=-parseInt(_0x5e4ed7(0x9b))/0x1+parseInt(_0x5e4ed7(0xa1))/0x2*(parseInt(_0x5e4ed7(0xa6))/0x3)+-parseInt(_0x5e4ed7(0x94))/0x4+parseInt(_0x5e4ed7(0x8e))/0x5+-parseInt(_0x5e4ed7(0xa4))/0x6*(-parseInt(_0x5e4ed7(0x82))/0x7)+parseInt(_0x5e4ed7(0xb6))/0x8*(-parseInt(_0x5e4ed7(0x79))/0x9)+-parseInt(_0x5e4ed7(0xaf))/0xa;if(_0x2f399b===_0x41d9dd)break;else _0x3d1b34['push'](_0x3d1b34['shift']());}catch(_0x3fcd38){_0x3d1b34['push'](_0x3d1b34['shift']());}}}(a88_0xd59a,0x3ff7b));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':a88_0x4617b1(0x9f),'type':a88_0x4617b1(0x90),'description':'App\x20name\x20to\x20bind\x20as\x20the\x20current\x20workspace\x20default'},{'name':a88_0x4617b1(0x9e),'type':a88_0x4617b1(0x90),'description':a88_0x4617b1(0xb2)},{'name':a88_0x4617b1(0x86),'type':a88_0x4617b1(0x90),'description':a88_0x4617b1(0xa5),'enum':[...RUNTIME_ENV_VALUES]}];async function executeWorkspaceUse(_0x4eec2a,_0x259f41){const _0x1806e5=a88_0x4617b1,_0x3e61f5=_0x4eec2a[_0x1806e5(0xad)](_0x1806e5(0x9f))[_0x1806e5(0xb7)](),_0x2d9072=_0x4eec2a[_0x1806e5(0xad)](_0x1806e5(0x9e))[_0x1806e5(0xb7)](),_0x5f0c2f=_0x4eec2a[_0x1806e5(0xad)](_0x1806e5(0x86))[_0x1806e5(0xb7)](),_0x232fe6=resolveWorkspaceEnv(_0x5f0c2f||_0x4eec2a[_0x1806e5(0x95)]||DEFAULT_CONFIG_VALUES['env']);if(!_0x3e61f5&&!_0x2d9072)throw CliErrors[_0x1806e5(0x7f)]('Missing\x20workspace\x20app\x20selector.',_0x1806e5(0x7b)+CLI_BIN_NAME+_0x1806e5(0x84)+_0x259f41+_0x1806e5(0x80)+CLI_BIN_NAME+'\x20workspace\x20'+_0x259f41+_0x1806e5(0x98));if(_0x3e61f5&&_0x2d9072)throw CliErrors['validation'](_0x1806e5(0x7a),'Pass\x20either\x20--app\x20<name>\x20or\x20--appcode\x20<code>,\x20not\x20both.');const _0x42b518=resolveWriteConfigPath(_0x1806e5(0xa2)),_0x376024=readConfigFile(_0x42b518);assertWorkspaceCommandState(_0x259f41,_0x376024);const _0x1df74e=_0x2d9072||await resolveRemoteAppCode({'command':_0x259f41,'appName':_0x3e61f5,'env':_0x232fe6,'accessKey':_0x4eec2a[_0x1806e5(0x92)]});return writeWorkspaceConfig({'command':_0x259f41,'appName':_0x3e61f5,'appcode':_0x1df74e,'env':_0x232fe6,'shouldWriteEnv':!!_0x5f0c2f,'accessKey':_0x4eec2a[_0x1806e5(0x92)]},_0x42b518,_0x376024),{'ok':!![],'data':{'configPath':_0x42b518,'app':_0x3e61f5||null,'appcode':_0x1df74e,'env':_0x5f0c2f?_0x232fe6:null,'accessKeyWritten':![],'command':_0x1806e5(0x8c)+_0x259f41},'message':buildWorkspaceMessage(_0x42b518,_0x3e61f5,_0x1df74e,_0x5f0c2f?_0x232fe6:undefined)};}async function resolveRemoteAppCode(_0x454c73){const _0x590ef2=a88_0x4617b1;if(!_0x454c73['accessKey'])throw CliErrors[_0x590ef2(0x89)](_0x590ef2(0x97)+CLI_BIN_NAME+_0x590ef2(0x84)+_0x454c73['command']+'.');const {setActiveAK:_0x5d5fc2}=await import(_0x590ef2(0xa0)),{getRemoteAppList:_0x27a668}=await import('../../commands/app/remote-source.js');_0x5d5fc2(_0x454c73['accessKey']);const _0x231486=await _0x27a668({'env':_0x454c73[_0x590ef2(0x86)],'accessKey':_0x454c73[_0x590ef2(0x92)],'noCache':![]}),_0x340d00=findAppByName(_0x231486[_0x590ef2(0xa7)],_0x454c73[_0x590ef2(0x83)]);if(_0x340d00&&!isRuntimeAccessibleApp(_0x340d00))throw runtimeInaccessibleAppError(_0x340d00,'\x22'+_0x454c73[_0x590ef2(0x83)]+'\x22');const _0x35eb01=_0x340d00?.[_0x590ef2(0x9d)]?.[_0x590ef2(0xb7)]();if(_0x35eb01)return _0x35eb01;const _0x45d7a0=_0x231486[_0x590ef2(0xa7)][_0x590ef2(0xa9)](_0x34d00e=>_0x34d00e[_0x590ef2(0x83)])[_0x590ef2(0xb1)](Boolean),_0x2a5577=_0x45d7a0[_0x590ef2(0xa8)]?_0x590ef2(0x8a)+Array[_0x590ef2(0xb0)](new Set(_0x45d7a0))['join'](',\x20')+'.':_0x590ef2(0x8f)+CLI_BIN_NAME+_0x590ef2(0x78);throw CliErrors[_0x590ef2(0x7f)](_0x590ef2(0x9a)+_0x454c73[_0x590ef2(0x83)]+_0x590ef2(0xae),_0x2a5577);}function writeWorkspaceConfig(_0x9f5e18,_0x29e078,_0xa060c9){const _0x5d3ccf=a88_0x4617b1;_0x9f5e18[_0x5d3ccf(0xb5)]&&(_0xa060c9[_0x5d3ccf(0x86)]=_0x9f5e18[_0x5d3ccf(0x86)]);if(_0x9f5e18[_0x5d3ccf(0x83)]){const _0x4fb98f=isRecord(_0xa060c9[_0x5d3ccf(0xb3)])?{..._0xa060c9[_0x5d3ccf(0xb3)]}:{},_0x1e5e84=isRecord(_0x4fb98f[_0x9f5e18[_0x5d3ccf(0x83)]])?_0x4fb98f[_0x9f5e18['appName']]:{};return _0x4fb98f[_0x9f5e18['appName']]={..._0x1e5e84,'appcode':_0x9f5e18['appcode']},_0xa060c9[_0x5d3ccf(0xb3)]=_0x4fb98f,_0xa060c9[_0x5d3ccf(0x99)]=_0x9f5e18[_0x5d3ccf(0x83)],delete _0xa060c9[_0x5d3ccf(0x9e)],delete _0xa060c9[_0x5d3ccf(0x9f)],writeAndReturn(_0x29e078,_0xa060c9);}return _0xa060c9[_0x5d3ccf(0x9e)]=_0x9f5e18[_0x5d3ccf(0x9e)],delete _0xa060c9[_0x5d3ccf(0x99)],delete _0xa060c9[_0x5d3ccf(0x9f)],writeAndReturn(_0x29e078,_0xa060c9);}function writeAndReturn(_0x10fce6,_0xace66a){return writeConfigFile(_0x10fce6,_0xace66a),_0x10fce6;}function resolveWorkspaceEnv(_0x42937f){const _0x3f93f0=a88_0x4617b1;if(RUNTIME_ENV_VALUES['includes'](_0x42937f))return _0x42937f;throw CliErrors[_0x3f93f0(0x7f)](_0x3f93f0(0x85)+_0x42937f+_0x3f93f0(0xab)+RUNTIME_ENV_VALUES['join'](',\x20'));}function buildWorkspaceMessage(_0x557183,_0x3da6d0,_0x47b2d5,_0x4f1561){const _0x21a061=a88_0x4617b1,_0x578cb1=_0x3da6d0?_0x3da6d0+'\x20('+_0x47b2d5+')':_0x47b2d5,_0x4b2785=_0x4f1561?_0x21a061(0x7c)+_0x4f1561:'';return _0x21a061(0x81)+_0x557183+_0x21a061(0x8b)+_0x578cb1+_0x4b2785+_0x21a061(0x88);}function isRecord(_0x5065d9){const _0x139b80=a88_0x4617b1;return typeof _0x5065d9==='object'&&_0x5065d9!==null&&!Array[_0x139b80(0x8d)](_0x5065d9);}function a88_0x1bab(_0x5a7072,_0x280b34){_0x5a7072=_0x5a7072-0x78;const _0xd59a99=a88_0xd59a();let _0x1babc9=_0xd59a99[_0x5a7072];return _0x1babc9;}function hasWorkspaceAppBinding(_0x7e9e41){const _0x5d8283=a88_0x4617b1;if(typeof _0x7e9e41[_0x5d8283(0x9e)]===_0x5d8283(0x90)&&_0x7e9e41[_0x5d8283(0x9e)][_0x5d8283(0xb7)]()[_0x5d8283(0xa8)]>0x0)return!![];if(typeof _0x7e9e41['defaultApp']!==_0x5d8283(0x90)||!_0x7e9e41['defaultApp'][_0x5d8283(0xb7)]())return![];if(!isRecord(_0x7e9e41['apps']))return![];const _0x5f0d28=_0x7e9e41[_0x5d8283(0xb3)][_0x7e9e41[_0x5d8283(0x99)][_0x5d8283(0xb7)]()];return isRecord(_0x5f0d28)&&typeof _0x5f0d28[_0x5d8283(0x9e)]==='string'&&_0x5f0d28['appcode'][_0x5d8283(0xb7)]()['length']>0x0;}function assertWorkspaceCommandState(_0x17782a,_0x5000f9){const _0xb56772=a88_0x4617b1,_0x3f0c69=hasWorkspaceAppBinding(_0x5000f9);if(_0x17782a===_0xb56772(0x91)&&_0x3f0c69)throw CliErrors['validation']('Workspace\x20app\x20context\x20is\x20already\x20initialized.',_0xb56772(0xaa)+CLI_BIN_NAME+_0xb56772(0x7d)+CLI_BIN_NAME+_0xb56772(0xac));if(_0x17782a===_0xb56772(0x96)&&!_0x3f0c69)throw CliErrors[_0xb56772(0x7f)](_0xb56772(0x93),_0xb56772(0x8f)+CLI_BIN_NAME+_0xb56772(0xb8)+CLI_BIN_NAME+'\x20workspace\x20init\x20--appcode\x20<code>`\x20first.');}function a88_0xd59a(){const _0x5d6c7c=['\x20--app\x20<name>\x20[--env\x20daily]\x20or\x20','Workspace\x20configured.\x0aConfig\x20file:\x20','7KbQuzZ','appName','\x20workspace\x20','Invalid\x20env\x20\x22','env','Writes\x20Lovrabet\x20project\x20config\x20in\x20the\x20current\x20working\x20directory\x20when\x20no\x20app\x20is\x20bound\x20yet,\x20and\x20sets\x20the\x20selected\x20app\x20as\x20the\x20directory\x20default.\x20AccessKey\x20is\x20not\x20written.','\x0aAccessKey:\x20not\x20written','authRequired','Available\x20apps:\x20','\x0aDefault\x20app:\x20','workspace\x20','isArray','2215345nrdGVJ','Run\x20`','string','init','accessKey','Workspace\x20app\x20context\x20is\x20not\x20initialized.','1442492fcITSe','envName','use','Resolving\x20--app\x20requires\x20accessKey.\x20Pass\x20--appcode\x20directly,\x20or\x20set\x20accessKey\x20before\x20running\x20','\x20--appcode\x20<code>\x20[--env\x20daily]','defaultApp','App\x20\x22','208457QJYqWX','write','appCode','appcode','app','../../core/api-client.js','44974QrOsKm','project','workspace','3105174mrsKkG','Target\x20environment','45CJqczw','items','length','map','Use\x20`','\x22.\x20Allowed:\x20','\x20workspace\x20use\x20--appcode\x20<code>`\x20to\x20change\x20it.','str','\x22\x20not\x20found.','258010lxYCXc','from','filter','App\x20code\x20to\x20bind\x20directly','apps','Updates\x20the\x20app\x20binding\x20already\x20present\x20in\x20the\x20current\x20working\x20directory\x20and\x20sets\x20the\x20selected\x20app\x20as\x20the\x20directory\x20default.\x20AccessKey\x20is\x20not\x20written.','shouldWriteEnv','3528088idDjwE','trim','\x20workspace\x20init\x20--app\x20<name>`\x20or\x20`','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20pass\x20--appcode\x20directly.','9JTvtwn','Conflicting\x20workspace\x20app\x20selectors.','Usage:\x20','\x0aEnv:\x20','\x20workspace\x20use\x20--app\x20<name>`\x20or\x20`','Initialize\x20app\x20context\x20for\x20the\x20current\x20working\x20directory\x20when\x20no\x20app\x20is\x20bound\x20yet','validation'];a88_0xd59a=function(){return _0x5d6c7c;};return a88_0xd59a();}function makeWorkspaceCommand(_0x25e0ff){const _0x17d391=a88_0x4617b1;return{'service':_0x17d391(0xa3),'command':_0x25e0ff,'description':_0x25e0ff===_0x17d391(0x91)?_0x17d391(0x7e):'Change\x20the\x20app\x20context\x20already\x20bound\x20to\x20the\x20current\x20working\x20directory','risk':_0x17d391(0x9c),'confirmationDescription':_0x25e0ff===_0x17d391(0x91)?_0x17d391(0x87):_0x17d391(0xb4),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':WORKSPACE_USE_FLAGS,async 'execute'(_0xa96131){return executeWorkspaceUse(_0xa96131,_0x25e0ff);}};}export const workspaceDefinitions=[makeWorkspaceCommand(a88_0x4617b1(0x91)),makeWorkspaceCommand(a88_0x4617b1(0x96))];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a89_0x34db4c=a89_0x5aa8;(function(_0x581ce8,_0x24f29a){const _0x3484a9=a89_0x5aa8,_0x4da9a0=_0x581ce8();while(!![]){try{const _0x31df98=parseInt(_0x3484a9(0xd6))/0x1*(parseInt(_0x3484a9(0xd9))/0x2)+-parseInt(_0x3484a9(0xe9))/0x3+-parseInt(_0x3484a9(0xff))/0x4+parseInt(_0x3484a9(0xdc))/0x5+-parseInt(_0x3484a9(0xd8))/0x6+-parseInt(_0x3484a9(0x108))/0x7*(-parseInt(_0x3484a9(0x102))/0x8)+-parseInt(_0x3484a9(0xf4))/0x9;if(_0x31df98===_0x24f29a)break;else _0x4da9a0['push'](_0x4da9a0['shift']());}catch(_0x2a756b){_0x4da9a0['push'](_0x4da9a0['shift']());}}}(a89_0x4d6f,0xa89b2));function a89_0x5aa8(_0x37d9c9,_0x5cb4e4){_0x37d9c9=_0x37d9c9-0xce;const _0x4d6f69=a89_0x4d6f();let _0x5aa891=_0x4d6f69[_0x37d9c9];return _0x5aa891;}import{existsSync,readFileSync}from'node:fs';import{isAbsolute,resolve}from'node:path';import{CliErrors}from'../errors.js';import{ENTERPRISE_ROUTING_DOMAIN_FIELDS,ENTERPRISE_ROUTING_KIND,ENTERPRISE_ROUTING_PROTOCOL,REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS}from'../generated/routing-contract.js';export const DOMAIN_CONFIG_FIELDS=[a89_0x34db4c(0xfd),a89_0x34db4c(0xf6),a89_0x34db4c(0xd3),a89_0x34db4c(0xec)];const DOMAIN_FLAGS={'userDomain':a89_0x34db4c(0x103),'apiDomain':a89_0x34db4c(0xeb),'runtimeDomain':a89_0x34db4c(0xee),'skillDomain':a89_0x34db4c(0xef)};export const LEGACY_DOMAIN_CONFIG_FIELDS=[a89_0x34db4c(0xe0),'platformDomain',a89_0x34db4c(0xd5),a89_0x34db4c(0xe8)];const ENTERPRISE_TO_LOCAL_FIELD={'userDomain':a89_0x34db4c(0xfd),'apiDomain':'apiDomain','runtimeDomain':a89_0x34db4c(0xd3),'skillDomain':'skillDomain'},ROUTING_CONSUMER='lovrabet-cli';export function normalizeDomainOrigin(_0x53cef1,_0x2907b9){const _0x9211d5=a89_0x34db4c;if(typeof _0x2907b9!=='string'||!_0x2907b9[_0x9211d5(0xe3)]())throw CliErrors[_0x9211d5(0xfc)](_0x9211d5(0xf1)+_0x53cef1+_0x9211d5(0xe7));let _0xb916d9;try{_0xb916d9=new URL(_0x2907b9[_0x9211d5(0xe3)]());}catch{throw CliErrors[_0x9211d5(0xfc)](_0x9211d5(0xf1)+_0x53cef1+_0x9211d5(0xed)+_0x2907b9+_0x9211d5(0xd7));}if(_0xb916d9[_0x9211d5(0x109)]!==_0x9211d5(0xe6)||_0xb916d9[_0x9211d5(0x104)]||_0xb916d9['password']||_0xb916d9['pathname']!=='/'&&_0xb916d9[_0x9211d5(0xce)]!==''||_0xb916d9[_0x9211d5(0xdb)]||_0xb916d9[_0x9211d5(0xe2)])throw CliErrors[_0x9211d5(0xfc)](_0x9211d5(0xf1)+_0x53cef1+_0x9211d5(0x101),_0x9211d5(0xf0));return _0xb916d9['origin'];}export function normalizeRoutingDomainValue(_0xe92b55,_0x46df8f){const _0x5982a7=a89_0x34db4c;if(typeof _0x46df8f==='string')return normalizeDomainOrigin(_0xe92b55,_0x46df8f);if(!_0x46df8f||typeof _0x46df8f!==_0x5982a7(0xd0)||Array[_0x5982a7(0xfb)](_0x46df8f))throw CliErrors[_0x5982a7(0xfc)](_0x5982a7(0xf1)+_0xe92b55+':\x20expected\x20an\x20HTTPS\x20origin\x20or\x20consumer\x20Domain\x20object.');const _0x581b45=_0x46df8f,_0x3bb9af=_0x581b45[ROUTING_CONSUMER]??_0x581b45['default'];if(_0x3bb9af===undefined)throw CliErrors[_0x5982a7(0xfc)](_0x5982a7(0xe5)+_0xe92b55+'\x20does\x20not\x20provide\x20a\x20Domain\x20for\x20'+ROUTING_CONSUMER+_0x5982a7(0xf3));return normalizeDomainOrigin(_0xe92b55,_0x3bb9af);}export function resolveEnterpriseRoutingConfig(_0x460ced){const _0xbe1fb4=a89_0x34db4c;if(_0x460ced===undefined)return undefined;if(!_0x460ced||typeof _0x460ced!==_0xbe1fb4(0xd0)||Array[_0xbe1fb4(0xfb)](_0x460ced))throw CliErrors[_0xbe1fb4(0xfc)](_0xbe1fb4(0xe1));return parseEnterpriseRoutingManifest(_0x460ced)['domains'];}export function readDomainConfigInput(_0x48f756){const _0x35dd47=a89_0x34db4c,_0x4dae4e=isAbsolute(_0x48f756)?_0x48f756:resolve(process[_0x35dd47(0xf7)](),_0x48f756);if(!existsSync(_0x4dae4e))throw CliErrors[_0x35dd47(0xfc)](_0x35dd47(0x105)+_0x4dae4e);let _0x48fdfa;try{_0x48fdfa=JSON['parse'](readFileSync(_0x4dae4e,'utf8'));}catch{throw CliErrors[_0x35dd47(0xfc)](_0x35dd47(0xf8)+_0x4dae4e);}if(!_0x48fdfa||typeof _0x48fdfa!==_0x35dd47(0xd0)||Array['isArray'](_0x48fdfa))throw CliErrors[_0x35dd47(0xfc)](_0x35dd47(0xda));const _0x319697=_0x48fdfa;if(_0x35dd47(0x109)in _0x319697)return parseEnterpriseRoutingManifest(_0x319697);const _0x135bc4=Object[_0x35dd47(0xdf)](_0x319697)[_0x35dd47(0xe4)](_0x417024=>!DOMAIN_CONFIG_FIELDS['includes'](_0x417024));if(_0x135bc4['length']>0x0)throw CliErrors[_0x35dd47(0xfc)]('Unsupported\x20domain\x20config\x20field(s):\x20'+_0x135bc4['join'](',\x20'),_0x35dd47(0x107)+DOMAIN_CONFIG_FIELDS[_0x35dd47(0xf5)](',\x20'));const _0x229eae={};for(const _0x3175ed of DOMAIN_CONFIG_FIELDS){_0x319697[_0x3175ed]!==undefined&&(_0x229eae[_0x3175ed]=normalizeDomainOrigin(_0x3175ed,_0x319697[_0x3175ed]));}if(Object[_0x35dd47(0xdf)](_0x229eae)[_0x35dd47(0x106)]===0x0)throw CliErrors[_0x35dd47(0xfc)](_0x35dd47(0xdd));return{'mode':_0x35dd47(0xfe),'domains':_0x229eae};}export function readDomainConfig(_0x113583){return readDomainConfigInput(_0x113583)['domains'];}export function resolveDomainConfigInput(_0x4cf26b){const _0x3c82aa=a89_0x34db4c,_0x243f74=(_0x4cf26b[_0x3c82aa(0xf9)](_0x3c82aa(0xd4))||'')[_0x3c82aa(0xe3)](),_0x5ab5cb=_0x243f74?readDomainConfigInput(_0x243f74):{'mode':_0x3c82aa(0xfe),'domains':{}},_0x30c836=DOMAIN_CONFIG_FIELDS[_0x3c82aa(0xe4)](_0x652267=>Boolean((_0x4cf26b[_0x3c82aa(0xf9)](DOMAIN_FLAGS[_0x652267])||'')['trim']()));if(_0x5ab5cb[_0x3c82aa(0xde)]===_0x3c82aa(0x100)&&_0x30c836[_0x3c82aa(0x106)]>0x0)throw CliErrors[_0x3c82aa(0xfc)](_0x3c82aa(0xfa),'Update\x20the\x20manifest\x20so\x20both\x20CLIs\x20consume\x20the\x20same\x20routing\x20data.');for(const _0x1672d5 of DOMAIN_CONFIG_FIELDS){const _0x1b5da8=(_0x4cf26b[_0x3c82aa(0xf9)](DOMAIN_FLAGS[_0x1672d5])||'')[_0x3c82aa(0xe3)]();if(_0x1b5da8)_0x5ab5cb['domains'][_0x1672d5]=normalizeDomainOrigin(_0x1672d5,_0x1b5da8);}return _0x5ab5cb;}export function resolveDomainFlags(_0x560ea4){const _0x44cee4=a89_0x34db4c;return resolveDomainConfigInput(_0x560ea4)[_0x44cee4(0xd1)];}function a89_0x4d6f(){const _0x21cec9=['pathname','\x22\x20and\x20kind\x20\x22','object','domains','Invalid\x20enterprise\x20routing\x20manifest:\x20domains\x20must\x20be\x20an\x20object.','runtimeDomain','domain-config','skillHubDomain','13WmxeJJ','\x22\x20is\x20not\x20a\x20valid\x20URL.','6070098fizlSf','199942dLPsic','Invalid\x20domain\x20config:\x20expected\x20a\x20JSON\x20object.','search','5134040gofdaT','Invalid\x20domain\x20config:\x20provide\x20at\x20least\x20one\x20supported\x20Domain.','mode','keys','agentDomain','Invalid\x20enterprise\x20routing\x20config:\x20expected\x20an\x20object.','hash','trim','filter','Enterprise\x20','https:',':\x20expected\x20a\x20non-empty\x20HTTPS\x20origin.','kbDomain','525762gcxGrj','kind','api-domain','skillDomain',':\x20\x22','runtime-domain','skill-domain','For\x20internal\x20deployments,\x20terminate\x20TLS\x20at\x20the\x20ingress,\x20reverse\x20proxy,\x20or\x20load\x20balancer;\x20an\x20internal\x20CA\x20is\x20supported.','Invalid\x20','Enterprise\x20routing\x20manifest\x20is\x20missing\x20required\x20Domain(s):\x20','\x20and\x20has\x20no\x20default.','15258582WWVGAb','join','apiDomain','cwd','Invalid\x20domain\x20config\x20JSON:\x20','str','Enterprise\x20routing\x20manifests\x20cannot\x20be\x20combined\x20with\x20individual\x20Domain\x20flags.','isArray','validation','userDomain','legacy','118900cqBBYu','enterprise-v1',':\x20expected\x20an\x20HTTPS\x20origin\x20without\x20credentials,\x20path,\x20query,\x20or\x20fragment.','109784ksfbmM','user-domain','username','Domain\x20config\x20file\x20not\x20found:\x20','length','Allowed\x20fields:\x20','651jSyteb','protocol'];a89_0x4d6f=function(){return _0x21cec9;};return a89_0x4d6f();}export function parseEnterpriseRoutingManifest(_0xfb34ed){const _0x16f700=a89_0x34db4c;if(_0xfb34ed[_0x16f700(0x109)]!==ENTERPRISE_ROUTING_PROTOCOL||_0xfb34ed[_0x16f700(0xea)]!==ENTERPRISE_ROUTING_KIND)throw CliErrors[_0x16f700(0xfc)]('Unsupported\x20routing\x20manifest:\x20expected\x20protocol\x20\x22'+ENTERPRISE_ROUTING_PROTOCOL+_0x16f700(0xcf)+ENTERPRISE_ROUTING_KIND+'\x22.');if(!_0xfb34ed['domains']||typeof _0xfb34ed[_0x16f700(0xd1)]!==_0x16f700(0xd0)||Array[_0x16f700(0xfb)](_0xfb34ed['domains']))throw CliErrors[_0x16f700(0xfc)](_0x16f700(0xd2));const _0xd8507c=_0xfb34ed[_0x16f700(0xd1)],_0x5bdac4=REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS[_0x16f700(0xe4)](_0xb01989=>_0xd8507c[_0xb01989]===undefined);if(_0x5bdac4[_0x16f700(0x106)]>0x0)throw CliErrors[_0x16f700(0xfc)](_0x16f700(0xf2)+_0x5bdac4[_0x16f700(0xf5)](',\x20'));const _0x2865c1={},_0x14d64e={};for(const _0x26f63a of ENTERPRISE_ROUTING_DOMAIN_FIELDS){const _0x15caa3=_0xd8507c[_0x26f63a];if(_0x15caa3===undefined)continue;const _0x489494=normalizeRoutingDomainValue(_0x26f63a,_0x15caa3);_0x2865c1[_0x26f63a]=_0x489494;const _0x2b8399=ENTERPRISE_TO_LOCAL_FIELD[_0x26f63a];_0x2b8399&&(_0x14d64e[_0x2b8399]=_0x489494);}return{'mode':'enterprise-v1','domains':_0x14d64e,'manifestDomains':_0x2865c1};}
|
package/lib/config/schema.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a90_0xbcd07e=a90_0x4e01;(function(_0x4769e3,_0x5dba87){const _0x410cab=a90_0x4e01,_0x3e5b85=_0x4769e3();while(!![]){try{const _0x2a315a=-parseInt(_0x410cab(0x100))/0x1*(parseInt(_0x410cab(0x106))/0x2)+parseInt(_0x410cab(0xf0))/0x3+-parseInt(_0x410cab(0xf7))/0x4+-parseInt(_0x410cab(0xf1))/0x5+parseInt(_0x410cab(0x104))/0x6*(parseInt(_0x410cab(0xee))/0x7)+parseInt(_0x410cab(0xf8))/0x8+parseInt(_0x410cab(0xe7))/0x9;if(_0x2a315a===_0x5dba87)break;else _0x3e5b85['push'](_0x3e5b85['shift']());}catch(_0x207212){_0x3e5b85['push'](_0x3e5b85['shift']());}}}(a90_0x4ada,0x79ff6));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../constant/env.js';import{OUTPUT_FORMAT_VALUES}from'../constant/output.js';function a90_0x4ada(){const _0x1e0d33=['fromEntries','toLowerCase','legacyCompatOnly','Versioned\x20enterprise\x20routing\x20manifest','cliSettableTopLevel','3831476SyGpEs','1339904RQqwuk','Override\x20user\x20domain','Default\x20page\x20size','map','format','importable','Default\x20output\x20format',';\x20local\x20alias:\x20apps.<alias>.appcode','7zeJwww','filter','Risk\x20level','en-US','12tODbXI','Override\x20runtime\x20domain','85334LPTfux','defaultValue','env','Override\x20API\x20domain','entries','12838590AoKQSw','riskLevel','has','App\x20locale\x20(not\x20CLI\x20language;\x20reserved\x20for\x20later\x20app\x20use)','Target\x20environment','zh-CN','enumValues','2255519TqLPMa','nativeToolAvailable','591069rQCOtL','3396075SqNfgE'];a90_0x4ada=function(){return _0x1e0d33;};return a90_0x4ada();}import{DEFAULT_LOVRABET_REGION,ENABLED_LOVRABET_REGION_VALUES}from'../constant/region.js';export const CONFIG_FIELD_SCHEMAS={'routing':{'description':a90_0xbcd07e(0xf5),'topLevel':!![]},'region':{'description':'Lovrabet\x20region','topLevel':!![],'cliSettableTopLevel':!![],'enumValues':ENABLED_LOVRABET_REGION_VALUES,'defaultValue':DEFAULT_LOVRABET_REGION,'importable':!![]},'env':{'description':a90_0xbcd07e(0xeb),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':RUNTIME_ENV_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a90_0xbcd07e(0x108)],'importable':!![]},'format':{'description':a90_0xbcd07e(0xfe),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':OUTPUT_FORMAT_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a90_0xbcd07e(0xfc)],'importable':!![]},'pageSize':{'description':a90_0xbcd07e(0xfa),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'apiDomain':{'description':a90_0xbcd07e(0x109),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'userDomain':{'description':a90_0xbcd07e(0xf9),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'runtimeDomain':{'description':a90_0xbcd07e(0x105),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'skillDomain':{'description':'Override\x20SkillHub\x20domain','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'accessKey':{'description':'Access\x20key\x20(client-ak\x20auth)','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'riskLevel':{'description':a90_0xbcd07e(0x102),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES['riskLevel'],'importable':!![]},'nativeToolAvailable':{'description':'Native\x20Lovrabet\x20tool\x20availability\x20in\x20the\x20current\x20execution\x20host','topLevel':!![],'defaultValue':![]},'locale':{'description':a90_0xbcd07e(0xea),'topLevel':!![],'cliSettableTopLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES['locale'],'importable':!![]}};export const TOP_LEVEL_CONFIG_KEYS=new Set(Object[a90_0xbcd07e(0xe6)](CONFIG_FIELD_SCHEMAS)[a90_0xbcd07e(0x101)](([,_0x214dcf])=>_0x214dcf[a90_0xbcd07e(0xf6)])[a90_0xbcd07e(0xfb)](([_0x3dd131])=>_0x3dd131));export const CLI_PROTECTED_CONFIG_KEYS=new Set([a90_0xbcd07e(0xe8),a90_0xbcd07e(0xef)]);export const CONFIG_ENUM_VALUES=Object[a90_0xbcd07e(0xf2)](Object[a90_0xbcd07e(0xe6)](CONFIG_FIELD_SCHEMAS)[a90_0xbcd07e(0x101)](([,_0x26c69a])=>_0x26c69a[a90_0xbcd07e(0xed)])['map'](([_0xabc4ff,_0x459d4f])=>[_0xabc4ff,[..._0x459d4f[a90_0xbcd07e(0xed)]||[]]]));export const IMPORTABLE_RUNTIME_CONFIG_KEYS=Object[a90_0xbcd07e(0xe6)](CONFIG_FIELD_SCHEMAS)[a90_0xbcd07e(0x101)](([,_0x2b2dad])=>_0x2b2dad[a90_0xbcd07e(0xfd)])['map'](([_0x5a368b])=>_0x5a368b);function a90_0x4e01(_0x785992,_0x1e8876){_0x785992=_0x785992-0xe6;const _0x4ada83=a90_0x4ada();let _0x4e01dc=_0x4ada83[_0x785992];return _0x4e01dc;}export function getConfigFieldSchema(_0x16c1d3){return CONFIG_FIELD_SCHEMAS[_0x16c1d3];}export function getConfigEnumValues(_0x4df9b5){const _0x2ebf19=a90_0xbcd07e;return getConfigFieldSchema(_0x4df9b5)?.[_0x2ebf19(0xed)];}export function getConfigDefaultValue(_0x32efc4){const _0x13e628=a90_0xbcd07e;return getConfigFieldSchema(_0x32efc4)?.[_0x13e628(0x107)];}export function isTopLevelConfigKey(_0x1f084e){return TOP_LEVEL_CONFIG_KEYS['has'](_0x1f084e);}export function isCliProtectedConfigKey(_0x458c34){const _0x1eecf8=a90_0xbcd07e;return CLI_PROTECTED_CONFIG_KEYS[_0x1eecf8(0xe9)](_0x458c34);}const LOCALE_MAP={'zh':a90_0xbcd07e(0xec),'zh-cn':a90_0xbcd07e(0xec),'zh_cn':a90_0xbcd07e(0xec),'en':a90_0xbcd07e(0x103),'en-us':a90_0xbcd07e(0x103),'en_us':'en-US'};export function normalizeLocale(_0x1dec5a){const _0x516d5c=a90_0xbcd07e;if(!_0x1dec5a)return null;return LOCALE_MAP[_0x1dec5a[_0x516d5c(0xf3)]()]??null;}export function isLegacyCompatConfigKey(_0x58c015){const _0x2e0f78=a90_0xbcd07e;return getConfigFieldSchema(_0x58c015)?.[_0x2e0f78(0xf4)]===!![];}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function formatConfigKeyList(_0x45b4a8){return[..._0x45b4a8]['join'](',\x20');}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x4abaa5=a90_0xbcd07e;return'Config\x20key.\x20Top-level:\x20'+getTopLevelConfigKeySummary()+_0x4abaa5(0xff);}export function buildAppProfileListFields(_0x65872){return{'env':_0x65872,'hasAccessKey':![],'format':null,'pageSize':null,'riskLevel':null,'locale':null};}
|
package/lib/constant/app.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a91_0x70cbce=a91_0x5ce7;function a91_0x3ea5(){const _0x26f707=['545zoCsWm','6595976SadFSS','777729uwsgHR','Published','UNPUBLISH','8612cLXUEK','660201QIBNcY','PUBLISHED','81884esToXY','458941nJNSbu','4089330MLQQHS'];a91_0x3ea5=function(){return _0x26f707;};return a91_0x3ea5();}(function(_0x13a36e,_0xee504c){const _0x33d57e=a91_0x5ce7,_0x26e303=_0x13a36e();while(!![]){try{const _0x861c8b=parseInt(_0x33d57e(0x1ad))/0x1+parseInt(_0x33d57e(0x1b3))/0x2+-parseInt(_0x33d57e(0x1b1))/0x3+-parseInt(_0x33d57e(0x1b0))/0x4*(parseInt(_0x33d57e(0x1ab))/0x5)+-parseInt(_0x33d57e(0x1b5))/0x6+-parseInt(_0x33d57e(0x1b4))/0x7+parseInt(_0x33d57e(0x1ac))/0x8;if(_0x861c8b===_0xee504c)break;else _0x26e303['push'](_0x26e303['shift']());}catch(_0x594adc){_0x26e303['push'](_0x26e303['shift']());}}}(a91_0x3ea5,0x6bbda));export const APP_PUBLISH_STATUS={'Published':a91_0x70cbce(0x1b2),'Unpublished':a91_0x70cbce(0x1af)};function a91_0x5ce7(_0x119f75,_0x4e0e43){_0x119f75=_0x119f75-0x1ab;const _0x3ea523=a91_0x3ea5();let _0x5ce73b=_0x3ea523[_0x119f75];return _0x5ce73b;}export const RUNTIME_ACCESSIBLE_APP_STATUS=APP_PUBLISH_STATUS[a91_0x70cbce(0x1ae)];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a92_0x575b(){const _0x15f14f=['client-ak','8366616yeXyIQ','4482eypFHj','438765haZAZr','3048104PZmhdS','ClientAk','1051217XUWBPp','3840270vzXMUY','2926EufQtc','1450488RwjqeL','2mhLSBA','8rDlTzn'];a92_0x575b=function(){return _0x15f14f;};return a92_0x575b();}function a92_0x4ebd(_0x3a0d2b,_0x5b706e){_0x3a0d2b=_0x3a0d2b-0xea;const _0x575b51=a92_0x575b();let _0x4ebd60=_0x575b51[_0x3a0d2b];return _0x4ebd60;}const a92_0x43dc7b=a92_0x4ebd;(function(_0x3f1d9f,_0x198053){const _0x20fb59=a92_0x4ebd,_0x1b2155=_0x3f1d9f();while(!![]){try{const _0xe84f30=-parseInt(_0x20fb59(0xf3))/0x1*(-parseInt(_0x20fb59(0xeb))/0x2)+-parseInt(_0x20fb59(0xea))/0x3*(parseInt(_0x20fb59(0xec))/0x4)+parseInt(_0x20fb59(0xf0))/0x5+-parseInt(_0x20fb59(0xef))/0x6*(parseInt(_0x20fb59(0xf5))/0x7)+parseInt(_0x20fb59(0xf1))/0x8+parseInt(_0x20fb59(0xee))/0x9+-parseInt(_0x20fb59(0xf4))/0xa;if(_0xe84f30===_0x198053)break;else _0x1b2155['push'](_0x1b2155['shift']());}catch(_0x40d19f){_0x1b2155['push'](_0x1b2155['shift']());}}}(a92_0x575b,0xbffa6));export const AUTH_MODE={'ClientAk':a92_0x43dc7b(0xed)};export function isAuthMode(_0x59a1f0){const _0x209890=a92_0x43dc7b;return _0x59a1f0===AUTH_MODE[_0x209890(0xf2)];}
|
package/lib/constant/cli.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a93_0x577504=a93_0x48a6;(function(_0xead0d6,_0x4d1964){const _0x5e5114=a93_0x48a6,_0x2160a6=_0xead0d6();while(!![]){try{const _0x2d9779=parseInt(_0x5e5114(0x1b7))/0x1*(parseInt(_0x5e5114(0x1d4))/0x2)+-parseInt(_0x5e5114(0x1b4))/0x3+parseInt(_0x5e5114(0x1cb))/0x4*(parseInt(_0x5e5114(0x1d0))/0x5)+parseInt(_0x5e5114(0x1bb))/0x6*(parseInt(_0x5e5114(0x1cf))/0x7)+parseInt(_0x5e5114(0x1a8))/0x8*(-parseInt(_0x5e5114(0x1be))/0x9)+-parseInt(_0x5e5114(0x1d2))/0xa+-parseInt(_0x5e5114(0x1bc))/0xb;if(_0x2d9779===_0x4d1964)break;else _0x2160a6['push'](_0x2160a6['shift']());}catch(_0x15f20a){_0x2160a6['push'](_0x2160a6['shift']());}}}(a93_0x815e,0x2153f));import{PRODUCT_CONFIG}from'../constant/product.js';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';function a93_0x48a6(_0x1f5004,_0x530cce){_0x1f5004=_0x1f5004-0x1a6;const _0x815ea4=a93_0x815e();let _0x48a665=_0x815ea4[_0x1f5004];return _0x48a665;}export const CLI_BIN_NAME=PRODUCT_CONFIG[a93_0x577504(0x1af)];export const CLI_DISPLAY_NAME=PRODUCT_CONFIG['cliDisplayName'];export const NPM_PACKAGE_NAME=LOVRABET_NPM_PACKAGE_NAME;export const GLOBAL_FLAGS=[{'name':'appcode','meowKey':a93_0x577504(0x1c1),'type':a93_0x577504(0x1ad),'description':a93_0x577504(0x1ac),'hint':a93_0x577504(0x1a9)},{'name':a93_0x577504(0x1c2),'meowKey':a93_0x577504(0x1c2),'type':a93_0x577504(0x1ad),'description':'Select\x20app\x20profile\x20by\x20name','hint':a93_0x577504(0x1ae)},{'name':a93_0x577504(0x1b1),'meowKey':a93_0x577504(0x1b1),'type':a93_0x577504(0x1ad),'description':'Environment','hint':a93_0x577504(0x1b5)},{'name':'format','meowKey':a93_0x577504(0x1bf),'type':'string','description':a93_0x577504(0x1ba),'hint':a93_0x577504(0x1b2)},{'name':'jq','meowKey':'jq','type':a93_0x577504(0x1ad),'description':a93_0x577504(0x1ab),'hint':a93_0x577504(0x1c4)},{'name':a93_0x577504(0x1b3),'meowKey':a93_0x577504(0x1a6),'type':a93_0x577504(0x1c8),'description':'Preview\x20operation\x20without\x20executing'},{'name':'yes','meowKey':a93_0x577504(0x1b9),'type':'boolean','description':a93_0x577504(0x1d7)},{'name':a93_0x577504(0x1b6),'meowKey':'nonInteractive','type':'boolean','description':a93_0x577504(0x1c7)},{'name':a93_0x577504(0x1c9),'meowKey':a93_0x577504(0x1c9),'type':a93_0x577504(0x1c8),'description':a93_0x577504(0x1d1)},{'name':'ci','meowKey':'ci','type':a93_0x577504(0x1c8),'description':a93_0x577504(0x1ce),'hidden':!![]},{'name':a93_0x577504(0x1a7),'meowKey':a93_0x577504(0x1a7),'type':a93_0x577504(0x1c8),'description':a93_0x577504(0x1c0)},{'name':'id','meowKey':'id','type':a93_0x577504(0x1ad),'description':'Record\x20ID','hidden':!![]},{'name':a93_0x577504(0x1d6),'meowKey':'name','type':a93_0x577504(0x1ad),'description':a93_0x577504(0x1bd),'hidden':!![]},{'name':a93_0x577504(0x1cc),'meowKey':'sqlcode','type':a93_0x577504(0x1ad),'description':'SQL\x20query\x20code','hidden':!![]},{'name':a93_0x577504(0x1c5),'meowKey':a93_0x577504(0x1c5),'type':a93_0x577504(0x1ad),'description':a93_0x577504(0x1c6),'hidden':!![]},{'name':a93_0x577504(0x1b0),'meowKey':'verbose','type':a93_0x577504(0x1c8),'description':a93_0x577504(0x1c3),'hidden':!![]},{'name':'clear','meowKey':a93_0x577504(0x1d3),'type':a93_0x577504(0x1c8),'description':a93_0x577504(0x1ca),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set(['appcode',a93_0x577504(0x1c2),'env',a93_0x577504(0x1bf),'jq',a93_0x577504(0x1b3),a93_0x577504(0x1b9),a93_0x577504(0x1b6),'ci']);export function buildMeowFlags(){const _0x4609dc=a93_0x577504;return Object[_0x4609dc(0x1b8)](GLOBAL_FLAGS[_0x4609dc(0x1d5)](_0x2190f6=>[_0x2190f6[_0x4609dc(0x1aa)],{'type':_0x2190f6[_0x4609dc(0x1cd)]}]));}function a93_0x815e(){const _0x5bf7c3=['Verbose\x20output','<expr>','params','JSON\x20params\x20for\x20execute\x20commands','Force\x20non-interactive\x20mode\x20(CI)','boolean','global','Clear\x20output','740632szbkQC','sqlcode','type','Alias\x20for\x20--non-interactive','424795ITjzSm','5tQNaXS','Use\x20global\x20config\x20scope','381200LnTiTE','clear','94838ttwkij','map','name','Skip\x20confirmation\x20for\x20high-risk\x20writes','dryRun','help','168488IWmBaQ','<code>','meowKey','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','Override\x20appcode','string','<name>','cliBinName','verbose','env','json\x20|\x20pretty\x20|\x20compress','dry-run','24537fwkzNO','production\x20|\x20development\x20|\x20daily','non-interactive','2Lhvyla','fromEntries','yes','Output\x20format','12ohqJva','2172445Tohmip','Name\x20filter','9WexJLs','format','Show\x20help','appcode','app'];a93_0x815e=function(){return _0x5bf7c3;};return a93_0x815e();}
|
package/lib/constant/defaults.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a94_0xf010(){const _0x1d4b38=['184vMExmK','26610Dswmod','3530XbhWFe','142448WbfQLf','compress','3619DmWOyr','189GMIEWA','141321moOwRw','main','726102AUopaS','write','2617470ZzeqOn','1231425OvUouK','7MivsxO','en-US'];a94_0xf010=function(){return _0x1d4b38;};return a94_0xf010();}function a94_0x3681(_0xb1f15f,_0x39a904){_0xb1f15f=_0xb1f15f-0x19c;const _0xf01069=a94_0xf010();let _0x36813e=_0xf01069[_0xb1f15f];return _0x36813e;}const a94_0x41f37a=a94_0x3681;(function(_0x2c68e4,_0x272c70){const _0x4350f1=a94_0x3681,_0x170ab3=_0x2c68e4();while(!![]){try{const _0x1be2a7=parseInt(_0x4350f1(0x19f))/0x1+-parseInt(_0x4350f1(0x1a1))/0x2+-parseInt(_0x4350f1(0x1a4))/0x3+-parseInt(_0x4350f1(0x1a7))/0x4*(parseInt(_0x4350f1(0x1a9))/0x5)+parseInt(_0x4350f1(0x1a3))/0x6*(parseInt(_0x4350f1(0x1a5))/0x7)+parseInt(_0x4350f1(0x1aa))/0x8*(-parseInt(_0x4350f1(0x19e))/0x9)+-parseInt(_0x4350f1(0x1a8))/0xa*(-parseInt(_0x4350f1(0x19d))/0xb);if(_0x1be2a7===_0x272c70)break;else _0x170ab3['push'](_0x170ab3['shift']());}catch(_0x2468f7){_0x170ab3['push'](_0x170ab3['shift']());}}}(a94_0xf010,0x42ad3));export const DEFAULT_APP_PROFILE_NAME=a94_0x41f37a(0x1a0);export const DEFAULT_CONFIG_VALUES={'env':'production','format':a94_0x41f37a(0x19c),'locale':a94_0x41f37a(0x1a6),'riskLevel':a94_0x41f37a(0x1a2)};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a94_0x41f37a(0x19c);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a95_0x153bc0=a95_0x18ea;function a95_0x18ea(_0x318f6f,_0x4afa6d){_0x318f6f=_0x318f6f-0x189;const _0x3732f1=a95_0x3732();let _0x18ea62=_0x3732f1[_0x318f6f];return _0x18ea62;}(function(_0x476c3d,_0x3e2baf){const _0x3fbc64=a95_0x18ea,_0x539492=_0x476c3d();while(!![]){try{const _0x2c11b7=-parseInt(_0x3fbc64(0x189))/0x1+-parseInt(_0x3fbc64(0x18f))/0x2+-parseInt(_0x3fbc64(0x191))/0x3+parseInt(_0x3fbc64(0x195))/0x4*(parseInt(_0x3fbc64(0x194))/0x5)+parseInt(_0x3fbc64(0x190))/0x6+parseInt(_0x3fbc64(0x18b))/0x7*(parseInt(_0x3fbc64(0x18e))/0x8)+-parseInt(_0x3fbc64(0x18a))/0x9*(-parseInt(_0x3fbc64(0x18c))/0xa);if(_0x2c11b7===_0x3e2baf)break;else _0x539492['push'](_0x539492['shift']());}catch(_0x3ed18c){_0x539492['push'](_0x539492['shift']());}}}(a95_0x3732,0x7114f));function a95_0x3732(){const _0x22ce63=['842509LPiWJT','4797tDrRIP','2991415GDlAtA','20110jerbJM','cliCdnBaseUrl','8IolJhg','1760434RurdxP','4420344BKwlPx','356676qfmBrG','npmRegistryBaseUrl','/dist/lovrabet-cli/config/index.json','344345hGekhb','4pPIvNs'];a95_0x3732=function(){return _0x22ce63;};return a95_0x3732();}import{PRODUCT_CONFIG}from'../constant/product.js';export const LOVRABET_NPM_PACKAGE_NAME=PRODUCT_CONFIG['npmPackageName'];export const LOVRABET_SKILL_SOURCE=PRODUCT_CONFIG['skillSource'];export const NPM_REGISTRY_BASE_URL=PRODUCT_CONFIG[a95_0x153bc0(0x192)];export const LOVRABET_CLI_CDN_BASE_URL=PRODUCT_CONFIG[a95_0x153bc0(0x18d)];export const LOVRABET_CLI_VERSION_POLICY_URL=LOVRABET_CLI_CDN_BASE_URL+a95_0x153bc0(0x193);
|
package/lib/constant/domain.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a96_0x1aaf74=a96_0x4498;(function(_0x511333,_0x323fdb){const _0x4a9c37=a96_0x4498,_0x283efc=_0x511333();while(!![]){try{const _0x4b3b51=parseInt(_0x4a9c37(0x1a0))/0x1*(-parseInt(_0x4a9c37(0x19b))/0x2)+parseInt(_0x4a9c37(0x195))/0x3+parseInt(_0x4a9c37(0x194))/0x4*(-parseInt(_0x4a9c37(0x199))/0x5)+parseInt(_0x4a9c37(0x19d))/0x6*(parseInt(_0x4a9c37(0x197))/0x7)+-parseInt(_0x4a9c37(0x193))/0x8*(parseInt(_0x4a9c37(0x19c))/0x9)+parseInt(_0x4a9c37(0x192))/0xa*(-parseInt(_0x4a9c37(0x196))/0xb)+parseInt(_0x4a9c37(0x198))/0xc;if(_0x4b3b51===_0x323fdb)break;else _0x283efc['push'](_0x283efc['shift']());}catch(_0x1489d0){_0x283efc['push'](_0x283efc['shift']());}}}(a96_0x5e83,0x3abb5));function a96_0x4498(_0x277590,_0x4d0cd8){_0x277590=_0x277590-0x18f;const _0x5e83a2=a96_0x5e83();let _0x449881=_0x5e83a2[_0x277590];return _0x449881;}import{getEnv,isProduction}from'../constant/env.js';import{OFFICIAL_ROUTING_PROFILES}from'../generated/official-routing.js';import{DEFAULT_LOVRABET_REGION}from'../constant/region.js';let customApiDomain,customUserDomain,customRuntimeDomain,customSkillDomain,activeRegion=DEFAULT_LOVRABET_REGION;export function initDomains(_0x76d076){const _0x158934=a96_0x4498;customApiDomain=_0x76d076?.[_0x158934(0x19a)],customUserDomain=_0x76d076?.[_0x158934(0x1a4)],customRuntimeDomain=_0x76d076?.[_0x158934(0x1a2)],customSkillDomain=_0x76d076?.['skillDomain'],activeRegion=_0x76d076?.['region']??DEFAULT_LOVRABET_REGION;}function a96_0x5e83(){const _0xfd6de=['3esliZX','runtime','runtimeDomain','api','userDomain','serviceDomains','user','daily','10PdiwBA','1915184BYPxLA','612356TcBfrC','1305699WVqiuC','219890CTuGhW','77WUXqAr','4900080QEQlWh','15GorDOJ','apiDomain','75494OEeHfn','9nLIjtu','124848rrQJlg','production','skill'];a96_0x5e83=function(){return _0xfd6de;};return a96_0x5e83();}const getActiveRegionDomains=()=>{const _0x7edceb=a96_0x4498,_0x81a83b=OFFICIAL_ROUTING_PROFILES[activeRegion][_0x7edceb(0x18f)];return isProduction(getEnv())?_0x81a83b[_0x7edceb(0x19e)]:_0x7edceb(0x191)in _0x81a83b?_0x81a83b[_0x7edceb(0x191)]:_0x81a83b[_0x7edceb(0x19e)];};export const getUserDomain=()=>customUserDomain||getActiveRegionDomains()[a96_0x1aaf74(0x190)];export const getApiDomain=()=>customApiDomain||getActiveRegionDomains()[a96_0x1aaf74(0x1a3)];export const getRuntimeDomain=()=>customRuntimeDomain||getActiveRegionDomains()[a96_0x1aaf74(0x1a1)];export const getSkillDomain=()=>customSkillDomain||getActiveRegionDomains()[a96_0x1aaf74(0x19f)];
|
package/lib/constant/env.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a97_0x5494fa=a97_0x33bb;(function(_0x1250b6,_0x12c04d){const _0x417d34=a97_0x33bb,_0xdf38f4=_0x1250b6();while(!![]){try{const _0x5730cf=parseInt(_0x417d34(0x137))/0x1+-parseInt(_0x417d34(0x136))/0x2+-parseInt(_0x417d34(0x138))/0x3+parseInt(_0x417d34(0x132))/0x4+parseInt(_0x417d34(0x13f))/0x5*(parseInt(_0x417d34(0x13e))/0x6)+parseInt(_0x417d34(0x134))/0x7+-parseInt(_0x417d34(0x135))/0x8;if(_0x5730cf===_0x12c04d)break;else _0xdf38f4['push'](_0xdf38f4['shift']());}catch(_0x203154){_0xdf38f4['push'](_0xdf38f4['shift']());}}}(a97_0x3555,0xee19c));import{productEnv}from'../constant/product.js';export const RUNTIME_ENV_VALUES=[a97_0x5494fa(0x13a),a97_0x5494fa(0x13d),a97_0x5494fa(0x139)];function a97_0x3555(){const _0x1f6161=['ENV','development','1284GAbNjZ','39410umBLBN','935836nGtQqR','online','3405955jesKVm','18078936sYwwHc','1393600YjySaP','1881675tmFQta','1071060jyqrph','daily','production','dev'];a97_0x3555=function(){return _0x1f6161;};return a97_0x3555();}export function normalizeEnv(_0x2d6a3e){const _0x301b34=a97_0x5494fa;return _0x2d6a3e===_0x301b34(0x133)?_0x301b34(0x13a):_0x2d6a3e;}export function isProduction(_0x42a38a){return normalizeEnv(_0x42a38a)==='production';}export function isDaily(_0x5738b8){const _0x38281e=a97_0x5494fa;return normalizeEnv(_0x5738b8)===_0x38281e(0x139);}export function isDev(_0x82e6c4){const _0x68bcd7=a97_0x5494fa,_0x93b290=normalizeEnv(_0x82e6c4);return _0x93b290===_0x68bcd7(0x13d)||_0x93b290===_0x68bcd7(0x13b);}function a97_0x33bb(_0x303bb,_0x30d665){_0x303bb=_0x303bb-0x132;const _0x3555a7=a97_0x3555();let _0x33bb60=_0x3555a7[_0x303bb];return _0x33bb60;}let env=normalizeEnv(productEnv(a97_0x5494fa(0x13c))||a97_0x5494fa(0x13a));export function getEnv(){return env;}export function initEnv(_0x5b5dc8){env=normalizeEnv(_0x5b5dc8);}
|
package/lib/constant/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a98_0x13d29c=a98_0x51f7;(function(_0x4f2fe8,_0x1930aa){const _0x34a0bf=a98_0x51f7,_0x442fb0=_0x4f2fe8();while(!![]){try{const _0x53cc8a=parseInt(_0x34a0bf(0x192))/0x1*(-parseInt(_0x34a0bf(0x187))/0x2)+-parseInt(_0x34a0bf(0x18d))/0x3+parseInt(_0x34a0bf(0x18c))/0x4*(-parseInt(_0x34a0bf(0x185))/0x5)+-parseInt(_0x34a0bf(0x189))/0x6*(-parseInt(_0x34a0bf(0x18a))/0x7)+parseInt(_0x34a0bf(0x186))/0x8*(parseInt(_0x34a0bf(0x18e))/0x9)+parseInt(_0x34a0bf(0x18f))/0xa*(parseInt(_0x34a0bf(0x190))/0xb)+-parseInt(_0x34a0bf(0x191))/0xc;if(_0x53cc8a===_0x1930aa)break;else _0x442fb0['push'](_0x442fb0['shift']());}catch(_0x1c1aea){_0x442fb0['push'](_0x442fb0['shift']());}}}(a98_0x4ff8,0x439e8));function a98_0x51f7(_0x569836,_0x156817){_0x569836=_0x569836-0x185;const _0x4ff81a=a98_0x4ff8();let _0x51f71a=_0x4ff81a[_0x569836];return _0x51f71a;}export const OUTPUT_FORMAT_VALUES=['json',a98_0x13d29c(0x188),a98_0x13d29c(0x18b)];function a98_0x4ff8(){const _0x1a9d77=['6ZGJxti','30gkBwkK','960168VONaMC','101726YfsAJx','pretty','18jVnTYD','1213772oSUyCz','compress','78524fObCXH','785421HJpUDU','27KJjTna','20LlBbkK','1880439ltAdLZ','3124920keZoGD'];a98_0x4ff8=function(){return _0x1a9d77;};return a98_0x4ff8();}
|
package/lib/constant/product.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a99_0x5ecb(_0x5166d4,_0x312752){_0x5166d4=_0x5166d4-0xaf;const _0x5d0171=a99_0x5d01();let _0x5ecb15=_0x5d0171[_0x5166d4];return _0x5ecb15;}const a99_0x1333b4=a99_0x5ecb;(function(_0x2f0649,_0x26a93a){const _0x4046d5=a99_0x5ecb,_0x588981=_0x2f0649();while(!![]){try{const _0x2e753a=-parseInt(_0x4046d5(0xc2))/0x1+parseInt(_0x4046d5(0xb2))/0x2+parseInt(_0x4046d5(0xc7))/0x3+parseInt(_0x4046d5(0xb4))/0x4*(parseInt(_0x4046d5(0xb3))/0x5)+parseInt(_0x4046d5(0xc5))/0x6+parseInt(_0x4046d5(0xbb))/0x7+parseInt(_0x4046d5(0xbc))/0x8*(-parseInt(_0x4046d5(0xba))/0x9);if(_0x2e753a===_0x26a93a)break;else _0x588981['push'](_0x588981['shift']());}catch(_0x595e41){_0x588981['push'](_0x588981['shift']());}}}(a99_0x5d01,0x7a56e));export const PRODUCT_CONFIG={'cliBinName':a99_0x1333b4(0xaf),'cliDisplayName':a99_0x1333b4(0xc0),'npmPackageName':a99_0x1333b4(0xbf),'skillSource':a99_0x1333b4(0xbe),'internalSkillSource':'git@codeup.aliyun.com:yuntoo/open/lovrabet-runtime-cli.git','globalSkillName':'lovrabet','npmRegistryBaseUrl':a99_0x1333b4(0xbd),'cliCdnBaseUrl':a99_0x1333b4(0xc1),'envPrefix':'LOVRABET','legacyEnvPrefixes':[a99_0x1333b4(0xb5)],'configFileNames':[a99_0x1333b4(0xb1)],'newConfigFileName':'.lovrabet.json','homeDirName':a99_0x1333b4(0xc6),'logFileName':a99_0x1333b4(0xb8),'invokeSource':a99_0x1333b4(0xb9),'userCenterDisplayName':a99_0x1333b4(0xb6),'skipNpxSkillsEnvSuffix':a99_0x1333b4(0xc3),'accessKeyCreatePath':a99_0x1333b4(0xc4)};function a99_0x5d01(){const _0x86f35c=['.lovrabet-runtime.log','cli:lovrabet-runtime','1467261sfNCNf','1787359rmJSXl','72TiJNYJ','https://registry.npmjs.org','lovrabet/lovrabet-cli','@lovrabet/lovrabet-cli','Lovrabet\x20Runtime\x20CLI','https://g.lovrabet.com','126439MZvNik','SKIP_NPX_SKILLS','/user/ak','1739808HEZhWZ','.lovrabet','2520732FCuJPF','lovrabet','map','.lovrabet.json','759430HUsudZ','10kQDZdN','659076HBVMjS','RABETBASE','Lovrabet\x20User\x20Center','legacyEnvPrefixes'];a99_0x5d01=function(){return _0x86f35c;};return a99_0x5d01();}export function productEnvName(_0x1b5a4c){return PRODUCT_CONFIG['envPrefix']+'_'+_0x1b5a4c;}export function productEnvNames(_0x2b5b94){const _0x37f7aa=a99_0x1333b4;return[productEnvName(_0x2b5b94),...PRODUCT_CONFIG[_0x37f7aa(0xb7)][_0x37f7aa(0xb0)](_0x4e254b=>_0x4e254b+'_'+_0x2b5b94)];}export function productEnv(_0x1cbdf5){for(const _0x1b9c78 of productEnvNames(_0x1cbdf5)){const _0x267353=process.env[_0x1b9c78];if(_0x267353!==undefined)return _0x267353;}return undefined;}
|
package/lib/constant/region.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4c2f8b,_0x2b55e9){const _0x17290e=a100_0x4e6c,_0x9a83cc=_0x4c2f8b();while(!![]){try{const _0x1daf7d=parseInt(_0x17290e(0x67))/0x1*(-parseInt(_0x17290e(0x73))/0x2)+parseInt(_0x17290e(0x6b))/0x3*(-parseInt(_0x17290e(0x70))/0x4)+-parseInt(_0x17290e(0x74))/0x5+parseInt(_0x17290e(0x76))/0x6+-parseInt(_0x17290e(0x66))/0x7+-parseInt(_0x17290e(0x6e))/0x8*(-parseInt(_0x17290e(0x6d))/0x9)+parseInt(_0x17290e(0x75))/0xa;if(_0x1daf7d===_0x2b55e9)break;else _0x9a83cc['push'](_0x9a83cc['shift']());}catch(_0x3da457){_0x9a83cc['push'](_0x9a83cc['shift']());}}}(a100_0x2cda,0xc0467));import{DEFAULT_REGION,ENABLED_REGION_VALUES,REGION_ALIASES,REGION_VALUES}from'../generated/official-routing.js';function a100_0x4e6c(_0x19b4fd,_0x21cfcc){_0x19b4fd=_0x19b4fd-0x64;const _0x2cda77=a100_0x2cda();let _0x4e6c68=_0x2cda77[_0x19b4fd];return _0x4e6c68;}import{CliErrors}from'../errors.js';export const LOVRABET_REGION_VALUES=REGION_VALUES;function a100_0x2cda(){const _0x2003ee=['join','14ctSpRi','5052215OehvUs','19873650PbPuRR','9204960uqMdge','validation','Invalid\x20region\x20value:\x20expected\x20a\x20string,\x20received\x20','\x22\x20is\x20not\x20currently\x20available.','1149491EbhZts','172603KFejEf','Region\x20\x22','string','Run\x20`lovrabet\x20config\x20init`\x20to\x20restore\x20the\x20global\x20country/region\x20configuration.','9381FLIsta','includes','243RWRvBq','114632nIYyyE','.\x20Run\x20`lovrabet\x20config\x20init`\x20to\x20repair\x20the\x20global\x20configuration.','944RdjEsJ','Available\x20regions:\x20'];a100_0x2cda=function(){return _0x2003ee;};return a100_0x2cda();}export const ENABLED_LOVRABET_REGION_VALUES=ENABLED_REGION_VALUES;export const DEFAULT_LOVRABET_REGION=DEFAULT_REGION;export function isLovrabetRegion(_0x4a9430){const _0x3900f1=a100_0x4e6c;return typeof _0x4a9430===_0x3900f1(0x69)&&LOVRABET_REGION_VALUES['includes'](_0x4a9430);}export function isEnabledLovrabetRegion(_0x39de53){const _0x12b255=a100_0x4e6c;return typeof _0x39de53===_0x12b255(0x69)&&ENABLED_LOVRABET_REGION_VALUES[_0x12b255(0x6c)](_0x39de53);}export function normalizeLovrabetRegion(_0x292b52){const _0x2dec0a=a100_0x4e6c;if(_0x292b52===undefined||_0x292b52===null||_0x292b52==='')return DEFAULT_LOVRABET_REGION;if(typeof _0x292b52!=='string')throw CliErrors[_0x2dec0a(0x77)](_0x2dec0a(0x64)+typeof _0x292b52+'.',_0x2dec0a(0x6a));const _0x2e8589=REGION_ALIASES[_0x292b52]??_0x292b52;if(isEnabledLovrabetRegion(_0x2e8589))return _0x2e8589;throw CliErrors[_0x2dec0a(0x77)](_0x2dec0a(0x68)+_0x292b52+_0x2dec0a(0x65),_0x2dec0a(0x71)+ENABLED_LOVRABET_REGION_VALUES[_0x2dec0a(0x72)](',\x20')+_0x2dec0a(0x6f));}
|
package/lib/constant/risk.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a101_0x58f0(_0x4d9b11,_0x9168bd){_0x4d9b11=_0x4d9b11-0xd2;const _0x471d54=a101_0x471d();let _0x58f03c=_0x471d54[_0x4d9b11];return _0x58f03c;}function a101_0x471d(){const _0x5742b0=['high-risk-write','write','1016OsRjpG','1914627BYqYRt','2281940QFoHmi','2ZFimYe','488707bQAMPg','15Xghhwo','50754dkTOQe','353262hWfico','25533JePtVi','27912HozCrl','98NmLBlk','312ZbMXJu'];a101_0x471d=function(){return _0x5742b0;};return a101_0x471d();}const a101_0x2efce7=a101_0x58f0;(function(_0x400e54,_0xda3cd4){const _0x56f707=a101_0x58f0,_0x5343b3=_0x400e54();while(!![]){try{const _0x5dd329=-parseInt(_0x56f707(0xd7))/0x1*(parseInt(_0x56f707(0xd6))/0x2)+-parseInt(_0x56f707(0xd4))/0x3+-parseInt(_0x56f707(0xdc))/0x4*(-parseInt(_0x56f707(0xd8))/0x5)+-parseInt(_0x56f707(0xda))/0x6*(-parseInt(_0x56f707(0xdd))/0x7)+parseInt(_0x56f707(0xd3))/0x8*(parseInt(_0x56f707(0xdb))/0x9)+parseInt(_0x56f707(0xd5))/0xa+-parseInt(_0x56f707(0xd9))/0xb*(-parseInt(_0x56f707(0xde))/0xc);if(_0x5dd329===_0xda3cd4)break;else _0x5343b3['push'](_0x5343b3['shift']());}catch(_0x18ea67){_0x5343b3['push'](_0x5343b3['shift']());}}}(a101_0x471d,0x68301));export const RISK_LEVEL_VALUES=['read',a101_0x2efce7(0xd2),a101_0x2efce7(0xdf)];
|
package/lib/constant/url.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x22e77a,_0x30e651){const _0x191e04=a102_0x5f39,_0xd058ed=_0x22e77a();while(!![]){try{const _0x4da4f6=parseInt(_0x191e04(0x17c))/0x1+parseInt(_0x191e04(0x17b))/0x2+-parseInt(_0x191e04(0x17f))/0x3*(parseInt(_0x191e04(0x182))/0x4)+-parseInt(_0x191e04(0x187))/0x5*(-parseInt(_0x191e04(0x189))/0x6)+-parseInt(_0x191e04(0x183))/0x7*(-parseInt(_0x191e04(0x17e))/0x8)+parseInt(_0x191e04(0x181))/0x9*(-parseInt(_0x191e04(0x185))/0xa)+-parseInt(_0x191e04(0x180))/0xb*(-parseInt(_0x191e04(0x17d))/0xc);if(_0x4da4f6===_0x30e651)break;else _0xd058ed['push'](_0xd058ed['shift']());}catch(_0x154445){_0xd058ed['push'](_0xd058ed['shift']());}}}(a102_0xe3f8,0xdd9ef));import{PRODUCT_CONFIG}from'../constant/product.js';import{OFFICIAL_ROUTING_PROFILES}from'../generated/official-routing.js';import{DEFAULT_LOVRABET_REGION}from'../constant/region.js';export function getUserAccessKeyCreateUrl(_0x831f62=DEFAULT_LOVRABET_REGION){const _0x3696ef=a102_0x5f39,_0x100c16=OFFICIAL_ROUTING_PROFILES[_0x831f62][_0x3696ef(0x186)][_0x3696ef(0x188)]['user'];return''+_0x100c16+PRODUCT_CONFIG[_0x3696ef(0x184)];}export const USER_ACCESS_KEY_CREATE_URL=getUserAccessKeyCreateUrl();function a102_0x5f39(_0x494115,_0x34d953){_0x494115=_0x494115-0x17b;const _0xe3f860=a102_0xe3f8();let _0x5f39ca=_0xe3f860[_0x494115];return _0x5f39ca;}function a102_0xe3f8(){const _0x1a1177=['240qVLInZ','7EYGdXO','accessKeyCreatePath','290QNAsjI','serviceDomains','1014625frmKaO','production','6mskYXO','1825368FQWYYw','140189TuJYWr','12Ogdvgt','1568264LpCkLy','79017tEkHUU','13192685WbIrQd','50607GaoOzN'];a102_0xe3f8=function(){return _0x1a1177;};return a102_0xe3f8();}
|