@lovrabet/rabetbase-cli 2.5.10-beta.4 → 2.5.10-beta.5
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 +4 -4
- package/skills/rabetbase/SKILL.md +1 -1
- package/skills/rabetbase-dataset-generation/SKILL.md +1 -1
- package/skills/rabetbase-page-generation/SKILL.md +1 -1
- package/skills/rabetbase.manifest.json +3 -3
package/lib/constant/paths.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a279_0x5d5b32=a279_0x4d70;function a279_0x4d70(_0x1c47ca,_0x504252){_0x1c47ca=_0x1c47ca-0x15e;const _0x2ec0f4=a279_0x2ec0();let _0x4d702a=_0x2ec0f4[_0x1c47ca];return _0x4d702a;}(function(_0x5a6139,_0x10f399){const _0x16ed21=a279_0x4d70,_0x383fc4=_0x5a6139();while(!![]){try{const _0x5bfaaa=-parseInt(_0x16ed21(0x15f))/0x1+-parseInt(_0x16ed21(0x166))/0x2+parseInt(_0x16ed21(0x160))/0x3+parseInt(_0x16ed21(0x15e))/0x4*(-parseInt(_0x16ed21(0x161))/0x5)+parseInt(_0x16ed21(0x167))/0x6+-parseInt(_0x16ed21(0x168))/0x7*(parseInt(_0x16ed21(0x165))/0x8)+parseInt(_0x16ed21(0x162))/0x9*(parseInt(_0x16ed21(0x164))/0xa);if(_0x5bfaaa===_0x10f399)break;else _0x383fc4['push'](_0x383fc4['shift']());}catch(_0x5e893a){_0x383fc4['push'](_0x383fc4['shift']());}}}(a279_0x2ec0,0xcdbe0));export const DEFAULT_API_DIR=a279_0x5d5b32(0x163);function a279_0x2ec0(){const _0xf999f5=['261jasOmE','./src/api','1070590ocNkbt','24952HaOTis','66310NZMvyi','3174714eqNcZH','1757ehNGjR','230232qMWfgX','1460914viHJVT','1738290HjGDDt','95YCxpUR'];a279_0x2ec0=function(){return _0xf999f5;};return a279_0x2ec0();}
|
package/lib/constant/region.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xae7623,_0x331ed8){const _0x1b6e08=a280_0x4ed7,_0x453f90=_0xae7623();while(!![]){try{const _0xcfc867=parseInt(_0x1b6e08(0x10c))/0x1+parseInt(_0x1b6e08(0x10f))/0x2+parseInt(_0x1b6e08(0x113))/0x3*(parseInt(_0x1b6e08(0x10d))/0x4)+parseInt(_0x1b6e08(0x115))/0x5+parseInt(_0x1b6e08(0x112))/0x6*(-parseInt(_0x1b6e08(0x111))/0x7)+parseInt(_0x1b6e08(0x10e))/0x8+parseInt(_0x1b6e08(0x10b))/0x9*(-parseInt(_0x1b6e08(0x110))/0xa);if(_0xcfc867===_0x331ed8)break;else _0x453f90['push'](_0x453f90['shift']());}catch(_0x29583c){_0x453f90['push'](_0x453f90['shift']());}}}(a280_0x563a,0x8ad0a));import{DEFAULT_REGION,ENABLED_REGION_VALUES,REGION_ALIASES,REGION_VALUES}from'../generated/official-routing.js';export const LOVRABET_REGION_VALUES=REGION_VALUES;export const ENABLED_LOVRABET_REGION_VALUES=ENABLED_REGION_VALUES;export const DEFAULT_LOVRABET_REGION=DEFAULT_REGION;export function isLovrabetRegion(_0x23fe71){return typeof _0x23fe71==='string'&&LOVRABET_REGION_VALUES['includes'](_0x23fe71);}export function isEnabledLovrabetRegion(_0x4fdc5c){const _0xa98881=a280_0x4ed7;return typeof _0x4fdc5c==='string'&&ENABLED_LOVRABET_REGION_VALUES[_0xa98881(0x114)](_0x4fdc5c);}export function normalizeLovrabetRegion(_0x7df172){const _0x417187=a280_0x4ed7;if(typeof _0x7df172!==_0x417187(0x10a))return undefined;const _0x2b260d=REGION_ALIASES[_0x7df172]??_0x7df172;return isLovrabetRegion(_0x2b260d)?_0x2b260d:undefined;}export function isInvalidLovrabetRegion(_0x102ec6){return _0x102ec6!==undefined&&_0x102ec6!==null&&_0x102ec6!==''&&normalizeLovrabetRegion(_0x102ec6)===undefined;}function a280_0x4ed7(_0x45b611,_0x278955){_0x45b611=_0x45b611-0x10a;const _0x563abb=a280_0x563a();let _0x4ed787=_0x563abb[_0x45b611];return _0x4ed787;}function a280_0x563a(){const _0x48b1b4=['102906naTmsr','includes','364150ShmXgS','string','9MVOVKb','27651NRRAAD','116oUUABm','4056376hXUbQP','1410636ThTEOZ','8190180EyufWR','32200vxwcbr','1200kNZdMr'];a280_0x563a=function(){return _0x48b1b4;};return a280_0x563a();}
|
package/lib/constant/risk.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a281_0x45a19e=a281_0xfb62;(function(_0x3883b1,_0x534aca){const _0x224527=a281_0xfb62,_0x9f8dc7=_0x3883b1();while(!![]){try{const _0x167294=parseInt(_0x224527(0xba))/0x1+-parseInt(_0x224527(0xb3))/0x2+-parseInt(_0x224527(0xbc))/0x3+parseInt(_0x224527(0xb7))/0x4*(-parseInt(_0x224527(0xb4))/0x5)+-parseInt(_0x224527(0xbb))/0x6+parseInt(_0x224527(0xb8))/0x7*(parseInt(_0x224527(0xb6))/0x8)+parseInt(_0x224527(0xb9))/0x9;if(_0x167294===_0x534aca)break;else _0x9f8dc7['push'](_0x9f8dc7['shift']());}catch(_0x13bf8b){_0x9f8dc7['push'](_0x9f8dc7['shift']());}}}(a281_0x47e1,0x95dbc));function a281_0x47e1(){const _0x20b1a4=['read','1868488vNbovr','552412HHxxXY','14TgsNuG','13811337AYfxLu','955251cJorrV','914670MLuQni','2023215YHeUBA','1099150putjUy','35YAujxu'];a281_0x47e1=function(){return _0x20b1a4;};return a281_0x47e1();}function a281_0xfb62(_0x33d4d8,_0x1b8789){_0x33d4d8=_0x33d4d8-0xb3;const _0x47e155=a281_0x47e1();let _0xfb6249=_0x47e155[_0x33d4d8];return _0xfb6249;}export const RISK_LEVEL_VALUES=[a281_0x45a19e(0xb5),'write','high-risk-write'];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2c5758,_0x2c54e3){const _0x29c51d=a282_0x2c7f,_0x3ef31e=_0x2c5758();while(!![]){try{const _0xfe7cd=parseInt(_0x29c51d(0x15d))/0x1+-parseInt(_0x29c51d(0x164))/0x2*(-parseInt(_0x29c51d(0x165))/0x3)+-parseInt(_0x29c51d(0x158))/0x4*(-parseInt(_0x29c51d(0x161))/0x5)+parseInt(_0x29c51d(0x15f))/0x6*(parseInt(_0x29c51d(0x15e))/0x7)+parseInt(_0x29c51d(0x15a))/0x8*(-parseInt(_0x29c51d(0x163))/0x9)+-parseInt(_0x29c51d(0x160))/0xa*(-parseInt(_0x29c51d(0x159))/0xb)+-parseInt(_0x29c51d(0x162))/0xc;if(_0xfe7cd===_0x2c54e3)break;else _0x3ef31e['push'](_0x3ef31e['shift']());}catch(_0x552a85){_0x3ef31e['push'](_0x3ef31e['shift']());}}}(a282_0x3101,0x88296));import{OFFICIAL_ROUTING_PROFILES as a282_0x3f6435,ROUTING_CATALOG_DIGEST}from'../generated/official-routing.js';function a282_0x3101(){const _0x45c974=['1121585KxVcBS','13571112QssoUL','216tKrRVu','3650sbnvLp','183WvLawv','lovrabet','4AMjntz','8412778OVGxhk','280840aILGTh','\x22\x20is\x20not\x20ready:\x20Lovrabet\x20CDN\x20Domain\x20is\x20not\x20configured.','cdn','996337rctBJU','7bMjrVs','2606322hthNOI','10sQJAZc'];a282_0x3101=function(){return _0x45c974;};return a282_0x3101();}export const OFFICIAL_ROUTING_PROFILES=a282_0x3f6435;function a282_0x2c7f(_0x1fc2be,_0xa93f0c){_0x1fc2be=_0x1fc2be-0x158;const _0x310194=a282_0x3101();let _0x2c7f9d=_0x310194[_0x1fc2be];return _0x2c7f9d;}export{ROUTING_CATALOG_DIGEST};export function getOfficialRoutingProfile(_0x327bd0){return OFFICIAL_ROUTING_PROFILES[_0x327bd0];}export function getOfficialRoutingCdn(_0x464605){const _0x301d9f=a282_0x2c7f,_0x3e75aa=getOfficialRoutingProfile(_0x464605)[_0x301d9f(0x15c)];if(!_0x3e75aa[_0x301d9f(0x166)])throw new Error('Official\x20routing\x20for\x20region\x20\x22'+_0x464605+_0x301d9f(0x15b));return{'libraries':_0x3e75aa['libraries'],'lovrabet':_0x3e75aa[_0x301d9f(0x166)]};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x477a01,_0x1eda9e){const _0x4cfca7=a283_0x35dc,_0x5119b9=_0x477a01();while(!![]){try{const _0x50d38c=parseInt(_0x4cfca7(0xb9))/0x1*(parseInt(_0x4cfca7(0xc3))/0x2)+-parseInt(_0x4cfca7(0xdc))/0x3+parseInt(_0x4cfca7(0xd8))/0x4+parseInt(_0x4cfca7(0xd7))/0x5+-parseInt(_0x4cfca7(0xd0))/0x6+parseInt(_0x4cfca7(0xc5))/0x7+parseInt(_0x4cfca7(0xdb))/0x8*(-parseInt(_0x4cfca7(0xc0))/0x9);if(_0x50d38c===_0x1eda9e)break;else _0x5119b9['push'](_0x5119b9['shift']());}catch(_0x430508){_0x5119b9['push'](_0x5119b9['shift']());}}}(a283_0x4222,0x7cd7c));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{isDaily,normalizeEnv}from'../constant/env.js';function a283_0x4222(){const _0x465b05=['6bOhIJK','VERBOSE','6390111lkuWyq','string','high-risk-write','projectConfig','locale','globalConfig','length','env','true','entries','ENV','1630848bTqPqS','apiDir','object','source','appcode','write','read','4656370vEUgIw','3384808ZXwQuZ','keys','trim','16953560rSQPbI','1475820FuBCaW','projectPath','riskLevel','value','region','234650ElaItI','pageSize','format','apps','cookie','accessKey','ACCESS_KEY','9XlqJgB','RISK_LEVEL','COOKIE'];a283_0x4222=function(){return _0x465b05;};return a283_0x4222();}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(_0x279c61){const _0x55d18f=a283_0x35dc;return typeof _0x279c61===_0x55d18f(0xc6)&&_0x279c61[_0x55d18f(0xda)]()?_0x279c61[_0x55d18f(0xda)]():undefined;}function appProfiles(_0x4fcd35){const _0x5616f5=a283_0x35dc;return _0x4fcd35['apps']&&typeof _0x4fcd35[_0x5616f5(0xbc)]===_0x5616f5(0xd2)?_0x4fcd35[_0x5616f5(0xbc)]:{};}function resolveDefaultAppName(_0x309039){const _0x27f3d2=a283_0x35dc,_0x304be1=stringConfigValue(_0x309039['defaultApp']);if(_0x304be1)return _0x304be1;const _0x52f24f=Object[_0x27f3d2(0xd9)](appProfiles(_0x309039));return _0x52f24f['length']===0x1?_0x52f24f[0x0]:undefined;}function resolveTopLevelAppCode(_0x2b0dc0){const _0x580705=a283_0x35dc;return stringConfigValue(_0x2b0dc0[_0x580705(0xd4)])||stringConfigValue(_0x2b0dc0['app']);}function normalizeRiskCeiling(_0x4b7caf){const _0xebaa54=a283_0x35dc;if(_0x4b7caf===undefined||_0x4b7caf===null)return undefined;if(_0x4b7caf===_0xebaa54(0xd6)||_0x4b7caf===_0xebaa54(0xd5)||_0x4b7caf===_0xebaa54(0xc7))return _0x4b7caf;return _0xebaa54(0xd6);}function a283_0x35dc(_0x56f95c,_0x1a2040){_0x56f95c=_0x56f95c-0xb9;const _0x422217=a283_0x4222();let _0x35dc05=_0x422217[_0x56f95c];return _0x35dc05;}function resolveRiskCeiling(..._0xd90f6b){const _0x32d760=a283_0x35dc;let _0x44ea6a;for(const _0x575729 of _0xd90f6b){const _0x32ac3f=normalizeRiskCeiling(_0x575729);_0x32ac3f&&(!_0x44ea6a||riskLevelOrder(_0x32ac3f)<riskLevelOrder(_0x44ea6a))&&(_0x44ea6a=_0x32ac3f);}return _0x44ea6a??DEFAULT_CONFIG_VALUES[_0x32d760(0xde)];}export function resolveAppConfig({raw:_0x139ecb,flags:_0x18fac7,layers:_0x4bd126,readEnv:_0x2f8af3}){const _0x36708c=a283_0x35dc,_0x15f3a4=_0x4bd126?.[_0x36708c(0xc8)]??{},_0x32e09b=_0x4bd126?.[_0x36708c(0xca)]??{},_0x871346=!!_0x4bd126?.[_0x36708c(0xdd)]||Object[_0x36708c(0xd9)](_0x15f3a4)['length']>0x0,_0x1bdad5=!_0x871346,_0x2e2c79=_0x871346?resolveDefaultAppName(_0x15f3a4):undefined,_0x56d9e4=_0x1bdad5?resolveDefaultAppName(_0x32e09b):undefined,_0x575018=stringConfigValue(_0x18fac7['app']),_0x248079=_0x2f8af3('APP'),_0x4a985d={};if(_0x139ecb[_0x36708c(0xbc)]&&typeof _0x139ecb[_0x36708c(0xbc)]===_0x36708c(0xd2))for(const [_0x390728,_0x32d12d]of Object[_0x36708c(0xce)](_0x139ecb[_0x36708c(0xbc)])){_0x32d12d&&typeof _0x32d12d===_0x36708c(0xd2)&&_0x32d12d[_0x36708c(0xd4)]&&(_0x4a985d[_0x390728]=_0x32d12d);}const _0x1e160c=_0x2e2c79||_0x56d9e4||resolveDefaultAppName(_0x139ecb),_0x4f4cea=Object[_0x36708c(0xd9)](_0x4a985d)[_0x36708c(0xcb)]>0x0,_0x336a3d=_0x575018||_0x2e2c79||_0x248079||_0x56d9e4||_0x1e160c||undefined,_0x3f09e5=stringConfigValue(_0x18fac7[_0x36708c(0xd4)]),_0x43c1d1=_0x3f09e5?Object['entries'](_0x4a985d)['filter'](([,_0x3e8478])=>_0x3e8478?.['appcode']===_0x3f09e5):[],_0x1a06d5=_0x575018&&_0x4a985d[_0x575018]?.[_0x36708c(0xd4)]===_0x3f09e5?[_0x575018,_0x4a985d[_0x575018]]:undefined,_0xc75083=_0x1a06d5??(_0x43c1d1[_0x36708c(0xcb)]===0x1?_0x43c1d1[0x0]:undefined),_0x1715a5=_0xc75083?.[0x0],_0xebe2e5=_0xc75083?.[0x1],_0x292bc6=_0x3f09e5?_0x1715a5:_0x336a3d;let _0x851295=_0x292bc6&&_0x4a985d[_0x292bc6]?_0x4a985d[_0x292bc6]:undefined;_0x3f09e5&&_0xebe2e5&&(_0x851295=_0xebe2e5);const _0x36871a=_0x3f09e5?_0xebe2e5??_0x851295:_0x851295,_0x47f283=!_0x575018&&!_0x2e2c79&&_0x248079&&_0x292bc6===_0x248079,_0x475c9b=_0x575018||(_0x47f283?_0x248079:undefined)||(_0x3f09e5?_0x1715a5:undefined),_0x2f0978=_0x36871a?.['appcode'],_0x5b5041=_0x871346?resolveTopLevelAppCode(_0x15f3a4):undefined,_0x4877b3=_0x1bdad5?resolveTopLevelAppCode(_0x32e09b):undefined,_0x15a35d=_0x575018||_0x2e2c79?_0x2f0978:undefined,_0x3d5a51=!_0x575018&&!_0x2e2c79?_0x2f0978:undefined,_0x2d48dc=_0x3f09e5||_0x15a35d||_0x5b5041||_0x3d5a51||_0x4877b3||undefined,_0x13e763=_0x871346?stringConfigValue(_0x15f3a4['env']):undefined,_0x597ca7=_0x1bdad5?stringConfigValue(_0x32e09b[_0x36708c(0xcc)]):undefined,_0x606a66=_0x18fac7[_0x36708c(0xcc)]||_0x36871a?.[_0x36708c(0xcc)]||_0x13e763||_0x2f8af3(_0x36708c(0xcf))||_0x597ca7||_0x139ecb[_0x36708c(0xcc)]||DEFAULT_CONFIG_VALUES[_0x36708c(0xcc)],_0x325722=_0x36871a?.[_0x36708c(0xc9)]||_0x139ecb['locale']||DEFAULT_CONFIG_VALUES[_0x36708c(0xc9)],_0x42a27d=_0x2f8af3(_0x36708c(0xc2))||_0x36871a?.[_0x36708c(0xbd)]||_0x139ecb[_0x36708c(0xbd)]||undefined,_0x507da8=_0x2f8af3(_0x36708c(0xbf))||_0x36871a?.[_0x36708c(0xbe)]||_0x139ecb['accessKey']||undefined,_0x3dd6db=_0x18fac7[_0x36708c(0xbb)]||_0x2f8af3('FORMAT')||_0x36871a?.[_0x36708c(0xbb)]||_0x139ecb[_0x36708c(0xbb)],_0x45b4cd=normalizeLegacyOutputFormat(_0x3dd6db),_0x3a17a5=_0x2f8af3('PAGE_SIZE')||_0x36871a?.[_0x36708c(0xba)]||_0x139ecb[_0x36708c(0xba)],_0x2550cd=_0x3a17a5?Number(_0x3a17a5)||undefined:undefined,_0x47c72c=_0x4bd126?[_0x4bd126[_0x36708c(0xca)][_0x36708c(0xde)],_0x4bd126[_0x36708c(0xc8)][_0x36708c(0xde)]]:[_0x139ecb['riskLevel']],_0x5bf87a=resolveRiskCeiling(..._0x47c72c,_0x36871a?.['riskLevel']),_0x305e2f=resolveRiskCeiling(_0x5bf87a,_0x2f8af3(_0x36708c(0xc1))),_0x6adbee=_0x2f8af3(_0x36708c(0xc4)),_0x1613da=_0x6adbee==='1'||_0x6adbee===_0x36708c(0xcd),_0x84eba4=_0x36871a?.[_0x36708c(0xd1)]||_0x139ecb[_0x36708c(0xd1)]||DEFAULT_CONFIG_VALUES[_0x36708c(0xd1)],_0x3dd7fa=selectConfiguredRegion({'appRegion':_0x36871a?.[_0x36708c(0xe0)],'projectRegion':_0x871346?_0x15f3a4[_0x36708c(0xe0)]:undefined,'globalRegion':_0x871346||_0x1bdad5?_0x32e09b[_0x36708c(0xe0)]:undefined,'mergedRegion':_0x139ecb[_0x36708c(0xe0)]}),_0x393b99=normalizeLovrabetRegion(_0x3dd7fa['value'])??DEFAULT_LOVRABET_REGION,_0x4332bf=isDaily(normalizeEnv(String(_0x606a66)))?'daily':'production';return{'appCode':typeof _0x2d48dc===_0x36708c(0xc6)&&_0x2d48dc[_0x36708c(0xda)]()?_0x2d48dc[_0x36708c(0xda)]():undefined,'region':_0x393b99,'regionConfiguredValue':_0x3dd7fa[_0x36708c(0xdf)],'regionSource':_0x3dd7fa[_0x36708c(0xd3)],'env':_0x4332bf,'locale':_0x325722,'cookie':_0x42a27d,'accessKey':_0x507da8,'format':_0x45b4cd,'pageSize':_0x2550cd,'riskLevel':_0x305e2f,'verbose':_0x1613da,'apiDir':_0x84eba4,'apps':_0x4a985d,'defaultApp':_0x1e160c,'currentApp':_0x4f4cea?_0x292bc6:undefined,'explicitAppName':_0x475c9b};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x38b966,_0x34381d){const _0x22badd=a284_0x1593,_0x1c8708=_0x38b966();while(!![]){try{const _0x30e7e3=parseInt(_0x22badd(0xf7))/0x1*(parseInt(_0x22badd(0xf6))/0x2)+parseInt(_0x22badd(0xfb))/0x3*(parseInt(_0x22badd(0xf4))/0x4)+-parseInt(_0x22badd(0xed))/0x5*(-parseInt(_0x22badd(0xf0))/0x6)+parseInt(_0x22badd(0xf2))/0x7*(parseInt(_0x22badd(0xfa))/0x8)+-parseInt(_0x22badd(0xf3))/0x9*(parseInt(_0x22badd(0xf5))/0xa)+parseInt(_0x22badd(0xf1))/0xb+-parseInt(_0x22badd(0xf8))/0xc;if(_0x30e7e3===_0x34381d)break;else _0x1c8708['push'](_0x1c8708['shift']());}catch(_0x54772b){_0x1c8708['push'](_0x1c8708['shift']());}}}(a284_0x2caa,0x8d753));import{getIsSessionValid}from'../auth/is-session-valid.js';function a284_0x2caa(){const _0x2610b1=['cookie','11464dKffPP','6363aSkVAb','1195OkzBbj','authRequired','../auth/get-cookie.js','4614AeCrtw','9858090fidfHl','4270pnsjma','480690pVWdur','164TFZjdo','80zDiOYj','543642CIiQJz','2yRRyEw','18936276KrPpDM'];a284_0x2caa=function(){return _0x2610b1;};return a284_0x2caa();}import{CliErrors}from'../errors.js';function a284_0x1593(_0x7d6e02,_0x5fe506){_0x7d6e02=_0x7d6e02-0xed;const _0x2caac2=a284_0x2caa();let _0x1593b9=_0x2caac2[_0x7d6e02];return _0x1593b9;}export async function buildAuth(_0x480d98){const _0x25b223=a284_0x1593,{getCookie:_0x40199a}=await import(_0x25b223(0xef)),_0x5b8d90=_0x480d98[_0x25b223(0xf9)]||_0x40199a(),_0x3667df=_0x5b8d90?await getIsSessionValid():![];return{'cookie':_0x5b8d90,'isLoggedIn':_0x3667df,async 'getOrLogin'(){const _0x269e1a=_0x25b223;if(_0x5b8d90&&_0x3667df)return _0x5b8d90;throw CliErrors[_0x269e1a(0xee)]();}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a285_0x47d4bf=a285_0x424c;(function(_0x57bebe,_0xf1c577){const _0x4c91a9=a285_0x424c,_0x160928=_0x57bebe();while(!![]){try{const _0x348c35=-parseInt(_0x4c91a9(0x132))/0x1*(parseInt(_0x4c91a9(0x10f))/0x2)+parseInt(_0x4c91a9(0x123))/0x3+-parseInt(_0x4c91a9(0x13a))/0x4*(-parseInt(_0x4c91a9(0x12e))/0x5)+parseInt(_0x4c91a9(0x114))/0x6+-parseInt(_0x4c91a9(0x127))/0x7+parseInt(_0x4c91a9(0x129))/0x8+-parseInt(_0x4c91a9(0x139))/0x9;if(_0x348c35===_0xf1c577)break;else _0x160928['push'](_0x160928['shift']());}catch(_0x4c17a3){_0x160928['push'](_0x160928['shift']());}}}(a285_0x3a1c,0x425b5));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_0x47d4bf(0x11b);function a285_0x3a1c(){const _0x2f8a1f=['runtimeDomain','empty','format','1431829RkYuSF','stringify','3902320owdDyN','defaultApp','data','certificateDomain','.tmp','62765ZLVabC','status','riskLevel','appDomain','1xciTpB','silent','migrated','apiDir','accessKey','inherit','warn','4540617sZIxTv','124cvlUGT','keys','appcode','trim','locale','length','set','Global','Project','string','userDomain','332042KmuBXE','utf8','\x0a\x20\x20','\x20config\x20file\x20ignored\x20(invalid\x20JSON\x20or\x20unreadable):\x20','object','501060sxVvCM','missing','app','project','config','env','pageSize','.rabetbase.json','cookie','message','apps','error','routing','cwd','apiDomain','559305tBExcb'];a285_0x3a1c=function(){return _0x2f8a1f;};return a285_0x3a1c();}export const CONFIG_NAMES=[NEW_CONFIG_NAME];const normalizedWriteCache=new Map();export function resolveConfigPath(_0x29f60e){for(const _0x864cf6 of CONFIG_NAMES){const _0x3670a7=resolve(_0x29f60e,_0x864cf6);if(existsSync(_0x3670a7))return _0x3670a7;}return undefined;}export function findProjectRootDirectory(_0x2513a6=process[a285_0x47d4bf(0x121)]()){let _0x2a9e3c=resolve(_0x2513a6);const {root:_0x19ce51}=parse(_0x2a9e3c),_0x2fb0ef=homedir();while(!![]){if(resolveConfigPath(_0x2a9e3c)){if(_0x2a9e3c===_0x2fb0ef)break;return _0x2a9e3c;}if(_0x2a9e3c===_0x19ce51||_0x2a9e3c===_0x2fb0ef)break;const _0x5f4c56=dirname(_0x2a9e3c);if(_0x5f4c56===_0x2a9e3c)break;_0x2a9e3c=_0x5f4c56;}return resolve(_0x2513a6);}export function getProjectConfigPath(){const _0x29cf5d=a285_0x47d4bf;return resolveConfigPath(process[_0x29cf5d(0x121)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function isInProject(){return!!getProjectConfigPath();}export function inspectCliConfigJsonFile(_0x2775c1){const _0x19388c=a285_0x47d4bf;if(!existsSync(_0x2775c1))return{'status':_0x19388c(0x115)};try{const _0x2c6b35=readFileSync(_0x2775c1,{'encoding':_0x19388c(0x110)});if(!_0x2c6b35?.[_0x19388c(0x13d)]())return{'status':_0x19388c(0x125)};const _0x2efb6a=JSON['parse'](_0x2c6b35);return{'status':'ok','data':_0x2efb6a};}catch(_0x516e2e){return{'status':_0x19388c(0x11f),'message':_0x516e2e instanceof Error?_0x516e2e[_0x19388c(0x11d)]:String(_0x516e2e)};}}function parseCliConfigJsonFile(_0x419600,_0x436bcc,_0x2fef6d){const _0x3ae8ed=a285_0x47d4bf,_0x489ee8=inspectCliConfigJsonFile(_0x419600);if(_0x489ee8['status']===_0x3ae8ed(0x115)||_0x489ee8['status']===_0x3ae8ed(0x125))return{};if(_0x489ee8[_0x3ae8ed(0x12f)]==='ok')return _0x489ee8[_0x3ae8ed(0x12b)];return _0x436bcc===_0x3ae8ed(0x138)&&_0x2fef6d&&console[_0x3ae8ed(0x11f)](CLI_BIN_NAME+':\x20'+_0x2fef6d+_0x3ae8ed(0x112)+_0x419600+_0x3ae8ed(0x111)+_0x489ee8[_0x3ae8ed(0x11d)]),{};}function normalizeLegacyConfigShape(_0x59c449){const _0x1af16e=a285_0x47d4bf;if(!_0x59c449||typeof _0x59c449!==_0x1af16e(0x113))return{'config':{},'migrated':![]};const _0x3221b3={..._0x59c449},_0x1a3050=_0x3221b3[_0x1af16e(0x11e)]&&typeof _0x3221b3['apps']===_0x1af16e(0x113)?{..._0x3221b3['apps']}:{},_0x17a22a=Object[_0x1af16e(0x13b)](_0x1a3050)[_0x1af16e(0x13f)],_0x468377=_0x3221b3[_0x1af16e(0x13c)]||_0x3221b3[_0x1af16e(0x116)];let _0x20f5e7=![];if(_0x468377&&_0x17a22a===0x0){const _0x559359=typeof _0x3221b3['defaultApp']===_0x1af16e(0x143)&&_0x3221b3[_0x1af16e(0x12a)][_0x1af16e(0x13d)]()?_0x3221b3['defaultApp']:String(_0x468377)[_0x1af16e(0x13d)]();_0x1a3050[_0x559359]={'appcode':String(_0x468377)[_0x1af16e(0x13d)](),..._0x3221b3[_0x1af16e(0x119)]!=null?{'env':_0x3221b3['env']}:{},..._0x3221b3[_0x1af16e(0x135)]!=null?{'apiDir':_0x3221b3[_0x1af16e(0x135)]}:{},..._0x3221b3['cookie']!=null?{'cookie':_0x3221b3['cookie']}:{},..._0x3221b3[_0x1af16e(0x136)]!=null?{'accessKey':_0x3221b3['accessKey']}:{},..._0x3221b3[_0x1af16e(0x126)]!=null?{'format':_0x3221b3['format']}:{},..._0x3221b3[_0x1af16e(0x11a)]!=null?{'pageSize':_0x3221b3[_0x1af16e(0x11a)]}:{},..._0x3221b3[_0x1af16e(0x130)]!=null?{'riskLevel':_0x3221b3['riskLevel']}:{},..._0x3221b3[_0x1af16e(0x13e)]!=null?{'locale':_0x3221b3[_0x1af16e(0x13e)]}:{}},_0x3221b3['apps']=_0x1a3050,delete _0x3221b3[_0x1af16e(0x12a)],_0x20f5e7=!![];}return(_0x1af16e(0x13c)in _0x3221b3||_0x1af16e(0x116)in _0x3221b3)&&(delete _0x3221b3[_0x1af16e(0x13c)],delete _0x3221b3[_0x1af16e(0x116)],_0x20f5e7=!![]),{'config':_0x3221b3,'migrated':_0x20f5e7};}function writeNormalizedConfigIfNeeded(_0x3f29b9,_0x1188cd){const _0x331d7c=a285_0x47d4bf,_0x13472f=JSON[_0x331d7c(0x128)](normalizeConfigForWrite(_0x1188cd),null,0x2)+'\x0a';if(normalizedWriteCache['get'](_0x3f29b9)===_0x13472f)return;writeConfigFile(_0x3f29b9,_0x1188cd),normalizedWriteCache[_0x331d7c(0x140)](_0x3f29b9,_0x13472f);}function parseAndNormalizeConfig(_0x24cde0,_0x40124a,_0xa059ca){const _0x2aa8c3=a285_0x47d4bf,_0x29cfd4=parseCliConfigJsonFile(_0x24cde0,_0x40124a,_0xa059ca),_0xf87a2=normalizeLegacyConfigShape(_0x29cfd4);if(_0xf87a2[_0x2aa8c3(0x134)])try{writeNormalizedConfigIfNeeded(_0x24cde0,_0xf87a2[_0x2aa8c3(0x118)]);}catch{}return _0xf87a2[_0x2aa8c3(0x118)];}export function loadRawConfigLayers(_0x26a060){const _0x4b28c8=a285_0x47d4bf;let _0x410637={},_0xbcdaa1={};const _0x51f43c=resolveConfigPath(homedir());_0x51f43c&&(_0x410637=parseAndNormalizeConfig(_0x51f43c,_0x4b28c8(0x138),_0x4b28c8(0x141)));const _0x18e9e2=_0x26a060??findProjectRootDirectory(),_0x27e965=resolveConfigPath(_0x18e9e2);return _0x27e965&&(_0xbcdaa1=parseAndNormalizeConfig(_0x27e965,_0x4b28c8(0x138),_0x4b28c8(0x142))),{'globalPath':_0x51f43c,'projectPath':_0x27e965,'globalConfig':_0x410637,'projectConfig':_0xbcdaa1};}const INHERIT_WHITELIST=[a285_0x47d4bf(0x11c),a285_0x47d4bf(0x136),a285_0x47d4bf(0x13e),'format',a285_0x47d4bf(0x130),a285_0x47d4bf(0x11a),'region',a285_0x47d4bf(0x120),a285_0x47d4bf(0x144),a285_0x47d4bf(0x122),a285_0x47d4bf(0x124),'skillDomain','kbDomain','kbServiceDomain',a285_0x47d4bf(0x131),'localDomain',a285_0x47d4bf(0x12c)];export function mergeRawConfigLayers(_0x51c73a){const _0x5b17dc=a285_0x47d4bf,{globalConfig:_0x3dc95e,projectConfig:_0x5c424d}=_0x51c73a,_0x256a32=!!_0x51c73a['projectPath']||Object[_0x5b17dc(0x13b)](_0x5c424d)[_0x5b17dc(0x13f)]>0x0;if(!_0x256a32)return mergeGlobalOnly(_0x3dc95e);return mergeProjectFirst(_0x3dc95e,_0x5c424d);}function mergeGlobalOnly(_0x3c2421){const _0x38427f=a285_0x47d4bf,_0x38d95b={..._0x3c2421};delete _0x38d95b['inherit'];const _0x3ea16c=_0x3c2421[_0x38427f(0x11e)]&&typeof _0x3c2421[_0x38427f(0x11e)]==='object'?_0x3c2421[_0x38427f(0x11e)]:{};if(Object[_0x38427f(0x13b)](_0x3ea16c)[_0x38427f(0x13f)]>0x0)_0x38d95b[_0x38427f(0x11e)]=_0x3ea16c;if(_0x3c2421[_0x38427f(0x12a)])_0x38d95b[_0x38427f(0x12a)]=_0x3c2421[_0x38427f(0x12a)];return _0x38d95b;}function a285_0x424c(_0x5d76e3,_0xfe0220){_0x5d76e3=_0x5d76e3-0x10f;const _0x3a1c99=a285_0x3a1c();let _0x424cf1=_0x3a1c99[_0x5d76e3];return _0x424cf1;}function mergeProjectFirst(_0x16605a,_0x3349e0){const _0x48267c=a285_0x47d4bf,_0x27ccdc={..._0x3349e0};delete _0x27ccdc[_0x48267c(0x137)];for(const _0x559d60 of INHERIT_WHITELIST){!(_0x559d60 in _0x27ccdc)&&_0x559d60 in _0x16605a&&(_0x27ccdc[_0x559d60]=_0x16605a[_0x559d60]);}const _0x5ddd5f=_0x3349e0[_0x48267c(0x11e)]&&typeof _0x3349e0['apps']==='object'?_0x3349e0[_0x48267c(0x11e)]:{};return Object[_0x48267c(0x13b)](_0x5ddd5f)[_0x48267c(0x13f)]>0x0?_0x27ccdc[_0x48267c(0x11e)]=_0x5ddd5f:delete _0x27ccdc['apps'],_0x48267c(0x12a)in _0x3349e0?_0x27ccdc[_0x48267c(0x12a)]=_0x3349e0[_0x48267c(0x12a)]:delete _0x27ccdc[_0x48267c(0x12a)],_0x27ccdc;}export function readRawConfigWithLayers(_0x55e76d){const _0x1449f3=loadRawConfigLayers(_0x55e76d);return{'config':mergeRawConfigLayers(_0x1449f3),'layers':_0x1449f3};}export function readRawConfig(_0x4d8a3f){return mergeRawConfigLayers(loadRawConfigLayers(_0x4d8a3f));}export function readConfigFile(_0x846325){const _0x10c57d=a285_0x47d4bf;return parseAndNormalizeConfig(_0x846325,_0x10c57d(0x133));}export function writeConfigFile(_0x34445b,_0x3495f7){const _0x18b77e=a285_0x47d4bf,_0x55fcef=dirname(_0x34445b);!existsSync(_0x55fcef)&&mkdirSync(_0x55fcef,{'recursive':!![]});const _0x4cb994=_0x34445b+_0x18b77e(0x12d);try{const _0x59eb93=normalizeConfigForWrite(_0x3495f7);writeFileSync(_0x4cb994,JSON[_0x18b77e(0x128)](_0x59eb93,null,0x2)+'\x0a',{'encoding':'utf8','mode':0x180}),renameSync(_0x4cb994,_0x34445b);}catch(_0x4bef81){try{unlinkSync(_0x4cb994);}catch{}throw _0x4bef81;}}export function resolveWriteConfigPath(_0x2ba1ae){const _0xf3753=a285_0x47d4bf,_0x41bdc3=_0x2ba1ae===_0xf3753(0x117)?process['cwd']():homedir(),_0x3ffdf4=resolveConfigPath(_0x41bdc3);return _0x3ffdf4??resolve(_0x41bdc3,NEW_CONFIG_NAME);}
|
package/lib/context.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a286_0x26a0f0=a286_0x37af;(function(_0x291a3b,_0x5d1e1e){const _0x30ce9a=a286_0x37af,_0x153c3f=_0x291a3b();while(!![]){try{const _0x3c52ac=-parseInt(_0x30ce9a(0x1e0))/0x1+-parseInt(_0x30ce9a(0x1ca))/0x2+parseInt(_0x30ce9a(0x1de))/0x3+-parseInt(_0x30ce9a(0x1b1))/0x4+parseInt(_0x30ce9a(0x1bb))/0x5*(parseInt(_0x30ce9a(0x1d8))/0x6)+parseInt(_0x30ce9a(0x1c5))/0x7*(-parseInt(_0x30ce9a(0x1e9))/0x8)+parseInt(_0x30ce9a(0x1b0))/0x9;if(_0x3c52ac===_0x5d1e1e)break;else _0x153c3f['push'](_0x153c3f['shift']());}catch(_0x4e45bc){_0x153c3f['push'](_0x153c3f['shift']());}}}(a286_0x5122,0xa15eb));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(_0x3c6731){return process.env[`RABETBASE_${_0x3c6731}`]||process.env[`LOVRABET_${_0x3c6731}`]||undefined;}function a286_0x5122(){const _0x572e01=['kbDomain','values','apps','region','defaultApp','26357724qEzAOs','613960MgVawT','projectConfig','trim','some','globalConfig','agentDomain','doctor','routingConfig','join','entries','125AOuVJI','apiDir','appcode','daily','filePath','configuredRegion','app','filter','config','platformDomain','4680025DmnHGu','runtimeDomain','Rabetbase\x20configuration','app\x20profile\x20\x22','regionConfiguredValue','2066974FrTfyC','kbServiceDomain','./constant/env.js','prototype','string','domains','template_base_url','length','localDomain','userDomain','routing','source','global\x20Rabetbase\x20configuration','cwd','51132uHudWc','certificateDomain','appDomain','targetEnv','slice','raw','991056CtcdyQ','hasOwnProperty','955515chlkoL','env','regionSource','./utils/is-non-interactive.js','skillDomain','./constant/domain.js','keys','call','apiGroup','8iQgtbC','apiDomain','name','skillHubDomain','setRawCommand','object','https://g.lovrabet.com/dist/lovrabet-skill','global','currentApp','project'];a286_0x5122=function(){return _0x572e01;};return a286_0x5122();}function optionalString(_0x4abda9){const _0x10fdab=a286_0x37af;return typeof _0x4abda9===_0x10fdab(0x1ce)&&_0x4abda9[_0x10fdab(0x1b3)]()?_0x4abda9[_0x10fdab(0x1b3)]():undefined;}export function isRoutingRecoveryService(_0x162bdb){const _0x4abb2c=a286_0x37af;return _0x162bdb===_0x4abb2c(0x1c3)||_0x162bdb===_0x4abb2c(0x1b7);}function a286_0x37af(_0x3d217d,_0x23611c){_0x3d217d=_0x3d217d-0x1a3;const _0x512285=a286_0x5122();let _0x37af20=_0x512285[_0x3d217d];return _0x37af20;}export async function createContext(_0x539f0c){const _0x3a026d=a286_0x37af,{config:_0xf0b149,layers:_0x1ae201}=readRawConfigWithLayers(),_0x4e242e=buildConfig(_0xf0b149,_0x539f0c,_0x1ae201);await initGlobalEnvironment(_0x4e242e);const {getUserDomain:_0x3c0b24,getApiDomain:_0xf644d7}=await import(_0x3a026d(0x1e5)),_0x85181d={'apiDomain':_0xf644d7(),'userDomain':_0x3c0b24()},_0x51ce63=await buildAuth(_0x4e242e);logger['setLogPath'](process[_0x3a026d(0x1d7)]());const _0x5be315=(CLI_BIN_NAME+'\x20'+process['argv'][_0x3a026d(0x1dc)](0x2)[_0x3a026d(0x1b9)]('\x20'))[_0x3a026d(0x1b3)]();logger[_0x3a026d(0x1a5)](_0x5be315);const {isNonInteractive:_0x1fb1f7}=await import(_0x3a026d(0x1e3)),_0x59bc27=_0x1fb1f7(_0x539f0c);return{'config':_0x4e242e,'auth':_0x51ce63,'logger':logger,'env':_0x85181d,'nonInteractive':_0x59bc27};}export function buildConfigFromFlags(_0x8a9e95){const {config:_0x27db01,layers:_0x31a704}=readRawConfigWithLayers();return buildConfig(_0x27db01,_0x8a9e95,_0x31a704);}export async function initGlobalEnvironment(_0x28a98d){const _0x9a7062=a286_0x37af,_0x5b6c62=_0x28a98d['regionSource']===_0x9a7062(0x1c1)&&_0x28a98d[_0x9a7062(0x1a9)]?'app\x20profile\x20\x22'+_0x28a98d[_0x9a7062(0x1a9)]+'\x22':_0x28a98d[_0x9a7062(0x1e2)]===_0x9a7062(0x1aa)?'project\x20Rabetbase\x20configuration':_0x28a98d[_0x9a7062(0x1e2)]===_0x9a7062(0x1a8)?_0x9a7062(0x1d6):_0x9a7062(0x1c7);await initConfiguredEnvironment({'raw':_0x28a98d['raw'],'configuredRegion':_0x28a98d[_0x9a7062(0x1c9)]??_0x28a98d[_0x9a7062(0x1dd)]?.[_0x9a7062(0x1ae)]??_0x28a98d[_0x9a7062(0x1ae)],'regionLocation':_0x5b6c62,'targetEnv':_0x28a98d[_0x9a7062(0x1e1)]});}async function initConfiguredEnvironment(_0x8cc95c){const _0x320d09=a286_0x37af,_0x4931d0=resolveConfiguredRegion(_0x8cc95c[_0x320d09(0x1c0)],_0x8cc95c['regionLocation']),_0x31cf80=resolveEnterpriseRoutingManifest(_0x8cc95c[_0x320d09(0x1dd)]?.[_0x320d09(0x1d4)]),_0x1d02b5={'region':_0x4931d0,'apiDomain':_0x31cf80?_0x31cf80['domains'][_0x320d09(0x1ea)]:optionalString(_0x8cc95c['raw']?.['apiDomain']),'userDomain':_0x31cf80?_0x31cf80[_0x320d09(0x1cf)][_0x320d09(0x1d3)]:optionalString(_0x8cc95c[_0x320d09(0x1dd)]?.[_0x320d09(0x1d3)]),'runtimeDomain':_0x31cf80?_0x31cf80[_0x320d09(0x1cf)]['runtimeDomain']:optionalString(_0x8cc95c['raw']?.[_0x320d09(0x1c6)]),'skillDomain':_0x31cf80?_0x31cf80['domains'][_0x320d09(0x1e4)]:optionalString(_0x8cc95c[_0x320d09(0x1dd)]?.['skillDomain'])||optionalString(_0x8cc95c[_0x320d09(0x1dd)]?.[_0x320d09(0x1a4)])||optionalString(_0x8cc95c[_0x320d09(0x1dd)]?.[_0x320d09(0x1b6)])||optionalString(_0x8cc95c[_0x320d09(0x1dd)]?.[_0x320d09(0x1c4)]),'kbDomain':_0x31cf80?_0x31cf80[_0x320d09(0x1cf)][_0x320d09(0x1ab)]:optionalString(_0x8cc95c[_0x320d09(0x1dd)]?.['kbDomain'])||optionalString(_0x8cc95c[_0x320d09(0x1dd)]?.[_0x320d09(0x1b6)])||optionalString(_0x8cc95c['raw']?.[_0x320d09(0x1c4)]),'kbServiceDomain':_0x31cf80?_0x31cf80['domains'][_0x320d09(0x1cb)]:optionalString(_0x8cc95c[_0x320d09(0x1dd)]?.[_0x320d09(0x1cb)]),'appDomain':_0x31cf80?_0x31cf80[_0x320d09(0x1cf)][_0x320d09(0x1da)]:optionalString(_0x8cc95c[_0x320d09(0x1dd)]?.[_0x320d09(0x1da)]),'localDomain':_0x31cf80?_0x31cf80[_0x320d09(0x1cf)][_0x320d09(0x1d2)]:optionalString(_0x8cc95c['raw']?.['localDomain']),'certificateDomain':_0x31cf80?_0x31cf80[_0x320d09(0x1cf)][_0x320d09(0x1d9)]:optionalString(_0x8cc95c[_0x320d09(0x1dd)]?.[_0x320d09(0x1d9)]),'cdn':_0x31cf80?.['cdn'],'allowOfficialKbServiceDefault':!(_0x31cf80!==undefined||['apiDomain',_0x320d09(0x1d3),_0x320d09(0x1c6),_0x320d09(0x1e4),'skillHubDomain',_0x320d09(0x1ab),'kbServiceDomain',_0x320d09(0x1b6),_0x320d09(0x1c4),'appDomain','localDomain',_0x320d09(0x1d9)][_0x320d09(0x1b4)](_0x4a0b33=>Object[_0x320d09(0x1cd)]['hasOwnProperty'][_0x320d09(0x1e7)](_0x8cc95c[_0x320d09(0x1dd)]??{},_0x4a0b33)))},{initEnv:_0x70cf76}=await import(_0x320d09(0x1cc)),{initDomains:_0x22d3a0}=await import('./constant/domain.js');_0x70cf76(_0x8cc95c[_0x320d09(0x1db)]),_0x22d3a0(_0x1d02b5);}export async function initMultiAppEnvironment(_0x3b00d2){const _0x4ff057=a286_0x37af;await initConfiguredEnvironment({'raw':_0x3b00d2[_0x4ff057(0x1b8)],'configuredRegion':_0x3b00d2[_0x4ff057(0x1ae)],'regionLocation':_0x4ff057(0x1c8)+_0x3b00d2[_0x4ff057(0x1a3)]+'\x22','targetEnv':_0x3b00d2['env']===_0x4ff057(0x1be)?_0x4ff057(0x1be):'production'});}export function getConfigAppCode(_0x41eef8){const _0x4d0262=a286_0x37af,_0x26092f=readRawConfig(_0x41eef8);if(_0x26092f['apps']&&typeof _0x26092f[_0x4d0262(0x1ad)]===_0x4d0262(0x1a6)){const _0x32664a=_0x26092f[_0x4d0262(0x1af)];if(_0x32664a)return _0x26092f[_0x4d0262(0x1ad)][_0x32664a]?.[_0x4d0262(0x1bd)]?String(_0x26092f[_0x4d0262(0x1ad)][_0x32664a][_0x4d0262(0x1bd)])[_0x4d0262(0x1b3)]():undefined;const _0x27992a=Object[_0x4d0262(0x1ac)](_0x26092f[_0x4d0262(0x1ad)]);if(_0x27992a['length']===0x1&&_0x27992a[0x0]?.[_0x4d0262(0x1bd)])return String(_0x27992a[0x0][_0x4d0262(0x1bd)])[_0x4d0262(0x1b3)]();}const _0x46702b=_0x26092f[_0x4d0262(0x1bd)]||_0x26092f[_0x4d0262(0x1c1)];if(typeof _0x46702b!==_0x4d0262(0x1ce)||_0x46702b[_0x4d0262(0x1b3)]()==='')return undefined;return _0x46702b[_0x4d0262(0x1b3)]();}const CONNECTION_ROUTING_KEYS=[a286_0x26a0f0(0x1d4),a286_0x26a0f0(0x1ea),a286_0x26a0f0(0x1d3),'runtimeDomain',a286_0x26a0f0(0x1e4),a286_0x26a0f0(0x1a4),a286_0x26a0f0(0x1ab),a286_0x26a0f0(0x1cb),a286_0x26a0f0(0x1b6),'platformDomain','appDomain','localDomain',a286_0x26a0f0(0x1d9)];function withAppProfileRouting(_0x57f0c4,_0x330132){const _0x1b9d52=a286_0x26a0f0;if(!_0x330132||_0x330132[_0x1b9d52(0x1cb)]===undefined)return _0x57f0c4;return{..._0x57f0c4,'kbServiceDomain':_0x330132['kbServiceDomain']};}function pickConnectionRoutingConfig(_0x413fb3,_0x36963b){const _0x234cb7={'region':_0x36963b};for(const _0x3ba3d2 of CONNECTION_ROUTING_KEYS){if(_0x413fb3[_0x3ba3d2]!==undefined)_0x234cb7[_0x3ba3d2]=_0x413fb3[_0x3ba3d2];}return _0x234cb7;}export function getMultiAppConfigs(_0x21aa30=a286_0x26a0f0(0x1aa),_0x2020e8){const _0x2165a9=a286_0x26a0f0,_0x8eb897=loadRawConfigLayers(_0x2020e8);let _0x26acb0,_0x1f919f;const _0x17de40=mergeRawConfigLayers(_0x8eb897),_0xd0348=_0x8eb897[_0x2165a9(0x1b5)][_0x2165a9(0x1ad)]&&typeof _0x8eb897[_0x2165a9(0x1b5)]['apps']==='object'?_0x8eb897[_0x2165a9(0x1b5)]['apps']:{},_0x1dff50=_0x8eb897[_0x2165a9(0x1b2)][_0x2165a9(0x1ad)]&&typeof _0x8eb897['projectConfig'][_0x2165a9(0x1ad)]===_0x2165a9(0x1a6)?_0x8eb897[_0x2165a9(0x1b2)][_0x2165a9(0x1ad)]:{};_0x21aa30==='merged'?(_0x26acb0={..._0xd0348,..._0x1dff50},_0x1f919f=_0x17de40[_0x2165a9(0x1af)]):(_0x26acb0=_0x8eb897[_0x2165a9(0x1b2)][_0x2165a9(0x1ad)],_0x1f919f=_0x8eb897[_0x2165a9(0x1b2)]['defaultApp']);!_0x1f919f&&_0x26acb0&&typeof _0x26acb0===_0x2165a9(0x1a6)&&Object[_0x2165a9(0x1e6)](_0x26acb0)['length']===0x1&&(_0x1f919f=Object['keys'](_0x26acb0)[0x0]);if(!_0x26acb0||typeof _0x26acb0!==_0x2165a9(0x1a6)||Object[_0x2165a9(0x1e6)](_0x26acb0)[_0x2165a9(0x1d1)]===0x0)return null;return Object[_0x2165a9(0x1ba)](_0x26acb0)['map'](([_0x3ed7b4,_0x2042c6])=>{const _0x5218c3=_0x2165a9,_0x25fe09=_0x21aa30===_0x5218c3(0x1aa)||Object[_0x5218c3(0x1cd)][_0x5218c3(0x1df)][_0x5218c3(0x1e7)](_0x1dff50,_0x3ed7b4),_0x5ee0a8=withAppProfileRouting(_0x25fe09?_0x17de40:_0x8eb897['globalConfig'],_0x2042c6),_0x2eb19a=resolveEffectiveRegion({'appRegion':_0x2042c6?.['region'],'projectRegion':_0x25fe09?_0x8eb897[_0x5218c3(0x1b2)][_0x5218c3(0x1ae)]:undefined,'globalRegion':_0x8eb897['globalConfig'][_0x5218c3(0x1ae)],'mergedRegion':_0x5ee0a8[_0x5218c3(0x1ae)],'appName':_0x3ed7b4});return{'name':_0x3ed7b4,'appcode':_0x2042c6?.[_0x5218c3(0x1bd)]||'','apiGroup':optionalString(_0x2042c6?.[_0x5218c3(0x1e8)]),'isDefault':_0x3ed7b4===_0x1f919f,'region':_0x2eb19a[_0x5218c3(0x1ae)],'regionSource':_0x2eb19a[_0x5218c3(0x1d5)],'env':_0x2042c6?.[_0x5218c3(0x1e1)],'apiDir':optionalString(_0x2042c6?.[_0x5218c3(0x1bc)])||optionalString(_0x5ee0a8[_0x5218c3(0x1bc)]),'cookie':_0x2042c6?.['cookie']||undefined,'routingConfig':pickConnectionRoutingConfig(_0x5ee0a8,_0x2eb19a['region'])};})[_0x2165a9(0x1c2)](_0x1237db=>_0x1237db[_0x2165a9(0x1bd)]);}export function getTemplateBaseUrl(_0x3b530e){const _0x33cd41=a286_0x26a0f0,_0x3092e5=readRawConfig(_0x3b530e);if(_0x3092e5[_0x33cd41(0x1d0)]&&typeof _0x3092e5['template_base_url']==='string')return _0x3092e5['template_base_url']['replace'](/\/$/,'');return _0x33cd41(0x1a7);}function buildConfig(_0x23466d,_0x46c6b1,_0x26e3f4){const _0x14cdaa=a286_0x26a0f0,_0x11cbd9=resolveAppConfig({'raw':_0x23466d,'flags':_0x46c6b1,'layers':_0x26e3f4,'readEnv':env}),_0x13a1a7=_0x11cbd9[_0x14cdaa(0x1a9)]?_0x11cbd9[_0x14cdaa(0x1ad)][_0x11cbd9['currentApp']]:undefined;return{..._0x11cbd9,'raw':withAppProfileRouting(_0x23466d,_0x13a1a7)};}export function resolveApiFilePath(_0x202506,_0x1bd35a,_0x3817dc){const _0xab835b=a286_0x26a0f0;return resolveApiModelSource(_0x202506,_0x1bd35a,_0x3817dc)[_0xab835b(0x1bf)];}
|
|
1
|
+
const a286_0x58056b=a286_0x3875;(function(_0x5cbd15,_0x352890){const _0x1bfa71=a286_0x3875,_0x5e32a3=_0x5cbd15();while(!![]){try{const _0x283b33=parseInt(_0x1bfa71(0x214))/0x1+-parseInt(_0x1bfa71(0x1df))/0x2+parseInt(_0x1bfa71(0x1e9))/0x3+-parseInt(_0x1bfa71(0x1e8))/0x4+parseInt(_0x1bfa71(0x1e0))/0x5*(parseInt(_0x1bfa71(0x1e7))/0x6)+parseInt(_0x1bfa71(0x1f0))/0x7+-parseInt(_0x1bfa71(0x204))/0x8*(parseInt(_0x1bfa71(0x1ed))/0x9);if(_0x283b33===_0x352890)break;else _0x5e32a3['push'](_0x5e32a3['shift']());}catch(_0x3452fd){_0x5e32a3['push'](_0x5e32a3['shift']());}}}(a286_0x386c,0x3a3a7));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';function a286_0x386c(){const _0xcf7411=['routing','raw','95466NkcuAz','1019640zVHQzh','1082619UbiAlA','filePath','appDomain','apiGroup','861453dKjtrV','setRawCommand','values','1928710scqQxC','replace','project','keys','hasOwnProperty','./utils/is-non-interactive.js','env','apps','configuredRegion','cookie','cwd','globalConfig','app\x20profile\x20\x22','regionConfiguredValue','config','prototype','filter','length','doctor','agentDomain','16OlgaGV','argv','name','merged','join','daily','Rabetbase\x20configuration','global\x20Rabetbase\x20configuration','call','currentApp','some','./constant/env.js','apiDomain','routingConfig','./constant/domain.js','object','34420lLmzTa','kbServiceDomain','domains','regionSource','userDomain','certificateDomain','source','skillHubDomain','entries','appcode','string','slice','https://g.lovrabet.com/dist/lovrabet-skill','setLogPath','project\x20Rabetbase\x20configuration','region','trim','map','localDomain','platformDomain','kbDomain','skillDomain','global','regionLocation','template_base_url','apiDir','projectConfig','67418grUlqX','15ZAHLym','targetEnv','defaultApp','app','runtimeDomain'];a286_0x386c=function(){return _0xcf7411;};return a286_0x386c();}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(_0x42716f){return process.env[`RABETBASE_${_0x42716f}`]||process.env[`LOVRABET_${_0x42716f}`]||undefined;}function optionalString(_0x458196){const _0x58e2b9=a286_0x3875;return typeof _0x458196==='string'&&_0x458196['trim']()?_0x458196[_0x58e2b9(0x224)]():undefined;}export function isRoutingRecoveryService(_0x20b96f){const _0x3cfdd7=a286_0x3875;return _0x20b96f===_0x3cfdd7(0x1fe)||_0x20b96f===_0x3cfdd7(0x202);}export async function createContext(_0x313af7){const _0x376150=a286_0x3875,{config:_0x5d2666,layers:_0x3a39d8}=readRawConfigWithLayers(),_0x2f5160=buildConfig(_0x5d2666,_0x313af7,_0x3a39d8);await initGlobalEnvironment(_0x2f5160);const {getUserDomain:_0x24e575,getApiDomain:_0x8a17e8}=await import(_0x376150(0x212)),_0x4cf558={'apiDomain':_0x8a17e8(),'userDomain':_0x24e575()},_0x49464a=await buildAuth(_0x2f5160);logger[_0x376150(0x221)](process[_0x376150(0x1fa)]());const _0x21adf7=(CLI_BIN_NAME+'\x20'+process[_0x376150(0x205)][_0x376150(0x21f)](0x2)[_0x376150(0x208)]('\x20'))[_0x376150(0x224)]();logger[_0x376150(0x1ee)](_0x21adf7);const {isNonInteractive:_0x4c2715}=await import(_0x376150(0x1f5)),_0x2c9073=_0x4c2715(_0x313af7);return{'config':_0x2f5160,'auth':_0x49464a,'logger':logger,'env':_0x4cf558,'nonInteractive':_0x2c9073};}export function buildConfigFromFlags(_0x2e9165){const {config:_0x41da2d,layers:_0x9c3e15}=readRawConfigWithLayers();return buildConfig(_0x41da2d,_0x2e9165,_0x9c3e15);}export async function initGlobalEnvironment(_0x1f75b2){const _0x542dc9=a286_0x3875,_0x5e75f2=_0x1f75b2[_0x542dc9(0x217)]===_0x542dc9(0x1e3)&&_0x1f75b2['currentApp']?_0x542dc9(0x1fc)+_0x1f75b2[_0x542dc9(0x20d)]+'\x22':_0x1f75b2[_0x542dc9(0x217)]==='project'?_0x542dc9(0x222):_0x1f75b2['regionSource']===_0x542dc9(0x1da)?_0x542dc9(0x20b):_0x542dc9(0x20a);await initConfiguredEnvironment({'raw':_0x1f75b2[_0x542dc9(0x1e6)],'configuredRegion':_0x1f75b2[_0x542dc9(0x1fd)]??_0x1f75b2[_0x542dc9(0x1e6)]?.[_0x542dc9(0x223)]??_0x1f75b2[_0x542dc9(0x223)],'regionLocation':_0x5e75f2,'targetEnv':_0x1f75b2[_0x542dc9(0x1f6)]});}async function initConfiguredEnvironment(_0x4be705){const _0x2de10b=a286_0x3875,_0x53743e=resolveConfiguredRegion(_0x4be705[_0x2de10b(0x1f8)],_0x4be705[_0x2de10b(0x1db)]),_0x557e0a=resolveEnterpriseRoutingManifest(_0x4be705[_0x2de10b(0x1e6)]?.[_0x2de10b(0x1e5)]),_0x137591={'region':_0x53743e,'apiDomain':_0x557e0a?_0x557e0a['domains'][_0x2de10b(0x210)]:optionalString(_0x4be705[_0x2de10b(0x1e6)]?.[_0x2de10b(0x210)]),'userDomain':_0x557e0a?_0x557e0a[_0x2de10b(0x216)][_0x2de10b(0x218)]:optionalString(_0x4be705[_0x2de10b(0x1e6)]?.[_0x2de10b(0x218)]),'runtimeDomain':_0x557e0a?_0x557e0a[_0x2de10b(0x216)][_0x2de10b(0x1e4)]:optionalString(_0x4be705['raw']?.['runtimeDomain']),'skillDomain':_0x557e0a?_0x557e0a['domains'][_0x2de10b(0x1d9)]:optionalString(_0x4be705[_0x2de10b(0x1e6)]?.[_0x2de10b(0x1d9)])||optionalString(_0x4be705['raw']?.[_0x2de10b(0x21b)])||optionalString(_0x4be705[_0x2de10b(0x1e6)]?.[_0x2de10b(0x203)])||optionalString(_0x4be705['raw']?.[_0x2de10b(0x1d7)]),'kbDomain':_0x557e0a?_0x557e0a[_0x2de10b(0x216)][_0x2de10b(0x1d8)]:optionalString(_0x4be705[_0x2de10b(0x1e6)]?.[_0x2de10b(0x1d8)])||optionalString(_0x4be705['raw']?.[_0x2de10b(0x203)])||optionalString(_0x4be705[_0x2de10b(0x1e6)]?.[_0x2de10b(0x1d7)]),'kbServiceDomain':_0x557e0a?_0x557e0a['domains']['kbServiceDomain']:optionalString(_0x4be705[_0x2de10b(0x1e6)]?.[_0x2de10b(0x215)]),'appDomain':_0x557e0a?_0x557e0a['domains'][_0x2de10b(0x1eb)]:optionalString(_0x4be705[_0x2de10b(0x1e6)]?.[_0x2de10b(0x1eb)]),'localDomain':_0x557e0a?_0x557e0a[_0x2de10b(0x216)][_0x2de10b(0x226)]:optionalString(_0x4be705[_0x2de10b(0x1e6)]?.[_0x2de10b(0x226)]),'certificateDomain':_0x557e0a?_0x557e0a[_0x2de10b(0x216)][_0x2de10b(0x219)]:optionalString(_0x4be705['raw']?.[_0x2de10b(0x219)]),'cdn':_0x557e0a?.['cdn'],'allowOfficialKbServiceDefault':!(_0x557e0a!==undefined||['apiDomain','userDomain',_0x2de10b(0x1e4),_0x2de10b(0x1d9),_0x2de10b(0x21b),_0x2de10b(0x1d8),'kbServiceDomain',_0x2de10b(0x203),'platformDomain','appDomain',_0x2de10b(0x226),_0x2de10b(0x219)][_0x2de10b(0x20e)](_0x3b7571=>Object['prototype'][_0x2de10b(0x1f4)][_0x2de10b(0x20c)](_0x4be705[_0x2de10b(0x1e6)]??{},_0x3b7571)))},{initEnv:_0x5956ea}=await import(_0x2de10b(0x20f)),{initDomains:_0x4c63fc}=await import(_0x2de10b(0x212));_0x5956ea(_0x4be705[_0x2de10b(0x1e1)]),_0x4c63fc(_0x137591);}export async function initMultiAppEnvironment(_0xd6552e){const _0x4268d0=a286_0x3875;await initConfiguredEnvironment({'raw':_0xd6552e[_0x4268d0(0x211)],'configuredRegion':_0xd6552e['region'],'regionLocation':_0x4268d0(0x1fc)+_0xd6552e[_0x4268d0(0x206)]+'\x22','targetEnv':_0xd6552e[_0x4268d0(0x1f6)]===_0x4268d0(0x209)?'daily':'production'});}function a286_0x3875(_0x11b9e2,_0x4a21b7){_0x11b9e2=_0x11b9e2-0x1d7;const _0x386c2e=a286_0x386c();let _0x38756c=_0x386c2e[_0x11b9e2];return _0x38756c;}export function getConfigAppCode(_0x23c632){const _0xf0b178=a286_0x3875,_0x4cb317=readRawConfig(_0x23c632);if(_0x4cb317[_0xf0b178(0x1f7)]&&typeof _0x4cb317['apps']===_0xf0b178(0x213)){const _0xc30b6a=_0x4cb317[_0xf0b178(0x1e2)];if(_0xc30b6a)return _0x4cb317['apps'][_0xc30b6a]?.[_0xf0b178(0x21d)]?String(_0x4cb317[_0xf0b178(0x1f7)][_0xc30b6a][_0xf0b178(0x21d)])[_0xf0b178(0x224)]():undefined;const _0x4585ba=Object[_0xf0b178(0x1ef)](_0x4cb317[_0xf0b178(0x1f7)]);if(_0x4585ba[_0xf0b178(0x201)]===0x1&&_0x4585ba[0x0]?.['appcode'])return String(_0x4585ba[0x0][_0xf0b178(0x21d)])[_0xf0b178(0x224)]();}const _0x10715d=_0x4cb317[_0xf0b178(0x21d)]||_0x4cb317[_0xf0b178(0x1e3)];if(typeof _0x10715d!=='string'||_0x10715d['trim']()==='')return undefined;return _0x10715d[_0xf0b178(0x224)]();}const CONNECTION_ROUTING_KEYS=[a286_0x58056b(0x1e5),a286_0x58056b(0x210),a286_0x58056b(0x218),'runtimeDomain','skillDomain','skillHubDomain',a286_0x58056b(0x1d8),a286_0x58056b(0x215),a286_0x58056b(0x203),a286_0x58056b(0x1d7),a286_0x58056b(0x1eb),a286_0x58056b(0x226),a286_0x58056b(0x219)];function withAppProfileRouting(_0x22d70d,_0x1665a4){const _0x478b30=a286_0x58056b;if(!_0x1665a4||_0x1665a4[_0x478b30(0x215)]===undefined)return _0x22d70d;return{..._0x22d70d,'kbServiceDomain':_0x1665a4['kbServiceDomain']};}function pickConnectionRoutingConfig(_0x48c64b,_0xd0c9b6){const _0x38c979={'region':_0xd0c9b6};for(const _0x5dc60e of CONNECTION_ROUTING_KEYS){if(_0x48c64b[_0x5dc60e]!==undefined)_0x38c979[_0x5dc60e]=_0x48c64b[_0x5dc60e];}return _0x38c979;}export function getMultiAppConfigs(_0x54a399='project',_0x22b201){const _0x4be8c0=a286_0x58056b,_0x2f0885=loadRawConfigLayers(_0x22b201);let _0xcaded9,_0x4924fa;const _0x237fc4=mergeRawConfigLayers(_0x2f0885),_0xdac43f=_0x2f0885[_0x4be8c0(0x1fb)]['apps']&&typeof _0x2f0885[_0x4be8c0(0x1fb)][_0x4be8c0(0x1f7)]===_0x4be8c0(0x213)?_0x2f0885[_0x4be8c0(0x1fb)][_0x4be8c0(0x1f7)]:{},_0x52baa2=_0x2f0885['projectConfig'][_0x4be8c0(0x1f7)]&&typeof _0x2f0885[_0x4be8c0(0x1de)][_0x4be8c0(0x1f7)]===_0x4be8c0(0x213)?_0x2f0885['projectConfig'][_0x4be8c0(0x1f7)]:{};_0x54a399===_0x4be8c0(0x207)?(_0xcaded9={..._0xdac43f,..._0x52baa2},_0x4924fa=_0x237fc4['defaultApp']):(_0xcaded9=_0x2f0885[_0x4be8c0(0x1de)][_0x4be8c0(0x1f7)],_0x4924fa=_0x2f0885[_0x4be8c0(0x1de)][_0x4be8c0(0x1e2)]);!_0x4924fa&&_0xcaded9&&typeof _0xcaded9===_0x4be8c0(0x213)&&Object[_0x4be8c0(0x1f3)](_0xcaded9)[_0x4be8c0(0x201)]===0x1&&(_0x4924fa=Object[_0x4be8c0(0x1f3)](_0xcaded9)[0x0]);if(!_0xcaded9||typeof _0xcaded9!==_0x4be8c0(0x213)||Object[_0x4be8c0(0x1f3)](_0xcaded9)['length']===0x0)return null;return Object[_0x4be8c0(0x21c)](_0xcaded9)[_0x4be8c0(0x225)](([_0x1612e8,_0x415345])=>{const _0x2d129e=_0x4be8c0,_0x5ed445=_0x54a399===_0x2d129e(0x1f2)||Object[_0x2d129e(0x1ff)]['hasOwnProperty'][_0x2d129e(0x20c)](_0x52baa2,_0x1612e8),_0x2fa872=withAppProfileRouting(_0x5ed445?_0x237fc4:_0x2f0885[_0x2d129e(0x1fb)],_0x415345),_0x4b7afe=resolveEffectiveRegion({'appRegion':_0x415345?.[_0x2d129e(0x223)],'projectRegion':_0x5ed445?_0x2f0885[_0x2d129e(0x1de)]['region']:undefined,'globalRegion':_0x2f0885[_0x2d129e(0x1fb)][_0x2d129e(0x223)],'mergedRegion':_0x2fa872[_0x2d129e(0x223)],'appName':_0x1612e8});return{'name':_0x1612e8,'appcode':_0x415345?.[_0x2d129e(0x21d)]||'','apiGroup':optionalString(_0x415345?.[_0x2d129e(0x1ec)]),'isDefault':_0x1612e8===_0x4924fa,'region':_0x4b7afe[_0x2d129e(0x223)],'regionSource':_0x4b7afe[_0x2d129e(0x21a)],'env':_0x415345?.[_0x2d129e(0x1f6)],'apiDir':optionalString(_0x415345?.[_0x2d129e(0x1dd)])||optionalString(_0x2fa872[_0x2d129e(0x1dd)]),'cookie':_0x415345?.[_0x2d129e(0x1f9)]||undefined,'routingConfig':pickConnectionRoutingConfig(_0x2fa872,_0x4b7afe[_0x2d129e(0x223)])};})[_0x4be8c0(0x200)](_0x2e938=>_0x2e938[_0x4be8c0(0x21d)]);}export function getTemplateBaseUrl(_0x2ee6bf){const _0x447938=a286_0x58056b,_0x57c66e=readRawConfig(_0x2ee6bf);if(_0x57c66e['template_base_url']&&typeof _0x57c66e[_0x447938(0x1dc)]===_0x447938(0x21e))return _0x57c66e['template_base_url'][_0x447938(0x1f1)](/\/$/,'');return _0x447938(0x220);}function buildConfig(_0x29bc38,_0x57586f,_0x34313e){const _0x3753fa=a286_0x58056b,_0x1620f4=resolveAppConfig({'raw':_0x29bc38,'flags':_0x57586f,'layers':_0x34313e,'readEnv':env}),_0x542238=_0x1620f4[_0x3753fa(0x20d)]?_0x1620f4[_0x3753fa(0x1f7)][_0x1620f4['currentApp']]:undefined;return{..._0x1620f4,'raw':withAppProfileRouting(_0x29bc38,_0x542238)};}export function resolveApiFilePath(_0x4b910d,_0x1f66d4,_0x2ef621){const _0x40d2fc=a286_0x58056b;return resolveApiModelSource(_0x4b910d,_0x1f66d4,_0x2ef621)[_0x40d2fc(0x1ea)];}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a287_0xc86663=a287_0x825a;function a287_0x825a(_0x5194e3,_0x55e09c){_0x5194e3=_0x5194e3-0x8d;const _0x385b4f=a287_0x385b();let _0x825a94=_0x385b4f[_0x5194e3];return _0x825a94;}function a287_0x385b(){const _0x45c48c=['isFile','.mts','29113aJAPct','has','flags','map','flatMap','.ts','alias','8dmWkbS','1237680kNSzMC','size','2989323UWyXvt','11159KDdQNF','stringify','cwd','.tsx','set','name','24400IptsVF','3BmhTPW','../','defaultProfile','startsWith','172082wRyoQn','574340OhVtMU','utf-8','.cts','get','tableName','filter','endsWith','api.ts','source','index','exec','.mjs','datasetCode'];a287_0x385b=function(){return _0x45c48c;};return a287_0x385b();}(function(_0x1d0de2,_0x2168ef){const _0x5b2442=a287_0x825a,_0x349aef=_0x1d0de2();while(!![]){try{const _0x1f9c56=parseInt(_0x5b2442(0xa4))/0x1+parseInt(_0x5b2442(0xaf))/0x2*(parseInt(_0x5b2442(0xab))/0x3)+parseInt(_0x5b2442(0xaa))/0x4+-parseInt(_0x5b2442(0xb0))/0x5+-parseInt(_0x5b2442(0xa1))/0x6+-parseInt(_0x5b2442(0x99))/0x7*(parseInt(_0x5b2442(0xa0))/0x8)+parseInt(_0x5b2442(0xa3))/0x9;if(_0x1f9c56===_0x2168ef)break;else _0x349aef['push'](_0x349aef['shift']());}catch(_0x3f6fb2){_0x349aef['push'](_0x349aef['shift']());}}}(a287_0x385b,0x1ae3c));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=['.ts',a287_0xc86663(0xa7),a287_0xc86663(0x98),a287_0xc86663(0xb2),'.js','.jsx',a287_0xc86663(0x95),'.cjs'],LOCAL_REEXPORT_RE=/\bexport\s+(?:type\s+)?(?:\{[\s\S]*?\}|\*)\s+from\s*["']([^"']+)["']/g,SOURCE_EXTENSIONS_BY_RUNTIME_EXTENSION={'.js':[a287_0xc86663(0x9e),a287_0xc86663(0xa7)],'.jsx':[a287_0xc86663(0xa7)],'.mjs':['.mts'],'.cjs':[a287_0xc86663(0xb2)]};function parseApiFile(_0x3844f0){const _0x34651a=a287_0xc86663;return parseLegacyApiModels(_0x3844f0)['flatMap'](_0x3fbb41=>_0x3fbb41[_0x34651a(0x9f)]?[{'alias':_0x3fbb41[_0x34651a(0x9f)],'datasetCode':_0x3fbb41[_0x34651a(0x96)],'tableName':_0x3fbb41[_0x34651a(0x8e)],'name':_0x3fbb41[_0x34651a(0xa9)]}]:[]);}function isWithinRoot(_0x141ce5,_0x5e048b){const _0x3c6382=relative(_0x141ce5,_0x5e048b);return _0x3c6382===''||!_0x3c6382['startsWith']('..')&&!isAbsolute(_0x3c6382);}function resolveExistingFile(_0x46ad2c){const _0x153d3c=a287_0xc86663;if(!existsSync(_0x46ad2c))return undefined;try{return statSync(_0x46ad2c)[_0x153d3c(0x97)]()?realpathSync(_0x46ad2c):undefined;}catch{return undefined;}}function reexportCandidatePaths(_0x5c5505){const _0x3000ef=a287_0xc86663,_0x161592=extname(_0x5c5505);if(!_0x161592)return[...SOURCE_FILE_EXTENSIONS[_0x3000ef(0x9c)](_0x1d51f4=>''+_0x5c5505+_0x1d51f4),...SOURCE_FILE_EXTENSIONS[_0x3000ef(0x9c)](_0x195f93=>resolve(_0x5c5505,_0x3000ef(0x93)+_0x195f93))];const _0x49c179=SOURCE_EXTENSIONS_BY_RUNTIME_EXTENSION[_0x161592];if(!_0x49c179)return[_0x5c5505];const _0x5273a7=_0x5c5505['slice'](0x0,-_0x161592['length']);return[..._0x49c179[_0x3000ef(0x9c)](_0x560b6e=>''+_0x5273a7+_0x560b6e),_0x5c5505];}function resolveLocalReexport(_0x24ba69,_0x22a7df,_0x552f68){const _0x1c4532=a287_0xc86663;if(!_0x22a7df[_0x1c4532(0xae)]('./')&&!_0x22a7df['startsWith'](_0x1c4532(0xac)))return undefined;const _0x38f562=resolve(dirname(_0x24ba69),_0x22a7df);if(!isWithinRoot(_0x552f68,_0x38f562))return undefined;for(const _0x141b57 of reexportCandidatePaths(_0x38f562)){const _0x1967f7=resolveExistingFile(_0x141b57);if(_0x1967f7&&isWithinRoot(_0x552f68,_0x1967f7))return _0x1967f7;}return undefined;}function parseApiFileTree(_0x422123,_0x1e5afb,_0x329253,_0x5e5dd1){const _0x19a7d0=a287_0xc86663,_0x4bba29=resolveExistingFile(_0x422123);if(!_0x4bba29)return[];const _0x80b49b=_0x329253['get'](_0x4bba29);if(_0x80b49b!==undefined&&_0x80b49b<=_0x5e5dd1)return[];_0x329253[_0x19a7d0(0xa8)](_0x4bba29,_0x5e5dd1);const _0x2ae20c=readFileSync(_0x4bba29,_0x19a7d0(0xb1)),_0x31f4e8=parseApiFile(_0x2ae20c);if(_0x5e5dd1>=MAX_LOCAL_REEXPORT_DEPTH)return _0x31f4e8;const _0x6c59ae=new RegExp(LOCAL_REEXPORT_RE[_0x19a7d0(0x92)],LOCAL_REEXPORT_RE[_0x19a7d0(0x9b)]);let _0x3311d9;while((_0x3311d9=_0x6c59ae[_0x19a7d0(0x94)](_0x2ae20c))!==null){const _0x3315a5=resolveLocalReexport(_0x4bba29,_0x3311d9[0x1],_0x1e5afb);_0x3315a5&&_0x31f4e8['push'](...parseApiFileTree(_0x3315a5,_0x1e5afb,_0x329253,_0x5e5dd1+0x1));}return _0x31f4e8;}function aliasProjectRoot(_0x5a4ba1){const _0xc8589f=findProjectRootDirectory(dirname(_0x5a4ba1));try{return realpathSync(_0xc8589f);}catch{return _0xc8589f;}}function uniqueAliasEntries(_0x270618){const _0x4de776=a287_0xc86663,_0x28d434=new Set();return _0x270618[_0x4de776(0x8f)](_0x2c8da9=>{const _0x4a6a8c=_0x4de776,_0x173212=JSON[_0x4a6a8c(0xa5)](_0x2c8da9);if(_0x28d434['has'](_0x173212))return![];return _0x28d434['add'](_0x173212),!![];});}export function loadAliasMap(_0xf3907c,_0x22c25f,_0x5e7dd9,_0x2265bc){const _0x23e37a=a287_0xc86663,_0xfe2a2f=resolve(_0x5e7dd9??resolve(process[_0x23e37a(0xa6)](),_0xf3907c,_0x23e37a(0x91))),_0x2831f3=_0x2265bc?_0xfe2a2f+'#'+_0x2265bc:_0xfe2a2f;if(cache[_0x23e37a(0x9a)](_0x2831f3))return cache[_0x23e37a(0x8d)](_0x2831f3);if(!existsSync(_0xfe2a2f))return cache[_0x23e37a(0xa8)](_0x2831f3,[]),[];try{if(_0xfe2a2f[_0x23e37a(0x90)](MODEL_REGISTRY_FILE_NAME)){const _0x75de47=readModelRegistry(_0xfe2a2f),_0x20938d=_0x2265bc??_0x75de47?.[_0x23e37a(0xad)],_0x4fa0ef=_0x20938d&&_0x75de47?getProfileModels(_0x75de47,_0x20938d):[],_0x1aca42=uniqueAliasEntries(_0x4fa0ef[_0x23e37a(0x9d)](_0x6831cd=>_0x6831cd['alias']?[{'alias':_0x6831cd[_0x23e37a(0x9f)],'datasetCode':_0x6831cd[_0x23e37a(0x96)],'tableName':_0x6831cd['tableName'],'name':_0x6831cd[_0x23e37a(0xa9)]}]:[]));return cache[_0x23e37a(0xa8)](_0x2831f3,_0x1aca42),_0x1aca42;}const _0xbde8c5=uniqueAliasEntries(parseApiFileTree(_0xfe2a2f,aliasProjectRoot(_0xfe2a2f),new Map(),0x0));return cache['set'](_0x2831f3,_0xbde8c5),_0xbde8c5;}catch{return cache[_0x23e37a(0xa8)](_0x2831f3,[]),[];}}export function resolveAlias(_0x5235f8,_0x12cbbf,_0x101862,_0x2afa9c,_0x2db9d){const _0x4bc32c=a287_0xc86663;if(!_0x12cbbf)return undefined;const _0x37f3a9=loadAliasMap(_0x5235f8,_0x101862,_0x2afa9c,_0x2db9d),_0x421845=new Set(_0x37f3a9[_0x4bc32c(0x8f)](_0x4db3f8=>_0x4db3f8[_0x4bc32c(0x9f)]===_0x12cbbf)[_0x4bc32c(0x9c)](_0x5b15b2=>_0x5b15b2[_0x4bc32c(0x96)]));return _0x421845[_0x4bc32c(0xa2)]===0x1?[..._0x421845][0x0]:undefined;}export function listAliases(_0x1f1456,_0x5f06bd,_0x3c3869,_0x53fc95){return loadAliasMap(_0x1f1456,_0x5f06bd,_0x3c3869,_0x53fc95);}
|