@lovrabet/rabetbase-cli 2.5.5-beta.2 → 2.5.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api/api-doc.js +1 -1
- package/lib/api/api-group.js +1 -1
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.js +1 -1
- package/lib/api/generate-sdk-config-file.js +1 -1
- package/lib/api/legacy-api-file.js +1 -1
- package/lib/api/model-registry-file.js +1 -1
- package/lib/api/model-registry-scaffold.js +1 -1
- package/lib/api/model-source.js +1 -1
- package/lib/auth/auth-server-ui.js +1 -1
- package/lib/auth/auth-server.js +1 -1
- package/lib/auth/constant.js +1 -1
- package/lib/auth/get-cookie.js +1 -1
- package/lib/auth/get-session-user.js +1 -1
- package/lib/auth/is-session-valid.js +1 -1
- package/lib/auth/login-success-html.js +1 -1
- package/lib/auth/logout.js +1 -1
- package/lib/cli-flags.js +1 -1
- package/lib/cli.js +1 -1
- package/lib/commands/api/generate.js +1 -1
- package/lib/commands/api/index.js +1 -1
- package/lib/commands/api/list.js +1 -1
- package/lib/commands/api/pull.js +1 -1
- package/lib/commands/api/shared.js +1 -1
- package/lib/commands/app/detail.js +1 -1
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/members-list.js +1 -1
- package/lib/commands/app/remote-directory.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/delete.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/app-config/list.js +1 -1
- package/lib/commands/app-config/set.js +1 -1
- package/lib/commands/app-config/shared.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/bff/create.js +1 -1
- package/lib/commands/bff/delete.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/bff/list.js +1 -1
- package/lib/commands/bff/logs.js +1 -1
- package/lib/commands/bff/pull.js +1 -1
- package/lib/commands/bff/push.js +1 -1
- package/lib/commands/bff/status.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/cli-update.js +1 -1
- package/lib/commands/codegen/index.js +1 -1
- package/lib/commands/codegen/sdk.js +1 -1
- package/lib/commands/codegen/sql.js +1 -1
- package/lib/commands/common/app-registry.js +1 -1
- package/lib/commands/common/app-selector.js +1 -1
- package/lib/commands/common/async-task.js +1 -1
- package/lib/commands/common/dry-run.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/common/validate.js +1 -1
- package/lib/commands/config/delete.js +1 -1
- package/lib/commands/config/get.js +1 -1
- package/lib/commands/config/index.js +1 -1
- package/lib/commands/config/init.js +1 -1
- package/lib/commands/config/list.js +1 -1
- package/lib/commands/config/set.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/dataset/batch-design.js +1 -1
- package/lib/commands/dataset/business-group-update.js +1 -1
- package/lib/commands/dataset/business-groups.js +1 -1
- package/lib/commands/dataset/capability.js +1 -1
- package/lib/commands/dataset/cross-relation-create.js +1 -1
- package/lib/commands/dataset/cross-relation-delete.js +1 -1
- package/lib/commands/dataset/cross-relation-list.js +1 -1
- package/lib/commands/dataset/cross-relation-shared.js +1 -1
- package/lib/commands/dataset/cross-relation-update.js +1 -1
- package/lib/commands/dataset/delete.js +1 -1
- package/lib/commands/dataset/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.js +1 -1
- package/lib/commands/menu/shared/logic.js +1 -1
- package/lib/commands/menu/shared/mutations.js +1 -1
- package/lib/commands/menu/shared/path.js +1 -1
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/subapp-assets.js +1 -1
- package/lib/commands/menu/shared/sync-core.js +1 -1
- package/lib/commands/menu/shared/update-core.js +1 -1
- package/lib/commands/menu/shared/valid-url.js +1 -1
- package/lib/commands/menu/subapp-assets-status.js +1 -1
- package/lib/commands/menu/subapp-assets-update.js +1 -1
- package/lib/commands/menu/sync.js +1 -1
- package/lib/commands/menu/visibility-update.js +1 -1
- package/lib/commands/notification/config-create.js +1 -1
- package/lib/commands/notification/config-delete.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/config-update.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/notification/shared.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/page/create.js +1 -1
- package/lib/commands/page/custom/detail.js +1 -1
- package/lib/commands/page/custom/list.js +1 -1
- package/lib/commands/page/custom/publish.js +1 -1
- package/lib/commands/page/custom/shared.js +1 -1
- package/lib/commands/page/custom/syntax.js +1 -1
- package/lib/commands/page/custom/update.js +1 -1
- package/lib/commands/page/data-list-status.js +1 -1
- package/lib/commands/page/generate-start.js +1 -1
- package/lib/commands/page/generate-status.js +1 -1
- package/lib/commands/page/index.js +1 -1
- package/lib/commands/page/pull.js +1 -1
- package/lib/commands/page/push.js +1 -1
- package/lib/commands/page/relation-audit.js +1 -1
- package/lib/commands/page/restore.js +1 -1
- package/lib/commands/page/shared.js +1 -1
- package/lib/commands/page/sync.js +1 -1
- package/lib/commands/project/api-architecture-upgrade.js +1 -1
- package/lib/commands/project/create/enhanced-guided-create.js +1 -1
- package/lib/commands/project/create/format-elapsed.js +1 -1
- package/lib/commands/project/create/main.js +1 -1
- package/lib/commands/project/create/materialize-project-template.js +1 -1
- package/lib/commands/project/create/project-name.js +1 -1
- package/lib/commands/project/create/project-template-archive.js +1 -1
- package/lib/commands/project/create/project-template-path.js +1 -1
- package/lib/commands/project/create/use-copy-project-template.js +1 -1
- package/lib/commands/project/create/use-format-code.js +1 -1
- package/lib/commands/project/create/use-install-dependencies.js +1 -1
- package/lib/commands/project/domain-routing-sync.js +1 -1
- package/lib/commands/project/index.js +1 -1
- package/lib/commands/project/upgrade.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/role/user-resolve.js +1 -1
- package/lib/commands/rule/get.js +1 -1
- package/lib/commands/rule/index.js +1 -1
- package/lib/commands/rule/list.js +1 -1
- package/lib/commands/rule/set.js +1 -1
- package/lib/commands/rule/shared.js +1 -1
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/sql/create.js +1 -1
- package/lib/commands/sql/delete.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/sql/list.js +1 -1
- package/lib/commands/sql/pull.js +1 -1
- package/lib/commands/sql/push.js +1 -1
- package/lib/commands/sql/shared.js +1 -1
- package/lib/commands/sql/status.js +1 -1
- package/lib/commands/sql/validate.js +1 -1
- package/lib/commands/task/index.js +1 -1
- package/lib/commands/task/status.js +1 -1
- package/lib/commands/tenant/index.js +1 -1
- package/lib/commands/tenant/members-list.js +1 -1
- package/lib/commands/tenant/shared.js +1 -1
- package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
- package/lib/commands/user-account/feishu-bind.js +1 -1
- package/lib/commands/user-account/index.js +1 -1
- package/lib/commands/workspace/add.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/commands/workspace/remove.js +1 -1
- package/lib/config/domain-config.js +1 -1
- package/lib/config/project-domain-routing.js +1 -1
- package/lib/config/region-config.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/cdn.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/paths.js +1 -1
- package/lib/constant/region.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/routing-profile.js +1 -1
- package/lib/context/app-resolver.js +1 -1
- package/lib/context/auth-resolver.js +1 -1
- package/lib/context/config-loader.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/bff/config.js +1 -1
- package/lib/core/bff/file-system.js +1 -1
- package/lib/core/bff/hash.js +1 -1
- package/lib/core/bff/hook-directory.js +1 -1
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/cross-db-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 +3 -3
- package/skills/rabetbase/guides/independent-deployment.md +11 -1
- package/skills/rabetbase/references/rabetbase-config.md +16 -19
- package/skills/rabetbase/references/rabetbase-menu-visibility-update.md +5 -4
- package/skills/rabetbase/references/rabetbase-workspace.md +3 -1
- package/skills/rabetbase-page-generation/SKILL.md +1 -1
- package/skills/rabetbase.manifest.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3a11cd,_0x1cf407){const _0x1759b2=a254_0x1b40,_0x428b0f=_0x3a11cd();while(!![]){try{const _0x234f8b=parseInt(_0x1759b2(0x166))/0x1*(-parseInt(_0x1759b2(0x163))/0x2)+parseInt(_0x1759b2(0x162))/0x3+-parseInt(_0x1759b2(0x160))/0x4+-parseInt(_0x1759b2(0x161))/0x5*(parseInt(_0x1759b2(0x164))/0x6)+parseInt(_0x1759b2(0x168))/0x7*(-parseInt(_0x1759b2(0x15e))/0x8)+-parseInt(_0x1759b2(0x167))/0x9+parseInt(_0x1759b2(0x165))/0xa*(parseInt(_0x1759b2(0x15f))/0xb);if(_0x234f8b===_0x1cf407)break;else _0x428b0f['push'](_0x428b0f['shift']());}catch(_0x1a5803){_0x428b0f['push'](_0x428b0f['shift']());}}}(a254_0x3ac0,0x3981b));import{dingTalkSandboxBind}from'../../commands/user-account/dingding-sandbox-bind.js';import{feishuBind}from'../../commands/user-account/feishu-bind.js';function a254_0x3ac0(){const _0x851530=['1315608wTzwDX','880rNclkB','643989axTsdg','101244NOXhNY','2334XRDRrN','23760eOvMss','3IiYdFW','514206KSqhEb','1962674tclcVG','8rbQdhT','4202nwMSEz'];a254_0x3ac0=function(){return _0x851530;};return a254_0x3ac0();}function a254_0x1b40(_0xc56910,_0x5aeb01){_0xc56910=_0xc56910-0x15e;const _0x3ac0ce=a254_0x3ac0();let _0x1b4083=_0x3ac0ce[_0xc56910];return _0x1b4083;}export const userAccountDefinitions=[dingTalkSandboxBind,feishuBind];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a255_0x4eff02=a255_0xba39;function a255_0x3960(){const _0x319ddb=['1057nGUAkr','workspace\x20add','Register\x20an\x20app\x20profile\x20in\x20the\x20current\x20workspace\x20(or\x20--global)','write','name','714928DNgbzO','27688feXojP','workspace','add','1232961OThfJO','2921320InOYuF','1460544NqcbDs','4433136GppRoD','2135850HimRKt'];a255_0x3960=function(){return _0x319ddb;};return a255_0x3960();}function a255_0xba39(_0x5e82d8,_0x386b87){_0x5e82d8=_0x5e82d8-0x1c3;const _0x3960ba=a255_0x3960();let _0xba3951=_0x3960ba[_0x5e82d8];return _0xba3951;}(function(_0x247b90,_0x10165c){const _0x58262d=a255_0xba39,_0x12e07d=_0x247b90();while(!![]){try{const _0x354393=parseInt(_0x58262d(0x1c8))/0x1+-parseInt(_0x58262d(0x1c4))/0x2+parseInt(_0x58262d(0x1cc))/0x3+-parseInt(_0x58262d(0x1cb))/0x4+-parseInt(_0x58262d(0x1c9))/0x5+parseInt(_0x58262d(0x1ca))/0x6+parseInt(_0x58262d(0x1cd))/0x7*(parseInt(_0x58262d(0x1c5))/0x8);if(_0x354393===_0x10165c)break;else _0x12e07d['push'](_0x12e07d['shift']());}catch(_0x298235){_0x12e07d['push'](_0x12e07d['shift']());}}}(a255_0x3960,0xa15c6));import{buildAppAddFlags,runAppAdd,validateAppName}from'../../commands/common/app-registry.js';export const workspaceAddDefinition={'service':a255_0x4eff02(0x1c6),'command':a255_0x4eff02(0x1c7),'description':a255_0x4eff02(0x1cf),'risk':a255_0x4eff02(0x1d0),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':a255_0x4eff02(0x1c3),'description':'App\x20profile\x20name','required':!![]}],'flags':buildAppAddFlags(),'validate':_0x34954d=>validateAppName(_0x34954d,'workspace\x20add'),'execute':_0x555d53=>runAppAdd(_0x555d53,a255_0x4eff02(0x1ce))};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a256_0x4fc1(){const _0x582c4e=['apiGroup','locale','app','1887805oMlJJL','1480537aTXCNn','string','init','format','Use\x20`','Pass\x20--appcode\x20<code>,\x20or\x20choose\x20one\x20of:\x20','4055214JimXkt','validation','use','8157387kEbvas','write','env','\x20(appcode:\x20','Default\x20page\x20size\x20for\x20this\x20workspace\x20app\x20profile','Workspace\x20','App\x20locale\x20for\x20this\x20workspace\x20app\x20profile\x20(not\x20CLI\x20language;\x20reserved\x20for\x20later\x20app\x20use)','\x20workspace\x20<init|use>\x20--app\x20<name>\x20[--appcode\x20<code>]','7640136yuWoVV','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20`','region','API\x20directory\x20path\x20for\x20this\x20workspace\x20app\x20profile','App\x20code\x20to\x20bind\x20to\x20this\x20workspace','\x20workspace\x20use\x20--app\x20<name>`.','12OiBPAD','3845916IGcCUQ','Default\x20output\x20format\x20for\x20this\x20workspace\x20app\x20profile','.\x20Credentials:\x20not\x20written.','join','apiDir','initialized','defaultFormat','project','str','\x22\x20not\x20found.','Initialize\x20the\x20current\x20workspace\x20app\x20binding','\x20--app\x20','length','Join\x20key\x20for\x20app\x20profiles\x20that\x20share\x20one\x20generated\x20API\x20model\x20registry','pageSize','trim','apps','Missing\x20workspace\x20app\x20selector.','App\x20\x22','134406uIyOgN','appcode','App\x20profile\x20name\x20to\x20use\x20in\x20this\x20workspace','riskLevel','\x20workspace\x20'];a256_0x4fc1=function(){return _0x582c4e;};return a256_0x4fc1();}const a256_0x3d8c5e=a256_0x5c77;(function(_0x452c7a,_0x193896){const _0xa1f85a=a256_0x5c77,_0x40d641=_0x452c7a();while(!![]){try{const _0x3c8cda=parseInt(_0xa1f85a(0x1f6))/0x1+parseInt(_0xa1f85a(0x221))/0x2+-parseInt(_0xa1f85a(0x1fc))/0x3+parseInt(_0xa1f85a(0x20d))/0x4*(parseInt(_0xa1f85a(0x1f5))/0x5)+-parseInt(_0xa1f85a(0x20e))/0x6+parseInt(_0xa1f85a(0x1ff))/0x7+-parseInt(_0xa1f85a(0x207))/0x8;if(_0x3c8cda===_0x193896)break;else _0x40d641['push'](_0x40d641['shift']());}catch(_0x15b202){_0x40d641['push'](_0x40d641['shift']());}}}(a256_0x4fc1,0xdb3e7));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{RABETBASE_ENV_VALUES}from'../../constant/env.js';import{RABETBASE_OUTPUT_FORMAT_VALUES}from'../../constant/output.js';import{RISK_LEVEL_VALUES}from'../../constant/risk.js';import{validateAppcode}from'../../commands/common/validate.js';import{readConfigFile,readRawConfigWithLayers,resolveWriteConfigPath,writeConfigFile}from'../../context.js';import{workspaceAddDefinition}from'../../commands/workspace/add.js';import{workspaceRemoveDefinition}from'../../commands/workspace/remove.js';import{normalizeStoredDefaultApp}from'../../config/schema.js';import{ENABLED_LOVRABET_REGION_VALUES}from'../../constant/region.js';const WORKSPACE_USAGE=CLI_BIN_NAME+a256_0x3d8c5e(0x206),SAFE_PROFILE_KEYS=[a256_0x3d8c5e(0x222),a256_0x3d8c5e(0x226),'region','env',a256_0x3d8c5e(0x212),a256_0x3d8c5e(0x1f9),a256_0x3d8c5e(0x21c),a256_0x3d8c5e(0x224),'locale'],workspaceFlags=[{'name':'app','type':a256_0x3d8c5e(0x1f7),'description':a256_0x3d8c5e(0x223)},{'name':a256_0x3d8c5e(0x222),'type':a256_0x3d8c5e(0x1f7),'description':a256_0x3d8c5e(0x20b)},{'name':a256_0x3d8c5e(0x226),'type':a256_0x3d8c5e(0x1f7),'description':a256_0x3d8c5e(0x21b)},{'name':a256_0x3d8c5e(0x209),'type':'string','description':'Country/region\x20for\x20this\x20workspace\x20app\x20profile','enum':[...ENABLED_LOVRABET_REGION_VALUES]},{'name':a256_0x3d8c5e(0x201),'type':a256_0x3d8c5e(0x1f7),'description':'Target\x20environment','enum':[...RABETBASE_ENV_VALUES]},{'name':'apiDir','type':a256_0x3d8c5e(0x1f7),'description':a256_0x3d8c5e(0x20a)},{'name':a256_0x3d8c5e(0x214),'type':'string','description':a256_0x3d8c5e(0x20f),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':a256_0x3d8c5e(0x21c),'type':'number','description':a256_0x3d8c5e(0x203)},{'name':'riskLevel','type':a256_0x3d8c5e(0x1f7),'description':'Risk\x20level\x20for\x20this\x20workspace\x20app\x20profile','enum':[...RISK_LEVEL_VALUES]},{'name':a256_0x3d8c5e(0x227),'type':a256_0x3d8c5e(0x1f7),'description':a256_0x3d8c5e(0x205)}];function isRecord(_0x12a5a0){return!!_0x12a5a0&&typeof _0x12a5a0==='object'&&!Array['isArray'](_0x12a5a0);}function assertValidAppcode(_0x4b3b30){const _0x26a89a=a256_0x3d8c5e,{valid:_0x10921e,message:_0x4f0f96}=validateAppcode(_0x4b3b30);if(!_0x10921e)throw CliErrors[_0x26a89a(0x1fd)]('Invalid\x20appcode:\x20'+_0x4b3b30,_0x4f0f96);}function sanitizeProfile(_0x191353){if(!isRecord(_0x191353))return{};const _0x34b09f={};for(const _0x5191d1 of SAFE_PROFILE_KEYS){if(_0x191353[_0x5191d1]!==undefined)_0x34b09f[_0x5191d1]=_0x191353[_0x5191d1];}return _0x34b09f;}function cloneProfile(_0x527cb7){return isRecord(_0x527cb7)?{..._0x527cb7}:{};}function collectWorkspaceProfileOverrides(_0x3ae622){const _0x113c3b=a256_0x3d8c5e,_0x337361={},_0xf62268=_0x3ae622[_0x113c3b(0x216)](_0x113c3b(0x226)),_0x3b02f2=_0x3ae622[_0x113c3b(0x216)](_0x113c3b(0x209)),_0x34b1e3=_0x3ae622['str'](_0x113c3b(0x201)),_0x6bbfbc=_0x3ae622[_0x113c3b(0x216)](_0x113c3b(0x212)),_0x47b469=_0x3ae622[_0x113c3b(0x216)](_0x113c3b(0x214)),_0x359e41=_0x3ae622['flag'](_0x113c3b(0x21c)),_0x1e5090=_0x3ae622[_0x113c3b(0x216)](_0x113c3b(0x224)),_0xff3b77=_0x3ae622[_0x113c3b(0x216)](_0x113c3b(0x227));if(_0xf62268)_0x337361['apiGroup']=_0xf62268;if(_0x3b02f2)_0x337361[_0x113c3b(0x209)]=_0x3b02f2;if(_0x34b1e3)_0x337361[_0x113c3b(0x201)]=_0x34b1e3;if(_0x6bbfbc)_0x337361[_0x113c3b(0x212)]=_0x6bbfbc;if(_0x47b469)_0x337361['format']=_0x47b469;if(_0x359e41!==undefined&&_0x359e41!=='')_0x337361[_0x113c3b(0x21c)]=Number(_0x359e41);if(_0x1e5090)_0x337361[_0x113c3b(0x224)]=_0x1e5090;if(_0xff3b77)_0x337361[_0x113c3b(0x227)]=_0xff3b77;return _0x337361;}async function validateWorkspaceArgs(_0x366a33){const _0x3ecd5c=a256_0x3d8c5e,_0x58d05c=_0x366a33[_0x3ecd5c(0x216)](_0x3ecd5c(0x1f4))[_0x3ecd5c(0x21d)](),_0x35bf47=_0x366a33['str'](_0x3ecd5c(0x222))['trim']();if(!_0x58d05c&&!_0x35bf47)throw CliErrors[_0x3ecd5c(0x1fd)](_0x3ecd5c(0x21f),'Use\x20`'+CLI_BIN_NAME+_0x3ecd5c(0x208)+CLI_BIN_NAME+_0x3ecd5c(0x20c));if(_0x35bf47)assertValidAppcode(_0x35bf47);}function resolveKnownApps(){const _0xeb1d9a=a256_0x3d8c5e,{config:_0x498e9e,layers:_0x50f039}=readRawConfigWithLayers(),_0x48afe3=isRecord(_0x498e9e[_0xeb1d9a(0x21e)])?_0x498e9e[_0xeb1d9a(0x21e)]:{},_0x4f7da3=isRecord(_0x50f039['globalConfig'][_0xeb1d9a(0x21e)])?_0x50f039['globalConfig'][_0xeb1d9a(0x21e)]:{};return{..._0x4f7da3,..._0x48afe3};}async function configureWorkspace(_0x377894,_0x4b89f2){const _0x29df8a=a256_0x3d8c5e,_0x892031=_0x377894['str'](_0x29df8a(0x1f4))[_0x29df8a(0x21d)](),_0xdd714a=_0x377894[_0x29df8a(0x216)]('appcode')[_0x29df8a(0x21d)](),_0x575ad6=_0x892031||_0xdd714a;if(!_0x575ad6)throw CliErrors['validation'](_0x29df8a(0x21f),_0x29df8a(0x1fa)+CLI_BIN_NAME+_0x29df8a(0x208)+CLI_BIN_NAME+_0x29df8a(0x20c));if(_0xdd714a)assertValidAppcode(_0xdd714a);const _0x12966c=resolveWriteConfigPath(_0x29df8a(0x215)),_0x18bd4f=readConfigFile(_0x12966c),_0x1a4013=resolveKnownApps(),_0x443e5f=isRecord(_0x18bd4f[_0x29df8a(0x21e)])?{..._0x18bd4f[_0x29df8a(0x21e)]}:{},_0x114f0d=cloneProfile(_0x443e5f[_0x575ad6]),_0x5a0094=sanitizeProfile(_0x1a4013[_0x575ad6]),_0x2d88ea=_0xdd714a?{}:_0x5a0094,_0x37b20c=_0xdd714a||_0x2d88ea[_0x29df8a(0x222)];if(!_0x37b20c){const _0x26375a=Object['keys'](_0x1a4013),_0x55e223=_0x26375a[_0x29df8a(0x21a)]===0x0?_0x29df8a(0x1fa)+CLI_BIN_NAME+_0x29df8a(0x225)+_0x4b89f2+_0x29df8a(0x219)+_0x575ad6+'\x20--appcode\x20<code>`.':_0x29df8a(0x1fb)+_0x26375a[_0x29df8a(0x211)](',\x20');throw CliErrors[_0x29df8a(0x1fd)](_0x29df8a(0x220)+_0x575ad6+_0x29df8a(0x217),_0x55e223);}assertValidAppcode(String(_0x37b20c));const _0xde6f1b={..._0x2d88ea,..._0x114f0d,'appcode':String(_0x37b20c),...collectWorkspaceProfileOverrides(_0x377894)};return _0x443e5f[_0x575ad6]=_0xde6f1b,_0x18bd4f['apps']=_0x443e5f,normalizeStoredDefaultApp(_0x18bd4f,_0x575ad6),delete _0x18bd4f[_0x29df8a(0x222)],delete _0x18bd4f['app'],_0xde6f1b[_0x29df8a(0x201)]&&(_0x18bd4f[_0x29df8a(0x201)]=_0xde6f1b[_0x29df8a(0x201)]),writeConfigFile(_0x12966c,_0x18bd4f),{'ok':!![],'message':_0x29df8a(0x204)+(_0x4b89f2===_0x29df8a(0x1f8)?_0x29df8a(0x213):'updated')+':\x20'+_0x575ad6+_0x29df8a(0x202)+_0xde6f1b['appcode']+').\x20Config:\x20'+_0x12966c+_0x29df8a(0x210),'data':{'operation':'workspace.'+_0x4b89f2,'configPath':_0x12966c,'app':_0x575ad6,'appcode':_0xde6f1b[_0x29df8a(0x222)],'apiGroup':_0xde6f1b[_0x29df8a(0x226)]??null,'region':_0xde6f1b[_0x29df8a(0x209)]??null,'env':_0xde6f1b[_0x29df8a(0x201)]??null,'credentialsWritten':![]}};}const workspaceInitDefinition={'service':'workspace','command':a256_0x3d8c5e(0x1f8),'description':a256_0x3d8c5e(0x218),'risk':a256_0x3d8c5e(0x200),'requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x296e02=>configureWorkspace(_0x296e02,'init')},workspaceUseDefinition={'service':'workspace','command':'use','description':'Switch\x20the\x20current\x20workspace\x20app\x20binding','risk':a256_0x3d8c5e(0x200),'requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x146863=>configureWorkspace(_0x146863,a256_0x3d8c5e(0x1fe))};function a256_0x5c77(_0xbc09d9,_0x5e3585){_0xbc09d9=_0xbc09d9-0x1f4;const _0x4fc1e9=a256_0x4fc1();let _0x5c770c=_0x4fc1e9[_0xbc09d9];return _0x5c770c;}export const workspaceDefinitions=[workspaceInitDefinition,workspaceUseDefinition,workspaceAddDefinition,workspaceRemoveDefinition];export{WORKSPACE_USAGE};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a257_0x42e5ac=a257_0x3672;(function(_0x406b47,_0x2c87e2){const _0xddfd50=a257_0x3672,_0x3bf56f=_0x406b47();while(!![]){try{const _0x2a8cfc=-parseInt(_0xddfd50(0x145))/0x1+parseInt(_0xddfd50(0x14f))/0x2*(-parseInt(_0xddfd50(0x151))/0x3)+-parseInt(_0xddfd50(0x150))/0x4+-parseInt(_0xddfd50(0x146))/0x5*(parseInt(_0xddfd50(0x152))/0x6)+-parseInt(_0xddfd50(0x148))/0x7+-parseInt(_0xddfd50(0x14b))/0x8*(parseInt(_0xddfd50(0x14c))/0x9)+-parseInt(_0xddfd50(0x147))/0xa*(-parseInt(_0xddfd50(0x143))/0xb);if(_0x2a8cfc===_0x2c87e2)break;else _0x3bf56f['push'](_0x3bf56f['shift']());}catch(_0x40fa04){_0x3bf56f['push'](_0x3bf56f['shift']());}}}(a257_0x3554,0x3ff28));import{buildAppRemoveFlags,runAppRemove,validateAppName}from'../../commands/common/app-registry.js';function a257_0x3554(){const _0x569104=['2471539DRNzcp','workspace','remove','401680TrxPdH','18xqyazc','name','write','756274OhIukS','929660BEgrio','3ocTCjg','102ZFXwAA','workspace\x20remove','App\x20profile\x20name\x20to\x20remove','10912CLLuap','Remove\x20an\x20app\x20profile\x20from\x20the\x20current\x20workspace\x20(or\x20--global)','23152rojHRh','47555vIguct','15230iPAkIj'];a257_0x3554=function(){return _0x569104;};return a257_0x3554();}function a257_0x3672(_0x5c17dc,_0xd0e91d){_0x5c17dc=_0x5c17dc-0x142;const _0x35547b=a257_0x3554();let _0x3672fe=_0x35547b[_0x5c17dc];return _0x3672fe;}export const workspaceRemoveDefinition={'service':a257_0x42e5ac(0x149),'command':a257_0x42e5ac(0x14a),'description':a257_0x42e5ac(0x144),'risk':a257_0x42e5ac(0x14e),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':a257_0x42e5ac(0x14d),'description':a257_0x42e5ac(0x142),'required':!![]}],'flags':buildAppRemoveFlags(),'validate':_0x13218d=>validateAppName(_0x13218d,a257_0x42e5ac(0x153)),'execute':_0x45ad8e=>runAppRemove(_0x45ad8e,a257_0x42e5ac(0x153))};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a258_0x1bf971=a258_0x1fcb;(function(_0x1dde91,_0x3874b3){const _0x5d5259=a258_0x1fcb,_0x196511=_0x1dde91();while(!![]){try{const _0x4c58a8=-parseInt(_0x5d5259(0x167))/0x1+-parseInt(_0x5d5259(0x13f))/0x2*(parseInt(_0x5d5259(0x11c))/0x3)+-parseInt(_0x5d5259(0x11b))/0x4+parseInt(_0x5d5259(0x149))/0x5+-parseInt(_0x5d5259(0x156))/0x6+parseInt(_0x5d5259(0x126))/0x7*(parseInt(_0x5d5259(0x12d))/0x8)+parseInt(_0x5d5259(0x138))/0x9*(parseInt(_0x5d5259(0x141))/0xa);if(_0x4c58a8===_0x3874b3)break;else _0x196511['push'](_0x196511['shift']());}catch(_0x585ee5){_0x196511['push'](_0x196511['shift']());}}}(a258_0x23fd,0x1f583));import{existsSync,readFileSync}from'node:fs';import{isAbsolute,resolve}from'node:path';function a258_0x23fd(){const _0x1622c9=['mode','local-domain',':\x20expected\x20a\x20non-empty\x20HTTPS\x20origin.','origin','\x20without\x20credentials,\x20query,\x20or\x20fragment.','utf8','skillDomain','Invalid\x20cdn.','\x20does\x20not\x20provide\x20a\x20Domain\x20for\x20','499848UyXKLo','711888ajszcr','Invalid\x20enterprise\x20routing\x20manifest:\x20cdn\x20must\x20be\x20an\x20object.','Invalid\x20enterprise\x20routing\x20config:\x20expected\x20an\x20object.','kb-domain','username','kind','kbServiceDomain','object','\x22\x20and\x20kind\x20\x22','skill-domain','14NvepHG','For\x20internal\x20deployments,\x20terminate\x20TLS\x20at\x20the\x20ingress,\x20reverse\x20proxy,\x20or\x20load\x20balancer;\x20an\x20internal\x20CA\x20is\x20supported.','pathname','kb-service-domain',':\x20expected\x20an\x20HTTPS\x20origin\x20or\x20consumer\x20Domain\x20object.','enterprise-v1','apiDomain','807016goyjSw','filter',':\x20expected\x20an\x20HTTPS\x20origin\x20without\x20credentials,\x20path,\x20query,\x20or\x20fragment.','domain-config','search','cdn','Enterprise\x20routing\x20manifest\x20is\x20missing\x20required\x20Domain(s):\x20','length','userDomain','hash','legacy','63ELbUhc','replace','Unsupported\x20enterprise\x20CDN\x20field(s):\x20','Unsupported\x20domain\x20config\x20field(s):\x20','Invalid\x20enterprise\x20routing\x20manifest:\x20domains\x20must\x20be\x20an\x20object.','certificateDomain','domains','2phlCwN','appDomain','708010qnPOUr','isArray','password','Invalid\x20','Invalid\x20domain\x20config\x20JSON:\x20','href','validation','rabetbase-cli','291760drOyxW','Invalid\x20domain\x20config:\x20provide\x20at\x20least\x20one\x20supported\x20Domain.','keys','Enterprise\x20routing\x20manifest\x20is\x20missing\x20required\x20CDN\x20field(s):\x20','certificate-domain','\x22\x20is\x20not\x20a\x20valid\x20URL.','kbDomain','Update\x20the\x20manifest\x20so\x20both\x20CLIs\x20consume\x20the\x20same\x20routing\x20data.','string','app-domain','lovrabet',':\x20expected\x20a\x20non-empty\x20HTTPS\x20URL.','https:','1215912JxdpEu','Enterprise\x20routing\x20manifest\x20requires\x20localDomain\x20and\x20certificateDomain\x20together.','join','cwd','Enterprise\x20routing\x20manifests\x20cannot\x20be\x20combined\x20with\x20individual\x20Domain\x20flags.','base\x20URL','Allowed\x20fields:\x20','user-domain',':\x20expected\x20an\x20HTTPS\x20','str','protocol','includes','Invalid\x20domain\x20config:\x20expected\x20a\x20JSON\x20object.','trim','runtimeDomain','parse','localDomain','62416FKLYXe'];a258_0x23fd=function(){return _0x1622c9;};return a258_0x23fd();}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=[a258_0x1bf971(0x135),'apiDomain','runtimeDomain',a258_0x1bf971(0x118),a258_0x1bf971(0x14f),a258_0x1bf971(0x122),a258_0x1bf971(0x140),a258_0x1bf971(0x166),a258_0x1bf971(0x13d)];function a258_0x1fcb(_0xc36572,_0x5d4d0b){_0xc36572=_0xc36572-0x116;const _0x23fdfd=a258_0x23fd();let _0x1fcb97=_0x23fdfd[_0xc36572];return _0x1fcb97;}const DOMAIN_FLAGS={'userDomain':a258_0x1bf971(0x15d),'apiDomain':'api-domain','runtimeDomain':'runtime-domain','skillDomain':a258_0x1bf971(0x125),'kbDomain':a258_0x1bf971(0x11f),'kbServiceDomain':a258_0x1bf971(0x129),'appDomain':a258_0x1bf971(0x152),'localDomain':a258_0x1bf971(0x169),'certificateDomain':a258_0x1bf971(0x14d)};export const LEGACY_DOMAIN_CONFIG_FIELDS=['agentDomain','platformDomain','skillHubDomain'];const ENTERPRISE_TO_LOCAL_FIELD={'userDomain':a258_0x1bf971(0x135),'apiDomain':a258_0x1bf971(0x12c),'runtimeDomain':a258_0x1bf971(0x164),'skillDomain':a258_0x1bf971(0x118),'kbDomain':a258_0x1bf971(0x14f),'kbServiceDomain':'kbServiceDomain','appDomain':'appDomain','localDomain':a258_0x1bf971(0x166),'certificateDomain':a258_0x1bf971(0x13d)},ROUTING_CONSUMER=a258_0x1bf971(0x148);export function normalizeDomainOrigin(_0x5ada98,_0x32acb4){const _0x31a4f3=a258_0x1bf971;if(typeof _0x32acb4!==_0x31a4f3(0x151)||!_0x32acb4[_0x31a4f3(0x163)]())throw CliErrors[_0x31a4f3(0x147)](_0x31a4f3(0x144)+_0x5ada98+_0x31a4f3(0x16a));let _0x1fa9d6;try{_0x1fa9d6=new URL(_0x32acb4[_0x31a4f3(0x163)]());}catch{throw CliErrors['validation']('Invalid\x20'+_0x5ada98+':\x20\x22'+_0x32acb4+'\x22\x20is\x20not\x20a\x20valid\x20URL.');}if(_0x1fa9d6[_0x31a4f3(0x160)]!==_0x31a4f3(0x155)||_0x1fa9d6[_0x31a4f3(0x120)]||_0x1fa9d6[_0x31a4f3(0x143)]||_0x1fa9d6[_0x31a4f3(0x128)]!=='/'&&_0x1fa9d6[_0x31a4f3(0x128)]!==''||_0x1fa9d6[_0x31a4f3(0x131)]||_0x1fa9d6['hash'])throw CliErrors[_0x31a4f3(0x147)]('Invalid\x20'+_0x5ada98+_0x31a4f3(0x12f),_0x31a4f3(0x127));return _0x1fa9d6['origin'];}export function normalizeRoutingDomainValue(_0x4b1bd2,_0x46bfe6){const _0x14d79a=a258_0x1bf971;if(typeof _0x46bfe6===_0x14d79a(0x151))return normalizeDomainOrigin(_0x4b1bd2,_0x46bfe6);if(!_0x46bfe6||typeof _0x46bfe6!=='object'||Array['isArray'](_0x46bfe6))throw CliErrors[_0x14d79a(0x147)](_0x14d79a(0x144)+_0x4b1bd2+_0x14d79a(0x12a));const _0x5d8507=_0x46bfe6,_0x38122d=_0x5d8507[ROUTING_CONSUMER]??_0x5d8507['default'];if(_0x38122d===undefined)throw CliErrors[_0x14d79a(0x147)]('Enterprise\x20'+_0x4b1bd2+_0x14d79a(0x11a)+ROUTING_CONSUMER+'\x20and\x20has\x20no\x20default.');return normalizeDomainOrigin(_0x4b1bd2,_0x38122d);}export function normalizeCdnBaseUrl(_0x5d24fd,_0x2676a2){const _0x3d5bdd=a258_0x1bf971;if(typeof _0x2676a2!=='string'||!_0x2676a2[_0x3d5bdd(0x163)]())throw CliErrors[_0x3d5bdd(0x147)](_0x3d5bdd(0x119)+_0x5d24fd+_0x3d5bdd(0x154));const _0x20c854=_0x2676a2[_0x3d5bdd(0x163)]()[_0x3d5bdd(0x139)](/\/$/,'');let _0x95c2ca;try{_0x95c2ca=new URL(_0x20c854);}catch{throw CliErrors[_0x3d5bdd(0x147)](_0x3d5bdd(0x119)+_0x5d24fd+':\x20\x22'+_0x2676a2+_0x3d5bdd(0x14e));}if(_0x95c2ca['protocol']!==_0x3d5bdd(0x155)||_0x95c2ca[_0x3d5bdd(0x120)]||_0x95c2ca['password']||_0x95c2ca['search']||_0x95c2ca[_0x3d5bdd(0x136)]||_0x95c2ca[_0x3d5bdd(0x146)][_0x3d5bdd(0x139)](/\/$/,'')!==_0x20c854||_0x5d24fd==='lovrabet'&&_0x95c2ca['origin']!==_0x20c854)throw CliErrors[_0x3d5bdd(0x147)](_0x3d5bdd(0x119)+_0x5d24fd+_0x3d5bdd(0x15e)+(_0x5d24fd===_0x3d5bdd(0x153)?_0x3d5bdd(0x16b):_0x3d5bdd(0x15b))+_0x3d5bdd(0x116));return _0x20c854;}export function resolveEnterpriseRoutingConfig(_0x301ee8){const _0x151b24=a258_0x1bf971;return resolveEnterpriseRoutingManifest(_0x301ee8)?.[_0x151b24(0x13e)];}export function resolveEnterpriseRoutingManifest(_0x59193b){const _0x1da2e3=a258_0x1bf971;if(_0x59193b===undefined)return undefined;if(!_0x59193b||typeof _0x59193b!==_0x1da2e3(0x123)||Array['isArray'](_0x59193b))throw CliErrors['validation'](_0x1da2e3(0x11e));return parseEnterpriseRoutingManifest(_0x59193b);}export function readDomainConfigInput(_0x3c2e10){const _0x273123=a258_0x1bf971,_0x22ed01=isAbsolute(_0x3c2e10)?_0x3c2e10:resolve(process[_0x273123(0x159)](),_0x3c2e10);if(!existsSync(_0x22ed01))throw CliErrors['validation']('Domain\x20config\x20file\x20not\x20found:\x20'+_0x22ed01);let _0xac3b53;try{_0xac3b53=JSON[_0x273123(0x165)](readFileSync(_0x22ed01,_0x273123(0x117)));}catch{throw CliErrors['validation'](_0x273123(0x145)+_0x22ed01);}if(!_0xac3b53||typeof _0xac3b53!==_0x273123(0x123)||Array[_0x273123(0x142)](_0xac3b53))throw CliErrors[_0x273123(0x147)](_0x273123(0x162));const _0x45fbb8=_0xac3b53;if(_0x273123(0x160)in _0x45fbb8)return parseEnterpriseRoutingManifest(_0x45fbb8);const _0x168e12=Object['keys'](_0x45fbb8)['filter'](_0x3971d6=>!DOMAIN_CONFIG_FIELDS[_0x273123(0x161)](_0x3971d6));if(_0x168e12[_0x273123(0x134)]>0x0)throw CliErrors['validation'](_0x273123(0x13b)+_0x168e12['join'](',\x20'),'Allowed\x20fields:\x20'+DOMAIN_CONFIG_FIELDS[_0x273123(0x158)](',\x20'));const _0x2d8d84={};for(const _0xfcda28 of DOMAIN_CONFIG_FIELDS){_0x45fbb8[_0xfcda28]!==undefined&&(_0x2d8d84[_0xfcda28]=normalizeDomainOrigin(_0xfcda28,_0x45fbb8[_0xfcda28]));}if(Object['keys'](_0x2d8d84)[_0x273123(0x134)]===0x0)throw CliErrors[_0x273123(0x147)](_0x273123(0x14a));return{'mode':'legacy','domains':_0x2d8d84};}export function readDomainConfig(_0x352a27){const _0xd015ec=a258_0x1bf971;return readDomainConfigInput(_0x352a27)[_0xd015ec(0x13e)];}export function resolveDomainConfigInput(_0x5ebd75){const _0x4ee05f=a258_0x1bf971,_0x2ad92f=(_0x5ebd75['str'](_0x4ee05f(0x130))||'')[_0x4ee05f(0x163)](),_0x2312be=_0x2ad92f?readDomainConfigInput(_0x2ad92f):{'mode':_0x4ee05f(0x137),'domains':{}},_0x54a8e9=DOMAIN_CONFIG_FIELDS[_0x4ee05f(0x12e)](_0x4b45e8=>Boolean((_0x5ebd75[_0x4ee05f(0x15f)](DOMAIN_FLAGS[_0x4b45e8])||'')['trim']()));if(_0x2312be[_0x4ee05f(0x168)]==='enterprise-v1'&&_0x54a8e9['length']>0x0)throw CliErrors[_0x4ee05f(0x147)](_0x4ee05f(0x15a),_0x4ee05f(0x150));for(const _0x5b7a5f of DOMAIN_CONFIG_FIELDS){const _0x4e8b10=(_0x5ebd75[_0x4ee05f(0x15f)](DOMAIN_FLAGS[_0x5b7a5f])||'')['trim']();if(_0x4e8b10)_0x2312be[_0x4ee05f(0x13e)][_0x5b7a5f]=normalizeDomainOrigin(_0x5b7a5f,_0x4e8b10);}return _0x2312be;}export function resolveDomainFlags(_0x2f8a12){const _0x133411=a258_0x1bf971;return resolveDomainConfigInput(_0x2f8a12)[_0x133411(0x13e)];}export function parseEnterpriseRoutingManifest(_0x589cd0){const _0x2f5dcc=a258_0x1bf971;if(_0x589cd0[_0x2f5dcc(0x160)]!==ENTERPRISE_ROUTING_PROTOCOL||_0x589cd0[_0x2f5dcc(0x121)]!==ENTERPRISE_ROUTING_KIND)throw CliErrors[_0x2f5dcc(0x147)]('Unsupported\x20routing\x20manifest:\x20expected\x20protocol\x20\x22'+ENTERPRISE_ROUTING_PROTOCOL+_0x2f5dcc(0x124)+ENTERPRISE_ROUTING_KIND+'\x22.');if(!_0x589cd0[_0x2f5dcc(0x13e)]||typeof _0x589cd0[_0x2f5dcc(0x13e)]!=='object'||Array[_0x2f5dcc(0x142)](_0x589cd0[_0x2f5dcc(0x13e)]))throw CliErrors[_0x2f5dcc(0x147)](_0x2f5dcc(0x13c));if(!_0x589cd0[_0x2f5dcc(0x132)]||typeof _0x589cd0[_0x2f5dcc(0x132)]!==_0x2f5dcc(0x123)||Array[_0x2f5dcc(0x142)](_0x589cd0['cdn']))throw CliErrors[_0x2f5dcc(0x147)](_0x2f5dcc(0x11d));const _0x2d414f=_0x589cd0[_0x2f5dcc(0x13e)],_0x5333c0=REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS[_0x2f5dcc(0x12e)](_0x4e6810=>_0x2d414f[_0x4e6810]===undefined);if(_0x5333c0[_0x2f5dcc(0x134)]>0x0)throw CliErrors['validation'](_0x2f5dcc(0x133)+_0x5333c0[_0x2f5dcc(0x158)](',\x20'));if(_0x2d414f['localDomain']===undefined!==(_0x2d414f['certificateDomain']===undefined))throw CliErrors[_0x2f5dcc(0x147)](_0x2f5dcc(0x157));const _0xafc6fa=_0x589cd0[_0x2f5dcc(0x132)],_0x3d3150=Object[_0x2f5dcc(0x14b)](_0xafc6fa)[_0x2f5dcc(0x12e)](_0x5c58af=>!ENTERPRISE_ROUTING_CDN_FIELDS[_0x2f5dcc(0x161)](_0x5c58af));if(_0x3d3150[_0x2f5dcc(0x134)]>0x0)throw CliErrors[_0x2f5dcc(0x147)](_0x2f5dcc(0x13a)+_0x3d3150[_0x2f5dcc(0x158)](',\x20'),_0x2f5dcc(0x15c)+ENTERPRISE_ROUTING_CDN_FIELDS['join'](',\x20'));const _0x47e114=REQUIRED_ENTERPRISE_ROUTING_CDN_FIELDS['filter'](_0x6f0268=>_0xafc6fa[_0x6f0268]===undefined);if(_0x47e114[_0x2f5dcc(0x134)]>0x0)throw CliErrors[_0x2f5dcc(0x147)](_0x2f5dcc(0x14c)+_0x47e114[_0x2f5dcc(0x158)](',\x20'));const _0x3f0e0d={};for(const _0x19e552 of ENTERPRISE_ROUTING_CDN_FIELDS){_0x3f0e0d[_0x19e552]=normalizeCdnBaseUrl(_0x19e552,_0xafc6fa[_0x19e552]);}const _0x18c7a1={},_0x754f4c={};for(const _0x434084 of ENTERPRISE_ROUTING_DOMAIN_FIELDS){const _0x303bd2=_0x2d414f[_0x434084];if(_0x303bd2===undefined)continue;const _0x4a5a95=normalizeRoutingDomainValue(_0x434084,_0x303bd2);_0x18c7a1[_0x434084]=_0x4a5a95;const _0x28ee02=ENTERPRISE_TO_LOCAL_FIELD[_0x434084];_0x28ee02&&(_0x754f4c[_0x28ee02]=_0x4a5a95);}return{'mode':_0x2f5dcc(0x12b),'domains':_0x754f4c,'manifestDomains':_0x18c7a1,'cdn':_0x3f0e0d};}
|
|
1
|
+
const a258_0x1edab9=a258_0x1cce;(function(_0x17dd4e,_0x50d478){const _0x50d62f=a258_0x1cce,_0x10cb15=_0x17dd4e();while(!![]){try{const _0x455dd0=parseInt(_0x50d62f(0x1c6))/0x1*(-parseInt(_0x50d62f(0x1b7))/0x2)+-parseInt(_0x50d62f(0x1e2))/0x3*(-parseInt(_0x50d62f(0x1c8))/0x4)+-parseInt(_0x50d62f(0x1a8))/0x5*(-parseInt(_0x50d62f(0x1cf))/0x6)+-parseInt(_0x50d62f(0x1c3))/0x7+-parseInt(_0x50d62f(0x1e5))/0x8+parseInt(_0x50d62f(0x1b8))/0x9+-parseInt(_0x50d62f(0x1b4))/0xa*(parseInt(_0x50d62f(0x1ea))/0xb);if(_0x455dd0===_0x50d478)break;else _0x10cb15['push'](_0x10cb15['shift']());}catch(_0x2cb0e1){_0x10cb15['push'](_0x10cb15['shift']());}}}(a258_0x3d15,0xe263d));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=[a258_0x1edab9(0x1c5),'apiDomain',a258_0x1edab9(0x1b0),a258_0x1edab9(0x1e0),a258_0x1edab9(0x1cb),a258_0x1edab9(0x1ed),'appDomain','localDomain',a258_0x1edab9(0x1aa)];const DOMAIN_FLAGS={'userDomain':a258_0x1edab9(0x1c7),'apiDomain':a258_0x1edab9(0x1a9),'runtimeDomain':a258_0x1edab9(0x1d0),'skillDomain':'skill-domain','kbDomain':a258_0x1edab9(0x1ca),'kbServiceDomain':'kb-service-domain','appDomain':a258_0x1edab9(0x1eb),'localDomain':a258_0x1edab9(0x1fa),'certificateDomain':a258_0x1edab9(0x1a5)};export const LEGACY_DOMAIN_CONFIG_FIELDS=[a258_0x1edab9(0x1a6),a258_0x1edab9(0x1b9),a258_0x1edab9(0x1f2)];function a258_0x1cce(_0x19e30a,_0x1182ea){_0x19e30a=_0x19e30a-0x1a4;const _0x3d15d1=a258_0x3d15();let _0x1cce7e=_0x3d15d1[_0x19e30a];return _0x1cce7e;}const ENTERPRISE_TO_LOCAL_FIELD={'userDomain':'userDomain','apiDomain':'apiDomain','runtimeDomain':a258_0x1edab9(0x1b0),'skillDomain':a258_0x1edab9(0x1e0),'kbDomain':a258_0x1edab9(0x1cb),'kbServiceDomain':a258_0x1edab9(0x1ed),'appDomain':a258_0x1edab9(0x1d6),'localDomain':a258_0x1edab9(0x1ce),'certificateDomain':a258_0x1edab9(0x1aa)},ROUTING_CONSUMER='rabetbase-cli';export function normalizeDomainOrigin(_0xdb367b,_0x55a012){const _0x4e7833=a258_0x1edab9;if(typeof _0x55a012!=='string'||!_0x55a012[_0x4e7833(0x1c9)]())throw CliErrors[_0x4e7833(0x1e3)](_0x4e7833(0x1f7)+_0xdb367b+_0x4e7833(0x1d7));let _0x5db965;try{_0x5db965=new URL(_0x55a012[_0x4e7833(0x1c9)]());}catch{throw CliErrors[_0x4e7833(0x1e3)](_0x4e7833(0x1f7)+_0xdb367b+_0x4e7833(0x1e8)+_0x55a012+_0x4e7833(0x1dd));}if(_0x5db965[_0x4e7833(0x1bb)]!==_0x4e7833(0x1f6)||_0x5db965[_0x4e7833(0x1bc)]||_0x5db965[_0x4e7833(0x1dc)]||_0x5db965[_0x4e7833(0x1ba)]!=='/'&&_0x5db965['pathname']!==''||_0x5db965[_0x4e7833(0x1b2)]||_0x5db965['hash'])throw CliErrors['validation']('Invalid\x20'+_0xdb367b+_0x4e7833(0x1f9),_0x4e7833(0x1f8));return _0x5db965[_0x4e7833(0x1cd)];}export function normalizeRoutingDomainValue(_0xfbc8a,_0xdc58cb){const _0x496105=a258_0x1edab9;if(typeof _0xdc58cb==='string')return normalizeDomainOrigin(_0xfbc8a,_0xdc58cb);if(!_0xdc58cb||typeof _0xdc58cb!=='object'||Array[_0x496105(0x1c1)](_0xdc58cb))throw CliErrors[_0x496105(0x1e3)](_0x496105(0x1f7)+_0xfbc8a+_0x496105(0x1e6));const _0x47c4c6=_0xdc58cb,_0x1257dc=_0x47c4c6[ROUTING_CONSUMER]??_0x47c4c6['default'];if(_0x1257dc===undefined)throw CliErrors[_0x496105(0x1e3)](_0x496105(0x1bd)+_0xfbc8a+_0x496105(0x1d2)+ROUTING_CONSUMER+_0x496105(0x1e7));return normalizeDomainOrigin(_0xfbc8a,_0x1257dc);}export function normalizeCdnBaseUrl(_0x10e471,_0x3f253c){const _0x4ad317=a258_0x1edab9;if(typeof _0x3f253c!==_0x4ad317(0x1e4)||!_0x3f253c[_0x4ad317(0x1c9)]())throw CliErrors[_0x4ad317(0x1e3)](_0x4ad317(0x1ae)+_0x10e471+_0x4ad317(0x1f4));const _0x2ec712=_0x3f253c['trim']()[_0x4ad317(0x1f1)](/\/$/,'');let _0x1c3033;try{_0x1c3033=new URL(_0x2ec712);}catch{throw CliErrors[_0x4ad317(0x1e3)]('Invalid\x20cdn.'+_0x10e471+_0x4ad317(0x1e8)+_0x3f253c+_0x4ad317(0x1dd));}if(_0x1c3033[_0x4ad317(0x1bb)]!==_0x4ad317(0x1f6)||_0x1c3033[_0x4ad317(0x1bc)]||_0x1c3033[_0x4ad317(0x1dc)]||_0x1c3033[_0x4ad317(0x1b2)]||_0x1c3033[_0x4ad317(0x1d5)]||_0x1c3033[_0x4ad317(0x1ac)]['replace'](/\/$/,'')!==_0x2ec712||_0x10e471===_0x4ad317(0x1ee)&&_0x1c3033['origin']!==_0x2ec712)throw CliErrors[_0x4ad317(0x1e3)](_0x4ad317(0x1ae)+_0x10e471+_0x4ad317(0x1be)+(_0x10e471===_0x4ad317(0x1ee)?_0x4ad317(0x1cd):_0x4ad317(0x1d3))+'\x20without\x20credentials,\x20query,\x20or\x20fragment.');return _0x2ec712;}function a258_0x3d15(){const _0x1622db=['Domain\x20config\x20file\x20not\x20found:\x20','search','Invalid\x20enterprise\x20routing\x20manifest:\x20cdn\x20must\x20be\x20an\x20object.','113260DfxKab','enterprise-v1','legacy','2yHzuBA','2726226jVmeZI','platformDomain','pathname','protocol','username','Enterprise\x20',':\x20expected\x20an\x20HTTPS\x20','parse','domain-config','isArray','length','459634tTOWhm','domains','userDomain','73465YMCyQo','user-domain','17764OrAxlp','trim','kb-domain','kbDomain','kind','origin','localDomain','13338oMiSPU','runtime-domain','object','\x20does\x20not\x20provide\x20a\x20Domain\x20for\x20','base\x20URL','keys','hash','appDomain',':\x20expected\x20a\x20non-empty\x20HTTPS\x20origin.','Invalid\x20domain\x20config\x20JSON:\x20','includes','filter','utf8','password','\x22\x20is\x20not\x20a\x20valid\x20URL.','Allowed\x20fields:\x20','join','skillDomain','Enterprise\x20routing\x20manifest\x20is\x20missing\x20required\x20Domain(s):\x20','927kGJiGM','validation','string','6940160PCuALn',':\x20expected\x20an\x20HTTPS\x20origin\x20or\x20consumer\x20Domain\x20object.','\x20and\x20has\x20no\x20default.',':\x20\x22','cdn','649reOlve','app-domain','mode','kbServiceDomain','lovrabet','Invalid\x20enterprise\x20routing\x20manifest:\x20domains\x20must\x20be\x20an\x20object.','Invalid\x20domain\x20config:\x20provide\x20at\x20least\x20one\x20supported\x20Domain.','replace','skillHubDomain','str',':\x20expected\x20a\x20non-empty\x20HTTPS\x20URL.','cwd','https:','Invalid\x20','For\x20internal\x20deployments,\x20terminate\x20TLS\x20at\x20the\x20ingress,\x20reverse\x20proxy,\x20or\x20load\x20balancer;\x20an\x20internal\x20CA\x20is\x20supported.',':\x20expected\x20an\x20HTTPS\x20origin\x20without\x20credentials,\x20path,\x20query,\x20or\x20fragment.','local-domain','Update\x20the\x20manifest\x20so\x20both\x20CLIs\x20consume\x20the\x20same\x20routing\x20data.','certificate-domain','agentDomain','Unsupported\x20domain\x20config\x20field(s):\x20','2085wjyqnH','api-domain','certificateDomain','Enterprise\x20routing\x20manifest\x20requires\x20localDomain\x20and\x20certificateDomain\x20together.','href','Enterprise\x20routing\x20manifests\x20cannot\x20be\x20combined\x20with\x20individual\x20Domain\x20flags.','Invalid\x20cdn.','Invalid\x20domain\x20config:\x20expected\x20a\x20JSON\x20object.','runtimeDomain'];a258_0x3d15=function(){return _0x1622db;};return a258_0x3d15();}export function resolveEnterpriseRoutingConfig(_0x50e08b){return resolveEnterpriseRoutingManifest(_0x50e08b)?.['domains'];}export function resolveEnterpriseRoutingManifest(_0x3af512){if(_0x3af512===undefined)return undefined;if(!_0x3af512||typeof _0x3af512!=='object'||Array['isArray'](_0x3af512))throw CliErrors['validation']('Invalid\x20enterprise\x20routing\x20config:\x20expected\x20an\x20object.');return parseEnterpriseRoutingManifest(_0x3af512);}export function readDomainConfigInput(_0x1ea3b4){const _0x57559f=a258_0x1edab9,_0x59da8b=isAbsolute(_0x1ea3b4)?_0x1ea3b4:resolve(process[_0x57559f(0x1f5)](),_0x1ea3b4);if(!existsSync(_0x59da8b))throw CliErrors['validation'](_0x57559f(0x1b1)+_0x59da8b);let _0x2a3563;try{_0x2a3563=JSON[_0x57559f(0x1bf)](readFileSync(_0x59da8b,_0x57559f(0x1db)));}catch{throw CliErrors[_0x57559f(0x1e3)](_0x57559f(0x1d8)+_0x59da8b);}if(!_0x2a3563||typeof _0x2a3563!==_0x57559f(0x1d1)||Array[_0x57559f(0x1c1)](_0x2a3563))throw CliErrors['validation'](_0x57559f(0x1af));const _0x2e2df8=_0x2a3563;if(_0x57559f(0x1bb)in _0x2e2df8)return parseEnterpriseRoutingManifest(_0x2e2df8);const _0x362a59=Object[_0x57559f(0x1d4)](_0x2e2df8)['filter'](_0x2c1daa=>!DOMAIN_CONFIG_FIELDS['includes'](_0x2c1daa));if(_0x362a59[_0x57559f(0x1c2)]>0x0)throw CliErrors['validation'](_0x57559f(0x1a7)+_0x362a59[_0x57559f(0x1df)](',\x20'),_0x57559f(0x1de)+DOMAIN_CONFIG_FIELDS[_0x57559f(0x1df)](',\x20'));const _0x194d3d={};for(const _0xc14f06 of DOMAIN_CONFIG_FIELDS){_0x2e2df8[_0xc14f06]!==undefined&&(_0x194d3d[_0xc14f06]=normalizeDomainOrigin(_0xc14f06,_0x2e2df8[_0xc14f06]));}if(Object['keys'](_0x194d3d)[_0x57559f(0x1c2)]===0x0)throw CliErrors[_0x57559f(0x1e3)](_0x57559f(0x1f0));return{'mode':_0x57559f(0x1b6),'domains':_0x194d3d};}export function readDomainConfig(_0x14ad7a){return readDomainConfigInput(_0x14ad7a)['domains'];}export function resolveDomainConfigInput(_0xac3fa9){const _0x377a8c=a258_0x1edab9,_0x589fd4=(_0xac3fa9[_0x377a8c(0x1f3)](_0x377a8c(0x1c0))||'')[_0x377a8c(0x1c9)](),_0x5c1925=_0x589fd4?readDomainConfigInput(_0x589fd4):{'mode':_0x377a8c(0x1b6),'domains':{}},_0x4e5429=DOMAIN_CONFIG_FIELDS[_0x377a8c(0x1da)](_0x2c84b5=>Boolean((_0xac3fa9['str'](DOMAIN_FLAGS[_0x2c84b5])||'')[_0x377a8c(0x1c9)]()));if(_0x5c1925[_0x377a8c(0x1ec)]===_0x377a8c(0x1b5)&&_0x4e5429[_0x377a8c(0x1c2)]>0x0)throw CliErrors['validation'](_0x377a8c(0x1ad),_0x377a8c(0x1a4));for(const _0x236aa2 of DOMAIN_CONFIG_FIELDS){const _0x53dde8=(_0xac3fa9[_0x377a8c(0x1f3)](DOMAIN_FLAGS[_0x236aa2])||'')[_0x377a8c(0x1c9)]();if(_0x53dde8)_0x5c1925[_0x377a8c(0x1c4)][_0x236aa2]=normalizeDomainOrigin(_0x236aa2,_0x53dde8);}return _0x5c1925;}export function resolveDomainFlags(_0x865b45){const _0x4a676e=a258_0x1edab9;return resolveDomainConfigInput(_0x865b45)[_0x4a676e(0x1c4)];}export function parseEnterpriseRoutingManifest(_0x57f2ac){const _0x4aa58e=a258_0x1edab9;if(_0x57f2ac[_0x4aa58e(0x1bb)]!==ENTERPRISE_ROUTING_PROTOCOL||_0x57f2ac[_0x4aa58e(0x1cc)]!==ENTERPRISE_ROUTING_KIND)throw CliErrors[_0x4aa58e(0x1e3)]('Unsupported\x20routing\x20manifest:\x20expected\x20protocol\x20\x22'+ENTERPRISE_ROUTING_PROTOCOL+'\x22\x20and\x20kind\x20\x22'+ENTERPRISE_ROUTING_KIND+'\x22.');if(!_0x57f2ac['domains']||typeof _0x57f2ac[_0x4aa58e(0x1c4)]!==_0x4aa58e(0x1d1)||Array[_0x4aa58e(0x1c1)](_0x57f2ac[_0x4aa58e(0x1c4)]))throw CliErrors[_0x4aa58e(0x1e3)](_0x4aa58e(0x1ef));if(!_0x57f2ac[_0x4aa58e(0x1e9)]||typeof _0x57f2ac[_0x4aa58e(0x1e9)]!==_0x4aa58e(0x1d1)||Array[_0x4aa58e(0x1c1)](_0x57f2ac[_0x4aa58e(0x1e9)]))throw CliErrors[_0x4aa58e(0x1e3)](_0x4aa58e(0x1b3));const _0x13ed8b=_0x57f2ac[_0x4aa58e(0x1c4)],_0x5a6025=REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS['filter'](_0x477d7d=>_0x13ed8b[_0x477d7d]===undefined);if(_0x5a6025[_0x4aa58e(0x1c2)]>0x0)throw CliErrors[_0x4aa58e(0x1e3)](_0x4aa58e(0x1e1)+_0x5a6025[_0x4aa58e(0x1df)](',\x20'));if(_0x13ed8b['localDomain']===undefined!==(_0x13ed8b[_0x4aa58e(0x1aa)]===undefined))throw CliErrors['validation'](_0x4aa58e(0x1ab));const _0x3bb396=_0x57f2ac[_0x4aa58e(0x1e9)],_0xf34cdd=Object[_0x4aa58e(0x1d4)](_0x3bb396)[_0x4aa58e(0x1da)](_0x1228a5=>!ENTERPRISE_ROUTING_CDN_FIELDS[_0x4aa58e(0x1d9)](_0x1228a5));if(_0xf34cdd[_0x4aa58e(0x1c2)]>0x0)throw CliErrors[_0x4aa58e(0x1e3)]('Unsupported\x20enterprise\x20CDN\x20field(s):\x20'+_0xf34cdd[_0x4aa58e(0x1df)](',\x20'),_0x4aa58e(0x1de)+ENTERPRISE_ROUTING_CDN_FIELDS[_0x4aa58e(0x1df)](',\x20'));const _0x5b7195=REQUIRED_ENTERPRISE_ROUTING_CDN_FIELDS[_0x4aa58e(0x1da)](_0x4ee372=>_0x3bb396[_0x4ee372]===undefined);if(_0x5b7195[_0x4aa58e(0x1c2)]>0x0)throw CliErrors[_0x4aa58e(0x1e3)]('Enterprise\x20routing\x20manifest\x20is\x20missing\x20required\x20CDN\x20field(s):\x20'+_0x5b7195['join'](',\x20'));const _0x4c59e5={};for(const _0x2acee3 of ENTERPRISE_ROUTING_CDN_FIELDS){_0x4c59e5[_0x2acee3]=normalizeCdnBaseUrl(_0x2acee3,_0x3bb396[_0x2acee3]);}const _0x525ad1={},_0x9d2643={};for(const _0x4cdf28 of ENTERPRISE_ROUTING_DOMAIN_FIELDS){const _0x58ed03=_0x13ed8b[_0x4cdf28];if(_0x58ed03===undefined)continue;const _0x720468=normalizeRoutingDomainValue(_0x4cdf28,_0x58ed03);_0x525ad1[_0x4cdf28]=_0x720468;const _0x172668=ENTERPRISE_TO_LOCAL_FIELD[_0x4cdf28];_0x172668&&(_0x9d2643[_0x172668]=_0x720468);}return{'mode':_0x4aa58e(0x1b5),'domains':_0x9d2643,'manifestDomains':_0x525ad1,'cdn':_0x4c59e5};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a259_0x2d86d8=a259_0x5037;function a259_0x3cbf(){const _0x4df5ca=['http://localhost','527439CfSRzZ','80rkWBBI','2010522Sxucjg','98937anzHbb','/cert/lovrabet-dev.json','1969877secLbC','3166400rRmSvf','lovrabet','50CvheaS','151052KTraOB','184dYXkqN','6OlfNFr','stringify','now','.tmp','Independent\x20deployment\x20routing\x20requires\x20localDomain\x20and\x20certificateDomain\x20together.','rabetbase.domain-routing.json','lovrabet-project-domain-routing/v1','utf8','8258RWKBOq','origin'];a259_0x3cbf=function(){return _0x4df5ca;};return a259_0x3cbf();}(function(_0x89038a,_0x5231cb){const _0x522921=a259_0x5037,_0x23f6cc=_0x89038a();while(!![]){try{const _0x2217e2=parseInt(_0x522921(0x14e))/0x1*(-parseInt(_0x522921(0x152))/0x2)+parseInt(_0x522921(0x153))/0x3+-parseInt(_0x522921(0x15a))/0x4+-parseInt(_0x522921(0x157))/0x5+parseInt(_0x522921(0x15c))/0x6*(parseInt(_0x522921(0x156))/0x7)+parseInt(_0x522921(0x15b))/0x8*(parseInt(_0x522921(0x154))/0x9)+-parseInt(_0x522921(0x159))/0xa*(-parseInt(_0x522921(0x151))/0xb);if(_0x2217e2===_0x5231cb)break;else _0x23f6cc['push'](_0x23f6cc['shift']());}catch(_0x4b7589){_0x23f6cc['push'](_0x23f6cc['shift']());}}}(a259_0x3cbf,0x6c1b6));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_0x2d86d8(0x161);export const PROJECT_DOMAIN_ROUTING_PROTOCOL=a259_0x2d86d8(0x14c);function a259_0x5037(_0x46c4ab,_0x8dd5ec){_0x46c4ab=_0x46c4ab-0x14c;const _0x3cbf8d=a259_0x3cbf();let _0x5037df=_0x3cbf8d[_0x46c4ab];return _0x5037df;}export function getProjectDomainRoutingManifest(){const _0x2dd916=a259_0x2d86d8,_0x423a15=getActiveRegion(),_0xec499a=isIndependentDeployment(),_0x17665f=getOfficialRoutingProfile(_0x423a15),_0x2ff243=getLocalDomain(),_0x523eef=getCertificateDomain(),_0x198aea=getActiveCdn();if(!!_0x2ff243!==!!_0x523eef)throw new Error(_0x2dd916(0x160));return{'protocol':PROJECT_DOMAIN_ROUTING_PROTOCOL,'mode':_0xec499a?'independent':'official','region':_0xec499a?null:_0x423a15,'domains':{'api':getApiDomain(),'runtime':getRuntimeDomain(),'user':getUserDomain(),'app':getAppDomain(),'skill':getSkillDomain(),'kb':getKbDomain()},'cdn':_0x198aea,'local':_0x2ff243&&_0x523eef?{'origin':_0x2ff243,'certificateUrl':_0x523eef+_0x2dd916(0x155)}:_0xec499a?{'origin':_0x2dd916(0x150)}:{'origin':_0x17665f['local'][_0x2dd916(0x14f)],'certificateUrl':_0x198aea[_0x2dd916(0x158)]+_0x2dd916(0x155)}};}export function writeProjectDomainRoutingManifest(_0x3803da){const _0x2910e3=a259_0x2d86d8,_0x12d5d7=getProjectDomainRoutingManifest(),_0x22a180=join(_0x3803da,PROJECT_DOMAIN_ROUTING_FILE_NAME),_0x561994=JSON[_0x2910e3(0x15d)](_0x12d5d7,null,0x2)+'\x0a';try{if(readFileSync(_0x22a180,_0x2910e3(0x14d))===_0x561994)return{'path':_0x22a180,'manifest':_0x12d5d7,'changed':![]};}catch{}const _0x531af7=_0x22a180+'.'+process['pid']+'.'+Date[_0x2910e3(0x15e)]()+_0x2910e3(0x15f);try{writeFileSync(_0x531af7,_0x561994,{'encoding':'utf8','mode':0x1a4}),renameSync(_0x531af7,_0x22a180);}catch(_0x1d6c8f){try{unlinkSync(_0x531af7);}catch{}throw _0x1d6c8f;}return{'path':_0x22a180,'manifest':_0x12d5d7,'changed':!![]};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a260_0x2ca327=a260_0x5142;(function(_0x3d7703,_0x1cb201){const _0x38abd5=a260_0x5142,_0x23122a=_0x3d7703();while(!![]){try{const _0xd21ef3=parseInt(_0x38abd5(0xfa))/0x1+-parseInt(_0x38abd5(0xf8))/0x2+parseInt(_0x38abd5(0xf3))/0x3+-parseInt(_0x38abd5(0xf4))/0x4*(-parseInt(_0x38abd5(0xfd))/0x5)+parseInt(_0x38abd5(0xf1))/0x6+-parseInt(_0x38abd5(0xfc))/0x7*(parseInt(_0x38abd5(0xe1))/0x8)+-parseInt(_0x38abd5(0xee))/0x9;if(_0xd21ef3===_0x1cb201)break;else _0x23122a['push'](_0x23122a['shift']());}catch(_0x1809c0){_0x23122a['push'](_0x23122a['shift']());}}}(a260_0x1bdd,0xe7850));import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_LOVRABET_REGION,isInvalidLovrabetRegion,normalizeLovrabetRegion}from'../constant/region.js';function a260_0x5142(_0x16f035,_0x240c3e){_0x16f035=_0x16f035-0xe0;const _0x1bddbe=a260_0x1bdd();let _0x51427f=_0x1bddbe[_0x16f035];return _0x51427f;}function a260_0x1bdd(){const _0x35c915=['config','string','value','669198iMnCaG','Rabetbase\x20configuration','1547496nzGHTj','mergedRegion','438872FGPxxf','5kBOGYm','null','Invalid\x20country/region\x20','88klxpvn','projectRegion','appName','globalRegion','app\x20profile\x20\x22','global\x20Rabetbase\x20configuration','project\x20Rabetbase\x20configuration','global','Run\x20`','project','appRegion','app','source','32315364WSarqb','\x20doctor`\x20to\x20locate\x20and\x20repair\x20the\x20invalid\x20configuration\x20before\x20retrying.','\x20in\x20','6722598ATUGdZ','validation','5246649zcKkag','4585372SrLfGp'];a260_0x1bdd=function(){return _0x35c915;};return a260_0x1bdd();}import{CliErrors}from'../errors.js';export function selectConfiguredRegion(_0x5db052){const _0x5cb740=a260_0x5142;if(_0x5db052[_0x5cb740(0xeb)]!==undefined&&_0x5db052['appRegion']!==null&&_0x5db052['appRegion']!=='')return{'value':_0x5db052[_0x5cb740(0xeb)],'source':_0x5cb740(0xec)};if(_0x5db052['projectRegion']!==undefined&&_0x5db052['projectRegion']!==null&&_0x5db052[_0x5cb740(0xe2)]!=='')return{'value':_0x5db052[_0x5cb740(0xe2)],'source':'project'};if(_0x5db052[_0x5cb740(0xe4)]!==undefined&&_0x5db052[_0x5cb740(0xe4)]!==null&&_0x5db052[_0x5cb740(0xe4)]!=='')return{'value':_0x5db052['globalRegion'],'source':_0x5cb740(0xe8)};if(_0x5db052[_0x5cb740(0xfb)]!==undefined&&_0x5db052[_0x5cb740(0xfb)]!==null&&_0x5db052[_0x5cb740(0xfb)]!=='')return{'value':_0x5db052[_0x5cb740(0xfb)],'source':_0x5cb740(0xf5)};return{'value':undefined,'source':'default'};}function describeConfiguredRegion(_0x5d3478){const _0x1fcd07=a260_0x5142;return typeof _0x5d3478===_0x1fcd07(0xf6)?JSON['stringify'](_0x5d3478):'a\x20value\x20of\x20type\x20'+(_0x5d3478===null?_0x1fcd07(0xfe):typeof _0x5d3478);}export function resolveConfiguredRegion(_0x429dad,_0x4cd5bc=a260_0x2ca327(0xf9)){const _0x156645=a260_0x2ca327;if(isInvalidLovrabetRegion(_0x429dad))throw CliErrors[_0x156645(0xf2)](_0x156645(0xe0)+describeConfiguredRegion(_0x429dad)+_0x156645(0xf0)+_0x4cd5bc+'.',_0x156645(0xe9)+CLI_BIN_NAME+_0x156645(0xef));return normalizeLovrabetRegion(_0x429dad)??DEFAULT_LOVRABET_REGION;}export function resolveEffectiveRegion(_0x4885d1){const _0x4558af=a260_0x2ca327,_0x1a4890=selectConfiguredRegion(_0x4885d1),_0x30cbdd=_0x1a4890[_0x4558af(0xed)]===_0x4558af(0xec)?_0x4885d1[_0x4558af(0xe3)]?_0x4558af(0xe5)+_0x4885d1['appName']+'\x22':'selected\x20app\x20profile':_0x1a4890[_0x4558af(0xed)]===_0x4558af(0xea)?_0x4558af(0xe7):_0x1a4890[_0x4558af(0xed)]===_0x4558af(0xe8)?_0x4558af(0xe6):'Rabetbase\x20configuration';return{'region':resolveConfiguredRegion(_0x1a4890[_0x4558af(0xf7)],_0x30cbdd),'source':_0x1a4890[_0x4558af(0xed)]};}
|
package/lib/config/schema.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a261_0x1e5104=a261_0x2e87;(function(_0x5ec418,_0x3e1c46){const _0x39fa84=a261_0x2e87,_0x191bdb=_0x5ec418();while(!![]){try{const _0x3fe22e=parseInt(_0x39fa84(0x13b))/0x1*(-parseInt(_0x39fa84(0x15d))/0x2)+parseInt(_0x39fa84(0x16a))/0x3+parseInt(_0x39fa84(0x15f))/0x4+-parseInt(_0x39fa84(0x144))/0x5*(parseInt(_0x39fa84(0x133))/0x6)+-parseInt(_0x39fa84(0x14b))/0x7+parseInt(_0x39fa84(0x142))/0x8*(-parseInt(_0x39fa84(0x140))/0x9)+-parseInt(_0x39fa84(0x134))/0xa*(-parseInt(_0x39fa84(0x153))/0xb);if(_0x3fe22e===_0x3e1c46)break;else _0x191bdb['push'](_0x191bdb['shift']());}catch(_0x4857e4){_0x191bdb['push'](_0x191bdb['shift']());}}}(a261_0x42e6,0x3e505));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_0x1e5104(0x141),a261_0x1e5104(0x137),a261_0x1e5104(0x151),a261_0x1e5104(0x14f),a261_0x1e5104(0x14a),a261_0x1e5104(0x164),a261_0x1e5104(0x138),a261_0x1e5104(0x14c),a261_0x1e5104(0x159),a261_0x1e5104(0x163),a261_0x1e5104(0x145),a261_0x1e5104(0x13a),'kbServiceDomain',a261_0x1e5104(0x13e),a261_0x1e5104(0x152),a261_0x1e5104(0x147)];export const TOP_LEVEL_CONFIG_KEYS=new Set([a261_0x1e5104(0x132),a261_0x1e5104(0x157),a261_0x1e5104(0x151),a261_0x1e5104(0x14f),'cookie',a261_0x1e5104(0x137),a261_0x1e5104(0x155),a261_0x1e5104(0x164),'userDomain',a261_0x1e5104(0x159),'runtimeDomain',a261_0x1e5104(0x145),a261_0x1e5104(0x13a),a261_0x1e5104(0x154),a261_0x1e5104(0x13e),a261_0x1e5104(0x152),'certificateDomain']);export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES],'region':[...ENABLED_LOVRABET_REGION_VALUES]};export function formatConfigKeyList(_0x1051ad){const _0x407ff4=a261_0x1e5104;return[..._0x1051ad][_0x407ff4(0x139)](',\x20');}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function isTopLevelConfigKey(_0xb0062a){const _0x3bd1b6=a261_0x1e5104;return TOP_LEVEL_CONFIG_KEYS[_0x3bd1b6(0x160)](_0xb0062a);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x45b040=a261_0x1e5104;return _0x45b040(0x162)+getTopLevelConfigKeySummary()+')';}export const APP_PROFILE_FLAG_KEY_MAP={'apiGroup':'apiGroup','region':a261_0x1e5104(0x164),'env':'env','apiDir':a261_0x1e5104(0x155),'cookie':a261_0x1e5104(0x141),'accessKey':a261_0x1e5104(0x137),'defaultFormat':'format','pageSize':a261_0x1e5104(0x168),'riskLevel':'riskLevel','locale':a261_0x1e5104(0x151)};export function getAppProfileFlagDefs(){const _0x501eef=a261_0x1e5104;return[{'name':_0x501eef(0x135),'type':_0x501eef(0x15e),'description':'Join\x20key\x20for\x20app\x20profiles\x20that\x20share\x20one\x20generated\x20API\x20model\x20registry'},{'name':_0x501eef(0x164),'type':_0x501eef(0x15e),'description':_0x501eef(0x156),'enum':[...ENABLED_LOVRABET_REGION_VALUES]},{'name':_0x501eef(0x157),'type':'string','description':'Target\x20environment','enum':[...RABETBASE_ENV_VALUES]},{'name':_0x501eef(0x155),'type':_0x501eef(0x15e),'description':_0x501eef(0x136)},{'name':'cookie','type':_0x501eef(0x15e),'description':'Auth\x20cookie','hidden':!![]},{'name':_0x501eef(0x137),'type':_0x501eef(0x15e),'description':_0x501eef(0x167),'hidden':!![]},{'name':_0x501eef(0x16b),'type':_0x501eef(0x15e),'description':_0x501eef(0x146),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':_0x501eef(0x168),'type':_0x501eef(0x13d),'description':'Default\x20page\x20size'},{'name':'riskLevel','type':_0x501eef(0x15e),'description':_0x501eef(0x13f),'enum':[...RISK_LEVEL_VALUES]},{'name':'locale','type':_0x501eef(0x15e),'description':_0x501eef(0x15a)}];}export function collectAppProfileOverrides(_0x5e118d){const _0x177c49={};for(const [_0x486693,_0x12c2e8]of Object['entries'](APP_PROFILE_FLAG_KEY_MAP)){const _0x4cf5d9=_0x5e118d(_0x486693);if(!_0x4cf5d9)continue;_0x177c49[_0x12c2e8]=_0x12c2e8==='pageSize'?Number(_0x4cf5d9):_0x4cf5d9;}return _0x177c49;}export function buildAppProfileListFields(_0x33b47c){const _0x11642a=a261_0x1e5104;return{'apiGroup':_0x33b47c[_0x11642a(0x135)]??null,'region':_0x33b47c['region']??null,'env':_0x33b47c[_0x11642a(0x157)]??null,'apiDir':_0x33b47c['apiDir']??null,'hasCookie':!!_0x33b47c['cookie'],'hasAccessKey':!!_0x33b47c[_0x11642a(0x137)],'format':_0x33b47c[_0x11642a(0x14f)]??null,'pageSize':_0x33b47c['pageSize']??null,'riskLevel':_0x33b47c[_0x11642a(0x14a)]??null,'locale':_0x33b47c[_0x11642a(0x151)]??null};}function a261_0x42e6(){const _0x36a478=['keys','object','2klNOzN','string','192336ZxakJX','has','inherit','Config\x20key\x20(','runtimeDomain','region','app','filter','Access\x20key','pageSize','trim','1340487JsEXXn','defaultFormat','appcode','2203134gNYshJ','3190rJxrtx','apiGroup','API\x20directory\x20path','accessKey','routing','join','kbDomain','49988BSCDis','isArray','number','appDomain','Risk\x20level','9WavzYY','cookie','1102424vkPBOH','values','5dIjzZW','skillDomain','Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','certificateDomain','map','apps','riskLevel','2332561DGkTOM','userDomain','defaultApp','en-US','format','zh-CN','locale','localDomain','22363ZmkTpJ','kbServiceDomain','apiDir','Country/region\x20for\x20this\x20app\x20profile','env','length','apiDomain','App\x20locale\x20(not\x20CLI\x20language;\x20reserved\x20for\x20later\x20app\x20use)'];a261_0x42e6=function(){return _0x36a478;};return a261_0x42e6();}export function buildAppDoctorFields(_0x4ce4d3,_0xe422cc){const _0x1641cb=a261_0x1e5104;return{'region':{'value':_0x4ce4d3[_0x1641cb(0x164)]||_0xe422cc[_0x1641cb(0x164)],'source':_0x4ce4d3[_0x1641cb(0x164)]?'app':'inherit'},'env':{'value':_0x4ce4d3[_0x1641cb(0x157)]||_0xe422cc[_0x1641cb(0x157)],'source':_0x4ce4d3[_0x1641cb(0x157)]?_0x1641cb(0x165):_0x1641cb(0x161)},'apiDir':{'value':_0x4ce4d3[_0x1641cb(0x155)]||_0xe422cc[_0x1641cb(0x155)],'source':_0x4ce4d3['apiDir']?'app':_0x1641cb(0x161)},'cookie':{'value':_0x4ce4d3[_0x1641cb(0x141)]||_0xe422cc[_0x1641cb(0x141)],'source':_0x4ce4d3[_0x1641cb(0x141)]?_0x1641cb(0x165):_0x1641cb(0x161)},'accessKey':{'value':_0x4ce4d3[_0x1641cb(0x137)]||_0xe422cc[_0x1641cb(0x137)],'source':_0x4ce4d3[_0x1641cb(0x137)]?_0x1641cb(0x165):_0x1641cb(0x161)}};}export function buildCanonicalAppConfig(_0x300141,_0x26ff54){const _0x51bf50=a261_0x1e5104,_0x123be2=_0x300141[_0x51bf50(0x148)](_0x1ac7e4=>String(_0x1ac7e4||'')[_0x51bf50(0x169)]())[_0x51bf50(0x166)](Boolean);if(_0x123be2['length']===0x0)return{};const _0x4a9d54={};for(const _0x244cdf of _0x123be2){_0x4a9d54[_0x244cdf]=_0x26ff54&&!isProduction(_0x26ff54)?{'appcode':_0x244cdf,'env':_0x26ff54}:{'appcode':_0x244cdf};}return _0x123be2[_0x51bf50(0x158)]>0x1?{'apps':_0x4a9d54,'defaultApp':_0x123be2[0x0]}:{'apps':_0x4a9d54};}export function normalizeStoredDefaultApp(_0x52a696,_0x4e9498){const _0x422076=a261_0x1e5104,_0x43cf70=_0x52a696['apps']&&typeof _0x52a696['apps']==='object'?_0x52a696[_0x422076(0x149)]:{},_0x407bf5=Object[_0x422076(0x15b)](_0x43cf70);if(_0x407bf5['length']<=0x1)return delete _0x52a696[_0x422076(0x14d)],undefined;const _0x45528e=typeof _0x52a696['defaultApp']===_0x422076(0x15e)&&_0x43cf70[_0x52a696['defaultApp']]?_0x52a696[_0x422076(0x14d)]:undefined,_0x3e0c0d=_0x4e9498&&_0x43cf70[_0x4e9498]?_0x4e9498:_0x45528e;if(_0x3e0c0d)return _0x52a696[_0x422076(0x14d)]=_0x3e0c0d,_0x3e0c0d;return delete _0x52a696[_0x422076(0x14d)],undefined;}export function buildCanonicalProjectConfig(_0x223ec9,_0x416462){const _0x322a71=a261_0x1e5104,{appCodes:appCodes=[],env:_0x3abbe0,metadata:_0x3f627d}=_0x416462,_0x549921={..._0x223ec9,..._0x3f627d||{}};delete _0x549921[_0x322a71(0x132)],delete _0x549921[_0x322a71(0x165)];const _0x2151c5=_0x3abbe0||(typeof _0x549921['env']===_0x322a71(0x15e)?_0x549921['env']:'')||DEFAULT_CONFIG_VALUES['env'];if(isProduction(_0x2151c5))delete _0x549921[_0x322a71(0x157)];else _0x549921[_0x322a71(0x157)]=_0x2151c5;const _0x575a9e=buildCanonicalAppConfig(appCodes,_0x2151c5);if(Object['keys'](_0x575a9e)['length']>0x0){_0x549921['apps']=_0x575a9e[_0x322a71(0x149)];if(_0x575a9e[_0x322a71(0x14d)])_0x549921[_0x322a71(0x14d)]=_0x575a9e['defaultApp'];else delete _0x549921[_0x322a71(0x14d)];}return normalizeConfigForWrite(_0x549921);}function isRecord(_0x593c3f){const _0x46b050=a261_0x1e5104;return!!_0x593c3f&&typeof _0x593c3f===_0x46b050(0x15c)&&!Array[_0x46b050(0x13c)](_0x593c3f);}export function normalizeConfigForWrite(_0x37646c){const _0x4bc780=a261_0x1e5104,_0x3c6f83={..._0x37646c},_0xa9e8a9=isRecord(_0x37646c['apps'])?_0x37646c['apps']:undefined,_0x435df4=_0xa9e8a9?Object['fromEntries'](Object['entries'](_0xa9e8a9)[_0x4bc780(0x148)](([_0x2341ed,_0x5e5da1])=>[_0x2341ed,isRecord(_0x5e5da1)?{..._0x5e5da1}:_0x5e5da1])):undefined;if(_0x435df4){const _0x3be403=typeof _0x3c6f83[_0x4bc780(0x157)]==='string'?_0x3c6f83[_0x4bc780(0x157)]:undefined,_0x38a0bf=Object[_0x4bc780(0x143)](_0x435df4)['some'](_0x29a6d5=>isRecord(_0x29a6d5)&&typeof _0x29a6d5[_0x4bc780(0x157)]===_0x4bc780(0x15e)&&isProduction(_0x29a6d5[_0x4bc780(0x157)]));if(_0x3be403&&isDaily(_0x3be403)&&_0x38a0bf){for(const _0x130c5e of Object['values'](_0x435df4)){if(!isRecord(_0x130c5e))continue;if(_0x130c5e[_0x4bc780(0x157)]===undefined)_0x130c5e[_0x4bc780(0x157)]=_0x3be403;}delete _0x3c6f83['env'];}for(const _0x48767b of Object[_0x4bc780(0x143)](_0x435df4)){isRecord(_0x48767b)&&typeof _0x48767b[_0x4bc780(0x157)]==='string'&&isProduction(_0x48767b[_0x4bc780(0x157)])&&delete _0x48767b[_0x4bc780(0x157)];}_0x3c6f83['apps']=_0x435df4;}return typeof _0x3c6f83['env']==='string'&&isProduction(_0x3c6f83[_0x4bc780(0x157)])&&delete _0x3c6f83[_0x4bc780(0x157)],_0x3c6f83;}const LOCALE_MAP={'zh':a261_0x1e5104(0x150),'zh-cn':a261_0x1e5104(0x150),'zh_cn':a261_0x1e5104(0x150),'en':a261_0x1e5104(0x14e),'en-us':'en-US','en_us':a261_0x1e5104(0x14e)};function a261_0x2e87(_0x5b7d33,_0x5f28aa){_0x5b7d33=_0x5b7d33-0x132;const _0x42e6f3=a261_0x42e6();let _0x2e87a0=_0x42e6f3[_0x5b7d33];return _0x2e87a0;}export function normalizeLocale(_0x44ebbb){if(!_0x44ebbb)return null;return LOCALE_MAP[_0x44ebbb['toLowerCase']()]??null;}
|
|
1
|
+
const a261_0x485ce9=a261_0x2e20;(function(_0x4f447b,_0x43205a){const _0x459957=a261_0x2e20,_0x4f51b5=_0x4f447b();while(!![]){try{const _0x46bad1=parseInt(_0x459957(0x1fc))/0x1*(-parseInt(_0x459957(0x213))/0x2)+-parseInt(_0x459957(0x20b))/0x3+-parseInt(_0x459957(0x215))/0x4+-parseInt(_0x459957(0x1ee))/0x5*(-parseInt(_0x459957(0x1f6))/0x6)+parseInt(_0x459957(0x1fa))/0x7*(parseInt(_0x459957(0x21a))/0x8)+parseInt(_0x459957(0x216))/0x9+-parseInt(_0x459957(0x1fb))/0xa*(-parseInt(_0x459957(0x1ff))/0xb);if(_0x46bad1===_0x43205a)break;else _0x4f51b5['push'](_0x4f51b5['shift']());}catch(_0x366e8c){_0x4f51b5['push'](_0x4f51b5['shift']());}}}(a261_0x329f,0x1c697));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_0x485ce9(0x1fe),'accessKey',a261_0x485ce9(0x20a),a261_0x485ce9(0x1f7),a261_0x485ce9(0x206),a261_0x485ce9(0x1f1),a261_0x485ce9(0x201),'userDomain','apiDomain','runtimeDomain','skillDomain','kbDomain','kbServiceDomain',a261_0x485ce9(0x20d),a261_0x485ce9(0x1f2),a261_0x485ce9(0x1fd)];export const TOP_LEVEL_CONFIG_KEYS=new Set(['appcode',a261_0x485ce9(0x1e8),'locale','format','cookie',a261_0x485ce9(0x1e5),a261_0x485ce9(0x219),a261_0x485ce9(0x1f1),'userDomain','apiDomain',a261_0x485ce9(0x1ef),a261_0x485ce9(0x1ea),a261_0x485ce9(0x209),'kbServiceDomain',a261_0x485ce9(0x20d),a261_0x485ce9(0x1f2),a261_0x485ce9(0x1fd)]);export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES],'region':[...ENABLED_LOVRABET_REGION_VALUES]};export function formatConfigKeyList(_0x5e2379){const _0x876f7=a261_0x485ce9;return[..._0x5e2379][_0x876f7(0x1e2)](',\x20');}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function isTopLevelConfigKey(_0x424461){const _0x195524=a261_0x485ce9;return TOP_LEVEL_CONFIG_KEYS[_0x195524(0x1ec)](_0x424461);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x38fad0=a261_0x485ce9;return _0x38fad0(0x21b)+getTopLevelConfigKeySummary()+')';}function a261_0x329f(){const _0x315f43=['Target\x20environment','14imkPNp','130PDOVlt','25JvDbMW','certificateDomain','cookie','129789HNwjHv','Country/region\x20for\x20this\x20app\x20profile','routing','fromEntries','API\x20directory\x20path','entries','Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','riskLevel','map','appcode','kbDomain','locale','606348UtaMKl','pageSize','appDomain','apiGroup','defaultFormat','number','app','Risk\x20level','10342cpdWVS','keys','230884tJWxZx','1472094VLSFuC','apps','inherit','apiDir','117224NVVlzs','Config\x20key\x20(','toLowerCase','trim','join','string','zh-CN','accessKey','length','values','env','Access\x20key','skillDomain','object','has','defaultApp','10hiRdEO','runtimeDomain','Default\x20page\x20size','region','localDomain','isArray','Join\x20key\x20for\x20app\x20profiles\x20that\x20share\x20one\x20generated\x20API\x20model\x20registry','en-US','477684LlgyUM','format','filter'];a261_0x329f=function(){return _0x315f43;};return a261_0x329f();}export const APP_PROFILE_FLAG_KEY_MAP={'apiGroup':a261_0x485ce9(0x20e),'region':'region','env':a261_0x485ce9(0x1e8),'apiDir':'apiDir','cookie':'cookie','accessKey':a261_0x485ce9(0x1e5),'defaultFormat':a261_0x485ce9(0x1f7),'pageSize':a261_0x485ce9(0x20c),'riskLevel':'riskLevel','locale':'locale'};export function getAppProfileFlagDefs(){const _0x30a457=a261_0x485ce9;return[{'name':_0x30a457(0x20e),'type':_0x30a457(0x1e3),'description':_0x30a457(0x1f4)},{'name':_0x30a457(0x1f1),'type':_0x30a457(0x1e3),'description':_0x30a457(0x200),'enum':[...ENABLED_LOVRABET_REGION_VALUES]},{'name':_0x30a457(0x1e8),'type':_0x30a457(0x1e3),'description':_0x30a457(0x1f9),'enum':[...RABETBASE_ENV_VALUES]},{'name':_0x30a457(0x219),'type':_0x30a457(0x1e3),'description':_0x30a457(0x203)},{'name':_0x30a457(0x1fe),'type':_0x30a457(0x1e3),'description':'Auth\x20cookie','hidden':!![]},{'name':_0x30a457(0x1e5),'type':_0x30a457(0x1e3),'description':_0x30a457(0x1e9),'hidden':!![]},{'name':_0x30a457(0x20f),'type':_0x30a457(0x1e3),'description':_0x30a457(0x205),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':_0x30a457(0x20c),'type':_0x30a457(0x210),'description':_0x30a457(0x1f0)},{'name':_0x30a457(0x206),'type':_0x30a457(0x1e3),'description':_0x30a457(0x212),'enum':[...RISK_LEVEL_VALUES]},{'name':_0x30a457(0x20a),'type':_0x30a457(0x1e3),'description':'App\x20locale\x20(not\x20CLI\x20language;\x20reserved\x20for\x20later\x20app\x20use)'}];}export function collectAppProfileOverrides(_0x5a281c){const _0x384888=a261_0x485ce9,_0x458a54={};for(const [_0x5bfd63,_0xbe3a5a]of Object[_0x384888(0x204)](APP_PROFILE_FLAG_KEY_MAP)){const _0x25584f=_0x5a281c(_0x5bfd63);if(!_0x25584f)continue;_0x458a54[_0xbe3a5a]=_0xbe3a5a===_0x384888(0x20c)?Number(_0x25584f):_0x25584f;}return _0x458a54;}function a261_0x2e20(_0x2b1c7a,_0x7f4a1b){_0x2b1c7a=_0x2b1c7a-0x1e2;const _0x329fc=a261_0x329f();let _0x2e20f2=_0x329fc[_0x2b1c7a];return _0x2e20f2;}export function buildAppProfileListFields(_0x3cc276){const _0x2c3a58=a261_0x485ce9;return{'apiGroup':_0x3cc276[_0x2c3a58(0x20e)]??null,'region':_0x3cc276[_0x2c3a58(0x1f1)]??null,'env':_0x3cc276['env']??null,'apiDir':_0x3cc276[_0x2c3a58(0x219)]??null,'hasCookie':!!_0x3cc276[_0x2c3a58(0x1fe)],'hasAccessKey':!!_0x3cc276[_0x2c3a58(0x1e5)],'format':_0x3cc276[_0x2c3a58(0x1f7)]??null,'pageSize':_0x3cc276[_0x2c3a58(0x20c)]??null,'riskLevel':_0x3cc276[_0x2c3a58(0x206)]??null,'locale':_0x3cc276['locale']??null};}export function buildAppDoctorFields(_0x4327e5,_0x2e5f9a){const _0x3772a2=a261_0x485ce9;return{'region':{'value':_0x4327e5['region']||_0x2e5f9a[_0x3772a2(0x1f1)],'source':_0x4327e5['region']?_0x3772a2(0x211):_0x3772a2(0x218)},'env':{'value':_0x4327e5[_0x3772a2(0x1e8)]||_0x2e5f9a[_0x3772a2(0x1e8)],'source':_0x4327e5[_0x3772a2(0x1e8)]?_0x3772a2(0x211):_0x3772a2(0x218)},'apiDir':{'value':_0x4327e5['apiDir']||_0x2e5f9a[_0x3772a2(0x219)],'source':_0x4327e5[_0x3772a2(0x219)]?_0x3772a2(0x211):'inherit'},'cookie':{'value':_0x4327e5[_0x3772a2(0x1fe)]||_0x2e5f9a[_0x3772a2(0x1fe)],'source':_0x4327e5[_0x3772a2(0x1fe)]?_0x3772a2(0x211):'inherit'},'accessKey':{'value':_0x4327e5['accessKey']||_0x2e5f9a['accessKey'],'source':_0x4327e5[_0x3772a2(0x1e5)]?_0x3772a2(0x211):_0x3772a2(0x218)}};}export function buildCanonicalAppConfig(_0x848ea8,_0x3f5192){const _0x542e88=a261_0x485ce9,_0x59f521=_0x848ea8['map'](_0x124dab=>String(_0x124dab||'')[_0x542e88(0x21d)]())[_0x542e88(0x1f8)](Boolean);if(_0x59f521[_0x542e88(0x1e6)]===0x0)return{};const _0xf7b27d={};for(const _0x1bda48 of _0x59f521){_0xf7b27d[_0x1bda48]=_0x3f5192&&!isProduction(_0x3f5192)?{'appcode':_0x1bda48,'env':_0x3f5192}:{'appcode':_0x1bda48};}return _0x59f521[_0x542e88(0x1e6)]>0x1?{'apps':_0xf7b27d,'defaultApp':_0x59f521[0x0]}:{'apps':_0xf7b27d};}export function normalizeStoredDefaultApp(_0x35d8bc,_0x39b2a5){const _0x5ccd2c=a261_0x485ce9,_0xce938b=_0x35d8bc[_0x5ccd2c(0x217)]&&typeof _0x35d8bc[_0x5ccd2c(0x217)]===_0x5ccd2c(0x1eb)?_0x35d8bc['apps']:{},_0x2f38bf=Object['keys'](_0xce938b);if(_0x2f38bf[_0x5ccd2c(0x1e6)]<=0x1)return delete _0x35d8bc[_0x5ccd2c(0x1ed)],undefined;const _0x15e18f=typeof _0x35d8bc[_0x5ccd2c(0x1ed)]===_0x5ccd2c(0x1e3)&&_0xce938b[_0x35d8bc[_0x5ccd2c(0x1ed)]]?_0x35d8bc['defaultApp']:undefined,_0x1981cb=_0x39b2a5&&_0xce938b[_0x39b2a5]?_0x39b2a5:_0x15e18f;if(_0x1981cb)return _0x35d8bc[_0x5ccd2c(0x1ed)]=_0x1981cb,_0x1981cb;return delete _0x35d8bc[_0x5ccd2c(0x1ed)],undefined;}export function buildCanonicalProjectConfig(_0x200661,_0x360070){const _0x2cc32f=a261_0x485ce9,{appCodes:appCodes=[],env:_0xbb1c02,metadata:_0x5cd29f}=_0x360070,_0x367394={..._0x200661,..._0x5cd29f||{}};delete _0x367394[_0x2cc32f(0x208)],delete _0x367394['app'];const _0x4a3f3d=_0xbb1c02||(typeof _0x367394[_0x2cc32f(0x1e8)]==='string'?_0x367394[_0x2cc32f(0x1e8)]:'')||DEFAULT_CONFIG_VALUES[_0x2cc32f(0x1e8)];if(isProduction(_0x4a3f3d))delete _0x367394[_0x2cc32f(0x1e8)];else _0x367394[_0x2cc32f(0x1e8)]=_0x4a3f3d;const _0x1889da=buildCanonicalAppConfig(appCodes,_0x4a3f3d);if(Object[_0x2cc32f(0x214)](_0x1889da)['length']>0x0){_0x367394[_0x2cc32f(0x217)]=_0x1889da[_0x2cc32f(0x217)];if(_0x1889da[_0x2cc32f(0x1ed)])_0x367394[_0x2cc32f(0x1ed)]=_0x1889da[_0x2cc32f(0x1ed)];else delete _0x367394[_0x2cc32f(0x1ed)];}return normalizeConfigForWrite(_0x367394);}function isRecord(_0x5da9c6){const _0x115754=a261_0x485ce9;return!!_0x5da9c6&&typeof _0x5da9c6===_0x115754(0x1eb)&&!Array[_0x115754(0x1f3)](_0x5da9c6);}export function normalizeConfigForWrite(_0x552370){const _0x502bd5=a261_0x485ce9,_0x18b540={..._0x552370},_0x5c15dd=isRecord(_0x552370[_0x502bd5(0x217)])?_0x552370[_0x502bd5(0x217)]:undefined,_0x254bc0=_0x5c15dd?Object[_0x502bd5(0x202)](Object[_0x502bd5(0x204)](_0x5c15dd)[_0x502bd5(0x207)](([_0x2ee569,_0x11d391])=>[_0x2ee569,isRecord(_0x11d391)?{..._0x11d391}:_0x11d391])):undefined;if(_0x254bc0){const _0x24ac78=typeof _0x18b540[_0x502bd5(0x1e8)]===_0x502bd5(0x1e3)?_0x18b540['env']:undefined,_0x49824b=Object[_0x502bd5(0x1e7)](_0x254bc0)['some'](_0x1254e4=>isRecord(_0x1254e4)&&typeof _0x1254e4['env']==='string'&&isProduction(_0x1254e4[_0x502bd5(0x1e8)]));if(_0x24ac78&&isDaily(_0x24ac78)&&_0x49824b){for(const _0x211e05 of Object[_0x502bd5(0x1e7)](_0x254bc0)){if(!isRecord(_0x211e05))continue;if(_0x211e05['env']===undefined)_0x211e05['env']=_0x24ac78;}delete _0x18b540[_0x502bd5(0x1e8)];}for(const _0x1f17ba of Object[_0x502bd5(0x1e7)](_0x254bc0)){isRecord(_0x1f17ba)&&typeof _0x1f17ba[_0x502bd5(0x1e8)]==='string'&&isProduction(_0x1f17ba[_0x502bd5(0x1e8)])&&delete _0x1f17ba[_0x502bd5(0x1e8)];}_0x18b540[_0x502bd5(0x217)]=_0x254bc0;}return typeof _0x18b540[_0x502bd5(0x1e8)]===_0x502bd5(0x1e3)&&isProduction(_0x18b540[_0x502bd5(0x1e8)])&&delete _0x18b540[_0x502bd5(0x1e8)],_0x18b540;}const LOCALE_MAP={'zh':a261_0x485ce9(0x1e4),'zh-cn':a261_0x485ce9(0x1e4),'zh_cn':a261_0x485ce9(0x1e4),'en':'en-US','en-us':a261_0x485ce9(0x1f5),'en_us':a261_0x485ce9(0x1f5)};export function normalizeLocale(_0x127e6e){const _0x24815a=a261_0x485ce9;if(!_0x127e6e)return null;return LOCALE_MAP[_0x127e6e[_0x24815a(0x21c)]()]??null;}
|
package/lib/constant/cdn.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a262_0x364a0a=a262_0x5f1b;(function(_0x5a16fa,_0x8a1b34){const _0x1196fa=a262_0x5f1b,_0x162f01=_0x5a16fa();while(!![]){try{const _0x3f97bd=-parseInt(_0x1196fa(0x165))/0x1+parseInt(_0x1196fa(0x16f))/0x2+parseInt(_0x1196fa(0x16a))/0x3+-parseInt(_0x1196fa(0x161))/0x4+parseInt(_0x1196fa(0x16b))/0x5*(parseInt(_0x1196fa(0x162))/0x6)+parseInt(_0x1196fa(0x169))/0x7*(-parseInt(_0x1196fa(0x164))/0x8)+-parseInt(_0x1196fa(0x16d))/0x9*(-parseInt(_0x1196fa(0x163))/0xa);if(_0x3f97bd===_0x8a1b34)break;else _0x162f01['push'](_0x162f01['shift']());}catch(_0x6e6d3f){_0x162f01['push'](_0x162f01['shift']());}}}(a262_0x446b,0x5e838));import{getActiveCdn}from'../constant/domain.js';const RABETBASE_CDN_PROJECT=a262_0x364a0a(0x16c),RABETBASE_CDN_CONFIG_ORIGIN='https://g.lovrabet.com',CDN_CONFIG_PATH=a262_0x364a0a(0x166),PROJECT_TEMPLATE_ASSET_PATH=a262_0x364a0a(0x16e),PROJECT_TEMPLATE_ARCHIVE_NAMES=Object[a262_0x364a0a(0x168)]({'release':'sub-app-react-demo.zip','beta':'sub-app-react-demo-beta.zip'});export const RABETBASE_CDN_PROJECT_PATH='/dist/'+RABETBASE_CDN_PROJECT;function getRabetbaseCdnBaseUrl(){const _0x487825=a262_0x364a0a;return''+getActiveCdn()[_0x487825(0x167)]+RABETBASE_CDN_PROJECT_PATH;}export function getCliVersionPolicyUrl(){return''+RABETBASE_CDN_CONFIG_ORIGIN+RABETBASE_CDN_PROJECT_PATH+'/'+CDN_CONFIG_PATH;}export function getProjectTemplateAssetBaseUrl(){return getRabetbaseCdnBaseUrl()+'/'+PROJECT_TEMPLATE_ASSET_PATH;}function a262_0x5f1b(_0x255662,_0xf73cd9){_0x255662=_0x255662-0x160;const _0x446bce=a262_0x446b();let _0x5f1bb0=_0x446bce[_0x255662];return _0x5f1bb0;}export function getProjectTemplateLegacyAssetBaseUrl(){return''+RABETBASE_CDN_CONFIG_ORIGIN+RABETBASE_CDN_PROJECT_PATH+'/'+PROJECT_TEMPLATE_ASSET_PATH;}function a262_0x446b(){const _0x3a4cc9=['402zdDuwj','34700OEnxlt','3985304vvKKTr','372407rBoMjf','config/index.json','lovrabet','freeze','7hFELDP','1276242tUzyNI','49410DQeEZa','rabetbase-cli','1215spcDPq','templates/projects','409868exLxcl','.zip','2012776FcCqHQ'];a262_0x446b=function(){return _0x3a4cc9;};return a262_0x446b();}export function getProjectTemplateRelativeUrl(_0x3421d4,_0x24fd1a){const _0x3b9046=a262_0x364a0a,_0x3d8356=_0x24fd1a?'sub-app-react-demo-'+_0x24fd1a+_0x3b9046(0x160):PROJECT_TEMPLATE_ARCHIVE_NAMES[_0x3421d4];return RABETBASE_CDN_PROJECT_PATH+'/'+PROJECT_TEMPLATE_ASSET_PATH+'/'+_0x3d8356;}
|
package/lib/constant/cli.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function a263_0x2fa0(){const _0x412e1b=['Preview\x20operation\x20without\x20executing','Name','codes','sort','Force\x20overwrite','Tags','json\x20|\x20pretty\x20|\x20compress','Verbose\x20output','task-id','2185351tEzQgg','non-interactive','Maximum\x20search\x20hits','Schemas','production\x20|\x20daily','1654302TbUqTL','File\x20path','Output\x20format','pageSize','expectedCount','global','schemas','value','stdin','Use\x20remote','<code>','flow-name','Rabetbase\x20CLI','expectPath','sqlcode','Skip\x20confirmation\x20for\x20high-risk\x20writes','Clear','Confirm\x20destructive\x20action','pagesize','target','Page\x20size','Record\x20ID','zh-CN\x20|\x20en-US','taskId','Target\x20path','Description','verbose','help','parentId','app','locale','project','expectParentId','remote','flow-type','sqlname','Use\x20global\x20config\x20scope','flow-code','sqlName','parent-id','Search\x20query','appcode','fromEnv','meowKey','Override\x20appcode','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','description','143896FVmXdy','env','Code\x20filter','Show\x20help','SQL\x20string','Skip\x20import\x20generation','DB\x20ID','189248WMHErD','Menu\x20sort\x20value','Expected\x20affected\x20count','clear','enableBffSave','Expected\x20current\x20menu\x20path','all','label','function-node','Flow\x20code','datasetCode','datasetcode','dbid','code','Parent\x20menu\x20id','output','2147232JAIXjR','nonInteractive','operation','expected-count','operation-type','topk','menuIds','App\x20locale\x20(workspace\x20pass-through;\x20not\x20CLI\x20language)','page','dry-run','query','type','Select\x20app\x20profile\x20by\x20name','functionNode','Dataset\x20code','265352qowayq','reveal','Expected\x20current\x20parent\x20menu\x20id','<name>','file','Config\x20key','Flow\x20type','Apply\x20to\x20all','params','confirm','dataset-code','title','Read\x20value\x20from\x20environment\x20variable','string','Alias\x20for\x20--non-interactive','sql-name','Flow\x20status','boolean','<expr>','format','flowType','force','skipImports','db-id','Operation\x20type','Comma-separated\x20metadata\x20codes','name','dbId','rabetbase','expect-parent-id','flow-status','expect-path','sql','Menu\x20label','8279912fnIqku','descriptionFile','JSON\x20params','Flow\x20name','Title','keyword','tags','map','enable-bff-save','key','Watch\x20mode','yes','dryRun','10AVvgGi','Reveal\x20sensitive\x20value','flowCode'];a263_0x2fa0=function(){return _0x412e1b;};return a263_0x2fa0();}const a263_0x4f94eb=a263_0x59bf;(function(_0x2fa4ca,_0x3db517){const _0x433ba6=a263_0x59bf,_0x5e90fa=_0x2fa4ca();while(!![]){try{const _0xa29c7=-parseInt(_0x433ba6(0x21f))/0x1+-parseInt(_0x433ba6(0x226))/0x2+-parseInt(_0x433ba6(0x1f0))/0x3+parseInt(_0x433ba6(0x245))/0x4*(parseInt(_0x433ba6(0x1df))/0x5)+-parseInt(_0x433ba6(0x236))/0x6+parseInt(_0x433ba6(0x1eb))/0x7+parseInt(_0x433ba6(0x1d2))/0x8;if(_0xa29c7===_0x3db517)break;else _0x5e90fa['push'](_0x5e90fa['shift']());}catch(_0x3e1d03){_0x5e90fa['push'](_0x5e90fa['shift']());}}}(a263_0x2fa0,0x51100));export const CLI_BIN_NAME=a263_0x4f94eb(0x1cc);export const CLI_DISPLAY_NAME=a263_0x4f94eb(0x1fc);export const NPM_PACKAGE_NAME='@lovrabet/rabetbase-cli';export const GLOBAL_FLAGS=[{'name':'appcode','meowKey':a263_0x4f94eb(0x219),'type':a263_0x4f94eb(0x1bd),'description':a263_0x4f94eb(0x21c),'hint':a263_0x4f94eb(0x1fa)},{'name':'app','meowKey':a263_0x4f94eb(0x20d),'type':a263_0x4f94eb(0x1bd),'description':a263_0x4f94eb(0x242),'hint':a263_0x4f94eb(0x248)},{'name':a263_0x4f94eb(0x220),'meowKey':'env','type':'string','description':'Environment','hint':a263_0x4f94eb(0x1ef)},{'name':'format','meowKey':a263_0x4f94eb(0x1c3),'type':'string','description':a263_0x4f94eb(0x1f2),'hint':a263_0x4f94eb(0x1e8)},{'name':'jq','meowKey':'jq','type':a263_0x4f94eb(0x1bd),'description':a263_0x4f94eb(0x21d),'hint':a263_0x4f94eb(0x1c2)},{'name':a263_0x4f94eb(0x23f),'meowKey':a263_0x4f94eb(0x1de),'type':'boolean','description':a263_0x4f94eb(0x1e2)},{'name':a263_0x4f94eb(0x1dd),'meowKey':a263_0x4f94eb(0x1dd),'type':a263_0x4f94eb(0x1c1),'description':a263_0x4f94eb(0x1ff)},{'name':a263_0x4f94eb(0x1ec),'meowKey':a263_0x4f94eb(0x237),'type':'boolean','description':'Force\x20non-interactive\x20mode\x20(CI)'},{'name':'global','meowKey':a263_0x4f94eb(0x1f5),'type':a263_0x4f94eb(0x1c1),'description':a263_0x4f94eb(0x214)},{'name':a263_0x4f94eb(0x20f),'meowKey':'project','type':a263_0x4f94eb(0x1c1),'description':'Use\x20project\x20config\x20scope'},{'name':'ci','meowKey':'ci','type':'boolean','description':a263_0x4f94eb(0x1be),'hidden':!![]},{'name':'help','meowKey':a263_0x4f94eb(0x20b),'type':a263_0x4f94eb(0x1c1),'description':a263_0x4f94eb(0x222)},{'name':a263_0x4f94eb(0x20e),'meowKey':'locale','type':'string','description':a263_0x4f94eb(0x23d),'hidden':!![],'hint':a263_0x4f94eb(0x206)},{'name':a263_0x4f94eb(0x1ca),'meowKey':'name','type':a263_0x4f94eb(0x1bd),'description':a263_0x4f94eb(0x1e3),'hidden':!![]},{'name':'title','meowKey':a263_0x4f94eb(0x1bb),'type':'string','description':a263_0x4f94eb(0x1d6),'hidden':!![]},{'name':a263_0x4f94eb(0x240),'meowKey':a263_0x4f94eb(0x240),'type':a263_0x4f94eb(0x1bd),'description':a263_0x4f94eb(0x218),'hidden':!![]},{'name':a263_0x4f94eb(0x23b),'meowKey':'topk','type':a263_0x4f94eb(0x1bd),'description':a263_0x4f94eb(0x1ed),'hidden':!![]},{'name':a263_0x4f94eb(0x229),'meowKey':'clear','type':'boolean','description':a263_0x4f94eb(0x200),'hidden':!![]},{'name':'watch','meowKey':'watch','type':a263_0x4f94eb(0x1c1),'description':a263_0x4f94eb(0x1dc),'hidden':!![]},{'name':'output','meowKey':a263_0x4f94eb(0x235),'type':a263_0x4f94eb(0x1bd),'description':'Output\x20path','hidden':!![]},{'name':a263_0x4f94eb(0x1b8),'meowKey':'params','type':'string','description':a263_0x4f94eb(0x1d4),'hidden':!![]},{'name':a263_0x4f94eb(0x231),'meowKey':a263_0x4f94eb(0x231),'type':a263_0x4f94eb(0x1bd),'description':a263_0x4f94eb(0x244),'hidden':!![]},{'name':'all','meowKey':a263_0x4f94eb(0x22c),'type':a263_0x4f94eb(0x1c1),'description':a263_0x4f94eb(0x1b7),'hidden':!![]},{'name':a263_0x4f94eb(0x1da),'meowKey':a263_0x4f94eb(0x22a),'type':'boolean','description':'Enable\x20Backend\x20Function\x20save','hidden':!![]},{'name':'id','meowKey':'id','type':a263_0x4f94eb(0x1bd),'description':a263_0x4f94eb(0x205),'hidden':!![]},{'name':a263_0x4f94eb(0x241),'meowKey':a263_0x4f94eb(0x241),'type':a263_0x4f94eb(0x1bd),'description':'Type\x20filter','hidden':!![]},{'name':a263_0x4f94eb(0x249),'meowKey':'file','type':'string','description':a263_0x4f94eb(0x1f1),'hidden':!![]},{'name':a263_0x4f94eb(0x215),'meowKey':a263_0x4f94eb(0x1e1),'type':a263_0x4f94eb(0x1bd),'description':a263_0x4f94eb(0x22f),'hidden':!![]},{'name':a263_0x4f94eb(0x1fb),'meowKey':'flowName','type':'string','description':a263_0x4f94eb(0x1d5),'hidden':!![]},{'name':a263_0x4f94eb(0x1ce),'meowKey':'flowStatus','type':a263_0x4f94eb(0x1bd),'description':a263_0x4f94eb(0x1c0),'hidden':!![]},{'name':a263_0x4f94eb(0x212),'meowKey':a263_0x4f94eb(0x1c4),'type':a263_0x4f94eb(0x1bd),'description':a263_0x4f94eb(0x1b6),'hidden':!![]},{'name':a263_0x4f94eb(0x1ba),'meowKey':a263_0x4f94eb(0x230),'type':a263_0x4f94eb(0x1bd),'description':'Dataset\x20code','hidden':!![]},{'name':'sqlcode','meowKey':a263_0x4f94eb(0x1fe),'type':a263_0x4f94eb(0x1bd),'description':'SQL\x20code','hidden':!![]},{'name':a263_0x4f94eb(0x1bf),'meowKey':a263_0x4f94eb(0x216),'type':'string','description':'SQL\x20name','hidden':!![]},{'name':a263_0x4f94eb(0x213),'meowKey':a263_0x4f94eb(0x213),'type':a263_0x4f94eb(0x1bd),'description':'SQL\x20name','hidden':!![]},{'name':a263_0x4f94eb(0x1c7),'meowKey':a263_0x4f94eb(0x1cb),'type':a263_0x4f94eb(0x1bd),'description':a263_0x4f94eb(0x225),'hidden':!![]},{'name':a263_0x4f94eb(0x232),'meowKey':a263_0x4f94eb(0x232),'type':'string','description':a263_0x4f94eb(0x225),'hidden':!![]},{'name':a263_0x4f94eb(0x21e),'meowKey':a263_0x4f94eb(0x21e),'type':a263_0x4f94eb(0x1bd),'description':a263_0x4f94eb(0x209),'hidden':!![]},{'name':'description-file','meowKey':a263_0x4f94eb(0x1d3),'type':'string','description':'Description\x20file','hidden':!![]},{'name':a263_0x4f94eb(0x23e),'meowKey':'page','type':'string','description':'Page\x20number','hidden':!![]},{'name':'page-size','meowKey':a263_0x4f94eb(0x1f3),'type':a263_0x4f94eb(0x1bd),'description':'Page\x20size','hidden':!![]},{'name':a263_0x4f94eb(0x202),'meowKey':a263_0x4f94eb(0x202),'type':a263_0x4f94eb(0x1bd),'description':a263_0x4f94eb(0x204),'hidden':!![]},{'name':a263_0x4f94eb(0x1d7),'meowKey':a263_0x4f94eb(0x1d7),'type':a263_0x4f94eb(0x1bd),'description':'Keyword\x20filter','hidden':!![]},{'name':a263_0x4f94eb(0x233),'meowKey':a263_0x4f94eb(0x233),'type':'string','description':a263_0x4f94eb(0x221),'hidden':!![]},{'name':'sql','meowKey':a263_0x4f94eb(0x1d0),'type':a263_0x4f94eb(0x1bd),'description':a263_0x4f94eb(0x223),'hidden':!![]},{'name':a263_0x4f94eb(0x1f6),'meowKey':'schemas','type':a263_0x4f94eb(0x1bd),'description':a263_0x4f94eb(0x1ee),'hidden':!![]},{'name':'operation','meowKey':a263_0x4f94eb(0x238),'type':a263_0x4f94eb(0x1bd),'description':a263_0x4f94eb(0x1c8),'hidden':!![]},{'name':a263_0x4f94eb(0x203),'meowKey':'target','type':'string','description':a263_0x4f94eb(0x208),'hidden':!![]},{'name':'skip-imports','meowKey':a263_0x4f94eb(0x1c6),'type':a263_0x4f94eb(0x1c1),'description':a263_0x4f94eb(0x224),'hidden':!![]},{'name':a263_0x4f94eb(0x1db),'meowKey':a263_0x4f94eb(0x1db),'type':'string','description':a263_0x4f94eb(0x24a),'hidden':!![]},{'name':a263_0x4f94eb(0x1f7),'meowKey':a263_0x4f94eb(0x1f7),'type':a263_0x4f94eb(0x1bd),'description':'Config\x20value','hidden':!![]},{'name':a263_0x4f94eb(0x1d8),'meowKey':'tags','type':a263_0x4f94eb(0x1bd),'description':a263_0x4f94eb(0x1e7),'hidden':!![]},{'name':a263_0x4f94eb(0x1f8),'meowKey':a263_0x4f94eb(0x1f8),'type':a263_0x4f94eb(0x1c1),'description':'Read\x20value\x20from\x20stdin','hidden':!![]},{'name':'from-env','meowKey':a263_0x4f94eb(0x21a),'type':a263_0x4f94eb(0x1bd),'description':a263_0x4f94eb(0x1bc),'hidden':!![]},{'name':a263_0x4f94eb(0x246),'meowKey':a263_0x4f94eb(0x246),'type':a263_0x4f94eb(0x1c1),'description':a263_0x4f94eb(0x1e0),'hidden':!![]},{'name':a263_0x4f94eb(0x1c5),'meowKey':a263_0x4f94eb(0x1c5),'type':a263_0x4f94eb(0x1c1),'description':a263_0x4f94eb(0x1e6),'hidden':!![]},{'name':a263_0x4f94eb(0x1b9),'meowKey':a263_0x4f94eb(0x1b9),'type':'boolean','description':a263_0x4f94eb(0x201),'hidden':!![]},{'name':a263_0x4f94eb(0x211),'meowKey':a263_0x4f94eb(0x211),'type':a263_0x4f94eb(0x1c1),'description':a263_0x4f94eb(0x1f9),'hidden':!![]},{'name':'verbose','meowKey':a263_0x4f94eb(0x20a),'type':a263_0x4f94eb(0x1c1),'description':a263_0x4f94eb(0x1e9),'hidden':!![]},{'name':a263_0x4f94eb(0x239),'meowKey':a263_0x4f94eb(0x1f4),'type':'string','description':a263_0x4f94eb(0x228),'hidden':!![]},{'name':a263_0x4f94eb(0x22d),'meowKey':a263_0x4f94eb(0x22d),'type':a263_0x4f94eb(0x1bd),'description':a263_0x4f94eb(0x1d1),'hidden':!![]},{'name':a263_0x4f94eb(0x217),'meowKey':a263_0x4f94eb(0x20c),'type':a263_0x4f94eb(0x1bd),'description':a263_0x4f94eb(0x234),'hidden':!![]},{'name':a263_0x4f94eb(0x1e5),'meowKey':a263_0x4f94eb(0x1e5),'type':a263_0x4f94eb(0x1bd),'description':a263_0x4f94eb(0x227),'hidden':!![]},{'name':a263_0x4f94eb(0x1cd),'meowKey':a263_0x4f94eb(0x210),'type':a263_0x4f94eb(0x1bd),'description':a263_0x4f94eb(0x247),'hidden':!![]},{'name':a263_0x4f94eb(0x1cf),'meowKey':a263_0x4f94eb(0x1fd),'type':'string','description':a263_0x4f94eb(0x22b),'hidden':!![]},{'name':'expected-children-count','meowKey':'expectedChildrenCount','type':a263_0x4f94eb(0x1bd),'description':'Expected\x20current\x20child\x20count','hidden':!![]},{'name':'menu-ids','meowKey':a263_0x4f94eb(0x23c),'type':'string','description':'Comma-separated\x20menu\x20IDs','hidden':!![]},{'name':a263_0x4f94eb(0x1ea),'meowKey':a263_0x4f94eb(0x207),'type':'string','description':'Asynchronous\x20task\x20ID','hidden':!![]},{'name':a263_0x4f94eb(0x23a),'meowKey':'operationType','type':a263_0x4f94eb(0x1bd),'description':a263_0x4f94eb(0x1c8),'hidden':!![]},{'name':a263_0x4f94eb(0x22e),'meowKey':a263_0x4f94eb(0x243),'type':a263_0x4f94eb(0x1bd),'description':'Function\x20node','hidden':!![]},{'name':a263_0x4f94eb(0x1e4),'meowKey':a263_0x4f94eb(0x1e4),'type':'string','description':a263_0x4f94eb(0x1c9),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a263_0x4f94eb(0x219),a263_0x4f94eb(0x20d),a263_0x4f94eb(0x220),a263_0x4f94eb(0x1c3),'jq',a263_0x4f94eb(0x23f),a263_0x4f94eb(0x1dd),a263_0x4f94eb(0x1ec),'ci']);function a263_0x59bf(_0x1a7a39,_0x532e60){_0x1a7a39=_0x1a7a39-0x1b6;const _0x2fa0ea=a263_0x2fa0();let _0x59bfc4=_0x2fa0ea[_0x1a7a39];return _0x59bfc4;}export function buildMeowFlags(){const _0x327507=a263_0x4f94eb;return Object['fromEntries'](GLOBAL_FLAGS[_0x327507(0x1d9)](_0x2e7720=>[_0x2e7720[_0x327507(0x21b)],{'type':_0x2e7720[_0x327507(0x241)]}]));}
|
|
1
|
+
const a263_0x10ffec=a263_0x5833;function a263_0x1ccb(){const _0x620271=['params','codes','string','SQL\x20code','parentId','Use\x20remote','datasetCode','force','SQL\x20name','file','help','expectedChildrenCount','180PCtIpm','Dataset\x20code','Flow\x20status','Keyword\x20filter','rabetbase','DB\x20ID','sort','Clear','tags','datasetcode','topk','App\x20locale\x20(workspace\x20pass-through;\x20not\x20CLI\x20language)','name','menuIds','Target\x20path','Alias\x20for\x20--non-interactive','fromEntries','expect-path','Tags','keyword','taskId','Skip\x20import\x20generation','watch','4233470QNOhuB','flow-status','2351525IFqdbs','Page\x20number','Page\x20size','query','Show\x20help','Description\x20file','yes','fromEnv','app','confirm','Expected\x20current\x20parent\x20menu\x20id','Title','<expr>','8bvANrG','global','appcode','label','all','dbid','page','Environment','Apply\x20to\x20all','skipImports','enable-bff-save','Schemas','task-id','124hdPvaV','expectParentId','boolean','Use\x20global\x20config\x20scope','@lovrabet/rabetbase-cli','env','Config\x20key','value','Operation\x20type','output','expectedCount','Output\x20format','key','Force\x20non-interactive\x20mode\x20(CI)','Select\x20app\x20profile\x20by\x20name','Menu\x20label','Enable\x20Backend\x20Function\x20save','target','9OfacYT','Config\x20value','Rabetbase\x20CLI','function-node','Comma-separated\x20menu\x20IDs','description-file','4367272IKWGne','schemas','sqlname','Function\x20node','nonInteractive','dbId','pageSize','Flow\x20name','1150850tMBQxD','expectPath','title','Verbose\x20output','expected-children-count','pagesize','Force\x20overwrite','verbose','dataset-code','flow-type','zh-CN\x20|\x20en-US','remote','dry-run','Expected\x20current\x20child\x20count','Code\x20filter','parent-id','<code>','expected-count','Name','Flow\x20code','description','non-interactive','project','flowCode','Parent\x20menu\x20id','Reveal\x20sensitive\x20value','Flow\x20type','Expected\x20affected\x20count','Type\x20filter','Skip\x20confirmation\x20for\x20high-risk\x20writes','SQL\x20string','clear','format','flow-name','JSON\x20params','sqlcode','122999YjGcJD','reveal','Comma-separated\x20metadata\x20codes','Output\x20path','operation','Menu\x20sort\x20value','locale','25730ELGlkq','22164Fomsqj','type','sql','code','Expected\x20current\x20menu\x20path','meowKey','sql-name'];a263_0x1ccb=function(){return _0x620271;};return a263_0x1ccb();}function a263_0x5833(_0x57c2ab,_0x2de8d6){_0x57c2ab=_0x57c2ab-0x127;const _0x1ccb67=a263_0x1ccb();let _0x583378=_0x1ccb67[_0x57c2ab];return _0x583378;}(function(_0x3897e2,_0x51f29e){const _0x13ea41=a263_0x5833,_0x396b2e=_0x3897e2();while(!![]){try{const _0x145ded=parseInt(_0x13ea41(0x137))/0x1+-parseInt(_0x13ea41(0x1a5))/0x2+-parseInt(_0x13ea41(0x13f))/0x3*(parseInt(_0x13ea41(0x185))/0x4)+-parseInt(_0x13ea41(0x13e))/0x5*(-parseInt(_0x13ea41(0x152))/0x6)+-parseInt(_0x13ea41(0x19d))/0x7*(-parseInt(_0x13ea41(0x178))/0x8)+-parseInt(_0x13ea41(0x197))/0x9*(-parseInt(_0x13ea41(0x169))/0xa)+parseInt(_0x13ea41(0x16b))/0xb;if(_0x145ded===_0x51f29e)break;else _0x396b2e['push'](_0x396b2e['shift']());}catch(_0x4d303b){_0x396b2e['push'](_0x396b2e['shift']());}}}(a263_0x1ccb,0xb32f8));export const CLI_BIN_NAME=a263_0x10ffec(0x156);export const CLI_DISPLAY_NAME=a263_0x10ffec(0x199);export const NPM_PACKAGE_NAME=a263_0x10ffec(0x189);export const GLOBAL_FLAGS=[{'name':'appcode','meowKey':a263_0x10ffec(0x17a),'type':a263_0x10ffec(0x148),'description':'Override\x20appcode','hint':a263_0x10ffec(0x1b5)},{'name':a263_0x10ffec(0x173),'meowKey':a263_0x10ffec(0x173),'type':a263_0x10ffec(0x148),'description':a263_0x10ffec(0x193),'hint':'<name>'},{'name':a263_0x10ffec(0x18a),'meowKey':'env','type':'string','description':a263_0x10ffec(0x17f),'hint':'production\x20|\x20daily'},{'name':a263_0x10ffec(0x133),'meowKey':a263_0x10ffec(0x133),'type':a263_0x10ffec(0x148),'description':a263_0x10ffec(0x190),'hint':'json\x20|\x20pretty\x20|\x20compress'},{'name':'jq','meowKey':'jq','type':'string','description':'Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','hint':a263_0x10ffec(0x177)},{'name':a263_0x10ffec(0x1b1),'meowKey':'dryRun','type':a263_0x10ffec(0x187),'description':'Preview\x20operation\x20without\x20executing'},{'name':a263_0x10ffec(0x171),'meowKey':'yes','type':a263_0x10ffec(0x187),'description':a263_0x10ffec(0x130)},{'name':a263_0x10ffec(0x128),'meowKey':a263_0x10ffec(0x1a1),'type':a263_0x10ffec(0x187),'description':a263_0x10ffec(0x192)},{'name':a263_0x10ffec(0x179),'meowKey':a263_0x10ffec(0x179),'type':'boolean','description':a263_0x10ffec(0x188)},{'name':a263_0x10ffec(0x129),'meowKey':'project','type':a263_0x10ffec(0x187),'description':'Use\x20project\x20config\x20scope'},{'name':'ci','meowKey':'ci','type':a263_0x10ffec(0x187),'description':a263_0x10ffec(0x161),'hidden':!![]},{'name':a263_0x10ffec(0x150),'meowKey':a263_0x10ffec(0x150),'type':a263_0x10ffec(0x187),'description':a263_0x10ffec(0x16f)},{'name':'locale','meowKey':a263_0x10ffec(0x13d),'type':'string','description':a263_0x10ffec(0x15d),'hidden':!![],'hint':a263_0x10ffec(0x1af)},{'name':a263_0x10ffec(0x15e),'meowKey':'name','type':a263_0x10ffec(0x148),'description':a263_0x10ffec(0x1b7),'hidden':!![]},{'name':'title','meowKey':a263_0x10ffec(0x1a7),'type':a263_0x10ffec(0x148),'description':a263_0x10ffec(0x176),'hidden':!![]},{'name':a263_0x10ffec(0x16e),'meowKey':a263_0x10ffec(0x16e),'type':'string','description':'Search\x20query','hidden':!![]},{'name':'topk','meowKey':a263_0x10ffec(0x15c),'type':a263_0x10ffec(0x148),'description':'Maximum\x20search\x20hits','hidden':!![]},{'name':a263_0x10ffec(0x132),'meowKey':'clear','type':a263_0x10ffec(0x187),'description':a263_0x10ffec(0x159),'hidden':!![]},{'name':a263_0x10ffec(0x168),'meowKey':'watch','type':a263_0x10ffec(0x187),'description':'Watch\x20mode','hidden':!![]},{'name':a263_0x10ffec(0x18e),'meowKey':'output','type':a263_0x10ffec(0x148),'description':a263_0x10ffec(0x13a),'hidden':!![]},{'name':a263_0x10ffec(0x146),'meowKey':a263_0x10ffec(0x146),'type':'string','description':a263_0x10ffec(0x135),'hidden':!![]},{'name':a263_0x10ffec(0x15b),'meowKey':'datasetcode','type':'string','description':'Dataset\x20code','hidden':!![]},{'name':a263_0x10ffec(0x17c),'meowKey':'all','type':a263_0x10ffec(0x187),'description':a263_0x10ffec(0x180),'hidden':!![]},{'name':a263_0x10ffec(0x182),'meowKey':'enableBffSave','type':a263_0x10ffec(0x187),'description':a263_0x10ffec(0x195),'hidden':!![]},{'name':'id','meowKey':'id','type':a263_0x10ffec(0x148),'description':'Record\x20ID','hidden':!![]},{'name':a263_0x10ffec(0x140),'meowKey':a263_0x10ffec(0x140),'type':a263_0x10ffec(0x148),'description':a263_0x10ffec(0x12f),'hidden':!![]},{'name':a263_0x10ffec(0x14f),'meowKey':a263_0x10ffec(0x14f),'type':a263_0x10ffec(0x148),'description':'File\x20path','hidden':!![]},{'name':'flow-code','meowKey':a263_0x10ffec(0x12a),'type':'string','description':a263_0x10ffec(0x1b8),'hidden':!![]},{'name':a263_0x10ffec(0x134),'meowKey':'flowName','type':a263_0x10ffec(0x148),'description':a263_0x10ffec(0x1a4),'hidden':!![]},{'name':a263_0x10ffec(0x16a),'meowKey':'flowStatus','type':a263_0x10ffec(0x148),'description':a263_0x10ffec(0x154),'hidden':!![]},{'name':a263_0x10ffec(0x1ae),'meowKey':'flowType','type':'string','description':a263_0x10ffec(0x12d),'hidden':!![]},{'name':a263_0x10ffec(0x1ad),'meowKey':a263_0x10ffec(0x14c),'type':'string','description':a263_0x10ffec(0x153),'hidden':!![]},{'name':a263_0x10ffec(0x136),'meowKey':a263_0x10ffec(0x136),'type':a263_0x10ffec(0x148),'description':a263_0x10ffec(0x149),'hidden':!![]},{'name':a263_0x10ffec(0x145),'meowKey':'sqlName','type':a263_0x10ffec(0x148),'description':a263_0x10ffec(0x14e),'hidden':!![]},{'name':a263_0x10ffec(0x19f),'meowKey':a263_0x10ffec(0x19f),'type':a263_0x10ffec(0x148),'description':a263_0x10ffec(0x14e),'hidden':!![]},{'name':'db-id','meowKey':a263_0x10ffec(0x1a2),'type':'string','description':'DB\x20ID','hidden':!![]},{'name':a263_0x10ffec(0x17d),'meowKey':a263_0x10ffec(0x17d),'type':a263_0x10ffec(0x148),'description':a263_0x10ffec(0x157),'hidden':!![]},{'name':'description','meowKey':a263_0x10ffec(0x127),'type':'string','description':'Description','hidden':!![]},{'name':a263_0x10ffec(0x19c),'meowKey':'descriptionFile','type':a263_0x10ffec(0x148),'description':a263_0x10ffec(0x170),'hidden':!![]},{'name':a263_0x10ffec(0x17e),'meowKey':a263_0x10ffec(0x17e),'type':a263_0x10ffec(0x148),'description':a263_0x10ffec(0x16c),'hidden':!![]},{'name':'page-size','meowKey':a263_0x10ffec(0x1a3),'type':a263_0x10ffec(0x148),'description':a263_0x10ffec(0x16d),'hidden':!![]},{'name':a263_0x10ffec(0x1aa),'meowKey':a263_0x10ffec(0x1aa),'type':a263_0x10ffec(0x148),'description':a263_0x10ffec(0x16d),'hidden':!![]},{'name':a263_0x10ffec(0x165),'meowKey':'keyword','type':a263_0x10ffec(0x148),'description':a263_0x10ffec(0x155),'hidden':!![]},{'name':a263_0x10ffec(0x142),'meowKey':a263_0x10ffec(0x142),'type':a263_0x10ffec(0x148),'description':a263_0x10ffec(0x1b3),'hidden':!![]},{'name':a263_0x10ffec(0x141),'meowKey':a263_0x10ffec(0x141),'type':a263_0x10ffec(0x148),'description':a263_0x10ffec(0x131),'hidden':!![]},{'name':a263_0x10ffec(0x19e),'meowKey':a263_0x10ffec(0x19e),'type':a263_0x10ffec(0x148),'description':a263_0x10ffec(0x183),'hidden':!![]},{'name':'operation','meowKey':a263_0x10ffec(0x13b),'type':a263_0x10ffec(0x148),'description':a263_0x10ffec(0x18d),'hidden':!![]},{'name':a263_0x10ffec(0x196),'meowKey':a263_0x10ffec(0x196),'type':a263_0x10ffec(0x148),'description':a263_0x10ffec(0x160),'hidden':!![]},{'name':'skip-imports','meowKey':a263_0x10ffec(0x181),'type':a263_0x10ffec(0x187),'description':a263_0x10ffec(0x167),'hidden':!![]},{'name':'key','meowKey':a263_0x10ffec(0x191),'type':a263_0x10ffec(0x148),'description':a263_0x10ffec(0x18b),'hidden':!![]},{'name':a263_0x10ffec(0x18c),'meowKey':a263_0x10ffec(0x18c),'type':'string','description':a263_0x10ffec(0x198),'hidden':!![]},{'name':a263_0x10ffec(0x15a),'meowKey':a263_0x10ffec(0x15a),'type':a263_0x10ffec(0x148),'description':a263_0x10ffec(0x164),'hidden':!![]},{'name':'stdin','meowKey':'stdin','type':'boolean','description':'Read\x20value\x20from\x20stdin','hidden':!![]},{'name':'from-env','meowKey':a263_0x10ffec(0x172),'type':a263_0x10ffec(0x148),'description':'Read\x20value\x20from\x20environment\x20variable','hidden':!![]},{'name':a263_0x10ffec(0x138),'meowKey':'reveal','type':a263_0x10ffec(0x187),'description':a263_0x10ffec(0x12c),'hidden':!![]},{'name':a263_0x10ffec(0x14d),'meowKey':a263_0x10ffec(0x14d),'type':a263_0x10ffec(0x187),'description':a263_0x10ffec(0x1ab),'hidden':!![]},{'name':a263_0x10ffec(0x174),'meowKey':a263_0x10ffec(0x174),'type':a263_0x10ffec(0x187),'description':'Confirm\x20destructive\x20action','hidden':!![]},{'name':a263_0x10ffec(0x1b0),'meowKey':a263_0x10ffec(0x1b0),'type':'boolean','description':a263_0x10ffec(0x14b),'hidden':!![]},{'name':a263_0x10ffec(0x1ac),'meowKey':a263_0x10ffec(0x1ac),'type':'boolean','description':a263_0x10ffec(0x1a8),'hidden':!![]},{'name':a263_0x10ffec(0x1b6),'meowKey':a263_0x10ffec(0x18f),'type':a263_0x10ffec(0x148),'description':a263_0x10ffec(0x12e),'hidden':!![]},{'name':a263_0x10ffec(0x17b),'meowKey':a263_0x10ffec(0x17b),'type':a263_0x10ffec(0x148),'description':a263_0x10ffec(0x194),'hidden':!![]},{'name':a263_0x10ffec(0x1b4),'meowKey':a263_0x10ffec(0x14a),'type':'string','description':a263_0x10ffec(0x12b),'hidden':!![]},{'name':a263_0x10ffec(0x158),'meowKey':'sort','type':a263_0x10ffec(0x148),'description':a263_0x10ffec(0x13c),'hidden':!![]},{'name':'expect-parent-id','meowKey':a263_0x10ffec(0x186),'type':a263_0x10ffec(0x148),'description':a263_0x10ffec(0x175),'hidden':!![]},{'name':a263_0x10ffec(0x163),'meowKey':a263_0x10ffec(0x1a6),'type':a263_0x10ffec(0x148),'description':a263_0x10ffec(0x143),'hidden':!![]},{'name':a263_0x10ffec(0x1a9),'meowKey':a263_0x10ffec(0x151),'type':a263_0x10ffec(0x148),'description':a263_0x10ffec(0x1b2),'hidden':!![]},{'name':'menu-ids','meowKey':a263_0x10ffec(0x15f),'type':a263_0x10ffec(0x148),'description':a263_0x10ffec(0x19b),'hidden':!![]},{'name':a263_0x10ffec(0x184),'meowKey':a263_0x10ffec(0x166),'type':a263_0x10ffec(0x148),'description':'Asynchronous\x20task\x20ID','hidden':!![]},{'name':'operation-type','meowKey':'operationType','type':a263_0x10ffec(0x148),'description':'Operation\x20type','hidden':!![]},{'name':a263_0x10ffec(0x19a),'meowKey':'functionNode','type':'string','description':a263_0x10ffec(0x1a0),'hidden':!![]},{'name':a263_0x10ffec(0x147),'meowKey':'codes','type':a263_0x10ffec(0x148),'description':a263_0x10ffec(0x139),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set(['appcode',a263_0x10ffec(0x173),a263_0x10ffec(0x18a),a263_0x10ffec(0x133),'jq',a263_0x10ffec(0x1b1),a263_0x10ffec(0x171),a263_0x10ffec(0x128),'ci']);export function buildMeowFlags(){const _0xa7714b=a263_0x10ffec;return Object[_0xa7714b(0x162)](GLOBAL_FLAGS['map'](_0x258696=>[_0x258696[_0xa7714b(0x144)],{'type':_0x258696['type']}]));}
|
package/lib/constant/defaults.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a264_0x2925(_0x586ccd,_0x25596e){_0x586ccd=_0x586ccd-0x9f;const _0x57aab0=a264_0x57aa();let _0x2925a5=_0x57aab0[_0x586ccd];return _0x2925a5;}const a264_0x5351fb=a264_0x2925;(function(_0x2e8672,_0x14f936){const _0x16b783=a264_0x2925,_0x5ada4b=_0x2e8672();while(!![]){try{const _0x4abd51=-parseInt(_0x16b783(0x9f))/0x1+-parseInt(_0x16b783(0xa2))/0x2+-parseInt(_0x16b783(0xa6))/0x3+parseInt(_0x16b783(0xa9))/0x4*(parseInt(_0x16b783(0xaa))/0x5)+parseInt(_0x16b783(0xa4))/0x6*(parseInt(_0x16b783(0xab))/0x7)+parseInt(_0x16b783(0xa0))/0x8*(parseInt(_0x16b783(0xa3))/0x9)+parseInt(_0x16b783(0xa5))/0xa;if(_0x4abd51===_0x14f936)break;else _0x5ada4b['push'](_0x5ada4b['shift']());}catch(_0x25e347){_0x5ada4b['push'](_0x5ada4b['shift']());}}}(a264_0x57aa,0x4b637));import{DEFAULT_API_DIR}from'../constant/paths.js';export const DEFAULT_CONFIG_VALUES={'env':a264_0x5351fb(0xa1),'format':a264_0x5351fb(0xa8),'locale':a264_0x5351fb(0xa7),'riskLevel':a264_0x5351fb(0xac),'apiDir':DEFAULT_API_DIR};function a264_0x57aa(){const _0x3fea4e=['49049BRquVc','write','519907SycNbo','1652552aujKkW','production','692834qFnhcv','18ChhUtd','252MkQmcA','4546720HYIPCJ','1307883jBrqbY','en-US','compress','4Nzilye','2244860uwRMiZ'];a264_0x57aa=function(){return _0x3fea4e;};return a264_0x57aa();}export const DEFAULT_COMMAND_OUTPUT_FORMAT=a264_0x5351fb(0xa8);
|
package/lib/constant/domain.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a265_0x5a71b4=a265_0xbd05;function a265_0x2371(){const _0x18c44c=['cdn','appDomain','50fPbPEs','runtimeDomain','region','apiDomain','skillDomain','10159541xcbjTk','userDomain','hostname','6756CKleEJ','49162enlKJz','localDomain','9xnAcZU','serviceDomains','runtime','app','24hCWkjl','allowOfficialKbServiceDefault','production','105690OhqbWC','api','kbDomain','kbService','daily','trim','/web-app/app/','1817618jaWcFQ','user','156uSfuqo','origin','4506944GeYaYE','5400070zUvvrZ','657ByGXbZ'];a265_0x2371=function(){return _0x18c44c;};return a265_0x2371();}(function(_0x2527f2,_0xf5dce3){const _0xc36112=a265_0xbd05,_0x65e978=_0x2527f2();while(!![]){try{const _0x315b72=-parseInt(_0xc36112(0x1db))/0x1*(parseInt(_0xc36112(0x1d2))/0x2)+-parseInt(_0xc36112(0x1cf))/0x3*(parseInt(_0xc36112(0x1da))/0x4)+-parseInt(_0xc36112(0x1e4))/0x5*(parseInt(_0xc36112(0x1cb))/0x6)+parseInt(_0xc36112(0x1d7))/0x7+parseInt(_0xc36112(0x1cd))/0x8+-parseInt(_0xc36112(0x1dd))/0x9*(-parseInt(_0xc36112(0x1ce))/0xa)+parseInt(_0xc36112(0x1c9))/0xb*(parseInt(_0xc36112(0x1e1))/0xc);if(_0x315b72===_0xf5dce3)break;else _0x65e978['push'](_0x65e978['shift']());}catch(_0x5ae0ff){_0x65e978['push'](_0x65e978['shift']());}}}(a265_0x2371,0xb3dad));import{getEnv,isProduction}from'../constant/env.js';function a265_0xbd05(_0x7218d7,_0x55f38f){_0x7218d7=_0x7218d7-0x1c9;const _0x2371dd=a265_0x2371();let _0xbd05e=_0x2371dd[_0x7218d7];return _0xbd05e;}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 _0x117789=a265_0xbd05,_0xeaa5e9=getOfficialRoutingProfile(activeRegion);return isProduction(getEnv())?_0xeaa5e9[_0x117789(0x1de)][_0x117789(0x1e3)]:_0xeaa5e9[_0x117789(0x1de)][_0x117789(0x1e8)]??_0xeaa5e9['serviceDomains']['production'];}export function initDomains(_0x34b341){const _0x5a03cc=a265_0xbd05;customApiDomain=_0x34b341?.[_0x5a03cc(0x1d5)],customUserDomain=_0x34b341?.[_0x5a03cc(0x1d8)],customRuntimeDomain=_0x34b341?.[_0x5a03cc(0x1d3)],customSkillDomain=_0x34b341?.[_0x5a03cc(0x1d6)],customKbDomain=_0x34b341?.[_0x5a03cc(0x1e6)],customKbServiceDomain=_0x34b341?.['kbServiceDomain'],allowOfficialKbServiceDefault=_0x34b341?.[_0x5a03cc(0x1e2)]??!![],customAppDomain=_0x34b341?.[_0x5a03cc(0x1d1)],customLocalDomain=_0x34b341?.[_0x5a03cc(0x1dc)],customCertificateDomain=_0x34b341?.['certificateDomain'],customCdn=_0x34b341?.[_0x5a03cc(0x1d0)],activeRegion=_0x34b341?.[_0x5a03cc(0x1d4)]??DEFAULT_LOVRABET_REGION;}export const getUserDomain=()=>customUserDomain||getActiveRegionDomains()[a265_0x5a71b4(0x1ca)];export const getApiDomain=()=>customApiDomain||getActiveRegionDomains()[a265_0x5a71b4(0x1e5)];export const getRuntimeDomain=()=>customRuntimeDomain||getActiveRegionDomains()[a265_0x5a71b4(0x1df)];export const getSkillDomain=()=>customSkillDomain||getActiveRegionDomains()['skill'];export const getKbDomain=()=>customKbDomain||customApiDomain||getActiveRegionDomains()['kb'];export const getKbServiceDomain=()=>{const _0x2e1745=a265_0x5a71b4;if(customKbServiceDomain)return customKbServiceDomain;if(!allowOfficialKbServiceDefault)return undefined;return getActiveRegionDomains()[_0x2e1745(0x1e7)];};export const getAppDomain=()=>customAppDomain||getActiveRegionDomains()[a265_0x5a71b4(0x1e0)];export const getActiveRegion=()=>activeRegion;export const getLocalDomain=()=>customLocalDomain;export const getCertificateDomain=()=>customCertificateDomain;export const getActiveCdn=()=>customCdn||getOfficialRoutingCdn(activeRegion);export function isIndependentDeployment(){return!!(customApiDomain||customUserDomain||customRuntimeDomain||customSkillDomain||customKbDomain||customAppDomain||customLocalDomain||customCertificateDomain);}export function getSdkClientRoutingConfig(){const _0x528fb8=a265_0x5a71b4;if(customRuntimeDomain&&customRuntimeDomain!==getActiveRegionDomains()[_0x528fb8(0x1df)])return{'runtimeDomain':customRuntimeDomain};if(activeRegion!==DEFAULT_LOVRABET_REGION)return{'runtimeDomain':getRuntimeDomain()};return{};}export const getAppBaseUrl=_0x681dce=>{const _0x11e337=a265_0x5a71b4,_0x422f52=encodeURIComponent(_0x681dce[_0x11e337(0x1e9)]());return isProduction(getEnv())?getAppDomain()+'/app/'+_0x422f52:getAppDomain()+_0x11e337(0x1ea)+_0x422f52;};export const getPublishedAppDomain=_0x5414b5=>{const _0x568b48=a265_0x5a71b4,_0x337684=new URL(getAppDomain());return _0x337684['hostname']=_0x5414b5['trim']()+'.'+_0x337684[_0x568b48(0x1d9)],_0x337684[_0x568b48(0x1cc)];};
|
package/lib/constant/env.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a266_0x3c2cbf=a266_0x34de;(function(_0x9b132b,_0x5cfaa4){const _0x4483f2=a266_0x34de,_0x5b6d4a=_0x9b132b();while(!![]){try{const _0xfb339a=-parseInt(_0x4483f2(0x131))/0x1+-parseInt(_0x4483f2(0x133))/0x2+-parseInt(_0x4483f2(0x134))/0x3*(parseInt(_0x4483f2(0x13a))/0x4)+parseInt(_0x4483f2(0x138))/0x5+-parseInt(_0x4483f2(0x132))/0x6*(-parseInt(_0x4483f2(0x13b))/0x7)+parseInt(_0x4483f2(0x13c))/0x8*(parseInt(_0x4483f2(0x13f))/0x9)+parseInt(_0x4483f2(0x130))/0xa*(parseInt(_0x4483f2(0x13d))/0xb);if(_0xfb339a===_0x5cfaa4)break;else _0x5b6d4a['push'](_0x5b6d4a['shift']());}catch(_0x7db329){_0x5b6d4a['push'](_0x5b6d4a['shift']());}}}(a266_0x3d5e,0x41201));export const RABETBASE_ENV_VALUES=[a266_0x3c2cbf(0x136),'daily'];export function normalizeEnv(_0x2853fa){const _0x416ced=a266_0x3c2cbf;return _0x2853fa===_0x416ced(0x135)?_0x416ced(0x136):_0x2853fa;}export function isProduction(_0x42314d){const _0x49702b=a266_0x3c2cbf;return normalizeEnv(_0x42314d)===_0x49702b(0x136);}export function isDaily(_0x19cc58){const _0x44f978=a266_0x3c2cbf;return normalizeEnv(_0x19cc58)===_0x44f978(0x13e);}export function isDev(_0x4e8015){const _0x31f7f4=a266_0x3c2cbf,_0xdac048=normalizeEnv(_0x4e8015);return _0xdac048===_0x31f7f4(0x137)||_0xdac048===_0x31f7f4(0x139);}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||a266_0x3c2cbf(0x136));function a266_0x34de(_0x20f4fc,_0x5c5dee){_0x20f4fc=_0x20f4fc-0x130;const _0x3d5e72=a266_0x3d5e();let _0x34de0e=_0x3d5e72[_0x20f4fc];return _0x34de0e;}export function getEnv(){return env;}export function initEnv(_0x3cc6bd){env=normalizeEnv(_0x3cc6bd);}function a266_0x3d5e(){const _0x4b9e67=['663381JHCxQe','online','production','development','1156900iveXZI','dev','4eQBtex','14qCFCJZ','601288UImsmL','44IXFxFJ','daily','45XAsNxr','1094630wWynjg','221798qKxPog','170952HuSEtn','784686YakOdf'];a266_0x3d5e=function(){return _0x4b9e67;};return a266_0x3d5e();}
|
package/lib/constant/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a267_0x74b7f7=a267_0x666a;function a267_0x666a(_0x20c0df,_0x307342){_0x20c0df=_0x20c0df-0x1b6;const _0x2baec6=a267_0x2bae();let _0x666acd=_0x2baec6[_0x20c0df];return _0x666acd;}(function(_0x557e67,_0x22cee4){const _0x2d0def=a267_0x666a,_0x31f834=_0x557e67();while(!![]){try{const _0x1e1849=parseInt(_0x2d0def(0x1bc))/0x1+-parseInt(_0x2d0def(0x1c3))/0x2*(parseInt(_0x2d0def(0x1b6))/0x3)+-parseInt(_0x2d0def(0x1c2))/0x4*(parseInt(_0x2d0def(0x1c1))/0x5)+-parseInt(_0x2d0def(0x1c0))/0x6*(-parseInt(_0x2d0def(0x1bf))/0x7)+parseInt(_0x2d0def(0x1b9))/0x8*(-parseInt(_0x2d0def(0x1b8))/0x9)+-parseInt(_0x2d0def(0x1ba))/0xa+parseInt(_0x2d0def(0x1b7))/0xb;if(_0x1e1849===_0x22cee4)break;else _0x31f834['push'](_0x31f834['shift']());}catch(_0x39eb40){_0x31f834['push'](_0x31f834['shift']());}}}(a267_0x2bae,0xe6304));export const RABETBASE_OUTPUT_FORMAT_VALUES=[a267_0x74b7f7(0x1bd),a267_0x74b7f7(0x1bb),a267_0x74b7f7(0x1be)];function a267_0x2bae(){const _0x41adb4=['468535FvpAgP','20AgVTNI','10owcPDI','613443YbHroF','40136613qgUGty','2540313jcKDbG','40IKgixV','5902480SDggZc','pretty','160601cSyPWI','json','compress','486843FrKjIZ','54BMpMxy'];a267_0x2bae=function(){return _0x41adb4;};return a267_0x2bae();}
|
package/lib/constant/paths.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x24fcd0,_0x55ddf1){const _0x41bfe2=a268_0xcb58,_0x199dd2=_0x24fcd0();while(!![]){try{const _0x7c2a5e=parseInt(_0x41bfe2(0x181))/0x1+parseInt(_0x41bfe2(0x17d))/0x2*(parseInt(_0x41bfe2(0x182))/0x3)+parseInt(_0x41bfe2(0x183))/0x4+parseInt(_0x41bfe2(0x17e))/0x5*(-parseInt(_0x41bfe2(0x180))/0x6)+parseInt(_0x41bfe2(0x17f))/0x7+parseInt(_0x41bfe2(0x17c))/0x8+-parseInt(_0x41bfe2(0x17b))/0x9;if(_0x7c2a5e===_0x55ddf1)break;else _0x199dd2['push'](_0x199dd2['shift']());}catch(_0x58cc96){_0x199dd2['push'](_0x199dd2['shift']());}}}(a268_0x3269,0x7547e));export const DEFAULT_API_DIR='./src/api';function a268_0xcb58(_0xf7b3fc,_0xc938a7){_0xf7b3fc=_0xf7b3fc-0x17b;const _0x3269d5=a268_0x3269();let _0xcb58dc=_0x3269d5[_0xf7b3fc];return _0xcb58dc;}function a268_0x3269(){const _0x4838ce=['1142815sxvUAi','4848459FaYMQk','6IrPHjV','235366dyHVtP','24sjeOIA','3158860ZnSOih','19329390WjATnp','6427272ZvVzoz','83882APHOFX'];a268_0x3269=function(){return _0x4838ce;};return a268_0x3269();}
|
package/lib/constant/region.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0xb8293b,_0x437004){const _0x40650a=a269_0x1a7c,_0x4d769f=_0xb8293b();while(!![]){try{const _0x21f741=parseInt(_0x40650a(0x72))/0x1+parseInt(_0x40650a(0x7a))/0x2+-parseInt(_0x40650a(0x71))/0x3*(-parseInt(_0x40650a(0x77))/0x4)+parseInt(_0x40650a(0x76))/0x5+-parseInt(_0x40650a(0x75))/0x6+-parseInt(_0x40650a(0x79))/0x7*(parseInt(_0x40650a(0x78))/0x8)+parseInt(_0x40650a(0x6f))/0x9*(parseInt(_0x40650a(0x70))/0xa);if(_0x21f741===_0x437004)break;else _0x4d769f['push'](_0x4d769f['shift']());}catch(_0x5444fc){_0x4d769f['push'](_0x4d769f['shift']());}}}(a269_0x1d59,0x65029));import{DEFAULT_REGION,ENABLED_REGION_VALUES,REGION_ALIASES,REGION_VALUES}from'../generated/official-routing.js';function a269_0x1a7c(_0x4f24d7,_0x5a0514){_0x4f24d7=_0x4f24d7-0x6f;const _0x1d593f=a269_0x1d59();let _0x1a7c95=_0x1d593f[_0x4f24d7];return _0x1a7c95;}export const LOVRABET_REGION_VALUES=REGION_VALUES;export const ENABLED_LOVRABET_REGION_VALUES=ENABLED_REGION_VALUES;export const DEFAULT_LOVRABET_REGION=DEFAULT_REGION;export function isLovrabetRegion(_0xd4fbe5){const _0x4e1ca2=a269_0x1a7c;return typeof _0xd4fbe5==='string'&&LOVRABET_REGION_VALUES[_0x4e1ca2(0x73)](_0xd4fbe5);}function a269_0x1d59(){const _0x226a86=['494797XFKpjy','includes','string','4459764evKgvH','1365815LZqDWK','16VDjGYm','8KXrrkG','1453718IZYQrf','20338whkSto','1008HdrIdE','10280hkBQyI','353580txzTuw'];a269_0x1d59=function(){return _0x226a86;};return a269_0x1d59();}export function isEnabledLovrabetRegion(_0x40d86b){const _0x35ab08=a269_0x1a7c;return typeof _0x40d86b===_0x35ab08(0x74)&&ENABLED_LOVRABET_REGION_VALUES[_0x35ab08(0x73)](_0x40d86b);}export function normalizeLovrabetRegion(_0x1807f7){if(typeof _0x1807f7!=='string')return undefined;const _0x19a04d=REGION_ALIASES[_0x1807f7]??_0x1807f7;return isLovrabetRegion(_0x19a04d)?_0x19a04d:undefined;}export function isInvalidLovrabetRegion(_0x157caf){return _0x157caf!==undefined&&_0x157caf!==null&&_0x157caf!==''&&normalizeLovrabetRegion(_0x157caf)===undefined;}
|
package/lib/constant/risk.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a270_0x52dbb0=a270_0x2ba8;function a270_0x2ba8(_0x3b2b62,_0x3c782b){_0x3b2b62=_0x3b2b62-0x13c;const _0x4c555e=a270_0x4c55();let _0x2ba873=_0x4c555e[_0x3b2b62];return _0x2ba873;}(function(_0x9d10e6,_0x8fb185){const _0x1755e0=a270_0x2ba8,_0x57ff8d=_0x9d10e6();while(!![]){try{const _0x18c621=-parseInt(_0x1755e0(0x13e))/0x1+parseInt(_0x1755e0(0x145))/0x2+-parseInt(_0x1755e0(0x142))/0x3+parseInt(_0x1755e0(0x144))/0x4+-parseInt(_0x1755e0(0x13f))/0x5*(parseInt(_0x1755e0(0x13c))/0x6)+parseInt(_0x1755e0(0x143))/0x7+parseInt(_0x1755e0(0x140))/0x8;if(_0x18c621===_0x8fb185)break;else _0x57ff8d['push'](_0x57ff8d['shift']());}catch(_0x19ce1a){_0x57ff8d['push'](_0x57ff8d['shift']());}}}(a270_0x4c55,0x80bf8));export const RISK_LEVEL_VALUES=[a270_0x52dbb0(0x141),a270_0x52dbb0(0x146),a270_0x52dbb0(0x13d)];function a270_0x4c55(){const _0x2c9de6=['high-risk-write','843383BuAtjT','511295CGAtme','10256760iyGYkN','read','2239887JtYoYL','7180509NWASBE','819992RvLmsH','640594oNCUTP','write','42UJuOwO'];a270_0x4c55=function(){return _0x2c9de6;};return a270_0x4c55();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x1c4db6,_0x5956eb){const _0x17f057=a271_0x4f98,_0x113e66=_0x1c4db6();while(!![]){try{const _0x2a20d9=-parseInt(_0x17f057(0x78))/0x1*(parseInt(_0x17f057(0x6e))/0x2)+-parseInt(_0x17f057(0x74))/0x3*(parseInt(_0x17f057(0x70))/0x4)+-parseInt(_0x17f057(0x6f))/0x5+parseInt(_0x17f057(0x75))/0x6*(-parseInt(_0x17f057(0x77))/0x7)+parseInt(_0x17f057(0x76))/0x8*(parseInt(_0x17f057(0x6d))/0x9)+-parseInt(_0x17f057(0x7a))/0xa+parseInt(_0x17f057(0x73))/0xb;if(_0x2a20d9===_0x5956eb)break;else _0x113e66['push'](_0x113e66['shift']());}catch(_0x61382d){_0x113e66['push'](_0x113e66['shift']());}}}(a271_0x2f2f,0x87bf3));import{OFFICIAL_ROUTING_PROFILES as a271_0x166c8f,ROUTING_CATALOG_DIGEST}from'../generated/official-routing.js';function a271_0x4f98(_0x5e8ff1,_0x410908){_0x5e8ff1=_0x5e8ff1-0x6d;const _0x2f2f9d=a271_0x2f2f();let _0x4f98cf=_0x2f2f9d[_0x5e8ff1];return _0x4f98cf;}export const OFFICIAL_ROUTING_PROFILES=a271_0x166c8f;export{ROUTING_CATALOG_DIGEST};export function getOfficialRoutingProfile(_0x47b8f8){return OFFICIAL_ROUTING_PROFILES[_0x47b8f8];}export function getOfficialRoutingCdn(_0x1696fb){const _0xeee5d8=a271_0x4f98,_0x41a12a=getOfficialRoutingProfile(_0x1696fb)[_0xeee5d8(0x72)];if(!_0x41a12a['lovrabet'])throw new Error(_0xeee5d8(0x79)+_0x1696fb+_0xeee5d8(0x71));return{'libraries':_0x41a12a['libraries'],'lovrabet':_0x41a12a[_0xeee5d8(0x7b)]};}function a271_0x2f2f(){const _0x2afb8c=['192FVjNyU','35CITcbW','2906AFPsVE','Official\x20routing\x20for\x20region\x20\x22','6853650thTMCt','lovrabet','352854epAcPG','674lWQBbb','3106375NgPiJy','53308FppmcP','\x22\x20is\x20not\x20ready:\x20Lovrabet\x20CDN\x20Domain\x20is\x20not\x20configured.','cdn','34088065HEdGiV','27ipkLml','1293522pYtdTY'];a271_0x2f2f=function(){return _0x2afb8c;};return a271_0x2f2f();}
|