@lovrabet/rabetbase-cli 2.5.12-beta.1 → 2.5.13-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api/api-doc.js +1 -1
- package/lib/api/api-group.js +1 -1
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.js +1 -1
- package/lib/api/generate-sdk-config-file.js +1 -1
- package/lib/api/legacy-api-file.js +1 -1
- package/lib/api/model-registry-file.js +1 -1
- package/lib/api/model-registry-scaffold.js +1 -1
- package/lib/api/model-source.js +1 -1
- package/lib/auth/auth-server-ui.js +1 -1
- package/lib/auth/auth-server.js +1 -1
- package/lib/auth/constant.js +1 -1
- package/lib/auth/get-cookie.js +1 -1
- package/lib/auth/get-session-user.js +1 -1
- package/lib/auth/is-session-valid.js +1 -1
- package/lib/auth/login-success-html.js +1 -1
- package/lib/auth/logout.js +1 -1
- package/lib/cli-flags.js +1 -1
- package/lib/cli.js +1 -1
- package/lib/commands/api/generate.js +1 -1
- package/lib/commands/api/index.js +1 -1
- package/lib/commands/api/list.js +1 -1
- package/lib/commands/api/pull.js +1 -1
- package/lib/commands/api/shared.js +1 -1
- package/lib/commands/app/detail.js +1 -1
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/members-list.js +1 -1
- package/lib/commands/app/remote-directory.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/delete.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/app-config/list.js +1 -1
- package/lib/commands/app-config/set.js +1 -1
- package/lib/commands/app-config/shared.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/bff/create.js +1 -1
- package/lib/commands/bff/delete.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/bff/list.js +1 -1
- package/lib/commands/bff/logs.js +1 -1
- package/lib/commands/bff/pull.js +1 -1
- package/lib/commands/bff/push.js +1 -1
- package/lib/commands/bff/status.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/cli-update.js +1 -1
- package/lib/commands/codegen/index.js +1 -1
- package/lib/commands/codegen/sdk.js +1 -1
- package/lib/commands/codegen/sql.js +1 -1
- package/lib/commands/common/app-registry.js +1 -1
- package/lib/commands/common/app-selector.js +1 -1
- package/lib/commands/common/async-task.js +1 -1
- package/lib/commands/common/dry-run.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/common/validate.js +1 -1
- package/lib/commands/config/delete.js +1 -1
- package/lib/commands/config/get.js +1 -1
- package/lib/commands/config/index.js +1 -1
- package/lib/commands/config/init.js +1 -1
- package/lib/commands/config/list.js +1 -1
- package/lib/commands/config/set.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/dataset/batch-design.js +1 -1
- package/lib/commands/dataset/business-group-update.js +1 -1
- package/lib/commands/dataset/business-groups.js +1 -1
- package/lib/commands/dataset/capability.js +1 -1
- package/lib/commands/dataset/cross-relation-create.js +1 -1
- package/lib/commands/dataset/cross-relation-delete.js +1 -1
- package/lib/commands/dataset/cross-relation-list.js +1 -1
- package/lib/commands/dataset/cross-relation-shared.js +1 -1
- package/lib/commands/dataset/cross-relation-update.js +1 -1
- package/lib/commands/dataset/delete.js +1 -1
- package/lib/commands/dataset/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 +1 -1
- package/skills/rabetbase/SKILL.md +1 -1
- package/skills/rabetbase/guides/custom-page-workflow.md +32 -2
- package/skills/rabetbase/knowledge/custom-page/generation-standards.md +106 -6
- 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
- package/templates/custom-pages/blank.json +1 -1
- package/templates/custom-pages/dashboard.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a261_0x3ae6(){const _0x1de5a9=['string','members-list','tenant','9bklmqO','Found\x20','Exact\x20tenant\x20code','28484dCMLpW','tenant-code','230100IBUSSm','trim','41YactNc','137103XWfbNH','486607PQeSZP','length','125pPnnQj','flagMissing','Pass\x20--tenant-code\x20<code>.','332768FWGCRk','58hQEmDy','2022130kGyNCC','str','48ZWQjKq','7ERNHnr'];a261_0x3ae6=function(){return _0x1de5a9;};return a261_0x3ae6();}const a261_0x1c3b08=a261_0x300e;(function(_0x287252,_0x16cca5){const _0x8bd742=a261_0x300e,_0x2ecb52=_0x287252();while(!![]){try{const _0x4d0693=parseInt(_0x8bd742(0x6d))/0x1*(-parseInt(_0x8bd742(0x75))/0x2)+-parseInt(_0x8bd742(0x6e))/0x3+parseInt(_0x8bd742(0x69))/0x4*(parseInt(_0x8bd742(0x71))/0x5)+parseInt(_0x8bd742(0x6b))/0x6+parseInt(_0x8bd742(0x79))/0x7*(-parseInt(_0x8bd742(0x74))/0x8)+-parseInt(_0x8bd742(0x7d))/0x9*(parseInt(_0x8bd742(0x76))/0xa)+parseInt(_0x8bd742(0x6f))/0xb*(parseInt(_0x8bd742(0x78))/0xc);if(_0x4d0693===_0x16cca5)break;else _0x2ecb52['push'](_0x2ecb52['shift']());}catch(_0x16074b){_0x2ecb52['push'](_0x2ecb52['shift']());}}}(a261_0x3ae6,0x190e0));import{listCurrentUserTenantMemberships,listTenantDirectoryMembers}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{assertTenantAccessible,projectTenantMembers}from'../../commands/tenant/shared.js';function a261_0x300e(_0x41c547,_0x120a59){_0x41c547=_0x41c547-0x67;const _0x3ae6ed=a261_0x3ae6();let _0x300e08=_0x3ae6ed[_0x41c547];return _0x300e08;}export const tenantMembersListDefinition={'service':a261_0x1c3b08(0x7c),'command':a261_0x1c3b08(0x7b),'description':'List\x20members\x20of\x20a\x20tenant\x20available\x20to\x20the\x20current\x20account','risk':'read','requiresAuth':!![],'requiresAppCode':![],'structuredErrors':!![],'flags':[{'name':'tenant-code','type':a261_0x1c3b08(0x7a),'required':!![],'description':a261_0x1c3b08(0x68)}],async 'validate'(_0x5484e9){const _0x2ba8a5=a261_0x1c3b08;if(!_0x5484e9[_0x2ba8a5(0x77)](_0x2ba8a5(0x6a))[_0x2ba8a5(0x6c)]())throw CliErrors[_0x2ba8a5(0x72)](_0x2ba8a5(0x6a),_0x2ba8a5(0x73));},async 'execute'(_0x58c965){const _0xc951a4=a261_0x1c3b08,_0x37b981=_0x58c965[_0xc951a4(0x77)]('tenant-code')[_0xc951a4(0x6c)](),_0x19f7d8=await listCurrentUserTenantMemberships();assertTenantAccessible(_0x37b981,_0x19f7d8);const _0x34ed0e=projectTenantMembers(await listTenantDirectoryMembers(_0x37b981));return{'ok':!![],'data':{'tenantCode':_0x37b981,'items':_0x34ed0e,'totalCount':_0x34ed0e[_0xc951a4(0x70)]},'message':_0xc951a4(0x67)+_0x34ed0e['length']+'\x20tenant\x20member(s)'};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4e135d,_0x2e582f){const _0x261910=a262_0xc1c6,_0x2ff4c1=_0x4e135d();while(!![]){try{const _0x4eb13c=-parseInt(_0x261910(0x1c4))/0x1+-parseInt(_0x261910(0x1b3))/0x2+parseInt(_0x261910(0x1c9))/0x3*(parseInt(_0x261910(0x1bd))/0x4)+parseInt(_0x261910(0x1c0))/0x5*(parseInt(_0x261910(0x1c7))/0x6)+-parseInt(_0x261910(0x1b7))/0x7+parseInt(_0x261910(0x1b9))/0x8*(parseInt(_0x261910(0x1b5))/0x9)+parseInt(_0x261910(0x1ca))/0xa*(parseInt(_0x261910(0x1c3))/0xb);if(_0x4eb13c===_0x2e582f)break;else _0x2ff4c1['push'](_0x2ff4c1['shift']());}catch(_0x4abed8){_0x2ff4c1['push'](_0x2ff4c1['shift']());}}}(a262_0x24b3,0x6b57c));function a262_0x24b3(){const _0x1ed5a4=['\x22\x20is\x20not\x20available\x20to\x20the\x20current\x20account.','28628KUEbYk','userId','171qIUFkP','tenantCode','3858190EwUSDf','set','4328vdOtaK','status','sort','trim','8zxpsjd','Check\x20--tenant-code\x20or\x20login\x20with\x20an\x20account\x20that\x20belongs\x20to\x20this\x20tenant.','ADMIN','5kGSgrJ','username','displayName','121ABQFIi','661831hYKHlE','validation','values','98508MMbioN','adminFlag','601551gPihgt','1126600dvOCNS','MEMBER','role'];a262_0x24b3=function(){return _0x1ed5a4;};return a262_0x24b3();}import{CliErrors}from'../../errors.js';function textOrNull(_0x2d7373){const _0x429c9d=a262_0xc1c6,_0x3b1c0c=_0x2d7373?.[_0x429c9d(0x1bc)]();return _0x3b1c0c?_0x3b1c0c:null;}function a262_0xc1c6(_0x13fbef,_0x23c58d){_0x13fbef=_0x13fbef-0x1b0;const _0x24b394=a262_0x24b3();let _0xc1c6d7=_0x24b394[_0x13fbef];return _0xc1c6d7;}export function projectTenantMembers(_0x59017a){const _0x2a1631=a262_0xc1c6,_0xb96207=new Map();for(const _0x3b945b of _0x59017a){const _0x42f96f=Number(_0x3b945b[_0x2a1631(0x1b4)]);if(!Number['isFinite'](_0x42f96f)||_0x42f96f<=0x0)continue;const _0x208f86={'userId':_0x42f96f,'username':textOrNull(_0x3b945b[_0x2a1631(0x1c1)]),'displayName':textOrNull(_0x3b945b['nickname']),'role':_0x3b945b[_0x2a1631(0x1c8)]===!![]?_0x2a1631(0x1bf):_0x2a1631(0x1b0),'status':textOrNull(_0x3b945b[_0x2a1631(0x1ba)])},_0x38b00f=_0xb96207['get'](_0x42f96f);if(!_0x38b00f){_0xb96207[_0x2a1631(0x1b8)](_0x42f96f,_0x208f86);continue;}_0x38b00f[_0x2a1631(0x1c1)]??=_0x208f86[_0x2a1631(0x1c1)],_0x38b00f[_0x2a1631(0x1c2)]??=_0x208f86[_0x2a1631(0x1c2)],_0x38b00f[_0x2a1631(0x1ba)]??=_0x208f86['status'];if(_0x208f86[_0x2a1631(0x1b1)]===_0x2a1631(0x1bf))_0x38b00f[_0x2a1631(0x1b1)]=_0x2a1631(0x1bf);}return[..._0xb96207[_0x2a1631(0x1c6)]()][_0x2a1631(0x1bb)]((_0x52e2ec,_0x46a32f)=>_0x52e2ec[_0x2a1631(0x1b4)]-_0x46a32f[_0x2a1631(0x1b4)]);}export function assertTenantAccessible(_0x4dae8e,_0x50d12b){const _0x3ee469=a262_0xc1c6;if(_0x50d12b['some'](_0x474e33=>_0x474e33[_0x3ee469(0x1b6)]===_0x4dae8e))return;throw CliErrors[_0x3ee469(0x1c5)]('Tenant\x20\x22'+_0x4dae8e+_0x3ee469(0x1b2),_0x3ee469(0x1be));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a263_0x2dd62c=a263_0x45f8;(function(_0x5b6981,_0x26a73d){const _0x2478fb=a263_0x45f8,_0x3320f1=_0x5b6981();while(!![]){try{const _0xa7fa8d=parseInt(_0x2478fb(0x91))/0x1*(parseInt(_0x2478fb(0x8a))/0x2)+-parseInt(_0x2478fb(0x7a))/0x3+-parseInt(_0x2478fb(0x90))/0x4*(-parseInt(_0x2478fb(0x8f))/0x5)+-parseInt(_0x2478fb(0x80))/0x6+parseInt(_0x2478fb(0x7d))/0x7+-parseInt(_0x2478fb(0x87))/0x8*(-parseInt(_0x2478fb(0x88))/0x9)+-parseInt(_0x2478fb(0x83))/0xa;if(_0xa7fa8d===_0x26a73d)break;else _0x3320f1['push'](_0x3320f1['shift']());}catch(_0x74a20a){_0x3320f1['push'](_0x3320f1['shift']());}}}(a263_0x446a,0x6c61d));function a263_0x446a(){const _0x595a6c=['trim','bind','1702146wpaydl','validation','user-account','11934580wdKsmf','Retry\x20with\x20the\x20same\x20--ding-talk-user-id\x20only\x20after\x20checking\x20the\x20current\x20platform\x20session.','ding-talk-user-id','Bind\x20the\x20current\x20platform\x20user\x20to\x20a\x20DingTalk\x20sandbox\x20account','4279752lUWMDM','9gvkHMz','apiError','60728IrLfKI','POST','write','DingTalk\x20user\x20id\x20returned\x20by\x20the\x20sandbox','string','53215YnOjIh','276aOnFnx','9CSvTam','--ding-talk-user-id\x20cannot\x20be\x20empty.','dingding-sandbox-bind','1165122kzgaiX','DingTalk\x20sandbox\x20account\x20binding\x20was\x20not\x20confirmed.','Bound\x20current\x20user\x20to\x20DingTalk\x20sandbox\x20account.','5367908jDSibN'];a263_0x446a=function(){return _0x595a6c;};return a263_0x446a();}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='dingtalk',CURRENT_BINDING_WARNING='The\x20current\x20binding\x20is\x20not\x20exposed\x20by\x20the\x20server;\x20before\x20is\x20unavailable.';function readDingTalkUserId(_0x114150){const _0x4e7233=a263_0x45f8,_0x50f237=_0x114150['str'](_0x4e7233(0x85))[_0x4e7233(0x7e)]();if(!_0x50f237)throw CliErrors[_0x4e7233(0x81)](_0x4e7233(0x92),'Pass\x20the\x20DingTalk\x20user\x20id\x20returned\x20by\x20the\x20sandbox.');return _0x50f237;}function a263_0x45f8(_0x3557e7,_0x2ba5f4){_0x3557e7=_0x3557e7-0x7a;const _0x446a91=a263_0x446a();let _0x45f8f3=_0x446a91[_0x3557e7];return _0x45f8f3;}function buildBindingData(_0x35d3b1,_0x59dfd8){const _0x543729=a263_0x45f8;return{'operation':_0x543729(0x7f),'selector':{'providerId':PROVIDER_ID,'dingTalkUserId':_0x35d3b1},'before':null,'after':{'providerId':PROVIDER_ID,'dingTalkUserId':_0x35d3b1,'bound':!![]},'dryRun':_0x59dfd8,'backend':{'method':_0x543729(0x8b),'path':DING_TALK_SANDBOX_BIND_PATH},'warnings':[CURRENT_BINDING_WARNING]};}export const dingTalkSandboxBind={'service':a263_0x2dd62c(0x82),'command':a263_0x2dd62c(0x93),'description':a263_0x2dd62c(0x86),'risk':a263_0x2dd62c(0x8c),'requiresAuth':!![],'requiresAppCode':![],'structuredErrors':!![],'flags':[{'name':'ding-talk-user-id','type':a263_0x2dd62c(0x8e),'required':!![],'description':a263_0x2dd62c(0x8d)}],async 'validate'(_0x216975){readDingTalkUserId(_0x216975);},async 'dryRun'(_0x5c6eae){const _0x4de9f7=a263_0x2dd62c,_0xbe4e56=readDingTalkUserId(_0x5c6eae);return asDryRunResult(buildBindingData(_0xbe4e56,!![]),{'method':_0x4de9f7(0x8b),'url':DING_TALK_SANDBOX_BIND_PATH});},async 'execute'(_0x136920){const _0x58228c=a263_0x2dd62c,_0x3078f3=readDingTalkUserId(_0x136920),_0x15e82f=await bindDingTalkSandboxAccount(_0x3078f3);if(_0x15e82f!==!![])throw CliErrors[_0x58228c(0x89)](_0x58228c(0x7b),_0x58228c(0x84));return{'ok':!![],'data':buildBindingData(_0x3078f3,![]),'message':_0x58228c(0x7c)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a264_0x1a1d91=a264_0x57b7;(function(_0x143913,_0x8ad0f5){const _0x5289eb=a264_0x57b7,_0x47e6a3=_0x143913();while(!![]){try{const _0x111a38=-parseInt(_0x5289eb(0x96))/0x1+parseInt(_0x5289eb(0x9a))/0x2+-parseInt(_0x5289eb(0x9c))/0x3+parseInt(_0x5289eb(0x98))/0x4+-parseInt(_0x5289eb(0xa3))/0x5+parseInt(_0x5289eb(0x92))/0x6*(parseInt(_0x5289eb(0x94))/0x7)+parseInt(_0x5289eb(0x93))/0x8;if(_0x111a38===_0x8ad0f5)break;else _0x47e6a3['push'](_0x47e6a3['shift']());}catch(_0x15ac69){_0x47e6a3['push'](_0x47e6a3['shift']());}}}(a264_0x56cf,0xce290));function a264_0x56cf(){const _0x2f818e=['Feishu\x20union_id\x20for\x20the\x20configured\x20Feishu\x20application\x20developer','3298287ChjwKM','validation','POST','trim','write','Feishu\x20account\x20binding\x20was\x20not\x20confirmed.','Bind\x20the\x20current\x20platform\x20user\x20to\x20a\x20Feishu\x20account','2926275CcGoBs','test','Verify\x20the\x20current\x20binding\x20through\x20the\x20platform\x20before\x20explicitly\x20retrying;\x20do\x20not\x20automatically\x20retry.','The\x20current\x20binding\x20is\x20not\x20exposed\x20by\x20the\x20server;\x20before\x20is\x20unavailable.','bind','apiError','union-id','Bound\x20current\x20user\x20to\x20Feishu\x20account.','user-account','1295484NREaBE','9709712tOIXzR','21CMbDZO','--union-id\x20must\x20match\x20on_\x20followed\x20by\x20letters,\x20digits,\x20underscores,\x20or\x20hyphens.','1364747CBlkdB','feishu-bind','5310944bTJRxn','string','1409342gtJAGV'];a264_0x56cf=function(){return _0x2f818e;};return a264_0x56cf();}import{asDryRunResult}from'../../commands/common/dry-run.js';import{bindFeishuAccount,FEISHU_BIND_PATH}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a264_0x57b7(_0x42192f,_0x2bc144){_0x42192f=_0x42192f-0x8d;const _0x56cfa2=a264_0x56cf();let _0x57b724=_0x56cfa2[_0x42192f];return _0x57b724;}const PROVIDER_ID='feishu',CURRENT_BINDING_WARNING=a264_0x1a1d91(0xa6);function readUnionId(_0x2f7be0){const _0x345f35=a264_0x1a1d91,_0x2723fe=_0x2f7be0['str'](_0x345f35(0x8f))[_0x345f35(0x9f)]();if(!/^on_[A-Za-z0-9_-]+$/[_0x345f35(0xa4)](_0x2723fe))throw CliErrors[_0x345f35(0x9d)](_0x345f35(0x95),'Pass\x20a\x20Feishu\x20union\x20id\x20such\x20as\x20on_example_001.');return _0x2723fe;}function buildBindingData(_0x23bd9a,_0x3d37a3){const _0x221d32=a264_0x1a1d91;return{'operation':_0x221d32(0x8d),'selector':{'providerId':PROVIDER_ID,'unionId':_0x23bd9a},'before':null,'after':{'providerId':PROVIDER_ID,'unionId':_0x23bd9a,'bound':!![]},'dryRun':_0x3d37a3,'backend':{'method':_0x221d32(0x9e),'path':FEISHU_BIND_PATH},'warnings':[CURRENT_BINDING_WARNING]};}export const feishuBind={'service':a264_0x1a1d91(0x91),'command':a264_0x1a1d91(0x97),'description':a264_0x1a1d91(0xa2),'risk':a264_0x1a1d91(0xa0),'requiresAuth':!![],'requiresAppCode':![],'structuredErrors':!![],'flags':[{'name':'union-id','type':a264_0x1a1d91(0x99),'required':!![],'description':a264_0x1a1d91(0x9b)}],async 'validate'(_0x94710){readUnionId(_0x94710);},async 'dryRun'(_0x204b21){const _0x5a8659=a264_0x1a1d91,_0x527931=readUnionId(_0x204b21);return asDryRunResult(buildBindingData(_0x527931,!![]),{'method':_0x5a8659(0x9e),'url':FEISHU_BIND_PATH});},async 'execute'(_0x1a0300){const _0x43bc89=a264_0x1a1d91,_0x1d8a2a=readUnionId(_0x1a0300),_0x4629e0=await bindFeishuAccount(_0x1d8a2a);if(_0x4629e0!==!![])throw CliErrors[_0x43bc89(0x8e)](_0x43bc89(0xa1),_0x43bc89(0xa5));return{'ok':!![],'data':buildBindingData(_0x1d8a2a,![]),'message':_0x43bc89(0x90)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x349b04,_0x54c1a9){const _0x2719a0=a265_0x7d66,_0x448781=_0x349b04();while(!![]){try{const _0x3a159f=parseInt(_0x2719a0(0x134))/0x1*(-parseInt(_0x2719a0(0x131))/0x2)+parseInt(_0x2719a0(0x133))/0x3+parseInt(_0x2719a0(0x12b))/0x4*(-parseInt(_0x2719a0(0x130))/0x5)+-parseInt(_0x2719a0(0x12e))/0x6*(-parseInt(_0x2719a0(0x12f))/0x7)+-parseInt(_0x2719a0(0x12c))/0x8+-parseInt(_0x2719a0(0x12d))/0x9*(-parseInt(_0x2719a0(0x135))/0xa)+parseInt(_0x2719a0(0x132))/0xb*(parseInt(_0x2719a0(0x136))/0xc);if(_0x3a159f===_0x54c1a9)break;else _0x448781['push'](_0x448781['shift']());}catch(_0x10b6e4){_0x448781['push'](_0x448781['shift']());}}}(a265_0x5602,0xb7993));function a265_0x7d66(_0x246588,_0x4b526d){_0x246588=_0x246588-0x12b;const _0x560280=a265_0x5602();let _0x7d668f=_0x560280[_0x246588];return _0x7d668f;}import{dingTalkSandboxBind}from'../../commands/user-account/dingding-sandbox-bind.js';import{feishuBind}from'../../commands/user-account/feishu-bind.js';export const userAccountDefinitions=[dingTalkSandboxBind,feishuBind];function a265_0x5602(){const _0x484f6e=['1aPeAno','10ndsPss','42492SMBruT','404lJAkkc','196504KnrSGS','7725762rTSjEr','81246JSifCT','301PJouSF','52655isicJH','1896166ENZBiI','2640MgcMsr','1493325uHYJnC'];a265_0x5602=function(){return _0x484f6e;};return a265_0x5602();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a266_0x5ac617=a266_0x1ac2;(function(_0x4a0eb9,_0x183db7){const _0x4cb039=a266_0x1ac2,_0x36126f=_0x4a0eb9();while(!![]){try{const _0x915222=parseInt(_0x4cb039(0x6e))/0x1+parseInt(_0x4cb039(0x6f))/0x2*(parseInt(_0x4cb039(0x78))/0x3)+parseInt(_0x4cb039(0x74))/0x4+-parseInt(_0x4cb039(0x6d))/0x5*(-parseInt(_0x4cb039(0x70))/0x6)+parseInt(_0x4cb039(0x69))/0x7*(-parseInt(_0x4cb039(0x76))/0x8)+-parseInt(_0x4cb039(0x6a))/0x9+parseInt(_0x4cb039(0x71))/0xa;if(_0x915222===_0x183db7)break;else _0x36126f['push'](_0x36126f['shift']());}catch(_0x50d93b){_0x36126f['push'](_0x36126f['shift']());}}}(a266_0x298f,0x1e27f));import{buildAppAddFlags,runAppAdd,validateAppName}from'../../commands/common/app-registry.js';export const workspaceAddDefinition={'service':a266_0x5ac617(0x77),'command':a266_0x5ac617(0x73),'description':a266_0x5ac617(0x75),'risk':'write','requiresAuth':![],'requiresAppCode':![],'args':[{'name':a266_0x5ac617(0x6c),'description':a266_0x5ac617(0x72),'required':!![]}],'flags':buildAppAddFlags(),'validate':_0x220727=>validateAppName(_0x220727,'workspace\x20add'),'execute':_0x58f7f8=>runAppAdd(_0x58f7f8,a266_0x5ac617(0x6b))};function a266_0x1ac2(_0x494c3a,_0x38b592){_0x494c3a=_0x494c3a-0x69;const _0x298f10=a266_0x298f();let _0x1ac294=_0x298f10[_0x494c3a];return _0x1ac294;}function a266_0x298f(){const _0x374943=['App\x20profile\x20name','add','341112HEnHkb','Register\x20an\x20app\x20profile\x20in\x20the\x20current\x20workspace\x20(or\x20--global)','1847264kKrVkj','workspace','3vnlpCU','7aUJBnP','2088702UVnBEs','workspace\x20add','name','1840zCxtzq','139675GjpZBV','57262mHlzvH','3402gcDFAG','1242650gzfCWt'];a266_0x298f=function(){return _0x374943;};return a266_0x298f();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a267_0x1bde60=a267_0x1342;(function(_0x37babb,_0x42deb8){const _0x36f14a=a267_0x1342,_0x59fefb=_0x37babb();while(!![]){try{const _0x50e871=parseInt(_0x36f14a(0x9b))/0x1+-parseInt(_0x36f14a(0x7d))/0x2*(-parseInt(_0x36f14a(0x8e))/0x3)+parseInt(_0x36f14a(0x97))/0x4*(-parseInt(_0x36f14a(0x9e))/0x5)+-parseInt(_0x36f14a(0x9f))/0x6*(parseInt(_0x36f14a(0x86))/0x7)+parseInt(_0x36f14a(0xa7))/0x8*(-parseInt(_0x36f14a(0xa4))/0x9)+parseInt(_0x36f14a(0x9c))/0xa*(parseInt(_0x36f14a(0xa6))/0xb)+-parseInt(_0x36f14a(0x7f))/0xc;if(_0x50e871===_0x42deb8)break;else _0x59fefb['push'](_0x59fefb['shift']());}catch(_0x624d4c){_0x59fefb['push'](_0x59fefb['shift']());}}}(a267_0x3e07,0x507ba));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{RABETBASE_ENV_VALUES}from'../../constant/env.js';import{RABETBASE_OUTPUT_FORMAT_VALUES}from'../../constant/output.js';import{RISK_LEVEL_VALUES}from'../../constant/risk.js';import{validateAppcode}from'../../commands/common/validate.js';import{readConfigFile,readRawConfigWithLayers,resolveWriteConfigPath,writeConfigFile}from'../../context.js';import{workspaceAddDefinition}from'../../commands/workspace/add.js';import{workspaceRemoveDefinition}from'../../commands/workspace/remove.js';import{normalizeStoredDefaultApp}from'../../config/schema.js';import{ENABLED_LOVRABET_REGION_VALUES}from'../../constant/region.js';const WORKSPACE_USAGE=CLI_BIN_NAME+a267_0x1bde60(0x79),SAFE_PROFILE_KEYS=['appcode',a267_0x1bde60(0x88),'region',a267_0x1bde60(0x73),a267_0x1bde60(0x98),a267_0x1bde60(0x90),'pageSize',a267_0x1bde60(0x8a),'locale'],workspaceFlags=[{'name':a267_0x1bde60(0x7c),'type':a267_0x1bde60(0x7b),'description':'App\x20profile\x20name\x20to\x20use\x20in\x20this\x20workspace'},{'name':a267_0x1bde60(0xa0),'type':a267_0x1bde60(0x7b),'description':'App\x20code\x20to\x20bind\x20to\x20this\x20workspace'},{'name':'apiGroup','type':a267_0x1bde60(0x7b),'description':a267_0x1bde60(0x99)},{'name':a267_0x1bde60(0x71),'type':'string','description':a267_0x1bde60(0x87),'enum':[...ENABLED_LOVRABET_REGION_VALUES]},{'name':'env','type':'string','description':a267_0x1bde60(0x94),'enum':[...RABETBASE_ENV_VALUES]},{'name':a267_0x1bde60(0x98),'type':a267_0x1bde60(0x7b),'description':a267_0x1bde60(0x82)},{'name':'defaultFormat','type':a267_0x1bde60(0x7b),'description':a267_0x1bde60(0x93),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':a267_0x1bde60(0x77),'type':a267_0x1bde60(0x7a),'description':a267_0x1bde60(0x8c)},{'name':a267_0x1bde60(0x8a),'type':a267_0x1bde60(0x7b),'description':'Risk\x20level\x20for\x20this\x20workspace\x20app\x20profile','enum':[...RISK_LEVEL_VALUES]},{'name':a267_0x1bde60(0xa5),'type':a267_0x1bde60(0x7b),'description':a267_0x1bde60(0x6b)}];function isRecord(_0x311fa0){return!!_0x311fa0&&typeof _0x311fa0==='object'&&!Array['isArray'](_0x311fa0);}function assertValidAppcode(_0x4119f1){const _0x48faf0=a267_0x1bde60,{valid:_0x4cfdbe,message:_0x567c4e}=validateAppcode(_0x4119f1);if(!_0x4cfdbe)throw CliErrors[_0x48faf0(0x7e)]('Invalid\x20appcode:\x20'+_0x4119f1,_0x567c4e);}function sanitizeProfile(_0xeccb4d){if(!isRecord(_0xeccb4d))return{};const _0x5d9c20={};for(const _0x5829f1 of SAFE_PROFILE_KEYS){if(_0xeccb4d[_0x5829f1]!==undefined)_0x5d9c20[_0x5829f1]=_0xeccb4d[_0x5829f1];}return _0x5d9c20;}function a267_0x1342(_0x4bf137,_0x23072c){_0x4bf137=_0x4bf137-0x6a;const _0x3e0723=a267_0x3e07();let _0x1342e4=_0x3e0723[_0x4bf137];return _0x1342e4;}function cloneProfile(_0xb3e90d){return isRecord(_0xb3e90d)?{..._0xb3e90d}:{};}function collectWorkspaceProfileOverrides(_0x5d442a){const _0x20743e=a267_0x1bde60,_0x31c814={},_0xa53d6c=_0x5d442a[_0x20743e(0xa9)](_0x20743e(0x88)),_0x871bfe=_0x5d442a[_0x20743e(0xa9)](_0x20743e(0x71)),_0xe9c25c=_0x5d442a[_0x20743e(0xa9)](_0x20743e(0x73)),_0x17930d=_0x5d442a[_0x20743e(0xa9)]('apiDir'),_0x4edd3d=_0x5d442a[_0x20743e(0xa9)](_0x20743e(0x6d)),_0x24a329=_0x5d442a[_0x20743e(0x78)](_0x20743e(0x77)),_0x3c2cee=_0x5d442a[_0x20743e(0xa9)]('riskLevel'),_0x22af8b=_0x5d442a[_0x20743e(0xa9)](_0x20743e(0xa5));if(_0xa53d6c)_0x31c814[_0x20743e(0x88)]=_0xa53d6c;if(_0x871bfe)_0x31c814[_0x20743e(0x71)]=_0x871bfe;if(_0xe9c25c)_0x31c814[_0x20743e(0x73)]=_0xe9c25c;if(_0x17930d)_0x31c814['apiDir']=_0x17930d;if(_0x4edd3d)_0x31c814[_0x20743e(0x90)]=_0x4edd3d;if(_0x24a329!==undefined&&_0x24a329!=='')_0x31c814[_0x20743e(0x77)]=Number(_0x24a329);if(_0x3c2cee)_0x31c814['riskLevel']=_0x3c2cee;if(_0x22af8b)_0x31c814[_0x20743e(0xa5)]=_0x22af8b;return _0x31c814;}function a267_0x3e07(){const _0x46bf96=['497XowXJr','Country/region\x20for\x20this\x20workspace\x20app\x20profile','apiGroup','workspace.','riskLevel','Switch\x20the\x20current\x20workspace\x20app\x20binding','Default\x20page\x20size\x20for\x20this\x20workspace\x20app\x20profile','initialized','1788942GteKBl','apps','format','join','updated','Default\x20output\x20format\x20for\x20this\x20workspace\x20app\x20profile','Target\x20environment','\x20workspace\x20','Pass\x20--appcode\x20<code>,\x20or\x20choose\x20one\x20of:\x20','4Ejmtcl','apiDir','Join\x20key\x20for\x20app\x20profiles\x20that\x20share\x20one\x20generated\x20API\x20model\x20registry','.\x20Credentials:\x20not\x20written.','354356lYisbr','30KKRYPf','\x20(appcode:\x20','1743800MCkkBz','20946scJVLO','appcode',').\x20Config:\x20','use','Use\x20`','9wwWewS','locale','1975116MQpfWs','539656AQsmEH','project','str','write','\x22\x20not\x20found.','App\x20locale\x20for\x20this\x20workspace\x20app\x20profile\x20(not\x20CLI\x20language;\x20reserved\x20for\x20later\x20app\x20use)','trim','defaultFormat','globalConfig','App\x20\x22','length','region','init','env','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20`','\x20workspace\x20use\x20--app\x20<name>`.','Workspace\x20','pageSize','flag','\x20workspace\x20<init|use>\x20--app\x20<name>\x20[--appcode\x20<code>]','number','string','app','2udUjSV','validation','5947224KHnlhs','\x20--appcode\x20<code>`.','Missing\x20workspace\x20app\x20selector.','API\x20directory\x20path\x20for\x20this\x20workspace\x20app\x20profile','workspace','\x20--app\x20','keys'];a267_0x3e07=function(){return _0x46bf96;};return a267_0x3e07();}async function validateWorkspaceArgs(_0x840e59){const _0x52261c=a267_0x1bde60,_0x128151=_0x840e59[_0x52261c(0xa9)]('app')[_0x52261c(0x6c)](),_0x1251f5=_0x840e59[_0x52261c(0xa9)]('appcode')[_0x52261c(0x6c)]();if(!_0x128151&&!_0x1251f5)throw CliErrors[_0x52261c(0x7e)](_0x52261c(0x81),_0x52261c(0xa3)+CLI_BIN_NAME+_0x52261c(0x74)+CLI_BIN_NAME+_0x52261c(0x75));if(_0x1251f5)assertValidAppcode(_0x1251f5);}function resolveKnownApps(){const _0x2b0b2f=a267_0x1bde60,{config:_0x36934a,layers:_0x4bc150}=readRawConfigWithLayers(),_0x4252ff=isRecord(_0x36934a['apps'])?_0x36934a[_0x2b0b2f(0x8f)]:{},_0x21f825=isRecord(_0x4bc150['globalConfig'][_0x2b0b2f(0x8f)])?_0x4bc150[_0x2b0b2f(0x6e)][_0x2b0b2f(0x8f)]:{};return{..._0x21f825,..._0x4252ff};}async function configureWorkspace(_0x2e72f3,_0x1281fd){const _0x35ce55=a267_0x1bde60,_0x30d82d=_0x2e72f3['str'](_0x35ce55(0x7c))[_0x35ce55(0x6c)](),_0x374754=_0x2e72f3[_0x35ce55(0xa9)]('appcode')[_0x35ce55(0x6c)](),_0x5ea46b=_0x30d82d||_0x374754;if(!_0x5ea46b)throw CliErrors['validation'](_0x35ce55(0x81),_0x35ce55(0xa3)+CLI_BIN_NAME+_0x35ce55(0x74)+CLI_BIN_NAME+_0x35ce55(0x75));if(_0x374754)assertValidAppcode(_0x374754);const _0x281bfc=resolveWriteConfigPath(_0x35ce55(0xa8)),_0x47ceb7=readConfigFile(_0x281bfc),_0x187b11=resolveKnownApps(),_0x27a08f=isRecord(_0x47ceb7['apps'])?{..._0x47ceb7[_0x35ce55(0x8f)]}:{},_0x4dee91=cloneProfile(_0x27a08f[_0x5ea46b]),_0x115f64=sanitizeProfile(_0x187b11[_0x5ea46b]),_0x4abcdc=_0x374754?{}:_0x115f64,_0x21695f=_0x374754||_0x4abcdc['appcode'];if(!_0x21695f){const _0x5ac82f=Object[_0x35ce55(0x85)](_0x187b11),_0x170614=_0x5ac82f[_0x35ce55(0x70)]===0x0?'Use\x20`'+CLI_BIN_NAME+_0x35ce55(0x95)+_0x1281fd+_0x35ce55(0x84)+_0x5ea46b+_0x35ce55(0x80):_0x35ce55(0x96)+_0x5ac82f[_0x35ce55(0x91)](',\x20');throw CliErrors[_0x35ce55(0x7e)](_0x35ce55(0x6f)+_0x5ea46b+_0x35ce55(0x6a),_0x170614);}assertValidAppcode(String(_0x21695f));const _0x1ded22={..._0x4abcdc,..._0x4dee91,'appcode':String(_0x21695f),...collectWorkspaceProfileOverrides(_0x2e72f3)};return _0x27a08f[_0x5ea46b]=_0x1ded22,_0x47ceb7['apps']=_0x27a08f,normalizeStoredDefaultApp(_0x47ceb7,_0x5ea46b),delete _0x47ceb7[_0x35ce55(0xa0)],delete _0x47ceb7['app'],_0x1ded22[_0x35ce55(0x73)]&&(_0x47ceb7[_0x35ce55(0x73)]=_0x1ded22[_0x35ce55(0x73)]),writeConfigFile(_0x281bfc,_0x47ceb7),{'ok':!![],'message':_0x35ce55(0x76)+(_0x1281fd===_0x35ce55(0x72)?_0x35ce55(0x8d):_0x35ce55(0x92))+':\x20'+_0x5ea46b+_0x35ce55(0x9d)+_0x1ded22[_0x35ce55(0xa0)]+_0x35ce55(0xa1)+_0x281bfc+_0x35ce55(0x9a),'data':{'operation':_0x35ce55(0x89)+_0x1281fd,'configPath':_0x281bfc,'app':_0x5ea46b,'appcode':_0x1ded22[_0x35ce55(0xa0)],'apiGroup':_0x1ded22[_0x35ce55(0x88)]??null,'region':_0x1ded22[_0x35ce55(0x71)]??null,'env':_0x1ded22[_0x35ce55(0x73)]??null,'credentialsWritten':![]}};}const workspaceInitDefinition={'service':a267_0x1bde60(0x83),'command':a267_0x1bde60(0x72),'description':'Initialize\x20the\x20current\x20workspace\x20app\x20binding','risk':'write','requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x32ebf8=>configureWorkspace(_0x32ebf8,a267_0x1bde60(0x72))},workspaceUseDefinition={'service':a267_0x1bde60(0x83),'command':a267_0x1bde60(0xa2),'description':a267_0x1bde60(0x8b),'risk':a267_0x1bde60(0xaa),'requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x83ddbb=>configureWorkspace(_0x83ddbb,a267_0x1bde60(0xa2))};export const workspaceDefinitions=[workspaceInitDefinition,workspaceUseDefinition,workspaceAddDefinition,workspaceRemoveDefinition];export{WORKSPACE_USAGE};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a268_0x436685=a268_0x562d;function a268_0x562d(_0x216df4,_0x5b20f6){_0x216df4=_0x216df4-0x186;const _0x4d224f=a268_0x4d22();let _0x562d70=_0x4d224f[_0x216df4];return _0x562d70;}function a268_0x4d22(){const _0x28580a=['workspace\x20remove','401532hYGgEP','App\x20profile\x20name\x20to\x20remove','13229326oKNRdF','1ZzLERO','156737NkZHLv','918545sxiQKV','182700okyjnw','remove','name','184JpsjtN','1180766xymfho','45IdXbSY','6CTTuZX','Remove\x20an\x20app\x20profile\x20from\x20the\x20current\x20workspace\x20(or\x20--global)','1162872lmQNZy','write'];a268_0x4d22=function(){return _0x28580a;};return a268_0x4d22();}(function(_0x3ebae0,_0xd398fe){const _0x5a9c71=a268_0x562d,_0x16c004=_0x3ebae0();while(!![]){try{const _0x420356=parseInt(_0x5a9c71(0x192))/0x1*(parseInt(_0x5a9c71(0x188))/0x2)+parseInt(_0x5a9c71(0x18f))/0x3+parseInt(_0x5a9c71(0x18c))/0x4+-parseInt(_0x5a9c71(0x194))/0x5*(-parseInt(_0x5a9c71(0x18a))/0x6)+parseInt(_0x5a9c71(0x193))/0x7*(parseInt(_0x5a9c71(0x187))/0x8)+parseInt(_0x5a9c71(0x189))/0x9*(-parseInt(_0x5a9c71(0x195))/0xa)+-parseInt(_0x5a9c71(0x191))/0xb;if(_0x420356===_0xd398fe)break;else _0x16c004['push'](_0x16c004['shift']());}catch(_0x364f81){_0x16c004['push'](_0x16c004['shift']());}}}(a268_0x4d22,0x6672f));import{buildAppRemoveFlags,runAppRemove,validateAppName}from'../../commands/common/app-registry.js';export const workspaceRemoveDefinition={'service':'workspace','command':a268_0x436685(0x196),'description':a268_0x436685(0x18b),'risk':a268_0x436685(0x18d),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':a268_0x436685(0x186),'description':a268_0x436685(0x190),'required':!![]}],'flags':buildAppRemoveFlags(),'validate':_0x516db9=>validateAppName(_0x516db9,'workspace\x20remove'),'execute':_0x2afa6b=>runAppRemove(_0x2afa6b,a268_0x436685(0x18e))};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a269_0x4413e1=a269_0x62e1;(function(_0x120eb5,_0x388ae1){const _0x498476=a269_0x62e1,_0x47957c=_0x120eb5();while(!![]){try{const _0xe9b16e=parseInt(_0x498476(0x110))/0x1+-parseInt(_0x498476(0x11a))/0x2+-parseInt(_0x498476(0x117))/0x3+-parseInt(_0x498476(0x108))/0x4+parseInt(_0x498476(0xf3))/0x5+-parseInt(_0x498476(0x10e))/0x6*(-parseInt(_0x498476(0xd7))/0x7)+parseInt(_0x498476(0xf6))/0x8;if(_0xe9b16e===_0x388ae1)break;else _0x47957c['push'](_0x47957c['shift']());}catch(_0x41a714){_0x47957c['push'](_0x47957c['shift']());}}}(a269_0x49b2,0xba17f));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_0x4413e1(0xed),a269_0x4413e1(0xf4),'runtimeDomain',a269_0x4413e1(0xde),'kbDomain',a269_0x4413e1(0xfc),'appDomain',a269_0x4413e1(0x100),a269_0x4413e1(0x10b)];const DOMAIN_FLAGS={'userDomain':a269_0x4413e1(0xdd),'apiDomain':a269_0x4413e1(0xdf),'runtimeDomain':a269_0x4413e1(0x11e),'skillDomain':a269_0x4413e1(0x119),'kbDomain':a269_0x4413e1(0xfd),'kbServiceDomain':'kb-service-domain','appDomain':a269_0x4413e1(0xf0),'localDomain':'local-domain','certificateDomain':'certificate-domain'};export const LEGACY_DOMAIN_CONFIG_FIELDS=[a269_0x4413e1(0x11c),'platformDomain',a269_0x4413e1(0x11b)];const ENTERPRISE_TO_LOCAL_FIELD={'userDomain':'userDomain','apiDomain':a269_0x4413e1(0xf4),'runtimeDomain':a269_0x4413e1(0xd6),'skillDomain':'skillDomain','kbDomain':a269_0x4413e1(0xfb),'kbServiceDomain':a269_0x4413e1(0xfc),'appDomain':a269_0x4413e1(0x102),'localDomain':a269_0x4413e1(0x100),'certificateDomain':a269_0x4413e1(0x10b)},ROUTING_CONSUMER=a269_0x4413e1(0x114);export function normalizeDomainOrigin(_0x1cb76f,_0x2d8395){const _0x4bae8e=a269_0x4413e1;if(typeof _0x2d8395!==_0x4bae8e(0xd9)||!_0x2d8395[_0x4bae8e(0xe7)]())throw CliErrors[_0x4bae8e(0x10a)](_0x4bae8e(0x106)+_0x1cb76f+_0x4bae8e(0xe3));let _0x36b350;try{_0x36b350=new URL(_0x2d8395[_0x4bae8e(0xe7)]());}catch{throw CliErrors['validation'](_0x4bae8e(0x106)+_0x1cb76f+_0x4bae8e(0x113)+_0x2d8395+_0x4bae8e(0xd5));}if(_0x36b350['protocol']!==_0x4bae8e(0xe6)||_0x36b350[_0x4bae8e(0x101)]||_0x36b350[_0x4bae8e(0x115)]||_0x36b350[_0x4bae8e(0xd2)]!=='/'&&_0x36b350[_0x4bae8e(0xd2)]!==''||_0x36b350[_0x4bae8e(0x103)]||_0x36b350[_0x4bae8e(0x111)])throw CliErrors[_0x4bae8e(0x10a)]('Invalid\x20'+_0x1cb76f+_0x4bae8e(0xdc),'For\x20internal\x20deployments,\x20terminate\x20TLS\x20at\x20the\x20ingress,\x20reverse\x20proxy,\x20or\x20load\x20balancer;\x20an\x20internal\x20CA\x20is\x20supported.');return _0x36b350[_0x4bae8e(0x10c)];}export function normalizeRoutingDomainValue(_0x52ff27,_0x5ace22){const _0x23e21f=a269_0x4413e1;if(typeof _0x5ace22===_0x23e21f(0xd9))return normalizeDomainOrigin(_0x52ff27,_0x5ace22);if(!_0x5ace22||typeof _0x5ace22!==_0x23e21f(0x116)||Array[_0x23e21f(0x105)](_0x5ace22))throw CliErrors[_0x23e21f(0x10a)](_0x23e21f(0x106)+_0x52ff27+_0x23e21f(0xe9));const _0x14a4e9=_0x5ace22,_0x398943=_0x14a4e9[ROUTING_CONSUMER]??_0x14a4e9[_0x23e21f(0xeb)];if(_0x398943===undefined)throw CliErrors[_0x23e21f(0x10a)](_0x23e21f(0xe8)+_0x52ff27+_0x23e21f(0x107)+ROUTING_CONSUMER+_0x23e21f(0xec));return normalizeDomainOrigin(_0x52ff27,_0x398943);}export function normalizeCdnBaseUrl(_0x3a8c9a,_0x37667a){const _0x495faf=a269_0x4413e1;if(typeof _0x37667a!==_0x495faf(0xd9)||!_0x37667a[_0x495faf(0xe7)]())throw CliErrors[_0x495faf(0x10a)](_0x495faf(0xd0)+_0x3a8c9a+':\x20expected\x20a\x20non-empty\x20HTTPS\x20URL.');const _0x47904c=_0x37667a[_0x495faf(0xe7)]()[_0x495faf(0xe0)](/\/$/,'');let _0x216f0b;try{_0x216f0b=new URL(_0x47904c);}catch{throw CliErrors[_0x495faf(0x10a)](_0x495faf(0xd0)+_0x3a8c9a+_0x495faf(0x113)+_0x37667a+_0x495faf(0xd5));}if(_0x216f0b[_0x495faf(0xf8)]!==_0x495faf(0xe6)||_0x216f0b[_0x495faf(0x101)]||_0x216f0b[_0x495faf(0x115)]||_0x216f0b[_0x495faf(0x103)]||_0x216f0b[_0x495faf(0x111)]||_0x216f0b[_0x495faf(0xda)]['replace'](/\/$/,'')!==_0x47904c||_0x3a8c9a===_0x495faf(0xd3)&&_0x216f0b[_0x495faf(0x10c)]!==_0x47904c)throw CliErrors[_0x495faf(0x10a)](_0x495faf(0xd0)+_0x3a8c9a+_0x495faf(0x112)+(_0x3a8c9a===_0x495faf(0xd3)?_0x495faf(0x10c):_0x495faf(0xef))+'\x20without\x20credentials,\x20query,\x20or\x20fragment.');return _0x47904c;}export function resolveEnterpriseRoutingConfig(_0x32945b){const _0x57d219=a269_0x4413e1;return resolveEnterpriseRoutingManifest(_0x32945b)?.[_0x57d219(0xcf)];}export function resolveEnterpriseRoutingManifest(_0x11ec4d){const _0x11fd44=a269_0x4413e1;if(_0x11ec4d===undefined)return undefined;if(!_0x11ec4d||typeof _0x11ec4d!==_0x11fd44(0x116)||Array[_0x11fd44(0x105)](_0x11ec4d))throw CliErrors['validation']('Invalid\x20enterprise\x20routing\x20config:\x20expected\x20an\x20object.');return parseEnterpriseRoutingManifest(_0x11ec4d);}export function readDomainConfigInput(_0x3fe7aa){const _0x5bb916=a269_0x4413e1,_0x363968=isAbsolute(_0x3fe7aa)?_0x3fe7aa:resolve(process[_0x5bb916(0xf1)](),_0x3fe7aa);if(!existsSync(_0x363968))throw CliErrors[_0x5bb916(0x10a)](_0x5bb916(0xe1)+_0x363968);let _0x3e72cf;try{_0x3e72cf=JSON[_0x5bb916(0xe2)](readFileSync(_0x363968,'utf8'));}catch{throw CliErrors[_0x5bb916(0x10a)](_0x5bb916(0xd1)+_0x363968);}if(!_0x3e72cf||typeof _0x3e72cf!==_0x5bb916(0x116)||Array['isArray'](_0x3e72cf))throw CliErrors[_0x5bb916(0x10a)]('Invalid\x20domain\x20config:\x20expected\x20a\x20JSON\x20object.');const _0x43ee25=_0x3e72cf;if(_0x5bb916(0xf8)in _0x43ee25)return parseEnterpriseRoutingManifest(_0x43ee25);const _0x57608e=Object[_0x5bb916(0xdb)](_0x43ee25)[_0x5bb916(0xf7)](_0xb743f7=>!DOMAIN_CONFIG_FIELDS['includes'](_0xb743f7));if(_0x57608e['length']>0x0)throw CliErrors[_0x5bb916(0x10a)](_0x5bb916(0xd4)+_0x57608e[_0x5bb916(0xe4)](',\x20'),_0x5bb916(0xd8)+DOMAIN_CONFIG_FIELDS[_0x5bb916(0xe4)](',\x20'));const _0x2fa5c0={};for(const _0x1eac9d of DOMAIN_CONFIG_FIELDS){_0x43ee25[_0x1eac9d]!==undefined&&(_0x2fa5c0[_0x1eac9d]=normalizeDomainOrigin(_0x1eac9d,_0x43ee25[_0x1eac9d]));}if(Object[_0x5bb916(0xdb)](_0x2fa5c0)[_0x5bb916(0xfe)]===0x0)throw CliErrors[_0x5bb916(0x10a)]('Invalid\x20domain\x20config:\x20provide\x20at\x20least\x20one\x20supported\x20Domain.');return{'mode':_0x5bb916(0xf9),'domains':_0x2fa5c0};}export function readDomainConfig(_0x58c0a7){const _0x4fcb2e=a269_0x4413e1;return readDomainConfigInput(_0x58c0a7)[_0x4fcb2e(0xcf)];}export function resolveDomainConfigInput(_0x49392c){const _0x2c558b=a269_0x4413e1,_0x26f905=(_0x49392c['str'](_0x2c558b(0xee))||'')[_0x2c558b(0xe7)](),_0x27cd9a=_0x26f905?readDomainConfigInput(_0x26f905):{'mode':_0x2c558b(0xf9),'domains':{}},_0xbc71cf=DOMAIN_CONFIG_FIELDS[_0x2c558b(0xf7)](_0x3a2a18=>Boolean((_0x49392c[_0x2c558b(0x104)](DOMAIN_FLAGS[_0x3a2a18])||'')[_0x2c558b(0xe7)]()));if(_0x27cd9a['mode']===_0x2c558b(0xf5)&&_0xbc71cf[_0x2c558b(0xfe)]>0x0)throw CliErrors[_0x2c558b(0x10a)](_0x2c558b(0x118),_0x2c558b(0x10f));for(const _0xf27d88 of DOMAIN_CONFIG_FIELDS){const _0x4c2b6b=(_0x49392c[_0x2c558b(0x104)](DOMAIN_FLAGS[_0xf27d88])||'')[_0x2c558b(0xe7)]();if(_0x4c2b6b)_0x27cd9a['domains'][_0xf27d88]=normalizeDomainOrigin(_0xf27d88,_0x4c2b6b);}return _0x27cd9a;}export function resolveDomainFlags(_0x1d545c){const _0x5ebcf0=a269_0x4413e1;return resolveDomainConfigInput(_0x1d545c)[_0x5ebcf0(0xcf)];}function a269_0x62e1(_0x2747e8,_0x215101){_0x2747e8=_0x2747e8-0xce;const _0x49b27f=a269_0x49b2();let _0x62e1dc=_0x49b27f[_0x2747e8];return _0x62e1dc;}export function parseEnterpriseRoutingManifest(_0x193f63){const _0x6107cd=a269_0x4413e1;if(_0x193f63[_0x6107cd(0xf8)]!==ENTERPRISE_ROUTING_PROTOCOL||_0x193f63[_0x6107cd(0x10d)]!==ENTERPRISE_ROUTING_KIND)throw CliErrors[_0x6107cd(0x10a)](_0x6107cd(0xfa)+ENTERPRISE_ROUTING_PROTOCOL+_0x6107cd(0xce)+ENTERPRISE_ROUTING_KIND+'\x22.');if(!_0x193f63[_0x6107cd(0xcf)]||typeof _0x193f63[_0x6107cd(0xcf)]!==_0x6107cd(0x116)||Array[_0x6107cd(0x105)](_0x193f63[_0x6107cd(0xcf)]))throw CliErrors['validation'](_0x6107cd(0xff));if(!_0x193f63['cdn']||typeof _0x193f63[_0x6107cd(0x11d)]!==_0x6107cd(0x116)||Array[_0x6107cd(0x105)](_0x193f63[_0x6107cd(0x11d)]))throw CliErrors[_0x6107cd(0x10a)](_0x6107cd(0xe5));const _0x1f23d8=_0x193f63['domains'],_0xaa9c56=REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS[_0x6107cd(0xf7)](_0x4d5c0e=>_0x1f23d8[_0x4d5c0e]===undefined);if(_0xaa9c56[_0x6107cd(0xfe)]>0x0)throw CliErrors[_0x6107cd(0x10a)]('Enterprise\x20routing\x20manifest\x20is\x20missing\x20required\x20Domain(s):\x20'+_0xaa9c56[_0x6107cd(0xe4)](',\x20'));if(_0x1f23d8[_0x6107cd(0x100)]===undefined!==(_0x1f23d8[_0x6107cd(0x10b)]===undefined))throw CliErrors[_0x6107cd(0x10a)](_0x6107cd(0xf2));const _0x10f297=_0x193f63['cdn'],_0x406475=Object[_0x6107cd(0xdb)](_0x10f297)[_0x6107cd(0xf7)](_0x20fa0a=>!ENTERPRISE_ROUTING_CDN_FIELDS[_0x6107cd(0x109)](_0x20fa0a));if(_0x406475['length']>0x0)throw CliErrors[_0x6107cd(0x10a)]('Unsupported\x20enterprise\x20CDN\x20field(s):\x20'+_0x406475[_0x6107cd(0xe4)](',\x20'),_0x6107cd(0xd8)+ENTERPRISE_ROUTING_CDN_FIELDS[_0x6107cd(0xe4)](',\x20'));const _0xd340da=REQUIRED_ENTERPRISE_ROUTING_CDN_FIELDS[_0x6107cd(0xf7)](_0x4a1d33=>_0x10f297[_0x4a1d33]===undefined);if(_0xd340da[_0x6107cd(0xfe)]>0x0)throw CliErrors['validation'](_0x6107cd(0xea)+_0xd340da[_0x6107cd(0xe4)](',\x20'));const _0x96389f={};for(const _0x16797b of ENTERPRISE_ROUTING_CDN_FIELDS){_0x96389f[_0x16797b]=normalizeCdnBaseUrl(_0x16797b,_0x10f297[_0x16797b]);}const _0x4d2271={},_0x18c362={};for(const _0x399db3 of ENTERPRISE_ROUTING_DOMAIN_FIELDS){const _0x3c6ffb=_0x1f23d8[_0x399db3];if(_0x3c6ffb===undefined)continue;const _0x101d3d=normalizeRoutingDomainValue(_0x399db3,_0x3c6ffb);_0x4d2271[_0x399db3]=_0x101d3d;const _0x31e4c0=ENTERPRISE_TO_LOCAL_FIELD[_0x399db3];_0x31e4c0&&(_0x18c362[_0x31e4c0]=_0x101d3d);}return{'mode':'enterprise-v1','domains':_0x18c362,'manifestDomains':_0x4d2271,'cdn':_0x96389f};}function a269_0x49b2(){const _0x2295d4=['includes','validation','certificateDomain','origin','kind','6phDEPW','Update\x20the\x20manifest\x20so\x20both\x20CLIs\x20consume\x20the\x20same\x20routing\x20data.','203912QZkVrq','hash',':\x20expected\x20an\x20HTTPS\x20',':\x20\x22','rabetbase-cli','password','object','377076mcOyrF','Enterprise\x20routing\x20manifests\x20cannot\x20be\x20combined\x20with\x20individual\x20Domain\x20flags.','skill-domain','1596822roiZVR','skillHubDomain','agentDomain','cdn','runtime-domain','\x22\x20and\x20kind\x20\x22','domains','Invalid\x20cdn.','Invalid\x20domain\x20config\x20JSON:\x20','pathname','lovrabet','Unsupported\x20domain\x20config\x20field(s):\x20','\x22\x20is\x20not\x20a\x20valid\x20URL.','runtimeDomain','4886756FMrriq','Allowed\x20fields:\x20','string','href','keys',':\x20expected\x20an\x20HTTPS\x20origin\x20without\x20credentials,\x20path,\x20query,\x20or\x20fragment.','user-domain','skillDomain','api-domain','replace','Domain\x20config\x20file\x20not\x20found:\x20','parse',':\x20expected\x20a\x20non-empty\x20HTTPS\x20origin.','join','Invalid\x20enterprise\x20routing\x20manifest:\x20cdn\x20must\x20be\x20an\x20object.','https:','trim','Enterprise\x20',':\x20expected\x20an\x20HTTPS\x20origin\x20or\x20consumer\x20Domain\x20object.','Enterprise\x20routing\x20manifest\x20is\x20missing\x20required\x20CDN\x20field(s):\x20','default','\x20and\x20has\x20no\x20default.','userDomain','domain-config','base\x20URL','app-domain','cwd','Enterprise\x20routing\x20manifest\x20requires\x20localDomain\x20and\x20certificateDomain\x20together.','5782220rvBzOP','apiDomain','enterprise-v1','8206056qgiGJj','filter','protocol','legacy','Unsupported\x20routing\x20manifest:\x20expected\x20protocol\x20\x22','kbDomain','kbServiceDomain','kb-domain','length','Invalid\x20enterprise\x20routing\x20manifest:\x20domains\x20must\x20be\x20an\x20object.','localDomain','username','appDomain','search','str','isArray','Invalid\x20','\x20does\x20not\x20provide\x20a\x20Domain\x20for\x20','5591516OHUbry'];a269_0x49b2=function(){return _0x2295d4;};return a269_0x49b2();}
|
|
1
|
+
function a269_0x515d(_0x2b182c,_0x48d902){_0x2b182c=_0x2b182c-0x119;const _0x50b279=a269_0x50b2();let _0x515d95=_0x50b279[_0x2b182c];return _0x515d95;}const a269_0x71b363=a269_0x515d;(function(_0x5ddaea,_0x4eb6ea){const _0x121873=a269_0x515d,_0x3322ce=_0x5ddaea();while(!![]){try{const _0xf8672a=-parseInt(_0x121873(0x127))/0x1*(parseInt(_0x121873(0x14c))/0x2)+parseInt(_0x121873(0x13f))/0x3+parseInt(_0x121873(0x14a))/0x4*(-parseInt(_0x121873(0x167))/0x5)+parseInt(_0x121873(0x11b))/0x6+-parseInt(_0x121873(0x138))/0x7+-parseInt(_0x121873(0x119))/0x8+parseInt(_0x121873(0x13c))/0x9*(parseInt(_0x121873(0x163))/0xa);if(_0xf8672a===_0x4eb6ea)break;else _0x3322ce['push'](_0x3322ce['shift']());}catch(_0x28d344){_0x3322ce['push'](_0x3322ce['shift']());}}}(a269_0x50b2,0x990c2));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_0x71b363(0x156),a269_0x71b363(0x124),a269_0x71b363(0x15f),a269_0x71b363(0x125),'kbDomain',a269_0x71b363(0x162),a269_0x71b363(0x137),a269_0x71b363(0x14f),'certificateDomain'];function a269_0x50b2(){const _0x21ba28=['app-domain','join','platformDomain','pathname','runtimeDomain','skillHubDomain','\x20without\x20credentials,\x20query,\x20or\x20fragment.','kbServiceDomain','590OdlJzJ','password',':\x20expected\x20an\x20HTTPS\x20origin\x20without\x20credentials,\x20path,\x20query,\x20or\x20fragment.','string','30SZZynq','trim','Invalid\x20domain\x20config:\x20expected\x20a\x20JSON\x20object.','kind',':\x20expected\x20a\x20non-empty\x20HTTPS\x20origin.','9316248mnEVLm','keys','5428206fBlDfj','kb-service-domain','Unsupported\x20routing\x20manifest:\x20expected\x20protocol\x20\x22','certificateDomain','cwd','includes','Invalid\x20cdn.','protocol','isArray','apiDomain','skillDomain','origin','1bIxcSv','Enterprise\x20','Update\x20the\x20manifest\x20so\x20both\x20CLIs\x20consume\x20the\x20same\x20routing\x20data.','Enterprise\x20routing\x20manifest\x20requires\x20localDomain\x20and\x20certificateDomain\x20together.',':\x20expected\x20a\x20non-empty\x20HTTPS\x20URL.','Invalid\x20enterprise\x20routing\x20manifest:\x20domains\x20must\x20be\x20an\x20object.','base\x20URL','user-domain','hash','Unsupported\x20domain\x20config\x20field(s):\x20','username','domains','For\x20internal\x20deployments,\x20terminate\x20TLS\x20at\x20the\x20ingress,\x20reverse\x20proxy,\x20or\x20load\x20balancer;\x20an\x20internal\x20CA\x20is\x20supported.','replace','Enterprise\x20routing\x20manifests\x20cannot\x20be\x20combined\x20with\x20individual\x20Domain\x20flags.','skill-domain','appDomain','2956030rnpfdZ','local-domain','enterprise-v1',':\x20expected\x20an\x20HTTPS\x20','112797BdKWNE','api-domain','Invalid\x20enterprise\x20routing\x20config:\x20expected\x20an\x20object.','3712386lxVgiB','Invalid\x20enterprise\x20routing\x20manifest:\x20cdn\x20must\x20be\x20an\x20object.','Allowed\x20fields:\x20','search','object','Invalid\x20','https:','\x22\x20is\x20not\x20a\x20valid\x20URL.','Unsupported\x20enterprise\x20CDN\x20field(s):\x20','\x20does\x20not\x20provide\x20a\x20Domain\x20for\x20','agentDomain','122892mrFYYk','runtime-domain','967138qgztjt','Enterprise\x20routing\x20manifest\x20is\x20missing\x20required\x20Domain(s):\x20','filter','localDomain','cdn','\x20and\x20has\x20no\x20default.','\x22\x20and\x20kind\x20\x22',':\x20\x22','validation','Enterprise\x20routing\x20manifest\x20is\x20missing\x20required\x20CDN\x20field(s):\x20','userDomain','length','str','kbDomain','rabetbase-cli'];a269_0x50b2=function(){return _0x21ba28;};return a269_0x50b2();}const DOMAIN_FLAGS={'userDomain':a269_0x71b363(0x12e),'apiDomain':a269_0x71b363(0x13d),'runtimeDomain':a269_0x71b363(0x14b),'skillDomain':a269_0x71b363(0x136),'kbDomain':'kb-domain','kbServiceDomain':a269_0x71b363(0x11c),'appDomain':a269_0x71b363(0x15b),'localDomain':a269_0x71b363(0x139),'certificateDomain':'certificate-domain'};export const LEGACY_DOMAIN_CONFIG_FIELDS=[a269_0x71b363(0x149),a269_0x71b363(0x15d),a269_0x71b363(0x160)];const ENTERPRISE_TO_LOCAL_FIELD={'userDomain':a269_0x71b363(0x156),'apiDomain':a269_0x71b363(0x124),'runtimeDomain':a269_0x71b363(0x15f),'skillDomain':a269_0x71b363(0x125),'kbDomain':a269_0x71b363(0x159),'kbServiceDomain':a269_0x71b363(0x162),'appDomain':a269_0x71b363(0x137),'localDomain':a269_0x71b363(0x14f),'certificateDomain':a269_0x71b363(0x11e)},ROUTING_CONSUMER=a269_0x71b363(0x15a);export function normalizeDomainOrigin(_0x305230,_0x10cd0f){const _0x8800f7=a269_0x71b363;if(typeof _0x10cd0f!==_0x8800f7(0x166)||!_0x10cd0f[_0x8800f7(0x168)]())throw CliErrors[_0x8800f7(0x154)](_0x8800f7(0x144)+_0x305230+_0x8800f7(0x16b));let _0x2f72f7;try{_0x2f72f7=new URL(_0x10cd0f[_0x8800f7(0x168)]());}catch{throw CliErrors[_0x8800f7(0x154)]('Invalid\x20'+_0x305230+':\x20\x22'+_0x10cd0f+_0x8800f7(0x146));}if(_0x2f72f7[_0x8800f7(0x122)]!=='https:'||_0x2f72f7[_0x8800f7(0x131)]||_0x2f72f7[_0x8800f7(0x164)]||_0x2f72f7[_0x8800f7(0x15e)]!=='/'&&_0x2f72f7[_0x8800f7(0x15e)]!==''||_0x2f72f7[_0x8800f7(0x142)]||_0x2f72f7['hash'])throw CliErrors['validation'](_0x8800f7(0x144)+_0x305230+_0x8800f7(0x165),_0x8800f7(0x133));return _0x2f72f7[_0x8800f7(0x126)];}export function normalizeRoutingDomainValue(_0x41af51,_0x46f51a){const _0x26504e=a269_0x71b363;if(typeof _0x46f51a===_0x26504e(0x166))return normalizeDomainOrigin(_0x41af51,_0x46f51a);if(!_0x46f51a||typeof _0x46f51a!==_0x26504e(0x143)||Array['isArray'](_0x46f51a))throw CliErrors[_0x26504e(0x154)](_0x26504e(0x144)+_0x41af51+':\x20expected\x20an\x20HTTPS\x20origin\x20or\x20consumer\x20Domain\x20object.');const _0x49c1e6=_0x46f51a,_0x16b0b8=_0x49c1e6[ROUTING_CONSUMER]??_0x49c1e6['default'];if(_0x16b0b8===undefined)throw CliErrors[_0x26504e(0x154)](_0x26504e(0x128)+_0x41af51+_0x26504e(0x148)+ROUTING_CONSUMER+_0x26504e(0x151));return normalizeDomainOrigin(_0x41af51,_0x16b0b8);}export function normalizeCdnBaseUrl(_0x4a576c,_0x4b6ef7){const _0x4537a2=a269_0x71b363;if(typeof _0x4b6ef7!==_0x4537a2(0x166)||!_0x4b6ef7[_0x4537a2(0x168)]())throw CliErrors[_0x4537a2(0x154)]('Invalid\x20cdn.'+_0x4a576c+_0x4537a2(0x12b));const _0x4549f4=_0x4b6ef7['trim']()[_0x4537a2(0x134)](/\/$/,'');let _0x2154fe;try{_0x2154fe=new URL(_0x4549f4);}catch{throw CliErrors[_0x4537a2(0x154)](_0x4537a2(0x121)+_0x4a576c+_0x4537a2(0x153)+_0x4b6ef7+_0x4537a2(0x146));}if(_0x2154fe[_0x4537a2(0x122)]!==_0x4537a2(0x145)||_0x2154fe[_0x4537a2(0x131)]||_0x2154fe[_0x4537a2(0x164)]||_0x2154fe['search']||_0x2154fe[_0x4537a2(0x12f)]||_0x2154fe['href'][_0x4537a2(0x134)](/\/$/,'')!==_0x4549f4||_0x4a576c==='lovrabet'&&_0x2154fe[_0x4537a2(0x126)]!==_0x4549f4)throw CliErrors[_0x4537a2(0x154)](_0x4537a2(0x121)+_0x4a576c+_0x4537a2(0x13b)+(_0x4a576c==='lovrabet'?_0x4537a2(0x126):_0x4537a2(0x12d))+_0x4537a2(0x161));return _0x4549f4;}export function resolveEnterpriseRoutingConfig(_0x165a89){const _0x1d7ce6=a269_0x71b363;return resolveEnterpriseRoutingManifest(_0x165a89)?.[_0x1d7ce6(0x132)];}export function resolveEnterpriseRoutingManifest(_0x2369a6){const _0xde29f7=a269_0x71b363;if(_0x2369a6===undefined)return undefined;if(!_0x2369a6||typeof _0x2369a6!==_0xde29f7(0x143)||Array[_0xde29f7(0x123)](_0x2369a6))throw CliErrors[_0xde29f7(0x154)](_0xde29f7(0x13e));return parseEnterpriseRoutingManifest(_0x2369a6);}export function readDomainConfigInput(_0x36790b){const _0x27ccaa=a269_0x71b363,_0x205501=isAbsolute(_0x36790b)?_0x36790b:resolve(process[_0x27ccaa(0x11f)](),_0x36790b);if(!existsSync(_0x205501))throw CliErrors[_0x27ccaa(0x154)]('Domain\x20config\x20file\x20not\x20found:\x20'+_0x205501);let _0x42b82c;try{_0x42b82c=JSON['parse'](readFileSync(_0x205501,'utf8'));}catch{throw CliErrors[_0x27ccaa(0x154)]('Invalid\x20domain\x20config\x20JSON:\x20'+_0x205501);}if(!_0x42b82c||typeof _0x42b82c!=='object'||Array[_0x27ccaa(0x123)](_0x42b82c))throw CliErrors[_0x27ccaa(0x154)](_0x27ccaa(0x169));const _0x433da1=_0x42b82c;if(_0x27ccaa(0x122)in _0x433da1)return parseEnterpriseRoutingManifest(_0x433da1);const _0x2b01a1=Object['keys'](_0x433da1)['filter'](_0x39257f=>!DOMAIN_CONFIG_FIELDS[_0x27ccaa(0x120)](_0x39257f));if(_0x2b01a1['length']>0x0)throw CliErrors['validation'](_0x27ccaa(0x130)+_0x2b01a1['join'](',\x20'),_0x27ccaa(0x141)+DOMAIN_CONFIG_FIELDS[_0x27ccaa(0x15c)](',\x20'));const _0x49311f={};for(const _0x346a0b of DOMAIN_CONFIG_FIELDS){_0x433da1[_0x346a0b]!==undefined&&(_0x49311f[_0x346a0b]=normalizeDomainOrigin(_0x346a0b,_0x433da1[_0x346a0b]));}if(Object[_0x27ccaa(0x11a)](_0x49311f)[_0x27ccaa(0x157)]===0x0)throw CliErrors['validation']('Invalid\x20domain\x20config:\x20provide\x20at\x20least\x20one\x20supported\x20Domain.');return{'mode':'legacy','domains':_0x49311f};}export function readDomainConfig(_0x1db9dc){const _0x36f03d=a269_0x71b363;return readDomainConfigInput(_0x1db9dc)[_0x36f03d(0x132)];}export function resolveDomainConfigInput(_0x57994f){const _0x4c7c20=a269_0x71b363,_0x27a79f=(_0x57994f[_0x4c7c20(0x158)]('domain-config')||'')[_0x4c7c20(0x168)](),_0x3fe560=_0x27a79f?readDomainConfigInput(_0x27a79f):{'mode':'legacy','domains':{}},_0x1783bd=DOMAIN_CONFIG_FIELDS[_0x4c7c20(0x14e)](_0x89e62b=>Boolean((_0x57994f[_0x4c7c20(0x158)](DOMAIN_FLAGS[_0x89e62b])||'')[_0x4c7c20(0x168)]()));if(_0x3fe560['mode']===_0x4c7c20(0x13a)&&_0x1783bd[_0x4c7c20(0x157)]>0x0)throw CliErrors[_0x4c7c20(0x154)](_0x4c7c20(0x135),_0x4c7c20(0x129));for(const _0x80f5e8 of DOMAIN_CONFIG_FIELDS){const _0x1de840=(_0x57994f[_0x4c7c20(0x158)](DOMAIN_FLAGS[_0x80f5e8])||'')[_0x4c7c20(0x168)]();if(_0x1de840)_0x3fe560[_0x4c7c20(0x132)][_0x80f5e8]=normalizeDomainOrigin(_0x80f5e8,_0x1de840);}return _0x3fe560;}export function resolveDomainFlags(_0xa5b8ef){return resolveDomainConfigInput(_0xa5b8ef)['domains'];}export function parseEnterpriseRoutingManifest(_0x241f6c){const _0x50fada=a269_0x71b363;if(_0x241f6c[_0x50fada(0x122)]!==ENTERPRISE_ROUTING_PROTOCOL||_0x241f6c[_0x50fada(0x16a)]!==ENTERPRISE_ROUTING_KIND)throw CliErrors[_0x50fada(0x154)](_0x50fada(0x11d)+ENTERPRISE_ROUTING_PROTOCOL+_0x50fada(0x152)+ENTERPRISE_ROUTING_KIND+'\x22.');if(!_0x241f6c[_0x50fada(0x132)]||typeof _0x241f6c['domains']!==_0x50fada(0x143)||Array[_0x50fada(0x123)](_0x241f6c[_0x50fada(0x132)]))throw CliErrors[_0x50fada(0x154)](_0x50fada(0x12c));if(!_0x241f6c[_0x50fada(0x150)]||typeof _0x241f6c[_0x50fada(0x150)]!==_0x50fada(0x143)||Array[_0x50fada(0x123)](_0x241f6c[_0x50fada(0x150)]))throw CliErrors['validation'](_0x50fada(0x140));const _0x27f1fa=_0x241f6c[_0x50fada(0x132)],_0x408a73=REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS[_0x50fada(0x14e)](_0x427811=>_0x27f1fa[_0x427811]===undefined);if(_0x408a73[_0x50fada(0x157)]>0x0)throw CliErrors[_0x50fada(0x154)](_0x50fada(0x14d)+_0x408a73[_0x50fada(0x15c)](',\x20'));if(_0x27f1fa[_0x50fada(0x14f)]===undefined!==(_0x27f1fa[_0x50fada(0x11e)]===undefined))throw CliErrors[_0x50fada(0x154)](_0x50fada(0x12a));const _0xee0670=_0x241f6c['cdn'],_0x4e0a53=Object[_0x50fada(0x11a)](_0xee0670)['filter'](_0x25c773=>!ENTERPRISE_ROUTING_CDN_FIELDS[_0x50fada(0x120)](_0x25c773));if(_0x4e0a53[_0x50fada(0x157)]>0x0)throw CliErrors[_0x50fada(0x154)](_0x50fada(0x147)+_0x4e0a53[_0x50fada(0x15c)](',\x20'),_0x50fada(0x141)+ENTERPRISE_ROUTING_CDN_FIELDS[_0x50fada(0x15c)](',\x20'));const _0x1caf4f=REQUIRED_ENTERPRISE_ROUTING_CDN_FIELDS[_0x50fada(0x14e)](_0x1109ba=>_0xee0670[_0x1109ba]===undefined);if(_0x1caf4f[_0x50fada(0x157)]>0x0)throw CliErrors['validation'](_0x50fada(0x155)+_0x1caf4f[_0x50fada(0x15c)](',\x20'));const _0x354c4e={};for(const _0x5af6f6 of ENTERPRISE_ROUTING_CDN_FIELDS){_0x354c4e[_0x5af6f6]=normalizeCdnBaseUrl(_0x5af6f6,_0xee0670[_0x5af6f6]);}const _0x1546a9={},_0x15515b={};for(const _0x501e5d of ENTERPRISE_ROUTING_DOMAIN_FIELDS){const _0x1fd3e4=_0x27f1fa[_0x501e5d];if(_0x1fd3e4===undefined)continue;const _0x251698=normalizeRoutingDomainValue(_0x501e5d,_0x1fd3e4);_0x1546a9[_0x501e5d]=_0x251698;const _0x4b3b50=ENTERPRISE_TO_LOCAL_FIELD[_0x501e5d];_0x4b3b50&&(_0x15515b[_0x4b3b50]=_0x251698);}return{'mode':_0x50fada(0x13a),'domains':_0x15515b,'manifestDomains':_0x1546a9,'cdn':_0x354c4e};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a270_0x3221b9=a270_0x35cb;function a270_0x35cb(_0x4279d4,_0x436e48){_0x4279d4=_0x4279d4-0x11d;const _0x42f866=a270_0x42f8();let _0x35cb98=_0x42f866[_0x4279d4];return _0x35cb98;}(function(_0x35f7b8,_0x7f3fc7){const _0x249252=a270_0x35cb,_0x583745=_0x35f7b8();while(!![]){try{const _0x51134e=-parseInt(_0x249252(0x126))/0x1*(-parseInt(_0x249252(0x123))/0x2)+parseInt(_0x249252(0x11d))/0x3*(-parseInt(_0x249252(0x124))/0x4)+parseInt(_0x249252(0x120))/0x5*(-parseInt(_0x249252(0x11e))/0x6)+-parseInt(_0x249252(0x128))/0x7*(-parseInt(_0x249252(0x127))/0x8)+parseInt(_0x249252(0x129))/0x9+-parseInt(_0x249252(0x12d))/0xa*(-parseInt(_0x249252(0x133))/0xb)+-parseInt(_0x249252(0x130))/0xc*(parseInt(_0x249252(0x125))/0xd);if(_0x51134e===_0x7f3fc7)break;else _0x583745['push'](_0x583745['shift']());}catch(_0x363da1){_0x583745['push'](_0x583745['shift']());}}}(a270_0x42f8,0x59ae9));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';function a270_0x42f8(){const _0x1a82ba=['official','pid','36zkRzNz','rabetbase.domain-routing.json','Independent\x20deployment\x20routing\x20requires\x20localDomain\x20and\x20certificateDomain\x20together.','132SQhPal','now','6OwCOBy','6IpLyUU','origin','2800365rlrOru','lovrabet','stringify','2098SrhYLW','179524FGWUXZ','4658888mUEOCe','251GMXHRa','244304dSiYvV','133VSprqC','6248547MadYnN','independent','http://localhost','/cert/lovrabet-dev.json','462080KWPcXv'];a270_0x42f8=function(){return _0x1a82ba;};return a270_0x42f8();}import{getOfficialRoutingProfile}from'../constant/routing-profile.js';export const PROJECT_DOMAIN_ROUTING_FILE_NAME=a270_0x3221b9(0x131);export const PROJECT_DOMAIN_ROUTING_PROTOCOL='lovrabet-project-domain-routing/v1';export function getProjectDomainRoutingManifest(){const _0x247bdc=a270_0x3221b9,_0x3d231c=getActiveRegion(),_0x547998=isIndependentDeployment(),_0x47520b=getOfficialRoutingProfile(_0x3d231c),_0x43d21c=getLocalDomain(),_0x1038b9=getCertificateDomain(),_0x4f0022=getActiveCdn();if(!!_0x43d21c!==!!_0x1038b9)throw new Error(_0x247bdc(0x132));return{'protocol':PROJECT_DOMAIN_ROUTING_PROTOCOL,'mode':_0x547998?_0x247bdc(0x12a):_0x247bdc(0x12e),'region':_0x547998?null:_0x3d231c,'domains':{'api':getApiDomain(),'runtime':getRuntimeDomain(),'user':getUserDomain(),'app':getAppDomain(),'skill':getSkillDomain(),'kb':getKbDomain()},'cdn':_0x4f0022,'local':_0x43d21c&&_0x1038b9?{'origin':_0x43d21c,'certificateUrl':_0x1038b9+_0x247bdc(0x12c)}:_0x547998?{'origin':_0x247bdc(0x12b)}:{'origin':_0x47520b['local'][_0x247bdc(0x11f)],'certificateUrl':_0x4f0022[_0x247bdc(0x121)]+_0x247bdc(0x12c)}};}export function writeProjectDomainRoutingManifest(_0x907d62){const _0xdaab74=a270_0x3221b9,_0x5d846d=getProjectDomainRoutingManifest(),_0x5902d6=join(_0x907d62,PROJECT_DOMAIN_ROUTING_FILE_NAME),_0xc6f09b=JSON[_0xdaab74(0x122)](_0x5d846d,null,0x2)+'\x0a';try{if(readFileSync(_0x5902d6,'utf8')===_0xc6f09b)return{'path':_0x5902d6,'manifest':_0x5d846d,'changed':![]};}catch{}const _0x4f4c4c=_0x5902d6+'.'+process[_0xdaab74(0x12f)]+'.'+Date[_0xdaab74(0x134)]()+'.tmp';try{writeFileSync(_0x4f4c4c,_0xc6f09b,{'encoding':'utf8','mode':0x1a4}),renameSync(_0x4f4c4c,_0x5902d6);}catch(_0xc3ae20){try{unlinkSync(_0x4f4c4c);}catch{}throw _0xc3ae20;}return{'path':_0x5902d6,'manifest':_0x5d846d,'changed':!![]};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
const a271_0x3a344d=a271_0x2879;(function(_0x4bbc07,_0x301d84){const _0x2afb50=a271_0x2879,_0x127c8c=_0x4bbc07();while(!![]){try{const _0x4d2e87=parseInt(_0x2afb50(0xc2))/0x1+parseInt(_0x2afb50(0xb9))/0x2*(parseInt(_0x2afb50(0xb8))/0x3)+parseInt(_0x2afb50(0xc0))/0x4+-parseInt(_0x2afb50(0xac))/0x5+-parseInt(_0x2afb50(0xca))/0x6*(-parseInt(_0x2afb50(0xbb))/0x7)+-parseInt(_0x2afb50(0xc8))/0x8+-parseInt(_0x2afb50(0xcb))/0x9*(parseInt(_0x2afb50(0xbc))/0xa);if(_0x4d2e87===_0x301d84)break;else _0x127c8c['push'](_0x127c8c['shift']());}catch(_0x3b3e94){_0x127c8c['push'](_0x127c8c['shift']());}}}(a271_0x4722,0x73fd1));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(_0x5f398f){const _0x40aee7=a271_0x2879;if(_0x5f398f[_0x40aee7(0xc3)]!==undefined&&_0x5f398f[_0x40aee7(0xc3)]!==null&&_0x5f398f[_0x40aee7(0xc3)]!=='')return{'value':_0x5f398f[_0x40aee7(0xc3)],'source':_0x40aee7(0xb1)};if(_0x5f398f[_0x40aee7(0xb4)]!==undefined&&_0x5f398f[_0x40aee7(0xb4)]!==null&&_0x5f398f['projectRegion']!=='')return{'value':_0x5f398f['projectRegion'],'source':'project'};if(_0x5f398f['globalRegion']!==undefined&&_0x5f398f[_0x40aee7(0xc7)]!==null&&_0x5f398f[_0x40aee7(0xc7)]!=='')return{'value':_0x5f398f[_0x40aee7(0xc7)],'source':'global'};if(_0x5f398f['mergedRegion']!==undefined&&_0x5f398f['mergedRegion']!==null&&_0x5f398f[_0x40aee7(0xbe)]!=='')return{'value':_0x5f398f[_0x40aee7(0xbe)],'source':_0x40aee7(0xc6)};return{'value':undefined,'source':_0x40aee7(0xba)};}function describeConfiguredRegion(_0x599a09){const _0x9b101f=a271_0x2879;return typeof _0x599a09===_0x9b101f(0xb2)?JSON[_0x9b101f(0xb6)](_0x599a09):_0x9b101f(0xbd)+(_0x599a09===null?_0x9b101f(0xb7):typeof _0x599a09);}export function resolveConfiguredRegion(_0x1a9a31,_0x367e37=a271_0x3a344d(0xc4)){const _0x26d94d=a271_0x3a344d;if(isInvalidLovrabetRegion(_0x1a9a31))throw CliErrors[_0x26d94d(0xb0)](_0x26d94d(0xad)+describeConfiguredRegion(_0x1a9a31)+'\x20in\x20'+_0x367e37+'.',_0x26d94d(0xbf)+CLI_BIN_NAME+_0x26d94d(0xaf));return normalizeLovrabetRegion(_0x1a9a31)??DEFAULT_LOVRABET_REGION;}export function resolveEffectiveRegion(_0x3164d3){const _0x5c5f02=a271_0x3a344d,_0x38f5b2=selectConfiguredRegion(_0x3164d3),_0x3deec3=_0x38f5b2[_0x5c5f02(0xc1)]==='app'?_0x3164d3['appName']?_0x5c5f02(0xb5)+_0x3164d3['appName']+'\x22':_0x5c5f02(0xb3):_0x38f5b2['source']===_0x5c5f02(0xc5)?'project\x20Rabetbase\x20configuration':_0x38f5b2[_0x5c5f02(0xc1)]===_0x5c5f02(0xc9)?_0x5c5f02(0xae):_0x5c5f02(0xc4);return{'region':resolveConfiguredRegion(_0x38f5b2['value'],_0x3deec3),'source':_0x38f5b2[_0x5c5f02(0xc1)]};}function a271_0x2879(_0x5cf671,_0x5317d3){_0x5cf671=_0x5cf671-0xac;const _0x472221=a271_0x4722();let _0x28791a=_0x472221[_0x5cf671];return _0x28791a;}function a271_0x4722(){const _0x1ab618=['global\x20Rabetbase\x20configuration','\x20doctor`\x20to\x20locate\x20and\x20repair\x20the\x20invalid\x20configuration\x20before\x20retrying.','validation','app','string','selected\x20app\x20profile','projectRegion','app\x20profile\x20\x22','stringify','null','10272DVCqMH','374lqeoNO','default','14LyHvBR','10DxYJCN','a\x20value\x20of\x20type\x20','mergedRegion','Run\x20`','182004UVUIoH','source','911134ygsRRO','appRegion','Rabetbase\x20configuration','project','config','globalRegion','2800296sJobqz','global','1229898vsVTXn','2639772ZcTuLW','4442275hFKIOD','Invalid\x20country/region\x20'];a271_0x4722=function(){return _0x1ab618;};return a271_0x4722();}
|
package/lib/config/schema.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a272_0x2ec802=a272_0x1f83;(function(_0x35b742,_0x22909f){const _0x1e3353=a272_0x1f83,_0x2baed9=_0x35b742();while(!![]){try{const _0x25e3a8=-parseInt(_0x1e3353(0x10b))/0x1*(-parseInt(_0x1e3353(0x13b))/0x2)+parseInt(_0x1e3353(0x128))/0x3+parseInt(_0x1e3353(0x141))/0x4+parseInt(_0x1e3353(0x137))/0x5*(-parseInt(_0x1e3353(0x12c))/0x6)+-parseInt(_0x1e3353(0x123))/0x7+parseInt(_0x1e3353(0x114))/0x8+parseInt(_0x1e3353(0x10d))/0x9*(-parseInt(_0x1e3353(0x120))/0xa);if(_0x25e3a8===_0x22909f)break;else _0x2baed9['push'](_0x2baed9['shift']());}catch(_0x18c32d){_0x2baed9['push'](_0x2baed9['shift']());}}}(a272_0xb7f3,0x87096));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_0x2ec802(0x11f),a272_0x2ec802(0x113),a272_0x2ec802(0x133),'format',a272_0x2ec802(0x13f),a272_0x2ec802(0x138),'routing',a272_0x2ec802(0x13c),a272_0x2ec802(0x140),'runtimeDomain',a272_0x2ec802(0x11e),a272_0x2ec802(0x122),a272_0x2ec802(0x129),a272_0x2ec802(0x115),a272_0x2ec802(0x130),a272_0x2ec802(0x10c)];export const TOP_LEVEL_CONFIG_KEYS=new Set([a272_0x2ec802(0x121),'env',a272_0x2ec802(0x133),a272_0x2ec802(0x135),a272_0x2ec802(0x11f),a272_0x2ec802(0x113),'apiDir',a272_0x2ec802(0x138),a272_0x2ec802(0x13c),a272_0x2ec802(0x140),'runtimeDomain',a272_0x2ec802(0x11e),a272_0x2ec802(0x122),'kbServiceDomain',a272_0x2ec802(0x115),a272_0x2ec802(0x130),a272_0x2ec802(0x10c)]);export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES],'region':[...ENABLED_LOVRABET_REGION_VALUES]};export function formatConfigKeyList(_0x1aa251){return[..._0x1aa251]['join'](',\x20');}function a272_0x1f83(_0x42932d,_0x4b7a5f){_0x42932d=_0x42932d-0x10a;const _0xb7f3d9=a272_0xb7f3();let _0x1f83fe=_0xb7f3d9[_0x42932d];return _0x1f83fe;}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function isTopLevelConfigKey(_0x24926b){return TOP_LEVEL_CONFIG_KEYS['has'](_0x24926b);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x2ba85b=a272_0x2ec802;return _0x2ba85b(0x125)+getTopLevelConfigKeySummary()+')';}export const APP_PROFILE_FLAG_KEY_MAP={'apiGroup':a272_0x2ec802(0x132),'region':'region','env':a272_0x2ec802(0x136),'apiDir':a272_0x2ec802(0x13d),'cookie':a272_0x2ec802(0x11f),'accessKey':a272_0x2ec802(0x113),'defaultFormat':a272_0x2ec802(0x135),'pageSize':'pageSize','riskLevel':a272_0x2ec802(0x13f),'locale':a272_0x2ec802(0x133)};export function getAppProfileFlagDefs(){const _0x17c6a7=a272_0x2ec802;return[{'name':'apiGroup','type':_0x17c6a7(0x111),'description':_0x17c6a7(0x13e)},{'name':'region','type':_0x17c6a7(0x111),'description':'Country/region\x20for\x20this\x20app\x20profile','enum':[...ENABLED_LOVRABET_REGION_VALUES]},{'name':_0x17c6a7(0x136),'type':'string','description':_0x17c6a7(0x12f),'enum':[...RABETBASE_ENV_VALUES]},{'name':'apiDir','type':_0x17c6a7(0x111),'description':'API\x20directory\x20path'},{'name':'cookie','type':_0x17c6a7(0x111),'description':_0x17c6a7(0x134),'hidden':!![]},{'name':'accessKey','type':_0x17c6a7(0x111),'description':_0x17c6a7(0x139),'hidden':!![]},{'name':_0x17c6a7(0x11a),'type':'string','description':_0x17c6a7(0x117),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':'pageSize','type':_0x17c6a7(0x126),'description':_0x17c6a7(0x118)},{'name':'riskLevel','type':_0x17c6a7(0x111),'description':_0x17c6a7(0x11c),'enum':[...RISK_LEVEL_VALUES]},{'name':_0x17c6a7(0x133),'type':'string','description':'App\x20locale\x20(not\x20CLI\x20language;\x20reserved\x20for\x20later\x20app\x20use)'}];}export function collectAppProfileOverrides(_0x4c8546){const _0x36a8e5=a272_0x2ec802,_0x1b47d3={};for(const [_0x4283d5,_0x433337]of Object[_0x36a8e5(0x10f)](APP_PROFILE_FLAG_KEY_MAP)){const _0x380e99=_0x4c8546(_0x4283d5);if(!_0x380e99)continue;_0x1b47d3[_0x433337]=_0x433337===_0x36a8e5(0x112)?Number(_0x380e99):_0x380e99;}return _0x1b47d3;}export function buildAppProfileListFields(_0x10c5b8){const _0x518c20=a272_0x2ec802;return{'apiGroup':_0x10c5b8['apiGroup']??null,'region':_0x10c5b8[_0x518c20(0x138)]??null,'env':_0x10c5b8[_0x518c20(0x136)]??null,'apiDir':_0x10c5b8['apiDir']??null,'hasCookie':!!_0x10c5b8[_0x518c20(0x11f)],'hasAccessKey':!!_0x10c5b8[_0x518c20(0x113)],'format':_0x10c5b8[_0x518c20(0x135)]??null,'pageSize':_0x10c5b8[_0x518c20(0x112)]??null,'riskLevel':_0x10c5b8[_0x518c20(0x13f)]??null,'locale':_0x10c5b8[_0x518c20(0x133)]??null};}export function buildAppDoctorFields(_0x165fd9,_0x2fd090){const _0x35dbc3=a272_0x2ec802;return{'region':{'value':_0x165fd9[_0x35dbc3(0x138)]||_0x2fd090['region'],'source':_0x165fd9[_0x35dbc3(0x138)]?_0x35dbc3(0x124):'inherit'},'env':{'value':_0x165fd9[_0x35dbc3(0x136)]||_0x2fd090[_0x35dbc3(0x136)],'source':_0x165fd9[_0x35dbc3(0x136)]?_0x35dbc3(0x124):_0x35dbc3(0x131)},'apiDir':{'value':_0x165fd9[_0x35dbc3(0x13d)]||_0x2fd090[_0x35dbc3(0x13d)],'source':_0x165fd9[_0x35dbc3(0x13d)]?_0x35dbc3(0x124):_0x35dbc3(0x131)},'cookie':{'value':_0x165fd9[_0x35dbc3(0x11f)]||_0x2fd090[_0x35dbc3(0x11f)],'source':_0x165fd9[_0x35dbc3(0x11f)]?_0x35dbc3(0x124):_0x35dbc3(0x131)},'accessKey':{'value':_0x165fd9[_0x35dbc3(0x113)]||_0x2fd090[_0x35dbc3(0x113)],'source':_0x165fd9[_0x35dbc3(0x113)]?_0x35dbc3(0x124):_0x35dbc3(0x131)}};}export function buildCanonicalAppConfig(_0x59aa12,_0x434317){const _0x4cf3fa=a272_0x2ec802,_0x5eabf0=_0x59aa12[_0x4cf3fa(0x142)](_0x16d7c0=>String(_0x16d7c0||'')[_0x4cf3fa(0x11d)]())['filter'](Boolean);if(_0x5eabf0[_0x4cf3fa(0x12a)]===0x0)return{};const _0x332a83={};for(const _0x49a5c4 of _0x5eabf0){_0x332a83[_0x49a5c4]=_0x434317&&!isProduction(_0x434317)?{'appcode':_0x49a5c4,'env':_0x434317}:{'appcode':_0x49a5c4};}return _0x5eabf0[_0x4cf3fa(0x12a)]>0x1?{'apps':_0x332a83,'defaultApp':_0x5eabf0[0x0]}:{'apps':_0x332a83};}export function normalizeStoredDefaultApp(_0x21aa45,_0x15aa54){const _0x2f61b5=a272_0x2ec802,_0x1ec34b=_0x21aa45[_0x2f61b5(0x12e)]&&typeof _0x21aa45[_0x2f61b5(0x12e)]===_0x2f61b5(0x12d)?_0x21aa45['apps']:{},_0x424c85=Object[_0x2f61b5(0x119)](_0x1ec34b);if(_0x424c85[_0x2f61b5(0x12a)]<=0x1)return delete _0x21aa45[_0x2f61b5(0x13a)],undefined;const _0x2dde67=typeof _0x21aa45['defaultApp']===_0x2f61b5(0x111)&&_0x1ec34b[_0x21aa45[_0x2f61b5(0x13a)]]?_0x21aa45[_0x2f61b5(0x13a)]:undefined,_0x5661d5=_0x15aa54&&_0x1ec34b[_0x15aa54]?_0x15aa54:_0x2dde67;if(_0x5661d5)return _0x21aa45[_0x2f61b5(0x13a)]=_0x5661d5,_0x5661d5;return delete _0x21aa45[_0x2f61b5(0x13a)],undefined;}export function buildCanonicalProjectConfig(_0x59b9c5,_0xab0724){const _0x321364=a272_0x2ec802,{appCodes:appCodes=[],env:_0x5b6f29,metadata:_0x463d51}=_0xab0724,_0x2ce397={..._0x59b9c5,..._0x463d51||{}};delete _0x2ce397[_0x321364(0x121)],delete _0x2ce397[_0x321364(0x124)];const _0x3a12ba=_0x5b6f29||(typeof _0x2ce397[_0x321364(0x136)]===_0x321364(0x111)?_0x2ce397[_0x321364(0x136)]:'')||DEFAULT_CONFIG_VALUES['env'];if(isProduction(_0x3a12ba))delete _0x2ce397[_0x321364(0x136)];else _0x2ce397['env']=_0x3a12ba;const _0x3b626a=buildCanonicalAppConfig(appCodes,_0x3a12ba);if(Object[_0x321364(0x119)](_0x3b626a)[_0x321364(0x12a)]>0x0){_0x2ce397[_0x321364(0x12e)]=_0x3b626a['apps'];if(_0x3b626a[_0x321364(0x13a)])_0x2ce397[_0x321364(0x13a)]=_0x3b626a[_0x321364(0x13a)];else delete _0x2ce397[_0x321364(0x13a)];}return normalizeConfigForWrite(_0x2ce397);}function isRecord(_0xd37e27){const _0x3e49c7=a272_0x2ec802;return!!_0xd37e27&&typeof _0xd37e27===_0x3e49c7(0x12d)&&!Array[_0x3e49c7(0x10a)](_0xd37e27);}export function normalizeConfigForWrite(_0x41ddb1){const _0x2dba24=a272_0x2ec802,_0xb87391={..._0x41ddb1},_0x27f405=isRecord(_0x41ddb1['apps'])?_0x41ddb1['apps']:undefined,_0xb2908a=_0x27f405?Object[_0x2dba24(0x11b)](Object[_0x2dba24(0x10f)](_0x27f405)[_0x2dba24(0x142)](([_0xe304cf,_0x482427])=>[_0xe304cf,isRecord(_0x482427)?{..._0x482427}:_0x482427])):undefined;if(_0xb2908a){const _0x1f64dd=typeof _0xb87391[_0x2dba24(0x136)]===_0x2dba24(0x111)?_0xb87391[_0x2dba24(0x136)]:undefined,_0x121d6f=Object[_0x2dba24(0x10e)](_0xb2908a)[_0x2dba24(0x116)](_0x5a0bb2=>isRecord(_0x5a0bb2)&&typeof _0x5a0bb2[_0x2dba24(0x136)]==='string'&&isProduction(_0x5a0bb2[_0x2dba24(0x136)]));if(_0x1f64dd&&isDaily(_0x1f64dd)&&_0x121d6f){for(const _0x11bb02 of Object[_0x2dba24(0x10e)](_0xb2908a)){if(!isRecord(_0x11bb02))continue;if(_0x11bb02[_0x2dba24(0x136)]===undefined)_0x11bb02[_0x2dba24(0x136)]=_0x1f64dd;}delete _0xb87391[_0x2dba24(0x136)];}for(const _0x3c3c02 of Object[_0x2dba24(0x10e)](_0xb2908a)){isRecord(_0x3c3c02)&&typeof _0x3c3c02[_0x2dba24(0x136)]===_0x2dba24(0x111)&&isProduction(_0x3c3c02[_0x2dba24(0x136)])&&delete _0x3c3c02['env'];}_0xb87391[_0x2dba24(0x12e)]=_0xb2908a;}return typeof _0xb87391[_0x2dba24(0x136)]===_0x2dba24(0x111)&&isProduction(_0xb87391[_0x2dba24(0x136)])&&delete _0xb87391[_0x2dba24(0x136)],_0xb87391;}const LOCALE_MAP={'zh':a272_0x2ec802(0x127),'zh-cn':a272_0x2ec802(0x127),'zh_cn':a272_0x2ec802(0x127),'en':a272_0x2ec802(0x12b),'en-us':a272_0x2ec802(0x12b),'en_us':a272_0x2ec802(0x12b)};function a272_0xb7f3(){const _0x173316=['Target\x20environment','localDomain','inherit','apiGroup','locale','Auth\x20cookie','format','env','1675TPTtbc','region','Access\x20key','defaultApp','684946eyjLal','userDomain','apiDir','Join\x20key\x20for\x20app\x20profiles\x20that\x20share\x20one\x20generated\x20API\x20model\x20registry','riskLevel','apiDomain','2368040AVlrCU','map','isArray','1OfkRAb','certificateDomain','11520NhKZge','values','entries','toLowerCase','string','pageSize','accessKey','3758632zMpCSC','appDomain','some','Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','Default\x20page\x20size','keys','defaultFormat','fromEntries','Risk\x20level','trim','skillDomain','cookie','1840LZGWLy','appcode','kbDomain','4851686JOoSHD','app','Config\x20key\x20(','number','zh-CN','1284483eWGdTV','kbServiceDomain','length','en-US','6282qyvpaS','object','apps'];a272_0xb7f3=function(){return _0x173316;};return a272_0xb7f3();}export function normalizeLocale(_0x4629b7){const _0x3fb3fe=a272_0x2ec802;if(!_0x4629b7)return null;return LOCALE_MAP[_0x4629b7[_0x3fb3fe(0x110)]()]??null;}
|
|
1
|
+
const a272_0x52ac85=a272_0x26ba;(function(_0x4f8787,_0x4bd9cc){const _0x5637d6=a272_0x26ba,_0x5628bd=_0x4f8787();while(!![]){try{const _0x3bdacc=-parseInt(_0x5637d6(0x197))/0x1*(parseInt(_0x5637d6(0x18d))/0x2)+-parseInt(_0x5637d6(0x1a4))/0x3*(parseInt(_0x5637d6(0x17c))/0x4)+parseInt(_0x5637d6(0x184))/0x5+-parseInt(_0x5637d6(0x1a6))/0x6*(parseInt(_0x5637d6(0x193))/0x7)+-parseInt(_0x5637d6(0x19a))/0x8+parseInt(_0x5637d6(0x191))/0x9*(-parseInt(_0x5637d6(0x1a5))/0xa)+parseInt(_0x5637d6(0x1ad))/0xb;if(_0x3bdacc===_0x4bd9cc)break;else _0x5628bd['push'](_0x5628bd['shift']());}catch(_0x5870f0){_0x5628bd['push'](_0x5628bd['shift']());}}}(a272_0x3799,0xbfb0e));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{isDaily,isProduction,RABETBASE_ENV_VALUES}from'../constant/env.js';function a272_0x3799(){const _0x35d85b=['App\x20locale\x20(not\x20CLI\x20language;\x20reserved\x20for\x20later\x20app\x20use)','trim','3TXjaeq','35390URNOCS','414jaywpB','appcode','apiDir','env','values','Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','keys','50910860lLUtQp','number','kbDomain','region','string','kbServiceDomain','Risk\x20level','locale','some','2975204YyouDt','Access\x20key','en-US','apiDomain','pageSize','certificateDomain','cookie','app','5369610qxEUkD','accessKey','object','map','defaultFormat','has','Default\x20page\x20size','Target\x20environment','appDomain','24554icwCuV','defaultApp','API\x20directory\x20path','length','1944UjaJAO','runtimeDomain','148547QGWoIW','format','riskLevel','apps','111ORXwkY','entries','userDomain','4654360AYfEhq','apiGroup','localDomain','filter','inherit','toLowerCase','zh-CN','Join\x20key\x20for\x20app\x20profiles\x20that\x20share\x20one\x20generated\x20API\x20model\x20registry'];a272_0x3799=function(){return _0x35d85b;};return a272_0x3799();}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_0x52ac85(0x182),a272_0x52ac85(0x185),a272_0x52ac85(0x1b4),a272_0x52ac85(0x194),'riskLevel',a272_0x52ac85(0x1b0),'routing',a272_0x52ac85(0x199),a272_0x52ac85(0x17f),a272_0x52ac85(0x192),'skillDomain',a272_0x52ac85(0x1af),a272_0x52ac85(0x1b2),a272_0x52ac85(0x18c),a272_0x52ac85(0x19c),a272_0x52ac85(0x181)];export const TOP_LEVEL_CONFIG_KEYS=new Set([a272_0x52ac85(0x1a7),a272_0x52ac85(0x1a9),'locale',a272_0x52ac85(0x194),'cookie',a272_0x52ac85(0x185),a272_0x52ac85(0x1a8),a272_0x52ac85(0x1b0),a272_0x52ac85(0x199),'apiDomain',a272_0x52ac85(0x192),'skillDomain','kbDomain','kbServiceDomain',a272_0x52ac85(0x18c),a272_0x52ac85(0x19c),a272_0x52ac85(0x181)]);export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES],'region':[...ENABLED_LOVRABET_REGION_VALUES]};export function formatConfigKeyList(_0x244a52){return[..._0x244a52]['join'](',\x20');}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function isTopLevelConfigKey(_0x51a3fa){const _0xbb2a6e=a272_0x52ac85;return TOP_LEVEL_CONFIG_KEYS[_0xbb2a6e(0x189)](_0x51a3fa);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){return'Config\x20key\x20('+getTopLevelConfigKeySummary()+')';}export const APP_PROFILE_FLAG_KEY_MAP={'apiGroup':a272_0x52ac85(0x19b),'region':a272_0x52ac85(0x1b0),'env':'env','apiDir':a272_0x52ac85(0x1a8),'cookie':a272_0x52ac85(0x182),'accessKey':a272_0x52ac85(0x185),'defaultFormat':'format','pageSize':a272_0x52ac85(0x180),'riskLevel':a272_0x52ac85(0x195),'locale':a272_0x52ac85(0x1b4)};export function getAppProfileFlagDefs(){const _0x3e5f38=a272_0x52ac85;return[{'name':'apiGroup','type':_0x3e5f38(0x1b1),'description':_0x3e5f38(0x1a1)},{'name':_0x3e5f38(0x1b0),'type':_0x3e5f38(0x1b1),'description':'Country/region\x20for\x20this\x20app\x20profile','enum':[...ENABLED_LOVRABET_REGION_VALUES]},{'name':'env','type':'string','description':_0x3e5f38(0x18b),'enum':[...RABETBASE_ENV_VALUES]},{'name':_0x3e5f38(0x1a8),'type':_0x3e5f38(0x1b1),'description':_0x3e5f38(0x18f)},{'name':_0x3e5f38(0x182),'type':_0x3e5f38(0x1b1),'description':'Auth\x20cookie','hidden':!![]},{'name':_0x3e5f38(0x185),'type':'string','description':_0x3e5f38(0x17d),'hidden':!![]},{'name':_0x3e5f38(0x188),'type':'string','description':_0x3e5f38(0x1ab),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':_0x3e5f38(0x180),'type':_0x3e5f38(0x1ae),'description':_0x3e5f38(0x18a)},{'name':_0x3e5f38(0x195),'type':_0x3e5f38(0x1b1),'description':_0x3e5f38(0x1b3),'enum':[...RISK_LEVEL_VALUES]},{'name':_0x3e5f38(0x1b4),'type':_0x3e5f38(0x1b1),'description':_0x3e5f38(0x1a2)}];}export function collectAppProfileOverrides(_0x3c9500){const _0x2efb18=a272_0x52ac85,_0x102b9d={};for(const [_0x47b6bd,_0x319bb4]of Object[_0x2efb18(0x198)](APP_PROFILE_FLAG_KEY_MAP)){const _0x1aaa15=_0x3c9500(_0x47b6bd);if(!_0x1aaa15)continue;_0x102b9d[_0x319bb4]=_0x319bb4===_0x2efb18(0x180)?Number(_0x1aaa15):_0x1aaa15;}return _0x102b9d;}function a272_0x26ba(_0x29b6a5,_0x5c4ba9){_0x29b6a5=_0x29b6a5-0x17b;const _0x3799d3=a272_0x3799();let _0x26baa7=_0x3799d3[_0x29b6a5];return _0x26baa7;}export function buildAppProfileListFields(_0x32ce05){const _0x629482=a272_0x52ac85;return{'apiGroup':_0x32ce05[_0x629482(0x19b)]??null,'region':_0x32ce05['region']??null,'env':_0x32ce05[_0x629482(0x1a9)]??null,'apiDir':_0x32ce05[_0x629482(0x1a8)]??null,'hasCookie':!!_0x32ce05[_0x629482(0x182)],'hasAccessKey':!!_0x32ce05[_0x629482(0x185)],'format':_0x32ce05[_0x629482(0x194)]??null,'pageSize':_0x32ce05[_0x629482(0x180)]??null,'riskLevel':_0x32ce05[_0x629482(0x195)]??null,'locale':_0x32ce05[_0x629482(0x1b4)]??null};}export function buildAppDoctorFields(_0x34ab42,_0x5c00ee){const _0x41f65f=a272_0x52ac85;return{'region':{'value':_0x34ab42[_0x41f65f(0x1b0)]||_0x5c00ee[_0x41f65f(0x1b0)],'source':_0x34ab42[_0x41f65f(0x1b0)]?'app':_0x41f65f(0x19e)},'env':{'value':_0x34ab42[_0x41f65f(0x1a9)]||_0x5c00ee[_0x41f65f(0x1a9)],'source':_0x34ab42[_0x41f65f(0x1a9)]?'app':_0x41f65f(0x19e)},'apiDir':{'value':_0x34ab42['apiDir']||_0x5c00ee[_0x41f65f(0x1a8)],'source':_0x34ab42[_0x41f65f(0x1a8)]?_0x41f65f(0x183):'inherit'},'cookie':{'value':_0x34ab42[_0x41f65f(0x182)]||_0x5c00ee[_0x41f65f(0x182)],'source':_0x34ab42[_0x41f65f(0x182)]?_0x41f65f(0x183):_0x41f65f(0x19e)},'accessKey':{'value':_0x34ab42['accessKey']||_0x5c00ee[_0x41f65f(0x185)],'source':_0x34ab42[_0x41f65f(0x185)]?_0x41f65f(0x183):_0x41f65f(0x19e)}};}export function buildCanonicalAppConfig(_0x153f72,_0x1c138c){const _0x4c5cdf=a272_0x52ac85,_0x23d4dd=_0x153f72[_0x4c5cdf(0x187)](_0x379e84=>String(_0x379e84||'')[_0x4c5cdf(0x1a3)]())[_0x4c5cdf(0x19d)](Boolean);if(_0x23d4dd[_0x4c5cdf(0x190)]===0x0)return{};const _0x2dc115={};for(const _0xae3ff1 of _0x23d4dd){_0x2dc115[_0xae3ff1]=_0x1c138c&&!isProduction(_0x1c138c)?{'appcode':_0xae3ff1,'env':_0x1c138c}:{'appcode':_0xae3ff1};}return _0x23d4dd[_0x4c5cdf(0x190)]>0x1?{'apps':_0x2dc115,'defaultApp':_0x23d4dd[0x0]}:{'apps':_0x2dc115};}export function normalizeStoredDefaultApp(_0x1a03c8,_0x4f5f87){const _0x51e9ab=a272_0x52ac85,_0x2daaae=_0x1a03c8['apps']&&typeof _0x1a03c8[_0x51e9ab(0x196)]===_0x51e9ab(0x186)?_0x1a03c8[_0x51e9ab(0x196)]:{},_0x3ace60=Object[_0x51e9ab(0x1ac)](_0x2daaae);if(_0x3ace60[_0x51e9ab(0x190)]<=0x1)return delete _0x1a03c8[_0x51e9ab(0x18e)],undefined;const _0x1febd8=typeof _0x1a03c8[_0x51e9ab(0x18e)]===_0x51e9ab(0x1b1)&&_0x2daaae[_0x1a03c8['defaultApp']]?_0x1a03c8[_0x51e9ab(0x18e)]:undefined,_0x29789d=_0x4f5f87&&_0x2daaae[_0x4f5f87]?_0x4f5f87:_0x1febd8;if(_0x29789d)return _0x1a03c8[_0x51e9ab(0x18e)]=_0x29789d,_0x29789d;return delete _0x1a03c8[_0x51e9ab(0x18e)],undefined;}export function buildCanonicalProjectConfig(_0x5d33a8,_0x16004c){const _0x354e8e=a272_0x52ac85,{appCodes:appCodes=[],env:_0x2ca329,metadata:_0x29ed62}=_0x16004c,_0x4be512={..._0x5d33a8,..._0x29ed62||{}};delete _0x4be512[_0x354e8e(0x1a7)],delete _0x4be512['app'];const _0xa271a7=_0x2ca329||(typeof _0x4be512['env']===_0x354e8e(0x1b1)?_0x4be512[_0x354e8e(0x1a9)]:'')||DEFAULT_CONFIG_VALUES[_0x354e8e(0x1a9)];if(isProduction(_0xa271a7))delete _0x4be512[_0x354e8e(0x1a9)];else _0x4be512[_0x354e8e(0x1a9)]=_0xa271a7;const _0x2f6463=buildCanonicalAppConfig(appCodes,_0xa271a7);if(Object[_0x354e8e(0x1ac)](_0x2f6463)[_0x354e8e(0x190)]>0x0){_0x4be512['apps']=_0x2f6463['apps'];if(_0x2f6463[_0x354e8e(0x18e)])_0x4be512[_0x354e8e(0x18e)]=_0x2f6463[_0x354e8e(0x18e)];else delete _0x4be512['defaultApp'];}return normalizeConfigForWrite(_0x4be512);}function isRecord(_0x491257){const _0x6d23ff=a272_0x52ac85;return!!_0x491257&&typeof _0x491257===_0x6d23ff(0x186)&&!Array['isArray'](_0x491257);}export function normalizeConfigForWrite(_0x2a59b5){const _0x3fb67b=a272_0x52ac85,_0x3b69d5={..._0x2a59b5},_0x1fca31=isRecord(_0x2a59b5[_0x3fb67b(0x196)])?_0x2a59b5[_0x3fb67b(0x196)]:undefined,_0x4db719=_0x1fca31?Object['fromEntries'](Object[_0x3fb67b(0x198)](_0x1fca31)['map'](([_0x56ccec,_0x4afad2])=>[_0x56ccec,isRecord(_0x4afad2)?{..._0x4afad2}:_0x4afad2])):undefined;if(_0x4db719){const _0xb8d5e7=typeof _0x3b69d5['env']===_0x3fb67b(0x1b1)?_0x3b69d5['env']:undefined,_0x3b8e23=Object[_0x3fb67b(0x1aa)](_0x4db719)[_0x3fb67b(0x17b)](_0x4dff2c=>isRecord(_0x4dff2c)&&typeof _0x4dff2c[_0x3fb67b(0x1a9)]===_0x3fb67b(0x1b1)&&isProduction(_0x4dff2c[_0x3fb67b(0x1a9)]));if(_0xb8d5e7&&isDaily(_0xb8d5e7)&&_0x3b8e23){for(const _0x41e16f of Object[_0x3fb67b(0x1aa)](_0x4db719)){if(!isRecord(_0x41e16f))continue;if(_0x41e16f[_0x3fb67b(0x1a9)]===undefined)_0x41e16f['env']=_0xb8d5e7;}delete _0x3b69d5[_0x3fb67b(0x1a9)];}for(const _0x281c98 of Object[_0x3fb67b(0x1aa)](_0x4db719)){isRecord(_0x281c98)&&typeof _0x281c98['env']===_0x3fb67b(0x1b1)&&isProduction(_0x281c98[_0x3fb67b(0x1a9)])&&delete _0x281c98[_0x3fb67b(0x1a9)];}_0x3b69d5['apps']=_0x4db719;}return typeof _0x3b69d5[_0x3fb67b(0x1a9)]===_0x3fb67b(0x1b1)&&isProduction(_0x3b69d5[_0x3fb67b(0x1a9)])&&delete _0x3b69d5[_0x3fb67b(0x1a9)],_0x3b69d5;}const LOCALE_MAP={'zh':'zh-CN','zh-cn':a272_0x52ac85(0x1a0),'zh_cn':a272_0x52ac85(0x1a0),'en':'en-US','en-us':'en-US','en_us':a272_0x52ac85(0x17e)};export function normalizeLocale(_0xe40e06){const _0x120640=a272_0x52ac85;if(!_0xe40e06)return null;return LOCALE_MAP[_0xe40e06[_0x120640(0x19f)]()]??null;}
|
package/lib/constant/cdn.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a273_0x452d(){const _0x3e61c4=['2JawVIC','sub-app-react-demo-','templates/projects','56758DuxFbF','8227088UJVDmS','185065xmFPNP','140NZHEpG','27779890lyxIej','.zip','4174686YqYkHx','2360937FripHE','131341xrbnGj','84MBcVwK','freeze','https://g.lovrabet.com','rabetbase-cli','sub-app-react-demo-beta.zip'];a273_0x452d=function(){return _0x3e61c4;};return a273_0x452d();}const a273_0x531f43=a273_0x4d76;(function(_0xf106a8,_0x445719){const _0x5e1e07=a273_0x4d76,_0x3ee776=_0xf106a8();while(!![]){try{const _0x310b73=-parseInt(_0x5e1e07(0x102))/0x1+parseInt(_0x5e1e07(0xff))/0x2*(-parseInt(_0x5e1e07(0xf8))/0x3)+-parseInt(_0x5e1e07(0x105))/0x4*(parseInt(_0x5e1e07(0x104))/0x5)+parseInt(_0x5e1e07(0xfa))/0x6*(-parseInt(_0x5e1e07(0xf9))/0x7)+parseInt(_0x5e1e07(0x103))/0x8+-parseInt(_0x5e1e07(0xf7))/0x9+parseInt(_0x5e1e07(0xf5))/0xa;if(_0x310b73===_0x445719)break;else _0x3ee776['push'](_0x3ee776['shift']());}catch(_0x37097f){_0x3ee776['push'](_0x3ee776['shift']());}}}(a273_0x452d,0xe5a67));import{getActiveCdn}from'../constant/domain.js';const RABETBASE_CDN_PROJECT=a273_0x531f43(0xfd),RABETBASE_CDN_CONFIG_ORIGIN=a273_0x531f43(0xfc),CDN_CONFIG_PATH='config/index.json',PROJECT_TEMPLATE_ASSET_PATH=a273_0x531f43(0x101),PROJECT_TEMPLATE_ARCHIVE_NAMES=Object[a273_0x531f43(0xfb)]({'release':'sub-app-react-demo.zip','beta':a273_0x531f43(0xfe)});export const RABETBASE_CDN_PROJECT_PATH='/dist/'+RABETBASE_CDN_PROJECT;function getRabetbaseCdnBaseUrl(){return''+getActiveCdn()['lovrabet']+RABETBASE_CDN_PROJECT_PATH;}function a273_0x4d76(_0x3284b9,_0x2b4394){_0x3284b9=_0x3284b9-0xf5;const _0x452d6e=a273_0x452d();let _0x4d76bc=_0x452d6e[_0x3284b9];return _0x4d76bc;}export function getCliVersionPolicyUrl(){return''+RABETBASE_CDN_CONFIG_ORIGIN+RABETBASE_CDN_PROJECT_PATH+'/'+CDN_CONFIG_PATH;}export function getProjectTemplateAssetBaseUrl(){return getRabetbaseCdnBaseUrl()+'/'+PROJECT_TEMPLATE_ASSET_PATH;}export function getProjectTemplateLegacyAssetBaseUrl(){return''+RABETBASE_CDN_CONFIG_ORIGIN+RABETBASE_CDN_PROJECT_PATH+'/'+PROJECT_TEMPLATE_ASSET_PATH;}export function getProjectTemplateRelativeUrl(_0x2ec157,_0x54ad78){const _0x6170dd=a273_0x531f43,_0x6e3e38=_0x54ad78?_0x6170dd(0x100)+_0x54ad78+_0x6170dd(0xf6):PROJECT_TEMPLATE_ARCHIVE_NAMES[_0x2ec157];return RABETBASE_CDN_PROJECT_PATH+'/'+PROJECT_TEMPLATE_ASSET_PATH+'/'+_0x6e3e38;}
|
package/lib/constant/cli.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a274_0x31042e=a274_0x3165;(function(_0x268cf9,_0x536c8e){const _0x48bf1e=a274_0x3165,_0x3b50a7=_0x268cf9();while(!![]){try{const _0x5b22bf=-parseInt(_0x48bf1e(0x219))/0x1+-parseInt(_0x48bf1e(0x214))/0x2+parseInt(_0x48bf1e(0x235))/0x3+parseInt(_0x48bf1e(0x1f7))/0x4*(-parseInt(_0x48bf1e(0x264))/0x5)+parseInt(_0x48bf1e(0x261))/0x6*(-parseInt(_0x48bf1e(0x1f1))/0x7)+parseInt(_0x48bf1e(0x265))/0x8+parseInt(_0x48bf1e(0x25e))/0x9;if(_0x5b22bf===_0x536c8e)break;else _0x3b50a7['push'](_0x3b50a7['shift']());}catch(_0x5d7b98){_0x3b50a7['push'](_0x3b50a7['shift']());}}}(a274_0x16e4,0x2b0f5));export const CLI_BIN_NAME=a274_0x31042e(0x233);function a274_0x3165(_0x194210,_0x4aff50){_0x194210=_0x194210-0x1e8;const _0x16e418=a274_0x16e4();let _0x3165f3=_0x16e418[_0x194210];return _0x3165f3;}export const CLI_DISPLAY_NAME=a274_0x31042e(0x21f);function a274_0x16e4(){const _0x54484f=['sqlcode','key','<name>','Rabetbase\x20CLI','Skip\x20confirmation\x20for\x20high-risk\x20writes','value','Search\x20query','flow-name','sql','task-id','Comma-separated\x20metadata\x20codes','Force\x20non-interactive\x20mode\x20(CI)','env','description-file','watch','flowCode','topk','boolean','Show\x20help','fromEntries','Comma-separated\x20menu\x20IDs','descriptionFile','flowType','rabetbase','Operation\x20type','971952HhuovC','DB\x20ID','Watch\x20mode','@lovrabet/rabetbase-cli','type','label','taskId','page','Maximum\x20search\x20hits','reveal','yes','query','flow-code','Verbose\x20output','Expected\x20current\x20parent\x20menu\x20id','stdin','Parent\x20menu\x20id','help','dbid','Tags','expect-path','production\x20|\x20daily','JSON\x20params','schemas','functionNode','Use\x20project\x20config\x20scope','Use\x20remote','menuIds','confirm','expectPath','parentId','enable-bff-save','params','Record\x20ID','Expected\x20affected\x20count','fromEnv','clear','Environment','meowKey','zh-CN\x20|\x20en-US','menu-ids','2887245SGYLzk','Override\x20appcode','SQL\x20string','6aPWExa','Dataset\x20code','pagesize','1701215bJKncA','170808grTxfx','operation','name','flow-status','global','datasetcode','appcode','locale','title','function-node','format','dataset-code','expectedCount','Flow\x20code','app','flowStatus','Read\x20value\x20from\x20environment\x20variable','skip-imports','expected-children-count','string','operation-type','Select\x20app\x20profile\x20by\x20name','dbId','pageSize','target','codes','479059ywgaGM','Expected\x20current\x20child\x20count','<code>','dryRun','project','Type\x20filter','4qPQJYu','Name','output','Code\x20filter','non-interactive','Page\x20number','verbose','tags','force','Force\x20overwrite','Output\x20format','Flow\x20status','Apply\x20to\x20all','db-id','Output\x20path','expect-parent-id','App\x20locale\x20(workspace\x20pass-through;\x20not\x20CLI\x20language)','sort','SQL\x20code','description','file','Config\x20value','sqlname','page-size','expectedChildrenCount','Page\x20size','Enable\x20Backend\x20Function\x20save','map','Read\x20value\x20from\x20stdin','117154PygaXy','code','dry-run','Clear','datasetCode','22510QmLtZw','Menu\x20label','expectParentId'];a274_0x16e4=function(){return _0x54484f;};return a274_0x16e4();}export const NPM_PACKAGE_NAME=a274_0x31042e(0x238);export const GLOBAL_FLAGS=[{'name':'appcode','meowKey':a274_0x31042e(0x26b),'type':'string','description':a274_0x31042e(0x25f),'hint':a274_0x31042e(0x1f3)},{'name':a274_0x31042e(0x273),'meowKey':a274_0x31042e(0x273),'type':a274_0x31042e(0x1ea),'description':a274_0x31042e(0x1ec),'hint':a274_0x31042e(0x21e)},{'name':a274_0x31042e(0x228),'meowKey':a274_0x31042e(0x228),'type':'string','description':a274_0x31042e(0x25a),'hint':a274_0x31042e(0x24a)},{'name':a274_0x31042e(0x26f),'meowKey':'format','type':a274_0x31042e(0x1ea),'description':a274_0x31042e(0x201),'hint':'json\x20|\x20pretty\x20|\x20compress'},{'name':'jq','meowKey':'jq','type':'string','description':'Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','hint':'<expr>'},{'name':'dry-run','meowKey':a274_0x31042e(0x1f4),'type':'boolean','description':'Preview\x20operation\x20without\x20executing'},{'name':a274_0x31042e(0x23f),'meowKey':a274_0x31042e(0x23f),'type':a274_0x31042e(0x22d),'description':a274_0x31042e(0x220)},{'name':a274_0x31042e(0x1fb),'meowKey':'nonInteractive','type':a274_0x31042e(0x22d),'description':a274_0x31042e(0x227)},{'name':a274_0x31042e(0x269),'meowKey':a274_0x31042e(0x269),'type':a274_0x31042e(0x22d),'description':'Use\x20global\x20config\x20scope'},{'name':a274_0x31042e(0x1f5),'meowKey':'project','type':a274_0x31042e(0x22d),'description':a274_0x31042e(0x24e)},{'name':'ci','meowKey':'ci','type':a274_0x31042e(0x22d),'description':'Alias\x20for\x20--non-interactive','hidden':!![]},{'name':a274_0x31042e(0x246),'meowKey':'help','type':a274_0x31042e(0x22d),'description':a274_0x31042e(0x22e)},{'name':a274_0x31042e(0x26c),'meowKey':a274_0x31042e(0x26c),'type':a274_0x31042e(0x1ea),'description':a274_0x31042e(0x207),'hidden':!![],'hint':a274_0x31042e(0x25c)},{'name':a274_0x31042e(0x267),'meowKey':'name','type':a274_0x31042e(0x1ea),'description':a274_0x31042e(0x1f8),'hidden':!![]},{'name':a274_0x31042e(0x26d),'meowKey':a274_0x31042e(0x26d),'type':a274_0x31042e(0x1ea),'description':'Title','hidden':!![]},{'name':a274_0x31042e(0x240),'meowKey':a274_0x31042e(0x240),'type':'string','description':a274_0x31042e(0x222),'hidden':!![]},{'name':a274_0x31042e(0x22c),'meowKey':a274_0x31042e(0x22c),'type':'string','description':a274_0x31042e(0x23d),'hidden':!![]},{'name':a274_0x31042e(0x259),'meowKey':a274_0x31042e(0x259),'type':a274_0x31042e(0x22d),'description':a274_0x31042e(0x217),'hidden':!![]},{'name':a274_0x31042e(0x22a),'meowKey':a274_0x31042e(0x22a),'type':'boolean','description':a274_0x31042e(0x237),'hidden':!![]},{'name':a274_0x31042e(0x1f9),'meowKey':'output','type':a274_0x31042e(0x1ea),'description':a274_0x31042e(0x205),'hidden':!![]},{'name':a274_0x31042e(0x255),'meowKey':a274_0x31042e(0x255),'type':a274_0x31042e(0x1ea),'description':a274_0x31042e(0x24b),'hidden':!![]},{'name':a274_0x31042e(0x26a),'meowKey':'datasetcode','type':a274_0x31042e(0x1ea),'description':a274_0x31042e(0x262),'hidden':!![]},{'name':'all','meowKey':'all','type':a274_0x31042e(0x22d),'description':a274_0x31042e(0x203),'hidden':!![]},{'name':a274_0x31042e(0x254),'meowKey':'enableBffSave','type':'boolean','description':a274_0x31042e(0x211),'hidden':!![]},{'name':'id','meowKey':'id','type':a274_0x31042e(0x1ea),'description':a274_0x31042e(0x256),'hidden':!![]},{'name':a274_0x31042e(0x239),'meowKey':a274_0x31042e(0x239),'type':a274_0x31042e(0x1ea),'description':a274_0x31042e(0x1f6),'hidden':!![]},{'name':a274_0x31042e(0x20b),'meowKey':a274_0x31042e(0x20b),'type':a274_0x31042e(0x1ea),'description':'File\x20path','hidden':!![]},{'name':a274_0x31042e(0x241),'meowKey':a274_0x31042e(0x22b),'type':a274_0x31042e(0x1ea),'description':a274_0x31042e(0x272),'hidden':!![]},{'name':a274_0x31042e(0x223),'meowKey':'flowName','type':'string','description':'Flow\x20name','hidden':!![]},{'name':a274_0x31042e(0x268),'meowKey':a274_0x31042e(0x274),'type':a274_0x31042e(0x1ea),'description':a274_0x31042e(0x202),'hidden':!![]},{'name':'flow-type','meowKey':a274_0x31042e(0x232),'type':'string','description':'Flow\x20type','hidden':!![]},{'name':a274_0x31042e(0x270),'meowKey':a274_0x31042e(0x218),'type':a274_0x31042e(0x1ea),'description':'Dataset\x20code','hidden':!![]},{'name':'sqlcode','meowKey':a274_0x31042e(0x21c),'type':a274_0x31042e(0x1ea),'description':a274_0x31042e(0x209),'hidden':!![]},{'name':'sql-name','meowKey':'sqlName','type':'string','description':'SQL\x20name','hidden':!![]},{'name':a274_0x31042e(0x20d),'meowKey':'sqlname','type':'string','description':'SQL\x20name','hidden':!![]},{'name':a274_0x31042e(0x204),'meowKey':a274_0x31042e(0x1ed),'type':a274_0x31042e(0x1ea),'description':a274_0x31042e(0x236),'hidden':!![]},{'name':a274_0x31042e(0x247),'meowKey':'dbid','type':a274_0x31042e(0x1ea),'description':a274_0x31042e(0x236),'hidden':!![]},{'name':a274_0x31042e(0x20a),'meowKey':a274_0x31042e(0x20a),'type':'string','description':'Description','hidden':!![]},{'name':a274_0x31042e(0x229),'meowKey':a274_0x31042e(0x231),'type':a274_0x31042e(0x1ea),'description':'Description\x20file','hidden':!![]},{'name':a274_0x31042e(0x23c),'meowKey':a274_0x31042e(0x23c),'type':a274_0x31042e(0x1ea),'description':a274_0x31042e(0x1fc),'hidden':!![]},{'name':a274_0x31042e(0x20e),'meowKey':a274_0x31042e(0x1ee),'type':a274_0x31042e(0x1ea),'description':'Page\x20size','hidden':!![]},{'name':a274_0x31042e(0x263),'meowKey':a274_0x31042e(0x263),'type':a274_0x31042e(0x1ea),'description':a274_0x31042e(0x210),'hidden':!![]},{'name':'keyword','meowKey':'keyword','type':'string','description':'Keyword\x20filter','hidden':!![]},{'name':a274_0x31042e(0x215),'meowKey':a274_0x31042e(0x215),'type':a274_0x31042e(0x1ea),'description':a274_0x31042e(0x1fa),'hidden':!![]},{'name':a274_0x31042e(0x224),'meowKey':a274_0x31042e(0x224),'type':a274_0x31042e(0x1ea),'description':a274_0x31042e(0x260),'hidden':!![]},{'name':a274_0x31042e(0x24c),'meowKey':'schemas','type':a274_0x31042e(0x1ea),'description':'Schemas','hidden':!![]},{'name':a274_0x31042e(0x266),'meowKey':a274_0x31042e(0x266),'type':a274_0x31042e(0x1ea),'description':a274_0x31042e(0x234),'hidden':!![]},{'name':a274_0x31042e(0x1ef),'meowKey':'target','type':'string','description':'Target\x20path','hidden':!![]},{'name':a274_0x31042e(0x1e8),'meowKey':'skipImports','type':a274_0x31042e(0x22d),'description':'Skip\x20import\x20generation','hidden':!![]},{'name':a274_0x31042e(0x21d),'meowKey':a274_0x31042e(0x21d),'type':a274_0x31042e(0x1ea),'description':'Config\x20key','hidden':!![]},{'name':a274_0x31042e(0x221),'meowKey':a274_0x31042e(0x221),'type':a274_0x31042e(0x1ea),'description':a274_0x31042e(0x20c),'hidden':!![]},{'name':a274_0x31042e(0x1fe),'meowKey':'tags','type':a274_0x31042e(0x1ea),'description':a274_0x31042e(0x248),'hidden':!![]},{'name':a274_0x31042e(0x244),'meowKey':'stdin','type':'boolean','description':a274_0x31042e(0x213),'hidden':!![]},{'name':'from-env','meowKey':a274_0x31042e(0x258),'type':a274_0x31042e(0x1ea),'description':a274_0x31042e(0x275),'hidden':!![]},{'name':a274_0x31042e(0x23e),'meowKey':a274_0x31042e(0x23e),'type':a274_0x31042e(0x22d),'description':'Reveal\x20sensitive\x20value','hidden':!![]},{'name':a274_0x31042e(0x1ff),'meowKey':a274_0x31042e(0x1ff),'type':'boolean','description':a274_0x31042e(0x200),'hidden':!![]},{'name':'confirm','meowKey':a274_0x31042e(0x251),'type':a274_0x31042e(0x22d),'description':'Confirm\x20destructive\x20action','hidden':!![]},{'name':'remote','meowKey':'remote','type':a274_0x31042e(0x22d),'description':a274_0x31042e(0x24f),'hidden':!![]},{'name':a274_0x31042e(0x1fd),'meowKey':a274_0x31042e(0x1fd),'type':a274_0x31042e(0x22d),'description':a274_0x31042e(0x242),'hidden':!![]},{'name':'expected-count','meowKey':a274_0x31042e(0x271),'type':a274_0x31042e(0x1ea),'description':a274_0x31042e(0x257),'hidden':!![]},{'name':a274_0x31042e(0x23a),'meowKey':'label','type':a274_0x31042e(0x1ea),'description':a274_0x31042e(0x21a),'hidden':!![]},{'name':'parent-id','meowKey':a274_0x31042e(0x253),'type':a274_0x31042e(0x1ea),'description':a274_0x31042e(0x245),'hidden':!![]},{'name':a274_0x31042e(0x208),'meowKey':'sort','type':a274_0x31042e(0x1ea),'description':'Menu\x20sort\x20value','hidden':!![]},{'name':a274_0x31042e(0x206),'meowKey':a274_0x31042e(0x21b),'type':a274_0x31042e(0x1ea),'description':a274_0x31042e(0x243),'hidden':!![]},{'name':a274_0x31042e(0x249),'meowKey':a274_0x31042e(0x252),'type':a274_0x31042e(0x1ea),'description':'Expected\x20current\x20menu\x20path','hidden':!![]},{'name':a274_0x31042e(0x1e9),'meowKey':a274_0x31042e(0x20f),'type':'string','description':a274_0x31042e(0x1f2),'hidden':!![]},{'name':a274_0x31042e(0x25d),'meowKey':a274_0x31042e(0x250),'type':'string','description':a274_0x31042e(0x230),'hidden':!![]},{'name':a274_0x31042e(0x225),'meowKey':a274_0x31042e(0x23b),'type':'string','description':'Asynchronous\x20task\x20ID','hidden':!![]},{'name':a274_0x31042e(0x1eb),'meowKey':'operationType','type':'string','description':a274_0x31042e(0x234),'hidden':!![]},{'name':a274_0x31042e(0x26e),'meowKey':a274_0x31042e(0x24d),'type':a274_0x31042e(0x1ea),'description':'Function\x20node','hidden':!![]},{'name':a274_0x31042e(0x1f0),'meowKey':'codes','type':a274_0x31042e(0x1ea),'description':a274_0x31042e(0x226),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a274_0x31042e(0x26b),a274_0x31042e(0x273),a274_0x31042e(0x228),'format','jq',a274_0x31042e(0x216),a274_0x31042e(0x23f),a274_0x31042e(0x1fb),'ci']);export function buildMeowFlags(){const _0xc4b0fc=a274_0x31042e;return Object[_0xc4b0fc(0x22f)](GLOBAL_FLAGS[_0xc4b0fc(0x212)](_0x369a16=>[_0x369a16[_0xc4b0fc(0x25b)],{'type':_0x369a16[_0xc4b0fc(0x239)]}]));}
|
|
1
|
+
function a274_0x13e4(){const _0x4c8e76=['fromEntries','tags','Comma-separated\x20menu\x20IDs','reveal','name','dataset-code','Verbose\x20output','locale','Target\x20path','Description','non-interactive','Output\x20format','verbose','Flow\x20code','remote','value','Dataset\x20code','format','51062jFPEPY','task-id','Config\x20value','file','Preview\x20operation\x20without\x20executing','sort','Confirm\x20destructive\x20action','Schemas','expectedChildrenCount','flowType','stdin','dry-run','dryRun','sql','rabetbase','SQL\x20string','boolean','Maximum\x20search\x20hits','9AkZRLS','expectPath','clear','2266880BecwmR','5573560wdatmG','expect-path','pagesize','skipImports','all','Force\x20non-interactive\x20mode\x20(CI)','Name','Description\x20file','Select\x20app\x20profile\x20by\x20name','2953348DZxYCP','Menu\x20sort\x20value','sqlcode','Expected\x20affected\x20count','Function\x20node','Read\x20value\x20from\x20stdin','Watch\x20mode','map','label','<name>','query','Expected\x20current\x20menu\x20path','flowStatus','Page\x20size','parentId','topk','appcode','Flow\x20type','Skip\x20confirmation\x20for\x20high-risk\x20writes','codes','operation','watch','Config\x20key','Enable\x20Backend\x20Function\x20save','force','flow-name','code','operation-type','help','Code\x20filter','Operation\x20type','function-node','Flow\x20status','target','meowKey','Environment','menu-ids','expected-count','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','Read\x20value\x20from\x20environment\x20variable','db-id','Apply\x20to\x20all','string','production\x20|\x20daily','Parent\x20menu\x20id','<code>','flowCode','Reveal\x20sensitive\x20value','Record\x20ID','datasetCode','global','DB\x20ID','Output\x20path','Keyword\x20filter','SQL\x20name','Search\x20query','output','datasetcode','zh-CN\x20|\x20en-US','flow-code','from-env','operationType','6247746kKqied','3277136rsSVIw','Use\x20remote','flow-status','functionNode','Type\x20filter','params','app','confirm','Menu\x20label','env','Page\x20number','App\x20locale\x20(workspace\x20pass-through;\x20not\x20CLI\x20language)','description-file','schemas','yes','enableBffSave','Alias\x20for\x20--non-interactive','title','@lovrabet/rabetbase-cli','Flow\x20name','keyword','Override\x20appcode','File\x20path','project','881910ACmrvr','expect-parent-id','expected-children-count','dbId','pageSize','Rabetbase\x20CLI','page','<expr>','type','description','Use\x20global\x20config\x20scope','skip-imports'];a274_0x13e4=function(){return _0x4c8e76;};return a274_0x13e4();}const a274_0x2e8707=a274_0x20cc;(function(_0x51a436,_0x28b7c4){const _0x308f88=a274_0x20cc,_0x422ea1=_0x51a436();while(!![]){try{const _0x14a1a9=-parseInt(_0x308f88(0x1c9))/0x1+-parseInt(_0x308f88(0x1e7))/0x2*(-parseInt(_0x308f88(0x165))/0x3)+parseInt(_0x308f88(0x172))/0x4+-parseInt(_0x308f88(0x169))/0x5+parseInt(_0x308f88(0x1b0))/0x6+parseInt(_0x308f88(0x168))/0x7+parseInt(_0x308f88(0x1b1))/0x8;if(_0x14a1a9===_0x28b7c4)break;else _0x422ea1['push'](_0x422ea1['shift']());}catch(_0x2caf00){_0x422ea1['push'](_0x422ea1['shift']());}}}(a274_0x13e4,0x90cb9));export const CLI_BIN_NAME=a274_0x2e8707(0x161);export const CLI_DISPLAY_NAME=a274_0x2e8707(0x1ce);export const NPM_PACKAGE_NAME=a274_0x2e8707(0x1c3);export const GLOBAL_FLAGS=[{'name':a274_0x2e8707(0x182),'meowKey':a274_0x2e8707(0x182),'type':a274_0x2e8707(0x19c),'description':a274_0x2e8707(0x1c6),'hint':a274_0x2e8707(0x19f)},{'name':a274_0x2e8707(0x1b7),'meowKey':a274_0x2e8707(0x1b7),'type':a274_0x2e8707(0x19c),'description':a274_0x2e8707(0x171),'hint':a274_0x2e8707(0x17b)},{'name':a274_0x2e8707(0x1ba),'meowKey':'env','type':a274_0x2e8707(0x19c),'description':a274_0x2e8707(0x195),'hint':a274_0x2e8707(0x19d)},{'name':a274_0x2e8707(0x1e6),'meowKey':a274_0x2e8707(0x1e6),'type':a274_0x2e8707(0x19c),'description':a274_0x2e8707(0x1e0),'hint':'json\x20|\x20pretty\x20|\x20compress'},{'name':'jq','meowKey':'jq','type':a274_0x2e8707(0x19c),'description':a274_0x2e8707(0x198),'hint':a274_0x2e8707(0x1d0)},{'name':a274_0x2e8707(0x15e),'meowKey':a274_0x2e8707(0x15f),'type':'boolean','description':a274_0x2e8707(0x1eb)},{'name':a274_0x2e8707(0x1bf),'meowKey':a274_0x2e8707(0x1bf),'type':a274_0x2e8707(0x163),'description':a274_0x2e8707(0x184)},{'name':a274_0x2e8707(0x1df),'meowKey':'nonInteractive','type':'boolean','description':a274_0x2e8707(0x16e)},{'name':'global','meowKey':a274_0x2e8707(0x1a4),'type':a274_0x2e8707(0x163),'description':a274_0x2e8707(0x1d3)},{'name':a274_0x2e8707(0x1c8),'meowKey':a274_0x2e8707(0x1c8),'type':a274_0x2e8707(0x163),'description':'Use\x20project\x20config\x20scope'},{'name':'ci','meowKey':'ci','type':a274_0x2e8707(0x163),'description':a274_0x2e8707(0x1c1),'hidden':!![]},{'name':a274_0x2e8707(0x18e),'meowKey':a274_0x2e8707(0x18e),'type':'boolean','description':'Show\x20help'},{'name':'locale','meowKey':a274_0x2e8707(0x1dc),'type':a274_0x2e8707(0x19c),'description':a274_0x2e8707(0x1bc),'hidden':!![],'hint':a274_0x2e8707(0x1ac)},{'name':'name','meowKey':a274_0x2e8707(0x1d9),'type':a274_0x2e8707(0x19c),'description':a274_0x2e8707(0x16f),'hidden':!![]},{'name':a274_0x2e8707(0x1c2),'meowKey':a274_0x2e8707(0x1c2),'type':a274_0x2e8707(0x19c),'description':'Title','hidden':!![]},{'name':'query','meowKey':a274_0x2e8707(0x17c),'type':a274_0x2e8707(0x19c),'description':a274_0x2e8707(0x1a9),'hidden':!![]},{'name':'topk','meowKey':a274_0x2e8707(0x181),'type':a274_0x2e8707(0x19c),'description':a274_0x2e8707(0x164),'hidden':!![]},{'name':a274_0x2e8707(0x167),'meowKey':a274_0x2e8707(0x167),'type':a274_0x2e8707(0x163),'description':'Clear','hidden':!![]},{'name':a274_0x2e8707(0x187),'meowKey':'watch','type':a274_0x2e8707(0x163),'description':a274_0x2e8707(0x178),'hidden':!![]},{'name':a274_0x2e8707(0x1aa),'meowKey':'output','type':'string','description':a274_0x2e8707(0x1a6),'hidden':!![]},{'name':a274_0x2e8707(0x1b6),'meowKey':a274_0x2e8707(0x1b6),'type':a274_0x2e8707(0x19c),'description':'JSON\x20params','hidden':!![]},{'name':a274_0x2e8707(0x1ab),'meowKey':a274_0x2e8707(0x1ab),'type':a274_0x2e8707(0x19c),'description':'Dataset\x20code','hidden':!![]},{'name':a274_0x2e8707(0x16d),'meowKey':a274_0x2e8707(0x16d),'type':a274_0x2e8707(0x163),'description':a274_0x2e8707(0x19b),'hidden':!![]},{'name':'enable-bff-save','meowKey':a274_0x2e8707(0x1c0),'type':'boolean','description':a274_0x2e8707(0x189),'hidden':!![]},{'name':'id','meowKey':'id','type':a274_0x2e8707(0x19c),'description':a274_0x2e8707(0x1a2),'hidden':!![]},{'name':'type','meowKey':'type','type':a274_0x2e8707(0x19c),'description':a274_0x2e8707(0x1b5),'hidden':!![]},{'name':a274_0x2e8707(0x1ea),'meowKey':a274_0x2e8707(0x1ea),'type':a274_0x2e8707(0x19c),'description':a274_0x2e8707(0x1c7),'hidden':!![]},{'name':a274_0x2e8707(0x1ad),'meowKey':a274_0x2e8707(0x1a0),'type':a274_0x2e8707(0x19c),'description':a274_0x2e8707(0x1e2),'hidden':!![]},{'name':a274_0x2e8707(0x18b),'meowKey':'flowName','type':a274_0x2e8707(0x19c),'description':a274_0x2e8707(0x1c4),'hidden':!![]},{'name':a274_0x2e8707(0x1b3),'meowKey':a274_0x2e8707(0x17e),'type':a274_0x2e8707(0x19c),'description':a274_0x2e8707(0x192),'hidden':!![]},{'name':'flow-type','meowKey':a274_0x2e8707(0x15c),'type':a274_0x2e8707(0x19c),'description':a274_0x2e8707(0x183),'hidden':!![]},{'name':a274_0x2e8707(0x1da),'meowKey':a274_0x2e8707(0x1a3),'type':'string','description':a274_0x2e8707(0x1e5),'hidden':!![]},{'name':a274_0x2e8707(0x174),'meowKey':a274_0x2e8707(0x174),'type':a274_0x2e8707(0x19c),'description':'SQL\x20code','hidden':!![]},{'name':'sql-name','meowKey':'sqlName','type':a274_0x2e8707(0x19c),'description':a274_0x2e8707(0x1a8),'hidden':!![]},{'name':'sqlname','meowKey':'sqlname','type':'string','description':a274_0x2e8707(0x1a8),'hidden':!![]},{'name':a274_0x2e8707(0x19a),'meowKey':a274_0x2e8707(0x1cc),'type':a274_0x2e8707(0x19c),'description':a274_0x2e8707(0x1a5),'hidden':!![]},{'name':'dbid','meowKey':'dbid','type':a274_0x2e8707(0x19c),'description':a274_0x2e8707(0x1a5),'hidden':!![]},{'name':a274_0x2e8707(0x1d2),'meowKey':a274_0x2e8707(0x1d2),'type':a274_0x2e8707(0x19c),'description':a274_0x2e8707(0x1de),'hidden':!![]},{'name':a274_0x2e8707(0x1bd),'meowKey':'descriptionFile','type':a274_0x2e8707(0x19c),'description':a274_0x2e8707(0x170),'hidden':!![]},{'name':a274_0x2e8707(0x1cf),'meowKey':a274_0x2e8707(0x1cf),'type':a274_0x2e8707(0x19c),'description':a274_0x2e8707(0x1bb),'hidden':!![]},{'name':'page-size','meowKey':a274_0x2e8707(0x1cd),'type':a274_0x2e8707(0x19c),'description':'Page\x20size','hidden':!![]},{'name':a274_0x2e8707(0x16b),'meowKey':a274_0x2e8707(0x16b),'type':a274_0x2e8707(0x19c),'description':a274_0x2e8707(0x17f),'hidden':!![]},{'name':a274_0x2e8707(0x1c5),'meowKey':a274_0x2e8707(0x1c5),'type':a274_0x2e8707(0x19c),'description':a274_0x2e8707(0x1a7),'hidden':!![]},{'name':a274_0x2e8707(0x18c),'meowKey':'code','type':a274_0x2e8707(0x19c),'description':a274_0x2e8707(0x18f),'hidden':!![]},{'name':a274_0x2e8707(0x160),'meowKey':a274_0x2e8707(0x160),'type':'string','description':a274_0x2e8707(0x162),'hidden':!![]},{'name':a274_0x2e8707(0x1be),'meowKey':a274_0x2e8707(0x1be),'type':a274_0x2e8707(0x19c),'description':a274_0x2e8707(0x1ee),'hidden':!![]},{'name':a274_0x2e8707(0x186),'meowKey':'operation','type':a274_0x2e8707(0x19c),'description':a274_0x2e8707(0x190),'hidden':!![]},{'name':a274_0x2e8707(0x193),'meowKey':a274_0x2e8707(0x193),'type':a274_0x2e8707(0x19c),'description':a274_0x2e8707(0x1dd),'hidden':!![]},{'name':a274_0x2e8707(0x1d4),'meowKey':a274_0x2e8707(0x16c),'type':a274_0x2e8707(0x163),'description':'Skip\x20import\x20generation','hidden':!![]},{'name':'key','meowKey':'key','type':a274_0x2e8707(0x19c),'description':a274_0x2e8707(0x188),'hidden':!![]},{'name':'value','meowKey':a274_0x2e8707(0x1e4),'type':a274_0x2e8707(0x19c),'description':a274_0x2e8707(0x1e9),'hidden':!![]},{'name':a274_0x2e8707(0x1d6),'meowKey':a274_0x2e8707(0x1d6),'type':a274_0x2e8707(0x19c),'description':'Tags','hidden':!![]},{'name':a274_0x2e8707(0x15d),'meowKey':a274_0x2e8707(0x15d),'type':a274_0x2e8707(0x163),'description':a274_0x2e8707(0x177),'hidden':!![]},{'name':a274_0x2e8707(0x1ae),'meowKey':'fromEnv','type':a274_0x2e8707(0x19c),'description':a274_0x2e8707(0x199),'hidden':!![]},{'name':a274_0x2e8707(0x1d8),'meowKey':'reveal','type':a274_0x2e8707(0x163),'description':a274_0x2e8707(0x1a1),'hidden':!![]},{'name':'force','meowKey':a274_0x2e8707(0x18a),'type':a274_0x2e8707(0x163),'description':'Force\x20overwrite','hidden':!![]},{'name':a274_0x2e8707(0x1b8),'meowKey':a274_0x2e8707(0x1b8),'type':a274_0x2e8707(0x163),'description':a274_0x2e8707(0x1ed),'hidden':!![]},{'name':'remote','meowKey':a274_0x2e8707(0x1e3),'type':a274_0x2e8707(0x163),'description':a274_0x2e8707(0x1b2),'hidden':!![]},{'name':a274_0x2e8707(0x1e1),'meowKey':a274_0x2e8707(0x1e1),'type':a274_0x2e8707(0x163),'description':a274_0x2e8707(0x1db),'hidden':!![]},{'name':a274_0x2e8707(0x197),'meowKey':'expectedCount','type':a274_0x2e8707(0x19c),'description':a274_0x2e8707(0x175),'hidden':!![]},{'name':a274_0x2e8707(0x17a),'meowKey':a274_0x2e8707(0x17a),'type':a274_0x2e8707(0x19c),'description':a274_0x2e8707(0x1b9),'hidden':!![]},{'name':'parent-id','meowKey':a274_0x2e8707(0x180),'type':a274_0x2e8707(0x19c),'description':a274_0x2e8707(0x19e),'hidden':!![]},{'name':a274_0x2e8707(0x1ec),'meowKey':'sort','type':a274_0x2e8707(0x19c),'description':a274_0x2e8707(0x173),'hidden':!![]},{'name':a274_0x2e8707(0x1ca),'meowKey':'expectParentId','type':'string','description':'Expected\x20current\x20parent\x20menu\x20id','hidden':!![]},{'name':a274_0x2e8707(0x16a),'meowKey':a274_0x2e8707(0x166),'type':a274_0x2e8707(0x19c),'description':a274_0x2e8707(0x17d),'hidden':!![]},{'name':a274_0x2e8707(0x1cb),'meowKey':a274_0x2e8707(0x15b),'type':'string','description':'Expected\x20current\x20child\x20count','hidden':!![]},{'name':a274_0x2e8707(0x196),'meowKey':'menuIds','type':a274_0x2e8707(0x19c),'description':a274_0x2e8707(0x1d7),'hidden':!![]},{'name':a274_0x2e8707(0x1e8),'meowKey':'taskId','type':a274_0x2e8707(0x19c),'description':'Asynchronous\x20task\x20ID','hidden':!![]},{'name':a274_0x2e8707(0x18d),'meowKey':a274_0x2e8707(0x1af),'type':a274_0x2e8707(0x19c),'description':'Operation\x20type','hidden':!![]},{'name':a274_0x2e8707(0x191),'meowKey':a274_0x2e8707(0x1b4),'type':'string','description':a274_0x2e8707(0x176),'hidden':!![]},{'name':'codes','meowKey':a274_0x2e8707(0x185),'type':a274_0x2e8707(0x19c),'description':'Comma-separated\x20metadata\x20codes','hidden':!![]}];function a274_0x20cc(_0x4a71fc,_0x466a08){_0x4a71fc=_0x4a71fc-0x15b;const _0x13e4eb=a274_0x13e4();let _0x20cc57=_0x13e4eb[_0x4a71fc];return _0x20cc57;}export const PIPELINE_FLAG_NAMES=new Set([a274_0x2e8707(0x182),'app','env',a274_0x2e8707(0x1e6),'jq',a274_0x2e8707(0x15e),a274_0x2e8707(0x1bf),a274_0x2e8707(0x1df),'ci']);export function buildMeowFlags(){const _0x3698b5=a274_0x2e8707;return Object[_0x3698b5(0x1d5)](GLOBAL_FLAGS[_0x3698b5(0x179)](_0x439884=>[_0x439884[_0x3698b5(0x194)],{'type':_0x439884[_0x3698b5(0x1d1)]}]));}
|
package/lib/constant/defaults.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a275_0x14e7e1=a275_0x146b;(function(_0x51fcf5,_0x423c7e){const _0x284544=a275_0x146b,_0x377ed8=_0x51fcf5();while(!![]){try{const _0x24723b=parseInt(_0x284544(0xd3))/0x1+-parseInt(_0x284544(0xd1))/0x2+-parseInt(_0x284544(0xca))/0x3+parseInt(_0x284544(0xcf))/0x4+-parseInt(_0x284544(0xcc))/0x5*(parseInt(_0x284544(0xce))/0x6)+-parseInt(_0x284544(0xd2))/0x7*(-parseInt(_0x284544(0xd0))/0x8)+parseInt(_0x284544(0xd4))/0x9*(parseInt(_0x284544(0xcd))/0xa);if(_0x24723b===_0x423c7e)break;else _0x377ed8['push'](_0x377ed8['shift']());}catch(_0x1e0578){_0x377ed8['push'](_0x377ed8['shift']());}}}(a275_0x4c1b,0x62349));function a275_0x4c1b(){const _0x431d22=['2235460UfeQiw','1292360MmVdmT','1000474DRVBWh','7SAtnZB','432705XhqoLQ','9340983urwpPs','production','1852260VmFMJT','write','1490lodTje','10nUjItp','13512qiJDLz'];a275_0x4c1b=function(){return _0x431d22;};return a275_0x4c1b();}import{DEFAULT_API_DIR}from'../constant/paths.js';export const DEFAULT_CONFIG_VALUES={'env':a275_0x14e7e1(0xd5),'format':'compress','locale':'en-US','riskLevel':a275_0x14e7e1(0xcb),'apiDir':DEFAULT_API_DIR};function a275_0x146b(_0x246bc8,_0x57ce0f){_0x246bc8=_0x246bc8-0xca;const _0x4c1ba0=a275_0x4c1b();let _0x146bc1=_0x4c1ba0[_0x246bc8];return _0x146bc1;}export const DEFAULT_COMMAND_OUTPUT_FORMAT='compress';
|