@lovrabet/rabetbase-cli 2.5.4-beta.3 → 2.5.4-beta.4
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/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/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/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/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/service.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/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.d.ts +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-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/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 +2 -2
- package/skills/rabetbase/references/rabetbase-user-account.md +8 -8
- package/skills/rabetbase.manifest.json +3 -3
package/lib/config/schema.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a256_0x4f83e3=a256_0x13b9;(function(_0x308b42,_0x2076e5){const _0x2fb0f2=a256_0x13b9,_0x19f422=_0x308b42();while(!![]){try{const _0x5d9b2f=parseInt(_0x2fb0f2(0xec))/0x1+parseInt(_0x2fb0f2(0x11e))/0x2+parseInt(_0x2fb0f2(0x117))/0x3+-parseInt(_0x2fb0f2(0x11a))/0x4*(-parseInt(_0x2fb0f2(0x101))/0x5)+-parseInt(_0x2fb0f2(0x102))/0x6*(parseInt(_0x2fb0f2(0xf0))/0x7)+-parseInt(_0x2fb0f2(0x11d))/0x8*(parseInt(_0x2fb0f2(0x11b))/0x9)+parseInt(_0x2fb0f2(0x114))/0xa;if(_0x5d9b2f===_0x2076e5)break;else _0x19f422['push'](_0x19f422['shift']());}catch(_0x2dde5f){_0x19f422['push'](_0x19f422['shift']());}}}(a256_0x3e68,0x6892d));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=['cookie',a256_0x4f83e3(0x107),a256_0x4f83e3(0x103),'format','riskLevel',a256_0x4f83e3(0xe6),a256_0x4f83e3(0xf8),a256_0x4f83e3(0xee),'apiDomain',a256_0x4f83e3(0x119),'skillDomain',a256_0x4f83e3(0xf3),a256_0x4f83e3(0x118),a256_0x4f83e3(0xe5),'localDomain','certificateDomain'];export const TOP_LEVEL_CONFIG_KEYS=new Set([a256_0x4f83e3(0xfb),'env',a256_0x4f83e3(0x103),'format','cookie',a256_0x4f83e3(0x107),a256_0x4f83e3(0xeb),'region',a256_0x4f83e3(0xee),'apiDomain',a256_0x4f83e3(0x119),a256_0x4f83e3(0x10d),a256_0x4f83e3(0xf3),a256_0x4f83e3(0x118),a256_0x4f83e3(0xe5),a256_0x4f83e3(0x11f),a256_0x4f83e3(0xf9)]);export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES],'region':[...ENABLED_LOVRABET_REGION_VALUES]};export function formatConfigKeyList(_0x552cf1){return[..._0x552cf1]['join'](',\x20');}function a256_0x3e68(){const _0x515720=['apiGroup','appcode','values','inherit','map','length','fromEntries','77080AuTRkZ','4610634cEhDCc','locale','Country/region\x20for\x20this\x20app\x20profile','trim','some','accessKey','cookie','Join\x20key\x20for\x20app\x20profiles\x20that\x20share\x20one\x20generated\x20API\x20model\x20registry','Auth\x20cookie','entries','has','skillDomain','object','defaultFormat','Config\x20key\x20(','Target\x20environment','apps','pageSize','5057490mDxyqh','Risk\x20level','number','141363tStHyI','kbServiceDomain','runtimeDomain','76TzGyWM','1325601dpqTlg','keys','24ZBvNBQ','418598euMebL','localDomain','defaultApp','appDomain','region','app','Access\x20key','riskLevel','format','apiDir','583566qwcbws','Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','userDomain','en-US','7Vdpuju','string','filter','kbDomain','env','zh-CN','Default\x20page\x20size','API\x20directory\x20path','routing','certificateDomain'];a256_0x3e68=function(){return _0x515720;};return a256_0x3e68();}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function isTopLevelConfigKey(_0x530fc8){const _0x3de80a=a256_0x4f83e3;return TOP_LEVEL_CONFIG_KEYS[_0x3de80a(0x10c)](_0x530fc8);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x3917d1=a256_0x4f83e3;return _0x3917d1(0x110)+getTopLevelConfigKeySummary()+')';}export const APP_PROFILE_FLAG_KEY_MAP={'apiGroup':'apiGroup','region':'region','env':a256_0x4f83e3(0xf4),'apiDir':'apiDir','cookie':a256_0x4f83e3(0x108),'accessKey':a256_0x4f83e3(0x107),'defaultFormat':'format','pageSize':a256_0x4f83e3(0x113),'riskLevel':a256_0x4f83e3(0xe9),'locale':'locale'};function a256_0x13b9(_0x523e52,_0x29c303){_0x523e52=_0x523e52-0xe4;const _0x3e689e=a256_0x3e68();let _0x13b9eb=_0x3e689e[_0x523e52];return _0x13b9eb;}export function getAppProfileFlagDefs(){const _0x4e9fc8=a256_0x4f83e3;return[{'name':_0x4e9fc8(0xfa),'type':_0x4e9fc8(0xf1),'description':_0x4e9fc8(0x109)},{'name':_0x4e9fc8(0xe6),'type':_0x4e9fc8(0xf1),'description':_0x4e9fc8(0x104),'enum':[...ENABLED_LOVRABET_REGION_VALUES]},{'name':_0x4e9fc8(0xf4),'type':_0x4e9fc8(0xf1),'description':_0x4e9fc8(0x111),'enum':[...RABETBASE_ENV_VALUES]},{'name':'apiDir','type':'string','description':_0x4e9fc8(0xf7)},{'name':'cookie','type':_0x4e9fc8(0xf1),'description':_0x4e9fc8(0x10a),'hidden':!![]},{'name':'accessKey','type':_0x4e9fc8(0xf1),'description':_0x4e9fc8(0xe8),'hidden':!![]},{'name':_0x4e9fc8(0x10f),'type':_0x4e9fc8(0xf1),'description':_0x4e9fc8(0xed),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':_0x4e9fc8(0x113),'type':_0x4e9fc8(0x116),'description':_0x4e9fc8(0xf6)},{'name':_0x4e9fc8(0xe9),'type':_0x4e9fc8(0xf1),'description':_0x4e9fc8(0x115),'enum':[...RISK_LEVEL_VALUES]},{'name':_0x4e9fc8(0x103),'type':_0x4e9fc8(0xf1),'description':'App\x20locale\x20(not\x20CLI\x20language;\x20reserved\x20for\x20later\x20app\x20use)'}];}export function collectAppProfileOverrides(_0x590048){const _0x50d8f6=a256_0x4f83e3,_0x5d9823={};for(const [_0x19c0e1,_0x171f51]of Object[_0x50d8f6(0x10b)](APP_PROFILE_FLAG_KEY_MAP)){const _0x1b3d7=_0x590048(_0x19c0e1);if(!_0x1b3d7)continue;_0x5d9823[_0x171f51]=_0x171f51===_0x50d8f6(0x113)?Number(_0x1b3d7):_0x1b3d7;}return _0x5d9823;}export function buildAppProfileListFields(_0x435f8d){const _0x2b1ab8=a256_0x4f83e3;return{'apiGroup':_0x435f8d[_0x2b1ab8(0xfa)]??null,'region':_0x435f8d['region']??null,'env':_0x435f8d['env']??null,'apiDir':_0x435f8d[_0x2b1ab8(0xeb)]??null,'hasCookie':!!_0x435f8d['cookie'],'hasAccessKey':!!_0x435f8d[_0x2b1ab8(0x107)],'format':_0x435f8d[_0x2b1ab8(0xea)]??null,'pageSize':_0x435f8d[_0x2b1ab8(0x113)]??null,'riskLevel':_0x435f8d[_0x2b1ab8(0xe9)]??null,'locale':_0x435f8d['locale']??null};}export function buildAppDoctorFields(_0x28b564,_0x4f8b39){const _0x59679e=a256_0x4f83e3;return{'region':{'value':_0x28b564['region']||_0x4f8b39[_0x59679e(0xe6)],'source':_0x28b564[_0x59679e(0xe6)]?_0x59679e(0xe7):'inherit'},'env':{'value':_0x28b564[_0x59679e(0xf4)]||_0x4f8b39[_0x59679e(0xf4)],'source':_0x28b564[_0x59679e(0xf4)]?_0x59679e(0xe7):_0x59679e(0xfd)},'apiDir':{'value':_0x28b564[_0x59679e(0xeb)]||_0x4f8b39[_0x59679e(0xeb)],'source':_0x28b564['apiDir']?_0x59679e(0xe7):_0x59679e(0xfd)},'cookie':{'value':_0x28b564['cookie']||_0x4f8b39['cookie'],'source':_0x28b564[_0x59679e(0x108)]?'app':_0x59679e(0xfd)},'accessKey':{'value':_0x28b564[_0x59679e(0x107)]||_0x4f8b39[_0x59679e(0x107)],'source':_0x28b564[_0x59679e(0x107)]?_0x59679e(0xe7):_0x59679e(0xfd)}};}export function buildCanonicalAppConfig(_0x43d580,_0x2ce379){const _0x520729=a256_0x4f83e3,_0x34b32b=_0x43d580['map'](_0x384079=>String(_0x384079||'')[_0x520729(0x105)]())[_0x520729(0xf2)](Boolean);if(_0x34b32b['length']===0x0)return{};const _0x48f8fd={};for(const _0x52d506 of _0x34b32b){_0x48f8fd[_0x52d506]=_0x2ce379&&!isProduction(_0x2ce379)?{'appcode':_0x52d506,'env':_0x2ce379}:{'appcode':_0x52d506};}return _0x34b32b[_0x520729(0xff)]>0x1?{'apps':_0x48f8fd,'defaultApp':_0x34b32b[0x0]}:{'apps':_0x48f8fd};}export function normalizeStoredDefaultApp(_0x14217f,_0x55982a){const _0x377748=a256_0x4f83e3,_0x3fad2c=_0x14217f[_0x377748(0x112)]&&typeof _0x14217f[_0x377748(0x112)]===_0x377748(0x10e)?_0x14217f[_0x377748(0x112)]:{},_0x1d53a3=Object[_0x377748(0x11c)](_0x3fad2c);if(_0x1d53a3[_0x377748(0xff)]<=0x1)return delete _0x14217f[_0x377748(0xe4)],undefined;const _0x5bcbdd=typeof _0x14217f[_0x377748(0xe4)]==='string'&&_0x3fad2c[_0x14217f[_0x377748(0xe4)]]?_0x14217f[_0x377748(0xe4)]:undefined,_0x76f743=_0x55982a&&_0x3fad2c[_0x55982a]?_0x55982a:_0x5bcbdd;if(_0x76f743)return _0x14217f[_0x377748(0xe4)]=_0x76f743,_0x76f743;return delete _0x14217f[_0x377748(0xe4)],undefined;}export function buildCanonicalProjectConfig(_0x2ed746,_0x3262eb){const _0x2cfe06=a256_0x4f83e3,{appCodes:appCodes=[],env:_0x5a8a55,metadata:_0xf90558}=_0x3262eb,_0x5a5916={..._0x2ed746,..._0xf90558||{}};delete _0x5a5916[_0x2cfe06(0xfb)],delete _0x5a5916[_0x2cfe06(0xe7)];const _0x545111=_0x5a8a55||(typeof _0x5a5916[_0x2cfe06(0xf4)]===_0x2cfe06(0xf1)?_0x5a5916['env']:'')||DEFAULT_CONFIG_VALUES[_0x2cfe06(0xf4)];if(isProduction(_0x545111))delete _0x5a5916['env'];else _0x5a5916[_0x2cfe06(0xf4)]=_0x545111;const _0x340c18=buildCanonicalAppConfig(appCodes,_0x545111);if(Object[_0x2cfe06(0x11c)](_0x340c18)[_0x2cfe06(0xff)]>0x0){_0x5a5916[_0x2cfe06(0x112)]=_0x340c18[_0x2cfe06(0x112)];if(_0x340c18[_0x2cfe06(0xe4)])_0x5a5916['defaultApp']=_0x340c18['defaultApp'];else delete _0x5a5916['defaultApp'];}return normalizeConfigForWrite(_0x5a5916);}function isRecord(_0x756e81){return!!_0x756e81&&typeof _0x756e81==='object'&&!Array['isArray'](_0x756e81);}export function normalizeConfigForWrite(_0x4fa21f){const _0x4a935c=a256_0x4f83e3,_0xd000e6={..._0x4fa21f},_0x74631d=isRecord(_0x4fa21f[_0x4a935c(0x112)])?_0x4fa21f['apps']:undefined,_0x38d135=_0x74631d?Object[_0x4a935c(0x100)](Object[_0x4a935c(0x10b)](_0x74631d)[_0x4a935c(0xfe)](([_0x52d61a,_0x677f6d])=>[_0x52d61a,isRecord(_0x677f6d)?{..._0x677f6d}:_0x677f6d])):undefined;if(_0x38d135){const _0x337d70=typeof _0xd000e6[_0x4a935c(0xf4)]===_0x4a935c(0xf1)?_0xd000e6[_0x4a935c(0xf4)]:undefined,_0x516dfb=Object[_0x4a935c(0xfc)](_0x38d135)[_0x4a935c(0x106)](_0x41bb76=>isRecord(_0x41bb76)&&typeof _0x41bb76[_0x4a935c(0xf4)]===_0x4a935c(0xf1)&&isProduction(_0x41bb76['env']));if(_0x337d70&&isDaily(_0x337d70)&&_0x516dfb){for(const _0x55bde7 of Object[_0x4a935c(0xfc)](_0x38d135)){if(!isRecord(_0x55bde7))continue;if(_0x55bde7['env']===undefined)_0x55bde7[_0x4a935c(0xf4)]=_0x337d70;}delete _0xd000e6[_0x4a935c(0xf4)];}for(const _0x12bfb1 of Object[_0x4a935c(0xfc)](_0x38d135)){isRecord(_0x12bfb1)&&typeof _0x12bfb1[_0x4a935c(0xf4)]===_0x4a935c(0xf1)&&isProduction(_0x12bfb1[_0x4a935c(0xf4)])&&delete _0x12bfb1[_0x4a935c(0xf4)];}_0xd000e6[_0x4a935c(0x112)]=_0x38d135;}return typeof _0xd000e6[_0x4a935c(0xf4)]===_0x4a935c(0xf1)&&isProduction(_0xd000e6[_0x4a935c(0xf4)])&&delete _0xd000e6[_0x4a935c(0xf4)],_0xd000e6;}const LOCALE_MAP={'zh':a256_0x4f83e3(0xf5),'zh-cn':a256_0x4f83e3(0xf5),'zh_cn':'zh-CN','en':'en-US','en-us':'en-US','en_us':a256_0x4f83e3(0xef)};export function normalizeLocale(_0x2e72f8){if(!_0x2e72f8)return null;return LOCALE_MAP[_0x2e72f8['toLowerCase']()]??null;}
|
|
1
|
+
const a256_0x318e6a=a256_0x1e0d;(function(_0x78735a,_0x20cece){const _0x3d1d9b=a256_0x1e0d,_0x3e4d0f=_0x78735a();while(!![]){try{const _0x5b74ac=parseInt(_0x3d1d9b(0x15f))/0x1+parseInt(_0x3d1d9b(0x167))/0x2+parseInt(_0x3d1d9b(0x145))/0x3+-parseInt(_0x3d1d9b(0x143))/0x4*(-parseInt(_0x3d1d9b(0x169))/0x5)+-parseInt(_0x3d1d9b(0x15c))/0x6+parseInt(_0x3d1d9b(0x15e))/0x7*(parseInt(_0x3d1d9b(0x15d))/0x8)+-parseInt(_0x3d1d9b(0x147))/0x9;if(_0x5b74ac===_0x20cece)break;else _0x3e4d0f['push'](_0x3e4d0f['shift']());}catch(_0x49da91){_0x3e4d0f['push'](_0x3e4d0f['shift']());}}}(a256_0x1326,0xaf476));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=[a256_0x318e6a(0x15a),'accessKey',a256_0x318e6a(0x168),'format',a256_0x318e6a(0x135),a256_0x318e6a(0x138),a256_0x318e6a(0x150),a256_0x318e6a(0x141),a256_0x318e6a(0x14b),a256_0x318e6a(0x161),'skillDomain',a256_0x318e6a(0x165),'kbServiceDomain','appDomain',a256_0x318e6a(0x133),a256_0x318e6a(0x162)];export const TOP_LEVEL_CONFIG_KEYS=new Set(['appcode','env',a256_0x318e6a(0x168),a256_0x318e6a(0x160),'cookie',a256_0x318e6a(0x156),a256_0x318e6a(0x157),a256_0x318e6a(0x138),'userDomain',a256_0x318e6a(0x14b),a256_0x318e6a(0x161),a256_0x318e6a(0x149),a256_0x318e6a(0x165),a256_0x318e6a(0x14a),a256_0x318e6a(0x14f),a256_0x318e6a(0x133),a256_0x318e6a(0x162)]);export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES],'region':[...ENABLED_LOVRABET_REGION_VALUES]};export function formatConfigKeyList(_0x471ed1){const _0xcebd68=a256_0x318e6a;return[..._0x471ed1][_0xcebd68(0x14c)](',\x20');}function a256_0x1e0d(_0xea794f,_0x2aefa0){_0xea794f=_0xea794f-0x132;const _0x1326c2=a256_0x1326();let _0x1e0d8a=_0x1326c2[_0xea794f];return _0x1e0d8a;}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function isTopLevelConfigKey(_0x222b7d){return TOP_LEVEL_CONFIG_KEYS['has'](_0x222b7d);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x4bcf84=a256_0x318e6a;return _0x4bcf84(0x155)+getTopLevelConfigKeySummary()+')';}export const APP_PROFILE_FLAG_KEY_MAP={'apiGroup':a256_0x318e6a(0x13d),'region':a256_0x318e6a(0x138),'env':a256_0x318e6a(0x164),'apiDir':a256_0x318e6a(0x157),'cookie':a256_0x318e6a(0x15a),'accessKey':a256_0x318e6a(0x156),'defaultFormat':'format','pageSize':a256_0x318e6a(0x134),'riskLevel':a256_0x318e6a(0x135),'locale':a256_0x318e6a(0x168)};export function getAppProfileFlagDefs(){const _0x3ff907=a256_0x318e6a;return[{'name':'apiGroup','type':'string','description':'Join\x20key\x20for\x20app\x20profiles\x20that\x20share\x20one\x20generated\x20API\x20model\x20registry'},{'name':'region','type':_0x3ff907(0x13a),'description':_0x3ff907(0x16c),'enum':[...ENABLED_LOVRABET_REGION_VALUES]},{'name':_0x3ff907(0x164),'type':_0x3ff907(0x13a),'description':_0x3ff907(0x154),'enum':[...RABETBASE_ENV_VALUES]},{'name':_0x3ff907(0x157),'type':_0x3ff907(0x13a),'description':_0x3ff907(0x13f)},{'name':_0x3ff907(0x15a),'type':'string','description':_0x3ff907(0x14e),'hidden':!![]},{'name':'accessKey','type':_0x3ff907(0x13a),'description':'Access\x20key','hidden':!![]},{'name':_0x3ff907(0x15b),'type':'string','description':_0x3ff907(0x13c),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':_0x3ff907(0x134),'type':_0x3ff907(0x14d),'description':_0x3ff907(0x166)},{'name':'riskLevel','type':_0x3ff907(0x13a),'description':_0x3ff907(0x163),'enum':[...RISK_LEVEL_VALUES]},{'name':_0x3ff907(0x168),'type':'string','description':'App\x20locale\x20(not\x20CLI\x20language;\x20reserved\x20for\x20later\x20app\x20use)'}];}export function collectAppProfileOverrides(_0x4ec1f1){const _0x1fe13b=a256_0x318e6a,_0x473b04={};for(const [_0x3484e7,_0x1ad8ae]of Object[_0x1fe13b(0x151)](APP_PROFILE_FLAG_KEY_MAP)){const _0x2ed204=_0x4ec1f1(_0x3484e7);if(!_0x2ed204)continue;_0x473b04[_0x1ad8ae]=_0x1ad8ae===_0x1fe13b(0x134)?Number(_0x2ed204):_0x2ed204;}return _0x473b04;}export function buildAppProfileListFields(_0x5cd6af){const _0x28977c=a256_0x318e6a;return{'apiGroup':_0x5cd6af[_0x28977c(0x13d)]??null,'region':_0x5cd6af[_0x28977c(0x138)]??null,'env':_0x5cd6af[_0x28977c(0x164)]??null,'apiDir':_0x5cd6af[_0x28977c(0x157)]??null,'hasCookie':!!_0x5cd6af['cookie'],'hasAccessKey':!!_0x5cd6af[_0x28977c(0x156)],'format':_0x5cd6af[_0x28977c(0x160)]??null,'pageSize':_0x5cd6af[_0x28977c(0x134)]??null,'riskLevel':_0x5cd6af[_0x28977c(0x135)]??null,'locale':_0x5cd6af[_0x28977c(0x168)]??null};}export function buildAppDoctorFields(_0x18851b,_0x48841d){const _0x24bcad=a256_0x318e6a;return{'region':{'value':_0x18851b['region']||_0x48841d['region'],'source':_0x18851b[_0x24bcad(0x138)]?_0x24bcad(0x146):_0x24bcad(0x158)},'env':{'value':_0x18851b[_0x24bcad(0x164)]||_0x48841d['env'],'source':_0x18851b[_0x24bcad(0x164)]?_0x24bcad(0x146):_0x24bcad(0x158)},'apiDir':{'value':_0x18851b[_0x24bcad(0x157)]||_0x48841d[_0x24bcad(0x157)],'source':_0x18851b[_0x24bcad(0x157)]?_0x24bcad(0x146):_0x24bcad(0x158)},'cookie':{'value':_0x18851b[_0x24bcad(0x15a)]||_0x48841d['cookie'],'source':_0x18851b[_0x24bcad(0x15a)]?'app':'inherit'},'accessKey':{'value':_0x18851b[_0x24bcad(0x156)]||_0x48841d[_0x24bcad(0x156)],'source':_0x18851b['accessKey']?_0x24bcad(0x146):_0x24bcad(0x158)}};}export function buildCanonicalAppConfig(_0x1b7762,_0x18b514){const _0x52305f=a256_0x318e6a,_0x10e659=_0x1b7762[_0x52305f(0x13b)](_0x5bd671=>String(_0x5bd671||'')[_0x52305f(0x137)]())['filter'](Boolean);if(_0x10e659[_0x52305f(0x139)]===0x0)return{};const _0xbe6c7={};for(const _0x1c5e37 of _0x10e659){_0xbe6c7[_0x1c5e37]=_0x18b514&&!isProduction(_0x18b514)?{'appcode':_0x1c5e37,'env':_0x18b514}:{'appcode':_0x1c5e37};}return _0x10e659[_0x52305f(0x139)]>0x1?{'apps':_0xbe6c7,'defaultApp':_0x10e659[0x0]}:{'apps':_0xbe6c7};}export function normalizeStoredDefaultApp(_0x2f8cad,_0x1344ad){const _0x52fefc=a256_0x318e6a,_0x530e9d=_0x2f8cad['apps']&&typeof _0x2f8cad['apps']===_0x52fefc(0x16b)?_0x2f8cad[_0x52fefc(0x142)]:{},_0x211958=Object[_0x52fefc(0x153)](_0x530e9d);if(_0x211958[_0x52fefc(0x139)]<=0x1)return delete _0x2f8cad[_0x52fefc(0x152)],undefined;const _0x238534=typeof _0x2f8cad[_0x52fefc(0x152)]==='string'&&_0x530e9d[_0x2f8cad[_0x52fefc(0x152)]]?_0x2f8cad['defaultApp']:undefined,_0xc8bf2e=_0x1344ad&&_0x530e9d[_0x1344ad]?_0x1344ad:_0x238534;if(_0xc8bf2e)return _0x2f8cad[_0x52fefc(0x152)]=_0xc8bf2e,_0xc8bf2e;return delete _0x2f8cad[_0x52fefc(0x152)],undefined;}export function buildCanonicalProjectConfig(_0x4c84d2,_0x156861){const _0x3805a5=a256_0x318e6a,{appCodes:appCodes=[],env:_0x4555e5,metadata:_0x3f7d0a}=_0x156861,_0xf564c9={..._0x4c84d2,..._0x3f7d0a||{}};delete _0xf564c9[_0x3805a5(0x140)],delete _0xf564c9['app'];const _0x568a9c=_0x4555e5||(typeof _0xf564c9[_0x3805a5(0x164)]===_0x3805a5(0x13a)?_0xf564c9[_0x3805a5(0x164)]:'')||DEFAULT_CONFIG_VALUES[_0x3805a5(0x164)];if(isProduction(_0x568a9c))delete _0xf564c9[_0x3805a5(0x164)];else _0xf564c9[_0x3805a5(0x164)]=_0x568a9c;const _0x28269c=buildCanonicalAppConfig(appCodes,_0x568a9c);if(Object[_0x3805a5(0x153)](_0x28269c)[_0x3805a5(0x139)]>0x0){_0xf564c9[_0x3805a5(0x142)]=_0x28269c[_0x3805a5(0x142)];if(_0x28269c[_0x3805a5(0x152)])_0xf564c9[_0x3805a5(0x152)]=_0x28269c[_0x3805a5(0x152)];else delete _0xf564c9[_0x3805a5(0x152)];}return normalizeConfigForWrite(_0xf564c9);}function isRecord(_0x192db3){const _0x157418=a256_0x318e6a;return!!_0x192db3&&typeof _0x192db3===_0x157418(0x16b)&&!Array[_0x157418(0x132)](_0x192db3);}function a256_0x1326(){const _0x3c92e1=['accessKey','apiDir','inherit','fromEntries','cookie','defaultFormat','620700pNMOlk','3345008sysARM','14TkvhIs','563688ExVoBJ','format','runtimeDomain','certificateDomain','Risk\x20level','env','kbDomain','Default\x20page\x20size','382668cbQmOn','locale','4600040jOBJpA','some','object','Country/region\x20for\x20this\x20app\x20profile','isArray','localDomain','pageSize','riskLevel','zh-CN','trim','region','length','string','map','Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','apiGroup','values','API\x20directory\x20path','appcode','userDomain','apps','4zqsXVJ','toLowerCase','2449173LNtqcP','app','22556529mzKBKo','en-US','skillDomain','kbServiceDomain','apiDomain','join','number','Auth\x20cookie','appDomain','routing','entries','defaultApp','keys','Target\x20environment','Config\x20key\x20('];a256_0x1326=function(){return _0x3c92e1;};return a256_0x1326();}export function normalizeConfigForWrite(_0x44e8c9){const _0x4a990b=a256_0x318e6a,_0x5661f3={..._0x44e8c9},_0x5cec2d=isRecord(_0x44e8c9[_0x4a990b(0x142)])?_0x44e8c9['apps']:undefined,_0x25b440=_0x5cec2d?Object[_0x4a990b(0x159)](Object[_0x4a990b(0x151)](_0x5cec2d)[_0x4a990b(0x13b)](([_0x34cac7,_0x584681])=>[_0x34cac7,isRecord(_0x584681)?{..._0x584681}:_0x584681])):undefined;if(_0x25b440){const _0x5a9da4=typeof _0x5661f3[_0x4a990b(0x164)]===_0x4a990b(0x13a)?_0x5661f3[_0x4a990b(0x164)]:undefined,_0x523960=Object[_0x4a990b(0x13e)](_0x25b440)[_0x4a990b(0x16a)](_0x43d834=>isRecord(_0x43d834)&&typeof _0x43d834[_0x4a990b(0x164)]===_0x4a990b(0x13a)&&isProduction(_0x43d834[_0x4a990b(0x164)]));if(_0x5a9da4&&isDaily(_0x5a9da4)&&_0x523960){for(const _0x3c0a0c of Object[_0x4a990b(0x13e)](_0x25b440)){if(!isRecord(_0x3c0a0c))continue;if(_0x3c0a0c[_0x4a990b(0x164)]===undefined)_0x3c0a0c[_0x4a990b(0x164)]=_0x5a9da4;}delete _0x5661f3[_0x4a990b(0x164)];}for(const _0xc0eae4 of Object[_0x4a990b(0x13e)](_0x25b440)){isRecord(_0xc0eae4)&&typeof _0xc0eae4['env']===_0x4a990b(0x13a)&&isProduction(_0xc0eae4['env'])&&delete _0xc0eae4['env'];}_0x5661f3['apps']=_0x25b440;}return typeof _0x5661f3[_0x4a990b(0x164)]===_0x4a990b(0x13a)&&isProduction(_0x5661f3[_0x4a990b(0x164)])&&delete _0x5661f3[_0x4a990b(0x164)],_0x5661f3;}const LOCALE_MAP={'zh':'zh-CN','zh-cn':a256_0x318e6a(0x136),'zh_cn':a256_0x318e6a(0x136),'en':'en-US','en-us':'en-US','en_us':a256_0x318e6a(0x148)};export function normalizeLocale(_0x2b22ac){const _0x3455e9=a256_0x318e6a;if(!_0x2b22ac)return null;return LOCALE_MAP[_0x2b22ac[_0x3455e9(0x144)]()]??null;}
|
package/lib/constant/cdn.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a257_0x26bba7=a257_0x5032;(function(_0x537c37,_0x4629bc){const _0x3b6301=a257_0x5032,_0x54fc9a=_0x537c37();while(!![]){try{const _0xa53687=parseInt(_0x3b6301(0x1b4))/0x1+-parseInt(_0x3b6301(0x1ae))/0x2+parseInt(_0x3b6301(0x1aa))/0x3+-parseInt(_0x3b6301(0x1a6))/0x4*(-parseInt(_0x3b6301(0x1af))/0x5)+-parseInt(_0x3b6301(0x1a4))/0x6+-parseInt(_0x3b6301(0x1a5))/0x7*(-parseInt(_0x3b6301(0x1ad))/0x8)+parseInt(_0x3b6301(0x1a8))/0x9*(parseInt(_0x3b6301(0x1a3))/0xa);if(_0xa53687===_0x4629bc)break;else _0x54fc9a['push'](_0x54fc9a['shift']());}catch(_0x9b358a){_0x54fc9a['push'](_0x54fc9a['shift']());}}}(a257_0x5356,0x31774));import{getActiveCdn}from'../constant/domain.js';const RABETBASE_CDN_PROJECT=a257_0x26bba7(0x1ac),RABETBASE_CDN_CONFIG_ORIGIN=a257_0x26bba7(0x1b2),CDN_CONFIG_PATH=a257_0x26bba7(0x1a9),PROJECT_TEMPLATE_ASSET_PATH=a257_0x26bba7(0x1ab),PROJECT_TEMPLATE_ARCHIVE_NAMES=Object['freeze']({'release':a257_0x26bba7(0x1b1),'beta':a257_0x26bba7(0x1a2)});export const RABETBASE_CDN_PROJECT_PATH=a257_0x26bba7(0x1a1)+RABETBASE_CDN_PROJECT;function getRabetbaseCdnBaseUrl(){const _0x8b6169=a257_0x26bba7;return''+getActiveCdn()[_0x8b6169(0x1b0)]+RABETBASE_CDN_PROJECT_PATH;}export function getCliVersionPolicyUrl(){return''+RABETBASE_CDN_CONFIG_ORIGIN+RABETBASE_CDN_PROJECT_PATH+'/'+CDN_CONFIG_PATH;}export function getProjectTemplateAssetBaseUrl(){return getRabetbaseCdnBaseUrl()+'/'+PROJECT_TEMPLATE_ASSET_PATH;}export function getProjectTemplateLegacyAssetBaseUrl(){return''+RABETBASE_CDN_CONFIG_ORIGIN+RABETBASE_CDN_PROJECT_PATH+'/'+PROJECT_TEMPLATE_ASSET_PATH;}function a257_0x5032(_0x517c4d,_0x11769b){_0x517c4d=_0x517c4d-0x1a1;const _0x5356c4=a257_0x5356();let _0x50326a=_0x5356c4[_0x517c4d];return _0x50326a;}export function getProjectTemplateRelativeUrl(_0x101042,_0x142d45){const _0x420526=a257_0x26bba7,_0x595e86=_0x142d45?_0x420526(0x1a7)+_0x142d45+_0x420526(0x1b3):PROJECT_TEMPLATE_ARCHIVE_NAMES[_0x101042];return RABETBASE_CDN_PROJECT_PATH+'/'+PROJECT_TEMPLATE_ASSET_PATH+'/'+_0x595e86;}function a257_0x5356(){const _0x3ff8f4=['433869ExAQju','templates/projects','rabetbase-cli','1790312rzdjxc','647194UgNYsb','269465NKcLwg','lovrabet','sub-app-react-demo.zip','https://g.lovrabet.com','.zip','193053CAazBy','/dist/','sub-app-react-demo-beta.zip','2100jLCRrM','2350554SGmPjg','7OuecyZ','4MfGwWa','sub-app-react-demo-','12969tPdJIQ','config/index.json'];a257_0x5356=function(){return _0x3ff8f4;};return a257_0x5356();}
|
package/lib/constant/cli.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a258_0x1041d5=a258_0xf3f0;function a258_0xf3f0(_0x42bdf5,_0x3832d9){_0x42bdf5=_0x42bdf5-0x113;const _0x335dda=a258_0x335d();let _0xf3f0f7=_0x335dda[_0x42bdf5];return _0xf3f0f7;}(function(_0x2d5ee3,_0x531371){const _0x118e1c=a258_0xf3f0,_0x38242e=_0x2d5ee3();while(!![]){try{const _0x3f03a4=-parseInt(_0x118e1c(0x14f))/0x1*(parseInt(_0x118e1c(0x1a1))/0x2)+-parseInt(_0x118e1c(0x197))/0x3+-parseInt(_0x118e1c(0x114))/0x4*(-parseInt(_0x118e1c(0x17b))/0x5)+-parseInt(_0x118e1c(0x13f))/0x6+parseInt(_0x118e1c(0x11b))/0x7*(parseInt(_0x118e1c(0x11a))/0x8)+parseInt(_0x118e1c(0x17c))/0x9*(-parseInt(_0x118e1c(0x174))/0xa)+parseInt(_0x118e1c(0x19a))/0xb;if(_0x3f03a4===_0x531371)break;else _0x38242e['push'](_0x38242e['shift']());}catch(_0x13f0fe){_0x38242e['push'](_0x38242e['shift']());}}}(a258_0x335d,0xa1927));export const CLI_BIN_NAME=a258_0x1041d5(0x169);export const CLI_DISPLAY_NAME=a258_0x1041d5(0x166);function a258_0x335d(){const _0x39e340=['json\x20|\x20pretty\x20|\x20compress','Description','label','db-id','Expected\x20current\x20child\x20count','Page\x20size','parent-id','skipImports','Function\x20node','Search\x20query','Config\x20value','SQL\x20code','query','Preview\x20operation\x20without\x20executing','string','Verbose\x20output','4656786ShIogJ','parentId','env','codes','fromEnv','Use\x20remote','datasetcode','sort','Operation\x20type','code','Name','description-file','yes','boolean','Code\x20filter','Alias\x20for\x20--non-interactive','49768vxMtIQ','locale','page','operationType','page-size','Expected\x20current\x20menu\x20path','title','dry-run','flow-status','File\x20path','task-id','Expected\x20current\x20parent\x20menu\x20id','expected-children-count','enable-bff-save','Output\x20path','fromEntries','flow-name','non-interactive','Use\x20project\x20config\x20scope','Environment','clear','sql','sqlcode','Rabetbase\x20CLI','function-node','expected-count','rabetbase','Dataset\x20code','Record\x20ID','Flow\x20code','topk','expectPath','nonInteractive','Type\x20filter','taskId','file','Flow\x20status','1582180VJDfKQ','remote','operation','sqlName','Enable\x20Backend\x20Function\x20save','dryRun','params','5MgFtbV','54aNxcIq','meowKey','enableBffSave','Target\x20path','help','descriptionFile','<expr>','dataset-code','Page\x20number','force','Skip\x20confirmation\x20for\x20high-risk\x20writes','global','JSON\x20params','Description\x20file','keyword','stdin','Keyword\x20filter','description','target','Skip\x20import\x20generation','appcode','DB\x20ID','from-env','Show\x20help','flowType','tags','type','2324046BDrmVN','Force\x20overwrite','<name>','32715804cZcjLV','confirm','flowStatus','pagesize','name','Apply\x20to\x20all','watch','50CahTfB','Read\x20value\x20from\x20environment\x20variable','Comma-separated\x20menu\x20IDs','2605472tiZHMR','menu-ids','dbid','operation-type','Schemas','Title','6244704ElQlbX','7cTVWxF','sqlname','Output\x20format','expectedCount','datasetCode','app','reveal','format','Use\x20global\x20config\x20scope','key','expectParentId','Read\x20value\x20from\x20stdin','output','expectedChildrenCount','flow-code','schemas','Force\x20non-interactive\x20mode\x20(CI)','all','value','map'];a258_0x335d=function(){return _0x39e340;};return a258_0x335d();}export const NPM_PACKAGE_NAME='@lovrabet/rabetbase-cli';export const GLOBAL_FLAGS=[{'name':'appcode','meowKey':a258_0x1041d5(0x190),'type':a258_0x1041d5(0x13d),'description':'Override\x20appcode','hint':'<code>'},{'name':'app','meowKey':'app','type':'string','description':'Select\x20app\x20profile\x20by\x20name','hint':a258_0x1041d5(0x199)},{'name':a258_0x1041d5(0x141),'meowKey':a258_0x1041d5(0x141),'type':a258_0x1041d5(0x13d),'description':a258_0x1041d5(0x162),'hint':'production\x20|\x20daily'},{'name':a258_0x1041d5(0x122),'meowKey':a258_0x1041d5(0x122),'type':'string','description':a258_0x1041d5(0x11d),'hint':a258_0x1041d5(0x12f)},{'name':'jq','meowKey':'jq','type':a258_0x1041d5(0x13d),'description':'Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','hint':a258_0x1041d5(0x182)},{'name':a258_0x1041d5(0x156),'meowKey':a258_0x1041d5(0x179),'type':a258_0x1041d5(0x14c),'description':a258_0x1041d5(0x13c)},{'name':a258_0x1041d5(0x14b),'meowKey':a258_0x1041d5(0x14b),'type':a258_0x1041d5(0x14c),'description':a258_0x1041d5(0x186)},{'name':a258_0x1041d5(0x160),'meowKey':a258_0x1041d5(0x16f),'type':a258_0x1041d5(0x14c),'description':a258_0x1041d5(0x12b)},{'name':a258_0x1041d5(0x187),'meowKey':'global','type':a258_0x1041d5(0x14c),'description':a258_0x1041d5(0x123)},{'name':'project','meowKey':'project','type':a258_0x1041d5(0x14c),'description':a258_0x1041d5(0x161)},{'name':'ci','meowKey':'ci','type':a258_0x1041d5(0x14c),'description':a258_0x1041d5(0x14e),'hidden':!![]},{'name':a258_0x1041d5(0x180),'meowKey':a258_0x1041d5(0x180),'type':a258_0x1041d5(0x14c),'description':a258_0x1041d5(0x193)},{'name':a258_0x1041d5(0x150),'meowKey':a258_0x1041d5(0x150),'type':'string','description':'App\x20locale\x20(workspace\x20pass-through;\x20not\x20CLI\x20language)','hidden':!![],'hint':'zh-CN\x20|\x20en-US'},{'name':a258_0x1041d5(0x19e),'meowKey':a258_0x1041d5(0x19e),'type':a258_0x1041d5(0x13d),'description':a258_0x1041d5(0x149),'hidden':!![]},{'name':a258_0x1041d5(0x155),'meowKey':a258_0x1041d5(0x155),'type':a258_0x1041d5(0x13d),'description':a258_0x1041d5(0x119),'hidden':!![]},{'name':a258_0x1041d5(0x13b),'meowKey':'query','type':'string','description':a258_0x1041d5(0x138),'hidden':!![]},{'name':a258_0x1041d5(0x16d),'meowKey':'topk','type':'string','description':'Maximum\x20search\x20hits','hidden':!![]},{'name':a258_0x1041d5(0x163),'meowKey':a258_0x1041d5(0x163),'type':'boolean','description':'Clear','hidden':!![]},{'name':'watch','meowKey':a258_0x1041d5(0x1a0),'type':'boolean','description':'Watch\x20mode','hidden':!![]},{'name':a258_0x1041d5(0x127),'meowKey':a258_0x1041d5(0x127),'type':a258_0x1041d5(0x13d),'description':a258_0x1041d5(0x15d),'hidden':!![]},{'name':a258_0x1041d5(0x17a),'meowKey':a258_0x1041d5(0x17a),'type':a258_0x1041d5(0x13d),'description':a258_0x1041d5(0x188),'hidden':!![]},{'name':a258_0x1041d5(0x145),'meowKey':a258_0x1041d5(0x145),'type':'string','description':a258_0x1041d5(0x16a),'hidden':!![]},{'name':a258_0x1041d5(0x12c),'meowKey':a258_0x1041d5(0x12c),'type':a258_0x1041d5(0x14c),'description':a258_0x1041d5(0x19f),'hidden':!![]},{'name':a258_0x1041d5(0x15c),'meowKey':a258_0x1041d5(0x17e),'type':'boolean','description':a258_0x1041d5(0x178),'hidden':!![]},{'name':'id','meowKey':'id','type':a258_0x1041d5(0x13d),'description':a258_0x1041d5(0x16b),'hidden':!![]},{'name':a258_0x1041d5(0x196),'meowKey':'type','type':'string','description':a258_0x1041d5(0x170),'hidden':!![]},{'name':a258_0x1041d5(0x172),'meowKey':a258_0x1041d5(0x172),'type':a258_0x1041d5(0x13d),'description':a258_0x1041d5(0x158),'hidden':!![]},{'name':a258_0x1041d5(0x129),'meowKey':'flowCode','type':a258_0x1041d5(0x13d),'description':a258_0x1041d5(0x16c),'hidden':!![]},{'name':a258_0x1041d5(0x15f),'meowKey':'flowName','type':'string','description':'Flow\x20name','hidden':!![]},{'name':a258_0x1041d5(0x157),'meowKey':a258_0x1041d5(0x19c),'type':a258_0x1041d5(0x13d),'description':a258_0x1041d5(0x173),'hidden':!![]},{'name':'flow-type','meowKey':a258_0x1041d5(0x194),'type':a258_0x1041d5(0x13d),'description':'Flow\x20type','hidden':!![]},{'name':a258_0x1041d5(0x183),'meowKey':a258_0x1041d5(0x11f),'type':'string','description':a258_0x1041d5(0x16a),'hidden':!![]},{'name':a258_0x1041d5(0x165),'meowKey':a258_0x1041d5(0x165),'type':a258_0x1041d5(0x13d),'description':a258_0x1041d5(0x13a),'hidden':!![]},{'name':'sql-name','meowKey':a258_0x1041d5(0x177),'type':a258_0x1041d5(0x13d),'description':'SQL\x20name','hidden':!![]},{'name':a258_0x1041d5(0x11c),'meowKey':'sqlname','type':a258_0x1041d5(0x13d),'description':'SQL\x20name','hidden':!![]},{'name':a258_0x1041d5(0x132),'meowKey':'dbId','type':a258_0x1041d5(0x13d),'description':a258_0x1041d5(0x191),'hidden':!![]},{'name':a258_0x1041d5(0x116),'meowKey':'dbid','type':'string','description':a258_0x1041d5(0x191),'hidden':!![]},{'name':a258_0x1041d5(0x18d),'meowKey':a258_0x1041d5(0x18d),'type':a258_0x1041d5(0x13d),'description':a258_0x1041d5(0x130),'hidden':!![]},{'name':a258_0x1041d5(0x14a),'meowKey':a258_0x1041d5(0x181),'type':a258_0x1041d5(0x13d),'description':a258_0x1041d5(0x189),'hidden':!![]},{'name':a258_0x1041d5(0x151),'meowKey':a258_0x1041d5(0x151),'type':a258_0x1041d5(0x13d),'description':a258_0x1041d5(0x184),'hidden':!![]},{'name':a258_0x1041d5(0x153),'meowKey':'pageSize','type':a258_0x1041d5(0x13d),'description':a258_0x1041d5(0x134),'hidden':!![]},{'name':a258_0x1041d5(0x19d),'meowKey':a258_0x1041d5(0x19d),'type':a258_0x1041d5(0x13d),'description':'Page\x20size','hidden':!![]},{'name':'keyword','meowKey':a258_0x1041d5(0x18a),'type':'string','description':a258_0x1041d5(0x18c),'hidden':!![]},{'name':'code','meowKey':a258_0x1041d5(0x148),'type':'string','description':a258_0x1041d5(0x14d),'hidden':!![]},{'name':a258_0x1041d5(0x164),'meowKey':a258_0x1041d5(0x164),'type':'string','description':'SQL\x20string','hidden':!![]},{'name':'schemas','meowKey':a258_0x1041d5(0x12a),'type':a258_0x1041d5(0x13d),'description':a258_0x1041d5(0x118),'hidden':!![]},{'name':a258_0x1041d5(0x176),'meowKey':a258_0x1041d5(0x176),'type':a258_0x1041d5(0x13d),'description':a258_0x1041d5(0x147),'hidden':!![]},{'name':a258_0x1041d5(0x18e),'meowKey':a258_0x1041d5(0x18e),'type':a258_0x1041d5(0x13d),'description':a258_0x1041d5(0x17f),'hidden':!![]},{'name':'skip-imports','meowKey':a258_0x1041d5(0x136),'type':'boolean','description':a258_0x1041d5(0x18f),'hidden':!![]},{'name':a258_0x1041d5(0x124),'meowKey':a258_0x1041d5(0x124),'type':a258_0x1041d5(0x13d),'description':'Config\x20key','hidden':!![]},{'name':a258_0x1041d5(0x12d),'meowKey':'value','type':a258_0x1041d5(0x13d),'description':a258_0x1041d5(0x139),'hidden':!![]},{'name':'tags','meowKey':a258_0x1041d5(0x195),'type':a258_0x1041d5(0x13d),'description':'Tags','hidden':!![]},{'name':a258_0x1041d5(0x18b),'meowKey':'stdin','type':a258_0x1041d5(0x14c),'description':a258_0x1041d5(0x126),'hidden':!![]},{'name':a258_0x1041d5(0x192),'meowKey':a258_0x1041d5(0x143),'type':a258_0x1041d5(0x13d),'description':a258_0x1041d5(0x1a2),'hidden':!![]},{'name':a258_0x1041d5(0x121),'meowKey':a258_0x1041d5(0x121),'type':'boolean','description':'Reveal\x20sensitive\x20value','hidden':!![]},{'name':a258_0x1041d5(0x185),'meowKey':a258_0x1041d5(0x185),'type':a258_0x1041d5(0x14c),'description':a258_0x1041d5(0x198),'hidden':!![]},{'name':a258_0x1041d5(0x19b),'meowKey':a258_0x1041d5(0x19b),'type':'boolean','description':'Confirm\x20destructive\x20action','hidden':!![]},{'name':a258_0x1041d5(0x175),'meowKey':a258_0x1041d5(0x175),'type':a258_0x1041d5(0x14c),'description':a258_0x1041d5(0x144),'hidden':!![]},{'name':'verbose','meowKey':'verbose','type':'boolean','description':a258_0x1041d5(0x13e),'hidden':!![]},{'name':a258_0x1041d5(0x168),'meowKey':a258_0x1041d5(0x11e),'type':a258_0x1041d5(0x13d),'description':'Expected\x20affected\x20count','hidden':!![]},{'name':a258_0x1041d5(0x131),'meowKey':a258_0x1041d5(0x131),'type':'string','description':'Menu\x20label','hidden':!![]},{'name':a258_0x1041d5(0x135),'meowKey':a258_0x1041d5(0x140),'type':a258_0x1041d5(0x13d),'description':'Parent\x20menu\x20id','hidden':!![]},{'name':'sort','meowKey':a258_0x1041d5(0x146),'type':'string','description':'Menu\x20sort\x20value','hidden':!![]},{'name':'expect-parent-id','meowKey':a258_0x1041d5(0x125),'type':a258_0x1041d5(0x13d),'description':a258_0x1041d5(0x15a),'hidden':!![]},{'name':'expect-path','meowKey':a258_0x1041d5(0x16e),'type':a258_0x1041d5(0x13d),'description':a258_0x1041d5(0x154),'hidden':!![]},{'name':a258_0x1041d5(0x15b),'meowKey':a258_0x1041d5(0x128),'type':a258_0x1041d5(0x13d),'description':a258_0x1041d5(0x133),'hidden':!![]},{'name':a258_0x1041d5(0x115),'meowKey':'menuIds','type':'string','description':a258_0x1041d5(0x113),'hidden':!![]},{'name':a258_0x1041d5(0x159),'meowKey':a258_0x1041d5(0x171),'type':a258_0x1041d5(0x13d),'description':'Asynchronous\x20task\x20ID','hidden':!![]},{'name':a258_0x1041d5(0x117),'meowKey':a258_0x1041d5(0x152),'type':'string','description':a258_0x1041d5(0x147),'hidden':!![]},{'name':a258_0x1041d5(0x167),'meowKey':'functionNode','type':a258_0x1041d5(0x13d),'description':a258_0x1041d5(0x137),'hidden':!![]},{'name':a258_0x1041d5(0x142),'meowKey':a258_0x1041d5(0x142),'type':'string','description':'Comma-separated\x20metadata\x20codes','hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a258_0x1041d5(0x190),a258_0x1041d5(0x120),'env','format','jq',a258_0x1041d5(0x156),a258_0x1041d5(0x14b),a258_0x1041d5(0x160),'ci']);export function buildMeowFlags(){const _0x11fb64=a258_0x1041d5;return Object[_0x11fb64(0x15e)](GLOBAL_FLAGS[_0x11fb64(0x12e)](_0x1afa7f=>[_0x1afa7f[_0x11fb64(0x17d)],{'type':_0x1afa7f[_0x11fb64(0x196)]}]));}
|
|
1
|
+
function a258_0x6d6b(){const _0x4e9b45=['sqlName','Environment','json\x20|\x20pretty\x20|\x20compress','Read\x20value\x20from\x20stdin','topk','datasetcode','Tags','Description','expectedChildrenCount','from-env','Flow\x20code','datasetCode','tags','expected-count','Preview\x20operation\x20without\x20executing','stdin','skip-imports','Use\x20remote','Expected\x20current\x20menu\x20path','1546029DfSDkn','format','rabetbase','SQL\x20code','Read\x20value\x20from\x20environment\x20variable','verbose','env','output','Expected\x20affected\x20count','taskId','10BifFul','Force\x20overwrite','menu-ids','Menu\x20sort\x20value','dataset-code','flow-type','<code>','operation-type','Expected\x20current\x20parent\x20menu\x20id','flow-code','Comma-separated\x20menu\x20IDs','codes','fromEnv','Verbose\x20output','28NpBQfW','dryRun','818878MQkQSD','dbId','force','Enable\x20Backend\x20Function\x20save','Reveal\x20sensitive\x20value','flow-status','all','page','locale','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','descriptionFile','Description\x20file','skipImports','title','sql','flow-name','3743645dWQadW','Function\x20node','app','key','project','Watch\x20mode','23670bYIyGs','global','Show\x20help','expect-parent-id','<name>','target','operation','clear','Schemas','Skip\x20import\x20generation','description','dry-run','DB\x20ID','Config\x20key','keyword','363194RrXhPo','Flow\x20type','464431GcDpsq','file','page-size','Type\x20filter','help','Use\x20project\x20config\x20scope','fromEntries','Code\x20filter','confirm','68763nUERaX','Clear','Operation\x20type','params','Page\x20size','flowStatus','code','type','Search\x20query','Menu\x20label','yes','zh-CN\x20|\x20en-US','remote','db-id','Keyword\x20filter','parent-id','Use\x20global\x20config\x20scope','Target\x20path','name','expect-path','App\x20locale\x20(workspace\x20pass-through;\x20not\x20CLI\x20language)','task-id','expectedCount','parentId','flowName','pageSize','watch','Title','pagesize','1533fuTSON','functionNode','schemas','value','appcode','query','enable-bff-save','production\x20|\x20daily','@lovrabet/rabetbase-cli','sqlcode','flowType','Rabetbase\x20CLI','<expr>','Parent\x20menu\x20id','flowCode','Comma-separated\x20metadata\x20codes','sql-name','Select\x20app\x20profile\x20by\x20name','menuIds','Dataset\x20code','Asynchronous\x20task\x20ID','SQL\x20string','dbid','boolean','reveal','expectParentId','Expected\x20current\x20child\x20count','Confirm\x20destructive\x20action','SQL\x20name','40oilVSV','non-interactive','sort','label','string'];a258_0x6d6b=function(){return _0x4e9b45;};return a258_0x6d6b();}const a258_0x99b826=a258_0x5633;(function(_0x5ab70f,_0x1729b1){const _0x5f4d6c=a258_0x5633,_0x5df51c=_0x5ab70f();while(!![]){try{const _0x3a4d5c=parseInt(_0x5f4d6c(0x18d))/0x1+-parseInt(_0x5f4d6c(0x168))/0x2+-parseInt(_0x5f4d6c(0x198))/0x3*(parseInt(_0x5f4d6c(0x166))/0x4)+parseInt(_0x5f4d6c(0x178))/0x5+-parseInt(_0x5f4d6c(0x17e))/0x6*(-parseInt(_0x5f4d6c(0x1b5))/0x7)+parseInt(_0x5f4d6c(0x1d2))/0x8*(-parseInt(_0x5f4d6c(0x1ea))/0x9)+parseInt(_0x5f4d6c(0x158))/0xa*(-parseInt(_0x5f4d6c(0x18f))/0xb);if(_0x3a4d5c===_0x1729b1)break;else _0x5df51c['push'](_0x5df51c['shift']());}catch(_0x48872b){_0x5df51c['push'](_0x5df51c['shift']());}}}(a258_0x6d6b,0x7b422));export const CLI_BIN_NAME=a258_0x99b826(0x150);export const CLI_DISPLAY_NAME=a258_0x99b826(0x1c0);export const NPM_PACKAGE_NAME=a258_0x99b826(0x1bd);function a258_0x5633(_0x5088c8,_0x2b667f){_0x5088c8=_0x5088c8-0x14f;const _0x6d6b80=a258_0x6d6b();let _0x5633e2=_0x6d6b80[_0x5088c8];return _0x5633e2;}export const GLOBAL_FLAGS=[{'name':a258_0x99b826(0x1b9),'meowKey':a258_0x99b826(0x1b9),'type':a258_0x99b826(0x1d6),'description':'Override\x20appcode','hint':a258_0x99b826(0x15e)},{'name':a258_0x99b826(0x17a),'meowKey':a258_0x99b826(0x17a),'type':a258_0x99b826(0x1d6),'description':a258_0x99b826(0x1c6),'hint':a258_0x99b826(0x182)},{'name':a258_0x99b826(0x154),'meowKey':a258_0x99b826(0x154),'type':a258_0x99b826(0x1d6),'description':a258_0x99b826(0x1d8),'hint':a258_0x99b826(0x1bc)},{'name':a258_0x99b826(0x14f),'meowKey':'format','type':a258_0x99b826(0x1d6),'description':'Output\x20format','hint':a258_0x99b826(0x1d9)},{'name':'jq','meowKey':'jq','type':a258_0x99b826(0x1d6),'description':a258_0x99b826(0x171),'hint':a258_0x99b826(0x1c1)},{'name':a258_0x99b826(0x189),'meowKey':a258_0x99b826(0x167),'type':a258_0x99b826(0x1cc),'description':a258_0x99b826(0x1e5)},{'name':a258_0x99b826(0x1a2),'meowKey':a258_0x99b826(0x1a2),'type':a258_0x99b826(0x1cc),'description':'Skip\x20confirmation\x20for\x20high-risk\x20writes'},{'name':a258_0x99b826(0x1d3),'meowKey':'nonInteractive','type':a258_0x99b826(0x1cc),'description':'Force\x20non-interactive\x20mode\x20(CI)'},{'name':a258_0x99b826(0x17f),'meowKey':a258_0x99b826(0x17f),'type':a258_0x99b826(0x1cc),'description':a258_0x99b826(0x1a8)},{'name':'project','meowKey':a258_0x99b826(0x17c),'type':a258_0x99b826(0x1cc),'description':a258_0x99b826(0x194)},{'name':'ci','meowKey':'ci','type':a258_0x99b826(0x1cc),'description':'Alias\x20for\x20--non-interactive','hidden':!![]},{'name':'help','meowKey':a258_0x99b826(0x193),'type':'boolean','description':a258_0x99b826(0x180)},{'name':a258_0x99b826(0x170),'meowKey':'locale','type':a258_0x99b826(0x1d6),'description':a258_0x99b826(0x1ac),'hidden':!![],'hint':a258_0x99b826(0x1a3)},{'name':a258_0x99b826(0x1aa),'meowKey':a258_0x99b826(0x1aa),'type':a258_0x99b826(0x1d6),'description':'Name','hidden':!![]},{'name':'title','meowKey':a258_0x99b826(0x175),'type':a258_0x99b826(0x1d6),'description':a258_0x99b826(0x1b3),'hidden':!![]},{'name':a258_0x99b826(0x1ba),'meowKey':a258_0x99b826(0x1ba),'type':a258_0x99b826(0x1d6),'description':a258_0x99b826(0x1a0),'hidden':!![]},{'name':a258_0x99b826(0x1db),'meowKey':a258_0x99b826(0x1db),'type':a258_0x99b826(0x1d6),'description':'Maximum\x20search\x20hits','hidden':!![]},{'name':a258_0x99b826(0x185),'meowKey':a258_0x99b826(0x185),'type':a258_0x99b826(0x1cc),'description':a258_0x99b826(0x199),'hidden':!![]},{'name':'watch','meowKey':a258_0x99b826(0x1b2),'type':a258_0x99b826(0x1cc),'description':a258_0x99b826(0x17d),'hidden':!![]},{'name':a258_0x99b826(0x155),'meowKey':a258_0x99b826(0x155),'type':a258_0x99b826(0x1d6),'description':'Output\x20path','hidden':!![]},{'name':a258_0x99b826(0x19b),'meowKey':a258_0x99b826(0x19b),'type':a258_0x99b826(0x1d6),'description':'JSON\x20params','hidden':!![]},{'name':a258_0x99b826(0x1dc),'meowKey':a258_0x99b826(0x1dc),'type':'string','description':a258_0x99b826(0x1c8),'hidden':!![]},{'name':a258_0x99b826(0x16e),'meowKey':a258_0x99b826(0x16e),'type':a258_0x99b826(0x1cc),'description':'Apply\x20to\x20all','hidden':!![]},{'name':a258_0x99b826(0x1bb),'meowKey':'enableBffSave','type':a258_0x99b826(0x1cc),'description':a258_0x99b826(0x16b),'hidden':!![]},{'name':'id','meowKey':'id','type':a258_0x99b826(0x1d6),'description':'Record\x20ID','hidden':!![]},{'name':a258_0x99b826(0x19f),'meowKey':a258_0x99b826(0x19f),'type':a258_0x99b826(0x1d6),'description':a258_0x99b826(0x192),'hidden':!![]},{'name':a258_0x99b826(0x190),'meowKey':a258_0x99b826(0x190),'type':'string','description':'File\x20path','hidden':!![]},{'name':a258_0x99b826(0x161),'meowKey':a258_0x99b826(0x1c3),'type':a258_0x99b826(0x1d6),'description':a258_0x99b826(0x1e1),'hidden':!![]},{'name':a258_0x99b826(0x177),'meowKey':a258_0x99b826(0x1b0),'type':a258_0x99b826(0x1d6),'description':'Flow\x20name','hidden':!![]},{'name':a258_0x99b826(0x16d),'meowKey':a258_0x99b826(0x19d),'type':a258_0x99b826(0x1d6),'description':'Flow\x20status','hidden':!![]},{'name':a258_0x99b826(0x15d),'meowKey':a258_0x99b826(0x1bf),'type':'string','description':a258_0x99b826(0x18e),'hidden':!![]},{'name':a258_0x99b826(0x15c),'meowKey':a258_0x99b826(0x1e2),'type':a258_0x99b826(0x1d6),'description':'Dataset\x20code','hidden':!![]},{'name':'sqlcode','meowKey':a258_0x99b826(0x1be),'type':'string','description':a258_0x99b826(0x151),'hidden':!![]},{'name':a258_0x99b826(0x1c5),'meowKey':a258_0x99b826(0x1d7),'type':a258_0x99b826(0x1d6),'description':a258_0x99b826(0x1d1),'hidden':!![]},{'name':'sqlname','meowKey':'sqlname','type':a258_0x99b826(0x1d6),'description':a258_0x99b826(0x1d1),'hidden':!![]},{'name':a258_0x99b826(0x1a5),'meowKey':a258_0x99b826(0x169),'type':'string','description':a258_0x99b826(0x18a),'hidden':!![]},{'name':'dbid','meowKey':a258_0x99b826(0x1cb),'type':a258_0x99b826(0x1d6),'description':a258_0x99b826(0x18a),'hidden':!![]},{'name':a258_0x99b826(0x188),'meowKey':a258_0x99b826(0x188),'type':a258_0x99b826(0x1d6),'description':a258_0x99b826(0x1de),'hidden':!![]},{'name':'description-file','meowKey':a258_0x99b826(0x172),'type':a258_0x99b826(0x1d6),'description':a258_0x99b826(0x173),'hidden':!![]},{'name':a258_0x99b826(0x16f),'meowKey':a258_0x99b826(0x16f),'type':a258_0x99b826(0x1d6),'description':'Page\x20number','hidden':!![]},{'name':a258_0x99b826(0x191),'meowKey':a258_0x99b826(0x1b1),'type':a258_0x99b826(0x1d6),'description':a258_0x99b826(0x19c),'hidden':!![]},{'name':a258_0x99b826(0x1b4),'meowKey':'pagesize','type':a258_0x99b826(0x1d6),'description':'Page\x20size','hidden':!![]},{'name':a258_0x99b826(0x18c),'meowKey':a258_0x99b826(0x18c),'type':a258_0x99b826(0x1d6),'description':a258_0x99b826(0x1a6),'hidden':!![]},{'name':a258_0x99b826(0x19e),'meowKey':'code','type':a258_0x99b826(0x1d6),'description':a258_0x99b826(0x196),'hidden':!![]},{'name':a258_0x99b826(0x176),'meowKey':a258_0x99b826(0x176),'type':a258_0x99b826(0x1d6),'description':a258_0x99b826(0x1ca),'hidden':!![]},{'name':'schemas','meowKey':a258_0x99b826(0x1b7),'type':'string','description':a258_0x99b826(0x186),'hidden':!![]},{'name':'operation','meowKey':a258_0x99b826(0x184),'type':'string','description':'Operation\x20type','hidden':!![]},{'name':a258_0x99b826(0x183),'meowKey':'target','type':'string','description':a258_0x99b826(0x1a9),'hidden':!![]},{'name':a258_0x99b826(0x1e7),'meowKey':a258_0x99b826(0x174),'type':a258_0x99b826(0x1cc),'description':a258_0x99b826(0x187),'hidden':!![]},{'name':'key','meowKey':a258_0x99b826(0x17b),'type':a258_0x99b826(0x1d6),'description':a258_0x99b826(0x18b),'hidden':!![]},{'name':a258_0x99b826(0x1b8),'meowKey':a258_0x99b826(0x1b8),'type':a258_0x99b826(0x1d6),'description':'Config\x20value','hidden':!![]},{'name':a258_0x99b826(0x1e3),'meowKey':'tags','type':a258_0x99b826(0x1d6),'description':a258_0x99b826(0x1dd),'hidden':!![]},{'name':'stdin','meowKey':a258_0x99b826(0x1e6),'type':a258_0x99b826(0x1cc),'description':a258_0x99b826(0x1da),'hidden':!![]},{'name':a258_0x99b826(0x1e0),'meowKey':a258_0x99b826(0x164),'type':a258_0x99b826(0x1d6),'description':a258_0x99b826(0x152),'hidden':!![]},{'name':a258_0x99b826(0x1cd),'meowKey':a258_0x99b826(0x1cd),'type':a258_0x99b826(0x1cc),'description':a258_0x99b826(0x16c),'hidden':!![]},{'name':a258_0x99b826(0x16a),'meowKey':a258_0x99b826(0x16a),'type':a258_0x99b826(0x1cc),'description':a258_0x99b826(0x159),'hidden':!![]},{'name':a258_0x99b826(0x197),'meowKey':'confirm','type':'boolean','description':a258_0x99b826(0x1d0),'hidden':!![]},{'name':a258_0x99b826(0x1a4),'meowKey':a258_0x99b826(0x1a4),'type':a258_0x99b826(0x1cc),'description':a258_0x99b826(0x1e8),'hidden':!![]},{'name':a258_0x99b826(0x153),'meowKey':a258_0x99b826(0x153),'type':a258_0x99b826(0x1cc),'description':a258_0x99b826(0x165),'hidden':!![]},{'name':a258_0x99b826(0x1e4),'meowKey':a258_0x99b826(0x1ae),'type':a258_0x99b826(0x1d6),'description':a258_0x99b826(0x156),'hidden':!![]},{'name':a258_0x99b826(0x1d5),'meowKey':a258_0x99b826(0x1d5),'type':a258_0x99b826(0x1d6),'description':a258_0x99b826(0x1a1),'hidden':!![]},{'name':a258_0x99b826(0x1a7),'meowKey':a258_0x99b826(0x1af),'type':'string','description':a258_0x99b826(0x1c2),'hidden':!![]},{'name':a258_0x99b826(0x1d4),'meowKey':'sort','type':a258_0x99b826(0x1d6),'description':a258_0x99b826(0x15b),'hidden':!![]},{'name':a258_0x99b826(0x181),'meowKey':a258_0x99b826(0x1ce),'type':a258_0x99b826(0x1d6),'description':a258_0x99b826(0x160),'hidden':!![]},{'name':a258_0x99b826(0x1ab),'meowKey':'expectPath','type':a258_0x99b826(0x1d6),'description':a258_0x99b826(0x1e9),'hidden':!![]},{'name':'expected-children-count','meowKey':a258_0x99b826(0x1df),'type':a258_0x99b826(0x1d6),'description':a258_0x99b826(0x1cf),'hidden':!![]},{'name':a258_0x99b826(0x15a),'meowKey':a258_0x99b826(0x1c7),'type':a258_0x99b826(0x1d6),'description':a258_0x99b826(0x162),'hidden':!![]},{'name':a258_0x99b826(0x1ad),'meowKey':a258_0x99b826(0x157),'type':a258_0x99b826(0x1d6),'description':a258_0x99b826(0x1c9),'hidden':!![]},{'name':a258_0x99b826(0x15f),'meowKey':'operationType','type':a258_0x99b826(0x1d6),'description':a258_0x99b826(0x19a),'hidden':!![]},{'name':'function-node','meowKey':a258_0x99b826(0x1b6),'type':a258_0x99b826(0x1d6),'description':a258_0x99b826(0x179),'hidden':!![]},{'name':a258_0x99b826(0x163),'meowKey':a258_0x99b826(0x163),'type':a258_0x99b826(0x1d6),'description':a258_0x99b826(0x1c4),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a258_0x99b826(0x1b9),'app',a258_0x99b826(0x154),a258_0x99b826(0x14f),'jq',a258_0x99b826(0x189),a258_0x99b826(0x1a2),'non-interactive','ci']);export function buildMeowFlags(){const _0x2f5997=a258_0x99b826;return Object[_0x2f5997(0x195)](GLOBAL_FLAGS['map'](_0x396467=>[_0x396467['meowKey'],{'type':_0x396467[_0x2f5997(0x19f)]}]));}
|
package/lib/constant/defaults.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a259_0x4a898d=a259_0x2070;(function(_0x33fad6,_0x4bf26b){const _0x140e29=a259_0x2070,_0x598518=_0x33fad6();while(!![]){try{const _0x10a240=parseInt(_0x140e29(0xd6))/0x1+parseInt(_0x140e29(0xdb))/0x2*(-parseInt(_0x140e29(0xdd))/0x3)+parseInt(_0x140e29(0xd7))/0x4+parseInt(_0x140e29(0xdf))/0x5*(parseInt(_0x140e29(0xe0))/0x6)+parseInt(_0x140e29(0xde))/0x7*(-parseInt(_0x140e29(0xd9))/0x8)+parseInt(_0x140e29(0xdc))/0x9+parseInt(_0x140e29(0xda))/0xa*(-parseInt(_0x140e29(0xd8))/0xb);if(_0x10a240===_0x4bf26b)break;else _0x598518['push'](_0x598518['shift']());}catch(_0x4c714f){_0x598518['push'](_0x598518['shift']());}}}(a259_0x31a7,0x52339));import{DEFAULT_API_DIR}from'../constant/paths.js';function a259_0x2070(_0x225a22,_0x4482a1){_0x225a22=_0x225a22-0xd4;const _0x31a79b=a259_0x31a7();let _0x2070ea=_0x31a79b[_0x225a22];return _0x2070ea;}export const DEFAULT_CONFIG_VALUES={'env':'production','format':a259_0x4a898d(0xd4),'locale':'en-US','riskLevel':a259_0x4a898d(0xd5),'apiDir':DEFAULT_API_DIR};export const DEFAULT_COMMAND_OUTPUT_FORMAT='compress';function a259_0x31a7(){const _0xe1ebc5=['1860552zxOifO','22hmelhD','8PJjDtb','5122270NDtLVI','2oDufGk','5820147bOMqqJ','1439793YHNkfE','2029769BVtbmp','5hKWRoN','3114576eHZrHo','compress','write','500132JIkEKG'];a259_0x31a7=function(){return _0xe1ebc5;};return a259_0x31a7();}
|
package/lib/constant/domain.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a260_0x22a86b=a260_0x22ca;(function(_0xfdbfa5,_0x44d057){const _0x2d2ac0=a260_0x22ca,_0x4ff028=_0xfdbfa5();while(!![]){try{const _0x3350ea=parseInt(_0x2d2ac0(0x112))/0x1*(parseInt(_0x2d2ac0(0x115))/0x2)+-parseInt(_0x2d2ac0(0xff))/0x3+-parseInt(_0x2d2ac0(0x107))/0x4+-parseInt(_0x2d2ac0(0xfe))/0x5+parseInt(_0x2d2ac0(0x114))/0x6+-parseInt(_0x2d2ac0(0x102))/0x7+parseInt(_0x2d2ac0(0x10c))/0x8;if(_0x3350ea===_0x44d057)break;else _0x4ff028['push'](_0x4ff028['shift']());}catch(_0x44c85f){_0x4ff028['push'](_0x4ff028['shift']());}}}(a260_0x3d86,0x383a0));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 _0x17de48=a260_0x22ca,_0x3cdcdc=getOfficialRoutingProfile(activeRegion);return isProduction(getEnv())?_0x3cdcdc[_0x17de48(0x104)][_0x17de48(0x10e)]:_0x3cdcdc['serviceDomains'][_0x17de48(0x103)]??_0x3cdcdc[_0x17de48(0x104)]['production'];}export function initDomains(_0x2fd4a7){const _0x40067f=a260_0x22ca;customApiDomain=_0x2fd4a7?.[_0x40067f(0x106)],customUserDomain=_0x2fd4a7?.['userDomain'],customRuntimeDomain=_0x2fd4a7?.[_0x40067f(0x10b)],customSkillDomain=_0x2fd4a7?.['skillDomain'],customKbDomain=_0x2fd4a7?.[_0x40067f(0xfd)],customKbServiceDomain=_0x2fd4a7?.[_0x40067f(0x108)],allowOfficialKbServiceDefault=_0x2fd4a7?.[_0x40067f(0x10a)]??!![],customAppDomain=_0x2fd4a7?.[_0x40067f(0x109)],customLocalDomain=_0x2fd4a7?.[_0x40067f(0x117)],customCertificateDomain=_0x2fd4a7?.['certificateDomain'],customCdn=_0x2fd4a7?.[_0x40067f(0x100)],activeRegion=_0x2fd4a7?.[_0x40067f(0x111)]??DEFAULT_LOVRABET_REGION;}export const getUserDomain=()=>customUserDomain||getActiveRegionDomains()[a260_0x22a86b(0x116)];export const getApiDomain=()=>customApiDomain||getActiveRegionDomains()['api'];export const getRuntimeDomain=()=>customRuntimeDomain||getActiveRegionDomains()[a260_0x22a86b(0x110)];export const getSkillDomain=()=>customSkillDomain||getActiveRegionDomains()[a260_0x22a86b(0x113)];export const getKbDomain=()=>customKbDomain||customApiDomain||getActiveRegionDomains()['kb'];export const getKbServiceDomain=()=>{if(customKbServiceDomain)return customKbServiceDomain;if(!allowOfficialKbServiceDefault)return undefined;return getActiveRegionDomains()['kbService'];};export const getAppDomain=()=>customAppDomain||getActiveRegionDomains()['app'];function a260_0x3d86(){const _0x31ed11=['allowOfficialKbServiceDefault','runtimeDomain','935624ytuYvC','trim','production','/app/','runtime','region','7940qFIaBU','skill','1072254NNQvEM','102oabJwF','user','localDomain','kbDomain','259065IBoFDJ','202953GoGBQe','cdn','origin','442939HBtlQr','daily','serviceDomains','hostname','apiDomain','1150228ORpICv','kbServiceDomain','appDomain'];a260_0x3d86=function(){return _0x31ed11;};return a260_0x3d86();}export const getActiveRegion=()=>activeRegion;export const getLocalDomain=()=>customLocalDomain;export const getCertificateDomain=()=>customCertificateDomain;function a260_0x22ca(_0x48d599,_0x453034){_0x48d599=_0x48d599-0xfd;const _0x3d86bf=a260_0x3d86();let _0x22cae0=_0x3d86bf[_0x48d599];return _0x22cae0;}export const getActiveCdn=()=>customCdn||getOfficialRoutingCdn(activeRegion);export function isIndependentDeployment(){return!!(customApiDomain||customUserDomain||customRuntimeDomain||customSkillDomain||customKbDomain||customAppDomain||customLocalDomain||customCertificateDomain);}export function getSdkClientRoutingConfig(){const _0x5ae332=a260_0x22a86b;if(customRuntimeDomain&&customRuntimeDomain!==getActiveRegionDomains()[_0x5ae332(0x110)])return{'runtimeDomain':customRuntimeDomain};if(activeRegion!==DEFAULT_LOVRABET_REGION)return{'runtimeDomain':getRuntimeDomain()};return{};}export const getAppBaseUrl=_0x676e6e=>{const _0x154fc5=a260_0x22a86b,_0x454a80=encodeURIComponent(_0x676e6e['trim']());return isProduction(getEnv())?getAppDomain()+_0x154fc5(0x10f)+_0x454a80:getAppDomain()+'/web-app/app/'+_0x454a80;};export const getPublishedAppDomain=_0x13d0de=>{const _0x152a0a=a260_0x22a86b,_0x5cd86e=new URL(getAppDomain());return _0x5cd86e[_0x152a0a(0x105)]=_0x13d0de[_0x152a0a(0x10d)]()+'.'+_0x5cd86e['hostname'],_0x5cd86e[_0x152a0a(0x101)];};
|
package/lib/constant/env.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a261_0x28e52a=a261_0x394c;(function(_0xdc41f4,_0x3abfd2){const _0x29ac43=a261_0x394c,_0x3e62bb=_0xdc41f4();while(!![]){try{const _0xcef5c5=-parseInt(_0x29ac43(0x85))/0x1+-parseInt(_0x29ac43(0x7c))/0x2*(-parseInt(_0x29ac43(0x79))/0x3)+parseInt(_0x29ac43(0x81))/0x4*(-parseInt(_0x29ac43(0x7e))/0x5)+parseInt(_0x29ac43(0x82))/0x6*(parseInt(_0x29ac43(0x86))/0x7)+parseInt(_0x29ac43(0x84))/0x8*(parseInt(_0x29ac43(0x7a))/0x9)+-parseInt(_0x29ac43(0x7d))/0xa+parseInt(_0x29ac43(0x7f))/0xb;if(_0xcef5c5===_0x3abfd2)break;else _0x3e62bb['push'](_0x3e62bb['shift']());}catch(_0x1c3fca){_0x3e62bb['push'](_0x3e62bb['shift']());}}}(a261_0x339f,0x9cfb6));export const RABETBASE_ENV_VALUES=['production',a261_0x28e52a(0x7b)];export function normalizeEnv(_0x11f5bb){const _0x1cff09=a261_0x28e52a;return _0x11f5bb===_0x1cff09(0x80)?'production':_0x11f5bb;}function a261_0x339f(){const _0x185bad=['971026ceBZDe','1924888GcuIwb','dev','15BHOeUQ','837ZBcJvL','daily','30146xZfDIM','11678970UCnysQ','3255695pBkiaX','17487976vNkKKN','online','4pGieCe','18kSebNh','production','81112sNHJAB'];a261_0x339f=function(){return _0x185bad;};return a261_0x339f();}export function isProduction(_0x5c3149){const _0xa68b14=a261_0x28e52a;return normalizeEnv(_0x5c3149)===_0xa68b14(0x83);}function a261_0x394c(_0x194784,_0x57c7a5){_0x194784=_0x194784-0x79;const _0x339f72=a261_0x339f();let _0x394c1e=_0x339f72[_0x194784];return _0x394c1e;}export function isDaily(_0x56b265){const _0x1de50c=a261_0x28e52a;return normalizeEnv(_0x56b265)===_0x1de50c(0x7b);}export function isDev(_0xe3dcd3){const _0x521843=a261_0x28e52a,_0x581043=normalizeEnv(_0xe3dcd3);return _0x581043==='development'||_0x581043===_0x521843(0x87);}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||a261_0x28e52a(0x83));export function getEnv(){return env;}export function initEnv(_0x421db4){env=normalizeEnv(_0x421db4);}
|
package/lib/constant/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a262_0x2a21(){const _0x50b679=['115PkXRzd','230660XOfJcW','1329174FUSYbw','pretty','853331VBNrmv','3543144hphyqb','8HeglRO','64707aGtzFV','193968twXrSr','6230916MIGeNm'];a262_0x2a21=function(){return _0x50b679;};return a262_0x2a21();}const a262_0x4a3971=a262_0x28b9;(function(_0x5ea4db,_0x162cb3){const _0x250c5a=a262_0x28b9,_0x36b467=_0x5ea4db();while(!![]){try{const _0x4697e2=parseInt(_0x250c5a(0x134))/0x1+-parseInt(_0x250c5a(0x12c))/0x2*(parseInt(_0x250c5a(0x12d))/0x3)+parseInt(_0x250c5a(0x131))/0x4+parseInt(_0x250c5a(0x130))/0x5*(-parseInt(_0x250c5a(0x12e))/0x6)+parseInt(_0x250c5a(0x132))/0x7+-parseInt(_0x250c5a(0x135))/0x8+parseInt(_0x250c5a(0x12f))/0x9;if(_0x4697e2===_0x162cb3)break;else _0x36b467['push'](_0x36b467['shift']());}catch(_0x260007){_0x36b467['push'](_0x36b467['shift']());}}}(a262_0x2a21,0x7f129));function a262_0x28b9(_0x3832d9,_0x13bfc9){_0x3832d9=_0x3832d9-0x12c;const _0x2a2136=a262_0x2a21();let _0x28b94b=_0x2a2136[_0x3832d9];return _0x28b94b;}export const RABETBASE_OUTPUT_FORMAT_VALUES=['json',a262_0x4a3971(0x133),'compress'];
|
package/lib/constant/paths.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a263_0x357c1e=a263_0x2c3f;(function(_0x3fee4d,_0x2cc484){const _0x46960b=a263_0x2c3f,_0x20263f=_0x3fee4d();while(!![]){try{const _0x130826=-parseInt(_0x46960b(0xc3))/0x1+parseInt(_0x46960b(0xc4))/0x2*(-parseInt(_0x46960b(0xbe))/0x3)+parseInt(_0x46960b(0xc1))/0x4+-parseInt(_0x46960b(0xbf))/0x5+parseInt(_0x46960b(0xc0))/0x6+parseInt(_0x46960b(0xc5))/0x7+parseInt(_0x46960b(0xbc))/0x8*(parseInt(_0x46960b(0xbd))/0x9);if(_0x130826===_0x2cc484)break;else _0x20263f['push'](_0x20263f['shift']());}catch(_0x3cebdb){_0x20263f['push'](_0x20263f['shift']());}}}(a263_0x5d5c,0xae9e0));function a263_0x5d5c(){const _0x1fb1a2=['200dEEiMW','705145wBlVgJ','37384MAYlTO','3096kNCbCR','22524vRcsMj','4386755aoOFMC','5319768VgHZkG','2423620HaaaHj','./src/api','857397daSrtH'];a263_0x5d5c=function(){return _0x1fb1a2;};return a263_0x5d5c();}function a263_0x2c3f(_0x1998c2,_0x9119){_0x1998c2=_0x1998c2-0xbc;const _0x5d5c73=a263_0x5d5c();let _0x2c3ff8=_0x5d5c73[_0x1998c2];return _0x2c3ff8;}export const DEFAULT_API_DIR=a263_0x357c1e(0xc2);
|
package/lib/constant/region.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a264_0x4777(_0x5c22ec,_0x213399){_0x5c22ec=_0x5c22ec-0x1e3;const _0x2393a4=a264_0x2393();let _0x477721=_0x2393a4[_0x5c22ec];return _0x477721;}(function(_0x348f70,_0x351371){const _0x3e1e59=a264_0x4777,_0x1e3ba0=_0x348f70();while(!![]){try{const _0x5d5910=-parseInt(_0x3e1e59(0x1e6))/0x1*(parseInt(_0x3e1e59(0x1e7))/0x2)+parseInt(_0x3e1e59(0x1ed))/0x3+parseInt(_0x3e1e59(0x1ea))/0x4+parseInt(_0x3e1e59(0x1e4))/0x5+-parseInt(_0x3e1e59(0x1ee))/0x6*(-parseInt(_0x3e1e59(0x1e3))/0x7)+parseInt(_0x3e1e59(0x1eb))/0x8*(-parseInt(_0x3e1e59(0x1e8))/0x9)+parseInt(_0x3e1e59(0x1ec))/0xa;if(_0x5d5910===_0x351371)break;else _0x1e3ba0['push'](_0x1e3ba0['shift']());}catch(_0x3ef690){_0x1e3ba0['push'](_0x1e3ba0['shift']());}}}(a264_0x2393,0xddf7a));import{DEFAULT_REGION,ENABLED_REGION_VALUES,REGION_ALIASES,REGION_VALUES}from'../generated/official-routing.js';export const LOVRABET_REGION_VALUES=REGION_VALUES;export const ENABLED_LOVRABET_REGION_VALUES=ENABLED_REGION_VALUES;export const DEFAULT_LOVRABET_REGION=DEFAULT_REGION;export function isLovrabetRegion(_0x404357){const _0x1f325c=a264_0x4777;return typeof _0x404357===_0x1f325c(0x1e5)&&LOVRABET_REGION_VALUES[_0x1f325c(0x1e9)](_0x404357);}export function isEnabledLovrabetRegion(_0x50b664){const _0x344f28=a264_0x4777;return typeof _0x50b664===_0x344f28(0x1e5)&&ENABLED_LOVRABET_REGION_VALUES[_0x344f28(0x1e9)](_0x50b664);}export function normalizeLovrabetRegion(_0x3a14e4){if(typeof _0x3a14e4!=='string')return undefined;const _0x448b17=REGION_ALIASES[_0x3a14e4]??_0x3a14e4;return isLovrabetRegion(_0x448b17)?_0x448b17:undefined;}export function isInvalidLovrabetRegion(_0x4d8fed){return _0x4d8fed!==undefined&&_0x4d8fed!==null&&_0x4d8fed!==''&&normalizeLovrabetRegion(_0x4d8fed)===undefined;}function a264_0x2393(){const _0x32495e=['17aQkuOr','169006ukLLkj','18yfTebf','includes','950664iHQnII','3038624lGucBC','5805100bCnBiU','2623512teybOx','1244022zwrbrg','7pHaBpD','6026840JmrsgS','string'];a264_0x2393=function(){return _0x32495e;};return a264_0x2393();}
|
package/lib/constant/risk.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a265_0x471d(){const _0x3f79cc=['3aDlCJj','498064hSoraM','233275HKlywX','10851rROpnU','26JQuFgM','write','2770674BfWBFa','read','4194810JXgMAe','1743796nSOAzr','3790760BjNEPs','high-risk-write','21rEuKTH'];a265_0x471d=function(){return _0x3f79cc;};return a265_0x471d();}const a265_0x27d323=a265_0xc235;(function(_0x4a09f7,_0x4e5417){const _0x36c568=a265_0xc235,_0x199285=_0x4a09f7();while(!![]){try{const _0x26490f=-parseInt(_0x36c568(0x1f5))/0x1*(-parseInt(_0x36c568(0x1e9))/0x2)+parseInt(_0x36c568(0x1f2))/0x3*(parseInt(_0x36c568(0x1ee))/0x4)+parseInt(_0x36c568(0x1f4))/0x5+-parseInt(_0x36c568(0x1eb))/0x6+-parseInt(_0x36c568(0x1f1))/0x7*(-parseInt(_0x36c568(0x1f3))/0x8)+-parseInt(_0x36c568(0x1ed))/0x9+parseInt(_0x36c568(0x1ef))/0xa;if(_0x26490f===_0x4e5417)break;else _0x199285['push'](_0x199285['shift']());}catch(_0x4252eb){_0x199285['push'](_0x199285['shift']());}}}(a265_0x471d,0x3fe10));function a265_0xc235(_0xf6d94d,_0x51bedd){_0xf6d94d=_0xf6d94d-0x1e9;const _0x471d07=a265_0x471d();let _0xc2353=_0x471d07[_0xf6d94d];return _0xc2353;}export const RISK_LEVEL_VALUES=[a265_0x27d323(0x1ec),a265_0x27d323(0x1ea),a265_0x27d323(0x1f0)];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2bb5a5,_0x5d7ef3){const _0x126a1a=a266_0x33cc,_0x95cda5=_0x2bb5a5();while(!![]){try{const _0x53d70e=parseInt(_0x126a1a(0xfb))/0x1+parseInt(_0x126a1a(0xf9))/0x2*(-parseInt(_0x126a1a(0xf5))/0x3)+-parseInt(_0x126a1a(0xf7))/0x4*(-parseInt(_0x126a1a(0xf6))/0x5)+parseInt(_0x126a1a(0xfe))/0x6+-parseInt(_0x126a1a(0x100))/0x7*(parseInt(_0x126a1a(0xf8))/0x8)+parseInt(_0x126a1a(0xfc))/0x9+-parseInt(_0x126a1a(0xff))/0xa;if(_0x53d70e===_0x5d7ef3)break;else _0x95cda5['push'](_0x95cda5['shift']());}catch(_0x10a2f7){_0x95cda5['push'](_0x95cda5['shift']());}}}(a266_0x12e0,0x5fb72));function a266_0x12e0(){const _0x44aaea=['39tQazDq','3485yAFMCD','1756PAqTCd','280iVXOcK','25832FeqjkR','lovrabet','432099CuZABB','6808014cAnAPd','\x22\x20is\x20not\x20ready:\x20Lovrabet\x20CDN\x20Domain\x20is\x20not\x20configured.','358014FCcffT','5288790XHXfTW','93072ofwUuD','Official\x20routing\x20for\x20region\x20\x22'];a266_0x12e0=function(){return _0x44aaea;};return a266_0x12e0();}import{OFFICIAL_ROUTING_PROFILES as a266_0x34edb6,ROUTING_CATALOG_DIGEST}from'../generated/official-routing.js';export const OFFICIAL_ROUTING_PROFILES=a266_0x34edb6;function a266_0x33cc(_0x583bd5,_0x2c6b46){_0x583bd5=_0x583bd5-0xf4;const _0x12e0eb=a266_0x12e0();let _0x33cc17=_0x12e0eb[_0x583bd5];return _0x33cc17;}export{ROUTING_CATALOG_DIGEST};export function getOfficialRoutingProfile(_0x102987){return OFFICIAL_ROUTING_PROFILES[_0x102987];}export function getOfficialRoutingCdn(_0x21723a){const _0xbc4ec3=a266_0x33cc,_0x13bffe=getOfficialRoutingProfile(_0x21723a)['cdn'];if(!_0x13bffe[_0xbc4ec3(0xfa)])throw new Error(_0xbc4ec3(0xf4)+_0x21723a+_0xbc4ec3(0xfd));return{'libraries':_0x13bffe['libraries'],'lovrabet':_0x13bffe[_0xbc4ec3(0xfa)]};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4e0bbe,_0x3fb961){const _0x51f758=a267_0x22f9,_0x4f00a4=_0x4e0bbe();while(!![]){try{const _0x2205f5=-parseInt(_0x51f758(0x17e))/0x1+-parseInt(_0x51f758(0x18d))/0x2+parseInt(_0x51f758(0x1a2))/0x3*(parseInt(_0x51f758(0x19b))/0x4)+-parseInt(_0x51f758(0x182))/0x5+-parseInt(_0x51f758(0x18e))/0x6*(parseInt(_0x51f758(0x1a4))/0x7)+-parseInt(_0x51f758(0x186))/0x8+-parseInt(_0x51f758(0x185))/0x9*(-parseInt(_0x51f758(0x198))/0xa);if(_0x2205f5===_0x3fb961)break;else _0x4f00a4['push'](_0x4f00a4['shift']());}catch(_0x4aa739){_0x4f00a4['push'](_0x4f00a4['shift']());}}}(a267_0x3b30,0x5da79));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 a267_0x3b30(){const _0x3a41ee=['entries','trim','format','166369ZsQjiy','accessKey','region','ENV','3801625YTVuRU','daily','locale','161460Rcyetv','3889216qzcFrM','projectConfig','keys','apps','pageSize','filter','globalConfig','1217552rgxldc','102UuHLST','VERBOSE','length','write','PAGE_SIZE','defaultApp','COOKIE','projectPath','true','FORMAT','1420awDLwS','string','value','99124ejPaOC','object','ACCESS_KEY','read','source','appcode','riskLevel','6fhoOzN','env','78981RKzZWt'];a267_0x3b30=function(){return _0x3a41ee;};return a267_0x3b30();}function stringConfigValue(_0x646f41){const _0x585b1b=a267_0x22f9;return typeof _0x646f41===_0x585b1b(0x199)&&_0x646f41['trim']()?_0x646f41['trim']():undefined;}function appProfiles(_0x3c2aec){const _0x576bf2=a267_0x22f9;return _0x3c2aec[_0x576bf2(0x189)]&&typeof _0x3c2aec['apps']===_0x576bf2(0x19c)?_0x3c2aec['apps']:{};}function resolveDefaultAppName(_0x3dfb70){const _0x2ec735=a267_0x22f9,_0xa64caa=stringConfigValue(_0x3dfb70[_0x2ec735(0x193)]);if(_0xa64caa)return _0xa64caa;const _0xc2866=Object[_0x2ec735(0x188)](appProfiles(_0x3dfb70));return _0xc2866[_0x2ec735(0x190)]===0x1?_0xc2866[0x0]:undefined;}function a267_0x22f9(_0x5e8aa1,_0x14c7df){_0x5e8aa1=_0x5e8aa1-0x17d;const _0x3b30ee=a267_0x3b30();let _0x22f99a=_0x3b30ee[_0x5e8aa1];return _0x22f99a;}function resolveTopLevelAppCode(_0x26ad44){const _0x23968d=a267_0x22f9;return stringConfigValue(_0x26ad44[_0x23968d(0x1a0)])||stringConfigValue(_0x26ad44['app']);}function normalizeRiskCeiling(_0x5100db){const _0x338602=a267_0x22f9;if(_0x5100db===undefined||_0x5100db===null)return undefined;if(_0x5100db==='read'||_0x5100db===_0x338602(0x191)||_0x5100db==='high-risk-write')return _0x5100db;return _0x338602(0x19e);}function resolveRiskCeiling(..._0x53ce95){let _0xffa565;for(const _0xf38fdf of _0x53ce95){const _0x4d831a=normalizeRiskCeiling(_0xf38fdf);_0x4d831a&&(!_0xffa565||riskLevelOrder(_0x4d831a)<riskLevelOrder(_0xffa565))&&(_0xffa565=_0x4d831a);}return _0xffa565??DEFAULT_CONFIG_VALUES['riskLevel'];}export function resolveAppConfig({raw:_0x37a72e,flags:_0xe9763c,layers:_0x55ee46,readEnv:_0x125e21}){const _0x596f24=a267_0x22f9,_0x1994a1=_0x55ee46?.[_0x596f24(0x187)]??{},_0x2ecb99=_0x55ee46?.[_0x596f24(0x18c)]??{},_0x5e6e88=!!_0x55ee46?.[_0x596f24(0x195)]||Object[_0x596f24(0x188)](_0x1994a1)[_0x596f24(0x190)]>0x0,_0x45ca79=!_0x5e6e88,_0x4ce411=_0x5e6e88?resolveDefaultAppName(_0x1994a1):undefined,_0x44d784=_0x45ca79?resolveDefaultAppName(_0x2ecb99):undefined,_0x35e747=stringConfigValue(_0xe9763c['app']),_0x215355=_0x125e21('APP'),_0x2a7a73={};if(_0x37a72e[_0x596f24(0x189)]&&typeof _0x37a72e[_0x596f24(0x189)]===_0x596f24(0x19c))for(const [_0x230f02,_0x4af43e]of Object[_0x596f24(0x1a5)](_0x37a72e[_0x596f24(0x189)])){_0x4af43e&&typeof _0x4af43e==='object'&&_0x4af43e[_0x596f24(0x1a0)]&&(_0x2a7a73[_0x230f02]=_0x4af43e);}const _0xacffa9=_0x4ce411||_0x44d784||resolveDefaultAppName(_0x37a72e),_0x193dd0=Object['keys'](_0x2a7a73)[_0x596f24(0x190)]>0x0,_0x421145=_0x35e747||_0x4ce411||_0x215355||_0x44d784||_0xacffa9||undefined,_0xf2c117=stringConfigValue(_0xe9763c[_0x596f24(0x1a0)]),_0x4a51c6=_0xf2c117?Object[_0x596f24(0x1a5)](_0x2a7a73)[_0x596f24(0x18b)](([,_0x1a0ced])=>_0x1a0ced?.[_0x596f24(0x1a0)]===_0xf2c117):[],_0x1484ff=_0x35e747&&_0x2a7a73[_0x35e747]?.[_0x596f24(0x1a0)]===_0xf2c117?[_0x35e747,_0x2a7a73[_0x35e747]]:undefined,_0xec6c6c=_0x1484ff??(_0x4a51c6['length']===0x1?_0x4a51c6[0x0]:undefined),_0xc14265=_0xec6c6c?.[0x0],_0x25dc2c=_0xec6c6c?.[0x1],_0x5dca3a=_0xf2c117?_0xc14265:_0x421145;let _0x3439b1=_0x5dca3a&&_0x2a7a73[_0x5dca3a]?_0x2a7a73[_0x5dca3a]:undefined;_0xf2c117&&_0x25dc2c&&(_0x3439b1=_0x25dc2c);const _0x4d9893=_0xf2c117?_0x25dc2c??_0x3439b1:_0x3439b1,_0x75a8d2=!_0x35e747&&!_0x4ce411&&_0x215355&&_0x5dca3a===_0x215355,_0x5cc380=_0x35e747||(_0x75a8d2?_0x215355:undefined)||(_0xf2c117?_0xc14265:undefined),_0x30e14a=_0x4d9893?.[_0x596f24(0x1a0)],_0x4b78f9=_0x5e6e88?resolveTopLevelAppCode(_0x1994a1):undefined,_0x14d121=_0x45ca79?resolveTopLevelAppCode(_0x2ecb99):undefined,_0x23aab7=_0x35e747||_0x4ce411?_0x30e14a:undefined,_0x21d9ca=!_0x35e747&&!_0x4ce411?_0x30e14a:undefined,_0x17a780=_0xf2c117||_0x23aab7||_0x4b78f9||_0x21d9ca||_0x14d121||undefined,_0x4b5407=_0x5e6e88?stringConfigValue(_0x1994a1[_0x596f24(0x1a3)]):undefined,_0x124858=_0x45ca79?stringConfigValue(_0x2ecb99[_0x596f24(0x1a3)]):undefined,_0x1c40af=_0xe9763c[_0x596f24(0x1a3)]||_0x4d9893?.[_0x596f24(0x1a3)]||_0x4b5407||_0x125e21(_0x596f24(0x181))||_0x124858||_0x37a72e[_0x596f24(0x1a3)]||DEFAULT_CONFIG_VALUES[_0x596f24(0x1a3)],_0x14c51b=_0x4d9893?.['locale']||_0x37a72e['locale']||DEFAULT_CONFIG_VALUES[_0x596f24(0x184)],_0xc56f25=_0x125e21(_0x596f24(0x194))||_0x4d9893?.['cookie']||_0x37a72e['cookie']||undefined,_0x2f0cc2=_0x125e21(_0x596f24(0x19d))||_0x4d9893?.[_0x596f24(0x17f)]||_0x37a72e[_0x596f24(0x17f)]||undefined,_0x3bee0a=_0xe9763c[_0x596f24(0x17d)]||_0x125e21(_0x596f24(0x197))||_0x4d9893?.[_0x596f24(0x17d)]||_0x37a72e[_0x596f24(0x17d)],_0x175ea2=normalizeLegacyOutputFormat(_0x3bee0a),_0x364720=_0x125e21(_0x596f24(0x192))||_0x4d9893?.[_0x596f24(0x18a)]||_0x37a72e['pageSize'],_0x24bd42=_0x364720?Number(_0x364720)||undefined:undefined,_0x28cd57=_0x55ee46?[_0x55ee46[_0x596f24(0x18c)][_0x596f24(0x1a1)],_0x55ee46[_0x596f24(0x187)][_0x596f24(0x1a1)]]:[_0x37a72e[_0x596f24(0x1a1)]],_0x51627f=resolveRiskCeiling(..._0x28cd57,_0x4d9893?.[_0x596f24(0x1a1)]),_0x254b8c=resolveRiskCeiling(_0x51627f,_0x125e21('RISK_LEVEL')),_0x3513f9=_0x125e21(_0x596f24(0x18f)),_0x2519ee=_0x3513f9==='1'||_0x3513f9===_0x596f24(0x196),_0x55a653=_0x4d9893?.['apiDir']||_0x37a72e['apiDir']||DEFAULT_CONFIG_VALUES['apiDir'],_0x3ba9a6=selectConfiguredRegion({'appRegion':_0x4d9893?.[_0x596f24(0x180)],'projectRegion':_0x5e6e88?_0x1994a1[_0x596f24(0x180)]:undefined,'globalRegion':_0x5e6e88||_0x45ca79?_0x2ecb99[_0x596f24(0x180)]:undefined,'mergedRegion':_0x37a72e['region']}),_0x12a9f1=normalizeLovrabetRegion(_0x3ba9a6['value'])??DEFAULT_LOVRABET_REGION,_0x4fac60=isDaily(normalizeEnv(String(_0x1c40af)))?_0x596f24(0x183):'production';return{'appCode':typeof _0x17a780===_0x596f24(0x199)&&_0x17a780[_0x596f24(0x1a6)]()?_0x17a780[_0x596f24(0x1a6)]():undefined,'region':_0x12a9f1,'regionConfiguredValue':_0x3ba9a6[_0x596f24(0x19a)],'regionSource':_0x3ba9a6[_0x596f24(0x19f)],'env':_0x4fac60,'locale':_0x14c51b,'cookie':_0xc56f25,'accessKey':_0x2f0cc2,'format':_0x175ea2,'pageSize':_0x24bd42,'riskLevel':_0x254b8c,'verbose':_0x2519ee,'apiDir':_0x55a653,'apps':_0x2a7a73,'defaultApp':_0xacffa9,'currentApp':_0x193dd0?_0x5dca3a:undefined,'explicitAppName':_0x5cc380};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x1795e6,_0x436a88){const _0x76caf7=a268_0x58ca,_0x56c86b=_0x1795e6();while(!![]){try{const _0x4b4acc=parseInt(_0x76caf7(0xe5))/0x1*(-parseInt(_0x76caf7(0xec))/0x2)+-parseInt(_0x76caf7(0xe9))/0x3+-parseInt(_0x76caf7(0xe2))/0x4+parseInt(_0x76caf7(0xea))/0x5+parseInt(_0x76caf7(0xe4))/0x6*(-parseInt(_0x76caf7(0xe7))/0x7)+-parseInt(_0x76caf7(0xe6))/0x8+-parseInt(_0x76caf7(0xeb))/0x9*(-parseInt(_0x76caf7(0xe3))/0xa);if(_0x4b4acc===_0x436a88)break;else _0x56c86b['push'](_0x56c86b['shift']());}catch(_0x3615d7){_0x56c86b['push'](_0x56c86b['shift']());}}}(a268_0x3a45,0xbf2ef));import{getIsSessionValid}from'../auth/is-session-valid.js';function a268_0x3a45(){const _0x57480a=['../auth/get-cookie.js','4388628eDDqyK','2894495xUodER','45vlKTZj','2GGjLrv','1444528IkagHz','10209100MrhUgp','483714KqAzAw','1153340XwqjQF','4419928tHlbPw','119OCavnx'];a268_0x3a45=function(){return _0x57480a;};return a268_0x3a45();}function a268_0x58ca(_0x46e3e2,_0x183e07){_0x46e3e2=_0x46e3e2-0xe2;const _0x3a45da=a268_0x3a45();let _0x58ca4b=_0x3a45da[_0x46e3e2];return _0x58ca4b;}import{CliErrors}from'../errors.js';export async function buildAuth(_0x1eb9ff){const _0x290582=a268_0x58ca,{getCookie:_0xe1ada7}=await import(_0x290582(0xe8)),_0x551d14=_0x1eb9ff['cookie']||_0xe1ada7(),_0x42118e=_0x551d14?await getIsSessionValid():![];return{'cookie':_0x551d14,'isLoggedIn':_0x42118e,async 'getOrLogin'(){if(_0x551d14&&_0x42118e)return _0x551d14;throw CliErrors['authRequired']();}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a269_0x874071=a269_0x2c3d;(function(_0x4b52d1,_0x154280){const _0x6ece1=a269_0x2c3d,_0xe6ec95=_0x4b52d1();while(!![]){try{const _0x178619=parseInt(_0x6ece1(0xa8))/0x1+parseInt(_0x6ece1(0x89))/0x2+-parseInt(_0x6ece1(0x76))/0x3+parseInt(_0x6ece1(0xa5))/0x4+-parseInt(_0x6ece1(0x86))/0x5*(parseInt(_0x6ece1(0x80))/0x6)+parseInt(_0x6ece1(0x7a))/0x7*(-parseInt(_0x6ece1(0x91))/0x8)+parseInt(_0x6ece1(0x83))/0x9*(-parseInt(_0x6ece1(0x97))/0xa);if(_0x178619===_0x154280)break;else _0xe6ec95['push'](_0xe6ec95['shift']());}catch(_0x985fec){_0xe6ec95['push'](_0xe6ec95['shift']());}}}(a269_0x23dc,0x3a1b7));import{existsSync,mkdirSync,readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{dirname,parse,resolve}from'node:path';import{homedir}from'node:os';import{CLI_BIN_NAME}from'../constant/cli.js';import{normalizeConfigForWrite}from'../config/schema.js';export const NEW_CONFIG_NAME='.rabetbase.json';export const CONFIG_NAMES=[NEW_CONFIG_NAME];const normalizedWriteCache=new Map();export function resolveConfigPath(_0x2ddc01){for(const _0x161f69 of CONFIG_NAMES){const _0x2fafcb=resolve(_0x2ddc01,_0x161f69);if(existsSync(_0x2fafcb))return _0x2fafcb;}return undefined;}function a269_0x23dc(){const _0x1ee89f=['app','kbDomain','project','error','1544164KsqawD','utf8','appDomain','432219cycRSS','cwd','region','empty','617979foAUHi','inherit','set','string','43946yOAWTI','silent','config','\x0a\x20\x20','accessKey','apiDir','1092NVEnAJ','appcode','.tmp','54HTDucg','migrated','defaultApp','11920eJxuBa','format','status','547160wZQJMH','missing','pageSize','userDomain','warn','cookie','message','apiDomain','16eaappE','length','apps','Project','object','certificateDomain','335660EUlxUn','data','riskLevel','trim','stringify','runtimeDomain','keys','routing','parse','locale'];a269_0x23dc=function(){return _0x1ee89f;};return a269_0x23dc();}export function findProjectRootDirectory(_0x324a23=process[a269_0x874071(0xa9)]()){let _0x306f85=resolve(_0x324a23);const {root:_0x27afb6}=parse(_0x306f85),_0x321b1d=homedir();while(!![]){if(resolveConfigPath(_0x306f85)){if(_0x306f85===_0x321b1d)break;return _0x306f85;}if(_0x306f85===_0x27afb6||_0x306f85===_0x321b1d)break;const _0x2753fc=dirname(_0x306f85);if(_0x2753fc===_0x306f85)break;_0x306f85=_0x2753fc;}return resolve(_0x324a23);}export function getProjectConfigPath(){const _0x2d58ba=a269_0x874071;return resolveConfigPath(process[_0x2d58ba(0xa9)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function isInProject(){return!!getProjectConfigPath();}export function inspectCliConfigJsonFile(_0x348de4){const _0x19c4b1=a269_0x874071;if(!existsSync(_0x348de4))return{'status':_0x19c4b1(0x8a)};try{const _0x36cff4=readFileSync(_0x348de4,{'encoding':_0x19c4b1(0xa6)});if(!_0x36cff4?.[_0x19c4b1(0x9a)]())return{'status':_0x19c4b1(0xab)};const _0x556069=JSON[_0x19c4b1(0x9f)](_0x36cff4);return{'status':'ok','data':_0x556069};}catch(_0x518ed5){return{'status':_0x19c4b1(0xa4),'message':_0x518ed5 instanceof Error?_0x518ed5[_0x19c4b1(0x8f)]:String(_0x518ed5)};}}function parseCliConfigJsonFile(_0x24abac,_0xa48b8,_0x57ae5c){const _0x60929c=a269_0x874071,_0x2fa498=inspectCliConfigJsonFile(_0x24abac);if(_0x2fa498[_0x60929c(0x88)]==='missing'||_0x2fa498[_0x60929c(0x88)]===_0x60929c(0xab))return{};if(_0x2fa498[_0x60929c(0x88)]==='ok')return _0x2fa498[_0x60929c(0x98)];return _0xa48b8===_0x60929c(0x8d)&&_0x57ae5c&&console[_0x60929c(0xa4)](CLI_BIN_NAME+':\x20'+_0x57ae5c+'\x20config\x20file\x20ignored\x20(invalid\x20JSON\x20or\x20unreadable):\x20'+_0x24abac+_0x60929c(0x7d)+_0x2fa498['message']),{};}function normalizeLegacyConfigShape(_0x57df31){const _0x5a2814=a269_0x874071;if(!_0x57df31||typeof _0x57df31!==_0x5a2814(0x95))return{'config':{},'migrated':![]};const _0x27708d={..._0x57df31},_0x58bab3=_0x27708d[_0x5a2814(0x93)]&&typeof _0x27708d[_0x5a2814(0x93)]==='object'?{..._0x27708d[_0x5a2814(0x93)]}:{},_0x1b4ea0=Object[_0x5a2814(0x9d)](_0x58bab3)[_0x5a2814(0x92)],_0x2878d5=_0x27708d[_0x5a2814(0x81)]||_0x27708d[_0x5a2814(0xa1)];let _0xa4bcff=![];if(_0x2878d5&&_0x1b4ea0===0x0){const _0x20505a=typeof _0x27708d[_0x5a2814(0x85)]===_0x5a2814(0x79)&&_0x27708d[_0x5a2814(0x85)][_0x5a2814(0x9a)]()?_0x27708d[_0x5a2814(0x85)]:String(_0x2878d5)[_0x5a2814(0x9a)]();_0x58bab3[_0x20505a]={'appcode':String(_0x2878d5)[_0x5a2814(0x9a)](),..._0x27708d['env']!=null?{'env':_0x27708d['env']}:{},..._0x27708d[_0x5a2814(0x7f)]!=null?{'apiDir':_0x27708d[_0x5a2814(0x7f)]}:{},..._0x27708d['cookie']!=null?{'cookie':_0x27708d[_0x5a2814(0x8e)]}:{},..._0x27708d[_0x5a2814(0x7e)]!=null?{'accessKey':_0x27708d['accessKey']}:{},..._0x27708d[_0x5a2814(0x87)]!=null?{'format':_0x27708d[_0x5a2814(0x87)]}:{},..._0x27708d[_0x5a2814(0x8b)]!=null?{'pageSize':_0x27708d['pageSize']}:{},..._0x27708d[_0x5a2814(0x99)]!=null?{'riskLevel':_0x27708d[_0x5a2814(0x99)]}:{},..._0x27708d[_0x5a2814(0xa0)]!=null?{'locale':_0x27708d['locale']}:{}},_0x27708d[_0x5a2814(0x93)]=_0x58bab3,delete _0x27708d[_0x5a2814(0x85)],_0xa4bcff=!![];}return(_0x5a2814(0x81)in _0x27708d||_0x5a2814(0xa1)in _0x27708d)&&(delete _0x27708d[_0x5a2814(0x81)],delete _0x27708d[_0x5a2814(0xa1)],_0xa4bcff=!![]),{'config':_0x27708d,'migrated':_0xa4bcff};}function writeNormalizedConfigIfNeeded(_0x84cf2b,_0x26bd42){const _0xb394a9=a269_0x874071,_0x159473=JSON[_0xb394a9(0x9b)](normalizeConfigForWrite(_0x26bd42),null,0x2)+'\x0a';if(normalizedWriteCache['get'](_0x84cf2b)===_0x159473)return;writeConfigFile(_0x84cf2b,_0x26bd42),normalizedWriteCache[_0xb394a9(0x78)](_0x84cf2b,_0x159473);}function parseAndNormalizeConfig(_0x2fcf6e,_0x14dd9d,_0x1d8ec1){const _0x3ce18=a269_0x874071,_0x13ff05=parseCliConfigJsonFile(_0x2fcf6e,_0x14dd9d,_0x1d8ec1),_0x1aa8d2=normalizeLegacyConfigShape(_0x13ff05);if(_0x1aa8d2[_0x3ce18(0x84)])try{writeNormalizedConfigIfNeeded(_0x2fcf6e,_0x1aa8d2[_0x3ce18(0x7c)]);}catch{}return _0x1aa8d2[_0x3ce18(0x7c)];}export function loadRawConfigLayers(_0x1fa3ef){const _0x26f99c=a269_0x874071;let _0x2eb7a2={},_0x467e65={};const _0x445c57=resolveConfigPath(homedir());_0x445c57&&(_0x2eb7a2=parseAndNormalizeConfig(_0x445c57,'warn','Global'));const _0x5cbc6a=_0x1fa3ef??findProjectRootDirectory(),_0x53281f=resolveConfigPath(_0x5cbc6a);return _0x53281f&&(_0x467e65=parseAndNormalizeConfig(_0x53281f,_0x26f99c(0x8d),_0x26f99c(0x94))),{'globalPath':_0x445c57,'projectPath':_0x53281f,'globalConfig':_0x2eb7a2,'projectConfig':_0x467e65};}const INHERIT_WHITELIST=[a269_0x874071(0x8e),a269_0x874071(0x7e),'locale','format',a269_0x874071(0x99),a269_0x874071(0x8b),a269_0x874071(0xaa),a269_0x874071(0x9e),a269_0x874071(0x8c),a269_0x874071(0x90),a269_0x874071(0x9c),'skillDomain',a269_0x874071(0xa2),'kbServiceDomain',a269_0x874071(0xa7),'localDomain',a269_0x874071(0x96)];export function mergeRawConfigLayers(_0x1388b4){const _0x5baeea=a269_0x874071,{globalConfig:_0x1936a9,projectConfig:_0x2aeb11}=_0x1388b4,_0x5f317d=!!_0x1388b4['projectPath']||Object[_0x5baeea(0x9d)](_0x2aeb11)[_0x5baeea(0x92)]>0x0;if(!_0x5f317d)return mergeGlobalOnly(_0x1936a9);return mergeProjectFirst(_0x1936a9,_0x2aeb11);}function mergeGlobalOnly(_0x366f82){const _0x70559c=a269_0x874071,_0x384a8c={..._0x366f82};delete _0x384a8c[_0x70559c(0x77)];const _0x54d012=_0x366f82['apps']&&typeof _0x366f82[_0x70559c(0x93)]===_0x70559c(0x95)?_0x366f82[_0x70559c(0x93)]:{};if(Object[_0x70559c(0x9d)](_0x54d012)[_0x70559c(0x92)]>0x0)_0x384a8c['apps']=_0x54d012;if(_0x366f82[_0x70559c(0x85)])_0x384a8c[_0x70559c(0x85)]=_0x366f82[_0x70559c(0x85)];return _0x384a8c;}function a269_0x2c3d(_0x1352b5,_0x2c24ff){_0x1352b5=_0x1352b5-0x76;const _0x23dc47=a269_0x23dc();let _0x2c3dfd=_0x23dc47[_0x1352b5];return _0x2c3dfd;}function mergeProjectFirst(_0xe50ab5,_0x3b79af){const _0x21e97c=a269_0x874071,_0x247ad5={..._0x3b79af};delete _0x247ad5[_0x21e97c(0x77)];for(const _0x1a53be of INHERIT_WHITELIST){!(_0x1a53be in _0x247ad5)&&_0x1a53be in _0xe50ab5&&(_0x247ad5[_0x1a53be]=_0xe50ab5[_0x1a53be]);}const _0x4c77ef=_0x3b79af[_0x21e97c(0x93)]&&typeof _0x3b79af[_0x21e97c(0x93)]===_0x21e97c(0x95)?_0x3b79af[_0x21e97c(0x93)]:{};return Object[_0x21e97c(0x9d)](_0x4c77ef)[_0x21e97c(0x92)]>0x0?_0x247ad5[_0x21e97c(0x93)]=_0x4c77ef:delete _0x247ad5[_0x21e97c(0x93)],_0x21e97c(0x85)in _0x3b79af?_0x247ad5['defaultApp']=_0x3b79af[_0x21e97c(0x85)]:delete _0x247ad5[_0x21e97c(0x85)],_0x247ad5;}export function readRawConfigWithLayers(_0x15cc43){const _0x256b69=loadRawConfigLayers(_0x15cc43);return{'config':mergeRawConfigLayers(_0x256b69),'layers':_0x256b69};}export function readRawConfig(_0x272f48){return mergeRawConfigLayers(loadRawConfigLayers(_0x272f48));}export function readConfigFile(_0x480f64){const _0x1858ae=a269_0x874071;return parseAndNormalizeConfig(_0x480f64,_0x1858ae(0x7b));}export function writeConfigFile(_0x125a76,_0x38d9d4){const _0x4ebb4f=a269_0x874071,_0x141823=dirname(_0x125a76);!existsSync(_0x141823)&&mkdirSync(_0x141823,{'recursive':!![]});const _0x1d9c6b=_0x125a76+_0x4ebb4f(0x82);try{const _0x5e795e=normalizeConfigForWrite(_0x38d9d4);writeFileSync(_0x1d9c6b,JSON[_0x4ebb4f(0x9b)](_0x5e795e,null,0x2)+'\x0a',{'encoding':_0x4ebb4f(0xa6),'mode':0x180}),renameSync(_0x1d9c6b,_0x125a76);}catch(_0x119609){try{unlinkSync(_0x1d9c6b);}catch{}throw _0x119609;}}export function resolveWriteConfigPath(_0x1c0cbc){const _0x5ba37d=a269_0x874071,_0x1760e6=_0x1c0cbc===_0x5ba37d(0xa3)?process[_0x5ba37d(0xa9)]():homedir(),_0x3416af=resolveConfigPath(_0x1760e6);return _0x3416af??resolve(_0x1760e6,NEW_CONFIG_NAME);}
|
package/lib/context.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a270_0x58b889=a270_0x20b2;(function(_0x253342,_0x688a43){const _0x5195eb=a270_0x20b2,_0x50919a=_0x253342();while(!![]){try{const _0x53b840=-parseInt(_0x5195eb(0x1b6))/0x1+-parseInt(_0x5195eb(0x1df))/0x2*(parseInt(_0x5195eb(0x1cb))/0x3)+parseInt(_0x5195eb(0x1af))/0x4+parseInt(_0x5195eb(0x1da))/0x5+-parseInt(_0x5195eb(0x1a4))/0x6*(-parseInt(_0x5195eb(0x1d0))/0x7)+-parseInt(_0x5195eb(0x1a6))/0x8*(parseInt(_0x5195eb(0x19f))/0x9)+parseInt(_0x5195eb(0x1aa))/0xa;if(_0x53b840===_0x688a43)break;else _0x50919a['push'](_0x50919a['shift']());}catch(_0x37e0c2){_0x50919a['push'](_0x50919a['shift']());}}}(a270_0x21a4,0xaf6b6));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(_0x22bb01){return process.env[`RABETBASE_${_0x22bb01}`]||process.env[`LOVRABET_${_0x22bb01}`]||undefined;}function optionalString(_0x35832a){const _0x1ce2eb=a270_0x20b2;return typeof _0x35832a==='string'&&_0x35832a[_0x1ce2eb(0x1e1)]()?_0x35832a['trim']():undefined;}export function isRoutingRecoveryService(_0x2ba312){const _0x135d4b=a270_0x20b2;return _0x2ba312===_0x135d4b(0x1b1)||_0x2ba312===_0x135d4b(0x1e3);}export async function createContext(_0x1c27fe){const _0x5e4a0c=a270_0x20b2,{config:_0x477218,layers:_0x463a2e}=readRawConfigWithLayers(),_0x53fa42=buildConfig(_0x477218,_0x1c27fe,_0x463a2e);await initGlobalEnvironment(_0x53fa42);const {getUserDomain:_0x4ec12a,getApiDomain:_0xa8cef8}=await import(_0x5e4a0c(0x1b3)),_0x35c583={'apiDomain':_0xa8cef8(),'userDomain':_0x4ec12a()},_0x3da7dd=await buildAuth(_0x53fa42);logger[_0x5e4a0c(0x1cd)](process[_0x5e4a0c(0x1b5)]());const _0x31b7b5=(CLI_BIN_NAME+'\x20'+process[_0x5e4a0c(0x1c1)]['slice'](0x2)['join']('\x20'))[_0x5e4a0c(0x1e1)]();logger[_0x5e4a0c(0x1d3)](_0x31b7b5);const {isNonInteractive:_0x68a3f7}=await import('./utils/is-non-interactive.js'),_0x3dd1bc=_0x68a3f7(_0x1c27fe);return{'config':_0x53fa42,'auth':_0x3da7dd,'logger':logger,'env':_0x35c583,'nonInteractive':_0x3dd1bc};}export function buildConfigFromFlags(_0x206cb4){const {config:_0x48f05f,layers:_0x28d936}=readRawConfigWithLayers();return buildConfig(_0x48f05f,_0x206cb4,_0x28d936);}function a270_0x21a4(){const _0x457e27=['4592696NNePEk','project\x20Rabetbase\x20configuration','config','object','./constant/domain.js','currentApp','cwd','1040701CNIWvU','regionLocation','global\x20Rabetbase\x20configuration','regionSource','platformDomain','map','globalConfig','cdn','apiDir','routing','apps','argv','app\x20profile\x20\x22','daily','userDomain','env','region','apiDomain','project','routingConfig','filter','804PqBzsg','targetEnv','setLogPath','length','certificateDomain','7196lPyIxR','replace','entries','setRawCommand','merged','runtimeDomain','global','kbServiceDomain','Rabetbase\x20configuration','production','3476935HkHCYF','skillHubDomain','name','domains','call','8730oAhjTd','keys','trim','defaultApp','doctor','apiGroup','skillDomain','agentDomain','source','appcode','regionConfiguredValue','some','9TbkPyY','projectConfig','configuredRegion','raw','appDomain','4242bjEhgm','prototype','6745720CHepRa','app','./constant/env.js','localDomain','12018970KGRKJV','hasOwnProperty','string','template_base_url','kbDomain'];a270_0x21a4=function(){return _0x457e27;};return a270_0x21a4();}export async function initGlobalEnvironment(_0x20598f){const _0x1c2fac=a270_0x20b2,_0x4efc3d=_0x20598f['regionSource']===_0x1c2fac(0x1a7)&&_0x20598f[_0x1c2fac(0x1b4)]?_0x1c2fac(0x1c2)+_0x20598f[_0x1c2fac(0x1b4)]+'\x22':_0x20598f['regionSource']===_0x1c2fac(0x1c8)?_0x1c2fac(0x1b0):_0x20598f[_0x1c2fac(0x1b9)]===_0x1c2fac(0x1d6)?_0x1c2fac(0x1b8):_0x1c2fac(0x1d8);await initConfiguredEnvironment({'raw':_0x20598f[_0x1c2fac(0x1a2)],'configuredRegion':_0x20598f[_0x1c2fac(0x19d)]??_0x20598f[_0x1c2fac(0x1a2)]?.[_0x1c2fac(0x1c6)]??_0x20598f[_0x1c2fac(0x1c6)],'regionLocation':_0x4efc3d,'targetEnv':_0x20598f[_0x1c2fac(0x1c5)]});}async function initConfiguredEnvironment(_0x1c9de3){const _0x5644b2=a270_0x20b2,_0x5baa36=resolveConfiguredRegion(_0x1c9de3[_0x5644b2(0x1a1)],_0x1c9de3[_0x5644b2(0x1b7)]),_0xa6354a=resolveEnterpriseRoutingManifest(_0x1c9de3[_0x5644b2(0x1a2)]?.[_0x5644b2(0x1bf)]),_0x55f6f5={'region':_0x5baa36,'apiDomain':_0xa6354a?_0xa6354a[_0x5644b2(0x1dd)]['apiDomain']:optionalString(_0x1c9de3[_0x5644b2(0x1a2)]?.['apiDomain']),'userDomain':_0xa6354a?_0xa6354a[_0x5644b2(0x1dd)][_0x5644b2(0x1c4)]:optionalString(_0x1c9de3['raw']?.[_0x5644b2(0x1c4)]),'runtimeDomain':_0xa6354a?_0xa6354a['domains'][_0x5644b2(0x1d5)]:optionalString(_0x1c9de3[_0x5644b2(0x1a2)]?.[_0x5644b2(0x1d5)]),'skillDomain':_0xa6354a?_0xa6354a[_0x5644b2(0x1dd)]['skillDomain']:optionalString(_0x1c9de3[_0x5644b2(0x1a2)]?.[_0x5644b2(0x1e5)])||optionalString(_0x1c9de3[_0x5644b2(0x1a2)]?.[_0x5644b2(0x1db)])||optionalString(_0x1c9de3[_0x5644b2(0x1a2)]?.[_0x5644b2(0x1e6)])||optionalString(_0x1c9de3[_0x5644b2(0x1a2)]?.['platformDomain']),'kbDomain':_0xa6354a?_0xa6354a[_0x5644b2(0x1dd)][_0x5644b2(0x1ae)]:optionalString(_0x1c9de3['raw']?.['kbDomain'])||optionalString(_0x1c9de3[_0x5644b2(0x1a2)]?.[_0x5644b2(0x1e6)])||optionalString(_0x1c9de3[_0x5644b2(0x1a2)]?.['platformDomain']),'kbServiceDomain':_0xa6354a?_0xa6354a[_0x5644b2(0x1dd)]['kbServiceDomain']:optionalString(_0x1c9de3['raw']?.[_0x5644b2(0x1d7)]),'appDomain':_0xa6354a?_0xa6354a[_0x5644b2(0x1dd)][_0x5644b2(0x1a3)]:optionalString(_0x1c9de3[_0x5644b2(0x1a2)]?.['appDomain']),'localDomain':_0xa6354a?_0xa6354a[_0x5644b2(0x1dd)][_0x5644b2(0x1a9)]:optionalString(_0x1c9de3[_0x5644b2(0x1a2)]?.['localDomain']),'certificateDomain':_0xa6354a?_0xa6354a[_0x5644b2(0x1dd)]['certificateDomain']:optionalString(_0x1c9de3['raw']?.[_0x5644b2(0x1cf)]),'cdn':_0xa6354a?.[_0x5644b2(0x1bd)],'allowOfficialKbServiceDefault':!(_0xa6354a!==undefined||[_0x5644b2(0x1c7),_0x5644b2(0x1c4),_0x5644b2(0x1d5),_0x5644b2(0x1e5),_0x5644b2(0x1db),_0x5644b2(0x1ae),_0x5644b2(0x1d7),_0x5644b2(0x1e6),_0x5644b2(0x1ba),'appDomain','localDomain',_0x5644b2(0x1cf)][_0x5644b2(0x19e)](_0x9b978c=>Object['prototype'][_0x5644b2(0x1ab)][_0x5644b2(0x1de)](_0x1c9de3[_0x5644b2(0x1a2)]??{},_0x9b978c)))},{initEnv:_0x3a0044}=await import(_0x5644b2(0x1a8)),{initDomains:_0x510942}=await import(_0x5644b2(0x1b3));_0x3a0044(_0x1c9de3[_0x5644b2(0x1cc)]),_0x510942(_0x55f6f5);}function a270_0x20b2(_0xa9e3c9,_0x3978f4){_0xa9e3c9=_0xa9e3c9-0x19c;const _0x21a4cc=a270_0x21a4();let _0x20b2a2=_0x21a4cc[_0xa9e3c9];return _0x20b2a2;}export async function initMultiAppEnvironment(_0x365ae2){const _0x6275c9=a270_0x20b2;await initConfiguredEnvironment({'raw':_0x365ae2[_0x6275c9(0x1c9)],'configuredRegion':_0x365ae2['region'],'regionLocation':_0x6275c9(0x1c2)+_0x365ae2[_0x6275c9(0x1dc)]+'\x22','targetEnv':_0x365ae2[_0x6275c9(0x1c5)]==='daily'?_0x6275c9(0x1c3):_0x6275c9(0x1d9)});}export function getConfigAppCode(_0x21db43){const _0x332cff=a270_0x20b2,_0x1ecbaa=readRawConfig(_0x21db43);if(_0x1ecbaa[_0x332cff(0x1c0)]&&typeof _0x1ecbaa[_0x332cff(0x1c0)]===_0x332cff(0x1b2)){const _0xdec3cf=_0x1ecbaa[_0x332cff(0x1e2)];if(_0xdec3cf)return _0x1ecbaa[_0x332cff(0x1c0)][_0xdec3cf]?.[_0x332cff(0x19c)]?String(_0x1ecbaa[_0x332cff(0x1c0)][_0xdec3cf][_0x332cff(0x19c)])[_0x332cff(0x1e1)]():undefined;const _0x5bc4bb=Object['values'](_0x1ecbaa[_0x332cff(0x1c0)]);if(_0x5bc4bb[_0x332cff(0x1ce)]===0x1&&_0x5bc4bb[0x0]?.[_0x332cff(0x19c)])return String(_0x5bc4bb[0x0][_0x332cff(0x19c)])['trim']();}const _0x435b09=_0x1ecbaa[_0x332cff(0x19c)]||_0x1ecbaa['app'];if(typeof _0x435b09!=='string'||_0x435b09[_0x332cff(0x1e1)]()==='')return undefined;return _0x435b09['trim']();}const CONNECTION_ROUTING_KEYS=[a270_0x58b889(0x1bf),a270_0x58b889(0x1c7),'userDomain',a270_0x58b889(0x1d5),a270_0x58b889(0x1e5),a270_0x58b889(0x1db),a270_0x58b889(0x1ae),'kbServiceDomain',a270_0x58b889(0x1e6),'platformDomain',a270_0x58b889(0x1a3),'localDomain','certificateDomain'];function withAppProfileRouting(_0x1d688b,_0x39a585){const _0x1ddef7=a270_0x58b889;if(!_0x39a585||_0x39a585[_0x1ddef7(0x1d7)]===undefined)return _0x1d688b;return{..._0x1d688b,'kbServiceDomain':_0x39a585['kbServiceDomain']};}function pickConnectionRoutingConfig(_0x28143e,_0x416f35){const _0x2871f3={'region':_0x416f35};for(const _0x2abd4e of CONNECTION_ROUTING_KEYS){if(_0x28143e[_0x2abd4e]!==undefined)_0x2871f3[_0x2abd4e]=_0x28143e[_0x2abd4e];}return _0x2871f3;}export function getMultiAppConfigs(_0xbb9722=a270_0x58b889(0x1c8),_0x54ed57){const _0x211081=a270_0x58b889,_0x4a9fcd=loadRawConfigLayers(_0x54ed57);let _0x347b35,_0x9fe3d9;const _0x34601f=mergeRawConfigLayers(_0x4a9fcd),_0x288e83=_0x4a9fcd[_0x211081(0x1bc)][_0x211081(0x1c0)]&&typeof _0x4a9fcd[_0x211081(0x1bc)][_0x211081(0x1c0)]==='object'?_0x4a9fcd['globalConfig'][_0x211081(0x1c0)]:{},_0xbb9c5=_0x4a9fcd[_0x211081(0x1a0)][_0x211081(0x1c0)]&&typeof _0x4a9fcd[_0x211081(0x1a0)][_0x211081(0x1c0)]===_0x211081(0x1b2)?_0x4a9fcd[_0x211081(0x1a0)][_0x211081(0x1c0)]:{};_0xbb9722===_0x211081(0x1d4)?(_0x347b35={..._0x288e83,..._0xbb9c5},_0x9fe3d9=_0x34601f[_0x211081(0x1e2)]):(_0x347b35=_0x4a9fcd[_0x211081(0x1a0)][_0x211081(0x1c0)],_0x9fe3d9=_0x4a9fcd[_0x211081(0x1a0)][_0x211081(0x1e2)]);!_0x9fe3d9&&_0x347b35&&typeof _0x347b35===_0x211081(0x1b2)&&Object['keys'](_0x347b35)[_0x211081(0x1ce)]===0x1&&(_0x9fe3d9=Object[_0x211081(0x1e0)](_0x347b35)[0x0]);if(!_0x347b35||typeof _0x347b35!==_0x211081(0x1b2)||Object[_0x211081(0x1e0)](_0x347b35)['length']===0x0)return null;return Object[_0x211081(0x1d2)](_0x347b35)[_0x211081(0x1bb)](([_0x5d65cb,_0xb9495b])=>{const _0x4c8af8=_0x211081,_0x63aa4f=_0xbb9722===_0x4c8af8(0x1c8)||Object[_0x4c8af8(0x1a5)]['hasOwnProperty'][_0x4c8af8(0x1de)](_0xbb9c5,_0x5d65cb),_0x117509=withAppProfileRouting(_0x63aa4f?_0x34601f:_0x4a9fcd[_0x4c8af8(0x1bc)],_0xb9495b),_0x54fedf=resolveEffectiveRegion({'appRegion':_0xb9495b?.[_0x4c8af8(0x1c6)],'projectRegion':_0x63aa4f?_0x4a9fcd[_0x4c8af8(0x1a0)][_0x4c8af8(0x1c6)]:undefined,'globalRegion':_0x4a9fcd[_0x4c8af8(0x1bc)][_0x4c8af8(0x1c6)],'mergedRegion':_0x117509[_0x4c8af8(0x1c6)],'appName':_0x5d65cb});return{'name':_0x5d65cb,'appcode':_0xb9495b?.['appcode']||'','apiGroup':optionalString(_0xb9495b?.[_0x4c8af8(0x1e4)]),'isDefault':_0x5d65cb===_0x9fe3d9,'region':_0x54fedf[_0x4c8af8(0x1c6)],'regionSource':_0x54fedf[_0x4c8af8(0x1e7)],'env':_0xb9495b?.['env'],'apiDir':optionalString(_0xb9495b?.['apiDir'])||optionalString(_0x117509[_0x4c8af8(0x1be)]),'cookie':_0xb9495b?.['cookie']||undefined,'routingConfig':pickConnectionRoutingConfig(_0x117509,_0x54fedf[_0x4c8af8(0x1c6)])};})[_0x211081(0x1ca)](_0x4bf0e2=>_0x4bf0e2['appcode']);}export function getTemplateBaseUrl(_0x45a843){const _0x520b27=a270_0x58b889,_0x14f9f6=readRawConfig(_0x45a843);if(_0x14f9f6[_0x520b27(0x1ad)]&&typeof _0x14f9f6['template_base_url']===_0x520b27(0x1ac))return _0x14f9f6[_0x520b27(0x1ad)][_0x520b27(0x1d1)](/\/$/,'');return'https://g.lovrabet.com/dist/lovrabet-skill';}function buildConfig(_0x27ced8,_0x4b3140,_0x4d6a16){const _0x208a9e=a270_0x58b889,_0xbd82c3=resolveAppConfig({'raw':_0x27ced8,'flags':_0x4b3140,'layers':_0x4d6a16,'readEnv':env}),_0x4fd88b=_0xbd82c3[_0x208a9e(0x1b4)]?_0xbd82c3[_0x208a9e(0x1c0)][_0xbd82c3['currentApp']]:undefined;return{..._0xbd82c3,'raw':withAppProfileRouting(_0x27ced8,_0x4fd88b)};}export function resolveApiFilePath(_0x4cd631,_0x3eb4db,_0x40ae6d){return resolveApiModelSource(_0x4cd631,_0x3eb4db,_0x40ae6d)['filePath'];}
|
|
1
|
+
const a270_0xdc89d9=a270_0x4921;(function(_0x1729da,_0x465aca){const _0x26f1bd=a270_0x4921,_0x542f8f=_0x1729da();while(!![]){try{const _0x18e41f=parseInt(_0x26f1bd(0x150))/0x1*(parseInt(_0x26f1bd(0x13f))/0x2)+-parseInt(_0x26f1bd(0x155))/0x3*(parseInt(_0x26f1bd(0x173))/0x4)+parseInt(_0x26f1bd(0x17a))/0x5+parseInt(_0x26f1bd(0x15d))/0x6*(-parseInt(_0x26f1bd(0x151))/0x7)+-parseInt(_0x26f1bd(0x183))/0x8*(parseInt(_0x26f1bd(0x160))/0x9)+parseInt(_0x26f1bd(0x179))/0xa*(-parseInt(_0x26f1bd(0x176))/0xb)+-parseInt(_0x26f1bd(0x178))/0xc*(-parseInt(_0x26f1bd(0x14e))/0xd);if(_0x18e41f===_0x465aca)break;else _0x542f8f['push'](_0x542f8f['shift']());}catch(_0x3eb537){_0x542f8f['push'](_0x542f8f['shift']());}}}(a270_0x567e,0x48943));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(_0x7b94ea){return process.env[`RABETBASE_${_0x7b94ea}`]||process.env[`LOVRABET_${_0x7b94ea}`]||undefined;}function optionalString(_0x1c2de1){const _0x20b477=a270_0x4921;return typeof _0x1c2de1==='string'&&_0x1c2de1[_0x20b477(0x152)]()?_0x1c2de1['trim']():undefined;}export function isRoutingRecoveryService(_0x58df3c){const _0x448e6a=a270_0x4921;return _0x58df3c===_0x448e6a(0x147)||_0x58df3c===_0x448e6a(0x142);}export async function createContext(_0x3a80bf){const _0x740ed=a270_0x4921,{config:_0x143d0d,layers:_0x2e3323}=readRawConfigWithLayers(),_0x1cfef4=buildConfig(_0x143d0d,_0x3a80bf,_0x2e3323);await initGlobalEnvironment(_0x1cfef4);const {getUserDomain:_0x198c98,getApiDomain:_0x31b554}=await import(_0x740ed(0x16e)),_0x132a01={'apiDomain':_0x31b554(),'userDomain':_0x198c98()},_0x180b25=await buildAuth(_0x1cfef4);logger[_0x740ed(0x13c)](process[_0x740ed(0x184)]());const _0x59866a=(CLI_BIN_NAME+'\x20'+process[_0x740ed(0x162)][_0x740ed(0x14b)](0x2)['join']('\x20'))[_0x740ed(0x152)]();logger[_0x740ed(0x189)](_0x59866a);const {isNonInteractive:_0x4dc68e}=await import(_0x740ed(0x163)),_0x47561f=_0x4dc68e(_0x3a80bf);return{'config':_0x1cfef4,'auth':_0x180b25,'logger':logger,'env':_0x132a01,'nonInteractive':_0x47561f};}function a270_0x567e(){const _0x231365=['regionLocation','351BrrfMf','keys','15UPumDS','189SRfiUl','trim','hasOwnProperty','domains','1209564iRJxgT','platformDomain','skillHubDomain','prototype','./constant/env.js','skillDomain','template_base_url','projectConfig','88368ymlzWl','appDomain','cdn','297XbHFcN','production','argv','./utils/is-non-interactive.js','localDomain','daily','apiGroup','raw','certificateDomain','regionSource','length','filePath','source','app','./constant/domain.js','apiDomain','object','userDomain','string','4UsDYXM','project','routingConfig','19833nWeypZ','some','563880ZtMOBH','2180YRpKpW','823610gcWtGm','https://g.lovrabet.com/dist/lovrabet-skill','env','runtimeDomain','routing','appcode','call','agentDomain','app\x20profile\x20\x22','69976QAkJDq','cwd','region','replace','currentApp','project\x20Rabetbase\x20configuration','setRawCommand','setLogPath','apiDir','kbDomain','46184fILcyf','configuredRegion','cookie','doctor','entries','global','kbServiceDomain','apps','config','defaultApp','Rabetbase\x20configuration','merged','slice','globalConfig'];a270_0x567e=function(){return _0x231365;};return a270_0x567e();}export function buildConfigFromFlags(_0x4f5894){const {config:_0x4265d4,layers:_0x3db51c}=readRawConfigWithLayers();return buildConfig(_0x4265d4,_0x4f5894,_0x3db51c);}export async function initGlobalEnvironment(_0x538665){const _0x20437a=a270_0x4921,_0xdeb248=_0x538665[_0x20437a(0x169)]==='app'&&_0x538665[_0x20437a(0x187)]?_0x20437a(0x182)+_0x538665[_0x20437a(0x187)]+'\x22':_0x538665['regionSource']===_0x20437a(0x174)?_0x20437a(0x188):_0x538665[_0x20437a(0x169)]===_0x20437a(0x144)?'global\x20Rabetbase\x20configuration':_0x20437a(0x149);await initConfiguredEnvironment({'raw':_0x538665[_0x20437a(0x167)],'configuredRegion':_0x538665['regionConfiguredValue']??_0x538665[_0x20437a(0x167)]?.[_0x20437a(0x185)]??_0x538665[_0x20437a(0x185)],'regionLocation':_0xdeb248,'targetEnv':_0x538665[_0x20437a(0x17c)]});}async function initConfiguredEnvironment(_0x26d350){const _0x63562=a270_0x4921,_0x16313f=resolveConfiguredRegion(_0x26d350[_0x63562(0x140)],_0x26d350[_0x63562(0x14d)]),_0x691fa5=resolveEnterpriseRoutingManifest(_0x26d350[_0x63562(0x167)]?.[_0x63562(0x17e)]),_0x17d954={'region':_0x16313f,'apiDomain':_0x691fa5?_0x691fa5['domains'][_0x63562(0x16f)]:optionalString(_0x26d350[_0x63562(0x167)]?.[_0x63562(0x16f)]),'userDomain':_0x691fa5?_0x691fa5[_0x63562(0x154)][_0x63562(0x171)]:optionalString(_0x26d350[_0x63562(0x167)]?.[_0x63562(0x171)]),'runtimeDomain':_0x691fa5?_0x691fa5['domains'][_0x63562(0x17d)]:optionalString(_0x26d350[_0x63562(0x167)]?.[_0x63562(0x17d)]),'skillDomain':_0x691fa5?_0x691fa5[_0x63562(0x154)][_0x63562(0x15a)]:optionalString(_0x26d350['raw']?.[_0x63562(0x15a)])||optionalString(_0x26d350[_0x63562(0x167)]?.['skillHubDomain'])||optionalString(_0x26d350['raw']?.[_0x63562(0x181)])||optionalString(_0x26d350[_0x63562(0x167)]?.['platformDomain']),'kbDomain':_0x691fa5?_0x691fa5[_0x63562(0x154)][_0x63562(0x13e)]:optionalString(_0x26d350['raw']?.[_0x63562(0x13e)])||optionalString(_0x26d350[_0x63562(0x167)]?.[_0x63562(0x181)])||optionalString(_0x26d350[_0x63562(0x167)]?.['platformDomain']),'kbServiceDomain':_0x691fa5?_0x691fa5[_0x63562(0x154)][_0x63562(0x145)]:optionalString(_0x26d350[_0x63562(0x167)]?.[_0x63562(0x145)]),'appDomain':_0x691fa5?_0x691fa5['domains'][_0x63562(0x15e)]:optionalString(_0x26d350['raw']?.['appDomain']),'localDomain':_0x691fa5?_0x691fa5['domains'][_0x63562(0x164)]:optionalString(_0x26d350[_0x63562(0x167)]?.[_0x63562(0x164)]),'certificateDomain':_0x691fa5?_0x691fa5[_0x63562(0x154)]['certificateDomain']:optionalString(_0x26d350[_0x63562(0x167)]?.[_0x63562(0x168)]),'cdn':_0x691fa5?.[_0x63562(0x15f)],'allowOfficialKbServiceDefault':!(_0x691fa5!==undefined||[_0x63562(0x16f),_0x63562(0x171),_0x63562(0x17d),_0x63562(0x15a),_0x63562(0x157),'kbDomain',_0x63562(0x145),_0x63562(0x181),_0x63562(0x156),_0x63562(0x15e),'localDomain',_0x63562(0x168)][_0x63562(0x177)](_0x11dd03=>Object[_0x63562(0x158)][_0x63562(0x153)][_0x63562(0x180)](_0x26d350[_0x63562(0x167)]??{},_0x11dd03)))},{initEnv:_0xd816ca}=await import(_0x63562(0x159)),{initDomains:_0x1dc928}=await import('./constant/domain.js');_0xd816ca(_0x26d350['targetEnv']),_0x1dc928(_0x17d954);}export async function initMultiAppEnvironment(_0x47c776){const _0x206bac=a270_0x4921;await initConfiguredEnvironment({'raw':_0x47c776[_0x206bac(0x175)],'configuredRegion':_0x47c776['region'],'regionLocation':_0x206bac(0x182)+_0x47c776['name']+'\x22','targetEnv':_0x47c776[_0x206bac(0x17c)]===_0x206bac(0x165)?'daily':_0x206bac(0x161)});}export function getConfigAppCode(_0x202be3){const _0x625648=a270_0x4921,_0x203040=readRawConfig(_0x202be3);if(_0x203040['apps']&&typeof _0x203040[_0x625648(0x146)]===_0x625648(0x170)){const _0x469855=_0x203040[_0x625648(0x148)];if(_0x469855)return _0x203040[_0x625648(0x146)][_0x469855]?.[_0x625648(0x17f)]?String(_0x203040[_0x625648(0x146)][_0x469855][_0x625648(0x17f)])['trim']():undefined;const _0x36d215=Object['values'](_0x203040[_0x625648(0x146)]);if(_0x36d215[_0x625648(0x16a)]===0x1&&_0x36d215[0x0]?.[_0x625648(0x17f)])return String(_0x36d215[0x0]['appcode'])[_0x625648(0x152)]();}const _0x472f17=_0x203040[_0x625648(0x17f)]||_0x203040[_0x625648(0x16d)];if(typeof _0x472f17!==_0x625648(0x172)||_0x472f17['trim']()==='')return undefined;return _0x472f17[_0x625648(0x152)]();}const CONNECTION_ROUTING_KEYS=[a270_0xdc89d9(0x17e),a270_0xdc89d9(0x16f),a270_0xdc89d9(0x171),'runtimeDomain','skillDomain',a270_0xdc89d9(0x157),'kbDomain',a270_0xdc89d9(0x145),a270_0xdc89d9(0x181),a270_0xdc89d9(0x156),a270_0xdc89d9(0x15e),a270_0xdc89d9(0x164),'certificateDomain'];function withAppProfileRouting(_0x4765e5,_0x20c875){const _0x37b246=a270_0xdc89d9;if(!_0x20c875||_0x20c875[_0x37b246(0x145)]===undefined)return _0x4765e5;return{..._0x4765e5,'kbServiceDomain':_0x20c875['kbServiceDomain']};}function pickConnectionRoutingConfig(_0x41cceb,_0x348eff){const _0x10d358={'region':_0x348eff};for(const _0x538195 of CONNECTION_ROUTING_KEYS){if(_0x41cceb[_0x538195]!==undefined)_0x10d358[_0x538195]=_0x41cceb[_0x538195];}return _0x10d358;}export function getMultiAppConfigs(_0x1c6ab1=a270_0xdc89d9(0x174),_0x5d910e){const _0x1c6634=a270_0xdc89d9,_0x46349a=loadRawConfigLayers(_0x5d910e);let _0x3863b9,_0x2781f4;const _0x2af7b4=mergeRawConfigLayers(_0x46349a),_0x39e786=_0x46349a[_0x1c6634(0x14c)][_0x1c6634(0x146)]&&typeof _0x46349a[_0x1c6634(0x14c)][_0x1c6634(0x146)]===_0x1c6634(0x170)?_0x46349a[_0x1c6634(0x14c)][_0x1c6634(0x146)]:{},_0x205d54=_0x46349a[_0x1c6634(0x15c)][_0x1c6634(0x146)]&&typeof _0x46349a[_0x1c6634(0x15c)][_0x1c6634(0x146)]==='object'?_0x46349a['projectConfig'][_0x1c6634(0x146)]:{};_0x1c6ab1===_0x1c6634(0x14a)?(_0x3863b9={..._0x39e786,..._0x205d54},_0x2781f4=_0x2af7b4[_0x1c6634(0x148)]):(_0x3863b9=_0x46349a['projectConfig'][_0x1c6634(0x146)],_0x2781f4=_0x46349a[_0x1c6634(0x15c)][_0x1c6634(0x148)]);!_0x2781f4&&_0x3863b9&&typeof _0x3863b9==='object'&&Object['keys'](_0x3863b9)[_0x1c6634(0x16a)]===0x1&&(_0x2781f4=Object[_0x1c6634(0x14f)](_0x3863b9)[0x0]);if(!_0x3863b9||typeof _0x3863b9!=='object'||Object['keys'](_0x3863b9)[_0x1c6634(0x16a)]===0x0)return null;return Object[_0x1c6634(0x143)](_0x3863b9)['map'](([_0xa3c0aa,_0x16f94c])=>{const _0x2372de=_0x1c6634,_0x31235f=_0x1c6ab1===_0x2372de(0x174)||Object[_0x2372de(0x158)][_0x2372de(0x153)][_0x2372de(0x180)](_0x205d54,_0xa3c0aa),_0x531a58=withAppProfileRouting(_0x31235f?_0x2af7b4:_0x46349a[_0x2372de(0x14c)],_0x16f94c),_0x4d9151=resolveEffectiveRegion({'appRegion':_0x16f94c?.[_0x2372de(0x185)],'projectRegion':_0x31235f?_0x46349a[_0x2372de(0x15c)][_0x2372de(0x185)]:undefined,'globalRegion':_0x46349a[_0x2372de(0x14c)][_0x2372de(0x185)],'mergedRegion':_0x531a58['region'],'appName':_0xa3c0aa});return{'name':_0xa3c0aa,'appcode':_0x16f94c?.[_0x2372de(0x17f)]||'','apiGroup':optionalString(_0x16f94c?.[_0x2372de(0x166)]),'isDefault':_0xa3c0aa===_0x2781f4,'region':_0x4d9151[_0x2372de(0x185)],'regionSource':_0x4d9151[_0x2372de(0x16c)],'env':_0x16f94c?.['env'],'apiDir':optionalString(_0x16f94c?.[_0x2372de(0x13d)])||optionalString(_0x531a58[_0x2372de(0x13d)]),'cookie':_0x16f94c?.[_0x2372de(0x141)]||undefined,'routingConfig':pickConnectionRoutingConfig(_0x531a58,_0x4d9151[_0x2372de(0x185)])};})['filter'](_0xb29358=>_0xb29358[_0x1c6634(0x17f)]);}export function getTemplateBaseUrl(_0x2a3358){const _0x27a3aa=a270_0xdc89d9,_0x172d31=readRawConfig(_0x2a3358);if(_0x172d31[_0x27a3aa(0x15b)]&&typeof _0x172d31['template_base_url']===_0x27a3aa(0x172))return _0x172d31[_0x27a3aa(0x15b)][_0x27a3aa(0x186)](/\/$/,'');return _0x27a3aa(0x17b);}function buildConfig(_0x3d4803,_0x454b0c,_0x55daac){const _0xe072d2=a270_0xdc89d9,_0x292193=resolveAppConfig({'raw':_0x3d4803,'flags':_0x454b0c,'layers':_0x55daac,'readEnv':env}),_0x206c33=_0x292193[_0xe072d2(0x187)]?_0x292193['apps'][_0x292193['currentApp']]:undefined;return{..._0x292193,'raw':withAppProfileRouting(_0x3d4803,_0x206c33)};}function a270_0x4921(_0x4dd83d,_0x9d5dfd){_0x4dd83d=_0x4dd83d-0x13c;const _0x567ea6=a270_0x567e();let _0x492139=_0x567ea6[_0x4dd83d];return _0x492139;}export function resolveApiFilePath(_0x1ede17,_0xd74b2d,_0x76073a){const _0x591f60=a270_0xdc89d9;return resolveApiModelSource(_0x1ede17,_0xd74b2d,_0x76073a)[_0x591f60(0x16b)];}
|