@lovrabet/lovrabet-cli 2.3.0-beta.1 → 2.3.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cli.js +1 -1
- package/lib/commands/api-doc/index.js +1 -1
- package/lib/commands/app/cache.js +1 -1
- package/lib/commands/app/definitions.js +1 -1
- package/lib/commands/app/eligibility.js +1 -1
- package/lib/commands/app/mock-loader.js +1 -1
- package/lib/commands/app/remote-source.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/artifact/index.js +1 -1
- package/lib/commands/auth/device.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/auth/prompt.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/exec.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/common/config-policy.js +1 -1
- package/lib/commands/common/constraints.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/config/definitions.js +1 -1
- package/lib/commands/config/init.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/data/index.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/sdk-doc.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/init.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/notification/shared.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/permit/dataset-get.js +1 -1
- package/lib/commands/permit/dataset-set.js +1 -1
- package/lib/commands/permit/index.js +1 -1
- package/lib/commands/permit/page-get.js +1 -1
- package/lib/commands/permit/page-set.js +1 -1
- package/lib/commands/permit/role-menus-set.js +1 -1
- package/lib/commands/permit/role-menus.js +1 -1
- package/lib/commands/permit/shared.js +1 -1
- package/lib/commands/personal-bff/index.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/create.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/schedule/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/service/dynamic.js +1 -1
- package/lib/commands/service/function-name-adapter.js +1 -1
- package/lib/commands/service/index.js +1 -1
- package/lib/commands/service/registry.js +1 -1
- package/lib/commands/skill/commands/create.js +1 -1
- package/lib/commands/skill/commands/diagram.js +1 -1
- package/lib/commands/skill/commands/install.js +1 -1
- package/lib/commands/skill/commands/list.js +1 -1
- package/lib/commands/skill/commands/push.js +1 -1
- package/lib/commands/skill/commands/validate.js +1 -1
- package/lib/commands/skill/diagram.js +1 -1
- package/lib/commands/skill/flags.js +1 -1
- package/lib/commands/skill/index.js +1 -1
- package/lib/commands/skill/manifest-helpers.js +1 -1
- package/lib/commands/skill/push-execute.js +1 -1
- package/lib/commands/skill/push-flow-helpers.js +1 -1
- package/lib/commands/skill/push-retarget.js +1 -1
- package/lib/commands/skill/scopes.js +1 -1
- package/lib/commands/skill/summary.js +1 -1
- package/lib/commands/skill/templates.js +1 -1
- package/lib/commands/skill/validate.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/update.js +1 -1
- package/lib/commands/user-account/bind.js +1 -1
- package/lib/commands/user-account/index.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/config/domain-config.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/app.js +1 -1
- package/lib/constant/auth-mode.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/distribution.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/product.js +1 -1
- package/lib/constant/region.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/url.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/sdk-client.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/dryrun.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/preparse.js +1 -1
- package/lib/framework/rate-limit.js +1 -1
- package/lib/framework/raw-flags.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-confirmation.js +1 -1
- package/lib/framework/runner-error.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/service-order.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/help.js +1 -1
- package/lib/postinstall.js +1 -1
- package/lib/runtime/confirmation.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/skills/builtin-skill.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/runtime-skill-sync/constants.js +1 -1
- package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
- package/lib/skills/runtime-skill-sync/hashing.js +1 -1
- package/lib/skills/runtime-skill-sync/install-target.js +1 -1
- package/lib/skills/runtime-skill-sync/links.js +1 -1
- package/lib/skills/runtime-skill-sync/list-local.js +1 -1
- package/lib/skills/runtime-skill-sync/local-files.js +1 -1
- package/lib/skills/runtime-skill-sync/materialize.js +1 -1
- package/lib/skills/runtime-skill-sync/metadata.js +1 -1
- package/lib/skills/runtime-skill-sync/paths.js +1 -1
- package/lib/skills/runtime-skill-sync/push.js +1 -1
- package/lib/skills/runtime-skill-sync/scopes.js +1 -1
- package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
- package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
- package/lib/skills/runtime-skill-sync.js +1 -1
- package/lib/skills/skill-presence.js +1 -1
- package/lib/utils/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/platform.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
- package/skills/lovrabet/SKILL.md +1 -1
- package/skills/lovrabet.manifest.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a83_0x2e14(_0x157161,_0x40785b){_0x157161=_0x157161-0xc1;const _0x2717c8=a83_0x2717();let _0x2e1448=_0x2717c8[_0x157161];return _0x2e1448;}(function(_0x32f9e8,_0x225684){const _0xeec0bd=a83_0x2e14,_0x29b06e=_0x32f9e8();while(!![]){try{const _0x59900b=-parseInt(_0xeec0bd(0xcb))/0x1*(-parseInt(_0xeec0bd(0xc1))/0x2)+-parseInt(_0xeec0bd(0xc5))/0x3+parseInt(_0xeec0bd(0xc9))/0x4+-parseInt(_0xeec0bd(0xc3))/0x5*(-parseInt(_0xeec0bd(0xc8))/0x6)+parseInt(_0xeec0bd(0xc2))/0x7*(-parseInt(_0xeec0bd(0xca))/0x8)+-parseInt(_0xeec0bd(0xc4))/0x9*(parseInt(_0xeec0bd(0xcc))/0xa)+-parseInt(_0xeec0bd(0xc6))/0xb*(parseInt(_0xeec0bd(0xc7))/0xc);if(_0x59900b===_0x225684)break;else _0x29b06e['push'](_0x29b06e['shift']());}catch(_0x107867){_0x29b06e['push'](_0x29b06e['shift']());}}}(a83_0x2717,0x94a89));import{sqlDetail}from'../../commands/sql/detail.js';import{sqlExec}from'../../commands/sql/exec.js';export const sqlDefinitions=[sqlDetail,sqlExec];function a83_0x2717(){const _0x1b1a7e=['10zytCBY','22WLHiYt','4323809HjEUqs','10AHhokC','2935125PYsLqh','2511627ZCtBTU','22bwlWfu','971724yARmOi','908784eKSubG','4817524hDNbLB','8ZRrIxF','94961WFNfNf'];a83_0x2717=function(){return _0x1b1a7e;};return a83_0x2717();}
|
package/lib/commands/update.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a84_0x42cbf6=a84_0x504d;(function(_0x3ab67e,_0x58ebe8){const _0x2e027e=a84_0x504d,_0x4c3388=_0x3ab67e();while(!![]){try{const _0x2e1406=parseInt(_0x2e027e(0x13c))/0x1+parseInt(_0x2e027e(0x163))/0x2*(-parseInt(_0x2e027e(0x14d))/0x3)+-parseInt(_0x2e027e(0x177))/0x4*(-parseInt(_0x2e027e(0x167))/0x5)+-parseInt(_0x2e027e(0x18e))/0x6*(-parseInt(_0x2e027e(0x18d))/0x7)+-parseInt(_0x2e027e(0x192))/0x8+parseInt(_0x2e027e(0x13b))/0x9*(parseInt(_0x2e027e(0x184))/0xa)+-parseInt(_0x2e027e(0x182))/0xb;if(_0x2e1406===_0x58ebe8)break;else _0x4c3388['push'](_0x4c3388['shift']());}catch(_0x426219){_0x4c3388['push'](_0x4c3388['shift']());}}}(a84_0x9d17,0x95159));import{spawnSync}from'node:child_process';import{fileURLToPath}from'node:url';import{basename,dirname,relative,win32}from'node:path';import a84_0x3fad26 from'semver';import{CliErrors}from'../errors.js';import{CLI_BIN_NAME}from'../constant/cli.js';function a84_0x504d(_0x2e3997,_0xeb5802){_0x2e3997=_0x2e3997-0x13a;const _0x9d1727=a84_0x9d17();let _0x504dc4=_0x9d1727[_0x2e3997];return _0x504dc4;}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';import{inspectInstalledBuiltinSkillVersion,installBuiltinSkill}from'../skills/builtin-skill.js';const updateFlags=[{'name':a84_0x42cbf6(0x150),'type':a84_0x42cbf6(0x162),'description':a84_0x42cbf6(0x14a),'default':![]},{'name':a84_0x42cbf6(0x157),'type':a84_0x42cbf6(0x162),'description':a84_0x42cbf6(0x158),'default':![]},{'name':a84_0x42cbf6(0x164),'type':a84_0x42cbf6(0x17b),'description':a84_0x42cbf6(0x149)}];function getRequestedVersion(_0x1526d6){const _0x4489cb=a84_0x42cbf6,_0x3f1206=_0x1526d6[_0x4489cb(0x159)](_0x4489cb(0x164))[_0x4489cb(0x160)]();if(_0x3f1206)return _0x3f1206;return String(_0x1526d6['args']?.[0x0]??'')['trim']();}async function validateUpdateFlags(_0x2eacf3){const _0x214c9b=a84_0x42cbf6,_0x30ae12=getRequestedVersion(_0x2eacf3),_0x17de3f=[_0x2eacf3[_0x214c9b(0x16e)]('latest')?'latest':'',_0x2eacf3[_0x214c9b(0x16e)]('beta')?_0x214c9b(0x157):'',_0x30ae12?'version':''][_0x214c9b(0x165)](Boolean);if(_0x17de3f[_0x214c9b(0x15d)]>0x1)throw CliErrors[_0x214c9b(0x13f)]('--latest,\x20--beta,\x20and\x20version\x20cannot\x20be\x20used\x20together.',_0x214c9b(0x172));if(_0x30ae12&&!a84_0x3fad26[_0x214c9b(0x156)](_0x30ae12))throw CliErrors['validation'](_0x214c9b(0x153)+_0x30ae12,'Use\x20a\x20full\x20semver\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.');}async function fetchNpmDistTags(){const _0x3ea2d4=a84_0x42cbf6;try{const _0xc0e6d5=NPM_REGISTRY_BASE_URL+_0x3ea2d4(0x180)+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+_0x3ea2d4(0x140),_0x3af270=await fetch(_0xc0e6d5,{'signal':AbortSignal[_0x3ea2d4(0x178)](0x2710)});if(!_0x3af270['ok'])return null;const _0x467f49=await _0x3af270[_0x3ea2d4(0x15f)]();if(!_0x467f49||typeof _0x467f49!==_0x3ea2d4(0x13e))return null;return Object[_0x3ea2d4(0x174)](Object[_0x3ea2d4(0x15e)](_0x467f49)[_0x3ea2d4(0x165)](([,_0x42abea])=>typeof _0x42abea===_0x3ea2d4(0x17b)&&_0x42abea[_0x3ea2d4(0x160)]())['map'](([_0xfbc321,_0x11a9bc])=>[_0xfbc321,String(_0x11a9bc)[_0x3ea2d4(0x160)]()]));}catch{return null;}}function a84_0x9d17(){const _0x156f9c=['npm','read','6972lNVuOZ','7278gLFakP','Checking\x20CLI\x20Built-in\x20Skill...','@lovrabet/lovrabet-cli','code','1279792KuPkuU','Update\x20failed:\x20','18jEoYVT','653067enkMYO','exit\x20','object','validation','/dist-tags','dirname','cwd','relative','win32','nonInteractive','message','Updating\x20','update','Install\x20a\x20specific\x20CLI\x20version','Install\x20the\x20version\x20from\x20npm\x20latest\x20dist-tag','\x20\x20Run\x20manually:\x20','test','72456WLUZDM','Updated\x20to\x20v','skillVersion','latest','state','\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20','Invalid\x20version:\x20','source','stderr','valid','beta','Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','str','log',']:\x20','inherit','length','entries','json','trim','\x20\x20CLI\x20Built-in\x20Skill\x20','boolean','44CkEfTG','version','filter','Already\x20on\x20requested\x20version\x20(v','5XCFOLy','install','\x20\x20CLI\x20Built-in\x20Skill\x20repair\x20failed\x20[','stdout','repairCommand','write','\x20CLI\x20from\x20npm','bool','Version\x20comparison\x20failed:\x20','\x20is\x20current.','unknown','Choose\x20exactly\x20one\x20target:\x20--latest,\x20--beta,\x20or\x20--version\x20<version>.','includes','fromEntries','basename','Unable\x20to\x20resolve\x20','640748mCHSLQ','timeout','current','platform','string','--prefix','@lovrabet\x5clovrabet-cli','\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.','INSTALL_FAILED','/-/package/','warn','14203409AlOBzQ','toString','2858920nXuFRP','Already\x20up\x20to\x20date\x20(v','\x20\x20Built-in\x20Skill\x20verification\x20failed:\x20','Current\x20version:\x20','pipe','Global\x20npm\x20prefix\x20is\x20not\x20writable;\x20retrying\x20in\x20the\x20current\x20CLI\x20Node\x20environment:\x20','error'];a84_0x9d17=function(){return _0x156f9c;};return a84_0x9d17();}async function resolveTargetVersion(_0x11e5f2){const _0x252026=a84_0x42cbf6,_0x510cae=getRequestedVersion(_0x11e5f2);if(_0x510cae)return{'version':_0x510cae,'source':_0x252026(0x164)};const _0x36d998=_0x11e5f2['bool'](_0x252026(0x157))?_0x252026(0x157):'latest',_0xeb13b8=await fetchNpmDistTags(),_0x14e1e3=_0xeb13b8?.[_0x36d998];if(!_0x14e1e3)return null;return{'version':_0x14e1e3,'source':_0x36d998};}function shouldInstallTarget(_0x4329e6,_0x3fa0a3){const _0x2add1c=a84_0x42cbf6;if(_0x3fa0a3[_0x2add1c(0x154)]===_0x2add1c(0x164)||_0x3fa0a3['source']==='beta')return!a84_0x3fad26['eq'](_0x4329e6,_0x3fa0a3['version']);return a84_0x3fad26['lt'](_0x4329e6,_0x3fa0a3[_0x2add1c(0x164)]);}export function installCliPackage(_0x857f06,_0x233170,_0x2117e1=resolveCurrentCliNpmPrefix()){const _0x465294=a84_0x42cbf6,_0x136217=resolveNpmBin(_0x465294(0x18b)),_0x50dcd8=LOVRABET_NPM_PACKAGE_NAME+'@'+_0x857f06,_0x3abe2c=[_0x465294(0x168),'-g',_0x50dcd8],_0x4a9158=runNpmInstall(_0x136217,_0x3abe2c,_0x233170);if(_0x4a9158['ok']||!isNpmPrefixPermissionError(_0x4a9158[_0x465294(0x18a)]))return _0x4a9158;if(!_0x2117e1||_0x4a9158[_0x465294(0x18a)]?.['toLowerCase']()[_0x465294(0x173)](_0x2117e1['toLowerCase']()))return _0x4a9158;return console[_0x465294(0x181)](_0x465294(0x189)+_0x2117e1),runNpmInstall(_0x136217,[..._0x3abe2c,_0x465294(0x17c),_0x2117e1],_0x233170);}export function resolveCurrentCliNpmPrefix(_0x2993de=fileURLToPath(import.meta.url),_0xd4dd04=process[a84_0x42cbf6(0x17a)]){const _0x5a7297=a84_0x42cbf6,_0x502eb9=_0xd4dd04==='win32'?win32:{'basename':basename,'dirname':dirname,'relative':relative},_0x289085=_0x502eb9[_0x5a7297(0x141)](_0x502eb9[_0x5a7297(0x141)](_0x502eb9[_0x5a7297(0x141)](_0x2993de))),_0x327f3b=_0xd4dd04===_0x5a7297(0x144)?_0x5a7297(0x17d):_0x5a7297(0x190);let _0x5c7094=_0x502eb9['dirname'](_0x289085);while(!![]){if(_0x502eb9[_0x5a7297(0x175)](_0x5c7094)==='node_modules'&&_0x502eb9[_0x5a7297(0x143)](_0x5c7094,_0x289085)===_0x327f3b){const _0x24e492=_0x502eb9['dirname'](_0x5c7094);return _0x502eb9['basename'](_0x24e492)==='lib'?_0x502eb9[_0x5a7297(0x141)](_0x24e492):_0x24e492;}const _0x319c18=_0x502eb9[_0x5a7297(0x141)](_0x5c7094);if(_0x319c18===_0x5c7094)return null;_0x5c7094=_0x319c18;}}function runNpmInstall(_0x11680a,_0x20c99b,_0xac7db5){const _0x2f0fa6=a84_0x42cbf6;console[_0x2f0fa6(0x15a)]('*\x20'+[_0x11680a,..._0x20c99b]['join']('\x20'));const _0x4dcb87=spawnSync(_0x11680a,_0x20c99b,{'cwd':process[_0x2f0fa6(0x142)](),'stdio':_0x2f0fa6(0x188),'env':process.env,'shell':![]}),_0x19b618=_0x4dcb87[_0x2f0fa6(0x155)]?_0x4dcb87[_0x2f0fa6(0x155)]['toString']()['trim']():'',_0x8bdac6=_0x4dcb87[_0x2f0fa6(0x16a)]?_0x4dcb87['stdout'][_0x2f0fa6(0x183)]()['trim']():'';if(!_0xac7db5){if(_0x8bdac6)process[_0x2f0fa6(0x16a)][_0x2f0fa6(0x16c)](_0x8bdac6+'\x0a');if(_0x19b618)process['stderr'][_0x2f0fa6(0x16c)](_0x19b618+'\x0a');}if(_0x4dcb87['status']===0x0)return{'ok':!![]};const _0x376817=_0x4dcb87[_0x2f0fa6(0x18a)]?.[_0x2f0fa6(0x146)]||_0x19b618||_0x8bdac6||_0x2f0fa6(0x13d)+(_0x4dcb87['status']??_0x2f0fa6(0x171));return{'ok':![],'error':_0x376817};}function isNpmPrefixPermissionError(_0x41aa0d){const _0x5e7bfa=a84_0x42cbf6;return Boolean(_0x41aa0d&&/\b(?:EACCES|EPERM)\b/[_0x5e7bfa(0x14c)](_0x41aa0d));}function repairCurrentBuiltinSkill(_0x38419b){const _0x487c5a=a84_0x42cbf6;console[_0x487c5a(0x15a)]('Checking\x20CLI\x20Built-in\x20Skill...');const _0xd354bb=installBuiltinSkill({'stdio':_0x38419b?_0x487c5a(0x188):_0x487c5a(0x15c)});if(_0xd354bb['ok'])return console['log'](_0x487c5a(0x161)+_0xd354bb[_0x487c5a(0x14f)]+_0x487c5a(0x170)),!![];return console[_0x487c5a(0x181)](_0x487c5a(0x169)+(_0xd354bb[_0x487c5a(0x191)]||_0x487c5a(0x17f))+_0x487c5a(0x15b)+(_0xd354bb[_0x487c5a(0x18a)]||'unknown')),console[_0x487c5a(0x15a)]('\x20\x20Run\x20manually:\x20'+_0xd354bb[_0x487c5a(0x16b)]),![];}function verifyUpdatedBuiltinSkill(_0x5e1935){const _0x23222a=a84_0x42cbf6;console['log'](_0x23222a(0x18f));const _0x3b3ccb=inspectInstalledBuiltinSkillVersion(_0x5e1935);if(_0x3b3ccb[_0x23222a(0x151)]===_0x23222a(0x179))return console[_0x23222a(0x15a)](_0x23222a(0x161)+_0x5e1935+'\x20is\x20current.'),!![];console['warn'](_0x23222a(0x186)+_0x3b3ccb['state']+'.');if(_0x3b3ccb['reason'])console[_0x23222a(0x181)]('\x20\x20'+_0x3b3ccb['reason']);return console[_0x23222a(0x15a)](_0x23222a(0x14b)+_0x3b3ccb['repairCommand']),![];}async function execute(_0x2c5ed8){const _0x13b72a=a84_0x42cbf6;await validateUpdateFlags(_0x2c5ed8);const _0x57b31e=getCliVersion();console[_0x13b72a(0x15a)](_0x13b72a(0x187)+_0x57b31e),console[_0x13b72a(0x15a)]('Checking\x20npm\x20dist-tags...');const _0x41a55f=await resolveTargetVersion(_0x2c5ed8);if(!_0x41a55f){const _0x2ffc6=_0x2c5ed8['bool']('beta')?_0x13b72a(0x157):_0x13b72a(0x150),_0x43a2ce=_0x13b72a(0x176)+_0x2ffc6+'\x20version\x20from\x20npm.';return console[_0x13b72a(0x181)](_0x43a2ce),console[_0x13b72a(0x15a)](_0x13b72a(0x152)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x2ffc6),{'ok':![]};}const _0x1c47e3=[_0x57b31e,_0x41a55f[_0x13b72a(0x164)]]['find'](_0x4c3d2e=>!a84_0x3fad26[_0x13b72a(0x156)](_0x4c3d2e));if(_0x1c47e3)return console[_0x13b72a(0x181)](_0x13b72a(0x16f)+_0x1c47e3+'.'),{'ok':![]};if(!shouldInstallTarget(_0x57b31e,_0x41a55f)){const _0x5556be=_0x41a55f[_0x13b72a(0x154)]===_0x13b72a(0x164)?_0x13b72a(0x166)+_0x41a55f['version']+').':_0x13b72a(0x185)+_0x41a55f['version']+').';return console['log'](_0x5556be),{'ok':repairCurrentBuiltinSkill(_0x2c5ed8[_0x13b72a(0x145)])};}console['log'](_0x13b72a(0x147)+LOVRABET_NPM_PACKAGE_NAME+':\x20'+_0x57b31e+'\x20->\x20'+_0x41a55f['version']);const _0x4e33a5=installCliPackage(_0x41a55f[_0x13b72a(0x164)],_0x2c5ed8[_0x13b72a(0x145)]);if(!_0x4e33a5['ok']){const _0x532696=_0x13b72a(0x13a)+(_0x4e33a5[_0x13b72a(0x18a)]||'unknown');return console[_0x13b72a(0x18a)](_0x532696),console[_0x13b72a(0x15a)]('\x20\x20Try\x20manually:\x20npm\x20install\x20-g\x20'+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x41a55f['version']),{'ok':![]};}return console['log'](_0x13b72a(0x14e)+_0x41a55f['version']+'.'),console[_0x13b72a(0x15a)](_0x13b72a(0x17e)),{'ok':verifyUpdatedBuiltinSkill(_0x41a55f['version'])};}export const updateDefinition={'service':a84_0x42cbf6(0x148),'command':'run','description':'Update\x20the\x20'+CLI_BIN_NAME+a84_0x42cbf6(0x16d),'risk':a84_0x42cbf6(0x18c),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
|
|
1
|
+
const a84_0x271f66=a84_0x54f9;(function(_0x2ce126,_0x22bca1){const _0x500c8f=a84_0x54f9,_0x1f7ad8=_0x2ce126();while(!![]){try{const _0x1be1de=-parseInt(_0x500c8f(0xbc))/0x1+parseInt(_0x500c8f(0xf6))/0x2+-parseInt(_0x500c8f(0xe1))/0x3+parseInt(_0x500c8f(0xdf))/0x4+-parseInt(_0x500c8f(0xea))/0x5*(parseInt(_0x500c8f(0xd4))/0x6)+-parseInt(_0x500c8f(0xfd))/0x7+parseInt(_0x500c8f(0xe3))/0x8*(parseInt(_0x500c8f(0x105))/0x9);if(_0x1be1de===_0x22bca1)break;else _0x1f7ad8['push'](_0x1f7ad8['shift']());}catch(_0x415617){_0x1f7ad8['push'](_0x1f7ad8['shift']());}}}(a84_0x37b8,0x59385));import{spawnSync}from'node:child_process';import{fileURLToPath}from'node:url';import{basename,dirname,relative,win32}from'node:path';import a84_0x356d14 from'semver';import{CliErrors}from'../errors.js';function a84_0x37b8(){const _0x40674f=['\x20CLI\x20from\x20npm','421057lBuDaf','map','valid','\x20->\x20','\x20\x20Run\x20manually:\x20','relative','current','\x20\x20CLI\x20Built-in\x20Skill\x20repair\x20failed\x20[','9PlfVrZ','exit\x20','Choose\x20exactly\x20one\x20target:\x20--latest,\x20--beta,\x20or\x20--version\x20<version>.','platform','json','str','status','toLowerCase','--prefix','Version\x20comparison\x20failed:\x20','647884FVQLQr','\x20\x20CLI\x20Built-in\x20Skill\x20','boolean','string','dirname','includes','Global\x20npm\x20prefix\x20is\x20not\x20writable;\x20retrying\x20in\x20the\x20current\x20CLI\x20Node\x20environment:\x20','Install\x20the\x20version\x20from\x20npm\x20latest\x20dist-tag','validation','Checking\x20CLI\x20Built-in\x20Skill...','node_modules','message',']:\x20','nonInteractive','@lovrabet/lovrabet-cli','length','Invalid\x20version:\x20','toString','npm','\x20is\x20current.','write','inherit','\x20\x20Built-in\x20Skill\x20verification\x20failed:\x20','version','14844RDQstD','repairCommand','log','trim','latest','@lovrabet\x5clovrabet-cli','reason','error','update','bool','entries','1748912rIESOW','Update\x20the\x20','1282470slySYb','pipe','8331152TEMiFC','object','--latest,\x20--beta,\x20and\x20version\x20cannot\x20be\x20used\x20together.','Use\x20a\x20full\x20semver\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.','stderr','unknown','Updated\x20to\x20v','325Zhrkkl','win32','skillVersion','state','/dist-tags','\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.','beta','source','stdout','\x20version\x20from\x20npm.','warn','read','366316gAkzKZ','Current\x20version:\x20','args','install','timeout','join'];a84_0x37b8=function(){return _0x40674f;};return a84_0x37b8();}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';import{inspectInstalledBuiltinSkillVersion,installBuiltinSkill}from'../skills/builtin-skill.js';const updateFlags=[{'name':a84_0x271f66(0xd8),'type':'boolean','description':a84_0x271f66(0xc3),'default':![]},{'name':a84_0x271f66(0xf0),'type':a84_0x271f66(0xbe),'description':'Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','default':![]},{'name':'version','type':a84_0x271f66(0xbf),'description':'Install\x20a\x20specific\x20CLI\x20version'}];function a84_0x54f9(_0x226c8a,_0x4c6c04){_0x226c8a=_0x226c8a-0xba;const _0x37b865=a84_0x37b8();let _0x54f9d5=_0x37b865[_0x226c8a];return _0x54f9d5;}function getRequestedVersion(_0x149ec4){const _0x4c6bbf=a84_0x271f66,_0xfca6e0=_0x149ec4[_0x4c6bbf(0x10a)]('version')[_0x4c6bbf(0xd7)]();if(_0xfca6e0)return _0xfca6e0;return String(_0x149ec4[_0x4c6bbf(0xf8)]?.[0x0]??'')[_0x4c6bbf(0xd7)]();}async function validateUpdateFlags(_0x34564a){const _0x248790=a84_0x271f66,_0xcb605b=getRequestedVersion(_0x34564a),_0x44d783=[_0x34564a[_0x248790(0xdd)](_0x248790(0xd8))?_0x248790(0xd8):'',_0x34564a[_0x248790(0xdd)](_0x248790(0xf0))?_0x248790(0xf0):'',_0xcb605b?_0x248790(0xd3):'']['filter'](Boolean);if(_0x44d783[_0x248790(0xcb)]>0x1)throw CliErrors[_0x248790(0xc4)](_0x248790(0xe5),_0x248790(0x107));if(_0xcb605b&&!a84_0x356d14[_0x248790(0xff)](_0xcb605b))throw CliErrors[_0x248790(0xc4)](_0x248790(0xcc)+_0xcb605b,_0x248790(0xe6));}async function fetchNpmDistTags(){const _0x21e753=a84_0x271f66;try{const _0x124d45=NPM_REGISTRY_BASE_URL+'/-/package/'+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+_0x21e753(0xee),_0x4a5864=await fetch(_0x124d45,{'signal':AbortSignal[_0x21e753(0xfa)](0x2710)});if(!_0x4a5864['ok'])return null;const _0xfbd827=await _0x4a5864[_0x21e753(0x109)]();if(!_0xfbd827||typeof _0xfbd827!==_0x21e753(0xe4))return null;return Object['fromEntries'](Object[_0x21e753(0xde)](_0xfbd827)['filter'](([,_0xd742ab])=>typeof _0xd742ab===_0x21e753(0xbf)&&_0xd742ab[_0x21e753(0xd7)]())[_0x21e753(0xfe)](([_0x33825b,_0x425e04])=>[_0x33825b,String(_0x425e04)['trim']()]));}catch{return null;}}async function resolveTargetVersion(_0x5d3844){const _0x13e6c2=a84_0x271f66,_0x117c4c=getRequestedVersion(_0x5d3844);if(_0x117c4c)return{'version':_0x117c4c,'source':_0x13e6c2(0xd3)};const _0x279816=_0x5d3844[_0x13e6c2(0xdd)](_0x13e6c2(0xf0))?_0x13e6c2(0xf0):_0x13e6c2(0xd8),_0x4e73ea=await fetchNpmDistTags(),_0x26ed3a=_0x4e73ea?.[_0x279816];if(!_0x26ed3a)return null;return{'version':_0x26ed3a,'source':_0x279816};}function shouldInstallTarget(_0xd3325,_0x284915){const _0x27f6a4=a84_0x271f66;if(_0x284915[_0x27f6a4(0xf1)]===_0x27f6a4(0xd3)||_0x284915['source']===_0x27f6a4(0xf0))return!a84_0x356d14['eq'](_0xd3325,_0x284915[_0x27f6a4(0xd3)]);return a84_0x356d14['lt'](_0xd3325,_0x284915[_0x27f6a4(0xd3)]);}export function installCliPackage(_0x1b7fe4,_0x1a9f43,_0x24d669=resolveCurrentCliNpmPrefix()){const _0x1007cb=a84_0x271f66,_0x22d498=resolveNpmBin(_0x1007cb(0xce)),_0x479611=LOVRABET_NPM_PACKAGE_NAME+'@'+_0x1b7fe4,_0x18a2f4=[_0x1007cb(0xf9),'-g',_0x479611],_0x7f638d=runNpmInstall(_0x22d498,_0x18a2f4,_0x1a9f43);if(_0x7f638d['ok']||!isNpmPrefixPermissionError(_0x7f638d[_0x1007cb(0xdb)]))return _0x7f638d;if(!_0x24d669||_0x7f638d['error']?.[_0x1007cb(0x10c)]()[_0x1007cb(0xc1)](_0x24d669[_0x1007cb(0x10c)]()))return _0x7f638d;return console[_0x1007cb(0xf4)](_0x1007cb(0xc2)+_0x24d669),runNpmInstall(_0x22d498,[..._0x18a2f4,_0x1007cb(0xba),_0x24d669],_0x1a9f43);}export function resolveCurrentCliNpmPrefix(_0x1d9afe=fileURLToPath(import.meta.url),_0x5552c7=process[a84_0x271f66(0x108)]){const _0x1a7687=a84_0x271f66,_0x421922=_0x5552c7==='win32'?win32:{'basename':basename,'dirname':dirname,'relative':relative},_0x52f1c9=_0x421922[_0x1a7687(0xc0)](_0x421922[_0x1a7687(0xc0)](_0x421922['dirname'](_0x1d9afe))),_0x599b72=_0x5552c7===_0x1a7687(0xeb)?_0x1a7687(0xd9):_0x1a7687(0xca);let _0x1a1d18=_0x421922[_0x1a7687(0xc0)](_0x52f1c9);while(!![]){if(_0x421922['basename'](_0x1a1d18)===_0x1a7687(0xc6)&&_0x421922[_0x1a7687(0x102)](_0x1a1d18,_0x52f1c9)===_0x599b72){const _0x26e448=_0x421922['dirname'](_0x1a1d18);return _0x421922['basename'](_0x26e448)==='lib'?_0x421922[_0x1a7687(0xc0)](_0x26e448):_0x26e448;}const _0xb2db98=_0x421922[_0x1a7687(0xc0)](_0x1a1d18);if(_0xb2db98===_0x1a1d18)return null;_0x1a1d18=_0xb2db98;}}function runNpmInstall(_0x28b924,_0x4c1fa7,_0x4b51b2){const _0x338c2f=a84_0x271f66;console['log']('*\x20'+[_0x28b924,..._0x4c1fa7][_0x338c2f(0xfb)]('\x20'));const _0x3e5a1a=spawnSync(_0x28b924,_0x4c1fa7,{'cwd':process['cwd'](),'stdio':_0x338c2f(0xe2),'env':process.env,'shell':![]}),_0x30b3df=_0x3e5a1a[_0x338c2f(0xe7)]?_0x3e5a1a[_0x338c2f(0xe7)][_0x338c2f(0xcd)]()[_0x338c2f(0xd7)]():'',_0x5bb1cb=_0x3e5a1a[_0x338c2f(0xf2)]?_0x3e5a1a[_0x338c2f(0xf2)][_0x338c2f(0xcd)]()[_0x338c2f(0xd7)]():'';if(!_0x4b51b2){if(_0x5bb1cb)process['stdout']['write'](_0x5bb1cb+'\x0a');if(_0x30b3df)process[_0x338c2f(0xe7)][_0x338c2f(0xd0)](_0x30b3df+'\x0a');}if(_0x3e5a1a[_0x338c2f(0x10b)]===0x0)return{'ok':!![]};const _0x5ef090=_0x3e5a1a['error']?.[_0x338c2f(0xc7)]||_0x30b3df||_0x5bb1cb||_0x338c2f(0x106)+(_0x3e5a1a['status']??'unknown');return{'ok':![],'error':_0x5ef090};}function isNpmPrefixPermissionError(_0x9e3b57){return Boolean(_0x9e3b57&&/\b(?:EACCES|EPERM)\b/['test'](_0x9e3b57));}function repairCurrentBuiltinSkill(_0x555024){const _0x26fc8b=a84_0x271f66;console[_0x26fc8b(0xd6)]('Checking\x20CLI\x20Built-in\x20Skill...');const _0x3b9c95=installBuiltinSkill({'stdio':_0x555024?'pipe':_0x26fc8b(0xd1)});if(_0x3b9c95['ok'])return console[_0x26fc8b(0xd6)](_0x26fc8b(0xbd)+_0x3b9c95[_0x26fc8b(0xec)]+_0x26fc8b(0xcf)),!![];return console[_0x26fc8b(0xf4)](_0x26fc8b(0x104)+(_0x3b9c95['code']||'INSTALL_FAILED')+_0x26fc8b(0xc8)+(_0x3b9c95[_0x26fc8b(0xdb)]||'unknown')),console[_0x26fc8b(0xd6)](_0x26fc8b(0x101)+_0x3b9c95[_0x26fc8b(0xd5)]),![];}function verifyUpdatedBuiltinSkill(_0x4ecd8b){const _0x2c6ca9=a84_0x271f66;console['log'](_0x2c6ca9(0xc5));const _0xfbd39=inspectInstalledBuiltinSkillVersion(_0x4ecd8b);if(_0xfbd39[_0x2c6ca9(0xed)]===_0x2c6ca9(0x103))return console[_0x2c6ca9(0xd6)]('\x20\x20CLI\x20Built-in\x20Skill\x20'+_0x4ecd8b+_0x2c6ca9(0xcf)),!![];console[_0x2c6ca9(0xf4)](_0x2c6ca9(0xd2)+_0xfbd39['state']+'.');if(_0xfbd39[_0x2c6ca9(0xda)])console[_0x2c6ca9(0xf4)]('\x20\x20'+_0xfbd39['reason']);return console[_0x2c6ca9(0xd6)](_0x2c6ca9(0x101)+_0xfbd39['repairCommand']),![];}async function execute(_0x155f4b){const _0x48438e=a84_0x271f66;await validateUpdateFlags(_0x155f4b);const _0x29ca10=getCliVersion();console[_0x48438e(0xd6)](_0x48438e(0xf7)+_0x29ca10),console[_0x48438e(0xd6)]('Checking\x20npm\x20dist-tags...');const _0x2eaac0=await resolveTargetVersion(_0x155f4b);if(!_0x2eaac0){const _0x4a6599=_0x155f4b[_0x48438e(0xdd)](_0x48438e(0xf0))?'beta':_0x48438e(0xd8),_0x5de95e='Unable\x20to\x20resolve\x20'+_0x4a6599+_0x48438e(0xf3);return console['warn'](_0x5de95e),console[_0x48438e(0xd6)]('\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20'+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x4a6599),{'ok':![]};}const _0x32a2d7=[_0x29ca10,_0x2eaac0[_0x48438e(0xd3)]]['find'](_0x4e7209=>!a84_0x356d14[_0x48438e(0xff)](_0x4e7209));if(_0x32a2d7)return console['warn'](_0x48438e(0xbb)+_0x32a2d7+'.'),{'ok':![]};if(!shouldInstallTarget(_0x29ca10,_0x2eaac0)){const _0x244a5e=_0x2eaac0[_0x48438e(0xf1)]===_0x48438e(0xd3)?'Already\x20on\x20requested\x20version\x20(v'+_0x2eaac0[_0x48438e(0xd3)]+').':'Already\x20up\x20to\x20date\x20(v'+_0x2eaac0['version']+').';return console[_0x48438e(0xd6)](_0x244a5e),{'ok':repairCurrentBuiltinSkill(_0x155f4b[_0x48438e(0xc9)])};}console[_0x48438e(0xd6)]('Updating\x20'+LOVRABET_NPM_PACKAGE_NAME+':\x20'+_0x29ca10+_0x48438e(0x100)+_0x2eaac0['version']);const _0x525f4e=installCliPackage(_0x2eaac0['version'],_0x155f4b[_0x48438e(0xc9)]);if(!_0x525f4e['ok']){const _0x510b58='Update\x20failed:\x20'+(_0x525f4e['error']||_0x48438e(0xe8));return console[_0x48438e(0xdb)](_0x510b58),console[_0x48438e(0xd6)]('\x20\x20Try\x20manually:\x20npm\x20install\x20-g\x20'+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x2eaac0['version']),{'ok':![]};}return console[_0x48438e(0xd6)](_0x48438e(0xe9)+_0x2eaac0['version']+'.'),console[_0x48438e(0xd6)](_0x48438e(0xef)),{'ok':verifyUpdatedBuiltinSkill(_0x2eaac0['version'])};}export const updateDefinition={'service':a84_0x271f66(0xdc),'command':'run','description':a84_0x271f66(0xe0)+CLI_BIN_NAME+a84_0x271f66(0xfc),'risk':a84_0x271f66(0xf5),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a85_0x1094b1=a85_0x71ba;(function(_0x10f4fd,_0x1f68b9){const _0xa4261c=a85_0x71ba,_0x4fe581=_0x10f4fd();while(!![]){try{const _0x31a473=parseInt(_0xa4261c(0x126))/0x1*(-parseInt(_0xa4261c(0x124))/0x2)+-parseInt(_0xa4261c(0x13a))/0x3*(-parseInt(_0xa4261c(0x11b))/0x4)+parseInt(_0xa4261c(0x134))/0x5*(parseInt(_0xa4261c(0x139))/0x6)+-parseInt(_0xa4261c(0x138))/0x7*(-parseInt(_0xa4261c(0x136))/0x8)+-parseInt(_0xa4261c(0x131))/0x9+-parseInt(_0xa4261c(0x116))/0xa*(-parseInt(_0xa4261c(0x122))/0xb)+-parseInt(_0xa4261c(0x129))/0xc;if(_0x31a473===_0x1f68b9)break;else _0x4fe581['push'](_0x4fe581['shift']());}catch(_0x2d19cb){_0x4fe581['push'](_0x4fe581['shift']());}}}(a85_0xe6ab,0x427c7));import{bindExternalUserAccount,USER_ACCOUNT_BIND_PATH}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a85_0xe6ab(){const _0x211806=['12ZdZDan','120570GfODee','str','dingtalk','provider','join','209608RJlWxo','Retry\x20with\x20the\x20same\x20--provider\x20and\x20--account-id\x20only\x20after\x20checking\x20the\x20current\x20AccessKey\x20identity.','The\x20current\x20binding\x20is\x20not\x20exposed\x20by\x20the\x20server;\x20before\x20is\x20unavailable.','apiError','(empty)','includes','--account-id\x20cannot\x20be\x20empty.','11xWuxSW','Bind\x20the\x20current\x20platform\x20user\x20to\x20an\x20external\x20provider\x20account','8eMKXcF','validation','11009RpRYJd','Pass\x20one\x20of:\x20','trim','4855860xxTPIy','write','External\x20account\x20ID\x20for\x20the\x20selected\x20provider','toLowerCase','POST','string','Bound\x20current\x20user\x20to\x20external\x20provider\x20account.','Binds\x20the\x20platform\x20user\x20of\x20the\x20current\x20AccessKey\x20to\x20the\x20given\x20collaboration-provider\x20account.\x20An\x20existing\x20bind\x20for\x20the\x20same\x20provider\x20may\x20be\x20replaced.','664749mifCzx','account-id','Unsupported\x20provider:\x20','77095kfpAit','External\x20account\x20binding\x20was\x20not\x20confirmed.','664suQlME','user-account','21035KnMket','126TiHgaf'];a85_0xe6ab=function(){return _0x211806;};return a85_0xe6ab();}const CURRENT_BINDING_WARNING=a85_0x1094b1(0x11d),SUPPORTED_PROVIDERS=[a85_0x1094b1(0x118)];function readBindingInput(_0x3bccb3){const _0x57e88e=a85_0x1094b1,_0xe42b84=_0x3bccb3[_0x57e88e(0x117)](_0x57e88e(0x119))[_0x57e88e(0x128)]()[_0x57e88e(0x12c)]();if(!SUPPORTED_PROVIDERS[_0x57e88e(0x120)](_0xe42b84))throw CliErrors[_0x57e88e(0x125)](_0x57e88e(0x133)+(_0xe42b84||_0x57e88e(0x11f))+'.',_0x57e88e(0x127)+SUPPORTED_PROVIDERS[_0x57e88e(0x11a)](',\x20')+'.');const _0x4c9564=_0x3bccb3['str'](_0x57e88e(0x132))['trim']();if(!_0x4c9564)throw CliErrors['validation'](_0x57e88e(0x121),'Pass\x20the\x20external\x20account\x20ID\x20for\x20the\x20selected\x20provider.');return{'provider':_0xe42b84,'accountId':_0x4c9564};}function a85_0x71ba(_0x30dea3,_0x115933){_0x30dea3=_0x30dea3-0x116;const _0xe6ab2f=a85_0xe6ab();let _0x71ba18=_0xe6ab2f[_0x30dea3];return _0x71ba18;}function buildBindingData(_0x1b8fcb,_0x735868,_0x3b121c){return{'operation':'bind','selector':{'provider':_0x1b8fcb,'accountId':_0x735868},'before':null,'after':{'provider':_0x1b8fcb,'accountId':_0x735868,'bound':!![]},'dryRun':_0x3b121c,'warnings':[CURRENT_BINDING_WARNING]};}export const bindUserAccount={'service':a85_0x1094b1(0x137),'command':'bind','description':a85_0x1094b1(0x123),'risk':a85_0x1094b1(0x12a),'confirmationDescription':a85_0x1094b1(0x130),'requiresAuth':!![],'requiresAppCode':![],'flags':[{'name':'provider','type':a85_0x1094b1(0x12e),'required':!![],'enum':[...SUPPORTED_PROVIDERS],'description':'External\x20account\x20provider'},{'name':a85_0x1094b1(0x132),'type':a85_0x1094b1(0x12e),'required':!![],'description':a85_0x1094b1(0x12b)}],async 'validate'(_0x224e90){readBindingInput(_0x224e90);},async 'dryRun'(_0x41e3e2){const _0xab52f3=a85_0x1094b1,{provider:_0x25c4da,accountId:_0x7edd71}=readBindingInput(_0x41e3e2);return{...buildBindingData(_0x25c4da,_0x7edd71,!![]),'method':_0xab52f3(0x12d),'url':USER_ACCOUNT_BIND_PATH,'body':{'provider':_0x25c4da,'accountId':_0x7edd71}};},async 'execute'(_0x3c47cc){const _0x137bb8=a85_0x1094b1,{provider:_0x4e9fd9,accountId:_0x15d7a2}=readBindingInput(_0x3c47cc),_0x4bc43d=await bindExternalUserAccount(_0x4e9fd9,_0x15d7a2);if(_0x4bc43d!==!![])throw CliErrors[_0x137bb8(0x11e)](_0x137bb8(0x135),_0x137bb8(0x11c));return{'ok':!![],'data':buildBindingData(_0x4e9fd9,_0x15d7a2,![]),'message':_0x137bb8(0x12f)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x52f024,_0x1807b6){const _0x45f11e=a86_0x32d8,_0x2359c4=_0x52f024();while(!![]){try{const _0x7adcfa=-parseInt(_0x45f11e(0x190))/0x1+parseInt(_0x45f11e(0x18f))/0x2+-parseInt(_0x45f11e(0x18d))/0x3*(parseInt(_0x45f11e(0x18b))/0x4)+-parseInt(_0x45f11e(0x192))/0x5+-parseInt(_0x45f11e(0x18e))/0x6+parseInt(_0x45f11e(0x191))/0x7*(-parseInt(_0x45f11e(0x18a))/0x8)+parseInt(_0x45f11e(0x18c))/0x9;if(_0x7adcfa===_0x1807b6)break;else _0x2359c4['push'](_0x2359c4['shift']());}catch(_0x300cc4){_0x2359c4['push'](_0x2359c4['shift']());}}}(a86_0x3cac,0x3a0ed));import{bindUserAccount}from'../../commands/user-account/bind.js';function a86_0x3cac(){const _0x4ea2a0=['927VCweZh','2066412oStKJt','335310DTFyWw','169613NHGqZy','14Pfamax','1172495uXAKba','302952SxZcjd','2028gvDHuw','9459585PNYknV'];a86_0x3cac=function(){return _0x4ea2a0;};return a86_0x3cac();}function a86_0x32d8(_0x55d56b,_0x294d03){_0x55d56b=_0x55d56b-0x18a;const _0x3cac06=a86_0x3cac();let _0x32d8ea=_0x3cac06[_0x55d56b];return _0x32d8ea;}export const userAccountDefinitions=[bindUserAccount];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a87_0x40cb85=a87_0x5a34;(function(_0xa9f4ec,_0x2b95b9){const _0x24a5f5=a87_0x5a34,_0x427637=_0xa9f4ec();while(!![]){try{const _0x36cca4=-parseInt(_0x24a5f5(0x18b))/0x1+-parseInt(_0x24a5f5(0x183))/0x2*(parseInt(_0x24a5f5(0x160))/0x3)+parseInt(_0x24a5f5(0x18a))/0x4+parseInt(_0x24a5f5(0x198))/0x5*(-parseInt(_0x24a5f5(0x16a))/0x6)+-parseInt(_0x24a5f5(0x182))/0x7+-parseInt(_0x24a5f5(0x191))/0x8+-parseInt(_0x24a5f5(0x173))/0x9*(-parseInt(_0x24a5f5(0x163))/0xa);if(_0x36cca4===_0x2b95b9)break;else _0x427637['push'](_0x427637['shift']());}catch(_0x2d442e){_0x427637['push'](_0x427637['shift']());}}}(a87_0x43ad,0x29067));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_0x40cb85(0x172),'type':a87_0x40cb85(0x169),'description':a87_0x40cb85(0x174)},{'name':a87_0x40cb85(0x181),'type':'string','description':a87_0x40cb85(0x168)},{'name':a87_0x40cb85(0x177),'type':a87_0x40cb85(0x169),'description':'Target\x20environment','enum':[...RUNTIME_ENV_VALUES]}];async function executeWorkspaceUse(_0x27b7eb,_0x576077){const _0x311a3b=a87_0x40cb85,_0x4cb2af=_0x27b7eb[_0x311a3b(0x187)](_0x311a3b(0x172))[_0x311a3b(0x189)](),_0x42a03d=_0x27b7eb[_0x311a3b(0x187)](_0x311a3b(0x181))['trim'](),_0x3cd502=_0x27b7eb[_0x311a3b(0x187)](_0x311a3b(0x177))['trim'](),_0x1f5e9b=resolveWorkspaceEnv(_0x3cd502||_0x27b7eb[_0x311a3b(0x18f)]||DEFAULT_CONFIG_VALUES['env']);if(!_0x4cb2af&&!_0x42a03d)throw CliErrors[_0x311a3b(0x16c)](_0x311a3b(0x17c),_0x311a3b(0x193)+CLI_BIN_NAME+_0x311a3b(0x16f)+_0x576077+_0x311a3b(0x184)+CLI_BIN_NAME+_0x311a3b(0x16f)+_0x576077+_0x311a3b(0x179));if(_0x4cb2af&&_0x42a03d)throw CliErrors[_0x311a3b(0x16c)]('Conflicting\x20workspace\x20app\x20selectors.',_0x311a3b(0x190));const _0xec97cb=resolveWriteConfigPath(_0x311a3b(0x180)),_0x20cf38=readConfigFile(_0xec97cb);assertWorkspaceCommandState(_0x576077,_0x20cf38);const _0x2eb46b=_0x42a03d||await resolveRemoteAppCode({'command':_0x576077,'appName':_0x4cb2af,'env':_0x1f5e9b,'accessKey':_0x27b7eb[_0x311a3b(0x18c)]});return writeWorkspaceConfig({'command':_0x576077,'appName':_0x4cb2af,'appcode':_0x2eb46b,'env':_0x1f5e9b,'shouldWriteEnv':!!_0x3cd502,'accessKey':_0x27b7eb['accessKey']},_0xec97cb,_0x20cf38),{'ok':!![],'data':{'configPath':_0xec97cb,'app':_0x4cb2af||null,'appcode':_0x2eb46b,'env':_0x3cd502?_0x1f5e9b:null,'accessKeyWritten':![],'command':_0x311a3b(0x196)+_0x576077},'message':buildWorkspaceMessage(_0xec97cb,_0x4cb2af,_0x2eb46b,_0x3cd502?_0x1f5e9b:undefined)};}async function resolveRemoteAppCode(_0x2dca4e){const _0x3ca228=a87_0x40cb85;if(!_0x2dca4e[_0x3ca228(0x18c)])throw CliErrors['authRequired'](_0x3ca228(0x18d)+CLI_BIN_NAME+_0x3ca228(0x16f)+_0x2dca4e[_0x3ca228(0x188)]+'.');const {setActiveAK:_0x1cb2b0}=await import('../../core/api-client.js'),{getRemoteAppList:_0x5d15bb}=await import('../../commands/app/remote-source.js');_0x1cb2b0(_0x2dca4e[_0x3ca228(0x18c)]);const _0x1f9a4b=await _0x5d15bb({'env':_0x2dca4e['env'],'accessKey':_0x2dca4e['accessKey'],'noCache':![]}),_0x56ffbb=findAppByName(_0x1f9a4b[_0x3ca228(0x16e)],_0x2dca4e[_0x3ca228(0x165)]);if(_0x56ffbb&&!isRuntimeAccessibleApp(_0x56ffbb))throw runtimeInaccessibleAppError(_0x56ffbb,'\x22'+_0x2dca4e[_0x3ca228(0x165)]+'\x22');const _0x38d9fa=_0x56ffbb?.['appCode']?.[_0x3ca228(0x189)]();if(_0x38d9fa)return _0x38d9fa;const _0x2c0faf=_0x1f9a4b[_0x3ca228(0x16e)][_0x3ca228(0x195)](_0x5a605d=>_0x5a605d[_0x3ca228(0x165)])[_0x3ca228(0x15f)](Boolean),_0x26d511=_0x2c0faf[_0x3ca228(0x176)]?_0x3ca228(0x178)+Array['from'](new Set(_0x2c0faf))['join'](',\x20')+'.':'Run\x20`'+CLI_BIN_NAME+_0x3ca228(0x194);throw CliErrors[_0x3ca228(0x16c)]('App\x20\x22'+_0x2dca4e[_0x3ca228(0x165)]+_0x3ca228(0x175),_0x26d511);}function writeWorkspaceConfig(_0x1ea44b,_0x4775b9,_0xb51988){const _0x482d9d=a87_0x40cb85;_0x1ea44b[_0x482d9d(0x164)]&&(_0xb51988[_0x482d9d(0x177)]=_0x1ea44b[_0x482d9d(0x177)]);if(_0x1ea44b[_0x482d9d(0x165)]){const _0x527576=isRecord(_0xb51988[_0x482d9d(0x17e)])?{..._0xb51988[_0x482d9d(0x17e)]}:{},_0x2bf80a=isRecord(_0x527576[_0x1ea44b['appName']])?_0x527576[_0x1ea44b[_0x482d9d(0x165)]]:{};return _0x527576[_0x1ea44b['appName']]={..._0x2bf80a,'appcode':_0x1ea44b[_0x482d9d(0x181)]},_0xb51988[_0x482d9d(0x17e)]=_0x527576,_0xb51988[_0x482d9d(0x171)]=_0x1ea44b[_0x482d9d(0x165)],delete _0xb51988['appcode'],delete _0xb51988[_0x482d9d(0x172)],writeAndReturn(_0x4775b9,_0xb51988);}return _0xb51988[_0x482d9d(0x181)]=_0x1ea44b[_0x482d9d(0x181)],delete _0xb51988[_0x482d9d(0x171)],delete _0xb51988[_0x482d9d(0x172)],writeAndReturn(_0x4775b9,_0xb51988);}function writeAndReturn(_0x3b3cf,_0x5da205){return writeConfigFile(_0x3b3cf,_0x5da205),_0x3b3cf;}function a87_0x43ad(){const _0x407a7f=['\x20workspace\x20init\x20--app\x20<name>`\x20or\x20`','Missing\x20workspace\x20app\x20selector.','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.','apps','workspace','project','appcode','1350580pJoigI','2482xTrdNa','\x20--app\x20<name>\x20[--env\x20daily]\x20or\x20','init','Use\x20`','str','command','trim','1092080RcelQF','282863dFDwiB','accessKey','Resolving\x20--app\x20requires\x20accessKey.\x20Pass\x20--appcode\x20directly,\x20or\x20set\x20accessKey\x20before\x20running\x20','object','envName','Pass\x20either\x20--app\x20<name>\x20or\x20--appcode\x20<code>,\x20not\x20both.','1256384vxHUcC','write','Usage:\x20','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20pass\x20--appcode\x20directly.','map','workspace\x20','\x20workspace\x20use\x20--appcode\x20<code>`\x20to\x20change\x20it.','33280ggRzSr','filter','405OrbAJK','Run\x20`','\x20workspace\x20init\x20--appcode\x20<code>`\x20first.','10wRMMqx','shouldWriteEnv','appName','use','Workspace\x20app\x20context\x20is\x20not\x20initialized.','App\x20code\x20to\x20bind\x20directly','string','132YzhkJJ','\x0aAccessKey:\x20not\x20written','validation','Change\x20the\x20app\x20context\x20already\x20bound\x20to\x20the\x20current\x20working\x20directory','items','\x20workspace\x20','\x22.\x20Allowed:\x20','defaultApp','app','7576533VNKnzT','App\x20name\x20to\x20bind\x20as\x20the\x20current\x20workspace\x20default','\x22\x20not\x20found.','length','env','Available\x20apps:\x20','\x20--appcode\x20<code>\x20[--env\x20daily]','\x0aEnv:\x20'];a87_0x43ad=function(){return _0x407a7f;};return a87_0x43ad();}function resolveWorkspaceEnv(_0x576e81){const _0x3d65a9=a87_0x40cb85;if(RUNTIME_ENV_VALUES['includes'](_0x576e81))return _0x576e81;throw CliErrors[_0x3d65a9(0x16c)]('Invalid\x20env\x20\x22'+_0x576e81+_0x3d65a9(0x170)+RUNTIME_ENV_VALUES['join'](',\x20'));}function buildWorkspaceMessage(_0x4cc37a,_0x4c52c1,_0x2c4de3,_0x26d41a){const _0x196d93=a87_0x40cb85,_0x1284fc=_0x4c52c1?_0x4c52c1+'\x20('+_0x2c4de3+')':_0x2c4de3,_0xc5c251=_0x26d41a?_0x196d93(0x17a)+_0x26d41a:'';return'Workspace\x20configured.\x0aConfig\x20file:\x20'+_0x4cc37a+'\x0aDefault\x20app:\x20'+_0x1284fc+_0xc5c251+_0x196d93(0x16b);}function a87_0x5a34(_0x21de59,_0x2e0415){_0x21de59=_0x21de59-0x15f;const _0x43ad31=a87_0x43ad();let _0x5a34de=_0x43ad31[_0x21de59];return _0x5a34de;}function isRecord(_0xd8a44){const _0x18aa62=a87_0x40cb85;return typeof _0xd8a44===_0x18aa62(0x18e)&&_0xd8a44!==null&&!Array['isArray'](_0xd8a44);}function hasWorkspaceAppBinding(_0xe7abc9){const _0xcdc80a=a87_0x40cb85;if(typeof _0xe7abc9[_0xcdc80a(0x181)]===_0xcdc80a(0x169)&&_0xe7abc9[_0xcdc80a(0x181)][_0xcdc80a(0x189)]()['length']>0x0)return!![];if(typeof _0xe7abc9[_0xcdc80a(0x171)]!==_0xcdc80a(0x169)||!_0xe7abc9['defaultApp'][_0xcdc80a(0x189)]())return![];if(!isRecord(_0xe7abc9[_0xcdc80a(0x17e)]))return![];const _0x39a4e2=_0xe7abc9[_0xcdc80a(0x17e)][_0xe7abc9['defaultApp'][_0xcdc80a(0x189)]()];return isRecord(_0x39a4e2)&&typeof _0x39a4e2[_0xcdc80a(0x181)]===_0xcdc80a(0x169)&&_0x39a4e2[_0xcdc80a(0x181)][_0xcdc80a(0x189)]()[_0xcdc80a(0x176)]>0x0;}function assertWorkspaceCommandState(_0x2408cf,_0x48adb9){const _0x567aa0=a87_0x40cb85,_0x58eb96=hasWorkspaceAppBinding(_0x48adb9);if(_0x2408cf==='init'&&_0x58eb96)throw CliErrors[_0x567aa0(0x16c)]('Workspace\x20app\x20context\x20is\x20already\x20initialized.',_0x567aa0(0x186)+CLI_BIN_NAME+'\x20workspace\x20use\x20--app\x20<name>`\x20or\x20`'+CLI_BIN_NAME+_0x567aa0(0x197));if(_0x2408cf===_0x567aa0(0x166)&&!_0x58eb96)throw CliErrors[_0x567aa0(0x16c)](_0x567aa0(0x167),_0x567aa0(0x161)+CLI_BIN_NAME+_0x567aa0(0x17b)+CLI_BIN_NAME+_0x567aa0(0x162));}function makeWorkspaceCommand(_0x1a4af1){const _0x584f83=a87_0x40cb85;return{'service':_0x584f83(0x17f),'command':_0x1a4af1,'description':_0x1a4af1===_0x584f83(0x185)?'Initialize\x20app\x20context\x20for\x20the\x20current\x20working\x20directory\x20when\x20no\x20app\x20is\x20bound\x20yet':_0x584f83(0x16d),'risk':_0x584f83(0x192),'confirmationDescription':_0x1a4af1===_0x584f83(0x185)?_0x584f83(0x17d):'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'(_0x22b0f6){return executeWorkspaceUse(_0x22b0f6,_0x1a4af1);}};}export const workspaceDefinitions=[makeWorkspaceCommand(a87_0x40cb85(0x185)),makeWorkspaceCommand(a87_0x40cb85(0x166))];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a88_0x30a5(_0x42724f,_0x38cda4){_0x42724f=_0x42724f-0x1e0;const _0x3fe5a7=a88_0x3fe5();let _0x30a538=_0x3fe5a7[_0x42724f];return _0x30a538;}const a88_0x50110d=a88_0x30a5;(function(_0x7de41c,_0x5827be){const _0x378a33=a88_0x30a5,_0x2f947a=_0x7de41c();while(!![]){try{const _0x5d3e4c=-parseInt(_0x378a33(0x209))/0x1*(parseInt(_0x378a33(0x1fc))/0x2)+parseInt(_0x378a33(0x1ed))/0x3*(parseInt(_0x378a33(0x1ec))/0x4)+-parseInt(_0x378a33(0x1fa))/0x5*(-parseInt(_0x378a33(0x207))/0x6)+parseInt(_0x378a33(0x1e5))/0x7+-parseInt(_0x378a33(0x1f8))/0x8*(parseInt(_0x378a33(0x206))/0x9)+-parseInt(_0x378a33(0x1f1))/0xa*(parseInt(_0x378a33(0x205))/0xb)+parseInt(_0x378a33(0x20b))/0xc;if(_0x5d3e4c===_0x5827be)break;else _0x2f947a['push'](_0x2f947a['shift']());}catch(_0x4d24ee){_0x2f947a['push'](_0x2f947a['shift']());}}}(a88_0x3fe5,0x91d6d));import{existsSync,readFileSync}from'node:fs';import{isAbsolute,resolve}from'node:path';import{CliErrors}from'../errors.js';export const DOMAIN_CONFIG_FIELDS=[a88_0x50110d(0x1f9),a88_0x50110d(0x1eb),'runtimeDomain',a88_0x50110d(0x200),a88_0x50110d(0x1e7)];const DOMAIN_FLAGS={'userDomain':'user-domain','apiDomain':a88_0x50110d(0x1f2),'runtimeDomain':a88_0x50110d(0x1e3),'skillDomain':'skill-domain','kbDomain':a88_0x50110d(0x201)};export const LEGACY_DOMAIN_CONFIG_FIELDS=['agentDomain',a88_0x50110d(0x1e4),'skillHubDomain'];function a88_0x3fe5(){const _0x368192=['4175808crMYpg','Unsupported\x20domain\x20config\x20field(s):\x20','28uMznQw',':\x20\x22','1999200giilqv','Domain\x20config\x20file\x20not\x20found:\x20','keys','Invalid\x20domain\x20config:\x20expected\x20a\x20JSON\x20object.','pathname','cwd','runtime-domain','platformDomain','2358482PmtLSI','str','kbDomain','domain-config','password','trim','apiDomain','892Hdgxtj','15801KzLQYQ','length','search','utf8','106840eFRaIJ','api-domain','object','join','Invalid\x20','\x22\x20is\x20not\x20a\x20valid\x20URL.','protocol','2768yBKLtF','userDomain','5KqijzL','https:','40000logRcP','Invalid\x20domain\x20config\x20JSON:\x20','string','validation','skillDomain','kb-domain','hash','includes','filter','869RyrPQN','9693FdLiOW'];a88_0x3fe5=function(){return _0x368192;};return a88_0x3fe5();}export function normalizeDomainOrigin(_0x2d84a5,_0x40339b){const _0x2e6753=a88_0x50110d;if(typeof _0x40339b!==_0x2e6753(0x1fe)||!_0x40339b['trim']())throw CliErrors[_0x2e6753(0x1ff)](_0x2e6753(0x1f5)+_0x2d84a5+':\x20expected\x20a\x20non-empty\x20HTTPS\x20origin.');let _0x1b8d44;try{_0x1b8d44=new URL(_0x40339b[_0x2e6753(0x1ea)]());}catch{throw CliErrors[_0x2e6753(0x1ff)]('Invalid\x20'+_0x2d84a5+_0x2e6753(0x20a)+_0x40339b+_0x2e6753(0x1f6));}if(_0x1b8d44[_0x2e6753(0x1f7)]!==_0x2e6753(0x1fb)||_0x1b8d44['username']||_0x1b8d44[_0x2e6753(0x1e9)]||_0x1b8d44[_0x2e6753(0x1e1)]!=='/'&&_0x1b8d44[_0x2e6753(0x1e1)]!==''||_0x1b8d44[_0x2e6753(0x1ef)]||_0x1b8d44[_0x2e6753(0x202)])throw CliErrors['validation'](_0x2e6753(0x1f5)+_0x2d84a5+':\x20expected\x20an\x20HTTPS\x20origin\x20without\x20credentials,\x20path,\x20query,\x20or\x20fragment.','For\x20internal\x20deployments,\x20terminate\x20TLS\x20at\x20the\x20ingress,\x20reverse\x20proxy,\x20or\x20load\x20balancer;\x20an\x20internal\x20CA\x20is\x20supported.');return _0x1b8d44['origin'];}export function readDomainConfig(_0x19dbe4){const _0x88d271=a88_0x50110d,_0x42cc91=isAbsolute(_0x19dbe4)?_0x19dbe4:resolve(process[_0x88d271(0x1e2)](),_0x19dbe4);if(!existsSync(_0x42cc91))throw CliErrors[_0x88d271(0x1ff)](_0x88d271(0x20c)+_0x42cc91);let _0x21d840;try{_0x21d840=JSON['parse'](readFileSync(_0x42cc91,_0x88d271(0x1f0)));}catch{throw CliErrors['validation'](_0x88d271(0x1fd)+_0x42cc91);}if(!_0x21d840||typeof _0x21d840!==_0x88d271(0x1f3)||Array['isArray'](_0x21d840))throw CliErrors[_0x88d271(0x1ff)](_0x88d271(0x1e0));const _0x426b2d=_0x21d840,_0x93b683=Object[_0x88d271(0x20d)](_0x426b2d)[_0x88d271(0x204)](_0x5b17ca=>!DOMAIN_CONFIG_FIELDS[_0x88d271(0x203)](_0x5b17ca));if(_0x93b683[_0x88d271(0x1ee)]>0x0)throw CliErrors[_0x88d271(0x1ff)](_0x88d271(0x208)+_0x93b683[_0x88d271(0x1f4)](',\x20'),'Allowed\x20fields:\x20'+DOMAIN_CONFIG_FIELDS['join'](',\x20'));const _0x42f340={};for(const _0x241310 of DOMAIN_CONFIG_FIELDS){_0x426b2d[_0x241310]!==undefined&&(_0x42f340[_0x241310]=normalizeDomainOrigin(_0x241310,_0x426b2d[_0x241310]));}if(Object[_0x88d271(0x20d)](_0x42f340)['length']===0x0)throw CliErrors[_0x88d271(0x1ff)]('Invalid\x20domain\x20config:\x20provide\x20at\x20least\x20one\x20supported\x20Domain.');return _0x42f340;}export function resolveDomainFlags(_0x1cdc7b){const _0x272b81=a88_0x50110d,_0x5ec1ac=(_0x1cdc7b[_0x272b81(0x1e6)](_0x272b81(0x1e8))||'')['trim'](),_0x221b3e=_0x5ec1ac?readDomainConfig(_0x5ec1ac):{};for(const _0x442e27 of DOMAIN_CONFIG_FIELDS){const _0x38be9c=(_0x1cdc7b[_0x272b81(0x1e6)](DOMAIN_FLAGS[_0x442e27])||'')[_0x272b81(0x1ea)]();if(_0x38be9c)_0x221b3e[_0x442e27]=normalizeDomainOrigin(_0x442e27,_0x38be9c);}return _0x221b3e;}
|
package/lib/config/schema.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a89_0x1f90b2=a89_0x4386;(function(_0x13401f,_0xe9bb3a){const _0x4f07a2=a89_0x4386,_0x37ea01=_0x13401f();while(!![]){try{const _0x51b79d=parseInt(_0x4f07a2(0x8b))/0x1+parseInt(_0x4f07a2(0x78))/0x2+parseInt(_0x4f07a2(0x89))/0x3+parseInt(_0x4f07a2(0x87))/0x4+-parseInt(_0x4f07a2(0x70))/0x5+parseInt(_0x4f07a2(0x7d))/0x6+-parseInt(_0x4f07a2(0x86))/0x7;if(_0x51b79d===_0xe9bb3a)break;else _0x37ea01['push'](_0x37ea01['shift']());}catch(_0x4c8980){_0x37ea01['push'](_0x37ea01['shift']());}}}(a89_0x362d,0xd3d24));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../constant/env.js';import{OUTPUT_FORMAT_VALUES}from'../constant/output.js';import{DEFAULT_LOVRABET_REGION,ENABLED_LOVRABET_REGION_VALUES}from'../constant/region.js';function a89_0x4386(_0x55b107,_0x2c8e40){_0x55b107=_0x55b107-0x6d;const _0x362df1=a89_0x362d();let _0x438659=_0x362df1[_0x55b107];return _0x438659;}function a89_0x362d(){const _0x412db0=['3497970kvzjid','Target\x20environment','toLowerCase','Default\x20page\x20size','importable','Lovrabet\x20region','format','has','Config\x20key.\x20Top-level:\x20','20482364TymVIG','837044eBKEmR','legacyCompatOnly','4878072uOhipT','Override\x20knowledge-base\x20domain','891278wnUFgy','Risk\x20level','Override\x20SkillHub\x20domain','Default\x20output\x20format','3479635KinFcm','App\x20locale\x20(not\x20CLI\x20language;\x20reserved\x20for\x20later\x20app\x20use)','en-US','riskLevel','enumValues','zh-CN','map','cliSettableTopLevel','2360082KRenNQ','Override\x20user\x20domain',';\x20local\x20alias:\x20apps.<alias>.appcode','filter','entries'];a89_0x362d=function(){return _0x412db0;};return a89_0x362d();}export const CONFIG_FIELD_SCHEMAS={'region':{'description':a89_0x1f90b2(0x82),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':ENABLED_LOVRABET_REGION_VALUES,'defaultValue':DEFAULT_LOVRABET_REGION,'importable':!![]},'env':{'description':a89_0x1f90b2(0x7e),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':RUNTIME_ENV_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES['env'],'importable':!![]},'format':{'description':a89_0x1f90b2(0x6f),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':OUTPUT_FORMAT_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a89_0x1f90b2(0x83)],'importable':!![]},'pageSize':{'description':a89_0x1f90b2(0x80),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'apiDomain':{'description':'Override\x20API\x20domain','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'userDomain':{'description':a89_0x1f90b2(0x79),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'runtimeDomain':{'description':'Override\x20runtime\x20domain','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'skillDomain':{'description':a89_0x1f90b2(0x6e),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'kbDomain':{'description':a89_0x1f90b2(0x8a),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'accessKey':{'description':'Access\x20key\x20(client-ak\x20auth)','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'riskLevel':{'description':a89_0x1f90b2(0x6d),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a89_0x1f90b2(0x73)],'importable':!![]},'locale':{'description':a89_0x1f90b2(0x71),'topLevel':!![],'cliSettableTopLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES['locale'],'importable':!![]}};export const TOP_LEVEL_CONFIG_KEYS=new Set(Object['entries'](CONFIG_FIELD_SCHEMAS)[a89_0x1f90b2(0x7b)](([,_0xde5d48])=>_0xde5d48[a89_0x1f90b2(0x77)])[a89_0x1f90b2(0x76)](([_0x2b7220])=>_0x2b7220));export const CLI_PROTECTED_CONFIG_KEYS=new Set(['riskLevel']);export const CONFIG_ENUM_VALUES=Object['fromEntries'](Object[a89_0x1f90b2(0x7c)](CONFIG_FIELD_SCHEMAS)['filter'](([,_0x70bf89])=>_0x70bf89[a89_0x1f90b2(0x74)])[a89_0x1f90b2(0x76)](([_0x309a4c,_0x5a48c0])=>[_0x309a4c,[..._0x5a48c0['enumValues']||[]]]));export const IMPORTABLE_RUNTIME_CONFIG_KEYS=Object[a89_0x1f90b2(0x7c)](CONFIG_FIELD_SCHEMAS)['filter'](([,_0x1cc4a0])=>_0x1cc4a0[a89_0x1f90b2(0x81)])[a89_0x1f90b2(0x76)](([_0x4cf27d])=>_0x4cf27d);export function getConfigFieldSchema(_0x440d24){return CONFIG_FIELD_SCHEMAS[_0x440d24];}export function getConfigEnumValues(_0x2eae85){return getConfigFieldSchema(_0x2eae85)?.['enumValues'];}export function getConfigDefaultValue(_0x367452){return getConfigFieldSchema(_0x367452)?.['defaultValue'];}export function isTopLevelConfigKey(_0x42de4b){const _0xc3d7e3=a89_0x1f90b2;return TOP_LEVEL_CONFIG_KEYS[_0xc3d7e3(0x84)](_0x42de4b);}export function isCliProtectedConfigKey(_0x1843f2){const _0x19fe30=a89_0x1f90b2;return CLI_PROTECTED_CONFIG_KEYS[_0x19fe30(0x84)](_0x1843f2);}const LOCALE_MAP={'zh':a89_0x1f90b2(0x75),'zh-cn':'zh-CN','zh_cn':a89_0x1f90b2(0x75),'en':a89_0x1f90b2(0x72),'en-us':a89_0x1f90b2(0x72),'en_us':a89_0x1f90b2(0x72)};export function normalizeLocale(_0x4d6c56){const _0x4366d0=a89_0x1f90b2;if(!_0x4d6c56)return null;return LOCALE_MAP[_0x4d6c56[_0x4366d0(0x7f)]()]??null;}export function isLegacyCompatConfigKey(_0x56149d){const _0x45af0d=a89_0x1f90b2;return getConfigFieldSchema(_0x56149d)?.[_0x45af0d(0x88)]===!![];}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function formatConfigKeyList(_0x2d1449){return[..._0x2d1449]['join'](',\x20');}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x2d9e8f=a89_0x1f90b2;return _0x2d9e8f(0x85)+getTopLevelConfigKeySummary()+_0x2d9e8f(0x7a);}export function buildAppProfileListFields(_0x3fdda6){return{'env':_0x3fdda6,'hasAccessKey':![],'format':null,'pageSize':null,'riskLevel':null,'locale':null};}
|
package/lib/constant/app.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a90_0x121485=a90_0x5606;function a90_0x5606(_0x4c8843,_0x298be3){_0x4c8843=_0x4c8843-0x1f1;const _0x3e73b0=a90_0x3e73();let _0x56064f=_0x3e73b0[_0x4c8843];return _0x56064f;}(function(_0x35020b,_0x13af21){const _0x14df20=a90_0x5606,_0x4d35e2=_0x35020b();while(!![]){try{const _0x1f4341=-parseInt(_0x14df20(0x1fa))/0x1*(parseInt(_0x14df20(0x1fc))/0x2)+-parseInt(_0x14df20(0x1f8))/0x3*(-parseInt(_0x14df20(0x1f5))/0x4)+-parseInt(_0x14df20(0x1f1))/0x5*(-parseInt(_0x14df20(0x1f2))/0x6)+-parseInt(_0x14df20(0x1f4))/0x7+-parseInt(_0x14df20(0x1f6))/0x8*(parseInt(_0x14df20(0x1f7))/0x9)+-parseInt(_0x14df20(0x1f9))/0xa+parseInt(_0x14df20(0x1f3))/0xb;if(_0x1f4341===_0x13af21)break;else _0x4d35e2['push'](_0x4d35e2['shift']());}catch(_0x56a09f){_0x4d35e2['push'](_0x4d35e2['shift']());}}}(a90_0x3e73,0x1c8a8));export const APP_PUBLISH_STATUS={'Published':'PUBLISHED','Unpublished':a90_0x121485(0x1fb)};function a90_0x3e73(){const _0x2b3c6a=['180280fNwtMN','12TnXcBI','5002140jWxmZP','1102052MxuwdZ','7064GadlDI','40ImDWhA','156681dNPotZ','78FGJlvu','993160WeBDyC','1mqBeDc','UNPUBLISH','224134AZAihN'];a90_0x3e73=function(){return _0x2b3c6a;};return a90_0x3e73();}export const RUNTIME_ACCESSIBLE_APP_STATUS=APP_PUBLISH_STATUS['Published'];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a91_0x3707b7=a91_0x1a14;(function(_0x13b54e,_0x5af046){const _0x4641b7=a91_0x1a14,_0x92988d=_0x13b54e();while(!![]){try{const _0x37bfc4=parseInt(_0x4641b7(0x107))/0x1+parseInt(_0x4641b7(0x10d))/0x2+parseInt(_0x4641b7(0x110))/0x3*(parseInt(_0x4641b7(0x10f))/0x4)+parseInt(_0x4641b7(0x10a))/0x5+-parseInt(_0x4641b7(0x108))/0x6+parseInt(_0x4641b7(0x10b))/0x7+-parseInt(_0x4641b7(0x10e))/0x8;if(_0x37bfc4===_0x5af046)break;else _0x92988d['push'](_0x92988d['shift']());}catch(_0x28026d){_0x92988d['push'](_0x92988d['shift']());}}}(a91_0x1ec2,0xf1e63));function a91_0x1ec2(){const _0x5b8eea=['6034900nBfCsT','11698848fVeJaT','client-ak','3942000ZSaXyP','31030416OgJeXN','16212tbZKwx','930XkWJRc','179882XypKsf','8495610WQpWZM','ClientAk'];a91_0x1ec2=function(){return _0x5b8eea;};return a91_0x1ec2();}export const AUTH_MODE={'ClientAk':a91_0x3707b7(0x10c)};function a91_0x1a14(_0xf517f6,_0x570b09){_0xf517f6=_0xf517f6-0x107;const _0x1ec28d=a91_0x1ec2();let _0x1a1452=_0x1ec28d[_0xf517f6];return _0x1a1452;}export function isAuthMode(_0x234876){const _0x1e447e=a91_0x3707b7;return _0x234876===AUTH_MODE[_0x1e447e(0x109)];}
|
package/lib/constant/cli.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a92_0x25033d=a92_0x5ec3;(function(_0x1ef184,_0x3f24e4){const _0x36b318=a92_0x5ec3,_0xdb7ac0=_0x1ef184();while(!![]){try{const _0x26dd1e=parseInt(_0x36b318(0x1ef))/0x1*(-parseInt(_0x36b318(0x1eb))/0x2)+parseInt(_0x36b318(0x1e4))/0x3*(-parseInt(_0x36b318(0x1e2))/0x4)+-parseInt(_0x36b318(0x1ff))/0x5+parseInt(_0x36b318(0x1e9))/0x6*(parseInt(_0x36b318(0x1d9))/0x7)+-parseInt(_0x36b318(0x1ea))/0x8*(parseInt(_0x36b318(0x1fe))/0x9)+-parseInt(_0x36b318(0x1fb))/0xa*(-parseInt(_0x36b318(0x1da))/0xb)+-parseInt(_0x36b318(0x1d4))/0xc*(-parseInt(_0x36b318(0x1d3))/0xd);if(_0x26dd1e===_0x3f24e4)break;else _0xdb7ac0['push'](_0xdb7ac0['shift']());}catch(_0x2db7f4){_0xdb7ac0['push'](_0xdb7ac0['shift']());}}}(a92_0x9672,0x93f86));import{PRODUCT_CONFIG}from'../constant/product.js';function a92_0x9672(){const _0x3fb5fc=['Clear\x20output','<name>','env','Output\x20format','<code>','<expr>','28RykPwB','map','9933TgEZMF','global','Name\x20filter','string','nonInteractive','12aKsUOj','8DHbmWT','2kHnxGO','Verbose\x20output','Record\x20ID','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','935885diPDiS','type','dryRun','Override\x20appcode','help','name','Environment','verbose','meowKey','clear','Alias\x20for\x20--non-interactive','production\x20|\x20development\x20|\x20daily','2398960Dzojsj','dry-run','sqlcode','8762373QfdIfo','3823765ipVGUi','params','Skip\x20confirmation\x20for\x20high-risk\x20writes','app','Preview\x20operation\x20without\x20executing','format','appcode','SQL\x20query\x20code','yes','boolean','JSON\x20params\x20for\x20execute\x20commands','52kRZtCF','8809764QlGzqo','cliBinName','cliDisplayName','non-interactive','fromEntries','444549cnMdgK','11iyNQdz','Show\x20help'];a92_0x9672=function(){return _0x3fb5fc;};return a92_0x9672();}import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';function a92_0x5ec3(_0x3155a5,_0x1071ef){_0x3155a5=_0x3155a5-0x1ca;const _0x967265=a92_0x9672();let _0x5ec346=_0x967265[_0x3155a5];return _0x5ec346;}export const CLI_BIN_NAME=PRODUCT_CONFIG[a92_0x25033d(0x1d5)];export const CLI_DISPLAY_NAME=PRODUCT_CONFIG[a92_0x25033d(0x1d6)];export const NPM_PACKAGE_NAME=LOVRABET_NPM_PACKAGE_NAME;export const GLOBAL_FLAGS=[{'name':a92_0x25033d(0x1ce),'meowKey':'appcode','type':a92_0x25033d(0x1e7),'description':a92_0x25033d(0x1f2),'hint':a92_0x25033d(0x1e0)},{'name':a92_0x25033d(0x1cb),'meowKey':a92_0x25033d(0x1cb),'type':a92_0x25033d(0x1e7),'description':'Select\x20app\x20profile\x20by\x20name','hint':a92_0x25033d(0x1dd)},{'name':a92_0x25033d(0x1de),'meowKey':a92_0x25033d(0x1de),'type':a92_0x25033d(0x1e7),'description':a92_0x25033d(0x1f5),'hint':a92_0x25033d(0x1fa)},{'name':a92_0x25033d(0x1cd),'meowKey':a92_0x25033d(0x1cd),'type':a92_0x25033d(0x1e7),'description':a92_0x25033d(0x1df),'hint':'json\x20|\x20pretty\x20|\x20compress'},{'name':'jq','meowKey':'jq','type':a92_0x25033d(0x1e7),'description':a92_0x25033d(0x1ee),'hint':a92_0x25033d(0x1e1)},{'name':a92_0x25033d(0x1fc),'meowKey':a92_0x25033d(0x1f1),'type':a92_0x25033d(0x1d1),'description':a92_0x25033d(0x1cc)},{'name':'yes','meowKey':a92_0x25033d(0x1d0),'type':'boolean','description':a92_0x25033d(0x1ca)},{'name':a92_0x25033d(0x1d7),'meowKey':a92_0x25033d(0x1e8),'type':a92_0x25033d(0x1d1),'description':'Force\x20non-interactive\x20mode\x20(CI)'},{'name':'global','meowKey':a92_0x25033d(0x1e5),'type':a92_0x25033d(0x1d1),'description':'Use\x20global\x20config\x20scope'},{'name':'ci','meowKey':'ci','type':'boolean','description':a92_0x25033d(0x1f9),'hidden':!![]},{'name':'help','meowKey':a92_0x25033d(0x1f3),'type':a92_0x25033d(0x1d1),'description':a92_0x25033d(0x1db)},{'name':'id','meowKey':'id','type':a92_0x25033d(0x1e7),'description':a92_0x25033d(0x1ed),'hidden':!![]},{'name':a92_0x25033d(0x1f4),'meowKey':'name','type':'string','description':a92_0x25033d(0x1e6),'hidden':!![]},{'name':a92_0x25033d(0x1fd),'meowKey':a92_0x25033d(0x1fd),'type':a92_0x25033d(0x1e7),'description':a92_0x25033d(0x1cf),'hidden':!![]},{'name':a92_0x25033d(0x200),'meowKey':a92_0x25033d(0x200),'type':a92_0x25033d(0x1e7),'description':a92_0x25033d(0x1d2),'hidden':!![]},{'name':a92_0x25033d(0x1f6),'meowKey':'verbose','type':a92_0x25033d(0x1d1),'description':a92_0x25033d(0x1ec),'hidden':!![]},{'name':a92_0x25033d(0x1f8),'meowKey':a92_0x25033d(0x1f8),'type':'boolean','description':a92_0x25033d(0x1dc),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a92_0x25033d(0x1ce),a92_0x25033d(0x1cb),a92_0x25033d(0x1de),a92_0x25033d(0x1cd),'jq',a92_0x25033d(0x1fc),a92_0x25033d(0x1d0),a92_0x25033d(0x1d7),'ci']);export function buildMeowFlags(){const _0xb23ece=a92_0x25033d;return Object[_0xb23ece(0x1d8)](GLOBAL_FLAGS[_0xb23ece(0x1e3)](_0x11f795=>[_0x11f795[_0xb23ece(0x1f7)],{'type':_0x11f795[_0xb23ece(0x1f0)]}]));}
|
package/lib/constant/defaults.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a93_0x3d04c0=a93_0x93b8;(function(_0x44ff8e,_0x466071){const _0x2ee6d9=a93_0x93b8,_0x48df58=_0x44ff8e();while(!![]){try{const _0x2afb05=-parseInt(_0x2ee6d9(0xdf))/0x1+-parseInt(_0x2ee6d9(0xe3))/0x2*(-parseInt(_0x2ee6d9(0xea))/0x3)+-parseInt(_0x2ee6d9(0xe1))/0x4*(parseInt(_0x2ee6d9(0xe7))/0x5)+-parseInt(_0x2ee6d9(0xe9))/0x6+-parseInt(_0x2ee6d9(0xe6))/0x7+parseInt(_0x2ee6d9(0xe2))/0x8+parseInt(_0x2ee6d9(0xe5))/0x9*(parseInt(_0x2ee6d9(0xe4))/0xa);if(_0x2afb05===_0x466071)break;else _0x48df58['push'](_0x48df58['shift']());}catch(_0x33b81c){_0x48df58['push'](_0x48df58['shift']());}}}(a93_0xb22f,0x8756a));function a93_0x93b8(_0x50d85d,_0x3644bd){_0x50d85d=_0x50d85d-0xdd;const _0xb22f48=a93_0xb22f();let _0x93b833=_0xb22f48[_0x50d85d];return _0x93b833;}export const DEFAULT_APP_PROFILE_NAME='main';export const DEFAULT_CONFIG_VALUES={'env':a93_0x3d04c0(0xdd),'format':a93_0x3d04c0(0xde),'locale':a93_0x3d04c0(0xe0),'riskLevel':a93_0x3d04c0(0xe8)};function a93_0xb22f(){const _0x118236=['11595310BKxZrI','9eddHcJ','182889bvWxSH','689410kyVHew','write','1721640ShdVHq','21iwCHuZ','production','compress','750546Lrwntu','en-US','16WvZLJf','3539560eQwYox','162146RrXSjN'];a93_0xb22f=function(){return _0x118236;};return a93_0xb22f();}export const DEFAULT_COMMAND_OUTPUT_FORMAT=a93_0x3d04c0(0xde);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a94_0x5ce4e6=a94_0x3fc0;(function(_0x4886e1,_0x10d53d){const _0x446b5d=a94_0x3fc0,_0x18a268=_0x4886e1();while(!![]){try{const _0x1ff230=-parseInt(_0x446b5d(0xc7))/0x1+-parseInt(_0x446b5d(0xd0))/0x2*(-parseInt(_0x446b5d(0xc9))/0x3)+parseInt(_0x446b5d(0xcd))/0x4*(parseInt(_0x446b5d(0xca))/0x5)+-parseInt(_0x446b5d(0xcb))/0x6+-parseInt(_0x446b5d(0xd4))/0x7+parseInt(_0x446b5d(0xce))/0x8*(-parseInt(_0x446b5d(0xd5))/0x9)+parseInt(_0x446b5d(0xd3))/0xa;if(_0x1ff230===_0x10d53d)break;else _0x18a268['push'](_0x18a268['shift']());}catch(_0x186098){_0x18a268['push'](_0x18a268['shift']());}}}(a94_0x5cd8,0xa7261));import{PRODUCT_CONFIG}from'../constant/product.js';function a94_0x5cd8(){const _0x4ca9bd=['248sSoygJ','/dist/lovrabet-cli/config/index.json','193682RLmDdd','cliCdnBaseUrl','npmRegistryBaseUrl','28192110ofwGvs','4980514QGNOit','281025HkWFnD','1109357FxxqTL','npmPackageName','27Ljhhry','14185wqJfCr','3227316cgxBth','skillSource','452YWSlrB'];a94_0x5cd8=function(){return _0x4ca9bd;};return a94_0x5cd8();}function a94_0x3fc0(_0x3eb6f1,_0x547521){_0x3eb6f1=_0x3eb6f1-0xc7;const _0x5cd8a4=a94_0x5cd8();let _0x3fc09d=_0x5cd8a4[_0x3eb6f1];return _0x3fc09d;}export const LOVRABET_NPM_PACKAGE_NAME=PRODUCT_CONFIG[a94_0x5ce4e6(0xc8)];export const LOVRABET_SKILL_SOURCE=PRODUCT_CONFIG[a94_0x5ce4e6(0xcc)];export const NPM_REGISTRY_BASE_URL=PRODUCT_CONFIG[a94_0x5ce4e6(0xd2)];export const LOVRABET_CLI_CDN_BASE_URL=PRODUCT_CONFIG[a94_0x5ce4e6(0xd1)];export const LOVRABET_CLI_VERSION_POLICY_URL=LOVRABET_CLI_CDN_BASE_URL+a94_0x5ce4e6(0xcf);
|
package/lib/constant/domain.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a95_0x2a4067=a95_0x2726;(function(_0x5036c3,_0x4b3f84){const _0x3f896b=a95_0x2726,_0x5ed66c=_0x5036c3();while(!![]){try{const _0xa4f70e=parseInt(_0x3f896b(0x94))/0x1*(parseInt(_0x3f896b(0x8f))/0x2)+parseInt(_0x3f896b(0x8d))/0x3*(parseInt(_0x3f896b(0x89))/0x4)+parseInt(_0x3f896b(0x8c))/0x5+-parseInt(_0x3f896b(0x93))/0x6+-parseInt(_0x3f896b(0x86))/0x7*(parseInt(_0x3f896b(0x8b))/0x8)+-parseInt(_0x3f896b(0x95))/0x9*(-parseInt(_0x3f896b(0x91))/0xa)+parseInt(_0x3f896b(0x88))/0xb;if(_0xa4f70e===_0x4b3f84)break;else _0x5ed66c['push'](_0x5ed66c['shift']());}catch(_0x4d9837){_0x5ed66c['push'](_0x5ed66c['shift']());}}}(a95_0x24a8,0x9e132));import{getEnv,isProduction}from'../constant/env.js';import{PRODUCT_CONFIG}from'../constant/product.js';import{DEFAULT_LOVRABET_REGION}from'../constant/region.js';function a95_0x2726(_0x57505f,_0x10c95a){_0x57505f=_0x57505f-0x84;const _0x24a8e6=a95_0x24a8();let _0x272682=_0x24a8e6[_0x57505f];return _0x272682;}let customApiDomain,customUserDomain,customRuntimeDomain,customSkillDomain,customKbDomain,activeRegion=DEFAULT_LOVRABET_REGION;export function initDomains(_0x3c85be){const _0x1d81dd=a95_0x2726;customApiDomain=_0x3c85be?.['apiDomain'],customUserDomain=_0x3c85be?.['userDomain'],customRuntimeDomain=_0x3c85be?.['runtimeDomain'],customSkillDomain=_0x3c85be?.['skillDomain'],customKbDomain=_0x3c85be?.['kbDomain'],activeRegion=_0x3c85be?.[_0x1d81dd(0x84)]??DEFAULT_LOVRABET_REGION;}const getActiveRegionDomains=()=>PRODUCT_CONFIG[a95_0x2a4067(0x90)][activeRegion][isProduction(getEnv())?'production':a95_0x2a4067(0x92)];export const getUserDomain=()=>customUserDomain||getActiveRegionDomains()[a95_0x2a4067(0x87)];export const getApiDomain=()=>customApiDomain||getActiveRegionDomains()[a95_0x2a4067(0x8e)];function a95_0x24a8(){const _0x1ad05f=['region','runtime','598542DuAkvq','user','8475137nWrVxJ','378716WxgPzy','skill','72aXVivW','1809860NacjBn','9Asbxue','api','2mUhnJn','regionDomains','915020phzyYR','nonProduction','5433126CPOHPX','814571cGgCus','9kiyGvo'];a95_0x24a8=function(){return _0x1ad05f;};return a95_0x24a8();}export const getRuntimeDomain=()=>customRuntimeDomain||getActiveRegionDomains()[a95_0x2a4067(0x85)];export const getSkillDomain=()=>customSkillDomain||getActiveRegionDomains()[a95_0x2a4067(0x8a)];export const getKbDomain=()=>customKbDomain||getActiveRegionDomains()['kb'];
|
package/lib/constant/env.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a96_0x4aee60=a96_0x1095;(function(_0x3a9201,_0x25dddf){const _0x45665a=a96_0x1095,_0x2189a2=_0x3a9201();while(!![]){try{const _0x58be82=-parseInt(_0x45665a(0x129))/0x1+-parseInt(_0x45665a(0x11f))/0x2*(-parseInt(_0x45665a(0x121))/0x3)+-parseInt(_0x45665a(0x126))/0x4*(parseInt(_0x45665a(0x11e))/0x5)+-parseInt(_0x45665a(0x120))/0x6+-parseInt(_0x45665a(0x128))/0x7+-parseInt(_0x45665a(0x12b))/0x8*(parseInt(_0x45665a(0x124))/0x9)+-parseInt(_0x45665a(0x125))/0xa*(-parseInt(_0x45665a(0x127))/0xb);if(_0x58be82===_0x25dddf)break;else _0x2189a2['push'](_0x2189a2['shift']());}catch(_0x14125a){_0x2189a2['push'](_0x2189a2['shift']());}}}(a96_0x4ef2,0x67e91));import{productEnv}from'../constant/product.js';export const RUNTIME_ENV_VALUES=[a96_0x4aee60(0x12a),'development',a96_0x4aee60(0x123)];export function normalizeEnv(_0x5558cb){const _0x5b744b=a96_0x4aee60;return _0x5558cb===_0x5b744b(0x122)?_0x5b744b(0x12a):_0x5558cb;}export function isProduction(_0x5c1d72){const _0x51cb83=a96_0x4aee60;return normalizeEnv(_0x5c1d72)===_0x51cb83(0x12a);}function a96_0x4ef2(){const _0x5a3fcc=['21448WTKUMp','ENV','765RuGBeJ','1042ftfkIy','4681266jNnvMs','3252dqDZXb','online','daily','333UKRZNr','18862850NRElKR','19928wSJnjO','11iqcasE','1218777IZnvCF','209667RwLmAf','production'];a96_0x4ef2=function(){return _0x5a3fcc;};return a96_0x4ef2();}export function isDaily(_0x9a8d3c){return normalizeEnv(_0x9a8d3c)==='daily';}export function isDev(_0x1dbdd4){const _0x195a40=normalizeEnv(_0x1dbdd4);return _0x195a40==='development'||_0x195a40==='dev';}function a96_0x1095(_0x316b21,_0x3150e9){_0x316b21=_0x316b21-0x11d;const _0x4ef22a=a96_0x4ef2();let _0x109521=_0x4ef22a[_0x316b21];return _0x109521;}let env=normalizeEnv(productEnv(a96_0x4aee60(0x11d))||'production');export function getEnv(){return env;}export function initEnv(_0x221460){env=normalizeEnv(_0x221460);}
|
package/lib/constant/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a97_0x5892df=a97_0x39a7;(function(_0x3bdc54,_0x54e795){const _0x2e750e=a97_0x39a7,_0x516838=_0x3bdc54();while(!![]){try{const _0x4bbee3=parseInt(_0x2e750e(0x1b8))/0x1*(-parseInt(_0x2e750e(0x1c3))/0x2)+parseInt(_0x2e750e(0x1bc))/0x3+parseInt(_0x2e750e(0x1c1))/0x4+-parseInt(_0x2e750e(0x1ba))/0x5+-parseInt(_0x2e750e(0x1be))/0x6*(parseInt(_0x2e750e(0x1b7))/0x7)+-parseInt(_0x2e750e(0x1c2))/0x8*(parseInt(_0x2e750e(0x1c0))/0x9)+parseInt(_0x2e750e(0x1bb))/0xa;if(_0x4bbee3===_0x54e795)break;else _0x516838['push'](_0x516838['shift']());}catch(_0x5775bf){_0x516838['push'](_0x516838['shift']());}}}(a97_0x1ea3,0x92f52));export const OUTPUT_FORMAT_VALUES=[a97_0x5892df(0x1bd),a97_0x5892df(0x1bf),a97_0x5892df(0x1b9)];function a97_0x39a7(_0x4ba003,_0x302f2b){_0x4ba003=_0x4ba003-0x1b7;const _0x1ea35f=a97_0x1ea3();let _0x39a7c5=_0x1ea35f[_0x4ba003];return _0x39a7c5;}function a97_0x1ea3(){const _0x286245=['3375VAZppF','4609788pnRVra','23896HgvQbO','19614IcZQxN','7ADHgPN','22lqPqNO','compress','79815KxTlbW','11115380eevDJw','964275JbrVco','json','3789780UQTkKt','pretty'];a97_0x1ea3=function(){return _0x286245;};return a97_0x1ea3();}
|
package/lib/constant/product.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a98_0x2e93(_0x1ce305,_0x8c0f69){_0x1ce305=_0x1ce305-0xc4;const _0xbec68a=a98_0xbec6();let _0x2e9351=_0xbec68a[_0x1ce305];return _0x2e9351;}const a98_0x326f24=a98_0x2e93;(function(_0xe212bb,_0x18c139){const _0x17fb75=a98_0x2e93,_0x23514f=_0xe212bb();while(!![]){try{const _0x1cdcac=-parseInt(_0x17fb75(0xe8))/0x1+-parseInt(_0x17fb75(0xe3))/0x2*(-parseInt(_0x17fb75(0xe6))/0x3)+-parseInt(_0x17fb75(0xc4))/0x4*(parseInt(_0x17fb75(0xec))/0x5)+-parseInt(_0x17fb75(0xce))/0x6*(-parseInt(_0x17fb75(0xe5))/0x7)+parseInt(_0x17fb75(0xc5))/0x8*(parseInt(_0x17fb75(0xd3))/0x9)+parseInt(_0x17fb75(0xdb))/0xa+parseInt(_0x17fb75(0xc8))/0xb;if(_0x1cdcac===_0x18c139)break;else _0x23514f['push'](_0x23514f['shift']());}catch(_0x362c6e){_0x23514f['push'](_0x23514f['shift']());}}}(a98_0xbec6,0x6f44a));export const PRODUCT_CONFIG={'cliBinName':'lovrabet','cliDisplayName':a98_0x326f24(0xda),'npmPackageName':a98_0x326f24(0xeb),'skillSource':'lovrabet/lovrabet-cli','internalSkillSource':a98_0x326f24(0xcd),'globalSkillName':a98_0x326f24(0xd8),'npmRegistryBaseUrl':a98_0x326f24(0xc9),'cliCdnBaseUrl':a98_0x326f24(0xe4),'envPrefix':a98_0x326f24(0xd6),'legacyEnvPrefixes':[a98_0x326f24(0xcb)],'configFileNames':[a98_0x326f24(0xe7)],'newConfigFileName':a98_0x326f24(0xe7),'homeDirName':'.lovrabet','logFileName':a98_0x326f24(0xd5),'invokeSource':'cli:lovrabet-runtime','userCenterDisplayName':'Lovrabet\x20User\x20Center','skipNpxSkillsEnvSuffix':a98_0x326f24(0xd7),'regionDomains':{'cn':{'production':{'user':a98_0x326f24(0xd4),'api':'https://api.lovrabet.com','runtime':'https://runtime.lovrabet.com','skill':a98_0x326f24(0xe9),'kb':'https://runtime.lovrabet.com'},'nonProduction':{'user':a98_0x326f24(0xd0),'api':'https://daily-api.lovrabet.com','runtime':'https://daily-runtime.lovrabet.com','skill':a98_0x326f24(0xd1),'kb':a98_0x326f24(0xd2)}},'id':{'production':{'user':a98_0x326f24(0xdd),'api':'https://api.lovrabet.id','runtime':a98_0x326f24(0xd9),'skill':a98_0x326f24(0xdc),'kb':a98_0x326f24(0xd9)},'nonProduction':{'user':'https://user-daily.lovrabet.id','api':a98_0x326f24(0xcf),'runtime':a98_0x326f24(0xe0),'skill':'https://skills-daily.lovrabet.id','kb':a98_0x326f24(0xe0)}},'global':{'production':{'user':a98_0x326f24(0xca),'api':'https://api.lovrabet.ai','runtime':a98_0x326f24(0xe2),'skill':a98_0x326f24(0xe1),'kb':a98_0x326f24(0xe2)},'nonProduction':{'user':a98_0x326f24(0xc6),'api':'https://daily-api.lovrabet.ai','runtime':'https://daily-runtime.lovrabet.ai','skill':'https://skills-daily.lovrabet.ai','kb':a98_0x326f24(0xcc)}}},'accessKeyCreatePath':a98_0x326f24(0xea)};export function productEnvName(_0x19c8a3){const _0x392a3e=a98_0x326f24;return PRODUCT_CONFIG[_0x392a3e(0xdf)]+'_'+_0x19c8a3;}export function productEnvNames(_0x36c338){const _0x39f895=a98_0x326f24;return[productEnvName(_0x36c338),...PRODUCT_CONFIG[_0x39f895(0xc7)][_0x39f895(0xde)](_0x561e0b=>_0x561e0b+'_'+_0x36c338)];}export function productEnv(_0x1a541d){for(const _0x12bf90 of productEnvNames(_0x1a541d)){const _0x33279e=process.env[_0x12bf90];if(_0x33279e!==undefined)return _0x33279e;}return undefined;}function a98_0xbec6(){const _0x8cb9c=['1281aqWwle','.lovrabet.json','153018PYqluo','https://skills.lovrabet.com','/user/ak','@lovrabet/lovrabet-cli','5AQoywC','2541644lrlHoN','343032AlcoFs','https://user-daily.lovrabet.ai','legacyEnvPrefixes','273328KRbXAO','https://registry.npmjs.org','https://user.lovrabet.ai','RABETBASE','https://daily-runtime.lovrabet.ai','git@codeup.aliyun.com:yuntoo/open/lovrabet-runtime-cli.git','2504154NxnipS','https://daily-api.lovrabet.id','https://user-daily.lovrabet.com','https://skills-daily.lovrabet.com','https://daily-runtime.lovrabet.com','9BvoxYJ','https://user.lovrabet.com','.lovrabet-runtime.log','LOVRABET','SKIP_NPX_SKILLS','lovrabet','https://runtime.lovrabet.id','Lovrabet\x20Runtime\x20CLI','7492760bRUqdb','https://skills.lovrabet.id','https://user.lovrabet.id','map','envPrefix','https://daily-runtime.lovrabet.id','https://skills.lovrabet.ai','https://runtime.lovrabet.ai','46yFExEy','https://g.lovrabet.com','7WiDWmI'];a98_0xbec6=function(){return _0x8cb9c;};return a98_0xbec6();}
|
package/lib/constant/region.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x292294,_0x7bea32){const _0x100a8a=a99_0x1b15,_0x4c4234=_0x292294();while(!![]){try{const _0x166f04=-parseInt(_0x100a8a(0x19d))/0x1+-parseInt(_0x100a8a(0x1a1))/0x2*(parseInt(_0x100a8a(0x195))/0x3)+parseInt(_0x100a8a(0x198))/0x4*(parseInt(_0x100a8a(0x19b))/0x5)+-parseInt(_0x100a8a(0x19f))/0x6*(-parseInt(_0x100a8a(0x1a0))/0x7)+parseInt(_0x100a8a(0x197))/0x8*(parseInt(_0x100a8a(0x199))/0x9)+-parseInt(_0x100a8a(0x19e))/0xa+parseInt(_0x100a8a(0x196))/0xb;if(_0x166f04===_0x7bea32)break;else _0x4c4234['push'](_0x4c4234['shift']());}catch(_0x106b7b){_0x4c4234['push'](_0x4c4234['shift']());}}}(a99_0x30bd,0xd6ef7));export const LOVRABET_REGION_VALUES=['cn','id','global'];export const ENABLED_LOVRABET_REGION_VALUES=['cn','id'];function a99_0x1b15(_0x46e26a,_0x353492){_0x46e26a=_0x46e26a-0x194;const _0x30bdaf=a99_0x30bd();let _0x1b1504=_0x30bdaf[_0x46e26a];return _0x1b1504;}export const DEFAULT_LOVRABET_REGION='cn';export function isLovrabetRegion(_0x2e707c){const _0x4eaae8=a99_0x1b15;return typeof _0x2e707c==='string'&&LOVRABET_REGION_VALUES[_0x4eaae8(0x194)](_0x2e707c);}function a99_0x30bd(){const _0x64cb8f=['string','1606747KssOah','16472230mtXnSG','90ZQWBzs','447839CbyBNf','864Bqclxk','indonesia','includes','10107MJYqYE','32726122CHXTTO','8jjuUyY','1023268VaKLlQ','10290258OXFLfi','china','10ZFYvqk'];a99_0x30bd=function(){return _0x64cb8f;};return a99_0x30bd();}export function isEnabledLovrabetRegion(_0x50223e){const _0x29b9ab=a99_0x1b15;return typeof _0x50223e===_0x29b9ab(0x19c)&&ENABLED_LOVRABET_REGION_VALUES[_0x29b9ab(0x194)](_0x50223e);}export function normalizeLovrabetRegion(_0x30069f){const _0x147b7c=a99_0x1b15;if(_0x30069f===_0x147b7c(0x19a))return'cn';if(_0x30069f===_0x147b7c(0x1a2))return'id';return isLovrabetRegion(_0x30069f)?_0x30069f:DEFAULT_LOVRABET_REGION;}
|
package/lib/constant/risk.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a100_0x19a4a5=a100_0x37dd;(function(_0x3af6a5,_0xfeb401){const _0x68cbbd=a100_0x37dd,_0xc9704f=_0x3af6a5();while(!![]){try{const _0x3e4d74=parseInt(_0x68cbbd(0x15e))/0x1*(parseInt(_0x68cbbd(0x164))/0x2)+parseInt(_0x68cbbd(0x162))/0x3*(parseInt(_0x68cbbd(0x15d))/0x4)+parseInt(_0x68cbbd(0x15c))/0x5*(-parseInt(_0x68cbbd(0x165))/0x6)+parseInt(_0x68cbbd(0x167))/0x7*(-parseInt(_0x68cbbd(0x160))/0x8)+-parseInt(_0x68cbbd(0x166))/0x9+parseInt(_0x68cbbd(0x161))/0xa*(-parseInt(_0x68cbbd(0x15f))/0xb)+parseInt(_0x68cbbd(0x15a))/0xc;if(_0x3e4d74===_0xfeb401)break;else _0xc9704f['push'](_0xc9704f['shift']());}catch(_0x37ea26){_0xc9704f['push'](_0xc9704f['shift']());}}}(a100_0x1434,0x85292));function a100_0x1434(){const _0x29d099=['write','1378426uLZrev','60ahCRIp','8541963VoRCxD','14084WwNkYm','30416532zYVLRA','high-risk-write','237100kjwxmu','1430828QICkLd','1FCRNBT','9331718FaYLzW','3040FjSnMw','10OACihx','3YtcQmP'];a100_0x1434=function(){return _0x29d099;};return a100_0x1434();}function a100_0x37dd(_0x2f441,_0xdb62c7){_0x2f441=_0x2f441-0x15a;const _0x1434fb=a100_0x1434();let _0x37ddc4=_0x1434fb[_0x2f441];return _0x37ddc4;}export const RISK_LEVEL_VALUES=['read',a100_0x19a4a5(0x163),a100_0x19a4a5(0x15b)];
|
package/lib/constant/url.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1289d9,_0x345156){const _0x10bf96=a101_0x5615,_0x7265a6=_0x1289d9();while(!![]){try{const _0x488c91=-parseInt(_0x10bf96(0x116))/0x1+-parseInt(_0x10bf96(0x117))/0x2+-parseInt(_0x10bf96(0x115))/0x3+-parseInt(_0x10bf96(0x113))/0x4+parseInt(_0x10bf96(0x118))/0x5*(-parseInt(_0x10bf96(0x119))/0x6)+-parseInt(_0x10bf96(0x11c))/0x7+parseInt(_0x10bf96(0x11b))/0x8;if(_0x488c91===_0x345156)break;else _0x7265a6['push'](_0x7265a6['shift']());}catch(_0x5e8c8f){_0x7265a6['push'](_0x7265a6['shift']());}}}(a101_0xd983,0x2ec1c));function a101_0xd983(){const _0x2a49d2=['8050544egEHGj','751632NPPpUN','user','production','1075456uoAFFw','accessKeyCreatePath','320967LPMNCn','156650kSJHna','78334SAPMQc','6285XfZXbW','648VUsWsC','regionDomains'];a101_0xd983=function(){return _0x2a49d2;};return a101_0xd983();}import{PRODUCT_CONFIG}from'../constant/product.js';function a101_0x5615(_0x31ecce,_0x266a95){_0x31ecce=_0x31ecce-0x113;const _0xd983a=a101_0xd983();let _0x5615f3=_0xd983a[_0x31ecce];return _0x5615f3;}import{DEFAULT_LOVRABET_REGION}from'../constant/region.js';export function getUserAccessKeyCreateUrl(_0x284736=DEFAULT_LOVRABET_REGION){const _0x4dcdf1=a101_0x5615,_0x92807d=PRODUCT_CONFIG[_0x4dcdf1(0x11a)][_0x284736][_0x4dcdf1(0x11e)][_0x4dcdf1(0x11d)];return''+_0x92807d+PRODUCT_CONFIG[_0x4dcdf1(0x114)];}export const USER_ACCESS_KEY_CREATE_URL=getUserAccessKeyCreateUrl();
|