@lovrabet/rabetbase-cli 2.5.5-beta.2 → 2.5.5-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api/api-doc.js +1 -1
- package/lib/api/api-group.js +1 -1
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.js +1 -1
- package/lib/api/generate-sdk-config-file.js +1 -1
- package/lib/api/legacy-api-file.js +1 -1
- package/lib/api/model-registry-file.js +1 -1
- package/lib/api/model-registry-scaffold.js +1 -1
- package/lib/api/model-source.js +1 -1
- package/lib/auth/auth-server-ui.js +1 -1
- package/lib/auth/auth-server.js +1 -1
- package/lib/auth/constant.js +1 -1
- package/lib/auth/get-cookie.js +1 -1
- package/lib/auth/get-session-user.js +1 -1
- package/lib/auth/is-session-valid.js +1 -1
- package/lib/auth/login-success-html.js +1 -1
- package/lib/auth/logout.js +1 -1
- package/lib/cli-flags.js +1 -1
- package/lib/cli.js +1 -1
- package/lib/commands/api/generate.js +1 -1
- package/lib/commands/api/index.js +1 -1
- package/lib/commands/api/list.js +1 -1
- package/lib/commands/api/pull.js +1 -1
- package/lib/commands/api/shared.js +1 -1
- package/lib/commands/app/detail.js +1 -1
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/members-list.js +1 -1
- package/lib/commands/app/remote-directory.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/delete.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/app-config/list.js +1 -1
- package/lib/commands/app-config/set.js +1 -1
- package/lib/commands/app-config/shared.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/bff/create.js +1 -1
- package/lib/commands/bff/delete.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/bff/list.js +1 -1
- package/lib/commands/bff/logs.js +1 -1
- package/lib/commands/bff/pull.js +1 -1
- package/lib/commands/bff/push.js +1 -1
- package/lib/commands/bff/status.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/cli-update.js +1 -1
- package/lib/commands/codegen/index.js +1 -1
- package/lib/commands/codegen/sdk.js +1 -1
- package/lib/commands/codegen/sql.js +1 -1
- package/lib/commands/common/app-registry.js +1 -1
- package/lib/commands/common/app-selector.js +1 -1
- package/lib/commands/common/async-task.js +1 -1
- package/lib/commands/common/dry-run.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/common/validate.js +1 -1
- package/lib/commands/config/delete.js +1 -1
- package/lib/commands/config/get.js +1 -1
- package/lib/commands/config/index.js +1 -1
- package/lib/commands/config/init.js +1 -1
- package/lib/commands/config/list.js +1 -1
- package/lib/commands/config/set.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/dataset/batch-design.js +1 -1
- package/lib/commands/dataset/business-group-update.js +1 -1
- package/lib/commands/dataset/business-groups.js +1 -1
- package/lib/commands/dataset/capability.js +1 -1
- package/lib/commands/dataset/cross-relation-create.js +1 -1
- package/lib/commands/dataset/cross-relation-delete.js +1 -1
- package/lib/commands/dataset/cross-relation-list.js +1 -1
- package/lib/commands/dataset/cross-relation-shared.js +1 -1
- package/lib/commands/dataset/cross-relation-update.js +1 -1
- package/lib/commands/dataset/delete.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/extend-update.js +1 -1
- package/lib/commands/dataset/field-restore.js +1 -1
- package/lib/commands/dataset/field-update.js +1 -1
- package/lib/commands/dataset/generate.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/dataset/relation-audit.js +1 -1
- package/lib/commands/dataset/relation-create.js +1 -1
- package/lib/commands/dataset/relation-delete.js +1 -1
- package/lib/commands/dataset/relation-shared.js +1 -1
- package/lib/commands/dataset/relation-update.js +1 -1
- package/lib/commands/dataset/relations.js +1 -1
- package/lib/commands/dataset/rename.js +1 -1
- package/lib/commands/dataset/restore.js +1 -1
- package/lib/commands/dataset/user-deleted-field-list.js +1 -1
- package/lib/commands/db/analysis-batching.js +1 -1
- package/lib/commands/db/analyze-batch-plan.js +1 -1
- package/lib/commands/db/analyze-cancel.js +1 -1
- package/lib/commands/db/analyze-start.js +1 -1
- package/lib/commands/db/analyze-status.js +1 -1
- package/lib/commands/db/create.js +1 -1
- package/lib/commands/db/delete.js +1 -1
- package/lib/commands/db/detail.js +1 -1
- package/lib/commands/db/diff-refresh-start.js +1 -1
- package/lib/commands/db/diff-refresh-status.js +1 -1
- package/lib/commands/db/diff.js +1 -1
- package/lib/commands/db/index.js +1 -1
- package/lib/commands/db/list.js +1 -1
- package/lib/commands/db/shared.js +1 -1
- package/lib/commands/db/table-diff-shared.js +1 -1
- package/lib/commands/db/tables.js +1 -1
- package/lib/commands/db/test.js +1 -1
- package/lib/commands/db/update.js +1 -1
- package/lib/commands/deployment/index.js +1 -1
- package/lib/commands/deployment/sync-all.js +1 -1
- package/lib/commands/deployment/sync-jobs.js +1 -1
- package/lib/commands/deployment/sync-status.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/flow/create.js +1 -1
- package/lib/commands/flow/detail.js +1 -1
- package/lib/commands/flow/index.js +1 -1
- package/lib/commands/flow/list.js +1 -1
- package/lib/commands/flow/publish.js +1 -1
- package/lib/commands/flow/runtime-resources-shared.js +1 -1
- package/lib/commands/flow/runtime-role-list.js +1 -1
- package/lib/commands/flow/runtime-role-user-list.js +1 -1
- package/lib/commands/flow/runtime-user-search.js +1 -1
- package/lib/commands/flow/shared.js +1 -1
- package/lib/commands/flow/update.js +1 -1
- package/lib/commands/flow/validate.js +1 -1
- package/lib/commands/instant-api-policy/current.js +1 -1
- package/lib/commands/instant-api-policy/index.js +1 -1
- package/lib/commands/instant-api-policy/init.js +1 -1
- package/lib/commands/instant-api-policy/publish.js +1 -1
- package/lib/commands/instant-api-policy/pull.js +1 -1
- package/lib/commands/instant-api-policy/revision.js +1 -1
- package/lib/commands/instant-api-policy/revisions.js +1 -1
- package/lib/commands/instant-api-policy/rollback.js +1 -1
- package/lib/commands/instant-api-policy/shared.js +1 -1
- package/lib/commands/instant-api-policy/validate.js +1 -1
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/nudge.js +1 -1
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/issue/shared.js +1 -1
- package/lib/commands/kb/create.js +1 -1
- package/lib/commands/kb/delete.js +1 -1
- package/lib/commands/kb/detail.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/kb/list.js +1 -1
- package/lib/commands/kb/search.js +1 -1
- package/lib/commands/kb/shared.js +1 -1
- package/lib/commands/kb/update.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/asset-update.js +1 -1
- package/lib/commands/menu/delete.js +1 -1
- package/lib/commands/menu/external-link-create.js +1 -1
- package/lib/commands/menu/external-link-update.js +1 -1
- package/lib/commands/menu/group-create.js +1 -1
- package/lib/commands/menu/group-update.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/list.js +1 -1
- package/lib/commands/menu/move.js +1 -1
- package/lib/commands/menu/regroup-start.js +1 -1
- package/lib/commands/menu/rename.js +1 -1
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/delete-plan.js +1 -1
- package/lib/commands/menu/shared/facts.js +1 -1
- package/lib/commands/menu/shared/index.js +1 -1
- package/lib/commands/menu/shared/inquirer.js +1 -1
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.js +1 -1
- package/lib/commands/menu/shared/mutations.js +1 -1
- package/lib/commands/menu/shared/path.js +1 -1
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/subapp-assets.js +1 -1
- package/lib/commands/menu/shared/sync-core.js +1 -1
- package/lib/commands/menu/shared/update-core.js +1 -1
- package/lib/commands/menu/shared/valid-url.js +1 -1
- package/lib/commands/menu/subapp-assets-status.js +1 -1
- package/lib/commands/menu/subapp-assets-update.js +1 -1
- package/lib/commands/menu/sync.js +1 -1
- package/lib/commands/menu/visibility-update.js +1 -1
- package/lib/commands/notification/config-create.js +1 -1
- package/lib/commands/notification/config-delete.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/config-update.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/notification/shared.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/page/create.js +1 -1
- package/lib/commands/page/custom/detail.js +1 -1
- package/lib/commands/page/custom/list.js +1 -1
- package/lib/commands/page/custom/publish.js +1 -1
- package/lib/commands/page/custom/shared.js +1 -1
- package/lib/commands/page/custom/syntax.js +1 -1
- package/lib/commands/page/custom/update.js +1 -1
- package/lib/commands/page/data-list-status.js +1 -1
- package/lib/commands/page/generate-start.js +1 -1
- package/lib/commands/page/generate-status.js +1 -1
- package/lib/commands/page/index.js +1 -1
- package/lib/commands/page/pull.js +1 -1
- package/lib/commands/page/push.js +1 -1
- package/lib/commands/page/relation-audit.js +1 -1
- package/lib/commands/page/restore.js +1 -1
- package/lib/commands/page/shared.js +1 -1
- package/lib/commands/page/sync.js +1 -1
- package/lib/commands/project/api-architecture-upgrade.js +1 -1
- package/lib/commands/project/create/enhanced-guided-create.js +1 -1
- package/lib/commands/project/create/format-elapsed.js +1 -1
- package/lib/commands/project/create/main.js +1 -1
- package/lib/commands/project/create/materialize-project-template.js +1 -1
- package/lib/commands/project/create/project-name.js +1 -1
- package/lib/commands/project/create/project-template-archive.js +1 -1
- package/lib/commands/project/create/project-template-path.js +1 -1
- package/lib/commands/project/create/use-copy-project-template.js +1 -1
- package/lib/commands/project/create/use-format-code.js +1 -1
- package/lib/commands/project/create/use-install-dependencies.js +1 -1
- package/lib/commands/project/domain-routing-sync.js +1 -1
- package/lib/commands/project/index.js +1 -1
- package/lib/commands/project/upgrade.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/role/user-resolve.js +1 -1
- package/lib/commands/rule/get.js +1 -1
- package/lib/commands/rule/index.js +1 -1
- package/lib/commands/rule/list.js +1 -1
- package/lib/commands/rule/set.js +1 -1
- package/lib/commands/rule/shared.js +1 -1
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/sql/create.js +1 -1
- package/lib/commands/sql/delete.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/sql/list.js +1 -1
- package/lib/commands/sql/pull.js +1 -1
- package/lib/commands/sql/push.js +1 -1
- package/lib/commands/sql/shared.js +1 -1
- package/lib/commands/sql/status.js +1 -1
- package/lib/commands/sql/validate.js +1 -1
- package/lib/commands/task/index.js +1 -1
- package/lib/commands/task/status.js +1 -1
- package/lib/commands/tenant/index.js +1 -1
- package/lib/commands/tenant/members-list.js +1 -1
- package/lib/commands/tenant/shared.js +1 -1
- package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
- package/lib/commands/user-account/feishu-bind.js +1 -1
- package/lib/commands/user-account/index.js +1 -1
- package/lib/commands/workspace/add.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/commands/workspace/remove.js +1 -1
- package/lib/config/domain-config.js +1 -1
- package/lib/config/project-domain-routing.js +1 -1
- package/lib/config/region-config.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/cdn.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/paths.js +1 -1
- package/lib/constant/region.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/routing-profile.js +1 -1
- package/lib/context/app-resolver.js +1 -1
- package/lib/context/auth-resolver.js +1 -1
- package/lib/context/config-loader.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/bff/config.js +1 -1
- package/lib/core/bff/file-system.js +1 -1
- package/lib/core/bff/hash.js +1 -1
- package/lib/core/bff/hook-directory.js +1 -1
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/cross-db-relation.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/flow-config.js +1 -1
- package/lib/core/instant-api-policy/config.js +1 -1
- package/lib/core/kb-search-client.js +1 -1
- package/lib/core/page/file-system.js +1 -1
- package/lib/core/page/hash.js +1 -1
- package/lib/core/page/lock.js +1 -1
- package/lib/core/page/lr-smart-jsx.js +1 -1
- package/lib/core/sql-index-auditor.js +1 -1
- package/lib/core/sql-sync/config.js +1 -1
- package/lib/core/sql-sync/file-system.js +1 -1
- package/lib/core/sql-sync/hash.js +1 -1
- package/lib/core/sql-sync/lock.js +1 -1
- package/lib/core/sql-sync/utils.js +1 -1
- package/lib/core/sql-validator.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/error-output.js +1 -1
- package/lib/framework/explicit-yes.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-alias.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/supported-flags.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/generated/official-routing.js +1 -1
- package/lib/generated/routing-contract.js +1 -1
- package/lib/help.js +1 -1
- package/lib/postinstall.js +1 -1
- package/lib/runtime/confirmation.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/skills/builtin-skill.js +1 -1
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/skill-presence.js +1 -1
- package/lib/telemetry/cli-command-trace.js +1 -1
- package/lib/telemetry/cli-help-trace.js +1 -1
- package/lib/telemetry/ensure-cli-otel-config.js +1 -1
- package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
- package/lib/telemetry/send-cli-trace-log.js +1 -1
- package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
- package/lib/utils/ai_config.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cdn-config.js +1 -1
- package/lib/utils/check-sdk-version.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/config.js +1 -1
- package/lib/utils/entity-with-id.js +1 -1
- package/lib/utils/file-utils.js +1 -1
- package/lib/utils/guides-cdn.js +1 -1
- package/lib/utils/http-client.js +1 -1
- package/lib/utils/is-non-interactive.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/sleep.js +1 -1
- package/lib/utils/template-replacer.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/with-active-cookie.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
- package/skills/rabetbase/SKILL.md +3 -3
- package/skills/rabetbase/guides/independent-deployment.md +11 -1
- package/skills/rabetbase/references/rabetbase-config.md +16 -19
- package/skills/rabetbase/references/rabetbase-menu-visibility-update.md +5 -4
- package/skills/rabetbase/references/rabetbase-workspace.md +3 -1
- package/skills/rabetbase-page-generation/SKILL.md +1 -1
- package/skills/rabetbase.manifest.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a255_0x10fe(){const _0x4d1971=['20lLSaOb','name','5928570BddVys','1326FjXfHD','39684612jnHaeX','2128588PjzsYV','workspace\x20add','687XVZomP','10XEAsYQ','1829665ewtySa','workspace','8htNdRp','4790688YSRLuq','8104782voSTZB'];a255_0x10fe=function(){return _0x4d1971;};return a255_0x10fe();}const a255_0x56693c=a255_0x2009;(function(_0x2a1c54,_0x20866e){const _0x4b7f26=a255_0x2009,_0x5f41b7=_0x2a1c54();while(!![]){try{const _0x2b20f1=parseInt(_0x4b7f26(0x144))/0x1+parseInt(_0x4b7f26(0x13e))/0x2*(-parseInt(_0x4b7f26(0x142))/0x3)+parseInt(_0x4b7f26(0x140))/0x4*(-parseInt(_0x4b7f26(0x143))/0x5)+-parseInt(_0x4b7f26(0x139))/0x6+-parseInt(_0x4b7f26(0x13a))/0x7*(parseInt(_0x4b7f26(0x138))/0x8)+parseInt(_0x4b7f26(0x13d))/0x9*(-parseInt(_0x4b7f26(0x13b))/0xa)+parseInt(_0x4b7f26(0x13f))/0xb;if(_0x2b20f1===_0x20866e)break;else _0x5f41b7['push'](_0x5f41b7['shift']());}catch(_0x23f667){_0x5f41b7['push'](_0x5f41b7['shift']());}}}(a255_0x10fe,0xe752e));function a255_0x2009(_0x1024af,_0xc10369){_0x1024af=_0x1024af-0x138;const _0x10fe26=a255_0x10fe();let _0x2009fa=_0x10fe26[_0x1024af];return _0x2009fa;}import{buildAppAddFlags,runAppAdd,validateAppName}from'../../commands/common/app-registry.js';export const workspaceAddDefinition={'service':a255_0x56693c(0x145),'command':'add','description':'Register\x20an\x20app\x20profile\x20in\x20the\x20current\x20workspace\x20(or\x20--global)','risk':'write','requiresAuth':![],'requiresAppCode':![],'args':[{'name':a255_0x56693c(0x13c),'description':'App\x20profile\x20name','required':!![]}],'flags':buildAppAddFlags(),'validate':_0x4d089b=>validateAppName(_0x4d089b,a255_0x56693c(0x141)),'execute':_0x45480d=>runAppAdd(_0x45480d,a255_0x56693c(0x141))};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a256_0x2963(_0x33178a,_0x1fd4a1){_0x33178a=_0x33178a-0x8d;const _0x5ec4e6=a256_0x5ec4();let _0x296312=_0x5ec4e6[_0x33178a];return _0x296312;}const a256_0x4cee48=a256_0x2963;(function(_0x4617d5,_0x30e945){const _0x4feb45=a256_0x2963,_0xed2ec7=_0x4617d5();while(!![]){try{const _0xa201d8=-parseInt(_0x4feb45(0xb1))/0x1+-parseInt(_0x4feb45(0xc5))/0x2*(parseInt(_0x4feb45(0x8e))/0x3)+-parseInt(_0x4feb45(0x9b))/0x4*(-parseInt(_0x4feb45(0xa7))/0x5)+-parseInt(_0x4feb45(0xa6))/0x6+parseInt(_0x4feb45(0x8f))/0x7+parseInt(_0x4feb45(0xb3))/0x8*(parseInt(_0x4feb45(0xbe))/0x9)+parseInt(_0x4feb45(0xa5))/0xa;if(_0xa201d8===_0x30e945)break;else _0xed2ec7['push'](_0xed2ec7['shift']());}catch(_0x15a7f4){_0xed2ec7['push'](_0xed2ec7['shift']());}}}(a256_0x5ec4,0x38c2c));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{RABETBASE_ENV_VALUES}from'../../constant/env.js';import{RABETBASE_OUTPUT_FORMAT_VALUES}from'../../constant/output.js';import{RISK_LEVEL_VALUES}from'../../constant/risk.js';import{validateAppcode}from'../../commands/common/validate.js';import{readConfigFile,readRawConfigWithLayers,resolveWriteConfigPath,writeConfigFile}from'../../context.js';import{workspaceAddDefinition}from'../../commands/workspace/add.js';import{workspaceRemoveDefinition}from'../../commands/workspace/remove.js';import{normalizeStoredDefaultApp}from'../../config/schema.js';import{ENABLED_LOVRABET_REGION_VALUES}from'../../constant/region.js';const WORKSPACE_USAGE=CLI_BIN_NAME+a256_0x4cee48(0xb2),SAFE_PROFILE_KEYS=[a256_0x4cee48(0x9d),'apiGroup','region','env',a256_0x4cee48(0xac),'format',a256_0x4cee48(0xb4),a256_0x4cee48(0xc4),a256_0x4cee48(0x9e)],workspaceFlags=[{'name':a256_0x4cee48(0xc1),'type':a256_0x4cee48(0xbc),'description':a256_0x4cee48(0x97)},{'name':a256_0x4cee48(0x9d),'type':a256_0x4cee48(0xbc),'description':a256_0x4cee48(0xba)},{'name':a256_0x4cee48(0xb9),'type':a256_0x4cee48(0xbc),'description':a256_0x4cee48(0x9f)},{'name':a256_0x4cee48(0xc2),'type':a256_0x4cee48(0xbc),'description':a256_0x4cee48(0xc6),'enum':[...ENABLED_LOVRABET_REGION_VALUES]},{'name':a256_0x4cee48(0xb8),'type':a256_0x4cee48(0xbc),'description':a256_0x4cee48(0xa0),'enum':[...RABETBASE_ENV_VALUES]},{'name':a256_0x4cee48(0xac),'type':a256_0x4cee48(0xbc),'description':a256_0x4cee48(0x93)},{'name':'defaultFormat','type':a256_0x4cee48(0xbc),'description':'Default\x20output\x20format\x20for\x20this\x20workspace\x20app\x20profile','enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':a256_0x4cee48(0xb4),'type':a256_0x4cee48(0xa8),'description':a256_0x4cee48(0xb5)},{'name':a256_0x4cee48(0xc4),'type':a256_0x4cee48(0xbc),'description':'Risk\x20level\x20for\x20this\x20workspace\x20app\x20profile','enum':[...RISK_LEVEL_VALUES]},{'name':a256_0x4cee48(0x9e),'type':a256_0x4cee48(0xbc),'description':a256_0x4cee48(0xb0)}];function isRecord(_0x2abda2){const _0x16ff17=a256_0x4cee48;return!!_0x2abda2&&typeof _0x2abda2===_0x16ff17(0xa4)&&!Array[_0x16ff17(0xbd)](_0x2abda2);}function assertValidAppcode(_0x124948){const _0x529540=a256_0x4cee48,{valid:_0x18a818,message:_0x303d6c}=validateAppcode(_0x124948);if(!_0x18a818)throw CliErrors[_0x529540(0xa1)](_0x529540(0x91)+_0x124948,_0x303d6c);}function sanitizeProfile(_0x25b29f){if(!isRecord(_0x25b29f))return{};const _0x5cdfd0={};for(const _0x559cd3 of SAFE_PROFILE_KEYS){if(_0x25b29f[_0x559cd3]!==undefined)_0x5cdfd0[_0x559cd3]=_0x25b29f[_0x559cd3];}return _0x5cdfd0;}function a256_0x5ec4(){const _0x2c18c3=['workspace.','\x20--appcode\x20<code>`.','initialized','4MLViQM','.\x20Credentials:\x20not\x20written.','appcode','locale','Join\x20key\x20for\x20app\x20profiles\x20that\x20share\x20one\x20generated\x20API\x20model\x20registry','Target\x20environment','validation','\x22\x20not\x20found.','globalConfig','object','2112650wVONCW','363324BgOuoc','383370QOFHIl','number','keys','str','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20`','apiDir','Missing\x20workspace\x20app\x20selector.','format','use','App\x20locale\x20for\x20this\x20workspace\x20app\x20profile\x20(not\x20CLI\x20language;\x20reserved\x20for\x20later\x20app\x20use)','180804AJwUHL','\x20workspace\x20<init|use>\x20--app\x20<name>\x20[--appcode\x20<code>]','8jskZJD','pageSize','Default\x20page\x20size\x20for\x20this\x20workspace\x20app\x20profile','updated','workspace','env','apiGroup','App\x20code\x20to\x20bind\x20to\x20this\x20workspace','init','string','isArray','885123LurDWm','Switch\x20the\x20current\x20workspace\x20app\x20binding','trim','app','region','\x20workspace\x20','riskLevel','11768WyMjCi','Country/region\x20for\x20this\x20workspace\x20app\x20profile','write','93vSgOMZ','1889776xpnNGc','\x20workspace\x20use\x20--app\x20<name>`.','Invalid\x20appcode:\x20','Use\x20`','API\x20directory\x20path\x20for\x20this\x20workspace\x20app\x20profile','App\x20\x22','apps','join','App\x20profile\x20name\x20to\x20use\x20in\x20this\x20workspace'];a256_0x5ec4=function(){return _0x2c18c3;};return a256_0x5ec4();}function cloneProfile(_0xa562ae){return isRecord(_0xa562ae)?{..._0xa562ae}:{};}function collectWorkspaceProfileOverrides(_0x2ab96a){const _0x1899b1=a256_0x4cee48,_0x386eed={},_0x354f19=_0x2ab96a[_0x1899b1(0xaa)](_0x1899b1(0xb9)),_0x3906fb=_0x2ab96a[_0x1899b1(0xaa)]('region'),_0xa6be89=_0x2ab96a[_0x1899b1(0xaa)](_0x1899b1(0xb8)),_0x3239e6=_0x2ab96a['str']('apiDir'),_0x46e423=_0x2ab96a[_0x1899b1(0xaa)]('defaultFormat'),_0x306752=_0x2ab96a['flag'](_0x1899b1(0xb4)),_0xb917fd=_0x2ab96a[_0x1899b1(0xaa)](_0x1899b1(0xc4)),_0x12e6d5=_0x2ab96a['str'](_0x1899b1(0x9e));if(_0x354f19)_0x386eed['apiGroup']=_0x354f19;if(_0x3906fb)_0x386eed[_0x1899b1(0xc2)]=_0x3906fb;if(_0xa6be89)_0x386eed[_0x1899b1(0xb8)]=_0xa6be89;if(_0x3239e6)_0x386eed[_0x1899b1(0xac)]=_0x3239e6;if(_0x46e423)_0x386eed[_0x1899b1(0xae)]=_0x46e423;if(_0x306752!==undefined&&_0x306752!=='')_0x386eed[_0x1899b1(0xb4)]=Number(_0x306752);if(_0xb917fd)_0x386eed[_0x1899b1(0xc4)]=_0xb917fd;if(_0x12e6d5)_0x386eed[_0x1899b1(0x9e)]=_0x12e6d5;return _0x386eed;}async function validateWorkspaceArgs(_0x4db0a9){const _0x558410=a256_0x4cee48,_0xcd1164=_0x4db0a9[_0x558410(0xaa)](_0x558410(0xc1))[_0x558410(0xc0)](),_0x2da6a1=_0x4db0a9['str'](_0x558410(0x9d))[_0x558410(0xc0)]();if(!_0xcd1164&&!_0x2da6a1)throw CliErrors['validation']('Missing\x20workspace\x20app\x20selector.',_0x558410(0x92)+CLI_BIN_NAME+_0x558410(0xab)+CLI_BIN_NAME+_0x558410(0x90));if(_0x2da6a1)assertValidAppcode(_0x2da6a1);}function resolveKnownApps(){const _0x19dd2d=a256_0x4cee48,{config:_0x144684,layers:_0x324ab6}=readRawConfigWithLayers(),_0xe55d96=isRecord(_0x144684[_0x19dd2d(0x95)])?_0x144684[_0x19dd2d(0x95)]:{},_0xef384d=isRecord(_0x324ab6[_0x19dd2d(0xa3)][_0x19dd2d(0x95)])?_0x324ab6[_0x19dd2d(0xa3)][_0x19dd2d(0x95)]:{};return{..._0xef384d,..._0xe55d96};}async function configureWorkspace(_0x494a50,_0x496dd8){const _0x5bab4d=a256_0x4cee48,_0x4d5db4=_0x494a50[_0x5bab4d(0xaa)]('app')[_0x5bab4d(0xc0)](),_0x2060a5=_0x494a50['str'](_0x5bab4d(0x9d))[_0x5bab4d(0xc0)](),_0x24589f=_0x4d5db4||_0x2060a5;if(!_0x24589f)throw CliErrors[_0x5bab4d(0xa1)](_0x5bab4d(0xad),_0x5bab4d(0x92)+CLI_BIN_NAME+_0x5bab4d(0xab)+CLI_BIN_NAME+_0x5bab4d(0x90));if(_0x2060a5)assertValidAppcode(_0x2060a5);const _0x12889e=resolveWriteConfigPath('project'),_0x1dea75=readConfigFile(_0x12889e),_0x4e3d6b=resolveKnownApps(),_0x5d9909=isRecord(_0x1dea75['apps'])?{..._0x1dea75['apps']}:{},_0x35acc0=cloneProfile(_0x5d9909[_0x24589f]),_0x27d0ce=sanitizeProfile(_0x4e3d6b[_0x24589f]),_0x4cf1d7=_0x2060a5?{}:_0x27d0ce,_0x540072=_0x2060a5||_0x4cf1d7[_0x5bab4d(0x9d)];if(!_0x540072){const _0x43f570=Object[_0x5bab4d(0xa9)](_0x4e3d6b),_0x2e5c4e=_0x43f570['length']===0x0?'Use\x20`'+CLI_BIN_NAME+_0x5bab4d(0xc3)+_0x496dd8+'\x20--app\x20'+_0x24589f+_0x5bab4d(0x99):'Pass\x20--appcode\x20<code>,\x20or\x20choose\x20one\x20of:\x20'+_0x43f570[_0x5bab4d(0x96)](',\x20');throw CliErrors['validation'](_0x5bab4d(0x94)+_0x24589f+_0x5bab4d(0xa2),_0x2e5c4e);}assertValidAppcode(String(_0x540072));const _0x12ce5f={..._0x4cf1d7,..._0x35acc0,'appcode':String(_0x540072),...collectWorkspaceProfileOverrides(_0x494a50)};return _0x5d9909[_0x24589f]=_0x12ce5f,_0x1dea75['apps']=_0x5d9909,normalizeStoredDefaultApp(_0x1dea75,_0x24589f),delete _0x1dea75[_0x5bab4d(0x9d)],delete _0x1dea75['app'],_0x12ce5f[_0x5bab4d(0xb8)]&&(_0x1dea75[_0x5bab4d(0xb8)]=_0x12ce5f[_0x5bab4d(0xb8)]),writeConfigFile(_0x12889e,_0x1dea75),{'ok':!![],'message':'Workspace\x20'+(_0x496dd8==='init'?_0x5bab4d(0x9a):_0x5bab4d(0xb6))+':\x20'+_0x24589f+'\x20(appcode:\x20'+_0x12ce5f[_0x5bab4d(0x9d)]+').\x20Config:\x20'+_0x12889e+_0x5bab4d(0x9c),'data':{'operation':_0x5bab4d(0x98)+_0x496dd8,'configPath':_0x12889e,'app':_0x24589f,'appcode':_0x12ce5f[_0x5bab4d(0x9d)],'apiGroup':_0x12ce5f[_0x5bab4d(0xb9)]??null,'region':_0x12ce5f[_0x5bab4d(0xc2)]??null,'env':_0x12ce5f[_0x5bab4d(0xb8)]??null,'credentialsWritten':![]}};}const workspaceInitDefinition={'service':a256_0x4cee48(0xb7),'command':'init','description':'Initialize\x20the\x20current\x20workspace\x20app\x20binding','risk':'write','requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x2f160a=>configureWorkspace(_0x2f160a,a256_0x4cee48(0xbb))},workspaceUseDefinition={'service':a256_0x4cee48(0xb7),'command':'use','description':a256_0x4cee48(0xbf),'risk':a256_0x4cee48(0x8d),'requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x1371f8=>configureWorkspace(_0x1371f8,a256_0x4cee48(0xaf))};export const workspaceDefinitions=[workspaceInitDefinition,workspaceUseDefinition,workspaceAddDefinition,workspaceRemoveDefinition];export{WORKSPACE_USAGE};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a257_0x171f83=a257_0x553a;(function(_0x3db931,_0x836e0){const _0x589042=a257_0x553a,_0x3eb96c=_0x3db931();while(!![]){try{const _0x4a06ac=-parseInt(_0x589042(0x148))/0x1*(-parseInt(_0x589042(0x14a))/0x2)+parseInt(_0x589042(0x152))/0x3+-parseInt(_0x589042(0x149))/0x4*(parseInt(_0x589042(0x14c))/0x5)+parseInt(_0x589042(0x14b))/0x6+-parseInt(_0x589042(0x153))/0x7+-parseInt(_0x589042(0x156))/0x8*(-parseInt(_0x589042(0x14d))/0x9)+parseInt(_0x589042(0x158))/0xa*(parseInt(_0x589042(0x150))/0xb);if(_0x4a06ac===_0x836e0)break;else _0x3eb96c['push'](_0x3eb96c['shift']());}catch(_0x5e9ed7){_0x3eb96c['push'](_0x3eb96c['shift']());}}}(a257_0xc544,0x449a2));import{buildAppRemoveFlags,runAppRemove,validateAppName}from'../../commands/common/app-registry.js';export const workspaceRemoveDefinition={'service':a257_0x171f83(0x154),'command':a257_0x171f83(0x14e),'description':'Remove\x20an\x20app\x20profile\x20from\x20the\x20current\x20workspace\x20(or\x20--global)','risk':a257_0x171f83(0x155),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':a257_0x171f83(0x151),'description':a257_0x171f83(0x157),'required':!![]}],'flags':buildAppRemoveFlags(),'validate':_0x3df083=>validateAppName(_0x3df083,'workspace\x20remove'),'execute':_0x32a074=>runAppRemove(_0x32a074,a257_0x171f83(0x14f))};function a257_0x553a(_0xe24f9,_0x57a659){_0xe24f9=_0xe24f9-0x148;const _0xc54417=a257_0xc544();let _0x553a85=_0xc54417[_0xe24f9];return _0x553a85;}function a257_0xc544(){const _0x544452=['workspace','write','8GIeCwy','App\x20profile\x20name\x20to\x20remove','598240jlJBib','16453zHpemD','8RTTrUd','10oTNAKS','445722vXZKYs','754385JrWlUZ','2465757fInxlY','remove','workspace\x20remove','77HpWcFC','name','822630xdPNiD','3785285sBbONm'];a257_0xc544=function(){return _0x544452;};return a257_0xc544();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a258_0x1bf971=a258_0x1fcb;(function(_0x1dde91,_0x3874b3){const _0x5d5259=a258_0x1fcb,_0x196511=_0x1dde91();while(!![]){try{const _0x4c58a8=-parseInt(_0x5d5259(0x167))/0x1+-parseInt(_0x5d5259(0x13f))/0x2*(parseInt(_0x5d5259(0x11c))/0x3)+-parseInt(_0x5d5259(0x11b))/0x4+parseInt(_0x5d5259(0x149))/0x5+-parseInt(_0x5d5259(0x156))/0x6+parseInt(_0x5d5259(0x126))/0x7*(parseInt(_0x5d5259(0x12d))/0x8)+parseInt(_0x5d5259(0x138))/0x9*(parseInt(_0x5d5259(0x141))/0xa);if(_0x4c58a8===_0x3874b3)break;else _0x196511['push'](_0x196511['shift']());}catch(_0x585ee5){_0x196511['push'](_0x196511['shift']());}}}(a258_0x23fd,0x1f583));import{existsSync,readFileSync}from'node:fs';import{isAbsolute,resolve}from'node:path';function a258_0x23fd(){const _0x1622c9=['mode','local-domain',':\x20expected\x20a\x20non-empty\x20HTTPS\x20origin.','origin','\x20without\x20credentials,\x20query,\x20or\x20fragment.','utf8','skillDomain','Invalid\x20cdn.','\x20does\x20not\x20provide\x20a\x20Domain\x20for\x20','499848UyXKLo','711888ajszcr','Invalid\x20enterprise\x20routing\x20manifest:\x20cdn\x20must\x20be\x20an\x20object.','Invalid\x20enterprise\x20routing\x20config:\x20expected\x20an\x20object.','kb-domain','username','kind','kbServiceDomain','object','\x22\x20and\x20kind\x20\x22','skill-domain','14NvepHG','For\x20internal\x20deployments,\x20terminate\x20TLS\x20at\x20the\x20ingress,\x20reverse\x20proxy,\x20or\x20load\x20balancer;\x20an\x20internal\x20CA\x20is\x20supported.','pathname','kb-service-domain',':\x20expected\x20an\x20HTTPS\x20origin\x20or\x20consumer\x20Domain\x20object.','enterprise-v1','apiDomain','807016goyjSw','filter',':\x20expected\x20an\x20HTTPS\x20origin\x20without\x20credentials,\x20path,\x20query,\x20or\x20fragment.','domain-config','search','cdn','Enterprise\x20routing\x20manifest\x20is\x20missing\x20required\x20Domain(s):\x20','length','userDomain','hash','legacy','63ELbUhc','replace','Unsupported\x20enterprise\x20CDN\x20field(s):\x20','Unsupported\x20domain\x20config\x20field(s):\x20','Invalid\x20enterprise\x20routing\x20manifest:\x20domains\x20must\x20be\x20an\x20object.','certificateDomain','domains','2phlCwN','appDomain','708010qnPOUr','isArray','password','Invalid\x20','Invalid\x20domain\x20config\x20JSON:\x20','href','validation','rabetbase-cli','291760drOyxW','Invalid\x20domain\x20config:\x20provide\x20at\x20least\x20one\x20supported\x20Domain.','keys','Enterprise\x20routing\x20manifest\x20is\x20missing\x20required\x20CDN\x20field(s):\x20','certificate-domain','\x22\x20is\x20not\x20a\x20valid\x20URL.','kbDomain','Update\x20the\x20manifest\x20so\x20both\x20CLIs\x20consume\x20the\x20same\x20routing\x20data.','string','app-domain','lovrabet',':\x20expected\x20a\x20non-empty\x20HTTPS\x20URL.','https:','1215912JxdpEu','Enterprise\x20routing\x20manifest\x20requires\x20localDomain\x20and\x20certificateDomain\x20together.','join','cwd','Enterprise\x20routing\x20manifests\x20cannot\x20be\x20combined\x20with\x20individual\x20Domain\x20flags.','base\x20URL','Allowed\x20fields:\x20','user-domain',':\x20expected\x20an\x20HTTPS\x20','str','protocol','includes','Invalid\x20domain\x20config:\x20expected\x20a\x20JSON\x20object.','trim','runtimeDomain','parse','localDomain','62416FKLYXe'];a258_0x23fd=function(){return _0x1622c9;};return a258_0x23fd();}import{CliErrors}from'../errors.js';import{ENTERPRISE_ROUTING_CDN_FIELDS,ENTERPRISE_ROUTING_DOMAIN_FIELDS,ENTERPRISE_ROUTING_KIND,ENTERPRISE_ROUTING_PROTOCOL,REQUIRED_ENTERPRISE_ROUTING_CDN_FIELDS,REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS}from'../generated/routing-contract.js';export const DOMAIN_CONFIG_FIELDS=[a258_0x1bf971(0x135),'apiDomain','runtimeDomain',a258_0x1bf971(0x118),a258_0x1bf971(0x14f),a258_0x1bf971(0x122),a258_0x1bf971(0x140),a258_0x1bf971(0x166),a258_0x1bf971(0x13d)];function a258_0x1fcb(_0xc36572,_0x5d4d0b){_0xc36572=_0xc36572-0x116;const _0x23fdfd=a258_0x23fd();let _0x1fcb97=_0x23fdfd[_0xc36572];return _0x1fcb97;}const DOMAIN_FLAGS={'userDomain':a258_0x1bf971(0x15d),'apiDomain':'api-domain','runtimeDomain':'runtime-domain','skillDomain':a258_0x1bf971(0x125),'kbDomain':a258_0x1bf971(0x11f),'kbServiceDomain':a258_0x1bf971(0x129),'appDomain':a258_0x1bf971(0x152),'localDomain':a258_0x1bf971(0x169),'certificateDomain':a258_0x1bf971(0x14d)};export const LEGACY_DOMAIN_CONFIG_FIELDS=['agentDomain','platformDomain','skillHubDomain'];const ENTERPRISE_TO_LOCAL_FIELD={'userDomain':a258_0x1bf971(0x135),'apiDomain':a258_0x1bf971(0x12c),'runtimeDomain':a258_0x1bf971(0x164),'skillDomain':a258_0x1bf971(0x118),'kbDomain':a258_0x1bf971(0x14f),'kbServiceDomain':'kbServiceDomain','appDomain':'appDomain','localDomain':a258_0x1bf971(0x166),'certificateDomain':a258_0x1bf971(0x13d)},ROUTING_CONSUMER=a258_0x1bf971(0x148);export function normalizeDomainOrigin(_0x5ada98,_0x32acb4){const _0x31a4f3=a258_0x1bf971;if(typeof _0x32acb4!==_0x31a4f3(0x151)||!_0x32acb4[_0x31a4f3(0x163)]())throw CliErrors[_0x31a4f3(0x147)](_0x31a4f3(0x144)+_0x5ada98+_0x31a4f3(0x16a));let _0x1fa9d6;try{_0x1fa9d6=new URL(_0x32acb4[_0x31a4f3(0x163)]());}catch{throw CliErrors['validation']('Invalid\x20'+_0x5ada98+':\x20\x22'+_0x32acb4+'\x22\x20is\x20not\x20a\x20valid\x20URL.');}if(_0x1fa9d6[_0x31a4f3(0x160)]!==_0x31a4f3(0x155)||_0x1fa9d6[_0x31a4f3(0x120)]||_0x1fa9d6[_0x31a4f3(0x143)]||_0x1fa9d6[_0x31a4f3(0x128)]!=='/'&&_0x1fa9d6[_0x31a4f3(0x128)]!==''||_0x1fa9d6[_0x31a4f3(0x131)]||_0x1fa9d6['hash'])throw CliErrors[_0x31a4f3(0x147)]('Invalid\x20'+_0x5ada98+_0x31a4f3(0x12f),_0x31a4f3(0x127));return _0x1fa9d6['origin'];}export function normalizeRoutingDomainValue(_0x4b1bd2,_0x46bfe6){const _0x14d79a=a258_0x1bf971;if(typeof _0x46bfe6===_0x14d79a(0x151))return normalizeDomainOrigin(_0x4b1bd2,_0x46bfe6);if(!_0x46bfe6||typeof _0x46bfe6!=='object'||Array['isArray'](_0x46bfe6))throw CliErrors[_0x14d79a(0x147)](_0x14d79a(0x144)+_0x4b1bd2+_0x14d79a(0x12a));const _0x5d8507=_0x46bfe6,_0x38122d=_0x5d8507[ROUTING_CONSUMER]??_0x5d8507['default'];if(_0x38122d===undefined)throw CliErrors[_0x14d79a(0x147)]('Enterprise\x20'+_0x4b1bd2+_0x14d79a(0x11a)+ROUTING_CONSUMER+'\x20and\x20has\x20no\x20default.');return normalizeDomainOrigin(_0x4b1bd2,_0x38122d);}export function normalizeCdnBaseUrl(_0x5d24fd,_0x2676a2){const _0x3d5bdd=a258_0x1bf971;if(typeof _0x2676a2!=='string'||!_0x2676a2[_0x3d5bdd(0x163)]())throw CliErrors[_0x3d5bdd(0x147)](_0x3d5bdd(0x119)+_0x5d24fd+_0x3d5bdd(0x154));const _0x20c854=_0x2676a2[_0x3d5bdd(0x163)]()[_0x3d5bdd(0x139)](/\/$/,'');let _0x95c2ca;try{_0x95c2ca=new URL(_0x20c854);}catch{throw CliErrors[_0x3d5bdd(0x147)](_0x3d5bdd(0x119)+_0x5d24fd+':\x20\x22'+_0x2676a2+_0x3d5bdd(0x14e));}if(_0x95c2ca['protocol']!==_0x3d5bdd(0x155)||_0x95c2ca[_0x3d5bdd(0x120)]||_0x95c2ca['password']||_0x95c2ca['search']||_0x95c2ca[_0x3d5bdd(0x136)]||_0x95c2ca[_0x3d5bdd(0x146)][_0x3d5bdd(0x139)](/\/$/,'')!==_0x20c854||_0x5d24fd==='lovrabet'&&_0x95c2ca['origin']!==_0x20c854)throw CliErrors[_0x3d5bdd(0x147)](_0x3d5bdd(0x119)+_0x5d24fd+_0x3d5bdd(0x15e)+(_0x5d24fd===_0x3d5bdd(0x153)?_0x3d5bdd(0x16b):_0x3d5bdd(0x15b))+_0x3d5bdd(0x116));return _0x20c854;}export function resolveEnterpriseRoutingConfig(_0x301ee8){const _0x151b24=a258_0x1bf971;return resolveEnterpriseRoutingManifest(_0x301ee8)?.[_0x151b24(0x13e)];}export function resolveEnterpriseRoutingManifest(_0x59193b){const _0x1da2e3=a258_0x1bf971;if(_0x59193b===undefined)return undefined;if(!_0x59193b||typeof _0x59193b!==_0x1da2e3(0x123)||Array['isArray'](_0x59193b))throw CliErrors['validation'](_0x1da2e3(0x11e));return parseEnterpriseRoutingManifest(_0x59193b);}export function readDomainConfigInput(_0x3c2e10){const _0x273123=a258_0x1bf971,_0x22ed01=isAbsolute(_0x3c2e10)?_0x3c2e10:resolve(process[_0x273123(0x159)](),_0x3c2e10);if(!existsSync(_0x22ed01))throw CliErrors['validation']('Domain\x20config\x20file\x20not\x20found:\x20'+_0x22ed01);let _0xac3b53;try{_0xac3b53=JSON[_0x273123(0x165)](readFileSync(_0x22ed01,_0x273123(0x117)));}catch{throw CliErrors['validation'](_0x273123(0x145)+_0x22ed01);}if(!_0xac3b53||typeof _0xac3b53!==_0x273123(0x123)||Array[_0x273123(0x142)](_0xac3b53))throw CliErrors[_0x273123(0x147)](_0x273123(0x162));const _0x45fbb8=_0xac3b53;if(_0x273123(0x160)in _0x45fbb8)return parseEnterpriseRoutingManifest(_0x45fbb8);const _0x168e12=Object['keys'](_0x45fbb8)['filter'](_0x3971d6=>!DOMAIN_CONFIG_FIELDS[_0x273123(0x161)](_0x3971d6));if(_0x168e12[_0x273123(0x134)]>0x0)throw CliErrors['validation'](_0x273123(0x13b)+_0x168e12['join'](',\x20'),'Allowed\x20fields:\x20'+DOMAIN_CONFIG_FIELDS[_0x273123(0x158)](',\x20'));const _0x2d8d84={};for(const _0xfcda28 of DOMAIN_CONFIG_FIELDS){_0x45fbb8[_0xfcda28]!==undefined&&(_0x2d8d84[_0xfcda28]=normalizeDomainOrigin(_0xfcda28,_0x45fbb8[_0xfcda28]));}if(Object['keys'](_0x2d8d84)[_0x273123(0x134)]===0x0)throw CliErrors[_0x273123(0x147)](_0x273123(0x14a));return{'mode':'legacy','domains':_0x2d8d84};}export function readDomainConfig(_0x352a27){const _0xd015ec=a258_0x1bf971;return readDomainConfigInput(_0x352a27)[_0xd015ec(0x13e)];}export function resolveDomainConfigInput(_0x5ebd75){const _0x4ee05f=a258_0x1bf971,_0x2ad92f=(_0x5ebd75['str'](_0x4ee05f(0x130))||'')[_0x4ee05f(0x163)](),_0x2312be=_0x2ad92f?readDomainConfigInput(_0x2ad92f):{'mode':_0x4ee05f(0x137),'domains':{}},_0x54a8e9=DOMAIN_CONFIG_FIELDS[_0x4ee05f(0x12e)](_0x4b45e8=>Boolean((_0x5ebd75[_0x4ee05f(0x15f)](DOMAIN_FLAGS[_0x4b45e8])||'')['trim']()));if(_0x2312be[_0x4ee05f(0x168)]==='enterprise-v1'&&_0x54a8e9['length']>0x0)throw CliErrors[_0x4ee05f(0x147)](_0x4ee05f(0x15a),_0x4ee05f(0x150));for(const _0x5b7a5f of DOMAIN_CONFIG_FIELDS){const _0x4e8b10=(_0x5ebd75[_0x4ee05f(0x15f)](DOMAIN_FLAGS[_0x5b7a5f])||'')['trim']();if(_0x4e8b10)_0x2312be[_0x4ee05f(0x13e)][_0x5b7a5f]=normalizeDomainOrigin(_0x5b7a5f,_0x4e8b10);}return _0x2312be;}export function resolveDomainFlags(_0x2f8a12){const _0x133411=a258_0x1bf971;return resolveDomainConfigInput(_0x2f8a12)[_0x133411(0x13e)];}export function parseEnterpriseRoutingManifest(_0x589cd0){const _0x2f5dcc=a258_0x1bf971;if(_0x589cd0[_0x2f5dcc(0x160)]!==ENTERPRISE_ROUTING_PROTOCOL||_0x589cd0[_0x2f5dcc(0x121)]!==ENTERPRISE_ROUTING_KIND)throw CliErrors[_0x2f5dcc(0x147)]('Unsupported\x20routing\x20manifest:\x20expected\x20protocol\x20\x22'+ENTERPRISE_ROUTING_PROTOCOL+_0x2f5dcc(0x124)+ENTERPRISE_ROUTING_KIND+'\x22.');if(!_0x589cd0[_0x2f5dcc(0x13e)]||typeof _0x589cd0[_0x2f5dcc(0x13e)]!=='object'||Array[_0x2f5dcc(0x142)](_0x589cd0[_0x2f5dcc(0x13e)]))throw CliErrors[_0x2f5dcc(0x147)](_0x2f5dcc(0x13c));if(!_0x589cd0[_0x2f5dcc(0x132)]||typeof _0x589cd0[_0x2f5dcc(0x132)]!==_0x2f5dcc(0x123)||Array[_0x2f5dcc(0x142)](_0x589cd0['cdn']))throw CliErrors[_0x2f5dcc(0x147)](_0x2f5dcc(0x11d));const _0x2d414f=_0x589cd0[_0x2f5dcc(0x13e)],_0x5333c0=REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS[_0x2f5dcc(0x12e)](_0x4e6810=>_0x2d414f[_0x4e6810]===undefined);if(_0x5333c0[_0x2f5dcc(0x134)]>0x0)throw CliErrors['validation'](_0x2f5dcc(0x133)+_0x5333c0[_0x2f5dcc(0x158)](',\x20'));if(_0x2d414f['localDomain']===undefined!==(_0x2d414f['certificateDomain']===undefined))throw CliErrors[_0x2f5dcc(0x147)](_0x2f5dcc(0x157));const _0xafc6fa=_0x589cd0[_0x2f5dcc(0x132)],_0x3d3150=Object[_0x2f5dcc(0x14b)](_0xafc6fa)[_0x2f5dcc(0x12e)](_0x5c58af=>!ENTERPRISE_ROUTING_CDN_FIELDS[_0x2f5dcc(0x161)](_0x5c58af));if(_0x3d3150[_0x2f5dcc(0x134)]>0x0)throw CliErrors[_0x2f5dcc(0x147)](_0x2f5dcc(0x13a)+_0x3d3150[_0x2f5dcc(0x158)](',\x20'),_0x2f5dcc(0x15c)+ENTERPRISE_ROUTING_CDN_FIELDS['join'](',\x20'));const _0x47e114=REQUIRED_ENTERPRISE_ROUTING_CDN_FIELDS['filter'](_0x6f0268=>_0xafc6fa[_0x6f0268]===undefined);if(_0x47e114[_0x2f5dcc(0x134)]>0x0)throw CliErrors[_0x2f5dcc(0x147)](_0x2f5dcc(0x14c)+_0x47e114[_0x2f5dcc(0x158)](',\x20'));const _0x3f0e0d={};for(const _0x19e552 of ENTERPRISE_ROUTING_CDN_FIELDS){_0x3f0e0d[_0x19e552]=normalizeCdnBaseUrl(_0x19e552,_0xafc6fa[_0x19e552]);}const _0x18c7a1={},_0x754f4c={};for(const _0x434084 of ENTERPRISE_ROUTING_DOMAIN_FIELDS){const _0x303bd2=_0x2d414f[_0x434084];if(_0x303bd2===undefined)continue;const _0x4a5a95=normalizeRoutingDomainValue(_0x434084,_0x303bd2);_0x18c7a1[_0x434084]=_0x4a5a95;const _0x28ee02=ENTERPRISE_TO_LOCAL_FIELD[_0x434084];_0x28ee02&&(_0x754f4c[_0x28ee02]=_0x4a5a95);}return{'mode':_0x2f5dcc(0x12b),'domains':_0x754f4c,'manifestDomains':_0x18c7a1,'cdn':_0x3f0e0d};}
|
|
1
|
+
const a258_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 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a259_0x40bc37=a259_0x31d7;(function(_0x175362,_0x3cff66){const _0x452d83=a259_0x31d7,_0x31e3ff=_0x175362();while(!![]){try{const _0x179b7d=parseInt(_0x452d83(0x128))/0x1*(-parseInt(_0x452d83(0x131))/0x2)+-parseInt(_0x452d83(0x130))/0x3*(parseInt(_0x452d83(0x12f))/0x4)+parseInt(_0x452d83(0x11b))/0x5*(parseInt(_0x452d83(0x12d))/0x6)+-parseInt(_0x452d83(0x124))/0x7+parseInt(_0x452d83(0x11d))/0x8*(-parseInt(_0x452d83(0x123))/0x9)+parseInt(_0x452d83(0x11c))/0xa+parseInt(_0x452d83(0x125))/0xb;if(_0x179b7d===_0x3cff66)break;else _0x31e3ff['push'](_0x31e3ff['shift']());}catch(_0x494d66){_0x31e3ff['push'](_0x31e3ff['shift']());}}}(a259_0x295f,0x8fcc0));import{readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{join}from'node:path';function a259_0x295f(){const _0x4b26ea=['2gwWeQd','1490jQvKeS','5505550ydUNAL','24IOgBdy','/cert/lovrabet-dev.json','independent','origin','stringify','lovrabet-project-domain-routing/v1','1397007FFBBlB','6634628KOvlOC','25144207BGLQIN','utf8','http://localhost','795323XSaWnG','lovrabet','pid','now','Independent\x20deployment\x20routing\x20requires\x20localDomain\x20and\x20certificateDomain\x20together.','6510zmcDYB','rabetbase.domain-routing.json','10804czOeHD','402kSvRfD'];a259_0x295f=function(){return _0x4b26ea;};return a259_0x295f();}import{getActiveRegion,getActiveCdn,getApiDomain,getAppDomain,getCertificateDomain,getKbDomain,getLocalDomain,getRuntimeDomain,getSkillDomain,getUserDomain,isIndependentDeployment}from'../constant/domain.js';import{getOfficialRoutingProfile}from'../constant/routing-profile.js';export const PROJECT_DOMAIN_ROUTING_FILE_NAME=a259_0x40bc37(0x12e);function a259_0x31d7(_0x4214ff,_0x2ce5aa){_0x4214ff=_0x4214ff-0x11b;const _0x295f7c=a259_0x295f();let _0x31d73e=_0x295f7c[_0x4214ff];return _0x31d73e;}export const PROJECT_DOMAIN_ROUTING_PROTOCOL=a259_0x40bc37(0x122);export function getProjectDomainRoutingManifest(){const _0x48397d=a259_0x40bc37,_0xb5cb31=getActiveRegion(),_0x576cc7=isIndependentDeployment(),_0x1f8876=getOfficialRoutingProfile(_0xb5cb31),_0x139e59=getLocalDomain(),_0x2b43f8=getCertificateDomain(),_0x428272=getActiveCdn();if(!!_0x139e59!==!!_0x2b43f8)throw new Error(_0x48397d(0x12c));return{'protocol':PROJECT_DOMAIN_ROUTING_PROTOCOL,'mode':_0x576cc7?_0x48397d(0x11f):'official','region':_0x576cc7?null:_0xb5cb31,'domains':{'api':getApiDomain(),'runtime':getRuntimeDomain(),'user':getUserDomain(),'app':getAppDomain(),'skill':getSkillDomain(),'kb':getKbDomain()},'cdn':_0x428272,'local':_0x139e59&&_0x2b43f8?{'origin':_0x139e59,'certificateUrl':_0x2b43f8+_0x48397d(0x11e)}:_0x576cc7?{'origin':_0x48397d(0x127)}:{'origin':_0x1f8876['local'][_0x48397d(0x120)],'certificateUrl':_0x428272[_0x48397d(0x129)]+_0x48397d(0x11e)}};}export function writeProjectDomainRoutingManifest(_0x2a2b09){const _0x44c180=a259_0x40bc37,_0x1828c7=getProjectDomainRoutingManifest(),_0x42a5d8=join(_0x2a2b09,PROJECT_DOMAIN_ROUTING_FILE_NAME),_0x4d56e8=JSON[_0x44c180(0x121)](_0x1828c7,null,0x2)+'\x0a';try{if(readFileSync(_0x42a5d8,_0x44c180(0x126))===_0x4d56e8)return{'path':_0x42a5d8,'manifest':_0x1828c7,'changed':![]};}catch{}const _0x545ce9=_0x42a5d8+'.'+process[_0x44c180(0x12a)]+'.'+Date[_0x44c180(0x12b)]()+'.tmp';try{writeFileSync(_0x545ce9,_0x4d56e8,{'encoding':'utf8','mode':0x1a4}),renameSync(_0x545ce9,_0x42a5d8);}catch(_0x10f082){try{unlinkSync(_0x545ce9);}catch{}throw _0x10f082;}return{'path':_0x42a5d8,'manifest':_0x1828c7,'changed':!![]};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a260_0x36caf9=a260_0x5292;(function(_0x405985,_0x432a38){const _0x77edb7=a260_0x5292,_0x858a9=_0x405985();while(!![]){try{const _0x27bdd2=-parseInt(_0x77edb7(0x17e))/0x1+-parseInt(_0x77edb7(0x17d))/0x2*(parseInt(_0x77edb7(0x175))/0x3)+-parseInt(_0x77edb7(0x170))/0x4*(parseInt(_0x77edb7(0x16b))/0x5)+-parseInt(_0x77edb7(0x166))/0x6*(-parseInt(_0x77edb7(0x17b))/0x7)+parseInt(_0x77edb7(0x16e))/0x8+-parseInt(_0x77edb7(0x16d))/0x9*(-parseInt(_0x77edb7(0x174))/0xa)+-parseInt(_0x77edb7(0x181))/0xb;if(_0x27bdd2===_0x432a38)break;else _0x858a9['push'](_0x858a9['shift']());}catch(_0x5971b7){_0x858a9['push'](_0x858a9['shift']());}}}(a260_0x23df,0x6a279));import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_LOVRABET_REGION,isInvalidLovrabetRegion,normalizeLovrabetRegion}from'../constant/region.js';function a260_0x5292(_0x591fdd,_0x3a3004){_0x591fdd=_0x591fdd-0x166;const _0x23df9b=a260_0x23df();let _0x52924e=_0x23df9b[_0x591fdd];return _0x52924e;}function a260_0x23df(){const _0x378b30=['appName','2515542KHECIv','project','global','Run\x20`','projectRegion','865iSTsgl','Rabetbase\x20configuration','1161FjbDoS','500448QCgqHi','mergedRegion','744beQEMt','\x20doctor`\x20to\x20locate\x20and\x20repair\x20the\x20invalid\x20configuration\x20before\x20retrying.','config','default','7390dEPNGE','804FHMoFq','globalRegion','appRegion','string','app','selected\x20app\x20profile','14gcRZiD','a\x20value\x20of\x20type\x20','1314gYDHCo','251604gVsgHO','source','global\x20Rabetbase\x20configuration','1119074JOryQk','project\x20Rabetbase\x20configuration'];a260_0x23df=function(){return _0x378b30;};return a260_0x23df();}import{CliErrors}from'../errors.js';export function selectConfiguredRegion(_0x5e01a5){const _0x420901=a260_0x5292;if(_0x5e01a5[_0x420901(0x177)]!==undefined&&_0x5e01a5[_0x420901(0x177)]!==null&&_0x5e01a5[_0x420901(0x177)]!=='')return{'value':_0x5e01a5[_0x420901(0x177)],'source':_0x420901(0x179)};if(_0x5e01a5[_0x420901(0x16a)]!==undefined&&_0x5e01a5['projectRegion']!==null&&_0x5e01a5['projectRegion']!=='')return{'value':_0x5e01a5[_0x420901(0x16a)],'source':'project'};if(_0x5e01a5['globalRegion']!==undefined&&_0x5e01a5[_0x420901(0x176)]!==null&&_0x5e01a5[_0x420901(0x176)]!=='')return{'value':_0x5e01a5['globalRegion'],'source':_0x420901(0x168)};if(_0x5e01a5[_0x420901(0x16f)]!==undefined&&_0x5e01a5[_0x420901(0x16f)]!==null&&_0x5e01a5['mergedRegion']!=='')return{'value':_0x5e01a5[_0x420901(0x16f)],'source':_0x420901(0x172)};return{'value':undefined,'source':_0x420901(0x173)};}function describeConfiguredRegion(_0x26e6b7){const _0x516701=a260_0x5292;return typeof _0x26e6b7===_0x516701(0x178)?JSON['stringify'](_0x26e6b7):_0x516701(0x17c)+(_0x26e6b7===null?'null':typeof _0x26e6b7);}export function resolveConfiguredRegion(_0x1aece1,_0x5b375f=a260_0x36caf9(0x16c)){const _0x3020aa=a260_0x36caf9;if(isInvalidLovrabetRegion(_0x1aece1))throw CliErrors['validation']('Invalid\x20country/region\x20'+describeConfiguredRegion(_0x1aece1)+'\x20in\x20'+_0x5b375f+'.',_0x3020aa(0x169)+CLI_BIN_NAME+_0x3020aa(0x171));return normalizeLovrabetRegion(_0x1aece1)??DEFAULT_LOVRABET_REGION;}export function resolveEffectiveRegion(_0x248ddd){const _0x571998=a260_0x36caf9,_0x3bdcc5=selectConfiguredRegion(_0x248ddd),_0x8ae5e3=_0x3bdcc5[_0x571998(0x17f)]==='app'?_0x248ddd[_0x571998(0x183)]?'app\x20profile\x20\x22'+_0x248ddd[_0x571998(0x183)]+'\x22':_0x571998(0x17a):_0x3bdcc5[_0x571998(0x17f)]===_0x571998(0x167)?_0x571998(0x182):_0x3bdcc5['source']==='global'?_0x571998(0x180):_0x571998(0x16c);return{'region':resolveConfiguredRegion(_0x3bdcc5['value'],_0x8ae5e3),'source':_0x3bdcc5['source']};}
|
package/lib/config/schema.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a261_0x1e5104=a261_0x2e87;(function(_0x5ec418,_0x3e1c46){const _0x39fa84=a261_0x2e87,_0x191bdb=_0x5ec418();while(!![]){try{const _0x3fe22e=parseInt(_0x39fa84(0x13b))/0x1*(-parseInt(_0x39fa84(0x15d))/0x2)+parseInt(_0x39fa84(0x16a))/0x3+parseInt(_0x39fa84(0x15f))/0x4+-parseInt(_0x39fa84(0x144))/0x5*(parseInt(_0x39fa84(0x133))/0x6)+-parseInt(_0x39fa84(0x14b))/0x7+parseInt(_0x39fa84(0x142))/0x8*(-parseInt(_0x39fa84(0x140))/0x9)+-parseInt(_0x39fa84(0x134))/0xa*(-parseInt(_0x39fa84(0x153))/0xb);if(_0x3fe22e===_0x3e1c46)break;else _0x191bdb['push'](_0x191bdb['shift']());}catch(_0x4857e4){_0x191bdb['push'](_0x191bdb['shift']());}}}(a261_0x42e6,0x3e505));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{isDaily,isProduction,RABETBASE_ENV_VALUES}from'../constant/env.js';import{RABETBASE_OUTPUT_FORMAT_VALUES}from'../constant/output.js';import{RISK_LEVEL_VALUES}from'../constant/risk.js';import{ENABLED_LOVRABET_REGION_VALUES}from'../constant/region.js';export{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';export const PROJECT_CREATE_INHERITABLE_KEYS=[a261_0x1e5104(0x141),a261_0x1e5104(0x137),a261_0x1e5104(0x151),a261_0x1e5104(0x14f),a261_0x1e5104(0x14a),a261_0x1e5104(0x164),a261_0x1e5104(0x138),a261_0x1e5104(0x14c),a261_0x1e5104(0x159),a261_0x1e5104(0x163),a261_0x1e5104(0x145),a261_0x1e5104(0x13a),'kbServiceDomain',a261_0x1e5104(0x13e),a261_0x1e5104(0x152),a261_0x1e5104(0x147)];export const TOP_LEVEL_CONFIG_KEYS=new Set([a261_0x1e5104(0x132),a261_0x1e5104(0x157),a261_0x1e5104(0x151),a261_0x1e5104(0x14f),'cookie',a261_0x1e5104(0x137),a261_0x1e5104(0x155),a261_0x1e5104(0x164),'userDomain',a261_0x1e5104(0x159),'runtimeDomain',a261_0x1e5104(0x145),a261_0x1e5104(0x13a),a261_0x1e5104(0x154),a261_0x1e5104(0x13e),a261_0x1e5104(0x152),'certificateDomain']);export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES],'region':[...ENABLED_LOVRABET_REGION_VALUES]};export function formatConfigKeyList(_0x1051ad){const _0x407ff4=a261_0x1e5104;return[..._0x1051ad][_0x407ff4(0x139)](',\x20');}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function isTopLevelConfigKey(_0xb0062a){const _0x3bd1b6=a261_0x1e5104;return TOP_LEVEL_CONFIG_KEYS[_0x3bd1b6(0x160)](_0xb0062a);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x45b040=a261_0x1e5104;return _0x45b040(0x162)+getTopLevelConfigKeySummary()+')';}export const APP_PROFILE_FLAG_KEY_MAP={'apiGroup':'apiGroup','region':a261_0x1e5104(0x164),'env':'env','apiDir':a261_0x1e5104(0x155),'cookie':a261_0x1e5104(0x141),'accessKey':a261_0x1e5104(0x137),'defaultFormat':'format','pageSize':a261_0x1e5104(0x168),'riskLevel':'riskLevel','locale':a261_0x1e5104(0x151)};export function getAppProfileFlagDefs(){const _0x501eef=a261_0x1e5104;return[{'name':_0x501eef(0x135),'type':_0x501eef(0x15e),'description':'Join\x20key\x20for\x20app\x20profiles\x20that\x20share\x20one\x20generated\x20API\x20model\x20registry'},{'name':_0x501eef(0x164),'type':_0x501eef(0x15e),'description':_0x501eef(0x156),'enum':[...ENABLED_LOVRABET_REGION_VALUES]},{'name':_0x501eef(0x157),'type':'string','description':'Target\x20environment','enum':[...RABETBASE_ENV_VALUES]},{'name':_0x501eef(0x155),'type':_0x501eef(0x15e),'description':_0x501eef(0x136)},{'name':'cookie','type':_0x501eef(0x15e),'description':'Auth\x20cookie','hidden':!![]},{'name':_0x501eef(0x137),'type':_0x501eef(0x15e),'description':_0x501eef(0x167),'hidden':!![]},{'name':_0x501eef(0x16b),'type':_0x501eef(0x15e),'description':_0x501eef(0x146),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':_0x501eef(0x168),'type':_0x501eef(0x13d),'description':'Default\x20page\x20size'},{'name':'riskLevel','type':_0x501eef(0x15e),'description':_0x501eef(0x13f),'enum':[...RISK_LEVEL_VALUES]},{'name':'locale','type':_0x501eef(0x15e),'description':_0x501eef(0x15a)}];}export function collectAppProfileOverrides(_0x5e118d){const _0x177c49={};for(const [_0x486693,_0x12c2e8]of Object['entries'](APP_PROFILE_FLAG_KEY_MAP)){const _0x4cf5d9=_0x5e118d(_0x486693);if(!_0x4cf5d9)continue;_0x177c49[_0x12c2e8]=_0x12c2e8==='pageSize'?Number(_0x4cf5d9):_0x4cf5d9;}return _0x177c49;}export function buildAppProfileListFields(_0x33b47c){const _0x11642a=a261_0x1e5104;return{'apiGroup':_0x33b47c[_0x11642a(0x135)]??null,'region':_0x33b47c['region']??null,'env':_0x33b47c[_0x11642a(0x157)]??null,'apiDir':_0x33b47c['apiDir']??null,'hasCookie':!!_0x33b47c['cookie'],'hasAccessKey':!!_0x33b47c[_0x11642a(0x137)],'format':_0x33b47c[_0x11642a(0x14f)]??null,'pageSize':_0x33b47c['pageSize']??null,'riskLevel':_0x33b47c[_0x11642a(0x14a)]??null,'locale':_0x33b47c[_0x11642a(0x151)]??null};}function a261_0x42e6(){const _0x36a478=['keys','object','2klNOzN','string','192336ZxakJX','has','inherit','Config\x20key\x20(','runtimeDomain','region','app','filter','Access\x20key','pageSize','trim','1340487JsEXXn','defaultFormat','appcode','2203134gNYshJ','3190rJxrtx','apiGroup','API\x20directory\x20path','accessKey','routing','join','kbDomain','49988BSCDis','isArray','number','appDomain','Risk\x20level','9WavzYY','cookie','1102424vkPBOH','values','5dIjzZW','skillDomain','Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','certificateDomain','map','apps','riskLevel','2332561DGkTOM','userDomain','defaultApp','en-US','format','zh-CN','locale','localDomain','22363ZmkTpJ','kbServiceDomain','apiDir','Country/region\x20for\x20this\x20app\x20profile','env','length','apiDomain','App\x20locale\x20(not\x20CLI\x20language;\x20reserved\x20for\x20later\x20app\x20use)'];a261_0x42e6=function(){return _0x36a478;};return a261_0x42e6();}export function buildAppDoctorFields(_0x4ce4d3,_0xe422cc){const _0x1641cb=a261_0x1e5104;return{'region':{'value':_0x4ce4d3[_0x1641cb(0x164)]||_0xe422cc[_0x1641cb(0x164)],'source':_0x4ce4d3[_0x1641cb(0x164)]?'app':'inherit'},'env':{'value':_0x4ce4d3[_0x1641cb(0x157)]||_0xe422cc[_0x1641cb(0x157)],'source':_0x4ce4d3[_0x1641cb(0x157)]?_0x1641cb(0x165):_0x1641cb(0x161)},'apiDir':{'value':_0x4ce4d3[_0x1641cb(0x155)]||_0xe422cc[_0x1641cb(0x155)],'source':_0x4ce4d3['apiDir']?'app':_0x1641cb(0x161)},'cookie':{'value':_0x4ce4d3[_0x1641cb(0x141)]||_0xe422cc[_0x1641cb(0x141)],'source':_0x4ce4d3[_0x1641cb(0x141)]?_0x1641cb(0x165):_0x1641cb(0x161)},'accessKey':{'value':_0x4ce4d3[_0x1641cb(0x137)]||_0xe422cc[_0x1641cb(0x137)],'source':_0x4ce4d3[_0x1641cb(0x137)]?_0x1641cb(0x165):_0x1641cb(0x161)}};}export function buildCanonicalAppConfig(_0x300141,_0x26ff54){const _0x51bf50=a261_0x1e5104,_0x123be2=_0x300141[_0x51bf50(0x148)](_0x1ac7e4=>String(_0x1ac7e4||'')[_0x51bf50(0x169)]())[_0x51bf50(0x166)](Boolean);if(_0x123be2['length']===0x0)return{};const _0x4a9d54={};for(const _0x244cdf of _0x123be2){_0x4a9d54[_0x244cdf]=_0x26ff54&&!isProduction(_0x26ff54)?{'appcode':_0x244cdf,'env':_0x26ff54}:{'appcode':_0x244cdf};}return _0x123be2[_0x51bf50(0x158)]>0x1?{'apps':_0x4a9d54,'defaultApp':_0x123be2[0x0]}:{'apps':_0x4a9d54};}export function normalizeStoredDefaultApp(_0x52a696,_0x4e9498){const _0x422076=a261_0x1e5104,_0x43cf70=_0x52a696['apps']&&typeof _0x52a696['apps']==='object'?_0x52a696[_0x422076(0x149)]:{},_0x407bf5=Object[_0x422076(0x15b)](_0x43cf70);if(_0x407bf5['length']<=0x1)return delete _0x52a696[_0x422076(0x14d)],undefined;const _0x45528e=typeof _0x52a696['defaultApp']===_0x422076(0x15e)&&_0x43cf70[_0x52a696['defaultApp']]?_0x52a696[_0x422076(0x14d)]:undefined,_0x3e0c0d=_0x4e9498&&_0x43cf70[_0x4e9498]?_0x4e9498:_0x45528e;if(_0x3e0c0d)return _0x52a696[_0x422076(0x14d)]=_0x3e0c0d,_0x3e0c0d;return delete _0x52a696[_0x422076(0x14d)],undefined;}export function buildCanonicalProjectConfig(_0x223ec9,_0x416462){const _0x322a71=a261_0x1e5104,{appCodes:appCodes=[],env:_0x3abbe0,metadata:_0x3f627d}=_0x416462,_0x549921={..._0x223ec9,..._0x3f627d||{}};delete _0x549921[_0x322a71(0x132)],delete _0x549921[_0x322a71(0x165)];const _0x2151c5=_0x3abbe0||(typeof _0x549921['env']===_0x322a71(0x15e)?_0x549921['env']:'')||DEFAULT_CONFIG_VALUES['env'];if(isProduction(_0x2151c5))delete _0x549921[_0x322a71(0x157)];else _0x549921[_0x322a71(0x157)]=_0x2151c5;const _0x575a9e=buildCanonicalAppConfig(appCodes,_0x2151c5);if(Object['keys'](_0x575a9e)['length']>0x0){_0x549921['apps']=_0x575a9e[_0x322a71(0x149)];if(_0x575a9e[_0x322a71(0x14d)])_0x549921[_0x322a71(0x14d)]=_0x575a9e['defaultApp'];else delete _0x549921[_0x322a71(0x14d)];}return normalizeConfigForWrite(_0x549921);}function isRecord(_0x593c3f){const _0x46b050=a261_0x1e5104;return!!_0x593c3f&&typeof _0x593c3f===_0x46b050(0x15c)&&!Array[_0x46b050(0x13c)](_0x593c3f);}export function normalizeConfigForWrite(_0x37646c){const _0x4bc780=a261_0x1e5104,_0x3c6f83={..._0x37646c},_0xa9e8a9=isRecord(_0x37646c['apps'])?_0x37646c['apps']:undefined,_0x435df4=_0xa9e8a9?Object['fromEntries'](Object['entries'](_0xa9e8a9)[_0x4bc780(0x148)](([_0x2341ed,_0x5e5da1])=>[_0x2341ed,isRecord(_0x5e5da1)?{..._0x5e5da1}:_0x5e5da1])):undefined;if(_0x435df4){const _0x3be403=typeof _0x3c6f83[_0x4bc780(0x157)]==='string'?_0x3c6f83[_0x4bc780(0x157)]:undefined,_0x38a0bf=Object[_0x4bc780(0x143)](_0x435df4)['some'](_0x29a6d5=>isRecord(_0x29a6d5)&&typeof _0x29a6d5[_0x4bc780(0x157)]===_0x4bc780(0x15e)&&isProduction(_0x29a6d5[_0x4bc780(0x157)]));if(_0x3be403&&isDaily(_0x3be403)&&_0x38a0bf){for(const _0x130c5e of Object['values'](_0x435df4)){if(!isRecord(_0x130c5e))continue;if(_0x130c5e[_0x4bc780(0x157)]===undefined)_0x130c5e[_0x4bc780(0x157)]=_0x3be403;}delete _0x3c6f83['env'];}for(const _0x48767b of Object[_0x4bc780(0x143)](_0x435df4)){isRecord(_0x48767b)&&typeof _0x48767b[_0x4bc780(0x157)]==='string'&&isProduction(_0x48767b[_0x4bc780(0x157)])&&delete _0x48767b[_0x4bc780(0x157)];}_0x3c6f83['apps']=_0x435df4;}return typeof _0x3c6f83['env']==='string'&&isProduction(_0x3c6f83[_0x4bc780(0x157)])&&delete _0x3c6f83[_0x4bc780(0x157)],_0x3c6f83;}const LOCALE_MAP={'zh':a261_0x1e5104(0x150),'zh-cn':a261_0x1e5104(0x150),'zh_cn':a261_0x1e5104(0x150),'en':a261_0x1e5104(0x14e),'en-us':'en-US','en_us':a261_0x1e5104(0x14e)};function a261_0x2e87(_0x5b7d33,_0x5f28aa){_0x5b7d33=_0x5b7d33-0x132;const _0x42e6f3=a261_0x42e6();let _0x2e87a0=_0x42e6f3[_0x5b7d33];return _0x2e87a0;}export function normalizeLocale(_0x44ebbb){if(!_0x44ebbb)return null;return LOCALE_MAP[_0x44ebbb['toLowerCase']()]??null;}
|
|
1
|
+
const a261_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;}
|
package/lib/constant/cdn.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a262_0x2ccae3=a262_0x1c97;function a262_0x1aef(){const _0x34d40b=['sub-app-react-demo-','https://g.lovrabet.com','config/index.json','1090ZRnlow','sub-app-react-demo-beta.zip','1045135XMYJOW','261527kvBSFC','9320ZQEQgI','sub-app-react-demo.zip','3488290QtxKUU','/dist/','48QluBOq','90eqXnNw','templates/projects','99648yVoDeL','2367864PqjyRn','393yiRwsN','33iVPvqU','lovrabet','53CpbBqx'];a262_0x1aef=function(){return _0x34d40b;};return a262_0x1aef();}function a262_0x1c97(_0x592d0e,_0x1ddfd5){_0x592d0e=_0x592d0e-0x1b2;const _0x1aef96=a262_0x1aef();let _0x1c97e0=_0x1aef96[_0x592d0e];return _0x1c97e0;}(function(_0x1c79f2,_0x2af63a){const _0x41691a=a262_0x1c97,_0x19e638=_0x1c79f2();while(!![]){try{const _0x2f8828=parseInt(_0x41691a(0x1c2))/0x1*(parseInt(_0x41691a(0x1b2))/0x2)+parseInt(_0x41691a(0x1bf))/0x3*(parseInt(_0x41691a(0x1b6))/0x4)+-parseInt(_0x41691a(0x1b4))/0x5+parseInt(_0x41691a(0x1ba))/0x6*(-parseInt(_0x41691a(0x1b5))/0x7)+-parseInt(_0x41691a(0x1bd))/0x8*(-parseInt(_0x41691a(0x1bb))/0x9)+-parseInt(_0x41691a(0x1b8))/0xa+parseInt(_0x41691a(0x1c0))/0xb*(parseInt(_0x41691a(0x1be))/0xc);if(_0x2f8828===_0x2af63a)break;else _0x19e638['push'](_0x19e638['shift']());}catch(_0x3e73d6){_0x19e638['push'](_0x19e638['shift']());}}}(a262_0x1aef,0x2f569));import{getActiveCdn}from'../constant/domain.js';const RABETBASE_CDN_PROJECT='rabetbase-cli',RABETBASE_CDN_CONFIG_ORIGIN=a262_0x2ccae3(0x1c4),CDN_CONFIG_PATH=a262_0x2ccae3(0x1c5),PROJECT_TEMPLATE_ASSET_PATH=a262_0x2ccae3(0x1bc),PROJECT_TEMPLATE_ARCHIVE_NAMES=Object['freeze']({'release':a262_0x2ccae3(0x1b7),'beta':a262_0x2ccae3(0x1b3)});export const RABETBASE_CDN_PROJECT_PATH=a262_0x2ccae3(0x1b9)+RABETBASE_CDN_PROJECT;function getRabetbaseCdnBaseUrl(){const _0x49433f=a262_0x2ccae3;return''+getActiveCdn()[_0x49433f(0x1c1)]+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;}export function getProjectTemplateRelativeUrl(_0x1c4e7b,_0x5b6025){const _0x18bbd8=a262_0x2ccae3,_0x53c25b=_0x5b6025?_0x18bbd8(0x1c3)+_0x5b6025+'.zip':PROJECT_TEMPLATE_ARCHIVE_NAMES[_0x1c4e7b];return RABETBASE_CDN_PROJECT_PATH+'/'+PROJECT_TEMPLATE_ASSET_PATH+'/'+_0x53c25b;}
|
package/lib/constant/cli.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function a263_0x2fa0(){const _0x412e1b=['Preview\x20operation\x20without\x20executing','Name','codes','sort','Force\x20overwrite','Tags','json\x20|\x20pretty\x20|\x20compress','Verbose\x20output','task-id','2185351tEzQgg','non-interactive','Maximum\x20search\x20hits','Schemas','production\x20|\x20daily','1654302TbUqTL','File\x20path','Output\x20format','pageSize','expectedCount','global','schemas','value','stdin','Use\x20remote','<code>','flow-name','Rabetbase\x20CLI','expectPath','sqlcode','Skip\x20confirmation\x20for\x20high-risk\x20writes','Clear','Confirm\x20destructive\x20action','pagesize','target','Page\x20size','Record\x20ID','zh-CN\x20|\x20en-US','taskId','Target\x20path','Description','verbose','help','parentId','app','locale','project','expectParentId','remote','flow-type','sqlname','Use\x20global\x20config\x20scope','flow-code','sqlName','parent-id','Search\x20query','appcode','fromEnv','meowKey','Override\x20appcode','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','description','143896FVmXdy','env','Code\x20filter','Show\x20help','SQL\x20string','Skip\x20import\x20generation','DB\x20ID','189248WMHErD','Menu\x20sort\x20value','Expected\x20affected\x20count','clear','enableBffSave','Expected\x20current\x20menu\x20path','all','label','function-node','Flow\x20code','datasetCode','datasetcode','dbid','code','Parent\x20menu\x20id','output','2147232JAIXjR','nonInteractive','operation','expected-count','operation-type','topk','menuIds','App\x20locale\x20(workspace\x20pass-through;\x20not\x20CLI\x20language)','page','dry-run','query','type','Select\x20app\x20profile\x20by\x20name','functionNode','Dataset\x20code','265352qowayq','reveal','Expected\x20current\x20parent\x20menu\x20id','<name>','file','Config\x20key','Flow\x20type','Apply\x20to\x20all','params','confirm','dataset-code','title','Read\x20value\x20from\x20environment\x20variable','string','Alias\x20for\x20--non-interactive','sql-name','Flow\x20status','boolean','<expr>','format','flowType','force','skipImports','db-id','Operation\x20type','Comma-separated\x20metadata\x20codes','name','dbId','rabetbase','expect-parent-id','flow-status','expect-path','sql','Menu\x20label','8279912fnIqku','descriptionFile','JSON\x20params','Flow\x20name','Title','keyword','tags','map','enable-bff-save','key','Watch\x20mode','yes','dryRun','10AVvgGi','Reveal\x20sensitive\x20value','flowCode'];a263_0x2fa0=function(){return _0x412e1b;};return a263_0x2fa0();}const a263_0x4f94eb=a263_0x59bf;(function(_0x2fa4ca,_0x3db517){const _0x433ba6=a263_0x59bf,_0x5e90fa=_0x2fa4ca();while(!![]){try{const _0xa29c7=-parseInt(_0x433ba6(0x21f))/0x1+-parseInt(_0x433ba6(0x226))/0x2+-parseInt(_0x433ba6(0x1f0))/0x3+parseInt(_0x433ba6(0x245))/0x4*(parseInt(_0x433ba6(0x1df))/0x5)+-parseInt(_0x433ba6(0x236))/0x6+parseInt(_0x433ba6(0x1eb))/0x7+parseInt(_0x433ba6(0x1d2))/0x8;if(_0xa29c7===_0x3db517)break;else _0x5e90fa['push'](_0x5e90fa['shift']());}catch(_0x3e1d03){_0x5e90fa['push'](_0x5e90fa['shift']());}}}(a263_0x2fa0,0x51100));export const CLI_BIN_NAME=a263_0x4f94eb(0x1cc);export const CLI_DISPLAY_NAME=a263_0x4f94eb(0x1fc);export const NPM_PACKAGE_NAME='@lovrabet/rabetbase-cli';export const GLOBAL_FLAGS=[{'name':'appcode','meowKey':a263_0x4f94eb(0x219),'type':a263_0x4f94eb(0x1bd),'description':a263_0x4f94eb(0x21c),'hint':a263_0x4f94eb(0x1fa)},{'name':'app','meowKey':a263_0x4f94eb(0x20d),'type':a263_0x4f94eb(0x1bd),'description':a263_0x4f94eb(0x242),'hint':a263_0x4f94eb(0x248)},{'name':a263_0x4f94eb(0x220),'meowKey':'env','type':'string','description':'Environment','hint':a263_0x4f94eb(0x1ef)},{'name':'format','meowKey':a263_0x4f94eb(0x1c3),'type':'string','description':a263_0x4f94eb(0x1f2),'hint':a263_0x4f94eb(0x1e8)},{'name':'jq','meowKey':'jq','type':a263_0x4f94eb(0x1bd),'description':a263_0x4f94eb(0x21d),'hint':a263_0x4f94eb(0x1c2)},{'name':a263_0x4f94eb(0x23f),'meowKey':a263_0x4f94eb(0x1de),'type':'boolean','description':a263_0x4f94eb(0x1e2)},{'name':a263_0x4f94eb(0x1dd),'meowKey':a263_0x4f94eb(0x1dd),'type':a263_0x4f94eb(0x1c1),'description':a263_0x4f94eb(0x1ff)},{'name':a263_0x4f94eb(0x1ec),'meowKey':a263_0x4f94eb(0x237),'type':'boolean','description':'Force\x20non-interactive\x20mode\x20(CI)'},{'name':'global','meowKey':a263_0x4f94eb(0x1f5),'type':a263_0x4f94eb(0x1c1),'description':a263_0x4f94eb(0x214)},{'name':a263_0x4f94eb(0x20f),'meowKey':'project','type':a263_0x4f94eb(0x1c1),'description':'Use\x20project\x20config\x20scope'},{'name':'ci','meowKey':'ci','type':'boolean','description':a263_0x4f94eb(0x1be),'hidden':!![]},{'name':'help','meowKey':a263_0x4f94eb(0x20b),'type':a263_0x4f94eb(0x1c1),'description':a263_0x4f94eb(0x222)},{'name':a263_0x4f94eb(0x20e),'meowKey':'locale','type':'string','description':a263_0x4f94eb(0x23d),'hidden':!![],'hint':a263_0x4f94eb(0x206)},{'name':a263_0x4f94eb(0x1ca),'meowKey':'name','type':a263_0x4f94eb(0x1bd),'description':a263_0x4f94eb(0x1e3),'hidden':!![]},{'name':'title','meowKey':a263_0x4f94eb(0x1bb),'type':'string','description':a263_0x4f94eb(0x1d6),'hidden':!![]},{'name':a263_0x4f94eb(0x240),'meowKey':a263_0x4f94eb(0x240),'type':a263_0x4f94eb(0x1bd),'description':a263_0x4f94eb(0x218),'hidden':!![]},{'name':a263_0x4f94eb(0x23b),'meowKey':'topk','type':a263_0x4f94eb(0x1bd),'description':a263_0x4f94eb(0x1ed),'hidden':!![]},{'name':a263_0x4f94eb(0x229),'meowKey':'clear','type':'boolean','description':a263_0x4f94eb(0x200),'hidden':!![]},{'name':'watch','meowKey':'watch','type':a263_0x4f94eb(0x1c1),'description':a263_0x4f94eb(0x1dc),'hidden':!![]},{'name':'output','meowKey':a263_0x4f94eb(0x235),'type':a263_0x4f94eb(0x1bd),'description':'Output\x20path','hidden':!![]},{'name':a263_0x4f94eb(0x1b8),'meowKey':'params','type':'string','description':a263_0x4f94eb(0x1d4),'hidden':!![]},{'name':a263_0x4f94eb(0x231),'meowKey':a263_0x4f94eb(0x231),'type':a263_0x4f94eb(0x1bd),'description':a263_0x4f94eb(0x244),'hidden':!![]},{'name':'all','meowKey':a263_0x4f94eb(0x22c),'type':a263_0x4f94eb(0x1c1),'description':a263_0x4f94eb(0x1b7),'hidden':!![]},{'name':a263_0x4f94eb(0x1da),'meowKey':a263_0x4f94eb(0x22a),'type':'boolean','description':'Enable\x20Backend\x20Function\x20save','hidden':!![]},{'name':'id','meowKey':'id','type':a263_0x4f94eb(0x1bd),'description':a263_0x4f94eb(0x205),'hidden':!![]},{'name':a263_0x4f94eb(0x241),'meowKey':a263_0x4f94eb(0x241),'type':a263_0x4f94eb(0x1bd),'description':'Type\x20filter','hidden':!![]},{'name':a263_0x4f94eb(0x249),'meowKey':'file','type':'string','description':a263_0x4f94eb(0x1f1),'hidden':!![]},{'name':a263_0x4f94eb(0x215),'meowKey':a263_0x4f94eb(0x1e1),'type':a263_0x4f94eb(0x1bd),'description':a263_0x4f94eb(0x22f),'hidden':!![]},{'name':a263_0x4f94eb(0x1fb),'meowKey':'flowName','type':'string','description':a263_0x4f94eb(0x1d5),'hidden':!![]},{'name':a263_0x4f94eb(0x1ce),'meowKey':'flowStatus','type':a263_0x4f94eb(0x1bd),'description':a263_0x4f94eb(0x1c0),'hidden':!![]},{'name':a263_0x4f94eb(0x212),'meowKey':a263_0x4f94eb(0x1c4),'type':a263_0x4f94eb(0x1bd),'description':a263_0x4f94eb(0x1b6),'hidden':!![]},{'name':a263_0x4f94eb(0x1ba),'meowKey':a263_0x4f94eb(0x230),'type':a263_0x4f94eb(0x1bd),'description':'Dataset\x20code','hidden':!![]},{'name':'sqlcode','meowKey':a263_0x4f94eb(0x1fe),'type':a263_0x4f94eb(0x1bd),'description':'SQL\x20code','hidden':!![]},{'name':a263_0x4f94eb(0x1bf),'meowKey':a263_0x4f94eb(0x216),'type':'string','description':'SQL\x20name','hidden':!![]},{'name':a263_0x4f94eb(0x213),'meowKey':a263_0x4f94eb(0x213),'type':a263_0x4f94eb(0x1bd),'description':'SQL\x20name','hidden':!![]},{'name':a263_0x4f94eb(0x1c7),'meowKey':a263_0x4f94eb(0x1cb),'type':a263_0x4f94eb(0x1bd),'description':a263_0x4f94eb(0x225),'hidden':!![]},{'name':a263_0x4f94eb(0x232),'meowKey':a263_0x4f94eb(0x232),'type':'string','description':a263_0x4f94eb(0x225),'hidden':!![]},{'name':a263_0x4f94eb(0x21e),'meowKey':a263_0x4f94eb(0x21e),'type':a263_0x4f94eb(0x1bd),'description':a263_0x4f94eb(0x209),'hidden':!![]},{'name':'description-file','meowKey':a263_0x4f94eb(0x1d3),'type':'string','description':'Description\x20file','hidden':!![]},{'name':a263_0x4f94eb(0x23e),'meowKey':'page','type':'string','description':'Page\x20number','hidden':!![]},{'name':'page-size','meowKey':a263_0x4f94eb(0x1f3),'type':a263_0x4f94eb(0x1bd),'description':'Page\x20size','hidden':!![]},{'name':a263_0x4f94eb(0x202),'meowKey':a263_0x4f94eb(0x202),'type':a263_0x4f94eb(0x1bd),'description':a263_0x4f94eb(0x204),'hidden':!![]},{'name':a263_0x4f94eb(0x1d7),'meowKey':a263_0x4f94eb(0x1d7),'type':a263_0x4f94eb(0x1bd),'description':'Keyword\x20filter','hidden':!![]},{'name':a263_0x4f94eb(0x233),'meowKey':a263_0x4f94eb(0x233),'type':'string','description':a263_0x4f94eb(0x221),'hidden':!![]},{'name':'sql','meowKey':a263_0x4f94eb(0x1d0),'type':a263_0x4f94eb(0x1bd),'description':a263_0x4f94eb(0x223),'hidden':!![]},{'name':a263_0x4f94eb(0x1f6),'meowKey':'schemas','type':a263_0x4f94eb(0x1bd),'description':a263_0x4f94eb(0x1ee),'hidden':!![]},{'name':'operation','meowKey':a263_0x4f94eb(0x238),'type':a263_0x4f94eb(0x1bd),'description':a263_0x4f94eb(0x1c8),'hidden':!![]},{'name':a263_0x4f94eb(0x203),'meowKey':'target','type':'string','description':a263_0x4f94eb(0x208),'hidden':!![]},{'name':'skip-imports','meowKey':a263_0x4f94eb(0x1c6),'type':a263_0x4f94eb(0x1c1),'description':a263_0x4f94eb(0x224),'hidden':!![]},{'name':a263_0x4f94eb(0x1db),'meowKey':a263_0x4f94eb(0x1db),'type':'string','description':a263_0x4f94eb(0x24a),'hidden':!![]},{'name':a263_0x4f94eb(0x1f7),'meowKey':a263_0x4f94eb(0x1f7),'type':a263_0x4f94eb(0x1bd),'description':'Config\x20value','hidden':!![]},{'name':a263_0x4f94eb(0x1d8),'meowKey':'tags','type':a263_0x4f94eb(0x1bd),'description':a263_0x4f94eb(0x1e7),'hidden':!![]},{'name':a263_0x4f94eb(0x1f8),'meowKey':a263_0x4f94eb(0x1f8),'type':a263_0x4f94eb(0x1c1),'description':'Read\x20value\x20from\x20stdin','hidden':!![]},{'name':'from-env','meowKey':a263_0x4f94eb(0x21a),'type':a263_0x4f94eb(0x1bd),'description':a263_0x4f94eb(0x1bc),'hidden':!![]},{'name':a263_0x4f94eb(0x246),'meowKey':a263_0x4f94eb(0x246),'type':a263_0x4f94eb(0x1c1),'description':a263_0x4f94eb(0x1e0),'hidden':!![]},{'name':a263_0x4f94eb(0x1c5),'meowKey':a263_0x4f94eb(0x1c5),'type':a263_0x4f94eb(0x1c1),'description':a263_0x4f94eb(0x1e6),'hidden':!![]},{'name':a263_0x4f94eb(0x1b9),'meowKey':a263_0x4f94eb(0x1b9),'type':'boolean','description':a263_0x4f94eb(0x201),'hidden':!![]},{'name':a263_0x4f94eb(0x211),'meowKey':a263_0x4f94eb(0x211),'type':a263_0x4f94eb(0x1c1),'description':a263_0x4f94eb(0x1f9),'hidden':!![]},{'name':'verbose','meowKey':a263_0x4f94eb(0x20a),'type':a263_0x4f94eb(0x1c1),'description':a263_0x4f94eb(0x1e9),'hidden':!![]},{'name':a263_0x4f94eb(0x239),'meowKey':a263_0x4f94eb(0x1f4),'type':'string','description':a263_0x4f94eb(0x228),'hidden':!![]},{'name':a263_0x4f94eb(0x22d),'meowKey':a263_0x4f94eb(0x22d),'type':a263_0x4f94eb(0x1bd),'description':a263_0x4f94eb(0x1d1),'hidden':!![]},{'name':a263_0x4f94eb(0x217),'meowKey':a263_0x4f94eb(0x20c),'type':a263_0x4f94eb(0x1bd),'description':a263_0x4f94eb(0x234),'hidden':!![]},{'name':a263_0x4f94eb(0x1e5),'meowKey':a263_0x4f94eb(0x1e5),'type':a263_0x4f94eb(0x1bd),'description':a263_0x4f94eb(0x227),'hidden':!![]},{'name':a263_0x4f94eb(0x1cd),'meowKey':a263_0x4f94eb(0x210),'type':a263_0x4f94eb(0x1bd),'description':a263_0x4f94eb(0x247),'hidden':!![]},{'name':a263_0x4f94eb(0x1cf),'meowKey':a263_0x4f94eb(0x1fd),'type':'string','description':a263_0x4f94eb(0x22b),'hidden':!![]},{'name':'expected-children-count','meowKey':'expectedChildrenCount','type':a263_0x4f94eb(0x1bd),'description':'Expected\x20current\x20child\x20count','hidden':!![]},{'name':'menu-ids','meowKey':a263_0x4f94eb(0x23c),'type':'string','description':'Comma-separated\x20menu\x20IDs','hidden':!![]},{'name':a263_0x4f94eb(0x1ea),'meowKey':a263_0x4f94eb(0x207),'type':'string','description':'Asynchronous\x20task\x20ID','hidden':!![]},{'name':a263_0x4f94eb(0x23a),'meowKey':'operationType','type':a263_0x4f94eb(0x1bd),'description':a263_0x4f94eb(0x1c8),'hidden':!![]},{'name':a263_0x4f94eb(0x22e),'meowKey':a263_0x4f94eb(0x243),'type':a263_0x4f94eb(0x1bd),'description':'Function\x20node','hidden':!![]},{'name':a263_0x4f94eb(0x1e4),'meowKey':a263_0x4f94eb(0x1e4),'type':'string','description':a263_0x4f94eb(0x1c9),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a263_0x4f94eb(0x219),a263_0x4f94eb(0x20d),a263_0x4f94eb(0x220),a263_0x4f94eb(0x1c3),'jq',a263_0x4f94eb(0x23f),a263_0x4f94eb(0x1dd),a263_0x4f94eb(0x1ec),'ci']);function a263_0x59bf(_0x1a7a39,_0x532e60){_0x1a7a39=_0x1a7a39-0x1b6;const _0x2fa0ea=a263_0x2fa0();let _0x59bfc4=_0x2fa0ea[_0x1a7a39];return _0x59bfc4;}export function buildMeowFlags(){const _0x327507=a263_0x4f94eb;return Object['fromEntries'](GLOBAL_FLAGS[_0x327507(0x1d9)](_0x2e7720=>[_0x2e7720[_0x327507(0x21b)],{'type':_0x2e7720[_0x327507(0x241)]}]));}
|
|
1
|
+
const a263_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)]}]));}
|
package/lib/constant/defaults.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a264_0x2a172e=a264_0x4abf;function a264_0xa9cc(){const _0x1ab561=['42zLhcBN','13488224KyjDvi','production','1183147QryJul','25409AGeMck','en-US','62ECwdBe','compress','2244740kskqrb','37862920cubSBZ','123756oBMAum','write','5mgSjmx','3408282phxBRc'];a264_0xa9cc=function(){return _0x1ab561;};return a264_0xa9cc();}(function(_0x5b187f,_0x5084ca){const _0x35678e=a264_0x4abf,_0x577270=_0x5b187f();while(!![]){try{const _0x3b231c=parseInt(_0x35678e(0x95))/0x1*(parseInt(_0x35678e(0x97))/0x2)+parseInt(_0x35678e(0x9b))/0x3+parseInt(_0x35678e(0x99))/0x4*(parseInt(_0x35678e(0x9d))/0x5)+parseInt(_0x35678e(0x9f))/0x6*(parseInt(_0x35678e(0x94))/0x7)+parseInt(_0x35678e(0x92))/0x8+parseInt(_0x35678e(0x9e))/0x9+-parseInt(_0x35678e(0x9a))/0xa;if(_0x3b231c===_0x5084ca)break;else _0x577270['push'](_0x577270['shift']());}catch(_0x2f766f){_0x577270['push'](_0x577270['shift']());}}}(a264_0xa9cc,0xcfef1));import{DEFAULT_API_DIR}from'../constant/paths.js';function a264_0x4abf(_0x1974e6,_0x1627ac){_0x1974e6=_0x1974e6-0x92;const _0xa9ccbe=a264_0xa9cc();let _0x4abf8c=_0xa9ccbe[_0x1974e6];return _0x4abf8c;}export const DEFAULT_CONFIG_VALUES={'env':a264_0x2a172e(0x93),'format':a264_0x2a172e(0x98),'locale':a264_0x2a172e(0x96),'riskLevel':a264_0x2a172e(0x9c),'apiDir':DEFAULT_API_DIR};export const DEFAULT_COMMAND_OUTPUT_FORMAT='compress';
|
package/lib/constant/domain.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a265_0x1cfc78=a265_0x43c8;(function(_0x3395a4,_0x40b7f8){const _0x11c951=a265_0x43c8,_0x156805=_0x3395a4();while(!![]){try{const _0x226c86=-parseInt(_0x11c951(0x1d3))/0x1*(-parseInt(_0x11c951(0x1cc))/0x2)+-parseInt(_0x11c951(0x1da))/0x3+parseInt(_0x11c951(0x1d5))/0x4+parseInt(_0x11c951(0x1c3))/0x5+parseInt(_0x11c951(0x1d2))/0x6*(parseInt(_0x11c951(0x1c5))/0x7)+-parseInt(_0x11c951(0x1de))/0x8+parseInt(_0x11c951(0x1c2))/0x9*(parseInt(_0x11c951(0x1c0))/0xa);if(_0x226c86===_0x40b7f8)break;else _0x156805['push'](_0x156805['shift']());}catch(_0x318a7b){_0x156805['push'](_0x156805['shift']());}}}(a265_0x3521,0x2d769));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 a265_0x3521(){const _0x242bea=['271304XtoDWS','production','certificateDomain','region','allowOfficialKbServiceDefault','hostname','6NgDWkA','1xQUgsr','userDomain','1063128kDUTrx','/app/','runtimeDomain','user','skill','1050600JqJFju','cdn','appDomain','runtime','2422592nQparu','trim','origin','3200160zDncon','kbServiceDomain','9MbsRfD','183635YYsVLZ','api','567448mDOkaP','app','localDomain','kbDomain','apiDomain','kbService','serviceDomains'];a265_0x3521=function(){return _0x242bea;};return a265_0x3521();}function getActiveRegionDomains(){const _0x53a4f7=a265_0x43c8,_0x3e9fbc=getOfficialRoutingProfile(activeRegion);return isProduction(getEnv())?_0x3e9fbc[_0x53a4f7(0x1cb)][_0x53a4f7(0x1cd)]:_0x3e9fbc[_0x53a4f7(0x1cb)]['daily']??_0x3e9fbc[_0x53a4f7(0x1cb)][_0x53a4f7(0x1cd)];}export function initDomains(_0x178591){const _0x3ce750=a265_0x43c8;customApiDomain=_0x178591?.[_0x3ce750(0x1c9)],customUserDomain=_0x178591?.[_0x3ce750(0x1d4)],customRuntimeDomain=_0x178591?.[_0x3ce750(0x1d7)],customSkillDomain=_0x178591?.['skillDomain'],customKbDomain=_0x178591?.[_0x3ce750(0x1c8)],customKbServiceDomain=_0x178591?.[_0x3ce750(0x1c1)],allowOfficialKbServiceDefault=_0x178591?.[_0x3ce750(0x1d0)]??!![],customAppDomain=_0x178591?.[_0x3ce750(0x1dc)],customLocalDomain=_0x178591?.[_0x3ce750(0x1c7)],customCertificateDomain=_0x178591?.[_0x3ce750(0x1ce)],customCdn=_0x178591?.[_0x3ce750(0x1db)],activeRegion=_0x178591?.[_0x3ce750(0x1cf)]??DEFAULT_LOVRABET_REGION;}export const getUserDomain=()=>customUserDomain||getActiveRegionDomains()[a265_0x1cfc78(0x1d8)];export const getApiDomain=()=>customApiDomain||getActiveRegionDomains()[a265_0x1cfc78(0x1c4)];export const getRuntimeDomain=()=>customRuntimeDomain||getActiveRegionDomains()['runtime'];export const getSkillDomain=()=>customSkillDomain||getActiveRegionDomains()[a265_0x1cfc78(0x1d9)];export const getKbDomain=()=>customKbDomain||customApiDomain||getActiveRegionDomains()['kb'];export const getKbServiceDomain=()=>{const _0x5c4cd4=a265_0x1cfc78;if(customKbServiceDomain)return customKbServiceDomain;if(!allowOfficialKbServiceDefault)return undefined;return getActiveRegionDomains()[_0x5c4cd4(0x1ca)];};export const getAppDomain=()=>customAppDomain||getActiveRegionDomains()[a265_0x1cfc78(0x1c6)];export const getActiveRegion=()=>activeRegion;function a265_0x43c8(_0xbdc830,_0x515c07){_0xbdc830=_0xbdc830-0x1c0;const _0x352132=a265_0x3521();let _0x43c851=_0x352132[_0xbdc830];return _0x43c851;}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 _0x16b5a3=a265_0x1cfc78;if(customRuntimeDomain&&customRuntimeDomain!==getActiveRegionDomains()[_0x16b5a3(0x1dd)])return{'runtimeDomain':customRuntimeDomain};if(activeRegion!==DEFAULT_LOVRABET_REGION)return{'runtimeDomain':getRuntimeDomain()};return{};}export const getAppBaseUrl=_0x3598c3=>{const _0x3006f3=a265_0x1cfc78,_0x57cbb8=encodeURIComponent(_0x3598c3[_0x3006f3(0x1df)]());return isProduction(getEnv())?getAppDomain()+_0x3006f3(0x1d6)+_0x57cbb8:getAppDomain()+'/web-app/app/'+_0x57cbb8;};export const getPublishedAppDomain=_0x17ef28=>{const _0x3ba123=a265_0x1cfc78,_0x3c6e7c=new URL(getAppDomain());return _0x3c6e7c[_0x3ba123(0x1d1)]=_0x17ef28[_0x3ba123(0x1df)]()+'.'+_0x3c6e7c[_0x3ba123(0x1d1)],_0x3c6e7c[_0x3ba123(0x1e0)];};
|
package/lib/constant/env.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a266_0x4a6bef=a266_0x31db;(function(_0x2479fc,_0x4bf427){const _0x4bf872=a266_0x31db,_0x51950e=_0x2479fc();while(!![]){try{const _0x48eb2c=-parseInt(_0x4bf872(0x1a8))/0x1*(-parseInt(_0x4bf872(0x1ab))/0x2)+parseInt(_0x4bf872(0x1a6))/0x3*(parseInt(_0x4bf872(0x19e))/0x4)+-parseInt(_0x4bf872(0x1a1))/0x5*(parseInt(_0x4bf872(0x1a2))/0x6)+parseInt(_0x4bf872(0x1ac))/0x7*(parseInt(_0x4bf872(0x1aa))/0x8)+parseInt(_0x4bf872(0x19d))/0x9*(parseInt(_0x4bf872(0x1a0))/0xa)+-parseInt(_0x4bf872(0x1a7))/0xb+-parseInt(_0x4bf872(0x1a4))/0xc*(parseInt(_0x4bf872(0x1a9))/0xd);if(_0x48eb2c===_0x4bf427)break;else _0x51950e['push'](_0x51950e['shift']());}catch(_0x40acd7){_0x51950e['push'](_0x51950e['shift']());}}}(a266_0x554f,0x86cdc));export const RABETBASE_ENV_VALUES=[a266_0x4a6bef(0x1ad),a266_0x4a6bef(0x1a5)];export function normalizeEnv(_0x533648){return _0x533648==='online'?'production':_0x533648;}export function isProduction(_0x3e826c){const _0x3a3bd2=a266_0x4a6bef;return normalizeEnv(_0x3e826c)===_0x3a3bd2(0x1ad);}export function isDaily(_0x5b2983){const _0x1167dd=a266_0x4a6bef;return normalizeEnv(_0x5b2983)===_0x1167dd(0x1a5);}export function isDev(_0x193c16){const _0x4e4f5b=a266_0x4a6bef,_0x4405b0=normalizeEnv(_0x193c16);return _0x4405b0===_0x4e4f5b(0x1a3)||_0x4405b0===_0x4e4f5b(0x19f);}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||a266_0x4a6bef(0x1ad));export function getEnv(){return env;}function a266_0x554f(){const _0x1e358c=['daily','3dscJKT','3141512QuNvYP','8fHEXsh','1946243sgDVPM','4477576XbCqGe','113338OLpHgK','7NGsWhz','production','63eADBJv','2358724NNzXHe','dev','1527850IBRLjr','230kWDGEo','141642pSfzuw','development','60mDWpdG'];a266_0x554f=function(){return _0x1e358c;};return a266_0x554f();}function a266_0x31db(_0x14fa6e,_0x4ac9bc){_0x14fa6e=_0x14fa6e-0x19d;const _0x554fc5=a266_0x554f();let _0x31db66=_0x554fc5[_0x14fa6e];return _0x31db66;}export function initEnv(_0x354bda){env=normalizeEnv(_0x354bda);}
|
package/lib/constant/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a267_0x11ed08=a267_0x3aa5;function a267_0x3aa5(_0x32a875,_0x2b60cc){_0x32a875=_0x32a875-0xc7;const _0x3686c6=a267_0x3686();let _0x3aa5e1=_0x3686c6[_0x32a875];return _0x3aa5e1;}(function(_0x9c4c7b,_0x23705d){const _0x396c20=a267_0x3aa5,_0x38a943=_0x9c4c7b();while(!![]){try{const _0x4bfafa=parseInt(_0x396c20(0xd1))/0x1+parseInt(_0x396c20(0xca))/0x2*(-parseInt(_0x396c20(0xcd))/0x3)+-parseInt(_0x396c20(0xd0))/0x4+parseInt(_0x396c20(0xc9))/0x5+parseInt(_0x396c20(0xce))/0x6+parseInt(_0x396c20(0xc8))/0x7+-parseInt(_0x396c20(0xcf))/0x8*(-parseInt(_0x396c20(0xcc))/0x9);if(_0x4bfafa===_0x23705d)break;else _0x38a943['push'](_0x38a943['shift']());}catch(_0x446c46){_0x38a943['push'](_0x38a943['shift']());}}}(a267_0x3686,0x37d81));export const RABETBASE_OUTPUT_FORMAT_VALUES=[a267_0x11ed08(0xc7),a267_0x11ed08(0xcb),'compress'];function a267_0x3686(){const _0x3e5021=['4858YwoeUS','pretty','359442fAZHhY','486kyRpAY','329796iQnhGv','24TsIUNX','1062916jrefhg','62102fjRHsJ','json','3115791Vurund','1029845mdlTsO'];a267_0x3686=function(){return _0x3e5021;};return a267_0x3686();}
|
package/lib/constant/paths.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a268_0x1940(_0x263cce,_0x46edce){_0x263cce=_0x263cce-0x135;const _0x444aab=a268_0x444a();let _0x1940e2=_0x444aab[_0x263cce];return _0x1940e2;}const a268_0x476ddd=a268_0x1940;function a268_0x444a(){const _0x26d3a8=['720171YqRUno','2794UCmdzn','253heiofY','12rydGtU','3150680wfiSln','./src/api','823325NxLtkF','1235948THsAQY','327670NZSxAq','2042knfXWf','20dEbDIS','30HgyUEY'];a268_0x444a=function(){return _0x26d3a8;};return a268_0x444a();}(function(_0xd60eb1,_0x3a0053){const _0x232a2a=a268_0x1940,_0xaaf118=_0xd60eb1();while(!![]){try{const _0x207867=-parseInt(_0x232a2a(0x140))/0x1+-parseInt(_0x232a2a(0x138))/0x2*(-parseInt(_0x232a2a(0x13a))/0x3)+parseInt(_0x232a2a(0x135))/0x4*(parseInt(_0x232a2a(0x13d))/0x5)+-parseInt(_0x232a2a(0x136))/0x6*(-parseInt(_0x232a2a(0x13e))/0x7)+-parseInt(_0x232a2a(0x13b))/0x8+-parseInt(_0x232a2a(0x137))/0x9+-parseInt(_0x232a2a(0x13f))/0xa*(parseInt(_0x232a2a(0x139))/0xb);if(_0x207867===_0x3a0053)break;else _0xaaf118['push'](_0xaaf118['shift']());}catch(_0x46cc20){_0xaaf118['push'](_0xaaf118['shift']());}}}(a268_0x444a,0x75b94));export const DEFAULT_API_DIR=a268_0x476ddd(0x13c);
|
package/lib/constant/region.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x5b8486,_0x4ce26a){const _0x410a23=a269_0x4554,_0x38eab7=_0x5b8486();while(!![]){try{const _0x336e71=parseInt(_0x410a23(0x147))/0x1+parseInt(_0x410a23(0x144))/0x2+parseInt(_0x410a23(0x149))/0x3*(parseInt(_0x410a23(0x143))/0x4)+parseInt(_0x410a23(0x146))/0x5*(-parseInt(_0x410a23(0x145))/0x6)+parseInt(_0x410a23(0x140))/0x7+parseInt(_0x410a23(0x148))/0x8+-parseInt(_0x410a23(0x141))/0x9;if(_0x336e71===_0x4ce26a)break;else _0x38eab7['push'](_0x38eab7['shift']());}catch(_0x33035a){_0x38eab7['push'](_0x38eab7['shift']());}}}(a269_0x5e79,0x3664c));import{DEFAULT_REGION,ENABLED_REGION_VALUES,REGION_ALIASES,REGION_VALUES}from'../generated/official-routing.js';function a269_0x5e79(){const _0x5a3bc8=['string','17560uhmJyK','190776kGWSpB','204YVOTnI','6955SviVZO','279714UNcZLT','1813016zYKlQT','189DYMemg','includes','2909291FdlKkI','9214398ukRGnV'];a269_0x5e79=function(){return _0x5a3bc8;};return a269_0x5e79();}export const LOVRABET_REGION_VALUES=REGION_VALUES;export const ENABLED_LOVRABET_REGION_VALUES=ENABLED_REGION_VALUES;function a269_0x4554(_0x137ffd,_0x2628a5){_0x137ffd=_0x137ffd-0x13f;const _0x5e7972=a269_0x5e79();let _0x455420=_0x5e7972[_0x137ffd];return _0x455420;}export const DEFAULT_LOVRABET_REGION=DEFAULT_REGION;export function isLovrabetRegion(_0x2df877){return typeof _0x2df877==='string'&&LOVRABET_REGION_VALUES['includes'](_0x2df877);}export function isEnabledLovrabetRegion(_0x139be3){const _0x2f1bcf=a269_0x4554;return typeof _0x139be3===_0x2f1bcf(0x142)&&ENABLED_LOVRABET_REGION_VALUES[_0x2f1bcf(0x13f)](_0x139be3);}export function normalizeLovrabetRegion(_0x557fc4){const _0x4d8c92=a269_0x4554;if(typeof _0x557fc4!==_0x4d8c92(0x142))return undefined;const _0x56f5d6=REGION_ALIASES[_0x557fc4]??_0x557fc4;return isLovrabetRegion(_0x56f5d6)?_0x56f5d6:undefined;}export function isInvalidLovrabetRegion(_0x3d874c){return _0x3d874c!==undefined&&_0x3d874c!==null&&_0x3d874c!==''&&normalizeLovrabetRegion(_0x3d874c)===undefined;}
|
package/lib/constant/risk.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a270_0x1fd8c6=a270_0x4025;function a270_0x23db(){const _0x1095a9=['8533jLQRQC','2736VnMwpX','45crzJtC','43308DawXuu','4332852OVmlIF','311820aMaRod','high-risk-write','125fJaszJ','1173768XHtPwH','1326730ikIfLt','11YpVWjA','5876DaJluK','178BkiCXJ'];a270_0x23db=function(){return _0x1095a9;};return a270_0x23db();}function a270_0x4025(_0x4c6eba,_0x472add){_0x4c6eba=_0x4c6eba-0xdf;const _0x23db51=a270_0x23db();let _0x4025b3=_0x23db51[_0x4c6eba];return _0x4025b3;}(function(_0x4b0bb1,_0x27f6b8){const _0x33eec5=a270_0x4025,_0x27ff09=_0x4b0bb1();while(!![]){try{const _0x5988f1=parseInt(_0x33eec5(0xe2))/0x1*(parseInt(_0x33eec5(0xe3))/0x2)+-parseInt(_0x33eec5(0xe9))/0x3+-parseInt(_0x33eec5(0xe7))/0x4*(-parseInt(_0x33eec5(0xeb))/0x5)+parseInt(_0x33eec5(0xe5))/0x6*(-parseInt(_0x33eec5(0xe4))/0x7)+-parseInt(_0x33eec5(0xdf))/0x8*(-parseInt(_0x33eec5(0xe6))/0x9)+parseInt(_0x33eec5(0xe0))/0xa*(-parseInt(_0x33eec5(0xe1))/0xb)+-parseInt(_0x33eec5(0xe8))/0xc;if(_0x5988f1===_0x27f6b8)break;else _0x27ff09['push'](_0x27ff09['shift']());}catch(_0x348d58){_0x27ff09['push'](_0x27ff09['shift']());}}}(a270_0x23db,0x5b3c0));export const RISK_LEVEL_VALUES=['read','write',a270_0x1fd8c6(0xea)];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x2fdc26,_0xe76e29){const _0x543ad6=a271_0x1ace,_0xf29f4f=_0x2fdc26();while(!![]){try{const _0x4cffa1=-parseInt(_0x543ad6(0xf9))/0x1+-parseInt(_0x543ad6(0xf5))/0x2+-parseInt(_0x543ad6(0xf8))/0x3+parseInt(_0x543ad6(0x100))/0x4*(parseInt(_0x543ad6(0xf6))/0x5)+-parseInt(_0x543ad6(0xfb))/0x6+-parseInt(_0x543ad6(0x101))/0x7*(-parseInt(_0x543ad6(0xfe))/0x8)+parseInt(_0x543ad6(0xfc))/0x9;if(_0x4cffa1===_0xe76e29)break;else _0xf29f4f['push'](_0xf29f4f['shift']());}catch(_0x21c034){_0xf29f4f['push'](_0xf29f4f['shift']());}}}(a271_0x50e0,0xafd4e));import{OFFICIAL_ROUTING_PROFILES as a271_0x1e8a3d,ROUTING_CATALOG_DIGEST}from'../generated/official-routing.js';function a271_0x1ace(_0x11bf9b,_0x1b318a){_0x11bf9b=_0x11bf9b-0xf5;const _0x50e01e=a271_0x50e0();let _0x1ace99=_0x50e01e[_0x11bf9b];return _0x1ace99;}export const OFFICIAL_ROUTING_PROFILES=a271_0x1e8a3d;function a271_0x50e0(){const _0x1f70dc=['libraries','2400900FgUPCs','642072rDLczY','\x22\x20is\x20not\x20ready:\x20Lovrabet\x20CDN\x20Domain\x20is\x20not\x20configured.','161766APVNkh','8221428Ubtajg','Official\x20routing\x20for\x20region\x20\x22','32vPpVZz','cdn','4hxzOjj','218162fJzSza','287406YDlbtH','6475430FVSvwk'];a271_0x50e0=function(){return _0x1f70dc;};return a271_0x50e0();}export{ROUTING_CATALOG_DIGEST};export function getOfficialRoutingProfile(_0x5e26f7){return OFFICIAL_ROUTING_PROFILES[_0x5e26f7];}export function getOfficialRoutingCdn(_0x49be40){const _0x5891ae=a271_0x1ace,_0x2558ad=getOfficialRoutingProfile(_0x49be40)[_0x5891ae(0xff)];if(!_0x2558ad['lovrabet'])throw new Error(_0x5891ae(0xfd)+_0x49be40+_0x5891ae(0xfa));return{'libraries':_0x2558ad[_0x5891ae(0xf7)],'lovrabet':_0x2558ad['lovrabet']};}
|