@lovrabet/rabetbase-cli 2.5.12 → 2.5.13-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api/api-doc.js +1 -1
- package/lib/api/api-group.js +1 -1
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.js +1 -1
- package/lib/api/generate-sdk-config-file.js +1 -1
- package/lib/api/legacy-api-file.js +1 -1
- package/lib/api/model-registry-file.js +1 -1
- package/lib/api/model-registry-scaffold.js +1 -1
- package/lib/api/model-source.js +1 -1
- package/lib/auth/auth-server-ui.js +1 -1
- package/lib/auth/auth-server.js +1 -1
- package/lib/auth/constant.js +1 -1
- package/lib/auth/get-cookie.js +1 -1
- package/lib/auth/get-session-user.js +1 -1
- package/lib/auth/is-session-valid.js +1 -1
- package/lib/auth/login-success-html.js +1 -1
- package/lib/auth/logout.js +1 -1
- package/lib/cli-flags.js +1 -1
- package/lib/cli.js +1 -1
- package/lib/commands/api/generate.js +1 -1
- package/lib/commands/api/index.js +1 -1
- package/lib/commands/api/list.js +1 -1
- package/lib/commands/api/pull.js +1 -1
- package/lib/commands/api/shared.js +1 -1
- package/lib/commands/app/detail.js +1 -1
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/members-list.js +1 -1
- package/lib/commands/app/remote-directory.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/delete.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/app-config/list.js +1 -1
- package/lib/commands/app-config/set.js +1 -1
- package/lib/commands/app-config/shared.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/bff/create.js +1 -1
- package/lib/commands/bff/delete.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/bff/list.js +1 -1
- package/lib/commands/bff/logs.js +1 -1
- package/lib/commands/bff/pull.js +1 -1
- package/lib/commands/bff/push.js +1 -1
- package/lib/commands/bff/status.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/cli-update.js +1 -1
- package/lib/commands/codegen/index.js +1 -1
- package/lib/commands/codegen/sdk.js +1 -1
- package/lib/commands/codegen/sql.js +1 -1
- package/lib/commands/common/app-registry.js +1 -1
- package/lib/commands/common/app-selector.js +1 -1
- package/lib/commands/common/async-task.js +1 -1
- package/lib/commands/common/dry-run.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/common/validate.js +1 -1
- package/lib/commands/config/delete.js +1 -1
- package/lib/commands/config/get.js +1 -1
- package/lib/commands/config/index.js +1 -1
- package/lib/commands/config/init.js +1 -1
- package/lib/commands/config/list.js +1 -1
- package/lib/commands/config/set.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/dataset/batch-design.js +1 -1
- package/lib/commands/dataset/business-group-update.js +1 -1
- package/lib/commands/dataset/business-groups.js +1 -1
- package/lib/commands/dataset/capability.js +1 -1
- package/lib/commands/dataset/cross-relation-create.js +1 -1
- package/lib/commands/dataset/cross-relation-delete.js +1 -1
- package/lib/commands/dataset/cross-relation-list.js +1 -1
- package/lib/commands/dataset/cross-relation-shared.js +1 -1
- package/lib/commands/dataset/cross-relation-update.js +1 -1
- package/lib/commands/dataset/delete.js +1 -1
- package/lib/commands/dataset/design-context.js +1 -1
- package/lib/commands/dataset/design-start.js +1 -1
- package/lib/commands/dataset/design-status.js +1 -1
- package/lib/commands/dataset/design-sync-retry.js +1 -1
- package/lib/commands/dataset/design-sync-status.js +1 -1
- package/lib/commands/dataset/design-validate.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/extend-update.js +1 -1
- package/lib/commands/dataset/field-restore.js +1 -1
- package/lib/commands/dataset/field-update.js +1 -1
- package/lib/commands/dataset/generate.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/dataset/relation-audit.js +1 -1
- package/lib/commands/dataset/relation-create.js +1 -1
- package/lib/commands/dataset/relation-delete.js +1 -1
- package/lib/commands/dataset/relation-shared.js +1 -1
- package/lib/commands/dataset/relation-update.js +1 -1
- package/lib/commands/dataset/relations.js +1 -1
- package/lib/commands/dataset/rename.js +1 -1
- package/lib/commands/dataset/restore.js +1 -1
- package/lib/commands/dataset/user-deleted-field-list.js +1 -1
- package/lib/commands/db/analysis-batching.js +1 -1
- package/lib/commands/db/analyze-batch-plan.js +1 -1
- package/lib/commands/db/analyze-cancel.js +1 -1
- package/lib/commands/db/analyze-start.js +1 -1
- package/lib/commands/db/analyze-status.js +1 -1
- package/lib/commands/db/create.js +1 -1
- package/lib/commands/db/cross-db-analysis-shared.js +1 -1
- package/lib/commands/db/cross-db-analyze-latest.js +1 -1
- package/lib/commands/db/cross-db-analyze-start.js +1 -1
- package/lib/commands/db/cross-db-analyze-status.js +1 -1
- package/lib/commands/db/delete.js +1 -1
- package/lib/commands/db/detail.js +1 -1
- package/lib/commands/db/diff-refresh-start.js +1 -1
- package/lib/commands/db/diff-refresh-status.js +1 -1
- package/lib/commands/db/diff.js +1 -1
- package/lib/commands/db/index.js +1 -1
- package/lib/commands/db/list.js +1 -1
- package/lib/commands/db/shared.js +1 -1
- package/lib/commands/db/table-diff-shared.js +1 -1
- package/lib/commands/db/tables.js +1 -1
- package/lib/commands/db/test.js +1 -1
- package/lib/commands/db/update.js +1 -1
- package/lib/commands/deployment/index.js +1 -1
- package/lib/commands/deployment/sync-all.js +1 -1
- package/lib/commands/deployment/sync-jobs.js +1 -1
- package/lib/commands/deployment/sync-status.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/flow/create.js +1 -1
- package/lib/commands/flow/detail.js +1 -1
- package/lib/commands/flow/index.js +1 -1
- package/lib/commands/flow/list.js +1 -1
- package/lib/commands/flow/page-list.js +1 -1
- package/lib/commands/flow/publish.js +1 -1
- package/lib/commands/flow/runtime-resources-shared.js +1 -1
- package/lib/commands/flow/runtime-role-list.js +1 -1
- package/lib/commands/flow/runtime-role-user-list.js +1 -1
- package/lib/commands/flow/runtime-user-search.js +1 -1
- package/lib/commands/flow/shared.js +1 -1
- package/lib/commands/flow/update.js +1 -1
- package/lib/commands/flow/validate.js +1 -1
- package/lib/commands/instant-api-policy/current.js +1 -1
- package/lib/commands/instant-api-policy/index.js +1 -1
- package/lib/commands/instant-api-policy/init.js +1 -1
- package/lib/commands/instant-api-policy/publish.js +1 -1
- package/lib/commands/instant-api-policy/pull.js +1 -1
- package/lib/commands/instant-api-policy/revision.js +1 -1
- package/lib/commands/instant-api-policy/revisions.js +1 -1
- package/lib/commands/instant-api-policy/rollback.js +1 -1
- package/lib/commands/instant-api-policy/shared.js +1 -1
- package/lib/commands/instant-api-policy/validate.js +1 -1
- package/lib/commands/issue/context.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/kb/create.js +1 -1
- package/lib/commands/kb/delete.js +1 -1
- package/lib/commands/kb/detail.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/kb/list.js +1 -1
- package/lib/commands/kb/search.js +1 -1
- package/lib/commands/kb/shared.js +1 -1
- package/lib/commands/kb/update.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/asset-update.js +1 -1
- package/lib/commands/menu/delete.js +1 -1
- package/lib/commands/menu/external-link-create.js +1 -1
- package/lib/commands/menu/external-link-update.js +1 -1
- package/lib/commands/menu/group-create.js +1 -1
- package/lib/commands/menu/group-update.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/list.js +1 -1
- package/lib/commands/menu/move.js +1 -1
- package/lib/commands/menu/regroup-start.js +1 -1
- package/lib/commands/menu/rename.js +1 -1
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/delete-plan.js +1 -1
- package/lib/commands/menu/shared/facts.js +1 -1
- package/lib/commands/menu/shared/index.js +1 -1
- package/lib/commands/menu/shared/inquirer.js +1 -1
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.js +1 -1
- package/lib/commands/menu/shared/mutations.js +1 -1
- package/lib/commands/menu/shared/path.js +1 -1
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/subapp-assets.js +1 -1
- package/lib/commands/menu/shared/sync-core.js +1 -1
- package/lib/commands/menu/shared/update-core.js +1 -1
- package/lib/commands/menu/shared/valid-url.js +1 -1
- package/lib/commands/menu/subapp-assets-status.js +1 -1
- package/lib/commands/menu/subapp-assets-update.js +1 -1
- package/lib/commands/menu/sync.js +1 -1
- package/lib/commands/menu/visibility-update.js +1 -1
- package/lib/commands/notification/config-create.js +1 -1
- package/lib/commands/notification/config-delete.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/config-update.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/notification/shared.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/page/create.js +1 -1
- package/lib/commands/page/custom/detail.js +1 -1
- package/lib/commands/page/custom/list.js +1 -1
- package/lib/commands/page/custom/publish.js +1 -1
- package/lib/commands/page/custom/shared.js +1 -1
- package/lib/commands/page/custom/syntax.js +1 -1
- package/lib/commands/page/custom/update.js +1 -1
- package/lib/commands/page/data-list-status.js +1 -1
- package/lib/commands/page/generate-start.js +1 -1
- package/lib/commands/page/generate-status.js +1 -1
- package/lib/commands/page/index.js +1 -1
- package/lib/commands/page/pull.js +1 -1
- package/lib/commands/page/push.js +1 -1
- package/lib/commands/page/relation-audit.js +1 -1
- package/lib/commands/page/restore.js +1 -1
- package/lib/commands/page/shared.js +1 -1
- package/lib/commands/page/sync.js +1 -1
- package/lib/commands/project/api-architecture-upgrade.js +1 -1
- package/lib/commands/project/create/enhanced-guided-create.js +1 -1
- package/lib/commands/project/create/format-elapsed.js +1 -1
- package/lib/commands/project/create/main.js +1 -1
- package/lib/commands/project/create/materialize-project-template.js +1 -1
- package/lib/commands/project/create/project-name.js +1 -1
- package/lib/commands/project/create/project-template-archive.js +1 -1
- package/lib/commands/project/create/project-template-path.js +1 -1
- package/lib/commands/project/create/use-copy-project-template.js +1 -1
- package/lib/commands/project/create/use-format-code.js +1 -1
- package/lib/commands/project/create/use-install-dependencies.js +1 -1
- package/lib/commands/project/domain-routing-sync.js +1 -1
- package/lib/commands/project/index.js +1 -1
- package/lib/commands/project/upgrade.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/role/user-resolve.js +1 -1
- package/lib/commands/rule/get.js +1 -1
- package/lib/commands/rule/index.js +1 -1
- package/lib/commands/rule/list.js +1 -1
- package/lib/commands/rule/set.js +1 -1
- package/lib/commands/rule/shared.js +1 -1
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/sql/create.js +1 -1
- package/lib/commands/sql/delete.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/sql/list.js +1 -1
- package/lib/commands/sql/pull.js +1 -1
- package/lib/commands/sql/push.js +1 -1
- package/lib/commands/sql/shared.js +1 -1
- package/lib/commands/sql/status.js +1 -1
- package/lib/commands/sql/validate.js +1 -1
- package/lib/commands/task/index.js +1 -1
- package/lib/commands/task/status.js +1 -1
- package/lib/commands/tenant/index.js +1 -1
- package/lib/commands/tenant/members-list.js +1 -1
- package/lib/commands/tenant/shared.js +1 -1
- package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
- package/lib/commands/user-account/feishu-bind.js +1 -1
- package/lib/commands/user-account/index.js +1 -1
- package/lib/commands/workspace/add.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/commands/workspace/remove.js +1 -1
- package/lib/config/domain-config.js +1 -1
- package/lib/config/project-domain-routing.js +1 -1
- package/lib/config/region-config.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/cdn.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/paths.js +1 -1
- package/lib/constant/region.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/routing-profile.js +1 -1
- package/lib/context/app-resolver.js +1 -1
- package/lib/context/auth-resolver.js +1 -1
- package/lib/context/config-loader.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/bff/config.js +1 -1
- package/lib/core/bff/file-system.js +1 -1
- package/lib/core/bff/hash.js +1 -1
- package/lib/core/bff/hook-directory.js +1 -1
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/cross-db-analysis.js +1 -1
- package/lib/core/cross-db-relation.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/flow-config.js +1 -1
- package/lib/core/instant-api-policy/config.js +1 -1
- package/lib/core/instant-api-policy/endpoints.js +1 -1
- package/lib/core/kb-management-client.js +1 -1
- package/lib/core/kb-search-client.js +1 -1
- package/lib/core/page/file-system.js +1 -1
- package/lib/core/page/hash.js +1 -1
- package/lib/core/page/lock.js +1 -1
- package/lib/core/page/lr-smart-jsx.js +1 -1
- package/lib/core/sql-index-auditor.js +1 -1
- package/lib/core/sql-sync/config.js +1 -1
- package/lib/core/sql-sync/file-system.js +1 -1
- package/lib/core/sql-sync/hash.js +1 -1
- package/lib/core/sql-sync/lock.js +1 -1
- package/lib/core/sql-sync/utils.js +1 -1
- package/lib/core/sql-validator.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/error-output.js +1 -1
- package/lib/framework/explicit-yes.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-alias.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/supported-flags.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/generated/official-routing.js +1 -1
- package/lib/generated/routing-contract.js +1 -1
- package/lib/help.js +1 -1
- package/lib/postinstall.js +1 -1
- package/lib/runtime/confirmation.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/services/dataset-design/checkpoint.js +1 -1
- package/lib/services/dataset-design/commands.js +1 -1
- package/lib/services/dataset-design/contract.js +1 -1
- package/lib/skills/builtin-skill.js +1 -1
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/skill-presence.js +1 -1
- package/lib/telemetry/cli-command-trace.js +1 -1
- package/lib/telemetry/cli-help-trace.js +1 -1
- package/lib/telemetry/ensure-cli-otel-config.js +1 -1
- package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
- package/lib/telemetry/send-cli-trace-log.js +1 -1
- package/lib/utils/ai_config.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cdn-config.js +1 -1
- package/lib/utils/check-sdk-version.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/config.js +1 -1
- package/lib/utils/entity-with-id.js +1 -1
- package/lib/utils/file-utils.js +1 -1
- package/lib/utils/guides-cdn.js +1 -1
- package/lib/utils/http-client.js +1 -1
- package/lib/utils/is-non-interactive.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/sleep.js +1 -1
- package/lib/utils/template-replacer.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/with-active-cookie.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
- package/skills/rabetbase/SKILL.md +1 -1
- package/skills/rabetbase/guides/custom-page-workflow.md +32 -2
- package/skills/rabetbase/knowledge/custom-page/generation-standards.md +106 -6
- package/skills/rabetbase-dataset-generation/SKILL.md +1 -1
- package/skills/rabetbase-page-generation/SKILL.md +1 -1
- package/skills/rabetbase.manifest.json +3 -3
- package/templates/custom-pages/blank.json +1 -1
- package/templates/custom-pages/dashboard.json +1 -1
package/lib/constant/domain.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a276_0x4a6f93=a276_0x58de;(function(_0x46dde9,_0xeeaa77){const _0x12273c=a276_0x58de,_0x4b8d49=_0x46dde9();while(!![]){try{const _0x389954=parseInt(_0x12273c(0x1a4))/0x1+-parseInt(_0x12273c(0x1b0))/0x2*(-parseInt(_0x12273c(0x1b4))/0x3)+-parseInt(_0x12273c(0x1bf))/0x4+parseInt(_0x12273c(0x1ae))/0x5+parseInt(_0x12273c(0x1a9))/0x6*(parseInt(_0x12273c(0x1b3))/0x7)+-parseInt(_0x12273c(0x1b1))/0x8*(-parseInt(_0x12273c(0x1b2))/0x9)+-parseInt(_0x12273c(0x1a5))/0xa;if(_0x389954===_0xeeaa77)break;else _0x4b8d49['push'](_0x4b8d49['shift']());}catch(_0x59a7e0){_0x4b8d49['push'](_0x4b8d49['shift']());}}}(a276_0x2dd6,0xde97e));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 _0xf0b113=a276_0x58de,_0x246ac4=getOfficialRoutingProfile(activeRegion);return isProduction(getEnv())?_0x246ac4[_0xf0b113(0x1bb)]['production']:_0x246ac4[_0xf0b113(0x1bb)][_0xf0b113(0x1aa)]??_0x246ac4[_0xf0b113(0x1bb)][_0xf0b113(0x1ba)];}export function initDomains(_0x954e73){const _0x5f3064=a276_0x58de;customApiDomain=_0x954e73?.[_0x5f3064(0x1ad)],customUserDomain=_0x954e73?.['userDomain'],customRuntimeDomain=_0x954e73?.[_0x5f3064(0x1c0)],customSkillDomain=_0x954e73?.['skillDomain'],customKbDomain=_0x954e73?.[_0x5f3064(0x1b6)],customKbServiceDomain=_0x954e73?.['kbServiceDomain'],allowOfficialKbServiceDefault=_0x954e73?.[_0x5f3064(0x1b8)]??!![],customAppDomain=_0x954e73?.[_0x5f3064(0x1b7)],customLocalDomain=_0x954e73?.['localDomain'],customCertificateDomain=_0x954e73?.[_0x5f3064(0x1a6)],customCdn=_0x954e73?.[_0x5f3064(0x1be)],activeRegion=_0x954e73?.[_0x5f3064(0x1a7)]??DEFAULT_LOVRABET_REGION;}export const getUserDomain=()=>customUserDomain||getActiveRegionDomains()[a276_0x4a6f93(0x1bc)];export const getApiDomain=()=>customApiDomain||getActiveRegionDomains()[a276_0x4a6f93(0x1af)];export const getRuntimeDomain=()=>customRuntimeDomain||getActiveRegionDomains()[a276_0x4a6f93(0x1ab)];export const getSkillDomain=()=>customSkillDomain||getActiveRegionDomains()[a276_0x4a6f93(0x1ac)];export const getKbDomain=()=>customKbDomain||customApiDomain||getActiveRegionDomains()['kb'];export const getKbServiceDomain=()=>{const _0x53348b=a276_0x4a6f93;if(customKbServiceDomain)return customKbServiceDomain;if(!allowOfficialKbServiceDefault)return undefined;return getActiveRegionDomains()[_0x53348b(0x1b9)];};export const getAppDomain=()=>customAppDomain||getActiveRegionDomains()[a276_0x4a6f93(0x1b5)];export const getActiveRegion=()=>activeRegion;export const getLocalDomain=()=>customLocalDomain;function a276_0x58de(_0x1bb117,_0x3946d1){_0x1bb117=_0x1bb117-0x1a3;const _0x2dd6aa=a276_0x2dd6();let _0x58dec7=_0x2dd6aa[_0x1bb117];return _0x58dec7;}export const getCertificateDomain=()=>customCertificateDomain;export const getActiveCdn=()=>customCdn||getOfficialRoutingCdn(activeRegion);export function isIndependentDeployment(){return!!(customApiDomain||customUserDomain||customRuntimeDomain||customSkillDomain||customKbDomain||customAppDomain||customLocalDomain||customCertificateDomain);}function a276_0x2dd6(){const _0x54029c=['6534102vMvnhw','daily','runtime','skill','apiDomain','3895895gCbWkB','api','2cLApBz','3143384XZbled','9GbruKH','7IWxqcJ','862275fdbWji','app','kbDomain','appDomain','allowOfficialKbServiceDefault','kbService','production','serviceDomains','user','trim','cdn','6043840SrLKGt','runtimeDomain','/web-app/app/','920747kaLVab','10465890vIJCcZ','certificateDomain','region','hostname'];a276_0x2dd6=function(){return _0x54029c;};return a276_0x2dd6();}export function getSdkClientRoutingConfig(){const _0x4bc031=a276_0x4a6f93;if(customRuntimeDomain&&customRuntimeDomain!==getActiveRegionDomains()[_0x4bc031(0x1ab)])return{'runtimeDomain':customRuntimeDomain};if(activeRegion!==DEFAULT_LOVRABET_REGION)return{'runtimeDomain':getRuntimeDomain()};return{};}export const getAppBaseUrl=_0x36cf25=>{const _0x360e49=a276_0x4a6f93,_0x59b280=encodeURIComponent(_0x36cf25[_0x360e49(0x1bd)]());return isProduction(getEnv())?getAppDomain()+'/app/'+_0x59b280:getAppDomain()+_0x360e49(0x1a3)+_0x59b280;};export const getPublishedAppDomain=_0x18b30b=>{const _0x2a4ecc=a276_0x4a6f93,_0x163e16=new URL(getAppDomain());return _0x163e16[_0x2a4ecc(0x1a8)]=_0x18b30b[_0x2a4ecc(0x1bd)]()+'.'+_0x163e16[_0x2a4ecc(0x1a8)],_0x163e16['origin'];};
|
package/lib/constant/env.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a277_0x1570e2=a277_0x469a;(function(_0x31d4a5,_0x2a9fe6){const _0x224fbf=a277_0x469a,_0x4efb02=_0x31d4a5();while(!![]){try{const _0x1b9db2=-parseInt(_0x224fbf(0x11e))/0x1*(-parseInt(_0x224fbf(0x11a))/0x2)+-parseInt(_0x224fbf(0x124))/0x3*(parseInt(_0x224fbf(0x123))/0x4)+-parseInt(_0x224fbf(0x11f))/0x5*(parseInt(_0x224fbf(0x126))/0x6)+-parseInt(_0x224fbf(0x11b))/0x7+-parseInt(_0x224fbf(0x120))/0x8*(parseInt(_0x224fbf(0x125))/0x9)+parseInt(_0x224fbf(0x11d))/0xa+-parseInt(_0x224fbf(0x127))/0xb*(-parseInt(_0x224fbf(0x11c))/0xc);if(_0x1b9db2===_0x2a9fe6)break;else _0x4efb02['push'](_0x4efb02['shift']());}catch(_0x46e7f6){_0x4efb02['push'](_0x4efb02['shift']());}}}(a277_0x56a1,0x40ef2));export const RABETBASE_ENV_VALUES=[a277_0x1570e2(0x119),a277_0x1570e2(0x121)];export function normalizeEnv(_0x5276f2){const _0x14db04=a277_0x1570e2;return _0x5276f2===_0x14db04(0x118)?_0x14db04(0x119):_0x5276f2;}function a277_0x56a1(){const _0x1e17c=['3656387lSCQEp','12BpwVDn','2326600YdyLYh','198IlKpub','5dkfAyc','24MhEKLl','daily','development','1044YdQNrn','876PvtcpB','196353YuxoTy','1227282tZskGf','8890277XSFwPM','online','production','946qDMLXd'];a277_0x56a1=function(){return _0x1e17c;};return a277_0x56a1();}export function isProduction(_0x78ba0a){const _0x18b01d=a277_0x1570e2;return normalizeEnv(_0x78ba0a)===_0x18b01d(0x119);}export function isDaily(_0x143add){const _0x52d082=a277_0x1570e2;return normalizeEnv(_0x143add)===_0x52d082(0x121);}export function isDev(_0x5ee8c6){const _0x52ad2c=a277_0x1570e2,_0x4faa26=normalizeEnv(_0x5ee8c6);return _0x4faa26===_0x52ad2c(0x122)||_0x4faa26==='dev';}function a277_0x469a(_0x313b93,_0x4a1063){_0x313b93=_0x313b93-0x118;const _0x56a13b=a277_0x56a1();let _0x469a5f=_0x56a13b[_0x313b93];return _0x469a5f;}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||a277_0x1570e2(0x119));export function getEnv(){return env;}export function initEnv(_0x522240){env=normalizeEnv(_0x522240);}
|
package/lib/constant/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a278_0x4379fc=a278_0x1945;function a278_0x1945(_0x1a5439,_0x3dad3f){_0x1a5439=_0x1a5439-0x175;const _0x381b89=a278_0x381b();let _0x19453e=_0x381b89[_0x1a5439];return _0x19453e;}(function(_0x5a35c6,_0x46fcc9){const _0x1e5476=a278_0x1945,_0x2ceed3=_0x5a35c6();while(!![]){try{const _0x1ab84d=parseInt(_0x1e5476(0x17c))/0x1+parseInt(_0x1e5476(0x17b))/0x2*(parseInt(_0x1e5476(0x176))/0x3)+-parseInt(_0x1e5476(0x17a))/0x4+-parseInt(_0x1e5476(0x17e))/0x5*(-parseInt(_0x1e5476(0x175))/0x6)+-parseInt(_0x1e5476(0x180))/0x7+-parseInt(_0x1e5476(0x177))/0x8*(parseInt(_0x1e5476(0x179))/0x9)+-parseInt(_0x1e5476(0x17f))/0xa*(parseInt(_0x1e5476(0x182))/0xb);if(_0x1ab84d===_0x46fcc9)break;else _0x2ceed3['push'](_0x2ceed3['shift']());}catch(_0x5df1c9){_0x2ceed3['push'](_0x2ceed3['shift']());}}}(a278_0x381b,0x1c42c));export const RABETBASE_OUTPUT_FORMAT_VALUES=[a278_0x4379fc(0x178),a278_0x4379fc(0x181),a278_0x4379fc(0x17d)];function a278_0x381b(){const _0x4a057e=['50khZYJe','919961LGOkBP','pretty','33847maMQrp','12NTSqbG','18879cIdGRS','1099944ATvnut','json','9jcnPDn','344776TEvbiX','58oGgzVM','102836ZfWHpz','compress','502295cxrpeI'];a278_0x381b=function(){return _0x4a057e;};return a278_0x381b();}
|
package/lib/constant/paths.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a279_0x22e26e=a279_0x1d5e;(function(_0x563371,_0x12c965){const _0x49069b=a279_0x1d5e,_0x3c15b6=_0x563371();while(!![]){try{const _0x29555b=parseInt(_0x49069b(0x1d0))/0x1+parseInt(_0x49069b(0x1d3))/0x2*(-parseInt(_0x49069b(0x1ce))/0x3)+parseInt(_0x49069b(0x1d6))/0x4*(parseInt(_0x49069b(0x1cb))/0x5)+-parseInt(_0x49069b(0x1d2))/0x6*(-parseInt(_0x49069b(0x1cc))/0x7)+-parseInt(_0x49069b(0x1ca))/0x8*(-parseInt(_0x49069b(0x1cd))/0x9)+parseInt(_0x49069b(0x1d1))/0xa*(-parseInt(_0x49069b(0x1d4))/0xb)+-parseInt(_0x49069b(0x1d5))/0xc;if(_0x29555b===_0x12c965)break;else _0x3c15b6['push'](_0x3c15b6['shift']());}catch(_0x579222){_0x3c15b6['push'](_0x3c15b6['shift']());}}}(a279_0x5afb,0xa4079));export const DEFAULT_API_DIR=a279_0x22e26e(0x1cf);function a279_0x1d5e(_0x434a5e,_0x743967){_0x434a5e=_0x434a5e-0x1ca;const _0x5afb93=a279_0x5afb();let _0x1d5edb=_0x5afb93[_0x434a5e];return _0x1d5edb;}function a279_0x5afb(){const _0x2d0330=['2314230cjUOHx','7IZkIFW','9UsYEgJ','9HuorEl','./src/api','946408AuRhjj','133450Vqzbxa','6479580oaoLqF','140846hltoQU','319TeMMxL','22203180ZyxeQY','4aeQFty','5049760RMGXgJ'];a279_0x5afb=function(){return _0x2d0330;};return a279_0x5afb();}
|
package/lib/constant/region.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a280_0x398e(){const _0x2c6366=['20PDxShx','9945rmPHlc','string','3882582xujKUq','5seJawL','242743PWBayP','1539004OuhRsT','747928VUeblJ','includes','2AqEmcW','2269908MVdrDA','6106078htloiW','21NThMer'];a280_0x398e=function(){return _0x2c6366;};return a280_0x398e();}(function(_0x150d60,_0xb191b9){const _0x59534b=a280_0x3685,_0x8f43ae=_0x150d60();while(!![]){try{const _0x1d2cc0=-parseInt(_0x59534b(0xcf))/0x1*(parseInt(_0x59534b(0xd3))/0x2)+parseInt(_0x59534b(0xcb))/0x3+-parseInt(_0x59534b(0xd0))/0x4+parseInt(_0x59534b(0xce))/0x5*(-parseInt(_0x59534b(0xc7))/0x6)+-parseInt(_0x59534b(0xc9))/0x7*(parseInt(_0x59534b(0xd1))/0x8)+parseInt(_0x59534b(0xcd))/0x9+parseInt(_0x59534b(0xca))/0xa*(parseInt(_0x59534b(0xc8))/0xb);if(_0x1d2cc0===_0xb191b9)break;else _0x8f43ae['push'](_0x8f43ae['shift']());}catch(_0xfb1d89){_0x8f43ae['push'](_0x8f43ae['shift']());}}}(a280_0x398e,0x3f240));import{DEFAULT_REGION,ENABLED_REGION_VALUES,REGION_ALIASES,REGION_VALUES}from'../generated/official-routing.js';function a280_0x3685(_0x4de7f9,_0x416ff9){_0x4de7f9=_0x4de7f9-0xc7;const _0x398e18=a280_0x398e();let _0x3685e6=_0x398e18[_0x4de7f9];return _0x3685e6;}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(_0x2b8e38){const _0x3b8b39=a280_0x3685;return typeof _0x2b8e38===_0x3b8b39(0xcc)&&LOVRABET_REGION_VALUES[_0x3b8b39(0xd2)](_0x2b8e38);}export function isEnabledLovrabetRegion(_0x51c30b){const _0x3364c4=a280_0x3685;return typeof _0x51c30b===_0x3364c4(0xcc)&&ENABLED_LOVRABET_REGION_VALUES[_0x3364c4(0xd2)](_0x51c30b);}export function normalizeLovrabetRegion(_0x55b6a2){if(typeof _0x55b6a2!=='string')return undefined;const _0x2e3c8e=REGION_ALIASES[_0x55b6a2]??_0x55b6a2;return isLovrabetRegion(_0x2e3c8e)?_0x2e3c8e:undefined;}export function isInvalidLovrabetRegion(_0x305c09){return _0x305c09!==undefined&&_0x305c09!==null&&_0x305c09!==''&&normalizeLovrabetRegion(_0x305c09)===undefined;}
|
package/lib/constant/risk.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a281_0x3975(_0x19fc30,_0x4a47cc){_0x19fc30=_0x19fc30-0xb1;const _0x562f4a=a281_0x562f();let _0x397544=_0x562f4a[_0x19fc30];return _0x397544;}const a281_0x186d7e=a281_0x3975;function a281_0x562f(){const _0x4c3ba6=['14795gxiBfk','4650tbtmvj','40edvamY','7169260vJdmMd','598922sZFtIt','read','8mDZFrZ','121666KxcOJx','30yIQWpH','284932NpLzFb','write','high-risk-write','8061132BxKmgN','9335520Snsvmd'];a281_0x562f=function(){return _0x4c3ba6;};return a281_0x562f();}(function(_0x1d05dc,_0x1780ed){const _0x15cabf=a281_0x3975,_0x63ee0c=_0x1d05dc();while(!![]){try{const _0x11b765=parseInt(_0x15cabf(0xbd))/0x1+parseInt(_0x15cabf(0xb2))/0x2*(parseInt(_0x15cabf(0xb3))/0x3)+-parseInt(_0x15cabf(0xb4))/0x4*(parseInt(_0x15cabf(0xbb))/0x5)+-parseInt(_0x15cabf(0xb7))/0x6+parseInt(_0x15cabf(0xbc))/0x7+parseInt(_0x15cabf(0xb1))/0x8*(parseInt(_0x15cabf(0xb8))/0x9)+parseInt(_0x15cabf(0xba))/0xa*(-parseInt(_0x15cabf(0xb9))/0xb);if(_0x11b765===_0x1780ed)break;else _0x63ee0c['push'](_0x63ee0c['shift']());}catch(_0xcb028d){_0x63ee0c['push'](_0x63ee0c['shift']());}}}(a281_0x562f,0xb232d));export const RISK_LEVEL_VALUES=[a281_0x186d7e(0xbe),a281_0x186d7e(0xb5),a281_0x186d7e(0xb6)];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xd05ec7,_0x2edcd0){const _0x3f4ae6=a282_0x380c,_0x4f198a=_0xd05ec7();while(!![]){try{const _0x4b8ca6=parseInt(_0x3f4ae6(0x1e9))/0x1*(-parseInt(_0x3f4ae6(0x1ec))/0x2)+-parseInt(_0x3f4ae6(0x1e4))/0x3+parseInt(_0x3f4ae6(0x1eb))/0x4*(parseInt(_0x3f4ae6(0x1e3))/0x5)+-parseInt(_0x3f4ae6(0x1e5))/0x6+-parseInt(_0x3f4ae6(0x1e8))/0x7*(-parseInt(_0x3f4ae6(0x1e1))/0x8)+parseInt(_0x3f4ae6(0x1e0))/0x9*(parseInt(_0x3f4ae6(0x1df))/0xa)+parseInt(_0x3f4ae6(0x1e2))/0xb;if(_0x4b8ca6===_0x2edcd0)break;else _0x4f198a['push'](_0x4f198a['shift']());}catch(_0xc6a071){_0x4f198a['push'](_0x4f198a['shift']());}}}(a282_0x4b84,0x7e5d9));function a282_0x380c(_0x331a9e,_0x21809f){_0x331a9e=_0x331a9e-0x1df;const _0x4b84a2=a282_0x4b84();let _0x380cc6=_0x4b84a2[_0x331a9e];return _0x380cc6;}import{OFFICIAL_ROUTING_PROFILES as a282_0x3bcc1c,ROUTING_CATALOG_DIGEST}from'../generated/official-routing.js';export const OFFICIAL_ROUTING_PROFILES=a282_0x3bcc1c;function a282_0x4b84(){const _0x322861=['27tWOIRa','16zALsGM','11874280akosbo','1441185MSpwhC','847461IwVoXQ','4435254qlNjIS','lovrabet','libraries','934521tbixkN','1WNpYGC','\x22\x20is\x20not\x20ready:\x20Lovrabet\x20CDN\x20Domain\x20is\x20not\x20configured.','4xLWKZx','1469324jtsaIE','2130760upfYEm'];a282_0x4b84=function(){return _0x322861;};return a282_0x4b84();}export{ROUTING_CATALOG_DIGEST};export function getOfficialRoutingProfile(_0x171cb5){return OFFICIAL_ROUTING_PROFILES[_0x171cb5];}export function getOfficialRoutingCdn(_0x3b8d28){const _0xe90c0c=a282_0x380c,_0x1d71c6=getOfficialRoutingProfile(_0x3b8d28)['cdn'];if(!_0x1d71c6['lovrabet'])throw new Error('Official\x20routing\x20for\x20region\x20\x22'+_0x3b8d28+_0xe90c0c(0x1ea));return{'libraries':_0x1d71c6[_0xe90c0c(0x1e7)],'lovrabet':_0x1d71c6[_0xe90c0c(0x1e6)]};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2b0112,_0x152185){const _0x3e0323=a283_0x581b,_0xc3fc94=_0x2b0112();while(!![]){try{const _0x217c20=-parseInt(_0x3e0323(0x1aa))/0x1+-parseInt(_0x3e0323(0x1a6))/0x2*(parseInt(_0x3e0323(0x1bf))/0x3)+-parseInt(_0x3e0323(0x1c7))/0x4+parseInt(_0x3e0323(0x1bd))/0x5*(-parseInt(_0x3e0323(0x1b6))/0x6)+-parseInt(_0x3e0323(0x1b2))/0x7+-parseInt(_0x3e0323(0x1bb))/0x8+parseInt(_0x3e0323(0x1b1))/0x9;if(_0x217c20===_0x152185)break;else _0xc3fc94['push'](_0xc3fc94['shift']());}catch(_0x1be1a3){_0xc3fc94['push'](_0xc3fc94['shift']());}}}(a283_0x531a,0xd1bf7));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{isDaily,normalizeEnv}from'../constant/env.js';import{normalizeLegacyOutputFormat,riskLevelOrder}from'../framework/types.js';import{DEFAULT_LOVRABET_REGION,normalizeLovrabetRegion}from'../constant/region.js';import{selectConfiguredRegion}from'../config/region-config.js';function stringConfigValue(_0x1f342a){const _0x1904aa=a283_0x581b;return typeof _0x1f342a===_0x1904aa(0x1c0)&&_0x1f342a['trim']()?_0x1f342a[_0x1904aa(0x1c3)]():undefined;}function appProfiles(_0x422924){const _0x3f5c2e=a283_0x581b;return _0x422924[_0x3f5c2e(0x1c4)]&&typeof _0x422924[_0x3f5c2e(0x1c4)]===_0x3f5c2e(0x1bc)?_0x422924['apps']:{};}function resolveDefaultAppName(_0x47e97b){const _0x5de2f7=a283_0x581b,_0x30b352=stringConfigValue(_0x47e97b[_0x5de2f7(0x1c6)]);if(_0x30b352)return _0x30b352;const _0x5b0fa3=Object[_0x5de2f7(0x1ad)](appProfiles(_0x47e97b));return _0x5b0fa3[_0x5de2f7(0x1ab)]===0x1?_0x5b0fa3[0x0]:undefined;}function resolveTopLevelAppCode(_0x189426){const _0x2f55c4=a283_0x581b;return stringConfigValue(_0x189426[_0x2f55c4(0x1a9)])||stringConfigValue(_0x189426[_0x2f55c4(0x1b3)]);}function a283_0x531a(){const _0x24341b=['source','defaultApp','3049492DJjNJV','daily','VERBOSE','accessKey','riskLevel','APP','globalConfig','cookie','RISK_LEVEL','834KkBKcj','high-risk-write','env','appcode','764978VdKTOR','length','pageSize','keys','ENV','projectPath','entries','51999831vQyKLa','10533803dstzQf','app','locale','format','204mBVgEm','ACCESS_KEY','projectConfig','read','COOKIE','2808880ZRyHry','object','158575wJpdyS','region','3288aAJsGO','string','apiDir','true','trim','apps'];a283_0x531a=function(){return _0x24341b;};return a283_0x531a();}function a283_0x581b(_0x53d15b,_0x34e914){_0x53d15b=_0x53d15b-0x1a2;const _0x531aac=a283_0x531a();let _0x581b70=_0x531aac[_0x53d15b];return _0x581b70;}function normalizeRiskCeiling(_0x8b44ce){const _0x5aba2e=a283_0x581b;if(_0x8b44ce===undefined||_0x8b44ce===null)return undefined;if(_0x8b44ce===_0x5aba2e(0x1b9)||_0x8b44ce==='write'||_0x8b44ce===_0x5aba2e(0x1a7))return _0x8b44ce;return _0x5aba2e(0x1b9);}function resolveRiskCeiling(..._0x1e9fbc){const _0x26e2e8=a283_0x581b;let _0x50caab;for(const _0x370db7 of _0x1e9fbc){const _0x54a6c2=normalizeRiskCeiling(_0x370db7);_0x54a6c2&&(!_0x50caab||riskLevelOrder(_0x54a6c2)<riskLevelOrder(_0x50caab))&&(_0x50caab=_0x54a6c2);}return _0x50caab??DEFAULT_CONFIG_VALUES[_0x26e2e8(0x1cb)];}export function resolveAppConfig({raw:_0x56605f,flags:_0x2d8c4b,layers:_0x2fd286,readEnv:_0x5cca52}){const _0x4b4100=a283_0x581b,_0x13e4c6=_0x2fd286?.['projectConfig']??{},_0x271664=_0x2fd286?.['globalConfig']??{},_0x2ae93f=!!_0x2fd286?.[_0x4b4100(0x1af)]||Object[_0x4b4100(0x1ad)](_0x13e4c6)[_0x4b4100(0x1ab)]>0x0,_0x98fdc8=!_0x2ae93f,_0x51cbbd=_0x2ae93f?resolveDefaultAppName(_0x13e4c6):undefined,_0x37d54e=_0x98fdc8?resolveDefaultAppName(_0x271664):undefined,_0x4ca78e=stringConfigValue(_0x2d8c4b[_0x4b4100(0x1b3)]),_0x30035b=_0x5cca52(_0x4b4100(0x1a2)),_0x463ef5={};if(_0x56605f[_0x4b4100(0x1c4)]&&typeof _0x56605f['apps']===_0x4b4100(0x1bc))for(const [_0xd71dcf,_0x535343]of Object[_0x4b4100(0x1b0)](_0x56605f[_0x4b4100(0x1c4)])){_0x535343&&typeof _0x535343===_0x4b4100(0x1bc)&&_0x535343[_0x4b4100(0x1a9)]&&(_0x463ef5[_0xd71dcf]=_0x535343);}const _0x3fbf13=_0x51cbbd||_0x37d54e||resolveDefaultAppName(_0x56605f),_0xb14f39=Object['keys'](_0x463ef5)[_0x4b4100(0x1ab)]>0x0,_0x16cf66=_0x4ca78e||_0x51cbbd||_0x30035b||_0x37d54e||_0x3fbf13||undefined,_0x47fbcc=stringConfigValue(_0x2d8c4b[_0x4b4100(0x1a9)]),_0x3b7c6c=_0x47fbcc?Object[_0x4b4100(0x1b0)](_0x463ef5)['filter'](([,_0x2273fe])=>_0x2273fe?.[_0x4b4100(0x1a9)]===_0x47fbcc):[],_0x123996=_0x4ca78e&&_0x463ef5[_0x4ca78e]?.[_0x4b4100(0x1a9)]===_0x47fbcc?[_0x4ca78e,_0x463ef5[_0x4ca78e]]:undefined,_0x4070b4=_0x123996??(_0x3b7c6c[_0x4b4100(0x1ab)]===0x1?_0x3b7c6c[0x0]:undefined),_0xb0cdd7=_0x4070b4?.[0x0],_0x7edfe3=_0x4070b4?.[0x1],_0x14c554=_0x47fbcc?_0xb0cdd7:_0x16cf66;let _0x1dfaed=_0x14c554&&_0x463ef5[_0x14c554]?_0x463ef5[_0x14c554]:undefined;_0x47fbcc&&_0x7edfe3&&(_0x1dfaed=_0x7edfe3);const _0x254cc5=_0x47fbcc?_0x7edfe3??_0x1dfaed:_0x1dfaed,_0xf5df3c=!_0x4ca78e&&!_0x51cbbd&&_0x30035b&&_0x14c554===_0x30035b,_0x3b5dba=_0x4ca78e||(_0xf5df3c?_0x30035b:undefined)||(_0x47fbcc?_0xb0cdd7:undefined),_0x433911=_0x254cc5?.['appcode'],_0x557a12=_0x2ae93f?resolveTopLevelAppCode(_0x13e4c6):undefined,_0x462e34=_0x98fdc8?resolveTopLevelAppCode(_0x271664):undefined,_0x10e207=_0x4ca78e||_0x51cbbd?_0x433911:undefined,_0x3e7ec0=!_0x4ca78e&&!_0x51cbbd?_0x433911:undefined,_0x58f2cb=_0x47fbcc||_0x10e207||_0x557a12||_0x3e7ec0||_0x462e34||undefined,_0x166654=_0x2ae93f?stringConfigValue(_0x13e4c6[_0x4b4100(0x1a8)]):undefined,_0x50a782=_0x98fdc8?stringConfigValue(_0x271664[_0x4b4100(0x1a8)]):undefined,_0x1a88be=_0x2d8c4b[_0x4b4100(0x1a8)]||_0x254cc5?.[_0x4b4100(0x1a8)]||_0x166654||_0x5cca52(_0x4b4100(0x1ae))||_0x50a782||_0x56605f[_0x4b4100(0x1a8)]||DEFAULT_CONFIG_VALUES[_0x4b4100(0x1a8)],_0x268f56=_0x254cc5?.[_0x4b4100(0x1b4)]||_0x56605f[_0x4b4100(0x1b4)]||DEFAULT_CONFIG_VALUES[_0x4b4100(0x1b4)],_0x413d3e=_0x5cca52(_0x4b4100(0x1ba))||_0x254cc5?.[_0x4b4100(0x1a4)]||_0x56605f[_0x4b4100(0x1a4)]||undefined,_0x934660=_0x5cca52(_0x4b4100(0x1b7))||_0x254cc5?.['accessKey']||_0x56605f[_0x4b4100(0x1ca)]||undefined,_0x56c0e4=_0x2d8c4b['format']||_0x5cca52('FORMAT')||_0x254cc5?.['format']||_0x56605f[_0x4b4100(0x1b5)],_0x38a017=normalizeLegacyOutputFormat(_0x56c0e4),_0x42bb26=_0x5cca52('PAGE_SIZE')||_0x254cc5?.[_0x4b4100(0x1ac)]||_0x56605f[_0x4b4100(0x1ac)],_0x4afb08=_0x42bb26?Number(_0x42bb26)||undefined:undefined,_0x32e885=_0x2fd286?[_0x2fd286[_0x4b4100(0x1a3)][_0x4b4100(0x1cb)],_0x2fd286[_0x4b4100(0x1b8)]['riskLevel']]:[_0x56605f['riskLevel']],_0x4e1dfa=resolveRiskCeiling(..._0x32e885,_0x254cc5?.[_0x4b4100(0x1cb)]),_0x43a9af=resolveRiskCeiling(_0x4e1dfa,_0x5cca52(_0x4b4100(0x1a5))),_0x4bf063=_0x5cca52(_0x4b4100(0x1c9)),_0x51ca04=_0x4bf063==='1'||_0x4bf063===_0x4b4100(0x1c2),_0x5b428c=_0x254cc5?.[_0x4b4100(0x1c1)]||_0x56605f[_0x4b4100(0x1c1)]||DEFAULT_CONFIG_VALUES[_0x4b4100(0x1c1)],_0x4c95ab=selectConfiguredRegion({'appRegion':_0x254cc5?.[_0x4b4100(0x1be)],'projectRegion':_0x2ae93f?_0x13e4c6[_0x4b4100(0x1be)]:undefined,'globalRegion':_0x2ae93f||_0x98fdc8?_0x271664['region']:undefined,'mergedRegion':_0x56605f['region']}),_0x1ae852=normalizeLovrabetRegion(_0x4c95ab['value'])??DEFAULT_LOVRABET_REGION,_0x35cfd9=isDaily(normalizeEnv(String(_0x1a88be)))?_0x4b4100(0x1c8):'production';return{'appCode':typeof _0x58f2cb===_0x4b4100(0x1c0)&&_0x58f2cb[_0x4b4100(0x1c3)]()?_0x58f2cb[_0x4b4100(0x1c3)]():undefined,'region':_0x1ae852,'regionConfiguredValue':_0x4c95ab['value'],'regionSource':_0x4c95ab[_0x4b4100(0x1c5)],'env':_0x35cfd9,'locale':_0x268f56,'cookie':_0x413d3e,'accessKey':_0x934660,'format':_0x38a017,'pageSize':_0x4afb08,'riskLevel':_0x43a9af,'verbose':_0x51ca04,'apiDir':_0x5b428c,'apps':_0x463ef5,'defaultApp':_0x3fbf13,'currentApp':_0xb14f39?_0x14c554:undefined,'explicitAppName':_0x3b5dba};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a284_0xd61c(_0x517084,_0x5c9e4c){_0x517084=_0x517084-0x1aa;const _0x2a850e=a284_0x2a85();let _0xd61c9e=_0x2a850e[_0x517084];return _0xd61c9e;}(function(_0x24571a,_0xaf2bba){const _0x31965a=a284_0xd61c,_0x100768=_0x24571a();while(!![]){try{const _0x38dff4=-parseInt(_0x31965a(0x1b0))/0x1*(parseInt(_0x31965a(0x1b6))/0x2)+parseInt(_0x31965a(0x1af))/0x3+-parseInt(_0x31965a(0x1ae))/0x4+parseInt(_0x31965a(0x1b5))/0x5*(-parseInt(_0x31965a(0x1ab))/0x6)+parseInt(_0x31965a(0x1ad))/0x7*(-parseInt(_0x31965a(0x1b4))/0x8)+-parseInt(_0x31965a(0x1b8))/0x9*(parseInt(_0x31965a(0x1b7))/0xa)+-parseInt(_0x31965a(0x1b2))/0xb*(-parseInt(_0x31965a(0x1aa))/0xc);if(_0x38dff4===_0xaf2bba)break;else _0x100768['push'](_0x100768['shift']());}catch(_0x46a6f4){_0x100768['push'](_0x100768['shift']());}}}(a284_0x2a85,0x2507e));import{getIsSessionValid}from'../auth/is-session-valid.js';import{CliErrors}from'../errors.js';function a284_0x2a85(){const _0x35fcbc=['1718lfWghY','authRequired','10229153KOjvkR','cookie','24ateDue','10CshQyw','328vyfpOL','44300rGvnLF','225HBVwbh','12MAMtlg','248946FMBaZh','../auth/get-cookie.js','510202lHeLIm','615464DJPmGa','209289AbdOZc'];a284_0x2a85=function(){return _0x35fcbc;};return a284_0x2a85();}export async function buildAuth(_0x5c9ed7){const _0x1d8bb6=a284_0xd61c,{getCookie:_0xd3ce54}=await import(_0x1d8bb6(0x1ac)),_0x36b0d0=_0x5c9ed7[_0x1d8bb6(0x1b3)]||_0xd3ce54(),_0x3e6cd0=_0x36b0d0?await getIsSessionValid():![];return{'cookie':_0x36b0d0,'isLoggedIn':_0x3e6cd0,async 'getOrLogin'(){const _0x529d40=_0x1d8bb6;if(_0x36b0d0&&_0x3e6cd0)return _0x36b0d0;throw CliErrors[_0x529d40(0x1b1)]();}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a285_0x4fd327=a285_0x2dc6;(function(_0x2f6c6e,_0x418ca0){const _0x2e5687=a285_0x2dc6,_0x196e54=_0x2f6c6e();while(!![]){try{const _0x127fc5=parseInt(_0x2e5687(0x1e9))/0x1*(-parseInt(_0x2e5687(0x1ff))/0x2)+parseInt(_0x2e5687(0x1fb))/0x3*(parseInt(_0x2e5687(0x1fe))/0x4)+parseInt(_0x2e5687(0x202))/0x5*(parseInt(_0x2e5687(0x212))/0x6)+parseInt(_0x2e5687(0x203))/0x7*(parseInt(_0x2e5687(0x1ea))/0x8)+-parseInt(_0x2e5687(0x1e4))/0x9+-parseInt(_0x2e5687(0x1f4))/0xa+parseInt(_0x2e5687(0x214))/0xb*(parseInt(_0x2e5687(0x1f8))/0xc);if(_0x127fc5===_0x418ca0)break;else _0x196e54['push'](_0x196e54['shift']());}catch(_0x198f6f){_0x196e54['push'](_0x196e54['shift']());}}}(a285_0x244a,0x41136));function a285_0x2dc6(_0x115cbb,_0x329e3a){_0x115cbb=_0x115cbb-0x1e2;const _0x244a88=a285_0x244a();let _0x2dc697=_0x244a88[_0x115cbb];return _0x2dc697;}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=a285_0x4fd327(0x1f0);export const CONFIG_NAMES=[NEW_CONFIG_NAME];const normalizedWriteCache=new Map();export function resolveConfigPath(_0x41cae8){for(const _0x6d3de6 of CONFIG_NAMES){const _0xf8690c=resolve(_0x41cae8,_0x6d3de6);if(existsSync(_0xf8690c))return _0xf8690c;}return undefined;}export function findProjectRootDirectory(_0x2c166b=process['cwd']()){let _0x4d4833=resolve(_0x2c166b);const {root:_0x1231e8}=parse(_0x4d4833),_0xb1169d=homedir();while(!![]){if(resolveConfigPath(_0x4d4833)){if(_0x4d4833===_0xb1169d)break;return _0x4d4833;}if(_0x4d4833===_0x1231e8||_0x4d4833===_0xb1169d)break;const _0x2bd842=dirname(_0x4d4833);if(_0x2bd842===_0x4d4833)break;_0x4d4833=_0x2bd842;}return resolve(_0x2c166b);}export function getProjectConfigPath(){const _0x4ea1f6=a285_0x4fd327;return resolveConfigPath(process[_0x4ea1f6(0x1f2)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function isInProject(){return!!getProjectConfigPath();}export function inspectCliConfigJsonFile(_0x4fb16b){const _0x2c59aa=a285_0x4fd327;if(!existsSync(_0x4fb16b))return{'status':_0x2c59aa(0x210)};try{const _0x44cc05=readFileSync(_0x4fb16b,{'encoding':_0x2c59aa(0x20d)});if(!_0x44cc05?.['trim']())return{'status':_0x2c59aa(0x20c)};const _0x37a214=JSON[_0x2c59aa(0x1e6)](_0x44cc05);return{'status':'ok','data':_0x37a214};}catch(_0xb78db5){return{'status':_0x2c59aa(0x1f9),'message':_0xb78db5 instanceof Error?_0xb78db5[_0x2c59aa(0x1eb)]:String(_0xb78db5)};}}function parseCliConfigJsonFile(_0x1318e5,_0x55d7cf,_0x5c11c5){const _0x35f3b3=a285_0x4fd327,_0x8b7f89=inspectCliConfigJsonFile(_0x1318e5);if(_0x8b7f89[_0x35f3b3(0x1f6)]===_0x35f3b3(0x210)||_0x8b7f89[_0x35f3b3(0x1f6)]==='empty')return{};if(_0x8b7f89[_0x35f3b3(0x1f6)]==='ok')return _0x8b7f89[_0x35f3b3(0x1f3)];return _0x55d7cf===_0x35f3b3(0x211)&&_0x5c11c5&&console[_0x35f3b3(0x1f9)](CLI_BIN_NAME+':\x20'+_0x5c11c5+_0x35f3b3(0x207)+_0x1318e5+'\x0a\x20\x20'+_0x8b7f89[_0x35f3b3(0x1eb)]),{};}function normalizeLegacyConfigShape(_0xb917c9){const _0x30f606=a285_0x4fd327;if(!_0xb917c9||typeof _0xb917c9!==_0x30f606(0x204))return{'config':{},'migrated':![]};const _0x11ecfe={..._0xb917c9},_0x3babdc=_0x11ecfe[_0x30f606(0x1ef)]&&typeof _0x11ecfe[_0x30f606(0x1ef)]==='object'?{..._0x11ecfe[_0x30f606(0x1ef)]}:{},_0x6c821e=Object['keys'](_0x3babdc)[_0x30f606(0x1e8)],_0x338371=_0x11ecfe[_0x30f606(0x21b)]||_0x11ecfe[_0x30f606(0x1e7)];let _0x213aa2=![];if(_0x338371&&_0x6c821e===0x0){const _0x53075e=typeof _0x11ecfe[_0x30f606(0x20a)]==='string'&&_0x11ecfe[_0x30f606(0x20a)]['trim']()?_0x11ecfe[_0x30f606(0x20a)]:String(_0x338371)[_0x30f606(0x215)]();_0x3babdc[_0x53075e]={'appcode':String(_0x338371)[_0x30f606(0x215)](),..._0x11ecfe['env']!=null?{'env':_0x11ecfe['env']}:{},..._0x11ecfe[_0x30f606(0x208)]!=null?{'apiDir':_0x11ecfe[_0x30f606(0x208)]}:{},..._0x11ecfe[_0x30f606(0x20e)]!=null?{'cookie':_0x11ecfe[_0x30f606(0x20e)]}:{},..._0x11ecfe['accessKey']!=null?{'accessKey':_0x11ecfe[_0x30f606(0x1fd)]}:{},..._0x11ecfe[_0x30f606(0x201)]!=null?{'format':_0x11ecfe[_0x30f606(0x201)]}:{},..._0x11ecfe['pageSize']!=null?{'pageSize':_0x11ecfe['pageSize']}:{},..._0x11ecfe[_0x30f606(0x206)]!=null?{'riskLevel':_0x11ecfe['riskLevel']}:{},..._0x11ecfe['locale']!=null?{'locale':_0x11ecfe[_0x30f606(0x1ec)]}:{}},_0x11ecfe[_0x30f606(0x1ef)]=_0x3babdc,delete _0x11ecfe[_0x30f606(0x20a)],_0x213aa2=!![];}return(_0x30f606(0x21b)in _0x11ecfe||'app'in _0x11ecfe)&&(delete _0x11ecfe['appcode'],delete _0x11ecfe['app'],_0x213aa2=!![]),{'config':_0x11ecfe,'migrated':_0x213aa2};}function writeNormalizedConfigIfNeeded(_0x1a7a4b,_0x1ed908){const _0x1e7e5f=a285_0x4fd327,_0x13a070=JSON['stringify'](normalizeConfigForWrite(_0x1ed908),null,0x2)+'\x0a';if(normalizedWriteCache[_0x1e7e5f(0x200)](_0x1a7a4b)===_0x13a070)return;writeConfigFile(_0x1a7a4b,_0x1ed908),normalizedWriteCache[_0x1e7e5f(0x1fa)](_0x1a7a4b,_0x13a070);}function a285_0x244a(){const _0x752f4=['keys','appcode','runtimeDomain','project','4568454uGfRvd','Global','parse','app','length','5bewHUr','88nPLQFn','message','locale','kbDomain','certificateDomain','apps','.rabetbase.json','inherit','cwd','data','4983080BexWjG','projectPath','status','kbServiceDomain','3570972htDGTU','error','set','7251IiQvQl','Project','accessKey','436CqgXwT','58254QgQdLz','get','format','1085FzKTWf','215782NLHYTz','object','routing','riskLevel','\x20config\x20file\x20ignored\x20(invalid\x20JSON\x20or\x20unreadable):\x20','apiDir','apiDomain','defaultApp','config','empty','utf8','cookie','region','missing','warn','14322NeLKCy','stringify','11hGvkbm','trim','localDomain','.tmp','pageSize','silent'];a285_0x244a=function(){return _0x752f4;};return a285_0x244a();}function parseAndNormalizeConfig(_0x113dc4,_0x50ecc5,_0x49f9c6){const _0x16e440=a285_0x4fd327,_0x151da4=parseCliConfigJsonFile(_0x113dc4,_0x50ecc5,_0x49f9c6),_0xfcc91a=normalizeLegacyConfigShape(_0x151da4);if(_0xfcc91a['migrated'])try{writeNormalizedConfigIfNeeded(_0x113dc4,_0xfcc91a[_0x16e440(0x20b)]);}catch{}return _0xfcc91a[_0x16e440(0x20b)];}export function loadRawConfigLayers(_0x56704e){const _0x241026=a285_0x4fd327;let _0x5e9a66={},_0xb551b5={};const _0x59da00=resolveConfigPath(homedir());_0x59da00&&(_0x5e9a66=parseAndNormalizeConfig(_0x59da00,_0x241026(0x211),_0x241026(0x1e5)));const _0x2d1c00=_0x56704e??findProjectRootDirectory(),_0x53bc4d=resolveConfigPath(_0x2d1c00);return _0x53bc4d&&(_0xb551b5=parseAndNormalizeConfig(_0x53bc4d,_0x241026(0x211),_0x241026(0x1fc))),{'globalPath':_0x59da00,'projectPath':_0x53bc4d,'globalConfig':_0x5e9a66,'projectConfig':_0xb551b5};}const INHERIT_WHITELIST=['cookie',a285_0x4fd327(0x1fd),a285_0x4fd327(0x1ec),a285_0x4fd327(0x201),a285_0x4fd327(0x206),a285_0x4fd327(0x218),a285_0x4fd327(0x20f),a285_0x4fd327(0x205),'userDomain',a285_0x4fd327(0x209),a285_0x4fd327(0x1e2),'skillDomain',a285_0x4fd327(0x1ed),a285_0x4fd327(0x1f7),'appDomain',a285_0x4fd327(0x216),a285_0x4fd327(0x1ee)];export function mergeRawConfigLayers(_0x299ed2){const _0xa01030=a285_0x4fd327,{globalConfig:_0xb05b5a,projectConfig:_0x446f9d}=_0x299ed2,_0x48d730=!!_0x299ed2[_0xa01030(0x1f5)]||Object[_0xa01030(0x21a)](_0x446f9d)['length']>0x0;if(!_0x48d730)return mergeGlobalOnly(_0xb05b5a);return mergeProjectFirst(_0xb05b5a,_0x446f9d);}function mergeGlobalOnly(_0x2a8532){const _0x2d7d16=a285_0x4fd327,_0x5bb295={..._0x2a8532};delete _0x5bb295[_0x2d7d16(0x1f1)];const _0x59c9f1=_0x2a8532[_0x2d7d16(0x1ef)]&&typeof _0x2a8532[_0x2d7d16(0x1ef)]===_0x2d7d16(0x204)?_0x2a8532['apps']:{};if(Object['keys'](_0x59c9f1)[_0x2d7d16(0x1e8)]>0x0)_0x5bb295[_0x2d7d16(0x1ef)]=_0x59c9f1;if(_0x2a8532[_0x2d7d16(0x20a)])_0x5bb295[_0x2d7d16(0x20a)]=_0x2a8532[_0x2d7d16(0x20a)];return _0x5bb295;}function mergeProjectFirst(_0x3534c2,_0x4f72b4){const _0x3f2b0c=a285_0x4fd327,_0x595519={..._0x4f72b4};delete _0x595519[_0x3f2b0c(0x1f1)];for(const _0x5f0d6c of INHERIT_WHITELIST){!(_0x5f0d6c in _0x595519)&&_0x5f0d6c in _0x3534c2&&(_0x595519[_0x5f0d6c]=_0x3534c2[_0x5f0d6c]);}const _0x51a681=_0x4f72b4[_0x3f2b0c(0x1ef)]&&typeof _0x4f72b4[_0x3f2b0c(0x1ef)]===_0x3f2b0c(0x204)?_0x4f72b4[_0x3f2b0c(0x1ef)]:{};return Object[_0x3f2b0c(0x21a)](_0x51a681)[_0x3f2b0c(0x1e8)]>0x0?_0x595519[_0x3f2b0c(0x1ef)]=_0x51a681:delete _0x595519[_0x3f2b0c(0x1ef)],_0x3f2b0c(0x20a)in _0x4f72b4?_0x595519[_0x3f2b0c(0x20a)]=_0x4f72b4[_0x3f2b0c(0x20a)]:delete _0x595519[_0x3f2b0c(0x20a)],_0x595519;}export function readRawConfigWithLayers(_0x354fbe){const _0x94c3ff=loadRawConfigLayers(_0x354fbe);return{'config':mergeRawConfigLayers(_0x94c3ff),'layers':_0x94c3ff};}export function readRawConfig(_0x4bb5f9){return mergeRawConfigLayers(loadRawConfigLayers(_0x4bb5f9));}export function readConfigFile(_0xbd7b59){const _0x573728=a285_0x4fd327;return parseAndNormalizeConfig(_0xbd7b59,_0x573728(0x219));}export function writeConfigFile(_0x438c21,_0x4e848e){const _0x3b7eb8=a285_0x4fd327,_0x4c370c=dirname(_0x438c21);!existsSync(_0x4c370c)&&mkdirSync(_0x4c370c,{'recursive':!![]});const _0xb41986=_0x438c21+_0x3b7eb8(0x217);try{const _0x11056c=normalizeConfigForWrite(_0x4e848e);writeFileSync(_0xb41986,JSON[_0x3b7eb8(0x213)](_0x11056c,null,0x2)+'\x0a',{'encoding':_0x3b7eb8(0x20d),'mode':0x180}),renameSync(_0xb41986,_0x438c21);}catch(_0xdb0d88){try{unlinkSync(_0xb41986);}catch{}throw _0xdb0d88;}}export function resolveWriteConfigPath(_0xa1ffba){const _0x285a57=a285_0x4fd327,_0x2a8162=_0xa1ffba===_0x285a57(0x1e3)?process[_0x285a57(0x1f2)]():homedir(),_0x203521=resolveConfigPath(_0x2a8162);return _0x203521??resolve(_0x2a8162,NEW_CONFIG_NAME);}
|
package/lib/context.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a286_0xd59356=a286_0x1e7d;(function(_0x5d1761,_0x479d52){const _0x2af36c=a286_0x1e7d,_0x316bd3=_0x5d1761();while(!![]){try{const _0x2d25b9=parseInt(_0x2af36c(0x138))/0x1+parseInt(_0x2af36c(0x11f))/0x2*(parseInt(_0x2af36c(0x119))/0x3)+parseInt(_0x2af36c(0x126))/0x4*(-parseInt(_0x2af36c(0x12e))/0x5)+-parseInt(_0x2af36c(0x146))/0x6*(-parseInt(_0x2af36c(0x136))/0x7)+-parseInt(_0x2af36c(0x131))/0x8+-parseInt(_0x2af36c(0x13d))/0x9*(-parseInt(_0x2af36c(0x124))/0xa)+parseInt(_0x2af36c(0x108))/0xb*(-parseInt(_0x2af36c(0x10f))/0xc);if(_0x2d25b9===_0x479d52)break;else _0x316bd3['push'](_0x316bd3['shift']());}catch(_0x3bbd03){_0x316bd3['push'](_0x316bd3['shift']());}}}(a286_0x4033,0x60e03));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';function a286_0x4033(){const _0x1d2e8f=['3860tEDpiF','doctor','620HSvytl','argv','env','agentDomain','values','call','object','regionSource','14735JiydMG','daily','string','5794656LTmwGN','apiGroup','region','https://g.lovrabet.com/dist/lovrabet-skill','apps','819pFutHU','filter','389877JJCCWc','appDomain','filePath','prototype','replace','11574lISvuD','configuredRegion','userDomain','currentApp','template_base_url','projectConfig','localDomain','./utils/is-non-interactive.js','skillDomain','37998uVBwOg','app\x20profile\x20\x22','domains','apiDir','routing','name','apiDomain','routingConfig','cookie','Rabetbase\x20configuration','raw','trim','./constant/domain.js','setLogPath','kbServiceDomain','source','297AnDWBN','appcode','regionConfiguredValue','runtimeDomain','project\x20Rabetbase\x20configuration','certificateDomain','entries','66876QCoskg','cwd','production','project','globalConfig','regionLocation','hasOwnProperty','length','skillHubDomain','setRawCommand','303471eUTJuW','defaultApp','keys','config','map','merged','2KBmJVs','some','kbDomain','targetEnv','app'];a286_0x4033=function(){return _0x1d2e8f;};return a286_0x4033();}import{logger}from'./utils/logger.js';import{resolveApiModelSource}from'./api/model-source.js';function a286_0x1e7d(_0x4e139c,_0x50a919){_0x4e139c=_0x4e139c-0xff;const _0x4033a9=a286_0x4033();let _0x1e7dbc=_0x4033a9[_0x4e139c];return _0x1e7dbc;}export{CONFIG_NAMES,NEW_CONFIG_NAME,findProjectRootDirectory,getGlobalConfigPath,getProjectConfigPath,inspectCliConfigJsonFile,isInProject,loadRawConfigLayers,mergeRawConfigLayers,readConfigFile,readRawConfig,readRawConfigWithLayers,resolveConfigPath,resolveWriteConfigPath,writeConfigFile};function env(_0x21566d){return process.env[`RABETBASE_${_0x21566d}`]||process.env[`LOVRABET_${_0x21566d}`]||undefined;}function optionalString(_0x782c29){const _0x553b98=a286_0x1e7d;return typeof _0x782c29===_0x553b98(0x130)&&_0x782c29['trim']()?_0x782c29[_0x553b98(0x103)]():undefined;}export function isRoutingRecoveryService(_0x2f92c2){const _0x313dc5=a286_0x1e7d;return _0x2f92c2===_0x313dc5(0x11c)||_0x2f92c2===_0x313dc5(0x125);}export async function createContext(_0x3db59c){const _0x15bd59=a286_0x1e7d,{config:_0x4b4f81,layers:_0x1d93da}=readRawConfigWithLayers(),_0x384a76=buildConfig(_0x4b4f81,_0x3db59c,_0x1d93da);await initGlobalEnvironment(_0x384a76);const {getUserDomain:_0x4c2e0,getApiDomain:_0x26df01}=await import(_0x15bd59(0x104)),_0x7f8ac={'apiDomain':_0x26df01(),'userDomain':_0x4c2e0()},_0x46b9e7=await buildAuth(_0x384a76);logger[_0x15bd59(0x105)](process[_0x15bd59(0x110)]());const _0x47301c=(CLI_BIN_NAME+'\x20'+process[_0x15bd59(0x127)]['slice'](0x2)['join']('\x20'))['trim']();logger[_0x15bd59(0x118)](_0x47301c);const {isNonInteractive:_0x17cd14}=await import(_0x15bd59(0x144)),_0x35ff83=_0x17cd14(_0x3db59c);return{'config':_0x384a76,'auth':_0x46b9e7,'logger':logger,'env':_0x7f8ac,'nonInteractive':_0x35ff83};}export function buildConfigFromFlags(_0x55e527){const {config:_0x13fa7a,layers:_0x4c8fd6}=readRawConfigWithLayers();return buildConfig(_0x13fa7a,_0x55e527,_0x4c8fd6);}export async function initGlobalEnvironment(_0x495d5e){const _0x3d4dc0=a286_0x1e7d,_0x56ca27=_0x495d5e[_0x3d4dc0(0x12d)]===_0x3d4dc0(0x123)&&_0x495d5e[_0x3d4dc0(0x140)]?_0x3d4dc0(0x147)+_0x495d5e[_0x3d4dc0(0x140)]+'\x22':_0x495d5e[_0x3d4dc0(0x12d)]===_0x3d4dc0(0x112)?_0x3d4dc0(0x10c):_0x495d5e['regionSource']==='global'?'global\x20Rabetbase\x20configuration':_0x3d4dc0(0x101);await initConfiguredEnvironment({'raw':_0x495d5e[_0x3d4dc0(0x102)],'configuredRegion':_0x495d5e[_0x3d4dc0(0x10a)]??_0x495d5e['raw']?.[_0x3d4dc0(0x133)]??_0x495d5e['region'],'regionLocation':_0x56ca27,'targetEnv':_0x495d5e[_0x3d4dc0(0x128)]});}async function initConfiguredEnvironment(_0x5191cf){const _0x3297f4=a286_0x1e7d,_0x56ec00=resolveConfiguredRegion(_0x5191cf[_0x3297f4(0x13e)],_0x5191cf[_0x3297f4(0x114)]),_0xf919cc=resolveEnterpriseRoutingManifest(_0x5191cf[_0x3297f4(0x102)]?.['routing']),_0x446c51={'region':_0x56ec00,'apiDomain':_0xf919cc?_0xf919cc[_0x3297f4(0x148)][_0x3297f4(0x14c)]:optionalString(_0x5191cf['raw']?.[_0x3297f4(0x14c)]),'userDomain':_0xf919cc?_0xf919cc[_0x3297f4(0x148)][_0x3297f4(0x13f)]:optionalString(_0x5191cf[_0x3297f4(0x102)]?.[_0x3297f4(0x13f)]),'runtimeDomain':_0xf919cc?_0xf919cc[_0x3297f4(0x148)][_0x3297f4(0x10b)]:optionalString(_0x5191cf['raw']?.[_0x3297f4(0x10b)]),'skillDomain':_0xf919cc?_0xf919cc[_0x3297f4(0x148)][_0x3297f4(0x145)]:optionalString(_0x5191cf[_0x3297f4(0x102)]?.[_0x3297f4(0x145)])||optionalString(_0x5191cf[_0x3297f4(0x102)]?.[_0x3297f4(0x117)])||optionalString(_0x5191cf[_0x3297f4(0x102)]?.[_0x3297f4(0x129)])||optionalString(_0x5191cf[_0x3297f4(0x102)]?.['platformDomain']),'kbDomain':_0xf919cc?_0xf919cc[_0x3297f4(0x148)][_0x3297f4(0x121)]:optionalString(_0x5191cf[_0x3297f4(0x102)]?.[_0x3297f4(0x121)])||optionalString(_0x5191cf[_0x3297f4(0x102)]?.[_0x3297f4(0x129)])||optionalString(_0x5191cf[_0x3297f4(0x102)]?.['platformDomain']),'kbServiceDomain':_0xf919cc?_0xf919cc[_0x3297f4(0x148)][_0x3297f4(0x106)]:optionalString(_0x5191cf[_0x3297f4(0x102)]?.[_0x3297f4(0x106)]),'appDomain':_0xf919cc?_0xf919cc[_0x3297f4(0x148)]['appDomain']:optionalString(_0x5191cf['raw']?.['appDomain']),'localDomain':_0xf919cc?_0xf919cc['domains'][_0x3297f4(0x143)]:optionalString(_0x5191cf[_0x3297f4(0x102)]?.[_0x3297f4(0x143)]),'certificateDomain':_0xf919cc?_0xf919cc[_0x3297f4(0x148)][_0x3297f4(0x10d)]:optionalString(_0x5191cf[_0x3297f4(0x102)]?.[_0x3297f4(0x10d)]),'cdn':_0xf919cc?.['cdn'],'allowOfficialKbServiceDefault':!(_0xf919cc!==undefined||['apiDomain',_0x3297f4(0x13f),'runtimeDomain',_0x3297f4(0x145),_0x3297f4(0x117),_0x3297f4(0x121),_0x3297f4(0x106),_0x3297f4(0x129),'platformDomain',_0x3297f4(0x139),_0x3297f4(0x143),_0x3297f4(0x10d)][_0x3297f4(0x120)](_0x129d60=>Object['prototype'][_0x3297f4(0x115)][_0x3297f4(0x12b)](_0x5191cf[_0x3297f4(0x102)]??{},_0x129d60)))},{initEnv:_0x583291}=await import('./constant/env.js'),{initDomains:_0x26a572}=await import(_0x3297f4(0x104));_0x583291(_0x5191cf[_0x3297f4(0x122)]),_0x26a572(_0x446c51);}export async function initMultiAppEnvironment(_0x239b5a){const _0x3ee5e0=a286_0x1e7d;await initConfiguredEnvironment({'raw':_0x239b5a[_0x3ee5e0(0xff)],'configuredRegion':_0x239b5a[_0x3ee5e0(0x133)],'regionLocation':'app\x20profile\x20\x22'+_0x239b5a[_0x3ee5e0(0x14b)]+'\x22','targetEnv':_0x239b5a['env']===_0x3ee5e0(0x12f)?'daily':_0x3ee5e0(0x111)});}export function getConfigAppCode(_0x5a617c){const _0x5d40a7=a286_0x1e7d,_0x265b8a=readRawConfig(_0x5a617c);if(_0x265b8a[_0x5d40a7(0x135)]&&typeof _0x265b8a[_0x5d40a7(0x135)]===_0x5d40a7(0x12c)){const _0x2a6677=_0x265b8a[_0x5d40a7(0x11a)];if(_0x2a6677)return _0x265b8a[_0x5d40a7(0x135)][_0x2a6677]?.[_0x5d40a7(0x109)]?String(_0x265b8a[_0x5d40a7(0x135)][_0x2a6677][_0x5d40a7(0x109)])[_0x5d40a7(0x103)]():undefined;const _0x46cb64=Object[_0x5d40a7(0x12a)](_0x265b8a[_0x5d40a7(0x135)]);if(_0x46cb64[_0x5d40a7(0x116)]===0x1&&_0x46cb64[0x0]?.[_0x5d40a7(0x109)])return String(_0x46cb64[0x0]['appcode'])[_0x5d40a7(0x103)]();}const _0x2349fe=_0x265b8a[_0x5d40a7(0x109)]||_0x265b8a[_0x5d40a7(0x123)];if(typeof _0x2349fe!==_0x5d40a7(0x130)||_0x2349fe[_0x5d40a7(0x103)]()==='')return undefined;return _0x2349fe[_0x5d40a7(0x103)]();}const CONNECTION_ROUTING_KEYS=[a286_0xd59356(0x14a),a286_0xd59356(0x14c),'userDomain',a286_0xd59356(0x10b),a286_0xd59356(0x145),a286_0xd59356(0x117),'kbDomain',a286_0xd59356(0x106),a286_0xd59356(0x129),'platformDomain',a286_0xd59356(0x139),a286_0xd59356(0x143),a286_0xd59356(0x10d)];function withAppProfileRouting(_0xa7a361,_0x1ab3e9){const _0x2335ed=a286_0xd59356;if(!_0x1ab3e9||_0x1ab3e9[_0x2335ed(0x106)]===undefined)return _0xa7a361;return{..._0xa7a361,'kbServiceDomain':_0x1ab3e9[_0x2335ed(0x106)]};}function pickConnectionRoutingConfig(_0x124acb,_0xb3f5b0){const _0x55fb8f={'region':_0xb3f5b0};for(const _0x28a315 of CONNECTION_ROUTING_KEYS){if(_0x124acb[_0x28a315]!==undefined)_0x55fb8f[_0x28a315]=_0x124acb[_0x28a315];}return _0x55fb8f;}export function getMultiAppConfigs(_0x22a17f=a286_0xd59356(0x112),_0x23a077){const _0x19129f=a286_0xd59356,_0x37ceca=loadRawConfigLayers(_0x23a077);let _0x126e15,_0x1e4008;const _0x471409=mergeRawConfigLayers(_0x37ceca),_0x1f44e6=_0x37ceca[_0x19129f(0x113)][_0x19129f(0x135)]&&typeof _0x37ceca[_0x19129f(0x113)]['apps']===_0x19129f(0x12c)?_0x37ceca[_0x19129f(0x113)][_0x19129f(0x135)]:{},_0x4e0038=_0x37ceca[_0x19129f(0x142)]['apps']&&typeof _0x37ceca[_0x19129f(0x142)][_0x19129f(0x135)]==='object'?_0x37ceca[_0x19129f(0x142)]['apps']:{};_0x22a17f===_0x19129f(0x11e)?(_0x126e15={..._0x1f44e6,..._0x4e0038},_0x1e4008=_0x471409[_0x19129f(0x11a)]):(_0x126e15=_0x37ceca[_0x19129f(0x142)][_0x19129f(0x135)],_0x1e4008=_0x37ceca['projectConfig']['defaultApp']);!_0x1e4008&&_0x126e15&&typeof _0x126e15===_0x19129f(0x12c)&&Object[_0x19129f(0x11b)](_0x126e15)[_0x19129f(0x116)]===0x1&&(_0x1e4008=Object[_0x19129f(0x11b)](_0x126e15)[0x0]);if(!_0x126e15||typeof _0x126e15!=='object'||Object[_0x19129f(0x11b)](_0x126e15)[_0x19129f(0x116)]===0x0)return null;return Object[_0x19129f(0x10e)](_0x126e15)[_0x19129f(0x11d)](([_0x4ff4b4,_0x2018e7])=>{const _0x31e483=_0x19129f,_0x342e63=_0x22a17f===_0x31e483(0x112)||Object[_0x31e483(0x13b)][_0x31e483(0x115)][_0x31e483(0x12b)](_0x4e0038,_0x4ff4b4),_0xf12ee3=withAppProfileRouting(_0x342e63?_0x471409:_0x37ceca[_0x31e483(0x113)],_0x2018e7),_0x2a4f8a=resolveEffectiveRegion({'appRegion':_0x2018e7?.[_0x31e483(0x133)],'projectRegion':_0x342e63?_0x37ceca[_0x31e483(0x142)][_0x31e483(0x133)]:undefined,'globalRegion':_0x37ceca[_0x31e483(0x113)]['region'],'mergedRegion':_0xf12ee3['region'],'appName':_0x4ff4b4});return{'name':_0x4ff4b4,'appcode':_0x2018e7?.['appcode']||'','apiGroup':optionalString(_0x2018e7?.[_0x31e483(0x132)]),'isDefault':_0x4ff4b4===_0x1e4008,'region':_0x2a4f8a[_0x31e483(0x133)],'regionSource':_0x2a4f8a[_0x31e483(0x107)],'env':_0x2018e7?.[_0x31e483(0x128)],'apiDir':optionalString(_0x2018e7?.[_0x31e483(0x149)])||optionalString(_0xf12ee3[_0x31e483(0x149)]),'cookie':_0x2018e7?.[_0x31e483(0x100)]||undefined,'routingConfig':pickConnectionRoutingConfig(_0xf12ee3,_0x2a4f8a[_0x31e483(0x133)])};})[_0x19129f(0x137)](_0x3db9fa=>_0x3db9fa[_0x19129f(0x109)]);}export function getTemplateBaseUrl(_0x164bfb){const _0xc4ab86=a286_0xd59356,_0x375a0a=readRawConfig(_0x164bfb);if(_0x375a0a['template_base_url']&&typeof _0x375a0a[_0xc4ab86(0x141)]==='string')return _0x375a0a['template_base_url'][_0xc4ab86(0x13c)](/\/$/,'');return _0xc4ab86(0x134);}function buildConfig(_0x135aa8,_0x457115,_0x1c7f29){const _0x38e38f=a286_0xd59356,_0x3587b3=resolveAppConfig({'raw':_0x135aa8,'flags':_0x457115,'layers':_0x1c7f29,'readEnv':env}),_0x366b78=_0x3587b3[_0x38e38f(0x140)]?_0x3587b3[_0x38e38f(0x135)][_0x3587b3['currentApp']]:undefined;return{..._0x3587b3,'raw':withAppProfileRouting(_0x135aa8,_0x366b78)};}export function resolveApiFilePath(_0x40424a,_0xadc153,_0x5abc29){const _0x266ce3=a286_0xd59356;return resolveApiModelSource(_0x40424a,_0xadc153,_0x5abc29)[_0x266ce3(0x13a)];}
|
|
1
|
+
function a286_0x3d26(){const _0x1905b5=['regionSource','skillHubDomain','call','prototype','targetEnv','global\x20Rabetbase\x20configuration','string','app\x20profile\x20\x22','defaultApp','166cGiNDb','certificateDomain','daily','cookie','hasOwnProperty','apiDomain','env','setRawCommand','entries','production','216080UYBAaU','length','app','Rabetbase\x20configuration','172820tbThsn','domains','projectConfig','routingConfig','region','currentApp','13272WhNLjA','752135fSCBuI','localDomain','cwd','keys','35gbxMTz','trim','appcode','cdn','replace','argv','global','kbDomain','globalConfig','./constant/domain.js','source','project\x20Rabetbase\x20configuration','https://g.lovrabet.com/dist/lovrabet-skill','agentDomain','template_base_url','object','apiDir','63UUXPek','regionConfiguredValue','doctor','config','userDomain','slice','platformDomain','merged','routing','project','307506IVpEbF','4574950ONbgCW','skillDomain','60296komTxm','apps','some','kbServiceDomain','values','appDomain','raw','runtimeDomain','configuredRegion','filePath','map','setLogPath'];a286_0x3d26=function(){return _0x1905b5;};return a286_0x3d26();}const a286_0x440235=a286_0x1d54;(function(_0x14a62d,_0x565c63){const _0x2c015e=a286_0x1d54,_0x56922d=_0x14a62d();while(!![]){try{const _0x23b502=-parseInt(_0x2c015e(0x117))/0x1+-parseInt(_0x2c015e(0x10d))/0x2*(-parseInt(_0x2c015e(0x121))/0x3)+parseInt(_0x2c015e(0x11b))/0x4+parseInt(_0x2c015e(0x122))/0x5+-parseInt(_0x2c015e(0x141))/0x6*(-parseInt(_0x2c015e(0x126))/0x7)+parseInt(_0x2c015e(0xf8))/0x8*(parseInt(_0x2c015e(0x137))/0x9)+-parseInt(_0x2c015e(0xf6))/0xa;if(_0x23b502===_0x565c63)break;else _0x56922d['push'](_0x56922d['shift']());}catch(_0x3301dc){_0x56922d['push'](_0x56922d['shift']());}}}(a286_0x3d26,0x2fea7));import{CLI_BIN_NAME}from'./constant/cli.js';function a286_0x1d54(_0x224ae0,_0x294cd4){_0x224ae0=_0x224ae0-0xf6;const _0x3d267d=a286_0x3d26();let _0x1d549d=_0x3d267d[_0x224ae0];return _0x1d549d;}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(_0x1eef0d){return process.env[`RABETBASE_${_0x1eef0d}`]||process.env[`LOVRABET_${_0x1eef0d}`]||undefined;}function optionalString(_0x3e69fa){const _0x55d5c2=a286_0x1d54;return typeof _0x3e69fa==='string'&&_0x3e69fa[_0x55d5c2(0x127)]()?_0x3e69fa[_0x55d5c2(0x127)]():undefined;}export function isRoutingRecoveryService(_0x50c437){const _0x25a47f=a286_0x1d54;return _0x50c437===_0x25a47f(0x13a)||_0x50c437===_0x25a47f(0x139);}export async function createContext(_0x305909){const _0x370a0d=a286_0x1d54,{config:_0x481f43,layers:_0x20c501}=readRawConfigWithLayers(),_0x1a7709=buildConfig(_0x481f43,_0x305909,_0x20c501);await initGlobalEnvironment(_0x1a7709);const {getUserDomain:_0x269377,getApiDomain:_0x1b9528}=await import(_0x370a0d(0x12f)),_0x936922={'apiDomain':_0x1b9528(),'userDomain':_0x269377()},_0x12d5b5=await buildAuth(_0x1a7709);logger[_0x370a0d(0x103)](process[_0x370a0d(0x124)]());const _0x297d58=(CLI_BIN_NAME+'\x20'+process[_0x370a0d(0x12b)][_0x370a0d(0x13c)](0x2)['join']('\x20'))[_0x370a0d(0x127)]();logger[_0x370a0d(0x114)](_0x297d58);const {isNonInteractive:_0x364741}=await import('./utils/is-non-interactive.js'),_0x3b2bc4=_0x364741(_0x305909);return{'config':_0x1a7709,'auth':_0x12d5b5,'logger':logger,'env':_0x936922,'nonInteractive':_0x3b2bc4};}export function buildConfigFromFlags(_0x5b29e1){const {config:_0x6c20b5,layers:_0x1acfb1}=readRawConfigWithLayers();return buildConfig(_0x6c20b5,_0x5b29e1,_0x1acfb1);}export async function initGlobalEnvironment(_0x88face){const _0x21bd56=a286_0x1d54,_0xaa279d=_0x88face[_0x21bd56(0x104)]==='app'&&_0x88face['currentApp']?'app\x20profile\x20\x22'+_0x88face['currentApp']+'\x22':_0x88face[_0x21bd56(0x104)]===_0x21bd56(0x140)?_0x21bd56(0x131):_0x88face['regionSource']===_0x21bd56(0x12c)?_0x21bd56(0x109):_0x21bd56(0x11a);await initConfiguredEnvironment({'raw':_0x88face[_0x21bd56(0xfe)],'configuredRegion':_0x88face[_0x21bd56(0x138)]??_0x88face[_0x21bd56(0xfe)]?.[_0x21bd56(0x11f)]??_0x88face['region'],'regionLocation':_0xaa279d,'targetEnv':_0x88face[_0x21bd56(0x113)]});}async function initConfiguredEnvironment(_0x12e23b){const _0x407ca7=a286_0x1d54,_0x182ac2=resolveConfiguredRegion(_0x12e23b[_0x407ca7(0x100)],_0x12e23b['regionLocation']),_0x593b1a=resolveEnterpriseRoutingManifest(_0x12e23b['raw']?.[_0x407ca7(0x13f)]),_0x4ae326={'region':_0x182ac2,'apiDomain':_0x593b1a?_0x593b1a[_0x407ca7(0x11c)][_0x407ca7(0x112)]:optionalString(_0x12e23b['raw']?.[_0x407ca7(0x112)]),'userDomain':_0x593b1a?_0x593b1a['domains']['userDomain']:optionalString(_0x12e23b[_0x407ca7(0xfe)]?.[_0x407ca7(0x13b)]),'runtimeDomain':_0x593b1a?_0x593b1a[_0x407ca7(0x11c)]['runtimeDomain']:optionalString(_0x12e23b[_0x407ca7(0xfe)]?.['runtimeDomain']),'skillDomain':_0x593b1a?_0x593b1a[_0x407ca7(0x11c)]['skillDomain']:optionalString(_0x12e23b[_0x407ca7(0xfe)]?.[_0x407ca7(0xf7)])||optionalString(_0x12e23b[_0x407ca7(0xfe)]?.['skillHubDomain'])||optionalString(_0x12e23b['raw']?.[_0x407ca7(0x133)])||optionalString(_0x12e23b[_0x407ca7(0xfe)]?.[_0x407ca7(0x13d)]),'kbDomain':_0x593b1a?_0x593b1a[_0x407ca7(0x11c)][_0x407ca7(0x12d)]:optionalString(_0x12e23b[_0x407ca7(0xfe)]?.[_0x407ca7(0x12d)])||optionalString(_0x12e23b['raw']?.[_0x407ca7(0x133)])||optionalString(_0x12e23b[_0x407ca7(0xfe)]?.[_0x407ca7(0x13d)]),'kbServiceDomain':_0x593b1a?_0x593b1a[_0x407ca7(0x11c)]['kbServiceDomain']:optionalString(_0x12e23b[_0x407ca7(0xfe)]?.[_0x407ca7(0xfb)]),'appDomain':_0x593b1a?_0x593b1a[_0x407ca7(0x11c)][_0x407ca7(0xfd)]:optionalString(_0x12e23b[_0x407ca7(0xfe)]?.[_0x407ca7(0xfd)]),'localDomain':_0x593b1a?_0x593b1a[_0x407ca7(0x11c)][_0x407ca7(0x123)]:optionalString(_0x12e23b[_0x407ca7(0xfe)]?.[_0x407ca7(0x123)]),'certificateDomain':_0x593b1a?_0x593b1a[_0x407ca7(0x11c)][_0x407ca7(0x10e)]:optionalString(_0x12e23b[_0x407ca7(0xfe)]?.[_0x407ca7(0x10e)]),'cdn':_0x593b1a?.[_0x407ca7(0x129)],'allowOfficialKbServiceDefault':!(_0x593b1a!==undefined||[_0x407ca7(0x112),'userDomain',_0x407ca7(0xff),_0x407ca7(0xf7),'skillHubDomain','kbDomain',_0x407ca7(0xfb),'agentDomain',_0x407ca7(0x13d),_0x407ca7(0xfd),_0x407ca7(0x123),_0x407ca7(0x10e)][_0x407ca7(0xfa)](_0x11bee3=>Object[_0x407ca7(0x107)][_0x407ca7(0x111)]['call'](_0x12e23b[_0x407ca7(0xfe)]??{},_0x11bee3)))},{initEnv:_0x26eb4c}=await import('./constant/env.js'),{initDomains:_0x407ae7}=await import(_0x407ca7(0x12f));_0x26eb4c(_0x12e23b[_0x407ca7(0x108)]),_0x407ae7(_0x4ae326);}export async function initMultiAppEnvironment(_0x41c5bd){const _0x4f9b19=a286_0x1d54;await initConfiguredEnvironment({'raw':_0x41c5bd[_0x4f9b19(0x11e)],'configuredRegion':_0x41c5bd['region'],'regionLocation':_0x4f9b19(0x10b)+_0x41c5bd['name']+'\x22','targetEnv':_0x41c5bd[_0x4f9b19(0x113)]===_0x4f9b19(0x10f)?'daily':_0x4f9b19(0x116)});}export function getConfigAppCode(_0x46c77c){const _0xd117bc=a286_0x1d54,_0x32f70e=readRawConfig(_0x46c77c);if(_0x32f70e[_0xd117bc(0xf9)]&&typeof _0x32f70e[_0xd117bc(0xf9)]===_0xd117bc(0x135)){const _0x356035=_0x32f70e['defaultApp'];if(_0x356035)return _0x32f70e[_0xd117bc(0xf9)][_0x356035]?.[_0xd117bc(0x128)]?String(_0x32f70e[_0xd117bc(0xf9)][_0x356035][_0xd117bc(0x128)])['trim']():undefined;const _0xd1366e=Object[_0xd117bc(0xfc)](_0x32f70e[_0xd117bc(0xf9)]);if(_0xd1366e[_0xd117bc(0x118)]===0x1&&_0xd1366e[0x0]?.[_0xd117bc(0x128)])return String(_0xd1366e[0x0][_0xd117bc(0x128)])[_0xd117bc(0x127)]();}const _0x172846=_0x32f70e[_0xd117bc(0x128)]||_0x32f70e[_0xd117bc(0x119)];if(typeof _0x172846!=='string'||_0x172846[_0xd117bc(0x127)]()==='')return undefined;return _0x172846['trim']();}const CONNECTION_ROUTING_KEYS=['routing',a286_0x440235(0x112),'userDomain',a286_0x440235(0xff),a286_0x440235(0xf7),a286_0x440235(0x105),a286_0x440235(0x12d),a286_0x440235(0xfb),'agentDomain',a286_0x440235(0x13d),a286_0x440235(0xfd),a286_0x440235(0x123),a286_0x440235(0x10e)];function withAppProfileRouting(_0x1e94ee,_0x42a186){const _0x126855=a286_0x440235;if(!_0x42a186||_0x42a186[_0x126855(0xfb)]===undefined)return _0x1e94ee;return{..._0x1e94ee,'kbServiceDomain':_0x42a186['kbServiceDomain']};}function pickConnectionRoutingConfig(_0x40ff88,_0xf381fb){const _0x2dd9cd={'region':_0xf381fb};for(const _0x546bf2 of CONNECTION_ROUTING_KEYS){if(_0x40ff88[_0x546bf2]!==undefined)_0x2dd9cd[_0x546bf2]=_0x40ff88[_0x546bf2];}return _0x2dd9cd;}export function getMultiAppConfigs(_0x464cdf='project',_0x5e6ce2){const _0x156702=a286_0x440235,_0x42b78a=loadRawConfigLayers(_0x5e6ce2);let _0x20dbf0,_0x4001d6;const _0x31f7eb=mergeRawConfigLayers(_0x42b78a),_0xe2d512=_0x42b78a['globalConfig'][_0x156702(0xf9)]&&typeof _0x42b78a[_0x156702(0x12e)][_0x156702(0xf9)]===_0x156702(0x135)?_0x42b78a['globalConfig'][_0x156702(0xf9)]:{},_0xfc0778=_0x42b78a[_0x156702(0x11d)]['apps']&&typeof _0x42b78a[_0x156702(0x11d)][_0x156702(0xf9)]===_0x156702(0x135)?_0x42b78a['projectConfig']['apps']:{};_0x464cdf===_0x156702(0x13e)?(_0x20dbf0={..._0xe2d512,..._0xfc0778},_0x4001d6=_0x31f7eb['defaultApp']):(_0x20dbf0=_0x42b78a['projectConfig'][_0x156702(0xf9)],_0x4001d6=_0x42b78a[_0x156702(0x11d)][_0x156702(0x10c)]);!_0x4001d6&&_0x20dbf0&&typeof _0x20dbf0===_0x156702(0x135)&&Object[_0x156702(0x125)](_0x20dbf0)[_0x156702(0x118)]===0x1&&(_0x4001d6=Object[_0x156702(0x125)](_0x20dbf0)[0x0]);if(!_0x20dbf0||typeof _0x20dbf0!==_0x156702(0x135)||Object[_0x156702(0x125)](_0x20dbf0)[_0x156702(0x118)]===0x0)return null;return Object[_0x156702(0x115)](_0x20dbf0)[_0x156702(0x102)](([_0x5ad99a,_0xf9f8bf])=>{const _0x1b85dd=_0x156702,_0xe887b2=_0x464cdf===_0x1b85dd(0x140)||Object['prototype'][_0x1b85dd(0x111)][_0x1b85dd(0x106)](_0xfc0778,_0x5ad99a),_0x5555a1=withAppProfileRouting(_0xe887b2?_0x31f7eb:_0x42b78a[_0x1b85dd(0x12e)],_0xf9f8bf),_0x641098=resolveEffectiveRegion({'appRegion':_0xf9f8bf?.[_0x1b85dd(0x11f)],'projectRegion':_0xe887b2?_0x42b78a[_0x1b85dd(0x11d)][_0x1b85dd(0x11f)]:undefined,'globalRegion':_0x42b78a['globalConfig'][_0x1b85dd(0x11f)],'mergedRegion':_0x5555a1[_0x1b85dd(0x11f)],'appName':_0x5ad99a});return{'name':_0x5ad99a,'appcode':_0xf9f8bf?.[_0x1b85dd(0x128)]||'','apiGroup':optionalString(_0xf9f8bf?.['apiGroup']),'isDefault':_0x5ad99a===_0x4001d6,'region':_0x641098[_0x1b85dd(0x11f)],'regionSource':_0x641098[_0x1b85dd(0x130)],'env':_0xf9f8bf?.[_0x1b85dd(0x113)],'apiDir':optionalString(_0xf9f8bf?.['apiDir'])||optionalString(_0x5555a1[_0x1b85dd(0x136)]),'cookie':_0xf9f8bf?.[_0x1b85dd(0x110)]||undefined,'routingConfig':pickConnectionRoutingConfig(_0x5555a1,_0x641098[_0x1b85dd(0x11f)])};})['filter'](_0x3ada3a=>_0x3ada3a[_0x156702(0x128)]);}export function getTemplateBaseUrl(_0x2b3e47){const _0xa7d6ed=a286_0x440235,_0x987a94=readRawConfig(_0x2b3e47);if(_0x987a94[_0xa7d6ed(0x134)]&&typeof _0x987a94[_0xa7d6ed(0x134)]===_0xa7d6ed(0x10a))return _0x987a94['template_base_url'][_0xa7d6ed(0x12a)](/\/$/,'');return _0xa7d6ed(0x132);}function buildConfig(_0x48378e,_0x52a7b7,_0x142e4b){const _0x2d0506=a286_0x440235,_0x93e515=resolveAppConfig({'raw':_0x48378e,'flags':_0x52a7b7,'layers':_0x142e4b,'readEnv':env}),_0x9df9=_0x93e515[_0x2d0506(0x120)]?_0x93e515['apps'][_0x93e515[_0x2d0506(0x120)]]:undefined;return{..._0x93e515,'raw':withAppProfileRouting(_0x48378e,_0x9df9)};}export function resolveApiFilePath(_0x536b8c,_0x2d213d,_0x2ac8e6){const _0x22e9b3=a286_0x440235;return resolveApiModelSource(_0x536b8c,_0x2d213d,_0x2ac8e6)[_0x22e9b3(0x101)];}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a287_0x349f48=a287_0x2ea2;(function(_0x4af485,_0x756887){const _0x1596cf=a287_0x2ea2,_0x4a78a6=_0x4af485();while(!![]){try{const _0x33fc4e=parseInt(_0x1596cf(0x193))/0x1+parseInt(_0x1596cf(0x195))/0x2+-parseInt(_0x1596cf(0x18c))/0x3+parseInt(_0x1596cf(0x18b))/0x4*(-parseInt(_0x1596cf(0x194))/0x5)+-parseInt(_0x1596cf(0x18d))/0x6*(parseInt(_0x1596cf(0x1a3))/0x7)+-parseInt(_0x1596cf(0x18e))/0x8*(parseInt(_0x1596cf(0x191))/0x9)+parseInt(_0x1596cf(0x190))/0xa;if(_0x33fc4e===_0x756887)break;else _0x4a78a6['push'](_0x4a78a6['shift']());}catch(_0x8f21a8){_0x4a78a6['push'](_0x4a78a6['shift']());}}}(a287_0x51e2,0xeadb4));import{existsSync,readFileSync,realpathSync,statSync}from'node:fs';import{dirname,extname,isAbsolute,relative,resolve}from'node:path';import{MODEL_REGISTRY_FILE_NAME,getProfileModels,readModelRegistry}from'../api/model-registry-file.js';function a287_0x51e2(){const _0x189d48=['45715230EzyEha','333YkeIHS','.mts','89477XiQFwO','107455vncHEq','677686JBGgXM','slice','flags','add','length','name','.cts','alias','map','filter','../','.js','endsWith','.cjs','1953oiptEB','api.ts','flatMap','.ts','stringify','tableName','datasetCode','exec','startsWith','defaultProfile','.tsx','index','has','set','isFile','size','280SoinER','4186467hCMkAM','7782qoyLPP','167816dbcfcE','get'];a287_0x51e2=function(){return _0x189d48;};return a287_0x51e2();}import{parseLegacyApiModels}from'../api/legacy-api-file.js';import{findProjectRootDirectory}from'../context/config-loader.js';const cache=new Map(),MAX_LOCAL_REEXPORT_DEPTH=0x8,SOURCE_FILE_EXTENSIONS=[a287_0x349f48(0x17e),'.tsx',a287_0x349f48(0x192),a287_0x349f48(0x19b),a287_0x349f48(0x1a0),'.jsx','.mjs',a287_0x349f48(0x1a2)],LOCAL_REEXPORT_RE=/\bexport\s+(?:type\s+)?(?:\{[\s\S]*?\}|\*)\s+from\s*["']([^"']+)["']/g,SOURCE_EXTENSIONS_BY_RUNTIME_EXTENSION={'.js':[a287_0x349f48(0x17e),a287_0x349f48(0x185)],'.jsx':[a287_0x349f48(0x185)],'.mjs':[a287_0x349f48(0x192)],'.cjs':['.cts']};function parseApiFile(_0x56f806){const _0xc7f736=a287_0x349f48;return parseLegacyApiModels(_0x56f806)['flatMap'](_0x4d24e3=>_0x4d24e3['alias']?[{'alias':_0x4d24e3[_0xc7f736(0x19c)],'datasetCode':_0x4d24e3[_0xc7f736(0x181)],'tableName':_0x4d24e3[_0xc7f736(0x180)],'name':_0x4d24e3[_0xc7f736(0x19a)]}]:[]);}function isWithinRoot(_0x533921,_0x17bba3){const _0x322285=a287_0x349f48,_0x5baad2=relative(_0x533921,_0x17bba3);return _0x5baad2===''||!_0x5baad2[_0x322285(0x183)]('..')&&!isAbsolute(_0x5baad2);}function resolveExistingFile(_0x2123df){const _0x259156=a287_0x349f48;if(!existsSync(_0x2123df))return undefined;try{return statSync(_0x2123df)[_0x259156(0x189)]()?realpathSync(_0x2123df):undefined;}catch{return undefined;}}function reexportCandidatePaths(_0x1d6e48){const _0x4081bd=a287_0x349f48,_0x1b0253=extname(_0x1d6e48);if(!_0x1b0253)return[...SOURCE_FILE_EXTENSIONS['map'](_0x367e7f=>''+_0x1d6e48+_0x367e7f),...SOURCE_FILE_EXTENSIONS['map'](_0xfc8202=>resolve(_0x1d6e48,_0x4081bd(0x186)+_0xfc8202))];const _0x7d3a8b=SOURCE_EXTENSIONS_BY_RUNTIME_EXTENSION[_0x1b0253];if(!_0x7d3a8b)return[_0x1d6e48];const _0x30946b=_0x1d6e48[_0x4081bd(0x196)](0x0,-_0x1b0253[_0x4081bd(0x199)]);return[..._0x7d3a8b[_0x4081bd(0x19d)](_0x422309=>''+_0x30946b+_0x422309),_0x1d6e48];}function resolveLocalReexport(_0x515487,_0x496dbb,_0x7eedbe){const _0x4280b8=a287_0x349f48;if(!_0x496dbb[_0x4280b8(0x183)]('./')&&!_0x496dbb['startsWith'](_0x4280b8(0x19f)))return undefined;const _0x229c59=resolve(dirname(_0x515487),_0x496dbb);if(!isWithinRoot(_0x7eedbe,_0x229c59))return undefined;for(const _0xe1f9be of reexportCandidatePaths(_0x229c59)){const _0x1bee3a=resolveExistingFile(_0xe1f9be);if(_0x1bee3a&&isWithinRoot(_0x7eedbe,_0x1bee3a))return _0x1bee3a;}return undefined;}function parseApiFileTree(_0x4b5c8b,_0x259326,_0x5b678f,_0x69f3b0){const _0x13808e=a287_0x349f48,_0x11dd6b=resolveExistingFile(_0x4b5c8b);if(!_0x11dd6b)return[];const _0x376055=_0x5b678f['get'](_0x11dd6b);if(_0x376055!==undefined&&_0x376055<=_0x69f3b0)return[];_0x5b678f[_0x13808e(0x188)](_0x11dd6b,_0x69f3b0);const _0x64a127=readFileSync(_0x11dd6b,'utf-8'),_0x2c338e=parseApiFile(_0x64a127);if(_0x69f3b0>=MAX_LOCAL_REEXPORT_DEPTH)return _0x2c338e;const _0x34c143=new RegExp(LOCAL_REEXPORT_RE['source'],LOCAL_REEXPORT_RE[_0x13808e(0x197)]);let _0x47b9bf;while((_0x47b9bf=_0x34c143[_0x13808e(0x182)](_0x64a127))!==null){const _0x26a2f7=resolveLocalReexport(_0x11dd6b,_0x47b9bf[0x1],_0x259326);_0x26a2f7&&_0x2c338e['push'](...parseApiFileTree(_0x26a2f7,_0x259326,_0x5b678f,_0x69f3b0+0x1));}return _0x2c338e;}function aliasProjectRoot(_0x59cbbe){const _0x24381d=findProjectRootDirectory(dirname(_0x59cbbe));try{return realpathSync(_0x24381d);}catch{return _0x24381d;}}function uniqueAliasEntries(_0xdf462d){const _0x29275a=a287_0x349f48,_0x11aeb3=new Set();return _0xdf462d[_0x29275a(0x19e)](_0x2b45ec=>{const _0xb734fb=_0x29275a,_0x164313=JSON[_0xb734fb(0x17f)](_0x2b45ec);if(_0x11aeb3[_0xb734fb(0x187)](_0x164313))return![];return _0x11aeb3[_0xb734fb(0x198)](_0x164313),!![];});}export function loadAliasMap(_0x128c60,_0x1e8213,_0x787fa8,_0x2c872c){const _0x3b1592=a287_0x349f48,_0x49e123=resolve(_0x787fa8??resolve(process['cwd'](),_0x128c60,_0x3b1592(0x1a4))),_0x55a541=_0x2c872c?_0x49e123+'#'+_0x2c872c:_0x49e123;if(cache[_0x3b1592(0x187)](_0x55a541))return cache[_0x3b1592(0x18f)](_0x55a541);if(!existsSync(_0x49e123))return cache[_0x3b1592(0x188)](_0x55a541,[]),[];try{if(_0x49e123[_0x3b1592(0x1a1)](MODEL_REGISTRY_FILE_NAME)){const _0x1382c7=readModelRegistry(_0x49e123),_0x4bd6bf=_0x2c872c??_0x1382c7?.[_0x3b1592(0x184)],_0x207530=_0x4bd6bf&&_0x1382c7?getProfileModels(_0x1382c7,_0x4bd6bf):[],_0x51d13b=uniqueAliasEntries(_0x207530[_0x3b1592(0x1a5)](_0x5d00a7=>_0x5d00a7[_0x3b1592(0x19c)]?[{'alias':_0x5d00a7[_0x3b1592(0x19c)],'datasetCode':_0x5d00a7[_0x3b1592(0x181)],'tableName':_0x5d00a7['tableName'],'name':_0x5d00a7[_0x3b1592(0x19a)]}]:[]));return cache['set'](_0x55a541,_0x51d13b),_0x51d13b;}const _0x57c0e0=uniqueAliasEntries(parseApiFileTree(_0x49e123,aliasProjectRoot(_0x49e123),new Map(),0x0));return cache[_0x3b1592(0x188)](_0x55a541,_0x57c0e0),_0x57c0e0;}catch{return cache[_0x3b1592(0x188)](_0x55a541,[]),[];}}function a287_0x2ea2(_0x4503c0,_0x179199){_0x4503c0=_0x4503c0-0x17e;const _0x51e2e7=a287_0x51e2();let _0x2ea267=_0x51e2e7[_0x4503c0];return _0x2ea267;}export function resolveAlias(_0x338ca4,_0x2ba23e,_0x12719e,_0x3c5bdf,_0x4099d2){const _0x21e02d=a287_0x349f48;if(!_0x2ba23e)return undefined;const _0x21b3af=loadAliasMap(_0x338ca4,_0x12719e,_0x3c5bdf,_0x4099d2),_0xc57e48=new Set(_0x21b3af[_0x21e02d(0x19e)](_0x359e5d=>_0x359e5d[_0x21e02d(0x19c)]===_0x2ba23e)[_0x21e02d(0x19d)](_0x4dadc7=>_0x4dadc7[_0x21e02d(0x181)]));return _0xc57e48[_0x21e02d(0x18a)]===0x1?[..._0xc57e48][0x0]:undefined;}export function listAliases(_0x34bfdb,_0x18b4ca,_0x54562c,_0x3bdbee){return loadAliasMap(_0x34bfdb,_0x18b4ca,_0x54562c,_0x3bdbee);}
|