@lovrabet/rabetbase-cli 2.5.7-beta.1 → 2.5.7
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
package/lib/config/schema.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a272_0x594339=a272_0x3f3f;(function(_0x2de3be,_0xb13d7e){const _0x3fd8ff=a272_0x3f3f,_0x1e185a=_0x2de3be();while(!![]){try{const _0x1d5068=parseInt(_0x3fd8ff(0x16d))/0x1*(parseInt(_0x3fd8ff(0x171))/0x2)+parseInt(_0x3fd8ff(0x13e))/0x3+parseInt(_0x3fd8ff(0x164))/0x4+-parseInt(_0x3fd8ff(0x170))/0x5*(parseInt(_0x3fd8ff(0x15f))/0x6)+parseInt(_0x3fd8ff(0x155))/0x7+-parseInt(_0x3fd8ff(0x167))/0x8+-parseInt(_0x3fd8ff(0x13b))/0x9;if(_0x1d5068===_0xb13d7e)break;else _0x1e185a['push'](_0x1e185a['shift']());}catch(_0x10c3be){_0x1e185a['push'](_0x1e185a['shift']());}}}(a272_0x7b22,0x8651b));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';function a272_0x3f3f(_0x5e907f,_0x1174bd){_0x5e907f=_0x5e907f-0x139;const _0x7b2269=a272_0x7b22();let _0x3f3f94=_0x7b2269[_0x5e907f];return _0x3f3f94;}export{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';export const PROJECT_CREATE_INHERITABLE_KEYS=[a272_0x594339(0x15c),a272_0x594339(0x159),'locale',a272_0x594339(0x168),a272_0x594339(0x16f),a272_0x594339(0x13d),a272_0x594339(0x13a),a272_0x594339(0x142),a272_0x594339(0x152),'runtimeDomain',a272_0x594339(0x165),a272_0x594339(0x169),a272_0x594339(0x145),a272_0x594339(0x16e),a272_0x594339(0x15e),a272_0x594339(0x162)];export const TOP_LEVEL_CONFIG_KEYS=new Set([a272_0x594339(0x158),a272_0x594339(0x149),a272_0x594339(0x16b),a272_0x594339(0x168),a272_0x594339(0x15c),'accessKey',a272_0x594339(0x146),a272_0x594339(0x13d),a272_0x594339(0x142),a272_0x594339(0x152),a272_0x594339(0x163),a272_0x594339(0x165),a272_0x594339(0x169),a272_0x594339(0x145),a272_0x594339(0x16e),a272_0x594339(0x15e),a272_0x594339(0x162)]);export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES],'region':[...ENABLED_LOVRABET_REGION_VALUES]};export function formatConfigKeyList(_0x5eef8e){return[..._0x5eef8e]['join'](',\x20');}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function isTopLevelConfigKey(_0x504d9e){return TOP_LEVEL_CONFIG_KEYS['has'](_0x504d9e);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x281c8e=a272_0x594339;return _0x281c8e(0x16c)+getTopLevelConfigKeySummary()+')';}export const APP_PROFILE_FLAG_KEY_MAP={'apiGroup':a272_0x594339(0x139),'region':a272_0x594339(0x13d),'env':a272_0x594339(0x149),'apiDir':a272_0x594339(0x146),'cookie':a272_0x594339(0x15c),'accessKey':a272_0x594339(0x159),'defaultFormat':a272_0x594339(0x168),'pageSize':a272_0x594339(0x141),'riskLevel':a272_0x594339(0x16f),'locale':a272_0x594339(0x16b)};export function getAppProfileFlagDefs(){const _0x2a4ab8=a272_0x594339;return[{'name':'apiGroup','type':_0x2a4ab8(0x148),'description':_0x2a4ab8(0x14a)},{'name':'region','type':'string','description':'Country/region\x20for\x20this\x20app\x20profile','enum':[...ENABLED_LOVRABET_REGION_VALUES]},{'name':_0x2a4ab8(0x149),'type':_0x2a4ab8(0x148),'description':'Target\x20environment','enum':[...RABETBASE_ENV_VALUES]},{'name':_0x2a4ab8(0x146),'type':_0x2a4ab8(0x148),'description':'API\x20directory\x20path'},{'name':_0x2a4ab8(0x15c),'type':'string','description':_0x2a4ab8(0x166),'hidden':!![]},{'name':'accessKey','type':_0x2a4ab8(0x148),'description':_0x2a4ab8(0x154),'hidden':!![]},{'name':_0x2a4ab8(0x147),'type':_0x2a4ab8(0x148),'description':_0x2a4ab8(0x15b),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':_0x2a4ab8(0x141),'type':_0x2a4ab8(0x150),'description':_0x2a4ab8(0x13f)},{'name':_0x2a4ab8(0x16f),'type':_0x2a4ab8(0x148),'description':_0x2a4ab8(0x140),'enum':[...RISK_LEVEL_VALUES]},{'name':_0x2a4ab8(0x16b),'type':_0x2a4ab8(0x148),'description':_0x2a4ab8(0x153)}];}export function collectAppProfileOverrides(_0x2c9ff9){const _0x7a1ba1=a272_0x594339,_0x1716bc={};for(const [_0x4817c6,_0x2eaa79]of Object[_0x7a1ba1(0x156)](APP_PROFILE_FLAG_KEY_MAP)){const _0x47a553=_0x2c9ff9(_0x4817c6);if(!_0x47a553)continue;_0x1716bc[_0x2eaa79]=_0x2eaa79==='pageSize'?Number(_0x47a553):_0x47a553;}return _0x1716bc;}export function buildAppProfileListFields(_0x1ae33e){const _0x474f63=a272_0x594339;return{'apiGroup':_0x1ae33e[_0x474f63(0x139)]??null,'region':_0x1ae33e['region']??null,'env':_0x1ae33e['env']??null,'apiDir':_0x1ae33e[_0x474f63(0x146)]??null,'hasCookie':!!_0x1ae33e[_0x474f63(0x15c)],'hasAccessKey':!!_0x1ae33e[_0x474f63(0x159)],'format':_0x1ae33e['format']??null,'pageSize':_0x1ae33e['pageSize']??null,'riskLevel':_0x1ae33e['riskLevel']??null,'locale':_0x1ae33e['locale']??null};}export function buildAppDoctorFields(_0x3c9fdd,_0x15c58f){const _0x293d69=a272_0x594339;return{'region':{'value':_0x3c9fdd[_0x293d69(0x13d)]||_0x15c58f[_0x293d69(0x13d)],'source':_0x3c9fdd[_0x293d69(0x13d)]?_0x293d69(0x143):_0x293d69(0x13c)},'env':{'value':_0x3c9fdd[_0x293d69(0x149)]||_0x15c58f[_0x293d69(0x149)],'source':_0x3c9fdd[_0x293d69(0x149)]?_0x293d69(0x143):_0x293d69(0x13c)},'apiDir':{'value':_0x3c9fdd[_0x293d69(0x146)]||_0x15c58f[_0x293d69(0x146)],'source':_0x3c9fdd[_0x293d69(0x146)]?_0x293d69(0x143):'inherit'},'cookie':{'value':_0x3c9fdd[_0x293d69(0x15c)]||_0x15c58f['cookie'],'source':_0x3c9fdd[_0x293d69(0x15c)]?_0x293d69(0x143):_0x293d69(0x13c)},'accessKey':{'value':_0x3c9fdd[_0x293d69(0x159)]||_0x15c58f[_0x293d69(0x159)],'source':_0x3c9fdd['accessKey']?_0x293d69(0x143):_0x293d69(0x13c)}};}export function buildCanonicalAppConfig(_0x129d54,_0x37df1b){const _0x54e000=a272_0x594339,_0x5d9198=_0x129d54[_0x54e000(0x157)](_0x8a4dc4=>String(_0x8a4dc4||'')[_0x54e000(0x14d)]())[_0x54e000(0x14f)](Boolean);if(_0x5d9198['length']===0x0)return{};const _0x5db888={};for(const _0x2a8aff of _0x5d9198){_0x5db888[_0x2a8aff]=_0x37df1b&&!isProduction(_0x37df1b)?{'appcode':_0x2a8aff,'env':_0x37df1b}:{'appcode':_0x2a8aff};}return _0x5d9198[_0x54e000(0x161)]>0x1?{'apps':_0x5db888,'defaultApp':_0x5d9198[0x0]}:{'apps':_0x5db888};}export function normalizeStoredDefaultApp(_0x37aa0e,_0x481deb){const _0x188de9=a272_0x594339,_0x3875af=_0x37aa0e[_0x188de9(0x151)]&&typeof _0x37aa0e[_0x188de9(0x151)]===_0x188de9(0x14e)?_0x37aa0e['apps']:{},_0x8eff11=Object[_0x188de9(0x14b)](_0x3875af);if(_0x8eff11[_0x188de9(0x161)]<=0x1)return delete _0x37aa0e['defaultApp'],undefined;const _0x1c8eef=typeof _0x37aa0e['defaultApp']===_0x188de9(0x148)&&_0x3875af[_0x37aa0e[_0x188de9(0x15a)]]?_0x37aa0e[_0x188de9(0x15a)]:undefined,_0x3e0baf=_0x481deb&&_0x3875af[_0x481deb]?_0x481deb:_0x1c8eef;if(_0x3e0baf)return _0x37aa0e[_0x188de9(0x15a)]=_0x3e0baf,_0x3e0baf;return delete _0x37aa0e['defaultApp'],undefined;}export function buildCanonicalProjectConfig(_0x3c9c38,_0x3080c2){const _0x3a1caf=a272_0x594339,{appCodes:appCodes=[],env:_0x3108b6,metadata:_0x179490}=_0x3080c2,_0x4d6590={..._0x3c9c38,..._0x179490||{}};delete _0x4d6590[_0x3a1caf(0x158)],delete _0x4d6590[_0x3a1caf(0x143)];const _0x5d7317=_0x3108b6||(typeof _0x4d6590[_0x3a1caf(0x149)]===_0x3a1caf(0x148)?_0x4d6590['env']:'')||DEFAULT_CONFIG_VALUES[_0x3a1caf(0x149)];if(isProduction(_0x5d7317))delete _0x4d6590['env'];else _0x4d6590[_0x3a1caf(0x149)]=_0x5d7317;const _0x100139=buildCanonicalAppConfig(appCodes,_0x5d7317);if(Object[_0x3a1caf(0x14b)](_0x100139)[_0x3a1caf(0x161)]>0x0){_0x4d6590[_0x3a1caf(0x151)]=_0x100139[_0x3a1caf(0x151)];if(_0x100139['defaultApp'])_0x4d6590['defaultApp']=_0x100139[_0x3a1caf(0x15a)];else delete _0x4d6590[_0x3a1caf(0x15a)];}return normalizeConfigForWrite(_0x4d6590);}function isRecord(_0x44a631){const _0x3f2c07=a272_0x594339;return!!_0x44a631&&typeof _0x44a631===_0x3f2c07(0x14e)&&!Array[_0x3f2c07(0x160)](_0x44a631);}export function normalizeConfigForWrite(_0x443d89){const _0x3b1bf6=a272_0x594339,_0x52a373={..._0x443d89},_0x27c4ef=isRecord(_0x443d89[_0x3b1bf6(0x151)])?_0x443d89[_0x3b1bf6(0x151)]:undefined,_0x12202a=_0x27c4ef?Object['fromEntries'](Object[_0x3b1bf6(0x156)](_0x27c4ef)[_0x3b1bf6(0x157)](([_0x240895,_0x1bce7d])=>[_0x240895,isRecord(_0x1bce7d)?{..._0x1bce7d}:_0x1bce7d])):undefined;if(_0x12202a){const _0x44a025=typeof _0x52a373[_0x3b1bf6(0x149)]===_0x3b1bf6(0x148)?_0x52a373['env']:undefined,_0x323cfe=Object[_0x3b1bf6(0x15d)](_0x12202a)[_0x3b1bf6(0x14c)](_0x5c7b41=>isRecord(_0x5c7b41)&&typeof _0x5c7b41['env']===_0x3b1bf6(0x148)&&isProduction(_0x5c7b41['env']));if(_0x44a025&&isDaily(_0x44a025)&&_0x323cfe){for(const _0x344eb9 of Object['values'](_0x12202a)){if(!isRecord(_0x344eb9))continue;if(_0x344eb9[_0x3b1bf6(0x149)]===undefined)_0x344eb9['env']=_0x44a025;}delete _0x52a373[_0x3b1bf6(0x149)];}for(const _0x324e8d of Object[_0x3b1bf6(0x15d)](_0x12202a)){isRecord(_0x324e8d)&&typeof _0x324e8d[_0x3b1bf6(0x149)]==='string'&&isProduction(_0x324e8d[_0x3b1bf6(0x149)])&&delete _0x324e8d['env'];}_0x52a373[_0x3b1bf6(0x151)]=_0x12202a;}return typeof _0x52a373[_0x3b1bf6(0x149)]==='string'&&isProduction(_0x52a373[_0x3b1bf6(0x149)])&&delete _0x52a373['env'],_0x52a373;}function a272_0x7b22(){const _0x121222=['Config\x20key\x20(','817518PebHHG','appDomain','riskLevel','20LzVCxC','2iGpzPj','apiGroup','routing','21986838sxpOGk','inherit','region','2547591JjncZt','Default\x20page\x20size','Risk\x20level','pageSize','userDomain','app','en-US','kbServiceDomain','apiDir','defaultFormat','string','env','Join\x20key\x20for\x20app\x20profiles\x20that\x20share\x20one\x20generated\x20API\x20model\x20registry','keys','some','trim','object','filter','number','apps','apiDomain','App\x20locale\x20(not\x20CLI\x20language;\x20reserved\x20for\x20later\x20app\x20use)','Access\x20key','7044695nHdthR','entries','map','appcode','accessKey','defaultApp','Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','cookie','values','localDomain','28812lkFvXL','isArray','length','certificateDomain','runtimeDomain','4182568aEUaBE','skillDomain','Auth\x20cookie','5651048tBvuXq','format','kbDomain','zh-CN','locale'];a272_0x7b22=function(){return _0x121222;};return a272_0x7b22();}const LOCALE_MAP={'zh':a272_0x594339(0x16a),'zh-cn':a272_0x594339(0x16a),'zh_cn':a272_0x594339(0x16a),'en':'en-US','en-us':a272_0x594339(0x144),'en_us':a272_0x594339(0x144)};export function normalizeLocale(_0x59e256){if(!_0x59e256)return null;return LOCALE_MAP[_0x59e256['toLowerCase']()]??null;}
|
|
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;}
|
package/lib/constant/cdn.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a273_0x4b5784=a273_0x3b19;(function(_0x4917e4,_0x4f577a){const _0x56ab16=a273_0x3b19,_0x4f9f08=_0x4917e4();while(!![]){try{const _0x35b90e=-parseInt(_0x56ab16(0x1a2))/0x1*(-parseInt(_0x56ab16(0x1a4))/0x2)+-parseInt(_0x56ab16(0x19a))/0x3*(parseInt(_0x56ab16(0x199))/0x4)+-parseInt(_0x56ab16(0x19d))/0x5+parseInt(_0x56ab16(0x1a3))/0x6+parseInt(_0x56ab16(0x1a1))/0x7*(parseInt(_0x56ab16(0x1a7))/0x8)+parseInt(_0x56ab16(0x1a5))/0x9+parseInt(_0x56ab16(0x1a6))/0xa;if(_0x35b90e===_0x4f577a)break;else _0x4f9f08['push'](_0x4f9f08['shift']());}catch(_0xeba669){_0x4f9f08['push'](_0x4f9f08['shift']());}}}(a273_0x2dd7,0xa97eb));import{getActiveCdn}from'../constant/domain.js';const RABETBASE_CDN_PROJECT=a273_0x4b5784(0x19b),RABETBASE_CDN_CONFIG_ORIGIN='https://g.lovrabet.com',CDN_CONFIG_PATH=a273_0x4b5784(0x19f),PROJECT_TEMPLATE_ASSET_PATH=a273_0x4b5784(0x1a0),PROJECT_TEMPLATE_ARCHIVE_NAMES=Object['freeze']({'release':a273_0x4b5784(0x19c),'beta':'sub-app-react-demo-beta.zip'});export const RABETBASE_CDN_PROJECT_PATH='/dist/'+RABETBASE_CDN_PROJECT;function getRabetbaseCdnBaseUrl(){const _0xa96b59=a273_0x4b5784;return''+getActiveCdn()[_0xa96b59(0x19e)]+RABETBASE_CDN_PROJECT_PATH;}export function getCliVersionPolicyUrl(){return''+RABETBASE_CDN_CONFIG_ORIGIN+RABETBASE_CDN_PROJECT_PATH+'/'+CDN_CONFIG_PATH;}function a273_0x2dd7(){const _0x8df9be=['lovrabet','config/index.json','templates/projects','3524185sykAvg','16hJOCxz','4360536xJnmbl','31126alrMtN','333801ObwVMO','1453410HLrVse','16DzbIrO','16uEtJAq','873189bUDgDK','rabetbase-cli','sub-app-react-demo.zip','1533005ibLGLN'];a273_0x2dd7=function(){return _0x8df9be;};return a273_0x2dd7();}export function getProjectTemplateAssetBaseUrl(){return getRabetbaseCdnBaseUrl()+'/'+PROJECT_TEMPLATE_ASSET_PATH;}function a273_0x3b19(_0x580a78,_0x36ffa9){_0x580a78=_0x580a78-0x199;const _0x2dd7e9=a273_0x2dd7();let _0x3b19b2=_0x2dd7e9[_0x580a78];return _0x3b19b2;}export function getProjectTemplateLegacyAssetBaseUrl(){return''+RABETBASE_CDN_CONFIG_ORIGIN+RABETBASE_CDN_PROJECT_PATH+'/'+PROJECT_TEMPLATE_ASSET_PATH;}export function getProjectTemplateRelativeUrl(_0x5dacbc,_0xc02131){const _0x39ad2=_0xc02131?'sub-app-react-demo-'+_0xc02131+'.zip':PROJECT_TEMPLATE_ARCHIVE_NAMES[_0x5dacbc];return RABETBASE_CDN_PROJECT_PATH+'/'+PROJECT_TEMPLATE_ASSET_PATH+'/'+_0x39ad2;}
|
package/lib/constant/cli.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a274_0x1f295e=a274_0x1c3b;(function(_0x165fd4,_0x2c53cc){const _0x2bbee9=a274_0x1c3b,_0x395d1e=_0x165fd4();while(!![]){try{const _0x272f3d=-parseInt(_0x2bbee9(0x1a1))/0x1*(parseInt(_0x2bbee9(0x1b6))/0x2)+-parseInt(_0x2bbee9(0x19b))/0x3*(parseInt(_0x2bbee9(0x20d))/0x4)+parseInt(_0x2bbee9(0x1a5))/0x5+-parseInt(_0x2bbee9(0x21c))/0x6+parseInt(_0x2bbee9(0x1f8))/0x7*(parseInt(_0x2bbee9(0x20e))/0x8)+-parseInt(_0x2bbee9(0x1a6))/0x9+-parseInt(_0x2bbee9(0x209))/0xa*(-parseInt(_0x2bbee9(0x1e7))/0xb);if(_0x272f3d===_0x2c53cc)break;else _0x395d1e['push'](_0x395d1e['shift']());}catch(_0x2b4817){_0x395d1e['push'](_0x395d1e['shift']());}}}(a274_0x5b62,0x25487));export const CLI_BIN_NAME=a274_0x1f295e(0x1ff);export const CLI_DISPLAY_NAME=a274_0x1f295e(0x194);function a274_0x5b62(){const _0x1d5148=['expected-children-count','yes','Comma-separated\x20menu\x20IDs','tags','Dataset\x20code','enableBffSave','remote','File\x20path','query','Parent\x20menu\x20id','Apply\x20to\x20all','title','Read\x20value\x20from\x20stdin','menu-ids','Comma-separated\x20metadata\x20codes','fromEnv','schemas','pagesize','reveal','codes','Name','Use\x20global\x20config\x20scope','Type\x20filter','Expected\x20current\x20menu\x20path','6105869oXCDEk','sql','string','Menu\x20label','from-env','Operation\x20type','App\x20locale\x20(workspace\x20pass-through;\x20not\x20CLI\x20language)','help','stdin','nonInteractive','page','Schemas','label','value','SQL\x20name','expectedChildrenCount','<expr>','41083XnYDss','keyword','key','Skip\x20import\x20generation','description','Config\x20key','Function\x20node','rabetbase','params','flowName','menuIds','dbid','Target\x20path','function-node','Verbose\x20output','Preview\x20operation\x20without\x20executing','production\x20|\x20daily','10HJLkkE','description-file','all','Force\x20overwrite','1101572sBnlXS','96kpRggS','verbose','Search\x20query','dryRun','Maximum\x20search\x20hits','Record\x20ID','datasetcode','output','expect-path','expected-count','global','env','Skip\x20confirmation\x20for\x20high-risk\x20writes','Output\x20format','180630SrpMKg','Output\x20path','Description','Expected\x20current\x20child\x20count','sqlname','Menu\x20sort\x20value','format','@lovrabet/rabetbase-cli','Page\x20size','name','expect-parent-id','Confirm\x20destructive\x20action','dry-run','Read\x20value\x20from\x20environment\x20variable','datasetCode','code','flow-status','Rabetbase\x20CLI','operation','confirm','Environment','Override\x20appcode','force','DB\x20ID','3IwLRet','functionNode','flow-name','Clear','fromEntries','watch','57905tTopRf','JSON\x20params','sqlName','Title','962760yioOWY','2717505aBPBad','expectedCount','zh-CN\x20|\x20en-US','Reveal\x20sensitive\x20value','skip-imports','map','json\x20|\x20pretty\x20|\x20compress','app','Expected\x20current\x20parent\x20menu\x20id','sqlcode','flow-code','file','Config\x20value','appcode','flowStatus','db-id','2PZnaUF','boolean','Flow\x20status','descriptionFile','Select\x20app\x20profile\x20by\x20name','topk','operationType','taskId','Description\x20file','page-size','pageSize','non-interactive','parent-id','<code>','locale','Code\x20filter','expectParentId','SQL\x20code','Tags','dbId','sort','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','operation-type','Use\x20project\x20config\x20scope','clear'];a274_0x5b62=function(){return _0x1d5148;};return a274_0x5b62();}export const NPM_PACKAGE_NAME=a274_0x1f295e(0x18a);export const GLOBAL_FLAGS=[{'name':'appcode','meowKey':a274_0x1f295e(0x1b3),'type':a274_0x1f295e(0x1e9),'description':a274_0x1f295e(0x198),'hint':a274_0x1f295e(0x1c3)},{'name':a274_0x1f295e(0x1ad),'meowKey':a274_0x1f295e(0x1ad),'type':a274_0x1f295e(0x1e9),'description':a274_0x1f295e(0x1ba),'hint':'<name>'},{'name':'env','meowKey':'env','type':'string','description':a274_0x1f295e(0x197),'hint':a274_0x1f295e(0x208)},{'name':a274_0x1f295e(0x189),'meowKey':a274_0x1f295e(0x189),'type':a274_0x1f295e(0x1e9),'description':a274_0x1f295e(0x21b),'hint':a274_0x1f295e(0x1ac)},{'name':'jq','meowKey':'jq','type':a274_0x1f295e(0x1e9),'description':a274_0x1f295e(0x1cb),'hint':a274_0x1f295e(0x1f7)},{'name':a274_0x1f295e(0x18f),'meowKey':a274_0x1f295e(0x211),'type':a274_0x1f295e(0x1b7),'description':a274_0x1f295e(0x207)},{'name':'yes','meowKey':a274_0x1f295e(0x1d0),'type':a274_0x1f295e(0x1b7),'description':a274_0x1f295e(0x21a)},{'name':a274_0x1f295e(0x1c1),'meowKey':a274_0x1f295e(0x1f0),'type':a274_0x1f295e(0x1b7),'description':'Force\x20non-interactive\x20mode\x20(CI)'},{'name':'global','meowKey':a274_0x1f295e(0x218),'type':a274_0x1f295e(0x1b7),'description':a274_0x1f295e(0x1e4)},{'name':'project','meowKey':'project','type':a274_0x1f295e(0x1b7),'description':a274_0x1f295e(0x1cd)},{'name':'ci','meowKey':'ci','type':'boolean','description':'Alias\x20for\x20--non-interactive','hidden':!![]},{'name':a274_0x1f295e(0x1ee),'meowKey':'help','type':'boolean','description':'Show\x20help'},{'name':a274_0x1f295e(0x1c4),'meowKey':'locale','type':'string','description':a274_0x1f295e(0x1ed),'hidden':!![],'hint':a274_0x1f295e(0x1a8)},{'name':'name','meowKey':a274_0x1f295e(0x18c),'type':a274_0x1f295e(0x1e9),'description':a274_0x1f295e(0x1e3),'hidden':!![]},{'name':a274_0x1f295e(0x1da),'meowKey':'title','type':'string','description':a274_0x1f295e(0x1a4),'hidden':!![]},{'name':a274_0x1f295e(0x1d7),'meowKey':a274_0x1f295e(0x1d7),'type':a274_0x1f295e(0x1e9),'description':a274_0x1f295e(0x210),'hidden':!![]},{'name':a274_0x1f295e(0x1bb),'meowKey':'topk','type':a274_0x1f295e(0x1e9),'description':a274_0x1f295e(0x212),'hidden':!![]},{'name':a274_0x1f295e(0x1ce),'meowKey':a274_0x1f295e(0x1ce),'type':a274_0x1f295e(0x1b7),'description':a274_0x1f295e(0x19e),'hidden':!![]},{'name':'watch','meowKey':a274_0x1f295e(0x1a0),'type':a274_0x1f295e(0x1b7),'description':'Watch\x20mode','hidden':!![]},{'name':a274_0x1f295e(0x215),'meowKey':a274_0x1f295e(0x215),'type':a274_0x1f295e(0x1e9),'description':a274_0x1f295e(0x21d),'hidden':!![]},{'name':a274_0x1f295e(0x200),'meowKey':a274_0x1f295e(0x200),'type':a274_0x1f295e(0x1e9),'description':a274_0x1f295e(0x1a2),'hidden':!![]},{'name':a274_0x1f295e(0x214),'meowKey':a274_0x1f295e(0x214),'type':a274_0x1f295e(0x1e9),'description':a274_0x1f295e(0x1d3),'hidden':!![]},{'name':a274_0x1f295e(0x20b),'meowKey':a274_0x1f295e(0x20b),'type':a274_0x1f295e(0x1b7),'description':a274_0x1f295e(0x1d9),'hidden':!![]},{'name':'enable-bff-save','meowKey':a274_0x1f295e(0x1d4),'type':a274_0x1f295e(0x1b7),'description':'Enable\x20Backend\x20Function\x20save','hidden':!![]},{'name':'id','meowKey':'id','type':a274_0x1f295e(0x1e9),'description':a274_0x1f295e(0x213),'hidden':!![]},{'name':'type','meowKey':'type','type':a274_0x1f295e(0x1e9),'description':a274_0x1f295e(0x1e5),'hidden':!![]},{'name':a274_0x1f295e(0x1b1),'meowKey':'file','type':a274_0x1f295e(0x1e9),'description':a274_0x1f295e(0x1d6),'hidden':!![]},{'name':a274_0x1f295e(0x1b0),'meowKey':'flowCode','type':a274_0x1f295e(0x1e9),'description':'Flow\x20code','hidden':!![]},{'name':a274_0x1f295e(0x19d),'meowKey':a274_0x1f295e(0x201),'type':'string','description':'Flow\x20name','hidden':!![]},{'name':a274_0x1f295e(0x193),'meowKey':a274_0x1f295e(0x1b4),'type':a274_0x1f295e(0x1e9),'description':a274_0x1f295e(0x1b8),'hidden':!![]},{'name':'flow-type','meowKey':'flowType','type':a274_0x1f295e(0x1e9),'description':'Flow\x20type','hidden':!![]},{'name':'dataset-code','meowKey':a274_0x1f295e(0x191),'type':a274_0x1f295e(0x1e9),'description':'Dataset\x20code','hidden':!![]},{'name':a274_0x1f295e(0x1af),'meowKey':'sqlcode','type':a274_0x1f295e(0x1e9),'description':a274_0x1f295e(0x1c7),'hidden':!![]},{'name':'sql-name','meowKey':a274_0x1f295e(0x1a3),'type':'string','description':a274_0x1f295e(0x1f5),'hidden':!![]},{'name':'sqlname','meowKey':a274_0x1f295e(0x187),'type':a274_0x1f295e(0x1e9),'description':a274_0x1f295e(0x1f5),'hidden':!![]},{'name':a274_0x1f295e(0x1b5),'meowKey':a274_0x1f295e(0x1c9),'type':'string','description':'DB\x20ID','hidden':!![]},{'name':a274_0x1f295e(0x203),'meowKey':a274_0x1f295e(0x203),'type':a274_0x1f295e(0x1e9),'description':a274_0x1f295e(0x19a),'hidden':!![]},{'name':a274_0x1f295e(0x1fc),'meowKey':a274_0x1f295e(0x1fc),'type':a274_0x1f295e(0x1e9),'description':a274_0x1f295e(0x21e),'hidden':!![]},{'name':a274_0x1f295e(0x20a),'meowKey':a274_0x1f295e(0x1b9),'type':a274_0x1f295e(0x1e9),'description':a274_0x1f295e(0x1be),'hidden':!![]},{'name':a274_0x1f295e(0x1f1),'meowKey':a274_0x1f295e(0x1f1),'type':a274_0x1f295e(0x1e9),'description':'Page\x20number','hidden':!![]},{'name':a274_0x1f295e(0x1bf),'meowKey':a274_0x1f295e(0x1c0),'type':a274_0x1f295e(0x1e9),'description':a274_0x1f295e(0x18b),'hidden':!![]},{'name':a274_0x1f295e(0x1e0),'meowKey':'pagesize','type':'string','description':a274_0x1f295e(0x18b),'hidden':!![]},{'name':a274_0x1f295e(0x1f9),'meowKey':a274_0x1f295e(0x1f9),'type':a274_0x1f295e(0x1e9),'description':'Keyword\x20filter','hidden':!![]},{'name':'code','meowKey':a274_0x1f295e(0x192),'type':a274_0x1f295e(0x1e9),'description':a274_0x1f295e(0x1c5),'hidden':!![]},{'name':a274_0x1f295e(0x1e8),'meowKey':a274_0x1f295e(0x1e8),'type':'string','description':'SQL\x20string','hidden':!![]},{'name':a274_0x1f295e(0x1df),'meowKey':a274_0x1f295e(0x1df),'type':a274_0x1f295e(0x1e9),'description':a274_0x1f295e(0x1f2),'hidden':!![]},{'name':'operation','meowKey':a274_0x1f295e(0x195),'type':'string','description':'Operation\x20type','hidden':!![]},{'name':'target','meowKey':'target','type':a274_0x1f295e(0x1e9),'description':a274_0x1f295e(0x204),'hidden':!![]},{'name':a274_0x1f295e(0x1aa),'meowKey':'skipImports','type':a274_0x1f295e(0x1b7),'description':a274_0x1f295e(0x1fb),'hidden':!![]},{'name':a274_0x1f295e(0x1fa),'meowKey':a274_0x1f295e(0x1fa),'type':a274_0x1f295e(0x1e9),'description':a274_0x1f295e(0x1fd),'hidden':!![]},{'name':a274_0x1f295e(0x1f4),'meowKey':'value','type':'string','description':a274_0x1f295e(0x1b2),'hidden':!![]},{'name':a274_0x1f295e(0x1d2),'meowKey':a274_0x1f295e(0x1d2),'type':a274_0x1f295e(0x1e9),'description':a274_0x1f295e(0x1c8),'hidden':!![]},{'name':'stdin','meowKey':a274_0x1f295e(0x1ef),'type':a274_0x1f295e(0x1b7),'description':a274_0x1f295e(0x1db),'hidden':!![]},{'name':a274_0x1f295e(0x1eb),'meowKey':a274_0x1f295e(0x1de),'type':a274_0x1f295e(0x1e9),'description':a274_0x1f295e(0x190),'hidden':!![]},{'name':'reveal','meowKey':a274_0x1f295e(0x1e1),'type':a274_0x1f295e(0x1b7),'description':a274_0x1f295e(0x1a9),'hidden':!![]},{'name':a274_0x1f295e(0x199),'meowKey':a274_0x1f295e(0x199),'type':a274_0x1f295e(0x1b7),'description':a274_0x1f295e(0x20c),'hidden':!![]},{'name':a274_0x1f295e(0x196),'meowKey':'confirm','type':'boolean','description':a274_0x1f295e(0x18e),'hidden':!![]},{'name':a274_0x1f295e(0x1d5),'meowKey':a274_0x1f295e(0x1d5),'type':a274_0x1f295e(0x1b7),'description':'Use\x20remote','hidden':!![]},{'name':'verbose','meowKey':a274_0x1f295e(0x20f),'type':a274_0x1f295e(0x1b7),'description':a274_0x1f295e(0x206),'hidden':!![]},{'name':a274_0x1f295e(0x217),'meowKey':a274_0x1f295e(0x1a7),'type':'string','description':'Expected\x20affected\x20count','hidden':!![]},{'name':'label','meowKey':a274_0x1f295e(0x1f3),'type':a274_0x1f295e(0x1e9),'description':a274_0x1f295e(0x1ea),'hidden':!![]},{'name':a274_0x1f295e(0x1c2),'meowKey':'parentId','type':'string','description':a274_0x1f295e(0x1d8),'hidden':!![]},{'name':a274_0x1f295e(0x1ca),'meowKey':a274_0x1f295e(0x1ca),'type':a274_0x1f295e(0x1e9),'description':a274_0x1f295e(0x188),'hidden':!![]},{'name':a274_0x1f295e(0x18d),'meowKey':a274_0x1f295e(0x1c6),'type':a274_0x1f295e(0x1e9),'description':a274_0x1f295e(0x1ae),'hidden':!![]},{'name':a274_0x1f295e(0x216),'meowKey':'expectPath','type':a274_0x1f295e(0x1e9),'description':a274_0x1f295e(0x1e6),'hidden':!![]},{'name':a274_0x1f295e(0x1cf),'meowKey':a274_0x1f295e(0x1f6),'type':a274_0x1f295e(0x1e9),'description':a274_0x1f295e(0x21f),'hidden':!![]},{'name':a274_0x1f295e(0x1dc),'meowKey':a274_0x1f295e(0x202),'type':a274_0x1f295e(0x1e9),'description':a274_0x1f295e(0x1d1),'hidden':!![]},{'name':'task-id','meowKey':a274_0x1f295e(0x1bd),'type':a274_0x1f295e(0x1e9),'description':'Asynchronous\x20task\x20ID','hidden':!![]},{'name':a274_0x1f295e(0x1cc),'meowKey':a274_0x1f295e(0x1bc),'type':a274_0x1f295e(0x1e9),'description':a274_0x1f295e(0x1ec),'hidden':!![]},{'name':a274_0x1f295e(0x205),'meowKey':a274_0x1f295e(0x19c),'type':a274_0x1f295e(0x1e9),'description':a274_0x1f295e(0x1fe),'hidden':!![]},{'name':a274_0x1f295e(0x1e2),'meowKey':a274_0x1f295e(0x1e2),'type':a274_0x1f295e(0x1e9),'description':a274_0x1f295e(0x1dd),'hidden':!![]}];function a274_0x1c3b(_0x2a9128,_0x44e005){_0x2a9128=_0x2a9128-0x187;const _0x5b62b5=a274_0x5b62();let _0x1c3bee=_0x5b62b5[_0x2a9128];return _0x1c3bee;}export const PIPELINE_FLAG_NAMES=new Set([a274_0x1f295e(0x1b3),a274_0x1f295e(0x1ad),a274_0x1f295e(0x219),'format','jq',a274_0x1f295e(0x18f),a274_0x1f295e(0x1d0),a274_0x1f295e(0x1c1),'ci']);export function buildMeowFlags(){const _0x48bee0=a274_0x1f295e;return Object[_0x48bee0(0x19f)](GLOBAL_FLAGS[_0x48bee0(0x1ab)](_0x3f9968=>[_0x3f9968['meowKey'],{'type':_0x3f9968['type']}]));}
|
|
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']}]));}
|
package/lib/constant/defaults.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a275_0x4ca6c5=a275_0x2086;function a275_0x2086(_0x2a9e83,_0x5af399){_0x2a9e83=_0x2a9e83-0x146;const _0xbd2ebb=a275_0xbd2e();let _0x20869e=_0xbd2ebb[_0x2a9e83];return _0x20869e;}(function(_0x31bd32,_0x367719){const _0x1fd718=a275_0x2086,_0x58d217=_0x31bd32();while(!![]){try{const _0x54ffb0=-parseInt(_0x1fd718(0x14b))/0x1+parseInt(_0x1fd718(0x14d))/0x2+parseInt(_0x1fd718(0x151))/0x3*(-parseInt(_0x1fd718(0x14f))/0x4)+-parseInt(_0x1fd718(0x153))/0x5*(parseInt(_0x1fd718(0x149))/0x6)+-parseInt(_0x1fd718(0x14e))/0x7*(parseInt(_0x1fd718(0x147))/0x8)+-parseInt(_0x1fd718(0x154))/0x9*(-parseInt(_0x1fd718(0x150))/0xa)+-parseInt(_0x1fd718(0x146))/0xb*(-parseInt(_0x1fd718(0x14a))/0xc);if(_0x54ffb0===_0x367719)break;else _0x58d217['push'](_0x58d217['shift']());}catch(_0x55591b){_0x58d217['push'](_0x58d217['shift']());}}}(a275_0xbd2e,0x9ed66));import{DEFAULT_API_DIR}from'../constant/paths.js';export const DEFAULT_CONFIG_VALUES={'env':a275_0x4ca6c5(0x14c),'format':a275_0x4ca6c5(0x152),'locale':'en-US','riskLevel':a275_0x4ca6c5(0x148),'apiDir':DEFAULT_API_DIR};function a275_0xbd2e(){const _0x528c3a=['252jTgrCz','850135gFlOHx','production','450814vYFlds','4921YyPzWX','4388dRLBop','300YdHuKP','561YDbJwA','compress','535mLefdr','37287PsakJB','1027301dBJVaN','3600zxVXhp','write','16188AePjkJ'];a275_0xbd2e=function(){return _0x528c3a;};return a275_0xbd2e();}export const DEFAULT_COMMAND_OUTPUT_FORMAT=a275_0x4ca6c5(0x152);
|
package/lib/constant/domain.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a276_0x45791b=a276_0x5c23;(function(_0x39bfd9,_0x2e894e){const _0xeab971=a276_0x5c23,_0x1288d6=_0x39bfd9();while(!![]){try{const _0x33e72c=-parseInt(_0xeab971(0xad))/0x1+parseInt(_0xeab971(0xbc))/0x2*(-parseInt(_0xeab971(0xb4))/0x3)+parseInt(_0xeab971(0xb8))/0x4+parseInt(_0xeab971(0xb6))/0x5*(parseInt(_0xeab971(0xa4))/0x6)+parseInt(_0xeab971(0xa5))/0x7*(-parseInt(_0xeab971(0xb7))/0x8)+-parseInt(_0xeab971(0xac))/0x9*(parseInt(_0xeab971(0xa6))/0xa)+-parseInt(_0xeab971(0xb9))/0xb*(-parseInt(_0xeab971(0xbe))/0xc);if(_0x33e72c===_0x2e894e)break;else _0x1288d6['push'](_0x1288d6['shift']());}catch(_0x97c1d8){_0x1288d6['push'](_0x1288d6['shift']());}}}(a276_0x3228,0x24b90));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 _0xd6a567=a276_0x5c23,_0x3e937a=getOfficialRoutingProfile(activeRegion);return isProduction(getEnv())?_0x3e937a[_0xd6a567(0xb0)][_0xd6a567(0x9f)]:_0x3e937a[_0xd6a567(0xb0)]['daily']??_0x3e937a[_0xd6a567(0xb0)][_0xd6a567(0x9f)];}export function initDomains(_0x2be994){const _0x5aa7cd=a276_0x5c23;customApiDomain=_0x2be994?.[_0x5aa7cd(0xb1)],customUserDomain=_0x2be994?.['userDomain'],customRuntimeDomain=_0x2be994?.[_0x5aa7cd(0xb3)],customSkillDomain=_0x2be994?.[_0x5aa7cd(0xb5)],customKbDomain=_0x2be994?.[_0x5aa7cd(0xaa)],customKbServiceDomain=_0x2be994?.[_0x5aa7cd(0xbb)],allowOfficialKbServiceDefault=_0x2be994?.[_0x5aa7cd(0xb2)]??!![],customAppDomain=_0x2be994?.[_0x5aa7cd(0xc1)],customLocalDomain=_0x2be994?.[_0x5aa7cd(0xba)],customCertificateDomain=_0x2be994?.[_0x5aa7cd(0xa8)],customCdn=_0x2be994?.['cdn'],activeRegion=_0x2be994?.[_0x5aa7cd(0xa0)]??DEFAULT_LOVRABET_REGION;}export const getUserDomain=()=>customUserDomain||getActiveRegionDomains()[a276_0x45791b(0xbd)];export const getApiDomain=()=>customApiDomain||getActiveRegionDomains()[a276_0x45791b(0xa7)];export const getRuntimeDomain=()=>customRuntimeDomain||getActiveRegionDomains()[a276_0x45791b(0xa9)];export const getSkillDomain=()=>customSkillDomain||getActiveRegionDomains()[a276_0x45791b(0xab)];function a276_0x5c23(_0x4f9514,_0x38c271){_0x4f9514=_0x4f9514-0x9f;const _0x322842=a276_0x3228();let _0x5c2301=_0x322842[_0x4f9514];return _0x5c2301;}export const getKbDomain=()=>customKbDomain||customApiDomain||getActiveRegionDomains()['kb'];export const getKbServiceDomain=()=>{const _0x188001=a276_0x45791b;if(customKbServiceDomain)return customKbServiceDomain;if(!allowOfficialKbServiceDefault)return undefined;return getActiveRegionDomains()[_0x188001(0xaf)];};export const getAppDomain=()=>customAppDomain||getActiveRegionDomains()[a276_0x45791b(0xbf)];export const getActiveRegion=()=>activeRegion;export const getLocalDomain=()=>customLocalDomain;export const getCertificateDomain=()=>customCertificateDomain;export const getActiveCdn=()=>customCdn||getOfficialRoutingCdn(activeRegion);function a276_0x3228(){const _0x5386e5=['55yMWvAu','localDomain','kbServiceDomain','26GYjHmL','user','642216eQChME','app','/app/','appDomain','production','region','trim','hostname','/web-app/app/','18cHMZYS','197512zMZDFF','10RwqWMj','api','certificateDomain','runtime','kbDomain','skill','1709145tduHVm','208526IFdpgQ','origin','kbService','serviceDomains','apiDomain','allowOfficialKbServiceDefault','runtimeDomain','9192VAYCFT','skillDomain','315475rPVpfK','40LbujET','1091536ofMGUY'];a276_0x3228=function(){return _0x5386e5;};return a276_0x3228();}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{};}export const getAppBaseUrl=_0x581a0d=>{const _0x5dc8a1=a276_0x45791b,_0x58eca2=encodeURIComponent(_0x581a0d[_0x5dc8a1(0xa1)]());return isProduction(getEnv())?getAppDomain()+_0x5dc8a1(0xc0)+_0x58eca2:getAppDomain()+_0x5dc8a1(0xa3)+_0x58eca2;};export const getPublishedAppDomain=_0x542e95=>{const _0x2b3cac=a276_0x45791b,_0x5c07a7=new URL(getAppDomain());return _0x5c07a7['hostname']=_0x542e95[_0x2b3cac(0xa1)]()+'.'+_0x5c07a7[_0x2b3cac(0xa2)],_0x5c07a7[_0x2b3cac(0xae)];};
|
package/lib/constant/env.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a277_0x49dc(){const _0x174ca4=['1049111HUpqhQ','daily','4291908UMIofF','6139356sTdmaS','40RmmOLo','975280xCnMHp','3zXhLhk','development','online','3806658GHxBgr','production','3297634VbcOfQ','8722545HWwLgn'];a277_0x49dc=function(){return _0x174ca4;};return a277_0x49dc();}const a277_0x1592f1=a277_0x33bf;(function(_0x5d7f78,_0x5e8635){const _0xd81441=a277_0x33bf,_0x1e427a=_0x5d7f78();while(!![]){try{const _0xccf4bd=-parseInt(_0xd81441(0x81))/0x1+-parseInt(_0xd81441(0x87))/0x2*(parseInt(_0xd81441(0x82))/0x3)+parseInt(_0xd81441(0x7e))/0x4+parseInt(_0xd81441(0x88))/0x5+parseInt(_0xd81441(0x7f))/0x6+parseInt(_0xd81441(0x7c))/0x7*(-parseInt(_0xd81441(0x80))/0x8)+parseInt(_0xd81441(0x85))/0x9;if(_0xccf4bd===_0x5e8635)break;else _0x1e427a['push'](_0x1e427a['shift']());}catch(_0x3fccdd){_0x1e427a['push'](_0x1e427a['shift']());}}}(a277_0x49dc,0xd9564));export const RABETBASE_ENV_VALUES=[a277_0x1592f1(0x86),a277_0x1592f1(0x7d)];export function normalizeEnv(_0x5a2da2){const _0x131c61=a277_0x1592f1;return _0x5a2da2===_0x131c61(0x84)?'production':_0x5a2da2;}function a277_0x33bf(_0x315581,_0x3455cd){_0x315581=_0x315581-0x7c;const _0x49dc97=a277_0x49dc();let _0x33bfa2=_0x49dc97[_0x315581];return _0x33bfa2;}export function isProduction(_0x2ed4c1){return normalizeEnv(_0x2ed4c1)==='production';}export function isDaily(_0x4dce65){const _0x30b0a5=a277_0x1592f1;return normalizeEnv(_0x4dce65)===_0x30b0a5(0x7d);}export function isDev(_0x3d73a5){const _0x2a8876=a277_0x1592f1,_0x30360a=normalizeEnv(_0x3d73a5);return _0x30360a===_0x2a8876(0x83)||_0x30360a==='dev';}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||a277_0x1592f1(0x86));export function getEnv(){return env;}export function initEnv(_0x2094f0){env=normalizeEnv(_0x2094f0);}
|
package/lib/constant/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a278_0x9cd4(){const _0x2ba721=['3824455EsHfgH','compress','3398154RASYEu','587664BgooGN','30373506tYSqbj','json','2rSNayh','2916879iXfiAK','2131108XMcXYk','1210521GeoGEY','pretty','144XxVkdz'];a278_0x9cd4=function(){return _0x2ba721;};return a278_0x9cd4();}function a278_0x48f3(_0x4e7238,_0x43c297){_0x4e7238=_0x4e7238-0x118;const _0x9cd43d=a278_0x9cd4();let _0x48f349=_0x9cd43d[_0x4e7238];return _0x48f349;}const a278_0xe45bbd=a278_0x48f3;(function(_0x4eb2ca,_0x2f1584){const _0x1a927e=a278_0x48f3,_0x1a2763=_0x4eb2ca();while(!![]){try{const _0x4e47ae=-parseInt(_0x1a927e(0x11b))/0x1+-parseInt(_0x1a927e(0x118))/0x2*(-parseInt(_0x1a927e(0x119))/0x3)+-parseInt(_0x1a927e(0x11a))/0x4+-parseInt(_0x1a927e(0x11e))/0x5+parseInt(_0x1a927e(0x120))/0x6+parseInt(_0x1a927e(0x121))/0x7*(-parseInt(_0x1a927e(0x11d))/0x8)+parseInt(_0x1a927e(0x122))/0x9;if(_0x4e47ae===_0x2f1584)break;else _0x1a2763['push'](_0x1a2763['shift']());}catch(_0x2148ee){_0x1a2763['push'](_0x1a2763['shift']());}}}(a278_0x9cd4,0xda4d1));export const RABETBASE_OUTPUT_FORMAT_VALUES=[a278_0xe45bbd(0x123),a278_0xe45bbd(0x11c),a278_0xe45bbd(0x11f)];
|
package/lib/constant/paths.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a279_0x202c89=a279_0xe9be;function a279_0x9c0f(){const _0x2d3f73=['./src/api','3738447ChBxDT','80aEwBgw','1LqZczz','249946oGnDbR','1081284pLoUjY','66zybHDc','11wuwYPQ','440783AtTthm','10279880jqgZUP','7184MqZLzY','72HFpscG','159530xlMroZ'];a279_0x9c0f=function(){return _0x2d3f73;};return a279_0x9c0f();}(function(_0x30b24c,_0x3a8277){const _0x12df77=a279_0xe9be,_0x37513f=_0x30b24c();while(!![]){try{const _0x7fa08a=parseInt(_0x12df77(0xf0))/0x1*(-parseInt(_0x12df77(0xf1))/0x2)+-parseInt(_0x12df77(0xee))/0x3+-parseInt(_0x12df77(0xf7))/0x4*(-parseInt(_0x12df77(0xef))/0x5)+-parseInt(_0x12df77(0xf3))/0x6*(-parseInt(_0x12df77(0xf5))/0x7)+parseInt(_0x12df77(0xf6))/0x8+-parseInt(_0x12df77(0xf8))/0x9*(-parseInt(_0x12df77(0xec))/0xa)+-parseInt(_0x12df77(0xf4))/0xb*(parseInt(_0x12df77(0xf2))/0xc);if(_0x7fa08a===_0x3a8277)break;else _0x37513f['push'](_0x37513f['shift']());}catch(_0x260aa4){_0x37513f['push'](_0x37513f['shift']());}}}(a279_0x9c0f,0xa4407));function a279_0xe9be(_0x3c9ee4,_0x1021d0){_0x3c9ee4=_0x3c9ee4-0xec;const _0x9c0f76=a279_0x9c0f();let _0xe9be2f=_0x9c0f76[_0x3c9ee4];return _0xe9be2f;}export const DEFAULT_API_DIR=a279_0x202c89(0xed);
|
package/lib/constant/region.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x31883a,_0x3402f9){const _0x1e15b4=a280_0x78a6,_0x2cff10=_0x31883a();while(!![]){try{const _0x3aa63f=-parseInt(_0x1e15b4(0x1b4))/0x1*(-parseInt(_0x1e15b4(0x1b6))/0x2)+-parseInt(_0x1e15b4(0x1ae))/0x3+-parseInt(_0x1e15b4(0x1b0))/0x4*(-parseInt(_0x1e15b4(0x1b5))/0x5)+-parseInt(_0x1e15b4(0x1b1))/0x6+parseInt(_0x1e15b4(0x1b7))/0x7+parseInt(_0x1e15b4(0x1b8))/0x8+parseInt(_0x1e15b4(0x1b2))/0x9;if(_0x3aa63f===_0x3402f9)break;else _0x2cff10['push'](_0x2cff10['shift']());}catch(_0x59e119){_0x2cff10['push'](_0x2cff10['shift']());}}}(a280_0x5962,0xbc97d));import{DEFAULT_REGION,ENABLED_REGION_VALUES,REGION_ALIASES,REGION_VALUES}from'../generated/official-routing.js';export const LOVRABET_REGION_VALUES=REGION_VALUES;function a280_0x5962(){const _0x2afa73=['360367JboGhC','5745cpfieA','2hUBzuT','7825062iLswOy','6209392LlCHRt','1663491xOvAKd','string','464VBwdju','7818234XbFQIk','2180898ctzTLt','includes'];a280_0x5962=function(){return _0x2afa73;};return a280_0x5962();}export const ENABLED_LOVRABET_REGION_VALUES=ENABLED_REGION_VALUES;export const DEFAULT_LOVRABET_REGION=DEFAULT_REGION;export function isLovrabetRegion(_0x12a6d0){const _0x541935=a280_0x78a6;return typeof _0x12a6d0===_0x541935(0x1af)&&LOVRABET_REGION_VALUES[_0x541935(0x1b3)](_0x12a6d0);}export function isEnabledLovrabetRegion(_0x2dde28){const _0x35352a=a280_0x78a6;return typeof _0x2dde28===_0x35352a(0x1af)&&ENABLED_LOVRABET_REGION_VALUES[_0x35352a(0x1b3)](_0x2dde28);}export function normalizeLovrabetRegion(_0x22e3ba){const _0xd9e309=a280_0x78a6;if(typeof _0x22e3ba!==_0xd9e309(0x1af))return undefined;const _0x573931=REGION_ALIASES[_0x22e3ba]??_0x22e3ba;return isLovrabetRegion(_0x573931)?_0x573931:undefined;}function a280_0x78a6(_0x498da3,_0x72edf2){_0x498da3=_0x498da3-0x1ae;const _0x5962d2=a280_0x5962();let _0x78a6e8=_0x5962d2[_0x498da3];return _0x78a6e8;}export function isInvalidLovrabetRegion(_0x12b55a){return _0x12b55a!==undefined&&_0x12b55a!==null&&_0x12b55a!==''&&normalizeLovrabetRegion(_0x12b55a)===undefined;}
|
package/lib/constant/risk.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a281_0x2b13(){const _0x532346=['2quofTR','4922400ggRvwa','high-risk-write','read','4828023IWtRjF','3403547VGQSxu','327030aYPlUk','6vTsTUj','1670164eEtnhy','83443GjlOyX','1992621NmQZJJ'];a281_0x2b13=function(){return _0x532346;};return a281_0x2b13();}function a281_0x3808(_0x22ce04,_0x105602){_0x22ce04=_0x22ce04-0x1a6;const _0x2b1371=a281_0x2b13();let _0x380813=_0x2b1371[_0x22ce04];return _0x380813;}const a281_0x2a4a29=a281_0x3808;(function(_0x3af3b5,_0x3739e8){const _0x470c50=a281_0x3808,_0x4e2b07=_0x3af3b5();while(!![]){try{const _0x433644=-parseInt(_0x470c50(0x1a7))/0x1*(-parseInt(_0x470c50(0x1a9))/0x2)+-parseInt(_0x470c50(0x1a8))/0x3+parseInt(_0x470c50(0x1a6))/0x4+-parseInt(_0x470c50(0x1af))/0x5+-parseInt(_0x470c50(0x1b0))/0x6*(-parseInt(_0x470c50(0x1ae))/0x7)+parseInt(_0x470c50(0x1aa))/0x8+-parseInt(_0x470c50(0x1ad))/0x9;if(_0x433644===_0x3739e8)break;else _0x4e2b07['push'](_0x4e2b07['shift']());}catch(_0xc9940d){_0x4e2b07['push'](_0x4e2b07['shift']());}}}(a281_0x2b13,0x5223d));export const RISK_LEVEL_VALUES=[a281_0x2a4a29(0x1ac),'write',a281_0x2a4a29(0x1ab)];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x4afa05,_0x57eb3e){const _0x3ee786=a282_0x5cad,_0x3d0c84=_0x4afa05();while(!![]){try{const _0x1cabb7=parseInt(_0x3ee786(0x157))/0x1*(-parseInt(_0x3ee786(0x15d))/0x2)+-parseInt(_0x3ee786(0x15f))/0x3+-parseInt(_0x3ee786(0x159))/0x4*(parseInt(_0x3ee786(0x150))/0x5)+-parseInt(_0x3ee786(0x152))/0x6*(parseInt(_0x3ee786(0x15b))/0x7)+-parseInt(_0x3ee786(0x15e))/0x8*(-parseInt(_0x3ee786(0x15c))/0x9)+-parseInt(_0x3ee786(0x156))/0xa*(-parseInt(_0x3ee786(0x158))/0xb)+-parseInt(_0x3ee786(0x154))/0xc*(-parseInt(_0x3ee786(0x153))/0xd);if(_0x1cabb7===_0x57eb3e)break;else _0x3d0c84['push'](_0x3d0c84['shift']());}catch(_0x362479){_0x3d0c84['push'](_0x3d0c84['shift']());}}}(a282_0x3889,0xc64b0));import{OFFICIAL_ROUTING_PROFILES as a282_0x172e52,ROUTING_CATALOG_DIGEST}from'../generated/official-routing.js';export const OFFICIAL_ROUTING_PROFILES=a282_0x172e52;export{ROUTING_CATALOG_DIGEST};function a282_0x3889(){const _0x19ef8f=['\x22\x20is\x20not\x20ready:\x20Lovrabet\x20CDN\x20Domain\x20is\x20not\x20configured.','6BRGKdc','9981933AerGYN','48OTTIQR','Official\x20routing\x20for\x20region\x20\x22','110DCYUcY','2thgMvi','1068903qTiQRh','16940CmzROe','libraries','10280921GBfUlt','27VfzmIm','1316086LAbCia','3106096BoQFCa','4107768dgGjwo','lovrabet','400nGsOae'];a282_0x3889=function(){return _0x19ef8f;};return a282_0x3889();}function a282_0x5cad(_0xacabb0,_0x48681c){_0xacabb0=_0xacabb0-0x150;const _0x388935=a282_0x3889();let _0x5cad81=_0x388935[_0xacabb0];return _0x5cad81;}export function getOfficialRoutingProfile(_0x4e78ee){return OFFICIAL_ROUTING_PROFILES[_0x4e78ee];}export function getOfficialRoutingCdn(_0x1aef2e){const _0x6dce80=a282_0x5cad,_0x5eefc3=getOfficialRoutingProfile(_0x1aef2e)['cdn'];if(!_0x5eefc3['lovrabet'])throw new Error(_0x6dce80(0x155)+_0x1aef2e+_0x6dce80(0x151));return{'libraries':_0x5eefc3[_0x6dce80(0x15a)],'lovrabet':_0x5eefc3[_0x6dce80(0x160)]};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x18f48c,_0x35c567){const _0x52bc07=a283_0x4837,_0x1e635d=_0x18f48c();while(!![]){try{const _0x35057a=parseInt(_0x52bc07(0xe7))/0x1+-parseInt(_0x52bc07(0xfa))/0x2+parseInt(_0x52bc07(0xff))/0x3*(-parseInt(_0x52bc07(0xee))/0x4)+-parseInt(_0x52bc07(0xf4))/0x5*(-parseInt(_0x52bc07(0xf7))/0x6)+parseInt(_0x52bc07(0xde))/0x7*(-parseInt(_0x52bc07(0xd7))/0x8)+parseInt(_0x52bc07(0xf3))/0x9+-parseInt(_0x52bc07(0xfc))/0xa*(-parseInt(_0x52bc07(0xf2))/0xb);if(_0x35057a===_0x35c567)break;else _0x1e635d['push'](_0x1e635d['shift']());}catch(_0x5b3306){_0x1e635d['push'](_0x1e635d['shift']());}}}(a283_0x28fe,0xae537));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{isDaily,normalizeEnv}from'../constant/env.js';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(_0x2eb5f1){const _0x20b687=a283_0x4837;return typeof _0x2eb5f1===_0x20b687(0xdc)&&_0x2eb5f1['trim']()?_0x2eb5f1[_0x20b687(0xed)]():undefined;}function appProfiles(_0x26cfbe){const _0x519003=a283_0x4837;return _0x26cfbe[_0x519003(0xd8)]&&typeof _0x26cfbe[_0x519003(0xd8)]===_0x519003(0xe4)?_0x26cfbe[_0x519003(0xd8)]:{};}function resolveDefaultAppName(_0xaf2c4e){const _0x3d6b86=a283_0x4837,_0xda6e17=stringConfigValue(_0xaf2c4e[_0x3d6b86(0xe1)]);if(_0xda6e17)return _0xda6e17;const _0x3987f0=Object['keys'](appProfiles(_0xaf2c4e));return _0x3987f0[_0x3d6b86(0xe8)]===0x1?_0x3987f0[0x0]:undefined;}function a283_0x28fe(){const _0x364d87=['96LoptgP','source','pageSize','2655452GOJEdC','daily','180FvRMwm','region','read','2602374UrROIi','keys','riskLevel','format','app','projectPath','2512ItwogU','apps','cookie','ENV','VERBOSE','string','COOKIE','19922nwOCwO','value','ACCESS_KEY','defaultApp','true','entries','object','appcode','apiDir','723356JGGPZN','length','accessKey','locale','PAGE_SIZE','filter','trim','4BVaPIY','projectConfig','env','RISK_LEVEL','1542552JSwAxk','3974031haHdUs','35555JwnCKZ','globalConfig','APP'];a283_0x28fe=function(){return _0x364d87;};return a283_0x28fe();}function resolveTopLevelAppCode(_0x1d5e4c){const _0x162a12=a283_0x4837;return stringConfigValue(_0x1d5e4c[_0x162a12(0xe5)])||stringConfigValue(_0x1d5e4c[_0x162a12(0xd5)]);}function a283_0x4837(_0x523caf,_0xd7860d){_0x523caf=_0x523caf-0xd5;const _0x28fee4=a283_0x28fe();let _0x483732=_0x28fee4[_0x523caf];return _0x483732;}function normalizeRiskCeiling(_0x57b9ce){const _0x621f3c=a283_0x4837;if(_0x57b9ce===undefined||_0x57b9ce===null)return undefined;if(_0x57b9ce==='read'||_0x57b9ce==='write'||_0x57b9ce==='high-risk-write')return _0x57b9ce;return _0x621f3c(0xfe);}function resolveRiskCeiling(..._0x1cab82){const _0x583d32=a283_0x4837;let _0x1e5375;for(const _0x416335 of _0x1cab82){const _0x2bf36e=normalizeRiskCeiling(_0x416335);_0x2bf36e&&(!_0x1e5375||riskLevelOrder(_0x2bf36e)<riskLevelOrder(_0x1e5375))&&(_0x1e5375=_0x2bf36e);}return _0x1e5375??DEFAULT_CONFIG_VALUES[_0x583d32(0x101)];}export function resolveAppConfig({raw:_0x240b46,flags:_0x379bb7,layers:_0x43d141,readEnv:_0x1ef288}){const _0x5972ca=a283_0x4837,_0x4c29d3=_0x43d141?.['projectConfig']??{},_0x57a628=_0x43d141?.['globalConfig']??{},_0x331d0c=!!_0x43d141?.[_0x5972ca(0xd6)]||Object[_0x5972ca(0x100)](_0x4c29d3)[_0x5972ca(0xe8)]>0x0,_0x2ee608=!_0x331d0c,_0x45824b=_0x331d0c?resolveDefaultAppName(_0x4c29d3):undefined,_0x2fdce1=_0x2ee608?resolveDefaultAppName(_0x57a628):undefined,_0x5bb949=stringConfigValue(_0x379bb7[_0x5972ca(0xd5)]),_0x5559a8=_0x1ef288(_0x5972ca(0xf6)),_0x593bec={};if(_0x240b46[_0x5972ca(0xd8)]&&typeof _0x240b46[_0x5972ca(0xd8)]===_0x5972ca(0xe4))for(const [_0x5b4737,_0x4cf0fa]of Object['entries'](_0x240b46[_0x5972ca(0xd8)])){_0x4cf0fa&&typeof _0x4cf0fa==='object'&&_0x4cf0fa[_0x5972ca(0xe5)]&&(_0x593bec[_0x5b4737]=_0x4cf0fa);}const _0x5ebc13=_0x45824b||_0x2fdce1||resolveDefaultAppName(_0x240b46),_0x2a10f6=Object[_0x5972ca(0x100)](_0x593bec)[_0x5972ca(0xe8)]>0x0,_0x4994ea=_0x5bb949||_0x45824b||_0x5559a8||_0x2fdce1||_0x5ebc13||undefined,_0x257441=stringConfigValue(_0x379bb7[_0x5972ca(0xe5)]),_0x20cd2e=_0x257441?Object[_0x5972ca(0xe3)](_0x593bec)[_0x5972ca(0xec)](([,_0x43b364])=>_0x43b364?.[_0x5972ca(0xe5)]===_0x257441):[],_0xb1eeb1=_0x5bb949&&_0x593bec[_0x5bb949]?.[_0x5972ca(0xe5)]===_0x257441?[_0x5bb949,_0x593bec[_0x5bb949]]:undefined,_0x59f157=_0xb1eeb1??(_0x20cd2e[_0x5972ca(0xe8)]===0x1?_0x20cd2e[0x0]:undefined),_0xd95c9a=_0x59f157?.[0x0],_0x4d84a2=_0x59f157?.[0x1],_0xbb44d7=_0x257441?_0xd95c9a:_0x4994ea;let _0x50afd0=_0xbb44d7&&_0x593bec[_0xbb44d7]?_0x593bec[_0xbb44d7]:undefined;_0x257441&&_0x4d84a2&&(_0x50afd0=_0x4d84a2);const _0x3ba2ce=_0x257441?_0x4d84a2??_0x50afd0:_0x50afd0,_0x52c4ea=!_0x5bb949&&!_0x45824b&&_0x5559a8&&_0xbb44d7===_0x5559a8,_0x744c71=_0x5bb949||(_0x52c4ea?_0x5559a8:undefined)||(_0x257441?_0xd95c9a:undefined),_0xde0133=_0x3ba2ce?.[_0x5972ca(0xe5)],_0x36f5ba=_0x331d0c?resolveTopLevelAppCode(_0x4c29d3):undefined,_0x360731=_0x2ee608?resolveTopLevelAppCode(_0x57a628):undefined,_0x4b06b4=_0x5bb949||_0x45824b?_0xde0133:undefined,_0x11bb3c=!_0x5bb949&&!_0x45824b?_0xde0133:undefined,_0x45d980=_0x257441||_0x4b06b4||_0x36f5ba||_0x11bb3c||_0x360731||undefined,_0x52edff=_0x331d0c?stringConfigValue(_0x4c29d3[_0x5972ca(0xf0)]):undefined,_0x184896=_0x2ee608?stringConfigValue(_0x57a628['env']):undefined,_0x49cbd7=_0x379bb7[_0x5972ca(0xf0)]||_0x3ba2ce?.[_0x5972ca(0xf0)]||_0x52edff||_0x1ef288(_0x5972ca(0xda))||_0x184896||_0x240b46['env']||DEFAULT_CONFIG_VALUES['env'],_0x54c5c1=_0x3ba2ce?.[_0x5972ca(0xea)]||_0x240b46['locale']||DEFAULT_CONFIG_VALUES[_0x5972ca(0xea)],_0x4ff12f=_0x1ef288(_0x5972ca(0xdd))||_0x3ba2ce?.[_0x5972ca(0xd9)]||_0x240b46[_0x5972ca(0xd9)]||undefined,_0x239f21=_0x1ef288(_0x5972ca(0xe0))||_0x3ba2ce?.['accessKey']||_0x240b46[_0x5972ca(0xe9)]||undefined,_0x38074a=_0x379bb7[_0x5972ca(0x102)]||_0x1ef288('FORMAT')||_0x3ba2ce?.[_0x5972ca(0x102)]||_0x240b46['format'],_0x5c9936=normalizeLegacyOutputFormat(_0x38074a),_0xa4cd05=_0x1ef288(_0x5972ca(0xeb))||_0x3ba2ce?.['pageSize']||_0x240b46[_0x5972ca(0xf9)],_0x4bf720=_0xa4cd05?Number(_0xa4cd05)||undefined:undefined,_0x167d8d=_0x43d141?[_0x43d141[_0x5972ca(0xf5)][_0x5972ca(0x101)],_0x43d141[_0x5972ca(0xef)]['riskLevel']]:[_0x240b46[_0x5972ca(0x101)]],_0x522e15=resolveRiskCeiling(..._0x167d8d,_0x3ba2ce?.[_0x5972ca(0x101)]),_0x134d9b=resolveRiskCeiling(_0x522e15,_0x1ef288(_0x5972ca(0xf1))),_0x17c17a=_0x1ef288(_0x5972ca(0xdb)),_0x312703=_0x17c17a==='1'||_0x17c17a===_0x5972ca(0xe2),_0xbd9215=_0x3ba2ce?.[_0x5972ca(0xe6)]||_0x240b46[_0x5972ca(0xe6)]||DEFAULT_CONFIG_VALUES[_0x5972ca(0xe6)],_0x5dec73=selectConfiguredRegion({'appRegion':_0x3ba2ce?.[_0x5972ca(0xfd)],'projectRegion':_0x331d0c?_0x4c29d3[_0x5972ca(0xfd)]:undefined,'globalRegion':_0x331d0c||_0x2ee608?_0x57a628[_0x5972ca(0xfd)]:undefined,'mergedRegion':_0x240b46[_0x5972ca(0xfd)]}),_0x1ae8c2=normalizeLovrabetRegion(_0x5dec73[_0x5972ca(0xdf)])??DEFAULT_LOVRABET_REGION,_0x4c627e=isDaily(normalizeEnv(String(_0x49cbd7)))?_0x5972ca(0xfb):'production';return{'appCode':typeof _0x45d980===_0x5972ca(0xdc)&&_0x45d980[_0x5972ca(0xed)]()?_0x45d980['trim']():undefined,'region':_0x1ae8c2,'regionConfiguredValue':_0x5dec73['value'],'regionSource':_0x5dec73[_0x5972ca(0xf8)],'env':_0x4c627e,'locale':_0x54c5c1,'cookie':_0x4ff12f,'accessKey':_0x239f21,'format':_0x5c9936,'pageSize':_0x4bf720,'riskLevel':_0x134d9b,'verbose':_0x312703,'apiDir':_0xbd9215,'apps':_0x593bec,'defaultApp':_0x5ebc13,'currentApp':_0x2a10f6?_0xbb44d7:undefined,'explicitAppName':_0x744c71};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a284_0x3ea0(){const _0x4c5f13=['2401302UBHuMq','3lVfCQR','../auth/get-cookie.js','18329230bmKDoc','19913828hbBwzM','cookie','1699775eumnbA','9vVScIF','132iDpfvK','14gtiZSn','authRequired','295975AkNrEl','5043736WOxSfJ','3092888MlJFuK'];a284_0x3ea0=function(){return _0x4c5f13;};return a284_0x3ea0();}function a284_0x4cf4(_0x46f26a,_0x5e8324){_0x46f26a=_0x46f26a-0x161;const _0x3ea0e2=a284_0x3ea0();let _0x4cf4db=_0x3ea0e2[_0x46f26a];return _0x4cf4db;}(function(_0x2848e1,_0x5ec8f0){const _0x3d2509=a284_0x4cf4,_0x4281f7=_0x2848e1();while(!![]){try{const _0x5340f9=parseInt(_0x3d2509(0x162))/0x1+-parseInt(_0x3d2509(0x169))/0x2*(parseInt(_0x3d2509(0x16b))/0x3)+parseInt(_0x3d2509(0x164))/0x4*(-parseInt(_0x3d2509(0x167))/0x5)+parseInt(_0x3d2509(0x16a))/0x6+parseInt(_0x3d2509(0x165))/0x7*(-parseInt(_0x3d2509(0x168))/0x8)+parseInt(_0x3d2509(0x163))/0x9*(parseInt(_0x3d2509(0x16d))/0xa)+parseInt(_0x3d2509(0x16e))/0xb;if(_0x5340f9===_0x5ec8f0)break;else _0x4281f7['push'](_0x4281f7['shift']());}catch(_0x3b57a0){_0x4281f7['push'](_0x4281f7['shift']());}}}(a284_0x3ea0,0xefdb2));import{getIsSessionValid}from'../auth/is-session-valid.js';import{CliErrors}from'../errors.js';export async function buildAuth(_0x161185){const _0x2fa18d=a284_0x4cf4,{getCookie:_0x40fe9d}=await import(_0x2fa18d(0x16c)),_0x198318=_0x161185[_0x2fa18d(0x161)]||_0x40fe9d(),_0x4143ca=_0x198318?await getIsSessionValid():![];return{'cookie':_0x198318,'isLoggedIn':_0x4143ca,async 'getOrLogin'(){const _0x59dba6=_0x2fa18d;if(_0x198318&&_0x4143ca)return _0x198318;throw CliErrors[_0x59dba6(0x166)]();}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a285_0x368ff1=a285_0x14cd;(function(_0x22de2a,_0x2c478b){const _0x140a99=a285_0x14cd,_0x3dd8ee=_0x22de2a();while(!![]){try{const _0x1e46e1=parseInt(_0x140a99(0x100))/0x1*(-parseInt(_0x140a99(0x114))/0x2)+-parseInt(_0x140a99(0x10c))/0x3*(parseInt(_0x140a99(0xfe))/0x4)+parseInt(_0x140a99(0x10d))/0x5+-parseInt(_0x140a99(0xe8))/0x6*(parseInt(_0x140a99(0x116))/0x7)+-parseInt(_0x140a99(0xf7))/0x8+parseInt(_0x140a99(0x10a))/0x9*(-parseInt(_0x140a99(0xfb))/0xa)+parseInt(_0x140a99(0xf3))/0xb*(parseInt(_0x140a99(0xf2))/0xc);if(_0x1e46e1===_0x2c478b)break;else _0x3dd8ee['push'](_0x3dd8ee['shift']());}catch(_0x187ddd){_0x3dd8ee['push'](_0x3dd8ee['shift']());}}}(a285_0x4e67,0x9d9fb));import{existsSync,mkdirSync,readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';function a285_0x14cd(_0x3bec59,_0x48005a){_0x3bec59=_0x3bec59-0xe4;const _0x4e671f=a285_0x4e67();let _0x14cd1b=_0x4e671f[_0x3bec59];return _0x14cd1b;}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=a285_0x368ff1(0xfc);export const CONFIG_NAMES=[NEW_CONFIG_NAME];const normalizedWriteCache=new Map();export function resolveConfigPath(_0x34b7a8){for(const _0x834d42 of CONFIG_NAMES){const _0x399aae=resolve(_0x34b7a8,_0x834d42);if(existsSync(_0x399aae))return _0x399aae;}return undefined;}export function findProjectRootDirectory(_0xc0ce4a=process[a285_0x368ff1(0x115)]()){let _0x3b4bd8=resolve(_0xc0ce4a);const {root:_0x15c43c}=parse(_0x3b4bd8),_0x45ecc6=homedir();while(!![]){if(resolveConfigPath(_0x3b4bd8)){if(_0x3b4bd8===_0x45ecc6)break;return _0x3b4bd8;}if(_0x3b4bd8===_0x15c43c||_0x3b4bd8===_0x45ecc6)break;const _0x449d67=dirname(_0x3b4bd8);if(_0x449d67===_0x3b4bd8)break;_0x3b4bd8=_0x449d67;}return resolve(_0xc0ce4a);}export function getProjectConfigPath(){return resolveConfigPath(process['cwd']());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function isInProject(){return!!getProjectConfigPath();}export function inspectCliConfigJsonFile(_0x2ef37f){const _0x237c8c=a285_0x368ff1;if(!existsSync(_0x2ef37f))return{'status':_0x237c8c(0xf8)};try{const _0x427a8b=readFileSync(_0x2ef37f,{'encoding':_0x237c8c(0x11a)});if(!_0x427a8b?.[_0x237c8c(0x119)]())return{'status':_0x237c8c(0xff)};const _0x17a09b=JSON[_0x237c8c(0x11c)](_0x427a8b);return{'status':'ok','data':_0x17a09b};}catch(_0x1d48d1){return{'status':_0x237c8c(0x112),'message':_0x1d48d1 instanceof Error?_0x1d48d1[_0x237c8c(0x11b)]:String(_0x1d48d1)};}}function parseCliConfigJsonFile(_0x576bb6,_0x136b80,_0x3a52fb){const _0x5e2cbe=a285_0x368ff1,_0x55dc5e=inspectCliConfigJsonFile(_0x576bb6);if(_0x55dc5e[_0x5e2cbe(0xe9)]==='missing'||_0x55dc5e['status']===_0x5e2cbe(0xff))return{};if(_0x55dc5e[_0x5e2cbe(0xe9)]==='ok')return _0x55dc5e[_0x5e2cbe(0xea)];return _0x136b80===_0x5e2cbe(0x107)&&_0x3a52fb&&console[_0x5e2cbe(0x112)](CLI_BIN_NAME+':\x20'+_0x3a52fb+'\x20config\x20file\x20ignored\x20(invalid\x20JSON\x20or\x20unreadable):\x20'+_0x576bb6+'\x0a\x20\x20'+_0x55dc5e['message']),{};}function normalizeLegacyConfigShape(_0x3d3c90){const _0x5cb7e6=a285_0x368ff1;if(!_0x3d3c90||typeof _0x3d3c90!==_0x5cb7e6(0xf4))return{'config':{},'migrated':![]};const _0x2f0c9a={..._0x3d3c90},_0x86460c=_0x2f0c9a[_0x5cb7e6(0x113)]&&typeof _0x2f0c9a[_0x5cb7e6(0x113)]===_0x5cb7e6(0xf4)?{..._0x2f0c9a[_0x5cb7e6(0x113)]}:{},_0x458189=Object['keys'](_0x86460c)[_0x5cb7e6(0x10e)],_0x1bb023=_0x2f0c9a[_0x5cb7e6(0xeb)]||_0x2f0c9a[_0x5cb7e6(0x109)];let _0x38cb85=![];if(_0x1bb023&&_0x458189===0x0){const _0x74241b=typeof _0x2f0c9a['defaultApp']===_0x5cb7e6(0x117)&&_0x2f0c9a['defaultApp'][_0x5cb7e6(0x119)]()?_0x2f0c9a['defaultApp']:String(_0x1bb023)[_0x5cb7e6(0x119)]();_0x86460c[_0x74241b]={'appcode':String(_0x1bb023)[_0x5cb7e6(0x119)](),..._0x2f0c9a[_0x5cb7e6(0xf1)]!=null?{'env':_0x2f0c9a[_0x5cb7e6(0xf1)]}:{},..._0x2f0c9a[_0x5cb7e6(0xf0)]!=null?{'apiDir':_0x2f0c9a[_0x5cb7e6(0xf0)]}:{},..._0x2f0c9a[_0x5cb7e6(0x104)]!=null?{'cookie':_0x2f0c9a[_0x5cb7e6(0x104)]}:{},..._0x2f0c9a[_0x5cb7e6(0xf5)]!=null?{'accessKey':_0x2f0c9a[_0x5cb7e6(0xf5)]}:{},..._0x2f0c9a[_0x5cb7e6(0xe4)]!=null?{'format':_0x2f0c9a[_0x5cb7e6(0xe4)]}:{},..._0x2f0c9a[_0x5cb7e6(0x110)]!=null?{'pageSize':_0x2f0c9a[_0x5cb7e6(0x110)]}:{},..._0x2f0c9a[_0x5cb7e6(0xe6)]!=null?{'riskLevel':_0x2f0c9a[_0x5cb7e6(0xe6)]}:{},..._0x2f0c9a[_0x5cb7e6(0xee)]!=null?{'locale':_0x2f0c9a[_0x5cb7e6(0xee)]}:{}},_0x2f0c9a[_0x5cb7e6(0x113)]=_0x86460c,delete _0x2f0c9a[_0x5cb7e6(0x106)],_0x38cb85=!![];}return('appcode'in _0x2f0c9a||'app'in _0x2f0c9a)&&(delete _0x2f0c9a[_0x5cb7e6(0xeb)],delete _0x2f0c9a[_0x5cb7e6(0x109)],_0x38cb85=!![]),{'config':_0x2f0c9a,'migrated':_0x38cb85};}function writeNormalizedConfigIfNeeded(_0x4a48db,_0x2a1dc2){const _0x5b5c41=a285_0x368ff1,_0x437993=JSON[_0x5b5c41(0xef)](normalizeConfigForWrite(_0x2a1dc2),null,0x2)+'\x0a';if(normalizedWriteCache[_0x5b5c41(0x10b)](_0x4a48db)===_0x437993)return;writeConfigFile(_0x4a48db,_0x2a1dc2),normalizedWriteCache[_0x5b5c41(0x105)](_0x4a48db,_0x437993);}function parseAndNormalizeConfig(_0x247083,_0x2ff4f3,_0x4110b5){const _0xee2241=a285_0x368ff1,_0x3484e8=parseCliConfigJsonFile(_0x247083,_0x2ff4f3,_0x4110b5),_0x2f2cef=normalizeLegacyConfigShape(_0x3484e8);if(_0x2f2cef[_0xee2241(0x102)])try{writeNormalizedConfigIfNeeded(_0x247083,_0x2f2cef[_0xee2241(0xf6)]);}catch{}return _0x2f2cef[_0xee2241(0xf6)];}export function loadRawConfigLayers(_0x5b556c){const _0x595add=a285_0x368ff1;let _0x5249d0={},_0x25dbbc={};const _0x3afb6e=resolveConfigPath(homedir());_0x3afb6e&&(_0x5249d0=parseAndNormalizeConfig(_0x3afb6e,_0x595add(0x107),'Global'));const _0xb5f765=_0x5b556c??findProjectRootDirectory(),_0x349682=resolveConfigPath(_0xb5f765);return _0x349682&&(_0x25dbbc=parseAndNormalizeConfig(_0x349682,_0x595add(0x107),'Project')),{'globalPath':_0x3afb6e,'projectPath':_0x349682,'globalConfig':_0x5249d0,'projectConfig':_0x25dbbc};}const INHERIT_WHITELIST=['cookie',a285_0x368ff1(0xf5),a285_0x368ff1(0xee),'format',a285_0x368ff1(0xe6),'pageSize',a285_0x368ff1(0xec),'routing','userDomain',a285_0x368ff1(0x103),a285_0x368ff1(0x10f),a285_0x368ff1(0x111),a285_0x368ff1(0x101),a285_0x368ff1(0xfd),'appDomain',a285_0x368ff1(0x118),a285_0x368ff1(0xf9)];export function mergeRawConfigLayers(_0x3dc2c5){const _0x5954ce=a285_0x368ff1,{globalConfig:_0x433ae8,projectConfig:_0x1668b1}=_0x3dc2c5,_0x49bac2=!!_0x3dc2c5['projectPath']||Object[_0x5954ce(0xfa)](_0x1668b1)['length']>0x0;if(!_0x49bac2)return mergeGlobalOnly(_0x433ae8);return mergeProjectFirst(_0x433ae8,_0x1668b1);}function mergeGlobalOnly(_0xd16cae){const _0x407b22=a285_0x368ff1,_0x2ee468={..._0xd16cae};delete _0x2ee468[_0x407b22(0xe5)];const _0x297574=_0xd16cae['apps']&&typeof _0xd16cae[_0x407b22(0x113)]==='object'?_0xd16cae[_0x407b22(0x113)]:{};if(Object[_0x407b22(0xfa)](_0x297574)[_0x407b22(0x10e)]>0x0)_0x2ee468[_0x407b22(0x113)]=_0x297574;if(_0xd16cae[_0x407b22(0x106)])_0x2ee468['defaultApp']=_0xd16cae[_0x407b22(0x106)];return _0x2ee468;}function mergeProjectFirst(_0x56fe39,_0x4ddf50){const _0x16005f=a285_0x368ff1,_0x1f694d={..._0x4ddf50};delete _0x1f694d[_0x16005f(0xe5)];for(const _0x1d51a2 of INHERIT_WHITELIST){!(_0x1d51a2 in _0x1f694d)&&_0x1d51a2 in _0x56fe39&&(_0x1f694d[_0x1d51a2]=_0x56fe39[_0x1d51a2]);}const _0x382538=_0x4ddf50[_0x16005f(0x113)]&&typeof _0x4ddf50[_0x16005f(0x113)]===_0x16005f(0xf4)?_0x4ddf50['apps']:{};return Object[_0x16005f(0xfa)](_0x382538)['length']>0x0?_0x1f694d[_0x16005f(0x113)]=_0x382538:delete _0x1f694d['apps'],_0x16005f(0x106)in _0x4ddf50?_0x1f694d[_0x16005f(0x106)]=_0x4ddf50['defaultApp']:delete _0x1f694d[_0x16005f(0x106)],_0x1f694d;}export function readRawConfigWithLayers(_0x5cf32d){const _0x1bf22c=loadRawConfigLayers(_0x5cf32d);return{'config':mergeRawConfigLayers(_0x1bf22c),'layers':_0x1bf22c};}function a285_0x4e67(){const _0x5334c4=['674TwEAOw','cwd','7JxnKtY','string','localDomain','trim','utf8','message','parse','format','inherit','riskLevel','silent','6012678lXrRQe','status','data','appcode','region','.tmp','locale','stringify','apiDir','env','107628jErRbA','5137JRsnIc','object','accessKey','config','6734752MrXSYV','missing','certificateDomain','keys','10FSJavf','.rabetbase.json','kbServiceDomain','2372XgnvKz','empty','2235uNalqy','kbDomain','migrated','apiDomain','cookie','set','defaultApp','warn','project','app','391869gTeTQh','get','6423Pjauma','1837050DQaeWl','length','runtimeDomain','pageSize','skillDomain','error','apps'];a285_0x4e67=function(){return _0x5334c4;};return a285_0x4e67();}export function readRawConfig(_0x3fda42){return mergeRawConfigLayers(loadRawConfigLayers(_0x3fda42));}export function readConfigFile(_0x34bab7){const _0x2ba675=a285_0x368ff1;return parseAndNormalizeConfig(_0x34bab7,_0x2ba675(0xe7));}export function writeConfigFile(_0x2c8b80,_0x410b40){const _0x3957d1=a285_0x368ff1,_0x1c17d1=dirname(_0x2c8b80);!existsSync(_0x1c17d1)&&mkdirSync(_0x1c17d1,{'recursive':!![]});const _0x405517=_0x2c8b80+_0x3957d1(0xed);try{const _0x13e2cc=normalizeConfigForWrite(_0x410b40);writeFileSync(_0x405517,JSON[_0x3957d1(0xef)](_0x13e2cc,null,0x2)+'\x0a',{'encoding':_0x3957d1(0x11a),'mode':0x180}),renameSync(_0x405517,_0x2c8b80);}catch(_0x2a9281){try{unlinkSync(_0x405517);}catch{}throw _0x2a9281;}}export function resolveWriteConfigPath(_0x2c26b5){const _0x477f54=a285_0x368ff1,_0x57dcdf=_0x2c26b5===_0x477f54(0x108)?process[_0x477f54(0x115)]():homedir(),_0x2d05fb=resolveConfigPath(_0x57dcdf);return _0x2d05fb??resolve(_0x57dcdf,NEW_CONFIG_NAME);}
|
package/lib/context.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a286_0x25fcfd=a286_0x24bc;(function(_0x4e04da,_0x5f20ee){const _0x4f0a3a=a286_0x24bc,_0x48aa56=_0x4e04da();while(!![]){try{const _0x51cf78=-parseInt(_0x4f0a3a(0x83))/0x1*(-parseInt(_0x4f0a3a(0xa3))/0x2)+-parseInt(_0x4f0a3a(0x81))/0x3+parseInt(_0x4f0a3a(0x8a))/0x4*(-parseInt(_0x4f0a3a(0xa6))/0x5)+parseInt(_0x4f0a3a(0x9d))/0x6*(parseInt(_0x4f0a3a(0x8f))/0x7)+-parseInt(_0x4f0a3a(0x6e))/0x8+parseInt(_0x4f0a3a(0x72))/0x9+parseInt(_0x4f0a3a(0xa0))/0xa;if(_0x51cf78===_0x5f20ee)break;else _0x48aa56['push'](_0x48aa56['shift']());}catch(_0x14b949){_0x48aa56['push'](_0x48aa56['shift']());}}}(a286_0x4607,0x66342));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_0x24bc(_0x224ea9,_0x487a34){_0x224ea9=_0x224ea9-0x69;const _0x460721=a286_0x4607();let _0x24bcf4=_0x460721[_0x224ea9];return _0x24bcf4;}import{resolveEnterpriseRoutingManifest}from'./config/domain-config.js';import{logger}from'./utils/logger.js';import{resolveApiModelSource}from'./api/model-source.js';function a286_0x4607(){const _0x29eb29=['routingConfig','cdn','runtimeDomain','setLogPath','3264632wOmgRr','certificateDomain','./constant/env.js','string','5374116ACkrjR','regionLocation','project\x20Rabetbase\x20configuration','project','some','appDomain','kbDomain','currentApp','merged','global','template_base_url','config','region','slice','configuredRegion','1842555MzzgZg','userDomain','2381PoAwJK','replace','entries','keys','appcode','./constant/domain.js','skillDomain','36huzWTH','prototype','argv','domains','Rabetbase\x20configuration','7PUTSSz','raw','map','app','agentDomain','apiDir','doctor','defaultApp','apiDomain','cwd','platformDomain','apiGroup','trim','env','981006VebDhb','cookie','kbServiceDomain','4314230FTfxoM','app\x20profile\x20\x22','projectConfig','346VNFezp','object','apps','90595daqOBk','filter','globalConfig','setRawCommand','call','regionSource','source','skillHubDomain','length','localDomain'];a286_0x4607=function(){return _0x29eb29;};return a286_0x4607();}export{CONFIG_NAMES,NEW_CONFIG_NAME,findProjectRootDirectory,getGlobalConfigPath,getProjectConfigPath,inspectCliConfigJsonFile,isInProject,loadRawConfigLayers,mergeRawConfigLayers,readConfigFile,readRawConfig,readRawConfigWithLayers,resolveConfigPath,resolveWriteConfigPath,writeConfigFile};function env(_0x307423){return process.env[`RABETBASE_${_0x307423}`]||process.env[`LOVRABET_${_0x307423}`]||undefined;}function optionalString(_0x300710){const _0x2af6a2=a286_0x24bc;return typeof _0x300710===_0x2af6a2(0x71)&&_0x300710[_0x2af6a2(0x9b)]()?_0x300710[_0x2af6a2(0x9b)]():undefined;}export function isRoutingRecoveryService(_0x40d422){const _0x1c43b3=a286_0x24bc;return _0x40d422===_0x1c43b3(0x7d)||_0x40d422===_0x1c43b3(0x95);}export async function createContext(_0xf2dfdc){const _0x38ae32=a286_0x24bc,{config:_0x567d84,layers:_0x25a63f}=readRawConfigWithLayers(),_0x3a499a=buildConfig(_0x567d84,_0xf2dfdc,_0x25a63f);await initGlobalEnvironment(_0x3a499a);const {getUserDomain:_0x24ec02,getApiDomain:_0x4c1679}=await import(_0x38ae32(0x88)),_0x52bd8d={'apiDomain':_0x4c1679(),'userDomain':_0x24ec02()},_0x18cd2d=await buildAuth(_0x3a499a);logger[_0x38ae32(0x6d)](process[_0x38ae32(0x98)]());const _0x379e36=(CLI_BIN_NAME+'\x20'+process[_0x38ae32(0x8c)][_0x38ae32(0x7f)](0x2)['join']('\x20'))[_0x38ae32(0x9b)]();logger[_0x38ae32(0xa9)](_0x379e36);const {isNonInteractive:_0x21bb70}=await import('./utils/is-non-interactive.js'),_0x37429b=_0x21bb70(_0xf2dfdc);return{'config':_0x3a499a,'auth':_0x18cd2d,'logger':logger,'env':_0x52bd8d,'nonInteractive':_0x37429b};}export function buildConfigFromFlags(_0x5ce853){const {config:_0x45f526,layers:_0x4c527b}=readRawConfigWithLayers();return buildConfig(_0x45f526,_0x5ce853,_0x4c527b);}export async function initGlobalEnvironment(_0x115b66){const _0x5a72ac=a286_0x24bc,_0x59b1ef=_0x115b66[_0x5a72ac(0xab)]===_0x5a72ac(0x92)&&_0x115b66[_0x5a72ac(0x79)]?_0x5a72ac(0xa1)+_0x115b66[_0x5a72ac(0x79)]+'\x22':_0x115b66[_0x5a72ac(0xab)]===_0x5a72ac(0x75)?_0x5a72ac(0x74):_0x115b66[_0x5a72ac(0xab)]===_0x5a72ac(0x7b)?'global\x20Rabetbase\x20configuration':_0x5a72ac(0x8e);await initConfiguredEnvironment({'raw':_0x115b66[_0x5a72ac(0x90)],'configuredRegion':_0x115b66['regionConfiguredValue']??_0x115b66[_0x5a72ac(0x90)]?.[_0x5a72ac(0x7e)]??_0x115b66[_0x5a72ac(0x7e)],'regionLocation':_0x59b1ef,'targetEnv':_0x115b66[_0x5a72ac(0x9c)]});}async function initConfiguredEnvironment(_0x1dbd38){const _0xfcec50=a286_0x24bc,_0x15dfa1=resolveConfiguredRegion(_0x1dbd38[_0xfcec50(0x80)],_0x1dbd38[_0xfcec50(0x73)]),_0x400ca4=resolveEnterpriseRoutingManifest(_0x1dbd38['raw']?.['routing']),_0x462210={'region':_0x15dfa1,'apiDomain':_0x400ca4?_0x400ca4['domains']['apiDomain']:optionalString(_0x1dbd38[_0xfcec50(0x90)]?.['apiDomain']),'userDomain':_0x400ca4?_0x400ca4[_0xfcec50(0x8d)][_0xfcec50(0x82)]:optionalString(_0x1dbd38[_0xfcec50(0x90)]?.['userDomain']),'runtimeDomain':_0x400ca4?_0x400ca4[_0xfcec50(0x8d)][_0xfcec50(0x6c)]:optionalString(_0x1dbd38[_0xfcec50(0x90)]?.[_0xfcec50(0x6c)]),'skillDomain':_0x400ca4?_0x400ca4['domains'][_0xfcec50(0x89)]:optionalString(_0x1dbd38[_0xfcec50(0x90)]?.[_0xfcec50(0x89)])||optionalString(_0x1dbd38['raw']?.[_0xfcec50(0xad)])||optionalString(_0x1dbd38['raw']?.['agentDomain'])||optionalString(_0x1dbd38['raw']?.[_0xfcec50(0x99)]),'kbDomain':_0x400ca4?_0x400ca4[_0xfcec50(0x8d)]['kbDomain']:optionalString(_0x1dbd38['raw']?.[_0xfcec50(0x78)])||optionalString(_0x1dbd38[_0xfcec50(0x90)]?.[_0xfcec50(0x93)])||optionalString(_0x1dbd38[_0xfcec50(0x90)]?.[_0xfcec50(0x99)]),'kbServiceDomain':_0x400ca4?_0x400ca4['domains'][_0xfcec50(0x9f)]:optionalString(_0x1dbd38[_0xfcec50(0x90)]?.['kbServiceDomain']),'appDomain':_0x400ca4?_0x400ca4[_0xfcec50(0x8d)][_0xfcec50(0x77)]:optionalString(_0x1dbd38['raw']?.[_0xfcec50(0x77)]),'localDomain':_0x400ca4?_0x400ca4['domains']['localDomain']:optionalString(_0x1dbd38['raw']?.['localDomain']),'certificateDomain':_0x400ca4?_0x400ca4[_0xfcec50(0x8d)][_0xfcec50(0x6f)]:optionalString(_0x1dbd38[_0xfcec50(0x90)]?.['certificateDomain']),'cdn':_0x400ca4?.[_0xfcec50(0x6b)],'allowOfficialKbServiceDefault':!(_0x400ca4!==undefined||[_0xfcec50(0x97),_0xfcec50(0x82),_0xfcec50(0x6c),_0xfcec50(0x89),_0xfcec50(0xad),_0xfcec50(0x78),_0xfcec50(0x9f),_0xfcec50(0x93),_0xfcec50(0x99),_0xfcec50(0x77),_0xfcec50(0x69),_0xfcec50(0x6f)][_0xfcec50(0x76)](_0x67caf7=>Object[_0xfcec50(0x8b)]['hasOwnProperty'][_0xfcec50(0xaa)](_0x1dbd38[_0xfcec50(0x90)]??{},_0x67caf7)))},{initEnv:_0x15973e}=await import(_0xfcec50(0x70)),{initDomains:_0x5620ad}=await import(_0xfcec50(0x88));_0x15973e(_0x1dbd38['targetEnv']),_0x5620ad(_0x462210);}export async function initMultiAppEnvironment(_0x1ff790){const _0x1788e0=a286_0x24bc;await initConfiguredEnvironment({'raw':_0x1ff790[_0x1788e0(0x6a)],'configuredRegion':_0x1ff790[_0x1788e0(0x7e)],'regionLocation':_0x1788e0(0xa1)+_0x1ff790['name']+'\x22','targetEnv':_0x1ff790[_0x1788e0(0x9c)]==='daily'?'daily':'production'});}export function getConfigAppCode(_0xf03c63){const _0x4f3f04=a286_0x24bc,_0x355f8b=readRawConfig(_0xf03c63);if(_0x355f8b[_0x4f3f04(0xa5)]&&typeof _0x355f8b[_0x4f3f04(0xa5)]===_0x4f3f04(0xa4)){const _0x4ebb1e=_0x355f8b[_0x4f3f04(0x96)];if(_0x4ebb1e)return _0x355f8b[_0x4f3f04(0xa5)][_0x4ebb1e]?.[_0x4f3f04(0x87)]?String(_0x355f8b[_0x4f3f04(0xa5)][_0x4ebb1e]['appcode'])[_0x4f3f04(0x9b)]():undefined;const _0x3e62c5=Object['values'](_0x355f8b[_0x4f3f04(0xa5)]);if(_0x3e62c5['length']===0x1&&_0x3e62c5[0x0]?.[_0x4f3f04(0x87)])return String(_0x3e62c5[0x0][_0x4f3f04(0x87)])[_0x4f3f04(0x9b)]();}const _0x2bebcf=_0x355f8b[_0x4f3f04(0x87)]||_0x355f8b['app'];if(typeof _0x2bebcf!==_0x4f3f04(0x71)||_0x2bebcf[_0x4f3f04(0x9b)]()==='')return undefined;return _0x2bebcf[_0x4f3f04(0x9b)]();}const CONNECTION_ROUTING_KEYS=['routing','apiDomain',a286_0x25fcfd(0x82),a286_0x25fcfd(0x6c),a286_0x25fcfd(0x89),a286_0x25fcfd(0xad),a286_0x25fcfd(0x78),a286_0x25fcfd(0x9f),a286_0x25fcfd(0x93),a286_0x25fcfd(0x99),a286_0x25fcfd(0x77),a286_0x25fcfd(0x69),a286_0x25fcfd(0x6f)];function withAppProfileRouting(_0x426494,_0x30f749){if(!_0x30f749||_0x30f749['kbServiceDomain']===undefined)return _0x426494;return{..._0x426494,'kbServiceDomain':_0x30f749['kbServiceDomain']};}function pickConnectionRoutingConfig(_0x28c778,_0x2936d9){const _0x4109e4={'region':_0x2936d9};for(const _0x11ceb2 of CONNECTION_ROUTING_KEYS){if(_0x28c778[_0x11ceb2]!==undefined)_0x4109e4[_0x11ceb2]=_0x28c778[_0x11ceb2];}return _0x4109e4;}export function getMultiAppConfigs(_0x3f6d56=a286_0x25fcfd(0x75),_0x2ed209){const _0x3fc407=a286_0x25fcfd,_0x98685e=loadRawConfigLayers(_0x2ed209);let _0x393168,_0x3e0d58;const _0x2b5f8f=mergeRawConfigLayers(_0x98685e),_0x533880=_0x98685e['globalConfig'][_0x3fc407(0xa5)]&&typeof _0x98685e[_0x3fc407(0xa8)][_0x3fc407(0xa5)]===_0x3fc407(0xa4)?_0x98685e[_0x3fc407(0xa8)]['apps']:{},_0x972c6c=_0x98685e['projectConfig']['apps']&&typeof _0x98685e[_0x3fc407(0xa2)][_0x3fc407(0xa5)]==='object'?_0x98685e[_0x3fc407(0xa2)]['apps']:{};_0x3f6d56===_0x3fc407(0x7a)?(_0x393168={..._0x533880,..._0x972c6c},_0x3e0d58=_0x2b5f8f[_0x3fc407(0x96)]):(_0x393168=_0x98685e['projectConfig'][_0x3fc407(0xa5)],_0x3e0d58=_0x98685e[_0x3fc407(0xa2)][_0x3fc407(0x96)]);!_0x3e0d58&&_0x393168&&typeof _0x393168==='object'&&Object[_0x3fc407(0x86)](_0x393168)[_0x3fc407(0xae)]===0x1&&(_0x3e0d58=Object[_0x3fc407(0x86)](_0x393168)[0x0]);if(!_0x393168||typeof _0x393168!=='object'||Object['keys'](_0x393168)['length']===0x0)return null;return Object[_0x3fc407(0x85)](_0x393168)[_0x3fc407(0x91)](([_0x1bcaa2,_0x2a754e])=>{const _0x54fc85=_0x3fc407,_0x361e10=_0x3f6d56==='project'||Object[_0x54fc85(0x8b)]['hasOwnProperty'][_0x54fc85(0xaa)](_0x972c6c,_0x1bcaa2),_0x28dc66=withAppProfileRouting(_0x361e10?_0x2b5f8f:_0x98685e[_0x54fc85(0xa8)],_0x2a754e),_0x39bcce=resolveEffectiveRegion({'appRegion':_0x2a754e?.[_0x54fc85(0x7e)],'projectRegion':_0x361e10?_0x98685e[_0x54fc85(0xa2)][_0x54fc85(0x7e)]:undefined,'globalRegion':_0x98685e['globalConfig'][_0x54fc85(0x7e)],'mergedRegion':_0x28dc66['region'],'appName':_0x1bcaa2});return{'name':_0x1bcaa2,'appcode':_0x2a754e?.[_0x54fc85(0x87)]||'','apiGroup':optionalString(_0x2a754e?.[_0x54fc85(0x9a)]),'isDefault':_0x1bcaa2===_0x3e0d58,'region':_0x39bcce[_0x54fc85(0x7e)],'regionSource':_0x39bcce[_0x54fc85(0xac)],'env':_0x2a754e?.['env'],'apiDir':optionalString(_0x2a754e?.['apiDir'])||optionalString(_0x28dc66[_0x54fc85(0x94)]),'cookie':_0x2a754e?.[_0x54fc85(0x9e)]||undefined,'routingConfig':pickConnectionRoutingConfig(_0x28dc66,_0x39bcce['region'])};})[_0x3fc407(0xa7)](_0x2a6836=>_0x2a6836[_0x3fc407(0x87)]);}export function getTemplateBaseUrl(_0x4f4b4f){const _0x170639=a286_0x25fcfd,_0x1d025a=readRawConfig(_0x4f4b4f);if(_0x1d025a['template_base_url']&&typeof _0x1d025a[_0x170639(0x7c)]===_0x170639(0x71))return _0x1d025a['template_base_url'][_0x170639(0x84)](/\/$/,'');return'https://g.lovrabet.com/dist/lovrabet-skill';}function buildConfig(_0x52abb3,_0xacd321,_0x339597){const _0x2a1f07=a286_0x25fcfd,_0x58d8d9=resolveAppConfig({'raw':_0x52abb3,'flags':_0xacd321,'layers':_0x339597,'readEnv':env}),_0x1c9206=_0x58d8d9[_0x2a1f07(0x79)]?_0x58d8d9[_0x2a1f07(0xa5)][_0x58d8d9['currentApp']]:undefined;return{..._0x58d8d9,'raw':withAppProfileRouting(_0x52abb3,_0x1c9206)};}export function resolveApiFilePath(_0x2b8d29,_0x981f86,_0x2f7def){return resolveApiModelSource(_0x2b8d29,_0x981f86,_0x2f7def)['filePath'];}
|
|
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'];}
|