@lovrabet/rabetbase-cli 2.5.1-beta.3 → 2.5.1-beta.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +75 -1
- package/lib/api/api-doc.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.d.ts +0 -1
- package/lib/api/generate-sdk-config-file.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/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/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.d.ts +2 -0
- 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.d.ts +3 -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/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/delete.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/extend-update.js +1 -1
- package/lib/commands/dataset/field-restore.js +1 -1
- package/lib/commands/dataset/field-update.js +1 -1
- package/lib/commands/dataset/generate.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/dataset/relation-audit.js +1 -1
- package/lib/commands/dataset/relation-create.js +1 -1
- package/lib/commands/dataset/relation-delete.js +1 -1
- package/lib/commands/dataset/relation-shared.js +1 -1
- package/lib/commands/dataset/relation-update.js +1 -1
- package/lib/commands/dataset/relations.js +1 -1
- package/lib/commands/dataset/rename.js +1 -1
- package/lib/commands/dataset/restore.js +1 -1
- package/lib/commands/dataset/user-deleted-field-list.js +1 -1
- package/lib/commands/db/analysis-batching.js +1 -1
- package/lib/commands/db/analyze-batch-plan.js +1 -1
- package/lib/commands/db/analyze-cancel.js +1 -1
- package/lib/commands/db/analyze-start.js +1 -1
- package/lib/commands/db/analyze-status.js +1 -1
- package/lib/commands/db/create.js +1 -1
- package/lib/commands/db/delete.js +1 -1
- package/lib/commands/db/detail.js +1 -1
- package/lib/commands/db/diff-refresh-start.js +1 -1
- package/lib/commands/db/diff-refresh-status.js +1 -1
- package/lib/commands/db/diff.js +1 -1
- package/lib/commands/db/index.js +1 -1
- package/lib/commands/db/list.js +1 -1
- package/lib/commands/db/shared.js +1 -1
- package/lib/commands/db/table-diff-shared.js +1 -1
- package/lib/commands/db/tables.js +1 -1
- package/lib/commands/db/test.js +1 -1
- package/lib/commands/db/update.js +1 -1
- package/lib/commands/deployment/auto-sync.js +1 -1
- package/lib/commands/deployment/index.js +1 -1
- package/lib/commands/deployment/sync.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.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/service.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/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/template.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/create/enhanced-guided-create.js +1 -1
- package/lib/commands/project/create/format-elapsed.js +1 -1
- package/lib/commands/project/create/main.d.ts +1 -0
- 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.d.ts +2 -0
- package/lib/commands/project/domain-routing-sync.js +1 -0
- 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.d.ts +2 -0
- package/lib/commands/rule/get.js +1 -0
- package/lib/commands/rule/index.d.ts +2 -0
- package/lib/commands/rule/index.js +1 -0
- package/lib/commands/rule/list.d.ts +2 -0
- package/lib/commands/rule/list.js +1 -0
- package/lib/commands/rule/set.d.ts +2 -0
- package/lib/commands/rule/set.js +1 -0
- package/lib/commands/rule/shared.d.ts +43 -0
- package/lib/commands/rule/shared.js +1 -0
- 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/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/deployment-sync.js +1 -1
- package/lib/config/domain-config.d.ts +38 -2
- package/lib/config/domain-config.js +1 -1
- package/lib/config/project-domain-routing.d.ts +27 -0
- package/lib/config/project-domain-routing.js +1 -0
- package/lib/config/schema.d.ts +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.d.ts +10 -6
- 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.d.ts +4 -1
- package/lib/constant/region.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/routing-profile.d.ts +43 -49
- 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.d.ts +2 -0
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.d.ts +37 -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/lock.js +1 -1
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/db-resolver.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/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/types.d.ts +0 -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.d.ts +83 -0
- package/lib/generated/official-routing.js +1 -0
- package/lib/generated/routing-contract.d.ts +9 -0
- package/lib/generated/routing-contract.js +1 -0
- 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/types/index.d.ts +0 -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 +2 -1
- package/skills/rabetbase/SKILL.md +16 -13
- package/skills/rabetbase/guides/sdk-client-generation.md +10 -8
- package/skills/rabetbase/references/rabetbase-api-pull.md +16 -11
- package/skills/rabetbase/references/rabetbase-config.md +3 -6
- package/skills/rabetbase/references/rabetbase-doctor.md +2 -1
- package/skills/rabetbase/references/rabetbase-init.md +32 -10
- package/skills/rabetbase/references/rabetbase-kb.md +7 -7
- package/skills/rabetbase/references/rabetbase-project-create.md +33 -8
- package/skills/rabetbase/references/rabetbase-project-domain-routing-sync.md +28 -0
- package/skills/rabetbase/references/rabetbase-rule.md +49 -0
- package/skills/rabetbase.manifest.json +5 -3
- package/lib/config/project-routing.d.ts +0 -30
- package/lib/config/project-routing.js +0 -1
- package/lib/core/kb-search-client.d.ts +0 -30
- package/lib/core/kb-search-client.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const a212_0x15538a=a212_0x2762;(function(_0x1117fd,_0xbc0e5a){const _0x157bd0=a212_0x2762,_0x262dd5=_0x1117fd();while(!![]){try{const _0x453426=parseInt(_0x157bd0(0x1d0))/0x1+parseInt(_0x157bd0(0x1ef))/0x2*(parseInt(_0x157bd0(0x1d5))/0x3)+parseInt(_0x157bd0(0x1cf))/0x4*(parseInt(_0x157bd0(0x1dc))/0x5)+parseInt(_0x157bd0(0x1e3))/0x6*(parseInt(_0x157bd0(0x1f5))/0x7)+parseInt(_0x157bd0(0x1e0))/0x8+parseInt(_0x157bd0(0x1db))/0x9*(parseInt(_0x157bd0(0x1d7))/0xa)+-parseInt(_0x157bd0(0x1dd))/0xb;if(_0x453426===_0xbc0e5a)break;else _0x262dd5['push'](_0x262dd5['shift']());}catch(_0xfe98b9){_0x262dd5['push'](_0x262dd5['shift']());}}}(a212_0x3b70,0xbf6c6));import{existsSync,readFileSync}from'node:fs';import{isAbsolute,resolve}from'node:path';import{CliErrors}from'../errors.js';export const DOMAIN_CONFIG_FIELDS=['userDomain',a212_0x15538a(0x1c6),a212_0x15538a(0x1ea),a212_0x15538a(0x1ca),a212_0x15538a(0x1f4),'kbSearchDomain',a212_0x15538a(0x1ee),'localDomain',a212_0x15538a(0x1ce)];const DOMAIN_FLAGS={'userDomain':a212_0x15538a(0x1e6),'apiDomain':a212_0x15538a(0x1d6),'runtimeDomain':'runtime-domain','skillDomain':a212_0x15538a(0x1f0),'kbDomain':'kb-domain','kbSearchDomain':a212_0x15538a(0x1df),'appDomain':'app-domain','localDomain':a212_0x15538a(0x1de),'certificateDomain':a212_0x15538a(0x1cd)};function a212_0x3b70(){const _0x36ea2d=['213lwIXVe','api-domain','119230OpnNGS','validation','https:','parse','819hoKFgM','230450IShLum','36556245FWnIvs','local-domain','kb-search-domain','8087344HQvwvY','isArray','agentDomain','6bwIelM','platformDomain','username','user-domain','For\x20internal\x20deployments,\x20terminate\x20TLS\x20at\x20the\x20ingress,\x20reverse\x20proxy,\x20or\x20load\x20balancer;\x20an\x20internal\x20CA\x20is\x20supported.','skillHubDomain','Invalid\x20','runtimeDomain','password','length','keys','appDomain','17764udQjfI','skill-domain',':\x20\x22','Invalid\x20domain\x20config:\x20provide\x20at\x20least\x20one\x20supported\x20Domain.','Allowed\x20fields:\x20','kbDomain','663236kzFyrb','string','Invalid\x20domain\x20config\x20JSON:\x20','domain-config','apiDomain','hash','trim','join','skillDomain','Domain\x20config\x20file\x20not\x20found:\x20','includes','certificate-domain','certificateDomain','28uJoSuo','963454jEeMeK','str','origin',':\x20expected\x20an\x20HTTPS\x20origin\x20without\x20credentials,\x20path,\x20query,\x20or\x20fragment.','protocol'];a212_0x3b70=function(){return _0x36ea2d;};return a212_0x3b70();}export const LEGACY_DOMAIN_CONFIG_FIELDS=[a212_0x15538a(0x1e2),a212_0x15538a(0x1e4),a212_0x15538a(0x1e8)];export function normalizeDomainOrigin(_0xbdb5f9,_0x31686a){const _0x2acd9c=a212_0x15538a;if(typeof _0x31686a!==_0x2acd9c(0x1f6)||!_0x31686a[_0x2acd9c(0x1c8)]())throw CliErrors[_0x2acd9c(0x1d8)](_0x2acd9c(0x1e9)+_0xbdb5f9+':\x20expected\x20a\x20non-empty\x20HTTPS\x20origin.');let _0x30e329;try{_0x30e329=new URL(_0x31686a[_0x2acd9c(0x1c8)]());}catch{throw CliErrors[_0x2acd9c(0x1d8)]('Invalid\x20'+_0xbdb5f9+_0x2acd9c(0x1f1)+_0x31686a+'\x22\x20is\x20not\x20a\x20valid\x20URL.');}if(_0x30e329[_0x2acd9c(0x1d4)]!==_0x2acd9c(0x1d9)||_0x30e329[_0x2acd9c(0x1e5)]||_0x30e329[_0x2acd9c(0x1eb)]||_0x30e329['pathname']!=='/'&&_0x30e329['pathname']!==''||_0x30e329['search']||_0x30e329[_0x2acd9c(0x1c7)])throw CliErrors[_0x2acd9c(0x1d8)](_0x2acd9c(0x1e9)+_0xbdb5f9+_0x2acd9c(0x1d3),_0x2acd9c(0x1e7));return _0x30e329[_0x2acd9c(0x1d2)];}export function readDomainConfig(_0x4cd9e2){const _0x1d301a=a212_0x15538a,_0x4bb350=isAbsolute(_0x4cd9e2)?_0x4cd9e2:resolve(process['cwd'](),_0x4cd9e2);if(!existsSync(_0x4bb350))throw CliErrors[_0x1d301a(0x1d8)](_0x1d301a(0x1cb)+_0x4bb350);let _0x3ddd66;try{_0x3ddd66=JSON[_0x1d301a(0x1da)](readFileSync(_0x4bb350,'utf8'));}catch{throw CliErrors['validation'](_0x1d301a(0x1f7)+_0x4bb350);}if(!_0x3ddd66||typeof _0x3ddd66!=='object'||Array[_0x1d301a(0x1e1)](_0x3ddd66))throw CliErrors[_0x1d301a(0x1d8)]('Invalid\x20domain\x20config:\x20expected\x20a\x20JSON\x20object.');const _0x261e6d=_0x3ddd66,_0x213d82=Object[_0x1d301a(0x1ed)](_0x261e6d)['filter'](_0x316946=>!DOMAIN_CONFIG_FIELDS[_0x1d301a(0x1cc)](_0x316946));if(_0x213d82[_0x1d301a(0x1ec)]>0x0)throw CliErrors[_0x1d301a(0x1d8)]('Unsupported\x20domain\x20config\x20field(s):\x20'+_0x213d82[_0x1d301a(0x1c9)](',\x20'),_0x1d301a(0x1f3)+DOMAIN_CONFIG_FIELDS[_0x1d301a(0x1c9)](',\x20'));const _0x55ab02={};for(const _0x3d8e40 of DOMAIN_CONFIG_FIELDS){_0x261e6d[_0x3d8e40]!==undefined&&(_0x55ab02[_0x3d8e40]=normalizeDomainOrigin(_0x3d8e40,_0x261e6d[_0x3d8e40]));}if(Object[_0x1d301a(0x1ed)](_0x55ab02)[_0x1d301a(0x1ec)]===0x0)throw CliErrors[_0x1d301a(0x1d8)](_0x1d301a(0x1f2));return _0x55ab02;}function a212_0x2762(_0xb719b8,_0x5755f1){_0xb719b8=_0xb719b8-0x1c5;const _0x3b70d8=a212_0x3b70();let _0x2762d7=_0x3b70d8[_0xb719b8];return _0x2762d7;}export function resolveDomainFlags(_0x5bd2e4){const _0x162c0b=a212_0x15538a,_0x3da20e=(_0x5bd2e4[_0x162c0b(0x1d1)](_0x162c0b(0x1c5))||'')[_0x162c0b(0x1c8)](),_0x3b0737=_0x3da20e?readDomainConfig(_0x3da20e):{};for(const _0x5af01b of DOMAIN_CONFIG_FIELDS){const _0x22ff24=(_0x5bd2e4[_0x162c0b(0x1d1)](DOMAIN_FLAGS[_0x5af01b])||'')[_0x162c0b(0x1c8)]();if(_0x22ff24)_0x3b0737[_0x5af01b]=normalizeDomainOrigin(_0x5af01b,_0x22ff24);}return _0x3b0737;}
|
|
1
|
+
const a218_0x2ce99b=a218_0x1229;function a218_0x1229(_0x48674f,_0x17f2ad){_0x48674f=_0x48674f-0x181;const _0x2949d3=a218_0x2949();let _0x12299e=_0x2949d3[_0x48674f];return _0x12299e;}(function(_0x4a57ab,_0x2ce08d){const _0x483d1c=a218_0x1229,_0x46f766=_0x4a57ab();while(!![]){try{const _0x133e2c=-parseInt(_0x483d1c(0x1c5))/0x1+parseInt(_0x483d1c(0x1d3))/0x2*(parseInt(_0x483d1c(0x184))/0x3)+parseInt(_0x483d1c(0x1b9))/0x4*(-parseInt(_0x483d1c(0x1ce))/0x5)+-parseInt(_0x483d1c(0x191))/0x6*(-parseInt(_0x483d1c(0x1d6))/0x7)+parseInt(_0x483d1c(0x194))/0x8*(-parseInt(_0x483d1c(0x1ab))/0x9)+-parseInt(_0x483d1c(0x1be))/0xa*(parseInt(_0x483d1c(0x198))/0xb)+parseInt(_0x483d1c(0x185))/0xc;if(_0x133e2c===_0x2ce08d)break;else _0x46f766['push'](_0x46f766['shift']());}catch(_0x205675){_0x46f766['push'](_0x46f766['shift']());}}}(a218_0x2949,0x53f48));import{existsSync,readFileSync}from'node:fs';import{isAbsolute,resolve}from'node:path';function a218_0x2949(){const _0x49e064=['isArray','5117651reSkrK','utf8','certificate-domain','filter','password','Invalid\x20','Unsupported\x20domain\x20config\x20field(s):\x20','trim','Unsupported\x20routing\x20manifest:\x20expected\x20protocol\x20\x22','Update\x20the\x20manifest\x20so\x20both\x20CLIs\x20consume\x20the\x20same\x20routing\x20data.',':\x20expected\x20an\x20HTTPS\x20origin\x20or\x20consumer\x20Domain\x20object.','Invalid\x20enterprise\x20routing\x20manifest:\x20domains\x20must\x20be\x20an\x20object.',':\x20\x22','userDomain','object','domain-config','cdn','parse',':\x20expected\x20a\x20non-empty\x20HTTPS\x20origin.','9USiUPj','enterprise-v1','kind','lovrabet','skill-domain','skillDomain','Unsupported\x20enterprise\x20CDN\x20field(s):\x20','agentDomain','\x22\x20and\x20kind\x20\x22','Invalid\x20cdn.','includes','str','certificateDomain','kbDomain','25268YNiLAw','cwd','api-domain','domains','local-domain','10zMRrST','length','join','skillHubDomain','user-domain','string','appDomain','424305lFysgc','mode',':\x20expected\x20an\x20HTTPS\x20origin\x20without\x20credentials,\x20path,\x20query,\x20or\x20fragment.','search','Enterprise\x20','keys','username','Enterprise\x20routing\x20manifest\x20requires\x20localDomain\x20and\x20certificateDomain\x20together.','default','5edlrHj','platformDomain','\x22\x20is\x20not\x20a\x20valid\x20URL.',':\x20expected\x20a\x20non-empty\x20HTTPS\x20URL.','https:','17084YBFdSU','\x20without\x20credentials,\x20query,\x20or\x20fragment.','href','21uCiACs','protocol','Allowed\x20fields:\x20','apiDomain','Unsupported\x20','origin','93uKAjgL','13856928nyCbwO','legacy','Enterprise\x20routing\x20manifests\x20cannot\x20be\x20combined\x20with\x20individual\x20Domain\x20flags.','rabetbase-cli','Invalid\x20domain\x20config\x20JSON:\x20','hash','Enterprise\x20routing\x20manifest\x20is\x20missing\x20required\x20Domain(s):\x20','Invalid\x20domain\x20config:\x20provide\x20at\x20least\x20one\x20supported\x20Domain.','\x20and\x20has\x20no\x20default.','pathname',':\x20consumer\x20Domain\x20object\x20cannot\x20be\x20empty.','validation','196902Uxgxka','Unsupported\x20enterprise\x20Domain\x20field(s):\x20','runtimeDomain','2226032HWxkeR','app-domain','Allowed\x20consumers:\x20'];a218_0x2949=function(){return _0x49e064;};return a218_0x2949();}import{CliErrors}from'../errors.js';import{ENTERPRISE_ROUTING_CDN_FIELDS,ENTERPRISE_ROUTING_DOMAIN_FIELDS,ENTERPRISE_ROUTING_KIND,ENTERPRISE_ROUTING_PROTOCOL,ENTERPRISE_ROUTING_TOP_LEVEL_FIELDS,ENTERPRISE_ROUTING_CONSUMERS,REQUIRED_ENTERPRISE_ROUTING_CDN_FIELDS,REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS}from'../generated/routing-contract.js';export const DOMAIN_CONFIG_FIELDS=[a218_0x2ce99b(0x1a5),a218_0x2ce99b(0x181),'runtimeDomain',a218_0x2ce99b(0x1b0),a218_0x2ce99b(0x1b8),a218_0x2ce99b(0x1c4),'localDomain',a218_0x2ce99b(0x1b7)];const DOMAIN_FLAGS={'userDomain':a218_0x2ce99b(0x1c2),'apiDomain':a218_0x2ce99b(0x1bb),'runtimeDomain':'runtime-domain','skillDomain':a218_0x2ce99b(0x1af),'kbDomain':'kb-domain','appDomain':a218_0x2ce99b(0x195),'localDomain':a218_0x2ce99b(0x1bd),'certificateDomain':a218_0x2ce99b(0x19a)};export const LEGACY_DOMAIN_CONFIG_FIELDS=[a218_0x2ce99b(0x1b2),a218_0x2ce99b(0x1cf),a218_0x2ce99b(0x1c1)];const ENTERPRISE_TO_LOCAL_FIELD={'userDomain':a218_0x2ce99b(0x1a5),'apiDomain':'apiDomain','runtimeDomain':a218_0x2ce99b(0x193),'skillDomain':a218_0x2ce99b(0x1b0),'kbDomain':'kbDomain','appDomain':a218_0x2ce99b(0x1c4),'localDomain':'localDomain','certificateDomain':a218_0x2ce99b(0x1b7)},ROUTING_CONSUMER=a218_0x2ce99b(0x188);export function normalizeDomainOrigin(_0x426aec,_0x26f232){const _0xbdc7ad=a218_0x2ce99b;if(typeof _0x26f232!==_0xbdc7ad(0x1c3)||!_0x26f232[_0xbdc7ad(0x19f)]())throw CliErrors[_0xbdc7ad(0x190)]('Invalid\x20'+_0x426aec+_0xbdc7ad(0x1aa));let _0x272c8a;try{_0x272c8a=new URL(_0x26f232[_0xbdc7ad(0x19f)]());}catch{throw CliErrors[_0xbdc7ad(0x190)](_0xbdc7ad(0x19d)+_0x426aec+':\x20\x22'+_0x26f232+_0xbdc7ad(0x1d0));}if(_0x272c8a['protocol']!==_0xbdc7ad(0x1d2)||_0x272c8a['username']||_0x272c8a[_0xbdc7ad(0x19c)]||_0x272c8a[_0xbdc7ad(0x18e)]!=='/'&&_0x272c8a[_0xbdc7ad(0x18e)]!==''||_0x272c8a[_0xbdc7ad(0x1c8)]||_0x272c8a[_0xbdc7ad(0x18a)])throw CliErrors['validation'](_0xbdc7ad(0x19d)+_0x426aec+_0xbdc7ad(0x1c7),'For\x20internal\x20deployments,\x20terminate\x20TLS\x20at\x20the\x20ingress,\x20reverse\x20proxy,\x20or\x20load\x20balancer;\x20an\x20internal\x20CA\x20is\x20supported.');return _0x272c8a[_0xbdc7ad(0x183)];}export function normalizeRoutingDomainValue(_0x55800c,_0x31fca3){const _0x34025c=a218_0x2ce99b;if(typeof _0x31fca3===_0x34025c(0x1c3))return normalizeDomainOrigin(_0x55800c,_0x31fca3);if(!_0x31fca3||typeof _0x31fca3!==_0x34025c(0x1a6)||Array[_0x34025c(0x197)](_0x31fca3))throw CliErrors[_0x34025c(0x190)](_0x34025c(0x19d)+_0x55800c+_0x34025c(0x1a2));const _0x340e51=_0x31fca3,_0x4d80de=Object[_0x34025c(0x1ca)](_0x340e51),_0x1a4575=[_0x34025c(0x1cd),...ENTERPRISE_ROUTING_CONSUMERS],_0x2d8703=_0x4d80de[_0x34025c(0x19b)](_0x4ba08b=>!_0x1a4575[_0x34025c(0x1b5)](_0x4ba08b));if(_0x2d8703[_0x34025c(0x1bf)]>0x0)throw CliErrors[_0x34025c(0x190)](_0x34025c(0x182)+_0x55800c+'\x20consumer(s):\x20'+_0x2d8703[_0x34025c(0x1c0)](',\x20'),_0x34025c(0x196)+_0x1a4575[_0x34025c(0x1c0)](',\x20'));if(_0x4d80de[_0x34025c(0x1bf)]===0x0)throw CliErrors['validation'](_0x34025c(0x19d)+_0x55800c+_0x34025c(0x18f));const _0x45aad5={};for(const _0x1e26c2 of _0x4d80de){const _0x434e15=_0x1e26c2;_0x45aad5[_0x434e15]=normalizeDomainOrigin(_0x55800c,_0x340e51[_0x1e26c2]);}return _0x45aad5;}export function normalizeCdnBaseUrl(_0x75633a,_0x44edf7){const _0x5bdfa0=a218_0x2ce99b;if(typeof _0x44edf7!==_0x5bdfa0(0x1c3)||!_0x44edf7[_0x5bdfa0(0x19f)]())throw CliErrors[_0x5bdfa0(0x190)](_0x5bdfa0(0x1b4)+_0x75633a+_0x5bdfa0(0x1d1));const _0x2557f0=_0x44edf7['trim']()['replace'](/\/$/,'');let _0x7ca09e;try{_0x7ca09e=new URL(_0x2557f0);}catch{throw CliErrors[_0x5bdfa0(0x190)](_0x5bdfa0(0x1b4)+_0x75633a+_0x5bdfa0(0x1a4)+_0x44edf7+_0x5bdfa0(0x1d0));}if(_0x7ca09e[_0x5bdfa0(0x1d7)]!==_0x5bdfa0(0x1d2)||_0x7ca09e[_0x5bdfa0(0x1cb)]||_0x7ca09e[_0x5bdfa0(0x19c)]||_0x7ca09e[_0x5bdfa0(0x1c8)]||_0x7ca09e[_0x5bdfa0(0x18a)]||_0x7ca09e[_0x5bdfa0(0x1d5)]['replace'](/\/$/,'')!==_0x2557f0||_0x75633a===_0x5bdfa0(0x1ae)&&_0x7ca09e[_0x5bdfa0(0x183)]!==_0x2557f0)throw CliErrors[_0x5bdfa0(0x190)](_0x5bdfa0(0x1b4)+_0x75633a+':\x20expected\x20an\x20HTTPS\x20'+(_0x75633a==='lovrabet'?_0x5bdfa0(0x183):'base\x20URL')+_0x5bdfa0(0x1d4));return _0x2557f0;}export function resolveEnterpriseRoutingConfig(_0x1c9569){return resolveEnterpriseRoutingManifest(_0x1c9569)?.['domains'];}export function resolveEnterpriseRoutingManifest(_0x513a4d){const _0x424d05=a218_0x2ce99b;if(_0x513a4d===undefined)return undefined;if(!_0x513a4d||typeof _0x513a4d!==_0x424d05(0x1a6)||Array['isArray'](_0x513a4d))throw CliErrors[_0x424d05(0x190)]('Invalid\x20enterprise\x20routing\x20config:\x20expected\x20an\x20object.');return parseEnterpriseRoutingManifest(_0x513a4d);}export function resolveRoutingDomainValue(_0x1061ba,_0x473ded,_0x43482b){const _0x68ff3f=a218_0x2ce99b;if(typeof _0x473ded==='string')return _0x473ded;const _0x43216a=_0x473ded[_0x43482b]??_0x473ded['default'];if(!_0x43216a)throw CliErrors[_0x68ff3f(0x190)](_0x68ff3f(0x1c9)+_0x1061ba+'\x20does\x20not\x20provide\x20a\x20Domain\x20for\x20'+_0x43482b+_0x68ff3f(0x18d));return _0x43216a;}export function readDomainConfigInput(_0x239f2b){const _0x4c399e=a218_0x2ce99b,_0x2ea07d=isAbsolute(_0x239f2b)?_0x239f2b:resolve(process[_0x4c399e(0x1ba)](),_0x239f2b);if(!existsSync(_0x2ea07d))throw CliErrors['validation']('Domain\x20config\x20file\x20not\x20found:\x20'+_0x2ea07d);let _0x353a26;try{_0x353a26=JSON[_0x4c399e(0x1a9)](readFileSync(_0x2ea07d,_0x4c399e(0x199)));}catch{throw CliErrors['validation'](_0x4c399e(0x189)+_0x2ea07d);}if(!_0x353a26||typeof _0x353a26!==_0x4c399e(0x1a6)||Array[_0x4c399e(0x197)](_0x353a26))throw CliErrors[_0x4c399e(0x190)]('Invalid\x20domain\x20config:\x20expected\x20a\x20JSON\x20object.');const _0x1f7635=_0x353a26;if(_0x4c399e(0x1d7)in _0x1f7635)return parseEnterpriseRoutingManifest(_0x1f7635);const _0x5a947c=Object[_0x4c399e(0x1ca)](_0x1f7635)[_0x4c399e(0x19b)](_0x17de15=>!DOMAIN_CONFIG_FIELDS[_0x4c399e(0x1b5)](_0x17de15));if(_0x5a947c[_0x4c399e(0x1bf)]>0x0)throw CliErrors[_0x4c399e(0x190)](_0x4c399e(0x19e)+_0x5a947c['join'](',\x20'),_0x4c399e(0x1d8)+DOMAIN_CONFIG_FIELDS[_0x4c399e(0x1c0)](',\x20'));const _0x16c84={};for(const _0x561796 of DOMAIN_CONFIG_FIELDS){_0x1f7635[_0x561796]!==undefined&&(_0x16c84[_0x561796]=normalizeDomainOrigin(_0x561796,_0x1f7635[_0x561796]));}if(Object[_0x4c399e(0x1ca)](_0x16c84)[_0x4c399e(0x1bf)]===0x0)throw CliErrors[_0x4c399e(0x190)](_0x4c399e(0x18c));return{'mode':_0x4c399e(0x186),'domains':_0x16c84};}export function readDomainConfig(_0x2caae5){const _0x44b4f0=a218_0x2ce99b;return readDomainConfigInput(_0x2caae5)[_0x44b4f0(0x1bc)];}export function resolveDomainConfigInput(_0x148c02){const _0x398235=a218_0x2ce99b,_0x45df49=(_0x148c02[_0x398235(0x1b6)](_0x398235(0x1a7))||'')[_0x398235(0x19f)](),_0x2d336a=_0x45df49?readDomainConfigInput(_0x45df49):{'mode':_0x398235(0x186),'domains':{}},_0x57f720=DOMAIN_CONFIG_FIELDS[_0x398235(0x19b)](_0x1da634=>Boolean((_0x148c02[_0x398235(0x1b6)](DOMAIN_FLAGS[_0x1da634])||'')['trim']()));if(_0x2d336a[_0x398235(0x1c6)]===_0x398235(0x1ac)&&_0x57f720[_0x398235(0x1bf)]>0x0)throw CliErrors[_0x398235(0x190)](_0x398235(0x187),_0x398235(0x1a1));for(const _0x45e623 of DOMAIN_CONFIG_FIELDS){const _0x44e8e7=(_0x148c02[_0x398235(0x1b6)](DOMAIN_FLAGS[_0x45e623])||'')['trim']();if(_0x44e8e7)_0x2d336a[_0x398235(0x1bc)][_0x45e623]=normalizeDomainOrigin(_0x45e623,_0x44e8e7);}return _0x2d336a;}export function resolveDomainFlags(_0x14bd66){const _0x266ce5=a218_0x2ce99b;return resolveDomainConfigInput(_0x14bd66)[_0x266ce5(0x1bc)];}export function parseEnterpriseRoutingManifest(_0x12cd4e){const _0x584657=a218_0x2ce99b,_0x4848aa=Object['keys'](_0x12cd4e)[_0x584657(0x19b)](_0x1aa799=>!ENTERPRISE_ROUTING_TOP_LEVEL_FIELDS['includes'](_0x1aa799));if(_0x4848aa[_0x584657(0x1bf)]>0x0)throw CliErrors[_0x584657(0x190)]('Unsupported\x20enterprise\x20routing\x20field(s):\x20'+_0x4848aa['join'](',\x20'));if(_0x12cd4e[_0x584657(0x1d7)]!==ENTERPRISE_ROUTING_PROTOCOL||_0x12cd4e[_0x584657(0x1ad)]!==ENTERPRISE_ROUTING_KIND)throw CliErrors[_0x584657(0x190)](_0x584657(0x1a0)+ENTERPRISE_ROUTING_PROTOCOL+_0x584657(0x1b3)+ENTERPRISE_ROUTING_KIND+'\x22.');if(!_0x12cd4e['domains']||typeof _0x12cd4e[_0x584657(0x1bc)]!==_0x584657(0x1a6)||Array[_0x584657(0x197)](_0x12cd4e[_0x584657(0x1bc)]))throw CliErrors['validation'](_0x584657(0x1a3));if(!_0x12cd4e[_0x584657(0x1a8)]||typeof _0x12cd4e['cdn']!==_0x584657(0x1a6)||Array[_0x584657(0x197)](_0x12cd4e['cdn']))throw CliErrors[_0x584657(0x190)]('Invalid\x20enterprise\x20routing\x20manifest:\x20cdn\x20must\x20be\x20an\x20object.');const _0x7b3bec=_0x12cd4e[_0x584657(0x1bc)],_0x3d79aa=Object[_0x584657(0x1ca)](_0x7b3bec)['filter'](_0x37f60a=>!ENTERPRISE_ROUTING_DOMAIN_FIELDS['includes'](_0x37f60a));if(_0x3d79aa[_0x584657(0x1bf)]>0x0)throw CliErrors['validation'](_0x584657(0x192)+_0x3d79aa[_0x584657(0x1c0)](',\x20'),_0x584657(0x1d8)+ENTERPRISE_ROUTING_DOMAIN_FIELDS[_0x584657(0x1c0)](',\x20'));const _0x512564=REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS[_0x584657(0x19b)](_0xc2ac3f=>_0x7b3bec[_0xc2ac3f]===undefined);if(_0x512564['length']>0x0)throw CliErrors[_0x584657(0x190)](_0x584657(0x18b)+_0x512564[_0x584657(0x1c0)](',\x20'));if(_0x7b3bec['localDomain']===undefined!==(_0x7b3bec['certificateDomain']===undefined))throw CliErrors[_0x584657(0x190)](_0x584657(0x1cc));const _0x3bcede=_0x12cd4e['cdn'],_0x3a9e82=Object['keys'](_0x3bcede)['filter'](_0x1b3ff2=>!ENTERPRISE_ROUTING_CDN_FIELDS[_0x584657(0x1b5)](_0x1b3ff2));if(_0x3a9e82[_0x584657(0x1bf)]>0x0)throw CliErrors[_0x584657(0x190)](_0x584657(0x1b1)+_0x3a9e82[_0x584657(0x1c0)](',\x20'),_0x584657(0x1d8)+ENTERPRISE_ROUTING_CDN_FIELDS[_0x584657(0x1c0)](',\x20'));const _0x58eac2=REQUIRED_ENTERPRISE_ROUTING_CDN_FIELDS[_0x584657(0x19b)](_0x2ed199=>_0x3bcede[_0x2ed199]===undefined);if(_0x58eac2[_0x584657(0x1bf)]>0x0)throw CliErrors['validation']('Enterprise\x20routing\x20manifest\x20is\x20missing\x20required\x20CDN\x20field(s):\x20'+_0x58eac2[_0x584657(0x1c0)](',\x20'));const _0x28739b={};for(const _0x2de6c2 of ENTERPRISE_ROUTING_CDN_FIELDS){_0x28739b[_0x2de6c2]=normalizeCdnBaseUrl(_0x2de6c2,_0x3bcede[_0x2de6c2]);}const _0x255936={},_0x381704={};for(const _0x166807 of ENTERPRISE_ROUTING_DOMAIN_FIELDS){const _0x3aa46e=_0x7b3bec[_0x166807];if(_0x3aa46e===undefined)continue;const _0x3fced1=normalizeRoutingDomainValue(_0x166807,_0x3aa46e);_0x255936[_0x166807]=_0x3fced1;const _0x1d38e9=ENTERPRISE_TO_LOCAL_FIELD[_0x166807];_0x1d38e9&&(_0x381704[_0x1d38e9]=resolveRoutingDomainValue(_0x166807,_0x3fced1,ROUTING_CONSUMER));}return{'mode':_0x584657(0x1ac),'domains':_0x381704,'manifestDomains':_0x255936,'cdn':_0x28739b};}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { LovrabetRegion } from "../constant/region.js";
|
|
2
|
+
export declare const PROJECT_DOMAIN_ROUTING_FILE_NAME = "rabetbase.domain-routing.json";
|
|
3
|
+
export declare const PROJECT_DOMAIN_ROUTING_PROTOCOL = "lovrabet-project-domain-routing/v1";
|
|
4
|
+
export interface ProjectDomainRoutingManifest {
|
|
5
|
+
protocol: typeof PROJECT_DOMAIN_ROUTING_PROTOCOL;
|
|
6
|
+
mode: "official" | "independent";
|
|
7
|
+
region: LovrabetRegion | null;
|
|
8
|
+
domains: {
|
|
9
|
+
user: string;
|
|
10
|
+
app: string;
|
|
11
|
+
runtime: string;
|
|
12
|
+
};
|
|
13
|
+
cdn: {
|
|
14
|
+
libraries: string;
|
|
15
|
+
lovrabet: string;
|
|
16
|
+
};
|
|
17
|
+
local: {
|
|
18
|
+
origin: string;
|
|
19
|
+
certificateUrl?: string;
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
/** Resolves only public, final Domain routing facts for generated browser projects. */
|
|
23
|
+
export declare function getProjectDomainRoutingManifest(): ProjectDomainRoutingManifest;
|
|
24
|
+
export declare function writeProjectDomainRoutingManifest(projectRoot: string): {
|
|
25
|
+
path: string;
|
|
26
|
+
manifest: ProjectDomainRoutingManifest;
|
|
27
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function a219_0x5370(_0x27abf2,_0x7d57b5){_0x27abf2=_0x27abf2-0x153;const _0x19d885=a219_0x19d8();let _0x53707f=_0x19d885[_0x27abf2];return _0x53707f;}const a219_0x2dd59d=a219_0x5370;(function(_0x15506f,_0x362e53){const _0x235475=a219_0x5370,_0x1056bf=_0x15506f();while(!![]){try{const _0x17b7e6=parseInt(_0x235475(0x15b))/0x1*(parseInt(_0x235475(0x168))/0x2)+parseInt(_0x235475(0x169))/0x3*(-parseInt(_0x235475(0x162))/0x4)+-parseInt(_0x235475(0x15f))/0x5*(parseInt(_0x235475(0x15c))/0x6)+parseInt(_0x235475(0x156))/0x7*(-parseInt(_0x235475(0x160))/0x8)+-parseInt(_0x235475(0x155))/0x9+parseInt(_0x235475(0x165))/0xa+parseInt(_0x235475(0x163))/0xb;if(_0x17b7e6===_0x362e53)break;else _0x1056bf['push'](_0x1056bf['shift']());}catch(_0x149049){_0x1056bf['push'](_0x1056bf['shift']());}}}(a219_0x19d8,0x4050c));import{renameSync,unlinkSync,writeFileSync}from'node:fs';import{join}from'node:path';import{getActiveRegion,getActiveCdn,getAppDomain,getCertificateDomain,getLocalDomain,getRuntimeDomain,getUserDomain,isIndependentDeployment}from'../constant/domain.js';function a219_0x19d8(){const _0x584880=['lovrabet-project-domain-routing/v1','origin','410knYJpB','18jQggHo','now','Independent\x20deployment\x20routing\x20requires\x20localDomain\x20and\x20certificateDomain\x20together.','/cert/lovrabet-dev.json','3549420gGxLwK','7DIaQfx','rabetbase.domain-routing.json','utf8','local','stringify','2434ztmZZw','17022dVsPgb','independent','.tmp','95cdFwGx','585008mxeVHA','lovrabet','130916kqFMef','2941851aVEqgt','official','2148080sEVHFW'];a219_0x19d8=function(){return _0x584880;};return a219_0x19d8();}import{getOfficialRoutingProfile}from'../constant/routing-profile.js';export const PROJECT_DOMAIN_ROUTING_FILE_NAME=a219_0x2dd59d(0x157);export const PROJECT_DOMAIN_ROUTING_PROTOCOL=a219_0x2dd59d(0x166);export function getProjectDomainRoutingManifest(){const _0x27de68=a219_0x2dd59d,_0xc3687f=getActiveRegion(),_0x5d77b1=isIndependentDeployment(),_0x5f4201=getOfficialRoutingProfile(_0xc3687f),_0x11e738=getLocalDomain(),_0x26ad09=getCertificateDomain(),_0x3b2d46=getActiveCdn();if(!!_0x11e738!==!!_0x26ad09)throw new Error(_0x27de68(0x153));return{'protocol':PROJECT_DOMAIN_ROUTING_PROTOCOL,'mode':_0x5d77b1?_0x27de68(0x15d):_0x27de68(0x164),'region':_0x5d77b1?null:_0xc3687f,'domains':{'user':getUserDomain(),'app':getAppDomain(),'runtime':getRuntimeDomain()},'cdn':_0x3b2d46,'local':_0x11e738&&_0x26ad09?{'origin':_0x11e738,'certificateUrl':_0x26ad09+_0x27de68(0x154)}:_0x5d77b1?{'origin':'http://localhost'}:{'origin':_0x5f4201[_0x27de68(0x159)][_0x27de68(0x167)],'certificateUrl':_0x3b2d46[_0x27de68(0x161)]+_0x27de68(0x154)}};}export function writeProjectDomainRoutingManifest(_0x954c6){const _0xf22a09=a219_0x2dd59d,_0x110bae=getProjectDomainRoutingManifest(),_0xb7b412=join(_0x954c6,PROJECT_DOMAIN_ROUTING_FILE_NAME),_0x5aaa09=_0xb7b412+'.'+process['pid']+'.'+Date[_0xf22a09(0x16a)]()+_0xf22a09(0x15e);try{writeFileSync(_0x5aaa09,JSON[_0xf22a09(0x15a)](_0x110bae,null,0x2)+'\x0a',{'encoding':_0xf22a09(0x158),'mode':0x1a4}),renameSync(_0x5aaa09,_0xb7b412);}catch(_0x4bddd4){try{unlinkSync(_0x5aaa09);}catch{}throw _0x4bddd4;}return{'path':_0xb7b412,'manifest':_0x110bae};}
|
package/lib/config/schema.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { FlagDef } from "../framework/types.js";
|
|
2
2
|
export { DEFAULT_CONFIG_VALUES } from "../constant/defaults.js";
|
|
3
|
-
export declare const PROJECT_CREATE_INHERITABLE_KEYS: readonly ["cookie", "accessKey", "locale", "format", "riskLevel", "region", "userDomain", "apiDomain", "runtimeDomain", "skillDomain", "kbDomain", "
|
|
3
|
+
export declare const PROJECT_CREATE_INHERITABLE_KEYS: readonly ["cookie", "accessKey", "locale", "format", "riskLevel", "region", "routing", "userDomain", "apiDomain", "runtimeDomain", "skillDomain", "kbDomain", "appDomain", "localDomain", "certificateDomain"];
|
|
4
4
|
export interface ConfigMetadataFields {
|
|
5
5
|
version?: string;
|
|
6
6
|
createdAt?: string;
|
package/lib/config/schema.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a220_0x1c8a35=a220_0x4f87;(function(_0x4eda37,_0x2c7376){const _0x2aedea=a220_0x4f87,_0x552bda=_0x4eda37();while(!![]){try{const _0xd6a637=parseInt(_0x2aedea(0x210))/0x1+-parseInt(_0x2aedea(0x20e))/0x2+parseInt(_0x2aedea(0x200))/0x3*(-parseInt(_0x2aedea(0x1f4))/0x4)+parseInt(_0x2aedea(0x207))/0x5+parseInt(_0x2aedea(0x1ef))/0x6*(-parseInt(_0x2aedea(0x1ee))/0x7)+parseInt(_0x2aedea(0x213))/0x8+parseInt(_0x2aedea(0x214))/0x9;if(_0xd6a637===_0x2c7376)break;else _0x552bda['push'](_0x552bda['shift']());}catch(_0x4cd010){_0x552bda['push'](_0x552bda['shift']());}}}(a220_0xc06b,0x6296c));function a220_0x4f87(_0x5e2088,_0x379c6e){_0x5e2088=_0x5e2088-0x1e8;const _0xc06b0=a220_0xc06b();let _0x4f87c8=_0xc06b0[_0x5e2088];return _0x4f87c8;}import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.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{ENABLED_LOVRABET_REGION_VALUES}from'../constant/region.js';import{collectDeploymentSyncProfile,getDeploymentSyncProfileFlagDefs}from'../config/deployment-sync.js';export{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';export const PROJECT_CREATE_INHERITABLE_KEYS=[a220_0x1c8a35(0x20f),a220_0x1c8a35(0x208),'locale',a220_0x1c8a35(0x212),a220_0x1c8a35(0x1fa),a220_0x1c8a35(0x206),'routing','userDomain',a220_0x1c8a35(0x1fd),a220_0x1c8a35(0x216),'skillDomain','kbDomain',a220_0x1c8a35(0x201),a220_0x1c8a35(0x1ec),a220_0x1c8a35(0x1ff)];export const TOP_LEVEL_CONFIG_KEYS=new Set([a220_0x1c8a35(0x1e9),'env',a220_0x1c8a35(0x202),a220_0x1c8a35(0x212),a220_0x1c8a35(0x20f),a220_0x1c8a35(0x208),a220_0x1c8a35(0x205),a220_0x1c8a35(0x206),a220_0x1c8a35(0x215),a220_0x1c8a35(0x1fd),a220_0x1c8a35(0x216),'skillDomain','kbDomain','appDomain','localDomain',a220_0x1c8a35(0x1ff)]);export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES],'region':[...ENABLED_LOVRABET_REGION_VALUES]};function a220_0xc06b(){const _0x3fcafc=['inherit','certificateDomain','72QgjavH','appDomain','locale','Config\x20key\x20(','filter','apiDir','region','1765775mtPfqy','accessKey','apps','keys','Default\x20page\x20size','entries','has','473224FlUujY','cookie','298225EQIpAT','defaultApp','format','3825760nubYmr','4462227uSJywI','userDomain','runtimeDomain','map','join','appcode','App\x20locale\x20(not\x20CLI\x20language;\x20reserved\x20for\x20later\x20app\x20use)','object','localDomain','pageSize','596435HEXQlf','42cWcPUe','zh-CN','length','env','string','64756GNWYyY','en-US','defaultFormat','number','deploymentSync','Auth\x20cookie','riskLevel','app','Access\x20key','apiDomain'];a220_0xc06b=function(){return _0x3fcafc;};return a220_0xc06b();}export function formatConfigKeyList(_0x2af389){const _0x34b3d7=a220_0x1c8a35;return[..._0x2af389][_0x34b3d7(0x1e8)](',\x20');}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function isTopLevelConfigKey(_0x42c087){const _0xe2577f=a220_0x1c8a35;return TOP_LEVEL_CONFIG_KEYS[_0xe2577f(0x20d)](_0x42c087);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x5ae079=a220_0x1c8a35;return _0x5ae079(0x203)+getTopLevelConfigKeySummary()+')';}export const APP_PROFILE_FLAG_KEY_MAP={'env':a220_0x1c8a35(0x1f2),'apiDir':a220_0x1c8a35(0x205),'cookie':a220_0x1c8a35(0x20f),'accessKey':a220_0x1c8a35(0x208),'defaultFormat':a220_0x1c8a35(0x212),'pageSize':'pageSize','riskLevel':a220_0x1c8a35(0x1fa),'locale':a220_0x1c8a35(0x202)};export function getAppProfileFlagDefs(){const _0x1509d8=a220_0x1c8a35;return[{'name':_0x1509d8(0x1f2),'type':_0x1509d8(0x1f3),'description':'Target\x20environment','enum':[...RABETBASE_ENV_VALUES]},{'name':'apiDir','type':'string','description':'API\x20directory\x20path'},{'name':_0x1509d8(0x20f),'type':_0x1509d8(0x1f3),'description':_0x1509d8(0x1f9),'hidden':!![]},{'name':_0x1509d8(0x208),'type':_0x1509d8(0x1f3),'description':_0x1509d8(0x1fc),'hidden':!![]},{'name':_0x1509d8(0x1f6),'type':_0x1509d8(0x1f3),'description':'Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':_0x1509d8(0x1ed),'type':_0x1509d8(0x1f7),'description':_0x1509d8(0x20b)},{'name':_0x1509d8(0x1fa),'type':_0x1509d8(0x1f3),'description':'Risk\x20level','enum':[...RISK_LEVEL_VALUES]},{'name':'locale','type':_0x1509d8(0x1f3),'description':_0x1509d8(0x1ea)},...getDeploymentSyncProfileFlagDefs()];}export function collectAppProfileOverrides(_0xcc55d9){const _0x5e48ac=a220_0x1c8a35,_0x21a4d2={};for(const [_0x10fba2,_0x2f3205]of Object[_0x5e48ac(0x20c)](APP_PROFILE_FLAG_KEY_MAP)){const _0x11b749=_0xcc55d9(_0x10fba2);if(!_0x11b749)continue;_0x21a4d2[_0x2f3205]=_0x2f3205===_0x5e48ac(0x1ed)?Number(_0x11b749):_0x11b749;}const _0x383cbc=collectDeploymentSyncProfile(_0xcc55d9);if(_0x383cbc)_0x21a4d2[_0x5e48ac(0x1f8)]=_0x383cbc;return _0x21a4d2;}export function buildAppProfileListFields(_0x3bd86f){const _0x277e0c=a220_0x1c8a35;return{'env':_0x3bd86f[_0x277e0c(0x1f2)]??null,'apiDir':_0x3bd86f[_0x277e0c(0x205)]??null,'hasCookie':!!_0x3bd86f[_0x277e0c(0x20f)],'hasAccessKey':!!_0x3bd86f[_0x277e0c(0x208)],'format':_0x3bd86f['format']??null,'pageSize':_0x3bd86f[_0x277e0c(0x1ed)]??null,'riskLevel':_0x3bd86f['riskLevel']??null,'locale':_0x3bd86f[_0x277e0c(0x202)]??null,'deploymentSync':_0x3bd86f[_0x277e0c(0x1f8)]??null};}export function buildAppDoctorFields(_0x4cdc04,_0xfbde20){const _0x75ca7=a220_0x1c8a35;return{'env':{'value':_0x4cdc04[_0x75ca7(0x1f2)]||_0xfbde20[_0x75ca7(0x1f2)],'source':_0x4cdc04[_0x75ca7(0x1f2)]?'app':_0x75ca7(0x1fe)},'apiDir':{'value':_0x4cdc04['apiDir']||_0xfbde20[_0x75ca7(0x205)],'source':_0x4cdc04[_0x75ca7(0x205)]?'app':_0x75ca7(0x1fe)},'cookie':{'value':_0x4cdc04[_0x75ca7(0x20f)]||_0xfbde20[_0x75ca7(0x20f)],'source':_0x4cdc04[_0x75ca7(0x20f)]?_0x75ca7(0x1fb):_0x75ca7(0x1fe)},'accessKey':{'value':_0x4cdc04[_0x75ca7(0x208)]||_0xfbde20[_0x75ca7(0x208)],'source':_0x4cdc04[_0x75ca7(0x208)]?'app':_0x75ca7(0x1fe)}};}export function buildCanonicalAppConfig(_0x181e59,_0x505bfb){const _0x57af18=a220_0x1c8a35,_0x565247=_0x181e59[_0x57af18(0x217)](_0x4d86d0=>String(_0x4d86d0||'')['trim']())[_0x57af18(0x204)](Boolean);if(_0x565247[_0x57af18(0x1f1)]===0x0)return{};const _0x569d87={};for(const _0x425f7c of _0x565247){_0x569d87[_0x425f7c]=_0x505bfb?{'appcode':_0x425f7c,'env':_0x505bfb}:{'appcode':_0x425f7c};}return _0x565247[_0x57af18(0x1f1)]>0x1?{'apps':_0x569d87,'defaultApp':_0x565247[0x0]}:{'apps':_0x569d87};}export function normalizeStoredDefaultApp(_0x2a660e,_0x3f77c1){const _0x571aed=a220_0x1c8a35,_0x5f1e92=_0x2a660e[_0x571aed(0x209)]&&typeof _0x2a660e[_0x571aed(0x209)]===_0x571aed(0x1eb)?_0x2a660e[_0x571aed(0x209)]:{},_0xfdaf5d=Object[_0x571aed(0x20a)](_0x5f1e92);if(_0xfdaf5d[_0x571aed(0x1f1)]<=0x1)return delete _0x2a660e['defaultApp'],undefined;const _0x50f723=typeof _0x2a660e['defaultApp']===_0x571aed(0x1f3)&&_0x5f1e92[_0x2a660e[_0x571aed(0x211)]]?_0x2a660e[_0x571aed(0x211)]:undefined,_0x413a2f=_0x3f77c1&&_0x5f1e92[_0x3f77c1]?_0x3f77c1:_0x50f723;if(_0x413a2f)return _0x2a660e[_0x571aed(0x211)]=_0x413a2f,_0x413a2f;return delete _0x2a660e[_0x571aed(0x211)],undefined;}export function buildCanonicalProjectConfig(_0xfa5620,_0x351b54){const _0x17eac1=a220_0x1c8a35,{appCodes:appCodes=[],env:_0x1a823c,metadata:_0x3dfed8}=_0x351b54,_0x370072={..._0xfa5620,..._0x3dfed8||{}};delete _0x370072[_0x17eac1(0x1e9)],delete _0x370072[_0x17eac1(0x1fb)];if(_0x1a823c)_0x370072['env']=_0x1a823c;else!_0x370072[_0x17eac1(0x1f2)]&&(_0x370072[_0x17eac1(0x1f2)]=DEFAULT_CONFIG_VALUES[_0x17eac1(0x1f2)]);const _0x4006cd=buildCanonicalAppConfig(appCodes,_0x370072[_0x17eac1(0x1f2)]);if(Object[_0x17eac1(0x20a)](_0x4006cd)['length']>0x0){_0x370072[_0x17eac1(0x209)]=_0x4006cd[_0x17eac1(0x209)];if(_0x4006cd[_0x17eac1(0x211)])_0x370072[_0x17eac1(0x211)]=_0x4006cd[_0x17eac1(0x211)];else delete _0x370072['defaultApp'];}return _0x370072;}const LOCALE_MAP={'zh':a220_0x1c8a35(0x1f0),'zh-cn':'zh-CN','zh_cn':'zh-CN','en':'en-US','en-us':'en-US','en_us':a220_0x1c8a35(0x1f5)};export function normalizeLocale(_0x243c1c){if(!_0x243c1c)return null;return LOCALE_MAP[_0x243c1c['toLowerCase']()]??null;}
|
package/lib/constant/cdn.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a221_0x4206c1=a221_0x54d8;function a221_0x54d8(_0x4707d2,_0x74f889){_0x4707d2=_0x4707d2-0x190;const _0x320041=a221_0x3200();let _0x54d8e3=_0x320041[_0x4707d2];return _0x54d8e3;}(function(_0x3fd446,_0xe0c9c6){const _0x191af4=a221_0x54d8,_0x4228fd=_0x3fd446();while(!![]){try{const _0x3f5e76=parseInt(_0x191af4(0x197))/0x1*(-parseInt(_0x191af4(0x191))/0x2)+parseInt(_0x191af4(0x199))/0x3+parseInt(_0x191af4(0x192))/0x4+-parseInt(_0x191af4(0x190))/0x5+-parseInt(_0x191af4(0x196))/0x6*(parseInt(_0x191af4(0x195))/0x7)+parseInt(_0x191af4(0x193))/0x8+parseInt(_0x191af4(0x198))/0x9;if(_0x3f5e76===_0xe0c9c6)break;else _0x4228fd['push'](_0x4228fd['shift']());}catch(_0x2d770c){_0x4228fd['push'](_0x4228fd['shift']());}}}(a221_0x3200,0xea555));function a221_0x3200(){const _0x198cd1=['927651GigsEO','30302901blwjsi','2845092jLyNkD','8136110tSrscJ','4oBcHJk','496576nKJHHx','9118208EejAsr','https://g.lovrabet.com/dist/rabetbase-cli','3010LaXBIi','15864xYetmY'];a221_0x3200=function(){return _0x198cd1;};return a221_0x3200();}export const RABETBASE_CDN_BASE_URL=a221_0x4206c1(0x194);export const CLI_VERSION_POLICY_URL=RABETBASE_CDN_BASE_URL+'/config/index.json';export const PROJECT_TEMPLATE_ASSET_BASE_URL=RABETBASE_CDN_BASE_URL+'/templates/projects';
|
package/lib/constant/cli.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a216_0x2143f3=a216_0x5b5d;(function(_0x31b8eb,_0x5b56e8){const _0x212bbc=a216_0x5b5d,_0x5ee4d1=_0x31b8eb();while(!![]){try{const _0x13506a=parseInt(_0x212bbc(0xfe))/0x1*(parseInt(_0x212bbc(0xe5))/0x2)+-parseInt(_0x212bbc(0x164))/0x3+parseInt(_0x212bbc(0x121))/0x4+-parseInt(_0x212bbc(0x14b))/0x5*(parseInt(_0x212bbc(0x12a))/0x6)+-parseInt(_0x212bbc(0xde))/0x7*(-parseInt(_0x212bbc(0x155))/0x8)+-parseInt(_0x212bbc(0x106))/0x9+parseInt(_0x212bbc(0xe2))/0xa*(parseInt(_0x212bbc(0x102))/0xb);if(_0x13506a===_0x5b56e8)break;else _0x5ee4d1['push'](_0x5ee4d1['shift']());}catch(_0x1b977c){_0x5ee4d1['push'](_0x5ee4d1['shift']());}}}(a216_0x22ef,0x7e17b));function a216_0x22ef(){const _0xcbf66=['target','description-file','dryRun','7CLrZdQ','Maximum\x20search\x20hits','targetEnv','appcode','670vwGgTH','Watch\x20mode','sql-name','2JKRXVz','Schemas','operation','sqlcode','global','expectPath','functionNode','Description\x20file','env','Tags','expected-count','boolean','zh-CN\x20|\x20en-US','Confirm\x20destructive\x20action','skipImports','output','dry-run','page','confirm','JSON\x20params','Asynchronous\x20task\x20ID','App\x20locale\x20(workspace\x20pass-through;\x20not\x20CLI\x20language)','topk','sqlname','target-env','473461qLsDNV','Force\x20non-interactive\x20mode\x20(CI)','dbId','title','5093ObXTQm','Use\x20global\x20config\x20scope','value','DB\x20ID','8682633AfZjuc','parentId','Menu\x20sort\x20value','map','SQL\x20string','pagesize','Comma-separated\x20metadata\x20codes','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','Operation\x20type','stdin','<expr>','yes','query','Select\x20app\x20profile\x20by\x20name','nonInteractive','code','Target\x20connection\x20environment','operation-type','remote','help','keyword','Description','Record\x20ID','format','Use\x20project\x20config\x20scope','production\x20|\x20daily','<name>','3402200CeYMwz','non-interactive','descriptionFile','app','Force\x20overwrite','datasetcode','Config\x20key','Rabetbase\x20CLI','Read\x20value\x20from\x20environment\x20variable','1902nIyXPP','Menu\x20label','task-id','expectParentId','Config\x20value','Show\x20help','expect-path','Title','menuIds','rabetbase','expect-parent-id','all','Page\x20number','@lovrabet/rabetbase-cli','watch','description','locale','sql','enable-bff-save','Alias\x20for\x20--non-interactive','fromEnv','force','sort','project','Preview\x20operation\x20without\x20executing','meowKey','verbose','taskId','type','File\x20path','Enable\x20Backend\x20Function\x20save','Name','Expected\x20current\x20parent\x20menu\x20id','13385qdNauE','dbid','Reveal\x20sensitive\x20value','Skip\x20import\x20generation','Use\x20remote','Environment','SQL\x20code','label','file','expectedCount','8026328MTlbTt','codes','key','direct','expected-children-count','reveal','json\x20|\x20pretty\x20|\x20compress','tags','Keyword\x20filter','operationType','menu-ids','params','Dataset\x20code','Skip\x20confirmation\x20for\x20high-risk\x20writes','expectedChildrenCount','85506WeMkQY','schemas','Apply\x20to\x20all','string','Page\x20size','parent-id','name','Search\x20query','SQL\x20name','sqlName'];a216_0x22ef=function(){return _0xcbf66;};return a216_0x22ef();}export const CLI_BIN_NAME=a216_0x2143f3(0x133);export const CLI_DISPLAY_NAME=a216_0x2143f3(0x128);export const NPM_PACKAGE_NAME=a216_0x2143f3(0x137);export const GLOBAL_FLAGS=[{'name':a216_0x2143f3(0xe1),'meowKey':a216_0x2143f3(0xe1),'type':a216_0x2143f3(0x167),'description':'Override\x20appcode','hint':'<code>'},{'name':a216_0x2143f3(0x124),'meowKey':'app','type':a216_0x2143f3(0x167),'description':a216_0x2143f3(0x113),'hint':a216_0x2143f3(0x120)},{'name':a216_0x2143f3(0xed),'meowKey':'env','type':a216_0x2143f3(0x167),'description':a216_0x2143f3(0x150),'hint':a216_0x2143f3(0x11f)},{'name':'format','meowKey':a216_0x2143f3(0x11d),'type':'string','description':'Output\x20format','hint':a216_0x2143f3(0x15b)},{'name':'jq','meowKey':'jq','type':a216_0x2143f3(0x167),'description':a216_0x2143f3(0x10d),'hint':a216_0x2143f3(0x110)},{'name':a216_0x2143f3(0xf5),'meowKey':a216_0x2143f3(0xdd),'type':a216_0x2143f3(0xf0),'description':a216_0x2143f3(0x142)},{'name':a216_0x2143f3(0x111),'meowKey':a216_0x2143f3(0x111),'type':a216_0x2143f3(0xf0),'description':a216_0x2143f3(0x162)},{'name':a216_0x2143f3(0x122),'meowKey':a216_0x2143f3(0x114),'type':a216_0x2143f3(0xf0),'description':a216_0x2143f3(0xff)},{'name':a216_0x2143f3(0xe9),'meowKey':a216_0x2143f3(0xe9),'type':a216_0x2143f3(0xf0),'description':a216_0x2143f3(0x103)},{'name':a216_0x2143f3(0x141),'meowKey':'project','type':a216_0x2143f3(0xf0),'description':a216_0x2143f3(0x11e)},{'name':'ci','meowKey':'ci','type':a216_0x2143f3(0xf0),'description':a216_0x2143f3(0x13d),'hidden':!![]},{'name':a216_0x2143f3(0x119),'meowKey':a216_0x2143f3(0x119),'type':a216_0x2143f3(0xf0),'description':a216_0x2143f3(0x12f)},{'name':a216_0x2143f3(0x13a),'meowKey':a216_0x2143f3(0x13a),'type':'string','description':a216_0x2143f3(0xfa),'hidden':!![],'hint':a216_0x2143f3(0xf1)},{'name':a216_0x2143f3(0x16a),'meowKey':'name','type':a216_0x2143f3(0x167),'description':a216_0x2143f3(0x149),'hidden':!![]},{'name':'title','meowKey':a216_0x2143f3(0x101),'type':a216_0x2143f3(0x167),'description':a216_0x2143f3(0x131),'hidden':!![]},{'name':a216_0x2143f3(0x112),'meowKey':a216_0x2143f3(0x112),'type':a216_0x2143f3(0x167),'description':a216_0x2143f3(0xd8),'hidden':!![]},{'name':a216_0x2143f3(0xfb),'meowKey':a216_0x2143f3(0xfb),'type':a216_0x2143f3(0x167),'description':a216_0x2143f3(0xdf),'hidden':!![]},{'name':'clear','meowKey':'clear','type':a216_0x2143f3(0xf0),'description':'Clear','hidden':!![]},{'name':a216_0x2143f3(0x138),'meowKey':a216_0x2143f3(0x138),'type':'boolean','description':a216_0x2143f3(0xe3),'hidden':!![]},{'name':a216_0x2143f3(0xf4),'meowKey':a216_0x2143f3(0xf4),'type':a216_0x2143f3(0x167),'description':'Output\x20path','hidden':!![]},{'name':a216_0x2143f3(0x160),'meowKey':a216_0x2143f3(0x160),'type':a216_0x2143f3(0x167),'description':a216_0x2143f3(0xf8),'hidden':!![]},{'name':a216_0x2143f3(0x126),'meowKey':a216_0x2143f3(0x126),'type':a216_0x2143f3(0x167),'description':a216_0x2143f3(0x161),'hidden':!![]},{'name':a216_0x2143f3(0x135),'meowKey':'all','type':a216_0x2143f3(0xf0),'description':a216_0x2143f3(0x166),'hidden':!![]},{'name':a216_0x2143f3(0x13c),'meowKey':'enableBffSave','type':a216_0x2143f3(0xf0),'description':a216_0x2143f3(0x148),'hidden':!![]},{'name':'id','meowKey':'id','type':a216_0x2143f3(0x167),'description':a216_0x2143f3(0x11c),'hidden':!![]},{'name':a216_0x2143f3(0x146),'meowKey':'type','type':a216_0x2143f3(0x167),'description':'Type\x20filter','hidden':!![]},{'name':a216_0x2143f3(0x153),'meowKey':a216_0x2143f3(0x153),'type':a216_0x2143f3(0x167),'description':a216_0x2143f3(0x147),'hidden':!![]},{'name':a216_0x2143f3(0xe8),'meowKey':a216_0x2143f3(0xe8),'type':a216_0x2143f3(0x167),'description':a216_0x2143f3(0x151),'hidden':!![]},{'name':a216_0x2143f3(0xe4),'meowKey':a216_0x2143f3(0xda),'type':a216_0x2143f3(0x167),'description':a216_0x2143f3(0xd9),'hidden':!![]},{'name':a216_0x2143f3(0xfc),'meowKey':a216_0x2143f3(0xfc),'type':'string','description':a216_0x2143f3(0xd9),'hidden':!![]},{'name':'db-id','meowKey':a216_0x2143f3(0x100),'type':a216_0x2143f3(0x167),'description':a216_0x2143f3(0x105),'hidden':!![]},{'name':a216_0x2143f3(0x14c),'meowKey':a216_0x2143f3(0x14c),'type':'string','description':'DB\x20ID','hidden':!![]},{'name':a216_0x2143f3(0x139),'meowKey':a216_0x2143f3(0x139),'type':a216_0x2143f3(0x167),'description':a216_0x2143f3(0x11b),'hidden':!![]},{'name':a216_0x2143f3(0xdc),'meowKey':a216_0x2143f3(0x123),'type':a216_0x2143f3(0x167),'description':a216_0x2143f3(0xec),'hidden':!![]},{'name':a216_0x2143f3(0xf6),'meowKey':a216_0x2143f3(0xf6),'type':a216_0x2143f3(0x167),'description':a216_0x2143f3(0x136),'hidden':!![]},{'name':a216_0x2143f3(0x10b),'meowKey':a216_0x2143f3(0x10b),'type':a216_0x2143f3(0x167),'description':a216_0x2143f3(0x168),'hidden':!![]},{'name':'keyword','meowKey':a216_0x2143f3(0x11a),'type':a216_0x2143f3(0x167),'description':a216_0x2143f3(0x15d),'hidden':!![]},{'name':a216_0x2143f3(0x115),'meowKey':a216_0x2143f3(0x115),'type':a216_0x2143f3(0x167),'description':'Code\x20filter','hidden':!![]},{'name':a216_0x2143f3(0x13b),'meowKey':a216_0x2143f3(0x13b),'type':a216_0x2143f3(0x167),'description':a216_0x2143f3(0x10a),'hidden':!![]},{'name':a216_0x2143f3(0x165),'meowKey':a216_0x2143f3(0x165),'type':a216_0x2143f3(0x167),'description':a216_0x2143f3(0xe6),'hidden':!![]},{'name':a216_0x2143f3(0xe7),'meowKey':'operation','type':'string','description':'Operation\x20type','hidden':!![]},{'name':a216_0x2143f3(0xdb),'meowKey':'target','type':'string','description':'Target\x20path','hidden':!![]},{'name':'skip-imports','meowKey':a216_0x2143f3(0xf3),'type':a216_0x2143f3(0xf0),'description':a216_0x2143f3(0x14e),'hidden':!![]},{'name':'key','meowKey':a216_0x2143f3(0x157),'type':a216_0x2143f3(0x167),'description':a216_0x2143f3(0x127),'hidden':!![]},{'name':'value','meowKey':a216_0x2143f3(0x104),'type':a216_0x2143f3(0x167),'description':a216_0x2143f3(0x12e),'hidden':!![]},{'name':a216_0x2143f3(0x15c),'meowKey':a216_0x2143f3(0x15c),'type':a216_0x2143f3(0x167),'description':a216_0x2143f3(0xee),'hidden':!![]},{'name':a216_0x2143f3(0x10f),'meowKey':a216_0x2143f3(0x10f),'type':a216_0x2143f3(0xf0),'description':'Read\x20value\x20from\x20stdin','hidden':!![]},{'name':'from-env','meowKey':a216_0x2143f3(0x13e),'type':a216_0x2143f3(0x167),'description':a216_0x2143f3(0x129),'hidden':!![]},{'name':a216_0x2143f3(0x15a),'meowKey':'reveal','type':a216_0x2143f3(0xf0),'description':a216_0x2143f3(0x14d),'hidden':!![]},{'name':a216_0x2143f3(0x13f),'meowKey':a216_0x2143f3(0x13f),'type':'boolean','description':a216_0x2143f3(0x125),'hidden':!![]},{'name':a216_0x2143f3(0xf7),'meowKey':a216_0x2143f3(0xf7),'type':a216_0x2143f3(0xf0),'description':a216_0x2143f3(0xf2),'hidden':!![]},{'name':a216_0x2143f3(0x118),'meowKey':a216_0x2143f3(0x118),'type':a216_0x2143f3(0xf0),'description':a216_0x2143f3(0x14f),'hidden':!![]},{'name':a216_0x2143f3(0x144),'meowKey':a216_0x2143f3(0x144),'type':a216_0x2143f3(0xf0),'description':'Verbose\x20output','hidden':!![]},{'name':a216_0x2143f3(0xef),'meowKey':a216_0x2143f3(0x154),'type':a216_0x2143f3(0x167),'description':'Expected\x20affected\x20count','hidden':!![]},{'name':'label','meowKey':a216_0x2143f3(0x152),'type':a216_0x2143f3(0x167),'description':a216_0x2143f3(0x12b),'hidden':!![]},{'name':a216_0x2143f3(0x169),'meowKey':a216_0x2143f3(0x107),'type':a216_0x2143f3(0x167),'description':'Parent\x20menu\x20id','hidden':!![]},{'name':a216_0x2143f3(0x140),'meowKey':a216_0x2143f3(0x140),'type':a216_0x2143f3(0x167),'description':a216_0x2143f3(0x108),'hidden':!![]},{'name':a216_0x2143f3(0x134),'meowKey':a216_0x2143f3(0x12d),'type':a216_0x2143f3(0x167),'description':a216_0x2143f3(0x14a),'hidden':!![]},{'name':a216_0x2143f3(0x130),'meowKey':a216_0x2143f3(0xea),'type':a216_0x2143f3(0x167),'description':'Expected\x20current\x20menu\x20path','hidden':!![]},{'name':a216_0x2143f3(0x159),'meowKey':a216_0x2143f3(0x163),'type':a216_0x2143f3(0x167),'description':'Expected\x20current\x20child\x20count','hidden':!![]},{'name':a216_0x2143f3(0x15f),'meowKey':a216_0x2143f3(0x132),'type':'string','description':'Comma-separated\x20menu\x20IDs','hidden':!![]},{'name':a216_0x2143f3(0x12c),'meowKey':a216_0x2143f3(0x145),'type':a216_0x2143f3(0x167),'description':a216_0x2143f3(0xf9),'hidden':!![]},{'name':a216_0x2143f3(0x117),'meowKey':a216_0x2143f3(0x15e),'type':'string','description':a216_0x2143f3(0x10e),'hidden':!![]},{'name':'function-node','meowKey':a216_0x2143f3(0xeb),'type':a216_0x2143f3(0x167),'description':'Function\x20node','hidden':!![]},{'name':a216_0x2143f3(0xfd),'meowKey':a216_0x2143f3(0xe0),'type':a216_0x2143f3(0x167),'description':a216_0x2143f3(0x116),'hidden':!![]},{'name':a216_0x2143f3(0x158),'meowKey':a216_0x2143f3(0x158),'type':a216_0x2143f3(0xf0),'description':'Use\x20the\x20base\x20database\x20connection','hidden':!![]},{'name':a216_0x2143f3(0x156),'meowKey':a216_0x2143f3(0x156),'type':a216_0x2143f3(0x167),'description':a216_0x2143f3(0x10c),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a216_0x2143f3(0xe1),a216_0x2143f3(0x124),a216_0x2143f3(0xed),'format','jq',a216_0x2143f3(0xf5),'yes','non-interactive','ci']);function a216_0x5b5d(_0x37e3a2,_0x2d52ae){_0x37e3a2=_0x37e3a2-0xd8;const _0x22ef7d=a216_0x22ef();let _0x5b5d1a=_0x22ef7d[_0x37e3a2];return _0x5b5d1a;}export function buildMeowFlags(){const _0x265a9b=a216_0x2143f3;return Object['fromEntries'](GLOBAL_FLAGS[_0x265a9b(0x109)](_0x515cb0=>[_0x515cb0[_0x265a9b(0x143)],{'type':_0x515cb0[_0x265a9b(0x146)]}]));}
|
|
1
|
+
function a222_0x8463(_0x210ff0,_0x494552){_0x210ff0=_0x210ff0-0x6b;const _0x4c0c8a=a222_0x4c0c();let _0x8463ef=_0x4c0c8a[_0x210ff0];return _0x8463ef;}function a222_0x4c0c(){const _0x1b497e=['label','sqlcode','4327370FJYTHE','menuIds','sort','global','Use\x20remote','Menu\x20label','expected-children-count','boolean','meowKey','stdin','function-node','<expr>','confirm','<code>','Use\x20project\x20config\x20scope','skipImports','page','parentId','Name','Schemas','tags','Reveal\x20sensitive\x20value','3048224qrjQQG','enableBffSave','Parent\x20menu\x20id','expectedChildrenCount','sqlName','Description','format','Expected\x20current\x20child\x20count','Skip\x20confirmation\x20for\x20high-risk\x20writes','watch','params','3627680VVVtqU','verbose','Expected\x20current\x20menu\x20path','string','keyword','target-env','rabetbase','schemas','functionNode','description-file','@lovrabet/rabetbase-cli','2VOdOLW','Use\x20the\x20base\x20database\x20connection','project','output','all','operationType','DB\x20ID','sql','menu-ids','Output\x20format','Force\x20non-interactive\x20mode\x20(CI)','Target\x20connection\x20environment','Expected\x20current\x20parent\x20menu\x20id','Page\x20size','Confirm\x20destructive\x20action','Menu\x20sort\x20value','dbid','title','expectParentId','description','4967315BRiaJW','Preview\x20operation\x20without\x20executing','app','File\x20path','Title','327444sbsRtU','Select\x20app\x20profile\x20by\x20name','Operation\x20type','339564zMfMkt','target','Config\x20value','taskId','clear','Comma-separated\x20menu\x20IDs','Clear','query','reveal','SQL\x20code','env','expect-parent-id','77wAGFdb','SQL\x20name','file','Target\x20path','9HCKaQD','task-id','expect-path','Keyword\x20filter','datasetcode','appcode','descriptionFile','non-interactive','Rabetbase\x20CLI','production\x20|\x20daily','yes','codes','locale','sqlname','pagesize','Function\x20node','zh-CN\x20|\x20en-US','parent-id','Code\x20filter','dry-run','<name>','SQL\x20string','Dataset\x20code','operation','key','force','dbId','type','Watch\x20mode','Apply\x20to\x20all','topk','1410039EuYqoE','expected-count','direct','code','name','Verbose\x20output','dryRun','help','App\x20locale\x20(workspace\x20pass-through;\x20not\x20CLI\x20language)','Config\x20key','json\x20|\x20pretty\x20|\x20compress'];a222_0x4c0c=function(){return _0x1b497e;};return a222_0x4c0c();}const a222_0x3f0a8f=a222_0x8463;(function(_0x443270,_0x52dc96){const _0x5aa758=a222_0x8463,_0x5effc5=_0x443270();while(!![]){try{const _0x6a187=-parseInt(_0x5aa758(0x9a))/0x1+parseInt(_0x5aa758(0x7e))/0x2*(parseInt(_0x5aa758(0xc9))/0x3)+parseInt(_0x5aa758(0x73))/0x4+parseInt(_0x5aa758(0x92))/0x5+parseInt(_0x5aa758(0x97))/0x6*(-parseInt(_0x5aa758(0xa6))/0x7)+parseInt(_0x5aa758(0xec))/0x8*(-parseInt(_0x5aa758(0xaa))/0x9)+-parseInt(_0x5aa758(0xd6))/0xa;if(_0x6a187===_0x52dc96)break;else _0x5effc5['push'](_0x5effc5['shift']());}catch(_0xe5a36a){_0x5effc5['push'](_0x5effc5['shift']());}}}(a222_0x4c0c,0x96931));export const CLI_BIN_NAME=a222_0x3f0a8f(0x79);export const CLI_DISPLAY_NAME=a222_0x3f0a8f(0xb2);export const NPM_PACKAGE_NAME=a222_0x3f0a8f(0x7d);export const GLOBAL_FLAGS=[{'name':a222_0x3f0a8f(0xaf),'meowKey':a222_0x3f0a8f(0xaf),'type':a222_0x3f0a8f(0x76),'description':'Override\x20appcode','hint':a222_0x3f0a8f(0xe3)},{'name':a222_0x3f0a8f(0x94),'meowKey':a222_0x3f0a8f(0x94),'type':'string','description':a222_0x3f0a8f(0x98),'hint':a222_0x3f0a8f(0xbe)},{'name':a222_0x3f0a8f(0xa4),'meowKey':a222_0x3f0a8f(0xa4),'type':a222_0x3f0a8f(0x76),'description':'Environment','hint':a222_0x3f0a8f(0xb3)},{'name':'format','meowKey':'format','type':'string','description':a222_0x3f0a8f(0x87),'hint':a222_0x3f0a8f(0xd3)},{'name':'jq','meowKey':'jq','type':a222_0x3f0a8f(0x76),'description':'Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','hint':a222_0x3f0a8f(0xe1)},{'name':'dry-run','meowKey':a222_0x3f0a8f(0xcf),'type':a222_0x3f0a8f(0xdd),'description':a222_0x3f0a8f(0x93)},{'name':a222_0x3f0a8f(0xb4),'meowKey':a222_0x3f0a8f(0xb4),'type':a222_0x3f0a8f(0xdd),'description':a222_0x3f0a8f(0x70)},{'name':a222_0x3f0a8f(0xb1),'meowKey':'nonInteractive','type':'boolean','description':a222_0x3f0a8f(0x88)},{'name':a222_0x3f0a8f(0xd9),'meowKey':a222_0x3f0a8f(0xd9),'type':a222_0x3f0a8f(0xdd),'description':'Use\x20global\x20config\x20scope'},{'name':a222_0x3f0a8f(0x80),'meowKey':a222_0x3f0a8f(0x80),'type':a222_0x3f0a8f(0xdd),'description':a222_0x3f0a8f(0xe4)},{'name':'ci','meowKey':'ci','type':'boolean','description':'Alias\x20for\x20--non-interactive','hidden':!![]},{'name':a222_0x3f0a8f(0xd0),'meowKey':a222_0x3f0a8f(0xd0),'type':'boolean','description':'Show\x20help'},{'name':'locale','meowKey':a222_0x3f0a8f(0xb6),'type':a222_0x3f0a8f(0x76),'description':a222_0x3f0a8f(0xd1),'hidden':!![],'hint':a222_0x3f0a8f(0xba)},{'name':a222_0x3f0a8f(0xcd),'meowKey':a222_0x3f0a8f(0xcd),'type':'string','description':a222_0x3f0a8f(0xe8),'hidden':!![]},{'name':a222_0x3f0a8f(0x8f),'meowKey':a222_0x3f0a8f(0x8f),'type':a222_0x3f0a8f(0x76),'description':a222_0x3f0a8f(0x96),'hidden':!![]},{'name':'query','meowKey':a222_0x3f0a8f(0xa1),'type':a222_0x3f0a8f(0x76),'description':'Search\x20query','hidden':!![]},{'name':a222_0x3f0a8f(0xc8),'meowKey':a222_0x3f0a8f(0xc8),'type':a222_0x3f0a8f(0x76),'description':'Maximum\x20search\x20hits','hidden':!![]},{'name':a222_0x3f0a8f(0x9e),'meowKey':a222_0x3f0a8f(0x9e),'type':a222_0x3f0a8f(0xdd),'description':a222_0x3f0a8f(0xa0),'hidden':!![]},{'name':a222_0x3f0a8f(0x71),'meowKey':a222_0x3f0a8f(0x71),'type':'boolean','description':a222_0x3f0a8f(0xc6),'hidden':!![]},{'name':a222_0x3f0a8f(0x81),'meowKey':a222_0x3f0a8f(0x81),'type':a222_0x3f0a8f(0x76),'description':'Output\x20path','hidden':!![]},{'name':a222_0x3f0a8f(0x72),'meowKey':a222_0x3f0a8f(0x72),'type':a222_0x3f0a8f(0x76),'description':'JSON\x20params','hidden':!![]},{'name':'datasetcode','meowKey':a222_0x3f0a8f(0xae),'type':a222_0x3f0a8f(0x76),'description':a222_0x3f0a8f(0xc0),'hidden':!![]},{'name':a222_0x3f0a8f(0x82),'meowKey':a222_0x3f0a8f(0x82),'type':a222_0x3f0a8f(0xdd),'description':a222_0x3f0a8f(0xc7),'hidden':!![]},{'name':'enable-bff-save','meowKey':a222_0x3f0a8f(0xed),'type':a222_0x3f0a8f(0xdd),'description':'Enable\x20Backend\x20Function\x20save','hidden':!![]},{'name':'id','meowKey':'id','type':a222_0x3f0a8f(0x76),'description':'Record\x20ID','hidden':!![]},{'name':a222_0x3f0a8f(0xc5),'meowKey':a222_0x3f0a8f(0xc5),'type':a222_0x3f0a8f(0x76),'description':'Type\x20filter','hidden':!![]},{'name':a222_0x3f0a8f(0xa8),'meowKey':a222_0x3f0a8f(0xa8),'type':'string','description':a222_0x3f0a8f(0x95),'hidden':!![]},{'name':a222_0x3f0a8f(0xd5),'meowKey':a222_0x3f0a8f(0xd5),'type':a222_0x3f0a8f(0x76),'description':a222_0x3f0a8f(0xa3),'hidden':!![]},{'name':'sql-name','meowKey':a222_0x3f0a8f(0x6c),'type':'string','description':a222_0x3f0a8f(0xa7),'hidden':!![]},{'name':a222_0x3f0a8f(0xb7),'meowKey':a222_0x3f0a8f(0xb7),'type':a222_0x3f0a8f(0x76),'description':a222_0x3f0a8f(0xa7),'hidden':!![]},{'name':'db-id','meowKey':a222_0x3f0a8f(0xc4),'type':a222_0x3f0a8f(0x76),'description':a222_0x3f0a8f(0x84),'hidden':!![]},{'name':a222_0x3f0a8f(0x8e),'meowKey':a222_0x3f0a8f(0x8e),'type':'string','description':a222_0x3f0a8f(0x84),'hidden':!![]},{'name':a222_0x3f0a8f(0x91),'meowKey':a222_0x3f0a8f(0x91),'type':a222_0x3f0a8f(0x76),'description':a222_0x3f0a8f(0x6d),'hidden':!![]},{'name':a222_0x3f0a8f(0x7c),'meowKey':a222_0x3f0a8f(0xb0),'type':a222_0x3f0a8f(0x76),'description':'Description\x20file','hidden':!![]},{'name':a222_0x3f0a8f(0xe6),'meowKey':a222_0x3f0a8f(0xe6),'type':'string','description':'Page\x20number','hidden':!![]},{'name':a222_0x3f0a8f(0xb8),'meowKey':a222_0x3f0a8f(0xb8),'type':a222_0x3f0a8f(0x76),'description':a222_0x3f0a8f(0x8b),'hidden':!![]},{'name':a222_0x3f0a8f(0x77),'meowKey':a222_0x3f0a8f(0x77),'type':a222_0x3f0a8f(0x76),'description':a222_0x3f0a8f(0xad),'hidden':!![]},{'name':a222_0x3f0a8f(0xcc),'meowKey':'code','type':a222_0x3f0a8f(0x76),'description':a222_0x3f0a8f(0xbc),'hidden':!![]},{'name':'sql','meowKey':a222_0x3f0a8f(0x85),'type':a222_0x3f0a8f(0x76),'description':a222_0x3f0a8f(0xbf),'hidden':!![]},{'name':a222_0x3f0a8f(0x7a),'meowKey':'schemas','type':a222_0x3f0a8f(0x76),'description':a222_0x3f0a8f(0xe9),'hidden':!![]},{'name':'operation','meowKey':a222_0x3f0a8f(0xc1),'type':a222_0x3f0a8f(0x76),'description':a222_0x3f0a8f(0x99),'hidden':!![]},{'name':a222_0x3f0a8f(0x9b),'meowKey':a222_0x3f0a8f(0x9b),'type':a222_0x3f0a8f(0x76),'description':a222_0x3f0a8f(0xa9),'hidden':!![]},{'name':'skip-imports','meowKey':a222_0x3f0a8f(0xe5),'type':a222_0x3f0a8f(0xdd),'description':'Skip\x20import\x20generation','hidden':!![]},{'name':a222_0x3f0a8f(0xc2),'meowKey':a222_0x3f0a8f(0xc2),'type':a222_0x3f0a8f(0x76),'description':a222_0x3f0a8f(0xd2),'hidden':!![]},{'name':'value','meowKey':'value','type':a222_0x3f0a8f(0x76),'description':a222_0x3f0a8f(0x9c),'hidden':!![]},{'name':'tags','meowKey':a222_0x3f0a8f(0xea),'type':a222_0x3f0a8f(0x76),'description':'Tags','hidden':!![]},{'name':a222_0x3f0a8f(0xdf),'meowKey':'stdin','type':a222_0x3f0a8f(0xdd),'description':'Read\x20value\x20from\x20stdin','hidden':!![]},{'name':'from-env','meowKey':'fromEnv','type':a222_0x3f0a8f(0x76),'description':'Read\x20value\x20from\x20environment\x20variable','hidden':!![]},{'name':'reveal','meowKey':a222_0x3f0a8f(0xa2),'type':'boolean','description':a222_0x3f0a8f(0xeb),'hidden':!![]},{'name':a222_0x3f0a8f(0xc3),'meowKey':'force','type':a222_0x3f0a8f(0xdd),'description':'Force\x20overwrite','hidden':!![]},{'name':'confirm','meowKey':a222_0x3f0a8f(0xe2),'type':'boolean','description':a222_0x3f0a8f(0x8c),'hidden':!![]},{'name':'remote','meowKey':'remote','type':a222_0x3f0a8f(0xdd),'description':a222_0x3f0a8f(0xda),'hidden':!![]},{'name':a222_0x3f0a8f(0x74),'meowKey':a222_0x3f0a8f(0x74),'type':a222_0x3f0a8f(0xdd),'description':a222_0x3f0a8f(0xce),'hidden':!![]},{'name':a222_0x3f0a8f(0xca),'meowKey':'expectedCount','type':'string','description':'Expected\x20affected\x20count','hidden':!![]},{'name':a222_0x3f0a8f(0xd4),'meowKey':a222_0x3f0a8f(0xd4),'type':a222_0x3f0a8f(0x76),'description':a222_0x3f0a8f(0xdb),'hidden':!![]},{'name':a222_0x3f0a8f(0xbb),'meowKey':a222_0x3f0a8f(0xe7),'type':a222_0x3f0a8f(0x76),'description':a222_0x3f0a8f(0xee),'hidden':!![]},{'name':a222_0x3f0a8f(0xd8),'meowKey':'sort','type':a222_0x3f0a8f(0x76),'description':a222_0x3f0a8f(0x8d),'hidden':!![]},{'name':a222_0x3f0a8f(0xa5),'meowKey':a222_0x3f0a8f(0x90),'type':a222_0x3f0a8f(0x76),'description':a222_0x3f0a8f(0x8a),'hidden':!![]},{'name':a222_0x3f0a8f(0xac),'meowKey':'expectPath','type':a222_0x3f0a8f(0x76),'description':a222_0x3f0a8f(0x75),'hidden':!![]},{'name':a222_0x3f0a8f(0xdc),'meowKey':a222_0x3f0a8f(0x6b),'type':'string','description':a222_0x3f0a8f(0x6f),'hidden':!![]},{'name':a222_0x3f0a8f(0x86),'meowKey':a222_0x3f0a8f(0xd7),'type':'string','description':a222_0x3f0a8f(0x9f),'hidden':!![]},{'name':a222_0x3f0a8f(0xab),'meowKey':a222_0x3f0a8f(0x9d),'type':'string','description':'Asynchronous\x20task\x20ID','hidden':!![]},{'name':'operation-type','meowKey':a222_0x3f0a8f(0x83),'type':a222_0x3f0a8f(0x76),'description':a222_0x3f0a8f(0x99),'hidden':!![]},{'name':a222_0x3f0a8f(0xe0),'meowKey':a222_0x3f0a8f(0x7b),'type':a222_0x3f0a8f(0x76),'description':a222_0x3f0a8f(0xb9),'hidden':!![]},{'name':a222_0x3f0a8f(0x78),'meowKey':'targetEnv','type':a222_0x3f0a8f(0x76),'description':a222_0x3f0a8f(0x89),'hidden':!![]},{'name':a222_0x3f0a8f(0xcb),'meowKey':a222_0x3f0a8f(0xcb),'type':a222_0x3f0a8f(0xdd),'description':a222_0x3f0a8f(0x7f),'hidden':!![]},{'name':'codes','meowKey':a222_0x3f0a8f(0xb5),'type':a222_0x3f0a8f(0x76),'description':'Comma-separated\x20metadata\x20codes','hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a222_0x3f0a8f(0xaf),a222_0x3f0a8f(0x94),'env',a222_0x3f0a8f(0x6e),'jq',a222_0x3f0a8f(0xbd),'yes',a222_0x3f0a8f(0xb1),'ci']);export function buildMeowFlags(){const _0x268a89=a222_0x3f0a8f;return Object['fromEntries'](GLOBAL_FLAGS['map'](_0x106332=>[_0x106332[_0x268a89(0xde)],{'type':_0x106332[_0x268a89(0xc5)]}]));}
|
package/lib/constant/defaults.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a223_0x420ab0=a223_0x283e;(function(_0x41a6d6,_0x2f8789){const _0x272377=a223_0x283e,_0x2e7839=_0x41a6d6();while(!![]){try{const _0x892456=parseInt(_0x272377(0xea))/0x1+parseInt(_0x272377(0xf4))/0x2*(parseInt(_0x272377(0xef))/0x3)+parseInt(_0x272377(0xec))/0x4*(-parseInt(_0x272377(0xf6))/0x5)+parseInt(_0x272377(0xf5))/0x6*(-parseInt(_0x272377(0xf3))/0x7)+parseInt(_0x272377(0xed))/0x8*(parseInt(_0x272377(0xeb))/0x9)+-parseInt(_0x272377(0xf2))/0xa*(parseInt(_0x272377(0xf0))/0xb)+parseInt(_0x272377(0xf8))/0xc;if(_0x892456===_0x2f8789)break;else _0x2e7839['push'](_0x2e7839['shift']());}catch(_0xeac796){_0x2e7839['push'](_0x2e7839['shift']());}}}(a223_0x34ea,0x8401f));function a223_0x34ea(){const _0x26694e=['18487272sElyHc','write','18924bWsKqY','1640889KegddI','4rUqAnw','24JFHcVc','production','229575TInBLk','342859JuuIWu','compress','40DadsgD','7iaAafu','4DjFuJP','5506506vPLmdb','3382065RRipzZ','en-US'];a223_0x34ea=function(){return _0x26694e;};return a223_0x34ea();}import{DEFAULT_API_DIR}from'../constant/paths.js';function a223_0x283e(_0x18ae0f,_0x3c0895){_0x18ae0f=_0x18ae0f-0xe9;const _0x34ea0d=a223_0x34ea();let _0x283e41=_0x34ea0d[_0x18ae0f];return _0x283e41;}export const DEFAULT_CONFIG_VALUES={'env':a223_0x420ab0(0xee),'format':a223_0x420ab0(0xf1),'locale':a223_0x420ab0(0xf7),'riskLevel':a223_0x420ab0(0xe9),'apiDir':DEFAULT_API_DIR};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a223_0x420ab0(0xf1);
|
package/lib/constant/domain.d.ts
CHANGED
|
@@ -9,10 +9,13 @@ export declare function initDomains(domains?: {
|
|
|
9
9
|
runtimeDomain?: string;
|
|
10
10
|
skillDomain?: string;
|
|
11
11
|
kbDomain?: string;
|
|
12
|
-
kbSearchDomain?: string;
|
|
13
12
|
appDomain?: string;
|
|
14
13
|
localDomain?: string;
|
|
15
14
|
certificateDomain?: string;
|
|
15
|
+
cdn?: {
|
|
16
|
+
libraries: string;
|
|
17
|
+
lovrabet: string;
|
|
18
|
+
};
|
|
16
19
|
region?: LovrabetRegion;
|
|
17
20
|
}): void;
|
|
18
21
|
export declare const getUserDomain: () => string;
|
|
@@ -20,22 +23,23 @@ export declare const getApiDomain: () => string;
|
|
|
20
23
|
export declare const getRuntimeDomain: () => string;
|
|
21
24
|
export declare const getSkillDomain: () => string;
|
|
22
25
|
export declare const getKbDomain: () => string;
|
|
23
|
-
export declare function getKbSearchDomain(): string;
|
|
24
26
|
export declare const getAppDomain: () => string;
|
|
25
27
|
export declare const getActiveRegion: () => "global" | "id" | "cn";
|
|
26
28
|
export declare const getLocalDomain: () => string | undefined;
|
|
27
29
|
export declare const getCertificateDomain: () => string | undefined;
|
|
30
|
+
export declare const getActiveCdn: () => {
|
|
31
|
+
libraries: string;
|
|
32
|
+
lovrabet: string;
|
|
33
|
+
};
|
|
28
34
|
export declare function isIndependentDeployment(): boolean;
|
|
29
35
|
/**
|
|
30
36
|
* 生成到浏览器项目中的 SDK 路由白名单。
|
|
31
37
|
*
|
|
32
38
|
* - 企业独立部署只下发显式 runtimeDomain;
|
|
33
|
-
* -
|
|
34
|
-
* -
|
|
35
|
-
* - Global 在 SDK 原生支持前下发当前完整地址。
|
|
39
|
+
* - 默认节点由 SDK 默认路由解析,无需写入生成文件;
|
|
40
|
+
* - 其他官方节点统一下发最终 runtimeDomain,不增加节点特例。
|
|
36
41
|
*/
|
|
37
42
|
export declare function getSdkClientRoutingConfig(): {
|
|
38
|
-
region?: "id";
|
|
39
43
|
runtimeDomain?: string;
|
|
40
44
|
};
|
|
41
45
|
export declare const getAppBaseUrl: (appCode: string) => string;
|
package/lib/constant/domain.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a224_0x37b967=a224_0x3153;(function(_0x3d75b9,_0x345009){const _0x35cad9=a224_0x3153,_0x2ac1cc=_0x3d75b9();while(!![]){try{const _0x380be3=parseInt(_0x35cad9(0x82))/0x1+-parseInt(_0x35cad9(0x72))/0x2+-parseInt(_0x35cad9(0x78))/0x3*(-parseInt(_0x35cad9(0x74))/0x4)+parseInt(_0x35cad9(0x89))/0x5+-parseInt(_0x35cad9(0x88))/0x6*(parseInt(_0x35cad9(0x7b))/0x7)+parseInt(_0x35cad9(0x85))/0x8+parseInt(_0x35cad9(0x79))/0x9*(parseInt(_0x35cad9(0x7c))/0xa);if(_0x380be3===_0x345009)break;else _0x2ac1cc['push'](_0x2ac1cc['shift']());}catch(_0x541c48){_0x2ac1cc['push'](_0x2ac1cc['shift']());}}}(a224_0x1e19,0x9d330));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,customAppDomain,customLocalDomain,customCertificateDomain,customCdn,activeRegion=DEFAULT_LOVRABET_REGION;function getActiveRegionDomains(){const _0x3bfd59=a224_0x3153,_0x36f825=getOfficialRoutingProfile(activeRegion);return isProduction(getEnv())?_0x36f825[_0x3bfd59(0x84)][_0x3bfd59(0x76)]:_0x36f825[_0x3bfd59(0x84)][_0x3bfd59(0x7f)]??_0x36f825['serviceDomains'][_0x3bfd59(0x76)];}export function initDomains(_0x309990){const _0x2af925=a224_0x3153;customApiDomain=_0x309990?.[_0x2af925(0x83)],customUserDomain=_0x309990?.[_0x2af925(0x8c)],customRuntimeDomain=_0x309990?.[_0x2af925(0x7a)],customSkillDomain=_0x309990?.['skillDomain'],customKbDomain=_0x309990?.[_0x2af925(0x86)],customAppDomain=_0x309990?.[_0x2af925(0x8a)],customLocalDomain=_0x309990?.[_0x2af925(0x81)],customCertificateDomain=_0x309990?.['certificateDomain'],customCdn=_0x309990?.[_0x2af925(0x7e)],activeRegion=_0x309990?.['region']??DEFAULT_LOVRABET_REGION;}function a224_0x3153(_0x44050,_0xbb6645){_0x44050=_0x44050-0x72;const _0x1e191c=a224_0x1e19();let _0x315332=_0x1e191c[_0x44050];return _0x315332;}export const getUserDomain=()=>customUserDomain||getActiveRegionDomains()[a224_0x37b967(0x8b)];export const getApiDomain=()=>customApiDomain||getActiveRegionDomains()['api'];export const getRuntimeDomain=()=>customRuntimeDomain||getActiveRegionDomains()['runtime'];export const getSkillDomain=()=>customSkillDomain||getActiveRegionDomains()['skill'];export const getKbDomain=()=>customKbDomain||customApiDomain||getActiveRegionDomains()['kb'];export const getAppDomain=()=>customAppDomain||getActiveRegionDomains()[a224_0x37b967(0x7d)];export const getActiveRegion=()=>activeRegion;export const getLocalDomain=()=>customLocalDomain;export const getCertificateDomain=()=>customCertificateDomain;export const getActiveCdn=()=>customCdn||getOfficialRoutingCdn(activeRegion);export function isIndependentDeployment(){return!!(customApiDomain||customUserDomain||customRuntimeDomain||customSkillDomain||customKbDomain||customAppDomain||customLocalDomain||customCertificateDomain);}export function getSdkClientRoutingConfig(){const _0x399cff=a224_0x37b967;if(customRuntimeDomain&&customRuntimeDomain!==getActiveRegionDomains()[_0x399cff(0x87)])return{'runtimeDomain':customRuntimeDomain};if(activeRegion!==DEFAULT_LOVRABET_REGION)return{'runtimeDomain':getRuntimeDomain()};return{};}function a224_0x1e19(){const _0xfcfece=['11031cqDCIN','2763NoNNRI','runtimeDomain','777kbxXOM','35410BXdXKo','app','cdn','daily','/app/','localDomain','405268HBjjyV','apiDomain','serviceDomains','1308208teEykx','kbDomain','runtime','43584QnVJZQ','1726870AXWtlC','appDomain','user','userDomain','1374224mRXrZW','/web-app/app/','148eYLWuL','trim','production','hostname'];a224_0x1e19=function(){return _0xfcfece;};return a224_0x1e19();}export const getAppBaseUrl=_0x49ec57=>{const _0x234942=a224_0x37b967,_0x2b1d2c=encodeURIComponent(_0x49ec57[_0x234942(0x75)]());return isProduction(getEnv())?getAppDomain()+_0x234942(0x80)+_0x2b1d2c:getAppDomain()+_0x234942(0x73)+_0x2b1d2c;};export const getPublishedAppDomain=_0x40d22b=>{const _0x5d9f3a=a224_0x37b967,_0x4a4cdd=new URL(getAppDomain());return _0x4a4cdd[_0x5d9f3a(0x77)]=_0x40d22b['trim']()+'.'+_0x4a4cdd['hostname'],_0x4a4cdd['origin'];};
|
package/lib/constant/env.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a225_0x19883c=a225_0x1faf;(function(_0xe08d84,_0x5c71f4){const _0x4a309d=a225_0x1faf,_0x55e96d=_0xe08d84();while(!![]){try{const _0x44eab6=parseInt(_0x4a309d(0x7a))/0x1+-parseInt(_0x4a309d(0x70))/0x2+parseInt(_0x4a309d(0x6e))/0x3+parseInt(_0x4a309d(0x71))/0x4+parseInt(_0x4a309d(0x79))/0x5*(-parseInt(_0x4a309d(0x73))/0x6)+parseInt(_0x4a309d(0x77))/0x7*(parseInt(_0x4a309d(0x75))/0x8)+parseInt(_0x4a309d(0x78))/0x9*(-parseInt(_0x4a309d(0x76))/0xa);if(_0x44eab6===_0x5c71f4)break;else _0x55e96d['push'](_0x55e96d['shift']());}catch(_0x5e6146){_0x55e96d['push'](_0x55e96d['shift']());}}}(a225_0x4598,0x4fced));export const RABETBASE_ENV_VALUES=[a225_0x19883c(0x74),'daily'];export function normalizeEnv(_0x1d7b6f){const _0x23ac6a=a225_0x19883c;return _0x1d7b6f==='online'?_0x23ac6a(0x74):_0x1d7b6f;}function a225_0x4598(){const _0x2e451b=['648111fceBbH','227466LJVLPP','daily','659764QLECqx','1795156OezjwF','development','312vftjzd','production','32OFWHYz','164530pBbrKp','273259LGKron','243wevHLQ','21910RCLlXX'];a225_0x4598=function(){return _0x2e451b;};return a225_0x4598();}export function isProduction(_0x37f16f){return normalizeEnv(_0x37f16f)==='production';}export function isDaily(_0x5ceb01){const _0x9a2fe2=a225_0x19883c;return normalizeEnv(_0x5ceb01)===_0x9a2fe2(0x6f);}function a225_0x1faf(_0x5029c7,_0x36627f){_0x5029c7=_0x5029c7-0x6e;const _0x459831=a225_0x4598();let _0x1fafa1=_0x459831[_0x5029c7];return _0x1fafa1;}export function isDev(_0x148798){const _0x50d1a7=a225_0x19883c,_0x4c8ab2=normalizeEnv(_0x148798);return _0x4c8ab2===_0x50d1a7(0x72)||_0x4c8ab2==='dev';}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||a225_0x19883c(0x74));export function getEnv(){return env;}export function initEnv(_0x5d8ff0){env=normalizeEnv(_0x5d8ff0);}
|
package/lib/constant/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a226_0x43bae5=a226_0x5487;(function(_0x515810,_0x6290d2){const _0x40a404=a226_0x5487,_0x1aa2b1=_0x515810();while(!![]){try{const _0x25b049=-parseInt(_0x40a404(0x16b))/0x1*(-parseInt(_0x40a404(0x16c))/0x2)+parseInt(_0x40a404(0x16e))/0x3+-parseInt(_0x40a404(0x166))/0x4+parseInt(_0x40a404(0x167))/0x5*(parseInt(_0x40a404(0x171))/0x6)+-parseInt(_0x40a404(0x170))/0x7+parseInt(_0x40a404(0x16a))/0x8*(parseInt(_0x40a404(0x16f))/0x9)+parseInt(_0x40a404(0x16d))/0xa*(-parseInt(_0x40a404(0x165))/0xb);if(_0x25b049===_0x6290d2)break;else _0x1aa2b1['push'](_0x1aa2b1['shift']());}catch(_0xaa5b25){_0x1aa2b1['push'](_0x1aa2b1['shift']());}}}(a226_0x3d5a,0x8849b));function a226_0x5487(_0x1b8e49,_0x346aeb){_0x1b8e49=_0x1b8e49-0x165;const _0x3d5a5f=a226_0x3d5a();let _0x5487b4=_0x3d5a5f[_0x1b8e49];return _0x5487b4;}export const RABETBASE_OUTPUT_FORMAT_VALUES=[a226_0x43bae5(0x168),a226_0x43bae5(0x169),'compress'];function a226_0x3d5a(){const _0x4b7280=['5937253tJahfJ','1880586tFhjtS','2134649nlZCTz','470144YtontQ','5tykdPT','json','pretty','2354232lqOjCx','110441FgqoGU','2qprlgL','10xzdiaS','2999574UvEkLx','9renmOn'];a226_0x3d5a=function(){return _0x4b7280;};return a226_0x3d5a();}
|
package/lib/constant/paths.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a227_0x410e60=a227_0x4046;function a227_0x224f(){const _0x7d412f=['1153345iyATRm','13437528DiERmB','501NSbcpd','6237665pFJsQt','125522jMBjEH','1779402beXozu','8670pswiXu','./src/api','1861056wSpjmY'];a227_0x224f=function(){return _0x7d412f;};return a227_0x224f();}(function(_0x1e678f,_0x4eaf1b){const _0x469179=a227_0x4046,_0x24de79=_0x1e678f();while(!![]){try{const _0x55c346=parseInt(_0x469179(0x1dc))/0x1+-parseInt(_0x469179(0x1de))/0x2*(-parseInt(_0x469179(0x1da))/0x3)+parseInt(_0x469179(0x1e0))/0x4+parseInt(_0x469179(0x1d8))/0x5+-parseInt(_0x469179(0x1dd))/0x6+parseInt(_0x469179(0x1db))/0x7+-parseInt(_0x469179(0x1d9))/0x8;if(_0x55c346===_0x4eaf1b)break;else _0x24de79['push'](_0x24de79['shift']());}catch(_0x7d84a6){_0x24de79['push'](_0x24de79['shift']());}}}(a227_0x224f,0x705cd));function a227_0x4046(_0x1e3658,_0x2a34aa){_0x1e3658=_0x1e3658-0x1d8;const _0x224f0e=a227_0x224f();let _0x404622=_0x224f0e[_0x1e3658];return _0x404622;}export const DEFAULT_API_DIR=a227_0x410e60(0x1df);
|
package/lib/constant/region.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/** Every official routing profile known to this CLI, including reserved profiles. */
|
|
1
2
|
export declare const LOVRABET_REGION_VALUES: readonly ["cn", "id", "global"];
|
|
2
3
|
/** Regions currently available for new CLI configuration. */
|
|
3
4
|
export declare const ENABLED_LOVRABET_REGION_VALUES: readonly ["cn", "id"];
|
|
@@ -6,4 +7,6 @@ export declare const DEFAULT_LOVRABET_REGION: LovrabetRegion;
|
|
|
6
7
|
export declare function isLovrabetRegion(value: unknown): value is LovrabetRegion;
|
|
7
8
|
export declare function isEnabledLovrabetRegion(value: unknown): value is LovrabetRegion;
|
|
8
9
|
/** Keeps legacy long names readable; new writes use canonical short values. */
|
|
9
|
-
export declare function normalizeLovrabetRegion(value: unknown): LovrabetRegion;
|
|
10
|
+
export declare function normalizeLovrabetRegion(value: unknown): LovrabetRegion | undefined;
|
|
11
|
+
/** Missing values use the default profile; explicit unknown values are invalid. */
|
|
12
|
+
export declare function isInvalidLovrabetRegion(value: unknown): boolean;
|
package/lib/constant/region.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x33376e,_0x4504e5){const _0x53702c=a228_0x19c8,_0x28688c=_0x33376e();while(!![]){try{const _0x36d1bd=-parseInt(_0x53702c(0x1f2))/0x1*(-parseInt(_0x53702c(0x1ee))/0x2)+-parseInt(_0x53702c(0x1eb))/0x3*(-parseInt(_0x53702c(0x1ec))/0x4)+parseInt(_0x53702c(0x1f3))/0x5+-parseInt(_0x53702c(0x1f5))/0x6+parseInt(_0x53702c(0x1f1))/0x7+parseInt(_0x53702c(0x1f4))/0x8+parseInt(_0x53702c(0x1ea))/0x9*(-parseInt(_0x53702c(0x1f0))/0xa);if(_0x36d1bd===_0x4504e5)break;else _0x28688c['push'](_0x28688c['shift']());}catch(_0x34e006){_0x28688c['push'](_0x28688c['shift']());}}}(a228_0x5f24,0x63959));import{DEFAULT_REGION,ENABLED_REGION_VALUES,REGION_ALIASES,REGION_VALUES}from'../generated/official-routing.js';export const LOVRABET_REGION_VALUES=REGION_VALUES;function a228_0x19c8(_0x32d99b,_0x31ee34){_0x32d99b=_0x32d99b-0x1ea;const _0x5f2475=a228_0x5f24();let _0x19c8a0=_0x5f2475[_0x32d99b];return _0x19c8a0;}export const ENABLED_LOVRABET_REGION_VALUES=ENABLED_REGION_VALUES;export const DEFAULT_LOVRABET_REGION=DEFAULT_REGION;function a228_0x5f24(){const _0x130b1d=['20FncSjt','includes','1726610qSrkJC','1999872tkfjjq','65915RAbJOU','2216140QvjgDB','3316808LrLyrz','4769280gDKeSW','72xqCdDN','2344170bByxYV','4BPAZlc','string'];a228_0x5f24=function(){return _0x130b1d;};return a228_0x5f24();}export function isLovrabetRegion(_0x968c65){return typeof _0x968c65==='string'&&LOVRABET_REGION_VALUES['includes'](_0x968c65);}export function isEnabledLovrabetRegion(_0x4c2a12){const _0x5df016=a228_0x19c8;return typeof _0x4c2a12===_0x5df016(0x1ed)&&ENABLED_LOVRABET_REGION_VALUES[_0x5df016(0x1ef)](_0x4c2a12);}export function normalizeLovrabetRegion(_0x8d2033){const _0x134c89=a228_0x19c8;if(typeof _0x8d2033!==_0x134c89(0x1ed))return undefined;const _0x3333e6=REGION_ALIASES[_0x8d2033]??_0x8d2033;return isLovrabetRegion(_0x3333e6)?_0x3333e6:undefined;}export function isInvalidLovrabetRegion(_0x5d5e0c){return _0x5d5e0c!==undefined&&_0x5d5e0c!==null&&_0x5d5e0c!==''&&normalizeLovrabetRegion(_0x5d5e0c)===undefined;}
|
package/lib/constant/risk.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a229_0x5a3b(){const _0x281047=['72qRfSEQ','26TiqMTG','1629906qpJONr','41727LrYuKm','write','1997233XJAaoI','330pDWfrb','16595kWxmlj','read','126520qptORe','64dGcDRL','67580DnfkmL','149140GAKxSD'];a229_0x5a3b=function(){return _0x281047;};return a229_0x5a3b();}const a229_0x4041ad=a229_0x1ddf;(function(_0x37235b,_0x3db17f){const _0x221bae=a229_0x1ddf,_0x560aac=_0x37235b();while(!![]){try{const _0x418a2b=-parseInt(_0x221bae(0xf6))/0x1+-parseInt(_0x221bae(0xec))/0x2*(-parseInt(_0x221bae(0xee))/0x3)+parseInt(_0x221bae(0xf5))/0x4*(parseInt(_0x221bae(0xf2))/0x5)+parseInt(_0x221bae(0xed))/0x6+parseInt(_0x221bae(0xf0))/0x7+-parseInt(_0x221bae(0xf4))/0x8*(parseInt(_0x221bae(0xf8))/0x9)+-parseInt(_0x221bae(0xf7))/0xa*(parseInt(_0x221bae(0xf1))/0xb);if(_0x418a2b===_0x3db17f)break;else _0x560aac['push'](_0x560aac['shift']());}catch(_0x28a657){_0x560aac['push'](_0x560aac['shift']());}}}(a229_0x5a3b,0x2477b));function a229_0x1ddf(_0x2c57d7,_0x51dc10){_0x2c57d7=_0x2c57d7-0xec;const _0x5a3bc1=a229_0x5a3b();let _0x1ddfd3=_0x5a3bc1[_0x2c57d7];return _0x1ddfd3;}export const RISK_LEVEL_VALUES=[a229_0x4041ad(0xf3),a229_0x4041ad(0xef),'high-risk-write'];
|