@lovrabet/lovrabet-cli 2.3.2-beta.1 → 2.3.2-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cli.js +1 -1
- package/lib/commands/api-doc/index.js +1 -1
- package/lib/commands/app/cache.js +1 -1
- package/lib/commands/app/definitions.js +1 -1
- package/lib/commands/app/eligibility.js +1 -1
- package/lib/commands/app/mock-loader.js +1 -1
- package/lib/commands/app/remote-source.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/artifact/index.js +1 -1
- package/lib/commands/auth/device.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/auth/prompt.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/exec.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/common/config-policy.js +1 -1
- package/lib/commands/common/constraints.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/config/definitions.js +1 -1
- package/lib/commands/config/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/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 +2 -1
- package/skills/lovrabet/SKILL.md +1 -1
- package/skills/lovrabet.manifest.json +3 -3
- package/lib/utils/platform.d.ts +0 -17
- package/lib/utils/platform.js +0 -1
package/lib/commands/update.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a84_0x3b8153=a84_0x4a4f;function a84_0x4a4f(_0x335b8f,_0x399855){_0x335b8f=_0x335b8f-0xe4;const _0x48d459=a84_0x48d4();let _0x4a4ff3=_0x48d459[_0x335b8f];return _0x4a4ff3;}(function(_0x41d05f,_0x46f2bc){const _0x24416e=a84_0x4a4f,_0x3dbb04=_0x41d05f();while(!![]){try{const _0x773985=-parseInt(_0x24416e(0x11e))/0x1*(-parseInt(_0x24416e(0x120))/0x2)+parseInt(_0x24416e(0x11d))/0x3+parseInt(_0x24416e(0x109))/0x4+-parseInt(_0x24416e(0xf6))/0x5+-parseInt(_0x24416e(0x121))/0x6+parseInt(_0x24416e(0x111))/0x7+parseInt(_0x24416e(0x128))/0x8*(-parseInt(_0x24416e(0xfa))/0x9);if(_0x773985===_0x46f2bc)break;else _0x3dbb04['push'](_0x3dbb04['shift']());}catch(_0x4af757){_0x3dbb04['push'](_0x3dbb04['shift']());}}}(a84_0x48d4,0xd8d98));import{spawnSync}from'node:child_process';import{fileURLToPath}from'node:url';import{basename,dirname,relative,win32}from'node:path';import a84_0x3e409e 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';import{resolveNpmBin}from'../utils/platform.js';import{getCliVersion}from'../utils/version.js';function a84_0x48d4(){const _0x5d3002=['json','trim','relative','includes','\x20is\x20current.','version','@lovrabet\x5clovrabet-cli','2015545wPsGcM','find','map','nonInteractive','\x20->\x20','pipe','--prefix','fromEntries','Use\x20a\x20full\x20semver\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.','log','\x20\x20Try\x20manually:\x20npm\x20install\x20-g\x20','--latest,\x20--beta,\x20and\x20version\x20cannot\x20be\x20used\x20together.','4951629tNiduX','26lVufVU','Updated\x20to\x20v','86798NIhpgN','2246862VuPyTn','win32','stdout','Already\x20on\x20requested\x20version\x20(v','/dist-tags',',\x20but\x20Built-in\x20Skill\x20verification\x20failed.','Update\x20failed:\x20','9466384DWSEuZ','Already\x20up\x20to\x20date\x20(v','latest','platform','lib','error','\x20\x20Built-in\x20Skill\x20verification\x20failed:\x20','join','reason','status','toString','write','code','Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','read','Choose\x20exactly\x20one\x20target:\x20--latest,\x20--beta,\x20or\x20--version\x20<version>.','valid','Checking\x20CLI\x20Built-in\x20Skill...','length','test','state','Update\x20the\x20','install','INSTALL_FAILED','inherit','bool','\x20\x20CLI\x20Built-in\x20Skill\x20repair\x20failed\x20[','\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20','\x20\x20CLI\x20Built-in\x20Skill\x20','npm','Version\x20comparison\x20failed:\x20','toLowerCase','entries','unknown','args','str','warn','basename','613915vLTFfH','source','beta','node_modules','18ffuAcK','@lovrabet/lovrabet-cli','exit\x20','repairCommand','update','validation','run','/-/package/','CLI\x20is\x20up\x20to\x20date,\x20but\x20Built-in\x20Skill\x20repair\x20failed.','filter','stderr','string','Install\x20the\x20version\x20from\x20npm\x20latest\x20dist-tag','\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.','dirname','2740880JpPvkH'];a84_0x48d4=function(){return _0x5d3002;};return a84_0x48d4();}import{inspectInstalledBuiltinSkillVersion,installBuiltinSkill}from'../skills/builtin-skill.js';const updateFlags=[{'name':a84_0x3b8153(0x12a),'type':'boolean','description':a84_0x3b8153(0x106),'default':![]},{'name':a84_0x3b8153(0xf8),'type':'boolean','description':a84_0x3b8153(0x135),'default':![]},{'name':a84_0x3b8153(0x10f),'type':'string','description':'Install\x20a\x20specific\x20CLI\x20version'}];function getRequestedVersion(_0x37c935){const _0x376e4e=a84_0x3b8153,_0x4565c0=_0x37c935[_0x376e4e(0xf3)](_0x376e4e(0x10f))[_0x376e4e(0x10b)]();if(_0x4565c0)return _0x4565c0;return String(_0x37c935[_0x376e4e(0xf2)]?.[0x0]??'')[_0x376e4e(0x10b)]();}async function validateUpdateFlags(_0x59f903){const _0x593304=a84_0x3b8153,_0x308204=getRequestedVersion(_0x59f903),_0x2c5ede=[_0x59f903[_0x593304(0xe9)]('latest')?'latest':'',_0x59f903[_0x593304(0xe9)](_0x593304(0xf8))?_0x593304(0xf8):'',_0x308204?'version':''][_0x593304(0x103)](Boolean);if(_0x2c5ede[_0x593304(0x13a)]>0x1)throw CliErrors[_0x593304(0xff)](_0x593304(0x11c),_0x593304(0x137));if(_0x308204&&!a84_0x3e409e[_0x593304(0x138)](_0x308204))throw CliErrors['validation']('Invalid\x20version:\x20'+_0x308204,_0x593304(0x119));}async function fetchNpmDistTags(){const _0x427d07=a84_0x3b8153;try{const _0x424efb=NPM_REGISTRY_BASE_URL+_0x427d07(0x101)+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+_0x427d07(0x125),_0x34c58e=await fetch(_0x424efb,{'signal':AbortSignal['timeout'](0x2710)});if(!_0x34c58e['ok'])return null;const _0x3456a2=await _0x34c58e[_0x427d07(0x10a)]();if(!_0x3456a2||typeof _0x3456a2!=='object')return null;return Object[_0x427d07(0x118)](Object[_0x427d07(0xf0)](_0x3456a2)[_0x427d07(0x103)](([,_0x58f99d])=>typeof _0x58f99d===_0x427d07(0x105)&&_0x58f99d[_0x427d07(0x10b)]())[_0x427d07(0x113)](([_0x276f12,_0x383638])=>[_0x276f12,String(_0x383638)[_0x427d07(0x10b)]()]));}catch{return null;}}async function resolveTargetVersion(_0x11989e){const _0x2fdfee=a84_0x3b8153,_0x1094c9=getRequestedVersion(_0x11989e);if(_0x1094c9)return{'version':_0x1094c9,'source':_0x2fdfee(0x10f)};const _0x3d0a90=_0x11989e[_0x2fdfee(0xe9)]('beta')?_0x2fdfee(0xf8):_0x2fdfee(0x12a),_0x1f1a72=await fetchNpmDistTags(),_0x3ec53f=_0x1f1a72?.[_0x3d0a90];if(!_0x3ec53f)return null;return{'version':_0x3ec53f,'source':_0x3d0a90};}function shouldInstallTarget(_0x5d10d3,_0xb2e68a){const _0x285727=a84_0x3b8153;if(_0xb2e68a['source']===_0x285727(0x10f)||_0xb2e68a[_0x285727(0xf7)]===_0x285727(0xf8))return!a84_0x3e409e['eq'](_0x5d10d3,_0xb2e68a[_0x285727(0x10f)]);return a84_0x3e409e['lt'](_0x5d10d3,_0xb2e68a[_0x285727(0x10f)]);}export function installCliPackage(_0x46691e,_0x3ca654,_0x5689bb=resolveCurrentCliNpmPrefix()){const _0x325253=a84_0x3b8153,_0x232b76=resolveNpmBin(_0x325253(0xed)),_0xabf526=LOVRABET_NPM_PACKAGE_NAME+'@'+_0x46691e,_0xc610e6=[_0x325253(0xe6),'-g',_0xabf526],_0x17b949=runNpmInstall(_0x232b76,_0xc610e6,_0x3ca654);if(_0x17b949['ok']||!isNpmPrefixPermissionError(_0x17b949[_0x325253(0x12d)]))return _0x17b949;if(!_0x5689bb||_0x17b949[_0x325253(0x12d)]?.[_0x325253(0xef)]()[_0x325253(0x10d)](_0x5689bb['toLowerCase']()))return _0x17b949;return console[_0x325253(0xf4)]('Global\x20npm\x20prefix\x20is\x20not\x20writable;\x20retrying\x20in\x20the\x20current\x20CLI\x20Node\x20environment:\x20'+_0x5689bb),runNpmInstall(_0x232b76,[..._0xc610e6,_0x325253(0x117),_0x5689bb],_0x3ca654);}export function resolveCurrentCliNpmPrefix(_0x3d3c32=fileURLToPath(import.meta.url),_0x521764=process[a84_0x3b8153(0x12b)]){const _0x34bf10=a84_0x3b8153,_0x1f8ed4=_0x521764==='win32'?win32:{'basename':basename,'dirname':dirname,'relative':relative},_0x49f146=_0x1f8ed4['dirname'](_0x1f8ed4[_0x34bf10(0x108)](_0x1f8ed4[_0x34bf10(0x108)](_0x3d3c32))),_0x3c238b=_0x521764===_0x34bf10(0x122)?_0x34bf10(0x110):_0x34bf10(0xfb);let _0x16a268=_0x1f8ed4[_0x34bf10(0x108)](_0x49f146);while(!![]){if(_0x1f8ed4[_0x34bf10(0xf5)](_0x16a268)===_0x34bf10(0xf9)&&_0x1f8ed4[_0x34bf10(0x10c)](_0x16a268,_0x49f146)===_0x3c238b){const _0x32fada=_0x1f8ed4[_0x34bf10(0x108)](_0x16a268);return _0x1f8ed4[_0x34bf10(0xf5)](_0x32fada)===_0x34bf10(0x12c)?_0x1f8ed4[_0x34bf10(0x108)](_0x32fada):_0x32fada;}const _0x1b4d63=_0x1f8ed4[_0x34bf10(0x108)](_0x16a268);if(_0x1b4d63===_0x16a268)return null;_0x16a268=_0x1b4d63;}}function runNpmInstall(_0x4fbaae,_0x420aef,_0x363ce9){const _0x1e0ea9=a84_0x3b8153;console[_0x1e0ea9(0x11a)]('*\x20'+[_0x4fbaae,..._0x420aef][_0x1e0ea9(0x12f)]('\x20'));const _0x3776f3=spawnSync(_0x4fbaae,_0x420aef,{'cwd':process['cwd'](),'stdio':_0x1e0ea9(0x116),'env':process.env,'shell':![]}),_0x4d64d0=_0x3776f3['stderr']?_0x3776f3[_0x1e0ea9(0x104)][_0x1e0ea9(0x132)]()[_0x1e0ea9(0x10b)]():'',_0x329471=_0x3776f3[_0x1e0ea9(0x123)]?_0x3776f3[_0x1e0ea9(0x123)][_0x1e0ea9(0x132)]()[_0x1e0ea9(0x10b)]():'';if(!_0x363ce9){if(_0x329471)process[_0x1e0ea9(0x123)][_0x1e0ea9(0x133)](_0x329471+'\x0a');if(_0x4d64d0)process[_0x1e0ea9(0x104)][_0x1e0ea9(0x133)](_0x4d64d0+'\x0a');}if(_0x3776f3[_0x1e0ea9(0x131)]===0x0)return{'ok':!![]};const _0x575781=_0x3776f3[_0x1e0ea9(0x12d)]?.['message']||_0x4d64d0||_0x329471||_0x1e0ea9(0xfc)+(_0x3776f3[_0x1e0ea9(0x131)]??_0x1e0ea9(0xf1));return{'ok':![],'error':_0x575781};}function isNpmPrefixPermissionError(_0x5b6836){const _0x2c9460=a84_0x3b8153;return Boolean(_0x5b6836&&/\b(?:EACCES|EPERM)\b/[_0x2c9460(0x13b)](_0x5b6836));}function repairCurrentBuiltinSkill(_0x2934b7){const _0x191ae0=a84_0x3b8153;console[_0x191ae0(0x11a)]('Checking\x20CLI\x20Built-in\x20Skill...');const _0x5133d3=installBuiltinSkill({'stdio':_0x2934b7?'pipe':_0x191ae0(0xe8)});if(_0x5133d3['ok'])return console[_0x191ae0(0x11a)](_0x191ae0(0xec)+_0x5133d3['skillVersion']+_0x191ae0(0x10e)),!![];return console['warn'](_0x191ae0(0xea)+(_0x5133d3[_0x191ae0(0x134)]||_0x191ae0(0xe7))+']:\x20'+(_0x5133d3[_0x191ae0(0x12d)]||_0x191ae0(0xf1))),console[_0x191ae0(0x11a)]('\x20\x20Run\x20manually:\x20'+_0x5133d3[_0x191ae0(0xfd)]),![];}function verifyUpdatedBuiltinSkill(_0x10bf96){const _0x540a3a=a84_0x3b8153;console[_0x540a3a(0x11a)](_0x540a3a(0x139));const _0x21d63c=inspectInstalledBuiltinSkillVersion(_0x10bf96);if(_0x21d63c[_0x540a3a(0xe4)]==='current')return console[_0x540a3a(0x11a)](_0x540a3a(0xec)+_0x10bf96+_0x540a3a(0x10e)),!![];console[_0x540a3a(0xf4)](_0x540a3a(0x12e)+_0x21d63c[_0x540a3a(0xe4)]+'.');if(_0x21d63c[_0x540a3a(0x130)])console[_0x540a3a(0xf4)]('\x20\x20'+_0x21d63c[_0x540a3a(0x130)]);return console['log']('\x20\x20Run\x20manually:\x20'+_0x21d63c['repairCommand']),![];}async function execute(_0x2632e2){const _0x4f14a3=a84_0x3b8153;await validateUpdateFlags(_0x2632e2);const _0x3bfe80=getCliVersion();console[_0x4f14a3(0x11a)]('Current\x20version:\x20'+_0x3bfe80),console['log']('Checking\x20npm\x20dist-tags...');const _0x2bc60d=await resolveTargetVersion(_0x2632e2);if(!_0x2bc60d){const _0x261cbb=_0x2632e2[_0x4f14a3(0xe9)](_0x4f14a3(0xf8))?'beta':'latest',_0x24ba04='Unable\x20to\x20resolve\x20'+_0x261cbb+'\x20version\x20from\x20npm.';return console[_0x4f14a3(0xf4)](_0x24ba04),console[_0x4f14a3(0x11a)](_0x4f14a3(0xeb)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x261cbb),{'ok':![],'message':_0x24ba04};}const _0x131ce8=[_0x3bfe80,_0x2bc60d[_0x4f14a3(0x10f)]][_0x4f14a3(0x112)](_0x45cb11=>!a84_0x3e409e[_0x4f14a3(0x138)](_0x45cb11));if(_0x131ce8){const _0x49602a=_0x4f14a3(0xee)+_0x131ce8+'.';return console[_0x4f14a3(0xf4)](_0x49602a),{'ok':![],'message':_0x49602a};}if(!shouldInstallTarget(_0x3bfe80,_0x2bc60d)){const _0x373b02=_0x2bc60d[_0x4f14a3(0xf7)]===_0x4f14a3(0x10f)?_0x4f14a3(0x124)+_0x2bc60d['version']+').':_0x4f14a3(0x129)+_0x2bc60d[_0x4f14a3(0x10f)]+').';return console[_0x4f14a3(0x11a)](_0x373b02),repairCurrentBuiltinSkill(_0x2632e2['nonInteractive'])?{'ok':!![]}:{'ok':![],'message':_0x4f14a3(0x102)};}console['log']('Updating\x20'+LOVRABET_NPM_PACKAGE_NAME+':\x20'+_0x3bfe80+_0x4f14a3(0x115)+_0x2bc60d[_0x4f14a3(0x10f)]);const _0x2a3492=installCliPackage(_0x2bc60d[_0x4f14a3(0x10f)],_0x2632e2[_0x4f14a3(0x114)]);if(!_0x2a3492['ok']){const _0x356114=_0x4f14a3(0x127)+(_0x2a3492[_0x4f14a3(0x12d)]||_0x4f14a3(0xf1));return console[_0x4f14a3(0x12d)](_0x356114),console[_0x4f14a3(0x11a)](_0x4f14a3(0x11b)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x2bc60d[_0x4f14a3(0x10f)]),{'ok':![],'message':_0x356114};}return console[_0x4f14a3(0x11a)](_0x4f14a3(0x11f)+_0x2bc60d['version']+'.'),console[_0x4f14a3(0x11a)](_0x4f14a3(0x107)),verifyUpdatedBuiltinSkill(_0x2bc60d[_0x4f14a3(0x10f)])?{'ok':!![]}:{'ok':![],'message':'CLI\x20updated\x20to\x20v'+_0x2bc60d['version']+_0x4f14a3(0x126)};}export const updateDefinition={'service':a84_0x3b8153(0xfe),'command':a84_0x3b8153(0x100),'description':a84_0x3b8153(0xe5)+CLI_BIN_NAME+'\x20CLI\x20from\x20npm','risk':a84_0x3b8153(0x136),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
|
|
1
|
+
function a84_0x3046(){const _0xa46d41=['dirname','version','Unable\x20to\x20resolve\x20','update','Update\x20failed:\x20','join','cwd','reason','exitCode','\x20version\x20from\x20npm.','bool','1295480oJVGFv',',\x20but\x20Built-in\x20Skill\x20verification\x20failed:\x20','fromEntries','npm','skillVersion','relative','\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.','basename','8508wDbGwh','exit\x20','2LQGnTN','nonInteractive','apiError','inherit','CLI\x20Built-in\x20Skill\x20repair\x20failed\x20[','Update\x20the\x20','find','write','string','Version\x20comparison\x20failed:\x20','error','map','4206169zSitab','5526391tBHUnA','includes','source','install','\x20doctor','\x20is\x20current.','\x20dist-tags,\x20then\x20retry.','pipe','\x20CLI\x20from\x20npm','args','run','Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','Install\x20the\x20version\x20from\x20npm\x20latest\x20dist-tag','win32','log','object','Checking\x20npm\x20dist-tags...','\x20\x20CLI\x20Built-in\x20Skill\x20','Checking\x20CLI\x20Built-in\x20Skill...','validation','current',',\x20found\x20','18HvWJtk','Run:\x20','entries','@lovrabet/lovrabet-cli','valid','repairCommand','44839FUUomX','trim','Choose\x20exactly\x20one\x20target:\x20--latest,\x20--beta,\x20or\x20--version\x20<version>.','boolean','Updating\x20',',\x20then\x20verify\x20with:\x20','24vFnIfc','read','Run:\x20npm\x20install\x20-g\x20','Invalid\x20version:\x20','filter','/-/package/','length','/dist-tags','--prefix','warn','latest','str','40urdohx','unknown','\x20->\x20','CLI\x20updated\x20to\x20v','Updated\x20to\x20v','Already\x20up\x20to\x20date\x20(v','855LfBWcH','beta','stderr','25795tTzGdN','1799748ufBcXx','Already\x20on\x20requested\x20version\x20(v','node_modules','1168MQFoqa','json','stdout','state','toLowerCase','expected\x20','--latest,\x20--beta,\x20and\x20version\x20cannot\x20be\x20used\x20together.','test'];a84_0x3046=function(){return _0xa46d41;};return a84_0x3046();}const a84_0x545ffb=a84_0x527e;(function(_0x30235a,_0x5a7eff){const _0x499f7=a84_0x527e,_0x2606e=_0x30235a();while(!![]){try{const _0x542683=-parseInt(_0x499f7(0xbf))/0x1*(parseInt(_0x499f7(0x96))/0x2)+-parseInt(_0x499f7(0xd7))/0x3*(-parseInt(_0x499f7(0x94))/0x4)+-parseInt(_0x499f7(0x8c))/0x5*(parseInt(_0x499f7(0xb9))/0x6)+parseInt(_0x499f7(0xda))/0x7*(parseInt(_0x499f7(0xde))/0x8)+-parseInt(_0x499f7(0xdb))/0x9*(parseInt(_0x499f7(0xd1))/0xa)+parseInt(_0x499f7(0xa2))/0xb+-parseInt(_0x499f7(0xc5))/0xc*(-parseInt(_0x499f7(0xa3))/0xd);if(_0x542683===_0x5a7eff)break;else _0x2606e['push'](_0x2606e['shift']());}catch(_0xf4f88){_0x2606e['push'](_0x2606e['shift']());}}}(a84_0x3046,0xb845f));import{fileURLToPath}from'node:url';import{basename,dirname,relative,win32}from'node:path';import{execaSync}from'execa';import a84_0xc4d26f 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 a84_0x527e(_0x3a4c98,_0x4adace){_0x3a4c98=_0x3a4c98-0x84;const _0x304638=a84_0x3046();let _0x527e8f=_0x304638[_0x3a4c98];return _0x527e8f;}import{getCliVersion}from'../utils/version.js';import{inspectInstalledBuiltinSkillVersion,installBuiltinSkill}from'../skills/builtin-skill.js';const updateFlags=[{'name':a84_0x545ffb(0xcf),'type':'boolean','description':a84_0x545ffb(0xaf),'default':![]},{'name':a84_0x545ffb(0xd8),'type':a84_0x545ffb(0xc2),'description':a84_0x545ffb(0xae),'default':![]},{'name':a84_0x545ffb(0xe7),'type':a84_0x545ffb(0x9e),'description':'Install\x20a\x20specific\x20CLI\x20version'}];function getRequestedVersion(_0x1b8de8){const _0x2b9b53=a84_0x545ffb,_0x3357b6=_0x1b8de8[_0x2b9b53(0xd0)]('version')[_0x2b9b53(0xc0)]();if(_0x3357b6)return _0x3357b6;return String(_0x1b8de8[_0x2b9b53(0xac)]?.[0x0]??'')['trim']();}async function validateUpdateFlags(_0x5e9ab7){const _0x3f073e=a84_0x545ffb,_0x2d3df9=getRequestedVersion(_0x5e9ab7),_0x1c11ad=[_0x5e9ab7['bool'](_0x3f073e(0xcf))?_0x3f073e(0xcf):'',_0x5e9ab7[_0x3f073e(0x8b)](_0x3f073e(0xd8))?'beta':'',_0x2d3df9?_0x3f073e(0xe7):''][_0x3f073e(0xc9)](Boolean);if(_0x1c11ad[_0x3f073e(0xcb)]>0x1)throw CliErrors[_0x3f073e(0xb6)](_0x3f073e(0xe4),_0x3f073e(0xc1));if(_0x2d3df9&&!a84_0xc4d26f[_0x3f073e(0xbd)](_0x2d3df9))throw CliErrors[_0x3f073e(0xb6)](_0x3f073e(0xc8)+_0x2d3df9,'Use\x20a\x20full\x20semver\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.');}async function fetchNpmDistTags(){const _0x2b4106=a84_0x545ffb;try{const _0x32da2b=NPM_REGISTRY_BASE_URL+_0x2b4106(0xca)+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+_0x2b4106(0xcc),_0x441495=await fetch(_0x32da2b,{'signal':AbortSignal['timeout'](0x2710)});if(!_0x441495['ok'])return null;const _0x111362=await _0x441495[_0x2b4106(0xdf)]();if(!_0x111362||typeof _0x111362!==_0x2b4106(0xb2))return null;return Object[_0x2b4106(0x8e)](Object[_0x2b4106(0xbb)](_0x111362)[_0x2b4106(0xc9)](([,_0x30509e])=>typeof _0x30509e==='string'&&_0x30509e[_0x2b4106(0xc0)]())[_0x2b4106(0xa1)](([_0x2c429b,_0x4dce80])=>[_0x2c429b,String(_0x4dce80)['trim']()]));}catch{return null;}}async function resolveTargetVersion(_0x75dab6){const _0x1453e1=a84_0x545ffb,_0x4fb378=getRequestedVersion(_0x75dab6);if(_0x4fb378)return{'version':_0x4fb378,'source':_0x1453e1(0xe7)};const _0x88628e=_0x75dab6[_0x1453e1(0x8b)](_0x1453e1(0xd8))?_0x1453e1(0xd8):_0x1453e1(0xcf),_0x3c0ae5=await fetchNpmDistTags(),_0x168d90=_0x3c0ae5?.[_0x88628e];if(!_0x168d90)return null;return{'version':_0x168d90,'source':_0x88628e};}function shouldInstallTarget(_0xe08060,_0x23c507){const _0x57e677=a84_0x545ffb;if(_0x23c507[_0x57e677(0xa5)]==='version'||_0x23c507[_0x57e677(0xa5)]===_0x57e677(0xd8))return!a84_0xc4d26f['eq'](_0xe08060,_0x23c507[_0x57e677(0xe7)]);return a84_0xc4d26f['lt'](_0xe08060,_0x23c507['version']);}export function installCliPackage(_0x6b2dee,_0x5eccca,_0x46bdce=resolveCurrentCliNpmPrefix()){const _0x3e0caa=a84_0x545ffb,_0x26f004=LOVRABET_NPM_PACKAGE_NAME+'@'+_0x6b2dee,_0x1aaaef=[_0x3e0caa(0xa6),'-g',_0x26f004],_0x3fb9b1=runNpmInstall(_0x1aaaef,_0x5eccca);if(_0x3fb9b1['ok']||!isNpmPrefixPermissionError(_0x3fb9b1[_0x3e0caa(0xa0)]))return _0x3fb9b1;if(!_0x46bdce||_0x3fb9b1[_0x3e0caa(0xa0)]?.[_0x3e0caa(0xe2)]()[_0x3e0caa(0xa4)](_0x46bdce[_0x3e0caa(0xe2)]()))return _0x3fb9b1;return console[_0x3e0caa(0xce)]('Global\x20npm\x20prefix\x20is\x20not\x20writable;\x20retrying\x20in\x20the\x20current\x20CLI\x20Node\x20environment:\x20'+_0x46bdce),runNpmInstall([..._0x1aaaef,_0x3e0caa(0xcd),_0x46bdce],_0x5eccca);}export function resolveCurrentCliNpmPrefix(_0x5e1f02=fileURLToPath(import.meta.url),_0x3a0238=process['platform']){const _0x14613e=a84_0x545ffb,_0x235638=_0x3a0238===_0x14613e(0xb0)?win32:{'basename':basename,'dirname':dirname,'relative':relative},_0x573e58=_0x235638[_0x14613e(0xe6)](_0x235638['dirname'](_0x235638['dirname'](_0x5e1f02))),_0x5f0b51=_0x3a0238===_0x14613e(0xb0)?'@lovrabet\x5clovrabet-cli':_0x14613e(0xbc);let _0x50ff5d=_0x235638[_0x14613e(0xe6)](_0x573e58);while(!![]){if(_0x235638[_0x14613e(0x93)](_0x50ff5d)===_0x14613e(0xdd)&&_0x235638[_0x14613e(0x91)](_0x50ff5d,_0x573e58)===_0x5f0b51){const _0x48667d=_0x235638['dirname'](_0x50ff5d);return _0x235638[_0x14613e(0x93)](_0x48667d)==='lib'?_0x235638[_0x14613e(0xe6)](_0x48667d):_0x48667d;}const _0x3f9276=_0x235638[_0x14613e(0xe6)](_0x50ff5d);if(_0x3f9276===_0x50ff5d)return null;_0x50ff5d=_0x3f9276;}}function runNpmInstall(_0x3a6644,_0x1570c8){const _0x121dd5=a84_0x545ffb;console[_0x121dd5(0xb1)]('*\x20'+[_0x121dd5(0x8f),..._0x3a6644][_0x121dd5(0x86)]('\x20'));const _0x1e029d=execaSync(_0x121dd5(0x8f),_0x3a6644,{'cwd':process[_0x121dd5(0x87)](),'stdio':_0x121dd5(0xaa),'env':process.env,'extendEnv':![],'shell':![],'reject':![]}),_0x70919c=_0x1e029d[_0x121dd5(0xd9)]?String(_0x1e029d[_0x121dd5(0xd9)])[_0x121dd5(0xc0)]():'',_0x184bd9=_0x1e029d[_0x121dd5(0xe0)]?String(_0x1e029d[_0x121dd5(0xe0)])['trim']():'';if(!_0x1570c8){if(_0x184bd9)process[_0x121dd5(0xe0)][_0x121dd5(0x9d)](_0x184bd9+'\x0a');if(_0x70919c)process[_0x121dd5(0xd9)][_0x121dd5(0x9d)](_0x70919c+'\x0a');}if(_0x1e029d[_0x121dd5(0x89)]===0x0)return{'ok':!![]};const _0x42a18c=_0x70919c||_0x184bd9||_0x1e029d['shortMessage']||_0x121dd5(0x95)+(_0x1e029d[_0x121dd5(0x89)]??_0x121dd5(0xd2));return{'ok':![],'error':_0x42a18c};}function isNpmPrefixPermissionError(_0x48cf78){const _0x57e303=a84_0x545ffb;return Boolean(_0x48cf78&&/\b(?:EACCES|EPERM)\b/[_0x57e303(0xe5)](_0x48cf78));}function repairCurrentBuiltinSkill(_0x58b264){const _0x33c27c=a84_0x545ffb;console['log'](_0x33c27c(0xb5));const _0x5552a3=installBuiltinSkill({'stdio':_0x58b264?_0x33c27c(0xaa):_0x33c27c(0x99)});if(_0x5552a3['ok']){console[_0x33c27c(0xb1)](_0x33c27c(0xb4)+_0x5552a3[_0x33c27c(0x90)]+_0x33c27c(0xa8));return;}throw CliErrors[_0x33c27c(0x98)](_0x33c27c(0x9a)+(_0x5552a3['code']||'INSTALL_FAILED')+']:\x20'+(_0x5552a3['error']||_0x33c27c(0xd2)),_0x33c27c(0xba)+_0x5552a3[_0x33c27c(0xbe)]+_0x33c27c(0xc4)+CLI_BIN_NAME+_0x33c27c(0xa7));}function verifyUpdatedBuiltinSkill(_0x23797a){const _0x560182=a84_0x545ffb;console[_0x560182(0xb1)](_0x560182(0xb5));const _0x48380a=inspectInstalledBuiltinSkillVersion(_0x23797a);if(_0x48380a[_0x560182(0xe1)]===_0x560182(0xb7)){console['log'](_0x560182(0xb4)+_0x23797a+_0x560182(0xa8));return;}const _0x214b2a=_0x48380a['skillVersion']?_0x560182(0xe3)+_0x23797a+_0x560182(0xb8)+_0x48380a['skillVersion']:_0x560182(0xe3)+_0x23797a+',\x20state\x20'+_0x48380a[_0x560182(0xe1)],_0x61edf1=_0x48380a[_0x560182(0x88)]?_0x214b2a+':\x20'+_0x48380a[_0x560182(0x88)]:_0x214b2a;throw CliErrors[_0x560182(0x98)](_0x560182(0xd4)+_0x23797a+_0x560182(0x8d)+_0x61edf1,_0x560182(0xba)+_0x48380a[_0x560182(0xbe)]+_0x560182(0xc4)+CLI_BIN_NAME+_0x560182(0xa7));}async function execute(_0x2f4709){const _0x1e7af2=a84_0x545ffb;await validateUpdateFlags(_0x2f4709);const _0x377cec=getCliVersion();console[_0x1e7af2(0xb1)]('Current\x20version:\x20'+_0x377cec),console[_0x1e7af2(0xb1)](_0x1e7af2(0xb3));const _0x5256e3=await resolveTargetVersion(_0x2f4709);if(!_0x5256e3){const _0x275463=_0x2f4709[_0x1e7af2(0x8b)](_0x1e7af2(0xd8))?'beta':_0x1e7af2(0xcf),_0x204203=_0x1e7af2(0xe8)+_0x275463+_0x1e7af2(0x8a);throw CliErrors[_0x1e7af2(0x98)](_0x204203,_0x1e7af2(0xc7)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x275463);}const _0x5d7596=[_0x377cec,_0x5256e3[_0x1e7af2(0xe7)]][_0x1e7af2(0x9c)](_0x3ace8c=>!a84_0xc4d26f[_0x1e7af2(0xbd)](_0x3ace8c));if(_0x5d7596){const _0x470575=_0x1e7af2(0x9f)+_0x5d7596+'.';throw CliErrors[_0x1e7af2(0x98)](_0x470575,'Run:\x20npm\x20view\x20'+LOVRABET_NPM_PACKAGE_NAME+_0x1e7af2(0xa9));}if(!shouldInstallTarget(_0x377cec,_0x5256e3)){const _0x122e98=_0x5256e3[_0x1e7af2(0xa5)]==='version'?_0x1e7af2(0xdc)+_0x5256e3[_0x1e7af2(0xe7)]+').':_0x1e7af2(0xd6)+_0x5256e3[_0x1e7af2(0xe7)]+').';return console[_0x1e7af2(0xb1)](_0x122e98),repairCurrentBuiltinSkill(_0x2f4709[_0x1e7af2(0x97)]),{'ok':!![]};}console['log'](_0x1e7af2(0xc3)+LOVRABET_NPM_PACKAGE_NAME+':\x20'+_0x377cec+_0x1e7af2(0xd3)+_0x5256e3[_0x1e7af2(0xe7)]);const _0x14f86f=installCliPackage(_0x5256e3['version'],_0x2f4709[_0x1e7af2(0x97)]);if(!_0x14f86f['ok']){const _0x2ea0a6=_0x1e7af2(0x85)+(_0x14f86f[_0x1e7af2(0xa0)]||'unknown');throw CliErrors[_0x1e7af2(0x98)](_0x2ea0a6,_0x1e7af2(0xc7)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x5256e3[_0x1e7af2(0xe7)]);}return console[_0x1e7af2(0xb1)](_0x1e7af2(0xd5)+_0x5256e3['version']+'.'),console[_0x1e7af2(0xb1)](_0x1e7af2(0x92)),verifyUpdatedBuiltinSkill(_0x5256e3[_0x1e7af2(0xe7)]),{'ok':!![]};}export const updateDefinition={'service':a84_0x545ffb(0x84),'command':a84_0x545ffb(0xad),'description':a84_0x545ffb(0x9b)+CLI_BIN_NAME+a84_0x545ffb(0xab),'risk':a84_0x545ffb(0xc6),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a85_0x12d514=a85_0x27d3;(function(_0x21fd5f,_0x135468){const _0x45b67e=a85_0x27d3,_0x12da86=_0x21fd5f();while(!![]){try{const _0x4d8fc2=parseInt(_0x45b67e(0x1b1))/0x1*(-parseInt(_0x45b67e(0x1a0))/0x2)+-parseInt(_0x45b67e(0x1a4))/0x3+parseInt(_0x45b67e(0x1a6))/0x4+-parseInt(_0x45b67e(0x1b9))/0x5*(parseInt(_0x45b67e(0x1a1))/0x6)+parseInt(_0x45b67e(0x1a2))/0x7*(-parseInt(_0x45b67e(0x1ae))/0x8)+parseInt(_0x45b67e(0x1bc))/0x9+parseInt(_0x45b67e(0x1ad))/0xa*(parseInt(_0x45b67e(0x1a8))/0xb);if(_0x4d8fc2===_0x135468)break;else _0x12da86['push'](_0x12da86['shift']());}catch(_0x250937){_0x12da86['push'](_0x12da86['shift']());}}}(a85_0x276e,0xaec5d));import{bindExternalUserAccount,USER_ACCOUNT_BIND_PATH}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const CURRENT_BINDING_WARNING=a85_0x12d514(0x19c),SUPPORTED_PROVIDERS=[a85_0x12d514(0x1af)];function a85_0x27d3(_0x4d755f,_0xa7513c){_0x4d755f=_0x4d755f-0x19c;const _0x276eb5=a85_0x276e();let _0x27d3ef=_0x276eb5[_0x4d755f];return _0x27d3ef;}function readBindingInput(_0x2dbdac){const _0xe0126e=a85_0x12d514,_0x105f95=_0x2dbdac[_0xe0126e(0x1b4)](_0xe0126e(0x1b6))[_0xe0126e(0x1ac)]()[_0xe0126e(0x19e)]();if(!SUPPORTED_PROVIDERS[_0xe0126e(0x1b8)](_0x105f95))throw CliErrors[_0xe0126e(0x19f)](_0xe0126e(0x1b2)+(_0x105f95||'(empty)')+'.',_0xe0126e(0x1a5)+SUPPORTED_PROVIDERS['join'](',\x20')+'.');const _0x2a0940=_0x2dbdac[_0xe0126e(0x1b4)](_0xe0126e(0x1a7))['trim']();if(!_0x2a0940)throw CliErrors['validation'](_0xe0126e(0x1aa),_0xe0126e(0x1ab));return{'provider':_0x105f95,'accountId':_0x2a0940};}function buildBindingData(_0x5861ae,_0xfe9fb6,_0x4f6419){const _0xe14c9c=a85_0x12d514;return{'operation':_0xe14c9c(0x1bb),'selector':{'provider':_0x5861ae,'accountId':_0xfe9fb6},'before':null,'after':{'provider':_0x5861ae,'accountId':_0xfe9fb6,'bound':!![]},'dryRun':_0x4f6419,'warnings':[CURRENT_BINDING_WARNING]};}export const bindUserAccount={'service':a85_0x12d514(0x1ba),'command':a85_0x12d514(0x1bb),'description':a85_0x12d514(0x1b7),'risk':a85_0x12d514(0x1a3),'confirmationDescription':a85_0x12d514(0x1b0),'requiresAuth':!![],'requiresAppCode':![],'flags':[{'name':'provider','type':a85_0x12d514(0x1b3),'required':!![],'enum':[...SUPPORTED_PROVIDERS],'description':'External\x20account\x20provider'},{'name':a85_0x12d514(0x1a7),'type':a85_0x12d514(0x1b3),'required':!![],'description':a85_0x12d514(0x1bd)}],async 'validate'(_0xc005ec){readBindingInput(_0xc005ec);},async 'dryRun'(_0x1dd68d){const _0x3cfd55=a85_0x12d514,{provider:_0x5b6a29,accountId:_0x500659}=readBindingInput(_0x1dd68d);return{...buildBindingData(_0x5b6a29,_0x500659,!![]),'method':_0x3cfd55(0x1b5),'url':USER_ACCOUNT_BIND_PATH,'body':{'provider':_0x5b6a29,'accountId':_0x500659}};},async 'execute'(_0x2860ea){const _0x4e36e1=a85_0x12d514,{provider:_0x574258,accountId:_0x5e0ace}=readBindingInput(_0x2860ea),_0x58e146=await bindExternalUserAccount(_0x574258,_0x5e0ace);if(_0x58e146!==!![])throw CliErrors['apiError'](_0x4e36e1(0x1a9),_0x4e36e1(0x19d));return{'ok':!![],'data':buildBindingData(_0x574258,_0x5e0ace,![]),'message':'Bound\x20current\x20user\x20to\x20external\x20provider\x20account.'};}};function a85_0x276e(){const _0x5aff3f=['write','1699065rJVVIB','Pass\x20one\x20of:\x20','2395704nMLaFo','account-id','33SsRqSw','External\x20account\x20binding\x20was\x20not\x20confirmed.','--account-id\x20cannot\x20be\x20empty.','Pass\x20the\x20external\x20account\x20ID\x20for\x20the\x20selected\x20provider.','trim','1403880KOAzgZ','31600IGcgmQ','dingtalk','Binds\x20the\x20platform\x20user\x20of\x20the\x20current\x20AccessKey\x20to\x20the\x20given\x20collaboration-provider\x20account.\x20An\x20existing\x20bind\x20for\x20the\x20same\x20provider\x20may\x20be\x20replaced.','542XZvklB','Unsupported\x20provider:\x20','string','str','POST','provider','Bind\x20the\x20current\x20platform\x20user\x20to\x20an\x20external\x20provider\x20account','includes','5WqzYgN','user-account','bind','11476251QDtbHl','External\x20account\x20ID\x20for\x20the\x20selected\x20provider','The\x20current\x20binding\x20is\x20not\x20exposed\x20by\x20the\x20server;\x20before\x20is\x20unavailable.','Retry\x20with\x20the\x20same\x20--provider\x20and\x20--account-id\x20only\x20after\x20checking\x20the\x20current\x20AccessKey\x20identity.','toLowerCase','validation','1538gCWyoY','1207242GHEwdg','700rmKluZ'];a85_0x276e=function(){return _0x5aff3f;};return a85_0x276e();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a86_0x56f7(_0x10a6fe,_0x3867a9){_0x10a6fe=_0x10a6fe-0x1db;const _0x18f59a=a86_0x18f5();let _0x56f792=_0x18f59a[_0x10a6fe];return _0x56f792;}(function(_0xe2aedf,_0x2833d6){const _0x50d6bd=a86_0x56f7,_0x191fb5=_0xe2aedf();while(!![]){try{const _0x5bf875=-parseInt(_0x50d6bd(0x1e5))/0x1*(parseInt(_0x50d6bd(0x1de))/0x2)+parseInt(_0x50d6bd(0x1dd))/0x3*(-parseInt(_0x50d6bd(0x1e2))/0x4)+parseInt(_0x50d6bd(0x1e1))/0x5*(parseInt(_0x50d6bd(0x1db))/0x6)+parseInt(_0x50d6bd(0x1e4))/0x7*(-parseInt(_0x50d6bd(0x1e3))/0x8)+parseInt(_0x50d6bd(0x1e0))/0x9+-parseInt(_0x50d6bd(0x1dc))/0xa*(-parseInt(_0x50d6bd(0x1df))/0xb)+-parseInt(_0x50d6bd(0x1e6))/0xc*(-parseInt(_0x50d6bd(0x1e7))/0xd);if(_0x5bf875===_0x2833d6)break;else _0x191fb5['push'](_0x191fb5['shift']());}catch(_0x293a99){_0x191fb5['push'](_0x191fb5['shift']());}}}(a86_0x18f5,0x6d0cc));import{bindUserAccount}from'../../commands/user-account/bind.js';export const userAccountDefinitions=[bindUserAccount];function a86_0x18f5(){const _0x4b09dc=['125KmuNNR','12Lrcjdd','31080rgfoWu','1281NniUMz','61DXgZCB','506868yZPuFO','351GquGZp','6270BiDycD','4630iMeZAd','709170jPQOPN','7916NAQucp','16984puHdLb','2041029eCRxbj'];a86_0x18f5=function(){return _0x4b09dc;};return a86_0x18f5();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a87_0x40b6d9=a87_0x2e89;(function(_0x53f84a,_0xa530b0){const _0x457ae2=a87_0x2e89,_0x3906c3=_0x53f84a();while(!![]){try{const _0x4e3c06=-parseInt(_0x457ae2(0x187))/0x1*(parseInt(_0x457ae2(0x17e))/0x2)+-parseInt(_0x457ae2(0x178))/0x3+-parseInt(_0x457ae2(0x183))/0x4+parseInt(_0x457ae2(0x14b))/0x5*(parseInt(_0x457ae2(0x151))/0x6)+-parseInt(_0x457ae2(0x14f))/0x7+parseInt(_0x457ae2(0x14e))/0x8+-parseInt(_0x457ae2(0x175))/0x9*(-parseInt(_0x457ae2(0x172))/0xa);if(_0x4e3c06===_0xa530b0)break;else _0x3906c3['push'](_0x3906c3['shift']());}catch(_0x27c996){_0x3906c3['push'](_0x3906c3['shift']());}}}(a87_0x57e0,0xd9e4c));import{CLI_BIN_NAME}from'../../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../../constant/env.js';import{CliErrors}from'../../errors.js';import{readConfigFile,resolveWriteConfigPath,writeConfigFile}from'../../context.js';function a87_0x57e0(){const _0x3c63c2=['items','Workspace\x20app\x20context\x20is\x20not\x20initialized.','apps','includes','Run\x20`','\x0aDefault\x20app:\x20','map','env','\x20workspace\x20use\x20--app\x20<name>`\x20or\x20`','use','Usage:\x20','string','\x22\x20not\x20found.','Invalid\x20env\x20\x22','\x22.\x20Allowed:\x20','\x0aAccessKey:\x20not\x20written','authRequired','defaultApp','object','Conflicting\x20workspace\x20app\x20selectors.','App\x20code\x20to\x20bind\x20directly','accessKey','App\x20name\x20to\x20bind\x20as\x20the\x20current\x20workspace\x20default','trim','Missing\x20workspace\x20app\x20selector.','App\x20\x22','init','Workspace\x20app\x20context\x20is\x20already\x20initialized.','Updates\x20the\x20app\x20binding\x20already\x20present\x20in\x20the\x20current\x20working\x20directory\x20and\x20sets\x20the\x20selected\x20app\x20as\x20the\x20directory\x20default.\x20AccessKey\x20is\x20not\x20written.','validation','14020LTVvGT','envName','Resolving\x20--app\x20requires\x20accessKey.\x20Pass\x20--appcode\x20directly,\x20or\x20set\x20accessKey\x20before\x20running\x20','14103JUHImu','../../core/api-client.js','\x20workspace\x20init\x20--appcode\x20<code>`\x20first.','330747ZIeExw','shouldWriteEnv','Pass\x20either\x20--app\x20<name>\x20or\x20--appcode\x20<code>,\x20not\x20both.','Available\x20apps:\x20','join','write','512096SqdUXY','length','app','project','\x20workspace\x20init\x20--app\x20<name>`\x20or\x20`','4350192eUlZmM','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20pass\x20--appcode\x20directly.','appCode','str','6kFnMLg','from','appName','isArray','appcode','command','\x20workspace\x20','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.','\x20workspace\x20use\x20--appcode\x20<code>`\x20to\x20change\x20it.','Target\x20environment','7528715dNpVor','Initialize\x20app\x20context\x20for\x20the\x20current\x20working\x20directory\x20when\x20no\x20app\x20is\x20bound\x20yet','filter','4147096kdQZTc','4161409YeqAQK','Use\x20`','6xvtSzJ','workspace','\x0aEnv:\x20'];a87_0x57e0=function(){return _0x3c63c2;};return a87_0x57e0();}import{findAppByName,isRuntimeAccessibleApp,runtimeInaccessibleAppError}from'../../commands/app/eligibility.js';const WORKSPACE_USE_FLAGS=[{'name':a87_0x40b6d9(0x180),'type':a87_0x40b6d9(0x15f),'description':a87_0x40b6d9(0x16a)},{'name':'appcode','type':a87_0x40b6d9(0x15f),'description':a87_0x40b6d9(0x168)},{'name':a87_0x40b6d9(0x15b),'type':a87_0x40b6d9(0x15f),'description':a87_0x40b6d9(0x14a),'enum':[...RUNTIME_ENV_VALUES]}];async function executeWorkspaceUse(_0x28c10f,_0x41a93f){const _0x543081=a87_0x40b6d9,_0x55c35c=_0x28c10f[_0x543081(0x186)](_0x543081(0x180))[_0x543081(0x16b)](),_0x409242=_0x28c10f[_0x543081(0x186)](_0x543081(0x18b))[_0x543081(0x16b)](),_0x3b9c37=_0x28c10f['str'](_0x543081(0x15b))[_0x543081(0x16b)](),_0x45f925=resolveWorkspaceEnv(_0x3b9c37||_0x28c10f[_0x543081(0x173)]||DEFAULT_CONFIG_VALUES[_0x543081(0x15b)]);if(!_0x55c35c&&!_0x409242)throw CliErrors[_0x543081(0x171)](_0x543081(0x16c),_0x543081(0x15e)+CLI_BIN_NAME+_0x543081(0x18d)+_0x41a93f+'\x20--app\x20<name>\x20[--env\x20daily]\x20or\x20'+CLI_BIN_NAME+_0x543081(0x18d)+_0x41a93f+'\x20--appcode\x20<code>\x20[--env\x20daily]');if(_0x55c35c&&_0x409242)throw CliErrors[_0x543081(0x171)](_0x543081(0x167),_0x543081(0x17a));const _0x532275=resolveWriteConfigPath(_0x543081(0x181)),_0x5ad5da=readConfigFile(_0x532275);assertWorkspaceCommandState(_0x41a93f,_0x5ad5da);const _0x2db38d=_0x409242||await resolveRemoteAppCode({'command':_0x41a93f,'appName':_0x55c35c,'env':_0x45f925,'accessKey':_0x28c10f[_0x543081(0x169)]});return writeWorkspaceConfig({'command':_0x41a93f,'appName':_0x55c35c,'appcode':_0x2db38d,'env':_0x45f925,'shouldWriteEnv':!!_0x3b9c37,'accessKey':_0x28c10f['accessKey']},_0x532275,_0x5ad5da),{'ok':!![],'data':{'configPath':_0x532275,'app':_0x55c35c||null,'appcode':_0x2db38d,'env':_0x3b9c37?_0x45f925:null,'accessKeyWritten':![],'command':'workspace\x20'+_0x41a93f},'message':buildWorkspaceMessage(_0x532275,_0x55c35c,_0x2db38d,_0x3b9c37?_0x45f925:undefined)};}async function resolveRemoteAppCode(_0x5a9825){const _0x436c51=a87_0x40b6d9;if(!_0x5a9825['accessKey'])throw CliErrors[_0x436c51(0x164)](_0x436c51(0x174)+CLI_BIN_NAME+_0x436c51(0x18d)+_0x5a9825[_0x436c51(0x18c)]+'.');const {setActiveAK:_0x38e7b7}=await import(_0x436c51(0x176)),{getRemoteAppList:_0x54e0bf}=await import('../../commands/app/remote-source.js');_0x38e7b7(_0x5a9825[_0x436c51(0x169)]);const _0x5f47e3=await _0x54e0bf({'env':_0x5a9825['env'],'accessKey':_0x5a9825['accessKey'],'noCache':![]}),_0x290b73=findAppByName(_0x5f47e3[_0x436c51(0x154)],_0x5a9825[_0x436c51(0x189)]);if(_0x290b73&&!isRuntimeAccessibleApp(_0x290b73))throw runtimeInaccessibleAppError(_0x290b73,'\x22'+_0x5a9825[_0x436c51(0x189)]+'\x22');const _0x2922b1=_0x290b73?.[_0x436c51(0x185)]?.['trim']();if(_0x2922b1)return _0x2922b1;const _0x202662=_0x5f47e3[_0x436c51(0x154)][_0x436c51(0x15a)](_0x3c66d4=>_0x3c66d4['appName'])[_0x436c51(0x14d)](Boolean),_0x4796f3=_0x202662[_0x436c51(0x17f)]?_0x436c51(0x17b)+Array[_0x436c51(0x188)](new Set(_0x202662))[_0x436c51(0x17c)](',\x20')+'.':_0x436c51(0x158)+CLI_BIN_NAME+_0x436c51(0x184);throw CliErrors[_0x436c51(0x171)](_0x436c51(0x16d)+_0x5a9825['appName']+_0x436c51(0x160),_0x4796f3);}function writeWorkspaceConfig(_0x5c1851,_0x2f199a,_0x28ad01){const _0x1cfd42=a87_0x40b6d9;_0x5c1851[_0x1cfd42(0x179)]&&(_0x28ad01['env']=_0x5c1851['env']);if(_0x5c1851[_0x1cfd42(0x189)]){const _0x37141b=isRecord(_0x28ad01['apps'])?{..._0x28ad01['apps']}:{},_0x21fbb0=isRecord(_0x37141b[_0x5c1851[_0x1cfd42(0x189)]])?_0x37141b[_0x5c1851[_0x1cfd42(0x189)]]:{};return _0x37141b[_0x5c1851[_0x1cfd42(0x189)]]={..._0x21fbb0,'appcode':_0x5c1851[_0x1cfd42(0x18b)]},_0x28ad01['apps']=_0x37141b,_0x28ad01[_0x1cfd42(0x165)]=_0x5c1851[_0x1cfd42(0x189)],delete _0x28ad01[_0x1cfd42(0x18b)],delete _0x28ad01[_0x1cfd42(0x180)],writeAndReturn(_0x2f199a,_0x28ad01);}return _0x28ad01[_0x1cfd42(0x18b)]=_0x5c1851[_0x1cfd42(0x18b)],delete _0x28ad01[_0x1cfd42(0x165)],delete _0x28ad01[_0x1cfd42(0x180)],writeAndReturn(_0x2f199a,_0x28ad01);}function writeAndReturn(_0x58f028,_0x3e21fa){return writeConfigFile(_0x58f028,_0x3e21fa),_0x58f028;}function resolveWorkspaceEnv(_0x24f738){const _0x195c92=a87_0x40b6d9;if(RUNTIME_ENV_VALUES[_0x195c92(0x157)](_0x24f738))return _0x24f738;throw CliErrors[_0x195c92(0x171)](_0x195c92(0x161)+_0x24f738+_0x195c92(0x162)+RUNTIME_ENV_VALUES[_0x195c92(0x17c)](',\x20'));}function buildWorkspaceMessage(_0x45fec9,_0x1596b7,_0x4119aa,_0x44b7c9){const _0x59f088=a87_0x40b6d9,_0x129df6=_0x1596b7?_0x1596b7+'\x20('+_0x4119aa+')':_0x4119aa,_0x40256d=_0x44b7c9?_0x59f088(0x153)+_0x44b7c9:'';return'Workspace\x20configured.\x0aConfig\x20file:\x20'+_0x45fec9+_0x59f088(0x159)+_0x129df6+_0x40256d+_0x59f088(0x163);}function isRecord(_0x2b3012){const _0x360984=a87_0x40b6d9;return typeof _0x2b3012===_0x360984(0x166)&&_0x2b3012!==null&&!Array[_0x360984(0x18a)](_0x2b3012);}function hasWorkspaceAppBinding(_0x480b76){const _0x5310e0=a87_0x40b6d9;if(typeof _0x480b76[_0x5310e0(0x18b)]==='string'&&_0x480b76[_0x5310e0(0x18b)][_0x5310e0(0x16b)]()[_0x5310e0(0x17f)]>0x0)return!![];if(typeof _0x480b76[_0x5310e0(0x165)]!==_0x5310e0(0x15f)||!_0x480b76[_0x5310e0(0x165)][_0x5310e0(0x16b)]())return![];if(!isRecord(_0x480b76[_0x5310e0(0x156)]))return![];const _0x382894=_0x480b76[_0x5310e0(0x156)][_0x480b76[_0x5310e0(0x165)]['trim']()];return isRecord(_0x382894)&&typeof _0x382894['appcode']===_0x5310e0(0x15f)&&_0x382894[_0x5310e0(0x18b)][_0x5310e0(0x16b)]()[_0x5310e0(0x17f)]>0x0;}function assertWorkspaceCommandState(_0x1952c1,_0x3654df){const _0x26f0e1=a87_0x40b6d9,_0x1b37b5=hasWorkspaceAppBinding(_0x3654df);if(_0x1952c1==='init'&&_0x1b37b5)throw CliErrors[_0x26f0e1(0x171)](_0x26f0e1(0x16f),_0x26f0e1(0x150)+CLI_BIN_NAME+_0x26f0e1(0x15c)+CLI_BIN_NAME+_0x26f0e1(0x149));if(_0x1952c1===_0x26f0e1(0x15d)&&!_0x1b37b5)throw CliErrors[_0x26f0e1(0x171)](_0x26f0e1(0x155),_0x26f0e1(0x158)+CLI_BIN_NAME+_0x26f0e1(0x182)+CLI_BIN_NAME+_0x26f0e1(0x177));}function makeWorkspaceCommand(_0x3e873e){const _0x251cbe=a87_0x40b6d9;return{'service':_0x251cbe(0x152),'command':_0x3e873e,'description':_0x3e873e===_0x251cbe(0x16e)?_0x251cbe(0x14c):'Change\x20the\x20app\x20context\x20already\x20bound\x20to\x20the\x20current\x20working\x20directory','risk':_0x251cbe(0x17d),'confirmationDescription':_0x3e873e==='init'?_0x251cbe(0x18e):_0x251cbe(0x170),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':WORKSPACE_USE_FLAGS,async 'execute'(_0x38dbeb){return executeWorkspaceUse(_0x38dbeb,_0x3e873e);}};}function a87_0x2e89(_0xdad51e,_0x227cab){_0xdad51e=_0xdad51e-0x149;const _0x57e036=a87_0x57e0();let _0x2e897f=_0x57e036[_0xdad51e];return _0x2e897f;}export const workspaceDefinitions=[makeWorkspaceCommand(a87_0x40b6d9(0x16e)),makeWorkspaceCommand(a87_0x40b6d9(0x15d))];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a88_0x3dda(_0x393af1,_0x58ed6a){_0x393af1=_0x393af1-0x82;const _0x6b1166=a88_0x6b11();let _0x3dda9a=_0x6b1166[_0x393af1];return _0x3dda9a;}const a88_0x422dac=a88_0x3dda;(function(_0x1cdc46,_0x54e853){const _0x46bab3=a88_0x3dda,_0x42347d=_0x1cdc46();while(!![]){try{const _0x50c968=parseInt(_0x46bab3(0x94))/0x1+parseInt(_0x46bab3(0x87))/0x2+parseInt(_0x46bab3(0x9b))/0x3*(-parseInt(_0x46bab3(0x97))/0x4)+parseInt(_0x46bab3(0xa4))/0x5*(-parseInt(_0x46bab3(0x93))/0x6)+-parseInt(_0x46bab3(0xb4))/0x7*(parseInt(_0x46bab3(0x99))/0x8)+parseInt(_0x46bab3(0xac))/0x9+-parseInt(_0x46bab3(0x83))/0xa;if(_0x50c968===_0x54e853)break;else _0x42347d['push'](_0x42347d['shift']());}catch(_0x38473c){_0x42347d['push'](_0x42347d['shift']());}}}(a88_0x6b11,0xd4c75));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';function a88_0x6b11(){const _0x5456b0=['origin','skillHubDomain','https:','password','Domain\x20config\x20file\x20not\x20found:\x20','kind','\x22\x20and\x20kind\x20\x22','461804gTyDjI','Update\x20the\x20manifest\x20so\x20both\x20CLIs\x20consume\x20the\x20same\x20routing\x20data.','Enterprise\x20routing\x20manifest\x20is\x20missing\x20required\x20Domain(s):\x20','skillDomain','trim','Unsupported\x20routing\x20manifest:\x20expected\x20protocol\x20\x22','user-domain',':\x20expected\x20an\x20HTTPS\x20origin\x20without\x20credentials,\x20path,\x20query,\x20or\x20fragment.','apiDomain','keys','object','isArray','validation','Invalid\x20enterprise\x20routing\x20config:\x20expected\x20an\x20object.','default','hash','14129520WWiQSA','length','enterprise-v1','pathname','3382314dpKZZS','api-domain','skill-domain','search','filter','cwd','Enterprise\x20routing\x20manifests\x20cannot\x20be\x20combined\x20with\x20individual\x20Domain\x20flags.','\x22\x20is\x20not\x20a\x20valid\x20URL.','Invalid\x20domain\x20config:\x20expected\x20a\x20JSON\x20object.','For\x20internal\x20deployments,\x20terminate\x20TLS\x20at\x20the\x20ingress,\x20reverse\x20proxy,\x20or\x20load\x20balancer;\x20an\x20internal\x20CA\x20is\x20supported.','parse',':\x20expected\x20a\x20non-empty\x20HTTPS\x20origin.','6UDnJKE','803065CNMTnd',':\x20expected\x20an\x20HTTPS\x20origin\x20or\x20consumer\x20Domain\x20object.','runtimeDomain','404UPGzMV','kbDomain','72rThJqO','utf8','4371KKRqrV','Invalid\x20domain\x20config\x20JSON:\x20','domains','string','Invalid\x20domain\x20config:\x20provide\x20at\x20least\x20one\x20supported\x20Domain.','protocol','legacy','Invalid\x20','join','5319155sveEuQ','runtime-domain','lovrabet-cli','domain-config','str','userDomain','agentDomain','Invalid\x20enterprise\x20routing\x20manifest:\x20domains\x20must\x20be\x20an\x20object.','14355063bvnaqr'];a88_0x6b11=function(){return _0x5456b0;};return a88_0x6b11();}export const DOMAIN_CONFIG_FIELDS=[a88_0x422dac(0xa9),a88_0x422dac(0xbc),a88_0x422dac(0x96),a88_0x422dac(0xb7)];const DOMAIN_FLAGS={'userDomain':a88_0x422dac(0xba),'apiDomain':a88_0x422dac(0x88),'runtimeDomain':a88_0x422dac(0xa5),'skillDomain':a88_0x422dac(0x89)};export const LEGACY_DOMAIN_CONFIG_FIELDS=[a88_0x422dac(0xaa),'platformDomain',a88_0x422dac(0xae),a88_0x422dac(0x98)];const ENTERPRISE_TO_LOCAL_FIELD={'userDomain':a88_0x422dac(0xa9),'apiDomain':a88_0x422dac(0xbc),'runtimeDomain':'runtimeDomain','skillDomain':a88_0x422dac(0xb7)},ROUTING_CONSUMER=a88_0x422dac(0xa6);export function normalizeDomainOrigin(_0x5565f7,_0x2843bd){const _0x24653f=a88_0x422dac;if(typeof _0x2843bd!==_0x24653f(0x9e)||!_0x2843bd[_0x24653f(0xb8)]())throw CliErrors[_0x24653f(0xc0)](_0x24653f(0xa2)+_0x5565f7+_0x24653f(0x92));let _0x25b6bd;try{_0x25b6bd=new URL(_0x2843bd['trim']());}catch{throw CliErrors['validation']('Invalid\x20'+_0x5565f7+':\x20\x22'+_0x2843bd+_0x24653f(0x8e));}if(_0x25b6bd[_0x24653f(0xa0)]!==_0x24653f(0xaf)||_0x25b6bd['username']||_0x25b6bd[_0x24653f(0xb0)]||_0x25b6bd['pathname']!=='/'&&_0x25b6bd[_0x24653f(0x86)]!==''||_0x25b6bd[_0x24653f(0x8a)]||_0x25b6bd[_0x24653f(0x82)])throw CliErrors['validation']('Invalid\x20'+_0x5565f7+_0x24653f(0xbb),_0x24653f(0x90));return _0x25b6bd[_0x24653f(0xad)];}export function normalizeRoutingDomainValue(_0x1deb9a,_0x3de9da){const _0x3dc1ed=a88_0x422dac;if(typeof _0x3de9da===_0x3dc1ed(0x9e))return normalizeDomainOrigin(_0x1deb9a,_0x3de9da);if(!_0x3de9da||typeof _0x3de9da!==_0x3dc1ed(0xbe)||Array['isArray'](_0x3de9da))throw CliErrors[_0x3dc1ed(0xc0)](_0x3dc1ed(0xa2)+_0x1deb9a+_0x3dc1ed(0x95));const _0x36a6d6=_0x3de9da,_0x1cdce7=_0x36a6d6[ROUTING_CONSUMER]??_0x36a6d6[_0x3dc1ed(0xc2)];if(_0x1cdce7===undefined)throw CliErrors[_0x3dc1ed(0xc0)]('Enterprise\x20'+_0x1deb9a+'\x20does\x20not\x20provide\x20a\x20Domain\x20for\x20'+ROUTING_CONSUMER+'\x20and\x20has\x20no\x20default.');return normalizeDomainOrigin(_0x1deb9a,_0x1cdce7);}export function resolveEnterpriseRoutingConfig(_0x584ce5){const _0x3f831b=a88_0x422dac;if(_0x584ce5===undefined)return undefined;if(!_0x584ce5||typeof _0x584ce5!==_0x3f831b(0xbe)||Array[_0x3f831b(0xbf)](_0x584ce5))throw CliErrors[_0x3f831b(0xc0)](_0x3f831b(0xc1));return parseEnterpriseRoutingManifest(_0x584ce5)[_0x3f831b(0x9d)];}export function readDomainConfigInput(_0x5c23dc){const _0x5662fa=a88_0x422dac,_0x5ddaa3=isAbsolute(_0x5c23dc)?_0x5c23dc:resolve(process[_0x5662fa(0x8c)](),_0x5c23dc);if(!existsSync(_0x5ddaa3))throw CliErrors['validation'](_0x5662fa(0xb1)+_0x5ddaa3);let _0x3c58d5;try{_0x3c58d5=JSON[_0x5662fa(0x91)](readFileSync(_0x5ddaa3,_0x5662fa(0x9a)));}catch{throw CliErrors[_0x5662fa(0xc0)](_0x5662fa(0x9c)+_0x5ddaa3);}if(!_0x3c58d5||typeof _0x3c58d5!==_0x5662fa(0xbe)||Array[_0x5662fa(0xbf)](_0x3c58d5))throw CliErrors[_0x5662fa(0xc0)](_0x5662fa(0x8f));const _0x209141=_0x3c58d5;if(_0x5662fa(0xa0)in _0x209141)return parseEnterpriseRoutingManifest(_0x209141);const _0x1f6dee=Object[_0x5662fa(0xbd)](_0x209141)[_0x5662fa(0x8b)](_0x16834b=>!DOMAIN_CONFIG_FIELDS['includes'](_0x16834b));if(_0x1f6dee['length']>0x0)throw CliErrors['validation']('Unsupported\x20domain\x20config\x20field(s):\x20'+_0x1f6dee['join'](',\x20'),'Allowed\x20fields:\x20'+DOMAIN_CONFIG_FIELDS[_0x5662fa(0xa3)](',\x20'));const _0x2344eb={};for(const _0x230ec6 of DOMAIN_CONFIG_FIELDS){_0x209141[_0x230ec6]!==undefined&&(_0x2344eb[_0x230ec6]=normalizeDomainOrigin(_0x230ec6,_0x209141[_0x230ec6]));}if(Object['keys'](_0x2344eb)[_0x5662fa(0x84)]===0x0)throw CliErrors['validation'](_0x5662fa(0x9f));return{'mode':_0x5662fa(0xa1),'domains':_0x2344eb};}export function readDomainConfig(_0x237db8){const _0x4e56ca=a88_0x422dac;return readDomainConfigInput(_0x237db8)[_0x4e56ca(0x9d)];}export function resolveDomainConfigInput(_0x55bb3d){const _0x1856a9=a88_0x422dac,_0x465b86=(_0x55bb3d[_0x1856a9(0xa8)](_0x1856a9(0xa7))||'')[_0x1856a9(0xb8)](),_0x4c723f=_0x465b86?readDomainConfigInput(_0x465b86):{'mode':_0x1856a9(0xa1),'domains':{}},_0x3e92d2=DOMAIN_CONFIG_FIELDS[_0x1856a9(0x8b)](_0x5f1f55=>Boolean((_0x55bb3d[_0x1856a9(0xa8)](DOMAIN_FLAGS[_0x5f1f55])||'')['trim']()));if(_0x4c723f['mode']===_0x1856a9(0x85)&&_0x3e92d2['length']>0x0)throw CliErrors[_0x1856a9(0xc0)](_0x1856a9(0x8d),_0x1856a9(0xb5));for(const _0x2eff81 of DOMAIN_CONFIG_FIELDS){const _0x36b019=(_0x55bb3d['str'](DOMAIN_FLAGS[_0x2eff81])||'')['trim']();if(_0x36b019)_0x4c723f[_0x1856a9(0x9d)][_0x2eff81]=normalizeDomainOrigin(_0x2eff81,_0x36b019);}return _0x4c723f;}export function resolveDomainFlags(_0x38baec){const _0x28cd0e=a88_0x422dac;return resolveDomainConfigInput(_0x38baec)[_0x28cd0e(0x9d)];}export function parseEnterpriseRoutingManifest(_0x1ad3f0){const _0x7fb732=a88_0x422dac;if(_0x1ad3f0[_0x7fb732(0xa0)]!==ENTERPRISE_ROUTING_PROTOCOL||_0x1ad3f0[_0x7fb732(0xb2)]!==ENTERPRISE_ROUTING_KIND)throw CliErrors['validation'](_0x7fb732(0xb9)+ENTERPRISE_ROUTING_PROTOCOL+_0x7fb732(0xb3)+ENTERPRISE_ROUTING_KIND+'\x22.');if(!_0x1ad3f0[_0x7fb732(0x9d)]||typeof _0x1ad3f0[_0x7fb732(0x9d)]!=='object'||Array[_0x7fb732(0xbf)](_0x1ad3f0[_0x7fb732(0x9d)]))throw CliErrors[_0x7fb732(0xc0)](_0x7fb732(0xab));const _0x557df0=_0x1ad3f0[_0x7fb732(0x9d)],_0x4f0557=REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS[_0x7fb732(0x8b)](_0x1f1188=>_0x557df0[_0x1f1188]===undefined);if(_0x4f0557[_0x7fb732(0x84)]>0x0)throw CliErrors[_0x7fb732(0xc0)](_0x7fb732(0xb6)+_0x4f0557[_0x7fb732(0xa3)](',\x20'));const _0x3df335={},_0xe73093={};for(const _0x34d3ec of ENTERPRISE_ROUTING_DOMAIN_FIELDS){const _0x2f1f26=_0x557df0[_0x34d3ec];if(_0x2f1f26===undefined)continue;const _0x17af81=normalizeRoutingDomainValue(_0x34d3ec,_0x2f1f26);_0x3df335[_0x34d3ec]=_0x17af81;const _0x3fd87b=ENTERPRISE_TO_LOCAL_FIELD[_0x34d3ec];_0x3fd87b&&(_0xe73093[_0x3fd87b]=_0x17af81);}return{'mode':_0x7fb732(0x85),'domains':_0xe73093,'manifestDomains':_0x3df335};}
|
package/lib/config/schema.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a89_0x4b7675=a89_0x1686;(function(_0xe845bd,_0x584f0d){const _0xeca03f=a89_0x1686,_0x3eaf27=_0xe845bd();while(!![]){try{const _0x2d2941=-parseInt(_0xeca03f(0xa9))/0x1*(parseInt(_0xeca03f(0xad))/0x2)+-parseInt(_0xeca03f(0xc5))/0x3+parseInt(_0xeca03f(0xb4))/0x4*(parseInt(_0xeca03f(0xb9))/0x5)+parseInt(_0xeca03f(0xb1))/0x6*(parseInt(_0xeca03f(0xa5))/0x7)+-parseInt(_0xeca03f(0xb7))/0x8*(-parseInt(_0xeca03f(0xaa))/0x9)+parseInt(_0xeca03f(0xbc))/0xa+-parseInt(_0xeca03f(0xa4))/0xb;if(_0x2d2941===_0x584f0d)break;else _0x3eaf27['push'](_0x3eaf27['shift']());}catch(_0x490a77){_0x3eaf27['push'](_0x3eaf27['shift']());}}}(a89_0x3b36,0x2bc92));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../constant/env.js';import{OUTPUT_FORMAT_VALUES}from'../constant/output.js';import{DEFAULT_LOVRABET_REGION,ENABLED_LOVRABET_REGION_VALUES}from'../constant/region.js';function a89_0x3b36(){const _0x4ad986=['nativeToolAvailable','cliSettableTopLevel','2945349CmHfWJ','2090347dunJpS','format','Override\x20API\x20domain','App\x20locale\x20(not\x20CLI\x20language;\x20reserved\x20for\x20later\x20app\x20use)','1PRKokb','612sjDVIx','filter','Risk\x20level','556538fFbFBJ','legacyCompatOnly','Override\x20user\x20domain','importable','6ofbocr','entries','enumValues','116tNmEYS','en-US','Config\x20key.\x20Top-level:\x20','15112uimTHR','Override\x20SkillHub\x20domain','6805XKnDhZ','env','zh-CN','3463580MUkoIJ','Target\x20environment','Default\x20output\x20format','riskLevel','fromEntries','Override\x20runtime\x20domain','map','has','defaultValue','262578TjFnMo','toLowerCase'];a89_0x3b36=function(){return _0x4ad986;};return a89_0x3b36();}export const CONFIG_FIELD_SCHEMAS={'routing':{'description':'Versioned\x20enterprise\x20routing\x20manifest','topLevel':!![]},'region':{'description':'Lovrabet\x20region','topLevel':!![],'cliSettableTopLevel':!![],'enumValues':ENABLED_LOVRABET_REGION_VALUES,'defaultValue':DEFAULT_LOVRABET_REGION,'importable':!![]},'env':{'description':a89_0x4b7675(0xbd),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':RUNTIME_ENV_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a89_0x4b7675(0xba)],'importable':!![]},'format':{'description':a89_0x4b7675(0xbe),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':OUTPUT_FORMAT_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a89_0x4b7675(0xa6)],'importable':!![]},'pageSize':{'description':'Default\x20page\x20size','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'apiDomain':{'description':a89_0x4b7675(0xa7),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'userDomain':{'description':a89_0x4b7675(0xaf),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'runtimeDomain':{'description':a89_0x4b7675(0xc1),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'skillDomain':{'description':a89_0x4b7675(0xb8),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'accessKey':{'description':'Access\x20key\x20(client-ak\x20auth)','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'riskLevel':{'description':a89_0x4b7675(0xac),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES['riskLevel'],'importable':!![]},'nativeToolAvailable':{'description':'Native\x20Lovrabet\x20tool\x20availability\x20in\x20the\x20current\x20execution\x20host','topLevel':!![],'defaultValue':![]},'locale':{'description':a89_0x4b7675(0xa8),'topLevel':!![],'cliSettableTopLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES['locale'],'importable':!![]}};export const TOP_LEVEL_CONFIG_KEYS=new Set(Object[a89_0x4b7675(0xb2)](CONFIG_FIELD_SCHEMAS)[a89_0x4b7675(0xab)](([,_0xb2f0a0])=>_0xb2f0a0[a89_0x4b7675(0xa3)])[a89_0x4b7675(0xc2)](([_0xbc556f])=>_0xbc556f));export const CLI_PROTECTED_CONFIG_KEYS=new Set([a89_0x4b7675(0xbf),a89_0x4b7675(0xa2)]);export const CONFIG_ENUM_VALUES=Object[a89_0x4b7675(0xc0)](Object[a89_0x4b7675(0xb2)](CONFIG_FIELD_SCHEMAS)[a89_0x4b7675(0xab)](([,_0x2a91e5])=>_0x2a91e5[a89_0x4b7675(0xb3)])['map'](([_0x4f1d8e,_0x4202cd])=>[_0x4f1d8e,[..._0x4202cd[a89_0x4b7675(0xb3)]||[]]]));export const IMPORTABLE_RUNTIME_CONFIG_KEYS=Object[a89_0x4b7675(0xb2)](CONFIG_FIELD_SCHEMAS)['filter'](([,_0xda2bbe])=>_0xda2bbe[a89_0x4b7675(0xb0)])[a89_0x4b7675(0xc2)](([_0x21b197])=>_0x21b197);export function getConfigFieldSchema(_0x11394e){return CONFIG_FIELD_SCHEMAS[_0x11394e];}export function getConfigEnumValues(_0x1cf20e){const _0x6a88c1=a89_0x4b7675;return getConfigFieldSchema(_0x1cf20e)?.[_0x6a88c1(0xb3)];}export function getConfigDefaultValue(_0x21e950){const _0x583f9b=a89_0x4b7675;return getConfigFieldSchema(_0x21e950)?.[_0x583f9b(0xc4)];}function a89_0x1686(_0x1ea6f0,_0x22bdcd){_0x1ea6f0=_0x1ea6f0-0xa2;const _0x3b367e=a89_0x3b36();let _0x1686db=_0x3b367e[_0x1ea6f0];return _0x1686db;}export function isTopLevelConfigKey(_0x3cfdc8){const _0x5ce374=a89_0x4b7675;return TOP_LEVEL_CONFIG_KEYS[_0x5ce374(0xc3)](_0x3cfdc8);}export function isCliProtectedConfigKey(_0x100678){const _0x1f6c76=a89_0x4b7675;return CLI_PROTECTED_CONFIG_KEYS[_0x1f6c76(0xc3)](_0x100678);}const LOCALE_MAP={'zh':a89_0x4b7675(0xbb),'zh-cn':a89_0x4b7675(0xbb),'zh_cn':a89_0x4b7675(0xbb),'en':a89_0x4b7675(0xb5),'en-us':a89_0x4b7675(0xb5),'en_us':a89_0x4b7675(0xb5)};export function normalizeLocale(_0x199cae){const _0xfa4557=a89_0x4b7675;if(!_0x199cae)return null;return LOCALE_MAP[_0x199cae[_0xfa4557(0xc6)]()]??null;}export function isLegacyCompatConfigKey(_0x31e14c){const _0x59bbd3=a89_0x4b7675;return getConfigFieldSchema(_0x31e14c)?.[_0x59bbd3(0xae)]===!![];}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function formatConfigKeyList(_0x11f4b4){return[..._0x11f4b4]['join'](',\x20');}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x16ebed=a89_0x4b7675;return _0x16ebed(0xb6)+getTopLevelConfigKeySummary()+';\x20local\x20alias:\x20apps.<alias>.appcode';}export function buildAppProfileListFields(_0x1f6293){return{'env':_0x1f6293,'hasAccessKey':![],'format':null,'pageSize':null,'riskLevel':null,'locale':null};}
|
package/lib/constant/app.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a90_0x4a55(_0x104d47,_0x53f66d){_0x104d47=_0x104d47-0x188;const _0x54f3db=a90_0x54f3();let _0x4a55eb=_0x54f3db[_0x104d47];return _0x4a55eb;}const a90_0x53ab22=a90_0x4a55;function a90_0x54f3(){const _0x31a6ec=['295eJwHKj','5128wsSvwn','1zAtrjU','UNPUBLISH','19511360TaYeen','1511594hmJfBh','597uQvRIl','17243100gRPyzp','10756KNUemW','13848921HIUFRu','3199zDytdG','94194vLcEqe'];a90_0x54f3=function(){return _0x31a6ec;};return a90_0x54f3();}(function(_0x28c77d,_0x4f0ebb){const _0x568f99=a90_0x4a55,_0x5f4837=_0x28c77d();while(!![]){try{const _0x51effe=parseInt(_0x568f99(0x193))/0x1*(parseInt(_0x568f99(0x18a))/0x2)+parseInt(_0x568f99(0x18b))/0x3*(parseInt(_0x568f99(0x18d))/0x4)+-parseInt(_0x568f99(0x191))/0x5*(-parseInt(_0x568f99(0x190))/0x6)+parseInt(_0x568f99(0x18f))/0x7*(parseInt(_0x568f99(0x192))/0x8)+-parseInt(_0x568f99(0x18e))/0x9+parseInt(_0x568f99(0x18c))/0xa+-parseInt(_0x568f99(0x189))/0xb;if(_0x51effe===_0x4f0ebb)break;else _0x5f4837['push'](_0x5f4837['shift']());}catch(_0x12b55b){_0x5f4837['push'](_0x5f4837['shift']());}}}(a90_0x54f3,0xe110b));export const APP_PUBLISH_STATUS={'Published':'PUBLISHED','Unpublished':a90_0x53ab22(0x188)};export const RUNTIME_ACCESSIBLE_APP_STATUS=APP_PUBLISH_STATUS['Published'];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x571753,_0x596c57){const _0x5584e1=a91_0x2e64,_0x36f26b=_0x571753();while(!![]){try{const _0xcb2d64=parseInt(_0x5584e1(0x9e))/0x1*(-parseInt(_0x5584e1(0x99))/0x2)+-parseInt(_0x5584e1(0xa2))/0x3+-parseInt(_0x5584e1(0x9a))/0x4*(parseInt(_0x5584e1(0x9c))/0x5)+-parseInt(_0x5584e1(0xa1))/0x6*(parseInt(_0x5584e1(0x9f))/0x7)+-parseInt(_0x5584e1(0xa3))/0x8+-parseInt(_0x5584e1(0x9b))/0x9+parseInt(_0x5584e1(0x9d))/0xa*(parseInt(_0x5584e1(0x98))/0xb);if(_0xcb2d64===_0x596c57)break;else _0x36f26b['push'](_0x36f26b['shift']());}catch(_0x489203){_0x36f26b['push'](_0x36f26b['shift']());}}}(a91_0x3f09,0x92c4f));function a91_0x3f09(){const _0x1a2ce7=['200mMQVbX','1752462jAJXKX','4400dUluqL','70WmsjyB','7XxmBpG','154qIoPin','ClientAk','121908NVXTAZ','3201306ieMoji','8461248kUXzYq','5568871OCLHlk','37768KhyySg'];a91_0x3f09=function(){return _0x1a2ce7;};return a91_0x3f09();}function a91_0x2e64(_0x110b50,_0x549324){_0x110b50=_0x110b50-0x98;const _0x3f09ec=a91_0x3f09();let _0x2e641a=_0x3f09ec[_0x110b50];return _0x2e641a;}export const AUTH_MODE={'ClientAk':'client-ak'};export function isAuthMode(_0x36eecd){const _0x306bd1=a91_0x2e64;return _0x36eecd===AUTH_MODE[_0x306bd1(0xa0)];}
|
package/lib/constant/cli.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a92_0x28ea(_0x101fb8,_0xe7d9ac){_0x101fb8=_0x101fb8-0x70;const _0x52dfd3=a92_0x52df();let _0x28ea2b=_0x52dfd3[_0x101fb8];return _0x28ea2b;}const a92_0x1b40ac=a92_0x28ea;(function(_0x2755d9,_0x21de4b){const _0x44b370=a92_0x28ea,_0x5e503=_0x2755d9();while(!![]){try{const _0x3dca57=parseInt(_0x44b370(0x90))/0x1*(-parseInt(_0x44b370(0x76))/0x2)+-parseInt(_0x44b370(0x99))/0x3*(-parseInt(_0x44b370(0x8e))/0x4)+-parseInt(_0x44b370(0x7a))/0x5+-parseInt(_0x44b370(0x8b))/0x6*(parseInt(_0x44b370(0x9e))/0x7)+parseInt(_0x44b370(0x7d))/0x8*(-parseInt(_0x44b370(0x79))/0x9)+parseInt(_0x44b370(0x7f))/0xa*(-parseInt(_0x44b370(0xa2))/0xb)+parseInt(_0x44b370(0x9f))/0xc*(parseInt(_0x44b370(0x93))/0xd);if(_0x3dca57===_0x21de4b)break;else _0x5e503['push'](_0x5e503['shift']());}catch(_0x136f1f){_0x5e503['push'](_0x5e503['shift']());}}}(a92_0x52df,0x3a1a1));import{PRODUCT_CONFIG}from'../constant/product.js';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';export const CLI_BIN_NAME=PRODUCT_CONFIG[a92_0x1b40ac(0x78)];export const CLI_DISPLAY_NAME=PRODUCT_CONFIG['cliDisplayName'];function a92_0x52df(){const _0x292ea7=['180fyEyWr','Use\x20global\x20config\x20scope','boolean','11zIofTl','help','clear','env','Preview\x20operation\x20without\x20executing','Skip\x20confirmation\x20for\x20high-risk\x20writes','name','dryRun','108XzHZid','json\x20|\x20pretty\x20|\x20compress','cliBinName','9aBDLjz','2134790hrVoPU','production\x20|\x20development\x20|\x20daily','Force\x20non-interactive\x20mode\x20(CI)','2787640mVhXZx','<expr>','52130tXxJkp','Override\x20appcode','Alias\x20for\x20--non-interactive','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','dry-run','params','Select\x20app\x20profile\x20by\x20name','fromEntries','Show\x20help','yes','map','string','6cipKiO','verbose','JSON\x20params\x20for\x20execute\x20commands','76IRnfyv','Verbose\x20output','2146XpyDKD','<code>','nonInteractive','1191983WtPBtI','Clear\x20output','type','appcode','app','format','2787SlCDNn','non-interactive','SQL\x20query\x20code','Environment','global','1809647jCvTcr'];a92_0x52df=function(){return _0x292ea7;};return a92_0x52df();}export const NPM_PACKAGE_NAME=LOVRABET_NPM_PACKAGE_NAME;export const GLOBAL_FLAGS=[{'name':a92_0x1b40ac(0x96),'meowKey':a92_0x1b40ac(0x96),'type':a92_0x1b40ac(0x8a),'description':a92_0x1b40ac(0x80),'hint':a92_0x1b40ac(0x91)},{'name':'app','meowKey':a92_0x1b40ac(0x97),'type':a92_0x1b40ac(0x8a),'description':a92_0x1b40ac(0x85),'hint':'<name>'},{'name':a92_0x1b40ac(0x71),'meowKey':a92_0x1b40ac(0x71),'type':a92_0x1b40ac(0x8a),'description':a92_0x1b40ac(0x9c),'hint':a92_0x1b40ac(0x7b)},{'name':a92_0x1b40ac(0x98),'meowKey':a92_0x1b40ac(0x98),'type':a92_0x1b40ac(0x8a),'description':'Output\x20format','hint':a92_0x1b40ac(0x77)},{'name':'jq','meowKey':'jq','type':a92_0x1b40ac(0x8a),'description':a92_0x1b40ac(0x82),'hint':a92_0x1b40ac(0x7e)},{'name':a92_0x1b40ac(0x83),'meowKey':a92_0x1b40ac(0x75),'type':a92_0x1b40ac(0xa1),'description':a92_0x1b40ac(0x72)},{'name':a92_0x1b40ac(0x88),'meowKey':a92_0x1b40ac(0x88),'type':'boolean','description':a92_0x1b40ac(0x73)},{'name':a92_0x1b40ac(0x9a),'meowKey':a92_0x1b40ac(0x92),'type':a92_0x1b40ac(0xa1),'description':a92_0x1b40ac(0x7c)},{'name':'global','meowKey':a92_0x1b40ac(0x9d),'type':'boolean','description':a92_0x1b40ac(0xa0)},{'name':'ci','meowKey':'ci','type':a92_0x1b40ac(0xa1),'description':a92_0x1b40ac(0x81),'hidden':!![]},{'name':a92_0x1b40ac(0xa3),'meowKey':a92_0x1b40ac(0xa3),'type':a92_0x1b40ac(0xa1),'description':a92_0x1b40ac(0x87)},{'name':'id','meowKey':'id','type':'string','description':'Record\x20ID','hidden':!![]},{'name':a92_0x1b40ac(0x74),'meowKey':a92_0x1b40ac(0x74),'type':a92_0x1b40ac(0x8a),'description':'Name\x20filter','hidden':!![]},{'name':'sqlcode','meowKey':'sqlcode','type':a92_0x1b40ac(0x8a),'description':a92_0x1b40ac(0x9b),'hidden':!![]},{'name':a92_0x1b40ac(0x84),'meowKey':a92_0x1b40ac(0x84),'type':a92_0x1b40ac(0x8a),'description':a92_0x1b40ac(0x8d),'hidden':!![]},{'name':a92_0x1b40ac(0x8c),'meowKey':a92_0x1b40ac(0x8c),'type':a92_0x1b40ac(0xa1),'description':a92_0x1b40ac(0x8f),'hidden':!![]},{'name':a92_0x1b40ac(0x70),'meowKey':'clear','type':'boolean','description':a92_0x1b40ac(0x94),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set(['appcode',a92_0x1b40ac(0x97),a92_0x1b40ac(0x71),a92_0x1b40ac(0x98),'jq',a92_0x1b40ac(0x83),a92_0x1b40ac(0x88),'non-interactive','ci']);export function buildMeowFlags(){const _0x1165b2=a92_0x1b40ac;return Object[_0x1165b2(0x86)](GLOBAL_FLAGS[_0x1165b2(0x89)](_0x4a3e5a=>[_0x4a3e5a['meowKey'],{'type':_0x4a3e5a[_0x1165b2(0x95)]}]));}
|
package/lib/constant/defaults.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a93_0x3e0a08=a93_0x209a;(function(_0x18df08,_0x38d116){const _0xc2cde9=a93_0x209a,_0x374635=_0x18df08();while(!![]){try{const _0x355f5d=parseInt(_0xc2cde9(0x19c))/0x1*(-parseInt(_0xc2cde9(0x197))/0x2)+parseInt(_0xc2cde9(0x19a))/0x3+parseInt(_0xc2cde9(0x1a0))/0x4*(-parseInt(_0xc2cde9(0x1a4))/0x5)+parseInt(_0xc2cde9(0x1a3))/0x6+-parseInt(_0xc2cde9(0x198))/0x7*(parseInt(_0xc2cde9(0x19f))/0x8)+-parseInt(_0xc2cde9(0x19d))/0x9+parseInt(_0xc2cde9(0x19b))/0xa;if(_0x355f5d===_0x38d116)break;else _0x374635['push'](_0x374635['shift']());}catch(_0x26d615){_0x374635['push'](_0x374635['shift']());}}}(a93_0x443f,0xb10f2));export const DEFAULT_APP_PROFILE_NAME='main';export const DEFAULT_CONFIG_VALUES={'env':a93_0x3e0a08(0x1a1),'format':a93_0x3e0a08(0x1a2),'locale':a93_0x3e0a08(0x19e),'riskLevel':a93_0x3e0a08(0x199)};function a93_0x443f(){const _0x1291e2=['316492wKJDWQ','801507EAunlt','write','1495260seinBt','30104520sRyEDA','6ouUrTL','2521656CXVnBa','en-US','64ADFpze','16OWeebJ','production','compress','1863588hqoMjm','1185710KCEcfq'];a93_0x443f=function(){return _0x1291e2;};return a93_0x443f();}function a93_0x209a(_0x329575,_0x5b8c0b){_0x329575=_0x329575-0x197;const _0x443ff2=a93_0x443f();let _0x209a3c=_0x443ff2[_0x329575];return _0x209a3c;}export const DEFAULT_COMMAND_OUTPUT_FORMAT='compress';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a94_0x118d3a=a94_0x1122;function a94_0x1122(_0x2b13af,_0x2b146b){_0x2b13af=_0x2b13af-0xe4;const _0x9d688=a94_0x9d68();let _0x112218=_0x9d688[_0x2b13af];return _0x112218;}(function(_0x390fa9,_0x349e9c){const _0x2ea78a=a94_0x1122,_0x598a51=_0x390fa9();while(!![]){try{const _0x16b192=parseInt(_0x2ea78a(0xee))/0x1*(-parseInt(_0x2ea78a(0xeb))/0x2)+-parseInt(_0x2ea78a(0xed))/0x3*(-parseInt(_0x2ea78a(0xef))/0x4)+parseInt(_0x2ea78a(0xe8))/0x5*(-parseInt(_0x2ea78a(0xec))/0x6)+parseInt(_0x2ea78a(0xe5))/0x7*(parseInt(_0x2ea78a(0xf1))/0x8)+-parseInt(_0x2ea78a(0xe4))/0x9*(parseInt(_0x2ea78a(0xf3))/0xa)+-parseInt(_0x2ea78a(0xea))/0xb+parseInt(_0x2ea78a(0xf2))/0xc;if(_0x16b192===_0x349e9c)break;else _0x598a51['push'](_0x598a51['shift']());}catch(_0x44a810){_0x598a51['push'](_0x598a51['shift']());}}}(a94_0x9d68,0xcf075));import{PRODUCT_CONFIG}from'../constant/product.js';export const LOVRABET_NPM_PACKAGE_NAME=PRODUCT_CONFIG[a94_0x118d3a(0xf0)];export const LOVRABET_SKILL_SOURCE=PRODUCT_CONFIG[a94_0x118d3a(0xe7)];export const NPM_REGISTRY_BASE_URL=PRODUCT_CONFIG[a94_0x118d3a(0xe9)];export const LOVRABET_CLI_CDN_BASE_URL=PRODUCT_CONFIG['cliCdnBaseUrl'];export const LOVRABET_CLI_VERSION_POLICY_URL=LOVRABET_CLI_CDN_BASE_URL+a94_0x118d3a(0xe6);function a94_0x9d68(){const _0xf437e0=['15929320vWzIjQ','2kXAnVn','4818hVuLqP','39eXiEgt','840149EiZWKJ','219028ptrCDw','npmPackageName','4368752TWrNqe','31012776rAhZeq','730qcYIVR','107847nKhdmd','14miXKOS','/dist/lovrabet-cli/config/index.json','skillSource','2350YDAaJi','npmRegistryBaseUrl'];a94_0x9d68=function(){return _0xf437e0;};return a94_0x9d68();}
|
package/lib/constant/domain.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a95_0x4ba867=a95_0x34dd;(function(_0x5e11d4,_0x39d4ca){const _0x419081=a95_0x34dd,_0x2e89a9=_0x5e11d4();while(!![]){try{const _0x274cc7=-parseInt(_0x419081(0x191))/0x1*(-parseInt(_0x419081(0x19a))/0x2)+parseInt(_0x419081(0x1a0))/0x3*(parseInt(_0x419081(0x19b))/0x4)+parseInt(_0x419081(0x199))/0x5*(parseInt(_0x419081(0x1a1))/0x6)+-parseInt(_0x419081(0x19d))/0x7+-parseInt(_0x419081(0x195))/0x8+parseInt(_0x419081(0x1a3))/0x9+-parseInt(_0x419081(0x192))/0xa*(parseInt(_0x419081(0x198))/0xb);if(_0x274cc7===_0x39d4ca)break;else _0x2e89a9['push'](_0x2e89a9['shift']());}catch(_0x5849e4){_0x2e89a9['push'](_0x2e89a9['shift']());}}}(a95_0x17da,0xd21c0));function a95_0x17da(){const _0x41b3ce=['4105696PVZDyP','skill','region','2629cSQbsy','90AIlMXX','4cgRcjL','28qODcQd','runtime','4369092UZjSvV','daily','runtimeDomain','491322gPxXaL','198438nViMNu','serviceDomains','14515038ChZFwl','production','729202CWQXDV','117780seohSJ','userDomain','skillDomain'];a95_0x17da=function(){return _0x41b3ce;};return a95_0x17da();}function a95_0x34dd(_0x10049c,_0xbce834){_0x10049c=_0x10049c-0x190;const _0x17dab0=a95_0x17da();let _0x34ddac=_0x17dab0[_0x10049c];return _0x34ddac;}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(_0x245570){const _0x28f097=a95_0x34dd;customApiDomain=_0x245570?.['apiDomain'],customUserDomain=_0x245570?.[_0x28f097(0x193)],customRuntimeDomain=_0x245570?.[_0x28f097(0x19f)],customSkillDomain=_0x245570?.[_0x28f097(0x194)],activeRegion=_0x245570?.[_0x28f097(0x197)]??DEFAULT_LOVRABET_REGION;}const getActiveRegionDomains=()=>{const _0x1f7341=a95_0x34dd,_0x5c4c7e=OFFICIAL_ROUTING_PROFILES[activeRegion][_0x1f7341(0x1a2)];return isProduction(getEnv())?_0x5c4c7e[_0x1f7341(0x190)]:'daily'in _0x5c4c7e?_0x5c4c7e[_0x1f7341(0x19e)]:_0x5c4c7e[_0x1f7341(0x190)];};export const getUserDomain=()=>customUserDomain||getActiveRegionDomains()['user'];export const getApiDomain=()=>customApiDomain||getActiveRegionDomains()['api'];export const getRuntimeDomain=()=>customRuntimeDomain||getActiveRegionDomains()[a95_0x4ba867(0x19c)];export const getSkillDomain=()=>customSkillDomain||getActiveRegionDomains()[a95_0x4ba867(0x196)];
|
package/lib/constant/env.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a96_0x293a79=a96_0x2f4e;(function(_0x2dfc24,_0x3bee02){const _0x1663de=a96_0x2f4e,_0xc3e60c=_0x2dfc24();while(!![]){try{const _0x457551=parseInt(_0x1663de(0xb3))/0x1*(parseInt(_0x1663de(0xc0))/0x2)+-parseInt(_0x1663de(0xb7))/0x3+-parseInt(_0x1663de(0xb6))/0x4*(parseInt(_0x1663de(0xbc))/0x5)+parseInt(_0x1663de(0xba))/0x6+-parseInt(_0x1663de(0xb9))/0x7*(-parseInt(_0x1663de(0xbd))/0x8)+parseInt(_0x1663de(0xb4))/0x9+-parseInt(_0x1663de(0xb2))/0xa;if(_0x457551===_0x3bee02)break;else _0xc3e60c['push'](_0xc3e60c['shift']());}catch(_0xf78fa5){_0xc3e60c['push'](_0xc3e60c['shift']());}}}(a96_0x2354,0x47b17));import{productEnv}from'../constant/product.js';export const RUNTIME_ENV_VALUES=['production',a96_0x293a79(0xc1),a96_0x293a79(0xbf)];function a96_0x2f4e(_0x18d9cc,_0x3563cb){_0x18d9cc=_0x18d9cc-0xb2;const _0x2354e8=a96_0x2354();let _0x2f4efc=_0x2354e8[_0x18d9cc];return _0x2f4efc;}function a96_0x2354(){const _0x3ee073=['daily','4Fmnkuj','development','7775620UXoulZ','145477HASxjy','2744145YlDyEK','dev','8084IAgYXi','26901juAVdo','production','106652EKJFur','740868WqlauX','ENV','125BIsKwV','216clIOQO','online'];a96_0x2354=function(){return _0x3ee073;};return a96_0x2354();}export function normalizeEnv(_0x4f9950){const _0x10393c=a96_0x293a79;return _0x4f9950===_0x10393c(0xbe)?'production':_0x4f9950;}export function isProduction(_0x4ec2f0){const _0x1c14ae=a96_0x293a79;return normalizeEnv(_0x4ec2f0)===_0x1c14ae(0xb8);}export function isDaily(_0x10051d){return normalizeEnv(_0x10051d)==='daily';}export function isDev(_0xabec1f){const _0x3eab67=a96_0x293a79,_0x3d2deb=normalizeEnv(_0xabec1f);return _0x3d2deb===_0x3eab67(0xc1)||_0x3d2deb===_0x3eab67(0xb5);}let env=normalizeEnv(productEnv(a96_0x293a79(0xbb))||a96_0x293a79(0xb8));export function getEnv(){return env;}export function initEnv(_0x15776f){env=normalizeEnv(_0x15776f);}
|
package/lib/constant/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a97_0x52a1(){const _0x405ac7=['45Btxbzb','pretty','json','906yRLLsS','7iaVerN','1973346nPZTKB','5082495bJRIub','2910kXdxwg','797488ZMjyRK','27yjJykx','569830GtZfIv','848680BeuLGU','184596UoKSOl'];a97_0x52a1=function(){return _0x405ac7;};return a97_0x52a1();}function a97_0x1216(_0x484907,_0x4bdeee){_0x484907=_0x484907-0x87;const _0x52a163=a97_0x52a1();let _0x121649=_0x52a163[_0x484907];return _0x121649;}const a97_0x5c7db7=a97_0x1216;(function(_0x4ddedf,_0x218d78){const _0x3765c6=a97_0x1216,_0x574477=_0x4ddedf();while(!![]){try{const _0x22bfef=parseInt(_0x3765c6(0x87))/0x1+parseInt(_0x3765c6(0x91))/0x2*(-parseInt(_0x3765c6(0x8d))/0x3)+-parseInt(_0x3765c6(0x89))/0x4*(parseInt(_0x3765c6(0x8a))/0x5)+parseInt(_0x3765c6(0x8f))/0x6*(parseInt(_0x3765c6(0x8e))/0x7)+parseInt(_0x3765c6(0x92))/0x8*(-parseInt(_0x3765c6(0x93))/0x9)+parseInt(_0x3765c6(0x88))/0xa+parseInt(_0x3765c6(0x90))/0xb;if(_0x22bfef===_0x218d78)break;else _0x574477['push'](_0x574477['shift']());}catch(_0x12022d){_0x574477['push'](_0x574477['shift']());}}}(a97_0x52a1,0x473f1));export const OUTPUT_FORMAT_VALUES=[a97_0x5c7db7(0x8c),a97_0x5c7db7(0x8b),'compress'];
|
package/lib/constant/product.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a98_0x4e825a=a98_0x576c;(function(_0x11065f,_0x47109b){const _0x268b2d=a98_0x576c,_0x46eb7d=_0x11065f();while(!![]){try{const _0x2f602e=-parseInt(_0x268b2d(0x15b))/0x1+-parseInt(_0x268b2d(0x160))/0x2+-parseInt(_0x268b2d(0x167))/0x3*(parseInt(_0x268b2d(0x161))/0x4)+-parseInt(_0x268b2d(0x163))/0x5*(parseInt(_0x268b2d(0x16d))/0x6)+parseInt(_0x268b2d(0x156))/0x7*(parseInt(_0x268b2d(0x16b))/0x8)+-parseInt(_0x268b2d(0x165))/0x9*(parseInt(_0x268b2d(0x169))/0xa)+-parseInt(_0x268b2d(0x15f))/0xb*(-parseInt(_0x268b2d(0x16c))/0xc);if(_0x2f602e===_0x47109b)break;else _0x46eb7d['push'](_0x46eb7d['shift']());}catch(_0x2832eb){_0x46eb7d['push'](_0x46eb7d['shift']());}}}(a98_0xfdfe,0xbe2cb));export const PRODUCT_CONFIG={'cliBinName':a98_0x4e825a(0x166),'cliDisplayName':a98_0x4e825a(0x168),'npmPackageName':'@lovrabet/lovrabet-cli','skillSource':a98_0x4e825a(0x16e),'internalSkillSource':'git@codeup.aliyun.com:yuntoo/open/lovrabet-runtime-cli.git','globalSkillName':'lovrabet','npmRegistryBaseUrl':a98_0x4e825a(0x164),'cliCdnBaseUrl':a98_0x4e825a(0x155),'envPrefix':a98_0x4e825a(0x15d),'legacyEnvPrefixes':[a98_0x4e825a(0x15c)],'configFileNames':[a98_0x4e825a(0x15e)],'newConfigFileName':'.lovrabet.json','homeDirName':'.lovrabet','logFileName':a98_0x4e825a(0x15a),'invokeSource':'cli:lovrabet-runtime','userCenterDisplayName':'Lovrabet\x20User\x20Center','skipNpxSkillsEnvSuffix':a98_0x4e825a(0x162),'accessKeyCreatePath':a98_0x4e825a(0x159)};function a98_0x576c(_0x468895,_0xedae06){_0x468895=_0x468895-0x155;const _0xfdfe38=a98_0xfdfe();let _0x576ccc=_0xfdfe38[_0x468895];return _0x576ccc;}export function productEnvName(_0x212ea6){const _0x34d6f1=a98_0x4e825a;return PRODUCT_CONFIG[_0x34d6f1(0x157)]+'_'+_0x212ea6;}export function productEnvNames(_0x11651f){const _0x99ca4=a98_0x4e825a;return[productEnvName(_0x11651f),...PRODUCT_CONFIG[_0x99ca4(0x158)][_0x99ca4(0x16a)](_0x5355d5=>_0x5355d5+'_'+_0x11651f)];}export function productEnv(_0x463aec){for(const _0x1495eb of productEnvNames(_0x463aec)){const _0x18a8e7=process.env[_0x1495eb];if(_0x18a8e7!==undefined)return _0x18a8e7;}return undefined;}function a98_0xfdfe(){const _0x50fe4b=['/user/ak','.lovrabet-runtime.log','192886ijXawA','RABETBASE','LOVRABET','.lovrabet.json','1969kGfLuI','2389432fYXGRO','8PVXKNm','SKIP_NPX_SKILLS','373495ZVWhAX','https://registry.npmjs.org','4167oJZeeq','lovrabet','1467423uqFqMV','Lovrabet\x20Runtime\x20CLI','1010gMsMyn','map','831064BLRfAf','223116zYhhND','36iSTiwz','lovrabet/lovrabet-cli','https://g.lovrabet.com','21ITLaXE','envPrefix','legacyEnvPrefixes'];a98_0xfdfe=function(){return _0x50fe4b;};return a98_0xfdfe();}
|
package/lib/constant/region.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x50278d,_0x4f74a5){const _0x2cf968=a99_0x53a4,_0x345b31=_0x50278d();while(!![]){try{const _0xa7310f=parseInt(_0x2cf968(0x81))/0x1+parseInt(_0x2cf968(0x7c))/0x2+parseInt(_0x2cf968(0x82))/0x3+parseInt(_0x2cf968(0x7b))/0x4+parseInt(_0x2cf968(0x89))/0x5*(parseInt(_0x2cf968(0x84))/0x6)+-parseInt(_0x2cf968(0x7e))/0x7*(-parseInt(_0x2cf968(0x79))/0x8)+-parseInt(_0x2cf968(0x83))/0x9*(parseInt(_0x2cf968(0x86))/0xa);if(_0xa7310f===_0x4f74a5)break;else _0x345b31['push'](_0x345b31['shift']());}catch(_0x60d847){_0x345b31['push'](_0x345b31['shift']());}}}(a99_0x5127,0x3bc92));function a99_0x53a4(_0xbb5499,_0x3b9e0a){_0xbb5499=_0xbb5499-0x78;const _0x5127f5=a99_0x5127();let _0x53a40a=_0x5127f5[_0xbb5499];return _0x53a40a;}import{DEFAULT_REGION,ENABLED_REGION_VALUES,REGION_ALIASES,REGION_VALUES}from'../generated/official-routing.js';import{CliErrors}from'../errors.js';function a99_0x5127(){const _0x152cc3=['9762650efZqhh','includes','Available\x20regions:\x20','25mUnKUy','string','join','16zoIHlM','\x22\x20is\x20not\x20currently\x20available.','730956RyPWkM','829888yeoLBF','validation','888069eUlkrX','Run\x20`lovrabet\x20config\x20init`\x20to\x20restore\x20the\x20global\x20country/region\x20configuration.','Invalid\x20region\x20value:\x20expected\x20a\x20string,\x20received\x20','36157CMDAnc','308604InVNFa','9GtFcrb','276846bSHNjc','Region\x20\x22'];a99_0x5127=function(){return _0x152cc3;};return a99_0x5127();}export const LOVRABET_REGION_VALUES=REGION_VALUES;export const ENABLED_LOVRABET_REGION_VALUES=ENABLED_REGION_VALUES;export const DEFAULT_LOVRABET_REGION=DEFAULT_REGION;export function isLovrabetRegion(_0x185c42){const _0x45c0e4=a99_0x53a4;return typeof _0x185c42===_0x45c0e4(0x8a)&&LOVRABET_REGION_VALUES[_0x45c0e4(0x87)](_0x185c42);}export function isEnabledLovrabetRegion(_0xa7329c){const _0x1a08bf=a99_0x53a4;return typeof _0xa7329c==='string'&&ENABLED_LOVRABET_REGION_VALUES[_0x1a08bf(0x87)](_0xa7329c);}export function normalizeLovrabetRegion(_0x3a07fc){const _0x225d23=a99_0x53a4;if(_0x3a07fc===undefined||_0x3a07fc===null||_0x3a07fc==='')return DEFAULT_LOVRABET_REGION;if(typeof _0x3a07fc!==_0x225d23(0x8a))throw CliErrors[_0x225d23(0x7d)](_0x225d23(0x80)+typeof _0x3a07fc+'.',_0x225d23(0x7f));const _0x11d991=REGION_ALIASES[_0x3a07fc]??_0x3a07fc;if(isEnabledLovrabetRegion(_0x11d991))return _0x11d991;throw CliErrors[_0x225d23(0x7d)](_0x225d23(0x85)+_0x3a07fc+_0x225d23(0x7a),_0x225d23(0x88)+ENABLED_LOVRABET_REGION_VALUES[_0x225d23(0x78)](',\x20')+'.\x20Run\x20`lovrabet\x20config\x20init`\x20to\x20repair\x20the\x20global\x20configuration.');}
|
package/lib/constant/risk.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a100_0x49bd18=a100_0x8456;function a100_0x8456(_0x34be54,_0x27401e){_0x34be54=_0x34be54-0x1c1;const _0x5cce2e=a100_0x5cce();let _0x84564b=_0x5cce2e[_0x34be54];return _0x84564b;}function a100_0x5cce(){const _0x146be0=['988302mnMrpD','192390hqoDjJ','high-risk-write','1238616Ogjype','2751925JnNSxz','18mcRbTZ','write','28ijNOOm','read','506391EziXBK','132YriIxp','144uzAzJL','324hAwZVa','63555OangZO','22290qzYKli'];a100_0x5cce=function(){return _0x146be0;};return a100_0x5cce();}(function(_0x1b5943,_0x274ff4){const _0xa8f9eb=a100_0x8456,_0x176597=_0x1b5943();while(!![]){try{const _0x2b3f69=-parseInt(_0xa8f9eb(0x1c7))/0x1+parseInt(_0xa8f9eb(0x1c3))/0x2*(-parseInt(_0xa8f9eb(0x1cc))/0x3)+parseInt(_0xa8f9eb(0x1c8))/0x4*(-parseInt(_0xa8f9eb(0x1cb))/0x5)+parseInt(_0xa8f9eb(0x1cd))/0x6*(-parseInt(_0xa8f9eb(0x1c5))/0x7)+-parseInt(_0xa8f9eb(0x1c1))/0x8+parseInt(_0xa8f9eb(0x1ca))/0x9*(-parseInt(_0xa8f9eb(0x1ce))/0xa)+-parseInt(_0xa8f9eb(0x1c2))/0xb*(-parseInt(_0xa8f9eb(0x1c9))/0xc);if(_0x2b3f69===_0x274ff4)break;else _0x176597['push'](_0x176597['shift']());}catch(_0x2233ac){_0x176597['push'](_0x176597['shift']());}}}(a100_0x5cce,0x7ad25));export const RISK_LEVEL_VALUES=[a100_0x49bd18(0x1c6),a100_0x49bd18(0x1c4),a100_0x49bd18(0x1cf)];
|
package/lib/constant/url.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x1d255e,_0x544378){const _0x743480=a101_0x44e3,_0x52a2dc=_0x1d255e();while(!![]){try{const _0x207d72=parseInt(_0x743480(0x152))/0x1+-parseInt(_0x743480(0x151))/0x2+parseInt(_0x743480(0x156))/0x3+parseInt(_0x743480(0x153))/0x4+parseInt(_0x743480(0x154))/0x5*(-parseInt(_0x743480(0x150))/0x6)+parseInt(_0x743480(0x14f))/0x7+-parseInt(_0x743480(0x155))/0x8;if(_0x207d72===_0x544378)break;else _0x52a2dc['push'](_0x52a2dc['shift']());}catch(_0x145900){_0x52a2dc['push'](_0x52a2dc['shift']());}}}(a101_0x132f,0x28e46));import{PRODUCT_CONFIG}from'../constant/product.js';import{OFFICIAL_ROUTING_PROFILES}from'../generated/official-routing.js';import{DEFAULT_LOVRABET_REGION}from'../constant/region.js';function a101_0x44e3(_0x10d0f5,_0x529630){_0x10d0f5=_0x10d0f5-0x14f;const _0x132f19=a101_0x132f();let _0x44e388=_0x132f19[_0x10d0f5];return _0x44e388;}export function getUserAccessKeyCreateUrl(_0x52f2e3=DEFAULT_LOVRABET_REGION){const _0x41243f=a101_0x44e3,_0x56395b=OFFICIAL_ROUTING_PROFILES[_0x52f2e3][_0x41243f(0x158)]['production'][_0x41243f(0x157)];return''+_0x56395b+PRODUCT_CONFIG['accessKeyCreatePath'];}export const USER_ACCESS_KEY_CREATE_URL=getUserAccessKeyCreateUrl();function a101_0x132f(){const _0x23d3f7=['serviceDomains','1468782aJhYFG','6BFTiTV','148248wRcFrn','247707hOvJFg','980728xGFKsn','1665105CSxAiu','1427904abscpM','151236VWSCMw','user'];a101_0x132f=function(){return _0x23d3f7;};return a101_0x132f();}
|