@lovrabet/lovrabet-cli 2.3.5-beta.1 → 2.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cli.js +1 -1
- package/lib/commands/api-doc/index.js +1 -1
- package/lib/commands/app/cache.js +1 -1
- package/lib/commands/app/definitions.js +1 -1
- package/lib/commands/app/eligibility.js +1 -1
- package/lib/commands/app/mock-loader.js +1 -1
- package/lib/commands/app/remote-source.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/approval/index.js +1 -1
- package/lib/commands/artifact/index.js +1 -1
- package/lib/commands/auth/device.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/auth/prompt.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/exec.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/common/config-policy.js +1 -1
- package/lib/commands/common/constraints.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/config/definitions.js +1 -1
- package/lib/commands/config/init.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/data/import-excel.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.d.ts +2 -0
- 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/access-error.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/services/dataset-import/auto-id-runner.js +1 -1
- package/lib/services/dataset-import/excel-reader.js +1 -1
- package/lib/services/dataset-import/metadata.js +1 -1
- package/lib/services/dataset-import/preview.js +1 -1
- package/lib/services/dataset-import/runner.js +1 -1
- package/lib/skills/builtin-skill.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/runtime-skill-sync/constants.js +1 -1
- package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
- package/lib/skills/runtime-skill-sync/hashing.js +1 -1
- package/lib/skills/runtime-skill-sync/install-target.js +1 -1
- package/lib/skills/runtime-skill-sync/links.js +1 -1
- package/lib/skills/runtime-skill-sync/list-local.js +1 -1
- package/lib/skills/runtime-skill-sync/local-files.js +1 -1
- package/lib/skills/runtime-skill-sync/materialize.js +1 -1
- package/lib/skills/runtime-skill-sync/metadata.js +1 -1
- package/lib/skills/runtime-skill-sync/paths.js +1 -1
- package/lib/skills/runtime-skill-sync/push.js +1 -1
- package/lib/skills/runtime-skill-sync/scopes.js +1 -1
- package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
- package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
- package/lib/skills/runtime-skill-sync.js +1 -1
- package/lib/skills/skill-presence.js +1 -1
- package/lib/utils/access-key-redaction.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/lossless-json.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/positive-safe-integer.js +1 -1
- package/lib/utils/redaction.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
- package/skills/lovrabet/SKILL.md +1 -1
- package/skills/lovrabet.manifest.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a83_0x1e99(_0x313ca4,_0x14a57a){_0x313ca4=_0x313ca4-0x18f;const _0x9b0bfa=a83_0x9b0b();let _0x1e998a=_0x9b0bfa[_0x313ca4];return _0x1e998a;}const a83_0x1cc531=a83_0x1e99;(function(_0x1bdbd5,_0x46fc44){const _0x3d4121=a83_0x1e99,_0x174946=_0x1bdbd5();while(!![]){try{const _0x32142f=-parseInt(_0x3d4121(0x193))/0x1+-parseInt(_0x3d4121(0x191))/0x2+parseInt(_0x3d4121(0x192))/0x3+-parseInt(_0x3d4121(0x19e))/0x4*(parseInt(_0x3d4121(0x19f))/0x5)+-parseInt(_0x3d4121(0x196))/0x6*(-parseInt(_0x3d4121(0x19c))/0x7)+-parseInt(_0x3d4121(0x18f))/0x8+parseInt(_0x3d4121(0x19d))/0x9;if(_0x32142f===_0x46fc44)break;else _0x174946['push'](_0x174946['shift']());}catch(_0xb1dcba){_0x174946['push'](_0x174946['shift']());}}}(a83_0x9b0b,0x5922d));function a83_0x9b0b(){const _0x59e7f9=['sqlcode','sqlContent','1488340ZFEEod','11451960KkYmbd','502480IWsSHj','25TiWKrf','str','3218744YZuden','sql','173340nqYMQz','1725075XdIMLU','577871KtSDvT','sqlCode','read','6yACjDV','dbId','verbose','Get\x20custom\x20SQL\x20query\x20details\x20by\x20sqlCode'];a83_0x9b0b=function(){return _0x59e7f9;};return a83_0x9b0b();}import{getSqlQueryInfo}from'../../core/api-client.js';import{getDbName}from'../../core/db-resolver.js';import{SQLCODE_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';export const sqlDetail={'service':a83_0x1cc531(0x190),'command':'detail','description':a83_0x1cc531(0x199),'risk':a83_0x1cc531(0x195),'flags':[SQLCODE_FLAG,VERBOSE_FLAG],async 'execute'(_0x1e89c6){const _0x288afd=a83_0x1cc531,_0x2e1e76=await getSqlQueryInfo(_0x1e89c6['appCode'],_0x1e89c6[_0x288afd(0x1a0)](_0x288afd(0x19a))),_0x3576ce=_0x1e89c6['bool'](_0x288afd(0x198));if(_0x3576ce)return{'ok':!![],'data':_0x2e1e76};const _0x39111f=_0x2e1e76[_0x288afd(0x197)]?await getDbName(_0x1e89c6['appCode'],_0x2e1e76[_0x288afd(0x197)]):undefined;return{'ok':!![],'data':{'sqlCode':_0x2e1e76[_0x288afd(0x194)],'sqlName':_0x2e1e76['sqlName'],'db':_0x39111f?_0x39111f+'\x20('+_0x2e1e76[_0x288afd(0x197)]+')':_0x2e1e76[_0x288afd(0x197)]??'','sqlContent':_0x2e1e76[_0x288afd(0x19b)]??''}};}};
|
package/lib/commands/sql/exec.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a84_0x526abc=a84_0x5bf3;(function(_0x427048,_0x3b279d){const _0xf46282=a84_0x5bf3,_0x371d0c=_0x427048();while(!![]){try{const _0x339368=-parseInt(_0xf46282(0xd4))/0x1+-parseInt(_0xf46282(0xcd))/0x2*(parseInt(_0xf46282(0xc9))/0x3)+parseInt(_0xf46282(0xd7))/0x4+parseInt(_0xf46282(0xc8))/0x5+-parseInt(_0xf46282(0xc5))/0x6+-parseInt(_0xf46282(0xc7))/0x7*(parseInt(_0xf46282(0xca))/0x8)+-parseInt(_0xf46282(0xd1))/0x9*(-parseInt(_0xf46282(0xd0))/0xa);if(_0x339368===_0x3b279d)break;else _0x371d0c['push'](_0x371d0c['shift']());}catch(_0x516e2c){_0x371d0c['push'](_0x371d0c['shift']());}}}(a84_0x5ae4,0xdd23d));import{executeSdkSql}from'../../core/sdk-client.js';function a84_0x5bf3(_0x1cf5cf,_0x29d0b4){_0x1cf5cf=_0x1cf5cf-0xc3;const _0x5ae403=a84_0x5ae4();let _0x5bf3f0=_0x5ae403[_0x1cf5cf];return _0x5bf3f0;}import{SQLCODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';function a84_0x5ae4(){const _0x588c37=['length','100cbcEpB','2165589CRsyJz','now','exec','1396772UWJhWh','isArray','execResult','6758896GDiOxS','read','SQL\x20execution\x20failed','params','5037372gEoQhe','\x20row(s)\x20in\x20','7bTbxdw','6706410qFYPtn','2113179oERILV','12725600IyRqxx','sql','Execute\x20a\x20custom\x20SQL\x20query\x20by\x20sqlCode','2weJRIe','str'];a84_0x5ae4=function(){return _0x588c37;};return a84_0x5ae4();}import{parseJsonParams}from'../../utils/params.js';export const sqlExec={'service':a84_0x526abc(0xcb),'command':a84_0x526abc(0xd3),'description':a84_0x526abc(0xcc),'risk':a84_0x526abc(0xd8),'flags':[SQLCODE_FLAG,PARAMS_FLAG],async 'execute'(_0x275e8b){const _0x388a39=a84_0x526abc,_0x2b5185=parseJsonParams(_0x275e8b[_0x388a39(0xce)](_0x388a39(0xc4))),_0x3f2f62=Date['now'](),_0x134f95=await executeSdkSql(_0x275e8b[_0x388a39(0xce)]('sqlcode'),_0x2b5185),_0x280327=Date[_0x388a39(0xd2)]()-_0x3f2f62,_0x986708=_0x134f95?.[_0x388a39(0xd6)]??_0x134f95,_0x3ad7c2=_0x134f95?.['execSuccess']??!![];if(!_0x3ad7c2)return{'ok':![],'data':{'error':_0x134f95?.['execError']||_0x388a39(0xc3),'elapsed':_0x280327},'message':_0x388a39(0xc3)};const _0x486ad3=Array[_0x388a39(0xd5)](_0x986708)?_0x986708:[];return{'ok':!![],'data':{'rows':_0x486ad3,'rowCount':_0x486ad3[_0x388a39(0xcf)],'elapsed':_0x280327},'message':'Returned\x20'+_0x486ad3[_0x388a39(0xcf)]+_0x388a39(0xc6)+_0x280327+'ms'};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1fdfc1,_0x5cab0c){const _0x19f021=a85_0x3512,_0x57495e=_0x1fdfc1();while(!![]){try{const _0x19f1a6=parseInt(_0x19f021(0x1a1))/0x1*(-parseInt(_0x19f021(0x19f))/0x2)+parseInt(_0x19f021(0x19a))/0x3*(parseInt(_0x19f021(0x198))/0x4)+-parseInt(_0x19f021(0x19b))/0x5*(parseInt(_0x19f021(0x19c))/0x6)+-parseInt(_0x19f021(0x19d))/0x7+-parseInt(_0x19f021(0x19e))/0x8+-parseInt(_0x19f021(0x199))/0x9+parseInt(_0x19f021(0x1a0))/0xa;if(_0x19f1a6===_0x5cab0c)break;else _0x57495e['push'](_0x57495e['shift']());}catch(_0x1276a0){_0x57495e['push'](_0x57495e['shift']());}}}(a85_0x5ddd,0xcd3d6));function a85_0x3512(_0x302c8e,_0x38fa56){_0x302c8e=_0x302c8e-0x198;const _0x5dddce=a85_0x5ddd();let _0x3512fa=_0x5dddce[_0x302c8e];return _0x3512fa;}import{sqlDetail}from'../../commands/sql/detail.js';function a85_0x5ddd(){const _0x1e0834=['56443250vVTYiL','5fKGsMX','7988xAQNEd','14130306jcSaZG','129ysysDy','4797105qjMRTl','6qCsSIk','9872429BpUKjD','5252536HCGYsV','117266bmElEu'];a85_0x5ddd=function(){return _0x1e0834;};return a85_0x5ddd();}import{sqlExec}from'../../commands/sql/exec.js';export const sqlDefinitions=[sqlDetail,sqlExec];
|
package/lib/commands/update.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a86_0x46127c=a86_0x6f76;(function(_0x1ed7e4,_0x43b416){const _0x29c822=a86_0x6f76,_0x485dc7=_0x1ed7e4();while(!![]){try{const _0x3f59ec=-parseInt(_0x29c822(0xe5))/0x1+parseInt(_0x29c822(0xf8))/0x2+-parseInt(_0x29c822(0xe4))/0x3*(-parseInt(_0x29c822(0xd5))/0x4)+parseInt(_0x29c822(0xd9))/0x5*(parseInt(_0x29c822(0x101))/0x6)+-parseInt(_0x29c822(0xd1))/0x7*(-parseInt(_0x29c822(0x106))/0x8)+parseInt(_0x29c822(0x117))/0x9+parseInt(_0x29c822(0xff))/0xa*(-parseInt(_0x29c822(0x120))/0xb);if(_0x3f59ec===_0x43b416)break;else _0x485dc7['push'](_0x485dc7['shift']());}catch(_0x30cea2){_0x485dc7['push'](_0x485dc7['shift']());}}}(a86_0x2160,0x486e0));import{fileURLToPath}from'node:url';import{basename,dirname,relative,win32}from'node:path';import{execaSync}from'execa';import a86_0x2c0416 from'semver';import{CliErrors}from'../errors.js';function a86_0x6f76(_0x31aa9f,_0x100f1b){_0x31aa9f=_0x31aa9f-0xcc;const _0x2160d0=a86_0x2160();let _0x6f76dc=_0x2160d0[_0x31aa9f];return _0x6f76dc;}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';function a86_0x2160(){const _0xdd1e73=['10thlNjk','repairCommand','Global\x20npm\x20prefix\x20is\x20not\x20writable;\x20retrying\x20in\x20the\x20current\x20CLI\x20Node\x20environment:\x20','\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.','join',',\x20found\x20','length','lib','Run:\x20npm\x20install\x20-g\x20','entries','Install\x20a\x20specific\x20CLI\x20version','1734wZoCYZ','322235LWTnXB','\x20doctor','\x20->\x20','/-/package/','pipe','Checking\x20npm\x20dist-tags...','error','cwd','CLI\x20Built-in\x20Skill\x20repair\x20failed\x20[','source','install','Updating\x20','Checking\x20CLI\x20Built-in\x20Skill...','expected\x20','Update\x20the\x20','\x20is\x20current.','current','state','version','209136tqYdVi',',\x20state\x20','Already\x20on\x20requested\x20version\x20(v','fromEntries','unknown','update','Update\x20failed:\x20','1550wWOQlg','\x20dist-tags,\x20then\x20retry.','426198TPlgXk','valid','args','Invalid\x20version:\x20','bool','16672jxaiVX','json','\x20CLI\x20from\x20npm','shortMessage','object','code',',\x20but\x20Built-in\x20Skill\x20verification\x20failed:\x20','skillVersion','map','toLowerCase','stderr','exit\x20','validation','run','find','reason','stdout','377370VnOaEg','exitCode','latest','str','\x20\x20CLI\x20Built-in\x20Skill\x20','Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','log','\x20version\x20from\x20npm.','Choose\x20exactly\x20one\x20target:\x20--latest,\x20--beta,\x20or\x20--version\x20<version>.','11429fimNuO','write','npm','string','beta',',\x20then\x20verify\x20with:\x20','filter','win32','read','Run:\x20','boolean','relative','Version\x20comparison\x20failed:\x20','dirname','basename','1204QwynIi','Current\x20version:\x20','trim','Install\x20the\x20version\x20from\x20npm\x20latest\x20dist-tag','920ywlnNE','platform','nonInteractive','apiError'];a86_0x2160=function(){return _0xdd1e73;};return a86_0x2160();}import{inspectInstalledBuiltinSkillVersion,installBuiltinSkill}from'../skills/builtin-skill.js';const updateFlags=[{'name':'latest','type':a86_0x46127c(0xcc),'description':a86_0x46127c(0xd4),'default':![]},{'name':'beta','type':'boolean','description':a86_0x46127c(0x11c),'default':![]},{'name':a86_0x46127c(0xf7),'type':a86_0x46127c(0x123),'description':a86_0x46127c(0xe3)}];function getRequestedVersion(_0x20f88e){const _0x383565=a86_0x46127c,_0x152b5a=_0x20f88e[_0x383565(0x11a)](_0x383565(0xf7))[_0x383565(0xd3)]();if(_0x152b5a)return _0x152b5a;return String(_0x20f88e[_0x383565(0x103)]?.[0x0]??'')[_0x383565(0xd3)]();}async function validateUpdateFlags(_0x5803ea){const _0x75d133=a86_0x46127c,_0x36925b=getRequestedVersion(_0x5803ea),_0x1a1495=[_0x5803ea['bool'](_0x75d133(0x119))?_0x75d133(0x119):'',_0x5803ea['bool'](_0x75d133(0x124))?'beta':'',_0x36925b?_0x75d133(0xf7):''][_0x75d133(0x126)](Boolean);if(_0x1a1495[_0x75d133(0xdf)]>0x1)throw CliErrors[_0x75d133(0x112)]('--latest,\x20--beta,\x20and\x20version\x20cannot\x20be\x20used\x20together.',_0x75d133(0x11f));if(_0x36925b&&!a86_0x2c0416[_0x75d133(0x102)](_0x36925b))throw CliErrors[_0x75d133(0x112)](_0x75d133(0x104)+_0x36925b,'Use\x20a\x20full\x20semver\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.');}async function fetchNpmDistTags(){const _0x20c123=a86_0x46127c;try{const _0x2e1e37=NPM_REGISTRY_BASE_URL+_0x20c123(0xe8)+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+'/dist-tags',_0x2f57e9=await fetch(_0x2e1e37,{'signal':AbortSignal['timeout'](0x2710)});if(!_0x2f57e9['ok'])return null;const _0x280a9d=await _0x2f57e9[_0x20c123(0x107)]();if(!_0x280a9d||typeof _0x280a9d!==_0x20c123(0x10a))return null;return Object[_0x20c123(0xfb)](Object[_0x20c123(0xe2)](_0x280a9d)[_0x20c123(0x126)](([,_0x3de269])=>typeof _0x3de269==='string'&&_0x3de269[_0x20c123(0xd3)]())[_0x20c123(0x10e)](([_0x2d5e8b,_0x3d1f10])=>[_0x2d5e8b,String(_0x3d1f10)[_0x20c123(0xd3)]()]));}catch{return null;}}async function resolveTargetVersion(_0x1ec0b0){const _0x366afa=a86_0x46127c,_0x287e79=getRequestedVersion(_0x1ec0b0);if(_0x287e79)return{'version':_0x287e79,'source':_0x366afa(0xf7)};const _0x1940d3=_0x1ec0b0[_0x366afa(0x105)](_0x366afa(0x124))?_0x366afa(0x124):_0x366afa(0x119),_0x129d1d=await fetchNpmDistTags(),_0x2ec6d5=_0x129d1d?.[_0x1940d3];if(!_0x2ec6d5)return null;return{'version':_0x2ec6d5,'source':_0x1940d3};}function shouldInstallTarget(_0x4e219a,_0x240267){const _0x301939=a86_0x46127c;if(_0x240267['source']==='version'||_0x240267['source']===_0x301939(0x124))return!a86_0x2c0416['eq'](_0x4e219a,_0x240267[_0x301939(0xf7)]);return a86_0x2c0416['lt'](_0x4e219a,_0x240267[_0x301939(0xf7)]);}export function installCliPackage(_0x31154d,_0x57a47e,_0x772dfb=resolveCurrentCliNpmPrefix()){const _0x42518f=a86_0x46127c,_0x56f149=LOVRABET_NPM_PACKAGE_NAME+'@'+_0x31154d,_0x13faba=[_0x42518f(0xef),'-g',_0x56f149],_0x4b4c6e=runNpmInstall(_0x13faba,_0x57a47e);if(_0x4b4c6e['ok']||!isNpmPrefixPermissionError(_0x4b4c6e['error']))return _0x4b4c6e;if(!_0x772dfb||_0x4b4c6e[_0x42518f(0xeb)]?.[_0x42518f(0x10f)]()['includes'](_0x772dfb[_0x42518f(0x10f)]()))return _0x4b4c6e;return console['warn'](_0x42518f(0xdb)+_0x772dfb),runNpmInstall([..._0x13faba,'--prefix',_0x772dfb],_0x57a47e);}export function resolveCurrentCliNpmPrefix(_0x18ae65=fileURLToPath(import.meta.url),_0x3df8b3=process[a86_0x46127c(0xd6)]){const _0x175b69=a86_0x46127c,_0x550628=_0x3df8b3===_0x175b69(0x127)?win32:{'basename':basename,'dirname':dirname,'relative':relative},_0x4f7b13=_0x550628[_0x175b69(0xcf)](_0x550628['dirname'](_0x550628[_0x175b69(0xcf)](_0x18ae65))),_0x1bd128=_0x3df8b3===_0x175b69(0x127)?'@lovrabet\x5clovrabet-cli':'@lovrabet/lovrabet-cli';let _0x46df19=_0x550628[_0x175b69(0xcf)](_0x4f7b13);while(!![]){if(_0x550628[_0x175b69(0xd0)](_0x46df19)==='node_modules'&&_0x550628[_0x175b69(0xcd)](_0x46df19,_0x4f7b13)===_0x1bd128){const _0x14c27d=_0x550628[_0x175b69(0xcf)](_0x46df19);return _0x550628[_0x175b69(0xd0)](_0x14c27d)===_0x175b69(0xe0)?_0x550628['dirname'](_0x14c27d):_0x14c27d;}const _0x46123c=_0x550628['dirname'](_0x46df19);if(_0x46123c===_0x46df19)return null;_0x46df19=_0x46123c;}}function runNpmInstall(_0x3242db,_0x3bea45){const _0x28a68d=a86_0x46127c;console['log']('*\x20'+[_0x28a68d(0x122),..._0x3242db][_0x28a68d(0xdd)]('\x20'));const _0x45fee2=execaSync(_0x28a68d(0x122),_0x3242db,{'cwd':process[_0x28a68d(0xec)](),'stdio':_0x28a68d(0xe9),'env':process.env,'extendEnv':![],'shell':![],'reject':![]}),_0x288592=_0x45fee2[_0x28a68d(0x110)]?String(_0x45fee2['stderr'])[_0x28a68d(0xd3)]():'',_0x48f9d1=_0x45fee2[_0x28a68d(0x116)]?String(_0x45fee2[_0x28a68d(0x116)])[_0x28a68d(0xd3)]():'';if(!_0x3bea45){if(_0x48f9d1)process['stdout'][_0x28a68d(0x121)](_0x48f9d1+'\x0a');if(_0x288592)process[_0x28a68d(0x110)][_0x28a68d(0x121)](_0x288592+'\x0a');}if(_0x45fee2[_0x28a68d(0x118)]===0x0)return{'ok':!![]};const _0x1be33d=_0x288592||_0x48f9d1||_0x45fee2[_0x28a68d(0x109)]||_0x28a68d(0x111)+(_0x45fee2[_0x28a68d(0x118)]??'unknown');return{'ok':![],'error':_0x1be33d};}function isNpmPrefixPermissionError(_0x5a7c46){return Boolean(_0x5a7c46&&/\b(?:EACCES|EPERM)\b/['test'](_0x5a7c46));}function repairCurrentBuiltinSkill(_0x18b04d){const _0x32925e=a86_0x46127c;console['log'](_0x32925e(0xf1));const _0x9b75d9=installBuiltinSkill({'stdio':_0x18b04d?_0x32925e(0xe9):'inherit'});if(_0x9b75d9['ok']){console[_0x32925e(0x11d)](_0x32925e(0x11b)+_0x9b75d9['skillVersion']+_0x32925e(0xf4));return;}throw CliErrors[_0x32925e(0xd8)](_0x32925e(0xed)+(_0x9b75d9[_0x32925e(0x10b)]||'INSTALL_FAILED')+']:\x20'+(_0x9b75d9[_0x32925e(0xeb)]||_0x32925e(0xfc)),'Run:\x20'+_0x9b75d9['repairCommand']+',\x20then\x20verify\x20with:\x20'+CLI_BIN_NAME+'\x20doctor');}function verifyUpdatedBuiltinSkill(_0x54e2ac){const _0x562a7f=a86_0x46127c;console[_0x562a7f(0x11d)]('Checking\x20CLI\x20Built-in\x20Skill...');const _0x3c7fb9=inspectInstalledBuiltinSkillVersion(_0x54e2ac);if(_0x3c7fb9[_0x562a7f(0xf6)]===_0x562a7f(0xf5)){console[_0x562a7f(0x11d)](_0x562a7f(0x11b)+_0x54e2ac+_0x562a7f(0xf4));return;}const _0x358606=_0x3c7fb9[_0x562a7f(0x10d)]?_0x562a7f(0xf2)+_0x54e2ac+_0x562a7f(0xde)+_0x3c7fb9[_0x562a7f(0x10d)]:_0x562a7f(0xf2)+_0x54e2ac+_0x562a7f(0xf9)+_0x3c7fb9[_0x562a7f(0xf6)],_0x476063=_0x3c7fb9[_0x562a7f(0x115)]?_0x358606+':\x20'+_0x3c7fb9[_0x562a7f(0x115)]:_0x358606;throw CliErrors[_0x562a7f(0xd8)]('CLI\x20updated\x20to\x20v'+_0x54e2ac+_0x562a7f(0x10c)+_0x476063,_0x562a7f(0x129)+_0x3c7fb9[_0x562a7f(0xda)]+_0x562a7f(0x125)+CLI_BIN_NAME+_0x562a7f(0xe6));}async function execute(_0x312e2f){const _0x39c5a3=a86_0x46127c;await validateUpdateFlags(_0x312e2f);const _0x316445=getCliVersion();console[_0x39c5a3(0x11d)](_0x39c5a3(0xd2)+_0x316445),console[_0x39c5a3(0x11d)](_0x39c5a3(0xea));const _0x22a6ac=await resolveTargetVersion(_0x312e2f);if(!_0x22a6ac){const _0x358f07=_0x312e2f[_0x39c5a3(0x105)]('beta')?_0x39c5a3(0x124):_0x39c5a3(0x119),_0x56ec72='Unable\x20to\x20resolve\x20'+_0x358f07+_0x39c5a3(0x11e);throw CliErrors['apiError'](_0x56ec72,_0x39c5a3(0xe1)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x358f07);}const _0x23459d=[_0x316445,_0x22a6ac['version']][_0x39c5a3(0x114)](_0x34a883=>!a86_0x2c0416['valid'](_0x34a883));if(_0x23459d){const _0x1391c8=_0x39c5a3(0xce)+_0x23459d+'.';throw CliErrors[_0x39c5a3(0xd8)](_0x1391c8,'Run:\x20npm\x20view\x20'+LOVRABET_NPM_PACKAGE_NAME+_0x39c5a3(0x100));}if(!shouldInstallTarget(_0x316445,_0x22a6ac)){const _0x734a2c=_0x22a6ac[_0x39c5a3(0xee)]===_0x39c5a3(0xf7)?_0x39c5a3(0xfa)+_0x22a6ac['version']+').':'Already\x20up\x20to\x20date\x20(v'+_0x22a6ac[_0x39c5a3(0xf7)]+').';return console[_0x39c5a3(0x11d)](_0x734a2c),repairCurrentBuiltinSkill(_0x312e2f[_0x39c5a3(0xd7)]),{'ok':!![]};}console[_0x39c5a3(0x11d)](_0x39c5a3(0xf0)+LOVRABET_NPM_PACKAGE_NAME+':\x20'+_0x316445+_0x39c5a3(0xe7)+_0x22a6ac[_0x39c5a3(0xf7)]);const _0x1da1ae=installCliPackage(_0x22a6ac[_0x39c5a3(0xf7)],_0x312e2f[_0x39c5a3(0xd7)]);if(!_0x1da1ae['ok']){const _0x553663=_0x39c5a3(0xfe)+(_0x1da1ae[_0x39c5a3(0xeb)]||_0x39c5a3(0xfc));throw CliErrors[_0x39c5a3(0xd8)](_0x553663,_0x39c5a3(0xe1)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x22a6ac[_0x39c5a3(0xf7)]);}return console[_0x39c5a3(0x11d)]('Updated\x20to\x20v'+_0x22a6ac[_0x39c5a3(0xf7)]+'.'),console[_0x39c5a3(0x11d)](_0x39c5a3(0xdc)),verifyUpdatedBuiltinSkill(_0x22a6ac[_0x39c5a3(0xf7)]),{'ok':!![]};}export const updateDefinition={'service':a86_0x46127c(0xfd),'command':a86_0x46127c(0x113),'description':a86_0x46127c(0xf3)+CLI_BIN_NAME+a86_0x46127c(0x108),'risk':a86_0x46127c(0x128),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
|
|
1
|
+
const a86_0x21f3a4=a86_0x49de;(function(_0x1ad3ed,_0x30408d){const _0x308756=a86_0x49de,_0x4a4082=_0x1ad3ed();while(!![]){try{const _0x23d078=-parseInt(_0x308756(0xe3))/0x1+parseInt(_0x308756(0xf7))/0x2*(-parseInt(_0x308756(0xd7))/0x3)+parseInt(_0x308756(0xd3))/0x4+-parseInt(_0x308756(0xcb))/0x5*(parseInt(_0x308756(0xbd))/0x6)+parseInt(_0x308756(0xad))/0x7+parseInt(_0x308756(0xf8))/0x8+parseInt(_0x308756(0xe5))/0x9;if(_0x23d078===_0x30408d)break;else _0x4a4082['push'](_0x4a4082['shift']());}catch(_0x21dbf9){_0x4a4082['push'](_0x4a4082['shift']());}}}(a86_0x350c,0x9f32e));import{fileURLToPath}from'node:url';import{basename,dirname,relative,win32}from'node:path';import{execaSync}from'execa';import a86_0x31233d 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';function a86_0x49de(_0x16da41,_0x7b3e4b){_0x16da41=_0x16da41-0xa5;const _0x350c29=a86_0x350c();let _0x49dee5=_0x350c29[_0x16da41];return _0x49dee5;}import{inspectInstalledBuiltinSkillVersion,installBuiltinSkill}from'../skills/builtin-skill.js';const updateFlags=[{'name':a86_0x21f3a4(0xc5),'type':'boolean','description':a86_0x21f3a4(0xab),'default':![]},{'name':'beta','type':'boolean','description':a86_0x21f3a4(0xfa),'default':![]},{'name':'version','type':a86_0x21f3a4(0xa8),'description':'Install\x20a\x20specific\x20CLI\x20version'}];function a86_0x350c(){const _0x4b8c3c=['string','node_modules','Version\x20comparison\x20failed:\x20','Install\x20the\x20version\x20from\x20npm\x20latest\x20dist-tag','Global\x20npm\x20prefix\x20is\x20not\x20writable;\x20retrying\x20in\x20the\x20current\x20CLI\x20Node\x20environment:\x20','414204KYZanc','entries','Already\x20up\x20to\x20date\x20(v','args','timeout','Use\x20a\x20full\x20semver\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.','validation','skillVersion','Current\x20version:\x20','shortMessage','beta','Already\x20on\x20requested\x20version\x20(v','\x20doctor','Run:\x20npm\x20view\x20','/-/package/','\x20CLI\x20from\x20npm','30rxYeNC','object',',\x20state\x20','bool','source','expected\x20',',\x20found\x20','CLI\x20Built-in\x20Skill\x20repair\x20failed\x20[','latest','repairCommand','log','toLowerCase','fromEntries','CLI\x20updated\x20to\x20v','165460gXSFPR','warn','platform','Run:\x20','inherit',']:\x20','\x20version\x20from\x20npm.','read','2260576AtsnRg','INSTALL_FAILED','stdout','length','277533ehhczs','exitCode','filter','Choose\x20exactly\x20one\x20target:\x20--latest,\x20--beta,\x20or\x20--version\x20<version>.','state','apiError','npm','Updated\x20to\x20v','trim','Checking\x20npm\x20dist-tags...','code','Update\x20the\x20','942038xSCCSx','join','9647577uaclFb','Unable\x20to\x20resolve\x20','stderr','/dist-tags','basename','\x20is\x20current.','map','Checking\x20CLI\x20Built-in\x20Skill...','@lovrabet/lovrabet-cli','\x20\x20CLI\x20Built-in\x20Skill\x20','write','nonInteractive','win32','pipe','@lovrabet\x5clovrabet-cli','exit\x20','error',',\x20then\x20verify\x20with:\x20','10cdBxeW','4206896JnPHfh','version','Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','dirname','run','reason','relative','Run:\x20npm\x20install\x20-g\x20','unknown'];a86_0x350c=function(){return _0x4b8c3c;};return a86_0x350c();}function getRequestedVersion(_0x41f94a){const _0x554f5d=a86_0x21f3a4,_0x3f0631=_0x41f94a['str'](_0x554f5d(0xf9))[_0x554f5d(0xdf)]();if(_0x3f0631)return _0x3f0631;return String(_0x41f94a[_0x554f5d(0xb0)]?.[0x0]??'')[_0x554f5d(0xdf)]();}async function validateUpdateFlags(_0x30608f){const _0x309528=a86_0x21f3a4,_0x5e47fc=getRequestedVersion(_0x30608f),_0x2a6293=[_0x30608f['bool']('latest')?_0x309528(0xc5):'',_0x30608f['bool'](_0x309528(0xb7))?_0x309528(0xb7):'',_0x5e47fc?_0x309528(0xf9):''][_0x309528(0xd9)](Boolean);if(_0x2a6293[_0x309528(0xd6)]>0x1)throw CliErrors['validation']('--latest,\x20--beta,\x20and\x20version\x20cannot\x20be\x20used\x20together.',_0x309528(0xda));if(_0x5e47fc&&!a86_0x31233d['valid'](_0x5e47fc))throw CliErrors[_0x309528(0xb3)]('Invalid\x20version:\x20'+_0x5e47fc,_0x309528(0xb2));}async function fetchNpmDistTags(){const _0x155a7d=a86_0x21f3a4;try{const _0x5adfd4=NPM_REGISTRY_BASE_URL+_0x155a7d(0xbb)+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+_0x155a7d(0xe8),_0x3cd5dd=await fetch(_0x5adfd4,{'signal':AbortSignal[_0x155a7d(0xb1)](0x2710)});if(!_0x3cd5dd['ok'])return null;const _0x216cd8=await _0x3cd5dd['json']();if(!_0x216cd8||typeof _0x216cd8!==_0x155a7d(0xbe))return null;return Object[_0x155a7d(0xc9)](Object[_0x155a7d(0xae)](_0x216cd8)[_0x155a7d(0xd9)](([,_0x194f59])=>typeof _0x194f59==='string'&&_0x194f59['trim']())[_0x155a7d(0xeb)](([_0x4fc88b,_0x4e71ca])=>[_0x4fc88b,String(_0x4e71ca)[_0x155a7d(0xdf)]()]));}catch{return null;}}async function resolveTargetVersion(_0x4be6ed){const _0x4eb706=a86_0x21f3a4,_0x3df29d=getRequestedVersion(_0x4be6ed);if(_0x3df29d)return{'version':_0x3df29d,'source':'version'};const _0x4c7734=_0x4be6ed[_0x4eb706(0xc0)](_0x4eb706(0xb7))?_0x4eb706(0xb7):_0x4eb706(0xc5),_0x188aa5=await fetchNpmDistTags(),_0x34829c=_0x188aa5?.[_0x4c7734];if(!_0x34829c)return null;return{'version':_0x34829c,'source':_0x4c7734};}function shouldInstallTarget(_0x424a62,_0x5c79fc){const _0x54b95b=a86_0x21f3a4;if(_0x5c79fc[_0x54b95b(0xc1)]===_0x54b95b(0xf9)||_0x5c79fc['source']===_0x54b95b(0xb7))return!a86_0x31233d['eq'](_0x424a62,_0x5c79fc[_0x54b95b(0xf9)]);return a86_0x31233d['lt'](_0x424a62,_0x5c79fc[_0x54b95b(0xf9)]);}export function installCliPackage(_0x3df665,_0xefef2f,_0x5a887b=resolveCurrentCliNpmPrefix()){const _0x39c5ce=a86_0x21f3a4,_0x10d22c=LOVRABET_NPM_PACKAGE_NAME+'@'+_0x3df665,_0x386964=['install','-g',_0x10d22c],_0x91b25d=runNpmInstall(_0x386964,_0xefef2f);if(_0x91b25d['ok']||!isNpmPrefixPermissionError(_0x91b25d[_0x39c5ce(0xf5)]))return _0x91b25d;if(!_0x5a887b||_0x91b25d[_0x39c5ce(0xf5)]?.[_0x39c5ce(0xc8)]()['includes'](_0x5a887b[_0x39c5ce(0xc8)]()))return _0x91b25d;return console[_0x39c5ce(0xcc)](_0x39c5ce(0xac)+_0x5a887b),runNpmInstall([..._0x386964,'--prefix',_0x5a887b],_0xefef2f);}export function resolveCurrentCliNpmPrefix(_0x165049=fileURLToPath(import.meta.url),_0x477081=process[a86_0x21f3a4(0xcd)]){const _0x475aab=a86_0x21f3a4,_0x296569=_0x477081===_0x475aab(0xf1)?win32:{'basename':basename,'dirname':dirname,'relative':relative},_0x423fc5=_0x296569['dirname'](_0x296569[_0x475aab(0xfb)](_0x296569[_0x475aab(0xfb)](_0x165049))),_0x1eb83f=_0x477081===_0x475aab(0xf1)?_0x475aab(0xf3):_0x475aab(0xed);let _0x179a59=_0x296569[_0x475aab(0xfb)](_0x423fc5);while(!![]){if(_0x296569[_0x475aab(0xe9)](_0x179a59)===_0x475aab(0xa9)&&_0x296569[_0x475aab(0xa5)](_0x179a59,_0x423fc5)===_0x1eb83f){const _0x523d4c=_0x296569[_0x475aab(0xfb)](_0x179a59);return _0x296569[_0x475aab(0xe9)](_0x523d4c)==='lib'?_0x296569[_0x475aab(0xfb)](_0x523d4c):_0x523d4c;}const _0x9328d3=_0x296569[_0x475aab(0xfb)](_0x179a59);if(_0x9328d3===_0x179a59)return null;_0x179a59=_0x9328d3;}}function runNpmInstall(_0x4c2a6b,_0x2627ce){const _0x2bd7c6=a86_0x21f3a4;console[_0x2bd7c6(0xc7)]('*\x20'+[_0x2bd7c6(0xdd),..._0x4c2a6b][_0x2bd7c6(0xe4)]('\x20'));const _0x3a8c50=execaSync(_0x2bd7c6(0xdd),_0x4c2a6b,{'cwd':process['cwd'](),'stdio':_0x2bd7c6(0xf2),'env':process.env,'extendEnv':![],'shell':![],'reject':![]}),_0x24721b=_0x3a8c50[_0x2bd7c6(0xe7)]?String(_0x3a8c50['stderr'])[_0x2bd7c6(0xdf)]():'',_0x44b56e=_0x3a8c50['stdout']?String(_0x3a8c50['stdout'])[_0x2bd7c6(0xdf)]():'';if(!_0x2627ce){if(_0x44b56e)process[_0x2bd7c6(0xd5)][_0x2bd7c6(0xef)](_0x44b56e+'\x0a');if(_0x24721b)process['stderr'][_0x2bd7c6(0xef)](_0x24721b+'\x0a');}if(_0x3a8c50[_0x2bd7c6(0xd8)]===0x0)return{'ok':!![]};const _0x2cc73c=_0x24721b||_0x44b56e||_0x3a8c50[_0x2bd7c6(0xb6)]||_0x2bd7c6(0xf4)+(_0x3a8c50[_0x2bd7c6(0xd8)]??_0x2bd7c6(0xa7));return{'ok':![],'error':_0x2cc73c};}function isNpmPrefixPermissionError(_0x13325e){return Boolean(_0x13325e&&/\b(?:EACCES|EPERM)\b/['test'](_0x13325e));}function repairCurrentBuiltinSkill(_0x18bfad){const _0x407291=a86_0x21f3a4;console[_0x407291(0xc7)](_0x407291(0xec));const _0x98bf18=installBuiltinSkill({'stdio':_0x18bfad?_0x407291(0xf2):_0x407291(0xcf)});if(_0x98bf18['ok']){console[_0x407291(0xc7)](_0x407291(0xee)+_0x98bf18[_0x407291(0xb4)]+_0x407291(0xea));return;}throw CliErrors[_0x407291(0xdc)](_0x407291(0xc4)+(_0x98bf18[_0x407291(0xe1)]||_0x407291(0xd4))+_0x407291(0xd0)+(_0x98bf18[_0x407291(0xf5)]||'unknown'),_0x407291(0xce)+_0x98bf18[_0x407291(0xc6)]+_0x407291(0xf6)+CLI_BIN_NAME+_0x407291(0xb9));}function verifyUpdatedBuiltinSkill(_0x46bc01){const _0x40a774=a86_0x21f3a4;console[_0x40a774(0xc7)](_0x40a774(0xec));const _0x4d1ee9=inspectInstalledBuiltinSkillVersion(_0x46bc01);if(_0x4d1ee9[_0x40a774(0xdb)]==='current'){console[_0x40a774(0xc7)](_0x40a774(0xee)+_0x46bc01+_0x40a774(0xea));return;}const _0x7a3d20=_0x4d1ee9[_0x40a774(0xb4)]?_0x40a774(0xc2)+_0x46bc01+_0x40a774(0xc3)+_0x4d1ee9[_0x40a774(0xb4)]:_0x40a774(0xc2)+_0x46bc01+_0x40a774(0xbf)+_0x4d1ee9['state'],_0x43c440=_0x4d1ee9[_0x40a774(0xfd)]?_0x7a3d20+':\x20'+_0x4d1ee9[_0x40a774(0xfd)]:_0x7a3d20;throw CliErrors[_0x40a774(0xdc)](_0x40a774(0xca)+_0x46bc01+',\x20but\x20Built-in\x20Skill\x20verification\x20failed:\x20'+_0x43c440,'Run:\x20'+_0x4d1ee9['repairCommand']+_0x40a774(0xf6)+CLI_BIN_NAME+_0x40a774(0xb9));}async function execute(_0x4f6475){const _0x4fd28b=a86_0x21f3a4;await validateUpdateFlags(_0x4f6475);const _0x44ddfa=getCliVersion();console[_0x4fd28b(0xc7)](_0x4fd28b(0xb5)+_0x44ddfa),console[_0x4fd28b(0xc7)](_0x4fd28b(0xe0));const _0xf6b81a=await resolveTargetVersion(_0x4f6475);if(!_0xf6b81a){const _0x2fd7e2=_0x4f6475[_0x4fd28b(0xc0)](_0x4fd28b(0xb7))?_0x4fd28b(0xb7):_0x4fd28b(0xc5),_0x2fcdcb=_0x4fd28b(0xe6)+_0x2fd7e2+_0x4fd28b(0xd1);throw CliErrors['apiError'](_0x2fcdcb,_0x4fd28b(0xa6)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x2fd7e2);}const _0x54d728=[_0x44ddfa,_0xf6b81a['version']]['find'](_0x2ad20d=>!a86_0x31233d['valid'](_0x2ad20d));if(_0x54d728){const _0x3f76de=_0x4fd28b(0xaa)+_0x54d728+'.';throw CliErrors[_0x4fd28b(0xdc)](_0x3f76de,_0x4fd28b(0xba)+LOVRABET_NPM_PACKAGE_NAME+'\x20dist-tags,\x20then\x20retry.');}if(!shouldInstallTarget(_0x44ddfa,_0xf6b81a)){const _0x5cdb99=_0xf6b81a[_0x4fd28b(0xc1)]===_0x4fd28b(0xf9)?_0x4fd28b(0xb8)+_0xf6b81a[_0x4fd28b(0xf9)]+').':_0x4fd28b(0xaf)+_0xf6b81a[_0x4fd28b(0xf9)]+').';return console[_0x4fd28b(0xc7)](_0x5cdb99),repairCurrentBuiltinSkill(_0x4f6475[_0x4fd28b(0xf0)]),{'ok':!![]};}console[_0x4fd28b(0xc7)]('Updating\x20'+LOVRABET_NPM_PACKAGE_NAME+':\x20'+_0x44ddfa+'\x20->\x20'+_0xf6b81a['version']);const _0x4747a6=installCliPackage(_0xf6b81a[_0x4fd28b(0xf9)],_0x4f6475['nonInteractive']);if(!_0x4747a6['ok']){const _0x19470c='Update\x20failed:\x20'+(_0x4747a6[_0x4fd28b(0xf5)]||'unknown');throw CliErrors[_0x4fd28b(0xdc)](_0x19470c,_0x4fd28b(0xa6)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0xf6b81a[_0x4fd28b(0xf9)]);}return console['log'](_0x4fd28b(0xde)+_0xf6b81a[_0x4fd28b(0xf9)]+'.'),console[_0x4fd28b(0xc7)]('\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.'),verifyUpdatedBuiltinSkill(_0xf6b81a['version']),{'ok':!![]};}export const updateDefinition={'service':'update','command':a86_0x21f3a4(0xfc),'description':a86_0x21f3a4(0xe2)+CLI_BIN_NAME+a86_0x21f3a4(0xbc),'risk':a86_0x21f3a4(0xd2),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a87_0x5ca20b=a87_0x59c5;(function(_0x251648,_0x500398){const _0x4ea6a4=a87_0x59c5,_0x644362=_0x251648();while(!![]){try{const _0x2501ee=parseInt(_0x4ea6a4(0x201))/0x1*(-parseInt(_0x4ea6a4(0x1f4))/0x2)+-parseInt(_0x4ea6a4(0x1f3))/0x3+parseInt(_0x4ea6a4(0x1ef))/0x4+-parseInt(_0x4ea6a4(0x1e9))/0x5*(parseInt(_0x4ea6a4(0x1fc))/0x6)+-parseInt(_0x4ea6a4(0x1e8))/0x7+parseInt(_0x4ea6a4(0x1ed))/0x8+parseInt(_0x4ea6a4(0x206))/0x9*(parseInt(_0x4ea6a4(0x204))/0xa);if(_0x2501ee===_0x500398)break;else _0x644362['push'](_0x644362['shift']());}catch(_0x4b28cb){_0x644362['push'](_0x644362['shift']());}}}(a87_0x5dfc,0x3f337));import{bindExternalUserAccount,USER_ACCOUNT_BIND_PATH}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a87_0x59c5(_0x284109,_0x5902bd){_0x284109=_0x284109-0x1e7;const _0x5dfcd4=a87_0x5dfc();let _0x59c549=_0x5dfcd4[_0x284109];return _0x59c549;}const CURRENT_BINDING_WARNING='The\x20current\x20binding\x20is\x20not\x20exposed\x20by\x20the\x20server;\x20before\x20is\x20unavailable.',SUPPORTED_PROVIDERS=[a87_0x5ca20b(0x1fa)];function readBindingInput(_0xe9b120){const _0x3f1d05=a87_0x5ca20b,_0x23309a=_0xe9b120['str'](_0x3f1d05(0x1f1))[_0x3f1d05(0x203)]()['toLowerCase']();if(!SUPPORTED_PROVIDERS[_0x3f1d05(0x1f9)](_0x23309a))throw CliErrors[_0x3f1d05(0x1ec)](_0x3f1d05(0x1f7)+(_0x23309a||_0x3f1d05(0x1e7))+'.',_0x3f1d05(0x1ea)+SUPPORTED_PROVIDERS[_0x3f1d05(0x1ee)](',\x20')+'.');const _0x54de14=_0xe9b120[_0x3f1d05(0x1fd)](_0x3f1d05(0x1f8))[_0x3f1d05(0x203)]();if(!_0x54de14)throw CliErrors[_0x3f1d05(0x1ec)](_0x3f1d05(0x200),_0x3f1d05(0x1fb));return{'provider':_0x23309a,'accountId':_0x54de14};}function a87_0x5dfc(){const _0x2a1ef5=['3422797zvsjuz','755ESwBIk','Pass\x20one\x20of:\x20','user-account','validation','3084384ZxEajS','join','1279772FpdMxB','External\x20account\x20provider','provider','write','1017045VXwnMo','14ZGNjBo','bind','Retry\x20with\x20the\x20same\x20--provider\x20and\x20--account-id\x20only\x20after\x20checking\x20the\x20current\x20AccessKey\x20identity.','Unsupported\x20provider:\x20','account-id','includes','dingtalk','Pass\x20the\x20external\x20account\x20ID\x20for\x20the\x20selected\x20provider.','12090NfaqPf','str','string','apiError','--account-id\x20cannot\x20be\x20empty.','21396uPkOGe','POST','trim','288070jhSVDH','Bound\x20current\x20user\x20to\x20external\x20provider\x20account.','261vXMLoU','(empty)'];a87_0x5dfc=function(){return _0x2a1ef5;};return a87_0x5dfc();}function buildBindingData(_0x2615b0,_0x55a1eb,_0x1ad85e){const _0x56f7df=a87_0x5ca20b;return{'operation':_0x56f7df(0x1f5),'selector':{'provider':_0x2615b0,'accountId':_0x55a1eb},'before':null,'after':{'provider':_0x2615b0,'accountId':_0x55a1eb,'bound':!![]},'dryRun':_0x1ad85e,'warnings':[CURRENT_BINDING_WARNING]};}export const bindUserAccount={'service':a87_0x5ca20b(0x1eb),'command':'bind','description':'Bind\x20the\x20current\x20platform\x20user\x20to\x20an\x20external\x20provider\x20account','risk':a87_0x5ca20b(0x1f2),'confirmationDescription':'Binds\x20the\x20platform\x20user\x20of\x20the\x20current\x20AccessKey\x20to\x20the\x20given\x20collaboration-provider\x20account.\x20An\x20existing\x20bind\x20for\x20the\x20same\x20provider\x20may\x20be\x20replaced.','requiresAuth':!![],'requiresAppCode':![],'flags':[{'name':a87_0x5ca20b(0x1f1),'type':a87_0x5ca20b(0x1fe),'required':!![],'enum':[...SUPPORTED_PROVIDERS],'description':a87_0x5ca20b(0x1f0)},{'name':a87_0x5ca20b(0x1f8),'type':a87_0x5ca20b(0x1fe),'required':!![],'description':'External\x20account\x20ID\x20for\x20the\x20selected\x20provider'}],async 'validate'(_0x5f4ed3){readBindingInput(_0x5f4ed3);},async 'dryRun'(_0x3bb41e){const _0x1c6177=a87_0x5ca20b,{provider:_0x52fa47,accountId:_0x31e0f0}=readBindingInput(_0x3bb41e);return{...buildBindingData(_0x52fa47,_0x31e0f0,!![]),'method':_0x1c6177(0x202),'url':USER_ACCOUNT_BIND_PATH,'body':{'provider':_0x52fa47,'accountId':_0x31e0f0}};},async 'execute'(_0x5e9c68){const _0x400667=a87_0x5ca20b,{provider:_0x26e706,accountId:_0x392cda}=readBindingInput(_0x5e9c68),_0x302598=await bindExternalUserAccount(_0x26e706,_0x392cda);if(_0x302598!==!![])throw CliErrors[_0x400667(0x1ff)]('External\x20account\x20binding\x20was\x20not\x20confirmed.',_0x400667(0x1f6));return{'ok':!![],'data':buildBindingData(_0x26e706,_0x392cda,![]),'message':_0x400667(0x205)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x217f4c,_0x14bbbd){const _0x54ab3b=a88_0x3624,_0x2e3c65=_0x217f4c();while(!![]){try{const _0x2fd5c8=parseInt(_0x54ab3b(0xd6))/0x1+-parseInt(_0x54ab3b(0xd9))/0x2*(-parseInt(_0x54ab3b(0xd5))/0x3)+parseInt(_0x54ab3b(0xdb))/0x4+parseInt(_0x54ab3b(0xdc))/0x5+-parseInt(_0x54ab3b(0xd8))/0x6*(-parseInt(_0x54ab3b(0xdd))/0x7)+parseInt(_0x54ab3b(0xd7))/0x8+-parseInt(_0x54ab3b(0xda))/0x9;if(_0x2fd5c8===_0x14bbbd)break;else _0x2e3c65['push'](_0x2e3c65['shift']());}catch(_0x39a4d9){_0x2e3c65['push'](_0x2e3c65['shift']());}}}(a88_0x3348,0x7fdbb));import{bindUserAccount}from'../../commands/user-account/bind.js';function a88_0x3624(_0x3db675,_0x1dbbdf){_0x3db675=_0x3db675-0xd5;const _0x33480c=a88_0x3348();let _0x362494=_0x33480c[_0x3db675];return _0x362494;}function a88_0x3348(){const _0x2ef5c8=['26085267foQhuS','2355576zdsYkY','4040485kymFZw','7jMYYmq','108PLatMX','296597xLUklr','5037784ntWSAR','1553922VJJbDd','46654fZpokM'];a88_0x3348=function(){return _0x2ef5c8;};return a88_0x3348();}export const userAccountDefinitions=[bindUserAccount];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a89_0x5be093=a89_0x201f;(function(_0x6574c6,_0x31b07a){const _0x3ce455=a89_0x201f,_0x11ad06=_0x6574c6();while(!![]){try{const _0x54b643=parseInt(_0x3ce455(0x14d))/0x1+parseInt(_0x3ce455(0x15d))/0x2*(-parseInt(_0x3ce455(0x150))/0x3)+parseInt(_0x3ce455(0x12e))/0x4+-parseInt(_0x3ce455(0x130))/0x5+-parseInt(_0x3ce455(0x143))/0x6*(-parseInt(_0x3ce455(0x146))/0x7)+parseInt(_0x3ce455(0x149))/0x8*(-parseInt(_0x3ce455(0x155))/0x9)+parseInt(_0x3ce455(0x148))/0xa*(parseInt(_0x3ce455(0x15c))/0xb);if(_0x54b643===_0x31b07a)break;else _0x11ad06['push'](_0x11ad06['shift']());}catch(_0x3adeb5){_0x11ad06['push'](_0x11ad06['shift']());}}}(a89_0x2f3c,0xc70e3));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':a89_0x5be093(0x160),'type':a89_0x5be093(0x15a),'description':a89_0x5be093(0x14b)},{'name':a89_0x5be093(0x144),'type':a89_0x5be093(0x15a),'description':a89_0x5be093(0x162)},{'name':a89_0x5be093(0x14a),'type':'string','description':a89_0x5be093(0x134),'enum':[...RUNTIME_ENV_VALUES]}];function a89_0x2f3c(){const _0x118169=['Workspace\x20configured.\x0aConfig\x20file:\x20','appCode','\x20workspace\x20use\x20--app\x20<name>`\x20or\x20`','../../commands/app/remote-source.js','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20pass\x20--appcode\x20directly.','str','use','object','filter','defaultApp','\x0aAccessKey:\x20not\x20written','shouldWriteEnv','items','60jtGGVS','appcode','Available\x20apps:\x20','581665KjbvxZ','write','5101160sozrdN','16784nlxTAN','env','App\x20name\x20to\x20bind\x20as\x20the\x20current\x20workspace\x20default','isArray','1308349HKsHUu','authRequired','Use\x20`','867iMPghq','appName','accessKey','Missing\x20workspace\x20app\x20selector.','Workspace\x20app\x20context\x20is\x20not\x20initialized.','1620xYfeVJ','\x0aDefault\x20app:\x20','Resolving\x20--app\x20requires\x20accessKey.\x20Pass\x20--appcode\x20directly,\x20or\x20set\x20accessKey\x20before\x20running\x20','length','\x20workspace\x20','string','Invalid\x20env\x20\x22','11gbNvrt','2564xmsSet','envName','trim','app','Run\x20`','App\x20code\x20to\x20bind\x20directly','project','Conflicting\x20workspace\x20app\x20selectors.','includes','init','\x0aEnv:\x20','\x20--app\x20<name>\x20[--env\x20daily]\x20or\x20','join','1049300GSDTrD','workspace','6741355qXRnnc','validation','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\x20init\x20--appcode\x20<code>`\x20first.','Target\x20environment','apps'];a89_0x2f3c=function(){return _0x118169;};return a89_0x2f3c();}async function executeWorkspaceUse(_0x1f6696,_0x168928){const _0x33dfc9=a89_0x5be093,_0x3cdf89=_0x1f6696[_0x33dfc9(0x13b)]('app')[_0x33dfc9(0x15f)](),_0x22454a=_0x1f6696['str']('appcode')[_0x33dfc9(0x15f)](),_0xd330cd=_0x1f6696['str'](_0x33dfc9(0x14a))[_0x33dfc9(0x15f)](),_0x2ed4fd=resolveWorkspaceEnv(_0xd330cd||_0x1f6696[_0x33dfc9(0x15e)]||DEFAULT_CONFIG_VALUES[_0x33dfc9(0x14a)]);if(!_0x3cdf89&&!_0x22454a)throw CliErrors['validation'](_0x33dfc9(0x153),'Usage:\x20'+CLI_BIN_NAME+_0x33dfc9(0x159)+_0x168928+_0x33dfc9(0x168)+CLI_BIN_NAME+_0x33dfc9(0x159)+_0x168928+'\x20--appcode\x20<code>\x20[--env\x20daily]');if(_0x3cdf89&&_0x22454a)throw CliErrors[_0x33dfc9(0x131)](_0x33dfc9(0x164),'Pass\x20either\x20--app\x20<name>\x20or\x20--appcode\x20<code>,\x20not\x20both.');const _0x443ffa=resolveWriteConfigPath(_0x33dfc9(0x163)),_0x42c029=readConfigFile(_0x443ffa);assertWorkspaceCommandState(_0x168928,_0x42c029);const _0x413683=_0x22454a||await resolveRemoteAppCode({'command':_0x168928,'appName':_0x3cdf89,'env':_0x2ed4fd,'accessKey':_0x1f6696[_0x33dfc9(0x152)]});return writeWorkspaceConfig({'command':_0x168928,'appName':_0x3cdf89,'appcode':_0x413683,'env':_0x2ed4fd,'shouldWriteEnv':!!_0xd330cd,'accessKey':_0x1f6696[_0x33dfc9(0x152)]},_0x443ffa,_0x42c029),{'ok':!![],'data':{'configPath':_0x443ffa,'app':_0x3cdf89||null,'appcode':_0x413683,'env':_0xd330cd?_0x2ed4fd:null,'accessKeyWritten':![],'command':'workspace\x20'+_0x168928},'message':buildWorkspaceMessage(_0x443ffa,_0x3cdf89,_0x413683,_0xd330cd?_0x2ed4fd:undefined)};}async function resolveRemoteAppCode(_0x183d19){const _0x5f2456=a89_0x5be093;if(!_0x183d19[_0x5f2456(0x152)])throw CliErrors[_0x5f2456(0x14e)](_0x5f2456(0x157)+CLI_BIN_NAME+_0x5f2456(0x159)+_0x183d19['command']+'.');const {setActiveAK:_0xe672c}=await import('../../core/api-client.js'),{getRemoteAppList:_0x2156fd}=await import(_0x5f2456(0x139));_0xe672c(_0x183d19[_0x5f2456(0x152)]);const _0x4e3481=await _0x2156fd({'env':_0x183d19[_0x5f2456(0x14a)],'accessKey':_0x183d19[_0x5f2456(0x152)],'noCache':![]}),_0x3d3c52=findAppByName(_0x4e3481[_0x5f2456(0x142)],_0x183d19[_0x5f2456(0x151)]);if(_0x3d3c52&&!isRuntimeAccessibleApp(_0x3d3c52))throw runtimeInaccessibleAppError(_0x3d3c52,'\x22'+_0x183d19[_0x5f2456(0x151)]+'\x22');const _0x2e70c0=_0x3d3c52?.[_0x5f2456(0x137)]?.[_0x5f2456(0x15f)]();if(_0x2e70c0)return _0x2e70c0;const _0x783974=_0x4e3481['items']['map'](_0x3ed1ed=>_0x3ed1ed[_0x5f2456(0x151)])[_0x5f2456(0x13e)](Boolean),_0x35bc56=_0x783974[_0x5f2456(0x158)]?_0x5f2456(0x145)+Array['from'](new Set(_0x783974))[_0x5f2456(0x12d)](',\x20')+'.':_0x5f2456(0x161)+CLI_BIN_NAME+_0x5f2456(0x13a);throw CliErrors[_0x5f2456(0x131)]('App\x20\x22'+_0x183d19[_0x5f2456(0x151)]+'\x22\x20not\x20found.',_0x35bc56);}function writeWorkspaceConfig(_0x2be5c0,_0x117317,_0x47bffe){const _0x626f22=a89_0x5be093;_0x2be5c0[_0x626f22(0x141)]&&(_0x47bffe['env']=_0x2be5c0[_0x626f22(0x14a)]);if(_0x2be5c0['appName']){const _0x3c7e04=isRecord(_0x47bffe[_0x626f22(0x135)])?{..._0x47bffe[_0x626f22(0x135)]}:{},_0x672001=isRecord(_0x3c7e04[_0x2be5c0[_0x626f22(0x151)]])?_0x3c7e04[_0x2be5c0[_0x626f22(0x151)]]:{};return _0x3c7e04[_0x2be5c0[_0x626f22(0x151)]]={..._0x672001,'appcode':_0x2be5c0[_0x626f22(0x144)]},_0x47bffe[_0x626f22(0x135)]=_0x3c7e04,_0x47bffe[_0x626f22(0x13f)]=_0x2be5c0['appName'],delete _0x47bffe[_0x626f22(0x144)],delete _0x47bffe['app'],writeAndReturn(_0x117317,_0x47bffe);}return _0x47bffe[_0x626f22(0x144)]=_0x2be5c0[_0x626f22(0x144)],delete _0x47bffe[_0x626f22(0x13f)],delete _0x47bffe[_0x626f22(0x160)],writeAndReturn(_0x117317,_0x47bffe);}function writeAndReturn(_0x2f9fca,_0x4535d7){return writeConfigFile(_0x2f9fca,_0x4535d7),_0x2f9fca;}function resolveWorkspaceEnv(_0x15459b){const _0x2a4ac7=a89_0x5be093;if(RUNTIME_ENV_VALUES[_0x2a4ac7(0x165)](_0x15459b))return _0x15459b;throw CliErrors['validation'](_0x2a4ac7(0x15b)+_0x15459b+'\x22.\x20Allowed:\x20'+RUNTIME_ENV_VALUES[_0x2a4ac7(0x12d)](',\x20'));}function buildWorkspaceMessage(_0x2ac94b,_0x5cc157,_0x2e75f6,_0x3516b4){const _0x12d670=a89_0x5be093,_0xd9e707=_0x5cc157?_0x5cc157+'\x20('+_0x2e75f6+')':_0x2e75f6,_0x5a2534=_0x3516b4?_0x12d670(0x167)+_0x3516b4:'';return _0x12d670(0x136)+_0x2ac94b+_0x12d670(0x156)+_0xd9e707+_0x5a2534+_0x12d670(0x140);}function isRecord(_0x25939c){const _0x456172=a89_0x5be093;return typeof _0x25939c===_0x456172(0x13d)&&_0x25939c!==null&&!Array[_0x456172(0x14c)](_0x25939c);}function hasWorkspaceAppBinding(_0x284473){const _0x281021=a89_0x5be093;if(typeof _0x284473[_0x281021(0x144)]===_0x281021(0x15a)&&_0x284473['appcode']['trim']()[_0x281021(0x158)]>0x0)return!![];if(typeof _0x284473[_0x281021(0x13f)]!==_0x281021(0x15a)||!_0x284473['defaultApp'][_0x281021(0x15f)]())return![];if(!isRecord(_0x284473[_0x281021(0x135)]))return![];const _0x42f974=_0x284473['apps'][_0x284473[_0x281021(0x13f)][_0x281021(0x15f)]()];return isRecord(_0x42f974)&&typeof _0x42f974[_0x281021(0x144)]===_0x281021(0x15a)&&_0x42f974[_0x281021(0x144)][_0x281021(0x15f)]()['length']>0x0;}function assertWorkspaceCommandState(_0x3ef0ba,_0x423429){const _0x2540a9=a89_0x5be093,_0x217491=hasWorkspaceAppBinding(_0x423429);if(_0x3ef0ba===_0x2540a9(0x166)&&_0x217491)throw CliErrors[_0x2540a9(0x131)]('Workspace\x20app\x20context\x20is\x20already\x20initialized.',_0x2540a9(0x14f)+CLI_BIN_NAME+_0x2540a9(0x138)+CLI_BIN_NAME+'\x20workspace\x20use\x20--appcode\x20<code>`\x20to\x20change\x20it.');if(_0x3ef0ba===_0x2540a9(0x13c)&&!_0x217491)throw CliErrors['validation'](_0x2540a9(0x154),'Run\x20`'+CLI_BIN_NAME+'\x20workspace\x20init\x20--app\x20<name>`\x20or\x20`'+CLI_BIN_NAME+_0x2540a9(0x133));}function makeWorkspaceCommand(_0x3049a4){const _0x477856=a89_0x5be093;return{'service':_0x477856(0x12f),'command':_0x3049a4,'description':_0x3049a4===_0x477856(0x166)?'Initialize\x20app\x20context\x20for\x20the\x20current\x20working\x20directory\x20when\x20no\x20app\x20is\x20bound\x20yet':'Change\x20the\x20app\x20context\x20already\x20bound\x20to\x20the\x20current\x20working\x20directory','risk':_0x477856(0x147),'confirmationDescription':_0x3049a4===_0x477856(0x166)?_0x477856(0x132):'Updates\x20the\x20app\x20binding\x20already\x20present\x20in\x20the\x20current\x20working\x20directory\x20and\x20sets\x20the\x20selected\x20app\x20as\x20the\x20directory\x20default.\x20AccessKey\x20is\x20not\x20written.','requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':WORKSPACE_USE_FLAGS,async 'execute'(_0x7be153){return executeWorkspaceUse(_0x7be153,_0x3049a4);}};}function a89_0x201f(_0x33f626,_0x1f0429){_0x33f626=_0x33f626-0x12d;const _0x2f3c26=a89_0x2f3c();let _0x201fc3=_0x2f3c26[_0x33f626];return _0x201fc3;}export const workspaceDefinitions=[makeWorkspaceCommand(a89_0x5be093(0x166)),makeWorkspaceCommand(a89_0x5be093(0x13c))];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a90_0x163716=a90_0xe96a;(function(_0x58d481,_0x3ae36c){const _0x49681a=a90_0xe96a,_0x57c00b=_0x58d481();while(!![]){try{const _0x44f3b5=-parseInt(_0x49681a(0x216))/0x1*(-parseInt(_0x49681a(0x1f8))/0x2)+-parseInt(_0x49681a(0x228))/0x3*(parseInt(_0x49681a(0x21b))/0x4)+parseInt(_0x49681a(0x1f6))/0x5+parseInt(_0x49681a(0x20c))/0x6*(parseInt(_0x49681a(0x205))/0x7)+parseInt(_0x49681a(0x211))/0x8*(-parseInt(_0x49681a(0x208))/0x9)+parseInt(_0x49681a(0x212))/0xa+parseInt(_0x49681a(0x224))/0xb;if(_0x44f3b5===_0x3ae36c)break;else _0x57c00b['push'](_0x57c00b['shift']());}catch(_0x35b9a7){_0x57c00b['push'](_0x57c00b['shift']());}}}(a90_0x3262,0xd8760));import{existsSync,readFileSync}from'node:fs';function a90_0xe96a(_0x2b32cf,_0x9ef44c){_0x2b32cf=_0x2b32cf-0x1f0;const _0x3262a5=a90_0x3262();let _0xe96ab3=_0x3262a5[_0x2b32cf];return _0xe96ab3;}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=[a90_0x163716(0x21e),a90_0x163716(0x218),'runtimeDomain',a90_0x163716(0x1f7),a90_0x163716(0x1f1)];const DOMAIN_FLAGS={'userDomain':'user-domain','apiDomain':a90_0x163716(0x22c),'runtimeDomain':'runtime-domain','skillDomain':'skill-domain','kbServiceDomain':a90_0x163716(0x204)};export const LEGACY_DOMAIN_CONFIG_FIELDS=[a90_0x163716(0x20b),a90_0x163716(0x229),a90_0x163716(0x1fc),a90_0x163716(0x1f4),a90_0x163716(0x217)];const ENTERPRISE_TO_LOCAL_FIELD={'userDomain':a90_0x163716(0x21e),'apiDomain':a90_0x163716(0x218),'runtimeDomain':'runtimeDomain','skillDomain':a90_0x163716(0x1f7),'kbServiceDomain':a90_0x163716(0x1f1)},ROUTING_CONSUMER=a90_0x163716(0x206);export function normalizeDomainOrigin(_0xf7f538,_0x36341d){const _0x4369e4=a90_0x163716;if(typeof _0x36341d!=='string'||!_0x36341d[_0x4369e4(0x1fd)]())throw CliErrors['validation'](_0x4369e4(0x207)+_0xf7f538+_0x4369e4(0x200));let _0x49a40f;try{_0x49a40f=new URL(_0x36341d[_0x4369e4(0x1fd)]());}catch{throw CliErrors[_0x4369e4(0x209)](_0x4369e4(0x207)+_0xf7f538+_0x4369e4(0x227)+_0x36341d+_0x4369e4(0x22a));}if(_0x49a40f[_0x4369e4(0x221)]!==_0x4369e4(0x1f3)||_0x49a40f[_0x4369e4(0x210)]||_0x49a40f['password']||_0x49a40f[_0x4369e4(0x1fe)]!=='/'&&_0x49a40f[_0x4369e4(0x1fe)]!==''||_0x49a40f[_0x4369e4(0x20e)]||_0x49a40f['hash'])throw CliErrors[_0x4369e4(0x209)]('Invalid\x20'+_0xf7f538+_0x4369e4(0x220),'For\x20internal\x20deployments,\x20terminate\x20TLS\x20at\x20the\x20ingress,\x20reverse\x20proxy,\x20or\x20load\x20balancer;\x20an\x20internal\x20CA\x20is\x20supported.');return _0x49a40f[_0x4369e4(0x22d)];}export function normalizeRoutingDomainValue(_0x4b8055,_0x2e1e5e){const _0x413ab3=a90_0x163716;if(typeof _0x2e1e5e==='string')return normalizeDomainOrigin(_0x4b8055,_0x2e1e5e);if(!_0x2e1e5e||typeof _0x2e1e5e!==_0x413ab3(0x22b)||Array[_0x413ab3(0x21f)](_0x2e1e5e))throw CliErrors['validation'](_0x413ab3(0x207)+_0x4b8055+':\x20expected\x20an\x20HTTPS\x20origin\x20or\x20consumer\x20Domain\x20object.');const _0x10e9a8=_0x2e1e5e,_0x50b0c8=_0x10e9a8[ROUTING_CONSUMER]??_0x10e9a8['default'];if(_0x50b0c8===undefined)throw CliErrors[_0x413ab3(0x209)]('Enterprise\x20'+_0x4b8055+_0x413ab3(0x213)+ROUTING_CONSUMER+'\x20and\x20has\x20no\x20default.');return normalizeDomainOrigin(_0x4b8055,_0x50b0c8);}function a90_0x3262(){const _0x4a239d=['userDomain','isArray',':\x20expected\x20an\x20HTTPS\x20origin\x20without\x20credentials,\x20path,\x20query,\x20or\x20fragment.','protocol','Allowed\x20fields:\x20','keys','16414442CVgvRy','parse','Invalid\x20enterprise\x20routing\x20config:\x20expected\x20an\x20object.',':\x20\x22','2745306EbIafl','agentDomain','\x22\x20is\x20not\x20a\x20valid\x20URL.','object','api-domain','origin','Enterprise\x20routing\x20manifest\x20is\x20missing\x20required\x20Domain(s):\x20','kbServiceDomain','Invalid\x20enterprise\x20routing\x20manifest:\x20domains\x20must\x20be\x20an\x20object.','https:','skillHubDomain','Invalid\x20domain\x20config:\x20provide\x20at\x20least\x20one\x20supported\x20Domain.','2389885XemjEV','skillDomain','2PSJOZl','str','length','cwd','platformDomain','trim','pathname','utf8',':\x20expected\x20a\x20non-empty\x20HTTPS\x20origin.','Update\x20the\x20manifest\x20so\x20both\x20CLIs\x20consume\x20the\x20same\x20routing\x20data.','domains','Enterprise\x20routing\x20manifests\x20cannot\x20be\x20combined\x20with\x20individual\x20Domain\x20flags.','kb-service-domain','14aVkhWx','lovrabet-cli','Invalid\x20','9FzzGBc','validation','legacy','host','2691138WkQWzU','enterprise-v1','search','kind','username','11570584MXQhMQ','3144150cokFyD','\x20does\x20not\x20provide\x20a\x20Domain\x20for\x20','filter','Invalid\x20domain\x20config:\x20expected\x20a\x20JSON\x20object.','66389hVuJdj','kbDomain','apiDomain','\x22\x20and\x20kind\x20\x22','domain-config','4aaAwUA','mode','join'];a90_0x3262=function(){return _0x4a239d;};return a90_0x3262();}export function resolveEnterpriseRoutingConfig(_0xaa3931){const _0x20661d=a90_0x163716;if(_0xaa3931===undefined)return undefined;if(!_0xaa3931||typeof _0xaa3931!==_0x20661d(0x22b)||Array[_0x20661d(0x21f)](_0xaa3931))throw CliErrors[_0x20661d(0x209)](_0x20661d(0x226));return parseEnterpriseRoutingManifest(_0xaa3931)['domains'];}export function readDomainConfigInput(_0x205d57){const _0x5ec1b8=a90_0x163716,_0x30e6d9=isAbsolute(_0x205d57)?_0x205d57:resolve(process[_0x5ec1b8(0x1fb)](),_0x205d57);if(!existsSync(_0x30e6d9))throw CliErrors['validation']('Domain\x20config\x20file\x20not\x20found:\x20'+_0x30e6d9);let _0x2f7ecf;try{_0x2f7ecf=JSON[_0x5ec1b8(0x225)](readFileSync(_0x30e6d9,_0x5ec1b8(0x1ff)));}catch{throw CliErrors[_0x5ec1b8(0x209)]('Invalid\x20domain\x20config\x20JSON:\x20'+_0x30e6d9);}if(!_0x2f7ecf||typeof _0x2f7ecf!=='object'||Array['isArray'](_0x2f7ecf))throw CliErrors['validation'](_0x5ec1b8(0x215));const _0x45fc14=_0x2f7ecf;if(_0x5ec1b8(0x221)in _0x45fc14)return parseEnterpriseRoutingManifest(_0x45fc14);const _0x3f51f0=Object[_0x5ec1b8(0x223)](_0x45fc14)[_0x5ec1b8(0x214)](_0x595207=>!DOMAIN_CONFIG_FIELDS['includes'](_0x595207));if(_0x3f51f0[_0x5ec1b8(0x1fa)]>0x0)throw CliErrors[_0x5ec1b8(0x209)]('Unsupported\x20domain\x20config\x20field(s):\x20'+_0x3f51f0[_0x5ec1b8(0x21d)](',\x20'),_0x5ec1b8(0x222)+DOMAIN_CONFIG_FIELDS[_0x5ec1b8(0x21d)](',\x20'));const _0x597a82={};for(const _0x372249 of DOMAIN_CONFIG_FIELDS){_0x45fc14[_0x372249]!==undefined&&(_0x597a82[_0x372249]=normalizeDomainOrigin(_0x372249,_0x45fc14[_0x372249]));}if(Object[_0x5ec1b8(0x223)](_0x597a82)['length']===0x0)throw CliErrors[_0x5ec1b8(0x209)](_0x5ec1b8(0x1f5));return{'mode':_0x5ec1b8(0x20a),'domains':_0x597a82};}export function readDomainConfig(_0x354625){return readDomainConfigInput(_0x354625)['domains'];}export function resolveDomainConfigInput(_0x3cecef){const _0x58b65c=a90_0x163716,_0x43bbf=(_0x3cecef[_0x58b65c(0x1f9)](_0x58b65c(0x21a))||'')['trim'](),_0x205fea=_0x43bbf?readDomainConfigInput(_0x43bbf):{'mode':_0x58b65c(0x20a),'domains':{}},_0x5ecff3=DOMAIN_CONFIG_FIELDS['filter'](_0x714721=>Boolean((_0x3cecef['str'](DOMAIN_FLAGS[_0x714721])||'')['trim']()));if(_0x205fea[_0x58b65c(0x21c)]===_0x58b65c(0x20d)&&_0x5ecff3[_0x58b65c(0x1fa)]>0x0)throw CliErrors[_0x58b65c(0x209)](_0x58b65c(0x203),_0x58b65c(0x201));for(const _0x50ead1 of DOMAIN_CONFIG_FIELDS){const _0x2a9847=(_0x3cecef['str'](DOMAIN_FLAGS[_0x50ead1])||'')[_0x58b65c(0x1fd)]();if(_0x2a9847)_0x205fea[_0x58b65c(0x202)][_0x50ead1]=normalizeDomainOrigin(_0x50ead1,_0x2a9847);}return _0x205fea;}export function resolveDomainFlags(_0x2ba8c4){const _0x57a471=a90_0x163716;return resolveDomainConfigInput(_0x2ba8c4)[_0x57a471(0x202)];}export function parseEnterpriseRoutingManifest(_0x1f2622){const _0x2424ce=a90_0x163716;if(_0x1f2622['protocol']!==ENTERPRISE_ROUTING_PROTOCOL||_0x1f2622[_0x2424ce(0x20f)]!==ENTERPRISE_ROUTING_KIND)throw CliErrors[_0x2424ce(0x209)]('Unsupported\x20routing\x20manifest:\x20expected\x20protocol\x20\x22'+ENTERPRISE_ROUTING_PROTOCOL+_0x2424ce(0x219)+ENTERPRISE_ROUTING_KIND+'\x22.');if(!_0x1f2622[_0x2424ce(0x202)]||typeof _0x1f2622[_0x2424ce(0x202)]!==_0x2424ce(0x22b)||Array['isArray'](_0x1f2622[_0x2424ce(0x202)]))throw CliErrors[_0x2424ce(0x209)](_0x2424ce(0x1f2));const _0x164f93=_0x1f2622[_0x2424ce(0x202)],_0x12eb05=REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS[_0x2424ce(0x214)](_0x15edf1=>_0x164f93[_0x15edf1]===undefined);if(_0x12eb05[_0x2424ce(0x1fa)]>0x0)throw CliErrors[_0x2424ce(0x209)](_0x2424ce(0x1f0)+_0x12eb05['join'](',\x20'));const _0xe81eff={},_0x76a43d={};for(const _0x4ddc92 of ENTERPRISE_ROUTING_DOMAIN_FIELDS){const _0x3888ad=_0x164f93[_0x4ddc92];if(_0x3888ad===undefined)continue;const _0x4cb35e=normalizeRoutingDomainValue(_0x4ddc92,_0x3888ad);_0xe81eff[_0x4ddc92]=_0x4cb35e;const _0x58677b=ENTERPRISE_TO_LOCAL_FIELD[_0x4ddc92];_0x58677b&&(_0x76a43d[_0x58677b]=_0x4cb35e);}return{'mode':'enterprise-v1','domains':_0x76a43d,'manifestDomains':_0xe81eff};}
|
package/lib/config/schema.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a91_0x170861=a91_0x221b;(function(_0x581d88,_0xadc032){const _0x4b170c=a91_0x221b,_0x1aeee3=_0x581d88();while(!![]){try{const _0x2fb136=parseInt(_0x4b170c(0x1ee))/0x1+parseInt(_0x4b170c(0x1f9))/0x2+parseInt(_0x4b170c(0x1f0))/0x3*(parseInt(_0x4b170c(0x1f6))/0x4)+-parseInt(_0x4b170c(0x1fc))/0x5+parseInt(_0x4b170c(0x1fa))/0x6+parseInt(_0x4b170c(0x209))/0x7*(parseInt(_0x4b170c(0x1f3))/0x8)+parseInt(_0x4b170c(0x203))/0x9*(-parseInt(_0x4b170c(0x20b))/0xa);if(_0x2fb136===_0xadc032)break;else _0x1aeee3['push'](_0x1aeee3['shift']());}catch(_0x380677){_0x1aeee3['push'](_0x1aeee3['shift']());}}}(a91_0xeb26,0xbafe5));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';export const CONFIG_FIELD_SCHEMAS={'routing':{'description':'Versioned\x20enterprise\x20routing\x20manifest','topLevel':!![]},'region':{'description':a91_0x170861(0x1f5),'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[a91_0x170861(0x20c)],'importable':!![]},'format':{'description':a91_0x170861(0x20d),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':OUTPUT_FORMAT_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a91_0x170861(0x20e)],'importable':!![]},'pageSize':{'description':a91_0x170861(0x1f8),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'apiDomain':{'description':'Override\x20API\x20domain','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'userDomain':{'description':a91_0x170861(0x1fe),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'runtimeDomain':{'description':a91_0x170861(0x1f2),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'skillDomain':{'description':a91_0x170861(0x208),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'kbServiceDomain':{'description':a91_0x170861(0x207),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'accessKey':{'description':a91_0x170861(0x1f1),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'riskLevel':{'description':a91_0x170861(0x1f4),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a91_0x170861(0x20a)],'importable':!![]},'nativeToolAvailable':{'description':a91_0x170861(0x206),'topLevel':!![],'defaultValue':![]},'locale':{'description':a91_0x170861(0x1fd),'topLevel':!![],'cliSettableTopLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES['locale'],'importable':!![]}};export const TOP_LEVEL_CONFIG_KEYS=new Set(Object[a91_0x170861(0x202)](CONFIG_FIELD_SCHEMAS)['filter'](([,_0x42e338])=>_0x42e338[a91_0x170861(0x1ec)])[a91_0x170861(0x1ef)](([_0x288b91])=>_0x288b91));export const CLI_PROTECTED_CONFIG_KEYS=new Set([a91_0x170861(0x20a),a91_0x170861(0x1ed)]);export const CONFIG_ENUM_VALUES=Object[a91_0x170861(0x1ff)](Object[a91_0x170861(0x202)](CONFIG_FIELD_SCHEMAS)[a91_0x170861(0x210)](([,_0x2c6f16])=>_0x2c6f16[a91_0x170861(0x201)])[a91_0x170861(0x1ef)](([_0x4e5253,_0x1ba5b0])=>[_0x4e5253,[..._0x1ba5b0[a91_0x170861(0x201)]||[]]]));export const IMPORTABLE_RUNTIME_CONFIG_KEYS=Object['entries'](CONFIG_FIELD_SCHEMAS)[a91_0x170861(0x210)](([,_0x35fbf1])=>_0x35fbf1[a91_0x170861(0x204)])['map'](([_0x53b57b])=>_0x53b57b);export function getConfigFieldSchema(_0x36cb62){return CONFIG_FIELD_SCHEMAS[_0x36cb62];}export function getConfigEnumValues(_0x3ddb33){const _0x4c3af2=a91_0x170861;return getConfigFieldSchema(_0x3ddb33)?.[_0x4c3af2(0x201)];}export function getConfigDefaultValue(_0x159e22){const _0x219548=a91_0x170861;return getConfigFieldSchema(_0x159e22)?.[_0x219548(0x200)];}export function isTopLevelConfigKey(_0x393f7e){const _0x36db87=a91_0x170861;return TOP_LEVEL_CONFIG_KEYS[_0x36db87(0x20f)](_0x393f7e);}export function isCliProtectedConfigKey(_0x3d9fbe){const _0x10a892=a91_0x170861;return CLI_PROTECTED_CONFIG_KEYS[_0x10a892(0x20f)](_0x3d9fbe);}const LOCALE_MAP={'zh':a91_0x170861(0x205),'zh-cn':a91_0x170861(0x205),'zh_cn':a91_0x170861(0x205),'en':a91_0x170861(0x1f7),'en-us':a91_0x170861(0x1f7),'en_us':a91_0x170861(0x1f7)};function a91_0x221b(_0x388d64,_0x1b928e){_0x388d64=_0x388d64-0x1ec;const _0xeb2694=a91_0xeb26();let _0x221bdd=_0xeb2694[_0x388d64];return _0x221bdd;}export function normalizeLocale(_0x5a0eb8){if(!_0x5a0eb8)return null;return LOCALE_MAP[_0x5a0eb8['toLowerCase']()]??null;}export function isLegacyCompatConfigKey(_0x49dbf6){const _0x4e7e6a=a91_0x170861;return getConfigFieldSchema(_0x49dbf6)?.[_0x4e7e6a(0x1fb)]===!![];}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function formatConfigKeyList(_0x3ebf8d){return[..._0x3ebf8d]['join'](',\x20');}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){return'Config\x20key.\x20Top-level:\x20'+getTopLevelConfigKeySummary()+';\x20local\x20alias:\x20apps.<alias>.appcode';}export function buildAppProfileListFields(_0x253bff){return{'env':_0x253bff,'hasAccessKey':![],'format':null,'pageSize':null,'riskLevel':null,'locale':null};}function a91_0xeb26(){const _0x2d114a=['3pZKpcN','Access\x20key\x20(client-ak\x20auth)','Override\x20runtime\x20domain','280VYApXr','Risk\x20level','Lovrabet\x20region','5701352wOmsqx','en-US','Default\x20page\x20size','2395550qSMkmd','7068738BKjVze','legacyCompatOnly','6209975kFMDwk','App\x20locale\x20(not\x20CLI\x20language;\x20reserved\x20for\x20later\x20app\x20use)','Override\x20user\x20domain','fromEntries','defaultValue','enumValues','entries','9TCPRdr','importable','zh-CN','Native\x20Lovrabet\x20tool\x20availability\x20in\x20the\x20current\x20execution\x20host','Override\x20KB\x20Service\x20domain','Override\x20SkillHub\x20domain','253211irTsfa','riskLevel','30666970TySjyH','env','Default\x20output\x20format','format','has','filter','cliSettableTopLevel','nativeToolAvailable','7326QBddNE','map'];a91_0xeb26=function(){return _0x2d114a;};return a91_0xeb26();}
|
package/lib/constant/app.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a92_0x2dece4=a92_0xc5f7;function a92_0xc5f7(_0x3407b6,_0x3128da){_0x3407b6=_0x3407b6-0x1e0;const _0x5526ad=a92_0x5526();let _0xc5f75c=_0x5526ad[_0x3407b6];return _0xc5f75c;}(function(_0x5b5b01,_0x29b6a0){const _0x57715a=a92_0xc5f7,_0x3672a6=_0x5b5b01();while(!![]){try{const _0x538472=-parseInt(_0x57715a(0x1e9))/0x1*(parseInt(_0x57715a(0x1e1))/0x2)+parseInt(_0x57715a(0x1ea))/0x3*(-parseInt(_0x57715a(0x1e8))/0x4)+parseInt(_0x57715a(0x1e3))/0x5+parseInt(_0x57715a(0x1e0))/0x6+-parseInt(_0x57715a(0x1e4))/0x7+-parseInt(_0x57715a(0x1eb))/0x8*(-parseInt(_0x57715a(0x1e2))/0x9)+-parseInt(_0x57715a(0x1e5))/0xa*(parseInt(_0x57715a(0x1e6))/0xb);if(_0x538472===_0x29b6a0)break;else _0x3672a6['push'](_0x3672a6['shift']());}catch(_0x2b9dfc){_0x3672a6['push'](_0x3672a6['shift']());}}}(a92_0x5526,0x40c44));export const APP_PUBLISH_STATUS={'Published':'PUBLISHED','Unpublished':a92_0x2dece4(0x1e7)};function a92_0x5526(){const _0x29889f=['22wXJNMZ','UNPUBLISH','628izrWiO','91654uvxceu','603Nccxyw','2104352gXzpVG','2319846dQZbJc','2lJrcGw','9zcqVHl','2014175USUjeD','1501143qBLgZm','2247880crSbOg'];a92_0x5526=function(){return _0x29889f;};return a92_0x5526();}export const RUNTIME_ACCESSIBLE_APP_STATUS=APP_PUBLISH_STATUS['Published'];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a93_0x126f9d=a93_0x4e89;(function(_0x15ac54,_0x8290f4){const _0x5952bd=a93_0x4e89,_0x51c42c=_0x15ac54();while(!![]){try{const _0x3e6f31=parseInt(_0x5952bd(0x1e2))/0x1+-parseInt(_0x5952bd(0x1e5))/0x2+parseInt(_0x5952bd(0x1e3))/0x3+parseInt(_0x5952bd(0x1ea))/0x4*(-parseInt(_0x5952bd(0x1e9))/0x5)+-parseInt(_0x5952bd(0x1e8))/0x6+-parseInt(_0x5952bd(0x1e7))/0x7+parseInt(_0x5952bd(0x1e6))/0x8;if(_0x3e6f31===_0x8290f4)break;else _0x51c42c['push'](_0x51c42c['shift']());}catch(_0x1c5792){_0x51c42c['push'](_0x51c42c['shift']());}}}(a93_0x3257,0xef8b2));function a93_0x4e89(_0x255c71,_0x5ba1fe){_0x255c71=_0x255c71-0x1e2;const _0x3257cb=a93_0x3257();let _0x4e89e5=_0x3257cb[_0x255c71];return _0x4e89e5;}export const AUTH_MODE={'ClientAk':a93_0x126f9d(0x1e4)};function a93_0x3257(){const _0x328ef0=['6783bMyQqw','3793371oJKBvG','client-ak','1714696cIBMQx','16241752dwnrAS','3683792IrYdkO','4020474boWcVU','5AHSyoE','1066424cOaVPQ'];a93_0x3257=function(){return _0x328ef0;};return a93_0x3257();}export function isAuthMode(_0x39ebbd){return _0x39ebbd===AUTH_MODE['ClientAk'];}
|
package/lib/constant/cli.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a94_0x3d27c3=a94_0x3f6a;(function(_0x498a81,_0x5b1577){const _0x3ab391=a94_0x3f6a,_0x356fe5=_0x498a81();while(!![]){try{const _0x4f7d1a=-parseInt(_0x3ab391(0x166))/0x1*(parseInt(_0x3ab391(0x155))/0x2)+-parseInt(_0x3ab391(0x157))/0x3*(-parseInt(_0x3ab391(0x161))/0x4)+-parseInt(_0x3ab391(0x150))/0x5+-parseInt(_0x3ab391(0x177))/0x6*(-parseInt(_0x3ab391(0x14f))/0x7)+parseInt(_0x3ab391(0x178))/0x8+parseInt(_0x3ab391(0x16b))/0x9*(parseInt(_0x3ab391(0x175))/0xa)+parseInt(_0x3ab391(0x15a))/0xb*(-parseInt(_0x3ab391(0x173))/0xc);if(_0x4f7d1a===_0x5b1577)break;else _0x356fe5['push'](_0x356fe5['shift']());}catch(_0x30b7c8){_0x356fe5['push'](_0x356fe5['shift']());}}}(a94_0x38b2,0x6c5ad));function a94_0x3f6a(_0x23336b,_0x1903d1){_0x23336b=_0x23336b-0x14c;const _0x38b21f=a94_0x38b2();let _0x3f6a26=_0x38b21f[_0x23336b];return _0x3f6a26;}function a94_0x38b2(){const _0x3c97ee=['name','yes','4HDAZGd','env','561MPmLqJ','Record\x20ID','clear','22VksgzC','Output\x20format','type','Name\x20filter','nonInteractive','JSON\x20params\x20for\x20execute\x20commands','global','12036NcICoC','map','<expr>','boolean','help','183674AHyexp','Environment','json\x20|\x20pretty\x20|\x20compress','sqlcode','Use\x20global\x20config\x20scope','63RxaPDi','Verbose\x20output','app','format','non-interactive','<name>','Clear\x20output','SQL\x20query\x20code','4584108BlzcmB','params','641670mNMjKX','verbose','30OaFjDf','3400376PepRJd','Override\x20appcode','dry-run','Alias\x20for\x20--non-interactive','string','768656xxMfDm','2053760dBJNHl','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','dryRun'];a94_0x38b2=function(){return _0x3c97ee;};return a94_0x38b2();}import{PRODUCT_CONFIG}from'../constant/product.js';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';export const CLI_BIN_NAME=PRODUCT_CONFIG['cliBinName'];export const CLI_DISPLAY_NAME=PRODUCT_CONFIG['cliDisplayName'];export const NPM_PACKAGE_NAME=LOVRABET_NPM_PACKAGE_NAME;export const GLOBAL_FLAGS=[{'name':'appcode','meowKey':'appcode','type':a94_0x3d27c3(0x14e),'description':a94_0x3d27c3(0x179),'hint':'<code>'},{'name':'app','meowKey':a94_0x3d27c3(0x16d),'type':'string','description':'Select\x20app\x20profile\x20by\x20name','hint':a94_0x3d27c3(0x170)},{'name':a94_0x3d27c3(0x156),'meowKey':a94_0x3d27c3(0x156),'type':'string','description':a94_0x3d27c3(0x167),'hint':'production\x20|\x20development\x20|\x20daily'},{'name':'format','meowKey':a94_0x3d27c3(0x16e),'type':'string','description':a94_0x3d27c3(0x15b),'hint':a94_0x3d27c3(0x168)},{'name':'jq','meowKey':'jq','type':a94_0x3d27c3(0x14e),'description':a94_0x3d27c3(0x151),'hint':a94_0x3d27c3(0x163)},{'name':a94_0x3d27c3(0x14c),'meowKey':a94_0x3d27c3(0x152),'type':a94_0x3d27c3(0x164),'description':'Preview\x20operation\x20without\x20executing'},{'name':a94_0x3d27c3(0x154),'meowKey':a94_0x3d27c3(0x154),'type':a94_0x3d27c3(0x164),'description':'Skip\x20confirmation\x20for\x20high-risk\x20writes'},{'name':a94_0x3d27c3(0x16f),'meowKey':a94_0x3d27c3(0x15e),'type':a94_0x3d27c3(0x164),'description':'Force\x20non-interactive\x20mode\x20(CI)'},{'name':a94_0x3d27c3(0x160),'meowKey':'global','type':a94_0x3d27c3(0x164),'description':a94_0x3d27c3(0x16a)},{'name':'ci','meowKey':'ci','type':a94_0x3d27c3(0x164),'description':a94_0x3d27c3(0x14d),'hidden':!![]},{'name':a94_0x3d27c3(0x165),'meowKey':a94_0x3d27c3(0x165),'type':'boolean','description':'Show\x20help'},{'name':'id','meowKey':'id','type':'string','description':a94_0x3d27c3(0x158),'hidden':!![]},{'name':a94_0x3d27c3(0x153),'meowKey':a94_0x3d27c3(0x153),'type':a94_0x3d27c3(0x14e),'description':a94_0x3d27c3(0x15d),'hidden':!![]},{'name':'sqlcode','meowKey':a94_0x3d27c3(0x169),'type':a94_0x3d27c3(0x14e),'description':a94_0x3d27c3(0x172),'hidden':!![]},{'name':'params','meowKey':a94_0x3d27c3(0x174),'type':a94_0x3d27c3(0x14e),'description':a94_0x3d27c3(0x15f),'hidden':!![]},{'name':a94_0x3d27c3(0x176),'meowKey':a94_0x3d27c3(0x176),'type':'boolean','description':a94_0x3d27c3(0x16c),'hidden':!![]},{'name':a94_0x3d27c3(0x159),'meowKey':a94_0x3d27c3(0x159),'type':'boolean','description':a94_0x3d27c3(0x171),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set(['appcode',a94_0x3d27c3(0x16d),a94_0x3d27c3(0x156),a94_0x3d27c3(0x16e),'jq',a94_0x3d27c3(0x14c),a94_0x3d27c3(0x154),'non-interactive','ci']);export function buildMeowFlags(){const _0x5676c8=a94_0x3d27c3;return Object['fromEntries'](GLOBAL_FLAGS[_0x5676c8(0x162)](_0x2c1963=>[_0x2c1963['meowKey'],{'type':_0x2c1963[_0x5676c8(0x15c)]}]));}
|
package/lib/constant/defaults.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a95_0x1cc7eb=a95_0x9748;function a95_0x9748(_0x3b525c,_0x19d767){_0x3b525c=_0x3b525c-0x148;const _0x94a124=a95_0x94a1();let _0x974891=_0x94a124[_0x3b525c];return _0x974891;}(function(_0x410987,_0x163e80){const _0xaac3ba=a95_0x9748,_0x1eef4b=_0x410987();while(!![]){try{const _0x401936=parseInt(_0xaac3ba(0x149))/0x1+parseInt(_0xaac3ba(0x148))/0x2*(-parseInt(_0xaac3ba(0x150))/0x3)+-parseInt(_0xaac3ba(0x14b))/0x4*(-parseInt(_0xaac3ba(0x14a))/0x5)+-parseInt(_0xaac3ba(0x14c))/0x6+parseInt(_0xaac3ba(0x151))/0x7+parseInt(_0xaac3ba(0x14e))/0x8+parseInt(_0xaac3ba(0x152))/0x9;if(_0x401936===_0x163e80)break;else _0x1eef4b['push'](_0x1eef4b['shift']());}catch(_0x212ea7){_0x1eef4b['push'](_0x1eef4b['shift']());}}}(a95_0x94a1,0x44dd0));export const DEFAULT_APP_PROFILE_NAME=a95_0x1cc7eb(0x153);function a95_0x94a1(){const _0x2de65c=['550788bmvklj','2644767aniHMD','main','5222nEkcqi','407263gSBSYM','311915gVHWya','8khIRPv','2399370njWzlJ','write','2542880RZAiZu','production','621ZJtVDR'];a95_0x94a1=function(){return _0x2de65c;};return a95_0x94a1();}export const DEFAULT_CONFIG_VALUES={'env':a95_0x1cc7eb(0x14f),'format':'compress','locale':'en-US','riskLevel':a95_0x1cc7eb(0x14d)};export const DEFAULT_COMMAND_OUTPUT_FORMAT='compress';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a96_0x340514=a96_0x16df;function a96_0x16df(_0x126061,_0x270ef2){_0x126061=_0x126061-0x82;const _0x39609b=a96_0x3960();let _0x16dfef=_0x39609b[_0x126061];return _0x16dfef;}(function(_0x3c3f59,_0x17c395){const _0x3c8690=a96_0x16df,_0x2fa003=_0x3c3f59();while(!![]){try{const _0x59e764=-parseInt(_0x3c8690(0x8b))/0x1+parseInt(_0x3c8690(0x82))/0x2*(parseInt(_0x3c8690(0x83))/0x3)+-parseInt(_0x3c8690(0x87))/0x4+parseInt(_0x3c8690(0x89))/0x5+-parseInt(_0x3c8690(0x88))/0x6+-parseInt(_0x3c8690(0x86))/0x7*(-parseInt(_0x3c8690(0x8f))/0x8)+parseInt(_0x3c8690(0x8e))/0x9*(parseInt(_0x3c8690(0x90))/0xa);if(_0x59e764===_0x17c395)break;else _0x2fa003['push'](_0x2fa003['shift']());}catch(_0x624d43){_0x2fa003['push'](_0x2fa003['shift']());}}}(a96_0x3960,0x89846));import{PRODUCT_CONFIG}from'../constant/product.js';export const LOVRABET_NPM_PACKAGE_NAME=PRODUCT_CONFIG[a96_0x340514(0x8a)];function a96_0x3960(){const _0xc4fa41=['npmPackageName','714240AHsLcr','npmRegistryBaseUrl','cliCdnBaseUrl','12080619WSEoSl','114776BMTHah','10sZFXpF','432148TGJeTT','3LdGEGX','skillSource','/dist/lovrabet-cli/config/index.json','133kBguFU','3504644mMFnbE','348864HiiytG','1904285IhWtZi'];a96_0x3960=function(){return _0xc4fa41;};return a96_0x3960();}export const LOVRABET_SKILL_SOURCE=PRODUCT_CONFIG[a96_0x340514(0x84)];export const NPM_REGISTRY_BASE_URL=PRODUCT_CONFIG[a96_0x340514(0x8c)];export const LOVRABET_CLI_CDN_BASE_URL=PRODUCT_CONFIG[a96_0x340514(0x8d)];export const LOVRABET_CLI_VERSION_POLICY_URL=LOVRABET_CLI_CDN_BASE_URL+a96_0x340514(0x85);
|
package/lib/constant/domain.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a97_0xba245f=a97_0x5262;function a97_0x2904(){const _0x3b9d3c=['daily','runtime','6726hBcmSW','6090JMhPAu','6eIVuCb','api','35vnrZJp','12WFBUzJ','apiDomain','1580385cfxGEf','4123JwHdDj','5229ZdYpVP','4904088Aayszc','8976517ckyBdt','kbServiceDomain','34528OYQFaN','user','runtimeDomain','allowOfficialKbServiceDefault','304496ViCZqI','skillDomain','production'];a97_0x2904=function(){return _0x3b9d3c;};return a97_0x2904();}(function(_0x6014ae,_0x38036){const _0x3c4a60=a97_0x5262,_0x333af8=_0x6014ae();while(!![]){try{const _0x247d96=-parseInt(_0x3c4a60(0x15c))/0x1*(parseInt(_0x3c4a60(0x151))/0x2)+parseInt(_0x3c4a60(0x14b))/0x3+-parseInt(_0x3c4a60(0x155))/0x4*(-parseInt(_0x3c4a60(0x15e))/0x5)+-parseInt(_0x3c4a60(0x15a))/0x6*(parseInt(_0x3c4a60(0x14c))/0x7)+parseInt(_0x3c4a60(0x14e))/0x8+-parseInt(_0x3c4a60(0x14d))/0x9*(-parseInt(_0x3c4a60(0x15b))/0xa)+parseInt(_0x3c4a60(0x14f))/0xb*(-parseInt(_0x3c4a60(0x15f))/0xc);if(_0x247d96===_0x38036)break;else _0x333af8['push'](_0x333af8['shift']());}catch(_0x2da131){_0x333af8['push'](_0x333af8['shift']());}}}(a97_0x2904,0x6d08b));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,customKbServiceDomain,allowOfficialKbServiceDefault=!![],activeRegion=DEFAULT_LOVRABET_REGION;export function initDomains(_0x48f7c9){const _0x55a571=a97_0x5262;customApiDomain=_0x48f7c9?.[_0x55a571(0x160)],customUserDomain=_0x48f7c9?.['userDomain'],customRuntimeDomain=_0x48f7c9?.[_0x55a571(0x153)],customSkillDomain=_0x48f7c9?.[_0x55a571(0x156)],customKbServiceDomain=_0x48f7c9?.[_0x55a571(0x150)],allowOfficialKbServiceDefault=_0x48f7c9?.[_0x55a571(0x154)]??!![],activeRegion=_0x48f7c9?.['region']??DEFAULT_LOVRABET_REGION;}const getActiveRegionDomains=()=>{const _0x3f9277=a97_0x5262,_0x53b5e1=OFFICIAL_ROUTING_PROFILES[activeRegion]['serviceDomains'];return isProduction(getEnv())?_0x53b5e1['production']:_0x3f9277(0x158)in _0x53b5e1?_0x53b5e1[_0x3f9277(0x158)]:_0x53b5e1[_0x3f9277(0x157)];};export const getUserDomain=()=>customUserDomain||getActiveRegionDomains()[a97_0xba245f(0x152)];export const getApiDomain=()=>customApiDomain||getActiveRegionDomains()[a97_0xba245f(0x15d)];export const getRuntimeDomain=()=>customRuntimeDomain||getActiveRegionDomains()[a97_0xba245f(0x159)];export const getSkillDomain=()=>customSkillDomain||getActiveRegionDomains()['skill'];function a97_0x5262(_0x2a8614,_0x5846ba){_0x2a8614=_0x2a8614-0x14b;const _0x2904e0=a97_0x2904();let _0x526260=_0x2904e0[_0x2a8614];return _0x526260;}export const getKbServiceDomain=()=>{if(customKbServiceDomain)return customKbServiceDomain;if(!allowOfficialKbServiceDefault)return undefined;const _0x4d6e42=getActiveRegionDomains();return'kbService'in _0x4d6e42?_0x4d6e42['kbService']:undefined;};
|
package/lib/constant/env.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a98_0x163aaf=a98_0x4a07;(function(_0x5b1703,_0x53106d){const _0x5f0c2f=a98_0x4a07,_0x383937=_0x5b1703();while(!![]){try{const _0x53af26=parseInt(_0x5f0c2f(0x104))/0x1*(parseInt(_0x5f0c2f(0xfe))/0x2)+-parseInt(_0x5f0c2f(0x103))/0x3+parseInt(_0x5f0c2f(0xfa))/0x4*(parseInt(_0x5f0c2f(0x101))/0x5)+parseInt(_0x5f0c2f(0x105))/0x6+parseInt(_0x5f0c2f(0x100))/0x7+-parseInt(_0x5f0c2f(0x102))/0x8*(parseInt(_0x5f0c2f(0xfb))/0x9)+-parseInt(_0x5f0c2f(0x106))/0xa;if(_0x53af26===_0x53106d)break;else _0x383937['push'](_0x383937['shift']());}catch(_0x297dee){_0x383937['push'](_0x383937['shift']());}}}(a98_0xa4c2,0x35470));function a98_0x4a07(_0x55b2a2,_0x34bc0c){_0x55b2a2=_0x55b2a2-0xf7;const _0xa4c29=a98_0xa4c2();let _0x4a07d4=_0xa4c29[_0x55b2a2];return _0x4a07d4;}import{productEnv}from'../constant/product.js';export const RUNTIME_ENV_VALUES=[a98_0x163aaf(0xf7),a98_0x163aaf(0xf8),a98_0x163aaf(0xff)];export function normalizeEnv(_0x4b8e2b){const _0x2af02c=a98_0x163aaf;return _0x4b8e2b===_0x2af02c(0xfd)?_0x2af02c(0xf7):_0x4b8e2b;}export function isProduction(_0x37312e){return normalizeEnv(_0x37312e)==='production';}function a98_0xa4c2(){const _0x56b6ad=['472788msWWrC','ENV','online','156346eBGupu','daily','1875503lCMKBC','140420ABSiQu','56JFdRqd','247176VLmZPK','5sUSDLp','988824hYZGmA','1833420nvYNgM','production','development','dev','4UEcycS'];a98_0xa4c2=function(){return _0x56b6ad;};return a98_0xa4c2();}export function isDaily(_0x39139f){const _0x9d082c=a98_0x163aaf;return normalizeEnv(_0x39139f)===_0x9d082c(0xff);}export function isDev(_0x57b04e){const _0x556f52=a98_0x163aaf,_0x4a412d=normalizeEnv(_0x57b04e);return _0x4a412d===_0x556f52(0xf8)||_0x4a412d===_0x556f52(0xf9);}let env=normalizeEnv(productEnv(a98_0x163aaf(0xfc))||a98_0x163aaf(0xf7));export function getEnv(){return env;}export function initEnv(_0xd78b75){env=normalizeEnv(_0xd78b75);}
|
package/lib/constant/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a99_0x2564(_0x3d011b,_0x32bd6c){_0x3d011b=_0x3d011b-0x89;const _0x174c20=a99_0x174c();let _0x2564f9=_0x174c20[_0x3d011b];return _0x2564f9;}function a99_0x174c(){const _0x4384f6=['compress','9LeebeT','6023770gAVGCR','5320120bqdnnE','8XpxWKY','pretty','1157880DdliyT','614JUuBYz','6588970ewhoqe','6285390wbTULi','11464684PNzFqU','5270YTLtcX','json'];a99_0x174c=function(){return _0x4384f6;};return a99_0x174c();}const a99_0x256e1a=a99_0x2564;(function(_0x475bf9,_0x3af77b){const _0x2c8202=a99_0x2564,_0x1111de=_0x475bf9();while(!![]){try{const _0x3c2059=-parseInt(_0x2c8202(0x92))/0x1*(parseInt(_0x2c8202(0x8e))/0x2)+parseInt(_0x2c8202(0x8d))/0x3+-parseInt(_0x2c8202(0x8a))/0x4+parseInt(_0x2c8202(0x8f))/0x5+parseInt(_0x2c8202(0x90))/0x6+parseInt(_0x2c8202(0x91))/0x7*(parseInt(_0x2c8202(0x8b))/0x8)+parseInt(_0x2c8202(0x95))/0x9*(-parseInt(_0x2c8202(0x89))/0xa);if(_0x3c2059===_0x3af77b)break;else _0x1111de['push'](_0x1111de['shift']());}catch(_0x4ee93d){_0x1111de['push'](_0x1111de['shift']());}}}(a99_0x174c,0xcccb2));export const OUTPUT_FORMAT_VALUES=[a99_0x256e1a(0x93),a99_0x256e1a(0x8c),a99_0x256e1a(0x94)];
|
package/lib/constant/product.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a100_0x13c3(){const _0x28d2fc=['cli:lovrabet-runtime','.lovrabet-runtime.log','13svVEsl','git@codeup.aliyun.com:yuntoo/open/lovrabet-runtime-cli.git','https://g.lovrabet.com','1422480mnxocz','109206sOytbq','/user/ak','https://registry.npmjs.org','6VqTATe','3694138IuNhhp','lovrabet/lovrabet-cli','.lovrabet','2848041qUJXMs','4706624XOcoeS','SKIP_NPX_SKILLS','1070270IBlick','Lovrabet\x20Runtime\x20CLI','.lovrabet.json','2707228fHTPQX','envPrefix','LOVRABET','lovrabet','legacyEnvPrefixes'];a100_0x13c3=function(){return _0x28d2fc;};return a100_0x13c3();}const a100_0x404377=a100_0x2e02;(function(_0x316131,_0x129b6e){const _0x1deb5e=a100_0x2e02,_0x21833d=_0x316131();while(!![]){try{const _0x1c6471=parseInt(_0x1deb5e(0x1eb))/0x1*(parseInt(_0x1deb5e(0x1d7))/0x2)+-parseInt(_0x1deb5e(0x1d6))/0x3+parseInt(_0x1deb5e(0x1e4))/0x4+parseInt(_0x1deb5e(0x1e1))/0x5*(-parseInt(_0x1deb5e(0x1da))/0x6)+-parseInt(_0x1deb5e(0x1db))/0x7+parseInt(_0x1deb5e(0x1df))/0x8+-parseInt(_0x1deb5e(0x1de))/0x9;if(_0x1c6471===_0x129b6e)break;else _0x21833d['push'](_0x21833d['shift']());}catch(_0xa4b3fa){_0x21833d['push'](_0x21833d['shift']());}}}(a100_0x13c3,0x6c0d1));export const PRODUCT_CONFIG={'cliBinName':a100_0x404377(0x1e7),'cliDisplayName':a100_0x404377(0x1e2),'npmPackageName':'@lovrabet/lovrabet-cli','skillSource':a100_0x404377(0x1dc),'internalSkillSource':a100_0x404377(0x1d4),'globalSkillName':a100_0x404377(0x1e7),'npmRegistryBaseUrl':a100_0x404377(0x1d9),'cliCdnBaseUrl':a100_0x404377(0x1d5),'envPrefix':a100_0x404377(0x1e6),'legacyEnvPrefixes':['RABETBASE'],'configFileNames':[a100_0x404377(0x1e3)],'newConfigFileName':'.lovrabet.json','homeDirName':a100_0x404377(0x1dd),'logFileName':a100_0x404377(0x1ea),'invokeSource':a100_0x404377(0x1e9),'userCenterDisplayName':'Lovrabet\x20User\x20Center','skipNpxSkillsEnvSuffix':a100_0x404377(0x1e0),'accessKeyCreatePath':a100_0x404377(0x1d8)};export function productEnvName(_0x93858){const _0x3dac4a=a100_0x404377;return PRODUCT_CONFIG[_0x3dac4a(0x1e5)]+'_'+_0x93858;}export function productEnvNames(_0x140327){const _0x2f5e84=a100_0x404377;return[productEnvName(_0x140327),...PRODUCT_CONFIG[_0x2f5e84(0x1e8)]['map'](_0x4da8cd=>_0x4da8cd+'_'+_0x140327)];}function a100_0x2e02(_0xc3d221,_0x30c25d){_0xc3d221=_0xc3d221-0x1d4;const _0x13c38d=a100_0x13c3();let _0x2e0208=_0x13c38d[_0xc3d221];return _0x2e0208;}export function productEnv(_0x39eee6){for(const _0x295054 of productEnvNames(_0x39eee6)){const _0x4e5d0f=process.env[_0x295054];if(_0x4e5d0f!==undefined)return _0x4e5d0f;}return undefined;}
|
package/lib/constant/region.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x53b879,_0x118995){const _0x1f99eb=a101_0x72aa,_0x2a1125=_0x53b879();while(!![]){try{const _0x47c985=-parseInt(_0x1f99eb(0xb5))/0x1+parseInt(_0x1f99eb(0xb9))/0x2*(-parseInt(_0x1f99eb(0xbb))/0x3)+-parseInt(_0x1f99eb(0xbd))/0x4+-parseInt(_0x1f99eb(0xbf))/0x5+parseInt(_0x1f99eb(0xb6))/0x6*(-parseInt(_0x1f99eb(0xba))/0x7)+-parseInt(_0x1f99eb(0xc6))/0x8+parseInt(_0x1f99eb(0xc3))/0x9*(parseInt(_0x1f99eb(0xc5))/0xa);if(_0x47c985===_0x118995)break;else _0x2a1125['push'](_0x2a1125['shift']());}catch(_0x5c9012){_0x2a1125['push'](_0x2a1125['shift']());}}}(a101_0x56e0,0xaa532));import{DEFAULT_REGION,ENABLED_REGION_VALUES,REGION_ALIASES,REGION_VALUES}from'../generated/official-routing.js';import{CliErrors}from'../errors.js';export const LOVRABET_REGION_VALUES=REGION_VALUES;export const ENABLED_LOVRABET_REGION_VALUES=ENABLED_REGION_VALUES;function a101_0x72aa(_0x35ff6c,_0x35d10b){_0x35ff6c=_0x35ff6c-0xb4;const _0x56e00a=a101_0x56e0();let _0x72aa7d=_0x56e00a[_0x35ff6c];return _0x72aa7d;}function a101_0x56e0(){const _0x47fb0b=['5139tLlyGc','Available\x20regions:\x20','57180dAkWMu','9368680MqmJiW','validation','Region\x20\x22','102215QUMYHS','466638GOQOxD','Invalid\x20region\x20value:\x20expected\x20a\x20string,\x20received\x20','includes','54398gvjsvA','14FbbGmB','3rnwECf','Run\x20`lovrabet\x20config\x20init`\x20to\x20restore\x20the\x20global\x20country/region\x20configuration.','2747164PpPute','\x22\x20is\x20not\x20currently\x20available.','2122460qzddbw','string','join','.\x20Run\x20`lovrabet\x20config\x20init`\x20to\x20repair\x20the\x20global\x20configuration.'];a101_0x56e0=function(){return _0x47fb0b;};return a101_0x56e0();}export const DEFAULT_LOVRABET_REGION=DEFAULT_REGION;export function isLovrabetRegion(_0x32732e){const _0x124359=a101_0x72aa;return typeof _0x32732e===_0x124359(0xc0)&&LOVRABET_REGION_VALUES['includes'](_0x32732e);}export function isEnabledLovrabetRegion(_0x3741cc){const _0x547e39=a101_0x72aa;return typeof _0x3741cc==='string'&&ENABLED_LOVRABET_REGION_VALUES[_0x547e39(0xb8)](_0x3741cc);}export function normalizeLovrabetRegion(_0x15fe30){const _0x68f9b=a101_0x72aa;if(_0x15fe30===undefined||_0x15fe30===null||_0x15fe30==='')return DEFAULT_LOVRABET_REGION;if(typeof _0x15fe30!==_0x68f9b(0xc0))throw CliErrors['validation'](_0x68f9b(0xb7)+typeof _0x15fe30+'.',_0x68f9b(0xbc));const _0x5e21b0=REGION_ALIASES[_0x15fe30]??_0x15fe30;if(isEnabledLovrabetRegion(_0x5e21b0))return _0x5e21b0;throw CliErrors[_0x68f9b(0xc7)](_0x68f9b(0xb4)+_0x15fe30+_0x68f9b(0xbe),_0x68f9b(0xc4)+ENABLED_LOVRABET_REGION_VALUES[_0x68f9b(0xc1)](',\x20')+_0x68f9b(0xc2));}
|