@lovrabet/lovrabet-cli 2.3.4-beta.2 → 2.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cli.js +1 -1
- package/lib/commands/api-doc/index.js +1 -1
- package/lib/commands/app/cache.js +1 -1
- package/lib/commands/app/definitions.js +1 -1
- package/lib/commands/app/eligibility.js +1 -1
- package/lib/commands/app/mock-loader.js +1 -1
- package/lib/commands/app/remote-source.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/approval/index.js +1 -1
- package/lib/commands/artifact/index.js +1 -1
- package/lib/commands/auth/device.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/auth/prompt.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/exec.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/common/config-policy.js +1 -1
- package/lib/commands/common/constraints.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/config/definitions.js +1 -1
- package/lib/commands/config/init.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/data/index.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/sdk-doc.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/init.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/notification/shared.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/permit/dataset-get.js +1 -1
- package/lib/commands/permit/dataset-set.js +1 -1
- package/lib/commands/permit/index.js +1 -1
- package/lib/commands/permit/page-get.js +1 -1
- package/lib/commands/permit/page-set.js +1 -1
- package/lib/commands/permit/role-menus-set.js +1 -1
- package/lib/commands/permit/role-menus.js +1 -1
- package/lib/commands/permit/shared.js +1 -1
- package/lib/commands/personal-bff/index.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/create.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/schedule/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/service/dynamic.js +1 -1
- package/lib/commands/service/function-name-adapter.js +1 -1
- package/lib/commands/service/index.js +1 -1
- package/lib/commands/service/registry.js +1 -1
- package/lib/commands/skill/commands/create.js +1 -1
- package/lib/commands/skill/commands/diagram.js +1 -1
- package/lib/commands/skill/commands/install.js +1 -1
- package/lib/commands/skill/commands/list.js +1 -1
- package/lib/commands/skill/commands/push.js +1 -1
- package/lib/commands/skill/commands/validate.js +1 -1
- package/lib/commands/skill/diagram.js +1 -1
- package/lib/commands/skill/flags.js +1 -1
- package/lib/commands/skill/index.js +1 -1
- package/lib/commands/skill/manifest-helpers.js +1 -1
- package/lib/commands/skill/push-execute.js +1 -1
- package/lib/commands/skill/push-flow-helpers.js +1 -1
- package/lib/commands/skill/push-retarget.js +1 -1
- package/lib/commands/skill/scopes.js +1 -1
- package/lib/commands/skill/summary.js +1 -1
- package/lib/commands/skill/templates.js +1 -1
- package/lib/commands/skill/validate.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/update.js +1 -1
- package/lib/commands/user-account/bind.js +1 -1
- package/lib/commands/user-account/index.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/config/domain-config.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/app.js +1 -1
- package/lib/constant/auth-mode.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/distribution.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/product.js +1 -1
- package/lib/constant/region.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/url.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/kb-search-client.js +1 -1
- package/lib/core/sdk-client.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/dryrun.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/preparse.js +1 -1
- package/lib/framework/rate-limit.js +1 -1
- package/lib/framework/raw-flags.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-confirmation.js +1 -1
- package/lib/framework/runner-error.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/service-order.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/generated/official-routing.js +1 -1
- package/lib/generated/routing-contract.js +1 -1
- package/lib/help.js +1 -1
- package/lib/postinstall.js +1 -1
- package/lib/runtime/confirmation.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/skills/builtin-skill.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/runtime-skill-sync/constants.js +1 -1
- package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
- package/lib/skills/runtime-skill-sync/hashing.js +1 -1
- package/lib/skills/runtime-skill-sync/install-target.js +1 -1
- package/lib/skills/runtime-skill-sync/links.js +1 -1
- package/lib/skills/runtime-skill-sync/list-local.js +1 -1
- package/lib/skills/runtime-skill-sync/local-files.js +1 -1
- package/lib/skills/runtime-skill-sync/materialize.js +1 -1
- package/lib/skills/runtime-skill-sync/metadata.js +1 -1
- package/lib/skills/runtime-skill-sync/paths.js +1 -1
- package/lib/skills/runtime-skill-sync/push.js +1 -1
- package/lib/skills/runtime-skill-sync/scopes.js +1 -1
- package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
- package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
- package/lib/skills/runtime-skill-sync.js +1 -1
- package/lib/skills/skill-presence.js +1 -1
- package/lib/utils/access-key-redaction.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/lossless-json.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/positive-safe-integer.js +1 -1
- package/lib/utils/redaction.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
- package/skills/lovrabet/SKILL.md +1 -1
- package/skills/lovrabet.manifest.json +3 -3
package/lib/commands/update.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a85_0x52460b=a85_0xd393;(function(_0x49979b,_0x5912a4){const _0x5906f9=a85_0xd393,_0xc6fc1a=_0x49979b();while(!![]){try{const _0x5029ae=-parseInt(_0x5906f9(0x190))/0x1*(parseInt(_0x5906f9(0x1c0))/0x2)+-parseInt(_0x5906f9(0x193))/0x3+parseInt(_0x5906f9(0x1e5))/0x4+-parseInt(_0x5906f9(0x1de))/0x5+parseInt(_0x5906f9(0x1af))/0x6+-parseInt(_0x5906f9(0x1a0))/0x7+parseInt(_0x5906f9(0x1ac))/0x8;if(_0x5029ae===_0x5912a4)break;else _0xc6fc1a['push'](_0xc6fc1a['shift']());}catch(_0x5f3b08){_0xc6fc1a['push'](_0xc6fc1a['shift']());}}}(a85_0x1316,0xba8b7));import{fileURLToPath}from'node:url';function a85_0x1316(){const _0x43f034=['\x20CLI\x20from\x20npm','Checking\x20npm\x20dist-tags...','win32','npm','\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.','--latest,\x20--beta,\x20and\x20version\x20cannot\x20be\x20used\x20together.','Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','Updating\x20','12621888dydfhE',']:\x20','\x20->\x20','8622144NiIhPP','Install\x20the\x20version\x20from\x20npm\x20latest\x20dist-tag','Run:\x20npm\x20view\x20','node_modules','version','update','join','--prefix','beta','Install\x20a\x20specific\x20CLI\x20version','bool','stderr','\x20is\x20current.','lib','exit\x20','INSTALL_FAILED','/-/package/','4YeEJux','cwd','Choose\x20exactly\x20one\x20target:\x20--latest,\x20--beta,\x20or\x20--version\x20<version>.','test','object','find','warn','error','log','exitCode',',\x20but\x20Built-in\x20Skill\x20verification\x20failed:\x20','latest','state',',\x20then\x20verify\x20with:\x20','source','Update\x20the\x20','relative','str','platform','entries','@lovrabet\x5clovrabet-cli','Checking\x20CLI\x20Built-in\x20Skill...','timeout','Version\x20comparison\x20failed:\x20','includes','@lovrabet/lovrabet-cli','validation','read','Unable\x20to\x20resolve\x20','/dist-tags','435905aUZJzn','map','trim',',\x20found\x20','stdout','apiError','nonInteractive','5442192ifwLgc','reason','expected\x20','boolean','install','Updated\x20to\x20v','valid','run','Already\x20on\x20requested\x20version\x20(v','\x20version\x20from\x20npm.','529892yNOYLS','skillVersion','unknown','3525705NgnTgL','Run:\x20npm\x20install\x20-g\x20','CLI\x20updated\x20to\x20v','Current\x20version:\x20','repairCommand','dirname','\x20doctor','Run:\x20','fromEntries','Use\x20a\x20full\x20semver\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.','string','current','filter','9023147GspTBf','code','length','args'];a85_0x1316=function(){return _0x43f034;};return a85_0x1316();}import{basename,dirname,relative,win32}from'node:path';import{execaSync}from'execa';import a85_0x111dab from'semver';import{CliErrors}from'../errors.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{LOVRABET_NPM_PACKAGE_NAME,NPM_REGISTRY_BASE_URL}from'../constant/distribution.js';import{getCliVersion}from'../utils/version.js';import{inspectInstalledBuiltinSkillVersion,installBuiltinSkill}from'../skills/builtin-skill.js';const updateFlags=[{'name':a85_0x52460b(0x1cb),'type':a85_0x52460b(0x1e8),'description':a85_0x52460b(0x1b0),'default':![]},{'name':a85_0x52460b(0x1b7),'type':a85_0x52460b(0x1e8),'description':a85_0x52460b(0x1aa),'default':![]},{'name':a85_0x52460b(0x1b3),'type':a85_0x52460b(0x19d),'description':a85_0x52460b(0x1b8)}];function getRequestedVersion(_0x380301){const _0xc2d99=a85_0x52460b,_0x24fc47=_0x380301[_0xc2d99(0x1d1)](_0xc2d99(0x1b3))[_0xc2d99(0x1e0)]();if(_0x24fc47)return _0x24fc47;return String(_0x380301[_0xc2d99(0x1a3)]?.[0x0]??'')[_0xc2d99(0x1e0)]();}async function validateUpdateFlags(_0x21accf){const _0x511fb3=a85_0x52460b,_0xba3f4d=getRequestedVersion(_0x21accf),_0x559b6c=[_0x21accf[_0x511fb3(0x1b9)](_0x511fb3(0x1cb))?_0x511fb3(0x1cb):'',_0x21accf[_0x511fb3(0x1b9)](_0x511fb3(0x1b7))?'beta':'',_0xba3f4d?'version':''][_0x511fb3(0x19f)](Boolean);if(_0x559b6c[_0x511fb3(0x1a2)]>0x1)throw CliErrors['validation'](_0x511fb3(0x1a9),_0x511fb3(0x1c2));if(_0xba3f4d&&!a85_0x111dab[_0x511fb3(0x18c)](_0xba3f4d))throw CliErrors[_0x511fb3(0x1da)]('Invalid\x20version:\x20'+_0xba3f4d,_0x511fb3(0x19c));}async function fetchNpmDistTags(){const _0x10974a=a85_0x52460b;try{const _0x25d12d=NPM_REGISTRY_BASE_URL+_0x10974a(0x1bf)+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+_0x10974a(0x1dd),_0x4dce8c=await fetch(_0x25d12d,{'signal':AbortSignal[_0x10974a(0x1d6)](0x2710)});if(!_0x4dce8c['ok'])return null;const _0x417ace=await _0x4dce8c['json']();if(!_0x417ace||typeof _0x417ace!==_0x10974a(0x1c4))return null;return Object[_0x10974a(0x19b)](Object[_0x10974a(0x1d3)](_0x417ace)[_0x10974a(0x19f)](([,_0x20e678])=>typeof _0x20e678===_0x10974a(0x19d)&&_0x20e678[_0x10974a(0x1e0)]())[_0x10974a(0x1df)](([_0x3cf6ba,_0x4bad43])=>[_0x3cf6ba,String(_0x4bad43)[_0x10974a(0x1e0)]()]));}catch{return null;}}function a85_0xd393(_0x196898,_0x1cb3a1){_0x196898=_0x196898-0x18c;const _0x131615=a85_0x1316();let _0xd39388=_0x131615[_0x196898];return _0xd39388;}async function resolveTargetVersion(_0x5c4f6c){const _0xc2546d=a85_0x52460b,_0x57c4dd=getRequestedVersion(_0x5c4f6c);if(_0x57c4dd)return{'version':_0x57c4dd,'source':_0xc2546d(0x1b3)};const _0x5bf3ef=_0x5c4f6c[_0xc2546d(0x1b9)](_0xc2546d(0x1b7))?_0xc2546d(0x1b7):_0xc2546d(0x1cb),_0x260dc2=await fetchNpmDistTags(),_0x3fed51=_0x260dc2?.[_0x5bf3ef];if(!_0x3fed51)return null;return{'version':_0x3fed51,'source':_0x5bf3ef};}function shouldInstallTarget(_0x4e1f4d,_0x4fed5c){const _0x1a0fed=a85_0x52460b;if(_0x4fed5c[_0x1a0fed(0x1ce)]===_0x1a0fed(0x1b3)||_0x4fed5c['source']==='beta')return!a85_0x111dab['eq'](_0x4e1f4d,_0x4fed5c['version']);return a85_0x111dab['lt'](_0x4e1f4d,_0x4fed5c['version']);}export function installCliPackage(_0x167a41,_0x409add,_0x3a06d7=resolveCurrentCliNpmPrefix()){const _0x323caa=a85_0x52460b,_0x4337cd=LOVRABET_NPM_PACKAGE_NAME+'@'+_0x167a41,_0x1fceae=[_0x323caa(0x1e9),'-g',_0x4337cd],_0x565eb9=runNpmInstall(_0x1fceae,_0x409add);if(_0x565eb9['ok']||!isNpmPrefixPermissionError(_0x565eb9[_0x323caa(0x1c7)]))return _0x565eb9;if(!_0x3a06d7||_0x565eb9['error']?.['toLowerCase']()[_0x323caa(0x1d8)](_0x3a06d7['toLowerCase']()))return _0x565eb9;return console[_0x323caa(0x1c6)]('Global\x20npm\x20prefix\x20is\x20not\x20writable;\x20retrying\x20in\x20the\x20current\x20CLI\x20Node\x20environment:\x20'+_0x3a06d7),runNpmInstall([..._0x1fceae,_0x323caa(0x1b6),_0x3a06d7],_0x409add);}export function resolveCurrentCliNpmPrefix(_0xf873dd=fileURLToPath(import.meta.url),_0x4cae0e=process[a85_0x52460b(0x1d2)]){const _0x294f51=a85_0x52460b,_0x245d93=_0x4cae0e===_0x294f51(0x1a6)?win32:{'basename':basename,'dirname':dirname,'relative':relative},_0x467293=_0x245d93[_0x294f51(0x198)](_0x245d93[_0x294f51(0x198)](_0x245d93[_0x294f51(0x198)](_0xf873dd))),_0x14e015=_0x4cae0e===_0x294f51(0x1a6)?_0x294f51(0x1d4):_0x294f51(0x1d9);let _0x542743=_0x245d93['dirname'](_0x467293);while(!![]){if(_0x245d93['basename'](_0x542743)===_0x294f51(0x1b2)&&_0x245d93[_0x294f51(0x1d0)](_0x542743,_0x467293)===_0x14e015){const _0x35785a=_0x245d93[_0x294f51(0x198)](_0x542743);return _0x245d93['basename'](_0x35785a)===_0x294f51(0x1bc)?_0x245d93[_0x294f51(0x198)](_0x35785a):_0x35785a;}const _0x578503=_0x245d93[_0x294f51(0x198)](_0x542743);if(_0x578503===_0x542743)return null;_0x542743=_0x578503;}}function runNpmInstall(_0x4c1ec7,_0x6bbcca){const _0x41a118=a85_0x52460b;console[_0x41a118(0x1c8)]('*\x20'+[_0x41a118(0x1a7),..._0x4c1ec7][_0x41a118(0x1b5)]('\x20'));const _0x4ccfd4=execaSync('npm',_0x4c1ec7,{'cwd':process[_0x41a118(0x1c1)](),'stdio':'pipe','env':process.env,'extendEnv':![],'shell':![],'reject':![]}),_0x419859=_0x4ccfd4[_0x41a118(0x1ba)]?String(_0x4ccfd4[_0x41a118(0x1ba)])[_0x41a118(0x1e0)]():'',_0x1b2850=_0x4ccfd4[_0x41a118(0x1e2)]?String(_0x4ccfd4[_0x41a118(0x1e2)])['trim']():'';if(!_0x6bbcca){if(_0x1b2850)process[_0x41a118(0x1e2)]['write'](_0x1b2850+'\x0a');if(_0x419859)process[_0x41a118(0x1ba)]['write'](_0x419859+'\x0a');}if(_0x4ccfd4[_0x41a118(0x1c9)]===0x0)return{'ok':!![]};const _0x3bd420=_0x419859||_0x1b2850||_0x4ccfd4['shortMessage']||_0x41a118(0x1bd)+(_0x4ccfd4[_0x41a118(0x1c9)]??'unknown');return{'ok':![],'error':_0x3bd420};}function isNpmPrefixPermissionError(_0x554293){const _0x44670c=a85_0x52460b;return Boolean(_0x554293&&/\b(?:EACCES|EPERM)\b/[_0x44670c(0x1c3)](_0x554293));}function repairCurrentBuiltinSkill(_0x1dc578){const _0x183254=a85_0x52460b;console['log'](_0x183254(0x1d5));const _0x288dbe=installBuiltinSkill({'stdio':_0x1dc578?'pipe':'inherit'});if(_0x288dbe['ok']){console['log']('\x20\x20CLI\x20Built-in\x20Skill\x20'+_0x288dbe[_0x183254(0x191)]+_0x183254(0x1bb));return;}throw CliErrors[_0x183254(0x1e3)]('CLI\x20Built-in\x20Skill\x20repair\x20failed\x20['+(_0x288dbe[_0x183254(0x1a1)]||_0x183254(0x1be))+_0x183254(0x1ad)+(_0x288dbe[_0x183254(0x1c7)]||_0x183254(0x192)),'Run:\x20'+_0x288dbe['repairCommand']+_0x183254(0x1cd)+CLI_BIN_NAME+_0x183254(0x199));}function verifyUpdatedBuiltinSkill(_0x2b7306){const _0x18a3bf=a85_0x52460b;console[_0x18a3bf(0x1c8)]('Checking\x20CLI\x20Built-in\x20Skill...');const _0x36bc64=inspectInstalledBuiltinSkillVersion(_0x2b7306);if(_0x36bc64[_0x18a3bf(0x1cc)]===_0x18a3bf(0x19e)){console[_0x18a3bf(0x1c8)]('\x20\x20CLI\x20Built-in\x20Skill\x20'+_0x2b7306+_0x18a3bf(0x1bb));return;}const _0x55fbc5=_0x36bc64['skillVersion']?_0x18a3bf(0x1e7)+_0x2b7306+_0x18a3bf(0x1e1)+_0x36bc64[_0x18a3bf(0x191)]:'expected\x20'+_0x2b7306+',\x20state\x20'+_0x36bc64[_0x18a3bf(0x1cc)],_0x222738=_0x36bc64[_0x18a3bf(0x1e6)]?_0x55fbc5+':\x20'+_0x36bc64[_0x18a3bf(0x1e6)]:_0x55fbc5;throw CliErrors[_0x18a3bf(0x1e3)](_0x18a3bf(0x195)+_0x2b7306+_0x18a3bf(0x1ca)+_0x222738,_0x18a3bf(0x19a)+_0x36bc64[_0x18a3bf(0x197)]+_0x18a3bf(0x1cd)+CLI_BIN_NAME+'\x20doctor');}async function execute(_0x141210){const _0x1be9f5=a85_0x52460b;await validateUpdateFlags(_0x141210);const _0x24717c=getCliVersion();console[_0x1be9f5(0x1c8)](_0x1be9f5(0x196)+_0x24717c),console[_0x1be9f5(0x1c8)](_0x1be9f5(0x1a5));const _0x5ebea3=await resolveTargetVersion(_0x141210);if(!_0x5ebea3){const _0x15c4e3=_0x141210[_0x1be9f5(0x1b9)](_0x1be9f5(0x1b7))?_0x1be9f5(0x1b7):_0x1be9f5(0x1cb),_0x5d768f=_0x1be9f5(0x1dc)+_0x15c4e3+_0x1be9f5(0x18f);throw CliErrors['apiError'](_0x5d768f,_0x1be9f5(0x194)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x15c4e3);}const _0x45a18e=[_0x24717c,_0x5ebea3[_0x1be9f5(0x1b3)]][_0x1be9f5(0x1c5)](_0x3a4bd5=>!a85_0x111dab[_0x1be9f5(0x18c)](_0x3a4bd5));if(_0x45a18e){const _0x275345=_0x1be9f5(0x1d7)+_0x45a18e+'.';throw CliErrors[_0x1be9f5(0x1e3)](_0x275345,_0x1be9f5(0x1b1)+LOVRABET_NPM_PACKAGE_NAME+'\x20dist-tags,\x20then\x20retry.');}if(!shouldInstallTarget(_0x24717c,_0x5ebea3)){const _0xfafcc7=_0x5ebea3[_0x1be9f5(0x1ce)]==='version'?_0x1be9f5(0x18e)+_0x5ebea3[_0x1be9f5(0x1b3)]+').':'Already\x20up\x20to\x20date\x20(v'+_0x5ebea3[_0x1be9f5(0x1b3)]+').';return console[_0x1be9f5(0x1c8)](_0xfafcc7),repairCurrentBuiltinSkill(_0x141210['nonInteractive']),{'ok':!![]};}console[_0x1be9f5(0x1c8)](_0x1be9f5(0x1ab)+LOVRABET_NPM_PACKAGE_NAME+':\x20'+_0x24717c+_0x1be9f5(0x1ae)+_0x5ebea3[_0x1be9f5(0x1b3)]);const _0x5964d8=installCliPackage(_0x5ebea3[_0x1be9f5(0x1b3)],_0x141210[_0x1be9f5(0x1e4)]);if(!_0x5964d8['ok']){const _0x2c1fb0='Update\x20failed:\x20'+(_0x5964d8['error']||_0x1be9f5(0x192));throw CliErrors[_0x1be9f5(0x1e3)](_0x2c1fb0,_0x1be9f5(0x194)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x5ebea3[_0x1be9f5(0x1b3)]);}return console[_0x1be9f5(0x1c8)](_0x1be9f5(0x1ea)+_0x5ebea3[_0x1be9f5(0x1b3)]+'.'),console['log'](_0x1be9f5(0x1a8)),verifyUpdatedBuiltinSkill(_0x5ebea3[_0x1be9f5(0x1b3)]),{'ok':!![]};}export const updateDefinition={'service':a85_0x52460b(0x1b4),'command':a85_0x52460b(0x18d),'description':a85_0x52460b(0x1cf)+CLI_BIN_NAME+a85_0x52460b(0x1a4),'risk':a85_0x52460b(0x1db),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
|
|
1
|
+
function a85_0x2310(){const _0x1891d0=['expected\x20','\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.','latest','update',']:\x20','repairCommand','node_modules','filter','str','484BtsLlp','reason','Update\x20failed:\x20','Choose\x20exactly\x20one\x20target:\x20--latest,\x20--beta,\x20or\x20--version\x20<version>.','Invalid\x20version:\x20','/dist-tags','entries','error','string','basename','4JuAviG','\x20version\x20from\x20npm.','unknown','find','stdout','--prefix','\x20dist-tags,\x20then\x20retry.','Use\x20a\x20full\x20semver\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.','Checking\x20CLI\x20Built-in\x20Skill...','\x20is\x20current.','json','15wMuYzt','relative','map','boolean','dirname','Install\x20the\x20version\x20from\x20npm\x20latest\x20dist-tag','inherit','join','Updating\x20','version','warn','stderr','log','4502793PsZzuB','123130cVWNfi','exit\x20','pipe',',\x20then\x20verify\x20with:\x20','46858AisjQZ','validation','trim','1096kneQpS','exitCode','npm','Updated\x20to\x20v','Install\x20a\x20specific\x20CLI\x20version','Already\x20on\x20requested\x20version\x20(v','code','bool',',\x20but\x20Built-in\x20Skill\x20verification\x20failed:\x20','source','beta','233268OJiFgD','length','state','@lovrabet/lovrabet-cli','Already\x20up\x20to\x20date\x20(v','\x20doctor','cwd','read','Run:\x20','\x20\x20CLI\x20Built-in\x20Skill\x20','Global\x20npm\x20prefix\x20is\x20not\x20writable;\x20retrying\x20in\x20the\x20current\x20CLI\x20Node\x20environment:\x20','Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag',',\x20found\x20','Run:\x20npm\x20install\x20-g\x20','win32','toLowerCase','args','901632KixgmQ','install','write','timeout','Run:\x20npm\x20view\x20','lib','\x20->\x20','run','Current\x20version:\x20','Version\x20comparison\x20failed:\x20','apiError','current','270vPpMbG','test','fromEntries',',\x20state\x20','627702uzSSbP','nonInteractive','/-/package/','skillVersion','shortMessage','includes','@lovrabet\x5clovrabet-cli','Update\x20the\x20','valid','2701214lFdXnv'];a85_0x2310=function(){return _0x1891d0;};return a85_0x2310();}const a85_0x3432aa=a85_0x1354;(function(_0x4e6aa3,_0xd1a083){const _0x157e63=a85_0x1354,_0x346a75=_0x4e6aa3();while(!![]){try{const _0x1fd154=-parseInt(_0x157e63(0xe6))/0x1+parseInt(_0x157e63(0xff))/0x2+parseInt(_0x157e63(0xc2))/0x3*(-parseInt(_0x157e63(0xaa))/0x4)+-parseInt(_0x157e63(0xb5))/0x5*(parseInt(_0x157e63(0xf6))/0x6)+-parseInt(_0x157e63(0xc7))/0x7*(-parseInt(_0x157e63(0xca))/0x8)+parseInt(_0x157e63(0xf2))/0x9*(parseInt(_0x157e63(0xc3))/0xa)+parseInt(_0x157e63(0x109))/0xb*(parseInt(_0x157e63(0xd5))/0xc);if(_0x1fd154===_0xd1a083)break;else _0x346a75['push'](_0x346a75['shift']());}catch(_0x10a715){_0x346a75['push'](_0x346a75['shift']());}}}(a85_0x2310,0xbd729));import{fileURLToPath}from'node:url';import{basename,dirname,relative,win32}from'node:path';import{execaSync}from'execa';import a85_0x59a76e from'semver';import{CliErrors}from'../errors.js';function a85_0x1354(_0x1a0e9c,_0x54874d){_0x1a0e9c=_0x1a0e9c-0xa5;const _0x23106d=a85_0x2310();let _0x13541d=_0x23106d[_0x1a0e9c];return _0x13541d;}import{CLI_BIN_NAME}from'../constant/cli.js';import{LOVRABET_NPM_PACKAGE_NAME,NPM_REGISTRY_BASE_URL}from'../constant/distribution.js';import{getCliVersion}from'../utils/version.js';import{inspectInstalledBuiltinSkillVersion,installBuiltinSkill}from'../skills/builtin-skill.js';const updateFlags=[{'name':a85_0x3432aa(0x102),'type':a85_0x3432aa(0xb8),'description':a85_0x3432aa(0xba),'default':![]},{'name':'beta','type':'boolean','description':a85_0x3432aa(0xe0),'default':![]},{'name':a85_0x3432aa(0xbe),'type':'string','description':a85_0x3432aa(0xce)}];function getRequestedVersion(_0x2b96fb){const _0x5d7f5d=a85_0x3432aa,_0x2cb5b6=_0x2b96fb[_0x5d7f5d(0x108)](_0x5d7f5d(0xbe))[_0x5d7f5d(0xc9)]();if(_0x2cb5b6)return _0x2cb5b6;return String(_0x2b96fb[_0x5d7f5d(0xe5)]?.[0x0]??'')[_0x5d7f5d(0xc9)]();}async function validateUpdateFlags(_0x5bfb86){const _0xc25f6f=a85_0x3432aa,_0x5be76e=getRequestedVersion(_0x5bfb86),_0x4375a7=[_0x5bfb86[_0xc25f6f(0xd1)](_0xc25f6f(0x102))?'latest':'',_0x5bfb86['bool']('beta')?_0xc25f6f(0xd4):'',_0x5be76e?_0xc25f6f(0xbe):''][_0xc25f6f(0x107)](Boolean);if(_0x4375a7[_0xc25f6f(0xd6)]>0x1)throw CliErrors['validation']('--latest,\x20--beta,\x20and\x20version\x20cannot\x20be\x20used\x20together.',_0xc25f6f(0x10c));if(_0x5be76e&&!a85_0x59a76e[_0xc25f6f(0xfe)](_0x5be76e))throw CliErrors[_0xc25f6f(0xc8)](_0xc25f6f(0x10d)+_0x5be76e,_0xc25f6f(0xb1));}async function fetchNpmDistTags(){const _0x1688de=a85_0x3432aa;try{const _0x5464f1=NPM_REGISTRY_BASE_URL+_0x1688de(0xf8)+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+_0x1688de(0xa5),_0x387568=await fetch(_0x5464f1,{'signal':AbortSignal[_0x1688de(0xe9)](0x2710)});if(!_0x387568['ok'])return null;const _0x306184=await _0x387568[_0x1688de(0xb4)]();if(!_0x306184||typeof _0x306184!=='object')return null;return Object[_0x1688de(0xf4)](Object[_0x1688de(0xa6)](_0x306184)['filter'](([,_0x77d57])=>typeof _0x77d57===_0x1688de(0xa8)&&_0x77d57['trim']())[_0x1688de(0xb7)](([_0x5c1fae,_0x397c99])=>[_0x5c1fae,String(_0x397c99)[_0x1688de(0xc9)]()]));}catch{return null;}}async function resolveTargetVersion(_0x3e6f5c){const _0x23c500=a85_0x3432aa,_0x2854b2=getRequestedVersion(_0x3e6f5c);if(_0x2854b2)return{'version':_0x2854b2,'source':_0x23c500(0xbe)};const _0x3160db=_0x3e6f5c[_0x23c500(0xd1)]('beta')?_0x23c500(0xd4):_0x23c500(0x102),_0x1dfb86=await fetchNpmDistTags(),_0x9aca90=_0x1dfb86?.[_0x3160db];if(!_0x9aca90)return null;return{'version':_0x9aca90,'source':_0x3160db};}function shouldInstallTarget(_0x55ac69,_0x3e8ab3){const _0x2a7d91=a85_0x3432aa;if(_0x3e8ab3[_0x2a7d91(0xd3)]===_0x2a7d91(0xbe)||_0x3e8ab3['source']===_0x2a7d91(0xd4))return!a85_0x59a76e['eq'](_0x55ac69,_0x3e8ab3[_0x2a7d91(0xbe)]);return a85_0x59a76e['lt'](_0x55ac69,_0x3e8ab3[_0x2a7d91(0xbe)]);}export function installCliPackage(_0x2c6807,_0x4df351,_0x270e20=resolveCurrentCliNpmPrefix()){const _0x36c02a=a85_0x3432aa,_0x3322ac=LOVRABET_NPM_PACKAGE_NAME+'@'+_0x2c6807,_0x1fef81=[_0x36c02a(0xe7),'-g',_0x3322ac],_0x46b881=runNpmInstall(_0x1fef81,_0x4df351);if(_0x46b881['ok']||!isNpmPrefixPermissionError(_0x46b881[_0x36c02a(0xa7)]))return _0x46b881;if(!_0x270e20||_0x46b881[_0x36c02a(0xa7)]?.[_0x36c02a(0xe4)]()[_0x36c02a(0xfb)](_0x270e20[_0x36c02a(0xe4)]()))return _0x46b881;return console[_0x36c02a(0xbf)](_0x36c02a(0xdf)+_0x270e20),runNpmInstall([..._0x1fef81,_0x36c02a(0xaf),_0x270e20],_0x4df351);}export function resolveCurrentCliNpmPrefix(_0x32150f=fileURLToPath(import.meta.url),_0x215946=process['platform']){const _0x1166f4=a85_0x3432aa,_0x4d633b=_0x215946===_0x1166f4(0xe3)?win32:{'basename':basename,'dirname':dirname,'relative':relative},_0x24578c=_0x4d633b['dirname'](_0x4d633b[_0x1166f4(0xb9)](_0x4d633b[_0x1166f4(0xb9)](_0x32150f))),_0x5b2688=_0x215946===_0x1166f4(0xe3)?_0x1166f4(0xfc):_0x1166f4(0xd8);let _0x38367a=_0x4d633b[_0x1166f4(0xb9)](_0x24578c);while(!![]){if(_0x4d633b['basename'](_0x38367a)===_0x1166f4(0x106)&&_0x4d633b[_0x1166f4(0xb6)](_0x38367a,_0x24578c)===_0x5b2688){const _0x598b54=_0x4d633b[_0x1166f4(0xb9)](_0x38367a);return _0x4d633b[_0x1166f4(0xa9)](_0x598b54)===_0x1166f4(0xeb)?_0x4d633b[_0x1166f4(0xb9)](_0x598b54):_0x598b54;}const _0x3576d8=_0x4d633b[_0x1166f4(0xb9)](_0x38367a);if(_0x3576d8===_0x38367a)return null;_0x38367a=_0x3576d8;}}function runNpmInstall(_0x21ee4b,_0x120043){const _0x52f385=a85_0x3432aa;console['log']('*\x20'+[_0x52f385(0xcc),..._0x21ee4b][_0x52f385(0xbc)]('\x20'));const _0x5e803b=execaSync(_0x52f385(0xcc),_0x21ee4b,{'cwd':process[_0x52f385(0xdb)](),'stdio':_0x52f385(0xc5),'env':process.env,'extendEnv':![],'shell':![],'reject':![]}),_0xf0726b=_0x5e803b[_0x52f385(0xc0)]?String(_0x5e803b[_0x52f385(0xc0)])[_0x52f385(0xc9)]():'',_0x4c328e=_0x5e803b['stdout']?String(_0x5e803b[_0x52f385(0xae)])[_0x52f385(0xc9)]():'';if(!_0x120043){if(_0x4c328e)process['stdout'][_0x52f385(0xe8)](_0x4c328e+'\x0a');if(_0xf0726b)process[_0x52f385(0xc0)][_0x52f385(0xe8)](_0xf0726b+'\x0a');}if(_0x5e803b[_0x52f385(0xcb)]===0x0)return{'ok':!![]};const _0x18b6cf=_0xf0726b||_0x4c328e||_0x5e803b[_0x52f385(0xfa)]||_0x52f385(0xc4)+(_0x5e803b[_0x52f385(0xcb)]??_0x52f385(0xac));return{'ok':![],'error':_0x18b6cf};}function isNpmPrefixPermissionError(_0x541f7a){const _0x36cac=a85_0x3432aa;return Boolean(_0x541f7a&&/\b(?:EACCES|EPERM)\b/[_0x36cac(0xf3)](_0x541f7a));}function repairCurrentBuiltinSkill(_0x41aee3){const _0x473e12=a85_0x3432aa;console['log']('Checking\x20CLI\x20Built-in\x20Skill...');const _0x4d9e3e=installBuiltinSkill({'stdio':_0x41aee3?_0x473e12(0xc5):_0x473e12(0xbb)});if(_0x4d9e3e['ok']){console['log'](_0x473e12(0xde)+_0x4d9e3e[_0x473e12(0xf9)]+'\x20is\x20current.');return;}throw CliErrors[_0x473e12(0xf0)]('CLI\x20Built-in\x20Skill\x20repair\x20failed\x20['+(_0x4d9e3e[_0x473e12(0xd0)]||'INSTALL_FAILED')+_0x473e12(0x104)+(_0x4d9e3e[_0x473e12(0xa7)]||'unknown'),_0x473e12(0xdd)+_0x4d9e3e['repairCommand']+_0x473e12(0xc6)+CLI_BIN_NAME+_0x473e12(0xda));}function verifyUpdatedBuiltinSkill(_0x2aca91){const _0x15c252=a85_0x3432aa;console[_0x15c252(0xc1)](_0x15c252(0xb2));const _0x4272cd=inspectInstalledBuiltinSkillVersion(_0x2aca91);if(_0x4272cd['state']===_0x15c252(0xf1)){console[_0x15c252(0xc1)]('\x20\x20CLI\x20Built-in\x20Skill\x20'+_0x2aca91+_0x15c252(0xb3));return;}const _0x4bf5ae=_0x4272cd[_0x15c252(0xf9)]?_0x15c252(0x100)+_0x2aca91+_0x15c252(0xe1)+_0x4272cd[_0x15c252(0xf9)]:_0x15c252(0x100)+_0x2aca91+_0x15c252(0xf5)+_0x4272cd[_0x15c252(0xd7)],_0x33d8c4=_0x4272cd['reason']?_0x4bf5ae+':\x20'+_0x4272cd[_0x15c252(0x10a)]:_0x4bf5ae;throw CliErrors[_0x15c252(0xf0)]('CLI\x20updated\x20to\x20v'+_0x2aca91+_0x15c252(0xd2)+_0x33d8c4,'Run:\x20'+_0x4272cd[_0x15c252(0x105)]+_0x15c252(0xc6)+CLI_BIN_NAME+_0x15c252(0xda));}async function execute(_0x44d743){const _0x1b54fe=a85_0x3432aa;await validateUpdateFlags(_0x44d743);const _0x24cfea=getCliVersion();console[_0x1b54fe(0xc1)](_0x1b54fe(0xee)+_0x24cfea),console[_0x1b54fe(0xc1)]('Checking\x20npm\x20dist-tags...');const _0x4b1459=await resolveTargetVersion(_0x44d743);if(!_0x4b1459){const _0x47358b=_0x44d743['bool']('beta')?_0x1b54fe(0xd4):'latest',_0xb1dde6='Unable\x20to\x20resolve\x20'+_0x47358b+_0x1b54fe(0xab);throw CliErrors[_0x1b54fe(0xf0)](_0xb1dde6,'Run:\x20npm\x20install\x20-g\x20'+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x47358b);}const _0x4c21b0=[_0x24cfea,_0x4b1459[_0x1b54fe(0xbe)]][_0x1b54fe(0xad)](_0x17be6e=>!a85_0x59a76e[_0x1b54fe(0xfe)](_0x17be6e));if(_0x4c21b0){const _0x1d173f=_0x1b54fe(0xef)+_0x4c21b0+'.';throw CliErrors[_0x1b54fe(0xf0)](_0x1d173f,_0x1b54fe(0xea)+LOVRABET_NPM_PACKAGE_NAME+_0x1b54fe(0xb0));}if(!shouldInstallTarget(_0x24cfea,_0x4b1459)){const _0x30a3a1=_0x4b1459[_0x1b54fe(0xd3)]===_0x1b54fe(0xbe)?_0x1b54fe(0xcf)+_0x4b1459[_0x1b54fe(0xbe)]+').':_0x1b54fe(0xd9)+_0x4b1459[_0x1b54fe(0xbe)]+').';return console[_0x1b54fe(0xc1)](_0x30a3a1),repairCurrentBuiltinSkill(_0x44d743['nonInteractive']),{'ok':!![]};}console[_0x1b54fe(0xc1)](_0x1b54fe(0xbd)+LOVRABET_NPM_PACKAGE_NAME+':\x20'+_0x24cfea+_0x1b54fe(0xec)+_0x4b1459['version']);const _0x22c2e7=installCliPackage(_0x4b1459[_0x1b54fe(0xbe)],_0x44d743[_0x1b54fe(0xf7)]);if(!_0x22c2e7['ok']){const _0xfeeca6=_0x1b54fe(0x10b)+(_0x22c2e7['error']||_0x1b54fe(0xac));throw CliErrors['apiError'](_0xfeeca6,_0x1b54fe(0xe2)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x4b1459[_0x1b54fe(0xbe)]);}return console[_0x1b54fe(0xc1)](_0x1b54fe(0xcd)+_0x4b1459[_0x1b54fe(0xbe)]+'.'),console[_0x1b54fe(0xc1)](_0x1b54fe(0x101)),verifyUpdatedBuiltinSkill(_0x4b1459[_0x1b54fe(0xbe)]),{'ok':!![]};}export const updateDefinition={'service':a85_0x3432aa(0x103),'command':a85_0x3432aa(0xed),'description':a85_0x3432aa(0xfd)+CLI_BIN_NAME+'\x20CLI\x20from\x20npm','risk':a85_0x3432aa(0xdc),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a86_0x50a48c=a86_0x4907;(function(_0x700f8,_0x448975){const _0x7c889e=a86_0x4907,_0x297d29=_0x700f8();while(!![]){try{const _0x335517=parseInt(_0x7c889e(0x1c3))/0x1*(parseInt(_0x7c889e(0x1b9))/0x2)+parseInt(_0x7c889e(0x1b3))/0x3+parseInt(_0x7c889e(0x1a8))/0x4*(parseInt(_0x7c889e(0x1a5))/0x5)+parseInt(_0x7c889e(0x1be))/0x6+parseInt(_0x7c889e(0x1b7))/0x7+-parseInt(_0x7c889e(0x1b1))/0x8+-parseInt(_0x7c889e(0x1c2))/0x9;if(_0x335517===_0x448975)break;else _0x297d29['push'](_0x297d29['shift']());}catch(_0x243301){_0x297d29['push'](_0x297d29['shift']());}}}(a86_0x5633,0xe10f9));function a86_0x5633(){const _0x44dc60=['validation','2211060Umaeac','trim','Bind\x20the\x20current\x20platform\x20user\x20to\x20an\x20external\x20provider\x20account','apiError','3787903LFLuDx','Pass\x20the\x20external\x20account\x20ID\x20for\x20the\x20selected\x20provider.','1312PTrMqa','dingtalk','user-account','Binds\x20the\x20platform\x20user\x20of\x20the\x20current\x20AccessKey\x20to\x20the\x20given\x20collaboration-provider\x20account.\x20An\x20existing\x20bind\x20for\x20the\x20same\x20provider\x20may\x20be\x20replaced.','External\x20account\x20provider','10251390sFrsXp','POST','write','(empty)','16056243ToTiXL','663QLucYl','The\x20current\x20binding\x20is\x20not\x20exposed\x20by\x20the\x20server;\x20before\x20is\x20unavailable.','Bound\x20current\x20user\x20to\x20external\x20provider\x20account.','10gCSVJc','string','Pass\x20one\x20of:\x20','1728388dxEUqV','Retry\x20with\x20the\x20same\x20--provider\x20and\x20--account-id\x20only\x20after\x20checking\x20the\x20current\x20AccessKey\x20identity.','account-id','External\x20account\x20binding\x20was\x20not\x20confirmed.','bind','--account-id\x20cannot\x20be\x20empty.','str','includes','provider','12639680yseuta'];a86_0x5633=function(){return _0x44dc60;};return a86_0x5633();}import{bindExternalUserAccount,USER_ACCOUNT_BIND_PATH}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const CURRENT_BINDING_WARNING=a86_0x50a48c(0x1c4),SUPPORTED_PROVIDERS=[a86_0x50a48c(0x1ba)];function readBindingInput(_0x568ab5){const _0x3b303e=a86_0x50a48c,_0x1c569c=_0x568ab5[_0x3b303e(0x1ae)]('provider')[_0x3b303e(0x1b4)]()['toLowerCase']();if(!SUPPORTED_PROVIDERS[_0x3b303e(0x1af)](_0x1c569c))throw CliErrors[_0x3b303e(0x1b2)]('Unsupported\x20provider:\x20'+(_0x1c569c||_0x3b303e(0x1c1))+'.',_0x3b303e(0x1a7)+SUPPORTED_PROVIDERS['join'](',\x20')+'.');const _0x2aa618=_0x568ab5[_0x3b303e(0x1ae)](_0x3b303e(0x1aa))[_0x3b303e(0x1b4)]();if(!_0x2aa618)throw CliErrors[_0x3b303e(0x1b2)](_0x3b303e(0x1ad),_0x3b303e(0x1b8));return{'provider':_0x1c569c,'accountId':_0x2aa618};}function a86_0x4907(_0x9adf91,_0x517caf){_0x9adf91=_0x9adf91-0x1a5;const _0x563393=a86_0x5633();let _0x49072f=_0x563393[_0x9adf91];return _0x49072f;}function buildBindingData(_0x19a099,_0x5686ea,_0x47f418){return{'operation':'bind','selector':{'provider':_0x19a099,'accountId':_0x5686ea},'before':null,'after':{'provider':_0x19a099,'accountId':_0x5686ea,'bound':!![]},'dryRun':_0x47f418,'warnings':[CURRENT_BINDING_WARNING]};}export const bindUserAccount={'service':a86_0x50a48c(0x1bb),'command':a86_0x50a48c(0x1ac),'description':a86_0x50a48c(0x1b5),'risk':a86_0x50a48c(0x1c0),'confirmationDescription':a86_0x50a48c(0x1bc),'requiresAuth':!![],'requiresAppCode':![],'flags':[{'name':a86_0x50a48c(0x1b0),'type':'string','required':!![],'enum':[...SUPPORTED_PROVIDERS],'description':a86_0x50a48c(0x1bd)},{'name':a86_0x50a48c(0x1aa),'type':a86_0x50a48c(0x1a6),'required':!![],'description':'External\x20account\x20ID\x20for\x20the\x20selected\x20provider'}],async 'validate'(_0x2b6ca1){readBindingInput(_0x2b6ca1);},async 'dryRun'(_0x4742b3){const _0x419335=a86_0x50a48c,{provider:_0x1197b1,accountId:_0x2fb3d7}=readBindingInput(_0x4742b3);return{...buildBindingData(_0x1197b1,_0x2fb3d7,!![]),'method':_0x419335(0x1bf),'url':USER_ACCOUNT_BIND_PATH,'body':{'provider':_0x1197b1,'accountId':_0x2fb3d7}};},async 'execute'(_0xadb077){const _0x1a3f8c=a86_0x50a48c,{provider:_0x3b9b18,accountId:_0x3bdae8}=readBindingInput(_0xadb077),_0x22439f=await bindExternalUserAccount(_0x3b9b18,_0x3bdae8);if(_0x22439f!==!![])throw CliErrors[_0x1a3f8c(0x1b6)](_0x1a3f8c(0x1ab),_0x1a3f8c(0x1a9));return{'ok':!![],'data':buildBindingData(_0x3b9b18,_0x3bdae8,![]),'message':_0x1a3f8c(0x1c5)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a87_0x29aa(_0x3380f1,_0x1abc60){_0x3380f1=_0x3380f1-0xd5;const _0x23bf1f=a87_0x23bf();let _0x29aa61=_0x23bf1f[_0x3380f1];return _0x29aa61;}(function(_0x2508f4,_0x340264){const _0x553b60=a87_0x29aa,_0x1711c0=_0x2508f4();while(!![]){try{const _0x34743e=parseInt(_0x553b60(0xd8))/0x1+parseInt(_0x553b60(0xdc))/0x2*(parseInt(_0x553b60(0xda))/0x3)+-parseInt(_0x553b60(0xdd))/0x4*(parseInt(_0x553b60(0xde))/0x5)+-parseInt(_0x553b60(0xdb))/0x6*(-parseInt(_0x553b60(0xd7))/0x7)+parseInt(_0x553b60(0xd5))/0x8+-parseInt(_0x553b60(0xd9))/0x9*(parseInt(_0x553b60(0xd6))/0xa)+-parseInt(_0x553b60(0xdf))/0xb;if(_0x34743e===_0x340264)break;else _0x1711c0['push'](_0x1711c0['shift']());}catch(_0x37399d){_0x1711c0['push'](_0x1711c0['shift']());}}}(a87_0x23bf,0x5be12));import{bindUserAccount}from'../../commands/user-account/bind.js';export const userAccountDefinitions=[bindUserAccount];function a87_0x23bf(){const _0x64420d=['4406856rNbMHs','198410UqLETT','329peHKxG','193032MRSEsB','63tXIglj','7971Trlbwj','84342Kcamee','554tVOosX','4acHkET','1249135euCXKU','15130555EbFcoy'];a87_0x23bf=function(){return _0x64420d;};return a87_0x23bf();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a88_0x3bb797=a88_0x5d24;function a88_0x5d24(_0x4230ef,_0x100e5b){_0x4230ef=_0x4230ef-0x98;const _0x1380cf=a88_0x1380();let _0x5d24ae=_0x1380cf[_0x4230ef];return _0x5d24ae;}(function(_0x18b14b,_0x3cdd8b){const _0x5bd944=a88_0x5d24,_0x46b4ce=_0x18b14b();while(!![]){try{const _0x408daf=-parseInt(_0x5bd944(0x9e))/0x1*(parseInt(_0x5bd944(0xc4))/0x2)+parseInt(_0x5bd944(0xb5))/0x3*(parseInt(_0x5bd944(0xbf))/0x4)+-parseInt(_0x5bd944(0xce))/0x5*(-parseInt(_0x5bd944(0xa7))/0x6)+parseInt(_0x5bd944(0xb1))/0x7*(parseInt(_0x5bd944(0xd0))/0x8)+-parseInt(_0x5bd944(0xb0))/0x9*(-parseInt(_0x5bd944(0xb7))/0xa)+-parseInt(_0x5bd944(0x99))/0xb*(-parseInt(_0x5bd944(0xbe))/0xc)+-parseInt(_0x5bd944(0xcf))/0xd;if(_0x408daf===_0x3cdd8b)break;else _0x46b4ce['push'](_0x46b4ce['shift']());}catch(_0x3a261f){_0x46b4ce['push'](_0x46b4ce['shift']());}}}(a88_0x1380,0x3ed45));import{CLI_BIN_NAME}from'../../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../../constant/env.js';import{CliErrors}from'../../errors.js';import{readConfigFile,resolveWriteConfigPath,writeConfigFile}from'../../context.js';function a88_0x1380(){const _0x3ac637=['validation','defaultApp','items','init','Resolving\x20--app\x20requires\x20accessKey.\x20Pass\x20--appcode\x20directly,\x20or\x20set\x20accessKey\x20before\x20running\x20','\x0aDefault\x20app:\x20','Workspace\x20configured.\x0aConfig\x20file:\x20','\x22.\x20Allowed:\x20','1533645qHSVEf','10129elWjAa','appCode','workspace\x20','trim','321252QtrKGJ','Conflicting\x20workspace\x20app\x20selectors.','10zTBjye','shouldWriteEnv','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20pass\x20--appcode\x20directly.','\x20--app\x20<name>\x20[--env\x20daily]\x20or\x20','Workspace\x20app\x20context\x20is\x20not\x20initialized.','Updates\x20the\x20app\x20binding\x20already\x20present\x20in\x20the\x20current\x20working\x20directory\x20and\x20sets\x20the\x20selected\x20app\x20as\x20the\x20directory\x20default.\x20AccessKey\x20is\x20not\x20written.','\x20workspace\x20use\x20--app\x20<name>`\x20or\x20`','1044012BTzhkF','8rTFLwb','isArray','App\x20code\x20to\x20bind\x20directly','../../commands/app/remote-source.js','Target\x20environment','1428NuXKMx','Run\x20`','apps','Initialize\x20app\x20context\x20for\x20the\x20current\x20working\x20directory\x20when\x20no\x20app\x20is\x20bound\x20yet','write','accessKey','Change\x20the\x20app\x20context\x20already\x20bound\x20to\x20the\x20current\x20working\x20directory','authRequired','includes','\x20workspace\x20use\x20--appcode\x20<code>`\x20to\x20change\x20it.','745stpRGZ','10200853rfgnyI','2480USqQvv','app','App\x20name\x20to\x20bind\x20as\x20the\x20current\x20workspace\x20default','length','env','Available\x20apps:\x20','join','\x0aEnv:\x20','from','\x20--appcode\x20<code>\x20[--env\x20daily]','appName','envName','../../core/api-client.js','map','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.','workspace','string','command','22wdwxvO','project','\x20workspace\x20','\x20workspace\x20init\x20--app\x20<name>`\x20or\x20`','use','289TLnPEC','Missing\x20workspace\x20app\x20selector.','App\x20\x22','Usage:\x20','appcode','\x22\x20not\x20found.','str','Use\x20`','Workspace\x20app\x20context\x20is\x20already\x20initialized.','9714yyVkXY'];a88_0x1380=function(){return _0x3ac637;};return a88_0x1380();}import{findAppByName,isRuntimeAccessibleApp,runtimeInaccessibleAppError}from'../../commands/app/eligibility.js';const WORKSPACE_USE_FLAGS=[{'name':a88_0x3bb797(0xd1),'type':a88_0x3bb797(0xe0),'description':a88_0x3bb797(0xd2)},{'name':'appcode','type':'string','description':a88_0x3bb797(0xc1)},{'name':a88_0x3bb797(0xd4),'type':'string','description':a88_0x3bb797(0xc3),'enum':[...RUNTIME_ENV_VALUES]}];async function executeWorkspaceUse(_0x325852,_0x245db4){const _0x27a02e=a88_0x3bb797,_0x5379fd=_0x325852[_0x27a02e(0xa4)](_0x27a02e(0xd1))[_0x27a02e(0xb4)](),_0x3417ad=_0x325852[_0x27a02e(0xa4)]('appcode')['trim'](),_0x17f9d5=_0x325852['str'](_0x27a02e(0xd4))[_0x27a02e(0xb4)](),_0x4326fb=resolveWorkspaceEnv(_0x17f9d5||_0x325852[_0x27a02e(0xdb)]||DEFAULT_CONFIG_VALUES[_0x27a02e(0xd4)]);if(!_0x5379fd&&!_0x3417ad)throw CliErrors[_0x27a02e(0xa8)](_0x27a02e(0x9f),_0x27a02e(0xa1)+CLI_BIN_NAME+_0x27a02e(0x9b)+_0x245db4+_0x27a02e(0xba)+CLI_BIN_NAME+'\x20workspace\x20'+_0x245db4+_0x27a02e(0xd9));if(_0x5379fd&&_0x3417ad)throw CliErrors['validation'](_0x27a02e(0xb6),'Pass\x20either\x20--app\x20<name>\x20or\x20--appcode\x20<code>,\x20not\x20both.');const _0x2f93fa=resolveWriteConfigPath(_0x27a02e(0x9a)),_0x116de9=readConfigFile(_0x2f93fa);assertWorkspaceCommandState(_0x245db4,_0x116de9);const _0x53dcde=_0x3417ad||await resolveRemoteAppCode({'command':_0x245db4,'appName':_0x5379fd,'env':_0x4326fb,'accessKey':_0x325852['accessKey']});return writeWorkspaceConfig({'command':_0x245db4,'appName':_0x5379fd,'appcode':_0x53dcde,'env':_0x4326fb,'shouldWriteEnv':!!_0x17f9d5,'accessKey':_0x325852[_0x27a02e(0xc9)]},_0x2f93fa,_0x116de9),{'ok':!![],'data':{'configPath':_0x2f93fa,'app':_0x5379fd||null,'appcode':_0x53dcde,'env':_0x17f9d5?_0x4326fb:null,'accessKeyWritten':![],'command':_0x27a02e(0xb3)+_0x245db4},'message':buildWorkspaceMessage(_0x2f93fa,_0x5379fd,_0x53dcde,_0x17f9d5?_0x4326fb:undefined)};}async function resolveRemoteAppCode(_0x13c83d){const _0x510f61=a88_0x3bb797;if(!_0x13c83d[_0x510f61(0xc9)])throw CliErrors[_0x510f61(0xcb)](_0x510f61(0xac)+CLI_BIN_NAME+_0x510f61(0x9b)+_0x13c83d[_0x510f61(0x98)]+'.');const {setActiveAK:_0x6f986d}=await import(_0x510f61(0xdc)),{getRemoteAppList:_0x23e9ce}=await import(_0x510f61(0xc2));_0x6f986d(_0x13c83d[_0x510f61(0xc9)]);const _0x56e601=await _0x23e9ce({'env':_0x13c83d['env'],'accessKey':_0x13c83d[_0x510f61(0xc9)],'noCache':![]}),_0xb901ea=findAppByName(_0x56e601[_0x510f61(0xaa)],_0x13c83d[_0x510f61(0xda)]);if(_0xb901ea&&!isRuntimeAccessibleApp(_0xb901ea))throw runtimeInaccessibleAppError(_0xb901ea,'\x22'+_0x13c83d[_0x510f61(0xda)]+'\x22');const _0x377702=_0xb901ea?.[_0x510f61(0xb2)]?.[_0x510f61(0xb4)]();if(_0x377702)return _0x377702;const _0xa46d38=_0x56e601['items'][_0x510f61(0xdd)](_0x2a521f=>_0x2a521f['appName'])['filter'](Boolean),_0x467146=_0xa46d38[_0x510f61(0xd3)]?_0x510f61(0xd5)+Array[_0x510f61(0xd8)](new Set(_0xa46d38))[_0x510f61(0xd6)](',\x20')+'.':'Run\x20`'+CLI_BIN_NAME+_0x510f61(0xb9);throw CliErrors['validation'](_0x510f61(0xa0)+_0x13c83d[_0x510f61(0xda)]+_0x510f61(0xa3),_0x467146);}function writeWorkspaceConfig(_0x496e3b,_0x425ad4,_0x2f6e08){const _0x11038c=a88_0x3bb797;_0x496e3b[_0x11038c(0xb8)]&&(_0x2f6e08[_0x11038c(0xd4)]=_0x496e3b[_0x11038c(0xd4)]);if(_0x496e3b['appName']){const _0x2f034b=isRecord(_0x2f6e08[_0x11038c(0xc6)])?{..._0x2f6e08[_0x11038c(0xc6)]}:{},_0x37c9af=isRecord(_0x2f034b[_0x496e3b[_0x11038c(0xda)]])?_0x2f034b[_0x496e3b[_0x11038c(0xda)]]:{};return _0x2f034b[_0x496e3b[_0x11038c(0xda)]]={..._0x37c9af,'appcode':_0x496e3b[_0x11038c(0xa2)]},_0x2f6e08['apps']=_0x2f034b,_0x2f6e08[_0x11038c(0xa9)]=_0x496e3b[_0x11038c(0xda)],delete _0x2f6e08['appcode'],delete _0x2f6e08[_0x11038c(0xd1)],writeAndReturn(_0x425ad4,_0x2f6e08);}return _0x2f6e08[_0x11038c(0xa2)]=_0x496e3b[_0x11038c(0xa2)],delete _0x2f6e08[_0x11038c(0xa9)],delete _0x2f6e08['app'],writeAndReturn(_0x425ad4,_0x2f6e08);}function writeAndReturn(_0xaf9364,_0xc2152d){return writeConfigFile(_0xaf9364,_0xc2152d),_0xaf9364;}function resolveWorkspaceEnv(_0x58cacf){const _0x3b0139=a88_0x3bb797;if(RUNTIME_ENV_VALUES[_0x3b0139(0xcc)](_0x58cacf))return _0x58cacf;throw CliErrors[_0x3b0139(0xa8)]('Invalid\x20env\x20\x22'+_0x58cacf+_0x3b0139(0xaf)+RUNTIME_ENV_VALUES[_0x3b0139(0xd6)](',\x20'));}function buildWorkspaceMessage(_0x15982f,_0xa865d8,_0x3a49f0,_0x7cc852){const _0x40b215=a88_0x3bb797,_0x484b2b=_0xa865d8?_0xa865d8+'\x20('+_0x3a49f0+')':_0x3a49f0,_0x4675c7=_0x7cc852?_0x40b215(0xd7)+_0x7cc852:'';return _0x40b215(0xae)+_0x15982f+_0x40b215(0xad)+_0x484b2b+_0x4675c7+'\x0aAccessKey:\x20not\x20written';}function isRecord(_0x449db3){const _0x387d1f=a88_0x3bb797;return typeof _0x449db3==='object'&&_0x449db3!==null&&!Array[_0x387d1f(0xc0)](_0x449db3);}function hasWorkspaceAppBinding(_0x43fbe7){const _0x2dcd95=a88_0x3bb797;if(typeof _0x43fbe7[_0x2dcd95(0xa2)]===_0x2dcd95(0xe0)&&_0x43fbe7[_0x2dcd95(0xa2)]['trim']()[_0x2dcd95(0xd3)]>0x0)return!![];if(typeof _0x43fbe7[_0x2dcd95(0xa9)]!==_0x2dcd95(0xe0)||!_0x43fbe7[_0x2dcd95(0xa9)][_0x2dcd95(0xb4)]())return![];if(!isRecord(_0x43fbe7[_0x2dcd95(0xc6)]))return![];const _0x51e3af=_0x43fbe7[_0x2dcd95(0xc6)][_0x43fbe7[_0x2dcd95(0xa9)][_0x2dcd95(0xb4)]()];return isRecord(_0x51e3af)&&typeof _0x51e3af['appcode']===_0x2dcd95(0xe0)&&_0x51e3af['appcode'][_0x2dcd95(0xb4)]()[_0x2dcd95(0xd3)]>0x0;}function assertWorkspaceCommandState(_0xda54ee,_0x5c4fd1){const _0x24ade5=a88_0x3bb797,_0x49364a=hasWorkspaceAppBinding(_0x5c4fd1);if(_0xda54ee==='init'&&_0x49364a)throw CliErrors[_0x24ade5(0xa8)](_0x24ade5(0xa6),_0x24ade5(0xa5)+CLI_BIN_NAME+_0x24ade5(0xbd)+CLI_BIN_NAME+_0x24ade5(0xcd));if(_0xda54ee===_0x24ade5(0x9d)&&!_0x49364a)throw CliErrors[_0x24ade5(0xa8)](_0x24ade5(0xbb),_0x24ade5(0xc5)+CLI_BIN_NAME+_0x24ade5(0x9c)+CLI_BIN_NAME+'\x20workspace\x20init\x20--appcode\x20<code>`\x20first.');}function makeWorkspaceCommand(_0x4d85a6){const _0x21cb86=a88_0x3bb797;return{'service':_0x21cb86(0xdf),'command':_0x4d85a6,'description':_0x4d85a6===_0x21cb86(0xab)?_0x21cb86(0xc7):_0x21cb86(0xca),'risk':_0x21cb86(0xc8),'confirmationDescription':_0x4d85a6===_0x21cb86(0xab)?_0x21cb86(0xde):_0x21cb86(0xbc),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':WORKSPACE_USE_FLAGS,async 'execute'(_0x4dd6cd){return executeWorkspaceUse(_0x4dd6cd,_0x4d85a6);}};}export const workspaceDefinitions=[makeWorkspaceCommand('init'),makeWorkspaceCommand(a88_0x3bb797(0x9d))];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a89_0x175fb8=a89_0x1703;(function(_0x506aa5,_0x329170){const _0x7c0186=a89_0x1703,_0x216243=_0x506aa5();while(!![]){try{const _0x2bd997=parseInt(_0x7c0186(0x1e0))/0x1*(parseInt(_0x7c0186(0x1e7))/0x2)+-parseInt(_0x7c0186(0x1cc))/0x3*(-parseInt(_0x7c0186(0x1d3))/0x4)+parseInt(_0x7c0186(0x1a9))/0x5+-parseInt(_0x7c0186(0x1c9))/0x6*(parseInt(_0x7c0186(0x1d2))/0x7)+-parseInt(_0x7c0186(0x1e4))/0x8*(-parseInt(_0x7c0186(0x1d5))/0x9)+-parseInt(_0x7c0186(0x1ba))/0xa*(parseInt(_0x7c0186(0x1d1))/0xb)+parseInt(_0x7c0186(0x1af))/0xc*(-parseInt(_0x7c0186(0x1c8))/0xd);if(_0x2bd997===_0x329170)break;else _0x216243['push'](_0x216243['shift']());}catch(_0x2dfb76){_0x216243['push'](_0x216243['shift']());}}}(a89_0x4fa1,0x501bf));import{existsSync,readFileSync}from'node:fs';import{isAbsolute,resolve}from'node:path';import{CliErrors}from'../errors.js';import{ENTERPRISE_ROUTING_DOMAIN_FIELDS,ENTERPRISE_ROUTING_KIND,ENTERPRISE_ROUTING_PROTOCOL,REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS}from'../generated/routing-contract.js';function a89_0x1703(_0x3798b3,_0x5f48d4){_0x3798b3=_0x3798b3-0x1a9;const _0x4fa117=a89_0x4fa1();let _0x1703be=_0x4fa117[_0x3798b3];return _0x1703be;}export const DOMAIN_CONFIG_FIELDS=[a89_0x175fb8(0x1bc),a89_0x175fb8(0x1cd),'runtimeDomain',a89_0x175fb8(0x1b0),a89_0x175fb8(0x1be)];const DOMAIN_FLAGS={'userDomain':a89_0x175fb8(0x1b5),'apiDomain':'api-domain','runtimeDomain':a89_0x175fb8(0x1b6),'skillDomain':a89_0x175fb8(0x1ad),'kbServiceDomain':a89_0x175fb8(0x1b1)};export const LEGACY_DOMAIN_CONFIG_FIELDS=[a89_0x175fb8(0x1d4),a89_0x175fb8(0x1df),a89_0x175fb8(0x1cf),'skillHubDomain',a89_0x175fb8(0x1dd)];const ENTERPRISE_TO_LOCAL_FIELD={'userDomain':a89_0x175fb8(0x1bc),'apiDomain':'apiDomain','runtimeDomain':a89_0x175fb8(0x1c7),'skillDomain':a89_0x175fb8(0x1b0),'kbServiceDomain':a89_0x175fb8(0x1be)},ROUTING_CONSUMER=a89_0x175fb8(0x1de);export function normalizeDomainOrigin(_0x12ed33,_0x535207){const _0xcc8efe=a89_0x175fb8;if(typeof _0x535207!=='string'||!_0x535207[_0xcc8efe(0x1cb)]())throw CliErrors[_0xcc8efe(0x1d8)]('Invalid\x20'+_0x12ed33+_0xcc8efe(0x1b3));let _0x15d455;try{_0x15d455=new URL(_0x535207['trim']());}catch{throw CliErrors[_0xcc8efe(0x1d8)]('Invalid\x20'+_0x12ed33+_0xcc8efe(0x1ce)+_0x535207+_0xcc8efe(0x1e2));}if(_0x15d455[_0xcc8efe(0x1c4)]!==_0xcc8efe(0x1c1)||_0x15d455[_0xcc8efe(0x1b9)]||_0x15d455['password']||_0x15d455[_0xcc8efe(0x1d6)]!=='/'&&_0x15d455[_0xcc8efe(0x1d6)]!==''||_0x15d455[_0xcc8efe(0x1ea)]||_0x15d455[_0xcc8efe(0x1c2)])throw CliErrors[_0xcc8efe(0x1d8)]('Invalid\x20'+_0x12ed33+_0xcc8efe(0x1c3),_0xcc8efe(0x1dc));return _0x15d455['origin'];}export function normalizeRoutingDomainValue(_0x23e7b3,_0x9d211b){const _0x41b31c=a89_0x175fb8;if(typeof _0x9d211b==='string')return normalizeDomainOrigin(_0x23e7b3,_0x9d211b);if(!_0x9d211b||typeof _0x9d211b!==_0x41b31c(0x1b2)||Array[_0x41b31c(0x1db)](_0x9d211b))throw CliErrors[_0x41b31c(0x1d8)](_0x41b31c(0x1b8)+_0x23e7b3+_0x41b31c(0x1d9));const _0x516da6=_0x9d211b,_0x1bbc1d=_0x516da6[ROUTING_CONSUMER]??_0x516da6[_0x41b31c(0x1c0)];if(_0x1bbc1d===undefined)throw CliErrors['validation']('Enterprise\x20'+_0x23e7b3+_0x41b31c(0x1d7)+ROUTING_CONSUMER+_0x41b31c(0x1c5));return normalizeDomainOrigin(_0x23e7b3,_0x1bbc1d);}export function resolveEnterpriseRoutingConfig(_0x371144){const _0x587987=a89_0x175fb8;if(_0x371144===undefined)return undefined;if(!_0x371144||typeof _0x371144!==_0x587987(0x1b2)||Array[_0x587987(0x1db)](_0x371144))throw CliErrors[_0x587987(0x1d8)]('Invalid\x20enterprise\x20routing\x20config:\x20expected\x20an\x20object.');return parseEnterpriseRoutingManifest(_0x371144)[_0x587987(0x1b4)];}export function readDomainConfigInput(_0x14052c){const _0x52d293=a89_0x175fb8,_0x4f6dc6=isAbsolute(_0x14052c)?_0x14052c:resolve(process[_0x52d293(0x1ec)](),_0x14052c);if(!existsSync(_0x4f6dc6))throw CliErrors['validation'](_0x52d293(0x1da)+_0x4f6dc6);let _0x54f8bc;try{_0x54f8bc=JSON['parse'](readFileSync(_0x4f6dc6,'utf8'));}catch{throw CliErrors[_0x52d293(0x1d8)]('Invalid\x20domain\x20config\x20JSON:\x20'+_0x4f6dc6);}if(!_0x54f8bc||typeof _0x54f8bc!==_0x52d293(0x1b2)||Array[_0x52d293(0x1db)](_0x54f8bc))throw CliErrors['validation'](_0x52d293(0x1ac));const _0x4c71e3=_0x54f8bc;if(_0x52d293(0x1c4)in _0x4c71e3)return parseEnterpriseRoutingManifest(_0x4c71e3);const _0x23509c=Object[_0x52d293(0x1eb)](_0x4c71e3)[_0x52d293(0x1bb)](_0x5207ad=>!DOMAIN_CONFIG_FIELDS[_0x52d293(0x1e5)](_0x5207ad));if(_0x23509c[_0x52d293(0x1aa)]>0x0)throw CliErrors[_0x52d293(0x1d8)]('Unsupported\x20domain\x20config\x20field(s):\x20'+_0x23509c[_0x52d293(0x1e9)](',\x20'),'Allowed\x20fields:\x20'+DOMAIN_CONFIG_FIELDS[_0x52d293(0x1e9)](',\x20'));const _0x4816e5={};for(const _0x3d2196 of DOMAIN_CONFIG_FIELDS){_0x4c71e3[_0x3d2196]!==undefined&&(_0x4816e5[_0x3d2196]=normalizeDomainOrigin(_0x3d2196,_0x4c71e3[_0x3d2196]));}if(Object[_0x52d293(0x1eb)](_0x4816e5)[_0x52d293(0x1aa)]===0x0)throw CliErrors[_0x52d293(0x1d8)](_0x52d293(0x1b7));return{'mode':'legacy','domains':_0x4816e5};}export function readDomainConfig(_0x410f82){return readDomainConfigInput(_0x410f82)['domains'];}export function resolveDomainConfigInput(_0x488bcd){const _0x277acb=a89_0x175fb8,_0xa990ca=(_0x488bcd[_0x277acb(0x1ab)](_0x277acb(0x1bf))||'')[_0x277acb(0x1cb)](),_0x205349=_0xa990ca?readDomainConfigInput(_0xa990ca):{'mode':_0x277acb(0x1e1),'domains':{}},_0x4a6da8=DOMAIN_CONFIG_FIELDS[_0x277acb(0x1bb)](_0x4b1c5a=>Boolean((_0x488bcd[_0x277acb(0x1ab)](DOMAIN_FLAGS[_0x4b1c5a])||'')[_0x277acb(0x1cb)]()));if(_0x205349[_0x277acb(0x1e3)]===_0x277acb(0x1ca)&&_0x4a6da8[_0x277acb(0x1aa)]>0x0)throw CliErrors[_0x277acb(0x1d8)](_0x277acb(0x1e8),_0x277acb(0x1ae));for(const _0x57eeea of DOMAIN_CONFIG_FIELDS){const _0x8dcfe4=(_0x488bcd[_0x277acb(0x1ab)](DOMAIN_FLAGS[_0x57eeea])||'')[_0x277acb(0x1cb)]();if(_0x8dcfe4)_0x205349[_0x277acb(0x1b4)][_0x57eeea]=normalizeDomainOrigin(_0x57eeea,_0x8dcfe4);}return _0x205349;}export function resolveDomainFlags(_0x270f9e){const _0x38422f=a89_0x175fb8;return resolveDomainConfigInput(_0x270f9e)[_0x38422f(0x1b4)];}export function parseEnterpriseRoutingManifest(_0xf95fa2){const _0x2d1e28=a89_0x175fb8;if(_0xf95fa2[_0x2d1e28(0x1c4)]!==ENTERPRISE_ROUTING_PROTOCOL||_0xf95fa2[_0x2d1e28(0x1d0)]!==ENTERPRISE_ROUTING_KIND)throw CliErrors[_0x2d1e28(0x1d8)]('Unsupported\x20routing\x20manifest:\x20expected\x20protocol\x20\x22'+ENTERPRISE_ROUTING_PROTOCOL+_0x2d1e28(0x1e6)+ENTERPRISE_ROUTING_KIND+'\x22.');if(!_0xf95fa2[_0x2d1e28(0x1b4)]||typeof _0xf95fa2[_0x2d1e28(0x1b4)]!==_0x2d1e28(0x1b2)||Array['isArray'](_0xf95fa2[_0x2d1e28(0x1b4)]))throw CliErrors[_0x2d1e28(0x1d8)](_0x2d1e28(0x1c6));const _0x108cea=_0xf95fa2[_0x2d1e28(0x1b4)],_0x4a152b=REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS['filter'](_0x3d343c=>_0x108cea[_0x3d343c]===undefined);if(_0x4a152b[_0x2d1e28(0x1aa)]>0x0)throw CliErrors[_0x2d1e28(0x1d8)](_0x2d1e28(0x1bd)+_0x4a152b[_0x2d1e28(0x1e9)](',\x20'));const _0x3d0201={},_0x25cc94={};for(const _0x336df1 of ENTERPRISE_ROUTING_DOMAIN_FIELDS){const _0x23da27=_0x108cea[_0x336df1];if(_0x23da27===undefined)continue;const _0x3221cc=normalizeRoutingDomainValue(_0x336df1,_0x23da27);_0x3d0201[_0x336df1]=_0x3221cc;const _0x9f34ce=ENTERPRISE_TO_LOCAL_FIELD[_0x336df1];_0x9f34ce&&(_0x25cc94[_0x9f34ce]=_0x3221cc);}return{'mode':'enterprise-v1','domains':_0x25cc94,'manifestDomains':_0x3d0201};}function a89_0x4fa1(){const _0x19415c=['kind','1639JlRHaO','14462iZWhPX','2563764MvoOoF','host','89361OGtwnk','pathname','\x20does\x20not\x20provide\x20a\x20Domain\x20for\x20','validation',':\x20expected\x20an\x20HTTPS\x20origin\x20or\x20consumer\x20Domain\x20object.','Domain\x20config\x20file\x20not\x20found:\x20','isArray','For\x20internal\x20deployments,\x20terminate\x20TLS\x20at\x20the\x20ingress,\x20reverse\x20proxy,\x20or\x20load\x20balancer;\x20an\x20internal\x20CA\x20is\x20supported.','kbDomain','lovrabet-cli','agentDomain','369zONxyh','legacy','\x22\x20is\x20not\x20a\x20valid\x20URL.','mode','432yspxUc','includes','\x22\x20and\x20kind\x20\x22','2766CwnQHh','Enterprise\x20routing\x20manifests\x20cannot\x20be\x20combined\x20with\x20individual\x20Domain\x20flags.','join','search','keys','cwd','229005uHtvLT','length','str','Invalid\x20domain\x20config:\x20expected\x20a\x20JSON\x20object.','skill-domain','Update\x20the\x20manifest\x20so\x20both\x20CLIs\x20consume\x20the\x20same\x20routing\x20data.','6696XjmyQe','skillDomain','kb-service-domain','object',':\x20expected\x20a\x20non-empty\x20HTTPS\x20origin.','domains','user-domain','runtime-domain','Invalid\x20domain\x20config:\x20provide\x20at\x20least\x20one\x20supported\x20Domain.','Invalid\x20','username','20700wYDLRu','filter','userDomain','Enterprise\x20routing\x20manifest\x20is\x20missing\x20required\x20Domain(s):\x20','kbServiceDomain','domain-config','default','https:','hash',':\x20expected\x20an\x20HTTPS\x20origin\x20without\x20credentials,\x20path,\x20query,\x20or\x20fragment.','protocol','\x20and\x20has\x20no\x20default.','Invalid\x20enterprise\x20routing\x20manifest:\x20domains\x20must\x20be\x20an\x20object.','runtimeDomain','24154luROlT','174rdNxOx','enterprise-v1','trim','3hMrYbg','apiDomain',':\x20\x22','platformDomain'];a89_0x4fa1=function(){return _0x19415c;};return a89_0x4fa1();}
|
package/lib/config/schema.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a90_0x188017=a90_0x26ca;(function(_0x4ec977,_0x45609a){const _0x441791=a90_0x26ca,_0x1e7ecd=_0x4ec977();while(!![]){try{const _0x3054eb=parseInt(_0x441791(0x121))/0x1+parseInt(_0x441791(0x11e))/0x2+parseInt(_0x441791(0x128))/0x3+parseInt(_0x441791(0x125))/0x4*(parseInt(_0x441791(0x111))/0x5)+-parseInt(_0x441791(0x117))/0x6+-parseInt(_0x441791(0x123))/0x7+parseInt(_0x441791(0x126))/0x8;if(_0x3054eb===_0x45609a)break;else _0x1e7ecd['push'](_0x1e7ecd['shift']());}catch(_0x11ed80){_0x1e7ecd['push'](_0x1e7ecd['shift']());}}}(a90_0x1acc,0x75c37));function a90_0x1acc(){const _0x1f4050=['fromEntries','690493hLaTcs','entries','1329552LZvvep','Native\x20Lovrabet\x20tool\x20availability\x20in\x20the\x20current\x20execution\x20host','124612NWVJAe','401800Ouytjr','Risk\x20level','856113oPdkdr','en-US','Target\x20environment','defaultValue','filter','Default\x20page\x20size','importable','format','Lovrabet\x20region','locale','70wFjmoO','Override\x20API\x20domain','enumValues','has','map','Access\x20key\x20(client-ak\x20auth)','5099850OnmorA','zh-CN','nativeToolAvailable','Override\x20KB\x20Service\x20domain','Override\x20SkillHub\x20domain','legacyCompatOnly','App\x20locale\x20(not\x20CLI\x20language;\x20reserved\x20for\x20later\x20app\x20use)','120078iyaygE','Override\x20runtime\x20domain'];a90_0x1acc=function(){return _0x1f4050;};return a90_0x1acc();}import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../constant/env.js';function a90_0x26ca(_0x25701b,_0x4bdc82){_0x25701b=_0x25701b-0x10e;const _0x1accb1=a90_0x1acc();let _0x26ca3d=_0x1accb1[_0x25701b];return _0x26ca3d;}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':a90_0x188017(0x10f),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':ENABLED_LOVRABET_REGION_VALUES,'defaultValue':DEFAULT_LOVRABET_REGION,'importable':!![]},'env':{'description':a90_0x188017(0x12a),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':RUNTIME_ENV_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES['env'],'importable':!![]},'format':{'description':'Default\x20output\x20format','topLevel':!![],'cliSettableTopLevel':!![],'enumValues':OUTPUT_FORMAT_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a90_0x188017(0x10e)],'importable':!![]},'pageSize':{'description':a90_0x188017(0x12d),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'apiDomain':{'description':a90_0x188017(0x112),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'userDomain':{'description':'Override\x20user\x20domain','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'runtimeDomain':{'description':a90_0x188017(0x11f),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'skillDomain':{'description':a90_0x188017(0x11b),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'kbServiceDomain':{'description':a90_0x188017(0x11a),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'accessKey':{'description':a90_0x188017(0x116),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'riskLevel':{'description':a90_0x188017(0x127),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES['riskLevel'],'importable':!![]},'nativeToolAvailable':{'description':a90_0x188017(0x124),'topLevel':!![],'defaultValue':![]},'locale':{'description':a90_0x188017(0x11d),'topLevel':!![],'cliSettableTopLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a90_0x188017(0x110)],'importable':!![]}};export const TOP_LEVEL_CONFIG_KEYS=new Set(Object[a90_0x188017(0x122)](CONFIG_FIELD_SCHEMAS)[a90_0x188017(0x12c)](([,_0x515058])=>_0x515058['cliSettableTopLevel'])['map'](([_0x3661a7])=>_0x3661a7));export const CLI_PROTECTED_CONFIG_KEYS=new Set(['riskLevel',a90_0x188017(0x119)]);export const CONFIG_ENUM_VALUES=Object[a90_0x188017(0x120)](Object[a90_0x188017(0x122)](CONFIG_FIELD_SCHEMAS)[a90_0x188017(0x12c)](([,_0x3402da])=>_0x3402da['enumValues'])[a90_0x188017(0x115)](([_0x25703e,_0x7c174])=>[_0x25703e,[..._0x7c174[a90_0x188017(0x113)]||[]]]));export const IMPORTABLE_RUNTIME_CONFIG_KEYS=Object[a90_0x188017(0x122)](CONFIG_FIELD_SCHEMAS)[a90_0x188017(0x12c)](([,_0x23e3fb])=>_0x23e3fb[a90_0x188017(0x12e)])['map'](([_0xde6ee4])=>_0xde6ee4);export function getConfigFieldSchema(_0x46f65e){return CONFIG_FIELD_SCHEMAS[_0x46f65e];}export function getConfigEnumValues(_0x2ae524){const _0x8b06ca=a90_0x188017;return getConfigFieldSchema(_0x2ae524)?.[_0x8b06ca(0x113)];}export function getConfigDefaultValue(_0xe475a){const _0x4750cf=a90_0x188017;return getConfigFieldSchema(_0xe475a)?.[_0x4750cf(0x12b)];}export function isTopLevelConfigKey(_0x5648e4){return TOP_LEVEL_CONFIG_KEYS['has'](_0x5648e4);}export function isCliProtectedConfigKey(_0xc58f71){const _0xc0d0d8=a90_0x188017;return CLI_PROTECTED_CONFIG_KEYS[_0xc0d0d8(0x114)](_0xc58f71);}const LOCALE_MAP={'zh':a90_0x188017(0x118),'zh-cn':a90_0x188017(0x118),'zh_cn':'zh-CN','en':a90_0x188017(0x129),'en-us':a90_0x188017(0x129),'en_us':a90_0x188017(0x129)};export function normalizeLocale(_0x43dc5b){if(!_0x43dc5b)return null;return LOCALE_MAP[_0x43dc5b['toLowerCase']()]??null;}export function isLegacyCompatConfigKey(_0x171458){const _0x4c126e=a90_0x188017;return getConfigFieldSchema(_0x171458)?.[_0x4c126e(0x11c)]===!![];}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function formatConfigKeyList(_0x43a6f6){return[..._0x43a6f6]['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(_0x1d04a2){return{'env':_0x1d04a2,'hasAccessKey':![],'format':null,'pageSize':null,'riskLevel':null,'locale':null};}
|
package/lib/constant/app.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a91_0x4def(){const _0x37e9ca=['Published','201970RtpWIS','709976dnpMcO','1669022WeokZE','1061908DomTRf','25uUSdNe','27InfbRL','8180053lxNBmT','UNPUBLISH','6cesSVX','1859205XrmIFI','18545760beZoEx'];a91_0x4def=function(){return _0x37e9ca;};return a91_0x4def();}const a91_0x1391f7=a91_0x57cf;(function(_0x2b5129,_0xe5ec6d){const _0x343537=a91_0x57cf,_0x5e4830=_0x2b5129();while(!![]){try{const _0x5ce834=parseInt(_0x343537(0x1ba))/0x1+parseInt(_0x343537(0x1bc))/0x2+-parseInt(_0x343537(0x1b7))/0x3+parseInt(_0x343537(0x1b1))/0x4*(parseInt(_0x343537(0x1b2))/0x5)+parseInt(_0x343537(0x1b6))/0x6*(parseInt(_0x343537(0x1b4))/0x7)+parseInt(_0x343537(0x1bb))/0x8*(-parseInt(_0x343537(0x1b3))/0x9)+-parseInt(_0x343537(0x1b8))/0xa;if(_0x5ce834===_0xe5ec6d)break;else _0x5e4830['push'](_0x5e4830['shift']());}catch(_0x2994ba){_0x5e4830['push'](_0x5e4830['shift']());}}}(a91_0x4def,0xc1555));function a91_0x57cf(_0x37a108,_0x2a92bf){_0x37a108=_0x37a108-0x1b1;const _0x4def3d=a91_0x4def();let _0x57cfa3=_0x4def3d[_0x37a108];return _0x57cfa3;}export const APP_PUBLISH_STATUS={'Published':'PUBLISHED','Unpublished':a91_0x1391f7(0x1b5)};export const RUNTIME_ACCESSIBLE_APP_STATUS=APP_PUBLISH_STATUS[a91_0x1391f7(0x1b9)];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a92_0x2a18(_0x547149,_0x482fab){_0x547149=_0x547149-0x1b4;const _0x1059db=a92_0x1059();let _0x2a18fb=_0x1059db[_0x547149];return _0x2a18fb;}const a92_0x36bab7=a92_0x2a18;(function(_0xa6e588,_0x5d490d){const _0x2cd399=a92_0x2a18,_0x4a12d3=_0xa6e588();while(!![]){try{const _0x39212e=-parseInt(_0x2cd399(0x1c0))/0x1*(-parseInt(_0x2cd399(0x1c1))/0x2)+parseInt(_0x2cd399(0x1b6))/0x3*(parseInt(_0x2cd399(0x1c2))/0x4)+parseInt(_0x2cd399(0x1b4))/0x5*(parseInt(_0x2cd399(0x1b7))/0x6)+-parseInt(_0x2cd399(0x1bf))/0x7*(-parseInt(_0x2cd399(0x1b9))/0x8)+parseInt(_0x2cd399(0x1bc))/0x9*(-parseInt(_0x2cd399(0x1ba))/0xa)+parseInt(_0x2cd399(0x1b8))/0xb*(parseInt(_0x2cd399(0x1bb))/0xc)+-parseInt(_0x2cd399(0x1be))/0xd*(parseInt(_0x2cd399(0x1c3))/0xe);if(_0x39212e===_0x5d490d)break;else _0x4a12d3['push'](_0x4a12d3['shift']());}catch(_0x110c29){_0x4a12d3['push'](_0x4a12d3['shift']());}}}(a92_0x1059,0xa3754));function a92_0x1059(){const _0x5dfee4=['64Picgou','10GDZPAd','2842104dzYiIg','4151034VLhRGI','client-ak','99749sxJmPR','916419qJukNa','97LsiGHd','12866viPkzX','4QhIIis','4564qHKDId','848770RNjIsv','ClientAk','3952119ewvHFB','6odsHGF','22ErJApD'];a92_0x1059=function(){return _0x5dfee4;};return a92_0x1059();}export const AUTH_MODE={'ClientAk':a92_0x36bab7(0x1bd)};export function isAuthMode(_0x3a4ec7){const _0x568367=a92_0x36bab7;return _0x3a4ec7===AUTH_MODE[_0x568367(0x1b5)];}
|
package/lib/constant/cli.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a93_0x1a38eb=a93_0x40a1;function a93_0x40a1(_0x2cb274,_0x4c1d7b){_0x2cb274=_0x2cb274-0xbc;const _0x15e98f=a93_0x15e9();let _0x40a1a0=_0x15e98f[_0x2cb274];return _0x40a1a0;}(function(_0x3db3f3,_0x14f53f){const _0x2abb4f=a93_0x40a1,_0x507dff=_0x3db3f3();while(!![]){try{const _0x27c6f9=-parseInt(_0x2abb4f(0xe2))/0x1*(parseInt(_0x2abb4f(0xd1))/0x2)+parseInt(_0x2abb4f(0xdc))/0x3*(parseInt(_0x2abb4f(0xcc))/0x4)+-parseInt(_0x2abb4f(0xce))/0x5*(-parseInt(_0x2abb4f(0xea))/0x6)+parseInt(_0x2abb4f(0xe6))/0x7*(-parseInt(_0x2abb4f(0xc4))/0x8)+-parseInt(_0x2abb4f(0xd5))/0x9+-parseInt(_0x2abb4f(0xe1))/0xa*(-parseInt(_0x2abb4f(0xe8))/0xb)+parseInt(_0x2abb4f(0xc1))/0xc;if(_0x27c6f9===_0x14f53f)break;else _0x507dff['push'](_0x507dff['shift']());}catch(_0x2a1994){_0x507dff['push'](_0x507dff['shift']());}}}(a93_0x15e9,0x8190e));import{PRODUCT_CONFIG}from'../constant/product.js';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';export const CLI_BIN_NAME=PRODUCT_CONFIG[a93_0x1a38eb(0xdd)];export const CLI_DISPLAY_NAME=PRODUCT_CONFIG[a93_0x1a38eb(0xdf)];export const NPM_PACKAGE_NAME=LOVRABET_NPM_PACKAGE_NAME;function a93_0x15e9(){const _0x5b4e3e=['nonInteractive','cliDisplayName','app','10OowxQP','38ugJtij','Use\x20global\x20config\x20scope','non-interactive','boolean','14dEZbwe','Clear\x20output','1745722XpIMwm','type','366DSjfwt','Skip\x20confirmation\x20for\x20high-risk\x20writes','Name\x20filter','Override\x20appcode','<name>','name','string','Output\x20format','dry-run','json\x20|\x20pretty\x20|\x20compress','9644736lAEOdr','Preview\x20operation\x20without\x20executing','format','1782824mIHnCw','verbose','map','yes','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','meowKey','Show\x20help','Record\x20ID','171540dtoihJ','params','10995UUBNvA','sqlcode','Environment','34360hsIEZQ','SQL\x20query\x20code','dryRun','Select\x20app\x20profile\x20by\x20name','995364TsAztu','JSON\x20params\x20for\x20execute\x20commands','appcode','<expr>','production\x20|\x20development\x20|\x20daily','Verbose\x20output','env','45xfElyr','cliBinName'];a93_0x15e9=function(){return _0x5b4e3e;};return a93_0x15e9();}export const GLOBAL_FLAGS=[{'name':a93_0x1a38eb(0xd7),'meowKey':a93_0x1a38eb(0xd7),'type':a93_0x1a38eb(0xbd),'description':a93_0x1a38eb(0xed),'hint':'<code>'},{'name':a93_0x1a38eb(0xe0),'meowKey':'app','type':'string','description':a93_0x1a38eb(0xd4),'hint':a93_0x1a38eb(0xee)},{'name':a93_0x1a38eb(0xdb),'meowKey':a93_0x1a38eb(0xdb),'type':a93_0x1a38eb(0xbd),'description':a93_0x1a38eb(0xd0),'hint':a93_0x1a38eb(0xd9)},{'name':'format','meowKey':a93_0x1a38eb(0xc3),'type':a93_0x1a38eb(0xbd),'description':a93_0x1a38eb(0xbe),'hint':a93_0x1a38eb(0xc0)},{'name':'jq','meowKey':'jq','type':a93_0x1a38eb(0xbd),'description':a93_0x1a38eb(0xc8),'hint':a93_0x1a38eb(0xd8)},{'name':'dry-run','meowKey':a93_0x1a38eb(0xd3),'type':a93_0x1a38eb(0xe5),'description':a93_0x1a38eb(0xc2)},{'name':a93_0x1a38eb(0xc7),'meowKey':a93_0x1a38eb(0xc7),'type':a93_0x1a38eb(0xe5),'description':a93_0x1a38eb(0xeb)},{'name':a93_0x1a38eb(0xe4),'meowKey':a93_0x1a38eb(0xde),'type':a93_0x1a38eb(0xe5),'description':'Force\x20non-interactive\x20mode\x20(CI)'},{'name':'global','meowKey':'global','type':'boolean','description':a93_0x1a38eb(0xe3)},{'name':'ci','meowKey':'ci','type':a93_0x1a38eb(0xe5),'description':'Alias\x20for\x20--non-interactive','hidden':!![]},{'name':'help','meowKey':'help','type':'boolean','description':a93_0x1a38eb(0xca)},{'name':'id','meowKey':'id','type':'string','description':a93_0x1a38eb(0xcb),'hidden':!![]},{'name':a93_0x1a38eb(0xbc),'meowKey':a93_0x1a38eb(0xbc),'type':'string','description':a93_0x1a38eb(0xec),'hidden':!![]},{'name':a93_0x1a38eb(0xcf),'meowKey':a93_0x1a38eb(0xcf),'type':a93_0x1a38eb(0xbd),'description':a93_0x1a38eb(0xd2),'hidden':!![]},{'name':a93_0x1a38eb(0xcd),'meowKey':a93_0x1a38eb(0xcd),'type':a93_0x1a38eb(0xbd),'description':a93_0x1a38eb(0xd6),'hidden':!![]},{'name':a93_0x1a38eb(0xc5),'meowKey':a93_0x1a38eb(0xc5),'type':a93_0x1a38eb(0xe5),'description':a93_0x1a38eb(0xda),'hidden':!![]},{'name':'clear','meowKey':'clear','type':a93_0x1a38eb(0xe5),'description':a93_0x1a38eb(0xe7),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set(['appcode',a93_0x1a38eb(0xe0),'env','format','jq',a93_0x1a38eb(0xbf),a93_0x1a38eb(0xc7),a93_0x1a38eb(0xe4),'ci']);export function buildMeowFlags(){const _0x55ea8a=a93_0x1a38eb;return Object['fromEntries'](GLOBAL_FLAGS[_0x55ea8a(0xc6)](_0x37763b=>[_0x37763b[_0x55ea8a(0xc9)],{'type':_0x37763b[_0x55ea8a(0xe9)]}]));}
|
package/lib/constant/defaults.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a94_0x4c6c(){const _0x544118=['513910RCNWlI','235242ThVrgp','1040809VXPevg','6zwNcGs','compress','569823rpeIWL','504420RKmPoT','6622820MCZUZJ','3075QyFNDG','24wHhJWL','2768EeJTIU','main','en-US','production'];a94_0x4c6c=function(){return _0x544118;};return a94_0x4c6c();}function a94_0x1d83(_0x3edefa,_0x21920b){_0x3edefa=_0x3edefa-0x19f;const _0x4c6c3c=a94_0x4c6c();let _0x1d83a4=_0x4c6c3c[_0x3edefa];return _0x1d83a4;}const a94_0x4a0bd8=a94_0x1d83;(function(_0x1e5024,_0xeba2f6){const _0xcf6540=a94_0x1d83,_0x4aac85=_0x1e5024();while(!![]){try{const _0x592ed9=parseInt(_0xcf6540(0x1a1))/0x1+parseInt(_0xcf6540(0x1a7))/0x2+-parseInt(_0xcf6540(0x1a6))/0x3+-parseInt(_0xcf6540(0x1ab))/0x4*(-parseInt(_0xcf6540(0x1a9))/0x5)+-parseInt(_0xcf6540(0x1a4))/0x6*(parseInt(_0xcf6540(0x1a3))/0x7)+parseInt(_0xcf6540(0x1aa))/0x8*(parseInt(_0xcf6540(0x1a2))/0x9)+-parseInt(_0xcf6540(0x1a8))/0xa;if(_0x592ed9===_0xeba2f6)break;else _0x4aac85['push'](_0x4aac85['shift']());}catch(_0x6e2917){_0x4aac85['push'](_0x4aac85['shift']());}}}(a94_0x4c6c,0x41b94));export const DEFAULT_APP_PROFILE_NAME=a94_0x4a0bd8(0x1ac);export const DEFAULT_CONFIG_VALUES={'env':a94_0x4a0bd8(0x1a0),'format':a94_0x4a0bd8(0x1a5),'locale':a94_0x4a0bd8(0x19f),'riskLevel':'write'};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a94_0x4a0bd8(0x1a5);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a95_0x5b047a=a95_0x311b;(function(_0x4c433d,_0x16d04b){const _0x2ba0fa=a95_0x311b,_0x3cb323=_0x4c433d();while(!![]){try{const _0x5e6a59=-parseInt(_0x2ba0fa(0x8b))/0x1+-parseInt(_0x2ba0fa(0x8a))/0x2+parseInt(_0x2ba0fa(0x87))/0x3+-parseInt(_0x2ba0fa(0x8d))/0x4+parseInt(_0x2ba0fa(0x91))/0x5+-parseInt(_0x2ba0fa(0x8c))/0x6*(-parseInt(_0x2ba0fa(0x8f))/0x7)+parseInt(_0x2ba0fa(0x88))/0x8;if(_0x5e6a59===_0x16d04b)break;else _0x3cb323['push'](_0x3cb323['shift']());}catch(_0x4dba46){_0x3cb323['push'](_0x3cb323['shift']());}}}(a95_0x5241,0xd08fa));import{PRODUCT_CONFIG}from'../constant/product.js';export const LOVRABET_NPM_PACKAGE_NAME=PRODUCT_CONFIG['npmPackageName'];function a95_0x311b(_0x33619e,_0x3e7887){_0x33619e=_0x33619e-0x87;const _0x524181=a95_0x5241();let _0x311b06=_0x524181[_0x33619e];return _0x311b06;}export const LOVRABET_SKILL_SOURCE=PRODUCT_CONFIG[a95_0x5b047a(0x8e)];export const NPM_REGISTRY_BASE_URL=PRODUCT_CONFIG['npmRegistryBaseUrl'];export const LOVRABET_CLI_CDN_BASE_URL=PRODUCT_CONFIG[a95_0x5b047a(0x89)];function a95_0x5241(){const _0x335d57=['9349080EpJWSA','cliCdnBaseUrl','3069288CCsYtJ','1122853gUQYDx','6YoMghw','1657836rEtXNW','skillSource','2109541Njltau','/dist/lovrabet-cli/config/index.json','4110410wreFPz','4902426gNOIKf'];a95_0x5241=function(){return _0x335d57;};return a95_0x5241();}export const LOVRABET_CLI_VERSION_POLICY_URL=LOVRABET_CLI_CDN_BASE_URL+a95_0x5b047a(0x90);
|
package/lib/constant/domain.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a96_0x9e23a8=a96_0x1e94;(function(_0x33f060,_0xf06a6a){const _0x37fd39=a96_0x1e94,_0x2ade04=_0x33f060();while(!![]){try{const _0x15953d=parseInt(_0x37fd39(0x1e9))/0x1*(-parseInt(_0x37fd39(0x1f4))/0x2)+-parseInt(_0x37fd39(0x1ed))/0x3+parseInt(_0x37fd39(0x1ee))/0x4*(parseInt(_0x37fd39(0x1f0))/0x5)+parseInt(_0x37fd39(0x1f7))/0x6*(-parseInt(_0x37fd39(0x1f6))/0x7)+parseInt(_0x37fd39(0x1ec))/0x8+parseInt(_0x37fd39(0x1ef))/0x9*(-parseInt(_0x37fd39(0x1f2))/0xa)+-parseInt(_0x37fd39(0x1f1))/0xb*(-parseInt(_0x37fd39(0x1e8))/0xc);if(_0x15953d===_0xf06a6a)break;else _0x2ade04['push'](_0x2ade04['shift']());}catch(_0x12a01d){_0x2ade04['push'](_0x2ade04['shift']());}}}(a96_0x2f5b,0x40756));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;function a96_0x2f5b(){const _0x2a837c=['10XUAVFc','runtime','1292wHSley','kbService','77oumuux','129822TEVcXD','production','serviceDomains','skillDomain','runtimeDomain','userDomain','region','12mJXyTg','331DaYsaO','daily','apiDomain','2754000zYDWwh','588771paiFOY','15364kTtEQo','476451fJjPpN','15kJZKep','6702058vvIpJa'];a96_0x2f5b=function(){return _0x2a837c;};return a96_0x2f5b();}export function initDomains(_0x1c9316){const _0x136f88=a96_0x1e94;customApiDomain=_0x1c9316?.[_0x136f88(0x1eb)],customUserDomain=_0x1c9316?.[_0x136f88(0x1e6)],customRuntimeDomain=_0x1c9316?.[_0x136f88(0x1e5)],customSkillDomain=_0x1c9316?.[_0x136f88(0x1fa)],customKbServiceDomain=_0x1c9316?.['kbServiceDomain'],allowOfficialKbServiceDefault=_0x1c9316?.['allowOfficialKbServiceDefault']??!![],activeRegion=_0x1c9316?.[_0x136f88(0x1e7)]??DEFAULT_LOVRABET_REGION;}const getActiveRegionDomains=()=>{const _0x3ea723=a96_0x1e94,_0x3dd79e=OFFICIAL_ROUTING_PROFILES[activeRegion][_0x3ea723(0x1f9)];return isProduction(getEnv())?_0x3dd79e[_0x3ea723(0x1f8)]:'daily'in _0x3dd79e?_0x3dd79e[_0x3ea723(0x1ea)]:_0x3dd79e[_0x3ea723(0x1f8)];};export const getUserDomain=()=>customUserDomain||getActiveRegionDomains()['user'];export const getApiDomain=()=>customApiDomain||getActiveRegionDomains()['api'];function a96_0x1e94(_0x1666d7,_0x19e257){_0x1666d7=_0x1666d7-0x1e5;const _0x2f5bef=a96_0x2f5b();let _0x1e94c6=_0x2f5bef[_0x1666d7];return _0x1e94c6;}export const getRuntimeDomain=()=>customRuntimeDomain||getActiveRegionDomains()[a96_0x9e23a8(0x1f3)];export const getSkillDomain=()=>customSkillDomain||getActiveRegionDomains()['skill'];export const getKbServiceDomain=()=>{const _0x1b85a7=a96_0x9e23a8;if(customKbServiceDomain)return customKbServiceDomain;if(!allowOfficialKbServiceDefault)return undefined;const _0x1e2dac=getActiveRegionDomains();return _0x1b85a7(0x1f5)in _0x1e2dac?_0x1e2dac[_0x1b85a7(0x1f5)]:undefined;};
|
package/lib/constant/env.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a97_0x5240ae=a97_0x2643;(function(_0x1a97a3,_0x5cca71){const _0x105278=a97_0x2643,_0x34879a=_0x1a97a3();while(!![]){try{const _0x3b77c0=-parseInt(_0x105278(0x7e))/0x1+parseInt(_0x105278(0x80))/0x2+parseInt(_0x105278(0x79))/0x3+-parseInt(_0x105278(0x76))/0x4*(parseInt(_0x105278(0x78))/0x5)+-parseInt(_0x105278(0x7d))/0x6+-parseInt(_0x105278(0x77))/0x7+-parseInt(_0x105278(0x7a))/0x8*(-parseInt(_0x105278(0x7c))/0x9);if(_0x3b77c0===_0x5cca71)break;else _0x34879a['push'](_0x34879a['shift']());}catch(_0x182e0e){_0x34879a['push'](_0x34879a['shift']());}}}(a97_0x57da,0x20f9b));import{productEnv}from'../constant/product.js';export const RUNTIME_ENV_VALUES=[a97_0x5240ae(0x81),'development',a97_0x5240ae(0x7b)];export function normalizeEnv(_0x1c9861){const _0x3b5995=a97_0x5240ae;return _0x1c9861==='online'?_0x3b5995(0x81):_0x1c9861;}export function isProduction(_0x4bf580){const _0x5c7e45=a97_0x5240ae;return normalizeEnv(_0x4bf580)===_0x5c7e45(0x81);}function a97_0x2643(_0x160fa9,_0x5441e6){_0x160fa9=_0x160fa9-0x75;const _0x57da9e=a97_0x57da();let _0x26439c=_0x57da9e[_0x160fa9];return _0x26439c;}export function isDaily(_0x2b7cf4){const _0x1abef3=a97_0x5240ae;return normalizeEnv(_0x2b7cf4)===_0x1abef3(0x7b);}export function isDev(_0x3537d2){const _0x3f82f3=a97_0x5240ae,_0x29a0d5=normalizeEnv(_0x3537d2);return _0x29a0d5==='development'||_0x29a0d5===_0x3f82f3(0x7f);}let env=normalizeEnv(productEnv(a97_0x5240ae(0x75))||a97_0x5240ae(0x81));export function getEnv(){return env;}export function initEnv(_0x33f26e){env=normalizeEnv(_0x33f26e);}function a97_0x57da(){const _0x3853fb=['production','ENV','379684EjDaOk','798035KJCpKd','5DKeDsS','301863VefCdR','8PCNBOM','daily','4752963vTojls','1193172SkUFTr','241337dVqhuB','dev','310928AgyorW'];a97_0x57da=function(){return _0x3853fb;};return a97_0x57da();}
|
package/lib/constant/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a98_0x475fc2=a98_0x115c;(function(_0x21cce6,_0x41e462){const _0x124251=a98_0x115c,_0x4b9dc5=_0x21cce6();while(!![]){try{const _0x5e01a2=-parseInt(_0x124251(0x66))/0x1+parseInt(_0x124251(0x6a))/0x2+-parseInt(_0x124251(0x6d))/0x3*(-parseInt(_0x124251(0x70))/0x4)+-parseInt(_0x124251(0x69))/0x5+-parseInt(_0x124251(0x6f))/0x6+parseInt(_0x124251(0x68))/0x7*(parseInt(_0x124251(0x6b))/0x8)+parseInt(_0x124251(0x6c))/0x9;if(_0x5e01a2===_0x41e462)break;else _0x4b9dc5['push'](_0x4b9dc5['shift']());}catch(_0x1bb9f0){_0x4b9dc5['push'](_0x4b9dc5['shift']());}}}(a98_0x53ab,0x69f5d));function a98_0x115c(_0x3911da,_0x224d67){_0x3911da=_0x3911da-0x66;const _0x53ab5a=a98_0x53ab();let _0x115c1d=_0x53ab5a[_0x3911da];return _0x115c1d;}function a98_0x53ab(){const _0x418e99=['26188RnNqSg','467729HvtoyO','compress','14182xlFyYF','2271525aOytww','841020xRGiMu','1048CilaDf','4418469srSPkB','105ENklbK','pretty','299730EampHZ'];a98_0x53ab=function(){return _0x418e99;};return a98_0x53ab();}export const OUTPUT_FORMAT_VALUES=['json',a98_0x475fc2(0x6e),a98_0x475fc2(0x67)];
|
package/lib/constant/product.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a99_0x59eb(_0x267907,_0x51d3d6){_0x267907=_0x267907-0xae;const _0x4fd211=a99_0x4fd2();let _0x59eb62=_0x4fd211[_0x267907];return _0x59eb62;}const a99_0xc38130=a99_0x59eb;(function(_0x3a4ba9,_0xb15292){const _0x494ce9=a99_0x59eb,_0xe80f61=_0x3a4ba9();while(!![]){try{const _0x49dffb=-parseInt(_0x494ce9(0xc0))/0x1+parseInt(_0x494ce9(0xbb))/0x2*(-parseInt(_0x494ce9(0xba))/0x3)+-parseInt(_0x494ce9(0xb4))/0x4*(parseInt(_0x494ce9(0xbd))/0x5)+parseInt(_0x494ce9(0xc4))/0x6*(parseInt(_0x494ce9(0xaf))/0x7)+parseInt(_0x494ce9(0xb1))/0x8+-parseInt(_0x494ce9(0xb7))/0x9+parseInt(_0x494ce9(0xc1))/0xa*(parseInt(_0x494ce9(0xb6))/0xb);if(_0x49dffb===_0xb15292)break;else _0xe80f61['push'](_0xe80f61['shift']());}catch(_0x1d0c35){_0xe80f61['push'](_0xe80f61['shift']());}}}(a99_0x4fd2,0x2fa5f));export const PRODUCT_CONFIG={'cliBinName':a99_0xc38130(0xb5),'cliDisplayName':a99_0xc38130(0xc2),'npmPackageName':'@lovrabet/lovrabet-cli','skillSource':a99_0xc38130(0xae),'internalSkillSource':'git@codeup.aliyun.com:yuntoo/open/lovrabet-runtime-cli.git','globalSkillName':a99_0xc38130(0xb5),'npmRegistryBaseUrl':a99_0xc38130(0xb9),'cliCdnBaseUrl':'https://g.lovrabet.com','envPrefix':a99_0xc38130(0xb0),'legacyEnvPrefixes':[a99_0xc38130(0xb3)],'configFileNames':[a99_0xc38130(0xc3)],'newConfigFileName':'.lovrabet.json','homeDirName':'.lovrabet','logFileName':a99_0xc38130(0xbc),'invokeSource':a99_0xc38130(0xb2),'userCenterDisplayName':a99_0xc38130(0xb8),'skipNpxSkillsEnvSuffix':a99_0xc38130(0xc5),'accessKeyCreatePath':a99_0xc38130(0xbe)};export function productEnvName(_0x5110ce){return PRODUCT_CONFIG['envPrefix']+'_'+_0x5110ce;}export function productEnvNames(_0x2a1cf0){const _0x12b141=a99_0xc38130;return[productEnvName(_0x2a1cf0),...PRODUCT_CONFIG[_0x12b141(0xbf)]['map'](_0x99e0d8=>_0x99e0d8+'_'+_0x2a1cf0)];}function a99_0x4fd2(){const _0x435956=['2265435fqwUQc','Lovrabet\x20User\x20Center','https://registry.npmjs.org','1087002yAdnNc','2DJOaKm','.lovrabet-runtime.log','55835dzALoh','/user/ak','legacyEnvPrefixes','334685KZCqVZ','10gIaMai','Lovrabet\x20Runtime\x20CLI','.lovrabet.json','942KUrCaI','SKIP_NPX_SKILLS','lovrabet/lovrabet-cli','14511mJwYXE','LOVRABET','2605600zehWFS','cli:lovrabet-runtime','RABETBASE','44VvgpHj','lovrabet','6771347jHthur'];a99_0x4fd2=function(){return _0x435956;};return a99_0x4fd2();}export function productEnv(_0x46ab1d){for(const _0x58ed3f of productEnvNames(_0x46ab1d)){const _0x40f966=process.env[_0x58ed3f];if(_0x40f966!==undefined)return _0x40f966;}return undefined;}
|
package/lib/constant/region.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x589755,_0x5c6afa){const _0x58673a=a100_0x5f18,_0x625069=_0x589755();while(!![]){try{const _0x503237=-parseInt(_0x58673a(0x6c))/0x1+parseInt(_0x58673a(0x6e))/0x2*(parseInt(_0x58673a(0x67))/0x3)+parseInt(_0x58673a(0x73))/0x4+parseInt(_0x58673a(0x68))/0x5+-parseInt(_0x58673a(0x69))/0x6+parseInt(_0x58673a(0x70))/0x7+-parseInt(_0x58673a(0x66))/0x8;if(_0x503237===_0x5c6afa)break;else _0x625069['push'](_0x625069['shift']());}catch(_0x4a44fa){_0x625069['push'](_0x625069['shift']());}}}(a100_0x2945,0x37369));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;export const DEFAULT_LOVRABET_REGION=DEFAULT_REGION;export function isLovrabetRegion(_0x46e8a4){const _0x366add=a100_0x5f18;return typeof _0x46e8a4===_0x366add(0x6d)&&LOVRABET_REGION_VALUES[_0x366add(0x6f)](_0x46e8a4);}export function isEnabledLovrabetRegion(_0x5722ae){const _0x1d0743=a100_0x5f18;return typeof _0x5722ae===_0x1d0743(0x6d)&&ENABLED_LOVRABET_REGION_VALUES[_0x1d0743(0x6f)](_0x5722ae);}function a100_0x5f18(_0x593bc5,_0x136619){_0x593bc5=_0x593bc5-0x65;const _0x2945de=a100_0x2945();let _0x5f1839=_0x2945de[_0x593bc5];return _0x5f1839;}export function normalizeLovrabetRegion(_0x4ffb77){const _0x2393f0=a100_0x5f18;if(_0x4ffb77===undefined||_0x4ffb77===null||_0x4ffb77==='')return DEFAULT_LOVRABET_REGION;if(typeof _0x4ffb77!==_0x2393f0(0x6d))throw CliErrors[_0x2393f0(0x65)](_0x2393f0(0x72)+typeof _0x4ffb77+'.','Run\x20`lovrabet\x20config\x20init`\x20to\x20restore\x20the\x20global\x20country/region\x20configuration.');const _0x370865=REGION_ALIASES[_0x4ffb77]??_0x4ffb77;if(isEnabledLovrabetRegion(_0x370865))return _0x370865;throw CliErrors[_0x2393f0(0x65)](_0x2393f0(0x6a)+_0x4ffb77+_0x2393f0(0x74),_0x2393f0(0x6b)+ENABLED_LOVRABET_REGION_VALUES['join'](',\x20')+_0x2393f0(0x71));}function a100_0x2945(){const _0x5c15e7=['8qhKzSw','includes','2411423ByQJdH','.\x20Run\x20`lovrabet\x20config\x20init`\x20to\x20repair\x20the\x20global\x20configuration.','Invalid\x20region\x20value:\x20expected\x20a\x20string,\x20received\x20','993868xQsZlZ','\x22\x20is\x20not\x20currently\x20available.','validation','5963376FumXRH','300549eHYvId','1414620FcmhOV','1745388MmIaHy','Region\x20\x22','Available\x20regions:\x20','14139aAxLyQ','string'];a100_0x2945=function(){return _0x5c15e7;};return a100_0x2945();}
|
package/lib/constant/risk.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a101_0x39e3(){const _0x444ac0=['613053RNAAbE','3196WjMLVc','434116KiGkuA','high-risk-write','read','4260USKyBV','2050rLwDHe','5298032VjWqgK','write','57087tWmvHF','1926947RJKDyq','96RSOhOp','21ukzaSW','18cSkvjp','525519igAEpQ'];a101_0x39e3=function(){return _0x444ac0;};return a101_0x39e3();}const a101_0x3f77ea=a101_0x8ce3;function a101_0x8ce3(_0x3511a1,_0x39c0ce){_0x3511a1=_0x3511a1-0x1c4;const _0x39e3d4=a101_0x39e3();let _0x8ce3b1=_0x39e3d4[_0x3511a1];return _0x8ce3b1;}(function(_0x297fcd,_0x17a463){const _0x311075=a101_0x8ce3,_0x1b8ecb=_0x297fcd();while(!![]){try{const _0x496116=-parseInt(_0x311075(0x1ce))/0x1+-parseInt(_0x311075(0x1d1))/0x2*(-parseInt(_0x311075(0x1cc))/0x3)+-parseInt(_0x311075(0x1d0))/0x4*(parseInt(_0x311075(0x1c5))/0x5)+-parseInt(_0x311075(0x1cd))/0x6*(parseInt(_0x311075(0x1cf))/0x7)+parseInt(_0x311075(0x1c7))/0x8+-parseInt(_0x311075(0x1c9))/0x9*(parseInt(_0x311075(0x1c6))/0xa)+parseInt(_0x311075(0x1ca))/0xb*(parseInt(_0x311075(0x1cb))/0xc);if(_0x496116===_0x17a463)break;else _0x1b8ecb['push'](_0x1b8ecb['shift']());}catch(_0x91a57d){_0x1b8ecb['push'](_0x1b8ecb['shift']());}}}(a101_0x39e3,0xc6abd));export const RISK_LEVEL_VALUES=[a101_0x3f77ea(0x1c4),a101_0x3f77ea(0x1c8),a101_0x3f77ea(0x1d2)];
|
package/lib/constant/url.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x5ec7cb,_0x481df6){const _0x5b6667=a102_0x5d49,_0x374335=_0x5ec7cb();while(!![]){try{const _0x1b9965=parseInt(_0x5b6667(0x1ed))/0x1+-parseInt(_0x5b6667(0x1eb))/0x2+parseInt(_0x5b6667(0x1ec))/0x3+parseInt(_0x5b6667(0x1ef))/0x4+-parseInt(_0x5b6667(0x1f4))/0x5+-parseInt(_0x5b6667(0x1f0))/0x6+parseInt(_0x5b6667(0x1f3))/0x7;if(_0x1b9965===_0x481df6)break;else _0x374335['push'](_0x374335['shift']());}catch(_0x29bc17){_0x374335['push'](_0x374335['shift']());}}}(a102_0x3ffc,0x7f34a));import{PRODUCT_CONFIG}from'../constant/product.js';import{OFFICIAL_ROUTING_PROFILES}from'../generated/official-routing.js';function a102_0x3ffc(){const _0x3f5650=['user','412220xtNWnO','5891730AhPgxt','production','accessKeyCreatePath','5292644fbDDAe','1746595hudvgh','1830578kUFofd','2889699UMjScN','945217aYGBRw'];a102_0x3ffc=function(){return _0x3f5650;};return a102_0x3ffc();}import{DEFAULT_LOVRABET_REGION}from'../constant/region.js';export function getUserAccessKeyCreateUrl(_0x56e934=DEFAULT_LOVRABET_REGION){const _0x164f6c=a102_0x5d49,_0x5cc71b=OFFICIAL_ROUTING_PROFILES[_0x56e934]['serviceDomains'][_0x164f6c(0x1f1)][_0x164f6c(0x1ee)];return''+_0x5cc71b+PRODUCT_CONFIG[_0x164f6c(0x1f2)];}function a102_0x5d49(_0x1a2d03,_0x5f1e15){_0x1a2d03=_0x1a2d03-0x1eb;const _0x3ffc7e=a102_0x3ffc();let _0x5d4932=_0x3ffc7e[_0x1a2d03];return _0x5d4932;}export const USER_ACCESS_KEY_CREATE_URL=getUserAccessKeyCreateUrl();
|