@lovrabet/lovrabet-cli 2.3.9 → 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.d.ts +2 -3
- 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.d.ts +5 -6
- 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.d.ts +3 -13
- 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.d.ts +2 -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.d.ts +2 -0
- 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 +31 -132
- package/skills/lovrabet/guides/app-resolution.md +39 -139
- package/skills/lovrabet/guides/dataset-and-data-workflow.md +4 -3
- package/skills/lovrabet/guides/sql-and-bff-workflow.md +12 -27
- package/skills/lovrabet/guides/troubleshooting.md +11 -31
- package/skills/lovrabet/references/dataset-discovery-workflow.md +10 -48
- package/skills/lovrabet/references/instant-api-workflow.md +4 -11
- package/skills/lovrabet/references/lovrabet-app.md +6 -33
- package/skills/lovrabet/references/lovrabet-auth.md +16 -9
- package/skills/lovrabet/references/lovrabet-bff-workflow.md +9 -34
- package/skills/lovrabet/references/lovrabet-config.md +49 -31
- package/skills/lovrabet/references/lovrabet-kb-workflow.md +2 -2
- package/skills/lovrabet/references/lovrabet-service-tree.md +11 -9
- package/skills/lovrabet/references/lovrabet-sql-workflow.md +9 -34
- package/skills/lovrabet/references/lovrabet-workspace.md +12 -11
- package/skills/lovrabet.manifest.json +3 -3
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
|
-
function
|
|
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.d.ts
CHANGED
|
@@ -20,16 +20,15 @@ export declare const RUNTIME_ENV_VALUES: readonly ["production", "development",
|
|
|
20
20
|
/**
|
|
21
21
|
* Normalizes a user-supplied environment string to the canonical form.
|
|
22
22
|
*
|
|
23
|
-
*
|
|
24
|
-
* `.
|
|
25
|
-
*
|
|
26
|
-
* reaching downstream code that only knows the canonical set.
|
|
23
|
+
* Legacy configs use `"online"`; published Service Tree examples also use
|
|
24
|
+
* `"prod"`. Both identify production and must compare as the same environment.
|
|
25
|
+
* Unknown values stay unchanged so callers can reject unsupported bindings.
|
|
27
26
|
*
|
|
28
27
|
* @param e - Any string (including legacy aliases).
|
|
29
|
-
* @returns
|
|
28
|
+
* @returns The normalized production alias, or the original value.
|
|
30
29
|
*/
|
|
31
30
|
export declare function normalizeEnv(e: string): string;
|
|
32
|
-
/** Checks
|
|
31
|
+
/** Checks production and its legacy aliases. */
|
|
33
32
|
export declare function isProduction(e: string): boolean;
|
|
34
33
|
/** Checks whether the normalized environment is `daily`. */
|
|
35
34
|
export declare function isDaily(e: string): boolean;
|
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.d.ts
CHANGED
|
@@ -61,6 +61,8 @@ export interface CLIConfig {
|
|
|
61
61
|
locale: string;
|
|
62
62
|
cookie: string | undefined;
|
|
63
63
|
accessKey: string | undefined;
|
|
64
|
+
/** Credential location only; never includes credential content. */
|
|
65
|
+
accessKeySource?: string;
|
|
64
66
|
format: OutputFormat | undefined;
|
|
65
67
|
pageSize: number | undefined;
|
|
66
68
|
riskLevel: Risk;
|
|
@@ -180,19 +182,7 @@ export declare function getLocalAppAliases(raw: Record<string, any>): Record<str
|
|
|
180
182
|
* @returns App code from `apps.<name>.appcode`, or undefined when not configured.
|
|
181
183
|
*/
|
|
182
184
|
export declare function resolveLocalAppAliasCode(raw: Record<string, any>, name: string | undefined): string | undefined;
|
|
183
|
-
/**
|
|
184
|
-
* Reads the appCode from the config file (fallback path, used when no flag is provided).
|
|
185
|
-
*
|
|
186
|
-
* Resolution order:
|
|
187
|
-
* 1. Top-level `appcode` or `app` field
|
|
188
|
-
* 2. `defaultApp` local alias profile's `appcode`
|
|
189
|
-
* 3. Cached remote app list (resolved by app name)
|
|
190
|
-
* 4. First local alias profile's `appcode`
|
|
191
|
-
*
|
|
192
|
-
* Why this fallback exists: commands that don't receive `--appcode` can still
|
|
193
|
-
* resolve it from the config. This enables the "just run `lovrabet dataset list`"
|
|
194
|
-
* UX where the active app is implied by the config.
|
|
195
|
-
*/
|
|
185
|
+
/** Reads the current app using the same selection rules as command execution. */
|
|
196
186
|
export declare function readAppCodeFromConfig(): string | undefined;
|
|
197
187
|
/**
|
|
198
188
|
* Reads the config file for a specific scope (global or project).
|
package/lib/context.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a107_0x404eee=a107_0x4d3b;(function(_0x2c4690,_0x1035b9){const _0x2654ea=a107_0x4d3b,_0x48edcb=_0x2c4690();while(!![]){try{const _0x5064f6=-parseInt(_0x2654ea(0x208))/0x1+-parseInt(_0x2654ea(0x1ec))/0x2+-parseInt(_0x2654ea(0x1d4))/0x3+parseInt(_0x2654ea(0x1c2))/0x4*(parseInt(_0x2654ea(0x201))/0x5)+-parseInt(_0x2654ea(0x1bf))/0x6*(-parseInt(_0x2654ea(0x203))/0x7)+-parseInt(_0x2654ea(0x1d8))/0x8+parseInt(_0x2654ea(0x1cd))/0x9*(parseInt(_0x2654ea(0x1e8))/0xa);if(_0x5064f6===_0x1035b9)break;else _0x48edcb['push'](_0x48edcb['shift']());}catch(_0xbebd8c){_0x48edcb['push'](_0x48edcb['shift']());}}}(a107_0x20b4,0x8a26a));function a107_0x20b4(){const _0x377a91=['1935945MDzGJg','EACCES','explicit','top-level','prototype','nonInteractive','project','2803005PDbXEc','routing','kbDomain','authRequired','354248PvuGOw','./constant/domain.js','host','trim','defaultApp','ACCESS_KEY','online','global','isTTY','configFileNames','apps','env','apiDomain','platformDomain','hasOwnProperty','newConfigFileName','90Wjvxhb','globalConfig','setRawMode','cwd','2103744QpADcD','production','ENV','setLogPath','local-alias','true','stdout','skillHubDomain','format','agentDomain','raw','call','EXDEV','./constant/env.js','FORMAT','projectConfig','userDomain','locale','riskLevel','daily','VERBOSE','901955COfWGJ','isRaw','1043RXczSp','object','pageSize','stringify','cache','217903ffcHLp','read','nativeToolAvailable','appcode','.tmp','accessKey','stdin','utf8','kbServiceDomain','string','some','6312jaNUIz','APP','values','16gMCYdX','message','slice','join','code','skillDomain','parse','inherit','argv','development','app'];a107_0x20b4=function(){return _0x377a91;};return a107_0x20b4();}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[a107_0x404eee(0x1e1)];export const NEW_CONFIG_NAME=PRODUCT_CONFIG[a107_0x404eee(0x1e7)];function resolveConfigPath(_0x3374be){for(const _0x3d0ece of CONFIG_NAMES){const _0xcd84ad=resolve(_0x3374be,_0x3d0ece);if(existsSync(_0xcd84ad))return _0xcd84ad;}return undefined;}export function resolveWriteConfigPath(_0xe9eb23){const _0x8c5317=a107_0x404eee,_0x48b2fa=_0xe9eb23===_0x8c5317(0x1d3)?process[_0x8c5317(0x1eb)]():homedir(),_0x3e92b0=resolveConfigPath(_0x48b2fa);return _0x3e92b0??resolve(_0x48b2fa,NEW_CONFIG_NAME);}export function readConfigFile(_0xedf346){const _0xf021f6=a107_0x404eee;try{if(existsSync(_0xedf346)){const _0x5430d9=readFileSync(_0xedf346,{'encoding':_0xf021f6(0x20f)});if(_0x5430d9){const _0xe08d82=JSON[_0xf021f6(0x1c8)](_0x5430d9);return migrateOnlineEnv(_0xedf346,_0xe08d82),_0xe08d82;}}}catch{}return{};}function migrateOnlineEnv(_0x51d47e,_0x42c812){const _0x500a8f=a107_0x404eee;let _0x33b590=![];_0x42c812[_0x500a8f(0x1e3)]===_0x500a8f(0x1de)&&(_0x42c812[_0x500a8f(0x1e3)]=_0x500a8f(0x1ed),_0x33b590=!![]);if(_0x42c812['apps']&&typeof _0x42c812['apps']===_0x500a8f(0x204))for(const _0x7e7464 of Object[_0x500a8f(0x1c1)](_0x42c812[_0x500a8f(0x1e2)])){_0x7e7464&&_0x7e7464[_0x500a8f(0x1e3)]==='online'&&(_0x7e7464[_0x500a8f(0x1e3)]=_0x500a8f(0x1ed),_0x33b590=!![]);}if(_0x33b590)try{writeConfigFile(_0x51d47e,_0x42c812);}catch{}}export function writeConfigFile(_0x395cec,_0x4b2032){const _0x4eb285=a107_0x404eee,_0x2388a4=dirname(_0x395cec);!existsSync(_0x2388a4)&&mkdirSync(_0x2388a4,{'recursive':!![]});const _0xc5f11f=_0x395cec+_0x4eb285(0x20c);try{writeFileSync(_0xc5f11f,JSON[_0x4eb285(0x206)](_0x4b2032,null,0x2)+'\x0a',{'encoding':_0x4eb285(0x20f),'mode':0x180});try{renameSync(_0xc5f11f,_0x395cec);}catch(_0x31a382){if(_0x31a382[_0x4eb285(0x1c6)]==='EPERM'||_0x31a382['code']===_0x4eb285(0x1f8)||_0x31a382[_0x4eb285(0x1c6)]===_0x4eb285(0x1ce)){writeFileSync(_0x395cec,JSON[_0x4eb285(0x206)](_0x4b2032,null,0x2)+'\x0a',{'encoding':_0x4eb285(0x20f)});try{unlinkSync(_0xc5f11f);}catch{}}else throw _0x31a382;}}catch(_0x45f130){try{unlinkSync(_0xc5f11f);}catch{}throw _0x45f130;}}export function isNonInteractiveMode(_0x4a4648){const _0x2d1927=a107_0x404eee;return!!(_0x4a4648[_0x2d1927(0x1d2)]||_0x4a4648['ci']||productEnvNames('CI')[_0x2d1927(0x1be)](_0x367e10=>process.env[_0x367e10]==='true')||process.env.CI===_0x2d1927(0x1f1)||!process[_0x2d1927(0x1f2)][_0x2d1927(0x1e0)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x3652fc=a107_0x404eee;if(!process[_0x3652fc(0x20e)][_0x3652fc(0x1e0)])return![];try{const _0xd2211b=process['stdin'][_0x3652fc(0x202)];return process[_0x3652fc(0x20e)][_0x3652fc(0x1ea)](!![]),process[_0x3652fc(0x20e)]['setRawMode'](_0xd2211b??![]),!![];}catch{return![];}}export async function createContext(_0x1e88e8){const _0x40fd57=a107_0x404eee,_0x3da103=readRawConfig(),_0x3c297=buildConfig(_0x3da103,_0x1e88e8);await initGlobalEnvironment(_0x3c297);const {getUserDomain:_0x2faf42,getApiDomain:_0x1aec84}=await import(_0x40fd57(0x1d9)),_0x36b3a3={'apiDomain':_0x1aec84(),'userDomain':_0x2faf42()},_0x46de21=await buildAuth(_0x3c297);logger[_0x40fd57(0x1ef)](process['cwd']());const _0xc2896e=(CLI_BIN_NAME+'\x20'+redactCommandArgv(process[_0x40fd57(0x1ca)][_0x40fd57(0x1c4)](0x2))[_0x40fd57(0x1c5)]('\x20'))[_0x40fd57(0x1db)]();logger['setRawCommand'](_0xc2896e);const _0x4e55c2=isNonInteractiveMode(_0x1e88e8);return{'config':_0x3c297,'auth':_0x46de21,'logger':logger,'env':_0x36b3a3,'nonInteractive':_0x4e55c2};}export function buildConfigFromFlags(_0x2d990d){return buildConfig(readRawConfig(),_0x2d990d);}export function getLocalAppAliases(_0x2ce307){const _0x49a209=a107_0x404eee;return _0x2ce307[_0x49a209(0x1e2)]&&typeof _0x2ce307[_0x49a209(0x1e2)]===_0x49a209(0x204)?_0x2ce307[_0x49a209(0x1e2)]:{};}export function resolveLocalAppAliasCode(_0x34382f,_0x41fa0b){const _0x3a19b9=a107_0x404eee;if(!_0x41fa0b)return undefined;const _0x4b9009=getLocalAppAliases(_0x34382f)[_0x41fa0b],_0x416bc6=_0x4b9009?.['appcode'];return typeof _0x416bc6===_0x3a19b9(0x211)&&_0x416bc6[_0x3a19b9(0x1db)]()?_0x416bc6[_0x3a19b9(0x1db)]():undefined;}export function readAppCodeFromConfig(){const _0x16ab05=a107_0x404eee,_0x1f43e6=readRawConfig(),_0x4ea27d=_0x1f43e6[_0x16ab05(0x20b)]??_0x1f43e6[_0x16ab05(0x1cc)];if(typeof _0x4ea27d==='string'&&_0x4ea27d['trim']())return _0x4ea27d[_0x16ab05(0x1db)]();const _0x157308=resolveLocalAppAliasCode(_0x1f43e6,typeof _0x1f43e6['defaultApp']===_0x16ab05(0x211)?_0x1f43e6[_0x16ab05(0x1dc)]:undefined);if(_0x157308)return _0x157308;const _0x44bc75=normalizeEnv(String(_0x1f43e6[_0x16ab05(0x1e3)]||_0x16ab05(0x1ed))),_0xdbb523=isDaily(_0x44bc75)?_0x16ab05(0x1ff):isDev(_0x44bc75)?_0x16ab05(0x1cb):_0x16ab05(0x1ed),_0x539b72=resolveCachedAppCode(typeof _0x1f43e6[_0x16ab05(0x1dc)]==='string'?_0x1f43e6[_0x16ab05(0x1dc)]:undefined,_0xdbb523,typeof _0x1f43e6['accessKey']==='string'?_0x1f43e6['accessKey']:undefined);if(_0x539b72)return _0x539b72;const _0x1e7013=Object['values'](getLocalAppAliases(_0x1f43e6))['find'](_0x10ada9=>_0x10ada9?.[_0x16ab05(0x20b)]);return typeof _0x1e7013?.[_0x16ab05(0x20b)]==='string'&&_0x1e7013[_0x16ab05(0x20b)][_0x16ab05(0x1db)]()?_0x1e7013[_0x16ab05(0x20b)]['trim']():undefined;}export function readScopedConfig(_0x2da46a){const _0x4a6b5a=a107_0x404eee,_0x1a660d=_0x2da46a[_0x4a6b5a(0x1df)]?_0x4a6b5a(0x1df):_0x4a6b5a(0x1d3);return readConfigFile(resolveWriteConfigPath(_0x1a660d));}export function writeScopedConfig(_0x2a2e40,_0x496d0d){const _0x283cb6=a107_0x404eee,_0x5bb2fc=_0x496d0d[_0x283cb6(0x1df)]?_0x283cb6(0x1df):_0x283cb6(0x1d3);writeConfigFile(resolveWriteConfigPath(_0x5bb2fc),_0x2a2e40);}export async function initGlobalEnvironment(_0x541bb9){const _0x40d1a3=a107_0x404eee,{initEnv:_0x2aa0f3}=await import(_0x40d1a3(0x1f9));_0x2aa0f3(_0x541bb9['env']);const {initDomains:_0x54d23b}=await import(_0x40d1a3(0x1d9)),_0x488982=resolveEnterpriseRoutingConfig(_0x541bb9[_0x40d1a3(0x1f6)][_0x40d1a3(0x1d5)]),_0x4848ff=[_0x40d1a3(0x1e4),_0x40d1a3(0x1da),_0x40d1a3(0x1fc),'runtimeDomain',_0x40d1a3(0x1c7),_0x40d1a3(0x1f3),_0x40d1a3(0x1f5),'platformDomain',_0x40d1a3(0x1d6),'kbServiceDomain'],_0xaeba8d=_0x488982!==undefined||_0x4848ff[_0x40d1a3(0x1be)](_0x3ffb2a=>Object[_0x40d1a3(0x1d1)][_0x40d1a3(0x1e6)][_0x40d1a3(0x1f7)](_0x541bb9['raw'],_0x3ffb2a));_0x54d23b({'apiDomain':_0x488982?_0x488982[_0x40d1a3(0x1e4)]:_0x541bb9[_0x40d1a3(0x1f6)][_0x40d1a3(0x1e4)]||_0x541bb9['raw']['host']||undefined,'userDomain':_0x488982?_0x488982[_0x40d1a3(0x1fc)]:_0x541bb9['raw'][_0x40d1a3(0x1fc)]||undefined,'runtimeDomain':_0x488982?_0x488982['runtimeDomain']:_0x541bb9[_0x40d1a3(0x1f6)]['runtimeDomain']||undefined,'skillDomain':_0x488982?_0x488982[_0x40d1a3(0x1c7)]:_0x541bb9['raw'][_0x40d1a3(0x1c7)]||_0x541bb9[_0x40d1a3(0x1f6)][_0x40d1a3(0x1f3)]||_0x541bb9[_0x40d1a3(0x1f6)][_0x40d1a3(0x1f5)]||_0x541bb9[_0x40d1a3(0x1f6)][_0x40d1a3(0x1e5)]||undefined,'kbServiceDomain':_0x488982?_0x488982[_0x40d1a3(0x210)]:typeof _0x541bb9[_0x40d1a3(0x1f6)][_0x40d1a3(0x210)]===_0x40d1a3(0x211)&&_0x541bb9[_0x40d1a3(0x1f6)]['kbServiceDomain']['trim']()?_0x541bb9[_0x40d1a3(0x1f6)][_0x40d1a3(0x210)]:undefined,'allowOfficialKbServiceDefault':!_0xaeba8d,'region':normalizeLovrabetRegion(_0x541bb9[_0x40d1a3(0x1f6)]['region'])});}export function getProjectConfigPath(){const _0x3ce7a4=a107_0x404eee;return resolveConfigPath(process[_0x3ce7a4(0x1eb)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0x38a690){const _0x2d08b9=a107_0x404eee;if(!existsSync(_0x38a690))return{'status':'missing'};try{const _0x445f85=readFileSync(_0x38a690,{'encoding':_0x2d08b9(0x20f)});if(!_0x445f85?.[_0x2d08b9(0x1db)]())return{'status':'empty'};const _0x67f60d=JSON[_0x2d08b9(0x1c8)](_0x445f85);return{'status':'ok','data':_0x67f60d};}catch(_0x3278d6){return{'status':'error','message':_0x3278d6 instanceof Error?_0x3278d6[_0x2d08b9(0x1c3)]:String(_0x3278d6)};}}export function loadRawConfigLayers(_0x2b949b){const _0x2218a8=a107_0x404eee;let _0x456772={},_0x56988b={},_0xdd4ea8,_0x51c9c4;try{_0xdd4ea8=resolveConfigPath(homedir());if(_0xdd4ea8){const _0x4e89cf=readFileSync(_0xdd4ea8,{'encoding':_0x2218a8(0x20f)});if(_0x4e89cf)_0x456772=JSON[_0x2218a8(0x1c8)](_0x4e89cf);}}catch{}try{const _0xea7f2a=_0x2b949b||process['cwd']();_0x51c9c4=resolveConfigPath(_0xea7f2a);if(_0x51c9c4){const _0x15ec28=readFileSync(_0x51c9c4,{'encoding':_0x2218a8(0x20f)});if(_0x15ec28)_0x56988b=JSON[_0x2218a8(0x1c8)](_0x15ec28);}}catch{}return{'globalPath':_0xdd4ea8,'projectPath':_0x51c9c4,'globalConfig':_0x456772,'projectConfig':_0x56988b};}function mergeRawConfigLayers(_0x233d6b){const _0x3a5486=a107_0x404eee,{globalConfig:_0x1c3fa5,projectConfig:_0x27fba2}=_0x233d6b,_0x3b8536={..._0x1c3fa5,..._0x27fba2};delete _0x3b8536[_0x3a5486(0x1c9)];if(_0x3a5486(0x1dc)in _0x27fba2)_0x3b8536[_0x3a5486(0x1dc)]=_0x27fba2[_0x3a5486(0x1dc)];else _0x1c3fa5['defaultApp']&&(_0x3b8536[_0x3a5486(0x1dc)]=_0x1c3fa5[_0x3a5486(0x1dc)]);return _0x3b8536;}function a107_0x4d3b(_0x45ca44,_0x5cb4d7){_0x45ca44=_0x45ca44-0x1be;const _0x20b4d5=a107_0x20b4();let _0x4d3bc5=_0x20b4d5[_0x45ca44];return _0x4d3bc5;}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0x3701cd){return mergeRawConfigLayers(loadRawConfigLayers(_0x3701cd));}export function readRawConfigWithLayers(_0x3c4845){const _0x379e4f=loadRawConfigLayers(_0x3c4845);return{'config':mergeRawConfigLayers(_0x379e4f),'layers':_0x379e4f};}export function resolveDefaultAppSource(_0x7eace8){const _0x120d6a=a107_0x404eee;if(_0x120d6a(0x1dc)in _0x7eace8[_0x120d6a(0x1fb)])return'project';if(_0x7eace8[_0x120d6a(0x1e9)][_0x120d6a(0x1dc)])return'global';return null;}function buildConfig(_0x49543d,_0x5126b3){const _0x58c4dd=a107_0x404eee,_0x638870=_0x49543d['defaultApp']||undefined,_0x129646=_0x5126b3['app']||env(_0x58c4dd(0x1c0))||undefined,_0x53b479=_0x129646||_0x638870||undefined,_0x33fa04=env(_0x58c4dd(0x1dd))||_0x49543d[_0x58c4dd(0x20d)]||undefined,_0x46e511=_0x5126b3['env']||env(_0x58c4dd(0x1ee))||_0x49543d['env']||DEFAULT_CONFIG_VALUES[_0x58c4dd(0x1e3)],_0x116427=normalizeEnv(String(_0x46e511)),_0x37d63d=isDaily(_0x116427)?'daily':isDev(_0x116427)?'development':_0x58c4dd(0x1ed),_0x2b7db8=typeof _0x5126b3[_0x58c4dd(0x20b)]===_0x58c4dd(0x211)?_0x5126b3[_0x58c4dd(0x20b)]:undefined,_0x38030a=env('APPCODE'),_0x5864d0=_0x129646?undefined:_0x49543d['appcode']||_0x49543d[_0x58c4dd(0x1cc)]||undefined,_0x217989=_0x129646||(_0x5864d0?undefined:_0x638870),_0x36bcb0=resolveLocalAppAliasCode(_0x49543d,_0x217989),_0x25e2ec=resolveCachedAppCode(_0x217989,_0x37d63d,_0x33fa04),_0x21066e=_0x2b7db8||_0x38030a||_0x5864d0||_0x36bcb0||_0x25e2ec||undefined,_0x184634=_0x2b7db8?_0x58c4dd(0x1cf):_0x38030a?'env':_0x5864d0?_0x58c4dd(0x1d0):_0x36bcb0?_0x58c4dd(0x1f0):_0x25e2ec?_0x58c4dd(0x207):undefined,_0x5f1038=_0x49543d[_0x58c4dd(0x1fd)]||DEFAULT_CONFIG_VALUES[_0x58c4dd(0x1fd)],_0x6b35e=undefined,_0x2998dc=_0x5126b3[_0x58c4dd(0x1f4)]||env(_0x58c4dd(0x1fa))||_0x49543d[_0x58c4dd(0x1f4)],_0x545710=normalizeLegacyOutputFormat(_0x2998dc),_0x18eef1=env('PAGE_SIZE')||_0x49543d[_0x58c4dd(0x205)],_0x529279=_0x18eef1?Number(_0x18eef1)||undefined:undefined,_0x2515f9=_0x49543d[_0x58c4dd(0x1fe)],_0x5915bc=_0x2515f9===_0x58c4dd(0x209)||_0x2515f9==='write'||_0x2515f9==='high-risk-write'?_0x2515f9:DEFAULT_CONFIG_VALUES['riskLevel'],_0x24f21c=_0x49543d[_0x58c4dd(0x20a)]===!![],_0x683967=env(_0x58c4dd(0x200)),_0x4e7bde=_0x683967==='1'||_0x683967===_0x58c4dd(0x1f1);return{'appCode':typeof _0x21066e===_0x58c4dd(0x211)&&_0x21066e[_0x58c4dd(0x1db)]()?_0x21066e['trim']():undefined,'appCodeSource':_0x184634,'env':_0x37d63d,'locale':_0x5f1038,'cookie':_0x6b35e,'accessKey':_0x33fa04,'format':_0x545710,'pageSize':_0x529279,'riskLevel':_0x5915bc,'nativeToolAvailable':_0x24f21c,'verbose':_0x4e7bde,'defaultApp':_0x638870,'currentApp':typeof _0x53b479===_0x58c4dd(0x211)?_0x53b479:undefined,'raw':_0x49543d};}function env(_0x3f9840){return productEnv(_0x3f9840);}async function buildAuth(_0x1fd5c2){const _0x156528=a107_0x404eee,_0x1d1cb0='',_0x10cc63=!!_0x1fd5c2[_0x156528(0x20d)];return{'cookie':_0x1d1cb0,'isLoggedIn':_0x10cc63,async 'getOrLogin'(){const _0x2ad6c1=_0x156528;if(_0x10cc63)return _0x1d1cb0;throw CliErrors[_0x2ad6c1(0x1d7)]();}};}
|
|
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)]();}};}
|