@lovrabet/rabetbase-cli 2.5.9-beta.1 → 2.5.10-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/README.md +1 -1
- package/lib/api/api-doc.js +1 -1
- package/lib/api/api-group.js +1 -1
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.js +1 -1
- package/lib/api/generate-sdk-config-file.js +1 -1
- package/lib/api/legacy-api-file.js +1 -1
- package/lib/api/model-registry-file.js +1 -1
- package/lib/api/model-registry-scaffold.js +1 -1
- package/lib/api/model-source.js +1 -1
- package/lib/auth/auth-server-ui.js +1 -1
- package/lib/auth/auth-server.js +1 -1
- package/lib/auth/constant.js +1 -1
- package/lib/auth/get-cookie.js +1 -1
- package/lib/auth/get-session-user.js +1 -1
- package/lib/auth/is-session-valid.js +1 -1
- package/lib/auth/login-success-html.js +1 -1
- package/lib/auth/logout.js +1 -1
- package/lib/cli-flags.js +1 -1
- package/lib/cli.js +1 -1
- package/lib/commands/api/generate.js +1 -1
- package/lib/commands/api/index.js +1 -1
- package/lib/commands/api/list.js +1 -1
- package/lib/commands/api/pull.js +1 -1
- package/lib/commands/api/shared.js +1 -1
- package/lib/commands/app/detail.js +1 -1
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/members-list.js +1 -1
- package/lib/commands/app/remote-directory.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/delete.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/app-config/list.js +1 -1
- package/lib/commands/app-config/set.js +1 -1
- package/lib/commands/app-config/shared.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/bff/create.js +1 -1
- package/lib/commands/bff/delete.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/bff/list.js +1 -1
- package/lib/commands/bff/logs.js +1 -1
- package/lib/commands/bff/pull.js +1 -1
- package/lib/commands/bff/push.js +1 -1
- package/lib/commands/bff/status.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/cli-update.js +1 -1
- package/lib/commands/codegen/index.js +1 -1
- package/lib/commands/codegen/sdk.js +1 -1
- package/lib/commands/codegen/sql.js +1 -1
- package/lib/commands/common/app-registry.js +1 -1
- package/lib/commands/common/app-selector.js +1 -1
- package/lib/commands/common/async-task.js +1 -1
- package/lib/commands/common/dry-run.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/common/validate.js +1 -1
- package/lib/commands/config/delete.js +1 -1
- package/lib/commands/config/get.js +1 -1
- package/lib/commands/config/index.js +1 -1
- package/lib/commands/config/init.js +1 -1
- package/lib/commands/config/list.js +1 -1
- package/lib/commands/config/set.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/dataset/batch-design.js +1 -1
- package/lib/commands/dataset/business-group-update.js +1 -1
- package/lib/commands/dataset/business-groups.js +1 -1
- package/lib/commands/dataset/capability.js +1 -1
- package/lib/commands/dataset/cross-relation-create.js +1 -1
- package/lib/commands/dataset/cross-relation-delete.js +1 -1
- package/lib/commands/dataset/cross-relation-list.js +1 -1
- package/lib/commands/dataset/cross-relation-shared.js +1 -1
- package/lib/commands/dataset/cross-relation-update.js +1 -1
- package/lib/commands/dataset/delete.js +1 -1
- package/lib/commands/dataset/design-context.js +1 -1
- package/lib/commands/dataset/design-start.js +1 -1
- package/lib/commands/dataset/design-status.js +1 -1
- package/lib/commands/dataset/design-sync-retry.js +1 -1
- package/lib/commands/dataset/design-sync-status.js +1 -1
- package/lib/commands/dataset/design-validate.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/extend-update.js +1 -1
- package/lib/commands/dataset/field-restore.js +1 -1
- package/lib/commands/dataset/field-update.js +1 -1
- package/lib/commands/dataset/generate.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/dataset/relation-audit.js +1 -1
- package/lib/commands/dataset/relation-create.js +1 -1
- package/lib/commands/dataset/relation-delete.js +1 -1
- package/lib/commands/dataset/relation-shared.js +1 -1
- package/lib/commands/dataset/relation-update.js +1 -1
- package/lib/commands/dataset/relations.js +1 -1
- package/lib/commands/dataset/rename.js +1 -1
- package/lib/commands/dataset/restore.js +1 -1
- package/lib/commands/dataset/user-deleted-field-list.js +1 -1
- package/lib/commands/db/analysis-batching.js +1 -1
- package/lib/commands/db/analyze-batch-plan.js +1 -1
- package/lib/commands/db/analyze-cancel.js +1 -1
- package/lib/commands/db/analyze-start.js +1 -1
- package/lib/commands/db/analyze-status.js +1 -1
- package/lib/commands/db/create.js +1 -1
- package/lib/commands/db/cross-db-analysis-shared.js +1 -1
- package/lib/commands/db/cross-db-analyze-latest.js +1 -1
- package/lib/commands/db/cross-db-analyze-start.js +1 -1
- package/lib/commands/db/cross-db-analyze-status.js +1 -1
- package/lib/commands/db/delete.js +1 -1
- package/lib/commands/db/detail.js +1 -1
- package/lib/commands/db/diff-refresh-start.js +1 -1
- package/lib/commands/db/diff-refresh-status.js +1 -1
- package/lib/commands/db/diff.js +1 -1
- package/lib/commands/db/index.js +1 -1
- package/lib/commands/db/list.js +1 -1
- package/lib/commands/db/shared.js +1 -1
- package/lib/commands/db/table-diff-shared.js +1 -1
- package/lib/commands/db/tables.js +1 -1
- package/lib/commands/db/test.js +1 -1
- package/lib/commands/db/update.js +1 -1
- package/lib/commands/deployment/index.js +1 -1
- package/lib/commands/deployment/sync-all.js +1 -1
- package/lib/commands/deployment/sync-jobs.js +1 -1
- package/lib/commands/deployment/sync-status.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/flow/create.js +1 -1
- package/lib/commands/flow/detail.js +1 -1
- package/lib/commands/flow/index.js +1 -1
- package/lib/commands/flow/list.js +1 -1
- package/lib/commands/flow/page-list.js +1 -1
- package/lib/commands/flow/publish.js +1 -1
- package/lib/commands/flow/runtime-resources-shared.js +1 -1
- package/lib/commands/flow/runtime-role-list.js +1 -1
- package/lib/commands/flow/runtime-role-user-list.js +1 -1
- package/lib/commands/flow/runtime-user-search.js +1 -1
- package/lib/commands/flow/shared.js +1 -1
- package/lib/commands/flow/update.js +1 -1
- package/lib/commands/flow/validate.js +1 -1
- package/lib/commands/instant-api-policy/current.js +1 -1
- package/lib/commands/instant-api-policy/index.js +1 -1
- package/lib/commands/instant-api-policy/init.js +1 -1
- package/lib/commands/instant-api-policy/publish.js +1 -1
- package/lib/commands/instant-api-policy/pull.js +1 -1
- package/lib/commands/instant-api-policy/revision.js +1 -1
- package/lib/commands/instant-api-policy/revisions.js +1 -1
- package/lib/commands/instant-api-policy/rollback.js +1 -1
- package/lib/commands/instant-api-policy/shared.js +1 -1
- package/lib/commands/instant-api-policy/validate.js +1 -1
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/nudge.js +1 -1
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/issue/shared.js +1 -1
- package/lib/commands/kb/create.js +1 -1
- package/lib/commands/kb/delete.js +1 -1
- package/lib/commands/kb/detail.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/kb/list.js +1 -1
- package/lib/commands/kb/search.js +1 -1
- package/lib/commands/kb/shared.js +1 -1
- package/lib/commands/kb/update.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/asset-update.js +1 -1
- package/lib/commands/menu/delete.js +1 -1
- package/lib/commands/menu/external-link-create.js +1 -1
- package/lib/commands/menu/external-link-update.js +1 -1
- package/lib/commands/menu/group-create.js +1 -1
- package/lib/commands/menu/group-update.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/list.js +1 -1
- package/lib/commands/menu/move.js +1 -1
- package/lib/commands/menu/regroup-start.js +1 -1
- package/lib/commands/menu/rename.js +1 -1
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/delete-plan.js +1 -1
- package/lib/commands/menu/shared/facts.js +1 -1
- package/lib/commands/menu/shared/index.js +1 -1
- package/lib/commands/menu/shared/inquirer.js +1 -1
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.js +1 -1
- package/lib/commands/menu/shared/mutations.js +1 -1
- package/lib/commands/menu/shared/path.js +1 -1
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/subapp-assets.js +1 -1
- package/lib/commands/menu/shared/sync-core.js +1 -1
- package/lib/commands/menu/shared/update-core.js +1 -1
- package/lib/commands/menu/shared/valid-url.js +1 -1
- package/lib/commands/menu/subapp-assets-status.js +1 -1
- package/lib/commands/menu/subapp-assets-update.js +1 -1
- package/lib/commands/menu/sync.js +1 -1
- package/lib/commands/menu/visibility-update.js +1 -1
- package/lib/commands/notification/config-create.js +1 -1
- package/lib/commands/notification/config-delete.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/config-update.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/notification/shared.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/page/create.js +1 -1
- package/lib/commands/page/custom/detail.js +1 -1
- package/lib/commands/page/custom/list.js +1 -1
- package/lib/commands/page/custom/publish.js +1 -1
- package/lib/commands/page/custom/shared.js +1 -1
- package/lib/commands/page/custom/syntax.js +1 -1
- package/lib/commands/page/custom/update.js +1 -1
- package/lib/commands/page/data-list-status.js +1 -1
- package/lib/commands/page/generate-start.js +1 -1
- package/lib/commands/page/generate-status.js +1 -1
- package/lib/commands/page/index.js +1 -1
- package/lib/commands/page/pull.js +1 -1
- package/lib/commands/page/push.js +1 -1
- package/lib/commands/page/relation-audit.js +1 -1
- package/lib/commands/page/restore.js +1 -1
- package/lib/commands/page/shared.js +1 -1
- package/lib/commands/page/sync.js +1 -1
- package/lib/commands/project/api-architecture-upgrade.js +1 -1
- package/lib/commands/project/create/enhanced-guided-create.js +1 -1
- package/lib/commands/project/create/format-elapsed.js +1 -1
- package/lib/commands/project/create/main.js +1 -1
- package/lib/commands/project/create/materialize-project-template.js +1 -1
- package/lib/commands/project/create/project-name.js +1 -1
- package/lib/commands/project/create/project-template-archive.js +1 -1
- package/lib/commands/project/create/project-template-path.js +1 -1
- package/lib/commands/project/create/use-copy-project-template.js +1 -1
- package/lib/commands/project/create/use-format-code.js +1 -1
- package/lib/commands/project/create/use-install-dependencies.js +1 -1
- package/lib/commands/project/domain-routing-sync.js +1 -1
- package/lib/commands/project/index.js +1 -1
- package/lib/commands/project/upgrade.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/role/user-resolve.js +1 -1
- package/lib/commands/rule/get.js +1 -1
- package/lib/commands/rule/index.js +1 -1
- package/lib/commands/rule/list.js +1 -1
- package/lib/commands/rule/set.js +1 -1
- package/lib/commands/rule/shared.js +1 -1
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/sql/create.js +1 -1
- package/lib/commands/sql/delete.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/sql/list.js +1 -1
- package/lib/commands/sql/pull.js +1 -1
- package/lib/commands/sql/push.js +1 -1
- package/lib/commands/sql/shared.js +1 -1
- package/lib/commands/sql/status.js +1 -1
- package/lib/commands/sql/validate.js +1 -1
- package/lib/commands/task/index.js +1 -1
- package/lib/commands/task/status.js +1 -1
- package/lib/commands/tenant/index.js +1 -1
- package/lib/commands/tenant/members-list.js +1 -1
- package/lib/commands/tenant/shared.js +1 -1
- package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
- package/lib/commands/user-account/feishu-bind.js +1 -1
- package/lib/commands/user-account/index.js +1 -1
- package/lib/commands/workspace/add.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/commands/workspace/remove.js +1 -1
- package/lib/config/domain-config.js +1 -1
- package/lib/config/project-domain-routing.js +1 -1
- package/lib/config/region-config.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/cdn.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/paths.js +1 -1
- package/lib/constant/region.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/routing-profile.js +1 -1
- package/lib/context/app-resolver.js +1 -1
- package/lib/context/auth-resolver.js +1 -1
- package/lib/context/config-loader.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/bff/config.js +1 -1
- package/lib/core/bff/file-system.js +1 -1
- package/lib/core/bff/hash.js +1 -1
- package/lib/core/bff/hook-directory.js +1 -1
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/cross-db-analysis.js +1 -1
- package/lib/core/cross-db-relation.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/flow-config.js +1 -1
- package/lib/core/instant-api-policy/config.js +1 -1
- package/lib/core/kb-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/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 +2 -2
- package/skills/rabetbase/SKILL.md +2 -2
- package/skills/rabetbase-dataset-generation/SKILL.md +2 -2
- package/skills/rabetbase-page-generation/SKILL.md +2 -2
- package/skills/rabetbase.manifest.json +3 -3
package/lib/constant/paths.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a279_0x5f10d3=a279_0x4ac0;(function(_0x464890,_0x59e5a7){const _0x11b8e6=a279_0x4ac0,_0x13c1ee=_0x464890();while(!![]){try{const _0x568f3d=parseInt(_0x11b8e6(0x1d9))/0x1+parseInt(_0x11b8e6(0x1d7))/0x2*(-parseInt(_0x11b8e6(0x1da))/0x3)+-parseInt(_0x11b8e6(0x1e0))/0x4*(-parseInt(_0x11b8e6(0x1de))/0x5)+-parseInt(_0x11b8e6(0x1dc))/0x6*(-parseInt(_0x11b8e6(0x1d6))/0x7)+-parseInt(_0x11b8e6(0x1dd))/0x8+-parseInt(_0x11b8e6(0x1db))/0x9+parseInt(_0x11b8e6(0x1d8))/0xa;if(_0x568f3d===_0x59e5a7)break;else _0x13c1ee['push'](_0x13c1ee['shift']());}catch(_0x47c561){_0x13c1ee['push'](_0x13c1ee['shift']());}}}(a279_0x2758,0xdd227));function a279_0x4ac0(_0x3d0c43,_0x2fd821){_0x3d0c43=_0x3d0c43-0x1d6;const _0x275801=a279_0x2758();let _0x4ac0d3=_0x275801[_0x3d0c43];return _0x4ac0d3;}export const DEFAULT_API_DIR=a279_0x5f10d3(0x1df);function a279_0x2758(){const _0x1a372b=['1763799DqdbLv','5282892nIGEkY','30102DXNZJL','534432VUEkvH','5vFCvTN','./src/api','3584440nvZPPC','1099HKuEis','4NklOiQ','3861390eqhBdq','665507xfYOcY'];a279_0x2758=function(){return _0x1a372b;};return a279_0x2758();}
|
package/lib/constant/region.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1429bf,_0xbd241){const _0x3343ef=a280_0x3b46,_0x3d5e0b=_0x1429bf();while(!![]){try{const _0x32e68c=parseInt(_0x3343ef(0x13d))/0x1*(parseInt(_0x3343ef(0x139))/0x2)+-parseInt(_0x3343ef(0x13f))/0x3+parseInt(_0x3343ef(0x142))/0x4+parseInt(_0x3343ef(0x143))/0x5+-parseInt(_0x3343ef(0x13e))/0x6*(parseInt(_0x3343ef(0x13c))/0x7)+-parseInt(_0x3343ef(0x141))/0x8*(-parseInt(_0x3343ef(0x13a))/0x9)+-parseInt(_0x3343ef(0x144))/0xa;if(_0x32e68c===_0xbd241)break;else _0x3d5e0b['push'](_0x3d5e0b['shift']());}catch(_0x3966d1){_0x3d5e0b['push'](_0x3d5e0b['shift']());}}}(a280_0x45ac,0x9588e));import{DEFAULT_REGION,ENABLED_REGION_VALUES,REGION_ALIASES,REGION_VALUES}from'../generated/official-routing.js';export const LOVRABET_REGION_VALUES=REGION_VALUES;function a280_0x3b46(_0x23230a,_0x56b632){_0x23230a=_0x23230a-0x139;const _0x45acb4=a280_0x45ac();let _0x3b4699=_0x45acb4[_0x23230a];return _0x3b4699;}export const ENABLED_LOVRABET_REGION_VALUES=ENABLED_REGION_VALUES;export const DEFAULT_LOVRABET_REGION=DEFAULT_REGION;export function isLovrabetRegion(_0x34d755){const _0xe88dca=a280_0x3b46;return typeof _0x34d755===_0xe88dca(0x13b)&&LOVRABET_REGION_VALUES[_0xe88dca(0x140)](_0x34d755);}function a280_0x45ac(){const _0x1c450b=['515189goxSeG','6558WSZGAm','471870ezYfCR','includes','8CVFaZS','896972fYzxBR','2061450bymDkY','11167410ROFKVG','4giRVxR','2852019ANFpha','string','623JNJGrv'];a280_0x45ac=function(){return _0x1c450b;};return a280_0x45ac();}export function isEnabledLovrabetRegion(_0x4d5a33){const _0x35a59f=a280_0x3b46;return typeof _0x4d5a33===_0x35a59f(0x13b)&&ENABLED_LOVRABET_REGION_VALUES[_0x35a59f(0x140)](_0x4d5a33);}export function normalizeLovrabetRegion(_0x3ec491){const _0x1c11fd=a280_0x3b46;if(typeof _0x3ec491!==_0x1c11fd(0x13b))return undefined;const _0x46bbbe=REGION_ALIASES[_0x3ec491]??_0x3ec491;return isLovrabetRegion(_0x46bbbe)?_0x46bbbe:undefined;}export function isInvalidLovrabetRegion(_0x266037){return _0x266037!==undefined&&_0x266037!==null&&_0x266037!==''&&normalizeLovrabetRegion(_0x266037)===undefined;}
|
package/lib/constant/risk.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a281_0x1b6d80=a281_0x3eaa;function a281_0x3eaa(_0x4b9ffd,_0x4bbc21){_0x4b9ffd=_0x4b9ffd-0xdb;const _0x417939=a281_0x4179();let _0x3eaaf9=_0x417939[_0x4b9ffd];return _0x3eaaf9;}(function(_0x2e0698,_0x2a04db){const _0x21105e=a281_0x3eaa,_0x1f08a4=_0x2e0698();while(!![]){try{const _0x357b7b=-parseInt(_0x21105e(0xe0))/0x1*(parseInt(_0x21105e(0xe1))/0x2)+-parseInt(_0x21105e(0xde))/0x3*(parseInt(_0x21105e(0xe6))/0x4)+-parseInt(_0x21105e(0xe5))/0x5+-parseInt(_0x21105e(0xdd))/0x6*(-parseInt(_0x21105e(0xe2))/0x7)+parseInt(_0x21105e(0xe3))/0x8+parseInt(_0x21105e(0xdb))/0x9+parseInt(_0x21105e(0xdf))/0xa;if(_0x357b7b===_0x2a04db)break;else _0x1f08a4['push'](_0x1f08a4['shift']());}catch(_0x11c098){_0x1f08a4['push'](_0x1f08a4['shift']());}}}(a281_0x4179,0x4c7e4));export const RISK_LEVEL_VALUES=[a281_0x1b6d80(0xe4),'write',a281_0x1b6d80(0xdc)];function a281_0x4179(){const _0x4bb3c7=['read','160450ujmUZx','2116588NRPUhz','245025IriddP','high-risk-write','317790aTSVUS','3WZxpge','11378890puNvJQ','527400YpPVoe','2NOJhPZ','14XVbzep','1047272qSmHea'];a281_0x4179=function(){return _0x4bb3c7;};return a281_0x4179();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3b964e,_0xda93dc){const _0x424a37=a282_0x496c,_0x17286e=_0x3b964e();while(!![]){try{const _0x5eaa24=-parseInt(_0x424a37(0x1d7))/0x1+-parseInt(_0x424a37(0x1d3))/0x2+parseInt(_0x424a37(0x1d5))/0x3+parseInt(_0x424a37(0x1d2))/0x4*(-parseInt(_0x424a37(0x1d8))/0x5)+parseInt(_0x424a37(0x1d4))/0x6+parseInt(_0x424a37(0x1ce))/0x7+-parseInt(_0x424a37(0x1d6))/0x8;if(_0x5eaa24===_0xda93dc)break;else _0x17286e['push'](_0x17286e['shift']());}catch(_0x2cd53d){_0x17286e['push'](_0x17286e['shift']());}}}(a282_0x3ee5,0x29b57));function a282_0x3ee5(){const _0x50fb06=['cdn','1849897DIhpmY','lovrabet','Official\x20routing\x20for\x20region\x20\x22','libraries','69724KXXbZQ','69756YtyMSg','1151154UuoUQA','755487QsAFiI','750976BQABtS','112043mSjuOx','85ZmPSwE','\x22\x20is\x20not\x20ready:\x20Lovrabet\x20CDN\x20Domain\x20is\x20not\x20configured.'];a282_0x3ee5=function(){return _0x50fb06;};return a282_0x3ee5();}import{OFFICIAL_ROUTING_PROFILES as a282_0x2059c3,ROUTING_CATALOG_DIGEST}from'../generated/official-routing.js';export const OFFICIAL_ROUTING_PROFILES=a282_0x2059c3;export{ROUTING_CATALOG_DIGEST};function a282_0x496c(_0x111a42,_0x152b2){_0x111a42=_0x111a42-0x1cd;const _0x3ee5a9=a282_0x3ee5();let _0x496c26=_0x3ee5a9[_0x111a42];return _0x496c26;}export function getOfficialRoutingProfile(_0x306e3a){return OFFICIAL_ROUTING_PROFILES[_0x306e3a];}export function getOfficialRoutingCdn(_0x358210){const _0x6d42e8=a282_0x496c,_0xa929dd=getOfficialRoutingProfile(_0x358210)[_0x6d42e8(0x1cd)];if(!_0xa929dd[_0x6d42e8(0x1cf)])throw new Error(_0x6d42e8(0x1d0)+_0x358210+_0x6d42e8(0x1d9));return{'libraries':_0xa929dd[_0x6d42e8(0x1d1)],'lovrabet':_0xa929dd[_0x6d42e8(0x1cf)]};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x54bd5a,_0x18fa54){const _0x335d40=a283_0x2b07,_0x305c5a=_0x54bd5a();while(!![]){try{const _0x2146d2=-parseInt(_0x335d40(0x10f))/0x1*(-parseInt(_0x335d40(0x11c))/0x2)+-parseInt(_0x335d40(0xf2))/0x3*(parseInt(_0x335d40(0xfa))/0x4)+parseInt(_0x335d40(0xf7))/0x5+parseInt(_0x335d40(0x113))/0x6*(-parseInt(_0x335d40(0x112))/0x7)+-parseInt(_0x335d40(0xfc))/0x8+parseInt(_0x335d40(0xef))/0x9*(parseInt(_0x335d40(0x100))/0xa)+parseInt(_0x335d40(0x11b))/0xb;if(_0x2146d2===_0x18fa54)break;else _0x305c5a['push'](_0x305c5a['shift']());}catch(_0x4cbe01){_0x305c5a['push'](_0x305c5a['shift']());}}}(a283_0x4dd5,0xd1dfb));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';function a283_0x2b07(_0x1d8e7b,_0x22b9f1){_0x1d8e7b=_0x1d8e7b-0xef;const _0x4dd507=a283_0x4dd5();let _0x2b0759=_0x4dd507[_0x1d8e7b];return _0x2b0759;}import{selectConfiguredRegion}from'../config/region-config.js';function stringConfigValue(_0x5e80f9){const _0xe46b5=a283_0x2b07;return typeof _0x5e80f9===_0xe46b5(0xf8)&&_0x5e80f9[_0xe46b5(0xfe)]()?_0x5e80f9[_0xe46b5(0xfe)]():undefined;}function appProfiles(_0x1cb5c0){const _0x4e5992=a283_0x2b07;return _0x1cb5c0[_0x4e5992(0x102)]&&typeof _0x1cb5c0['apps']==='object'?_0x1cb5c0[_0x4e5992(0x102)]:{};}function a283_0x4dd5(){const _0x44d548=['RISK_LEVEL','source','cookie','pageSize','high-risk-write','3965434qoGZdH','51218EFrDWU','970542bnYevF','length','daily','19119wvWRbN','format','true','filter','ACCESS_KEY','3111510jZunuy','string','app','556XHEjpb','ENV','1587768keRTns','entries','trim','projectConfig','30BSNmTj','production','apps','apiDir','keys','PAGE_SIZE','locale','appcode','FORMAT','value','riskLevel','region','projectPath','globalConfig','defaultApp','61vJtemV','read','VERBOSE','719054gFpSSb','54Glkxof','COOKIE','env'];a283_0x4dd5=function(){return _0x44d548;};return a283_0x4dd5();}function resolveDefaultAppName(_0x5096c2){const _0x50f80c=a283_0x2b07,_0x26f3d8=stringConfigValue(_0x5096c2[_0x50f80c(0x10e)]);if(_0x26f3d8)return _0x26f3d8;const _0x43401a=Object[_0x50f80c(0x104)](appProfiles(_0x5096c2));return _0x43401a['length']===0x1?_0x43401a[0x0]:undefined;}function resolveTopLevelAppCode(_0x5f10f1){const _0x2befc1=a283_0x2b07;return stringConfigValue(_0x5f10f1[_0x2befc1(0x107)])||stringConfigValue(_0x5f10f1[_0x2befc1(0xf9)]);}function normalizeRiskCeiling(_0x219c01){const _0x7b3f60=a283_0x2b07;if(_0x219c01===undefined||_0x219c01===null)return undefined;if(_0x219c01===_0x7b3f60(0x110)||_0x219c01==='write'||_0x219c01===_0x7b3f60(0x11a))return _0x219c01;return _0x7b3f60(0x110);}function resolveRiskCeiling(..._0x1e0625){const _0x427f6b=a283_0x2b07;let _0x5eb7d0;for(const _0x249f8b of _0x1e0625){const _0x100038=normalizeRiskCeiling(_0x249f8b);_0x100038&&(!_0x5eb7d0||riskLevelOrder(_0x100038)<riskLevelOrder(_0x5eb7d0))&&(_0x5eb7d0=_0x100038);}return _0x5eb7d0??DEFAULT_CONFIG_VALUES[_0x427f6b(0x10a)];}export function resolveAppConfig({raw:_0x42b6c7,flags:_0x1b1a9a,layers:_0x11306d,readEnv:_0x2b43d1}){const _0x316d87=a283_0x2b07,_0x4206f1=_0x11306d?.[_0x316d87(0xff)]??{},_0x2e1970=_0x11306d?.[_0x316d87(0x10d)]??{},_0xd3a2ab=!!_0x11306d?.[_0x316d87(0x10c)]||Object[_0x316d87(0x104)](_0x4206f1)['length']>0x0,_0x212961=!_0xd3a2ab,_0x4c7599=_0xd3a2ab?resolveDefaultAppName(_0x4206f1):undefined,_0x33dad2=_0x212961?resolveDefaultAppName(_0x2e1970):undefined,_0x27242e=stringConfigValue(_0x1b1a9a[_0x316d87(0xf9)]),_0x10eea2=_0x2b43d1('APP'),_0xaa0ebb={};if(_0x42b6c7[_0x316d87(0x102)]&&typeof _0x42b6c7[_0x316d87(0x102)]==='object')for(const [_0x218908,_0x12141d]of Object[_0x316d87(0xfd)](_0x42b6c7[_0x316d87(0x102)])){_0x12141d&&typeof _0x12141d==='object'&&_0x12141d[_0x316d87(0x107)]&&(_0xaa0ebb[_0x218908]=_0x12141d);}const _0x1e2e58=_0x4c7599||_0x33dad2||resolveDefaultAppName(_0x42b6c7),_0x13e3ad=Object['keys'](_0xaa0ebb)[_0x316d87(0xf0)]>0x0,_0x58fe16=_0x27242e||_0x4c7599||_0x10eea2||_0x33dad2||_0x1e2e58||undefined,_0x5d5fa9=stringConfigValue(_0x1b1a9a[_0x316d87(0x107)]),_0x4764ea=_0x5d5fa9?Object['entries'](_0xaa0ebb)[_0x316d87(0xf5)](([,_0x505a36])=>_0x505a36?.['appcode']===_0x5d5fa9):[],_0x4f6536=_0x27242e&&_0xaa0ebb[_0x27242e]?.[_0x316d87(0x107)]===_0x5d5fa9?[_0x27242e,_0xaa0ebb[_0x27242e]]:undefined,_0x4de4bf=_0x4f6536??(_0x4764ea[_0x316d87(0xf0)]===0x1?_0x4764ea[0x0]:undefined),_0x181e0c=_0x4de4bf?.[0x0],_0x38f4da=_0x4de4bf?.[0x1],_0x5e5ae7=_0x5d5fa9?_0x181e0c:_0x58fe16;let _0x125811=_0x5e5ae7&&_0xaa0ebb[_0x5e5ae7]?_0xaa0ebb[_0x5e5ae7]:undefined;_0x5d5fa9&&_0x38f4da&&(_0x125811=_0x38f4da);const _0x1d5256=_0x5d5fa9?_0x38f4da??_0x125811:_0x125811,_0x3608af=!_0x27242e&&!_0x4c7599&&_0x10eea2&&_0x5e5ae7===_0x10eea2,_0x2b7683=_0x27242e||(_0x3608af?_0x10eea2:undefined)||(_0x5d5fa9?_0x181e0c:undefined),_0x330e6d=_0x1d5256?.[_0x316d87(0x107)],_0x4d43d9=_0xd3a2ab?resolveTopLevelAppCode(_0x4206f1):undefined,_0x40e5e9=_0x212961?resolveTopLevelAppCode(_0x2e1970):undefined,_0x419659=_0x27242e||_0x4c7599?_0x330e6d:undefined,_0x2e2ed1=!_0x27242e&&!_0x4c7599?_0x330e6d:undefined,_0x1b6bd5=_0x5d5fa9||_0x419659||_0x4d43d9||_0x2e2ed1||_0x40e5e9||undefined,_0x436962=_0xd3a2ab?stringConfigValue(_0x4206f1[_0x316d87(0x115)]):undefined,_0x201e89=_0x212961?stringConfigValue(_0x2e1970[_0x316d87(0x115)]):undefined,_0xc3a652=_0x1b1a9a[_0x316d87(0x115)]||_0x1d5256?.[_0x316d87(0x115)]||_0x436962||_0x2b43d1(_0x316d87(0xfb))||_0x201e89||_0x42b6c7[_0x316d87(0x115)]||DEFAULT_CONFIG_VALUES[_0x316d87(0x115)],_0x28b85b=_0x1d5256?.[_0x316d87(0x106)]||_0x42b6c7['locale']||DEFAULT_CONFIG_VALUES['locale'],_0x438875=_0x2b43d1(_0x316d87(0x114))||_0x1d5256?.[_0x316d87(0x118)]||_0x42b6c7[_0x316d87(0x118)]||undefined,_0x223ee1=_0x2b43d1(_0x316d87(0xf6))||_0x1d5256?.['accessKey']||_0x42b6c7['accessKey']||undefined,_0xfd758b=_0x1b1a9a[_0x316d87(0xf3)]||_0x2b43d1(_0x316d87(0x108))||_0x1d5256?.[_0x316d87(0xf3)]||_0x42b6c7[_0x316d87(0xf3)],_0x43c80e=normalizeLegacyOutputFormat(_0xfd758b),_0x37eece=_0x2b43d1(_0x316d87(0x105))||_0x1d5256?.[_0x316d87(0x119)]||_0x42b6c7[_0x316d87(0x119)],_0x52e0f0=_0x37eece?Number(_0x37eece)||undefined:undefined,_0xb84f78=_0x11306d?[_0x11306d['globalConfig'][_0x316d87(0x10a)],_0x11306d[_0x316d87(0xff)][_0x316d87(0x10a)]]:[_0x42b6c7[_0x316d87(0x10a)]],_0x1106e1=resolveRiskCeiling(..._0xb84f78,_0x1d5256?.['riskLevel']),_0x576ef7=resolveRiskCeiling(_0x1106e1,_0x2b43d1(_0x316d87(0x116))),_0x334f8f=_0x2b43d1(_0x316d87(0x111)),_0x1ec6d6=_0x334f8f==='1'||_0x334f8f===_0x316d87(0xf4),_0x4496be=_0x1d5256?.[_0x316d87(0x103)]||_0x42b6c7[_0x316d87(0x103)]||DEFAULT_CONFIG_VALUES[_0x316d87(0x103)],_0x20d63e=selectConfiguredRegion({'appRegion':_0x1d5256?.[_0x316d87(0x10b)],'projectRegion':_0xd3a2ab?_0x4206f1[_0x316d87(0x10b)]:undefined,'globalRegion':_0xd3a2ab||_0x212961?_0x2e1970[_0x316d87(0x10b)]:undefined,'mergedRegion':_0x42b6c7[_0x316d87(0x10b)]}),_0x2d1b49=normalizeLovrabetRegion(_0x20d63e[_0x316d87(0x109)])??DEFAULT_LOVRABET_REGION,_0x5b5e6d=isDaily(normalizeEnv(String(_0xc3a652)))?_0x316d87(0xf1):_0x316d87(0x101);return{'appCode':typeof _0x1b6bd5===_0x316d87(0xf8)&&_0x1b6bd5['trim']()?_0x1b6bd5[_0x316d87(0xfe)]():undefined,'region':_0x2d1b49,'regionConfiguredValue':_0x20d63e['value'],'regionSource':_0x20d63e[_0x316d87(0x117)],'env':_0x5b5e6d,'locale':_0x28b85b,'cookie':_0x438875,'accessKey':_0x223ee1,'format':_0x43c80e,'pageSize':_0x52e0f0,'riskLevel':_0x576ef7,'verbose':_0x1ec6d6,'apiDir':_0x4496be,'apps':_0xaa0ebb,'defaultApp':_0x1e2e58,'currentApp':_0x13e3ad?_0x5e5ae7:undefined,'explicitAppName':_0x2b7683};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x73293d,_0x3a6cc8){const _0x27313a=a284_0x2eb6,_0xb0e786=_0x73293d();while(!![]){try{const _0x494064=parseInt(_0x27313a(0x9f))/0x1*(-parseInt(_0x27313a(0x9b))/0x2)+parseInt(_0x27313a(0x9e))/0x3+parseInt(_0x27313a(0xa0))/0x4*(parseInt(_0x27313a(0x9a))/0x5)+parseInt(_0x27313a(0x9d))/0x6+parseInt(_0x27313a(0x9c))/0x7+parseInt(_0x27313a(0xa3))/0x8+-parseInt(_0x27313a(0xa2))/0x9;if(_0x494064===_0x3a6cc8)break;else _0xb0e786['push'](_0xb0e786['shift']());}catch(_0x264280){_0xb0e786['push'](_0xb0e786['shift']());}}}(a284_0x32c7,0x5d4f2));function a284_0x2eb6(_0x566c48,_0x487e99){_0x566c48=_0x566c48-0x9a;const _0x32c7db=a284_0x32c7();let _0x2eb634=_0x32c7db[_0x566c48];return _0x2eb634;}function a284_0x32c7(){const _0xd5208b=['16944507POuiAL','4110144nHTbDf','31820bfECoM','14eZkWAY','5159679edxgdX','2047392FBJlFn','2109594Nfqrfl','25250oWqlDe','92FuZCeE','../auth/get-cookie.js'];a284_0x32c7=function(){return _0xd5208b;};return a284_0x32c7();}import{getIsSessionValid}from'../auth/is-session-valid.js';import{CliErrors}from'../errors.js';export async function buildAuth(_0x5f1d46){const _0x439014=a284_0x2eb6,{getCookie:_0xa6748e}=await import(_0x439014(0xa1)),_0x374d85=_0x5f1d46['cookie']||_0xa6748e(),_0x3646c2=_0x374d85?await getIsSessionValid():![];return{'cookie':_0x374d85,'isLoggedIn':_0x3646c2,async 'getOrLogin'(){if(_0x374d85&&_0x3646c2)return _0x374d85;throw CliErrors['authRequired']();}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a285_0x1e5545=a285_0x3f56;(function(_0x4ce887,_0x527a80){const _0x5195dd=a285_0x3f56,_0x264ac9=_0x4ce887();while(!![]){try{const _0x201cd0=parseInt(_0x5195dd(0x1d2))/0x1+parseInt(_0x5195dd(0x1f3))/0x2+-parseInt(_0x5195dd(0x1d1))/0x3+parseInt(_0x5195dd(0x1da))/0x4*(parseInt(_0x5195dd(0x1eb))/0x5)+-parseInt(_0x5195dd(0x1de))/0x6+parseInt(_0x5195dd(0x1db))/0x7+parseInt(_0x5195dd(0x1c4))/0x8;if(_0x201cd0===_0x527a80)break;else _0x264ac9['push'](_0x264ac9['shift']());}catch(_0x113380){_0x264ac9['push'](_0x264ac9['shift']());}}}(a285_0x5ee8,0x5bb0f));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_0x1e5545(0x1e2);export const CONFIG_NAMES=[NEW_CONFIG_NAME];const normalizedWriteCache=new Map();export function resolveConfigPath(_0x518389){for(const _0x45d168 of CONFIG_NAMES){const _0x450444=resolve(_0x518389,_0x45d168);if(existsSync(_0x450444))return _0x450444;}return undefined;}export function findProjectRootDirectory(_0x447c6f=process[a285_0x1e5545(0x1d3)]()){let _0x1696fa=resolve(_0x447c6f);const {root:_0x31f602}=parse(_0x1696fa),_0x189c3a=homedir();while(!![]){if(resolveConfigPath(_0x1696fa)){if(_0x1696fa===_0x189c3a)break;return _0x1696fa;}if(_0x1696fa===_0x31f602||_0x1696fa===_0x189c3a)break;const _0x2bf59f=dirname(_0x1696fa);if(_0x2bf59f===_0x1696fa)break;_0x1696fa=_0x2bf59f;}return resolve(_0x447c6f);}export function getProjectConfigPath(){const _0x3972a8=a285_0x1e5545;return resolveConfigPath(process[_0x3972a8(0x1d3)]());}function a285_0x3f56(_0x3a6489,_0x17d9c2){_0x3a6489=_0x3a6489-0x1bf;const _0x5ee8cc=a285_0x5ee8();let _0x3f5688=_0x5ee8cc[_0x3a6489];return _0x3f5688;}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function isInProject(){return!!getProjectConfigPath();}export function inspectCliConfigJsonFile(_0x4985df){const _0x26fe8b=a285_0x1e5545;if(!existsSync(_0x4985df))return{'status':_0x26fe8b(0x1f1)};try{const _0x52c32c=readFileSync(_0x4985df,{'encoding':_0x26fe8b(0x1e0)});if(!_0x52c32c?.[_0x26fe8b(0x1dc)]())return{'status':_0x26fe8b(0x1f2)};const _0x473d64=JSON[_0x26fe8b(0x1f4)](_0x52c32c);return{'status':'ok','data':_0x473d64};}catch(_0x139749){return{'status':_0x26fe8b(0x1d7),'message':_0x139749 instanceof Error?_0x139749[_0x26fe8b(0x1e7)]:String(_0x139749)};}}function parseCliConfigJsonFile(_0x7b8f49,_0x3c8c55,_0x435840){const _0x4253be=a285_0x1e5545,_0x3161f0=inspectCliConfigJsonFile(_0x7b8f49);if(_0x3161f0['status']===_0x4253be(0x1f1)||_0x3161f0[_0x4253be(0x1ee)]===_0x4253be(0x1f2))return{};if(_0x3161f0['status']==='ok')return _0x3161f0[_0x4253be(0x1e4)];return _0x3c8c55==='warn'&&_0x435840&&console['error'](CLI_BIN_NAME+':\x20'+_0x435840+'\x20config\x20file\x20ignored\x20(invalid\x20JSON\x20or\x20unreadable):\x20'+_0x7b8f49+_0x4253be(0x1cc)+_0x3161f0['message']),{};}function normalizeLegacyConfigShape(_0x197ff3){const _0x18cf05=a285_0x1e5545;if(!_0x197ff3||typeof _0x197ff3!==_0x18cf05(0x1d6))return{'config':{},'migrated':![]};const _0x1f89b2={..._0x197ff3},_0x468481=_0x1f89b2[_0x18cf05(0x1ca)]&&typeof _0x1f89b2['apps']==='object'?{..._0x1f89b2['apps']}:{},_0x549a8a=Object[_0x18cf05(0x1c9)](_0x468481)[_0x18cf05(0x1ce)],_0x25dcda=_0x1f89b2[_0x18cf05(0x1ec)]||_0x1f89b2['app'];let _0x26662f=![];if(_0x25dcda&&_0x549a8a===0x0){const _0x335487=typeof _0x1f89b2['defaultApp']===_0x18cf05(0x1c6)&&_0x1f89b2[_0x18cf05(0x1c2)][_0x18cf05(0x1dc)]()?_0x1f89b2[_0x18cf05(0x1c2)]:String(_0x25dcda)[_0x18cf05(0x1dc)]();_0x468481[_0x335487]={'appcode':String(_0x25dcda)[_0x18cf05(0x1dc)](),..._0x1f89b2['env']!=null?{'env':_0x1f89b2[_0x18cf05(0x1d8)]}:{},..._0x1f89b2[_0x18cf05(0x1e3)]!=null?{'apiDir':_0x1f89b2[_0x18cf05(0x1e3)]}:{},..._0x1f89b2[_0x18cf05(0x1c5)]!=null?{'cookie':_0x1f89b2['cookie']}:{},..._0x1f89b2[_0x18cf05(0x1f0)]!=null?{'accessKey':_0x1f89b2[_0x18cf05(0x1f0)]}:{},..._0x1f89b2[_0x18cf05(0x1e8)]!=null?{'format':_0x1f89b2[_0x18cf05(0x1e8)]}:{},..._0x1f89b2[_0x18cf05(0x1d4)]!=null?{'pageSize':_0x1f89b2[_0x18cf05(0x1d4)]}:{},..._0x1f89b2[_0x18cf05(0x1c7)]!=null?{'riskLevel':_0x1f89b2['riskLevel']}:{},..._0x1f89b2[_0x18cf05(0x1cd)]!=null?{'locale':_0x1f89b2[_0x18cf05(0x1cd)]}:{}},_0x1f89b2[_0x18cf05(0x1ca)]=_0x468481,delete _0x1f89b2[_0x18cf05(0x1c2)],_0x26662f=!![];}return(_0x18cf05(0x1ec)in _0x1f89b2||_0x18cf05(0x1e5)in _0x1f89b2)&&(delete _0x1f89b2['appcode'],delete _0x1f89b2['app'],_0x26662f=!![]),{'config':_0x1f89b2,'migrated':_0x26662f};}function writeNormalizedConfigIfNeeded(_0x10445d,_0x561646){const _0x517b63=a285_0x1e5545,_0x51dde4=JSON[_0x517b63(0x1ed)](normalizeConfigForWrite(_0x561646),null,0x2)+'\x0a';if(normalizedWriteCache[_0x517b63(0x1df)](_0x10445d)===_0x51dde4)return;writeConfigFile(_0x10445d,_0x561646),normalizedWriteCache[_0x517b63(0x1ef)](_0x10445d,_0x51dde4);}function parseAndNormalizeConfig(_0x329f6a,_0x30465b,_0x43f2c8){const _0x19de5d=a285_0x1e5545,_0x5fe1a5=parseCliConfigJsonFile(_0x329f6a,_0x30465b,_0x43f2c8),_0x46ad4a=normalizeLegacyConfigShape(_0x5fe1a5);if(_0x46ad4a[_0x19de5d(0x1c3)])try{writeNormalizedConfigIfNeeded(_0x329f6a,_0x46ad4a[_0x19de5d(0x1dd)]);}catch{}return _0x46ad4a[_0x19de5d(0x1dd)];}export function loadRawConfigLayers(_0x548ef3){const _0x25f8db=a285_0x1e5545;let _0xc52092={},_0x3dfece={};const _0x409214=resolveConfigPath(homedir());_0x409214&&(_0xc52092=parseAndNormalizeConfig(_0x409214,_0x25f8db(0x1cb),'Global'));const _0x20056e=_0x548ef3??findProjectRootDirectory(),_0x1cec46=resolveConfigPath(_0x20056e);return _0x1cec46&&(_0x3dfece=parseAndNormalizeConfig(_0x1cec46,_0x25f8db(0x1cb),_0x25f8db(0x1e9))),{'globalPath':_0x409214,'projectPath':_0x1cec46,'globalConfig':_0xc52092,'projectConfig':_0x3dfece};}const INHERIT_WHITELIST=[a285_0x1e5545(0x1c5),'accessKey',a285_0x1e5545(0x1cd),a285_0x1e5545(0x1e8),a285_0x1e5545(0x1c7),'pageSize',a285_0x1e5545(0x1f5),'routing',a285_0x1e5545(0x1d5),a285_0x1e5545(0x1ea),a285_0x1e5545(0x1c1),'skillDomain',a285_0x1e5545(0x1cf),'kbServiceDomain',a285_0x1e5545(0x1d9),'localDomain',a285_0x1e5545(0x1e6)];function a285_0x5ee8(){const _0x1438ce=['region','silent','.tmp','runtimeDomain','defaultApp','migrated','539648PNuOXg','cookie','string','riskLevel','project','keys','apps','warn','\x0a\x20\x20','locale','length','kbDomain','projectPath','2054514COkuft','206921ZuTgCK','cwd','pageSize','userDomain','object','error','env','appDomain','4jPfGxt','3312792MfUVYS','trim','config','2430396sRTRWE','get','utf8','inherit','.rabetbase.json','apiDir','data','app','certificateDomain','message','format','Project','apiDomain','1916825WDYCuD','appcode','stringify','status','set','accessKey','missing','empty','668946iGGIRE','parse'];a285_0x5ee8=function(){return _0x1438ce;};return a285_0x5ee8();}export function mergeRawConfigLayers(_0x3146de){const _0x2d2256=a285_0x1e5545,{globalConfig:_0x287b30,projectConfig:_0x2ad80c}=_0x3146de,_0x39953a=!!_0x3146de[_0x2d2256(0x1d0)]||Object[_0x2d2256(0x1c9)](_0x2ad80c)['length']>0x0;if(!_0x39953a)return mergeGlobalOnly(_0x287b30);return mergeProjectFirst(_0x287b30,_0x2ad80c);}function mergeGlobalOnly(_0x3c7912){const _0x28a61b=a285_0x1e5545,_0x3ab11d={..._0x3c7912};delete _0x3ab11d[_0x28a61b(0x1e1)];const _0xfccf70=_0x3c7912[_0x28a61b(0x1ca)]&&typeof _0x3c7912[_0x28a61b(0x1ca)]===_0x28a61b(0x1d6)?_0x3c7912[_0x28a61b(0x1ca)]:{};if(Object[_0x28a61b(0x1c9)](_0xfccf70)[_0x28a61b(0x1ce)]>0x0)_0x3ab11d['apps']=_0xfccf70;if(_0x3c7912[_0x28a61b(0x1c2)])_0x3ab11d['defaultApp']=_0x3c7912[_0x28a61b(0x1c2)];return _0x3ab11d;}function mergeProjectFirst(_0x53fce7,_0x30e3a3){const _0x4722c3=a285_0x1e5545,_0x11703={..._0x30e3a3};delete _0x11703[_0x4722c3(0x1e1)];for(const _0x317c0c of INHERIT_WHITELIST){!(_0x317c0c in _0x11703)&&_0x317c0c in _0x53fce7&&(_0x11703[_0x317c0c]=_0x53fce7[_0x317c0c]);}const _0x355e09=_0x30e3a3['apps']&&typeof _0x30e3a3[_0x4722c3(0x1ca)]===_0x4722c3(0x1d6)?_0x30e3a3[_0x4722c3(0x1ca)]:{};return Object[_0x4722c3(0x1c9)](_0x355e09)['length']>0x0?_0x11703[_0x4722c3(0x1ca)]=_0x355e09:delete _0x11703['apps'],_0x4722c3(0x1c2)in _0x30e3a3?_0x11703['defaultApp']=_0x30e3a3[_0x4722c3(0x1c2)]:delete _0x11703[_0x4722c3(0x1c2)],_0x11703;}export function readRawConfigWithLayers(_0x6567f6){const _0x176687=loadRawConfigLayers(_0x6567f6);return{'config':mergeRawConfigLayers(_0x176687),'layers':_0x176687};}export function readRawConfig(_0x380a48){return mergeRawConfigLayers(loadRawConfigLayers(_0x380a48));}export function readConfigFile(_0x519ea3){const _0x7af3b4=a285_0x1e5545;return parseAndNormalizeConfig(_0x519ea3,_0x7af3b4(0x1bf));}export function writeConfigFile(_0x503cd0,_0x5e5c17){const _0x2b5441=a285_0x1e5545,_0x45ec53=dirname(_0x503cd0);!existsSync(_0x45ec53)&&mkdirSync(_0x45ec53,{'recursive':!![]});const _0x543dd8=_0x503cd0+_0x2b5441(0x1c0);try{const _0x19c430=normalizeConfigForWrite(_0x5e5c17);writeFileSync(_0x543dd8,JSON['stringify'](_0x19c430,null,0x2)+'\x0a',{'encoding':_0x2b5441(0x1e0),'mode':0x180}),renameSync(_0x543dd8,_0x503cd0);}catch(_0x528e92){try{unlinkSync(_0x543dd8);}catch{}throw _0x528e92;}}export function resolveWriteConfigPath(_0x4479e1){const _0x32832b=a285_0x1e5545,_0x559699=_0x4479e1===_0x32832b(0x1c8)?process[_0x32832b(0x1d3)]():homedir(),_0x53d111=resolveConfigPath(_0x559699);return _0x53d111??resolve(_0x559699,NEW_CONFIG_NAME);}
|
package/lib/context.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a286_0x270700=a286_0x3552;(function(_0x59fe9d,_0x161e01){const _0x4ac717=a286_0x3552,_0x126e37=_0x59fe9d();while(!![]){try{const _0x3a1d40=parseInt(_0x4ac717(0xed))/0x1+-parseInt(_0x4ac717(0x10c))/0x2*(-parseInt(_0x4ac717(0xec))/0x3)+parseInt(_0x4ac717(0x11b))/0x4+-parseInt(_0x4ac717(0x10e))/0x5+-parseInt(_0x4ac717(0xf7))/0x6*(-parseInt(_0x4ac717(0xdd))/0x7)+-parseInt(_0x4ac717(0x10f))/0x8*(-parseInt(_0x4ac717(0xe9))/0x9)+parseInt(_0x4ac717(0xe0))/0xa*(-parseInt(_0x4ac717(0x102))/0xb);if(_0x3a1d40===_0x161e01)break;else _0x126e37['push'](_0x126e37['shift']());}catch(_0x3c01a2){_0x126e37['push'](_0x126e37['shift']());}}}(a286_0x22ca,0x66840));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(_0x2ec836){return process.env[`RABETBASE_${_0x2ec836}`]||process.env[`LOVRABET_${_0x2ec836}`]||undefined;}function optionalString(_0x12014e){const _0x5a10d6=a286_0x3552;return typeof _0x12014e===_0x5a10d6(0x122)&&_0x12014e[_0x5a10d6(0x105)]()?_0x12014e['trim']():undefined;}export function isRoutingRecoveryService(_0x1c5082){const _0x1f2129=a286_0x3552;return _0x1c5082===_0x1f2129(0x100)||_0x1c5082===_0x1f2129(0x104);}export async function createContext(_0x1d61ad){const _0x28a131=a286_0x3552,{config:_0x312422,layers:_0x676dca}=readRawConfigWithLayers(),_0x791685=buildConfig(_0x312422,_0x1d61ad,_0x676dca);await initGlobalEnvironment(_0x791685);const {getUserDomain:_0x51794b,getApiDomain:_0x471164}=await import(_0x28a131(0x11a)),_0x48c27d={'apiDomain':_0x471164(),'userDomain':_0x51794b()},_0x236827=await buildAuth(_0x791685);logger[_0x28a131(0x119)](process[_0x28a131(0x124)]());const _0x49e025=(CLI_BIN_NAME+'\x20'+process[_0x28a131(0xf5)][_0x28a131(0x118)](0x2)[_0x28a131(0x11e)]('\x20'))[_0x28a131(0x105)]();logger[_0x28a131(0x106)](_0x49e025);const {isNonInteractive:_0x3544c7}=await import(_0x28a131(0xe2)),_0x154fdb=_0x3544c7(_0x1d61ad);return{'config':_0x791685,'auth':_0x236827,'logger':logger,'env':_0x48c27d,'nonInteractive':_0x154fdb};}export function buildConfigFromFlags(_0x4d576c){const {config:_0x5c154e,layers:_0x562a39}=readRawConfigWithLayers();return buildConfig(_0x5c154e,_0x4d576c,_0x562a39);}function a286_0x3552(_0x5e36c5,_0x20ca29){_0x5e36c5=_0x5e36c5-0xd6;const _0x22ca05=a286_0x22ca();let _0x3552d9=_0x22ca05[_0x5e36c5];return _0x3552d9;}export async function initGlobalEnvironment(_0x332c72){const _0x9f9a8a=a286_0x3552,_0x69df1b=_0x332c72[_0x9f9a8a(0xf9)]==='app'&&_0x332c72[_0x9f9a8a(0x11d)]?_0x9f9a8a(0x112)+_0x332c72['currentApp']+'\x22':_0x332c72[_0x9f9a8a(0xf9)]==='project'?_0x9f9a8a(0x10d):_0x332c72['regionSource']===_0x9f9a8a(0x123)?_0x9f9a8a(0x101):_0x9f9a8a(0x107);await initConfiguredEnvironment({'raw':_0x332c72[_0x9f9a8a(0xe1)],'configuredRegion':_0x332c72[_0x9f9a8a(0xfc)]??_0x332c72[_0x9f9a8a(0xe1)]?.[_0x9f9a8a(0x121)]??_0x332c72['region'],'regionLocation':_0x69df1b,'targetEnv':_0x332c72[_0x9f9a8a(0xfe)]});}async function initConfiguredEnvironment(_0xe3fc5b){const _0x4f2a2c=a286_0x3552,_0x2ae3d6=resolveConfiguredRegion(_0xe3fc5b[_0x4f2a2c(0xd9)],_0xe3fc5b[_0x4f2a2c(0xd7)]),_0x641eb4=resolveEnterpriseRoutingManifest(_0xe3fc5b[_0x4f2a2c(0xe1)]?.[_0x4f2a2c(0xf6)]),_0x11c820={'region':_0x2ae3d6,'apiDomain':_0x641eb4?_0x641eb4['domains'][_0x4f2a2c(0xda)]:optionalString(_0xe3fc5b[_0x4f2a2c(0xe1)]?.[_0x4f2a2c(0xda)]),'userDomain':_0x641eb4?_0x641eb4['domains']['userDomain']:optionalString(_0xe3fc5b['raw']?.['userDomain']),'runtimeDomain':_0x641eb4?_0x641eb4[_0x4f2a2c(0xff)]['runtimeDomain']:optionalString(_0xe3fc5b[_0x4f2a2c(0xe1)]?.['runtimeDomain']),'skillDomain':_0x641eb4?_0x641eb4[_0x4f2a2c(0xff)][_0x4f2a2c(0xfb)]:optionalString(_0xe3fc5b['raw']?.[_0x4f2a2c(0xfb)])||optionalString(_0xe3fc5b[_0x4f2a2c(0xe1)]?.[_0x4f2a2c(0x11f)])||optionalString(_0xe3fc5b[_0x4f2a2c(0xe1)]?.['agentDomain'])||optionalString(_0xe3fc5b[_0x4f2a2c(0xe1)]?.[_0x4f2a2c(0xf1)]),'kbDomain':_0x641eb4?_0x641eb4[_0x4f2a2c(0xff)][_0x4f2a2c(0xf4)]:optionalString(_0xe3fc5b['raw']?.[_0x4f2a2c(0xf4)])||optionalString(_0xe3fc5b[_0x4f2a2c(0xe1)]?.[_0x4f2a2c(0xe7)])||optionalString(_0xe3fc5b['raw']?.[_0x4f2a2c(0xf1)]),'kbServiceDomain':_0x641eb4?_0x641eb4[_0x4f2a2c(0xff)][_0x4f2a2c(0xf2)]:optionalString(_0xe3fc5b[_0x4f2a2c(0xe1)]?.[_0x4f2a2c(0xf2)]),'appDomain':_0x641eb4?_0x641eb4[_0x4f2a2c(0xff)][_0x4f2a2c(0xe8)]:optionalString(_0xe3fc5b[_0x4f2a2c(0xe1)]?.['appDomain']),'localDomain':_0x641eb4?_0x641eb4[_0x4f2a2c(0xff)]['localDomain']:optionalString(_0xe3fc5b[_0x4f2a2c(0xe1)]?.[_0x4f2a2c(0x110)]),'certificateDomain':_0x641eb4?_0x641eb4[_0x4f2a2c(0xff)][_0x4f2a2c(0xd6)]:optionalString(_0xe3fc5b['raw']?.[_0x4f2a2c(0xd6)]),'cdn':_0x641eb4?.['cdn'],'allowOfficialKbServiceDefault':!(_0x641eb4!==undefined||[_0x4f2a2c(0xda),_0x4f2a2c(0x109),_0x4f2a2c(0x103),_0x4f2a2c(0xfb),'skillHubDomain',_0x4f2a2c(0xf4),_0x4f2a2c(0xf2),_0x4f2a2c(0xe7),_0x4f2a2c(0xf1),'appDomain',_0x4f2a2c(0x110),_0x4f2a2c(0xd6)][_0x4f2a2c(0xd8)](_0xee885e=>Object[_0x4f2a2c(0x11c)]['hasOwnProperty']['call'](_0xe3fc5b[_0x4f2a2c(0xe1)]??{},_0xee885e)))},{initEnv:_0x9a48e1}=await import(_0x4f2a2c(0xde)),{initDomains:_0x4027f4}=await import(_0x4f2a2c(0x11a));_0x9a48e1(_0xe3fc5b[_0x4f2a2c(0x10b)]),_0x4027f4(_0x11c820);}export async function initMultiAppEnvironment(_0x29a951){const _0xd9d488=a286_0x3552;await initConfiguredEnvironment({'raw':_0x29a951['routingConfig'],'configuredRegion':_0x29a951[_0xd9d488(0x121)],'regionLocation':_0xd9d488(0x112)+_0x29a951[_0xd9d488(0xfd)]+'\x22','targetEnv':_0x29a951[_0xd9d488(0xfe)]==='daily'?'daily':_0xd9d488(0xef)});}export function getConfigAppCode(_0x1a3113){const _0x39b075=a286_0x3552,_0x38354f=readRawConfig(_0x1a3113);if(_0x38354f[_0x39b075(0xeb)]&&typeof _0x38354f[_0x39b075(0xeb)]===_0x39b075(0xee)){const _0x35410f=_0x38354f['defaultApp'];if(_0x35410f)return _0x38354f[_0x39b075(0xeb)][_0x35410f]?.['appcode']?String(_0x38354f[_0x39b075(0xeb)][_0x35410f][_0x39b075(0xf0)])[_0x39b075(0x105)]():undefined;const _0x3977a0=Object[_0x39b075(0xfa)](_0x38354f['apps']);if(_0x3977a0[_0x39b075(0xf3)]===0x1&&_0x3977a0[0x0]?.[_0x39b075(0xf0)])return String(_0x3977a0[0x0][_0x39b075(0xf0)])[_0x39b075(0x105)]();}const _0x31e0bd=_0x38354f[_0x39b075(0xf0)]||_0x38354f[_0x39b075(0xea)];if(typeof _0x31e0bd!=='string'||_0x31e0bd[_0x39b075(0x105)]()==='')return undefined;return _0x31e0bd['trim']();}const CONNECTION_ROUTING_KEYS=[a286_0x270700(0xf6),a286_0x270700(0xda),a286_0x270700(0x109),a286_0x270700(0x103),a286_0x270700(0xfb),a286_0x270700(0x11f),'kbDomain',a286_0x270700(0xf2),'agentDomain',a286_0x270700(0xf1),a286_0x270700(0xe8),a286_0x270700(0x110),a286_0x270700(0xd6)];function withAppProfileRouting(_0x3940a7,_0x4b43bc){const _0x6c3a19=a286_0x270700;if(!_0x4b43bc||_0x4b43bc[_0x6c3a19(0xf2)]===undefined)return _0x3940a7;return{..._0x3940a7,'kbServiceDomain':_0x4b43bc[_0x6c3a19(0xf2)]};}function pickConnectionRoutingConfig(_0x568393,_0x1edb4e){const _0x3f368b={'region':_0x1edb4e};for(const _0x458af8 of CONNECTION_ROUTING_KEYS){if(_0x568393[_0x458af8]!==undefined)_0x3f368b[_0x458af8]=_0x568393[_0x458af8];}return _0x3f368b;}export function getMultiAppConfigs(_0x6d37c7=a286_0x270700(0xe5),_0x5996d7){const _0x2a107b=a286_0x270700,_0x20fcc8=loadRawConfigLayers(_0x5996d7);let _0x1efcc3,_0x37f39c;const _0x3e2954=mergeRawConfigLayers(_0x20fcc8),_0x11efce=_0x20fcc8[_0x2a107b(0x113)][_0x2a107b(0xeb)]&&typeof _0x20fcc8[_0x2a107b(0x113)]['apps']===_0x2a107b(0xee)?_0x20fcc8[_0x2a107b(0x113)][_0x2a107b(0xeb)]:{},_0x389adb=_0x20fcc8[_0x2a107b(0x115)][_0x2a107b(0xeb)]&&typeof _0x20fcc8['projectConfig'][_0x2a107b(0xeb)]===_0x2a107b(0xee)?_0x20fcc8['projectConfig']['apps']:{};_0x6d37c7===_0x2a107b(0xe4)?(_0x1efcc3={..._0x11efce,..._0x389adb},_0x37f39c=_0x3e2954['defaultApp']):(_0x1efcc3=_0x20fcc8[_0x2a107b(0x115)]['apps'],_0x37f39c=_0x20fcc8[_0x2a107b(0x115)][_0x2a107b(0x10a)]);!_0x37f39c&&_0x1efcc3&&typeof _0x1efcc3==='object'&&Object['keys'](_0x1efcc3)['length']===0x1&&(_0x37f39c=Object[_0x2a107b(0xdf)](_0x1efcc3)[0x0]);if(!_0x1efcc3||typeof _0x1efcc3!==_0x2a107b(0xee)||Object[_0x2a107b(0xdf)](_0x1efcc3)['length']===0x0)return null;return Object['entries'](_0x1efcc3)[_0x2a107b(0xdb)](([_0x2ffbc5,_0x5ed089])=>{const _0x4b4459=_0x2a107b,_0x4ba28d=_0x6d37c7===_0x4b4459(0xe5)||Object[_0x4b4459(0x11c)][_0x4b4459(0xdc)][_0x4b4459(0xf8)](_0x389adb,_0x2ffbc5),_0x5a9aa0=withAppProfileRouting(_0x4ba28d?_0x3e2954:_0x20fcc8[_0x4b4459(0x113)],_0x5ed089),_0x47f7a1=resolveEffectiveRegion({'appRegion':_0x5ed089?.[_0x4b4459(0x121)],'projectRegion':_0x4ba28d?_0x20fcc8[_0x4b4459(0x115)][_0x4b4459(0x121)]:undefined,'globalRegion':_0x20fcc8[_0x4b4459(0x113)][_0x4b4459(0x121)],'mergedRegion':_0x5a9aa0[_0x4b4459(0x121)],'appName':_0x2ffbc5});return{'name':_0x2ffbc5,'appcode':_0x5ed089?.[_0x4b4459(0xf0)]||'','apiGroup':optionalString(_0x5ed089?.[_0x4b4459(0x111)]),'isDefault':_0x2ffbc5===_0x37f39c,'region':_0x47f7a1[_0x4b4459(0x121)],'regionSource':_0x47f7a1['source'],'env':_0x5ed089?.[_0x4b4459(0xfe)],'apiDir':optionalString(_0x5ed089?.[_0x4b4459(0x117)])||optionalString(_0x5a9aa0['apiDir']),'cookie':_0x5ed089?.[_0x4b4459(0x116)]||undefined,'routingConfig':pickConnectionRoutingConfig(_0x5a9aa0,_0x47f7a1[_0x4b4459(0x121)])};})[_0x2a107b(0x108)](_0x20e226=>_0x20e226[_0x2a107b(0xf0)]);}export function getTemplateBaseUrl(_0x5b1969){const _0x55daf9=a286_0x270700,_0x34cba6=readRawConfig(_0x5b1969);if(_0x34cba6[_0x55daf9(0x114)]&&typeof _0x34cba6[_0x55daf9(0x114)]==='string')return _0x34cba6['template_base_url'][_0x55daf9(0xe3)](/\/$/,'');return _0x55daf9(0xe6);}function a286_0x22ca(){const _0x4d5b5d=['cookie','apiDir','slice','setLogPath','./constant/domain.js','627592PkIYSQ','prototype','currentApp','join','skillHubDomain','filePath','region','string','global','cwd','certificateDomain','regionLocation','some','configuredRegion','apiDomain','map','hasOwnProperty','40180gYBbbD','./constant/env.js','keys','40NWKVDL','raw','./utils/is-non-interactive.js','replace','merged','project','https://g.lovrabet.com/dist/lovrabet-skill','agentDomain','appDomain','7321113KOjnny','app','apps','447DecOWo','649208dIAjZQ','object','production','appcode','platformDomain','kbServiceDomain','length','kbDomain','argv','routing','180EUFaip','call','regionSource','values','skillDomain','regionConfiguredValue','name','env','domains','config','global\x20Rabetbase\x20configuration','3143129ivJRZe','runtimeDomain','doctor','trim','setRawCommand','Rabetbase\x20configuration','filter','userDomain','defaultApp','targetEnv','1532SwBtZP','project\x20Rabetbase\x20configuration','1715185NJNyNk','8kivHoo','localDomain','apiGroup','app\x20profile\x20\x22','globalConfig','template_base_url','projectConfig'];a286_0x22ca=function(){return _0x4d5b5d;};return a286_0x22ca();}function buildConfig(_0x393cc2,_0x46a834,_0xaca81f){const _0x2caa46=a286_0x270700,_0x86ab01=resolveAppConfig({'raw':_0x393cc2,'flags':_0x46a834,'layers':_0xaca81f,'readEnv':env}),_0x1016e7=_0x86ab01[_0x2caa46(0x11d)]?_0x86ab01[_0x2caa46(0xeb)][_0x86ab01[_0x2caa46(0x11d)]]:undefined;return{..._0x86ab01,'raw':withAppProfileRouting(_0x393cc2,_0x1016e7)};}export function resolveApiFilePath(_0x5ad7db,_0x2dcc1f,_0x2bfb88){const _0x59872d=a286_0x270700;return resolveApiModelSource(_0x5ad7db,_0x2dcc1f,_0x2bfb88)[_0x59872d(0x120)];}
|
|
1
|
+
const a286_0x105408=a286_0x4c26;(function(_0x5aea62,_0x553b1c){const _0x48ee18=a286_0x4c26,_0x5917a5=_0x5aea62();while(!![]){try{const _0x564fd6=-parseInt(_0x48ee18(0x1c2))/0x1+-parseInt(_0x48ee18(0x1a8))/0x2+-parseInt(_0x48ee18(0x1aa))/0x3*(parseInt(_0x48ee18(0x1bc))/0x4)+-parseInt(_0x48ee18(0x1c6))/0x5+parseInt(_0x48ee18(0x1a1))/0x6*(-parseInt(_0x48ee18(0x19b))/0x7)+-parseInt(_0x48ee18(0x1de))/0x8*(parseInt(_0x48ee18(0x1b4))/0x9)+parseInt(_0x48ee18(0x1d2))/0xa*(parseInt(_0x48ee18(0x1c7))/0xb);if(_0x564fd6===_0x553b1c)break;else _0x5917a5['push'](_0x5917a5['shift']());}catch(_0x1838df){_0x5917a5['push'](_0x5917a5['shift']());}}}(a286_0x4498,0xdd020));import{CLI_BIN_NAME}from'./constant/cli.js';function a286_0x4498(){const _0x4c8c7a=['trim','hasOwnProperty','some','app\x20profile\x20\x22','daily','projectConfig','337400JoMocS','merged','currentApp','global\x20Rabetbase\x20configuration','userDomain','apps','object','setRawCommand','template_base_url','project','apiDomain','map','1907520Qdlavd','source','1357972GeiGKc','cdn','keys','defaultApp','appDomain','kbServiceDomain','24Dytjvy','raw','./constant/domain.js','./utils/is-non-interactive.js','regionLocation','certificateDomain','apiGroup','676564wMOuhJ','config','4404489HevLvg','agentDomain','length','regionSource','string','./constant/env.js','global','project\x20Rabetbase\x20configuration','apiDir','globalConfig','54QwzIrg','localDomain','appcode','prototype','region','https://g.lovrabet.com/dist/lovrabet-skill','runtimeDomain','routingConfig','4eXjnLu','filter','call','cookie','platformDomain','domains','387694huJcob','kbDomain','env','skillDomain','1305445pbvmsa','1815esrHmv','skillHubDomain','values','join','production'];a286_0x4498=function(){return _0x4c8c7a;};return a286_0x4498();}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(_0x2f7575){return process.env[`RABETBASE_${_0x2f7575}`]||process.env[`LOVRABET_${_0x2f7575}`]||undefined;}function optionalString(_0x13f6d9){const _0x4cd81d=a286_0x4c26;return typeof _0x13f6d9===_0x4cd81d(0x1ae)&&_0x13f6d9[_0x4cd81d(0x1cc)]()?_0x13f6d9['trim']():undefined;}export function isRoutingRecoveryService(_0x26d1d0){const _0xd326ee=a286_0x4c26;return _0x26d1d0===_0xd326ee(0x1a9)||_0x26d1d0==='doctor';}export async function createContext(_0x2bc18d){const _0xb46ec6=a286_0x4c26,{config:_0x3ffc2c,layers:_0xadd7eb}=readRawConfigWithLayers(),_0x2050a1=buildConfig(_0x3ffc2c,_0x2bc18d,_0xadd7eb);await initGlobalEnvironment(_0x2050a1);const {getUserDomain:_0x39485e,getApiDomain:_0x52ba64}=await import('./constant/domain.js'),_0x3f7a00={'apiDomain':_0x52ba64(),'userDomain':_0x39485e()},_0x2f57f0=await buildAuth(_0x2050a1);logger['setLogPath'](process['cwd']());const _0x1c0798=(CLI_BIN_NAME+'\x20'+process['argv']['slice'](0x2)[_0xb46ec6(0x1ca)]('\x20'))[_0xb46ec6(0x1cc)]();logger[_0xb46ec6(0x1d9)](_0x1c0798);const {isNonInteractive:_0x360ccb}=await import(_0xb46ec6(0x1a4)),_0xf22a0b=_0x360ccb(_0x2bc18d);return{'config':_0x2050a1,'auth':_0x2f57f0,'logger':logger,'env':_0x3f7a00,'nonInteractive':_0xf22a0b};}export function buildConfigFromFlags(_0x79200f){const {config:_0x47f8ef,layers:_0x2b2cbb}=readRawConfigWithLayers();return buildConfig(_0x47f8ef,_0x79200f,_0x2b2cbb);}export async function initGlobalEnvironment(_0xb52211){const _0x59133f=a286_0x4c26,_0x3930ee=_0xb52211['regionSource']==='app'&&_0xb52211[_0x59133f(0x1d4)]?_0x59133f(0x1cf)+_0xb52211['currentApp']+'\x22':_0xb52211[_0x59133f(0x1ad)]==='project'?_0x59133f(0x1b1):_0xb52211[_0x59133f(0x1ad)]===_0x59133f(0x1b0)?_0x59133f(0x1d5):'Rabetbase\x20configuration';await initConfiguredEnvironment({'raw':_0xb52211['raw'],'configuredRegion':_0xb52211['regionConfiguredValue']??_0xb52211[_0x59133f(0x1a2)]?.[_0x59133f(0x1b8)]??_0xb52211[_0x59133f(0x1b8)],'regionLocation':_0x3930ee,'targetEnv':_0xb52211['env']});}async function initConfiguredEnvironment(_0x17740d){const _0x374f1a=a286_0x4c26,_0x5a636e=resolveConfiguredRegion(_0x17740d['configuredRegion'],_0x17740d[_0x374f1a(0x1a5)]),_0x3fcea9=resolveEnterpriseRoutingManifest(_0x17740d['raw']?.['routing']),_0x4b821f={'region':_0x5a636e,'apiDomain':_0x3fcea9?_0x3fcea9[_0x374f1a(0x1c1)][_0x374f1a(0x1dc)]:optionalString(_0x17740d[_0x374f1a(0x1a2)]?.[_0x374f1a(0x1dc)]),'userDomain':_0x3fcea9?_0x3fcea9['domains']['userDomain']:optionalString(_0x17740d[_0x374f1a(0x1a2)]?.[_0x374f1a(0x1d6)]),'runtimeDomain':_0x3fcea9?_0x3fcea9[_0x374f1a(0x1c1)][_0x374f1a(0x1ba)]:optionalString(_0x17740d['raw']?.['runtimeDomain']),'skillDomain':_0x3fcea9?_0x3fcea9['domains'][_0x374f1a(0x1c5)]:optionalString(_0x17740d[_0x374f1a(0x1a2)]?.['skillDomain'])||optionalString(_0x17740d[_0x374f1a(0x1a2)]?.[_0x374f1a(0x1c8)])||optionalString(_0x17740d[_0x374f1a(0x1a2)]?.[_0x374f1a(0x1ab)])||optionalString(_0x17740d[_0x374f1a(0x1a2)]?.[_0x374f1a(0x1c0)]),'kbDomain':_0x3fcea9?_0x3fcea9[_0x374f1a(0x1c1)][_0x374f1a(0x1c3)]:optionalString(_0x17740d[_0x374f1a(0x1a2)]?.[_0x374f1a(0x1c3)])||optionalString(_0x17740d[_0x374f1a(0x1a2)]?.['agentDomain'])||optionalString(_0x17740d[_0x374f1a(0x1a2)]?.[_0x374f1a(0x1c0)]),'kbServiceDomain':_0x3fcea9?_0x3fcea9[_0x374f1a(0x1c1)][_0x374f1a(0x1a0)]:optionalString(_0x17740d[_0x374f1a(0x1a2)]?.['kbServiceDomain']),'appDomain':_0x3fcea9?_0x3fcea9[_0x374f1a(0x1c1)][_0x374f1a(0x19f)]:optionalString(_0x17740d[_0x374f1a(0x1a2)]?.[_0x374f1a(0x19f)]),'localDomain':_0x3fcea9?_0x3fcea9[_0x374f1a(0x1c1)][_0x374f1a(0x1b5)]:optionalString(_0x17740d['raw']?.[_0x374f1a(0x1b5)]),'certificateDomain':_0x3fcea9?_0x3fcea9[_0x374f1a(0x1c1)][_0x374f1a(0x1a6)]:optionalString(_0x17740d[_0x374f1a(0x1a2)]?.[_0x374f1a(0x1a6)]),'cdn':_0x3fcea9?.[_0x374f1a(0x19c)],'allowOfficialKbServiceDefault':!(_0x3fcea9!==undefined||[_0x374f1a(0x1dc),'userDomain',_0x374f1a(0x1ba),_0x374f1a(0x1c5),_0x374f1a(0x1c8),'kbDomain',_0x374f1a(0x1a0),'agentDomain',_0x374f1a(0x1c0),_0x374f1a(0x19f),_0x374f1a(0x1b5),_0x374f1a(0x1a6)][_0x374f1a(0x1ce)](_0x2be3a0=>Object[_0x374f1a(0x1b7)]['hasOwnProperty'][_0x374f1a(0x1be)](_0x17740d[_0x374f1a(0x1a2)]??{},_0x2be3a0)))},{initEnv:_0x3cb64a}=await import(_0x374f1a(0x1af)),{initDomains:_0x62ee30}=await import(_0x374f1a(0x1a3));_0x3cb64a(_0x17740d['targetEnv']),_0x62ee30(_0x4b821f);}export async function initMultiAppEnvironment(_0x4692e2){const _0x1f1ec3=a286_0x4c26;await initConfiguredEnvironment({'raw':_0x4692e2[_0x1f1ec3(0x1bb)],'configuredRegion':_0x4692e2[_0x1f1ec3(0x1b8)],'regionLocation':'app\x20profile\x20\x22'+_0x4692e2['name']+'\x22','targetEnv':_0x4692e2[_0x1f1ec3(0x1c4)]===_0x1f1ec3(0x1d0)?'daily':_0x1f1ec3(0x1cb)});}function a286_0x4c26(_0x5cb52f,_0x3ed8d9){_0x5cb52f=_0x5cb52f-0x19a;const _0x449879=a286_0x4498();let _0x4c2612=_0x449879[_0x5cb52f];return _0x4c2612;}export function getConfigAppCode(_0x4f8d77){const _0x5dd443=a286_0x4c26,_0x120622=readRawConfig(_0x4f8d77);if(_0x120622[_0x5dd443(0x1d7)]&&typeof _0x120622['apps']==='object'){const _0x42764f=_0x120622['defaultApp'];if(_0x42764f)return _0x120622['apps'][_0x42764f]?.[_0x5dd443(0x1b6)]?String(_0x120622[_0x5dd443(0x1d7)][_0x42764f]['appcode'])['trim']():undefined;const _0x4c346f=Object[_0x5dd443(0x1c9)](_0x120622[_0x5dd443(0x1d7)]);if(_0x4c346f[_0x5dd443(0x1ac)]===0x1&&_0x4c346f[0x0]?.[_0x5dd443(0x1b6)])return String(_0x4c346f[0x0][_0x5dd443(0x1b6)])['trim']();}const _0x1ff509=_0x120622[_0x5dd443(0x1b6)]||_0x120622['app'];if(typeof _0x1ff509!==_0x5dd443(0x1ae)||_0x1ff509['trim']()==='')return undefined;return _0x1ff509[_0x5dd443(0x1cc)]();}const CONNECTION_ROUTING_KEYS=['routing',a286_0x105408(0x1dc),'userDomain','runtimeDomain',a286_0x105408(0x1c5),a286_0x105408(0x1c8),a286_0x105408(0x1c3),'kbServiceDomain','agentDomain','platformDomain','appDomain',a286_0x105408(0x1b5),a286_0x105408(0x1a6)];function withAppProfileRouting(_0xec9f5a,_0x1b129a){const _0x4fdff3=a286_0x105408;if(!_0x1b129a||_0x1b129a[_0x4fdff3(0x1a0)]===undefined)return _0xec9f5a;return{..._0xec9f5a,'kbServiceDomain':_0x1b129a[_0x4fdff3(0x1a0)]};}function pickConnectionRoutingConfig(_0x2cff78,_0x33d7d4){const _0x248365={'region':_0x33d7d4};for(const _0x109935 of CONNECTION_ROUTING_KEYS){if(_0x2cff78[_0x109935]!==undefined)_0x248365[_0x109935]=_0x2cff78[_0x109935];}return _0x248365;}export function getMultiAppConfigs(_0x23e88b=a286_0x105408(0x1db),_0x22fe3e){const _0x9332cc=a286_0x105408,_0x240cb8=loadRawConfigLayers(_0x22fe3e);let _0x41f49a,_0x310abd;const _0x4a9c3b=mergeRawConfigLayers(_0x240cb8),_0x36f9ca=_0x240cb8[_0x9332cc(0x1b3)][_0x9332cc(0x1d7)]&&typeof _0x240cb8[_0x9332cc(0x1b3)][_0x9332cc(0x1d7)]==='object'?_0x240cb8[_0x9332cc(0x1b3)]['apps']:{},_0x8f8ae8=_0x240cb8[_0x9332cc(0x1d1)]['apps']&&typeof _0x240cb8['projectConfig']['apps']===_0x9332cc(0x1d8)?_0x240cb8[_0x9332cc(0x1d1)]['apps']:{};_0x23e88b===_0x9332cc(0x1d3)?(_0x41f49a={..._0x36f9ca,..._0x8f8ae8},_0x310abd=_0x4a9c3b[_0x9332cc(0x19e)]):(_0x41f49a=_0x240cb8[_0x9332cc(0x1d1)][_0x9332cc(0x1d7)],_0x310abd=_0x240cb8[_0x9332cc(0x1d1)][_0x9332cc(0x19e)]);!_0x310abd&&_0x41f49a&&typeof _0x41f49a===_0x9332cc(0x1d8)&&Object['keys'](_0x41f49a)['length']===0x1&&(_0x310abd=Object[_0x9332cc(0x19d)](_0x41f49a)[0x0]);if(!_0x41f49a||typeof _0x41f49a!==_0x9332cc(0x1d8)||Object[_0x9332cc(0x19d)](_0x41f49a)[_0x9332cc(0x1ac)]===0x0)return null;return Object['entries'](_0x41f49a)[_0x9332cc(0x1dd)](([_0x572ba1,_0x5832e9])=>{const _0x229985=_0x9332cc,_0x4991b8=_0x23e88b===_0x229985(0x1db)||Object[_0x229985(0x1b7)][_0x229985(0x1cd)]['call'](_0x8f8ae8,_0x572ba1),_0x13e544=withAppProfileRouting(_0x4991b8?_0x4a9c3b:_0x240cb8[_0x229985(0x1b3)],_0x5832e9),_0x1a4e76=resolveEffectiveRegion({'appRegion':_0x5832e9?.['region'],'projectRegion':_0x4991b8?_0x240cb8[_0x229985(0x1d1)][_0x229985(0x1b8)]:undefined,'globalRegion':_0x240cb8[_0x229985(0x1b3)][_0x229985(0x1b8)],'mergedRegion':_0x13e544[_0x229985(0x1b8)],'appName':_0x572ba1});return{'name':_0x572ba1,'appcode':_0x5832e9?.[_0x229985(0x1b6)]||'','apiGroup':optionalString(_0x5832e9?.[_0x229985(0x1a7)]),'isDefault':_0x572ba1===_0x310abd,'region':_0x1a4e76[_0x229985(0x1b8)],'regionSource':_0x1a4e76[_0x229985(0x19a)],'env':_0x5832e9?.[_0x229985(0x1c4)],'apiDir':optionalString(_0x5832e9?.['apiDir'])||optionalString(_0x13e544[_0x229985(0x1b2)]),'cookie':_0x5832e9?.[_0x229985(0x1bf)]||undefined,'routingConfig':pickConnectionRoutingConfig(_0x13e544,_0x1a4e76['region'])};})[_0x9332cc(0x1bd)](_0x165975=>_0x165975['appcode']);}export function getTemplateBaseUrl(_0x372393){const _0x35cc67=a286_0x105408,_0x424251=readRawConfig(_0x372393);if(_0x424251['template_base_url']&&typeof _0x424251[_0x35cc67(0x1da)]===_0x35cc67(0x1ae))return _0x424251['template_base_url']['replace'](/\/$/,'');return _0x35cc67(0x1b9);}function buildConfig(_0x8882d8,_0x21b65a,_0xa3be55){const _0x7fb1ca=a286_0x105408,_0x3060ce=resolveAppConfig({'raw':_0x8882d8,'flags':_0x21b65a,'layers':_0xa3be55,'readEnv':env}),_0x2eb779=_0x3060ce[_0x7fb1ca(0x1d4)]?_0x3060ce[_0x7fb1ca(0x1d7)][_0x3060ce[_0x7fb1ca(0x1d4)]]:undefined;return{..._0x3060ce,'raw':withAppProfileRouting(_0x8882d8,_0x2eb779)};}export function resolveApiFilePath(_0x39283f,_0x4b1240,_0xcce24c){return resolveApiModelSource(_0x39283f,_0x4b1240,_0xcce24c)['filePath'];}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a287_0x4be64f=a287_0x1ecb;(function(_0x4e287f,_0x34974b){const _0x585790=a287_0x1ecb,_0x15afe1=_0x4e287f();while(!![]){try{const _0x5167e7=parseInt(_0x585790(0xb3))/0x1+parseInt(_0x585790(0xc0))/0x2*(-parseInt(_0x585790(0xaa))/0x3)+-parseInt(_0x585790(0xaf))/0x4+parseInt(_0x585790(0xab))/0x5+-parseInt(_0x585790(0xb1))/0x6+-parseInt(_0x585790(0xb9))/0x7*(parseInt(_0x585790(0xbc))/0x8)+parseInt(_0x585790(0xa9))/0x9*(parseInt(_0x585790(0xb0))/0xa);if(_0x5167e7===_0x34974b)break;else _0x15afe1['push'](_0x15afe1['shift']());}catch(_0x4f6706){_0x15afe1['push'](_0x15afe1['shift']());}}}(a287_0x3912,0xd58fd));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';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_0x4be64f(0x9c),a287_0x4be64f(0xb2),a287_0x4be64f(0xb8),a287_0x4be64f(0x9b),'.js',a287_0x4be64f(0xbf),a287_0x4be64f(0xba),a287_0x4be64f(0xa7)],LOCAL_REEXPORT_RE=/\bexport\s+(?:type\s+)?(?:\{[\s\S]*?\}|\*)\s+from\s*["']([^"']+)["']/g,SOURCE_EXTENSIONS_BY_RUNTIME_EXTENSION={'.js':[a287_0x4be64f(0x9c),a287_0x4be64f(0xb2)],'.jsx':[a287_0x4be64f(0xb2)],'.mjs':[a287_0x4be64f(0xb8)],'.cjs':[a287_0x4be64f(0x9b)]};function parseApiFile(_0x248c6f){const _0x2e5343=a287_0x4be64f;return parseLegacyApiModels(_0x248c6f)['flatMap'](_0x8807f8=>_0x8807f8[_0x2e5343(0xb7)]?[{'alias':_0x8807f8[_0x2e5343(0xb7)],'datasetCode':_0x8807f8['datasetCode'],'tableName':_0x8807f8['tableName'],'name':_0x8807f8[_0x2e5343(0xb5)]}]:[]);}function isWithinRoot(_0x261dac,_0x15e16c){const _0x45c337=a287_0x4be64f,_0x41d59d=relative(_0x261dac,_0x15e16c);return _0x41d59d===''||!_0x41d59d[_0x45c337(0xae)]('..')&&!isAbsolute(_0x41d59d);}function resolveExistingFile(_0x5839cb){const _0x20b08e=a287_0x4be64f;if(!existsSync(_0x5839cb))return undefined;try{return statSync(_0x5839cb)[_0x20b08e(0xa1)]()?realpathSync(_0x5839cb):undefined;}catch{return undefined;}}function reexportCandidatePaths(_0x5bb941){const _0x29e163=a287_0x4be64f,_0x44cb67=extname(_0x5bb941);if(!_0x44cb67)return[...SOURCE_FILE_EXTENSIONS['map'](_0xbd2cd2=>''+_0x5bb941+_0xbd2cd2),...SOURCE_FILE_EXTENSIONS['map'](_0x4ee76d=>resolve(_0x5bb941,_0x29e163(0x9e)+_0x4ee76d))];const _0x1c4f23=SOURCE_EXTENSIONS_BY_RUNTIME_EXTENSION[_0x44cb67];if(!_0x1c4f23)return[_0x5bb941];const _0x2d4b7f=_0x5bb941[_0x29e163(0xb6)](0x0,-_0x44cb67[_0x29e163(0xbd)]);return[..._0x1c4f23[_0x29e163(0xbb)](_0x4b489a=>''+_0x2d4b7f+_0x4b489a),_0x5bb941];}function a287_0x1ecb(_0x4b28d4,_0x1efb02){_0x4b28d4=_0x4b28d4-0x9b;const _0x391266=a287_0x3912();let _0x1ecb92=_0x391266[_0x4b28d4];return _0x1ecb92;}function resolveLocalReexport(_0x4fee84,_0x5c5136,_0x38fd69){const _0x11f64a=a287_0x4be64f;if(!_0x5c5136['startsWith']('./')&&!_0x5c5136[_0x11f64a(0xae)](_0x11f64a(0xa3)))return undefined;const _0x5836d2=resolve(dirname(_0x4fee84),_0x5c5136);if(!isWithinRoot(_0x38fd69,_0x5836d2))return undefined;for(const _0x339271 of reexportCandidatePaths(_0x5836d2)){const _0x4b5558=resolveExistingFile(_0x339271);if(_0x4b5558&&isWithinRoot(_0x38fd69,_0x4b5558))return _0x4b5558;}return undefined;}function parseApiFileTree(_0x5b7302,_0x117868,_0x1cc0b7,_0x1bc61b){const _0x457692=a287_0x4be64f,_0x29380c=resolveExistingFile(_0x5b7302);if(!_0x29380c)return[];const _0x49a4b4=_0x1cc0b7['get'](_0x29380c);if(_0x49a4b4!==undefined&&_0x49a4b4<=_0x1bc61b)return[];_0x1cc0b7[_0x457692(0xa6)](_0x29380c,_0x1bc61b);const _0x3d6912=readFileSync(_0x29380c,_0x457692(0xa0)),_0x5593a=parseApiFile(_0x3d6912);if(_0x1bc61b>=MAX_LOCAL_REEXPORT_DEPTH)return _0x5593a;const _0x2d578e=new RegExp(LOCAL_REEXPORT_RE[_0x457692(0x9f)],LOCAL_REEXPORT_RE[_0x457692(0x9d)]);let _0x3a44d7;while((_0x3a44d7=_0x2d578e[_0x457692(0xad)](_0x3d6912))!==null){const _0x33a78f=resolveLocalReexport(_0x29380c,_0x3a44d7[0x1],_0x117868);_0x33a78f&&_0x5593a['push'](...parseApiFileTree(_0x33a78f,_0x117868,_0x1cc0b7,_0x1bc61b+0x1));}return _0x5593a;}function aliasProjectRoot(_0x23de99){const _0x7fd55d=findProjectRootDirectory(dirname(_0x23de99));try{return realpathSync(_0x7fd55d);}catch{return _0x7fd55d;}}function uniqueAliasEntries(_0x46dea1){const _0x2c3b28=a287_0x4be64f,_0x32ee79=new Set();return _0x46dea1[_0x2c3b28(0xa2)](_0x4415ec=>{const _0x571e97=_0x2c3b28,_0x21ac6e=JSON[_0x571e97(0xa8)](_0x4415ec);if(_0x32ee79[_0x571e97(0xa5)](_0x21ac6e))return![];return _0x32ee79['add'](_0x21ac6e),!![];});}export function loadAliasMap(_0x38c4c1,_0x44237c,_0x1ddd5e,_0x2e11c8){const _0x3a18f3=a287_0x4be64f,_0x4804e2=resolve(_0x1ddd5e??resolve(process[_0x3a18f3(0xbe)](),_0x38c4c1,'api.ts')),_0x2eed20=_0x2e11c8?_0x4804e2+'#'+_0x2e11c8:_0x4804e2;if(cache[_0x3a18f3(0xa5)](_0x2eed20))return cache['get'](_0x2eed20);if(!existsSync(_0x4804e2))return cache[_0x3a18f3(0xa6)](_0x2eed20,[]),[];try{if(_0x4804e2['endsWith'](MODEL_REGISTRY_FILE_NAME)){const _0x397b6a=readModelRegistry(_0x4804e2),_0x3b5d43=_0x2e11c8??_0x397b6a?.[_0x3a18f3(0xb4)],_0x1cec93=_0x3b5d43&&_0x397b6a?getProfileModels(_0x397b6a,_0x3b5d43):[],_0x5ebf7b=uniqueAliasEntries(_0x1cec93[_0x3a18f3(0xac)](_0xec62e2=>_0xec62e2[_0x3a18f3(0xb7)]?[{'alias':_0xec62e2[_0x3a18f3(0xb7)],'datasetCode':_0xec62e2[_0x3a18f3(0xa4)],'tableName':_0xec62e2['tableName'],'name':_0xec62e2[_0x3a18f3(0xb5)]}]:[]));return cache[_0x3a18f3(0xa6)](_0x2eed20,_0x5ebf7b),_0x5ebf7b;}const _0x2d9e35=uniqueAliasEntries(parseApiFileTree(_0x4804e2,aliasProjectRoot(_0x4804e2),new Map(),0x0));return cache[_0x3a18f3(0xa6)](_0x2eed20,_0x2d9e35),_0x2d9e35;}catch{return cache[_0x3a18f3(0xa6)](_0x2eed20,[]),[];}}export function resolveAlias(_0x39a1b8,_0x2b53ab,_0x538496,_0x75344f,_0x51c5c9){const _0x419887=a287_0x4be64f;if(!_0x2b53ab)return undefined;const _0x586d2e=loadAliasMap(_0x39a1b8,_0x538496,_0x75344f,_0x51c5c9),_0x2cd550=new Set(_0x586d2e[_0x419887(0xa2)](_0x2e3d88=>_0x2e3d88[_0x419887(0xb7)]===_0x2b53ab)['map'](_0x4cafab=>_0x4cafab[_0x419887(0xa4)]));return _0x2cd550['size']===0x1?[..._0x2cd550][0x0]:undefined;}function a287_0x3912(){const _0x1db7ce=['stringify','14676435BXUTIB','4735053qScAmz','1273015oHmLqD','flatMap','exec','startsWith','429012ARIqQQ','10LOaGpy','935880vRPzId','.tsx','1013641omkruK','defaultProfile','name','slice','alias','.mts','7VSSFLF','.mjs','map','1461008ZNWVjL','length','cwd','.jsx','2ajgRim','.cts','.ts','flags','index','source','utf-8','isFile','filter','../','datasetCode','has','set','.cjs'];a287_0x3912=function(){return _0x1db7ce;};return a287_0x3912();}export function listAliases(_0x1c584c,_0x9b8f3f,_0x1bd235,_0x4e7c38){return loadAliasMap(_0x1c584c,_0x9b8f3f,_0x1bd235,_0x4e7c38);}
|