@lovrabet/rabetbase-cli 2.5.10-beta.3 → 2.5.10-beta.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/design-context.js +1 -1
- package/lib/commands/dataset/design-start.js +1 -1
- package/lib/commands/dataset/design-status.js +1 -1
- package/lib/commands/dataset/design-sync-retry.js +1 -1
- package/lib/commands/dataset/design-sync-status.js +1 -1
- package/lib/commands/dataset/design-validate.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/extend-update.js +1 -1
- package/lib/commands/dataset/field-restore.js +1 -1
- package/lib/commands/dataset/field-update.js +1 -1
- package/lib/commands/dataset/generate.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/dataset/relation-audit.js +1 -1
- package/lib/commands/dataset/relation-create.js +1 -1
- package/lib/commands/dataset/relation-delete.js +1 -1
- package/lib/commands/dataset/relation-shared.js +1 -1
- package/lib/commands/dataset/relation-update.js +1 -1
- package/lib/commands/dataset/relations.js +1 -1
- package/lib/commands/dataset/rename.js +1 -1
- package/lib/commands/dataset/restore.js +1 -1
- package/lib/commands/dataset/user-deleted-field-list.js +1 -1
- package/lib/commands/db/analysis-batching.js +1 -1
- package/lib/commands/db/analyze-batch-plan.js +1 -1
- package/lib/commands/db/analyze-cancel.js +1 -1
- package/lib/commands/db/analyze-start.js +1 -1
- package/lib/commands/db/analyze-status.js +1 -1
- package/lib/commands/db/create.js +1 -1
- package/lib/commands/db/cross-db-analysis-shared.js +1 -1
- package/lib/commands/db/cross-db-analyze-latest.js +1 -1
- package/lib/commands/db/cross-db-analyze-start.js +1 -1
- package/lib/commands/db/cross-db-analyze-status.js +1 -1
- package/lib/commands/db/delete.js +1 -1
- package/lib/commands/db/detail.js +1 -1
- package/lib/commands/db/diff-refresh-start.js +1 -1
- package/lib/commands/db/diff-refresh-status.js +1 -1
- package/lib/commands/db/diff.js +1 -1
- package/lib/commands/db/index.js +1 -1
- package/lib/commands/db/list.js +1 -1
- package/lib/commands/db/shared.js +1 -1
- package/lib/commands/db/table-diff-shared.js +1 -1
- package/lib/commands/db/tables.js +1 -1
- package/lib/commands/db/test.js +1 -1
- package/lib/commands/db/update.js +1 -1
- package/lib/commands/deployment/index.js +1 -1
- package/lib/commands/deployment/sync-all.js +1 -1
- package/lib/commands/deployment/sync-jobs.js +1 -1
- package/lib/commands/deployment/sync-status.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/flow/create.js +1 -1
- package/lib/commands/flow/detail.js +1 -1
- package/lib/commands/flow/index.js +1 -1
- package/lib/commands/flow/list.js +1 -1
- package/lib/commands/flow/page-list.js +1 -1
- package/lib/commands/flow/publish.js +1 -1
- package/lib/commands/flow/runtime-resources-shared.js +1 -1
- package/lib/commands/flow/runtime-role-list.js +1 -1
- package/lib/commands/flow/runtime-role-user-list.js +1 -1
- package/lib/commands/flow/runtime-user-search.js +1 -1
- package/lib/commands/flow/shared.js +1 -1
- package/lib/commands/flow/update.js +1 -1
- package/lib/commands/flow/validate.js +1 -1
- package/lib/commands/instant-api-policy/current.js +1 -1
- package/lib/commands/instant-api-policy/index.js +1 -1
- package/lib/commands/instant-api-policy/init.js +1 -1
- package/lib/commands/instant-api-policy/publish.js +1 -1
- package/lib/commands/instant-api-policy/pull.js +1 -1
- package/lib/commands/instant-api-policy/revision.js +1 -1
- package/lib/commands/instant-api-policy/revisions.js +1 -1
- package/lib/commands/instant-api-policy/rollback.js +1 -1
- package/lib/commands/instant-api-policy/shared.js +1 -1
- package/lib/commands/instant-api-policy/validate.js +1 -1
- package/lib/commands/issue/context.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/kb/create.js +1 -1
- package/lib/commands/kb/delete.js +1 -1
- package/lib/commands/kb/detail.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/kb/list.js +1 -1
- package/lib/commands/kb/search.js +1 -1
- package/lib/commands/kb/shared.js +1 -1
- package/lib/commands/kb/update.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/asset-update.js +1 -1
- package/lib/commands/menu/delete.js +1 -1
- package/lib/commands/menu/external-link-create.js +1 -1
- package/lib/commands/menu/external-link-update.js +1 -1
- package/lib/commands/menu/group-create.js +1 -1
- package/lib/commands/menu/group-update.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/list.js +1 -1
- package/lib/commands/menu/move.js +1 -1
- package/lib/commands/menu/regroup-start.js +1 -1
- package/lib/commands/menu/rename.js +1 -1
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/delete-plan.js +1 -1
- package/lib/commands/menu/shared/facts.js +1 -1
- package/lib/commands/menu/shared/index.js +1 -1
- package/lib/commands/menu/shared/inquirer.js +1 -1
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.js +1 -1
- package/lib/commands/menu/shared/mutations.js +1 -1
- package/lib/commands/menu/shared/path.js +1 -1
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/subapp-assets.js +1 -1
- package/lib/commands/menu/shared/sync-core.js +1 -1
- package/lib/commands/menu/shared/update-core.js +1 -1
- package/lib/commands/menu/shared/valid-url.js +1 -1
- package/lib/commands/menu/subapp-assets-status.js +1 -1
- package/lib/commands/menu/subapp-assets-update.js +1 -1
- package/lib/commands/menu/sync.js +1 -1
- package/lib/commands/menu/visibility-update.js +1 -1
- package/lib/commands/notification/config-create.js +1 -1
- package/lib/commands/notification/config-delete.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/config-update.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/notification/shared.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/page/create.js +1 -1
- package/lib/commands/page/custom/detail.js +1 -1
- package/lib/commands/page/custom/list.js +1 -1
- package/lib/commands/page/custom/publish.js +1 -1
- package/lib/commands/page/custom/shared.js +1 -1
- package/lib/commands/page/custom/syntax.js +1 -1
- package/lib/commands/page/custom/update.js +1 -1
- package/lib/commands/page/data-list-status.js +1 -1
- package/lib/commands/page/generate-start.js +1 -1
- package/lib/commands/page/generate-status.js +1 -1
- package/lib/commands/page/index.js +1 -1
- package/lib/commands/page/pull.js +1 -1
- package/lib/commands/page/push.js +1 -1
- package/lib/commands/page/relation-audit.js +1 -1
- package/lib/commands/page/restore.js +1 -1
- package/lib/commands/page/shared.js +1 -1
- package/lib/commands/page/sync.js +1 -1
- package/lib/commands/project/api-architecture-upgrade.js +1 -1
- package/lib/commands/project/create/enhanced-guided-create.js +1 -1
- package/lib/commands/project/create/format-elapsed.js +1 -1
- package/lib/commands/project/create/main.js +1 -1
- package/lib/commands/project/create/materialize-project-template.js +1 -1
- package/lib/commands/project/create/project-name.js +1 -1
- package/lib/commands/project/create/project-template-archive.js +1 -1
- package/lib/commands/project/create/project-template-path.js +1 -1
- package/lib/commands/project/create/use-copy-project-template.js +1 -1
- package/lib/commands/project/create/use-format-code.js +1 -1
- package/lib/commands/project/create/use-install-dependencies.js +1 -1
- package/lib/commands/project/domain-routing-sync.js +1 -1
- package/lib/commands/project/index.js +1 -1
- package/lib/commands/project/upgrade.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/role/user-resolve.js +1 -1
- package/lib/commands/rule/get.js +1 -1
- package/lib/commands/rule/index.js +1 -1
- package/lib/commands/rule/list.js +1 -1
- package/lib/commands/rule/set.js +1 -1
- package/lib/commands/rule/shared.js +1 -1
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/sql/create.js +1 -1
- package/lib/commands/sql/delete.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/sql/list.js +1 -1
- package/lib/commands/sql/pull.js +1 -1
- package/lib/commands/sql/push.js +1 -1
- package/lib/commands/sql/shared.js +1 -1
- package/lib/commands/sql/status.js +1 -1
- package/lib/commands/sql/validate.js +1 -1
- package/lib/commands/task/index.js +1 -1
- package/lib/commands/task/status.js +1 -1
- package/lib/commands/tenant/index.js +1 -1
- package/lib/commands/tenant/members-list.js +1 -1
- package/lib/commands/tenant/shared.js +1 -1
- package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
- package/lib/commands/user-account/feishu-bind.js +1 -1
- package/lib/commands/user-account/index.js +1 -1
- package/lib/commands/workspace/add.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/commands/workspace/remove.js +1 -1
- package/lib/config/domain-config.js +1 -1
- package/lib/config/project-domain-routing.js +1 -1
- package/lib/config/region-config.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/cdn.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/paths.js +1 -1
- package/lib/constant/region.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/routing-profile.js +1 -1
- package/lib/context/app-resolver.js +1 -1
- package/lib/context/auth-resolver.js +1 -1
- package/lib/context/config-loader.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/bff/config.js +1 -1
- package/lib/core/bff/file-system.js +1 -1
- package/lib/core/bff/hash.js +1 -1
- package/lib/core/bff/hook-directory.js +1 -1
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/cross-db-analysis.js +1 -1
- package/lib/core/cross-db-relation.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/flow-config.js +1 -1
- package/lib/core/instant-api-policy/config.js +1 -1
- package/lib/core/instant-api-policy/endpoints.js +1 -1
- package/lib/core/kb-management-client.js +1 -1
- package/lib/core/kb-search-client.js +1 -1
- package/lib/core/page/file-system.js +1 -1
- package/lib/core/page/hash.js +1 -1
- package/lib/core/page/lock.js +1 -1
- package/lib/core/page/lr-smart-jsx.js +1 -1
- package/lib/core/sql-index-auditor.js +1 -1
- package/lib/core/sql-sync/config.js +1 -1
- package/lib/core/sql-sync/file-system.js +1 -1
- package/lib/core/sql-sync/hash.js +1 -1
- package/lib/core/sql-sync/lock.js +1 -1
- package/lib/core/sql-sync/utils.js +1 -1
- package/lib/core/sql-validator.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/error-output.js +1 -1
- package/lib/framework/explicit-yes.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-alias.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/supported-flags.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/generated/official-routing.js +1 -1
- package/lib/generated/routing-contract.js +1 -1
- package/lib/help.js +1 -1
- package/lib/postinstall.js +1 -1
- package/lib/runtime/confirmation.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/services/dataset-design/checkpoint.js +1 -1
- package/lib/services/dataset-design/commands.js +1 -1
- package/lib/services/dataset-design/contract.js +1 -1
- package/lib/skills/builtin-skill.js +1 -1
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/skill-presence.js +1 -1
- package/lib/telemetry/cli-command-trace.js +1 -1
- package/lib/telemetry/cli-help-trace.js +1 -1
- package/lib/telemetry/ensure-cli-otel-config.js +1 -1
- package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
- package/lib/telemetry/send-cli-trace-log.js +1 -1
- package/lib/utils/ai_config.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cdn-config.js +1 -1
- package/lib/utils/check-sdk-version.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/config.js +1 -1
- package/lib/utils/entity-with-id.js +1 -1
- package/lib/utils/file-utils.js +1 -1
- package/lib/utils/guides-cdn.js +1 -1
- package/lib/utils/http-client.js +1 -1
- package/lib/utils/is-non-interactive.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/sleep.js +1 -1
- package/lib/utils/template-replacer.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/with-active-cookie.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +4 -4
- package/skills/rabetbase/SKILL.md +1 -1
- package/skills/rabetbase-dataset-generation/SKILL.md +1 -1
- package/skills/rabetbase-page-generation/SKILL.md +1 -1
- package/skills/rabetbase.manifest.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a266_0x3c2c56=a266_0xe1bf;function a266_0x2e8c(){const _0x40c6b3=['3cborxv','8HjgmeW','add','869qGCVis','2724884PVYnJB','1EKIaMs','write','4705794SIjODl','42540lwRcDE','workspace\x20add','App\x20profile\x20name','name','3514440RASpWW','526242EBVpdq','8688tMZoaJ','5614728ApdSqh','5488EXWtyx'];a266_0x2e8c=function(){return _0x40c6b3;};return a266_0x2e8c();}(function(_0x1f819f,_0xc1d543){const _0xa22358=a266_0xe1bf,_0x2b252b=_0x1f819f();while(!![]){try{const _0x5e7644=parseInt(_0xa22358(0xf8))/0x1*(-parseInt(_0xa22358(0xef))/0x2)+parseInt(_0xa22358(0xf3))/0x3*(parseInt(_0xa22358(0xf7))/0x4)+-parseInt(_0xa22358(0xee))/0x5+parseInt(_0xa22358(0xf0))/0x6*(parseInt(_0xa22358(0xf2))/0x7)+-parseInt(_0xa22358(0xf4))/0x8*(-parseInt(_0xa22358(0xe9))/0x9)+-parseInt(_0xa22358(0xea))/0xa*(parseInt(_0xa22358(0xf6))/0xb)+-parseInt(_0xa22358(0xf1))/0xc;if(_0x5e7644===_0xc1d543)break;else _0x2b252b['push'](_0x2b252b['shift']());}catch(_0x27e554){_0x2b252b['push'](_0x2b252b['shift']());}}}(a266_0x2e8c,0x8b006));function a266_0xe1bf(_0x2eff6a,_0x451fa6){_0x2eff6a=_0x2eff6a-0xe9;const _0x2e8c05=a266_0x2e8c();let _0xe1bf35=_0x2e8c05[_0x2eff6a];return _0xe1bf35;}import{buildAppAddFlags,runAppAdd,validateAppName}from'../../commands/common/app-registry.js';export const workspaceAddDefinition={'service':'workspace','command':a266_0x3c2c56(0xf5),'description':'Register\x20an\x20app\x20profile\x20in\x20the\x20current\x20workspace\x20(or\x20--global)','risk':a266_0x3c2c56(0xf9),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':a266_0x3c2c56(0xed),'description':a266_0x3c2c56(0xec),'required':!![]}],'flags':buildAppAddFlags(),'validate':_0x45f0c2=>validateAppName(_0x45f0c2,a266_0x3c2c56(0xeb)),'execute':_0x462fbc=>runAppAdd(_0x462fbc,a266_0x3c2c56(0xeb))};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a267_0x2924(){const _0x3ff445=['601440thpeWW','Workspace\x20','string','Target\x20environment','Default\x20page\x20size\x20for\x20this\x20workspace\x20app\x20profile','Use\x20`','apps','apiDir','isArray','192626GMkykj','App\x20locale\x20for\x20this\x20workspace\x20app\x20profile\x20(not\x20CLI\x20language;\x20reserved\x20for\x20later\x20app\x20use)','App\x20profile\x20name\x20to\x20use\x20in\x20this\x20workspace','\x20workspace\x20use\x20--app\x20<name>`.','App\x20code\x20to\x20bind\x20to\x20this\x20workspace','appcode','.\x20Credentials:\x20not\x20written.','app','trim','validation','object','60uZEXON','Switch\x20the\x20current\x20workspace\x20app\x20binding','Default\x20output\x20format\x20for\x20this\x20workspace\x20app\x20profile','workspace.','1650200KZyFeG','pageSize','workspace','number','172383hPRybF','Risk\x20level\x20for\x20this\x20workspace\x20app\x20profile','flag','globalConfig','write','defaultFormat','keys','38GWejaV','locale','initialized','2630178OhCMas','apiGroup','Pass\x20--appcode\x20<code>,\x20or\x20choose\x20one\x20of:\x20','init','\x20(appcode:\x20','format','Initialize\x20the\x20current\x20workspace\x20app\x20binding','Invalid\x20appcode:\x20','join','225KRRYjn','16468nDLPFq','Join\x20key\x20for\x20app\x20profiles\x20that\x20share\x20one\x20generated\x20API\x20model\x20registry','region','1079UiRDOQ','str','riskLevel','project','env','Missing\x20workspace\x20app\x20selector.','\x20workspace\x20<init|use>\x20--app\x20<name>\x20[--appcode\x20<code>]','\x20workspace\x20'];a267_0x2924=function(){return _0x3ff445;};return a267_0x2924();}const a267_0x1757c8=a267_0x1347;(function(_0x3ac12b,_0x378f95){const _0x4fa4dc=a267_0x1347,_0x11abae=_0x3ac12b();while(!![]){try{const _0x36f100=parseInt(_0x4fa4dc(0xcf))/0x1*(-parseInt(_0x4fa4dc(0xbf))/0x2)+parseInt(_0x4fa4dc(0xb8))/0x3+parseInt(_0x4fa4dc(0xcc))/0x4*(-parseInt(_0x4fa4dc(0xcb))/0x5)+parseInt(_0x4fa4dc(0xb0))/0x6*(parseInt(_0x4fa4dc(0xa5))/0x7)+-parseInt(_0x4fa4dc(0xb4))/0x8+parseInt(_0x4fa4dc(0xc2))/0x9+-parseInt(_0x4fa4dc(0xd7))/0xa;if(_0x36f100===_0x378f95)break;else _0x11abae['push'](_0x11abae['shift']());}catch(_0x3c94b7){_0x11abae['push'](_0x11abae['shift']());}}}(a267_0x2924,0x2547a));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';function a267_0x1347(_0x30ed7e,_0x5e3a50){_0x30ed7e=_0x30ed7e-0x9d;const _0x29246c=a267_0x2924();let _0x1347f8=_0x29246c[_0x30ed7e];return _0x1347f8;}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+a267_0x1757c8(0xd5),SAFE_PROFILE_KEYS=[a267_0x1757c8(0xaa),a267_0x1757c8(0xc3),'region',a267_0x1757c8(0xd3),'apiDir',a267_0x1757c8(0xc7),a267_0x1757c8(0xb5),'riskLevel','locale'],workspaceFlags=[{'name':a267_0x1757c8(0xac),'type':a267_0x1757c8(0x9e),'description':a267_0x1757c8(0xa7)},{'name':'appcode','type':a267_0x1757c8(0x9e),'description':a267_0x1757c8(0xa9)},{'name':'apiGroup','type':a267_0x1757c8(0x9e),'description':a267_0x1757c8(0xcd)},{'name':a267_0x1757c8(0xce),'type':a267_0x1757c8(0x9e),'description':'Country/region\x20for\x20this\x20workspace\x20app\x20profile','enum':[...ENABLED_LOVRABET_REGION_VALUES]},{'name':a267_0x1757c8(0xd3),'type':a267_0x1757c8(0x9e),'description':a267_0x1757c8(0x9f),'enum':[...RABETBASE_ENV_VALUES]},{'name':a267_0x1757c8(0xa3),'type':a267_0x1757c8(0x9e),'description':'API\x20directory\x20path\x20for\x20this\x20workspace\x20app\x20profile'},{'name':a267_0x1757c8(0xbd),'type':a267_0x1757c8(0x9e),'description':a267_0x1757c8(0xb2),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':a267_0x1757c8(0xb5),'type':a267_0x1757c8(0xb7),'description':a267_0x1757c8(0xa0)},{'name':a267_0x1757c8(0xd1),'type':'string','description':a267_0x1757c8(0xb9),'enum':[...RISK_LEVEL_VALUES]},{'name':a267_0x1757c8(0xc0),'type':a267_0x1757c8(0x9e),'description':a267_0x1757c8(0xa6)}];function isRecord(_0x7513bb){const _0x2ac3d9=a267_0x1757c8;return!!_0x7513bb&&typeof _0x7513bb===_0x2ac3d9(0xaf)&&!Array[_0x2ac3d9(0xa4)](_0x7513bb);}function assertValidAppcode(_0x506fc4){const _0x393908=a267_0x1757c8,{valid:_0x4d89e6,message:_0x2b7c64}=validateAppcode(_0x506fc4);if(!_0x4d89e6)throw CliErrors[_0x393908(0xae)](_0x393908(0xc9)+_0x506fc4,_0x2b7c64);}function sanitizeProfile(_0x127f76){if(!isRecord(_0x127f76))return{};const _0x1dd24e={};for(const _0x39223c of SAFE_PROFILE_KEYS){if(_0x127f76[_0x39223c]!==undefined)_0x1dd24e[_0x39223c]=_0x127f76[_0x39223c];}return _0x1dd24e;}function cloneProfile(_0x23423e){return isRecord(_0x23423e)?{..._0x23423e}:{};}function collectWorkspaceProfileOverrides(_0x4d5220){const _0x10975b=a267_0x1757c8,_0x5d808a={},_0x265f70=_0x4d5220[_0x10975b(0xd0)](_0x10975b(0xc3)),_0x45c5ab=_0x4d5220[_0x10975b(0xd0)](_0x10975b(0xce)),_0x38bf2c=_0x4d5220['str']('env'),_0x314caa=_0x4d5220['str'](_0x10975b(0xa3)),_0x482ae9=_0x4d5220[_0x10975b(0xd0)](_0x10975b(0xbd)),_0x490c03=_0x4d5220[_0x10975b(0xba)](_0x10975b(0xb5)),_0x5c12f3=_0x4d5220['str'](_0x10975b(0xd1)),_0x176e1a=_0x4d5220['str'](_0x10975b(0xc0));if(_0x265f70)_0x5d808a[_0x10975b(0xc3)]=_0x265f70;if(_0x45c5ab)_0x5d808a[_0x10975b(0xce)]=_0x45c5ab;if(_0x38bf2c)_0x5d808a[_0x10975b(0xd3)]=_0x38bf2c;if(_0x314caa)_0x5d808a['apiDir']=_0x314caa;if(_0x482ae9)_0x5d808a[_0x10975b(0xc7)]=_0x482ae9;if(_0x490c03!==undefined&&_0x490c03!=='')_0x5d808a[_0x10975b(0xb5)]=Number(_0x490c03);if(_0x5c12f3)_0x5d808a[_0x10975b(0xd1)]=_0x5c12f3;if(_0x176e1a)_0x5d808a[_0x10975b(0xc0)]=_0x176e1a;return _0x5d808a;}async function validateWorkspaceArgs(_0xde0049){const _0xbc879d=a267_0x1757c8,_0x15a4a9=_0xde0049[_0xbc879d(0xd0)](_0xbc879d(0xac))[_0xbc879d(0xad)](),_0x1a5863=_0xde0049['str'](_0xbc879d(0xaa))[_0xbc879d(0xad)]();if(!_0x15a4a9&&!_0x1a5863)throw CliErrors[_0xbc879d(0xae)]('Missing\x20workspace\x20app\x20selector.',_0xbc879d(0xa1)+CLI_BIN_NAME+'\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20`'+CLI_BIN_NAME+_0xbc879d(0xa8));if(_0x1a5863)assertValidAppcode(_0x1a5863);}function resolveKnownApps(){const _0x363165=a267_0x1757c8,{config:_0x1831a8,layers:_0x5e774a}=readRawConfigWithLayers(),_0x206c63=isRecord(_0x1831a8[_0x363165(0xa2)])?_0x1831a8['apps']:{},_0x44cc22=isRecord(_0x5e774a[_0x363165(0xbb)][_0x363165(0xa2)])?_0x5e774a[_0x363165(0xbb)][_0x363165(0xa2)]:{};return{..._0x44cc22,..._0x206c63};}async function configureWorkspace(_0x28bdf5,_0x20c979){const _0x4ecb5c=a267_0x1757c8,_0x44bc1a=_0x28bdf5[_0x4ecb5c(0xd0)](_0x4ecb5c(0xac))[_0x4ecb5c(0xad)](),_0xa91e1e=_0x28bdf5[_0x4ecb5c(0xd0)](_0x4ecb5c(0xaa))['trim'](),_0x24381a=_0x44bc1a||_0xa91e1e;if(!_0x24381a)throw CliErrors[_0x4ecb5c(0xae)](_0x4ecb5c(0xd4),_0x4ecb5c(0xa1)+CLI_BIN_NAME+'\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20`'+CLI_BIN_NAME+_0x4ecb5c(0xa8));if(_0xa91e1e)assertValidAppcode(_0xa91e1e);const _0x99c290=resolveWriteConfigPath(_0x4ecb5c(0xd2)),_0x112c17=readConfigFile(_0x99c290),_0x2d1f13=resolveKnownApps(),_0x3cc5d3=isRecord(_0x112c17[_0x4ecb5c(0xa2)])?{..._0x112c17[_0x4ecb5c(0xa2)]}:{},_0x40d95e=cloneProfile(_0x3cc5d3[_0x24381a]),_0x28c7a7=sanitizeProfile(_0x2d1f13[_0x24381a]),_0x4f3ba8=_0xa91e1e?{}:_0x28c7a7,_0x3cdeea=_0xa91e1e||_0x4f3ba8['appcode'];if(!_0x3cdeea){const _0x4c0522=Object[_0x4ecb5c(0xbe)](_0x2d1f13),_0x559429=_0x4c0522['length']===0x0?_0x4ecb5c(0xa1)+CLI_BIN_NAME+_0x4ecb5c(0xd6)+_0x20c979+'\x20--app\x20'+_0x24381a+'\x20--appcode\x20<code>`.':_0x4ecb5c(0xc4)+_0x4c0522[_0x4ecb5c(0xca)](',\x20');throw CliErrors[_0x4ecb5c(0xae)]('App\x20\x22'+_0x24381a+'\x22\x20not\x20found.',_0x559429);}assertValidAppcode(String(_0x3cdeea));const _0x2499a8={..._0x4f3ba8,..._0x40d95e,'appcode':String(_0x3cdeea),...collectWorkspaceProfileOverrides(_0x28bdf5)};return _0x3cc5d3[_0x24381a]=_0x2499a8,_0x112c17[_0x4ecb5c(0xa2)]=_0x3cc5d3,normalizeStoredDefaultApp(_0x112c17,_0x24381a),delete _0x112c17[_0x4ecb5c(0xaa)],delete _0x112c17['app'],_0x2499a8['env']&&(_0x112c17[_0x4ecb5c(0xd3)]=_0x2499a8[_0x4ecb5c(0xd3)]),writeConfigFile(_0x99c290,_0x112c17),{'ok':!![],'message':_0x4ecb5c(0x9d)+(_0x20c979===_0x4ecb5c(0xc5)?_0x4ecb5c(0xc1):'updated')+':\x20'+_0x24381a+_0x4ecb5c(0xc6)+_0x2499a8[_0x4ecb5c(0xaa)]+').\x20Config:\x20'+_0x99c290+_0x4ecb5c(0xab),'data':{'operation':_0x4ecb5c(0xb3)+_0x20c979,'configPath':_0x99c290,'app':_0x24381a,'appcode':_0x2499a8['appcode'],'apiGroup':_0x2499a8[_0x4ecb5c(0xc3)]??null,'region':_0x2499a8[_0x4ecb5c(0xce)]??null,'env':_0x2499a8[_0x4ecb5c(0xd3)]??null,'credentialsWritten':![]}};}const workspaceInitDefinition={'service':a267_0x1757c8(0xb6),'command':'init','description':a267_0x1757c8(0xc8),'risk':a267_0x1757c8(0xbc),'requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x1766dd=>configureWorkspace(_0x1766dd,'init')},workspaceUseDefinition={'service':a267_0x1757c8(0xb6),'command':'use','description':a267_0x1757c8(0xb1),'risk':a267_0x1757c8(0xbc),'requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x4fb275=>configureWorkspace(_0x4fb275,'use')};export const workspaceDefinitions=[workspaceInitDefinition,workspaceUseDefinition,workspaceAddDefinition,workspaceRemoveDefinition];export{WORKSPACE_USAGE};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a268_0x5ea85f=a268_0x7ed6;(function(_0x1f6cf0,_0x164ae6){const _0x58fc5d=a268_0x7ed6,_0x448a4b=_0x1f6cf0();while(!![]){try{const _0x2421fd=-parseInt(_0x58fc5d(0x1f1))/0x1+parseInt(_0x58fc5d(0x1ef))/0x2+-parseInt(_0x58fc5d(0x1ee))/0x3+-parseInt(_0x58fc5d(0x1ed))/0x4+parseInt(_0x58fc5d(0x1f6))/0x5*(parseInt(_0x58fc5d(0x1f2))/0x6)+-parseInt(_0x58fc5d(0x1f8))/0x7+parseInt(_0x58fc5d(0x1f4))/0x8;if(_0x2421fd===_0x164ae6)break;else _0x448a4b['push'](_0x448a4b['shift']());}catch(_0x2a19ba){_0x448a4b['push'](_0x448a4b['shift']());}}}(a268_0x5b10,0x7138a));function a268_0x5b10(){const _0x293e5a=['Remove\x20an\x20app\x20profile\x20from\x20the\x20current\x20workspace\x20(or\x20--global)','434952vbUmjj','write','App\x20profile\x20name\x20to\x20remove','115304fdORVr','2700429HrGzSu','716964AHwLnE','name','266377YnzXKa','6UkARES','workspace\x20remove','4783200yUITZu','remove','3824270CzWGbL'];a268_0x5b10=function(){return _0x293e5a;};return a268_0x5b10();}function a268_0x7ed6(_0xbf13e8,_0x20c3bb){_0xbf13e8=_0xbf13e8-0x1ec;const _0x5b1038=a268_0x5b10();let _0x7ed6ff=_0x5b1038[_0xbf13e8];return _0x7ed6ff;}import{buildAppRemoveFlags,runAppRemove,validateAppName}from'../../commands/common/app-registry.js';export const workspaceRemoveDefinition={'service':'workspace','command':a268_0x5ea85f(0x1f5),'description':a268_0x5ea85f(0x1f7),'risk':a268_0x5ea85f(0x1f9),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':a268_0x5ea85f(0x1f0),'description':a268_0x5ea85f(0x1ec),'required':!![]}],'flags':buildAppRemoveFlags(),'validate':_0x1c102d=>validateAppName(_0x1c102d,a268_0x5ea85f(0x1f3)),'execute':_0x2598a9=>runAppRemove(_0x2598a9,a268_0x5ea85f(0x1f3))};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a269_0x3b523b=a269_0x3dec;(function(_0x803daf,_0x4ebcd5){const _0x2ab9fa=a269_0x3dec,_0x11bc86=_0x803daf();while(!![]){try{const _0x8ec7a8=-parseInt(_0x2ab9fa(0x86))/0x1*(-parseInt(_0x2ab9fa(0x72))/0x2)+-parseInt(_0x2ab9fa(0x71))/0x3*(-parseInt(_0x2ab9fa(0x73))/0x4)+parseInt(_0x2ab9fa(0xa4))/0x5*(-parseInt(_0x2ab9fa(0x6d))/0x6)+parseInt(_0x2ab9fa(0xa7))/0x7*(parseInt(_0x2ab9fa(0x95))/0x8)+parseInt(_0x2ab9fa(0x6f))/0x9+-parseInt(_0x2ab9fa(0xb3))/0xa*(parseInt(_0x2ab9fa(0x75))/0xb)+parseInt(_0x2ab9fa(0x79))/0xc;if(_0x8ec7a8===_0x4ebcd5)break;else _0x11bc86['push'](_0x11bc86['shift']());}catch(_0x2e565e){_0x11bc86['push'](_0x11bc86['shift']());}}}(a269_0x3231,0xab0a6));import{existsSync,readFileSync}from'node:fs';import{isAbsolute,resolve}from'node:path';function a269_0x3231(){const _0x4c1f0=['44888FVfARz','api-domain','3686617WaonYl','validation','base\x20URL','enterprise-v1','5788740YiUVwL','\x22\x20and\x20kind\x20\x22','Enterprise\x20routing\x20manifests\x20cannot\x20be\x20combined\x20with\x20individual\x20Domain\x20flags.','localDomain','https:','kb-domain',':\x20expected\x20a\x20non-empty\x20HTTPS\x20origin.','href','agentDomain','userDomain','Enterprise\x20','cdn','\x22\x20is\x20not\x20a\x20valid\x20URL.','2fpymFC','Allowed\x20fields:\x20','skill-domain','object','keys','kbDomain','\x20without\x20credentials,\x20query,\x20or\x20fragment.','search',':\x20expected\x20a\x20non-empty\x20HTTPS\x20URL.','Invalid\x20cdn.','utf8','cwd','length','domains','apiDomain','8oZGyhI',':\x20expected\x20an\x20HTTPS\x20origin\x20or\x20consumer\x20Domain\x20object.','\x20does\x20not\x20provide\x20a\x20Domain\x20for\x20','lovrabet','certificateDomain','skillDomain','platformDomain','Domain\x20config\x20file\x20not\x20found:\x20','Unsupported\x20enterprise\x20CDN\x20field(s):\x20','mode','Invalid\x20domain\x20config\x20JSON:\x20','password','join','appDomain','parse','2279085Ybskjv','Unsupported\x20domain\x20config\x20field(s):\x20','str','2769809JJtEdy',':\x20\x22','protocol','default','includes','isArray','user-domain','origin','Invalid\x20','Enterprise\x20routing\x20manifest\x20is\x20missing\x20required\x20CDN\x20field(s):\x20','kbServiceDomain','domain-config','40kpiCRi','hash',':\x20expected\x20an\x20HTTPS\x20','pathname','string','local-domain','filter','Invalid\x20domain\x20config:\x20provide\x20at\x20least\x20one\x20supported\x20Domain.','runtimeDomain','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.','username','12NexwGW','Enterprise\x20routing\x20manifest\x20requires\x20localDomain\x20and\x20certificateDomain\x20together.','3007134nKlGzH','trim','306qiCvDZ','595952skLJbC'];a269_0x3231=function(){return _0x4c1f0;};return a269_0x3231();}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';function a269_0x3dec(_0x44b3a5,_0x54f706){_0x44b3a5=_0x44b3a5-0x68;const _0x323111=a269_0x3231();let _0x3deca7=_0x323111[_0x44b3a5];return _0x3deca7;}export const DOMAIN_CONFIG_FIELDS=[a269_0x3b523b(0x82),a269_0x3b523b(0x94),a269_0x3b523b(0x69),a269_0x3b523b(0x9a),a269_0x3b523b(0x8b),a269_0x3b523b(0xb1),'appDomain',a269_0x3b523b(0x7c),a269_0x3b523b(0x99)];const DOMAIN_FLAGS={'userDomain':a269_0x3b523b(0xad),'apiDomain':a269_0x3b523b(0x74),'runtimeDomain':'runtime-domain','skillDomain':a269_0x3b523b(0x88),'kbDomain':a269_0x3b523b(0x7e),'kbServiceDomain':'kb-service-domain','appDomain':'app-domain','localDomain':a269_0x3b523b(0xb8),'certificateDomain':'certificate-domain'};export const LEGACY_DOMAIN_CONFIG_FIELDS=[a269_0x3b523b(0x81),a269_0x3b523b(0x9b),'skillHubDomain'];const ENTERPRISE_TO_LOCAL_FIELD={'userDomain':a269_0x3b523b(0x82),'apiDomain':a269_0x3b523b(0x94),'runtimeDomain':a269_0x3b523b(0x69),'skillDomain':'skillDomain','kbDomain':a269_0x3b523b(0x8b),'kbServiceDomain':a269_0x3b523b(0xb1),'appDomain':a269_0x3b523b(0xa2),'localDomain':a269_0x3b523b(0x7c),'certificateDomain':a269_0x3b523b(0x99)},ROUTING_CONSUMER='rabetbase-cli';export function normalizeDomainOrigin(_0x394dce,_0x5a0916){const _0x120f94=a269_0x3b523b;if(typeof _0x5a0916!==_0x120f94(0xb7)||!_0x5a0916['trim']())throw CliErrors['validation'](_0x120f94(0xaf)+_0x394dce+_0x120f94(0x7f));let _0x267cf7;try{_0x267cf7=new URL(_0x5a0916[_0x120f94(0x70)]());}catch{throw CliErrors[_0x120f94(0x76)]('Invalid\x20'+_0x394dce+_0x120f94(0xa8)+_0x5a0916+_0x120f94(0x85));}if(_0x267cf7['protocol']!=='https:'||_0x267cf7[_0x120f94(0x6c)]||_0x267cf7['password']||_0x267cf7[_0x120f94(0xb6)]!=='/'&&_0x267cf7[_0x120f94(0xb6)]!==''||_0x267cf7[_0x120f94(0x8d)]||_0x267cf7[_0x120f94(0xb4)])throw CliErrors[_0x120f94(0x76)](_0x120f94(0xaf)+_0x394dce+_0x120f94(0x6b),_0x120f94(0x6a));return _0x267cf7[_0x120f94(0xae)];}export function normalizeRoutingDomainValue(_0x14d88a,_0x326ded){const _0x1d3b65=a269_0x3b523b;if(typeof _0x326ded==='string')return normalizeDomainOrigin(_0x14d88a,_0x326ded);if(!_0x326ded||typeof _0x326ded!=='object'||Array[_0x1d3b65(0xac)](_0x326ded))throw CliErrors[_0x1d3b65(0x76)]('Invalid\x20'+_0x14d88a+_0x1d3b65(0x96));const _0x32c0e2=_0x326ded,_0x404463=_0x32c0e2[ROUTING_CONSUMER]??_0x32c0e2[_0x1d3b65(0xaa)];if(_0x404463===undefined)throw CliErrors['validation'](_0x1d3b65(0x83)+_0x14d88a+_0x1d3b65(0x97)+ROUTING_CONSUMER+'\x20and\x20has\x20no\x20default.');return normalizeDomainOrigin(_0x14d88a,_0x404463);}export function normalizeCdnBaseUrl(_0x56bbc8,_0x382c53){const _0x346fa3=a269_0x3b523b;if(typeof _0x382c53!==_0x346fa3(0xb7)||!_0x382c53['trim']())throw CliErrors[_0x346fa3(0x76)]('Invalid\x20cdn.'+_0x56bbc8+_0x346fa3(0x8e));const _0x18b2d7=_0x382c53[_0x346fa3(0x70)]()['replace'](/\/$/,'');let _0x3913fe;try{_0x3913fe=new URL(_0x18b2d7);}catch{throw CliErrors[_0x346fa3(0x76)]('Invalid\x20cdn.'+_0x56bbc8+_0x346fa3(0xa8)+_0x382c53+_0x346fa3(0x85));}if(_0x3913fe[_0x346fa3(0xa9)]!==_0x346fa3(0x7d)||_0x3913fe['username']||_0x3913fe[_0x346fa3(0xa0)]||_0x3913fe[_0x346fa3(0x8d)]||_0x3913fe[_0x346fa3(0xb4)]||_0x3913fe[_0x346fa3(0x80)]['replace'](/\/$/,'')!==_0x18b2d7||_0x56bbc8===_0x346fa3(0x98)&&_0x3913fe[_0x346fa3(0xae)]!==_0x18b2d7)throw CliErrors[_0x346fa3(0x76)](_0x346fa3(0x8f)+_0x56bbc8+_0x346fa3(0xb5)+(_0x56bbc8===_0x346fa3(0x98)?_0x346fa3(0xae):_0x346fa3(0x77))+_0x346fa3(0x8c));return _0x18b2d7;}export function resolveEnterpriseRoutingConfig(_0x54da3a){const _0x4472d1=a269_0x3b523b;return resolveEnterpriseRoutingManifest(_0x54da3a)?.[_0x4472d1(0x93)];}export function resolveEnterpriseRoutingManifest(_0x5c7efa){const _0x2a3f7a=a269_0x3b523b;if(_0x5c7efa===undefined)return undefined;if(!_0x5c7efa||typeof _0x5c7efa!==_0x2a3f7a(0x89)||Array[_0x2a3f7a(0xac)](_0x5c7efa))throw CliErrors[_0x2a3f7a(0x76)]('Invalid\x20enterprise\x20routing\x20config:\x20expected\x20an\x20object.');return parseEnterpriseRoutingManifest(_0x5c7efa);}export function readDomainConfigInput(_0x42bd43){const _0x3bdba2=a269_0x3b523b,_0x145660=isAbsolute(_0x42bd43)?_0x42bd43:resolve(process[_0x3bdba2(0x91)](),_0x42bd43);if(!existsSync(_0x145660))throw CliErrors[_0x3bdba2(0x76)](_0x3bdba2(0x9c)+_0x145660);let _0x4a9975;try{_0x4a9975=JSON[_0x3bdba2(0xa3)](readFileSync(_0x145660,_0x3bdba2(0x90)));}catch{throw CliErrors[_0x3bdba2(0x76)](_0x3bdba2(0x9f)+_0x145660);}if(!_0x4a9975||typeof _0x4a9975!==_0x3bdba2(0x89)||Array['isArray'](_0x4a9975))throw CliErrors['validation']('Invalid\x20domain\x20config:\x20expected\x20a\x20JSON\x20object.');const _0x3cd8a8=_0x4a9975;if('protocol'in _0x3cd8a8)return parseEnterpriseRoutingManifest(_0x3cd8a8);const _0x4ee6d8=Object[_0x3bdba2(0x8a)](_0x3cd8a8)[_0x3bdba2(0xb9)](_0x430f66=>!DOMAIN_CONFIG_FIELDS[_0x3bdba2(0xab)](_0x430f66));if(_0x4ee6d8['length']>0x0)throw CliErrors['validation'](_0x3bdba2(0xa5)+_0x4ee6d8[_0x3bdba2(0xa1)](',\x20'),_0x3bdba2(0x87)+DOMAIN_CONFIG_FIELDS[_0x3bdba2(0xa1)](',\x20'));const _0x3b855={};for(const _0x409409 of DOMAIN_CONFIG_FIELDS){_0x3cd8a8[_0x409409]!==undefined&&(_0x3b855[_0x409409]=normalizeDomainOrigin(_0x409409,_0x3cd8a8[_0x409409]));}if(Object[_0x3bdba2(0x8a)](_0x3b855)[_0x3bdba2(0x92)]===0x0)throw CliErrors[_0x3bdba2(0x76)](_0x3bdba2(0x68));return{'mode':'legacy','domains':_0x3b855};}export function readDomainConfig(_0x59c781){const _0x5e8f7e=a269_0x3b523b;return readDomainConfigInput(_0x59c781)[_0x5e8f7e(0x93)];}export function resolveDomainConfigInput(_0x5afac9){const _0x132f0a=a269_0x3b523b,_0x26baee=(_0x5afac9[_0x132f0a(0xa6)](_0x132f0a(0xb2))||'')[_0x132f0a(0x70)](),_0x408e13=_0x26baee?readDomainConfigInput(_0x26baee):{'mode':'legacy','domains':{}},_0x4c4eb3=DOMAIN_CONFIG_FIELDS[_0x132f0a(0xb9)](_0x542e4b=>Boolean((_0x5afac9['str'](DOMAIN_FLAGS[_0x542e4b])||'')[_0x132f0a(0x70)]()));if(_0x408e13[_0x132f0a(0x9e)]===_0x132f0a(0x78)&&_0x4c4eb3[_0x132f0a(0x92)]>0x0)throw CliErrors[_0x132f0a(0x76)](_0x132f0a(0x7b),'Update\x20the\x20manifest\x20so\x20both\x20CLIs\x20consume\x20the\x20same\x20routing\x20data.');for(const _0x21d54e of DOMAIN_CONFIG_FIELDS){const _0x2761c6=(_0x5afac9[_0x132f0a(0xa6)](DOMAIN_FLAGS[_0x21d54e])||'')[_0x132f0a(0x70)]();if(_0x2761c6)_0x408e13[_0x132f0a(0x93)][_0x21d54e]=normalizeDomainOrigin(_0x21d54e,_0x2761c6);}return _0x408e13;}export function resolveDomainFlags(_0x3666ab){const _0x1014a7=a269_0x3b523b;return resolveDomainConfigInput(_0x3666ab)[_0x1014a7(0x93)];}export function parseEnterpriseRoutingManifest(_0x430f3c){const _0x47ff54=a269_0x3b523b;if(_0x430f3c[_0x47ff54(0xa9)]!==ENTERPRISE_ROUTING_PROTOCOL||_0x430f3c['kind']!==ENTERPRISE_ROUTING_KIND)throw CliErrors['validation']('Unsupported\x20routing\x20manifest:\x20expected\x20protocol\x20\x22'+ENTERPRISE_ROUTING_PROTOCOL+_0x47ff54(0x7a)+ENTERPRISE_ROUTING_KIND+'\x22.');if(!_0x430f3c[_0x47ff54(0x93)]||typeof _0x430f3c[_0x47ff54(0x93)]!==_0x47ff54(0x89)||Array[_0x47ff54(0xac)](_0x430f3c[_0x47ff54(0x93)]))throw CliErrors[_0x47ff54(0x76)]('Invalid\x20enterprise\x20routing\x20manifest:\x20domains\x20must\x20be\x20an\x20object.');if(!_0x430f3c[_0x47ff54(0x84)]||typeof _0x430f3c['cdn']!=='object'||Array[_0x47ff54(0xac)](_0x430f3c['cdn']))throw CliErrors[_0x47ff54(0x76)]('Invalid\x20enterprise\x20routing\x20manifest:\x20cdn\x20must\x20be\x20an\x20object.');const _0x1fad80=_0x430f3c[_0x47ff54(0x93)],_0x1b38d2=REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS[_0x47ff54(0xb9)](_0x45ff1d=>_0x1fad80[_0x45ff1d]===undefined);if(_0x1b38d2[_0x47ff54(0x92)]>0x0)throw CliErrors[_0x47ff54(0x76)]('Enterprise\x20routing\x20manifest\x20is\x20missing\x20required\x20Domain(s):\x20'+_0x1b38d2[_0x47ff54(0xa1)](',\x20'));if(_0x1fad80[_0x47ff54(0x7c)]===undefined!==(_0x1fad80[_0x47ff54(0x99)]===undefined))throw CliErrors[_0x47ff54(0x76)](_0x47ff54(0x6e));const _0x3b0de1=_0x430f3c['cdn'],_0x29d9e1=Object['keys'](_0x3b0de1)[_0x47ff54(0xb9)](_0x116f13=>!ENTERPRISE_ROUTING_CDN_FIELDS[_0x47ff54(0xab)](_0x116f13));if(_0x29d9e1[_0x47ff54(0x92)]>0x0)throw CliErrors['validation'](_0x47ff54(0x9d)+_0x29d9e1['join'](',\x20'),_0x47ff54(0x87)+ENTERPRISE_ROUTING_CDN_FIELDS[_0x47ff54(0xa1)](',\x20'));const _0x5edab9=REQUIRED_ENTERPRISE_ROUTING_CDN_FIELDS['filter'](_0x6d14de=>_0x3b0de1[_0x6d14de]===undefined);if(_0x5edab9['length']>0x0)throw CliErrors[_0x47ff54(0x76)](_0x47ff54(0xb0)+_0x5edab9[_0x47ff54(0xa1)](',\x20'));const _0xa2e1d9={};for(const _0xcdf6d8 of ENTERPRISE_ROUTING_CDN_FIELDS){_0xa2e1d9[_0xcdf6d8]=normalizeCdnBaseUrl(_0xcdf6d8,_0x3b0de1[_0xcdf6d8]);}const _0x5efe29={},_0x5f75db={};for(const _0x497ea0 of ENTERPRISE_ROUTING_DOMAIN_FIELDS){const _0x53d50e=_0x1fad80[_0x497ea0];if(_0x53d50e===undefined)continue;const _0x233db2=normalizeRoutingDomainValue(_0x497ea0,_0x53d50e);_0x5efe29[_0x497ea0]=_0x233db2;const _0x4dbb3a=ENTERPRISE_TO_LOCAL_FIELD[_0x497ea0];_0x4dbb3a&&(_0x5f75db[_0x4dbb3a]=_0x233db2);}return{'mode':_0x47ff54(0x78),'domains':_0x5f75db,'manifestDomains':_0x5efe29,'cdn':_0xa2e1d9};}
|
|
1
|
+
function a269_0x2cb8(_0x5ab965,_0x339356){_0x5ab965=_0x5ab965-0x1ea;const _0x5cc734=a269_0x5cc7();let _0x2cb8ec=_0x5cc734[_0x5ab965];return _0x2cb8ec;}const a269_0x55c39f=a269_0x2cb8;(function(_0x569b7b,_0xbfb659){const _0x52c66d=a269_0x2cb8,_0x47fb8e=_0x569b7b();while(!![]){try{const _0x59193c=parseInt(_0x52c66d(0x1ef))/0x1*(parseInt(_0x52c66d(0x22f))/0x2)+-parseInt(_0x52c66d(0x224))/0x3+-parseInt(_0x52c66d(0x1eb))/0x4+-parseInt(_0x52c66d(0x234))/0x5*(-parseInt(_0x52c66d(0x225))/0x6)+parseInt(_0x52c66d(0x1f9))/0x7*(-parseInt(_0x52c66d(0x21a))/0x8)+-parseInt(_0x52c66d(0x1ea))/0x9+parseInt(_0x52c66d(0x238))/0xa;if(_0x59193c===_0xbfb659)break;else _0x47fb8e['push'](_0x47fb8e['shift']());}catch(_0x1c9e10){_0x47fb8e['push'](_0x47fb8e['shift']());}}}(a269_0x5cc7,0xb8635));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=[a269_0x55c39f(0x206),a269_0x55c39f(0x233),'runtimeDomain','skillDomain','kbDomain',a269_0x55c39f(0x22a),'appDomain','localDomain',a269_0x55c39f(0x1f1)];const DOMAIN_FLAGS={'userDomain':a269_0x55c39f(0x1ff),'apiDomain':'api-domain','runtimeDomain':a269_0x55c39f(0x21d),'skillDomain':a269_0x55c39f(0x20e),'kbDomain':a269_0x55c39f(0x204),'kbServiceDomain':a269_0x55c39f(0x228),'appDomain':'app-domain','localDomain':'local-domain','certificateDomain':'certificate-domain'};function a269_0x5cc7(){const _0x589d86=['hash','appDomain','validation','1TVcnLx','Invalid\x20','certificateDomain','cdn','domain-config','skillHubDomain',':\x20\x22','origin','Allowed\x20fields:\x20',':\x20expected\x20a\x20non-empty\x20HTTPS\x20origin.','24094wVeeTX','rabetbase-cli','str','username','utf8','join','user-domain','Unsupported\x20enterprise\x20CDN\x20field(s):\x20','base\x20URL','length','parse','kb-domain','isArray','userDomain','Enterprise\x20','\x20does\x20not\x20provide\x20a\x20Domain\x20for\x20','Enterprise\x20routing\x20manifests\x20cannot\x20be\x20combined\x20with\x20individual\x20Domain\x20flags.','Invalid\x20domain\x20config:\x20provide\x20at\x20least\x20one\x20supported\x20Domain.','replace','href','filter','skill-domain','For\x20internal\x20deployments,\x20terminate\x20TLS\x20at\x20the\x20ingress,\x20reverse\x20proxy,\x20or\x20load\x20balancer;\x20an\x20internal\x20CA\x20is\x20supported.','Unsupported\x20domain\x20config\x20field(s):\x20','Enterprise\x20routing\x20manifest\x20is\x20missing\x20required\x20CDN\x20field(s):\x20','protocol','object','lovrabet','localDomain','domains','trim','enterprise-v1','https:','2776xNroyA','\x22\x20is\x20not\x20a\x20valid\x20URL.','\x20without\x20credentials,\x20query,\x20or\x20fragment.','runtime-domain','keys',':\x20expected\x20a\x20non-empty\x20HTTPS\x20URL.','Invalid\x20enterprise\x20routing\x20manifest:\x20domains\x20must\x20be\x20an\x20object.','string','password','includes','1379601vGftZj','78aezAvk','Invalid\x20enterprise\x20routing\x20config:\x20expected\x20an\x20object.','cwd','kb-service-domain','platformDomain','kbServiceDomain','\x20and\x20has\x20no\x20default.','Domain\x20config\x20file\x20not\x20found:\x20','Invalid\x20cdn.','agentDomain','2292194tFaagY','Enterprise\x20routing\x20manifest\x20is\x20missing\x20required\x20Domain(s):\x20','kbDomain','default','apiDomain','552510EaKWti','legacy','skillDomain','Invalid\x20enterprise\x20routing\x20manifest:\x20cdn\x20must\x20be\x20an\x20object.','14618660iaZsWn',':\x20expected\x20an\x20HTTPS\x20','Update\x20the\x20manifest\x20so\x20both\x20CLIs\x20consume\x20the\x20same\x20routing\x20data.','2862504fresxB','5267756pyKybS'];a269_0x5cc7=function(){return _0x589d86;};return a269_0x5cc7();}export const LEGACY_DOMAIN_CONFIG_FIELDS=[a269_0x55c39f(0x22e),a269_0x55c39f(0x229),a269_0x55c39f(0x1f4)];const ENTERPRISE_TO_LOCAL_FIELD={'userDomain':a269_0x55c39f(0x206),'apiDomain':a269_0x55c39f(0x233),'runtimeDomain':'runtimeDomain','skillDomain':a269_0x55c39f(0x236),'kbDomain':a269_0x55c39f(0x231),'kbServiceDomain':a269_0x55c39f(0x22a),'appDomain':a269_0x55c39f(0x1ed),'localDomain':'localDomain','certificateDomain':a269_0x55c39f(0x1f1)},ROUTING_CONSUMER=a269_0x55c39f(0x1fa);export function normalizeDomainOrigin(_0x9bfd7,_0x40cd22){const _0x1aa192=a269_0x55c39f;if(typeof _0x40cd22!==_0x1aa192(0x221)||!_0x40cd22['trim']())throw CliErrors['validation'](_0x1aa192(0x1f0)+_0x9bfd7+_0x1aa192(0x1f8));let _0x44c496;try{_0x44c496=new URL(_0x40cd22[_0x1aa192(0x217)]());}catch{throw CliErrors[_0x1aa192(0x1ee)](_0x1aa192(0x1f0)+_0x9bfd7+_0x1aa192(0x1f5)+_0x40cd22+_0x1aa192(0x21b));}if(_0x44c496['protocol']!=='https:'||_0x44c496['username']||_0x44c496[_0x1aa192(0x222)]||_0x44c496['pathname']!=='/'&&_0x44c496['pathname']!==''||_0x44c496['search']||_0x44c496[_0x1aa192(0x1ec)])throw CliErrors[_0x1aa192(0x1ee)](_0x1aa192(0x1f0)+_0x9bfd7+':\x20expected\x20an\x20HTTPS\x20origin\x20without\x20credentials,\x20path,\x20query,\x20or\x20fragment.',_0x1aa192(0x20f));return _0x44c496['origin'];}export function normalizeRoutingDomainValue(_0x453449,_0x4c3d89){const _0x37f0e7=a269_0x55c39f;if(typeof _0x4c3d89===_0x37f0e7(0x221))return normalizeDomainOrigin(_0x453449,_0x4c3d89);if(!_0x4c3d89||typeof _0x4c3d89!=='object'||Array[_0x37f0e7(0x205)](_0x4c3d89))throw CliErrors['validation']('Invalid\x20'+_0x453449+':\x20expected\x20an\x20HTTPS\x20origin\x20or\x20consumer\x20Domain\x20object.');const _0x118eab=_0x4c3d89,_0x54be6d=_0x118eab[ROUTING_CONSUMER]??_0x118eab[_0x37f0e7(0x232)];if(_0x54be6d===undefined)throw CliErrors[_0x37f0e7(0x1ee)](_0x37f0e7(0x207)+_0x453449+_0x37f0e7(0x208)+ROUTING_CONSUMER+_0x37f0e7(0x22b));return normalizeDomainOrigin(_0x453449,_0x54be6d);}export function normalizeCdnBaseUrl(_0x119b96,_0x2ecf06){const _0x871c3a=a269_0x55c39f;if(typeof _0x2ecf06!==_0x871c3a(0x221)||!_0x2ecf06['trim']())throw CliErrors[_0x871c3a(0x1ee)](_0x871c3a(0x22d)+_0x119b96+_0x871c3a(0x21f));const _0x1f4390=_0x2ecf06[_0x871c3a(0x217)]()[_0x871c3a(0x20b)](/\/$/,'');let _0x1026ed;try{_0x1026ed=new URL(_0x1f4390);}catch{throw CliErrors[_0x871c3a(0x1ee)](_0x871c3a(0x22d)+_0x119b96+_0x871c3a(0x1f5)+_0x2ecf06+_0x871c3a(0x21b));}if(_0x1026ed[_0x871c3a(0x212)]!==_0x871c3a(0x219)||_0x1026ed[_0x871c3a(0x1fc)]||_0x1026ed['password']||_0x1026ed['search']||_0x1026ed[_0x871c3a(0x1ec)]||_0x1026ed[_0x871c3a(0x20c)][_0x871c3a(0x20b)](/\/$/,'')!==_0x1f4390||_0x119b96===_0x871c3a(0x214)&&_0x1026ed[_0x871c3a(0x1f6)]!==_0x1f4390)throw CliErrors[_0x871c3a(0x1ee)]('Invalid\x20cdn.'+_0x119b96+_0x871c3a(0x239)+(_0x119b96==='lovrabet'?'origin':_0x871c3a(0x201))+_0x871c3a(0x21c));return _0x1f4390;}export function resolveEnterpriseRoutingConfig(_0x39611b){const _0x5eb916=a269_0x55c39f;return resolveEnterpriseRoutingManifest(_0x39611b)?.[_0x5eb916(0x216)];}export function resolveEnterpriseRoutingManifest(_0x1203a6){const _0x1061a2=a269_0x55c39f;if(_0x1203a6===undefined)return undefined;if(!_0x1203a6||typeof _0x1203a6!==_0x1061a2(0x213)||Array[_0x1061a2(0x205)](_0x1203a6))throw CliErrors['validation'](_0x1061a2(0x226));return parseEnterpriseRoutingManifest(_0x1203a6);}export function readDomainConfigInput(_0x1918c6){const _0x586ce3=a269_0x55c39f,_0xdd78e7=isAbsolute(_0x1918c6)?_0x1918c6:resolve(process[_0x586ce3(0x227)](),_0x1918c6);if(!existsSync(_0xdd78e7))throw CliErrors[_0x586ce3(0x1ee)](_0x586ce3(0x22c)+_0xdd78e7);let _0x36c0cb;try{_0x36c0cb=JSON[_0x586ce3(0x203)](readFileSync(_0xdd78e7,_0x586ce3(0x1fd)));}catch{throw CliErrors[_0x586ce3(0x1ee)]('Invalid\x20domain\x20config\x20JSON:\x20'+_0xdd78e7);}if(!_0x36c0cb||typeof _0x36c0cb!==_0x586ce3(0x213)||Array[_0x586ce3(0x205)](_0x36c0cb))throw CliErrors[_0x586ce3(0x1ee)]('Invalid\x20domain\x20config:\x20expected\x20a\x20JSON\x20object.');const _0x213c72=_0x36c0cb;if('protocol'in _0x213c72)return parseEnterpriseRoutingManifest(_0x213c72);const _0x4fb627=Object[_0x586ce3(0x21e)](_0x213c72)[_0x586ce3(0x20d)](_0x335414=>!DOMAIN_CONFIG_FIELDS[_0x586ce3(0x223)](_0x335414));if(_0x4fb627[_0x586ce3(0x202)]>0x0)throw CliErrors['validation'](_0x586ce3(0x210)+_0x4fb627[_0x586ce3(0x1fe)](',\x20'),_0x586ce3(0x1f7)+DOMAIN_CONFIG_FIELDS[_0x586ce3(0x1fe)](',\x20'));const _0x101bb3={};for(const _0x1eb6dc of DOMAIN_CONFIG_FIELDS){_0x213c72[_0x1eb6dc]!==undefined&&(_0x101bb3[_0x1eb6dc]=normalizeDomainOrigin(_0x1eb6dc,_0x213c72[_0x1eb6dc]));}if(Object[_0x586ce3(0x21e)](_0x101bb3)['length']===0x0)throw CliErrors[_0x586ce3(0x1ee)](_0x586ce3(0x20a));return{'mode':_0x586ce3(0x235),'domains':_0x101bb3};}export function readDomainConfig(_0x330e1c){const _0x217c29=a269_0x55c39f;return readDomainConfigInput(_0x330e1c)[_0x217c29(0x216)];}export function resolveDomainConfigInput(_0x201357){const _0x598bf9=a269_0x55c39f,_0x299ce9=(_0x201357['str'](_0x598bf9(0x1f3))||'')['trim'](),_0x18f646=_0x299ce9?readDomainConfigInput(_0x299ce9):{'mode':_0x598bf9(0x235),'domains':{}},_0x31dc9b=DOMAIN_CONFIG_FIELDS['filter'](_0x507622=>Boolean((_0x201357[_0x598bf9(0x1fb)](DOMAIN_FLAGS[_0x507622])||'')['trim']()));if(_0x18f646['mode']===_0x598bf9(0x218)&&_0x31dc9b[_0x598bf9(0x202)]>0x0)throw CliErrors[_0x598bf9(0x1ee)](_0x598bf9(0x209),_0x598bf9(0x23a));for(const _0x9d1d27 of DOMAIN_CONFIG_FIELDS){const _0x837e93=(_0x201357[_0x598bf9(0x1fb)](DOMAIN_FLAGS[_0x9d1d27])||'')[_0x598bf9(0x217)]();if(_0x837e93)_0x18f646[_0x598bf9(0x216)][_0x9d1d27]=normalizeDomainOrigin(_0x9d1d27,_0x837e93);}return _0x18f646;}export function resolveDomainFlags(_0x5efab5){const _0x146a3e=a269_0x55c39f;return resolveDomainConfigInput(_0x5efab5)[_0x146a3e(0x216)];}export function parseEnterpriseRoutingManifest(_0x50834d){const _0x21342a=a269_0x55c39f;if(_0x50834d['protocol']!==ENTERPRISE_ROUTING_PROTOCOL||_0x50834d['kind']!==ENTERPRISE_ROUTING_KIND)throw CliErrors[_0x21342a(0x1ee)]('Unsupported\x20routing\x20manifest:\x20expected\x20protocol\x20\x22'+ENTERPRISE_ROUTING_PROTOCOL+'\x22\x20and\x20kind\x20\x22'+ENTERPRISE_ROUTING_KIND+'\x22.');if(!_0x50834d['domains']||typeof _0x50834d['domains']!==_0x21342a(0x213)||Array[_0x21342a(0x205)](_0x50834d[_0x21342a(0x216)]))throw CliErrors[_0x21342a(0x1ee)](_0x21342a(0x220));if(!_0x50834d[_0x21342a(0x1f2)]||typeof _0x50834d[_0x21342a(0x1f2)]!=='object'||Array[_0x21342a(0x205)](_0x50834d[_0x21342a(0x1f2)]))throw CliErrors[_0x21342a(0x1ee)](_0x21342a(0x237));const _0x47256b=_0x50834d[_0x21342a(0x216)],_0x31efbd=REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS['filter'](_0x440b0d=>_0x47256b[_0x440b0d]===undefined);if(_0x31efbd[_0x21342a(0x202)]>0x0)throw CliErrors[_0x21342a(0x1ee)](_0x21342a(0x230)+_0x31efbd['join'](',\x20'));if(_0x47256b[_0x21342a(0x215)]===undefined!==(_0x47256b['certificateDomain']===undefined))throw CliErrors[_0x21342a(0x1ee)]('Enterprise\x20routing\x20manifest\x20requires\x20localDomain\x20and\x20certificateDomain\x20together.');const _0x38bbbb=_0x50834d[_0x21342a(0x1f2)],_0xbab669=Object[_0x21342a(0x21e)](_0x38bbbb)[_0x21342a(0x20d)](_0x2a4b8a=>!ENTERPRISE_ROUTING_CDN_FIELDS['includes'](_0x2a4b8a));if(_0xbab669[_0x21342a(0x202)]>0x0)throw CliErrors[_0x21342a(0x1ee)](_0x21342a(0x200)+_0xbab669['join'](',\x20'),_0x21342a(0x1f7)+ENTERPRISE_ROUTING_CDN_FIELDS[_0x21342a(0x1fe)](',\x20'));const _0x399af3=REQUIRED_ENTERPRISE_ROUTING_CDN_FIELDS[_0x21342a(0x20d)](_0x312ee8=>_0x38bbbb[_0x312ee8]===undefined);if(_0x399af3[_0x21342a(0x202)]>0x0)throw CliErrors[_0x21342a(0x1ee)](_0x21342a(0x211)+_0x399af3[_0x21342a(0x1fe)](',\x20'));const _0x3b1832={};for(const _0x289623 of ENTERPRISE_ROUTING_CDN_FIELDS){_0x3b1832[_0x289623]=normalizeCdnBaseUrl(_0x289623,_0x38bbbb[_0x289623]);}const _0x21772a={},_0x5e4a58={};for(const _0x2381f0 of ENTERPRISE_ROUTING_DOMAIN_FIELDS){const _0x32c8b3=_0x47256b[_0x2381f0];if(_0x32c8b3===undefined)continue;const _0x57a0fe=normalizeRoutingDomainValue(_0x2381f0,_0x32c8b3);_0x21772a[_0x2381f0]=_0x57a0fe;const _0x26a81a=ENTERPRISE_TO_LOCAL_FIELD[_0x2381f0];_0x26a81a&&(_0x5e4a58[_0x26a81a]=_0x57a0fe);}return{'mode':_0x21342a(0x218),'domains':_0x5e4a58,'manifestDomains':_0x21772a,'cdn':_0x3b1832};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a270_0xd4df42=a270_0x5168;(function(_0xed064d,_0x3cc408){const _0x32f0d7=a270_0x5168,_0x139a6f=_0xed064d();while(!![]){try{const _0x98f2c2=parseInt(_0x32f0d7(0x13e))/0x1*(-parseInt(_0x32f0d7(0x148))/0x2)+-parseInt(_0x32f0d7(0x14c))/0x3+parseInt(_0x32f0d7(0x143))/0x4+-parseInt(_0x32f0d7(0x13b))/0x5*(-parseInt(_0x32f0d7(0x147))/0x6)+parseInt(_0x32f0d7(0x146))/0x7+parseInt(_0x32f0d7(0x145))/0x8+-parseInt(_0x32f0d7(0x13f))/0x9*(parseInt(_0x32f0d7(0x14e))/0xa);if(_0x98f2c2===_0x3cc408)break;else _0x139a6f['push'](_0x139a6f['shift']());}catch(_0xb3ffef){_0x139a6f['push'](_0x139a6f['shift']());}}}(a270_0x1841,0x47349));import{readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{join}from'node:path';import{getActiveRegion,getActiveCdn,getApiDomain,getAppDomain,getCertificateDomain,getKbDomain,getLocalDomain,getRuntimeDomain,getSkillDomain,getUserDomain,isIndependentDeployment}from'../constant/domain.js';import{getOfficialRoutingProfile}from'../constant/routing-profile.js';export const PROJECT_DOMAIN_ROUTING_FILE_NAME=a270_0xd4df42(0x13a);export const PROJECT_DOMAIN_ROUTING_PROTOCOL=a270_0xd4df42(0x14b);function a270_0x5168(_0x2f9f54,_0x46156f){_0x2f9f54=_0x2f9f54-0x13a;const _0x18415a=a270_0x1841();let _0x516868=_0x18415a[_0x2f9f54];return _0x516868;}export function getProjectDomainRoutingManifest(){const _0x4bd843=a270_0xd4df42,_0xb67492=getActiveRegion(),_0xbe3b5a=isIndependentDeployment(),_0x2d824c=getOfficialRoutingProfile(_0xb67492),_0x5eb19a=getLocalDomain(),_0x281e11=getCertificateDomain(),_0x143b97=getActiveCdn();if(!!_0x5eb19a!==!!_0x281e11)throw new Error(_0x4bd843(0x149));return{'protocol':PROJECT_DOMAIN_ROUTING_PROTOCOL,'mode':_0xbe3b5a?_0x4bd843(0x14d):'official','region':_0xbe3b5a?null:_0xb67492,'domains':{'api':getApiDomain(),'runtime':getRuntimeDomain(),'user':getUserDomain(),'app':getAppDomain(),'skill':getSkillDomain(),'kb':getKbDomain()},'cdn':_0x143b97,'local':_0x5eb19a&&_0x281e11?{'origin':_0x5eb19a,'certificateUrl':_0x281e11+_0x4bd843(0x13c)}:_0xbe3b5a?{'origin':_0x4bd843(0x144)}:{'origin':_0x2d824c['local'][_0x4bd843(0x14a)],'certificateUrl':_0x143b97[_0x4bd843(0x140)]+_0x4bd843(0x13c)}};}function a270_0x1841(){const _0x44f474=['9icqxgE','lovrabet','now','utf8','971360cTPRCU','http://localhost','1461616qKUbkV','1146929HXaraB','3504nDmvMK','2128QKmKaT','Independent\x20deployment\x20routing\x20requires\x20localDomain\x20and\x20certificateDomain\x20together.','origin','lovrabet-project-domain-routing/v1','136941QVStoN','independent','3643570FkPtva','rabetbase.domain-routing.json','1025oFrLgp','/cert/lovrabet-dev.json','.tmp','7sbDRvO'];a270_0x1841=function(){return _0x44f474;};return a270_0x1841();}export function writeProjectDomainRoutingManifest(_0xc43b0b){const _0x526ccd=a270_0xd4df42,_0x5b37c3=getProjectDomainRoutingManifest(),_0x486054=join(_0xc43b0b,PROJECT_DOMAIN_ROUTING_FILE_NAME),_0x2f0cba=JSON['stringify'](_0x5b37c3,null,0x2)+'\x0a';try{if(readFileSync(_0x486054,'utf8')===_0x2f0cba)return{'path':_0x486054,'manifest':_0x5b37c3,'changed':![]};}catch{}const _0x573f27=_0x486054+'.'+process['pid']+'.'+Date[_0x526ccd(0x141)]()+_0x526ccd(0x13d);try{writeFileSync(_0x573f27,_0x2f0cba,{'encoding':_0x526ccd(0x142),'mode':0x1a4}),renameSync(_0x573f27,_0x486054);}catch(_0x2ede8e){try{unlinkSync(_0x573f27);}catch{}throw _0x2ede8e;}return{'path':_0x486054,'manifest':_0x5b37c3,'changed':!![]};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a271_0x620b(_0x3e4617,_0x3e1c6e){_0x3e4617=_0x3e4617-0x1ee;const _0x3188cc=a271_0x3188();let _0x620b95=_0x3188cc[_0x3e4617];return _0x620b95;}function a271_0x3188(){const _0x25df56=['Rabetbase\x20configuration','1400888IiIbpr','appRegion','app','328bsqiwE','7902228ihbUix','value','507228bqSeVm','global\x20Rabetbase\x20configuration','app\x20profile\x20\x22','mergedRegion','config','444483nrEDlQ','stringify','18gubaqA','2158226ePQhmV','12001mSwhPb','\x20in\x20','globalRegion','36980cOssQt','14185dJgisE','Run\x20`','4wfVsAP','projectRegion','Invalid\x20country/region\x20','appName','validation','null','default','source','project','global'];a271_0x3188=function(){return _0x25df56;};return a271_0x3188();}const a271_0x429a72=a271_0x620b;(function(_0x44c918,_0x2a73c5){const _0x44f924=a271_0x620b,_0x5753aa=_0x44c918();while(!![]){try{const _0x348efb=-parseInt(_0x44f924(0x1ef))/0x1*(parseInt(_0x44f924(0x1f9))/0x2)+-parseInt(_0x44f924(0x20a))/0x3+-parseInt(_0x44f924(0x207))/0x4*(parseInt(_0x44f924(0x1f7))/0x5)+-parseInt(_0x44f924(0x208))/0x6+-parseInt(_0x44f924(0x1f2))/0x7+parseInt(_0x44f924(0x204))/0x8*(-parseInt(_0x44f924(0x1f1))/0x9)+parseInt(_0x44f924(0x1f6))/0xa*(parseInt(_0x44f924(0x1f3))/0xb);if(_0x348efb===_0x2a73c5)break;else _0x5753aa['push'](_0x5753aa['shift']());}catch(_0x5ea0a7){_0x5753aa['push'](_0x5753aa['shift']());}}}(a271_0x3188,0xbb908));import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_LOVRABET_REGION,isInvalidLovrabetRegion,normalizeLovrabetRegion}from'../constant/region.js';import{CliErrors}from'../errors.js';export function selectConfiguredRegion(_0xb3d449){const _0x3bfc64=a271_0x620b;if(_0xb3d449['appRegion']!==undefined&&_0xb3d449[_0x3bfc64(0x205)]!==null&&_0xb3d449[_0x3bfc64(0x205)]!=='')return{'value':_0xb3d449['appRegion'],'source':_0x3bfc64(0x206)};if(_0xb3d449[_0x3bfc64(0x1fa)]!==undefined&&_0xb3d449['projectRegion']!==null&&_0xb3d449[_0x3bfc64(0x1fa)]!=='')return{'value':_0xb3d449['projectRegion'],'source':_0x3bfc64(0x201)};if(_0xb3d449['globalRegion']!==undefined&&_0xb3d449[_0x3bfc64(0x1f5)]!==null&&_0xb3d449[_0x3bfc64(0x1f5)]!=='')return{'value':_0xb3d449[_0x3bfc64(0x1f5)],'source':_0x3bfc64(0x202)};if(_0xb3d449['mergedRegion']!==undefined&&_0xb3d449[_0x3bfc64(0x20d)]!==null&&_0xb3d449['mergedRegion']!=='')return{'value':_0xb3d449[_0x3bfc64(0x20d)],'source':_0x3bfc64(0x1ee)};return{'value':undefined,'source':_0x3bfc64(0x1ff)};}function describeConfiguredRegion(_0x2809c5){const _0x5d1c23=a271_0x620b;return typeof _0x2809c5==='string'?JSON[_0x5d1c23(0x1f0)](_0x2809c5):'a\x20value\x20of\x20type\x20'+(_0x2809c5===null?_0x5d1c23(0x1fe):typeof _0x2809c5);}export function resolveConfiguredRegion(_0x3e6f36,_0x1430d5=a271_0x429a72(0x203)){const _0x553425=a271_0x429a72;if(isInvalidLovrabetRegion(_0x3e6f36))throw CliErrors[_0x553425(0x1fd)](_0x553425(0x1fb)+describeConfiguredRegion(_0x3e6f36)+_0x553425(0x1f4)+_0x1430d5+'.',_0x553425(0x1f8)+CLI_BIN_NAME+'\x20doctor`\x20to\x20locate\x20and\x20repair\x20the\x20invalid\x20configuration\x20before\x20retrying.');return normalizeLovrabetRegion(_0x3e6f36)??DEFAULT_LOVRABET_REGION;}export function resolveEffectiveRegion(_0x4a9800){const _0x43c4bf=a271_0x429a72,_0x1da65d=selectConfiguredRegion(_0x4a9800),_0x27328b=_0x1da65d[_0x43c4bf(0x200)]===_0x43c4bf(0x206)?_0x4a9800[_0x43c4bf(0x1fc)]?_0x43c4bf(0x20c)+_0x4a9800[_0x43c4bf(0x1fc)]+'\x22':'selected\x20app\x20profile':_0x1da65d[_0x43c4bf(0x200)]===_0x43c4bf(0x201)?'project\x20Rabetbase\x20configuration':_0x1da65d[_0x43c4bf(0x200)]===_0x43c4bf(0x202)?_0x43c4bf(0x20b):'Rabetbase\x20configuration';return{'region':resolveConfiguredRegion(_0x1da65d[_0x43c4bf(0x209)],_0x27328b),'source':_0x1da65d[_0x43c4bf(0x200)]};}
|
package/lib/config/schema.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a272_0x5e8855=a272_0x51df;(function(_0x403138,_0x57a71a){const _0xcb10bb=a272_0x51df,_0x2895ef=_0x403138();while(!![]){try{const _0x33179f=parseInt(_0xcb10bb(0x10a))/0x1*(-parseInt(_0xcb10bb(0xf7))/0x2)+-parseInt(_0xcb10bb(0x102))/0x3*(parseInt(_0xcb10bb(0xe8))/0x4)+parseInt(_0xcb10bb(0x109))/0x5*(-parseInt(_0xcb10bb(0xeb))/0x6)+-parseInt(_0xcb10bb(0x104))/0x7+parseInt(_0xcb10bb(0x110))/0x8+parseInt(_0xcb10bb(0xfb))/0x9+parseInt(_0xcb10bb(0xfd))/0xa*(parseInt(_0xcb10bb(0xdb))/0xb);if(_0x33179f===_0x57a71a)break;else _0x2895ef['push'](_0x2895ef['shift']());}catch(_0x465967){_0x2895ef['push'](_0x2895ef['shift']());}}}(a272_0x5955,0xe398d));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';function a272_0x51df(_0x262b2c,_0x589b04){_0x262b2c=_0x262b2c-0xd9;const _0x595540=a272_0x5955();let _0x51dfbd=_0x595540[_0x262b2c];return _0x51dfbd;}import{ENABLED_LOVRABET_REGION_VALUES}from'../constant/region.js';export{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';export const PROJECT_CREATE_INHERITABLE_KEYS=[a272_0x5e8855(0xfc),a272_0x5e8855(0xf8),'locale',a272_0x5e8855(0x100),'riskLevel',a272_0x5e8855(0xe1),a272_0x5e8855(0xef),a272_0x5e8855(0xf3),a272_0x5e8855(0xe9),a272_0x5e8855(0xf9),'skillDomain','kbDomain',a272_0x5e8855(0x101),a272_0x5e8855(0xfa),a272_0x5e8855(0x106),a272_0x5e8855(0x112)];export const TOP_LEVEL_CONFIG_KEYS=new Set([a272_0x5e8855(0xfe),a272_0x5e8855(0xe5),a272_0x5e8855(0x113),'format','cookie','accessKey',a272_0x5e8855(0x10d),'region',a272_0x5e8855(0xf3),a272_0x5e8855(0xe9),a272_0x5e8855(0xf9),a272_0x5e8855(0xe6),a272_0x5e8855(0x10b),a272_0x5e8855(0x101),a272_0x5e8855(0xfa),'localDomain',a272_0x5e8855(0x112)]);export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES],'region':[...ENABLED_LOVRABET_REGION_VALUES]};export function formatConfigKeyList(_0x3322e9){const _0x3dbf93=a272_0x5e8855;return[..._0x3322e9][_0x3dbf93(0xdc)](',\x20');}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function isTopLevelConfigKey(_0x1171fa){const _0x80e79e=a272_0x5e8855;return TOP_LEVEL_CONFIG_KEYS[_0x80e79e(0xe7)](_0x1171fa);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x28e471=a272_0x5e8855;return _0x28e471(0xf0)+getTopLevelConfigKeySummary()+')';}export const APP_PROFILE_FLAG_KEY_MAP={'apiGroup':a272_0x5e8855(0x103),'region':a272_0x5e8855(0xe1),'env':a272_0x5e8855(0xe5),'apiDir':'apiDir','cookie':a272_0x5e8855(0xfc),'accessKey':a272_0x5e8855(0xf8),'defaultFormat':a272_0x5e8855(0x100),'pageSize':'pageSize','riskLevel':a272_0x5e8855(0xde),'locale':'locale'};export function getAppProfileFlagDefs(){const _0x1b9142=a272_0x5e8855;return[{'name':'apiGroup','type':_0x1b9142(0xe3),'description':'Join\x20key\x20for\x20app\x20profiles\x20that\x20share\x20one\x20generated\x20API\x20model\x20registry'},{'name':_0x1b9142(0xe1),'type':_0x1b9142(0xe3),'description':_0x1b9142(0xe2),'enum':[...ENABLED_LOVRABET_REGION_VALUES]},{'name':_0x1b9142(0xe5),'type':_0x1b9142(0xe3),'description':'Target\x20environment','enum':[...RABETBASE_ENV_VALUES]},{'name':_0x1b9142(0x10d),'type':_0x1b9142(0xe3),'description':_0x1b9142(0xdd)},{'name':_0x1b9142(0xfc),'type':_0x1b9142(0xe3),'description':_0x1b9142(0x107),'hidden':!![]},{'name':_0x1b9142(0xf8),'type':_0x1b9142(0xe3),'description':'Access\x20key','hidden':!![]},{'name':_0x1b9142(0x10e),'type':'string','description':_0x1b9142(0x10c),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':_0x1b9142(0xf2),'type':_0x1b9142(0x10f),'description':'Default\x20page\x20size'},{'name':_0x1b9142(0xde),'type':_0x1b9142(0xe3),'description':_0x1b9142(0xea),'enum':[...RISK_LEVEL_VALUES]},{'name':'locale','type':_0x1b9142(0xe3),'description':'App\x20locale\x20(not\x20CLI\x20language;\x20reserved\x20for\x20later\x20app\x20use)'}];}export function collectAppProfileOverrides(_0x1fedeb){const _0x3fd599=a272_0x5e8855,_0x28b44a={};for(const [_0x511a93,_0x2d390a]of Object['entries'](APP_PROFILE_FLAG_KEY_MAP)){const _0x2e18f9=_0x1fedeb(_0x511a93);if(!_0x2e18f9)continue;_0x28b44a[_0x2d390a]=_0x2d390a===_0x3fd599(0xf2)?Number(_0x2e18f9):_0x2e18f9;}return _0x28b44a;}export function buildAppProfileListFields(_0x2d0bce){const _0x52f50a=a272_0x5e8855;return{'apiGroup':_0x2d0bce['apiGroup']??null,'region':_0x2d0bce[_0x52f50a(0xe1)]??null,'env':_0x2d0bce[_0x52f50a(0xe5)]??null,'apiDir':_0x2d0bce[_0x52f50a(0x10d)]??null,'hasCookie':!!_0x2d0bce['cookie'],'hasAccessKey':!!_0x2d0bce[_0x52f50a(0xf8)],'format':_0x2d0bce['format']??null,'pageSize':_0x2d0bce[_0x52f50a(0xf2)]??null,'riskLevel':_0x2d0bce[_0x52f50a(0xde)]??null,'locale':_0x2d0bce[_0x52f50a(0x113)]??null};}export function buildAppDoctorFields(_0x6f9e29,_0x25f5d8){const _0x49447d=a272_0x5e8855;return{'region':{'value':_0x6f9e29['region']||_0x25f5d8[_0x49447d(0xe1)],'source':_0x6f9e29[_0x49447d(0xe1)]?_0x49447d(0xe0):_0x49447d(0x108)},'env':{'value':_0x6f9e29[_0x49447d(0xe5)]||_0x25f5d8[_0x49447d(0xe5)],'source':_0x6f9e29[_0x49447d(0xe5)]?_0x49447d(0xe0):'inherit'},'apiDir':{'value':_0x6f9e29[_0x49447d(0x10d)]||_0x25f5d8[_0x49447d(0x10d)],'source':_0x6f9e29[_0x49447d(0x10d)]?_0x49447d(0xe0):_0x49447d(0x108)},'cookie':{'value':_0x6f9e29['cookie']||_0x25f5d8[_0x49447d(0xfc)],'source':_0x6f9e29[_0x49447d(0xfc)]?_0x49447d(0xe0):_0x49447d(0x108)},'accessKey':{'value':_0x6f9e29[_0x49447d(0xf8)]||_0x25f5d8['accessKey'],'source':_0x6f9e29[_0x49447d(0xf8)]?_0x49447d(0xe0):_0x49447d(0x108)}};}function a272_0x5955(){const _0x455f5f=['15435024GKgVcl','join','API\x20directory\x20path','riskLevel','filter','app','region','Country/region\x20for\x20this\x20app\x20profile','string','some','env','skillDomain','has','177700eKptvP','apiDomain','Risk\x20level','12jeFRxE','object','toLowerCase','trim','routing','Config\x20key\x20(','keys','pageSize','userDomain','en-US','values','length','32556nRfOFq','accessKey','runtimeDomain','appDomain','7533270xnDAaG','cookie','10aNcLuj','appcode','isArray','format','kbServiceDomain','12ZtWvCh','apiGroup','2233357mkejtZ','defaultApp','localDomain','Auth\x20cookie','inherit','3834830CkNxQO','23DoIbyF','kbDomain','Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','apiDir','defaultFormat','number','8776800sXShQc','apps','certificateDomain','locale','entries','zh-CN'];a272_0x5955=function(){return _0x455f5f;};return a272_0x5955();}export function buildCanonicalAppConfig(_0x272cce,_0x135cbd){const _0x215e63=a272_0x5e8855,_0x2ae931=_0x272cce['map'](_0x421ce8=>String(_0x421ce8||'')[_0x215e63(0xee)]())[_0x215e63(0xdf)](Boolean);if(_0x2ae931[_0x215e63(0xf6)]===0x0)return{};const _0x51e0f9={};for(const _0x51942b of _0x2ae931){_0x51e0f9[_0x51942b]=_0x135cbd&&!isProduction(_0x135cbd)?{'appcode':_0x51942b,'env':_0x135cbd}:{'appcode':_0x51942b};}return _0x2ae931['length']>0x1?{'apps':_0x51e0f9,'defaultApp':_0x2ae931[0x0]}:{'apps':_0x51e0f9};}export function normalizeStoredDefaultApp(_0x420516,_0x2f4ce4){const _0xd32d04=a272_0x5e8855,_0x532e5c=_0x420516[_0xd32d04(0x111)]&&typeof _0x420516[_0xd32d04(0x111)]==='object'?_0x420516[_0xd32d04(0x111)]:{},_0x356337=Object[_0xd32d04(0xf1)](_0x532e5c);if(_0x356337[_0xd32d04(0xf6)]<=0x1)return delete _0x420516['defaultApp'],undefined;const _0x5bf8ca=typeof _0x420516[_0xd32d04(0x105)]===_0xd32d04(0xe3)&&_0x532e5c[_0x420516[_0xd32d04(0x105)]]?_0x420516[_0xd32d04(0x105)]:undefined,_0x567a22=_0x2f4ce4&&_0x532e5c[_0x2f4ce4]?_0x2f4ce4:_0x5bf8ca;if(_0x567a22)return _0x420516[_0xd32d04(0x105)]=_0x567a22,_0x567a22;return delete _0x420516['defaultApp'],undefined;}export function buildCanonicalProjectConfig(_0x20958c,_0x5802fc){const _0x1a3843=a272_0x5e8855,{appCodes:appCodes=[],env:_0x2f7a72,metadata:_0x24d964}=_0x5802fc,_0x39aa3f={..._0x20958c,..._0x24d964||{}};delete _0x39aa3f[_0x1a3843(0xfe)],delete _0x39aa3f[_0x1a3843(0xe0)];const _0x18cb0d=_0x2f7a72||(typeof _0x39aa3f[_0x1a3843(0xe5)]===_0x1a3843(0xe3)?_0x39aa3f[_0x1a3843(0xe5)]:'')||DEFAULT_CONFIG_VALUES[_0x1a3843(0xe5)];if(isProduction(_0x18cb0d))delete _0x39aa3f[_0x1a3843(0xe5)];else _0x39aa3f[_0x1a3843(0xe5)]=_0x18cb0d;const _0x3b36bb=buildCanonicalAppConfig(appCodes,_0x18cb0d);if(Object['keys'](_0x3b36bb)[_0x1a3843(0xf6)]>0x0){_0x39aa3f[_0x1a3843(0x111)]=_0x3b36bb['apps'];if(_0x3b36bb[_0x1a3843(0x105)])_0x39aa3f[_0x1a3843(0x105)]=_0x3b36bb[_0x1a3843(0x105)];else delete _0x39aa3f[_0x1a3843(0x105)];}return normalizeConfigForWrite(_0x39aa3f);}function isRecord(_0x2b057c){const _0x111e8f=a272_0x5e8855;return!!_0x2b057c&&typeof _0x2b057c===_0x111e8f(0xec)&&!Array[_0x111e8f(0xff)](_0x2b057c);}export function normalizeConfigForWrite(_0x4b4eb1){const _0x4254c8=a272_0x5e8855,_0x38e2c1={..._0x4b4eb1},_0x4fe8ec=isRecord(_0x4b4eb1[_0x4254c8(0x111)])?_0x4b4eb1[_0x4254c8(0x111)]:undefined,_0x229b13=_0x4fe8ec?Object['fromEntries'](Object[_0x4254c8(0xd9)](_0x4fe8ec)['map'](([_0x2ab8e2,_0x58e87e])=>[_0x2ab8e2,isRecord(_0x58e87e)?{..._0x58e87e}:_0x58e87e])):undefined;if(_0x229b13){const _0x1fb58e=typeof _0x38e2c1[_0x4254c8(0xe5)]===_0x4254c8(0xe3)?_0x38e2c1[_0x4254c8(0xe5)]:undefined,_0x143d1a=Object[_0x4254c8(0xf5)](_0x229b13)[_0x4254c8(0xe4)](_0x2d8034=>isRecord(_0x2d8034)&&typeof _0x2d8034['env']===_0x4254c8(0xe3)&&isProduction(_0x2d8034[_0x4254c8(0xe5)]));if(_0x1fb58e&&isDaily(_0x1fb58e)&&_0x143d1a){for(const _0x37a4e5 of Object[_0x4254c8(0xf5)](_0x229b13)){if(!isRecord(_0x37a4e5))continue;if(_0x37a4e5[_0x4254c8(0xe5)]===undefined)_0x37a4e5[_0x4254c8(0xe5)]=_0x1fb58e;}delete _0x38e2c1[_0x4254c8(0xe5)];}for(const _0x2dafed of Object[_0x4254c8(0xf5)](_0x229b13)){isRecord(_0x2dafed)&&typeof _0x2dafed['env']===_0x4254c8(0xe3)&&isProduction(_0x2dafed[_0x4254c8(0xe5)])&&delete _0x2dafed[_0x4254c8(0xe5)];}_0x38e2c1[_0x4254c8(0x111)]=_0x229b13;}return typeof _0x38e2c1['env']==='string'&&isProduction(_0x38e2c1[_0x4254c8(0xe5)])&&delete _0x38e2c1[_0x4254c8(0xe5)],_0x38e2c1;}const LOCALE_MAP={'zh':a272_0x5e8855(0xda),'zh-cn':a272_0x5e8855(0xda),'zh_cn':a272_0x5e8855(0xda),'en':a272_0x5e8855(0xf4),'en-us':a272_0x5e8855(0xf4),'en_us':a272_0x5e8855(0xf4)};export function normalizeLocale(_0x2a4113){const _0x1c1ba7=a272_0x5e8855;if(!_0x2a4113)return null;return LOCALE_MAP[_0x2a4113[_0x1c1ba7(0xed)]()]??null;}
|
|
1
|
+
const a272_0x6d9453=a272_0x1fa1;(function(_0x5dc7b4,_0x5efd48){const _0x147c1c=a272_0x1fa1,_0x525437=_0x5dc7b4();while(!![]){try{const _0x569e38=parseInt(_0x147c1c(0x21e))/0x1+-parseInt(_0x147c1c(0x204))/0x2+parseInt(_0x147c1c(0x201))/0x3*(-parseInt(_0x147c1c(0x1fd))/0x4)+parseInt(_0x147c1c(0x1f4))/0x5*(parseInt(_0x147c1c(0x20e))/0x6)+-parseInt(_0x147c1c(0x1f7))/0x7*(parseInt(_0x147c1c(0x20f))/0x8)+parseInt(_0x147c1c(0x224))/0x9+parseInt(_0x147c1c(0x219))/0xa;if(_0x569e38===_0x5efd48)break;else _0x525437['push'](_0x525437['shift']());}catch(_0x4c5729){_0x525437['push'](_0x525437['shift']());}}}(a272_0x4b82,0xa5898));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=[a272_0x6d9453(0x21d),'accessKey',a272_0x6d9453(0x206),'format',a272_0x6d9453(0x22c),a272_0x6d9453(0x21f),'routing','userDomain','apiDomain','runtimeDomain',a272_0x6d9453(0x20c),a272_0x6d9453(0x216),'kbServiceDomain',a272_0x6d9453(0x203),a272_0x6d9453(0x1fa),a272_0x6d9453(0x1fe)];export const TOP_LEVEL_CONFIG_KEYS=new Set(['appcode',a272_0x6d9453(0x1ff),a272_0x6d9453(0x206),a272_0x6d9453(0x1f6),a272_0x6d9453(0x21d),a272_0x6d9453(0x227),a272_0x6d9453(0x212),a272_0x6d9453(0x21f),a272_0x6d9453(0x207),a272_0x6d9453(0x209),a272_0x6d9453(0x202),a272_0x6d9453(0x20c),a272_0x6d9453(0x216),a272_0x6d9453(0x1fb),a272_0x6d9453(0x203),a272_0x6d9453(0x1fa),a272_0x6d9453(0x1fe)]);export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES],'region':[...ENABLED_LOVRABET_REGION_VALUES]};export function formatConfigKeyList(_0x283f7b){const _0x544369=a272_0x6d9453;return[..._0x283f7b][_0x544369(0x208)](',\x20');}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}function a272_0x4b82(){const _0x4e09cf=['Target\x20environment','276PPAJJc','certificateDomain','env','values','34977mfhZMS','runtimeDomain','appDomain','1905034tWhkWp','has','locale','userDomain','join','apiDomain','Default\x20page\x20size','App\x20locale\x20(not\x20CLI\x20language;\x20reserved\x20for\x20later\x20app\x20use)','skillDomain','defaultFormat','2428770NltVsZ','664vMJdlR','API\x20directory\x20path','en-US','apiDir','filter','entries','map','kbDomain','app','defaultApp','11781530kKtbxA','isArray','some','toLowerCase','cookie','598488rlNCzt','region','inherit','appcode','object','apps','1426941dNOArB','pageSize','apiGroup','accessKey','Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','string','keys','fromEntries','riskLevel','15XvCqls','Join\x20key\x20for\x20app\x20profiles\x20that\x20share\x20one\x20generated\x20API\x20model\x20registry','format','60263VfEfBu','Access\x20key','length','localDomain','kbServiceDomain'];a272_0x4b82=function(){return _0x4e09cf;};return a272_0x4b82();}export function isTopLevelConfigKey(_0x495cf2){const _0x2025c9=a272_0x6d9453;return TOP_LEVEL_CONFIG_KEYS[_0x2025c9(0x205)](_0x495cf2);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){return'Config\x20key\x20('+getTopLevelConfigKeySummary()+')';}export const APP_PROFILE_FLAG_KEY_MAP={'apiGroup':'apiGroup','region':a272_0x6d9453(0x21f),'env':a272_0x6d9453(0x1ff),'apiDir':'apiDir','cookie':a272_0x6d9453(0x21d),'accessKey':a272_0x6d9453(0x227),'defaultFormat':'format','pageSize':a272_0x6d9453(0x225),'riskLevel':a272_0x6d9453(0x22c),'locale':a272_0x6d9453(0x206)};export function getAppProfileFlagDefs(){const _0x60c723=a272_0x6d9453;return[{'name':'apiGroup','type':_0x60c723(0x229),'description':_0x60c723(0x1f5)},{'name':_0x60c723(0x21f),'type':_0x60c723(0x229),'description':'Country/region\x20for\x20this\x20app\x20profile','enum':[...ENABLED_LOVRABET_REGION_VALUES]},{'name':'env','type':'string','description':_0x60c723(0x1fc),'enum':[...RABETBASE_ENV_VALUES]},{'name':'apiDir','type':_0x60c723(0x229),'description':_0x60c723(0x210)},{'name':_0x60c723(0x21d),'type':_0x60c723(0x229),'description':'Auth\x20cookie','hidden':!![]},{'name':_0x60c723(0x227),'type':_0x60c723(0x229),'description':_0x60c723(0x1f8),'hidden':!![]},{'name':_0x60c723(0x20d),'type':_0x60c723(0x229),'description':_0x60c723(0x228),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':'pageSize','type':'number','description':_0x60c723(0x20a)},{'name':_0x60c723(0x22c),'type':_0x60c723(0x229),'description':'Risk\x20level','enum':[...RISK_LEVEL_VALUES]},{'name':'locale','type':'string','description':_0x60c723(0x20b)}];}export function collectAppProfileOverrides(_0x3d8a38){const _0x244e29=a272_0x6d9453,_0x162306={};for(const [_0x4f88f6,_0xa62b1c]of Object[_0x244e29(0x214)](APP_PROFILE_FLAG_KEY_MAP)){const _0x5cb8bd=_0x3d8a38(_0x4f88f6);if(!_0x5cb8bd)continue;_0x162306[_0xa62b1c]=_0xa62b1c==='pageSize'?Number(_0x5cb8bd):_0x5cb8bd;}return _0x162306;}export function buildAppProfileListFields(_0xbf8164){const _0x2d706a=a272_0x6d9453;return{'apiGroup':_0xbf8164[_0x2d706a(0x226)]??null,'region':_0xbf8164['region']??null,'env':_0xbf8164[_0x2d706a(0x1ff)]??null,'apiDir':_0xbf8164[_0x2d706a(0x212)]??null,'hasCookie':!!_0xbf8164[_0x2d706a(0x21d)],'hasAccessKey':!!_0xbf8164[_0x2d706a(0x227)],'format':_0xbf8164[_0x2d706a(0x1f6)]??null,'pageSize':_0xbf8164[_0x2d706a(0x225)]??null,'riskLevel':_0xbf8164[_0x2d706a(0x22c)]??null,'locale':_0xbf8164[_0x2d706a(0x206)]??null};}export function buildAppDoctorFields(_0x2faad4,_0x47758a){const _0x26ce2=a272_0x6d9453;return{'region':{'value':_0x2faad4[_0x26ce2(0x21f)]||_0x47758a['region'],'source':_0x2faad4[_0x26ce2(0x21f)]?'app':_0x26ce2(0x220)},'env':{'value':_0x2faad4[_0x26ce2(0x1ff)]||_0x47758a['env'],'source':_0x2faad4[_0x26ce2(0x1ff)]?'app':_0x26ce2(0x220)},'apiDir':{'value':_0x2faad4['apiDir']||_0x47758a[_0x26ce2(0x212)],'source':_0x2faad4['apiDir']?_0x26ce2(0x217):_0x26ce2(0x220)},'cookie':{'value':_0x2faad4[_0x26ce2(0x21d)]||_0x47758a[_0x26ce2(0x21d)],'source':_0x2faad4['cookie']?_0x26ce2(0x217):_0x26ce2(0x220)},'accessKey':{'value':_0x2faad4[_0x26ce2(0x227)]||_0x47758a[_0x26ce2(0x227)],'source':_0x2faad4[_0x26ce2(0x227)]?_0x26ce2(0x217):_0x26ce2(0x220)}};}export function buildCanonicalAppConfig(_0x32c0cb,_0x376588){const _0x50eb57=a272_0x6d9453,_0x2b9cae=_0x32c0cb['map'](_0x7dba28=>String(_0x7dba28||'')['trim']())[_0x50eb57(0x213)](Boolean);if(_0x2b9cae[_0x50eb57(0x1f9)]===0x0)return{};const _0x4b7132={};for(const _0x5c1505 of _0x2b9cae){_0x4b7132[_0x5c1505]=_0x376588&&!isProduction(_0x376588)?{'appcode':_0x5c1505,'env':_0x376588}:{'appcode':_0x5c1505};}return _0x2b9cae[_0x50eb57(0x1f9)]>0x1?{'apps':_0x4b7132,'defaultApp':_0x2b9cae[0x0]}:{'apps':_0x4b7132};}export function normalizeStoredDefaultApp(_0x220862,_0x29b66c){const _0x410de3=a272_0x6d9453,_0x1d34f9=_0x220862[_0x410de3(0x223)]&&typeof _0x220862[_0x410de3(0x223)]===_0x410de3(0x222)?_0x220862[_0x410de3(0x223)]:{},_0x36a00b=Object[_0x410de3(0x22a)](_0x1d34f9);if(_0x36a00b[_0x410de3(0x1f9)]<=0x1)return delete _0x220862[_0x410de3(0x218)],undefined;const _0x3c71bf=typeof _0x220862['defaultApp']===_0x410de3(0x229)&&_0x1d34f9[_0x220862[_0x410de3(0x218)]]?_0x220862['defaultApp']:undefined,_0x3de496=_0x29b66c&&_0x1d34f9[_0x29b66c]?_0x29b66c:_0x3c71bf;if(_0x3de496)return _0x220862[_0x410de3(0x218)]=_0x3de496,_0x3de496;return delete _0x220862[_0x410de3(0x218)],undefined;}export function buildCanonicalProjectConfig(_0x2613a6,_0x4c9b50){const _0x3cf9aa=a272_0x6d9453,{appCodes:appCodes=[],env:_0x362593,metadata:_0x392eee}=_0x4c9b50,_0x28e08c={..._0x2613a6,..._0x392eee||{}};delete _0x28e08c[_0x3cf9aa(0x221)],delete _0x28e08c[_0x3cf9aa(0x217)];const _0x42f2bc=_0x362593||(typeof _0x28e08c[_0x3cf9aa(0x1ff)]===_0x3cf9aa(0x229)?_0x28e08c[_0x3cf9aa(0x1ff)]:'')||DEFAULT_CONFIG_VALUES[_0x3cf9aa(0x1ff)];if(isProduction(_0x42f2bc))delete _0x28e08c[_0x3cf9aa(0x1ff)];else _0x28e08c[_0x3cf9aa(0x1ff)]=_0x42f2bc;const _0x3a2a99=buildCanonicalAppConfig(appCodes,_0x42f2bc);if(Object[_0x3cf9aa(0x22a)](_0x3a2a99)[_0x3cf9aa(0x1f9)]>0x0){_0x28e08c[_0x3cf9aa(0x223)]=_0x3a2a99['apps'];if(_0x3a2a99[_0x3cf9aa(0x218)])_0x28e08c[_0x3cf9aa(0x218)]=_0x3a2a99[_0x3cf9aa(0x218)];else delete _0x28e08c[_0x3cf9aa(0x218)];}return normalizeConfigForWrite(_0x28e08c);}function isRecord(_0x121371){const _0xe41b1f=a272_0x6d9453;return!!_0x121371&&typeof _0x121371==='object'&&!Array[_0xe41b1f(0x21a)](_0x121371);}export function normalizeConfigForWrite(_0x4f0206){const _0xc88c42=a272_0x6d9453,_0x156068={..._0x4f0206},_0x3e60ca=isRecord(_0x4f0206[_0xc88c42(0x223)])?_0x4f0206[_0xc88c42(0x223)]:undefined,_0x48a42d=_0x3e60ca?Object[_0xc88c42(0x22b)](Object['entries'](_0x3e60ca)[_0xc88c42(0x215)](([_0x3c031a,_0x747bf6])=>[_0x3c031a,isRecord(_0x747bf6)?{..._0x747bf6}:_0x747bf6])):undefined;if(_0x48a42d){const _0x195bd1=typeof _0x156068[_0xc88c42(0x1ff)]===_0xc88c42(0x229)?_0x156068['env']:undefined,_0xfc54fd=Object[_0xc88c42(0x200)](_0x48a42d)[_0xc88c42(0x21b)](_0x57505c=>isRecord(_0x57505c)&&typeof _0x57505c[_0xc88c42(0x1ff)]===_0xc88c42(0x229)&&isProduction(_0x57505c[_0xc88c42(0x1ff)]));if(_0x195bd1&&isDaily(_0x195bd1)&&_0xfc54fd){for(const _0x15ceab of Object[_0xc88c42(0x200)](_0x48a42d)){if(!isRecord(_0x15ceab))continue;if(_0x15ceab['env']===undefined)_0x15ceab[_0xc88c42(0x1ff)]=_0x195bd1;}delete _0x156068[_0xc88c42(0x1ff)];}for(const _0x36956c of Object[_0xc88c42(0x200)](_0x48a42d)){isRecord(_0x36956c)&&typeof _0x36956c['env']==='string'&&isProduction(_0x36956c[_0xc88c42(0x1ff)])&&delete _0x36956c[_0xc88c42(0x1ff)];}_0x156068[_0xc88c42(0x223)]=_0x48a42d;}return typeof _0x156068[_0xc88c42(0x1ff)]==='string'&&isProduction(_0x156068[_0xc88c42(0x1ff)])&&delete _0x156068[_0xc88c42(0x1ff)],_0x156068;}function a272_0x1fa1(_0x3a0933,_0x9c727){_0x3a0933=_0x3a0933-0x1f4;const _0x4b8244=a272_0x4b82();let _0x1fa1a1=_0x4b8244[_0x3a0933];return _0x1fa1a1;}const LOCALE_MAP={'zh':'zh-CN','zh-cn':'zh-CN','zh_cn':'zh-CN','en':a272_0x6d9453(0x211),'en-us':'en-US','en_us':a272_0x6d9453(0x211)};export function normalizeLocale(_0x5dd583){const _0x4178c8=a272_0x6d9453;if(!_0x5dd583)return null;return LOCALE_MAP[_0x5dd583[_0x4178c8(0x21c)]()]??null;}
|
package/lib/constant/cdn.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a273_0x576a(){const _0x562f54=['12zzhmjt','401054tYLkUT','3nDQPuF','freeze','158612isUjSZ','714132wdGDnS','12OALAph','config/index.json','rabetbase-cli','11dwjVzp','lovrabet','122668YDhdQy','sub-app-react-demo-','732770JFBAUa','sub-app-react-demo-beta.zip','364063xuBCgO','35OOpRsl','4400786lpWfLd','.zip','8jdPsae','sub-app-react-demo.zip'];a273_0x576a=function(){return _0x562f54;};return a273_0x576a();}const a273_0x1f7033=a273_0x2f88;(function(_0x5e6b7b,_0xb3d318){const _0x304c48=a273_0x2f88,_0x44735b=_0x5e6b7b();while(!![]){try{const _0x1cc3df=-parseInt(_0x304c48(0x180))/0x1+-parseInt(_0x304c48(0x17d))/0x2*(-parseInt(_0x304c48(0x17e))/0x3)+parseInt(_0x304c48(0x172))/0x4*(-parseInt(_0x304c48(0x177))/0x5)+-parseInt(_0x304c48(0x17c))/0x6*(-parseInt(_0x304c48(0x176))/0x7)+parseInt(_0x304c48(0x17a))/0x8*(-parseInt(_0x304c48(0x181))/0x9)+parseInt(_0x304c48(0x174))/0xa*(-parseInt(_0x304c48(0x170))/0xb)+-parseInt(_0x304c48(0x182))/0xc*(-parseInt(_0x304c48(0x178))/0xd);if(_0x1cc3df===_0xb3d318)break;else _0x44735b['push'](_0x44735b['shift']());}catch(_0xa934a0){_0x44735b['push'](_0x44735b['shift']());}}}(a273_0x576a,0x1c9a9));import{getActiveCdn}from'../constant/domain.js';const RABETBASE_CDN_PROJECT=a273_0x1f7033(0x16f),RABETBASE_CDN_CONFIG_ORIGIN='https://g.lovrabet.com',CDN_CONFIG_PATH=a273_0x1f7033(0x183),PROJECT_TEMPLATE_ASSET_PATH='templates/projects',PROJECT_TEMPLATE_ARCHIVE_NAMES=Object[a273_0x1f7033(0x17f)]({'release':a273_0x1f7033(0x17b),'beta':a273_0x1f7033(0x175)});export const RABETBASE_CDN_PROJECT_PATH='/dist/'+RABETBASE_CDN_PROJECT;function getRabetbaseCdnBaseUrl(){const _0x313dc3=a273_0x1f7033;return''+getActiveCdn()[_0x313dc3(0x171)]+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 a273_0x2f88(_0x3c869f,_0x2d3e87){_0x3c869f=_0x3c869f-0x16f;const _0x576a6d=a273_0x576a();let _0x2f88df=_0x576a6d[_0x3c869f];return _0x2f88df;}export function getProjectTemplateLegacyAssetBaseUrl(){return''+RABETBASE_CDN_CONFIG_ORIGIN+RABETBASE_CDN_PROJECT_PATH+'/'+PROJECT_TEMPLATE_ASSET_PATH;}export function getProjectTemplateRelativeUrl(_0x4048bf,_0x4f0a79){const _0x2fd9c9=a273_0x1f7033,_0x59c248=_0x4f0a79?_0x2fd9c9(0x173)+_0x4f0a79+_0x2fd9c9(0x179):PROJECT_TEMPLATE_ARCHIVE_NAMES[_0x4048bf];return RABETBASE_CDN_PROJECT_PATH+'/'+PROJECT_TEMPLATE_ASSET_PATH+'/'+_0x59c248;}
|
package/lib/constant/cli.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a274_0x203a74=a274_0x2698;(function(_0xd88714,_0x3213d6){const _0x556dda=a274_0x2698,_0x457b49=_0xd88714();while(!![]){try{const _0x5e864e=-parseInt(_0x556dda(0x261))/0x1+-parseInt(_0x556dda(0x1f8))/0x2*(parseInt(_0x556dda(0x268))/0x3)+parseInt(_0x556dda(0x1fc))/0x4+-parseInt(_0x556dda(0x26c))/0x5+-parseInt(_0x556dda(0x217))/0x6*(parseInt(_0x556dda(0x275))/0x7)+parseInt(_0x556dda(0x20c))/0x8+-parseInt(_0x556dda(0x249))/0x9;if(_0x5e864e===_0x3213d6)break;else _0x457b49['push'](_0x457b49['shift']());}catch(_0x1c1580){_0x457b49['push'](_0x457b49['shift']());}}}(a274_0x5647,0x7e1cd));export const CLI_BIN_NAME='rabetbase';export const CLI_DISPLAY_NAME=a274_0x203a74(0x211);function a274_0x2698(_0x118ced,_0x11ec1b){_0x118ced=_0x118ced-0x1e4;const _0x5647cd=a274_0x5647();let _0x269899=_0x5647cd[_0x118ced];return _0x269899;}export const NPM_PACKAGE_NAME=a274_0x203a74(0x1e4);function a274_0x5647(){const _0x4b4aba=['keyword','expectParentId','Select\x20app\x20profile\x20by\x20name','descriptionFile','Flow\x20code','Watch\x20mode','env','production\x20|\x20daily','skip-imports','7293000rjcrCq','Output\x20path','flowCode','Page\x20number','Config\x20value','Rabetbase\x20CLI','Comma-separated\x20metadata\x20codes','datasetcode','parent-id','<expr>','Reveal\x20sensitive\x20value','2694iogKYd','flowStatus','expectedChildrenCount','help','sqlcode','flowType','clear','boolean','Description','expect-path','functionNode','task-id','value','fromEnv','Use\x20global\x20config\x20scope','Menu\x20sort\x20value','output','expected-children-count','sqlname','menu-ids','key','DB\x20ID','dbid','Target\x20path','Page\x20size','zh-CN\x20|\x20en-US','meowKey','params','all','dryRun','non-interactive','Operation\x20type','appcode','sort','reveal','locale','Enable\x20Backend\x20Function\x20save','Maximum\x20search\x20hits','json\x20|\x20pretty\x20|\x20compress','Tags','stdin','Read\x20value\x20from\x20stdin','force','fromEntries','Alias\x20for\x20--non-interactive','Confirm\x20destructive\x20action','Title','app','string','file','1671552kJPIGw','Keyword\x20filter','SQL\x20name','Type\x20filter','dataset-code','verbose','Parent\x20menu\x20id','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','Expected\x20current\x20parent\x20menu\x20id','nonInteractive','page-size','Preview\x20operation\x20without\x20executing','Schemas','menuIds','<name>','type','description','Flow\x20status','confirm','Override\x20appcode','watch','code','yes','page','76562KhfQCK','Flow\x20name','Skip\x20confirmation\x20for\x20high-risk\x20writes','codes','Flow\x20type','dbId','query','3LLkqto','Show\x20help','title','format','3729840jxoOrZ','App\x20locale\x20(workspace\x20pass-through;\x20not\x20CLI\x20language)','Menu\x20label','pageSize','Apply\x20to\x20all','expectPath','label','target','<code>','3003eWEjWt','flow-type','@lovrabet/rabetbase-cli','sql-name','flowName','dry-run','Use\x20remote','pagesize','tags','expected-count','operation-type','Use\x20project\x20config\x20scope','project','taskId','sql','flow-name','Description\x20file','description-file','expect-parent-id','Expected\x20affected\x20count','SQL\x20code','map','193564hJvuQm','skipImports','File\x20path','global','3610372icpVRS','topk','Environment','enableBffSave','Comma-separated\x20menu\x20IDs','SQL\x20string','Dataset\x20code'];a274_0x5647=function(){return _0x4b4aba;};return a274_0x5647();}export const GLOBAL_FLAGS=[{'name':a274_0x203a74(0x237),'meowKey':'appcode','type':a274_0x203a74(0x247),'description':a274_0x203a74(0x25c),'hint':a274_0x203a74(0x274)},{'name':a274_0x203a74(0x246),'meowKey':a274_0x203a74(0x246),'type':a274_0x203a74(0x247),'description':a274_0x203a74(0x205),'hint':a274_0x203a74(0x257)},{'name':'env','meowKey':a274_0x203a74(0x209),'type':a274_0x203a74(0x247),'description':a274_0x203a74(0x1fe),'hint':a274_0x203a74(0x20a)},{'name':'format','meowKey':a274_0x203a74(0x26b),'type':a274_0x203a74(0x247),'description':'Output\x20format','hint':a274_0x203a74(0x23d)},{'name':'jq','meowKey':'jq','type':'string','description':a274_0x203a74(0x250),'hint':a274_0x203a74(0x215)},{'name':a274_0x203a74(0x1e7),'meowKey':a274_0x203a74(0x234),'type':a274_0x203a74(0x21e),'description':a274_0x203a74(0x254)},{'name':a274_0x203a74(0x25f),'meowKey':a274_0x203a74(0x25f),'type':'boolean','description':a274_0x203a74(0x263)},{'name':'non-interactive','meowKey':a274_0x203a74(0x252),'type':a274_0x203a74(0x21e),'description':'Force\x20non-interactive\x20mode\x20(CI)'},{'name':a274_0x203a74(0x1fb),'meowKey':'global','type':a274_0x203a74(0x21e),'description':a274_0x203a74(0x225)},{'name':a274_0x203a74(0x1ee),'meowKey':'project','type':a274_0x203a74(0x21e),'description':a274_0x203a74(0x1ed)},{'name':'ci','meowKey':'ci','type':a274_0x203a74(0x21e),'description':a274_0x203a74(0x243),'hidden':!![]},{'name':a274_0x203a74(0x21a),'meowKey':a274_0x203a74(0x21a),'type':a274_0x203a74(0x21e),'description':a274_0x203a74(0x269)},{'name':a274_0x203a74(0x23a),'meowKey':a274_0x203a74(0x23a),'type':'string','description':a274_0x203a74(0x26d),'hidden':!![],'hint':a274_0x203a74(0x230)},{'name':'name','meowKey':'name','type':a274_0x203a74(0x247),'description':'Name','hidden':!![]},{'name':a274_0x203a74(0x26a),'meowKey':a274_0x203a74(0x26a),'type':a274_0x203a74(0x247),'description':a274_0x203a74(0x245),'hidden':!![]},{'name':a274_0x203a74(0x267),'meowKey':a274_0x203a74(0x267),'type':a274_0x203a74(0x247),'description':'Search\x20query','hidden':!![]},{'name':a274_0x203a74(0x1fd),'meowKey':a274_0x203a74(0x1fd),'type':'string','description':a274_0x203a74(0x23c),'hidden':!![]},{'name':'clear','meowKey':a274_0x203a74(0x21d),'type':a274_0x203a74(0x21e),'description':'Clear','hidden':!![]},{'name':'watch','meowKey':a274_0x203a74(0x25d),'type':a274_0x203a74(0x21e),'description':a274_0x203a74(0x208),'hidden':!![]},{'name':'output','meowKey':a274_0x203a74(0x227),'type':a274_0x203a74(0x247),'description':a274_0x203a74(0x20d),'hidden':!![]},{'name':a274_0x203a74(0x232),'meowKey':a274_0x203a74(0x232),'type':a274_0x203a74(0x247),'description':'JSON\x20params','hidden':!![]},{'name':'datasetcode','meowKey':a274_0x203a74(0x213),'type':a274_0x203a74(0x247),'description':a274_0x203a74(0x202),'hidden':!![]},{'name':a274_0x203a74(0x233),'meowKey':a274_0x203a74(0x233),'type':a274_0x203a74(0x21e),'description':a274_0x203a74(0x270),'hidden':!![]},{'name':'enable-bff-save','meowKey':a274_0x203a74(0x1ff),'type':a274_0x203a74(0x21e),'description':a274_0x203a74(0x23b),'hidden':!![]},{'name':'id','meowKey':'id','type':a274_0x203a74(0x247),'description':'Record\x20ID','hidden':!![]},{'name':a274_0x203a74(0x258),'meowKey':a274_0x203a74(0x258),'type':'string','description':a274_0x203a74(0x24c),'hidden':!![]},{'name':a274_0x203a74(0x248),'meowKey':a274_0x203a74(0x248),'type':a274_0x203a74(0x247),'description':a274_0x203a74(0x1fa),'hidden':!![]},{'name':'flow-code','meowKey':a274_0x203a74(0x20e),'type':a274_0x203a74(0x247),'description':a274_0x203a74(0x207),'hidden':!![]},{'name':a274_0x203a74(0x1f1),'meowKey':a274_0x203a74(0x1e6),'type':a274_0x203a74(0x247),'description':a274_0x203a74(0x262),'hidden':!![]},{'name':'flow-status','meowKey':a274_0x203a74(0x218),'type':a274_0x203a74(0x247),'description':a274_0x203a74(0x25a),'hidden':!![]},{'name':a274_0x203a74(0x276),'meowKey':a274_0x203a74(0x21c),'type':'string','description':a274_0x203a74(0x265),'hidden':!![]},{'name':a274_0x203a74(0x24d),'meowKey':'datasetCode','type':a274_0x203a74(0x247),'description':a274_0x203a74(0x202),'hidden':!![]},{'name':a274_0x203a74(0x21b),'meowKey':a274_0x203a74(0x21b),'type':a274_0x203a74(0x247),'description':a274_0x203a74(0x1f6),'hidden':!![]},{'name':a274_0x203a74(0x1e5),'meowKey':'sqlName','type':'string','description':a274_0x203a74(0x24b),'hidden':!![]},{'name':a274_0x203a74(0x229),'meowKey':a274_0x203a74(0x229),'type':a274_0x203a74(0x247),'description':a274_0x203a74(0x24b),'hidden':!![]},{'name':'db-id','meowKey':a274_0x203a74(0x266),'type':'string','description':'DB\x20ID','hidden':!![]},{'name':'dbid','meowKey':a274_0x203a74(0x22d),'type':'string','description':a274_0x203a74(0x22c),'hidden':!![]},{'name':a274_0x203a74(0x259),'meowKey':a274_0x203a74(0x259),'type':a274_0x203a74(0x247),'description':a274_0x203a74(0x21f),'hidden':!![]},{'name':a274_0x203a74(0x1f3),'meowKey':a274_0x203a74(0x206),'type':a274_0x203a74(0x247),'description':a274_0x203a74(0x1f2),'hidden':!![]},{'name':a274_0x203a74(0x260),'meowKey':a274_0x203a74(0x260),'type':'string','description':a274_0x203a74(0x20f),'hidden':!![]},{'name':a274_0x203a74(0x253),'meowKey':a274_0x203a74(0x26f),'type':a274_0x203a74(0x247),'description':a274_0x203a74(0x22f),'hidden':!![]},{'name':a274_0x203a74(0x1e9),'meowKey':a274_0x203a74(0x1e9),'type':a274_0x203a74(0x247),'description':a274_0x203a74(0x22f),'hidden':!![]},{'name':a274_0x203a74(0x203),'meowKey':a274_0x203a74(0x203),'type':a274_0x203a74(0x247),'description':a274_0x203a74(0x24a),'hidden':!![]},{'name':a274_0x203a74(0x25e),'meowKey':'code','type':'string','description':'Code\x20filter','hidden':!![]},{'name':a274_0x203a74(0x1f0),'meowKey':a274_0x203a74(0x1f0),'type':a274_0x203a74(0x247),'description':a274_0x203a74(0x201),'hidden':!![]},{'name':'schemas','meowKey':'schemas','type':'string','description':a274_0x203a74(0x255),'hidden':!![]},{'name':'operation','meowKey':'operation','type':a274_0x203a74(0x247),'description':a274_0x203a74(0x236),'hidden':!![]},{'name':a274_0x203a74(0x273),'meowKey':a274_0x203a74(0x273),'type':a274_0x203a74(0x247),'description':a274_0x203a74(0x22e),'hidden':!![]},{'name':a274_0x203a74(0x20b),'meowKey':a274_0x203a74(0x1f9),'type':'boolean','description':'Skip\x20import\x20generation','hidden':!![]},{'name':a274_0x203a74(0x22b),'meowKey':'key','type':a274_0x203a74(0x247),'description':'Config\x20key','hidden':!![]},{'name':'value','meowKey':a274_0x203a74(0x223),'type':'string','description':a274_0x203a74(0x210),'hidden':!![]},{'name':a274_0x203a74(0x1ea),'meowKey':a274_0x203a74(0x1ea),'type':a274_0x203a74(0x247),'description':a274_0x203a74(0x23e),'hidden':!![]},{'name':a274_0x203a74(0x23f),'meowKey':'stdin','type':a274_0x203a74(0x21e),'description':a274_0x203a74(0x240),'hidden':!![]},{'name':'from-env','meowKey':a274_0x203a74(0x224),'type':'string','description':'Read\x20value\x20from\x20environment\x20variable','hidden':!![]},{'name':a274_0x203a74(0x239),'meowKey':'reveal','type':a274_0x203a74(0x21e),'description':a274_0x203a74(0x216),'hidden':!![]},{'name':a274_0x203a74(0x241),'meowKey':a274_0x203a74(0x241),'type':a274_0x203a74(0x21e),'description':'Force\x20overwrite','hidden':!![]},{'name':a274_0x203a74(0x25b),'meowKey':'confirm','type':a274_0x203a74(0x21e),'description':a274_0x203a74(0x244),'hidden':!![]},{'name':'remote','meowKey':'remote','type':a274_0x203a74(0x21e),'description':a274_0x203a74(0x1e8),'hidden':!![]},{'name':a274_0x203a74(0x24e),'meowKey':a274_0x203a74(0x24e),'type':a274_0x203a74(0x21e),'description':'Verbose\x20output','hidden':!![]},{'name':a274_0x203a74(0x1eb),'meowKey':'expectedCount','type':a274_0x203a74(0x247),'description':a274_0x203a74(0x1f5),'hidden':!![]},{'name':a274_0x203a74(0x272),'meowKey':a274_0x203a74(0x272),'type':a274_0x203a74(0x247),'description':a274_0x203a74(0x26e),'hidden':!![]},{'name':a274_0x203a74(0x214),'meowKey':'parentId','type':a274_0x203a74(0x247),'description':a274_0x203a74(0x24f),'hidden':!![]},{'name':'sort','meowKey':a274_0x203a74(0x238),'type':a274_0x203a74(0x247),'description':a274_0x203a74(0x226),'hidden':!![]},{'name':a274_0x203a74(0x1f4),'meowKey':a274_0x203a74(0x204),'type':'string','description':a274_0x203a74(0x251),'hidden':!![]},{'name':a274_0x203a74(0x220),'meowKey':a274_0x203a74(0x271),'type':'string','description':'Expected\x20current\x20menu\x20path','hidden':!![]},{'name':a274_0x203a74(0x228),'meowKey':a274_0x203a74(0x219),'type':a274_0x203a74(0x247),'description':'Expected\x20current\x20child\x20count','hidden':!![]},{'name':a274_0x203a74(0x22a),'meowKey':a274_0x203a74(0x256),'type':'string','description':a274_0x203a74(0x200),'hidden':!![]},{'name':a274_0x203a74(0x222),'meowKey':a274_0x203a74(0x1ef),'type':a274_0x203a74(0x247),'description':'Asynchronous\x20task\x20ID','hidden':!![]},{'name':a274_0x203a74(0x1ec),'meowKey':'operationType','type':a274_0x203a74(0x247),'description':a274_0x203a74(0x236),'hidden':!![]},{'name':'function-node','meowKey':a274_0x203a74(0x221),'type':a274_0x203a74(0x247),'description':'Function\x20node','hidden':!![]},{'name':'codes','meowKey':a274_0x203a74(0x264),'type':a274_0x203a74(0x247),'description':a274_0x203a74(0x212),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a274_0x203a74(0x237),a274_0x203a74(0x246),a274_0x203a74(0x209),a274_0x203a74(0x26b),'jq',a274_0x203a74(0x1e7),a274_0x203a74(0x25f),a274_0x203a74(0x235),'ci']);export function buildMeowFlags(){const _0x21ad83=a274_0x203a74;return Object[_0x21ad83(0x242)](GLOBAL_FLAGS[_0x21ad83(0x1f7)](_0x37e36e=>[_0x37e36e[_0x21ad83(0x231)],{'type':_0x37e36e[_0x21ad83(0x258)]}]));}
|
|
1
|
+
const a274_0x4e66a5=a274_0x1b96;(function(_0x1dbccc,_0x543fe7){const _0x48e8bb=a274_0x1b96,_0x2a795f=_0x1dbccc();while(!![]){try{const _0x90fd84=parseInt(_0x48e8bb(0x1ae))/0x1*(-parseInt(_0x48e8bb(0x1db))/0x2)+parseInt(_0x48e8bb(0x1b7))/0x3+parseInt(_0x48e8bb(0x184))/0x4+parseInt(_0x48e8bb(0x187))/0x5*(-parseInt(_0x48e8bb(0x200))/0x6)+parseInt(_0x48e8bb(0x1c4))/0x7+parseInt(_0x48e8bb(0x1c8))/0x8+-parseInt(_0x48e8bb(0x193))/0x9;if(_0x90fd84===_0x543fe7)break;else _0x2a795f['push'](_0x2a795f['shift']());}catch(_0x242a05){_0x2a795f['push'](_0x2a795f['shift']());}}}(a274_0x3ac3,0xa48bf));export const CLI_BIN_NAME=a274_0x4e66a5(0x1b8);export const CLI_DISPLAY_NAME=a274_0x4e66a5(0x1ed);export const NPM_PACKAGE_NAME=a274_0x4e66a5(0x213);export const GLOBAL_FLAGS=[{'name':a274_0x4e66a5(0x1c9),'meowKey':a274_0x4e66a5(0x1c9),'type':'string','description':a274_0x4e66a5(0x1cf),'hint':a274_0x4e66a5(0x1d7)},{'name':a274_0x4e66a5(0x21a),'meowKey':'app','type':a274_0x4e66a5(0x1a5),'description':a274_0x4e66a5(0x214),'hint':a274_0x4e66a5(0x1ce)},{'name':a274_0x4e66a5(0x209),'meowKey':a274_0x4e66a5(0x209),'type':a274_0x4e66a5(0x1a5),'description':a274_0x4e66a5(0x1a4),'hint':a274_0x4e66a5(0x1df)},{'name':a274_0x4e66a5(0x197),'meowKey':'format','type':a274_0x4e66a5(0x1a5),'description':a274_0x4e66a5(0x207),'hint':a274_0x4e66a5(0x1dc)},{'name':'jq','meowKey':'jq','type':a274_0x4e66a5(0x1a5),'description':'Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','hint':a274_0x4e66a5(0x1ef)},{'name':a274_0x4e66a5(0x1c5),'meowKey':'dryRun','type':a274_0x4e66a5(0x20b),'description':'Preview\x20operation\x20without\x20executing'},{'name':'yes','meowKey':a274_0x4e66a5(0x1ad),'type':a274_0x4e66a5(0x20b),'description':a274_0x4e66a5(0x201)},{'name':a274_0x4e66a5(0x1ff),'meowKey':a274_0x4e66a5(0x1cc),'type':a274_0x4e66a5(0x20b),'description':a274_0x4e66a5(0x1f4)},{'name':'global','meowKey':a274_0x4e66a5(0x1e1),'type':a274_0x4e66a5(0x20b),'description':a274_0x4e66a5(0x1b5)},{'name':a274_0x4e66a5(0x208),'meowKey':a274_0x4e66a5(0x208),'type':a274_0x4e66a5(0x20b),'description':a274_0x4e66a5(0x1b0)},{'name':'ci','meowKey':'ci','type':a274_0x4e66a5(0x20b),'description':a274_0x4e66a5(0x1d9),'hidden':!![]},{'name':a274_0x4e66a5(0x1ea),'meowKey':'help','type':a274_0x4e66a5(0x20b),'description':a274_0x4e66a5(0x183)},{'name':a274_0x4e66a5(0x1f3),'meowKey':a274_0x4e66a5(0x1f3),'type':a274_0x4e66a5(0x1a5),'description':a274_0x4e66a5(0x19c),'hidden':!![],'hint':a274_0x4e66a5(0x1cb)},{'name':'name','meowKey':a274_0x4e66a5(0x1d5),'type':'string','description':a274_0x4e66a5(0x18d),'hidden':!![]},{'name':'title','meowKey':'title','type':a274_0x4e66a5(0x1a5),'description':a274_0x4e66a5(0x1ca),'hidden':!![]},{'name':a274_0x4e66a5(0x212),'meowKey':a274_0x4e66a5(0x212),'type':'string','description':a274_0x4e66a5(0x205),'hidden':!![]},{'name':a274_0x4e66a5(0x1d2),'meowKey':a274_0x4e66a5(0x1d2),'type':a274_0x4e66a5(0x1a5),'description':'Maximum\x20search\x20hits','hidden':!![]},{'name':a274_0x4e66a5(0x20c),'meowKey':'clear','type':'boolean','description':a274_0x4e66a5(0x1f2),'hidden':!![]},{'name':a274_0x4e66a5(0x195),'meowKey':a274_0x4e66a5(0x195),'type':a274_0x4e66a5(0x20b),'description':a274_0x4e66a5(0x19d),'hidden':!![]},{'name':a274_0x4e66a5(0x1d3),'meowKey':a274_0x4e66a5(0x1d3),'type':'string','description':a274_0x4e66a5(0x20e),'hidden':!![]},{'name':a274_0x4e66a5(0x218),'meowKey':a274_0x4e66a5(0x218),'type':a274_0x4e66a5(0x1a5),'description':'JSON\x20params','hidden':!![]},{'name':'datasetcode','meowKey':'datasetcode','type':a274_0x4e66a5(0x1a5),'description':a274_0x4e66a5(0x1ec),'hidden':!![]},{'name':a274_0x4e66a5(0x1a3),'meowKey':a274_0x4e66a5(0x1a3),'type':a274_0x4e66a5(0x20b),'description':a274_0x4e66a5(0x1ab),'hidden':!![]},{'name':'enable-bff-save','meowKey':'enableBffSave','type':a274_0x4e66a5(0x20b),'description':'Enable\x20Backend\x20Function\x20save','hidden':!![]},{'name':'id','meowKey':'id','type':'string','description':a274_0x4e66a5(0x1c1),'hidden':!![]},{'name':a274_0x4e66a5(0x186),'meowKey':a274_0x4e66a5(0x186),'type':'string','description':a274_0x4e66a5(0x19f),'hidden':!![]},{'name':a274_0x4e66a5(0x1ba),'meowKey':a274_0x4e66a5(0x1ba),'type':a274_0x4e66a5(0x1a5),'description':'File\x20path','hidden':!![]},{'name':a274_0x4e66a5(0x1e0),'meowKey':'flowCode','type':'string','description':a274_0x4e66a5(0x1bd),'hidden':!![]},{'name':a274_0x4e66a5(0x1eb),'meowKey':a274_0x4e66a5(0x1f0),'type':'string','description':a274_0x4e66a5(0x20d),'hidden':!![]},{'name':a274_0x4e66a5(0x1d0),'meowKey':a274_0x4e66a5(0x216),'type':a274_0x4e66a5(0x1a5),'description':'Flow\x20status','hidden':!![]},{'name':a274_0x4e66a5(0x18c),'meowKey':a274_0x4e66a5(0x1dd),'type':a274_0x4e66a5(0x1a5),'description':a274_0x4e66a5(0x188),'hidden':!![]},{'name':'dataset-code','meowKey':'datasetCode','type':a274_0x4e66a5(0x1a5),'description':'Dataset\x20code','hidden':!![]},{'name':a274_0x4e66a5(0x1fb),'meowKey':a274_0x4e66a5(0x1fb),'type':'string','description':a274_0x4e66a5(0x1de),'hidden':!![]},{'name':a274_0x4e66a5(0x1aa),'meowKey':a274_0x4e66a5(0x192),'type':a274_0x4e66a5(0x1a5),'description':a274_0x4e66a5(0x1da),'hidden':!![]},{'name':a274_0x4e66a5(0x1c3),'meowKey':a274_0x4e66a5(0x1c3),'type':a274_0x4e66a5(0x1a5),'description':a274_0x4e66a5(0x1da),'hidden':!![]},{'name':a274_0x4e66a5(0x18a),'meowKey':a274_0x4e66a5(0x1e2),'type':'string','description':'DB\x20ID','hidden':!![]},{'name':a274_0x4e66a5(0x1f6),'meowKey':a274_0x4e66a5(0x1f6),'type':a274_0x4e66a5(0x1a5),'description':a274_0x4e66a5(0x204),'hidden':!![]},{'name':a274_0x4e66a5(0x1c6),'meowKey':'description','type':a274_0x4e66a5(0x1a5),'description':a274_0x4e66a5(0x1b1),'hidden':!![]},{'name':a274_0x4e66a5(0x1fd),'meowKey':a274_0x4e66a5(0x18f),'type':a274_0x4e66a5(0x1a5),'description':a274_0x4e66a5(0x1e6),'hidden':!![]},{'name':a274_0x4e66a5(0x196),'meowKey':a274_0x4e66a5(0x196),'type':'string','description':'Page\x20number','hidden':!![]},{'name':a274_0x4e66a5(0x194),'meowKey':a274_0x4e66a5(0x202),'type':a274_0x4e66a5(0x1a5),'description':'Page\x20size','hidden':!![]},{'name':'pagesize','meowKey':a274_0x4e66a5(0x199),'type':a274_0x4e66a5(0x1a5),'description':a274_0x4e66a5(0x1b2),'hidden':!![]},{'name':a274_0x4e66a5(0x1d1),'meowKey':a274_0x4e66a5(0x1d1),'type':'string','description':a274_0x4e66a5(0x18e),'hidden':!![]},{'name':a274_0x4e66a5(0x19b),'meowKey':a274_0x4e66a5(0x19b),'type':a274_0x4e66a5(0x1a5),'description':a274_0x4e66a5(0x1cd),'hidden':!![]},{'name':a274_0x4e66a5(0x19a),'meowKey':a274_0x4e66a5(0x19a),'type':a274_0x4e66a5(0x1a5),'description':a274_0x4e66a5(0x1b9),'hidden':!![]},{'name':a274_0x4e66a5(0x1bc),'meowKey':'schemas','type':'string','description':a274_0x4e66a5(0x1b3),'hidden':!![]},{'name':a274_0x4e66a5(0x1ac),'meowKey':a274_0x4e66a5(0x1ac),'type':a274_0x4e66a5(0x1a5),'description':'Operation\x20type','hidden':!![]},{'name':a274_0x4e66a5(0x1f9),'meowKey':a274_0x4e66a5(0x1f9),'type':a274_0x4e66a5(0x1a5),'description':a274_0x4e66a5(0x1af),'hidden':!![]},{'name':a274_0x4e66a5(0x1ee),'meowKey':a274_0x4e66a5(0x1e9),'type':a274_0x4e66a5(0x20b),'description':a274_0x4e66a5(0x1e7),'hidden':!![]},{'name':a274_0x4e66a5(0x1c7),'meowKey':'key','type':a274_0x4e66a5(0x1a5),'description':a274_0x4e66a5(0x210),'hidden':!![]},{'name':a274_0x4e66a5(0x21b),'meowKey':a274_0x4e66a5(0x21b),'type':a274_0x4e66a5(0x1a5),'description':a274_0x4e66a5(0x1f5),'hidden':!![]},{'name':a274_0x4e66a5(0x20a),'meowKey':'tags','type':a274_0x4e66a5(0x1a5),'description':a274_0x4e66a5(0x190),'hidden':!![]},{'name':a274_0x4e66a5(0x217),'meowKey':a274_0x4e66a5(0x217),'type':a274_0x4e66a5(0x20b),'description':a274_0x4e66a5(0x206),'hidden':!![]},{'name':a274_0x4e66a5(0x1d6),'meowKey':a274_0x4e66a5(0x189),'type':a274_0x4e66a5(0x1a5),'description':a274_0x4e66a5(0x1f1),'hidden':!![]},{'name':a274_0x4e66a5(0x1e8),'meowKey':a274_0x4e66a5(0x1e8),'type':'boolean','description':a274_0x4e66a5(0x1fa),'hidden':!![]},{'name':a274_0x4e66a5(0x203),'meowKey':a274_0x4e66a5(0x203),'type':a274_0x4e66a5(0x20b),'description':a274_0x4e66a5(0x18b),'hidden':!![]},{'name':a274_0x4e66a5(0x1a6),'meowKey':a274_0x4e66a5(0x1a6),'type':a274_0x4e66a5(0x20b),'description':a274_0x4e66a5(0x1e3),'hidden':!![]},{'name':a274_0x4e66a5(0x211),'meowKey':a274_0x4e66a5(0x211),'type':'boolean','description':a274_0x4e66a5(0x1b4),'hidden':!![]},{'name':a274_0x4e66a5(0x1bf),'meowKey':a274_0x4e66a5(0x1bf),'type':a274_0x4e66a5(0x20b),'description':a274_0x4e66a5(0x1b6),'hidden':!![]},{'name':a274_0x4e66a5(0x1fc),'meowKey':a274_0x4e66a5(0x1a9),'type':a274_0x4e66a5(0x1a5),'description':a274_0x4e66a5(0x1f7),'hidden':!![]},{'name':a274_0x4e66a5(0x1fe),'meowKey':a274_0x4e66a5(0x1fe),'type':'string','description':a274_0x4e66a5(0x1e5),'hidden':!![]},{'name':'parent-id','meowKey':a274_0x4e66a5(0x1a1),'type':'string','description':'Parent\x20menu\x20id','hidden':!![]},{'name':a274_0x4e66a5(0x1bb),'meowKey':a274_0x4e66a5(0x1bb),'type':'string','description':'Menu\x20sort\x20value','hidden':!![]},{'name':a274_0x4e66a5(0x1a2),'meowKey':a274_0x4e66a5(0x1f8),'type':'string','description':'Expected\x20current\x20parent\x20menu\x20id','hidden':!![]},{'name':'expect-path','meowKey':'expectPath','type':a274_0x4e66a5(0x1a5),'description':a274_0x4e66a5(0x219),'hidden':!![]},{'name':a274_0x4e66a5(0x1d4),'meowKey':a274_0x4e66a5(0x1e4),'type':a274_0x4e66a5(0x1a5),'description':a274_0x4e66a5(0x185),'hidden':!![]},{'name':a274_0x4e66a5(0x198),'meowKey':a274_0x4e66a5(0x1a8),'type':a274_0x4e66a5(0x1a5),'description':a274_0x4e66a5(0x1a7),'hidden':!![]},{'name':a274_0x4e66a5(0x215),'meowKey':'taskId','type':a274_0x4e66a5(0x1a5),'description':'Asynchronous\x20task\x20ID','hidden':!![]},{'name':a274_0x4e66a5(0x1c2),'meowKey':a274_0x4e66a5(0x1a0),'type':a274_0x4e66a5(0x1a5),'description':'Operation\x20type','hidden':!![]},{'name':a274_0x4e66a5(0x1d8),'meowKey':a274_0x4e66a5(0x19e),'type':'string','description':a274_0x4e66a5(0x1c0),'hidden':!![]},{'name':'codes','meowKey':a274_0x4e66a5(0x20f),'type':a274_0x4e66a5(0x1a5),'description':a274_0x4e66a5(0x191),'hidden':!![]}];function a274_0x1b96(_0x4c181c,_0x7debe1){_0x4c181c=_0x4c181c-0x183;const _0x3ac3ea=a274_0x3ac3();let _0x1b9649=_0x3ac3ea[_0x4c181c];return _0x1b9649;}export const PIPELINE_FLAG_NAMES=new Set([a274_0x4e66a5(0x1c9),a274_0x4e66a5(0x21a),a274_0x4e66a5(0x209),a274_0x4e66a5(0x197),'jq',a274_0x4e66a5(0x1c5),'yes',a274_0x4e66a5(0x1ff),'ci']);function a274_0x3ac3(){const _0x496ffc=['flow-type','Name','Keyword\x20filter','descriptionFile','Tags','Comma-separated\x20metadata\x20codes','sqlName','7878852JwyiuY','page-size','watch','page','format','menu-ids','pagesize','sql','code','App\x20locale\x20(workspace\x20pass-through;\x20not\x20CLI\x20language)','Watch\x20mode','functionNode','Type\x20filter','operationType','parentId','expect-parent-id','all','Environment','string','confirm','Comma-separated\x20menu\x20IDs','menuIds','expectedCount','sql-name','Apply\x20to\x20all','operation','yes','5062TRDCcb','Target\x20path','Use\x20project\x20config\x20scope','Description','Page\x20size','Schemas','Use\x20remote','Use\x20global\x20config\x20scope','Verbose\x20output','3371655zrKcNy','rabetbase','SQL\x20string','file','sort','schemas','Flow\x20code','fromEntries','verbose','Function\x20node','Record\x20ID','operation-type','sqlname','1837857uxBmyp','dry-run','description','key','5019440iNQlLd','appcode','Title','zh-CN\x20|\x20en-US','nonInteractive','Code\x20filter','<name>','Override\x20appcode','flow-status','keyword','topk','output','expected-children-count','name','from-env','<code>','function-node','Alias\x20for\x20--non-interactive','SQL\x20name','194rCqCxa','json\x20|\x20pretty\x20|\x20compress','flowType','SQL\x20code','production\x20|\x20daily','flow-code','global','dbId','Confirm\x20destructive\x20action','expectedChildrenCount','Menu\x20label','Description\x20file','Skip\x20import\x20generation','reveal','skipImports','help','flow-name','Dataset\x20code','Rabetbase\x20CLI','skip-imports','<expr>','flowName','Read\x20value\x20from\x20environment\x20variable','Clear','locale','Force\x20non-interactive\x20mode\x20(CI)','Config\x20value','dbid','Expected\x20affected\x20count','expectParentId','target','Reveal\x20sensitive\x20value','sqlcode','expected-count','description-file','label','non-interactive','44094lsPELZ','Skip\x20confirmation\x20for\x20high-risk\x20writes','pageSize','force','DB\x20ID','Search\x20query','Read\x20value\x20from\x20stdin','Output\x20format','project','env','tags','boolean','clear','Flow\x20name','Output\x20path','codes','Config\x20key','remote','query','@lovrabet/rabetbase-cli','Select\x20app\x20profile\x20by\x20name','task-id','flowStatus','stdin','params','Expected\x20current\x20menu\x20path','app','value','Show\x20help','2075768VMCbbc','Expected\x20current\x20child\x20count','type','335yVcFKU','Flow\x20type','fromEnv','db-id','Force\x20overwrite'];a274_0x3ac3=function(){return _0x496ffc;};return a274_0x3ac3();}export function buildMeowFlags(){const _0x3d4b02=a274_0x4e66a5;return Object[_0x3d4b02(0x1be)](GLOBAL_FLAGS['map'](_0x5c6532=>[_0x5c6532['meowKey'],{'type':_0x5c6532[_0x3d4b02(0x186)]}]));}
|
package/lib/constant/defaults.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a275_0x1acdd3=a275_0x5d05;function a275_0x5bc8(){const _0x4dc59d=['406WAKnaG','en-US','2682772eAiKdB','1178967XQlyyk','44084KAvcQf','279KCiYFN','write','compress','833285rUrruh','84688vUFAqP','6525354rnMvCO','9008343OuXpPU','20tlTrcQ'];a275_0x5bc8=function(){return _0x4dc59d;};return a275_0x5bc8();}(function(_0x4db967,_0x19a14a){const _0xac3b06=a275_0x5d05,_0x26bc14=_0x4db967();while(!![]){try{const _0x306b32=-parseInt(_0xac3b06(0x189))/0x1+-parseInt(_0xac3b06(0x188))/0x2+-parseInt(_0xac3b06(0x18b))/0x3*(-parseInt(_0xac3b06(0x18a))/0x4)+-parseInt(_0xac3b06(0x18e))/0x5+parseInt(_0xac3b06(0x190))/0x6+parseInt(_0xac3b06(0x193))/0x7*(-parseInt(_0xac3b06(0x18f))/0x8)+parseInt(_0xac3b06(0x191))/0x9*(parseInt(_0xac3b06(0x192))/0xa);if(_0x306b32===_0x19a14a)break;else _0x26bc14['push'](_0x26bc14['shift']());}catch(_0x58c401){_0x26bc14['push'](_0x26bc14['shift']());}}}(a275_0x5bc8,0xc6938));function a275_0x5d05(_0x4978dd,_0x59523f){_0x4978dd=_0x4978dd-0x188;const _0x5bc879=a275_0x5bc8();let _0x5d0590=_0x5bc879[_0x4978dd];return _0x5d0590;}import{DEFAULT_API_DIR}from'../constant/paths.js';export const DEFAULT_CONFIG_VALUES={'env':'production','format':a275_0x1acdd3(0x18d),'locale':a275_0x1acdd3(0x194),'riskLevel':a275_0x1acdd3(0x18c),'apiDir':DEFAULT_API_DIR};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a275_0x1acdd3(0x18d);
|
package/lib/constant/domain.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a276_0xe88e24=a276_0x516f;(function(_0x25c2b3,_0x55445a){const _0x47a687=a276_0x516f,_0x22b3f5=_0x25c2b3();while(!![]){try{const _0x10485b=-parseInt(_0x47a687(0x178))/0x1+parseInt(_0x47a687(0x188))/0x2+-parseInt(_0x47a687(0x194))/0x3*(-parseInt(_0x47a687(0x193))/0x4)+parseInt(_0x47a687(0x195))/0x5*(-parseInt(_0x47a687(0x181))/0x6)+-parseInt(_0x47a687(0x186))/0x7*(parseInt(_0x47a687(0x179))/0x8)+parseInt(_0x47a687(0x17c))/0x9*(parseInt(_0x47a687(0x185))/0xa)+parseInt(_0x47a687(0x17e))/0xb;if(_0x10485b===_0x55445a)break;else _0x22b3f5['push'](_0x22b3f5['shift']());}catch(_0x209495){_0x22b3f5['push'](_0x22b3f5['shift']());}}}(a276_0x37b8,0x5b743));import{getEnv,isProduction}from'../constant/env.js';import{DEFAULT_LOVRABET_REGION}from'../constant/region.js';import{getOfficialRoutingCdn,getOfficialRoutingProfile}from'../constant/routing-profile.js';let customApiDomain,customUserDomain,customRuntimeDomain,customSkillDomain,customKbDomain,customKbServiceDomain,allowOfficialKbServiceDefault=!![],customAppDomain,customLocalDomain,customCertificateDomain,customCdn,activeRegion=DEFAULT_LOVRABET_REGION;function getActiveRegionDomains(){const _0x4a9aab=a276_0x516f,_0x16ab02=getOfficialRoutingProfile(activeRegion);return isProduction(getEnv())?_0x16ab02[_0x4a9aab(0x17b)]['production']:_0x16ab02[_0x4a9aab(0x17b)][_0x4a9aab(0x190)]??_0x16ab02[_0x4a9aab(0x17b)][_0x4a9aab(0x18b)];}export function initDomains(_0x1b17a0){const _0x475dcc=a276_0x516f;customApiDomain=_0x1b17a0?.['apiDomain'],customUserDomain=_0x1b17a0?.[_0x475dcc(0x17a)],customRuntimeDomain=_0x1b17a0?.['runtimeDomain'],customSkillDomain=_0x1b17a0?.[_0x475dcc(0x180)],customKbDomain=_0x1b17a0?.['kbDomain'],customKbServiceDomain=_0x1b17a0?.[_0x475dcc(0x17f)],allowOfficialKbServiceDefault=_0x1b17a0?.['allowOfficialKbServiceDefault']??!![],customAppDomain=_0x1b17a0?.[_0x475dcc(0x18f)],customLocalDomain=_0x1b17a0?.['localDomain'],customCertificateDomain=_0x1b17a0?.[_0x475dcc(0x191)],customCdn=_0x1b17a0?.[_0x475dcc(0x18c)],activeRegion=_0x1b17a0?.[_0x475dcc(0x187)]??DEFAULT_LOVRABET_REGION;}export const getUserDomain=()=>customUserDomain||getActiveRegionDomains()[a276_0xe88e24(0x18a)];export const getApiDomain=()=>customApiDomain||getActiveRegionDomains()[a276_0xe88e24(0x177)];export const getRuntimeDomain=()=>customRuntimeDomain||getActiveRegionDomains()[a276_0xe88e24(0x192)];export const getSkillDomain=()=>customSkillDomain||getActiveRegionDomains()[a276_0xe88e24(0x184)];export const getKbDomain=()=>customKbDomain||customApiDomain||getActiveRegionDomains()['kb'];export const getKbServiceDomain=()=>{const _0xd96860=a276_0xe88e24;if(customKbServiceDomain)return customKbServiceDomain;if(!allowOfficialKbServiceDefault)return undefined;return getActiveRegionDomains()[_0xd96860(0x189)];};export const getAppDomain=()=>customAppDomain||getActiveRegionDomains()[a276_0xe88e24(0x18e)];export const getActiveRegion=()=>activeRegion;function a276_0x37b8(){const _0x4fd89e=['cdn','/app/','app','appDomain','daily','certificateDomain','runtime','37304PNnIaE','225xxccfv','35RWKama','api','595914PHswtk','87792oDZQQR','userDomain','serviceDomains','6061059OOAVQw','origin','5022952agArRk','kbServiceDomain','skillDomain','433770kjVABd','hostname','trim','skill','10DyhRXC','378wmdSQa','region','479274STLPgk','kbService','user','production'];a276_0x37b8=function(){return _0x4fd89e;};return a276_0x37b8();}export const getLocalDomain=()=>customLocalDomain;export const getCertificateDomain=()=>customCertificateDomain;export const getActiveCdn=()=>customCdn||getOfficialRoutingCdn(activeRegion);export function isIndependentDeployment(){return!!(customApiDomain||customUserDomain||customRuntimeDomain||customSkillDomain||customKbDomain||customAppDomain||customLocalDomain||customCertificateDomain);}export function getSdkClientRoutingConfig(){if(customRuntimeDomain&&customRuntimeDomain!==getActiveRegionDomains()['runtime'])return{'runtimeDomain':customRuntimeDomain};if(activeRegion!==DEFAULT_LOVRABET_REGION)return{'runtimeDomain':getRuntimeDomain()};return{};}export const getAppBaseUrl=_0x13ac59=>{const _0xe0fe5d=a276_0xe88e24,_0x694b1a=encodeURIComponent(_0x13ac59[_0xe0fe5d(0x183)]());return isProduction(getEnv())?getAppDomain()+_0xe0fe5d(0x18d)+_0x694b1a:getAppDomain()+'/web-app/app/'+_0x694b1a;};function a276_0x516f(_0x66ebd1,_0x324d4b){_0x66ebd1=_0x66ebd1-0x177;const _0x37b8b9=a276_0x37b8();let _0x516fed=_0x37b8b9[_0x66ebd1];return _0x516fed;}export const getPublishedAppDomain=_0x3faebf=>{const _0x219090=a276_0xe88e24,_0x39b4c2=new URL(getAppDomain());return _0x39b4c2['hostname']=_0x3faebf[_0x219090(0x183)]()+'.'+_0x39b4c2[_0x219090(0x182)],_0x39b4c2[_0x219090(0x17d)];};
|
package/lib/constant/env.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a277_0xa004a=a277_0x5226;(function(_0x525f82,_0x100a5b){const _0x4ed8b6=a277_0x5226,_0x56c616=_0x525f82();while(!![]){try{const _0x1a7f4e=parseInt(_0x4ed8b6(0x1ba))/0x1+-parseInt(_0x4ed8b6(0x1b9))/0x2*(parseInt(_0x4ed8b6(0x1b4))/0x3)+parseInt(_0x4ed8b6(0x1b8))/0x4*(-parseInt(_0x4ed8b6(0x1c2))/0x5)+-parseInt(_0x4ed8b6(0x1b5))/0x6+-parseInt(_0x4ed8b6(0x1c0))/0x7+parseInt(_0x4ed8b6(0x1bb))/0x8+parseInt(_0x4ed8b6(0x1bd))/0x9*(parseInt(_0x4ed8b6(0x1bc))/0xa);if(_0x1a7f4e===_0x100a5b)break;else _0x56c616['push'](_0x56c616['shift']());}catch(_0x20d080){_0x56c616['push'](_0x56c616['shift']());}}}(a277_0xbc36,0x4fe3e));export const RABETBASE_ENV_VALUES=[a277_0xa004a(0x1c1),'daily'];export function normalizeEnv(_0x3d46b7){const _0x2d7379=a277_0xa004a;return _0x3d46b7===_0x2d7379(0x1b6)?_0x2d7379(0x1c1):_0x3d46b7;}export function isProduction(_0x349ac4){const _0x2a7c48=a277_0xa004a;return normalizeEnv(_0x349ac4)===_0x2a7c48(0x1c1);}export function isDaily(_0x12d381){const _0x33ebe9=a277_0xa004a;return normalizeEnv(_0x12d381)===_0x33ebe9(0x1b7);}export function isDev(_0x4068be){const _0x919e70=a277_0xa004a,_0x2841ef=normalizeEnv(_0x4068be);return _0x2841ef===_0x919e70(0x1bf)||_0x2841ef===_0x919e70(0x1be);}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||'production');function a277_0xbc36(){const _0x1c3651=['2724757ckfUOf','production','6985wfOTYz','9amiUhI','2862402UCrCJQ','online','daily','1688AKQDKO','194850ZSUnJi','434124YQAKOn','1515264rnSLMW','250NmpuVw','522657ZUWAbJ','dev','development'];a277_0xbc36=function(){return _0x1c3651;};return a277_0xbc36();}export function getEnv(){return env;}function a277_0x5226(_0x2e9ded,_0x34424f){_0x2e9ded=_0x2e9ded-0x1b4;const _0xbc3608=a277_0xbc36();let _0x5226a3=_0xbc3608[_0x2e9ded];return _0x5226a3;}export function initEnv(_0x385865){env=normalizeEnv(_0x385865);}
|
package/lib/constant/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a278_0x497188=a278_0x4322;function a278_0x1fc1(){const _0x9d29b6=['2716545GqdMZH','3667011XzLGIJ','8myTqKb','260919mvQCDB','6308xSdloZ','12NAuCcX','6030404glDngT','2131199WrMtgD','166TCXQBW','25961045dDBgsP','590AiLxGK','18DtftxT','json','pretty'];a278_0x1fc1=function(){return _0x9d29b6;};return a278_0x1fc1();}(function(_0x3cf215,_0x49d392){const _0x4b8b29=a278_0x4322,_0x121f16=_0x3cf215();while(!![]){try{const _0x1618a1=parseInt(_0x4b8b29(0xc7))/0x1*(-parseInt(_0x4b8b29(0xd1))/0x2)+parseInt(_0x4b8b29(0xce))/0x3+parseInt(_0x4b8b29(0xc5))/0x4+-parseInt(_0x4b8b29(0xcd))/0x5*(parseInt(_0x4b8b29(0xca))/0x6)+parseInt(_0x4b8b29(0xc6))/0x7*(-parseInt(_0x4b8b29(0xcf))/0x8)+-parseInt(_0x4b8b29(0xd0))/0x9*(parseInt(_0x4b8b29(0xc9))/0xa)+-parseInt(_0x4b8b29(0xc8))/0xb*(-parseInt(_0x4b8b29(0xc4))/0xc);if(_0x1618a1===_0x49d392)break;else _0x121f16['push'](_0x121f16['shift']());}catch(_0xeb04d0){_0x121f16['push'](_0x121f16['shift']());}}}(a278_0x1fc1,0xe1010));function a278_0x4322(_0x2af456,_0x1fac23){_0x2af456=_0x2af456-0xc4;const _0x1fc1dc=a278_0x1fc1();let _0x432290=_0x1fc1dc[_0x2af456];return _0x432290;}export const RABETBASE_OUTPUT_FORMAT_VALUES=[a278_0x497188(0xcb),a278_0x497188(0xcc),'compress'];
|
package/lib/constant/paths.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a279_0x5d5b32=a279_0x4d70;function a279_0x4d70(_0x1c47ca,_0x504252){_0x1c47ca=_0x1c47ca-0x15e;const _0x2ec0f4=a279_0x2ec0();let _0x4d702a=_0x2ec0f4[_0x1c47ca];return _0x4d702a;}(function(_0x5a6139,_0x10f399){const _0x16ed21=a279_0x4d70,_0x383fc4=_0x5a6139();while(!![]){try{const _0x5bfaaa=-parseInt(_0x16ed21(0x15f))/0x1+-parseInt(_0x16ed21(0x166))/0x2+parseInt(_0x16ed21(0x160))/0x3+parseInt(_0x16ed21(0x15e))/0x4*(-parseInt(_0x16ed21(0x161))/0x5)+parseInt(_0x16ed21(0x167))/0x6+-parseInt(_0x16ed21(0x168))/0x7*(parseInt(_0x16ed21(0x165))/0x8)+parseInt(_0x16ed21(0x162))/0x9*(parseInt(_0x16ed21(0x164))/0xa);if(_0x5bfaaa===_0x10f399)break;else _0x383fc4['push'](_0x383fc4['shift']());}catch(_0x5e893a){_0x383fc4['push'](_0x383fc4['shift']());}}}(a279_0x2ec0,0xcdbe0));export const DEFAULT_API_DIR=a279_0x5d5b32(0x163);function a279_0x2ec0(){const _0xf999f5=['261jasOmE','./src/api','1070590ocNkbt','24952HaOTis','66310NZMvyi','3174714eqNcZH','1757ehNGjR','230232qMWfgX','1460914viHJVT','1738290HjGDDt','95YCxpUR'];a279_0x2ec0=function(){return _0xf999f5;};return a279_0x2ec0();}
|
package/lib/constant/region.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0xae7623,_0x331ed8){const _0x1b6e08=a280_0x4ed7,_0x453f90=_0xae7623();while(!![]){try{const _0xcfc867=parseInt(_0x1b6e08(0x10c))/0x1+parseInt(_0x1b6e08(0x10f))/0x2+parseInt(_0x1b6e08(0x113))/0x3*(parseInt(_0x1b6e08(0x10d))/0x4)+parseInt(_0x1b6e08(0x115))/0x5+parseInt(_0x1b6e08(0x112))/0x6*(-parseInt(_0x1b6e08(0x111))/0x7)+parseInt(_0x1b6e08(0x10e))/0x8+parseInt(_0x1b6e08(0x10b))/0x9*(-parseInt(_0x1b6e08(0x110))/0xa);if(_0xcfc867===_0x331ed8)break;else _0x453f90['push'](_0x453f90['shift']());}catch(_0x29583c){_0x453f90['push'](_0x453f90['shift']());}}}(a280_0x563a,0x8ad0a));import{DEFAULT_REGION,ENABLED_REGION_VALUES,REGION_ALIASES,REGION_VALUES}from'../generated/official-routing.js';export const LOVRABET_REGION_VALUES=REGION_VALUES;export const ENABLED_LOVRABET_REGION_VALUES=ENABLED_REGION_VALUES;export const DEFAULT_LOVRABET_REGION=DEFAULT_REGION;export function isLovrabetRegion(_0x23fe71){return typeof _0x23fe71==='string'&&LOVRABET_REGION_VALUES['includes'](_0x23fe71);}export function isEnabledLovrabetRegion(_0x4fdc5c){const _0xa98881=a280_0x4ed7;return typeof _0x4fdc5c==='string'&&ENABLED_LOVRABET_REGION_VALUES[_0xa98881(0x114)](_0x4fdc5c);}export function normalizeLovrabetRegion(_0x7df172){const _0x417187=a280_0x4ed7;if(typeof _0x7df172!==_0x417187(0x10a))return undefined;const _0x2b260d=REGION_ALIASES[_0x7df172]??_0x7df172;return isLovrabetRegion(_0x2b260d)?_0x2b260d:undefined;}export function isInvalidLovrabetRegion(_0x102ec6){return _0x102ec6!==undefined&&_0x102ec6!==null&&_0x102ec6!==''&&normalizeLovrabetRegion(_0x102ec6)===undefined;}function a280_0x4ed7(_0x45b611,_0x278955){_0x45b611=_0x45b611-0x10a;const _0x563abb=a280_0x563a();let _0x4ed787=_0x563abb[_0x45b611];return _0x4ed787;}function a280_0x563a(){const _0x48b1b4=['102906naTmsr','includes','364150ShmXgS','string','9MVOVKb','27651NRRAAD','116oUUABm','4056376hXUbQP','1410636ThTEOZ','8190180EyufWR','32200vxwcbr','1200kNZdMr'];a280_0x563a=function(){return _0x48b1b4;};return a280_0x563a();}
|
package/lib/constant/risk.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a281_0x45a19e=a281_0xfb62;(function(_0x3883b1,_0x534aca){const _0x224527=a281_0xfb62,_0x9f8dc7=_0x3883b1();while(!![]){try{const _0x167294=parseInt(_0x224527(0xba))/0x1+-parseInt(_0x224527(0xb3))/0x2+-parseInt(_0x224527(0xbc))/0x3+parseInt(_0x224527(0xb7))/0x4*(-parseInt(_0x224527(0xb4))/0x5)+-parseInt(_0x224527(0xbb))/0x6+parseInt(_0x224527(0xb8))/0x7*(parseInt(_0x224527(0xb6))/0x8)+parseInt(_0x224527(0xb9))/0x9;if(_0x167294===_0x534aca)break;else _0x9f8dc7['push'](_0x9f8dc7['shift']());}catch(_0x13bf8b){_0x9f8dc7['push'](_0x9f8dc7['shift']());}}}(a281_0x47e1,0x95dbc));function a281_0x47e1(){const _0x20b1a4=['read','1868488vNbovr','552412HHxxXY','14TgsNuG','13811337AYfxLu','955251cJorrV','914670MLuQni','2023215YHeUBA','1099150putjUy','35YAujxu'];a281_0x47e1=function(){return _0x20b1a4;};return a281_0x47e1();}function a281_0xfb62(_0x33d4d8,_0x1b8789){_0x33d4d8=_0x33d4d8-0xb3;const _0x47e155=a281_0x47e1();let _0xfb6249=_0x47e155[_0x33d4d8];return _0xfb6249;}export const RISK_LEVEL_VALUES=[a281_0x45a19e(0xb5),'write','high-risk-write'];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2c5758,_0x2c54e3){const _0x29c51d=a282_0x2c7f,_0x3ef31e=_0x2c5758();while(!![]){try{const _0xfe7cd=parseInt(_0x29c51d(0x15d))/0x1+-parseInt(_0x29c51d(0x164))/0x2*(-parseInt(_0x29c51d(0x165))/0x3)+-parseInt(_0x29c51d(0x158))/0x4*(-parseInt(_0x29c51d(0x161))/0x5)+parseInt(_0x29c51d(0x15f))/0x6*(parseInt(_0x29c51d(0x15e))/0x7)+parseInt(_0x29c51d(0x15a))/0x8*(-parseInt(_0x29c51d(0x163))/0x9)+-parseInt(_0x29c51d(0x160))/0xa*(-parseInt(_0x29c51d(0x159))/0xb)+-parseInt(_0x29c51d(0x162))/0xc;if(_0xfe7cd===_0x2c54e3)break;else _0x3ef31e['push'](_0x3ef31e['shift']());}catch(_0x552a85){_0x3ef31e['push'](_0x3ef31e['shift']());}}}(a282_0x3101,0x88296));import{OFFICIAL_ROUTING_PROFILES as a282_0x3f6435,ROUTING_CATALOG_DIGEST}from'../generated/official-routing.js';function a282_0x3101(){const _0x45c974=['1121585KxVcBS','13571112QssoUL','216tKrRVu','3650sbnvLp','183WvLawv','lovrabet','4AMjntz','8412778OVGxhk','280840aILGTh','\x22\x20is\x20not\x20ready:\x20Lovrabet\x20CDN\x20Domain\x20is\x20not\x20configured.','cdn','996337rctBJU','7bMjrVs','2606322hthNOI','10sQJAZc'];a282_0x3101=function(){return _0x45c974;};return a282_0x3101();}export const OFFICIAL_ROUTING_PROFILES=a282_0x3f6435;function a282_0x2c7f(_0x1fc2be,_0xa93f0c){_0x1fc2be=_0x1fc2be-0x158;const _0x310194=a282_0x3101();let _0x2c7f9d=_0x310194[_0x1fc2be];return _0x2c7f9d;}export{ROUTING_CATALOG_DIGEST};export function getOfficialRoutingProfile(_0x327bd0){return OFFICIAL_ROUTING_PROFILES[_0x327bd0];}export function getOfficialRoutingCdn(_0x464605){const _0x301d9f=a282_0x2c7f,_0x3e75aa=getOfficialRoutingProfile(_0x464605)[_0x301d9f(0x15c)];if(!_0x3e75aa[_0x301d9f(0x166)])throw new Error('Official\x20routing\x20for\x20region\x20\x22'+_0x464605+_0x301d9f(0x15b));return{'libraries':_0x3e75aa['libraries'],'lovrabet':_0x3e75aa[_0x301d9f(0x166)]};}
|