@lovrabet/rabetbase-cli 2.5.5-beta.3 → 2.5.6-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api/api-doc.js +1 -1
- package/lib/api/api-group.js +1 -1
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.js +1 -1
- package/lib/api/generate-sdk-config-file.js +1 -1
- package/lib/api/legacy-api-file.js +1 -1
- package/lib/api/model-registry-file.js +1 -1
- package/lib/api/model-registry-scaffold.js +1 -1
- package/lib/api/model-source.js +1 -1
- package/lib/auth/auth-server-ui.js +1 -1
- package/lib/auth/auth-server.js +1 -1
- package/lib/auth/constant.js +1 -1
- package/lib/auth/get-cookie.js +1 -1
- package/lib/auth/get-session-user.js +1 -1
- package/lib/auth/is-session-valid.js +1 -1
- package/lib/auth/login-success-html.js +1 -1
- package/lib/auth/logout.js +1 -1
- package/lib/cli-flags.js +1 -1
- package/lib/cli.js +1 -1
- package/lib/commands/api/generate.js +1 -1
- package/lib/commands/api/index.js +1 -1
- package/lib/commands/api/list.js +1 -1
- package/lib/commands/api/pull.js +1 -1
- package/lib/commands/api/shared.js +1 -1
- package/lib/commands/app/detail.js +1 -1
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/members-list.js +1 -1
- package/lib/commands/app/remote-directory.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/delete.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/app-config/list.js +1 -1
- package/lib/commands/app-config/set.js +1 -1
- package/lib/commands/app-config/shared.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/bff/create.js +1 -1
- package/lib/commands/bff/delete.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/bff/list.js +1 -1
- package/lib/commands/bff/logs.js +1 -1
- package/lib/commands/bff/pull.js +1 -1
- package/lib/commands/bff/push.js +1 -1
- package/lib/commands/bff/status.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/cli-update.js +1 -1
- package/lib/commands/codegen/index.js +1 -1
- package/lib/commands/codegen/sdk.js +1 -1
- package/lib/commands/codegen/sql.js +1 -1
- package/lib/commands/common/app-registry.js +1 -1
- package/lib/commands/common/app-selector.js +1 -1
- package/lib/commands/common/async-task.js +1 -1
- package/lib/commands/common/dry-run.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/common/validate.js +1 -1
- package/lib/commands/config/delete.js +1 -1
- package/lib/commands/config/get.js +1 -1
- package/lib/commands/config/index.js +1 -1
- package/lib/commands/config/init.js +1 -1
- package/lib/commands/config/list.js +1 -1
- package/lib/commands/config/set.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/dataset/batch-design.js +1 -1
- package/lib/commands/dataset/business-group-update.js +1 -1
- package/lib/commands/dataset/business-groups.js +1 -1
- package/lib/commands/dataset/capability.js +1 -1
- package/lib/commands/dataset/cross-relation-create.js +1 -1
- package/lib/commands/dataset/cross-relation-delete.js +1 -1
- package/lib/commands/dataset/cross-relation-list.js +1 -1
- package/lib/commands/dataset/cross-relation-shared.js +1 -1
- package/lib/commands/dataset/cross-relation-update.js +1 -1
- package/lib/commands/dataset/delete.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/extend-update.js +1 -1
- package/lib/commands/dataset/field-restore.js +1 -1
- package/lib/commands/dataset/field-update.js +1 -1
- package/lib/commands/dataset/generate.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/dataset/relation-audit.js +1 -1
- package/lib/commands/dataset/relation-create.js +1 -1
- package/lib/commands/dataset/relation-delete.js +1 -1
- package/lib/commands/dataset/relation-shared.js +1 -1
- package/lib/commands/dataset/relation-update.js +1 -1
- package/lib/commands/dataset/relations.js +1 -1
- package/lib/commands/dataset/rename.js +1 -1
- package/lib/commands/dataset/restore.js +1 -1
- package/lib/commands/dataset/user-deleted-field-list.js +1 -1
- package/lib/commands/db/analysis-batching.js +1 -1
- package/lib/commands/db/analyze-batch-plan.js +1 -1
- package/lib/commands/db/analyze-cancel.js +1 -1
- package/lib/commands/db/analyze-start.js +1 -1
- package/lib/commands/db/analyze-status.js +1 -1
- package/lib/commands/db/create.js +1 -1
- package/lib/commands/db/cross-db-analysis-shared.d.ts +40 -0
- package/lib/commands/db/cross-db-analysis-shared.js +1 -0
- package/lib/commands/db/cross-db-analyze-latest.d.ts +2 -0
- package/lib/commands/db/cross-db-analyze-latest.js +1 -0
- package/lib/commands/db/cross-db-analyze-start.d.ts +2 -0
- package/lib/commands/db/cross-db-analyze-start.js +1 -0
- package/lib/commands/db/cross-db-analyze-status.d.ts +2 -0
- package/lib/commands/db/cross-db-analyze-status.js +1 -0
- package/lib/commands/db/delete.js +1 -1
- package/lib/commands/db/detail.js +1 -1
- package/lib/commands/db/diff-refresh-start.js +1 -1
- package/lib/commands/db/diff-refresh-status.js +1 -1
- package/lib/commands/db/diff.js +1 -1
- package/lib/commands/db/index.js +1 -1
- package/lib/commands/db/list.js +1 -1
- package/lib/commands/db/shared.js +1 -1
- package/lib/commands/db/table-diff-shared.js +1 -1
- package/lib/commands/db/tables.js +1 -1
- package/lib/commands/db/test.js +1 -1
- package/lib/commands/db/update.js +1 -1
- package/lib/commands/deployment/index.js +1 -1
- package/lib/commands/deployment/sync-all.js +1 -1
- package/lib/commands/deployment/sync-jobs.js +1 -1
- package/lib/commands/deployment/sync-status.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/flow/create.js +1 -1
- package/lib/commands/flow/detail.js +1 -1
- package/lib/commands/flow/index.js +1 -1
- package/lib/commands/flow/list.js +1 -1
- package/lib/commands/flow/publish.js +1 -1
- package/lib/commands/flow/runtime-resources-shared.js +1 -1
- package/lib/commands/flow/runtime-role-list.js +1 -1
- package/lib/commands/flow/runtime-role-user-list.js +1 -1
- package/lib/commands/flow/runtime-user-search.js +1 -1
- package/lib/commands/flow/shared.js +1 -1
- package/lib/commands/flow/update.js +1 -1
- package/lib/commands/flow/validate.js +1 -1
- package/lib/commands/instant-api-policy/current.js +1 -1
- package/lib/commands/instant-api-policy/index.js +1 -1
- package/lib/commands/instant-api-policy/init.js +1 -1
- package/lib/commands/instant-api-policy/publish.js +1 -1
- package/lib/commands/instant-api-policy/pull.js +1 -1
- package/lib/commands/instant-api-policy/revision.js +1 -1
- package/lib/commands/instant-api-policy/revisions.js +1 -1
- package/lib/commands/instant-api-policy/rollback.js +1 -1
- package/lib/commands/instant-api-policy/shared.js +1 -1
- package/lib/commands/instant-api-policy/validate.js +1 -1
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/nudge.js +1 -1
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/issue/shared.js +1 -1
- package/lib/commands/kb/create.js +1 -1
- package/lib/commands/kb/delete.js +1 -1
- package/lib/commands/kb/detail.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/kb/list.js +1 -1
- package/lib/commands/kb/search.js +1 -1
- package/lib/commands/kb/shared.js +1 -1
- package/lib/commands/kb/update.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/asset-update.js +1 -1
- package/lib/commands/menu/delete.js +1 -1
- package/lib/commands/menu/external-link-create.js +1 -1
- package/lib/commands/menu/external-link-update.js +1 -1
- package/lib/commands/menu/group-create.js +1 -1
- package/lib/commands/menu/group-update.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/list.js +1 -1
- package/lib/commands/menu/move.js +1 -1
- package/lib/commands/menu/regroup-start.js +1 -1
- package/lib/commands/menu/rename.js +1 -1
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/delete-plan.js +1 -1
- package/lib/commands/menu/shared/facts.js +1 -1
- package/lib/commands/menu/shared/index.js +1 -1
- package/lib/commands/menu/shared/inquirer.js +1 -1
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.js +1 -1
- package/lib/commands/menu/shared/mutations.js +1 -1
- package/lib/commands/menu/shared/path.js +1 -1
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/subapp-assets.js +1 -1
- package/lib/commands/menu/shared/sync-core.js +1 -1
- package/lib/commands/menu/shared/update-core.js +1 -1
- package/lib/commands/menu/shared/valid-url.js +1 -1
- package/lib/commands/menu/subapp-assets-status.js +1 -1
- package/lib/commands/menu/subapp-assets-update.js +1 -1
- package/lib/commands/menu/sync.js +1 -1
- package/lib/commands/menu/visibility-update.js +1 -1
- package/lib/commands/notification/config-create.js +1 -1
- package/lib/commands/notification/config-delete.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/config-update.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/notification/shared.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/page/create.js +1 -1
- package/lib/commands/page/custom/detail.js +1 -1
- package/lib/commands/page/custom/list.js +1 -1
- package/lib/commands/page/custom/publish.js +1 -1
- package/lib/commands/page/custom/shared.js +1 -1
- package/lib/commands/page/custom/syntax.js +1 -1
- package/lib/commands/page/custom/update.js +1 -1
- package/lib/commands/page/data-list-status.js +1 -1
- package/lib/commands/page/generate-start.js +1 -1
- package/lib/commands/page/generate-status.js +1 -1
- package/lib/commands/page/index.js +1 -1
- package/lib/commands/page/pull.js +1 -1
- package/lib/commands/page/push.js +1 -1
- package/lib/commands/page/relation-audit.js +1 -1
- package/lib/commands/page/restore.js +1 -1
- package/lib/commands/page/shared.js +1 -1
- package/lib/commands/page/sync.js +1 -1
- package/lib/commands/project/api-architecture-upgrade.js +1 -1
- package/lib/commands/project/create/enhanced-guided-create.js +1 -1
- package/lib/commands/project/create/format-elapsed.js +1 -1
- package/lib/commands/project/create/main.js +1 -1
- package/lib/commands/project/create/materialize-project-template.js +1 -1
- package/lib/commands/project/create/project-name.js +1 -1
- package/lib/commands/project/create/project-template-archive.js +1 -1
- package/lib/commands/project/create/project-template-path.js +1 -1
- package/lib/commands/project/create/use-copy-project-template.js +1 -1
- package/lib/commands/project/create/use-format-code.js +1 -1
- package/lib/commands/project/create/use-install-dependencies.js +1 -1
- package/lib/commands/project/domain-routing-sync.js +1 -1
- package/lib/commands/project/index.js +1 -1
- package/lib/commands/project/upgrade.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/role/user-resolve.js +1 -1
- package/lib/commands/rule/get.js +1 -1
- package/lib/commands/rule/index.js +1 -1
- package/lib/commands/rule/list.js +1 -1
- package/lib/commands/rule/set.js +1 -1
- package/lib/commands/rule/shared.js +1 -1
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/sql/create.js +1 -1
- package/lib/commands/sql/delete.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/sql/list.js +1 -1
- package/lib/commands/sql/pull.js +1 -1
- package/lib/commands/sql/push.js +1 -1
- package/lib/commands/sql/shared.js +1 -1
- package/lib/commands/sql/status.js +1 -1
- package/lib/commands/sql/validate.js +1 -1
- package/lib/commands/task/index.js +1 -1
- package/lib/commands/task/status.js +1 -1
- package/lib/commands/tenant/index.js +1 -1
- package/lib/commands/tenant/members-list.js +1 -1
- package/lib/commands/tenant/shared.js +1 -1
- package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
- package/lib/commands/user-account/feishu-bind.js +1 -1
- package/lib/commands/user-account/index.js +1 -1
- package/lib/commands/workspace/add.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/commands/workspace/remove.js +1 -1
- package/lib/config/domain-config.js +1 -1
- package/lib/config/project-domain-routing.js +1 -1
- package/lib/config/region-config.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/cdn.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/paths.js +1 -1
- package/lib/constant/region.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/routing-profile.js +1 -1
- package/lib/context/app-resolver.js +1 -1
- package/lib/context/auth-resolver.js +1 -1
- package/lib/context/config-loader.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.d.ts +7 -0
- package/lib/core/api-client.js +1 -1
- package/lib/core/bff/config.js +1 -1
- package/lib/core/bff/file-system.js +1 -1
- package/lib/core/bff/hash.js +1 -1
- package/lib/core/bff/hook-directory.js +1 -1
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/cross-db-analysis.d.ts +17 -0
- package/lib/core/cross-db-analysis.js +1 -0
- package/lib/core/cross-db-relation.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/flow-config.js +1 -1
- package/lib/core/instant-api-policy/config.js +1 -1
- package/lib/core/kb-search-client.js +1 -1
- package/lib/core/page/file-system.js +1 -1
- package/lib/core/page/hash.js +1 -1
- package/lib/core/page/lock.js +1 -1
- package/lib/core/page/lr-smart-jsx.js +1 -1
- package/lib/core/sql-index-auditor.js +1 -1
- package/lib/core/sql-sync/config.js +1 -1
- package/lib/core/sql-sync/file-system.js +1 -1
- package/lib/core/sql-sync/hash.js +1 -1
- package/lib/core/sql-sync/lock.js +1 -1
- package/lib/core/sql-sync/utils.js +1 -1
- package/lib/core/sql-validator.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/error-output.js +1 -1
- package/lib/framework/explicit-yes.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-alias.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/supported-flags.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/generated/official-routing.js +1 -1
- package/lib/generated/routing-contract.js +1 -1
- package/lib/help.js +1 -1
- package/lib/postinstall.js +1 -1
- package/lib/runtime/confirmation.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/skills/builtin-skill.js +1 -1
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/skill-presence.js +1 -1
- package/lib/telemetry/cli-command-trace.js +1 -1
- package/lib/telemetry/cli-help-trace.js +1 -1
- package/lib/telemetry/ensure-cli-otel-config.js +1 -1
- package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
- package/lib/telemetry/send-cli-trace-log.js +1 -1
- package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
- package/lib/utils/ai_config.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cdn-config.js +1 -1
- package/lib/utils/check-sdk-version.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/config.js +1 -1
- package/lib/utils/entity-with-id.js +1 -1
- package/lib/utils/file-utils.js +1 -1
- package/lib/utils/guides-cdn.js +1 -1
- package/lib/utils/http-client.js +1 -1
- package/lib/utils/is-non-interactive.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/sleep.js +1 -1
- package/lib/utils/template-replacer.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/with-active-cookie.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
- package/skills/rabetbase/SKILL.md +6 -4
- package/skills/rabetbase/guides/database-connection-workflow.md +12 -3
- package/skills/rabetbase/guides/independent-deployment.md +10 -2
- package/skills/rabetbase/references/rabetbase-dataset-cross-relations.md +2 -0
- package/skills/rabetbase/references/rabetbase-db-analyze.md +2 -0
- package/skills/rabetbase/references/rabetbase-db-cross-analyze.md +78 -0
- package/skills/rabetbase-page-generation/SKILL.md +1 -1
- package/skills/rabetbase.manifest.json +4 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a259_0x53a60b=a259_0x5094;(function(_0x4ed5ef,_0x110a05){const _0x151da3=a259_0x5094,_0x5304f6=_0x4ed5ef();while(!![]){try{const _0x201074=parseInt(_0x151da3(0x13e))/0x1+-parseInt(_0x151da3(0x142))/0x2*(-parseInt(_0x151da3(0x13c))/0x3)+-parseInt(_0x151da3(0x140))/0x4+-parseInt(_0x151da3(0x143))/0x5*(-parseInt(_0x151da3(0x146))/0x6)+-parseInt(_0x151da3(0x147))/0x7+-parseInt(_0x151da3(0x13b))/0x8+parseInt(_0x151da3(0x145))/0x9;if(_0x201074===_0x110a05)break;else _0x5304f6['push'](_0x5304f6['shift']());}catch(_0x5a1d4b){_0x5304f6['push'](_0x5304f6['shift']());}}}(a259_0x48a3,0x83730));function a259_0x5094(_0x410fc1,_0x531055){_0x410fc1=_0x410fc1-0x13b;const _0x48a3e3=a259_0x48a3();let _0x5094a2=_0x48a3e3[_0x410fc1];return _0x5094a2;}function a259_0x48a3(){const _0x1a78ea=['Register\x20an\x20app\x20profile\x20in\x20the\x20current\x20workspace\x20(or\x20--global)','773988CpPaIn','App\x20profile\x20name','3114288fqxFnU','write','9298CsjNiW','5sZjcXT','workspace\x20add','6420924UKbokj','1592238CDdsbP','1268967pslMXE','6871184puASki','390IFPYTb'];a259_0x48a3=function(){return _0x1a78ea;};return a259_0x48a3();}import{buildAppAddFlags,runAppAdd,validateAppName}from'../../commands/common/app-registry.js';export const workspaceAddDefinition={'service':'workspace','command':'add','description':a259_0x53a60b(0x13d),'risk':a259_0x53a60b(0x141),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':'name','description':a259_0x53a60b(0x13f),'required':!![]}],'flags':buildAppAddFlags(),'validate':_0x3c3119=>validateAppName(_0x3c3119,a259_0x53a60b(0x144)),'execute':_0x271d38=>runAppAdd(_0x271d38,'workspace\x20add')};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a260_0x359370=a260_0x27ae;(function(_0x26490c,_0x3ef20a){const _0x1cb811=a260_0x27ae,_0xca8b6b=_0x26490c();while(!![]){try{const _0x24e5d8=-parseInt(_0x1cb811(0x19f))/0x1+parseInt(_0x1cb811(0x192))/0x2+parseInt(_0x1cb811(0x17a))/0x3+parseInt(_0x1cb811(0x17d))/0x4*(parseInt(_0x1cb811(0x17e))/0x5)+parseInt(_0x1cb811(0x174))/0x6*(-parseInt(_0x1cb811(0x19d))/0x7)+parseInt(_0x1cb811(0x181))/0x8*(-parseInt(_0x1cb811(0x17b))/0x9)+-parseInt(_0x1cb811(0x195))/0xa;if(_0x24e5d8===_0x3ef20a)break;else _0xca8b6b['push'](_0xca8b6b['shift']());}catch(_0x164337){_0xca8b6b['push'](_0xca8b6b['shift']());}}}(a260_0x34c7,0x8bb58));function a260_0x34c7(){const _0x16c744=['4946uzyGyP','apps','trim','2879640DLeUYW','apiDir','region','format','App\x20locale\x20for\x20this\x20workspace\x20app\x20profile\x20(not\x20CLI\x20language;\x20reserved\x20for\x20later\x20app\x20use)','app','str','Initialize\x20the\x20current\x20workspace\x20app\x20binding','2064657onObfu','keys','392523ejTydW','string','\x20(appcode:\x20','workspace.','Country/region\x20for\x20this\x20workspace\x20app\x20profile','Target\x20environment','Join\x20key\x20for\x20app\x20profiles\x20that\x20share\x20one\x20generated\x20API\x20model\x20registry','Missing\x20workspace\x20app\x20selector.','\x20workspace\x20','App\x20code\x20to\x20bind\x20to\x20this\x20workspace','validation','App\x20profile\x20name\x20to\x20use\x20in\x20this\x20workspace','apiGroup','\x20--appcode\x20<code>`.','write','flag','12NDmPPM','\x20workspace\x20use\x20--app\x20<name>`.','initialized','appcode','pageSize','\x20--app\x20','3267135ZjkqeW','13419OSeIIu','defaultFormat','1395116MeViEv','15ugZglR','object','API\x20directory\x20path\x20for\x20this\x20workspace\x20app\x20profile','1584BPXwFR','locale','Risk\x20level\x20for\x20this\x20workspace\x20app\x20profile','workspace','Invalid\x20appcode:\x20','Workspace\x20','length','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20`','globalConfig','\x20workspace\x20<init|use>\x20--app\x20<name>\x20[--appcode\x20<code>]','Switch\x20the\x20current\x20workspace\x20app\x20binding','riskLevel','Use\x20`','init',').\x20Config:\x20','\x22\x20not\x20found.','env'];a260_0x34c7=function(){return _0x16c744;};return a260_0x34c7();}import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{RABETBASE_ENV_VALUES}from'../../constant/env.js';import{RABETBASE_OUTPUT_FORMAT_VALUES}from'../../constant/output.js';import{RISK_LEVEL_VALUES}from'../../constant/risk.js';import{validateAppcode}from'../../commands/common/validate.js';import{readConfigFile,readRawConfigWithLayers,resolveWriteConfigPath,writeConfigFile}from'../../context.js';function a260_0x27ae(_0x5245a2,_0x6cc340){_0x5245a2=_0x5245a2-0x173;const _0x34c7ed=a260_0x34c7();let _0x27ae93=_0x34c7ed[_0x5245a2];return _0x27ae93;}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+a260_0x359370(0x18a),SAFE_PROFILE_KEYS=[a260_0x359370(0x177),a260_0x359370(0x1ab),a260_0x359370(0x197),a260_0x359370(0x191),a260_0x359370(0x196),'format','pageSize',a260_0x359370(0x18c),a260_0x359370(0x182)],workspaceFlags=[{'name':a260_0x359370(0x19a),'type':a260_0x359370(0x1a0),'description':a260_0x359370(0x1aa)},{'name':a260_0x359370(0x177),'type':a260_0x359370(0x1a0),'description':a260_0x359370(0x1a8)},{'name':a260_0x359370(0x1ab),'type':a260_0x359370(0x1a0),'description':a260_0x359370(0x1a5)},{'name':a260_0x359370(0x197),'type':a260_0x359370(0x1a0),'description':a260_0x359370(0x1a3),'enum':[...ENABLED_LOVRABET_REGION_VALUES]},{'name':a260_0x359370(0x191),'type':a260_0x359370(0x1a0),'description':a260_0x359370(0x1a4),'enum':[...RABETBASE_ENV_VALUES]},{'name':a260_0x359370(0x196),'type':'string','description':a260_0x359370(0x180)},{'name':a260_0x359370(0x17c),'type':'string','description':'Default\x20output\x20format\x20for\x20this\x20workspace\x20app\x20profile','enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':'pageSize','type':'number','description':'Default\x20page\x20size\x20for\x20this\x20workspace\x20app\x20profile'},{'name':a260_0x359370(0x18c),'type':a260_0x359370(0x1a0),'description':a260_0x359370(0x183),'enum':[...RISK_LEVEL_VALUES]},{'name':a260_0x359370(0x182),'type':a260_0x359370(0x1a0),'description':a260_0x359370(0x199)}];function isRecord(_0x4b3a45){const _0x14af64=a260_0x359370;return!!_0x4b3a45&&typeof _0x4b3a45===_0x14af64(0x17f)&&!Array['isArray'](_0x4b3a45);}function assertValidAppcode(_0x5e1c7c){const _0x5a0698=a260_0x359370,{valid:_0x1d0091,message:_0x3a1a29}=validateAppcode(_0x5e1c7c);if(!_0x1d0091)throw CliErrors['validation'](_0x5a0698(0x185)+_0x5e1c7c,_0x3a1a29);}function sanitizeProfile(_0x376027){if(!isRecord(_0x376027))return{};const _0x55179e={};for(const _0x4c2b62 of SAFE_PROFILE_KEYS){if(_0x376027[_0x4c2b62]!==undefined)_0x55179e[_0x4c2b62]=_0x376027[_0x4c2b62];}return _0x55179e;}function cloneProfile(_0x4ae2ee){return isRecord(_0x4ae2ee)?{..._0x4ae2ee}:{};}function collectWorkspaceProfileOverrides(_0x234cb7){const _0x66a706=a260_0x359370,_0x3808e5={},_0x4ffc47=_0x234cb7['str'](_0x66a706(0x1ab)),_0x2de482=_0x234cb7[_0x66a706(0x19b)]('region'),_0x5102b1=_0x234cb7[_0x66a706(0x19b)]('env'),_0x43069a=_0x234cb7['str'](_0x66a706(0x196)),_0xbf6859=_0x234cb7['str']('defaultFormat'),_0x3c486e=_0x234cb7[_0x66a706(0x173)](_0x66a706(0x178)),_0x16ad26=_0x234cb7['str'](_0x66a706(0x18c)),_0x3bf0f6=_0x234cb7[_0x66a706(0x19b)]('locale');if(_0x4ffc47)_0x3808e5[_0x66a706(0x1ab)]=_0x4ffc47;if(_0x2de482)_0x3808e5[_0x66a706(0x197)]=_0x2de482;if(_0x5102b1)_0x3808e5[_0x66a706(0x191)]=_0x5102b1;if(_0x43069a)_0x3808e5['apiDir']=_0x43069a;if(_0xbf6859)_0x3808e5[_0x66a706(0x198)]=_0xbf6859;if(_0x3c486e!==undefined&&_0x3c486e!=='')_0x3808e5[_0x66a706(0x178)]=Number(_0x3c486e);if(_0x16ad26)_0x3808e5[_0x66a706(0x18c)]=_0x16ad26;if(_0x3bf0f6)_0x3808e5[_0x66a706(0x182)]=_0x3bf0f6;return _0x3808e5;}async function validateWorkspaceArgs(_0x15f675){const _0x2595c2=a260_0x359370,_0x378d23=_0x15f675[_0x2595c2(0x19b)](_0x2595c2(0x19a))['trim'](),_0x2f764d=_0x15f675[_0x2595c2(0x19b)](_0x2595c2(0x177))[_0x2595c2(0x194)]();if(!_0x378d23&&!_0x2f764d)throw CliErrors[_0x2595c2(0x1a9)](_0x2595c2(0x1a6),_0x2595c2(0x18d)+CLI_BIN_NAME+'\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20`'+CLI_BIN_NAME+_0x2595c2(0x175));if(_0x2f764d)assertValidAppcode(_0x2f764d);}function resolveKnownApps(){const _0x1c0277=a260_0x359370,{config:_0x3d3e50,layers:_0x119917}=readRawConfigWithLayers(),_0x517ad6=isRecord(_0x3d3e50['apps'])?_0x3d3e50[_0x1c0277(0x193)]:{},_0x434204=isRecord(_0x119917[_0x1c0277(0x189)][_0x1c0277(0x193)])?_0x119917[_0x1c0277(0x189)][_0x1c0277(0x193)]:{};return{..._0x434204,..._0x517ad6};}async function configureWorkspace(_0x51f9b6,_0x6f6ac5){const _0x485ebb=a260_0x359370,_0x54c96e=_0x51f9b6['str'](_0x485ebb(0x19a))[_0x485ebb(0x194)](),_0x337c38=_0x51f9b6[_0x485ebb(0x19b)](_0x485ebb(0x177))[_0x485ebb(0x194)](),_0xf45857=_0x54c96e||_0x337c38;if(!_0xf45857)throw CliErrors[_0x485ebb(0x1a9)](_0x485ebb(0x1a6),_0x485ebb(0x18d)+CLI_BIN_NAME+_0x485ebb(0x188)+CLI_BIN_NAME+'\x20workspace\x20use\x20--app\x20<name>`.');if(_0x337c38)assertValidAppcode(_0x337c38);const _0x5b3344=resolveWriteConfigPath('project'),_0x9629ef=readConfigFile(_0x5b3344),_0x1a15e6=resolveKnownApps(),_0x86a9e5=isRecord(_0x9629ef[_0x485ebb(0x193)])?{..._0x9629ef[_0x485ebb(0x193)]}:{},_0x136fe5=cloneProfile(_0x86a9e5[_0xf45857]),_0x210571=sanitizeProfile(_0x1a15e6[_0xf45857]),_0x45e770=_0x337c38?{}:_0x210571,_0x191a37=_0x337c38||_0x45e770[_0x485ebb(0x177)];if(!_0x191a37){const _0x513985=Object[_0x485ebb(0x19e)](_0x1a15e6),_0x5f2246=_0x513985[_0x485ebb(0x187)]===0x0?_0x485ebb(0x18d)+CLI_BIN_NAME+_0x485ebb(0x1a7)+_0x6f6ac5+_0x485ebb(0x179)+_0xf45857+_0x485ebb(0x1ac):'Pass\x20--appcode\x20<code>,\x20or\x20choose\x20one\x20of:\x20'+_0x513985['join'](',\x20');throw CliErrors['validation']('App\x20\x22'+_0xf45857+_0x485ebb(0x190),_0x5f2246);}assertValidAppcode(String(_0x191a37));const _0x166292={..._0x45e770,..._0x136fe5,'appcode':String(_0x191a37),...collectWorkspaceProfileOverrides(_0x51f9b6)};return _0x86a9e5[_0xf45857]=_0x166292,_0x9629ef['apps']=_0x86a9e5,normalizeStoredDefaultApp(_0x9629ef,_0xf45857),delete _0x9629ef[_0x485ebb(0x177)],delete _0x9629ef['app'],_0x166292[_0x485ebb(0x191)]&&(_0x9629ef['env']=_0x166292['env']),writeConfigFile(_0x5b3344,_0x9629ef),{'ok':!![],'message':_0x485ebb(0x186)+(_0x6f6ac5===_0x485ebb(0x18e)?_0x485ebb(0x176):'updated')+':\x20'+_0xf45857+_0x485ebb(0x1a1)+_0x166292[_0x485ebb(0x177)]+_0x485ebb(0x18f)+_0x5b3344+'.\x20Credentials:\x20not\x20written.','data':{'operation':_0x485ebb(0x1a2)+_0x6f6ac5,'configPath':_0x5b3344,'app':_0xf45857,'appcode':_0x166292[_0x485ebb(0x177)],'apiGroup':_0x166292['apiGroup']??null,'region':_0x166292[_0x485ebb(0x197)]??null,'env':_0x166292['env']??null,'credentialsWritten':![]}};}const workspaceInitDefinition={'service':a260_0x359370(0x184),'command':a260_0x359370(0x18e),'description':a260_0x359370(0x19c),'risk':a260_0x359370(0x1ad),'requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x31a1ec=>configureWorkspace(_0x31a1ec,a260_0x359370(0x18e))},workspaceUseDefinition={'service':a260_0x359370(0x184),'command':'use','description':a260_0x359370(0x18b),'risk':'write','requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x3ec983=>configureWorkspace(_0x3ec983,'use')};export const workspaceDefinitions=[workspaceInitDefinition,workspaceUseDefinition,workspaceAddDefinition,workspaceRemoveDefinition];export{WORKSPACE_USAGE};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a261_0x41759b=a261_0x560f;function a261_0x1232(){const _0x3087c7=['206871VODAEp','5175443woMDLh','remove','workspace\x20remove','12jskbWH','7040IsYSnx','1007341Qixdlc','216816sKulEb','workspace','324RCFgdS','Remove\x20an\x20app\x20profile\x20from\x20the\x20current\x20workspace\x20(or\x20--global)','write','1038796lklkdP','name','2929755JddEwE'];a261_0x1232=function(){return _0x3087c7;};return a261_0x1232();}function a261_0x560f(_0x59662c,_0x4584c0){_0x59662c=_0x59662c-0x145;const _0x12328f=a261_0x1232();let _0x560f9b=_0x12328f[_0x59662c];return _0x560f9b;}(function(_0x5b3716,_0x1cd62f){const _0x5762d0=a261_0x560f,_0x1abf3a=_0x5b3716();while(!![]){try{const _0x33d338=-parseInt(_0x5762d0(0x14f))/0x1+parseInt(_0x5762d0(0x146))/0x2+parseInt(_0x5762d0(0x149))/0x3*(-parseInt(_0x5762d0(0x14d))/0x4)+parseInt(_0x5762d0(0x148))/0x5+-parseInt(_0x5762d0(0x150))/0x6+parseInt(_0x5762d0(0x14a))/0x7+parseInt(_0x5762d0(0x14e))/0x8*(parseInt(_0x5762d0(0x152))/0x9);if(_0x33d338===_0x1cd62f)break;else _0x1abf3a['push'](_0x1abf3a['shift']());}catch(_0x2485c3){_0x1abf3a['push'](_0x1abf3a['shift']());}}}(a261_0x1232,0x98d6e));import{buildAppRemoveFlags,runAppRemove,validateAppName}from'../../commands/common/app-registry.js';export const workspaceRemoveDefinition={'service':a261_0x41759b(0x151),'command':a261_0x41759b(0x14b),'description':a261_0x41759b(0x153),'risk':a261_0x41759b(0x145),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':a261_0x41759b(0x147),'description':'App\x20profile\x20name\x20to\x20remove','required':!![]}],'flags':buildAppRemoveFlags(),'validate':_0x3c679c=>validateAppName(_0x3c679c,a261_0x41759b(0x14c)),'execute':_0x59a34b=>runAppRemove(_0x59a34b,a261_0x41759b(0x14c))};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a258_0x375c3d=a258_0x480b;(function(_0x3b7e32,_0x437d37){const _0x196da8=a258_0x480b,_0x56ff12=_0x3b7e32();while(!![]){try{const _0x253aac=parseInt(_0x196da8(0xbc))/0x1*(-parseInt(_0x196da8(0xe9))/0x2)+-parseInt(_0x196da8(0xf5))/0x3*(parseInt(_0x196da8(0xdb))/0x4)+parseInt(_0x196da8(0x10b))/0x5*(-parseInt(_0x196da8(0xed))/0x6)+-parseInt(_0x196da8(0xd7))/0x7+parseInt(_0x196da8(0x100))/0x8+parseInt(_0x196da8(0xf1))/0x9*(-parseInt(_0x196da8(0xc5))/0xa)+parseInt(_0x196da8(0xd3))/0xb;if(_0x253aac===_0x437d37)break;else _0x56ff12['push'](_0x56ff12['shift']());}catch(_0xe7063){_0x56ff12['push'](_0x56ff12['shift']());}}}(a258_0x18e7,0x459a0));import{existsSync,readFileSync}from'node:fs';import{isAbsolute,resolve}from'node:path';import{CliErrors}from'../errors.js';import{ENTERPRISE_ROUTING_CDN_FIELDS,ENTERPRISE_ROUTING_DOMAIN_FIELDS,ENTERPRISE_ROUTING_KIND,ENTERPRISE_ROUTING_PROTOCOL,REQUIRED_ENTERPRISE_ROUTING_CDN_FIELDS,REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS}from'../generated/routing-contract.js';export const DOMAIN_CONFIG_FIELDS=[a258_0x375c3d(0xc0),a258_0x375c3d(0xee),'runtimeDomain',a258_0x375c3d(0xda),a258_0x375c3d(0xeb),a258_0x375c3d(0xd9),'appDomain',a258_0x375c3d(0xe0),a258_0x375c3d(0xf8)];const DOMAIN_FLAGS={'userDomain':a258_0x375c3d(0xe1),'apiDomain':a258_0x375c3d(0xbb),'runtimeDomain':a258_0x375c3d(0xe2),'skillDomain':'skill-domain','kbDomain':a258_0x375c3d(0xfd),'kbServiceDomain':'kb-service-domain','appDomain':a258_0x375c3d(0xc6),'localDomain':a258_0x375c3d(0xe8),'certificateDomain':a258_0x375c3d(0xde)};export const LEGACY_DOMAIN_CONFIG_FIELDS=[a258_0x375c3d(0xe6),a258_0x375c3d(0xf4),a258_0x375c3d(0x107)];const ENTERPRISE_TO_LOCAL_FIELD={'userDomain':'userDomain','apiDomain':'apiDomain','runtimeDomain':a258_0x375c3d(0xf3),'skillDomain':a258_0x375c3d(0xda),'kbDomain':a258_0x375c3d(0xeb),'kbServiceDomain':a258_0x375c3d(0xd9),'appDomain':a258_0x375c3d(0xd4),'localDomain':a258_0x375c3d(0xe0),'certificateDomain':a258_0x375c3d(0xf8)},ROUTING_CONSUMER=a258_0x375c3d(0xd2);function a258_0x480b(_0x20bea3,_0x575fdd){_0x20bea3=_0x20bea3-0xba;const _0x18e7da=a258_0x18e7();let _0x480b42=_0x18e7da[_0x20bea3];return _0x480b42;}export function normalizeDomainOrigin(_0x1d6bcf,_0x414b7d){const _0x4681bc=a258_0x375c3d;if(typeof _0x414b7d!==_0x4681bc(0xd8)||!_0x414b7d[_0x4681bc(0xc3)]())throw CliErrors[_0x4681bc(0xf9)]('Invalid\x20'+_0x1d6bcf+_0x4681bc(0xd5));let _0x30d4cb;try{_0x30d4cb=new URL(_0x414b7d[_0x4681bc(0xc3)]());}catch{throw CliErrors['validation'](_0x4681bc(0x10a)+_0x1d6bcf+':\x20\x22'+_0x414b7d+'\x22\x20is\x20not\x20a\x20valid\x20URL.');}if(_0x30d4cb[_0x4681bc(0xd6)]!==_0x4681bc(0xc4)||_0x30d4cb[_0x4681bc(0xef)]||_0x30d4cb[_0x4681bc(0xe7)]||_0x30d4cb[_0x4681bc(0xc9)]!=='/'&&_0x30d4cb[_0x4681bc(0xc9)]!==''||_0x30d4cb[_0x4681bc(0xf2)]||_0x30d4cb[_0x4681bc(0xe3)])throw CliErrors[_0x4681bc(0xf9)](_0x4681bc(0x10a)+_0x1d6bcf+':\x20expected\x20an\x20HTTPS\x20origin\x20without\x20credentials,\x20path,\x20query,\x20or\x20fragment.',_0x4681bc(0x104));return _0x30d4cb[_0x4681bc(0xbd)];}export function normalizeRoutingDomainValue(_0x2031e3,_0x18c5bb){const _0x37d5b2=a258_0x375c3d;if(typeof _0x18c5bb===_0x37d5b2(0xd8))return normalizeDomainOrigin(_0x2031e3,_0x18c5bb);if(!_0x18c5bb||typeof _0x18c5bb!==_0x37d5b2(0xbe)||Array[_0x37d5b2(0xfa)](_0x18c5bb))throw CliErrors[_0x37d5b2(0xf9)](_0x37d5b2(0x10a)+_0x2031e3+_0x37d5b2(0xca));const _0x466730=_0x18c5bb,_0x407f87=_0x466730[ROUTING_CONSUMER]??_0x466730[_0x37d5b2(0xf6)];if(_0x407f87===undefined)throw CliErrors[_0x37d5b2(0xf9)](_0x37d5b2(0xdd)+_0x2031e3+_0x37d5b2(0x108)+ROUTING_CONSUMER+_0x37d5b2(0xec));return normalizeDomainOrigin(_0x2031e3,_0x407f87);}export function normalizeCdnBaseUrl(_0x9253b8,_0x5cb9b0){const _0x44db1d=a258_0x375c3d;if(typeof _0x5cb9b0!==_0x44db1d(0xd8)||!_0x5cb9b0[_0x44db1d(0xc3)]())throw CliErrors[_0x44db1d(0xf9)](_0x44db1d(0xc7)+_0x9253b8+_0x44db1d(0xf7));const _0x4d2123=_0x5cb9b0[_0x44db1d(0xc3)]()[_0x44db1d(0xdf)](/\/$/,'');let _0x2a1e43;try{_0x2a1e43=new URL(_0x4d2123);}catch{throw CliErrors[_0x44db1d(0xf9)](_0x44db1d(0xc7)+_0x9253b8+_0x44db1d(0xbf)+_0x5cb9b0+_0x44db1d(0xe5));}if(_0x2a1e43[_0x44db1d(0xd6)]!==_0x44db1d(0xc4)||_0x2a1e43['username']||_0x2a1e43['password']||_0x2a1e43[_0x44db1d(0xf2)]||_0x2a1e43['hash']||_0x2a1e43['href'][_0x44db1d(0xdf)](/\/$/,'')!==_0x4d2123||_0x9253b8===_0x44db1d(0xcf)&&_0x2a1e43[_0x44db1d(0xbd)]!==_0x4d2123)throw CliErrors['validation'](_0x44db1d(0xc7)+_0x9253b8+_0x44db1d(0xfe)+(_0x9253b8==='lovrabet'?_0x44db1d(0xbd):'base\x20URL')+_0x44db1d(0xcd));return _0x4d2123;}export function resolveEnterpriseRoutingConfig(_0x4ce60f){const _0x53209b=a258_0x375c3d;return resolveEnterpriseRoutingManifest(_0x4ce60f)?.[_0x53209b(0x109)];}export function resolveEnterpriseRoutingManifest(_0x2da937){const _0x2e4eae=a258_0x375c3d;if(_0x2da937===undefined)return undefined;if(!_0x2da937||typeof _0x2da937!==_0x2e4eae(0xbe)||Array[_0x2e4eae(0xfa)](_0x2da937))throw CliErrors['validation']('Invalid\x20enterprise\x20routing\x20config:\x20expected\x20an\x20object.');return parseEnterpriseRoutingManifest(_0x2da937);}function a258_0x18e7(){const _0x307b83=['validation','isArray','domain-config','enterprise-v1','kb-domain',':\x20expected\x20an\x20HTTPS\x20','cwd','400024mFFcAk','Invalid\x20domain\x20config:\x20provide\x20at\x20least\x20one\x20supported\x20Domain.','filter','Invalid\x20domain\x20config:\x20expected\x20a\x20JSON\x20object.','For\x20internal\x20deployments,\x20terminate\x20TLS\x20at\x20the\x20ingress,\x20reverse\x20proxy,\x20or\x20load\x20balancer;\x20an\x20internal\x20CA\x20is\x20supported.','Enterprise\x20routing\x20manifest\x20requires\x20localDomain\x20and\x20certificateDomain\x20together.','Enterprise\x20routing\x20manifest\x20is\x20missing\x20required\x20CDN\x20field(s):\x20','skillHubDomain','\x20does\x20not\x20provide\x20a\x20Domain\x20for\x20','domains','Invalid\x20','5KNEeAW','length','Unsupported\x20routing\x20manifest:\x20expected\x20protocol\x20\x22','Invalid\x20enterprise\x20routing\x20manifest:\x20cdn\x20must\x20be\x20an\x20object.','join','api-domain','1WOVIOX','origin','object',':\x20\x22','userDomain','Enterprise\x20routing\x20manifests\x20cannot\x20be\x20combined\x20with\x20individual\x20Domain\x20flags.','\x22\x20and\x20kind\x20\x22','trim','https:','560MELZGi','app-domain','Invalid\x20cdn.','cdn','pathname',':\x20expected\x20an\x20HTTPS\x20origin\x20or\x20consumer\x20Domain\x20object.','str','parse','\x20without\x20credentials,\x20query,\x20or\x20fragment.','legacy','lovrabet','keys','Enterprise\x20routing\x20manifest\x20is\x20missing\x20required\x20Domain(s):\x20','rabetbase-cli','10219044IcvYfW','appDomain',':\x20expected\x20a\x20non-empty\x20HTTPS\x20origin.','protocol','3077984tPbPkG','string','kbServiceDomain','skillDomain','4NzCVCY','Unsupported\x20enterprise\x20CDN\x20field(s):\x20','Enterprise\x20','certificate-domain','replace','localDomain','user-domain','runtime-domain','hash','Allowed\x20fields:\x20','\x22\x20is\x20not\x20a\x20valid\x20URL.','agentDomain','password','local-domain','25358wClwGj','utf8','kbDomain','\x20and\x20has\x20no\x20default.','1437330AypoKT','apiDomain','username','includes','225wJbHgJ','search','runtimeDomain','platformDomain','1719dDILjp','default',':\x20expected\x20a\x20non-empty\x20HTTPS\x20URL.','certificateDomain'];a258_0x18e7=function(){return _0x307b83;};return a258_0x18e7();}export function readDomainConfigInput(_0x769470){const _0x195284=a258_0x375c3d,_0x4df70a=isAbsolute(_0x769470)?_0x769470:resolve(process[_0x195284(0xff)](),_0x769470);if(!existsSync(_0x4df70a))throw CliErrors[_0x195284(0xf9)]('Domain\x20config\x20file\x20not\x20found:\x20'+_0x4df70a);let _0x169714;try{_0x169714=JSON[_0x195284(0xcc)](readFileSync(_0x4df70a,_0x195284(0xea)));}catch{throw CliErrors['validation']('Invalid\x20domain\x20config\x20JSON:\x20'+_0x4df70a);}if(!_0x169714||typeof _0x169714!==_0x195284(0xbe)||Array['isArray'](_0x169714))throw CliErrors[_0x195284(0xf9)](_0x195284(0x103));const _0x2d9bac=_0x169714;if(_0x195284(0xd6)in _0x2d9bac)return parseEnterpriseRoutingManifest(_0x2d9bac);const _0x54780d=Object[_0x195284(0xd0)](_0x2d9bac)[_0x195284(0x102)](_0x1c7d4b=>!DOMAIN_CONFIG_FIELDS[_0x195284(0xf0)](_0x1c7d4b));if(_0x54780d[_0x195284(0x10c)]>0x0)throw CliErrors[_0x195284(0xf9)]('Unsupported\x20domain\x20config\x20field(s):\x20'+_0x54780d['join'](',\x20'),_0x195284(0xe4)+DOMAIN_CONFIG_FIELDS[_0x195284(0xba)](',\x20'));const _0x49bc7c={};for(const _0xc924a5 of DOMAIN_CONFIG_FIELDS){_0x2d9bac[_0xc924a5]!==undefined&&(_0x49bc7c[_0xc924a5]=normalizeDomainOrigin(_0xc924a5,_0x2d9bac[_0xc924a5]));}if(Object[_0x195284(0xd0)](_0x49bc7c)['length']===0x0)throw CliErrors[_0x195284(0xf9)](_0x195284(0x101));return{'mode':_0x195284(0xce),'domains':_0x49bc7c};}export function readDomainConfig(_0xbe087c){const _0x1e81a3=a258_0x375c3d;return readDomainConfigInput(_0xbe087c)[_0x1e81a3(0x109)];}export function resolveDomainConfigInput(_0x33288c){const _0x153c1d=a258_0x375c3d,_0x2c7896=(_0x33288c[_0x153c1d(0xcb)](_0x153c1d(0xfb))||'')[_0x153c1d(0xc3)](),_0x45cf98=_0x2c7896?readDomainConfigInput(_0x2c7896):{'mode':_0x153c1d(0xce),'domains':{}},_0x19cb69=DOMAIN_CONFIG_FIELDS[_0x153c1d(0x102)](_0x37ea27=>Boolean((_0x33288c['str'](DOMAIN_FLAGS[_0x37ea27])||'')[_0x153c1d(0xc3)]()));if(_0x45cf98['mode']===_0x153c1d(0xfc)&&_0x19cb69[_0x153c1d(0x10c)]>0x0)throw CliErrors[_0x153c1d(0xf9)](_0x153c1d(0xc1),'Update\x20the\x20manifest\x20so\x20both\x20CLIs\x20consume\x20the\x20same\x20routing\x20data.');for(const _0x2146ad of DOMAIN_CONFIG_FIELDS){const _0x404525=(_0x33288c[_0x153c1d(0xcb)](DOMAIN_FLAGS[_0x2146ad])||'')[_0x153c1d(0xc3)]();if(_0x404525)_0x45cf98['domains'][_0x2146ad]=normalizeDomainOrigin(_0x2146ad,_0x404525);}return _0x45cf98;}export function resolveDomainFlags(_0x486be7){return resolveDomainConfigInput(_0x486be7)['domains'];}export function parseEnterpriseRoutingManifest(_0x1c87b4){const _0x4de9b0=a258_0x375c3d;if(_0x1c87b4['protocol']!==ENTERPRISE_ROUTING_PROTOCOL||_0x1c87b4['kind']!==ENTERPRISE_ROUTING_KIND)throw CliErrors[_0x4de9b0(0xf9)](_0x4de9b0(0x10d)+ENTERPRISE_ROUTING_PROTOCOL+_0x4de9b0(0xc2)+ENTERPRISE_ROUTING_KIND+'\x22.');if(!_0x1c87b4[_0x4de9b0(0x109)]||typeof _0x1c87b4[_0x4de9b0(0x109)]!==_0x4de9b0(0xbe)||Array[_0x4de9b0(0xfa)](_0x1c87b4['domains']))throw CliErrors[_0x4de9b0(0xf9)]('Invalid\x20enterprise\x20routing\x20manifest:\x20domains\x20must\x20be\x20an\x20object.');if(!_0x1c87b4[_0x4de9b0(0xc8)]||typeof _0x1c87b4[_0x4de9b0(0xc8)]!==_0x4de9b0(0xbe)||Array[_0x4de9b0(0xfa)](_0x1c87b4[_0x4de9b0(0xc8)]))throw CliErrors[_0x4de9b0(0xf9)](_0x4de9b0(0x10e));const _0x4b5503=_0x1c87b4['domains'],_0x3d9aa9=REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS[_0x4de9b0(0x102)](_0x2d12cb=>_0x4b5503[_0x2d12cb]===undefined);if(_0x3d9aa9[_0x4de9b0(0x10c)]>0x0)throw CliErrors[_0x4de9b0(0xf9)](_0x4de9b0(0xd1)+_0x3d9aa9[_0x4de9b0(0xba)](',\x20'));if(_0x4b5503[_0x4de9b0(0xe0)]===undefined!==(_0x4b5503['certificateDomain']===undefined))throw CliErrors['validation'](_0x4de9b0(0x105));const _0x1988e5=_0x1c87b4[_0x4de9b0(0xc8)],_0x2ca03c=Object[_0x4de9b0(0xd0)](_0x1988e5)[_0x4de9b0(0x102)](_0x142b28=>!ENTERPRISE_ROUTING_CDN_FIELDS[_0x4de9b0(0xf0)](_0x142b28));if(_0x2ca03c[_0x4de9b0(0x10c)]>0x0)throw CliErrors[_0x4de9b0(0xf9)](_0x4de9b0(0xdc)+_0x2ca03c[_0x4de9b0(0xba)](',\x20'),'Allowed\x20fields:\x20'+ENTERPRISE_ROUTING_CDN_FIELDS['join'](',\x20'));const _0x1ca222=REQUIRED_ENTERPRISE_ROUTING_CDN_FIELDS[_0x4de9b0(0x102)](_0x4dce8a=>_0x1988e5[_0x4dce8a]===undefined);if(_0x1ca222[_0x4de9b0(0x10c)]>0x0)throw CliErrors[_0x4de9b0(0xf9)](_0x4de9b0(0x106)+_0x1ca222[_0x4de9b0(0xba)](',\x20'));const _0x4bfac9={};for(const _0x592d86 of ENTERPRISE_ROUTING_CDN_FIELDS){_0x4bfac9[_0x592d86]=normalizeCdnBaseUrl(_0x592d86,_0x1988e5[_0x592d86]);}const _0x4c4ffb={},_0x15cd7b={};for(const _0x1632a4 of ENTERPRISE_ROUTING_DOMAIN_FIELDS){const _0x2b9572=_0x4b5503[_0x1632a4];if(_0x2b9572===undefined)continue;const _0x1e7d57=normalizeRoutingDomainValue(_0x1632a4,_0x2b9572);_0x4c4ffb[_0x1632a4]=_0x1e7d57;const _0x216451=ENTERPRISE_TO_LOCAL_FIELD[_0x1632a4];_0x216451&&(_0x15cd7b[_0x216451]=_0x1e7d57);}return{'mode':_0x4de9b0(0xfc),'domains':_0x15cd7b,'manifestDomains':_0x4c4ffb,'cdn':_0x4bfac9};}
|
|
1
|
+
const a262_0x4a845c=a262_0x2d69;(function(_0x498d6f,_0xb88fa4){const _0x4b57e1=a262_0x2d69,_0x28f9ab=_0x498d6f();while(!![]){try{const _0x435e01=-parseInt(_0x4b57e1(0x180))/0x1*(-parseInt(_0x4b57e1(0x1a0))/0x2)+-parseInt(_0x4b57e1(0x186))/0x3*(-parseInt(_0x4b57e1(0x1c1))/0x4)+parseInt(_0x4b57e1(0x171))/0x5+parseInt(_0x4b57e1(0x1a6))/0x6+parseInt(_0x4b57e1(0x18c))/0x7*(parseInt(_0x4b57e1(0x1bc))/0x8)+-parseInt(_0x4b57e1(0x181))/0x9*(-parseInt(_0x4b57e1(0x17e))/0xa)+parseInt(_0x4b57e1(0x195))/0xb*(-parseInt(_0x4b57e1(0x19b))/0xc);if(_0x435e01===_0xb88fa4)break;else _0x28f9ab['push'](_0x28f9ab['shift']());}catch(_0x1d82af){_0x28f9ab['push'](_0x28f9ab['shift']());}}}(a262_0x414e,0x3a4f2));import{existsSync,readFileSync}from'node:fs';import{isAbsolute,resolve}from'node:path';import{CliErrors}from'../errors.js';import{ENTERPRISE_ROUTING_CDN_FIELDS,ENTERPRISE_ROUTING_DOMAIN_FIELDS,ENTERPRISE_ROUTING_KIND,ENTERPRISE_ROUTING_PROTOCOL,REQUIRED_ENTERPRISE_ROUTING_CDN_FIELDS,REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS}from'../generated/routing-contract.js';export const DOMAIN_CONFIG_FIELDS=['userDomain','apiDomain','runtimeDomain',a262_0x4a845c(0x18b),a262_0x4a845c(0x174),'kbServiceDomain','appDomain',a262_0x4a845c(0x1aa),'certificateDomain'];const DOMAIN_FLAGS={'userDomain':a262_0x4a845c(0x176),'apiDomain':'api-domain','runtimeDomain':'runtime-domain','skillDomain':a262_0x4a845c(0x19a),'kbDomain':a262_0x4a845c(0x1b7),'kbServiceDomain':'kb-service-domain','appDomain':a262_0x4a845c(0x196),'localDomain':a262_0x4a845c(0x17c),'certificateDomain':a262_0x4a845c(0x172)};export const LEGACY_DOMAIN_CONFIG_FIELDS=[a262_0x4a845c(0x170),a262_0x4a845c(0x1ac),a262_0x4a845c(0x19e)];const ENTERPRISE_TO_LOCAL_FIELD={'userDomain':a262_0x4a845c(0x1c3),'apiDomain':a262_0x4a845c(0x1a8),'runtimeDomain':a262_0x4a845c(0x1bd),'skillDomain':a262_0x4a845c(0x18b),'kbDomain':a262_0x4a845c(0x174),'kbServiceDomain':'kbServiceDomain','appDomain':a262_0x4a845c(0x1b2),'localDomain':a262_0x4a845c(0x1aa),'certificateDomain':a262_0x4a845c(0x1a5)},ROUTING_CONSUMER='rabetbase-cli';export function normalizeDomainOrigin(_0x191ceb,_0x3aa5fb){const _0x1e6e0b=a262_0x4a845c;if(typeof _0x3aa5fb!==_0x1e6e0b(0x1c2)||!_0x3aa5fb[_0x1e6e0b(0x1a2)]())throw CliErrors[_0x1e6e0b(0x1af)](_0x1e6e0b(0x1b9)+_0x191ceb+':\x20expected\x20a\x20non-empty\x20HTTPS\x20origin.');let _0x27d3b9;try{_0x27d3b9=new URL(_0x3aa5fb[_0x1e6e0b(0x1a2)]());}catch{throw CliErrors['validation'](_0x1e6e0b(0x1b9)+_0x191ceb+':\x20\x22'+_0x3aa5fb+'\x22\x20is\x20not\x20a\x20valid\x20URL.');}if(_0x27d3b9[_0x1e6e0b(0x177)]!==_0x1e6e0b(0x1b6)||_0x27d3b9[_0x1e6e0b(0x19d)]||_0x27d3b9[_0x1e6e0b(0x1ba)]||_0x27d3b9[_0x1e6e0b(0x183)]!=='/'&&_0x27d3b9[_0x1e6e0b(0x183)]!==''||_0x27d3b9['search']||_0x27d3b9[_0x1e6e0b(0x194)])throw CliErrors[_0x1e6e0b(0x1af)]('Invalid\x20'+_0x191ceb+':\x20expected\x20an\x20HTTPS\x20origin\x20without\x20credentials,\x20path,\x20query,\x20or\x20fragment.',_0x1e6e0b(0x1b4));return _0x27d3b9[_0x1e6e0b(0x18f)];}export function normalizeRoutingDomainValue(_0x410d80,_0x3532d6){const _0x14fb11=a262_0x4a845c;if(typeof _0x3532d6===_0x14fb11(0x1c2))return normalizeDomainOrigin(_0x410d80,_0x3532d6);if(!_0x3532d6||typeof _0x3532d6!=='object'||Array['isArray'](_0x3532d6))throw CliErrors[_0x14fb11(0x1af)](_0x14fb11(0x1b9)+_0x410d80+_0x14fb11(0x187));const _0x465905=_0x3532d6,_0x1f3ba4=_0x465905[ROUTING_CONSUMER]??_0x465905[_0x14fb11(0x17b)];if(_0x1f3ba4===undefined)throw CliErrors[_0x14fb11(0x1af)](_0x14fb11(0x1b3)+_0x410d80+'\x20does\x20not\x20provide\x20a\x20Domain\x20for\x20'+ROUTING_CONSUMER+_0x14fb11(0x1a3));return normalizeDomainOrigin(_0x410d80,_0x1f3ba4);}export function normalizeCdnBaseUrl(_0x406970,_0xaf4878){const _0x4831ea=a262_0x4a845c;if(typeof _0xaf4878!==_0x4831ea(0x1c2)||!_0xaf4878[_0x4831ea(0x1a2)]())throw CliErrors['validation'](_0x4831ea(0x1b8)+_0x406970+_0x4831ea(0x1ad));const _0x374a84=_0xaf4878[_0x4831ea(0x1a2)]()[_0x4831ea(0x17d)](/\/$/,'');let _0x42923e;try{_0x42923e=new URL(_0x374a84);}catch{throw CliErrors[_0x4831ea(0x1af)](_0x4831ea(0x1b8)+_0x406970+_0x4831ea(0x190)+_0xaf4878+_0x4831ea(0x1a7));}if(_0x42923e[_0x4831ea(0x177)]!==_0x4831ea(0x1b6)||_0x42923e[_0x4831ea(0x19d)]||_0x42923e[_0x4831ea(0x1ba)]||_0x42923e[_0x4831ea(0x188)]||_0x42923e[_0x4831ea(0x194)]||_0x42923e['href'][_0x4831ea(0x17d)](/\/$/,'')!==_0x374a84||_0x406970==='lovrabet'&&_0x42923e['origin']!==_0x374a84)throw CliErrors[_0x4831ea(0x1af)]('Invalid\x20cdn.'+_0x406970+_0x4831ea(0x1ab)+(_0x406970===_0x4831ea(0x1a9)?_0x4831ea(0x18f):'base\x20URL')+_0x4831ea(0x191));return _0x374a84;}export function resolveEnterpriseRoutingConfig(_0x4f9c05){return resolveEnterpriseRoutingManifest(_0x4f9c05)?.['domains'];}export function resolveEnterpriseRoutingManifest(_0x3475c7){const _0x1fc8b7=a262_0x4a845c;if(_0x3475c7===undefined)return undefined;if(!_0x3475c7||typeof _0x3475c7!==_0x1fc8b7(0x179)||Array['isArray'](_0x3475c7))throw CliErrors[_0x1fc8b7(0x1af)](_0x1fc8b7(0x192));return parseEnterpriseRoutingManifest(_0x3475c7);}function a262_0x414e(){const _0x4345d9=['skillHubDomain','cdn','100icNtqu','Unsupported\x20domain\x20config\x20field(s):\x20','trim','\x20and\x20has\x20no\x20default.','Unsupported\x20enterprise\x20CDN\x20field(s):\x20','certificateDomain','2406288NZHRKb','\x22\x20is\x20not\x20a\x20valid\x20URL.','apiDomain','lovrabet','localDomain',':\x20expected\x20an\x20HTTPS\x20','platformDomain',':\x20expected\x20a\x20non-empty\x20HTTPS\x20URL.','legacy','validation','join','length','appDomain','Enterprise\x20','For\x20internal\x20deployments,\x20terminate\x20TLS\x20at\x20the\x20ingress,\x20reverse\x20proxy,\x20or\x20load\x20balancer;\x20an\x20internal\x20CA\x20is\x20supported.','mode','https:','kb-domain','Invalid\x20cdn.','Invalid\x20','password','Enterprise\x20routing\x20manifest\x20is\x20missing\x20required\x20CDN\x20field(s):\x20','2676880uBMedR','runtimeDomain','Enterprise\x20routing\x20manifests\x20cannot\x20be\x20combined\x20with\x20individual\x20Domain\x20flags.','filter','Allowed\x20fields:\x20','4AvYyuc','string','userDomain','agentDomain','101915eIDjUi','certificate-domain','includes','kbDomain','utf8','user-domain','protocol','domains','object','Invalid\x20enterprise\x20routing\x20manifest:\x20domains\x20must\x20be\x20an\x20object.','default','local-domain','replace','3875860huKIqD','str','6373Mfvroa','9HaqXTC','Invalid\x20enterprise\x20routing\x20manifest:\x20cdn\x20must\x20be\x20an\x20object.','pathname','\x22\x20and\x20kind\x20\x22','keys','462525xtvQAF',':\x20expected\x20an\x20HTTPS\x20origin\x20or\x20consumer\x20Domain\x20object.','search','cwd','domain-config','skillDomain','7JXQWSR','enterprise-v1','parse','origin',':\x20\x22','\x20without\x20credentials,\x20query,\x20or\x20fragment.','Invalid\x20enterprise\x20routing\x20config:\x20expected\x20an\x20object.','isArray','hash','459206pygvok','app-domain','Unsupported\x20routing\x20manifest:\x20expected\x20protocol\x20\x22','Enterprise\x20routing\x20manifest\x20is\x20missing\x20required\x20Domain(s):\x20','Invalid\x20domain\x20config:\x20provide\x20at\x20least\x20one\x20supported\x20Domain.','skill-domain','396JfQnzo','Invalid\x20domain\x20config\x20JSON:\x20','username'];a262_0x414e=function(){return _0x4345d9;};return a262_0x414e();}export function readDomainConfigInput(_0x3b6e24){const _0x6a5e4c=a262_0x4a845c,_0x155b90=isAbsolute(_0x3b6e24)?_0x3b6e24:resolve(process[_0x6a5e4c(0x189)](),_0x3b6e24);if(!existsSync(_0x155b90))throw CliErrors[_0x6a5e4c(0x1af)]('Domain\x20config\x20file\x20not\x20found:\x20'+_0x155b90);let _0x51803b;try{_0x51803b=JSON[_0x6a5e4c(0x18e)](readFileSync(_0x155b90,_0x6a5e4c(0x175)));}catch{throw CliErrors[_0x6a5e4c(0x1af)](_0x6a5e4c(0x19c)+_0x155b90);}if(!_0x51803b||typeof _0x51803b!==_0x6a5e4c(0x179)||Array[_0x6a5e4c(0x193)](_0x51803b))throw CliErrors[_0x6a5e4c(0x1af)]('Invalid\x20domain\x20config:\x20expected\x20a\x20JSON\x20object.');const _0x177755=_0x51803b;if(_0x6a5e4c(0x177)in _0x177755)return parseEnterpriseRoutingManifest(_0x177755);const _0xe9e9e3=Object['keys'](_0x177755)[_0x6a5e4c(0x1bf)](_0x2e753f=>!DOMAIN_CONFIG_FIELDS['includes'](_0x2e753f));if(_0xe9e9e3[_0x6a5e4c(0x1b1)]>0x0)throw CliErrors[_0x6a5e4c(0x1af)](_0x6a5e4c(0x1a1)+_0xe9e9e3[_0x6a5e4c(0x1b0)](',\x20'),_0x6a5e4c(0x1c0)+DOMAIN_CONFIG_FIELDS[_0x6a5e4c(0x1b0)](',\x20'));const _0x25ca32={};for(const _0x326304 of DOMAIN_CONFIG_FIELDS){_0x177755[_0x326304]!==undefined&&(_0x25ca32[_0x326304]=normalizeDomainOrigin(_0x326304,_0x177755[_0x326304]));}if(Object[_0x6a5e4c(0x185)](_0x25ca32)[_0x6a5e4c(0x1b1)]===0x0)throw CliErrors[_0x6a5e4c(0x1af)](_0x6a5e4c(0x199));return{'mode':_0x6a5e4c(0x1ae),'domains':_0x25ca32};}export function readDomainConfig(_0x3e3a60){return readDomainConfigInput(_0x3e3a60)['domains'];}export function resolveDomainConfigInput(_0x169d56){const _0x4e9feb=a262_0x4a845c,_0x1533e8=(_0x169d56['str'](_0x4e9feb(0x18a))||'')[_0x4e9feb(0x1a2)](),_0x683f1c=_0x1533e8?readDomainConfigInput(_0x1533e8):{'mode':_0x4e9feb(0x1ae),'domains':{}},_0x1c7f5c=DOMAIN_CONFIG_FIELDS[_0x4e9feb(0x1bf)](_0x541bd5=>Boolean((_0x169d56[_0x4e9feb(0x17f)](DOMAIN_FLAGS[_0x541bd5])||'')[_0x4e9feb(0x1a2)]()));if(_0x683f1c[_0x4e9feb(0x1b5)]===_0x4e9feb(0x18d)&&_0x1c7f5c[_0x4e9feb(0x1b1)]>0x0)throw CliErrors[_0x4e9feb(0x1af)](_0x4e9feb(0x1be),'Update\x20the\x20manifest\x20so\x20both\x20CLIs\x20consume\x20the\x20same\x20routing\x20data.');for(const _0x4f437b of DOMAIN_CONFIG_FIELDS){const _0x1babea=(_0x169d56[_0x4e9feb(0x17f)](DOMAIN_FLAGS[_0x4f437b])||'')['trim']();if(_0x1babea)_0x683f1c[_0x4e9feb(0x178)][_0x4f437b]=normalizeDomainOrigin(_0x4f437b,_0x1babea);}return _0x683f1c;}export function resolveDomainFlags(_0x4674b0){const _0x1f213a=a262_0x4a845c;return resolveDomainConfigInput(_0x4674b0)[_0x1f213a(0x178)];}function a262_0x2d69(_0x9a737e,_0xcc1acb){_0x9a737e=_0x9a737e-0x170;const _0x414e73=a262_0x414e();let _0x2d699e=_0x414e73[_0x9a737e];return _0x2d699e;}export function parseEnterpriseRoutingManifest(_0x54bfef){const _0x10d5ae=a262_0x4a845c;if(_0x54bfef[_0x10d5ae(0x177)]!==ENTERPRISE_ROUTING_PROTOCOL||_0x54bfef['kind']!==ENTERPRISE_ROUTING_KIND)throw CliErrors[_0x10d5ae(0x1af)](_0x10d5ae(0x197)+ENTERPRISE_ROUTING_PROTOCOL+_0x10d5ae(0x184)+ENTERPRISE_ROUTING_KIND+'\x22.');if(!_0x54bfef[_0x10d5ae(0x178)]||typeof _0x54bfef['domains']!==_0x10d5ae(0x179)||Array[_0x10d5ae(0x193)](_0x54bfef[_0x10d5ae(0x178)]))throw CliErrors[_0x10d5ae(0x1af)](_0x10d5ae(0x17a));if(!_0x54bfef[_0x10d5ae(0x19f)]||typeof _0x54bfef[_0x10d5ae(0x19f)]!==_0x10d5ae(0x179)||Array[_0x10d5ae(0x193)](_0x54bfef[_0x10d5ae(0x19f)]))throw CliErrors[_0x10d5ae(0x1af)](_0x10d5ae(0x182));const _0xd9b070=_0x54bfef['domains'],_0x2b3a05=REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS[_0x10d5ae(0x1bf)](_0x1dbb5d=>_0xd9b070[_0x1dbb5d]===undefined);if(_0x2b3a05[_0x10d5ae(0x1b1)]>0x0)throw CliErrors[_0x10d5ae(0x1af)](_0x10d5ae(0x198)+_0x2b3a05['join'](',\x20'));if(_0xd9b070[_0x10d5ae(0x1aa)]===undefined!==(_0xd9b070[_0x10d5ae(0x1a5)]===undefined))throw CliErrors['validation']('Enterprise\x20routing\x20manifest\x20requires\x20localDomain\x20and\x20certificateDomain\x20together.');const _0x59a709=_0x54bfef[_0x10d5ae(0x19f)],_0x562ccb=Object[_0x10d5ae(0x185)](_0x59a709)[_0x10d5ae(0x1bf)](_0x166139=>!ENTERPRISE_ROUTING_CDN_FIELDS[_0x10d5ae(0x173)](_0x166139));if(_0x562ccb[_0x10d5ae(0x1b1)]>0x0)throw CliErrors[_0x10d5ae(0x1af)](_0x10d5ae(0x1a4)+_0x562ccb[_0x10d5ae(0x1b0)](',\x20'),'Allowed\x20fields:\x20'+ENTERPRISE_ROUTING_CDN_FIELDS[_0x10d5ae(0x1b0)](',\x20'));const _0x41b988=REQUIRED_ENTERPRISE_ROUTING_CDN_FIELDS[_0x10d5ae(0x1bf)](_0x29eae1=>_0x59a709[_0x29eae1]===undefined);if(_0x41b988['length']>0x0)throw CliErrors[_0x10d5ae(0x1af)](_0x10d5ae(0x1bb)+_0x41b988[_0x10d5ae(0x1b0)](',\x20'));const _0x496334={};for(const _0x256b37 of ENTERPRISE_ROUTING_CDN_FIELDS){_0x496334[_0x256b37]=normalizeCdnBaseUrl(_0x256b37,_0x59a709[_0x256b37]);}const _0x3ce5aa={},_0x2b485e={};for(const _0x148601 of ENTERPRISE_ROUTING_DOMAIN_FIELDS){const _0x5877e3=_0xd9b070[_0x148601];if(_0x5877e3===undefined)continue;const _0x55da3c=normalizeRoutingDomainValue(_0x148601,_0x5877e3);_0x3ce5aa[_0x148601]=_0x55da3c;const _0x4f6135=ENTERPRISE_TO_LOCAL_FIELD[_0x148601];_0x4f6135&&(_0x2b485e[_0x4f6135]=_0x55da3c);}return{'mode':_0x10d5ae(0x18d),'domains':_0x2b485e,'manifestDomains':_0x3ce5aa,'cdn':_0x496334};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a263_0x4f0335=a263_0x29de;(function(_0x2820ed,_0x3d3017){const _0x2c25cf=a263_0x29de,_0x370c17=_0x2820ed();while(!![]){try{const _0x337405=parseInt(_0x2c25cf(0x101))/0x1+parseInt(_0x2c25cf(0xf9))/0x2*(-parseInt(_0x2c25cf(0xec))/0x3)+parseInt(_0x2c25cf(0xf3))/0x4+-parseInt(_0x2c25cf(0xf1))/0x5+parseInt(_0x2c25cf(0xfe))/0x6*(-parseInt(_0x2c25cf(0xf8))/0x7)+-parseInt(_0x2c25cf(0xfd))/0x8*(-parseInt(_0x2c25cf(0x100))/0x9)+parseInt(_0x2c25cf(0xf5))/0xa*(parseInt(_0x2c25cf(0xff))/0xb);if(_0x337405===_0x3d3017)break;else _0x370c17['push'](_0x370c17['shift']());}catch(_0x31f56c){_0x370c17['push'](_0x370c17['shift']());}}}(a263_0x15a3,0xc88d9));function a263_0x29de(_0x440b45,_0x2524e4){_0x440b45=_0x440b45-0xeb;const _0x15a3b0=a263_0x15a3();let _0x29de32=_0x15a3b0[_0x440b45];return _0x29de32;}function a263_0x15a3(){const _0x1f112c=['1053OFZCIT','967719ClGOqA','now','lovrabet-project-domain-routing/v1','30NBmeRc','/cert/lovrabet-dev.json','lovrabet','Independent\x20deployment\x20routing\x20requires\x20localDomain\x20and\x20certificateDomain\x20together.','official','6306385jobgag','http://localhost','1040480csYebZ','utf8','40710RNQbUE','local','independent','7UYTQnn','127718ZMPhqr','rabetbase.domain-routing.json','pid','origin','101576PBccpH','7793082yTCCOr','3531QAeRcX'];a263_0x15a3=function(){return _0x1f112c;};return a263_0x15a3();}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=a263_0x4f0335(0xfa);export const PROJECT_DOMAIN_ROUTING_PROTOCOL=a263_0x4f0335(0xeb);export function getProjectDomainRoutingManifest(){const _0x5ccac5=a263_0x4f0335,_0x549326=getActiveRegion(),_0x33a81a=isIndependentDeployment(),_0x1fd2ac=getOfficialRoutingProfile(_0x549326),_0x51c0ec=getLocalDomain(),_0x5f26b8=getCertificateDomain(),_0x404380=getActiveCdn();if(!!_0x51c0ec!==!!_0x5f26b8)throw new Error(_0x5ccac5(0xef));return{'protocol':PROJECT_DOMAIN_ROUTING_PROTOCOL,'mode':_0x33a81a?_0x5ccac5(0xf7):_0x5ccac5(0xf0),'region':_0x33a81a?null:_0x549326,'domains':{'api':getApiDomain(),'runtime':getRuntimeDomain(),'user':getUserDomain(),'app':getAppDomain(),'skill':getSkillDomain(),'kb':getKbDomain()},'cdn':_0x404380,'local':_0x51c0ec&&_0x5f26b8?{'origin':_0x51c0ec,'certificateUrl':_0x5f26b8+_0x5ccac5(0xed)}:_0x33a81a?{'origin':_0x5ccac5(0xf2)}:{'origin':_0x1fd2ac[_0x5ccac5(0xf6)][_0x5ccac5(0xfc)],'certificateUrl':_0x404380[_0x5ccac5(0xee)]+_0x5ccac5(0xed)}};}export function writeProjectDomainRoutingManifest(_0x2e13f0){const _0x247878=a263_0x4f0335,_0x551435=getProjectDomainRoutingManifest(),_0x572780=join(_0x2e13f0,PROJECT_DOMAIN_ROUTING_FILE_NAME),_0x497bc7=JSON['stringify'](_0x551435,null,0x2)+'\x0a';try{if(readFileSync(_0x572780,'utf8')===_0x497bc7)return{'path':_0x572780,'manifest':_0x551435,'changed':![]};}catch{}const _0x324659=_0x572780+'.'+process[_0x247878(0xfb)]+'.'+Date[_0x247878(0x102)]()+'.tmp';try{writeFileSync(_0x324659,_0x497bc7,{'encoding':_0x247878(0xf4),'mode':0x1a4}),renameSync(_0x324659,_0x572780);}catch(_0x382e78){try{unlinkSync(_0x324659);}catch{}throw _0x382e78;}return{'path':_0x572780,'manifest':_0x551435,'changed':!![]};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a264_0x808344=a264_0x28fc;(function(_0x3d54df,_0x248b97){const _0x36145e=a264_0x28fc,_0x3ae893=_0x3d54df();while(!![]){try{const _0x836904=-parseInt(_0x36145e(0x16e))/0x1+-parseInt(_0x36145e(0x170))/0x2*(parseInt(_0x36145e(0x176))/0x3)+parseInt(_0x36145e(0x16a))/0x4+-parseInt(_0x36145e(0x166))/0x5*(-parseInt(_0x36145e(0x163))/0x6)+parseInt(_0x36145e(0x167))/0x7+parseInt(_0x36145e(0x180))/0x8*(-parseInt(_0x36145e(0x17f))/0x9)+-parseInt(_0x36145e(0x168))/0xa*(-parseInt(_0x36145e(0x16b))/0xb);if(_0x836904===_0x248b97)break;else _0x3ae893['push'](_0x3ae893['shift']());}catch(_0x2d8b49){_0x3ae893['push'](_0x3ae893['shift']());}}}(a264_0x3de5,0xaad3b));import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_LOVRABET_REGION,isInvalidLovrabetRegion,normalizeLovrabetRegion}from'../constant/region.js';import{CliErrors}from'../errors.js';function a264_0x3de5(){const _0x2cf4bc=['appRegion','selected\x20app\x20profile','45GHOLQj','1103864szghQT','config','global','value','545478NUqYOv','source','project','5AgQfeW','8560762DMZpDl','1409910brRQqC','appName','4016008rcoMgy','11zUtocp','validation','Rabetbase\x20configuration','36083klcdFm','null','2858mQssZl','app','app\x20profile\x20\x22','mergedRegion','Invalid\x20country/region\x20','global\x20Rabetbase\x20configuration','2169WHtYlU','string','project\x20Rabetbase\x20configuration','\x20doctor`\x20to\x20locate\x20and\x20repair\x20the\x20invalid\x20configuration\x20before\x20retrying.','stringify','globalRegion','projectRegion'];a264_0x3de5=function(){return _0x2cf4bc;};return a264_0x3de5();}function a264_0x28fc(_0x2a2f1f,_0x36cb1e){_0x2a2f1f=_0x2a2f1f-0x161;const _0x3de5c0=a264_0x3de5();let _0x28fc6c=_0x3de5c0[_0x2a2f1f];return _0x28fc6c;}export function selectConfiguredRegion(_0x51fbe4){const _0x4dbee7=a264_0x28fc;if(_0x51fbe4[_0x4dbee7(0x17d)]!==undefined&&_0x51fbe4['appRegion']!==null&&_0x51fbe4[_0x4dbee7(0x17d)]!=='')return{'value':_0x51fbe4[_0x4dbee7(0x17d)],'source':_0x4dbee7(0x171)};if(_0x51fbe4['projectRegion']!==undefined&&_0x51fbe4[_0x4dbee7(0x17c)]!==null&&_0x51fbe4['projectRegion']!=='')return{'value':_0x51fbe4[_0x4dbee7(0x17c)],'source':_0x4dbee7(0x165)};if(_0x51fbe4[_0x4dbee7(0x17b)]!==undefined&&_0x51fbe4[_0x4dbee7(0x17b)]!==null&&_0x51fbe4[_0x4dbee7(0x17b)]!=='')return{'value':_0x51fbe4[_0x4dbee7(0x17b)],'source':_0x4dbee7(0x161)};if(_0x51fbe4['mergedRegion']!==undefined&&_0x51fbe4[_0x4dbee7(0x173)]!==null&&_0x51fbe4['mergedRegion']!=='')return{'value':_0x51fbe4['mergedRegion'],'source':_0x4dbee7(0x181)};return{'value':undefined,'source':'default'};}function describeConfiguredRegion(_0xf23151){const _0x570d7d=a264_0x28fc;return typeof _0xf23151===_0x570d7d(0x177)?JSON[_0x570d7d(0x17a)](_0xf23151):'a\x20value\x20of\x20type\x20'+(_0xf23151===null?_0x570d7d(0x16f):typeof _0xf23151);}export function resolveConfiguredRegion(_0x1d5111,_0x1e1194=a264_0x808344(0x16d)){const _0x629763=a264_0x808344;if(isInvalidLovrabetRegion(_0x1d5111))throw CliErrors[_0x629763(0x16c)](_0x629763(0x174)+describeConfiguredRegion(_0x1d5111)+'\x20in\x20'+_0x1e1194+'.','Run\x20`'+CLI_BIN_NAME+_0x629763(0x179));return normalizeLovrabetRegion(_0x1d5111)??DEFAULT_LOVRABET_REGION;}export function resolveEffectiveRegion(_0x3b752d){const _0x374c93=a264_0x808344,_0x3f0dc1=selectConfiguredRegion(_0x3b752d),_0x250499=_0x3f0dc1['source']===_0x374c93(0x171)?_0x3b752d[_0x374c93(0x169)]?_0x374c93(0x172)+_0x3b752d[_0x374c93(0x169)]+'\x22':_0x374c93(0x17e):_0x3f0dc1['source']===_0x374c93(0x165)?_0x374c93(0x178):_0x3f0dc1[_0x374c93(0x164)]===_0x374c93(0x161)?_0x374c93(0x175):_0x374c93(0x16d);return{'region':resolveConfiguredRegion(_0x3f0dc1[_0x374c93(0x162)],_0x250499),'source':_0x3f0dc1[_0x374c93(0x164)]};}
|
package/lib/config/schema.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a261_0x587b92=a261_0x2849;(function(_0x527cbc,_0x2f4bce){const _0x2394a7=a261_0x2849,_0x57b360=_0x527cbc();while(!![]){try{const _0x43f94f=parseInt(_0x2394a7(0x212))/0x1*(parseInt(_0x2394a7(0x1fb))/0x2)+-parseInt(_0x2394a7(0x20a))/0x3+parseInt(_0x2394a7(0x213))/0x4+parseInt(_0x2394a7(0x1ef))/0x5+-parseInt(_0x2394a7(0x1f2))/0x6*(-parseInt(_0x2394a7(0x1eb))/0x7)+-parseInt(_0x2394a7(0x1fa))/0x8+-parseInt(_0x2394a7(0x1f3))/0x9*(parseInt(_0x2394a7(0x1ec))/0xa);if(_0x43f94f===_0x2f4bce)break;else _0x57b360['push'](_0x57b360['shift']());}catch(_0x22e039){_0x57b360['push'](_0x57b360['shift']());}}}(a261_0x4be2,0x4d828));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{isDaily,isProduction,RABETBASE_ENV_VALUES}from'../constant/env.js';import{RABETBASE_OUTPUT_FORMAT_VALUES}from'../constant/output.js';import{RISK_LEVEL_VALUES}from'../constant/risk.js';import{ENABLED_LOVRABET_REGION_VALUES}from'../constant/region.js';export{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';export const PROJECT_CREATE_INHERITABLE_KEYS=[a261_0x587b92(0x202),a261_0x587b92(0x211),a261_0x587b92(0x21b),a261_0x587b92(0x219),a261_0x587b92(0x1f6),'region','routing',a261_0x587b92(0x1ea),a261_0x587b92(0x1f1),a261_0x587b92(0x216),a261_0x587b92(0x1e8),'kbDomain',a261_0x587b92(0x209),'appDomain',a261_0x587b92(0x1f8),a261_0x587b92(0x1fd)];function a261_0x2849(_0x22bec4,_0x7637a){_0x22bec4=_0x22bec4-0x1e6;const _0x4be223=a261_0x4be2();let _0x284958=_0x4be223[_0x22bec4];return _0x284958;}export const TOP_LEVEL_CONFIG_KEYS=new Set([a261_0x587b92(0x21a),a261_0x587b92(0x201),a261_0x587b92(0x21b),a261_0x587b92(0x219),'cookie',a261_0x587b92(0x211),a261_0x587b92(0x204),a261_0x587b92(0x20f),a261_0x587b92(0x1ea),a261_0x587b92(0x1f1),a261_0x587b92(0x216),a261_0x587b92(0x1e8),a261_0x587b92(0x21c),a261_0x587b92(0x209),a261_0x587b92(0x203),a261_0x587b92(0x1f8),a261_0x587b92(0x1fd)]);export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES],'region':[...ENABLED_LOVRABET_REGION_VALUES]};export function formatConfigKeyList(_0x2e545d){const _0x3ded59=a261_0x587b92;return[..._0x2e545d][_0x3ded59(0x1fc)](',\x20');}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function isTopLevelConfigKey(_0x78aab5){return TOP_LEVEL_CONFIG_KEYS['has'](_0x78aab5);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x56fdf4=a261_0x587b92;return _0x56fdf4(0x21d)+getTopLevelConfigKeySummary()+')';}export const APP_PROFILE_FLAG_KEY_MAP={'apiGroup':a261_0x587b92(0x217),'region':a261_0x587b92(0x20f),'env':a261_0x587b92(0x201),'apiDir':a261_0x587b92(0x204),'cookie':a261_0x587b92(0x202),'accessKey':a261_0x587b92(0x211),'defaultFormat':a261_0x587b92(0x219),'pageSize':a261_0x587b92(0x20b),'riskLevel':a261_0x587b92(0x1f6),'locale':a261_0x587b92(0x21b)};export function getAppProfileFlagDefs(){const _0x4a0777=a261_0x587b92;return[{'name':_0x4a0777(0x217),'type':_0x4a0777(0x207),'description':'Join\x20key\x20for\x20app\x20profiles\x20that\x20share\x20one\x20generated\x20API\x20model\x20registry'},{'name':'region','type':_0x4a0777(0x207),'description':_0x4a0777(0x1f7),'enum':[...ENABLED_LOVRABET_REGION_VALUES]},{'name':_0x4a0777(0x201),'type':'string','description':_0x4a0777(0x200),'enum':[...RABETBASE_ENV_VALUES]},{'name':_0x4a0777(0x204),'type':_0x4a0777(0x207),'description':_0x4a0777(0x20e)},{'name':_0x4a0777(0x202),'type':'string','description':'Auth\x20cookie','hidden':!![]},{'name':_0x4a0777(0x211),'type':_0x4a0777(0x207),'description':_0x4a0777(0x215),'hidden':!![]},{'name':_0x4a0777(0x218),'type':_0x4a0777(0x207),'description':'Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':_0x4a0777(0x20b),'type':_0x4a0777(0x208),'description':_0x4a0777(0x20c)},{'name':_0x4a0777(0x1f6),'type':_0x4a0777(0x207),'description':'Risk\x20level','enum':[...RISK_LEVEL_VALUES]},{'name':_0x4a0777(0x21b),'type':_0x4a0777(0x207),'description':_0x4a0777(0x210)}];}function a261_0x4be2(){const _0xe4f312=['kbServiceDomain','1309494JSDzDW','pageSize','Default\x20page\x20size','entries','API\x20directory\x20path','region','App\x20locale\x20(not\x20CLI\x20language;\x20reserved\x20for\x20later\x20app\x20use)','accessKey','5053XdisfZ','735280IklPyH','keys','Access\x20key','runtimeDomain','apiGroup','defaultFormat','format','appcode','locale','kbDomain','Config\x20key\x20(','en-US','defaultApp','skillDomain','values','userDomain','7oGotaK','10zMbfCw','map','length','1426830afJXwX','app','apiDomain','3792234AoMdqT','4608621MkzZpm','fromEntries','inherit','riskLevel','Country/region\x20for\x20this\x20app\x20profile','localDomain','object','1915344zfTvxH','160IyVwKl','join','certificateDomain','some','apps','Target\x20environment','env','cookie','appDomain','apiDir','zh-CN','filter','string','number'];a261_0x4be2=function(){return _0xe4f312;};return a261_0x4be2();}export function collectAppProfileOverrides(_0x8a75e6){const _0x4473d1={};for(const [_0x4a0b53,_0x3308f7]of Object['entries'](APP_PROFILE_FLAG_KEY_MAP)){const _0x35b3b1=_0x8a75e6(_0x4a0b53);if(!_0x35b3b1)continue;_0x4473d1[_0x3308f7]=_0x3308f7==='pageSize'?Number(_0x35b3b1):_0x35b3b1;}return _0x4473d1;}export function buildAppProfileListFields(_0x2659f1){const _0xbaf681=a261_0x587b92;return{'apiGroup':_0x2659f1['apiGroup']??null,'region':_0x2659f1[_0xbaf681(0x20f)]??null,'env':_0x2659f1[_0xbaf681(0x201)]??null,'apiDir':_0x2659f1[_0xbaf681(0x204)]??null,'hasCookie':!!_0x2659f1[_0xbaf681(0x202)],'hasAccessKey':!!_0x2659f1['accessKey'],'format':_0x2659f1[_0xbaf681(0x219)]??null,'pageSize':_0x2659f1['pageSize']??null,'riskLevel':_0x2659f1[_0xbaf681(0x1f6)]??null,'locale':_0x2659f1[_0xbaf681(0x21b)]??null};}export function buildAppDoctorFields(_0x2a40cb,_0x4b0d0d){const _0x55127b=a261_0x587b92;return{'region':{'value':_0x2a40cb[_0x55127b(0x20f)]||_0x4b0d0d['region'],'source':_0x2a40cb[_0x55127b(0x20f)]?_0x55127b(0x1f0):_0x55127b(0x1f5)},'env':{'value':_0x2a40cb[_0x55127b(0x201)]||_0x4b0d0d['env'],'source':_0x2a40cb['env']?_0x55127b(0x1f0):_0x55127b(0x1f5)},'apiDir':{'value':_0x2a40cb['apiDir']||_0x4b0d0d['apiDir'],'source':_0x2a40cb[_0x55127b(0x204)]?_0x55127b(0x1f0):_0x55127b(0x1f5)},'cookie':{'value':_0x2a40cb[_0x55127b(0x202)]||_0x4b0d0d[_0x55127b(0x202)],'source':_0x2a40cb[_0x55127b(0x202)]?'app':_0x55127b(0x1f5)},'accessKey':{'value':_0x2a40cb[_0x55127b(0x211)]||_0x4b0d0d['accessKey'],'source':_0x2a40cb[_0x55127b(0x211)]?'app':'inherit'}};}export function buildCanonicalAppConfig(_0x446e40,_0x4fefc5){const _0x476ecc=a261_0x587b92,_0x2c6631=_0x446e40[_0x476ecc(0x1ed)](_0x80626=>String(_0x80626||'')['trim']())[_0x476ecc(0x206)](Boolean);if(_0x2c6631['length']===0x0)return{};const _0x1049a3={};for(const _0x4ea965 of _0x2c6631){_0x1049a3[_0x4ea965]=_0x4fefc5&&!isProduction(_0x4fefc5)?{'appcode':_0x4ea965,'env':_0x4fefc5}:{'appcode':_0x4ea965};}return _0x2c6631[_0x476ecc(0x1ee)]>0x1?{'apps':_0x1049a3,'defaultApp':_0x2c6631[0x0]}:{'apps':_0x1049a3};}export function normalizeStoredDefaultApp(_0x18a987,_0x285847){const _0x275da6=a261_0x587b92,_0x332c98=_0x18a987[_0x275da6(0x1ff)]&&typeof _0x18a987[_0x275da6(0x1ff)]===_0x275da6(0x1f9)?_0x18a987['apps']:{},_0x198f0d=Object[_0x275da6(0x214)](_0x332c98);if(_0x198f0d[_0x275da6(0x1ee)]<=0x1)return delete _0x18a987[_0x275da6(0x1e7)],undefined;const _0x477248=typeof _0x18a987[_0x275da6(0x1e7)]===_0x275da6(0x207)&&_0x332c98[_0x18a987[_0x275da6(0x1e7)]]?_0x18a987[_0x275da6(0x1e7)]:undefined,_0x21f426=_0x285847&&_0x332c98[_0x285847]?_0x285847:_0x477248;if(_0x21f426)return _0x18a987[_0x275da6(0x1e7)]=_0x21f426,_0x21f426;return delete _0x18a987[_0x275da6(0x1e7)],undefined;}export function buildCanonicalProjectConfig(_0xa3823b,_0x37a505){const _0xbd8c7=a261_0x587b92,{appCodes:appCodes=[],env:_0x4cf579,metadata:_0x16b2e2}=_0x37a505,_0x26b283={..._0xa3823b,..._0x16b2e2||{}};delete _0x26b283['appcode'],delete _0x26b283[_0xbd8c7(0x1f0)];const _0x128459=_0x4cf579||(typeof _0x26b283[_0xbd8c7(0x201)]==='string'?_0x26b283[_0xbd8c7(0x201)]:'')||DEFAULT_CONFIG_VALUES[_0xbd8c7(0x201)];if(isProduction(_0x128459))delete _0x26b283[_0xbd8c7(0x201)];else _0x26b283['env']=_0x128459;const _0x3bd323=buildCanonicalAppConfig(appCodes,_0x128459);if(Object['keys'](_0x3bd323)[_0xbd8c7(0x1ee)]>0x0){_0x26b283[_0xbd8c7(0x1ff)]=_0x3bd323[_0xbd8c7(0x1ff)];if(_0x3bd323[_0xbd8c7(0x1e7)])_0x26b283[_0xbd8c7(0x1e7)]=_0x3bd323[_0xbd8c7(0x1e7)];else delete _0x26b283[_0xbd8c7(0x1e7)];}return normalizeConfigForWrite(_0x26b283);}function isRecord(_0x581a5e){const _0x584287=a261_0x587b92;return!!_0x581a5e&&typeof _0x581a5e===_0x584287(0x1f9)&&!Array['isArray'](_0x581a5e);}export function normalizeConfigForWrite(_0x26cd9e){const _0x35f5a4=a261_0x587b92,_0xf82f32={..._0x26cd9e},_0x5e2e6f=isRecord(_0x26cd9e[_0x35f5a4(0x1ff)])?_0x26cd9e['apps']:undefined,_0x5cb4c3=_0x5e2e6f?Object[_0x35f5a4(0x1f4)](Object[_0x35f5a4(0x20d)](_0x5e2e6f)[_0x35f5a4(0x1ed)](([_0x238625,_0x4e6433])=>[_0x238625,isRecord(_0x4e6433)?{..._0x4e6433}:_0x4e6433])):undefined;if(_0x5cb4c3){const _0x4beedd=typeof _0xf82f32[_0x35f5a4(0x201)]===_0x35f5a4(0x207)?_0xf82f32['env']:undefined,_0xb9496a=Object[_0x35f5a4(0x1e9)](_0x5cb4c3)[_0x35f5a4(0x1fe)](_0x2bed60=>isRecord(_0x2bed60)&&typeof _0x2bed60[_0x35f5a4(0x201)]===_0x35f5a4(0x207)&&isProduction(_0x2bed60[_0x35f5a4(0x201)]));if(_0x4beedd&&isDaily(_0x4beedd)&&_0xb9496a){for(const _0x1b23e4 of Object['values'](_0x5cb4c3)){if(!isRecord(_0x1b23e4))continue;if(_0x1b23e4[_0x35f5a4(0x201)]===undefined)_0x1b23e4[_0x35f5a4(0x201)]=_0x4beedd;}delete _0xf82f32[_0x35f5a4(0x201)];}for(const _0x2617d9 of Object[_0x35f5a4(0x1e9)](_0x5cb4c3)){isRecord(_0x2617d9)&&typeof _0x2617d9[_0x35f5a4(0x201)]==='string'&&isProduction(_0x2617d9[_0x35f5a4(0x201)])&&delete _0x2617d9[_0x35f5a4(0x201)];}_0xf82f32[_0x35f5a4(0x1ff)]=_0x5cb4c3;}return typeof _0xf82f32[_0x35f5a4(0x201)]==='string'&&isProduction(_0xf82f32[_0x35f5a4(0x201)])&&delete _0xf82f32['env'],_0xf82f32;}const LOCALE_MAP={'zh':a261_0x587b92(0x205),'zh-cn':a261_0x587b92(0x205),'zh_cn':a261_0x587b92(0x205),'en':a261_0x587b92(0x1e6),'en-us':a261_0x587b92(0x1e6),'en_us':'en-US'};export function normalizeLocale(_0x19b38d){if(!_0x19b38d)return null;return LOCALE_MAP[_0x19b38d['toLowerCase']()]??null;}
|
|
1
|
+
const a265_0x6bb85b=a265_0x2bb9;(function(_0x50e55c,_0x4b32f2){const _0x56f270=a265_0x2bb9,_0x51e96d=_0x50e55c();while(!![]){try{const _0xe627bd=-parseInt(_0x56f270(0x15a))/0x1+-parseInt(_0x56f270(0x154))/0x2+parseInt(_0x56f270(0x142))/0x3+-parseInt(_0x56f270(0x149))/0x4*(-parseInt(_0x56f270(0x145))/0x5)+-parseInt(_0x56f270(0x132))/0x6*(-parseInt(_0x56f270(0x143))/0x7)+parseInt(_0x56f270(0x14a))/0x8+-parseInt(_0x56f270(0x135))/0x9;if(_0xe627bd===_0x4b32f2)break;else _0x51e96d['push'](_0x51e96d['shift']());}catch(_0x33908a){_0x51e96d['push'](_0x51e96d['shift']());}}}(a265_0x4ef5,0x6f4c5));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';function a265_0x2bb9(_0x5c0725,_0x3ed901){_0x5c0725=_0x5c0725-0x127;const _0x4ef5ee=a265_0x4ef5();let _0x2bb90b=_0x4ef5ee[_0x5c0725];return _0x2bb90b;}import{isDaily,isProduction,RABETBASE_ENV_VALUES}from'../constant/env.js';function a265_0x4ef5(){const _0x4c24ff=['App\x20locale\x20(not\x20CLI\x20language;\x20reserved\x20for\x20later\x20app\x20use)','54006SWkmeE','zh-CN','apiGroup','4164120baiHoe','Country/region\x20for\x20this\x20app\x20profile','env','number','pageSize','map','runtimeDomain','isArray','toLowerCase','appcode','appDomain','API\x20directory\x20path','values','1354800FoeQpE','21DnjegX','apps','40985NbdYjD','cookie','riskLevel','defaultFormat','316YkeSTW','5177640Trjwrw','Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','skillDomain','some','entries','Join\x20key\x20for\x20app\x20profiles\x20that\x20share\x20one\x20generated\x20API\x20model\x20registry','Target\x20environment','join','app','inherit','1182656FlbEEJ','accessKey','string','region','kbServiceDomain','Risk\x20level','263486fDBTnG','localDomain','locale','certificateDomain','filter','defaultApp','routing','apiDir','length','object','trim','keys','has','format','en-US','Access\x20key','kbDomain','userDomain'];a265_0x4ef5=function(){return _0x4c24ff;};return a265_0x4ef5();}import{RABETBASE_OUTPUT_FORMAT_VALUES}from'../constant/output.js';import{RISK_LEVEL_VALUES}from'../constant/risk.js';import{ENABLED_LOVRABET_REGION_VALUES}from'../constant/region.js';export{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';export const PROJECT_CREATE_INHERITABLE_KEYS=[a265_0x6bb85b(0x146),a265_0x6bb85b(0x155),a265_0x6bb85b(0x15c),a265_0x6bb85b(0x12c),'riskLevel',a265_0x6bb85b(0x157),a265_0x6bb85b(0x160),a265_0x6bb85b(0x130),'apiDomain',a265_0x6bb85b(0x13b),a265_0x6bb85b(0x14c),a265_0x6bb85b(0x12f),'kbServiceDomain',a265_0x6bb85b(0x13f),a265_0x6bb85b(0x15b),a265_0x6bb85b(0x15d)];export const TOP_LEVEL_CONFIG_KEYS=new Set([a265_0x6bb85b(0x13e),a265_0x6bb85b(0x137),a265_0x6bb85b(0x15c),a265_0x6bb85b(0x12c),a265_0x6bb85b(0x146),a265_0x6bb85b(0x155),a265_0x6bb85b(0x161),a265_0x6bb85b(0x157),a265_0x6bb85b(0x130),'apiDomain',a265_0x6bb85b(0x13b),a265_0x6bb85b(0x14c),'kbDomain',a265_0x6bb85b(0x158),a265_0x6bb85b(0x13f),a265_0x6bb85b(0x15b),'certificateDomain']);export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES],'region':[...ENABLED_LOVRABET_REGION_VALUES]};export function formatConfigKeyList(_0x478608){const _0x50b249=a265_0x6bb85b;return[..._0x478608][_0x50b249(0x151)](',\x20');}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function isTopLevelConfigKey(_0x4a82f8){const _0x2fa700=a265_0x6bb85b;return TOP_LEVEL_CONFIG_KEYS[_0x2fa700(0x12b)](_0x4a82f8);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){return'Config\x20key\x20('+getTopLevelConfigKeySummary()+')';}export const APP_PROFILE_FLAG_KEY_MAP={'apiGroup':a265_0x6bb85b(0x134),'region':a265_0x6bb85b(0x157),'env':a265_0x6bb85b(0x137),'apiDir':'apiDir','cookie':a265_0x6bb85b(0x146),'accessKey':'accessKey','defaultFormat':a265_0x6bb85b(0x12c),'pageSize':a265_0x6bb85b(0x139),'riskLevel':a265_0x6bb85b(0x147),'locale':a265_0x6bb85b(0x15c)};export function getAppProfileFlagDefs(){const _0x1fe356=a265_0x6bb85b;return[{'name':_0x1fe356(0x134),'type':_0x1fe356(0x156),'description':_0x1fe356(0x14f)},{'name':_0x1fe356(0x157),'type':'string','description':_0x1fe356(0x136),'enum':[...ENABLED_LOVRABET_REGION_VALUES]},{'name':_0x1fe356(0x137),'type':_0x1fe356(0x156),'description':_0x1fe356(0x150),'enum':[...RABETBASE_ENV_VALUES]},{'name':'apiDir','type':'string','description':_0x1fe356(0x140)},{'name':_0x1fe356(0x146),'type':_0x1fe356(0x156),'description':'Auth\x20cookie','hidden':!![]},{'name':'accessKey','type':_0x1fe356(0x156),'description':_0x1fe356(0x12e),'hidden':!![]},{'name':_0x1fe356(0x148),'type':_0x1fe356(0x156),'description':_0x1fe356(0x14b),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':_0x1fe356(0x139),'type':_0x1fe356(0x138),'description':'Default\x20page\x20size'},{'name':_0x1fe356(0x147),'type':'string','description':_0x1fe356(0x159),'enum':[...RISK_LEVEL_VALUES]},{'name':_0x1fe356(0x15c),'type':_0x1fe356(0x156),'description':_0x1fe356(0x131)}];}export function collectAppProfileOverrides(_0x57913d){const _0x2ec551=a265_0x6bb85b,_0x5d8d08={};for(const [_0x30dc2a,_0x2f9c32]of Object[_0x2ec551(0x14e)](APP_PROFILE_FLAG_KEY_MAP)){const _0x2969cd=_0x57913d(_0x30dc2a);if(!_0x2969cd)continue;_0x5d8d08[_0x2f9c32]=_0x2f9c32===_0x2ec551(0x139)?Number(_0x2969cd):_0x2969cd;}return _0x5d8d08;}export function buildAppProfileListFields(_0xce936b){const _0x1f6c22=a265_0x6bb85b;return{'apiGroup':_0xce936b['apiGroup']??null,'region':_0xce936b['region']??null,'env':_0xce936b[_0x1f6c22(0x137)]??null,'apiDir':_0xce936b[_0x1f6c22(0x161)]??null,'hasCookie':!!_0xce936b['cookie'],'hasAccessKey':!!_0xce936b[_0x1f6c22(0x155)],'format':_0xce936b[_0x1f6c22(0x12c)]??null,'pageSize':_0xce936b[_0x1f6c22(0x139)]??null,'riskLevel':_0xce936b[_0x1f6c22(0x147)]??null,'locale':_0xce936b[_0x1f6c22(0x15c)]??null};}export function buildAppDoctorFields(_0x589a8c,_0x1f96a5){const _0x325bdb=a265_0x6bb85b;return{'region':{'value':_0x589a8c[_0x325bdb(0x157)]||_0x1f96a5[_0x325bdb(0x157)],'source':_0x589a8c[_0x325bdb(0x157)]?_0x325bdb(0x152):_0x325bdb(0x153)},'env':{'value':_0x589a8c[_0x325bdb(0x137)]||_0x1f96a5[_0x325bdb(0x137)],'source':_0x589a8c[_0x325bdb(0x137)]?'app':_0x325bdb(0x153)},'apiDir':{'value':_0x589a8c['apiDir']||_0x1f96a5[_0x325bdb(0x161)],'source':_0x589a8c['apiDir']?'app':'inherit'},'cookie':{'value':_0x589a8c[_0x325bdb(0x146)]||_0x1f96a5[_0x325bdb(0x146)],'source':_0x589a8c[_0x325bdb(0x146)]?_0x325bdb(0x152):'inherit'},'accessKey':{'value':_0x589a8c[_0x325bdb(0x155)]||_0x1f96a5['accessKey'],'source':_0x589a8c[_0x325bdb(0x155)]?_0x325bdb(0x152):_0x325bdb(0x153)}};}export function buildCanonicalAppConfig(_0x457faa,_0x2266b2){const _0x25feef=a265_0x6bb85b,_0x3ae45f=_0x457faa['map'](_0x105f21=>String(_0x105f21||'')[_0x25feef(0x129)]())[_0x25feef(0x15e)](Boolean);if(_0x3ae45f[_0x25feef(0x127)]===0x0)return{};const _0x50e134={};for(const _0x4f6b69 of _0x3ae45f){_0x50e134[_0x4f6b69]=_0x2266b2&&!isProduction(_0x2266b2)?{'appcode':_0x4f6b69,'env':_0x2266b2}:{'appcode':_0x4f6b69};}return _0x3ae45f[_0x25feef(0x127)]>0x1?{'apps':_0x50e134,'defaultApp':_0x3ae45f[0x0]}:{'apps':_0x50e134};}export function normalizeStoredDefaultApp(_0x53da13,_0x23c90a){const _0x304fd9=a265_0x6bb85b,_0x3fd9e5=_0x53da13[_0x304fd9(0x144)]&&typeof _0x53da13['apps']===_0x304fd9(0x128)?_0x53da13[_0x304fd9(0x144)]:{},_0x5348b6=Object[_0x304fd9(0x12a)](_0x3fd9e5);if(_0x5348b6[_0x304fd9(0x127)]<=0x1)return delete _0x53da13[_0x304fd9(0x15f)],undefined;const _0x365f10=typeof _0x53da13[_0x304fd9(0x15f)]===_0x304fd9(0x156)&&_0x3fd9e5[_0x53da13[_0x304fd9(0x15f)]]?_0x53da13[_0x304fd9(0x15f)]:undefined,_0x2b4a18=_0x23c90a&&_0x3fd9e5[_0x23c90a]?_0x23c90a:_0x365f10;if(_0x2b4a18)return _0x53da13[_0x304fd9(0x15f)]=_0x2b4a18,_0x2b4a18;return delete _0x53da13[_0x304fd9(0x15f)],undefined;}export function buildCanonicalProjectConfig(_0x3d04e8,_0x4ca8ce){const _0x2c5743=a265_0x6bb85b,{appCodes:appCodes=[],env:_0x3a58a8,metadata:_0x289e20}=_0x4ca8ce,_0x3af3b7={..._0x3d04e8,..._0x289e20||{}};delete _0x3af3b7['appcode'],delete _0x3af3b7[_0x2c5743(0x152)];const _0x6619f1=_0x3a58a8||(typeof _0x3af3b7[_0x2c5743(0x137)]===_0x2c5743(0x156)?_0x3af3b7[_0x2c5743(0x137)]:'')||DEFAULT_CONFIG_VALUES[_0x2c5743(0x137)];if(isProduction(_0x6619f1))delete _0x3af3b7['env'];else _0x3af3b7[_0x2c5743(0x137)]=_0x6619f1;const _0x27e67f=buildCanonicalAppConfig(appCodes,_0x6619f1);if(Object['keys'](_0x27e67f)[_0x2c5743(0x127)]>0x0){_0x3af3b7['apps']=_0x27e67f[_0x2c5743(0x144)];if(_0x27e67f[_0x2c5743(0x15f)])_0x3af3b7['defaultApp']=_0x27e67f[_0x2c5743(0x15f)];else delete _0x3af3b7['defaultApp'];}return normalizeConfigForWrite(_0x3af3b7);}function isRecord(_0x3889be){const _0x5f4400=a265_0x6bb85b;return!!_0x3889be&&typeof _0x3889be===_0x5f4400(0x128)&&!Array[_0x5f4400(0x13c)](_0x3889be);}export function normalizeConfigForWrite(_0x4fc6fb){const _0xa74b3a=a265_0x6bb85b,_0x3e9fb3={..._0x4fc6fb},_0x1b82d4=isRecord(_0x4fc6fb['apps'])?_0x4fc6fb[_0xa74b3a(0x144)]:undefined,_0x796f5e=_0x1b82d4?Object['fromEntries'](Object[_0xa74b3a(0x14e)](_0x1b82d4)[_0xa74b3a(0x13a)](([_0x5600ed,_0x18a8ec])=>[_0x5600ed,isRecord(_0x18a8ec)?{..._0x18a8ec}:_0x18a8ec])):undefined;if(_0x796f5e){const _0x4c71ec=typeof _0x3e9fb3['env']===_0xa74b3a(0x156)?_0x3e9fb3[_0xa74b3a(0x137)]:undefined,_0xe87105=Object[_0xa74b3a(0x141)](_0x796f5e)[_0xa74b3a(0x14d)](_0x3899bd=>isRecord(_0x3899bd)&&typeof _0x3899bd[_0xa74b3a(0x137)]===_0xa74b3a(0x156)&&isProduction(_0x3899bd[_0xa74b3a(0x137)]));if(_0x4c71ec&&isDaily(_0x4c71ec)&&_0xe87105){for(const _0x18ae98 of Object['values'](_0x796f5e)){if(!isRecord(_0x18ae98))continue;if(_0x18ae98[_0xa74b3a(0x137)]===undefined)_0x18ae98[_0xa74b3a(0x137)]=_0x4c71ec;}delete _0x3e9fb3[_0xa74b3a(0x137)];}for(const _0x2f7a07 of Object[_0xa74b3a(0x141)](_0x796f5e)){isRecord(_0x2f7a07)&&typeof _0x2f7a07[_0xa74b3a(0x137)]==='string'&&isProduction(_0x2f7a07[_0xa74b3a(0x137)])&&delete _0x2f7a07['env'];}_0x3e9fb3['apps']=_0x796f5e;}return typeof _0x3e9fb3[_0xa74b3a(0x137)]===_0xa74b3a(0x156)&&isProduction(_0x3e9fb3[_0xa74b3a(0x137)])&&delete _0x3e9fb3['env'],_0x3e9fb3;}const LOCALE_MAP={'zh':a265_0x6bb85b(0x133),'zh-cn':a265_0x6bb85b(0x133),'zh_cn':'zh-CN','en':'en-US','en-us':a265_0x6bb85b(0x12d),'en_us':a265_0x6bb85b(0x12d)};export function normalizeLocale(_0x260e8b){const _0x968b28=a265_0x6bb85b;if(!_0x260e8b)return null;return LOCALE_MAP[_0x260e8b[_0x968b28(0x13d)]()]??null;}
|
package/lib/constant/cdn.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a266_0x47ec19=a266_0x29f8;(function(_0x25c338,_0x51b06d){const _0x506488=a266_0x29f8,_0x2749a2=_0x25c338();while(!![]){try{const _0x34d573=parseInt(_0x506488(0x1e1))/0x1*(parseInt(_0x506488(0x1de))/0x2)+-parseInt(_0x506488(0x1d1))/0x3*(-parseInt(_0x506488(0x1d3))/0x4)+-parseInt(_0x506488(0x1d5))/0x5*(parseInt(_0x506488(0x1da))/0x6)+parseInt(_0x506488(0x1d0))/0x7*(-parseInt(_0x506488(0x1e4))/0x8)+-parseInt(_0x506488(0x1d8))/0x9*(parseInt(_0x506488(0x1dd))/0xa)+parseInt(_0x506488(0x1d4))/0xb+parseInt(_0x506488(0x1e2))/0xc;if(_0x34d573===_0x51b06d)break;else _0x2749a2['push'](_0x2749a2['shift']());}catch(_0x299c1d){_0x2749a2['push'](_0x2749a2['shift']());}}}(a266_0x41f1,0x827e5));import{getActiveCdn}from'../constant/domain.js';const RABETBASE_CDN_PROJECT=a266_0x47ec19(0x1e3),RABETBASE_CDN_CONFIG_ORIGIN=a266_0x47ec19(0x1dc),CDN_CONFIG_PATH='config/index.json',PROJECT_TEMPLATE_ASSET_PATH=a266_0x47ec19(0x1df),PROJECT_TEMPLATE_ARCHIVE_NAMES=Object['freeze']({'release':a266_0x47ec19(0x1d9),'beta':a266_0x47ec19(0x1d2)});export const RABETBASE_CDN_PROJECT_PATH=a266_0x47ec19(0x1db)+RABETBASE_CDN_PROJECT;function getRabetbaseCdnBaseUrl(){const _0x1d7664=a266_0x47ec19;return''+getActiveCdn()[_0x1d7664(0x1d7)]+RABETBASE_CDN_PROJECT_PATH;}export function getCliVersionPolicyUrl(){return''+RABETBASE_CDN_CONFIG_ORIGIN+RABETBASE_CDN_PROJECT_PATH+'/'+CDN_CONFIG_PATH;}export function getProjectTemplateAssetBaseUrl(){return getRabetbaseCdnBaseUrl()+'/'+PROJECT_TEMPLATE_ASSET_PATH;}export function getProjectTemplateLegacyAssetBaseUrl(){return''+RABETBASE_CDN_CONFIG_ORIGIN+RABETBASE_CDN_PROJECT_PATH+'/'+PROJECT_TEMPLATE_ASSET_PATH;}function a266_0x29f8(_0x1960fd,_0x49d01e){_0x1960fd=_0x1960fd-0x1d0;const _0x41f193=a266_0x41f1();let _0x29f857=_0x41f193[_0x1960fd];return _0x29f857;}function a266_0x41f1(){const _0x2571aa=['10266xIQWZe','/dist/','https://g.lovrabet.com','1830BycRvB','199378feGJzo','templates/projects','sub-app-react-demo-','3yEduwZ','4484784bbQmFy','rabetbase-cli','8OYTFiU','3114881SXYGGN','36VbAdlM','sub-app-react-demo-beta.zip','242084FXLYLe','10103379MMRrQJ','3085jjRZHe','.zip','lovrabet','13887LYYhdv','sub-app-react-demo.zip'];a266_0x41f1=function(){return _0x2571aa;};return a266_0x41f1();}export function getProjectTemplateRelativeUrl(_0x14fdcc,_0x59f53d){const _0x3f3a39=a266_0x47ec19,_0x2e06e9=_0x59f53d?_0x3f3a39(0x1e0)+_0x59f53d+_0x3f3a39(0x1d6):PROJECT_TEMPLATE_ARCHIVE_NAMES[_0x14fdcc];return RABETBASE_CDN_PROJECT_PATH+'/'+PROJECT_TEMPLATE_ASSET_PATH+'/'+_0x2e06e9;}
|
package/lib/constant/cli.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a263_0x4f5cb4=a263_0x2170;function a263_0x59e3(){const _0x3fc027=['string','rabetbase','fromEnv','key','Read\x20value\x20from\x20stdin','JSON\x20params','confirm','Dataset\x20code','verbose','non-interactive','Expected\x20current\x20child\x20count','query','950523PpxYDt','description','value','boolean','Flow\x20code','enableBffSave','Page\x20number','SQL\x20code','Asynchronous\x20task\x20ID','operationType','pagesize','help','operation','production\x20|\x20daily','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','stdin','yes','reveal','db-id','45VydXFl','flowType','tags','SQL\x20string','sort','68004IvJiDH','Comma-separated\x20menu\x20IDs','locale','flow-type','json\x20|\x20pretty\x20|\x20compress','<name>','parentId','@lovrabet/rabetbase-cli','sqlname','descriptionFile','Maximum\x20search\x20hits','sql','Operation\x20type','params','67356GZxqqf','7740873VdrKYL','Expected\x20current\x20menu\x20path','remote','Enable\x20Backend\x20Function\x20save','Page\x20size','Force\x20overwrite','codes','Expected\x20current\x20parent\x20menu\x20id','Code\x20filter','topk','keyword','app','sqlcode','type','Type\x20filter','Use\x20project\x20config\x20scope','2337960qszAUa','expect-parent-id','title','project','skipImports','Alias\x20for\x20--non-interactive','expect-path','flow-status','target','nonInteractive','force','Flow\x20name','10tfwtdi','code','Apply\x20to\x20all','SQL\x20name','Tags','menu-ids','dryRun','Use\x20remote','dry-run','Comma-separated\x20metadata\x20codes','pageSize','datasetcode','expected-children-count','Output\x20format','Config\x20key','Target\x20path','Force\x20non-interactive\x20mode\x20(CI)','Title','Confirm\x20destructive\x20action','Show\x20help','Expected\x20affected\x20count','appcode','Override\x20appcode','zh-CN\x20|\x20en-US','meowKey','page','Schemas','<code>','expectParentId','558824dBLEbE','dbid','Config\x20value','Skip\x20confirmation\x20for\x20high-risk\x20writes','Description','Keyword\x20filter','Search\x20query','File\x20path','watch','parent-id','operation-type','expectPath','all','Description\x20file','sql-name','flowStatus','Watch\x20mode','clear','dataset-code','Clear','Menu\x20label','expectedCount','Use\x20global\x20config\x20scope','flowName','file','format','expected-count','taskId','schemas','global','env','label','task-id','sqlName','page-size','Menu\x20sort\x20value','Function\x20node','name','214LnzqUq'];a263_0x59e3=function(){return _0x3fc027;};return a263_0x59e3();}function a263_0x2170(_0x3e7e6c,_0x3ca1e2){_0x3e7e6c=_0x3e7e6c-0xb2;const _0x59e3f0=a263_0x59e3();let _0x217022=_0x59e3f0[_0x3e7e6c];return _0x217022;}(function(_0x49b313,_0x297f78){const _0x47603a=a263_0x2170,_0x36d642=_0x49b313();while(!![]){try{const _0x166fe1=parseInt(_0x47603a(0x121))/0x1*(parseInt(_0x47603a(0x101))/0x2)+parseInt(_0x47603a(0x134))/0x3+-parseInt(_0x47603a(0xdb))/0x4*(parseInt(_0x47603a(0xbe))/0x5)+parseInt(_0x47603a(0x126))/0x6+-parseInt(_0x47603a(0x10e))/0x7+-parseInt(_0x47603a(0xb2))/0x8+parseInt(_0x47603a(0x135))/0x9;if(_0x166fe1===_0x297f78)break;else _0x36d642['push'](_0x36d642['shift']());}catch(_0x167ba8){_0x36d642['push'](_0x36d642['shift']());}}}(a263_0x59e3,0x2eb14));export const CLI_BIN_NAME=a263_0x4f5cb4(0x103);export const CLI_DISPLAY_NAME='Rabetbase\x20CLI';export const NPM_PACKAGE_NAME=a263_0x4f5cb4(0x12d);export const GLOBAL_FLAGS=[{'name':a263_0x4f5cb4(0xd3),'meowKey':'appcode','type':a263_0x4f5cb4(0x102),'description':a263_0x4f5cb4(0xd4),'hint':a263_0x4f5cb4(0xd9)},{'name':a263_0x4f5cb4(0x140),'meowKey':a263_0x4f5cb4(0x140),'type':a263_0x4f5cb4(0x102),'description':'Select\x20app\x20profile\x20by\x20name','hint':a263_0x4f5cb4(0x12b)},{'name':a263_0x4f5cb4(0xf9),'meowKey':'env','type':a263_0x4f5cb4(0x102),'description':'Environment','hint':a263_0x4f5cb4(0x11b)},{'name':a263_0x4f5cb4(0xf4),'meowKey':a263_0x4f5cb4(0xf4),'type':'string','description':a263_0x4f5cb4(0xcb),'hint':a263_0x4f5cb4(0x12a)},{'name':'jq','meowKey':'jq','type':a263_0x4f5cb4(0x102),'description':a263_0x4f5cb4(0x11c),'hint':'<expr>'},{'name':'dry-run','meowKey':a263_0x4f5cb4(0xc4),'type':'boolean','description':'Preview\x20operation\x20without\x20executing'},{'name':a263_0x4f5cb4(0x11e),'meowKey':a263_0x4f5cb4(0x11e),'type':a263_0x4f5cb4(0x111),'description':a263_0x4f5cb4(0xde)},{'name':a263_0x4f5cb4(0x10b),'meowKey':a263_0x4f5cb4(0xbb),'type':'boolean','description':a263_0x4f5cb4(0xce)},{'name':a263_0x4f5cb4(0xf8),'meowKey':a263_0x4f5cb4(0xf8),'type':a263_0x4f5cb4(0x111),'description':a263_0x4f5cb4(0xf1)},{'name':a263_0x4f5cb4(0xb5),'meowKey':a263_0x4f5cb4(0xb5),'type':'boolean','description':a263_0x4f5cb4(0x144)},{'name':'ci','meowKey':'ci','type':a263_0x4f5cb4(0x111),'description':a263_0x4f5cb4(0xb7),'hidden':!![]},{'name':a263_0x4f5cb4(0x119),'meowKey':'help','type':a263_0x4f5cb4(0x111),'description':a263_0x4f5cb4(0xd1)},{'name':a263_0x4f5cb4(0x128),'meowKey':a263_0x4f5cb4(0x128),'type':a263_0x4f5cb4(0x102),'description':'App\x20locale\x20(workspace\x20pass-through;\x20not\x20CLI\x20language)','hidden':!![],'hint':a263_0x4f5cb4(0xd5)},{'name':'name','meowKey':a263_0x4f5cb4(0x100),'type':a263_0x4f5cb4(0x102),'description':'Name','hidden':!![]},{'name':'title','meowKey':a263_0x4f5cb4(0xb4),'type':a263_0x4f5cb4(0x102),'description':a263_0x4f5cb4(0xcf),'hidden':!![]},{'name':a263_0x4f5cb4(0x10d),'meowKey':'query','type':a263_0x4f5cb4(0x102),'description':a263_0x4f5cb4(0xe1),'hidden':!![]},{'name':a263_0x4f5cb4(0x13e),'meowKey':a263_0x4f5cb4(0x13e),'type':'string','description':a263_0x4f5cb4(0x130),'hidden':!![]},{'name':a263_0x4f5cb4(0xec),'meowKey':a263_0x4f5cb4(0xec),'type':a263_0x4f5cb4(0x111),'description':a263_0x4f5cb4(0xee),'hidden':!![]},{'name':'watch','meowKey':a263_0x4f5cb4(0xe3),'type':a263_0x4f5cb4(0x111),'description':a263_0x4f5cb4(0xeb),'hidden':!![]},{'name':'output','meowKey':'output','type':a263_0x4f5cb4(0x102),'description':'Output\x20path','hidden':!![]},{'name':a263_0x4f5cb4(0x133),'meowKey':a263_0x4f5cb4(0x133),'type':'string','description':a263_0x4f5cb4(0x107),'hidden':!![]},{'name':a263_0x4f5cb4(0xc9),'meowKey':'datasetcode','type':a263_0x4f5cb4(0x102),'description':'Dataset\x20code','hidden':!![]},{'name':a263_0x4f5cb4(0xe7),'meowKey':a263_0x4f5cb4(0xe7),'type':a263_0x4f5cb4(0x111),'description':a263_0x4f5cb4(0xc0),'hidden':!![]},{'name':'enable-bff-save','meowKey':a263_0x4f5cb4(0x113),'type':a263_0x4f5cb4(0x111),'description':a263_0x4f5cb4(0x138),'hidden':!![]},{'name':'id','meowKey':'id','type':'string','description':'Record\x20ID','hidden':!![]},{'name':a263_0x4f5cb4(0x142),'meowKey':'type','type':a263_0x4f5cb4(0x102),'description':a263_0x4f5cb4(0x143),'hidden':!![]},{'name':a263_0x4f5cb4(0xf3),'meowKey':a263_0x4f5cb4(0xf3),'type':a263_0x4f5cb4(0x102),'description':a263_0x4f5cb4(0xe2),'hidden':!![]},{'name':'flow-code','meowKey':'flowCode','type':a263_0x4f5cb4(0x102),'description':a263_0x4f5cb4(0x112),'hidden':!![]},{'name':'flow-name','meowKey':a263_0x4f5cb4(0xf2),'type':a263_0x4f5cb4(0x102),'description':a263_0x4f5cb4(0xbd),'hidden':!![]},{'name':a263_0x4f5cb4(0xb9),'meowKey':a263_0x4f5cb4(0xea),'type':'string','description':'Flow\x20status','hidden':!![]},{'name':a263_0x4f5cb4(0x129),'meowKey':a263_0x4f5cb4(0x122),'type':a263_0x4f5cb4(0x102),'description':'Flow\x20type','hidden':!![]},{'name':a263_0x4f5cb4(0xed),'meowKey':'datasetCode','type':'string','description':a263_0x4f5cb4(0x109),'hidden':!![]},{'name':a263_0x4f5cb4(0x141),'meowKey':a263_0x4f5cb4(0x141),'type':a263_0x4f5cb4(0x102),'description':a263_0x4f5cb4(0x115),'hidden':!![]},{'name':a263_0x4f5cb4(0xe9),'meowKey':a263_0x4f5cb4(0xfc),'type':a263_0x4f5cb4(0x102),'description':a263_0x4f5cb4(0xc1),'hidden':!![]},{'name':a263_0x4f5cb4(0x12e),'meowKey':a263_0x4f5cb4(0x12e),'type':a263_0x4f5cb4(0x102),'description':a263_0x4f5cb4(0xc1),'hidden':!![]},{'name':a263_0x4f5cb4(0x120),'meowKey':'dbId','type':'string','description':'DB\x20ID','hidden':!![]},{'name':a263_0x4f5cb4(0xdc),'meowKey':a263_0x4f5cb4(0xdc),'type':a263_0x4f5cb4(0x102),'description':'DB\x20ID','hidden':!![]},{'name':a263_0x4f5cb4(0x10f),'meowKey':a263_0x4f5cb4(0x10f),'type':'string','description':a263_0x4f5cb4(0xdf),'hidden':!![]},{'name':'description-file','meowKey':a263_0x4f5cb4(0x12f),'type':a263_0x4f5cb4(0x102),'description':a263_0x4f5cb4(0xe8),'hidden':!![]},{'name':a263_0x4f5cb4(0xd7),'meowKey':'page','type':a263_0x4f5cb4(0x102),'description':a263_0x4f5cb4(0x114),'hidden':!![]},{'name':a263_0x4f5cb4(0xfd),'meowKey':a263_0x4f5cb4(0xc8),'type':a263_0x4f5cb4(0x102),'description':a263_0x4f5cb4(0x139),'hidden':!![]},{'name':a263_0x4f5cb4(0x118),'meowKey':a263_0x4f5cb4(0x118),'type':a263_0x4f5cb4(0x102),'description':a263_0x4f5cb4(0x139),'hidden':!![]},{'name':'keyword','meowKey':a263_0x4f5cb4(0x13f),'type':a263_0x4f5cb4(0x102),'description':a263_0x4f5cb4(0xe0),'hidden':!![]},{'name':a263_0x4f5cb4(0xbf),'meowKey':a263_0x4f5cb4(0xbf),'type':a263_0x4f5cb4(0x102),'description':a263_0x4f5cb4(0x13d),'hidden':!![]},{'name':'sql','meowKey':a263_0x4f5cb4(0x131),'type':a263_0x4f5cb4(0x102),'description':a263_0x4f5cb4(0x124),'hidden':!![]},{'name':'schemas','meowKey':a263_0x4f5cb4(0xf7),'type':a263_0x4f5cb4(0x102),'description':a263_0x4f5cb4(0xd8),'hidden':!![]},{'name':a263_0x4f5cb4(0x11a),'meowKey':a263_0x4f5cb4(0x11a),'type':a263_0x4f5cb4(0x102),'description':'Operation\x20type','hidden':!![]},{'name':a263_0x4f5cb4(0xba),'meowKey':'target','type':a263_0x4f5cb4(0x102),'description':a263_0x4f5cb4(0xcd),'hidden':!![]},{'name':'skip-imports','meowKey':a263_0x4f5cb4(0xb6),'type':a263_0x4f5cb4(0x111),'description':'Skip\x20import\x20generation','hidden':!![]},{'name':a263_0x4f5cb4(0x105),'meowKey':a263_0x4f5cb4(0x105),'type':'string','description':a263_0x4f5cb4(0xcc),'hidden':!![]},{'name':a263_0x4f5cb4(0x110),'meowKey':'value','type':a263_0x4f5cb4(0x102),'description':a263_0x4f5cb4(0xdd),'hidden':!![]},{'name':'tags','meowKey':a263_0x4f5cb4(0x123),'type':a263_0x4f5cb4(0x102),'description':a263_0x4f5cb4(0xc2),'hidden':!![]},{'name':a263_0x4f5cb4(0x11d),'meowKey':'stdin','type':'boolean','description':a263_0x4f5cb4(0x106),'hidden':!![]},{'name':'from-env','meowKey':a263_0x4f5cb4(0x104),'type':a263_0x4f5cb4(0x102),'description':'Read\x20value\x20from\x20environment\x20variable','hidden':!![]},{'name':a263_0x4f5cb4(0x11f),'meowKey':a263_0x4f5cb4(0x11f),'type':a263_0x4f5cb4(0x111),'description':'Reveal\x20sensitive\x20value','hidden':!![]},{'name':a263_0x4f5cb4(0xbc),'meowKey':a263_0x4f5cb4(0xbc),'type':'boolean','description':a263_0x4f5cb4(0x13a),'hidden':!![]},{'name':a263_0x4f5cb4(0x108),'meowKey':'confirm','type':a263_0x4f5cb4(0x111),'description':a263_0x4f5cb4(0xd0),'hidden':!![]},{'name':a263_0x4f5cb4(0x137),'meowKey':'remote','type':a263_0x4f5cb4(0x111),'description':a263_0x4f5cb4(0xc5),'hidden':!![]},{'name':a263_0x4f5cb4(0x10a),'meowKey':a263_0x4f5cb4(0x10a),'type':a263_0x4f5cb4(0x111),'description':'Verbose\x20output','hidden':!![]},{'name':a263_0x4f5cb4(0xf5),'meowKey':a263_0x4f5cb4(0xf0),'type':a263_0x4f5cb4(0x102),'description':a263_0x4f5cb4(0xd2),'hidden':!![]},{'name':'label','meowKey':a263_0x4f5cb4(0xfa),'type':a263_0x4f5cb4(0x102),'description':a263_0x4f5cb4(0xef),'hidden':!![]},{'name':a263_0x4f5cb4(0xe4),'meowKey':a263_0x4f5cb4(0x12c),'type':a263_0x4f5cb4(0x102),'description':'Parent\x20menu\x20id','hidden':!![]},{'name':a263_0x4f5cb4(0x125),'meowKey':a263_0x4f5cb4(0x125),'type':a263_0x4f5cb4(0x102),'description':a263_0x4f5cb4(0xfe),'hidden':!![]},{'name':a263_0x4f5cb4(0xb3),'meowKey':a263_0x4f5cb4(0xda),'type':a263_0x4f5cb4(0x102),'description':a263_0x4f5cb4(0x13c),'hidden':!![]},{'name':a263_0x4f5cb4(0xb8),'meowKey':a263_0x4f5cb4(0xe6),'type':a263_0x4f5cb4(0x102),'description':a263_0x4f5cb4(0x136),'hidden':!![]},{'name':a263_0x4f5cb4(0xca),'meowKey':'expectedChildrenCount','type':a263_0x4f5cb4(0x102),'description':a263_0x4f5cb4(0x10c),'hidden':!![]},{'name':a263_0x4f5cb4(0xc3),'meowKey':'menuIds','type':a263_0x4f5cb4(0x102),'description':a263_0x4f5cb4(0x127),'hidden':!![]},{'name':a263_0x4f5cb4(0xfb),'meowKey':a263_0x4f5cb4(0xf6),'type':a263_0x4f5cb4(0x102),'description':a263_0x4f5cb4(0x116),'hidden':!![]},{'name':a263_0x4f5cb4(0xe5),'meowKey':a263_0x4f5cb4(0x117),'type':a263_0x4f5cb4(0x102),'description':a263_0x4f5cb4(0x132),'hidden':!![]},{'name':'function-node','meowKey':'functionNode','type':'string','description':a263_0x4f5cb4(0xff),'hidden':!![]},{'name':a263_0x4f5cb4(0x13b),'meowKey':a263_0x4f5cb4(0x13b),'type':a263_0x4f5cb4(0x102),'description':a263_0x4f5cb4(0xc7),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a263_0x4f5cb4(0xd3),a263_0x4f5cb4(0x140),a263_0x4f5cb4(0xf9),a263_0x4f5cb4(0xf4),'jq',a263_0x4f5cb4(0xc6),'yes',a263_0x4f5cb4(0x10b),'ci']);export function buildMeowFlags(){const _0x1fa47d=a263_0x4f5cb4;return Object['fromEntries'](GLOBAL_FLAGS['map'](_0x37b430=>[_0x37b430[_0x1fa47d(0xd6)],{'type':_0x37b430[_0x1fa47d(0x142)]}]));}
|
|
1
|
+
const a267_0x38e8be=a267_0x2cf9;(function(_0x1b6d2a,_0x24adf7){const _0x2fc91f=a267_0x2cf9,_0xfee260=_0x1b6d2a();while(!![]){try{const _0x2dde06=parseInt(_0x2fc91f(0x229))/0x1*(-parseInt(_0x2fc91f(0x1e2))/0x2)+-parseInt(_0x2fc91f(0x1c1))/0x3*(-parseInt(_0x2fc91f(0x1c5))/0x4)+-parseInt(_0x2fc91f(0x1d6))/0x5+parseInt(_0x2fc91f(0x1b2))/0x6*(parseInt(_0x2fc91f(0x1d5))/0x7)+parseInt(_0x2fc91f(0x22c))/0x8+parseInt(_0x2fc91f(0x1dc))/0x9*(parseInt(_0x2fc91f(0x219))/0xa)+-parseInt(_0x2fc91f(0x1b5))/0xb*(parseInt(_0x2fc91f(0x232))/0xc);if(_0x2dde06===_0x24adf7)break;else _0xfee260['push'](_0xfee260['shift']());}catch(_0x53de0f){_0xfee260['push'](_0xfee260['shift']());}}}(a267_0xdfdd,0x5bc64));export const CLI_BIN_NAME=a267_0x38e8be(0x1e0);export const CLI_DISPLAY_NAME=a267_0x38e8be(0x1d7);function a267_0x2cf9(_0x5bb648,_0x56ae73){_0x5bb648=_0x5bb648-0x1a2;const _0xdfdd0f=a267_0xdfdd();let _0x2cf936=_0xdfdd0f[_0x5bb648];return _0x2cf936;}export const NPM_PACKAGE_NAME=a267_0x38e8be(0x1d4);export const GLOBAL_FLAGS=[{'name':a267_0x38e8be(0x1df),'meowKey':'appcode','type':a267_0x38e8be(0x1ba),'description':a267_0x38e8be(0x1c3),'hint':a267_0x38e8be(0x220)},{'name':a267_0x38e8be(0x1a3),'meowKey':'app','type':a267_0x38e8be(0x1ba),'description':'Select\x20app\x20profile\x20by\x20name','hint':'<name>'},{'name':a267_0x38e8be(0x1aa),'meowKey':a267_0x38e8be(0x1aa),'type':a267_0x38e8be(0x1ba),'description':a267_0x38e8be(0x1c4),'hint':a267_0x38e8be(0x1f4)},{'name':'format','meowKey':a267_0x38e8be(0x209),'type':a267_0x38e8be(0x1ba),'description':'Output\x20format','hint':a267_0x38e8be(0x1ce)},{'name':'jq','meowKey':'jq','type':a267_0x38e8be(0x1ba),'description':a267_0x38e8be(0x202),'hint':a267_0x38e8be(0x1b3)},{'name':a267_0x38e8be(0x1ac),'meowKey':'dryRun','type':a267_0x38e8be(0x216),'description':a267_0x38e8be(0x21b)},{'name':'yes','meowKey':a267_0x38e8be(0x1e1),'type':a267_0x38e8be(0x216),'description':a267_0x38e8be(0x1f5)},{'name':a267_0x38e8be(0x233),'meowKey':'nonInteractive','type':a267_0x38e8be(0x216),'description':'Force\x20non-interactive\x20mode\x20(CI)'},{'name':a267_0x38e8be(0x1f0),'meowKey':a267_0x38e8be(0x1f0),'type':a267_0x38e8be(0x216),'description':a267_0x38e8be(0x1fb)},{'name':a267_0x38e8be(0x213),'meowKey':a267_0x38e8be(0x213),'type':a267_0x38e8be(0x216),'description':a267_0x38e8be(0x1bd)},{'name':'ci','meowKey':'ci','type':a267_0x38e8be(0x216),'description':a267_0x38e8be(0x223),'hidden':!![]},{'name':a267_0x38e8be(0x1e5),'meowKey':'help','type':a267_0x38e8be(0x216),'description':a267_0x38e8be(0x1fc)},{'name':'locale','meowKey':a267_0x38e8be(0x1db),'type':'string','description':a267_0x38e8be(0x21f),'hidden':!![],'hint':a267_0x38e8be(0x1cf)},{'name':a267_0x38e8be(0x1a8),'meowKey':'name','type':a267_0x38e8be(0x1ba),'description':a267_0x38e8be(0x1eb),'hidden':!![]},{'name':a267_0x38e8be(0x20b),'meowKey':a267_0x38e8be(0x20b),'type':a267_0x38e8be(0x1ba),'description':'Title','hidden':!![]},{'name':a267_0x38e8be(0x217),'meowKey':a267_0x38e8be(0x217),'type':'string','description':a267_0x38e8be(0x1bc),'hidden':!![]},{'name':a267_0x38e8be(0x203),'meowKey':a267_0x38e8be(0x203),'type':'string','description':a267_0x38e8be(0x1f3),'hidden':!![]},{'name':a267_0x38e8be(0x1a5),'meowKey':'clear','type':a267_0x38e8be(0x216),'description':a267_0x38e8be(0x201),'hidden':!![]},{'name':a267_0x38e8be(0x228),'meowKey':a267_0x38e8be(0x228),'type':a267_0x38e8be(0x216),'description':a267_0x38e8be(0x22a),'hidden':!![]},{'name':a267_0x38e8be(0x23b),'meowKey':'output','type':'string','description':'Output\x20path','hidden':!![]},{'name':'params','meowKey':'params','type':'string','description':a267_0x38e8be(0x1e4),'hidden':!![]},{'name':'datasetcode','meowKey':a267_0x38e8be(0x21a),'type':a267_0x38e8be(0x1ba),'description':a267_0x38e8be(0x1bb),'hidden':!![]},{'name':a267_0x38e8be(0x1a6),'meowKey':'all','type':a267_0x38e8be(0x216),'description':a267_0x38e8be(0x210),'hidden':!![]},{'name':a267_0x38e8be(0x23c),'meowKey':a267_0x38e8be(0x1b9),'type':a267_0x38e8be(0x216),'description':a267_0x38e8be(0x1bf),'hidden':!![]},{'name':'id','meowKey':'id','type':a267_0x38e8be(0x1ba),'description':'Record\x20ID','hidden':!![]},{'name':a267_0x38e8be(0x1a2),'meowKey':a267_0x38e8be(0x1a2),'type':a267_0x38e8be(0x1ba),'description':'Type\x20filter','hidden':!![]},{'name':'file','meowKey':a267_0x38e8be(0x1ea),'type':'string','description':'File\x20path','hidden':!![]},{'name':a267_0x38e8be(0x1af),'meowKey':a267_0x38e8be(0x222),'type':a267_0x38e8be(0x1ba),'description':a267_0x38e8be(0x1ca),'hidden':!![]},{'name':a267_0x38e8be(0x230),'meowKey':a267_0x38e8be(0x227),'type':a267_0x38e8be(0x1ba),'description':a267_0x38e8be(0x1e3),'hidden':!![]},{'name':'flow-status','meowKey':a267_0x38e8be(0x238),'type':a267_0x38e8be(0x1ba),'description':'Flow\x20status','hidden':!![]},{'name':a267_0x38e8be(0x1ab),'meowKey':'flowType','type':a267_0x38e8be(0x1ba),'description':'Flow\x20type','hidden':!![]},{'name':a267_0x38e8be(0x218),'meowKey':a267_0x38e8be(0x1b7),'type':a267_0x38e8be(0x1ba),'description':a267_0x38e8be(0x1bb),'hidden':!![]},{'name':a267_0x38e8be(0x1f9),'meowKey':a267_0x38e8be(0x1f9),'type':a267_0x38e8be(0x1ba),'description':a267_0x38e8be(0x1d9),'hidden':!![]},{'name':a267_0x38e8be(0x1cc),'meowKey':a267_0x38e8be(0x1c6),'type':'string','description':a267_0x38e8be(0x1ed),'hidden':!![]},{'name':a267_0x38e8be(0x237),'meowKey':a267_0x38e8be(0x237),'type':a267_0x38e8be(0x1ba),'description':a267_0x38e8be(0x1ed),'hidden':!![]},{'name':a267_0x38e8be(0x1c8),'meowKey':a267_0x38e8be(0x1a7),'type':'string','description':a267_0x38e8be(0x1b4),'hidden':!![]},{'name':a267_0x38e8be(0x20f),'meowKey':a267_0x38e8be(0x20f),'type':a267_0x38e8be(0x1ba),'description':a267_0x38e8be(0x1b4),'hidden':!![]},{'name':a267_0x38e8be(0x1ae),'meowKey':'description','type':a267_0x38e8be(0x1ba),'description':a267_0x38e8be(0x1dd),'hidden':!![]},{'name':a267_0x38e8be(0x20a),'meowKey':a267_0x38e8be(0x1c2),'type':a267_0x38e8be(0x1ba),'description':a267_0x38e8be(0x211),'hidden':!![]},{'name':a267_0x38e8be(0x239),'meowKey':'page','type':a267_0x38e8be(0x1ba),'description':'Page\x20number','hidden':!![]},{'name':'page-size','meowKey':a267_0x38e8be(0x23a),'type':'string','description':a267_0x38e8be(0x1b8),'hidden':!![]},{'name':a267_0x38e8be(0x21e),'meowKey':a267_0x38e8be(0x21e),'type':a267_0x38e8be(0x1ba),'description':'Page\x20size','hidden':!![]},{'name':a267_0x38e8be(0x1f7),'meowKey':a267_0x38e8be(0x1f7),'type':a267_0x38e8be(0x1ba),'description':a267_0x38e8be(0x1b0),'hidden':!![]},{'name':'code','meowKey':a267_0x38e8be(0x1c9),'type':a267_0x38e8be(0x1ba),'description':a267_0x38e8be(0x21c),'hidden':!![]},{'name':a267_0x38e8be(0x1a9),'meowKey':a267_0x38e8be(0x1a9),'type':'string','description':a267_0x38e8be(0x1ef),'hidden':!![]},{'name':a267_0x38e8be(0x1d3),'meowKey':a267_0x38e8be(0x1d3),'type':a267_0x38e8be(0x1ba),'description':a267_0x38e8be(0x212),'hidden':!![]},{'name':'operation','meowKey':a267_0x38e8be(0x1ee),'type':a267_0x38e8be(0x1ba),'description':a267_0x38e8be(0x225),'hidden':!![]},{'name':a267_0x38e8be(0x22b),'meowKey':a267_0x38e8be(0x22b),'type':a267_0x38e8be(0x1ba),'description':a267_0x38e8be(0x1be),'hidden':!![]},{'name':a267_0x38e8be(0x22f),'meowKey':'skipImports','type':'boolean','description':a267_0x38e8be(0x1c7),'hidden':!![]},{'name':a267_0x38e8be(0x1b1),'meowKey':a267_0x38e8be(0x1b1),'type':a267_0x38e8be(0x1ba),'description':a267_0x38e8be(0x1d8),'hidden':!![]},{'name':a267_0x38e8be(0x207),'meowKey':'value','type':'string','description':a267_0x38e8be(0x22d),'hidden':!![]},{'name':a267_0x38e8be(0x1ec),'meowKey':'tags','type':'string','description':a267_0x38e8be(0x235),'hidden':!![]},{'name':a267_0x38e8be(0x221),'meowKey':a267_0x38e8be(0x221),'type':'boolean','description':a267_0x38e8be(0x214),'hidden':!![]},{'name':a267_0x38e8be(0x22e),'meowKey':'fromEnv','type':a267_0x38e8be(0x1ba),'description':a267_0x38e8be(0x226),'hidden':!![]},{'name':a267_0x38e8be(0x1ff),'meowKey':'reveal','type':'boolean','description':a267_0x38e8be(0x234),'hidden':!![]},{'name':a267_0x38e8be(0x1fe),'meowKey':'force','type':a267_0x38e8be(0x216),'description':a267_0x38e8be(0x1ad),'hidden':!![]},{'name':a267_0x38e8be(0x1a4),'meowKey':a267_0x38e8be(0x1a4),'type':a267_0x38e8be(0x216),'description':'Confirm\x20destructive\x20action','hidden':!![]},{'name':'remote','meowKey':a267_0x38e8be(0x1e8),'type':a267_0x38e8be(0x216),'description':a267_0x38e8be(0x1cb),'hidden':!![]},{'name':a267_0x38e8be(0x1da),'meowKey':a267_0x38e8be(0x1da),'type':'boolean','description':a267_0x38e8be(0x1f8),'hidden':!![]},{'name':a267_0x38e8be(0x236),'meowKey':a267_0x38e8be(0x200),'type':a267_0x38e8be(0x1ba),'description':a267_0x38e8be(0x20e),'hidden':!![]},{'name':a267_0x38e8be(0x204),'meowKey':a267_0x38e8be(0x204),'type':a267_0x38e8be(0x1ba),'description':'Menu\x20label','hidden':!![]},{'name':a267_0x38e8be(0x1b6),'meowKey':a267_0x38e8be(0x1e6),'type':'string','description':a267_0x38e8be(0x1d1),'hidden':!![]},{'name':a267_0x38e8be(0x206),'meowKey':a267_0x38e8be(0x206),'type':'string','description':a267_0x38e8be(0x231),'hidden':!![]},{'name':a267_0x38e8be(0x21d),'meowKey':a267_0x38e8be(0x1f1),'type':a267_0x38e8be(0x1ba),'description':a267_0x38e8be(0x1f2),'hidden':!![]},{'name':a267_0x38e8be(0x1f6),'meowKey':'expectPath','type':a267_0x38e8be(0x1ba),'description':a267_0x38e8be(0x205),'hidden':!![]},{'name':'expected-children-count','meowKey':a267_0x38e8be(0x1e9),'type':a267_0x38e8be(0x1ba),'description':a267_0x38e8be(0x215),'hidden':!![]},{'name':a267_0x38e8be(0x20d),'meowKey':'menuIds','type':a267_0x38e8be(0x1ba),'description':a267_0x38e8be(0x208),'hidden':!![]},{'name':'task-id','meowKey':a267_0x38e8be(0x224),'type':a267_0x38e8be(0x1ba),'description':'Asynchronous\x20task\x20ID','hidden':!![]},{'name':'operation-type','meowKey':a267_0x38e8be(0x1fa),'type':a267_0x38e8be(0x1ba),'description':a267_0x38e8be(0x225),'hidden':!![]},{'name':a267_0x38e8be(0x20c),'meowKey':a267_0x38e8be(0x1fd),'type':a267_0x38e8be(0x1ba),'description':a267_0x38e8be(0x1d2),'hidden':!![]},{'name':a267_0x38e8be(0x1cd),'meowKey':'codes','type':'string','description':a267_0x38e8be(0x1d0),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a267_0x38e8be(0x1df),a267_0x38e8be(0x1a3),a267_0x38e8be(0x1aa),a267_0x38e8be(0x209),'jq',a267_0x38e8be(0x1ac),a267_0x38e8be(0x1e1),a267_0x38e8be(0x233),'ci']);function a267_0xdfdd(){const _0xa58b48=['parentId','meowKey','remote','expectedChildrenCount','file','Name','tags','SQL\x20name','operation','SQL\x20string','global','expectParentId','Expected\x20current\x20parent\x20menu\x20id','Maximum\x20search\x20hits','production\x20|\x20daily','Skip\x20confirmation\x20for\x20high-risk\x20writes','expect-path','keyword','Verbose\x20output','sqlcode','operationType','Use\x20global\x20config\x20scope','Show\x20help','functionNode','force','reveal','expectedCount','Clear','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','topk','label','Expected\x20current\x20menu\x20path','sort','value','Comma-separated\x20menu\x20IDs','format','description-file','title','function-node','menu-ids','Expected\x20affected\x20count','dbid','Apply\x20to\x20all','Description\x20file','Schemas','project','Read\x20value\x20from\x20stdin','Expected\x20current\x20child\x20count','boolean','query','dataset-code','200DTuTrR','datasetcode','Preview\x20operation\x20without\x20executing','Code\x20filter','expect-parent-id','pagesize','App\x20locale\x20(workspace\x20pass-through;\x20not\x20CLI\x20language)','<code>','stdin','flowCode','Alias\x20for\x20--non-interactive','taskId','Operation\x20type','Read\x20value\x20from\x20environment\x20variable','flowName','watch','28676DSRtNt','Watch\x20mode','target','5700648OORjmy','Config\x20value','from-env','skip-imports','flow-name','Menu\x20sort\x20value','143412dKyvRi','non-interactive','Reveal\x20sensitive\x20value','Tags','expected-count','sqlname','flowStatus','page','pageSize','output','enable-bff-save','type','app','confirm','clear','all','dbId','name','sql','env','flow-type','dry-run','Force\x20overwrite','description','flow-code','Keyword\x20filter','key','663258DhNZQX','<expr>','DB\x20ID','1221sZMSDg','parent-id','datasetCode','Page\x20size','enableBffSave','string','Dataset\x20code','Search\x20query','Use\x20project\x20config\x20scope','Target\x20path','Enable\x20Backend\x20Function\x20save','map','1510449mrkSmQ','descriptionFile','Override\x20appcode','Environment','4OJKXCY','sqlName','Skip\x20import\x20generation','db-id','code','Flow\x20code','Use\x20remote','sql-name','codes','json\x20|\x20pretty\x20|\x20compress','zh-CN\x20|\x20en-US','Comma-separated\x20metadata\x20codes','Parent\x20menu\x20id','Function\x20node','schemas','@lovrabet/rabetbase-cli','21gpZnbA','113940jgEtsj','Rabetbase\x20CLI','Config\x20key','SQL\x20code','verbose','locale','92808tOgcAE','Description','fromEntries','appcode','rabetbase','yes','2alZkOO','Flow\x20name','JSON\x20params','help'];a267_0xdfdd=function(){return _0xa58b48;};return a267_0xdfdd();}export function buildMeowFlags(){const _0x4cac06=a267_0x38e8be;return Object[_0x4cac06(0x1de)](GLOBAL_FLAGS[_0x4cac06(0x1c0)](_0x4cd2f7=>[_0x4cd2f7[_0x4cac06(0x1e7)],{'type':_0x4cd2f7['type']}]));}
|
package/lib/constant/defaults.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a268_0x39d7(_0x3bf368,_0x5a796e){_0x3bf368=_0x3bf368-0x10a;const _0x3bbffd=a268_0x3bbf();let _0x39d7a0=_0x3bbffd[_0x3bf368];return _0x39d7a0;}function a268_0x3bbf(){const _0x3fd461=['write','18eRzpio','9098082TzUHrO','production','compress','1226924GhxJpc','2vafDhj','381451FCjQNo','3861522GhNmGW','56whPdLq','856095UOBwhT','868667vFOBEK','en-US','8245010NuBGYB'];a268_0x3bbf=function(){return _0x3fd461;};return a268_0x3bbf();}const a268_0xc44bb1=a268_0x39d7;(function(_0x2bfa47,_0x379eb2){const _0xca845a=a268_0x39d7,_0xfc57a7=_0x2bfa47();while(!![]){try{const _0x314f38=-parseInt(_0xca845a(0x10c))/0x1*(parseInt(_0xca845a(0x115))/0x2)+-parseInt(_0xca845a(0x117))/0x3+parseInt(_0xca845a(0x114))/0x4+-parseInt(_0xca845a(0x10b))/0x5+parseInt(_0xca845a(0x111))/0x6+-parseInt(_0xca845a(0x116))/0x7*(parseInt(_0xca845a(0x10a))/0x8)+parseInt(_0xca845a(0x110))/0x9*(parseInt(_0xca845a(0x10e))/0xa);if(_0x314f38===_0x379eb2)break;else _0xfc57a7['push'](_0xfc57a7['shift']());}catch(_0x4396d0){_0xfc57a7['push'](_0xfc57a7['shift']());}}}(a268_0x3bbf,0xba6b1));import{DEFAULT_API_DIR}from'../constant/paths.js';export const DEFAULT_CONFIG_VALUES={'env':a268_0xc44bb1(0x112),'format':a268_0xc44bb1(0x113),'locale':a268_0xc44bb1(0x10d),'riskLevel':a268_0xc44bb1(0x10f),'apiDir':DEFAULT_API_DIR};export const DEFAULT_COMMAND_OUTPUT_FORMAT='compress';
|
package/lib/constant/domain.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a269_0x44b80c=a269_0x85ef;(function(_0x18440a,_0x4c1a4a){const _0x4d61ff=a269_0x85ef,_0x4011ee=_0x18440a();while(!![]){try{const _0x4b1e93=-parseInt(_0x4d61ff(0x97))/0x1*(parseInt(_0x4d61ff(0x84))/0x2)+-parseInt(_0x4d61ff(0x93))/0x3*(parseInt(_0x4d61ff(0x81))/0x4)+-parseInt(_0x4d61ff(0x99))/0x5+-parseInt(_0x4d61ff(0x7e))/0x6+-parseInt(_0x4d61ff(0x95))/0x7*(parseInt(_0x4d61ff(0x8e))/0x8)+-parseInt(_0x4d61ff(0x9a))/0x9+parseInt(_0x4d61ff(0x85))/0xa;if(_0x4b1e93===_0x4c1a4a)break;else _0x4011ee['push'](_0x4011ee['shift']());}catch(_0x3fd4bc){_0x4011ee['push'](_0x4011ee['shift']());}}}(a269_0x285a,0xc32e1));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 _0x21e3f8=a269_0x85ef,_0x448d91=getOfficialRoutingProfile(activeRegion);return isProduction(getEnv())?_0x448d91[_0x21e3f8(0x8f)][_0x21e3f8(0x9c)]:_0x448d91[_0x21e3f8(0x8f)][_0x21e3f8(0x86)]??_0x448d91[_0x21e3f8(0x8f)][_0x21e3f8(0x9c)];}export function initDomains(_0xfe4b45){const _0x125daf=a269_0x85ef;customApiDomain=_0xfe4b45?.['apiDomain'],customUserDomain=_0xfe4b45?.[_0x125daf(0x98)],customRuntimeDomain=_0xfe4b45?.[_0x125daf(0x7f)],customSkillDomain=_0xfe4b45?.[_0x125daf(0x96)],customKbDomain=_0xfe4b45?.[_0x125daf(0x9d)],customKbServiceDomain=_0xfe4b45?.[_0x125daf(0x82)],allowOfficialKbServiceDefault=_0xfe4b45?.[_0x125daf(0x8b)]??!![],customAppDomain=_0xfe4b45?.[_0x125daf(0x8a)],customLocalDomain=_0xfe4b45?.[_0x125daf(0x8d)],customCertificateDomain=_0xfe4b45?.['certificateDomain'],customCdn=_0xfe4b45?.[_0x125daf(0x90)],activeRegion=_0xfe4b45?.[_0x125daf(0x9b)]??DEFAULT_LOVRABET_REGION;}export const getUserDomain=()=>customUserDomain||getActiveRegionDomains()[a269_0x44b80c(0x94)];export const getApiDomain=()=>customApiDomain||getActiveRegionDomains()[a269_0x44b80c(0x92)];export const getRuntimeDomain=()=>customRuntimeDomain||getActiveRegionDomains()[a269_0x44b80c(0x83)];export const getSkillDomain=()=>customSkillDomain||getActiveRegionDomains()[a269_0x44b80c(0x91)];export const getKbDomain=()=>customKbDomain||customApiDomain||getActiveRegionDomains()['kb'];export const getKbServiceDomain=()=>{const _0x402906=a269_0x44b80c;if(customKbServiceDomain)return customKbServiceDomain;if(!allowOfficialKbServiceDefault)return undefined;return getActiveRegionDomains()[_0x402906(0x88)];};function a269_0x85ef(_0x22127d,_0x583fc2){_0x22127d=_0x22127d-0x7e;const _0x285a82=a269_0x285a();let _0x85ef82=_0x285a82[_0x22127d];return _0x85ef82;}export const getAppDomain=()=>customAppDomain||getActiveRegionDomains()['app'];export const getActiveRegion=()=>activeRegion;export const getLocalDomain=()=>customLocalDomain;function a269_0x285a(){const _0x5682a5=['cdn','skill','api','42915obUoqd','user','98ZiXyXA','skillDomain','1SwoBRt','userDomain','4291285gWvrrB','14106636rkAHOq','region','production','kbDomain','6657180jVJTBx','runtimeDomain','/web-app/app/','228isNFAy','kbServiceDomain','runtime','370112JzVABu','65865350cSmXXa','daily','origin','kbService','hostname','appDomain','allowOfficialKbServiceDefault','trim','localDomain','715112AMoVoc','serviceDomains'];a269_0x285a=function(){return _0x5682a5;};return a269_0x285a();}export const getCertificateDomain=()=>customCertificateDomain;export const getActiveCdn=()=>customCdn||getOfficialRoutingCdn(activeRegion);export function isIndependentDeployment(){return!!(customApiDomain||customUserDomain||customRuntimeDomain||customSkillDomain||customKbDomain||customAppDomain||customLocalDomain||customCertificateDomain);}export function getSdkClientRoutingConfig(){const _0x3a4776=a269_0x44b80c;if(customRuntimeDomain&&customRuntimeDomain!==getActiveRegionDomains()[_0x3a4776(0x83)])return{'runtimeDomain':customRuntimeDomain};if(activeRegion!==DEFAULT_LOVRABET_REGION)return{'runtimeDomain':getRuntimeDomain()};return{};}export const getAppBaseUrl=_0x16058e=>{const _0x545d67=a269_0x44b80c,_0x4f03dd=encodeURIComponent(_0x16058e['trim']());return isProduction(getEnv())?getAppDomain()+'/app/'+_0x4f03dd:getAppDomain()+_0x545d67(0x80)+_0x4f03dd;};export const getPublishedAppDomain=_0x1ea556=>{const _0x20e973=a269_0x44b80c,_0x5f1a93=new URL(getAppDomain());return _0x5f1a93[_0x20e973(0x89)]=_0x1ea556[_0x20e973(0x8c)]()+'.'+_0x5f1a93[_0x20e973(0x89)],_0x5f1a93[_0x20e973(0x87)];};
|
package/lib/constant/env.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a270_0xd7ff22=a270_0xcc40;(function(_0x21fc07,_0x5c75d9){const _0x1522ee=a270_0xcc40,_0x1ddfaf=_0x21fc07();while(!![]){try{const _0xbccdab=parseInt(_0x1522ee(0xb1))/0x1+parseInt(_0x1522ee(0xa9))/0x2*(-parseInt(_0x1522ee(0xb3))/0x3)+parseInt(_0x1522ee(0xb0))/0x4*(parseInt(_0x1522ee(0xae))/0x5)+-parseInt(_0x1522ee(0xb4))/0x6*(parseInt(_0x1522ee(0xaf))/0x7)+-parseInt(_0x1522ee(0xac))/0x8*(parseInt(_0x1522ee(0xad))/0x9)+-parseInt(_0x1522ee(0xab))/0xa+parseInt(_0x1522ee(0xb2))/0xb;if(_0xbccdab===_0x5c75d9)break;else _0x1ddfaf['push'](_0x1ddfaf['shift']());}catch(_0x3fedf1){_0x1ddfaf['push'](_0x1ddfaf['shift']());}}}(a270_0x4c31,0x81ed1));function a270_0xcc40(_0x39b6e3,_0x4570db){_0x39b6e3=_0x39b6e3-0xa8;const _0x4c31ef=a270_0x4c31();let _0xcc40ef=_0x4c31ef[_0x39b6e3];return _0xcc40ef;}export const RABETBASE_ENV_VALUES=[a270_0xd7ff22(0xa8),a270_0xd7ff22(0xaa)];export function normalizeEnv(_0x564ffd){return _0x564ffd==='online'?'production':_0x564ffd;}export function isProduction(_0x3665da){return normalizeEnv(_0x3665da)==='production';}export function isDaily(_0x308c9d){const _0x36b257=a270_0xd7ff22;return normalizeEnv(_0x308c9d)===_0x36b257(0xaa);}function a270_0x4c31(){const _0x3bceb6=['4585905KwODvl','10lvfyuY','410039FEPhog','543940crltDv','201051fvxLQS','36126585jiReke','2393673zbfupf','72ikUegW','production','2sXoZUB','daily','7051740jCrHpb','16YndzBo'];a270_0x4c31=function(){return _0x3bceb6;};return a270_0x4c31();}export function isDev(_0x26c4c7){const _0xfb95d1=normalizeEnv(_0x26c4c7);return _0xfb95d1==='development'||_0xfb95d1==='dev';}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||a270_0xd7ff22(0xa8));export function getEnv(){return env;}export function initEnv(_0x34dce6){env=normalizeEnv(_0x34dce6);}
|
package/lib/constant/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a271_0x45ce(_0x4a9e67,_0x5cfb02){_0x4a9e67=_0x4a9e67-0x126;const _0x15152b=a271_0x1515();let _0x45ce16=_0x15152b[_0x4a9e67];return _0x45ce16;}const a271_0x29f464=a271_0x45ce;function a271_0x1515(){const _0x32bb32=['122298sZJNde','630324QVgNXr','6593970HBaGEs','44eynQOv','1324509iSlTlE','pretty','635809dveVIG','24rJROeG','147535hyMKZh','1555614ERrmGa','json','compress','7PRDBcZ'];a271_0x1515=function(){return _0x32bb32;};return a271_0x1515();}(function(_0x5abab3,_0x32c6db){const _0x446b4a=a271_0x45ce,_0x34098a=_0x5abab3();while(!![]){try{const _0x103c77=parseInt(_0x446b4a(0x12e))/0x1+-parseInt(_0x446b4a(0x129))/0x2+-parseInt(_0x446b4a(0x12c))/0x3+parseInt(_0x446b4a(0x12b))/0x4*(parseInt(_0x446b4a(0x130))/0x5)+-parseInt(_0x446b4a(0x128))/0x6*(parseInt(_0x446b4a(0x127))/0x7)+-parseInt(_0x446b4a(0x12f))/0x8*(parseInt(_0x446b4a(0x131))/0x9)+parseInt(_0x446b4a(0x12a))/0xa;if(_0x103c77===_0x32c6db)break;else _0x34098a['push'](_0x34098a['shift']());}catch(_0x3dbfcb){_0x34098a['push'](_0x34098a['shift']());}}}(a271_0x1515,0x4f265));export const RABETBASE_OUTPUT_FORMAT_VALUES=[a271_0x29f464(0x132),a271_0x29f464(0x12d),a271_0x29f464(0x126)];
|
package/lib/constant/paths.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a272_0x4d70ec=a272_0x4ce1;function a272_0x4ce1(_0x34db6f,_0x5c6bbc){_0x34db6f=_0x34db6f-0x155;const _0x2afc56=a272_0x2afc();let _0x4ce1f4=_0x2afc56[_0x34db6f];return _0x4ce1f4;}function a272_0x2afc(){const _0x17bd5f=['240070hNqIah','29hrHkyp','4120452QgGVVz','18WiHjDs','4549783TfnFPH','6706SEanYO','./src/api','1582122vGNIQq','8832016luMTct','670532McYVSw'];a272_0x2afc=function(){return _0x17bd5f;};return a272_0x2afc();}(function(_0x380efb,_0x4c089e){const _0x1df09d=a272_0x4ce1,_0x38bffd=_0x380efb();while(!![]){try{const _0x5e7a73=-parseInt(_0x1df09d(0x15b))/0x1*(parseInt(_0x1df09d(0x155))/0x2)+-parseInt(_0x1df09d(0x157))/0x3+parseInt(_0x1df09d(0x159))/0x4+-parseInt(_0x1df09d(0x15a))/0x5+-parseInt(_0x1df09d(0x15c))/0x6+-parseInt(_0x1df09d(0x15e))/0x7+parseInt(_0x1df09d(0x158))/0x8*(parseInt(_0x1df09d(0x15d))/0x9);if(_0x5e7a73===_0x4c089e)break;else _0x38bffd['push'](_0x38bffd['shift']());}catch(_0x3f2532){_0x38bffd['push'](_0x38bffd['shift']());}}}(a272_0x2afc,0x596dd));export const DEFAULT_API_DIR=a272_0x4d70ec(0x156);
|
package/lib/constant/region.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a273_0x2f10(){const _0xbffade=['241852fTVUbq','9sKpNlx','830120zTlTvg','104540Xvpkfx','includes','882UcJWCw','1341gOPskt','2960085RdnYpf','string','710936FtUHtk','718496NZnnxz','8178ctjhrx'];a273_0x2f10=function(){return _0xbffade;};return a273_0x2f10();}(function(_0x48a2aa,_0x2b6bdd){const _0x349236=a273_0x55de,_0x171dff=_0x48a2aa();while(!![]){try{const _0x4d21e2=-parseInt(_0x349236(0x136))/0x1+parseInt(_0x349236(0x12f))/0x2+-parseInt(_0x349236(0x12e))/0x3*(parseInt(_0x349236(0x12d))/0x4)+-parseInt(_0x349236(0x134))/0x5+-parseInt(_0x349236(0x12c))/0x6*(parseInt(_0x349236(0x132))/0x7)+parseInt(_0x349236(0x137))/0x8+parseInt(_0x349236(0x133))/0x9*(parseInt(_0x349236(0x130))/0xa);if(_0x4d21e2===_0x2b6bdd)break;else _0x171dff['push'](_0x171dff['shift']());}catch(_0x5769da){_0x171dff['push'](_0x171dff['shift']());}}}(a273_0x2f10,0x633a6));import{DEFAULT_REGION,ENABLED_REGION_VALUES,REGION_ALIASES,REGION_VALUES}from'../generated/official-routing.js';export const LOVRABET_REGION_VALUES=REGION_VALUES;export const ENABLED_LOVRABET_REGION_VALUES=ENABLED_REGION_VALUES;export const DEFAULT_LOVRABET_REGION=DEFAULT_REGION;function a273_0x55de(_0x93fd64,_0x4979db){_0x93fd64=_0x93fd64-0x12c;const _0x2f1085=a273_0x2f10();let _0x55de55=_0x2f1085[_0x93fd64];return _0x55de55;}export function isLovrabetRegion(_0x45bfd0){const _0x3614b2=a273_0x55de;return typeof _0x45bfd0===_0x3614b2(0x135)&&LOVRABET_REGION_VALUES[_0x3614b2(0x131)](_0x45bfd0);}export function isEnabledLovrabetRegion(_0x3ac59c){const _0x2c7c7b=a273_0x55de;return typeof _0x3ac59c===_0x2c7c7b(0x135)&&ENABLED_LOVRABET_REGION_VALUES[_0x2c7c7b(0x131)](_0x3ac59c);}export function normalizeLovrabetRegion(_0x426ff2){const _0x170d07=a273_0x55de;if(typeof _0x426ff2!==_0x170d07(0x135))return undefined;const _0x2b9960=REGION_ALIASES[_0x426ff2]??_0x426ff2;return isLovrabetRegion(_0x2b9960)?_0x2b9960:undefined;}export function isInvalidLovrabetRegion(_0x510782){return _0x510782!==undefined&&_0x510782!==null&&_0x510782!==''&&normalizeLovrabetRegion(_0x510782)===undefined;}
|
package/lib/constant/risk.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x38e770,_0xe27a02){const _0x31688a=a274_0x3e35,_0x1f1a3f=_0x38e770();while(!![]){try{const _0x3c61fc=-parseInt(_0x31688a(0x80))/0x1+parseInt(_0x31688a(0x7a))/0x2*(parseInt(_0x31688a(0x78))/0x3)+parseInt(_0x31688a(0x7e))/0x4+parseInt(_0x31688a(0x77))/0x5+-parseInt(_0x31688a(0x7b))/0x6*(parseInt(_0x31688a(0x79))/0x7)+-parseInt(_0x31688a(0x7d))/0x8*(parseInt(_0x31688a(0x7f))/0x9)+parseInt(_0x31688a(0x7c))/0xa*(parseInt(_0x31688a(0x76))/0xb);if(_0x3c61fc===_0xe27a02)break;else _0x1f1a3f['push'](_0x1f1a3f['shift']());}catch(_0x5b00d9){_0x1f1a3f['push'](_0x1f1a3f['shift']());}}}(a274_0x2568,0x3a56d));function a274_0x3e35(_0x22acaa,_0x3dde23){_0x22acaa=_0x22acaa-0x76;const _0x25686c=a274_0x2568();let _0x3e356f=_0x25686c[_0x22acaa];return _0x3e356f;}function a274_0x2568(){const _0xb0e773=['24kQavwl','1445144HFlbIi','1254339NIurrj','454153KznSHT','11EcZjvA','28580kIecKr','21xNmBHX','7oYQJec','44354DvlZEA','2289516pkOZNv','9705680BCdeNd'];a274_0x2568=function(){return _0xb0e773;};return a274_0x2568();}export const RISK_LEVEL_VALUES=['read','write','high-risk-write'];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a275_0x3845(_0x41723d,_0x235508){_0x41723d=_0x41723d-0x93;const _0x1f8f0e=a275_0x1f8f();let _0x3845c2=_0x1f8f0e[_0x41723d];return _0x3845c2;}(function(_0x240686,_0x91c5bd){const _0x4f952e=a275_0x3845,_0x10969d=_0x240686();while(!![]){try{const _0x4f3160=parseInt(_0x4f952e(0x97))/0x1*(-parseInt(_0x4f952e(0x93))/0x2)+-parseInt(_0x4f952e(0x95))/0x3*(-parseInt(_0x4f952e(0x96))/0x4)+-parseInt(_0x4f952e(0x9f))/0x5+-parseInt(_0x4f952e(0x9a))/0x6+-parseInt(_0x4f952e(0x99))/0x7+-parseInt(_0x4f952e(0x9d))/0x8*(parseInt(_0x4f952e(0x9c))/0x9)+parseInt(_0x4f952e(0x94))/0xa;if(_0x4f3160===_0x91c5bd)break;else _0x10969d['push'](_0x10969d['shift']());}catch(_0x234143){_0x10969d['push'](_0x10969d['shift']());}}}(a275_0x1f8f,0xc3c0e));import{OFFICIAL_ROUTING_PROFILES as a275_0xc7c1d2,ROUTING_CATALOG_DIGEST}from'../generated/official-routing.js';export const OFFICIAL_ROUTING_PROFILES=a275_0xc7c1d2;function a275_0x1f8f(){const _0x4be0e2=['1292315QvSvag','4864IkmWDW','34493640XKyeLR','1854915rDRiCI','4zpDJhM','379xLTwBv','Official\x20routing\x20for\x20region\x20\x22','4671268jDUian','4529070MUDfRm','lovrabet','5971527GVGqkL','8jytpqg','libraries'];a275_0x1f8f=function(){return _0x4be0e2;};return a275_0x1f8f();}export{ROUTING_CATALOG_DIGEST};export function getOfficialRoutingProfile(_0x3eb3d9){return OFFICIAL_ROUTING_PROFILES[_0x3eb3d9];}export function getOfficialRoutingCdn(_0x3f8787){const _0x4b4266=a275_0x3845,_0x3f076a=getOfficialRoutingProfile(_0x3f8787)['cdn'];if(!_0x3f076a[_0x4b4266(0x9b)])throw new Error(_0x4b4266(0x98)+_0x3f8787+'\x22\x20is\x20not\x20ready:\x20Lovrabet\x20CDN\x20Domain\x20is\x20not\x20configured.');return{'libraries':_0x3f076a[_0x4b4266(0x9e)],'lovrabet':_0x3f076a[_0x4b4266(0x9b)]};}
|