@lovrabet/rabetbase-cli 2.5.2 → 2.5.3-beta.2
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/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.d.ts +1 -1
- package/lib/api/generate-api-file.js +1 -1
- package/lib/api/generate-sdk-config-file.d.ts +2 -1
- package/lib/api/generate-sdk-config-file.js +1 -1
- package/lib/auth/auth-server-ui.js +1 -1
- package/lib/auth/auth-server.js +1 -1
- package/lib/auth/constant.js +1 -1
- package/lib/auth/get-cookie.js +1 -1
- package/lib/auth/get-session-user.js +1 -1
- package/lib/auth/is-session-valid.js +1 -1
- package/lib/auth/login-success-html.js +1 -1
- package/lib/auth/logout.js +1 -1
- package/lib/cli-flags.js +1 -1
- package/lib/cli.js +1 -1
- package/lib/commands/api/generate.js +1 -1
- package/lib/commands/api/index.js +1 -1
- package/lib/commands/api/list.js +1 -1
- package/lib/commands/api/pull.js +1 -1
- package/lib/commands/api/shared.js +1 -1
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/members-list.js +1 -1
- package/lib/commands/app/remote-directory.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/delete.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/app-config/list.js +1 -1
- package/lib/commands/app-config/set.js +1 -1
- package/lib/commands/app-config/shared.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/bff/create.js +1 -1
- package/lib/commands/bff/delete.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/bff/list.js +1 -1
- package/lib/commands/bff/logs.d.ts +7 -0
- package/lib/commands/bff/logs.js +1 -0
- 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.d.ts +21 -0
- package/lib/commands/dataset/batch-design.js +1 -0
- 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/delete.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/extend-update.js +1 -1
- package/lib/commands/dataset/field-restore.js +1 -1
- package/lib/commands/dataset/field-update.js +1 -1
- package/lib/commands/dataset/generate.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/dataset/relation-audit.js +1 -1
- package/lib/commands/dataset/relation-create.js +1 -1
- package/lib/commands/dataset/relation-delete.js +1 -1
- package/lib/commands/dataset/relation-shared.js +1 -1
- package/lib/commands/dataset/relation-update.js +1 -1
- package/lib/commands/dataset/relations.js +1 -1
- package/lib/commands/dataset/rename.js +1 -1
- package/lib/commands/dataset/restore.js +1 -1
- package/lib/commands/dataset/user-deleted-field-list.js +1 -1
- package/lib/commands/db/analysis-batching.js +1 -1
- package/lib/commands/db/analyze-batch-plan.js +1 -1
- package/lib/commands/db/analyze-cancel.js +1 -1
- package/lib/commands/db/analyze-start.js +1 -1
- package/lib/commands/db/analyze-status.js +1 -1
- package/lib/commands/db/create.js +1 -1
- package/lib/commands/db/delete.js +1 -1
- package/lib/commands/db/detail.js +1 -1
- package/lib/commands/db/diff-refresh-start.js +1 -1
- package/lib/commands/db/diff-refresh-status.js +1 -1
- package/lib/commands/db/diff.js +1 -1
- package/lib/commands/db/index.js +1 -1
- package/lib/commands/db/list.js +1 -1
- package/lib/commands/db/shared.js +1 -1
- package/lib/commands/db/table-diff-shared.js +1 -1
- package/lib/commands/db/tables.js +1 -1
- package/lib/commands/db/test.js +1 -1
- package/lib/commands/db/update.js +1 -1
- package/lib/commands/deployment/index.js +1 -1
- package/lib/commands/deployment/sync-all.js +1 -1
- package/lib/commands/deployment/sync-jobs.js +1 -1
- package/lib/commands/deployment/sync-status.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/flow/create.d.ts +2 -0
- package/lib/commands/flow/create.js +1 -0
- package/lib/commands/flow/detail.d.ts +2 -0
- package/lib/commands/flow/detail.js +1 -0
- package/lib/commands/flow/index.d.ts +3 -0
- package/lib/commands/flow/index.js +1 -0
- package/lib/commands/flow/list.d.ts +2 -0
- package/lib/commands/flow/list.js +1 -0
- package/lib/commands/flow/publish.d.ts +2 -0
- package/lib/commands/flow/publish.js +1 -0
- package/lib/commands/flow/runtime-resources-shared.d.ts +40 -0
- package/lib/commands/flow/runtime-resources-shared.js +1 -0
- package/lib/commands/flow/runtime-role-list.d.ts +2 -0
- package/lib/commands/flow/runtime-role-list.js +1 -0
- package/lib/commands/flow/runtime-role-user-list.d.ts +2 -0
- package/lib/commands/flow/runtime-role-user-list.js +1 -0
- package/lib/commands/flow/runtime-user-search.d.ts +2 -0
- package/lib/commands/flow/runtime-user-search.js +1 -0
- package/lib/commands/flow/shared.d.ts +41 -0
- package/lib/commands/flow/shared.js +1 -0
- package/lib/commands/flow/update.d.ts +2 -0
- package/lib/commands/flow/update.js +1 -0
- package/lib/commands/flow/validate.d.ts +3 -0
- package/lib/commands/flow/validate.js +1 -0
- package/lib/commands/instant-api-policy/current.js +1 -1
- package/lib/commands/instant-api-policy/index.js +1 -1
- package/lib/commands/instant-api-policy/init.js +1 -1
- package/lib/commands/instant-api-policy/publish.js +1 -1
- package/lib/commands/instant-api-policy/pull.js +1 -1
- package/lib/commands/instant-api-policy/revision.js +1 -1
- package/lib/commands/instant-api-policy/revisions.js +1 -1
- package/lib/commands/instant-api-policy/rollback.js +1 -1
- package/lib/commands/instant-api-policy/shared.js +1 -1
- package/lib/commands/instant-api-policy/validate.js +1 -1
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/nudge.js +1 -1
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/issue/shared.js +1 -1
- package/lib/commands/kb/create.js +1 -1
- package/lib/commands/kb/delete.js +1 -1
- package/lib/commands/kb/detail.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/kb/list.js +1 -1
- package/lib/commands/kb/search.js +1 -1
- package/lib/commands/kb/shared.js +1 -1
- package/lib/commands/kb/update.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/asset-update.js +1 -1
- package/lib/commands/menu/delete.js +1 -1
- package/lib/commands/menu/external-link-create.js +1 -1
- package/lib/commands/menu/external-link-update.js +1 -1
- package/lib/commands/menu/group-create.js +1 -1
- package/lib/commands/menu/group-update.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/list.js +1 -1
- package/lib/commands/menu/move.js +1 -1
- package/lib/commands/menu/regroup-start.js +1 -1
- package/lib/commands/menu/rename.js +1 -1
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/delete-plan.js +1 -1
- package/lib/commands/menu/shared/facts.js +1 -1
- package/lib/commands/menu/shared/index.js +1 -1
- package/lib/commands/menu/shared/inquirer.js +1 -1
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.js +1 -1
- package/lib/commands/menu/shared/mutations.js +1 -1
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/sync-core.js +1 -1
- package/lib/commands/menu/shared/update-core.js +1 -1
- package/lib/commands/menu/shared/valid-url.js +1 -1
- package/lib/commands/menu/sync.js +1 -1
- package/lib/commands/menu/visibility-update.js +1 -1
- package/lib/commands/notification/config-create.js +1 -1
- package/lib/commands/notification/config-delete.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/config-update.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/notification/shared.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/page/create.js +1 -1
- package/lib/commands/page/custom/detail.js +1 -1
- package/lib/commands/page/custom/list.js +1 -1
- package/lib/commands/page/custom/publish.js +1 -1
- package/lib/commands/page/custom/shared.js +1 -1
- package/lib/commands/page/custom/syntax.js +1 -1
- package/lib/commands/page/custom/update.js +1 -1
- package/lib/commands/page/data-list-status.js +1 -1
- package/lib/commands/page/generate-start.js +1 -1
- package/lib/commands/page/generate-status.js +1 -1
- package/lib/commands/page/index.js +1 -1
- package/lib/commands/page/pull.js +1 -1
- package/lib/commands/page/push.js +1 -1
- package/lib/commands/page/relation-audit.js +1 -1
- package/lib/commands/page/restore.js +1 -1
- package/lib/commands/page/shared.js +1 -1
- package/lib/commands/page/sync.js +1 -1
- package/lib/commands/project/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/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.d.ts +23 -0
- package/lib/config/region-config.js +1 -0
- package/lib/config/schema.d.ts +15 -0
- 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.d.ts +6 -0
- 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.d.ts +13 -0
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.d.ts +172 -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.d.ts +55 -0
- package/lib/core/bff/hook-directory.js +1 -0
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/types.d.ts +15 -0
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/flow-config.d.ts +628 -0
- package/lib/core/flow-config.js +1 -0
- package/lib/core/instant-api-policy/config.js +1 -1
- package/lib/core/kb-search-client.js +1 -1
- package/lib/core/page/file-system.js +1 -1
- package/lib/core/page/hash.js +1 -1
- package/lib/core/page/lock.js +1 -1
- package/lib/core/page/lr-smart-jsx.d.ts +6 -0
- package/lib/core/page/lr-smart-jsx.js +1 -0
- package/lib/core/sql-index-auditor.js +1 -1
- package/lib/core/sql-sync/config.js +1 -1
- package/lib/core/sql-sync/file-system.js +1 -1
- package/lib/core/sql-sync/hash.js +1 -1
- package/lib/core/sql-sync/lock.js +1 -1
- package/lib/core/sql-sync/utils.js +1 -1
- package/lib/core/sql-validator.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/error-output.js +1 -1
- package/lib/framework/explicit-yes.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-alias.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/supported-flags.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/generated/official-routing.js +1 -1
- package/lib/generated/routing-contract.js +1 -1
- package/lib/help.js +1 -1
- package/lib/postinstall.js +1 -1
- package/lib/runtime/confirmation.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/skills/builtin-skill.js +1 -1
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/skill-presence.js +1 -1
- package/lib/telemetry/cli-command-trace.js +1 -1
- package/lib/telemetry/cli-help-trace.js +1 -1
- package/lib/telemetry/ensure-cli-otel-config.js +1 -1
- package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
- package/lib/telemetry/send-cli-trace-log.js +1 -1
- package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
- package/lib/types/index.d.ts +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.d.ts +2 -8
- 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.d.ts +2 -1
- package/lib/utils/template-replacer.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/with-active-cookie.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
- package/skills/rabetbase/SKILL.md +27 -8
- package/skills/rabetbase/guides/approval-flow-development-workflow.md +137 -0
- package/skills/rabetbase/guides/backend-function.md +19 -9
- package/skills/rabetbase/guides/bff-creation-workflow.md +10 -1
- package/skills/rabetbase/guides/conflict-detection.md +2 -0
- package/skills/rabetbase/guides/page-development-workflow.md +3 -0
- package/skills/rabetbase/guides/sdk-client-generation.md +6 -5
- package/skills/rabetbase/knowledge/approval-flow/config-json-schema.md +290 -0
- package/skills/rabetbase/knowledge/page-schema/LrSmartJsx.md +11 -3
- package/skills/rabetbase/references/rabetbase-api-pull.md +5 -4
- package/skills/rabetbase/references/rabetbase-app-list.md +3 -0
- package/skills/rabetbase/references/rabetbase-bff-create.md +1 -1
- package/skills/rabetbase/references/rabetbase-bff-list.md +1 -1
- package/skills/rabetbase/references/rabetbase-bff-logs.md +47 -0
- package/skills/rabetbase/references/rabetbase-bff-pull.md +9 -3
- package/skills/rabetbase/references/rabetbase-bff-push.md +10 -2
- package/skills/rabetbase/references/rabetbase-bff-status.md +2 -0
- package/skills/rabetbase/references/rabetbase-config.md +10 -9
- package/skills/rabetbase/references/rabetbase-dataset-generate.md +52 -2
- package/skills/rabetbase/references/rabetbase-doctor.md +2 -2
- package/skills/rabetbase/references/rabetbase-flow-commands.md +86 -0
- package/skills/rabetbase/references/rabetbase-flow-resources.md +83 -0
- package/skills/rabetbase/references/rabetbase-flow-runtime-boundary.md +25 -0
- package/skills/rabetbase/references/rabetbase-instant-api-policy.md +103 -11
- package/skills/rabetbase/references/rabetbase-notification-config-list.md +17 -0
- package/skills/rabetbase/references/rabetbase-page-push.md +5 -1
- package/skills/rabetbase/references/rabetbase-workspace.md +4 -2
- package/skills/rabetbase.manifest.json +9 -3
- package/templates/generate-api/client.ts.tpl +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a237_0x15f4(_0x1483cb,_0x1a48eb){_0x1483cb=_0x1483cb-0x196;const _0x3a153b=a237_0x3a15();let _0x15f40a=_0x3a153b[_0x1483cb];return _0x15f40a;}(function(_0x328a9f,_0x55ecd0){const _0xe4a10a=a237_0x15f4,_0x193713=_0x328a9f();while(!![]){try{const _0x4df292=-parseInt(_0xe4a10a(0x19a))/0x1*(parseInt(_0xe4a10a(0x19c))/0x2)+parseInt(_0xe4a10a(0x1a1))/0x3+parseInt(_0xe4a10a(0x199))/0x4*(parseInt(_0xe4a10a(0x1a0))/0x5)+-parseInt(_0xe4a10a(0x19f))/0x6*(parseInt(_0xe4a10a(0x19d))/0x7)+-parseInt(_0xe4a10a(0x19b))/0x8*(-parseInt(_0xe4a10a(0x19e))/0x9)+parseInt(_0xe4a10a(0x197))/0xa*(-parseInt(_0xe4a10a(0x198))/0xb)+-parseInt(_0xe4a10a(0x196))/0xc;if(_0x4df292===_0x55ecd0)break;else _0x193713['push'](_0x193713['shift']());}catch(_0x2a5c9b){_0x193713['push'](_0x193713['shift']());}}}(a237_0x3a15,0x424ba));import{dingTalkSandboxBind}from'../../commands/user-account/dingding-sandbox-bind.js';export const userAccountDefinitions=[dingTalkSandboxBind];function a237_0x3a15(){const _0x42b8d7=['1604660vGawEo','6527dcMfot','120PNMlyS','32lguQCK','231QnurDT','229374DKdywQ','84174FBzhRx','5FNSwsh','1149000FujPHb','2422008wqgDIE','3190HIbxKI','4334epkGed'];a237_0x3a15=function(){return _0x42b8d7;};return a237_0x3a15();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a238_0x50bd(){const _0x30442d=['8143553RQlWhg','18844KEXbHd','workspace\x20add','workspace','340265QfOZJp','3532mHSFTk','266472sNKszQ','90ANOoFz','write','App\x20profile\x20name','name','10gWInFl','969188ChIgTB','906WVTNAJ','add','3117860svlZxk','1374FTljjK'];a238_0x50bd=function(){return _0x30442d;};return a238_0x50bd();}function a238_0x1367(_0xb2b801,_0x5a6687){_0xb2b801=_0xb2b801-0x1db;const _0x50bd6d=a238_0x50bd();let _0x1367b4=_0x50bd6d[_0xb2b801];return _0x1367b4;}const a238_0x58f6a4=a238_0x1367;(function(_0x2d2e7f,_0x12a440){const _0x57131d=a238_0x1367,_0xd38dff=_0x2d2e7f();while(!![]){try{const _0x2dcc98=-parseInt(_0x57131d(0x1e3))/0x1+-parseInt(_0x57131d(0x1e4))/0x2*(-parseInt(_0x57131d(0x1db))/0x3)+-parseInt(_0x57131d(0x1eb))/0x4+-parseInt(_0x57131d(0x1dd))/0x5+parseInt(_0x57131d(0x1de))/0x6*(parseInt(_0x57131d(0x1e0))/0x7)+-parseInt(_0x57131d(0x1e5))/0x8*(parseInt(_0x57131d(0x1e6))/0x9)+-parseInt(_0x57131d(0x1ea))/0xa*(-parseInt(_0x57131d(0x1df))/0xb);if(_0x2dcc98===_0x12a440)break;else _0xd38dff['push'](_0xd38dff['shift']());}catch(_0x22a884){_0xd38dff['push'](_0xd38dff['shift']());}}}(a238_0x50bd,0x55ab3));import{buildAppAddFlags,runAppAdd,validateAppName}from'../../commands/common/app-registry.js';export const workspaceAddDefinition={'service':a238_0x58f6a4(0x1e2),'command':a238_0x58f6a4(0x1dc),'description':'Register\x20an\x20app\x20profile\x20in\x20the\x20current\x20workspace\x20(or\x20--global)','risk':a238_0x58f6a4(0x1e7),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':a238_0x58f6a4(0x1e9),'description':a238_0x58f6a4(0x1e8),'required':!![]}],'flags':buildAppAddFlags(),'validate':_0x57e050=>validateAppName(_0x57e050,a238_0x58f6a4(0x1e1)),'execute':_0x4777d1=>runAppAdd(_0x4777d1,a238_0x58f6a4(0x1e1))};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a239_0x48d072=a239_0xd9b2;(function(_0x4d7a40,_0x44a99e){const _0x2cf23d=a239_0xd9b2,_0x21e1a5=_0x4d7a40();while(!![]){try{const _0x346e20=-parseInt(_0x2cf23d(0x1a9))/0x1*(-parseInt(_0x2cf23d(0x1c0))/0x2)+-parseInt(_0x2cf23d(0x1c3))/0x3+-parseInt(_0x2cf23d(0x1d1))/0x4*(parseInt(_0x2cf23d(0x1aa))/0x5)+-parseInt(_0x2cf23d(0x1d6))/0x6+-parseInt(_0x2cf23d(0x1bd))/0x7+-parseInt(_0x2cf23d(0x1d2))/0x8+-parseInt(_0x2cf23d(0x1c1))/0x9*(-parseInt(_0x2cf23d(0x1a1))/0xa);if(_0x346e20===_0x44a99e)break;else _0x21e1a5['push'](_0x21e1a5['shift']());}catch(_0x5beb14){_0x21e1a5['push'](_0x21e1a5['shift']());}}}(a239_0x3486,0x6d792));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{RABETBASE_ENV_VALUES}from'../../constant/env.js';import{RABETBASE_OUTPUT_FORMAT_VALUES}from'../../constant/output.js';import{RISK_LEVEL_VALUES}from'../../constant/risk.js';import{validateAppcode}from'../../commands/common/validate.js';import{readConfigFile,readRawConfigWithLayers,resolveWriteConfigPath,writeConfigFile}from'../../context.js';import{workspaceAddDefinition}from'../../commands/workspace/add.js';import{workspaceRemoveDefinition}from'../../commands/workspace/remove.js';import{normalizeStoredDefaultApp}from'../../config/schema.js';import{ENABLED_LOVRABET_REGION_VALUES}from'../../constant/region.js';const WORKSPACE_USAGE=CLI_BIN_NAME+'\x20workspace\x20<init|use>\x20--app\x20<name>\x20[--appcode\x20<code>]',SAFE_PROFILE_KEYS=[a239_0x48d072(0x1c6),a239_0x48d072(0x1b2),'env',a239_0x48d072(0x19f),a239_0x48d072(0x1cc),a239_0x48d072(0x1ba),'riskLevel',a239_0x48d072(0x1bb)],workspaceFlags=[{'name':a239_0x48d072(0x1d0),'type':a239_0x48d072(0x1ad),'description':a239_0x48d072(0x1d4)},{'name':a239_0x48d072(0x1c6),'type':a239_0x48d072(0x1ad),'description':'App\x20code\x20to\x20bind\x20to\x20this\x20workspace'},{'name':'region','type':'string','description':a239_0x48d072(0x1cb),'enum':[...ENABLED_LOVRABET_REGION_VALUES]},{'name':a239_0x48d072(0x1c7),'type':a239_0x48d072(0x1ad),'description':a239_0x48d072(0x1b5),'enum':[...RABETBASE_ENV_VALUES]},{'name':a239_0x48d072(0x19f),'type':a239_0x48d072(0x1ad),'description':a239_0x48d072(0x1c2)},{'name':a239_0x48d072(0x1a0),'type':a239_0x48d072(0x1ad),'description':'Default\x20output\x20format\x20for\x20this\x20workspace\x20app\x20profile','enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':a239_0x48d072(0x1ba),'type':a239_0x48d072(0x19d),'description':a239_0x48d072(0x19b)},{'name':a239_0x48d072(0x1c4),'type':a239_0x48d072(0x1ad),'description':a239_0x48d072(0x1a6),'enum':[...RISK_LEVEL_VALUES]},{'name':'locale','type':a239_0x48d072(0x1ad),'description':a239_0x48d072(0x1d5)}];function isRecord(_0x3871fb){const _0x2a68ba=a239_0x48d072;return!!_0x3871fb&&typeof _0x3871fb===_0x2a68ba(0x1cd)&&!Array[_0x2a68ba(0x1ac)](_0x3871fb);}function assertValidAppcode(_0x2c7b42){const _0x438e59=a239_0x48d072,{valid:_0x56e81a,message:_0x1d140e}=validateAppcode(_0x2c7b42);if(!_0x56e81a)throw CliErrors[_0x438e59(0x1c5)](_0x438e59(0x1a5)+_0x2c7b42,_0x1d140e);}function a239_0xd9b2(_0x5127f3,_0x184b83){_0x5127f3=_0x5127f3-0x19b;const _0x348675=a239_0x3486();let _0xd9b239=_0x348675[_0x5127f3];return _0xd9b239;}function sanitizeProfile(_0x3694ee){if(!isRecord(_0x3694ee))return{};const _0x4007a0={};for(const _0x153345 of SAFE_PROFILE_KEYS){if(_0x3694ee[_0x153345]!==undefined)_0x4007a0[_0x153345]=_0x3694ee[_0x153345];}return _0x4007a0;}function cloneProfile(_0x3f7d02){return isRecord(_0x3f7d02)?{..._0x3f7d02}:{};}function collectWorkspaceProfileOverrides(_0x1b5407){const _0x5a4e03=a239_0x48d072,_0x4489de={},_0x2a2398=_0x1b5407[_0x5a4e03(0x1af)](_0x5a4e03(0x1b2)),_0x1d1a2e=_0x1b5407[_0x5a4e03(0x1af)]('env'),_0x468e66=_0x1b5407['str'](_0x5a4e03(0x19f)),_0x67d448=_0x1b5407[_0x5a4e03(0x1af)]('defaultFormat'),_0x3416f8=_0x1b5407[_0x5a4e03(0x1b0)](_0x5a4e03(0x1ba)),_0x4f5a4e=_0x1b5407['str'](_0x5a4e03(0x1c4)),_0x41bcae=_0x1b5407['str'](_0x5a4e03(0x1bb));if(_0x2a2398)_0x4489de[_0x5a4e03(0x1b2)]=_0x2a2398;if(_0x1d1a2e)_0x4489de[_0x5a4e03(0x1c7)]=_0x1d1a2e;if(_0x468e66)_0x4489de['apiDir']=_0x468e66;if(_0x67d448)_0x4489de[_0x5a4e03(0x1cc)]=_0x67d448;if(_0x3416f8!==undefined&&_0x3416f8!=='')_0x4489de[_0x5a4e03(0x1ba)]=Number(_0x3416f8);if(_0x4f5a4e)_0x4489de['riskLevel']=_0x4f5a4e;if(_0x41bcae)_0x4489de[_0x5a4e03(0x1bb)]=_0x41bcae;return _0x4489de;}async function validateWorkspaceArgs(_0x1662b2){const _0xdbaf5=a239_0x48d072,_0x1277d0=_0x1662b2[_0xdbaf5(0x1af)](_0xdbaf5(0x1d0))['trim'](),_0x56f48c=_0x1662b2[_0xdbaf5(0x1af)]('appcode')['trim']();if(!_0x1277d0&&!_0x56f48c)throw CliErrors[_0xdbaf5(0x1c5)](_0xdbaf5(0x1bf),_0xdbaf5(0x1b4)+CLI_BIN_NAME+_0xdbaf5(0x1c8)+CLI_BIN_NAME+_0xdbaf5(0x1b8));if(_0x56f48c)assertValidAppcode(_0x56f48c);}function resolveKnownApps(){const _0x1bf864=a239_0x48d072,{config:_0x1ff130,layers:_0x4a3354}=readRawConfigWithLayers(),_0x3f8576=isRecord(_0x1ff130['apps'])?_0x1ff130[_0x1bf864(0x1be)]:{},_0x391bc0=isRecord(_0x4a3354[_0x1bf864(0x1d7)]['apps'])?_0x4a3354[_0x1bf864(0x1d7)][_0x1bf864(0x1be)]:{};return{..._0x391bc0,..._0x3f8576};}function a239_0x3486(){const _0xe0743a=['number',').\x20Config:\x20','apiDir','defaultFormat','60bYpRFa','write','keys','workspace.','Invalid\x20appcode:\x20','Risk\x20level\x20for\x20this\x20workspace\x20app\x20profile','App\x20\x22','workspace','491VbdPQP','5ytrZLc','Pass\x20--appcode\x20<code>,\x20or\x20choose\x20one\x20of:\x20','isArray','string','\x20workspace\x20','str','flag','init','region','use','Use\x20`','Target\x20environment','.\x20Credentials:\x20not\x20written.','join','\x20workspace\x20use\x20--app\x20<name>`.','updated','pageSize','locale','trim','3348744tiWSac','apps','Missing\x20workspace\x20app\x20selector.','122PlAHOl','3409965AVStRP','API\x20directory\x20path\x20for\x20this\x20workspace\x20app\x20profile','1674021lIuqSu','riskLevel','validation','appcode','env','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20`','Initialize\x20the\x20current\x20workspace\x20app\x20binding','\x20--appcode\x20<code>`.','Country/region\x20for\x20this\x20workspace\x20app\x20profile','format','object','length','\x22\x20not\x20found.','app','2095708IZPcCM','225584RWWEcW','project','App\x20profile\x20name\x20to\x20use\x20in\x20this\x20workspace','App\x20locale\x20for\x20this\x20workspace\x20app\x20profile\x20(not\x20CLI\x20language;\x20reserved\x20for\x20later\x20app\x20use)','1598010ezuUWg','globalConfig','Default\x20page\x20size\x20for\x20this\x20workspace\x20app\x20profile','Workspace\x20'];a239_0x3486=function(){return _0xe0743a;};return a239_0x3486();}async function configureWorkspace(_0x3d4c16,_0x22d93e){const _0x4b1b83=a239_0x48d072,_0x1168e5=_0x3d4c16['str']('app')[_0x4b1b83(0x1bc)](),_0x22ac8a=_0x3d4c16[_0x4b1b83(0x1af)](_0x4b1b83(0x1c6))[_0x4b1b83(0x1bc)](),_0x34f5ec=_0x1168e5||_0x22ac8a;if(!_0x34f5ec)throw CliErrors['validation'](_0x4b1b83(0x1bf),_0x4b1b83(0x1b4)+CLI_BIN_NAME+_0x4b1b83(0x1c8)+CLI_BIN_NAME+_0x4b1b83(0x1b8));if(_0x22ac8a)assertValidAppcode(_0x22ac8a);const _0x126527=resolveWriteConfigPath(_0x4b1b83(0x1d3)),_0x1a7d3b=readConfigFile(_0x126527),_0x44ce3a=resolveKnownApps(),_0x361b1b=isRecord(_0x1a7d3b['apps'])?{..._0x1a7d3b['apps']}:{},_0x44c2e4=cloneProfile(_0x361b1b[_0x34f5ec]),_0x56d3ac=sanitizeProfile(_0x44ce3a[_0x34f5ec]),_0x51f60f=_0x22ac8a?{}:_0x56d3ac,_0x1d63b1=_0x22ac8a||_0x51f60f[_0x4b1b83(0x1c6)];if(!_0x1d63b1){const _0x15d933=Object[_0x4b1b83(0x1a3)](_0x44ce3a),_0x416787=_0x15d933[_0x4b1b83(0x1ce)]===0x0?_0x4b1b83(0x1b4)+CLI_BIN_NAME+_0x4b1b83(0x1ae)+_0x22d93e+'\x20--app\x20'+_0x34f5ec+_0x4b1b83(0x1ca):_0x4b1b83(0x1ab)+_0x15d933[_0x4b1b83(0x1b7)](',\x20');throw CliErrors[_0x4b1b83(0x1c5)](_0x4b1b83(0x1a7)+_0x34f5ec+_0x4b1b83(0x1cf),_0x416787);}assertValidAppcode(String(_0x1d63b1));const _0x28e21c={..._0x51f60f,..._0x44c2e4,'appcode':String(_0x1d63b1),...collectWorkspaceProfileOverrides(_0x3d4c16)};return _0x361b1b[_0x34f5ec]=_0x28e21c,_0x1a7d3b[_0x4b1b83(0x1be)]=_0x361b1b,normalizeStoredDefaultApp(_0x1a7d3b,_0x34f5ec),delete _0x1a7d3b[_0x4b1b83(0x1c6)],delete _0x1a7d3b[_0x4b1b83(0x1d0)],_0x28e21c[_0x4b1b83(0x1c7)]&&(_0x1a7d3b[_0x4b1b83(0x1c7)]=_0x28e21c[_0x4b1b83(0x1c7)]),writeConfigFile(_0x126527,_0x1a7d3b),{'ok':!![],'message':_0x4b1b83(0x19c)+(_0x22d93e===_0x4b1b83(0x1b1)?'initialized':_0x4b1b83(0x1b9))+':\x20'+_0x34f5ec+'\x20(appcode:\x20'+_0x28e21c[_0x4b1b83(0x1c6)]+_0x4b1b83(0x19e)+_0x126527+_0x4b1b83(0x1b6),'data':{'operation':_0x4b1b83(0x1a4)+_0x22d93e,'configPath':_0x126527,'app':_0x34f5ec,'appcode':_0x28e21c[_0x4b1b83(0x1c6)],'region':_0x28e21c['region']??null,'env':_0x28e21c[_0x4b1b83(0x1c7)]??null,'credentialsWritten':![]}};}const workspaceInitDefinition={'service':a239_0x48d072(0x1a8),'command':a239_0x48d072(0x1b1),'description':a239_0x48d072(0x1c9),'risk':a239_0x48d072(0x1a2),'requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x3b079e=>configureWorkspace(_0x3b079e,a239_0x48d072(0x1b1))},workspaceUseDefinition={'service':a239_0x48d072(0x1a8),'command':a239_0x48d072(0x1b3),'description':'Switch\x20the\x20current\x20workspace\x20app\x20binding','risk':a239_0x48d072(0x1a2),'requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x82dbb=>configureWorkspace(_0x82dbb,a239_0x48d072(0x1b3))};export const workspaceDefinitions=[workspaceInitDefinition,workspaceUseDefinition,workspaceAddDefinition,workspaceRemoveDefinition];export{WORKSPACE_USAGE};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a240_0x33f9(){const _0x21b39c=['6PPupvp','1786972ExXseO','56ysSlrS','2255108vAnKji','App\x20profile\x20name\x20to\x20remove','20678070zxiGeC','1143751inLRJW','186148xonrRJ','935739tGSSgx','workspace','3DqsRiy','5947180UyTxaf','name','write','Remove\x20an\x20app\x20profile\x20from\x20the\x20current\x20workspace\x20(or\x20--global)'];a240_0x33f9=function(){return _0x21b39c;};return a240_0x33f9();}function a240_0x10c4(_0x48b590,_0x113a64){_0x48b590=_0x48b590-0xed;const _0x33f9cf=a240_0x33f9();let _0x10c489=_0x33f9cf[_0x48b590];return _0x10c489;}const a240_0x12a981=a240_0x10c4;(function(_0x32efa8,_0x5d0ae7){const _0x46b21b=a240_0x10c4,_0x37f6f6=_0x32efa8();while(!![]){try{const _0x36d0f7=-parseInt(_0x46b21b(0xfa))/0x1+-parseInt(_0x46b21b(0xf4))/0x2+-parseInt(_0x46b21b(0xee))/0x3*(parseInt(_0x46b21b(0xf6))/0x4)+parseInt(_0x46b21b(0xef))/0x5+parseInt(_0x46b21b(0xf3))/0x6*(-parseInt(_0x46b21b(0xf9))/0x7)+-parseInt(_0x46b21b(0xf5))/0x8*(parseInt(_0x46b21b(0xfb))/0x9)+parseInt(_0x46b21b(0xf8))/0xa;if(_0x36d0f7===_0x5d0ae7)break;else _0x37f6f6['push'](_0x37f6f6['shift']());}catch(_0x20e703){_0x37f6f6['push'](_0x37f6f6['shift']());}}}(a240_0x33f9,0xb06d2));import{buildAppRemoveFlags,runAppRemove,validateAppName}from'../../commands/common/app-registry.js';export const workspaceRemoveDefinition={'service':a240_0x12a981(0xed),'command':'remove','description':a240_0x12a981(0xf2),'risk':a240_0x12a981(0xf1),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':a240_0x12a981(0xf0),'description':a240_0x12a981(0xf7),'required':!![]}],'flags':buildAppRemoveFlags(),'validate':_0x53599a=>validateAppName(_0x53599a,'workspace\x20remove'),'execute':_0x7023e4=>runAppRemove(_0x7023e4,'workspace\x20remove')};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a227_0x5e968d=a227_0x3b6b;(function(_0x2183b9,_0x581c8a){const _0x174a59=a227_0x3b6b,_0x28d7cd=_0x2183b9();while(!![]){try{const _0x31ad91=parseInt(_0x174a59(0x175))/0x1*(parseInt(_0x174a59(0x168))/0x2)+parseInt(_0x174a59(0x157))/0x3*(-parseInt(_0x174a59(0x152))/0x4)+-parseInt(_0x174a59(0x16d))/0x5+parseInt(_0x174a59(0x158))/0x6+-parseInt(_0x174a59(0x165))/0x7*(parseInt(_0x174a59(0x172))/0x8)+-parseInt(_0x174a59(0x159))/0x9+parseInt(_0x174a59(0x134))/0xa;if(_0x31ad91===_0x581c8a)break;else _0x28d7cd['push'](_0x28d7cd['shift']());}catch(_0x35bd93){_0x28d7cd['push'](_0x28d7cd['shift']());}}}(a227_0x46cb,0xe9b5a));import{existsSync,readFileSync}from'node:fs';import{isAbsolute,resolve}from'node:path';import{CliErrors}from'../errors.js';import{ENTERPRISE_ROUTING_CDN_FIELDS,ENTERPRISE_ROUTING_DOMAIN_FIELDS,ENTERPRISE_ROUTING_KIND,ENTERPRISE_ROUTING_PROTOCOL,REQUIRED_ENTERPRISE_ROUTING_CDN_FIELDS,REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS}from'../generated/routing-contract.js';export const DOMAIN_CONFIG_FIELDS=['userDomain','apiDomain',a227_0x5e968d(0x15f),a227_0x5e968d(0x167),'kbDomain',a227_0x5e968d(0x163),a227_0x5e968d(0x178),a227_0x5e968d(0x15a)];function a227_0x3b6b(_0x13ca8d,_0xc04f8a){_0x13ca8d=_0x13ca8d-0x132;const _0x46cb85=a227_0x46cb();let _0x3b6b15=_0x46cb85[_0x13ca8d];return _0x3b6b15;}const DOMAIN_FLAGS={'userDomain':a227_0x5e968d(0x15d),'apiDomain':a227_0x5e968d(0x177),'runtimeDomain':a227_0x5e968d(0x156),'skillDomain':a227_0x5e968d(0x169),'kbDomain':a227_0x5e968d(0x173),'appDomain':a227_0x5e968d(0x13b),'localDomain':a227_0x5e968d(0x16e),'certificateDomain':a227_0x5e968d(0x13e)};export const LEGACY_DOMAIN_CONFIG_FIELDS=[a227_0x5e968d(0x13c),a227_0x5e968d(0x17d),'skillHubDomain'];const ENTERPRISE_TO_LOCAL_FIELD={'userDomain':a227_0x5e968d(0x14f),'apiDomain':a227_0x5e968d(0x160),'runtimeDomain':a227_0x5e968d(0x15f),'skillDomain':'skillDomain','kbDomain':a227_0x5e968d(0x144),'appDomain':'appDomain','localDomain':'localDomain','certificateDomain':a227_0x5e968d(0x15a)},ROUTING_CONSUMER='rabetbase-cli';export function normalizeDomainOrigin(_0x1ef3e9,_0x1ed134){const _0x812d89=a227_0x5e968d;if(typeof _0x1ed134!==_0x812d89(0x16b)||!_0x1ed134[_0x812d89(0x17f)]())throw CliErrors['validation'](_0x812d89(0x17c)+_0x1ef3e9+_0x812d89(0x170));let _0x5b96aa;try{_0x5b96aa=new URL(_0x1ed134['trim']());}catch{throw CliErrors['validation']('Invalid\x20'+_0x1ef3e9+_0x812d89(0x162)+_0x1ed134+'\x22\x20is\x20not\x20a\x20valid\x20URL.');}if(_0x5b96aa[_0x812d89(0x174)]!==_0x812d89(0x180)||_0x5b96aa[_0x812d89(0x14d)]||_0x5b96aa[_0x812d89(0x176)]||_0x5b96aa[_0x812d89(0x13f)]!=='/'&&_0x5b96aa[_0x812d89(0x13f)]!==''||_0x5b96aa[_0x812d89(0x16c)]||_0x5b96aa[_0x812d89(0x139)])throw CliErrors[_0x812d89(0x15b)](_0x812d89(0x17c)+_0x1ef3e9+':\x20expected\x20an\x20HTTPS\x20origin\x20without\x20credentials,\x20path,\x20query,\x20or\x20fragment.','For\x20internal\x20deployments,\x20terminate\x20TLS\x20at\x20the\x20ingress,\x20reverse\x20proxy,\x20or\x20load\x20balancer;\x20an\x20internal\x20CA\x20is\x20supported.');return _0x5b96aa[_0x812d89(0x141)];}export function normalizeRoutingDomainValue(_0x52b481,_0x4f0f69){const _0x480055=a227_0x5e968d;if(typeof _0x4f0f69===_0x480055(0x16b))return normalizeDomainOrigin(_0x52b481,_0x4f0f69);if(!_0x4f0f69||typeof _0x4f0f69!==_0x480055(0x148)||Array[_0x480055(0x15e)](_0x4f0f69))throw CliErrors['validation']('Invalid\x20'+_0x52b481+_0x480055(0x14c));const _0x1e08f2=_0x4f0f69,_0x1a33c4=_0x1e08f2[ROUTING_CONSUMER]??_0x1e08f2[_0x480055(0x154)];if(_0x1a33c4===undefined)throw CliErrors[_0x480055(0x15b)](_0x480055(0x13d)+_0x52b481+'\x20does\x20not\x20provide\x20a\x20Domain\x20for\x20'+ROUTING_CONSUMER+_0x480055(0x164));return normalizeDomainOrigin(_0x52b481,_0x1a33c4);}export function normalizeCdnBaseUrl(_0x40f83d,_0x4f1229){const _0x49fb6e=a227_0x5e968d;if(typeof _0x4f1229!=='string'||!_0x4f1229[_0x49fb6e(0x17f)]())throw CliErrors[_0x49fb6e(0x15b)](_0x49fb6e(0x145)+_0x40f83d+_0x49fb6e(0x147));const _0x2635b5=_0x4f1229['trim']()[_0x49fb6e(0x155)](/\/$/,'');let _0x39d02d;try{_0x39d02d=new URL(_0x2635b5);}catch{throw CliErrors[_0x49fb6e(0x15b)](_0x49fb6e(0x145)+_0x40f83d+':\x20\x22'+_0x4f1229+_0x49fb6e(0x142));}if(_0x39d02d[_0x49fb6e(0x174)]!=='https:'||_0x39d02d['username']||_0x39d02d[_0x49fb6e(0x176)]||_0x39d02d['search']||_0x39d02d[_0x49fb6e(0x139)]||_0x39d02d[_0x49fb6e(0x14e)]['replace'](/\/$/,'')!==_0x2635b5||_0x40f83d===_0x49fb6e(0x146)&&_0x39d02d[_0x49fb6e(0x141)]!==_0x2635b5)throw CliErrors[_0x49fb6e(0x15b)](_0x49fb6e(0x145)+_0x40f83d+_0x49fb6e(0x153)+(_0x40f83d===_0x49fb6e(0x146)?'origin':_0x49fb6e(0x17a))+_0x49fb6e(0x13a));return _0x2635b5;}export function resolveEnterpriseRoutingConfig(_0x13ef87){const _0x4d33a5=a227_0x5e968d;return resolveEnterpriseRoutingManifest(_0x13ef87)?.[_0x4d33a5(0x171)];}function a227_0x46cb(){const _0x5c4fe3=['Invalid\x20domain\x20config:\x20provide\x20at\x20least\x20one\x20supported\x20Domain.','trim','https:','Domain\x20config\x20file\x20not\x20found:\x20','Enterprise\x20routing\x20manifest\x20is\x20missing\x20required\x20CDN\x20field(s):\x20','28278210uUOtOp','Unsupported\x20routing\x20manifest:\x20expected\x20protocol\x20\x22','Invalid\x20domain\x20config\x20JSON:\x20','length','keys','hash','\x20without\x20credentials,\x20query,\x20or\x20fragment.','app-domain','agentDomain','Enterprise\x20','certificate-domain','pathname','enterprise-v1','origin','\x22\x20is\x20not\x20a\x20valid\x20URL.','Enterprise\x20routing\x20manifests\x20cannot\x20be\x20combined\x20with\x20individual\x20Domain\x20flags.','kbDomain','Invalid\x20cdn.','lovrabet',':\x20expected\x20a\x20non-empty\x20HTTPS\x20URL.','object','Enterprise\x20routing\x20manifest\x20is\x20missing\x20required\x20Domain(s):\x20','includes','Update\x20the\x20manifest\x20so\x20both\x20CLIs\x20consume\x20the\x20same\x20routing\x20data.',':\x20expected\x20an\x20HTTPS\x20origin\x20or\x20consumer\x20Domain\x20object.','username','href','userDomain','mode','Unsupported\x20domain\x20config\x20field(s):\x20','129036tTaRGf',':\x20expected\x20an\x20HTTPS\x20','default','replace','runtime-domain','27tyhHaT','3752454OzYJdP','1516851xSoCtm','certificateDomain','validation','join','user-domain','isArray','runtimeDomain','apiDomain','Invalid\x20enterprise\x20routing\x20config:\x20expected\x20an\x20object.',':\x20\x22','appDomain','\x20and\x20has\x20no\x20default.','12817574sGyffK','cdn','skillDomain','1318SNNJZX','skill-domain','legacy','string','search','8223005obMOqC','local-domain','str',':\x20expected\x20a\x20non-empty\x20HTTPS\x20origin.','domains','8GeQOLJ','kb-domain','protocol','2183dzCZrs','password','api-domain','localDomain','filter','base\x20URL','\x22\x20and\x20kind\x20\x22','Invalid\x20','platformDomain'];a227_0x46cb=function(){return _0x5c4fe3;};return a227_0x46cb();}export function resolveEnterpriseRoutingManifest(_0x39e7c4){const _0x5118e3=a227_0x5e968d;if(_0x39e7c4===undefined)return undefined;if(!_0x39e7c4||typeof _0x39e7c4!==_0x5118e3(0x148)||Array[_0x5118e3(0x15e)](_0x39e7c4))throw CliErrors['validation'](_0x5118e3(0x161));return parseEnterpriseRoutingManifest(_0x39e7c4);}export function readDomainConfigInput(_0xd95063){const _0x492189=a227_0x5e968d,_0x32b6ac=isAbsolute(_0xd95063)?_0xd95063:resolve(process['cwd'](),_0xd95063);if(!existsSync(_0x32b6ac))throw CliErrors[_0x492189(0x15b)](_0x492189(0x132)+_0x32b6ac);let _0x5d5758;try{_0x5d5758=JSON['parse'](readFileSync(_0x32b6ac,'utf8'));}catch{throw CliErrors[_0x492189(0x15b)](_0x492189(0x136)+_0x32b6ac);}if(!_0x5d5758||typeof _0x5d5758!=='object'||Array[_0x492189(0x15e)](_0x5d5758))throw CliErrors['validation']('Invalid\x20domain\x20config:\x20expected\x20a\x20JSON\x20object.');const _0x7d4919=_0x5d5758;if('protocol'in _0x7d4919)return parseEnterpriseRoutingManifest(_0x7d4919);const _0x1d0732=Object['keys'](_0x7d4919)[_0x492189(0x179)](_0x24ffd4=>!DOMAIN_CONFIG_FIELDS[_0x492189(0x14a)](_0x24ffd4));if(_0x1d0732[_0x492189(0x137)]>0x0)throw CliErrors['validation'](_0x492189(0x151)+_0x1d0732['join'](',\x20'),'Allowed\x20fields:\x20'+DOMAIN_CONFIG_FIELDS[_0x492189(0x15c)](',\x20'));const _0x4d652e={};for(const _0x170950 of DOMAIN_CONFIG_FIELDS){_0x7d4919[_0x170950]!==undefined&&(_0x4d652e[_0x170950]=normalizeDomainOrigin(_0x170950,_0x7d4919[_0x170950]));}if(Object[_0x492189(0x138)](_0x4d652e)[_0x492189(0x137)]===0x0)throw CliErrors['validation'](_0x492189(0x17e));return{'mode':'legacy','domains':_0x4d652e};}export function readDomainConfig(_0x265aad){return readDomainConfigInput(_0x265aad)['domains'];}export function resolveDomainConfigInput(_0x18102a){const _0x19cc5b=a227_0x5e968d,_0x4f12ba=(_0x18102a[_0x19cc5b(0x16f)]('domain-config')||'')[_0x19cc5b(0x17f)](),_0x106087=_0x4f12ba?readDomainConfigInput(_0x4f12ba):{'mode':_0x19cc5b(0x16a),'domains':{}},_0x40cdbd=DOMAIN_CONFIG_FIELDS[_0x19cc5b(0x179)](_0x651d37=>Boolean((_0x18102a[_0x19cc5b(0x16f)](DOMAIN_FLAGS[_0x651d37])||'')[_0x19cc5b(0x17f)]()));if(_0x106087[_0x19cc5b(0x150)]==='enterprise-v1'&&_0x40cdbd[_0x19cc5b(0x137)]>0x0)throw CliErrors['validation'](_0x19cc5b(0x143),_0x19cc5b(0x14b));for(const _0x1f2bea of DOMAIN_CONFIG_FIELDS){const _0xe4724e=(_0x18102a['str'](DOMAIN_FLAGS[_0x1f2bea])||'')[_0x19cc5b(0x17f)]();if(_0xe4724e)_0x106087[_0x19cc5b(0x171)][_0x1f2bea]=normalizeDomainOrigin(_0x1f2bea,_0xe4724e);}return _0x106087;}export function resolveDomainFlags(_0x255b86){const _0x50d0e5=a227_0x5e968d;return resolveDomainConfigInput(_0x255b86)[_0x50d0e5(0x171)];}export function parseEnterpriseRoutingManifest(_0x5dddfe){const _0x48a5b3=a227_0x5e968d;if(_0x5dddfe['protocol']!==ENTERPRISE_ROUTING_PROTOCOL||_0x5dddfe['kind']!==ENTERPRISE_ROUTING_KIND)throw CliErrors[_0x48a5b3(0x15b)](_0x48a5b3(0x135)+ENTERPRISE_ROUTING_PROTOCOL+_0x48a5b3(0x17b)+ENTERPRISE_ROUTING_KIND+'\x22.');if(!_0x5dddfe[_0x48a5b3(0x171)]||typeof _0x5dddfe[_0x48a5b3(0x171)]!==_0x48a5b3(0x148)||Array[_0x48a5b3(0x15e)](_0x5dddfe[_0x48a5b3(0x171)]))throw CliErrors[_0x48a5b3(0x15b)]('Invalid\x20enterprise\x20routing\x20manifest:\x20domains\x20must\x20be\x20an\x20object.');if(!_0x5dddfe[_0x48a5b3(0x166)]||typeof _0x5dddfe[_0x48a5b3(0x166)]!==_0x48a5b3(0x148)||Array[_0x48a5b3(0x15e)](_0x5dddfe[_0x48a5b3(0x166)]))throw CliErrors[_0x48a5b3(0x15b)]('Invalid\x20enterprise\x20routing\x20manifest:\x20cdn\x20must\x20be\x20an\x20object.');const _0x4b682c=_0x5dddfe[_0x48a5b3(0x171)],_0x50d362=REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS[_0x48a5b3(0x179)](_0x557b1f=>_0x4b682c[_0x557b1f]===undefined);if(_0x50d362['length']>0x0)throw CliErrors[_0x48a5b3(0x15b)](_0x48a5b3(0x149)+_0x50d362[_0x48a5b3(0x15c)](',\x20'));if(_0x4b682c[_0x48a5b3(0x178)]===undefined!==(_0x4b682c[_0x48a5b3(0x15a)]===undefined))throw CliErrors[_0x48a5b3(0x15b)]('Enterprise\x20routing\x20manifest\x20requires\x20localDomain\x20and\x20certificateDomain\x20together.');const _0x2952af=_0x5dddfe[_0x48a5b3(0x166)],_0x25fa34=Object[_0x48a5b3(0x138)](_0x2952af)[_0x48a5b3(0x179)](_0x66861=>!ENTERPRISE_ROUTING_CDN_FIELDS[_0x48a5b3(0x14a)](_0x66861));if(_0x25fa34[_0x48a5b3(0x137)]>0x0)throw CliErrors[_0x48a5b3(0x15b)]('Unsupported\x20enterprise\x20CDN\x20field(s):\x20'+_0x25fa34[_0x48a5b3(0x15c)](',\x20'),'Allowed\x20fields:\x20'+ENTERPRISE_ROUTING_CDN_FIELDS[_0x48a5b3(0x15c)](',\x20'));const _0xb61257=REQUIRED_ENTERPRISE_ROUTING_CDN_FIELDS['filter'](_0x341722=>_0x2952af[_0x341722]===undefined);if(_0xb61257[_0x48a5b3(0x137)]>0x0)throw CliErrors[_0x48a5b3(0x15b)](_0x48a5b3(0x133)+_0xb61257[_0x48a5b3(0x15c)](',\x20'));const _0x2441ac={};for(const _0x479310 of ENTERPRISE_ROUTING_CDN_FIELDS){_0x2441ac[_0x479310]=normalizeCdnBaseUrl(_0x479310,_0x2952af[_0x479310]);}const _0x28a9c0={},_0x1718c1={};for(const _0x49ed51 of ENTERPRISE_ROUTING_DOMAIN_FIELDS){const _0x779f36=_0x4b682c[_0x49ed51];if(_0x779f36===undefined)continue;const _0x3c962c=normalizeRoutingDomainValue(_0x49ed51,_0x779f36);_0x28a9c0[_0x49ed51]=_0x3c962c;const _0x2385aa=ENTERPRISE_TO_LOCAL_FIELD[_0x49ed51];_0x2385aa&&(_0x1718c1[_0x2385aa]=_0x3c962c);}return{'mode':_0x48a5b3(0x140),'domains':_0x1718c1,'manifestDomains':_0x28a9c0,'cdn':_0x2441ac};}
|
|
1
|
+
const a241_0x4a6b10=a241_0x1542;(function(_0x427bbb,_0x1b8a44){const _0x33de4a=a241_0x1542,_0x51695c=_0x427bbb();while(!![]){try{const _0x1ef51e=parseInt(_0x33de4a(0xdf))/0x1+parseInt(_0x33de4a(0xc0))/0x2+parseInt(_0x33de4a(0xef))/0x3+-parseInt(_0x33de4a(0xd1))/0x4*(-parseInt(_0x33de4a(0xe3))/0x5)+-parseInt(_0x33de4a(0xcd))/0x6*(-parseInt(_0x33de4a(0xe6))/0x7)+parseInt(_0x33de4a(0xe7))/0x8+parseInt(_0x33de4a(0xdb))/0x9*(-parseInt(_0x33de4a(0xd7))/0xa);if(_0x1ef51e===_0x1b8a44)break;else _0x51695c['push'](_0x51695c['shift']());}catch(_0x3df823){_0x51695c['push'](_0x51695c['shift']());}}}(a241_0x7a1d,0x218e9));import{existsSync,readFileSync}from'node:fs';import{isAbsolute,resolve}from'node:path';import{CliErrors}from'../errors.js';import{ENTERPRISE_ROUTING_CDN_FIELDS,ENTERPRISE_ROUTING_DOMAIN_FIELDS,ENTERPRISE_ROUTING_KIND,ENTERPRISE_ROUTING_PROTOCOL,REQUIRED_ENTERPRISE_ROUTING_CDN_FIELDS,REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS}from'../generated/routing-contract.js';export const DOMAIN_CONFIG_FIELDS=['userDomain',a241_0x4a6b10(0xc3),a241_0x4a6b10(0xc4),a241_0x4a6b10(0xf0),a241_0x4a6b10(0xc7),a241_0x4a6b10(0xa4),a241_0x4a6b10(0xb9),a241_0x4a6b10(0xc6)];const DOMAIN_FLAGS={'userDomain':a241_0x4a6b10(0xa5),'apiDomain':'api-domain','runtimeDomain':a241_0x4a6b10(0xd5),'skillDomain':a241_0x4a6b10(0xe0),'kbDomain':a241_0x4a6b10(0xe5),'appDomain':'app-domain','localDomain':a241_0x4a6b10(0xed),'certificateDomain':a241_0x4a6b10(0xc5)};export const LEGACY_DOMAIN_CONFIG_FIELDS=[a241_0x4a6b10(0xec),a241_0x4a6b10(0xeb),a241_0x4a6b10(0xb8)];const ENTERPRISE_TO_LOCAL_FIELD={'userDomain':a241_0x4a6b10(0xae),'apiDomain':a241_0x4a6b10(0xc3),'runtimeDomain':a241_0x4a6b10(0xc4),'skillDomain':a241_0x4a6b10(0xf0),'kbDomain':'kbDomain','appDomain':a241_0x4a6b10(0xa4),'localDomain':a241_0x4a6b10(0xb9),'certificateDomain':'certificateDomain'},ROUTING_CONSUMER=a241_0x4a6b10(0xc8);export function normalizeDomainOrigin(_0x1c98f3,_0xf9456d){const _0x3fd6f8=a241_0x4a6b10;if(typeof _0xf9456d!=='string'||!_0xf9456d[_0x3fd6f8(0xde)]())throw CliErrors[_0x3fd6f8(0xa7)](_0x3fd6f8(0xd9)+_0x1c98f3+_0x3fd6f8(0xd2));let _0x15fbaa;try{_0x15fbaa=new URL(_0xf9456d[_0x3fd6f8(0xde)]());}catch{throw CliErrors[_0x3fd6f8(0xa7)](_0x3fd6f8(0xd9)+_0x1c98f3+_0x3fd6f8(0xd6)+_0xf9456d+_0x3fd6f8(0xd4));}if(_0x15fbaa['protocol']!==_0x3fd6f8(0xea)||_0x15fbaa[_0x3fd6f8(0xda)]||_0x15fbaa[_0x3fd6f8(0xdd)]||_0x15fbaa['pathname']!=='/'&&_0x15fbaa[_0x3fd6f8(0xcb)]!==''||_0x15fbaa[_0x3fd6f8(0xab)]||_0x15fbaa[_0x3fd6f8(0xa3)])throw CliErrors[_0x3fd6f8(0xa7)]('Invalid\x20'+_0x1c98f3+_0x3fd6f8(0xa9),_0x3fd6f8(0xe4));return _0x15fbaa[_0x3fd6f8(0xad)];}export function normalizeRoutingDomainValue(_0x2fdcc3,_0x5d5771){const _0x4407cf=a241_0x4a6b10;if(typeof _0x5d5771===_0x4407cf(0xbc))return normalizeDomainOrigin(_0x2fdcc3,_0x5d5771);if(!_0x5d5771||typeof _0x5d5771!==_0x4407cf(0xf1)||Array[_0x4407cf(0xc1)](_0x5d5771))throw CliErrors[_0x4407cf(0xa7)](_0x4407cf(0xd9)+_0x2fdcc3+':\x20expected\x20an\x20HTTPS\x20origin\x20or\x20consumer\x20Domain\x20object.');const _0x45e0d9=_0x5d5771,_0x460f7c=_0x45e0d9[ROUTING_CONSUMER]??_0x45e0d9[_0x4407cf(0xee)];if(_0x460f7c===undefined)throw CliErrors[_0x4407cf(0xa7)]('Enterprise\x20'+_0x2fdcc3+'\x20does\x20not\x20provide\x20a\x20Domain\x20for\x20'+ROUTING_CONSUMER+_0x4407cf(0xce));return normalizeDomainOrigin(_0x2fdcc3,_0x460f7c);}export function normalizeCdnBaseUrl(_0x26a7f6,_0x338e25){const _0x238da8=a241_0x4a6b10;if(typeof _0x338e25!==_0x238da8(0xbc)||!_0x338e25['trim']())throw CliErrors[_0x238da8(0xa7)](_0x238da8(0xe1)+_0x26a7f6+_0x238da8(0xbf));const _0x4474f0=_0x338e25[_0x238da8(0xde)]()[_0x238da8(0xbb)](/\/$/,'');let _0x8ab7b3;try{_0x8ab7b3=new URL(_0x4474f0);}catch{throw CliErrors[_0x238da8(0xa7)]('Invalid\x20cdn.'+_0x26a7f6+':\x20\x22'+_0x338e25+'\x22\x20is\x20not\x20a\x20valid\x20URL.');}if(_0x8ab7b3[_0x238da8(0xc2)]!==_0x238da8(0xea)||_0x8ab7b3['username']||_0x8ab7b3[_0x238da8(0xdd)]||_0x8ab7b3[_0x238da8(0xab)]||_0x8ab7b3[_0x238da8(0xa3)]||_0x8ab7b3['href'][_0x238da8(0xbb)](/\/$/,'')!==_0x4474f0||_0x26a7f6==='lovrabet'&&_0x8ab7b3['origin']!==_0x4474f0)throw CliErrors[_0x238da8(0xa7)]('Invalid\x20cdn.'+_0x26a7f6+':\x20expected\x20an\x20HTTPS\x20'+(_0x26a7f6==='lovrabet'?_0x238da8(0xad):_0x238da8(0xd3))+_0x238da8(0xa2));return _0x4474f0;}export function resolveEnterpriseRoutingConfig(_0x2e9b55){const _0x29ab36=a241_0x4a6b10;return resolveEnterpriseRoutingManifest(_0x2e9b55)?.[_0x29ab36(0xe9)];}export function resolveEnterpriseRoutingManifest(_0x3e20aa){const _0x27e5c5=a241_0x4a6b10;if(_0x3e20aa===undefined)return undefined;if(!_0x3e20aa||typeof _0x3e20aa!==_0x27e5c5(0xf1)||Array['isArray'](_0x3e20aa))throw CliErrors['validation'](_0x27e5c5(0xaa));return parseEnterpriseRoutingManifest(_0x3e20aa);}export function readDomainConfigInput(_0x331e1a){const _0x580bfa=a241_0x4a6b10,_0x37cf2e=isAbsolute(_0x331e1a)?_0x331e1a:resolve(process[_0x580bfa(0xba)](),_0x331e1a);if(!existsSync(_0x37cf2e))throw CliErrors[_0x580bfa(0xa7)](_0x580bfa(0xbe)+_0x37cf2e);let _0x48f6f0;try{_0x48f6f0=JSON[_0x580bfa(0xcf)](readFileSync(_0x37cf2e,'utf8'));}catch{throw CliErrors[_0x580bfa(0xa7)](_0x580bfa(0xe2)+_0x37cf2e);}if(!_0x48f6f0||typeof _0x48f6f0!==_0x580bfa(0xf1)||Array[_0x580bfa(0xc1)](_0x48f6f0))throw CliErrors[_0x580bfa(0xa7)](_0x580bfa(0xa6));const _0x1d74c9=_0x48f6f0;if(_0x580bfa(0xc2)in _0x1d74c9)return parseEnterpriseRoutingManifest(_0x1d74c9);const _0x4e17d7=Object[_0x580bfa(0xb4)](_0x1d74c9)['filter'](_0x4f719b=>!DOMAIN_CONFIG_FIELDS[_0x580bfa(0xb7)](_0x4f719b));if(_0x4e17d7[_0x580bfa(0xac)]>0x0)throw CliErrors[_0x580bfa(0xa7)](_0x580bfa(0xa8)+_0x4e17d7['join'](',\x20'),_0x580bfa(0xe8)+DOMAIN_CONFIG_FIELDS[_0x580bfa(0xd0)](',\x20'));const _0x126a01={};for(const _0x2c3c84 of DOMAIN_CONFIG_FIELDS){_0x1d74c9[_0x2c3c84]!==undefined&&(_0x126a01[_0x2c3c84]=normalizeDomainOrigin(_0x2c3c84,_0x1d74c9[_0x2c3c84]));}if(Object['keys'](_0x126a01)[_0x580bfa(0xac)]===0x0)throw CliErrors['validation'](_0x580bfa(0xb0));return{'mode':_0x580bfa(0xd8),'domains':_0x126a01};}export function readDomainConfig(_0x41935b){const _0x4ad315=a241_0x4a6b10;return readDomainConfigInput(_0x41935b)[_0x4ad315(0xe9)];}function a241_0x7a1d(){const _0x183a9d=['1531520fQAPFG','Allowed\x20fields:\x20','domains','https:','platformDomain','agentDomain','local-domain','default','379782FEDLtY','skillDomain','object','\x20without\x20credentials,\x20query,\x20or\x20fragment.','hash','appDomain','user-domain','Invalid\x20domain\x20config:\x20expected\x20a\x20JSON\x20object.','validation','Unsupported\x20domain\x20config\x20field(s):\x20',':\x20expected\x20an\x20HTTPS\x20origin\x20without\x20credentials,\x20path,\x20query,\x20or\x20fragment.','Invalid\x20enterprise\x20routing\x20config:\x20expected\x20an\x20object.','search','length','origin','userDomain','Enterprise\x20routing\x20manifests\x20cannot\x20be\x20combined\x20with\x20individual\x20Domain\x20flags.','Invalid\x20domain\x20config:\x20provide\x20at\x20least\x20one\x20supported\x20Domain.','Invalid\x20enterprise\x20routing\x20manifest:\x20cdn\x20must\x20be\x20an\x20object.','cdn','enterprise-v1','keys','Update\x20the\x20manifest\x20so\x20both\x20CLIs\x20consume\x20the\x20same\x20routing\x20data.','str','includes','skillHubDomain','localDomain','cwd','replace','string','mode','Domain\x20config\x20file\x20not\x20found:\x20',':\x20expected\x20a\x20non-empty\x20HTTPS\x20URL.','8730clKQUT','isArray','protocol','apiDomain','runtimeDomain','certificate-domain','certificateDomain','kbDomain','rabetbase-cli','filter','Enterprise\x20routing\x20manifest\x20is\x20missing\x20required\x20CDN\x20field(s):\x20','pathname','domain-config','184476fChZuk','\x20and\x20has\x20no\x20default.','parse','join','188hVeixV',':\x20expected\x20a\x20non-empty\x20HTTPS\x20origin.','base\x20URL','\x22\x20is\x20not\x20a\x20valid\x20URL.','runtime-domain',':\x20\x22','240330FgEDIg','legacy','Invalid\x20','username','162JmrwER','Unsupported\x20enterprise\x20CDN\x20field(s):\x20','password','trim','12205tcsMHw','skill-domain','Invalid\x20cdn.','Invalid\x20domain\x20config\x20JSON:\x20','18505lHiJyG','For\x20internal\x20deployments,\x20terminate\x20TLS\x20at\x20the\x20ingress,\x20reverse\x20proxy,\x20or\x20load\x20balancer;\x20an\x20internal\x20CA\x20is\x20supported.','kb-domain','14SjHMiM'];a241_0x7a1d=function(){return _0x183a9d;};return a241_0x7a1d();}function a241_0x1542(_0x300a78,_0x3b847f){_0x300a78=_0x300a78-0xa2;const _0x7a1db9=a241_0x7a1d();let _0x15424f=_0x7a1db9[_0x300a78];return _0x15424f;}export function resolveDomainConfigInput(_0x359964){const _0x2e7b2b=a241_0x4a6b10,_0x57d7fa=(_0x359964[_0x2e7b2b(0xb6)](_0x2e7b2b(0xcc))||'')[_0x2e7b2b(0xde)](),_0x36a995=_0x57d7fa?readDomainConfigInput(_0x57d7fa):{'mode':_0x2e7b2b(0xd8),'domains':{}},_0x321881=DOMAIN_CONFIG_FIELDS['filter'](_0x25d545=>Boolean((_0x359964[_0x2e7b2b(0xb6)](DOMAIN_FLAGS[_0x25d545])||'')['trim']()));if(_0x36a995[_0x2e7b2b(0xbd)]===_0x2e7b2b(0xb3)&&_0x321881[_0x2e7b2b(0xac)]>0x0)throw CliErrors[_0x2e7b2b(0xa7)](_0x2e7b2b(0xaf),_0x2e7b2b(0xb5));for(const _0x26cd14 of DOMAIN_CONFIG_FIELDS){const _0x4b6004=(_0x359964[_0x2e7b2b(0xb6)](DOMAIN_FLAGS[_0x26cd14])||'')['trim']();if(_0x4b6004)_0x36a995[_0x2e7b2b(0xe9)][_0x26cd14]=normalizeDomainOrigin(_0x26cd14,_0x4b6004);}return _0x36a995;}export function resolveDomainFlags(_0x3b5ed3){const _0x2f79f4=a241_0x4a6b10;return resolveDomainConfigInput(_0x3b5ed3)[_0x2f79f4(0xe9)];}export function parseEnterpriseRoutingManifest(_0x4e5fcf){const _0x1b21f3=a241_0x4a6b10;if(_0x4e5fcf['protocol']!==ENTERPRISE_ROUTING_PROTOCOL||_0x4e5fcf['kind']!==ENTERPRISE_ROUTING_KIND)throw CliErrors['validation']('Unsupported\x20routing\x20manifest:\x20expected\x20protocol\x20\x22'+ENTERPRISE_ROUTING_PROTOCOL+'\x22\x20and\x20kind\x20\x22'+ENTERPRISE_ROUTING_KIND+'\x22.');if(!_0x4e5fcf[_0x1b21f3(0xe9)]||typeof _0x4e5fcf['domains']!==_0x1b21f3(0xf1)||Array[_0x1b21f3(0xc1)](_0x4e5fcf[_0x1b21f3(0xe9)]))throw CliErrors['validation']('Invalid\x20enterprise\x20routing\x20manifest:\x20domains\x20must\x20be\x20an\x20object.');if(!_0x4e5fcf['cdn']||typeof _0x4e5fcf[_0x1b21f3(0xb2)]!==_0x1b21f3(0xf1)||Array[_0x1b21f3(0xc1)](_0x4e5fcf[_0x1b21f3(0xb2)]))throw CliErrors[_0x1b21f3(0xa7)](_0x1b21f3(0xb1));const _0x2d74c8=_0x4e5fcf[_0x1b21f3(0xe9)],_0x354d76=REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS['filter'](_0x37d4c7=>_0x2d74c8[_0x37d4c7]===undefined);if(_0x354d76[_0x1b21f3(0xac)]>0x0)throw CliErrors['validation']('Enterprise\x20routing\x20manifest\x20is\x20missing\x20required\x20Domain(s):\x20'+_0x354d76[_0x1b21f3(0xd0)](',\x20'));if(_0x2d74c8[_0x1b21f3(0xb9)]===undefined!==(_0x2d74c8[_0x1b21f3(0xc6)]===undefined))throw CliErrors['validation']('Enterprise\x20routing\x20manifest\x20requires\x20localDomain\x20and\x20certificateDomain\x20together.');const _0x5c1ca8=_0x4e5fcf['cdn'],_0x3038a0=Object[_0x1b21f3(0xb4)](_0x5c1ca8)[_0x1b21f3(0xc9)](_0x1bbe6d=>!ENTERPRISE_ROUTING_CDN_FIELDS[_0x1b21f3(0xb7)](_0x1bbe6d));if(_0x3038a0['length']>0x0)throw CliErrors[_0x1b21f3(0xa7)](_0x1b21f3(0xdc)+_0x3038a0[_0x1b21f3(0xd0)](',\x20'),'Allowed\x20fields:\x20'+ENTERPRISE_ROUTING_CDN_FIELDS[_0x1b21f3(0xd0)](',\x20'));const _0x2e2599=REQUIRED_ENTERPRISE_ROUTING_CDN_FIELDS['filter'](_0x17de4f=>_0x5c1ca8[_0x17de4f]===undefined);if(_0x2e2599[_0x1b21f3(0xac)]>0x0)throw CliErrors[_0x1b21f3(0xa7)](_0x1b21f3(0xca)+_0x2e2599[_0x1b21f3(0xd0)](',\x20'));const _0x5617d9={};for(const _0x58fbfa of ENTERPRISE_ROUTING_CDN_FIELDS){_0x5617d9[_0x58fbfa]=normalizeCdnBaseUrl(_0x58fbfa,_0x5c1ca8[_0x58fbfa]);}const _0xdd3b3={},_0x48475a={};for(const _0x34ab0e of ENTERPRISE_ROUTING_DOMAIN_FIELDS){const _0x345bcf=_0x2d74c8[_0x34ab0e];if(_0x345bcf===undefined)continue;const _0x3f925a=normalizeRoutingDomainValue(_0x34ab0e,_0x345bcf);_0xdd3b3[_0x34ab0e]=_0x3f925a;const _0x28ea67=ENTERPRISE_TO_LOCAL_FIELD[_0x34ab0e];_0x28ea67&&(_0x48475a[_0x28ea67]=_0x3f925a);}return{'mode':_0x1b21f3(0xb3),'domains':_0x48475a,'manifestDomains':_0xdd3b3,'cdn':_0x5617d9};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a242_0x1f490c=a242_0x1821;function a242_0x1821(_0x181414,_0x4e8588){_0x181414=_0x181414-0x1d7;const _0x297ac9=a242_0x297a();let _0x182180=_0x297ac9[_0x181414];return _0x182180;}(function(_0x34a735,_0x384dfe){const _0x31600e=a242_0x1821,_0x210f08=_0x34a735();while(!![]){try{const _0x159f26=parseInt(_0x31600e(0x1db))/0x1+-parseInt(_0x31600e(0x1e3))/0x2*(-parseInt(_0x31600e(0x1d7))/0x3)+-parseInt(_0x31600e(0x1d8))/0x4+-parseInt(_0x31600e(0x1e7))/0x5*(-parseInt(_0x31600e(0x1dd))/0x6)+-parseInt(_0x31600e(0x1de))/0x7+-parseInt(_0x31600e(0x1df))/0x8*(-parseInt(_0x31600e(0x1ea))/0x9)+parseInt(_0x31600e(0x1e6))/0xa;if(_0x159f26===_0x384dfe)break;else _0x210f08['push'](_0x210f08['shift']());}catch(_0x570919){_0x210f08['push'](_0x210f08['shift']());}}}(a242_0x297a,0xb8598));import{readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{join}from'node:path';import{getActiveRegion,getActiveCdn,getApiDomain,getAppDomain,getCertificateDomain,getKbDomain,getLocalDomain,getRuntimeDomain,getSkillDomain,getUserDomain,isIndependentDeployment}from'../constant/domain.js';import{getOfficialRoutingProfile}from'../constant/routing-profile.js';export const PROJECT_DOMAIN_ROUTING_FILE_NAME='rabetbase.domain-routing.json';export const PROJECT_DOMAIN_ROUTING_PROTOCOL=a242_0x1f490c(0x1da);export function getProjectDomainRoutingManifest(){const _0x2400aa=a242_0x1f490c,_0x3d4d5d=getActiveRegion(),_0x4ada90=isIndependentDeployment(),_0x2ede98=getOfficialRoutingProfile(_0x3d4d5d),_0x244417=getLocalDomain(),_0x26d9b1=getCertificateDomain(),_0x360fba=getActiveCdn();if(!!_0x244417!==!!_0x26d9b1)throw new Error(_0x2400aa(0x1dc));return{'protocol':PROJECT_DOMAIN_ROUTING_PROTOCOL,'mode':_0x4ada90?'independent':_0x2400aa(0x1e2),'region':_0x4ada90?null:_0x3d4d5d,'domains':{'api':getApiDomain(),'runtime':getRuntimeDomain(),'user':getUserDomain(),'app':getAppDomain(),'skill':getSkillDomain(),'kb':getKbDomain()},'cdn':_0x360fba,'local':_0x244417&&_0x26d9b1?{'origin':_0x244417,'certificateUrl':_0x26d9b1+_0x2400aa(0x1e8)}:_0x4ada90?{'origin':_0x2400aa(0x1e9)}:{'origin':_0x2ede98['local'][_0x2400aa(0x1e0)],'certificateUrl':_0x360fba['lovrabet']+_0x2400aa(0x1e8)}};}export function writeProjectDomainRoutingManifest(_0x3a9057){const _0x2397bc=a242_0x1f490c,_0x231ed0=getProjectDomainRoutingManifest(),_0x467295=join(_0x3a9057,PROJECT_DOMAIN_ROUTING_FILE_NAME),_0x4d3e90=JSON[_0x2397bc(0x1e4)](_0x231ed0,null,0x2)+'\x0a';try{if(readFileSync(_0x467295,_0x2397bc(0x1e1))===_0x4d3e90)return{'path':_0x467295,'manifest':_0x231ed0,'changed':![]};}catch{}const _0x9df377=_0x467295+'.'+process[_0x2397bc(0x1e5)]+'.'+Date[_0x2397bc(0x1d9)]()+'.tmp';try{writeFileSync(_0x9df377,_0x4d3e90,{'encoding':_0x2397bc(0x1e1),'mode':0x1a4}),renameSync(_0x9df377,_0x467295);}catch(_0x485f6f){try{unlinkSync(_0x9df377);}catch{}throw _0x485f6f;}return{'path':_0x467295,'manifest':_0x231ed0,'changed':!![]};}function a242_0x297a(){const _0x40f2e7=['official','1066498VuDHUH','stringify','pid','4443240MaNibP','4980UpJYfl','/cert/lovrabet-dev.json','http://localhost','333zJaYQy','3kWXlhi','5084952xZsJbO','now','lovrabet-project-domain-routing/v1','720868dResnz','Independent\x20deployment\x20routing\x20requires\x20localDomain\x20and\x20certificateDomain\x20together.','3882InIwcQ','3357564IUDCFv','35272grfirA','origin','utf8'];a242_0x297a=function(){return _0x40f2e7;};return a242_0x297a();}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { type LovrabetRegion } from "../constant/region.js";
|
|
2
|
+
export type RegionConfigSource = "app" | "project" | "global" | "config" | "default";
|
|
3
|
+
export declare function selectConfiguredRegion(options: {
|
|
4
|
+
appRegion?: unknown;
|
|
5
|
+
projectRegion?: unknown;
|
|
6
|
+
globalRegion?: unknown;
|
|
7
|
+
mergedRegion?: unknown;
|
|
8
|
+
}): {
|
|
9
|
+
value: unknown;
|
|
10
|
+
source: RegionConfigSource;
|
|
11
|
+
};
|
|
12
|
+
/** Resolve one stored region value without silently accepting unknown spellings. */
|
|
13
|
+
export declare function resolveConfiguredRegion(value: unknown, location?: string): LovrabetRegion;
|
|
14
|
+
export declare function resolveEffectiveRegion(options: {
|
|
15
|
+
appRegion?: unknown;
|
|
16
|
+
projectRegion?: unknown;
|
|
17
|
+
globalRegion?: unknown;
|
|
18
|
+
mergedRegion?: unknown;
|
|
19
|
+
appName?: string;
|
|
20
|
+
}): {
|
|
21
|
+
region: LovrabetRegion;
|
|
22
|
+
source: RegionConfigSource;
|
|
23
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(_0xcefa3,_0x3148f1){const _0x1ac594=a243_0x1434,_0x475066=_0xcefa3();while(!![]){try{const _0x1b8890=parseInt(_0x1ac594(0x107))/0x1+-parseInt(_0x1ac594(0x109))/0x2+parseInt(_0x1ac594(0x102))/0x3*(parseInt(_0x1ac594(0x104))/0x4)+-parseInt(_0x1ac594(0x10a))/0x5*(parseInt(_0x1ac594(0x117))/0x6)+parseInt(_0x1ac594(0x115))/0x7+-parseInt(_0x1ac594(0xfb))/0x8*(parseInt(_0x1ac594(0x101))/0x9)+-parseInt(_0x1ac594(0xfd))/0xa*(-parseInt(_0x1ac594(0x113))/0xb);if(_0x1b8890===_0x3148f1)break;else _0x475066['push'](_0x475066['shift']());}catch(_0x749dff){_0x475066['push'](_0x475066['shift']());}}}(a243_0x4367,0x35161));function a243_0x4367(){const _0x51e47c=['string','653574vmXYfO','486245HbZixt','global','stringify','selected\x20app\x20profile','appRegion','validation','globalRegion','source','projectRegion','12683jaFuDr','value','650419GoVcyj','Run\x20`','6ouVNxn','project\x20Rabetbase\x20configuration','60872OuXRnI','config','70HRmuoD','mergedRegion','appName','app\x20profile\x20\x22','63dUtbtL','129MlIpSF','Rabetbase\x20configuration','33444kMMwhV','app','null','234229xNNKrt'];a243_0x4367=function(){return _0x51e47c;};return a243_0x4367();}import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_LOVRABET_REGION,isInvalidLovrabetRegion,normalizeLovrabetRegion}from'../constant/region.js';import{CliErrors}from'../errors.js';export function selectConfiguredRegion(_0x4c2730){const _0x22d6de=a243_0x1434;if(_0x4c2730[_0x22d6de(0x10e)]!==undefined&&_0x4c2730[_0x22d6de(0x10e)]!==null&&_0x4c2730['appRegion']!=='')return{'value':_0x4c2730['appRegion'],'source':_0x22d6de(0x105)};if(_0x4c2730[_0x22d6de(0x112)]!==undefined&&_0x4c2730[_0x22d6de(0x112)]!==null&&_0x4c2730[_0x22d6de(0x112)]!=='')return{'value':_0x4c2730[_0x22d6de(0x112)],'source':'project'};if(_0x4c2730['globalRegion']!==undefined&&_0x4c2730['globalRegion']!==null&&_0x4c2730[_0x22d6de(0x110)]!=='')return{'value':_0x4c2730[_0x22d6de(0x110)],'source':_0x22d6de(0x10b)};if(_0x4c2730[_0x22d6de(0xfe)]!==undefined&&_0x4c2730[_0x22d6de(0xfe)]!==null&&_0x4c2730[_0x22d6de(0xfe)]!=='')return{'value':_0x4c2730[_0x22d6de(0xfe)],'source':_0x22d6de(0xfc)};return{'value':undefined,'source':'default'};}function describeConfiguredRegion(_0x567fa6){const _0x31f8ef=a243_0x1434;return typeof _0x567fa6===_0x31f8ef(0x108)?JSON[_0x31f8ef(0x10c)](_0x567fa6):'a\x20value\x20of\x20type\x20'+(_0x567fa6===null?_0x31f8ef(0x106):typeof _0x567fa6);}function a243_0x1434(_0x166b5b,_0x2f39c1){_0x166b5b=_0x166b5b-0xfb;const _0x4367ad=a243_0x4367();let _0x14343c=_0x4367ad[_0x166b5b];return _0x14343c;}export function resolveConfiguredRegion(_0x4a7910,_0x1842db='Rabetbase\x20configuration'){const _0x243665=a243_0x1434;if(isInvalidLovrabetRegion(_0x4a7910))throw CliErrors[_0x243665(0x10f)]('Invalid\x20country/region\x20'+describeConfiguredRegion(_0x4a7910)+'\x20in\x20'+_0x1842db+'.',_0x243665(0x116)+CLI_BIN_NAME+'\x20doctor`\x20to\x20locate\x20and\x20repair\x20the\x20invalid\x20configuration\x20before\x20retrying.');return normalizeLovrabetRegion(_0x4a7910)??DEFAULT_LOVRABET_REGION;}export function resolveEffectiveRegion(_0x25d206){const _0x480069=a243_0x1434,_0x267a44=selectConfiguredRegion(_0x25d206),_0x1ee6de=_0x267a44['source']===_0x480069(0x105)?_0x25d206['appName']?_0x480069(0x100)+_0x25d206[_0x480069(0xff)]+'\x22':_0x480069(0x10d):_0x267a44[_0x480069(0x111)]==='project'?_0x480069(0x118):_0x267a44[_0x480069(0x111)]===_0x480069(0x10b)?'global\x20Rabetbase\x20configuration':_0x480069(0x103);return{'region':resolveConfiguredRegion(_0x267a44[_0x480069(0x114)],_0x1ee6de),'source':_0x267a44[_0x480069(0x111)]};}
|
package/lib/config/schema.d.ts
CHANGED
|
@@ -19,11 +19,16 @@ export declare function getAppProfileFlagDefs(): FlagDef[];
|
|
|
19
19
|
export declare function collectAppProfileOverrides(getFlagValue: (name: string) => string): Record<string, any>;
|
|
20
20
|
export declare function buildAppProfileListFields(profile: Record<string, any>): Record<string, unknown>;
|
|
21
21
|
export declare function buildAppDoctorFields(profile: Record<string, any>, effective: {
|
|
22
|
+
region: string;
|
|
22
23
|
env: string;
|
|
23
24
|
apiDir: string;
|
|
24
25
|
cookie?: string;
|
|
25
26
|
accessKey?: string;
|
|
26
27
|
}): {
|
|
28
|
+
region: {
|
|
29
|
+
value: string;
|
|
30
|
+
source: "app" | "inherit";
|
|
31
|
+
};
|
|
27
32
|
env: {
|
|
28
33
|
value: string;
|
|
29
34
|
source: "app" | "inherit";
|
|
@@ -49,4 +54,14 @@ export declare function buildCanonicalProjectConfig(base: Record<string, unknown
|
|
|
49
54
|
env?: string;
|
|
50
55
|
metadata?: ConfigMetadataFields;
|
|
51
56
|
}): Record<string, any>;
|
|
57
|
+
/**
|
|
58
|
+
* Return the public on-disk configuration without persisting the default
|
|
59
|
+
* internal routing mode. Historical files remain readable; every CLI write
|
|
60
|
+
* converges them to the minimal representation.
|
|
61
|
+
*
|
|
62
|
+
* When a non-default top-level value coexists with an explicit default app
|
|
63
|
+
* override, move the inherited value into the other profiles first. This
|
|
64
|
+
* preserves effective routing while still removing every default marker.
|
|
65
|
+
*/
|
|
66
|
+
export declare function normalizeConfigForWrite(input: Record<string, any>): Record<string, any>;
|
|
52
67
|
export declare function normalizeLocale(value: string): "zh-CN" | "en-US" | null;
|
package/lib/config/schema.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a229_0x3c0c55=a229_0x24f7;(function(_0x39119b,_0x38a0e2){const _0x476405=a229_0x24f7,_0x57cc93=_0x39119b();while(!![]){try{const _0x1a5f08=parseInt(_0x476405(0x10e))/0x1*(parseInt(_0x476405(0xed))/0x2)+parseInt(_0x476405(0x113))/0x3*(-parseInt(_0x476405(0x105))/0x4)+parseInt(_0x476405(0xff))/0x5+-parseInt(_0x476405(0x103))/0x6+parseInt(_0x476405(0xfd))/0x7+parseInt(_0x476405(0xe6))/0x8+-parseInt(_0x476405(0x110))/0x9;if(_0x1a5f08===_0x38a0e2)break;else _0x57cc93['push'](_0x57cc93['shift']());}catch(_0x2d03a5){_0x57cc93['push'](_0x57cc93['shift']());}}}(a229_0x4085,0xaeeac));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RABETBASE_ENV_VALUES}from'../constant/env.js';import{RABETBASE_OUTPUT_FORMAT_VALUES}from'../constant/output.js';import{RISK_LEVEL_VALUES}from'../constant/risk.js';import{ENABLED_LOVRABET_REGION_VALUES}from'../constant/region.js';export{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';export const PROJECT_CREATE_INHERITABLE_KEYS=[a229_0x3c0c55(0x101),a229_0x3c0c55(0x111),a229_0x3c0c55(0xf8),a229_0x3c0c55(0x109),'riskLevel','region',a229_0x3c0c55(0x112),a229_0x3c0c55(0xfa),a229_0x3c0c55(0xe5),a229_0x3c0c55(0x10a),a229_0x3c0c55(0xfe),a229_0x3c0c55(0xf7),a229_0x3c0c55(0xfc),a229_0x3c0c55(0xe8),a229_0x3c0c55(0xe1)];export const TOP_LEVEL_CONFIG_KEYS=new Set(['appcode',a229_0x3c0c55(0xe7),'locale',a229_0x3c0c55(0x109),a229_0x3c0c55(0x101),a229_0x3c0c55(0x111),a229_0x3c0c55(0xf6),a229_0x3c0c55(0x10d),a229_0x3c0c55(0xfa),a229_0x3c0c55(0xe5),a229_0x3c0c55(0x10a),'skillDomain',a229_0x3c0c55(0xf7),'appDomain',a229_0x3c0c55(0xe8),a229_0x3c0c55(0xe1)]);export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES],'region':[...ENABLED_LOVRABET_REGION_VALUES]};export function formatConfigKeyList(_0x4808bf){return[..._0x4808bf]['join'](',\x20');}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function isTopLevelConfigKey(_0x50228b){const _0x5cca6b=a229_0x3c0c55;return TOP_LEVEL_CONFIG_KEYS[_0x5cca6b(0xef)](_0x50228b);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){return'Config\x20key\x20('+getTopLevelConfigKeySummary()+')';}export const APP_PROFILE_FLAG_KEY_MAP={'env':'env','apiDir':a229_0x3c0c55(0xf6),'cookie':a229_0x3c0c55(0x101),'accessKey':a229_0x3c0c55(0x111),'defaultFormat':a229_0x3c0c55(0x109),'pageSize':a229_0x3c0c55(0x106),'riskLevel':a229_0x3c0c55(0x10b),'locale':a229_0x3c0c55(0xf8)};export function getAppProfileFlagDefs(){const _0x346588=a229_0x3c0c55;return[{'name':_0x346588(0xe7),'type':_0x346588(0xf2),'description':_0x346588(0x107),'enum':[...RABETBASE_ENV_VALUES]},{'name':'apiDir','type':_0x346588(0xf2),'description':_0x346588(0xf5)},{'name':_0x346588(0x101),'type':_0x346588(0xf2),'description':_0x346588(0xeb),'hidden':!![]},{'name':_0x346588(0x111),'type':_0x346588(0xf2),'description':_0x346588(0xe4),'hidden':!![]},{'name':_0x346588(0xf1),'type':'string','description':_0x346588(0xe3),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':_0x346588(0x106),'type':'number','description':_0x346588(0xe2)},{'name':_0x346588(0x10b),'type':_0x346588(0xf2),'description':_0x346588(0x104),'enum':[...RISK_LEVEL_VALUES]},{'name':_0x346588(0xf8),'type':_0x346588(0xf2),'description':_0x346588(0xf9)}];}export function collectAppProfileOverrides(_0x190108){const _0x2e942d=a229_0x3c0c55,_0x49d9b0={};for(const [_0x5c027f,_0x165f11]of Object[_0x2e942d(0xf4)](APP_PROFILE_FLAG_KEY_MAP)){const _0x1bed39=_0x190108(_0x5c027f);if(!_0x1bed39)continue;_0x49d9b0[_0x165f11]=_0x165f11==='pageSize'?Number(_0x1bed39):_0x1bed39;}return _0x49d9b0;}function a229_0x24f7(_0x287d08,_0x1a5680){_0x287d08=_0x287d08-0xe0;const _0x408560=a229_0x4085();let _0x24f74d=_0x408560[_0x287d08];return _0x24f74d;}export function buildAppProfileListFields(_0x5a2399){const _0x591eb4=a229_0x3c0c55;return{'env':_0x5a2399[_0x591eb4(0xe7)]??null,'apiDir':_0x5a2399[_0x591eb4(0xf6)]??null,'hasCookie':!!_0x5a2399['cookie'],'hasAccessKey':!!_0x5a2399[_0x591eb4(0x111)],'format':_0x5a2399['format']??null,'pageSize':_0x5a2399[_0x591eb4(0x106)]??null,'riskLevel':_0x5a2399[_0x591eb4(0x10b)]??null,'locale':_0x5a2399[_0x591eb4(0xf8)]??null};}export function buildAppDoctorFields(_0x33d121,_0x21340d){const _0x432525=a229_0x3c0c55;return{'env':{'value':_0x33d121[_0x432525(0xe7)]||_0x21340d[_0x432525(0xe7)],'source':_0x33d121[_0x432525(0xe7)]?_0x432525(0x10c):'inherit'},'apiDir':{'value':_0x33d121[_0x432525(0xf6)]||_0x21340d[_0x432525(0xf6)],'source':_0x33d121[_0x432525(0xf6)]?'app':_0x432525(0xec)},'cookie':{'value':_0x33d121['cookie']||_0x21340d[_0x432525(0x101)],'source':_0x33d121[_0x432525(0x101)]?_0x432525(0x10c):_0x432525(0xec)},'accessKey':{'value':_0x33d121[_0x432525(0x111)]||_0x21340d['accessKey'],'source':_0x33d121[_0x432525(0x111)]?'app':_0x432525(0xec)}};}export function buildCanonicalAppConfig(_0x3d5b78,_0x254c3e){const _0x53d598=a229_0x3c0c55,_0x785660=_0x3d5b78[_0x53d598(0xe9)](_0x4b4f2d=>String(_0x4b4f2d||'')['trim']())[_0x53d598(0x108)](Boolean);if(_0x785660[_0x53d598(0x102)]===0x0)return{};const _0x3642e6={};for(const _0x279e85 of _0x785660){_0x3642e6[_0x279e85]=_0x254c3e?{'appcode':_0x279e85,'env':_0x254c3e}:{'appcode':_0x279e85};}return _0x785660[_0x53d598(0x102)]>0x1?{'apps':_0x3642e6,'defaultApp':_0x785660[0x0]}:{'apps':_0x3642e6};}export function normalizeStoredDefaultApp(_0x25688d,_0x30626e){const _0x52747e=a229_0x3c0c55,_0x3bb11f=_0x25688d[_0x52747e(0xfb)]&&typeof _0x25688d[_0x52747e(0xfb)]===_0x52747e(0xe0)?_0x25688d[_0x52747e(0xfb)]:{},_0x114e77=Object[_0x52747e(0x10f)](_0x3bb11f);if(_0x114e77['length']<=0x1)return delete _0x25688d['defaultApp'],undefined;const _0x2bbe2d=typeof _0x25688d[_0x52747e(0x100)]===_0x52747e(0xf2)&&_0x3bb11f[_0x25688d['defaultApp']]?_0x25688d[_0x52747e(0x100)]:undefined,_0x108fe6=_0x30626e&&_0x3bb11f[_0x30626e]?_0x30626e:_0x2bbe2d;if(_0x108fe6)return _0x25688d[_0x52747e(0x100)]=_0x108fe6,_0x108fe6;return delete _0x25688d[_0x52747e(0x100)],undefined;}export function buildCanonicalProjectConfig(_0x4e5f6c,_0x5771be){const _0x127e68=a229_0x3c0c55,{appCodes:appCodes=[],env:_0x1d3a9f,metadata:_0x2b1c87}=_0x5771be,_0x5c14b3={..._0x4e5f6c,..._0x2b1c87||{}};delete _0x5c14b3[_0x127e68(0xee)],delete _0x5c14b3['app'];if(_0x1d3a9f)_0x5c14b3[_0x127e68(0xe7)]=_0x1d3a9f;else!_0x5c14b3['env']&&(_0x5c14b3[_0x127e68(0xe7)]=DEFAULT_CONFIG_VALUES[_0x127e68(0xe7)]);const _0x235294=buildCanonicalAppConfig(appCodes,_0x5c14b3[_0x127e68(0xe7)]);if(Object[_0x127e68(0x10f)](_0x235294)[_0x127e68(0x102)]>0x0){_0x5c14b3[_0x127e68(0xfb)]=_0x235294['apps'];if(_0x235294[_0x127e68(0x100)])_0x5c14b3[_0x127e68(0x100)]=_0x235294[_0x127e68(0x100)];else delete _0x5c14b3[_0x127e68(0x100)];}return _0x5c14b3;}const LOCALE_MAP={'zh':'zh-CN','zh-cn':a229_0x3c0c55(0xea),'zh_cn':'zh-CN','en':a229_0x3c0c55(0xf3),'en-us':'en-US','en_us':'en-US'};export function normalizeLocale(_0x74a7d9){const _0x3d17af=a229_0x3c0c55;if(!_0x74a7d9)return null;return LOCALE_MAP[_0x74a7d9[_0x3d17af(0xf0)]()]??null;}function a229_0x4085(){const _0x12e346=['map','zh-CN','Auth\x20cookie','inherit','325010DUpDcp','appcode','has','toLowerCase','defaultFormat','string','en-US','entries','API\x20directory\x20path','apiDir','kbDomain','locale','App\x20locale\x20(not\x20CLI\x20language;\x20reserved\x20for\x20later\x20app\x20use)','userDomain','apps','appDomain','8236907EQifEM','skillDomain','1940595MUCxPs','defaultApp','cookie','length','5352366VXisFW','Risk\x20level','6356keDhyW','pageSize','Target\x20environment','filter','format','runtimeDomain','riskLevel','app','region','2FhCUdv','keys','5358798mJTxuo','accessKey','routing','1026gQoWSK','object','certificateDomain','Default\x20page\x20size','Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','Access\x20key','apiDomain','6860408zRcENZ','env','localDomain'];a229_0x4085=function(){return _0x12e346;};return a229_0x4085();}
|
|
1
|
+
function a244_0x5a77(_0x1e9a99,_0x4947cc){_0x1e9a99=_0x1e9a99-0x173;const _0x1481c1=a244_0x1481();let _0x5a7715=_0x1481c1[_0x1e9a99];return _0x5a7715;}const a244_0x2e6eec=a244_0x5a77;(function(_0x2d8146,_0x4db5ff){const _0x25ae09=a244_0x5a77,_0x13be8b=_0x2d8146();while(!![]){try{const _0xf2476a=parseInt(_0x25ae09(0x17a))/0x1*(parseInt(_0x25ae09(0x19a))/0x2)+parseInt(_0x25ae09(0x196))/0x3*(-parseInt(_0x25ae09(0x18f))/0x4)+-parseInt(_0x25ae09(0x195))/0x5+-parseInt(_0x25ae09(0x18a))/0x6+-parseInt(_0x25ae09(0x183))/0x7*(-parseInt(_0x25ae09(0x18e))/0x8)+-parseInt(_0x25ae09(0x17f))/0x9*(-parseInt(_0x25ae09(0x1a7))/0xa)+-parseInt(_0x25ae09(0x17c))/0xb;if(_0xf2476a===_0x4db5ff)break;else _0x13be8b['push'](_0x13be8b['shift']());}catch(_0x3a586a){_0x13be8b['push'](_0x13be8b['shift']());}}}(a244_0x1481,0x436b9));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{isDaily,isProduction,RABETBASE_ENV_VALUES}from'../constant/env.js';import{RABETBASE_OUTPUT_FORMAT_VALUES}from'../constant/output.js';import{RISK_LEVEL_VALUES}from'../constant/risk.js';import{ENABLED_LOVRABET_REGION_VALUES}from'../constant/region.js';export{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';export const PROJECT_CREATE_INHERITABLE_KEYS=['cookie','accessKey','locale',a244_0x2e6eec(0x185),'riskLevel',a244_0x2e6eec(0x198),a244_0x2e6eec(0x19c),'userDomain','apiDomain',a244_0x2e6eec(0x190),a244_0x2e6eec(0x1a5),a244_0x2e6eec(0x1a8),a244_0x2e6eec(0x187),'localDomain',a244_0x2e6eec(0x199)];export const TOP_LEVEL_CONFIG_KEYS=new Set(['appcode',a244_0x2e6eec(0x17d),a244_0x2e6eec(0x19f),a244_0x2e6eec(0x185),'cookie',a244_0x2e6eec(0x175),a244_0x2e6eec(0x192),'region',a244_0x2e6eec(0x178),a244_0x2e6eec(0x19e),a244_0x2e6eec(0x190),a244_0x2e6eec(0x1a5),a244_0x2e6eec(0x1a8),a244_0x2e6eec(0x187),a244_0x2e6eec(0x1a9),'certificateDomain']);export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES],'region':[...ENABLED_LOVRABET_REGION_VALUES]};export function formatConfigKeyList(_0x4bc5b0){const _0x13c42d=a244_0x2e6eec;return[..._0x4bc5b0][_0x13c42d(0x194)](',\x20');}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function isTopLevelConfigKey(_0x249663){const _0x2a8a88=a244_0x2e6eec;return TOP_LEVEL_CONFIG_KEYS[_0x2a8a88(0x1a2)](_0x249663);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x186390=a244_0x2e6eec;return _0x186390(0x18b)+getTopLevelConfigKeySummary()+')';}export const APP_PROFILE_FLAG_KEY_MAP={'region':a244_0x2e6eec(0x198),'env':'env','apiDir':a244_0x2e6eec(0x192),'cookie':a244_0x2e6eec(0x1aa),'accessKey':a244_0x2e6eec(0x175),'defaultFormat':'format','pageSize':a244_0x2e6eec(0x188),'riskLevel':a244_0x2e6eec(0x193),'locale':a244_0x2e6eec(0x19f)};export function getAppProfileFlagDefs(){const _0x581b1d=a244_0x2e6eec;return[{'name':_0x581b1d(0x198),'type':_0x581b1d(0x18d),'description':_0x581b1d(0x176),'enum':[...ENABLED_LOVRABET_REGION_VALUES]},{'name':_0x581b1d(0x17d),'type':_0x581b1d(0x18d),'description':_0x581b1d(0x180),'enum':[...RABETBASE_ENV_VALUES]},{'name':_0x581b1d(0x192),'type':_0x581b1d(0x18d),'description':'API\x20directory\x20path'},{'name':_0x581b1d(0x1aa),'type':'string','description':'Auth\x20cookie','hidden':!![]},{'name':_0x581b1d(0x175),'type':_0x581b1d(0x18d),'description':_0x581b1d(0x182),'hidden':!![]},{'name':'defaultFormat','type':'string','description':'Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':_0x581b1d(0x188),'type':_0x581b1d(0x191),'description':'Default\x20page\x20size'},{'name':_0x581b1d(0x193),'type':'string','description':_0x581b1d(0x189),'enum':[...RISK_LEVEL_VALUES]},{'name':_0x581b1d(0x19f),'type':_0x581b1d(0x18d),'description':_0x581b1d(0x17e)}];}function a244_0x1481(){const _0x2db6aa=['fromEntries','appcode','skillDomain','filter','348730YaplIw','kbDomain','localDomain','cookie','en-US','zh-CN','accessKey','Country/region\x20for\x20this\x20app\x20profile','map','userDomain','toLowerCase','4337VbuqyI','some','1137895BAIrzu','env','App\x20locale\x20(not\x20CLI\x20language;\x20reserved\x20for\x20later\x20app\x20use)','126tcPiPw','Target\x20environment','object','Access\x20key','42ppfHiq','apps','format','app','appDomain','pageSize','Risk\x20level','632058SxFNaH','Config\x20key\x20(','defaultApp','string','112696zJNRiG','4UIaOMU','runtimeDomain','number','apiDir','riskLevel','join','711145frtQCk','604371CXQOcZ','inherit','region','certificateDomain','118iSaSaO','entries','routing','trim','apiDomain','locale','length','values','has'];a244_0x1481=function(){return _0x2db6aa;};return a244_0x1481();}export function collectAppProfileOverrides(_0x1f0d70){const _0x4d9085=a244_0x2e6eec,_0x481c6e={};for(const [_0x4698dd,_0xaa41ca]of Object['entries'](APP_PROFILE_FLAG_KEY_MAP)){const _0x59eba0=_0x1f0d70(_0x4698dd);if(!_0x59eba0)continue;_0x481c6e[_0xaa41ca]=_0xaa41ca===_0x4d9085(0x188)?Number(_0x59eba0):_0x59eba0;}return _0x481c6e;}export function buildAppProfileListFields(_0x52de3d){const _0x155e5d=a244_0x2e6eec;return{'region':_0x52de3d['region']??null,'env':_0x52de3d[_0x155e5d(0x17d)]??null,'apiDir':_0x52de3d[_0x155e5d(0x192)]??null,'hasCookie':!!_0x52de3d[_0x155e5d(0x1aa)],'hasAccessKey':!!_0x52de3d[_0x155e5d(0x175)],'format':_0x52de3d['format']??null,'pageSize':_0x52de3d[_0x155e5d(0x188)]??null,'riskLevel':_0x52de3d[_0x155e5d(0x193)]??null,'locale':_0x52de3d[_0x155e5d(0x19f)]??null};}export function buildAppDoctorFields(_0x4f2928,_0x8bb47e){const _0x55e20f=a244_0x2e6eec;return{'region':{'value':_0x4f2928['region']||_0x8bb47e[_0x55e20f(0x198)],'source':_0x4f2928[_0x55e20f(0x198)]?'app':_0x55e20f(0x197)},'env':{'value':_0x4f2928[_0x55e20f(0x17d)]||_0x8bb47e[_0x55e20f(0x17d)],'source':_0x4f2928['env']?_0x55e20f(0x186):_0x55e20f(0x197)},'apiDir':{'value':_0x4f2928[_0x55e20f(0x192)]||_0x8bb47e['apiDir'],'source':_0x4f2928[_0x55e20f(0x192)]?_0x55e20f(0x186):_0x55e20f(0x197)},'cookie':{'value':_0x4f2928[_0x55e20f(0x1aa)]||_0x8bb47e['cookie'],'source':_0x4f2928[_0x55e20f(0x1aa)]?_0x55e20f(0x186):_0x55e20f(0x197)},'accessKey':{'value':_0x4f2928[_0x55e20f(0x175)]||_0x8bb47e[_0x55e20f(0x175)],'source':_0x4f2928[_0x55e20f(0x175)]?_0x55e20f(0x186):_0x55e20f(0x197)}};}export function buildCanonicalAppConfig(_0x101f0a,_0x30181e){const _0x446db6=a244_0x2e6eec,_0x4bf65c=_0x101f0a[_0x446db6(0x177)](_0x3e9385=>String(_0x3e9385||'')[_0x446db6(0x19d)]())[_0x446db6(0x1a6)](Boolean);if(_0x4bf65c[_0x446db6(0x1a0)]===0x0)return{};const _0x246a46={};for(const _0x5d051b of _0x4bf65c){_0x246a46[_0x5d051b]=_0x30181e&&!isProduction(_0x30181e)?{'appcode':_0x5d051b,'env':_0x30181e}:{'appcode':_0x5d051b};}return _0x4bf65c[_0x446db6(0x1a0)]>0x1?{'apps':_0x246a46,'defaultApp':_0x4bf65c[0x0]}:{'apps':_0x246a46};}export function normalizeStoredDefaultApp(_0x15d554,_0x1b1367){const _0x26a53b=a244_0x2e6eec,_0x574cf5=_0x15d554[_0x26a53b(0x184)]&&typeof _0x15d554['apps']===_0x26a53b(0x181)?_0x15d554[_0x26a53b(0x184)]:{},_0x14b138=Object['keys'](_0x574cf5);if(_0x14b138['length']<=0x1)return delete _0x15d554[_0x26a53b(0x18c)],undefined;const _0xf503a9=typeof _0x15d554[_0x26a53b(0x18c)]===_0x26a53b(0x18d)&&_0x574cf5[_0x15d554[_0x26a53b(0x18c)]]?_0x15d554['defaultApp']:undefined,_0x45399e=_0x1b1367&&_0x574cf5[_0x1b1367]?_0x1b1367:_0xf503a9;if(_0x45399e)return _0x15d554['defaultApp']=_0x45399e,_0x45399e;return delete _0x15d554[_0x26a53b(0x18c)],undefined;}export function buildCanonicalProjectConfig(_0xf6171b,_0x2ba53e){const _0x5abbfa=a244_0x2e6eec,{appCodes:appCodes=[],env:_0x2fc1ce,metadata:_0x5498bf}=_0x2ba53e,_0x1c2db1={..._0xf6171b,..._0x5498bf||{}};delete _0x1c2db1[_0x5abbfa(0x1a4)],delete _0x1c2db1[_0x5abbfa(0x186)];const _0x19b83d=_0x2fc1ce||(typeof _0x1c2db1[_0x5abbfa(0x17d)]==='string'?_0x1c2db1[_0x5abbfa(0x17d)]:'')||DEFAULT_CONFIG_VALUES[_0x5abbfa(0x17d)];if(isProduction(_0x19b83d))delete _0x1c2db1['env'];else _0x1c2db1[_0x5abbfa(0x17d)]=_0x19b83d;const _0x26975c=buildCanonicalAppConfig(appCodes,_0x19b83d);if(Object['keys'](_0x26975c)['length']>0x0){_0x1c2db1['apps']=_0x26975c['apps'];if(_0x26975c[_0x5abbfa(0x18c)])_0x1c2db1[_0x5abbfa(0x18c)]=_0x26975c[_0x5abbfa(0x18c)];else delete _0x1c2db1[_0x5abbfa(0x18c)];}return normalizeConfigForWrite(_0x1c2db1);}function isRecord(_0x342bf2){const _0x364904=a244_0x2e6eec;return!!_0x342bf2&&typeof _0x342bf2===_0x364904(0x181)&&!Array['isArray'](_0x342bf2);}export function normalizeConfigForWrite(_0x165869){const _0x407f88=a244_0x2e6eec,_0x1dc5e0={..._0x165869},_0x2799be=isRecord(_0x165869['apps'])?_0x165869['apps']:undefined,_0x33c9cf=_0x2799be?Object[_0x407f88(0x1a3)](Object[_0x407f88(0x19b)](_0x2799be)[_0x407f88(0x177)](([_0x221433,_0x3ea9af])=>[_0x221433,isRecord(_0x3ea9af)?{..._0x3ea9af}:_0x3ea9af])):undefined;if(_0x33c9cf){const _0x3a281b=typeof _0x1dc5e0['env']===_0x407f88(0x18d)?_0x1dc5e0[_0x407f88(0x17d)]:undefined,_0x3bb5cd=Object[_0x407f88(0x1a1)](_0x33c9cf)[_0x407f88(0x17b)](_0x119988=>isRecord(_0x119988)&&typeof _0x119988[_0x407f88(0x17d)]===_0x407f88(0x18d)&&isProduction(_0x119988[_0x407f88(0x17d)]));if(_0x3a281b&&isDaily(_0x3a281b)&&_0x3bb5cd){for(const _0x55c523 of Object[_0x407f88(0x1a1)](_0x33c9cf)){if(!isRecord(_0x55c523))continue;if(_0x55c523[_0x407f88(0x17d)]===undefined)_0x55c523[_0x407f88(0x17d)]=_0x3a281b;}delete _0x1dc5e0[_0x407f88(0x17d)];}for(const _0x1c79ed of Object['values'](_0x33c9cf)){isRecord(_0x1c79ed)&&typeof _0x1c79ed['env']===_0x407f88(0x18d)&&isProduction(_0x1c79ed['env'])&&delete _0x1c79ed[_0x407f88(0x17d)];}_0x1dc5e0['apps']=_0x33c9cf;}return typeof _0x1dc5e0[_0x407f88(0x17d)]==='string'&&isProduction(_0x1dc5e0[_0x407f88(0x17d)])&&delete _0x1dc5e0[_0x407f88(0x17d)],_0x1dc5e0;}const LOCALE_MAP={'zh':a244_0x2e6eec(0x174),'zh-cn':'zh-CN','zh_cn':'zh-CN','en':'en-US','en-us':a244_0x2e6eec(0x173),'en_us':a244_0x2e6eec(0x173)};export function normalizeLocale(_0x4aeabe){const _0x457004=a244_0x2e6eec;if(!_0x4aeabe)return null;return LOCALE_MAP[_0x4aeabe[_0x457004(0x179)]()]??null;}
|
package/lib/constant/cdn.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a245_0x1d7e30=a245_0x692c;function a245_0x50f3(){const _0x5f0ebb=['2783336JvSThG','193369yoIkSJ','/templates/projects','/config/index.json','4JZoSRD','7kwxlpW','50RNGFoN','1302984gyOlVm','310ScPtAa','https://g.lovrabet.com/dist/rabetbase-cli','101030ZTUYRs','69663rpNxhB','625764xIpjdY','143742QKtPTx'];a245_0x50f3=function(){return _0x5f0ebb;};return a245_0x50f3();}(function(_0x3f6f3b,_0x617880){const _0x3cb8d5=a245_0x692c,_0x25b404=_0x3f6f3b();while(!![]){try{const _0xee09b5=parseInt(_0x3cb8d5(0x1db))/0x1+parseInt(_0x3cb8d5(0x1d5))/0x2*(parseInt(_0x3cb8d5(0x1ce))/0x3)+parseInt(_0x3cb8d5(0x1cf))/0x4+-parseInt(_0x3cb8d5(0x1d7))/0x5*(-parseInt(_0x3cb8d5(0x1d0))/0x6)+parseInt(_0x3cb8d5(0x1d6))/0x7*(parseInt(_0x3cb8d5(0x1d1))/0x8)+-parseInt(_0x3cb8d5(0x1d8))/0x9+-parseInt(_0x3cb8d5(0x1d9))/0xa*(parseInt(_0x3cb8d5(0x1d2))/0xb);if(_0xee09b5===_0x617880)break;else _0x25b404['push'](_0x25b404['shift']());}catch(_0x47f6e1){_0x25b404['push'](_0x25b404['shift']());}}}(a245_0x50f3,0x313cb));export const RABETBASE_CDN_BASE_URL=a245_0x1d7e30(0x1da);function a245_0x692c(_0x10024b,_0x2e1387){_0x10024b=_0x10024b-0x1ce;const _0x50f3de=a245_0x50f3();let _0x692c3d=_0x50f3de[_0x10024b];return _0x692c3d;}export const CLI_VERSION_POLICY_URL=RABETBASE_CDN_BASE_URL+a245_0x1d7e30(0x1d4);export const PROJECT_TEMPLATE_ASSET_BASE_URL=RABETBASE_CDN_BASE_URL+a245_0x1d7e30(0x1d3);
|
package/lib/constant/cli.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function a231_0x162b(){const _0x4c4726=['Page\x20number','help','Use\x20project\x20config\x20scope','reveal','skip-imports','meowKey','596TRBdOi','File\x20path','Name','env','confirm','Target\x20path','Schemas','datasetcode','description-file','JSON\x20params','taskId','fromEntries','topk','<name>','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','all','sqlcode','tags','Force\x20overwrite','remote','Function\x20node','string','386FHCHkQ','type','value','dbid','Asynchronous\x20task\x20ID','297185HILJxJ','90460Hrszkm','Override\x20appcode','project','Verbose\x20output','Use\x20global\x20config\x20scope','Record\x20ID','500124DYTEmX','stdin','Reveal\x20sensitive\x20value','enable-bff-save','non-interactive','force','Environment','parentId','expect-path','operationType','sort','Clear','Read\x20value\x20from\x20environment\x20variable','watch','global','Config\x20key','function-node','Output\x20format','369639WXVDUw','SQL\x20string','Menu\x20sort\x20value','expectParentId','Maximum\x20search\x20hits','Dataset\x20code','Tags','Skip\x20import\x20generation','production\x20|\x20daily','Page\x20size','appcode','801nKkcuG','app','sql','Show\x20help','expectedCount','Skip\x20confirmation\x20for\x20high-risk\x20writes','db-id','Operation\x20type','label','boolean','SQL\x20name','dbId','Expected\x20current\x20child\x20count','keyword','Description','11936OWAOuE','query','Comma-separated\x20menu\x20IDs','expect-parent-id','schemas','expected-count','30gKKjcl','Code\x20filter','yes','Enable\x20Backend\x20Function\x20save','<expr>','dry-run','key','operation-type','Expected\x20current\x20parent\x20menu\x20id','Force\x20non-interactive\x20mode\x20(CI)','menuIds','title','sql-name','Read\x20value\x20from\x20stdin','sqlname','description','1182380LdllrP','DB\x20ID','name','rabetbase','from-env','page','params','Menu\x20label','clear','expectedChildrenCount','Use\x20remote','Config\x20value','codes','target','enableBffSave','App\x20locale\x20(workspace\x20pass-through;\x20not\x20CLI\x20language)','code','fromEnv','Search\x20query','Apply\x20to\x20all','verbose','Parent\x20menu\x20id','parent-id','<code>','expectPath','format','33rdqVeR','functionNode','sqlName','zh-CN\x20|\x20en-US','Expected\x20affected\x20count','nonInteractive','descriptionFile','Type\x20filter'];a231_0x162b=function(){return _0x4c4726;};return a231_0x162b();}function a231_0x157c(_0x1c691c,_0x23551e){_0x1c691c=_0x1c691c-0xcf;const _0x162b8b=a231_0x162b();let _0x157c56=_0x162b8b[_0x1c691c];return _0x157c56;}const a231_0x430e9=a231_0x157c;(function(_0x468708,_0x311bd1){const _0x32e34d=a231_0x157c,_0x17d9b9=_0x468708();while(!![]){try{const _0xf50d45=-parseInt(_0x32e34d(0x155))/0x1*(parseInt(_0x32e34d(0x13f))/0x2)+parseInt(_0x32e34d(0xe7))/0x3+parseInt(_0x32e34d(0xd5))/0x4+-parseInt(_0x32e34d(0xcf))/0x5+parseInt(_0x32e34d(0x107))/0x6*(-parseInt(_0x32e34d(0x15a))/0x7)+parseInt(_0x32e34d(0x101))/0x8*(-parseInt(_0x32e34d(0xf2))/0x9)+parseInt(_0x32e34d(0x117))/0xa*(parseInt(_0x32e34d(0x131))/0xb);if(_0xf50d45===_0x311bd1)break;else _0x17d9b9['push'](_0x17d9b9['shift']());}catch(_0x28d626){_0x17d9b9['push'](_0x17d9b9['shift']());}}}(a231_0x162b,0x1e767));export const CLI_BIN_NAME=a231_0x430e9(0x11a);export const CLI_DISPLAY_NAME='Rabetbase\x20CLI';export const NPM_PACKAGE_NAME='@lovrabet/rabetbase-cli';export const GLOBAL_FLAGS=[{'name':a231_0x430e9(0xf1),'meowKey':a231_0x430e9(0xf1),'type':'string','description':a231_0x430e9(0xd0),'hint':a231_0x430e9(0x12e)},{'name':a231_0x430e9(0xf3),'meowKey':'app','type':a231_0x430e9(0x154),'description':'Select\x20app\x20profile\x20by\x20name','hint':a231_0x430e9(0x14c)},{'name':'env','meowKey':a231_0x430e9(0x142),'type':a231_0x430e9(0x154),'description':a231_0x430e9(0xdb),'hint':a231_0x430e9(0xef)},{'name':a231_0x430e9(0x130),'meowKey':a231_0x430e9(0x130),'type':a231_0x430e9(0x154),'description':a231_0x430e9(0xe6),'hint':'json\x20|\x20pretty\x20|\x20compress'},{'name':'jq','meowKey':'jq','type':a231_0x430e9(0x154),'description':a231_0x430e9(0x14d),'hint':a231_0x430e9(0x10b)},{'name':a231_0x430e9(0x10c),'meowKey':'dryRun','type':a231_0x430e9(0xfb),'description':'Preview\x20operation\x20without\x20executing'},{'name':'yes','meowKey':a231_0x430e9(0x109),'type':a231_0x430e9(0xfb),'description':a231_0x430e9(0xf7)},{'name':a231_0x430e9(0xd9),'meowKey':a231_0x430e9(0x136),'type':'boolean','description':a231_0x430e9(0x110)},{'name':a231_0x430e9(0xe3),'meowKey':a231_0x430e9(0xe3),'type':a231_0x430e9(0xfb),'description':a231_0x430e9(0xd3)},{'name':a231_0x430e9(0xd1),'meowKey':'project','type':a231_0x430e9(0xfb),'description':a231_0x430e9(0x13b)},{'name':'ci','meowKey':'ci','type':'boolean','description':'Alias\x20for\x20--non-interactive','hidden':!![]},{'name':a231_0x430e9(0x13a),'meowKey':'help','type':a231_0x430e9(0xfb),'description':a231_0x430e9(0xf5)},{'name':'locale','meowKey':'locale','type':a231_0x430e9(0x154),'description':a231_0x430e9(0x126),'hidden':!![],'hint':a231_0x430e9(0x134)},{'name':a231_0x430e9(0x119),'meowKey':a231_0x430e9(0x119),'type':a231_0x430e9(0x154),'description':a231_0x430e9(0x141),'hidden':!![]},{'name':a231_0x430e9(0x112),'meowKey':a231_0x430e9(0x112),'type':a231_0x430e9(0x154),'description':'Title','hidden':!![]},{'name':a231_0x430e9(0x102),'meowKey':a231_0x430e9(0x102),'type':a231_0x430e9(0x154),'description':a231_0x430e9(0x129),'hidden':!![]},{'name':a231_0x430e9(0x14b),'meowKey':a231_0x430e9(0x14b),'type':a231_0x430e9(0x154),'description':a231_0x430e9(0xeb),'hidden':!![]},{'name':a231_0x430e9(0x11f),'meowKey':a231_0x430e9(0x11f),'type':'boolean','description':a231_0x430e9(0xe0),'hidden':!![]},{'name':a231_0x430e9(0xe2),'meowKey':a231_0x430e9(0xe2),'type':'boolean','description':'Watch\x20mode','hidden':!![]},{'name':'output','meowKey':'output','type':'string','description':'Output\x20path','hidden':!![]},{'name':a231_0x430e9(0x11d),'meowKey':a231_0x430e9(0x11d),'type':a231_0x430e9(0x154),'description':a231_0x430e9(0x148),'hidden':!![]},{'name':a231_0x430e9(0x146),'meowKey':'datasetcode','type':a231_0x430e9(0x154),'description':a231_0x430e9(0xec),'hidden':!![]},{'name':a231_0x430e9(0x14e),'meowKey':'all','type':'boolean','description':a231_0x430e9(0x12a),'hidden':!![]},{'name':a231_0x430e9(0xd8),'meowKey':a231_0x430e9(0x125),'type':a231_0x430e9(0xfb),'description':a231_0x430e9(0x10a),'hidden':!![]},{'name':'id','meowKey':'id','type':a231_0x430e9(0x154),'description':a231_0x430e9(0xd4),'hidden':!![]},{'name':a231_0x430e9(0x156),'meowKey':'type','type':a231_0x430e9(0x154),'description':a231_0x430e9(0x138),'hidden':!![]},{'name':'file','meowKey':'file','type':a231_0x430e9(0x154),'description':a231_0x430e9(0x140),'hidden':!![]},{'name':a231_0x430e9(0x14f),'meowKey':a231_0x430e9(0x14f),'type':a231_0x430e9(0x154),'description':'SQL\x20code','hidden':!![]},{'name':a231_0x430e9(0x113),'meowKey':a231_0x430e9(0x133),'type':'string','description':a231_0x430e9(0xfc),'hidden':!![]},{'name':'sqlname','meowKey':a231_0x430e9(0x115),'type':a231_0x430e9(0x154),'description':'SQL\x20name','hidden':!![]},{'name':a231_0x430e9(0xf8),'meowKey':a231_0x430e9(0xfd),'type':'string','description':a231_0x430e9(0x118),'hidden':!![]},{'name':a231_0x430e9(0x158),'meowKey':'dbid','type':a231_0x430e9(0x154),'description':a231_0x430e9(0x118),'hidden':!![]},{'name':a231_0x430e9(0x116),'meowKey':a231_0x430e9(0x116),'type':a231_0x430e9(0x154),'description':a231_0x430e9(0x100),'hidden':!![]},{'name':a231_0x430e9(0x147),'meowKey':a231_0x430e9(0x137),'type':a231_0x430e9(0x154),'description':'Description\x20file','hidden':!![]},{'name':a231_0x430e9(0x11c),'meowKey':'page','type':a231_0x430e9(0x154),'description':a231_0x430e9(0x139),'hidden':!![]},{'name':'pagesize','meowKey':'pagesize','type':a231_0x430e9(0x154),'description':a231_0x430e9(0xf0),'hidden':!![]},{'name':a231_0x430e9(0xff),'meowKey':a231_0x430e9(0xff),'type':'string','description':'Keyword\x20filter','hidden':!![]},{'name':a231_0x430e9(0x127),'meowKey':'code','type':a231_0x430e9(0x154),'description':a231_0x430e9(0x108),'hidden':!![]},{'name':a231_0x430e9(0xf4),'meowKey':a231_0x430e9(0xf4),'type':'string','description':a231_0x430e9(0xe8),'hidden':!![]},{'name':a231_0x430e9(0x105),'meowKey':a231_0x430e9(0x105),'type':a231_0x430e9(0x154),'description':a231_0x430e9(0x145),'hidden':!![]},{'name':'operation','meowKey':'operation','type':a231_0x430e9(0x154),'description':a231_0x430e9(0xf9),'hidden':!![]},{'name':a231_0x430e9(0x124),'meowKey':a231_0x430e9(0x124),'type':a231_0x430e9(0x154),'description':a231_0x430e9(0x144),'hidden':!![]},{'name':a231_0x430e9(0x13d),'meowKey':'skipImports','type':'boolean','description':a231_0x430e9(0xee),'hidden':!![]},{'name':'key','meowKey':a231_0x430e9(0x10d),'type':a231_0x430e9(0x154),'description':a231_0x430e9(0xe4),'hidden':!![]},{'name':a231_0x430e9(0x157),'meowKey':'value','type':a231_0x430e9(0x154),'description':a231_0x430e9(0x122),'hidden':!![]},{'name':'tags','meowKey':a231_0x430e9(0x150),'type':a231_0x430e9(0x154),'description':a231_0x430e9(0xed),'hidden':!![]},{'name':'stdin','meowKey':a231_0x430e9(0xd6),'type':'boolean','description':a231_0x430e9(0x114),'hidden':!![]},{'name':a231_0x430e9(0x11b),'meowKey':a231_0x430e9(0x128),'type':a231_0x430e9(0x154),'description':a231_0x430e9(0xe1),'hidden':!![]},{'name':a231_0x430e9(0x13c),'meowKey':a231_0x430e9(0x13c),'type':a231_0x430e9(0xfb),'description':a231_0x430e9(0xd7),'hidden':!![]},{'name':a231_0x430e9(0xda),'meowKey':a231_0x430e9(0xda),'type':a231_0x430e9(0xfb),'description':a231_0x430e9(0x151),'hidden':!![]},{'name':a231_0x430e9(0x143),'meowKey':a231_0x430e9(0x143),'type':a231_0x430e9(0xfb),'description':'Confirm\x20destructive\x20action','hidden':!![]},{'name':a231_0x430e9(0x152),'meowKey':a231_0x430e9(0x152),'type':a231_0x430e9(0xfb),'description':a231_0x430e9(0x121),'hidden':!![]},{'name':a231_0x430e9(0x12b),'meowKey':'verbose','type':a231_0x430e9(0xfb),'description':a231_0x430e9(0xd2),'hidden':!![]},{'name':a231_0x430e9(0x106),'meowKey':a231_0x430e9(0xf6),'type':a231_0x430e9(0x154),'description':a231_0x430e9(0x135),'hidden':!![]},{'name':a231_0x430e9(0xfa),'meowKey':a231_0x430e9(0xfa),'type':a231_0x430e9(0x154),'description':a231_0x430e9(0x11e),'hidden':!![]},{'name':a231_0x430e9(0x12d),'meowKey':a231_0x430e9(0xdc),'type':a231_0x430e9(0x154),'description':a231_0x430e9(0x12c),'hidden':!![]},{'name':a231_0x430e9(0xdf),'meowKey':a231_0x430e9(0xdf),'type':a231_0x430e9(0x154),'description':a231_0x430e9(0xe9),'hidden':!![]},{'name':a231_0x430e9(0x104),'meowKey':a231_0x430e9(0xea),'type':a231_0x430e9(0x154),'description':a231_0x430e9(0x10f),'hidden':!![]},{'name':a231_0x430e9(0xdd),'meowKey':a231_0x430e9(0x12f),'type':a231_0x430e9(0x154),'description':'Expected\x20current\x20menu\x20path','hidden':!![]},{'name':'expected-children-count','meowKey':a231_0x430e9(0x120),'type':a231_0x430e9(0x154),'description':a231_0x430e9(0xfe),'hidden':!![]},{'name':'menu-ids','meowKey':a231_0x430e9(0x111),'type':a231_0x430e9(0x154),'description':a231_0x430e9(0x103),'hidden':!![]},{'name':'task-id','meowKey':a231_0x430e9(0x149),'type':'string','description':a231_0x430e9(0x159),'hidden':!![]},{'name':a231_0x430e9(0x10e),'meowKey':a231_0x430e9(0xde),'type':a231_0x430e9(0x154),'description':a231_0x430e9(0xf9),'hidden':!![]},{'name':a231_0x430e9(0xe5),'meowKey':a231_0x430e9(0x132),'type':a231_0x430e9(0x154),'description':a231_0x430e9(0x153),'hidden':!![]},{'name':a231_0x430e9(0x123),'meowKey':'codes','type':'string','description':'Comma-separated\x20metadata\x20codes','hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set(['appcode',a231_0x430e9(0xf3),a231_0x430e9(0x142),'format','jq',a231_0x430e9(0x10c),a231_0x430e9(0x109),a231_0x430e9(0xd9),'ci']);export function buildMeowFlags(){const _0x55ef46=a231_0x430e9;return Object[_0x55ef46(0x14a)](GLOBAL_FLAGS['map'](_0x376c20=>[_0x376c20[_0x55ef46(0x13e)],{'type':_0x376c20[_0x55ef46(0x156)]}]));}
|
|
1
|
+
const a246_0x164b29=a246_0x5f40;function a246_0x3770(){const _0x214fc2=['description','schemas','Read\x20value\x20from\x20stdin','dataset-code','4982481ETGMgM','force','Search\x20query','Flow\x20status','Use\x20remote','file','flow-type','value','boolean','functionNode','target','dry-run','tags','clear','Expected\x20current\x20menu\x20path','yes','Description','env','DB\x20ID','remote','descriptionFile','Page\x20size','JSON\x20params','json\x20|\x20pretty\x20|\x20compress','zh-CN\x20|\x20en-US','sqlname','stdin','non-interactive','Operation\x20type','flowStatus','map','expectedCount','operationType','verbose','Clear','reveal','title','dryRun','6110710hgdOwS','4684386olhSSZ','flow-status','expected-children-count','app','pageSize','Force\x20non-interactive\x20mode\x20(CI)','flowType','Select\x20app\x20profile\x20by\x20name','fromEntries','dbid','page-size','Page\x20number','flowCode','all','Flow\x20type','page','label','Use\x20global\x20config\x20scope','662445ivAPHN','flow-name','SQL\x20name','key','rabetbase','function-node','SQL\x20string','Code\x20filter','Alias\x20for\x20--non-interactive','expectPath','codes','db-id','menu-ids','meowKey','enable-bff-save','datasetcode','operation','Apply\x20to\x20all','Description\x20file','Config\x20value','topk','skipImports','Flow\x20name','output','33MKovAe','Enable\x20Backend\x20Function\x20save','watch','Expected\x20affected\x20count','Show\x20help','locale','sql-name','128UKZuur','expected-count','Rabetbase\x20CLI','params','Config\x20key','Menu\x20sort\x20value','Asynchronous\x20task\x20ID','pagesize','Record\x20ID','Target\x20path','15CEgEIT','sort','string','appcode','expect-path','Type\x20filter','expectParentId','nonInteractive','Dataset\x20code','query','menuIds','Output\x20path','flowName','Read\x20value\x20from\x20environment\x20variable','help','enableBffSave','type','File\x20path','<name>','Function\x20node','flow-code','project','global','<expr>','3SNzMAD','from-env','Confirm\x20destructive\x20action','name','task-id','Name','Menu\x20label','App\x20locale\x20(workspace\x20pass-through;\x20not\x20CLI\x20language)','Use\x20project\x20config\x20scope','code','confirm','Reveal\x20sensitive\x20value','sqlcode','Expected\x20current\x20child\x20count','1627202rEvuNM','parentId','fromEnv','production\x20|\x20daily','expectedChildrenCount','1506839riXUJg','Preview\x20operation\x20without\x20executing','Maximum\x20search\x20hits','skip-imports','Watch\x20mode','1910124iJNkYJ','format','SQL\x20code','Environment'];a246_0x3770=function(){return _0x214fc2;};return a246_0x3770();}(function(_0x32689f,_0x24aa3f){const _0x4fd988=a246_0x5f40,_0x57e566=_0x32689f();while(!![]){try{const _0x26a66e=-parseInt(_0x4fd988(0x138))/0x1+parseInt(_0x4fd988(0x133))/0x2*(-parseInt(_0x4fd988(0x125))/0x3)+parseInt(_0x4fd988(0x13d))/0x4*(parseInt(_0x4fd988(0x10d))/0x5)+parseInt(_0x4fd988(0xd2))/0x6+parseInt(_0x4fd988(0xe4))/0x7*(-parseInt(_0x4fd988(0x103))/0x8)+parseInt(_0x4fd988(0x145))/0x9+parseInt(_0x4fd988(0xd1))/0xa*(parseInt(_0x4fd988(0xfc))/0xb);if(_0x26a66e===_0x24aa3f)break;else _0x57e566['push'](_0x57e566['shift']());}catch(_0x122617){_0x57e566['push'](_0x57e566['shift']());}}}(a246_0x3770,0xbae6a));export const CLI_BIN_NAME=a246_0x164b29(0xe8);function a246_0x5f40(_0x4e4925,_0x296657){_0x4e4925=_0x4e4925-0xb8;const _0x3770cd=a246_0x3770();let _0x5f4009=_0x3770cd[_0x4e4925];return _0x5f4009;}export const CLI_DISPLAY_NAME=a246_0x164b29(0x105);export const NPM_PACKAGE_NAME='@lovrabet/rabetbase-cli';export const GLOBAL_FLAGS=[{'name':a246_0x164b29(0x110),'meowKey':a246_0x164b29(0x110),'type':a246_0x164b29(0x10f),'description':'Override\x20appcode','hint':'<code>'},{'name':'app','meowKey':a246_0x164b29(0xd5),'type':a246_0x164b29(0x10f),'description':a246_0x164b29(0xd9),'hint':a246_0x164b29(0x11f)},{'name':a246_0x164b29(0xbc),'meowKey':'env','type':'string','description':a246_0x164b29(0x140),'hint':a246_0x164b29(0x136)},{'name':a246_0x164b29(0x13e),'meowKey':a246_0x164b29(0x13e),'type':'string','description':'Output\x20format','hint':a246_0x164b29(0xc2)},{'name':'jq','meowKey':'jq','type':a246_0x164b29(0x10f),'description':'Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','hint':a246_0x164b29(0x124)},{'name':a246_0x164b29(0x150),'meowKey':a246_0x164b29(0xd0),'type':a246_0x164b29(0x14d),'description':a246_0x164b29(0x139)},{'name':'yes','meowKey':a246_0x164b29(0xba),'type':a246_0x164b29(0x14d),'description':'Skip\x20confirmation\x20for\x20high-risk\x20writes'},{'name':a246_0x164b29(0xc6),'meowKey':a246_0x164b29(0x114),'type':'boolean','description':a246_0x164b29(0xd7)},{'name':a246_0x164b29(0x123),'meowKey':a246_0x164b29(0x123),'type':'boolean','description':a246_0x164b29(0xe3)},{'name':a246_0x164b29(0x122),'meowKey':a246_0x164b29(0x122),'type':a246_0x164b29(0x14d),'description':a246_0x164b29(0x12d)},{'name':'ci','meowKey':'ci','type':a246_0x164b29(0x14d),'description':a246_0x164b29(0xec),'hidden':!![]},{'name':a246_0x164b29(0x11b),'meowKey':a246_0x164b29(0x11b),'type':'boolean','description':a246_0x164b29(0x100)},{'name':a246_0x164b29(0x101),'meowKey':a246_0x164b29(0x101),'type':a246_0x164b29(0x10f),'description':a246_0x164b29(0x12c),'hidden':!![],'hint':a246_0x164b29(0xc3)},{'name':a246_0x164b29(0x128),'meowKey':a246_0x164b29(0x128),'type':a246_0x164b29(0x10f),'description':a246_0x164b29(0x12a),'hidden':!![]},{'name':a246_0x164b29(0xcf),'meowKey':'title','type':'string','description':'Title','hidden':!![]},{'name':a246_0x164b29(0x116),'meowKey':a246_0x164b29(0x116),'type':a246_0x164b29(0x10f),'description':a246_0x164b29(0x147),'hidden':!![]},{'name':a246_0x164b29(0xf8),'meowKey':a246_0x164b29(0xf8),'type':a246_0x164b29(0x10f),'description':a246_0x164b29(0x13a),'hidden':!![]},{'name':'clear','meowKey':a246_0x164b29(0xb8),'type':a246_0x164b29(0x14d),'description':a246_0x164b29(0xcd),'hidden':!![]},{'name':a246_0x164b29(0xfe),'meowKey':a246_0x164b29(0xfe),'type':a246_0x164b29(0x14d),'description':a246_0x164b29(0x13c),'hidden':!![]},{'name':'output','meowKey':a246_0x164b29(0xfb),'type':a246_0x164b29(0x10f),'description':a246_0x164b29(0x118),'hidden':!![]},{'name':a246_0x164b29(0x106),'meowKey':'params','type':'string','description':a246_0x164b29(0xc1),'hidden':!![]},{'name':a246_0x164b29(0xf3),'meowKey':a246_0x164b29(0xf3),'type':a246_0x164b29(0x10f),'description':a246_0x164b29(0x115),'hidden':!![]},{'name':'all','meowKey':a246_0x164b29(0xdf),'type':a246_0x164b29(0x14d),'description':a246_0x164b29(0xf5),'hidden':!![]},{'name':a246_0x164b29(0xf2),'meowKey':a246_0x164b29(0x11c),'type':a246_0x164b29(0x14d),'description':a246_0x164b29(0xfd),'hidden':!![]},{'name':'id','meowKey':'id','type':a246_0x164b29(0x10f),'description':a246_0x164b29(0x10b),'hidden':!![]},{'name':a246_0x164b29(0x11d),'meowKey':a246_0x164b29(0x11d),'type':a246_0x164b29(0x10f),'description':a246_0x164b29(0x112),'hidden':!![]},{'name':'file','meowKey':a246_0x164b29(0x14a),'type':a246_0x164b29(0x10f),'description':a246_0x164b29(0x11e),'hidden':!![]},{'name':a246_0x164b29(0x121),'meowKey':a246_0x164b29(0xde),'type':a246_0x164b29(0x10f),'description':'Flow\x20code','hidden':!![]},{'name':a246_0x164b29(0xe5),'meowKey':a246_0x164b29(0x119),'type':a246_0x164b29(0x10f),'description':a246_0x164b29(0xfa),'hidden':!![]},{'name':a246_0x164b29(0xd3),'meowKey':a246_0x164b29(0xc8),'type':a246_0x164b29(0x10f),'description':a246_0x164b29(0x148),'hidden':!![]},{'name':a246_0x164b29(0x14b),'meowKey':a246_0x164b29(0xd8),'type':a246_0x164b29(0x10f),'description':a246_0x164b29(0xe0),'hidden':!![]},{'name':a246_0x164b29(0x144),'meowKey':'datasetCode','type':a246_0x164b29(0x10f),'description':a246_0x164b29(0x115),'hidden':!![]},{'name':a246_0x164b29(0x131),'meowKey':a246_0x164b29(0x131),'type':a246_0x164b29(0x10f),'description':a246_0x164b29(0x13f),'hidden':!![]},{'name':a246_0x164b29(0x102),'meowKey':'sqlName','type':a246_0x164b29(0x10f),'description':a246_0x164b29(0xe6),'hidden':!![]},{'name':a246_0x164b29(0xc4),'meowKey':'sqlname','type':a246_0x164b29(0x10f),'description':a246_0x164b29(0xe6),'hidden':!![]},{'name':a246_0x164b29(0xef),'meowKey':'dbId','type':a246_0x164b29(0x10f),'description':a246_0x164b29(0xbd),'hidden':!![]},{'name':a246_0x164b29(0xdb),'meowKey':a246_0x164b29(0xdb),'type':a246_0x164b29(0x10f),'description':'DB\x20ID','hidden':!![]},{'name':a246_0x164b29(0x141),'meowKey':'description','type':'string','description':a246_0x164b29(0xbb),'hidden':!![]},{'name':'description-file','meowKey':a246_0x164b29(0xbf),'type':a246_0x164b29(0x10f),'description':a246_0x164b29(0xf6),'hidden':!![]},{'name':a246_0x164b29(0xe1),'meowKey':a246_0x164b29(0xe1),'type':'string','description':a246_0x164b29(0xdd),'hidden':!![]},{'name':a246_0x164b29(0xdc),'meowKey':a246_0x164b29(0xd6),'type':a246_0x164b29(0x10f),'description':a246_0x164b29(0xc0),'hidden':!![]},{'name':a246_0x164b29(0x10a),'meowKey':a246_0x164b29(0x10a),'type':a246_0x164b29(0x10f),'description':a246_0x164b29(0xc0),'hidden':!![]},{'name':'keyword','meowKey':'keyword','type':a246_0x164b29(0x10f),'description':'Keyword\x20filter','hidden':!![]},{'name':a246_0x164b29(0x12e),'meowKey':a246_0x164b29(0x12e),'type':'string','description':a246_0x164b29(0xeb),'hidden':!![]},{'name':'sql','meowKey':'sql','type':a246_0x164b29(0x10f),'description':a246_0x164b29(0xea),'hidden':!![]},{'name':a246_0x164b29(0x142),'meowKey':a246_0x164b29(0x142),'type':a246_0x164b29(0x10f),'description':'Schemas','hidden':!![]},{'name':a246_0x164b29(0xf4),'meowKey':'operation','type':a246_0x164b29(0x10f),'description':'Operation\x20type','hidden':!![]},{'name':a246_0x164b29(0x14f),'meowKey':a246_0x164b29(0x14f),'type':a246_0x164b29(0x10f),'description':a246_0x164b29(0x10c),'hidden':!![]},{'name':a246_0x164b29(0x13b),'meowKey':a246_0x164b29(0xf9),'type':a246_0x164b29(0x14d),'description':'Skip\x20import\x20generation','hidden':!![]},{'name':a246_0x164b29(0xe7),'meowKey':a246_0x164b29(0xe7),'type':a246_0x164b29(0x10f),'description':a246_0x164b29(0x107),'hidden':!![]},{'name':a246_0x164b29(0x14c),'meowKey':a246_0x164b29(0x14c),'type':a246_0x164b29(0x10f),'description':a246_0x164b29(0xf7),'hidden':!![]},{'name':a246_0x164b29(0x151),'meowKey':a246_0x164b29(0x151),'type':a246_0x164b29(0x10f),'description':'Tags','hidden':!![]},{'name':a246_0x164b29(0xc5),'meowKey':a246_0x164b29(0xc5),'type':a246_0x164b29(0x14d),'description':a246_0x164b29(0x143),'hidden':!![]},{'name':a246_0x164b29(0x126),'meowKey':a246_0x164b29(0x135),'type':'string','description':a246_0x164b29(0x11a),'hidden':!![]},{'name':a246_0x164b29(0xce),'meowKey':'reveal','type':'boolean','description':a246_0x164b29(0x130),'hidden':!![]},{'name':a246_0x164b29(0x146),'meowKey':'force','type':a246_0x164b29(0x14d),'description':'Force\x20overwrite','hidden':!![]},{'name':a246_0x164b29(0x12f),'meowKey':a246_0x164b29(0x12f),'type':a246_0x164b29(0x14d),'description':a246_0x164b29(0x127),'hidden':!![]},{'name':a246_0x164b29(0xbe),'meowKey':a246_0x164b29(0xbe),'type':'boolean','description':a246_0x164b29(0x149),'hidden':!![]},{'name':a246_0x164b29(0xcc),'meowKey':a246_0x164b29(0xcc),'type':'boolean','description':'Verbose\x20output','hidden':!![]},{'name':a246_0x164b29(0x104),'meowKey':a246_0x164b29(0xca),'type':a246_0x164b29(0x10f),'description':a246_0x164b29(0xff),'hidden':!![]},{'name':a246_0x164b29(0xe2),'meowKey':a246_0x164b29(0xe2),'type':a246_0x164b29(0x10f),'description':a246_0x164b29(0x12b),'hidden':!![]},{'name':'parent-id','meowKey':a246_0x164b29(0x134),'type':'string','description':'Parent\x20menu\x20id','hidden':!![]},{'name':a246_0x164b29(0x10e),'meowKey':'sort','type':a246_0x164b29(0x10f),'description':a246_0x164b29(0x108),'hidden':!![]},{'name':'expect-parent-id','meowKey':a246_0x164b29(0x113),'type':a246_0x164b29(0x10f),'description':'Expected\x20current\x20parent\x20menu\x20id','hidden':!![]},{'name':a246_0x164b29(0x111),'meowKey':a246_0x164b29(0xed),'type':a246_0x164b29(0x10f),'description':a246_0x164b29(0xb9),'hidden':!![]},{'name':a246_0x164b29(0xd4),'meowKey':a246_0x164b29(0x137),'type':a246_0x164b29(0x10f),'description':a246_0x164b29(0x132),'hidden':!![]},{'name':a246_0x164b29(0xf0),'meowKey':a246_0x164b29(0x117),'type':a246_0x164b29(0x10f),'description':'Comma-separated\x20menu\x20IDs','hidden':!![]},{'name':a246_0x164b29(0x129),'meowKey':'taskId','type':a246_0x164b29(0x10f),'description':a246_0x164b29(0x109),'hidden':!![]},{'name':'operation-type','meowKey':a246_0x164b29(0xcb),'type':a246_0x164b29(0x10f),'description':a246_0x164b29(0xc7),'hidden':!![]},{'name':a246_0x164b29(0xe9),'meowKey':a246_0x164b29(0x14e),'type':'string','description':a246_0x164b29(0x120),'hidden':!![]},{'name':'codes','meowKey':a246_0x164b29(0xee),'type':a246_0x164b29(0x10f),'description':'Comma-separated\x20metadata\x20codes','hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set(['appcode',a246_0x164b29(0xd5),a246_0x164b29(0xbc),a246_0x164b29(0x13e),'jq',a246_0x164b29(0x150),a246_0x164b29(0xba),a246_0x164b29(0xc6),'ci']);export function buildMeowFlags(){const _0x26b8c9=a246_0x164b29;return Object[_0x26b8c9(0xda)](GLOBAL_FLAGS[_0x26b8c9(0xc9)](_0x556e72=>[_0x556e72[_0x26b8c9(0xf1)],{'type':_0x556e72[_0x26b8c9(0x11d)]}]));}
|
package/lib/constant/defaults.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a247_0x54b7f4=a247_0x2c48;(function(_0x410bbe,_0x39416b){const _0x5ea9b3=a247_0x2c48,_0xa1d23c=_0x410bbe();while(!![]){try{const _0x49ce04=-parseInt(_0x5ea9b3(0xdd))/0x1*(-parseInt(_0x5ea9b3(0xd7))/0x2)+parseInt(_0x5ea9b3(0xd2))/0x3+-parseInt(_0x5ea9b3(0xd6))/0x4+parseInt(_0x5ea9b3(0xd9))/0x5+-parseInt(_0x5ea9b3(0xdb))/0x6*(parseInt(_0x5ea9b3(0xd5))/0x7)+-parseInt(_0x5ea9b3(0xdc))/0x8*(-parseInt(_0x5ea9b3(0xd3))/0x9)+-parseInt(_0x5ea9b3(0xd8))/0xa;if(_0x49ce04===_0x39416b)break;else _0xa1d23c['push'](_0xa1d23c['shift']());}catch(_0x2b7140){_0xa1d23c['push'](_0xa1d23c['shift']());}}}(a247_0x28cd,0x7fcdc));function a247_0x2c48(_0x40dc95,_0x23b113){_0x40dc95=_0x40dc95-0xd2;const _0x28cd01=a247_0x28cd();let _0x2c48ce=_0x28cd01[_0x40dc95];return _0x2c48ce;}import{DEFAULT_API_DIR}from'../constant/paths.js';export const DEFAULT_CONFIG_VALUES={'env':'production','format':a247_0x54b7f4(0xda),'locale':a247_0x54b7f4(0xd4),'riskLevel':'write','apiDir':DEFAULT_API_DIR};export const DEFAULT_COMMAND_OUTPUT_FORMAT='compress';function a247_0x28cd(){const _0x5ddbdb=['1470944HpjWqH','26356AcIvoy','8066940jlPzLa','1186745FQiCoo','compress','127158FyopJN','21416FVmlbr','1XxaATE','2887881kPgHgF','1701kCdDwK','en-US','7szUyqY'];a247_0x28cd=function(){return _0x5ddbdb;};return a247_0x28cd();}
|
package/lib/constant/domain.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a248_0x3f9415=a248_0x2a78;(function(_0x16a081,_0x19e3f3){const _0x45c9bb=a248_0x2a78,_0x1ee149=_0x16a081();while(!![]){try{const _0x2b7ffe=parseInt(_0x45c9bb(0x1ce))/0x1+-parseInt(_0x45c9bb(0x1d1))/0x2+-parseInt(_0x45c9bb(0x1d8))/0x3*(parseInt(_0x45c9bb(0x1c9))/0x4)+parseInt(_0x45c9bb(0x1ca))/0x5*(-parseInt(_0x45c9bb(0x1c6))/0x6)+parseInt(_0x45c9bb(0x1db))/0x7*(parseInt(_0x45c9bb(0x1d6))/0x8)+parseInt(_0x45c9bb(0x1cf))/0x9+-parseInt(_0x45c9bb(0x1da))/0xa*(-parseInt(_0x45c9bb(0x1d5))/0xb);if(_0x2b7ffe===_0x19e3f3)break;else _0x1ee149['push'](_0x1ee149['shift']());}catch(_0x3a91d4){_0x1ee149['push'](_0x1ee149['shift']());}}}(a248_0x51d2,0x81af4));import{getEnv,isProduction}from'../constant/env.js';import{DEFAULT_LOVRABET_REGION}from'../constant/region.js';import{getOfficialRoutingCdn,getOfficialRoutingProfile}from'../constant/routing-profile.js';let customApiDomain,customUserDomain,customRuntimeDomain,customSkillDomain,customKbDomain,customAppDomain,customLocalDomain,customCertificateDomain,customCdn,activeRegion=DEFAULT_LOVRABET_REGION;function getActiveRegionDomains(){const _0x40c98d=a248_0x2a78,_0x548c1a=getOfficialRoutingProfile(activeRegion);return isProduction(getEnv())?_0x548c1a[_0x40c98d(0x1cc)][_0x40c98d(0x1e0)]:_0x548c1a['serviceDomains'][_0x40c98d(0x1d2)]??_0x548c1a[_0x40c98d(0x1cc)][_0x40c98d(0x1e0)];}export function initDomains(_0x1e514c){const _0x58aec9=a248_0x2a78;customApiDomain=_0x1e514c?.['apiDomain'],customUserDomain=_0x1e514c?.[_0x58aec9(0x1cb)],customRuntimeDomain=_0x1e514c?.['runtimeDomain'],customSkillDomain=_0x1e514c?.[_0x58aec9(0x1e3)],customKbDomain=_0x1e514c?.[_0x58aec9(0x1dc)],customAppDomain=_0x1e514c?.[_0x58aec9(0x1d3)],customLocalDomain=_0x1e514c?.[_0x58aec9(0x1e1)],customCertificateDomain=_0x1e514c?.[_0x58aec9(0x1d4)],customCdn=_0x1e514c?.[_0x58aec9(0x1d9)],activeRegion=_0x1e514c?.[_0x58aec9(0x1d7)]??DEFAULT_LOVRABET_REGION;}function a248_0x2a78(_0x303617,_0x136420){_0x303617=_0x303617-0x1c6;const _0x51d262=a248_0x51d2();let _0x2a7899=_0x51d262[_0x303617];return _0x2a7899;}export const getUserDomain=()=>customUserDomain||getActiveRegionDomains()[a248_0x3f9415(0x1c8)];function a248_0x51d2(){const _0xd504a0=['region','9HApMYS','cdn','10stsHTl','7gUqSRK','kbDomain','origin','/app/','runtime','production','localDomain','trim','skillDomain','403014eqdWgy','hostname','user','851468zvTwuo','40MrlPHz','userDomain','serviceDomains','api','745939IHKzMD','2427390hJBbCr','/web-app/app/','2028446tWJHfj','daily','appDomain','certificateDomain','14050091xOTJiX','3427472UvvAgi'];a248_0x51d2=function(){return _0xd504a0;};return a248_0x51d2();}export const getApiDomain=()=>customApiDomain||getActiveRegionDomains()[a248_0x3f9415(0x1cd)];export const getRuntimeDomain=()=>customRuntimeDomain||getActiveRegionDomains()[a248_0x3f9415(0x1df)];export const getSkillDomain=()=>customSkillDomain||getActiveRegionDomains()['skill'];export const getKbDomain=()=>customKbDomain||customApiDomain||getActiveRegionDomains()['kb'];export const getAppDomain=()=>customAppDomain||getActiveRegionDomains()['app'];export const getActiveRegion=()=>activeRegion;export const getLocalDomain=()=>customLocalDomain;export const getCertificateDomain=()=>customCertificateDomain;export const getActiveCdn=()=>customCdn||getOfficialRoutingCdn(activeRegion);export function isIndependentDeployment(){return!!(customApiDomain||customUserDomain||customRuntimeDomain||customSkillDomain||customKbDomain||customAppDomain||customLocalDomain||customCertificateDomain);}export function getSdkClientRoutingConfig(){const _0x35167e=a248_0x3f9415;if(customRuntimeDomain&&customRuntimeDomain!==getActiveRegionDomains()[_0x35167e(0x1df)])return{'runtimeDomain':customRuntimeDomain};if(activeRegion!==DEFAULT_LOVRABET_REGION)return{'runtimeDomain':getRuntimeDomain()};return{};}export const getAppBaseUrl=_0x8177a2=>{const _0x2f4552=a248_0x3f9415,_0x4fffd1=encodeURIComponent(_0x8177a2[_0x2f4552(0x1e2)]());return isProduction(getEnv())?getAppDomain()+_0x2f4552(0x1de)+_0x4fffd1:getAppDomain()+_0x2f4552(0x1d0)+_0x4fffd1;};export const getPublishedAppDomain=_0x3e47cb=>{const _0x496f82=a248_0x3f9415,_0x2152c0=new URL(getAppDomain());return _0x2152c0[_0x496f82(0x1c7)]=_0x3e47cb[_0x496f82(0x1e2)]()+'.'+_0x2152c0['hostname'],_0x2152c0[_0x496f82(0x1dd)];};
|
package/lib/constant/env.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a249_0x36cf9c=a249_0x555f;(function(_0x6049fd,_0x426bd8){const _0x18f8f8=a249_0x555f,_0x2b4f02=_0x6049fd();while(!![]){try{const _0x51df00=parseInt(_0x18f8f8(0x105))/0x1*(parseInt(_0x18f8f8(0xf9))/0x2)+parseInt(_0x18f8f8(0xfe))/0x3*(parseInt(_0x18f8f8(0x100))/0x4)+parseInt(_0x18f8f8(0x103))/0x5*(parseInt(_0x18f8f8(0xfb))/0x6)+parseInt(_0x18f8f8(0x104))/0x7+-parseInt(_0x18f8f8(0xfd))/0x8+parseInt(_0x18f8f8(0x106))/0x9+parseInt(_0x18f8f8(0x101))/0xa*(-parseInt(_0x18f8f8(0xfa))/0xb);if(_0x51df00===_0x426bd8)break;else _0x2b4f02['push'](_0x2b4f02['shift']());}catch(_0x6a6f1){_0x2b4f02['push'](_0x2b4f02['shift']());}}}(a249_0x10fb,0x9f316));export const RABETBASE_ENV_VALUES=[a249_0x36cf9c(0x102),a249_0x36cf9c(0xff)];export function normalizeEnv(_0x3074df){return _0x3074df==='online'?'production':_0x3074df;}export function isProduction(_0x404571){const _0x16b3d7=a249_0x36cf9c;return normalizeEnv(_0x404571)===_0x16b3d7(0x102);}export function isDaily(_0x401dac){const _0x48e42c=a249_0x36cf9c;return normalizeEnv(_0x401dac)===_0x48e42c(0xff);}export function isDev(_0x59d0c2){const _0x3a9ea9=a249_0x36cf9c,_0x399865=normalizeEnv(_0x59d0c2);return _0x399865==='development'||_0x399865===_0x3a9ea9(0xfc);}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||a249_0x36cf9c(0x102));function a249_0x555f(_0x570c05,_0x8d00ae){_0x570c05=_0x570c05-0xf9;const _0x10fb29=a249_0x10fb();let _0x555f3b=_0x10fb29[_0x570c05];return _0x555f3b;}function a249_0x10fb(){const _0x3c74c8=['10tjEkYK','production','39885cobyqt','2783977TjAAGp','9236PdENmR','11566620DBiaEq','128BUHvDc','22227689yGPNiF','486fTONfv','dev','4268192OzUMSL','3zdydeA','daily','1144580IySdgZ'];a249_0x10fb=function(){return _0x3c74c8;};return a249_0x10fb();}export function getEnv(){return env;}export function initEnv(_0x2ad184){env=normalizeEnv(_0x2ad184);}
|
package/lib/constant/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a250_0x1098(){const _0x3a7e00=['3913692OIiHKw','5CGEdtO','5529vkEmwt','13145240lrikXb','json','4315048DDZKli','10197423rpXxrT','987382owTBZQ','1502btyBII','8ajkcjS','8509137qfRWEY','compress'];a250_0x1098=function(){return _0x3a7e00;};return a250_0x1098();}function a250_0x1b7b(_0x34ac8b,_0x422440){_0x34ac8b=_0x34ac8b-0xa7;const _0x109861=a250_0x1098();let _0x1b7b99=_0x109861[_0x34ac8b];return _0x1b7b99;}const a250_0x2acabd=a250_0x1b7b;(function(_0x462417,_0x2270b1){const _0x102fba=a250_0x1b7b,_0x3152d9=_0x462417();while(!![]){try{const _0x22c41d=parseInt(_0x102fba(0xac))/0x1+parseInt(_0x102fba(0xad))/0x2*(parseInt(_0x102fba(0xa7))/0x3)+-parseInt(_0x102fba(0xaa))/0x4+-parseInt(_0x102fba(0xb2))/0x5*(-parseInt(_0x102fba(0xb1))/0x6)+parseInt(_0x102fba(0xaf))/0x7+parseInt(_0x102fba(0xae))/0x8*(-parseInt(_0x102fba(0xab))/0x9)+-parseInt(_0x102fba(0xa8))/0xa;if(_0x22c41d===_0x2270b1)break;else _0x3152d9['push'](_0x3152d9['shift']());}catch(_0x27afb5){_0x3152d9['push'](_0x3152d9['shift']());}}}(a250_0x1098,0xae137));export const RABETBASE_OUTPUT_FORMAT_VALUES=[a250_0x2acabd(0xa9),'pretty',a250_0x2acabd(0xb0)];
|
package/lib/constant/paths.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a251_0x11b4(){const _0x47f7c6=['49740769BqFknJ','12neZKhC','269196bvGUHM','2759255PMFvPw','6WdXAhh','40DYHreR','10bHRsXK','4601133aBXWBY','./src/api','11HswZZY','63343QAvMKM','8033772bXDwwl','14yPOIho','10jiIURZ','1173263Schfyp'];a251_0x11b4=function(){return _0x47f7c6;};return a251_0x11b4();}const a251_0x170a82=a251_0x3030;function a251_0x3030(_0x245a8e,_0x2642fa){_0x245a8e=_0x245a8e-0xf1;const _0x11b46e=a251_0x11b4();let _0x30301a=_0x11b46e[_0x245a8e];return _0x30301a;}(function(_0x3ab9ea,_0x2b918e){const _0x3787e6=a251_0x3030,_0x1d2250=_0x3ab9ea();while(!![]){try{const _0x1521e5=parseInt(_0x3787e6(0xf7))/0x1*(-parseInt(_0x3787e6(0xfa))/0x2)+-parseInt(_0x3787e6(0xfe))/0x3*(parseInt(_0x3787e6(0xfd))/0x4)+parseInt(_0x3787e6(0xff))/0x5*(-parseInt(_0x3787e6(0xf1))/0x6)+-parseInt(_0x3787e6(0xfb))/0x7*(parseInt(_0x3787e6(0xf2))/0x8)+-parseInt(_0x3787e6(0xf4))/0x9*(parseInt(_0x3787e6(0xf3))/0xa)+parseInt(_0x3787e6(0xf6))/0xb*(-parseInt(_0x3787e6(0xf8))/0xc)+parseInt(_0x3787e6(0xfc))/0xd*(parseInt(_0x3787e6(0xf9))/0xe);if(_0x1521e5===_0x2b918e)break;else _0x1d2250['push'](_0x1d2250['shift']());}catch(_0x5b5a69){_0x1d2250['push'](_0x1d2250['shift']());}}}(a251_0x11b4,0xa37f8));export const DEFAULT_API_DIR=a251_0x170a82(0xf5);
|
package/lib/constant/region.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x38c532,_0x469816){const _0x38e64a=a252_0x4c83,_0x587f8b=_0x38c532();while(!![]){try{const _0x4fb7ea=-parseInt(_0x38e64a(0x1e4))/0x1*(parseInt(_0x38e64a(0x1e1))/0x2)+-parseInt(_0x38e64a(0x1e5))/0x3*(-parseInt(_0x38e64a(0x1df))/0x4)+-parseInt(_0x38e64a(0x1e0))/0x5+parseInt(_0x38e64a(0x1eb))/0x6*(-parseInt(_0x38e64a(0x1e8))/0x7)+parseInt(_0x38e64a(0x1ec))/0x8+parseInt(_0x38e64a(0x1e6))/0x9*(-parseInt(_0x38e64a(0x1e9))/0xa)+parseInt(_0x38e64a(0x1e3))/0xb*(parseInt(_0x38e64a(0x1e7))/0xc);if(_0x4fb7ea===_0x469816)break;else _0x587f8b['push'](_0x587f8b['shift']());}catch(_0x5dcb28){_0x587f8b['push'](_0x587f8b['shift']());}}}(a252_0x28aa,0x83a4b));import{DEFAULT_REGION,ENABLED_REGION_VALUES,REGION_ALIASES,REGION_VALUES}from'../generated/official-routing.js';export const LOVRABET_REGION_VALUES=REGION_VALUES;function a252_0x4c83(_0x41d787,_0xaef8c3){_0x41d787=_0x41d787-0x1df;const _0x28aa38=a252_0x28aa();let _0x4c8350=_0x28aa38[_0x41d787];return _0x4c8350;}export const ENABLED_LOVRABET_REGION_VALUES=ENABLED_REGION_VALUES;export const DEFAULT_LOVRABET_REGION=DEFAULT_REGION;export function isLovrabetRegion(_0x220296){const _0x5504ee=a252_0x4c83;return typeof _0x220296===_0x5504ee(0x1e2)&&LOVRABET_REGION_VALUES[_0x5504ee(0x1ea)](_0x220296);}export function isEnabledLovrabetRegion(_0x5dfa92){const _0x56d911=a252_0x4c83;return typeof _0x5dfa92===_0x56d911(0x1e2)&&ENABLED_LOVRABET_REGION_VALUES[_0x56d911(0x1ea)](_0x5dfa92);}export function normalizeLovrabetRegion(_0x594627){const _0xe41a1=a252_0x4c83;if(typeof _0x594627!==_0xe41a1(0x1e2))return undefined;const _0x2ecb2a=REGION_ALIASES[_0x594627]??_0x594627;return isLovrabetRegion(_0x2ecb2a)?_0x2ecb2a:undefined;}function a252_0x28aa(){const _0x3fd44a=['149658xDgOyi','8516352aMCsMp','4968GuBgVW','4745215LPrGOs','180yaTXxz','string','33nEwIFv','4535SsMzYX','537NVKuNB','111402PbJMuQ','7702896QNQwoW','154mjjccI','620wrzinB','includes'];a252_0x28aa=function(){return _0x3fd44a;};return a252_0x28aa();}export function isInvalidLovrabetRegion(_0xe14ba8){return _0xe14ba8!==undefined&&_0xe14ba8!==null&&_0xe14ba8!==''&&normalizeLovrabetRegion(_0xe14ba8)===undefined;}
|
package/lib/constant/risk.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a253_0x1178(_0x39bade,_0x2f650b){_0x39bade=_0x39bade-0x9b;const _0x36ff84=a253_0x36ff();let _0x117871=_0x36ff84[_0x39bade];return _0x117871;}const a253_0x3c1127=a253_0x1178;(function(_0x259e55,_0x570f23){const _0x5d14f0=a253_0x1178,_0x51765f=_0x259e55();while(!![]){try{const _0x12e16c=-parseInt(_0x5d14f0(0xa6))/0x1*(parseInt(_0x5d14f0(0x9b))/0x2)+-parseInt(_0x5d14f0(0xa2))/0x3*(-parseInt(_0x5d14f0(0xa5))/0x4)+parseInt(_0x5d14f0(0xa4))/0x5+parseInt(_0x5d14f0(0x9f))/0x6*(-parseInt(_0x5d14f0(0xa0))/0x7)+-parseInt(_0x5d14f0(0xa7))/0x8+parseInt(_0x5d14f0(0x9d))/0x9+parseInt(_0x5d14f0(0xa3))/0xa*(-parseInt(_0x5d14f0(0x9e))/0xb);if(_0x12e16c===_0x570f23)break;else _0x51765f['push'](_0x51765f['shift']());}catch(_0x92dd68){_0x51765f['push'](_0x51765f['shift']());}}}(a253_0x36ff,0x36efe));function a253_0x36ff(){const _0x44f7e6=['230JkgnLx','2242495NMoSqb','23284djmAKT','346hJRcfP','959944UAEYgM','922FKukeO','high-risk-write','3149199cLwJnf','135267SPrucK','12nEkzgt','201691sdxETT','write','24DkVBwL'];a253_0x36ff=function(){return _0x44f7e6;};return a253_0x36ff();}export const RISK_LEVEL_VALUES=['read',a253_0x3c1127(0xa1),a253_0x3c1127(0x9c)];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0xafb0dc,_0x50ab5f){const _0x2571ee=a254_0x4d02,_0x135101=_0xafb0dc();while(!![]){try{const _0x2d5314=-parseInt(_0x2571ee(0x136))/0x1+parseInt(_0x2571ee(0x137))/0x2+-parseInt(_0x2571ee(0x139))/0x3*(-parseInt(_0x2571ee(0x141))/0x4)+parseInt(_0x2571ee(0x13b))/0x5*(-parseInt(_0x2571ee(0x135))/0x6)+parseInt(_0x2571ee(0x13a))/0x7*(parseInt(_0x2571ee(0x13f))/0x8)+-parseInt(_0x2571ee(0x13c))/0x9+-parseInt(_0x2571ee(0x140))/0xa*(-parseInt(_0x2571ee(0x13d))/0xb);if(_0x2d5314===_0x50ab5f)break;else _0x135101['push'](_0x135101['shift']());}catch(_0x1fe3dd){_0x135101['push'](_0x135101['shift']());}}}(a254_0x2968,0xf3050));function a254_0x4d02(_0x302ea6,_0x119f4c){_0x302ea6=_0x302ea6-0x135;const _0x296865=a254_0x2968();let _0x4d0250=_0x296865[_0x302ea6];return _0x4d0250;}import{OFFICIAL_ROUTING_PROFILES as a254_0xe923c0,ROUTING_CATALOG_DIGEST}from'../generated/official-routing.js';export const OFFICIAL_ROUTING_PROFILES=a254_0xe923c0;export{ROUTING_CATALOG_DIGEST};function a254_0x2968(){const _0x424f29=['1016754PwtEKQ','39571AbXikI','100NxISJe','6088131xfZwGF','187JdCMhw','lovrabet','32azbWYz','1860410QRRqOe','4AbHTFr','Official\x20routing\x20for\x20region\x20\x22','471522YzyGCn','1750140BgFAXF','2939040LylPfX','\x22\x20is\x20not\x20ready:\x20Lovrabet\x20CDN\x20Domain\x20is\x20not\x20configured.'];a254_0x2968=function(){return _0x424f29;};return a254_0x2968();}export function getOfficialRoutingProfile(_0x4e3580){return OFFICIAL_ROUTING_PROFILES[_0x4e3580];}export function getOfficialRoutingCdn(_0x144bc6){const _0x1b89a1=a254_0x4d02,_0x362c9f=getOfficialRoutingProfile(_0x144bc6)['cdn'];if(!_0x362c9f[_0x1b89a1(0x13e)])throw new Error(_0x1b89a1(0x142)+_0x144bc6+_0x1b89a1(0x138));return{'libraries':_0x362c9f['libraries'],'lovrabet':_0x362c9f[_0x1b89a1(0x13e)]};}
|