@lovrabet/lovrabet-cli 2.3.8-beta.1 → 2.3.8-beta.3
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/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.d.ts +32 -6
- 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.d.ts +2 -4
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/update.js +1 -1
- package/lib/commands/user-account/bind.js +1 -1
- package/lib/commands/user-account/index.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/config/domain-config.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/app.js +1 -1
- package/lib/constant/auth-mode.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/distribution.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/product.js +1 -1
- package/lib/constant/region.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/url.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/api-client.d.ts +26 -358
- 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-search-client.js +1 -1
- package/lib/core/sdk-client.d.ts +9 -10
- package/lib/core/sdk-client.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/access-error.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/dryrun.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/preparse.js +1 -1
- package/lib/framework/rate-limit.js +1 -1
- package/lib/framework/raw-flags.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-confirmation.js +1 -1
- package/lib/framework/runner-error.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/service-order.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/generated/official-routing.js +1 -1
- package/lib/generated/routing-contract.js +1 -1
- package/lib/help.js +1 -1
- package/lib/postinstall.js +1 -1
- package/lib/runtime/confirmation.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/services/dataset-import/auto-id-runner.js +1 -1
- package/lib/services/dataset-import/excel-reader.js +1 -1
- package/lib/services/dataset-import/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.d.ts +2 -0
- package/lib/utils/runtime-user-id.js +1 -0
- 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 +2 -2
- package/skills/lovrabet/SKILL.md +1 -1
- package/skills/lovrabet/guides/role-and-permission-workflow.md +3 -2
- package/skills/lovrabet.manifest.json +3 -3
package/lib/constant/app.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a92_0x6a27(_0x3d8566,_0x35c8e4){_0x3d8566=_0x3d8566-0x10e;const _0x1ff26c=a92_0x1ff2();let _0x6a274c=_0x1ff26c[_0x3d8566];return _0x6a274c;}const a92_0x27d2ab=a92_0x6a27;(function(_0x3e2e36,_0x3a9d0c){const _0x378d48=a92_0x6a27,_0x5f276f=_0x3e2e36();while(!![]){try{const _0x26f156=parseInt(_0x378d48(0x114))/0x1*(parseInt(_0x378d48(0x119))/0x2)+parseInt(_0x378d48(0x115))/0x3+-parseInt(_0x378d48(0x10f))/0x4*(-parseInt(_0x378d48(0x116))/0x5)+parseInt(_0x378d48(0x113))/0x6+-parseInt(_0x378d48(0x10e))/0x7+parseInt(_0x378d48(0x117))/0x8*(-parseInt(_0x378d48(0x110))/0x9)+-parseInt(_0x378d48(0x111))/0xa;if(_0x26f156===_0x3a9d0c)break;else _0x5f276f['push'](_0x5f276f['shift']());}catch(_0xf2d296){_0x5f276f['push'](_0x5f276f['shift']());}}}(a92_0x1ff2,0xc1098));function a92_0x1ff2(){const _0x385d29=['2498152kHoomJ','Published','42JJATHB','PUBLISHED','8459045zeJEXS','26312NwyGrJ','9VJnVgt','7288950vHNeGT','UNPUBLISH','5118606ypgtFS','56127GWudfK','617985JIWmVD','610oSQvYb'];a92_0x1ff2=function(){return _0x385d29;};return a92_0x1ff2();}export const APP_PUBLISH_STATUS={'Published':a92_0x27d2ab(0x11a),'Unpublished':a92_0x27d2ab(0x112)};export const RUNTIME_ACCESSIBLE_APP_STATUS=APP_PUBLISH_STATUS[a92_0x27d2ab(0x118)];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x44e103,_0x195cfe){const _0x454462=a93_0x32f1,_0x2af0a4=_0x44e103();while(!![]){try{const _0x588c04=parseInt(_0x454462(0x1e7))/0x1*(-parseInt(_0x454462(0x1ea))/0x2)+-parseInt(_0x454462(0x1eb))/0x3*(parseInt(_0x454462(0x1e9))/0x4)+-parseInt(_0x454462(0x1e8))/0x5+parseInt(_0x454462(0x1ef))/0x6+-parseInt(_0x454462(0x1f0))/0x7+parseInt(_0x454462(0x1ee))/0x8*(-parseInt(_0x454462(0x1f1))/0x9)+parseInt(_0x454462(0x1e6))/0xa*(parseInt(_0x454462(0x1ec))/0xb);if(_0x588c04===_0x195cfe)break;else _0x2af0a4['push'](_0x2af0a4['shift']());}catch(_0x3c269c){_0x2af0a4['push'](_0x2af0a4['shift']());}}}(a93_0x1127,0x985fb));function a93_0x1127(){const _0x105ab1=['1169796PMSSJs','4744446OppHGw','8977320RChrFr','104410wiQDyO','1090457vdXcKE','2448625tRxDiw','1588lDLZpl','2daoDCx','3243DlOmYu','4334DLMSsk','ClientAk','8txBRqJ'];a93_0x1127=function(){return _0x105ab1;};return a93_0x1127();}export const AUTH_MODE={'ClientAk':'client-ak'};function a93_0x32f1(_0x492839,_0x12a910){_0x492839=_0x492839-0x1e6;const _0x112738=a93_0x1127();let _0x32f160=_0x112738[_0x492839];return _0x32f160;}export function isAuthMode(_0x3d23ff){const _0x32c227=a93_0x32f1;return _0x3d23ff===AUTH_MODE[_0x32c227(0x1ed)];}
|
package/lib/constant/cli.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a94_0x21450c=a94_0x5c54;(function(_0x582198,_0x353b51){const _0x3bfb0b=a94_0x5c54,_0x182d58=_0x582198();while(!![]){try{const _0x182b63=-parseInt(_0x3bfb0b(0x1e9))/0x1*(-parseInt(_0x3bfb0b(0x1f7))/0x2)+parseInt(_0x3bfb0b(0x1c7))/0x3*(-parseInt(_0x3bfb0b(0x1ed))/0x4)+-parseInt(_0x3bfb0b(0x1e0))/0x5+-parseInt(_0x3bfb0b(0x1da))/0x6*(-parseInt(_0x3bfb0b(0x1ca))/0x7)+parseInt(_0x3bfb0b(0x1ec))/0x8+-parseInt(_0x3bfb0b(0x1d8))/0x9*(-parseInt(_0x3bfb0b(0x1ef))/0xa)+-parseInt(_0x3bfb0b(0x1e4))/0xb*(parseInt(_0x3bfb0b(0x1e8))/0xc);if(_0x182b63===_0x353b51)break;else _0x182d58['push'](_0x182d58['shift']());}catch(_0x18f4b9){_0x182d58['push'](_0x182d58['shift']());}}}(a94_0x3402,0xa15b4));import{PRODUCT_CONFIG}from'../constant/product.js';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';export const CLI_BIN_NAME=PRODUCT_CONFIG[a94_0x21450c(0x1e6)];export const CLI_DISPLAY_NAME=PRODUCT_CONFIG['cliDisplayName'];function a94_0x3402(){const _0x37dedd=['meowKey','Preview\x20operation\x20without\x20executing','format','Verbose\x20output','Alias\x20for\x20--non-interactive','Output\x20format','174141rgUAqp','non-interactive','7923126srysVh','app','Name\x20filter','Show\x20help','params','string','5010410rFIRmC','<code>','dryRun','map','140492LOleGR','fromEntries','cliBinName','verbose','108SaPwCj','3TjsNOU','json\x20|\x20pretty\x20|\x20compress','appcode','1700176vVLNll','1133964vSgPrD','name','110nwemGU','yes','env','dry-run','Skip\x20confirmation\x20for\x20high-risk\x20writes','nonInteractive','Select\x20app\x20profile\x20by\x20name','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','588358BOiXfE','type','9TkDsgo','Force\x20non-interactive\x20mode\x20(CI)','global','7EnCKdv','Override\x20appcode','SQL\x20query\x20code','boolean','Environment','help','clear','sqlcode'];a94_0x3402=function(){return _0x37dedd;};return a94_0x3402();}export const NPM_PACKAGE_NAME=LOVRABET_NPM_PACKAGE_NAME;function a94_0x5c54(_0x3a75cb,_0x10e8bf){_0x3a75cb=_0x3a75cb-0x1c6;const _0x340295=a94_0x3402();let _0x5c542f=_0x340295[_0x3a75cb];return _0x5c542f;}export const GLOBAL_FLAGS=[{'name':a94_0x21450c(0x1eb),'meowKey':a94_0x21450c(0x1eb),'type':a94_0x21450c(0x1df),'description':a94_0x21450c(0x1cb),'hint':a94_0x21450c(0x1e1)},{'name':a94_0x21450c(0x1db),'meowKey':a94_0x21450c(0x1db),'type':a94_0x21450c(0x1df),'description':a94_0x21450c(0x1f5),'hint':'<name>'},{'name':a94_0x21450c(0x1f1),'meowKey':a94_0x21450c(0x1f1),'type':'string','description':a94_0x21450c(0x1ce),'hint':'production\x20|\x20development\x20|\x20daily'},{'name':a94_0x21450c(0x1d4),'meowKey':'format','type':a94_0x21450c(0x1df),'description':a94_0x21450c(0x1d7),'hint':a94_0x21450c(0x1ea)},{'name':'jq','meowKey':'jq','type':'string','description':a94_0x21450c(0x1f6),'hint':'<expr>'},{'name':a94_0x21450c(0x1f2),'meowKey':a94_0x21450c(0x1e2),'type':a94_0x21450c(0x1cd),'description':a94_0x21450c(0x1d3)},{'name':a94_0x21450c(0x1f0),'meowKey':a94_0x21450c(0x1f0),'type':a94_0x21450c(0x1cd),'description':a94_0x21450c(0x1f3)},{'name':a94_0x21450c(0x1d9),'meowKey':a94_0x21450c(0x1f4),'type':a94_0x21450c(0x1cd),'description':a94_0x21450c(0x1c8)},{'name':a94_0x21450c(0x1c9),'meowKey':a94_0x21450c(0x1c9),'type':a94_0x21450c(0x1cd),'description':'Use\x20global\x20config\x20scope'},{'name':'ci','meowKey':'ci','type':'boolean','description':a94_0x21450c(0x1d6),'hidden':!![]},{'name':'help','meowKey':a94_0x21450c(0x1cf),'type':a94_0x21450c(0x1cd),'description':a94_0x21450c(0x1dd)},{'name':'id','meowKey':'id','type':'string','description':'Record\x20ID','hidden':!![]},{'name':a94_0x21450c(0x1ee),'meowKey':'name','type':'string','description':a94_0x21450c(0x1dc),'hidden':!![]},{'name':'sqlcode','meowKey':a94_0x21450c(0x1d1),'type':a94_0x21450c(0x1df),'description':a94_0x21450c(0x1cc),'hidden':!![]},{'name':a94_0x21450c(0x1de),'meowKey':a94_0x21450c(0x1de),'type':a94_0x21450c(0x1df),'description':'JSON\x20params\x20for\x20execute\x20commands','hidden':!![]},{'name':'verbose','meowKey':a94_0x21450c(0x1e7),'type':a94_0x21450c(0x1cd),'description':a94_0x21450c(0x1d5),'hidden':!![]},{'name':a94_0x21450c(0x1d0),'meowKey':'clear','type':a94_0x21450c(0x1cd),'description':'Clear\x20output','hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a94_0x21450c(0x1eb),a94_0x21450c(0x1db),'env',a94_0x21450c(0x1d4),'jq',a94_0x21450c(0x1f2),a94_0x21450c(0x1f0),'non-interactive','ci']);export function buildMeowFlags(){const _0x12d735=a94_0x21450c;return Object[_0x12d735(0x1e5)](GLOBAL_FLAGS[_0x12d735(0x1e3)](_0x131e66=>[_0x131e66[_0x12d735(0x1d2)],{'type':_0x131e66[_0x12d735(0x1c6)]}]));}
|
package/lib/constant/defaults.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a95_0x223385=a95_0x405e;function a95_0x405e(_0x4ca256,_0x50e838){_0x4ca256=_0x4ca256-0x1d7;const _0x16e252=a95_0x16e2();let _0x405e92=_0x16e252[_0x4ca256];return _0x405e92;}(function(_0x373768,_0x5327d6){const _0x5b161d=a95_0x405e,_0xef30ef=_0x373768();while(!![]){try{const _0x152984=parseInt(_0x5b161d(0x1d9))/0x1*(parseInt(_0x5b161d(0x1de))/0x2)+-parseInt(_0x5b161d(0x1db))/0x3+-parseInt(_0x5b161d(0x1e1))/0x4+-parseInt(_0x5b161d(0x1da))/0x5+parseInt(_0x5b161d(0x1e0))/0x6+parseInt(_0x5b161d(0x1dd))/0x7*(-parseInt(_0x5b161d(0x1d8))/0x8)+-parseInt(_0x5b161d(0x1dc))/0x9*(-parseInt(_0x5b161d(0x1d7))/0xa);if(_0x152984===_0x5327d6)break;else _0xef30ef['push'](_0xef30ef['shift']());}catch(_0x3a9ce3){_0xef30ef['push'](_0xef30ef['shift']());}}}(a95_0x16e2,0x7451c));function a95_0x16e2(){const _0x3abf57=['387709eOPEWy','2HQNJEY','write','3088410hvHdNl','1432524XdRpEI','compress','production','13711240oFUvRF','80TClToJ','164908zSjclu','419990PWzjzb','1734972nuEtdx','9JeNdqI'];a95_0x16e2=function(){return _0x3abf57;};return a95_0x16e2();}export const DEFAULT_APP_PROFILE_NAME='main';export const DEFAULT_CONFIG_VALUES={'env':a95_0x223385(0x1e3),'format':a95_0x223385(0x1e2),'locale':'en-US','riskLevel':a95_0x223385(0x1df)};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a95_0x223385(0x1e2);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a96_0x216323=a96_0x37c5;(function(_0x46e014,_0x120a5b){const _0x2dba8f=a96_0x37c5,_0x422bef=_0x46e014();while(!![]){try{const _0x3ec378=-parseInt(_0x2dba8f(0x13f))/0x1*(-parseInt(_0x2dba8f(0x140))/0x2)+-parseInt(_0x2dba8f(0x137))/0x3+parseInt(_0x2dba8f(0x139))/0x4+parseInt(_0x2dba8f(0x13b))/0x5*(parseInt(_0x2dba8f(0x142))/0x6)+parseInt(_0x2dba8f(0x13e))/0x7+-parseInt(_0x2dba8f(0x13c))/0x8+-parseInt(_0x2dba8f(0x138))/0x9*(parseInt(_0x2dba8f(0x141))/0xa);if(_0x3ec378===_0x120a5b)break;else _0x422bef['push'](_0x422bef['shift']());}catch(_0x53bb3c){_0x422bef['push'](_0x422bef['shift']());}}}(a96_0x10e8,0x63307));import{PRODUCT_CONFIG}from'../constant/product.js';export const LOVRABET_NPM_PACKAGE_NAME=PRODUCT_CONFIG[a96_0x216323(0x143)];function a96_0x37c5(_0xee0d41,_0x5da8a6){_0xee0d41=_0xee0d41-0x137;const _0x10e84c=a96_0x10e8();let _0x37c551=_0x10e84c[_0xee0d41];return _0x37c551;}export const LOVRABET_SKILL_SOURCE=PRODUCT_CONFIG['skillSource'];function a96_0x10e8(){const _0x57222f=['4BXQNMV','2780zRqDxJ','77802CwYLJd','npmPackageName','254892qXTUUZ','6696SqwqlI','2063452DMeWMx','/dist/lovrabet-cli/config/index.json','70DioJHZ','5597512MbuyoL','cliCdnBaseUrl','3885959FsvERR','72613dwurFg'];a96_0x10e8=function(){return _0x57222f;};return a96_0x10e8();}export const NPM_REGISTRY_BASE_URL=PRODUCT_CONFIG['npmRegistryBaseUrl'];export const LOVRABET_CLI_CDN_BASE_URL=PRODUCT_CONFIG[a96_0x216323(0x13d)];export const LOVRABET_CLI_VERSION_POLICY_URL=LOVRABET_CLI_CDN_BASE_URL+a96_0x216323(0x13a);
|
package/lib/constant/domain.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a97_0x171f13=a97_0x34bc;(function(_0xc90a4b,_0x4a8f8d){const _0x133d95=a97_0x34bc,_0x5e0266=_0xc90a4b();while(!![]){try{const _0x144618=-parseInt(_0x133d95(0xec))/0x1+parseInt(_0x133d95(0xea))/0x2+parseInt(_0x133d95(0xee))/0x3*(parseInt(_0x133d95(0xe5))/0x4)+-parseInt(_0x133d95(0xe2))/0x5+-parseInt(_0x133d95(0xe4))/0x6+-parseInt(_0x133d95(0xe9))/0x7+parseInt(_0x133d95(0xf1))/0x8;if(_0x144618===_0x4a8f8d)break;else _0x5e0266['push'](_0x5e0266['shift']());}catch(_0x36071f){_0x5e0266['push'](_0x5e0266['shift']());}}}(a97_0x5067,0x897e1));import{getEnv,isProduction}from'../constant/env.js';import{OFFICIAL_ROUTING_PROFILES}from'../generated/official-routing.js';import{DEFAULT_LOVRABET_REGION}from'../constant/region.js';let customApiDomain,customUserDomain,customRuntimeDomain,customSkillDomain,customKbServiceDomain,allowOfficialKbServiceDefault=!![],activeRegion=DEFAULT_LOVRABET_REGION;export function initDomains(_0x572083){const _0x55c9ed=a97_0x34bc;customApiDomain=_0x572083?.[_0x55c9ed(0xf0)],customUserDomain=_0x572083?.['userDomain'],customRuntimeDomain=_0x572083?.['runtimeDomain'],customSkillDomain=_0x572083?.[_0x55c9ed(0xeb)],customKbServiceDomain=_0x572083?.[_0x55c9ed(0xf2)],allowOfficialKbServiceDefault=_0x572083?.[_0x55c9ed(0xf4)]??!![],activeRegion=_0x572083?.['region']??DEFAULT_LOVRABET_REGION;}const getActiveRegionDomains=()=>{const _0x186563=a97_0x34bc,_0x1402fb=OFFICIAL_ROUTING_PROFILES[activeRegion]['serviceDomains'];return isProduction(getEnv())?_0x1402fb[_0x186563(0xe7)]:_0x186563(0xed)in _0x1402fb?_0x1402fb[_0x186563(0xed)]:_0x1402fb[_0x186563(0xe7)];};export const getUserDomain=()=>customUserDomain||getActiveRegionDomains()[a97_0x171f13(0xf3)];export const getApiDomain=()=>customApiDomain||getActiveRegionDomains()[a97_0x171f13(0xe3)];function a97_0x34bc(_0x4b8425,_0x4abfa4){_0x4b8425=_0x4b8425-0xe2;const _0x5067b8=a97_0x5067();let _0x34bc0b=_0x5067b8[_0x4b8425];return _0x34bc0b;}export const getRuntimeDomain=()=>customRuntimeDomain||getActiveRegionDomains()[a97_0x171f13(0xef)];export const getSkillDomain=()=>customSkillDomain||getActiveRegionDomains()[a97_0x171f13(0xe8)];function a97_0x5067(){const _0x177a21=['223241iqQsqS','daily','567441nxZgEd','runtime','apiDomain','15674992tSAhNG','kbServiceDomain','user','allowOfficialKbServiceDefault','1903395TQZdUG','api','5388504GuLRiv','4pKQdEO','kbService','production','skill','611940zmOjsr','8144khcsWh','skillDomain'];a97_0x5067=function(){return _0x177a21;};return a97_0x5067();}export const getKbServiceDomain=()=>{const _0x4f7de5=a97_0x171f13;if(customKbServiceDomain)return customKbServiceDomain;if(!allowOfficialKbServiceDefault)return undefined;const _0x480fbc=getActiveRegionDomains();return _0x4f7de5(0xe6)in _0x480fbc?_0x480fbc[_0x4f7de5(0xe6)]:undefined;};
|
package/lib/constant/env.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a98_0x2ffb(_0x4c8f73,_0x1f253a){_0x4c8f73=_0x4c8f73-0x97;const _0x28db83=a98_0x28db();let _0x2ffbe5=_0x28db83[_0x4c8f73];return _0x2ffbe5;}const a98_0x43ee00=a98_0x2ffb;(function(_0x55ab8f,_0x10dcbb){const _0x57eb9d=a98_0x2ffb,_0x1b58fd=_0x55ab8f();while(!![]){try{const _0xd31355=parseInt(_0x57eb9d(0xa5))/0x1+-parseInt(_0x57eb9d(0x9f))/0x2*(-parseInt(_0x57eb9d(0x9c))/0x3)+-parseInt(_0x57eb9d(0x98))/0x4+-parseInt(_0x57eb9d(0x9d))/0x5+-parseInt(_0x57eb9d(0x9a))/0x6*(parseInt(_0x57eb9d(0x9b))/0x7)+-parseInt(_0x57eb9d(0xa3))/0x8+parseInt(_0x57eb9d(0xa1))/0x9;if(_0xd31355===_0x10dcbb)break;else _0x1b58fd['push'](_0x1b58fd['shift']());}catch(_0x194b0a){_0x1b58fd['push'](_0x1b58fd['shift']());}}}(a98_0x28db,0x67437));import{productEnv}from'../constant/product.js';function a98_0x28db(){const _0x51bc73=['online','5904032XSnloz','daily','237682XfItxV','dev','2274636zURWSv','production','101772xwtSqP','336zOdmcW','737925klckyU','153800lIreFS','ENV','4omyyre','development','16604406jAIquO'];a98_0x28db=function(){return _0x51bc73;};return a98_0x28db();}export const RUNTIME_ENV_VALUES=['production','development','daily'];export function normalizeEnv(_0x13bb8f){const _0x25adfe=a98_0x2ffb;return _0x13bb8f===_0x25adfe(0xa2)?_0x25adfe(0x99):_0x13bb8f;}export function isProduction(_0x582826){const _0x4b5c94=a98_0x2ffb;return normalizeEnv(_0x582826)===_0x4b5c94(0x99);}export function isDaily(_0x1a6616){const _0x36f8b0=a98_0x2ffb;return normalizeEnv(_0x1a6616)===_0x36f8b0(0xa4);}export function isDev(_0x4437c2){const _0x2e0c69=a98_0x2ffb,_0x3c8d90=normalizeEnv(_0x4437c2);return _0x3c8d90===_0x2e0c69(0xa0)||_0x3c8d90===_0x2e0c69(0x97);}let env=normalizeEnv(productEnv(a98_0x43ee00(0x9e))||a98_0x43ee00(0x99));export function getEnv(){return env;}export function initEnv(_0x505001){env=normalizeEnv(_0x505001);}
|
package/lib/constant/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a99_0x4c56(){const _0x3658d3=['1454343ltoyMA','51685hDmGaz','compress','36xoMJQo','7aixsQw','2799ljwtZf','750712Aoxtlg','2816742uxUOKZ','4742360NQUziN','6152cQsfBI','pretty','473698PHJpKs'];a99_0x4c56=function(){return _0x3658d3;};return a99_0x4c56();}const a99_0x41fdcd=a99_0x5b61;function a99_0x5b61(_0x40d7da,_0x5dc85d){_0x40d7da=_0x40d7da-0x147;const _0x4c5642=a99_0x4c56();let _0x5b61ce=_0x4c5642[_0x40d7da];return _0x5b61ce;}(function(_0x59b5f9,_0x17dfa9){const _0x3b42e1=a99_0x5b61,_0x4a1410=_0x59b5f9();while(!![]){try{const _0x3ddc20=parseInt(_0x3b42e1(0x14f))/0x1+-parseInt(_0x3b42e1(0x14a))/0x2+parseInt(_0x3b42e1(0x150))/0x3+parseInt(_0x3b42e1(0x147))/0x4*(-parseInt(_0x3b42e1(0x151))/0x5)+parseInt(_0x3b42e1(0x14b))/0x6*(-parseInt(_0x3b42e1(0x148))/0x7)+-parseInt(_0x3b42e1(0x14d))/0x8*(parseInt(_0x3b42e1(0x149))/0x9)+parseInt(_0x3b42e1(0x14c))/0xa;if(_0x3ddc20===_0x17dfa9)break;else _0x4a1410['push'](_0x4a1410['shift']());}catch(_0x294c29){_0x4a1410['push'](_0x4a1410['shift']());}}}(a99_0x4c56,0x3e6de));export const OUTPUT_FORMAT_VALUES=['json',a99_0x41fdcd(0x14e),a99_0x41fdcd(0x152)];
|
package/lib/constant/product.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a100_0x1a3269=a100_0x1d48;function a100_0x1d48(_0x43d8b6,_0x24f07d){_0x43d8b6=_0x43d8b6-0xc7;const _0x2a250f=a100_0x2a25();let _0x1d48d3=_0x2a250f[_0x43d8b6];return _0x1d48d3;}(function(_0x5c670,_0x3ea999){const _0x1f906b=a100_0x1d48,_0x4f0d3a=_0x5c670();while(!![]){try{const _0x480b44=parseInt(_0x1f906b(0xce))/0x1+-parseInt(_0x1f906b(0xd3))/0x2*(parseInt(_0x1f906b(0xdb))/0x3)+-parseInt(_0x1f906b(0xcb))/0x4+parseInt(_0x1f906b(0xd7))/0x5*(parseInt(_0x1f906b(0xe0))/0x6)+parseInt(_0x1f906b(0xc8))/0x7+-parseInt(_0x1f906b(0xcd))/0x8+-parseInt(_0x1f906b(0xdc))/0x9*(-parseInt(_0x1f906b(0xd0))/0xa);if(_0x480b44===_0x3ea999)break;else _0x4f0d3a['push'](_0x4f0d3a['shift']());}catch(_0xc41599){_0x4f0d3a['push'](_0x4f0d3a['shift']());}}}(a100_0x2a25,0x484fe));export const PRODUCT_CONFIG={'cliBinName':a100_0x1a3269(0xda),'cliDisplayName':a100_0x1a3269(0xd8),'npmPackageName':a100_0x1a3269(0xcc),'skillSource':a100_0x1a3269(0xc7),'internalSkillSource':a100_0x1a3269(0xd5),'globalSkillName':a100_0x1a3269(0xda),'npmRegistryBaseUrl':a100_0x1a3269(0xde),'cliCdnBaseUrl':'https://g.lovrabet.com','envPrefix':a100_0x1a3269(0xca),'legacyEnvPrefixes':[a100_0x1a3269(0xdf)],'configFileNames':[a100_0x1a3269(0xd4)],'newConfigFileName':'.lovrabet.json','homeDirName':a100_0x1a3269(0xd2),'logFileName':'.lovrabet-runtime.log','invokeSource':a100_0x1a3269(0xdd),'userCenterDisplayName':a100_0x1a3269(0xcf),'skipNpxSkillsEnvSuffix':a100_0x1a3269(0xc9),'accessKeyCreatePath':'/user/ak'};export function productEnvName(_0x20ec0d){const _0x3b474f=a100_0x1a3269;return PRODUCT_CONFIG[_0x3b474f(0xd6)]+'_'+_0x20ec0d;}function a100_0x2a25(){const _0x13e584=['lovrabet/lovrabet-cli','164514FDsndj','SKIP_NPX_SKILLS','LOVRABET','375572iklnGe','@lovrabet/lovrabet-cli','2546616LlHWif','133010mkKrXd','Lovrabet\x20User\x20Center','8390CijWtH','map','.lovrabet','1084yDyHLl','.lovrabet.json','git@codeup.aliyun.com:yuntoo/open/lovrabet-runtime-cli.git','envPrefix','5hlGPVF','Lovrabet\x20Runtime\x20CLI','legacyEnvPrefixes','lovrabet','3099qejFAB','8793puYDYM','cli:lovrabet-runtime','https://registry.npmjs.org','RABETBASE','1752486fRMBAa'];a100_0x2a25=function(){return _0x13e584;};return a100_0x2a25();}export function productEnvNames(_0x4392bd){const _0x46ef3b=a100_0x1a3269;return[productEnvName(_0x4392bd),...PRODUCT_CONFIG[_0x46ef3b(0xd9)][_0x46ef3b(0xd1)](_0x34a56a=>_0x34a56a+'_'+_0x4392bd)];}export function productEnv(_0x20f486){for(const _0x59ca54 of productEnvNames(_0x20f486)){const _0x124b42=process.env[_0x59ca54];if(_0x124b42!==undefined)return _0x124b42;}return undefined;}
|
package/lib/constant/region.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x74b09,_0x149da9){const _0x3cb56d=a101_0x10f5,_0x1160c9=_0x74b09();while(!![]){try{const _0x10e83f=parseInt(_0x3cb56d(0x8f))/0x1+-parseInt(_0x3cb56d(0x84))/0x2+-parseInt(_0x3cb56d(0x8e))/0x3*(parseInt(_0x3cb56d(0x90))/0x4)+-parseInt(_0x3cb56d(0x89))/0x5*(-parseInt(_0x3cb56d(0x83))/0x6)+-parseInt(_0x3cb56d(0x87))/0x7*(parseInt(_0x3cb56d(0x8c))/0x8)+-parseInt(_0x3cb56d(0x8b))/0x9+parseInt(_0x3cb56d(0x86))/0xa;if(_0x10e83f===_0x149da9)break;else _0x1160c9['push'](_0x1160c9['shift']());}catch(_0x1af2c8){_0x1160c9['push'](_0x1160c9['shift']());}}}(a101_0x5507,0xf17d8));import{DEFAULT_REGION,ENABLED_REGION_VALUES,REGION_ALIASES,REGION_VALUES}from'../generated/official-routing.js';import{CliErrors}from'../errors.js';export const LOVRABET_REGION_VALUES=REGION_VALUES;export const ENABLED_LOVRABET_REGION_VALUES=ENABLED_REGION_VALUES;function a101_0x10f5(_0x20d4fa,_0x598307){_0x20d4fa=_0x20d4fa-0x82;const _0x5507a5=a101_0x5507();let _0x10f548=_0x5507a5[_0x20d4fa];return _0x10f548;}export const DEFAULT_LOVRABET_REGION=DEFAULT_REGION;export function isLovrabetRegion(_0x2046ee){const _0x327f80=a101_0x10f5;return typeof _0x2046ee===_0x327f80(0x8a)&&LOVRABET_REGION_VALUES[_0x327f80(0x82)](_0x2046ee);}export function isEnabledLovrabetRegion(_0x31abda){const _0xbe52b3=a101_0x10f5;return typeof _0x31abda===_0xbe52b3(0x8a)&&ENABLED_LOVRABET_REGION_VALUES[_0xbe52b3(0x82)](_0x31abda);}export function normalizeLovrabetRegion(_0x3eb620){const _0x3d8df3=a101_0x10f5;if(_0x3eb620===undefined||_0x3eb620===null||_0x3eb620==='')return DEFAULT_LOVRABET_REGION;if(typeof _0x3eb620!=='string')throw CliErrors[_0x3d8df3(0x88)](_0x3d8df3(0x93)+typeof _0x3eb620+'.','Run\x20`lovrabet\x20config\x20init`\x20to\x20restore\x20the\x20global\x20country/region\x20configuration.');const _0x4af9d3=REGION_ALIASES[_0x3eb620]??_0x3eb620;if(isEnabledLovrabetRegion(_0x4af9d3))return _0x4af9d3;throw CliErrors['validation']('Region\x20\x22'+_0x3eb620+_0x3d8df3(0x8d),_0x3d8df3(0x92)+ENABLED_LOVRABET_REGION_VALUES[_0x3d8df3(0x85)](',\x20')+_0x3d8df3(0x91));}function a101_0x5507(){const _0x392c7c=['5oWSyXZ','string','407871InjAHM','3576eVnaeL','\x22\x20is\x20not\x20currently\x20available.','42CbhoLO','385057jpAcvV','423596dIsHEr','.\x20Run\x20`lovrabet\x20config\x20init`\x20to\x20repair\x20the\x20global\x20configuration.','Available\x20regions:\x20','Invalid\x20region\x20value:\x20expected\x20a\x20string,\x20received\x20','includes','11072814qOwgDt','2056966EnCtqG','join','29157130DlzVDg','25067ujekgf','validation'];a101_0x5507=function(){return _0x392c7c;};return a101_0x5507();}
|
package/lib/constant/risk.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a102_0x3b0cf5=a102_0x156a;function a102_0x40ff(){const _0x3a0abf=['247698nCHuwT','28YqOupz','46BEWIhd','15274578iEdvdx','10muHaLm','322WQJzDG','1832406RjWCIf','48Uhssqv','12PSCakR','write','read','169370PmgclD','57614UxnJsu','1075217dVXFvb','18hTAYxy','1896920WfnEiu'];a102_0x40ff=function(){return _0x3a0abf;};return a102_0x40ff();}(function(_0x2087e6,_0x50a69a){const _0x464a3c=a102_0x156a,_0x17c903=_0x2087e6();while(!![]){try{const _0x323f13=parseInt(_0x464a3c(0x1db))/0x1*(-parseInt(_0x464a3c(0x1d5))/0x2)+parseInt(_0x464a3c(0x1d9))/0x3*(parseInt(_0x464a3c(0x1d0))/0x4)+parseInt(_0x464a3c(0x1dd))/0x5*(parseInt(_0x464a3c(0x1df))/0x6)+parseInt(_0x464a3c(0x1da))/0x7*(parseInt(_0x464a3c(0x1d8))/0x8)+parseInt(_0x464a3c(0x1d7))/0x9*(parseInt(_0x464a3c(0x1d4))/0xa)+parseInt(_0x464a3c(0x1dc))/0xb*(parseInt(_0x464a3c(0x1d1))/0xc)+-parseInt(_0x464a3c(0x1d6))/0xd*(parseInt(_0x464a3c(0x1de))/0xe);if(_0x323f13===_0x50a69a)break;else _0x17c903['push'](_0x17c903['shift']());}catch(_0x3b4744){_0x17c903['push'](_0x17c903['shift']());}}}(a102_0x40ff,0xb5e89));function a102_0x156a(_0x1b2a49,_0x359b81){_0x1b2a49=_0x1b2a49-0x1d0;const _0x40ff7c=a102_0x40ff();let _0x156a21=_0x40ff7c[_0x1b2a49];return _0x156a21;}export const RISK_LEVEL_VALUES=[a102_0x3b0cf5(0x1d3),a102_0x3b0cf5(0x1d2),'high-risk-write'];
|
package/lib/constant/url.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x15d02e,_0x240cae){const _0x31d9c8=a103_0x4b24,_0x1c5ba9=_0x15d02e();while(!![]){try{const _0x261444=-parseInt(_0x31d9c8(0x181))/0x1+-parseInt(_0x31d9c8(0x180))/0x2+-parseInt(_0x31d9c8(0x185))/0x3+-parseInt(_0x31d9c8(0x189))/0x4*(-parseInt(_0x31d9c8(0x17f))/0x5)+-parseInt(_0x31d9c8(0x186))/0x6*(parseInt(_0x31d9c8(0x182))/0x7)+-parseInt(_0x31d9c8(0x187))/0x8*(-parseInt(_0x31d9c8(0x188))/0x9)+parseInt(_0x31d9c8(0x18b))/0xa*(parseInt(_0x31d9c8(0x184))/0xb);if(_0x261444===_0x240cae)break;else _0x1c5ba9['push'](_0x1c5ba9['shift']());}catch(_0x3a7f27){_0x1c5ba9['push'](_0x1c5ba9['shift']());}}}(a103_0x7785,0x5afab));import{PRODUCT_CONFIG}from'../constant/product.js';function a103_0x7785(){const _0x45bef7=['8QztoDd','4760082uwUpVy','23524nZBkIg','accessKeyCreatePath','118980gTOYAe','385wdMxBf','843494tsJKBN','206784WsutwS','7alOJqh','serviceDomains','715wYrZHz','1679286YJMazY','1164966TtRoTh'];a103_0x7785=function(){return _0x45bef7;};return a103_0x7785();}import{OFFICIAL_ROUTING_PROFILES}from'../generated/official-routing.js';import{DEFAULT_LOVRABET_REGION}from'../constant/region.js';function a103_0x4b24(_0x6588aa,_0x4b104b){_0x6588aa=_0x6588aa-0x17f;const _0x7785ab=a103_0x7785();let _0x4b2495=_0x7785ab[_0x6588aa];return _0x4b2495;}export function getUserAccessKeyCreateUrl(_0x339b7b=DEFAULT_LOVRABET_REGION){const _0x117a7a=a103_0x4b24,_0x262d1d=OFFICIAL_ROUTING_PROFILES[_0x339b7b][_0x117a7a(0x183)]['production']['user'];return''+_0x262d1d+PRODUCT_CONFIG[_0x117a7a(0x18a)];}export const USER_ACCESS_KEY_CREATE_URL=getUserAccessKeyCreateUrl();
|
package/lib/context.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x52b2bf,_0x5e9d80){const _0x4b883d=a104_0x5427,_0x3d581a=_0x52b2bf();while(!![]){try{const _0x56f44e=parseInt(_0x4b883d(0x1e3))/0x1+parseInt(_0x4b883d(0x1e1))/0x2+parseInt(_0x4b883d(0x1ea))/0x3+parseInt(_0x4b883d(0x1f7))/0x4+-parseInt(_0x4b883d(0x216))/0x5*(parseInt(_0x4b883d(0x209))/0x6)+parseInt(_0x4b883d(0x1de))/0x7*(parseInt(_0x4b883d(0x1ff))/0x8)+-parseInt(_0x4b883d(0x205))/0x9*(parseInt(_0x4b883d(0x1fa))/0xa);if(_0x56f44e===_0x5e9d80)break;else _0x3d581a['push'](_0x3d581a['shift']());}catch(_0x13681e){_0x3d581a['push'](_0x3d581a['shift']());}}}(a104_0x1168,0x1e7a3));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(_0x4adef4){for(const _0x1ace04 of CONFIG_NAMES){const _0x13f052=resolve(_0x4adef4,_0x1ace04);if(existsSync(_0x13f052))return _0x13f052;}return undefined;}export function resolveWriteConfigPath(_0x31561d){const _0xee5845=a104_0x5427,_0x35e322=_0x31561d===_0xee5845(0x20f)?process['cwd']():homedir(),_0x33e113=resolveConfigPath(_0x35e322);return _0x33e113??resolve(_0x35e322,NEW_CONFIG_NAME);}export function readConfigFile(_0xd2ad98){const _0x9ab62b=a104_0x5427;try{if(existsSync(_0xd2ad98)){const _0x1a5dfe=readFileSync(_0xd2ad98,{'encoding':_0x9ab62b(0x21a)});if(_0x1a5dfe){const _0x4caa1c=JSON['parse'](_0x1a5dfe);return migrateOnlineEnv(_0xd2ad98,_0x4caa1c),_0x4caa1c;}}}catch{}return{};}function migrateOnlineEnv(_0x55fd44,_0x2e691e){const _0x5297cf=a104_0x5427;let _0x4ebab2=![];_0x2e691e[_0x5297cf(0x1dc)]===_0x5297cf(0x1f3)&&(_0x2e691e['env']=_0x5297cf(0x1f5),_0x4ebab2=!![]);if(_0x2e691e[_0x5297cf(0x1db)]&&typeof _0x2e691e[_0x5297cf(0x1db)]===_0x5297cf(0x1d6))for(const _0xb67865 of Object[_0x5297cf(0x1fb)](_0x2e691e[_0x5297cf(0x1db)])){_0xb67865&&_0xb67865[_0x5297cf(0x1dc)]==='online'&&(_0xb67865[_0x5297cf(0x1dc)]='production',_0x4ebab2=!![]);}if(_0x4ebab2)try{writeConfigFile(_0x55fd44,_0x2e691e);}catch{}}export function writeConfigFile(_0x5275db,_0x56519c){const _0x90eac2=a104_0x5427,_0x5c76a2=dirname(_0x5275db);!existsSync(_0x5c76a2)&&mkdirSync(_0x5c76a2,{'recursive':!![]});const _0x5f8ae0=_0x5275db+_0x90eac2(0x1f2);try{writeFileSync(_0x5f8ae0,JSON['stringify'](_0x56519c,null,0x2)+'\x0a',{'encoding':_0x90eac2(0x21a),'mode':0x180});try{renameSync(_0x5f8ae0,_0x5275db);}catch(_0x410af9){if(_0x410af9[_0x90eac2(0x213)]===_0x90eac2(0x1fc)||_0x410af9[_0x90eac2(0x213)]===_0x90eac2(0x208)||_0x410af9[_0x90eac2(0x213)]===_0x90eac2(0x203)){writeFileSync(_0x5275db,JSON[_0x90eac2(0x200)](_0x56519c,null,0x2)+'\x0a',{'encoding':_0x90eac2(0x21a)});try{unlinkSync(_0x5f8ae0);}catch{}}else throw _0x410af9;}}catch(_0x43881c){try{unlinkSync(_0x5f8ae0);}catch{}throw _0x43881c;}}export function isNonInteractiveMode(_0x14d8e2){const _0x41159a=a104_0x5427;return!!(_0x14d8e2[_0x41159a(0x210)]||_0x14d8e2['ci']||productEnvNames('CI')['some'](_0x5d7f8a=>process.env[_0x5d7f8a]===_0x41159a(0x1e2))||process.env.CI===_0x41159a(0x1e2)||!process[_0x41159a(0x1cf)][_0x41159a(0x1f9)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x57c394=a104_0x5427;if(!process[_0x57c394(0x1ed)][_0x57c394(0x1f9)])return![];try{const _0x2c74db=process[_0x57c394(0x1ed)]['isRaw'];return process[_0x57c394(0x1ed)]['setRawMode'](!![]),process[_0x57c394(0x1ed)][_0x57c394(0x1e0)](_0x2c74db??![]),!![];}catch{return![];}}export async function createContext(_0x63b0b5){const _0x59fd08=a104_0x5427,_0x19e3dc=readRawConfig(),_0x46ebb2=buildConfig(_0x19e3dc,_0x63b0b5);await initGlobalEnvironment(_0x46ebb2);const {getUserDomain:_0x204cdd,getApiDomain:_0x4e6d9c}=await import(_0x59fd08(0x1d7)),_0x194b5d={'apiDomain':_0x4e6d9c(),'userDomain':_0x204cdd()},_0x50faaf=await buildAuth(_0x46ebb2);logger[_0x59fd08(0x20b)](process['cwd']());const _0x1e73d8=(CLI_BIN_NAME+'\x20'+redactCommandArgv(process[_0x59fd08(0x1eb)]['slice'](0x2))['join']('\x20'))[_0x59fd08(0x214)]();logger[_0x59fd08(0x1d0)](_0x1e73d8);const _0x3a73ef=isNonInteractiveMode(_0x63b0b5);return{'config':_0x46ebb2,'auth':_0x50faaf,'logger':logger,'env':_0x194b5d,'nonInteractive':_0x3a73ef};}function a104_0x5427(_0x527295,_0x1f47b6){_0x527295=_0x527295-0x1cd;const _0x11689c=a104_0x1168();let _0x542724=_0x11689c[_0x527295];return _0x542724;}export function buildConfigFromFlags(_0xba2d94){return buildConfig(readRawConfig(),_0xba2d94);}export function getLocalAppAliases(_0x4ba4e6){const _0x1a658c=a104_0x5427;return _0x4ba4e6[_0x1a658c(0x1db)]&&typeof _0x4ba4e6['apps']==='object'?_0x4ba4e6['apps']:{};}export function resolveLocalAppAliasCode(_0x1ad79f,_0x5a6919){const _0x2df7c8=a104_0x5427;if(!_0x5a6919)return undefined;const _0x203d24=getLocalAppAliases(_0x1ad79f)[_0x5a6919],_0x601665=_0x203d24?.[_0x2df7c8(0x21b)];return typeof _0x601665===_0x2df7c8(0x1ee)&&_0x601665[_0x2df7c8(0x214)]()?_0x601665[_0x2df7c8(0x214)]():undefined;}export function readAppCodeFromConfig(){const _0xc1be62=a104_0x5427,_0x34e116=readRawConfig(),_0x3f5633=_0x34e116[_0xc1be62(0x21b)]??_0x34e116[_0xc1be62(0x204)];if(typeof _0x3f5633===_0xc1be62(0x1ee)&&_0x3f5633[_0xc1be62(0x214)]())return _0x3f5633['trim']();const _0xdf7aea=resolveLocalAppAliasCode(_0x34e116,typeof _0x34e116[_0xc1be62(0x218)]==='string'?_0x34e116[_0xc1be62(0x218)]:undefined);if(_0xdf7aea)return _0xdf7aea;const _0x3f6884=normalizeEnv(String(_0x34e116['env']||_0xc1be62(0x1f5))),_0x3267d4=isDaily(_0x3f6884)?_0xc1be62(0x1d2):isDev(_0x3f6884)?_0xc1be62(0x1d8):'production',_0x1d3461=resolveCachedAppCode(typeof _0x34e116['defaultApp']==='string'?_0x34e116[_0xc1be62(0x218)]:undefined,_0x3267d4,typeof _0x34e116[_0xc1be62(0x1fe)]===_0xc1be62(0x1ee)?_0x34e116[_0xc1be62(0x1fe)]:undefined);if(_0x1d3461)return _0x1d3461;const _0x3fb6ad=Object['values'](getLocalAppAliases(_0x34e116))[_0xc1be62(0x1e4)](_0x348c40=>_0x348c40?.[_0xc1be62(0x21b)]);return typeof _0x3fb6ad?.[_0xc1be62(0x21b)]===_0xc1be62(0x1ee)&&_0x3fb6ad['appcode'][_0xc1be62(0x214)]()?_0x3fb6ad[_0xc1be62(0x21b)]['trim']():undefined;}export function readScopedConfig(_0x12e8eb){const _0x260f8f=a104_0x5427,_0x29e0f3=_0x12e8eb['global']?_0x260f8f(0x20c):_0x260f8f(0x20f);return readConfigFile(resolveWriteConfigPath(_0x29e0f3));}export function writeScopedConfig(_0x5dfd5,_0x96d89b){const _0x34e7ec=a104_0x5427,_0x5e9209=_0x96d89b[_0x34e7ec(0x20c)]?'global':_0x34e7ec(0x20f);writeConfigFile(resolveWriteConfigPath(_0x5e9209),_0x5dfd5);}export async function initGlobalEnvironment(_0x186a40){const _0x24f92a=a104_0x5427,{initEnv:_0x8b8f71}=await import('./constant/env.js');_0x8b8f71(_0x186a40[_0x24f92a(0x1dc)]);const {initDomains:_0x5dddfe}=await import(_0x24f92a(0x1d7)),_0x312751=resolveEnterpriseRoutingConfig(_0x186a40[_0x24f92a(0x1e5)][_0x24f92a(0x1e6)]),_0x2526af=['apiDomain',_0x24f92a(0x21d),_0x24f92a(0x202),'runtimeDomain',_0x24f92a(0x1d1),_0x24f92a(0x21c),_0x24f92a(0x1f6),'platformDomain',_0x24f92a(0x1fd),_0x24f92a(0x1df)],_0x262a8f=_0x312751!==undefined||_0x2526af[_0x24f92a(0x20d)](_0x36a857=>Object[_0x24f92a(0x21e)][_0x24f92a(0x1d5)][_0x24f92a(0x1f1)](_0x186a40[_0x24f92a(0x1e5)],_0x36a857));_0x5dddfe({'apiDomain':_0x312751?_0x312751['apiDomain']:_0x186a40['raw'][_0x24f92a(0x206)]||_0x186a40[_0x24f92a(0x1e5)][_0x24f92a(0x21d)]||undefined,'userDomain':_0x312751?_0x312751[_0x24f92a(0x202)]:_0x186a40[_0x24f92a(0x1e5)][_0x24f92a(0x202)]||undefined,'runtimeDomain':_0x312751?_0x312751['runtimeDomain']:_0x186a40['raw']['runtimeDomain']||undefined,'skillDomain':_0x312751?_0x312751['skillDomain']:_0x186a40[_0x24f92a(0x1e5)][_0x24f92a(0x1d1)]||_0x186a40[_0x24f92a(0x1e5)][_0x24f92a(0x21c)]||_0x186a40[_0x24f92a(0x1e5)][_0x24f92a(0x1f6)]||_0x186a40[_0x24f92a(0x1e5)][_0x24f92a(0x1d9)]||undefined,'kbServiceDomain':_0x312751?_0x312751[_0x24f92a(0x1df)]:typeof _0x186a40[_0x24f92a(0x1e5)]['kbServiceDomain']===_0x24f92a(0x1ee)&&_0x186a40[_0x24f92a(0x1e5)][_0x24f92a(0x1df)][_0x24f92a(0x214)]()?_0x186a40[_0x24f92a(0x1e5)][_0x24f92a(0x1df)]:undefined,'allowOfficialKbServiceDefault':!_0x262a8f,'region':normalizeLovrabetRegion(_0x186a40[_0x24f92a(0x1e5)][_0x24f92a(0x1ec)])});}export function getProjectConfigPath(){const _0x559a47=a104_0x5427;return resolveConfigPath(process[_0x559a47(0x1e7)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0x5f1d42){const _0x318421=a104_0x5427;if(!existsSync(_0x5f1d42))return{'status':_0x318421(0x1e8)};try{const _0x41ad50=readFileSync(_0x5f1d42,{'encoding':_0x318421(0x21a)});if(!_0x41ad50?.[_0x318421(0x214)]())return{'status':_0x318421(0x217)};const _0x505870=JSON[_0x318421(0x207)](_0x41ad50);return{'status':'ok','data':_0x505870};}catch(_0x321e0a){return{'status':_0x318421(0x1f8),'message':_0x321e0a instanceof Error?_0x321e0a[_0x318421(0x215)]:String(_0x321e0a)};}}export function loadRawConfigLayers(_0x169393){const _0x4dfc19=a104_0x5427;let _0xc63d7a={},_0x4975b5={},_0x3a1652,_0x4c24fc;try{_0x3a1652=resolveConfigPath(homedir());if(_0x3a1652){const _0x533ba4=readFileSync(_0x3a1652,{'encoding':'utf8'});if(_0x533ba4)_0xc63d7a=JSON['parse'](_0x533ba4);}}catch{}try{const _0x5f01e1=_0x169393||process[_0x4dfc19(0x1e7)]();_0x4c24fc=resolveConfigPath(_0x5f01e1);if(_0x4c24fc){const _0x2a962f=readFileSync(_0x4c24fc,{'encoding':'utf8'});if(_0x2a962f)_0x4975b5=JSON[_0x4dfc19(0x207)](_0x2a962f);}}catch{}return{'globalPath':_0x3a1652,'projectPath':_0x4c24fc,'globalConfig':_0xc63d7a,'projectConfig':_0x4975b5};}function mergeRawConfigLayers(_0x215466){const _0x187067=a104_0x5427,{globalConfig:_0xa8f8a2,projectConfig:_0x2419d3}=_0x215466,_0x5284ab={..._0xa8f8a2,..._0x2419d3};delete _0x5284ab['inherit'];if('defaultApp'in _0x2419d3)_0x5284ab[_0x187067(0x218)]=_0x2419d3[_0x187067(0x218)];else _0xa8f8a2[_0x187067(0x218)]&&(_0x5284ab[_0x187067(0x218)]=_0xa8f8a2[_0x187067(0x218)]);return _0x5284ab;}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0x40c8aa){return mergeRawConfigLayers(loadRawConfigLayers(_0x40c8aa));}export function readRawConfigWithLayers(_0x8c3a35){const _0x55fec9=loadRawConfigLayers(_0x8c3a35);return{'config':mergeRawConfigLayers(_0x55fec9),'layers':_0x55fec9};}export function resolveDefaultAppSource(_0x4eba62){const _0x2eac48=a104_0x5427;if('defaultApp'in _0x4eba62[_0x2eac48(0x1e9)])return _0x2eac48(0x20f);if(_0x4eba62[_0x2eac48(0x20a)]['defaultApp'])return _0x2eac48(0x20c);return null;}function buildConfig(_0x3dde12,_0x471cb5){const _0x1e4433=a104_0x5427,_0x299e1e=_0x3dde12[_0x1e4433(0x218)]||undefined,_0x5def75=_0x471cb5[_0x1e4433(0x204)]||env(_0x1e4433(0x1f4))||undefined,_0x1b4491=_0x5def75||_0x299e1e||undefined,_0x1588a5=env(_0x1e4433(0x1f0))||_0x3dde12[_0x1e4433(0x1fe)]||undefined,_0x1d4943=_0x471cb5[_0x1e4433(0x1dc)]||env('ENV')||_0x3dde12[_0x1e4433(0x1dc)]||DEFAULT_CONFIG_VALUES[_0x1e4433(0x1dc)],_0x31a7b8=normalizeEnv(String(_0x1d4943)),_0x437be5=isDaily(_0x31a7b8)?'daily':isDev(_0x31a7b8)?_0x1e4433(0x1d8):_0x1e4433(0x1f5),_0x4956b5=typeof _0x471cb5[_0x1e4433(0x21b)]===_0x1e4433(0x1ee)?_0x471cb5[_0x1e4433(0x21b)]:undefined,_0x1aeea7=env(_0x1e4433(0x219)),_0x588bda=_0x5def75?undefined:_0x3dde12[_0x1e4433(0x21b)]||_0x3dde12[_0x1e4433(0x204)]||undefined,_0x160f6d=_0x5def75||(_0x588bda?undefined:_0x299e1e),_0x4cacaa=resolveLocalAppAliasCode(_0x3dde12,_0x160f6d),_0x97cb1=resolveCachedAppCode(_0x160f6d,_0x437be5,_0x1588a5),_0x4f4493=_0x4956b5||_0x1aeea7||_0x588bda||_0x4cacaa||_0x97cb1||undefined,_0x536185=_0x4956b5?'explicit':_0x1aeea7?'env':_0x588bda?_0x1e4433(0x1dd):_0x4cacaa?_0x1e4433(0x1d3):_0x97cb1?_0x1e4433(0x1da):undefined,_0xdee71a=_0x3dde12['locale']||DEFAULT_CONFIG_VALUES[_0x1e4433(0x21f)],_0x171d64=undefined,_0x18861d=_0x471cb5[_0x1e4433(0x20e)]||env(_0x1e4433(0x211))||_0x3dde12[_0x1e4433(0x20e)],_0x5d01e3=normalizeLegacyOutputFormat(_0x18861d),_0x3487be=env(_0x1e4433(0x1ef))||_0x3dde12[_0x1e4433(0x1ce)],_0x497df1=_0x3487be?Number(_0x3487be)||undefined:undefined,_0x6dd684=_0x3dde12['riskLevel'],_0x6cc665=_0x6dd684===_0x1e4433(0x1cd)||_0x6dd684===_0x1e4433(0x1d4)||_0x6dd684==='high-risk-write'?_0x6dd684:DEFAULT_CONFIG_VALUES[_0x1e4433(0x212)],_0x3b67ae=_0x3dde12['nativeToolAvailable']===!![],_0x364394=env(_0x1e4433(0x201)),_0x59f56c=_0x364394==='1'||_0x364394===_0x1e4433(0x1e2);return{'appCode':typeof _0x4f4493==='string'&&_0x4f4493[_0x1e4433(0x214)]()?_0x4f4493[_0x1e4433(0x214)]():undefined,'appCodeSource':_0x536185,'env':_0x437be5,'locale':_0xdee71a,'cookie':_0x171d64,'accessKey':_0x1588a5,'format':_0x5d01e3,'pageSize':_0x497df1,'riskLevel':_0x6cc665,'nativeToolAvailable':_0x3b67ae,'verbose':_0x59f56c,'defaultApp':_0x299e1e,'currentApp':typeof _0x1b4491===_0x1e4433(0x1ee)?_0x1b4491:undefined,'raw':_0x3dde12};}function env(_0x4c08c3){return productEnv(_0x4c08c3);}async function buildAuth(_0x2f6ef3){const _0x4af259='',_0x37beb5=!!_0x2f6ef3['accessKey'];return{'cookie':_0x4af259,'isLoggedIn':_0x37beb5,async 'getOrLogin'(){if(_0x37beb5)return _0x4af259;throw CliErrors['authRequired']();}};}function a104_0x1168(){const _0x34ef73=['VERBOSE','userDomain','EACCES','app','4749039gRGqLz','apiDomain','parse','EXDEV','6MevAPi','globalConfig','setLogPath','global','some','format','project','nonInteractive','FORMAT','riskLevel','code','trim','message','44035EprDiz','empty','defaultApp','APPCODE','utf8','appcode','skillHubDomain','host','prototype','locale','read','pageSize','stdout','setRawCommand','skillDomain','daily','local-alias','write','hasOwnProperty','object','./constant/domain.js','development','platformDomain','cache','apps','env','top-level','3094tXgnco','kbServiceDomain','setRawMode','438812sMVHKU','true','2873GUObWP','find','raw','routing','cwd','missing','projectConfig','512793brkhFI','argv','region','stdin','string','PAGE_SIZE','ACCESS_KEY','call','.tmp','online','APP','production','agentDomain','252060dpgvGi','error','isTTY','10WKqcLF','values','EPERM','kbDomain','accessKey','3712kYDCYx','stringify'];a104_0x1168=function(){return _0x34ef73;};return a104_0x1168();}
|
|
1
|
+
const a104_0x479f8e=a104_0x5b0b;(function(_0x674204,_0x589e1c){const _0x1243d1=a104_0x5b0b,_0x1e0431=_0x674204();while(!![]){try{const _0x16a59f=-parseInt(_0x1243d1(0xd8))/0x1*(-parseInt(_0x1243d1(0xe6))/0x2)+-parseInt(_0x1243d1(0x107))/0x3*(-parseInt(_0x1243d1(0x11e))/0x4)+-parseInt(_0x1243d1(0xce))/0x5*(-parseInt(_0x1243d1(0xd1))/0x6)+parseInt(_0x1243d1(0xf8))/0x7+parseInt(_0x1243d1(0xe9))/0x8*(parseInt(_0x1243d1(0xc7))/0x9)+-parseInt(_0x1243d1(0xdb))/0xa+parseInt(_0x1243d1(0x11c))/0xb*(-parseInt(_0x1243d1(0xcc))/0xc);if(_0x16a59f===_0x589e1c)break;else _0x1e0431['push'](_0x1e0431['shift']());}catch(_0x3a8ae2){_0x1e0431['push'](_0x1e0431['shift']());}}}(a104_0x50f8,0xa8012));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';function a104_0x50f8(){const _0x1ff1c6=['16cEwmjW','apiDomain','code','76472sbyVfd','locale','pageSize','write','kbDomain','inherit','cwd','runtimeDomain','EACCES','utf8','isRaw','some','APPCODE','missing','routing','5449976ITNKNO','./constant/env.js','global','raw','stdout','appcode','parse','app','EPERM','isTTY','find','setLogPath','defaultApp','high-risk-write','production','383763KeZxAC','explicit','skillDomain','authRequired','top-level','ENV','nativeToolAvailable','EXDEV','accessKey','skillHubDomain','globalConfig','platformDomain','stdin','nonInteractive','host','ACCESS_KEY','env','./constant/domain.js','riskLevel','read','online','2948sFAwor','kbServiceDomain','12RKJWVV','.tmp','error','198GmUPHn','development','stringify','setRawCommand','setRawMode','50772RojFvJ','newConfigFileName','46795rXLWzu','agentDomain','join','366RcRPKs','project','cache','call','userDomain','format','apps','130966LEfjmB','prototype','PAGE_SIZE','11692020WXEkaj','true','daily','slice','FORMAT','object','values','string','region','trim','local-alias'];a104_0x50f8=function(){return _0x1ff1c6;};return a104_0x50f8();}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[a104_0x479f8e(0xcd)];function resolveConfigPath(_0x5c3e0e){for(const _0x27bddd of CONFIG_NAMES){const _0x45a855=resolve(_0x5c3e0e,_0x27bddd);if(existsSync(_0x45a855))return _0x45a855;}return undefined;}export function resolveWriteConfigPath(_0x9770f9){const _0x590a65=a104_0x479f8e,_0x4fbcf8=_0x9770f9==='project'?process[_0x590a65(0xef)]():homedir(),_0x1c768b=resolveConfigPath(_0x4fbcf8);return _0x1c768b??resolve(_0x4fbcf8,NEW_CONFIG_NAME);}export function readConfigFile(_0x367a84){const _0x25153b=a104_0x479f8e;try{if(existsSync(_0x367a84)){const _0x32b9e6=readFileSync(_0x367a84,{'encoding':_0x25153b(0xf2)});if(_0x32b9e6){const _0x3d3750=JSON[_0x25153b(0xfe)](_0x32b9e6);return migrateOnlineEnv(_0x367a84,_0x3d3750),_0x3d3750;}}}catch{}return{};}function migrateOnlineEnv(_0x31a7fa,_0x401e82){const _0x14a889=a104_0x479f8e;let _0x3df3d1=![];_0x401e82[_0x14a889(0x117)]===_0x14a889(0x11b)&&(_0x401e82['env']=_0x14a889(0x106),_0x3df3d1=!![]);if(_0x401e82[_0x14a889(0xd7)]&&typeof _0x401e82[_0x14a889(0xd7)]==='object')for(const _0x14e7f9 of Object[_0x14a889(0xe1)](_0x401e82['apps'])){_0x14e7f9&&_0x14e7f9[_0x14a889(0x117)]===_0x14a889(0x11b)&&(_0x14e7f9[_0x14a889(0x117)]=_0x14a889(0x106),_0x3df3d1=!![]);}if(_0x3df3d1)try{writeConfigFile(_0x31a7fa,_0x401e82);}catch{}}export function writeConfigFile(_0x51f626,_0x1c4c64){const _0x3fa2b9=a104_0x479f8e,_0x15f397=dirname(_0x51f626);!existsSync(_0x15f397)&&mkdirSync(_0x15f397,{'recursive':!![]});const _0x55a5e3=_0x51f626+_0x3fa2b9(0x11f);try{writeFileSync(_0x55a5e3,JSON[_0x3fa2b9(0xc9)](_0x1c4c64,null,0x2)+'\x0a',{'encoding':_0x3fa2b9(0xf2),'mode':0x180});try{renameSync(_0x55a5e3,_0x51f626);}catch(_0x1ede59){if(_0x1ede59[_0x3fa2b9(0xe8)]===_0x3fa2b9(0x100)||_0x1ede59['code']===_0x3fa2b9(0x10e)||_0x1ede59['code']===_0x3fa2b9(0xf1)){writeFileSync(_0x51f626,JSON[_0x3fa2b9(0xc9)](_0x1c4c64,null,0x2)+'\x0a',{'encoding':_0x3fa2b9(0xf2)});try{unlinkSync(_0x55a5e3);}catch{}}else throw _0x1ede59;}}catch(_0x2eb326){try{unlinkSync(_0x55a5e3);}catch{}throw _0x2eb326;}}export function isNonInteractiveMode(_0x3fe7ee){const _0x94cb55=a104_0x479f8e;return!!(_0x3fe7ee[_0x94cb55(0x114)]||_0x3fe7ee['ci']||productEnvNames('CI')['some'](_0x56829a=>process.env[_0x56829a]==='true')||process.env.CI==='true'||!process[_0x94cb55(0xfc)][_0x94cb55(0x101)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x2af499=a104_0x479f8e;if(!process[_0x2af499(0x113)][_0x2af499(0x101)])return![];try{const _0x4f5083=process[_0x2af499(0x113)][_0x2af499(0xf3)];return process[_0x2af499(0x113)][_0x2af499(0xcb)](!![]),process['stdin'][_0x2af499(0xcb)](_0x4f5083??![]),!![];}catch{return![];}}export async function createContext(_0x30cde0){const _0x492bd2=a104_0x479f8e,_0x3d0da6=readRawConfig(),_0x45ed3a=buildConfig(_0x3d0da6,_0x30cde0);await initGlobalEnvironment(_0x45ed3a);const {getUserDomain:_0x89e81,getApiDomain:_0x298938}=await import(_0x492bd2(0x118)),_0x1c0d94={'apiDomain':_0x298938(),'userDomain':_0x89e81()},_0xd5ebe7=await buildAuth(_0x45ed3a);logger[_0x492bd2(0x103)](process[_0x492bd2(0xef)]());const _0x40f54e=(CLI_BIN_NAME+'\x20'+redactCommandArgv(process['argv'][_0x492bd2(0xde)](0x2))[_0x492bd2(0xd0)]('\x20'))['trim']();logger[_0x492bd2(0xca)](_0x40f54e);const _0x3c1a73=isNonInteractiveMode(_0x30cde0);return{'config':_0x45ed3a,'auth':_0xd5ebe7,'logger':logger,'env':_0x1c0d94,'nonInteractive':_0x3c1a73};}export function buildConfigFromFlags(_0x1ad7b0){return buildConfig(readRawConfig(),_0x1ad7b0);}export function getLocalAppAliases(_0x4a0078){const _0x424685=a104_0x479f8e;return _0x4a0078['apps']&&typeof _0x4a0078[_0x424685(0xd7)]===_0x424685(0xe0)?_0x4a0078[_0x424685(0xd7)]:{};}export function resolveLocalAppAliasCode(_0x1724a4,_0x25e9df){const _0x4fbe01=a104_0x479f8e;if(!_0x25e9df)return undefined;const _0x2c0fef=getLocalAppAliases(_0x1724a4)[_0x25e9df],_0x20add5=_0x2c0fef?.['appcode'];return typeof _0x20add5===_0x4fbe01(0xe2)&&_0x20add5['trim']()?_0x20add5[_0x4fbe01(0xe4)]():undefined;}export function readAppCodeFromConfig(){const _0x51af85=a104_0x479f8e,_0x5f21b3=readRawConfig(),_0x901a1=_0x5f21b3[_0x51af85(0xfd)]??_0x5f21b3[_0x51af85(0xff)];if(typeof _0x901a1==='string'&&_0x901a1[_0x51af85(0xe4)]())return _0x901a1['trim']();const _0x175df2=resolveLocalAppAliasCode(_0x5f21b3,typeof _0x5f21b3['defaultApp']==='string'?_0x5f21b3[_0x51af85(0x104)]:undefined);if(_0x175df2)return _0x175df2;const _0x39d8e3=normalizeEnv(String(_0x5f21b3[_0x51af85(0x117)]||_0x51af85(0x106))),_0x1701cf=isDaily(_0x39d8e3)?_0x51af85(0xdd):isDev(_0x39d8e3)?_0x51af85(0xc8):_0x51af85(0x106),_0x57407e=resolveCachedAppCode(typeof _0x5f21b3[_0x51af85(0x104)]===_0x51af85(0xe2)?_0x5f21b3[_0x51af85(0x104)]:undefined,_0x1701cf,typeof _0x5f21b3[_0x51af85(0x10f)]===_0x51af85(0xe2)?_0x5f21b3['accessKey']:undefined);if(_0x57407e)return _0x57407e;const _0x6141f8=Object[_0x51af85(0xe1)](getLocalAppAliases(_0x5f21b3))[_0x51af85(0x102)](_0x5c622b=>_0x5c622b?.[_0x51af85(0xfd)]);return typeof _0x6141f8?.[_0x51af85(0xfd)]==='string'&&_0x6141f8[_0x51af85(0xfd)][_0x51af85(0xe4)]()?_0x6141f8[_0x51af85(0xfd)][_0x51af85(0xe4)]():undefined;}export function readScopedConfig(_0x52621c){const _0x4f3c9a=a104_0x479f8e,_0x3a1627=_0x52621c[_0x4f3c9a(0xfa)]?_0x4f3c9a(0xfa):_0x4f3c9a(0xd2);return readConfigFile(resolveWriteConfigPath(_0x3a1627));}export function writeScopedConfig(_0x5019bf,_0x408651){const _0x470c89=a104_0x479f8e,_0x388667=_0x408651['global']?_0x470c89(0xfa):_0x470c89(0xd2);writeConfigFile(resolveWriteConfigPath(_0x388667),_0x5019bf);}export async function initGlobalEnvironment(_0x38f345){const _0x41a720=a104_0x479f8e,{initEnv:_0x538368}=await import(_0x41a720(0xf9));_0x538368(_0x38f345[_0x41a720(0x117)]);const {initDomains:_0x20a53f}=await import(_0x41a720(0x118)),_0x4deaf6=resolveEnterpriseRoutingConfig(_0x38f345['raw'][_0x41a720(0xf7)]),_0x258f46=[_0x41a720(0xe7),'host','userDomain',_0x41a720(0xf0),_0x41a720(0x109),_0x41a720(0x110),_0x41a720(0xcf),_0x41a720(0x112),_0x41a720(0xed),_0x41a720(0x11d)],_0x16a954=_0x4deaf6!==undefined||_0x258f46[_0x41a720(0xf4)](_0x2d0334=>Object[_0x41a720(0xd9)]['hasOwnProperty'][_0x41a720(0xd4)](_0x38f345[_0x41a720(0xfb)],_0x2d0334));_0x20a53f({'apiDomain':_0x4deaf6?_0x4deaf6[_0x41a720(0xe7)]:_0x38f345[_0x41a720(0xfb)][_0x41a720(0xe7)]||_0x38f345[_0x41a720(0xfb)][_0x41a720(0x115)]||undefined,'userDomain':_0x4deaf6?_0x4deaf6['userDomain']:_0x38f345[_0x41a720(0xfb)][_0x41a720(0xd5)]||undefined,'runtimeDomain':_0x4deaf6?_0x4deaf6[_0x41a720(0xf0)]:_0x38f345['raw'][_0x41a720(0xf0)]||undefined,'skillDomain':_0x4deaf6?_0x4deaf6['skillDomain']:_0x38f345[_0x41a720(0xfb)][_0x41a720(0x109)]||_0x38f345['raw']['skillHubDomain']||_0x38f345[_0x41a720(0xfb)][_0x41a720(0xcf)]||_0x38f345[_0x41a720(0xfb)][_0x41a720(0x112)]||undefined,'kbServiceDomain':_0x4deaf6?_0x4deaf6['kbServiceDomain']:typeof _0x38f345[_0x41a720(0xfb)][_0x41a720(0x11d)]==='string'&&_0x38f345[_0x41a720(0xfb)][_0x41a720(0x11d)][_0x41a720(0xe4)]()?_0x38f345[_0x41a720(0xfb)]['kbServiceDomain']:undefined,'allowOfficialKbServiceDefault':!_0x16a954,'region':normalizeLovrabetRegion(_0x38f345[_0x41a720(0xfb)][_0x41a720(0xe3)])});}export function getProjectConfigPath(){const _0x50fcef=a104_0x479f8e;return resolveConfigPath(process[_0x50fcef(0xef)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0x414667){const _0x579be9=a104_0x479f8e;if(!existsSync(_0x414667))return{'status':_0x579be9(0xf6)};try{const _0x4bbb1b=readFileSync(_0x414667,{'encoding':_0x579be9(0xf2)});if(!_0x4bbb1b?.['trim']())return{'status':'empty'};const _0x26648a=JSON[_0x579be9(0xfe)](_0x4bbb1b);return{'status':'ok','data':_0x26648a};}catch(_0x518467){return{'status':_0x579be9(0x120),'message':_0x518467 instanceof Error?_0x518467['message']:String(_0x518467)};}}export function loadRawConfigLayers(_0x528aec){const _0x537f5a=a104_0x479f8e;let _0x10f69d={},_0x3dc507={},_0xd70949,_0x1fef49;try{_0xd70949=resolveConfigPath(homedir());if(_0xd70949){const _0x195ed1=readFileSync(_0xd70949,{'encoding':_0x537f5a(0xf2)});if(_0x195ed1)_0x10f69d=JSON[_0x537f5a(0xfe)](_0x195ed1);}}catch{}try{const _0x5cdbfc=_0x528aec||process[_0x537f5a(0xef)]();_0x1fef49=resolveConfigPath(_0x5cdbfc);if(_0x1fef49){const _0x26e0fc=readFileSync(_0x1fef49,{'encoding':_0x537f5a(0xf2)});if(_0x26e0fc)_0x3dc507=JSON[_0x537f5a(0xfe)](_0x26e0fc);}}catch{}return{'globalPath':_0xd70949,'projectPath':_0x1fef49,'globalConfig':_0x10f69d,'projectConfig':_0x3dc507};}function mergeRawConfigLayers(_0x23f41c){const _0x2290fc=a104_0x479f8e,{globalConfig:_0x32602d,projectConfig:_0x53b621}=_0x23f41c,_0x30ae3f={..._0x32602d,..._0x53b621};delete _0x30ae3f[_0x2290fc(0xee)];if(_0x2290fc(0x104)in _0x53b621)_0x30ae3f[_0x2290fc(0x104)]=_0x53b621[_0x2290fc(0x104)];else _0x32602d[_0x2290fc(0x104)]&&(_0x30ae3f[_0x2290fc(0x104)]=_0x32602d['defaultApp']);return _0x30ae3f;}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0x5a023f){return mergeRawConfigLayers(loadRawConfigLayers(_0x5a023f));}export function readRawConfigWithLayers(_0xbcf703){const _0x174a43=loadRawConfigLayers(_0xbcf703);return{'config':mergeRawConfigLayers(_0x174a43),'layers':_0x174a43};}export function resolveDefaultAppSource(_0xda2cf4){const _0x4636b3=a104_0x479f8e;if(_0x4636b3(0x104)in _0xda2cf4['projectConfig'])return'project';if(_0xda2cf4[_0x4636b3(0x111)][_0x4636b3(0x104)])return'global';return null;}function buildConfig(_0x51945f,_0xc64353){const _0x489547=a104_0x479f8e,_0x19c8db=_0x51945f['defaultApp']||undefined,_0x5820e7=_0xc64353[_0x489547(0xff)]||env('APP')||undefined,_0x5d0bbe=_0x5820e7||_0x19c8db||undefined,_0x557036=env(_0x489547(0x116))||_0x51945f[_0x489547(0x10f)]||undefined,_0x1cec40=_0xc64353[_0x489547(0x117)]||env(_0x489547(0x10c))||_0x51945f[_0x489547(0x117)]||DEFAULT_CONFIG_VALUES[_0x489547(0x117)],_0x4e4583=normalizeEnv(String(_0x1cec40)),_0x133655=isDaily(_0x4e4583)?_0x489547(0xdd):isDev(_0x4e4583)?'development':'production',_0x290634=typeof _0xc64353[_0x489547(0xfd)]===_0x489547(0xe2)?_0xc64353[_0x489547(0xfd)]:undefined,_0x1c24db=env(_0x489547(0xf5)),_0x47b73c=_0x5820e7?undefined:_0x51945f[_0x489547(0xfd)]||_0x51945f[_0x489547(0xff)]||undefined,_0x36ff62=_0x5820e7||(_0x47b73c?undefined:_0x19c8db),_0x323707=resolveLocalAppAliasCode(_0x51945f,_0x36ff62),_0x15c98e=resolveCachedAppCode(_0x36ff62,_0x133655,_0x557036),_0x5395a8=_0x290634||_0x1c24db||_0x47b73c||_0x323707||_0x15c98e||undefined,_0x51e88d=_0x290634?_0x489547(0x108):_0x1c24db?'env':_0x47b73c?_0x489547(0x10b):_0x323707?_0x489547(0xe5):_0x15c98e?_0x489547(0xd3):undefined,_0x5a6162=_0x51945f[_0x489547(0xea)]||DEFAULT_CONFIG_VALUES[_0x489547(0xea)],_0x449c0c=undefined,_0x17fd64=_0xc64353[_0x489547(0xd6)]||env(_0x489547(0xdf))||_0x51945f[_0x489547(0xd6)],_0x3bb5ee=normalizeLegacyOutputFormat(_0x17fd64),_0x3be43e=env(_0x489547(0xda))||_0x51945f[_0x489547(0xeb)],_0x25afe4=_0x3be43e?Number(_0x3be43e)||undefined:undefined,_0x2a1dd1=_0x51945f[_0x489547(0x119)],_0x4c313b=_0x2a1dd1===_0x489547(0x11a)||_0x2a1dd1===_0x489547(0xec)||_0x2a1dd1===_0x489547(0x105)?_0x2a1dd1:DEFAULT_CONFIG_VALUES['riskLevel'],_0x301a5b=_0x51945f[_0x489547(0x10d)]===!![],_0x271931=env('VERBOSE'),_0x388802=_0x271931==='1'||_0x271931===_0x489547(0xdc);return{'appCode':typeof _0x5395a8===_0x489547(0xe2)&&_0x5395a8['trim']()?_0x5395a8['trim']():undefined,'appCodeSource':_0x51e88d,'env':_0x133655,'locale':_0x5a6162,'cookie':_0x449c0c,'accessKey':_0x557036,'format':_0x3bb5ee,'pageSize':_0x25afe4,'riskLevel':_0x4c313b,'nativeToolAvailable':_0x301a5b,'verbose':_0x388802,'defaultApp':_0x19c8db,'currentApp':typeof _0x5d0bbe===_0x489547(0xe2)?_0x5d0bbe:undefined,'raw':_0x51945f};}function a104_0x5b0b(_0x5a8745,_0x21d008){_0x5a8745=_0x5a8745-0xc7;const _0x50f898=a104_0x50f8();let _0x5b0b7e=_0x50f898[_0x5a8745];return _0x5b0b7e;}function env(_0x4be119){return productEnv(_0x4be119);}async function buildAuth(_0x6d0b4f){const _0x423737=a104_0x479f8e,_0x468d3e='',_0x4ca891=!!_0x6d0b4f[_0x423737(0x10f)];return{'cookie':_0x468d3e,'isLoggedIn':_0x4ca891,async 'getOrLogin'(){const _0xf86736=_0x423737;if(_0x4ca891)return _0x468d3e;throw CliErrors[_0xf86736(0x10a)]();}};}
|