@lovrabet/rabetbase-cli 2.5.4-beta.4 → 2.5.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -2
- 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.d.ts +2 -0
- package/lib/commands/app/detail.js +1 -0
- 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/detail.js +1 -1
- package/lib/commands/dataset/extend-update.js +1 -1
- package/lib/commands/dataset/field-restore.js +1 -1
- package/lib/commands/dataset/field-update.js +1 -1
- package/lib/commands/dataset/generate.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/dataset/relation-audit.js +1 -1
- package/lib/commands/dataset/relation-create.js +1 -1
- package/lib/commands/dataset/relation-delete.js +1 -1
- package/lib/commands/dataset/relation-shared.js +1 -1
- package/lib/commands/dataset/relation-update.js +1 -1
- package/lib/commands/dataset/relations.js +1 -1
- package/lib/commands/dataset/rename.js +1 -1
- package/lib/commands/dataset/restore.js +1 -1
- package/lib/commands/dataset/user-deleted-field-list.js +1 -1
- package/lib/commands/db/analysis-batching.js +1 -1
- package/lib/commands/db/analyze-batch-plan.js +1 -1
- package/lib/commands/db/analyze-cancel.js +1 -1
- package/lib/commands/db/analyze-start.js +1 -1
- package/lib/commands/db/analyze-status.js +1 -1
- package/lib/commands/db/create.js +1 -1
- package/lib/commands/db/delete.js +1 -1
- package/lib/commands/db/detail.js +1 -1
- package/lib/commands/db/diff-refresh-start.js +1 -1
- package/lib/commands/db/diff-refresh-status.js +1 -1
- package/lib/commands/db/diff.js +1 -1
- package/lib/commands/db/index.js +1 -1
- package/lib/commands/db/list.js +1 -1
- package/lib/commands/db/shared.js +1 -1
- package/lib/commands/db/table-diff-shared.js +1 -1
- package/lib/commands/db/tables.js +1 -1
- package/lib/commands/db/test.js +1 -1
- package/lib/commands/db/update.js +1 -1
- package/lib/commands/deployment/index.js +1 -1
- package/lib/commands/deployment/sync-all.js +1 -1
- package/lib/commands/deployment/sync-jobs.js +1 -1
- package/lib/commands/deployment/sync-status.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/flow/create.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/publish.js +1 -1
- package/lib/commands/flow/runtime-resources-shared.js +1 -1
- package/lib/commands/flow/runtime-role-list.js +1 -1
- package/lib/commands/flow/runtime-role-user-list.js +1 -1
- package/lib/commands/flow/runtime-user-search.js +1 -1
- package/lib/commands/flow/shared.js +1 -1
- package/lib/commands/flow/update.js +1 -1
- package/lib/commands/flow/validate.js +1 -1
- package/lib/commands/instant-api-policy/current.js +1 -1
- package/lib/commands/instant-api-policy/index.js +1 -1
- package/lib/commands/instant-api-policy/init.js +1 -1
- package/lib/commands/instant-api-policy/publish.js +1 -1
- package/lib/commands/instant-api-policy/pull.js +1 -1
- package/lib/commands/instant-api-policy/revision.js +1 -1
- package/lib/commands/instant-api-policy/revisions.js +1 -1
- package/lib/commands/instant-api-policy/rollback.js +1 -1
- package/lib/commands/instant-api-policy/shared.js +1 -1
- package/lib/commands/instant-api-policy/validate.js +1 -1
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/nudge.js +1 -1
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/issue/shared.js +1 -1
- package/lib/commands/kb/create.js +1 -1
- package/lib/commands/kb/delete.js +1 -1
- package/lib/commands/kb/detail.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/kb/list.js +1 -1
- package/lib/commands/kb/search.js +1 -1
- package/lib/commands/kb/shared.js +1 -1
- package/lib/commands/kb/update.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/asset-update.js +1 -1
- package/lib/commands/menu/delete.js +1 -1
- package/lib/commands/menu/external-link-create.js +1 -1
- package/lib/commands/menu/external-link-update.js +1 -1
- package/lib/commands/menu/group-create.js +1 -1
- package/lib/commands/menu/group-update.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/list.js +1 -1
- package/lib/commands/menu/move.js +1 -1
- package/lib/commands/menu/regroup-start.js +1 -1
- package/lib/commands/menu/rename.js +1 -1
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/delete-plan.js +1 -1
- package/lib/commands/menu/shared/facts.js +1 -1
- package/lib/commands/menu/shared/index.js +1 -1
- package/lib/commands/menu/shared/inquirer.js +1 -1
- package/lib/commands/menu/shared/local-pages.d.ts +1 -1
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.d.ts +3 -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.d.ts +2 -0
- package/lib/commands/menu/shared/path.js +1 -0
- package/lib/commands/menu/shared/service.d.ts +6 -1
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/subapp-assets.d.ts +28 -0
- package/lib/commands/menu/shared/subapp-assets.js +1 -0
- package/lib/commands/menu/shared/sync-core.d.ts +2 -1
- package/lib/commands/menu/shared/sync-core.js +1 -1
- package/lib/commands/menu/shared/types.d.ts +14 -4
- 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.d.ts +2 -0
- package/lib/commands/menu/subapp-assets-status.js +1 -0
- package/lib/commands/menu/subapp-assets-update.d.ts +2 -0
- package/lib/commands/menu/subapp-assets-update.js +1 -0
- 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 +15 -0
- 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-relation.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/flow-config.js +1 -1
- package/lib/core/instant-api-policy/config.js +1 -1
- package/lib/core/kb-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/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 +1 -1
- package/skills/rabetbase/SKILL.md +21 -12
- package/skills/rabetbase/guides/backend-function.md +2 -7
- package/skills/rabetbase/guides/bff-creation-workflow.md +24 -23
- package/skills/rabetbase/guides/host-frontend-integration.md +62 -0
- package/skills/rabetbase/guides/independent-deployment.md +45 -0
- package/skills/rabetbase/guides/troubleshooting.md +9 -1
- package/skills/rabetbase/references/rabetbase-app-detail.md +31 -0
- package/skills/rabetbase/references/rabetbase-bff-detail.md +1 -1
- package/skills/rabetbase/references/rabetbase-bff-push.md +2 -2
- package/skills/rabetbase/references/rabetbase-data-list-status.md +1 -0
- package/skills/rabetbase/references/rabetbase-deployment-sync-all.md +5 -1
- package/skills/rabetbase/references/rabetbase-menu-asset-update.md +9 -7
- package/skills/rabetbase/references/rabetbase-menu-list.md +2 -2
- package/skills/rabetbase/references/rabetbase-menu-subapp-assets-status.md +19 -0
- package/skills/rabetbase/references/rabetbase-menu-subapp-assets-update.md +27 -0
- package/skills/rabetbase/references/rabetbase-menu-sync.md +40 -14
- package/skills/rabetbase/references/rabetbase-page-create.md +1 -1
- package/skills/rabetbase/references/rabetbase-page-generate-start.md +5 -3
- package/skills/rabetbase/references/rabetbase-page-generate-status.md +1 -0
- package/skills/rabetbase.manifest.json +8 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a255_0x27d067=a255_0x325b;(function(_0x58d375,_0xd885f9){const _0x1acd14=a255_0x325b,_0x510d46=_0x58d375();while(!![]){try{const _0x3d2340=-parseInt(_0x1acd14(0x15d))/0x1+-parseInt(_0x1acd14(0x163))/0x2+-parseInt(_0x1acd14(0x15a))/0x3+-parseInt(_0x1acd14(0x158))/0x4*(parseInt(_0x1acd14(0x164))/0x5)+parseInt(_0x1acd14(0x15c))/0x6*(-parseInt(_0x1acd14(0x159))/0x7)+parseInt(_0x1acd14(0x161))/0x8+-parseInt(_0x1acd14(0x15e))/0x9*(-parseInt(_0x1acd14(0x165))/0xa);if(_0x3d2340===_0xd885f9)break;else _0x510d46['push'](_0x510d46['shift']());}catch(_0x5e2a78){_0x510d46['push'](_0x510d46['shift']());}}}(a255_0x24ec,0x80c25));import{buildAppAddFlags,runAppAdd,validateAppName}from'../../commands/common/app-registry.js';export const workspaceAddDefinition={'service':a255_0x27d067(0x162),'command':'add','description':a255_0x27d067(0x157),'risk':a255_0x27d067(0x15f),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':a255_0x27d067(0x15b),'description':'App\x20profile\x20name','required':!![]}],'flags':buildAppAddFlags(),'validate':_0x4ced41=>validateAppName(_0x4ced41,a255_0x27d067(0x160)),'execute':_0xd79075=>runAppAdd(_0xd79075,a255_0x27d067(0x160))};function a255_0x325b(_0x22337a,_0x4a832d){_0x22337a=_0x22337a-0x157;const _0x24ece5=a255_0x24ec();let _0x325b2f=_0x24ece5[_0x22337a];return _0x325b2f;}function a255_0x24ec(){const _0x5a4c74=['1062452zRQPlA','14UuVRri','2734308KJAUsE','name','417732IFVngU','976658NNcNTP','473706mdMIFI','write','workspace\x20add','3502680pCFkMi','workspace','1340518PhGefn','5xyeJYn','580ptnBVD','Register\x20an\x20app\x20profile\x20in\x20the\x20current\x20workspace\x20(or\x20--global)'];a255_0x24ec=function(){return _0x5a4c74;};return a255_0x24ec();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a256_0x63e7ad=a256_0xd64c;(function(_0x3e68a8,_0x9a730b){const _0xeb6c10=a256_0xd64c,_0x303277=_0x3e68a8();while(!![]){try{const _0x5d9146=-parseInt(_0xeb6c10(0x87))/0x1+-parseInt(_0xeb6c10(0x94))/0x2*(parseInt(_0xeb6c10(0xb4))/0x3)+-parseInt(_0xeb6c10(0x8d))/0x4*(parseInt(_0xeb6c10(0x7b))/0x5)+-parseInt(_0xeb6c10(0xb7))/0x6*(-parseInt(_0xeb6c10(0x9e))/0x7)+parseInt(_0xeb6c10(0x7a))/0x8*(-parseInt(_0xeb6c10(0xa2))/0x9)+-parseInt(_0xeb6c10(0xa8))/0xa*(-parseInt(_0xeb6c10(0x9f))/0xb)+parseInt(_0xeb6c10(0xb0))/0xc;if(_0x5d9146===_0x9a730b)break;else _0x303277['push'](_0x303277['shift']());}catch(_0x432b7a){_0x303277['push'](_0x303277['shift']());}}}(a256_0x2941,0x38d61));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';function a256_0x2941(){const _0x45cbfc=['apps','string','riskLevel','isArray','trim','7050flhZDa','defaultFormat','join','format','\x20workspace\x20<init|use>\x20--app\x20<name>\x20[--appcode\x20<code>]','Switch\x20the\x20current\x20workspace\x20app\x20binding','flag','\x20--appcode\x20<code>`.','11325564KfGWPa','updated','workspace','\x20workspace\x20use\x20--app\x20<name>`.','171579Kyjqgq','.\x20Credentials:\x20not\x20written.','app','48ocjInQ','Workspace\x20','length','24GqhTGn','5FUixhY','env','locale','write','validation','pageSize','API\x20directory\x20path\x20for\x20this\x20workspace\x20app\x20profile','Default\x20page\x20size\x20for\x20this\x20workspace\x20app\x20profile','use','region','Missing\x20workspace\x20app\x20selector.','Target\x20environment','218309HzMQfv','Use\x20`','App\x20profile\x20name\x20to\x20use\x20in\x20this\x20workspace','workspace.','Invalid\x20appcode:\x20','appcode','1531928TFvllY','\x20workspace\x20','Initialize\x20the\x20current\x20workspace\x20app\x20binding','apiDir','init','globalConfig','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20`','2yEbEDI','keys','apiGroup','\x20(appcode:\x20','number','Join\x20key\x20for\x20app\x20profiles\x20that\x20share\x20one\x20generated\x20API\x20model\x20registry','str','Default\x20output\x20format\x20for\x20this\x20workspace\x20app\x20profile','project','\x22\x20not\x20found.','45570FItWFI','1947ZHGrDc','App\x20code\x20to\x20bind\x20to\x20this\x20workspace','App\x20\x22','688131SyuxJI'];a256_0x2941=function(){return _0x45cbfc;};return a256_0x2941();}function a256_0xd64c(_0x3b233f,_0x2923bd){_0x3b233f=_0x3b233f-0x7a;const _0x294120=a256_0x2941();let _0xd64c04=_0x294120[_0x3b233f];return _0xd64c04;}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+a256_0x63e7ad(0xac),SAFE_PROFILE_KEYS=[a256_0x63e7ad(0x8c),a256_0x63e7ad(0x96),a256_0x63e7ad(0x84),a256_0x63e7ad(0x7c),'apiDir',a256_0x63e7ad(0xab),a256_0x63e7ad(0x80),a256_0x63e7ad(0xa5),'locale'],workspaceFlags=[{'name':a256_0x63e7ad(0xb6),'type':'string','description':a256_0x63e7ad(0x89)},{'name':a256_0x63e7ad(0x8c),'type':a256_0x63e7ad(0xa4),'description':a256_0x63e7ad(0xa0)},{'name':a256_0x63e7ad(0x96),'type':'string','description':a256_0x63e7ad(0x99)},{'name':a256_0x63e7ad(0x84),'type':a256_0x63e7ad(0xa4),'description':'Country/region\x20for\x20this\x20workspace\x20app\x20profile','enum':[...ENABLED_LOVRABET_REGION_VALUES]},{'name':a256_0x63e7ad(0x7c),'type':a256_0x63e7ad(0xa4),'description':a256_0x63e7ad(0x86),'enum':[...RABETBASE_ENV_VALUES]},{'name':'apiDir','type':'string','description':a256_0x63e7ad(0x81)},{'name':a256_0x63e7ad(0xa9),'type':a256_0x63e7ad(0xa4),'description':a256_0x63e7ad(0x9b),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':a256_0x63e7ad(0x80),'type':a256_0x63e7ad(0x98),'description':a256_0x63e7ad(0x82)},{'name':a256_0x63e7ad(0xa5),'type':a256_0x63e7ad(0xa4),'description':'Risk\x20level\x20for\x20this\x20workspace\x20app\x20profile','enum':[...RISK_LEVEL_VALUES]},{'name':a256_0x63e7ad(0x7d),'type':a256_0x63e7ad(0xa4),'description':'App\x20locale\x20for\x20this\x20workspace\x20app\x20profile\x20(not\x20CLI\x20language;\x20reserved\x20for\x20later\x20app\x20use)'}];function isRecord(_0x9fe14a){const _0x209fc5=a256_0x63e7ad;return!!_0x9fe14a&&typeof _0x9fe14a==='object'&&!Array[_0x209fc5(0xa6)](_0x9fe14a);}function assertValidAppcode(_0x326c2f){const _0x1f8471=a256_0x63e7ad,{valid:_0x48027c,message:_0x23ce45}=validateAppcode(_0x326c2f);if(!_0x48027c)throw CliErrors[_0x1f8471(0x7f)](_0x1f8471(0x8b)+_0x326c2f,_0x23ce45);}function sanitizeProfile(_0x1acbd9){if(!isRecord(_0x1acbd9))return{};const _0x3fca8a={};for(const _0x13a70e of SAFE_PROFILE_KEYS){if(_0x1acbd9[_0x13a70e]!==undefined)_0x3fca8a[_0x13a70e]=_0x1acbd9[_0x13a70e];}return _0x3fca8a;}function cloneProfile(_0x196d74){return isRecord(_0x196d74)?{..._0x196d74}:{};}function collectWorkspaceProfileOverrides(_0x3bd77d){const _0x1c7d45=a256_0x63e7ad,_0x2c8e65={},_0x33084d=_0x3bd77d[_0x1c7d45(0x9a)](_0x1c7d45(0x96)),_0x545d0c=_0x3bd77d[_0x1c7d45(0x9a)]('region'),_0x579000=_0x3bd77d[_0x1c7d45(0x9a)](_0x1c7d45(0x7c)),_0x277283=_0x3bd77d[_0x1c7d45(0x9a)]('apiDir'),_0x44b925=_0x3bd77d[_0x1c7d45(0x9a)]('defaultFormat'),_0x678153=_0x3bd77d[_0x1c7d45(0xae)]('pageSize'),_0x196adf=_0x3bd77d[_0x1c7d45(0x9a)](_0x1c7d45(0xa5)),_0x86d562=_0x3bd77d[_0x1c7d45(0x9a)]('locale');if(_0x33084d)_0x2c8e65[_0x1c7d45(0x96)]=_0x33084d;if(_0x545d0c)_0x2c8e65['region']=_0x545d0c;if(_0x579000)_0x2c8e65[_0x1c7d45(0x7c)]=_0x579000;if(_0x277283)_0x2c8e65[_0x1c7d45(0x90)]=_0x277283;if(_0x44b925)_0x2c8e65[_0x1c7d45(0xab)]=_0x44b925;if(_0x678153!==undefined&&_0x678153!=='')_0x2c8e65[_0x1c7d45(0x80)]=Number(_0x678153);if(_0x196adf)_0x2c8e65[_0x1c7d45(0xa5)]=_0x196adf;if(_0x86d562)_0x2c8e65[_0x1c7d45(0x7d)]=_0x86d562;return _0x2c8e65;}async function validateWorkspaceArgs(_0x4f0df6){const _0x4ff6f6=a256_0x63e7ad,_0x27d601=_0x4f0df6[_0x4ff6f6(0x9a)](_0x4ff6f6(0xb6))[_0x4ff6f6(0xa7)](),_0x38d40e=_0x4f0df6[_0x4ff6f6(0x9a)](_0x4ff6f6(0x8c))[_0x4ff6f6(0xa7)]();if(!_0x27d601&&!_0x38d40e)throw CliErrors[_0x4ff6f6(0x7f)](_0x4ff6f6(0x85),_0x4ff6f6(0x88)+CLI_BIN_NAME+_0x4ff6f6(0x93)+CLI_BIN_NAME+_0x4ff6f6(0xb3));if(_0x38d40e)assertValidAppcode(_0x38d40e);}function resolveKnownApps(){const _0x19ea7e=a256_0x63e7ad,{config:_0x26c3a7,layers:_0x1cf7fe}=readRawConfigWithLayers(),_0x583ac8=isRecord(_0x26c3a7['apps'])?_0x26c3a7[_0x19ea7e(0xa3)]:{},_0x2de726=isRecord(_0x1cf7fe[_0x19ea7e(0x92)][_0x19ea7e(0xa3)])?_0x1cf7fe['globalConfig'][_0x19ea7e(0xa3)]:{};return{..._0x2de726,..._0x583ac8};}async function configureWorkspace(_0x4ae7f9,_0x5e7cbb){const _0xa9c5f2=a256_0x63e7ad,_0x551dc2=_0x4ae7f9[_0xa9c5f2(0x9a)](_0xa9c5f2(0xb6))[_0xa9c5f2(0xa7)](),_0x4bf090=_0x4ae7f9[_0xa9c5f2(0x9a)](_0xa9c5f2(0x8c))['trim'](),_0x2c2ee1=_0x551dc2||_0x4bf090;if(!_0x2c2ee1)throw CliErrors[_0xa9c5f2(0x7f)](_0xa9c5f2(0x85),_0xa9c5f2(0x88)+CLI_BIN_NAME+_0xa9c5f2(0x93)+CLI_BIN_NAME+_0xa9c5f2(0xb3));if(_0x4bf090)assertValidAppcode(_0x4bf090);const _0x4fccba=resolveWriteConfigPath(_0xa9c5f2(0x9c)),_0x185c7b=readConfigFile(_0x4fccba),_0x40d724=resolveKnownApps(),_0x1a1a5b=isRecord(_0x185c7b['apps'])?{..._0x185c7b['apps']}:{},_0x5b2af1=cloneProfile(_0x1a1a5b[_0x2c2ee1]),_0xe2d230=sanitizeProfile(_0x40d724[_0x2c2ee1]),_0x272398=_0x4bf090?{}:_0xe2d230,_0x1c74f8=_0x4bf090||_0x272398[_0xa9c5f2(0x8c)];if(!_0x1c74f8){const _0x395e41=Object[_0xa9c5f2(0x95)](_0x40d724),_0x1187d7=_0x395e41[_0xa9c5f2(0xb9)]===0x0?'Use\x20`'+CLI_BIN_NAME+_0xa9c5f2(0x8e)+_0x5e7cbb+'\x20--app\x20'+_0x2c2ee1+_0xa9c5f2(0xaf):'Pass\x20--appcode\x20<code>,\x20or\x20choose\x20one\x20of:\x20'+_0x395e41[_0xa9c5f2(0xaa)](',\x20');throw CliErrors[_0xa9c5f2(0x7f)](_0xa9c5f2(0xa1)+_0x2c2ee1+_0xa9c5f2(0x9d),_0x1187d7);}assertValidAppcode(String(_0x1c74f8));const _0x4abae7={..._0x272398,..._0x5b2af1,'appcode':String(_0x1c74f8),...collectWorkspaceProfileOverrides(_0x4ae7f9)};return _0x1a1a5b[_0x2c2ee1]=_0x4abae7,_0x185c7b[_0xa9c5f2(0xa3)]=_0x1a1a5b,normalizeStoredDefaultApp(_0x185c7b,_0x2c2ee1),delete _0x185c7b[_0xa9c5f2(0x8c)],delete _0x185c7b[_0xa9c5f2(0xb6)],_0x4abae7[_0xa9c5f2(0x7c)]&&(_0x185c7b[_0xa9c5f2(0x7c)]=_0x4abae7[_0xa9c5f2(0x7c)]),writeConfigFile(_0x4fccba,_0x185c7b),{'ok':!![],'message':_0xa9c5f2(0xb8)+(_0x5e7cbb==='init'?'initialized':_0xa9c5f2(0xb1))+':\x20'+_0x2c2ee1+_0xa9c5f2(0x97)+_0x4abae7[_0xa9c5f2(0x8c)]+').\x20Config:\x20'+_0x4fccba+_0xa9c5f2(0xb5),'data':{'operation':_0xa9c5f2(0x8a)+_0x5e7cbb,'configPath':_0x4fccba,'app':_0x2c2ee1,'appcode':_0x4abae7['appcode'],'apiGroup':_0x4abae7[_0xa9c5f2(0x96)]??null,'region':_0x4abae7[_0xa9c5f2(0x84)]??null,'env':_0x4abae7['env']??null,'credentialsWritten':![]}};}const workspaceInitDefinition={'service':a256_0x63e7ad(0xb2),'command':a256_0x63e7ad(0x91),'description':a256_0x63e7ad(0x8f),'risk':a256_0x63e7ad(0x7e),'requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x5a40fd=>configureWorkspace(_0x5a40fd,a256_0x63e7ad(0x91))},workspaceUseDefinition={'service':a256_0x63e7ad(0xb2),'command':a256_0x63e7ad(0x83),'description':a256_0x63e7ad(0xad),'risk':a256_0x63e7ad(0x7e),'requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x339d3=>configureWorkspace(_0x339d3,a256_0x63e7ad(0x83))};export const workspaceDefinitions=[workspaceInitDefinition,workspaceUseDefinition,workspaceAddDefinition,workspaceRemoveDefinition];export{WORKSPACE_USAGE};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a257_0x82ebd1=a257_0x8dc9;(function(_0x12c30e,_0x2951b8){const _0x4f2a7d=a257_0x8dc9,_0x46bae6=_0x12c30e();while(!![]){try{const _0x4e3af6=-parseInt(_0x4f2a7d(0xd7))/0x1*(-parseInt(_0x4f2a7d(0xd5))/0x2)+-parseInt(_0x4f2a7d(0xd6))/0x3+parseInt(_0x4f2a7d(0xd3))/0x4+parseInt(_0x4f2a7d(0xca))/0x5*(parseInt(_0x4f2a7d(0xcf))/0x6)+parseInt(_0x4f2a7d(0xd2))/0x7+parseInt(_0x4f2a7d(0xcb))/0x8+-parseInt(_0x4f2a7d(0xcc))/0x9;if(_0x4e3af6===_0x2951b8)break;else _0x46bae6['push'](_0x46bae6['shift']());}catch(_0x2ac5bd){_0x46bae6['push'](_0x46bae6['shift']());}}}(a257_0x4727,0x5cfbc));function a257_0x8dc9(_0x3161d5,_0x41b71a){_0x3161d5=_0x3161d5-0xc9;const _0x4727cc=a257_0x4727();let _0x8dc944=_0x4727cc[_0x3161d5];return _0x8dc944;}function a257_0x4727(){const _0xfc1be1=['4629208TjLfxR','11299383uGGWYd','workspace','remove','246kNCJZK','write','workspace\x20remove','5204248GVSXNq','1080340OHdXFY','App\x20profile\x20name\x20to\x20remove','173654JEHNrX','845007RzhrMh','1lUBJAR','name','29145BAtJlR'];a257_0x4727=function(){return _0xfc1be1;};return a257_0x4727();}import{buildAppRemoveFlags,runAppRemove,validateAppName}from'../../commands/common/app-registry.js';export const workspaceRemoveDefinition={'service':a257_0x82ebd1(0xcd),'command':a257_0x82ebd1(0xce),'description':'Remove\x20an\x20app\x20profile\x20from\x20the\x20current\x20workspace\x20(or\x20--global)','risk':a257_0x82ebd1(0xd0),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':a257_0x82ebd1(0xc9),'description':a257_0x82ebd1(0xd4),'required':!![]}],'flags':buildAppRemoveFlags(),'validate':_0x2aa877=>validateAppName(_0x2aa877,a257_0x82ebd1(0xd1)),'execute':_0x53ad3a=>runAppRemove(_0x53ad3a,a257_0x82ebd1(0xd1))};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a253_0xf04a15=a253_0x11db;(function(_0xe68b37,_0x2b9e2b){const _0x24029b=a253_0x11db,_0x4b5251=_0xe68b37();while(!![]){try{const _0x1beaad=parseInt(_0x24029b(0x1be))/0x1*(-parseInt(_0x24029b(0x1de))/0x2)+-parseInt(_0x24029b(0x1d0))/0x3+parseInt(_0x24029b(0x205))/0x4+parseInt(_0x24029b(0x1b8))/0x5+-parseInt(_0x24029b(0x1d6))/0x6*(parseInt(_0x24029b(0x1ce))/0x7)+parseInt(_0x24029b(0x1e5))/0x8+parseInt(_0x24029b(0x1fd))/0x9*(parseInt(_0x24029b(0x1fc))/0xa);if(_0x1beaad===_0x2b9e2b)break;else _0x4b5251['push'](_0x4b5251['shift']());}catch(_0x5e5112){_0x4b5251['push'](_0x4b5251['shift']());}}}(a253_0x3a62,0x75d94));function a253_0x3a62(){const _0x2b9256=['Invalid\x20','Unsupported\x20enterprise\x20CDN\x20field(s):\x20',':\x20\x22','replace','Enterprise\x20routing\x20manifests\x20cannot\x20be\x20combined\x20with\x20individual\x20Domain\x20flags.','21508kuYAfw','Unsupported\x20routing\x20manifest:\x20expected\x20protocol\x20\x22','isArray','Enterprise\x20','Enterprise\x20routing\x20manifest\x20is\x20missing\x20required\x20Domain(s):\x20','certificateDomain','Domain\x20config\x20file\x20not\x20found:\x20','2354005SVyBSc','kbServiceDomain','default','trim','keys','Allowed\x20fields:\x20','1365Cwtcex','Update\x20the\x20manifest\x20so\x20both\x20CLIs\x20consume\x20the\x20same\x20routing\x20data.','\x20without\x20credentials,\x20query,\x20or\x20fragment.','legacy','app-domain','Invalid\x20enterprise\x20routing\x20manifest:\x20cdn\x20must\x20be\x20an\x20object.','password','base\x20URL','Invalid\x20domain\x20config:\x20provide\x20at\x20least\x20one\x20supported\x20Domain.',':\x20expected\x20an\x20HTTPS\x20origin\x20without\x20credentials,\x20path,\x20query,\x20or\x20fragment.','includes','filter','validation','href','userDomain','lovrabet','8519FvjWul','\x22\x20is\x20not\x20a\x20valid\x20URL.','2059542GajctM','pathname','https:','cdn','domain-config','rabetbase-cli','6sGIusU','kind','Invalid\x20cdn.','skillDomain','enterprise-v1','\x20and\x20has\x20no\x20default.','utf8','join','338AdRbVh','string','runtimeDomain','certificate-domain',':\x20expected\x20an\x20HTTPS\x20origin\x20or\x20consumer\x20Domain\x20object.','length','\x20does\x20not\x20provide\x20a\x20Domain\x20for\x20','4386560hFmRXw','search','For\x20internal\x20deployments,\x20terminate\x20TLS\x20at\x20the\x20ingress,\x20reverse\x20proxy,\x20or\x20load\x20balancer;\x20an\x20internal\x20CA\x20is\x20supported.','str','mode','apiDomain','kb-service-domain','domains','username','origin','\x22\x20and\x20kind\x20\x22','protocol','Invalid\x20domain\x20config\x20JSON:\x20','localDomain','kb-domain','object','hash',':\x20expected\x20a\x20non-empty\x20HTTPS\x20URL.','kbDomain','skillHubDomain','cwd','parse','Invalid\x20enterprise\x20routing\x20config:\x20expected\x20an\x20object.','30620GpyVYL','1107LxRAyg','appDomain','Invalid\x20domain\x20config:\x20expected\x20a\x20JSON\x20object.'];a253_0x3a62=function(){return _0x2b9256;};return a253_0x3a62();}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=[a253_0xf04a15(0x1cc),'apiDomain','runtimeDomain',a253_0xf04a15(0x1d9),a253_0xf04a15(0x1f7),a253_0xf04a15(0x1b9),'appDomain',a253_0xf04a15(0x1f2),a253_0xf04a15(0x1b6)];const DOMAIN_FLAGS={'userDomain':'user-domain','apiDomain':'api-domain','runtimeDomain':'runtime-domain','skillDomain':'skill-domain','kbDomain':a253_0xf04a15(0x1f3),'kbServiceDomain':a253_0xf04a15(0x1eb),'appDomain':a253_0xf04a15(0x1c2),'localDomain':'local-domain','certificateDomain':a253_0xf04a15(0x1e1)};export const LEGACY_DOMAIN_CONFIG_FIELDS=['agentDomain','platformDomain',a253_0xf04a15(0x1f8)];const ENTERPRISE_TO_LOCAL_FIELD={'userDomain':a253_0xf04a15(0x1cc),'apiDomain':a253_0xf04a15(0x1ea),'runtimeDomain':a253_0xf04a15(0x1e0),'skillDomain':a253_0xf04a15(0x1d9),'kbDomain':a253_0xf04a15(0x1f7),'kbServiceDomain':a253_0xf04a15(0x1b9),'appDomain':a253_0xf04a15(0x1fe),'localDomain':a253_0xf04a15(0x1f2),'certificateDomain':a253_0xf04a15(0x1b6)},ROUTING_CONSUMER=a253_0xf04a15(0x1d5);export function normalizeDomainOrigin(_0x3ebc3b,_0x58b414){const _0x44d622=a253_0xf04a15;if(typeof _0x58b414!=='string'||!_0x58b414[_0x44d622(0x1bb)]())throw CliErrors[_0x44d622(0x1ca)](_0x44d622(0x200)+_0x3ebc3b+':\x20expected\x20a\x20non-empty\x20HTTPS\x20origin.');let _0x2976c9;try{_0x2976c9=new URL(_0x58b414[_0x44d622(0x1bb)]());}catch{throw CliErrors[_0x44d622(0x1ca)](_0x44d622(0x200)+_0x3ebc3b+_0x44d622(0x202)+_0x58b414+'\x22\x20is\x20not\x20a\x20valid\x20URL.');}if(_0x2976c9[_0x44d622(0x1f0)]!==_0x44d622(0x1d2)||_0x2976c9[_0x44d622(0x1ed)]||_0x2976c9[_0x44d622(0x1c4)]||_0x2976c9['pathname']!=='/'&&_0x2976c9[_0x44d622(0x1d1)]!==''||_0x2976c9[_0x44d622(0x1e6)]||_0x2976c9[_0x44d622(0x1f5)])throw CliErrors[_0x44d622(0x1ca)](_0x44d622(0x200)+_0x3ebc3b+_0x44d622(0x1c7),_0x44d622(0x1e7));return _0x2976c9[_0x44d622(0x1ee)];}export function normalizeRoutingDomainValue(_0x4e5b42,_0x38101c){const _0x1e4d6e=a253_0xf04a15;if(typeof _0x38101c===_0x1e4d6e(0x1df))return normalizeDomainOrigin(_0x4e5b42,_0x38101c);if(!_0x38101c||typeof _0x38101c!==_0x1e4d6e(0x1f4)||Array['isArray'](_0x38101c))throw CliErrors[_0x1e4d6e(0x1ca)](_0x1e4d6e(0x200)+_0x4e5b42+_0x1e4d6e(0x1e2));const _0x53f459=_0x38101c,_0x34147c=_0x53f459[ROUTING_CONSUMER]??_0x53f459[_0x1e4d6e(0x1ba)];if(_0x34147c===undefined)throw CliErrors[_0x1e4d6e(0x1ca)](_0x1e4d6e(0x1b4)+_0x4e5b42+_0x1e4d6e(0x1e4)+ROUTING_CONSUMER+_0x1e4d6e(0x1db));return normalizeDomainOrigin(_0x4e5b42,_0x34147c);}export function normalizeCdnBaseUrl(_0x54273a,_0x4ab39b){const _0x4a6918=a253_0xf04a15;if(typeof _0x4ab39b!=='string'||!_0x4ab39b[_0x4a6918(0x1bb)]())throw CliErrors[_0x4a6918(0x1ca)]('Invalid\x20cdn.'+_0x54273a+_0x4a6918(0x1f6));const _0x360cea=_0x4ab39b[_0x4a6918(0x1bb)]()['replace'](/\/$/,'');let _0xf614fb;try{_0xf614fb=new URL(_0x360cea);}catch{throw CliErrors[_0x4a6918(0x1ca)](_0x4a6918(0x1d8)+_0x54273a+_0x4a6918(0x202)+_0x4ab39b+_0x4a6918(0x1cf));}if(_0xf614fb['protocol']!==_0x4a6918(0x1d2)||_0xf614fb[_0x4a6918(0x1ed)]||_0xf614fb[_0x4a6918(0x1c4)]||_0xf614fb[_0x4a6918(0x1e6)]||_0xf614fb[_0x4a6918(0x1f5)]||_0xf614fb[_0x4a6918(0x1cb)][_0x4a6918(0x203)](/\/$/,'')!==_0x360cea||_0x54273a===_0x4a6918(0x1cd)&&_0xf614fb[_0x4a6918(0x1ee)]!==_0x360cea)throw CliErrors['validation']('Invalid\x20cdn.'+_0x54273a+':\x20expected\x20an\x20HTTPS\x20'+(_0x54273a===_0x4a6918(0x1cd)?_0x4a6918(0x1ee):_0x4a6918(0x1c5))+_0x4a6918(0x1c0));return _0x360cea;}export function resolveEnterpriseRoutingConfig(_0x5160ea){const _0x5231b7=a253_0xf04a15;return resolveEnterpriseRoutingManifest(_0x5160ea)?.[_0x5231b7(0x1ec)];}export function resolveEnterpriseRoutingManifest(_0x4d39a1){const _0x452ae7=a253_0xf04a15;if(_0x4d39a1===undefined)return undefined;if(!_0x4d39a1||typeof _0x4d39a1!==_0x452ae7(0x1f4)||Array[_0x452ae7(0x207)](_0x4d39a1))throw CliErrors[_0x452ae7(0x1ca)](_0x452ae7(0x1fb));return parseEnterpriseRoutingManifest(_0x4d39a1);}export function readDomainConfigInput(_0xf5d64f){const _0x226734=a253_0xf04a15,_0x437018=isAbsolute(_0xf5d64f)?_0xf5d64f:resolve(process[_0x226734(0x1f9)](),_0xf5d64f);if(!existsSync(_0x437018))throw CliErrors[_0x226734(0x1ca)](_0x226734(0x1b7)+_0x437018);let _0x2f6b78;try{_0x2f6b78=JSON[_0x226734(0x1fa)](readFileSync(_0x437018,_0x226734(0x1dc)));}catch{throw CliErrors[_0x226734(0x1ca)](_0x226734(0x1f1)+_0x437018);}if(!_0x2f6b78||typeof _0x2f6b78!==_0x226734(0x1f4)||Array[_0x226734(0x207)](_0x2f6b78))throw CliErrors[_0x226734(0x1ca)](_0x226734(0x1ff));const _0x42b1bc=_0x2f6b78;if(_0x226734(0x1f0)in _0x42b1bc)return parseEnterpriseRoutingManifest(_0x42b1bc);const _0xeca5ef=Object[_0x226734(0x1bc)](_0x42b1bc)['filter'](_0x3ad841=>!DOMAIN_CONFIG_FIELDS[_0x226734(0x1c8)](_0x3ad841));if(_0xeca5ef['length']>0x0)throw CliErrors[_0x226734(0x1ca)]('Unsupported\x20domain\x20config\x20field(s):\x20'+_0xeca5ef[_0x226734(0x1dd)](',\x20'),_0x226734(0x1bd)+DOMAIN_CONFIG_FIELDS[_0x226734(0x1dd)](',\x20'));const _0x2063c5={};for(const _0x50d0a6 of DOMAIN_CONFIG_FIELDS){_0x42b1bc[_0x50d0a6]!==undefined&&(_0x2063c5[_0x50d0a6]=normalizeDomainOrigin(_0x50d0a6,_0x42b1bc[_0x50d0a6]));}if(Object['keys'](_0x2063c5)[_0x226734(0x1e3)]===0x0)throw CliErrors[_0x226734(0x1ca)](_0x226734(0x1c6));return{'mode':_0x226734(0x1c1),'domains':_0x2063c5};}export function readDomainConfig(_0x5ca6ac){return readDomainConfigInput(_0x5ca6ac)['domains'];}export function resolveDomainConfigInput(_0xded29){const _0x10a1d1=a253_0xf04a15,_0x3be3ef=(_0xded29[_0x10a1d1(0x1e8)](_0x10a1d1(0x1d4))||'')['trim'](),_0x553335=_0x3be3ef?readDomainConfigInput(_0x3be3ef):{'mode':_0x10a1d1(0x1c1),'domains':{}},_0xcd658c=DOMAIN_CONFIG_FIELDS[_0x10a1d1(0x1c9)](_0x519265=>Boolean((_0xded29['str'](DOMAIN_FLAGS[_0x519265])||'')[_0x10a1d1(0x1bb)]()));if(_0x553335[_0x10a1d1(0x1e9)]==='enterprise-v1'&&_0xcd658c[_0x10a1d1(0x1e3)]>0x0)throw CliErrors[_0x10a1d1(0x1ca)](_0x10a1d1(0x204),_0x10a1d1(0x1bf));for(const _0x4f74ac of DOMAIN_CONFIG_FIELDS){const _0x5e9816=(_0xded29['str'](DOMAIN_FLAGS[_0x4f74ac])||'')['trim']();if(_0x5e9816)_0x553335[_0x10a1d1(0x1ec)][_0x4f74ac]=normalizeDomainOrigin(_0x4f74ac,_0x5e9816);}return _0x553335;}export function resolveDomainFlags(_0x57e68b){const _0xdaa31e=a253_0xf04a15;return resolveDomainConfigInput(_0x57e68b)[_0xdaa31e(0x1ec)];}function a253_0x11db(_0x1fe939,_0x47e9af){_0x1fe939=_0x1fe939-0x1b4;const _0x3a6275=a253_0x3a62();let _0x11db4b=_0x3a6275[_0x1fe939];return _0x11db4b;}export function parseEnterpriseRoutingManifest(_0x24d0c4){const _0x55bdbb=a253_0xf04a15;if(_0x24d0c4[_0x55bdbb(0x1f0)]!==ENTERPRISE_ROUTING_PROTOCOL||_0x24d0c4[_0x55bdbb(0x1d7)]!==ENTERPRISE_ROUTING_KIND)throw CliErrors[_0x55bdbb(0x1ca)](_0x55bdbb(0x206)+ENTERPRISE_ROUTING_PROTOCOL+_0x55bdbb(0x1ef)+ENTERPRISE_ROUTING_KIND+'\x22.');if(!_0x24d0c4[_0x55bdbb(0x1ec)]||typeof _0x24d0c4[_0x55bdbb(0x1ec)]!==_0x55bdbb(0x1f4)||Array[_0x55bdbb(0x207)](_0x24d0c4[_0x55bdbb(0x1ec)]))throw CliErrors[_0x55bdbb(0x1ca)]('Invalid\x20enterprise\x20routing\x20manifest:\x20domains\x20must\x20be\x20an\x20object.');if(!_0x24d0c4[_0x55bdbb(0x1d3)]||typeof _0x24d0c4[_0x55bdbb(0x1d3)]!==_0x55bdbb(0x1f4)||Array[_0x55bdbb(0x207)](_0x24d0c4[_0x55bdbb(0x1d3)]))throw CliErrors['validation'](_0x55bdbb(0x1c3));const _0x1634e5=_0x24d0c4[_0x55bdbb(0x1ec)],_0x5f212b=REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS[_0x55bdbb(0x1c9)](_0x1a0c7d=>_0x1634e5[_0x1a0c7d]===undefined);if(_0x5f212b['length']>0x0)throw CliErrors[_0x55bdbb(0x1ca)](_0x55bdbb(0x1b5)+_0x5f212b['join'](',\x20'));if(_0x1634e5[_0x55bdbb(0x1f2)]===undefined!==(_0x1634e5[_0x55bdbb(0x1b6)]===undefined))throw CliErrors[_0x55bdbb(0x1ca)]('Enterprise\x20routing\x20manifest\x20requires\x20localDomain\x20and\x20certificateDomain\x20together.');const _0xb95742=_0x24d0c4['cdn'],_0x225dbf=Object[_0x55bdbb(0x1bc)](_0xb95742)['filter'](_0x53b05f=>!ENTERPRISE_ROUTING_CDN_FIELDS[_0x55bdbb(0x1c8)](_0x53b05f));if(_0x225dbf['length']>0x0)throw CliErrors[_0x55bdbb(0x1ca)](_0x55bdbb(0x201)+_0x225dbf['join'](',\x20'),'Allowed\x20fields:\x20'+ENTERPRISE_ROUTING_CDN_FIELDS[_0x55bdbb(0x1dd)](',\x20'));const _0x144aa5=REQUIRED_ENTERPRISE_ROUTING_CDN_FIELDS[_0x55bdbb(0x1c9)](_0x8338c4=>_0xb95742[_0x8338c4]===undefined);if(_0x144aa5[_0x55bdbb(0x1e3)]>0x0)throw CliErrors[_0x55bdbb(0x1ca)]('Enterprise\x20routing\x20manifest\x20is\x20missing\x20required\x20CDN\x20field(s):\x20'+_0x144aa5[_0x55bdbb(0x1dd)](',\x20'));const _0x159879={};for(const _0x4d54fe of ENTERPRISE_ROUTING_CDN_FIELDS){_0x159879[_0x4d54fe]=normalizeCdnBaseUrl(_0x4d54fe,_0xb95742[_0x4d54fe]);}const _0x1082e6={},_0xb3bb61={};for(const _0x28472b of ENTERPRISE_ROUTING_DOMAIN_FIELDS){const _0x354fb2=_0x1634e5[_0x28472b];if(_0x354fb2===undefined)continue;const _0x37dbd0=normalizeRoutingDomainValue(_0x28472b,_0x354fb2);_0x1082e6[_0x28472b]=_0x37dbd0;const _0x4defd6=ENTERPRISE_TO_LOCAL_FIELD[_0x28472b];_0x4defd6&&(_0xb3bb61[_0x4defd6]=_0x37dbd0);}return{'mode':_0x55bdbb(0x1da),'domains':_0xb3bb61,'manifestDomains':_0x1082e6,'cdn':_0x159879};}
|
|
1
|
+
const a258_0x2f9c8b=a258_0x2d16;(function(_0x3a90fc,_0x1678e4){const _0x164eb8=a258_0x2d16,_0x230215=_0x3a90fc();while(!![]){try{const _0x11ed3c=parseInt(_0x164eb8(0x196))/0x1+-parseInt(_0x164eb8(0x15a))/0x2*(-parseInt(_0x164eb8(0x18e))/0x3)+parseInt(_0x164eb8(0x163))/0x4+-parseInt(_0x164eb8(0x189))/0x5*(parseInt(_0x164eb8(0x168))/0x6)+parseInt(_0x164eb8(0x145))/0x7*(parseInt(_0x164eb8(0x194))/0x8)+-parseInt(_0x164eb8(0x19a))/0x9+-parseInt(_0x164eb8(0x177))/0xa*(parseInt(_0x164eb8(0x18d))/0xb);if(_0x11ed3c===_0x1678e4)break;else _0x230215['push'](_0x230215['shift']());}catch(_0x31d241){_0x230215['push'](_0x230215['shift']());}}}(a258_0x39b3,0x261ac));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',a258_0x2f9c8b(0x15e),'skillDomain',a258_0x2f9c8b(0x157),'kbServiceDomain',a258_0x2f9c8b(0x179),a258_0x2f9c8b(0x14d),'certificateDomain'];const DOMAIN_FLAGS={'userDomain':a258_0x2f9c8b(0x199),'apiDomain':a258_0x2f9c8b(0x17c),'runtimeDomain':a258_0x2f9c8b(0x184),'skillDomain':a258_0x2f9c8b(0x172),'kbDomain':a258_0x2f9c8b(0x174),'kbServiceDomain':a258_0x2f9c8b(0x158),'appDomain':a258_0x2f9c8b(0x193),'localDomain':'local-domain','certificateDomain':a258_0x2f9c8b(0x197)};export const LEGACY_DOMAIN_CONFIG_FIELDS=[a258_0x2f9c8b(0x192),a258_0x2f9c8b(0x152),a258_0x2f9c8b(0x162)];const ENTERPRISE_TO_LOCAL_FIELD={'userDomain':a258_0x2f9c8b(0x17f),'apiDomain':a258_0x2f9c8b(0x18b),'runtimeDomain':a258_0x2f9c8b(0x15e),'skillDomain':a258_0x2f9c8b(0x149),'kbDomain':'kbDomain','kbServiceDomain':a258_0x2f9c8b(0x151),'appDomain':a258_0x2f9c8b(0x179),'localDomain':'localDomain','certificateDomain':a258_0x2f9c8b(0x17b)},ROUTING_CONSUMER=a258_0x2f9c8b(0x185);export function normalizeDomainOrigin(_0x5b0279,_0x21a491){const _0x1b733f=a258_0x2f9c8b;if(typeof _0x21a491!=='string'||!_0x21a491[_0x1b733f(0x167)]())throw CliErrors[_0x1b733f(0x182)](_0x1b733f(0x159)+_0x5b0279+':\x20expected\x20a\x20non-empty\x20HTTPS\x20origin.');let _0x530b14;try{_0x530b14=new URL(_0x21a491[_0x1b733f(0x167)]());}catch{throw CliErrors['validation'](_0x1b733f(0x159)+_0x5b0279+':\x20\x22'+_0x21a491+_0x1b733f(0x16a));}if(_0x530b14[_0x1b733f(0x155)]!==_0x1b733f(0x180)||_0x530b14[_0x1b733f(0x161)]||_0x530b14[_0x1b733f(0x183)]||_0x530b14['pathname']!=='/'&&_0x530b14[_0x1b733f(0x173)]!==''||_0x530b14[_0x1b733f(0x198)]||_0x530b14[_0x1b733f(0x153)])throw CliErrors[_0x1b733f(0x182)](_0x1b733f(0x159)+_0x5b0279+':\x20expected\x20an\x20HTTPS\x20origin\x20without\x20credentials,\x20path,\x20query,\x20or\x20fragment.',_0x1b733f(0x165));return _0x530b14[_0x1b733f(0x146)];}export function normalizeRoutingDomainValue(_0x579c23,_0x168e6d){const _0x2a1db2=a258_0x2f9c8b;if(typeof _0x168e6d===_0x2a1db2(0x190))return normalizeDomainOrigin(_0x579c23,_0x168e6d);if(!_0x168e6d||typeof _0x168e6d!==_0x2a1db2(0x18f)||Array[_0x2a1db2(0x171)](_0x168e6d))throw CliErrors['validation'](_0x2a1db2(0x159)+_0x579c23+_0x2a1db2(0x195));const _0x2c111e=_0x168e6d,_0x3fa909=_0x2c111e[ROUTING_CONSUMER]??_0x2c111e[_0x2a1db2(0x15b)];if(_0x3fa909===undefined)throw CliErrors[_0x2a1db2(0x182)](_0x2a1db2(0x147)+_0x579c23+_0x2a1db2(0x164)+ROUTING_CONSUMER+_0x2a1db2(0x18c));return normalizeDomainOrigin(_0x579c23,_0x3fa909);}export function normalizeCdnBaseUrl(_0x350ed2,_0x11ee83){const _0x295457=a258_0x2f9c8b;if(typeof _0x11ee83!==_0x295457(0x190)||!_0x11ee83[_0x295457(0x167)]())throw CliErrors[_0x295457(0x182)](_0x295457(0x17d)+_0x350ed2+_0x295457(0x191));const _0xf8a33a=_0x11ee83[_0x295457(0x167)]()['replace'](/\/$/,'');let _0x3bef50;try{_0x3bef50=new URL(_0xf8a33a);}catch{throw CliErrors[_0x295457(0x182)](_0x295457(0x17d)+_0x350ed2+_0x295457(0x14c)+_0x11ee83+_0x295457(0x16a));}if(_0x3bef50[_0x295457(0x155)]!==_0x295457(0x180)||_0x3bef50['username']||_0x3bef50[_0x295457(0x183)]||_0x3bef50[_0x295457(0x198)]||_0x3bef50[_0x295457(0x153)]||_0x3bef50[_0x295457(0x16b)][_0x295457(0x17a)](/\/$/,'')!==_0xf8a33a||_0x350ed2===_0x295457(0x181)&&_0x3bef50[_0x295457(0x146)]!==_0xf8a33a)throw CliErrors['validation']('Invalid\x20cdn.'+_0x350ed2+_0x295457(0x15f)+(_0x350ed2==='lovrabet'?'origin':_0x295457(0x188))+_0x295457(0x176));return _0xf8a33a;}export function resolveEnterpriseRoutingConfig(_0x1e27b7){const _0x7de99=a258_0x2f9c8b;return resolveEnterpriseRoutingManifest(_0x1e27b7)?.[_0x7de99(0x175)];}export function resolveEnterpriseRoutingManifest(_0x4384ae){const _0x48b93e=a258_0x2f9c8b;if(_0x4384ae===undefined)return undefined;if(!_0x4384ae||typeof _0x4384ae!==_0x48b93e(0x18f)||Array['isArray'](_0x4384ae))throw CliErrors['validation'](_0x48b93e(0x14a));return parseEnterpriseRoutingManifest(_0x4384ae);}export function readDomainConfigInput(_0x4c1f84){const _0x52408a=a258_0x2f9c8b,_0x5d07e9=isAbsolute(_0x4c1f84)?_0x4c1f84:resolve(process[_0x52408a(0x16d)](),_0x4c1f84);if(!existsSync(_0x5d07e9))throw CliErrors[_0x52408a(0x182)](_0x52408a(0x144)+_0x5d07e9);let _0x54efa9;try{_0x54efa9=JSON[_0x52408a(0x14b)](readFileSync(_0x5d07e9,_0x52408a(0x169)));}catch{throw CliErrors[_0x52408a(0x182)](_0x52408a(0x15c)+_0x5d07e9);}if(!_0x54efa9||typeof _0x54efa9!==_0x52408a(0x18f)||Array[_0x52408a(0x171)](_0x54efa9))throw CliErrors['validation'](_0x52408a(0x18a));const _0xdd2458=_0x54efa9;if(_0x52408a(0x155)in _0xdd2458)return parseEnterpriseRoutingManifest(_0xdd2458);const _0x27b339=Object[_0x52408a(0x148)](_0xdd2458)[_0x52408a(0x14e)](_0x4387b9=>!DOMAIN_CONFIG_FIELDS[_0x52408a(0x187)](_0x4387b9));if(_0x27b339[_0x52408a(0x16e)]>0x0)throw CliErrors['validation']('Unsupported\x20domain\x20config\x20field(s):\x20'+_0x27b339[_0x52408a(0x170)](',\x20'),_0x52408a(0x166)+DOMAIN_CONFIG_FIELDS[_0x52408a(0x170)](',\x20'));const _0x123236={};for(const _0x535fb9 of DOMAIN_CONFIG_FIELDS){_0xdd2458[_0x535fb9]!==undefined&&(_0x123236[_0x535fb9]=normalizeDomainOrigin(_0x535fb9,_0xdd2458[_0x535fb9]));}if(Object['keys'](_0x123236)[_0x52408a(0x16e)]===0x0)throw CliErrors[_0x52408a(0x182)](_0x52408a(0x154));return{'mode':_0x52408a(0x16c),'domains':_0x123236};}export function readDomainConfig(_0x5d1483){const _0x3cc213=a258_0x2f9c8b;return readDomainConfigInput(_0x5d1483)[_0x3cc213(0x175)];}function a258_0x2d16(_0xddb045,_0xd2189a){_0xddb045=_0xddb045-0x144;const _0x39b3a3=a258_0x39b3();let _0x2d168b=_0x39b3a3[_0xddb045];return _0x2d168b;}export function resolveDomainConfigInput(_0x3a93c9){const _0x48bdf2=a258_0x2f9c8b,_0x152562=(_0x3a93c9['str'](_0x48bdf2(0x15d))||'')[_0x48bdf2(0x167)](),_0x32e4ca=_0x152562?readDomainConfigInput(_0x152562):{'mode':_0x48bdf2(0x16c),'domains':{}},_0x13bffe=DOMAIN_CONFIG_FIELDS['filter'](_0x1a7d31=>Boolean((_0x3a93c9[_0x48bdf2(0x17e)](DOMAIN_FLAGS[_0x1a7d31])||'')[_0x48bdf2(0x167)]()));if(_0x32e4ca[_0x48bdf2(0x156)]===_0x48bdf2(0x178)&&_0x13bffe[_0x48bdf2(0x16e)]>0x0)throw CliErrors[_0x48bdf2(0x182)]('Enterprise\x20routing\x20manifests\x20cannot\x20be\x20combined\x20with\x20individual\x20Domain\x20flags.',_0x48bdf2(0x14f));for(const _0x1c189a of DOMAIN_CONFIG_FIELDS){const _0x4a9c36=(_0x3a93c9['str'](DOMAIN_FLAGS[_0x1c189a])||'')[_0x48bdf2(0x167)]();if(_0x4a9c36)_0x32e4ca[_0x48bdf2(0x175)][_0x1c189a]=normalizeDomainOrigin(_0x1c189a,_0x4a9c36);}return _0x32e4ca;}export function resolveDomainFlags(_0x5b049c){const _0x1ddf34=a258_0x2f9c8b;return resolveDomainConfigInput(_0x5b049c)[_0x1ddf34(0x175)];}export function parseEnterpriseRoutingManifest(_0x1d4248){const _0x21335e=a258_0x2f9c8b;if(_0x1d4248[_0x21335e(0x155)]!==ENTERPRISE_ROUTING_PROTOCOL||_0x1d4248['kind']!==ENTERPRISE_ROUTING_KIND)throw CliErrors['validation'](_0x21335e(0x186)+ENTERPRISE_ROUTING_PROTOCOL+_0x21335e(0x16f)+ENTERPRISE_ROUTING_KIND+'\x22.');if(!_0x1d4248[_0x21335e(0x175)]||typeof _0x1d4248[_0x21335e(0x175)]!==_0x21335e(0x18f)||Array[_0x21335e(0x171)](_0x1d4248[_0x21335e(0x175)]))throw CliErrors[_0x21335e(0x182)]('Invalid\x20enterprise\x20routing\x20manifest:\x20domains\x20must\x20be\x20an\x20object.');if(!_0x1d4248['cdn']||typeof _0x1d4248[_0x21335e(0x19b)]!=='object'||Array[_0x21335e(0x171)](_0x1d4248['cdn']))throw CliErrors[_0x21335e(0x182)]('Invalid\x20enterprise\x20routing\x20manifest:\x20cdn\x20must\x20be\x20an\x20object.');const _0x272255=_0x1d4248[_0x21335e(0x175)],_0x9eaa05=REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS['filter'](_0x178408=>_0x272255[_0x178408]===undefined);if(_0x9eaa05[_0x21335e(0x16e)]>0x0)throw CliErrors[_0x21335e(0x182)]('Enterprise\x20routing\x20manifest\x20is\x20missing\x20required\x20Domain(s):\x20'+_0x9eaa05[_0x21335e(0x170)](',\x20'));if(_0x272255[_0x21335e(0x14d)]===undefined!==(_0x272255[_0x21335e(0x17b)]===undefined))throw CliErrors[_0x21335e(0x182)]('Enterprise\x20routing\x20manifest\x20requires\x20localDomain\x20and\x20certificateDomain\x20together.');const _0x7ebf0b=_0x1d4248[_0x21335e(0x19b)],_0x4236e=Object[_0x21335e(0x148)](_0x7ebf0b)[_0x21335e(0x14e)](_0x318b85=>!ENTERPRISE_ROUTING_CDN_FIELDS[_0x21335e(0x187)](_0x318b85));if(_0x4236e[_0x21335e(0x16e)]>0x0)throw CliErrors[_0x21335e(0x182)](_0x21335e(0x160)+_0x4236e[_0x21335e(0x170)](',\x20'),_0x21335e(0x166)+ENTERPRISE_ROUTING_CDN_FIELDS['join'](',\x20'));const _0x4d0373=REQUIRED_ENTERPRISE_ROUTING_CDN_FIELDS['filter'](_0xf5ad3d=>_0x7ebf0b[_0xf5ad3d]===undefined);if(_0x4d0373[_0x21335e(0x16e)]>0x0)throw CliErrors['validation'](_0x21335e(0x150)+_0x4d0373['join'](',\x20'));const _0x53256d={};for(const _0x65549 of ENTERPRISE_ROUTING_CDN_FIELDS){_0x53256d[_0x65549]=normalizeCdnBaseUrl(_0x65549,_0x7ebf0b[_0x65549]);}const _0x2a1fec={},_0x45a7be={};for(const _0x467926 of ENTERPRISE_ROUTING_DOMAIN_FIELDS){const _0x5d77f9=_0x272255[_0x467926];if(_0x5d77f9===undefined)continue;const _0x326971=normalizeRoutingDomainValue(_0x467926,_0x5d77f9);_0x2a1fec[_0x467926]=_0x326971;const _0x2962d5=ENTERPRISE_TO_LOCAL_FIELD[_0x467926];_0x2962d5&&(_0x45a7be[_0x2962d5]=_0x326971);}return{'mode':_0x21335e(0x178),'domains':_0x45a7be,'manifestDomains':_0x2a1fec,'cdn':_0x53256d};}function a258_0x39b3(){const _0x5c535b=['\x20does\x20not\x20provide\x20a\x20Domain\x20for\x20','For\x20internal\x20deployments,\x20terminate\x20TLS\x20at\x20the\x20ingress,\x20reverse\x20proxy,\x20or\x20load\x20balancer;\x20an\x20internal\x20CA\x20is\x20supported.','Allowed\x20fields:\x20','trim','6bpYMls','utf8','\x22\x20is\x20not\x20a\x20valid\x20URL.','href','legacy','cwd','length','\x22\x20and\x20kind\x20\x22','join','isArray','skill-domain','pathname','kb-domain','domains','\x20without\x20credentials,\x20query,\x20or\x20fragment.','3705560OkerHD','enterprise-v1','appDomain','replace','certificateDomain','api-domain','Invalid\x20cdn.','str','userDomain','https:','lovrabet','validation','password','runtime-domain','rabetbase-cli','Unsupported\x20routing\x20manifest:\x20expected\x20protocol\x20\x22','includes','base\x20URL','1163915COWQJB','Invalid\x20domain\x20config:\x20expected\x20a\x20JSON\x20object.','apiDomain','\x20and\x20has\x20no\x20default.','11zctCLx','27MfpuVn','object','string',':\x20expected\x20a\x20non-empty\x20HTTPS\x20URL.','agentDomain','app-domain','16mTHyhC',':\x20expected\x20an\x20HTTPS\x20origin\x20or\x20consumer\x20Domain\x20object.','278288zTgZIq','certificate-domain','search','user-domain','430371SCqerM','cdn','Domain\x20config\x20file\x20not\x20found:\x20','904197UEnbWE','origin','Enterprise\x20','keys','skillDomain','Invalid\x20enterprise\x20routing\x20config:\x20expected\x20an\x20object.','parse',':\x20\x22','localDomain','filter','Update\x20the\x20manifest\x20so\x20both\x20CLIs\x20consume\x20the\x20same\x20routing\x20data.','Enterprise\x20routing\x20manifest\x20is\x20missing\x20required\x20CDN\x20field(s):\x20','kbServiceDomain','platformDomain','hash','Invalid\x20domain\x20config:\x20provide\x20at\x20least\x20one\x20supported\x20Domain.','protocol','mode','kbDomain','kb-service-domain','Invalid\x20','22302Fcoluz','default','Invalid\x20domain\x20config\x20JSON:\x20','domain-config','runtimeDomain',':\x20expected\x20an\x20HTTPS\x20','Unsupported\x20enterprise\x20CDN\x20field(s):\x20','username','skillHubDomain','680980hkMVUG'];a258_0x39b3=function(){return _0x5c535b;};return a258_0x39b3();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a259_0x36dc(){const _0x3d55f6=['290831YyonEK','.tmp','167672cwRBux','1474548iUUctO','104020fjtbvX','pid','origin','independent','http://localhost','official','Independent\x20deployment\x20routing\x20requires\x20localDomain\x20and\x20certificateDomain\x20together.','now','/cert/lovrabet-dev.json','stringify','108kNAeQo','lovrabet','5904220fbaWin','utf8','21915752SZZGkn','rabetbase.domain-routing.json','lovrabet-project-domain-routing/v1','local','5328816mKESUj'];a259_0x36dc=function(){return _0x3d55f6;};return a259_0x36dc();}const a259_0xbb248c=a259_0x53cd;(function(_0x145d70,_0x3c4ac3){const _0xdd0c6e=a259_0x53cd,_0x5e0fea=_0x145d70();while(!![]){try{const _0x446de6=parseInt(_0xdd0c6e(0xe6))/0x1+parseInt(_0xdd0c6e(0xe9))/0x2+parseInt(_0xdd0c6e(0xe5))/0x3+-parseInt(_0xdd0c6e(0xe8))/0x4+parseInt(_0xdd0c6e(0xdf))/0x5+parseInt(_0xdd0c6e(0xdd))/0x6*(-parseInt(_0xdd0c6e(0xea))/0x7)+-parseInt(_0xdd0c6e(0xe1))/0x8;if(_0x446de6===_0x3c4ac3)break;else _0x5e0fea['push'](_0x5e0fea['shift']());}catch(_0x52666d){_0x5e0fea['push'](_0x5e0fea['shift']());}}}(a259_0x36dc,0xe49a2));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=a259_0xbb248c(0xe2);export const PROJECT_DOMAIN_ROUTING_PROTOCOL=a259_0xbb248c(0xe3);export function getProjectDomainRoutingManifest(){const _0x53fec0=a259_0xbb248c,_0x37ba36=getActiveRegion(),_0x237d5a=isIndependentDeployment(),_0x5f0b9c=getOfficialRoutingProfile(_0x37ba36),_0x485994=getLocalDomain(),_0x2ec074=getCertificateDomain(),_0x1886f2=getActiveCdn();if(!!_0x485994!==!!_0x2ec074)throw new Error(_0x53fec0(0xf0));return{'protocol':PROJECT_DOMAIN_ROUTING_PROTOCOL,'mode':_0x237d5a?_0x53fec0(0xed):_0x53fec0(0xef),'region':_0x237d5a?null:_0x37ba36,'domains':{'api':getApiDomain(),'runtime':getRuntimeDomain(),'user':getUserDomain(),'app':getAppDomain(),'skill':getSkillDomain(),'kb':getKbDomain()},'cdn':_0x1886f2,'local':_0x485994&&_0x2ec074?{'origin':_0x485994,'certificateUrl':_0x2ec074+_0x53fec0(0xdb)}:_0x237d5a?{'origin':_0x53fec0(0xee)}:{'origin':_0x5f0b9c[_0x53fec0(0xe4)][_0x53fec0(0xec)],'certificateUrl':_0x1886f2[_0x53fec0(0xde)]+_0x53fec0(0xdb)}};}function a259_0x53cd(_0x55b733,_0x3ae331){_0x55b733=_0x55b733-0xda;const _0x36dc0b=a259_0x36dc();let _0x53cdad=_0x36dc0b[_0x55b733];return _0x53cdad;}export function writeProjectDomainRoutingManifest(_0x1e1332){const _0x3b6af2=a259_0xbb248c,_0x350cd2=getProjectDomainRoutingManifest(),_0x551bfd=join(_0x1e1332,PROJECT_DOMAIN_ROUTING_FILE_NAME),_0x1d2491=JSON[_0x3b6af2(0xdc)](_0x350cd2,null,0x2)+'\x0a';try{if(readFileSync(_0x551bfd,_0x3b6af2(0xe0))===_0x1d2491)return{'path':_0x551bfd,'manifest':_0x350cd2,'changed':![]};}catch{}const _0x3c925a=_0x551bfd+'.'+process[_0x3b6af2(0xeb)]+'.'+Date[_0x3b6af2(0xda)]()+_0x3b6af2(0xe7);try{writeFileSync(_0x3c925a,_0x1d2491,{'encoding':_0x3b6af2(0xe0),'mode':0x1a4}),renameSync(_0x3c925a,_0x551bfd);}catch(_0x2ddd30){try{unlinkSync(_0x3c925a);}catch{}throw _0x2ddd30;}return{'path':_0x551bfd,'manifest':_0x350cd2,'changed':!![]};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a260_0xa4f6f1=a260_0x22dd;(function(_0x3fa1ff,_0x3682a6){const _0x5de116=a260_0x22dd,_0x23f9bf=_0x3fa1ff();while(!![]){try{const _0x595e58=-parseInt(_0x5de116(0xa8))/0x1*(parseInt(_0x5de116(0x95))/0x2)+-parseInt(_0x5de116(0xa3))/0x3+parseInt(_0x5de116(0x97))/0x4+parseInt(_0x5de116(0x99))/0x5*(-parseInt(_0x5de116(0xa7))/0x6)+-parseInt(_0x5de116(0x9f))/0x7*(parseInt(_0x5de116(0xa6))/0x8)+-parseInt(_0x5de116(0x93))/0x9+parseInt(_0x5de116(0x96))/0xa;if(_0x595e58===_0x3682a6)break;else _0x23f9bf['push'](_0x23f9bf['shift']());}catch(_0x330346){_0x23f9bf['push'](_0x23f9bf['shift']());}}}(a260_0xc8c5,0xed897));import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_LOVRABET_REGION,isInvalidLovrabetRegion,normalizeLovrabetRegion}from'../constant/region.js';import{CliErrors}from'../errors.js';function a260_0xc8c5(){const _0x316bc8=['config','validation','project','\x20doctor`\x20to\x20locate\x20and\x20repair\x20the\x20invalid\x20configuration\x20before\x20retrying.','Invalid\x20country/region\x20','stringify','app','null','global\x20Rabetbase\x20configuration','appRegion','globalRegion','8040843NNmXBj','app\x20profile\x20\x22','4HIaeJJ','41895360LcXkdg','5563900OetgrZ','Rabetbase\x20configuration','4405lqcqNR','source','projectRegion','global','string','Run\x20`','196wMqJLM','project\x20Rabetbase\x20configuration','a\x20value\x20of\x20type\x20','value','1165842UGAmOE','mergedRegion','appName','275024tNFIah','12966XWBGfF','229547mBZXyl'];a260_0xc8c5=function(){return _0x316bc8;};return a260_0xc8c5();}function a260_0x22dd(_0x490868,_0x3debfe){_0x490868=_0x490868-0x90;const _0xc8c55=a260_0xc8c5();let _0x22dd89=_0xc8c55[_0x490868];return _0x22dd89;}export function selectConfiguredRegion(_0x45e8eb){const _0x1c5005=a260_0x22dd;if(_0x45e8eb[_0x1c5005(0x91)]!==undefined&&_0x45e8eb[_0x1c5005(0x91)]!==null&&_0x45e8eb[_0x1c5005(0x91)]!=='')return{'value':_0x45e8eb[_0x1c5005(0x91)],'source':_0x1c5005(0xaf)};if(_0x45e8eb[_0x1c5005(0x9b)]!==undefined&&_0x45e8eb['projectRegion']!==null&&_0x45e8eb[_0x1c5005(0x9b)]!=='')return{'value':_0x45e8eb['projectRegion'],'source':_0x1c5005(0xab)};if(_0x45e8eb['globalRegion']!==undefined&&_0x45e8eb[_0x1c5005(0x92)]!==null&&_0x45e8eb[_0x1c5005(0x92)]!=='')return{'value':_0x45e8eb[_0x1c5005(0x92)],'source':_0x1c5005(0x9c)};if(_0x45e8eb[_0x1c5005(0xa4)]!==undefined&&_0x45e8eb[_0x1c5005(0xa4)]!==null&&_0x45e8eb['mergedRegion']!=='')return{'value':_0x45e8eb['mergedRegion'],'source':_0x1c5005(0xa9)};return{'value':undefined,'source':'default'};}function describeConfiguredRegion(_0x1ead0c){const _0x448ea8=a260_0x22dd;return typeof _0x1ead0c===_0x448ea8(0x9d)?JSON[_0x448ea8(0xae)](_0x1ead0c):_0x448ea8(0xa1)+(_0x1ead0c===null?_0x448ea8(0xb0):typeof _0x1ead0c);}export function resolveConfiguredRegion(_0x3b138a,_0x57e76f=a260_0xa4f6f1(0x98)){const _0x15023d=a260_0xa4f6f1;if(isInvalidLovrabetRegion(_0x3b138a))throw CliErrors[_0x15023d(0xaa)](_0x15023d(0xad)+describeConfiguredRegion(_0x3b138a)+'\x20in\x20'+_0x57e76f+'.',_0x15023d(0x9e)+CLI_BIN_NAME+_0x15023d(0xac));return normalizeLovrabetRegion(_0x3b138a)??DEFAULT_LOVRABET_REGION;}export function resolveEffectiveRegion(_0x1d603a){const _0x46a858=a260_0xa4f6f1,_0x41fd5a=selectConfiguredRegion(_0x1d603a),_0x3c4500=_0x41fd5a[_0x46a858(0x9a)]==='app'?_0x1d603a[_0x46a858(0xa5)]?_0x46a858(0x94)+_0x1d603a[_0x46a858(0xa5)]+'\x22':'selected\x20app\x20profile':_0x41fd5a[_0x46a858(0x9a)]===_0x46a858(0xab)?_0x46a858(0xa0):_0x41fd5a['source']===_0x46a858(0x9c)?_0x46a858(0x90):_0x46a858(0x98);return{'region':resolveConfiguredRegion(_0x41fd5a[_0x46a858(0xa2)],_0x3c4500),'source':_0x41fd5a[_0x46a858(0x9a)]};}
|
package/lib/config/schema.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a256_0x318e6a=a256_0x1e0d;(function(_0x78735a,_0x20cece){const _0x3d1d9b=a256_0x1e0d,_0x3e4d0f=_0x78735a();while(!![]){try{const _0x5b74ac=parseInt(_0x3d1d9b(0x15f))/0x1+parseInt(_0x3d1d9b(0x167))/0x2+parseInt(_0x3d1d9b(0x145))/0x3+-parseInt(_0x3d1d9b(0x143))/0x4*(-parseInt(_0x3d1d9b(0x169))/0x5)+-parseInt(_0x3d1d9b(0x15c))/0x6+parseInt(_0x3d1d9b(0x15e))/0x7*(parseInt(_0x3d1d9b(0x15d))/0x8)+-parseInt(_0x3d1d9b(0x147))/0x9;if(_0x5b74ac===_0x20cece)break;else _0x3e4d0f['push'](_0x3e4d0f['shift']());}catch(_0x49da91){_0x3e4d0f['push'](_0x3e4d0f['shift']());}}}(a256_0x1326,0xaf476));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{isDaily,isProduction,RABETBASE_ENV_VALUES}from'../constant/env.js';import{RABETBASE_OUTPUT_FORMAT_VALUES}from'../constant/output.js';import{RISK_LEVEL_VALUES}from'../constant/risk.js';import{ENABLED_LOVRABET_REGION_VALUES}from'../constant/region.js';export{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';export const PROJECT_CREATE_INHERITABLE_KEYS=[a256_0x318e6a(0x15a),'accessKey',a256_0x318e6a(0x168),'format',a256_0x318e6a(0x135),a256_0x318e6a(0x138),a256_0x318e6a(0x150),a256_0x318e6a(0x141),a256_0x318e6a(0x14b),a256_0x318e6a(0x161),'skillDomain',a256_0x318e6a(0x165),'kbServiceDomain','appDomain',a256_0x318e6a(0x133),a256_0x318e6a(0x162)];export const TOP_LEVEL_CONFIG_KEYS=new Set(['appcode','env',a256_0x318e6a(0x168),a256_0x318e6a(0x160),'cookie',a256_0x318e6a(0x156),a256_0x318e6a(0x157),a256_0x318e6a(0x138),'userDomain',a256_0x318e6a(0x14b),a256_0x318e6a(0x161),a256_0x318e6a(0x149),a256_0x318e6a(0x165),a256_0x318e6a(0x14a),a256_0x318e6a(0x14f),a256_0x318e6a(0x133),a256_0x318e6a(0x162)]);export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES],'region':[...ENABLED_LOVRABET_REGION_VALUES]};export function formatConfigKeyList(_0x471ed1){const _0xcebd68=a256_0x318e6a;return[..._0x471ed1][_0xcebd68(0x14c)](',\x20');}function a256_0x1e0d(_0xea794f,_0x2aefa0){_0xea794f=_0xea794f-0x132;const _0x1326c2=a256_0x1326();let _0x1e0d8a=_0x1326c2[_0xea794f];return _0x1e0d8a;}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function isTopLevelConfigKey(_0x222b7d){return TOP_LEVEL_CONFIG_KEYS['has'](_0x222b7d);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x4bcf84=a256_0x318e6a;return _0x4bcf84(0x155)+getTopLevelConfigKeySummary()+')';}export const APP_PROFILE_FLAG_KEY_MAP={'apiGroup':a256_0x318e6a(0x13d),'region':a256_0x318e6a(0x138),'env':a256_0x318e6a(0x164),'apiDir':a256_0x318e6a(0x157),'cookie':a256_0x318e6a(0x15a),'accessKey':a256_0x318e6a(0x156),'defaultFormat':'format','pageSize':a256_0x318e6a(0x134),'riskLevel':a256_0x318e6a(0x135),'locale':a256_0x318e6a(0x168)};export function getAppProfileFlagDefs(){const _0x3ff907=a256_0x318e6a;return[{'name':'apiGroup','type':'string','description':'Join\x20key\x20for\x20app\x20profiles\x20that\x20share\x20one\x20generated\x20API\x20model\x20registry'},{'name':'region','type':_0x3ff907(0x13a),'description':_0x3ff907(0x16c),'enum':[...ENABLED_LOVRABET_REGION_VALUES]},{'name':_0x3ff907(0x164),'type':_0x3ff907(0x13a),'description':_0x3ff907(0x154),'enum':[...RABETBASE_ENV_VALUES]},{'name':_0x3ff907(0x157),'type':_0x3ff907(0x13a),'description':_0x3ff907(0x13f)},{'name':_0x3ff907(0x15a),'type':'string','description':_0x3ff907(0x14e),'hidden':!![]},{'name':'accessKey','type':_0x3ff907(0x13a),'description':'Access\x20key','hidden':!![]},{'name':_0x3ff907(0x15b),'type':'string','description':_0x3ff907(0x13c),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':_0x3ff907(0x134),'type':_0x3ff907(0x14d),'description':_0x3ff907(0x166)},{'name':'riskLevel','type':_0x3ff907(0x13a),'description':_0x3ff907(0x163),'enum':[...RISK_LEVEL_VALUES]},{'name':_0x3ff907(0x168),'type':'string','description':'App\x20locale\x20(not\x20CLI\x20language;\x20reserved\x20for\x20later\x20app\x20use)'}];}export function collectAppProfileOverrides(_0x4ec1f1){const _0x1fe13b=a256_0x318e6a,_0x473b04={};for(const [_0x3484e7,_0x1ad8ae]of Object[_0x1fe13b(0x151)](APP_PROFILE_FLAG_KEY_MAP)){const _0x2ed204=_0x4ec1f1(_0x3484e7);if(!_0x2ed204)continue;_0x473b04[_0x1ad8ae]=_0x1ad8ae===_0x1fe13b(0x134)?Number(_0x2ed204):_0x2ed204;}return _0x473b04;}export function buildAppProfileListFields(_0x5cd6af){const _0x28977c=a256_0x318e6a;return{'apiGroup':_0x5cd6af[_0x28977c(0x13d)]??null,'region':_0x5cd6af[_0x28977c(0x138)]??null,'env':_0x5cd6af[_0x28977c(0x164)]??null,'apiDir':_0x5cd6af[_0x28977c(0x157)]??null,'hasCookie':!!_0x5cd6af['cookie'],'hasAccessKey':!!_0x5cd6af[_0x28977c(0x156)],'format':_0x5cd6af[_0x28977c(0x160)]??null,'pageSize':_0x5cd6af[_0x28977c(0x134)]??null,'riskLevel':_0x5cd6af[_0x28977c(0x135)]??null,'locale':_0x5cd6af[_0x28977c(0x168)]??null};}export function buildAppDoctorFields(_0x18851b,_0x48841d){const _0x24bcad=a256_0x318e6a;return{'region':{'value':_0x18851b['region']||_0x48841d['region'],'source':_0x18851b[_0x24bcad(0x138)]?_0x24bcad(0x146):_0x24bcad(0x158)},'env':{'value':_0x18851b[_0x24bcad(0x164)]||_0x48841d['env'],'source':_0x18851b[_0x24bcad(0x164)]?_0x24bcad(0x146):_0x24bcad(0x158)},'apiDir':{'value':_0x18851b[_0x24bcad(0x157)]||_0x48841d[_0x24bcad(0x157)],'source':_0x18851b[_0x24bcad(0x157)]?_0x24bcad(0x146):_0x24bcad(0x158)},'cookie':{'value':_0x18851b[_0x24bcad(0x15a)]||_0x48841d['cookie'],'source':_0x18851b[_0x24bcad(0x15a)]?'app':'inherit'},'accessKey':{'value':_0x18851b[_0x24bcad(0x156)]||_0x48841d[_0x24bcad(0x156)],'source':_0x18851b['accessKey']?_0x24bcad(0x146):_0x24bcad(0x158)}};}export function buildCanonicalAppConfig(_0x1b7762,_0x18b514){const _0x52305f=a256_0x318e6a,_0x10e659=_0x1b7762[_0x52305f(0x13b)](_0x5bd671=>String(_0x5bd671||'')[_0x52305f(0x137)]())['filter'](Boolean);if(_0x10e659[_0x52305f(0x139)]===0x0)return{};const _0xbe6c7={};for(const _0x1c5e37 of _0x10e659){_0xbe6c7[_0x1c5e37]=_0x18b514&&!isProduction(_0x18b514)?{'appcode':_0x1c5e37,'env':_0x18b514}:{'appcode':_0x1c5e37};}return _0x10e659[_0x52305f(0x139)]>0x1?{'apps':_0xbe6c7,'defaultApp':_0x10e659[0x0]}:{'apps':_0xbe6c7};}export function normalizeStoredDefaultApp(_0x2f8cad,_0x1344ad){const _0x52fefc=a256_0x318e6a,_0x530e9d=_0x2f8cad['apps']&&typeof _0x2f8cad['apps']===_0x52fefc(0x16b)?_0x2f8cad[_0x52fefc(0x142)]:{},_0x211958=Object[_0x52fefc(0x153)](_0x530e9d);if(_0x211958[_0x52fefc(0x139)]<=0x1)return delete _0x2f8cad[_0x52fefc(0x152)],undefined;const _0x238534=typeof _0x2f8cad[_0x52fefc(0x152)]==='string'&&_0x530e9d[_0x2f8cad[_0x52fefc(0x152)]]?_0x2f8cad['defaultApp']:undefined,_0xc8bf2e=_0x1344ad&&_0x530e9d[_0x1344ad]?_0x1344ad:_0x238534;if(_0xc8bf2e)return _0x2f8cad[_0x52fefc(0x152)]=_0xc8bf2e,_0xc8bf2e;return delete _0x2f8cad[_0x52fefc(0x152)],undefined;}export function buildCanonicalProjectConfig(_0x4c84d2,_0x156861){const _0x3805a5=a256_0x318e6a,{appCodes:appCodes=[],env:_0x4555e5,metadata:_0x3f7d0a}=_0x156861,_0xf564c9={..._0x4c84d2,..._0x3f7d0a||{}};delete _0xf564c9[_0x3805a5(0x140)],delete _0xf564c9['app'];const _0x568a9c=_0x4555e5||(typeof _0xf564c9[_0x3805a5(0x164)]===_0x3805a5(0x13a)?_0xf564c9[_0x3805a5(0x164)]:'')||DEFAULT_CONFIG_VALUES[_0x3805a5(0x164)];if(isProduction(_0x568a9c))delete _0xf564c9[_0x3805a5(0x164)];else _0xf564c9[_0x3805a5(0x164)]=_0x568a9c;const _0x28269c=buildCanonicalAppConfig(appCodes,_0x568a9c);if(Object[_0x3805a5(0x153)](_0x28269c)[_0x3805a5(0x139)]>0x0){_0xf564c9[_0x3805a5(0x142)]=_0x28269c[_0x3805a5(0x142)];if(_0x28269c[_0x3805a5(0x152)])_0xf564c9[_0x3805a5(0x152)]=_0x28269c[_0x3805a5(0x152)];else delete _0xf564c9[_0x3805a5(0x152)];}return normalizeConfigForWrite(_0xf564c9);}function isRecord(_0x192db3){const _0x157418=a256_0x318e6a;return!!_0x192db3&&typeof _0x192db3===_0x157418(0x16b)&&!Array[_0x157418(0x132)](_0x192db3);}function a256_0x1326(){const _0x3c92e1=['accessKey','apiDir','inherit','fromEntries','cookie','defaultFormat','620700pNMOlk','3345008sysARM','14TkvhIs','563688ExVoBJ','format','runtimeDomain','certificateDomain','Risk\x20level','env','kbDomain','Default\x20page\x20size','382668cbQmOn','locale','4600040jOBJpA','some','object','Country/region\x20for\x20this\x20app\x20profile','isArray','localDomain','pageSize','riskLevel','zh-CN','trim','region','length','string','map','Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','apiGroup','values','API\x20directory\x20path','appcode','userDomain','apps','4zqsXVJ','toLowerCase','2449173LNtqcP','app','22556529mzKBKo','en-US','skillDomain','kbServiceDomain','apiDomain','join','number','Auth\x20cookie','appDomain','routing','entries','defaultApp','keys','Target\x20environment','Config\x20key\x20('];a256_0x1326=function(){return _0x3c92e1;};return a256_0x1326();}export function normalizeConfigForWrite(_0x44e8c9){const _0x4a990b=a256_0x318e6a,_0x5661f3={..._0x44e8c9},_0x5cec2d=isRecord(_0x44e8c9[_0x4a990b(0x142)])?_0x44e8c9['apps']:undefined,_0x25b440=_0x5cec2d?Object[_0x4a990b(0x159)](Object[_0x4a990b(0x151)](_0x5cec2d)[_0x4a990b(0x13b)](([_0x34cac7,_0x584681])=>[_0x34cac7,isRecord(_0x584681)?{..._0x584681}:_0x584681])):undefined;if(_0x25b440){const _0x5a9da4=typeof _0x5661f3[_0x4a990b(0x164)]===_0x4a990b(0x13a)?_0x5661f3[_0x4a990b(0x164)]:undefined,_0x523960=Object[_0x4a990b(0x13e)](_0x25b440)[_0x4a990b(0x16a)](_0x43d834=>isRecord(_0x43d834)&&typeof _0x43d834[_0x4a990b(0x164)]===_0x4a990b(0x13a)&&isProduction(_0x43d834[_0x4a990b(0x164)]));if(_0x5a9da4&&isDaily(_0x5a9da4)&&_0x523960){for(const _0x3c0a0c of Object[_0x4a990b(0x13e)](_0x25b440)){if(!isRecord(_0x3c0a0c))continue;if(_0x3c0a0c[_0x4a990b(0x164)]===undefined)_0x3c0a0c[_0x4a990b(0x164)]=_0x5a9da4;}delete _0x5661f3[_0x4a990b(0x164)];}for(const _0xc0eae4 of Object[_0x4a990b(0x13e)](_0x25b440)){isRecord(_0xc0eae4)&&typeof _0xc0eae4['env']===_0x4a990b(0x13a)&&isProduction(_0xc0eae4['env'])&&delete _0xc0eae4['env'];}_0x5661f3['apps']=_0x25b440;}return typeof _0x5661f3[_0x4a990b(0x164)]===_0x4a990b(0x13a)&&isProduction(_0x5661f3[_0x4a990b(0x164)])&&delete _0x5661f3[_0x4a990b(0x164)],_0x5661f3;}const LOCALE_MAP={'zh':'zh-CN','zh-cn':a256_0x318e6a(0x136),'zh_cn':a256_0x318e6a(0x136),'en':'en-US','en-us':'en-US','en_us':a256_0x318e6a(0x148)};export function normalizeLocale(_0x2b22ac){const _0x3455e9=a256_0x318e6a;if(!_0x2b22ac)return null;return LOCALE_MAP[_0x2b22ac[_0x3455e9(0x144)]()]??null;}
|
|
1
|
+
const a261_0x3f1a26=a261_0x9b94;(function(_0x4c55cf,_0xec284c){const _0x4df745=a261_0x9b94,_0x1e3f8e=_0x4c55cf();while(!![]){try{const _0x51794f=parseInt(_0x4df745(0x1f3))/0x1*(-parseInt(_0x4df745(0x1d6))/0x2)+-parseInt(_0x4df745(0x1de))/0x3*(parseInt(_0x4df745(0x1f0))/0x4)+-parseInt(_0x4df745(0x1d4))/0x5*(parseInt(_0x4df745(0x1ff))/0x6)+parseInt(_0x4df745(0x1fb))/0x7*(parseInt(_0x4df745(0x1d8))/0x8)+parseInt(_0x4df745(0x1df))/0x9*(parseInt(_0x4df745(0x20f))/0xa)+parseInt(_0x4df745(0x1e3))/0xb*(-parseInt(_0x4df745(0x1fd))/0xc)+parseInt(_0x4df745(0x203))/0xd;if(_0x51794f===_0xec284c)break;else _0x1e3f8e['push'](_0x1e3f8e['shift']());}catch(_0x3a1f20){_0x1e3f8e['push'](_0x1e3f8e['shift']());}}}(a261_0x31f5,0x620bd));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{isDaily,isProduction,RABETBASE_ENV_VALUES}from'../constant/env.js';import{RABETBASE_OUTPUT_FORMAT_VALUES}from'../constant/output.js';import{RISK_LEVEL_VALUES}from'../constant/risk.js';import{ENABLED_LOVRABET_REGION_VALUES}from'../constant/region.js';export{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';export const PROJECT_CREATE_INHERITABLE_KEYS=[a261_0x3f1a26(0x1fa),a261_0x3f1a26(0x1f7),'locale',a261_0x3f1a26(0x208),a261_0x3f1a26(0x1f8),a261_0x3f1a26(0x206),a261_0x3f1a26(0x1ee),a261_0x3f1a26(0x1f6),'apiDomain',a261_0x3f1a26(0x1f1),'skillDomain',a261_0x3f1a26(0x1ef),a261_0x3f1a26(0x207),a261_0x3f1a26(0x209),a261_0x3f1a26(0x204),a261_0x3f1a26(0x1ea)];export const TOP_LEVEL_CONFIG_KEYS=new Set([a261_0x3f1a26(0x205),a261_0x3f1a26(0x20a),a261_0x3f1a26(0x20d),a261_0x3f1a26(0x208),a261_0x3f1a26(0x1fa),'accessKey',a261_0x3f1a26(0x201),a261_0x3f1a26(0x206),'userDomain','apiDomain',a261_0x3f1a26(0x1f1),a261_0x3f1a26(0x202),a261_0x3f1a26(0x1ef),a261_0x3f1a26(0x207),a261_0x3f1a26(0x209),'localDomain',a261_0x3f1a26(0x1ea)]);export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES],'region':[...ENABLED_LOVRABET_REGION_VALUES]};export function formatConfigKeyList(_0x2c0b70){return[..._0x2c0b70]['join'](',\x20');}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function isTopLevelConfigKey(_0x200980){const _0x257b83=a261_0x3f1a26;return TOP_LEVEL_CONFIG_KEYS[_0x257b83(0x1f5)](_0x200980);}function a261_0x31f5(){const _0x4ff77b=['cookie','174853JZXxeU','trim','15036WCNyXT','fromEntries','60yyiQiJ','length','apiDir','skillDomain','23442627ERixLg','localDomain','appcode','region','kbServiceDomain','format','appDomain','env','object','en-US','locale','App\x20locale\x20(not\x20CLI\x20language;\x20reserved\x20for\x20later\x20app\x20use)','10ESGMsi','pageSize','values','Country/region\x20for\x20this\x20app\x20profile','289610kZvmMR','Config\x20key\x20(','4812LzTQbR','some','64jOLOoG','apiGroup','app','filter','map','Access\x20key','486561lJEAWW','6295761SKAzHk','Join\x20key\x20for\x20app\x20profiles\x20that\x20share\x20one\x20generated\x20API\x20model\x20registry','zh-CN','inherit','4499ClgOPx','Auth\x20cookie','toLowerCase','string','Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','Default\x20page\x20size','entries','certificateDomain','keys','apps','API\x20directory\x20path','routing','kbDomain','16cunxip','runtimeDomain','number','233ROvfcr','defaultFormat','has','userDomain','accessKey','riskLevel','defaultApp'];a261_0x31f5=function(){return _0x4ff77b;};return a261_0x31f5();}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x4ca2aa=a261_0x3f1a26;return _0x4ca2aa(0x1d5)+getTopLevelConfigKeySummary()+')';}export const APP_PROFILE_FLAG_KEY_MAP={'apiGroup':a261_0x3f1a26(0x1d9),'region':a261_0x3f1a26(0x206),'env':'env','apiDir':a261_0x3f1a26(0x201),'cookie':'cookie','accessKey':'accessKey','defaultFormat':a261_0x3f1a26(0x208),'pageSize':a261_0x3f1a26(0x210),'riskLevel':'riskLevel','locale':a261_0x3f1a26(0x20d)};export function getAppProfileFlagDefs(){const _0x1a1b2a=a261_0x3f1a26;return[{'name':'apiGroup','type':_0x1a1b2a(0x1e6),'description':_0x1a1b2a(0x1e0)},{'name':_0x1a1b2a(0x206),'type':_0x1a1b2a(0x1e6),'description':_0x1a1b2a(0x1d3),'enum':[...ENABLED_LOVRABET_REGION_VALUES]},{'name':'env','type':'string','description':'Target\x20environment','enum':[...RABETBASE_ENV_VALUES]},{'name':_0x1a1b2a(0x201),'type':_0x1a1b2a(0x1e6),'description':_0x1a1b2a(0x1ed)},{'name':_0x1a1b2a(0x1fa),'type':_0x1a1b2a(0x1e6),'description':_0x1a1b2a(0x1e4),'hidden':!![]},{'name':_0x1a1b2a(0x1f7),'type':'string','description':_0x1a1b2a(0x1dd),'hidden':!![]},{'name':_0x1a1b2a(0x1f4),'type':_0x1a1b2a(0x1e6),'description':_0x1a1b2a(0x1e7),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':_0x1a1b2a(0x210),'type':_0x1a1b2a(0x1f2),'description':_0x1a1b2a(0x1e8)},{'name':_0x1a1b2a(0x1f8),'type':_0x1a1b2a(0x1e6),'description':'Risk\x20level','enum':[...RISK_LEVEL_VALUES]},{'name':_0x1a1b2a(0x20d),'type':_0x1a1b2a(0x1e6),'description':_0x1a1b2a(0x20e)}];}export function collectAppProfileOverrides(_0x3ee6eb){const _0x210783=a261_0x3f1a26,_0x3f7e24={};for(const [_0x248cb7,_0x1a3933]of Object[_0x210783(0x1e9)](APP_PROFILE_FLAG_KEY_MAP)){const _0xc001aa=_0x3ee6eb(_0x248cb7);if(!_0xc001aa)continue;_0x3f7e24[_0x1a3933]=_0x1a3933===_0x210783(0x210)?Number(_0xc001aa):_0xc001aa;}return _0x3f7e24;}export function buildAppProfileListFields(_0x5d1e09){const _0x24d3ea=a261_0x3f1a26;return{'apiGroup':_0x5d1e09[_0x24d3ea(0x1d9)]??null,'region':_0x5d1e09[_0x24d3ea(0x206)]??null,'env':_0x5d1e09['env']??null,'apiDir':_0x5d1e09[_0x24d3ea(0x201)]??null,'hasCookie':!!_0x5d1e09['cookie'],'hasAccessKey':!!_0x5d1e09['accessKey'],'format':_0x5d1e09[_0x24d3ea(0x208)]??null,'pageSize':_0x5d1e09[_0x24d3ea(0x210)]??null,'riskLevel':_0x5d1e09[_0x24d3ea(0x1f8)]??null,'locale':_0x5d1e09[_0x24d3ea(0x20d)]??null};}export function buildAppDoctorFields(_0x436b16,_0x42af20){const _0x29e21a=a261_0x3f1a26;return{'region':{'value':_0x436b16[_0x29e21a(0x206)]||_0x42af20[_0x29e21a(0x206)],'source':_0x436b16[_0x29e21a(0x206)]?_0x29e21a(0x1da):_0x29e21a(0x1e2)},'env':{'value':_0x436b16[_0x29e21a(0x20a)]||_0x42af20[_0x29e21a(0x20a)],'source':_0x436b16[_0x29e21a(0x20a)]?'app':_0x29e21a(0x1e2)},'apiDir':{'value':_0x436b16[_0x29e21a(0x201)]||_0x42af20[_0x29e21a(0x201)],'source':_0x436b16[_0x29e21a(0x201)]?_0x29e21a(0x1da):'inherit'},'cookie':{'value':_0x436b16[_0x29e21a(0x1fa)]||_0x42af20[_0x29e21a(0x1fa)],'source':_0x436b16[_0x29e21a(0x1fa)]?_0x29e21a(0x1da):_0x29e21a(0x1e2)},'accessKey':{'value':_0x436b16[_0x29e21a(0x1f7)]||_0x42af20[_0x29e21a(0x1f7)],'source':_0x436b16['accessKey']?'app':_0x29e21a(0x1e2)}};}function a261_0x9b94(_0x2a089b,_0x5a4dd3){_0x2a089b=_0x2a089b-0x1d3;const _0x31f5cc=a261_0x31f5();let _0x9b9407=_0x31f5cc[_0x2a089b];return _0x9b9407;}export function buildCanonicalAppConfig(_0x29d684,_0x4f4c71){const _0x12e06e=a261_0x3f1a26,_0x47cbce=_0x29d684['map'](_0x28f9f7=>String(_0x28f9f7||'')[_0x12e06e(0x1fc)]())[_0x12e06e(0x1db)](Boolean);if(_0x47cbce['length']===0x0)return{};const _0x2b7b38={};for(const _0x19053a of _0x47cbce){_0x2b7b38[_0x19053a]=_0x4f4c71&&!isProduction(_0x4f4c71)?{'appcode':_0x19053a,'env':_0x4f4c71}:{'appcode':_0x19053a};}return _0x47cbce[_0x12e06e(0x200)]>0x1?{'apps':_0x2b7b38,'defaultApp':_0x47cbce[0x0]}:{'apps':_0x2b7b38};}export function normalizeStoredDefaultApp(_0x3be34a,_0x55a2c7){const _0x4f817e=a261_0x3f1a26,_0x548284=_0x3be34a[_0x4f817e(0x1ec)]&&typeof _0x3be34a[_0x4f817e(0x1ec)]===_0x4f817e(0x20b)?_0x3be34a['apps']:{},_0x310f04=Object[_0x4f817e(0x1eb)](_0x548284);if(_0x310f04['length']<=0x1)return delete _0x3be34a[_0x4f817e(0x1f9)],undefined;const _0xf4e0a9=typeof _0x3be34a[_0x4f817e(0x1f9)]==='string'&&_0x548284[_0x3be34a[_0x4f817e(0x1f9)]]?_0x3be34a[_0x4f817e(0x1f9)]:undefined,_0x2e1a43=_0x55a2c7&&_0x548284[_0x55a2c7]?_0x55a2c7:_0xf4e0a9;if(_0x2e1a43)return _0x3be34a[_0x4f817e(0x1f9)]=_0x2e1a43,_0x2e1a43;return delete _0x3be34a[_0x4f817e(0x1f9)],undefined;}export function buildCanonicalProjectConfig(_0x1fac65,_0x5d2083){const _0x39767b=a261_0x3f1a26,{appCodes:appCodes=[],env:_0x5977e9,metadata:_0x1dcc82}=_0x5d2083,_0x9d57d4={..._0x1fac65,..._0x1dcc82||{}};delete _0x9d57d4['appcode'],delete _0x9d57d4[_0x39767b(0x1da)];const _0x2d8818=_0x5977e9||(typeof _0x9d57d4[_0x39767b(0x20a)]===_0x39767b(0x1e6)?_0x9d57d4[_0x39767b(0x20a)]:'')||DEFAULT_CONFIG_VALUES['env'];if(isProduction(_0x2d8818))delete _0x9d57d4['env'];else _0x9d57d4[_0x39767b(0x20a)]=_0x2d8818;const _0x35b4da=buildCanonicalAppConfig(appCodes,_0x2d8818);if(Object[_0x39767b(0x1eb)](_0x35b4da)[_0x39767b(0x200)]>0x0){_0x9d57d4[_0x39767b(0x1ec)]=_0x35b4da[_0x39767b(0x1ec)];if(_0x35b4da[_0x39767b(0x1f9)])_0x9d57d4[_0x39767b(0x1f9)]=_0x35b4da[_0x39767b(0x1f9)];else delete _0x9d57d4[_0x39767b(0x1f9)];}return normalizeConfigForWrite(_0x9d57d4);}function isRecord(_0xf7133){const _0x4ec87b=a261_0x3f1a26;return!!_0xf7133&&typeof _0xf7133===_0x4ec87b(0x20b)&&!Array['isArray'](_0xf7133);}export function normalizeConfigForWrite(_0x1d7dda){const _0xd7faaa=a261_0x3f1a26,_0xf62eb3={..._0x1d7dda},_0x3b0976=isRecord(_0x1d7dda[_0xd7faaa(0x1ec)])?_0x1d7dda[_0xd7faaa(0x1ec)]:undefined,_0x1c5189=_0x3b0976?Object[_0xd7faaa(0x1fe)](Object[_0xd7faaa(0x1e9)](_0x3b0976)[_0xd7faaa(0x1dc)](([_0x164060,_0x57c0de])=>[_0x164060,isRecord(_0x57c0de)?{..._0x57c0de}:_0x57c0de])):undefined;if(_0x1c5189){const _0x548650=typeof _0xf62eb3[_0xd7faaa(0x20a)]===_0xd7faaa(0x1e6)?_0xf62eb3[_0xd7faaa(0x20a)]:undefined,_0x20ce97=Object[_0xd7faaa(0x211)](_0x1c5189)[_0xd7faaa(0x1d7)](_0x279a81=>isRecord(_0x279a81)&&typeof _0x279a81[_0xd7faaa(0x20a)]===_0xd7faaa(0x1e6)&&isProduction(_0x279a81[_0xd7faaa(0x20a)]));if(_0x548650&&isDaily(_0x548650)&&_0x20ce97){for(const _0x5be7ff of Object[_0xd7faaa(0x211)](_0x1c5189)){if(!isRecord(_0x5be7ff))continue;if(_0x5be7ff[_0xd7faaa(0x20a)]===undefined)_0x5be7ff[_0xd7faaa(0x20a)]=_0x548650;}delete _0xf62eb3[_0xd7faaa(0x20a)];}for(const _0x5326d6 of Object[_0xd7faaa(0x211)](_0x1c5189)){isRecord(_0x5326d6)&&typeof _0x5326d6[_0xd7faaa(0x20a)]===_0xd7faaa(0x1e6)&&isProduction(_0x5326d6[_0xd7faaa(0x20a)])&&delete _0x5326d6['env'];}_0xf62eb3[_0xd7faaa(0x1ec)]=_0x1c5189;}return typeof _0xf62eb3[_0xd7faaa(0x20a)]===_0xd7faaa(0x1e6)&&isProduction(_0xf62eb3['env'])&&delete _0xf62eb3[_0xd7faaa(0x20a)],_0xf62eb3;}const LOCALE_MAP={'zh':a261_0x3f1a26(0x1e1),'zh-cn':a261_0x3f1a26(0x1e1),'zh_cn':a261_0x3f1a26(0x1e1),'en':a261_0x3f1a26(0x20c),'en-us':a261_0x3f1a26(0x20c),'en_us':'en-US'};export function normalizeLocale(_0x90617f){const _0x43aa92=a261_0x3f1a26;if(!_0x90617f)return null;return LOCALE_MAP[_0x90617f[_0x43aa92(0x1e5)]()]??null;}
|
package/lib/constant/cdn.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a262_0x142c2c=a262_0x19ca;(function(_0x2495e9,_0x4a726b){const _0x452614=a262_0x19ca,_0x282496=_0x2495e9();while(!![]){try{const _0x2f82b6=-parseInt(_0x452614(0x1a7))/0x1*(-parseInt(_0x452614(0x1a6))/0x2)+-parseInt(_0x452614(0x1ac))/0x3*(-parseInt(_0x452614(0x1a2))/0x4)+parseInt(_0x452614(0x1b4))/0x5+parseInt(_0x452614(0x1a4))/0x6*(parseInt(_0x452614(0x1ad))/0x7)+-parseInt(_0x452614(0x1a3))/0x8*(parseInt(_0x452614(0x1ab))/0x9)+parseInt(_0x452614(0x1a5))/0xa*(-parseInt(_0x452614(0x1b1))/0xb)+-parseInt(_0x452614(0x1a8))/0xc;if(_0x2f82b6===_0x4a726b)break;else _0x282496['push'](_0x282496['shift']());}catch(_0x4676f4){_0x282496['push'](_0x282496['shift']());}}}(a262_0x1820,0xd0a46));import{getActiveCdn}from'../constant/domain.js';const RABETBASE_CDN_PROJECT=a262_0x142c2c(0x1b2),RABETBASE_CDN_CONFIG_ORIGIN=a262_0x142c2c(0x1b3),CDN_CONFIG_PATH='config/index.json',PROJECT_TEMPLATE_ASSET_PATH=a262_0x142c2c(0x1b0),PROJECT_TEMPLATE_ARCHIVE_NAMES=Object[a262_0x142c2c(0x1aa)]({'release':a262_0x142c2c(0x1a9),'beta':'sub-app-react-demo-beta.zip'});export const RABETBASE_CDN_PROJECT_PATH='/dist/'+RABETBASE_CDN_PROJECT;function getRabetbaseCdnBaseUrl(){const _0x2d43ee=a262_0x142c2c;return''+getActiveCdn()[_0x2d43ee(0x1af)]+RABETBASE_CDN_PROJECT_PATH;}function a262_0x1820(){const _0x5ba002=['1585435hWOdqx','sub-app-react-demo-','3364144HpsupF','24056PjcqAW','351930xqiURb','10MIfBoR','16858VeZPNS','97yvkKIp','30909204dPHtxl','sub-app-react-demo.zip','freeze','477xTonkc','6sHuwTy','119ODmtOq','.zip','lovrabet','templates/projects','2465881ePInYC','rabetbase-cli','https://g.lovrabet.com'];a262_0x1820=function(){return _0x5ba002;};return a262_0x1820();}export function getCliVersionPolicyUrl(){return''+RABETBASE_CDN_CONFIG_ORIGIN+RABETBASE_CDN_PROJECT_PATH+'/'+CDN_CONFIG_PATH;}export function getProjectTemplateAssetBaseUrl(){return getRabetbaseCdnBaseUrl()+'/'+PROJECT_TEMPLATE_ASSET_PATH;}function a262_0x19ca(_0x3ef008,_0x52655e){_0x3ef008=_0x3ef008-0x1a2;const _0x18205b=a262_0x1820();let _0x19cace=_0x18205b[_0x3ef008];return _0x19cace;}export function getProjectTemplateLegacyAssetBaseUrl(){return''+RABETBASE_CDN_CONFIG_ORIGIN+RABETBASE_CDN_PROJECT_PATH+'/'+PROJECT_TEMPLATE_ASSET_PATH;}export function getProjectTemplateRelativeUrl(_0x9c746a,_0x5091b4){const _0x250de0=a262_0x142c2c,_0x14af78=_0x5091b4?_0x250de0(0x1b5)+_0x5091b4+_0x250de0(0x1ae):PROJECT_TEMPLATE_ARCHIVE_NAMES[_0x9c746a];return RABETBASE_CDN_PROJECT_PATH+'/'+PROJECT_TEMPLATE_ASSET_PATH+'/'+_0x14af78;}
|
package/lib/constant/cli.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function a258_0x6d6b(){const _0x4e9b45=['sqlName','Environment','json\x20|\x20pretty\x20|\x20compress','Read\x20value\x20from\x20stdin','topk','datasetcode','Tags','Description','expectedChildrenCount','from-env','Flow\x20code','datasetCode','tags','expected-count','Preview\x20operation\x20without\x20executing','stdin','skip-imports','Use\x20remote','Expected\x20current\x20menu\x20path','1546029DfSDkn','format','rabetbase','SQL\x20code','Read\x20value\x20from\x20environment\x20variable','verbose','env','output','Expected\x20affected\x20count','taskId','10BifFul','Force\x20overwrite','menu-ids','Menu\x20sort\x20value','dataset-code','flow-type','<code>','operation-type','Expected\x20current\x20parent\x20menu\x20id','flow-code','Comma-separated\x20menu\x20IDs','codes','fromEnv','Verbose\x20output','28NpBQfW','dryRun','818878MQkQSD','dbId','force','Enable\x20Backend\x20Function\x20save','Reveal\x20sensitive\x20value','flow-status','all','page','locale','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','descriptionFile','Description\x20file','skipImports','title','sql','flow-name','3743645dWQadW','Function\x20node','app','key','project','Watch\x20mode','23670bYIyGs','global','Show\x20help','expect-parent-id','<name>','target','operation','clear','Schemas','Skip\x20import\x20generation','description','dry-run','DB\x20ID','Config\x20key','keyword','363194RrXhPo','Flow\x20type','464431GcDpsq','file','page-size','Type\x20filter','help','Use\x20project\x20config\x20scope','fromEntries','Code\x20filter','confirm','68763nUERaX','Clear','Operation\x20type','params','Page\x20size','flowStatus','code','type','Search\x20query','Menu\x20label','yes','zh-CN\x20|\x20en-US','remote','db-id','Keyword\x20filter','parent-id','Use\x20global\x20config\x20scope','Target\x20path','name','expect-path','App\x20locale\x20(workspace\x20pass-through;\x20not\x20CLI\x20language)','task-id','expectedCount','parentId','flowName','pageSize','watch','Title','pagesize','1533fuTSON','functionNode','schemas','value','appcode','query','enable-bff-save','production\x20|\x20daily','@lovrabet/rabetbase-cli','sqlcode','flowType','Rabetbase\x20CLI','<expr>','Parent\x20menu\x20id','flowCode','Comma-separated\x20metadata\x20codes','sql-name','Select\x20app\x20profile\x20by\x20name','menuIds','Dataset\x20code','Asynchronous\x20task\x20ID','SQL\x20string','dbid','boolean','reveal','expectParentId','Expected\x20current\x20child\x20count','Confirm\x20destructive\x20action','SQL\x20name','40oilVSV','non-interactive','sort','label','string'];a258_0x6d6b=function(){return _0x4e9b45;};return a258_0x6d6b();}const a258_0x99b826=a258_0x5633;(function(_0x5ab70f,_0x1729b1){const _0x5f4d6c=a258_0x5633,_0x5df51c=_0x5ab70f();while(!![]){try{const _0x3a4d5c=parseInt(_0x5f4d6c(0x18d))/0x1+-parseInt(_0x5f4d6c(0x168))/0x2+-parseInt(_0x5f4d6c(0x198))/0x3*(parseInt(_0x5f4d6c(0x166))/0x4)+parseInt(_0x5f4d6c(0x178))/0x5+-parseInt(_0x5f4d6c(0x17e))/0x6*(-parseInt(_0x5f4d6c(0x1b5))/0x7)+parseInt(_0x5f4d6c(0x1d2))/0x8*(-parseInt(_0x5f4d6c(0x1ea))/0x9)+parseInt(_0x5f4d6c(0x158))/0xa*(-parseInt(_0x5f4d6c(0x18f))/0xb);if(_0x3a4d5c===_0x1729b1)break;else _0x5df51c['push'](_0x5df51c['shift']());}catch(_0x48872b){_0x5df51c['push'](_0x5df51c['shift']());}}}(a258_0x6d6b,0x7b422));export const CLI_BIN_NAME=a258_0x99b826(0x150);export const CLI_DISPLAY_NAME=a258_0x99b826(0x1c0);export const NPM_PACKAGE_NAME=a258_0x99b826(0x1bd);function a258_0x5633(_0x5088c8,_0x2b667f){_0x5088c8=_0x5088c8-0x14f;const _0x6d6b80=a258_0x6d6b();let _0x5633e2=_0x6d6b80[_0x5088c8];return _0x5633e2;}export const GLOBAL_FLAGS=[{'name':a258_0x99b826(0x1b9),'meowKey':a258_0x99b826(0x1b9),'type':a258_0x99b826(0x1d6),'description':'Override\x20appcode','hint':a258_0x99b826(0x15e)},{'name':a258_0x99b826(0x17a),'meowKey':a258_0x99b826(0x17a),'type':a258_0x99b826(0x1d6),'description':a258_0x99b826(0x1c6),'hint':a258_0x99b826(0x182)},{'name':a258_0x99b826(0x154),'meowKey':a258_0x99b826(0x154),'type':a258_0x99b826(0x1d6),'description':a258_0x99b826(0x1d8),'hint':a258_0x99b826(0x1bc)},{'name':a258_0x99b826(0x14f),'meowKey':'format','type':a258_0x99b826(0x1d6),'description':'Output\x20format','hint':a258_0x99b826(0x1d9)},{'name':'jq','meowKey':'jq','type':a258_0x99b826(0x1d6),'description':a258_0x99b826(0x171),'hint':a258_0x99b826(0x1c1)},{'name':a258_0x99b826(0x189),'meowKey':a258_0x99b826(0x167),'type':a258_0x99b826(0x1cc),'description':a258_0x99b826(0x1e5)},{'name':a258_0x99b826(0x1a2),'meowKey':a258_0x99b826(0x1a2),'type':a258_0x99b826(0x1cc),'description':'Skip\x20confirmation\x20for\x20high-risk\x20writes'},{'name':a258_0x99b826(0x1d3),'meowKey':'nonInteractive','type':a258_0x99b826(0x1cc),'description':'Force\x20non-interactive\x20mode\x20(CI)'},{'name':a258_0x99b826(0x17f),'meowKey':a258_0x99b826(0x17f),'type':a258_0x99b826(0x1cc),'description':a258_0x99b826(0x1a8)},{'name':'project','meowKey':a258_0x99b826(0x17c),'type':a258_0x99b826(0x1cc),'description':a258_0x99b826(0x194)},{'name':'ci','meowKey':'ci','type':a258_0x99b826(0x1cc),'description':'Alias\x20for\x20--non-interactive','hidden':!![]},{'name':'help','meowKey':a258_0x99b826(0x193),'type':'boolean','description':a258_0x99b826(0x180)},{'name':a258_0x99b826(0x170),'meowKey':'locale','type':a258_0x99b826(0x1d6),'description':a258_0x99b826(0x1ac),'hidden':!![],'hint':a258_0x99b826(0x1a3)},{'name':a258_0x99b826(0x1aa),'meowKey':a258_0x99b826(0x1aa),'type':a258_0x99b826(0x1d6),'description':'Name','hidden':!![]},{'name':'title','meowKey':a258_0x99b826(0x175),'type':a258_0x99b826(0x1d6),'description':a258_0x99b826(0x1b3),'hidden':!![]},{'name':a258_0x99b826(0x1ba),'meowKey':a258_0x99b826(0x1ba),'type':a258_0x99b826(0x1d6),'description':a258_0x99b826(0x1a0),'hidden':!![]},{'name':a258_0x99b826(0x1db),'meowKey':a258_0x99b826(0x1db),'type':a258_0x99b826(0x1d6),'description':'Maximum\x20search\x20hits','hidden':!![]},{'name':a258_0x99b826(0x185),'meowKey':a258_0x99b826(0x185),'type':a258_0x99b826(0x1cc),'description':a258_0x99b826(0x199),'hidden':!![]},{'name':'watch','meowKey':a258_0x99b826(0x1b2),'type':a258_0x99b826(0x1cc),'description':a258_0x99b826(0x17d),'hidden':!![]},{'name':a258_0x99b826(0x155),'meowKey':a258_0x99b826(0x155),'type':a258_0x99b826(0x1d6),'description':'Output\x20path','hidden':!![]},{'name':a258_0x99b826(0x19b),'meowKey':a258_0x99b826(0x19b),'type':a258_0x99b826(0x1d6),'description':'JSON\x20params','hidden':!![]},{'name':a258_0x99b826(0x1dc),'meowKey':a258_0x99b826(0x1dc),'type':'string','description':a258_0x99b826(0x1c8),'hidden':!![]},{'name':a258_0x99b826(0x16e),'meowKey':a258_0x99b826(0x16e),'type':a258_0x99b826(0x1cc),'description':'Apply\x20to\x20all','hidden':!![]},{'name':a258_0x99b826(0x1bb),'meowKey':'enableBffSave','type':a258_0x99b826(0x1cc),'description':a258_0x99b826(0x16b),'hidden':!![]},{'name':'id','meowKey':'id','type':a258_0x99b826(0x1d6),'description':'Record\x20ID','hidden':!![]},{'name':a258_0x99b826(0x19f),'meowKey':a258_0x99b826(0x19f),'type':a258_0x99b826(0x1d6),'description':a258_0x99b826(0x192),'hidden':!![]},{'name':a258_0x99b826(0x190),'meowKey':a258_0x99b826(0x190),'type':'string','description':'File\x20path','hidden':!![]},{'name':a258_0x99b826(0x161),'meowKey':a258_0x99b826(0x1c3),'type':a258_0x99b826(0x1d6),'description':a258_0x99b826(0x1e1),'hidden':!![]},{'name':a258_0x99b826(0x177),'meowKey':a258_0x99b826(0x1b0),'type':a258_0x99b826(0x1d6),'description':'Flow\x20name','hidden':!![]},{'name':a258_0x99b826(0x16d),'meowKey':a258_0x99b826(0x19d),'type':a258_0x99b826(0x1d6),'description':'Flow\x20status','hidden':!![]},{'name':a258_0x99b826(0x15d),'meowKey':a258_0x99b826(0x1bf),'type':'string','description':a258_0x99b826(0x18e),'hidden':!![]},{'name':a258_0x99b826(0x15c),'meowKey':a258_0x99b826(0x1e2),'type':a258_0x99b826(0x1d6),'description':'Dataset\x20code','hidden':!![]},{'name':'sqlcode','meowKey':a258_0x99b826(0x1be),'type':'string','description':a258_0x99b826(0x151),'hidden':!![]},{'name':a258_0x99b826(0x1c5),'meowKey':a258_0x99b826(0x1d7),'type':a258_0x99b826(0x1d6),'description':a258_0x99b826(0x1d1),'hidden':!![]},{'name':'sqlname','meowKey':'sqlname','type':a258_0x99b826(0x1d6),'description':a258_0x99b826(0x1d1),'hidden':!![]},{'name':a258_0x99b826(0x1a5),'meowKey':a258_0x99b826(0x169),'type':'string','description':a258_0x99b826(0x18a),'hidden':!![]},{'name':'dbid','meowKey':a258_0x99b826(0x1cb),'type':a258_0x99b826(0x1d6),'description':a258_0x99b826(0x18a),'hidden':!![]},{'name':a258_0x99b826(0x188),'meowKey':a258_0x99b826(0x188),'type':a258_0x99b826(0x1d6),'description':a258_0x99b826(0x1de),'hidden':!![]},{'name':'description-file','meowKey':a258_0x99b826(0x172),'type':a258_0x99b826(0x1d6),'description':a258_0x99b826(0x173),'hidden':!![]},{'name':a258_0x99b826(0x16f),'meowKey':a258_0x99b826(0x16f),'type':a258_0x99b826(0x1d6),'description':'Page\x20number','hidden':!![]},{'name':a258_0x99b826(0x191),'meowKey':a258_0x99b826(0x1b1),'type':a258_0x99b826(0x1d6),'description':a258_0x99b826(0x19c),'hidden':!![]},{'name':a258_0x99b826(0x1b4),'meowKey':'pagesize','type':a258_0x99b826(0x1d6),'description':'Page\x20size','hidden':!![]},{'name':a258_0x99b826(0x18c),'meowKey':a258_0x99b826(0x18c),'type':a258_0x99b826(0x1d6),'description':a258_0x99b826(0x1a6),'hidden':!![]},{'name':a258_0x99b826(0x19e),'meowKey':'code','type':a258_0x99b826(0x1d6),'description':a258_0x99b826(0x196),'hidden':!![]},{'name':a258_0x99b826(0x176),'meowKey':a258_0x99b826(0x176),'type':a258_0x99b826(0x1d6),'description':a258_0x99b826(0x1ca),'hidden':!![]},{'name':'schemas','meowKey':a258_0x99b826(0x1b7),'type':'string','description':a258_0x99b826(0x186),'hidden':!![]},{'name':'operation','meowKey':a258_0x99b826(0x184),'type':'string','description':'Operation\x20type','hidden':!![]},{'name':a258_0x99b826(0x183),'meowKey':'target','type':'string','description':a258_0x99b826(0x1a9),'hidden':!![]},{'name':a258_0x99b826(0x1e7),'meowKey':a258_0x99b826(0x174),'type':a258_0x99b826(0x1cc),'description':a258_0x99b826(0x187),'hidden':!![]},{'name':'key','meowKey':a258_0x99b826(0x17b),'type':a258_0x99b826(0x1d6),'description':a258_0x99b826(0x18b),'hidden':!![]},{'name':a258_0x99b826(0x1b8),'meowKey':a258_0x99b826(0x1b8),'type':a258_0x99b826(0x1d6),'description':'Config\x20value','hidden':!![]},{'name':a258_0x99b826(0x1e3),'meowKey':'tags','type':a258_0x99b826(0x1d6),'description':a258_0x99b826(0x1dd),'hidden':!![]},{'name':'stdin','meowKey':a258_0x99b826(0x1e6),'type':a258_0x99b826(0x1cc),'description':a258_0x99b826(0x1da),'hidden':!![]},{'name':a258_0x99b826(0x1e0),'meowKey':a258_0x99b826(0x164),'type':a258_0x99b826(0x1d6),'description':a258_0x99b826(0x152),'hidden':!![]},{'name':a258_0x99b826(0x1cd),'meowKey':a258_0x99b826(0x1cd),'type':a258_0x99b826(0x1cc),'description':a258_0x99b826(0x16c),'hidden':!![]},{'name':a258_0x99b826(0x16a),'meowKey':a258_0x99b826(0x16a),'type':a258_0x99b826(0x1cc),'description':a258_0x99b826(0x159),'hidden':!![]},{'name':a258_0x99b826(0x197),'meowKey':'confirm','type':'boolean','description':a258_0x99b826(0x1d0),'hidden':!![]},{'name':a258_0x99b826(0x1a4),'meowKey':a258_0x99b826(0x1a4),'type':a258_0x99b826(0x1cc),'description':a258_0x99b826(0x1e8),'hidden':!![]},{'name':a258_0x99b826(0x153),'meowKey':a258_0x99b826(0x153),'type':a258_0x99b826(0x1cc),'description':a258_0x99b826(0x165),'hidden':!![]},{'name':a258_0x99b826(0x1e4),'meowKey':a258_0x99b826(0x1ae),'type':a258_0x99b826(0x1d6),'description':a258_0x99b826(0x156),'hidden':!![]},{'name':a258_0x99b826(0x1d5),'meowKey':a258_0x99b826(0x1d5),'type':a258_0x99b826(0x1d6),'description':a258_0x99b826(0x1a1),'hidden':!![]},{'name':a258_0x99b826(0x1a7),'meowKey':a258_0x99b826(0x1af),'type':'string','description':a258_0x99b826(0x1c2),'hidden':!![]},{'name':a258_0x99b826(0x1d4),'meowKey':'sort','type':a258_0x99b826(0x1d6),'description':a258_0x99b826(0x15b),'hidden':!![]},{'name':a258_0x99b826(0x181),'meowKey':a258_0x99b826(0x1ce),'type':a258_0x99b826(0x1d6),'description':a258_0x99b826(0x160),'hidden':!![]},{'name':a258_0x99b826(0x1ab),'meowKey':'expectPath','type':a258_0x99b826(0x1d6),'description':a258_0x99b826(0x1e9),'hidden':!![]},{'name':'expected-children-count','meowKey':a258_0x99b826(0x1df),'type':a258_0x99b826(0x1d6),'description':a258_0x99b826(0x1cf),'hidden':!![]},{'name':a258_0x99b826(0x15a),'meowKey':a258_0x99b826(0x1c7),'type':a258_0x99b826(0x1d6),'description':a258_0x99b826(0x162),'hidden':!![]},{'name':a258_0x99b826(0x1ad),'meowKey':a258_0x99b826(0x157),'type':a258_0x99b826(0x1d6),'description':a258_0x99b826(0x1c9),'hidden':!![]},{'name':a258_0x99b826(0x15f),'meowKey':'operationType','type':a258_0x99b826(0x1d6),'description':a258_0x99b826(0x19a),'hidden':!![]},{'name':'function-node','meowKey':a258_0x99b826(0x1b6),'type':a258_0x99b826(0x1d6),'description':a258_0x99b826(0x179),'hidden':!![]},{'name':a258_0x99b826(0x163),'meowKey':a258_0x99b826(0x163),'type':a258_0x99b826(0x1d6),'description':a258_0x99b826(0x1c4),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a258_0x99b826(0x1b9),'app',a258_0x99b826(0x154),a258_0x99b826(0x14f),'jq',a258_0x99b826(0x189),a258_0x99b826(0x1a2),'non-interactive','ci']);export function buildMeowFlags(){const _0x2f5997=a258_0x99b826;return Object[_0x2f5997(0x195)](GLOBAL_FLAGS['map'](_0x396467=>[_0x396467['meowKey'],{'type':_0x396467[_0x2f5997(0x19f)]}]));}
|
|
1
|
+
function a263_0x248b(_0x12a267,_0x1321c5){_0x12a267=_0x12a267-0x1c4;const _0x214e03=a263_0x214e();let _0x248bd8=_0x214e03[_0x12a267];return _0x248bd8;}const a263_0x4a2b4d=a263_0x248b;(function(_0x20d7b3,_0x577e7a){const _0x282d6e=a263_0x248b,_0x1acfdd=_0x20d7b3();while(!![]){try{const _0x508804=-parseInt(_0x282d6e(0x22f))/0x1+-parseInt(_0x282d6e(0x229))/0x2+parseInt(_0x282d6e(0x244))/0x3*(-parseInt(_0x282d6e(0x216))/0x4)+parseInt(_0x282d6e(0x22a))/0x5+-parseInt(_0x282d6e(0x20a))/0x6*(-parseInt(_0x282d6e(0x207))/0x7)+parseInt(_0x282d6e(0x21c))/0x8*(parseInt(_0x282d6e(0x1ee))/0x9)+parseInt(_0x282d6e(0x1ef))/0xa;if(_0x508804===_0x577e7a)break;else _0x1acfdd['push'](_0x1acfdd['shift']());}catch(_0x19661c){_0x1acfdd['push'](_0x1acfdd['shift']());}}}(a263_0x214e,0x2eff7));export const CLI_BIN_NAME='rabetbase';function a263_0x214e(){const _0x4f4ff8=['Use\x20remote','type','flowType','project','flowName','appcode','Function\x20node','176481luMVYo','904250UKsbtA','keyword','Override\x20appcode','target','codes','tags','boolean','all','Flow\x20name','SQL\x20name','parent-id','flow-code','Config\x20value','yes','flow-status','Dataset\x20code','flow-name','non-interactive','nonInteractive','from-env','global','string','stdin','dbid','2653777MXeYuN','Watch\x20mode','Preview\x20operation\x20without\x20executing','6bekmXB','zh-CN\x20|\x20en-US','Menu\x20label','menuIds','sqlcode','Record\x20ID','verbose','page','expectedCount','Show\x20help','@lovrabet/rabetbase-cli','Flow\x20code','2908sfecUX','Expected\x20current\x20child\x20count','code','datasetCode','menu-ids','help','32sGhZIG','remote','flowCode','Use\x20project\x20config\x20scope','Expected\x20current\x20parent\x20menu\x20id','Search\x20query','dryRun','confirm','clear','Maximum\x20search\x20hits','Flow\x20status','taskId','fromEnv','419130SBHZKL','803155lAzsZX','format','Alias\x20for\x20--non-interactive','pagesize','params','41180ZuVZRY','expected-count','Skip\x20confirmation\x20for\x20high-risk\x20writes','query','meowKey','force','sql-name','<code>','<expr>','reveal','sqlName','schemas','sort','Schemas','flow-type','env','Expected\x20current\x20menu\x20path','App\x20locale\x20(workspace\x20pass-through;\x20not\x20CLI\x20language)','Parent\x20menu\x20id','output','name','1095sYwupL','label','map','app','production\x20|\x20daily','Flow\x20type','Verbose\x20output','expected-children-count','sql','expect-parent-id','Menu\x20sort\x20value','function-node','Description\x20file','file','functionNode','flowStatus','value','expectPath','description-file','topk','description','pageSize','datasetcode','locale','File\x20path','Force\x20non-interactive\x20mode\x20(CI)','key','Clear','Output\x20format','Comma-separated\x20menu\x20IDs','Output\x20path','Operation\x20type','operation','Confirm\x20destructive\x20action','dbId','title','Page\x20size','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','Type\x20filter','Config\x20key','Title','dry-run','operation-type','Force\x20overwrite'];a263_0x214e=function(){return _0x4f4ff8;};return a263_0x214e();}export const CLI_DISPLAY_NAME='Rabetbase\x20CLI';export const NPM_PACKAGE_NAME=a263_0x4a2b4d(0x214);export const GLOBAL_FLAGS=[{'name':a263_0x4a2b4d(0x1ec),'meowKey':a263_0x4a2b4d(0x1ec),'type':a263_0x4a2b4d(0x204),'description':a263_0x4a2b4d(0x1f1),'hint':a263_0x4a2b4d(0x236)},{'name':a263_0x4a2b4d(0x247),'meowKey':'app','type':'string','description':'Select\x20app\x20profile\x20by\x20name','hint':'<name>'},{'name':a263_0x4a2b4d(0x23e),'meowKey':a263_0x4a2b4d(0x23e),'type':a263_0x4a2b4d(0x204),'description':'Environment','hint':a263_0x4a2b4d(0x248)},{'name':a263_0x4a2b4d(0x22b),'meowKey':a263_0x4a2b4d(0x22b),'type':'string','description':a263_0x4a2b4d(0x1d7),'hint':'json\x20|\x20pretty\x20|\x20compress'},{'name':'jq','meowKey':'jq','type':a263_0x4a2b4d(0x204),'description':a263_0x4a2b4d(0x1e0),'hint':a263_0x4a2b4d(0x237)},{'name':'dry-run','meowKey':a263_0x4a2b4d(0x222),'type':a263_0x4a2b4d(0x1f5),'description':a263_0x4a2b4d(0x209)},{'name':'yes','meowKey':a263_0x4a2b4d(0x1fc),'type':a263_0x4a2b4d(0x1f5),'description':a263_0x4a2b4d(0x231)},{'name':a263_0x4a2b4d(0x200),'meowKey':a263_0x4a2b4d(0x201),'type':a263_0x4a2b4d(0x1f5),'description':a263_0x4a2b4d(0x1d4)},{'name':a263_0x4a2b4d(0x203),'meowKey':a263_0x4a2b4d(0x203),'type':a263_0x4a2b4d(0x1f5),'description':'Use\x20global\x20config\x20scope'},{'name':a263_0x4a2b4d(0x1ea),'meowKey':a263_0x4a2b4d(0x1ea),'type':a263_0x4a2b4d(0x1f5),'description':a263_0x4a2b4d(0x21f)},{'name':'ci','meowKey':'ci','type':a263_0x4a2b4d(0x1f5),'description':a263_0x4a2b4d(0x22c),'hidden':!![]},{'name':a263_0x4a2b4d(0x21b),'meowKey':a263_0x4a2b4d(0x21b),'type':a263_0x4a2b4d(0x1f5),'description':a263_0x4a2b4d(0x213)},{'name':a263_0x4a2b4d(0x1d2),'meowKey':'locale','type':a263_0x4a2b4d(0x204),'description':a263_0x4a2b4d(0x240),'hidden':!![],'hint':a263_0x4a2b4d(0x20b)},{'name':a263_0x4a2b4d(0x243),'meowKey':'name','type':a263_0x4a2b4d(0x204),'description':'Name','hidden':!![]},{'name':'title','meowKey':a263_0x4a2b4d(0x1de),'type':a263_0x4a2b4d(0x204),'description':a263_0x4a2b4d(0x1e3),'hidden':!![]},{'name':a263_0x4a2b4d(0x232),'meowKey':a263_0x4a2b4d(0x232),'type':a263_0x4a2b4d(0x204),'description':a263_0x4a2b4d(0x221),'hidden':!![]},{'name':a263_0x4a2b4d(0x1ce),'meowKey':a263_0x4a2b4d(0x1ce),'type':a263_0x4a2b4d(0x204),'description':a263_0x4a2b4d(0x225),'hidden':!![]},{'name':a263_0x4a2b4d(0x224),'meowKey':a263_0x4a2b4d(0x224),'type':'boolean','description':a263_0x4a2b4d(0x1d6),'hidden':!![]},{'name':'watch','meowKey':'watch','type':a263_0x4a2b4d(0x1f5),'description':a263_0x4a2b4d(0x208),'hidden':!![]},{'name':a263_0x4a2b4d(0x242),'meowKey':a263_0x4a2b4d(0x242),'type':a263_0x4a2b4d(0x204),'description':a263_0x4a2b4d(0x1d9),'hidden':!![]},{'name':'params','meowKey':a263_0x4a2b4d(0x22e),'type':'string','description':'JSON\x20params','hidden':!![]},{'name':a263_0x4a2b4d(0x1d1),'meowKey':a263_0x4a2b4d(0x1d1),'type':a263_0x4a2b4d(0x204),'description':a263_0x4a2b4d(0x1fe),'hidden':!![]},{'name':a263_0x4a2b4d(0x1f6),'meowKey':a263_0x4a2b4d(0x1f6),'type':'boolean','description':'Apply\x20to\x20all','hidden':!![]},{'name':'enable-bff-save','meowKey':'enableBffSave','type':a263_0x4a2b4d(0x1f5),'description':'Enable\x20Backend\x20Function\x20save','hidden':!![]},{'name':'id','meowKey':'id','type':a263_0x4a2b4d(0x204),'description':a263_0x4a2b4d(0x20f),'hidden':!![]},{'name':a263_0x4a2b4d(0x1e8),'meowKey':a263_0x4a2b4d(0x1e8),'type':a263_0x4a2b4d(0x204),'description':a263_0x4a2b4d(0x1e1),'hidden':!![]},{'name':a263_0x4a2b4d(0x1c8),'meowKey':'file','type':a263_0x4a2b4d(0x204),'description':a263_0x4a2b4d(0x1d3),'hidden':!![]},{'name':a263_0x4a2b4d(0x1fa),'meowKey':a263_0x4a2b4d(0x21e),'type':a263_0x4a2b4d(0x204),'description':a263_0x4a2b4d(0x215),'hidden':!![]},{'name':a263_0x4a2b4d(0x1ff),'meowKey':a263_0x4a2b4d(0x1eb),'type':a263_0x4a2b4d(0x204),'description':a263_0x4a2b4d(0x1f7),'hidden':!![]},{'name':a263_0x4a2b4d(0x1fd),'meowKey':a263_0x4a2b4d(0x1ca),'type':a263_0x4a2b4d(0x204),'description':a263_0x4a2b4d(0x226),'hidden':!![]},{'name':a263_0x4a2b4d(0x23d),'meowKey':a263_0x4a2b4d(0x1e9),'type':a263_0x4a2b4d(0x204),'description':a263_0x4a2b4d(0x249),'hidden':!![]},{'name':'dataset-code','meowKey':a263_0x4a2b4d(0x219),'type':a263_0x4a2b4d(0x204),'description':a263_0x4a2b4d(0x1fe),'hidden':!![]},{'name':a263_0x4a2b4d(0x20e),'meowKey':'sqlcode','type':a263_0x4a2b4d(0x204),'description':'SQL\x20code','hidden':!![]},{'name':a263_0x4a2b4d(0x235),'meowKey':a263_0x4a2b4d(0x239),'type':a263_0x4a2b4d(0x204),'description':'SQL\x20name','hidden':!![]},{'name':'sqlname','meowKey':'sqlname','type':a263_0x4a2b4d(0x204),'description':a263_0x4a2b4d(0x1f8),'hidden':!![]},{'name':'db-id','meowKey':a263_0x4a2b4d(0x1dd),'type':a263_0x4a2b4d(0x204),'description':'DB\x20ID','hidden':!![]},{'name':a263_0x4a2b4d(0x206),'meowKey':a263_0x4a2b4d(0x206),'type':a263_0x4a2b4d(0x204),'description':'DB\x20ID','hidden':!![]},{'name':a263_0x4a2b4d(0x1cf),'meowKey':a263_0x4a2b4d(0x1cf),'type':'string','description':'Description','hidden':!![]},{'name':a263_0x4a2b4d(0x1cd),'meowKey':'descriptionFile','type':a263_0x4a2b4d(0x204),'description':a263_0x4a2b4d(0x1c7),'hidden':!![]},{'name':a263_0x4a2b4d(0x211),'meowKey':'page','type':a263_0x4a2b4d(0x204),'description':'Page\x20number','hidden':!![]},{'name':'page-size','meowKey':a263_0x4a2b4d(0x1d0),'type':'string','description':a263_0x4a2b4d(0x1df),'hidden':!![]},{'name':'pagesize','meowKey':a263_0x4a2b4d(0x22d),'type':a263_0x4a2b4d(0x204),'description':'Page\x20size','hidden':!![]},{'name':'keyword','meowKey':a263_0x4a2b4d(0x1f0),'type':a263_0x4a2b4d(0x204),'description':'Keyword\x20filter','hidden':!![]},{'name':a263_0x4a2b4d(0x218),'meowKey':a263_0x4a2b4d(0x218),'type':a263_0x4a2b4d(0x204),'description':'Code\x20filter','hidden':!![]},{'name':a263_0x4a2b4d(0x24c),'meowKey':'sql','type':a263_0x4a2b4d(0x204),'description':'SQL\x20string','hidden':!![]},{'name':a263_0x4a2b4d(0x23a),'meowKey':a263_0x4a2b4d(0x23a),'type':a263_0x4a2b4d(0x204),'description':a263_0x4a2b4d(0x23c),'hidden':!![]},{'name':a263_0x4a2b4d(0x1db),'meowKey':'operation','type':a263_0x4a2b4d(0x204),'description':'Operation\x20type','hidden':!![]},{'name':'target','meowKey':a263_0x4a2b4d(0x1f2),'type':a263_0x4a2b4d(0x204),'description':'Target\x20path','hidden':!![]},{'name':'skip-imports','meowKey':'skipImports','type':a263_0x4a2b4d(0x1f5),'description':'Skip\x20import\x20generation','hidden':!![]},{'name':a263_0x4a2b4d(0x1d5),'meowKey':'key','type':a263_0x4a2b4d(0x204),'description':a263_0x4a2b4d(0x1e2),'hidden':!![]},{'name':a263_0x4a2b4d(0x1cb),'meowKey':a263_0x4a2b4d(0x1cb),'type':a263_0x4a2b4d(0x204),'description':a263_0x4a2b4d(0x1fb),'hidden':!![]},{'name':a263_0x4a2b4d(0x1f4),'meowKey':a263_0x4a2b4d(0x1f4),'type':a263_0x4a2b4d(0x204),'description':'Tags','hidden':!![]},{'name':a263_0x4a2b4d(0x205),'meowKey':a263_0x4a2b4d(0x205),'type':'boolean','description':'Read\x20value\x20from\x20stdin','hidden':!![]},{'name':a263_0x4a2b4d(0x202),'meowKey':a263_0x4a2b4d(0x228),'type':a263_0x4a2b4d(0x204),'description':'Read\x20value\x20from\x20environment\x20variable','hidden':!![]},{'name':'reveal','meowKey':a263_0x4a2b4d(0x238),'type':a263_0x4a2b4d(0x1f5),'description':'Reveal\x20sensitive\x20value','hidden':!![]},{'name':a263_0x4a2b4d(0x234),'meowKey':a263_0x4a2b4d(0x234),'type':a263_0x4a2b4d(0x1f5),'description':a263_0x4a2b4d(0x1e6),'hidden':!![]},{'name':a263_0x4a2b4d(0x223),'meowKey':a263_0x4a2b4d(0x223),'type':a263_0x4a2b4d(0x1f5),'description':a263_0x4a2b4d(0x1dc),'hidden':!![]},{'name':'remote','meowKey':a263_0x4a2b4d(0x21d),'type':a263_0x4a2b4d(0x1f5),'description':a263_0x4a2b4d(0x1e7),'hidden':!![]},{'name':a263_0x4a2b4d(0x210),'meowKey':a263_0x4a2b4d(0x210),'type':a263_0x4a2b4d(0x1f5),'description':a263_0x4a2b4d(0x24a),'hidden':!![]},{'name':a263_0x4a2b4d(0x230),'meowKey':a263_0x4a2b4d(0x212),'type':'string','description':'Expected\x20affected\x20count','hidden':!![]},{'name':a263_0x4a2b4d(0x245),'meowKey':'label','type':'string','description':a263_0x4a2b4d(0x20c),'hidden':!![]},{'name':a263_0x4a2b4d(0x1f9),'meowKey':'parentId','type':'string','description':a263_0x4a2b4d(0x241),'hidden':!![]},{'name':a263_0x4a2b4d(0x23b),'meowKey':a263_0x4a2b4d(0x23b),'type':a263_0x4a2b4d(0x204),'description':a263_0x4a2b4d(0x1c5),'hidden':!![]},{'name':a263_0x4a2b4d(0x1c4),'meowKey':'expectParentId','type':a263_0x4a2b4d(0x204),'description':a263_0x4a2b4d(0x220),'hidden':!![]},{'name':'expect-path','meowKey':a263_0x4a2b4d(0x1cc),'type':a263_0x4a2b4d(0x204),'description':a263_0x4a2b4d(0x23f),'hidden':!![]},{'name':a263_0x4a2b4d(0x24b),'meowKey':'expectedChildrenCount','type':'string','description':a263_0x4a2b4d(0x217),'hidden':!![]},{'name':a263_0x4a2b4d(0x21a),'meowKey':a263_0x4a2b4d(0x20d),'type':a263_0x4a2b4d(0x204),'description':a263_0x4a2b4d(0x1d8),'hidden':!![]},{'name':'task-id','meowKey':a263_0x4a2b4d(0x227),'type':a263_0x4a2b4d(0x204),'description':'Asynchronous\x20task\x20ID','hidden':!![]},{'name':a263_0x4a2b4d(0x1e5),'meowKey':'operationType','type':a263_0x4a2b4d(0x204),'description':a263_0x4a2b4d(0x1da),'hidden':!![]},{'name':a263_0x4a2b4d(0x1c6),'meowKey':a263_0x4a2b4d(0x1c9),'type':a263_0x4a2b4d(0x204),'description':a263_0x4a2b4d(0x1ed),'hidden':!![]},{'name':a263_0x4a2b4d(0x1f3),'meowKey':'codes','type':a263_0x4a2b4d(0x204),'description':'Comma-separated\x20metadata\x20codes','hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set(['appcode',a263_0x4a2b4d(0x247),a263_0x4a2b4d(0x23e),'format','jq',a263_0x4a2b4d(0x1e4),a263_0x4a2b4d(0x1fc),a263_0x4a2b4d(0x200),'ci']);export function buildMeowFlags(){const _0x4fbf5a=a263_0x4a2b4d;return Object['fromEntries'](GLOBAL_FLAGS[_0x4fbf5a(0x246)](_0x55b881=>[_0x55b881[_0x4fbf5a(0x233)],{'type':_0x55b881['type']}]));}
|
package/lib/constant/defaults.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a264_0x41e8(_0x1c0c9b,_0x216ff1){_0x1c0c9b=_0x1c0c9b-0xeb;const _0x12f68c=a264_0x12f6();let _0x41e839=_0x12f68c[_0x1c0c9b];return _0x41e839;}const a264_0x508397=a264_0x41e8;(function(_0x3818ed,_0x30eb73){const _0xd90ef0=a264_0x41e8,_0x3d6a12=_0x3818ed();while(!![]){try{const _0x19502e=-parseInt(_0xd90ef0(0xf5))/0x1*(-parseInt(_0xd90ef0(0xef))/0x2)+parseInt(_0xd90ef0(0xec))/0x3+parseInt(_0xd90ef0(0xed))/0x4+-parseInt(_0xd90ef0(0xee))/0x5+parseInt(_0xd90ef0(0xeb))/0x6+-parseInt(_0xd90ef0(0xf1))/0x7*(parseInt(_0xd90ef0(0xf2))/0x8)+parseInt(_0xd90ef0(0xf4))/0x9;if(_0x19502e===_0x30eb73)break;else _0x3d6a12['push'](_0x3d6a12['shift']());}catch(_0xe4a411){_0x3d6a12['push'](_0x3d6a12['shift']());}}}(a264_0x12f6,0xce16e));import{DEFAULT_API_DIR}from'../constant/paths.js';function a264_0x12f6(){const _0x183fea=['19976058xnzirb','4483yOxCUP','1687680OIfYNS','111591bfeCYe','2366512Lbaewz','3662595tGzieK','16GuUjxR','compress','11122090MOqctB','8RucbAg','write'];a264_0x12f6=function(){return _0x183fea;};return a264_0x12f6();}export const DEFAULT_CONFIG_VALUES={'env':'production','format':a264_0x508397(0xf0),'locale':'en-US','riskLevel':a264_0x508397(0xf3),'apiDir':DEFAULT_API_DIR};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a264_0x508397(0xf0);
|
package/lib/constant/domain.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a265_0x5dee(_0x43d376,_0x52bdc7){_0x43d376=_0x43d376-0x1b6;const _0x2f4069=a265_0x2f40();let _0x5dee2c=_0x2f4069[_0x43d376];return _0x5dee2c;}const a265_0x50a64a=a265_0x5dee;(function(_0x53cdaa,_0x2d3a03){const _0x1ccb91=a265_0x5dee,_0xb5a0b2=_0x53cdaa();while(!![]){try{const _0x149b32=parseInt(_0x1ccb91(0x1b8))/0x1+-parseInt(_0x1ccb91(0x1c1))/0x2*(parseInt(_0x1ccb91(0x1cc))/0x3)+-parseInt(_0x1ccb91(0x1bb))/0x4+parseInt(_0x1ccb91(0x1c0))/0x5+parseInt(_0x1ccb91(0x1c2))/0x6+parseInt(_0x1ccb91(0x1d2))/0x7*(parseInt(_0x1ccb91(0x1cb))/0x8)+-parseInt(_0x1ccb91(0x1c9))/0x9;if(_0x149b32===_0x2d3a03)break;else _0xb5a0b2['push'](_0xb5a0b2['shift']());}catch(_0x1d9e76){_0xb5a0b2['push'](_0xb5a0b2['shift']());}}}(a265_0x2f40,0xe4561));import{getEnv,isProduction}from'../constant/env.js';import{DEFAULT_LOVRABET_REGION}from'../constant/region.js';import{getOfficialRoutingCdn,getOfficialRoutingProfile}from'../constant/routing-profile.js';let customApiDomain,customUserDomain,customRuntimeDomain,customSkillDomain,customKbDomain,customKbServiceDomain,allowOfficialKbServiceDefault=!![],customAppDomain,customLocalDomain,customCertificateDomain,customCdn,activeRegion=DEFAULT_LOVRABET_REGION;function getActiveRegionDomains(){const _0x3ea36c=a265_0x5dee,_0x28164e=getOfficialRoutingProfile(activeRegion);return isProduction(getEnv())?_0x28164e[_0x3ea36c(0x1bf)][_0x3ea36c(0x1ba)]:_0x28164e[_0x3ea36c(0x1bf)][_0x3ea36c(0x1d3)]??_0x28164e[_0x3ea36c(0x1bf)][_0x3ea36c(0x1ba)];}export function initDomains(_0xb7ff1c){const _0x589fb1=a265_0x5dee;customApiDomain=_0xb7ff1c?.[_0x589fb1(0x1bd)],customUserDomain=_0xb7ff1c?.[_0x589fb1(0x1cd)],customRuntimeDomain=_0xb7ff1c?.['runtimeDomain'],customSkillDomain=_0xb7ff1c?.[_0x589fb1(0x1c5)],customKbDomain=_0xb7ff1c?.[_0x589fb1(0x1c4)],customKbServiceDomain=_0xb7ff1c?.[_0x589fb1(0x1ca)],allowOfficialKbServiceDefault=_0xb7ff1c?.[_0x589fb1(0x1b9)]??!![],customAppDomain=_0xb7ff1c?.['appDomain'],customLocalDomain=_0xb7ff1c?.['localDomain'],customCertificateDomain=_0xb7ff1c?.[_0x589fb1(0x1d4)],customCdn=_0xb7ff1c?.[_0x589fb1(0x1bc)],activeRegion=_0xb7ff1c?.[_0x589fb1(0x1be)]??DEFAULT_LOVRABET_REGION;}export const getUserDomain=()=>customUserDomain||getActiveRegionDomains()[a265_0x50a64a(0x1c8)];export const getApiDomain=()=>customApiDomain||getActiveRegionDomains()[a265_0x50a64a(0x1ce)];export const getRuntimeDomain=()=>customRuntimeDomain||getActiveRegionDomains()['runtime'];export const getSkillDomain=()=>customSkillDomain||getActiveRegionDomains()[a265_0x50a64a(0x1cf)];function a265_0x2f40(){const _0x4d2f62=['hostname','587349TBKCDF','allowOfficialKbServiceDefault','production','3527712SOiUKX','cdn','apiDomain','region','serviceDomains','2443010nNFnlu','162uFkKpk','11041212zOEUsB','kbService','kbDomain','skillDomain','trim','app','user','6106842mjSpnW','kbServiceDomain','8fTBvhX','49809IufExP','userDomain','api','skill','origin','/web-app/app/','6470947axaxWK','daily','certificateDomain','/app/'];a265_0x2f40=function(){return _0x4d2f62;};return a265_0x2f40();}export const getKbDomain=()=>customKbDomain||customApiDomain||getActiveRegionDomains()['kb'];export const getKbServiceDomain=()=>{const _0x235bc4=a265_0x50a64a;if(customKbServiceDomain)return customKbServiceDomain;if(!allowOfficialKbServiceDefault)return undefined;return getActiveRegionDomains()[_0x235bc4(0x1c3)];};export const getAppDomain=()=>customAppDomain||getActiveRegionDomains()[a265_0x50a64a(0x1c7)];export const getActiveRegion=()=>activeRegion;export const getLocalDomain=()=>customLocalDomain;export const getCertificateDomain=()=>customCertificateDomain;export const getActiveCdn=()=>customCdn||getOfficialRoutingCdn(activeRegion);export function isIndependentDeployment(){return!!(customApiDomain||customUserDomain||customRuntimeDomain||customSkillDomain||customKbDomain||customAppDomain||customLocalDomain||customCertificateDomain);}export function getSdkClientRoutingConfig(){if(customRuntimeDomain&&customRuntimeDomain!==getActiveRegionDomains()['runtime'])return{'runtimeDomain':customRuntimeDomain};if(activeRegion!==DEFAULT_LOVRABET_REGION)return{'runtimeDomain':getRuntimeDomain()};return{};}export const getAppBaseUrl=_0x5c9041=>{const _0x4dbdb4=a265_0x50a64a,_0x3e113a=encodeURIComponent(_0x5c9041['trim']());return isProduction(getEnv())?getAppDomain()+_0x4dbdb4(0x1b6)+_0x3e113a:getAppDomain()+_0x4dbdb4(0x1d1)+_0x3e113a;};export const getPublishedAppDomain=_0x226d04=>{const _0x365350=a265_0x50a64a,_0x5f4477=new URL(getAppDomain());return _0x5f4477[_0x365350(0x1b7)]=_0x226d04[_0x365350(0x1c6)]()+'.'+_0x5f4477[_0x365350(0x1b7)],_0x5f4477[_0x365350(0x1d0)];};
|
package/lib/constant/env.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a266_0x223b1c=a266_0x7e2c;function a266_0x202b(){const _0x1ca0d0=['8oSUluu','daily','29612106ZlgBzW','926TlGKtH','online','1515882joaAXO','3731410cWqAWj','1853ioqnhw','1008336laLqWc','4458252LTDIun','4094445GkUGFj','production'];a266_0x202b=function(){return _0x1ca0d0;};return a266_0x202b();}function a266_0x7e2c(_0x199107,_0x213612){_0x199107=_0x199107-0x181;const _0x202b80=a266_0x202b();let _0x7e2cc7=_0x202b80[_0x199107];return _0x7e2cc7;}(function(_0x909b1f,_0x3aca02){const _0x26ea32=a266_0x7e2c,_0xd1e051=_0x909b1f();while(!![]){try{const _0x2a9eb4=parseInt(_0x26ea32(0x182))/0x1*(parseInt(_0x26ea32(0x18a))/0x2)+parseInt(_0x26ea32(0x185))/0x3+parseInt(_0x26ea32(0x184))/0x4+parseInt(_0x26ea32(0x181))/0x5+-parseInt(_0x26ea32(0x18c))/0x6+parseInt(_0x26ea32(0x183))/0x7+parseInt(_0x26ea32(0x187))/0x8*(-parseInt(_0x26ea32(0x189))/0x9);if(_0x2a9eb4===_0x3aca02)break;else _0xd1e051['push'](_0xd1e051['shift']());}catch(_0x5509ad){_0xd1e051['push'](_0xd1e051['shift']());}}}(a266_0x202b,0xa72de));export const RABETBASE_ENV_VALUES=['production',a266_0x223b1c(0x188)];export function normalizeEnv(_0x4ea00c){const _0x6068a1=a266_0x223b1c;return _0x4ea00c===_0x6068a1(0x18b)?_0x6068a1(0x186):_0x4ea00c;}export function isProduction(_0x4c186c){const _0x559bb5=a266_0x223b1c;return normalizeEnv(_0x4c186c)===_0x559bb5(0x186);}export function isDaily(_0xaf85c6){const _0x5dc0b9=a266_0x223b1c;return normalizeEnv(_0xaf85c6)===_0x5dc0b9(0x188);}export function isDev(_0x1c0066){const _0x205c42=normalizeEnv(_0x1c0066);return _0x205c42==='development'||_0x205c42==='dev';}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||'production');export function getEnv(){return env;}export function initEnv(_0xf94f8){env=normalizeEnv(_0xf94f8);}
|
package/lib/constant/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a267_0x1f1e(_0x166302,_0x3b5819){_0x166302=_0x166302-0x72;const _0x5a4962=a267_0x5a49();let _0x1f1e8c=_0x5a4962[_0x166302];return _0x1f1e8c;}const a267_0xcdcde3=a267_0x1f1e;(function(_0x21fb5a,_0x37e4be){const _0x1b9bd9=a267_0x1f1e,_0x2c655b=_0x21fb5a();while(!![]){try{const _0x441c0b=parseInt(_0x1b9bd9(0x77))/0x1*(-parseInt(_0x1b9bd9(0x7d))/0x2)+parseInt(_0x1b9bd9(0x7c))/0x3+parseInt(_0x1b9bd9(0x78))/0x4*(-parseInt(_0x1b9bd9(0x74))/0x5)+-parseInt(_0x1b9bd9(0x73))/0x6*(-parseInt(_0x1b9bd9(0x75))/0x7)+-parseInt(_0x1b9bd9(0x7e))/0x8+-parseInt(_0x1b9bd9(0x72))/0x9+-parseInt(_0x1b9bd9(0x7b))/0xa*(-parseInt(_0x1b9bd9(0x76))/0xb);if(_0x441c0b===_0x37e4be)break;else _0x2c655b['push'](_0x2c655b['shift']());}catch(_0x2463a7){_0x2c655b['push'](_0x2c655b['shift']());}}}(a267_0x5a49,0xdc801));function a267_0x5a49(){const _0x52cd1=['12162904QMmsZa','3847878EGmULI','66yOHahW','65770iNIHiY','1020789rvGYOE','15651251ZTtJru','30865AYQaEy','104kPorpO','pretty','json','10KQTDzl','3646650WgZSiX','68qhLSwR'];a267_0x5a49=function(){return _0x52cd1;};return a267_0x5a49();}export const RABETBASE_OUTPUT_FORMAT_VALUES=[a267_0xcdcde3(0x7a),a267_0xcdcde3(0x79),'compress'];
|
package/lib/constant/paths.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a268_0x12f6(_0x99233f,_0x144dce){_0x99233f=_0x99233f-0xfe;const _0x3bbb8a=a268_0x3bbb();let _0x12f677=_0x3bbb8a[_0x99233f];return _0x12f677;}(function(_0x12732e,_0x1280b7){const _0x1670f5=a268_0x12f6,_0x826ce=_0x12732e();while(!![]){try{const _0x1e9835=parseInt(_0x1670f5(0x101))/0x1+-parseInt(_0x1670f5(0x104))/0x2+-parseInt(_0x1670f5(0x103))/0x3+-parseInt(_0x1670f5(0x100))/0x4+-parseInt(_0x1670f5(0xfe))/0x5*(parseInt(_0x1670f5(0x102))/0x6)+parseInt(_0x1670f5(0xff))/0x7+parseInt(_0x1670f5(0x105))/0x8;if(_0x1e9835===_0x1280b7)break;else _0x826ce['push'](_0x826ce['shift']());}catch(_0x471765){_0x826ce['push'](_0x826ce['shift']());}}}(a268_0x3bbb,0x6c6d8));function a268_0x3bbb(){const _0x1339e2=['13789784RkYymc','2645dJSQLE','1129905WveFjB','777780xaZtFX','239960qZDfRV','6156hZZEPi','544638ZalFPJ','1524466IfInUk'];a268_0x3bbb=function(){return _0x1339e2;};return a268_0x3bbb();}export const DEFAULT_API_DIR='./src/api';
|
package/lib/constant/region.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x4ece4e,_0x16f39c){const _0x3a5fca=a269_0x4ed5,_0x418f68=_0x4ece4e();while(!![]){try{const _0x994bb1=-parseInt(_0x3a5fca(0xe5))/0x1*(-parseInt(_0x3a5fca(0xe3))/0x2)+-parseInt(_0x3a5fca(0xe4))/0x3+-parseInt(_0x3a5fca(0xe8))/0x4*(-parseInt(_0x3a5fca(0xe0))/0x5)+parseInt(_0x3a5fca(0xe6))/0x6*(parseInt(_0x3a5fca(0xe2))/0x7)+parseInt(_0x3a5fca(0xdf))/0x8+parseInt(_0x3a5fca(0xea))/0x9+-parseInt(_0x3a5fca(0xe7))/0xa;if(_0x994bb1===_0x16f39c)break;else _0x418f68['push'](_0x418f68['shift']());}catch(_0x5757fe){_0x418f68['push'](_0x418f68['shift']());}}}(a269_0x4f64,0x3e60e));import{DEFAULT_REGION,ENABLED_REGION_VALUES,REGION_ALIASES,REGION_VALUES}from'../generated/official-routing.js';export const LOVRABET_REGION_VALUES=REGION_VALUES;export const ENABLED_LOVRABET_REGION_VALUES=ENABLED_REGION_VALUES;export const DEFAULT_LOVRABET_REGION=DEFAULT_REGION;function a269_0x4f64(){const _0x1220ec=['103959uuwiYi','446969iEiCmy','219234kZIBHq','17822280ElXvuZ','4364rRaFnW','includes','3421305EiqDqT','3792064DEPgAY','2195HwrEZE','string','56jsKsSE','2FftyoC'];a269_0x4f64=function(){return _0x1220ec;};return a269_0x4f64();}export function isLovrabetRegion(_0x3ae1c1){const _0x1c3a97=a269_0x4ed5;return typeof _0x3ae1c1===_0x1c3a97(0xe1)&&LOVRABET_REGION_VALUES['includes'](_0x3ae1c1);}function a269_0x4ed5(_0x4e66d6,_0x21e380){_0x4e66d6=_0x4e66d6-0xdf;const _0x4f6422=a269_0x4f64();let _0x4ed544=_0x4f6422[_0x4e66d6];return _0x4ed544;}export function isEnabledLovrabetRegion(_0x6736de){const _0x122865=a269_0x4ed5;return typeof _0x6736de===_0x122865(0xe1)&&ENABLED_LOVRABET_REGION_VALUES[_0x122865(0xe9)](_0x6736de);}export function normalizeLovrabetRegion(_0x4ced6c){const _0x1d0f41=a269_0x4ed5;if(typeof _0x4ced6c!==_0x1d0f41(0xe1))return undefined;const _0x46813a=REGION_ALIASES[_0x4ced6c]??_0x4ced6c;return isLovrabetRegion(_0x46813a)?_0x46813a:undefined;}export function isInvalidLovrabetRegion(_0x4ca4a7){return _0x4ca4a7!==undefined&&_0x4ca4a7!==null&&_0x4ca4a7!==''&&normalizeLovrabetRegion(_0x4ca4a7)===undefined;}
|
package/lib/constant/risk.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a270_0x46f547=a270_0x392f;function a270_0x392f(_0x3f97ea,_0x1774ab){_0x3f97ea=_0x3f97ea-0xce;const _0x5a5a61=a270_0x5a5a();let _0x392f37=_0x5a5a61[_0x3f97ea];return _0x392f37;}(function(_0x525dc7,_0x2790ac){const _0x45e223=a270_0x392f,_0x2df9c5=_0x525dc7();while(!![]){try{const _0x2a53f6=-parseInt(_0x45e223(0xd6))/0x1+-parseInt(_0x45e223(0xd4))/0x2+parseInt(_0x45e223(0xd1))/0x3*(parseInt(_0x45e223(0xce))/0x4)+parseInt(_0x45e223(0xd0))/0x5*(-parseInt(_0x45e223(0xd5))/0x6)+-parseInt(_0x45e223(0xda))/0x7+parseInt(_0x45e223(0xd2))/0x8*(parseInt(_0x45e223(0xd3))/0x9)+parseInt(_0x45e223(0xd9))/0xa;if(_0x2a53f6===_0x2790ac)break;else _0x2df9c5['push'](_0x2df9c5['shift']());}catch(_0x2df729){_0x2df9c5['push'](_0x2df9c5['shift']());}}}(a270_0x5a5a,0xc11a2));function a270_0x5a5a(){const _0x122e70=['3800262zdOlKC','1234552JEOfIi','write','high-risk-write','30020970wBCVWs','7233331yXtRxw','5324108QZkIAn','read','5SgiWwp','3gtYrQR','165304eaKelH','207iSuNfD','2232330sLZRnt'];a270_0x5a5a=function(){return _0x122e70;};return a270_0x5a5a();}export const RISK_LEVEL_VALUES=[a270_0x46f547(0xcf),a270_0x46f547(0xd7),a270_0x46f547(0xd8)];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a271_0x3121(){const _0x1608b9=['1233693OUKDvC','lovrabet','1059765euYLQK','21gmJlrE','20dOyVSt','1261456SSqzEu','7725AhjxaN','490452CHPkwM','80076lPLPUU','65dqAfUv','149426BoQPdq'];a271_0x3121=function(){return _0x1608b9;};return a271_0x3121();}(function(_0x713adb,_0x57e125){const _0x226e9e=a271_0x2752,_0x10b46a=_0x713adb();while(!![]){try{const _0x57121c=-parseInt(_0x226e9e(0x6f))/0x1+-parseInt(_0x226e9e(0x73))/0x2+parseInt(_0x226e9e(0x76))/0x3+parseInt(_0x226e9e(0x71))/0x4*(-parseInt(_0x226e9e(0x72))/0x5)+parseInt(_0x226e9e(0x70))/0x6*(-parseInt(_0x226e9e(0x77))/0x7)+parseInt(_0x226e9e(0x6e))/0x8+parseInt(_0x226e9e(0x74))/0x9*(parseInt(_0x226e9e(0x78))/0xa);if(_0x57121c===_0x57e125)break;else _0x10b46a['push'](_0x10b46a['shift']());}catch(_0x450692){_0x10b46a['push'](_0x10b46a['shift']());}}}(a271_0x3121,0x3023c));import{OFFICIAL_ROUTING_PROFILES as a271_0x1d8d37,ROUTING_CATALOG_DIGEST}from'../generated/official-routing.js';function a271_0x2752(_0xa6e005,_0x37f33e){_0xa6e005=_0xa6e005-0x6e;const _0x312147=a271_0x3121();let _0x275214=_0x312147[_0xa6e005];return _0x275214;}export const OFFICIAL_ROUTING_PROFILES=a271_0x1d8d37;export{ROUTING_CATALOG_DIGEST};export function getOfficialRoutingProfile(_0x475967){return OFFICIAL_ROUTING_PROFILES[_0x475967];}export function getOfficialRoutingCdn(_0x2b2d3f){const _0x3849d9=a271_0x2752,_0x4434c7=getOfficialRoutingProfile(_0x2b2d3f)['cdn'];if(!_0x4434c7['lovrabet'])throw new Error('Official\x20routing\x20for\x20region\x20\x22'+_0x2b2d3f+'\x22\x20is\x20not\x20ready:\x20Lovrabet\x20CDN\x20Domain\x20is\x20not\x20configured.');return{'libraries':_0x4434c7['libraries'],'lovrabet':_0x4434c7[_0x3849d9(0x75)]};}
|