@lovrabet/rabetbase-cli 2.5.11 → 2.5.12-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.d.ts +1 -0
- 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.d.ts +2 -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/references/rabetbase-kb.md +1 -1
- package/skills/rabetbase-dataset-generation/SKILL.md +1 -1
- package/skills/rabetbase-page-generation/SKILL.md +1 -1
- package/skills/rabetbase.manifest.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x2d0d82,_0x5488a2){const _0x45056d=a271_0x7a71,_0x1cbf25=_0x2d0d82();while(!![]){try{const _0x579b8c=-parseInt(_0x45056d(0x178))/0x1*(parseInt(_0x45056d(0x17f))/0x2)+-parseInt(_0x45056d(0x184))/0x3+parseInt(_0x45056d(0x183))/0x4*(parseInt(_0x45056d(0x180))/0x5)+parseInt(_0x45056d(0x181))/0x6*(parseInt(_0x45056d(0x179))/0x7)+-parseInt(_0x45056d(0x191))/0x8+-parseInt(_0x45056d(0x182))/0x9+parseInt(_0x45056d(0x18f))/0xa;if(_0x579b8c===_0x5488a2)break;else _0x1cbf25['push'](_0x1cbf25['shift']());}catch(_0x5b7f30){_0x1cbf25['push'](_0x1cbf25['shift']());}}}(a271_0x2f9f,0xbc145));import{CLI_BIN_NAME}from'../constant/cli.js';function a271_0x7a71(_0x9217b3,_0x18dbb6){_0x9217b3=_0x9217b3-0x177;const _0x2f9f89=a271_0x2f9f();let _0x7a7124=_0x2f9f89[_0x9217b3];return _0x7a7124;}import{DEFAULT_LOVRABET_REGION,isInvalidLovrabetRegion,normalizeLovrabetRegion}from'../constant/region.js';import{CliErrors}from'../errors.js';export function selectConfiguredRegion(_0x3acc32){const _0x3c2d0d=a271_0x7a71;if(_0x3acc32[_0x3c2d0d(0x17b)]!==undefined&&_0x3acc32[_0x3c2d0d(0x17b)]!==null&&_0x3acc32[_0x3c2d0d(0x17b)]!=='')return{'value':_0x3acc32[_0x3c2d0d(0x17b)],'source':_0x3c2d0d(0x18a)};if(_0x3acc32['projectRegion']!==undefined&&_0x3acc32['projectRegion']!==null&&_0x3acc32[_0x3c2d0d(0x17d)]!=='')return{'value':_0x3acc32[_0x3c2d0d(0x17d)],'source':'project'};if(_0x3acc32[_0x3c2d0d(0x192)]!==undefined&&_0x3acc32[_0x3c2d0d(0x192)]!==null&&_0x3acc32[_0x3c2d0d(0x192)]!=='')return{'value':_0x3acc32[_0x3c2d0d(0x192)],'source':'global'};if(_0x3acc32[_0x3c2d0d(0x18b)]!==undefined&&_0x3acc32[_0x3c2d0d(0x18b)]!==null&&_0x3acc32[_0x3c2d0d(0x18b)]!=='')return{'value':_0x3acc32[_0x3c2d0d(0x18b)],'source':_0x3c2d0d(0x187)};return{'value':undefined,'source':_0x3c2d0d(0x17c)};}function describeConfiguredRegion(_0x4cccf4){const _0xfd1f59=a271_0x7a71;return typeof _0x4cccf4===_0xfd1f59(0x17e)?JSON[_0xfd1f59(0x188)](_0x4cccf4):_0xfd1f59(0x18e)+(_0x4cccf4===null?'null':typeof _0x4cccf4);}export function resolveConfiguredRegion(_0x2f0766,_0x52be1a='Rabetbase\x20configuration'){const _0x5e938b=a271_0x7a71;if(isInvalidLovrabetRegion(_0x2f0766))throw CliErrors[_0x5e938b(0x195)](_0x5e938b(0x177)+describeConfiguredRegion(_0x2f0766)+'\x20in\x20'+_0x52be1a+'.',_0x5e938b(0x189)+CLI_BIN_NAME+_0x5e938b(0x17a));return normalizeLovrabetRegion(_0x2f0766)??DEFAULT_LOVRABET_REGION;}export function resolveEffectiveRegion(_0x145c62){const _0xeac5e2=a271_0x7a71,_0x2c8a21=selectConfiguredRegion(_0x145c62),_0xc28ed4=_0x2c8a21[_0xeac5e2(0x190)]===_0xeac5e2(0x18a)?_0x145c62[_0xeac5e2(0x193)]?_0xeac5e2(0x186)+_0x145c62[_0xeac5e2(0x193)]+'\x22':'selected\x20app\x20profile':_0x2c8a21[_0xeac5e2(0x190)]===_0xeac5e2(0x194)?_0xeac5e2(0x18c):_0x2c8a21[_0xeac5e2(0x190)]==='global'?_0xeac5e2(0x18d):'Rabetbase\x20configuration';return{'region':resolveConfiguredRegion(_0x2c8a21[_0xeac5e2(0x185)],_0xc28ed4),'source':_0x2c8a21[_0xeac5e2(0x190)]};}function a271_0x2f9f(){const _0x469f6c=['appName','project','validation','Invalid\x20country/region\x20','1hiMCIo','3738301CVDrDg','\x20doctor`\x20to\x20locate\x20and\x20repair\x20the\x20invalid\x20configuration\x20before\x20retrying.','appRegion','default','projectRegion','string','96598bayIVu','10ZyQMfN','6gAaoeB','3082608iENIkb','950512VyxPFb','1313928DKxYFW','value','app\x20profile\x20\x22','config','stringify','Run\x20`','app','mergedRegion','project\x20Rabetbase\x20configuration','global\x20Rabetbase\x20configuration','a\x20value\x20of\x20type\x20','6711250IjNbzl','source','650112MGgwxN','globalRegion'];a271_0x2f9f=function(){return _0x469f6c;};return a271_0x2f9f();}
|
package/lib/config/schema.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a272_0x384eca=a272_0x4d11;(function(_0x1f9850,_0x3f1efb){const _0x2c4a8d=a272_0x4d11,_0x762fb0=_0x1f9850();while(!![]){try{const _0x310675=-parseInt(_0x2c4a8d(0xb0))/0x1+-parseInt(_0x2c4a8d(0xd6))/0x2+parseInt(_0x2c4a8d(0xcc))/0x3*(parseInt(_0x2c4a8d(0xb8))/0x4)+parseInt(_0x2c4a8d(0xb4))/0x5+-parseInt(_0x2c4a8d(0xdb))/0x6+parseInt(_0x2c4a8d(0xd3))/0x7*(parseInt(_0x2c4a8d(0xd2))/0x8)+parseInt(_0x2c4a8d(0xcd))/0x9;if(_0x310675===_0x3f1efb)break;else _0x762fb0['push'](_0x762fb0['shift']());}catch(_0xf8d151){_0x762fb0['push'](_0x762fb0['shift']());}}}(a272_0x13e3,0xb8f83));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=['cookie',a272_0x384eca(0xb1),'locale',a272_0x384eca(0xc3),a272_0x384eca(0xb7),a272_0x384eca(0xb9),a272_0x384eca(0xca),'userDomain',a272_0x384eca(0xc4),'runtimeDomain',a272_0x384eca(0xd5),'kbDomain',a272_0x384eca(0xbd),a272_0x384eca(0xbf),a272_0x384eca(0xbe),a272_0x384eca(0xb6)];export const TOP_LEVEL_CONFIG_KEYS=new Set(['appcode',a272_0x384eca(0xd1),a272_0x384eca(0xda),a272_0x384eca(0xc3),a272_0x384eca(0xba),a272_0x384eca(0xb1),a272_0x384eca(0xb2),'region','userDomain',a272_0x384eca(0xc4),a272_0x384eca(0xab),a272_0x384eca(0xd5),'kbDomain',a272_0x384eca(0xbd),a272_0x384eca(0xbf),a272_0x384eca(0xbe),a272_0x384eca(0xb6)]);export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES],'region':[...ENABLED_LOVRABET_REGION_VALUES]};export function formatConfigKeyList(_0x54876f){const _0x1b1472=a272_0x384eca;return[..._0x54876f][_0x1b1472(0xc0)](',\x20');}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function isTopLevelConfigKey(_0x333100){return TOP_LEVEL_CONFIG_KEYS['has'](_0x333100);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x135625=a272_0x384eca;return _0x135625(0xc9)+getTopLevelConfigKeySummary()+')';}export const APP_PROFILE_FLAG_KEY_MAP={'apiGroup':a272_0x384eca(0xdd),'region':a272_0x384eca(0xb9),'env':a272_0x384eca(0xd1),'apiDir':a272_0x384eca(0xb2),'cookie':a272_0x384eca(0xba),'accessKey':a272_0x384eca(0xb1),'defaultFormat':a272_0x384eca(0xc3),'pageSize':a272_0x384eca(0xa8),'riskLevel':a272_0x384eca(0xb7),'locale':'locale'};export function getAppProfileFlagDefs(){const _0x4b726f=a272_0x384eca;return[{'name':_0x4b726f(0xdd),'type':_0x4b726f(0xb5),'description':'Join\x20key\x20for\x20app\x20profiles\x20that\x20share\x20one\x20generated\x20API\x20model\x20registry'},{'name':_0x4b726f(0xb9),'type':_0x4b726f(0xb5),'description':_0x4b726f(0xad),'enum':[...ENABLED_LOVRABET_REGION_VALUES]},{'name':_0x4b726f(0xd1),'type':_0x4b726f(0xb5),'description':'Target\x20environment','enum':[...RABETBASE_ENV_VALUES]},{'name':_0x4b726f(0xb2),'type':_0x4b726f(0xb5),'description':'API\x20directory\x20path'},{'name':_0x4b726f(0xba),'type':_0x4b726f(0xb5),'description':_0x4b726f(0xd0),'hidden':!![]},{'name':_0x4b726f(0xb1),'type':'string','description':_0x4b726f(0xac),'hidden':!![]},{'name':_0x4b726f(0xd9),'type':_0x4b726f(0xb5),'description':_0x4b726f(0xbb),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':_0x4b726f(0xa8),'type':_0x4b726f(0xd7),'description':_0x4b726f(0xc6)},{'name':'riskLevel','type':_0x4b726f(0xb5),'description':'Risk\x20level','enum':[...RISK_LEVEL_VALUES]},{'name':_0x4b726f(0xda),'type':'string','description':'App\x20locale\x20(not\x20CLI\x20language;\x20reserved\x20for\x20later\x20app\x20use)'}];}export function collectAppProfileOverrides(_0x1ef634){const _0x487974={};for(const [_0x374394,_0x63b746]of Object['entries'](APP_PROFILE_FLAG_KEY_MAP)){const _0x8b33b1=_0x1ef634(_0x374394);if(!_0x8b33b1)continue;_0x487974[_0x63b746]=_0x63b746==='pageSize'?Number(_0x8b33b1):_0x8b33b1;}return _0x487974;}export function buildAppProfileListFields(_0x4dbf18){const _0x1150b6=a272_0x384eca;return{'apiGroup':_0x4dbf18[_0x1150b6(0xdd)]??null,'region':_0x4dbf18[_0x1150b6(0xb9)]??null,'env':_0x4dbf18[_0x1150b6(0xd1)]??null,'apiDir':_0x4dbf18[_0x1150b6(0xb2)]??null,'hasCookie':!!_0x4dbf18[_0x1150b6(0xba)],'hasAccessKey':!!_0x4dbf18[_0x1150b6(0xb1)],'format':_0x4dbf18[_0x1150b6(0xc3)]??null,'pageSize':_0x4dbf18[_0x1150b6(0xa8)]??null,'riskLevel':_0x4dbf18[_0x1150b6(0xb7)]??null,'locale':_0x4dbf18[_0x1150b6(0xda)]??null};}export function buildAppDoctorFields(_0x2845c4,_0x1cd331){const _0x28d676=a272_0x384eca;return{'region':{'value':_0x2845c4[_0x28d676(0xb9)]||_0x1cd331['region'],'source':_0x2845c4[_0x28d676(0xb9)]?_0x28d676(0xcf):_0x28d676(0xbc)},'env':{'value':_0x2845c4[_0x28d676(0xd1)]||_0x1cd331['env'],'source':_0x2845c4[_0x28d676(0xd1)]?_0x28d676(0xcf):_0x28d676(0xbc)},'apiDir':{'value':_0x2845c4[_0x28d676(0xb2)]||_0x1cd331[_0x28d676(0xb2)],'source':_0x2845c4[_0x28d676(0xb2)]?_0x28d676(0xcf):'inherit'},'cookie':{'value':_0x2845c4[_0x28d676(0xba)]||_0x1cd331[_0x28d676(0xba)],'source':_0x2845c4[_0x28d676(0xba)]?_0x28d676(0xcf):_0x28d676(0xbc)},'accessKey':{'value':_0x2845c4[_0x28d676(0xb1)]||_0x1cd331[_0x28d676(0xb1)],'source':_0x2845c4[_0x28d676(0xb1)]?_0x28d676(0xcf):_0x28d676(0xbc)}};}export function buildCanonicalAppConfig(_0x27b620,_0x1635c1){const _0x5f03b4=a272_0x384eca,_0x1859c9=_0x27b620[_0x5f03b4(0xc8)](_0x100774=>String(_0x100774||'')[_0x5f03b4(0xaf)]())['filter'](Boolean);if(_0x1859c9[_0x5f03b4(0xc1)]===0x0)return{};const _0x5aa74e={};for(const _0x330663 of _0x1859c9){_0x5aa74e[_0x330663]=_0x1635c1&&!isProduction(_0x1635c1)?{'appcode':_0x330663,'env':_0x1635c1}:{'appcode':_0x330663};}return _0x1859c9[_0x5f03b4(0xc1)]>0x1?{'apps':_0x5aa74e,'defaultApp':_0x1859c9[0x0]}:{'apps':_0x5aa74e};}export function normalizeStoredDefaultApp(_0x1286b7,_0x185fe4){const _0x26442d=a272_0x384eca,_0x89961a=_0x1286b7[_0x26442d(0xd8)]&&typeof _0x1286b7[_0x26442d(0xd8)]===_0x26442d(0xd4)?_0x1286b7[_0x26442d(0xd8)]:{},_0x5e57b3=Object[_0x26442d(0xc2)](_0x89961a);if(_0x5e57b3[_0x26442d(0xc1)]<=0x1)return delete _0x1286b7[_0x26442d(0xc5)],undefined;const _0x168dbc=typeof _0x1286b7[_0x26442d(0xc5)]==='string'&&_0x89961a[_0x1286b7[_0x26442d(0xc5)]]?_0x1286b7[_0x26442d(0xc5)]:undefined,_0x54e541=_0x185fe4&&_0x89961a[_0x185fe4]?_0x185fe4:_0x168dbc;if(_0x54e541)return _0x1286b7[_0x26442d(0xc5)]=_0x54e541,_0x54e541;return delete _0x1286b7[_0x26442d(0xc5)],undefined;}function a272_0x4d11(_0x2f1d8d,_0x3fcd59){_0x2f1d8d=_0x2f1d8d-0xa8;const _0x13e3d2=a272_0x13e3();let _0x4d11b6=_0x13e3d2[_0x2f1d8d];return _0x4d11b6;}export function buildCanonicalProjectConfig(_0x28bf68,_0x36bebd){const _0xa5b7b4=a272_0x384eca,{appCodes:appCodes=[],env:_0xf7eb76,metadata:_0x2f809e}=_0x36bebd,_0x360d4e={..._0x28bf68,..._0x2f809e||{}};delete _0x360d4e[_0xa5b7b4(0xc7)],delete _0x360d4e[_0xa5b7b4(0xcf)];const _0x273759=_0xf7eb76||(typeof _0x360d4e[_0xa5b7b4(0xd1)]==='string'?_0x360d4e['env']:'')||DEFAULT_CONFIG_VALUES[_0xa5b7b4(0xd1)];if(isProduction(_0x273759))delete _0x360d4e[_0xa5b7b4(0xd1)];else _0x360d4e['env']=_0x273759;const _0x20566c=buildCanonicalAppConfig(appCodes,_0x273759);if(Object['keys'](_0x20566c)[_0xa5b7b4(0xc1)]>0x0){_0x360d4e['apps']=_0x20566c[_0xa5b7b4(0xd8)];if(_0x20566c[_0xa5b7b4(0xc5)])_0x360d4e[_0xa5b7b4(0xc5)]=_0x20566c['defaultApp'];else delete _0x360d4e[_0xa5b7b4(0xc5)];}return normalizeConfigForWrite(_0x360d4e);}function a272_0x13e3(){const _0x3d0b97=['values','27429LnZUSR','17759232aNWlpz','en-US','app','Auth\x20cookie','env','8RiiiCB','4850993RAptHY','object','skillDomain','2376662tRfLJn','number','apps','defaultFormat','locale','6471498fZfTVc','some','apiGroup','pageSize','isArray','zh-CN','runtimeDomain','Access\x20key','Country/region\x20for\x20this\x20app\x20profile','fromEntries','trim','370988oLJWUb','accessKey','apiDir','toLowerCase','2046425gLfZKy','string','certificateDomain','riskLevel','140dRyLgG','region','cookie','Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','inherit','kbServiceDomain','localDomain','appDomain','join','length','keys','format','apiDomain','defaultApp','Default\x20page\x20size','appcode','map','Config\x20key\x20(','routing'];a272_0x13e3=function(){return _0x3d0b97;};return a272_0x13e3();}function isRecord(_0x5adf81){const _0x145259=a272_0x384eca;return!!_0x5adf81&&typeof _0x5adf81===_0x145259(0xd4)&&!Array[_0x145259(0xa9)](_0x5adf81);}export function normalizeConfigForWrite(_0x1fe908){const _0x36edf4=a272_0x384eca,_0x6b0eb={..._0x1fe908},_0x284139=isRecord(_0x1fe908['apps'])?_0x1fe908['apps']:undefined,_0x2d3d42=_0x284139?Object[_0x36edf4(0xae)](Object['entries'](_0x284139)[_0x36edf4(0xc8)](([_0x109744,_0x55dcf2])=>[_0x109744,isRecord(_0x55dcf2)?{..._0x55dcf2}:_0x55dcf2])):undefined;if(_0x2d3d42){const _0xe753bb=typeof _0x6b0eb['env']===_0x36edf4(0xb5)?_0x6b0eb[_0x36edf4(0xd1)]:undefined,_0x187df2=Object['values'](_0x2d3d42)[_0x36edf4(0xdc)](_0x5cf6b4=>isRecord(_0x5cf6b4)&&typeof _0x5cf6b4['env']===_0x36edf4(0xb5)&&isProduction(_0x5cf6b4[_0x36edf4(0xd1)]));if(_0xe753bb&&isDaily(_0xe753bb)&&_0x187df2){for(const _0x3f7937 of Object[_0x36edf4(0xcb)](_0x2d3d42)){if(!isRecord(_0x3f7937))continue;if(_0x3f7937[_0x36edf4(0xd1)]===undefined)_0x3f7937[_0x36edf4(0xd1)]=_0xe753bb;}delete _0x6b0eb[_0x36edf4(0xd1)];}for(const _0x467d64 of Object[_0x36edf4(0xcb)](_0x2d3d42)){isRecord(_0x467d64)&&typeof _0x467d64[_0x36edf4(0xd1)]===_0x36edf4(0xb5)&&isProduction(_0x467d64[_0x36edf4(0xd1)])&&delete _0x467d64[_0x36edf4(0xd1)];}_0x6b0eb['apps']=_0x2d3d42;}return typeof _0x6b0eb[_0x36edf4(0xd1)]==='string'&&isProduction(_0x6b0eb['env'])&&delete _0x6b0eb[_0x36edf4(0xd1)],_0x6b0eb;}const LOCALE_MAP={'zh':a272_0x384eca(0xaa),'zh-cn':a272_0x384eca(0xaa),'zh_cn':a272_0x384eca(0xaa),'en':a272_0x384eca(0xce),'en-us':a272_0x384eca(0xce),'en_us':a272_0x384eca(0xce)};export function normalizeLocale(_0x44e54b){const _0x4f3f49=a272_0x384eca;if(!_0x44e54b)return null;return LOCALE_MAP[_0x44e54b[_0x4f3f49(0xb3)]()]??null;}
|
|
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;}
|
package/lib/constant/cdn.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a273_0x30d271=a273_0x5250;function a273_0x18a4(){const _0x52c394=['sub-app-react-demo-beta.zip','lovrabet','194696zggAiC','templates/projects','15HwfoRL','9317658IxVgSj','config/index.json','1fpHIzs','6237976xQmaYU','.zip','30311170muWHAi','2180500vkaYER','rabetbase-cli','1194325bkSKeu','18GirOhQ','218392XeKuup','/dist/'];a273_0x18a4=function(){return _0x52c394;};return a273_0x18a4();}(function(_0x55b1d3,_0x132bcf){const _0x198083=a273_0x5250,_0x205cac=_0x55b1d3();while(!![]){try{const _0x2ddc3d=-parseInt(_0x198083(0x191))/0x1*(-parseInt(_0x198083(0x188))/0x2)+-parseInt(_0x198083(0x18e))/0x3*(-parseInt(_0x198083(0x18c))/0x4)+parseInt(_0x198083(0x186))/0x5+-parseInt(_0x198083(0x18f))/0x6+parseInt(_0x198083(0x184))/0x7+-parseInt(_0x198083(0x192))/0x8*(parseInt(_0x198083(0x187))/0x9)+parseInt(_0x198083(0x194))/0xa;if(_0x2ddc3d===_0x132bcf)break;else _0x205cac['push'](_0x205cac['shift']());}catch(_0x2e990f){_0x205cac['push'](_0x205cac['shift']());}}}(a273_0x18a4,0xc896b));import{getActiveCdn}from'../constant/domain.js';const RABETBASE_CDN_PROJECT=a273_0x30d271(0x185),RABETBASE_CDN_CONFIG_ORIGIN='https://g.lovrabet.com',CDN_CONFIG_PATH=a273_0x30d271(0x190),PROJECT_TEMPLATE_ASSET_PATH=a273_0x30d271(0x18d),PROJECT_TEMPLATE_ARCHIVE_NAMES=Object['freeze']({'release':'sub-app-react-demo.zip','beta':a273_0x30d271(0x18a)});export const RABETBASE_CDN_PROJECT_PATH=a273_0x30d271(0x189)+RABETBASE_CDN_PROJECT;function getRabetbaseCdnBaseUrl(){const _0x324fdb=a273_0x30d271;return''+getActiveCdn()[_0x324fdb(0x18b)]+RABETBASE_CDN_PROJECT_PATH;}export function getCliVersionPolicyUrl(){return''+RABETBASE_CDN_CONFIG_ORIGIN+RABETBASE_CDN_PROJECT_PATH+'/'+CDN_CONFIG_PATH;}function a273_0x5250(_0x9012dd,_0x535670){_0x9012dd=_0x9012dd-0x184;const _0x18a46a=a273_0x18a4();let _0x5250a2=_0x18a46a[_0x9012dd];return _0x5250a2;}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(_0x3f819a,_0x1855b2){const _0x53a7a5=a273_0x30d271,_0x2f29ce=_0x1855b2?'sub-app-react-demo-'+_0x1855b2+_0x53a7a5(0x193):PROJECT_TEMPLATE_ARCHIVE_NAMES[_0x3f819a];return RABETBASE_CDN_PROJECT_PATH+'/'+PROJECT_TEMPLATE_ASSET_PATH+'/'+_0x2f29ce;}
|
package/lib/constant/cli.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a274_0x218fa8=a274_0x1cf6;function a274_0xc4d6(){const _0x34ed8f=['functionNode','Output\x20path','dbid','Select\x20app\x20profile\x20by\x20name','all','key','expect-path','Asynchronous\x20task\x20ID','Skip\x20confirmation\x20for\x20high-risk\x20writes','appcode','Override\x20appcode','fromEnv','schemas','<expr>','expected-count','Reveal\x20sensitive\x20value','Rabetbase\x20CLI','Verbose\x20output','production\x20|\x20daily','tags','page','nonInteractive','verbose','3034097ZVEGRp','138ukNsrs','Parent\x20menu\x20id','Use\x20project\x20config\x20scope','file','zh-CN\x20|\x20en-US','datasetcode','sql-name','Watch\x20mode','243530gydpyB','db-id','json\x20|\x20pretty\x20|\x20compress','global','operation','@lovrabet/rabetbase-cli','SQL\x20string','project','Type\x20filter','force','Description\x20file','Menu\x20sort\x20value','8761193FjfAFO','parentId','pagesize','<name>','map','clear','flowStatus','Keyword\x20filter','expect-parent-id','format','expectPath','function-node','reveal','4878924kwPEtg','title','task-id','Alias\x20for\x20--non-interactive','Force\x20non-interactive\x20mode\x20(CI)','watch','<code>','JSON\x20params','stdin','type','enableBffSave','params','Title','app','value','remote','Page\x20number','Config\x20key','Flow\x20name','Expected\x20current\x20child\x20count','label','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','output','SQL\x20name','sqlName','sqlname','Page\x20size','Dataset\x20code','Operation\x20type','Flow\x20code','sql','code','dry-run','Expected\x20affected\x20count','5ManmJL','Use\x20global\x20config\x20scope','description-file','50uBjeqz','query','codes','keyword','Menu\x20label','Description','Target\x20path','menuIds','string','env','flow-code','boolean','Use\x20remote','yes','SQL\x20code','flow-status','Read\x20value\x20from\x20environment\x20variable','operation-type','Schemas','dataset-code','Flow\x20type','4634136AeTopK','Clear','rabetbase','8yrTJNW','dryRun','Output\x20format','topk','Function\x20node','target','591212qjDnpY','Force\x20overwrite','175005uciPFh','Environment','Preview\x20operation\x20without\x20executing','description','non-interactive','Comma-separated\x20menu\x20IDs','locale','flowType','Maximum\x20search\x20hits','sqlcode','confirm','name','sort','descriptionFile','DB\x20ID','parent-id','Enable\x20Backend\x20Function\x20save','expected-children-count'];a274_0xc4d6=function(){return _0x34ed8f;};return a274_0xc4d6();}(function(_0x418460,_0x2e4165){const _0x23504d=a274_0x1cf6,_0x37fcca=_0x418460();while(!![]){try{const _0x25a8f0=-parseInt(_0x23504d(0x1f4))/0x1*(parseInt(_0x23504d(0x215))/0x2)+parseInt(_0x23504d(0x217))/0x3+parseInt(_0x23504d(0x1d2))/0x4+-parseInt(_0x23504d(0x249))/0x5*(parseInt(_0x23504d(0x241))/0x6)+parseInt(_0x23504d(0x1c5))/0x7+-parseInt(_0x23504d(0x20f))/0x8*(parseInt(_0x23504d(0x20c))/0x9)+parseInt(_0x23504d(0x1f7))/0xa*(parseInt(_0x23504d(0x240))/0xb);if(_0x25a8f0===_0x2e4165)break;else _0x37fcca['push'](_0x37fcca['shift']());}catch(_0xe3c650){_0x37fcca['push'](_0x37fcca['shift']());}}}(a274_0xc4d6,0xc23ec));export const CLI_BIN_NAME=a274_0x218fa8(0x20e);export const CLI_DISPLAY_NAME=a274_0x218fa8(0x239);export const NPM_PACKAGE_NAME=a274_0x218fa8(0x1be);export const GLOBAL_FLAGS=[{'name':a274_0x218fa8(0x232),'meowKey':a274_0x218fa8(0x232),'type':a274_0x218fa8(0x1ff),'description':a274_0x218fa8(0x233),'hint':a274_0x218fa8(0x1d8)},{'name':'app','meowKey':a274_0x218fa8(0x1df),'type':a274_0x218fa8(0x1ff),'description':a274_0x218fa8(0x22c),'hint':a274_0x218fa8(0x1c8)},{'name':'env','meowKey':a274_0x218fa8(0x200),'type':a274_0x218fa8(0x1ff),'description':a274_0x218fa8(0x218),'hint':a274_0x218fa8(0x23b)},{'name':'format','meowKey':a274_0x218fa8(0x1ce),'type':a274_0x218fa8(0x1ff),'description':a274_0x218fa8(0x211),'hint':a274_0x218fa8(0x24b)},{'name':'jq','meowKey':'jq','type':a274_0x218fa8(0x1ff),'description':a274_0x218fa8(0x1e7),'hint':a274_0x218fa8(0x236)},{'name':a274_0x218fa8(0x1f2),'meowKey':a274_0x218fa8(0x210),'type':a274_0x218fa8(0x202),'description':a274_0x218fa8(0x219)},{'name':'yes','meowKey':'yes','type':a274_0x218fa8(0x202),'description':a274_0x218fa8(0x231)},{'name':a274_0x218fa8(0x21b),'meowKey':a274_0x218fa8(0x23e),'type':a274_0x218fa8(0x202),'description':a274_0x218fa8(0x1d6)},{'name':a274_0x218fa8(0x24c),'meowKey':a274_0x218fa8(0x24c),'type':a274_0x218fa8(0x202),'description':a274_0x218fa8(0x1f5)},{'name':a274_0x218fa8(0x1c0),'meowKey':a274_0x218fa8(0x1c0),'type':a274_0x218fa8(0x202),'description':a274_0x218fa8(0x243)},{'name':'ci','meowKey':'ci','type':a274_0x218fa8(0x202),'description':a274_0x218fa8(0x1d5),'hidden':!![]},{'name':'help','meowKey':'help','type':a274_0x218fa8(0x202),'description':'Show\x20help'},{'name':a274_0x218fa8(0x21d),'meowKey':a274_0x218fa8(0x21d),'type':a274_0x218fa8(0x1ff),'description':'App\x20locale\x20(workspace\x20pass-through;\x20not\x20CLI\x20language)','hidden':!![],'hint':a274_0x218fa8(0x245)},{'name':a274_0x218fa8(0x222),'meowKey':a274_0x218fa8(0x222),'type':a274_0x218fa8(0x1ff),'description':'Name','hidden':!![]},{'name':a274_0x218fa8(0x1d3),'meowKey':'title','type':'string','description':a274_0x218fa8(0x1de),'hidden':!![]},{'name':a274_0x218fa8(0x1f8),'meowKey':a274_0x218fa8(0x1f8),'type':a274_0x218fa8(0x1ff),'description':'Search\x20query','hidden':!![]},{'name':a274_0x218fa8(0x212),'meowKey':'topk','type':a274_0x218fa8(0x1ff),'description':a274_0x218fa8(0x21f),'hidden':!![]},{'name':'clear','meowKey':a274_0x218fa8(0x1ca),'type':a274_0x218fa8(0x202),'description':a274_0x218fa8(0x20d),'hidden':!![]},{'name':a274_0x218fa8(0x1d7),'meowKey':a274_0x218fa8(0x1d7),'type':'boolean','description':a274_0x218fa8(0x248),'hidden':!![]},{'name':a274_0x218fa8(0x1e8),'meowKey':a274_0x218fa8(0x1e8),'type':'string','description':a274_0x218fa8(0x22a),'hidden':!![]},{'name':a274_0x218fa8(0x1dd),'meowKey':a274_0x218fa8(0x1dd),'type':'string','description':a274_0x218fa8(0x1d9),'hidden':!![]},{'name':a274_0x218fa8(0x246),'meowKey':a274_0x218fa8(0x246),'type':a274_0x218fa8(0x1ff),'description':a274_0x218fa8(0x1ed),'hidden':!![]},{'name':a274_0x218fa8(0x22d),'meowKey':'all','type':a274_0x218fa8(0x202),'description':'Apply\x20to\x20all','hidden':!![]},{'name':'enable-bff-save','meowKey':a274_0x218fa8(0x1dc),'type':a274_0x218fa8(0x202),'description':a274_0x218fa8(0x227),'hidden':!![]},{'name':'id','meowKey':'id','type':'string','description':'Record\x20ID','hidden':!![]},{'name':a274_0x218fa8(0x1db),'meowKey':a274_0x218fa8(0x1db),'type':a274_0x218fa8(0x1ff),'description':a274_0x218fa8(0x1c1),'hidden':!![]},{'name':a274_0x218fa8(0x244),'meowKey':a274_0x218fa8(0x244),'type':a274_0x218fa8(0x1ff),'description':'File\x20path','hidden':!![]},{'name':a274_0x218fa8(0x201),'meowKey':'flowCode','type':a274_0x218fa8(0x1ff),'description':a274_0x218fa8(0x1ef),'hidden':!![]},{'name':'flow-name','meowKey':'flowName','type':a274_0x218fa8(0x1ff),'description':a274_0x218fa8(0x1e4),'hidden':!![]},{'name':a274_0x218fa8(0x206),'meowKey':a274_0x218fa8(0x1cb),'type':a274_0x218fa8(0x1ff),'description':'Flow\x20status','hidden':!![]},{'name':'flow-type','meowKey':a274_0x218fa8(0x21e),'type':a274_0x218fa8(0x1ff),'description':a274_0x218fa8(0x20b),'hidden':!![]},{'name':a274_0x218fa8(0x20a),'meowKey':'datasetCode','type':a274_0x218fa8(0x1ff),'description':a274_0x218fa8(0x1ed),'hidden':!![]},{'name':'sqlcode','meowKey':a274_0x218fa8(0x220),'type':'string','description':a274_0x218fa8(0x205),'hidden':!![]},{'name':a274_0x218fa8(0x247),'meowKey':a274_0x218fa8(0x1ea),'type':'string','description':a274_0x218fa8(0x1e9),'hidden':!![]},{'name':'sqlname','meowKey':a274_0x218fa8(0x1eb),'type':a274_0x218fa8(0x1ff),'description':a274_0x218fa8(0x1e9),'hidden':!![]},{'name':a274_0x218fa8(0x24a),'meowKey':'dbId','type':'string','description':a274_0x218fa8(0x225),'hidden':!![]},{'name':'dbid','meowKey':a274_0x218fa8(0x22b),'type':'string','description':a274_0x218fa8(0x225),'hidden':!![]},{'name':a274_0x218fa8(0x21a),'meowKey':a274_0x218fa8(0x21a),'type':a274_0x218fa8(0x1ff),'description':a274_0x218fa8(0x1fc),'hidden':!![]},{'name':a274_0x218fa8(0x1f6),'meowKey':a274_0x218fa8(0x224),'type':a274_0x218fa8(0x1ff),'description':a274_0x218fa8(0x1c3),'hidden':!![]},{'name':a274_0x218fa8(0x23d),'meowKey':'page','type':a274_0x218fa8(0x1ff),'description':a274_0x218fa8(0x1e2),'hidden':!![]},{'name':'page-size','meowKey':'pageSize','type':a274_0x218fa8(0x1ff),'description':a274_0x218fa8(0x1ec),'hidden':!![]},{'name':a274_0x218fa8(0x1c7),'meowKey':a274_0x218fa8(0x1c7),'type':'string','description':a274_0x218fa8(0x1ec),'hidden':!![]},{'name':a274_0x218fa8(0x1fa),'meowKey':a274_0x218fa8(0x1fa),'type':a274_0x218fa8(0x1ff),'description':a274_0x218fa8(0x1cc),'hidden':!![]},{'name':'code','meowKey':a274_0x218fa8(0x1f1),'type':a274_0x218fa8(0x1ff),'description':'Code\x20filter','hidden':!![]},{'name':'sql','meowKey':a274_0x218fa8(0x1f0),'type':'string','description':a274_0x218fa8(0x1bf),'hidden':!![]},{'name':a274_0x218fa8(0x235),'meowKey':a274_0x218fa8(0x235),'type':a274_0x218fa8(0x1ff),'description':a274_0x218fa8(0x209),'hidden':!![]},{'name':a274_0x218fa8(0x24d),'meowKey':a274_0x218fa8(0x24d),'type':a274_0x218fa8(0x1ff),'description':a274_0x218fa8(0x1ee),'hidden':!![]},{'name':a274_0x218fa8(0x214),'meowKey':a274_0x218fa8(0x214),'type':a274_0x218fa8(0x1ff),'description':a274_0x218fa8(0x1fd),'hidden':!![]},{'name':'skip-imports','meowKey':'skipImports','type':a274_0x218fa8(0x202),'description':'Skip\x20import\x20generation','hidden':!![]},{'name':a274_0x218fa8(0x22e),'meowKey':a274_0x218fa8(0x22e),'type':a274_0x218fa8(0x1ff),'description':a274_0x218fa8(0x1e3),'hidden':!![]},{'name':a274_0x218fa8(0x1e0),'meowKey':a274_0x218fa8(0x1e0),'type':a274_0x218fa8(0x1ff),'description':'Config\x20value','hidden':!![]},{'name':a274_0x218fa8(0x23c),'meowKey':'tags','type':'string','description':'Tags','hidden':!![]},{'name':a274_0x218fa8(0x1da),'meowKey':a274_0x218fa8(0x1da),'type':a274_0x218fa8(0x202),'description':'Read\x20value\x20from\x20stdin','hidden':!![]},{'name':'from-env','meowKey':a274_0x218fa8(0x234),'type':'string','description':a274_0x218fa8(0x207),'hidden':!![]},{'name':a274_0x218fa8(0x1d1),'meowKey':a274_0x218fa8(0x1d1),'type':'boolean','description':a274_0x218fa8(0x238),'hidden':!![]},{'name':a274_0x218fa8(0x1c2),'meowKey':a274_0x218fa8(0x1c2),'type':a274_0x218fa8(0x202),'description':a274_0x218fa8(0x216),'hidden':!![]},{'name':a274_0x218fa8(0x221),'meowKey':a274_0x218fa8(0x221),'type':a274_0x218fa8(0x202),'description':'Confirm\x20destructive\x20action','hidden':!![]},{'name':a274_0x218fa8(0x1e1),'meowKey':a274_0x218fa8(0x1e1),'type':a274_0x218fa8(0x202),'description':a274_0x218fa8(0x203),'hidden':!![]},{'name':a274_0x218fa8(0x23f),'meowKey':a274_0x218fa8(0x23f),'type':a274_0x218fa8(0x202),'description':a274_0x218fa8(0x23a),'hidden':!![]},{'name':a274_0x218fa8(0x237),'meowKey':'expectedCount','type':a274_0x218fa8(0x1ff),'description':a274_0x218fa8(0x1f3),'hidden':!![]},{'name':a274_0x218fa8(0x1e6),'meowKey':a274_0x218fa8(0x1e6),'type':a274_0x218fa8(0x1ff),'description':a274_0x218fa8(0x1fb),'hidden':!![]},{'name':a274_0x218fa8(0x226),'meowKey':a274_0x218fa8(0x1c6),'type':a274_0x218fa8(0x1ff),'description':a274_0x218fa8(0x242),'hidden':!![]},{'name':a274_0x218fa8(0x223),'meowKey':a274_0x218fa8(0x223),'type':a274_0x218fa8(0x1ff),'description':a274_0x218fa8(0x1c4),'hidden':!![]},{'name':a274_0x218fa8(0x1cd),'meowKey':'expectParentId','type':a274_0x218fa8(0x1ff),'description':'Expected\x20current\x20parent\x20menu\x20id','hidden':!![]},{'name':a274_0x218fa8(0x22f),'meowKey':a274_0x218fa8(0x1cf),'type':a274_0x218fa8(0x1ff),'description':'Expected\x20current\x20menu\x20path','hidden':!![]},{'name':a274_0x218fa8(0x228),'meowKey':'expectedChildrenCount','type':'string','description':a274_0x218fa8(0x1e5),'hidden':!![]},{'name':'menu-ids','meowKey':a274_0x218fa8(0x1fe),'type':a274_0x218fa8(0x1ff),'description':a274_0x218fa8(0x21c),'hidden':!![]},{'name':a274_0x218fa8(0x1d4),'meowKey':'taskId','type':a274_0x218fa8(0x1ff),'description':a274_0x218fa8(0x230),'hidden':!![]},{'name':a274_0x218fa8(0x208),'meowKey':'operationType','type':a274_0x218fa8(0x1ff),'description':a274_0x218fa8(0x1ee),'hidden':!![]},{'name':a274_0x218fa8(0x1d0),'meowKey':a274_0x218fa8(0x229),'type':a274_0x218fa8(0x1ff),'description':a274_0x218fa8(0x213),'hidden':!![]},{'name':a274_0x218fa8(0x1f9),'meowKey':a274_0x218fa8(0x1f9),'type':a274_0x218fa8(0x1ff),'description':'Comma-separated\x20metadata\x20codes','hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a274_0x218fa8(0x232),'app',a274_0x218fa8(0x200),a274_0x218fa8(0x1ce),'jq',a274_0x218fa8(0x1f2),a274_0x218fa8(0x204),'non-interactive','ci']);function a274_0x1cf6(_0x1df6aa,_0x41f0a2){_0x1df6aa=_0x1df6aa-0x1be;const _0xc4d603=a274_0xc4d6();let _0x1cf620=_0xc4d603[_0x1df6aa];return _0x1cf620;}export function buildMeowFlags(){const _0x81f8a6=a274_0x218fa8;return Object['fromEntries'](GLOBAL_FLAGS[_0x81f8a6(0x1c9)](_0x15d8a7=>[_0x15d8a7['meowKey'],{'type':_0x15d8a7[_0x81f8a6(0x1db)]}]));}
|
|
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)]}]));}
|
package/lib/constant/defaults.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a275_0x48c8a5=a275_0x18b3;(function(_0x3d8899,_0x12a533){const _0x39d8bd=a275_0x18b3,_0x4878b7=_0x3d8899();while(!![]){try{const _0x1af188=parseInt(_0x39d8bd(0x1b1))/0x1*(parseInt(_0x39d8bd(0x1b0))/0x2)+-parseInt(_0x39d8bd(0x1ae))/0x3*(-parseInt(_0x39d8bd(0x1b4))/0x4)+-parseInt(_0x39d8bd(0x1b2))/0x5*(parseInt(_0x39d8bd(0x1a8))/0x6)+-parseInt(_0x39d8bd(0x1ab))/0x7+parseInt(_0x39d8bd(0x1af))/0x8+parseInt(_0x39d8bd(0x1b3))/0x9+-parseInt(_0x39d8bd(0x1a9))/0xa;if(_0x1af188===_0x12a533)break;else _0x4878b7['push'](_0x4878b7['shift']());}catch(_0x1a7a01){_0x4878b7['push'](_0x4878b7['shift']());}}}(a275_0x6477,0xd3a4d));function a275_0x18b3(_0xbbf1cc,_0x71a3f5){_0xbbf1cc=_0xbbf1cc-0x1a8;const _0x647760=a275_0x6477();let _0x18b320=_0x647760[_0xbbf1cc];return _0x18b320;}import{DEFAULT_API_DIR}from'../constant/paths.js';export const DEFAULT_CONFIG_VALUES={'env':a275_0x48c8a5(0x1ad),'format':'compress','locale':a275_0x48c8a5(0x1ac),'riskLevel':'write','apiDir':DEFAULT_API_DIR};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a275_0x48c8a5(0x1aa);function a275_0x6477(){const _0x5b4cb1=['88HEqqsG','8355125LsdvVT','11218437VJSqmZ','4dUBfzK','6tZdVoG','6168290mAavSf','compress','7605563JBaPTU','en-US','production','1394346tauQZn','9179304elecPJ','31422vKIhdo'];a275_0x6477=function(){return _0x5b4cb1;};return a275_0x6477();}
|
package/lib/constant/domain.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a276_0x3023ec=a276_0x3b18;(function(_0x2767cf,_0x1c4fc7){const _0x1c3d86=a276_0x3b18,_0x7626f1=_0x2767cf();while(!![]){try{const _0x21d159=parseInt(_0x1c3d86(0x172))/0x1+parseInt(_0x1c3d86(0x179))/0x2+parseInt(_0x1c3d86(0x167))/0x3*(-parseInt(_0x1c3d86(0x16a))/0x4)+parseInt(_0x1c3d86(0x17c))/0x5*(parseInt(_0x1c3d86(0x17d))/0x6)+-parseInt(_0x1c3d86(0x175))/0x7*(-parseInt(_0x1c3d86(0x17b))/0x8)+parseInt(_0x1c3d86(0x170))/0x9*(parseInt(_0x1c3d86(0x165))/0xa)+-parseInt(_0x1c3d86(0x16f))/0xb*(-parseInt(_0x1c3d86(0x177))/0xc);if(_0x21d159===_0x1c4fc7)break;else _0x7626f1['push'](_0x7626f1['shift']());}catch(_0x46fa59){_0x7626f1['push'](_0x7626f1['shift']());}}}(a276_0x55ca,0x79a2c));import{getEnv,isProduction}from'../constant/env.js';import{DEFAULT_LOVRABET_REGION}from'../constant/region.js';import{getOfficialRoutingCdn,getOfficialRoutingProfile}from'../constant/routing-profile.js';let customApiDomain,customUserDomain,customRuntimeDomain,customSkillDomain,customKbDomain,customKbServiceDomain,allowOfficialKbServiceDefault=!![],customAppDomain,customLocalDomain,customCertificateDomain,customCdn,activeRegion=DEFAULT_LOVRABET_REGION;function getActiveRegionDomains(){const _0x5a5947=a276_0x3b18,_0x4279c8=getOfficialRoutingProfile(activeRegion);return isProduction(getEnv())?_0x4279c8['serviceDomains'][_0x5a5947(0x178)]:_0x4279c8[_0x5a5947(0x16d)]['daily']??_0x4279c8[_0x5a5947(0x16d)]['production'];}export function initDomains(_0x5b636a){const _0x4eb411=a276_0x3b18;customApiDomain=_0x5b636a?.[_0x4eb411(0x168)],customUserDomain=_0x5b636a?.[_0x4eb411(0x166)],customRuntimeDomain=_0x5b636a?.['runtimeDomain'],customSkillDomain=_0x5b636a?.['skillDomain'],customKbDomain=_0x5b636a?.['kbDomain'],customKbServiceDomain=_0x5b636a?.[_0x4eb411(0x176)],allowOfficialKbServiceDefault=_0x5b636a?.['allowOfficialKbServiceDefault']??!![],customAppDomain=_0x5b636a?.['appDomain'],customLocalDomain=_0x5b636a?.[_0x4eb411(0x16b)],customCertificateDomain=_0x5b636a?.['certificateDomain'],customCdn=_0x5b636a?.[_0x4eb411(0x16e)],activeRegion=_0x5b636a?.[_0x4eb411(0x171)]??DEFAULT_LOVRABET_REGION;}export const getUserDomain=()=>customUserDomain||getActiveRegionDomains()[a276_0x3023ec(0x169)];export const getApiDomain=()=>customApiDomain||getActiveRegionDomains()['api'];export const getRuntimeDomain=()=>customRuntimeDomain||getActiveRegionDomains()[a276_0x3023ec(0x174)];export const getSkillDomain=()=>customSkillDomain||getActiveRegionDomains()['skill'];export const getKbDomain=()=>customKbDomain||customApiDomain||getActiveRegionDomains()['kb'];export const getKbServiceDomain=()=>{if(customKbServiceDomain)return customKbServiceDomain;if(!allowOfficialKbServiceDefault)return undefined;return getActiveRegionDomains()['kbService'];};export const getAppDomain=()=>customAppDomain||getActiveRegionDomains()['app'];export const getActiveRegion=()=>activeRegion;export const getLocalDomain=()=>customLocalDomain;function a276_0x55ca(){const _0x2349c4=['7356EJeETt','production','256672LTQLeh','hostname','10776ahhUHA','1032765ELnYJE','12JBEWcy','5454410uPJIGX','userDomain','11031aAJDEc','apiDomain','user','744zicQVw','localDomain','trim','serviceDomains','cdn','77RDfBQK','9CReZFk','region','78845dbaYMJ','/app/','runtime','63AJGwlR','kbServiceDomain'];a276_0x55ca=function(){return _0x2349c4;};return a276_0x55ca();}export const getCertificateDomain=()=>customCertificateDomain;export const getActiveCdn=()=>customCdn||getOfficialRoutingCdn(activeRegion);export function isIndependentDeployment(){return!!(customApiDomain||customUserDomain||customRuntimeDomain||customSkillDomain||customKbDomain||customAppDomain||customLocalDomain||customCertificateDomain);}export function getSdkClientRoutingConfig(){const _0x8ad5be=a276_0x3023ec;if(customRuntimeDomain&&customRuntimeDomain!==getActiveRegionDomains()[_0x8ad5be(0x174)])return{'runtimeDomain':customRuntimeDomain};if(activeRegion!==DEFAULT_LOVRABET_REGION)return{'runtimeDomain':getRuntimeDomain()};return{};}export const getAppBaseUrl=_0x59ff3f=>{const _0x54e0e4=a276_0x3023ec,_0x2db0f4=encodeURIComponent(_0x59ff3f[_0x54e0e4(0x16c)]());return isProduction(getEnv())?getAppDomain()+_0x54e0e4(0x173)+_0x2db0f4:getAppDomain()+'/web-app/app/'+_0x2db0f4;};function a276_0x3b18(_0x4ac323,_0x1ceb8a){_0x4ac323=_0x4ac323-0x165;const _0x55ca9a=a276_0x55ca();let _0x3b180f=_0x55ca9a[_0x4ac323];return _0x3b180f;}export const getPublishedAppDomain=_0x519843=>{const _0x49e105=a276_0x3023ec,_0x2b9f5a=new URL(getAppDomain());return _0x2b9f5a[_0x49e105(0x17a)]=_0x519843[_0x49e105(0x16c)]()+'.'+_0x2b9f5a[_0x49e105(0x17a)],_0x2b9f5a['origin'];};
|
package/lib/constant/env.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a277_0x2073(){const _0x139fd0=['online','daily','2MWYMmS','20ILQKMG','859860IxhScO','dev','16521043BZRwcw','21uRaEZe','10976232LSYzIW','40XWZiIC','production','1440365wcIkTt','2878368GIvpfj','development','452714HufWYL','527664WflxYL'];a277_0x2073=function(){return _0x139fd0;};return a277_0x2073();}const a277_0xeb1c9c=a277_0x1ccd;(function(_0x432fbe,_0x5759a4){const _0x3db83e=a277_0x1ccd,_0x51547b=_0x432fbe();while(!![]){try{const _0x277ff2=-parseInt(_0x3db83e(0x1ad))/0x1+-parseInt(_0x3db83e(0x1b1))/0x2*(parseInt(_0x3db83e(0x1ab))/0x3)+-parseInt(_0x3db83e(0x1b2))/0x4*(-parseInt(_0x3db83e(0x1aa))/0x5)+parseInt(_0x3db83e(0x1b7))/0x6+parseInt(_0x3db83e(0x1b6))/0x7*(parseInt(_0x3db83e(0x1ae))/0x8)+-parseInt(_0x3db83e(0x1b3))/0x9*(-parseInt(_0x3db83e(0x1b8))/0xa)+-parseInt(_0x3db83e(0x1b5))/0xb;if(_0x277ff2===_0x5759a4)break;else _0x51547b['push'](_0x51547b['shift']());}catch(_0x20c36d){_0x51547b['push'](_0x51547b['shift']());}}}(a277_0x2073,0xe4708));export const RABETBASE_ENV_VALUES=['production',a277_0xeb1c9c(0x1b0)];export function normalizeEnv(_0x15297f){const _0x4fe89d=a277_0xeb1c9c;return _0x15297f===_0x4fe89d(0x1af)?_0x4fe89d(0x1b9):_0x15297f;}export function isProduction(_0x2609c2){const _0x4a62f8=a277_0xeb1c9c;return normalizeEnv(_0x2609c2)===_0x4a62f8(0x1b9);}export function isDaily(_0x32e039){const _0x1c4495=a277_0xeb1c9c;return normalizeEnv(_0x32e039)===_0x1c4495(0x1b0);}export function isDev(_0x3db99a){const _0x4bffbc=a277_0xeb1c9c,_0x179a1f=normalizeEnv(_0x3db99a);return _0x179a1f===_0x4bffbc(0x1ac)||_0x179a1f===_0x4bffbc(0x1b4);}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||a277_0xeb1c9c(0x1b9));function a277_0x1ccd(_0x6d44d6,_0x59f827){_0x6d44d6=_0x6d44d6-0x1aa;const _0x2073e5=a277_0x2073();let _0x1ccd16=_0x2073e5[_0x6d44d6];return _0x1ccd16;}export function getEnv(){return env;}export function initEnv(_0x51be9b){env=normalizeEnv(_0x51be9b);}
|
package/lib/constant/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a278_0x477e28=a278_0x36a9;function a278_0x36a9(_0x32c2e6,_0x92a7d6){_0x32c2e6=_0x32c2e6-0x1a1;const _0x26f7b8=a278_0x26f7();let _0x36a923=_0x26f7b8[_0x32c2e6];return _0x36a923;}function a278_0x26f7(){const _0x65a6f2=['compress','217424naaICt','pretty','32pBzSCm','545165ocoJsO','252ZNZrkH','853899gGtaCi','json','27lfcpMi','884908LbcBtQ','9377220SvqFmi','292452AwOXKd','4zGMpMb','35044438jcMaXl'];a278_0x26f7=function(){return _0x65a6f2;};return a278_0x26f7();}(function(_0x4993fe,_0x2d1522){const _0x58cb3b=a278_0x36a9,_0x440845=_0x4993fe();while(!![]){try{const _0x26fc82=parseInt(_0x58cb3b(0x1a9))/0x1+-parseInt(_0x58cb3b(0x1ac))/0x2*(-parseInt(_0x58cb3b(0x1a6))/0x3)+-parseInt(_0x58cb3b(0x1a3))/0x4*(parseInt(_0x58cb3b(0x1a4))/0x5)+-parseInt(_0x58cb3b(0x1ab))/0x6*(parseInt(_0x58cb3b(0x1a5))/0x7)+parseInt(_0x58cb3b(0x1a1))/0x8*(-parseInt(_0x58cb3b(0x1a8))/0x9)+-parseInt(_0x58cb3b(0x1aa))/0xa+parseInt(_0x58cb3b(0x1ad))/0xb;if(_0x26fc82===_0x2d1522)break;else _0x440845['push'](_0x440845['shift']());}catch(_0x256f0f){_0x440845['push'](_0x440845['shift']());}}}(a278_0x26f7,0xf2a08));export const RABETBASE_OUTPUT_FORMAT_VALUES=[a278_0x477e28(0x1a7),a278_0x477e28(0x1a2),a278_0x477e28(0x1ae)];
|
package/lib/constant/paths.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a279_0x43a1(){const _0x1829fe=['1542042lCewxj','80oKpkFn','2bOhlQM','2656420PItTBZ','563731bcUcek','593179GcvoQi','1858098YPfboE','./src/api','876861AolwDc','175440IpDpnZ'];a279_0x43a1=function(){return _0x1829fe;};return a279_0x43a1();}const a279_0x32c60c=a279_0x322a;function a279_0x322a(_0x596f43,_0x35d959){_0x596f43=_0x596f43-0x1b4;const _0x43a1c2=a279_0x43a1();let _0x322aaa=_0x43a1c2[_0x596f43];return _0x322aaa;}(function(_0x99687b,_0x15e359){const _0x2e2049=a279_0x322a,_0x2264cd=_0x99687b();while(!![]){try{const _0x3d53e3=parseInt(_0x2e2049(0x1bc))/0x1*(-parseInt(_0x2e2049(0x1b9))/0x2)+-parseInt(_0x2e2049(0x1b7))/0x3+parseInt(_0x2e2049(0x1ba))/0x4+parseInt(_0x2e2049(0x1b6))/0x5+-parseInt(_0x2e2049(0x1bd))/0x6+parseInt(_0x2e2049(0x1bb))/0x7+-parseInt(_0x2e2049(0x1b8))/0x8*(-parseInt(_0x2e2049(0x1b5))/0x9);if(_0x3d53e3===_0x15e359)break;else _0x2264cd['push'](_0x2264cd['shift']());}catch(_0x4baf06){_0x2264cd['push'](_0x2264cd['shift']());}}}(a279_0x43a1,0x524f4));export const DEFAULT_API_DIR=a279_0x32c60c(0x1b4);
|
package/lib/constant/region.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x10cbe1,_0x1201db){const _0x1db5f0=a280_0x2c58,_0x4bd121=_0x10cbe1();while(!![]){try{const _0x11d669=parseInt(_0x1db5f0(0x17c))/0x1*(-parseInt(_0x1db5f0(0x183))/0x2)+-parseInt(_0x1db5f0(0x17d))/0x3*(parseInt(_0x1db5f0(0x181))/0x4)+parseInt(_0x1db5f0(0x17b))/0x5+parseInt(_0x1db5f0(0x180))/0x6*(-parseInt(_0x1db5f0(0x184))/0x7)+-parseInt(_0x1db5f0(0x17e))/0x8*(-parseInt(_0x1db5f0(0x187))/0x9)+parseInt(_0x1db5f0(0x186))/0xa+-parseInt(_0x1db5f0(0x17f))/0xb;if(_0x11d669===_0x1201db)break;else _0x4bd121['push'](_0x4bd121['shift']());}catch(_0x27f38f){_0x4bd121['push'](_0x4bd121['shift']());}}}(a280_0x476f,0xdfd42));import{DEFAULT_REGION,ENABLED_REGION_VALUES,REGION_ALIASES,REGION_VALUES}from'../generated/official-routing.js';export const LOVRABET_REGION_VALUES=REGION_VALUES;export const ENABLED_LOVRABET_REGION_VALUES=ENABLED_REGION_VALUES;function a280_0x2c58(_0x894253,_0x8fe714){_0x894253=_0x894253-0x17b;const _0x476f33=a280_0x476f();let _0x2c5870=_0x476f33[_0x894253];return _0x2c5870;}export const DEFAULT_LOVRABET_REGION=DEFAULT_REGION;function a280_0x476f(){const _0x1d1d3a=['17682690XAghAM','9kMqQJw','8694655ndMnCs','497zmWdqZ','3GblPbh','10178024khSfMs','3236750cLNwRp','6eCsIZI','5390644qGeUEc','includes','2674RYorrg','10893757vRCVfh','string'];a280_0x476f=function(){return _0x1d1d3a;};return a280_0x476f();}export function isLovrabetRegion(_0x4d14ff){const _0x5e3448=a280_0x2c58;return typeof _0x4d14ff==='string'&&LOVRABET_REGION_VALUES[_0x5e3448(0x182)](_0x4d14ff);}export function isEnabledLovrabetRegion(_0x52c43d){const _0x34edac=a280_0x2c58;return typeof _0x52c43d===_0x34edac(0x185)&&ENABLED_LOVRABET_REGION_VALUES[_0x34edac(0x182)](_0x52c43d);}export function normalizeLovrabetRegion(_0x1801f3){const _0x3d213d=a280_0x2c58;if(typeof _0x1801f3!==_0x3d213d(0x185))return undefined;const _0x470326=REGION_ALIASES[_0x1801f3]??_0x1801f3;return isLovrabetRegion(_0x470326)?_0x470326:undefined;}export function isInvalidLovrabetRegion(_0x8ddc69){return _0x8ddc69!==undefined&&_0x8ddc69!==null&&_0x8ddc69!==''&&normalizeLovrabetRegion(_0x8ddc69)===undefined;}
|
package/lib/constant/risk.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a281_0x5e00(_0x4d53d4,_0x201e40){_0x4d53d4=_0x4d53d4-0xf3;const _0x19f67b=a281_0x19f6();let _0x5e0094=_0x19f67b[_0x4d53d4];return _0x5e0094;}const a281_0x3496d1=a281_0x5e00;(function(_0x482466,_0x34d2cc){const _0x1038bf=a281_0x5e00,_0x1d3ea5=_0x482466();while(!![]){try{const _0x1310d0=-parseInt(_0x1038bf(0xf8))/0x1+parseInt(_0x1038bf(0xf9))/0x2*(-parseInt(_0x1038bf(0xfd))/0x3)+-parseInt(_0x1038bf(0xfc))/0x4*(parseInt(_0x1038bf(0xfa))/0x5)+parseInt(_0x1038bf(0xfb))/0x6+parseInt(_0x1038bf(0xf7))/0x7+parseInt(_0x1038bf(0xf3))/0x8+-parseInt(_0x1038bf(0xfe))/0x9*(-parseInt(_0x1038bf(0xf5))/0xa);if(_0x1310d0===_0x34d2cc)break;else _0x1d3ea5['push'](_0x1d3ea5['shift']());}catch(_0x366d72){_0x1d3ea5['push'](_0x1d3ea5['shift']());}}}(a281_0x19f6,0x3a395));export const RISK_LEVEL_VALUES=[a281_0x3496d1(0xf6),a281_0x3496d1(0xf4),'high-risk-write'];function a281_0x19f6(){const _0x2d1b56=['47720YwZMkE','read','2765266VtjQUI','223100JFxRQK','5306qwJVAF','1081865XVILrB','1441158ErmoYY','8GkdyIU','213vnkgFz','279lGXOHC','2396248fvptrf','write'];a281_0x19f6=function(){return _0x2d1b56;};return a281_0x19f6();}
|
|
@@ -93,6 +93,7 @@ export declare const OFFICIAL_ROUTING_PROFILES: {
|
|
|
93
93
|
readonly runtime: "https://runtime.lovrabet.ai";
|
|
94
94
|
readonly skill: "https://skills.lovrabet.ai";
|
|
95
95
|
readonly kb: "https://api.lovrabet.ai";
|
|
96
|
+
readonly kbService: "https://kb-service.lovrabet.ai";
|
|
96
97
|
readonly app: "https://app.lovrabet.ai";
|
|
97
98
|
};
|
|
98
99
|
readonly daily: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x287308,_0x8b8dd0){const _0x34ef22=a282_0x1b43,_0x2f0254=_0x287308();while(!![]){try{const _0x526b5b=-parseInt(_0x34ef22(0xf7))/0x1*(parseInt(_0x34ef22(0xf2))/0x2)+parseInt(_0x34ef22(0xf1))/0x3*(-parseInt(_0x34ef22(0xf0))/0x4)+parseInt(_0x34ef22(0xfb))/0x5*(-parseInt(_0x34ef22(0xf9))/0x6)+-parseInt(_0x34ef22(0xf5))/0x7+parseInt(_0x34ef22(0xfa))/0x8+-parseInt(_0x34ef22(0xf6))/0x9*(-parseInt(_0x34ef22(0xef))/0xa)+-parseInt(_0x34ef22(0xf8))/0xb*(-parseInt(_0x34ef22(0xf3))/0xc);if(_0x526b5b===_0x8b8dd0)break;else _0x2f0254['push'](_0x2f0254['shift']());}catch(_0x3d647e){_0x2f0254['push'](_0x2f0254['shift']());}}}(a282_0x2c86,0xdfaf2));import{OFFICIAL_ROUTING_PROFILES as a282_0x2ce5e3,ROUTING_CATALOG_DIGEST}from'../generated/official-routing.js';export const OFFICIAL_ROUTING_PROFILES=a282_0x2ce5e3;function a282_0x2c86(){const _0x1ff6bd=['1KhyrTa','6800673EKqQuB','41394uMcEVb','6532256hoTBZO','205vDCabB','\x22\x20is\x20not\x20ready:\x20Lovrabet\x20CDN\x20Domain\x20is\x20not\x20configured.','175570QpNYiL','1004876bBIZTc','15ORJAra','3098956jUoPYl','36BirxDy','Official\x20routing\x20for\x20region\x20\x22','1358546GAkWiz','783yFOiGN'];a282_0x2c86=function(){return _0x1ff6bd;};return a282_0x2c86();}function a282_0x1b43(_0x164353,_0x14ecfd){_0x164353=_0x164353-0xef;const _0x2c863=a282_0x2c86();let _0x1b4399=_0x2c863[_0x164353];return _0x1b4399;}export{ROUTING_CATALOG_DIGEST};export function getOfficialRoutingProfile(_0x105468){return OFFICIAL_ROUTING_PROFILES[_0x105468];}export function getOfficialRoutingCdn(_0x92fe45){const _0x35ab0e=a282_0x1b43,_0x4ba894=getOfficialRoutingProfile(_0x92fe45)['cdn'];if(!_0x4ba894['lovrabet'])throw new Error(_0x35ab0e(0xf4)+_0x92fe45+_0x35ab0e(0xfc));return{'libraries':_0x4ba894['libraries'],'lovrabet':_0x4ba894['lovrabet']};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x380f5c,_0x4c9835){const _0xf060d1=a283_0x11a3,_0x36ab15=_0x380f5c();while(!![]){try{const _0x20fe72=parseInt(_0xf060d1(0x85))/0x1+-parseInt(_0xf060d1(0x90))/0x2+parseInt(_0xf060d1(0x7b))/0x3+-parseInt(_0xf060d1(0x96))/0x4+-parseInt(_0xf060d1(0x84))/0x5*(-parseInt(_0xf060d1(0x8d))/0x6)+parseInt(_0xf060d1(0x88))/0x7+parseInt(_0xf060d1(0x87))/0x8*(-parseInt(_0xf060d1(0x82))/0x9);if(_0x20fe72===_0x4c9835)break;else _0x36ab15['push'](_0x36ab15['shift']());}catch(_0xe5f101){_0x36ab15['push'](_0x36ab15['shift']());}}}(a283_0x44ef,0x2c57b));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{isDaily,normalizeEnv}from'../constant/env.js';import{normalizeLegacyOutputFormat,riskLevelOrder}from'../framework/types.js';import{DEFAULT_LOVRABET_REGION,normalizeLovrabetRegion}from'../constant/region.js';import{selectConfiguredRegion}from'../config/region-config.js';function stringConfigValue(_0xd47181){const _0xc79a22=a283_0x11a3;return typeof _0xd47181===_0xc79a22(0xa1)&&_0xd47181[_0xc79a22(0x93)]()?_0xd47181[_0xc79a22(0x93)]():undefined;}function appProfiles(_0x282ade){const _0x11d8f7=a283_0x11a3;return _0x282ade[_0x11d8f7(0x9d)]&&typeof _0x282ade[_0x11d8f7(0x9d)]===_0x11d8f7(0x92)?_0x282ade[_0x11d8f7(0x9d)]:{};}function a283_0x11a3(_0x19072b,_0x20f9e2){_0x19072b=_0x19072b-0x7a;const _0x44efa7=a283_0x44ef();let _0x11a34d=_0x44efa7[_0x19072b];return _0x11a34d;}function resolveDefaultAppName(_0x2e0c6b){const _0x58ad75=a283_0x11a3,_0x89af70=stringConfigValue(_0x2e0c6b['defaultApp']);if(_0x89af70)return _0x89af70;const _0x14ef88=Object[_0x58ad75(0x8e)](appProfiles(_0x2e0c6b));return _0x14ef88['length']===0x1?_0x14ef88[0x0]:undefined;}function resolveTopLevelAppCode(_0x50772b){const _0x4cb606=a283_0x11a3;return stringConfigValue(_0x50772b[_0x4cb606(0x9b)])||stringConfigValue(_0x50772b[_0x4cb606(0x98)]);}function normalizeRiskCeiling(_0x4c5950){const _0xc60d6f=a283_0x11a3;if(_0x4c5950===undefined||_0x4c5950===null)return undefined;if(_0x4c5950===_0xc60d6f(0x8a)||_0x4c5950==='write'||_0x4c5950==='high-risk-write')return _0x4c5950;return _0xc60d6f(0x8a);}function a283_0x44ef(){const _0x120aa9=['FORMAT','pageSize','2064318jOFCVE','keys','VERBOSE','628370JoYxCg','format','object','trim','RISK_LEVEL','region','258484NYITfF','riskLevel','app','daily','value','appcode','apiDir','apps','ENV','projectConfig','locale','string','accessKey','projectPath','globalConfig','937332UtuNta','production','COOKIE','PAGE_SIZE','env','entries','ACCESS_KEY','639qxhCBV','length','5DVcXwa','59474uTWwjS','APP','52552qbXDFZ','2176027ZEoQEc','cookie','read'];a283_0x44ef=function(){return _0x120aa9;};return a283_0x44ef();}function resolveRiskCeiling(..._0x41975f){const _0x4ca1f9=a283_0x11a3;let _0x4c43f2;for(const _0x1868b2 of _0x41975f){const _0x1216b7=normalizeRiskCeiling(_0x1868b2);_0x1216b7&&(!_0x4c43f2||riskLevelOrder(_0x1216b7)<riskLevelOrder(_0x4c43f2))&&(_0x4c43f2=_0x1216b7);}return _0x4c43f2??DEFAULT_CONFIG_VALUES[_0x4ca1f9(0x97)];}export function resolveAppConfig({raw:_0x1e8fa6,flags:_0x34a87a,layers:_0x5377de,readEnv:_0x541704}){const _0x21b549=a283_0x11a3,_0x572046=_0x5377de?.[_0x21b549(0x9f)]??{},_0x30bc20=_0x5377de?.[_0x21b549(0x7a)]??{},_0x1b1c0d=!!_0x5377de?.[_0x21b549(0xa3)]||Object['keys'](_0x572046)['length']>0x0,_0x916830=!_0x1b1c0d,_0x247799=_0x1b1c0d?resolveDefaultAppName(_0x572046):undefined,_0x4f3d94=_0x916830?resolveDefaultAppName(_0x30bc20):undefined,_0x56deb3=stringConfigValue(_0x34a87a[_0x21b549(0x98)]),_0x292253=_0x541704(_0x21b549(0x86)),_0x327607={};if(_0x1e8fa6['apps']&&typeof _0x1e8fa6[_0x21b549(0x9d)]===_0x21b549(0x92))for(const [_0xd7a0db,_0x2af4cb]of Object[_0x21b549(0x80)](_0x1e8fa6['apps'])){_0x2af4cb&&typeof _0x2af4cb==='object'&&_0x2af4cb[_0x21b549(0x9b)]&&(_0x327607[_0xd7a0db]=_0x2af4cb);}const _0x530280=_0x247799||_0x4f3d94||resolveDefaultAppName(_0x1e8fa6),_0xae8d8f=Object[_0x21b549(0x8e)](_0x327607)['length']>0x0,_0x144c0f=_0x56deb3||_0x247799||_0x292253||_0x4f3d94||_0x530280||undefined,_0x17e207=stringConfigValue(_0x34a87a[_0x21b549(0x9b)]),_0x5b0dcd=_0x17e207?Object[_0x21b549(0x80)](_0x327607)['filter'](([,_0x512dcd])=>_0x512dcd?.[_0x21b549(0x9b)]===_0x17e207):[],_0x151790=_0x56deb3&&_0x327607[_0x56deb3]?.[_0x21b549(0x9b)]===_0x17e207?[_0x56deb3,_0x327607[_0x56deb3]]:undefined,_0x2a9888=_0x151790??(_0x5b0dcd[_0x21b549(0x83)]===0x1?_0x5b0dcd[0x0]:undefined),_0x15c915=_0x2a9888?.[0x0],_0x482384=_0x2a9888?.[0x1],_0x23e8af=_0x17e207?_0x15c915:_0x144c0f;let _0x3d2282=_0x23e8af&&_0x327607[_0x23e8af]?_0x327607[_0x23e8af]:undefined;_0x17e207&&_0x482384&&(_0x3d2282=_0x482384);const _0x185128=_0x17e207?_0x482384??_0x3d2282:_0x3d2282,_0x4af3e6=!_0x56deb3&&!_0x247799&&_0x292253&&_0x23e8af===_0x292253,_0x5e7114=_0x56deb3||(_0x4af3e6?_0x292253:undefined)||(_0x17e207?_0x15c915:undefined),_0x3c7969=_0x185128?.[_0x21b549(0x9b)],_0x594700=_0x1b1c0d?resolveTopLevelAppCode(_0x572046):undefined,_0x3bc119=_0x916830?resolveTopLevelAppCode(_0x30bc20):undefined,_0x1d2f3e=_0x56deb3||_0x247799?_0x3c7969:undefined,_0x551764=!_0x56deb3&&!_0x247799?_0x3c7969:undefined,_0x87a302=_0x17e207||_0x1d2f3e||_0x594700||_0x551764||_0x3bc119||undefined,_0x5936a0=_0x1b1c0d?stringConfigValue(_0x572046[_0x21b549(0x7f)]):undefined,_0x28d74d=_0x916830?stringConfigValue(_0x30bc20[_0x21b549(0x7f)]):undefined,_0x104853=_0x34a87a['env']||_0x185128?.[_0x21b549(0x7f)]||_0x5936a0||_0x541704(_0x21b549(0x9e))||_0x28d74d||_0x1e8fa6[_0x21b549(0x7f)]||DEFAULT_CONFIG_VALUES[_0x21b549(0x7f)],_0x1cf7e6=_0x185128?.[_0x21b549(0xa0)]||_0x1e8fa6[_0x21b549(0xa0)]||DEFAULT_CONFIG_VALUES['locale'],_0x2fb1cc=_0x541704(_0x21b549(0x7d))||_0x185128?.[_0x21b549(0x89)]||_0x1e8fa6[_0x21b549(0x89)]||undefined,_0x1166dd=_0x541704(_0x21b549(0x81))||_0x185128?.[_0x21b549(0xa2)]||_0x1e8fa6[_0x21b549(0xa2)]||undefined,_0x26d495=_0x34a87a[_0x21b549(0x91)]||_0x541704(_0x21b549(0x8b))||_0x185128?.[_0x21b549(0x91)]||_0x1e8fa6[_0x21b549(0x91)],_0x40fadc=normalizeLegacyOutputFormat(_0x26d495),_0xa2cc75=_0x541704(_0x21b549(0x7e))||_0x185128?.[_0x21b549(0x8c)]||_0x1e8fa6[_0x21b549(0x8c)],_0x32a72b=_0xa2cc75?Number(_0xa2cc75)||undefined:undefined,_0x3f84ca=_0x5377de?[_0x5377de[_0x21b549(0x7a)][_0x21b549(0x97)],_0x5377de[_0x21b549(0x9f)][_0x21b549(0x97)]]:[_0x1e8fa6[_0x21b549(0x97)]],_0x19ed89=resolveRiskCeiling(..._0x3f84ca,_0x185128?.[_0x21b549(0x97)]),_0x2373d1=resolveRiskCeiling(_0x19ed89,_0x541704(_0x21b549(0x94))),_0x1486a2=_0x541704(_0x21b549(0x8f)),_0x43f613=_0x1486a2==='1'||_0x1486a2==='true',_0x527925=_0x185128?.[_0x21b549(0x9c)]||_0x1e8fa6[_0x21b549(0x9c)]||DEFAULT_CONFIG_VALUES[_0x21b549(0x9c)],_0x3f7dfe=selectConfiguredRegion({'appRegion':_0x185128?.[_0x21b549(0x95)],'projectRegion':_0x1b1c0d?_0x572046[_0x21b549(0x95)]:undefined,'globalRegion':_0x1b1c0d||_0x916830?_0x30bc20[_0x21b549(0x95)]:undefined,'mergedRegion':_0x1e8fa6['region']}),_0x36fd5a=normalizeLovrabetRegion(_0x3f7dfe[_0x21b549(0x9a)])??DEFAULT_LOVRABET_REGION,_0x2eebb4=isDaily(normalizeEnv(String(_0x104853)))?_0x21b549(0x99):_0x21b549(0x7c);return{'appCode':typeof _0x87a302===_0x21b549(0xa1)&&_0x87a302['trim']()?_0x87a302[_0x21b549(0x93)]():undefined,'region':_0x36fd5a,'regionConfiguredValue':_0x3f7dfe[_0x21b549(0x9a)],'regionSource':_0x3f7dfe['source'],'env':_0x2eebb4,'locale':_0x1cf7e6,'cookie':_0x2fb1cc,'accessKey':_0x1166dd,'format':_0x40fadc,'pageSize':_0x32a72b,'riskLevel':_0x2373d1,'verbose':_0x43f613,'apiDir':_0x527925,'apps':_0x327607,'defaultApp':_0x530280,'currentApp':_0xae8d8f?_0x23e8af:undefined,'explicitAppName':_0x5e7114};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2774b2,_0x33e3de){const _0x1ea22e=a284_0x47f9,_0x1b0fd4=_0x2774b2();while(!![]){try{const _0x3d77e7=parseInt(_0x1ea22e(0x182))/0x1+parseInt(_0x1ea22e(0x185))/0x2+-parseInt(_0x1ea22e(0x18a))/0x3*(-parseInt(_0x1ea22e(0x18b))/0x4)+-parseInt(_0x1ea22e(0x189))/0x5+parseInt(_0x1ea22e(0x187))/0x6*(-parseInt(_0x1ea22e(0x184))/0x7)+parseInt(_0x1ea22e(0x18e))/0x8*(parseInt(_0x1ea22e(0x18d))/0x9)+-parseInt(_0x1ea22e(0x18c))/0xa*(parseInt(_0x1ea22e(0x188))/0xb);if(_0x3d77e7===_0x33e3de)break;else _0x1b0fd4['push'](_0x1b0fd4['shift']());}catch(_0x5dd258){_0x1b0fd4['push'](_0x1b0fd4['shift']());}}}(a284_0x518d,0xa50eb));import{getIsSessionValid}from'../auth/is-session-valid.js';import{CliErrors}from'../errors.js';function a284_0x518d(){const _0x5490a8=['cookie','782244HXTLYW','547349IPoXry','330160sXMgIQ','1143wftRKZ','904KEaEjS','190eJrYtw','3141nRmEEb','14440LNRZUp','authRequired','944109lddevv','../auth/get-cookie.js','42BkhcEZ','1619224BaZSdu'];a284_0x518d=function(){return _0x5490a8;};return a284_0x518d();}function a284_0x47f9(_0x2c2389,_0x31a5f6){_0x2c2389=_0x2c2389-0x181;const _0x518df7=a284_0x518d();let _0x47f9ac=_0x518df7[_0x2c2389];return _0x47f9ac;}export async function buildAuth(_0xc2961d){const _0x507bd0=a284_0x47f9,{getCookie:_0x585a78}=await import(_0x507bd0(0x183)),_0x425921=_0xc2961d[_0x507bd0(0x186)]||_0x585a78(),_0x12d96f=_0x425921?await getIsSessionValid():![];return{'cookie':_0x425921,'isLoggedIn':_0x12d96f,async 'getOrLogin'(){const _0x5238e9=_0x507bd0;if(_0x425921&&_0x12d96f)return _0x425921;throw CliErrors[_0x5238e9(0x181)]();}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a285_0x15891f=a285_0x30dc;(function(_0x56966b,_0x47c08c){const _0x1e359c=a285_0x30dc,_0x22186d=_0x56966b();while(!![]){try{const _0x3da6a0=parseInt(_0x1e359c(0x146))/0x1*(parseInt(_0x1e359c(0x12f))/0x2)+-parseInt(_0x1e359c(0x128))/0x3+-parseInt(_0x1e359c(0x155))/0x4*(-parseInt(_0x1e359c(0x143))/0x5)+parseInt(_0x1e359c(0x13f))/0x6+parseInt(_0x1e359c(0x15a))/0x7+parseInt(_0x1e359c(0x141))/0x8+-parseInt(_0x1e359c(0x148))/0x9*(parseInt(_0x1e359c(0x150))/0xa);if(_0x3da6a0===_0x47c08c)break;else _0x22186d['push'](_0x22186d['shift']());}catch(_0x41aa86){_0x22186d['push'](_0x22186d['shift']());}}}(a285_0x560b,0x97cf9));import{existsSync,mkdirSync,readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{dirname,parse,resolve}from'node:path';import{homedir}from'node:os';import{CLI_BIN_NAME}from'../constant/cli.js';import{normalizeConfigForWrite}from'../config/schema.js';export const NEW_CONFIG_NAME=a285_0x15891f(0x158);export const CONFIG_NAMES=[NEW_CONFIG_NAME];const normalizedWriteCache=new Map();function a285_0x30dc(_0x59966c,_0x3582da){_0x59966c=_0x59966c-0x128;const _0x560b64=a285_0x560b();let _0x30dcf9=_0x560b64[_0x59966c];return _0x30dcf9;}export function resolveConfigPath(_0x31f451){for(const _0x2ed95f of CONFIG_NAMES){const _0x4a7514=resolve(_0x31f451,_0x2ed95f);if(existsSync(_0x4a7514))return _0x4a7514;}return undefined;}export function findProjectRootDirectory(_0x2bc871=process[a285_0x15891f(0x136)]()){let _0x2069ef=resolve(_0x2bc871);const {root:_0x1970c7}=parse(_0x2069ef),_0x4f539b=homedir();while(!![]){if(resolveConfigPath(_0x2069ef)){if(_0x2069ef===_0x4f539b)break;return _0x2069ef;}if(_0x2069ef===_0x1970c7||_0x2069ef===_0x4f539b)break;const _0x540c1b=dirname(_0x2069ef);if(_0x540c1b===_0x2069ef)break;_0x2069ef=_0x540c1b;}return resolve(_0x2bc871);}export function getProjectConfigPath(){return resolveConfigPath(process['cwd']());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function isInProject(){return!!getProjectConfigPath();}export function inspectCliConfigJsonFile(_0x4098c5){const _0x5444ba=a285_0x15891f;if(!existsSync(_0x4098c5))return{'status':_0x5444ba(0x151)};try{const _0x4039c0=readFileSync(_0x4098c5,{'encoding':_0x5444ba(0x129)});if(!_0x4039c0?.[_0x5444ba(0x153)]())return{'status':_0x5444ba(0x157)};const _0x307afb=JSON['parse'](_0x4039c0);return{'status':'ok','data':_0x307afb};}catch(_0xd02c64){return{'status':_0x5444ba(0x144),'message':_0xd02c64 instanceof Error?_0xd02c64['message']:String(_0xd02c64)};}}function parseCliConfigJsonFile(_0x1b3dd2,_0x33371d,_0x1c6828){const _0x1ffe25=a285_0x15891f,_0x33f423=inspectCliConfigJsonFile(_0x1b3dd2);if(_0x33f423['status']===_0x1ffe25(0x151)||_0x33f423[_0x1ffe25(0x137)]===_0x1ffe25(0x157))return{};if(_0x33f423[_0x1ffe25(0x137)]==='ok')return _0x33f423[_0x1ffe25(0x156)];return _0x33371d==='warn'&&_0x1c6828&&console['error'](CLI_BIN_NAME+':\x20'+_0x1c6828+'\x20config\x20file\x20ignored\x20(invalid\x20JSON\x20or\x20unreadable):\x20'+_0x1b3dd2+_0x1ffe25(0x15c)+_0x33f423[_0x1ffe25(0x149)]),{};}function normalizeLegacyConfigShape(_0x4e1d55){const _0x2111b9=a285_0x15891f;if(!_0x4e1d55||typeof _0x4e1d55!==_0x2111b9(0x13d))return{'config':{},'migrated':![]};const _0xde9d4a={..._0x4e1d55},_0x69d12c=_0xde9d4a[_0x2111b9(0x138)]&&typeof _0xde9d4a[_0x2111b9(0x138)]===_0x2111b9(0x13d)?{..._0xde9d4a[_0x2111b9(0x138)]}:{},_0x20ec21=Object[_0x2111b9(0x14f)](_0x69d12c)[_0x2111b9(0x145)],_0x23618f=_0xde9d4a[_0x2111b9(0x14c)]||_0xde9d4a[_0x2111b9(0x12e)];let _0x54f6af=![];if(_0x23618f&&_0x20ec21===0x0){const _0xfeec73=typeof _0xde9d4a[_0x2111b9(0x12b)]===_0x2111b9(0x139)&&_0xde9d4a[_0x2111b9(0x12b)][_0x2111b9(0x153)]()?_0xde9d4a[_0x2111b9(0x12b)]:String(_0x23618f)[_0x2111b9(0x153)]();_0x69d12c[_0xfeec73]={'appcode':String(_0x23618f)[_0x2111b9(0x153)](),..._0xde9d4a[_0x2111b9(0x130)]!=null?{'env':_0xde9d4a[_0x2111b9(0x130)]}:{},..._0xde9d4a[_0x2111b9(0x135)]!=null?{'apiDir':_0xde9d4a['apiDir']}:{},..._0xde9d4a['cookie']!=null?{'cookie':_0xde9d4a['cookie']}:{},..._0xde9d4a['accessKey']!=null?{'accessKey':_0xde9d4a[_0x2111b9(0x132)]}:{},..._0xde9d4a[_0x2111b9(0x14b)]!=null?{'format':_0xde9d4a[_0x2111b9(0x14b)]}:{},..._0xde9d4a[_0x2111b9(0x12c)]!=null?{'pageSize':_0xde9d4a[_0x2111b9(0x12c)]}:{},..._0xde9d4a[_0x2111b9(0x12a)]!=null?{'riskLevel':_0xde9d4a[_0x2111b9(0x12a)]}:{},..._0xde9d4a['locale']!=null?{'locale':_0xde9d4a[_0x2111b9(0x131)]}:{}},_0xde9d4a[_0x2111b9(0x138)]=_0x69d12c,delete _0xde9d4a['defaultApp'],_0x54f6af=!![];}return(_0x2111b9(0x14c)in _0xde9d4a||_0x2111b9(0x12e)in _0xde9d4a)&&(delete _0xde9d4a[_0x2111b9(0x14c)],delete _0xde9d4a[_0x2111b9(0x12e)],_0x54f6af=!![]),{'config':_0xde9d4a,'migrated':_0x54f6af};}function writeNormalizedConfigIfNeeded(_0x3a9808,_0x513e8d){const _0x50920a=a285_0x15891f,_0x1d551c=JSON[_0x50920a(0x12d)](normalizeConfigForWrite(_0x513e8d),null,0x2)+'\x0a';if(normalizedWriteCache[_0x50920a(0x134)](_0x3a9808)===_0x1d551c)return;writeConfigFile(_0x3a9808,_0x513e8d),normalizedWriteCache['set'](_0x3a9808,_0x1d551c);}function parseAndNormalizeConfig(_0xac5c33,_0x1314ca,_0x273bf9){const _0x3e3029=a285_0x15891f,_0x454cfa=parseCliConfigJsonFile(_0xac5c33,_0x1314ca,_0x273bf9),_0x420642=normalizeLegacyConfigShape(_0x454cfa);if(_0x420642[_0x3e3029(0x14e)])try{writeNormalizedConfigIfNeeded(_0xac5c33,_0x420642[_0x3e3029(0x147)]);}catch{}return _0x420642[_0x3e3029(0x147)];}export function loadRawConfigLayers(_0x1839d7){const _0xd281f1=a285_0x15891f;let _0xea25f0={},_0x23dcea={};const _0x5b757e=resolveConfigPath(homedir());_0x5b757e&&(_0xea25f0=parseAndNormalizeConfig(_0x5b757e,_0xd281f1(0x13a),'Global'));const _0x3176a6=_0x1839d7??findProjectRootDirectory(),_0x5db190=resolveConfigPath(_0x3176a6);return _0x5db190&&(_0x23dcea=parseAndNormalizeConfig(_0x5db190,'warn',_0xd281f1(0x159))),{'globalPath':_0x5b757e,'projectPath':_0x5db190,'globalConfig':_0xea25f0,'projectConfig':_0x23dcea};}const INHERIT_WHITELIST=[a285_0x15891f(0x14d),'accessKey',a285_0x15891f(0x131),'format',a285_0x15891f(0x12a),a285_0x15891f(0x12c),'region','routing','userDomain',a285_0x15891f(0x152),'runtimeDomain',a285_0x15891f(0x133),a285_0x15891f(0x140),a285_0x15891f(0x13e),'appDomain',a285_0x15891f(0x15d),a285_0x15891f(0x154)];export function mergeRawConfigLayers(_0x3c59f9){const _0x19ac81=a285_0x15891f,{globalConfig:_0x525424,projectConfig:_0x1d0706}=_0x3c59f9,_0x14d785=!!_0x3c59f9[_0x19ac81(0x15b)]||Object[_0x19ac81(0x14f)](_0x1d0706)['length']>0x0;if(!_0x14d785)return mergeGlobalOnly(_0x525424);return mergeProjectFirst(_0x525424,_0x1d0706);}function mergeGlobalOnly(_0x1010f6){const _0x19decc=a285_0x15891f,_0x5bc7c0={..._0x1010f6};delete _0x5bc7c0['inherit'];const _0xb375c5=_0x1010f6[_0x19decc(0x138)]&&typeof _0x1010f6[_0x19decc(0x138)]===_0x19decc(0x13d)?_0x1010f6[_0x19decc(0x138)]:{};if(Object['keys'](_0xb375c5)[_0x19decc(0x145)]>0x0)_0x5bc7c0[_0x19decc(0x138)]=_0xb375c5;if(_0x1010f6[_0x19decc(0x12b)])_0x5bc7c0[_0x19decc(0x12b)]=_0x1010f6[_0x19decc(0x12b)];return _0x5bc7c0;}function mergeProjectFirst(_0x111a0f,_0x2b02d0){const _0x314a6f=a285_0x15891f,_0x48861e={..._0x2b02d0};delete _0x48861e[_0x314a6f(0x13b)];for(const _0x3f8b10 of INHERIT_WHITELIST){!(_0x3f8b10 in _0x48861e)&&_0x3f8b10 in _0x111a0f&&(_0x48861e[_0x3f8b10]=_0x111a0f[_0x3f8b10]);}const _0x1f04b3=_0x2b02d0['apps']&&typeof _0x2b02d0[_0x314a6f(0x138)]===_0x314a6f(0x13d)?_0x2b02d0[_0x314a6f(0x138)]:{};return Object[_0x314a6f(0x14f)](_0x1f04b3)['length']>0x0?_0x48861e['apps']=_0x1f04b3:delete _0x48861e[_0x314a6f(0x138)],'defaultApp'in _0x2b02d0?_0x48861e[_0x314a6f(0x12b)]=_0x2b02d0[_0x314a6f(0x12b)]:delete _0x48861e[_0x314a6f(0x12b)],_0x48861e;}export function readRawConfigWithLayers(_0x2877e9){const _0x1d0323=loadRawConfigLayers(_0x2877e9);return{'config':mergeRawConfigLayers(_0x1d0323),'layers':_0x1d0323};}function a285_0x560b(){const _0x412b76=['625072WYJfLy','.tmp','2325445NcrvTa','error','length','955jBXqcl','config','9362619hEFpOT','message','silent','format','appcode','cookie','migrated','keys','10htgDcs','missing','apiDomain','trim','certificateDomain','8oDHRyR','data','empty','.rabetbase.json','Project','7565488zBdOwl','projectPath','\x0a\x20\x20','localDomain','3246069mEKviY','utf8','riskLevel','defaultApp','pageSize','stringify','app','46OoVduF','env','locale','accessKey','skillDomain','get','apiDir','cwd','status','apps','string','warn','inherit','project','object','kbServiceDomain','3798420KkeIxq','kbDomain'];a285_0x560b=function(){return _0x412b76;};return a285_0x560b();}export function readRawConfig(_0x45a3e6){return mergeRawConfigLayers(loadRawConfigLayers(_0x45a3e6));}export function readConfigFile(_0xedcfef){const _0x479bf9=a285_0x15891f;return parseAndNormalizeConfig(_0xedcfef,_0x479bf9(0x14a));}export function writeConfigFile(_0x2b6d67,_0x5aed61){const _0x35c77b=a285_0x15891f,_0x15752e=dirname(_0x2b6d67);!existsSync(_0x15752e)&&mkdirSync(_0x15752e,{'recursive':!![]});const _0x346290=_0x2b6d67+_0x35c77b(0x142);try{const _0x5a8788=normalizeConfigForWrite(_0x5aed61);writeFileSync(_0x346290,JSON[_0x35c77b(0x12d)](_0x5a8788,null,0x2)+'\x0a',{'encoding':'utf8','mode':0x180}),renameSync(_0x346290,_0x2b6d67);}catch(_0x2e204b){try{unlinkSync(_0x346290);}catch{}throw _0x2e204b;}}export function resolveWriteConfigPath(_0xc827a3){const _0x56aa6d=a285_0x15891f,_0x33f97b=_0xc827a3===_0x56aa6d(0x13c)?process['cwd']():homedir(),_0x39dd0b=resolveConfigPath(_0x33f97b);return _0x39dd0b??resolve(_0x33f97b,NEW_CONFIG_NAME);}
|