@lovrabet/rabetbase-cli 2.5.10-beta.4 → 2.5.10-beta.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api/api-doc.js +1 -1
- package/lib/api/api-group.js +1 -1
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.js +1 -1
- package/lib/api/generate-sdk-config-file.js +1 -1
- package/lib/api/legacy-api-file.js +1 -1
- package/lib/api/model-registry-file.js +1 -1
- package/lib/api/model-registry-scaffold.js +1 -1
- package/lib/api/model-source.js +1 -1
- package/lib/auth/auth-server-ui.js +1 -1
- package/lib/auth/auth-server.js +1 -1
- package/lib/auth/constant.js +1 -1
- package/lib/auth/get-cookie.js +1 -1
- package/lib/auth/get-session-user.js +1 -1
- package/lib/auth/is-session-valid.js +1 -1
- package/lib/auth/login-success-html.js +1 -1
- package/lib/auth/logout.js +1 -1
- package/lib/cli-flags.js +1 -1
- package/lib/cli.js +1 -1
- package/lib/commands/api/generate.js +1 -1
- package/lib/commands/api/index.js +1 -1
- package/lib/commands/api/list.js +1 -1
- package/lib/commands/api/pull.js +1 -1
- package/lib/commands/api/shared.js +1 -1
- package/lib/commands/app/detail.js +1 -1
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/members-list.js +1 -1
- package/lib/commands/app/remote-directory.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/delete.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/app-config/list.js +1 -1
- package/lib/commands/app-config/set.js +1 -1
- package/lib/commands/app-config/shared.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/bff/create.js +1 -1
- package/lib/commands/bff/delete.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/bff/list.js +1 -1
- package/lib/commands/bff/logs.js +1 -1
- package/lib/commands/bff/pull.js +1 -1
- package/lib/commands/bff/push.js +1 -1
- package/lib/commands/bff/status.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/cli-update.js +1 -1
- package/lib/commands/codegen/index.js +1 -1
- package/lib/commands/codegen/sdk.js +1 -1
- package/lib/commands/codegen/sql.js +1 -1
- package/lib/commands/common/app-registry.js +1 -1
- package/lib/commands/common/app-selector.js +1 -1
- package/lib/commands/common/async-task.js +1 -1
- package/lib/commands/common/dry-run.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/common/validate.js +1 -1
- package/lib/commands/config/delete.js +1 -1
- package/lib/commands/config/get.js +1 -1
- package/lib/commands/config/index.js +1 -1
- package/lib/commands/config/init.js +1 -1
- package/lib/commands/config/list.js +1 -1
- package/lib/commands/config/set.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/dataset/batch-design.js +1 -1
- package/lib/commands/dataset/business-group-update.js +1 -1
- package/lib/commands/dataset/business-groups.js +1 -1
- package/lib/commands/dataset/capability.js +1 -1
- package/lib/commands/dataset/cross-relation-create.js +1 -1
- package/lib/commands/dataset/cross-relation-delete.js +1 -1
- package/lib/commands/dataset/cross-relation-list.js +1 -1
- package/lib/commands/dataset/cross-relation-shared.js +1 -1
- package/lib/commands/dataset/cross-relation-update.js +1 -1
- package/lib/commands/dataset/delete.js +1 -1
- package/lib/commands/dataset/design-context.js +1 -1
- package/lib/commands/dataset/design-start.js +1 -1
- package/lib/commands/dataset/design-status.js +1 -1
- package/lib/commands/dataset/design-sync-retry.js +1 -1
- package/lib/commands/dataset/design-sync-status.js +1 -1
- package/lib/commands/dataset/design-validate.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/extend-update.js +1 -1
- package/lib/commands/dataset/field-restore.js +1 -1
- package/lib/commands/dataset/field-update.js +1 -1
- package/lib/commands/dataset/generate.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/dataset/relation-audit.js +1 -1
- package/lib/commands/dataset/relation-create.js +1 -1
- package/lib/commands/dataset/relation-delete.js +1 -1
- package/lib/commands/dataset/relation-shared.js +1 -1
- package/lib/commands/dataset/relation-update.js +1 -1
- package/lib/commands/dataset/relations.js +1 -1
- package/lib/commands/dataset/rename.js +1 -1
- package/lib/commands/dataset/restore.js +1 -1
- package/lib/commands/dataset/user-deleted-field-list.js +1 -1
- package/lib/commands/db/analysis-batching.js +1 -1
- package/lib/commands/db/analyze-batch-plan.js +1 -1
- package/lib/commands/db/analyze-cancel.js +1 -1
- package/lib/commands/db/analyze-start.js +1 -1
- package/lib/commands/db/analyze-status.js +1 -1
- package/lib/commands/db/create.js +1 -1
- package/lib/commands/db/cross-db-analysis-shared.js +1 -1
- package/lib/commands/db/cross-db-analyze-latest.js +1 -1
- package/lib/commands/db/cross-db-analyze-start.js +1 -1
- package/lib/commands/db/cross-db-analyze-status.js +1 -1
- package/lib/commands/db/delete.js +1 -1
- package/lib/commands/db/detail.js +1 -1
- package/lib/commands/db/diff-refresh-start.js +1 -1
- package/lib/commands/db/diff-refresh-status.js +1 -1
- package/lib/commands/db/diff.js +1 -1
- package/lib/commands/db/index.js +1 -1
- package/lib/commands/db/list.js +1 -1
- package/lib/commands/db/shared.js +1 -1
- package/lib/commands/db/table-diff-shared.js +1 -1
- package/lib/commands/db/tables.js +1 -1
- package/lib/commands/db/test.js +1 -1
- package/lib/commands/db/update.js +1 -1
- package/lib/commands/deployment/index.js +1 -1
- package/lib/commands/deployment/sync-all.js +1 -1
- package/lib/commands/deployment/sync-jobs.js +1 -1
- package/lib/commands/deployment/sync-status.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/flow/create.js +1 -1
- package/lib/commands/flow/detail.js +1 -1
- package/lib/commands/flow/index.js +1 -1
- package/lib/commands/flow/list.js +1 -1
- package/lib/commands/flow/page-list.js +1 -1
- package/lib/commands/flow/publish.js +1 -1
- package/lib/commands/flow/runtime-resources-shared.js +1 -1
- package/lib/commands/flow/runtime-role-list.js +1 -1
- package/lib/commands/flow/runtime-role-user-list.js +1 -1
- package/lib/commands/flow/runtime-user-search.js +1 -1
- package/lib/commands/flow/shared.js +1 -1
- package/lib/commands/flow/update.js +1 -1
- package/lib/commands/flow/validate.js +1 -1
- package/lib/commands/instant-api-policy/current.js +1 -1
- package/lib/commands/instant-api-policy/index.js +1 -1
- package/lib/commands/instant-api-policy/init.js +1 -1
- package/lib/commands/instant-api-policy/publish.js +1 -1
- package/lib/commands/instant-api-policy/pull.js +1 -1
- package/lib/commands/instant-api-policy/revision.js +1 -1
- package/lib/commands/instant-api-policy/revisions.js +1 -1
- package/lib/commands/instant-api-policy/rollback.js +1 -1
- package/lib/commands/instant-api-policy/shared.js +1 -1
- package/lib/commands/instant-api-policy/validate.js +1 -1
- package/lib/commands/issue/context.js +1 -1
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/nudge.js +1 -1
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/kb/create.js +1 -1
- package/lib/commands/kb/delete.js +1 -1
- package/lib/commands/kb/detail.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/kb/list.js +1 -1
- package/lib/commands/kb/search.js +1 -1
- package/lib/commands/kb/shared.js +1 -1
- package/lib/commands/kb/update.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/asset-update.js +1 -1
- package/lib/commands/menu/delete.js +1 -1
- package/lib/commands/menu/external-link-create.js +1 -1
- package/lib/commands/menu/external-link-update.js +1 -1
- package/lib/commands/menu/group-create.js +1 -1
- package/lib/commands/menu/group-update.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/list.js +1 -1
- package/lib/commands/menu/move.js +1 -1
- package/lib/commands/menu/regroup-start.js +1 -1
- package/lib/commands/menu/rename.js +1 -1
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/delete-plan.js +1 -1
- package/lib/commands/menu/shared/facts.js +1 -1
- package/lib/commands/menu/shared/index.js +1 -1
- package/lib/commands/menu/shared/inquirer.js +1 -1
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.js +1 -1
- package/lib/commands/menu/shared/mutations.js +1 -1
- package/lib/commands/menu/shared/path.js +1 -1
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/subapp-assets.js +1 -1
- package/lib/commands/menu/shared/sync-core.js +1 -1
- package/lib/commands/menu/shared/update-core.js +1 -1
- package/lib/commands/menu/shared/valid-url.js +1 -1
- package/lib/commands/menu/subapp-assets-status.js +1 -1
- package/lib/commands/menu/subapp-assets-update.js +1 -1
- package/lib/commands/menu/sync.js +1 -1
- package/lib/commands/menu/visibility-update.js +1 -1
- package/lib/commands/notification/config-create.js +1 -1
- package/lib/commands/notification/config-delete.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/config-update.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/notification/shared.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/page/create.js +1 -1
- package/lib/commands/page/custom/detail.js +1 -1
- package/lib/commands/page/custom/list.js +1 -1
- package/lib/commands/page/custom/publish.js +1 -1
- package/lib/commands/page/custom/shared.js +1 -1
- package/lib/commands/page/custom/syntax.js +1 -1
- package/lib/commands/page/custom/update.js +1 -1
- package/lib/commands/page/data-list-status.js +1 -1
- package/lib/commands/page/generate-start.js +1 -1
- package/lib/commands/page/generate-status.js +1 -1
- package/lib/commands/page/index.js +1 -1
- package/lib/commands/page/pull.js +1 -1
- package/lib/commands/page/push.js +1 -1
- package/lib/commands/page/relation-audit.js +1 -1
- package/lib/commands/page/restore.js +1 -1
- package/lib/commands/page/shared.js +1 -1
- package/lib/commands/page/sync.js +1 -1
- package/lib/commands/project/api-architecture-upgrade.js +1 -1
- package/lib/commands/project/create/enhanced-guided-create.js +1 -1
- package/lib/commands/project/create/format-elapsed.js +1 -1
- package/lib/commands/project/create/main.js +1 -1
- package/lib/commands/project/create/materialize-project-template.js +1 -1
- package/lib/commands/project/create/project-name.js +1 -1
- package/lib/commands/project/create/project-template-archive.js +1 -1
- package/lib/commands/project/create/project-template-path.js +1 -1
- package/lib/commands/project/create/use-copy-project-template.js +1 -1
- package/lib/commands/project/create/use-format-code.js +1 -1
- package/lib/commands/project/create/use-install-dependencies.js +1 -1
- package/lib/commands/project/domain-routing-sync.js +1 -1
- package/lib/commands/project/index.js +1 -1
- package/lib/commands/project/upgrade.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/role/user-resolve.js +1 -1
- package/lib/commands/rule/get.js +1 -1
- package/lib/commands/rule/index.js +1 -1
- package/lib/commands/rule/list.js +1 -1
- package/lib/commands/rule/set.js +1 -1
- package/lib/commands/rule/shared.js +1 -1
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/sql/create.js +1 -1
- package/lib/commands/sql/delete.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/sql/list.js +1 -1
- package/lib/commands/sql/pull.js +1 -1
- package/lib/commands/sql/push.js +1 -1
- package/lib/commands/sql/shared.js +1 -1
- package/lib/commands/sql/status.js +1 -1
- package/lib/commands/sql/validate.js +1 -1
- package/lib/commands/task/index.js +1 -1
- package/lib/commands/task/status.js +1 -1
- package/lib/commands/tenant/index.js +1 -1
- package/lib/commands/tenant/members-list.js +1 -1
- package/lib/commands/tenant/shared.js +1 -1
- package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
- package/lib/commands/user-account/feishu-bind.js +1 -1
- package/lib/commands/user-account/index.js +1 -1
- package/lib/commands/workspace/add.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/commands/workspace/remove.js +1 -1
- package/lib/config/domain-config.js +1 -1
- package/lib/config/project-domain-routing.js +1 -1
- package/lib/config/region-config.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/cdn.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/paths.js +1 -1
- package/lib/constant/region.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/routing-profile.js +1 -1
- package/lib/context/app-resolver.js +1 -1
- package/lib/context/auth-resolver.js +1 -1
- package/lib/context/config-loader.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/bff/config.js +1 -1
- package/lib/core/bff/file-system.js +1 -1
- package/lib/core/bff/hash.js +1 -1
- package/lib/core/bff/hook-directory.js +1 -1
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/cross-db-analysis.js +1 -1
- package/lib/core/cross-db-relation.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/flow-config.js +1 -1
- package/lib/core/instant-api-policy/config.js +1 -1
- package/lib/core/instant-api-policy/endpoints.js +1 -1
- package/lib/core/kb-management-client.js +1 -1
- package/lib/core/kb-search-client.js +1 -1
- package/lib/core/page/file-system.js +1 -1
- package/lib/core/page/hash.js +1 -1
- package/lib/core/page/lock.js +1 -1
- package/lib/core/page/lr-smart-jsx.js +1 -1
- package/lib/core/sql-index-auditor.js +1 -1
- package/lib/core/sql-sync/config.js +1 -1
- package/lib/core/sql-sync/file-system.js +1 -1
- package/lib/core/sql-sync/hash.js +1 -1
- package/lib/core/sql-sync/lock.js +1 -1
- package/lib/core/sql-sync/utils.js +1 -1
- package/lib/core/sql-validator.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/error-output.js +1 -1
- package/lib/framework/explicit-yes.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-alias.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/supported-flags.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/generated/official-routing.js +1 -1
- package/lib/generated/routing-contract.js +1 -1
- package/lib/help.js +1 -1
- package/lib/postinstall.js +1 -1
- package/lib/runtime/confirmation.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/services/dataset-design/checkpoint.js +1 -1
- package/lib/services/dataset-design/commands.js +1 -1
- package/lib/services/dataset-design/contract.js +1 -1
- package/lib/skills/builtin-skill.js +1 -1
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/skill-presence.js +1 -1
- package/lib/telemetry/cli-command-trace.js +1 -1
- package/lib/telemetry/cli-help-trace.js +1 -1
- package/lib/telemetry/ensure-cli-otel-config.js +1 -1
- package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
- package/lib/telemetry/send-cli-trace-log.js +1 -1
- package/lib/utils/ai_config.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cdn-config.js +1 -1
- package/lib/utils/check-sdk-version.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/config.js +1 -1
- package/lib/utils/entity-with-id.js +1 -1
- package/lib/utils/file-utils.js +1 -1
- package/lib/utils/guides-cdn.js +1 -1
- package/lib/utils/http-client.js +1 -1
- package/lib/utils/is-non-interactive.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/sleep.js +1 -1
- package/lib/utils/template-replacer.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/with-active-cookie.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +4 -4
- package/skills/rabetbase/SKILL.md +1 -1
- package/skills/rabetbase-dataset-generation/SKILL.md +1 -1
- package/skills/rabetbase-page-generation/SKILL.md +1 -1
- package/skills/rabetbase.manifest.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a263_0x285512=a263_0xeec0;(function(_0x321340,_0x295e11){const _0x1b5530=a263_0xeec0,_0xf86215=_0x321340();while(!![]){try{const _0x23b47a=-parseInt(_0x1b5530(0x13a))/0x1+parseInt(_0x1b5530(0x13b))/0x2*(-parseInt(_0x1b5530(0x143))/0x3)+-parseInt(_0x1b5530(0x137))/0x4+-parseInt(_0x1b5530(0x142))/0x5*(parseInt(_0x1b5530(0x147))/0x6)+parseInt(_0x1b5530(0x141))/0x7*(parseInt(_0x1b5530(0x134))/0x8)+parseInt(_0x1b5530(0x144))/0x9+parseInt(_0x1b5530(0x140))/0xa;if(_0x23b47a===_0x295e11)break;else _0xf86215['push'](_0xf86215['shift']());}catch(_0x25e04a){_0xf86215['push'](_0xf86215['shift']());}}}(a263_0x36eb,0xa27b1));function a263_0xeec0(_0x288d17,_0x4b7294){_0x288d17=_0x288d17-0x133;const _0x36ebd0=a263_0x36eb();let _0xeec03b=_0x36ebd0[_0x288d17];return _0xeec03b;}import{asDryRunResult}from'../../commands/common/dry-run.js';import{bindDingTalkSandboxAccount,DING_TALK_SANDBOX_BIND_PATH}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const PROVIDER_ID=a263_0x285512(0x133),CURRENT_BINDING_WARNING='The\x20current\x20binding\x20is\x20not\x20exposed\x20by\x20the\x20server;\x20before\x20is\x20unavailable.';function a263_0x36eb(){const _0x22eabd=['2442lpNJEE','dingding-sandbox-bind','user-account','Bound\x20current\x20user\x20to\x20DingTalk\x20sandbox\x20account.','--ding-talk-user-id\x20cannot\x20be\x20empty.','write','bind','dingtalk','3148304qsOplT','DingTalk\x20sandbox\x20account\x20binding\x20was\x20not\x20confirmed.','ding-talk-user-id','2455168YhOBlu','POST','Pass\x20the\x20DingTalk\x20user\x20id\x20returned\x20by\x20the\x20sandbox.','88927NUDrAf','560ZFjtia','string','DingTalk\x20user\x20id\x20returned\x20by\x20the\x20sandbox','validation','Bind\x20the\x20current\x20platform\x20user\x20to\x20a\x20DingTalk\x20sandbox\x20account','20546120TzRAFk','7hQykpL','9655tlPlzm','14217ovYFvJ','9296343ntqCyy','apiError','trim'];a263_0x36eb=function(){return _0x22eabd;};return a263_0x36eb();}function readDingTalkUserId(_0x2264c9){const _0x156c47=a263_0x285512,_0x3a998e=_0x2264c9['str']('ding-talk-user-id')[_0x156c47(0x146)]();if(!_0x3a998e)throw CliErrors[_0x156c47(0x13e)](_0x156c47(0x14b),_0x156c47(0x139));return _0x3a998e;}function buildBindingData(_0x4c3814,_0x1d6f71){const _0x25f129=a263_0x285512;return{'operation':_0x25f129(0x14d),'selector':{'providerId':PROVIDER_ID,'dingTalkUserId':_0x4c3814},'before':null,'after':{'providerId':PROVIDER_ID,'dingTalkUserId':_0x4c3814,'bound':!![]},'dryRun':_0x1d6f71,'backend':{'method':'POST','path':DING_TALK_SANDBOX_BIND_PATH},'warnings':[CURRENT_BINDING_WARNING]};}export const dingTalkSandboxBind={'service':a263_0x285512(0x149),'command':a263_0x285512(0x148),'description':a263_0x285512(0x13f),'risk':a263_0x285512(0x14c),'requiresAuth':!![],'requiresAppCode':![],'structuredErrors':!![],'flags':[{'name':a263_0x285512(0x136),'type':a263_0x285512(0x13c),'required':!![],'description':a263_0x285512(0x13d)}],async 'validate'(_0x3bf175){readDingTalkUserId(_0x3bf175);},async 'dryRun'(_0x880867){const _0xbe7871=a263_0x285512,_0x8a5d18=readDingTalkUserId(_0x880867);return asDryRunResult(buildBindingData(_0x8a5d18,!![]),{'method':_0xbe7871(0x138),'url':DING_TALK_SANDBOX_BIND_PATH});},async 'execute'(_0x248545){const _0x187567=a263_0x285512,_0x27d1e0=readDingTalkUserId(_0x248545),_0x40d59c=await bindDingTalkSandboxAccount(_0x27d1e0);if(_0x40d59c!==!![])throw CliErrors[_0x187567(0x145)](_0x187567(0x135),'Retry\x20with\x20the\x20same\x20--ding-talk-user-id\x20only\x20after\x20checking\x20the\x20current\x20platform\x20session.');return{'ok':!![],'data':buildBindingData(_0x27d1e0,![]),'message':_0x187567(0x14a)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a264_0x21ba(_0x49b987,_0x269321){_0x49b987=_0x49b987-0x1a1;const _0x4e1d8b=a264_0x4e1d();let _0x21ba9b=_0x4e1d8b[_0x49b987];return _0x21ba9b;}const a264_0x2ffa41=a264_0x21ba;(function(_0x51a3fe,_0x40b300){const _0x402ce1=a264_0x21ba,_0x18e719=_0x51a3fe();while(!![]){try{const _0x1f635e=parseInt(_0x402ce1(0x1b7))/0x1+-parseInt(_0x402ce1(0x1af))/0x2*(parseInt(_0x402ce1(0x1b1))/0x3)+-parseInt(_0x402ce1(0x1b2))/0x4+-parseInt(_0x402ce1(0x1b9))/0x5*(parseInt(_0x402ce1(0x1a4))/0x6)+parseInt(_0x402ce1(0x1a3))/0x7+-parseInt(_0x402ce1(0x1aa))/0x8+parseInt(_0x402ce1(0x1b3))/0x9*(parseInt(_0x402ce1(0x1a2))/0xa);if(_0x1f635e===_0x40b300)break;else _0x18e719['push'](_0x18e719['shift']());}catch(_0x214d5d){_0x18e719['push'](_0x18e719['shift']());}}}(a264_0x4e1d,0x2aadc));function a264_0x4e1d(){const _0x4501be=['102wRlJKK','656060uXStFw','9HwoKuR','--union-id\x20must\x20match\x20on_\x20followed\x20by\x20letters,\x20digits,\x20underscores,\x20or\x20hyphens.','user-account','Bound\x20current\x20user\x20to\x20Feishu\x20account.','270130kPjnTH','feishu','85410FhPeoO','Feishu\x20account\x20binding\x20was\x20not\x20confirmed.','3833930LFWsqq','1252118nFDAiS','96VBoIAT','Bind\x20the\x20current\x20platform\x20user\x20to\x20a\x20Feishu\x20account','str','test','bind','feishu-bind','1482448yriZlo','union-id','POST','apiError','Feishu\x20union_id\x20for\x20the\x20configured\x20Feishu\x20application\x20developer','2056mIdVly','Verify\x20the\x20current\x20binding\x20through\x20the\x20platform\x20before\x20explicitly\x20retrying;\x20do\x20not\x20automatically\x20retry.'];a264_0x4e1d=function(){return _0x4501be;};return a264_0x4e1d();}import{asDryRunResult}from'../../commands/common/dry-run.js';import{bindFeishuAccount,FEISHU_BIND_PATH}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const PROVIDER_ID=a264_0x2ffa41(0x1b8),CURRENT_BINDING_WARNING='The\x20current\x20binding\x20is\x20not\x20exposed\x20by\x20the\x20server;\x20before\x20is\x20unavailable.';function readUnionId(_0x1bd6b4){const _0x4d2c65=a264_0x2ffa41,_0x53f6a7=_0x1bd6b4[_0x4d2c65(0x1a6)](_0x4d2c65(0x1ab))['trim']();if(!/^on_[A-Za-z0-9_-]+$/[_0x4d2c65(0x1a7)](_0x53f6a7))throw CliErrors['validation'](_0x4d2c65(0x1b4),'Pass\x20a\x20Feishu\x20union\x20id\x20such\x20as\x20on_example_001.');return _0x53f6a7;}function buildBindingData(_0x4c69ff,_0x57d2c9){const _0xf19f26=a264_0x2ffa41;return{'operation':_0xf19f26(0x1a8),'selector':{'providerId':PROVIDER_ID,'unionId':_0x4c69ff},'before':null,'after':{'providerId':PROVIDER_ID,'unionId':_0x4c69ff,'bound':!![]},'dryRun':_0x57d2c9,'backend':{'method':_0xf19f26(0x1ac),'path':FEISHU_BIND_PATH},'warnings':[CURRENT_BINDING_WARNING]};}export const feishuBind={'service':a264_0x2ffa41(0x1b5),'command':a264_0x2ffa41(0x1a9),'description':a264_0x2ffa41(0x1a5),'risk':'write','requiresAuth':!![],'requiresAppCode':![],'structuredErrors':!![],'flags':[{'name':'union-id','type':'string','required':!![],'description':a264_0x2ffa41(0x1ae)}],async 'validate'(_0x4fbee3){readUnionId(_0x4fbee3);},async 'dryRun'(_0x5be7ce){const _0x4ac872=a264_0x2ffa41,_0x384e47=readUnionId(_0x5be7ce);return asDryRunResult(buildBindingData(_0x384e47,!![]),{'method':_0x4ac872(0x1ac),'url':FEISHU_BIND_PATH});},async 'execute'(_0xe64cc){const _0x30c38d=a264_0x2ffa41,_0x39737a=readUnionId(_0xe64cc),_0x49078a=await bindFeishuAccount(_0x39737a);if(_0x49078a!==!![])throw CliErrors[_0x30c38d(0x1ad)](_0x30c38d(0x1a1),_0x30c38d(0x1b0));return{'ok':!![],'data':buildBindingData(_0x39737a,![]),'message':_0x30c38d(0x1b6)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x24adbf,_0x1bbeb9){const _0x4f72c0=a265_0x57cb,_0x42b1cb=_0x24adbf();while(!![]){try{const _0x1fd54c=parseInt(_0x4f72c0(0x11b))/0x1+parseInt(_0x4f72c0(0x116))/0x2+parseInt(_0x4f72c0(0x117))/0x3*(-parseInt(_0x4f72c0(0x119))/0x4)+parseInt(_0x4f72c0(0x11c))/0x5+parseInt(_0x4f72c0(0x118))/0x6*(-parseInt(_0x4f72c0(0x11d))/0x7)+parseInt(_0x4f72c0(0x11a))/0x8+-parseInt(_0x4f72c0(0x11e))/0x9;if(_0x1fd54c===_0x1bbeb9)break;else _0x42b1cb['push'](_0x42b1cb['shift']());}catch(_0x2aa366){_0x42b1cb['push'](_0x42b1cb['shift']());}}}(a265_0x381b,0xc30e8));import{dingTalkSandboxBind}from'../../commands/user-account/dingding-sandbox-bind.js';function a265_0x381b(){const _0x56b363=['63EEyNfI','13483710jkjoPT','870030xEVghE','3133551hhoQHm','281538avUarj','4vHapnO','1947688PxKdbB','1524765niPJpd','7803625EXyFQl'];a265_0x381b=function(){return _0x56b363;};return a265_0x381b();}function a265_0x57cb(_0x5c8e74,_0x550045){_0x5c8e74=_0x5c8e74-0x116;const _0x381b5a=a265_0x381b();let _0x57cb02=_0x381b5a[_0x5c8e74];return _0x57cb02;}import{feishuBind}from'../../commands/user-account/feishu-bind.js';export const userAccountDefinitions=[dingTalkSandboxBind,feishuBind];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a266_0x3c2c56=a266_0xe1bf;function a266_0x2e8c(){const _0x40c6b3=['3cborxv','8HjgmeW','add','869qGCVis','2724884PVYnJB','1EKIaMs','write','4705794SIjODl','42540lwRcDE','workspace\x20add','App\x20profile\x20name','name','3514440RASpWW','526242EBVpdq','8688tMZoaJ','5614728ApdSqh','5488EXWtyx'];a266_0x2e8c=function(){return _0x40c6b3;};return a266_0x2e8c();}(function(_0x1f819f,_0xc1d543){const _0xa22358=a266_0xe1bf,_0x2b252b=_0x1f819f();while(!![]){try{const _0x5e7644=parseInt(_0xa22358(0xf8))/0x1*(-parseInt(_0xa22358(0xef))/0x2)+parseInt(_0xa22358(0xf3))/0x3*(parseInt(_0xa22358(0xf7))/0x4)+-parseInt(_0xa22358(0xee))/0x5+parseInt(_0xa22358(0xf0))/0x6*(parseInt(_0xa22358(0xf2))/0x7)+-parseInt(_0xa22358(0xf4))/0x8*(-parseInt(_0xa22358(0xe9))/0x9)+-parseInt(_0xa22358(0xea))/0xa*(parseInt(_0xa22358(0xf6))/0xb)+-parseInt(_0xa22358(0xf1))/0xc;if(_0x5e7644===_0xc1d543)break;else _0x2b252b['push'](_0x2b252b['shift']());}catch(_0x27e554){_0x2b252b['push'](_0x2b252b['shift']());}}}(a266_0x2e8c,0x8b006));function a266_0xe1bf(_0x2eff6a,_0x451fa6){_0x2eff6a=_0x2eff6a-0xe9;const _0x2e8c05=a266_0x2e8c();let _0xe1bf35=_0x2e8c05[_0x2eff6a];return _0xe1bf35;}import{buildAppAddFlags,runAppAdd,validateAppName}from'../../commands/common/app-registry.js';export const workspaceAddDefinition={'service':'workspace','command':a266_0x3c2c56(0xf5),'description':'Register\x20an\x20app\x20profile\x20in\x20the\x20current\x20workspace\x20(or\x20--global)','risk':a266_0x3c2c56(0xf9),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':a266_0x3c2c56(0xed),'description':a266_0x3c2c56(0xec),'required':!![]}],'flags':buildAppAddFlags(),'validate':_0x45f0c2=>validateAppName(_0x45f0c2,a266_0x3c2c56(0xeb)),'execute':_0x462fbc=>runAppAdd(_0x462fbc,a266_0x3c2c56(0xeb))};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a267_0x2924(){const _0x3ff445=['601440thpeWW','Workspace\x20','string','Target\x20environment','Default\x20page\x20size\x20for\x20this\x20workspace\x20app\x20profile','Use\x20`','apps','apiDir','isArray','192626GMkykj','App\x20locale\x20for\x20this\x20workspace\x20app\x20profile\x20(not\x20CLI\x20language;\x20reserved\x20for\x20later\x20app\x20use)','App\x20profile\x20name\x20to\x20use\x20in\x20this\x20workspace','\x20workspace\x20use\x20--app\x20<name>`.','App\x20code\x20to\x20bind\x20to\x20this\x20workspace','appcode','.\x20Credentials:\x20not\x20written.','app','trim','validation','object','60uZEXON','Switch\x20the\x20current\x20workspace\x20app\x20binding','Default\x20output\x20format\x20for\x20this\x20workspace\x20app\x20profile','workspace.','1650200KZyFeG','pageSize','workspace','number','172383hPRybF','Risk\x20level\x20for\x20this\x20workspace\x20app\x20profile','flag','globalConfig','write','defaultFormat','keys','38GWejaV','locale','initialized','2630178OhCMas','apiGroup','Pass\x20--appcode\x20<code>,\x20or\x20choose\x20one\x20of:\x20','init','\x20(appcode:\x20','format','Initialize\x20the\x20current\x20workspace\x20app\x20binding','Invalid\x20appcode:\x20','join','225KRRYjn','16468nDLPFq','Join\x20key\x20for\x20app\x20profiles\x20that\x20share\x20one\x20generated\x20API\x20model\x20registry','region','1079UiRDOQ','str','riskLevel','project','env','Missing\x20workspace\x20app\x20selector.','\x20workspace\x20<init|use>\x20--app\x20<name>\x20[--appcode\x20<code>]','\x20workspace\x20'];a267_0x2924=function(){return _0x3ff445;};return a267_0x2924();}const a267_0x1757c8=a267_0x1347;(function(_0x3ac12b,_0x378f95){const _0x4fa4dc=a267_0x1347,_0x11abae=_0x3ac12b();while(!![]){try{const _0x36f100=parseInt(_0x4fa4dc(0xcf))/0x1*(-parseInt(_0x4fa4dc(0xbf))/0x2)+parseInt(_0x4fa4dc(0xb8))/0x3+parseInt(_0x4fa4dc(0xcc))/0x4*(-parseInt(_0x4fa4dc(0xcb))/0x5)+parseInt(_0x4fa4dc(0xb0))/0x6*(parseInt(_0x4fa4dc(0xa5))/0x7)+-parseInt(_0x4fa4dc(0xb4))/0x8+parseInt(_0x4fa4dc(0xc2))/0x9+-parseInt(_0x4fa4dc(0xd7))/0xa;if(_0x36f100===_0x378f95)break;else _0x11abae['push'](_0x11abae['shift']());}catch(_0x3c94b7){_0x11abae['push'](_0x11abae['shift']());}}}(a267_0x2924,0x2547a));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{RABETBASE_ENV_VALUES}from'../../constant/env.js';import{RABETBASE_OUTPUT_FORMAT_VALUES}from'../../constant/output.js';import{RISK_LEVEL_VALUES}from'../../constant/risk.js';function a267_0x1347(_0x30ed7e,_0x5e3a50){_0x30ed7e=_0x30ed7e-0x9d;const _0x29246c=a267_0x2924();let _0x1347f8=_0x29246c[_0x30ed7e];return _0x1347f8;}import{validateAppcode}from'../../commands/common/validate.js';import{readConfigFile,readRawConfigWithLayers,resolveWriteConfigPath,writeConfigFile}from'../../context.js';import{workspaceAddDefinition}from'../../commands/workspace/add.js';import{workspaceRemoveDefinition}from'../../commands/workspace/remove.js';import{normalizeStoredDefaultApp}from'../../config/schema.js';import{ENABLED_LOVRABET_REGION_VALUES}from'../../constant/region.js';const WORKSPACE_USAGE=CLI_BIN_NAME+a267_0x1757c8(0xd5),SAFE_PROFILE_KEYS=[a267_0x1757c8(0xaa),a267_0x1757c8(0xc3),'region',a267_0x1757c8(0xd3),'apiDir',a267_0x1757c8(0xc7),a267_0x1757c8(0xb5),'riskLevel','locale'],workspaceFlags=[{'name':a267_0x1757c8(0xac),'type':a267_0x1757c8(0x9e),'description':a267_0x1757c8(0xa7)},{'name':'appcode','type':a267_0x1757c8(0x9e),'description':a267_0x1757c8(0xa9)},{'name':'apiGroup','type':a267_0x1757c8(0x9e),'description':a267_0x1757c8(0xcd)},{'name':a267_0x1757c8(0xce),'type':a267_0x1757c8(0x9e),'description':'Country/region\x20for\x20this\x20workspace\x20app\x20profile','enum':[...ENABLED_LOVRABET_REGION_VALUES]},{'name':a267_0x1757c8(0xd3),'type':a267_0x1757c8(0x9e),'description':a267_0x1757c8(0x9f),'enum':[...RABETBASE_ENV_VALUES]},{'name':a267_0x1757c8(0xa3),'type':a267_0x1757c8(0x9e),'description':'API\x20directory\x20path\x20for\x20this\x20workspace\x20app\x20profile'},{'name':a267_0x1757c8(0xbd),'type':a267_0x1757c8(0x9e),'description':a267_0x1757c8(0xb2),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':a267_0x1757c8(0xb5),'type':a267_0x1757c8(0xb7),'description':a267_0x1757c8(0xa0)},{'name':a267_0x1757c8(0xd1),'type':'string','description':a267_0x1757c8(0xb9),'enum':[...RISK_LEVEL_VALUES]},{'name':a267_0x1757c8(0xc0),'type':a267_0x1757c8(0x9e),'description':a267_0x1757c8(0xa6)}];function isRecord(_0x7513bb){const _0x2ac3d9=a267_0x1757c8;return!!_0x7513bb&&typeof _0x7513bb===_0x2ac3d9(0xaf)&&!Array[_0x2ac3d9(0xa4)](_0x7513bb);}function assertValidAppcode(_0x506fc4){const _0x393908=a267_0x1757c8,{valid:_0x4d89e6,message:_0x2b7c64}=validateAppcode(_0x506fc4);if(!_0x4d89e6)throw CliErrors[_0x393908(0xae)](_0x393908(0xc9)+_0x506fc4,_0x2b7c64);}function sanitizeProfile(_0x127f76){if(!isRecord(_0x127f76))return{};const _0x1dd24e={};for(const _0x39223c of SAFE_PROFILE_KEYS){if(_0x127f76[_0x39223c]!==undefined)_0x1dd24e[_0x39223c]=_0x127f76[_0x39223c];}return _0x1dd24e;}function cloneProfile(_0x23423e){return isRecord(_0x23423e)?{..._0x23423e}:{};}function collectWorkspaceProfileOverrides(_0x4d5220){const _0x10975b=a267_0x1757c8,_0x5d808a={},_0x265f70=_0x4d5220[_0x10975b(0xd0)](_0x10975b(0xc3)),_0x45c5ab=_0x4d5220[_0x10975b(0xd0)](_0x10975b(0xce)),_0x38bf2c=_0x4d5220['str']('env'),_0x314caa=_0x4d5220['str'](_0x10975b(0xa3)),_0x482ae9=_0x4d5220[_0x10975b(0xd0)](_0x10975b(0xbd)),_0x490c03=_0x4d5220[_0x10975b(0xba)](_0x10975b(0xb5)),_0x5c12f3=_0x4d5220['str'](_0x10975b(0xd1)),_0x176e1a=_0x4d5220['str'](_0x10975b(0xc0));if(_0x265f70)_0x5d808a[_0x10975b(0xc3)]=_0x265f70;if(_0x45c5ab)_0x5d808a[_0x10975b(0xce)]=_0x45c5ab;if(_0x38bf2c)_0x5d808a[_0x10975b(0xd3)]=_0x38bf2c;if(_0x314caa)_0x5d808a['apiDir']=_0x314caa;if(_0x482ae9)_0x5d808a[_0x10975b(0xc7)]=_0x482ae9;if(_0x490c03!==undefined&&_0x490c03!=='')_0x5d808a[_0x10975b(0xb5)]=Number(_0x490c03);if(_0x5c12f3)_0x5d808a[_0x10975b(0xd1)]=_0x5c12f3;if(_0x176e1a)_0x5d808a[_0x10975b(0xc0)]=_0x176e1a;return _0x5d808a;}async function validateWorkspaceArgs(_0xde0049){const _0xbc879d=a267_0x1757c8,_0x15a4a9=_0xde0049[_0xbc879d(0xd0)](_0xbc879d(0xac))[_0xbc879d(0xad)](),_0x1a5863=_0xde0049['str'](_0xbc879d(0xaa))[_0xbc879d(0xad)]();if(!_0x15a4a9&&!_0x1a5863)throw CliErrors[_0xbc879d(0xae)]('Missing\x20workspace\x20app\x20selector.',_0xbc879d(0xa1)+CLI_BIN_NAME+'\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20`'+CLI_BIN_NAME+_0xbc879d(0xa8));if(_0x1a5863)assertValidAppcode(_0x1a5863);}function resolveKnownApps(){const _0x363165=a267_0x1757c8,{config:_0x1831a8,layers:_0x5e774a}=readRawConfigWithLayers(),_0x206c63=isRecord(_0x1831a8[_0x363165(0xa2)])?_0x1831a8['apps']:{},_0x44cc22=isRecord(_0x5e774a[_0x363165(0xbb)][_0x363165(0xa2)])?_0x5e774a[_0x363165(0xbb)][_0x363165(0xa2)]:{};return{..._0x44cc22,..._0x206c63};}async function configureWorkspace(_0x28bdf5,_0x20c979){const _0x4ecb5c=a267_0x1757c8,_0x44bc1a=_0x28bdf5[_0x4ecb5c(0xd0)](_0x4ecb5c(0xac))[_0x4ecb5c(0xad)](),_0xa91e1e=_0x28bdf5[_0x4ecb5c(0xd0)](_0x4ecb5c(0xaa))['trim'](),_0x24381a=_0x44bc1a||_0xa91e1e;if(!_0x24381a)throw CliErrors[_0x4ecb5c(0xae)](_0x4ecb5c(0xd4),_0x4ecb5c(0xa1)+CLI_BIN_NAME+'\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20`'+CLI_BIN_NAME+_0x4ecb5c(0xa8));if(_0xa91e1e)assertValidAppcode(_0xa91e1e);const _0x99c290=resolveWriteConfigPath(_0x4ecb5c(0xd2)),_0x112c17=readConfigFile(_0x99c290),_0x2d1f13=resolveKnownApps(),_0x3cc5d3=isRecord(_0x112c17[_0x4ecb5c(0xa2)])?{..._0x112c17[_0x4ecb5c(0xa2)]}:{},_0x40d95e=cloneProfile(_0x3cc5d3[_0x24381a]),_0x28c7a7=sanitizeProfile(_0x2d1f13[_0x24381a]),_0x4f3ba8=_0xa91e1e?{}:_0x28c7a7,_0x3cdeea=_0xa91e1e||_0x4f3ba8['appcode'];if(!_0x3cdeea){const _0x4c0522=Object[_0x4ecb5c(0xbe)](_0x2d1f13),_0x559429=_0x4c0522['length']===0x0?_0x4ecb5c(0xa1)+CLI_BIN_NAME+_0x4ecb5c(0xd6)+_0x20c979+'\x20--app\x20'+_0x24381a+'\x20--appcode\x20<code>`.':_0x4ecb5c(0xc4)+_0x4c0522[_0x4ecb5c(0xca)](',\x20');throw CliErrors[_0x4ecb5c(0xae)]('App\x20\x22'+_0x24381a+'\x22\x20not\x20found.',_0x559429);}assertValidAppcode(String(_0x3cdeea));const _0x2499a8={..._0x4f3ba8,..._0x40d95e,'appcode':String(_0x3cdeea),...collectWorkspaceProfileOverrides(_0x28bdf5)};return _0x3cc5d3[_0x24381a]=_0x2499a8,_0x112c17[_0x4ecb5c(0xa2)]=_0x3cc5d3,normalizeStoredDefaultApp(_0x112c17,_0x24381a),delete _0x112c17[_0x4ecb5c(0xaa)],delete _0x112c17['app'],_0x2499a8['env']&&(_0x112c17[_0x4ecb5c(0xd3)]=_0x2499a8[_0x4ecb5c(0xd3)]),writeConfigFile(_0x99c290,_0x112c17),{'ok':!![],'message':_0x4ecb5c(0x9d)+(_0x20c979===_0x4ecb5c(0xc5)?_0x4ecb5c(0xc1):'updated')+':\x20'+_0x24381a+_0x4ecb5c(0xc6)+_0x2499a8[_0x4ecb5c(0xaa)]+').\x20Config:\x20'+_0x99c290+_0x4ecb5c(0xab),'data':{'operation':_0x4ecb5c(0xb3)+_0x20c979,'configPath':_0x99c290,'app':_0x24381a,'appcode':_0x2499a8['appcode'],'apiGroup':_0x2499a8[_0x4ecb5c(0xc3)]??null,'region':_0x2499a8[_0x4ecb5c(0xce)]??null,'env':_0x2499a8[_0x4ecb5c(0xd3)]??null,'credentialsWritten':![]}};}const workspaceInitDefinition={'service':a267_0x1757c8(0xb6),'command':'init','description':a267_0x1757c8(0xc8),'risk':a267_0x1757c8(0xbc),'requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x1766dd=>configureWorkspace(_0x1766dd,'init')},workspaceUseDefinition={'service':a267_0x1757c8(0xb6),'command':'use','description':a267_0x1757c8(0xb1),'risk':a267_0x1757c8(0xbc),'requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x4fb275=>configureWorkspace(_0x4fb275,'use')};export const workspaceDefinitions=[workspaceInitDefinition,workspaceUseDefinition,workspaceAddDefinition,workspaceRemoveDefinition];export{WORKSPACE_USAGE};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a268_0x5ea85f=a268_0x7ed6;(function(_0x1f6cf0,_0x164ae6){const _0x58fc5d=a268_0x7ed6,_0x448a4b=_0x1f6cf0();while(!![]){try{const _0x2421fd=-parseInt(_0x58fc5d(0x1f1))/0x1+parseInt(_0x58fc5d(0x1ef))/0x2+-parseInt(_0x58fc5d(0x1ee))/0x3+-parseInt(_0x58fc5d(0x1ed))/0x4+parseInt(_0x58fc5d(0x1f6))/0x5*(parseInt(_0x58fc5d(0x1f2))/0x6)+-parseInt(_0x58fc5d(0x1f8))/0x7+parseInt(_0x58fc5d(0x1f4))/0x8;if(_0x2421fd===_0x164ae6)break;else _0x448a4b['push'](_0x448a4b['shift']());}catch(_0x2a19ba){_0x448a4b['push'](_0x448a4b['shift']());}}}(a268_0x5b10,0x7138a));function a268_0x5b10(){const _0x293e5a=['Remove\x20an\x20app\x20profile\x20from\x20the\x20current\x20workspace\x20(or\x20--global)','434952vbUmjj','write','App\x20profile\x20name\x20to\x20remove','115304fdORVr','2700429HrGzSu','716964AHwLnE','name','266377YnzXKa','6UkARES','workspace\x20remove','4783200yUITZu','remove','3824270CzWGbL'];a268_0x5b10=function(){return _0x293e5a;};return a268_0x5b10();}function a268_0x7ed6(_0xbf13e8,_0x20c3bb){_0xbf13e8=_0xbf13e8-0x1ec;const _0x5b1038=a268_0x5b10();let _0x7ed6ff=_0x5b1038[_0xbf13e8];return _0x7ed6ff;}import{buildAppRemoveFlags,runAppRemove,validateAppName}from'../../commands/common/app-registry.js';export const workspaceRemoveDefinition={'service':'workspace','command':a268_0x5ea85f(0x1f5),'description':a268_0x5ea85f(0x1f7),'risk':a268_0x5ea85f(0x1f9),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':a268_0x5ea85f(0x1f0),'description':a268_0x5ea85f(0x1ec),'required':!![]}],'flags':buildAppRemoveFlags(),'validate':_0x1c102d=>validateAppName(_0x1c102d,a268_0x5ea85f(0x1f3)),'execute':_0x2598a9=>runAppRemove(_0x2598a9,a268_0x5ea85f(0x1f3))};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a269_0x199a0d=a269_0x2c00;(function(_0x56b236,_0x8b71d1){const _0x2ffe9d=a269_0x2c00,_0x5bba03=_0x56b236();while(!![]){try{const _0x3205e7=-parseInt(_0x2ffe9d(0x1f9))/0x1+parseInt(_0x2ffe9d(0x1f2))/0x2*(parseInt(_0x2ffe9d(0x1c8))/0x3)+-parseInt(_0x2ffe9d(0x1fd))/0x4*(-parseInt(_0x2ffe9d(0x1e6))/0x5)+parseInt(_0x2ffe9d(0x1d1))/0x6*(parseInt(_0x2ffe9d(0x1f6))/0x7)+-parseInt(_0x2ffe9d(0x1e7))/0x8*(parseInt(_0x2ffe9d(0x1f7))/0x9)+-parseInt(_0x2ffe9d(0x1d3))/0xa*(parseInt(_0x2ffe9d(0x1c4))/0xb)+parseInt(_0x2ffe9d(0x1d9))/0xc*(parseInt(_0x2ffe9d(0x1ec))/0xd);if(_0x3205e7===_0x8b71d1)break;else _0x5bba03['push'](_0x5bba03['shift']());}catch(_0x4c08ad){_0x5bba03['push'](_0x5bba03['shift']());}}}(a269_0x3d95,0x7f958));import{existsSync,readFileSync}from'node:fs';import{isAbsolute,resolve}from'node:path';import{CliErrors}from'../errors.js';import{ENTERPRISE_ROUTING_CDN_FIELDS,ENTERPRISE_ROUTING_DOMAIN_FIELDS,ENTERPRISE_ROUTING_KIND,ENTERPRISE_ROUTING_PROTOCOL,REQUIRED_ENTERPRISE_ROUTING_CDN_FIELDS,REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS}from'../generated/routing-contract.js';export const DOMAIN_CONFIG_FIELDS=['userDomain',a269_0x199a0d(0x1e5),'runtimeDomain',a269_0x199a0d(0x1de),a269_0x199a0d(0x1c0),a269_0x199a0d(0x1d8),a269_0x199a0d(0x1ef),'localDomain',a269_0x199a0d(0x1dc)];const DOMAIN_FLAGS={'userDomain':'user-domain','apiDomain':a269_0x199a0d(0x1cb),'runtimeDomain':'runtime-domain','skillDomain':'skill-domain','kbDomain':a269_0x199a0d(0x1d6),'kbServiceDomain':a269_0x199a0d(0x1b0),'appDomain':a269_0x199a0d(0x1e9),'localDomain':a269_0x199a0d(0x1dd),'certificateDomain':a269_0x199a0d(0x1b1)};export const LEGACY_DOMAIN_CONFIG_FIELDS=[a269_0x199a0d(0x1bd),a269_0x199a0d(0x1f8),a269_0x199a0d(0x1e2)];const ENTERPRISE_TO_LOCAL_FIELD={'userDomain':'userDomain','apiDomain':a269_0x199a0d(0x1e5),'runtimeDomain':'runtimeDomain','skillDomain':a269_0x199a0d(0x1de),'kbDomain':a269_0x199a0d(0x1c0),'kbServiceDomain':'kbServiceDomain','appDomain':'appDomain','localDomain':'localDomain','certificateDomain':'certificateDomain'},ROUTING_CONSUMER=a269_0x199a0d(0x1f4);function a269_0x3d95(){const _0x572707=['filter','Enterprise\x20routing\x20manifests\x20cannot\x20be\x20combined\x20with\x20individual\x20Domain\x20flags.','\x20without\x20credentials,\x20query,\x20or\x20fragment.','includes','kb-service-domain','certificate-domain','Invalid\x20domain\x20config:\x20provide\x20at\x20least\x20one\x20supported\x20Domain.','protocol','parse','trim','username','\x22\x20is\x20not\x20a\x20valid\x20URL.','search','Invalid\x20domain\x20config\x20JSON:\x20','Invalid\x20','join','Unsupported\x20enterprise\x20CDN\x20field(s):\x20','agentDomain','str','replace','kbDomain','domains','validation','Enterprise\x20routing\x20manifest\x20requires\x20localDomain\x20and\x20certificateDomain\x20together.','11XAKbls','Allowed\x20fields:\x20','Domain\x20config\x20file\x20not\x20found:\x20','hash','17631jiWoAy','string','Enterprise\x20routing\x20manifest\x20is\x20missing\x20required\x20CDN\x20field(s):\x20','api-domain',':\x20expected\x20an\x20HTTPS\x20origin\x20or\x20consumer\x20Domain\x20object.','enterprise-v1','https:','\x20and\x20has\x20no\x20default.','length','804KcdPtm','localDomain','7729330DtUDcH','Enterprise\x20','keys','kb-domain','base\x20URL','kbServiceDomain','7923324KkBozQ','legacy','kind','certificateDomain','local-domain','skillDomain','domain-config','default','lovrabet','skillHubDomain','For\x20internal\x20deployments,\x20terminate\x20TLS\x20at\x20the\x20ingress,\x20reverse\x20proxy,\x20or\x20load\x20balancer;\x20an\x20internal\x20CA\x20is\x20supported.','Invalid\x20enterprise\x20routing\x20manifest:\x20domains\x20must\x20be\x20an\x20object.','apiDomain','37535ULxolS','64GBfcIQ','Update\x20the\x20manifest\x20so\x20both\x20CLIs\x20consume\x20the\x20same\x20routing\x20data.','app-domain','mode',':\x20expected\x20an\x20HTTPS\x20','13HABPMG','Enterprise\x20routing\x20manifest\x20is\x20missing\x20required\x20Domain(s):\x20','password','appDomain','pathname','Invalid\x20cdn.','282dslgXD','origin','rabetbase-cli','isArray','18004xIrDHR','890163UXHxhk','platformDomain','159694UYArUw','object','cdn','\x20does\x20not\x20provide\x20a\x20Domain\x20for\x20','220mGZnKY'];a269_0x3d95=function(){return _0x572707;};return a269_0x3d95();}function a269_0x2c00(_0x3dd82f,_0x16bf87){_0x3dd82f=_0x3dd82f-0x1b0;const _0x3d9591=a269_0x3d95();let _0x2c00a6=_0x3d9591[_0x3dd82f];return _0x2c00a6;}export function normalizeDomainOrigin(_0x57c262,_0x10bd5d){const _0x3ed1ea=a269_0x199a0d;if(typeof _0x10bd5d!==_0x3ed1ea(0x1c9)||!_0x10bd5d[_0x3ed1ea(0x1b5)]())throw CliErrors[_0x3ed1ea(0x1c2)](_0x3ed1ea(0x1ba)+_0x57c262+':\x20expected\x20a\x20non-empty\x20HTTPS\x20origin.');let _0x45114d;try{_0x45114d=new URL(_0x10bd5d[_0x3ed1ea(0x1b5)]());}catch{throw CliErrors['validation'](_0x3ed1ea(0x1ba)+_0x57c262+':\x20\x22'+_0x10bd5d+_0x3ed1ea(0x1b7));}if(_0x45114d['protocol']!==_0x3ed1ea(0x1ce)||_0x45114d[_0x3ed1ea(0x1b6)]||_0x45114d['password']||_0x45114d[_0x3ed1ea(0x1f0)]!=='/'&&_0x45114d[_0x3ed1ea(0x1f0)]!==''||_0x45114d[_0x3ed1ea(0x1b8)]||_0x45114d[_0x3ed1ea(0x1c7)])throw CliErrors['validation'](_0x3ed1ea(0x1ba)+_0x57c262+':\x20expected\x20an\x20HTTPS\x20origin\x20without\x20credentials,\x20path,\x20query,\x20or\x20fragment.',_0x3ed1ea(0x1e3));return _0x45114d[_0x3ed1ea(0x1f3)];}export function normalizeRoutingDomainValue(_0x2522ca,_0x1853bd){const _0x1c6bc1=a269_0x199a0d;if(typeof _0x1853bd==='string')return normalizeDomainOrigin(_0x2522ca,_0x1853bd);if(!_0x1853bd||typeof _0x1853bd!=='object'||Array['isArray'](_0x1853bd))throw CliErrors['validation'](_0x1c6bc1(0x1ba)+_0x2522ca+_0x1c6bc1(0x1cc));const _0x9fba59=_0x1853bd,_0x296085=_0x9fba59[ROUTING_CONSUMER]??_0x9fba59[_0x1c6bc1(0x1e0)];if(_0x296085===undefined)throw CliErrors[_0x1c6bc1(0x1c2)](_0x1c6bc1(0x1d4)+_0x2522ca+_0x1c6bc1(0x1fc)+ROUTING_CONSUMER+_0x1c6bc1(0x1cf));return normalizeDomainOrigin(_0x2522ca,_0x296085);}export function normalizeCdnBaseUrl(_0x5bf4e1,_0xa7737e){const _0x272613=a269_0x199a0d;if(typeof _0xa7737e!==_0x272613(0x1c9)||!_0xa7737e['trim']())throw CliErrors[_0x272613(0x1c2)](_0x272613(0x1f1)+_0x5bf4e1+':\x20expected\x20a\x20non-empty\x20HTTPS\x20URL.');const _0x85f437=_0xa7737e[_0x272613(0x1b5)]()[_0x272613(0x1bf)](/\/$/,'');let _0x20668d;try{_0x20668d=new URL(_0x85f437);}catch{throw CliErrors['validation'](_0x272613(0x1f1)+_0x5bf4e1+':\x20\x22'+_0xa7737e+_0x272613(0x1b7));}if(_0x20668d[_0x272613(0x1b3)]!=='https:'||_0x20668d[_0x272613(0x1b6)]||_0x20668d[_0x272613(0x1ee)]||_0x20668d[_0x272613(0x1b8)]||_0x20668d[_0x272613(0x1c7)]||_0x20668d['href'][_0x272613(0x1bf)](/\/$/,'')!==_0x85f437||_0x5bf4e1===_0x272613(0x1e1)&&_0x20668d[_0x272613(0x1f3)]!==_0x85f437)throw CliErrors[_0x272613(0x1c2)](_0x272613(0x1f1)+_0x5bf4e1+_0x272613(0x1eb)+(_0x5bf4e1===_0x272613(0x1e1)?_0x272613(0x1f3):_0x272613(0x1d7))+_0x272613(0x200));return _0x85f437;}export function resolveEnterpriseRoutingConfig(_0xba0ca2){return resolveEnterpriseRoutingManifest(_0xba0ca2)?.['domains'];}export function resolveEnterpriseRoutingManifest(_0x38bebf){const _0x4b1a0f=a269_0x199a0d;if(_0x38bebf===undefined)return undefined;if(!_0x38bebf||typeof _0x38bebf!==_0x4b1a0f(0x1fa)||Array['isArray'](_0x38bebf))throw CliErrors[_0x4b1a0f(0x1c2)]('Invalid\x20enterprise\x20routing\x20config:\x20expected\x20an\x20object.');return parseEnterpriseRoutingManifest(_0x38bebf);}export function readDomainConfigInput(_0x76824f){const _0x587fbd=a269_0x199a0d,_0x2a8bf9=isAbsolute(_0x76824f)?_0x76824f:resolve(process['cwd'](),_0x76824f);if(!existsSync(_0x2a8bf9))throw CliErrors['validation'](_0x587fbd(0x1c6)+_0x2a8bf9);let _0x5eeafe;try{_0x5eeafe=JSON[_0x587fbd(0x1b4)](readFileSync(_0x2a8bf9,'utf8'));}catch{throw CliErrors[_0x587fbd(0x1c2)](_0x587fbd(0x1b9)+_0x2a8bf9);}if(!_0x5eeafe||typeof _0x5eeafe!=='object'||Array[_0x587fbd(0x1f5)](_0x5eeafe))throw CliErrors[_0x587fbd(0x1c2)]('Invalid\x20domain\x20config:\x20expected\x20a\x20JSON\x20object.');const _0x57ecc7=_0x5eeafe;if(_0x587fbd(0x1b3)in _0x57ecc7)return parseEnterpriseRoutingManifest(_0x57ecc7);const _0x3de89d=Object[_0x587fbd(0x1d5)](_0x57ecc7)[_0x587fbd(0x1fe)](_0x35b621=>!DOMAIN_CONFIG_FIELDS[_0x587fbd(0x201)](_0x35b621));if(_0x3de89d[_0x587fbd(0x1d0)]>0x0)throw CliErrors[_0x587fbd(0x1c2)]('Unsupported\x20domain\x20config\x20field(s):\x20'+_0x3de89d[_0x587fbd(0x1bb)](',\x20'),_0x587fbd(0x1c5)+DOMAIN_CONFIG_FIELDS[_0x587fbd(0x1bb)](',\x20'));const _0x275158={};for(const _0x3154ce of DOMAIN_CONFIG_FIELDS){_0x57ecc7[_0x3154ce]!==undefined&&(_0x275158[_0x3154ce]=normalizeDomainOrigin(_0x3154ce,_0x57ecc7[_0x3154ce]));}if(Object[_0x587fbd(0x1d5)](_0x275158)[_0x587fbd(0x1d0)]===0x0)throw CliErrors[_0x587fbd(0x1c2)](_0x587fbd(0x1b2));return{'mode':_0x587fbd(0x1da),'domains':_0x275158};}export function readDomainConfig(_0x101b31){return readDomainConfigInput(_0x101b31)['domains'];}export function resolveDomainConfigInput(_0x494e98){const _0x1cb457=a269_0x199a0d,_0x3f84fa=(_0x494e98[_0x1cb457(0x1be)](_0x1cb457(0x1df))||'')[_0x1cb457(0x1b5)](),_0x2658b3=_0x3f84fa?readDomainConfigInput(_0x3f84fa):{'mode':'legacy','domains':{}},_0x57e2b5=DOMAIN_CONFIG_FIELDS[_0x1cb457(0x1fe)](_0x37f18d=>Boolean((_0x494e98[_0x1cb457(0x1be)](DOMAIN_FLAGS[_0x37f18d])||'')[_0x1cb457(0x1b5)]()));if(_0x2658b3[_0x1cb457(0x1ea)]==='enterprise-v1'&&_0x57e2b5['length']>0x0)throw CliErrors[_0x1cb457(0x1c2)](_0x1cb457(0x1ff),_0x1cb457(0x1e8));for(const _0x6534e7 of DOMAIN_CONFIG_FIELDS){const _0x52d80f=(_0x494e98[_0x1cb457(0x1be)](DOMAIN_FLAGS[_0x6534e7])||'')['trim']();if(_0x52d80f)_0x2658b3['domains'][_0x6534e7]=normalizeDomainOrigin(_0x6534e7,_0x52d80f);}return _0x2658b3;}export function resolveDomainFlags(_0x495879){const _0x10a731=a269_0x199a0d;return resolveDomainConfigInput(_0x495879)[_0x10a731(0x1c1)];}export function parseEnterpriseRoutingManifest(_0x251dd9){const _0x57375f=a269_0x199a0d;if(_0x251dd9[_0x57375f(0x1b3)]!==ENTERPRISE_ROUTING_PROTOCOL||_0x251dd9[_0x57375f(0x1db)]!==ENTERPRISE_ROUTING_KIND)throw CliErrors[_0x57375f(0x1c2)]('Unsupported\x20routing\x20manifest:\x20expected\x20protocol\x20\x22'+ENTERPRISE_ROUTING_PROTOCOL+'\x22\x20and\x20kind\x20\x22'+ENTERPRISE_ROUTING_KIND+'\x22.');if(!_0x251dd9['domains']||typeof _0x251dd9[_0x57375f(0x1c1)]!==_0x57375f(0x1fa)||Array[_0x57375f(0x1f5)](_0x251dd9[_0x57375f(0x1c1)]))throw CliErrors[_0x57375f(0x1c2)](_0x57375f(0x1e4));if(!_0x251dd9[_0x57375f(0x1fb)]||typeof _0x251dd9[_0x57375f(0x1fb)]!==_0x57375f(0x1fa)||Array[_0x57375f(0x1f5)](_0x251dd9[_0x57375f(0x1fb)]))throw CliErrors[_0x57375f(0x1c2)]('Invalid\x20enterprise\x20routing\x20manifest:\x20cdn\x20must\x20be\x20an\x20object.');const _0x42125b=_0x251dd9[_0x57375f(0x1c1)],_0x142471=REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS[_0x57375f(0x1fe)](_0x4376e6=>_0x42125b[_0x4376e6]===undefined);if(_0x142471[_0x57375f(0x1d0)]>0x0)throw CliErrors[_0x57375f(0x1c2)](_0x57375f(0x1ed)+_0x142471[_0x57375f(0x1bb)](',\x20'));if(_0x42125b[_0x57375f(0x1d2)]===undefined!==(_0x42125b[_0x57375f(0x1dc)]===undefined))throw CliErrors['validation'](_0x57375f(0x1c3));const _0x516f55=_0x251dd9[_0x57375f(0x1fb)],_0x1eec28=Object['keys'](_0x516f55)[_0x57375f(0x1fe)](_0x121981=>!ENTERPRISE_ROUTING_CDN_FIELDS[_0x57375f(0x201)](_0x121981));if(_0x1eec28[_0x57375f(0x1d0)]>0x0)throw CliErrors['validation'](_0x57375f(0x1bc)+_0x1eec28[_0x57375f(0x1bb)](',\x20'),_0x57375f(0x1c5)+ENTERPRISE_ROUTING_CDN_FIELDS[_0x57375f(0x1bb)](',\x20'));const _0x1302b7=REQUIRED_ENTERPRISE_ROUTING_CDN_FIELDS[_0x57375f(0x1fe)](_0xc98670=>_0x516f55[_0xc98670]===undefined);if(_0x1302b7[_0x57375f(0x1d0)]>0x0)throw CliErrors[_0x57375f(0x1c2)](_0x57375f(0x1ca)+_0x1302b7[_0x57375f(0x1bb)](',\x20'));const _0x23a9fe={};for(const _0x55ec0f of ENTERPRISE_ROUTING_CDN_FIELDS){_0x23a9fe[_0x55ec0f]=normalizeCdnBaseUrl(_0x55ec0f,_0x516f55[_0x55ec0f]);}const _0x1e4b14={},_0x1ebf29={};for(const _0x1773a3 of ENTERPRISE_ROUTING_DOMAIN_FIELDS){const _0x886d5=_0x42125b[_0x1773a3];if(_0x886d5===undefined)continue;const _0x28a83b=normalizeRoutingDomainValue(_0x1773a3,_0x886d5);_0x1e4b14[_0x1773a3]=_0x28a83b;const _0x21b59a=ENTERPRISE_TO_LOCAL_FIELD[_0x1773a3];_0x21b59a&&(_0x1ebf29[_0x21b59a]=_0x28a83b);}return{'mode':_0x57375f(0x1cd),'domains':_0x1ebf29,'manifestDomains':_0x1e4b14,'cdn':_0x23a9fe};}
|
|
1
|
+
function a269_0x2cb8(_0x5ab965,_0x339356){_0x5ab965=_0x5ab965-0x1ea;const _0x5cc734=a269_0x5cc7();let _0x2cb8ec=_0x5cc734[_0x5ab965];return _0x2cb8ec;}const a269_0x55c39f=a269_0x2cb8;(function(_0x569b7b,_0xbfb659){const _0x52c66d=a269_0x2cb8,_0x47fb8e=_0x569b7b();while(!![]){try{const _0x59193c=parseInt(_0x52c66d(0x1ef))/0x1*(parseInt(_0x52c66d(0x22f))/0x2)+-parseInt(_0x52c66d(0x224))/0x3+-parseInt(_0x52c66d(0x1eb))/0x4+-parseInt(_0x52c66d(0x234))/0x5*(-parseInt(_0x52c66d(0x225))/0x6)+parseInt(_0x52c66d(0x1f9))/0x7*(-parseInt(_0x52c66d(0x21a))/0x8)+-parseInt(_0x52c66d(0x1ea))/0x9+parseInt(_0x52c66d(0x238))/0xa;if(_0x59193c===_0xbfb659)break;else _0x47fb8e['push'](_0x47fb8e['shift']());}catch(_0x1c9e10){_0x47fb8e['push'](_0x47fb8e['shift']());}}}(a269_0x5cc7,0xb8635));import{existsSync,readFileSync}from'node:fs';import{isAbsolute,resolve}from'node:path';import{CliErrors}from'../errors.js';import{ENTERPRISE_ROUTING_CDN_FIELDS,ENTERPRISE_ROUTING_DOMAIN_FIELDS,ENTERPRISE_ROUTING_KIND,ENTERPRISE_ROUTING_PROTOCOL,REQUIRED_ENTERPRISE_ROUTING_CDN_FIELDS,REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS}from'../generated/routing-contract.js';export const DOMAIN_CONFIG_FIELDS=[a269_0x55c39f(0x206),a269_0x55c39f(0x233),'runtimeDomain','skillDomain','kbDomain',a269_0x55c39f(0x22a),'appDomain','localDomain',a269_0x55c39f(0x1f1)];const DOMAIN_FLAGS={'userDomain':a269_0x55c39f(0x1ff),'apiDomain':'api-domain','runtimeDomain':a269_0x55c39f(0x21d),'skillDomain':a269_0x55c39f(0x20e),'kbDomain':a269_0x55c39f(0x204),'kbServiceDomain':a269_0x55c39f(0x228),'appDomain':'app-domain','localDomain':'local-domain','certificateDomain':'certificate-domain'};function a269_0x5cc7(){const _0x589d86=['hash','appDomain','validation','1TVcnLx','Invalid\x20','certificateDomain','cdn','domain-config','skillHubDomain',':\x20\x22','origin','Allowed\x20fields:\x20',':\x20expected\x20a\x20non-empty\x20HTTPS\x20origin.','24094wVeeTX','rabetbase-cli','str','username','utf8','join','user-domain','Unsupported\x20enterprise\x20CDN\x20field(s):\x20','base\x20URL','length','parse','kb-domain','isArray','userDomain','Enterprise\x20','\x20does\x20not\x20provide\x20a\x20Domain\x20for\x20','Enterprise\x20routing\x20manifests\x20cannot\x20be\x20combined\x20with\x20individual\x20Domain\x20flags.','Invalid\x20domain\x20config:\x20provide\x20at\x20least\x20one\x20supported\x20Domain.','replace','href','filter','skill-domain','For\x20internal\x20deployments,\x20terminate\x20TLS\x20at\x20the\x20ingress,\x20reverse\x20proxy,\x20or\x20load\x20balancer;\x20an\x20internal\x20CA\x20is\x20supported.','Unsupported\x20domain\x20config\x20field(s):\x20','Enterprise\x20routing\x20manifest\x20is\x20missing\x20required\x20CDN\x20field(s):\x20','protocol','object','lovrabet','localDomain','domains','trim','enterprise-v1','https:','2776xNroyA','\x22\x20is\x20not\x20a\x20valid\x20URL.','\x20without\x20credentials,\x20query,\x20or\x20fragment.','runtime-domain','keys',':\x20expected\x20a\x20non-empty\x20HTTPS\x20URL.','Invalid\x20enterprise\x20routing\x20manifest:\x20domains\x20must\x20be\x20an\x20object.','string','password','includes','1379601vGftZj','78aezAvk','Invalid\x20enterprise\x20routing\x20config:\x20expected\x20an\x20object.','cwd','kb-service-domain','platformDomain','kbServiceDomain','\x20and\x20has\x20no\x20default.','Domain\x20config\x20file\x20not\x20found:\x20','Invalid\x20cdn.','agentDomain','2292194tFaagY','Enterprise\x20routing\x20manifest\x20is\x20missing\x20required\x20Domain(s):\x20','kbDomain','default','apiDomain','552510EaKWti','legacy','skillDomain','Invalid\x20enterprise\x20routing\x20manifest:\x20cdn\x20must\x20be\x20an\x20object.','14618660iaZsWn',':\x20expected\x20an\x20HTTPS\x20','Update\x20the\x20manifest\x20so\x20both\x20CLIs\x20consume\x20the\x20same\x20routing\x20data.','2862504fresxB','5267756pyKybS'];a269_0x5cc7=function(){return _0x589d86;};return a269_0x5cc7();}export const LEGACY_DOMAIN_CONFIG_FIELDS=[a269_0x55c39f(0x22e),a269_0x55c39f(0x229),a269_0x55c39f(0x1f4)];const ENTERPRISE_TO_LOCAL_FIELD={'userDomain':a269_0x55c39f(0x206),'apiDomain':a269_0x55c39f(0x233),'runtimeDomain':'runtimeDomain','skillDomain':a269_0x55c39f(0x236),'kbDomain':a269_0x55c39f(0x231),'kbServiceDomain':a269_0x55c39f(0x22a),'appDomain':a269_0x55c39f(0x1ed),'localDomain':'localDomain','certificateDomain':a269_0x55c39f(0x1f1)},ROUTING_CONSUMER=a269_0x55c39f(0x1fa);export function normalizeDomainOrigin(_0x9bfd7,_0x40cd22){const _0x1aa192=a269_0x55c39f;if(typeof _0x40cd22!==_0x1aa192(0x221)||!_0x40cd22['trim']())throw CliErrors['validation'](_0x1aa192(0x1f0)+_0x9bfd7+_0x1aa192(0x1f8));let _0x44c496;try{_0x44c496=new URL(_0x40cd22[_0x1aa192(0x217)]());}catch{throw CliErrors[_0x1aa192(0x1ee)](_0x1aa192(0x1f0)+_0x9bfd7+_0x1aa192(0x1f5)+_0x40cd22+_0x1aa192(0x21b));}if(_0x44c496['protocol']!=='https:'||_0x44c496['username']||_0x44c496[_0x1aa192(0x222)]||_0x44c496['pathname']!=='/'&&_0x44c496['pathname']!==''||_0x44c496['search']||_0x44c496[_0x1aa192(0x1ec)])throw CliErrors[_0x1aa192(0x1ee)](_0x1aa192(0x1f0)+_0x9bfd7+':\x20expected\x20an\x20HTTPS\x20origin\x20without\x20credentials,\x20path,\x20query,\x20or\x20fragment.',_0x1aa192(0x20f));return _0x44c496['origin'];}export function normalizeRoutingDomainValue(_0x453449,_0x4c3d89){const _0x37f0e7=a269_0x55c39f;if(typeof _0x4c3d89===_0x37f0e7(0x221))return normalizeDomainOrigin(_0x453449,_0x4c3d89);if(!_0x4c3d89||typeof _0x4c3d89!=='object'||Array[_0x37f0e7(0x205)](_0x4c3d89))throw CliErrors['validation']('Invalid\x20'+_0x453449+':\x20expected\x20an\x20HTTPS\x20origin\x20or\x20consumer\x20Domain\x20object.');const _0x118eab=_0x4c3d89,_0x54be6d=_0x118eab[ROUTING_CONSUMER]??_0x118eab[_0x37f0e7(0x232)];if(_0x54be6d===undefined)throw CliErrors[_0x37f0e7(0x1ee)](_0x37f0e7(0x207)+_0x453449+_0x37f0e7(0x208)+ROUTING_CONSUMER+_0x37f0e7(0x22b));return normalizeDomainOrigin(_0x453449,_0x54be6d);}export function normalizeCdnBaseUrl(_0x119b96,_0x2ecf06){const _0x871c3a=a269_0x55c39f;if(typeof _0x2ecf06!==_0x871c3a(0x221)||!_0x2ecf06['trim']())throw CliErrors[_0x871c3a(0x1ee)](_0x871c3a(0x22d)+_0x119b96+_0x871c3a(0x21f));const _0x1f4390=_0x2ecf06[_0x871c3a(0x217)]()[_0x871c3a(0x20b)](/\/$/,'');let _0x1026ed;try{_0x1026ed=new URL(_0x1f4390);}catch{throw CliErrors[_0x871c3a(0x1ee)](_0x871c3a(0x22d)+_0x119b96+_0x871c3a(0x1f5)+_0x2ecf06+_0x871c3a(0x21b));}if(_0x1026ed[_0x871c3a(0x212)]!==_0x871c3a(0x219)||_0x1026ed[_0x871c3a(0x1fc)]||_0x1026ed['password']||_0x1026ed['search']||_0x1026ed[_0x871c3a(0x1ec)]||_0x1026ed[_0x871c3a(0x20c)][_0x871c3a(0x20b)](/\/$/,'')!==_0x1f4390||_0x119b96===_0x871c3a(0x214)&&_0x1026ed[_0x871c3a(0x1f6)]!==_0x1f4390)throw CliErrors[_0x871c3a(0x1ee)]('Invalid\x20cdn.'+_0x119b96+_0x871c3a(0x239)+(_0x119b96==='lovrabet'?'origin':_0x871c3a(0x201))+_0x871c3a(0x21c));return _0x1f4390;}export function resolveEnterpriseRoutingConfig(_0x39611b){const _0x5eb916=a269_0x55c39f;return resolveEnterpriseRoutingManifest(_0x39611b)?.[_0x5eb916(0x216)];}export function resolveEnterpriseRoutingManifest(_0x1203a6){const _0x1061a2=a269_0x55c39f;if(_0x1203a6===undefined)return undefined;if(!_0x1203a6||typeof _0x1203a6!==_0x1061a2(0x213)||Array[_0x1061a2(0x205)](_0x1203a6))throw CliErrors['validation'](_0x1061a2(0x226));return parseEnterpriseRoutingManifest(_0x1203a6);}export function readDomainConfigInput(_0x1918c6){const _0x586ce3=a269_0x55c39f,_0xdd78e7=isAbsolute(_0x1918c6)?_0x1918c6:resolve(process[_0x586ce3(0x227)](),_0x1918c6);if(!existsSync(_0xdd78e7))throw CliErrors[_0x586ce3(0x1ee)](_0x586ce3(0x22c)+_0xdd78e7);let _0x36c0cb;try{_0x36c0cb=JSON[_0x586ce3(0x203)](readFileSync(_0xdd78e7,_0x586ce3(0x1fd)));}catch{throw CliErrors[_0x586ce3(0x1ee)]('Invalid\x20domain\x20config\x20JSON:\x20'+_0xdd78e7);}if(!_0x36c0cb||typeof _0x36c0cb!==_0x586ce3(0x213)||Array[_0x586ce3(0x205)](_0x36c0cb))throw CliErrors[_0x586ce3(0x1ee)]('Invalid\x20domain\x20config:\x20expected\x20a\x20JSON\x20object.');const _0x213c72=_0x36c0cb;if('protocol'in _0x213c72)return parseEnterpriseRoutingManifest(_0x213c72);const _0x4fb627=Object[_0x586ce3(0x21e)](_0x213c72)[_0x586ce3(0x20d)](_0x335414=>!DOMAIN_CONFIG_FIELDS[_0x586ce3(0x223)](_0x335414));if(_0x4fb627[_0x586ce3(0x202)]>0x0)throw CliErrors['validation'](_0x586ce3(0x210)+_0x4fb627[_0x586ce3(0x1fe)](',\x20'),_0x586ce3(0x1f7)+DOMAIN_CONFIG_FIELDS[_0x586ce3(0x1fe)](',\x20'));const _0x101bb3={};for(const _0x1eb6dc of DOMAIN_CONFIG_FIELDS){_0x213c72[_0x1eb6dc]!==undefined&&(_0x101bb3[_0x1eb6dc]=normalizeDomainOrigin(_0x1eb6dc,_0x213c72[_0x1eb6dc]));}if(Object[_0x586ce3(0x21e)](_0x101bb3)['length']===0x0)throw CliErrors[_0x586ce3(0x1ee)](_0x586ce3(0x20a));return{'mode':_0x586ce3(0x235),'domains':_0x101bb3};}export function readDomainConfig(_0x330e1c){const _0x217c29=a269_0x55c39f;return readDomainConfigInput(_0x330e1c)[_0x217c29(0x216)];}export function resolveDomainConfigInput(_0x201357){const _0x598bf9=a269_0x55c39f,_0x299ce9=(_0x201357['str'](_0x598bf9(0x1f3))||'')['trim'](),_0x18f646=_0x299ce9?readDomainConfigInput(_0x299ce9):{'mode':_0x598bf9(0x235),'domains':{}},_0x31dc9b=DOMAIN_CONFIG_FIELDS['filter'](_0x507622=>Boolean((_0x201357[_0x598bf9(0x1fb)](DOMAIN_FLAGS[_0x507622])||'')['trim']()));if(_0x18f646['mode']===_0x598bf9(0x218)&&_0x31dc9b[_0x598bf9(0x202)]>0x0)throw CliErrors[_0x598bf9(0x1ee)](_0x598bf9(0x209),_0x598bf9(0x23a));for(const _0x9d1d27 of DOMAIN_CONFIG_FIELDS){const _0x837e93=(_0x201357[_0x598bf9(0x1fb)](DOMAIN_FLAGS[_0x9d1d27])||'')[_0x598bf9(0x217)]();if(_0x837e93)_0x18f646[_0x598bf9(0x216)][_0x9d1d27]=normalizeDomainOrigin(_0x9d1d27,_0x837e93);}return _0x18f646;}export function resolveDomainFlags(_0x5efab5){const _0x146a3e=a269_0x55c39f;return resolveDomainConfigInput(_0x5efab5)[_0x146a3e(0x216)];}export function parseEnterpriseRoutingManifest(_0x50834d){const _0x21342a=a269_0x55c39f;if(_0x50834d['protocol']!==ENTERPRISE_ROUTING_PROTOCOL||_0x50834d['kind']!==ENTERPRISE_ROUTING_KIND)throw CliErrors[_0x21342a(0x1ee)]('Unsupported\x20routing\x20manifest:\x20expected\x20protocol\x20\x22'+ENTERPRISE_ROUTING_PROTOCOL+'\x22\x20and\x20kind\x20\x22'+ENTERPRISE_ROUTING_KIND+'\x22.');if(!_0x50834d['domains']||typeof _0x50834d['domains']!==_0x21342a(0x213)||Array[_0x21342a(0x205)](_0x50834d[_0x21342a(0x216)]))throw CliErrors[_0x21342a(0x1ee)](_0x21342a(0x220));if(!_0x50834d[_0x21342a(0x1f2)]||typeof _0x50834d[_0x21342a(0x1f2)]!=='object'||Array[_0x21342a(0x205)](_0x50834d[_0x21342a(0x1f2)]))throw CliErrors[_0x21342a(0x1ee)](_0x21342a(0x237));const _0x47256b=_0x50834d[_0x21342a(0x216)],_0x31efbd=REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS['filter'](_0x440b0d=>_0x47256b[_0x440b0d]===undefined);if(_0x31efbd[_0x21342a(0x202)]>0x0)throw CliErrors[_0x21342a(0x1ee)](_0x21342a(0x230)+_0x31efbd['join'](',\x20'));if(_0x47256b[_0x21342a(0x215)]===undefined!==(_0x47256b['certificateDomain']===undefined))throw CliErrors[_0x21342a(0x1ee)]('Enterprise\x20routing\x20manifest\x20requires\x20localDomain\x20and\x20certificateDomain\x20together.');const _0x38bbbb=_0x50834d[_0x21342a(0x1f2)],_0xbab669=Object[_0x21342a(0x21e)](_0x38bbbb)[_0x21342a(0x20d)](_0x2a4b8a=>!ENTERPRISE_ROUTING_CDN_FIELDS['includes'](_0x2a4b8a));if(_0xbab669[_0x21342a(0x202)]>0x0)throw CliErrors[_0x21342a(0x1ee)](_0x21342a(0x200)+_0xbab669['join'](',\x20'),_0x21342a(0x1f7)+ENTERPRISE_ROUTING_CDN_FIELDS[_0x21342a(0x1fe)](',\x20'));const _0x399af3=REQUIRED_ENTERPRISE_ROUTING_CDN_FIELDS[_0x21342a(0x20d)](_0x312ee8=>_0x38bbbb[_0x312ee8]===undefined);if(_0x399af3[_0x21342a(0x202)]>0x0)throw CliErrors[_0x21342a(0x1ee)](_0x21342a(0x211)+_0x399af3[_0x21342a(0x1fe)](',\x20'));const _0x3b1832={};for(const _0x289623 of ENTERPRISE_ROUTING_CDN_FIELDS){_0x3b1832[_0x289623]=normalizeCdnBaseUrl(_0x289623,_0x38bbbb[_0x289623]);}const _0x21772a={},_0x5e4a58={};for(const _0x2381f0 of ENTERPRISE_ROUTING_DOMAIN_FIELDS){const _0x32c8b3=_0x47256b[_0x2381f0];if(_0x32c8b3===undefined)continue;const _0x57a0fe=normalizeRoutingDomainValue(_0x2381f0,_0x32c8b3);_0x21772a[_0x2381f0]=_0x57a0fe;const _0x26a81a=ENTERPRISE_TO_LOCAL_FIELD[_0x2381f0];_0x26a81a&&(_0x5e4a58[_0x26a81a]=_0x57a0fe);}return{'mode':_0x21342a(0x218),'domains':_0x5e4a58,'manifestDomains':_0x21772a,'cdn':_0x3b1832};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a270_0xd4df42=a270_0x5168;(function(_0xed064d,_0x3cc408){const _0x32f0d7=a270_0x5168,_0x139a6f=_0xed064d();while(!![]){try{const _0x98f2c2=parseInt(_0x32f0d7(0x13e))/0x1*(-parseInt(_0x32f0d7(0x148))/0x2)+-parseInt(_0x32f0d7(0x14c))/0x3+parseInt(_0x32f0d7(0x143))/0x4+-parseInt(_0x32f0d7(0x13b))/0x5*(-parseInt(_0x32f0d7(0x147))/0x6)+parseInt(_0x32f0d7(0x146))/0x7+parseInt(_0x32f0d7(0x145))/0x8+-parseInt(_0x32f0d7(0x13f))/0x9*(parseInt(_0x32f0d7(0x14e))/0xa);if(_0x98f2c2===_0x3cc408)break;else _0x139a6f['push'](_0x139a6f['shift']());}catch(_0xb3ffef){_0x139a6f['push'](_0x139a6f['shift']());}}}(a270_0x1841,0x47349));import{readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{join}from'node:path';import{getActiveRegion,getActiveCdn,getApiDomain,getAppDomain,getCertificateDomain,getKbDomain,getLocalDomain,getRuntimeDomain,getSkillDomain,getUserDomain,isIndependentDeployment}from'../constant/domain.js';import{getOfficialRoutingProfile}from'../constant/routing-profile.js';export const PROJECT_DOMAIN_ROUTING_FILE_NAME=a270_0xd4df42(0x13a);export const PROJECT_DOMAIN_ROUTING_PROTOCOL=a270_0xd4df42(0x14b);function a270_0x5168(_0x2f9f54,_0x46156f){_0x2f9f54=_0x2f9f54-0x13a;const _0x18415a=a270_0x1841();let _0x516868=_0x18415a[_0x2f9f54];return _0x516868;}export function getProjectDomainRoutingManifest(){const _0x4bd843=a270_0xd4df42,_0xb67492=getActiveRegion(),_0xbe3b5a=isIndependentDeployment(),_0x2d824c=getOfficialRoutingProfile(_0xb67492),_0x5eb19a=getLocalDomain(),_0x281e11=getCertificateDomain(),_0x143b97=getActiveCdn();if(!!_0x5eb19a!==!!_0x281e11)throw new Error(_0x4bd843(0x149));return{'protocol':PROJECT_DOMAIN_ROUTING_PROTOCOL,'mode':_0xbe3b5a?_0x4bd843(0x14d):'official','region':_0xbe3b5a?null:_0xb67492,'domains':{'api':getApiDomain(),'runtime':getRuntimeDomain(),'user':getUserDomain(),'app':getAppDomain(),'skill':getSkillDomain(),'kb':getKbDomain()},'cdn':_0x143b97,'local':_0x5eb19a&&_0x281e11?{'origin':_0x5eb19a,'certificateUrl':_0x281e11+_0x4bd843(0x13c)}:_0xbe3b5a?{'origin':_0x4bd843(0x144)}:{'origin':_0x2d824c['local'][_0x4bd843(0x14a)],'certificateUrl':_0x143b97[_0x4bd843(0x140)]+_0x4bd843(0x13c)}};}function a270_0x1841(){const _0x44f474=['9icqxgE','lovrabet','now','utf8','971360cTPRCU','http://localhost','1461616qKUbkV','1146929HXaraB','3504nDmvMK','2128QKmKaT','Independent\x20deployment\x20routing\x20requires\x20localDomain\x20and\x20certificateDomain\x20together.','origin','lovrabet-project-domain-routing/v1','136941QVStoN','independent','3643570FkPtva','rabetbase.domain-routing.json','1025oFrLgp','/cert/lovrabet-dev.json','.tmp','7sbDRvO'];a270_0x1841=function(){return _0x44f474;};return a270_0x1841();}export function writeProjectDomainRoutingManifest(_0xc43b0b){const _0x526ccd=a270_0xd4df42,_0x5b37c3=getProjectDomainRoutingManifest(),_0x486054=join(_0xc43b0b,PROJECT_DOMAIN_ROUTING_FILE_NAME),_0x2f0cba=JSON['stringify'](_0x5b37c3,null,0x2)+'\x0a';try{if(readFileSync(_0x486054,'utf8')===_0x2f0cba)return{'path':_0x486054,'manifest':_0x5b37c3,'changed':![]};}catch{}const _0x573f27=_0x486054+'.'+process['pid']+'.'+Date[_0x526ccd(0x141)]()+_0x526ccd(0x13d);try{writeFileSync(_0x573f27,_0x2f0cba,{'encoding':_0x526ccd(0x142),'mode':0x1a4}),renameSync(_0x573f27,_0x486054);}catch(_0x2ede8e){try{unlinkSync(_0x573f27);}catch{}throw _0x2ede8e;}return{'path':_0x486054,'manifest':_0x5b37c3,'changed':!![]};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a271_0x620b(_0x3e4617,_0x3e1c6e){_0x3e4617=_0x3e4617-0x1ee;const _0x3188cc=a271_0x3188();let _0x620b95=_0x3188cc[_0x3e4617];return _0x620b95;}function a271_0x3188(){const _0x25df56=['Rabetbase\x20configuration','1400888IiIbpr','appRegion','app','328bsqiwE','7902228ihbUix','value','507228bqSeVm','global\x20Rabetbase\x20configuration','app\x20profile\x20\x22','mergedRegion','config','444483nrEDlQ','stringify','18gubaqA','2158226ePQhmV','12001mSwhPb','\x20in\x20','globalRegion','36980cOssQt','14185dJgisE','Run\x20`','4wfVsAP','projectRegion','Invalid\x20country/region\x20','appName','validation','null','default','source','project','global'];a271_0x3188=function(){return _0x25df56;};return a271_0x3188();}const a271_0x429a72=a271_0x620b;(function(_0x44c918,_0x2a73c5){const _0x44f924=a271_0x620b,_0x5753aa=_0x44c918();while(!![]){try{const _0x348efb=-parseInt(_0x44f924(0x1ef))/0x1*(parseInt(_0x44f924(0x1f9))/0x2)+-parseInt(_0x44f924(0x20a))/0x3+-parseInt(_0x44f924(0x207))/0x4*(parseInt(_0x44f924(0x1f7))/0x5)+-parseInt(_0x44f924(0x208))/0x6+-parseInt(_0x44f924(0x1f2))/0x7+parseInt(_0x44f924(0x204))/0x8*(-parseInt(_0x44f924(0x1f1))/0x9)+parseInt(_0x44f924(0x1f6))/0xa*(parseInt(_0x44f924(0x1f3))/0xb);if(_0x348efb===_0x2a73c5)break;else _0x5753aa['push'](_0x5753aa['shift']());}catch(_0x5ea0a7){_0x5753aa['push'](_0x5753aa['shift']());}}}(a271_0x3188,0xbb908));import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_LOVRABET_REGION,isInvalidLovrabetRegion,normalizeLovrabetRegion}from'../constant/region.js';import{CliErrors}from'../errors.js';export function selectConfiguredRegion(_0xb3d449){const _0x3bfc64=a271_0x620b;if(_0xb3d449['appRegion']!==undefined&&_0xb3d449[_0x3bfc64(0x205)]!==null&&_0xb3d449[_0x3bfc64(0x205)]!=='')return{'value':_0xb3d449['appRegion'],'source':_0x3bfc64(0x206)};if(_0xb3d449[_0x3bfc64(0x1fa)]!==undefined&&_0xb3d449['projectRegion']!==null&&_0xb3d449[_0x3bfc64(0x1fa)]!=='')return{'value':_0xb3d449['projectRegion'],'source':_0x3bfc64(0x201)};if(_0xb3d449['globalRegion']!==undefined&&_0xb3d449[_0x3bfc64(0x1f5)]!==null&&_0xb3d449[_0x3bfc64(0x1f5)]!=='')return{'value':_0xb3d449[_0x3bfc64(0x1f5)],'source':_0x3bfc64(0x202)};if(_0xb3d449['mergedRegion']!==undefined&&_0xb3d449[_0x3bfc64(0x20d)]!==null&&_0xb3d449['mergedRegion']!=='')return{'value':_0xb3d449[_0x3bfc64(0x20d)],'source':_0x3bfc64(0x1ee)};return{'value':undefined,'source':_0x3bfc64(0x1ff)};}function describeConfiguredRegion(_0x2809c5){const _0x5d1c23=a271_0x620b;return typeof _0x2809c5==='string'?JSON[_0x5d1c23(0x1f0)](_0x2809c5):'a\x20value\x20of\x20type\x20'+(_0x2809c5===null?_0x5d1c23(0x1fe):typeof _0x2809c5);}export function resolveConfiguredRegion(_0x3e6f36,_0x1430d5=a271_0x429a72(0x203)){const _0x553425=a271_0x429a72;if(isInvalidLovrabetRegion(_0x3e6f36))throw CliErrors[_0x553425(0x1fd)](_0x553425(0x1fb)+describeConfiguredRegion(_0x3e6f36)+_0x553425(0x1f4)+_0x1430d5+'.',_0x553425(0x1f8)+CLI_BIN_NAME+'\x20doctor`\x20to\x20locate\x20and\x20repair\x20the\x20invalid\x20configuration\x20before\x20retrying.');return normalizeLovrabetRegion(_0x3e6f36)??DEFAULT_LOVRABET_REGION;}export function resolveEffectiveRegion(_0x4a9800){const _0x43c4bf=a271_0x429a72,_0x1da65d=selectConfiguredRegion(_0x4a9800),_0x27328b=_0x1da65d[_0x43c4bf(0x200)]===_0x43c4bf(0x206)?_0x4a9800[_0x43c4bf(0x1fc)]?_0x43c4bf(0x20c)+_0x4a9800[_0x43c4bf(0x1fc)]+'\x22':'selected\x20app\x20profile':_0x1da65d[_0x43c4bf(0x200)]===_0x43c4bf(0x201)?'project\x20Rabetbase\x20configuration':_0x1da65d[_0x43c4bf(0x200)]===_0x43c4bf(0x202)?_0x43c4bf(0x20b):'Rabetbase\x20configuration';return{'region':resolveConfiguredRegion(_0x1da65d[_0x43c4bf(0x209)],_0x27328b),'source':_0x1da65d[_0x43c4bf(0x200)]};}
|
package/lib/config/schema.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a272_0x4edf04=a272_0x5808;(function(_0x4bfc03,_0x476dcc){const _0x111bb1=a272_0x5808,_0x41f916=_0x4bfc03();while(!![]){try{const _0x1297ae=-parseInt(_0x111bb1(0x98))/0x1*(-parseInt(_0x111bb1(0x9d))/0x2)+parseInt(_0x111bb1(0xa2))/0x3*(parseInt(_0x111bb1(0xba))/0x4)+-parseInt(_0x111bb1(0xab))/0x5+parseInt(_0x111bb1(0xa3))/0x6+-parseInt(_0x111bb1(0x99))/0x7*(-parseInt(_0x111bb1(0xb8))/0x8)+parseInt(_0x111bb1(0xa0))/0x9*(-parseInt(_0x111bb1(0x8e))/0xa)+parseInt(_0x111bb1(0xb1))/0xb*(-parseInt(_0x111bb1(0x89))/0xc);if(_0x1297ae===_0x476dcc)break;else _0x41f916['push'](_0x41f916['shift']());}catch(_0x4231a3){_0x41f916['push'](_0x41f916['shift']());}}}(a272_0x2887,0xc008e));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';function a272_0x2887(){const _0x37b61b=['30612YSKMNJ','apps','userDomain','number','apiGroup','278180cPLEBH','apiDir','app','defaultApp','keys','en-US','Access\x20key','cookie','runtimeDomain','entries','37933LkRsiK','3443321qGBNQL','skillDomain','has','Country/region\x20for\x20this\x20app\x20profile','42RynKTp','localDomain','apiDomain','504wsItKu','inherit','63zdGnpL','3714720OeGMeL','routing','certificateDomain','format','locale','riskLevel','API\x20directory\x20path','trim','1524175WdqCOl','region','env','filter','string','accessKey','2255ztXZuh','length','appDomain','Target\x20environment','kbServiceDomain','join','some','16qtjBpA','pageSize','147172cEhASA','object','App\x20locale\x20(not\x20CLI\x20language;\x20reserved\x20for\x20later\x20app\x20use)','values','zh-CN','Config\x20key\x20(','isArray','Join\x20key\x20for\x20app\x20profiles\x20that\x20share\x20one\x20generated\x20API\x20model\x20registry','map'];a272_0x2887=function(){return _0x37b61b;};return a272_0x2887();}export const PROJECT_CREATE_INHERITABLE_KEYS=[a272_0x4edf04(0x95),a272_0x4edf04(0xb0),a272_0x4edf04(0xa7),a272_0x4edf04(0xa6),a272_0x4edf04(0xa8),'region',a272_0x4edf04(0xa4),a272_0x4edf04(0x8b),a272_0x4edf04(0x9f),a272_0x4edf04(0x96),a272_0x4edf04(0x9a),'kbDomain',a272_0x4edf04(0xb5),a272_0x4edf04(0xb3),a272_0x4edf04(0x9e),a272_0x4edf04(0xa5)];export const TOP_LEVEL_CONFIG_KEYS=new Set(['appcode',a272_0x4edf04(0xad),'locale',a272_0x4edf04(0xa6),'cookie',a272_0x4edf04(0xb0),a272_0x4edf04(0x8f),a272_0x4edf04(0xac),a272_0x4edf04(0x8b),'apiDomain',a272_0x4edf04(0x96),a272_0x4edf04(0x9a),'kbDomain',a272_0x4edf04(0xb5),'appDomain',a272_0x4edf04(0x9e),a272_0x4edf04(0xa5)]);export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES],'region':[...ENABLED_LOVRABET_REGION_VALUES]};export function formatConfigKeyList(_0x171169){const _0x4114c8=a272_0x4edf04;return[..._0x171169][_0x4114c8(0xb6)](',\x20');}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function isTopLevelConfigKey(_0x21d73c){const _0x3eb264=a272_0x4edf04;return TOP_LEVEL_CONFIG_KEYS[_0x3eb264(0x9b)](_0x21d73c);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x434a27=a272_0x4edf04;return _0x434a27(0xbf)+getTopLevelConfigKeySummary()+')';}export const APP_PROFILE_FLAG_KEY_MAP={'apiGroup':'apiGroup','region':'region','env':a272_0x4edf04(0xad),'apiDir':'apiDir','cookie':a272_0x4edf04(0x95),'accessKey':'accessKey','defaultFormat':a272_0x4edf04(0xa6),'pageSize':a272_0x4edf04(0xb9),'riskLevel':'riskLevel','locale':'locale'};export function getAppProfileFlagDefs(){const _0x14d8fd=a272_0x4edf04;return[{'name':'apiGroup','type':'string','description':_0x14d8fd(0xc1)},{'name':_0x14d8fd(0xac),'type':_0x14d8fd(0xaf),'description':_0x14d8fd(0x9c),'enum':[...ENABLED_LOVRABET_REGION_VALUES]},{'name':_0x14d8fd(0xad),'type':_0x14d8fd(0xaf),'description':_0x14d8fd(0xb4),'enum':[...RABETBASE_ENV_VALUES]},{'name':_0x14d8fd(0x8f),'type':'string','description':_0x14d8fd(0xa9)},{'name':_0x14d8fd(0x95),'type':'string','description':'Auth\x20cookie','hidden':!![]},{'name':_0x14d8fd(0xb0),'type':_0x14d8fd(0xaf),'description':_0x14d8fd(0x94),'hidden':!![]},{'name':'defaultFormat','type':_0x14d8fd(0xaf),'description':'Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':'pageSize','type':_0x14d8fd(0x8c),'description':'Default\x20page\x20size'},{'name':'riskLevel','type':_0x14d8fd(0xaf),'description':'Risk\x20level','enum':[...RISK_LEVEL_VALUES]},{'name':_0x14d8fd(0xa7),'type':_0x14d8fd(0xaf),'description':_0x14d8fd(0xbc)}];}export function collectAppProfileOverrides(_0x1319d0){const _0x5b1f11=a272_0x4edf04,_0x2b46c3={};for(const [_0x414d5a,_0x17b640]of Object['entries'](APP_PROFILE_FLAG_KEY_MAP)){const _0x29c902=_0x1319d0(_0x414d5a);if(!_0x29c902)continue;_0x2b46c3[_0x17b640]=_0x17b640===_0x5b1f11(0xb9)?Number(_0x29c902):_0x29c902;}return _0x2b46c3;}function a272_0x5808(_0x5eb253,_0x3cb08b){_0x5eb253=_0x5eb253-0x89;const _0x2887fc=a272_0x2887();let _0x5808a2=_0x2887fc[_0x5eb253];return _0x5808a2;}export function buildAppProfileListFields(_0x5313fc){const _0x24c286=a272_0x4edf04;return{'apiGroup':_0x5313fc[_0x24c286(0x8d)]??null,'region':_0x5313fc['region']??null,'env':_0x5313fc[_0x24c286(0xad)]??null,'apiDir':_0x5313fc[_0x24c286(0x8f)]??null,'hasCookie':!!_0x5313fc['cookie'],'hasAccessKey':!!_0x5313fc[_0x24c286(0xb0)],'format':_0x5313fc[_0x24c286(0xa6)]??null,'pageSize':_0x5313fc[_0x24c286(0xb9)]??null,'riskLevel':_0x5313fc[_0x24c286(0xa8)]??null,'locale':_0x5313fc[_0x24c286(0xa7)]??null};}export function buildAppDoctorFields(_0x453fab,_0x35fa06){const _0x4ba98f=a272_0x4edf04;return{'region':{'value':_0x453fab[_0x4ba98f(0xac)]||_0x35fa06['region'],'source':_0x453fab['region']?_0x4ba98f(0x90):_0x4ba98f(0xa1)},'env':{'value':_0x453fab['env']||_0x35fa06[_0x4ba98f(0xad)],'source':_0x453fab[_0x4ba98f(0xad)]?_0x4ba98f(0x90):_0x4ba98f(0xa1)},'apiDir':{'value':_0x453fab[_0x4ba98f(0x8f)]||_0x35fa06[_0x4ba98f(0x8f)],'source':_0x453fab[_0x4ba98f(0x8f)]?_0x4ba98f(0x90):_0x4ba98f(0xa1)},'cookie':{'value':_0x453fab[_0x4ba98f(0x95)]||_0x35fa06[_0x4ba98f(0x95)],'source':_0x453fab[_0x4ba98f(0x95)]?_0x4ba98f(0x90):'inherit'},'accessKey':{'value':_0x453fab[_0x4ba98f(0xb0)]||_0x35fa06[_0x4ba98f(0xb0)],'source':_0x453fab[_0x4ba98f(0xb0)]?_0x4ba98f(0x90):_0x4ba98f(0xa1)}};}export function buildCanonicalAppConfig(_0x1cf599,_0x11d8b7){const _0x12dbb9=a272_0x4edf04,_0x5f1973=_0x1cf599[_0x12dbb9(0xc2)](_0x3dc484=>String(_0x3dc484||'')[_0x12dbb9(0xaa)]())[_0x12dbb9(0xae)](Boolean);if(_0x5f1973[_0x12dbb9(0xb2)]===0x0)return{};const _0x13a415={};for(const _0x13cb5c of _0x5f1973){_0x13a415[_0x13cb5c]=_0x11d8b7&&!isProduction(_0x11d8b7)?{'appcode':_0x13cb5c,'env':_0x11d8b7}:{'appcode':_0x13cb5c};}return _0x5f1973[_0x12dbb9(0xb2)]>0x1?{'apps':_0x13a415,'defaultApp':_0x5f1973[0x0]}:{'apps':_0x13a415};}export function normalizeStoredDefaultApp(_0x261025,_0x433abc){const _0x5f5135=a272_0x4edf04,_0x427336=_0x261025[_0x5f5135(0x8a)]&&typeof _0x261025[_0x5f5135(0x8a)]===_0x5f5135(0xbb)?_0x261025[_0x5f5135(0x8a)]:{},_0x17b56f=Object[_0x5f5135(0x92)](_0x427336);if(_0x17b56f['length']<=0x1)return delete _0x261025['defaultApp'],undefined;const _0x27cf2c=typeof _0x261025['defaultApp']===_0x5f5135(0xaf)&&_0x427336[_0x261025['defaultApp']]?_0x261025['defaultApp']:undefined,_0xbc4a9c=_0x433abc&&_0x427336[_0x433abc]?_0x433abc:_0x27cf2c;if(_0xbc4a9c)return _0x261025[_0x5f5135(0x91)]=_0xbc4a9c,_0xbc4a9c;return delete _0x261025[_0x5f5135(0x91)],undefined;}export function buildCanonicalProjectConfig(_0x2f0ad5,_0x22b22f){const _0x4f1462=a272_0x4edf04,{appCodes:appCodes=[],env:_0x48ada3,metadata:_0x4bc587}=_0x22b22f,_0x24de63={..._0x2f0ad5,..._0x4bc587||{}};delete _0x24de63['appcode'],delete _0x24de63[_0x4f1462(0x90)];const _0x3fc6c8=_0x48ada3||(typeof _0x24de63[_0x4f1462(0xad)]==='string'?_0x24de63[_0x4f1462(0xad)]:'')||DEFAULT_CONFIG_VALUES[_0x4f1462(0xad)];if(isProduction(_0x3fc6c8))delete _0x24de63[_0x4f1462(0xad)];else _0x24de63[_0x4f1462(0xad)]=_0x3fc6c8;const _0x569068=buildCanonicalAppConfig(appCodes,_0x3fc6c8);if(Object[_0x4f1462(0x92)](_0x569068)[_0x4f1462(0xb2)]>0x0){_0x24de63['apps']=_0x569068[_0x4f1462(0x8a)];if(_0x569068[_0x4f1462(0x91)])_0x24de63[_0x4f1462(0x91)]=_0x569068[_0x4f1462(0x91)];else delete _0x24de63[_0x4f1462(0x91)];}return normalizeConfigForWrite(_0x24de63);}function isRecord(_0x46aeed){const _0x4d48e1=a272_0x4edf04;return!!_0x46aeed&&typeof _0x46aeed===_0x4d48e1(0xbb)&&!Array[_0x4d48e1(0xc0)](_0x46aeed);}export function normalizeConfigForWrite(_0x30c194){const _0x43063d=a272_0x4edf04,_0x14a936={..._0x30c194},_0x6edc3b=isRecord(_0x30c194[_0x43063d(0x8a)])?_0x30c194[_0x43063d(0x8a)]:undefined,_0x2f9bfa=_0x6edc3b?Object['fromEntries'](Object[_0x43063d(0x97)](_0x6edc3b)[_0x43063d(0xc2)](([_0x363a8b,_0x684ed8])=>[_0x363a8b,isRecord(_0x684ed8)?{..._0x684ed8}:_0x684ed8])):undefined;if(_0x2f9bfa){const _0xb7dffd=typeof _0x14a936[_0x43063d(0xad)]===_0x43063d(0xaf)?_0x14a936[_0x43063d(0xad)]:undefined,_0x455002=Object[_0x43063d(0xbd)](_0x2f9bfa)[_0x43063d(0xb7)](_0x3236b8=>isRecord(_0x3236b8)&&typeof _0x3236b8['env']===_0x43063d(0xaf)&&isProduction(_0x3236b8[_0x43063d(0xad)]));if(_0xb7dffd&&isDaily(_0xb7dffd)&&_0x455002){for(const _0x4ebf80 of Object[_0x43063d(0xbd)](_0x2f9bfa)){if(!isRecord(_0x4ebf80))continue;if(_0x4ebf80[_0x43063d(0xad)]===undefined)_0x4ebf80[_0x43063d(0xad)]=_0xb7dffd;}delete _0x14a936[_0x43063d(0xad)];}for(const _0x2a6693 of Object[_0x43063d(0xbd)](_0x2f9bfa)){isRecord(_0x2a6693)&&typeof _0x2a6693[_0x43063d(0xad)]==='string'&&isProduction(_0x2a6693[_0x43063d(0xad)])&&delete _0x2a6693['env'];}_0x14a936[_0x43063d(0x8a)]=_0x2f9bfa;}return typeof _0x14a936['env']===_0x43063d(0xaf)&&isProduction(_0x14a936[_0x43063d(0xad)])&&delete _0x14a936[_0x43063d(0xad)],_0x14a936;}const LOCALE_MAP={'zh':a272_0x4edf04(0xbe),'zh-cn':a272_0x4edf04(0xbe),'zh_cn':a272_0x4edf04(0xbe),'en':'en-US','en-us':a272_0x4edf04(0x93),'en_us':a272_0x4edf04(0x93)};export function normalizeLocale(_0x1a9907){if(!_0x1a9907)return null;return LOCALE_MAP[_0x1a9907['toLowerCase']()]??null;}
|
|
1
|
+
const a272_0x6d9453=a272_0x1fa1;(function(_0x5dc7b4,_0x5efd48){const _0x147c1c=a272_0x1fa1,_0x525437=_0x5dc7b4();while(!![]){try{const _0x569e38=parseInt(_0x147c1c(0x21e))/0x1+-parseInt(_0x147c1c(0x204))/0x2+parseInt(_0x147c1c(0x201))/0x3*(-parseInt(_0x147c1c(0x1fd))/0x4)+parseInt(_0x147c1c(0x1f4))/0x5*(parseInt(_0x147c1c(0x20e))/0x6)+-parseInt(_0x147c1c(0x1f7))/0x7*(parseInt(_0x147c1c(0x20f))/0x8)+parseInt(_0x147c1c(0x224))/0x9+parseInt(_0x147c1c(0x219))/0xa;if(_0x569e38===_0x5efd48)break;else _0x525437['push'](_0x525437['shift']());}catch(_0x4c5729){_0x525437['push'](_0x525437['shift']());}}}(a272_0x4b82,0xa5898));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{isDaily,isProduction,RABETBASE_ENV_VALUES}from'../constant/env.js';import{RABETBASE_OUTPUT_FORMAT_VALUES}from'../constant/output.js';import{RISK_LEVEL_VALUES}from'../constant/risk.js';import{ENABLED_LOVRABET_REGION_VALUES}from'../constant/region.js';export{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';export const PROJECT_CREATE_INHERITABLE_KEYS=[a272_0x6d9453(0x21d),'accessKey',a272_0x6d9453(0x206),'format',a272_0x6d9453(0x22c),a272_0x6d9453(0x21f),'routing','userDomain','apiDomain','runtimeDomain',a272_0x6d9453(0x20c),a272_0x6d9453(0x216),'kbServiceDomain',a272_0x6d9453(0x203),a272_0x6d9453(0x1fa),a272_0x6d9453(0x1fe)];export const TOP_LEVEL_CONFIG_KEYS=new Set(['appcode',a272_0x6d9453(0x1ff),a272_0x6d9453(0x206),a272_0x6d9453(0x1f6),a272_0x6d9453(0x21d),a272_0x6d9453(0x227),a272_0x6d9453(0x212),a272_0x6d9453(0x21f),a272_0x6d9453(0x207),a272_0x6d9453(0x209),a272_0x6d9453(0x202),a272_0x6d9453(0x20c),a272_0x6d9453(0x216),a272_0x6d9453(0x1fb),a272_0x6d9453(0x203),a272_0x6d9453(0x1fa),a272_0x6d9453(0x1fe)]);export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES],'region':[...ENABLED_LOVRABET_REGION_VALUES]};export function formatConfigKeyList(_0x283f7b){const _0x544369=a272_0x6d9453;return[..._0x283f7b][_0x544369(0x208)](',\x20');}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}function a272_0x4b82(){const _0x4e09cf=['Target\x20environment','276PPAJJc','certificateDomain','env','values','34977mfhZMS','runtimeDomain','appDomain','1905034tWhkWp','has','locale','userDomain','join','apiDomain','Default\x20page\x20size','App\x20locale\x20(not\x20CLI\x20language;\x20reserved\x20for\x20later\x20app\x20use)','skillDomain','defaultFormat','2428770NltVsZ','664vMJdlR','API\x20directory\x20path','en-US','apiDir','filter','entries','map','kbDomain','app','defaultApp','11781530kKtbxA','isArray','some','toLowerCase','cookie','598488rlNCzt','region','inherit','appcode','object','apps','1426941dNOArB','pageSize','apiGroup','accessKey','Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','string','keys','fromEntries','riskLevel','15XvCqls','Join\x20key\x20for\x20app\x20profiles\x20that\x20share\x20one\x20generated\x20API\x20model\x20registry','format','60263VfEfBu','Access\x20key','length','localDomain','kbServiceDomain'];a272_0x4b82=function(){return _0x4e09cf;};return a272_0x4b82();}export function isTopLevelConfigKey(_0x495cf2){const _0x2025c9=a272_0x6d9453;return TOP_LEVEL_CONFIG_KEYS[_0x2025c9(0x205)](_0x495cf2);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){return'Config\x20key\x20('+getTopLevelConfigKeySummary()+')';}export const APP_PROFILE_FLAG_KEY_MAP={'apiGroup':'apiGroup','region':a272_0x6d9453(0x21f),'env':a272_0x6d9453(0x1ff),'apiDir':'apiDir','cookie':a272_0x6d9453(0x21d),'accessKey':a272_0x6d9453(0x227),'defaultFormat':'format','pageSize':a272_0x6d9453(0x225),'riskLevel':a272_0x6d9453(0x22c),'locale':a272_0x6d9453(0x206)};export function getAppProfileFlagDefs(){const _0x60c723=a272_0x6d9453;return[{'name':'apiGroup','type':_0x60c723(0x229),'description':_0x60c723(0x1f5)},{'name':_0x60c723(0x21f),'type':_0x60c723(0x229),'description':'Country/region\x20for\x20this\x20app\x20profile','enum':[...ENABLED_LOVRABET_REGION_VALUES]},{'name':'env','type':'string','description':_0x60c723(0x1fc),'enum':[...RABETBASE_ENV_VALUES]},{'name':'apiDir','type':_0x60c723(0x229),'description':_0x60c723(0x210)},{'name':_0x60c723(0x21d),'type':_0x60c723(0x229),'description':'Auth\x20cookie','hidden':!![]},{'name':_0x60c723(0x227),'type':_0x60c723(0x229),'description':_0x60c723(0x1f8),'hidden':!![]},{'name':_0x60c723(0x20d),'type':_0x60c723(0x229),'description':_0x60c723(0x228),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':'pageSize','type':'number','description':_0x60c723(0x20a)},{'name':_0x60c723(0x22c),'type':_0x60c723(0x229),'description':'Risk\x20level','enum':[...RISK_LEVEL_VALUES]},{'name':'locale','type':'string','description':_0x60c723(0x20b)}];}export function collectAppProfileOverrides(_0x3d8a38){const _0x244e29=a272_0x6d9453,_0x162306={};for(const [_0x4f88f6,_0xa62b1c]of Object[_0x244e29(0x214)](APP_PROFILE_FLAG_KEY_MAP)){const _0x5cb8bd=_0x3d8a38(_0x4f88f6);if(!_0x5cb8bd)continue;_0x162306[_0xa62b1c]=_0xa62b1c==='pageSize'?Number(_0x5cb8bd):_0x5cb8bd;}return _0x162306;}export function buildAppProfileListFields(_0xbf8164){const _0x2d706a=a272_0x6d9453;return{'apiGroup':_0xbf8164[_0x2d706a(0x226)]??null,'region':_0xbf8164['region']??null,'env':_0xbf8164[_0x2d706a(0x1ff)]??null,'apiDir':_0xbf8164[_0x2d706a(0x212)]??null,'hasCookie':!!_0xbf8164[_0x2d706a(0x21d)],'hasAccessKey':!!_0xbf8164[_0x2d706a(0x227)],'format':_0xbf8164[_0x2d706a(0x1f6)]??null,'pageSize':_0xbf8164[_0x2d706a(0x225)]??null,'riskLevel':_0xbf8164[_0x2d706a(0x22c)]??null,'locale':_0xbf8164[_0x2d706a(0x206)]??null};}export function buildAppDoctorFields(_0x2faad4,_0x47758a){const _0x26ce2=a272_0x6d9453;return{'region':{'value':_0x2faad4[_0x26ce2(0x21f)]||_0x47758a['region'],'source':_0x2faad4[_0x26ce2(0x21f)]?'app':_0x26ce2(0x220)},'env':{'value':_0x2faad4[_0x26ce2(0x1ff)]||_0x47758a['env'],'source':_0x2faad4[_0x26ce2(0x1ff)]?'app':_0x26ce2(0x220)},'apiDir':{'value':_0x2faad4['apiDir']||_0x47758a[_0x26ce2(0x212)],'source':_0x2faad4['apiDir']?_0x26ce2(0x217):_0x26ce2(0x220)},'cookie':{'value':_0x2faad4[_0x26ce2(0x21d)]||_0x47758a[_0x26ce2(0x21d)],'source':_0x2faad4['cookie']?_0x26ce2(0x217):_0x26ce2(0x220)},'accessKey':{'value':_0x2faad4[_0x26ce2(0x227)]||_0x47758a[_0x26ce2(0x227)],'source':_0x2faad4[_0x26ce2(0x227)]?_0x26ce2(0x217):_0x26ce2(0x220)}};}export function buildCanonicalAppConfig(_0x32c0cb,_0x376588){const _0x50eb57=a272_0x6d9453,_0x2b9cae=_0x32c0cb['map'](_0x7dba28=>String(_0x7dba28||'')['trim']())[_0x50eb57(0x213)](Boolean);if(_0x2b9cae[_0x50eb57(0x1f9)]===0x0)return{};const _0x4b7132={};for(const _0x5c1505 of _0x2b9cae){_0x4b7132[_0x5c1505]=_0x376588&&!isProduction(_0x376588)?{'appcode':_0x5c1505,'env':_0x376588}:{'appcode':_0x5c1505};}return _0x2b9cae[_0x50eb57(0x1f9)]>0x1?{'apps':_0x4b7132,'defaultApp':_0x2b9cae[0x0]}:{'apps':_0x4b7132};}export function normalizeStoredDefaultApp(_0x220862,_0x29b66c){const _0x410de3=a272_0x6d9453,_0x1d34f9=_0x220862[_0x410de3(0x223)]&&typeof _0x220862[_0x410de3(0x223)]===_0x410de3(0x222)?_0x220862[_0x410de3(0x223)]:{},_0x36a00b=Object[_0x410de3(0x22a)](_0x1d34f9);if(_0x36a00b[_0x410de3(0x1f9)]<=0x1)return delete _0x220862[_0x410de3(0x218)],undefined;const _0x3c71bf=typeof _0x220862['defaultApp']===_0x410de3(0x229)&&_0x1d34f9[_0x220862[_0x410de3(0x218)]]?_0x220862['defaultApp']:undefined,_0x3de496=_0x29b66c&&_0x1d34f9[_0x29b66c]?_0x29b66c:_0x3c71bf;if(_0x3de496)return _0x220862[_0x410de3(0x218)]=_0x3de496,_0x3de496;return delete _0x220862[_0x410de3(0x218)],undefined;}export function buildCanonicalProjectConfig(_0x2613a6,_0x4c9b50){const _0x3cf9aa=a272_0x6d9453,{appCodes:appCodes=[],env:_0x362593,metadata:_0x392eee}=_0x4c9b50,_0x28e08c={..._0x2613a6,..._0x392eee||{}};delete _0x28e08c[_0x3cf9aa(0x221)],delete _0x28e08c[_0x3cf9aa(0x217)];const _0x42f2bc=_0x362593||(typeof _0x28e08c[_0x3cf9aa(0x1ff)]===_0x3cf9aa(0x229)?_0x28e08c[_0x3cf9aa(0x1ff)]:'')||DEFAULT_CONFIG_VALUES[_0x3cf9aa(0x1ff)];if(isProduction(_0x42f2bc))delete _0x28e08c[_0x3cf9aa(0x1ff)];else _0x28e08c[_0x3cf9aa(0x1ff)]=_0x42f2bc;const _0x3a2a99=buildCanonicalAppConfig(appCodes,_0x42f2bc);if(Object[_0x3cf9aa(0x22a)](_0x3a2a99)[_0x3cf9aa(0x1f9)]>0x0){_0x28e08c[_0x3cf9aa(0x223)]=_0x3a2a99['apps'];if(_0x3a2a99[_0x3cf9aa(0x218)])_0x28e08c[_0x3cf9aa(0x218)]=_0x3a2a99[_0x3cf9aa(0x218)];else delete _0x28e08c[_0x3cf9aa(0x218)];}return normalizeConfigForWrite(_0x28e08c);}function isRecord(_0x121371){const _0xe41b1f=a272_0x6d9453;return!!_0x121371&&typeof _0x121371==='object'&&!Array[_0xe41b1f(0x21a)](_0x121371);}export function normalizeConfigForWrite(_0x4f0206){const _0xc88c42=a272_0x6d9453,_0x156068={..._0x4f0206},_0x3e60ca=isRecord(_0x4f0206[_0xc88c42(0x223)])?_0x4f0206[_0xc88c42(0x223)]:undefined,_0x48a42d=_0x3e60ca?Object[_0xc88c42(0x22b)](Object['entries'](_0x3e60ca)[_0xc88c42(0x215)](([_0x3c031a,_0x747bf6])=>[_0x3c031a,isRecord(_0x747bf6)?{..._0x747bf6}:_0x747bf6])):undefined;if(_0x48a42d){const _0x195bd1=typeof _0x156068[_0xc88c42(0x1ff)]===_0xc88c42(0x229)?_0x156068['env']:undefined,_0xfc54fd=Object[_0xc88c42(0x200)](_0x48a42d)[_0xc88c42(0x21b)](_0x57505c=>isRecord(_0x57505c)&&typeof _0x57505c[_0xc88c42(0x1ff)]===_0xc88c42(0x229)&&isProduction(_0x57505c[_0xc88c42(0x1ff)]));if(_0x195bd1&&isDaily(_0x195bd1)&&_0xfc54fd){for(const _0x15ceab of Object[_0xc88c42(0x200)](_0x48a42d)){if(!isRecord(_0x15ceab))continue;if(_0x15ceab['env']===undefined)_0x15ceab[_0xc88c42(0x1ff)]=_0x195bd1;}delete _0x156068[_0xc88c42(0x1ff)];}for(const _0x36956c of Object[_0xc88c42(0x200)](_0x48a42d)){isRecord(_0x36956c)&&typeof _0x36956c['env']==='string'&&isProduction(_0x36956c[_0xc88c42(0x1ff)])&&delete _0x36956c[_0xc88c42(0x1ff)];}_0x156068[_0xc88c42(0x223)]=_0x48a42d;}return typeof _0x156068[_0xc88c42(0x1ff)]==='string'&&isProduction(_0x156068[_0xc88c42(0x1ff)])&&delete _0x156068[_0xc88c42(0x1ff)],_0x156068;}function a272_0x1fa1(_0x3a0933,_0x9c727){_0x3a0933=_0x3a0933-0x1f4;const _0x4b8244=a272_0x4b82();let _0x1fa1a1=_0x4b8244[_0x3a0933];return _0x1fa1a1;}const LOCALE_MAP={'zh':'zh-CN','zh-cn':'zh-CN','zh_cn':'zh-CN','en':a272_0x6d9453(0x211),'en-us':'en-US','en_us':a272_0x6d9453(0x211)};export function normalizeLocale(_0x5dd583){const _0x4178c8=a272_0x6d9453;if(!_0x5dd583)return null;return LOCALE_MAP[_0x5dd583[_0x4178c8(0x21c)]()]??null;}
|
package/lib/constant/cdn.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a273_0x576a(){const _0x562f54=['12zzhmjt','401054tYLkUT','3nDQPuF','freeze','158612isUjSZ','714132wdGDnS','12OALAph','config/index.json','rabetbase-cli','11dwjVzp','lovrabet','122668YDhdQy','sub-app-react-demo-','732770JFBAUa','sub-app-react-demo-beta.zip','364063xuBCgO','35OOpRsl','4400786lpWfLd','.zip','8jdPsae','sub-app-react-demo.zip'];a273_0x576a=function(){return _0x562f54;};return a273_0x576a();}const a273_0x1f7033=a273_0x2f88;(function(_0x5e6b7b,_0xb3d318){const _0x304c48=a273_0x2f88,_0x44735b=_0x5e6b7b();while(!![]){try{const _0x1cc3df=-parseInt(_0x304c48(0x180))/0x1+-parseInt(_0x304c48(0x17d))/0x2*(-parseInt(_0x304c48(0x17e))/0x3)+parseInt(_0x304c48(0x172))/0x4*(-parseInt(_0x304c48(0x177))/0x5)+-parseInt(_0x304c48(0x17c))/0x6*(-parseInt(_0x304c48(0x176))/0x7)+parseInt(_0x304c48(0x17a))/0x8*(-parseInt(_0x304c48(0x181))/0x9)+parseInt(_0x304c48(0x174))/0xa*(-parseInt(_0x304c48(0x170))/0xb)+-parseInt(_0x304c48(0x182))/0xc*(-parseInt(_0x304c48(0x178))/0xd);if(_0x1cc3df===_0xb3d318)break;else _0x44735b['push'](_0x44735b['shift']());}catch(_0xa934a0){_0x44735b['push'](_0x44735b['shift']());}}}(a273_0x576a,0x1c9a9));import{getActiveCdn}from'../constant/domain.js';const RABETBASE_CDN_PROJECT=a273_0x1f7033(0x16f),RABETBASE_CDN_CONFIG_ORIGIN='https://g.lovrabet.com',CDN_CONFIG_PATH=a273_0x1f7033(0x183),PROJECT_TEMPLATE_ASSET_PATH='templates/projects',PROJECT_TEMPLATE_ARCHIVE_NAMES=Object[a273_0x1f7033(0x17f)]({'release':a273_0x1f7033(0x17b),'beta':a273_0x1f7033(0x175)});export const RABETBASE_CDN_PROJECT_PATH='/dist/'+RABETBASE_CDN_PROJECT;function getRabetbaseCdnBaseUrl(){const _0x313dc3=a273_0x1f7033;return''+getActiveCdn()[_0x313dc3(0x171)]+RABETBASE_CDN_PROJECT_PATH;}export function getCliVersionPolicyUrl(){return''+RABETBASE_CDN_CONFIG_ORIGIN+RABETBASE_CDN_PROJECT_PATH+'/'+CDN_CONFIG_PATH;}export function getProjectTemplateAssetBaseUrl(){return getRabetbaseCdnBaseUrl()+'/'+PROJECT_TEMPLATE_ASSET_PATH;}function a273_0x2f88(_0x3c869f,_0x2d3e87){_0x3c869f=_0x3c869f-0x16f;const _0x576a6d=a273_0x576a();let _0x2f88df=_0x576a6d[_0x3c869f];return _0x2f88df;}export function getProjectTemplateLegacyAssetBaseUrl(){return''+RABETBASE_CDN_CONFIG_ORIGIN+RABETBASE_CDN_PROJECT_PATH+'/'+PROJECT_TEMPLATE_ASSET_PATH;}export function getProjectTemplateRelativeUrl(_0x4048bf,_0x4f0a79){const _0x2fd9c9=a273_0x1f7033,_0x59c248=_0x4f0a79?_0x2fd9c9(0x173)+_0x4f0a79+_0x2fd9c9(0x179):PROJECT_TEMPLATE_ARCHIVE_NAMES[_0x4048bf];return RABETBASE_CDN_PROJECT_PATH+'/'+PROJECT_TEMPLATE_ASSET_PATH+'/'+_0x59c248;}
|
package/lib/constant/cli.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function a274_0x56af(_0x11c65c,_0x55a0e7){_0x11c65c=_0x11c65c-0x10d;const _0x4db4c1=a274_0x4db4();let _0x56afb2=_0x4db4c1[_0x11c65c];return _0x56afb2;}const a274_0xbc3be7=a274_0x56af;function a274_0x4db4(){const _0x24c07f=['map','boolean','<code>','SQL\x20string','global','schemas','flow-status','menu-ids','Force\x20non-interactive\x20mode\x20(CI)','Page\x20size','function-node','@lovrabet/rabetbase-cli','Dataset\x20code','Output\x20path','6055KesNOz','verbose','expect-path','appcode','318HgqycE','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','title','parentId','force','codes','Menu\x20sort\x20value','sqlcode','datasetcode','1439216oEXijz','flowStatus','expected-count','JSON\x20params','watch','sql','params','help','12yhiNNb','Alias\x20for\x20--non-interactive','flowType','Schemas','Code\x20filter','Type\x20filter','Flow\x20status','Config\x20key','file','nonInteractive','Preview\x20operation\x20without\x20executing','flowCode','Force\x20overwrite','File\x20path','target','tags','menuIds','pagesize','reveal','name','21933Yvvkwe','dryRun','Search\x20query','project','Rabetbase\x20CLI','Watch\x20mode','App\x20locale\x20(workspace\x20pass-through;\x20not\x20CLI\x20language)','129902tKiUbw','label','expected-children-count','meowKey','description','value','Apply\x20to\x20all','enable-bff-save','type','Select\x20app\x20profile\x20by\x20name','Record\x20ID','Show\x20help','Read\x20value\x20from\x20stdin','key','expectParentId','yes','Title','locale','sort','dry-run','descriptionFile','string','Confirm\x20destructive\x20action','expectPath','Override\x20appcode','Reveal\x20sensitive\x20value','operation','Use\x20global\x20config\x20scope','task-id','1297422eQPvdd','Skip\x20import\x20generation','datasetCode','Use\x20project\x20config\x20scope','Tags','functionNode','8gXTBZY','output','format','Maximum\x20search\x20hits','fromEntries','123160NxlcpU','clear','page-size','Comma-separated\x20metadata\x20codes','operationType','env','3889610hyBlZx','flowName','all','non-interactive','remote','Config\x20value','enableBffSave','page','expect-parent-id','Name','description-file','DB\x20ID','sqlname','<expr>','skipImports','skip-imports','query','Output\x20format','expectedChildrenCount','stdin','flow-code','Parent\x20menu\x20id','dbId','keyword','Expected\x20current\x20child\x20count','Expected\x20affected\x20count','Operation\x20type','SQL\x20name','operation-type','dataset-code','zh-CN\x20|\x20en-US','confirm'];a274_0x4db4=function(){return _0x24c07f;};return a274_0x4db4();}(function(_0x414ec9,_0x3f81d3){const _0x25297f=a274_0x56af,_0xd327c=_0x414ec9();while(!![]){try{const _0xc894d5=-parseInt(_0x25297f(0x136))/0x1*(-parseInt(_0x25297f(0x11b))/0x2)+parseInt(_0x25297f(0x153))/0x3+-parseInt(_0x25297f(0x113))/0x4+-parseInt(_0x25297f(0x15e))/0x5+-parseInt(_0x25297f(0x196))/0x6*(parseInt(_0x25297f(0x192))/0x7)+parseInt(_0x25297f(0x159))/0x8*(parseInt(_0x25297f(0x12f))/0x9)+-parseInt(_0x25297f(0x164))/0xa;if(_0xc894d5===_0x3f81d3)break;else _0xd327c['push'](_0xd327c['shift']());}catch(_0x27681c){_0xd327c['push'](_0xd327c['shift']());}}}(a274_0x4db4,0x60749));export const CLI_BIN_NAME='rabetbase';export const CLI_DISPLAY_NAME=a274_0xbc3be7(0x133);export const NPM_PACKAGE_NAME=a274_0xbc3be7(0x18f);export const GLOBAL_FLAGS=[{'name':a274_0xbc3be7(0x195),'meowKey':a274_0xbc3be7(0x195),'type':a274_0xbc3be7(0x14b),'description':a274_0xbc3be7(0x14e),'hint':a274_0xbc3be7(0x186)},{'name':'app','meowKey':'app','type':'string','description':a274_0xbc3be7(0x13f),'hint':'<name>'},{'name':a274_0xbc3be7(0x163),'meowKey':a274_0xbc3be7(0x163),'type':'string','description':'Environment','hint':'production\x20|\x20daily'},{'name':a274_0xbc3be7(0x15b),'meowKey':a274_0xbc3be7(0x15b),'type':a274_0xbc3be7(0x14b),'description':a274_0xbc3be7(0x175),'hint':'json\x20|\x20pretty\x20|\x20compress'},{'name':'jq','meowKey':'jq','type':a274_0xbc3be7(0x14b),'description':a274_0xbc3be7(0x197),'hint':a274_0xbc3be7(0x171)},{'name':a274_0xbc3be7(0x149),'meowKey':a274_0xbc3be7(0x130),'type':a274_0xbc3be7(0x185),'description':a274_0xbc3be7(0x125)},{'name':a274_0xbc3be7(0x145),'meowKey':'yes','type':a274_0xbc3be7(0x185),'description':'Skip\x20confirmation\x20for\x20high-risk\x20writes'},{'name':a274_0xbc3be7(0x167),'meowKey':a274_0xbc3be7(0x124),'type':a274_0xbc3be7(0x185),'description':a274_0xbc3be7(0x18c)},{'name':a274_0xbc3be7(0x188),'meowKey':a274_0xbc3be7(0x188),'type':a274_0xbc3be7(0x185),'description':a274_0xbc3be7(0x151)},{'name':a274_0xbc3be7(0x132),'meowKey':a274_0xbc3be7(0x132),'type':a274_0xbc3be7(0x185),'description':a274_0xbc3be7(0x156)},{'name':'ci','meowKey':'ci','type':a274_0xbc3be7(0x185),'description':a274_0xbc3be7(0x11c),'hidden':!![]},{'name':a274_0xbc3be7(0x11a),'meowKey':a274_0xbc3be7(0x11a),'type':a274_0xbc3be7(0x185),'description':a274_0xbc3be7(0x141)},{'name':a274_0xbc3be7(0x147),'meowKey':'locale','type':'string','description':a274_0xbc3be7(0x135),'hidden':!![],'hint':a274_0xbc3be7(0x182)},{'name':a274_0xbc3be7(0x12e),'meowKey':a274_0xbc3be7(0x12e),'type':a274_0xbc3be7(0x14b),'description':a274_0xbc3be7(0x16d),'hidden':!![]},{'name':a274_0xbc3be7(0x198),'meowKey':a274_0xbc3be7(0x198),'type':a274_0xbc3be7(0x14b),'description':a274_0xbc3be7(0x146),'hidden':!![]},{'name':a274_0xbc3be7(0x174),'meowKey':a274_0xbc3be7(0x174),'type':a274_0xbc3be7(0x14b),'description':a274_0xbc3be7(0x131),'hidden':!![]},{'name':'topk','meowKey':'topk','type':'string','description':a274_0xbc3be7(0x15c),'hidden':!![]},{'name':a274_0xbc3be7(0x15f),'meowKey':a274_0xbc3be7(0x15f),'type':a274_0xbc3be7(0x185),'description':'Clear','hidden':!![]},{'name':'watch','meowKey':a274_0xbc3be7(0x117),'type':'boolean','description':a274_0xbc3be7(0x134),'hidden':!![]},{'name':'output','meowKey':a274_0xbc3be7(0x15a),'type':a274_0xbc3be7(0x14b),'description':a274_0xbc3be7(0x191),'hidden':!![]},{'name':a274_0xbc3be7(0x119),'meowKey':a274_0xbc3be7(0x119),'type':'string','description':a274_0xbc3be7(0x116),'hidden':!![]},{'name':a274_0xbc3be7(0x112),'meowKey':a274_0xbc3be7(0x112),'type':a274_0xbc3be7(0x14b),'description':a274_0xbc3be7(0x190),'hidden':!![]},{'name':'all','meowKey':a274_0xbc3be7(0x166),'type':'boolean','description':a274_0xbc3be7(0x13c),'hidden':!![]},{'name':a274_0xbc3be7(0x13d),'meowKey':a274_0xbc3be7(0x16a),'type':'boolean','description':'Enable\x20Backend\x20Function\x20save','hidden':!![]},{'name':'id','meowKey':'id','type':'string','description':a274_0xbc3be7(0x140),'hidden':!![]},{'name':a274_0xbc3be7(0x13e),'meowKey':a274_0xbc3be7(0x13e),'type':'string','description':a274_0xbc3be7(0x120),'hidden':!![]},{'name':'file','meowKey':a274_0xbc3be7(0x123),'type':'string','description':a274_0xbc3be7(0x128),'hidden':!![]},{'name':a274_0xbc3be7(0x178),'meowKey':a274_0xbc3be7(0x126),'type':a274_0xbc3be7(0x14b),'description':'Flow\x20code','hidden':!![]},{'name':'flow-name','meowKey':a274_0xbc3be7(0x165),'type':a274_0xbc3be7(0x14b),'description':'Flow\x20name','hidden':!![]},{'name':a274_0xbc3be7(0x18a),'meowKey':a274_0xbc3be7(0x114),'type':a274_0xbc3be7(0x14b),'description':a274_0xbc3be7(0x121),'hidden':!![]},{'name':'flow-type','meowKey':a274_0xbc3be7(0x11d),'type':a274_0xbc3be7(0x14b),'description':'Flow\x20type','hidden':!![]},{'name':a274_0xbc3be7(0x181),'meowKey':a274_0xbc3be7(0x155),'type':'string','description':a274_0xbc3be7(0x190),'hidden':!![]},{'name':a274_0xbc3be7(0x111),'meowKey':a274_0xbc3be7(0x111),'type':'string','description':'SQL\x20code','hidden':!![]},{'name':'sql-name','meowKey':'sqlName','type':a274_0xbc3be7(0x14b),'description':a274_0xbc3be7(0x17f),'hidden':!![]},{'name':a274_0xbc3be7(0x170),'meowKey':a274_0xbc3be7(0x170),'type':a274_0xbc3be7(0x14b),'description':a274_0xbc3be7(0x17f),'hidden':!![]},{'name':'db-id','meowKey':a274_0xbc3be7(0x17a),'type':'string','description':a274_0xbc3be7(0x16f),'hidden':!![]},{'name':'dbid','meowKey':'dbid','type':a274_0xbc3be7(0x14b),'description':'DB\x20ID','hidden':!![]},{'name':'description','meowKey':a274_0xbc3be7(0x13a),'type':'string','description':'Description','hidden':!![]},{'name':a274_0xbc3be7(0x16e),'meowKey':a274_0xbc3be7(0x14a),'type':'string','description':'Description\x20file','hidden':!![]},{'name':a274_0xbc3be7(0x16b),'meowKey':a274_0xbc3be7(0x16b),'type':'string','description':'Page\x20number','hidden':!![]},{'name':a274_0xbc3be7(0x160),'meowKey':'pageSize','type':a274_0xbc3be7(0x14b),'description':'Page\x20size','hidden':!![]},{'name':'pagesize','meowKey':a274_0xbc3be7(0x12c),'type':a274_0xbc3be7(0x14b),'description':a274_0xbc3be7(0x18d),'hidden':!![]},{'name':a274_0xbc3be7(0x17b),'meowKey':a274_0xbc3be7(0x17b),'type':'string','description':'Keyword\x20filter','hidden':!![]},{'name':'code','meowKey':'code','type':'string','description':a274_0xbc3be7(0x11f),'hidden':!![]},{'name':a274_0xbc3be7(0x118),'meowKey':a274_0xbc3be7(0x118),'type':a274_0xbc3be7(0x14b),'description':a274_0xbc3be7(0x187),'hidden':!![]},{'name':a274_0xbc3be7(0x189),'meowKey':a274_0xbc3be7(0x189),'type':'string','description':a274_0xbc3be7(0x11e),'hidden':!![]},{'name':'operation','meowKey':a274_0xbc3be7(0x150),'type':a274_0xbc3be7(0x14b),'description':a274_0xbc3be7(0x17e),'hidden':!![]},{'name':a274_0xbc3be7(0x129),'meowKey':a274_0xbc3be7(0x129),'type':'string','description':'Target\x20path','hidden':!![]},{'name':a274_0xbc3be7(0x173),'meowKey':a274_0xbc3be7(0x172),'type':a274_0xbc3be7(0x185),'description':a274_0xbc3be7(0x154),'hidden':!![]},{'name':a274_0xbc3be7(0x143),'meowKey':a274_0xbc3be7(0x143),'type':a274_0xbc3be7(0x14b),'description':a274_0xbc3be7(0x122),'hidden':!![]},{'name':a274_0xbc3be7(0x13b),'meowKey':a274_0xbc3be7(0x13b),'type':a274_0xbc3be7(0x14b),'description':a274_0xbc3be7(0x169),'hidden':!![]},{'name':'tags','meowKey':a274_0xbc3be7(0x12a),'type':a274_0xbc3be7(0x14b),'description':a274_0xbc3be7(0x157),'hidden':!![]},{'name':'stdin','meowKey':a274_0xbc3be7(0x177),'type':a274_0xbc3be7(0x185),'description':a274_0xbc3be7(0x142),'hidden':!![]},{'name':'from-env','meowKey':'fromEnv','type':a274_0xbc3be7(0x14b),'description':'Read\x20value\x20from\x20environment\x20variable','hidden':!![]},{'name':a274_0xbc3be7(0x12d),'meowKey':a274_0xbc3be7(0x12d),'type':a274_0xbc3be7(0x185),'description':a274_0xbc3be7(0x14f),'hidden':!![]},{'name':'force','meowKey':a274_0xbc3be7(0x10e),'type':'boolean','description':a274_0xbc3be7(0x127),'hidden':!![]},{'name':'confirm','meowKey':a274_0xbc3be7(0x183),'type':a274_0xbc3be7(0x185),'description':a274_0xbc3be7(0x14c),'hidden':!![]},{'name':a274_0xbc3be7(0x168),'meowKey':a274_0xbc3be7(0x168),'type':a274_0xbc3be7(0x185),'description':'Use\x20remote','hidden':!![]},{'name':a274_0xbc3be7(0x193),'meowKey':'verbose','type':a274_0xbc3be7(0x185),'description':'Verbose\x20output','hidden':!![]},{'name':a274_0xbc3be7(0x115),'meowKey':'expectedCount','type':a274_0xbc3be7(0x14b),'description':a274_0xbc3be7(0x17d),'hidden':!![]},{'name':'label','meowKey':a274_0xbc3be7(0x137),'type':'string','description':'Menu\x20label','hidden':!![]},{'name':'parent-id','meowKey':a274_0xbc3be7(0x10d),'type':a274_0xbc3be7(0x14b),'description':a274_0xbc3be7(0x179),'hidden':!![]},{'name':a274_0xbc3be7(0x148),'meowKey':a274_0xbc3be7(0x148),'type':'string','description':a274_0xbc3be7(0x110),'hidden':!![]},{'name':a274_0xbc3be7(0x16c),'meowKey':a274_0xbc3be7(0x144),'type':a274_0xbc3be7(0x14b),'description':'Expected\x20current\x20parent\x20menu\x20id','hidden':!![]},{'name':a274_0xbc3be7(0x194),'meowKey':a274_0xbc3be7(0x14d),'type':a274_0xbc3be7(0x14b),'description':'Expected\x20current\x20menu\x20path','hidden':!![]},{'name':a274_0xbc3be7(0x138),'meowKey':a274_0xbc3be7(0x176),'type':a274_0xbc3be7(0x14b),'description':a274_0xbc3be7(0x17c),'hidden':!![]},{'name':a274_0xbc3be7(0x18b),'meowKey':a274_0xbc3be7(0x12b),'type':'string','description':'Comma-separated\x20menu\x20IDs','hidden':!![]},{'name':a274_0xbc3be7(0x152),'meowKey':'taskId','type':a274_0xbc3be7(0x14b),'description':'Asynchronous\x20task\x20ID','hidden':!![]},{'name':a274_0xbc3be7(0x180),'meowKey':a274_0xbc3be7(0x162),'type':a274_0xbc3be7(0x14b),'description':a274_0xbc3be7(0x17e),'hidden':!![]},{'name':a274_0xbc3be7(0x18e),'meowKey':a274_0xbc3be7(0x158),'type':a274_0xbc3be7(0x14b),'description':'Function\x20node','hidden':!![]},{'name':a274_0xbc3be7(0x10f),'meowKey':a274_0xbc3be7(0x10f),'type':'string','description':a274_0xbc3be7(0x161),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a274_0xbc3be7(0x195),'app',a274_0xbc3be7(0x163),'format','jq',a274_0xbc3be7(0x149),'yes','non-interactive','ci']);export function buildMeowFlags(){const _0x1f9ee5=a274_0xbc3be7;return Object[_0x1f9ee5(0x15d)](GLOBAL_FLAGS[_0x1f9ee5(0x184)](_0x1a0534=>[_0x1a0534[_0x1f9ee5(0x139)],{'type':_0x1a0534[_0x1f9ee5(0x13e)]}]));}
|
|
1
|
+
const a274_0x4e66a5=a274_0x1b96;(function(_0x1dbccc,_0x543fe7){const _0x48e8bb=a274_0x1b96,_0x2a795f=_0x1dbccc();while(!![]){try{const _0x90fd84=parseInt(_0x48e8bb(0x1ae))/0x1*(-parseInt(_0x48e8bb(0x1db))/0x2)+parseInt(_0x48e8bb(0x1b7))/0x3+parseInt(_0x48e8bb(0x184))/0x4+parseInt(_0x48e8bb(0x187))/0x5*(-parseInt(_0x48e8bb(0x200))/0x6)+parseInt(_0x48e8bb(0x1c4))/0x7+parseInt(_0x48e8bb(0x1c8))/0x8+-parseInt(_0x48e8bb(0x193))/0x9;if(_0x90fd84===_0x543fe7)break;else _0x2a795f['push'](_0x2a795f['shift']());}catch(_0x242a05){_0x2a795f['push'](_0x2a795f['shift']());}}}(a274_0x3ac3,0xa48bf));export const CLI_BIN_NAME=a274_0x4e66a5(0x1b8);export const CLI_DISPLAY_NAME=a274_0x4e66a5(0x1ed);export const NPM_PACKAGE_NAME=a274_0x4e66a5(0x213);export const GLOBAL_FLAGS=[{'name':a274_0x4e66a5(0x1c9),'meowKey':a274_0x4e66a5(0x1c9),'type':'string','description':a274_0x4e66a5(0x1cf),'hint':a274_0x4e66a5(0x1d7)},{'name':a274_0x4e66a5(0x21a),'meowKey':'app','type':a274_0x4e66a5(0x1a5),'description':a274_0x4e66a5(0x214),'hint':a274_0x4e66a5(0x1ce)},{'name':a274_0x4e66a5(0x209),'meowKey':a274_0x4e66a5(0x209),'type':a274_0x4e66a5(0x1a5),'description':a274_0x4e66a5(0x1a4),'hint':a274_0x4e66a5(0x1df)},{'name':a274_0x4e66a5(0x197),'meowKey':'format','type':a274_0x4e66a5(0x1a5),'description':a274_0x4e66a5(0x207),'hint':a274_0x4e66a5(0x1dc)},{'name':'jq','meowKey':'jq','type':a274_0x4e66a5(0x1a5),'description':'Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','hint':a274_0x4e66a5(0x1ef)},{'name':a274_0x4e66a5(0x1c5),'meowKey':'dryRun','type':a274_0x4e66a5(0x20b),'description':'Preview\x20operation\x20without\x20executing'},{'name':'yes','meowKey':a274_0x4e66a5(0x1ad),'type':a274_0x4e66a5(0x20b),'description':a274_0x4e66a5(0x201)},{'name':a274_0x4e66a5(0x1ff),'meowKey':a274_0x4e66a5(0x1cc),'type':a274_0x4e66a5(0x20b),'description':a274_0x4e66a5(0x1f4)},{'name':'global','meowKey':a274_0x4e66a5(0x1e1),'type':a274_0x4e66a5(0x20b),'description':a274_0x4e66a5(0x1b5)},{'name':a274_0x4e66a5(0x208),'meowKey':a274_0x4e66a5(0x208),'type':a274_0x4e66a5(0x20b),'description':a274_0x4e66a5(0x1b0)},{'name':'ci','meowKey':'ci','type':a274_0x4e66a5(0x20b),'description':a274_0x4e66a5(0x1d9),'hidden':!![]},{'name':a274_0x4e66a5(0x1ea),'meowKey':'help','type':a274_0x4e66a5(0x20b),'description':a274_0x4e66a5(0x183)},{'name':a274_0x4e66a5(0x1f3),'meowKey':a274_0x4e66a5(0x1f3),'type':a274_0x4e66a5(0x1a5),'description':a274_0x4e66a5(0x19c),'hidden':!![],'hint':a274_0x4e66a5(0x1cb)},{'name':'name','meowKey':a274_0x4e66a5(0x1d5),'type':'string','description':a274_0x4e66a5(0x18d),'hidden':!![]},{'name':'title','meowKey':'title','type':a274_0x4e66a5(0x1a5),'description':a274_0x4e66a5(0x1ca),'hidden':!![]},{'name':a274_0x4e66a5(0x212),'meowKey':a274_0x4e66a5(0x212),'type':'string','description':a274_0x4e66a5(0x205),'hidden':!![]},{'name':a274_0x4e66a5(0x1d2),'meowKey':a274_0x4e66a5(0x1d2),'type':a274_0x4e66a5(0x1a5),'description':'Maximum\x20search\x20hits','hidden':!![]},{'name':a274_0x4e66a5(0x20c),'meowKey':'clear','type':'boolean','description':a274_0x4e66a5(0x1f2),'hidden':!![]},{'name':a274_0x4e66a5(0x195),'meowKey':a274_0x4e66a5(0x195),'type':a274_0x4e66a5(0x20b),'description':a274_0x4e66a5(0x19d),'hidden':!![]},{'name':a274_0x4e66a5(0x1d3),'meowKey':a274_0x4e66a5(0x1d3),'type':'string','description':a274_0x4e66a5(0x20e),'hidden':!![]},{'name':a274_0x4e66a5(0x218),'meowKey':a274_0x4e66a5(0x218),'type':a274_0x4e66a5(0x1a5),'description':'JSON\x20params','hidden':!![]},{'name':'datasetcode','meowKey':'datasetcode','type':a274_0x4e66a5(0x1a5),'description':a274_0x4e66a5(0x1ec),'hidden':!![]},{'name':a274_0x4e66a5(0x1a3),'meowKey':a274_0x4e66a5(0x1a3),'type':a274_0x4e66a5(0x20b),'description':a274_0x4e66a5(0x1ab),'hidden':!![]},{'name':'enable-bff-save','meowKey':'enableBffSave','type':a274_0x4e66a5(0x20b),'description':'Enable\x20Backend\x20Function\x20save','hidden':!![]},{'name':'id','meowKey':'id','type':'string','description':a274_0x4e66a5(0x1c1),'hidden':!![]},{'name':a274_0x4e66a5(0x186),'meowKey':a274_0x4e66a5(0x186),'type':'string','description':a274_0x4e66a5(0x19f),'hidden':!![]},{'name':a274_0x4e66a5(0x1ba),'meowKey':a274_0x4e66a5(0x1ba),'type':a274_0x4e66a5(0x1a5),'description':'File\x20path','hidden':!![]},{'name':a274_0x4e66a5(0x1e0),'meowKey':'flowCode','type':'string','description':a274_0x4e66a5(0x1bd),'hidden':!![]},{'name':a274_0x4e66a5(0x1eb),'meowKey':a274_0x4e66a5(0x1f0),'type':'string','description':a274_0x4e66a5(0x20d),'hidden':!![]},{'name':a274_0x4e66a5(0x1d0),'meowKey':a274_0x4e66a5(0x216),'type':a274_0x4e66a5(0x1a5),'description':'Flow\x20status','hidden':!![]},{'name':a274_0x4e66a5(0x18c),'meowKey':a274_0x4e66a5(0x1dd),'type':a274_0x4e66a5(0x1a5),'description':a274_0x4e66a5(0x188),'hidden':!![]},{'name':'dataset-code','meowKey':'datasetCode','type':a274_0x4e66a5(0x1a5),'description':'Dataset\x20code','hidden':!![]},{'name':a274_0x4e66a5(0x1fb),'meowKey':a274_0x4e66a5(0x1fb),'type':'string','description':a274_0x4e66a5(0x1de),'hidden':!![]},{'name':a274_0x4e66a5(0x1aa),'meowKey':a274_0x4e66a5(0x192),'type':a274_0x4e66a5(0x1a5),'description':a274_0x4e66a5(0x1da),'hidden':!![]},{'name':a274_0x4e66a5(0x1c3),'meowKey':a274_0x4e66a5(0x1c3),'type':a274_0x4e66a5(0x1a5),'description':a274_0x4e66a5(0x1da),'hidden':!![]},{'name':a274_0x4e66a5(0x18a),'meowKey':a274_0x4e66a5(0x1e2),'type':'string','description':'DB\x20ID','hidden':!![]},{'name':a274_0x4e66a5(0x1f6),'meowKey':a274_0x4e66a5(0x1f6),'type':a274_0x4e66a5(0x1a5),'description':a274_0x4e66a5(0x204),'hidden':!![]},{'name':a274_0x4e66a5(0x1c6),'meowKey':'description','type':a274_0x4e66a5(0x1a5),'description':a274_0x4e66a5(0x1b1),'hidden':!![]},{'name':a274_0x4e66a5(0x1fd),'meowKey':a274_0x4e66a5(0x18f),'type':a274_0x4e66a5(0x1a5),'description':a274_0x4e66a5(0x1e6),'hidden':!![]},{'name':a274_0x4e66a5(0x196),'meowKey':a274_0x4e66a5(0x196),'type':'string','description':'Page\x20number','hidden':!![]},{'name':a274_0x4e66a5(0x194),'meowKey':a274_0x4e66a5(0x202),'type':a274_0x4e66a5(0x1a5),'description':'Page\x20size','hidden':!![]},{'name':'pagesize','meowKey':a274_0x4e66a5(0x199),'type':a274_0x4e66a5(0x1a5),'description':a274_0x4e66a5(0x1b2),'hidden':!![]},{'name':a274_0x4e66a5(0x1d1),'meowKey':a274_0x4e66a5(0x1d1),'type':'string','description':a274_0x4e66a5(0x18e),'hidden':!![]},{'name':a274_0x4e66a5(0x19b),'meowKey':a274_0x4e66a5(0x19b),'type':a274_0x4e66a5(0x1a5),'description':a274_0x4e66a5(0x1cd),'hidden':!![]},{'name':a274_0x4e66a5(0x19a),'meowKey':a274_0x4e66a5(0x19a),'type':a274_0x4e66a5(0x1a5),'description':a274_0x4e66a5(0x1b9),'hidden':!![]},{'name':a274_0x4e66a5(0x1bc),'meowKey':'schemas','type':'string','description':a274_0x4e66a5(0x1b3),'hidden':!![]},{'name':a274_0x4e66a5(0x1ac),'meowKey':a274_0x4e66a5(0x1ac),'type':a274_0x4e66a5(0x1a5),'description':'Operation\x20type','hidden':!![]},{'name':a274_0x4e66a5(0x1f9),'meowKey':a274_0x4e66a5(0x1f9),'type':a274_0x4e66a5(0x1a5),'description':a274_0x4e66a5(0x1af),'hidden':!![]},{'name':a274_0x4e66a5(0x1ee),'meowKey':a274_0x4e66a5(0x1e9),'type':a274_0x4e66a5(0x20b),'description':a274_0x4e66a5(0x1e7),'hidden':!![]},{'name':a274_0x4e66a5(0x1c7),'meowKey':'key','type':a274_0x4e66a5(0x1a5),'description':a274_0x4e66a5(0x210),'hidden':!![]},{'name':a274_0x4e66a5(0x21b),'meowKey':a274_0x4e66a5(0x21b),'type':a274_0x4e66a5(0x1a5),'description':a274_0x4e66a5(0x1f5),'hidden':!![]},{'name':a274_0x4e66a5(0x20a),'meowKey':'tags','type':a274_0x4e66a5(0x1a5),'description':a274_0x4e66a5(0x190),'hidden':!![]},{'name':a274_0x4e66a5(0x217),'meowKey':a274_0x4e66a5(0x217),'type':a274_0x4e66a5(0x20b),'description':a274_0x4e66a5(0x206),'hidden':!![]},{'name':a274_0x4e66a5(0x1d6),'meowKey':a274_0x4e66a5(0x189),'type':a274_0x4e66a5(0x1a5),'description':a274_0x4e66a5(0x1f1),'hidden':!![]},{'name':a274_0x4e66a5(0x1e8),'meowKey':a274_0x4e66a5(0x1e8),'type':'boolean','description':a274_0x4e66a5(0x1fa),'hidden':!![]},{'name':a274_0x4e66a5(0x203),'meowKey':a274_0x4e66a5(0x203),'type':a274_0x4e66a5(0x20b),'description':a274_0x4e66a5(0x18b),'hidden':!![]},{'name':a274_0x4e66a5(0x1a6),'meowKey':a274_0x4e66a5(0x1a6),'type':a274_0x4e66a5(0x20b),'description':a274_0x4e66a5(0x1e3),'hidden':!![]},{'name':a274_0x4e66a5(0x211),'meowKey':a274_0x4e66a5(0x211),'type':'boolean','description':a274_0x4e66a5(0x1b4),'hidden':!![]},{'name':a274_0x4e66a5(0x1bf),'meowKey':a274_0x4e66a5(0x1bf),'type':a274_0x4e66a5(0x20b),'description':a274_0x4e66a5(0x1b6),'hidden':!![]},{'name':a274_0x4e66a5(0x1fc),'meowKey':a274_0x4e66a5(0x1a9),'type':a274_0x4e66a5(0x1a5),'description':a274_0x4e66a5(0x1f7),'hidden':!![]},{'name':a274_0x4e66a5(0x1fe),'meowKey':a274_0x4e66a5(0x1fe),'type':'string','description':a274_0x4e66a5(0x1e5),'hidden':!![]},{'name':'parent-id','meowKey':a274_0x4e66a5(0x1a1),'type':'string','description':'Parent\x20menu\x20id','hidden':!![]},{'name':a274_0x4e66a5(0x1bb),'meowKey':a274_0x4e66a5(0x1bb),'type':'string','description':'Menu\x20sort\x20value','hidden':!![]},{'name':a274_0x4e66a5(0x1a2),'meowKey':a274_0x4e66a5(0x1f8),'type':'string','description':'Expected\x20current\x20parent\x20menu\x20id','hidden':!![]},{'name':'expect-path','meowKey':'expectPath','type':a274_0x4e66a5(0x1a5),'description':a274_0x4e66a5(0x219),'hidden':!![]},{'name':a274_0x4e66a5(0x1d4),'meowKey':a274_0x4e66a5(0x1e4),'type':a274_0x4e66a5(0x1a5),'description':a274_0x4e66a5(0x185),'hidden':!![]},{'name':a274_0x4e66a5(0x198),'meowKey':a274_0x4e66a5(0x1a8),'type':a274_0x4e66a5(0x1a5),'description':a274_0x4e66a5(0x1a7),'hidden':!![]},{'name':a274_0x4e66a5(0x215),'meowKey':'taskId','type':a274_0x4e66a5(0x1a5),'description':'Asynchronous\x20task\x20ID','hidden':!![]},{'name':a274_0x4e66a5(0x1c2),'meowKey':a274_0x4e66a5(0x1a0),'type':a274_0x4e66a5(0x1a5),'description':'Operation\x20type','hidden':!![]},{'name':a274_0x4e66a5(0x1d8),'meowKey':a274_0x4e66a5(0x19e),'type':'string','description':a274_0x4e66a5(0x1c0),'hidden':!![]},{'name':'codes','meowKey':a274_0x4e66a5(0x20f),'type':a274_0x4e66a5(0x1a5),'description':a274_0x4e66a5(0x191),'hidden':!![]}];function a274_0x1b96(_0x4c181c,_0x7debe1){_0x4c181c=_0x4c181c-0x183;const _0x3ac3ea=a274_0x3ac3();let _0x1b9649=_0x3ac3ea[_0x4c181c];return _0x1b9649;}export const PIPELINE_FLAG_NAMES=new Set([a274_0x4e66a5(0x1c9),a274_0x4e66a5(0x21a),a274_0x4e66a5(0x209),a274_0x4e66a5(0x197),'jq',a274_0x4e66a5(0x1c5),'yes',a274_0x4e66a5(0x1ff),'ci']);function a274_0x3ac3(){const _0x496ffc=['flow-type','Name','Keyword\x20filter','descriptionFile','Tags','Comma-separated\x20metadata\x20codes','sqlName','7878852JwyiuY','page-size','watch','page','format','menu-ids','pagesize','sql','code','App\x20locale\x20(workspace\x20pass-through;\x20not\x20CLI\x20language)','Watch\x20mode','functionNode','Type\x20filter','operationType','parentId','expect-parent-id','all','Environment','string','confirm','Comma-separated\x20menu\x20IDs','menuIds','expectedCount','sql-name','Apply\x20to\x20all','operation','yes','5062TRDCcb','Target\x20path','Use\x20project\x20config\x20scope','Description','Page\x20size','Schemas','Use\x20remote','Use\x20global\x20config\x20scope','Verbose\x20output','3371655zrKcNy','rabetbase','SQL\x20string','file','sort','schemas','Flow\x20code','fromEntries','verbose','Function\x20node','Record\x20ID','operation-type','sqlname','1837857uxBmyp','dry-run','description','key','5019440iNQlLd','appcode','Title','zh-CN\x20|\x20en-US','nonInteractive','Code\x20filter','<name>','Override\x20appcode','flow-status','keyword','topk','output','expected-children-count','name','from-env','<code>','function-node','Alias\x20for\x20--non-interactive','SQL\x20name','194rCqCxa','json\x20|\x20pretty\x20|\x20compress','flowType','SQL\x20code','production\x20|\x20daily','flow-code','global','dbId','Confirm\x20destructive\x20action','expectedChildrenCount','Menu\x20label','Description\x20file','Skip\x20import\x20generation','reveal','skipImports','help','flow-name','Dataset\x20code','Rabetbase\x20CLI','skip-imports','<expr>','flowName','Read\x20value\x20from\x20environment\x20variable','Clear','locale','Force\x20non-interactive\x20mode\x20(CI)','Config\x20value','dbid','Expected\x20affected\x20count','expectParentId','target','Reveal\x20sensitive\x20value','sqlcode','expected-count','description-file','label','non-interactive','44094lsPELZ','Skip\x20confirmation\x20for\x20high-risk\x20writes','pageSize','force','DB\x20ID','Search\x20query','Read\x20value\x20from\x20stdin','Output\x20format','project','env','tags','boolean','clear','Flow\x20name','Output\x20path','codes','Config\x20key','remote','query','@lovrabet/rabetbase-cli','Select\x20app\x20profile\x20by\x20name','task-id','flowStatus','stdin','params','Expected\x20current\x20menu\x20path','app','value','Show\x20help','2075768VMCbbc','Expected\x20current\x20child\x20count','type','335yVcFKU','Flow\x20type','fromEnv','db-id','Force\x20overwrite'];a274_0x3ac3=function(){return _0x496ffc;};return a274_0x3ac3();}export function buildMeowFlags(){const _0x3d4b02=a274_0x4e66a5;return Object[_0x3d4b02(0x1be)](GLOBAL_FLAGS['map'](_0x5c6532=>[_0x5c6532['meowKey'],{'type':_0x5c6532[_0x3d4b02(0x186)]}]));}
|
package/lib/constant/defaults.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a275_0x1acdd3=a275_0x5d05;function a275_0x5bc8(){const _0x4dc59d=['406WAKnaG','en-US','2682772eAiKdB','1178967XQlyyk','44084KAvcQf','279KCiYFN','write','compress','833285rUrruh','84688vUFAqP','6525354rnMvCO','9008343OuXpPU','20tlTrcQ'];a275_0x5bc8=function(){return _0x4dc59d;};return a275_0x5bc8();}(function(_0x4db967,_0x19a14a){const _0xac3b06=a275_0x5d05,_0x26bc14=_0x4db967();while(!![]){try{const _0x306b32=-parseInt(_0xac3b06(0x189))/0x1+-parseInt(_0xac3b06(0x188))/0x2+-parseInt(_0xac3b06(0x18b))/0x3*(-parseInt(_0xac3b06(0x18a))/0x4)+-parseInt(_0xac3b06(0x18e))/0x5+parseInt(_0xac3b06(0x190))/0x6+parseInt(_0xac3b06(0x193))/0x7*(-parseInt(_0xac3b06(0x18f))/0x8)+parseInt(_0xac3b06(0x191))/0x9*(parseInt(_0xac3b06(0x192))/0xa);if(_0x306b32===_0x19a14a)break;else _0x26bc14['push'](_0x26bc14['shift']());}catch(_0x58c401){_0x26bc14['push'](_0x26bc14['shift']());}}}(a275_0x5bc8,0xc6938));function a275_0x5d05(_0x4978dd,_0x59523f){_0x4978dd=_0x4978dd-0x188;const _0x5bc879=a275_0x5bc8();let _0x5d0590=_0x5bc879[_0x4978dd];return _0x5d0590;}import{DEFAULT_API_DIR}from'../constant/paths.js';export const DEFAULT_CONFIG_VALUES={'env':'production','format':a275_0x1acdd3(0x18d),'locale':a275_0x1acdd3(0x194),'riskLevel':a275_0x1acdd3(0x18c),'apiDir':DEFAULT_API_DIR};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a275_0x1acdd3(0x18d);
|
package/lib/constant/domain.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a276_0xe88e24=a276_0x516f;(function(_0x25c2b3,_0x55445a){const _0x47a687=a276_0x516f,_0x22b3f5=_0x25c2b3();while(!![]){try{const _0x10485b=-parseInt(_0x47a687(0x178))/0x1+parseInt(_0x47a687(0x188))/0x2+-parseInt(_0x47a687(0x194))/0x3*(-parseInt(_0x47a687(0x193))/0x4)+parseInt(_0x47a687(0x195))/0x5*(-parseInt(_0x47a687(0x181))/0x6)+-parseInt(_0x47a687(0x186))/0x7*(parseInt(_0x47a687(0x179))/0x8)+parseInt(_0x47a687(0x17c))/0x9*(parseInt(_0x47a687(0x185))/0xa)+parseInt(_0x47a687(0x17e))/0xb;if(_0x10485b===_0x55445a)break;else _0x22b3f5['push'](_0x22b3f5['shift']());}catch(_0x209495){_0x22b3f5['push'](_0x22b3f5['shift']());}}}(a276_0x37b8,0x5b743));import{getEnv,isProduction}from'../constant/env.js';import{DEFAULT_LOVRABET_REGION}from'../constant/region.js';import{getOfficialRoutingCdn,getOfficialRoutingProfile}from'../constant/routing-profile.js';let customApiDomain,customUserDomain,customRuntimeDomain,customSkillDomain,customKbDomain,customKbServiceDomain,allowOfficialKbServiceDefault=!![],customAppDomain,customLocalDomain,customCertificateDomain,customCdn,activeRegion=DEFAULT_LOVRABET_REGION;function getActiveRegionDomains(){const _0x4a9aab=a276_0x516f,_0x16ab02=getOfficialRoutingProfile(activeRegion);return isProduction(getEnv())?_0x16ab02[_0x4a9aab(0x17b)]['production']:_0x16ab02[_0x4a9aab(0x17b)][_0x4a9aab(0x190)]??_0x16ab02[_0x4a9aab(0x17b)][_0x4a9aab(0x18b)];}export function initDomains(_0x1b17a0){const _0x475dcc=a276_0x516f;customApiDomain=_0x1b17a0?.['apiDomain'],customUserDomain=_0x1b17a0?.[_0x475dcc(0x17a)],customRuntimeDomain=_0x1b17a0?.['runtimeDomain'],customSkillDomain=_0x1b17a0?.[_0x475dcc(0x180)],customKbDomain=_0x1b17a0?.['kbDomain'],customKbServiceDomain=_0x1b17a0?.[_0x475dcc(0x17f)],allowOfficialKbServiceDefault=_0x1b17a0?.['allowOfficialKbServiceDefault']??!![],customAppDomain=_0x1b17a0?.[_0x475dcc(0x18f)],customLocalDomain=_0x1b17a0?.['localDomain'],customCertificateDomain=_0x1b17a0?.[_0x475dcc(0x191)],customCdn=_0x1b17a0?.[_0x475dcc(0x18c)],activeRegion=_0x1b17a0?.[_0x475dcc(0x187)]??DEFAULT_LOVRABET_REGION;}export const getUserDomain=()=>customUserDomain||getActiveRegionDomains()[a276_0xe88e24(0x18a)];export const getApiDomain=()=>customApiDomain||getActiveRegionDomains()[a276_0xe88e24(0x177)];export const getRuntimeDomain=()=>customRuntimeDomain||getActiveRegionDomains()[a276_0xe88e24(0x192)];export const getSkillDomain=()=>customSkillDomain||getActiveRegionDomains()[a276_0xe88e24(0x184)];export const getKbDomain=()=>customKbDomain||customApiDomain||getActiveRegionDomains()['kb'];export const getKbServiceDomain=()=>{const _0xd96860=a276_0xe88e24;if(customKbServiceDomain)return customKbServiceDomain;if(!allowOfficialKbServiceDefault)return undefined;return getActiveRegionDomains()[_0xd96860(0x189)];};export const getAppDomain=()=>customAppDomain||getActiveRegionDomains()[a276_0xe88e24(0x18e)];export const getActiveRegion=()=>activeRegion;function a276_0x37b8(){const _0x4fd89e=['cdn','/app/','app','appDomain','daily','certificateDomain','runtime','37304PNnIaE','225xxccfv','35RWKama','api','595914PHswtk','87792oDZQQR','userDomain','serviceDomains','6061059OOAVQw','origin','5022952agArRk','kbServiceDomain','skillDomain','433770kjVABd','hostname','trim','skill','10DyhRXC','378wmdSQa','region','479274STLPgk','kbService','user','production'];a276_0x37b8=function(){return _0x4fd89e;};return a276_0x37b8();}export const getLocalDomain=()=>customLocalDomain;export const getCertificateDomain=()=>customCertificateDomain;export const getActiveCdn=()=>customCdn||getOfficialRoutingCdn(activeRegion);export function isIndependentDeployment(){return!!(customApiDomain||customUserDomain||customRuntimeDomain||customSkillDomain||customKbDomain||customAppDomain||customLocalDomain||customCertificateDomain);}export function getSdkClientRoutingConfig(){if(customRuntimeDomain&&customRuntimeDomain!==getActiveRegionDomains()['runtime'])return{'runtimeDomain':customRuntimeDomain};if(activeRegion!==DEFAULT_LOVRABET_REGION)return{'runtimeDomain':getRuntimeDomain()};return{};}export const getAppBaseUrl=_0x13ac59=>{const _0xe0fe5d=a276_0xe88e24,_0x694b1a=encodeURIComponent(_0x13ac59[_0xe0fe5d(0x183)]());return isProduction(getEnv())?getAppDomain()+_0xe0fe5d(0x18d)+_0x694b1a:getAppDomain()+'/web-app/app/'+_0x694b1a;};function a276_0x516f(_0x66ebd1,_0x324d4b){_0x66ebd1=_0x66ebd1-0x177;const _0x37b8b9=a276_0x37b8();let _0x516fed=_0x37b8b9[_0x66ebd1];return _0x516fed;}export const getPublishedAppDomain=_0x3faebf=>{const _0x219090=a276_0xe88e24,_0x39b4c2=new URL(getAppDomain());return _0x39b4c2['hostname']=_0x3faebf[_0x219090(0x183)]()+'.'+_0x39b4c2[_0x219090(0x182)],_0x39b4c2[_0x219090(0x17d)];};
|
package/lib/constant/env.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a277_0xa004a=a277_0x5226;(function(_0x525f82,_0x100a5b){const _0x4ed8b6=a277_0x5226,_0x56c616=_0x525f82();while(!![]){try{const _0x1a7f4e=parseInt(_0x4ed8b6(0x1ba))/0x1+-parseInt(_0x4ed8b6(0x1b9))/0x2*(parseInt(_0x4ed8b6(0x1b4))/0x3)+parseInt(_0x4ed8b6(0x1b8))/0x4*(-parseInt(_0x4ed8b6(0x1c2))/0x5)+-parseInt(_0x4ed8b6(0x1b5))/0x6+-parseInt(_0x4ed8b6(0x1c0))/0x7+parseInt(_0x4ed8b6(0x1bb))/0x8+parseInt(_0x4ed8b6(0x1bd))/0x9*(parseInt(_0x4ed8b6(0x1bc))/0xa);if(_0x1a7f4e===_0x100a5b)break;else _0x56c616['push'](_0x56c616['shift']());}catch(_0x20d080){_0x56c616['push'](_0x56c616['shift']());}}}(a277_0xbc36,0x4fe3e));export const RABETBASE_ENV_VALUES=[a277_0xa004a(0x1c1),'daily'];export function normalizeEnv(_0x3d46b7){const _0x2d7379=a277_0xa004a;return _0x3d46b7===_0x2d7379(0x1b6)?_0x2d7379(0x1c1):_0x3d46b7;}export function isProduction(_0x349ac4){const _0x2a7c48=a277_0xa004a;return normalizeEnv(_0x349ac4)===_0x2a7c48(0x1c1);}export function isDaily(_0x12d381){const _0x33ebe9=a277_0xa004a;return normalizeEnv(_0x12d381)===_0x33ebe9(0x1b7);}export function isDev(_0x4068be){const _0x919e70=a277_0xa004a,_0x2841ef=normalizeEnv(_0x4068be);return _0x2841ef===_0x919e70(0x1bf)||_0x2841ef===_0x919e70(0x1be);}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||'production');function a277_0xbc36(){const _0x1c3651=['2724757ckfUOf','production','6985wfOTYz','9amiUhI','2862402UCrCJQ','online','daily','1688AKQDKO','194850ZSUnJi','434124YQAKOn','1515264rnSLMW','250NmpuVw','522657ZUWAbJ','dev','development'];a277_0xbc36=function(){return _0x1c3651;};return a277_0xbc36();}export function getEnv(){return env;}function a277_0x5226(_0x2e9ded,_0x34424f){_0x2e9ded=_0x2e9ded-0x1b4;const _0xbc3608=a277_0xbc36();let _0x5226a3=_0xbc3608[_0x2e9ded];return _0x5226a3;}export function initEnv(_0x385865){env=normalizeEnv(_0x385865);}
|
package/lib/constant/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a278_0x497188=a278_0x4322;function a278_0x1fc1(){const _0x9d29b6=['2716545GqdMZH','3667011XzLGIJ','8myTqKb','260919mvQCDB','6308xSdloZ','12NAuCcX','6030404glDngT','2131199WrMtgD','166TCXQBW','25961045dDBgsP','590AiLxGK','18DtftxT','json','pretty'];a278_0x1fc1=function(){return _0x9d29b6;};return a278_0x1fc1();}(function(_0x3cf215,_0x49d392){const _0x4b8b29=a278_0x4322,_0x121f16=_0x3cf215();while(!![]){try{const _0x1618a1=parseInt(_0x4b8b29(0xc7))/0x1*(-parseInt(_0x4b8b29(0xd1))/0x2)+parseInt(_0x4b8b29(0xce))/0x3+parseInt(_0x4b8b29(0xc5))/0x4+-parseInt(_0x4b8b29(0xcd))/0x5*(parseInt(_0x4b8b29(0xca))/0x6)+parseInt(_0x4b8b29(0xc6))/0x7*(-parseInt(_0x4b8b29(0xcf))/0x8)+-parseInt(_0x4b8b29(0xd0))/0x9*(parseInt(_0x4b8b29(0xc9))/0xa)+-parseInt(_0x4b8b29(0xc8))/0xb*(-parseInt(_0x4b8b29(0xc4))/0xc);if(_0x1618a1===_0x49d392)break;else _0x121f16['push'](_0x121f16['shift']());}catch(_0xeb04d0){_0x121f16['push'](_0x121f16['shift']());}}}(a278_0x1fc1,0xe1010));function a278_0x4322(_0x2af456,_0x1fac23){_0x2af456=_0x2af456-0xc4;const _0x1fc1dc=a278_0x1fc1();let _0x432290=_0x1fc1dc[_0x2af456];return _0x432290;}export const RABETBASE_OUTPUT_FORMAT_VALUES=[a278_0x497188(0xcb),a278_0x497188(0xcc),'compress'];
|