@lovrabet/rabetbase-cli 2.5.6-beta.1 → 2.5.7-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -1
- package/lib/api/api-doc.js +1 -1
- package/lib/api/api-group.js +1 -1
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.js +1 -1
- package/lib/api/generate-sdk-config-file.js +1 -1
- package/lib/api/legacy-api-file.js +1 -1
- package/lib/api/model-registry-file.js +1 -1
- package/lib/api/model-registry-scaffold.js +1 -1
- package/lib/api/model-source.js +1 -1
- package/lib/auth/auth-server-ui.js +1 -1
- package/lib/auth/auth-server.js +1 -1
- package/lib/auth/constant.js +1 -1
- package/lib/auth/get-cookie.js +1 -1
- package/lib/auth/get-session-user.js +1 -1
- package/lib/auth/is-session-valid.js +1 -1
- package/lib/auth/login-success-html.js +1 -1
- package/lib/auth/logout.js +1 -1
- package/lib/cli-flags.js +1 -1
- package/lib/cli.js +1 -1
- package/lib/commands/api/generate.js +1 -1
- package/lib/commands/api/index.js +1 -1
- package/lib/commands/api/list.js +1 -1
- package/lib/commands/api/pull.js +1 -1
- package/lib/commands/api/shared.js +1 -1
- package/lib/commands/app/detail.js +1 -1
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/members-list.js +1 -1
- package/lib/commands/app/remote-directory.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/delete.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/app-config/list.js +1 -1
- package/lib/commands/app-config/set.js +1 -1
- package/lib/commands/app-config/shared.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/bff/create.js +1 -1
- package/lib/commands/bff/delete.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/bff/list.js +1 -1
- package/lib/commands/bff/logs.js +1 -1
- package/lib/commands/bff/pull.js +1 -1
- package/lib/commands/bff/push.js +1 -1
- package/lib/commands/bff/status.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/cli-update.js +1 -1
- package/lib/commands/codegen/index.js +1 -1
- package/lib/commands/codegen/sdk.js +1 -1
- package/lib/commands/codegen/sql.js +1 -1
- package/lib/commands/common/app-registry.js +1 -1
- package/lib/commands/common/app-selector.js +1 -1
- package/lib/commands/common/async-task.js +1 -1
- package/lib/commands/common/dry-run.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/common/validate.js +1 -1
- package/lib/commands/config/delete.js +1 -1
- package/lib/commands/config/get.js +1 -1
- package/lib/commands/config/index.js +1 -1
- package/lib/commands/config/init.js +1 -1
- package/lib/commands/config/list.js +1 -1
- package/lib/commands/config/set.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/dataset/batch-design.js +1 -1
- package/lib/commands/dataset/business-group-update.js +1 -1
- package/lib/commands/dataset/business-groups.js +1 -1
- package/lib/commands/dataset/capability.js +1 -1
- package/lib/commands/dataset/cross-relation-create.js +1 -1
- package/lib/commands/dataset/cross-relation-delete.js +1 -1
- package/lib/commands/dataset/cross-relation-list.js +1 -1
- package/lib/commands/dataset/cross-relation-shared.js +1 -1
- package/lib/commands/dataset/cross-relation-update.js +1 -1
- package/lib/commands/dataset/delete.js +1 -1
- package/lib/commands/dataset/design-context.d.ts +1 -0
- package/lib/commands/dataset/design-context.js +1 -0
- package/lib/commands/dataset/design-start.d.ts +1 -0
- package/lib/commands/dataset/design-start.js +1 -0
- package/lib/commands/dataset/design-status.d.ts +1 -0
- package/lib/commands/dataset/design-status.js +1 -0
- package/lib/commands/dataset/design-sync-retry.d.ts +1 -0
- package/lib/commands/dataset/design-sync-retry.js +1 -0
- package/lib/commands/dataset/design-sync-status.d.ts +1 -0
- package/lib/commands/dataset/design-sync-status.js +1 -0
- package/lib/commands/dataset/design-validate.d.ts +1 -0
- package/lib/commands/dataset/design-validate.js +1 -0
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/extend-update.js +1 -1
- package/lib/commands/dataset/field-restore.js +1 -1
- package/lib/commands/dataset/field-update.js +1 -1
- package/lib/commands/dataset/generate.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/dataset/relation-audit.js +1 -1
- package/lib/commands/dataset/relation-create.js +1 -1
- package/lib/commands/dataset/relation-delete.js +1 -1
- package/lib/commands/dataset/relation-shared.js +1 -1
- package/lib/commands/dataset/relation-update.js +1 -1
- package/lib/commands/dataset/relations.js +1 -1
- package/lib/commands/dataset/rename.js +1 -1
- package/lib/commands/dataset/restore.js +1 -1
- package/lib/commands/dataset/user-deleted-field-list.js +1 -1
- package/lib/commands/db/analysis-batching.js +1 -1
- package/lib/commands/db/analyze-batch-plan.js +1 -1
- package/lib/commands/db/analyze-cancel.js +1 -1
- package/lib/commands/db/analyze-start.js +1 -1
- package/lib/commands/db/analyze-status.js +1 -1
- package/lib/commands/db/create.js +1 -1
- package/lib/commands/db/cross-db-analysis-shared.js +1 -1
- package/lib/commands/db/cross-db-analyze-latest.js +1 -1
- package/lib/commands/db/cross-db-analyze-start.js +1 -1
- package/lib/commands/db/cross-db-analyze-status.js +1 -1
- package/lib/commands/db/delete.js +1 -1
- package/lib/commands/db/detail.js +1 -1
- package/lib/commands/db/diff-refresh-start.js +1 -1
- package/lib/commands/db/diff-refresh-status.js +1 -1
- package/lib/commands/db/diff.js +1 -1
- package/lib/commands/db/index.js +1 -1
- package/lib/commands/db/list.js +1 -1
- package/lib/commands/db/shared.js +1 -1
- package/lib/commands/db/table-diff-shared.js +1 -1
- package/lib/commands/db/tables.js +1 -1
- package/lib/commands/db/test.js +1 -1
- package/lib/commands/db/update.js +1 -1
- package/lib/commands/deployment/index.js +1 -1
- package/lib/commands/deployment/sync-all.js +1 -1
- package/lib/commands/deployment/sync-jobs.js +1 -1
- package/lib/commands/deployment/sync-status.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/flow/create.js +1 -1
- package/lib/commands/flow/detail.js +1 -1
- package/lib/commands/flow/index.js +1 -1
- package/lib/commands/flow/list.js +1 -1
- package/lib/commands/flow/page-list.d.ts +2 -0
- package/lib/commands/flow/page-list.js +1 -0
- package/lib/commands/flow/publish.js +1 -1
- package/lib/commands/flow/runtime-resources-shared.d.ts +1 -1
- package/lib/commands/flow/runtime-resources-shared.js +1 -1
- package/lib/commands/flow/runtime-role-list.js +1 -1
- package/lib/commands/flow/runtime-role-user-list.js +1 -1
- package/lib/commands/flow/runtime-user-search.js +1 -1
- package/lib/commands/flow/shared.d.ts +6 -2
- package/lib/commands/flow/shared.js +1 -1
- package/lib/commands/flow/update.js +1 -1
- package/lib/commands/flow/validate.js +1 -1
- package/lib/commands/instant-api-policy/current.js +1 -1
- package/lib/commands/instant-api-policy/index.js +1 -1
- package/lib/commands/instant-api-policy/init.js +1 -1
- package/lib/commands/instant-api-policy/publish.js +1 -1
- package/lib/commands/instant-api-policy/pull.js +1 -1
- package/lib/commands/instant-api-policy/revision.js +1 -1
- package/lib/commands/instant-api-policy/revisions.js +1 -1
- package/lib/commands/instant-api-policy/rollback.js +1 -1
- package/lib/commands/instant-api-policy/shared.js +1 -1
- package/lib/commands/instant-api-policy/validate.js +1 -1
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/nudge.js +1 -1
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/issue/shared.js +1 -1
- package/lib/commands/kb/create.js +1 -1
- package/lib/commands/kb/delete.js +1 -1
- package/lib/commands/kb/detail.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/kb/list.js +1 -1
- package/lib/commands/kb/search.js +1 -1
- package/lib/commands/kb/shared.js +1 -1
- package/lib/commands/kb/update.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/asset-update.js +1 -1
- package/lib/commands/menu/delete.js +1 -1
- package/lib/commands/menu/external-link-create.js +1 -1
- package/lib/commands/menu/external-link-update.js +1 -1
- package/lib/commands/menu/group-create.js +1 -1
- package/lib/commands/menu/group-update.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/list.js +1 -1
- package/lib/commands/menu/move.js +1 -1
- package/lib/commands/menu/regroup-start.js +1 -1
- package/lib/commands/menu/rename.js +1 -1
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/delete-plan.js +1 -1
- package/lib/commands/menu/shared/facts.js +1 -1
- package/lib/commands/menu/shared/index.js +1 -1
- package/lib/commands/menu/shared/inquirer.js +1 -1
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.js +1 -1
- package/lib/commands/menu/shared/mutations.js +1 -1
- package/lib/commands/menu/shared/path.js +1 -1
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/subapp-assets.js +1 -1
- package/lib/commands/menu/shared/sync-core.js +1 -1
- package/lib/commands/menu/shared/update-core.js +1 -1
- package/lib/commands/menu/shared/valid-url.js +1 -1
- package/lib/commands/menu/subapp-assets-status.js +1 -1
- package/lib/commands/menu/subapp-assets-update.js +1 -1
- package/lib/commands/menu/sync.js +1 -1
- package/lib/commands/menu/visibility-update.js +1 -1
- package/lib/commands/notification/config-create.js +1 -1
- package/lib/commands/notification/config-delete.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/config-update.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/notification/shared.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/page/create.js +1 -1
- package/lib/commands/page/custom/detail.js +1 -1
- package/lib/commands/page/custom/list.js +1 -1
- package/lib/commands/page/custom/publish.js +1 -1
- package/lib/commands/page/custom/shared.js +1 -1
- package/lib/commands/page/custom/syntax.js +1 -1
- package/lib/commands/page/custom/update.js +1 -1
- package/lib/commands/page/data-list-status.js +1 -1
- package/lib/commands/page/generate-start.js +1 -1
- package/lib/commands/page/generate-status.js +1 -1
- package/lib/commands/page/index.js +1 -1
- package/lib/commands/page/pull.js +1 -1
- package/lib/commands/page/push.js +1 -1
- package/lib/commands/page/relation-audit.js +1 -1
- package/lib/commands/page/restore.js +1 -1
- package/lib/commands/page/shared.js +1 -1
- package/lib/commands/page/sync.js +1 -1
- package/lib/commands/project/api-architecture-upgrade.js +1 -1
- package/lib/commands/project/create/enhanced-guided-create.js +1 -1
- package/lib/commands/project/create/format-elapsed.js +1 -1
- package/lib/commands/project/create/main.js +1 -1
- package/lib/commands/project/create/materialize-project-template.js +1 -1
- package/lib/commands/project/create/project-name.js +1 -1
- package/lib/commands/project/create/project-template-archive.js +1 -1
- package/lib/commands/project/create/project-template-path.js +1 -1
- package/lib/commands/project/create/use-copy-project-template.js +1 -1
- package/lib/commands/project/create/use-format-code.js +1 -1
- package/lib/commands/project/create/use-install-dependencies.js +1 -1
- package/lib/commands/project/domain-routing-sync.js +1 -1
- package/lib/commands/project/index.js +1 -1
- package/lib/commands/project/upgrade.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/role/user-resolve.js +1 -1
- package/lib/commands/rule/get.js +1 -1
- package/lib/commands/rule/index.js +1 -1
- package/lib/commands/rule/list.js +1 -1
- package/lib/commands/rule/set.js +1 -1
- package/lib/commands/rule/shared.js +1 -1
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/sql/create.js +1 -1
- package/lib/commands/sql/delete.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/sql/list.js +1 -1
- package/lib/commands/sql/pull.js +1 -1
- package/lib/commands/sql/push.js +1 -1
- package/lib/commands/sql/shared.js +1 -1
- package/lib/commands/sql/status.js +1 -1
- package/lib/commands/sql/validate.js +1 -1
- package/lib/commands/task/index.js +1 -1
- package/lib/commands/task/status.js +1 -1
- package/lib/commands/tenant/index.js +1 -1
- package/lib/commands/tenant/members-list.js +1 -1
- package/lib/commands/tenant/shared.js +1 -1
- package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
- package/lib/commands/user-account/feishu-bind.js +1 -1
- package/lib/commands/user-account/index.js +1 -1
- package/lib/commands/workspace/add.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/commands/workspace/remove.js +1 -1
- package/lib/config/domain-config.js +1 -1
- package/lib/config/project-domain-routing.js +1 -1
- package/lib/config/region-config.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/cdn.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/paths.js +1 -1
- package/lib/constant/region.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/routing-profile.js +1 -1
- package/lib/context/app-resolver.js +1 -1
- package/lib/context/auth-resolver.js +1 -1
- package/lib/context/config-loader.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.d.ts +37 -6
- package/lib/core/api-client.js +1 -1
- package/lib/core/bff/config.js +1 -1
- package/lib/core/bff/file-system.js +1 -1
- package/lib/core/bff/hash.js +1 -1
- package/lib/core/bff/hook-directory.js +1 -1
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/cross-db-analysis.js +1 -1
- package/lib/core/cross-db-relation.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/flow-config.d.ts +12 -0
- package/lib/core/flow-config.js +1 -1
- 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.js +1 -1
- package/lib/core/sql-index-auditor.js +1 -1
- package/lib/core/sql-sync/config.js +1 -1
- package/lib/core/sql-sync/file-system.js +1 -1
- package/lib/core/sql-sync/hash.js +1 -1
- package/lib/core/sql-sync/lock.js +1 -1
- package/lib/core/sql-sync/utils.js +1 -1
- package/lib/core/sql-validator.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/error-output.js +1 -1
- package/lib/framework/explicit-yes.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-alias.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/supported-flags.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/generated/official-routing.js +1 -1
- package/lib/generated/routing-contract.js +1 -1
- package/lib/help.js +1 -1
- package/lib/postinstall.js +1 -1
- package/lib/runtime/confirmation.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/services/dataset-design/checkpoint.d.ts +17 -0
- package/lib/services/dataset-design/checkpoint.js +1 -0
- package/lib/services/dataset-design/commands.d.ts +6 -0
- package/lib/services/dataset-design/commands.js +1 -0
- package/lib/services/dataset-design/contract.d.ts +7 -0
- package/lib/services/dataset-design/contract.js +1 -0
- package/lib/skills/builtin-skill.js +1 -1
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/skill-presence.js +1 -1
- package/lib/telemetry/cli-command-trace.js +1 -1
- package/lib/telemetry/cli-help-trace.js +1 -1
- package/lib/telemetry/ensure-cli-otel-config.js +1 -1
- package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
- package/lib/telemetry/send-cli-trace-log.js +1 -1
- package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
- package/lib/utils/ai_config.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cdn-config.js +1 -1
- package/lib/utils/check-sdk-version.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/config.js +1 -1
- package/lib/utils/entity-with-id.js +1 -1
- package/lib/utils/file-utils.js +1 -1
- package/lib/utils/guides-cdn.js +1 -1
- package/lib/utils/http-client.js +1 -1
- package/lib/utils/is-non-interactive.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/sleep.js +1 -1
- package/lib/utils/template-replacer.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/with-active-cookie.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +3 -2
- package/skills/rabetbase/SKILL.md +11 -7
- package/skills/rabetbase/guides/approval-flow-development-workflow.md +52 -13
- package/skills/rabetbase/guides/backend-function.md +26 -4
- package/skills/rabetbase/guides/bff-creation-workflow.md +9 -0
- package/skills/rabetbase/guides/cross-database-bff.md +1 -0
- package/skills/rabetbase/guides/custom-page-flow-sdk.md +2 -0
- package/skills/rabetbase/guides/data-api-guidelines.md +2 -0
- package/skills/rabetbase/guides/flow-config-examples.md +75 -0
- package/skills/rabetbase/guides/form-flow-start.md +61 -0
- package/skills/rabetbase/guides/typescript-sdk.md +1 -1
- package/skills/rabetbase/knowledge/approval-flow/config-json-schema.md +18 -4
- package/skills/rabetbase/references/rabetbase-codegen-sdk.md +5 -4
- package/skills/rabetbase/references/rabetbase-dataset-design.md +25 -0
- package/skills/rabetbase/references/rabetbase-dataset-generate.md +2 -255
- package/skills/rabetbase/references/rabetbase-flow-commands.md +21 -2
- package/skills/rabetbase/references/rabetbase-flow-resources.md +21 -3
- package/skills/rabetbase/references/rabetbase-flow-runtime-boundary.md +6 -2
- package/skills/rabetbase/references/rabetbase-kb.md +4 -1
- package/skills/rabetbase-dataset-generation/SKILL.md +45 -0
- package/skills/rabetbase-dataset-generation/references/workflow.md +60 -0
- package/skills/rabetbase-page-generation/SKILL.md +1 -1
- package/skills/rabetbase.manifest.json +6 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a266_0x2f72(){const _0x344d9a=['add','350128NFCGVg','9364537kuxFIf','workspace\x20add','6058564vjfapq','198141SBlPHt','workspace','9007356aQbMoq','1rgYehp','name','8040435fWUZMA','387smAnNm','Register\x20an\x20app\x20profile\x20in\x20the\x20current\x20workspace\x20(or\x20--global)','1452602jAHBmd'];a266_0x2f72=function(){return _0x344d9a;};return a266_0x2f72();}const a266_0x422199=a266_0xa143;function a266_0xa143(_0x13e04f,_0x11886){_0x13e04f=_0x13e04f-0x152;const _0x2f720c=a266_0x2f72();let _0xa1438c=_0x2f720c[_0x13e04f];return _0xa1438c;}(function(_0x31f282,_0x1afaad){const _0x18a09b=a266_0xa143,_0x4f2bdb=_0x31f282();while(!![]){try{const _0x3a0a6d=-parseInt(_0x18a09b(0x15b))/0x1*(parseInt(_0x18a09b(0x152))/0x2)+-parseInt(_0x18a09b(0x158))/0x3+-parseInt(_0x18a09b(0x157))/0x4+-parseInt(_0x18a09b(0x15d))/0x5+parseInt(_0x18a09b(0x15a))/0x6+parseInt(_0x18a09b(0x155))/0x7+parseInt(_0x18a09b(0x154))/0x8*(parseInt(_0x18a09b(0x15e))/0x9);if(_0x3a0a6d===_0x1afaad)break;else _0x4f2bdb['push'](_0x4f2bdb['shift']());}catch(_0x4a8b26){_0x4f2bdb['push'](_0x4f2bdb['shift']());}}}(a266_0x2f72,0xc4bf7));import{buildAppAddFlags,runAppAdd,validateAppName}from'../../commands/common/app-registry.js';export const workspaceAddDefinition={'service':a266_0x422199(0x159),'command':a266_0x422199(0x153),'description':a266_0x422199(0x15f),'risk':'write','requiresAuth':![],'requiresAppCode':![],'args':[{'name':a266_0x422199(0x15c),'description':'App\x20profile\x20name','required':!![]}],'flags':buildAppAddFlags(),'validate':_0x36c73b=>validateAppName(_0x36c73b,a266_0x422199(0x156)),'execute':_0x525155=>runAppAdd(_0x525155,a266_0x422199(0x156))};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a267_0x493214=a267_0x3b1f;(function(_0x101332,_0x145eb3){const _0x4fd584=a267_0x3b1f,_0x2b38c2=_0x101332();while(!![]){try{const _0x404930=-parseInt(_0x4fd584(0x1a5))/0x1*(-parseInt(_0x4fd584(0x1a9))/0x2)+parseInt(_0x4fd584(0x187))/0x3*(parseInt(_0x4fd584(0x19f))/0x4)+parseInt(_0x4fd584(0x192))/0x5+parseInt(_0x4fd584(0x172))/0x6*(-parseInt(_0x4fd584(0x19b))/0x7)+parseInt(_0x4fd584(0x17f))/0x8+parseInt(_0x4fd584(0x181))/0x9+-parseInt(_0x4fd584(0x175))/0xa;if(_0x404930===_0x145eb3)break;else _0x2b38c2['push'](_0x2b38c2['shift']());}catch(_0x3a6907){_0x2b38c2['push'](_0x2b38c2['shift']());}}}(a267_0x519b,0x64f08));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=['appcode',a267_0x493214(0x185),a267_0x493214(0x18b),a267_0x493214(0x1a6),a267_0x493214(0x17a),a267_0x493214(0x189),a267_0x493214(0x19d),a267_0x493214(0x178),'locale'],workspaceFlags=[{'name':'app','type':a267_0x493214(0x19a),'description':a267_0x493214(0x1a2)},{'name':'appcode','type':a267_0x493214(0x19a),'description':a267_0x493214(0x180)},{'name':a267_0x493214(0x185),'type':a267_0x493214(0x19a),'description':a267_0x493214(0x195)},{'name':'region','type':'string','description':a267_0x493214(0x184),'enum':[...ENABLED_LOVRABET_REGION_VALUES]},{'name':a267_0x493214(0x1a6),'type':a267_0x493214(0x19a),'description':'Target\x20environment','enum':[...RABETBASE_ENV_VALUES]},{'name':a267_0x493214(0x17a),'type':a267_0x493214(0x19a),'description':a267_0x493214(0x193)},{'name':'defaultFormat','type':'string','description':a267_0x493214(0x17c),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':a267_0x493214(0x19d),'type':a267_0x493214(0x1a1),'description':'Default\x20page\x20size\x20for\x20this\x20workspace\x20app\x20profile'},{'name':'riskLevel','type':'string','description':a267_0x493214(0x186),'enum':[...RISK_LEVEL_VALUES]},{'name':a267_0x493214(0x18f),'type':a267_0x493214(0x19a),'description':a267_0x493214(0x1aa)}];function isRecord(_0x1be2cd){const _0x39bd8f=a267_0x493214;return!!_0x1be2cd&&typeof _0x1be2cd===_0x39bd8f(0x170)&&!Array[_0x39bd8f(0x199)](_0x1be2cd);}function a267_0x3b1f(_0x3a7f12,_0x1fbffb){_0x3a7f12=_0x3a7f12-0x16d;const _0x519bb3=a267_0x519b();let _0x3b1f83=_0x519bb3[_0x3a7f12];return _0x3b1f83;}function assertValidAppcode(_0x5859cf){const _0x56a84a=a267_0x493214,{valid:_0x1f0175,message:_0x196f6f}=validateAppcode(_0x5859cf);if(!_0x1f0175)throw CliErrors[_0x56a84a(0x182)](_0x56a84a(0x188)+_0x5859cf,_0x196f6f);}function sanitizeProfile(_0x728f0e){if(!isRecord(_0x728f0e))return{};const _0x41abf9={};for(const _0x85290e of SAFE_PROFILE_KEYS){if(_0x728f0e[_0x85290e]!==undefined)_0x41abf9[_0x85290e]=_0x728f0e[_0x85290e];}return _0x41abf9;}function cloneProfile(_0x243bdf){return isRecord(_0x243bdf)?{..._0x243bdf}:{};}function collectWorkspaceProfileOverrides(_0x5a1197){const _0x461c77=a267_0x493214,_0x290251={},_0xbe68b5=_0x5a1197[_0x461c77(0x194)](_0x461c77(0x185)),_0x40cc5d=_0x5a1197[_0x461c77(0x194)](_0x461c77(0x18b)),_0x43ca29=_0x5a1197[_0x461c77(0x194)](_0x461c77(0x1a6)),_0x32b6bb=_0x5a1197['str']('apiDir'),_0x33b8d8=_0x5a1197[_0x461c77(0x194)](_0x461c77(0x176)),_0x287891=_0x5a1197['flag']('pageSize'),_0x5c1f14=_0x5a1197[_0x461c77(0x194)](_0x461c77(0x178)),_0x5e3279=_0x5a1197[_0x461c77(0x194)](_0x461c77(0x18f));if(_0xbe68b5)_0x290251[_0x461c77(0x185)]=_0xbe68b5;if(_0x40cc5d)_0x290251['region']=_0x40cc5d;if(_0x43ca29)_0x290251[_0x461c77(0x1a6)]=_0x43ca29;if(_0x32b6bb)_0x290251[_0x461c77(0x17a)]=_0x32b6bb;if(_0x33b8d8)_0x290251[_0x461c77(0x189)]=_0x33b8d8;if(_0x287891!==undefined&&_0x287891!=='')_0x290251[_0x461c77(0x19d)]=Number(_0x287891);if(_0x5c1f14)_0x290251['riskLevel']=_0x5c1f14;if(_0x5e3279)_0x290251[_0x461c77(0x18f)]=_0x5e3279;return _0x290251;}async function validateWorkspaceArgs(_0x3cae62){const _0x503cbc=a267_0x493214,_0xd5573d=_0x3cae62['str']('app')[_0x503cbc(0x196)](),_0x2841ec=_0x3cae62[_0x503cbc(0x194)]('appcode')[_0x503cbc(0x196)]();if(!_0xd5573d&&!_0x2841ec)throw CliErrors[_0x503cbc(0x182)]('Missing\x20workspace\x20app\x20selector.',_0x503cbc(0x177)+CLI_BIN_NAME+_0x503cbc(0x183)+CLI_BIN_NAME+'\x20workspace\x20use\x20--app\x20<name>`.');if(_0x2841ec)assertValidAppcode(_0x2841ec);}function a267_0x519b(){const _0x1992c5=['apiDir','initialized','Default\x20output\x20format\x20for\x20this\x20workspace\x20app\x20profile','\x20--app\x20','globalConfig','2527400nlgjXD','App\x20code\x20to\x20bind\x20to\x20this\x20workspace','1754469mLhvWS','validation','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20`','Country/region\x20for\x20this\x20workspace\x20app\x20profile','apiGroup','Risk\x20level\x20for\x20this\x20workspace\x20app\x20profile','110730kyzGxw','Invalid\x20appcode:\x20','format','use','region','\x22\x20not\x20found.',').\x20Config:\x20','Switch\x20the\x20current\x20workspace\x20app\x20binding','locale','Initialize\x20the\x20current\x20workspace\x20app\x20binding','Workspace\x20','2853210VZTNHg','API\x20directory\x20path\x20for\x20this\x20workspace\x20app\x20profile','str','Join\x20key\x20for\x20app\x20profiles\x20that\x20share\x20one\x20generated\x20API\x20model\x20registry','trim','init','keys','isArray','string','18004pBtrTE','workspace','pageSize','Pass\x20--appcode\x20<code>,\x20or\x20choose\x20one\x20of:\x20','8VotKTQ','app','number','App\x20profile\x20name\x20to\x20use\x20in\x20this\x20workspace','\x20--appcode\x20<code>`.','App\x20\x22','29FXJZDC','env','length','workspace.','25980ywtdUK','App\x20locale\x20for\x20this\x20workspace\x20app\x20profile\x20(not\x20CLI\x20language;\x20reserved\x20for\x20later\x20app\x20use)','write','updated','apps','.\x20Credentials:\x20not\x20written.','object','join','1878mBraHC','appcode','\x20workspace\x20','3135540FxUMab','defaultFormat','Use\x20`','riskLevel','\x20workspace\x20use\x20--app\x20<name>`.'];a267_0x519b=function(){return _0x1992c5;};return a267_0x519b();}function resolveKnownApps(){const _0x54d109=a267_0x493214,{config:_0xbfcf53,layers:_0x33f46c}=readRawConfigWithLayers(),_0x158838=isRecord(_0xbfcf53[_0x54d109(0x16e)])?_0xbfcf53[_0x54d109(0x16e)]:{},_0x3479ab=isRecord(_0x33f46c[_0x54d109(0x17e)]['apps'])?_0x33f46c['globalConfig'][_0x54d109(0x16e)]:{};return{..._0x3479ab,..._0x158838};}async function configureWorkspace(_0x17359b,_0x25add6){const _0x465698=a267_0x493214,_0x51b3f4=_0x17359b[_0x465698(0x194)](_0x465698(0x1a0))[_0x465698(0x196)](),_0x3212b5=_0x17359b[_0x465698(0x194)](_0x465698(0x173))[_0x465698(0x196)](),_0x4ff7aa=_0x51b3f4||_0x3212b5;if(!_0x4ff7aa)throw CliErrors['validation']('Missing\x20workspace\x20app\x20selector.',_0x465698(0x177)+CLI_BIN_NAME+_0x465698(0x183)+CLI_BIN_NAME+_0x465698(0x179));if(_0x3212b5)assertValidAppcode(_0x3212b5);const _0xa680ac=resolveWriteConfigPath('project'),_0x5f2e23=readConfigFile(_0xa680ac),_0x149b7a=resolveKnownApps(),_0x360aec=isRecord(_0x5f2e23[_0x465698(0x16e)])?{..._0x5f2e23[_0x465698(0x16e)]}:{},_0x1f7b57=cloneProfile(_0x360aec[_0x4ff7aa]),_0x18bbd2=sanitizeProfile(_0x149b7a[_0x4ff7aa]),_0x43512e=_0x3212b5?{}:_0x18bbd2,_0x416036=_0x3212b5||_0x43512e[_0x465698(0x173)];if(!_0x416036){const _0x27b99e=Object[_0x465698(0x198)](_0x149b7a),_0x16c18f=_0x27b99e[_0x465698(0x1a7)]===0x0?'Use\x20`'+CLI_BIN_NAME+_0x465698(0x174)+_0x25add6+_0x465698(0x17d)+_0x4ff7aa+_0x465698(0x1a3):_0x465698(0x19e)+_0x27b99e[_0x465698(0x171)](',\x20');throw CliErrors[_0x465698(0x182)](_0x465698(0x1a4)+_0x4ff7aa+_0x465698(0x18c),_0x16c18f);}assertValidAppcode(String(_0x416036));const _0x51a635={..._0x43512e,..._0x1f7b57,'appcode':String(_0x416036),...collectWorkspaceProfileOverrides(_0x17359b)};return _0x360aec[_0x4ff7aa]=_0x51a635,_0x5f2e23[_0x465698(0x16e)]=_0x360aec,normalizeStoredDefaultApp(_0x5f2e23,_0x4ff7aa),delete _0x5f2e23[_0x465698(0x173)],delete _0x5f2e23[_0x465698(0x1a0)],_0x51a635[_0x465698(0x1a6)]&&(_0x5f2e23['env']=_0x51a635['env']),writeConfigFile(_0xa680ac,_0x5f2e23),{'ok':!![],'message':_0x465698(0x191)+(_0x25add6===_0x465698(0x197)?_0x465698(0x17b):_0x465698(0x16d))+':\x20'+_0x4ff7aa+'\x20(appcode:\x20'+_0x51a635[_0x465698(0x173)]+_0x465698(0x18d)+_0xa680ac+_0x465698(0x16f),'data':{'operation':_0x465698(0x1a8)+_0x25add6,'configPath':_0xa680ac,'app':_0x4ff7aa,'appcode':_0x51a635[_0x465698(0x173)],'apiGroup':_0x51a635[_0x465698(0x185)]??null,'region':_0x51a635['region']??null,'env':_0x51a635[_0x465698(0x1a6)]??null,'credentialsWritten':![]}};}const workspaceInitDefinition={'service':'workspace','command':a267_0x493214(0x197),'description':a267_0x493214(0x190),'risk':'write','requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x4f2aeb=>configureWorkspace(_0x4f2aeb,'init')},workspaceUseDefinition={'service':a267_0x493214(0x19c),'command':a267_0x493214(0x18a),'description':a267_0x493214(0x18e),'risk':a267_0x493214(0x1ab),'requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0xbb85c2=>configureWorkspace(_0xbb85c2,'use')};export const workspaceDefinitions=[workspaceInitDefinition,workspaceUseDefinition,workspaceAddDefinition,workspaceRemoveDefinition];export{WORKSPACE_USAGE};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a268_0x4e42cd=a268_0x52ef;(function(_0x590ce9,_0x2081bf){const _0x254cc2=a268_0x52ef,_0x31651c=_0x590ce9();while(!![]){try{const _0x88b3e1=-parseInt(_0x254cc2(0x102))/0x1+-parseInt(_0x254cc2(0x105))/0x2*(parseInt(_0x254cc2(0x10f))/0x3)+parseInt(_0x254cc2(0x104))/0x4*(parseInt(_0x254cc2(0x10a))/0x5)+-parseInt(_0x254cc2(0x10c))/0x6*(parseInt(_0x254cc2(0x103))/0x7)+parseInt(_0x254cc2(0x109))/0x8*(-parseInt(_0x254cc2(0x107))/0x9)+parseInt(_0x254cc2(0x111))/0xa+-parseInt(_0x254cc2(0x110))/0xb*(-parseInt(_0x254cc2(0x106))/0xc);if(_0x88b3e1===_0x2081bf)break;else _0x31651c['push'](_0x31651c['shift']());}catch(_0x1c9b70){_0x31651c['push'](_0x31651c['shift']());}}}(a268_0x195c,0xba6ea));import{buildAppRemoveFlags,runAppRemove,validateAppName}from'../../commands/common/app-registry.js';function a268_0x52ef(_0x2e1094,_0x3471b6){_0x2e1094=_0x2e1094-0x102;const _0x195c82=a268_0x195c();let _0x52ef84=_0x195c82[_0x2e1094];return _0x52ef84;}export const workspaceRemoveDefinition={'service':a268_0x4e42cd(0x10d),'command':a268_0x4e42cd(0x112),'description':a268_0x4e42cd(0x108),'risk':'write','requiresAuth':![],'requiresAppCode':![],'args':[{'name':a268_0x4e42cd(0x113),'description':a268_0x4e42cd(0x10b),'required':!![]}],'flags':buildAppRemoveFlags(),'validate':_0x30b06c=>validateAppName(_0x30b06c,a268_0x4e42cd(0x10e)),'execute':_0x4333be=>runAppRemove(_0x4333be,a268_0x4e42cd(0x10e))};function a268_0x195c(){const _0x7238dd=['App\x20profile\x20name\x20to\x20remove','6228450WgvXtd','workspace','workspace\x20remove','2736957wqOrmN','341MDNFoh','1908660LzbGBH','remove','name','1262600VXSNcn','7JlRCDn','4IOZOLQ','2opeVpp','1604892DepdRG','438714cQrjNM','Remove\x20an\x20app\x20profile\x20from\x20the\x20current\x20workspace\x20(or\x20--global)','200ZUELwU','4292165jjmfDE'];a268_0x195c=function(){return _0x7238dd;};return a268_0x195c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a262_0x4a845c=a262_0x2d69;(function(_0x498d6f,_0xb88fa4){const _0x4b57e1=a262_0x2d69,_0x28f9ab=_0x498d6f();while(!![]){try{const _0x435e01=-parseInt(_0x4b57e1(0x180))/0x1*(-parseInt(_0x4b57e1(0x1a0))/0x2)+-parseInt(_0x4b57e1(0x186))/0x3*(-parseInt(_0x4b57e1(0x1c1))/0x4)+parseInt(_0x4b57e1(0x171))/0x5+parseInt(_0x4b57e1(0x1a6))/0x6+parseInt(_0x4b57e1(0x18c))/0x7*(parseInt(_0x4b57e1(0x1bc))/0x8)+-parseInt(_0x4b57e1(0x181))/0x9*(-parseInt(_0x4b57e1(0x17e))/0xa)+parseInt(_0x4b57e1(0x195))/0xb*(-parseInt(_0x4b57e1(0x19b))/0xc);if(_0x435e01===_0xb88fa4)break;else _0x28f9ab['push'](_0x28f9ab['shift']());}catch(_0x1d82af){_0x28f9ab['push'](_0x28f9ab['shift']());}}}(a262_0x414e,0x3a4f2));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','runtimeDomain',a262_0x4a845c(0x18b),a262_0x4a845c(0x174),'kbServiceDomain','appDomain',a262_0x4a845c(0x1aa),'certificateDomain'];const DOMAIN_FLAGS={'userDomain':a262_0x4a845c(0x176),'apiDomain':'api-domain','runtimeDomain':'runtime-domain','skillDomain':a262_0x4a845c(0x19a),'kbDomain':a262_0x4a845c(0x1b7),'kbServiceDomain':'kb-service-domain','appDomain':a262_0x4a845c(0x196),'localDomain':a262_0x4a845c(0x17c),'certificateDomain':a262_0x4a845c(0x172)};export const LEGACY_DOMAIN_CONFIG_FIELDS=[a262_0x4a845c(0x170),a262_0x4a845c(0x1ac),a262_0x4a845c(0x19e)];const ENTERPRISE_TO_LOCAL_FIELD={'userDomain':a262_0x4a845c(0x1c3),'apiDomain':a262_0x4a845c(0x1a8),'runtimeDomain':a262_0x4a845c(0x1bd),'skillDomain':a262_0x4a845c(0x18b),'kbDomain':a262_0x4a845c(0x174),'kbServiceDomain':'kbServiceDomain','appDomain':a262_0x4a845c(0x1b2),'localDomain':a262_0x4a845c(0x1aa),'certificateDomain':a262_0x4a845c(0x1a5)},ROUTING_CONSUMER='rabetbase-cli';export function normalizeDomainOrigin(_0x191ceb,_0x3aa5fb){const _0x1e6e0b=a262_0x4a845c;if(typeof _0x3aa5fb!==_0x1e6e0b(0x1c2)||!_0x3aa5fb[_0x1e6e0b(0x1a2)]())throw CliErrors[_0x1e6e0b(0x1af)](_0x1e6e0b(0x1b9)+_0x191ceb+':\x20expected\x20a\x20non-empty\x20HTTPS\x20origin.');let _0x27d3b9;try{_0x27d3b9=new URL(_0x3aa5fb[_0x1e6e0b(0x1a2)]());}catch{throw CliErrors['validation'](_0x1e6e0b(0x1b9)+_0x191ceb+':\x20\x22'+_0x3aa5fb+'\x22\x20is\x20not\x20a\x20valid\x20URL.');}if(_0x27d3b9[_0x1e6e0b(0x177)]!==_0x1e6e0b(0x1b6)||_0x27d3b9[_0x1e6e0b(0x19d)]||_0x27d3b9[_0x1e6e0b(0x1ba)]||_0x27d3b9[_0x1e6e0b(0x183)]!=='/'&&_0x27d3b9[_0x1e6e0b(0x183)]!==''||_0x27d3b9['search']||_0x27d3b9[_0x1e6e0b(0x194)])throw CliErrors[_0x1e6e0b(0x1af)]('Invalid\x20'+_0x191ceb+':\x20expected\x20an\x20HTTPS\x20origin\x20without\x20credentials,\x20path,\x20query,\x20or\x20fragment.',_0x1e6e0b(0x1b4));return _0x27d3b9[_0x1e6e0b(0x18f)];}export function normalizeRoutingDomainValue(_0x410d80,_0x3532d6){const _0x14fb11=a262_0x4a845c;if(typeof _0x3532d6===_0x14fb11(0x1c2))return normalizeDomainOrigin(_0x410d80,_0x3532d6);if(!_0x3532d6||typeof _0x3532d6!=='object'||Array['isArray'](_0x3532d6))throw CliErrors[_0x14fb11(0x1af)](_0x14fb11(0x1b9)+_0x410d80+_0x14fb11(0x187));const _0x465905=_0x3532d6,_0x1f3ba4=_0x465905[ROUTING_CONSUMER]??_0x465905[_0x14fb11(0x17b)];if(_0x1f3ba4===undefined)throw CliErrors[_0x14fb11(0x1af)](_0x14fb11(0x1b3)+_0x410d80+'\x20does\x20not\x20provide\x20a\x20Domain\x20for\x20'+ROUTING_CONSUMER+_0x14fb11(0x1a3));return normalizeDomainOrigin(_0x410d80,_0x1f3ba4);}export function normalizeCdnBaseUrl(_0x406970,_0xaf4878){const _0x4831ea=a262_0x4a845c;if(typeof _0xaf4878!==_0x4831ea(0x1c2)||!_0xaf4878[_0x4831ea(0x1a2)]())throw CliErrors['validation'](_0x4831ea(0x1b8)+_0x406970+_0x4831ea(0x1ad));const _0x374a84=_0xaf4878[_0x4831ea(0x1a2)]()[_0x4831ea(0x17d)](/\/$/,'');let _0x42923e;try{_0x42923e=new URL(_0x374a84);}catch{throw CliErrors[_0x4831ea(0x1af)](_0x4831ea(0x1b8)+_0x406970+_0x4831ea(0x190)+_0xaf4878+_0x4831ea(0x1a7));}if(_0x42923e[_0x4831ea(0x177)]!==_0x4831ea(0x1b6)||_0x42923e[_0x4831ea(0x19d)]||_0x42923e[_0x4831ea(0x1ba)]||_0x42923e[_0x4831ea(0x188)]||_0x42923e[_0x4831ea(0x194)]||_0x42923e['href'][_0x4831ea(0x17d)](/\/$/,'')!==_0x374a84||_0x406970==='lovrabet'&&_0x42923e['origin']!==_0x374a84)throw CliErrors[_0x4831ea(0x1af)]('Invalid\x20cdn.'+_0x406970+_0x4831ea(0x1ab)+(_0x406970===_0x4831ea(0x1a9)?_0x4831ea(0x18f):'base\x20URL')+_0x4831ea(0x191));return _0x374a84;}export function resolveEnterpriseRoutingConfig(_0x4f9c05){return resolveEnterpriseRoutingManifest(_0x4f9c05)?.['domains'];}export function resolveEnterpriseRoutingManifest(_0x3475c7){const _0x1fc8b7=a262_0x4a845c;if(_0x3475c7===undefined)return undefined;if(!_0x3475c7||typeof _0x3475c7!==_0x1fc8b7(0x179)||Array['isArray'](_0x3475c7))throw CliErrors[_0x1fc8b7(0x1af)](_0x1fc8b7(0x192));return parseEnterpriseRoutingManifest(_0x3475c7);}function a262_0x414e(){const _0x4345d9=['skillHubDomain','cdn','100icNtqu','Unsupported\x20domain\x20config\x20field(s):\x20','trim','\x20and\x20has\x20no\x20default.','Unsupported\x20enterprise\x20CDN\x20field(s):\x20','certificateDomain','2406288NZHRKb','\x22\x20is\x20not\x20a\x20valid\x20URL.','apiDomain','lovrabet','localDomain',':\x20expected\x20an\x20HTTPS\x20','platformDomain',':\x20expected\x20a\x20non-empty\x20HTTPS\x20URL.','legacy','validation','join','length','appDomain','Enterprise\x20','For\x20internal\x20deployments,\x20terminate\x20TLS\x20at\x20the\x20ingress,\x20reverse\x20proxy,\x20or\x20load\x20balancer;\x20an\x20internal\x20CA\x20is\x20supported.','mode','https:','kb-domain','Invalid\x20cdn.','Invalid\x20','password','Enterprise\x20routing\x20manifest\x20is\x20missing\x20required\x20CDN\x20field(s):\x20','2676880uBMedR','runtimeDomain','Enterprise\x20routing\x20manifests\x20cannot\x20be\x20combined\x20with\x20individual\x20Domain\x20flags.','filter','Allowed\x20fields:\x20','4AvYyuc','string','userDomain','agentDomain','101915eIDjUi','certificate-domain','includes','kbDomain','utf8','user-domain','protocol','domains','object','Invalid\x20enterprise\x20routing\x20manifest:\x20domains\x20must\x20be\x20an\x20object.','default','local-domain','replace','3875860huKIqD','str','6373Mfvroa','9HaqXTC','Invalid\x20enterprise\x20routing\x20manifest:\x20cdn\x20must\x20be\x20an\x20object.','pathname','\x22\x20and\x20kind\x20\x22','keys','462525xtvQAF',':\x20expected\x20an\x20HTTPS\x20origin\x20or\x20consumer\x20Domain\x20object.','search','cwd','domain-config','skillDomain','7JXQWSR','enterprise-v1','parse','origin',':\x20\x22','\x20without\x20credentials,\x20query,\x20or\x20fragment.','Invalid\x20enterprise\x20routing\x20config:\x20expected\x20an\x20object.','isArray','hash','459206pygvok','app-domain','Unsupported\x20routing\x20manifest:\x20expected\x20protocol\x20\x22','Enterprise\x20routing\x20manifest\x20is\x20missing\x20required\x20Domain(s):\x20','Invalid\x20domain\x20config:\x20provide\x20at\x20least\x20one\x20supported\x20Domain.','skill-domain','396JfQnzo','Invalid\x20domain\x20config\x20JSON:\x20','username'];a262_0x414e=function(){return _0x4345d9;};return a262_0x414e();}export function readDomainConfigInput(_0x3b6e24){const _0x6a5e4c=a262_0x4a845c,_0x155b90=isAbsolute(_0x3b6e24)?_0x3b6e24:resolve(process[_0x6a5e4c(0x189)](),_0x3b6e24);if(!existsSync(_0x155b90))throw CliErrors[_0x6a5e4c(0x1af)]('Domain\x20config\x20file\x20not\x20found:\x20'+_0x155b90);let _0x51803b;try{_0x51803b=JSON[_0x6a5e4c(0x18e)](readFileSync(_0x155b90,_0x6a5e4c(0x175)));}catch{throw CliErrors[_0x6a5e4c(0x1af)](_0x6a5e4c(0x19c)+_0x155b90);}if(!_0x51803b||typeof _0x51803b!==_0x6a5e4c(0x179)||Array[_0x6a5e4c(0x193)](_0x51803b))throw CliErrors[_0x6a5e4c(0x1af)]('Invalid\x20domain\x20config:\x20expected\x20a\x20JSON\x20object.');const _0x177755=_0x51803b;if(_0x6a5e4c(0x177)in _0x177755)return parseEnterpriseRoutingManifest(_0x177755);const _0xe9e9e3=Object['keys'](_0x177755)[_0x6a5e4c(0x1bf)](_0x2e753f=>!DOMAIN_CONFIG_FIELDS['includes'](_0x2e753f));if(_0xe9e9e3[_0x6a5e4c(0x1b1)]>0x0)throw CliErrors[_0x6a5e4c(0x1af)](_0x6a5e4c(0x1a1)+_0xe9e9e3[_0x6a5e4c(0x1b0)](',\x20'),_0x6a5e4c(0x1c0)+DOMAIN_CONFIG_FIELDS[_0x6a5e4c(0x1b0)](',\x20'));const _0x25ca32={};for(const _0x326304 of DOMAIN_CONFIG_FIELDS){_0x177755[_0x326304]!==undefined&&(_0x25ca32[_0x326304]=normalizeDomainOrigin(_0x326304,_0x177755[_0x326304]));}if(Object[_0x6a5e4c(0x185)](_0x25ca32)[_0x6a5e4c(0x1b1)]===0x0)throw CliErrors[_0x6a5e4c(0x1af)](_0x6a5e4c(0x199));return{'mode':_0x6a5e4c(0x1ae),'domains':_0x25ca32};}export function readDomainConfig(_0x3e3a60){return readDomainConfigInput(_0x3e3a60)['domains'];}export function resolveDomainConfigInput(_0x169d56){const _0x4e9feb=a262_0x4a845c,_0x1533e8=(_0x169d56['str'](_0x4e9feb(0x18a))||'')[_0x4e9feb(0x1a2)](),_0x683f1c=_0x1533e8?readDomainConfigInput(_0x1533e8):{'mode':_0x4e9feb(0x1ae),'domains':{}},_0x1c7f5c=DOMAIN_CONFIG_FIELDS[_0x4e9feb(0x1bf)](_0x541bd5=>Boolean((_0x169d56[_0x4e9feb(0x17f)](DOMAIN_FLAGS[_0x541bd5])||'')[_0x4e9feb(0x1a2)]()));if(_0x683f1c[_0x4e9feb(0x1b5)]===_0x4e9feb(0x18d)&&_0x1c7f5c[_0x4e9feb(0x1b1)]>0x0)throw CliErrors[_0x4e9feb(0x1af)](_0x4e9feb(0x1be),'Update\x20the\x20manifest\x20so\x20both\x20CLIs\x20consume\x20the\x20same\x20routing\x20data.');for(const _0x4f437b of DOMAIN_CONFIG_FIELDS){const _0x1babea=(_0x169d56[_0x4e9feb(0x17f)](DOMAIN_FLAGS[_0x4f437b])||'')['trim']();if(_0x1babea)_0x683f1c[_0x4e9feb(0x178)][_0x4f437b]=normalizeDomainOrigin(_0x4f437b,_0x1babea);}return _0x683f1c;}export function resolveDomainFlags(_0x4674b0){const _0x1f213a=a262_0x4a845c;return resolveDomainConfigInput(_0x4674b0)[_0x1f213a(0x178)];}function a262_0x2d69(_0x9a737e,_0xcc1acb){_0x9a737e=_0x9a737e-0x170;const _0x414e73=a262_0x414e();let _0x2d699e=_0x414e73[_0x9a737e];return _0x2d699e;}export function parseEnterpriseRoutingManifest(_0x54bfef){const _0x10d5ae=a262_0x4a845c;if(_0x54bfef[_0x10d5ae(0x177)]!==ENTERPRISE_ROUTING_PROTOCOL||_0x54bfef['kind']!==ENTERPRISE_ROUTING_KIND)throw CliErrors[_0x10d5ae(0x1af)](_0x10d5ae(0x197)+ENTERPRISE_ROUTING_PROTOCOL+_0x10d5ae(0x184)+ENTERPRISE_ROUTING_KIND+'\x22.');if(!_0x54bfef[_0x10d5ae(0x178)]||typeof _0x54bfef['domains']!==_0x10d5ae(0x179)||Array[_0x10d5ae(0x193)](_0x54bfef[_0x10d5ae(0x178)]))throw CliErrors[_0x10d5ae(0x1af)](_0x10d5ae(0x17a));if(!_0x54bfef[_0x10d5ae(0x19f)]||typeof _0x54bfef[_0x10d5ae(0x19f)]!==_0x10d5ae(0x179)||Array[_0x10d5ae(0x193)](_0x54bfef[_0x10d5ae(0x19f)]))throw CliErrors[_0x10d5ae(0x1af)](_0x10d5ae(0x182));const _0xd9b070=_0x54bfef['domains'],_0x2b3a05=REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS[_0x10d5ae(0x1bf)](_0x1dbb5d=>_0xd9b070[_0x1dbb5d]===undefined);if(_0x2b3a05[_0x10d5ae(0x1b1)]>0x0)throw CliErrors[_0x10d5ae(0x1af)](_0x10d5ae(0x198)+_0x2b3a05['join'](',\x20'));if(_0xd9b070[_0x10d5ae(0x1aa)]===undefined!==(_0xd9b070[_0x10d5ae(0x1a5)]===undefined))throw CliErrors['validation']('Enterprise\x20routing\x20manifest\x20requires\x20localDomain\x20and\x20certificateDomain\x20together.');const _0x59a709=_0x54bfef[_0x10d5ae(0x19f)],_0x562ccb=Object[_0x10d5ae(0x185)](_0x59a709)[_0x10d5ae(0x1bf)](_0x166139=>!ENTERPRISE_ROUTING_CDN_FIELDS[_0x10d5ae(0x173)](_0x166139));if(_0x562ccb[_0x10d5ae(0x1b1)]>0x0)throw CliErrors[_0x10d5ae(0x1af)](_0x10d5ae(0x1a4)+_0x562ccb[_0x10d5ae(0x1b0)](',\x20'),'Allowed\x20fields:\x20'+ENTERPRISE_ROUTING_CDN_FIELDS[_0x10d5ae(0x1b0)](',\x20'));const _0x41b988=REQUIRED_ENTERPRISE_ROUTING_CDN_FIELDS[_0x10d5ae(0x1bf)](_0x29eae1=>_0x59a709[_0x29eae1]===undefined);if(_0x41b988['length']>0x0)throw CliErrors[_0x10d5ae(0x1af)](_0x10d5ae(0x1bb)+_0x41b988[_0x10d5ae(0x1b0)](',\x20'));const _0x496334={};for(const _0x256b37 of ENTERPRISE_ROUTING_CDN_FIELDS){_0x496334[_0x256b37]=normalizeCdnBaseUrl(_0x256b37,_0x59a709[_0x256b37]);}const _0x3ce5aa={},_0x2b485e={};for(const _0x148601 of ENTERPRISE_ROUTING_DOMAIN_FIELDS){const _0x5877e3=_0xd9b070[_0x148601];if(_0x5877e3===undefined)continue;const _0x55da3c=normalizeRoutingDomainValue(_0x148601,_0x5877e3);_0x3ce5aa[_0x148601]=_0x55da3c;const _0x4f6135=ENTERPRISE_TO_LOCAL_FIELD[_0x148601];_0x4f6135&&(_0x2b485e[_0x4f6135]=_0x55da3c);}return{'mode':_0x10d5ae(0x18d),'domains':_0x2b485e,'manifestDomains':_0x3ce5aa,'cdn':_0x496334};}
|
|
1
|
+
function a269_0x2154(_0x106bcf,_0x59ee5e){_0x106bcf=_0x106bcf-0x1b4;const _0x490042=a269_0x4900();let _0x2154d3=_0x490042[_0x106bcf];return _0x2154d3;}const a269_0x310f85=a269_0x2154;(function(_0xd15599,_0x39086f){const _0x9bbc27=a269_0x2154,_0x53a5f8=_0xd15599();while(!![]){try{const _0x3b1999=parseInt(_0x9bbc27(0x1ed))/0x1+-parseInt(_0x9bbc27(0x1bc))/0x2+parseInt(_0x9bbc27(0x1e6))/0x3+parseInt(_0x9bbc27(0x1ec))/0x4*(-parseInt(_0x9bbc27(0x1c3))/0x5)+-parseInt(_0x9bbc27(0x1c4))/0x6*(parseInt(_0x9bbc27(0x1e2))/0x7)+-parseInt(_0x9bbc27(0x1d3))/0x8+-parseInt(_0x9bbc27(0x1dc))/0x9*(-parseInt(_0x9bbc27(0x1ea))/0xa);if(_0x3b1999===_0x39086f)break;else _0x53a5f8['push'](_0x53a5f8['shift']());}catch(_0xb6867d){_0x53a5f8['push'](_0x53a5f8['shift']());}}}(a269_0x4900,0x73b20));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',a269_0x310f85(0x201),a269_0x310f85(0x1ff),a269_0x310f85(0x204),a269_0x310f85(0x1c1),a269_0x310f85(0x1b5),a269_0x310f85(0x1e9),'localDomain',a269_0x310f85(0x1ba)];const DOMAIN_FLAGS={'userDomain':'user-domain','apiDomain':a269_0x310f85(0x1c0),'runtimeDomain':a269_0x310f85(0x1c7),'skillDomain':a269_0x310f85(0x1bd),'kbDomain':a269_0x310f85(0x1f0),'kbServiceDomain':'kb-service-domain','appDomain':a269_0x310f85(0x1dd),'localDomain':a269_0x310f85(0x1e5),'certificateDomain':'certificate-domain'};export const LEGACY_DOMAIN_CONFIG_FIELDS=[a269_0x310f85(0x1f7),a269_0x310f85(0x1e3),a269_0x310f85(0x1ce)];const ENTERPRISE_TO_LOCAL_FIELD={'userDomain':'userDomain','apiDomain':a269_0x310f85(0x201),'runtimeDomain':a269_0x310f85(0x1ff),'skillDomain':'skillDomain','kbDomain':a269_0x310f85(0x1c1),'kbServiceDomain':a269_0x310f85(0x1b5),'appDomain':a269_0x310f85(0x1e9),'localDomain':a269_0x310f85(0x203),'certificateDomain':a269_0x310f85(0x1ba)},ROUTING_CONSUMER=a269_0x310f85(0x1bb);export function normalizeDomainOrigin(_0x12725a,_0x418ff3){const _0x5d378b=a269_0x310f85;if(typeof _0x418ff3!==_0x5d378b(0x1cc)||!_0x418ff3['trim']())throw CliErrors[_0x5d378b(0x1c5)](_0x5d378b(0x1d8)+_0x12725a+_0x5d378b(0x1e4));let _0x1e0777;try{_0x1e0777=new URL(_0x418ff3[_0x5d378b(0x1d1)]());}catch{throw CliErrors['validation'](_0x5d378b(0x1d8)+_0x12725a+_0x5d378b(0x1f9)+_0x418ff3+_0x5d378b(0x1c9));}if(_0x1e0777['protocol']!=='https:'||_0x1e0777[_0x5d378b(0x1d0)]||_0x1e0777['password']||_0x1e0777[_0x5d378b(0x202)]!=='/'&&_0x1e0777[_0x5d378b(0x202)]!==''||_0x1e0777['search']||_0x1e0777['hash'])throw CliErrors[_0x5d378b(0x1c5)]('Invalid\x20'+_0x12725a+_0x5d378b(0x1d2),_0x5d378b(0x200));return _0x1e0777[_0x5d378b(0x1c6)];}function a269_0x4900(){const _0x22d0cf=['runtimeDomain','For\x20internal\x20deployments,\x20terminate\x20TLS\x20at\x20the\x20ingress,\x20reverse\x20proxy,\x20or\x20load\x20balancer;\x20an\x20internal\x20CA\x20is\x20supported.','apiDomain','pathname','localDomain','skillDomain','legacy','Enterprise\x20routing\x20manifest\x20requires\x20localDomain\x20and\x20certificateDomain\x20together.','kbServiceDomain','Allowed\x20fields:\x20','str','Invalid\x20domain\x20config:\x20expected\x20a\x20JSON\x20object.',':\x20expected\x20a\x20non-empty\x20HTTPS\x20URL.','certificateDomain','rabetbase-cli','250712WqtPEf','skill-domain','length','filter','api-domain','kbDomain','protocol','3880hMoBOW','463044lweiOx','validation','origin','runtime-domain','utf8','\x22\x20is\x20not\x20a\x20valid\x20URL.','lovrabet','join','string','kind','skillHubDomain','cdn','username','trim',':\x20expected\x20an\x20HTTPS\x20origin\x20without\x20credentials,\x20path,\x20query,\x20or\x20fragment.','320232luqhRx','Invalid\x20enterprise\x20routing\x20manifest:\x20cdn\x20must\x20be\x20an\x20object.','replace','Invalid\x20cdn.','enterprise-v1','Invalid\x20','Invalid\x20enterprise\x20routing\x20manifest:\x20domains\x20must\x20be\x20an\x20object.','\x22\x20and\x20kind\x20\x22','Invalid\x20domain\x20config:\x20provide\x20at\x20least\x20one\x20supported\x20Domain.','9gqeswO','app-domain','isArray','Invalid\x20domain\x20config\x20JSON:\x20','Domain\x20config\x20file\x20not\x20found:\x20','search','28hMxAMG','platformDomain',':\x20expected\x20a\x20non-empty\x20HTTPS\x20origin.','local-domain','1620864RNdelD','parse','object','appDomain','2034370iLgVll',':\x20expected\x20an\x20HTTPS\x20origin\x20or\x20consumer\x20Domain\x20object.','160VGpnIP','235284ZQRYOR','Invalid\x20enterprise\x20routing\x20config:\x20expected\x20an\x20object.','https:','kb-domain','cwd','includes','Enterprise\x20routing\x20manifest\x20is\x20missing\x20required\x20CDN\x20field(s):\x20','keys','hash','mode','agentDomain','domains',':\x20\x22','href','Enterprise\x20routing\x20manifest\x20is\x20missing\x20required\x20Domain(s):\x20','base\x20URL',':\x20expected\x20an\x20HTTPS\x20','\x20does\x20not\x20provide\x20a\x20Domain\x20for\x20'];a269_0x4900=function(){return _0x22d0cf;};return a269_0x4900();}export function normalizeRoutingDomainValue(_0x576fbb,_0x1b854d){const _0x387af1=a269_0x310f85;if(typeof _0x1b854d==='string')return normalizeDomainOrigin(_0x576fbb,_0x1b854d);if(!_0x1b854d||typeof _0x1b854d!==_0x387af1(0x1e8)||Array['isArray'](_0x1b854d))throw CliErrors[_0x387af1(0x1c5)](_0x387af1(0x1d8)+_0x576fbb+_0x387af1(0x1eb));const _0x423e0c=_0x1b854d,_0x2fb617=_0x423e0c[ROUTING_CONSUMER]??_0x423e0c['default'];if(_0x2fb617===undefined)throw CliErrors[_0x387af1(0x1c5)]('Enterprise\x20'+_0x576fbb+_0x387af1(0x1fe)+ROUTING_CONSUMER+'\x20and\x20has\x20no\x20default.');return normalizeDomainOrigin(_0x576fbb,_0x2fb617);}export function normalizeCdnBaseUrl(_0x5cd9d8,_0x598658){const _0x523370=a269_0x310f85;if(typeof _0x598658!==_0x523370(0x1cc)||!_0x598658[_0x523370(0x1d1)]())throw CliErrors[_0x523370(0x1c5)](_0x523370(0x1d6)+_0x5cd9d8+_0x523370(0x1b9));const _0x4d0bd6=_0x598658[_0x523370(0x1d1)]()[_0x523370(0x1d5)](/\/$/,'');let _0x5a4158;try{_0x5a4158=new URL(_0x4d0bd6);}catch{throw CliErrors[_0x523370(0x1c5)]('Invalid\x20cdn.'+_0x5cd9d8+_0x523370(0x1f9)+_0x598658+_0x523370(0x1c9));}if(_0x5a4158[_0x523370(0x1c2)]!==_0x523370(0x1ef)||_0x5a4158['username']||_0x5a4158['password']||_0x5a4158[_0x523370(0x1e1)]||_0x5a4158[_0x523370(0x1f5)]||_0x5a4158[_0x523370(0x1fa)][_0x523370(0x1d5)](/\/$/,'')!==_0x4d0bd6||_0x5cd9d8===_0x523370(0x1ca)&&_0x5a4158['origin']!==_0x4d0bd6)throw CliErrors[_0x523370(0x1c5)]('Invalid\x20cdn.'+_0x5cd9d8+_0x523370(0x1fd)+(_0x5cd9d8==='lovrabet'?_0x523370(0x1c6):_0x523370(0x1fc))+'\x20without\x20credentials,\x20query,\x20or\x20fragment.');return _0x4d0bd6;}export function resolveEnterpriseRoutingConfig(_0x2b70a6){const _0x138266=a269_0x310f85;return resolveEnterpriseRoutingManifest(_0x2b70a6)?.[_0x138266(0x1f8)];}export function resolveEnterpriseRoutingManifest(_0x45028d){const _0x174f10=a269_0x310f85;if(_0x45028d===undefined)return undefined;if(!_0x45028d||typeof _0x45028d!==_0x174f10(0x1e8)||Array[_0x174f10(0x1de)](_0x45028d))throw CliErrors[_0x174f10(0x1c5)](_0x174f10(0x1ee));return parseEnterpriseRoutingManifest(_0x45028d);}export function readDomainConfigInput(_0x362269){const _0x2c606d=a269_0x310f85,_0x2232b7=isAbsolute(_0x362269)?_0x362269:resolve(process[_0x2c606d(0x1f1)](),_0x362269);if(!existsSync(_0x2232b7))throw CliErrors[_0x2c606d(0x1c5)](_0x2c606d(0x1e0)+_0x2232b7);let _0x237ca9;try{_0x237ca9=JSON[_0x2c606d(0x1e7)](readFileSync(_0x2232b7,_0x2c606d(0x1c8)));}catch{throw CliErrors[_0x2c606d(0x1c5)](_0x2c606d(0x1df)+_0x2232b7);}if(!_0x237ca9||typeof _0x237ca9!==_0x2c606d(0x1e8)||Array[_0x2c606d(0x1de)](_0x237ca9))throw CliErrors[_0x2c606d(0x1c5)](_0x2c606d(0x1b8));const _0x6b668e=_0x237ca9;if('protocol'in _0x6b668e)return parseEnterpriseRoutingManifest(_0x6b668e);const _0x4d3a9e=Object[_0x2c606d(0x1f4)](_0x6b668e)[_0x2c606d(0x1bf)](_0x4113f4=>!DOMAIN_CONFIG_FIELDS[_0x2c606d(0x1f2)](_0x4113f4));if(_0x4d3a9e[_0x2c606d(0x1be)]>0x0)throw CliErrors[_0x2c606d(0x1c5)]('Unsupported\x20domain\x20config\x20field(s):\x20'+_0x4d3a9e[_0x2c606d(0x1cb)](',\x20'),_0x2c606d(0x1b6)+DOMAIN_CONFIG_FIELDS[_0x2c606d(0x1cb)](',\x20'));const _0x5c4ad1={};for(const _0x3075b9 of DOMAIN_CONFIG_FIELDS){_0x6b668e[_0x3075b9]!==undefined&&(_0x5c4ad1[_0x3075b9]=normalizeDomainOrigin(_0x3075b9,_0x6b668e[_0x3075b9]));}if(Object[_0x2c606d(0x1f4)](_0x5c4ad1)[_0x2c606d(0x1be)]===0x0)throw CliErrors['validation'](_0x2c606d(0x1db));return{'mode':'legacy','domains':_0x5c4ad1};}export function readDomainConfig(_0xb51349){const _0x3a1653=a269_0x310f85;return readDomainConfigInput(_0xb51349)[_0x3a1653(0x1f8)];}export function resolveDomainConfigInput(_0x35daf6){const _0xf3fb62=a269_0x310f85,_0x56d8fc=(_0x35daf6[_0xf3fb62(0x1b7)]('domain-config')||'')['trim'](),_0x264cdd=_0x56d8fc?readDomainConfigInput(_0x56d8fc):{'mode':_0xf3fb62(0x205),'domains':{}},_0x22cceb=DOMAIN_CONFIG_FIELDS[_0xf3fb62(0x1bf)](_0x8a6191=>Boolean((_0x35daf6[_0xf3fb62(0x1b7)](DOMAIN_FLAGS[_0x8a6191])||'')['trim']()));if(_0x264cdd[_0xf3fb62(0x1f6)]===_0xf3fb62(0x1d7)&&_0x22cceb[_0xf3fb62(0x1be)]>0x0)throw CliErrors[_0xf3fb62(0x1c5)]('Enterprise\x20routing\x20manifests\x20cannot\x20be\x20combined\x20with\x20individual\x20Domain\x20flags.','Update\x20the\x20manifest\x20so\x20both\x20CLIs\x20consume\x20the\x20same\x20routing\x20data.');for(const _0x52de48 of DOMAIN_CONFIG_FIELDS){const _0x374ad9=(_0x35daf6[_0xf3fb62(0x1b7)](DOMAIN_FLAGS[_0x52de48])||'')['trim']();if(_0x374ad9)_0x264cdd[_0xf3fb62(0x1f8)][_0x52de48]=normalizeDomainOrigin(_0x52de48,_0x374ad9);}return _0x264cdd;}export function resolveDomainFlags(_0x2e1121){const _0x1fd199=a269_0x310f85;return resolveDomainConfigInput(_0x2e1121)[_0x1fd199(0x1f8)];}export function parseEnterpriseRoutingManifest(_0x3d4231){const _0x52aaf2=a269_0x310f85;if(_0x3d4231[_0x52aaf2(0x1c2)]!==ENTERPRISE_ROUTING_PROTOCOL||_0x3d4231[_0x52aaf2(0x1cd)]!==ENTERPRISE_ROUTING_KIND)throw CliErrors['validation']('Unsupported\x20routing\x20manifest:\x20expected\x20protocol\x20\x22'+ENTERPRISE_ROUTING_PROTOCOL+_0x52aaf2(0x1da)+ENTERPRISE_ROUTING_KIND+'\x22.');if(!_0x3d4231[_0x52aaf2(0x1f8)]||typeof _0x3d4231[_0x52aaf2(0x1f8)]!==_0x52aaf2(0x1e8)||Array[_0x52aaf2(0x1de)](_0x3d4231[_0x52aaf2(0x1f8)]))throw CliErrors[_0x52aaf2(0x1c5)](_0x52aaf2(0x1d9));if(!_0x3d4231[_0x52aaf2(0x1cf)]||typeof _0x3d4231['cdn']!==_0x52aaf2(0x1e8)||Array[_0x52aaf2(0x1de)](_0x3d4231[_0x52aaf2(0x1cf)]))throw CliErrors[_0x52aaf2(0x1c5)](_0x52aaf2(0x1d4));const _0xe88df0=_0x3d4231[_0x52aaf2(0x1f8)],_0x378879=REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS[_0x52aaf2(0x1bf)](_0x208b21=>_0xe88df0[_0x208b21]===undefined);if(_0x378879[_0x52aaf2(0x1be)]>0x0)throw CliErrors[_0x52aaf2(0x1c5)](_0x52aaf2(0x1fb)+_0x378879[_0x52aaf2(0x1cb)](',\x20'));if(_0xe88df0[_0x52aaf2(0x203)]===undefined!==(_0xe88df0[_0x52aaf2(0x1ba)]===undefined))throw CliErrors[_0x52aaf2(0x1c5)](_0x52aaf2(0x1b4));const _0x5f52=_0x3d4231[_0x52aaf2(0x1cf)],_0x2d242d=Object[_0x52aaf2(0x1f4)](_0x5f52)[_0x52aaf2(0x1bf)](_0x1f3e7f=>!ENTERPRISE_ROUTING_CDN_FIELDS[_0x52aaf2(0x1f2)](_0x1f3e7f));if(_0x2d242d[_0x52aaf2(0x1be)]>0x0)throw CliErrors[_0x52aaf2(0x1c5)]('Unsupported\x20enterprise\x20CDN\x20field(s):\x20'+_0x2d242d['join'](',\x20'),'Allowed\x20fields:\x20'+ENTERPRISE_ROUTING_CDN_FIELDS['join'](',\x20'));const _0x18c6ff=REQUIRED_ENTERPRISE_ROUTING_CDN_FIELDS[_0x52aaf2(0x1bf)](_0x5b3a0a=>_0x5f52[_0x5b3a0a]===undefined);if(_0x18c6ff[_0x52aaf2(0x1be)]>0x0)throw CliErrors[_0x52aaf2(0x1c5)](_0x52aaf2(0x1f3)+_0x18c6ff[_0x52aaf2(0x1cb)](',\x20'));const _0x1ce6a7={};for(const _0x38f89c of ENTERPRISE_ROUTING_CDN_FIELDS){_0x1ce6a7[_0x38f89c]=normalizeCdnBaseUrl(_0x38f89c,_0x5f52[_0x38f89c]);}const _0x32e0c1={},_0x131726={};for(const _0x17bcf8 of ENTERPRISE_ROUTING_DOMAIN_FIELDS){const _0x1c5f02=_0xe88df0[_0x17bcf8];if(_0x1c5f02===undefined)continue;const _0x27edc9=normalizeRoutingDomainValue(_0x17bcf8,_0x1c5f02);_0x32e0c1[_0x17bcf8]=_0x27edc9;const _0x423492=ENTERPRISE_TO_LOCAL_FIELD[_0x17bcf8];_0x423492&&(_0x131726[_0x423492]=_0x27edc9);}return{'mode':_0x52aaf2(0x1d7),'domains':_0x131726,'manifestDomains':_0x32e0c1,'cdn':_0x1ce6a7};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a270_0x2438a6=a270_0x5241;function a270_0x5b80(){const _0x248d5c=['local','origin','rabetbase.domain-routing.json','9505128JKxGNo','.tmp','http://localhost','39mVhbYp','10906803aiWCoe','utf8','now','3nnYjwj','pid','Independent\x20deployment\x20routing\x20requires\x20localDomain\x20and\x20certificateDomain\x20together.','33nDSxSK','lovrabet-project-domain-routing/v1','7610luIWmj','stringify','lovrabet','35RFDALI','1271772MNlsRT','1097256pJUEEB','86GqVgKb','4822810YUGMcs','1482tJYwLE','27361HPhQWY'];a270_0x5b80=function(){return _0x248d5c;};return a270_0x5b80();}(function(_0x1cdcdf,_0x720a80){const _0x5939ef=a270_0x5241,_0x2fac75=_0x1cdcdf();while(!![]){try{const _0x5d5d9e=parseInt(_0x5939ef(0x15e))/0x1*(-parseInt(_0x5939ef(0x15b))/0x2)+-parseInt(_0x5939ef(0x150))/0x3*(-parseInt(_0x5939ef(0x159))/0x4)+parseInt(_0x5939ef(0x155))/0x5*(parseInt(_0x5939ef(0x15d))/0x6)+-parseInt(_0x5939ef(0x158))/0x7*(parseInt(_0x5939ef(0x15a))/0x8)+parseInt(_0x5939ef(0x14d))/0x9+parseInt(_0x5939ef(0x15c))/0xa*(-parseInt(_0x5939ef(0x153))/0xb)+-parseInt(_0x5939ef(0x149))/0xc*(-parseInt(_0x5939ef(0x14c))/0xd);if(_0x5d5d9e===_0x720a80)break;else _0x2fac75['push'](_0x2fac75['shift']());}catch(_0x205b4d){_0x2fac75['push'](_0x2fac75['shift']());}}}(a270_0x5b80,0xed84b));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=a270_0x2438a6(0x148);export const PROJECT_DOMAIN_ROUTING_PROTOCOL=a270_0x2438a6(0x154);function a270_0x5241(_0x186767,_0x650c75){_0x186767=_0x186767-0x147;const _0x5b804b=a270_0x5b80();let _0x52418c=_0x5b804b[_0x186767];return _0x52418c;}export function getProjectDomainRoutingManifest(){const _0x1e9194=a270_0x2438a6,_0xecc1e=getActiveRegion(),_0x2607cb=isIndependentDeployment(),_0x1dcbd4=getOfficialRoutingProfile(_0xecc1e),_0x1152bf=getLocalDomain(),_0x5c3f6b=getCertificateDomain(),_0x15f5f6=getActiveCdn();if(!!_0x1152bf!==!!_0x5c3f6b)throw new Error(_0x1e9194(0x152));return{'protocol':PROJECT_DOMAIN_ROUTING_PROTOCOL,'mode':_0x2607cb?'independent':'official','region':_0x2607cb?null:_0xecc1e,'domains':{'api':getApiDomain(),'runtime':getRuntimeDomain(),'user':getUserDomain(),'app':getAppDomain(),'skill':getSkillDomain(),'kb':getKbDomain()},'cdn':_0x15f5f6,'local':_0x1152bf&&_0x5c3f6b?{'origin':_0x1152bf,'certificateUrl':_0x5c3f6b+'/cert/lovrabet-dev.json'}:_0x2607cb?{'origin':_0x1e9194(0x14b)}:{'origin':_0x1dcbd4[_0x1e9194(0x15f)][_0x1e9194(0x147)],'certificateUrl':_0x15f5f6[_0x1e9194(0x157)]+'/cert/lovrabet-dev.json'}};}export function writeProjectDomainRoutingManifest(_0x215319){const _0x28ff05=a270_0x2438a6,_0x4fc78e=getProjectDomainRoutingManifest(),_0x5f2586=join(_0x215319,PROJECT_DOMAIN_ROUTING_FILE_NAME),_0x657f52=JSON[_0x28ff05(0x156)](_0x4fc78e,null,0x2)+'\x0a';try{if(readFileSync(_0x5f2586,_0x28ff05(0x14e))===_0x657f52)return{'path':_0x5f2586,'manifest':_0x4fc78e,'changed':![]};}catch{}const _0x2e7b00=_0x5f2586+'.'+process[_0x28ff05(0x151)]+'.'+Date[_0x28ff05(0x14f)]()+_0x28ff05(0x14a);try{writeFileSync(_0x2e7b00,_0x657f52,{'encoding':'utf8','mode':0x1a4}),renameSync(_0x2e7b00,_0x5f2586);}catch(_0x1e48d1){try{unlinkSync(_0x2e7b00);}catch{}throw _0x1e48d1;}return{'path':_0x5f2586,'manifest':_0x4fc78e,'changed':!![]};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a271_0x2682bb=a271_0x4c1a;(function(_0x293112,_0x2c57de){const _0x5a1073=a271_0x4c1a,_0x237397=_0x293112();while(!![]){try{const _0x3c64df=parseInt(_0x5a1073(0xe7))/0x1*(parseInt(_0x5a1073(0xd0))/0x2)+parseInt(_0x5a1073(0xce))/0x3+parseInt(_0x5a1073(0xdc))/0x4+-parseInt(_0x5a1073(0xe1))/0x5+parseInt(_0x5a1073(0xec))/0x6+parseInt(_0x5a1073(0xd6))/0x7+parseInt(_0x5a1073(0xd8))/0x8*(-parseInt(_0x5a1073(0xe2))/0x9);if(_0x3c64df===_0x2c57de)break;else _0x237397['push'](_0x237397['shift']());}catch(_0x36776b){_0x237397['push'](_0x237397['shift']());}}}(a271_0x130d,0x3d841));import{CLI_BIN_NAME}from'../constant/cli.js';function a271_0x4c1a(_0x388f32,_0x1e5226){_0x388f32=_0x388f32-0xce;const _0x130db0=a271_0x130d();let _0x4c1a6b=_0x130db0[_0x388f32];return _0x4c1a6b;}import{DEFAULT_LOVRABET_REGION,isInvalidLovrabetRegion,normalizeLovrabetRegion}from'../constant/region.js';function a271_0x130d(){const _0x239c60=['1984gzskwI','validation','appName','global\x20Rabetbase\x20configuration','2013016dgtCIT','project','Invalid\x20country/region\x20','projectRegion','string','1562680kFbNOB','41247HVZjxU','null','Rabetbase\x20configuration','appRegion','a\x20value\x20of\x20type\x20','13625sgTjqu','selected\x20app\x20profile','app','source','Run\x20`','2443050qLnStg','app\x20profile\x20\x22','1121415bYhNri','default','2WnlXbS','\x20doctor`\x20to\x20locate\x20and\x20repair\x20the\x20invalid\x20configuration\x20before\x20retrying.','global','globalRegion','project\x20Rabetbase\x20configuration','mergedRegion','2822610kdIefX','config'];a271_0x130d=function(){return _0x239c60;};return a271_0x130d();}import{CliErrors}from'../errors.js';export function selectConfiguredRegion(_0x464b34){const _0x1d96c8=a271_0x4c1a;if(_0x464b34[_0x1d96c8(0xe5)]!==undefined&&_0x464b34[_0x1d96c8(0xe5)]!==null&&_0x464b34[_0x1d96c8(0xe5)]!=='')return{'value':_0x464b34[_0x1d96c8(0xe5)],'source':_0x1d96c8(0xe9)};if(_0x464b34[_0x1d96c8(0xdf)]!==undefined&&_0x464b34['projectRegion']!==null&&_0x464b34[_0x1d96c8(0xdf)]!=='')return{'value':_0x464b34[_0x1d96c8(0xdf)],'source':_0x1d96c8(0xdd)};if(_0x464b34['globalRegion']!==undefined&&_0x464b34[_0x1d96c8(0xd3)]!==null&&_0x464b34[_0x1d96c8(0xd3)]!=='')return{'value':_0x464b34[_0x1d96c8(0xd3)],'source':_0x1d96c8(0xd2)};if(_0x464b34['mergedRegion']!==undefined&&_0x464b34[_0x1d96c8(0xd5)]!==null&&_0x464b34[_0x1d96c8(0xd5)]!=='')return{'value':_0x464b34[_0x1d96c8(0xd5)],'source':_0x1d96c8(0xd7)};return{'value':undefined,'source':_0x1d96c8(0xcf)};}function describeConfiguredRegion(_0x2e4fce){const _0x1444cc=a271_0x4c1a;return typeof _0x2e4fce===_0x1444cc(0xe0)?JSON['stringify'](_0x2e4fce):_0x1444cc(0xe6)+(_0x2e4fce===null?_0x1444cc(0xe3):typeof _0x2e4fce);}export function resolveConfiguredRegion(_0x17de53,_0x259553=a271_0x2682bb(0xe4)){const _0x274f99=a271_0x2682bb;if(isInvalidLovrabetRegion(_0x17de53))throw CliErrors[_0x274f99(0xd9)](_0x274f99(0xde)+describeConfiguredRegion(_0x17de53)+'\x20in\x20'+_0x259553+'.',_0x274f99(0xeb)+CLI_BIN_NAME+_0x274f99(0xd1));return normalizeLovrabetRegion(_0x17de53)??DEFAULT_LOVRABET_REGION;}export function resolveEffectiveRegion(_0x509e2a){const _0x482c67=a271_0x2682bb,_0xfe2650=selectConfiguredRegion(_0x509e2a),_0xb8cd44=_0xfe2650[_0x482c67(0xea)]===_0x482c67(0xe9)?_0x509e2a[_0x482c67(0xda)]?_0x482c67(0xed)+_0x509e2a['appName']+'\x22':_0x482c67(0xe8):_0xfe2650[_0x482c67(0xea)]===_0x482c67(0xdd)?_0x482c67(0xd4):_0xfe2650['source']===_0x482c67(0xd2)?_0x482c67(0xdb):'Rabetbase\x20configuration';return{'region':resolveConfiguredRegion(_0xfe2650['value'],_0xb8cd44),'source':_0xfe2650['source']};}
|
package/lib/config/schema.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a265_0x6bb85b=a265_0x2bb9;(function(_0x50e55c,_0x4b32f2){const _0x56f270=a265_0x2bb9,_0x51e96d=_0x50e55c();while(!![]){try{const _0xe627bd=-parseInt(_0x56f270(0x15a))/0x1+-parseInt(_0x56f270(0x154))/0x2+parseInt(_0x56f270(0x142))/0x3+-parseInt(_0x56f270(0x149))/0x4*(-parseInt(_0x56f270(0x145))/0x5)+-parseInt(_0x56f270(0x132))/0x6*(-parseInt(_0x56f270(0x143))/0x7)+parseInt(_0x56f270(0x14a))/0x8+-parseInt(_0x56f270(0x135))/0x9;if(_0xe627bd===_0x4b32f2)break;else _0x51e96d['push'](_0x51e96d['shift']());}catch(_0x33908a){_0x51e96d['push'](_0x51e96d['shift']());}}}(a265_0x4ef5,0x6f4c5));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';function a265_0x2bb9(_0x5c0725,_0x3ed901){_0x5c0725=_0x5c0725-0x127;const _0x4ef5ee=a265_0x4ef5();let _0x2bb90b=_0x4ef5ee[_0x5c0725];return _0x2bb90b;}import{isDaily,isProduction,RABETBASE_ENV_VALUES}from'../constant/env.js';function a265_0x4ef5(){const _0x4c24ff=['App\x20locale\x20(not\x20CLI\x20language;\x20reserved\x20for\x20later\x20app\x20use)','54006SWkmeE','zh-CN','apiGroup','4164120baiHoe','Country/region\x20for\x20this\x20app\x20profile','env','number','pageSize','map','runtimeDomain','isArray','toLowerCase','appcode','appDomain','API\x20directory\x20path','values','1354800FoeQpE','21DnjegX','apps','40985NbdYjD','cookie','riskLevel','defaultFormat','316YkeSTW','5177640Trjwrw','Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','skillDomain','some','entries','Join\x20key\x20for\x20app\x20profiles\x20that\x20share\x20one\x20generated\x20API\x20model\x20registry','Target\x20environment','join','app','inherit','1182656FlbEEJ','accessKey','string','region','kbServiceDomain','Risk\x20level','263486fDBTnG','localDomain','locale','certificateDomain','filter','defaultApp','routing','apiDir','length','object','trim','keys','has','format','en-US','Access\x20key','kbDomain','userDomain'];a265_0x4ef5=function(){return _0x4c24ff;};return a265_0x4ef5();}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=[a265_0x6bb85b(0x146),a265_0x6bb85b(0x155),a265_0x6bb85b(0x15c),a265_0x6bb85b(0x12c),'riskLevel',a265_0x6bb85b(0x157),a265_0x6bb85b(0x160),a265_0x6bb85b(0x130),'apiDomain',a265_0x6bb85b(0x13b),a265_0x6bb85b(0x14c),a265_0x6bb85b(0x12f),'kbServiceDomain',a265_0x6bb85b(0x13f),a265_0x6bb85b(0x15b),a265_0x6bb85b(0x15d)];export const TOP_LEVEL_CONFIG_KEYS=new Set([a265_0x6bb85b(0x13e),a265_0x6bb85b(0x137),a265_0x6bb85b(0x15c),a265_0x6bb85b(0x12c),a265_0x6bb85b(0x146),a265_0x6bb85b(0x155),a265_0x6bb85b(0x161),a265_0x6bb85b(0x157),a265_0x6bb85b(0x130),'apiDomain',a265_0x6bb85b(0x13b),a265_0x6bb85b(0x14c),'kbDomain',a265_0x6bb85b(0x158),a265_0x6bb85b(0x13f),a265_0x6bb85b(0x15b),'certificateDomain']);export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES],'region':[...ENABLED_LOVRABET_REGION_VALUES]};export function formatConfigKeyList(_0x478608){const _0x50b249=a265_0x6bb85b;return[..._0x478608][_0x50b249(0x151)](',\x20');}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function isTopLevelConfigKey(_0x4a82f8){const _0x2fa700=a265_0x6bb85b;return TOP_LEVEL_CONFIG_KEYS[_0x2fa700(0x12b)](_0x4a82f8);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){return'Config\x20key\x20('+getTopLevelConfigKeySummary()+')';}export const APP_PROFILE_FLAG_KEY_MAP={'apiGroup':a265_0x6bb85b(0x134),'region':a265_0x6bb85b(0x157),'env':a265_0x6bb85b(0x137),'apiDir':'apiDir','cookie':a265_0x6bb85b(0x146),'accessKey':'accessKey','defaultFormat':a265_0x6bb85b(0x12c),'pageSize':a265_0x6bb85b(0x139),'riskLevel':a265_0x6bb85b(0x147),'locale':a265_0x6bb85b(0x15c)};export function getAppProfileFlagDefs(){const _0x1fe356=a265_0x6bb85b;return[{'name':_0x1fe356(0x134),'type':_0x1fe356(0x156),'description':_0x1fe356(0x14f)},{'name':_0x1fe356(0x157),'type':'string','description':_0x1fe356(0x136),'enum':[...ENABLED_LOVRABET_REGION_VALUES]},{'name':_0x1fe356(0x137),'type':_0x1fe356(0x156),'description':_0x1fe356(0x150),'enum':[...RABETBASE_ENV_VALUES]},{'name':'apiDir','type':'string','description':_0x1fe356(0x140)},{'name':_0x1fe356(0x146),'type':_0x1fe356(0x156),'description':'Auth\x20cookie','hidden':!![]},{'name':'accessKey','type':_0x1fe356(0x156),'description':_0x1fe356(0x12e),'hidden':!![]},{'name':_0x1fe356(0x148),'type':_0x1fe356(0x156),'description':_0x1fe356(0x14b),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':_0x1fe356(0x139),'type':_0x1fe356(0x138),'description':'Default\x20page\x20size'},{'name':_0x1fe356(0x147),'type':'string','description':_0x1fe356(0x159),'enum':[...RISK_LEVEL_VALUES]},{'name':_0x1fe356(0x15c),'type':_0x1fe356(0x156),'description':_0x1fe356(0x131)}];}export function collectAppProfileOverrides(_0x57913d){const _0x2ec551=a265_0x6bb85b,_0x5d8d08={};for(const [_0x30dc2a,_0x2f9c32]of Object[_0x2ec551(0x14e)](APP_PROFILE_FLAG_KEY_MAP)){const _0x2969cd=_0x57913d(_0x30dc2a);if(!_0x2969cd)continue;_0x5d8d08[_0x2f9c32]=_0x2f9c32===_0x2ec551(0x139)?Number(_0x2969cd):_0x2969cd;}return _0x5d8d08;}export function buildAppProfileListFields(_0xce936b){const _0x1f6c22=a265_0x6bb85b;return{'apiGroup':_0xce936b['apiGroup']??null,'region':_0xce936b['region']??null,'env':_0xce936b[_0x1f6c22(0x137)]??null,'apiDir':_0xce936b[_0x1f6c22(0x161)]??null,'hasCookie':!!_0xce936b['cookie'],'hasAccessKey':!!_0xce936b[_0x1f6c22(0x155)],'format':_0xce936b[_0x1f6c22(0x12c)]??null,'pageSize':_0xce936b[_0x1f6c22(0x139)]??null,'riskLevel':_0xce936b[_0x1f6c22(0x147)]??null,'locale':_0xce936b[_0x1f6c22(0x15c)]??null};}export function buildAppDoctorFields(_0x589a8c,_0x1f96a5){const _0x325bdb=a265_0x6bb85b;return{'region':{'value':_0x589a8c[_0x325bdb(0x157)]||_0x1f96a5[_0x325bdb(0x157)],'source':_0x589a8c[_0x325bdb(0x157)]?_0x325bdb(0x152):_0x325bdb(0x153)},'env':{'value':_0x589a8c[_0x325bdb(0x137)]||_0x1f96a5[_0x325bdb(0x137)],'source':_0x589a8c[_0x325bdb(0x137)]?'app':_0x325bdb(0x153)},'apiDir':{'value':_0x589a8c['apiDir']||_0x1f96a5[_0x325bdb(0x161)],'source':_0x589a8c['apiDir']?'app':'inherit'},'cookie':{'value':_0x589a8c[_0x325bdb(0x146)]||_0x1f96a5[_0x325bdb(0x146)],'source':_0x589a8c[_0x325bdb(0x146)]?_0x325bdb(0x152):'inherit'},'accessKey':{'value':_0x589a8c[_0x325bdb(0x155)]||_0x1f96a5['accessKey'],'source':_0x589a8c[_0x325bdb(0x155)]?_0x325bdb(0x152):_0x325bdb(0x153)}};}export function buildCanonicalAppConfig(_0x457faa,_0x2266b2){const _0x25feef=a265_0x6bb85b,_0x3ae45f=_0x457faa['map'](_0x105f21=>String(_0x105f21||'')[_0x25feef(0x129)]())[_0x25feef(0x15e)](Boolean);if(_0x3ae45f[_0x25feef(0x127)]===0x0)return{};const _0x50e134={};for(const _0x4f6b69 of _0x3ae45f){_0x50e134[_0x4f6b69]=_0x2266b2&&!isProduction(_0x2266b2)?{'appcode':_0x4f6b69,'env':_0x2266b2}:{'appcode':_0x4f6b69};}return _0x3ae45f[_0x25feef(0x127)]>0x1?{'apps':_0x50e134,'defaultApp':_0x3ae45f[0x0]}:{'apps':_0x50e134};}export function normalizeStoredDefaultApp(_0x53da13,_0x23c90a){const _0x304fd9=a265_0x6bb85b,_0x3fd9e5=_0x53da13[_0x304fd9(0x144)]&&typeof _0x53da13['apps']===_0x304fd9(0x128)?_0x53da13[_0x304fd9(0x144)]:{},_0x5348b6=Object[_0x304fd9(0x12a)](_0x3fd9e5);if(_0x5348b6[_0x304fd9(0x127)]<=0x1)return delete _0x53da13[_0x304fd9(0x15f)],undefined;const _0x365f10=typeof _0x53da13[_0x304fd9(0x15f)]===_0x304fd9(0x156)&&_0x3fd9e5[_0x53da13[_0x304fd9(0x15f)]]?_0x53da13[_0x304fd9(0x15f)]:undefined,_0x2b4a18=_0x23c90a&&_0x3fd9e5[_0x23c90a]?_0x23c90a:_0x365f10;if(_0x2b4a18)return _0x53da13[_0x304fd9(0x15f)]=_0x2b4a18,_0x2b4a18;return delete _0x53da13[_0x304fd9(0x15f)],undefined;}export function buildCanonicalProjectConfig(_0x3d04e8,_0x4ca8ce){const _0x2c5743=a265_0x6bb85b,{appCodes:appCodes=[],env:_0x3a58a8,metadata:_0x289e20}=_0x4ca8ce,_0x3af3b7={..._0x3d04e8,..._0x289e20||{}};delete _0x3af3b7['appcode'],delete _0x3af3b7[_0x2c5743(0x152)];const _0x6619f1=_0x3a58a8||(typeof _0x3af3b7[_0x2c5743(0x137)]===_0x2c5743(0x156)?_0x3af3b7[_0x2c5743(0x137)]:'')||DEFAULT_CONFIG_VALUES[_0x2c5743(0x137)];if(isProduction(_0x6619f1))delete _0x3af3b7['env'];else _0x3af3b7[_0x2c5743(0x137)]=_0x6619f1;const _0x27e67f=buildCanonicalAppConfig(appCodes,_0x6619f1);if(Object['keys'](_0x27e67f)[_0x2c5743(0x127)]>0x0){_0x3af3b7['apps']=_0x27e67f[_0x2c5743(0x144)];if(_0x27e67f[_0x2c5743(0x15f)])_0x3af3b7['defaultApp']=_0x27e67f[_0x2c5743(0x15f)];else delete _0x3af3b7['defaultApp'];}return normalizeConfigForWrite(_0x3af3b7);}function isRecord(_0x3889be){const _0x5f4400=a265_0x6bb85b;return!!_0x3889be&&typeof _0x3889be===_0x5f4400(0x128)&&!Array[_0x5f4400(0x13c)](_0x3889be);}export function normalizeConfigForWrite(_0x4fc6fb){const _0xa74b3a=a265_0x6bb85b,_0x3e9fb3={..._0x4fc6fb},_0x1b82d4=isRecord(_0x4fc6fb['apps'])?_0x4fc6fb[_0xa74b3a(0x144)]:undefined,_0x796f5e=_0x1b82d4?Object['fromEntries'](Object[_0xa74b3a(0x14e)](_0x1b82d4)[_0xa74b3a(0x13a)](([_0x5600ed,_0x18a8ec])=>[_0x5600ed,isRecord(_0x18a8ec)?{..._0x18a8ec}:_0x18a8ec])):undefined;if(_0x796f5e){const _0x4c71ec=typeof _0x3e9fb3['env']===_0xa74b3a(0x156)?_0x3e9fb3[_0xa74b3a(0x137)]:undefined,_0xe87105=Object[_0xa74b3a(0x141)](_0x796f5e)[_0xa74b3a(0x14d)](_0x3899bd=>isRecord(_0x3899bd)&&typeof _0x3899bd[_0xa74b3a(0x137)]===_0xa74b3a(0x156)&&isProduction(_0x3899bd[_0xa74b3a(0x137)]));if(_0x4c71ec&&isDaily(_0x4c71ec)&&_0xe87105){for(const _0x18ae98 of Object['values'](_0x796f5e)){if(!isRecord(_0x18ae98))continue;if(_0x18ae98[_0xa74b3a(0x137)]===undefined)_0x18ae98[_0xa74b3a(0x137)]=_0x4c71ec;}delete _0x3e9fb3[_0xa74b3a(0x137)];}for(const _0x2f7a07 of Object[_0xa74b3a(0x141)](_0x796f5e)){isRecord(_0x2f7a07)&&typeof _0x2f7a07[_0xa74b3a(0x137)]==='string'&&isProduction(_0x2f7a07[_0xa74b3a(0x137)])&&delete _0x2f7a07['env'];}_0x3e9fb3['apps']=_0x796f5e;}return typeof _0x3e9fb3[_0xa74b3a(0x137)]===_0xa74b3a(0x156)&&isProduction(_0x3e9fb3[_0xa74b3a(0x137)])&&delete _0x3e9fb3['env'],_0x3e9fb3;}const LOCALE_MAP={'zh':a265_0x6bb85b(0x133),'zh-cn':a265_0x6bb85b(0x133),'zh_cn':'zh-CN','en':'en-US','en-us':a265_0x6bb85b(0x12d),'en_us':a265_0x6bb85b(0x12d)};export function normalizeLocale(_0x260e8b){const _0x968b28=a265_0x6bb85b;if(!_0x260e8b)return null;return LOCALE_MAP[_0x260e8b[_0x968b28(0x13d)]()]??null;}
|
|
1
|
+
const a272_0x594339=a272_0x3f3f;(function(_0x2de3be,_0xb13d7e){const _0x3fd8ff=a272_0x3f3f,_0x1e185a=_0x2de3be();while(!![]){try{const _0x1d5068=parseInt(_0x3fd8ff(0x16d))/0x1*(parseInt(_0x3fd8ff(0x171))/0x2)+parseInt(_0x3fd8ff(0x13e))/0x3+parseInt(_0x3fd8ff(0x164))/0x4+-parseInt(_0x3fd8ff(0x170))/0x5*(parseInt(_0x3fd8ff(0x15f))/0x6)+parseInt(_0x3fd8ff(0x155))/0x7+-parseInt(_0x3fd8ff(0x167))/0x8+-parseInt(_0x3fd8ff(0x13b))/0x9;if(_0x1d5068===_0xb13d7e)break;else _0x1e185a['push'](_0x1e185a['shift']());}catch(_0x10c3be){_0x1e185a['push'](_0x1e185a['shift']());}}}(a272_0x7b22,0x8651b));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';function a272_0x3f3f(_0x5e907f,_0x1174bd){_0x5e907f=_0x5e907f-0x139;const _0x7b2269=a272_0x7b22();let _0x3f3f94=_0x7b2269[_0x5e907f];return _0x3f3f94;}export{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';export const PROJECT_CREATE_INHERITABLE_KEYS=[a272_0x594339(0x15c),a272_0x594339(0x159),'locale',a272_0x594339(0x168),a272_0x594339(0x16f),a272_0x594339(0x13d),a272_0x594339(0x13a),a272_0x594339(0x142),a272_0x594339(0x152),'runtimeDomain',a272_0x594339(0x165),a272_0x594339(0x169),a272_0x594339(0x145),a272_0x594339(0x16e),a272_0x594339(0x15e),a272_0x594339(0x162)];export const TOP_LEVEL_CONFIG_KEYS=new Set([a272_0x594339(0x158),a272_0x594339(0x149),a272_0x594339(0x16b),a272_0x594339(0x168),a272_0x594339(0x15c),'accessKey',a272_0x594339(0x146),a272_0x594339(0x13d),a272_0x594339(0x142),a272_0x594339(0x152),a272_0x594339(0x163),a272_0x594339(0x165),a272_0x594339(0x169),a272_0x594339(0x145),a272_0x594339(0x16e),a272_0x594339(0x15e),a272_0x594339(0x162)]);export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES],'region':[...ENABLED_LOVRABET_REGION_VALUES]};export function formatConfigKeyList(_0x5eef8e){return[..._0x5eef8e]['join'](',\x20');}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function isTopLevelConfigKey(_0x504d9e){return TOP_LEVEL_CONFIG_KEYS['has'](_0x504d9e);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x281c8e=a272_0x594339;return _0x281c8e(0x16c)+getTopLevelConfigKeySummary()+')';}export const APP_PROFILE_FLAG_KEY_MAP={'apiGroup':a272_0x594339(0x139),'region':a272_0x594339(0x13d),'env':a272_0x594339(0x149),'apiDir':a272_0x594339(0x146),'cookie':a272_0x594339(0x15c),'accessKey':a272_0x594339(0x159),'defaultFormat':a272_0x594339(0x168),'pageSize':a272_0x594339(0x141),'riskLevel':a272_0x594339(0x16f),'locale':a272_0x594339(0x16b)};export function getAppProfileFlagDefs(){const _0x2a4ab8=a272_0x594339;return[{'name':'apiGroup','type':_0x2a4ab8(0x148),'description':_0x2a4ab8(0x14a)},{'name':'region','type':'string','description':'Country/region\x20for\x20this\x20app\x20profile','enum':[...ENABLED_LOVRABET_REGION_VALUES]},{'name':_0x2a4ab8(0x149),'type':_0x2a4ab8(0x148),'description':'Target\x20environment','enum':[...RABETBASE_ENV_VALUES]},{'name':_0x2a4ab8(0x146),'type':_0x2a4ab8(0x148),'description':'API\x20directory\x20path'},{'name':_0x2a4ab8(0x15c),'type':'string','description':_0x2a4ab8(0x166),'hidden':!![]},{'name':'accessKey','type':_0x2a4ab8(0x148),'description':_0x2a4ab8(0x154),'hidden':!![]},{'name':_0x2a4ab8(0x147),'type':_0x2a4ab8(0x148),'description':_0x2a4ab8(0x15b),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':_0x2a4ab8(0x141),'type':_0x2a4ab8(0x150),'description':_0x2a4ab8(0x13f)},{'name':_0x2a4ab8(0x16f),'type':_0x2a4ab8(0x148),'description':_0x2a4ab8(0x140),'enum':[...RISK_LEVEL_VALUES]},{'name':_0x2a4ab8(0x16b),'type':_0x2a4ab8(0x148),'description':_0x2a4ab8(0x153)}];}export function collectAppProfileOverrides(_0x2c9ff9){const _0x7a1ba1=a272_0x594339,_0x1716bc={};for(const [_0x4817c6,_0x2eaa79]of Object[_0x7a1ba1(0x156)](APP_PROFILE_FLAG_KEY_MAP)){const _0x47a553=_0x2c9ff9(_0x4817c6);if(!_0x47a553)continue;_0x1716bc[_0x2eaa79]=_0x2eaa79==='pageSize'?Number(_0x47a553):_0x47a553;}return _0x1716bc;}export function buildAppProfileListFields(_0x1ae33e){const _0x474f63=a272_0x594339;return{'apiGroup':_0x1ae33e[_0x474f63(0x139)]??null,'region':_0x1ae33e['region']??null,'env':_0x1ae33e['env']??null,'apiDir':_0x1ae33e[_0x474f63(0x146)]??null,'hasCookie':!!_0x1ae33e[_0x474f63(0x15c)],'hasAccessKey':!!_0x1ae33e[_0x474f63(0x159)],'format':_0x1ae33e['format']??null,'pageSize':_0x1ae33e['pageSize']??null,'riskLevel':_0x1ae33e['riskLevel']??null,'locale':_0x1ae33e['locale']??null};}export function buildAppDoctorFields(_0x3c9fdd,_0x15c58f){const _0x293d69=a272_0x594339;return{'region':{'value':_0x3c9fdd[_0x293d69(0x13d)]||_0x15c58f[_0x293d69(0x13d)],'source':_0x3c9fdd[_0x293d69(0x13d)]?_0x293d69(0x143):_0x293d69(0x13c)},'env':{'value':_0x3c9fdd[_0x293d69(0x149)]||_0x15c58f[_0x293d69(0x149)],'source':_0x3c9fdd[_0x293d69(0x149)]?_0x293d69(0x143):_0x293d69(0x13c)},'apiDir':{'value':_0x3c9fdd[_0x293d69(0x146)]||_0x15c58f[_0x293d69(0x146)],'source':_0x3c9fdd[_0x293d69(0x146)]?_0x293d69(0x143):'inherit'},'cookie':{'value':_0x3c9fdd[_0x293d69(0x15c)]||_0x15c58f['cookie'],'source':_0x3c9fdd[_0x293d69(0x15c)]?_0x293d69(0x143):_0x293d69(0x13c)},'accessKey':{'value':_0x3c9fdd[_0x293d69(0x159)]||_0x15c58f[_0x293d69(0x159)],'source':_0x3c9fdd['accessKey']?_0x293d69(0x143):_0x293d69(0x13c)}};}export function buildCanonicalAppConfig(_0x129d54,_0x37df1b){const _0x54e000=a272_0x594339,_0x5d9198=_0x129d54[_0x54e000(0x157)](_0x8a4dc4=>String(_0x8a4dc4||'')[_0x54e000(0x14d)]())[_0x54e000(0x14f)](Boolean);if(_0x5d9198['length']===0x0)return{};const _0x5db888={};for(const _0x2a8aff of _0x5d9198){_0x5db888[_0x2a8aff]=_0x37df1b&&!isProduction(_0x37df1b)?{'appcode':_0x2a8aff,'env':_0x37df1b}:{'appcode':_0x2a8aff};}return _0x5d9198[_0x54e000(0x161)]>0x1?{'apps':_0x5db888,'defaultApp':_0x5d9198[0x0]}:{'apps':_0x5db888};}export function normalizeStoredDefaultApp(_0x37aa0e,_0x481deb){const _0x188de9=a272_0x594339,_0x3875af=_0x37aa0e[_0x188de9(0x151)]&&typeof _0x37aa0e[_0x188de9(0x151)]===_0x188de9(0x14e)?_0x37aa0e['apps']:{},_0x8eff11=Object[_0x188de9(0x14b)](_0x3875af);if(_0x8eff11[_0x188de9(0x161)]<=0x1)return delete _0x37aa0e['defaultApp'],undefined;const _0x1c8eef=typeof _0x37aa0e['defaultApp']===_0x188de9(0x148)&&_0x3875af[_0x37aa0e[_0x188de9(0x15a)]]?_0x37aa0e[_0x188de9(0x15a)]:undefined,_0x3e0baf=_0x481deb&&_0x3875af[_0x481deb]?_0x481deb:_0x1c8eef;if(_0x3e0baf)return _0x37aa0e[_0x188de9(0x15a)]=_0x3e0baf,_0x3e0baf;return delete _0x37aa0e['defaultApp'],undefined;}export function buildCanonicalProjectConfig(_0x3c9c38,_0x3080c2){const _0x3a1caf=a272_0x594339,{appCodes:appCodes=[],env:_0x3108b6,metadata:_0x179490}=_0x3080c2,_0x4d6590={..._0x3c9c38,..._0x179490||{}};delete _0x4d6590[_0x3a1caf(0x158)],delete _0x4d6590[_0x3a1caf(0x143)];const _0x5d7317=_0x3108b6||(typeof _0x4d6590[_0x3a1caf(0x149)]===_0x3a1caf(0x148)?_0x4d6590['env']:'')||DEFAULT_CONFIG_VALUES[_0x3a1caf(0x149)];if(isProduction(_0x5d7317))delete _0x4d6590['env'];else _0x4d6590[_0x3a1caf(0x149)]=_0x5d7317;const _0x100139=buildCanonicalAppConfig(appCodes,_0x5d7317);if(Object[_0x3a1caf(0x14b)](_0x100139)[_0x3a1caf(0x161)]>0x0){_0x4d6590[_0x3a1caf(0x151)]=_0x100139[_0x3a1caf(0x151)];if(_0x100139['defaultApp'])_0x4d6590['defaultApp']=_0x100139[_0x3a1caf(0x15a)];else delete _0x4d6590[_0x3a1caf(0x15a)];}return normalizeConfigForWrite(_0x4d6590);}function isRecord(_0x44a631){const _0x3f2c07=a272_0x594339;return!!_0x44a631&&typeof _0x44a631===_0x3f2c07(0x14e)&&!Array[_0x3f2c07(0x160)](_0x44a631);}export function normalizeConfigForWrite(_0x443d89){const _0x3b1bf6=a272_0x594339,_0x52a373={..._0x443d89},_0x27c4ef=isRecord(_0x443d89[_0x3b1bf6(0x151)])?_0x443d89[_0x3b1bf6(0x151)]:undefined,_0x12202a=_0x27c4ef?Object['fromEntries'](Object[_0x3b1bf6(0x156)](_0x27c4ef)[_0x3b1bf6(0x157)](([_0x240895,_0x1bce7d])=>[_0x240895,isRecord(_0x1bce7d)?{..._0x1bce7d}:_0x1bce7d])):undefined;if(_0x12202a){const _0x44a025=typeof _0x52a373[_0x3b1bf6(0x149)]===_0x3b1bf6(0x148)?_0x52a373['env']:undefined,_0x323cfe=Object[_0x3b1bf6(0x15d)](_0x12202a)[_0x3b1bf6(0x14c)](_0x5c7b41=>isRecord(_0x5c7b41)&&typeof _0x5c7b41['env']===_0x3b1bf6(0x148)&&isProduction(_0x5c7b41['env']));if(_0x44a025&&isDaily(_0x44a025)&&_0x323cfe){for(const _0x344eb9 of Object['values'](_0x12202a)){if(!isRecord(_0x344eb9))continue;if(_0x344eb9[_0x3b1bf6(0x149)]===undefined)_0x344eb9['env']=_0x44a025;}delete _0x52a373[_0x3b1bf6(0x149)];}for(const _0x324e8d of Object[_0x3b1bf6(0x15d)](_0x12202a)){isRecord(_0x324e8d)&&typeof _0x324e8d[_0x3b1bf6(0x149)]==='string'&&isProduction(_0x324e8d[_0x3b1bf6(0x149)])&&delete _0x324e8d['env'];}_0x52a373[_0x3b1bf6(0x151)]=_0x12202a;}return typeof _0x52a373[_0x3b1bf6(0x149)]==='string'&&isProduction(_0x52a373[_0x3b1bf6(0x149)])&&delete _0x52a373['env'],_0x52a373;}function a272_0x7b22(){const _0x121222=['Config\x20key\x20(','817518PebHHG','appDomain','riskLevel','20LzVCxC','2iGpzPj','apiGroup','routing','21986838sxpOGk','inherit','region','2547591JjncZt','Default\x20page\x20size','Risk\x20level','pageSize','userDomain','app','en-US','kbServiceDomain','apiDir','defaultFormat','string','env','Join\x20key\x20for\x20app\x20profiles\x20that\x20share\x20one\x20generated\x20API\x20model\x20registry','keys','some','trim','object','filter','number','apps','apiDomain','App\x20locale\x20(not\x20CLI\x20language;\x20reserved\x20for\x20later\x20app\x20use)','Access\x20key','7044695nHdthR','entries','map','appcode','accessKey','defaultApp','Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','cookie','values','localDomain','28812lkFvXL','isArray','length','certificateDomain','runtimeDomain','4182568aEUaBE','skillDomain','Auth\x20cookie','5651048tBvuXq','format','kbDomain','zh-CN','locale'];a272_0x7b22=function(){return _0x121222;};return a272_0x7b22();}const LOCALE_MAP={'zh':a272_0x594339(0x16a),'zh-cn':a272_0x594339(0x16a),'zh_cn':a272_0x594339(0x16a),'en':'en-US','en-us':a272_0x594339(0x144),'en_us':a272_0x594339(0x144)};export function normalizeLocale(_0x59e256){if(!_0x59e256)return null;return LOCALE_MAP[_0x59e256['toLowerCase']()]??null;}
|
package/lib/constant/cdn.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a273_0xfc46ff=a273_0x42e9;function a273_0x1d72(){const _0x2073ca=['https://g.lovrabet.com','630077rSFkDY','lovrabet','3322065OqIvGa','2976273LbOjDu','296371vPKixg','config/index.json','18EKgroE','templates/projects','/dist/','rabetbase-cli','freeze','.zip','4017860JxqmdS','56MSEKgf','153666WwUbPP','1486862yyBRRx'];a273_0x1d72=function(){return _0x2073ca;};return a273_0x1d72();}(function(_0x291cfc,_0x3d61a0){const _0x5078e9=a273_0x42e9,_0x23d2d3=_0x291cfc();while(!![]){try{const _0x4e8ae7=-parseInt(_0x5078e9(0x148))/0x1+-parseInt(_0x5078e9(0x142))/0x2+-parseInt(_0x5078e9(0x141))/0x3+-parseInt(_0x5078e9(0x13f))/0x4+parseInt(_0x5078e9(0x146))/0x5+-parseInt(_0x5078e9(0x14a))/0x6*(parseInt(_0x5078e9(0x144))/0x7)+parseInt(_0x5078e9(0x140))/0x8*(parseInt(_0x5078e9(0x147))/0x9);if(_0x4e8ae7===_0x3d61a0)break;else _0x23d2d3['push'](_0x23d2d3['shift']());}catch(_0x132cca){_0x23d2d3['push'](_0x23d2d3['shift']());}}}(a273_0x1d72,0x95d8a));import{getActiveCdn}from'../constant/domain.js';const RABETBASE_CDN_PROJECT=a273_0xfc46ff(0x14d),RABETBASE_CDN_CONFIG_ORIGIN=a273_0xfc46ff(0x143),CDN_CONFIG_PATH=a273_0xfc46ff(0x149),PROJECT_TEMPLATE_ASSET_PATH=a273_0xfc46ff(0x14b),PROJECT_TEMPLATE_ARCHIVE_NAMES=Object[a273_0xfc46ff(0x13d)]({'release':'sub-app-react-demo.zip','beta':'sub-app-react-demo-beta.zip'});function a273_0x42e9(_0x1668b9,_0x1749ae){_0x1668b9=_0x1668b9-0x13d;const _0x1d7286=a273_0x1d72();let _0x42e996=_0x1d7286[_0x1668b9];return _0x42e996;}export const RABETBASE_CDN_PROJECT_PATH=a273_0xfc46ff(0x14c)+RABETBASE_CDN_PROJECT;function getRabetbaseCdnBaseUrl(){const _0x5f50b5=a273_0xfc46ff;return''+getActiveCdn()[_0x5f50b5(0x145)]+RABETBASE_CDN_PROJECT_PATH;}export function getCliVersionPolicyUrl(){return''+RABETBASE_CDN_CONFIG_ORIGIN+RABETBASE_CDN_PROJECT_PATH+'/'+CDN_CONFIG_PATH;}export function getProjectTemplateAssetBaseUrl(){return getRabetbaseCdnBaseUrl()+'/'+PROJECT_TEMPLATE_ASSET_PATH;}export function getProjectTemplateLegacyAssetBaseUrl(){return''+RABETBASE_CDN_CONFIG_ORIGIN+RABETBASE_CDN_PROJECT_PATH+'/'+PROJECT_TEMPLATE_ASSET_PATH;}export function getProjectTemplateRelativeUrl(_0x44c5ac,_0x2b0e6f){const _0x5b7f4a=a273_0xfc46ff,_0x39c6cf=_0x2b0e6f?'sub-app-react-demo-'+_0x2b0e6f+_0x5b7f4a(0x13e):PROJECT_TEMPLATE_ARCHIVE_NAMES[_0x44c5ac];return RABETBASE_CDN_PROJECT_PATH+'/'+PROJECT_TEMPLATE_ASSET_PATH+'/'+_0x39c6cf;}
|
package/lib/constant/cli.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a267_0x38e8be=a267_0x2cf9;(function(_0x1b6d2a,_0x24adf7){const _0x2fc91f=a267_0x2cf9,_0xfee260=_0x1b6d2a();while(!![]){try{const _0x2dde06=parseInt(_0x2fc91f(0x229))/0x1*(-parseInt(_0x2fc91f(0x1e2))/0x2)+-parseInt(_0x2fc91f(0x1c1))/0x3*(-parseInt(_0x2fc91f(0x1c5))/0x4)+-parseInt(_0x2fc91f(0x1d6))/0x5+parseInt(_0x2fc91f(0x1b2))/0x6*(parseInt(_0x2fc91f(0x1d5))/0x7)+parseInt(_0x2fc91f(0x22c))/0x8+parseInt(_0x2fc91f(0x1dc))/0x9*(parseInt(_0x2fc91f(0x219))/0xa)+-parseInt(_0x2fc91f(0x1b5))/0xb*(parseInt(_0x2fc91f(0x232))/0xc);if(_0x2dde06===_0x24adf7)break;else _0xfee260['push'](_0xfee260['shift']());}catch(_0x53de0f){_0xfee260['push'](_0xfee260['shift']());}}}(a267_0xdfdd,0x5bc64));export const CLI_BIN_NAME=a267_0x38e8be(0x1e0);export const CLI_DISPLAY_NAME=a267_0x38e8be(0x1d7);function a267_0x2cf9(_0x5bb648,_0x56ae73){_0x5bb648=_0x5bb648-0x1a2;const _0xdfdd0f=a267_0xdfdd();let _0x2cf936=_0xdfdd0f[_0x5bb648];return _0x2cf936;}export const NPM_PACKAGE_NAME=a267_0x38e8be(0x1d4);export const GLOBAL_FLAGS=[{'name':a267_0x38e8be(0x1df),'meowKey':'appcode','type':a267_0x38e8be(0x1ba),'description':a267_0x38e8be(0x1c3),'hint':a267_0x38e8be(0x220)},{'name':a267_0x38e8be(0x1a3),'meowKey':'app','type':a267_0x38e8be(0x1ba),'description':'Select\x20app\x20profile\x20by\x20name','hint':'<name>'},{'name':a267_0x38e8be(0x1aa),'meowKey':a267_0x38e8be(0x1aa),'type':a267_0x38e8be(0x1ba),'description':a267_0x38e8be(0x1c4),'hint':a267_0x38e8be(0x1f4)},{'name':'format','meowKey':a267_0x38e8be(0x209),'type':a267_0x38e8be(0x1ba),'description':'Output\x20format','hint':a267_0x38e8be(0x1ce)},{'name':'jq','meowKey':'jq','type':a267_0x38e8be(0x1ba),'description':a267_0x38e8be(0x202),'hint':a267_0x38e8be(0x1b3)},{'name':a267_0x38e8be(0x1ac),'meowKey':'dryRun','type':a267_0x38e8be(0x216),'description':a267_0x38e8be(0x21b)},{'name':'yes','meowKey':a267_0x38e8be(0x1e1),'type':a267_0x38e8be(0x216),'description':a267_0x38e8be(0x1f5)},{'name':a267_0x38e8be(0x233),'meowKey':'nonInteractive','type':a267_0x38e8be(0x216),'description':'Force\x20non-interactive\x20mode\x20(CI)'},{'name':a267_0x38e8be(0x1f0),'meowKey':a267_0x38e8be(0x1f0),'type':a267_0x38e8be(0x216),'description':a267_0x38e8be(0x1fb)},{'name':a267_0x38e8be(0x213),'meowKey':a267_0x38e8be(0x213),'type':a267_0x38e8be(0x216),'description':a267_0x38e8be(0x1bd)},{'name':'ci','meowKey':'ci','type':a267_0x38e8be(0x216),'description':a267_0x38e8be(0x223),'hidden':!![]},{'name':a267_0x38e8be(0x1e5),'meowKey':'help','type':a267_0x38e8be(0x216),'description':a267_0x38e8be(0x1fc)},{'name':'locale','meowKey':a267_0x38e8be(0x1db),'type':'string','description':a267_0x38e8be(0x21f),'hidden':!![],'hint':a267_0x38e8be(0x1cf)},{'name':a267_0x38e8be(0x1a8),'meowKey':'name','type':a267_0x38e8be(0x1ba),'description':a267_0x38e8be(0x1eb),'hidden':!![]},{'name':a267_0x38e8be(0x20b),'meowKey':a267_0x38e8be(0x20b),'type':a267_0x38e8be(0x1ba),'description':'Title','hidden':!![]},{'name':a267_0x38e8be(0x217),'meowKey':a267_0x38e8be(0x217),'type':'string','description':a267_0x38e8be(0x1bc),'hidden':!![]},{'name':a267_0x38e8be(0x203),'meowKey':a267_0x38e8be(0x203),'type':'string','description':a267_0x38e8be(0x1f3),'hidden':!![]},{'name':a267_0x38e8be(0x1a5),'meowKey':'clear','type':a267_0x38e8be(0x216),'description':a267_0x38e8be(0x201),'hidden':!![]},{'name':a267_0x38e8be(0x228),'meowKey':a267_0x38e8be(0x228),'type':a267_0x38e8be(0x216),'description':a267_0x38e8be(0x22a),'hidden':!![]},{'name':a267_0x38e8be(0x23b),'meowKey':'output','type':'string','description':'Output\x20path','hidden':!![]},{'name':'params','meowKey':'params','type':'string','description':a267_0x38e8be(0x1e4),'hidden':!![]},{'name':'datasetcode','meowKey':a267_0x38e8be(0x21a),'type':a267_0x38e8be(0x1ba),'description':a267_0x38e8be(0x1bb),'hidden':!![]},{'name':a267_0x38e8be(0x1a6),'meowKey':'all','type':a267_0x38e8be(0x216),'description':a267_0x38e8be(0x210),'hidden':!![]},{'name':a267_0x38e8be(0x23c),'meowKey':a267_0x38e8be(0x1b9),'type':a267_0x38e8be(0x216),'description':a267_0x38e8be(0x1bf),'hidden':!![]},{'name':'id','meowKey':'id','type':a267_0x38e8be(0x1ba),'description':'Record\x20ID','hidden':!![]},{'name':a267_0x38e8be(0x1a2),'meowKey':a267_0x38e8be(0x1a2),'type':a267_0x38e8be(0x1ba),'description':'Type\x20filter','hidden':!![]},{'name':'file','meowKey':a267_0x38e8be(0x1ea),'type':'string','description':'File\x20path','hidden':!![]},{'name':a267_0x38e8be(0x1af),'meowKey':a267_0x38e8be(0x222),'type':a267_0x38e8be(0x1ba),'description':a267_0x38e8be(0x1ca),'hidden':!![]},{'name':a267_0x38e8be(0x230),'meowKey':a267_0x38e8be(0x227),'type':a267_0x38e8be(0x1ba),'description':a267_0x38e8be(0x1e3),'hidden':!![]},{'name':'flow-status','meowKey':a267_0x38e8be(0x238),'type':a267_0x38e8be(0x1ba),'description':'Flow\x20status','hidden':!![]},{'name':a267_0x38e8be(0x1ab),'meowKey':'flowType','type':a267_0x38e8be(0x1ba),'description':'Flow\x20type','hidden':!![]},{'name':a267_0x38e8be(0x218),'meowKey':a267_0x38e8be(0x1b7),'type':a267_0x38e8be(0x1ba),'description':a267_0x38e8be(0x1bb),'hidden':!![]},{'name':a267_0x38e8be(0x1f9),'meowKey':a267_0x38e8be(0x1f9),'type':a267_0x38e8be(0x1ba),'description':a267_0x38e8be(0x1d9),'hidden':!![]},{'name':a267_0x38e8be(0x1cc),'meowKey':a267_0x38e8be(0x1c6),'type':'string','description':a267_0x38e8be(0x1ed),'hidden':!![]},{'name':a267_0x38e8be(0x237),'meowKey':a267_0x38e8be(0x237),'type':a267_0x38e8be(0x1ba),'description':a267_0x38e8be(0x1ed),'hidden':!![]},{'name':a267_0x38e8be(0x1c8),'meowKey':a267_0x38e8be(0x1a7),'type':'string','description':a267_0x38e8be(0x1b4),'hidden':!![]},{'name':a267_0x38e8be(0x20f),'meowKey':a267_0x38e8be(0x20f),'type':a267_0x38e8be(0x1ba),'description':a267_0x38e8be(0x1b4),'hidden':!![]},{'name':a267_0x38e8be(0x1ae),'meowKey':'description','type':a267_0x38e8be(0x1ba),'description':a267_0x38e8be(0x1dd),'hidden':!![]},{'name':a267_0x38e8be(0x20a),'meowKey':a267_0x38e8be(0x1c2),'type':a267_0x38e8be(0x1ba),'description':a267_0x38e8be(0x211),'hidden':!![]},{'name':a267_0x38e8be(0x239),'meowKey':'page','type':a267_0x38e8be(0x1ba),'description':'Page\x20number','hidden':!![]},{'name':'page-size','meowKey':a267_0x38e8be(0x23a),'type':'string','description':a267_0x38e8be(0x1b8),'hidden':!![]},{'name':a267_0x38e8be(0x21e),'meowKey':a267_0x38e8be(0x21e),'type':a267_0x38e8be(0x1ba),'description':'Page\x20size','hidden':!![]},{'name':a267_0x38e8be(0x1f7),'meowKey':a267_0x38e8be(0x1f7),'type':a267_0x38e8be(0x1ba),'description':a267_0x38e8be(0x1b0),'hidden':!![]},{'name':'code','meowKey':a267_0x38e8be(0x1c9),'type':a267_0x38e8be(0x1ba),'description':a267_0x38e8be(0x21c),'hidden':!![]},{'name':a267_0x38e8be(0x1a9),'meowKey':a267_0x38e8be(0x1a9),'type':'string','description':a267_0x38e8be(0x1ef),'hidden':!![]},{'name':a267_0x38e8be(0x1d3),'meowKey':a267_0x38e8be(0x1d3),'type':a267_0x38e8be(0x1ba),'description':a267_0x38e8be(0x212),'hidden':!![]},{'name':'operation','meowKey':a267_0x38e8be(0x1ee),'type':a267_0x38e8be(0x1ba),'description':a267_0x38e8be(0x225),'hidden':!![]},{'name':a267_0x38e8be(0x22b),'meowKey':a267_0x38e8be(0x22b),'type':a267_0x38e8be(0x1ba),'description':a267_0x38e8be(0x1be),'hidden':!![]},{'name':a267_0x38e8be(0x22f),'meowKey':'skipImports','type':'boolean','description':a267_0x38e8be(0x1c7),'hidden':!![]},{'name':a267_0x38e8be(0x1b1),'meowKey':a267_0x38e8be(0x1b1),'type':a267_0x38e8be(0x1ba),'description':a267_0x38e8be(0x1d8),'hidden':!![]},{'name':a267_0x38e8be(0x207),'meowKey':'value','type':'string','description':a267_0x38e8be(0x22d),'hidden':!![]},{'name':a267_0x38e8be(0x1ec),'meowKey':'tags','type':'string','description':a267_0x38e8be(0x235),'hidden':!![]},{'name':a267_0x38e8be(0x221),'meowKey':a267_0x38e8be(0x221),'type':'boolean','description':a267_0x38e8be(0x214),'hidden':!![]},{'name':a267_0x38e8be(0x22e),'meowKey':'fromEnv','type':a267_0x38e8be(0x1ba),'description':a267_0x38e8be(0x226),'hidden':!![]},{'name':a267_0x38e8be(0x1ff),'meowKey':'reveal','type':'boolean','description':a267_0x38e8be(0x234),'hidden':!![]},{'name':a267_0x38e8be(0x1fe),'meowKey':'force','type':a267_0x38e8be(0x216),'description':a267_0x38e8be(0x1ad),'hidden':!![]},{'name':a267_0x38e8be(0x1a4),'meowKey':a267_0x38e8be(0x1a4),'type':a267_0x38e8be(0x216),'description':'Confirm\x20destructive\x20action','hidden':!![]},{'name':'remote','meowKey':a267_0x38e8be(0x1e8),'type':a267_0x38e8be(0x216),'description':a267_0x38e8be(0x1cb),'hidden':!![]},{'name':a267_0x38e8be(0x1da),'meowKey':a267_0x38e8be(0x1da),'type':'boolean','description':a267_0x38e8be(0x1f8),'hidden':!![]},{'name':a267_0x38e8be(0x236),'meowKey':a267_0x38e8be(0x200),'type':a267_0x38e8be(0x1ba),'description':a267_0x38e8be(0x20e),'hidden':!![]},{'name':a267_0x38e8be(0x204),'meowKey':a267_0x38e8be(0x204),'type':a267_0x38e8be(0x1ba),'description':'Menu\x20label','hidden':!![]},{'name':a267_0x38e8be(0x1b6),'meowKey':a267_0x38e8be(0x1e6),'type':'string','description':a267_0x38e8be(0x1d1),'hidden':!![]},{'name':a267_0x38e8be(0x206),'meowKey':a267_0x38e8be(0x206),'type':'string','description':a267_0x38e8be(0x231),'hidden':!![]},{'name':a267_0x38e8be(0x21d),'meowKey':a267_0x38e8be(0x1f1),'type':a267_0x38e8be(0x1ba),'description':a267_0x38e8be(0x1f2),'hidden':!![]},{'name':a267_0x38e8be(0x1f6),'meowKey':'expectPath','type':a267_0x38e8be(0x1ba),'description':a267_0x38e8be(0x205),'hidden':!![]},{'name':'expected-children-count','meowKey':a267_0x38e8be(0x1e9),'type':a267_0x38e8be(0x1ba),'description':a267_0x38e8be(0x215),'hidden':!![]},{'name':a267_0x38e8be(0x20d),'meowKey':'menuIds','type':a267_0x38e8be(0x1ba),'description':a267_0x38e8be(0x208),'hidden':!![]},{'name':'task-id','meowKey':a267_0x38e8be(0x224),'type':a267_0x38e8be(0x1ba),'description':'Asynchronous\x20task\x20ID','hidden':!![]},{'name':'operation-type','meowKey':a267_0x38e8be(0x1fa),'type':a267_0x38e8be(0x1ba),'description':a267_0x38e8be(0x225),'hidden':!![]},{'name':a267_0x38e8be(0x20c),'meowKey':a267_0x38e8be(0x1fd),'type':a267_0x38e8be(0x1ba),'description':a267_0x38e8be(0x1d2),'hidden':!![]},{'name':a267_0x38e8be(0x1cd),'meowKey':'codes','type':'string','description':a267_0x38e8be(0x1d0),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a267_0x38e8be(0x1df),a267_0x38e8be(0x1a3),a267_0x38e8be(0x1aa),a267_0x38e8be(0x209),'jq',a267_0x38e8be(0x1ac),a267_0x38e8be(0x1e1),a267_0x38e8be(0x233),'ci']);function a267_0xdfdd(){const _0xa58b48=['parentId','meowKey','remote','expectedChildrenCount','file','Name','tags','SQL\x20name','operation','SQL\x20string','global','expectParentId','Expected\x20current\x20parent\x20menu\x20id','Maximum\x20search\x20hits','production\x20|\x20daily','Skip\x20confirmation\x20for\x20high-risk\x20writes','expect-path','keyword','Verbose\x20output','sqlcode','operationType','Use\x20global\x20config\x20scope','Show\x20help','functionNode','force','reveal','expectedCount','Clear','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','topk','label','Expected\x20current\x20menu\x20path','sort','value','Comma-separated\x20menu\x20IDs','format','description-file','title','function-node','menu-ids','Expected\x20affected\x20count','dbid','Apply\x20to\x20all','Description\x20file','Schemas','project','Read\x20value\x20from\x20stdin','Expected\x20current\x20child\x20count','boolean','query','dataset-code','200DTuTrR','datasetcode','Preview\x20operation\x20without\x20executing','Code\x20filter','expect-parent-id','pagesize','App\x20locale\x20(workspace\x20pass-through;\x20not\x20CLI\x20language)','<code>','stdin','flowCode','Alias\x20for\x20--non-interactive','taskId','Operation\x20type','Read\x20value\x20from\x20environment\x20variable','flowName','watch','28676DSRtNt','Watch\x20mode','target','5700648OORjmy','Config\x20value','from-env','skip-imports','flow-name','Menu\x20sort\x20value','143412dKyvRi','non-interactive','Reveal\x20sensitive\x20value','Tags','expected-count','sqlname','flowStatus','page','pageSize','output','enable-bff-save','type','app','confirm','clear','all','dbId','name','sql','env','flow-type','dry-run','Force\x20overwrite','description','flow-code','Keyword\x20filter','key','663258DhNZQX','<expr>','DB\x20ID','1221sZMSDg','parent-id','datasetCode','Page\x20size','enableBffSave','string','Dataset\x20code','Search\x20query','Use\x20project\x20config\x20scope','Target\x20path','Enable\x20Backend\x20Function\x20save','map','1510449mrkSmQ','descriptionFile','Override\x20appcode','Environment','4OJKXCY','sqlName','Skip\x20import\x20generation','db-id','code','Flow\x20code','Use\x20remote','sql-name','codes','json\x20|\x20pretty\x20|\x20compress','zh-CN\x20|\x20en-US','Comma-separated\x20metadata\x20codes','Parent\x20menu\x20id','Function\x20node','schemas','@lovrabet/rabetbase-cli','21gpZnbA','113940jgEtsj','Rabetbase\x20CLI','Config\x20key','SQL\x20code','verbose','locale','92808tOgcAE','Description','fromEntries','appcode','rabetbase','yes','2alZkOO','Flow\x20name','JSON\x20params','help'];a267_0xdfdd=function(){return _0xa58b48;};return a267_0xdfdd();}export function buildMeowFlags(){const _0x4cac06=a267_0x38e8be;return Object[_0x4cac06(0x1de)](GLOBAL_FLAGS[_0x4cac06(0x1c0)](_0x4cd2f7=>[_0x4cd2f7[_0x4cac06(0x1e7)],{'type':_0x4cd2f7['type']}]));}
|
|
1
|
+
const a274_0x1f295e=a274_0x1c3b;(function(_0x165fd4,_0x2c53cc){const _0x2bbee9=a274_0x1c3b,_0x395d1e=_0x165fd4();while(!![]){try{const _0x272f3d=-parseInt(_0x2bbee9(0x1a1))/0x1*(parseInt(_0x2bbee9(0x1b6))/0x2)+-parseInt(_0x2bbee9(0x19b))/0x3*(parseInt(_0x2bbee9(0x20d))/0x4)+parseInt(_0x2bbee9(0x1a5))/0x5+-parseInt(_0x2bbee9(0x21c))/0x6+parseInt(_0x2bbee9(0x1f8))/0x7*(parseInt(_0x2bbee9(0x20e))/0x8)+-parseInt(_0x2bbee9(0x1a6))/0x9+-parseInt(_0x2bbee9(0x209))/0xa*(-parseInt(_0x2bbee9(0x1e7))/0xb);if(_0x272f3d===_0x2c53cc)break;else _0x395d1e['push'](_0x395d1e['shift']());}catch(_0x2b4817){_0x395d1e['push'](_0x395d1e['shift']());}}}(a274_0x5b62,0x25487));export const CLI_BIN_NAME=a274_0x1f295e(0x1ff);export const CLI_DISPLAY_NAME=a274_0x1f295e(0x194);function a274_0x5b62(){const _0x1d5148=['expected-children-count','yes','Comma-separated\x20menu\x20IDs','tags','Dataset\x20code','enableBffSave','remote','File\x20path','query','Parent\x20menu\x20id','Apply\x20to\x20all','title','Read\x20value\x20from\x20stdin','menu-ids','Comma-separated\x20metadata\x20codes','fromEnv','schemas','pagesize','reveal','codes','Name','Use\x20global\x20config\x20scope','Type\x20filter','Expected\x20current\x20menu\x20path','6105869oXCDEk','sql','string','Menu\x20label','from-env','Operation\x20type','App\x20locale\x20(workspace\x20pass-through;\x20not\x20CLI\x20language)','help','stdin','nonInteractive','page','Schemas','label','value','SQL\x20name','expectedChildrenCount','<expr>','41083XnYDss','keyword','key','Skip\x20import\x20generation','description','Config\x20key','Function\x20node','rabetbase','params','flowName','menuIds','dbid','Target\x20path','function-node','Verbose\x20output','Preview\x20operation\x20without\x20executing','production\x20|\x20daily','10HJLkkE','description-file','all','Force\x20overwrite','1101572sBnlXS','96kpRggS','verbose','Search\x20query','dryRun','Maximum\x20search\x20hits','Record\x20ID','datasetcode','output','expect-path','expected-count','global','env','Skip\x20confirmation\x20for\x20high-risk\x20writes','Output\x20format','180630SrpMKg','Output\x20path','Description','Expected\x20current\x20child\x20count','sqlname','Menu\x20sort\x20value','format','@lovrabet/rabetbase-cli','Page\x20size','name','expect-parent-id','Confirm\x20destructive\x20action','dry-run','Read\x20value\x20from\x20environment\x20variable','datasetCode','code','flow-status','Rabetbase\x20CLI','operation','confirm','Environment','Override\x20appcode','force','DB\x20ID','3IwLRet','functionNode','flow-name','Clear','fromEntries','watch','57905tTopRf','JSON\x20params','sqlName','Title','962760yioOWY','2717505aBPBad','expectedCount','zh-CN\x20|\x20en-US','Reveal\x20sensitive\x20value','skip-imports','map','json\x20|\x20pretty\x20|\x20compress','app','Expected\x20current\x20parent\x20menu\x20id','sqlcode','flow-code','file','Config\x20value','appcode','flowStatus','db-id','2PZnaUF','boolean','Flow\x20status','descriptionFile','Select\x20app\x20profile\x20by\x20name','topk','operationType','taskId','Description\x20file','page-size','pageSize','non-interactive','parent-id','<code>','locale','Code\x20filter','expectParentId','SQL\x20code','Tags','dbId','sort','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','operation-type','Use\x20project\x20config\x20scope','clear'];a274_0x5b62=function(){return _0x1d5148;};return a274_0x5b62();}export const NPM_PACKAGE_NAME=a274_0x1f295e(0x18a);export const GLOBAL_FLAGS=[{'name':'appcode','meowKey':a274_0x1f295e(0x1b3),'type':a274_0x1f295e(0x1e9),'description':a274_0x1f295e(0x198),'hint':a274_0x1f295e(0x1c3)},{'name':a274_0x1f295e(0x1ad),'meowKey':a274_0x1f295e(0x1ad),'type':a274_0x1f295e(0x1e9),'description':a274_0x1f295e(0x1ba),'hint':'<name>'},{'name':'env','meowKey':'env','type':'string','description':a274_0x1f295e(0x197),'hint':a274_0x1f295e(0x208)},{'name':a274_0x1f295e(0x189),'meowKey':a274_0x1f295e(0x189),'type':a274_0x1f295e(0x1e9),'description':a274_0x1f295e(0x21b),'hint':a274_0x1f295e(0x1ac)},{'name':'jq','meowKey':'jq','type':a274_0x1f295e(0x1e9),'description':a274_0x1f295e(0x1cb),'hint':a274_0x1f295e(0x1f7)},{'name':a274_0x1f295e(0x18f),'meowKey':a274_0x1f295e(0x211),'type':a274_0x1f295e(0x1b7),'description':a274_0x1f295e(0x207)},{'name':'yes','meowKey':a274_0x1f295e(0x1d0),'type':a274_0x1f295e(0x1b7),'description':a274_0x1f295e(0x21a)},{'name':a274_0x1f295e(0x1c1),'meowKey':a274_0x1f295e(0x1f0),'type':a274_0x1f295e(0x1b7),'description':'Force\x20non-interactive\x20mode\x20(CI)'},{'name':'global','meowKey':a274_0x1f295e(0x218),'type':a274_0x1f295e(0x1b7),'description':a274_0x1f295e(0x1e4)},{'name':'project','meowKey':'project','type':a274_0x1f295e(0x1b7),'description':a274_0x1f295e(0x1cd)},{'name':'ci','meowKey':'ci','type':'boolean','description':'Alias\x20for\x20--non-interactive','hidden':!![]},{'name':a274_0x1f295e(0x1ee),'meowKey':'help','type':'boolean','description':'Show\x20help'},{'name':a274_0x1f295e(0x1c4),'meowKey':'locale','type':'string','description':a274_0x1f295e(0x1ed),'hidden':!![],'hint':a274_0x1f295e(0x1a8)},{'name':'name','meowKey':a274_0x1f295e(0x18c),'type':a274_0x1f295e(0x1e9),'description':a274_0x1f295e(0x1e3),'hidden':!![]},{'name':a274_0x1f295e(0x1da),'meowKey':'title','type':'string','description':a274_0x1f295e(0x1a4),'hidden':!![]},{'name':a274_0x1f295e(0x1d7),'meowKey':a274_0x1f295e(0x1d7),'type':a274_0x1f295e(0x1e9),'description':a274_0x1f295e(0x210),'hidden':!![]},{'name':a274_0x1f295e(0x1bb),'meowKey':'topk','type':a274_0x1f295e(0x1e9),'description':a274_0x1f295e(0x212),'hidden':!![]},{'name':a274_0x1f295e(0x1ce),'meowKey':a274_0x1f295e(0x1ce),'type':a274_0x1f295e(0x1b7),'description':a274_0x1f295e(0x19e),'hidden':!![]},{'name':'watch','meowKey':a274_0x1f295e(0x1a0),'type':a274_0x1f295e(0x1b7),'description':'Watch\x20mode','hidden':!![]},{'name':a274_0x1f295e(0x215),'meowKey':a274_0x1f295e(0x215),'type':a274_0x1f295e(0x1e9),'description':a274_0x1f295e(0x21d),'hidden':!![]},{'name':a274_0x1f295e(0x200),'meowKey':a274_0x1f295e(0x200),'type':a274_0x1f295e(0x1e9),'description':a274_0x1f295e(0x1a2),'hidden':!![]},{'name':a274_0x1f295e(0x214),'meowKey':a274_0x1f295e(0x214),'type':a274_0x1f295e(0x1e9),'description':a274_0x1f295e(0x1d3),'hidden':!![]},{'name':a274_0x1f295e(0x20b),'meowKey':a274_0x1f295e(0x20b),'type':a274_0x1f295e(0x1b7),'description':a274_0x1f295e(0x1d9),'hidden':!![]},{'name':'enable-bff-save','meowKey':a274_0x1f295e(0x1d4),'type':a274_0x1f295e(0x1b7),'description':'Enable\x20Backend\x20Function\x20save','hidden':!![]},{'name':'id','meowKey':'id','type':a274_0x1f295e(0x1e9),'description':a274_0x1f295e(0x213),'hidden':!![]},{'name':'type','meowKey':'type','type':a274_0x1f295e(0x1e9),'description':a274_0x1f295e(0x1e5),'hidden':!![]},{'name':a274_0x1f295e(0x1b1),'meowKey':'file','type':a274_0x1f295e(0x1e9),'description':a274_0x1f295e(0x1d6),'hidden':!![]},{'name':a274_0x1f295e(0x1b0),'meowKey':'flowCode','type':a274_0x1f295e(0x1e9),'description':'Flow\x20code','hidden':!![]},{'name':a274_0x1f295e(0x19d),'meowKey':a274_0x1f295e(0x201),'type':'string','description':'Flow\x20name','hidden':!![]},{'name':a274_0x1f295e(0x193),'meowKey':a274_0x1f295e(0x1b4),'type':a274_0x1f295e(0x1e9),'description':a274_0x1f295e(0x1b8),'hidden':!![]},{'name':'flow-type','meowKey':'flowType','type':a274_0x1f295e(0x1e9),'description':'Flow\x20type','hidden':!![]},{'name':'dataset-code','meowKey':a274_0x1f295e(0x191),'type':a274_0x1f295e(0x1e9),'description':'Dataset\x20code','hidden':!![]},{'name':a274_0x1f295e(0x1af),'meowKey':'sqlcode','type':a274_0x1f295e(0x1e9),'description':a274_0x1f295e(0x1c7),'hidden':!![]},{'name':'sql-name','meowKey':a274_0x1f295e(0x1a3),'type':'string','description':a274_0x1f295e(0x1f5),'hidden':!![]},{'name':'sqlname','meowKey':a274_0x1f295e(0x187),'type':a274_0x1f295e(0x1e9),'description':a274_0x1f295e(0x1f5),'hidden':!![]},{'name':a274_0x1f295e(0x1b5),'meowKey':a274_0x1f295e(0x1c9),'type':'string','description':'DB\x20ID','hidden':!![]},{'name':a274_0x1f295e(0x203),'meowKey':a274_0x1f295e(0x203),'type':a274_0x1f295e(0x1e9),'description':a274_0x1f295e(0x19a),'hidden':!![]},{'name':a274_0x1f295e(0x1fc),'meowKey':a274_0x1f295e(0x1fc),'type':a274_0x1f295e(0x1e9),'description':a274_0x1f295e(0x21e),'hidden':!![]},{'name':a274_0x1f295e(0x20a),'meowKey':a274_0x1f295e(0x1b9),'type':a274_0x1f295e(0x1e9),'description':a274_0x1f295e(0x1be),'hidden':!![]},{'name':a274_0x1f295e(0x1f1),'meowKey':a274_0x1f295e(0x1f1),'type':a274_0x1f295e(0x1e9),'description':'Page\x20number','hidden':!![]},{'name':a274_0x1f295e(0x1bf),'meowKey':a274_0x1f295e(0x1c0),'type':a274_0x1f295e(0x1e9),'description':a274_0x1f295e(0x18b),'hidden':!![]},{'name':a274_0x1f295e(0x1e0),'meowKey':'pagesize','type':'string','description':a274_0x1f295e(0x18b),'hidden':!![]},{'name':a274_0x1f295e(0x1f9),'meowKey':a274_0x1f295e(0x1f9),'type':a274_0x1f295e(0x1e9),'description':'Keyword\x20filter','hidden':!![]},{'name':'code','meowKey':a274_0x1f295e(0x192),'type':a274_0x1f295e(0x1e9),'description':a274_0x1f295e(0x1c5),'hidden':!![]},{'name':a274_0x1f295e(0x1e8),'meowKey':a274_0x1f295e(0x1e8),'type':'string','description':'SQL\x20string','hidden':!![]},{'name':a274_0x1f295e(0x1df),'meowKey':a274_0x1f295e(0x1df),'type':a274_0x1f295e(0x1e9),'description':a274_0x1f295e(0x1f2),'hidden':!![]},{'name':'operation','meowKey':a274_0x1f295e(0x195),'type':'string','description':'Operation\x20type','hidden':!![]},{'name':'target','meowKey':'target','type':a274_0x1f295e(0x1e9),'description':a274_0x1f295e(0x204),'hidden':!![]},{'name':a274_0x1f295e(0x1aa),'meowKey':'skipImports','type':a274_0x1f295e(0x1b7),'description':a274_0x1f295e(0x1fb),'hidden':!![]},{'name':a274_0x1f295e(0x1fa),'meowKey':a274_0x1f295e(0x1fa),'type':a274_0x1f295e(0x1e9),'description':a274_0x1f295e(0x1fd),'hidden':!![]},{'name':a274_0x1f295e(0x1f4),'meowKey':'value','type':'string','description':a274_0x1f295e(0x1b2),'hidden':!![]},{'name':a274_0x1f295e(0x1d2),'meowKey':a274_0x1f295e(0x1d2),'type':a274_0x1f295e(0x1e9),'description':a274_0x1f295e(0x1c8),'hidden':!![]},{'name':'stdin','meowKey':a274_0x1f295e(0x1ef),'type':a274_0x1f295e(0x1b7),'description':a274_0x1f295e(0x1db),'hidden':!![]},{'name':a274_0x1f295e(0x1eb),'meowKey':a274_0x1f295e(0x1de),'type':a274_0x1f295e(0x1e9),'description':a274_0x1f295e(0x190),'hidden':!![]},{'name':'reveal','meowKey':a274_0x1f295e(0x1e1),'type':a274_0x1f295e(0x1b7),'description':a274_0x1f295e(0x1a9),'hidden':!![]},{'name':a274_0x1f295e(0x199),'meowKey':a274_0x1f295e(0x199),'type':a274_0x1f295e(0x1b7),'description':a274_0x1f295e(0x20c),'hidden':!![]},{'name':a274_0x1f295e(0x196),'meowKey':'confirm','type':'boolean','description':a274_0x1f295e(0x18e),'hidden':!![]},{'name':a274_0x1f295e(0x1d5),'meowKey':a274_0x1f295e(0x1d5),'type':a274_0x1f295e(0x1b7),'description':'Use\x20remote','hidden':!![]},{'name':'verbose','meowKey':a274_0x1f295e(0x20f),'type':a274_0x1f295e(0x1b7),'description':a274_0x1f295e(0x206),'hidden':!![]},{'name':a274_0x1f295e(0x217),'meowKey':a274_0x1f295e(0x1a7),'type':'string','description':'Expected\x20affected\x20count','hidden':!![]},{'name':'label','meowKey':a274_0x1f295e(0x1f3),'type':a274_0x1f295e(0x1e9),'description':a274_0x1f295e(0x1ea),'hidden':!![]},{'name':a274_0x1f295e(0x1c2),'meowKey':'parentId','type':'string','description':a274_0x1f295e(0x1d8),'hidden':!![]},{'name':a274_0x1f295e(0x1ca),'meowKey':a274_0x1f295e(0x1ca),'type':a274_0x1f295e(0x1e9),'description':a274_0x1f295e(0x188),'hidden':!![]},{'name':a274_0x1f295e(0x18d),'meowKey':a274_0x1f295e(0x1c6),'type':a274_0x1f295e(0x1e9),'description':a274_0x1f295e(0x1ae),'hidden':!![]},{'name':a274_0x1f295e(0x216),'meowKey':'expectPath','type':a274_0x1f295e(0x1e9),'description':a274_0x1f295e(0x1e6),'hidden':!![]},{'name':a274_0x1f295e(0x1cf),'meowKey':a274_0x1f295e(0x1f6),'type':a274_0x1f295e(0x1e9),'description':a274_0x1f295e(0x21f),'hidden':!![]},{'name':a274_0x1f295e(0x1dc),'meowKey':a274_0x1f295e(0x202),'type':a274_0x1f295e(0x1e9),'description':a274_0x1f295e(0x1d1),'hidden':!![]},{'name':'task-id','meowKey':a274_0x1f295e(0x1bd),'type':a274_0x1f295e(0x1e9),'description':'Asynchronous\x20task\x20ID','hidden':!![]},{'name':a274_0x1f295e(0x1cc),'meowKey':a274_0x1f295e(0x1bc),'type':a274_0x1f295e(0x1e9),'description':a274_0x1f295e(0x1ec),'hidden':!![]},{'name':a274_0x1f295e(0x205),'meowKey':a274_0x1f295e(0x19c),'type':a274_0x1f295e(0x1e9),'description':a274_0x1f295e(0x1fe),'hidden':!![]},{'name':a274_0x1f295e(0x1e2),'meowKey':a274_0x1f295e(0x1e2),'type':a274_0x1f295e(0x1e9),'description':a274_0x1f295e(0x1dd),'hidden':!![]}];function a274_0x1c3b(_0x2a9128,_0x44e005){_0x2a9128=_0x2a9128-0x187;const _0x5b62b5=a274_0x5b62();let _0x1c3bee=_0x5b62b5[_0x2a9128];return _0x1c3bee;}export const PIPELINE_FLAG_NAMES=new Set([a274_0x1f295e(0x1b3),a274_0x1f295e(0x1ad),a274_0x1f295e(0x219),'format','jq',a274_0x1f295e(0x18f),a274_0x1f295e(0x1d0),a274_0x1f295e(0x1c1),'ci']);export function buildMeowFlags(){const _0x48bee0=a274_0x1f295e;return Object[_0x48bee0(0x19f)](GLOBAL_FLAGS[_0x48bee0(0x1ab)](_0x3f9968=>[_0x3f9968['meowKey'],{'type':_0x3f9968['type']}]));}
|
package/lib/constant/defaults.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a275_0x22a0de=a275_0x50a8;(function(_0x1793d9,_0x51b789){const _0x3b1e35=a275_0x50a8,_0xa1e9c1=_0x1793d9();while(!![]){try{const _0x3a9588=parseInt(_0x3b1e35(0x137))/0x1+parseInt(_0x3b1e35(0x132))/0x2+parseInt(_0x3b1e35(0x133))/0x3*(parseInt(_0x3b1e35(0x134))/0x4)+-parseInt(_0x3b1e35(0x139))/0x5*(parseInt(_0x3b1e35(0x13f))/0x6)+-parseInt(_0x3b1e35(0x138))/0x7*(parseInt(_0x3b1e35(0x13d))/0x8)+parseInt(_0x3b1e35(0x136))/0x9*(parseInt(_0x3b1e35(0x13a))/0xa)+-parseInt(_0x3b1e35(0x135))/0xb;if(_0x3a9588===_0x51b789)break;else _0xa1e9c1['push'](_0xa1e9c1['shift']());}catch(_0x1bafa9){_0xa1e9c1['push'](_0xa1e9c1['shift']());}}}(a275_0x401d,0x5d16b));import{DEFAULT_API_DIR}from'../constant/paths.js';function a275_0x50a8(_0x464196,_0x44415a){_0x464196=_0x464196-0x132;const _0x401d33=a275_0x401d();let _0x50a8f3=_0x401d33[_0x464196];return _0x50a8f3;}function a275_0x401d(){const _0x201228=['383925iitEyY','76559oUdFBT','50145TbMXQy','464610KcHxKT','production','write','56gJLZDA','en-US','18kNivQO','58796hePyDX','714882eCqpWV','8MLSMxi','5954927jeyjgr','27NaThbp'];a275_0x401d=function(){return _0x201228;};return a275_0x401d();}export const DEFAULT_CONFIG_VALUES={'env':a275_0x22a0de(0x13b),'format':'compress','locale':a275_0x22a0de(0x13e),'riskLevel':a275_0x22a0de(0x13c),'apiDir':DEFAULT_API_DIR};export const DEFAULT_COMMAND_OUTPUT_FORMAT='compress';
|
package/lib/constant/domain.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a276_0x426342=a276_0x543b;(function(_0x1d6117,_0x4ef2a5){const _0x3c89e8=a276_0x543b,_0x2dc071=_0x1d6117();while(!![]){try{const _0x331dc=-parseInt(_0x3c89e8(0x122))/0x1+-parseInt(_0x3c89e8(0x126))/0x2*(-parseInt(_0x3c89e8(0x133))/0x3)+parseInt(_0x3c89e8(0x12f))/0x4*(-parseInt(_0x3c89e8(0x11b))/0x5)+-parseInt(_0x3c89e8(0x11f))/0x6*(parseInt(_0x3c89e8(0x132))/0x7)+parseInt(_0x3c89e8(0x121))/0x8+parseInt(_0x3c89e8(0x125))/0x9+-parseInt(_0x3c89e8(0x134))/0xa;if(_0x331dc===_0x4ef2a5)break;else _0x2dc071['push'](_0x2dc071['shift']());}catch(_0x152426){_0x2dc071['push'](_0x2dc071['shift']());}}}(a276_0x5a25,0x2a13b));import{getEnv,isProduction}from'../constant/env.js';import{DEFAULT_LOVRABET_REGION}from'../constant/region.js';import{getOfficialRoutingCdn,getOfficialRoutingProfile}from'../constant/routing-profile.js';function a276_0x543b(_0x3bbcb5,_0x24ad85){_0x3bbcb5=_0x3bbcb5-0x119;const _0x5a2524=a276_0x5a25();let _0x543bd3=_0x5a2524[_0x3bbcb5];return _0x543bd3;}let customApiDomain,customUserDomain,customRuntimeDomain,customSkillDomain,customKbDomain,customKbServiceDomain,allowOfficialKbServiceDefault=!![],customAppDomain,customLocalDomain,customCertificateDomain,customCdn,activeRegion=DEFAULT_LOVRABET_REGION;function getActiveRegionDomains(){const _0x2e92c5=a276_0x543b,_0x7092c9=getOfficialRoutingProfile(activeRegion);return isProduction(getEnv())?_0x7092c9['serviceDomains']['production']:_0x7092c9[_0x2e92c5(0x12a)][_0x2e92c5(0x137)]??_0x7092c9['serviceDomains'][_0x2e92c5(0x124)];}export function initDomains(_0x3073db){const _0x91fe8d=a276_0x543b;customApiDomain=_0x3073db?.['apiDomain'],customUserDomain=_0x3073db?.['userDomain'],customRuntimeDomain=_0x3073db?.['runtimeDomain'],customSkillDomain=_0x3073db?.[_0x91fe8d(0x138)],customKbDomain=_0x3073db?.[_0x91fe8d(0x129)],customKbServiceDomain=_0x3073db?.[_0x91fe8d(0x12d)],allowOfficialKbServiceDefault=_0x3073db?.[_0x91fe8d(0x135)]??!![],customAppDomain=_0x3073db?.[_0x91fe8d(0x11e)],customLocalDomain=_0x3073db?.[_0x91fe8d(0x127)],customCertificateDomain=_0x3073db?.[_0x91fe8d(0x130)],customCdn=_0x3073db?.[_0x91fe8d(0x128)],activeRegion=_0x3073db?.[_0x91fe8d(0x11c)]??DEFAULT_LOVRABET_REGION;}export const getUserDomain=()=>customUserDomain||getActiveRegionDomains()[a276_0x426342(0x11d)];export const getApiDomain=()=>customApiDomain||getActiveRegionDomains()['api'];export const getRuntimeDomain=()=>customRuntimeDomain||getActiveRegionDomains()[a276_0x426342(0x11a)];export const getSkillDomain=()=>customSkillDomain||getActiveRegionDomains()[a276_0x426342(0x131)];export const getKbDomain=()=>customKbDomain||customApiDomain||getActiveRegionDomains()['kb'];export const getKbServiceDomain=()=>{const _0xe2c6cc=a276_0x426342;if(customKbServiceDomain)return customKbServiceDomain;if(!allowOfficialKbServiceDefault)return undefined;return getActiveRegionDomains()[_0xe2c6cc(0x136)];};export const getAppDomain=()=>customAppDomain||getActiveRegionDomains()[a276_0x426342(0x12e)];export const getActiveRegion=()=>activeRegion;export const getLocalDomain=()=>customLocalDomain;export const getCertificateDomain=()=>customCertificateDomain;export const getActiveCdn=()=>customCdn||getOfficialRoutingCdn(activeRegion);function a276_0x5a25(){const _0x4f3237=['198TFPVnR','origin','1219512gHGAwQ','27917iJxfry','hostname','production','1361232gcovtX','1198kIjiWH','localDomain','cdn','kbDomain','serviceDomains','/app/','trim','kbServiceDomain','app','1005204LOyZgA','certificateDomain','skill','10913ILmrWd','1332sSEYoo','666310svUzuv','allowOfficialKbServiceDefault','kbService','daily','skillDomain','/web-app/app/','runtime','5HGuHYV','region','user','appDomain'];a276_0x5a25=function(){return _0x4f3237;};return a276_0x5a25();}export function isIndependentDeployment(){return!!(customApiDomain||customUserDomain||customRuntimeDomain||customSkillDomain||customKbDomain||customAppDomain||customLocalDomain||customCertificateDomain);}export function getSdkClientRoutingConfig(){if(customRuntimeDomain&&customRuntimeDomain!==getActiveRegionDomains()['runtime'])return{'runtimeDomain':customRuntimeDomain};if(activeRegion!==DEFAULT_LOVRABET_REGION)return{'runtimeDomain':getRuntimeDomain()};return{};}export const getAppBaseUrl=_0x12863d=>{const _0x243663=a276_0x426342,_0x2f3c43=encodeURIComponent(_0x12863d[_0x243663(0x12c)]());return isProduction(getEnv())?getAppDomain()+_0x243663(0x12b)+_0x2f3c43:getAppDomain()+_0x243663(0x119)+_0x2f3c43;};export const getPublishedAppDomain=_0x52baa4=>{const _0xea4388=a276_0x426342,_0x4c7faa=new URL(getAppDomain());return _0x4c7faa['hostname']=_0x52baa4[_0xea4388(0x12c)]()+'.'+_0x4c7faa[_0xea4388(0x123)],_0x4c7faa[_0xea4388(0x120)];};
|
package/lib/constant/env.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a277_0x1ac7a7=a277_0x3e7f;(function(_0x39cf6f,_0x136f16){const _0x5d53c5=a277_0x3e7f,_0x178e7f=_0x39cf6f();while(!![]){try{const _0x799334=parseInt(_0x5d53c5(0x114))/0x1*(-parseInt(_0x5d53c5(0x11c))/0x2)+-parseInt(_0x5d53c5(0x112))/0x3*(parseInt(_0x5d53c5(0x11a))/0x4)+-parseInt(_0x5d53c5(0x118))/0x5+-parseInt(_0x5d53c5(0x117))/0x6+-parseInt(_0x5d53c5(0x11d))/0x7*(parseInt(_0x5d53c5(0x120))/0x8)+parseInt(_0x5d53c5(0x122))/0x9*(-parseInt(_0x5d53c5(0x113))/0xa)+parseInt(_0x5d53c5(0x119))/0xb*(parseInt(_0x5d53c5(0x115))/0xc);if(_0x799334===_0x136f16)break;else _0x178e7f['push'](_0x178e7f['shift']());}catch(_0x1ae3be){_0x178e7f['push'](_0x178e7f['shift']());}}}(a277_0x3e0a,0x43bbb));export const RABETBASE_ENV_VALUES=[a277_0x1ac7a7(0x11e),a277_0x1ac7a7(0x11f)];export function normalizeEnv(_0x546c7c){const _0x1743e3=a277_0x1ac7a7;return _0x546c7c===_0x1743e3(0x11b)?_0x1743e3(0x11e):_0x546c7c;}export function isProduction(_0x5788d1){const _0x5819fa=a277_0x1ac7a7;return normalizeEnv(_0x5788d1)===_0x5819fa(0x11e);}export function isDaily(_0x57d7d5){const _0x2b27e5=a277_0x1ac7a7;return normalizeEnv(_0x57d7d5)===_0x2b27e5(0x11f);}export function isDev(_0x3b7af6){const _0x62f60d=a277_0x1ac7a7,_0x128abf=normalizeEnv(_0x3b7af6);return _0x128abf===_0x62f60d(0x116)||_0x128abf===_0x62f60d(0x121);}function a277_0x3e7f(_0x309613,_0x4268d4){_0x309613=_0x309613-0x112;const _0x3e0a76=a277_0x3e0a();let _0x3e7fb6=_0x3e0a76[_0x309613];return _0x3e7fb6;}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||a277_0x1ac7a7(0x11e));function a277_0x3e0a(){const _0x162b7f=['dev','18891IPkDZF','61767EGDbyb','1510kCMhwd','1NYoGeM','29628FNrVOr','development','1494438dmDcGU','212770bIowub','7249jtFixC','40yJqRCw','online','753254vYGMhJ','5467jEavxn','production','daily','1624XXoozb'];a277_0x3e0a=function(){return _0x162b7f;};return a277_0x3e0a();}export function getEnv(){return env;}export function initEnv(_0x47de2e){env=normalizeEnv(_0x47de2e);}
|
package/lib/constant/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a278_0x528fc1=a278_0x79e7;(function(_0x53959b,_0x5d976c){const _0x25b4f1=a278_0x79e7,_0x287291=_0x53959b();while(!![]){try{const _0x5685f0=-parseInt(_0x25b4f1(0x192))/0x1*(-parseInt(_0x25b4f1(0x19c))/0x2)+parseInt(_0x25b4f1(0x191))/0x3*(parseInt(_0x25b4f1(0x198))/0x4)+parseInt(_0x25b4f1(0x197))/0x5+parseInt(_0x25b4f1(0x190))/0x6+-parseInt(_0x25b4f1(0x199))/0x7+parseInt(_0x25b4f1(0x194))/0x8*(parseInt(_0x25b4f1(0x19d))/0x9)+parseInt(_0x25b4f1(0x195))/0xa*(-parseInt(_0x25b4f1(0x193))/0xb);if(_0x5685f0===_0x5d976c)break;else _0x287291['push'](_0x287291['shift']());}catch(_0x5ed41a){_0x287291['push'](_0x287291['shift']());}}}(a278_0xf1c4,0xe9ebe));function a278_0x79e7(_0x38358a,_0x1b7d4a){_0x38358a=_0x38358a-0x190;const _0xf1c41b=a278_0xf1c4();let _0x79e799=_0xf1c41b[_0x38358a];return _0x79e799;}export const RABETBASE_OUTPUT_FORMAT_VALUES=[a278_0x528fc1(0x19b),a278_0x528fc1(0x196),a278_0x528fc1(0x19a)];function a278_0xf1c4(){const _0xa01a39=['43348YJorYd','5630485xInZwd','compress','json','625358iDNSea','9mpQWps','743424lmCbVC','507HeMYmr','5vbEqgs','22396nvuOgI','7012856aIuFTl','13170WtKCea','pretty','242750vkRYFR'];a278_0xf1c4=function(){return _0xa01a39;};return a278_0xf1c4();}
|
package/lib/constant/paths.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a279_0x13a6(_0x444e2c,_0x4a533f){_0x444e2c=_0x444e2c-0x86;const _0x5e86c5=a279_0x5e86();let _0x13a63d=_0x5e86c5[_0x444e2c];return _0x13a63d;}const a279_0x3a2977=a279_0x13a6;(function(_0x52bd6d,_0x575e77){const _0x1f9c3d=a279_0x13a6,_0x4e2d58=_0x52bd6d();while(!![]){try{const _0x4d80ba=-parseInt(_0x1f9c3d(0x90))/0x1*(-parseInt(_0x1f9c3d(0x8b))/0x2)+-parseInt(_0x1f9c3d(0x92))/0x3*(-parseInt(_0x1f9c3d(0x8a))/0x4)+parseInt(_0x1f9c3d(0x8d))/0x5*(parseInt(_0x1f9c3d(0x91))/0x6)+-parseInt(_0x1f9c3d(0x8c))/0x7*(parseInt(_0x1f9c3d(0x8f))/0x8)+-parseInt(_0x1f9c3d(0x86))/0x9+-parseInt(_0x1f9c3d(0x89))/0xa+parseInt(_0x1f9c3d(0x87))/0xb*(-parseInt(_0x1f9c3d(0x8e))/0xc);if(_0x4d80ba===_0x575e77)break;else _0x4e2d58['push'](_0x4e2d58['shift']());}catch(_0x2a11a5){_0x4e2d58['push'](_0x4e2d58['shift']());}}}(a279_0x5e86,0xe31fd));function a279_0x5e86(){const _0x4d3ac6=['2526IaVIWh','12aTehny','13552191HpqXPP','22mRFgEN','./src/api','3312220yixehI','201368YyLCGI','12DrlDVI','935431cNnXXW','17845daqZiP','1918308opXUSm','24wwfVjJ','297337BaOghy'];a279_0x5e86=function(){return _0x4d3ac6;};return a279_0x5e86();}export const DEFAULT_API_DIR=a279_0x3a2977(0x88);
|
package/lib/constant/region.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x47251a,_0x35c52e){const _0xeb6f09=a280_0x3a0b,_0x15055a=_0x47251a();while(!![]){try{const _0x558856=-parseInt(_0xeb6f09(0xb7))/0x1*(-parseInt(_0xeb6f09(0xb4))/0x2)+parseInt(_0xeb6f09(0xb1))/0x3+-parseInt(_0xeb6f09(0xb8))/0x4+-parseInt(_0xeb6f09(0xb3))/0x5+-parseInt(_0xeb6f09(0xb5))/0x6*(parseInt(_0xeb6f09(0xb0))/0x7)+parseInt(_0xeb6f09(0xae))/0x8*(parseInt(_0xeb6f09(0xaf))/0x9)+parseInt(_0xeb6f09(0xb6))/0xa*(parseInt(_0xeb6f09(0xac))/0xb);if(_0x558856===_0x35c52e)break;else _0x15055a['push'](_0x15055a['shift']());}catch(_0x53a195){_0x15055a['push'](_0x15055a['shift']());}}}(a280_0x3f12,0xa66c0));import{DEFAULT_REGION,ENABLED_REGION_VALUES,REGION_ALIASES,REGION_VALUES}from'../generated/official-routing.js';export const LOVRABET_REGION_VALUES=REGION_VALUES;export const ENABLED_LOVRABET_REGION_VALUES=ENABLED_REGION_VALUES;export const DEFAULT_LOVRABET_REGION=DEFAULT_REGION;export function isLovrabetRegion(_0xd7b424){const _0x1ff006=a280_0x3a0b;return typeof _0xd7b424===_0x1ff006(0xb2)&&LOVRABET_REGION_VALUES[_0x1ff006(0xad)](_0xd7b424);}function a280_0x3f12(){const _0x473b2f=['2LNccrH','2680752WGeOKX','13275590ZBwgGL','416349stiAvA','3274260Xvyucy','22YqQUXe','includes','48DxiaPB','39870ZmPkFM','21aZPqaj','3217245JhiTjs','string','6649285kSFsvW'];a280_0x3f12=function(){return _0x473b2f;};return a280_0x3f12();}export function isEnabledLovrabetRegion(_0x18cf60){const _0x4fdf93=a280_0x3a0b;return typeof _0x18cf60===_0x4fdf93(0xb2)&&ENABLED_LOVRABET_REGION_VALUES[_0x4fdf93(0xad)](_0x18cf60);}function a280_0x3a0b(_0x46cdf5,_0x1d48aa){_0x46cdf5=_0x46cdf5-0xac;const _0x3f1221=a280_0x3f12();let _0x3a0b6e=_0x3f1221[_0x46cdf5];return _0x3a0b6e;}export function normalizeLovrabetRegion(_0x2a7b5d){if(typeof _0x2a7b5d!=='string')return undefined;const _0xd6933f=REGION_ALIASES[_0x2a7b5d]??_0x2a7b5d;return isLovrabetRegion(_0xd6933f)?_0xd6933f:undefined;}export function isInvalidLovrabetRegion(_0x2e102a){return _0x2e102a!==undefined&&_0x2e102a!==null&&_0x2e102a!==''&&normalizeLovrabetRegion(_0x2e102a)===undefined;}
|
package/lib/constant/risk.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
const a281_0x5490d2=a281_0x8d9d;(function(_0x231f6c,_0x5a9d83){const _0x56e110=a281_0x8d9d,_0x3fccce=_0x231f6c();while(!![]){try{const _0x57d88f=parseInt(_0x56e110(0xd5))/0x1+-parseInt(_0x56e110(0xd8))/0x2+parseInt(_0x56e110(0xda))/0x3*(-parseInt(_0x56e110(0xdf))/0x4)+parseInt(_0x56e110(0xd9))/0x5+-parseInt(_0x56e110(0xdc))/0x6*(parseInt(_0x56e110(0xd4))/0x7)+-parseInt(_0x56e110(0xd6))/0x8+-parseInt(_0x56e110(0xde))/0x9*(-parseInt(_0x56e110(0xdd))/0xa);if(_0x57d88f===_0x5a9d83)break;else _0x3fccce['push'](_0x3fccce['shift']());}catch(_0x5cec9d){_0x3fccce['push'](_0x3fccce['shift']());}}}(a281_0x49b6,0xafdfa));export const RISK_LEVEL_VALUES=['read',a281_0x5490d2(0xdb),a281_0x5490d2(0xd7)];function a281_0x8d9d(_0xa1f332,_0x42adce){_0xa1f332=_0xa1f332-0xd4;const _0x49b6d0=a281_0x49b6();let _0x8d9d1=_0x49b6d0[_0xa1f332];return _0x8d9d1;}function a281_0x49b6(){const _0x3d24d6=['14wOKXbU','792483dwcoaL','7964512FDnJpx','high-risk-write','2122210rAPCjq','2295520kCilAv','4179sNrdgF','write','3057966qfayEu','12690TqVkah','22563anEfNY','1828EEgAfP'];a281_0x49b6=function(){return _0x3d24d6;};return a281_0x49b6();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a282_0x4aa6(_0x566a8c,_0x2be307){_0x566a8c=_0x566a8c-0x1be;const _0x263c2e=a282_0x263c();let _0x4aa6dc=_0x263c2e[_0x566a8c];return _0x4aa6dc;}(function(_0x28b5ad,_0x3751d5){const _0x30f0ed=a282_0x4aa6,_0x49f84f=_0x28b5ad();while(!![]){try{const _0x509240=-parseInt(_0x30f0ed(0x1c1))/0x1+-parseInt(_0x30f0ed(0x1c3))/0x2*(-parseInt(_0x30f0ed(0x1c9))/0x3)+-parseInt(_0x30f0ed(0x1cb))/0x4+-parseInt(_0x30f0ed(0x1c2))/0x5*(parseInt(_0x30f0ed(0x1c8))/0x6)+-parseInt(_0x30f0ed(0x1cc))/0x7+-parseInt(_0x30f0ed(0x1c0))/0x8+-parseInt(_0x30f0ed(0x1c7))/0x9*(-parseInt(_0x30f0ed(0x1c4))/0xa);if(_0x509240===_0x3751d5)break;else _0x49f84f['push'](_0x49f84f['shift']());}catch(_0x1eea26){_0x49f84f['push'](_0x49f84f['shift']());}}}(a282_0x263c,0x867ff));import{OFFICIAL_ROUTING_PROFILES as a282_0x3a7872,ROUTING_CATALOG_DIGEST}from'../generated/official-routing.js';export const OFFICIAL_ROUTING_PROFILES=a282_0x3a7872;export{ROUTING_CATALOG_DIGEST};function a282_0x263c(){const _0x3444e0=['libraries','2656472yniEfk','633847XGZIVM','1936835sAYqqp','179482PuIKXR','10NemNdh','Official\x20routing\x20for\x20region\x20\x22','\x22\x20is\x20not\x20ready:\x20Lovrabet\x20CDN\x20Domain\x20is\x20not\x20configured.','18732969UYOoXN','6QYMCPv','33yhzmjr','cdn','1492432VbaqCh','5539100BLoOJL','lovrabet'];a282_0x263c=function(){return _0x3444e0;};return a282_0x263c();}export function getOfficialRoutingProfile(_0x67e74b){return OFFICIAL_ROUTING_PROFILES[_0x67e74b];}export function getOfficialRoutingCdn(_0x2d1479){const _0x4aa93a=a282_0x4aa6,_0x4eb34a=getOfficialRoutingProfile(_0x2d1479)[_0x4aa93a(0x1ca)];if(!_0x4eb34a[_0x4aa93a(0x1be)])throw new Error(_0x4aa93a(0x1c5)+_0x2d1479+_0x4aa93a(0x1c6));return{'libraries':_0x4eb34a[_0x4aa93a(0x1bf)],'lovrabet':_0x4eb34a[_0x4aa93a(0x1be)]};}
|