@lovrabet/rabetbase-cli 2.5.7 → 2.5.8-beta.1
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/api/api-doc.js +1 -1
- package/lib/api/api-group.js +1 -1
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.js +1 -1
- package/lib/api/generate-sdk-config-file.js +1 -1
- package/lib/api/legacy-api-file.js +1 -1
- package/lib/api/model-registry-file.js +1 -1
- package/lib/api/model-registry-scaffold.js +1 -1
- package/lib/api/model-source.js +1 -1
- package/lib/auth/auth-server-ui.js +1 -1
- package/lib/auth/auth-server.js +1 -1
- package/lib/auth/constant.js +1 -1
- package/lib/auth/get-cookie.js +1 -1
- package/lib/auth/get-session-user.js +1 -1
- package/lib/auth/is-session-valid.js +1 -1
- package/lib/auth/login-success-html.js +1 -1
- package/lib/auth/logout.js +1 -1
- package/lib/cli-flags.js +1 -1
- package/lib/cli.js +1 -1
- package/lib/commands/api/generate.js +1 -1
- package/lib/commands/api/index.js +1 -1
- package/lib/commands/api/list.js +1 -1
- package/lib/commands/api/pull.js +1 -1
- package/lib/commands/api/shared.js +1 -1
- package/lib/commands/app/detail.js +1 -1
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/members-list.js +1 -1
- package/lib/commands/app/remote-directory.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/delete.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/app-config/list.js +1 -1
- package/lib/commands/app-config/set.js +1 -1
- package/lib/commands/app-config/shared.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/bff/create.js +1 -1
- package/lib/commands/bff/delete.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/bff/list.js +1 -1
- package/lib/commands/bff/logs.js +1 -1
- package/lib/commands/bff/pull.js +1 -1
- package/lib/commands/bff/push.js +1 -1
- package/lib/commands/bff/status.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/cli-update.js +1 -1
- package/lib/commands/codegen/index.js +1 -1
- package/lib/commands/codegen/sdk.js +1 -1
- package/lib/commands/codegen/sql.js +1 -1
- package/lib/commands/common/app-registry.js +1 -1
- package/lib/commands/common/app-selector.js +1 -1
- package/lib/commands/common/async-task.js +1 -1
- package/lib/commands/common/dry-run.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/common/validate.js +1 -1
- package/lib/commands/config/delete.js +1 -1
- package/lib/commands/config/get.js +1 -1
- package/lib/commands/config/index.js +1 -1
- package/lib/commands/config/init.js +1 -1
- package/lib/commands/config/list.js +1 -1
- package/lib/commands/config/set.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/dataset/batch-design.js +1 -1
- package/lib/commands/dataset/business-group-update.js +1 -1
- package/lib/commands/dataset/business-groups.js +1 -1
- package/lib/commands/dataset/capability.js +1 -1
- package/lib/commands/dataset/cross-relation-create.js +1 -1
- package/lib/commands/dataset/cross-relation-delete.js +1 -1
- package/lib/commands/dataset/cross-relation-list.js +1 -1
- package/lib/commands/dataset/cross-relation-shared.js +1 -1
- package/lib/commands/dataset/cross-relation-update.js +1 -1
- package/lib/commands/dataset/delete.js +1 -1
- package/lib/commands/dataset/design-context.js +1 -1
- package/lib/commands/dataset/design-start.js +1 -1
- package/lib/commands/dataset/design-status.js +1 -1
- package/lib/commands/dataset/design-sync-retry.js +1 -1
- package/lib/commands/dataset/design-sync-status.js +1 -1
- package/lib/commands/dataset/design-validate.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/extend-update.js +1 -1
- package/lib/commands/dataset/field-restore.js +1 -1
- package/lib/commands/dataset/field-update.js +1 -1
- package/lib/commands/dataset/generate.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/dataset/relation-audit.js +1 -1
- package/lib/commands/dataset/relation-create.js +1 -1
- package/lib/commands/dataset/relation-delete.js +1 -1
- package/lib/commands/dataset/relation-shared.js +1 -1
- package/lib/commands/dataset/relation-update.js +1 -1
- package/lib/commands/dataset/relations.js +1 -1
- package/lib/commands/dataset/rename.js +1 -1
- package/lib/commands/dataset/restore.js +1 -1
- package/lib/commands/dataset/user-deleted-field-list.js +1 -1
- package/lib/commands/db/analysis-batching.js +1 -1
- package/lib/commands/db/analyze-batch-plan.js +1 -1
- package/lib/commands/db/analyze-cancel.js +1 -1
- package/lib/commands/db/analyze-start.js +1 -1
- package/lib/commands/db/analyze-status.js +1 -1
- package/lib/commands/db/create.js +1 -1
- package/lib/commands/db/cross-db-analysis-shared.js +1 -1
- package/lib/commands/db/cross-db-analyze-latest.js +1 -1
- package/lib/commands/db/cross-db-analyze-start.js +1 -1
- package/lib/commands/db/cross-db-analyze-status.js +1 -1
- package/lib/commands/db/delete.js +1 -1
- package/lib/commands/db/detail.js +1 -1
- package/lib/commands/db/diff-refresh-start.js +1 -1
- package/lib/commands/db/diff-refresh-status.js +1 -1
- package/lib/commands/db/diff.js +1 -1
- package/lib/commands/db/index.js +1 -1
- package/lib/commands/db/list.js +1 -1
- package/lib/commands/db/shared.js +1 -1
- package/lib/commands/db/table-diff-shared.js +1 -1
- package/lib/commands/db/tables.js +1 -1
- package/lib/commands/db/test.js +1 -1
- package/lib/commands/db/update.js +1 -1
- package/lib/commands/deployment/index.js +1 -1
- package/lib/commands/deployment/sync-all.js +1 -1
- package/lib/commands/deployment/sync-jobs.js +1 -1
- package/lib/commands/deployment/sync-status.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/flow/create.js +1 -1
- package/lib/commands/flow/detail.js +1 -1
- package/lib/commands/flow/index.js +1 -1
- package/lib/commands/flow/list.js +1 -1
- package/lib/commands/flow/page-list.js +1 -1
- package/lib/commands/flow/publish.js +1 -1
- package/lib/commands/flow/runtime-resources-shared.js +1 -1
- package/lib/commands/flow/runtime-role-list.js +1 -1
- package/lib/commands/flow/runtime-role-user-list.js +1 -1
- package/lib/commands/flow/runtime-user-search.js +1 -1
- package/lib/commands/flow/shared.js +1 -1
- package/lib/commands/flow/update.js +1 -1
- package/lib/commands/flow/validate.js +1 -1
- package/lib/commands/instant-api-policy/current.js +1 -1
- package/lib/commands/instant-api-policy/index.js +1 -1
- package/lib/commands/instant-api-policy/init.js +1 -1
- package/lib/commands/instant-api-policy/publish.js +1 -1
- package/lib/commands/instant-api-policy/pull.js +1 -1
- package/lib/commands/instant-api-policy/revision.js +1 -1
- package/lib/commands/instant-api-policy/revisions.js +1 -1
- package/lib/commands/instant-api-policy/rollback.js +1 -1
- package/lib/commands/instant-api-policy/shared.js +1 -1
- package/lib/commands/instant-api-policy/validate.js +1 -1
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/nudge.js +1 -1
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/issue/shared.js +1 -1
- package/lib/commands/kb/create.js +1 -1
- package/lib/commands/kb/delete.js +1 -1
- package/lib/commands/kb/detail.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/kb/list.js +1 -1
- package/lib/commands/kb/search.js +1 -1
- package/lib/commands/kb/shared.js +1 -1
- package/lib/commands/kb/update.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/asset-update.js +1 -1
- package/lib/commands/menu/delete.js +1 -1
- package/lib/commands/menu/external-link-create.js +1 -1
- package/lib/commands/menu/external-link-update.js +1 -1
- package/lib/commands/menu/group-create.js +1 -1
- package/lib/commands/menu/group-update.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/list.js +1 -1
- package/lib/commands/menu/move.js +1 -1
- package/lib/commands/menu/regroup-start.js +1 -1
- package/lib/commands/menu/rename.js +1 -1
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/delete-plan.js +1 -1
- package/lib/commands/menu/shared/facts.js +1 -1
- package/lib/commands/menu/shared/index.js +1 -1
- package/lib/commands/menu/shared/inquirer.js +1 -1
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.js +1 -1
- package/lib/commands/menu/shared/mutations.js +1 -1
- package/lib/commands/menu/shared/path.js +1 -1
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/subapp-assets.js +1 -1
- package/lib/commands/menu/shared/sync-core.js +1 -1
- package/lib/commands/menu/shared/update-core.js +1 -1
- package/lib/commands/menu/shared/valid-url.js +1 -1
- package/lib/commands/menu/subapp-assets-status.js +1 -1
- package/lib/commands/menu/subapp-assets-update.js +1 -1
- package/lib/commands/menu/sync.js +1 -1
- package/lib/commands/menu/visibility-update.js +1 -1
- package/lib/commands/notification/config-create.js +1 -1
- package/lib/commands/notification/config-delete.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/config-update.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/page/create.js +1 -1
- package/lib/commands/page/custom/detail.js +1 -1
- package/lib/commands/page/custom/list.js +1 -1
- package/lib/commands/page/custom/publish.js +1 -1
- package/lib/commands/page/custom/shared.js +1 -1
- package/lib/commands/page/custom/syntax.js +1 -1
- package/lib/commands/page/custom/update.js +1 -1
- package/lib/commands/page/data-list-status.js +1 -1
- package/lib/commands/page/generate-start.js +1 -1
- package/lib/commands/page/generate-status.js +1 -1
- package/lib/commands/page/index.js +1 -1
- package/lib/commands/page/pull.js +1 -1
- package/lib/commands/page/push.js +1 -1
- package/lib/commands/page/relation-audit.js +1 -1
- package/lib/commands/page/restore.js +1 -1
- package/lib/commands/page/shared.js +1 -1
- package/lib/commands/page/sync.js +1 -1
- package/lib/commands/project/api-architecture-upgrade.js +1 -1
- package/lib/commands/project/create/enhanced-guided-create.js +1 -1
- package/lib/commands/project/create/format-elapsed.js +1 -1
- package/lib/commands/project/create/main.js +1 -1
- package/lib/commands/project/create/materialize-project-template.js +1 -1
- package/lib/commands/project/create/project-name.js +1 -1
- package/lib/commands/project/create/project-template-archive.js +1 -1
- package/lib/commands/project/create/project-template-path.js +1 -1
- package/lib/commands/project/create/use-copy-project-template.js +1 -1
- package/lib/commands/project/create/use-format-code.js +1 -1
- package/lib/commands/project/create/use-install-dependencies.js +1 -1
- package/lib/commands/project/domain-routing-sync.js +1 -1
- package/lib/commands/project/index.js +1 -1
- package/lib/commands/project/upgrade.js +1 -1
- package/lib/commands/registry.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/role/user-resolve.js +1 -1
- package/lib/commands/rule/get.js +1 -1
- package/lib/commands/rule/index.js +1 -1
- package/lib/commands/rule/list.js +1 -1
- package/lib/commands/rule/set.js +1 -1
- package/lib/commands/rule/shared.js +1 -1
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/sql/create.js +1 -1
- package/lib/commands/sql/delete.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/sql/list.js +1 -1
- package/lib/commands/sql/pull.js +1 -1
- package/lib/commands/sql/push.js +1 -1
- package/lib/commands/sql/shared.js +1 -1
- package/lib/commands/sql/status.js +1 -1
- package/lib/commands/sql/validate.js +1 -1
- package/lib/commands/task/index.js +1 -1
- package/lib/commands/task/status.js +1 -1
- package/lib/commands/tenant/index.js +1 -1
- package/lib/commands/tenant/members-list.js +1 -1
- package/lib/commands/tenant/shared.js +1 -1
- package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
- package/lib/commands/user-account/feishu-bind.js +1 -1
- package/lib/commands/user-account/index.js +1 -1
- package/lib/commands/workspace/add.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/commands/workspace/remove.js +1 -1
- package/lib/config/domain-config.js +1 -1
- package/lib/config/project-domain-routing.js +1 -1
- package/lib/config/region-config.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/cdn.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.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/paths.js +1 -1
- package/lib/constant/region.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/routing-profile.js +1 -1
- package/lib/context/app-resolver.js +1 -1
- package/lib/context/auth-resolver.js +1 -1
- package/lib/context/config-loader.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/bff/config.js +1 -1
- package/lib/core/bff/file-system.js +1 -1
- package/lib/core/bff/hash.js +1 -1
- package/lib/core/bff/hook-directory.js +1 -1
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/cross-db-analysis.js +1 -1
- package/lib/core/cross-db-relation.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/flow-config.js +1 -1
- package/lib/core/instant-api-policy/config.js +1 -1
- package/lib/core/kb-search-client.js +1 -1
- package/lib/core/page/file-system.js +1 -1
- package/lib/core/page/hash.js +1 -1
- package/lib/core/page/lock.js +1 -1
- package/lib/core/page/lr-smart-jsx.js +1 -1
- package/lib/core/sql-index-auditor.js +1 -1
- package/lib/core/sql-sync/config.js +1 -1
- package/lib/core/sql-sync/file-system.js +1 -1
- package/lib/core/sql-sync/hash.js +1 -1
- package/lib/core/sql-sync/lock.js +1 -1
- package/lib/core/sql-sync/utils.js +1 -1
- package/lib/core/sql-validator.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/error-output.js +1 -1
- package/lib/framework/explicit-yes.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/response.js +1 -1
- package/lib/framework/runner-alias.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/supported-flags.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-design/checkpoint.js +1 -1
- package/lib/services/dataset-design/commands.js +1 -1
- package/lib/services/dataset-design/contract.js +1 -1
- package/lib/skills/builtin-skill.js +1 -1
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/skill-presence.js +1 -1
- package/lib/telemetry/cli-command-trace.js +1 -1
- package/lib/telemetry/cli-help-trace.js +1 -1
- package/lib/telemetry/ensure-cli-otel-config.js +1 -1
- package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
- package/lib/telemetry/send-cli-trace-log.js +1 -1
- package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
- package/lib/utils/ai_config.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cdn-config.js +1 -1
- package/lib/utils/check-sdk-version.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/config.js +1 -1
- package/lib/utils/entity-with-id.js +1 -1
- package/lib/utils/file-utils.js +1 -1
- package/lib/utils/guides-cdn.js +1 -1
- package/lib/utils/http-client.js +1 -1
- package/lib/utils/is-non-interactive.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/sleep.js +1 -1
- package/lib/utils/template-replacer.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/with-active-cookie.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
- package/skills/rabetbase/SKILL.md +1 -1
- package/skills/rabetbase-dataset-generation/SKILL.md +1 -1
- package/skills/rabetbase-page-generation/SKILL.md +1 -1
- package/skills/rabetbase.manifest.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a271_0x43cd33=a271_0x2fc6;(function(_0x13fec2,_0x49a101){const _0x390c80=a271_0x2fc6,_0x1e18d7=_0x13fec2();while(!![]){try{const _0x10fdc6=parseInt(_0x390c80(0xea))/0x1*(parseInt(_0x390c80(0xef))/0x2)+parseInt(_0x390c80(0xeb))/0x3+parseInt(_0x390c80(0xde))/0x4+parseInt(_0x390c80(0xe6))/0x5+parseInt(_0x390c80(0xdf))/0x6*(-parseInt(_0x390c80(0xe3))/0x7)+parseInt(_0x390c80(0xee))/0x8+-parseInt(_0x390c80(0xe2))/0x9;if(_0x10fdc6===_0x49a101)break;else _0x1e18d7['push'](_0x1e18d7['shift']());}catch(_0x36c24d){_0x1e18d7['push'](_0x1e18d7['shift']());}}}(a271_0x475d,0x6b745));import{CLI_BIN_NAME}from'../constant/cli.js';function a271_0x2fc6(_0x6c1503,_0x4a47ed){_0x6c1503=_0x6c1503-0xd3;const _0x475d62=a271_0x475d();let _0x2fc68a=_0x475d62[_0x6c1503];return _0x2fc68a;}function a271_0x475d(){const _0x2986fe=['appRegion','app','mergedRegion','\x20doctor`\x20to\x20locate\x20and\x20repair\x20the\x20invalid\x20configuration\x20before\x20retrying.','appName','globalRegion','null','default','config','2533604uOjTXw','6MxEFle','global','projectRegion','8934363DqiYQK','443541XSRiGY','app\x20profile\x20\x22','Rabetbase\x20configuration','886340XMonwq','Invalid\x20country/region\x20','source','global\x20Rabetbase\x20configuration','7JKRVpH','472929qmOmfF','\x20in\x20','project\x20Rabetbase\x20configuration','1317904aCXwvR','103758TlwBBL','project','Run\x20`'];a271_0x475d=function(){return _0x2986fe;};return a271_0x475d();}import{DEFAULT_LOVRABET_REGION,isInvalidLovrabetRegion,normalizeLovrabetRegion}from'../constant/region.js';import{CliErrors}from'../errors.js';export function selectConfiguredRegion(_0x3b4ee1){const _0x2b28f1=a271_0x2fc6;if(_0x3b4ee1[_0x2b28f1(0xd5)]!==undefined&&_0x3b4ee1['appRegion']!==null&&_0x3b4ee1[_0x2b28f1(0xd5)]!=='')return{'value':_0x3b4ee1[_0x2b28f1(0xd5)],'source':'app'};if(_0x3b4ee1[_0x2b28f1(0xe1)]!==undefined&&_0x3b4ee1['projectRegion']!==null&&_0x3b4ee1[_0x2b28f1(0xe1)]!=='')return{'value':_0x3b4ee1[_0x2b28f1(0xe1)],'source':_0x2b28f1(0xd3)};if(_0x3b4ee1['globalRegion']!==undefined&&_0x3b4ee1[_0x2b28f1(0xda)]!==null&&_0x3b4ee1['globalRegion']!=='')return{'value':_0x3b4ee1[_0x2b28f1(0xda)],'source':_0x2b28f1(0xe0)};if(_0x3b4ee1['mergedRegion']!==undefined&&_0x3b4ee1[_0x2b28f1(0xd7)]!==null&&_0x3b4ee1[_0x2b28f1(0xd7)]!=='')return{'value':_0x3b4ee1[_0x2b28f1(0xd7)],'source':_0x2b28f1(0xdd)};return{'value':undefined,'source':_0x2b28f1(0xdc)};}function describeConfiguredRegion(_0x360c19){const _0x55ca33=a271_0x2fc6;return typeof _0x360c19==='string'?JSON['stringify'](_0x360c19):'a\x20value\x20of\x20type\x20'+(_0x360c19===null?_0x55ca33(0xdb):typeof _0x360c19);}export function resolveConfiguredRegion(_0x4a3e8c,_0x378e7f=a271_0x43cd33(0xe5)){const _0x272744=a271_0x43cd33;if(isInvalidLovrabetRegion(_0x4a3e8c))throw CliErrors['validation'](_0x272744(0xe7)+describeConfiguredRegion(_0x4a3e8c)+_0x272744(0xec)+_0x378e7f+'.',_0x272744(0xd4)+CLI_BIN_NAME+_0x272744(0xd8));return normalizeLovrabetRegion(_0x4a3e8c)??DEFAULT_LOVRABET_REGION;}export function resolveEffectiveRegion(_0x1938a6){const _0x4bf6d7=a271_0x43cd33,_0x5e6804=selectConfiguredRegion(_0x1938a6),_0x40ea0c=_0x5e6804[_0x4bf6d7(0xe8)]===_0x4bf6d7(0xd6)?_0x1938a6[_0x4bf6d7(0xd9)]?_0x4bf6d7(0xe4)+_0x1938a6[_0x4bf6d7(0xd9)]+'\x22':'selected\x20app\x20profile':_0x5e6804[_0x4bf6d7(0xe8)]===_0x4bf6d7(0xd3)?_0x4bf6d7(0xed):_0x5e6804['source']===_0x4bf6d7(0xe0)?_0x4bf6d7(0xe9):_0x4bf6d7(0xe5);return{'region':resolveConfiguredRegion(_0x5e6804['value'],_0x40ea0c),'source':_0x5e6804['source']};}
|
package/lib/config/schema.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a272_0x395c25=a272_0x57ea;(function(_0xaee088,_0x4e7d4a){const _0x321789=a272_0x57ea,_0x26bb5d=_0xaee088();while(!![]){try{const _0x5db583=-parseInt(_0x321789(0x1f7))/0x1*(-parseInt(_0x321789(0x1d7))/0x2)+-parseInt(_0x321789(0x1cc))/0x3*(parseInt(_0x321789(0x1bf))/0x4)+parseInt(_0x321789(0x1df))/0x5+parseInt(_0x321789(0x1f1))/0x6+-parseInt(_0x321789(0x1e4))/0x7*(parseInt(_0x321789(0x1da))/0x8)+parseInt(_0x321789(0x1cb))/0x9*(-parseInt(_0x321789(0x1e8))/0xa)+parseInt(_0x321789(0x1ce))/0xb*(-parseInt(_0x321789(0x1d9))/0xc);if(_0x5db583===_0x4e7d4a)break;else _0x26bb5d['push'](_0x26bb5d['shift']());}catch(_0x1d4ae8){_0x26bb5d['push'](_0x26bb5d['shift']());}}}(a272_0x29ef,0xef5c5));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{isDaily,isProduction,RABETBASE_ENV_VALUES}from'../constant/env.js';import{RABETBASE_OUTPUT_FORMAT_VALUES}from'../constant/output.js';import{RISK_LEVEL_VALUES}from'../constant/risk.js';import{ENABLED_LOVRABET_REGION_VALUES}from'../constant/region.js';export{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';export const PROJECT_CREATE_INHERITABLE_KEYS=[a272_0x395c25(0x1d6),a272_0x395c25(0x1be),a272_0x395c25(0x1d4),a272_0x395c25(0x1f6),a272_0x395c25(0x1f3),a272_0x395c25(0x1c4),a272_0x395c25(0x1dc),a272_0x395c25(0x1e7),'apiDomain',a272_0x395c25(0x1e2),a272_0x395c25(0x1c9),a272_0x395c25(0x1d5),a272_0x395c25(0x1db),a272_0x395c25(0x1ef),'localDomain',a272_0x395c25(0x1ea)];export const TOP_LEVEL_CONFIG_KEYS=new Set([a272_0x395c25(0x1e5),a272_0x395c25(0x1d3),a272_0x395c25(0x1d4),a272_0x395c25(0x1f6),a272_0x395c25(0x1d6),a272_0x395c25(0x1be),'apiDir',a272_0x395c25(0x1c4),a272_0x395c25(0x1e7),a272_0x395c25(0x1e9),a272_0x395c25(0x1e2),'skillDomain',a272_0x395c25(0x1d5),a272_0x395c25(0x1db),a272_0x395c25(0x1ef),'localDomain',a272_0x395c25(0x1ea)]);export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES],'region':[...ENABLED_LOVRABET_REGION_VALUES]};export function formatConfigKeyList(_0x2d784f){const _0x4db3d0=a272_0x395c25;return[..._0x2d784f][_0x4db3d0(0x1cf)](',\x20');}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function isTopLevelConfigKey(_0x370d93){const _0x5f4435=a272_0x395c25;return TOP_LEVEL_CONFIG_KEYS[_0x5f4435(0x1d1)](_0x370d93);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x25011f=a272_0x395c25;return _0x25011f(0x1bc)+getTopLevelConfigKeySummary()+')';}export const APP_PROFILE_FLAG_KEY_MAP={'apiGroup':'apiGroup','region':a272_0x395c25(0x1c4),'env':a272_0x395c25(0x1d3),'apiDir':a272_0x395c25(0x1f8),'cookie':'cookie','accessKey':a272_0x395c25(0x1be),'defaultFormat':a272_0x395c25(0x1f6),'pageSize':a272_0x395c25(0x1c3),'riskLevel':a272_0x395c25(0x1f3),'locale':a272_0x395c25(0x1d4)};function a272_0x29ef(){const _0x113408=['skillDomain','keys','1093797TyyjMA','8232NqojyQ','app','11zBQDgl','join','App\x20locale\x20(not\x20CLI\x20language;\x20reserved\x20for\x20later\x20app\x20use)','has','en-US','env','locale','kbDomain','cookie','1507694wnGTIC','some','16273260XLQuAA','2112512ltCxaO','kbServiceDomain','routing','string','inherit','8776255zJzBmg','fromEntries','entries','runtimeDomain','Join\x20key\x20for\x20app\x20profiles\x20that\x20share\x20one\x20generated\x20API\x20model\x20registry','28BYikyX','appcode','Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','userDomain','30kLZjuQ','apiDomain','certificateDomain','map','Auth\x20cookie','Target\x20environment','zh-CN','appDomain','values','8625714uqGPZr','API\x20directory\x20path','riskLevel','apps','Risk\x20level','format','1LXDUlV','apiDir','defaultFormat','Config\x20key\x20(','isArray','accessKey','276MCUbWo','object','Access\x20key','apiGroup','pageSize','region','defaultApp','Default\x20page\x20size','length','trim'];a272_0x29ef=function(){return _0x113408;};return a272_0x29ef();}export function getAppProfileFlagDefs(){const _0x236c7c=a272_0x395c25;return[{'name':_0x236c7c(0x1c2),'type':_0x236c7c(0x1dd),'description':_0x236c7c(0x1e3)},{'name':_0x236c7c(0x1c4),'type':_0x236c7c(0x1dd),'description':'Country/region\x20for\x20this\x20app\x20profile','enum':[...ENABLED_LOVRABET_REGION_VALUES]},{'name':_0x236c7c(0x1d3),'type':'string','description':_0x236c7c(0x1ed),'enum':[...RABETBASE_ENV_VALUES]},{'name':_0x236c7c(0x1f8),'type':_0x236c7c(0x1dd),'description':_0x236c7c(0x1f2)},{'name':_0x236c7c(0x1d6),'type':_0x236c7c(0x1dd),'description':_0x236c7c(0x1ec),'hidden':!![]},{'name':_0x236c7c(0x1be),'type':'string','description':_0x236c7c(0x1c1),'hidden':!![]},{'name':_0x236c7c(0x1bb),'type':_0x236c7c(0x1dd),'description':_0x236c7c(0x1e6),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':_0x236c7c(0x1c3),'type':'number','description':_0x236c7c(0x1c6)},{'name':_0x236c7c(0x1f3),'type':_0x236c7c(0x1dd),'description':_0x236c7c(0x1f5),'enum':[...RISK_LEVEL_VALUES]},{'name':_0x236c7c(0x1d4),'type':_0x236c7c(0x1dd),'description':_0x236c7c(0x1d0)}];}export function collectAppProfileOverrides(_0x5c1af0){const _0x3df2c3=a272_0x395c25,_0x5510f2={};for(const [_0x5a0bb2,_0x51b9f7]of Object[_0x3df2c3(0x1e1)](APP_PROFILE_FLAG_KEY_MAP)){const _0x35db21=_0x5c1af0(_0x5a0bb2);if(!_0x35db21)continue;_0x5510f2[_0x51b9f7]=_0x51b9f7===_0x3df2c3(0x1c3)?Number(_0x35db21):_0x35db21;}return _0x5510f2;}export function buildAppProfileListFields(_0x229bf3){const _0x3d53a7=a272_0x395c25;return{'apiGroup':_0x229bf3['apiGroup']??null,'region':_0x229bf3[_0x3d53a7(0x1c4)]??null,'env':_0x229bf3[_0x3d53a7(0x1d3)]??null,'apiDir':_0x229bf3['apiDir']??null,'hasCookie':!!_0x229bf3[_0x3d53a7(0x1d6)],'hasAccessKey':!!_0x229bf3['accessKey'],'format':_0x229bf3['format']??null,'pageSize':_0x229bf3[_0x3d53a7(0x1c3)]??null,'riskLevel':_0x229bf3[_0x3d53a7(0x1f3)]??null,'locale':_0x229bf3['locale']??null};}export function buildAppDoctorFields(_0x2d5507,_0xd37d1e){const _0x58eff9=a272_0x395c25;return{'region':{'value':_0x2d5507[_0x58eff9(0x1c4)]||_0xd37d1e[_0x58eff9(0x1c4)],'source':_0x2d5507[_0x58eff9(0x1c4)]?_0x58eff9(0x1cd):_0x58eff9(0x1de)},'env':{'value':_0x2d5507['env']||_0xd37d1e[_0x58eff9(0x1d3)],'source':_0x2d5507['env']?_0x58eff9(0x1cd):_0x58eff9(0x1de)},'apiDir':{'value':_0x2d5507[_0x58eff9(0x1f8)]||_0xd37d1e['apiDir'],'source':_0x2d5507['apiDir']?'app':_0x58eff9(0x1de)},'cookie':{'value':_0x2d5507[_0x58eff9(0x1d6)]||_0xd37d1e[_0x58eff9(0x1d6)],'source':_0x2d5507[_0x58eff9(0x1d6)]?'app':_0x58eff9(0x1de)},'accessKey':{'value':_0x2d5507[_0x58eff9(0x1be)]||_0xd37d1e[_0x58eff9(0x1be)],'source':_0x2d5507[_0x58eff9(0x1be)]?_0x58eff9(0x1cd):_0x58eff9(0x1de)}};}export function buildCanonicalAppConfig(_0x3097b9,_0x5b3fd2){const _0x2027b0=a272_0x395c25,_0x88ad5c=_0x3097b9[_0x2027b0(0x1eb)](_0x31affd=>String(_0x31affd||'')[_0x2027b0(0x1c8)]())['filter'](Boolean);if(_0x88ad5c[_0x2027b0(0x1c7)]===0x0)return{};const _0x9e79c3={};for(const _0x5cf7fa of _0x88ad5c){_0x9e79c3[_0x5cf7fa]=_0x5b3fd2&&!isProduction(_0x5b3fd2)?{'appcode':_0x5cf7fa,'env':_0x5b3fd2}:{'appcode':_0x5cf7fa};}return _0x88ad5c['length']>0x1?{'apps':_0x9e79c3,'defaultApp':_0x88ad5c[0x0]}:{'apps':_0x9e79c3};}export function normalizeStoredDefaultApp(_0x426105,_0x13ebc8){const _0x5257b9=a272_0x395c25,_0x337839=_0x426105[_0x5257b9(0x1f4)]&&typeof _0x426105[_0x5257b9(0x1f4)]===_0x5257b9(0x1c0)?_0x426105[_0x5257b9(0x1f4)]:{},_0x44f176=Object['keys'](_0x337839);if(_0x44f176['length']<=0x1)return delete _0x426105[_0x5257b9(0x1c5)],undefined;const _0x5a21e3=typeof _0x426105[_0x5257b9(0x1c5)]===_0x5257b9(0x1dd)&&_0x337839[_0x426105[_0x5257b9(0x1c5)]]?_0x426105[_0x5257b9(0x1c5)]:undefined,_0x1747f5=_0x13ebc8&&_0x337839[_0x13ebc8]?_0x13ebc8:_0x5a21e3;if(_0x1747f5)return _0x426105[_0x5257b9(0x1c5)]=_0x1747f5,_0x1747f5;return delete _0x426105[_0x5257b9(0x1c5)],undefined;}export function buildCanonicalProjectConfig(_0x341a77,_0xdb748e){const _0x38ddfb=a272_0x395c25,{appCodes:appCodes=[],env:_0x5d9f07,metadata:_0x181eae}=_0xdb748e,_0x25f55c={..._0x341a77,..._0x181eae||{}};delete _0x25f55c[_0x38ddfb(0x1e5)],delete _0x25f55c[_0x38ddfb(0x1cd)];const _0x357f03=_0x5d9f07||(typeof _0x25f55c[_0x38ddfb(0x1d3)]===_0x38ddfb(0x1dd)?_0x25f55c[_0x38ddfb(0x1d3)]:'')||DEFAULT_CONFIG_VALUES[_0x38ddfb(0x1d3)];if(isProduction(_0x357f03))delete _0x25f55c[_0x38ddfb(0x1d3)];else _0x25f55c['env']=_0x357f03;const _0x38ce9c=buildCanonicalAppConfig(appCodes,_0x357f03);if(Object[_0x38ddfb(0x1ca)](_0x38ce9c)[_0x38ddfb(0x1c7)]>0x0){_0x25f55c[_0x38ddfb(0x1f4)]=_0x38ce9c[_0x38ddfb(0x1f4)];if(_0x38ce9c['defaultApp'])_0x25f55c[_0x38ddfb(0x1c5)]=_0x38ce9c['defaultApp'];else delete _0x25f55c['defaultApp'];}return normalizeConfigForWrite(_0x25f55c);}function isRecord(_0x38df54){const _0x57cd38=a272_0x395c25;return!!_0x38df54&&typeof _0x38df54===_0x57cd38(0x1c0)&&!Array[_0x57cd38(0x1bd)](_0x38df54);}function a272_0x57ea(_0x49ae0d,_0x35f875){_0x49ae0d=_0x49ae0d-0x1bb;const _0x29efb6=a272_0x29ef();let _0x57ea5a=_0x29efb6[_0x49ae0d];return _0x57ea5a;}export function normalizeConfigForWrite(_0x151c3c){const _0x2bb6de=a272_0x395c25,_0x4ec27d={..._0x151c3c},_0x87215c=isRecord(_0x151c3c[_0x2bb6de(0x1f4)])?_0x151c3c[_0x2bb6de(0x1f4)]:undefined,_0x389bd=_0x87215c?Object[_0x2bb6de(0x1e0)](Object[_0x2bb6de(0x1e1)](_0x87215c)[_0x2bb6de(0x1eb)](([_0xf1c629,_0x900248])=>[_0xf1c629,isRecord(_0x900248)?{..._0x900248}:_0x900248])):undefined;if(_0x389bd){const _0x1ecb70=typeof _0x4ec27d[_0x2bb6de(0x1d3)]==='string'?_0x4ec27d[_0x2bb6de(0x1d3)]:undefined,_0x2c79b7=Object['values'](_0x389bd)[_0x2bb6de(0x1d8)](_0x4507d2=>isRecord(_0x4507d2)&&typeof _0x4507d2[_0x2bb6de(0x1d3)]===_0x2bb6de(0x1dd)&&isProduction(_0x4507d2['env']));if(_0x1ecb70&&isDaily(_0x1ecb70)&&_0x2c79b7){for(const _0x10ad1b of Object[_0x2bb6de(0x1f0)](_0x389bd)){if(!isRecord(_0x10ad1b))continue;if(_0x10ad1b[_0x2bb6de(0x1d3)]===undefined)_0x10ad1b[_0x2bb6de(0x1d3)]=_0x1ecb70;}delete _0x4ec27d[_0x2bb6de(0x1d3)];}for(const _0x26b088 of Object[_0x2bb6de(0x1f0)](_0x389bd)){isRecord(_0x26b088)&&typeof _0x26b088[_0x2bb6de(0x1d3)]==='string'&&isProduction(_0x26b088[_0x2bb6de(0x1d3)])&&delete _0x26b088[_0x2bb6de(0x1d3)];}_0x4ec27d[_0x2bb6de(0x1f4)]=_0x389bd;}return typeof _0x4ec27d[_0x2bb6de(0x1d3)]===_0x2bb6de(0x1dd)&&isProduction(_0x4ec27d[_0x2bb6de(0x1d3)])&&delete _0x4ec27d[_0x2bb6de(0x1d3)],_0x4ec27d;}const LOCALE_MAP={'zh':a272_0x395c25(0x1ee),'zh-cn':a272_0x395c25(0x1ee),'zh_cn':a272_0x395c25(0x1ee),'en':'en-US','en-us':a272_0x395c25(0x1d2),'en_us':a272_0x395c25(0x1d2)};export function normalizeLocale(_0x3ac111){if(!_0x3ac111)return null;return LOCALE_MAP[_0x3ac111['toLowerCase']()]??null;}
|
|
1
|
+
const a272_0x17d927=a272_0x55dd;(function(_0x43eb2f,_0xfdec69){const _0x2be314=a272_0x55dd,_0x1f20a4=_0x43eb2f();while(!![]){try{const _0x5e73e8=-parseInt(_0x2be314(0x199))/0x1+parseInt(_0x2be314(0x1a6))/0x2+-parseInt(_0x2be314(0x1a1))/0x3+-parseInt(_0x2be314(0x18a))/0x4+-parseInt(_0x2be314(0x19b))/0x5*(parseInt(_0x2be314(0x1a3))/0x6)+parseInt(_0x2be314(0x194))/0x7*(parseInt(_0x2be314(0x1ab))/0x8)+-parseInt(_0x2be314(0x1a5))/0x9*(-parseInt(_0x2be314(0x189))/0xa);if(_0x5e73e8===_0xfdec69)break;else _0x1f20a4['push'](_0x1f20a4['shift']());}catch(_0x30de31){_0x1f20a4['push'](_0x1f20a4['shift']());}}}(a272_0x320c,0xc91fd));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{isDaily,isProduction,RABETBASE_ENV_VALUES}from'../constant/env.js';import{RABETBASE_OUTPUT_FORMAT_VALUES}from'../constant/output.js';import{RISK_LEVEL_VALUES}from'../constant/risk.js';import{ENABLED_LOVRABET_REGION_VALUES}from'../constant/region.js';export{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';function a272_0x320c(){const _0xe8413d=['Target\x20environment','defaultFormat','some','inherit','join','certificateDomain','10703VGEgGU','Config\x20key\x20(','apiDir','app','cookie','737371KzCxxi','kbDomain','1850rPDnOB','object','apiGroup','Risk\x20level','has','runtimeDomain','3698676IoZAIk','apps','12186ffHXqT','riskLevel','10980amNIdf','419352Fzjjwy','number','appDomain','map','env','6128uteJvW','region','skillDomain','App\x20locale\x20(not\x20CLI\x20language;\x20reserved\x20for\x20later\x20app\x20use)','string','entries','localDomain','locale','format','keys','length','Auth\x20cookie','Join\x20key\x20for\x20app\x20profiles\x20that\x20share\x20one\x20generated\x20API\x20model\x20registry','Access\x20key','kbServiceDomain','trim','defaultApp','appcode','accessKey','fromEntries','userDomain','Default\x20page\x20size','API\x20directory\x20path','values','routing','apiDomain','toLowerCase','23450ceVqsO','2785008hIPbIF','en-US','Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','pageSize'];a272_0x320c=function(){return _0xe8413d;};return a272_0x320c();}export const PROJECT_CREATE_INHERITABLE_KEYS=['cookie',a272_0x17d927(0x180),a272_0x17d927(0x1b2),'format','riskLevel','region',a272_0x17d927(0x186),'userDomain',a272_0x17d927(0x187),a272_0x17d927(0x1a0),a272_0x17d927(0x1ad),a272_0x17d927(0x19a),'kbServiceDomain',a272_0x17d927(0x1a8),a272_0x17d927(0x1b1),a272_0x17d927(0x193)];export const TOP_LEVEL_CONFIG_KEYS=new Set([a272_0x17d927(0x17f),a272_0x17d927(0x1aa),'locale',a272_0x17d927(0x1b3),a272_0x17d927(0x198),a272_0x17d927(0x180),'apiDir',a272_0x17d927(0x1ac),a272_0x17d927(0x182),a272_0x17d927(0x187),a272_0x17d927(0x1a0),a272_0x17d927(0x1ad),'kbDomain',a272_0x17d927(0x17c),'appDomain',a272_0x17d927(0x1b1),a272_0x17d927(0x193)]);function a272_0x55dd(_0x5c8bbb,_0x5e171c){_0x5c8bbb=_0x5c8bbb-0x17b;const _0x320cfc=a272_0x320c();let _0x55dd77=_0x320cfc[_0x5c8bbb];return _0x55dd77;}export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES],'region':[...ENABLED_LOVRABET_REGION_VALUES]};export function formatConfigKeyList(_0x476949){const _0x52ddef=a272_0x17d927;return[..._0x476949][_0x52ddef(0x192)](',\x20');}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function isTopLevelConfigKey(_0xbbe5ce){const _0x1fb7e6=a272_0x17d927;return TOP_LEVEL_CONFIG_KEYS[_0x1fb7e6(0x19f)](_0xbbe5ce);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x4da5d2=a272_0x17d927;return _0x4da5d2(0x195)+getTopLevelConfigKeySummary()+')';}export const APP_PROFILE_FLAG_KEY_MAP={'apiGroup':a272_0x17d927(0x19d),'region':a272_0x17d927(0x1ac),'env':a272_0x17d927(0x1aa),'apiDir':a272_0x17d927(0x196),'cookie':a272_0x17d927(0x198),'accessKey':a272_0x17d927(0x180),'defaultFormat':a272_0x17d927(0x1b3),'pageSize':a272_0x17d927(0x18d),'riskLevel':a272_0x17d927(0x1a4),'locale':a272_0x17d927(0x1b2)};export function getAppProfileFlagDefs(){const _0x5a4690=a272_0x17d927;return[{'name':_0x5a4690(0x19d),'type':_0x5a4690(0x1af),'description':_0x5a4690(0x1b7)},{'name':'region','type':'string','description':'Country/region\x20for\x20this\x20app\x20profile','enum':[...ENABLED_LOVRABET_REGION_VALUES]},{'name':_0x5a4690(0x1aa),'type':_0x5a4690(0x1af),'description':_0x5a4690(0x18e),'enum':[...RABETBASE_ENV_VALUES]},{'name':'apiDir','type':_0x5a4690(0x1af),'description':_0x5a4690(0x184)},{'name':'cookie','type':_0x5a4690(0x1af),'description':_0x5a4690(0x1b6),'hidden':!![]},{'name':_0x5a4690(0x180),'type':_0x5a4690(0x1af),'description':_0x5a4690(0x17b),'hidden':!![]},{'name':_0x5a4690(0x18f),'type':_0x5a4690(0x1af),'description':_0x5a4690(0x18c),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':'pageSize','type':_0x5a4690(0x1a7),'description':_0x5a4690(0x183)},{'name':_0x5a4690(0x1a4),'type':_0x5a4690(0x1af),'description':_0x5a4690(0x19e),'enum':[...RISK_LEVEL_VALUES]},{'name':_0x5a4690(0x1b2),'type':_0x5a4690(0x1af),'description':_0x5a4690(0x1ae)}];}export function collectAppProfileOverrides(_0x2192b4){const _0x518574=a272_0x17d927,_0x1340d0={};for(const [_0x53eda8,_0x125d51]of Object[_0x518574(0x1b0)](APP_PROFILE_FLAG_KEY_MAP)){const _0x23b24e=_0x2192b4(_0x53eda8);if(!_0x23b24e)continue;_0x1340d0[_0x125d51]=_0x125d51===_0x518574(0x18d)?Number(_0x23b24e):_0x23b24e;}return _0x1340d0;}export function buildAppProfileListFields(_0x55d46a){const _0x41b007=a272_0x17d927;return{'apiGroup':_0x55d46a['apiGroup']??null,'region':_0x55d46a['region']??null,'env':_0x55d46a['env']??null,'apiDir':_0x55d46a['apiDir']??null,'hasCookie':!!_0x55d46a[_0x41b007(0x198)],'hasAccessKey':!!_0x55d46a[_0x41b007(0x180)],'format':_0x55d46a[_0x41b007(0x1b3)]??null,'pageSize':_0x55d46a['pageSize']??null,'riskLevel':_0x55d46a[_0x41b007(0x1a4)]??null,'locale':_0x55d46a[_0x41b007(0x1b2)]??null};}export function buildAppDoctorFields(_0x766925,_0x1e2f30){const _0x2bed20=a272_0x17d927;return{'region':{'value':_0x766925[_0x2bed20(0x1ac)]||_0x1e2f30[_0x2bed20(0x1ac)],'source':_0x766925[_0x2bed20(0x1ac)]?_0x2bed20(0x197):_0x2bed20(0x191)},'env':{'value':_0x766925['env']||_0x1e2f30[_0x2bed20(0x1aa)],'source':_0x766925[_0x2bed20(0x1aa)]?_0x2bed20(0x197):_0x2bed20(0x191)},'apiDir':{'value':_0x766925[_0x2bed20(0x196)]||_0x1e2f30[_0x2bed20(0x196)],'source':_0x766925['apiDir']?_0x2bed20(0x197):_0x2bed20(0x191)},'cookie':{'value':_0x766925['cookie']||_0x1e2f30['cookie'],'source':_0x766925[_0x2bed20(0x198)]?_0x2bed20(0x197):_0x2bed20(0x191)},'accessKey':{'value':_0x766925[_0x2bed20(0x180)]||_0x1e2f30['accessKey'],'source':_0x766925[_0x2bed20(0x180)]?'app':_0x2bed20(0x191)}};}export function buildCanonicalAppConfig(_0x59283c,_0xe15fb){const _0x139766=a272_0x17d927,_0x241ab6=_0x59283c[_0x139766(0x1a9)](_0x5d75ab=>String(_0x5d75ab||'')[_0x139766(0x17d)]())['filter'](Boolean);if(_0x241ab6[_0x139766(0x1b5)]===0x0)return{};const _0x11f9a9={};for(const _0x2d44e5 of _0x241ab6){_0x11f9a9[_0x2d44e5]=_0xe15fb&&!isProduction(_0xe15fb)?{'appcode':_0x2d44e5,'env':_0xe15fb}:{'appcode':_0x2d44e5};}return _0x241ab6['length']>0x1?{'apps':_0x11f9a9,'defaultApp':_0x241ab6[0x0]}:{'apps':_0x11f9a9};}export function normalizeStoredDefaultApp(_0x15c889,_0x349433){const _0x1934c9=a272_0x17d927,_0x5d4e13=_0x15c889[_0x1934c9(0x1a2)]&&typeof _0x15c889['apps']==='object'?_0x15c889[_0x1934c9(0x1a2)]:{},_0x36ba71=Object[_0x1934c9(0x1b4)](_0x5d4e13);if(_0x36ba71[_0x1934c9(0x1b5)]<=0x1)return delete _0x15c889[_0x1934c9(0x17e)],undefined;const _0x2df2b8=typeof _0x15c889[_0x1934c9(0x17e)]===_0x1934c9(0x1af)&&_0x5d4e13[_0x15c889[_0x1934c9(0x17e)]]?_0x15c889[_0x1934c9(0x17e)]:undefined,_0x5d9609=_0x349433&&_0x5d4e13[_0x349433]?_0x349433:_0x2df2b8;if(_0x5d9609)return _0x15c889[_0x1934c9(0x17e)]=_0x5d9609,_0x5d9609;return delete _0x15c889[_0x1934c9(0x17e)],undefined;}export function buildCanonicalProjectConfig(_0x4a82a7,_0x32dfed){const _0x4451d3=a272_0x17d927,{appCodes:appCodes=[],env:_0x4b723c,metadata:_0x4de139}=_0x32dfed,_0x35a4d0={..._0x4a82a7,..._0x4de139||{}};delete _0x35a4d0[_0x4451d3(0x17f)],delete _0x35a4d0[_0x4451d3(0x197)];const _0x58106c=_0x4b723c||(typeof _0x35a4d0[_0x4451d3(0x1aa)]===_0x4451d3(0x1af)?_0x35a4d0[_0x4451d3(0x1aa)]:'')||DEFAULT_CONFIG_VALUES[_0x4451d3(0x1aa)];if(isProduction(_0x58106c))delete _0x35a4d0[_0x4451d3(0x1aa)];else _0x35a4d0['env']=_0x58106c;const _0x12c87d=buildCanonicalAppConfig(appCodes,_0x58106c);if(Object[_0x4451d3(0x1b4)](_0x12c87d)['length']>0x0){_0x35a4d0[_0x4451d3(0x1a2)]=_0x12c87d[_0x4451d3(0x1a2)];if(_0x12c87d[_0x4451d3(0x17e)])_0x35a4d0['defaultApp']=_0x12c87d['defaultApp'];else delete _0x35a4d0[_0x4451d3(0x17e)];}return normalizeConfigForWrite(_0x35a4d0);}function isRecord(_0x263504){const _0x59330e=a272_0x17d927;return!!_0x263504&&typeof _0x263504===_0x59330e(0x19c)&&!Array['isArray'](_0x263504);}export function normalizeConfigForWrite(_0x36a1fc){const _0x8a698d=a272_0x17d927,_0x5773b2={..._0x36a1fc},_0x406617=isRecord(_0x36a1fc[_0x8a698d(0x1a2)])?_0x36a1fc[_0x8a698d(0x1a2)]:undefined,_0x106ac5=_0x406617?Object[_0x8a698d(0x181)](Object[_0x8a698d(0x1b0)](_0x406617)['map'](([_0x147fa1,_0x3fd1a8])=>[_0x147fa1,isRecord(_0x3fd1a8)?{..._0x3fd1a8}:_0x3fd1a8])):undefined;if(_0x106ac5){const _0x402b19=typeof _0x5773b2[_0x8a698d(0x1aa)]===_0x8a698d(0x1af)?_0x5773b2['env']:undefined,_0x48358f=Object['values'](_0x106ac5)[_0x8a698d(0x190)](_0x5f32e6=>isRecord(_0x5f32e6)&&typeof _0x5f32e6[_0x8a698d(0x1aa)]===_0x8a698d(0x1af)&&isProduction(_0x5f32e6[_0x8a698d(0x1aa)]));if(_0x402b19&&isDaily(_0x402b19)&&_0x48358f){for(const _0x13eb95 of Object[_0x8a698d(0x185)](_0x106ac5)){if(!isRecord(_0x13eb95))continue;if(_0x13eb95[_0x8a698d(0x1aa)]===undefined)_0x13eb95[_0x8a698d(0x1aa)]=_0x402b19;}delete _0x5773b2[_0x8a698d(0x1aa)];}for(const _0x11f40a of Object[_0x8a698d(0x185)](_0x106ac5)){isRecord(_0x11f40a)&&typeof _0x11f40a['env']===_0x8a698d(0x1af)&&isProduction(_0x11f40a[_0x8a698d(0x1aa)])&&delete _0x11f40a[_0x8a698d(0x1aa)];}_0x5773b2[_0x8a698d(0x1a2)]=_0x106ac5;}return typeof _0x5773b2['env']===_0x8a698d(0x1af)&&isProduction(_0x5773b2[_0x8a698d(0x1aa)])&&delete _0x5773b2[_0x8a698d(0x1aa)],_0x5773b2;}const LOCALE_MAP={'zh':'zh-CN','zh-cn':'zh-CN','zh_cn':'zh-CN','en':a272_0x17d927(0x18b),'en-us':a272_0x17d927(0x18b),'en_us':a272_0x17d927(0x18b)};export function normalizeLocale(_0x3523ac){const _0x1a71ac=a272_0x17d927;if(!_0x3523ac)return null;return LOCALE_MAP[_0x3523ac[_0x1a71ac(0x188)]()]??null;}
|
package/lib/constant/cdn.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a273_0x350a(){const _0xaef4ba=['8740hQSeeo','sub-app-react-demo.zip','sub-app-react-demo-','2993768AcqaAY','2755SdPPWe','422345TkiiNf','lovrabet','102906PIuTWQ','sub-app-react-demo-beta.zip','https://g.lovrabet.com','3095229fvekCY','769818PiwDzN','config/index.json','templates/projects','freeze','.zip','rabetbase-cli','1sWNNLA','25992963gXkedK'];a273_0x350a=function(){return _0xaef4ba;};return a273_0x350a();}const a273_0x423e0f=a273_0x54a8;(function(_0x1bc440,_0x172790){const _0x57f8c2=a273_0x54a8,_0x2c43aa=_0x1bc440();while(!![]){try{const _0x3b2864=parseInt(_0x57f8c2(0x131))/0x1*(parseInt(_0x57f8c2(0x13e))/0x2)+-parseInt(_0x57f8c2(0x13d))/0x3+-parseInt(_0x57f8c2(0x133))/0x4*(parseInt(_0x57f8c2(0x137))/0x5)+parseInt(_0x57f8c2(0x13a))/0x6+-parseInt(_0x57f8c2(0x138))/0x7+-parseInt(_0x57f8c2(0x136))/0x8+parseInt(_0x57f8c2(0x132))/0x9;if(_0x3b2864===_0x172790)break;else _0x2c43aa['push'](_0x2c43aa['shift']());}catch(_0xb7ed53){_0x2c43aa['push'](_0x2c43aa['shift']());}}}(a273_0x350a,0x9759d));import{getActiveCdn}from'../constant/domain.js';const RABETBASE_CDN_PROJECT=a273_0x423e0f(0x130),RABETBASE_CDN_CONFIG_ORIGIN=a273_0x423e0f(0x13c),CDN_CONFIG_PATH=a273_0x423e0f(0x13f),PROJECT_TEMPLATE_ASSET_PATH=a273_0x423e0f(0x12d),PROJECT_TEMPLATE_ARCHIVE_NAMES=Object[a273_0x423e0f(0x12e)]({'release':a273_0x423e0f(0x134),'beta':a273_0x423e0f(0x13b)});function a273_0x54a8(_0x1b004b,_0x431069){_0x1b004b=_0x1b004b-0x12d;const _0x350a1d=a273_0x350a();let _0x54a824=_0x350a1d[_0x1b004b];return _0x54a824;}export const RABETBASE_CDN_PROJECT_PATH='/dist/'+RABETBASE_CDN_PROJECT;function getRabetbaseCdnBaseUrl(){const _0x1cef96=a273_0x423e0f;return''+getActiveCdn()[_0x1cef96(0x139)]+RABETBASE_CDN_PROJECT_PATH;}export function getCliVersionPolicyUrl(){return''+RABETBASE_CDN_CONFIG_ORIGIN+RABETBASE_CDN_PROJECT_PATH+'/'+CDN_CONFIG_PATH;}export function getProjectTemplateAssetBaseUrl(){return getRabetbaseCdnBaseUrl()+'/'+PROJECT_TEMPLATE_ASSET_PATH;}export function getProjectTemplateLegacyAssetBaseUrl(){return''+RABETBASE_CDN_CONFIG_ORIGIN+RABETBASE_CDN_PROJECT_PATH+'/'+PROJECT_TEMPLATE_ASSET_PATH;}export function getProjectTemplateRelativeUrl(_0x261aa7,_0x4e252b){const _0x3de9e7=a273_0x423e0f,_0x58f21f=_0x4e252b?_0x3de9e7(0x135)+_0x4e252b+_0x3de9e7(0x12f):PROJECT_TEMPLATE_ARCHIVE_NAMES[_0x261aa7];return RABETBASE_CDN_PROJECT_PATH+'/'+PROJECT_TEMPLATE_ASSET_PATH+'/'+_0x58f21f;}
|
package/lib/constant/cli.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function a274_0x5c32(){const _0xb55a8e=['page','6610770JxxbXH','code','parent-id','boolean','Code\x20filter','sort','skip-imports','all','clear','string','Use\x20global\x20config\x20scope','4952UgkiJy','Maximum\x20search\x20hits','env','codes','function-node','Output\x20format','help','expected-count','19575OQBkXN','3595KzJWij','expected-children-count','key','dbId','Type\x20filter','menuIds','Page\x20size','27437069mbeKDI','<expr>','fromEnv','Rabetbase\x20CLI','stdin','Output\x20path','sqlName','Target\x20path','project','Record\x20ID','flowStatus','Tags','non-interactive','Title','Operation\x20type','functionNode','fromEntries','Keyword\x20filter','dry-run','JSON\x20params','3386496XnLfLR','db-id','Use\x20remote','sqlname','14LFPcsp','25218kdhCSp','Override\x20appcode','value','sql-name','name','Watch\x20mode','description-file','Apply\x20to\x20all','json\x20|\x20pretty\x20|\x20compress','Force\x20overwrite','target','datasetCode','10856fjUdBJ','Environment','Alias\x20for\x20--non-interactive','locale','global','tags','from-env','Comma-separated\x20metadata\x20codes','file','56wGoYEQ','expectPath','confirm','Dataset\x20code','expect-path','sql','Name','format','Menu\x20sort\x20value','taskId','Comma-separated\x20menu\x20IDs','map','enable-bff-save','398418bdNxZl','expectParentId','rabetbase','verbose','App\x20locale\x20(workspace\x20pass-through;\x20not\x20CLI\x20language)','DB\x20ID','keyword','type','dryRun','production\x20|\x20daily','Description','Reveal\x20sensitive\x20value','force','Asynchronous\x20task\x20ID','watch','Function\x20node','SQL\x20string','dbid','Skip\x20confirmation\x20for\x20high-risk\x20writes','flow-code','description','Flow\x20name','datasetcode','params','pagesize','parentId','query','Flow\x20code','Expected\x20current\x20menu\x20path','appcode','Verbose\x20output','<name>','SQL\x20name','topk','app','Preview\x20operation\x20without\x20executing','flowCode','remote','flowName','Flow\x20status','flowType','<code>','yes','Read\x20value\x20from\x20environment\x20variable','Show\x20help','Expected\x20current\x20child\x20count','label','Flow\x20type','Force\x20non-interactive\x20mode\x20(CI)','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','operation-type','Expected\x20current\x20parent\x20menu\x20id','pageSize','output','12azEwET','Menu\x20label','title','Description\x20file'];a274_0x5c32=function(){return _0xb55a8e;};return a274_0x5c32();}const a274_0x385f2b=a274_0x2c09;(function(_0x164a3a,_0x32427f){const _0x4be969=a274_0x2c09,_0x1da0cb=_0x164a3a();while(!![]){try{const _0x35acd2=parseInt(_0x4be969(0x156))/0x1*(-parseInt(_0x4be969(0xe5))/0x2)+parseInt(_0x4be969(0xe1))/0x3+parseInt(_0x4be969(0xf2))/0x4*(parseInt(_0x4be969(0x157))/0x5)+-parseInt(_0x4be969(0x108))/0x6*(parseInt(_0x4be969(0xfb))/0x7)+-parseInt(_0x4be969(0x14e))/0x8*(-parseInt(_0x4be969(0xe6))/0x9)+-parseInt(_0x4be969(0x143))/0xa+-parseInt(_0x4be969(0x15e))/0xb*(parseInt(_0x4be969(0x13e))/0xc);if(_0x35acd2===_0x32427f)break;else _0x1da0cb['push'](_0x1da0cb['shift']());}catch(_0x45baff){_0x1da0cb['push'](_0x1da0cb['shift']());}}}(a274_0x5c32,0xf1f37));function a274_0x2c09(_0x51c95f,_0x5ce57c){_0x51c95f=_0x51c95f-0xd0;const _0x5c32ca=a274_0x5c32();let _0x2c0990=_0x5c32ca[_0x51c95f];return _0x2c0990;}export const CLI_BIN_NAME=a274_0x385f2b(0x10a);export const CLI_DISPLAY_NAME=a274_0x385f2b(0xd0);export const NPM_PACKAGE_NAME='@lovrabet/rabetbase-cli';export const GLOBAL_FLAGS=[{'name':a274_0x385f2b(0x125),'meowKey':a274_0x385f2b(0x125),'type':a274_0x385f2b(0x14c),'description':a274_0x385f2b(0xe7),'hint':a274_0x385f2b(0x131)},{'name':a274_0x385f2b(0x12a),'meowKey':a274_0x385f2b(0x12a),'type':'string','description':'Select\x20app\x20profile\x20by\x20name','hint':a274_0x385f2b(0x127)},{'name':a274_0x385f2b(0x150),'meowKey':a274_0x385f2b(0x150),'type':'string','description':a274_0x385f2b(0xf3),'hint':a274_0x385f2b(0x111)},{'name':'format','meowKey':'format','type':'string','description':a274_0x385f2b(0x153),'hint':a274_0x385f2b(0xee)},{'name':'jq','meowKey':'jq','type':a274_0x385f2b(0x14c),'description':a274_0x385f2b(0x139),'hint':a274_0x385f2b(0x15f)},{'name':a274_0x385f2b(0xdf),'meowKey':a274_0x385f2b(0x110),'type':a274_0x385f2b(0x146),'description':a274_0x385f2b(0x12b)},{'name':'yes','meowKey':a274_0x385f2b(0x132),'type':a274_0x385f2b(0x146),'description':a274_0x385f2b(0x11a)},{'name':'non-interactive','meowKey':'nonInteractive','type':a274_0x385f2b(0x146),'description':a274_0x385f2b(0x138)},{'name':a274_0x385f2b(0xf6),'meowKey':a274_0x385f2b(0xf6),'type':a274_0x385f2b(0x146),'description':a274_0x385f2b(0x14d)},{'name':a274_0x385f2b(0xd5),'meowKey':a274_0x385f2b(0xd5),'type':a274_0x385f2b(0x146),'description':'Use\x20project\x20config\x20scope'},{'name':'ci','meowKey':'ci','type':'boolean','description':a274_0x385f2b(0xf4),'hidden':!![]},{'name':a274_0x385f2b(0x154),'meowKey':a274_0x385f2b(0x154),'type':a274_0x385f2b(0x146),'description':a274_0x385f2b(0x134)},{'name':a274_0x385f2b(0xf5),'meowKey':a274_0x385f2b(0xf5),'type':a274_0x385f2b(0x14c),'description':a274_0x385f2b(0x10c),'hidden':!![],'hint':'zh-CN\x20|\x20en-US'},{'name':a274_0x385f2b(0xea),'meowKey':'name','type':a274_0x385f2b(0x14c),'description':a274_0x385f2b(0x101),'hidden':!![]},{'name':a274_0x385f2b(0x140),'meowKey':a274_0x385f2b(0x140),'type':a274_0x385f2b(0x14c),'description':a274_0x385f2b(0xda),'hidden':!![]},{'name':a274_0x385f2b(0x122),'meowKey':a274_0x385f2b(0x122),'type':a274_0x385f2b(0x14c),'description':'Search\x20query','hidden':!![]},{'name':a274_0x385f2b(0x129),'meowKey':a274_0x385f2b(0x129),'type':a274_0x385f2b(0x14c),'description':a274_0x385f2b(0x14f),'hidden':!![]},{'name':a274_0x385f2b(0x14b),'meowKey':a274_0x385f2b(0x14b),'type':a274_0x385f2b(0x146),'description':'Clear','hidden':!![]},{'name':a274_0x385f2b(0x116),'meowKey':a274_0x385f2b(0x116),'type':'boolean','description':a274_0x385f2b(0xeb),'hidden':!![]},{'name':a274_0x385f2b(0x13d),'meowKey':'output','type':a274_0x385f2b(0x14c),'description':a274_0x385f2b(0xd2),'hidden':!![]},{'name':a274_0x385f2b(0x11f),'meowKey':'params','type':'string','description':a274_0x385f2b(0xe0),'hidden':!![]},{'name':a274_0x385f2b(0x11e),'meowKey':a274_0x385f2b(0x11e),'type':'string','description':a274_0x385f2b(0xfe),'hidden':!![]},{'name':a274_0x385f2b(0x14a),'meowKey':a274_0x385f2b(0x14a),'type':a274_0x385f2b(0x146),'description':a274_0x385f2b(0xed),'hidden':!![]},{'name':a274_0x385f2b(0x107),'meowKey':'enableBffSave','type':a274_0x385f2b(0x146),'description':'Enable\x20Backend\x20Function\x20save','hidden':!![]},{'name':'id','meowKey':'id','type':a274_0x385f2b(0x14c),'description':a274_0x385f2b(0xd6),'hidden':!![]},{'name':'type','meowKey':a274_0x385f2b(0x10f),'type':'string','description':a274_0x385f2b(0x15b),'hidden':!![]},{'name':a274_0x385f2b(0xfa),'meowKey':a274_0x385f2b(0xfa),'type':'string','description':'File\x20path','hidden':!![]},{'name':a274_0x385f2b(0x11b),'meowKey':a274_0x385f2b(0x12c),'type':a274_0x385f2b(0x14c),'description':a274_0x385f2b(0x123),'hidden':!![]},{'name':'flow-name','meowKey':a274_0x385f2b(0x12e),'type':a274_0x385f2b(0x14c),'description':a274_0x385f2b(0x11d),'hidden':!![]},{'name':'flow-status','meowKey':a274_0x385f2b(0xd7),'type':'string','description':a274_0x385f2b(0x12f),'hidden':!![]},{'name':'flow-type','meowKey':a274_0x385f2b(0x130),'type':a274_0x385f2b(0x14c),'description':a274_0x385f2b(0x137),'hidden':!![]},{'name':'dataset-code','meowKey':a274_0x385f2b(0xf1),'type':a274_0x385f2b(0x14c),'description':a274_0x385f2b(0xfe),'hidden':!![]},{'name':'sqlcode','meowKey':'sqlcode','type':a274_0x385f2b(0x14c),'description':'SQL\x20code','hidden':!![]},{'name':a274_0x385f2b(0xe9),'meowKey':a274_0x385f2b(0xd3),'type':a274_0x385f2b(0x14c),'description':a274_0x385f2b(0x128),'hidden':!![]},{'name':a274_0x385f2b(0xe4),'meowKey':a274_0x385f2b(0xe4),'type':a274_0x385f2b(0x14c),'description':a274_0x385f2b(0x128),'hidden':!![]},{'name':a274_0x385f2b(0xe2),'meowKey':a274_0x385f2b(0x15a),'type':a274_0x385f2b(0x14c),'description':a274_0x385f2b(0x10d),'hidden':!![]},{'name':a274_0x385f2b(0x119),'meowKey':a274_0x385f2b(0x119),'type':a274_0x385f2b(0x14c),'description':a274_0x385f2b(0x10d),'hidden':!![]},{'name':a274_0x385f2b(0x11c),'meowKey':a274_0x385f2b(0x11c),'type':a274_0x385f2b(0x14c),'description':a274_0x385f2b(0x112),'hidden':!![]},{'name':a274_0x385f2b(0xec),'meowKey':'descriptionFile','type':a274_0x385f2b(0x14c),'description':a274_0x385f2b(0x141),'hidden':!![]},{'name':'page','meowKey':a274_0x385f2b(0x142),'type':a274_0x385f2b(0x14c),'description':'Page\x20number','hidden':!![]},{'name':'page-size','meowKey':a274_0x385f2b(0x13c),'type':a274_0x385f2b(0x14c),'description':a274_0x385f2b(0x15d),'hidden':!![]},{'name':'pagesize','meowKey':a274_0x385f2b(0x120),'type':a274_0x385f2b(0x14c),'description':'Page\x20size','hidden':!![]},{'name':a274_0x385f2b(0x10e),'meowKey':'keyword','type':a274_0x385f2b(0x14c),'description':a274_0x385f2b(0xde),'hidden':!![]},{'name':'code','meowKey':a274_0x385f2b(0x144),'type':a274_0x385f2b(0x14c),'description':a274_0x385f2b(0x147),'hidden':!![]},{'name':a274_0x385f2b(0x100),'meowKey':'sql','type':a274_0x385f2b(0x14c),'description':a274_0x385f2b(0x118),'hidden':!![]},{'name':'schemas','meowKey':'schemas','type':a274_0x385f2b(0x14c),'description':'Schemas','hidden':!![]},{'name':'operation','meowKey':'operation','type':a274_0x385f2b(0x14c),'description':a274_0x385f2b(0xdb),'hidden':!![]},{'name':a274_0x385f2b(0xf0),'meowKey':'target','type':a274_0x385f2b(0x14c),'description':a274_0x385f2b(0xd4),'hidden':!![]},{'name':a274_0x385f2b(0x149),'meowKey':'skipImports','type':'boolean','description':'Skip\x20import\x20generation','hidden':!![]},{'name':a274_0x385f2b(0x159),'meowKey':a274_0x385f2b(0x159),'type':a274_0x385f2b(0x14c),'description':'Config\x20key','hidden':!![]},{'name':a274_0x385f2b(0xe8),'meowKey':a274_0x385f2b(0xe8),'type':a274_0x385f2b(0x14c),'description':'Config\x20value','hidden':!![]},{'name':a274_0x385f2b(0xf7),'meowKey':a274_0x385f2b(0xf7),'type':'string','description':a274_0x385f2b(0xd8),'hidden':!![]},{'name':a274_0x385f2b(0xd1),'meowKey':a274_0x385f2b(0xd1),'type':a274_0x385f2b(0x146),'description':'Read\x20value\x20from\x20stdin','hidden':!![]},{'name':a274_0x385f2b(0xf8),'meowKey':a274_0x385f2b(0x160),'type':a274_0x385f2b(0x14c),'description':a274_0x385f2b(0x133),'hidden':!![]},{'name':'reveal','meowKey':'reveal','type':'boolean','description':a274_0x385f2b(0x113),'hidden':!![]},{'name':'force','meowKey':a274_0x385f2b(0x114),'type':a274_0x385f2b(0x146),'description':a274_0x385f2b(0xef),'hidden':!![]},{'name':a274_0x385f2b(0xfd),'meowKey':a274_0x385f2b(0xfd),'type':a274_0x385f2b(0x146),'description':'Confirm\x20destructive\x20action','hidden':!![]},{'name':a274_0x385f2b(0x12d),'meowKey':'remote','type':'boolean','description':a274_0x385f2b(0xe3),'hidden':!![]},{'name':'verbose','meowKey':a274_0x385f2b(0x10b),'type':a274_0x385f2b(0x146),'description':a274_0x385f2b(0x126),'hidden':!![]},{'name':a274_0x385f2b(0x155),'meowKey':'expectedCount','type':'string','description':'Expected\x20affected\x20count','hidden':!![]},{'name':a274_0x385f2b(0x136),'meowKey':'label','type':'string','description':a274_0x385f2b(0x13f),'hidden':!![]},{'name':a274_0x385f2b(0x145),'meowKey':a274_0x385f2b(0x121),'type':a274_0x385f2b(0x14c),'description':'Parent\x20menu\x20id','hidden':!![]},{'name':a274_0x385f2b(0x148),'meowKey':a274_0x385f2b(0x148),'type':a274_0x385f2b(0x14c),'description':a274_0x385f2b(0x103),'hidden':!![]},{'name':'expect-parent-id','meowKey':a274_0x385f2b(0x109),'type':a274_0x385f2b(0x14c),'description':a274_0x385f2b(0x13b),'hidden':!![]},{'name':a274_0x385f2b(0xff),'meowKey':a274_0x385f2b(0xfc),'type':a274_0x385f2b(0x14c),'description':a274_0x385f2b(0x124),'hidden':!![]},{'name':a274_0x385f2b(0x158),'meowKey':'expectedChildrenCount','type':a274_0x385f2b(0x14c),'description':a274_0x385f2b(0x135),'hidden':!![]},{'name':'menu-ids','meowKey':a274_0x385f2b(0x15c),'type':a274_0x385f2b(0x14c),'description':a274_0x385f2b(0x105),'hidden':!![]},{'name':'task-id','meowKey':a274_0x385f2b(0x104),'type':a274_0x385f2b(0x14c),'description':a274_0x385f2b(0x115),'hidden':!![]},{'name':a274_0x385f2b(0x13a),'meowKey':'operationType','type':a274_0x385f2b(0x14c),'description':'Operation\x20type','hidden':!![]},{'name':a274_0x385f2b(0x152),'meowKey':a274_0x385f2b(0xdc),'type':a274_0x385f2b(0x14c),'description':a274_0x385f2b(0x117),'hidden':!![]},{'name':a274_0x385f2b(0x151),'meowKey':a274_0x385f2b(0x151),'type':a274_0x385f2b(0x14c),'description':a274_0x385f2b(0xf9),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set(['appcode',a274_0x385f2b(0x12a),a274_0x385f2b(0x150),a274_0x385f2b(0x102),'jq',a274_0x385f2b(0xdf),a274_0x385f2b(0x132),a274_0x385f2b(0xd9),'ci']);export function buildMeowFlags(){const _0x2faaad=a274_0x385f2b;return Object[_0x2faaad(0xdd)](GLOBAL_FLAGS[_0x2faaad(0x106)](_0x26e478=>[_0x26e478['meowKey'],{'type':_0x26e478['type']}]));}
|
|
1
|
+
function a274_0x5d3e(){const _0x128ba8=['query','Keyword\x20filter','flowStatus','Select\x20app\x20profile\x20by\x20name','2652985ZQwhVU','Menu\x20label','string','stdin','Config\x20key','Reveal\x20sensitive\x20value','2943100nIChjr','expectPath','Force\x20non-interactive\x20mode\x20(CI)','description-file','Asynchronous\x20task\x20ID','target','Search\x20query','reveal','sqlcode','operation-type','Skip\x20import\x20generation','operationType','2629467ksQgCP','21733308VQUxPW','tags','Function\x20node','yes','functionNode','confirm','value','function-node','Comma-separated\x20metadata\x20codes','512631xVLHpY','task-id','flowType','expectParentId','appcode','taskId','rabetbase','3325840QGInXw','flow-status','Override\x20appcode','Skip\x20confirmation\x20for\x20high-risk\x20writes','params','sqlname','enable-bff-save','dbId','type','Description\x20file','name','Watch\x20mode','all','Page\x20number','non-interactive','datasetcode','sql','Read\x20value\x20from\x20environment\x20variable','Name','verbose','652062QpMFgl','env','2RSrXAU','production\x20|\x20daily','schemas','global','output','sort','@lovrabet/rabetbase-cli','parentId','expected-count','Type\x20filter','DB\x20ID','Page\x20size','Parent\x20menu\x20id','Menu\x20sort\x20value','JSON\x20params','operation','meowKey','Comma-separated\x20menu\x20IDs','Expected\x20current\x20menu\x20path','Enable\x20Backend\x20Function\x20save','Verbose\x20output','fromEnv','title','Title','enableBffSave','sqlName','keyword','nonInteractive','json\x20|\x20pretty\x20|\x20compress','remote','boolean','Use\x20project\x20config\x20scope','watch','SQL\x20string','Dataset\x20code','flow-type','Output\x20path','help','Expected\x20affected\x20count','7FNmKPL','Use\x20remote','description','flow-code','Code\x20filter','code','dry-run','map','pagesize','topk','Flow\x20name','page','File\x20path','expectedChildrenCount','fromEntries','zh-CN\x20|\x20en-US','menu-ids','expect-parent-id','Flow\x20code','force','key','sql-name','Expected\x20current\x20parent\x20menu\x20id','dbid','flow-name','datasetCode','Maximum\x20search\x20hits','app','menuIds','Environment','Description','label','<code>','Apply\x20to\x20all','Operation\x20type','Clear','Schemas','flowCode','Preview\x20operation\x20without\x20executing','page-size','clear','format','locale','skip-imports','parent-id'];a274_0x5d3e=function(){return _0x128ba8;};return a274_0x5d3e();}const a274_0xbd501b=a274_0x3280;(function(_0x510b36,_0x292bb4){const _0x8caec8=a274_0x3280,_0xfee3bb=_0x510b36();while(!![]){try{const _0x13812f=parseInt(_0x8caec8(0x1c9))/0x1+parseInt(_0x8caec8(0x1e6))/0x2*(-parseInt(_0x8caec8(0x1bf))/0x3)+-parseInt(_0x8caec8(0x1b3))/0x4+-parseInt(_0x8caec8(0x1ad))/0x5+-parseInt(_0x8caec8(0x1e4))/0x6*(-parseInt(_0x8caec8(0x17c))/0x7)+-parseInt(_0x8caec8(0x1d0))/0x8+parseInt(_0x8caec8(0x1c0))/0x9;if(_0x13812f===_0x292bb4)break;else _0xfee3bb['push'](_0xfee3bb['shift']());}catch(_0x126368){_0xfee3bb['push'](_0xfee3bb['shift']());}}}(a274_0x5d3e,0x74959));export const CLI_BIN_NAME=a274_0xbd501b(0x1cf);export const CLI_DISPLAY_NAME='Rabetbase\x20CLI';export const NPM_PACKAGE_NAME=a274_0xbd501b(0x1ec);export const GLOBAL_FLAGS=[{'name':a274_0xbd501b(0x1cd),'meowKey':a274_0xbd501b(0x1cd),'type':'string','description':a274_0xbd501b(0x1d2),'hint':a274_0xbd501b(0x19c)},{'name':a274_0xbd501b(0x197),'meowKey':a274_0xbd501b(0x197),'type':a274_0xbd501b(0x1af),'description':a274_0xbd501b(0x1ac),'hint':'<name>'},{'name':'env','meowKey':a274_0xbd501b(0x1e5),'type':a274_0xbd501b(0x1af),'description':a274_0xbd501b(0x199),'hint':a274_0xbd501b(0x1e7)},{'name':a274_0xbd501b(0x1a5),'meowKey':a274_0xbd501b(0x1a5),'type':'string','description':'Output\x20format','hint':a274_0xbd501b(0x171)},{'name':'jq','meowKey':'jq','type':a274_0xbd501b(0x1af),'description':'Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','hint':'<expr>'},{'name':a274_0xbd501b(0x182),'meowKey':'dryRun','type':a274_0xbd501b(0x173),'description':a274_0xbd501b(0x1a2)},{'name':a274_0xbd501b(0x1c3),'meowKey':'yes','type':a274_0xbd501b(0x173),'description':a274_0xbd501b(0x1d3)},{'name':'non-interactive','meowKey':a274_0xbd501b(0x170),'type':'boolean','description':a274_0xbd501b(0x1b5)},{'name':a274_0xbd501b(0x1e9),'meowKey':a274_0xbd501b(0x1e9),'type':a274_0xbd501b(0x173),'description':'Use\x20global\x20config\x20scope'},{'name':'project','meowKey':'project','type':a274_0xbd501b(0x173),'description':a274_0xbd501b(0x174)},{'name':'ci','meowKey':'ci','type':a274_0xbd501b(0x173),'description':'Alias\x20for\x20--non-interactive','hidden':!![]},{'name':a274_0xbd501b(0x17a),'meowKey':a274_0xbd501b(0x17a),'type':a274_0xbd501b(0x173),'description':'Show\x20help'},{'name':a274_0xbd501b(0x1a6),'meowKey':a274_0xbd501b(0x1a6),'type':a274_0xbd501b(0x1af),'description':'App\x20locale\x20(workspace\x20pass-through;\x20not\x20CLI\x20language)','hidden':!![],'hint':a274_0xbd501b(0x18b)},{'name':a274_0xbd501b(0x1da),'meowKey':'name','type':a274_0xbd501b(0x1af),'description':a274_0xbd501b(0x1e2),'hidden':!![]},{'name':a274_0xbd501b(0x16b),'meowKey':a274_0xbd501b(0x16b),'type':a274_0xbd501b(0x1af),'description':a274_0xbd501b(0x16c),'hidden':!![]},{'name':a274_0xbd501b(0x1a9),'meowKey':a274_0xbd501b(0x1a9),'type':a274_0xbd501b(0x1af),'description':a274_0xbd501b(0x1b9),'hidden':!![]},{'name':a274_0xbd501b(0x185),'meowKey':a274_0xbd501b(0x185),'type':'string','description':a274_0xbd501b(0x196),'hidden':!![]},{'name':'clear','meowKey':a274_0xbd501b(0x1a4),'type':a274_0xbd501b(0x173),'description':a274_0xbd501b(0x19f),'hidden':!![]},{'name':a274_0xbd501b(0x175),'meowKey':a274_0xbd501b(0x175),'type':'boolean','description':a274_0xbd501b(0x1db),'hidden':!![]},{'name':a274_0xbd501b(0x1ea),'meowKey':a274_0xbd501b(0x1ea),'type':'string','description':a274_0xbd501b(0x179),'hidden':!![]},{'name':'params','meowKey':a274_0xbd501b(0x1d4),'type':a274_0xbd501b(0x1af),'description':a274_0xbd501b(0x163),'hidden':!![]},{'name':'datasetcode','meowKey':a274_0xbd501b(0x1df),'type':a274_0xbd501b(0x1af),'description':a274_0xbd501b(0x177),'hidden':!![]},{'name':a274_0xbd501b(0x1dc),'meowKey':a274_0xbd501b(0x1dc),'type':a274_0xbd501b(0x173),'description':a274_0xbd501b(0x19d),'hidden':!![]},{'name':a274_0xbd501b(0x1d6),'meowKey':a274_0xbd501b(0x16d),'type':a274_0xbd501b(0x173),'description':a274_0xbd501b(0x168),'hidden':!![]},{'name':'id','meowKey':'id','type':'string','description':'Record\x20ID','hidden':!![]},{'name':'type','meowKey':a274_0xbd501b(0x1d8),'type':a274_0xbd501b(0x1af),'description':a274_0xbd501b(0x1ef),'hidden':!![]},{'name':'file','meowKey':'file','type':a274_0xbd501b(0x1af),'description':a274_0xbd501b(0x188),'hidden':!![]},{'name':a274_0xbd501b(0x17f),'meowKey':a274_0xbd501b(0x1a1),'type':a274_0xbd501b(0x1af),'description':a274_0xbd501b(0x18e),'hidden':!![]},{'name':a274_0xbd501b(0x194),'meowKey':'flowName','type':a274_0xbd501b(0x1af),'description':a274_0xbd501b(0x186),'hidden':!![]},{'name':a274_0xbd501b(0x1d1),'meowKey':a274_0xbd501b(0x1ab),'type':a274_0xbd501b(0x1af),'description':'Flow\x20status','hidden':!![]},{'name':a274_0xbd501b(0x178),'meowKey':a274_0xbd501b(0x1cb),'type':a274_0xbd501b(0x1af),'description':'Flow\x20type','hidden':!![]},{'name':'dataset-code','meowKey':a274_0xbd501b(0x195),'type':a274_0xbd501b(0x1af),'description':a274_0xbd501b(0x177),'hidden':!![]},{'name':a274_0xbd501b(0x1bb),'meowKey':a274_0xbd501b(0x1bb),'type':a274_0xbd501b(0x1af),'description':'SQL\x20code','hidden':!![]},{'name':a274_0xbd501b(0x191),'meowKey':a274_0xbd501b(0x16e),'type':a274_0xbd501b(0x1af),'description':'SQL\x20name','hidden':!![]},{'name':a274_0xbd501b(0x1d5),'meowKey':a274_0xbd501b(0x1d5),'type':a274_0xbd501b(0x1af),'description':'SQL\x20name','hidden':!![]},{'name':'db-id','meowKey':a274_0xbd501b(0x1d7),'type':a274_0xbd501b(0x1af),'description':a274_0xbd501b(0x1f0),'hidden':!![]},{'name':a274_0xbd501b(0x193),'meowKey':a274_0xbd501b(0x193),'type':a274_0xbd501b(0x1af),'description':a274_0xbd501b(0x1f0),'hidden':!![]},{'name':a274_0xbd501b(0x17e),'meowKey':a274_0xbd501b(0x17e),'type':a274_0xbd501b(0x1af),'description':a274_0xbd501b(0x19a),'hidden':!![]},{'name':a274_0xbd501b(0x1b6),'meowKey':'descriptionFile','type':a274_0xbd501b(0x1af),'description':a274_0xbd501b(0x1d9),'hidden':!![]},{'name':a274_0xbd501b(0x187),'meowKey':a274_0xbd501b(0x187),'type':a274_0xbd501b(0x1af),'description':a274_0xbd501b(0x1dd),'hidden':!![]},{'name':a274_0xbd501b(0x1a3),'meowKey':'pageSize','type':a274_0xbd501b(0x1af),'description':a274_0xbd501b(0x1f1),'hidden':!![]},{'name':'pagesize','meowKey':a274_0xbd501b(0x184),'type':a274_0xbd501b(0x1af),'description':a274_0xbd501b(0x1f1),'hidden':!![]},{'name':'keyword','meowKey':a274_0xbd501b(0x16f),'type':a274_0xbd501b(0x1af),'description':a274_0xbd501b(0x1aa),'hidden':!![]},{'name':'code','meowKey':a274_0xbd501b(0x181),'type':'string','description':a274_0xbd501b(0x180),'hidden':!![]},{'name':a274_0xbd501b(0x1e0),'meowKey':'sql','type':a274_0xbd501b(0x1af),'description':a274_0xbd501b(0x176),'hidden':!![]},{'name':a274_0xbd501b(0x1e8),'meowKey':a274_0xbd501b(0x1e8),'type':a274_0xbd501b(0x1af),'description':a274_0xbd501b(0x1a0),'hidden':!![]},{'name':'operation','meowKey':a274_0xbd501b(0x164),'type':a274_0xbd501b(0x1af),'description':a274_0xbd501b(0x19e),'hidden':!![]},{'name':a274_0xbd501b(0x1b8),'meowKey':'target','type':a274_0xbd501b(0x1af),'description':'Target\x20path','hidden':!![]},{'name':a274_0xbd501b(0x1a7),'meowKey':'skipImports','type':'boolean','description':a274_0xbd501b(0x1bd),'hidden':!![]},{'name':a274_0xbd501b(0x190),'meowKey':'key','type':a274_0xbd501b(0x1af),'description':a274_0xbd501b(0x1b1),'hidden':!![]},{'name':a274_0xbd501b(0x1c6),'meowKey':a274_0xbd501b(0x1c6),'type':a274_0xbd501b(0x1af),'description':'Config\x20value','hidden':!![]},{'name':a274_0xbd501b(0x1c1),'meowKey':a274_0xbd501b(0x1c1),'type':a274_0xbd501b(0x1af),'description':'Tags','hidden':!![]},{'name':a274_0xbd501b(0x1b0),'meowKey':a274_0xbd501b(0x1b0),'type':a274_0xbd501b(0x173),'description':'Read\x20value\x20from\x20stdin','hidden':!![]},{'name':'from-env','meowKey':a274_0xbd501b(0x16a),'type':a274_0xbd501b(0x1af),'description':a274_0xbd501b(0x1e1),'hidden':!![]},{'name':'reveal','meowKey':a274_0xbd501b(0x1ba),'type':a274_0xbd501b(0x173),'description':a274_0xbd501b(0x1b2),'hidden':!![]},{'name':a274_0xbd501b(0x18f),'meowKey':'force','type':a274_0xbd501b(0x173),'description':'Force\x20overwrite','hidden':!![]},{'name':a274_0xbd501b(0x1c5),'meowKey':a274_0xbd501b(0x1c5),'type':a274_0xbd501b(0x173),'description':'Confirm\x20destructive\x20action','hidden':!![]},{'name':'remote','meowKey':a274_0xbd501b(0x172),'type':a274_0xbd501b(0x173),'description':a274_0xbd501b(0x17d),'hidden':!![]},{'name':a274_0xbd501b(0x1e3),'meowKey':a274_0xbd501b(0x1e3),'type':'boolean','description':a274_0xbd501b(0x169),'hidden':!![]},{'name':a274_0xbd501b(0x1ee),'meowKey':'expectedCount','type':'string','description':a274_0xbd501b(0x17b),'hidden':!![]},{'name':a274_0xbd501b(0x19b),'meowKey':a274_0xbd501b(0x19b),'type':'string','description':a274_0xbd501b(0x1ae),'hidden':!![]},{'name':a274_0xbd501b(0x1a8),'meowKey':a274_0xbd501b(0x1ed),'type':a274_0xbd501b(0x1af),'description':a274_0xbd501b(0x1f2),'hidden':!![]},{'name':a274_0xbd501b(0x1eb),'meowKey':'sort','type':a274_0xbd501b(0x1af),'description':a274_0xbd501b(0x162),'hidden':!![]},{'name':a274_0xbd501b(0x18d),'meowKey':a274_0xbd501b(0x1cc),'type':a274_0xbd501b(0x1af),'description':a274_0xbd501b(0x192),'hidden':!![]},{'name':'expect-path','meowKey':a274_0xbd501b(0x1b4),'type':a274_0xbd501b(0x1af),'description':a274_0xbd501b(0x167),'hidden':!![]},{'name':'expected-children-count','meowKey':a274_0xbd501b(0x189),'type':a274_0xbd501b(0x1af),'description':'Expected\x20current\x20child\x20count','hidden':!![]},{'name':a274_0xbd501b(0x18c),'meowKey':a274_0xbd501b(0x198),'type':'string','description':a274_0xbd501b(0x166),'hidden':!![]},{'name':a274_0xbd501b(0x1ca),'meowKey':a274_0xbd501b(0x1ce),'type':a274_0xbd501b(0x1af),'description':a274_0xbd501b(0x1b7),'hidden':!![]},{'name':a274_0xbd501b(0x1bc),'meowKey':a274_0xbd501b(0x1be),'type':a274_0xbd501b(0x1af),'description':a274_0xbd501b(0x19e),'hidden':!![]},{'name':a274_0xbd501b(0x1c7),'meowKey':a274_0xbd501b(0x1c4),'type':a274_0xbd501b(0x1af),'description':a274_0xbd501b(0x1c2),'hidden':!![]},{'name':'codes','meowKey':'codes','type':a274_0xbd501b(0x1af),'description':a274_0xbd501b(0x1c8),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set(['appcode',a274_0xbd501b(0x197),a274_0xbd501b(0x1e5),a274_0xbd501b(0x1a5),'jq',a274_0xbd501b(0x182),'yes',a274_0xbd501b(0x1de),'ci']);function a274_0x3280(_0x524687,_0x170374){_0x524687=_0x524687-0x162;const _0x5d3ee0=a274_0x5d3e();let _0x3280f4=_0x5d3ee0[_0x524687];return _0x3280f4;}export function buildMeowFlags(){const _0x2d8416=a274_0xbd501b;return Object[_0x2d8416(0x18a)](GLOBAL_FLAGS[_0x2d8416(0x183)](_0x426937=>[_0x426937[_0x2d8416(0x165)],{'type':_0x426937[_0x2d8416(0x1d8)]}]));}
|
package/lib/constant/defaults.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a275_0x4f0e(){const _0x46c804=['en-US','12PEgndQ','4055105iLJIHO','2153253hUtzvt','production','5661208qnawjd','561800cRruXY','634688UQpANx','write','4CvFoGy','531708iFkfoY','compress','31953230ReNmbY','117ZYdtXE'];a275_0x4f0e=function(){return _0x46c804;};return a275_0x4f0e();}const a275_0x99f109=a275_0x2e53;(function(_0x1ea883,_0x5e3ef8){const _0x225ebf=a275_0x2e53,_0x362bd3=_0x1ea883();while(!![]){try{const _0x1aa7b0=-parseInt(_0x225ebf(0x9d))/0x1+-parseInt(_0x225ebf(0x9c))/0x2*(-parseInt(_0x225ebf(0xa4))/0x3)+-parseInt(_0x225ebf(0x9a))/0x4+parseInt(_0x225ebf(0xa3))/0x5+parseInt(_0x225ebf(0xa2))/0x6*(parseInt(_0x225ebf(0xa6))/0x7)+-parseInt(_0x225ebf(0xa7))/0x8*(-parseInt(_0x225ebf(0xa0))/0x9)+-parseInt(_0x225ebf(0x9f))/0xa;if(_0x1aa7b0===_0x5e3ef8)break;else _0x362bd3['push'](_0x362bd3['shift']());}catch(_0x2dfb14){_0x362bd3['push'](_0x362bd3['shift']());}}}(a275_0x4f0e,0xd9961));import{DEFAULT_API_DIR}from'../constant/paths.js';function a275_0x2e53(_0x5c364f,_0x4075f9){_0x5c364f=_0x5c364f-0x9a;const _0x4f0e84=a275_0x4f0e();let _0x2e5355=_0x4f0e84[_0x5c364f];return _0x2e5355;}export const DEFAULT_CONFIG_VALUES={'env':a275_0x99f109(0xa5),'format':a275_0x99f109(0x9e),'locale':a275_0x99f109(0xa1),'riskLevel':a275_0x99f109(0x9b),'apiDir':DEFAULT_API_DIR};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a275_0x99f109(0x9e);
|
package/lib/constant/domain.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a276_0x3187d7=a276_0x1a21;(function(_0x13039a,_0x8db064){const _0x440738=a276_0x1a21,_0x1cb80e=_0x13039a();while(!![]){try{const _0x4f7126=-parseInt(_0x440738(0xe9))/0x1*(parseInt(_0x440738(0xde))/0x2)+-parseInt(_0x440738(0xf8))/0x3*(-parseInt(_0x440738(0xdc))/0x4)+parseInt(_0x440738(0xfa))/0x5*(-parseInt(_0x440738(0xe8))/0x6)+parseInt(_0x440738(0xe0))/0x7+parseInt(_0x440738(0xf9))/0x8+parseInt(_0x440738(0xe5))/0x9*(-parseInt(_0x440738(0xea))/0xa)+parseInt(_0x440738(0xe7))/0xb;if(_0x4f7126===_0x8db064)break;else _0x1cb80e['push'](_0x1cb80e['shift']());}catch(_0x51c75f){_0x1cb80e['push'](_0x1cb80e['shift']());}}}(a276_0x335f,0xb4475));import{getEnv,isProduction}from'../constant/env.js';import{DEFAULT_LOVRABET_REGION}from'../constant/region.js';import{getOfficialRoutingCdn,getOfficialRoutingProfile}from'../constant/routing-profile.js';let customApiDomain,customUserDomain,customRuntimeDomain,customSkillDomain,customKbDomain,customKbServiceDomain,allowOfficialKbServiceDefault=!![],customAppDomain,customLocalDomain,customCertificateDomain,customCdn,activeRegion=DEFAULT_LOVRABET_REGION;function getActiveRegionDomains(){const _0x3d0a69=a276_0x1a21,_0xed5e0a=getOfficialRoutingProfile(activeRegion);return isProduction(getEnv())?_0xed5e0a[_0x3d0a69(0xee)][_0x3d0a69(0xe1)]:_0xed5e0a['serviceDomains'][_0x3d0a69(0xe4)]??_0xed5e0a[_0x3d0a69(0xee)][_0x3d0a69(0xe1)];}export function initDomains(_0x59b596){const _0x4ace07=a276_0x1a21;customApiDomain=_0x59b596?.['apiDomain'],customUserDomain=_0x59b596?.['userDomain'],customRuntimeDomain=_0x59b596?.[_0x4ace07(0xf7)],customSkillDomain=_0x59b596?.[_0x4ace07(0xf5)],customKbDomain=_0x59b596?.['kbDomain'],customKbServiceDomain=_0x59b596?.['kbServiceDomain'],allowOfficialKbServiceDefault=_0x59b596?.[_0x4ace07(0xf6)]??!![],customAppDomain=_0x59b596?.['appDomain'],customLocalDomain=_0x59b596?.[_0x4ace07(0xf0)],customCertificateDomain=_0x59b596?.[_0x4ace07(0xf4)],customCdn=_0x59b596?.[_0x4ace07(0xef)],activeRegion=_0x59b596?.[_0x4ace07(0xeb)]??DEFAULT_LOVRABET_REGION;}function a276_0x1a21(_0xea68e,_0x3bec41){_0xea68e=_0xea68e-0xdc;const _0x335f4d=a276_0x335f();let _0x1a21e7=_0x335f4d[_0xea68e];return _0x1a21e7;}export const getUserDomain=()=>customUserDomain||getActiveRegionDomains()[a276_0x3187d7(0xf3)];export const getApiDomain=()=>customApiDomain||getActiveRegionDomains()['api'];export const getRuntimeDomain=()=>customRuntimeDomain||getActiveRegionDomains()[a276_0x3187d7(0xdf)];export const getSkillDomain=()=>customSkillDomain||getActiveRegionDomains()[a276_0x3187d7(0xf1)];export const getKbDomain=()=>customKbDomain||customApiDomain||getActiveRegionDomains()['kb'];export const getKbServiceDomain=()=>{const _0x4b4508=a276_0x3187d7;if(customKbServiceDomain)return customKbServiceDomain;if(!allowOfficialKbServiceDefault)return undefined;return getActiveRegionDomains()[_0x4b4508(0xdd)];};export const getAppDomain=()=>customAppDomain||getActiveRegionDomains()[a276_0x3187d7(0xe2)];export const getActiveRegion=()=>activeRegion;export const getLocalDomain=()=>customLocalDomain;export const getCertificateDomain=()=>customCertificateDomain;export const getActiveCdn=()=>customCdn||getOfficialRoutingCdn(activeRegion);export function isIndependentDeployment(){return!!(customApiDomain||customUserDomain||customRuntimeDomain||customSkillDomain||customKbDomain||customAppDomain||customLocalDomain||customCertificateDomain);}export function getSdkClientRoutingConfig(){if(customRuntimeDomain&&customRuntimeDomain!==getActiveRegionDomains()['runtime'])return{'runtimeDomain':customRuntimeDomain};if(activeRegion!==DEFAULT_LOVRABET_REGION)return{'runtimeDomain':getRuntimeDomain()};return{};}function a276_0x335f(){const _0xc86bb9=['app','trim','daily','84141pbuIgC','/web-app/app/','19193724SKKlRW','7546908Ysvlys','289538cgcSmu','1230jXahut','region','origin','hostname','serviceDomains','cdn','localDomain','skill','/app/','user','certificateDomain','skillDomain','allowOfficialKbServiceDefault','runtimeDomain','1770OcsHfB','5150040BDaJUC','5gMwzix','524HSiKcS','kbService','4UkdCkI','runtime','8815191essAkw','production'];a276_0x335f=function(){return _0xc86bb9;};return a276_0x335f();}export const getAppBaseUrl=_0x20f17f=>{const _0x3c6a08=a276_0x3187d7,_0x569116=encodeURIComponent(_0x20f17f[_0x3c6a08(0xe3)]());return isProduction(getEnv())?getAppDomain()+_0x3c6a08(0xf2)+_0x569116:getAppDomain()+_0x3c6a08(0xe6)+_0x569116;};export const getPublishedAppDomain=_0x426d34=>{const _0x1d63ab=a276_0x3187d7,_0x331515=new URL(getAppDomain());return _0x331515[_0x1d63ab(0xed)]=_0x426d34[_0x1d63ab(0xe3)]()+'.'+_0x331515[_0x1d63ab(0xed)],_0x331515[_0x1d63ab(0xec)];};
|
package/lib/constant/env.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a277_0x492995=a277_0x285d;(function(_0x203d55,_0x4b6844){const _0x411fcd=a277_0x285d,_0x270200=_0x203d55();while(!![]){try{const _0x58ad21=-parseInt(_0x411fcd(0x1e5))/0x1*(parseInt(_0x411fcd(0x1ea))/0x2)+-parseInt(_0x411fcd(0x1e6))/0x3*(parseInt(_0x411fcd(0x1de))/0x4)+parseInt(_0x411fcd(0x1dd))/0x5+-parseInt(_0x411fcd(0x1df))/0x6+-parseInt(_0x411fcd(0x1e8))/0x7*(parseInt(_0x411fcd(0x1e0))/0x8)+parseInt(_0x411fcd(0x1e7))/0x9*(parseInt(_0x411fcd(0x1dc))/0xa)+-parseInt(_0x411fcd(0x1eb))/0xb*(-parseInt(_0x411fcd(0x1e2))/0xc);if(_0x58ad21===_0x4b6844)break;else _0x270200['push'](_0x270200['shift']());}catch(_0x2ffb9d){_0x270200['push'](_0x270200['shift']());}}}(a277_0x61a4,0x46d31));export const RABETBASE_ENV_VALUES=[a277_0x492995(0x1e3),a277_0x492995(0x1e4)];function a277_0x61a4(){const _0xe0d587=['22980WfgADI','production','daily','105767YRMfkC','3Mtufvk','126BOTWIU','35dJJkjW','online','6DOsxcw','3806RgNXeB','143090KoXbJe','1871175MJcDMm','1342748uWgizl','1692966DaOMhu','19048rkjpCB','development'];a277_0x61a4=function(){return _0xe0d587;};return a277_0x61a4();}export function normalizeEnv(_0x588c73){const _0x2d8bd8=a277_0x492995;return _0x588c73===_0x2d8bd8(0x1e9)?_0x2d8bd8(0x1e3):_0x588c73;}export function isProduction(_0x3c53e9){return normalizeEnv(_0x3c53e9)==='production';}function a277_0x285d(_0x2fb9b1,_0x5013f1){_0x2fb9b1=_0x2fb9b1-0x1dc;const _0x61a4c0=a277_0x61a4();let _0x285d53=_0x61a4c0[_0x2fb9b1];return _0x285d53;}export function isDaily(_0x34f3aa){const _0x486774=a277_0x492995;return normalizeEnv(_0x34f3aa)===_0x486774(0x1e4);}export function isDev(_0x28cc3b){const _0x3f12c8=a277_0x492995,_0x5e90ff=normalizeEnv(_0x28cc3b);return _0x5e90ff===_0x3f12c8(0x1e1)||_0x5e90ff==='dev';}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||a277_0x492995(0x1e3));export function getEnv(){return env;}export function initEnv(_0x2c2285){env=normalizeEnv(_0x2c2285);}
|
package/lib/constant/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a278_0x21b9(_0xa41aad,_0x23c956){_0xa41aad=_0xa41aad-0xb1;const _0x5f18b6=a278_0x5f18();let _0x21b995=_0x5f18b6[_0xa41aad];return _0x21b995;}const a278_0x3da53c=a278_0x21b9;(function(_0x36140c,_0x188328){const _0x59c8eb=a278_0x21b9,_0x2b1408=_0x36140c();while(!![]){try{const _0x3c26d4=parseInt(_0x59c8eb(0xb2))/0x1*(-parseInt(_0x59c8eb(0xba))/0x2)+-parseInt(_0x59c8eb(0xbb))/0x3+-parseInt(_0x59c8eb(0xb7))/0x4*(-parseInt(_0x59c8eb(0xb1))/0x5)+parseInt(_0x59c8eb(0xb6))/0x6*(parseInt(_0x59c8eb(0xb9))/0x7)+parseInt(_0x59c8eb(0xb8))/0x8+parseInt(_0x59c8eb(0xb3))/0x9+parseInt(_0x59c8eb(0xb5))/0xa;if(_0x3c26d4===_0x188328)break;else _0x2b1408['push'](_0x2b1408['shift']());}catch(_0x224bf8){_0x2b1408['push'](_0x2b1408['shift']());}}}(a278_0x5f18,0x72748));function a278_0x5f18(){const _0xf123b1=['3044610JWlCYK','569562AbKJST','12YhFkYV','1927008tIsCzC','7dVYUqn','106706KJHjKZ','189924Trptzt','25965blalKo','16TgtVKK','6569289EdhKqd','pretty'];a278_0x5f18=function(){return _0xf123b1;};return a278_0x5f18();}export const RABETBASE_OUTPUT_FORMAT_VALUES=['json',a278_0x3da53c(0xb4),'compress'];
|
package/lib/constant/paths.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a279_0x429e(){const _0x25ddae=['19308ACGSYW','2iopZtG','2688684CEvMJp','37074jVQnwm','5PElVcg','1308324WgXDoh','253LNMgLa','2075820QOBIKv','./src/api','360606mQoOep','623SfhmNQ','40329eSOZmY','104BbLmiN'];a279_0x429e=function(){return _0x25ddae;};return a279_0x429e();}const a279_0x39933f=a279_0x33b3;(function(_0x662109,_0x5cd82e){const _0x5dea0d=a279_0x33b3,_0x235626=_0x662109();while(!![]){try{const _0x48c24a=parseInt(_0x5dea0d(0x1c5))/0x1*(parseInt(_0x5dea0d(0x1cd))/0x2)+parseInt(_0x5dea0d(0x1c9))/0x3+-parseInt(_0x5dea0d(0x1c6))/0x4*(parseInt(_0x5dea0d(0x1c8))/0x5)+parseInt(_0x5dea0d(0x1c7))/0x6*(parseInt(_0x5dea0d(0x1c1))/0x7)+parseInt(_0x5dea0d(0x1c3))/0x8*(-parseInt(_0x5dea0d(0x1c2))/0x9)+-parseInt(_0x5dea0d(0x1cb))/0xa+parseInt(_0x5dea0d(0x1ca))/0xb*(-parseInt(_0x5dea0d(0x1c4))/0xc);if(_0x48c24a===_0x5cd82e)break;else _0x235626['push'](_0x235626['shift']());}catch(_0x206ed7){_0x235626['push'](_0x235626['shift']());}}}(a279_0x429e,0x5abb0));function a279_0x33b3(_0x396db7,_0x5051a1){_0x396db7=_0x396db7-0x1c1;const _0x429eb8=a279_0x429e();let _0x33b3e7=_0x429eb8[_0x396db7];return _0x33b3e7;}export const DEFAULT_API_DIR=a279_0x39933f(0x1cc);
|
package/lib/constant/region.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x57081a,_0x3219b3){const _0x251dbb=a280_0x301a,_0x4ec262=_0x57081a();while(!![]){try{const _0x509345=parseInt(_0x251dbb(0x1f0))/0x1+parseInt(_0x251dbb(0x1f3))/0x2+parseInt(_0x251dbb(0x1f7))/0x3+parseInt(_0x251dbb(0x1f8))/0x4+parseInt(_0x251dbb(0x1f6))/0x5+parseInt(_0x251dbb(0x1f1))/0x6+-parseInt(_0x251dbb(0x1f4))/0x7;if(_0x509345===_0x3219b3)break;else _0x4ec262['push'](_0x4ec262['shift']());}catch(_0x33df06){_0x4ec262['push'](_0x4ec262['shift']());}}}(a280_0x1e54,0x1c79e));import{DEFAULT_REGION,ENABLED_REGION_VALUES,REGION_ALIASES,REGION_VALUES}from'../generated/official-routing.js';function a280_0x1e54(){const _0x4a2b75=['803508SyQyAt','49402jQPTuZ','169668efcDRa','string','120438lXVxdE','2181410qdXvLP','includes','40255SWQrkJ','244323xXzqEw'];a280_0x1e54=function(){return _0x4a2b75;};return a280_0x1e54();}function a280_0x301a(_0x66d7ed,_0x53c5a4){_0x66d7ed=_0x66d7ed-0x1f0;const _0x1e546e=a280_0x1e54();let _0x301a5d=_0x1e546e[_0x66d7ed];return _0x301a5d;}export const LOVRABET_REGION_VALUES=REGION_VALUES;export const ENABLED_LOVRABET_REGION_VALUES=ENABLED_REGION_VALUES;export const DEFAULT_LOVRABET_REGION=DEFAULT_REGION;export function isLovrabetRegion(_0x556049){const _0x1bd047=a280_0x301a;return typeof _0x556049===_0x1bd047(0x1f2)&&LOVRABET_REGION_VALUES[_0x1bd047(0x1f5)](_0x556049);}export function isEnabledLovrabetRegion(_0x34ecc1){return typeof _0x34ecc1==='string'&&ENABLED_LOVRABET_REGION_VALUES['includes'](_0x34ecc1);}export function normalizeLovrabetRegion(_0x23d3af){const _0x3a72f1=a280_0x301a;if(typeof _0x23d3af!==_0x3a72f1(0x1f2))return undefined;const _0x240343=REGION_ALIASES[_0x23d3af]??_0x23d3af;return isLovrabetRegion(_0x240343)?_0x240343:undefined;}export function isInvalidLovrabetRegion(_0x2bfeef){return _0x2bfeef!==undefined&&_0x2bfeef!==null&&_0x2bfeef!==''&&normalizeLovrabetRegion(_0x2bfeef)===undefined;}
|
package/lib/constant/risk.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a281_0x3466(){const _0x3eae62=['548232xBxIPB','99232ymPIMp','write','read','136540QEODgD','792HQpVfI','1727HuhPcV','152406GTNhVF','867542ECOBUs','7QnhzgN','4nFtYWu','4810775JFoGGn','5570346GSTxfn'];a281_0x3466=function(){return _0x3eae62;};return a281_0x3466();}const a281_0x50da80=a281_0x1db2;(function(_0x42bb51,_0x5b88a5){const _0x35655d=a281_0x1db2,_0x2ac07b=_0x42bb51();while(!![]){try{const _0x4752e1=-parseInt(_0x35655d(0x107))/0x1+-parseInt(_0x35655d(0x106))/0x2+parseInt(_0x35655d(0x10c))/0x3+parseInt(_0x35655d(0x109))/0x4*(-parseInt(_0x35655d(0x10a))/0x5)+-parseInt(_0x35655d(0x10b))/0x6*(parseInt(_0x35655d(0x108))/0x7)+-parseInt(_0x35655d(0x10d))/0x8*(-parseInt(_0x35655d(0x104))/0x9)+-parseInt(_0x35655d(0x110))/0xa*(-parseInt(_0x35655d(0x105))/0xb);if(_0x4752e1===_0x5b88a5)break;else _0x2ac07b['push'](_0x2ac07b['shift']());}catch(_0x1744e4){_0x2ac07b['push'](_0x2ac07b['shift']());}}}(a281_0x3466,0x8e803));function a281_0x1db2(_0x2f2783,_0x3fd152){_0x2f2783=_0x2f2783-0x104;const _0x3466fd=a281_0x3466();let _0x1db26e=_0x3466fd[_0x2f2783];return _0x1db26e;}export const RISK_LEVEL_VALUES=[a281_0x50da80(0x10f),a281_0x50da80(0x10e),'high-risk-write'];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2eae6c,_0x49b09a){const _0x396c0f=a282_0x39d4,_0x6df51d=_0x2eae6c();while(!![]){try{const _0x5c48d4=parseInt(_0x396c0f(0x67))/0x1*(-parseInt(_0x396c0f(0x6a))/0x2)+-parseInt(_0x396c0f(0x6c))/0x3*(parseInt(_0x396c0f(0x70))/0x4)+-parseInt(_0x396c0f(0x66))/0x5*(parseInt(_0x396c0f(0x6e))/0x6)+parseInt(_0x396c0f(0x6d))/0x7*(parseInt(_0x396c0f(0x65))/0x8)+parseInt(_0x396c0f(0x71))/0x9+-parseInt(_0x396c0f(0x6b))/0xa+parseInt(_0x396c0f(0x72))/0xb*(parseInt(_0x396c0f(0x68))/0xc);if(_0x5c48d4===_0x49b09a)break;else _0x6df51d['push'](_0x6df51d['shift']());}catch(_0x485df4){_0x6df51d['push'](_0x6df51d['shift']());}}}(a282_0x47b4,0xf3667));import{OFFICIAL_ROUTING_PROFILES as a282_0x7b7834,ROUTING_CATALOG_DIGEST}from'../generated/official-routing.js';function a282_0x39d4(_0x4dcdca,_0x442d97){_0x4dcdca=_0x4dcdca-0x65;const _0x47b484=a282_0x47b4();let _0x39d491=_0x47b484[_0x4dcdca];return _0x39d491;}function a282_0x47b4(){const _0x535ff8=['\x22\x20is\x20not\x20ready:\x20Lovrabet\x20CDN\x20Domain\x20is\x20not\x20configured.','Official\x20routing\x20for\x20region\x20\x22','cdn','24IBgYza','4536085DpBcTV','1jlYQFO','57048bfreex','libraries','3178594QOPgzy','11410580hclCvK','312159Rdhvck','4396196SKHgZg','6xwFcar','lovrabet','76hgsUka','7633782ZWnBTH','8976PAetaV'];a282_0x47b4=function(){return _0x535ff8;};return a282_0x47b4();}export const OFFICIAL_ROUTING_PROFILES=a282_0x7b7834;export{ROUTING_CATALOG_DIGEST};export function getOfficialRoutingProfile(_0x489957){return OFFICIAL_ROUTING_PROFILES[_0x489957];}export function getOfficialRoutingCdn(_0x43b7e6){const _0x7e07a5=a282_0x39d4,_0x38c878=getOfficialRoutingProfile(_0x43b7e6)[_0x7e07a5(0x75)];if(!_0x38c878[_0x7e07a5(0x6f)])throw new Error(_0x7e07a5(0x74)+_0x43b7e6+_0x7e07a5(0x73));return{'libraries':_0x38c878[_0x7e07a5(0x69)],'lovrabet':_0x38c878[_0x7e07a5(0x6f)]};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x19a12b,_0x3462e6){const _0x25d31c=a283_0x1a17,_0x1790d4=_0x19a12b();while(!![]){try{const _0x116854=parseInt(_0x25d31c(0x206))/0x1+parseInt(_0x25d31c(0x213))/0x2+parseInt(_0x25d31c(0x20a))/0x3*(parseInt(_0x25d31c(0x1f3))/0x4)+parseInt(_0x25d31c(0x1ff))/0x5*(parseInt(_0x25d31c(0x207))/0x6)+parseInt(_0x25d31c(0x20b))/0x7+-parseInt(_0x25d31c(0x201))/0x8+-parseInt(_0x25d31c(0x208))/0x9;if(_0x116854===_0x3462e6)break;else _0x1790d4['push'](_0x1790d4['shift']());}catch(_0x35c26e){_0x1790d4['push'](_0x1790d4['shift']());}}}(a283_0x3385,0x68310));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{isDaily,normalizeEnv}from'../constant/env.js';function a283_0x3385(){const _0xb563d0=['trim','riskLevel','cookie','108680SZDJPx','37782BpcmWp','17009127WYtrSn','locale','793794izLPPf','5555368lsdSzT','APP','string','daily','env','value','RISK_LEVEL','format','477280SZwruT','accessKey','PAGE_SIZE','ENV','pageSize','keys','defaultApp','region','COOKIE','12sEkciO','object','length','entries','projectPath','apiDir','high-risk-write','apps','appcode','projectConfig','true','source','565dYstME','globalConfig','2637024TWnfcH','FORMAT'];a283_0x3385=function(){return _0xb563d0;};return a283_0x3385();}import{normalizeLegacyOutputFormat,riskLevelOrder}from'../framework/types.js';import{DEFAULT_LOVRABET_REGION,normalizeLovrabetRegion}from'../constant/region.js';import{selectConfiguredRegion}from'../config/region-config.js';function stringConfigValue(_0x15260d){const _0x4b920c=a283_0x1a17;return typeof _0x15260d==='string'&&_0x15260d[_0x4b920c(0x203)]()?_0x15260d[_0x4b920c(0x203)]():undefined;}function a283_0x1a17(_0x316607,_0x27e89f){_0x316607=_0x316607-0x1f1;const _0x338567=a283_0x3385();let _0x1a1793=_0x338567[_0x316607];return _0x1a1793;}function appProfiles(_0x1b9eef){const _0x881f91=a283_0x1a17;return _0x1b9eef[_0x881f91(0x1fa)]&&typeof _0x1b9eef[_0x881f91(0x1fa)]===_0x881f91(0x1f4)?_0x1b9eef[_0x881f91(0x1fa)]:{};}function resolveDefaultAppName(_0x18aa2d){const _0xff2075=a283_0x1a17,_0x3d3422=stringConfigValue(_0x18aa2d[_0xff2075(0x219)]);if(_0x3d3422)return _0x3d3422;const _0x80595d=Object[_0xff2075(0x218)](appProfiles(_0x18aa2d));return _0x80595d[_0xff2075(0x1f5)]===0x1?_0x80595d[0x0]:undefined;}function resolveTopLevelAppCode(_0x5693f8){const _0x21932c=a283_0x1a17;return stringConfigValue(_0x5693f8[_0x21932c(0x1fb)])||stringConfigValue(_0x5693f8['app']);}function normalizeRiskCeiling(_0x4700a8){const _0x326e39=a283_0x1a17;if(_0x4700a8===undefined||_0x4700a8===null)return undefined;if(_0x4700a8==='read'||_0x4700a8==='write'||_0x4700a8===_0x326e39(0x1f9))return _0x4700a8;return'read';}function resolveRiskCeiling(..._0x23bb27){const _0x3e5cd6=a283_0x1a17;let _0x10e78d;for(const _0x483773 of _0x23bb27){const _0x372d19=normalizeRiskCeiling(_0x483773);_0x372d19&&(!_0x10e78d||riskLevelOrder(_0x372d19)<riskLevelOrder(_0x10e78d))&&(_0x10e78d=_0x372d19);}return _0x10e78d??DEFAULT_CONFIG_VALUES[_0x3e5cd6(0x204)];}export function resolveAppConfig({raw:_0x1252d1,flags:_0x265f6c,layers:_0x21401c,readEnv:_0x67bbea}){const _0x5a2926=a283_0x1a17,_0x5b8cf0=_0x21401c?.[_0x5a2926(0x1fc)]??{},_0x5a32cb=_0x21401c?.[_0x5a2926(0x200)]??{},_0xe3a99f=!!_0x21401c?.[_0x5a2926(0x1f7)]||Object[_0x5a2926(0x218)](_0x5b8cf0)[_0x5a2926(0x1f5)]>0x0,_0x53aabd=!_0xe3a99f,_0x3badd1=_0xe3a99f?resolveDefaultAppName(_0x5b8cf0):undefined,_0x417486=_0x53aabd?resolveDefaultAppName(_0x5a32cb):undefined,_0xce79c8=stringConfigValue(_0x265f6c['app']),_0x12a0c0=_0x67bbea(_0x5a2926(0x20c)),_0x2cc64a={};if(_0x1252d1[_0x5a2926(0x1fa)]&&typeof _0x1252d1[_0x5a2926(0x1fa)]===_0x5a2926(0x1f4))for(const [_0x9b5f4f,_0x4ae73a]of Object[_0x5a2926(0x1f6)](_0x1252d1[_0x5a2926(0x1fa)])){_0x4ae73a&&typeof _0x4ae73a===_0x5a2926(0x1f4)&&_0x4ae73a[_0x5a2926(0x1fb)]&&(_0x2cc64a[_0x9b5f4f]=_0x4ae73a);}const _0x5408c7=_0x3badd1||_0x417486||resolveDefaultAppName(_0x1252d1),_0x5f0133=Object[_0x5a2926(0x218)](_0x2cc64a)[_0x5a2926(0x1f5)]>0x0,_0x48c06b=_0xce79c8||_0x3badd1||_0x12a0c0||_0x417486||_0x5408c7||undefined,_0x223c0c=stringConfigValue(_0x265f6c[_0x5a2926(0x1fb)]),_0x5833b0=_0x223c0c?Object[_0x5a2926(0x1f6)](_0x2cc64a)['filter'](([,_0x5385d6])=>_0x5385d6?.[_0x5a2926(0x1fb)]===_0x223c0c):[],_0x5b0988=_0xce79c8&&_0x2cc64a[_0xce79c8]?.[_0x5a2926(0x1fb)]===_0x223c0c?[_0xce79c8,_0x2cc64a[_0xce79c8]]:undefined,_0x4a45ad=_0x5b0988??(_0x5833b0[_0x5a2926(0x1f5)]===0x1?_0x5833b0[0x0]:undefined),_0x31f486=_0x4a45ad?.[0x0],_0x3a4b4c=_0x4a45ad?.[0x1],_0x552628=_0x223c0c?_0x31f486:_0x48c06b;let _0x3bcc7f=_0x552628&&_0x2cc64a[_0x552628]?_0x2cc64a[_0x552628]:undefined;_0x223c0c&&_0x3a4b4c&&(_0x3bcc7f=_0x3a4b4c);const _0x349d6c=_0x223c0c?_0x3a4b4c??_0x3bcc7f:_0x3bcc7f,_0x413a24=!_0xce79c8&&!_0x3badd1&&_0x12a0c0&&_0x552628===_0x12a0c0,_0x9ffcdb=_0xce79c8||(_0x413a24?_0x12a0c0:undefined)||(_0x223c0c?_0x31f486:undefined),_0xf0818a=_0x349d6c?.['appcode'],_0x1b7354=_0xe3a99f?resolveTopLevelAppCode(_0x5b8cf0):undefined,_0x10d1cc=_0x53aabd?resolveTopLevelAppCode(_0x5a32cb):undefined,_0x1ac1c9=_0xce79c8||_0x3badd1?_0xf0818a:undefined,_0x3dc671=!_0xce79c8&&!_0x3badd1?_0xf0818a:undefined,_0x574e06=_0x223c0c||_0x1ac1c9||_0x1b7354||_0x3dc671||_0x10d1cc||undefined,_0x3550cc=_0xe3a99f?stringConfigValue(_0x5b8cf0[_0x5a2926(0x20f)]):undefined,_0xb0789c=_0x53aabd?stringConfigValue(_0x5a32cb[_0x5a2926(0x20f)]):undefined,_0x41e532=_0x265f6c[_0x5a2926(0x20f)]||_0x349d6c?.[_0x5a2926(0x20f)]||_0x3550cc||_0x67bbea(_0x5a2926(0x216))||_0xb0789c||_0x1252d1['env']||DEFAULT_CONFIG_VALUES[_0x5a2926(0x20f)],_0x5ea13c=_0x349d6c?.[_0x5a2926(0x209)]||_0x1252d1[_0x5a2926(0x209)]||DEFAULT_CONFIG_VALUES['locale'],_0x2f76d6=_0x67bbea(_0x5a2926(0x1f2))||_0x349d6c?.[_0x5a2926(0x205)]||_0x1252d1[_0x5a2926(0x205)]||undefined,_0x43918c=_0x67bbea('ACCESS_KEY')||_0x349d6c?.[_0x5a2926(0x214)]||_0x1252d1[_0x5a2926(0x214)]||undefined,_0x2370ba=_0x265f6c[_0x5a2926(0x212)]||_0x67bbea(_0x5a2926(0x202))||_0x349d6c?.[_0x5a2926(0x212)]||_0x1252d1[_0x5a2926(0x212)],_0x997c90=normalizeLegacyOutputFormat(_0x2370ba),_0x10129b=_0x67bbea(_0x5a2926(0x215))||_0x349d6c?.['pageSize']||_0x1252d1[_0x5a2926(0x217)],_0x3a724c=_0x10129b?Number(_0x10129b)||undefined:undefined,_0x391143=_0x21401c?[_0x21401c[_0x5a2926(0x200)]['riskLevel'],_0x21401c['projectConfig']['riskLevel']]:[_0x1252d1['riskLevel']],_0x2ba368=resolveRiskCeiling(..._0x391143,_0x349d6c?.[_0x5a2926(0x204)]),_0x215767=resolveRiskCeiling(_0x2ba368,_0x67bbea(_0x5a2926(0x211))),_0x3ddd9f=_0x67bbea('VERBOSE'),_0x15705f=_0x3ddd9f==='1'||_0x3ddd9f===_0x5a2926(0x1fd),_0x29ff4c=_0x349d6c?.[_0x5a2926(0x1f8)]||_0x1252d1[_0x5a2926(0x1f8)]||DEFAULT_CONFIG_VALUES['apiDir'],_0x10534c=selectConfiguredRegion({'appRegion':_0x349d6c?.[_0x5a2926(0x1f1)],'projectRegion':_0xe3a99f?_0x5b8cf0['region']:undefined,'globalRegion':_0xe3a99f||_0x53aabd?_0x5a32cb['region']:undefined,'mergedRegion':_0x1252d1[_0x5a2926(0x1f1)]}),_0x264089=normalizeLovrabetRegion(_0x10534c[_0x5a2926(0x210)])??DEFAULT_LOVRABET_REGION,_0x8be016=isDaily(normalizeEnv(String(_0x41e532)))?_0x5a2926(0x20e):'production';return{'appCode':typeof _0x574e06===_0x5a2926(0x20d)&&_0x574e06[_0x5a2926(0x203)]()?_0x574e06['trim']():undefined,'region':_0x264089,'regionConfiguredValue':_0x10534c['value'],'regionSource':_0x10534c[_0x5a2926(0x1fe)],'env':_0x8be016,'locale':_0x5ea13c,'cookie':_0x2f76d6,'accessKey':_0x43918c,'format':_0x997c90,'pageSize':_0x3a724c,'riskLevel':_0x215767,'verbose':_0x15705f,'apiDir':_0x29ff4c,'apps':_0x2cc64a,'defaultApp':_0x5408c7,'currentApp':_0x5f0133?_0x552628:undefined,'explicitAppName':_0x9ffcdb};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x4d0892,_0x37b0d2){const _0x27e449=a284_0xb3c8,_0x5f0e9e=_0x4d0892();while(!![]){try{const _0x17f744=-parseInt(_0x27e449(0x1e1))/0x1+-parseInt(_0x27e449(0x1dc))/0x2+-parseInt(_0x27e449(0x1df))/0x3*(-parseInt(_0x27e449(0x1d9))/0x4)+-parseInt(_0x27e449(0x1e2))/0x5+-parseInt(_0x27e449(0x1e0))/0x6*(-parseInt(_0x27e449(0x1e3))/0x7)+-parseInt(_0x27e449(0x1dd))/0x8+-parseInt(_0x27e449(0x1de))/0x9*(-parseInt(_0x27e449(0x1db))/0xa);if(_0x17f744===_0x37b0d2)break;else _0x5f0e9e['push'](_0x5f0e9e['shift']());}catch(_0x3a85c4){_0x5f0e9e['push'](_0x5f0e9e['shift']());}}}(a284_0x24ca,0xe2677));import{getIsSessionValid}from'../auth/is-session-valid.js';function a284_0x24ca(){const _0x47230b=['10493FnJcHc','authRequired','19192yvGNFr','cookie','25221890PzxPBp','1450986VfFeXj','14787048FZwUxA','9ODzRhZ','789dCaQSZ','3174QDUjVr','632473flgEYJ','2216680cmADKI'];a284_0x24ca=function(){return _0x47230b;};return a284_0x24ca();}function a284_0xb3c8(_0x59f744,_0x9ba60e){_0x59f744=_0x59f744-0x1d9;const _0x24ca37=a284_0x24ca();let _0xb3c819=_0x24ca37[_0x59f744];return _0xb3c819;}import{CliErrors}from'../errors.js';export async function buildAuth(_0x4a854b){const _0x4981da=a284_0xb3c8,{getCookie:_0xd161e4}=await import('../auth/get-cookie.js'),_0x16f5c4=_0x4a854b[_0x4981da(0x1da)]||_0xd161e4(),_0x2b168f=_0x16f5c4?await getIsSessionValid():![];return{'cookie':_0x16f5c4,'isLoggedIn':_0x2b168f,async 'getOrLogin'(){const _0xc069aa=_0x4981da;if(_0x16f5c4&&_0x2b168f)return _0x16f5c4;throw CliErrors[_0xc069aa(0x1e4)]();}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a285_0x2b21f5=a285_0x1404;(function(_0x404192,_0x40d199){const _0x27720b=a285_0x1404,_0x49c4df=_0x404192();while(!![]){try{const _0x533b41=-parseInt(_0x27720b(0x184))/0x1*(parseInt(_0x27720b(0x1a2))/0x2)+-parseInt(_0x27720b(0x183))/0x3*(-parseInt(_0x27720b(0x173))/0x4)+-parseInt(_0x27720b(0x199))/0x5*(-parseInt(_0x27720b(0x19f))/0x6)+parseInt(_0x27720b(0x18e))/0x7+parseInt(_0x27720b(0x172))/0x8*(parseInt(_0x27720b(0x186))/0x9)+-parseInt(_0x27720b(0x19c))/0xa+-parseInt(_0x27720b(0x195))/0xb*(parseInt(_0x27720b(0x18f))/0xc);if(_0x533b41===_0x40d199)break;else _0x49c4df['push'](_0x49c4df['shift']());}catch(_0xb5f468){_0x49c4df['push'](_0x49c4df['shift']());}}}(a285_0x2fbf,0x2f894));function a285_0x2fbf(){const _0x343778=['message','kbServiceDomain','1214245XHOWpb','pageSize','keys','1846850yXSwZb','certificateDomain','warn','6bIXdrb','appcode','data','274QPfsZI','\x0a\x20\x20','env','accessKey','stringify','utf8','runtimeDomain','160CMocgB','552ebvbks','format','set','app','silent','region','trim','appDomain','empty','apiDir','length','locale','config','kbDomain','migrated','object','7377KFJmyq','2689pWnPNJ','apps','70857YwPOdK','status','projectPath','riskLevel','get','cookie','defaultApp','.tmp','1752996sruLiC','2907516HdMfWF','error','apiDomain','inherit','\x20config\x20file\x20ignored\x20(invalid\x20JSON\x20or\x20unreadable):\x20','cwd','11WPwNmN','parse'];a285_0x2fbf=function(){return _0x343778;};return a285_0x2fbf();}import{existsSync,mkdirSync,readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{dirname,parse,resolve}from'node:path';import{homedir}from'node:os';import{CLI_BIN_NAME}from'../constant/cli.js';import{normalizeConfigForWrite}from'../config/schema.js';export const NEW_CONFIG_NAME='.rabetbase.json';export const CONFIG_NAMES=[NEW_CONFIG_NAME];const normalizedWriteCache=new Map();export function resolveConfigPath(_0x2bb78f){for(const _0x118d39 of CONFIG_NAMES){const _0x403b80=resolve(_0x2bb78f,_0x118d39);if(existsSync(_0x403b80))return _0x403b80;}return undefined;}export function findProjectRootDirectory(_0xb07b90=process[a285_0x2b21f5(0x194)]()){let _0x941ef2=resolve(_0xb07b90);const {root:_0x507c9e}=parse(_0x941ef2),_0xa14d2=homedir();while(!![]){if(resolveConfigPath(_0x941ef2)){if(_0x941ef2===_0xa14d2)break;return _0x941ef2;}if(_0x941ef2===_0x507c9e||_0x941ef2===_0xa14d2)break;const _0x1644ab=dirname(_0x941ef2);if(_0x1644ab===_0x941ef2)break;_0x941ef2=_0x1644ab;}return resolve(_0xb07b90);}export function getProjectConfigPath(){const _0x37eb4c=a285_0x2b21f5;return resolveConfigPath(process[_0x37eb4c(0x194)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function isInProject(){return!!getProjectConfigPath();}export function inspectCliConfigJsonFile(_0x5e2628){const _0x1a4dbc=a285_0x2b21f5;if(!existsSync(_0x5e2628))return{'status':'missing'};try{const _0x62de8f=readFileSync(_0x5e2628,{'encoding':_0x1a4dbc(0x170)});if(!_0x62de8f?.[_0x1a4dbc(0x179)]())return{'status':_0x1a4dbc(0x17b)};const _0x37b6b3=JSON[_0x1a4dbc(0x196)](_0x62de8f);return{'status':'ok','data':_0x37b6b3};}catch(_0x18bf63){return{'status':_0x1a4dbc(0x190),'message':_0x18bf63 instanceof Error?_0x18bf63[_0x1a4dbc(0x197)]:String(_0x18bf63)};}}function parseCliConfigJsonFile(_0xe01b5b,_0xbe1ad1,_0x40810a){const _0xad60cb=a285_0x2b21f5,_0x30df9e=inspectCliConfigJsonFile(_0xe01b5b);if(_0x30df9e[_0xad60cb(0x187)]==='missing'||_0x30df9e['status']===_0xad60cb(0x17b))return{};if(_0x30df9e['status']==='ok')return _0x30df9e[_0xad60cb(0x1a1)];return _0xbe1ad1===_0xad60cb(0x19e)&&_0x40810a&&console['error'](CLI_BIN_NAME+':\x20'+_0x40810a+_0xad60cb(0x193)+_0xe01b5b+_0xad60cb(0x1a3)+_0x30df9e[_0xad60cb(0x197)]),{};}function normalizeLegacyConfigShape(_0x8f6ae5){const _0x1a0e43=a285_0x2b21f5;if(!_0x8f6ae5||typeof _0x8f6ae5!==_0x1a0e43(0x182))return{'config':{},'migrated':![]};const _0x24c926={..._0x8f6ae5},_0x15a84d=_0x24c926[_0x1a0e43(0x185)]&&typeof _0x24c926[_0x1a0e43(0x185)]==='object'?{..._0x24c926['apps']}:{},_0x1f452f=Object[_0x1a0e43(0x19b)](_0x15a84d)[_0x1a0e43(0x17d)],_0x2bcee2=_0x24c926[_0x1a0e43(0x1a0)]||_0x24c926[_0x1a0e43(0x176)];let _0x1a035c=![];if(_0x2bcee2&&_0x1f452f===0x0){const _0x975fba=typeof _0x24c926[_0x1a0e43(0x18c)]==='string'&&_0x24c926[_0x1a0e43(0x18c)]['trim']()?_0x24c926[_0x1a0e43(0x18c)]:String(_0x2bcee2)[_0x1a0e43(0x179)]();_0x15a84d[_0x975fba]={'appcode':String(_0x2bcee2)[_0x1a0e43(0x179)](),..._0x24c926[_0x1a0e43(0x1a4)]!=null?{'env':_0x24c926['env']}:{},..._0x24c926[_0x1a0e43(0x17c)]!=null?{'apiDir':_0x24c926[_0x1a0e43(0x17c)]}:{},..._0x24c926[_0x1a0e43(0x18b)]!=null?{'cookie':_0x24c926['cookie']}:{},..._0x24c926[_0x1a0e43(0x1a5)]!=null?{'accessKey':_0x24c926['accessKey']}:{},..._0x24c926[_0x1a0e43(0x174)]!=null?{'format':_0x24c926[_0x1a0e43(0x174)]}:{},..._0x24c926[_0x1a0e43(0x19a)]!=null?{'pageSize':_0x24c926[_0x1a0e43(0x19a)]}:{},..._0x24c926[_0x1a0e43(0x189)]!=null?{'riskLevel':_0x24c926['riskLevel']}:{},..._0x24c926[_0x1a0e43(0x17e)]!=null?{'locale':_0x24c926[_0x1a0e43(0x17e)]}:{}},_0x24c926[_0x1a0e43(0x185)]=_0x15a84d,delete _0x24c926[_0x1a0e43(0x18c)],_0x1a035c=!![];}return(_0x1a0e43(0x1a0)in _0x24c926||_0x1a0e43(0x176)in _0x24c926)&&(delete _0x24c926[_0x1a0e43(0x1a0)],delete _0x24c926['app'],_0x1a035c=!![]),{'config':_0x24c926,'migrated':_0x1a035c};}function writeNormalizedConfigIfNeeded(_0x2ad584,_0x583c1b){const _0x25ba62=a285_0x2b21f5,_0x151e0a=JSON[_0x25ba62(0x16f)](normalizeConfigForWrite(_0x583c1b),null,0x2)+'\x0a';if(normalizedWriteCache[_0x25ba62(0x18a)](_0x2ad584)===_0x151e0a)return;writeConfigFile(_0x2ad584,_0x583c1b),normalizedWriteCache[_0x25ba62(0x175)](_0x2ad584,_0x151e0a);}function a285_0x1404(_0x5a0aab,_0x6f7965){_0x5a0aab=_0x5a0aab-0x16f;const _0x2fbf5d=a285_0x2fbf();let _0x14041b=_0x2fbf5d[_0x5a0aab];return _0x14041b;}function parseAndNormalizeConfig(_0x5bd508,_0x574919,_0xbaba11){const _0x4b84e5=a285_0x2b21f5,_0x3d9b91=parseCliConfigJsonFile(_0x5bd508,_0x574919,_0xbaba11),_0x21e0bf=normalizeLegacyConfigShape(_0x3d9b91);if(_0x21e0bf[_0x4b84e5(0x181)])try{writeNormalizedConfigIfNeeded(_0x5bd508,_0x21e0bf[_0x4b84e5(0x17f)]);}catch{}return _0x21e0bf[_0x4b84e5(0x17f)];}export function loadRawConfigLayers(_0x2c01f8){const _0x1424f7=a285_0x2b21f5;let _0x35d12f={},_0x479ca4={};const _0x37564c=resolveConfigPath(homedir());_0x37564c&&(_0x35d12f=parseAndNormalizeConfig(_0x37564c,_0x1424f7(0x19e),'Global'));const _0x73e86f=_0x2c01f8??findProjectRootDirectory(),_0x21dad6=resolveConfigPath(_0x73e86f);return _0x21dad6&&(_0x479ca4=parseAndNormalizeConfig(_0x21dad6,_0x1424f7(0x19e),'Project')),{'globalPath':_0x37564c,'projectPath':_0x21dad6,'globalConfig':_0x35d12f,'projectConfig':_0x479ca4};}const INHERIT_WHITELIST=['cookie',a285_0x2b21f5(0x1a5),a285_0x2b21f5(0x17e),a285_0x2b21f5(0x174),'riskLevel',a285_0x2b21f5(0x19a),a285_0x2b21f5(0x178),'routing','userDomain',a285_0x2b21f5(0x191),a285_0x2b21f5(0x171),'skillDomain',a285_0x2b21f5(0x180),a285_0x2b21f5(0x198),a285_0x2b21f5(0x17a),'localDomain',a285_0x2b21f5(0x19d)];export function mergeRawConfigLayers(_0x15f26e){const _0x3a6a5e=a285_0x2b21f5,{globalConfig:_0xe50c1f,projectConfig:_0x48373f}=_0x15f26e,_0x9490d1=!!_0x15f26e[_0x3a6a5e(0x188)]||Object[_0x3a6a5e(0x19b)](_0x48373f)['length']>0x0;if(!_0x9490d1)return mergeGlobalOnly(_0xe50c1f);return mergeProjectFirst(_0xe50c1f,_0x48373f);}function mergeGlobalOnly(_0x332ec3){const _0x4b46c4=a285_0x2b21f5,_0x1cc604={..._0x332ec3};delete _0x1cc604[_0x4b46c4(0x192)];const _0x190a4b=_0x332ec3['apps']&&typeof _0x332ec3[_0x4b46c4(0x185)]===_0x4b46c4(0x182)?_0x332ec3['apps']:{};if(Object['keys'](_0x190a4b)['length']>0x0)_0x1cc604[_0x4b46c4(0x185)]=_0x190a4b;if(_0x332ec3[_0x4b46c4(0x18c)])_0x1cc604[_0x4b46c4(0x18c)]=_0x332ec3['defaultApp'];return _0x1cc604;}function mergeProjectFirst(_0x1be5d3,_0x151283){const _0x8a60ea=a285_0x2b21f5,_0x456098={..._0x151283};delete _0x456098[_0x8a60ea(0x192)];for(const _0xd4f15c of INHERIT_WHITELIST){!(_0xd4f15c in _0x456098)&&_0xd4f15c in _0x1be5d3&&(_0x456098[_0xd4f15c]=_0x1be5d3[_0xd4f15c]);}const _0x5240fe=_0x151283[_0x8a60ea(0x185)]&&typeof _0x151283[_0x8a60ea(0x185)]===_0x8a60ea(0x182)?_0x151283['apps']:{};return Object[_0x8a60ea(0x19b)](_0x5240fe)['length']>0x0?_0x456098[_0x8a60ea(0x185)]=_0x5240fe:delete _0x456098['apps'],'defaultApp'in _0x151283?_0x456098['defaultApp']=_0x151283[_0x8a60ea(0x18c)]:delete _0x456098[_0x8a60ea(0x18c)],_0x456098;}export function readRawConfigWithLayers(_0xec8f91){const _0x11b879=loadRawConfigLayers(_0xec8f91);return{'config':mergeRawConfigLayers(_0x11b879),'layers':_0x11b879};}export function readRawConfig(_0x498bf9){return mergeRawConfigLayers(loadRawConfigLayers(_0x498bf9));}export function readConfigFile(_0x4f1f94){const _0x2707e5=a285_0x2b21f5;return parseAndNormalizeConfig(_0x4f1f94,_0x2707e5(0x177));}export function writeConfigFile(_0x344d81,_0xcc8070){const _0x24fb2b=a285_0x2b21f5,_0x4a0c51=dirname(_0x344d81);!existsSync(_0x4a0c51)&&mkdirSync(_0x4a0c51,{'recursive':!![]});const _0x28c586=_0x344d81+_0x24fb2b(0x18d);try{const _0x3d8030=normalizeConfigForWrite(_0xcc8070);writeFileSync(_0x28c586,JSON[_0x24fb2b(0x16f)](_0x3d8030,null,0x2)+'\x0a',{'encoding':_0x24fb2b(0x170),'mode':0x180}),renameSync(_0x28c586,_0x344d81);}catch(_0x3cdd6d){try{unlinkSync(_0x28c586);}catch{}throw _0x3cdd6d;}}export function resolveWriteConfigPath(_0xbb3452){const _0x1dc86e=a285_0x2b21f5,_0x8b3b99=_0xbb3452==='project'?process[_0x1dc86e(0x194)]():homedir(),_0x44462c=resolveConfigPath(_0x8b3b99);return _0x44462c??resolve(_0x8b3b99,NEW_CONFIG_NAME);}
|
package/lib/context.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a286_0xf0e408=a286_0x2355;(function(_0x49c62,_0x1c1f02){const _0x5d5497=a286_0x2355,_0x21f668=_0x49c62();while(!![]){try{const _0x2b7ec2=-parseInt(_0x5d5497(0x150))/0x1*(-parseInt(_0x5d5497(0x15d))/0x2)+parseInt(_0x5d5497(0x15f))/0x3+parseInt(_0x5d5497(0x180))/0x4+-parseInt(_0x5d5497(0x156))/0x5+-parseInt(_0x5d5497(0x179))/0x6*(-parseInt(_0x5d5497(0x187))/0x7)+-parseInt(_0x5d5497(0x18c))/0x8*(-parseInt(_0x5d5497(0x184))/0x9)+parseInt(_0x5d5497(0x16b))/0xa*(-parseInt(_0x5d5497(0x175))/0xb);if(_0x2b7ec2===_0x1c1f02)break;else _0x21f668['push'](_0x21f668['shift']());}catch(_0x5aeaae){_0x21f668['push'](_0x21f668['shift']());}}}(a286_0x245a,0xd5473));import{CLI_BIN_NAME}from'./constant/cli.js';import{buildAuth}from'./context/auth-resolver.js';import{resolveAppConfig}from'./context/app-resolver.js';import{CONFIG_NAMES,NEW_CONFIG_NAME,findProjectRootDirectory,getGlobalConfigPath,getProjectConfigPath,inspectCliConfigJsonFile,isInProject,loadRawConfigLayers,mergeRawConfigLayers,readConfigFile,readRawConfig,readRawConfigWithLayers,resolveConfigPath,resolveWriteConfigPath,writeConfigFile}from'./context/config-loader.js';import{resolveConfiguredRegion,resolveEffectiveRegion}from'./config/region-config.js';import{resolveEnterpriseRoutingManifest}from'./config/domain-config.js';import{logger}from'./utils/logger.js';import{resolveApiModelSource}from'./api/model-source.js';export{CONFIG_NAMES,NEW_CONFIG_NAME,findProjectRootDirectory,getGlobalConfigPath,getProjectConfigPath,inspectCliConfigJsonFile,isInProject,loadRawConfigLayers,mergeRawConfigLayers,readConfigFile,readRawConfig,readRawConfigWithLayers,resolveConfigPath,resolveWriteConfigPath,writeConfigFile};function env(_0x39a4b0){return process.env[`RABETBASE_${_0x39a4b0}`]||process.env[`LOVRABET_${_0x39a4b0}`]||undefined;}function optionalString(_0x40f42f){const _0x13a7ab=a286_0x2355;return typeof _0x40f42f===_0x13a7ab(0x16e)&&_0x40f42f[_0x13a7ab(0x18d)]()?_0x40f42f['trim']():undefined;}export function isRoutingRecoveryService(_0x2c698d){const _0x2e4578=a286_0x2355;return _0x2c698d===_0x2e4578(0x14f)||_0x2c698d===_0x2e4578(0x173);}export async function createContext(_0x56cd29){const _0x1fc92e=a286_0x2355,{config:_0x9835fe,layers:_0xb5add1}=readRawConfigWithLayers(),_0x13d7ee=buildConfig(_0x9835fe,_0x56cd29,_0xb5add1);await initGlobalEnvironment(_0x13d7ee);const {getUserDomain:_0x184ec2,getApiDomain:_0x437814}=await import(_0x1fc92e(0x14b)),_0x1e0c75={'apiDomain':_0x437814(),'userDomain':_0x184ec2()},_0x4dbeb4=await buildAuth(_0x13d7ee);logger[_0x1fc92e(0x153)](process[_0x1fc92e(0x147)]());const _0x4bf8a4=(CLI_BIN_NAME+'\x20'+process[_0x1fc92e(0x155)][_0x1fc92e(0x15b)](0x2)['join']('\x20'))[_0x1fc92e(0x18d)]();logger[_0x1fc92e(0x174)](_0x4bf8a4);const {isNonInteractive:_0x7ccdce}=await import('./utils/is-non-interactive.js'),_0x47e0bb=_0x7ccdce(_0x56cd29);return{'config':_0x13d7ee,'auth':_0x4dbeb4,'logger':logger,'env':_0x1e0c75,'nonInteractive':_0x47e0bb};}export function buildConfigFromFlags(_0x1c56a8){const {config:_0x4fed77,layers:_0x501126}=readRawConfigWithLayers();return buildConfig(_0x4fed77,_0x1c56a8,_0x501126);}function a286_0x2355(_0x19e5be,_0x4f1593){_0x19e5be=_0x19e5be-0x144;const _0x245a64=a286_0x245a();let _0x2355b3=_0x245a64[_0x19e5be];return _0x2355b3;}export async function initGlobalEnvironment(_0x434c60){const _0x1113ab=a286_0x2355,_0x420a96=_0x434c60[_0x1113ab(0x16f)]===_0x1113ab(0x17c)&&_0x434c60['currentApp']?_0x1113ab(0x151)+_0x434c60[_0x1113ab(0x177)]+'\x22':_0x434c60[_0x1113ab(0x16f)]==='project'?_0x1113ab(0x163):_0x434c60[_0x1113ab(0x16f)]===_0x1113ab(0x15c)?'global\x20Rabetbase\x20configuration':'Rabetbase\x20configuration';await initConfiguredEnvironment({'raw':_0x434c60['raw'],'configuredRegion':_0x434c60[_0x1113ab(0x14d)]??_0x434c60['raw']?.[_0x1113ab(0x154)]??_0x434c60['region'],'regionLocation':_0x420a96,'targetEnv':_0x434c60[_0x1113ab(0x178)]});}async function initConfiguredEnvironment(_0x251568){const _0x1d6dd1=a286_0x2355,_0x532f33=resolveConfiguredRegion(_0x251568[_0x1d6dd1(0x160)],_0x251568['regionLocation']),_0xcc858d=resolveEnterpriseRoutingManifest(_0x251568[_0x1d6dd1(0x17d)]?.[_0x1d6dd1(0x14e)]),_0x401273={'region':_0x532f33,'apiDomain':_0xcc858d?_0xcc858d[_0x1d6dd1(0x171)][_0x1d6dd1(0x186)]:optionalString(_0x251568[_0x1d6dd1(0x17d)]?.[_0x1d6dd1(0x186)]),'userDomain':_0xcc858d?_0xcc858d['domains'][_0x1d6dd1(0x146)]:optionalString(_0x251568['raw']?.[_0x1d6dd1(0x146)]),'runtimeDomain':_0xcc858d?_0xcc858d[_0x1d6dd1(0x171)][_0x1d6dd1(0x182)]:optionalString(_0x251568[_0x1d6dd1(0x17d)]?.[_0x1d6dd1(0x182)]),'skillDomain':_0xcc858d?_0xcc858d[_0x1d6dd1(0x171)][_0x1d6dd1(0x165)]:optionalString(_0x251568[_0x1d6dd1(0x17d)]?.[_0x1d6dd1(0x165)])||optionalString(_0x251568['raw']?.[_0x1d6dd1(0x18a)])||optionalString(_0x251568[_0x1d6dd1(0x17d)]?.['agentDomain'])||optionalString(_0x251568['raw']?.[_0x1d6dd1(0x172)]),'kbDomain':_0xcc858d?_0xcc858d[_0x1d6dd1(0x171)][_0x1d6dd1(0x15e)]:optionalString(_0x251568[_0x1d6dd1(0x17d)]?.[_0x1d6dd1(0x15e)])||optionalString(_0x251568[_0x1d6dd1(0x17d)]?.[_0x1d6dd1(0x17f)])||optionalString(_0x251568['raw']?.[_0x1d6dd1(0x172)]),'kbServiceDomain':_0xcc858d?_0xcc858d['domains'][_0x1d6dd1(0x16c)]:optionalString(_0x251568[_0x1d6dd1(0x17d)]?.['kbServiceDomain']),'appDomain':_0xcc858d?_0xcc858d[_0x1d6dd1(0x171)][_0x1d6dd1(0x14c)]:optionalString(_0x251568[_0x1d6dd1(0x17d)]?.[_0x1d6dd1(0x14c)]),'localDomain':_0xcc858d?_0xcc858d[_0x1d6dd1(0x171)][_0x1d6dd1(0x148)]:optionalString(_0x251568[_0x1d6dd1(0x17d)]?.[_0x1d6dd1(0x148)]),'certificateDomain':_0xcc858d?_0xcc858d[_0x1d6dd1(0x171)][_0x1d6dd1(0x189)]:optionalString(_0x251568['raw']?.[_0x1d6dd1(0x189)]),'cdn':_0xcc858d?.[_0x1d6dd1(0x14a)],'allowOfficialKbServiceDefault':!(_0xcc858d!==undefined||[_0x1d6dd1(0x186),_0x1d6dd1(0x146),_0x1d6dd1(0x182),_0x1d6dd1(0x165),'skillHubDomain',_0x1d6dd1(0x15e),_0x1d6dd1(0x16c),'agentDomain',_0x1d6dd1(0x172),_0x1d6dd1(0x14c),_0x1d6dd1(0x148),_0x1d6dd1(0x189)][_0x1d6dd1(0x161)](_0x5af89a=>Object[_0x1d6dd1(0x166)][_0x1d6dd1(0x145)][_0x1d6dd1(0x16d)](_0x251568[_0x1d6dd1(0x17d)]??{},_0x5af89a)))},{initEnv:_0x211c08}=await import(_0x1d6dd1(0x181)),{initDomains:_0x2e5599}=await import('./constant/domain.js');_0x211c08(_0x251568[_0x1d6dd1(0x162)]),_0x2e5599(_0x401273);}export async function initMultiAppEnvironment(_0x32797e){const _0x28deb8=a286_0x2355;await initConfiguredEnvironment({'raw':_0x32797e[_0x28deb8(0x15a)],'configuredRegion':_0x32797e[_0x28deb8(0x154)],'regionLocation':'app\x20profile\x20\x22'+_0x32797e[_0x28deb8(0x188)]+'\x22','targetEnv':_0x32797e[_0x28deb8(0x178)]===_0x28deb8(0x176)?_0x28deb8(0x176):_0x28deb8(0x158)});}export function getConfigAppCode(_0x3cbf1f){const _0x39dc9b=a286_0x2355,_0x2a4821=readRawConfig(_0x3cbf1f);if(_0x2a4821[_0x39dc9b(0x169)]&&typeof _0x2a4821[_0x39dc9b(0x169)]==='object'){const _0x51b20f=_0x2a4821[_0x39dc9b(0x152)];if(_0x51b20f)return _0x2a4821[_0x39dc9b(0x169)][_0x51b20f]?.[_0x39dc9b(0x18b)]?String(_0x2a4821['apps'][_0x51b20f][_0x39dc9b(0x18b)])[_0x39dc9b(0x18d)]():undefined;const _0x587897=Object[_0x39dc9b(0x164)](_0x2a4821['apps']);if(_0x587897[_0x39dc9b(0x17b)]===0x1&&_0x587897[0x0]?.[_0x39dc9b(0x18b)])return String(_0x587897[0x0][_0x39dc9b(0x18b)])[_0x39dc9b(0x18d)]();}const _0x582968=_0x2a4821[_0x39dc9b(0x18b)]||_0x2a4821['app'];if(typeof _0x582968!==_0x39dc9b(0x16e)||_0x582968[_0x39dc9b(0x18d)]()==='')return undefined;return _0x582968[_0x39dc9b(0x18d)]();}const CONNECTION_ROUTING_KEYS=[a286_0xf0e408(0x14e),a286_0xf0e408(0x186),a286_0xf0e408(0x146),a286_0xf0e408(0x182),a286_0xf0e408(0x165),a286_0xf0e408(0x18a),a286_0xf0e408(0x15e),a286_0xf0e408(0x16c),a286_0xf0e408(0x17f),a286_0xf0e408(0x172),a286_0xf0e408(0x14c),a286_0xf0e408(0x148),a286_0xf0e408(0x189)];function withAppProfileRouting(_0xa0c867,_0x5631a8){const _0x48adb2=a286_0xf0e408;if(!_0x5631a8||_0x5631a8[_0x48adb2(0x16c)]===undefined)return _0xa0c867;return{..._0xa0c867,'kbServiceDomain':_0x5631a8['kbServiceDomain']};}function pickConnectionRoutingConfig(_0x47d561,_0xf444fe){const _0x240e75={'region':_0xf444fe};for(const _0x531b72 of CONNECTION_ROUTING_KEYS){if(_0x47d561[_0x531b72]!==undefined)_0x240e75[_0x531b72]=_0x47d561[_0x531b72];}return _0x240e75;}export function getMultiAppConfigs(_0xff8999='project',_0x487697){const _0x3ed03f=a286_0xf0e408,_0x4da131=loadRawConfigLayers(_0x487697);let _0x556029,_0x252069;const _0x21aec8=mergeRawConfigLayers(_0x4da131),_0x370c52=_0x4da131[_0x3ed03f(0x17e)][_0x3ed03f(0x169)]&&typeof _0x4da131[_0x3ed03f(0x17e)]['apps']===_0x3ed03f(0x157)?_0x4da131[_0x3ed03f(0x17e)][_0x3ed03f(0x169)]:{},_0xf05cc3=_0x4da131[_0x3ed03f(0x144)][_0x3ed03f(0x169)]&&typeof _0x4da131[_0x3ed03f(0x144)]['apps']===_0x3ed03f(0x157)?_0x4da131[_0x3ed03f(0x144)][_0x3ed03f(0x169)]:{};_0xff8999==='merged'?(_0x556029={..._0x370c52,..._0xf05cc3},_0x252069=_0x21aec8[_0x3ed03f(0x152)]):(_0x556029=_0x4da131['projectConfig']['apps'],_0x252069=_0x4da131[_0x3ed03f(0x144)][_0x3ed03f(0x152)]);!_0x252069&&_0x556029&&typeof _0x556029===_0x3ed03f(0x157)&&Object['keys'](_0x556029)[_0x3ed03f(0x17b)]===0x1&&(_0x252069=Object[_0x3ed03f(0x17a)](_0x556029)[0x0]);if(!_0x556029||typeof _0x556029!==_0x3ed03f(0x157)||Object[_0x3ed03f(0x17a)](_0x556029)['length']===0x0)return null;return Object[_0x3ed03f(0x16a)](_0x556029)[_0x3ed03f(0x170)](([_0x4de671,_0x5bbdaa])=>{const _0x373c06=_0x3ed03f,_0x3ba234=_0xff8999==='project'||Object['prototype'][_0x373c06(0x145)][_0x373c06(0x16d)](_0xf05cc3,_0x4de671),_0x21213a=withAppProfileRouting(_0x3ba234?_0x21aec8:_0x4da131[_0x373c06(0x17e)],_0x5bbdaa),_0x38e9f5=resolveEffectiveRegion({'appRegion':_0x5bbdaa?.[_0x373c06(0x154)],'projectRegion':_0x3ba234?_0x4da131[_0x373c06(0x144)]['region']:undefined,'globalRegion':_0x4da131[_0x373c06(0x17e)][_0x373c06(0x154)],'mergedRegion':_0x21213a[_0x373c06(0x154)],'appName':_0x4de671});return{'name':_0x4de671,'appcode':_0x5bbdaa?.[_0x373c06(0x18b)]||'','apiGroup':optionalString(_0x5bbdaa?.[_0x373c06(0x185)]),'isDefault':_0x4de671===_0x252069,'region':_0x38e9f5[_0x373c06(0x154)],'regionSource':_0x38e9f5['source'],'env':_0x5bbdaa?.[_0x373c06(0x178)],'apiDir':optionalString(_0x5bbdaa?.[_0x373c06(0x167)])||optionalString(_0x21213a[_0x373c06(0x167)]),'cookie':_0x5bbdaa?.[_0x373c06(0x149)]||undefined,'routingConfig':pickConnectionRoutingConfig(_0x21213a,_0x38e9f5['region'])};})[_0x3ed03f(0x183)](_0x4f3275=>_0x4f3275['appcode']);}function a286_0x245a(){const _0x217303=['globalConfig','agentDomain','1012648CBuRSF','./constant/env.js','runtimeDomain','filter','12738258TKJkMe','apiGroup','apiDomain','1356901SZpcOS','name','certificateDomain','skillHubDomain','appcode','8zzblPV','trim','projectConfig','hasOwnProperty','userDomain','cwd','localDomain','cookie','cdn','./constant/domain.js','appDomain','regionConfiguredValue','routing','config','1086595lzTlBG','app\x20profile\x20\x22','defaultApp','setLogPath','region','argv','7111950PpSuLt','object','production','template_base_url','routingConfig','slice','global','2FznZZw','kbDomain','2795661jujUUK','configuredRegion','some','targetEnv','project\x20Rabetbase\x20configuration','values','skillDomain','prototype','apiDir','replace','apps','entries','9805910KYqewq','kbServiceDomain','call','string','regionSource','map','domains','platformDomain','doctor','setRawCommand','33ACxRLb','daily','currentApp','env','48PjObTi','keys','length','app','raw'];a286_0x245a=function(){return _0x217303;};return a286_0x245a();}export function getTemplateBaseUrl(_0x475e00){const _0x5886d2=a286_0xf0e408,_0x10f8d1=readRawConfig(_0x475e00);if(_0x10f8d1[_0x5886d2(0x159)]&&typeof _0x10f8d1['template_base_url']==='string')return _0x10f8d1[_0x5886d2(0x159)][_0x5886d2(0x168)](/\/$/,'');return'https://g.lovrabet.com/dist/lovrabet-skill';}function buildConfig(_0x4b6451,_0x40b907,_0xe0e273){const _0xf3ce43=a286_0xf0e408,_0x3d7e07=resolveAppConfig({'raw':_0x4b6451,'flags':_0x40b907,'layers':_0xe0e273,'readEnv':env}),_0x28529a=_0x3d7e07[_0xf3ce43(0x177)]?_0x3d7e07[_0xf3ce43(0x169)][_0x3d7e07[_0xf3ce43(0x177)]]:undefined;return{..._0x3d7e07,'raw':withAppProfileRouting(_0x4b6451,_0x28529a)};}export function resolveApiFilePath(_0x34d34e,_0x132401,_0x5d74f1){return resolveApiModelSource(_0x34d34e,_0x132401,_0x5d74f1)['filePath'];}
|
|
1
|
+
const a286_0x11edda=a286_0x5675;(function(_0x46eb98,_0x5f2630){const _0x1e9699=a286_0x5675,_0x3e28bb=_0x46eb98();while(!![]){try{const _0x5acf39=-parseInt(_0x1e9699(0x95))/0x1*(-parseInt(_0x1e9699(0x9b))/0x2)+parseInt(_0x1e9699(0xc6))/0x3+-parseInt(_0x1e9699(0xc5))/0x4+parseInt(_0x1e9699(0xce))/0x5+parseInt(_0x1e9699(0xb8))/0x6*(-parseInt(_0x1e9699(0xb7))/0x7)+-parseInt(_0x1e9699(0xd1))/0x8*(-parseInt(_0x1e9699(0x9d))/0x9)+-parseInt(_0x1e9699(0xb2))/0xa;if(_0x5acf39===_0x5f2630)break;else _0x3e28bb['push'](_0x3e28bb['shift']());}catch(_0x38b688){_0x3e28bb['push'](_0x3e28bb['shift']());}}}(a286_0x16d5,0x5631b));import{CLI_BIN_NAME}from'./constant/cli.js';import{buildAuth}from'./context/auth-resolver.js';import{resolveAppConfig}from'./context/app-resolver.js';import{CONFIG_NAMES,NEW_CONFIG_NAME,findProjectRootDirectory,getGlobalConfigPath,getProjectConfigPath,inspectCliConfigJsonFile,isInProject,loadRawConfigLayers,mergeRawConfigLayers,readConfigFile,readRawConfig,readRawConfigWithLayers,resolveConfigPath,resolveWriteConfigPath,writeConfigFile}from'./context/config-loader.js';import{resolveConfiguredRegion,resolveEffectiveRegion}from'./config/region-config.js';function a286_0x16d5(){const _0x395d91=['kbDomain','https://g.lovrabet.com/dist/lovrabet-skill','./constant/domain.js','config','setRawCommand','182432RHoeJl','575823LLujCi','production','localDomain','apps','merged','defaultApp','global','currentApp','3061235ClLIQH','env','platformDomain','4968EvWYZD','routing','template_base_url','kbServiceDomain','appDomain','Rabetbase\x20configuration','join','name','filter','replace','runtimeDomain','length','hasOwnProperty','agentDomain','setLogPath','1uwLUxX','region','doctor','globalConfig','project\x20Rabetbase\x20configuration','app','178302ilZXtn','./utils/is-non-interactive.js','7524LxZCNl','project','projectConfig','skillHubDomain','string','app\x20profile\x20\x22','configuredRegion','keys','daily','skillDomain','cookie','apiGroup','userDomain','routingConfig','source','raw','filePath','slice','prototype','object','domains','3932720WMRnoP','values','regionSource','cwd','apiDomain','14PnSVDQ','1861692csCAtR','call','trim','certificateDomain','appcode','cdn','map','regionConfiguredValue'];a286_0x16d5=function(){return _0x395d91;};return a286_0x16d5();}import{resolveEnterpriseRoutingManifest}from'./config/domain-config.js';import{logger}from'./utils/logger.js';import{resolveApiModelSource}from'./api/model-source.js';export{CONFIG_NAMES,NEW_CONFIG_NAME,findProjectRootDirectory,getGlobalConfigPath,getProjectConfigPath,inspectCliConfigJsonFile,isInProject,loadRawConfigLayers,mergeRawConfigLayers,readConfigFile,readRawConfig,readRawConfigWithLayers,resolveConfigPath,resolveWriteConfigPath,writeConfigFile};function env(_0x1e59ac){return process.env[`RABETBASE_${_0x1e59ac}`]||process.env[`LOVRABET_${_0x1e59ac}`]||undefined;}function optionalString(_0x3f729b){const _0x1476cd=a286_0x5675;return typeof _0x3f729b===_0x1476cd(0xa1)&&_0x3f729b[_0x1476cd(0xba)]()?_0x3f729b[_0x1476cd(0xba)]():undefined;}function a286_0x5675(_0x1f223a,_0x580925){_0x1f223a=_0x1f223a-0x8a;const _0x16d559=a286_0x16d5();let _0x5675d2=_0x16d559[_0x1f223a];return _0x5675d2;}export function isRoutingRecoveryService(_0x14fd0c){const _0x1d22e7=a286_0x5675;return _0x14fd0c===_0x1d22e7(0xc3)||_0x14fd0c===_0x1d22e7(0x97);}export async function createContext(_0x3c4a52){const _0x548783=a286_0x5675,{config:_0x364d18,layers:_0x4a2a50}=readRawConfigWithLayers(),_0x40d356=buildConfig(_0x364d18,_0x3c4a52,_0x4a2a50);await initGlobalEnvironment(_0x40d356);const {getUserDomain:_0x26434b,getApiDomain:_0x4cc8a4}=await import(_0x548783(0xc2)),_0x2c7b80={'apiDomain':_0x4cc8a4(),'userDomain':_0x26434b()},_0x1fde8b=await buildAuth(_0x40d356);logger[_0x548783(0x94)](process[_0x548783(0xb5)]());const _0x5f31b7=(CLI_BIN_NAME+'\x20'+process['argv'][_0x548783(0xae)](0x2)[_0x548783(0x8c)]('\x20'))[_0x548783(0xba)]();logger[_0x548783(0xc4)](_0x5f31b7);const {isNonInteractive:_0x1723db}=await import(_0x548783(0x9c)),_0x411930=_0x1723db(_0x3c4a52);return{'config':_0x40d356,'auth':_0x1fde8b,'logger':logger,'env':_0x2c7b80,'nonInteractive':_0x411930};}export function buildConfigFromFlags(_0x3581b4){const {config:_0x419463,layers:_0x5d033c}=readRawConfigWithLayers();return buildConfig(_0x419463,_0x3581b4,_0x5d033c);}export async function initGlobalEnvironment(_0x2f8bda){const _0x4fc19c=a286_0x5675,_0x40c6ea=_0x2f8bda[_0x4fc19c(0xb4)]===_0x4fc19c(0x9a)&&_0x2f8bda['currentApp']?_0x4fc19c(0xa2)+_0x2f8bda[_0x4fc19c(0xcd)]+'\x22':_0x2f8bda[_0x4fc19c(0xb4)]===_0x4fc19c(0x9e)?_0x4fc19c(0x99):_0x2f8bda['regionSource']===_0x4fc19c(0xcc)?'global\x20Rabetbase\x20configuration':_0x4fc19c(0x8b);await initConfiguredEnvironment({'raw':_0x2f8bda[_0x4fc19c(0xac)],'configuredRegion':_0x2f8bda[_0x4fc19c(0xbf)]??_0x2f8bda[_0x4fc19c(0xac)]?.[_0x4fc19c(0x96)]??_0x2f8bda[_0x4fc19c(0x96)],'regionLocation':_0x40c6ea,'targetEnv':_0x2f8bda[_0x4fc19c(0xcf)]});}async function initConfiguredEnvironment(_0x31655c){const _0x20215e=a286_0x5675,_0x56eda5=resolveConfiguredRegion(_0x31655c[_0x20215e(0xa3)],_0x31655c['regionLocation']),_0xc5fbe7=resolveEnterpriseRoutingManifest(_0x31655c[_0x20215e(0xac)]?.[_0x20215e(0xd2)]),_0x302a33={'region':_0x56eda5,'apiDomain':_0xc5fbe7?_0xc5fbe7[_0x20215e(0xb1)][_0x20215e(0xb6)]:optionalString(_0x31655c[_0x20215e(0xac)]?.[_0x20215e(0xb6)]),'userDomain':_0xc5fbe7?_0xc5fbe7[_0x20215e(0xb1)]['userDomain']:optionalString(_0x31655c[_0x20215e(0xac)]?.[_0x20215e(0xa9)]),'runtimeDomain':_0xc5fbe7?_0xc5fbe7['domains']['runtimeDomain']:optionalString(_0x31655c['raw']?.['runtimeDomain']),'skillDomain':_0xc5fbe7?_0xc5fbe7['domains'][_0x20215e(0xa6)]:optionalString(_0x31655c[_0x20215e(0xac)]?.[_0x20215e(0xa6)])||optionalString(_0x31655c['raw']?.[_0x20215e(0xa0)])||optionalString(_0x31655c['raw']?.[_0x20215e(0x93)])||optionalString(_0x31655c[_0x20215e(0xac)]?.['platformDomain']),'kbDomain':_0xc5fbe7?_0xc5fbe7[_0x20215e(0xb1)]['kbDomain']:optionalString(_0x31655c[_0x20215e(0xac)]?.['kbDomain'])||optionalString(_0x31655c[_0x20215e(0xac)]?.[_0x20215e(0x93)])||optionalString(_0x31655c['raw']?.[_0x20215e(0xd0)]),'kbServiceDomain':_0xc5fbe7?_0xc5fbe7['domains']['kbServiceDomain']:optionalString(_0x31655c[_0x20215e(0xac)]?.[_0x20215e(0xd4)]),'appDomain':_0xc5fbe7?_0xc5fbe7[_0x20215e(0xb1)][_0x20215e(0x8a)]:optionalString(_0x31655c[_0x20215e(0xac)]?.[_0x20215e(0x8a)]),'localDomain':_0xc5fbe7?_0xc5fbe7[_0x20215e(0xb1)][_0x20215e(0xc8)]:optionalString(_0x31655c[_0x20215e(0xac)]?.[_0x20215e(0xc8)]),'certificateDomain':_0xc5fbe7?_0xc5fbe7['domains']['certificateDomain']:optionalString(_0x31655c[_0x20215e(0xac)]?.[_0x20215e(0xbb)]),'cdn':_0xc5fbe7?.[_0x20215e(0xbd)],'allowOfficialKbServiceDefault':!(_0xc5fbe7!==undefined||['apiDomain',_0x20215e(0xa9),_0x20215e(0x90),_0x20215e(0xa6),'skillHubDomain',_0x20215e(0xc0),_0x20215e(0xd4),'agentDomain',_0x20215e(0xd0),'appDomain',_0x20215e(0xc8),_0x20215e(0xbb)]['some'](_0x21e46a=>Object[_0x20215e(0xaf)]['hasOwnProperty'][_0x20215e(0xb9)](_0x31655c[_0x20215e(0xac)]??{},_0x21e46a)))},{initEnv:_0x3baeb3}=await import('./constant/env.js'),{initDomains:_0xce917c}=await import(_0x20215e(0xc2));_0x3baeb3(_0x31655c['targetEnv']),_0xce917c(_0x302a33);}export async function initMultiAppEnvironment(_0xb00e2c){const _0x3a86ad=a286_0x5675;await initConfiguredEnvironment({'raw':_0xb00e2c[_0x3a86ad(0xaa)],'configuredRegion':_0xb00e2c[_0x3a86ad(0x96)],'regionLocation':'app\x20profile\x20\x22'+_0xb00e2c[_0x3a86ad(0x8d)]+'\x22','targetEnv':_0xb00e2c[_0x3a86ad(0xcf)]===_0x3a86ad(0xa5)?'daily':_0x3a86ad(0xc7)});}export function getConfigAppCode(_0x285e4a){const _0x10a6ca=a286_0x5675,_0x206efb=readRawConfig(_0x285e4a);if(_0x206efb[_0x10a6ca(0xc9)]&&typeof _0x206efb[_0x10a6ca(0xc9)]===_0x10a6ca(0xb0)){const _0x37e34b=_0x206efb[_0x10a6ca(0xcb)];if(_0x37e34b)return _0x206efb['apps'][_0x37e34b]?.['appcode']?String(_0x206efb[_0x10a6ca(0xc9)][_0x37e34b][_0x10a6ca(0xbc)])[_0x10a6ca(0xba)]():undefined;const _0x2b4a8d=Object[_0x10a6ca(0xb3)](_0x206efb[_0x10a6ca(0xc9)]);if(_0x2b4a8d['length']===0x1&&_0x2b4a8d[0x0]?.[_0x10a6ca(0xbc)])return String(_0x2b4a8d[0x0]['appcode'])[_0x10a6ca(0xba)]();}const _0x546a14=_0x206efb[_0x10a6ca(0xbc)]||_0x206efb[_0x10a6ca(0x9a)];if(typeof _0x546a14!==_0x10a6ca(0xa1)||_0x546a14[_0x10a6ca(0xba)]()==='')return undefined;return _0x546a14[_0x10a6ca(0xba)]();}const CONNECTION_ROUTING_KEYS=[a286_0x11edda(0xd2),a286_0x11edda(0xb6),a286_0x11edda(0xa9),a286_0x11edda(0x90),a286_0x11edda(0xa6),a286_0x11edda(0xa0),a286_0x11edda(0xc0),'kbServiceDomain',a286_0x11edda(0x93),'platformDomain','appDomain',a286_0x11edda(0xc8),'certificateDomain'];function withAppProfileRouting(_0x54860b,_0x2b907c){const _0x2cc621=a286_0x11edda;if(!_0x2b907c||_0x2b907c[_0x2cc621(0xd4)]===undefined)return _0x54860b;return{..._0x54860b,'kbServiceDomain':_0x2b907c['kbServiceDomain']};}function pickConnectionRoutingConfig(_0x1929f2,_0x1d3f3f){const _0x170cdf={'region':_0x1d3f3f};for(const _0x2bb919 of CONNECTION_ROUTING_KEYS){if(_0x1929f2[_0x2bb919]!==undefined)_0x170cdf[_0x2bb919]=_0x1929f2[_0x2bb919];}return _0x170cdf;}export function getMultiAppConfigs(_0x27518e=a286_0x11edda(0x9e),_0x494551){const _0x1d1234=a286_0x11edda,_0x5b0dec=loadRawConfigLayers(_0x494551);let _0x22c1d3,_0x23a4f6;const _0x382c11=mergeRawConfigLayers(_0x5b0dec),_0xce206d=_0x5b0dec['globalConfig'][_0x1d1234(0xc9)]&&typeof _0x5b0dec['globalConfig'][_0x1d1234(0xc9)]===_0x1d1234(0xb0)?_0x5b0dec[_0x1d1234(0x98)][_0x1d1234(0xc9)]:{},_0x1ac85b=_0x5b0dec[_0x1d1234(0x9f)][_0x1d1234(0xc9)]&&typeof _0x5b0dec[_0x1d1234(0x9f)][_0x1d1234(0xc9)]===_0x1d1234(0xb0)?_0x5b0dec[_0x1d1234(0x9f)][_0x1d1234(0xc9)]:{};_0x27518e===_0x1d1234(0xca)?(_0x22c1d3={..._0xce206d,..._0x1ac85b},_0x23a4f6=_0x382c11[_0x1d1234(0xcb)]):(_0x22c1d3=_0x5b0dec[_0x1d1234(0x9f)][_0x1d1234(0xc9)],_0x23a4f6=_0x5b0dec[_0x1d1234(0x9f)][_0x1d1234(0xcb)]);!_0x23a4f6&&_0x22c1d3&&typeof _0x22c1d3==='object'&&Object[_0x1d1234(0xa4)](_0x22c1d3)[_0x1d1234(0x91)]===0x1&&(_0x23a4f6=Object[_0x1d1234(0xa4)](_0x22c1d3)[0x0]);if(!_0x22c1d3||typeof _0x22c1d3!==_0x1d1234(0xb0)||Object[_0x1d1234(0xa4)](_0x22c1d3)[_0x1d1234(0x91)]===0x0)return null;return Object['entries'](_0x22c1d3)[_0x1d1234(0xbe)](([_0x4ce806,_0x31ac50])=>{const _0x28a4f5=_0x1d1234,_0x524890=_0x27518e===_0x28a4f5(0x9e)||Object[_0x28a4f5(0xaf)][_0x28a4f5(0x92)][_0x28a4f5(0xb9)](_0x1ac85b,_0x4ce806),_0x4b3e8a=withAppProfileRouting(_0x524890?_0x382c11:_0x5b0dec[_0x28a4f5(0x98)],_0x31ac50),_0xcb75e9=resolveEffectiveRegion({'appRegion':_0x31ac50?.[_0x28a4f5(0x96)],'projectRegion':_0x524890?_0x5b0dec[_0x28a4f5(0x9f)]['region']:undefined,'globalRegion':_0x5b0dec[_0x28a4f5(0x98)][_0x28a4f5(0x96)],'mergedRegion':_0x4b3e8a[_0x28a4f5(0x96)],'appName':_0x4ce806});return{'name':_0x4ce806,'appcode':_0x31ac50?.[_0x28a4f5(0xbc)]||'','apiGroup':optionalString(_0x31ac50?.[_0x28a4f5(0xa8)]),'isDefault':_0x4ce806===_0x23a4f6,'region':_0xcb75e9['region'],'regionSource':_0xcb75e9[_0x28a4f5(0xab)],'env':_0x31ac50?.['env'],'apiDir':optionalString(_0x31ac50?.['apiDir'])||optionalString(_0x4b3e8a['apiDir']),'cookie':_0x31ac50?.[_0x28a4f5(0xa7)]||undefined,'routingConfig':pickConnectionRoutingConfig(_0x4b3e8a,_0xcb75e9[_0x28a4f5(0x96)])};})[_0x1d1234(0x8e)](_0x590153=>_0x590153[_0x1d1234(0xbc)]);}export function getTemplateBaseUrl(_0x233987){const _0x5c6dfd=a286_0x11edda,_0x4eb1e7=readRawConfig(_0x233987);if(_0x4eb1e7[_0x5c6dfd(0xd3)]&&typeof _0x4eb1e7['template_base_url']===_0x5c6dfd(0xa1))return _0x4eb1e7[_0x5c6dfd(0xd3)][_0x5c6dfd(0x8f)](/\/$/,'');return _0x5c6dfd(0xc1);}function buildConfig(_0x14a3c2,_0x3cdd1e,_0x7e37c){const _0x26e23b=a286_0x11edda,_0x503d53=resolveAppConfig({'raw':_0x14a3c2,'flags':_0x3cdd1e,'layers':_0x7e37c,'readEnv':env}),_0x4bfd16=_0x503d53[_0x26e23b(0xcd)]?_0x503d53[_0x26e23b(0xc9)][_0x503d53[_0x26e23b(0xcd)]]:undefined;return{..._0x503d53,'raw':withAppProfileRouting(_0x14a3c2,_0x4bfd16)};}export function resolveApiFilePath(_0xaa13f2,_0x9a333e,_0x21c74a){const _0x47c73f=a286_0x11edda;return resolveApiModelSource(_0xaa13f2,_0x9a333e,_0x21c74a)[_0x47c73f(0xad)];}
|