@lovrabet/lovrabet-cli 2.3.2-beta.1 → 2.3.2-beta.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/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
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a81_0x107fb0=a81_0xa1b3;(function(_0x2c9265,_0x52c505){const _0x21496c=a81_0xa1b3,_0x1491af=_0x2c9265();while(!![]){try{const _0x3f41ed=parseInt(_0x21496c(0x1ca))/0x1*(parseInt(_0x21496c(0x1ce))/0x2)+parseInt(_0x21496c(0x1d5))/0x3+parseInt(_0x21496c(0x1cf))/0x4+parseInt(_0x21496c(0x1db))/0x5+parseInt(_0x21496c(0x1cd))/0x6+parseInt(_0x21496c(0x1dc))/0x7+-parseInt(_0x21496c(0x1d2))/0x8;if(_0x3f41ed===_0x52c505)break;else _0x1491af['push'](_0x1491af['shift']());}catch(_0x16ee1b){_0x1491af['push'](_0x1491af['shift']());}}}(a81_0x37c0,0x32d14));function a81_0xa1b3(_0x839105,_0x175d7f){_0x839105=_0x839105-0x1ca;const _0x37c0d0=a81_0x37c0();let _0xa1b3f5=_0x37c0d0[_0x839105];return _0xa1b3f5;}import{getSqlQueryInfo}from'../../core/api-client.js';import{getDbName}from'../../core/db-resolver.js';function a81_0x37c0(){const _0x45c444=['verbose','902451JYJATc','appCode','dbId','detail','sqlContent','bool','14725lHwGiO','1409219VZAtyo','3bapYQe','sqlCode','Get\x20custom\x20SQL\x20query\x20details\x20by\x20sqlCode','743838OpfRUQ','217846IRUmwd','1128148ibJrBy','sqlName','sqlcode','8237680knTmWF','str'];a81_0x37c0=function(){return _0x45c444;};return a81_0x37c0();}import{SQLCODE_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';export const sqlDetail={'service':'sql','command':a81_0x107fb0(0x1d8),'description':a81_0x107fb0(0x1cc),'risk':'read','flags':[SQLCODE_FLAG,VERBOSE_FLAG],async 'execute'(_0x160e0f){const _0x12250d=a81_0x107fb0,_0x52f03b=await getSqlQueryInfo(_0x160e0f[_0x12250d(0x1d6)],_0x160e0f[_0x12250d(0x1d3)](_0x12250d(0x1d1))),_0x4fff84=_0x160e0f[_0x12250d(0x1da)](_0x12250d(0x1d4));if(_0x4fff84)return{'ok':!![],'data':_0x52f03b};const _0x35de73=_0x52f03b[_0x12250d(0x1d7)]?await getDbName(_0x160e0f[_0x12250d(0x1d6)],_0x52f03b[_0x12250d(0x1d7)]):undefined;return{'ok':!![],'data':{'sqlCode':_0x52f03b[_0x12250d(0x1cb)],'sqlName':_0x52f03b[_0x12250d(0x1d0)],'db':_0x35de73?_0x35de73+'\x20('+_0x52f03b[_0x12250d(0x1d7)]+')':_0x52f03b[_0x12250d(0x1d7)]??'','sqlContent':_0x52f03b[_0x12250d(0x1d9)]??''}};}};
|
package/lib/commands/sql/exec.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a82_0x251a81=a82_0x7455;(function(_0x17d5dd,_0x9ae80){const _0x4a379d=a82_0x7455,_0x2a75f9=_0x17d5dd();while(!![]){try{const _0x3d08d1=parseInt(_0x4a379d(0x12e))/0x1+parseInt(_0x4a379d(0x121))/0x2+-parseInt(_0x4a379d(0x131))/0x3+parseInt(_0x4a379d(0x123))/0x4+-parseInt(_0x4a379d(0x128))/0x5*(-parseInt(_0x4a379d(0x122))/0x6)+parseInt(_0x4a379d(0x126))/0x7*(-parseInt(_0x4a379d(0x12a))/0x8)+-parseInt(_0x4a379d(0x125))/0x9;if(_0x3d08d1===_0x9ae80)break;else _0x2a75f9['push'](_0x2a75f9['shift']());}catch(_0x4fd44f){_0x2a75f9['push'](_0x2a75f9['shift']());}}}(a82_0x4ac7,0x8b4af));function a82_0x4ac7(){const _0xe1c167=['3133374DOzyJm','1432264nvipPy','exec','6288300FNYLFv','7qiUPTi','sql','5HwAtGB','read','2054296MaKhme','now','execSuccess','sqlcode','467737WfzWCo','str','SQL\x20execution\x20failed','2416413hcuIcU','isArray','params','\x20row(s)\x20in\x20','length','Execute\x20a\x20custom\x20SQL\x20query\x20by\x20sqlCode','Returned\x20','1966938DBeXVz'];a82_0x4ac7=function(){return _0xe1c167;};return a82_0x4ac7();}import{executeSdkSql}from'../../core/sdk-client.js';import{SQLCODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';import{parseJsonParams}from'../../utils/params.js';function a82_0x7455(_0x415924,_0x5399c0){_0x415924=_0x415924-0x120;const _0x4ac75e=a82_0x4ac7();let _0x745572=_0x4ac75e[_0x415924];return _0x745572;}export const sqlExec={'service':a82_0x251a81(0x127),'command':a82_0x251a81(0x124),'description':a82_0x251a81(0x136),'risk':a82_0x251a81(0x129),'flags':[SQLCODE_FLAG,PARAMS_FLAG],async 'execute'(_0x266587){const _0x522fcc=a82_0x251a81,_0x4fcef8=parseJsonParams(_0x266587[_0x522fcc(0x12f)](_0x522fcc(0x133))),_0x55fb02=Date[_0x522fcc(0x12b)](),_0x241b8f=await executeSdkSql(_0x266587[_0x522fcc(0x12f)](_0x522fcc(0x12d)),_0x4fcef8),_0x4e0416=Date[_0x522fcc(0x12b)]()-_0x55fb02,_0x5d29f5=_0x241b8f?.['execResult']??_0x241b8f,_0x39ce81=_0x241b8f?.[_0x522fcc(0x12c)]??!![];if(!_0x39ce81)return{'ok':![],'data':{'error':_0x241b8f?.['execError']||_0x522fcc(0x130),'elapsed':_0x4e0416},'message':'SQL\x20execution\x20failed'};const _0x203af0=Array[_0x522fcc(0x132)](_0x5d29f5)?_0x5d29f5:[];return{'ok':!![],'data':{'rows':_0x203af0,'rowCount':_0x203af0[_0x522fcc(0x135)],'elapsed':_0x4e0416},'message':_0x522fcc(0x120)+_0x203af0['length']+_0x522fcc(0x134)+_0x4e0416+'ms'};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x1010a9,_0x26dd04){const _0x3e8a7b=a83_0x1f54,_0x12ceac=_0x1010a9();while(!![]){try{const _0x7359a5=parseInt(_0x3e8a7b(0xb3))/0x1+parseInt(_0x3e8a7b(0xb8))/0x2*(parseInt(_0x3e8a7b(0xb5))/0x3)+parseInt(_0x3e8a7b(0xb4))/0x4+parseInt(_0x3e8a7b(0xb6))/0x5+-parseInt(_0x3e8a7b(0xb2))/0x6+parseInt(_0x3e8a7b(0xba))/0x7+-parseInt(_0x3e8a7b(0xb7))/0x8*(parseInt(_0x3e8a7b(0xb9))/0x9);if(_0x7359a5===_0x26dd04)break;else _0x12ceac['push'](_0x12ceac['shift']());}catch(_0x5133ab){_0x12ceac['push'](_0x12ceac['shift']());}}}(a83_0x2cc9,0x7364b));import{sqlDetail}from'../../commands/sql/detail.js';function a83_0x1f54(_0x8fe24,_0x389c39){_0x8fe24=_0x8fe24-0xb2;const _0x2cc9f9=a83_0x2cc9();let _0x1f543a=_0x2cc9f9[_0x8fe24];return _0x1f543a;}import{sqlExec}from'../../commands/sql/exec.js';function a83_0x2cc9(){const _0x46dfaf=['50NXSqrs','18EyxUzM','5154555MfhYOx','2649750SDcQRX','491983mKMYbL','3777580zGeEQe','92847iTKxZu','3646320XfuXCx','11045824zRwGPV'];a83_0x2cc9=function(){return _0x46dfaf;};return a83_0x2cc9();}export const sqlDefinitions=[sqlDetail,sqlExec];
|
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
|
+
const a84_0x26b283=a84_0x3d8e;(function(_0x2fe3b0,_0x3ebc01){const _0x98b985=a84_0x3d8e,_0x55b6a0=_0x2fe3b0();while(!![]){try{const _0x3e4546=-parseInt(_0x98b985(0x13d))/0x1+parseInt(_0x98b985(0x136))/0x2*(-parseInt(_0x98b985(0x108))/0x3)+-parseInt(_0x98b985(0x14a))/0x4+parseInt(_0x98b985(0x153))/0x5*(parseInt(_0x98b985(0x141))/0x6)+parseInt(_0x98b985(0x148))/0x7+parseInt(_0x98b985(0x105))/0x8+parseInt(_0x98b985(0x11b))/0x9;if(_0x3e4546===_0x3ebc01)break;else _0x55b6a0['push'](_0x55b6a0['shift']());}catch(_0x4fcf5c){_0x55b6a0['push'](_0x55b6a0['shift']());}}}(a84_0x208d,0x1f0d6));import{fileURLToPath}from'node:url';import{basename,dirname,relative,win32}from'node:path';import{execaSync}from'execa';import a84_0x1815a2 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{getCliVersion}from'../utils/version.js';import{inspectInstalledBuiltinSkillVersion,installBuiltinSkill}from'../skills/builtin-skill.js';function a84_0x3d8e(_0x307d32,_0x57e902){_0x307d32=_0x307d32-0xf6;const _0x208d4b=a84_0x208d();let _0x3d8ed5=_0x208d4b[_0x307d32];return _0x3d8ed5;}const updateFlags=[{'name':'latest','type':a84_0x26b283(0xf7),'description':a84_0x26b283(0x129),'default':![]},{'name':'beta','type':a84_0x26b283(0xf7),'description':a84_0x26b283(0x103),'default':![]},{'name':a84_0x26b283(0x156),'type':a84_0x26b283(0x123),'description':a84_0x26b283(0x13c)}];function getRequestedVersion(_0x3376cc){const _0x4eda72=a84_0x26b283,_0x26a2ad=_0x3376cc[_0x4eda72(0x12d)](_0x4eda72(0x156))[_0x4eda72(0x102)]();if(_0x26a2ad)return _0x26a2ad;return String(_0x3376cc[_0x4eda72(0x12b)]?.[0x0]??'')[_0x4eda72(0x102)]();}async function validateUpdateFlags(_0x450a22){const _0x34f2dd=a84_0x26b283,_0x4e37c3=getRequestedVersion(_0x450a22),_0x397c2c=[_0x450a22[_0x34f2dd(0x135)](_0x34f2dd(0x12f))?_0x34f2dd(0x12f):'',_0x450a22[_0x34f2dd(0x135)](_0x34f2dd(0x14b))?_0x34f2dd(0x14b):'',_0x4e37c3?'version':''][_0x34f2dd(0x142)](Boolean);if(_0x397c2c[_0x34f2dd(0x14c)]>0x1)throw CliErrors[_0x34f2dd(0x10f)](_0x34f2dd(0x134),_0x34f2dd(0x150));if(_0x4e37c3&&!a84_0x1815a2[_0x34f2dd(0x121)](_0x4e37c3))throw CliErrors[_0x34f2dd(0x10f)](_0x34f2dd(0x115)+_0x4e37c3,_0x34f2dd(0x104));}async function fetchNpmDistTags(){const _0x4f7e70=a84_0x26b283;try{const _0x1f2159=NPM_REGISTRY_BASE_URL+'/-/package/'+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+'/dist-tags',_0x116fb6=await fetch(_0x1f2159,{'signal':AbortSignal[_0x4f7e70(0x137)](0x2710)});if(!_0x116fb6['ok'])return null;const _0x3e2756=await _0x116fb6[_0x4f7e70(0x13b)]();if(!_0x3e2756||typeof _0x3e2756!=='object')return null;return Object['fromEntries'](Object[_0x4f7e70(0x11e)](_0x3e2756)['filter'](([,_0x9479d4])=>typeof _0x9479d4===_0x4f7e70(0x123)&&_0x9479d4[_0x4f7e70(0x102)]())[_0x4f7e70(0x114)](([_0x1fec47,_0x25d6ce])=>[_0x1fec47,String(_0x25d6ce)['trim']()]));}catch{return null;}}async function resolveTargetVersion(_0x3ecd87){const _0x3ff0ae=a84_0x26b283,_0x3b5750=getRequestedVersion(_0x3ecd87);if(_0x3b5750)return{'version':_0x3b5750,'source':_0x3ff0ae(0x156)};const _0x23b05a=_0x3ecd87[_0x3ff0ae(0x135)](_0x3ff0ae(0x14b))?_0x3ff0ae(0x14b):'latest',_0x26cea7=await fetchNpmDistTags(),_0x44d428=_0x26cea7?.[_0x23b05a];if(!_0x44d428)return null;return{'version':_0x44d428,'source':_0x23b05a};}function shouldInstallTarget(_0x605cca,_0x581cfa){const _0x5717ad=a84_0x26b283;if(_0x581cfa[_0x5717ad(0x132)]===_0x5717ad(0x156)||_0x581cfa[_0x5717ad(0x132)]===_0x5717ad(0x14b))return!a84_0x1815a2['eq'](_0x605cca,_0x581cfa[_0x5717ad(0x156)]);return a84_0x1815a2['lt'](_0x605cca,_0x581cfa[_0x5717ad(0x156)]);}export function installCliPackage(_0x435f86,_0x451e79,_0x47bea6=resolveCurrentCliNpmPrefix()){const _0x196bd2=a84_0x26b283,_0x37916c=LOVRABET_NPM_PACKAGE_NAME+'@'+_0x435f86,_0x338832=[_0x196bd2(0x13a),'-g',_0x37916c],_0x83b281=runNpmInstall(_0x338832,_0x451e79);if(_0x83b281['ok']||!isNpmPrefixPermissionError(_0x83b281[_0x196bd2(0x109)]))return _0x83b281;if(!_0x47bea6||_0x83b281['error']?.[_0x196bd2(0x10d)]()[_0x196bd2(0x147)](_0x47bea6[_0x196bd2(0x10d)]()))return _0x83b281;return console['warn'](_0x196bd2(0x118)+_0x47bea6),runNpmInstall([..._0x338832,_0x196bd2(0x152),_0x47bea6],_0x451e79);}export function resolveCurrentCliNpmPrefix(_0x18e94a=fileURLToPath(import.meta.url),_0x413d4a=process[a84_0x26b283(0x13e)]){const _0x1979ef=a84_0x26b283,_0x12069c=_0x413d4a===_0x1979ef(0xfd)?win32:{'basename':basename,'dirname':dirname,'relative':relative},_0x31cd3=_0x12069c[_0x1979ef(0x145)](_0x12069c[_0x1979ef(0x145)](_0x12069c['dirname'](_0x18e94a))),_0x55e577=_0x413d4a==='win32'?_0x1979ef(0x112):_0x1979ef(0x151);let _0x3be228=_0x12069c[_0x1979ef(0x145)](_0x31cd3);while(!![]){if(_0x12069c[_0x1979ef(0x155)](_0x3be228)===_0x1979ef(0x11a)&&_0x12069c[_0x1979ef(0xfc)](_0x3be228,_0x31cd3)===_0x55e577){const _0x3ed3b2=_0x12069c[_0x1979ef(0x145)](_0x3be228);return _0x12069c[_0x1979ef(0x155)](_0x3ed3b2)===_0x1979ef(0x12a)?_0x12069c[_0x1979ef(0x145)](_0x3ed3b2):_0x3ed3b2;}const _0x65d88e=_0x12069c[_0x1979ef(0x145)](_0x3be228);if(_0x65d88e===_0x3be228)return null;_0x3be228=_0x65d88e;}}function runNpmInstall(_0x1dc9b7,_0x5ed841){const _0x505780=a84_0x26b283;console[_0x505780(0x127)]('*\x20'+['npm',..._0x1dc9b7][_0x505780(0x133)]('\x20'));const _0x2a8e6b=execaSync('npm',_0x1dc9b7,{'cwd':process[_0x505780(0x126)](),'stdio':_0x505780(0xff),'env':process.env,'extendEnv':![],'shell':![],'reject':![]}),_0x444429=_0x2a8e6b[_0x505780(0x10c)]?String(_0x2a8e6b[_0x505780(0x10c)])['trim']():'',_0x40f49b=_0x2a8e6b[_0x505780(0x11c)]?String(_0x2a8e6b[_0x505780(0x11c)])[_0x505780(0x102)]():'';if(!_0x5ed841){if(_0x40f49b)process['stdout']['write'](_0x40f49b+'\x0a');if(_0x444429)process[_0x505780(0x10c)][_0x505780(0x106)](_0x444429+'\x0a');}if(_0x2a8e6b['exitCode']===0x0)return{'ok':!![]};const _0x54e423=_0x444429||_0x40f49b||_0x2a8e6b[_0x505780(0xfb)]||'exit\x20'+(_0x2a8e6b['exitCode']??_0x505780(0x130));return{'ok':![],'error':_0x54e423};}function isNpmPrefixPermissionError(_0xb5733c){const _0x898b8f=a84_0x26b283;return Boolean(_0xb5733c&&/\b(?:EACCES|EPERM)\b/[_0x898b8f(0x12c)](_0xb5733c));}function repairCurrentBuiltinSkill(_0x32a9a5){const _0x228775=a84_0x26b283;console[_0x228775(0x127)](_0x228775(0x131));const _0xd5ed73=installBuiltinSkill({'stdio':_0x32a9a5?_0x228775(0xff):_0x228775(0x140)});if(_0xd5ed73['ok']){console[_0x228775(0x127)](_0x228775(0x117)+_0xd5ed73[_0x228775(0x14e)]+'\x20is\x20current.');return;}throw CliErrors['apiError']('CLI\x20Built-in\x20Skill\x20repair\x20failed\x20['+(_0xd5ed73[_0x228775(0x11d)]||_0x228775(0x14f))+']:\x20'+(_0xd5ed73['error']||_0x228775(0x130)),_0x228775(0x116)+_0xd5ed73[_0x228775(0x144)]+_0x228775(0x138)+CLI_BIN_NAME+_0x228775(0x149));}function verifyUpdatedBuiltinSkill(_0x35214c){const _0x2830a8=a84_0x26b283;console[_0x2830a8(0x127)](_0x2830a8(0x131));const _0x6ec5f3=inspectInstalledBuiltinSkillVersion(_0x35214c);if(_0x6ec5f3[_0x2830a8(0xf9)]===_0x2830a8(0x143)){console[_0x2830a8(0x127)](_0x2830a8(0x117)+_0x35214c+_0x2830a8(0xf6));return;}const _0x4d3e95=_0x6ec5f3['skillVersion']?_0x2830a8(0x139)+_0x35214c+_0x2830a8(0x10e)+_0x6ec5f3['skillVersion']:_0x2830a8(0x139)+_0x35214c+',\x20state\x20'+_0x6ec5f3['state'],_0x16b48b=_0x6ec5f3[_0x2830a8(0x125)]?_0x4d3e95+':\x20'+_0x6ec5f3['reason']:_0x4d3e95;throw CliErrors[_0x2830a8(0x154)](_0x2830a8(0x124)+_0x35214c+',\x20but\x20Built-in\x20Skill\x20verification\x20failed:\x20'+_0x16b48b,_0x2830a8(0x116)+_0x6ec5f3['repairCommand']+_0x2830a8(0x138)+CLI_BIN_NAME+_0x2830a8(0x149));}async function execute(_0xb0e665){const _0x3ecda0=a84_0x26b283;await validateUpdateFlags(_0xb0e665);const _0x49ae83=getCliVersion();console[_0x3ecda0(0x127)](_0x3ecda0(0xfa)+_0x49ae83),console[_0x3ecda0(0x127)](_0x3ecda0(0x111));const _0x3997de=await resolveTargetVersion(_0xb0e665);if(!_0x3997de){const _0x493d91=_0xb0e665[_0x3ecda0(0x135)](_0x3ecda0(0x14b))?_0x3ecda0(0x14b):_0x3ecda0(0x12f),_0x44728e=_0x3ecda0(0x10a)+_0x493d91+_0x3ecda0(0x113);throw CliErrors['apiError'](_0x44728e,'Run:\x20npm\x20install\x20-g\x20'+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x493d91);}const _0x5207ae=[_0x49ae83,_0x3997de['version']][_0x3ecda0(0x14d)](_0x4cdfa0=>!a84_0x1815a2['valid'](_0x4cdfa0));if(_0x5207ae){const _0x4f5504=_0x3ecda0(0x146)+_0x5207ae+'.';throw CliErrors['apiError'](_0x4f5504,_0x3ecda0(0x12e)+LOVRABET_NPM_PACKAGE_NAME+_0x3ecda0(0x110));}if(!shouldInstallTarget(_0x49ae83,_0x3997de)){const _0x3f1ef2=_0x3997de[_0x3ecda0(0x132)]===_0x3ecda0(0x156)?_0x3ecda0(0x128)+_0x3997de[_0x3ecda0(0x156)]+').':_0x3ecda0(0x119)+_0x3997de[_0x3ecda0(0x156)]+').';return console[_0x3ecda0(0x127)](_0x3f1ef2),repairCurrentBuiltinSkill(_0xb0e665[_0x3ecda0(0x10b)]),{'ok':!![]};}console['log'](_0x3ecda0(0x107)+LOVRABET_NPM_PACKAGE_NAME+':\x20'+_0x49ae83+_0x3ecda0(0x101)+_0x3997de[_0x3ecda0(0x156)]);const _0x3139f8=installCliPackage(_0x3997de[_0x3ecda0(0x156)],_0xb0e665[_0x3ecda0(0x10b)]);if(!_0x3139f8['ok']){const _0x38b6a1=_0x3ecda0(0x100)+(_0x3139f8[_0x3ecda0(0x109)]||_0x3ecda0(0x130));throw CliErrors[_0x3ecda0(0x154)](_0x38b6a1,'Run:\x20npm\x20install\x20-g\x20'+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x3997de['version']);}return console[_0x3ecda0(0x127)]('Updated\x20to\x20v'+_0x3997de[_0x3ecda0(0x156)]+'.'),console[_0x3ecda0(0x127)](_0x3ecda0(0x11f)),verifyUpdatedBuiltinSkill(_0x3997de['version']),{'ok':!![]};}export const updateDefinition={'service':a84_0x26b283(0xfe),'command':a84_0x26b283(0xf8),'description':a84_0x26b283(0x122)+CLI_BIN_NAME+a84_0x26b283(0x120),'risk':a84_0x26b283(0x13f),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};function a84_0x208d(){const _0x551176=['find','skillVersion','INSTALL_FAILED','Choose\x20exactly\x20one\x20target:\x20--latest,\x20--beta,\x20or\x20--version\x20<version>.','@lovrabet/lovrabet-cli','--prefix','26530oYEiuY','apiError','basename','version','\x20is\x20current.','boolean','run','state','Current\x20version:\x20','shortMessage','relative','win32','update','pipe','Update\x20failed:\x20','\x20->\x20','trim','Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','Use\x20a\x20full\x20semver\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.','134752FnPtUv','write','Updating\x20','6093RAqVvg','error','Unable\x20to\x20resolve\x20','nonInteractive','stderr','toLowerCase',',\x20found\x20','validation','\x20dist-tags,\x20then\x20retry.','Checking\x20npm\x20dist-tags...','@lovrabet\x5clovrabet-cli','\x20version\x20from\x20npm.','map','Invalid\x20version:\x20','Run:\x20','\x20\x20CLI\x20Built-in\x20Skill\x20','Global\x20npm\x20prefix\x20is\x20not\x20writable;\x20retrying\x20in\x20the\x20current\x20CLI\x20Node\x20environment:\x20','Already\x20up\x20to\x20date\x20(v','node_modules','836856TtkiIg','stdout','code','entries','\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.','\x20CLI\x20from\x20npm','valid','Update\x20the\x20','string','CLI\x20updated\x20to\x20v','reason','cwd','log','Already\x20on\x20requested\x20version\x20(v','Install\x20the\x20version\x20from\x20npm\x20latest\x20dist-tag','lib','args','test','str','Run:\x20npm\x20view\x20','latest','unknown','Checking\x20CLI\x20Built-in\x20Skill...','source','join','--latest,\x20--beta,\x20and\x20version\x20cannot\x20be\x20used\x20together.','bool','12jignlJ','timeout',',\x20then\x20verify\x20with:\x20','expected\x20','install','json','Install\x20a\x20specific\x20CLI\x20version','136957kxrVMm','platform','read','inherit','282VniALZ','filter','current','repairCommand','dirname','Version\x20comparison\x20failed:\x20','includes','967694QgSVYk','\x20doctor','884476rwIcsg','beta','length'];a84_0x208d=function(){return _0x551176;};return a84_0x208d();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a85_0x125b(){const _0x48ed67=['provider','dingtalk','account-id','57VSlucU','bind','8708628mwRTxN','Bind\x20the\x20current\x20platform\x20user\x20to\x20an\x20external\x20provider\x20account','Pass\x20the\x20external\x20account\x20ID\x20for\x20the\x20selected\x20provider.','string','The\x20current\x20binding\x20is\x20not\x20exposed\x20by\x20the\x20server;\x20before\x20is\x20unavailable.','8178423CjpIiH','10SdnCEF','External\x20account\x20provider','External\x20account\x20binding\x20was\x20not\x20confirmed.','apiError','7049TTTwmU','152936xaXKjU','join','Binds\x20the\x20platform\x20user\x20of\x20the\x20current\x20AccessKey\x20to\x20the\x20given\x20collaboration-provider\x20account.\x20An\x20existing\x20bind\x20for\x20the\x20same\x20provider\x20may\x20be\x20replaced.','POST','(empty)','toLowerCase','Pass\x20one\x20of:\x20','2517849TFedzd','Unsupported\x20provider:\x20','--account-id\x20cannot\x20be\x20empty.','1fVVMDB','write','5368UGpaHA','user-account','1410dZFVDC','includes','19026ombdbG','Bound\x20current\x20user\x20to\x20external\x20provider\x20account.','trim','validation','174152sknRSg'];a85_0x125b=function(){return _0x48ed67;};return a85_0x125b();}function a85_0x41bc(_0x8a434e,_0x224038){_0x8a434e=_0x8a434e-0xd6;const _0x125bf9=a85_0x125b();let _0x41bc3e=_0x125bf9[_0x8a434e];return _0x41bc3e;}const a85_0x100faa=a85_0x41bc;(function(_0x4cc6cc,_0x28c0a2){const _0x1e2a5f=a85_0x41bc,_0xc5f385=_0x4cc6cc();while(!![]){try{const _0x5454f0=parseInt(_0x1e2a5f(0xee))/0x1*(-parseInt(_0x1e2a5f(0xf8))/0x2)+-parseInt(_0x1e2a5f(0xd7))/0x3*(parseInt(_0x1e2a5f(0xe4))/0x4)+-parseInt(_0x1e2a5f(0xf2))/0x5*(-parseInt(_0x1e2a5f(0xf4))/0x6)+-parseInt(_0x1e2a5f(0xe3))/0x7*(-parseInt(_0x1e2a5f(0xf0))/0x8)+parseInt(_0x1e2a5f(0xeb))/0x9*(-parseInt(_0x1e2a5f(0xdf))/0xa)+-parseInt(_0x1e2a5f(0xde))/0xb+parseInt(_0x1e2a5f(0xd9))/0xc;if(_0x5454f0===_0x28c0a2)break;else _0xc5f385['push'](_0xc5f385['shift']());}catch(_0x278ad7){_0xc5f385['push'](_0xc5f385['shift']());}}}(a85_0x125b,0x7006e));import{bindExternalUserAccount,USER_ACCOUNT_BIND_PATH}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const CURRENT_BINDING_WARNING=a85_0x100faa(0xdd),SUPPORTED_PROVIDERS=[a85_0x100faa(0xfa)];function readBindingInput(_0x57b576){const _0x3063dc=a85_0x100faa,_0x8d5108=_0x57b576['str'](_0x3063dc(0xf9))['trim']()[_0x3063dc(0xe9)]();if(!SUPPORTED_PROVIDERS[_0x3063dc(0xf3)](_0x8d5108))throw CliErrors[_0x3063dc(0xf7)](_0x3063dc(0xec)+(_0x8d5108||_0x3063dc(0xe8))+'.',_0x3063dc(0xea)+SUPPORTED_PROVIDERS[_0x3063dc(0xe5)](',\x20')+'.');const _0x28496d=_0x57b576['str'](_0x3063dc(0xd6))[_0x3063dc(0xf6)]();if(!_0x28496d)throw CliErrors['validation'](_0x3063dc(0xed),_0x3063dc(0xdb));return{'provider':_0x8d5108,'accountId':_0x28496d};}function buildBindingData(_0xef19b7,_0x1cf309,_0x2f37d2){const _0x5bbc71=a85_0x100faa;return{'operation':_0x5bbc71(0xd8),'selector':{'provider':_0xef19b7,'accountId':_0x1cf309},'before':null,'after':{'provider':_0xef19b7,'accountId':_0x1cf309,'bound':!![]},'dryRun':_0x2f37d2,'warnings':[CURRENT_BINDING_WARNING]};}export const bindUserAccount={'service':a85_0x100faa(0xf1),'command':a85_0x100faa(0xd8),'description':a85_0x100faa(0xda),'risk':a85_0x100faa(0xef),'confirmationDescription':a85_0x100faa(0xe6),'requiresAuth':!![],'requiresAppCode':![],'flags':[{'name':a85_0x100faa(0xf9),'type':a85_0x100faa(0xdc),'required':!![],'enum':[...SUPPORTED_PROVIDERS],'description':a85_0x100faa(0xe0)},{'name':a85_0x100faa(0xd6),'type':a85_0x100faa(0xdc),'required':!![],'description':'External\x20account\x20ID\x20for\x20the\x20selected\x20provider'}],async 'validate'(_0x34eabb){readBindingInput(_0x34eabb);},async 'dryRun'(_0x198186){const _0x2d01c3=a85_0x100faa,{provider:_0x2b2dd2,accountId:_0x4dc04b}=readBindingInput(_0x198186);return{...buildBindingData(_0x2b2dd2,_0x4dc04b,!![]),'method':_0x2d01c3(0xe7),'url':USER_ACCOUNT_BIND_PATH,'body':{'provider':_0x2b2dd2,'accountId':_0x4dc04b}};},async 'execute'(_0x2e1fbc){const _0x4e99d8=a85_0x100faa,{provider:_0x23c06b,accountId:_0x2668da}=readBindingInput(_0x2e1fbc),_0x17beb9=await bindExternalUserAccount(_0x23c06b,_0x2668da);if(_0x17beb9!==!![])throw CliErrors[_0x4e99d8(0xe2)](_0x4e99d8(0xe1),'Retry\x20with\x20the\x20same\x20--provider\x20and\x20--account-id\x20only\x20after\x20checking\x20the\x20current\x20AccessKey\x20identity.');return{'ok':!![],'data':buildBindingData(_0x23c06b,_0x2668da,![]),'message':_0x4e99d8(0xf5)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a86_0x2a58(){const _0x14f08c=['1013732PnvXal','126736NbaWSU','342832wUgYAu','21QQFcAw','8ZzhOuE','10IkKBLe','66nocrny','242151wXXjce','4728894vypMlb','15ZUzrGI','3808020gwlYxF','6192216HGEuba'];a86_0x2a58=function(){return _0x14f08c;};return a86_0x2a58();}(function(_0x1e45f8,_0x2f7e30){const _0x5abc5c=a86_0x2808,_0x2f2d5d=_0x1e45f8();while(!![]){try{const _0x50465f=-parseInt(_0x5abc5c(0xca))/0x1+-parseInt(_0x5abc5c(0xc4))/0x2*(-parseInt(_0x5abc5c(0xc6))/0x3)+-parseInt(_0x5abc5c(0xc3))/0x4*(-parseInt(_0x5abc5c(0xc0))/0x5)+parseInt(_0x5abc5c(0xbf))/0x6+-parseInt(_0x5abc5c(0xc5))/0x7*(parseInt(_0x5abc5c(0xc7))/0x8)+parseInt(_0x5abc5c(0xc2))/0x9*(parseInt(_0x5abc5c(0xc8))/0xa)+parseInt(_0x5abc5c(0xc9))/0xb*(-parseInt(_0x5abc5c(0xc1))/0xc);if(_0x50465f===_0x2f7e30)break;else _0x2f2d5d['push'](_0x2f2d5d['shift']());}catch(_0x5db470){_0x2f2d5d['push'](_0x2f2d5d['shift']());}}}(a86_0x2a58,0x7662f));function a86_0x2808(_0x28f4bb,_0x1d2075){_0x28f4bb=_0x28f4bb-0xbf;const _0x2a585f=a86_0x2a58();let _0x28085f=_0x2a585f[_0x28f4bb];return _0x28085f;}import{bindUserAccount}from'../../commands/user-account/bind.js';export const userAccountDefinitions=[bindUserAccount];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a87_0x6983d9=a87_0x5a5e;function a87_0x5a5e(_0x453cd9,_0x89b5df){_0x453cd9=_0x453cd9-0xec;const _0x36dc9a=a87_0x36dc();let _0x5a5e6c=_0x36dc9a[_0x453cd9];return _0x5a5e6c;}(function(_0x3a148c,_0x5b2e46){const _0x3936be=a87_0x5a5e,_0xf355f0=_0x3a148c();while(!![]){try{const _0x53afaf=-parseInt(_0x3936be(0x11c))/0x1*(parseInt(_0x3936be(0x10e))/0x2)+parseInt(_0x3936be(0x105))/0x3*(-parseInt(_0x3936be(0x10f))/0x4)+parseInt(_0x3936be(0x115))/0x5+parseInt(_0x3936be(0xf0))/0x6*(-parseInt(_0x3936be(0x11f))/0x7)+parseInt(_0x3936be(0x119))/0x8*(-parseInt(_0x3936be(0xed))/0x9)+parseInt(_0x3936be(0x117))/0xa+parseInt(_0x3936be(0xf1))/0xb;if(_0x53afaf===_0x5b2e46)break;else _0xf355f0['push'](_0xf355f0['shift']());}catch(_0x491807){_0xf355f0['push'](_0xf355f0['shift']());}}}(a87_0x36dc,0x3aaf5));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':a87_0x6983d9(0x111),'type':a87_0x6983d9(0x11a),'description':'App\x20name\x20to\x20bind\x20as\x20the\x20current\x20workspace\x20default'},{'name':a87_0x6983d9(0x11e),'type':a87_0x6983d9(0x11a),'description':a87_0x6983d9(0xfd)},{'name':'env','type':a87_0x6983d9(0x11a),'description':a87_0x6983d9(0x123),'enum':[...RUNTIME_ENV_VALUES]}];async function executeWorkspaceUse(_0x3a9308,_0x5e933e){const _0x5ac806=a87_0x6983d9,_0x3eaf0e=_0x3a9308[_0x5ac806(0x116)](_0x5ac806(0x111))[_0x5ac806(0x11b)](),_0x17cde9=_0x3a9308[_0x5ac806(0x116)](_0x5ac806(0x11e))['trim'](),_0x4f2507=_0x3a9308[_0x5ac806(0x116)](_0x5ac806(0x128))[_0x5ac806(0x11b)](),_0x4b3a71=resolveWorkspaceEnv(_0x4f2507||_0x3a9308['envName']||DEFAULT_CONFIG_VALUES[_0x5ac806(0x128)]);if(!_0x3eaf0e&&!_0x17cde9)throw CliErrors[_0x5ac806(0xee)]('Missing\x20workspace\x20app\x20selector.',_0x5ac806(0xff)+CLI_BIN_NAME+'\x20workspace\x20'+_0x5e933e+_0x5ac806(0x127)+CLI_BIN_NAME+'\x20workspace\x20'+_0x5e933e+_0x5ac806(0x129));if(_0x3eaf0e&&_0x17cde9)throw CliErrors[_0x5ac806(0xee)](_0x5ac806(0xec),'Pass\x20either\x20--app\x20<name>\x20or\x20--appcode\x20<code>,\x20not\x20both.');const _0x8caed=resolveWriteConfigPath(_0x5ac806(0x10a)),_0x3f5bad=readConfigFile(_0x8caed);assertWorkspaceCommandState(_0x5e933e,_0x3f5bad);const _0x580d74=_0x17cde9||await resolveRemoteAppCode({'command':_0x5e933e,'appName':_0x3eaf0e,'env':_0x4b3a71,'accessKey':_0x3a9308[_0x5ac806(0xfc)]});return writeWorkspaceConfig({'command':_0x5e933e,'appName':_0x3eaf0e,'appcode':_0x580d74,'env':_0x4b3a71,'shouldWriteEnv':!!_0x4f2507,'accessKey':_0x3a9308['accessKey']},_0x8caed,_0x3f5bad),{'ok':!![],'data':{'configPath':_0x8caed,'app':_0x3eaf0e||null,'appcode':_0x580d74,'env':_0x4f2507?_0x4b3a71:null,'accessKeyWritten':![],'command':_0x5ac806(0xf9)+_0x5e933e},'message':buildWorkspaceMessage(_0x8caed,_0x3eaf0e,_0x580d74,_0x4f2507?_0x4b3a71:undefined)};}async function resolveRemoteAppCode(_0x8a7208){const _0x20d9da=a87_0x6983d9;if(!_0x8a7208[_0x20d9da(0xfc)])throw CliErrors[_0x20d9da(0xf7)]('Resolving\x20--app\x20requires\x20accessKey.\x20Pass\x20--appcode\x20directly,\x20or\x20set\x20accessKey\x20before\x20running\x20'+CLI_BIN_NAME+_0x20d9da(0x122)+_0x8a7208[_0x20d9da(0x113)]+'.');const {setActiveAK:_0x1836c1}=await import(_0x20d9da(0x10d)),{getRemoteAppList:_0x2a5703}=await import(_0x20d9da(0x106));_0x1836c1(_0x8a7208[_0x20d9da(0xfc)]);const _0x49e4cb=await _0x2a5703({'env':_0x8a7208[_0x20d9da(0x128)],'accessKey':_0x8a7208[_0x20d9da(0xfc)],'noCache':![]}),_0x5d1bb5=findAppByName(_0x49e4cb[_0x20d9da(0x102)],_0x8a7208[_0x20d9da(0xfe)]);if(_0x5d1bb5&&!isRuntimeAccessibleApp(_0x5d1bb5))throw runtimeInaccessibleAppError(_0x5d1bb5,'\x22'+_0x8a7208[_0x20d9da(0xfe)]+'\x22');const _0x1d7d4e=_0x5d1bb5?.[_0x20d9da(0x104)]?.[_0x20d9da(0x11b)]();if(_0x1d7d4e)return _0x1d7d4e;const _0x430ec6=_0x49e4cb[_0x20d9da(0x102)]['map'](_0x416af7=>_0x416af7[_0x20d9da(0xfe)])[_0x20d9da(0xf8)](Boolean),_0x44d1ee=_0x430ec6['length']?_0x20d9da(0x121)+Array['from'](new Set(_0x430ec6))['join'](',\x20')+'.':_0x20d9da(0xf3)+CLI_BIN_NAME+'\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20pass\x20--appcode\x20directly.';throw CliErrors[_0x20d9da(0xee)](_0x20d9da(0x118)+_0x8a7208[_0x20d9da(0xfe)]+_0x20d9da(0xf4),_0x44d1ee);}function writeWorkspaceConfig(_0x16d0e9,_0x328dc3,_0x139c03){const _0x2da6eb=a87_0x6983d9;_0x16d0e9[_0x2da6eb(0xfa)]&&(_0x139c03['env']=_0x16d0e9['env']);if(_0x16d0e9[_0x2da6eb(0xfe)]){const _0x23b02b=isRecord(_0x139c03[_0x2da6eb(0xf6)])?{..._0x139c03[_0x2da6eb(0xf6)]}:{},_0x4feefa=isRecord(_0x23b02b[_0x16d0e9[_0x2da6eb(0xfe)]])?_0x23b02b[_0x16d0e9[_0x2da6eb(0xfe)]]:{};return _0x23b02b[_0x16d0e9[_0x2da6eb(0xfe)]]={..._0x4feefa,'appcode':_0x16d0e9['appcode']},_0x139c03['apps']=_0x23b02b,_0x139c03[_0x2da6eb(0xf5)]=_0x16d0e9[_0x2da6eb(0xfe)],delete _0x139c03[_0x2da6eb(0x11e)],delete _0x139c03[_0x2da6eb(0x111)],writeAndReturn(_0x328dc3,_0x139c03);}return _0x139c03[_0x2da6eb(0x11e)]=_0x16d0e9[_0x2da6eb(0x11e)],delete _0x139c03[_0x2da6eb(0xf5)],delete _0x139c03[_0x2da6eb(0x111)],writeAndReturn(_0x328dc3,_0x139c03);}function writeAndReturn(_0x427ccd,_0x4c9bdc){return writeConfigFile(_0x427ccd,_0x4c9bdc),_0x427ccd;}function resolveWorkspaceEnv(_0x455eaf){const _0x34a645=a87_0x6983d9;if(RUNTIME_ENV_VALUES[_0x34a645(0xf2)](_0x455eaf))return _0x455eaf;throw CliErrors[_0x34a645(0xee)](_0x34a645(0x100)+_0x455eaf+'\x22.\x20Allowed:\x20'+RUNTIME_ENV_VALUES['join'](',\x20'));}function buildWorkspaceMessage(_0x244cf1,_0x1dfa74,_0x3c5228,_0x5eb013){const _0x4b30c2=a87_0x6983d9,_0x4980b3=_0x1dfa74?_0x1dfa74+'\x20('+_0x3c5228+')':_0x3c5228,_0x2821a1=_0x5eb013?'\x0aEnv:\x20'+_0x5eb013:'';return _0x4b30c2(0xef)+_0x244cf1+_0x4b30c2(0x109)+_0x4980b3+_0x2821a1+_0x4b30c2(0x107);}function isRecord(_0x56607f){const _0x5bb5a2=a87_0x6983d9;return typeof _0x56607f===_0x5bb5a2(0x112)&&_0x56607f!==null&&!Array[_0x5bb5a2(0x108)](_0x56607f);}function hasWorkspaceAppBinding(_0x26dff0){const _0x33fad4=a87_0x6983d9;if(typeof _0x26dff0[_0x33fad4(0x11e)]===_0x33fad4(0x11a)&&_0x26dff0[_0x33fad4(0x11e)][_0x33fad4(0x11b)]()[_0x33fad4(0x11d)]>0x0)return!![];if(typeof _0x26dff0[_0x33fad4(0xf5)]!==_0x33fad4(0x11a)||!_0x26dff0[_0x33fad4(0xf5)][_0x33fad4(0x11b)]())return![];if(!isRecord(_0x26dff0['apps']))return![];const _0x443b9a=_0x26dff0['apps'][_0x26dff0['defaultApp'][_0x33fad4(0x11b)]()];return isRecord(_0x443b9a)&&typeof _0x443b9a[_0x33fad4(0x11e)]===_0x33fad4(0x11a)&&_0x443b9a[_0x33fad4(0x11e)]['trim']()['length']>0x0;}function assertWorkspaceCommandState(_0x2a67ab,_0x39b488){const _0x4129a0=a87_0x6983d9,_0xeba2ab=hasWorkspaceAppBinding(_0x39b488);if(_0x2a67ab==='init'&&_0xeba2ab)throw CliErrors[_0x4129a0(0xee)]('Workspace\x20app\x20context\x20is\x20already\x20initialized.','Use\x20`'+CLI_BIN_NAME+'\x20workspace\x20use\x20--app\x20<name>`\x20or\x20`'+CLI_BIN_NAME+_0x4129a0(0x126));if(_0x2a67ab===_0x4129a0(0x103)&&!_0xeba2ab)throw CliErrors[_0x4129a0(0xee)](_0x4129a0(0xfb),_0x4129a0(0xf3)+CLI_BIN_NAME+_0x4129a0(0x114)+CLI_BIN_NAME+_0x4129a0(0x10c));}function makeWorkspaceCommand(_0x201d1d){const _0x40c601=a87_0x6983d9;return{'service':_0x40c601(0x125),'command':_0x201d1d,'description':_0x201d1d===_0x40c601(0x110)?_0x40c601(0x124):_0x40c601(0x10b),'risk':'write','confirmationDescription':_0x201d1d==='init'?_0x40c601(0x120):_0x40c601(0x101),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':WORKSPACE_USE_FLAGS,async 'execute'(_0x2c1ef2){return executeWorkspaceUse(_0x2c1ef2,_0x201d1d);}};}export const workspaceDefinitions=[makeWorkspaceCommand(a87_0x6983d9(0x110)),makeWorkspaceCommand(a87_0x6983d9(0x103))];function a87_0x36dc(){const _0x5b4427=['12352NLMyOi','92PGHKmQ','init','app','object','command','\x20workspace\x20init\x20--app\x20<name>`\x20or\x20`','2099850YUAYPB','str','4399570OeGQeg','App\x20\x22','304280BijtJa','string','trim','3ffnfiH','length','appcode','1219925utcMcC','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.','Available\x20apps:\x20','\x20workspace\x20','Target\x20environment','Initialize\x20app\x20context\x20for\x20the\x20current\x20working\x20directory\x20when\x20no\x20app\x20is\x20bound\x20yet','workspace','\x20workspace\x20use\x20--appcode\x20<code>`\x20to\x20change\x20it.','\x20--app\x20<name>\x20[--env\x20daily]\x20or\x20','env','\x20--appcode\x20<code>\x20[--env\x20daily]','Conflicting\x20workspace\x20app\x20selectors.','63IYdzPY','validation','Workspace\x20configured.\x0aConfig\x20file:\x20','12edBPkW','177012fwOYOX','includes','Run\x20`','\x22\x20not\x20found.','defaultApp','apps','authRequired','filter','workspace\x20','shouldWriteEnv','Workspace\x20app\x20context\x20is\x20not\x20initialized.','accessKey','App\x20code\x20to\x20bind\x20directly','appName','Usage:\x20','Invalid\x20env\x20\x22','Updates\x20the\x20app\x20binding\x20already\x20present\x20in\x20the\x20current\x20working\x20directory\x20and\x20sets\x20the\x20selected\x20app\x20as\x20the\x20directory\x20default.\x20AccessKey\x20is\x20not\x20written.','items','use','appCode','303gqZDmv','../../commands/app/remote-source.js','\x0aAccessKey:\x20not\x20written','isArray','\x0aDefault\x20app:\x20','project','Change\x20the\x20app\x20context\x20already\x20bound\x20to\x20the\x20current\x20working\x20directory','\x20workspace\x20init\x20--appcode\x20<code>`\x20first.','../../core/api-client.js'];a87_0x36dc=function(){return _0x5b4427;};return a87_0x36dc();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a88_0x526e63=a88_0x17c3;(function(_0x25f2b7,_0x574b5d){const _0x571e12=a88_0x17c3,_0x1bca16=_0x25f2b7();while(!![]){try{const _0x12cf59=parseInt(_0x571e12(0xba))/0x1+-parseInt(_0x571e12(0xbb))/0x2*(parseInt(_0x571e12(0xb1))/0x3)+-parseInt(_0x571e12(0xa5))/0x4+-parseInt(_0x571e12(0xbe))/0x5+parseInt(_0x571e12(0xcc))/0x6+parseInt(_0x571e12(0xaa))/0x7+parseInt(_0x571e12(0xd4))/0x8*(parseInt(_0x571e12(0xc4))/0x9);if(_0x12cf59===_0x574b5d)break;else _0x1bca16['push'](_0x1bca16['shift']());}catch(_0x5c3e43){_0x1bca16['push'](_0x1bca16['shift']());}}}(a88_0x20f9,0xa7c03));function a88_0x20f9(){const _0x308289=['object','Allowed\x20fields:\x20','Update\x20the\x20manifest\x20so\x20both\x20CLIs\x20consume\x20the\x20same\x20routing\x20data.','runtime-domain','length','skill-domain','pathname','1223908KRRZiJ','2tjGWYP','join','isArray','5636350WGGraN','protocol','Enterprise\x20routing\x20manifest\x20is\x20missing\x20required\x20Domain(s):\x20','\x20does\x20not\x20provide\x20a\x20Domain\x20for\x20','runtimeDomain','kind','442377nvrOuO','\x22\x20and\x20kind\x20\x22','legacy','password','Domain\x20config\x20file\x20not\x20found:\x20',':\x20expected\x20an\x20HTTPS\x20origin\x20or\x20consumer\x20Domain\x20object.','string','str','1296678ljTZYG','Invalid\x20','default','enterprise-v1','keys','hash','Invalid\x20enterprise\x20routing\x20config:\x20expected\x20an\x20object.','trim','152qMSfRS','cwd','https:','filter','Invalid\x20domain\x20config\x20JSON:\x20','Invalid\x20domain\x20config:\x20expected\x20a\x20JSON\x20object.','origin','includes','domains','user-domain',':\x20expected\x20an\x20HTTPS\x20origin\x20without\x20credentials,\x20path,\x20query,\x20or\x20fragment.','skillHubDomain','2232960apHLuT',':\x20expected\x20a\x20non-empty\x20HTTPS\x20origin.','validation','apiDomain','username','6831916krlboV','lovrabet-cli','\x20and\x20has\x20no\x20default.','mode','domain-config','kbDomain','userDomain','2931897YqzsZf','skillDomain'];a88_0x20f9=function(){return _0x308289;};return a88_0x20f9();}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=['userDomain',a88_0x526e63(0xa8),a88_0x526e63(0xc2),'skillDomain'];const DOMAIN_FLAGS={'userDomain':a88_0x526e63(0xa2),'apiDomain':'api-domain','runtimeDomain':a88_0x526e63(0xb6),'skillDomain':a88_0x526e63(0xb8)};export const LEGACY_DOMAIN_CONFIG_FIELDS=['agentDomain','platformDomain',a88_0x526e63(0xa4),a88_0x526e63(0xaf)];const ENTERPRISE_TO_LOCAL_FIELD={'userDomain':a88_0x526e63(0xb0),'apiDomain':'apiDomain','runtimeDomain':a88_0x526e63(0xc2),'skillDomain':a88_0x526e63(0xb2)},ROUTING_CONSUMER=a88_0x526e63(0xab);export function normalizeDomainOrigin(_0x10a011,_0x4f5bf4){const _0x5dfbbc=a88_0x526e63;if(typeof _0x4f5bf4!=='string'||!_0x4f5bf4['trim']())throw CliErrors[_0x5dfbbc(0xa7)](_0x5dfbbc(0xcd)+_0x10a011+_0x5dfbbc(0xa6));let _0x361e61;try{_0x361e61=new URL(_0x4f5bf4[_0x5dfbbc(0xd3)]());}catch{throw CliErrors['validation']('Invalid\x20'+_0x10a011+':\x20\x22'+_0x4f5bf4+'\x22\x20is\x20not\x20a\x20valid\x20URL.');}if(_0x361e61[_0x5dfbbc(0xbf)]!==_0x5dfbbc(0x9b)||_0x361e61[_0x5dfbbc(0xa9)]||_0x361e61[_0x5dfbbc(0xc7)]||_0x361e61[_0x5dfbbc(0xb9)]!=='/'&&_0x361e61[_0x5dfbbc(0xb9)]!==''||_0x361e61['search']||_0x361e61[_0x5dfbbc(0xd1)])throw CliErrors[_0x5dfbbc(0xa7)]('Invalid\x20'+_0x10a011+_0x5dfbbc(0xa3),'For\x20internal\x20deployments,\x20terminate\x20TLS\x20at\x20the\x20ingress,\x20reverse\x20proxy,\x20or\x20load\x20balancer;\x20an\x20internal\x20CA\x20is\x20supported.');return _0x361e61[_0x5dfbbc(0x9f)];}export function normalizeRoutingDomainValue(_0x134a46,_0x116643){const _0x3f70f8=a88_0x526e63;if(typeof _0x116643===_0x3f70f8(0xca))return normalizeDomainOrigin(_0x134a46,_0x116643);if(!_0x116643||typeof _0x116643!=='object'||Array[_0x3f70f8(0xbd)](_0x116643))throw CliErrors['validation'](_0x3f70f8(0xcd)+_0x134a46+_0x3f70f8(0xc9));const _0x4cc85c=_0x116643,_0x1fb828=_0x4cc85c[ROUTING_CONSUMER]??_0x4cc85c[_0x3f70f8(0xce)];if(_0x1fb828===undefined)throw CliErrors[_0x3f70f8(0xa7)]('Enterprise\x20'+_0x134a46+_0x3f70f8(0xc1)+ROUTING_CONSUMER+_0x3f70f8(0xac));return normalizeDomainOrigin(_0x134a46,_0x1fb828);}export function resolveEnterpriseRoutingConfig(_0x466860){const _0x2ebb6d=a88_0x526e63;if(_0x466860===undefined)return undefined;if(!_0x466860||typeof _0x466860!=='object'||Array[_0x2ebb6d(0xbd)](_0x466860))throw CliErrors['validation'](_0x2ebb6d(0xd2));return parseEnterpriseRoutingManifest(_0x466860)[_0x2ebb6d(0xa1)];}function a88_0x17c3(_0x4d93a7,_0xff186){_0x4d93a7=_0x4d93a7-0x9b;const _0x20f984=a88_0x20f9();let _0x17c307=_0x20f984[_0x4d93a7];return _0x17c307;}export function readDomainConfigInput(_0x1eed45){const _0x3dd0c4=a88_0x526e63,_0x11605d=isAbsolute(_0x1eed45)?_0x1eed45:resolve(process[_0x3dd0c4(0xd5)](),_0x1eed45);if(!existsSync(_0x11605d))throw CliErrors[_0x3dd0c4(0xa7)](_0x3dd0c4(0xc8)+_0x11605d);let _0x390716;try{_0x390716=JSON['parse'](readFileSync(_0x11605d,'utf8'));}catch{throw CliErrors[_0x3dd0c4(0xa7)](_0x3dd0c4(0x9d)+_0x11605d);}if(!_0x390716||typeof _0x390716!==_0x3dd0c4(0xb3)||Array[_0x3dd0c4(0xbd)](_0x390716))throw CliErrors['validation'](_0x3dd0c4(0x9e));const _0x398ee0=_0x390716;if(_0x3dd0c4(0xbf)in _0x398ee0)return parseEnterpriseRoutingManifest(_0x398ee0);const _0x108fc9=Object['keys'](_0x398ee0)[_0x3dd0c4(0x9c)](_0x174daf=>!DOMAIN_CONFIG_FIELDS[_0x3dd0c4(0xa0)](_0x174daf));if(_0x108fc9['length']>0x0)throw CliErrors[_0x3dd0c4(0xa7)]('Unsupported\x20domain\x20config\x20field(s):\x20'+_0x108fc9[_0x3dd0c4(0xbc)](',\x20'),_0x3dd0c4(0xb4)+DOMAIN_CONFIG_FIELDS['join'](',\x20'));const _0x5b15eb={};for(const _0xa7aef3 of DOMAIN_CONFIG_FIELDS){_0x398ee0[_0xa7aef3]!==undefined&&(_0x5b15eb[_0xa7aef3]=normalizeDomainOrigin(_0xa7aef3,_0x398ee0[_0xa7aef3]));}if(Object[_0x3dd0c4(0xd0)](_0x5b15eb)[_0x3dd0c4(0xb7)]===0x0)throw CliErrors[_0x3dd0c4(0xa7)]('Invalid\x20domain\x20config:\x20provide\x20at\x20least\x20one\x20supported\x20Domain.');return{'mode':_0x3dd0c4(0xc6),'domains':_0x5b15eb};}export function readDomainConfig(_0x108238){const _0x23bee9=a88_0x526e63;return readDomainConfigInput(_0x108238)[_0x23bee9(0xa1)];}export function resolveDomainConfigInput(_0x13e282){const _0x44f57d=a88_0x526e63,_0x2e9a2c=(_0x13e282[_0x44f57d(0xcb)](_0x44f57d(0xae))||'')[_0x44f57d(0xd3)](),_0x56aab7=_0x2e9a2c?readDomainConfigInput(_0x2e9a2c):{'mode':_0x44f57d(0xc6),'domains':{}},_0x32c71f=DOMAIN_CONFIG_FIELDS[_0x44f57d(0x9c)](_0x31c1f0=>Boolean((_0x13e282[_0x44f57d(0xcb)](DOMAIN_FLAGS[_0x31c1f0])||'')[_0x44f57d(0xd3)]()));if(_0x56aab7[_0x44f57d(0xad)]===_0x44f57d(0xcf)&&_0x32c71f[_0x44f57d(0xb7)]>0x0)throw CliErrors[_0x44f57d(0xa7)]('Enterprise\x20routing\x20manifests\x20cannot\x20be\x20combined\x20with\x20individual\x20Domain\x20flags.',_0x44f57d(0xb5));for(const _0x2486f0 of DOMAIN_CONFIG_FIELDS){const _0x1397a7=(_0x13e282[_0x44f57d(0xcb)](DOMAIN_FLAGS[_0x2486f0])||'')[_0x44f57d(0xd3)]();if(_0x1397a7)_0x56aab7[_0x44f57d(0xa1)][_0x2486f0]=normalizeDomainOrigin(_0x2486f0,_0x1397a7);}return _0x56aab7;}export function resolveDomainFlags(_0x4b54a4){const _0x6e6e=a88_0x526e63;return resolveDomainConfigInput(_0x4b54a4)[_0x6e6e(0xa1)];}export function parseEnterpriseRoutingManifest(_0x152161){const _0x121f49=a88_0x526e63;if(_0x152161[_0x121f49(0xbf)]!==ENTERPRISE_ROUTING_PROTOCOL||_0x152161[_0x121f49(0xc3)]!==ENTERPRISE_ROUTING_KIND)throw CliErrors[_0x121f49(0xa7)]('Unsupported\x20routing\x20manifest:\x20expected\x20protocol\x20\x22'+ENTERPRISE_ROUTING_PROTOCOL+_0x121f49(0xc5)+ENTERPRISE_ROUTING_KIND+'\x22.');if(!_0x152161['domains']||typeof _0x152161['domains']!=='object'||Array['isArray'](_0x152161[_0x121f49(0xa1)]))throw CliErrors[_0x121f49(0xa7)]('Invalid\x20enterprise\x20routing\x20manifest:\x20domains\x20must\x20be\x20an\x20object.');const _0x3ef733=_0x152161[_0x121f49(0xa1)],_0x5c98e2=REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS[_0x121f49(0x9c)](_0x5db72f=>_0x3ef733[_0x5db72f]===undefined);if(_0x5c98e2[_0x121f49(0xb7)]>0x0)throw CliErrors[_0x121f49(0xa7)](_0x121f49(0xc0)+_0x5c98e2[_0x121f49(0xbc)](',\x20'));const _0x7830d9={},_0x1ed044={};for(const _0x4d6f0a of ENTERPRISE_ROUTING_DOMAIN_FIELDS){const _0x513ebe=_0x3ef733[_0x4d6f0a];if(_0x513ebe===undefined)continue;const _0x197011=normalizeRoutingDomainValue(_0x4d6f0a,_0x513ebe);_0x7830d9[_0x4d6f0a]=_0x197011;const _0x125f58=ENTERPRISE_TO_LOCAL_FIELD[_0x4d6f0a];_0x125f58&&(_0x1ed044[_0x125f58]=_0x197011);}return{'mode':'enterprise-v1','domains':_0x1ed044,'manifestDomains':_0x7830d9};}
|
package/lib/config/schema.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a89_0x45c48e=a89_0x681e;(function(_0x5d55b5,_0x2f18f9){const _0x15dabf=a89_0x681e,_0x627ebe=_0x5d55b5();while(!![]){try{const _0x5eac15=parseInt(_0x15dabf(0xe5))/0x1+-parseInt(_0x15dabf(0xe3))/0x2*(parseInt(_0x15dabf(0xf0))/0x3)+parseInt(_0x15dabf(0xf7))/0x4*(-parseInt(_0x15dabf(0xf4))/0x5)+-parseInt(_0x15dabf(0xe0))/0x6+-parseInt(_0x15dabf(0xef))/0x7*(parseInt(_0x15dabf(0xf9))/0x8)+-parseInt(_0x15dabf(0xe2))/0x9+-parseInt(_0x15dabf(0xec))/0xa*(-parseInt(_0x15dabf(0xf1))/0xb);if(_0x5eac15===_0x2f18f9)break;else _0x627ebe['push'](_0x627ebe['shift']());}catch(_0x543996){_0x627ebe['push'](_0x627ebe['shift']());}}}(a89_0xf7ab,0xcd32c));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../constant/env.js';function a89_0x681e(_0x2dce72,_0x4d8016){_0x2dce72=_0x2dce72-0xd5;const _0xf7ab06=a89_0xf7ab();let _0x681e8c=_0xf7ab06[_0x2dce72];return _0x681e8c;}import{OUTPUT_FORMAT_VALUES}from'../constant/output.js';import{DEFAULT_LOVRABET_REGION,ENABLED_LOVRABET_REGION_VALUES}from'../constant/region.js';export const CONFIG_FIELD_SCHEMAS={'routing':{'description':a89_0x45c48e(0xe1),'topLevel':!![]},'region':{'description':a89_0x45c48e(0xe6),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':ENABLED_LOVRABET_REGION_VALUES,'defaultValue':DEFAULT_LOVRABET_REGION,'importable':!![]},'env':{'description':'Target\x20environment','topLevel':!![],'cliSettableTopLevel':!![],'enumValues':RUNTIME_ENV_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a89_0x45c48e(0xdd)],'importable':!![]},'format':{'description':a89_0x45c48e(0xd7),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':OUTPUT_FORMAT_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES['format'],'importable':!![]},'pageSize':{'description':'Default\x20page\x20size','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'apiDomain':{'description':a89_0x45c48e(0xde),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'userDomain':{'description':a89_0x45c48e(0xdb),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'runtimeDomain':{'description':a89_0x45c48e(0xf6),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'skillDomain':{'description':a89_0x45c48e(0xed),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'accessKey':{'description':a89_0x45c48e(0xda),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'riskLevel':{'description':a89_0x45c48e(0xe8),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES['riskLevel'],'importable':!![]},'nativeToolAvailable':{'description':'Native\x20Lovrabet\x20tool\x20availability\x20in\x20the\x20current\x20execution\x20host','topLevel':!![],'defaultValue':![]},'locale':{'description':'App\x20locale\x20(not\x20CLI\x20language;\x20reserved\x20for\x20later\x20app\x20use)','topLevel':!![],'cliSettableTopLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a89_0x45c48e(0xf5)],'importable':!![]}};export const TOP_LEVEL_CONFIG_KEYS=new Set(Object[a89_0x45c48e(0xd5)](CONFIG_FIELD_SCHEMAS)[a89_0x45c48e(0xd9)](([,_0x7ee83d])=>_0x7ee83d['cliSettableTopLevel'])[a89_0x45c48e(0xe7)](([_0xccb679])=>_0xccb679));function a89_0xf7ab(){const _0xf2621b=['118RZtRZP','nativeToolAvailable','1613999OXQNNc','Lovrabet\x20region','map','Risk\x20level','enumValues','has','fromEntries','6450eJXoST','Override\x20SkillHub\x20domain','en-US','121618mjxzHl','80472fzycLm','61611RtVykr','zh-CN','Config\x20key.\x20Top-level:\x20','4970915FcXFqL','locale','Override\x20runtime\x20domain','4MojaGH','defaultValue','368BbUqjY','entries','importable','Default\x20output\x20format',';\x20local\x20alias:\x20apps.<alias>.appcode','filter','Access\x20key\x20(client-ak\x20auth)','Override\x20user\x20domain','toLowerCase','env','Override\x20API\x20domain','join','956370mVhVMp','Versioned\x20enterprise\x20routing\x20manifest','7656786RZNDSP'];a89_0xf7ab=function(){return _0xf2621b;};return a89_0xf7ab();}export const CLI_PROTECTED_CONFIG_KEYS=new Set(['riskLevel',a89_0x45c48e(0xe4)]);export const CONFIG_ENUM_VALUES=Object[a89_0x45c48e(0xeb)](Object[a89_0x45c48e(0xd5)](CONFIG_FIELD_SCHEMAS)[a89_0x45c48e(0xd9)](([,_0x2eed69])=>_0x2eed69[a89_0x45c48e(0xe9)])[a89_0x45c48e(0xe7)](([_0x2b339c,_0x244ec7])=>[_0x2b339c,[..._0x244ec7['enumValues']||[]]]));export const IMPORTABLE_RUNTIME_CONFIG_KEYS=Object[a89_0x45c48e(0xd5)](CONFIG_FIELD_SCHEMAS)[a89_0x45c48e(0xd9)](([,_0x3b02ef])=>_0x3b02ef[a89_0x45c48e(0xd6)])[a89_0x45c48e(0xe7)](([_0x10fb30])=>_0x10fb30);export function getConfigFieldSchema(_0x1b03fc){return CONFIG_FIELD_SCHEMAS[_0x1b03fc];}export function getConfigEnumValues(_0x21c339){const _0x3adbf5=a89_0x45c48e;return getConfigFieldSchema(_0x21c339)?.[_0x3adbf5(0xe9)];}export function getConfigDefaultValue(_0x12cd2f){const _0x309ec9=a89_0x45c48e;return getConfigFieldSchema(_0x12cd2f)?.[_0x309ec9(0xf8)];}export function isTopLevelConfigKey(_0x43461e){return TOP_LEVEL_CONFIG_KEYS['has'](_0x43461e);}export function isCliProtectedConfigKey(_0x16ad54){const _0x38ea3c=a89_0x45c48e;return CLI_PROTECTED_CONFIG_KEYS[_0x38ea3c(0xea)](_0x16ad54);}const LOCALE_MAP={'zh':a89_0x45c48e(0xf2),'zh-cn':'zh-CN','zh_cn':a89_0x45c48e(0xf2),'en':a89_0x45c48e(0xee),'en-us':a89_0x45c48e(0xee),'en_us':a89_0x45c48e(0xee)};export function normalizeLocale(_0x1d9728){const _0x18e17d=a89_0x45c48e;if(!_0x1d9728)return null;return LOCALE_MAP[_0x1d9728[_0x18e17d(0xdc)]()]??null;}export function isLegacyCompatConfigKey(_0x45bd46){return getConfigFieldSchema(_0x45bd46)?.['legacyCompatOnly']===!![];}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function formatConfigKeyList(_0x47d8fb){const _0xa2eb16=a89_0x45c48e;return[..._0x47d8fb][_0xa2eb16(0xdf)](',\x20');}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x34f2ca=a89_0x45c48e;return _0x34f2ca(0xf3)+getTopLevelConfigKeySummary()+_0x34f2ca(0xd8);}export function buildAppProfileListFields(_0x8d3437){return{'env':_0x8d3437,'hasAccessKey':![],'format':null,'pageSize':null,'riskLevel':null,'locale':null};}
|
package/lib/constant/app.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a90_0x81c39=a90_0x3da0;(function(_0x2f300d,_0x3d3853){const _0x3956a3=a90_0x3da0,_0x358bb5=_0x2f300d();while(!![]){try{const _0x441819=-parseInt(_0x3956a3(0x196))/0x1*(-parseInt(_0x3956a3(0x18c))/0x2)+parseInt(_0x3956a3(0x18f))/0x3+parseInt(_0x3956a3(0x194))/0x4+parseInt(_0x3956a3(0x192))/0x5*(parseInt(_0x3956a3(0x193))/0x6)+-parseInt(_0x3956a3(0x191))/0x7*(parseInt(_0x3956a3(0x195))/0x8)+parseInt(_0x3956a3(0x18d))/0x9+parseInt(_0x3956a3(0x197))/0xa*(-parseInt(_0x3956a3(0x190))/0xb);if(_0x441819===_0x3d3853)break;else _0x358bb5['push'](_0x358bb5['shift']());}catch(_0x5784e6){_0x358bb5['push'](_0x358bb5['shift']());}}}(a90_0x3bea,0xd8573));export const APP_PUBLISH_STATUS={'Published':'PUBLISHED','Unpublished':'UNPUBLISH'};function a90_0x3da0(_0x19ffc2,_0x26644b){_0x19ffc2=_0x19ffc2-0x18c;const _0x3beae7=a90_0x3bea();let _0x3da024=_0x3beae7[_0x19ffc2];return _0x3da024;}export const RUNTIME_ACCESSIBLE_APP_STATUS=APP_PUBLISH_STATUS[a90_0x81c39(0x18e)];function a90_0x3bea(){const _0x2f2506=['3252662CYMADA','80nEGVvJ','203778wLniWq','2430456pFTUzu','24mZpzec','3jlTbla','1579460FZpwjy','1136422OTBSAf','5560938MfYOTF','Published','4475022YJjuJv','187pwwAcw'];a90_0x3bea=function(){return _0x2f2506;};return a90_0x3bea();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a91_0x2fe821=a91_0x3e5a;(function(_0x306ea5,_0x3204bb){const _0x3ed501=a91_0x3e5a,_0x4fce11=_0x306ea5();while(!![]){try{const _0x9201f5=-parseInt(_0x3ed501(0xc2))/0x1+parseInt(_0x3ed501(0xbd))/0x2+-parseInt(_0x3ed501(0xc5))/0x3*(-parseInt(_0x3ed501(0xbc))/0x4)+parseInt(_0x3ed501(0xc0))/0x5+parseInt(_0x3ed501(0xc7))/0x6*(-parseInt(_0x3ed501(0xc4))/0x7)+parseInt(_0x3ed501(0xc8))/0x8*(parseInt(_0x3ed501(0xc1))/0x9)+-parseInt(_0x3ed501(0xc3))/0xa*(parseInt(_0x3ed501(0xbf))/0xb);if(_0x9201f5===_0x3204bb)break;else _0x4fce11['push'](_0x4fce11['shift']());}catch(_0x18c3a1){_0x4fce11['push'](_0x4fce11['shift']());}}}(a91_0x2b01,0x31962));function a91_0x2b01(){const _0x358568=['3yDbVPn','ClientAk','6MVoOfS','296KYOurq','1093784MsYSmZ','222040rSBwjy','client-ak','880PLbNHG','1736585HLfrYa','76671zFcJFi','187977bbioKJ','35730aQoFjj','2590441eqbDRn'];a91_0x2b01=function(){return _0x358568;};return a91_0x2b01();}export const AUTH_MODE={'ClientAk':a91_0x2fe821(0xbe)};function a91_0x3e5a(_0x1af159,_0x18ccf8){_0x1af159=_0x1af159-0xbc;const _0x2b013d=a91_0x2b01();let _0x3e5ae0=_0x2b013d[_0x1af159];return _0x3e5ae0;}export function isAuthMode(_0x219ec0){const _0x4642d3=a91_0x2fe821;return _0x219ec0===AUTH_MODE[_0x4642d3(0xc6)];}
|
package/lib/constant/cli.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a92_0x4401(){const _0x1915b5=['JSON\x20params\x20for\x20execute\x20commands','cliDisplayName','<name>','<code>','20BaZReZ','name','Select\x20app\x20profile\x20by\x20name','7983135wCahLQ','727980EoUeTF','appcode','dry-run','sqlcode','verbose','33344tYasmg','11759SLxEgS','4710emKKiX','<expr>','meowKey','global','91pZBDMK','Skip\x20confirmation\x20for\x20high-risk\x20writes','505ZiRjLZ','3XbcpKz','Record\x20ID','map','Preview\x20operation\x20without\x20executing','app','string','env','Verbose\x20output','Alias\x20for\x20--non-interactive','boolean','cliBinName','dryRun','clear','198060njZehB','Output\x20format','Use\x20global\x20config\x20scope','Clear\x20output','production\x20|\x20development\x20|\x20daily','format','Force\x20non-interactive\x20mode\x20(CI)','yes','15702JeSKcH','type','SQL\x20query\x20code','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','798hXdadH','Name\x20filter','Show\x20help','non-interactive','help','params','68239hmSTpQ'];a92_0x4401=function(){return _0x1915b5;};return a92_0x4401();}const a92_0x1bfffa=a92_0x4509;(function(_0x34d231,_0x5d1fb2){const _0x5b6594=a92_0x4509,_0x590aed=_0x34d231();while(!![]){try{const _0x158c6e=-parseInt(_0x5b6594(0x18b))/0x1*(-parseInt(_0x5b6594(0x190))/0x2)+-parseInt(_0x5b6594(0x1a2))/0x3*(-parseInt(_0x5b6594(0x1af))/0x4)+-parseInt(_0x5b6594(0x1a1))/0x5*(-parseInt(_0x5b6594(0x181))/0x6)+-parseInt(_0x5b6594(0x185))/0x7*(parseInt(_0x5b6594(0x199))/0x8)+parseInt(_0x5b6594(0x193))/0x9+-parseInt(_0x5b6594(0x19b))/0xa*(parseInt(_0x5b6594(0x19a))/0xb)+parseInt(_0x5b6594(0x194))/0xc*(-parseInt(_0x5b6594(0x19f))/0xd);if(_0x158c6e===_0x5d1fb2)break;else _0x590aed['push'](_0x590aed['shift']());}catch(_0x6f8e9c){_0x590aed['push'](_0x590aed['shift']());}}}(a92_0x4401,0x752bb));import{PRODUCT_CONFIG}from'../constant/product.js';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';export const CLI_BIN_NAME=PRODUCT_CONFIG[a92_0x1bfffa(0x1ac)];export const CLI_DISPLAY_NAME=PRODUCT_CONFIG[a92_0x1bfffa(0x18d)];function a92_0x4509(_0x27d8d9,_0x39083a){_0x27d8d9=_0x27d8d9-0x17b;const _0x4401ff=a92_0x4401();let _0x4509c4=_0x4401ff[_0x27d8d9];return _0x4509c4;}export const NPM_PACKAGE_NAME=LOVRABET_NPM_PACKAGE_NAME;export const GLOBAL_FLAGS=[{'name':a92_0x1bfffa(0x195),'meowKey':a92_0x1bfffa(0x195),'type':'string','description':'Override\x20appcode','hint':a92_0x1bfffa(0x18f)},{'name':a92_0x1bfffa(0x1a6),'meowKey':a92_0x1bfffa(0x1a6),'type':a92_0x1bfffa(0x1a7),'description':a92_0x1bfffa(0x192),'hint':a92_0x1bfffa(0x18e)},{'name':a92_0x1bfffa(0x1a8),'meowKey':a92_0x1bfffa(0x1a8),'type':a92_0x1bfffa(0x1a7),'description':'Environment','hint':a92_0x1bfffa(0x17d)},{'name':a92_0x1bfffa(0x17e),'meowKey':a92_0x1bfffa(0x17e),'type':a92_0x1bfffa(0x1a7),'description':a92_0x1bfffa(0x1b0),'hint':'json\x20|\x20pretty\x20|\x20compress'},{'name':'jq','meowKey':'jq','type':a92_0x1bfffa(0x1a7),'description':a92_0x1bfffa(0x184),'hint':a92_0x1bfffa(0x19c)},{'name':a92_0x1bfffa(0x196),'meowKey':a92_0x1bfffa(0x1ad),'type':'boolean','description':a92_0x1bfffa(0x1a5)},{'name':a92_0x1bfffa(0x180),'meowKey':a92_0x1bfffa(0x180),'type':a92_0x1bfffa(0x1ab),'description':a92_0x1bfffa(0x1a0)},{'name':a92_0x1bfffa(0x188),'meowKey':'nonInteractive','type':a92_0x1bfffa(0x1ab),'description':a92_0x1bfffa(0x17f)},{'name':'global','meowKey':a92_0x1bfffa(0x19e),'type':a92_0x1bfffa(0x1ab),'description':a92_0x1bfffa(0x17b)},{'name':'ci','meowKey':'ci','type':'boolean','description':a92_0x1bfffa(0x1aa),'hidden':!![]},{'name':a92_0x1bfffa(0x189),'meowKey':a92_0x1bfffa(0x189),'type':a92_0x1bfffa(0x1ab),'description':a92_0x1bfffa(0x187)},{'name':'id','meowKey':'id','type':'string','description':a92_0x1bfffa(0x1a3),'hidden':!![]},{'name':a92_0x1bfffa(0x191),'meowKey':a92_0x1bfffa(0x191),'type':'string','description':a92_0x1bfffa(0x186),'hidden':!![]},{'name':a92_0x1bfffa(0x197),'meowKey':a92_0x1bfffa(0x197),'type':a92_0x1bfffa(0x1a7),'description':a92_0x1bfffa(0x183),'hidden':!![]},{'name':a92_0x1bfffa(0x18a),'meowKey':a92_0x1bfffa(0x18a),'type':'string','description':a92_0x1bfffa(0x18c),'hidden':!![]},{'name':a92_0x1bfffa(0x198),'meowKey':a92_0x1bfffa(0x198),'type':a92_0x1bfffa(0x1ab),'description':a92_0x1bfffa(0x1a9),'hidden':!![]},{'name':a92_0x1bfffa(0x1ae),'meowKey':a92_0x1bfffa(0x1ae),'type':a92_0x1bfffa(0x1ab),'description':a92_0x1bfffa(0x17c),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a92_0x1bfffa(0x195),a92_0x1bfffa(0x1a6),a92_0x1bfffa(0x1a8),a92_0x1bfffa(0x17e),'jq','dry-run',a92_0x1bfffa(0x180),'non-interactive','ci']);export function buildMeowFlags(){const _0x19dba8=a92_0x1bfffa;return Object['fromEntries'](GLOBAL_FLAGS[_0x19dba8(0x1a4)](_0x336a69=>[_0x336a69[_0x19dba8(0x19d)],{'type':_0x336a69[_0x19dba8(0x182)]}]));}
|
package/lib/constant/defaults.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a93_0x219ce3=a93_0x18c3;(function(_0x237b5b,_0xe66ff){const _0x5911d5=a93_0x18c3,_0x43244e=_0x237b5b();while(!![]){try{const _0x35bfae=-parseInt(_0x5911d5(0xd2))/0x1*(parseInt(_0x5911d5(0xda))/0x2)+-parseInt(_0x5911d5(0xd7))/0x3*(parseInt(_0x5911d5(0xd3))/0x4)+parseInt(_0x5911d5(0xce))/0x5+parseInt(_0x5911d5(0xd4))/0x6+parseInt(_0x5911d5(0xdc))/0x7*(-parseInt(_0x5911d5(0xd6))/0x8)+-parseInt(_0x5911d5(0xd9))/0x9*(-parseInt(_0x5911d5(0xdb))/0xa)+parseInt(_0x5911d5(0xd5))/0xb*(parseInt(_0x5911d5(0xd0))/0xc);if(_0x35bfae===_0xe66ff)break;else _0x43244e['push'](_0x43244e['shift']());}catch(_0x3d78d3){_0x43244e['push'](_0x43244e['shift']());}}}(a93_0x49e4,0xe9214));function a93_0x18c3(_0x48ab9a,_0x2cdfb0){_0x48ab9a=_0x48ab9a-0xce;const _0x49e41d=a93_0x49e4();let _0x18c39a=_0x49e41d[_0x48ab9a];return _0x18c39a;}export const DEFAULT_APP_PROFILE_NAME=a93_0x219ce3(0xdd);export const DEFAULT_CONFIG_VALUES={'env':a93_0x219ce3(0xcf),'format':a93_0x219ce3(0xd8),'locale':'en-US','riskLevel':a93_0x219ce3(0xd1)};function a93_0x49e4(){const _0x5d3296=['979Carhvu','16ydwXGd','4005381QzMtMS','compress','333EfxPBJ','44NcbpZC','209170wqZiUE','1848357LuiCkt','main','7609160OffBwH','production','135984LmJYjN','write','26662uHvCxy','4wgcaTQ','602304KzVbwg'];a93_0x49e4=function(){return _0x5d3296;};return a93_0x49e4();}export const DEFAULT_COMMAND_OUTPUT_FORMAT='compress';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a94_0x25c4a1=a94_0x1b19;(function(_0x284d11,_0x58826a){const _0x2a7838=a94_0x1b19,_0xcaebaf=_0x284d11();while(!![]){try{const _0x1c0614=parseInt(_0x2a7838(0x114))/0x1+-parseInt(_0x2a7838(0x116))/0x2+parseInt(_0x2a7838(0x119))/0x3+parseInt(_0x2a7838(0x11f))/0x4*(-parseInt(_0x2a7838(0x11b))/0x5)+-parseInt(_0x2a7838(0x117))/0x6*(parseInt(_0x2a7838(0x11e))/0x7)+-parseInt(_0x2a7838(0x11c))/0x8+parseInt(_0x2a7838(0x11d))/0x9;if(_0x1c0614===_0x58826a)break;else _0xcaebaf['push'](_0xcaebaf['shift']());}catch(_0x5a8795){_0xcaebaf['push'](_0xcaebaf['shift']());}}}(a94_0x1837,0x52334));function a94_0x1b19(_0x44fa5c,_0x2a656b){_0x44fa5c=_0x44fa5c-0x114;const _0x183750=a94_0x1837();let _0x1b1947=_0x183750[_0x44fa5c];return _0x1b1947;}function a94_0x1837(){const _0x5e7256=['463149BYhiBz','cliCdnBaseUrl','295WQdkUq','4396032CJjbga','9794331cyefsV','1421LQiBnf','1112NznesU','618304CeAQot','npmRegistryBaseUrl','732394CMTfHJ','17502jJoXIx','npmPackageName'];a94_0x1837=function(){return _0x5e7256;};return a94_0x1837();}import{PRODUCT_CONFIG}from'../constant/product.js';export const LOVRABET_NPM_PACKAGE_NAME=PRODUCT_CONFIG[a94_0x25c4a1(0x118)];export const LOVRABET_SKILL_SOURCE=PRODUCT_CONFIG['skillSource'];export const NPM_REGISTRY_BASE_URL=PRODUCT_CONFIG[a94_0x25c4a1(0x115)];export const LOVRABET_CLI_CDN_BASE_URL=PRODUCT_CONFIG[a94_0x25c4a1(0x11a)];export const LOVRABET_CLI_VERSION_POLICY_URL=LOVRABET_CLI_CDN_BASE_URL+'/dist/lovrabet-cli/config/index.json';
|
package/lib/constant/domain.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a95_0x4e35(_0x33a136,_0x8d3dd5){_0x33a136=_0x33a136-0x82;const _0x1ecd11=a95_0x1ecd();let _0x4e3509=_0x1ecd11[_0x33a136];return _0x4e3509;}const a95_0x2ab5c3=a95_0x4e35;(function(_0x1f1b41,_0x111deb){const _0x4acf91=a95_0x4e35,_0x417c8f=_0x1f1b41();while(!![]){try{const _0x5ba53c=-parseInt(_0x4acf91(0x84))/0x1*(-parseInt(_0x4acf91(0x89))/0x2)+-parseInt(_0x4acf91(0x83))/0x3*(parseInt(_0x4acf91(0x90))/0x4)+parseInt(_0x4acf91(0x8f))/0x5*(parseInt(_0x4acf91(0x8c))/0x6)+-parseInt(_0x4acf91(0x85))/0x7+-parseInt(_0x4acf91(0x92))/0x8+parseInt(_0x4acf91(0x8b))/0x9+-parseInt(_0x4acf91(0x88))/0xa*(-parseInt(_0x4acf91(0x8a))/0xb);if(_0x5ba53c===_0x111deb)break;else _0x417c8f['push'](_0x417c8f['shift']());}catch(_0x2abc85){_0x417c8f['push'](_0x417c8f['shift']());}}}(a95_0x1ecd,0x91755));import{getEnv,isProduction}from'../constant/env.js';function a95_0x1ecd(){const _0x43344a=['3WfJpJN','1asylhy','2136988sgjGQU','apiDomain','production','229900gYKaQt','114826hOSGED','242ZEuAQe','8768178jxBsTG','6ILZeaG','daily','runtime','3842470qCCUGk','1319444HDUwmD','serviceDomains','8599896FeociQ','skillDomain','api'];a95_0x1ecd=function(){return _0x43344a;};return a95_0x1ecd();}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(_0x49c8b4){const _0x538a50=a95_0x4e35;customApiDomain=_0x49c8b4?.[_0x538a50(0x86)],customUserDomain=_0x49c8b4?.['userDomain'],customRuntimeDomain=_0x49c8b4?.['runtimeDomain'],customSkillDomain=_0x49c8b4?.[_0x538a50(0x93)],activeRegion=_0x49c8b4?.['region']??DEFAULT_LOVRABET_REGION;}const getActiveRegionDomains=()=>{const _0x5c39c9=a95_0x4e35,_0x8a9abf=OFFICIAL_ROUTING_PROFILES[activeRegion][_0x5c39c9(0x91)];return isProduction(getEnv())?_0x8a9abf['production']:_0x5c39c9(0x8d)in _0x8a9abf?_0x8a9abf[_0x5c39c9(0x8d)]:_0x8a9abf[_0x5c39c9(0x87)];};export const getUserDomain=()=>customUserDomain||getActiveRegionDomains()['user'];export const getApiDomain=()=>customApiDomain||getActiveRegionDomains()[a95_0x2ab5c3(0x82)];export const getRuntimeDomain=()=>customRuntimeDomain||getActiveRegionDomains()[a95_0x2ab5c3(0x8e)];export const getSkillDomain=()=>customSkillDomain||getActiveRegionDomains()['skill'];
|
package/lib/constant/env.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a96_0x5e87(_0x58dce6,_0xbf22ef){_0x58dce6=_0x58dce6-0x1f2;const _0x267ebc=a96_0x267e();let _0x5e871b=_0x267ebc[_0x58dce6];return _0x5e871b;}const a96_0x5bf7ab=a96_0x5e87;(function(_0x2e90ec,_0x1018a1){const _0x5df0d3=a96_0x5e87,_0x39a96e=_0x2e90ec();while(!![]){try{const _0x4399dd=-parseInt(_0x5df0d3(0x1f7))/0x1+parseInt(_0x5df0d3(0x1ff))/0x2+parseInt(_0x5df0d3(0x1f2))/0x3*(parseInt(_0x5df0d3(0x1f4))/0x4)+-parseInt(_0x5df0d3(0x1fb))/0x5+parseInt(_0x5df0d3(0x1f3))/0x6*(-parseInt(_0x5df0d3(0x1fc))/0x7)+parseInt(_0x5df0d3(0x1f8))/0x8*(parseInt(_0x5df0d3(0x1f9))/0x9)+parseInt(_0x5df0d3(0x1f6))/0xa;if(_0x4399dd===_0x1018a1)break;else _0x39a96e['push'](_0x39a96e['shift']());}catch(_0x5059bd){_0x39a96e['push'](_0x39a96e['shift']());}}}(a96_0x267e,0xdd7da));import{productEnv}from'../constant/product.js';export const RUNTIME_ENV_VALUES=[a96_0x5bf7ab(0x1fa),'development',a96_0x5bf7ab(0x1fe)];export function normalizeEnv(_0x3591e7){const _0x368fc7=a96_0x5bf7ab;return _0x3591e7===_0x368fc7(0x1fd)?_0x368fc7(0x1fa):_0x3591e7;}export function isProduction(_0x1b190b){const _0x416d89=a96_0x5bf7ab;return normalizeEnv(_0x1b190b)===_0x416d89(0x1fa);}export function isDaily(_0x1e5b97){const _0x35a674=a96_0x5bf7ab;return normalizeEnv(_0x1e5b97)===_0x35a674(0x1fe);}function a96_0x267e(){const _0xb9a15f=['5032812bIQCVO','1364klNivw','ENV','14567380RGIdvZ','1541042dIhTfB','8TZChtV','6884037txboPm','production','1739945qOphOk','14AroolB','online','daily','1999474DWLexX','11019KikJld'];a96_0x267e=function(){return _0xb9a15f;};return a96_0x267e();}export function isDev(_0x51831f){const _0x7ab31f=normalizeEnv(_0x51831f);return _0x7ab31f==='development'||_0x7ab31f==='dev';}let env=normalizeEnv(productEnv(a96_0x5bf7ab(0x1f5))||a96_0x5bf7ab(0x1fa));export function getEnv(){return env;}export function initEnv(_0x2569be){env=normalizeEnv(_0x2569be);}
|
package/lib/constant/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a97_0x3f71(_0xca5202,_0x153eaa){_0xca5202=_0xca5202-0x1a2;const _0x3d2a1b=a97_0x3d2a();let _0x3f71bb=_0x3d2a1b[_0xca5202];return _0x3f71bb;}function a97_0x3d2a(){const _0x39fba1=['20316690PlzTPa','json','3179918EAnDhI','3240820BReKPM','8jwRNKA','6iWvocP','421402DcreLy','156998txxLZQ','1607325CxDyEg','9eEJOOI','3761465omVZqd','pretty'];a97_0x3d2a=function(){return _0x39fba1;};return a97_0x3d2a();}const a97_0x32d139=a97_0x3f71;(function(_0x241f46,_0x46d349){const _0x1ae6ff=a97_0x3f71,_0x545849=_0x241f46();while(!![]){try{const _0x227fc3=-parseInt(_0x1ae6ff(0x1ad))/0x1+parseInt(_0x1ae6ff(0x1ac))/0x2+-parseInt(_0x1ae6ff(0x1a2))/0x3+-parseInt(_0x1ae6ff(0x1a9))/0x4+parseInt(_0x1ae6ff(0x1a4))/0x5*(-parseInt(_0x1ae6ff(0x1ab))/0x6)+parseInt(_0x1ae6ff(0x1a8))/0x7*(parseInt(_0x1ae6ff(0x1aa))/0x8)+-parseInt(_0x1ae6ff(0x1a3))/0x9*(-parseInt(_0x1ae6ff(0x1a6))/0xa);if(_0x227fc3===_0x46d349)break;else _0x545849['push'](_0x545849['shift']());}catch(_0x2490f2){_0x545849['push'](_0x545849['shift']());}}}(a97_0x3d2a,0x6bc1d));export const OUTPUT_FORMAT_VALUES=[a97_0x32d139(0x1a7),a97_0x32d139(0x1a5),'compress'];
|
package/lib/constant/product.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a98_0x8a0b1d=a98_0x578c;function a98_0x5388(){const _0x103681=['Lovrabet\x20Runtime\x20CLI','.lovrabet-runtime.log','271424cNBkOd','@lovrabet/lovrabet-cli','https://g.lovrabet.com','SKIP_NPX_SKILLS','lovrabet/lovrabet-cli','lovrabet','.lovrabet.json','459055UEEgzY','envPrefix','9DlfSDA','21356180kojgnb','636361uHdnZY','4UVtyvZ','legacyEnvPrefixes','cli:lovrabet-runtime','5068944EkmIMx','4377324hjqqFH','898166gPPapX','https://registry.npmjs.org','279cJerfG','RABETBASE','.lovrabet','LOVRABET'];a98_0x5388=function(){return _0x103681;};return a98_0x5388();}function a98_0x578c(_0x353514,_0x49e31e){_0x353514=_0x353514-0x87;const _0x5388cd=a98_0x5388();let _0x578cf5=_0x5388cd[_0x353514];return _0x578cf5;}(function(_0x313fa0,_0x4329aa){const _0x2e4ffd=a98_0x578c,_0x17ed64=_0x313fa0();while(!![]){try{const _0x5d12fe=parseInt(_0x2e4ffd(0x99))/0x1+-parseInt(_0x2e4ffd(0x9f))/0x2*(-parseInt(_0x2e4ffd(0x97))/0x3)+-parseInt(_0x2e4ffd(0x9a))/0x4*(-parseInt(_0x2e4ffd(0x95))/0x5)+-parseInt(_0x2e4ffd(0x9d))/0x6+parseInt(_0x2e4ffd(0x9e))/0x7+parseInt(_0x2e4ffd(0x8e))/0x8*(parseInt(_0x2e4ffd(0x88))/0x9)+-parseInt(_0x2e4ffd(0x98))/0xa;if(_0x5d12fe===_0x4329aa)break;else _0x17ed64['push'](_0x17ed64['shift']());}catch(_0xbfdd6c){_0x17ed64['push'](_0x17ed64['shift']());}}}(a98_0x5388,0xbc7ef));export const PRODUCT_CONFIG={'cliBinName':a98_0x8a0b1d(0x93),'cliDisplayName':a98_0x8a0b1d(0x8c),'npmPackageName':a98_0x8a0b1d(0x8f),'skillSource':a98_0x8a0b1d(0x92),'internalSkillSource':'git@codeup.aliyun.com:yuntoo/open/lovrabet-runtime-cli.git','globalSkillName':a98_0x8a0b1d(0x93),'npmRegistryBaseUrl':a98_0x8a0b1d(0x87),'cliCdnBaseUrl':a98_0x8a0b1d(0x90),'envPrefix':a98_0x8a0b1d(0x8b),'legacyEnvPrefixes':[a98_0x8a0b1d(0x89)],'configFileNames':['.lovrabet.json'],'newConfigFileName':a98_0x8a0b1d(0x94),'homeDirName':a98_0x8a0b1d(0x8a),'logFileName':a98_0x8a0b1d(0x8d),'invokeSource':a98_0x8a0b1d(0x9c),'userCenterDisplayName':'Lovrabet\x20User\x20Center','skipNpxSkillsEnvSuffix':a98_0x8a0b1d(0x91),'accessKeyCreatePath':'/user/ak'};export function productEnvName(_0x46f016){const _0x27b42e=a98_0x8a0b1d;return PRODUCT_CONFIG[_0x27b42e(0x96)]+'_'+_0x46f016;}export function productEnvNames(_0x5a9928){const _0x3b6ab8=a98_0x8a0b1d;return[productEnvName(_0x5a9928),...PRODUCT_CONFIG[_0x3b6ab8(0x9b)]['map'](_0x11a372=>_0x11a372+'_'+_0x5a9928)];}export function productEnv(_0xa4841d){for(const _0x377241 of productEnvNames(_0xa4841d)){const _0x38c4e0=process.env[_0x377241];if(_0x38c4e0!==undefined)return _0x38c4e0;}return undefined;}
|
package/lib/constant/region.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3b401b,_0x413d8){const _0x6906da=a99_0x3705,_0x4e83a7=_0x3b401b();while(!![]){try{const _0xd3fc3f=-parseInt(_0x6906da(0xa0))/0x1*(-parseInt(_0x6906da(0xa6))/0x2)+parseInt(_0x6906da(0x95))/0x3*(parseInt(_0x6906da(0xa4))/0x4)+parseInt(_0x6906da(0x96))/0x5*(parseInt(_0x6906da(0x99))/0x6)+-parseInt(_0x6906da(0x9d))/0x7*(parseInt(_0x6906da(0x9b))/0x8)+-parseInt(_0x6906da(0xa7))/0x9+-parseInt(_0x6906da(0xa5))/0xa+parseInt(_0x6906da(0x9f))/0xb;if(_0xd3fc3f===_0x413d8)break;else _0x4e83a7['push'](_0x4e83a7['shift']());}catch(_0x13a411){_0x4e83a7['push'](_0x4e83a7['shift']());}}}(a99_0x4e04,0x9eddb));import{DEFAULT_REGION,ENABLED_REGION_VALUES,REGION_ALIASES,REGION_VALUES}from'../generated/official-routing.js';function a99_0x3705(_0x5611f0,_0x4ae49d){_0x5611f0=_0x5611f0-0x95;const _0x4e043d=a99_0x4e04();let _0x370593=_0x4e043d[_0x5611f0];return _0x370593;}import{CliErrors}from'../errors.js';export const LOVRABET_REGION_VALUES=REGION_VALUES;export const ENABLED_LOVRABET_REGION_VALUES=ENABLED_REGION_VALUES;export const DEFAULT_LOVRABET_REGION=DEFAULT_REGION;function a99_0x4e04(){const _0x43f8b6=['436JKVzbe','Run\x20`lovrabet\x20config\x20init`\x20to\x20restore\x20the\x20global\x20country/region\x20configuration.','string','\x22\x20is\x20not\x20currently\x20available.','56IgxkgI','2828690BgZGLM','2168ZmTNuc','10089963UerIHj','.\x20Run\x20`lovrabet\x20config\x20init`\x20to\x20repair\x20the\x20global\x20configuration.','137244KpaLPV','2532110KBzAnP','Region\x20\x22','Invalid\x20region\x20value:\x20expected\x20a\x20string,\x20received\x20','6CEFabW','includes','8RyYnTX','validation','5282949idHYTG','Available\x20regions:\x20','13088680ukvKcl'];a99_0x4e04=function(){return _0x43f8b6;};return a99_0x4e04();}export function isLovrabetRegion(_0x42e3f8){const _0x56f913=a99_0x3705;return typeof _0x42e3f8==='string'&&LOVRABET_REGION_VALUES[_0x56f913(0x9a)](_0x42e3f8);}export function isEnabledLovrabetRegion(_0x85abb1){const _0x2cf815=a99_0x3705;return typeof _0x85abb1===_0x2cf815(0xa2)&&ENABLED_LOVRABET_REGION_VALUES[_0x2cf815(0x9a)](_0x85abb1);}export function normalizeLovrabetRegion(_0xfbb426){const _0x555dd6=a99_0x3705;if(_0xfbb426===undefined||_0xfbb426===null||_0xfbb426==='')return DEFAULT_LOVRABET_REGION;if(typeof _0xfbb426!==_0x555dd6(0xa2))throw CliErrors[_0x555dd6(0x9c)](_0x555dd6(0x98)+typeof _0xfbb426+'.',_0x555dd6(0xa1));const _0xe7a3a1=REGION_ALIASES[_0xfbb426]??_0xfbb426;if(isEnabledLovrabetRegion(_0xe7a3a1))return _0xe7a3a1;throw CliErrors[_0x555dd6(0x9c)](_0x555dd6(0x97)+_0xfbb426+_0x555dd6(0xa3),_0x555dd6(0x9e)+ENABLED_LOVRABET_REGION_VALUES['join'](',\x20')+_0x555dd6(0xa8));}
|
package/lib/constant/risk.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a100_0x347840=a100_0x9550;(function(_0x4c57b4,_0x3ab367){const _0xbc89a8=a100_0x9550,_0x4a86df=_0x4c57b4();while(!![]){try{const _0xf67b9b=-parseInt(_0xbc89a8(0x18b))/0x1+-parseInt(_0xbc89a8(0x18e))/0x2*(parseInt(_0xbc89a8(0x18c))/0x3)+-parseInt(_0xbc89a8(0x195))/0x4+-parseInt(_0xbc89a8(0x18f))/0x5*(-parseInt(_0xbc89a8(0x194))/0x6)+parseInt(_0xbc89a8(0x188))/0x7*(-parseInt(_0xbc89a8(0x191))/0x8)+parseInt(_0xbc89a8(0x189))/0x9*(parseInt(_0xbc89a8(0x187))/0xa)+-parseInt(_0xbc89a8(0x190))/0xb*(-parseInt(_0xbc89a8(0x193))/0xc);if(_0xf67b9b===_0x3ab367)break;else _0x4a86df['push'](_0x4a86df['shift']());}catch(_0x61992d){_0x4a86df['push'](_0x4a86df['shift']());}}}(a100_0x4843,0x873c3));function a100_0x4843(){const _0x2d9395=['7trjuin','36MZLmCC','read','192676VfcuQw','12pSnEIX','high-risk-write','505084LPCLxF','5dCBGEa','18799xlTKCt','8132440OwIweV','write','11964vdFibS','3852678dUCrkv','1819648WlXaol','2205620eWPSns'];a100_0x4843=function(){return _0x2d9395;};return a100_0x4843();}function a100_0x9550(_0x3c87b5,_0x55b10c){_0x3c87b5=_0x3c87b5-0x187;const _0x484344=a100_0x4843();let _0x95502c=_0x484344[_0x3c87b5];return _0x95502c;}export const RISK_LEVEL_VALUES=[a100_0x347840(0x18a),a100_0x347840(0x192),a100_0x347840(0x18d)];
|