@lovrabet/lovrabet-cli 2.3.10-beta.1 → 2.3.10-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/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.d.ts +1 -1
- package/lib/commands/config/init.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/data/import-excel.js +1 -1
- package/lib/commands/data/index.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/sdk-doc.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/init.js +1 -1
- package/lib/commands/issue/context.js +1 -1
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/report.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.d.ts +1 -1
- package/lib/config/domain-config.js +1 -1
- package/lib/config/schema.d.ts +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.d.ts +6 -0
- 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-management-client.js +1 -1
- package/lib/core/kb-sdk-errors.js +1 -1
- package/lib/core/kb-search-client.js +1 -1
- package/lib/core/sdk-client.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/access-error.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/dryrun.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/preparse.js +1 -1
- package/lib/framework/rate-limit.js +1 -1
- package/lib/framework/raw-flags.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-confirmation.js +1 -1
- package/lib/framework/runner-error.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/service-order.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/generated/official-routing.d.ts +3 -1
- package/lib/generated/official-routing.js +1 -1
- package/lib/generated/routing-contract.d.ts +2 -2
- package/lib/generated/routing-contract.js +1 -1
- package/lib/help.js +1 -1
- package/lib/postinstall.js +1 -1
- package/lib/runtime/confirmation.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/services/dataset-import/auto-id-runner.js +1 -1
- package/lib/services/dataset-import/excel-reader.js +1 -1
- package/lib/services/dataset-import/image-bytes.js +1 -1
- package/lib/services/dataset-import/image-ooxml.js +1 -1
- package/lib/services/dataset-import/image-runner.js +1 -1
- package/lib/services/dataset-import/metadata.js +1 -1
- package/lib/services/dataset-import/preview.js +1 -1
- package/lib/services/dataset-import/runner.js +1 -1
- package/lib/skills/builtin-skill.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/runtime-skill-sync/constants.js +1 -1
- package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
- package/lib/skills/runtime-skill-sync/hashing.js +1 -1
- package/lib/skills/runtime-skill-sync/install-target.js +1 -1
- package/lib/skills/runtime-skill-sync/links.js +1 -1
- package/lib/skills/runtime-skill-sync/list-local.js +1 -1
- package/lib/skills/runtime-skill-sync/local-files.js +1 -1
- package/lib/skills/runtime-skill-sync/materialize.js +1 -1
- package/lib/skills/runtime-skill-sync/metadata.js +1 -1
- package/lib/skills/runtime-skill-sync/paths.js +1 -1
- package/lib/skills/runtime-skill-sync/push.js +1 -1
- package/lib/skills/runtime-skill-sync/scopes.js +1 -1
- package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
- package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
- package/lib/skills/runtime-skill-sync.js +1 -1
- package/lib/skills/skill-presence.js +1 -1
- package/lib/utils/access-key-redaction.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/lossless-json.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/positive-safe-integer.js +1 -1
- package/lib/utils/redaction.js +1 -1
- package/lib/utils/runtime-user-id.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/config/schema.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a94_0x17bbad=a94_0x2fa6;(function(_0x2ccc05,_0x280f67){const _0x4a2054=a94_0x2fa6,_0x1255dc=_0x2ccc05();while(!![]){try{const _0x30d27e=parseInt(_0x4a2054(0x1b9))/0x1+parseInt(_0x4a2054(0x1a7))/0x2+-parseInt(_0x4a2054(0x1b0))/0x3+-parseInt(_0x4a2054(0x1b2))/0x4*(-parseInt(_0x4a2054(0x1ae))/0x5)+-parseInt(_0x4a2054(0x1a6))/0x6*(-parseInt(_0x4a2054(0x1ad))/0x7)+-parseInt(_0x4a2054(0x1ab))/0x8+-parseInt(_0x4a2054(0x1a9))/0x9;if(_0x30d27e===_0x280f67)break;else _0x1255dc['push'](_0x1255dc['shift']());}catch(_0x384843){_0x1255dc['push'](_0x1255dc['shift']());}}}(a94_0x29ab,0xbb504));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../constant/env.js';import{OUTPUT_FORMAT_VALUES}from'../constant/output.js';import{DEFAULT_LOVRABET_REGION,ENABLED_LOVRABET_REGION_VALUES}from'../constant/region.js';export const CONFIG_FIELD_SCHEMAS={'routing':{'description':'Versioned\x20enterprise\x20routing\x20manifest','topLevel':!![]},'region':{'description':'Lovrabet\x20region','topLevel':!![],'cliSettableTopLevel':!![],'enumValues':ENABLED_LOVRABET_REGION_VALUES,'defaultValue':DEFAULT_LOVRABET_REGION,'importable':!![]},'env':{'description':'Target\x20environment','topLevel':!![],'cliSettableTopLevel':!![],'enumValues':RUNTIME_ENV_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a94_0x17bbad(0x1ba)],'importable':!![]},'format':{'description':'Default\x20output\x20format','topLevel':!![],'cliSettableTopLevel':!![],'enumValues':OUTPUT_FORMAT_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a94_0x17bbad(0x1a5)],'importable':!![]},'pageSize':{'description':a94_0x17bbad(0x1af),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'apiDomain':{'description':'Override\x20API\x20domain','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'userDomain':{'description':a94_0x17bbad(0x1bc),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'runtimeDomain':{'description':a94_0x17bbad(0x1b7),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'skillDomain':{'description':a94_0x17bbad(0x1ac),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'kbServiceDomain':{'description':a94_0x17bbad(0x1a2),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'harnessDomain':{'description':a94_0x17bbad(0x19e),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'accessKey':{'description':'Access\x20key\x20(client-ak\x20auth)','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'riskLevel':{'description':'Risk\x20level','topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a94_0x17bbad(0x1aa)],'importable':!![]},'nativeToolAvailable':{'description':'Native\x20Lovrabet\x20tool\x20availability\x20in\x20the\x20current\x20execution\x20host','topLevel':!![],'defaultValue':![]},'locale':{'description':a94_0x17bbad(0x1a4),'topLevel':!![],'cliSettableTopLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a94_0x17bbad(0x1b6)],'importable':!![]}};export const TOP_LEVEL_CONFIG_KEYS=new Set(Object['entries'](CONFIG_FIELD_SCHEMAS)['filter'](([,_0x49d3b5])=>_0x49d3b5['cliSettableTopLevel'])[a94_0x17bbad(0x19f)](([_0x15c10c])=>_0x15c10c));function a94_0x2fa6(_0x45f8c0,_0x18ce60){_0x45f8c0=_0x45f8c0-0x19e;const _0x29ab61=a94_0x29ab();let _0x2fa66a=_0x29ab61[_0x45f8c0];return _0x2fa66a;}export const CLI_PROTECTED_CONFIG_KEYS=new Set([a94_0x17bbad(0x1aa),'nativeToolAvailable']);export const CONFIG_ENUM_VALUES=Object[a94_0x17bbad(0x1b5)](Object[a94_0x17bbad(0x1a3)](CONFIG_FIELD_SCHEMAS)[a94_0x17bbad(0x1b4)](([,_0x51dfc4])=>_0x51dfc4['enumValues'])[a94_0x17bbad(0x19f)](([_0x5f3763,_0x425c6c])=>[_0x5f3763,[..._0x425c6c[a94_0x17bbad(0x1be)]||[]]]));function a94_0x29ab(){const _0x424d5b=['importable','filter','fromEntries','locale','Override\x20runtime\x20domain','has','1448343Ejizah','env','Config\x20key.\x20Top-level:\x20','Override\x20user\x20domain','en-US','enumValues','Override\x20Harness\x20domain','map',';\x20local\x20alias:\x20apps.<alias>.appcode','toLowerCase','Override\x20KB\x20Service\x20domain','entries','App\x20locale\x20(not\x20CLI\x20language;\x20reserved\x20for\x20later\x20app\x20use)','format','234rdtAci','111422wFoOVy','legacyCompatOnly','5098833FBUnce','riskLevel','1123176jDHbUo','Override\x20SkillHub\x20domain','91077lGtYsv','225ESuCnt','Default\x20page\x20size','2257644xPFHoX','zh-CN','19132ChBZAa'];a94_0x29ab=function(){return _0x424d5b;};return a94_0x29ab();}export const IMPORTABLE_RUNTIME_CONFIG_KEYS=Object[a94_0x17bbad(0x1a3)](CONFIG_FIELD_SCHEMAS)[a94_0x17bbad(0x1b4)](([,_0x339ca6])=>_0x339ca6[a94_0x17bbad(0x1b3)])['map'](([_0x52ffac])=>_0x52ffac);export function getConfigFieldSchema(_0x2b62ee){return CONFIG_FIELD_SCHEMAS[_0x2b62ee];}export function getConfigEnumValues(_0x134971){const _0x2a1dc4=a94_0x17bbad;return getConfigFieldSchema(_0x134971)?.[_0x2a1dc4(0x1be)];}export function getConfigDefaultValue(_0xbb0b51){return getConfigFieldSchema(_0xbb0b51)?.['defaultValue'];}export function isTopLevelConfigKey(_0x41125d){return TOP_LEVEL_CONFIG_KEYS['has'](_0x41125d);}export function isCliProtectedConfigKey(_0xb5f306){const _0x160f04=a94_0x17bbad;return CLI_PROTECTED_CONFIG_KEYS[_0x160f04(0x1b8)](_0xb5f306);}const LOCALE_MAP={'zh':'zh-CN','zh-cn':a94_0x17bbad(0x1b1),'zh_cn':a94_0x17bbad(0x1b1),'en':a94_0x17bbad(0x1bd),'en-us':'en-US','en_us':a94_0x17bbad(0x1bd)};export function normalizeLocale(_0x38052d){const _0x555a85=a94_0x17bbad;if(!_0x38052d)return null;return LOCALE_MAP[_0x38052d[_0x555a85(0x1a1)]()]??null;}export function isLegacyCompatConfigKey(_0x5e1517){const _0x1023b5=a94_0x17bbad;return getConfigFieldSchema(_0x5e1517)?.[_0x1023b5(0x1a8)]===!![];}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function formatConfigKeyList(_0xcd489b){return[..._0xcd489b]['join'](',\x20');}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x17df22=a94_0x17bbad;return _0x17df22(0x1bb)+getTopLevelConfigKeySummary()+_0x17df22(0x1a0);}export function buildAppProfileListFields(_0x5aedbb){return{'env':_0x5aedbb,'hasAccessKey':![],'format':null,'pageSize':null,'riskLevel':null,'locale':null};}
|
package/lib/constant/app.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a95_0xc0bc(){const _0x38a838=['43879FolJMP','116XEYLgk','1vXDHLj','81SgZqYj','2248716OYdEIh','846352ZNrZJr','Published','47555SoTbOn','83139IqAiFG','11325310nzRpIL','1129466vgeiNM','11904DAiCBe','498qroVOm','UNPUBLISH'];a95_0xc0bc=function(){return _0x38a838;};return a95_0xc0bc();}const a95_0x55527f=a95_0x7964;(function(_0x4b93d4,_0x2445d9){const _0x4eb7f2=a95_0x7964,_0x3a81a8=_0x4b93d4();while(!![]){try{const _0x1c0008=-parseInt(_0x4eb7f2(0x136))/0x1*(-parseInt(_0x4eb7f2(0x13e))/0x2)+-parseInt(_0x4eb7f2(0x138))/0x3+-parseInt(_0x4eb7f2(0x135))/0x4*(-parseInt(_0x4eb7f2(0x13b))/0x5)+-parseInt(_0x4eb7f2(0x132))/0x6*(parseInt(_0x4eb7f2(0x13c))/0x7)+parseInt(_0x4eb7f2(0x139))/0x8*(-parseInt(_0x4eb7f2(0x137))/0x9)+-parseInt(_0x4eb7f2(0x13d))/0xa+parseInt(_0x4eb7f2(0x134))/0xb*(parseInt(_0x4eb7f2(0x13f))/0xc);if(_0x1c0008===_0x2445d9)break;else _0x3a81a8['push'](_0x3a81a8['shift']());}catch(_0x1775ee){_0x3a81a8['push'](_0x3a81a8['shift']());}}}(a95_0xc0bc,0xeeac0));export const APP_PUBLISH_STATUS={'Published':'PUBLISHED','Unpublished':a95_0x55527f(0x133)};function a95_0x7964(_0x555b63,_0x1896c1){_0x555b63=_0x555b63-0x132;const _0xc0bc3b=a95_0xc0bc();let _0x79641b=_0xc0bc3b[_0x555b63];return _0x79641b;}export const RUNTIME_ACCESSIBLE_APP_STATUS=APP_PUBLISH_STATUS[a95_0x55527f(0x13a)];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a96_0xc5ff07=a96_0x59f4;function a96_0x59f4(_0x5b74b0,_0x16d9af){_0x5b74b0=_0x5b74b0-0xc8;const _0x4f0a34=a96_0x4f0a();let _0x59f40b=_0x4f0a34[_0x5b74b0];return _0x59f40b;}function a96_0x4f0a(){const _0x51bcff=['2583216AHJEtm','10aRQlxv','500226LQdylU','4866984xTpche','1188725QpEjIt','ClientAk','8dOevrG','5968098XLOrLb','4905922ajNnvq','client-ak','67931GLVDSx'];a96_0x4f0a=function(){return _0x51bcff;};return a96_0x4f0a();}(function(_0x1a8266,_0x503f5d){const _0x7e2edd=a96_0x59f4,_0x327466=_0x1a8266();while(!![]){try{const _0x2b56e8=parseInt(_0x7e2edd(0xcd))/0x1*(-parseInt(_0x7e2edd(0xcf))/0x2)+parseInt(_0x7e2edd(0xd0))/0x3*(-parseInt(_0x7e2edd(0xc9))/0x4)+-parseInt(_0x7e2edd(0xd2))/0x5+parseInt(_0x7e2edd(0xd1))/0x6+parseInt(_0x7e2edd(0xcb))/0x7+-parseInt(_0x7e2edd(0xce))/0x8+parseInt(_0x7e2edd(0xca))/0x9;if(_0x2b56e8===_0x503f5d)break;else _0x327466['push'](_0x327466['shift']());}catch(_0x34f30b){_0x327466['push'](_0x327466['shift']());}}}(a96_0x4f0a,0xe5d22));export const AUTH_MODE={'ClientAk':a96_0xc5ff07(0xcc)};export function isAuthMode(_0x161825){const _0x29acc3=a96_0xc5ff07;return _0x161825===AUTH_MODE[_0x29acc3(0xc8)];}
|
package/lib/constant/cli.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a97_0x5ded(_0x5c2a44,_0x42ba88){_0x5c2a44=_0x5c2a44-0xa9;const _0x231c37=a97_0x231c();let _0x5dedc1=_0x231c37[_0x5c2a44];return _0x5dedc1;}const a97_0x3499ba=a97_0x5ded;(function(_0x5eae76,_0x40f27f){const _0x2a9930=a97_0x5ded,_0xc744e7=_0x5eae76();while(!![]){try{const _0x1e5562=-parseInt(_0x2a9930(0xcd))/0x1+parseInt(_0x2a9930(0xd3))/0x2*(-parseInt(_0x2a9930(0xd1))/0x3)+-parseInt(_0x2a9930(0xb8))/0x4+parseInt(_0x2a9930(0xbd))/0x5*(parseInt(_0x2a9930(0xc6))/0x6)+-parseInt(_0x2a9930(0xb9))/0x7+-parseInt(_0x2a9930(0xaa))/0x8*(-parseInt(_0x2a9930(0xcb))/0x9)+parseInt(_0x2a9930(0xad))/0xa;if(_0x1e5562===_0x40f27f)break;else _0xc744e7['push'](_0xc744e7['shift']());}catch(_0x2bf9b2){_0xc744e7['push'](_0xc744e7['shift']());}}}(a97_0x231c,0x59bb0));import{PRODUCT_CONFIG}from'../constant/product.js';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';export const CLI_BIN_NAME=PRODUCT_CONFIG[a97_0x3499ba(0xd4)];export const CLI_DISPLAY_NAME=PRODUCT_CONFIG[a97_0x3499ba(0xbe)];function a97_0x231c(){const _0x496294=['name','21151700rNYsRk','clear','appcode','help','Environment','Preview\x20operation\x20without\x20executing','meowKey','json\x20|\x20pretty\x20|\x20compress','sqlcode','format','params','2887256AJxxrO','1718248DjOfas','non-interactive','global','yes','970wtSlUx','cliDisplayName','<code>','string','<expr>','map','Use\x20global\x20config\x20scope','production\x20|\x20development\x20|\x20daily','Output\x20format','3270siuEnF','boolean','env','type','dryRun','7173dhPQnE','Select\x20app\x20profile\x20by\x20name','541547ANyvmt','app','SQL\x20query\x20code','fromEntries','2078484pvQCmT','dry-run','2cvUXCi','cliBinName','Clear\x20output','3496cChqpz','Override\x20appcode'];a97_0x231c=function(){return _0x496294;};return a97_0x231c();}export const NPM_PACKAGE_NAME=LOVRABET_NPM_PACKAGE_NAME;export const GLOBAL_FLAGS=[{'name':'appcode','meowKey':a97_0x3499ba(0xaf),'type':a97_0x3499ba(0xc0),'description':a97_0x3499ba(0xab),'hint':a97_0x3499ba(0xbf)},{'name':a97_0x3499ba(0xce),'meowKey':a97_0x3499ba(0xce),'type':a97_0x3499ba(0xc0),'description':a97_0x3499ba(0xcc),'hint':'<name>'},{'name':a97_0x3499ba(0xc8),'meowKey':a97_0x3499ba(0xc8),'type':a97_0x3499ba(0xc0),'description':a97_0x3499ba(0xb1),'hint':a97_0x3499ba(0xc4)},{'name':a97_0x3499ba(0xb6),'meowKey':a97_0x3499ba(0xb6),'type':'string','description':a97_0x3499ba(0xc5),'hint':a97_0x3499ba(0xb4)},{'name':'jq','meowKey':'jq','type':a97_0x3499ba(0xc0),'description':'Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','hint':a97_0x3499ba(0xc1)},{'name':a97_0x3499ba(0xd2),'meowKey':a97_0x3499ba(0xca),'type':'boolean','description':a97_0x3499ba(0xb2)},{'name':a97_0x3499ba(0xbc),'meowKey':a97_0x3499ba(0xbc),'type':a97_0x3499ba(0xc7),'description':'Skip\x20confirmation\x20for\x20high-risk\x20writes'},{'name':a97_0x3499ba(0xba),'meowKey':'nonInteractive','type':'boolean','description':'Force\x20non-interactive\x20mode\x20(CI)'},{'name':a97_0x3499ba(0xbb),'meowKey':a97_0x3499ba(0xbb),'type':a97_0x3499ba(0xc7),'description':a97_0x3499ba(0xc3)},{'name':'ci','meowKey':'ci','type':a97_0x3499ba(0xc7),'description':'Alias\x20for\x20--non-interactive','hidden':!![]},{'name':a97_0x3499ba(0xb0),'meowKey':a97_0x3499ba(0xb0),'type':a97_0x3499ba(0xc7),'description':'Show\x20help'},{'name':'id','meowKey':'id','type':a97_0x3499ba(0xc0),'description':'Record\x20ID','hidden':!![]},{'name':a97_0x3499ba(0xac),'meowKey':a97_0x3499ba(0xac),'type':a97_0x3499ba(0xc0),'description':'Name\x20filter','hidden':!![]},{'name':a97_0x3499ba(0xb5),'meowKey':a97_0x3499ba(0xb5),'type':a97_0x3499ba(0xc0),'description':a97_0x3499ba(0xcf),'hidden':!![]},{'name':a97_0x3499ba(0xb7),'meowKey':'params','type':a97_0x3499ba(0xc0),'description':'JSON\x20params\x20for\x20execute\x20commands','hidden':!![]},{'name':'verbose','meowKey':'verbose','type':a97_0x3499ba(0xc7),'description':'Verbose\x20output','hidden':!![]},{'name':a97_0x3499ba(0xae),'meowKey':'clear','type':a97_0x3499ba(0xc7),'description':a97_0x3499ba(0xa9),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a97_0x3499ba(0xaf),'app','env',a97_0x3499ba(0xb6),'jq',a97_0x3499ba(0xd2),a97_0x3499ba(0xbc),a97_0x3499ba(0xba),'ci']);export function buildMeowFlags(){const _0x20885e=a97_0x3499ba;return Object[_0x20885e(0xd0)](GLOBAL_FLAGS[_0x20885e(0xc2)](_0x10d135=>[_0x10d135[_0x20885e(0xb3)],{'type':_0x10d135[_0x20885e(0xc9)]}]));}
|
package/lib/constant/defaults.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a98_0x1b0161=a98_0x7c4c;function a98_0x7c4c(_0x11b09f,_0x37d788){_0x11b09f=_0x11b09f-0x9e;const _0x18d833=a98_0x18d8();let _0x7c4c2a=_0x18d833[_0x11b09f];return _0x7c4c2a;}(function(_0x4372f5,_0x381f5f){const _0x4676b5=a98_0x7c4c,_0x1230a5=_0x4372f5();while(!![]){try{const _0x187e60=parseInt(_0x4676b5(0xa9))/0x1+-parseInt(_0x4676b5(0xa6))/0x2*(parseInt(_0x4676b5(0x9f))/0x3)+-parseInt(_0x4676b5(0xa4))/0x4*(-parseInt(_0x4676b5(0xa7))/0x5)+-parseInt(_0x4676b5(0xa0))/0x6*(parseInt(_0x4676b5(0xa2))/0x7)+-parseInt(_0x4676b5(0xa5))/0x8+parseInt(_0x4676b5(0xa8))/0x9+parseInt(_0x4676b5(0xaa))/0xa;if(_0x187e60===_0x381f5f)break;else _0x1230a5['push'](_0x1230a5['shift']());}catch(_0x5af1f4){_0x1230a5['push'](_0x1230a5['shift']());}}}(a98_0x18d8,0x9aa22));export const DEFAULT_APP_PROFILE_NAME='main';export const DEFAULT_CONFIG_VALUES={'env':a98_0x1b0161(0xa3),'format':a98_0x1b0161(0xab),'locale':a98_0x1b0161(0xa1),'riskLevel':a98_0x1b0161(0x9e)};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a98_0x1b0161(0xab);function a98_0x18d8(){const _0xbd616f=['write','417dhwUwX','24VnwwUd','en-US','66871DJTwxu','production','44972deSQXv','6138592GsORRU','6986HjyFdq','310NkWpAS','3959658qOIpMm','666532WoKjhs','1208810IpAclv','compress'];a98_0x18d8=function(){return _0xbd616f;};return a98_0x18d8();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a99_0x22f001=a99_0x119a;(function(_0x5d3000,_0x428919){const _0x203842=a99_0x119a,_0x6dbc70=_0x5d3000();while(!![]){try{const _0x325032=parseInt(_0x203842(0x119))/0x1+-parseInt(_0x203842(0x118))/0x2+-parseInt(_0x203842(0x11b))/0x3*(-parseInt(_0x203842(0x111))/0x4)+-parseInt(_0x203842(0x10f))/0x5+-parseInt(_0x203842(0x117))/0x6*(-parseInt(_0x203842(0x11c))/0x7)+-parseInt(_0x203842(0x112))/0x8*(parseInt(_0x203842(0x11a))/0x9)+-parseInt(_0x203842(0x114))/0xa*(-parseInt(_0x203842(0x110))/0xb);if(_0x325032===_0x428919)break;else _0x6dbc70['push'](_0x6dbc70['shift']());}catch(_0x225579){_0x6dbc70['push'](_0x6dbc70['shift']());}}}(a99_0x3b30,0x2aba3));import{PRODUCT_CONFIG}from'../constant/product.js';export const LOVRABET_NPM_PACKAGE_NAME=PRODUCT_CONFIG[a99_0x22f001(0x113)];export const LOVRABET_SKILL_SOURCE=PRODUCT_CONFIG[a99_0x22f001(0x115)];function a99_0x3b30(){const _0x22c36c=['/dist/lovrabet-cli/config/index.json','984155WOzBKx','209jCKLpO','4LSmpPf','9128LGEBXp','npmPackageName','107780CyBSXN','skillSource','npmRegistryBaseUrl','90UxGLIq','195850HZXLgs','227476gmaYyz','1557ecXCDI','631041SlrHJd','11459bIRDec'];a99_0x3b30=function(){return _0x22c36c;};return a99_0x3b30();}function a99_0x119a(_0x4b9a29,_0x3a8b6f){_0x4b9a29=_0x4b9a29-0x10f;const _0x3b30d4=a99_0x3b30();let _0x119a09=_0x3b30d4[_0x4b9a29];return _0x119a09;}export const NPM_REGISTRY_BASE_URL=PRODUCT_CONFIG[a99_0x22f001(0x116)];export const LOVRABET_CLI_CDN_BASE_URL=PRODUCT_CONFIG['cliCdnBaseUrl'];export const LOVRABET_CLI_VERSION_POLICY_URL=LOVRABET_CLI_CDN_BASE_URL+a99_0x22f001(0x11d);
|
package/lib/constant/domain.d.ts
CHANGED
|
@@ -32,6 +32,8 @@ export declare function initDomains(domains?: {
|
|
|
32
32
|
skillDomain?: string;
|
|
33
33
|
kbServiceDomain?: string;
|
|
34
34
|
allowOfficialKbServiceDefault?: boolean;
|
|
35
|
+
harnessDomain?: string;
|
|
36
|
+
allowOfficialHarnessDefault?: boolean;
|
|
35
37
|
region?: LovrabetRegion;
|
|
36
38
|
}): void;
|
|
37
39
|
/**
|
|
@@ -63,3 +65,7 @@ export declare const getRuntimeDomain: () => string;
|
|
|
63
65
|
export declare const getSkillDomain: () => string;
|
|
64
66
|
/** Returns the independently routed KB Service origin, when configured. */
|
|
65
67
|
export declare const getKbServiceDomain: () => string | undefined;
|
|
68
|
+
/** Returns the independent Harness origin; missing configuration only disables Harness capabilities. */
|
|
69
|
+
export declare const getHarnessDomain: () => string | undefined;
|
|
70
|
+
/** Requires Harness routing before app discovery or request dispatch can perform network I/O. */
|
|
71
|
+
export declare function requireHarnessDomain(): string;
|
package/lib/constant/domain.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a100_0x371ce5=a100_0x1df3;(function(_0x4a3254,_0x56d906){const _0x879fe2=a100_0x1df3,_0x4dc5d9=_0x4a3254();while(!![]){try{const _0x1f8e2b=parseInt(_0x879fe2(0xce))/0x1*(-parseInt(_0x879fe2(0xde))/0x2)+parseInt(_0x879fe2(0xcf))/0x3*(-parseInt(_0x879fe2(0xd0))/0x4)+parseInt(_0x879fe2(0xdb))/0x5+-parseInt(_0x879fe2(0xe0))/0x6+-parseInt(_0x879fe2(0xd7))/0x7*(parseInt(_0x879fe2(0xd4))/0x8)+-parseInt(_0x879fe2(0xd2))/0x9*(parseInt(_0x879fe2(0xc9))/0xa)+parseInt(_0x879fe2(0xd5))/0xb*(parseInt(_0x879fe2(0xe1))/0xc);if(_0x1f8e2b===_0x56d906)break;else _0x4dc5d9['push'](_0x4dc5d9['shift']());}catch(_0x207ae2){_0x4dc5d9['push'](_0x4dc5d9['shift']());}}}(a100_0x12e4,0xcf02d));function a100_0x12e4(){const _0x35362b=['skill','2643965HZvOzh','skillDomain','harness','2WlovQc','Harness\x20is\x20not\x20configured.','1649082taUNRk','22212UMjEVd','kbService','10tLxjgV','userDomain','runtime','allowOfficialKbServiceDefault','runtimeDomain','621472XJSSAa','153kFKMKy','114428hwqBTs','validation','12756339hsLJMU','apiDomain','4478336bzecTI','27643uGBuCk','serviceDomains','7hGzndp','production','api'];a100_0x12e4=function(){return _0x35362b;};return a100_0x12e4();}import{CliErrors}from'../errors.js';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=!![],customHarnessDomain,allowOfficialHarnessDefault=!![],activeRegion=DEFAULT_LOVRABET_REGION;export function initDomains(_0x605212){const _0x12d47b=a100_0x1df3;customApiDomain=_0x605212?.[_0x12d47b(0xd3)],customUserDomain=_0x605212?.[_0x12d47b(0xca)],customRuntimeDomain=_0x605212?.[_0x12d47b(0xcd)],customSkillDomain=_0x605212?.[_0x12d47b(0xdc)],customKbServiceDomain=_0x605212?.['kbServiceDomain'],allowOfficialKbServiceDefault=_0x605212?.[_0x12d47b(0xcc)]??!![],customHarnessDomain=_0x605212?.['harnessDomain'],allowOfficialHarnessDefault=_0x605212?.['allowOfficialHarnessDefault']??!![],activeRegion=_0x605212?.['region']??DEFAULT_LOVRABET_REGION;}const getActiveRegionDomains=()=>{const _0x4c28b1=a100_0x1df3,_0x10eb83=OFFICIAL_ROUTING_PROFILES[activeRegion][_0x4c28b1(0xd6)];return isProduction(getEnv())?_0x10eb83['production']:'daily'in _0x10eb83?_0x10eb83['daily']:_0x10eb83[_0x4c28b1(0xd8)];};function a100_0x1df3(_0x265816,_0x1b3fb7){_0x265816=_0x265816-0xc9;const _0x12e49e=a100_0x12e4();let _0x1df356=_0x12e49e[_0x265816];return _0x1df356;}export const getUserDomain=()=>customUserDomain||getActiveRegionDomains()['user'];export const getApiDomain=()=>customApiDomain||getActiveRegionDomains()[a100_0x371ce5(0xd9)];export const getRuntimeDomain=()=>customRuntimeDomain||getActiveRegionDomains()[a100_0x371ce5(0xcb)];export const getSkillDomain=()=>customSkillDomain||getActiveRegionDomains()[a100_0x371ce5(0xda)];export const getKbServiceDomain=()=>{const _0x1d0af2=a100_0x371ce5;if(customKbServiceDomain)return customKbServiceDomain;if(!allowOfficialKbServiceDefault)return undefined;const _0xac8835=getActiveRegionDomains();return _0x1d0af2(0xe2)in _0xac8835?_0xac8835[_0x1d0af2(0xe2)]:undefined;};export const getHarnessDomain=()=>{const _0x5496de=a100_0x371ce5;if(customHarnessDomain)return customHarnessDomain;if(!allowOfficialHarnessDefault)return undefined;const _0x426ecc=getActiveRegionDomains();return _0x5496de(0xdd)in _0x426ecc?_0x426ecc[_0x5496de(0xdd)]:undefined;};export function requireHarnessDomain(){const _0x4e1893=a100_0x371ce5,_0x1b1828=getHarnessDomain();if(!_0x1b1828)throw CliErrors[_0x4e1893(0xd1)](_0x4e1893(0xdf),'Configure\x20a\x20trusted\x20harnessDomain\x20HTTPS\x20origin\x20in\x20the\x20connection\x20settings.');return _0x1b1828;}
|
package/lib/constant/env.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a101_0x359157=a101_0x2a7c;function a101_0x3910(){const _0x138681=['3523491wbziBy','dev','32nJfoRI','36055LQBsoA','70872XKjLPd','development','online','production','761085UcaJkG','2513595tsLxZU','26012egtJzr','60pzUPUP','1729328VPzIed','daily'];a101_0x3910=function(){return _0x138681;};return a101_0x3910();}(function(_0x33bbc7,_0x1c319b){const _0x16678a=a101_0x2a7c,_0x2a7122=_0x33bbc7();while(!![]){try{const _0x4300f0=parseInt(_0x16678a(0x1c5))/0x1*(parseInt(_0x16678a(0x1bf))/0x2)+-parseInt(_0x16678a(0x1cb))/0x3+parseInt(_0x16678a(0x1c0))/0x4*(-parseInt(_0x16678a(0x1c6))/0x5)+-parseInt(_0x16678a(0x1c7))/0x6+-parseInt(_0x16678a(0x1cc))/0x7+parseInt(_0x16678a(0x1c1))/0x8+parseInt(_0x16678a(0x1c3))/0x9;if(_0x4300f0===_0x1c319b)break;else _0x2a7122['push'](_0x2a7122['shift']());}catch(_0xffd608){_0x2a7122['push'](_0x2a7122['shift']());}}}(a101_0x3910,0x4711c));import{productEnv}from'../constant/product.js';export const RUNTIME_ENV_VALUES=[a101_0x359157(0x1ca),a101_0x359157(0x1c8),a101_0x359157(0x1c2)];export function normalizeEnv(_0x14ff9b){const _0x3c4ab9=a101_0x359157;return _0x14ff9b===_0x3c4ab9(0x1c9)||_0x14ff9b==='prod'?_0x3c4ab9(0x1ca):_0x14ff9b;}function a101_0x2a7c(_0x551821,_0x1ee32f){_0x551821=_0x551821-0x1bf;const _0x3910ce=a101_0x3910();let _0x2a7ca0=_0x3910ce[_0x551821];return _0x2a7ca0;}export function isProduction(_0x2b8f7e){return normalizeEnv(_0x2b8f7e)==='production';}export function isDaily(_0x44b583){const _0xceb333=a101_0x359157;return normalizeEnv(_0x44b583)===_0xceb333(0x1c2);}export function isDev(_0x5e6179){const _0x7b029c=a101_0x359157,_0x8107f6=normalizeEnv(_0x5e6179);return _0x8107f6===_0x7b029c(0x1c8)||_0x8107f6===_0x7b029c(0x1c4);}let env=normalizeEnv(productEnv('ENV')||a101_0x359157(0x1ca));export function getEnv(){return env;}export function initEnv(_0x986690){env=normalizeEnv(_0x986690);}
|
package/lib/constant/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a102_0x5f5391=a102_0x4d22;(function(_0x4492ed,_0x4c3d1a){const _0x3a5590=a102_0x4d22,_0x38527d=_0x4492ed();while(!![]){try{const _0x49dee7=parseInt(_0x3a5590(0x114))/0x1*(-parseInt(_0x3a5590(0x107))/0x2)+parseInt(_0x3a5590(0x115))/0x3+-parseInt(_0x3a5590(0x10c))/0x4*(-parseInt(_0x3a5590(0x10e))/0x5)+parseInt(_0x3a5590(0x109))/0x6*(parseInt(_0x3a5590(0x10d))/0x7)+parseInt(_0x3a5590(0x108))/0x8*(-parseInt(_0x3a5590(0x112))/0x9)+-parseInt(_0x3a5590(0x113))/0xa+parseInt(_0x3a5590(0x111))/0xb*(-parseInt(_0x3a5590(0x110))/0xc);if(_0x49dee7===_0x4c3d1a)break;else _0x38527d['push'](_0x38527d['shift']());}catch(_0x28ff5e){_0x38527d['push'](_0x38527d['shift']());}}}(a102_0x2e9b,0x45a96));function a102_0x2e9b(){const _0x24eb89=['json','compress','1708684aeRnNP','89635hUdOvE','5WAWSyA','pretty','12tcnuUs','1428988OLofPc','225jibvJc','361720YERDfz','100765RrdEEx','1154229MJwyQp','4kRqQlF','54968aTrCcl','6pqTomu'];a102_0x2e9b=function(){return _0x24eb89;};return a102_0x2e9b();}function a102_0x4d22(_0x5c1e66,_0xd68f4d){_0x5c1e66=_0x5c1e66-0x107;const _0x2e9b06=a102_0x2e9b();let _0x4d22e4=_0x2e9b06[_0x5c1e66];return _0x4d22e4;}export const OUTPUT_FORMAT_VALUES=[a102_0x5f5391(0x10a),a102_0x5f5391(0x10f),a102_0x5f5391(0x10b)];
|
package/lib/constant/product.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a103_0xac259f=a103_0x3970;function a103_0x3970(_0x87f34d,_0x1f83b6){_0x87f34d=_0x87f34d-0xd9;const _0x3b5a0e=a103_0x3b5a();let _0x39706f=_0x3b5a0e[_0x87f34d];return _0x39706f;}(function(_0x4791fd,_0x26343a){const _0x4d8234=a103_0x3970,_0x49e9ce=_0x4791fd();while(!![]){try{const _0x3e0968=parseInt(_0x4d8234(0xe6))/0x1*(parseInt(_0x4d8234(0xe2))/0x2)+-parseInt(_0x4d8234(0xe8))/0x3*(-parseInt(_0x4d8234(0xec))/0x4)+-parseInt(_0x4d8234(0xed))/0x5+parseInt(_0x4d8234(0xee))/0x6+parseInt(_0x4d8234(0xea))/0x7*(parseInt(_0x4d8234(0xe9))/0x8)+-parseInt(_0x4d8234(0xda))/0x9*(-parseInt(_0x4d8234(0xdc))/0xa)+-parseInt(_0x4d8234(0xde))/0xb;if(_0x3e0968===_0x26343a)break;else _0x49e9ce['push'](_0x49e9ce['shift']());}catch(_0x23e326){_0x49e9ce['push'](_0x49e9ce['shift']());}}}(a103_0x3b5a,0x5b986));export const PRODUCT_CONFIG={'cliBinName':a103_0xac259f(0xdb),'cliDisplayName':a103_0xac259f(0xe7),'npmPackageName':a103_0xac259f(0xf0),'skillSource':a103_0xac259f(0xeb),'internalSkillSource':a103_0xac259f(0xef),'globalSkillName':a103_0xac259f(0xdb),'npmRegistryBaseUrl':'https://registry.npmjs.org','cliCdnBaseUrl':a103_0xac259f(0xe0),'envPrefix':'LOVRABET','legacyEnvPrefixes':['RABETBASE'],'configFileNames':[a103_0xac259f(0xe1)],'newConfigFileName':a103_0xac259f(0xe1),'homeDirName':a103_0xac259f(0xe4),'logFileName':'.lovrabet-runtime.log','invokeSource':a103_0xac259f(0xdf),'userCenterDisplayName':a103_0xac259f(0xd9),'skipNpxSkillsEnvSuffix':a103_0xac259f(0xe3),'accessKeyCreatePath':'/user/ak'};function a103_0x3b5a(){const _0x277131=['10VhsTeI','legacyEnvPrefixes','5065192fAUlNc','cli:lovrabet-runtime','https://g.lovrabet.com','.lovrabet.json','2MRTsYP','SKIP_NPX_SKILLS','.lovrabet','envPrefix','331921ftveSh','Lovrabet\x20Runtime\x20CLI','6711PGiKxY','24WBEnKf','347669PvBcDA','lovrabet/lovrabet-cli','652eWIaqE','2091775dkmgVt','994326DqOdWE','git@codeup.aliyun.com:yuntoo/open/lovrabet-runtime-cli.git','@lovrabet/lovrabet-cli','Lovrabet\x20User\x20Center','2184543GpuLuu','lovrabet'];a103_0x3b5a=function(){return _0x277131;};return a103_0x3b5a();}export function productEnvName(_0x25a283){const _0x17341a=a103_0xac259f;return PRODUCT_CONFIG[_0x17341a(0xe5)]+'_'+_0x25a283;}export function productEnvNames(_0x238674){const _0x2954fb=a103_0xac259f;return[productEnvName(_0x238674),...PRODUCT_CONFIG[_0x2954fb(0xdd)]['map'](_0x2e53ca=>_0x2e53ca+'_'+_0x238674)];}export function productEnv(_0x2d833b){for(const _0x477075 of productEnvNames(_0x2d833b)){const _0x348a81=process.env[_0x477075];if(_0x348a81!==undefined)return _0x348a81;}return undefined;}
|
package/lib/constant/region.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1ca453,_0x168bd9){const _0x33b85e=a104_0xea96,_0x513db4=_0x1ca453();while(!![]){try{const _0x5534a8=parseInt(_0x33b85e(0x145))/0x1+-parseInt(_0x33b85e(0x136))/0x2*(-parseInt(_0x33b85e(0x13c))/0x3)+parseInt(_0x33b85e(0x13a))/0x4*(-parseInt(_0x33b85e(0x144))/0x5)+parseInt(_0x33b85e(0x13f))/0x6+parseInt(_0x33b85e(0x135))/0x7+-parseInt(_0x33b85e(0x139))/0x8*(-parseInt(_0x33b85e(0x141))/0x9)+-parseInt(_0x33b85e(0x134))/0xa*(parseInt(_0x33b85e(0x13b))/0xb);if(_0x5534a8===_0x168bd9)break;else _0x513db4['push'](_0x513db4['shift']());}catch(_0x5bb0c4){_0x513db4['push'](_0x513db4['shift']());}}}(a104_0x22c9,0x92fd7));function a104_0xea96(_0x175a26,_0x4df6fc){_0x175a26=_0x175a26-0x134;const _0x22c9b9=a104_0x22c9();let _0xea96ec=_0x22c9b9[_0x175a26];return _0xea96ec;}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;function a104_0x22c9(){const _0x5b521a=['6421548BTJRqP','7438sXsoBf','Available\x20regions:\x20','validation','440GnWoNN','20Cnstak','22yiqyrE','51uHlbJM','join','\x22\x20is\x20not\x20currently\x20available.','29148Tymmkt','Invalid\x20region\x20value:\x20expected\x20a\x20string,\x20received\x20','145926qjKHFE','includes','Region\x20\x22','93535FEUaVk','203593qWHFdJ','string','6926010zCLCDq'];a104_0x22c9=function(){return _0x5b521a;};return a104_0x22c9();}export const ENABLED_LOVRABET_REGION_VALUES=ENABLED_REGION_VALUES;export const DEFAULT_LOVRABET_REGION=DEFAULT_REGION;export function isLovrabetRegion(_0x69b281){const _0x8bea8e=a104_0xea96;return typeof _0x69b281===_0x8bea8e(0x146)&&LOVRABET_REGION_VALUES[_0x8bea8e(0x142)](_0x69b281);}export function isEnabledLovrabetRegion(_0x3dc6ea){const _0x311a00=a104_0xea96;return typeof _0x3dc6ea===_0x311a00(0x146)&&ENABLED_LOVRABET_REGION_VALUES[_0x311a00(0x142)](_0x3dc6ea);}export function normalizeLovrabetRegion(_0x4f6bf8){const _0x36d7a3=a104_0xea96;if(_0x4f6bf8===undefined||_0x4f6bf8===null||_0x4f6bf8==='')return DEFAULT_LOVRABET_REGION;if(typeof _0x4f6bf8!=='string')throw CliErrors[_0x36d7a3(0x138)](_0x36d7a3(0x140)+typeof _0x4f6bf8+'.','Run\x20`lovrabet\x20config\x20init`\x20to\x20restore\x20the\x20global\x20country/region\x20configuration.');const _0x406088=REGION_ALIASES[_0x4f6bf8]??_0x4f6bf8;if(isEnabledLovrabetRegion(_0x406088))return _0x406088;throw CliErrors[_0x36d7a3(0x138)](_0x36d7a3(0x143)+_0x4f6bf8+_0x36d7a3(0x13e),_0x36d7a3(0x137)+ENABLED_LOVRABET_REGION_VALUES[_0x36d7a3(0x13d)](',\x20')+'.\x20Run\x20`lovrabet\x20config\x20init`\x20to\x20repair\x20the\x20global\x20configuration.');}
|
package/lib/constant/risk.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a105_0x52a1(_0x4c2bf9,_0x46f3eb){_0x4c2bf9=_0x4c2bf9-0x136;const _0x1ef3e9=a105_0x1ef3();let _0x52a1d3=_0x1ef3e9[_0x4c2bf9];return _0x52a1d3;}function a105_0x1ef3(){const _0x23680c=['high-risk-write','6PlvhGK','2146018yvDxTH','5837076jbojxp','6665545prFoPP','236703iXoFrB','44ZAbQEO','6928397FfMvOt','24586760VUdqHW','8pOcQGn','1441920wPHcxN','1nijIkL'];a105_0x1ef3=function(){return _0x23680c;};return a105_0x1ef3();}const a105_0x32dc0e=a105_0x52a1;(function(_0x19bd14,_0xa60cf8){const _0x189d8e=a105_0x52a1,_0x5b45b1=_0x19bd14();while(!![]){try{const _0x55a9c8=-parseInt(_0x189d8e(0x141))/0x1*(-parseInt(_0x189d8e(0x138))/0x2)+parseInt(_0x189d8e(0x13b))/0x3*(parseInt(_0x189d8e(0x13c))/0x4)+parseInt(_0x189d8e(0x13a))/0x5+parseInt(_0x189d8e(0x137))/0x6*(-parseInt(_0x189d8e(0x13d))/0x7)+-parseInt(_0x189d8e(0x13f))/0x8*(-parseInt(_0x189d8e(0x139))/0x9)+parseInt(_0x189d8e(0x140))/0xa+-parseInt(_0x189d8e(0x13e))/0xb;if(_0x55a9c8===_0xa60cf8)break;else _0x5b45b1['push'](_0x5b45b1['shift']());}catch(_0x46188d){_0x5b45b1['push'](_0x5b45b1['shift']());}}}(a105_0x1ef3,0xcd87e));export const RISK_LEVEL_VALUES=['read','write',a105_0x32dc0e(0x136)];
|
package/lib/constant/url.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5aaf22,_0x34e4fe){const _0x519da6=a106_0xcf79,_0x70cbd=_0x5aaf22();while(!![]){try{const _0x16741d=-parseInt(_0x519da6(0x65))/0x1+parseInt(_0x519da6(0x71))/0x2*(parseInt(_0x519da6(0x66))/0x3)+-parseInt(_0x519da6(0x70))/0x4+parseInt(_0x519da6(0x6e))/0x5*(-parseInt(_0x519da6(0x69))/0x6)+parseInt(_0x519da6(0x6f))/0x7*(-parseInt(_0x519da6(0x6c))/0x8)+-parseInt(_0x519da6(0x6d))/0x9+-parseInt(_0x519da6(0x67))/0xa*(-parseInt(_0x519da6(0x68))/0xb);if(_0x16741d===_0x34e4fe)break;else _0x70cbd['push'](_0x70cbd['shift']());}catch(_0x4122a9){_0x70cbd['push'](_0x70cbd['shift']());}}}(a106_0x108e,0x6e9f6));function a106_0xcf79(_0x7fd0c3,_0x2c0b9c){_0x7fd0c3=_0x7fd0c3-0x65;const _0x108e04=a106_0x108e();let _0xcf7930=_0x108e04[_0x7fd0c3];return _0xcf7930;}import{PRODUCT_CONFIG}from'../constant/product.js';function a106_0x108e(){const _0x3df831=['user','serviceDomains','55192wzvAOh','3788118jPzhwO','973365uyALzW','469IKdaxI','3030072eSEkQQ','16914DrEMGP','393742LylwOT','213pyZzzb','10cIeQWp','22899041LokpId','6jrRNAV'];a106_0x108e=function(){return _0x3df831;};return a106_0x108e();}import{OFFICIAL_ROUTING_PROFILES}from'../generated/official-routing.js';import{DEFAULT_LOVRABET_REGION}from'../constant/region.js';export function getUserAccessKeyCreateUrl(_0x5ed770=DEFAULT_LOVRABET_REGION){const _0x379e8d=a106_0xcf79,_0xafb5c7=OFFICIAL_ROUTING_PROFILES[_0x5ed770][_0x379e8d(0x6b)]['production'][_0x379e8d(0x6a)];return''+_0xafb5c7+PRODUCT_CONFIG['accessKeyCreatePath'];}export const USER_ACCESS_KEY_CREATE_URL=getUserAccessKeyCreateUrl();
|
package/lib/context.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x242c76,_0x4acd4f){const _0x25a74b=a107_0x445c,_0x3ae2a4=_0x242c76();while(!![]){try{const _0x57253d=-parseInt(_0x25a74b(0xbc))/0x1+parseInt(_0x25a74b(0xf1))/0x2+parseInt(_0x25a74b(0xe9))/0x3*(-parseInt(_0x25a74b(0xb8))/0x4)+parseInt(_0x25a74b(0xdf))/0x5*(-parseInt(_0x25a74b(0xac))/0x6)+parseInt(_0x25a74b(0xdb))/0x7+parseInt(_0x25a74b(0xd1))/0x8+-parseInt(_0x25a74b(0xc8))/0x9*(parseInt(_0x25a74b(0xb4))/0xa);if(_0x57253d===_0x4acd4f)break;else _0x3ae2a4['push'](_0x3ae2a4['shift']());}catch(_0x27f5d1){_0x3ae2a4['push'](_0x3ae2a4['shift']());}}}(a107_0x5907,0x354bf));import{readFileSync,existsSync,mkdirSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{homedir}from'node:os';import{logger}from'./utils/logger.js';import{redactCommandArgv}from'./utils/redaction.js';import{CliErrors}from'./errors.js';import{CLI_BIN_NAME}from'./constant/cli.js';import{PRODUCT_CONFIG,productEnv,productEnvNames}from'./constant/product.js';import{DEFAULT_CONFIG_VALUES}from'./constant/defaults.js';import{normalizeEnv,isDaily,isDev}from'./constant/env.js';import{normalizeLegacyOutputFormat}from'./framework/types.js';import{resolveCachedAppCode}from'./commands/app/cache.js';import{normalizeLovrabetRegion}from'./constant/region.js';import{resolveEnterpriseRoutingConfig}from'./config/domain-config.js';export{AUTH_MODE,isAuthMode}from'./constant/auth-mode.js';const CONFIG_NAMES=PRODUCT_CONFIG['configFileNames'];export const NEW_CONFIG_NAME=PRODUCT_CONFIG['newConfigFileName'];function resolveConfigPath(_0x182920){for(const _0x3a480a of CONFIG_NAMES){const _0x468190=resolve(_0x182920,_0x3a480a);if(existsSync(_0x468190))return _0x468190;}return undefined;}export function resolveWriteConfigPath(_0x5bf8eb){const _0x1dbea4=a107_0x445c,_0x438a4c=_0x5bf8eb==='project'?process[_0x1dbea4(0xf2)]():homedir(),_0x2fe2b0=resolveConfigPath(_0x438a4c);return _0x2fe2b0??resolve(_0x438a4c,NEW_CONFIG_NAME);}export function readConfigFile(_0x45a5eb){const _0x1ab691=a107_0x445c;try{if(existsSync(_0x45a5eb)){const _0x412255=readFileSync(_0x45a5eb,{'encoding':_0x1ab691(0xb0)});if(_0x412255){const _0x238e9f=JSON[_0x1ab691(0xb6)](_0x412255);return migrateOnlineEnv(_0x45a5eb,_0x238e9f),_0x238e9f;}}}catch{}return{};}function migrateOnlineEnv(_0x497c62,_0xd02858){const _0x19eb0c=a107_0x445c;let _0x47770d=![];_0xd02858['env']===_0x19eb0c(0xc3)&&(_0xd02858[_0x19eb0c(0xbb)]=_0x19eb0c(0xe1),_0x47770d=!![]);if(_0xd02858[_0x19eb0c(0xe8)]&&typeof _0xd02858[_0x19eb0c(0xe8)]===_0x19eb0c(0xce))for(const _0x213df6 of Object[_0x19eb0c(0xf6)](_0xd02858[_0x19eb0c(0xe8)])){_0x213df6&&_0x213df6['env']===_0x19eb0c(0xc3)&&(_0x213df6[_0x19eb0c(0xbb)]=_0x19eb0c(0xe1),_0x47770d=!![]);}if(_0x47770d)try{writeConfigFile(_0x497c62,_0xd02858);}catch{}}function a107_0x5907(){const _0x5937ee=['riskLevel','stdout','format','5070maviMF','host','production','isRaw','app','global','top-level','stringify','find','apps','438612buMmzA','code','inherit','kbServiceDomain','runtimeDomain','project','userDomain','.tmp','858734QdRspc','cwd','defaultApp','routing','hasOwnProperty','values','raw','prototype','accessKey','EACCES','APPCODE','./constant/domain.js','skillDomain','696GjqYCH','project\x20config','locale','EPERM','utf8','./constant/env.js','read','pageSize','1338630GsCYWq','slice','parse','cache','4qfuLIP','isTTY','write','env','98680dbOLwF','argv','setRawMode','setRawCommand','apiDomain','appCode','kbDomain','online','call','string','message','true','36fSzJHF','trim','setLogPath','region','daily','empty','object','VERBOSE','appcode','2120776BzViIV','local-alias','platformDomain','explicit','high-risk-write','some','skillHubDomain','projectConfig','nativeToolAvailable','stdin','2952593eyxQFG'];a107_0x5907=function(){return _0x5937ee;};return a107_0x5907();}export function writeConfigFile(_0x83dcca,_0x4633e){const _0x5adc8d=a107_0x445c,_0x3e7d93=dirname(_0x83dcca);!existsSync(_0x3e7d93)&&mkdirSync(_0x3e7d93,{'recursive':!![]});const _0x48c791=_0x83dcca+_0x5adc8d(0xf0);try{writeFileSync(_0x48c791,JSON[_0x5adc8d(0xe6)](_0x4633e,null,0x2)+'\x0a',{'encoding':_0x5adc8d(0xb0),'mode':0x180});try{renameSync(_0x48c791,_0x83dcca);}catch(_0x630870){if(_0x630870[_0x5adc8d(0xea)]===_0x5adc8d(0xaf)||_0x630870[_0x5adc8d(0xea)]==='EXDEV'||_0x630870[_0x5adc8d(0xea)]===_0x5adc8d(0xfa)){writeFileSync(_0x83dcca,JSON[_0x5adc8d(0xe6)](_0x4633e,null,0x2)+'\x0a',{'encoding':_0x5adc8d(0xb0)});try{unlinkSync(_0x48c791);}catch{}}else throw _0x630870;}}catch(_0x1548ed){try{unlinkSync(_0x48c791);}catch{}throw _0x1548ed;}}export function isNonInteractiveMode(_0xcd61ef){const _0x1952af=a107_0x445c;return!!(_0xcd61ef['nonInteractive']||_0xcd61ef['ci']||productEnvNames('CI')[_0x1952af(0xd6)](_0x306de0=>process.env[_0x306de0]===_0x1952af(0xc7))||process.env.CI==='true'||!process[_0x1952af(0xdd)]['isTTY']||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x3f4a11=a107_0x445c;if(!process[_0x3f4a11(0xda)][_0x3f4a11(0xb9)])return![];try{const _0x3b415e=process[_0x3f4a11(0xda)][_0x3f4a11(0xe2)];return process[_0x3f4a11(0xda)][_0x3f4a11(0xbe)](!![]),process[_0x3f4a11(0xda)][_0x3f4a11(0xbe)](_0x3b415e??![]),!![];}catch{return![];}}export async function createContext(_0x4c1fc1){const _0x42ef57=a107_0x445c,_0x59fe2a=buildConfigFromFlags(_0x4c1fc1);await initGlobalEnvironment(_0x59fe2a);const {getUserDomain:_0x3f7b99,getApiDomain:_0x22772a}=await import(_0x42ef57(0xfc)),_0x14b598={'apiDomain':_0x22772a(),'userDomain':_0x3f7b99()},_0x2a0885=await buildAuth(_0x59fe2a);logger[_0x42ef57(0xca)](process[_0x42ef57(0xf2)]());const _0x105d30=(CLI_BIN_NAME+'\x20'+redactCommandArgv(process[_0x42ef57(0xbd)][_0x42ef57(0xb5)](0x2))['join']('\x20'))[_0x42ef57(0xc9)]();logger[_0x42ef57(0xbf)](_0x105d30);const _0x4f64c2=isNonInteractiveMode(_0x4c1fc1);return{'config':_0x59fe2a,'auth':_0x2a0885,'logger':logger,'env':_0x14b598,'nonInteractive':_0x4f64c2};}export function buildConfigFromFlags(_0x15dfdf){return buildConfig(loadRawConfigLayers(),_0x15dfdf);}export function getLocalAppAliases(_0x491a0b){const _0x4ae39b=a107_0x445c;return _0x491a0b['apps']&&typeof _0x491a0b[_0x4ae39b(0xe8)]===_0x4ae39b(0xce)?_0x491a0b[_0x4ae39b(0xe8)]:{};}function a107_0x445c(_0x474850,_0x3f4f44){_0x474850=_0x474850-0xac;const _0x5907f7=a107_0x5907();let _0x445cd6=_0x5907f7[_0x474850];return _0x445cd6;}export function resolveLocalAppAliasCode(_0x2ebca6,_0x3a311e){const _0x17167b=a107_0x445c;if(!_0x3a311e)return undefined;const _0x12d892=getLocalAppAliases(_0x2ebca6)[_0x3a311e],_0x30f4a5=_0x12d892?.[_0x17167b(0xd0)];return typeof _0x30f4a5===_0x17167b(0xc5)&&_0x30f4a5[_0x17167b(0xc9)]()?_0x30f4a5[_0x17167b(0xc9)]():undefined;}export function readAppCodeFromConfig(){const _0x58b679=a107_0x445c;return buildConfigFromFlags({})[_0x58b679(0xc1)];}export function readScopedConfig(_0x1582a1){const _0x4c0a70=a107_0x445c,_0x1eee50=_0x1582a1['global']?_0x4c0a70(0xe4):'project';return readConfigFile(resolveWriteConfigPath(_0x1eee50));}export function writeScopedConfig(_0x26bbe3,_0x51216f){const _0x3ef56e=a107_0x445c,_0x4ba298=_0x51216f[_0x3ef56e(0xe4)]?_0x3ef56e(0xe4):_0x3ef56e(0xee);writeConfigFile(resolveWriteConfigPath(_0x4ba298),_0x26bbe3);}export async function initGlobalEnvironment(_0x2f3ae9){const _0x5353db=a107_0x445c,{initEnv:_0x2c3210}=await import(_0x5353db(0xb1));_0x2c3210(_0x2f3ae9[_0x5353db(0xbb)]);const {initDomains:_0x41aa77}=await import(_0x5353db(0xfc)),_0x2eb709=resolveEnterpriseRoutingConfig(_0x2f3ae9[_0x5353db(0xf7)][_0x5353db(0xf4)]),_0x3f792b=[_0x5353db(0xc0),_0x5353db(0xe0),_0x5353db(0xef),_0x5353db(0xed),_0x5353db(0xfd),_0x5353db(0xd7),'agentDomain',_0x5353db(0xd3),_0x5353db(0xc2),_0x5353db(0xec)],_0x453e8f=_0x2eb709!==undefined||_0x3f792b[_0x5353db(0xd6)](_0x18db0c=>Object[_0x5353db(0xf8)][_0x5353db(0xf5)][_0x5353db(0xc4)](_0x2f3ae9[_0x5353db(0xf7)],_0x18db0c));_0x41aa77({'apiDomain':_0x2eb709?_0x2eb709[_0x5353db(0xc0)]:_0x2f3ae9['raw'][_0x5353db(0xc0)]||_0x2f3ae9[_0x5353db(0xf7)][_0x5353db(0xe0)]||undefined,'userDomain':_0x2eb709?_0x2eb709[_0x5353db(0xef)]:_0x2f3ae9[_0x5353db(0xf7)][_0x5353db(0xef)]||undefined,'runtimeDomain':_0x2eb709?_0x2eb709[_0x5353db(0xed)]:_0x2f3ae9['raw'][_0x5353db(0xed)]||undefined,'skillDomain':_0x2eb709?_0x2eb709[_0x5353db(0xfd)]:_0x2f3ae9[_0x5353db(0xf7)]['skillDomain']||_0x2f3ae9['raw'][_0x5353db(0xd7)]||_0x2f3ae9[_0x5353db(0xf7)]['agentDomain']||_0x2f3ae9['raw'][_0x5353db(0xd3)]||undefined,'kbServiceDomain':_0x2eb709?_0x2eb709[_0x5353db(0xec)]:typeof _0x2f3ae9[_0x5353db(0xf7)]['kbServiceDomain']==='string'&&_0x2f3ae9[_0x5353db(0xf7)][_0x5353db(0xec)][_0x5353db(0xc9)]()?_0x2f3ae9[_0x5353db(0xf7)][_0x5353db(0xec)]:undefined,'allowOfficialKbServiceDefault':!_0x453e8f,'region':normalizeLovrabetRegion(_0x2f3ae9[_0x5353db(0xf7)][_0x5353db(0xcb)])});}export function getProjectConfigPath(){const _0x1614d9=a107_0x445c;return resolveConfigPath(process[_0x1614d9(0xf2)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0x6f9146){const _0x2f6208=a107_0x445c;if(!existsSync(_0x6f9146))return{'status':'missing'};try{const _0x54af02=readFileSync(_0x6f9146,{'encoding':_0x2f6208(0xb0)});if(!_0x54af02?.[_0x2f6208(0xc9)]())return{'status':_0x2f6208(0xcd)};const _0x3ecf9e=JSON[_0x2f6208(0xb6)](_0x54af02);return{'status':'ok','data':_0x3ecf9e};}catch(_0x548eb3){return{'status':'error','message':_0x548eb3 instanceof Error?_0x548eb3[_0x2f6208(0xc6)]:String(_0x548eb3)};}}export function loadRawConfigLayers(_0x3451f2){const _0x6b3208=a107_0x445c;let _0x197673={},_0x5be2ed={},_0x584dde,_0x206bce;try{_0x584dde=resolveConfigPath(homedir());if(_0x584dde){const _0x201a1c=readFileSync(_0x584dde,{'encoding':_0x6b3208(0xb0)});if(_0x201a1c)_0x197673=JSON['parse'](_0x201a1c);}}catch{}try{const _0xfcd2e5=_0x3451f2||process['cwd']();_0x206bce=resolveConfigPath(_0xfcd2e5);if(_0x206bce){const _0x3a2e2d=readFileSync(_0x206bce,{'encoding':'utf8'});if(_0x3a2e2d)_0x5be2ed=JSON[_0x6b3208(0xb6)](_0x3a2e2d);}}catch{}return{'globalPath':_0x584dde,'projectPath':_0x206bce,'globalConfig':_0x197673,'projectConfig':_0x5be2ed};}function mergeRawConfigLayers(_0x523681){const _0x19b5c2=a107_0x445c,{globalConfig:_0x5c8ee1,projectConfig:_0x5ece78}=_0x523681,_0x55bff6={..._0x5c8ee1,..._0x5ece78};delete _0x55bff6[_0x19b5c2(0xeb)];if(_0x19b5c2(0xf3)in _0x5ece78)_0x55bff6[_0x19b5c2(0xf3)]=_0x5ece78['defaultApp'];else _0x5c8ee1[_0x19b5c2(0xf3)]&&(_0x55bff6[_0x19b5c2(0xf3)]=_0x5c8ee1[_0x19b5c2(0xf3)]);return _0x55bff6;}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0x9e964c){return mergeRawConfigLayers(loadRawConfigLayers(_0x9e964c));}export function readRawConfigWithLayers(_0x4bc556){const _0x4dda29=loadRawConfigLayers(_0x4bc556);return{'config':mergeRawConfigLayers(_0x4dda29),'layers':_0x4dda29};}export function resolveDefaultAppSource(_0x466f06){const _0x267e62=a107_0x445c;if(_0x267e62(0xf3)in _0x466f06[_0x267e62(0xd8)])return _0x267e62(0xee);if(_0x466f06['globalConfig']['defaultApp'])return'global';return null;}function buildConfig(_0x1b6150,_0x2da30c){const _0x2bbfaf=a107_0x445c,_0xd99854=mergeRawConfigLayers(_0x1b6150),{projectConfig:_0x55e5af}=_0x1b6150,_0x332334=_0xd99854[_0x2bbfaf(0xf3)]||undefined,_0x3ece36=typeof _0x2da30c[_0x2bbfaf(0xd0)]==='string'?_0x2da30c['appcode']:undefined,_0x2abbde=_0x55e5af[_0x2bbfaf(0xd0)]||_0x55e5af[_0x2bbfaf(0xe3)],_0x216efc=!_0x3ece36&&!_0x2da30c[_0x2bbfaf(0xe3)]&&!_0x2abbde&&!_0x55e5af['defaultApp'],_0x5c0414=_0x216efc?env(_0x2bbfaf(0xfb)):undefined,_0x21438a=_0x2da30c[_0x2bbfaf(0xe3)]||(_0x216efc&&!_0x5c0414?env('APP'):undefined),_0x3adaf3=_0x21438a||_0x332334||undefined,_0x28c166=_0x21438a||_0x5c0414?undefined:_0x2abbde||(_0x55e5af[_0x2bbfaf(0xf3)]?undefined:_0xd99854['appcode']||_0xd99854['app']||undefined),_0x3d067b=_0x21438a||(_0x28c166?undefined:_0x332334),_0x26389a=resolveLocalAppAliasCode(_0xd99854,_0x3d067b),_0x14dfbf=productEnvNames('ACCESS_KEY')[_0x2bbfaf(0xe7)](_0x250e43=>process.env[_0x250e43]!==undefined),_0x8ad22c=_0x14dfbf?process.env[_0x14dfbf]:undefined,_0x2360eb=_0x55e5af[_0x2bbfaf(0xf9)]||_0x8ad22c||_0xd99854['accessKey']||undefined,_0x3a827a=_0x55e5af[_0x2bbfaf(0xf9)]?_0x2bbfaf(0xad):_0x8ad22c?_0x14dfbf:_0xd99854['accessKey']?'global\x20config':undefined,_0x27a984=_0x2da30c[_0x2bbfaf(0xbb)]||_0xd99854[_0x2bbfaf(0xbb)]||env('ENV')||DEFAULT_CONFIG_VALUES[_0x2bbfaf(0xbb)],_0x304353=normalizeEnv(String(_0x27a984)),_0x7f5c4a=isDaily(_0x304353)?_0x2bbfaf(0xcc):isDev(_0x304353)?'development':_0x2bbfaf(0xe1),_0x1eb0ab=_0x3ece36||_0x5c0414||_0x28c166||_0x26389a?undefined:resolveCachedAppCode(_0x3d067b,_0x7f5c4a,_0x2360eb),_0x20e393=_0x3ece36||_0x5c0414||_0x28c166||_0x26389a||_0x1eb0ab||undefined,_0x176867=_0x3ece36?_0x2bbfaf(0xd4):_0x5c0414?_0x2bbfaf(0xbb):_0x28c166?_0x2bbfaf(0xe5):_0x26389a?_0x2bbfaf(0xd2):_0x1eb0ab?_0x2bbfaf(0xb7):undefined,_0x494cfc=_0xd99854[_0x2bbfaf(0xae)]||DEFAULT_CONFIG_VALUES[_0x2bbfaf(0xae)],_0xceb05c=undefined,_0x2a0a0f=_0x2da30c[_0x2bbfaf(0xde)]||env('FORMAT')||_0xd99854['format'],_0x2cdf32=normalizeLegacyOutputFormat(_0x2a0a0f),_0x4d8fca=env('PAGE_SIZE')||_0xd99854[_0x2bbfaf(0xb3)],_0x2114d2=_0x4d8fca?Number(_0x4d8fca)||undefined:undefined,_0x1b3718=_0xd99854[_0x2bbfaf(0xdc)],_0x929ec8=_0x1b3718===_0x2bbfaf(0xb2)||_0x1b3718===_0x2bbfaf(0xba)||_0x1b3718===_0x2bbfaf(0xd5)?_0x1b3718:DEFAULT_CONFIG_VALUES[_0x2bbfaf(0xdc)],_0x4c5503=_0xd99854[_0x2bbfaf(0xd9)]===!![],_0x39c37b=env(_0x2bbfaf(0xcf)),_0x52116e=_0x39c37b==='1'||_0x39c37b===_0x2bbfaf(0xc7);return{'appCode':typeof _0x20e393===_0x2bbfaf(0xc5)&&_0x20e393[_0x2bbfaf(0xc9)]()?_0x20e393['trim']():undefined,'appCodeSource':_0x176867,'env':_0x7f5c4a,'locale':_0x494cfc,'cookie':_0xceb05c,'accessKey':_0x2360eb,'accessKeySource':_0x3a827a,'format':_0x2cdf32,'pageSize':_0x2114d2,'riskLevel':_0x929ec8,'nativeToolAvailable':_0x4c5503,'verbose':_0x52116e,'defaultApp':_0x332334,'currentApp':typeof _0x3adaf3===_0x2bbfaf(0xc5)?_0x3adaf3:undefined,'raw':_0xd99854};}function env(_0x10a6b3){return productEnv(_0x10a6b3);}async function buildAuth(_0x2a62ce){const _0x4e6aa4=a107_0x445c,_0x4006ea='',_0x56f97b=!!_0x2a62ce[_0x4e6aa4(0xf9)];return{'cookie':_0x4006ea,'isLoggedIn':_0x56f97b,async 'getOrLogin'(){if(_0x56f97b)return _0x4006ea;throw CliErrors['authRequired']();}};}
|
|
1
|
+
const a107_0x1f043d=a107_0xa032;(function(_0x13a8da,_0x192a82){const _0x479fb8=a107_0xa032,_0x4b034e=_0x13a8da();while(!![]){try{const _0x348a02=parseInt(_0x479fb8(0x218))/0x1+-parseInt(_0x479fb8(0x1fd))/0x2*(-parseInt(_0x479fb8(0x23f))/0x3)+-parseInt(_0x479fb8(0x21a))/0x4*(-parseInt(_0x479fb8(0x24b))/0x5)+parseInt(_0x479fb8(0x212))/0x6*(-parseInt(_0x479fb8(0x219))/0x7)+-parseInt(_0x479fb8(0x21e))/0x8*(-parseInt(_0x479fb8(0x220))/0x9)+parseInt(_0x479fb8(0x22d))/0xa*(-parseInt(_0x479fb8(0x200))/0xb)+-parseInt(_0x479fb8(0x23c))/0xc;if(_0x348a02===_0x192a82)break;else _0x4b034e['push'](_0x4b034e['shift']());}catch(_0x492058){_0x4b034e['push'](_0x4b034e['shift']());}}}(a107_0x41e1,0xa74f2));import{readFileSync,existsSync,mkdirSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{homedir}from'node:os';import{logger}from'./utils/logger.js';import{redactCommandArgv}from'./utils/redaction.js';import{CliErrors}from'./errors.js';import{CLI_BIN_NAME}from'./constant/cli.js';import{PRODUCT_CONFIG,productEnv,productEnvNames}from'./constant/product.js';import{DEFAULT_CONFIG_VALUES}from'./constant/defaults.js';import{normalizeEnv,isDaily,isDev}from'./constant/env.js';import{normalizeLegacyOutputFormat}from'./framework/types.js';import{resolveCachedAppCode}from'./commands/app/cache.js';import{normalizeLovrabetRegion}from'./constant/region.js';import{normalizeDomainOrigin,resolveEnterpriseRoutingConfig}from'./config/domain-config.js';export{AUTH_MODE,isAuthMode}from'./constant/auth-mode.js';const CONFIG_NAMES=PRODUCT_CONFIG[a107_0x1f043d(0x233)];export const NEW_CONFIG_NAME=PRODUCT_CONFIG['newConfigFileName'];function resolveConfigPath(_0x2fc34c){for(const _0xd73bdf of CONFIG_NAMES){const _0x515060=resolve(_0x2fc34c,_0xd73bdf);if(existsSync(_0x515060))return _0x515060;}return undefined;}export function resolveWriteConfigPath(_0x40bd0e){const _0x54e66e=a107_0x1f043d,_0x535883=_0x40bd0e===_0x54e66e(0x20f)?process[_0x54e66e(0x213)]():homedir(),_0x36d500=resolveConfigPath(_0x535883);return _0x36d500??resolve(_0x535883,NEW_CONFIG_NAME);}function a107_0xa032(_0x21f4f3,_0x2664b3){_0x21f4f3=_0x21f4f3-0x1f3;const _0x41e1d5=a107_0x41e1();let _0xa032c4=_0x41e1d5[_0x21f4f3];return _0xa032c4;}export function readConfigFile(_0x556a92){const _0x197f47=a107_0x1f043d;try{if(existsSync(_0x556a92)){const _0x53d3c5=readFileSync(_0x556a92,{'encoding':'utf8'});if(_0x53d3c5){const _0x2cc74e=JSON[_0x197f47(0x223)](_0x53d3c5);return migrateOnlineEnv(_0x556a92,_0x2cc74e),_0x2cc74e;}}}catch{}return{};}function migrateOnlineEnv(_0x3c3278,_0x428a1c){const _0x4c0bfb=a107_0x1f043d;let _0x2cfd0d=![];_0x428a1c[_0x4c0bfb(0x225)]==='online'&&(_0x428a1c[_0x4c0bfb(0x225)]=_0x4c0bfb(0x229),_0x2cfd0d=!![]);if(_0x428a1c['apps']&&typeof _0x428a1c[_0x4c0bfb(0x23d)]===_0x4c0bfb(0x216))for(const _0x128dca of Object[_0x4c0bfb(0x22a)](_0x428a1c[_0x4c0bfb(0x23d)])){_0x128dca&&_0x128dca[_0x4c0bfb(0x225)]===_0x4c0bfb(0x22f)&&(_0x128dca[_0x4c0bfb(0x225)]=_0x4c0bfb(0x229),_0x2cfd0d=!![]);}if(_0x2cfd0d)try{writeConfigFile(_0x3c3278,_0x428a1c);}catch{}}export function writeConfigFile(_0x505c1d,_0x469bef){const _0x542ae9=a107_0x1f043d,_0x2b1488=dirname(_0x505c1d);!existsSync(_0x2b1488)&&mkdirSync(_0x2b1488,{'recursive':!![]});const _0x43781e=_0x505c1d+_0x542ae9(0x236);try{writeFileSync(_0x43781e,JSON[_0x542ae9(0x238)](_0x469bef,null,0x2)+'\x0a',{'encoding':_0x542ae9(0x1fa),'mode':0x180});try{renameSync(_0x43781e,_0x505c1d);}catch(_0x43b123){if(_0x43b123[_0x542ae9(0x245)]===_0x542ae9(0x23e)||_0x43b123['code']===_0x542ae9(0x231)||_0x43b123[_0x542ae9(0x245)]===_0x542ae9(0x217)){writeFileSync(_0x505c1d,JSON[_0x542ae9(0x238)](_0x469bef,null,0x2)+'\x0a',{'encoding':_0x542ae9(0x1fa)});try{unlinkSync(_0x43781e);}catch{}}else throw _0x43b123;}}catch(_0x429c04){try{unlinkSync(_0x43781e);}catch{}throw _0x429c04;}}export function isNonInteractiveMode(_0x1e5f09){const _0x1778ba=a107_0x1f043d;return!!(_0x1e5f09['nonInteractive']||_0x1e5f09['ci']||productEnvNames('CI')[_0x1778ba(0x1f4)](_0x4ef93c=>process.env[_0x4ef93c]===_0x1778ba(0x239))||process.env.CI===_0x1778ba(0x239)||!process['stdout'][_0x1778ba(0x249)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x37ddde=a107_0x1f043d;if(!process['stdin'][_0x37ddde(0x249)])return![];try{const _0x5f3ae8=process[_0x37ddde(0x208)][_0x37ddde(0x204)];return process[_0x37ddde(0x208)][_0x37ddde(0x246)](!![]),process[_0x37ddde(0x208)][_0x37ddde(0x246)](_0x5f3ae8??![]),!![];}catch{return![];}}export async function createContext(_0xcb815c){const _0x19281b=a107_0x1f043d,_0x32e898=buildConfigFromFlags(_0xcb815c);await initGlobalEnvironment(_0x32e898);const {getUserDomain:_0x59f7e7,getApiDomain:_0x3393e1}=await import(_0x19281b(0x243)),_0xa76d36={'apiDomain':_0x3393e1(),'userDomain':_0x59f7e7()},_0x58725d=await buildAuth(_0x32e898);logger[_0x19281b(0x21b)](process[_0x19281b(0x213)]());const _0x16c5c1=(CLI_BIN_NAME+'\x20'+redactCommandArgv(process[_0x19281b(0x1f3)][_0x19281b(0x1f5)](0x2))[_0x19281b(0x226)]('\x20'))['trim']();logger['setRawCommand'](_0x16c5c1);const _0x16866e=isNonInteractiveMode(_0xcb815c);return{'config':_0x32e898,'auth':_0x58725d,'logger':logger,'env':_0xa76d36,'nonInteractive':_0x16866e};}export function buildConfigFromFlags(_0x258e8b){return buildConfig(loadRawConfigLayers(),_0x258e8b);}export function getLocalAppAliases(_0x4479c9){const _0x3af26b=a107_0x1f043d;return _0x4479c9['apps']&&typeof _0x4479c9['apps']==='object'?_0x4479c9[_0x3af26b(0x23d)]:{};}export function resolveLocalAppAliasCode(_0x381f4b,_0x62dda1){const _0xe667f=a107_0x1f043d;if(!_0x62dda1)return undefined;const _0xf9f096=getLocalAppAliases(_0x381f4b)[_0x62dda1],_0x4bdfd6=_0xf9f096?.['appcode'];return typeof _0x4bdfd6==='string'&&_0x4bdfd6[_0xe667f(0x210)]()?_0x4bdfd6[_0xe667f(0x210)]():undefined;}export function readAppCodeFromConfig(){const _0xc86626=a107_0x1f043d;return buildConfigFromFlags({})[_0xc86626(0x20e)];}export function readScopedConfig(_0x3d713c){const _0x538455=a107_0x1f043d,_0x12daf1=_0x3d713c[_0x538455(0x211)]?_0x538455(0x211):_0x538455(0x20f);return readConfigFile(resolveWriteConfigPath(_0x12daf1));}export function writeScopedConfig(_0x2358ed,_0x4b1a97){const _0x539fa5=a107_0x1f043d,_0x19b5c6=_0x4b1a97['global']?_0x539fa5(0x211):_0x539fa5(0x20f);writeConfigFile(resolveWriteConfigPath(_0x19b5c6),_0x2358ed);}export async function initGlobalEnvironment(_0x2d7cde){const _0xae42af=a107_0x1f043d,{initEnv:_0x4561d2}=await import(_0xae42af(0x1fb));_0x4561d2(_0x2d7cde[_0xae42af(0x225)]);const {initDomains:_0x5a4c41}=await import(_0xae42af(0x243)),_0x129c18=resolveEnterpriseRoutingConfig(_0x2d7cde[_0xae42af(0x215)][_0xae42af(0x24d)]),_0x183728=[_0xae42af(0x222),_0xae42af(0x24c),'userDomain',_0xae42af(0x221),'skillDomain',_0xae42af(0x205),_0xae42af(0x23b),_0xae42af(0x232),_0xae42af(0x22e),_0xae42af(0x206),_0xae42af(0x202)],_0x9dc403=_0x129c18!==undefined||_0x183728['some'](_0x97644c=>Object[_0xae42af(0x203)][_0xae42af(0x240)][_0xae42af(0x228)](_0x2d7cde[_0xae42af(0x215)],_0x97644c));_0x5a4c41({'apiDomain':_0x129c18?_0x129c18[_0xae42af(0x222)]:_0x2d7cde['raw'][_0xae42af(0x222)]||_0x2d7cde[_0xae42af(0x215)][_0xae42af(0x24c)]||undefined,'userDomain':_0x129c18?_0x129c18[_0xae42af(0x24a)]:_0x2d7cde['raw'][_0xae42af(0x24a)]||undefined,'runtimeDomain':_0x129c18?_0x129c18[_0xae42af(0x221)]:_0x2d7cde[_0xae42af(0x215)][_0xae42af(0x221)]||undefined,'skillDomain':_0x129c18?_0x129c18['skillDomain']:_0x2d7cde[_0xae42af(0x215)][_0xae42af(0x22c)]||_0x2d7cde[_0xae42af(0x215)][_0xae42af(0x205)]||_0x2d7cde[_0xae42af(0x215)][_0xae42af(0x23b)]||_0x2d7cde[_0xae42af(0x215)][_0xae42af(0x232)]||undefined,'kbServiceDomain':_0x129c18?_0x129c18[_0xae42af(0x206)]:typeof _0x2d7cde[_0xae42af(0x215)]['kbServiceDomain']===_0xae42af(0x1f9)&&_0x2d7cde[_0xae42af(0x215)][_0xae42af(0x206)]['trim']()?_0x2d7cde['raw'][_0xae42af(0x206)]:undefined,'allowOfficialKbServiceDefault':!_0x9dc403,'harnessDomain':_0x129c18?_0x129c18[_0xae42af(0x202)]:_0x2d7cde[_0xae42af(0x215)]['harnessDomain']===undefined?undefined:normalizeDomainOrigin('harnessDomain',_0x2d7cde[_0xae42af(0x215)][_0xae42af(0x202)]),'allowOfficialHarnessDefault':!_0x9dc403,'region':normalizeLovrabetRegion(_0x2d7cde[_0xae42af(0x215)][_0xae42af(0x1ff)])});}export function getProjectConfigPath(){const _0x1e0904=a107_0x1f043d;return resolveConfigPath(process[_0x1e0904(0x213)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}function a107_0x41e1(){const _0x58292a=['values','ENV','skillDomain','4511080ZcfOgn','kbDomain','online','accessKey','EXDEV','platformDomain','configFileNames','nativeToolAvailable','authRequired','.tmp','format','stringify','true','find','agentDomain','19163604JEdJOz','apps','EPERM','2187087Cegqnf','hasOwnProperty','appcode','daily','./constant/domain.js','pageSize','code','setRawMode','development','write','isTTY','userDomain','105700HbGMnT','host','routing','argv','some','slice','locale','read','empty','string','utf8','./constant/env.js','VERBOSE','2lvSLyo','global\x20config','region','22ybMyrv','high-risk-write','harnessDomain','prototype','isRaw','skillHubDomain','kbServiceDomain','app','stdin','explicit','cache','defaultApp','globalConfig','project\x20config','appCode','project','trim','global','10662UMAEAs','cwd','missing','raw','object','EACCES','822429EOMnoj','609VZboQZ','236MtDvpj','setLogPath','PAGE_SIZE','error','187952bfRVaW','FORMAT','207Dotrkj','runtimeDomain','apiDomain','parse','top-level','env','join','APPCODE','call','production'];a107_0x41e1=function(){return _0x58292a;};return a107_0x41e1();}export function inspectCliConfigJsonFile(_0x52aa2f){const _0x2f97fd=a107_0x1f043d;if(!existsSync(_0x52aa2f))return{'status':_0x2f97fd(0x214)};try{const _0x5dc6d3=readFileSync(_0x52aa2f,{'encoding':_0x2f97fd(0x1fa)});if(!_0x5dc6d3?.[_0x2f97fd(0x210)]())return{'status':_0x2f97fd(0x1f8)};const _0xa31608=JSON[_0x2f97fd(0x223)](_0x5dc6d3);return{'status':'ok','data':_0xa31608};}catch(_0x44543a){return{'status':_0x2f97fd(0x21d),'message':_0x44543a instanceof Error?_0x44543a['message']:String(_0x44543a)};}}export function loadRawConfigLayers(_0x47074b){const _0x1c153d=a107_0x1f043d;let _0x52544c={},_0x1c874f={},_0x240e6e,_0xb6364c;try{_0x240e6e=resolveConfigPath(homedir());if(_0x240e6e){const _0x2a8c33=readFileSync(_0x240e6e,{'encoding':_0x1c153d(0x1fa)});if(_0x2a8c33)_0x52544c=JSON[_0x1c153d(0x223)](_0x2a8c33);}}catch{}try{const _0x18f703=_0x47074b||process[_0x1c153d(0x213)]();_0xb6364c=resolveConfigPath(_0x18f703);if(_0xb6364c){const _0xc62e35=readFileSync(_0xb6364c,{'encoding':_0x1c153d(0x1fa)});if(_0xc62e35)_0x1c874f=JSON[_0x1c153d(0x223)](_0xc62e35);}}catch{}return{'globalPath':_0x240e6e,'projectPath':_0xb6364c,'globalConfig':_0x52544c,'projectConfig':_0x1c874f};}function mergeRawConfigLayers(_0x12c6b9){const _0x5be747=a107_0x1f043d,{globalConfig:_0x32b598,projectConfig:_0x9caf9c}=_0x12c6b9,_0x5177d1={..._0x32b598,..._0x9caf9c};delete _0x5177d1['inherit'];if(_0x5be747(0x20b)in _0x9caf9c)_0x5177d1['defaultApp']=_0x9caf9c[_0x5be747(0x20b)];else _0x32b598[_0x5be747(0x20b)]&&(_0x5177d1[_0x5be747(0x20b)]=_0x32b598[_0x5be747(0x20b)]);return _0x5177d1;}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0x2647f9){return mergeRawConfigLayers(loadRawConfigLayers(_0x2647f9));}export function readRawConfigWithLayers(_0x2ffef0){const _0xc97537=loadRawConfigLayers(_0x2ffef0);return{'config':mergeRawConfigLayers(_0xc97537),'layers':_0xc97537};}export function resolveDefaultAppSource(_0x5e4d53){const _0x50b19e=a107_0x1f043d;if(_0x50b19e(0x20b)in _0x5e4d53['projectConfig'])return _0x50b19e(0x20f);if(_0x5e4d53[_0x50b19e(0x20c)][_0x50b19e(0x20b)])return _0x50b19e(0x211);return null;}function buildConfig(_0x36857a,_0x2a6cf2){const _0x58a55b=a107_0x1f043d,_0x3d1bac=mergeRawConfigLayers(_0x36857a),{projectConfig:_0x4aa433}=_0x36857a,_0x620075=_0x3d1bac[_0x58a55b(0x20b)]||undefined,_0x1a8d49=typeof _0x2a6cf2['appcode']===_0x58a55b(0x1f9)?_0x2a6cf2[_0x58a55b(0x241)]:undefined,_0x2ac7df=_0x4aa433['appcode']||_0x4aa433['app'],_0x4a5b45=!_0x1a8d49&&!_0x2a6cf2['app']&&!_0x2ac7df&&!_0x4aa433[_0x58a55b(0x20b)],_0x1b2fb9=_0x4a5b45?env(_0x58a55b(0x227)):undefined,_0x55ffdd=_0x2a6cf2[_0x58a55b(0x207)]||(_0x4a5b45&&!_0x1b2fb9?env('APP'):undefined),_0x5b09ad=_0x55ffdd||_0x620075||undefined,_0x176f82=_0x55ffdd||_0x1b2fb9?undefined:_0x2ac7df||(_0x4aa433[_0x58a55b(0x20b)]?undefined:_0x3d1bac['appcode']||_0x3d1bac[_0x58a55b(0x207)]||undefined),_0x18db5d=_0x55ffdd||(_0x176f82?undefined:_0x620075),_0x5c3d43=resolveLocalAppAliasCode(_0x3d1bac,_0x18db5d),_0x5482b6=productEnvNames('ACCESS_KEY')[_0x58a55b(0x23a)](_0x4bf5a6=>process.env[_0x4bf5a6]!==undefined),_0x252f34=_0x5482b6?process.env[_0x5482b6]:undefined,_0x243aba=_0x4aa433[_0x58a55b(0x230)]||_0x252f34||_0x3d1bac[_0x58a55b(0x230)]||undefined,_0xca25b5=_0x4aa433[_0x58a55b(0x230)]?_0x58a55b(0x20d):_0x252f34?_0x5482b6:_0x3d1bac['accessKey']?_0x58a55b(0x1fe):undefined,_0x36585b=_0x2a6cf2['env']||_0x3d1bac['env']||env(_0x58a55b(0x22b))||DEFAULT_CONFIG_VALUES['env'],_0x931abc=normalizeEnv(String(_0x36585b)),_0x298b46=isDaily(_0x931abc)?_0x58a55b(0x242):isDev(_0x931abc)?_0x58a55b(0x247):'production',_0x4c36d2=_0x1a8d49||_0x1b2fb9||_0x176f82||_0x5c3d43?undefined:resolveCachedAppCode(_0x18db5d,_0x298b46,_0x243aba),_0x1cea85=_0x1a8d49||_0x1b2fb9||_0x176f82||_0x5c3d43||_0x4c36d2||undefined,_0x2ea1dc=_0x1a8d49?_0x58a55b(0x209):_0x1b2fb9?_0x58a55b(0x225):_0x176f82?_0x58a55b(0x224):_0x5c3d43?'local-alias':_0x4c36d2?_0x58a55b(0x20a):undefined,_0xbdcaa9=_0x3d1bac[_0x58a55b(0x1f6)]||DEFAULT_CONFIG_VALUES[_0x58a55b(0x1f6)],_0x52fba8=undefined,_0x2e5972=_0x2a6cf2['format']||env(_0x58a55b(0x21f))||_0x3d1bac[_0x58a55b(0x237)],_0x4cac31=normalizeLegacyOutputFormat(_0x2e5972),_0x365a61=env(_0x58a55b(0x21c))||_0x3d1bac[_0x58a55b(0x244)],_0x540a6c=_0x365a61?Number(_0x365a61)||undefined:undefined,_0x50c101=_0x3d1bac['riskLevel'],_0x399ada=_0x50c101===_0x58a55b(0x1f7)||_0x50c101===_0x58a55b(0x248)||_0x50c101===_0x58a55b(0x201)?_0x50c101:DEFAULT_CONFIG_VALUES['riskLevel'],_0x5b69b2=_0x3d1bac[_0x58a55b(0x234)]===!![],_0xfac5cb=env(_0x58a55b(0x1fc)),_0x261986=_0xfac5cb==='1'||_0xfac5cb==='true';return{'appCode':typeof _0x1cea85===_0x58a55b(0x1f9)&&_0x1cea85[_0x58a55b(0x210)]()?_0x1cea85[_0x58a55b(0x210)]():undefined,'appCodeSource':_0x2ea1dc,'env':_0x298b46,'locale':_0xbdcaa9,'cookie':_0x52fba8,'accessKey':_0x243aba,'accessKeySource':_0xca25b5,'format':_0x4cac31,'pageSize':_0x540a6c,'riskLevel':_0x399ada,'nativeToolAvailable':_0x5b69b2,'verbose':_0x261986,'defaultApp':_0x620075,'currentApp':typeof _0x5b09ad==='string'?_0x5b09ad:undefined,'raw':_0x3d1bac};}function env(_0x223426){return productEnv(_0x223426);}async function buildAuth(_0x1e9c45){const _0x430511='',_0x19931c=!!_0x1e9c45['accessKey'];return{'cookie':_0x430511,'isLoggedIn':_0x19931c,async 'getOrLogin'(){const _0x1ebe60=a107_0xa032;if(_0x19931c)return _0x430511;throw CliErrors[_0x1ebe60(0x235)]();}};}
|