@lovrabet/rabetbase-cli 2.5.10-beta.2 → 2.5.10-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -0
- 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.d.ts +2 -2
- 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.d.ts +3 -0
- package/lib/commands/issue/context.js +1 -0
- 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 +2 -2
- package/skills/rabetbase/SKILL.md +2 -2
- package/skills/rabetbase/references/rabetbase-issue-report.md +4 -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/commands/issue/shared.d.ts +0 -32
- package/lib/commands/issue/shared.js +0 -1
- package/lib/telemetry/send-platform-issue-collect-log.d.ts +0 -26
- package/lib/telemetry/send-platform-issue-collect-log.js +0 -1
package/lib/constant/region.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0xda08a3,_0x4edede){const _0x4e5bba=a280_0x2ffa,_0x26e081=_0xda08a3();while(!![]){try{const _0x2815fe=-parseInt(_0x4e5bba(0x12d))/0x1*(-parseInt(_0x4e5bba(0x12b))/0x2)+-parseInt(_0x4e5bba(0x121))/0x3*(-parseInt(_0x4e5bba(0x128))/0x4)+-parseInt(_0x4e5bba(0x12c))/0x5+parseInt(_0x4e5bba(0x12e))/0x6*(parseInt(_0x4e5bba(0x124))/0x7)+-parseInt(_0x4e5bba(0x123))/0x8*(parseInt(_0x4e5bba(0x122))/0x9)+parseInt(_0x4e5bba(0x125))/0xa+-parseInt(_0x4e5bba(0x129))/0xb*(parseInt(_0x4e5bba(0x127))/0xc);if(_0x2815fe===_0x4edede)break;else _0x26e081['push'](_0x26e081['shift']());}catch(_0x290c17){_0x26e081['push'](_0x26e081['shift']());}}}(a280_0x1d66,0xc0012));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;function a280_0x2ffa(_0x48340d,_0x1afcc0){_0x48340d=_0x48340d-0x121;const _0x1d669a=a280_0x1d66();let _0x2ffaab=_0x1d669a[_0x48340d];return _0x2ffaab;}export function isLovrabetRegion(_0x9302ad){const _0x1a09dd=a280_0x2ffa;return typeof _0x9302ad===_0x1a09dd(0x126)&&LOVRABET_REGION_VALUES[_0x1a09dd(0x12a)](_0x9302ad);}export function isEnabledLovrabetRegion(_0x2a0a34){const _0x5d9d74=a280_0x2ffa;return typeof _0x2a0a34===_0x5d9d74(0x126)&&ENABLED_LOVRABET_REGION_VALUES[_0x5d9d74(0x12a)](_0x2a0a34);}export function normalizeLovrabetRegion(_0x55ca7e){const _0x511655=a280_0x2ffa;if(typeof _0x55ca7e!==_0x511655(0x126))return undefined;const _0x4bd4fc=REGION_ALIASES[_0x55ca7e]??_0x55ca7e;return isLovrabetRegion(_0x4bd4fc)?_0x4bd4fc:undefined;}export function isInvalidLovrabetRegion(_0x598aa2){return _0x598aa2!==undefined&&_0x598aa2!==null&&_0x598aa2!==''&&normalizeLovrabetRegion(_0x598aa2)===undefined;}function a280_0x1d66(){const _0x36839a=['507717Vnjrlu','126vMnqyK','1359234lTEGwA','9FmtKFl','381824SGRPEd','308021jnphQq','12610000RPsKav','string','412812cGwrGd','8aubFDv','869zTKJOd','includes','2VaULZr','235395qbCfie'];a280_0x1d66=function(){return _0x36839a;};return a280_0x1d66();}
|
package/lib/constant/risk.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a281_0x20846a=a281_0x56f6;(function(_0x1586a8,_0x3a4436){const _0x57fe9d=a281_0x56f6,_0x4c3ce5=_0x1586a8();while(!![]){try{const _0x52fbe7=parseInt(_0x57fe9d(0x91))/0x1*(-parseInt(_0x57fe9d(0x93))/0x2)+parseInt(_0x57fe9d(0x92))/0x3*(-parseInt(_0x57fe9d(0x8f))/0x4)+parseInt(_0x57fe9d(0x9c))/0x5*(-parseInt(_0x57fe9d(0x9d))/0x6)+parseInt(_0x57fe9d(0x98))/0x7*(parseInt(_0x57fe9d(0x97))/0x8)+-parseInt(_0x57fe9d(0x9e))/0x9*(-parseInt(_0x57fe9d(0x9b))/0xa)+-parseInt(_0x57fe9d(0x90))/0xb*(parseInt(_0x57fe9d(0x96))/0xc)+parseInt(_0x57fe9d(0x99))/0xd;if(_0x52fbe7===_0x3a4436)break;else _0x4c3ce5['push'](_0x4c3ce5['shift']());}catch(_0x32c266){_0x4c3ce5['push'](_0x4c3ce5['shift']());}}}(a281_0x3264,0x590f1));function a281_0x3264(){const _0x4ee282=['write','712212cavgON','8LjqBkg','4594198EWeWld','18321329VaalmF','read','19400aKydpj','5KHdBKJ','3945234rIvzRT','360BcxCRU','1172660yJSZTg','88dKvwwh','3BexFQo','3XdYlng','235300zzOriY','high-risk-write'];a281_0x3264=function(){return _0x4ee282;};return a281_0x3264();}function a281_0x56f6(_0x59417e,_0x4b74a6){_0x59417e=_0x59417e-0x8f;const _0x3264a1=a281_0x3264();let _0x56f636=_0x3264a1[_0x59417e];return _0x56f636;}export const RISK_LEVEL_VALUES=[a281_0x20846a(0x9a),a281_0x20846a(0x95),a281_0x20846a(0x94)];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3e2411,_0x1ac22f){const _0x9e1a69=a282_0xdea9,_0x25d1e3=_0x3e2411();while(!![]){try{const _0x22c89b=-parseInt(_0x9e1a69(0xdf))/0x1*(parseInt(_0x9e1a69(0xda))/0x2)+parseInt(_0x9e1a69(0xd9))/0x3+-parseInt(_0x9e1a69(0xe1))/0x4*(parseInt(_0x9e1a69(0xd6))/0x5)+-parseInt(_0x9e1a69(0xd7))/0x6+-parseInt(_0x9e1a69(0xde))/0x7+parseInt(_0x9e1a69(0xd8))/0x8+-parseInt(_0x9e1a69(0xe2))/0x9*(-parseInt(_0x9e1a69(0xe0))/0xa);if(_0x22c89b===_0x1ac22f)break;else _0x25d1e3['push'](_0x25d1e3['shift']());}catch(_0x41730a){_0x25d1e3['push'](_0x25d1e3['shift']());}}}(a282_0x5672,0x8ef89));function a282_0x5672(){const _0x5cdc47=['436lNBeRV','20439207PoMrAq','42095KFdMbi','6068154GAbYhn','6029432KLKQwm','656832HVWWbn','149134vZhRcs','libraries','lovrabet','cdn','3537142mAOKfk','3hHxyqV','10ztmEID'];a282_0x5672=function(){return _0x5cdc47;};return a282_0x5672();}import{OFFICIAL_ROUTING_PROFILES as a282_0x1735cf,ROUTING_CATALOG_DIGEST}from'../generated/official-routing.js';export const OFFICIAL_ROUTING_PROFILES=a282_0x1735cf;function a282_0xdea9(_0x185d33,_0x2ee660){_0x185d33=_0x185d33-0xd6;const _0x567277=a282_0x5672();let _0xdea93f=_0x567277[_0x185d33];return _0xdea93f;}export{ROUTING_CATALOG_DIGEST};export function getOfficialRoutingProfile(_0x12c52c){return OFFICIAL_ROUTING_PROFILES[_0x12c52c];}export function getOfficialRoutingCdn(_0x50fd98){const _0x3b915c=a282_0xdea9,_0x5ab4e7=getOfficialRoutingProfile(_0x50fd98)[_0x3b915c(0xdd)];if(!_0x5ab4e7[_0x3b915c(0xdc)])throw new Error('Official\x20routing\x20for\x20region\x20\x22'+_0x50fd98+'\x22\x20is\x20not\x20ready:\x20Lovrabet\x20CDN\x20Domain\x20is\x20not\x20configured.');return{'libraries':_0x5ab4e7[_0x3b915c(0xdb)],'lovrabet':_0x5ab4e7[_0x3b915c(0xdc)]};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x385ec2,_0x24d1e6){const _0x59dbb5=a283_0x2ddc,_0x5e4985=_0x385ec2();while(!![]){try{const _0x5c3f7b=-parseInt(_0x59dbb5(0x15f))/0x1+-parseInt(_0x59dbb5(0x165))/0x2+parseInt(_0x59dbb5(0x164))/0x3*(parseInt(_0x59dbb5(0x152))/0x4)+-parseInt(_0x59dbb5(0x155))/0x5+-parseInt(_0x59dbb5(0x13f))/0x6*(-parseInt(_0x59dbb5(0x14e))/0x7)+parseInt(_0x59dbb5(0x163))/0x8+parseInt(_0x59dbb5(0x160))/0x9*(parseInt(_0x59dbb5(0x15b))/0xa);if(_0x5c3f7b===_0x24d1e6)break;else _0x5e4985['push'](_0x5e4985['shift']());}catch(_0x34bc77){_0x5e4985['push'](_0x5e4985['shift']());}}}(a283_0x57cb,0x2a4e5));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{isDaily,normalizeEnv}from'../constant/env.js';import{normalizeLegacyOutputFormat,riskLevelOrder}from'../framework/types.js';import{DEFAULT_LOVRABET_REGION,normalizeLovrabetRegion}from'../constant/region.js';import{selectConfiguredRegion}from'../config/region-config.js';function stringConfigValue(_0x4d909d){const _0x2b4196=a283_0x2ddc;return typeof _0x4d909d===_0x2b4196(0x154)&&_0x4d909d[_0x2b4196(0x148)]()?_0x4d909d[_0x2b4196(0x148)]():undefined;}function appProfiles(_0x53eed3){const _0x394285=a283_0x2ddc;return _0x53eed3[_0x394285(0x13e)]&&typeof _0x53eed3[_0x394285(0x13e)]===_0x394285(0x156)?_0x53eed3[_0x394285(0x13e)]:{};}function resolveDefaultAppName(_0x674cc9){const _0x3428c8=a283_0x2ddc,_0x44e532=stringConfigValue(_0x674cc9['defaultApp']);if(_0x44e532)return _0x44e532;const _0x301a3b=Object['keys'](appProfiles(_0x674cc9));return _0x301a3b[_0x3428c8(0x15c)]===0x1?_0x301a3b[0x0]:undefined;}function a283_0x2ddc(_0x595a6f,_0x36aa41){_0x595a6f=_0x595a6f-0x13b;const _0x57cbb3=a283_0x57cb();let _0x2ddcf7=_0x57cbb3[_0x595a6f];return _0x2ddcf7;}function resolveTopLevelAppCode(_0x41a0ef){const _0x70ee63=a283_0x2ddc;return stringConfigValue(_0x41a0ef[_0x70ee63(0x145)])||stringConfigValue(_0x41a0ef[_0x70ee63(0x15e)]);}function normalizeRiskCeiling(_0x25fbb8){const _0x58a1ef=a283_0x2ddc;if(_0x25fbb8===undefined||_0x25fbb8===null)return undefined;if(_0x25fbb8==='read'||_0x25fbb8===_0x58a1ef(0x14b)||_0x25fbb8===_0x58a1ef(0x13b))return _0x25fbb8;return _0x58a1ef(0x141);}function resolveRiskCeiling(..._0x31964c){const _0x2f3002=a283_0x2ddc;let _0x4392b8;for(const _0x30c177 of _0x31964c){const _0x58f10d=normalizeRiskCeiling(_0x30c177);_0x58f10d&&(!_0x4392b8||riskLevelOrder(_0x58f10d)<riskLevelOrder(_0x4392b8))&&(_0x4392b8=_0x58f10d);}return _0x4392b8??DEFAULT_CONFIG_VALUES[_0x2f3002(0x13d)];}export function resolveAppConfig({raw:_0x201d98,flags:_0x3f0a37,layers:_0x1e4420,readEnv:_0xb3a13e}){const _0x3ceec4=a283_0x2ddc,_0x500ffd=_0x1e4420?.[_0x3ceec4(0x14d)]??{},_0x1d83a7=_0x1e4420?.['globalConfig']??{},_0x151aa5=!!_0x1e4420?.[_0x3ceec4(0x15a)]||Object[_0x3ceec4(0x153)](_0x500ffd)[_0x3ceec4(0x15c)]>0x0,_0x2e8539=!_0x151aa5,_0x2afca0=_0x151aa5?resolveDefaultAppName(_0x500ffd):undefined,_0x390a1b=_0x2e8539?resolveDefaultAppName(_0x1d83a7):undefined,_0x4f900f=stringConfigValue(_0x3f0a37[_0x3ceec4(0x15e)]),_0x18d163=_0xb3a13e(_0x3ceec4(0x149)),_0x39da52={};if(_0x201d98[_0x3ceec4(0x13e)]&&typeof _0x201d98[_0x3ceec4(0x13e)]===_0x3ceec4(0x156))for(const [_0x2dc923,_0x4f0e04]of Object['entries'](_0x201d98['apps'])){_0x4f0e04&&typeof _0x4f0e04===_0x3ceec4(0x156)&&_0x4f0e04['appcode']&&(_0x39da52[_0x2dc923]=_0x4f0e04);}const _0xae2edc=_0x2afca0||_0x390a1b||resolveDefaultAppName(_0x201d98),_0x115713=Object[_0x3ceec4(0x153)](_0x39da52)[_0x3ceec4(0x15c)]>0x0,_0x3ca2dd=_0x4f900f||_0x2afca0||_0x18d163||_0x390a1b||_0xae2edc||undefined,_0x6f116d=stringConfigValue(_0x3f0a37[_0x3ceec4(0x145)]),_0x22308f=_0x6f116d?Object[_0x3ceec4(0x13c)](_0x39da52)[_0x3ceec4(0x157)](([,_0xedaed])=>_0xedaed?.[_0x3ceec4(0x145)]===_0x6f116d):[],_0x40ccf0=_0x4f900f&&_0x39da52[_0x4f900f]?.[_0x3ceec4(0x145)]===_0x6f116d?[_0x4f900f,_0x39da52[_0x4f900f]]:undefined,_0x811d65=_0x40ccf0??(_0x22308f[_0x3ceec4(0x15c)]===0x1?_0x22308f[0x0]:undefined),_0x45df4e=_0x811d65?.[0x0],_0x58c6db=_0x811d65?.[0x1],_0x42342e=_0x6f116d?_0x45df4e:_0x3ca2dd;let _0x54235e=_0x42342e&&_0x39da52[_0x42342e]?_0x39da52[_0x42342e]:undefined;_0x6f116d&&_0x58c6db&&(_0x54235e=_0x58c6db);const _0x566135=_0x6f116d?_0x58c6db??_0x54235e:_0x54235e,_0x24fc4c=!_0x4f900f&&!_0x2afca0&&_0x18d163&&_0x42342e===_0x18d163,_0x2a1cf1=_0x4f900f||(_0x24fc4c?_0x18d163:undefined)||(_0x6f116d?_0x45df4e:undefined),_0x5cef90=_0x566135?.[_0x3ceec4(0x145)],_0xde9431=_0x151aa5?resolveTopLevelAppCode(_0x500ffd):undefined,_0x563787=_0x2e8539?resolveTopLevelAppCode(_0x1d83a7):undefined,_0x3ed2a7=_0x4f900f||_0x2afca0?_0x5cef90:undefined,_0x55fc91=!_0x4f900f&&!_0x2afca0?_0x5cef90:undefined,_0x3655e6=_0x6f116d||_0x3ed2a7||_0xde9431||_0x55fc91||_0x563787||undefined,_0xc0ba6b=_0x151aa5?stringConfigValue(_0x500ffd[_0x3ceec4(0x14f)]):undefined,_0x53326f=_0x2e8539?stringConfigValue(_0x1d83a7[_0x3ceec4(0x14f)]):undefined,_0xa4c82e=_0x3f0a37[_0x3ceec4(0x14f)]||_0x566135?.['env']||_0xc0ba6b||_0xb3a13e(_0x3ceec4(0x142))||_0x53326f||_0x201d98[_0x3ceec4(0x14f)]||DEFAULT_CONFIG_VALUES[_0x3ceec4(0x14f)],_0x22e455=_0x566135?.[_0x3ceec4(0x161)]||_0x201d98[_0x3ceec4(0x161)]||DEFAULT_CONFIG_VALUES['locale'],_0x1fdd53=_0xb3a13e(_0x3ceec4(0x159))||_0x566135?.['cookie']||_0x201d98[_0x3ceec4(0x151)]||undefined,_0x280d40=_0xb3a13e('ACCESS_KEY')||_0x566135?.[_0x3ceec4(0x143)]||_0x201d98[_0x3ceec4(0x143)]||undefined,_0x21f4cd=_0x3f0a37['format']||_0xb3a13e('FORMAT')||_0x566135?.[_0x3ceec4(0x144)]||_0x201d98[_0x3ceec4(0x144)],_0xeaf388=normalizeLegacyOutputFormat(_0x21f4cd),_0x5e9492=_0xb3a13e(_0x3ceec4(0x147))||_0x566135?.[_0x3ceec4(0x15d)]||_0x201d98[_0x3ceec4(0x15d)],_0x273115=_0x5e9492?Number(_0x5e9492)||undefined:undefined,_0x3ee3d3=_0x1e4420?[_0x1e4420['globalConfig'][_0x3ceec4(0x13d)],_0x1e4420['projectConfig']['riskLevel']]:[_0x201d98['riskLevel']],_0x5b9bf1=resolveRiskCeiling(..._0x3ee3d3,_0x566135?.[_0x3ceec4(0x13d)]),_0x521f5a=resolveRiskCeiling(_0x5b9bf1,_0xb3a13e(_0x3ceec4(0x140))),_0x81fea8=_0xb3a13e(_0x3ceec4(0x158)),_0x106b30=_0x81fea8==='1'||_0x81fea8==='true',_0x32a326=_0x566135?.[_0x3ceec4(0x14c)]||_0x201d98[_0x3ceec4(0x14c)]||DEFAULT_CONFIG_VALUES[_0x3ceec4(0x14c)],_0x129cee=selectConfiguredRegion({'appRegion':_0x566135?.[_0x3ceec4(0x146)],'projectRegion':_0x151aa5?_0x500ffd[_0x3ceec4(0x146)]:undefined,'globalRegion':_0x151aa5||_0x2e8539?_0x1d83a7[_0x3ceec4(0x146)]:undefined,'mergedRegion':_0x201d98[_0x3ceec4(0x146)]}),_0x446b7f=normalizeLovrabetRegion(_0x129cee[_0x3ceec4(0x162)])??DEFAULT_LOVRABET_REGION,_0x491bee=isDaily(normalizeEnv(String(_0xa4c82e)))?_0x3ceec4(0x150):_0x3ceec4(0x14a);return{'appCode':typeof _0x3655e6===_0x3ceec4(0x154)&&_0x3655e6[_0x3ceec4(0x148)]()?_0x3655e6[_0x3ceec4(0x148)]():undefined,'region':_0x446b7f,'regionConfiguredValue':_0x129cee[_0x3ceec4(0x162)],'regionSource':_0x129cee['source'],'env':_0x491bee,'locale':_0x22e455,'cookie':_0x1fdd53,'accessKey':_0x280d40,'format':_0xeaf388,'pageSize':_0x273115,'riskLevel':_0x521f5a,'verbose':_0x106b30,'apiDir':_0x32a326,'apps':_0x39da52,'defaultApp':_0xae2edc,'currentApp':_0x115713?_0x42342e:undefined,'explicitAppName':_0x2a1cf1};}function a283_0x57cb(){const _0x2bce1b=['value','10600SzDPnJ','3eBFXeV','443956YgVtao','high-risk-write','entries','riskLevel','apps','348864eZfdVg','RISK_LEVEL','read','ENV','accessKey','format','appcode','region','PAGE_SIZE','trim','APP','production','write','apiDir','projectConfig','28UhmzuA','env','daily','cookie','658504VDaxMR','keys','string','715305uBZNZt','object','filter','VERBOSE','COOKIE','projectPath','4090XqbEGg','length','pageSize','app','6625xQNQTW','3222kRqWXf','locale'];a283_0x57cb=function(){return _0x2bce1b;};return a283_0x57cb();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x4fbe30,_0x8cd03f){const _0x307860=a284_0x5b17,_0x31b45a=_0x4fbe30();while(!![]){try{const _0x3616ec=-parseInt(_0x307860(0xf0))/0x1*(-parseInt(_0x307860(0xf4))/0x2)+parseInt(_0x307860(0xf7))/0x3*(-parseInt(_0x307860(0xf1))/0x4)+-parseInt(_0x307860(0xf3))/0x5+-parseInt(_0x307860(0xf2))/0x6+-parseInt(_0x307860(0xf8))/0x7+parseInt(_0x307860(0xf5))/0x8+parseInt(_0x307860(0xf6))/0x9;if(_0x3616ec===_0x8cd03f)break;else _0x31b45a['push'](_0x31b45a['shift']());}catch(_0x10b663){_0x31b45a['push'](_0x31b45a['shift']());}}}(a284_0x4267,0x776d3));import{getIsSessionValid}from'../auth/is-session-valid.js';function a284_0x5b17(_0x2906ef,_0x397e63){_0x2906ef=_0x2906ef-0xef;const _0x426725=a284_0x4267();let _0x5b17c3=_0x426725[_0x2906ef];return _0x5b17c3;}import{CliErrors}from'../errors.js';function a284_0x4267(){const _0x5ccb4b=['4646432oWbFTK','authRequired','347alGCgy','2156548XEdIxf','3877650tEPUKW','2965985OVrHRJ','3966MgjCfs','6598808IEQngA','12767436VVOEZo','3OPpTWE'];a284_0x4267=function(){return _0x5ccb4b;};return a284_0x4267();}export async function buildAuth(_0x5f4c2b){const {getCookie:_0x4fae59}=await import('../auth/get-cookie.js'),_0x1d3557=_0x5f4c2b['cookie']||_0x4fae59(),_0x59cdc7=_0x1d3557?await getIsSessionValid():![];return{'cookie':_0x1d3557,'isLoggedIn':_0x59cdc7,async 'getOrLogin'(){const _0x85164b=a284_0x5b17;if(_0x1d3557&&_0x59cdc7)return _0x1d3557;throw CliErrors[_0x85164b(0xef)]();}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a285_0x475e72=a285_0x24f1;(function(_0x46380d,_0x1cbff8){const _0x4be5ce=a285_0x24f1,_0x49d299=_0x46380d();while(!![]){try{const _0xb81fd1=parseInt(_0x4be5ce(0xdb))/0x1*(parseInt(_0x4be5ce(0xd3))/0x2)+-parseInt(_0x4be5ce(0xce))/0x3*(-parseInt(_0x4be5ce(0x100))/0x4)+parseInt(_0x4be5ce(0x101))/0x5+parseInt(_0x4be5ce(0xe8))/0x6*(parseInt(_0x4be5ce(0x103))/0x7)+-parseInt(_0x4be5ce(0xe5))/0x8*(-parseInt(_0x4be5ce(0xd2))/0x9)+-parseInt(_0x4be5ce(0xd8))/0xa+-parseInt(_0x4be5ce(0xde))/0xb;if(_0xb81fd1===_0x1cbff8)break;else _0x49d299['push'](_0x49d299['shift']());}catch(_0x2326b0){_0x49d299['push'](_0x49d299['shift']());}}}(a285_0x28d2,0xc11bb));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_0x475e72(0xf7);export const CONFIG_NAMES=[NEW_CONFIG_NAME];const normalizedWriteCache=new Map();export function resolveConfigPath(_0x151fb0){for(const _0x475676 of CONFIG_NAMES){const _0x208647=resolve(_0x151fb0,_0x475676);if(existsSync(_0x208647))return _0x208647;}return undefined;}export function findProjectRootDirectory(_0x6ff512=process['cwd']()){let _0x330215=resolve(_0x6ff512);const {root:_0x54f963}=parse(_0x330215),_0x4005a2=homedir();while(!![]){if(resolveConfigPath(_0x330215)){if(_0x330215===_0x4005a2)break;return _0x330215;}if(_0x330215===_0x54f963||_0x330215===_0x4005a2)break;const _0x381e22=dirname(_0x330215);if(_0x381e22===_0x330215)break;_0x330215=_0x381e22;}return resolve(_0x6ff512);}export function getProjectConfigPath(){return resolveConfigPath(process['cwd']());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function isInProject(){return!!getProjectConfigPath();}export function inspectCliConfigJsonFile(_0x1a454a){const _0x7a3d06=a285_0x475e72;if(!existsSync(_0x1a454a))return{'status':'missing'};try{const _0x595b0e=readFileSync(_0x1a454a,{'encoding':_0x7a3d06(0xf4)});if(!_0x595b0e?.[_0x7a3d06(0xd0)]())return{'status':_0x7a3d06(0xf5)};const _0x1ead41=JSON['parse'](_0x595b0e);return{'status':'ok','data':_0x1ead41};}catch(_0x3afd3b){return{'status':_0x7a3d06(0x102),'message':_0x3afd3b instanceof Error?_0x3afd3b[_0x7a3d06(0xe4)]:String(_0x3afd3b)};}}function parseCliConfigJsonFile(_0x277b54,_0x45ebcd,_0x4b78dc){const _0x5e19d7=a285_0x475e72,_0x4ea6c8=inspectCliConfigJsonFile(_0x277b54);if(_0x4ea6c8['status']===_0x5e19d7(0xe7)||_0x4ea6c8[_0x5e19d7(0xdd)]===_0x5e19d7(0xf5))return{};if(_0x4ea6c8['status']==='ok')return _0x4ea6c8['data'];return _0x45ebcd==='warn'&&_0x4b78dc&&console[_0x5e19d7(0x102)](CLI_BIN_NAME+':\x20'+_0x4b78dc+_0x5e19d7(0xdf)+_0x277b54+'\x0a\x20\x20'+_0x4ea6c8['message']),{};}function normalizeLegacyConfigShape(_0x4fe49e){const _0x636d47=a285_0x475e72;if(!_0x4fe49e||typeof _0x4fe49e!==_0x636d47(0xfc))return{'config':{},'migrated':![]};const _0x97eb32={..._0x4fe49e},_0x38f0f1=_0x97eb32['apps']&&typeof _0x97eb32[_0x636d47(0xea)]==='object'?{..._0x97eb32[_0x636d47(0xea)]}:{},_0x39b00f=Object[_0x636d47(0xeb)](_0x38f0f1)[_0x636d47(0xe1)],_0x2a5dc7=_0x97eb32[_0x636d47(0xf9)]||_0x97eb32[_0x636d47(0x104)];let _0x2e96c0=![];if(_0x2a5dc7&&_0x39b00f===0x0){const _0x59ddac=typeof _0x97eb32[_0x636d47(0xf3)]===_0x636d47(0xee)&&_0x97eb32[_0x636d47(0xf3)][_0x636d47(0xd0)]()?_0x97eb32[_0x636d47(0xf3)]:String(_0x2a5dc7)[_0x636d47(0xd0)]();_0x38f0f1[_0x59ddac]={'appcode':String(_0x2a5dc7)[_0x636d47(0xd0)](),..._0x97eb32[_0x636d47(0xd4)]!=null?{'env':_0x97eb32[_0x636d47(0xd4)]}:{},..._0x97eb32[_0x636d47(0xf2)]!=null?{'apiDir':_0x97eb32[_0x636d47(0xf2)]}:{},..._0x97eb32[_0x636d47(0xec)]!=null?{'cookie':_0x97eb32[_0x636d47(0xec)]}:{},..._0x97eb32[_0x636d47(0xf0)]!=null?{'accessKey':_0x97eb32[_0x636d47(0xf0)]}:{},..._0x97eb32[_0x636d47(0xe2)]!=null?{'format':_0x97eb32[_0x636d47(0xe2)]}:{},..._0x97eb32['pageSize']!=null?{'pageSize':_0x97eb32[_0x636d47(0xe6)]}:{},..._0x97eb32[_0x636d47(0xf1)]!=null?{'riskLevel':_0x97eb32[_0x636d47(0xf1)]}:{},..._0x97eb32[_0x636d47(0xe3)]!=null?{'locale':_0x97eb32[_0x636d47(0xe3)]}:{}},_0x97eb32['apps']=_0x38f0f1,delete _0x97eb32['defaultApp'],_0x2e96c0=!![];}return(_0x636d47(0xf9)in _0x97eb32||_0x636d47(0x104)in _0x97eb32)&&(delete _0x97eb32[_0x636d47(0xf9)],delete _0x97eb32[_0x636d47(0x104)],_0x2e96c0=!![]),{'config':_0x97eb32,'migrated':_0x2e96c0};}function writeNormalizedConfigIfNeeded(_0x3a1131,_0x3bbb88){const _0x390daa=a285_0x475e72,_0x23261c=JSON[_0x390daa(0xd6)](normalizeConfigForWrite(_0x3bbb88),null,0x2)+'\x0a';if(normalizedWriteCache[_0x390daa(0xef)](_0x3a1131)===_0x23261c)return;writeConfigFile(_0x3a1131,_0x3bbb88),normalizedWriteCache[_0x390daa(0xfd)](_0x3a1131,_0x23261c);}function parseAndNormalizeConfig(_0x24643c,_0x3b3531,_0x1586e5){const _0x4f171d=a285_0x475e72,_0x417b65=parseCliConfigJsonFile(_0x24643c,_0x3b3531,_0x1586e5),_0x52a632=normalizeLegacyConfigShape(_0x417b65);if(_0x52a632['migrated'])try{writeNormalizedConfigIfNeeded(_0x24643c,_0x52a632[_0x4f171d(0xfb)]);}catch{}return _0x52a632['config'];}export function loadRawConfigLayers(_0x1dab9c){const _0x1e28de=a285_0x475e72;let _0x452ed8={},_0x1d8ad2={};const _0xbd46bd=resolveConfigPath(homedir());_0xbd46bd&&(_0x452ed8=parseAndNormalizeConfig(_0xbd46bd,_0x1e28de(0xcf),'Global'));const _0x5baab3=_0x1dab9c??findProjectRootDirectory(),_0x5a813f=resolveConfigPath(_0x5baab3);return _0x5a813f&&(_0x1d8ad2=parseAndNormalizeConfig(_0x5a813f,_0x1e28de(0xcf),_0x1e28de(0xf8))),{'globalPath':_0xbd46bd,'projectPath':_0x5a813f,'globalConfig':_0x452ed8,'projectConfig':_0x1d8ad2};}const INHERIT_WHITELIST=[a285_0x475e72(0xec),a285_0x475e72(0xf0),a285_0x475e72(0xe3),'format',a285_0x475e72(0xf1),a285_0x475e72(0xe6),a285_0x475e72(0xd9),a285_0x475e72(0xe0),a285_0x475e72(0xd7),a285_0x475e72(0xff),'runtimeDomain',a285_0x475e72(0xfe),a285_0x475e72(0xd5),a285_0x475e72(0xda),a285_0x475e72(0xd1),a285_0x475e72(0xfa),'certificateDomain'];export function mergeRawConfigLayers(_0xd2534f){const _0x577b6d=a285_0x475e72,{globalConfig:_0x23a5ac,projectConfig:_0x42b9a2}=_0xd2534f,_0x56cb4c=!!_0xd2534f['projectPath']||Object['keys'](_0x42b9a2)[_0x577b6d(0xe1)]>0x0;if(!_0x56cb4c)return mergeGlobalOnly(_0x23a5ac);return mergeProjectFirst(_0x23a5ac,_0x42b9a2);}function mergeGlobalOnly(_0x350a0a){const _0x53bac3=a285_0x475e72,_0x223cfe={..._0x350a0a};delete _0x223cfe[_0x53bac3(0xf6)];const _0x313798=_0x350a0a[_0x53bac3(0xea)]&&typeof _0x350a0a['apps']==='object'?_0x350a0a[_0x53bac3(0xea)]:{};if(Object[_0x53bac3(0xeb)](_0x313798)[_0x53bac3(0xe1)]>0x0)_0x223cfe['apps']=_0x313798;if(_0x350a0a[_0x53bac3(0xf3)])_0x223cfe['defaultApp']=_0x350a0a[_0x53bac3(0xf3)];return _0x223cfe;}function mergeProjectFirst(_0x4e0c02,_0x212f7c){const _0x3eb061=a285_0x475e72,_0x5401cf={..._0x212f7c};delete _0x5401cf[_0x3eb061(0xf6)];for(const _0x2541e0 of INHERIT_WHITELIST){!(_0x2541e0 in _0x5401cf)&&_0x2541e0 in _0x4e0c02&&(_0x5401cf[_0x2541e0]=_0x4e0c02[_0x2541e0]);}const _0x3cf94c=_0x212f7c['apps']&&typeof _0x212f7c[_0x3eb061(0xea)]==='object'?_0x212f7c[_0x3eb061(0xea)]:{};return Object[_0x3eb061(0xeb)](_0x3cf94c)[_0x3eb061(0xe1)]>0x0?_0x5401cf[_0x3eb061(0xea)]=_0x3cf94c:delete _0x5401cf['apps'],'defaultApp'in _0x212f7c?_0x5401cf['defaultApp']=_0x212f7c[_0x3eb061(0xf3)]:delete _0x5401cf['defaultApp'],_0x5401cf;}export function readRawConfigWithLayers(_0x38c4c5){const _0x2acd97=loadRawConfigLayers(_0x38c4c5);return{'config':mergeRawConfigLayers(_0x2acd97),'layers':_0x2acd97};}function a285_0x24f1(_0x54af28,_0x5636d1){_0x54af28=_0x54af28-0xce;const _0x28d2c9=a285_0x28d2();let _0x24f133=_0x28d2c9[_0x54af28];return _0x24f133;}export function readRawConfig(_0x29d9b3){return mergeRawConfigLayers(loadRawConfigLayers(_0x29d9b3));}export function readConfigFile(_0x1dcac1){const _0x4fe59b=a285_0x475e72;return parseAndNormalizeConfig(_0x1dcac1,_0x4fe59b(0xdc));}export function writeConfigFile(_0x25ce49,_0x2d7ecb){const _0x13f260=a285_0x475e72,_0x29fb0e=dirname(_0x25ce49);!existsSync(_0x29fb0e)&&mkdirSync(_0x29fb0e,{'recursive':!![]});const _0x3adad5=_0x25ce49+_0x13f260(0xe9);try{const _0x27f7c8=normalizeConfigForWrite(_0x2d7ecb);writeFileSync(_0x3adad5,JSON[_0x13f260(0xd6)](_0x27f7c8,null,0x2)+'\x0a',{'encoding':_0x13f260(0xf4),'mode':0x180}),renameSync(_0x3adad5,_0x25ce49);}catch(_0x3dcefe){try{unlinkSync(_0x3adad5);}catch{}throw _0x3dcefe;}}export function resolveWriteConfigPath(_0x579ae8){const _0x57e325=a285_0x475e72,_0x4e9382=_0x579ae8==='project'?process[_0x57e325(0xed)]():homedir(),_0x2808d9=resolveConfigPath(_0x4e9382);return _0x2808d9??resolve(_0x4e9382,NEW_CONFIG_NAME);}function a285_0x28d2(){const _0x1300fa=['object','set','skillDomain','apiDomain','433948CHZciZ','3908995AvmwMm','error','6034063OTEeQE','app','24yWnXxY','warn','trim','appDomain','19863zLgeyk','2125806VueJYx','env','kbDomain','stringify','userDomain','8141940NLHJXX','region','kbServiceDomain','1rkztLg','silent','status','32685620AoRhoi','\x20config\x20file\x20ignored\x20(invalid\x20JSON\x20or\x20unreadable):\x20','routing','length','format','locale','message','3632Uzpsae','pageSize','missing','6AKkhdY','.tmp','apps','keys','cookie','cwd','string','get','accessKey','riskLevel','apiDir','defaultApp','utf8','empty','inherit','.rabetbase.json','Project','appcode','localDomain','config'];a285_0x28d2=function(){return _0x1300fa;};return a285_0x28d2();}
|
package/lib/context.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a286_0x34879f=a286_0x219b;(function(_0x54e396,_0x3fa354){const _0x9d1494=a286_0x219b,_0x5779a5=_0x54e396();while(!![]){try{const _0x238207=parseInt(_0x9d1494(0x1f3))/0x1*(-parseInt(_0x9d1494(0x1ed))/0x2)+parseInt(_0x9d1494(0x206))/0x3*(-parseInt(_0x9d1494(0x227))/0x4)+parseInt(_0x9d1494(0x224))/0x5*(parseInt(_0x9d1494(0x205))/0x6)+parseInt(_0x9d1494(0x229))/0x7*(-parseInt(_0x9d1494(0x21a))/0x8)+-parseInt(_0x9d1494(0x22a))/0x9*(parseInt(_0x9d1494(0x1fc))/0xa)+parseInt(_0x9d1494(0x204))/0xb+-parseInt(_0x9d1494(0x1f4))/0xc*(-parseInt(_0x9d1494(0x1e3))/0xd);if(_0x238207===_0x3fa354)break;else _0x5779a5['push'](_0x5779a5['shift']());}catch(_0x431d41){_0x5779a5['push'](_0x5779a5['shift']());}}}(a286_0x10b7,0x1efbf));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(_0x8ef37e){return process.env[`RABETBASE_${_0x8ef37e}`]||process.env[`LOVRABET_${_0x8ef37e}`]||undefined;}function optionalString(_0x4ee163){const _0x5ed9e5=a286_0x219b;return typeof _0x4ee163===_0x5ed9e5(0x1e6)&&_0x4ee163[_0x5ed9e5(0x1e0)]()?_0x4ee163['trim']():undefined;}export function isRoutingRecoveryService(_0x589b29){const _0x16436c=a286_0x219b;return _0x589b29===_0x16436c(0x213)||_0x589b29===_0x16436c(0x222);}export async function createContext(_0x491a79){const _0x3082d3=a286_0x219b,{config:_0x4d9a98,layers:_0x5b89e0}=readRawConfigWithLayers(),_0x2f6f3b=buildConfig(_0x4d9a98,_0x491a79,_0x5b89e0);await initGlobalEnvironment(_0x2f6f3b);const {getUserDomain:_0x5b6d68,getApiDomain:_0x2c76d1}=await import('./constant/domain.js'),_0x526482={'apiDomain':_0x2c76d1(),'userDomain':_0x5b6d68()},_0x546b0e=await buildAuth(_0x2f6f3b);logger['setLogPath'](process[_0x3082d3(0x1f2)]());const _0x53a73d=(CLI_BIN_NAME+'\x20'+process[_0x3082d3(0x20e)][_0x3082d3(0x1f6)](0x2)[_0x3082d3(0x22b)]('\x20'))[_0x3082d3(0x1e0)]();logger[_0x3082d3(0x1e4)](_0x53a73d);const {isNonInteractive:_0x4d2df4}=await import(_0x3082d3(0x21c)),_0x141b94=_0x4d2df4(_0x491a79);return{'config':_0x2f6f3b,'auth':_0x546b0e,'logger':logger,'env':_0x526482,'nonInteractive':_0x141b94};}export function buildConfigFromFlags(_0x2902f8){const {config:_0x1d2365,layers:_0x5ce039}=readRawConfigWithLayers();return buildConfig(_0x1d2365,_0x2902f8,_0x5ce039);}export async function initGlobalEnvironment(_0x3a3239){const _0x2edaec=a286_0x219b,_0x453144=_0x3a3239[_0x2edaec(0x215)]==='app'&&_0x3a3239[_0x2edaec(0x1e5)]?_0x2edaec(0x216)+_0x3a3239[_0x2edaec(0x1e5)]+'\x22':_0x3a3239[_0x2edaec(0x215)]===_0x2edaec(0x1ff)?_0x2edaec(0x1eb):_0x3a3239[_0x2edaec(0x215)]===_0x2edaec(0x1f9)?_0x2edaec(0x217):_0x2edaec(0x1e7);await initConfiguredEnvironment({'raw':_0x3a3239[_0x2edaec(0x1fb)],'configuredRegion':_0x3a3239[_0x2edaec(0x223)]??_0x3a3239[_0x2edaec(0x1fb)]?.[_0x2edaec(0x1e1)]??_0x3a3239[_0x2edaec(0x1e1)],'regionLocation':_0x453144,'targetEnv':_0x3a3239[_0x2edaec(0x1e8)]});}function a286_0x10b7(){const _0x3330a8=['routingConfig','agentDomain','project','appDomain','defaultApp','template_base_url','production','1861145ZHnymT','22938XLlXwO','75SGsgCi','keys','skillHubDomain','hasOwnProperty','./constant/domain.js','merged','app','regionLocation','argv','certificateDomain','cdn','runtimeDomain','kbDomain','config','map','regionSource','app\x20profile\x20\x22','global\x20Rabetbase\x20configuration','platformDomain','globalConfig','1529648VAuHdF','name','./utils/is-non-interactive.js','prototype','source','values','object','filePath','doctor','regionConfiguredValue','305ARptRy','skillDomain','apps','7484dqVufx','domains','7zNAWSq','1030284kjyoWc','join','projectConfig','filter','trim','region','localDomain','1079bEXrEs','setRawCommand','currentApp','string','Rabetbase\x20configuration','env','cookie','routing','project\x20Rabetbase\x20configuration','appcode','23612AXmemi','daily','configuredRegion','length','userDomain','cwd','11DknPRf','29904roPRtF','call','slice','apiDomain','apiDir','global','kbServiceDomain','raw','10ryVGqb'];a286_0x10b7=function(){return _0x3330a8;};return a286_0x10b7();}async function initConfiguredEnvironment(_0x1adbd4){const _0x1e92df=a286_0x219b,_0x43377f=resolveConfiguredRegion(_0x1adbd4[_0x1e92df(0x1ef)],_0x1adbd4[_0x1e92df(0x20d)]),_0x43ef67=resolveEnterpriseRoutingManifest(_0x1adbd4[_0x1e92df(0x1fb)]?.[_0x1e92df(0x1ea)]),_0x3fe6c7={'region':_0x43377f,'apiDomain':_0x43ef67?_0x43ef67['domains'][_0x1e92df(0x1f7)]:optionalString(_0x1adbd4[_0x1e92df(0x1fb)]?.[_0x1e92df(0x1f7)]),'userDomain':_0x43ef67?_0x43ef67[_0x1e92df(0x228)][_0x1e92df(0x1f1)]:optionalString(_0x1adbd4[_0x1e92df(0x1fb)]?.[_0x1e92df(0x1f1)]),'runtimeDomain':_0x43ef67?_0x43ef67['domains'][_0x1e92df(0x211)]:optionalString(_0x1adbd4['raw']?.[_0x1e92df(0x211)]),'skillDomain':_0x43ef67?_0x43ef67[_0x1e92df(0x228)][_0x1e92df(0x225)]:optionalString(_0x1adbd4[_0x1e92df(0x1fb)]?.[_0x1e92df(0x225)])||optionalString(_0x1adbd4[_0x1e92df(0x1fb)]?.['skillHubDomain'])||optionalString(_0x1adbd4[_0x1e92df(0x1fb)]?.[_0x1e92df(0x1fe)])||optionalString(_0x1adbd4[_0x1e92df(0x1fb)]?.['platformDomain']),'kbDomain':_0x43ef67?_0x43ef67[_0x1e92df(0x228)]['kbDomain']:optionalString(_0x1adbd4[_0x1e92df(0x1fb)]?.[_0x1e92df(0x212)])||optionalString(_0x1adbd4[_0x1e92df(0x1fb)]?.[_0x1e92df(0x1fe)])||optionalString(_0x1adbd4[_0x1e92df(0x1fb)]?.[_0x1e92df(0x218)]),'kbServiceDomain':_0x43ef67?_0x43ef67['domains'][_0x1e92df(0x1fa)]:optionalString(_0x1adbd4[_0x1e92df(0x1fb)]?.['kbServiceDomain']),'appDomain':_0x43ef67?_0x43ef67[_0x1e92df(0x228)][_0x1e92df(0x200)]:optionalString(_0x1adbd4[_0x1e92df(0x1fb)]?.['appDomain']),'localDomain':_0x43ef67?_0x43ef67[_0x1e92df(0x228)][_0x1e92df(0x1e2)]:optionalString(_0x1adbd4[_0x1e92df(0x1fb)]?.[_0x1e92df(0x1e2)]),'certificateDomain':_0x43ef67?_0x43ef67[_0x1e92df(0x228)]['certificateDomain']:optionalString(_0x1adbd4[_0x1e92df(0x1fb)]?.[_0x1e92df(0x20f)]),'cdn':_0x43ef67?.[_0x1e92df(0x210)],'allowOfficialKbServiceDefault':!(_0x43ef67!==undefined||[_0x1e92df(0x1f7),_0x1e92df(0x1f1),_0x1e92df(0x211),'skillDomain',_0x1e92df(0x208),_0x1e92df(0x212),_0x1e92df(0x1fa),'agentDomain',_0x1e92df(0x218),_0x1e92df(0x200),_0x1e92df(0x1e2),'certificateDomain']['some'](_0x3e0a94=>Object[_0x1e92df(0x21d)][_0x1e92df(0x209)][_0x1e92df(0x1f5)](_0x1adbd4[_0x1e92df(0x1fb)]??{},_0x3e0a94)))},{initEnv:_0x205c08}=await import('./constant/env.js'),{initDomains:_0x5ba5f2}=await import(_0x1e92df(0x20a));_0x205c08(_0x1adbd4['targetEnv']),_0x5ba5f2(_0x3fe6c7);}export async function initMultiAppEnvironment(_0x4efef7){const _0xf5d2d6=a286_0x219b;await initConfiguredEnvironment({'raw':_0x4efef7[_0xf5d2d6(0x1fd)],'configuredRegion':_0x4efef7[_0xf5d2d6(0x1e1)],'regionLocation':_0xf5d2d6(0x216)+_0x4efef7[_0xf5d2d6(0x21b)]+'\x22','targetEnv':_0x4efef7[_0xf5d2d6(0x1e8)]===_0xf5d2d6(0x1ee)?_0xf5d2d6(0x1ee):_0xf5d2d6(0x203)});}export function getConfigAppCode(_0x4b3921){const _0x30c57c=a286_0x219b,_0x4033bd=readRawConfig(_0x4b3921);if(_0x4033bd[_0x30c57c(0x226)]&&typeof _0x4033bd['apps']===_0x30c57c(0x220)){const _0x368f4=_0x4033bd[_0x30c57c(0x201)];if(_0x368f4)return _0x4033bd[_0x30c57c(0x226)][_0x368f4]?.[_0x30c57c(0x1ec)]?String(_0x4033bd[_0x30c57c(0x226)][_0x368f4][_0x30c57c(0x1ec)])[_0x30c57c(0x1e0)]():undefined;const _0x3af197=Object[_0x30c57c(0x21f)](_0x4033bd[_0x30c57c(0x226)]);if(_0x3af197[_0x30c57c(0x1f0)]===0x1&&_0x3af197[0x0]?.[_0x30c57c(0x1ec)])return String(_0x3af197[0x0][_0x30c57c(0x1ec)])[_0x30c57c(0x1e0)]();}const _0x394948=_0x4033bd['appcode']||_0x4033bd[_0x30c57c(0x20c)];if(typeof _0x394948!==_0x30c57c(0x1e6)||_0x394948[_0x30c57c(0x1e0)]()==='')return undefined;return _0x394948[_0x30c57c(0x1e0)]();}const CONNECTION_ROUTING_KEYS=[a286_0x34879f(0x1ea),a286_0x34879f(0x1f7),a286_0x34879f(0x1f1),a286_0x34879f(0x211),'skillDomain','skillHubDomain',a286_0x34879f(0x212),a286_0x34879f(0x1fa),a286_0x34879f(0x1fe),a286_0x34879f(0x218),a286_0x34879f(0x200),'localDomain',a286_0x34879f(0x20f)];function withAppProfileRouting(_0x156f0a,_0x3e15c0){const _0x4fc9fe=a286_0x34879f;if(!_0x3e15c0||_0x3e15c0[_0x4fc9fe(0x1fa)]===undefined)return _0x156f0a;return{..._0x156f0a,'kbServiceDomain':_0x3e15c0[_0x4fc9fe(0x1fa)]};}function a286_0x219b(_0x49939b,_0x1b0c39){_0x49939b=_0x49939b-0x1e0;const _0x10b715=a286_0x10b7();let _0x219b16=_0x10b715[_0x49939b];return _0x219b16;}function pickConnectionRoutingConfig(_0x1457e2,_0xa94c83){const _0x24a4a2={'region':_0xa94c83};for(const _0x4c2cff of CONNECTION_ROUTING_KEYS){if(_0x1457e2[_0x4c2cff]!==undefined)_0x24a4a2[_0x4c2cff]=_0x1457e2[_0x4c2cff];}return _0x24a4a2;}export function getMultiAppConfigs(_0x5e2fea=a286_0x34879f(0x1ff),_0x48f6f6){const _0x403c99=a286_0x34879f,_0xa0b2b1=loadRawConfigLayers(_0x48f6f6);let _0x53a35f,_0x5cd13c;const _0x2b1c5b=mergeRawConfigLayers(_0xa0b2b1),_0x28e7ca=_0xa0b2b1[_0x403c99(0x219)][_0x403c99(0x226)]&&typeof _0xa0b2b1[_0x403c99(0x219)][_0x403c99(0x226)]===_0x403c99(0x220)?_0xa0b2b1[_0x403c99(0x219)][_0x403c99(0x226)]:{},_0x535bde=_0xa0b2b1[_0x403c99(0x22c)]['apps']&&typeof _0xa0b2b1[_0x403c99(0x22c)][_0x403c99(0x226)]===_0x403c99(0x220)?_0xa0b2b1[_0x403c99(0x22c)][_0x403c99(0x226)]:{};_0x5e2fea===_0x403c99(0x20b)?(_0x53a35f={..._0x28e7ca,..._0x535bde},_0x5cd13c=_0x2b1c5b[_0x403c99(0x201)]):(_0x53a35f=_0xa0b2b1[_0x403c99(0x22c)][_0x403c99(0x226)],_0x5cd13c=_0xa0b2b1[_0x403c99(0x22c)][_0x403c99(0x201)]);!_0x5cd13c&&_0x53a35f&&typeof _0x53a35f===_0x403c99(0x220)&&Object[_0x403c99(0x207)](_0x53a35f)[_0x403c99(0x1f0)]===0x1&&(_0x5cd13c=Object[_0x403c99(0x207)](_0x53a35f)[0x0]);if(!_0x53a35f||typeof _0x53a35f!=='object'||Object['keys'](_0x53a35f)['length']===0x0)return null;return Object['entries'](_0x53a35f)[_0x403c99(0x214)](([_0x2d5369,_0x29e4dd])=>{const _0x4f6449=_0x403c99,_0x1549f0=_0x5e2fea===_0x4f6449(0x1ff)||Object[_0x4f6449(0x21d)][_0x4f6449(0x209)]['call'](_0x535bde,_0x2d5369),_0x4a0170=withAppProfileRouting(_0x1549f0?_0x2b1c5b:_0xa0b2b1[_0x4f6449(0x219)],_0x29e4dd),_0x515f9a=resolveEffectiveRegion({'appRegion':_0x29e4dd?.[_0x4f6449(0x1e1)],'projectRegion':_0x1549f0?_0xa0b2b1['projectConfig'][_0x4f6449(0x1e1)]:undefined,'globalRegion':_0xa0b2b1[_0x4f6449(0x219)]['region'],'mergedRegion':_0x4a0170[_0x4f6449(0x1e1)],'appName':_0x2d5369});return{'name':_0x2d5369,'appcode':_0x29e4dd?.[_0x4f6449(0x1ec)]||'','apiGroup':optionalString(_0x29e4dd?.['apiGroup']),'isDefault':_0x2d5369===_0x5cd13c,'region':_0x515f9a['region'],'regionSource':_0x515f9a[_0x4f6449(0x21e)],'env':_0x29e4dd?.[_0x4f6449(0x1e8)],'apiDir':optionalString(_0x29e4dd?.[_0x4f6449(0x1f8)])||optionalString(_0x4a0170['apiDir']),'cookie':_0x29e4dd?.[_0x4f6449(0x1e9)]||undefined,'routingConfig':pickConnectionRoutingConfig(_0x4a0170,_0x515f9a[_0x4f6449(0x1e1)])};})[_0x403c99(0x22d)](_0x5f2b8f=>_0x5f2b8f[_0x403c99(0x1ec)]);}export function getTemplateBaseUrl(_0x3221e6){const _0x5d1a70=a286_0x34879f,_0x3e4f11=readRawConfig(_0x3221e6);if(_0x3e4f11[_0x5d1a70(0x202)]&&typeof _0x3e4f11[_0x5d1a70(0x202)]===_0x5d1a70(0x1e6))return _0x3e4f11[_0x5d1a70(0x202)]['replace'](/\/$/,'');return'https://g.lovrabet.com/dist/lovrabet-skill';}function buildConfig(_0xbb5b9a,_0x177c5e,_0x4f59e6){const _0x1ce304=a286_0x34879f,_0x11c7a2=resolveAppConfig({'raw':_0xbb5b9a,'flags':_0x177c5e,'layers':_0x4f59e6,'readEnv':env}),_0x3ab5fc=_0x11c7a2[_0x1ce304(0x1e5)]?_0x11c7a2['apps'][_0x11c7a2[_0x1ce304(0x1e5)]]:undefined;return{..._0x11c7a2,'raw':withAppProfileRouting(_0xbb5b9a,_0x3ab5fc)};}export function resolveApiFilePath(_0x1367e9,_0x4592e1,_0x588c8b){const _0x966dd9=a286_0x34879f;return resolveApiModelSource(_0x1367e9,_0x4592e1,_0x588c8b)[_0x966dd9(0x221)];}
|
|
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 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a287_0x957179=a287_0x45f6;(function(_0x12b7ea,_0x552eb9){const _0x45953e=a287_0x45f6,_0x96f30d=_0x12b7ea();while(!![]){try{const _0x5673eb=-parseInt(_0x45953e(0xc3))/0x1*(parseInt(_0x45953e(0xb6))/0x2)+-parseInt(_0x45953e(0xa9))/0x3*(-parseInt(_0x45953e(0xb9))/0x4)+parseInt(_0x45953e(0xbe))/0x5*(parseInt(_0x45953e(0xb1))/0x6)+parseInt(_0x45953e(0xa5))/0x7*(parseInt(_0x45953e(0xa8))/0x8)+-parseInt(_0x45953e(0xa3))/0x9+parseInt(_0x45953e(0xae))/0xa+-parseInt(_0x45953e(0xaf))/0xb*(-parseInt(_0x45953e(0xb8))/0xc);if(_0x5673eb===_0x552eb9)break;else _0x96f30d['push'](_0x96f30d['shift']());}catch(_0x593549){_0x96f30d['push'](_0x96f30d['shift']());}}}(a287_0x5d29,0xa9436));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_0x957179(0xa0),a287_0x957179(0xc7),a287_0x957179(0xb7),a287_0x957179(0xac),a287_0x957179(0x9f),a287_0x957179(0xc5),a287_0x957179(0xc6)],LOCAL_REEXPORT_RE=/\bexport\s+(?:type\s+)?(?:\{[\s\S]*?\}|\*)\s+from\s*["']([^"']+)["']/g,SOURCE_EXTENSIONS_BY_RUNTIME_EXTENSION={'.js':[a287_0x957179(0xbf),a287_0x957179(0xa0)],'.jsx':[a287_0x957179(0xa0)],'.mjs':[a287_0x957179(0xc7)],'.cjs':[a287_0x957179(0xb7)]};function parseApiFile(_0x186f11){const _0x1367a9=a287_0x957179;return parseLegacyApiModels(_0x186f11)[_0x1367a9(0xb0)](_0x20d8ac=>_0x20d8ac[_0x1367a9(0xc4)]?[{'alias':_0x20d8ac['alias'],'datasetCode':_0x20d8ac[_0x1367a9(0xc2)],'tableName':_0x20d8ac['tableName'],'name':_0x20d8ac[_0x1367a9(0xa1)]}]:[]);}function isWithinRoot(_0x124e57,_0x5db911){const _0x55912b=a287_0x957179,_0x19438d=relative(_0x124e57,_0x5db911);return _0x19438d===''||!_0x19438d[_0x55912b(0xa4)]('..')&&!isAbsolute(_0x19438d);}function resolveExistingFile(_0x3f8433){if(!existsSync(_0x3f8433))return undefined;try{return statSync(_0x3f8433)['isFile']()?realpathSync(_0x3f8433):undefined;}catch{return undefined;}}function reexportCandidatePaths(_0x20ccb5){const _0x10b398=a287_0x957179,_0x45fc3b=extname(_0x20ccb5);if(!_0x45fc3b)return[...SOURCE_FILE_EXTENSIONS[_0x10b398(0xa2)](_0x3ed894=>''+_0x20ccb5+_0x3ed894),...SOURCE_FILE_EXTENSIONS[_0x10b398(0xa2)](_0x3c9f00=>resolve(_0x20ccb5,'index'+_0x3c9f00))];const _0x4bb245=SOURCE_EXTENSIONS_BY_RUNTIME_EXTENSION[_0x45fc3b];if(!_0x4bb245)return[_0x20ccb5];const _0x1aca96=_0x20ccb5[_0x10b398(0xad)](0x0,-_0x45fc3b[_0x10b398(0xb5)]);return[..._0x4bb245[_0x10b398(0xa2)](_0x1a6160=>''+_0x1aca96+_0x1a6160),_0x20ccb5];}function resolveLocalReexport(_0x7f02b0,_0xd34697,_0x2893ba){const _0x4394ec=a287_0x957179;if(!_0xd34697[_0x4394ec(0xa4)]('./')&&!_0xd34697[_0x4394ec(0xa4)](_0x4394ec(0xa7)))return undefined;const _0xe10fdd=resolve(dirname(_0x7f02b0),_0xd34697);if(!isWithinRoot(_0x2893ba,_0xe10fdd))return undefined;for(const _0x2f132a of reexportCandidatePaths(_0xe10fdd)){const _0x4e092b=resolveExistingFile(_0x2f132a);if(_0x4e092b&&isWithinRoot(_0x2893ba,_0x4e092b))return _0x4e092b;}return undefined;}function a287_0x45f6(_0x5eb091,_0x266488){_0x5eb091=_0x5eb091-0x9e;const _0x5d29cd=a287_0x5d29();let _0x45f642=_0x5d29cd[_0x5eb091];return _0x45f642;}function parseApiFileTree(_0x23b005,_0x43182c,_0x4e4225,_0x5a6694){const _0x1178d0=a287_0x957179,_0x47bcdb=resolveExistingFile(_0x23b005);if(!_0x47bcdb)return[];const _0x303dbb=_0x4e4225['get'](_0x47bcdb);if(_0x303dbb!==undefined&&_0x303dbb<=_0x5a6694)return[];_0x4e4225[_0x1178d0(0xc1)](_0x47bcdb,_0x5a6694);const _0x569bf4=readFileSync(_0x47bcdb,_0x1178d0(0xbb)),_0x28edf5=parseApiFile(_0x569bf4);if(_0x5a6694>=MAX_LOCAL_REEXPORT_DEPTH)return _0x28edf5;const _0x2cbfcb=new RegExp(LOCAL_REEXPORT_RE[_0x1178d0(0xb4)],LOCAL_REEXPORT_RE[_0x1178d0(0xbc)]);let _0x1795a3;while((_0x1795a3=_0x2cbfcb[_0x1178d0(0xb2)](_0x569bf4))!==null){const _0x4d5634=resolveLocalReexport(_0x47bcdb,_0x1795a3[0x1],_0x43182c);_0x4d5634&&_0x28edf5[_0x1178d0(0xab)](...parseApiFileTree(_0x4d5634,_0x43182c,_0x4e4225,_0x5a6694+0x1));}return _0x28edf5;}function aliasProjectRoot(_0x5dcd39){const _0x4112b0=findProjectRootDirectory(dirname(_0x5dcd39));try{return realpathSync(_0x4112b0);}catch{return _0x4112b0;}}function a287_0x5d29(){const _0x3ccf9a=['alias','.mjs','.cjs','.mts','defaultProfile','.jsx','.tsx','name','map','7483419GCiNFH','startsWith','6026769KmLpPS','endsWith','../','8utWOxJ','9YxWmai','api.ts','push','.js','slice','2335190imGjKb','44LMzNCW','flatMap','28488tIasoX','exec','size','source','length','4wVUaPM','.cts','1810812bueYPf','1202948YRWKUT','stringify','utf-8','flags','tableName','80KDhKBo','.ts','filter','set','datasetCode','575738IDrtZv'];a287_0x5d29=function(){return _0x3ccf9a;};return a287_0x5d29();}function uniqueAliasEntries(_0x4b3ffa){const _0x28a1d2=a287_0x957179,_0x67d68d=new Set();return _0x4b3ffa[_0x28a1d2(0xc0)](_0x12b215=>{const _0x72384=_0x28a1d2,_0x16f240=JSON[_0x72384(0xba)](_0x12b215);if(_0x67d68d['has'](_0x16f240))return![];return _0x67d68d['add'](_0x16f240),!![];});}export function loadAliasMap(_0x811f51,_0x553cb9,_0x1aa788,_0x3baf03){const _0x570397=a287_0x957179,_0x2a2c07=resolve(_0x1aa788??resolve(process['cwd'](),_0x811f51,_0x570397(0xaa))),_0x290567=_0x3baf03?_0x2a2c07+'#'+_0x3baf03:_0x2a2c07;if(cache['has'](_0x290567))return cache['get'](_0x290567);if(!existsSync(_0x2a2c07))return cache[_0x570397(0xc1)](_0x290567,[]),[];try{if(_0x2a2c07[_0x570397(0xa6)](MODEL_REGISTRY_FILE_NAME)){const _0x531903=readModelRegistry(_0x2a2c07),_0x455a64=_0x3baf03??_0x531903?.[_0x570397(0x9e)],_0x2d150d=_0x455a64&&_0x531903?getProfileModels(_0x531903,_0x455a64):[],_0x5553fc=uniqueAliasEntries(_0x2d150d[_0x570397(0xb0)](_0x28b12e=>_0x28b12e[_0x570397(0xc4)]?[{'alias':_0x28b12e[_0x570397(0xc4)],'datasetCode':_0x28b12e[_0x570397(0xc2)],'tableName':_0x28b12e[_0x570397(0xbd)],'name':_0x28b12e[_0x570397(0xa1)]}]:[]));return cache['set'](_0x290567,_0x5553fc),_0x5553fc;}const _0x5e8925=uniqueAliasEntries(parseApiFileTree(_0x2a2c07,aliasProjectRoot(_0x2a2c07),new Map(),0x0));return cache['set'](_0x290567,_0x5e8925),_0x5e8925;}catch{return cache['set'](_0x290567,[]),[];}}export function resolveAlias(_0x327364,_0x41148e,_0x4592e9,_0x52f444,_0x536e25){const _0x149790=a287_0x957179;if(!_0x41148e)return undefined;const _0x39041e=loadAliasMap(_0x327364,_0x4592e9,_0x52f444,_0x536e25),_0xf05a9=new Set(_0x39041e[_0x149790(0xc0)](_0x372bb3=>_0x372bb3[_0x149790(0xc4)]===_0x41148e)[_0x149790(0xa2)](_0x16771c=>_0x16771c['datasetCode']));return _0xf05a9[_0x149790(0xb3)]===0x1?[..._0xf05a9][0x0]:undefined;}export function listAliases(_0x20cc5e,_0x49d79b,_0x58be58,_0x455859){return loadAliasMap(_0x20cc5e,_0x49d79b,_0x58be58,_0x455859);}
|