@lovrabet/rabetbase-cli 2.5.5-beta.2 → 2.5.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api/api-doc.js +1 -1
- package/lib/api/api-group.js +1 -1
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.js +1 -1
- package/lib/api/generate-sdk-config-file.js +1 -1
- package/lib/api/legacy-api-file.js +1 -1
- package/lib/api/model-registry-file.js +1 -1
- package/lib/api/model-registry-scaffold.js +1 -1
- package/lib/api/model-source.js +1 -1
- package/lib/auth/auth-server-ui.js +1 -1
- package/lib/auth/auth-server.js +1 -1
- package/lib/auth/constant.js +1 -1
- package/lib/auth/get-cookie.js +1 -1
- package/lib/auth/get-session-user.js +1 -1
- package/lib/auth/is-session-valid.js +1 -1
- package/lib/auth/login-success-html.js +1 -1
- package/lib/auth/logout.js +1 -1
- package/lib/cli-flags.js +1 -1
- package/lib/cli.js +1 -1
- package/lib/commands/api/generate.js +1 -1
- package/lib/commands/api/index.js +1 -1
- package/lib/commands/api/list.js +1 -1
- package/lib/commands/api/pull.js +1 -1
- package/lib/commands/api/shared.js +1 -1
- package/lib/commands/app/detail.js +1 -1
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/members-list.js +1 -1
- package/lib/commands/app/remote-directory.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/delete.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/app-config/list.js +1 -1
- package/lib/commands/app-config/set.js +1 -1
- package/lib/commands/app-config/shared.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/bff/create.js +1 -1
- package/lib/commands/bff/delete.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/bff/list.js +1 -1
- package/lib/commands/bff/logs.js +1 -1
- package/lib/commands/bff/pull.js +1 -1
- package/lib/commands/bff/push.js +1 -1
- package/lib/commands/bff/status.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/cli-update.js +1 -1
- package/lib/commands/codegen/index.js +1 -1
- package/lib/commands/codegen/sdk.js +1 -1
- package/lib/commands/codegen/sql.js +1 -1
- package/lib/commands/common/app-registry.js +1 -1
- package/lib/commands/common/app-selector.js +1 -1
- package/lib/commands/common/async-task.js +1 -1
- package/lib/commands/common/dry-run.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/common/validate.js +1 -1
- package/lib/commands/config/delete.js +1 -1
- package/lib/commands/config/get.js +1 -1
- package/lib/commands/config/index.js +1 -1
- package/lib/commands/config/init.js +1 -1
- package/lib/commands/config/list.js +1 -1
- package/lib/commands/config/set.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/dataset/batch-design.js +1 -1
- package/lib/commands/dataset/business-group-update.js +1 -1
- package/lib/commands/dataset/business-groups.js +1 -1
- package/lib/commands/dataset/capability.js +1 -1
- package/lib/commands/dataset/cross-relation-create.js +1 -1
- package/lib/commands/dataset/cross-relation-delete.js +1 -1
- package/lib/commands/dataset/cross-relation-list.js +1 -1
- package/lib/commands/dataset/cross-relation-shared.js +1 -1
- package/lib/commands/dataset/cross-relation-update.js +1 -1
- package/lib/commands/dataset/delete.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/extend-update.js +1 -1
- package/lib/commands/dataset/field-restore.js +1 -1
- package/lib/commands/dataset/field-update.js +1 -1
- package/lib/commands/dataset/generate.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/dataset/relation-audit.js +1 -1
- package/lib/commands/dataset/relation-create.js +1 -1
- package/lib/commands/dataset/relation-delete.js +1 -1
- package/lib/commands/dataset/relation-shared.js +1 -1
- package/lib/commands/dataset/relation-update.js +1 -1
- package/lib/commands/dataset/relations.js +1 -1
- package/lib/commands/dataset/rename.js +1 -1
- package/lib/commands/dataset/restore.js +1 -1
- package/lib/commands/dataset/user-deleted-field-list.js +1 -1
- package/lib/commands/db/analysis-batching.js +1 -1
- package/lib/commands/db/analyze-batch-plan.js +1 -1
- package/lib/commands/db/analyze-cancel.js +1 -1
- package/lib/commands/db/analyze-start.js +1 -1
- package/lib/commands/db/analyze-status.js +1 -1
- package/lib/commands/db/create.js +1 -1
- package/lib/commands/db/delete.js +1 -1
- package/lib/commands/db/detail.js +1 -1
- package/lib/commands/db/diff-refresh-start.js +1 -1
- package/lib/commands/db/diff-refresh-status.js +1 -1
- package/lib/commands/db/diff.js +1 -1
- package/lib/commands/db/index.js +1 -1
- package/lib/commands/db/list.js +1 -1
- package/lib/commands/db/shared.js +1 -1
- package/lib/commands/db/table-diff-shared.js +1 -1
- package/lib/commands/db/tables.js +1 -1
- package/lib/commands/db/test.js +1 -1
- package/lib/commands/db/update.js +1 -1
- package/lib/commands/deployment/index.js +1 -1
- package/lib/commands/deployment/sync-all.js +1 -1
- package/lib/commands/deployment/sync-jobs.js +1 -1
- package/lib/commands/deployment/sync-status.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/flow/create.js +1 -1
- package/lib/commands/flow/detail.js +1 -1
- package/lib/commands/flow/index.js +1 -1
- package/lib/commands/flow/list.js +1 -1
- package/lib/commands/flow/publish.js +1 -1
- package/lib/commands/flow/runtime-resources-shared.js +1 -1
- package/lib/commands/flow/runtime-role-list.js +1 -1
- package/lib/commands/flow/runtime-role-user-list.js +1 -1
- package/lib/commands/flow/runtime-user-search.js +1 -1
- package/lib/commands/flow/shared.js +1 -1
- package/lib/commands/flow/update.js +1 -1
- package/lib/commands/flow/validate.js +1 -1
- package/lib/commands/instant-api-policy/current.js +1 -1
- package/lib/commands/instant-api-policy/index.js +1 -1
- package/lib/commands/instant-api-policy/init.js +1 -1
- package/lib/commands/instant-api-policy/publish.js +1 -1
- package/lib/commands/instant-api-policy/pull.js +1 -1
- package/lib/commands/instant-api-policy/revision.js +1 -1
- package/lib/commands/instant-api-policy/revisions.js +1 -1
- package/lib/commands/instant-api-policy/rollback.js +1 -1
- package/lib/commands/instant-api-policy/shared.js +1 -1
- package/lib/commands/instant-api-policy/validate.js +1 -1
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/nudge.js +1 -1
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/issue/shared.js +1 -1
- package/lib/commands/kb/create.js +1 -1
- package/lib/commands/kb/delete.js +1 -1
- package/lib/commands/kb/detail.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/kb/list.js +1 -1
- package/lib/commands/kb/search.js +1 -1
- package/lib/commands/kb/shared.js +1 -1
- package/lib/commands/kb/update.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/asset-update.js +1 -1
- package/lib/commands/menu/delete.js +1 -1
- package/lib/commands/menu/external-link-create.js +1 -1
- package/lib/commands/menu/external-link-update.js +1 -1
- package/lib/commands/menu/group-create.js +1 -1
- package/lib/commands/menu/group-update.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/list.js +1 -1
- package/lib/commands/menu/move.js +1 -1
- package/lib/commands/menu/regroup-start.js +1 -1
- package/lib/commands/menu/rename.js +1 -1
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/delete-plan.js +1 -1
- package/lib/commands/menu/shared/facts.js +1 -1
- package/lib/commands/menu/shared/index.js +1 -1
- package/lib/commands/menu/shared/inquirer.js +1 -1
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.js +1 -1
- package/lib/commands/menu/shared/mutations.js +1 -1
- package/lib/commands/menu/shared/path.js +1 -1
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/subapp-assets.js +1 -1
- package/lib/commands/menu/shared/sync-core.js +1 -1
- package/lib/commands/menu/shared/update-core.js +1 -1
- package/lib/commands/menu/shared/valid-url.js +1 -1
- package/lib/commands/menu/subapp-assets-status.js +1 -1
- package/lib/commands/menu/subapp-assets-update.js +1 -1
- package/lib/commands/menu/sync.js +1 -1
- package/lib/commands/menu/visibility-update.js +1 -1
- package/lib/commands/notification/config-create.js +1 -1
- package/lib/commands/notification/config-delete.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/config-update.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/notification/shared.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/page/create.js +1 -1
- package/lib/commands/page/custom/detail.js +1 -1
- package/lib/commands/page/custom/list.js +1 -1
- package/lib/commands/page/custom/publish.js +1 -1
- package/lib/commands/page/custom/shared.js +1 -1
- package/lib/commands/page/custom/syntax.js +1 -1
- package/lib/commands/page/custom/update.js +1 -1
- package/lib/commands/page/data-list-status.js +1 -1
- package/lib/commands/page/generate-start.js +1 -1
- package/lib/commands/page/generate-status.js +1 -1
- package/lib/commands/page/index.js +1 -1
- package/lib/commands/page/pull.js +1 -1
- package/lib/commands/page/push.js +1 -1
- package/lib/commands/page/relation-audit.js +1 -1
- package/lib/commands/page/restore.js +1 -1
- package/lib/commands/page/shared.js +1 -1
- package/lib/commands/page/sync.js +1 -1
- package/lib/commands/project/api-architecture-upgrade.js +1 -1
- package/lib/commands/project/create/enhanced-guided-create.js +1 -1
- package/lib/commands/project/create/format-elapsed.js +1 -1
- package/lib/commands/project/create/main.js +1 -1
- package/lib/commands/project/create/materialize-project-template.js +1 -1
- package/lib/commands/project/create/project-name.js +1 -1
- package/lib/commands/project/create/project-template-archive.js +1 -1
- package/lib/commands/project/create/project-template-path.js +1 -1
- package/lib/commands/project/create/use-copy-project-template.js +1 -1
- package/lib/commands/project/create/use-format-code.js +1 -1
- package/lib/commands/project/create/use-install-dependencies.js +1 -1
- package/lib/commands/project/domain-routing-sync.js +1 -1
- package/lib/commands/project/index.js +1 -1
- package/lib/commands/project/upgrade.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/role/user-resolve.js +1 -1
- package/lib/commands/rule/get.js +1 -1
- package/lib/commands/rule/index.js +1 -1
- package/lib/commands/rule/list.js +1 -1
- package/lib/commands/rule/set.js +1 -1
- package/lib/commands/rule/shared.js +1 -1
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/sql/create.js +1 -1
- package/lib/commands/sql/delete.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/sql/list.js +1 -1
- package/lib/commands/sql/pull.js +1 -1
- package/lib/commands/sql/push.js +1 -1
- package/lib/commands/sql/shared.js +1 -1
- package/lib/commands/sql/status.js +1 -1
- package/lib/commands/sql/validate.js +1 -1
- package/lib/commands/task/index.js +1 -1
- package/lib/commands/task/status.js +1 -1
- package/lib/commands/tenant/index.js +1 -1
- package/lib/commands/tenant/members-list.js +1 -1
- package/lib/commands/tenant/shared.js +1 -1
- package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
- package/lib/commands/user-account/feishu-bind.js +1 -1
- package/lib/commands/user-account/index.js +1 -1
- package/lib/commands/workspace/add.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/commands/workspace/remove.js +1 -1
- package/lib/config/domain-config.js +1 -1
- package/lib/config/project-domain-routing.js +1 -1
- package/lib/config/region-config.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/cdn.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/paths.js +1 -1
- package/lib/constant/region.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/routing-profile.js +1 -1
- package/lib/context/app-resolver.js +1 -1
- package/lib/context/auth-resolver.js +1 -1
- package/lib/context/config-loader.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/bff/config.js +1 -1
- package/lib/core/bff/file-system.js +1 -1
- package/lib/core/bff/hash.js +1 -1
- package/lib/core/bff/hook-directory.js +1 -1
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/cross-db-relation.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/flow-config.js +1 -1
- package/lib/core/instant-api-policy/config.js +1 -1
- package/lib/core/kb-search-client.js +1 -1
- package/lib/core/page/file-system.js +1 -1
- package/lib/core/page/hash.js +1 -1
- package/lib/core/page/lock.js +1 -1
- package/lib/core/page/lr-smart-jsx.js +1 -1
- package/lib/core/sql-index-auditor.js +1 -1
- package/lib/core/sql-sync/config.js +1 -1
- package/lib/core/sql-sync/file-system.js +1 -1
- package/lib/core/sql-sync/hash.js +1 -1
- package/lib/core/sql-sync/lock.js +1 -1
- package/lib/core/sql-sync/utils.js +1 -1
- package/lib/core/sql-validator.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/error-output.js +1 -1
- package/lib/framework/explicit-yes.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-alias.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/supported-flags.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/generated/official-routing.js +1 -1
- package/lib/generated/routing-contract.js +1 -1
- package/lib/help.js +1 -1
- package/lib/postinstall.js +1 -1
- package/lib/runtime/confirmation.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/skills/builtin-skill.js +1 -1
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/skill-presence.js +1 -1
- package/lib/telemetry/cli-command-trace.js +1 -1
- package/lib/telemetry/cli-help-trace.js +1 -1
- package/lib/telemetry/ensure-cli-otel-config.js +1 -1
- package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
- package/lib/telemetry/send-cli-trace-log.js +1 -1
- package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
- package/lib/utils/ai_config.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cdn-config.js +1 -1
- package/lib/utils/check-sdk-version.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/config.js +1 -1
- package/lib/utils/entity-with-id.js +1 -1
- package/lib/utils/file-utils.js +1 -1
- package/lib/utils/guides-cdn.js +1 -1
- package/lib/utils/http-client.js +1 -1
- package/lib/utils/is-non-interactive.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/sleep.js +1 -1
- package/lib/utils/template-replacer.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/with-active-cookie.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
- package/skills/rabetbase/SKILL.md +3 -3
- package/skills/rabetbase/guides/independent-deployment.md +11 -1
- package/skills/rabetbase/references/rabetbase-config.md +16 -19
- package/skills/rabetbase/references/rabetbase-menu-visibility-update.md +5 -4
- package/skills/rabetbase/references/rabetbase-workspace.md +3 -1
- package/skills/rabetbase-page-generation/SKILL.md +1 -1
- package/skills/rabetbase.manifest.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x360eba,_0x2c92df){const _0x4c427c=a272_0x7d22,_0x2b900a=_0x360eba();while(!![]){try{const _0x4e8ec2=parseInt(_0x4c427c(0x216))/0x1+parseInt(_0x4c427c(0x209))/0x2*(-parseInt(_0x4c427c(0x219))/0x3)+-parseInt(_0x4c427c(0x21f))/0x4*(parseInt(_0x4c427c(0x218))/0x5)+parseInt(_0x4c427c(0x215))/0x6*(-parseInt(_0x4c427c(0x1fc))/0x7)+-parseInt(_0x4c427c(0x202))/0x8*(parseInt(_0x4c427c(0x221))/0x9)+-parseInt(_0x4c427c(0x20d))/0xa*(parseInt(_0x4c427c(0x210))/0xb)+parseInt(_0x4c427c(0x203))/0xc;if(_0x4e8ec2===_0x2c92df)break;else _0x2b900a['push'](_0x2b900a['shift']());}catch(_0x3a56e0){_0x2b900a['push'](_0x2b900a['shift']());}}}(a272_0xc813,0x29852));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 a272_0x7d22(_0x26f147,_0xfc267){_0x26f147=_0x26f147-0x1f4;const _0xc813fd=a272_0xc813();let _0x7d228d=_0xc813fd[_0x26f147];return _0x7d228d;}function stringConfigValue(_0x17baa1){const _0x46c400=a272_0x7d22;return typeof _0x17baa1===_0x46c400(0x206)&&_0x17baa1[_0x46c400(0x213)]()?_0x17baa1[_0x46c400(0x213)]():undefined;}function appProfiles(_0x3c4408){const _0x550129=a272_0x7d22;return _0x3c4408['apps']&&typeof _0x3c4408[_0x550129(0x207)]===_0x550129(0x200)?_0x3c4408[_0x550129(0x207)]:{};}function resolveDefaultAppName(_0x4b4294){const _0x48ed5a=a272_0x7d22,_0x27b83b=stringConfigValue(_0x4b4294[_0x48ed5a(0x220)]);if(_0x27b83b)return _0x27b83b;const _0x6899dc=Object[_0x48ed5a(0x208)](appProfiles(_0x4b4294));return _0x6899dc[_0x48ed5a(0x1f6)]===0x1?_0x6899dc[0x0]:undefined;}function resolveTopLevelAppCode(_0x550280){const _0x3d7099=a272_0x7d22;return stringConfigValue(_0x550280[_0x3d7099(0x1f8)])||stringConfigValue(_0x550280[_0x3d7099(0x214)]);}function normalizeRiskCeiling(_0x39289e){const _0x5b5a2c=a272_0x7d22;if(_0x39289e===undefined||_0x39289e===null)return undefined;if(_0x39289e===_0x5b5a2c(0x21a)||_0x39289e==='write'||_0x39289e===_0x5b5a2c(0x1ff))return _0x39289e;return'read';}function resolveRiskCeiling(..._0x464ed2){let _0x2aafe0;for(const _0x141842 of _0x464ed2){const _0x2c8f3=normalizeRiskCeiling(_0x141842);_0x2c8f3&&(!_0x2aafe0||riskLevelOrder(_0x2c8f3)<riskLevelOrder(_0x2aafe0))&&(_0x2aafe0=_0x2c8f3);}return _0x2aafe0??DEFAULT_CONFIG_VALUES['riskLevel'];}function a272_0xc813(){const _0x5368ac=['VERBOSE','8tdziEq','defaultApp','67356gatwSY','cookie','env','FORMAT','length','globalConfig','appcode','apiDir','source','accessKey','35917jdMwQK','projectConfig','region','high-risk-write','object','RISK_LEVEL','80hWnIOT','13874508rFwCmi','format','production','string','apps','keys','347210dSaJxG','filter','daily','value','223780qOoOor','APP','locale','99iaaHBq','riskLevel','entries','trim','app','306FOUUyU','32469rdlgcV','PAGE_SIZE','767710jDAXlp','3GJElax','read','ACCESS_KEY','pageSize','true'];a272_0xc813=function(){return _0x5368ac;};return a272_0xc813();}export function resolveAppConfig({raw:_0x242e74,flags:_0x50aaaa,layers:_0x5d4038,readEnv:_0x18d3ea}){const _0x1c2e56=a272_0x7d22,_0x351f5c=_0x5d4038?.[_0x1c2e56(0x1fd)]??{},_0x3cdff=_0x5d4038?.[_0x1c2e56(0x1f7)]??{},_0x3137ab=!!_0x5d4038?.['projectPath']||Object[_0x1c2e56(0x208)](_0x351f5c)[_0x1c2e56(0x1f6)]>0x0,_0x501e78=!_0x3137ab,_0x5684e4=_0x3137ab?resolveDefaultAppName(_0x351f5c):undefined,_0x564e9f=_0x501e78?resolveDefaultAppName(_0x3cdff):undefined,_0x8b4aaa=stringConfigValue(_0x50aaaa[_0x1c2e56(0x214)]),_0x588bb2=_0x18d3ea(_0x1c2e56(0x20e)),_0x2bd319={};if(_0x242e74[_0x1c2e56(0x207)]&&typeof _0x242e74['apps']===_0x1c2e56(0x200))for(const [_0x2374ae,_0x104989]of Object[_0x1c2e56(0x212)](_0x242e74[_0x1c2e56(0x207)])){_0x104989&&typeof _0x104989==='object'&&_0x104989[_0x1c2e56(0x1f8)]&&(_0x2bd319[_0x2374ae]=_0x104989);}const _0x147a52=_0x5684e4||_0x564e9f||resolveDefaultAppName(_0x242e74),_0x3a823a=Object['keys'](_0x2bd319)[_0x1c2e56(0x1f6)]>0x0,_0x501ac6=_0x8b4aaa||_0x5684e4||_0x588bb2||_0x564e9f||_0x147a52||undefined,_0xf579ee=stringConfigValue(_0x50aaaa[_0x1c2e56(0x1f8)]),_0x5906b9=_0xf579ee?Object[_0x1c2e56(0x212)](_0x2bd319)[_0x1c2e56(0x20a)](([,_0x31ce64])=>_0x31ce64?.[_0x1c2e56(0x1f8)]===_0xf579ee):[],_0x1c83af=_0x8b4aaa&&_0x2bd319[_0x8b4aaa]?.[_0x1c2e56(0x1f8)]===_0xf579ee?[_0x8b4aaa,_0x2bd319[_0x8b4aaa]]:undefined,_0x4c8ff9=_0x1c83af??(_0x5906b9['length']===0x1?_0x5906b9[0x0]:undefined),_0x3d1994=_0x4c8ff9?.[0x0],_0x279a8d=_0x4c8ff9?.[0x1],_0x292434=_0xf579ee?_0x3d1994:_0x501ac6;let _0x4556be=_0x292434&&_0x2bd319[_0x292434]?_0x2bd319[_0x292434]:undefined;_0xf579ee&&_0x279a8d&&(_0x4556be=_0x279a8d);const _0x27d5e8=_0xf579ee?_0x279a8d??_0x4556be:_0x4556be,_0x30c2fb=!_0x8b4aaa&&!_0x5684e4&&_0x588bb2&&_0x292434===_0x588bb2,_0x763376=_0x8b4aaa||(_0x30c2fb?_0x588bb2:undefined)||(_0xf579ee?_0x3d1994:undefined),_0x161d73=_0x27d5e8?.[_0x1c2e56(0x1f8)],_0xdfd891=_0x3137ab?resolveTopLevelAppCode(_0x351f5c):undefined,_0x9217a0=_0x501e78?resolveTopLevelAppCode(_0x3cdff):undefined,_0x1b2c99=_0x8b4aaa||_0x5684e4?_0x161d73:undefined,_0x599102=!_0x8b4aaa&&!_0x5684e4?_0x161d73:undefined,_0x38e72a=_0xf579ee||_0x1b2c99||_0xdfd891||_0x599102||_0x9217a0||undefined,_0x639e15=_0x3137ab?stringConfigValue(_0x351f5c['env']):undefined,_0x4fd18d=_0x501e78?stringConfigValue(_0x3cdff[_0x1c2e56(0x1f4)]):undefined,_0x4587c0=_0x50aaaa[_0x1c2e56(0x1f4)]||_0x27d5e8?.[_0x1c2e56(0x1f4)]||_0x639e15||_0x18d3ea('ENV')||_0x4fd18d||_0x242e74[_0x1c2e56(0x1f4)]||DEFAULT_CONFIG_VALUES[_0x1c2e56(0x1f4)],_0x1544f6=_0x27d5e8?.[_0x1c2e56(0x20f)]||_0x242e74['locale']||DEFAULT_CONFIG_VALUES[_0x1c2e56(0x20f)],_0x56c0ec=_0x18d3ea('COOKIE')||_0x27d5e8?.['cookie']||_0x242e74[_0x1c2e56(0x222)]||undefined,_0x5328b0=_0x18d3ea(_0x1c2e56(0x21b))||_0x27d5e8?.[_0x1c2e56(0x1fb)]||_0x242e74['accessKey']||undefined,_0x5ecb5c=_0x50aaaa[_0x1c2e56(0x204)]||_0x18d3ea(_0x1c2e56(0x1f5))||_0x27d5e8?.[_0x1c2e56(0x204)]||_0x242e74[_0x1c2e56(0x204)],_0x2f7872=normalizeLegacyOutputFormat(_0x5ecb5c),_0x31606c=_0x18d3ea(_0x1c2e56(0x217))||_0x27d5e8?.[_0x1c2e56(0x21c)]||_0x242e74[_0x1c2e56(0x21c)],_0x3c6669=_0x31606c?Number(_0x31606c)||undefined:undefined,_0x39c555=_0x5d4038?[_0x5d4038['globalConfig'][_0x1c2e56(0x211)],_0x5d4038[_0x1c2e56(0x1fd)][_0x1c2e56(0x211)]]:[_0x242e74[_0x1c2e56(0x211)]],_0x5aaf38=resolveRiskCeiling(..._0x39c555,_0x27d5e8?.[_0x1c2e56(0x211)]),_0x57bbe2=resolveRiskCeiling(_0x5aaf38,_0x18d3ea(_0x1c2e56(0x201))),_0x1b1c36=_0x18d3ea(_0x1c2e56(0x21e)),_0x3fdbe8=_0x1b1c36==='1'||_0x1b1c36===_0x1c2e56(0x21d),_0x416939=_0x27d5e8?.[_0x1c2e56(0x1f9)]||_0x242e74[_0x1c2e56(0x1f9)]||DEFAULT_CONFIG_VALUES[_0x1c2e56(0x1f9)],_0x40390b=selectConfiguredRegion({'appRegion':_0x27d5e8?.[_0x1c2e56(0x1fe)],'projectRegion':_0x3137ab?_0x351f5c['region']:undefined,'globalRegion':_0x3137ab||_0x501e78?_0x3cdff[_0x1c2e56(0x1fe)]:undefined,'mergedRegion':_0x242e74[_0x1c2e56(0x1fe)]}),_0x44f56c=normalizeLovrabetRegion(_0x40390b['value'])??DEFAULT_LOVRABET_REGION,_0x42f2a1=isDaily(normalizeEnv(String(_0x4587c0)))?_0x1c2e56(0x20b):_0x1c2e56(0x205);return{'appCode':typeof _0x38e72a===_0x1c2e56(0x206)&&_0x38e72a[_0x1c2e56(0x213)]()?_0x38e72a[_0x1c2e56(0x213)]():undefined,'region':_0x44f56c,'regionConfiguredValue':_0x40390b[_0x1c2e56(0x20c)],'regionSource':_0x40390b[_0x1c2e56(0x1fa)],'env':_0x42f2a1,'locale':_0x1544f6,'cookie':_0x56c0ec,'accessKey':_0x5328b0,'format':_0x2f7872,'pageSize':_0x3c6669,'riskLevel':_0x57bbe2,'verbose':_0x3fdbe8,'apiDir':_0x416939,'apps':_0x2bd319,'defaultApp':_0x147a52,'currentApp':_0x3a823a?_0x292434:undefined,'explicitAppName':_0x763376};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x41521c,_0x52ac00){const _0x1c46d3=a273_0x1d13,_0x34209e=_0x41521c();while(!![]){try{const _0x2ed54c=-parseInt(_0x1c46d3(0x11e))/0x1*(-parseInt(_0x1c46d3(0x127))/0x2)+-parseInt(_0x1c46d3(0x11d))/0x3*(-parseInt(_0x1c46d3(0x11c))/0x4)+-parseInt(_0x1c46d3(0x120))/0x5+parseInt(_0x1c46d3(0x126))/0x6+parseInt(_0x1c46d3(0x11b))/0x7*(parseInt(_0x1c46d3(0x123))/0x8)+-parseInt(_0x1c46d3(0x11f))/0x9+-parseInt(_0x1c46d3(0x124))/0xa;if(_0x2ed54c===_0x52ac00)break;else _0x34209e['push'](_0x34209e['shift']());}catch(_0x575bb3){_0x34209e['push'](_0x34209e['shift']());}}}(a273_0x3bd3,0x96480));import{getIsSessionValid}from'../auth/is-session-valid.js';import{CliErrors}from'../errors.js';function a273_0x1d13(_0x1082a1,_0x5478a0){_0x1082a1=_0x1082a1-0x11b;const _0x3bd311=a273_0x3bd3();let _0x1d13dd=_0x3bd311[_0x1082a1];return _0x1d13dd;}function a273_0x3bd3(){const _0x2e9f39=['authRequired','7080828QpQDFr','762rgIBAu','133hSUEVG','3034468nrfdks','3unhyyn','2099YOWBoh','5586480NARRNF','881405KEaKiN','../auth/get-cookie.js','cookie','349168PUWNDu','21551950MKGntR'];a273_0x3bd3=function(){return _0x2e9f39;};return a273_0x3bd3();}export async function buildAuth(_0x59fcbb){const _0x507845=a273_0x1d13,{getCookie:_0xa5c951}=await import(_0x507845(0x121)),_0x4a0a4b=_0x59fcbb[_0x507845(0x122)]||_0xa5c951(),_0x3dcbfa=_0x4a0a4b?await getIsSessionValid():![];return{'cookie':_0x4a0a4b,'isLoggedIn':_0x3dcbfa,async 'getOrLogin'(){const _0x2ae435=_0x507845;if(_0x4a0a4b&&_0x3dcbfa)return _0x4a0a4b;throw CliErrors[_0x2ae435(0x125)]();}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a274_0x2404d2=a274_0x2ad6;(function(_0x22cc53,_0x19ed32){const _0x5859aa=a274_0x2ad6,_0x26dab5=_0x22cc53();while(!![]){try{const _0x55935c=-parseInt(_0x5859aa(0x190))/0x1+parseInt(_0x5859aa(0x191))/0x2+-parseInt(_0x5859aa(0x1c1))/0x3*(-parseInt(_0x5859aa(0x18c))/0x4)+-parseInt(_0x5859aa(0x19f))/0x5*(-parseInt(_0x5859aa(0x1ae))/0x6)+parseInt(_0x5859aa(0x1ad))/0x7+parseInt(_0x5859aa(0x1b6))/0x8*(-parseInt(_0x5859aa(0x1ba))/0x9)+-parseInt(_0x5859aa(0x1a6))/0xa;if(_0x55935c===_0x19ed32)break;else _0x26dab5['push'](_0x26dab5['shift']());}catch(_0x22b2ea){_0x26dab5['push'](_0x26dab5['shift']());}}}(a274_0xfad9,0xce7a8));import{existsSync,mkdirSync,readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{dirname,parse,resolve}from'node:path';function a274_0x2ad6(_0x2714e5,_0x3902c3){_0x2714e5=_0x2714e5-0x18c;const _0xfad968=a274_0xfad9();let _0x2ad636=_0xfad968[_0x2714e5];return _0x2ad636;}import{homedir}from'node:os';import{CLI_BIN_NAME}from'../constant/cli.js';import{normalizeConfigForWrite}from'../config/schema.js';export const NEW_CONFIG_NAME=a274_0x2404d2(0x1c2);export const CONFIG_NAMES=[NEW_CONFIG_NAME];const normalizedWriteCache=new Map();export function resolveConfigPath(_0x27e5bd){for(const _0x3db284 of CONFIG_NAMES){const _0x952cc1=resolve(_0x27e5bd,_0x3db284);if(existsSync(_0x952cc1))return _0x952cc1;}return undefined;}export function findProjectRootDirectory(_0x1557ae=process[a274_0x2404d2(0x1b3)]()){let _0x28c91e=resolve(_0x1557ae);const {root:_0x443153}=parse(_0x28c91e),_0x572b59=homedir();while(!![]){if(resolveConfigPath(_0x28c91e)){if(_0x28c91e===_0x572b59)break;return _0x28c91e;}if(_0x28c91e===_0x443153||_0x28c91e===_0x572b59)break;const _0x55211b=dirname(_0x28c91e);if(_0x55211b===_0x28c91e)break;_0x28c91e=_0x55211b;}return resolve(_0x1557ae);}export function getProjectConfigPath(){const _0x21caa2=a274_0x2404d2;return resolveConfigPath(process[_0x21caa2(0x1b3)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function isInProject(){return!!getProjectConfigPath();}export function inspectCliConfigJsonFile(_0x220706){const _0x549000=a274_0x2404d2;if(!existsSync(_0x220706))return{'status':_0x549000(0x19a)};try{const _0x32c282=readFileSync(_0x220706,{'encoding':'utf8'});if(!_0x32c282?.[_0x549000(0x1aa)]())return{'status':_0x549000(0x1bd)};const _0x2d8b19=JSON[_0x549000(0x198)](_0x32c282);return{'status':'ok','data':_0x2d8b19};}catch(_0x24c174){return{'status':_0x549000(0x18e),'message':_0x24c174 instanceof Error?_0x24c174[_0x549000(0x1ac)]:String(_0x24c174)};}}function parseCliConfigJsonFile(_0x43bc8c,_0x3cacbe,_0x1231fe){const _0x32d38f=a274_0x2404d2,_0x5b6196=inspectCliConfigJsonFile(_0x43bc8c);if(_0x5b6196[_0x32d38f(0x195)]===_0x32d38f(0x19a)||_0x5b6196[_0x32d38f(0x195)]===_0x32d38f(0x1bd))return{};if(_0x5b6196[_0x32d38f(0x195)]==='ok')return _0x5b6196[_0x32d38f(0x1bf)];return _0x3cacbe==='warn'&&_0x1231fe&&console['error'](CLI_BIN_NAME+':\x20'+_0x1231fe+_0x32d38f(0x1af)+_0x43bc8c+_0x32d38f(0x18d)+_0x5b6196[_0x32d38f(0x1ac)]),{};}function normalizeLegacyConfigShape(_0x2949c1){const _0x5bfe4a=a274_0x2404d2;if(!_0x2949c1||typeof _0x2949c1!==_0x5bfe4a(0x1a3))return{'config':{},'migrated':![]};const _0x1f1270={..._0x2949c1},_0x7e498b=_0x1f1270[_0x5bfe4a(0x1b9)]&&typeof _0x1f1270[_0x5bfe4a(0x1b9)]===_0x5bfe4a(0x1a3)?{..._0x1f1270['apps']}:{},_0x43c817=Object[_0x5bfe4a(0x19c)](_0x7e498b)['length'],_0x593ad7=_0x1f1270[_0x5bfe4a(0x193)]||_0x1f1270['app'];let _0x4a8636=![];if(_0x593ad7&&_0x43c817===0x0){const _0x32061e=typeof _0x1f1270[_0x5bfe4a(0x1b1)]==='string'&&_0x1f1270['defaultApp'][_0x5bfe4a(0x1aa)]()?_0x1f1270['defaultApp']:String(_0x593ad7)[_0x5bfe4a(0x1aa)]();_0x7e498b[_0x32061e]={'appcode':String(_0x593ad7)[_0x5bfe4a(0x1aa)](),..._0x1f1270[_0x5bfe4a(0x1a2)]!=null?{'env':_0x1f1270[_0x5bfe4a(0x1a2)]}:{},..._0x1f1270[_0x5bfe4a(0x1b0)]!=null?{'apiDir':_0x1f1270[_0x5bfe4a(0x1b0)]}:{},..._0x1f1270['cookie']!=null?{'cookie':_0x1f1270[_0x5bfe4a(0x1c5)]}:{},..._0x1f1270['accessKey']!=null?{'accessKey':_0x1f1270['accessKey']}:{},..._0x1f1270[_0x5bfe4a(0x1a4)]!=null?{'format':_0x1f1270[_0x5bfe4a(0x1a4)]}:{},..._0x1f1270[_0x5bfe4a(0x1a8)]!=null?{'pageSize':_0x1f1270[_0x5bfe4a(0x1a8)]}:{},..._0x1f1270[_0x5bfe4a(0x1c4)]!=null?{'riskLevel':_0x1f1270[_0x5bfe4a(0x1c4)]}:{},..._0x1f1270['locale']!=null?{'locale':_0x1f1270[_0x5bfe4a(0x1b5)]}:{}},_0x1f1270[_0x5bfe4a(0x1b9)]=_0x7e498b,delete _0x1f1270[_0x5bfe4a(0x1b1)],_0x4a8636=!![];}return(_0x5bfe4a(0x193)in _0x1f1270||_0x5bfe4a(0x1b2)in _0x1f1270)&&(delete _0x1f1270[_0x5bfe4a(0x193)],delete _0x1f1270[_0x5bfe4a(0x1b2)],_0x4a8636=!![]),{'config':_0x1f1270,'migrated':_0x4a8636};}function writeNormalizedConfigIfNeeded(_0x148983,_0x34cf70){const _0x25bdef=a274_0x2404d2,_0x2c55f0=JSON['stringify'](normalizeConfigForWrite(_0x34cf70),null,0x2)+'\x0a';if(normalizedWriteCache[_0x25bdef(0x19d)](_0x148983)===_0x2c55f0)return;writeConfigFile(_0x148983,_0x34cf70),normalizedWriteCache[_0x25bdef(0x1b8)](_0x148983,_0x2c55f0);}function parseAndNormalizeConfig(_0x541655,_0x1bc1f3,_0x3c2336){const _0x21df58=a274_0x2404d2,_0x4ddc89=parseCliConfigJsonFile(_0x541655,_0x1bc1f3,_0x3c2336),_0x554872=normalizeLegacyConfigShape(_0x4ddc89);if(_0x554872[_0x21df58(0x1bb)])try{writeNormalizedConfigIfNeeded(_0x541655,_0x554872[_0x21df58(0x1a9)]);}catch{}return _0x554872[_0x21df58(0x1a9)];}export function loadRawConfigLayers(_0x46bd67){const _0xbd8f25=a274_0x2404d2;let _0x157877={},_0x23664a={};const _0x22a2c3=resolveConfigPath(homedir());_0x22a2c3&&(_0x157877=parseAndNormalizeConfig(_0x22a2c3,_0xbd8f25(0x1a0),_0xbd8f25(0x1c6)));const _0x486717=_0x46bd67??findProjectRootDirectory(),_0x3b618e=resolveConfigPath(_0x486717);return _0x3b618e&&(_0x23664a=parseAndNormalizeConfig(_0x3b618e,'warn',_0xbd8f25(0x18f))),{'globalPath':_0x22a2c3,'projectPath':_0x3b618e,'globalConfig':_0x157877,'projectConfig':_0x23664a};}const INHERIT_WHITELIST=[a274_0x2404d2(0x1c5),a274_0x2404d2(0x196),a274_0x2404d2(0x1b5),a274_0x2404d2(0x1a4),a274_0x2404d2(0x1c4),'pageSize',a274_0x2404d2(0x1c0),'routing',a274_0x2404d2(0x19e),a274_0x2404d2(0x199),a274_0x2404d2(0x1ab),a274_0x2404d2(0x194),a274_0x2404d2(0x1b7),a274_0x2404d2(0x1b4),'appDomain','localDomain',a274_0x2404d2(0x1a5)];export function mergeRawConfigLayers(_0x4bf953){const _0xf376c8=a274_0x2404d2,{globalConfig:_0x5c2396,projectConfig:_0x5be496}=_0x4bf953,_0x54cd1f=!!_0x4bf953[_0xf376c8(0x1bc)]||Object[_0xf376c8(0x19c)](_0x5be496)[_0xf376c8(0x197)]>0x0;if(!_0x54cd1f)return mergeGlobalOnly(_0x5c2396);return mergeProjectFirst(_0x5c2396,_0x5be496);}function mergeGlobalOnly(_0x5bc07b){const _0xe671e0=a274_0x2404d2,_0xe4fba0={..._0x5bc07b};delete _0xe4fba0[_0xe671e0(0x192)];const _0x4b8996=_0x5bc07b[_0xe671e0(0x1b9)]&&typeof _0x5bc07b[_0xe671e0(0x1b9)]===_0xe671e0(0x1a3)?_0x5bc07b['apps']:{};if(Object[_0xe671e0(0x19c)](_0x4b8996)[_0xe671e0(0x197)]>0x0)_0xe4fba0[_0xe671e0(0x1b9)]=_0x4b8996;if(_0x5bc07b[_0xe671e0(0x1b1)])_0xe4fba0['defaultApp']=_0x5bc07b[_0xe671e0(0x1b1)];return _0xe4fba0;}function mergeProjectFirst(_0x2c505d,_0x3214e4){const _0x18de92=a274_0x2404d2,_0x307b42={..._0x3214e4};delete _0x307b42[_0x18de92(0x192)];for(const _0x2cbe80 of INHERIT_WHITELIST){!(_0x2cbe80 in _0x307b42)&&_0x2cbe80 in _0x2c505d&&(_0x307b42[_0x2cbe80]=_0x2c505d[_0x2cbe80]);}const _0x54a288=_0x3214e4['apps']&&typeof _0x3214e4['apps']===_0x18de92(0x1a3)?_0x3214e4[_0x18de92(0x1b9)]:{};return Object[_0x18de92(0x19c)](_0x54a288)[_0x18de92(0x197)]>0x0?_0x307b42['apps']=_0x54a288:delete _0x307b42[_0x18de92(0x1b9)],_0x18de92(0x1b1)in _0x3214e4?_0x307b42[_0x18de92(0x1b1)]=_0x3214e4[_0x18de92(0x1b1)]:delete _0x307b42[_0x18de92(0x1b1)],_0x307b42;}function a274_0xfad9(){const _0x2c5b59=['runtimeDomain','message','2127195GvaGRA','35082ixHppb','\x20config\x20file\x20ignored\x20(invalid\x20JSON\x20or\x20unreadable):\x20','apiDir','defaultApp','app','cwd','kbServiceDomain','locale','958808QAQvIw','kbDomain','set','apps','63ZuGpXZ','migrated','projectPath','empty','silent','data','region','3297123AQUjnz','.rabetbase.json','.tmp','riskLevel','cookie','Global','4FXWYeD','\x0a\x20\x20','error','Project','62808VwRXnR','2168882NNrNUg','inherit','appcode','skillDomain','status','accessKey','length','parse','apiDomain','missing','project','keys','get','userDomain','1290wTJRwE','warn','stringify','env','object','format','certificateDomain','22483920aqaZIy','utf8','pageSize','config','trim'];a274_0xfad9=function(){return _0x2c5b59;};return a274_0xfad9();}export function readRawConfigWithLayers(_0xc223ae){const _0x3be2a8=loadRawConfigLayers(_0xc223ae);return{'config':mergeRawConfigLayers(_0x3be2a8),'layers':_0x3be2a8};}export function readRawConfig(_0x4a2fad){return mergeRawConfigLayers(loadRawConfigLayers(_0x4a2fad));}export function readConfigFile(_0x435857){const _0x13cb63=a274_0x2404d2;return parseAndNormalizeConfig(_0x435857,_0x13cb63(0x1be));}export function writeConfigFile(_0x1675ea,_0x507fac){const _0x5f4458=a274_0x2404d2,_0x46b275=dirname(_0x1675ea);!existsSync(_0x46b275)&&mkdirSync(_0x46b275,{'recursive':!![]});const _0x52dc1a=_0x1675ea+_0x5f4458(0x1c3);try{const _0x3764bc=normalizeConfigForWrite(_0x507fac);writeFileSync(_0x52dc1a,JSON[_0x5f4458(0x1a1)](_0x3764bc,null,0x2)+'\x0a',{'encoding':_0x5f4458(0x1a7),'mode':0x180}),renameSync(_0x52dc1a,_0x1675ea);}catch(_0xbcfca3){try{unlinkSync(_0x52dc1a);}catch{}throw _0xbcfca3;}}export function resolveWriteConfigPath(_0x3526c3){const _0x488956=a274_0x2404d2,_0x3f9f57=_0x3526c3===_0x488956(0x19b)?process[_0x488956(0x1b3)]():homedir(),_0x1f093f=resolveConfigPath(_0x3f9f57);return _0x1f093f??resolve(_0x3f9f57,NEW_CONFIG_NAME);}
|
package/lib/context.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a275_0xa44581=a275_0x2adb;(function(_0x20ce6d,_0x23f24f){const _0x43865f=a275_0x2adb,_0x32697c=_0x20ce6d();while(!![]){try{const _0x56efeb=parseInt(_0x43865f(0xa9))/0x1*(parseInt(_0x43865f(0xbd))/0x2)+-parseInt(_0x43865f(0xba))/0x3*(-parseInt(_0x43865f(0x9e))/0x4)+parseInt(_0x43865f(0x9f))/0x5*(parseInt(_0x43865f(0xab))/0x6)+-parseInt(_0x43865f(0xca))/0x7+-parseInt(_0x43865f(0x92))/0x8+-parseInt(_0x43865f(0x90))/0x9+parseInt(_0x43865f(0x9c))/0xa;if(_0x56efeb===_0x23f24f)break;else _0x32697c['push'](_0x32697c['shift']());}catch(_0x1b7cda){_0x32697c['push'](_0x32697c['shift']());}}}(a275_0x17d5,0xe4726));import{CLI_BIN_NAME}from'./constant/cli.js';import{buildAuth}from'./context/auth-resolver.js';import{resolveAppConfig}from'./context/app-resolver.js';import{CONFIG_NAMES,NEW_CONFIG_NAME,findProjectRootDirectory,getGlobalConfigPath,getProjectConfigPath,inspectCliConfigJsonFile,isInProject,loadRawConfigLayers,mergeRawConfigLayers,readConfigFile,readRawConfig,readRawConfigWithLayers,resolveConfigPath,resolveWriteConfigPath,writeConfigFile}from'./context/config-loader.js';import{resolveConfiguredRegion,resolveEffectiveRegion}from'./config/region-config.js';import{resolveEnterpriseRoutingManifest}from'./config/domain-config.js';function a275_0x2adb(_0x385f5d,_0x516c34){_0x385f5d=_0x385f5d-0x8c;const _0x17d57f=a275_0x17d5();let _0x2adb88=_0x17d57f[_0x385f5d];return _0x2adb88;}function a275_0x17d5(){const _0x3e1558=['targetEnv','slice','regionConfiguredValue','doctor','production','length','config','daily','template_base_url','globalConfig','localDomain','2312964bzjdTh','skillDomain','global\x20Rabetbase\x20configuration','18914lRtmXP','cdn','hasOwnProperty','map','agentDomain','kbServiceDomain','projectConfig','argv','trim','env','routing','app\x20profile\x20\x22','project','12820640uJwsiu','string','region','./utils/is-non-interactive.js','prototype','global','merged','source','raw','project\x20Rabetbase\x20configuration','currentApp','platformDomain','https://g.lovrabet.com/dist/lovrabet-skill','keys','object','14812038lbrobS','certificateDomain','888544HQaErx','configuredRegion','kbDomain','setLogPath','routingConfig','appDomain','domains','apps','join','Rabetbase\x20configuration','13768820FpHHLY','skillHubDomain','8zRHZOA','17950UTwHlt','./constant/env.js','regionSource','apiDomain','defaultApp','apiDir','apiGroup','runtimeDomain','./constant/domain.js','regionLocation','150FjbDMb','app','312fjfXGv','userDomain','appcode','filter'];a275_0x17d5=function(){return _0x3e1558;};return a275_0x17d5();}import{logger}from'./utils/logger.js';import{resolveApiModelSource}from'./api/model-source.js';export{CONFIG_NAMES,NEW_CONFIG_NAME,findProjectRootDirectory,getGlobalConfigPath,getProjectConfigPath,inspectCliConfigJsonFile,isInProject,loadRawConfigLayers,mergeRawConfigLayers,readConfigFile,readRawConfig,readRawConfigWithLayers,resolveConfigPath,resolveWriteConfigPath,writeConfigFile};function env(_0x3cb0c5){return process.env[`RABETBASE_${_0x3cb0c5}`]||process.env[`LOVRABET_${_0x3cb0c5}`]||undefined;}function optionalString(_0x22e221){const _0x4747b4=a275_0x2adb;return typeof _0x22e221===_0x4747b4(0xcb)&&_0x22e221[_0x4747b4(0xc5)]()?_0x22e221['trim']():undefined;}export function isRoutingRecoveryService(_0x9da876){const _0x1785a8=a275_0x2adb;return _0x9da876===_0x1785a8(0xb5)||_0x9da876===_0x1785a8(0xb2);}export async function createContext(_0x41e042){const _0x2f0b61=a275_0x2adb,{config:_0x4507a8,layers:_0x492f84}=readRawConfigWithLayers(),_0x13382c=buildConfig(_0x4507a8,_0x41e042,_0x492f84);await initGlobalEnvironment(_0x13382c);const {getUserDomain:_0xf66eee,getApiDomain:_0xf1f749}=await import(_0x2f0b61(0xa7)),_0x1ff2b1={'apiDomain':_0xf1f749(),'userDomain':_0xf66eee()},_0x592c3a=await buildAuth(_0x13382c);logger[_0x2f0b61(0x95)](process['cwd']());const _0x47f651=(CLI_BIN_NAME+'\x20'+process[_0x2f0b61(0xc4)][_0x2f0b61(0xb0)](0x2)[_0x2f0b61(0x9a)]('\x20'))[_0x2f0b61(0xc5)]();logger['setRawCommand'](_0x47f651);const {isNonInteractive:_0x3a9808}=await import(_0x2f0b61(0xcd)),_0x380c50=_0x3a9808(_0x41e042);return{'config':_0x13382c,'auth':_0x592c3a,'logger':logger,'env':_0x1ff2b1,'nonInteractive':_0x380c50};}export function buildConfigFromFlags(_0x87d1bd){const {config:_0x4d900c,layers:_0x43c006}=readRawConfigWithLayers();return buildConfig(_0x4d900c,_0x87d1bd,_0x43c006);}export async function initGlobalEnvironment(_0x28ca34){const _0x5d7327=a275_0x2adb,_0x43bc7a=_0x28ca34['regionSource']===_0x5d7327(0xaa)&&_0x28ca34[_0x5d7327(0xd4)]?_0x5d7327(0xc8)+_0x28ca34[_0x5d7327(0xd4)]+'\x22':_0x28ca34[_0x5d7327(0xa1)]===_0x5d7327(0xc9)?_0x5d7327(0xd3):_0x28ca34[_0x5d7327(0xa1)]===_0x5d7327(0xcf)?_0x5d7327(0xbc):_0x5d7327(0x9b);await initConfiguredEnvironment({'raw':_0x28ca34[_0x5d7327(0xd2)],'configuredRegion':_0x28ca34[_0x5d7327(0xb1)]??_0x28ca34[_0x5d7327(0xd2)]?.[_0x5d7327(0xcc)]??_0x28ca34['region'],'regionLocation':_0x43bc7a,'targetEnv':_0x28ca34[_0x5d7327(0xc6)]});}async function initConfiguredEnvironment(_0x44c5f3){const _0x29e5b6=a275_0x2adb,_0x74114b=resolveConfiguredRegion(_0x44c5f3[_0x29e5b6(0x93)],_0x44c5f3[_0x29e5b6(0xa8)]),_0x2a9068=resolveEnterpriseRoutingManifest(_0x44c5f3[_0x29e5b6(0xd2)]?.[_0x29e5b6(0xc7)]),_0x3897dd={'region':_0x74114b,'apiDomain':_0x2a9068?_0x2a9068[_0x29e5b6(0x98)][_0x29e5b6(0xa2)]:optionalString(_0x44c5f3[_0x29e5b6(0xd2)]?.['apiDomain']),'userDomain':_0x2a9068?_0x2a9068[_0x29e5b6(0x98)][_0x29e5b6(0xac)]:optionalString(_0x44c5f3[_0x29e5b6(0xd2)]?.[_0x29e5b6(0xac)]),'runtimeDomain':_0x2a9068?_0x2a9068[_0x29e5b6(0x98)]['runtimeDomain']:optionalString(_0x44c5f3[_0x29e5b6(0xd2)]?.[_0x29e5b6(0xa6)]),'skillDomain':_0x2a9068?_0x2a9068[_0x29e5b6(0x98)]['skillDomain']:optionalString(_0x44c5f3['raw']?.[_0x29e5b6(0xbb)])||optionalString(_0x44c5f3[_0x29e5b6(0xd2)]?.[_0x29e5b6(0x9d)])||optionalString(_0x44c5f3[_0x29e5b6(0xd2)]?.[_0x29e5b6(0xc1)])||optionalString(_0x44c5f3[_0x29e5b6(0xd2)]?.[_0x29e5b6(0x8c)]),'kbDomain':_0x2a9068?_0x2a9068[_0x29e5b6(0x98)][_0x29e5b6(0x94)]:optionalString(_0x44c5f3[_0x29e5b6(0xd2)]?.['kbDomain'])||optionalString(_0x44c5f3['raw']?.['agentDomain'])||optionalString(_0x44c5f3[_0x29e5b6(0xd2)]?.[_0x29e5b6(0x8c)]),'kbServiceDomain':_0x2a9068?_0x2a9068[_0x29e5b6(0x98)]['kbServiceDomain']:optionalString(_0x44c5f3[_0x29e5b6(0xd2)]?.[_0x29e5b6(0xc2)]),'appDomain':_0x2a9068?_0x2a9068['domains'][_0x29e5b6(0x97)]:optionalString(_0x44c5f3[_0x29e5b6(0xd2)]?.['appDomain']),'localDomain':_0x2a9068?_0x2a9068['domains'][_0x29e5b6(0xb9)]:optionalString(_0x44c5f3[_0x29e5b6(0xd2)]?.['localDomain']),'certificateDomain':_0x2a9068?_0x2a9068[_0x29e5b6(0x98)][_0x29e5b6(0x91)]:optionalString(_0x44c5f3['raw']?.[_0x29e5b6(0x91)]),'cdn':_0x2a9068?.[_0x29e5b6(0xbe)],'allowOfficialKbServiceDefault':!(_0x2a9068!==undefined||[_0x29e5b6(0xa2),_0x29e5b6(0xac),'runtimeDomain','skillDomain',_0x29e5b6(0x9d),_0x29e5b6(0x94),_0x29e5b6(0xc2),_0x29e5b6(0xc1),_0x29e5b6(0x8c),_0x29e5b6(0x97),_0x29e5b6(0xb9),_0x29e5b6(0x91)]['some'](_0xe012c9=>Object[_0x29e5b6(0xce)][_0x29e5b6(0xbf)]['call'](_0x44c5f3[_0x29e5b6(0xd2)]??{},_0xe012c9)))},{initEnv:_0x77100b}=await import(_0x29e5b6(0xa0)),{initDomains:_0xf839be}=await import('./constant/domain.js');_0x77100b(_0x44c5f3[_0x29e5b6(0xaf)]),_0xf839be(_0x3897dd);}export async function initMultiAppEnvironment(_0x483612){const _0x4d94bb=a275_0x2adb;await initConfiguredEnvironment({'raw':_0x483612[_0x4d94bb(0x96)],'configuredRegion':_0x483612['region'],'regionLocation':_0x4d94bb(0xc8)+_0x483612['name']+'\x22','targetEnv':_0x483612[_0x4d94bb(0xc6)]==='daily'?_0x4d94bb(0xb6):_0x4d94bb(0xb3)});}export function getConfigAppCode(_0x249154){const _0x36ce25=a275_0x2adb,_0x50066d=readRawConfig(_0x249154);if(_0x50066d['apps']&&typeof _0x50066d['apps']===_0x36ce25(0x8f)){const _0x3ddb7e=_0x50066d[_0x36ce25(0xa3)];if(_0x3ddb7e)return _0x50066d[_0x36ce25(0x99)][_0x3ddb7e]?.[_0x36ce25(0xad)]?String(_0x50066d[_0x36ce25(0x99)][_0x3ddb7e]['appcode'])[_0x36ce25(0xc5)]():undefined;const _0x1ae08e=Object['values'](_0x50066d[_0x36ce25(0x99)]);if(_0x1ae08e[_0x36ce25(0xb4)]===0x1&&_0x1ae08e[0x0]?.[_0x36ce25(0xad)])return String(_0x1ae08e[0x0][_0x36ce25(0xad)])[_0x36ce25(0xc5)]();}const _0x4d59a7=_0x50066d['appcode']||_0x50066d[_0x36ce25(0xaa)];if(typeof _0x4d59a7!=='string'||_0x4d59a7[_0x36ce25(0xc5)]()==='')return undefined;return _0x4d59a7[_0x36ce25(0xc5)]();}const CONNECTION_ROUTING_KEYS=[a275_0xa44581(0xc7),'apiDomain','userDomain',a275_0xa44581(0xa6),'skillDomain','skillHubDomain',a275_0xa44581(0x94),a275_0xa44581(0xc2),a275_0xa44581(0xc1),a275_0xa44581(0x8c),a275_0xa44581(0x97),'localDomain','certificateDomain'];function withAppProfileRouting(_0x6bf7e,_0x149d91){const _0x32a29b=a275_0xa44581;if(!_0x149d91||_0x149d91[_0x32a29b(0xc2)]===undefined)return _0x6bf7e;return{..._0x6bf7e,'kbServiceDomain':_0x149d91[_0x32a29b(0xc2)]};}function pickConnectionRoutingConfig(_0x300214,_0xd31550){const _0x21dd18={'region':_0xd31550};for(const _0x1a1c5b of CONNECTION_ROUTING_KEYS){if(_0x300214[_0x1a1c5b]!==undefined)_0x21dd18[_0x1a1c5b]=_0x300214[_0x1a1c5b];}return _0x21dd18;}export function getMultiAppConfigs(_0xe10f63=a275_0xa44581(0xc9),_0x35d42c){const _0x2b8713=a275_0xa44581,_0x4020ac=loadRawConfigLayers(_0x35d42c);let _0x3af9a9,_0x267899;const _0x24a82f=mergeRawConfigLayers(_0x4020ac),_0x1f49a1=_0x4020ac[_0x2b8713(0xb8)][_0x2b8713(0x99)]&&typeof _0x4020ac[_0x2b8713(0xb8)][_0x2b8713(0x99)]===_0x2b8713(0x8f)?_0x4020ac[_0x2b8713(0xb8)][_0x2b8713(0x99)]:{},_0x5cfebf=_0x4020ac[_0x2b8713(0xc3)]['apps']&&typeof _0x4020ac['projectConfig']['apps']==='object'?_0x4020ac[_0x2b8713(0xc3)][_0x2b8713(0x99)]:{};_0xe10f63===_0x2b8713(0xd0)?(_0x3af9a9={..._0x1f49a1,..._0x5cfebf},_0x267899=_0x24a82f[_0x2b8713(0xa3)]):(_0x3af9a9=_0x4020ac[_0x2b8713(0xc3)][_0x2b8713(0x99)],_0x267899=_0x4020ac['projectConfig'][_0x2b8713(0xa3)]);!_0x267899&&_0x3af9a9&&typeof _0x3af9a9===_0x2b8713(0x8f)&&Object[_0x2b8713(0x8e)](_0x3af9a9)['length']===0x1&&(_0x267899=Object['keys'](_0x3af9a9)[0x0]);if(!_0x3af9a9||typeof _0x3af9a9!=='object'||Object[_0x2b8713(0x8e)](_0x3af9a9)[_0x2b8713(0xb4)]===0x0)return null;return Object['entries'](_0x3af9a9)[_0x2b8713(0xc0)](([_0x5352e1,_0x2adaea])=>{const _0x4737ac=_0x2b8713,_0xf8405=_0xe10f63===_0x4737ac(0xc9)||Object[_0x4737ac(0xce)][_0x4737ac(0xbf)]['call'](_0x5cfebf,_0x5352e1),_0x48f7d3=withAppProfileRouting(_0xf8405?_0x24a82f:_0x4020ac[_0x4737ac(0xb8)],_0x2adaea),_0x1a1952=resolveEffectiveRegion({'appRegion':_0x2adaea?.['region'],'projectRegion':_0xf8405?_0x4020ac['projectConfig'][_0x4737ac(0xcc)]:undefined,'globalRegion':_0x4020ac['globalConfig'][_0x4737ac(0xcc)],'mergedRegion':_0x48f7d3['region'],'appName':_0x5352e1});return{'name':_0x5352e1,'appcode':_0x2adaea?.['appcode']||'','apiGroup':optionalString(_0x2adaea?.[_0x4737ac(0xa5)]),'isDefault':_0x5352e1===_0x267899,'region':_0x1a1952[_0x4737ac(0xcc)],'regionSource':_0x1a1952[_0x4737ac(0xd1)],'env':_0x2adaea?.[_0x4737ac(0xc6)],'apiDir':optionalString(_0x2adaea?.[_0x4737ac(0xa4)])||optionalString(_0x48f7d3[_0x4737ac(0xa4)]),'cookie':_0x2adaea?.['cookie']||undefined,'routingConfig':pickConnectionRoutingConfig(_0x48f7d3,_0x1a1952[_0x4737ac(0xcc)])};})[_0x2b8713(0xae)](_0x31c70b=>_0x31c70b['appcode']);}export function getTemplateBaseUrl(_0x587ee2){const _0x5c39d1=a275_0xa44581,_0x377d56=readRawConfig(_0x587ee2);if(_0x377d56[_0x5c39d1(0xb7)]&&typeof _0x377d56[_0x5c39d1(0xb7)]===_0x5c39d1(0xcb))return _0x377d56[_0x5c39d1(0xb7)]['replace'](/\/$/,'');return _0x5c39d1(0x8d);}function buildConfig(_0x14b13c,_0x2183ec,_0x5e781c){const _0x414933=a275_0xa44581,_0x1117aa=resolveAppConfig({'raw':_0x14b13c,'flags':_0x2183ec,'layers':_0x5e781c,'readEnv':env}),_0x25dce8=_0x1117aa[_0x414933(0xd4)]?_0x1117aa['apps'][_0x1117aa[_0x414933(0xd4)]]:undefined;return{..._0x1117aa,'raw':withAppProfileRouting(_0x14b13c,_0x25dce8)};}export function resolveApiFilePath(_0x32b97a,_0x45b716,_0x9547e6){return resolveApiModelSource(_0x32b97a,_0x45b716,_0x9547e6)['filePath'];}
|
|
1
|
+
const a275_0x20bad6=a275_0x536f;function a275_0x536f(_0x20928a,_0x1f66ba){_0x20928a=_0x20928a-0x1d3;const _0x41e0d7=a275_0x41e0();let _0x536f99=_0x41e0d7[_0x20928a];return _0x536f99;}(function(_0x43900e,_0x33e1ee){const _0x769a38=a275_0x536f,_0x3383ba=_0x43900e();while(!![]){try{const _0x1259bc=parseInt(_0x769a38(0x209))/0x1*(-parseInt(_0x769a38(0x1fa))/0x2)+-parseInt(_0x769a38(0x211))/0x3+parseInt(_0x769a38(0x1ee))/0x4*(-parseInt(_0x769a38(0x1f7))/0x5)+parseInt(_0x769a38(0x1d7))/0x6+-parseInt(_0x769a38(0x1e0))/0x7+parseInt(_0x769a38(0x1de))/0x8+parseInt(_0x769a38(0x20a))/0x9;if(_0x1259bc===_0x33e1ee)break;else _0x3383ba['push'](_0x3383ba['shift']());}catch(_0x2c22c4){_0x3383ba['push'](_0x3383ba['shift']());}}}(a275_0x41e0,0x65338));import{CLI_BIN_NAME}from'./constant/cli.js';import{buildAuth}from'./context/auth-resolver.js';import{resolveAppConfig}from'./context/app-resolver.js';import{CONFIG_NAMES,NEW_CONFIG_NAME,findProjectRootDirectory,getGlobalConfigPath,getProjectConfigPath,inspectCliConfigJsonFile,isInProject,loadRawConfigLayers,mergeRawConfigLayers,readConfigFile,readRawConfig,readRawConfigWithLayers,resolveConfigPath,resolveWriteConfigPath,writeConfigFile}from'./context/config-loader.js';import{resolveConfiguredRegion,resolveEffectiveRegion}from'./config/region-config.js';import{resolveEnterpriseRoutingManifest}from'./config/domain-config.js';import{logger}from'./utils/logger.js';import{resolveApiModelSource}from'./api/model-source.js';export{CONFIG_NAMES,NEW_CONFIG_NAME,findProjectRootDirectory,getGlobalConfigPath,getProjectConfigPath,inspectCliConfigJsonFile,isInProject,loadRawConfigLayers,mergeRawConfigLayers,readConfigFile,readRawConfig,readRawConfigWithLayers,resolveConfigPath,resolveWriteConfigPath,writeConfigFile};function env(_0x301264){return process.env[`RABETBASE_${_0x301264}`]||process.env[`LOVRABET_${_0x301264}`]||undefined;}function optionalString(_0x2871f1){const _0x5e378c=a275_0x536f;return typeof _0x2871f1===_0x5e378c(0x21c)&&_0x2871f1[_0x5e378c(0x203)]()?_0x2871f1[_0x5e378c(0x203)]():undefined;}export function isRoutingRecoveryService(_0xb317fe){const _0x2b9f74=a275_0x536f;return _0xb317fe===_0x2b9f74(0x21a)||_0xb317fe===_0x2b9f74(0x217);}export async function createContext(_0x4f14ef){const _0x3cfd6b=a275_0x536f,{config:_0x4aff92,layers:_0x4987ea}=readRawConfigWithLayers(),_0x5013d9=buildConfig(_0x4aff92,_0x4f14ef,_0x4987ea);await initGlobalEnvironment(_0x5013d9);const {getUserDomain:_0x72f0f1,getApiDomain:_0x1690d4}=await import(_0x3cfd6b(0x1f8)),_0x51423b={'apiDomain':_0x1690d4(),'userDomain':_0x72f0f1()},_0x4ee90e=await buildAuth(_0x5013d9);logger['setLogPath'](process[_0x3cfd6b(0x1f5)]());const _0x598811=(CLI_BIN_NAME+'\x20'+process[_0x3cfd6b(0x214)][_0x3cfd6b(0x1fd)](0x2)[_0x3cfd6b(0x1d6)]('\x20'))[_0x3cfd6b(0x203)]();logger[_0x3cfd6b(0x202)](_0x598811);const {isNonInteractive:_0x5bb0e7}=await import(_0x3cfd6b(0x1f3)),_0x45c327=_0x5bb0e7(_0x4f14ef);return{'config':_0x5013d9,'auth':_0x4ee90e,'logger':logger,'env':_0x51423b,'nonInteractive':_0x45c327};}export function buildConfigFromFlags(_0x503e5d){const {config:_0x50fbe9,layers:_0x1af87}=readRawConfigWithLayers();return buildConfig(_0x50fbe9,_0x503e5d,_0x1af87);}export async function initGlobalEnvironment(_0x5380b3){const _0x29f5ef=a275_0x536f,_0xccf1b2=_0x5380b3['regionSource']===_0x29f5ef(0x205)&&_0x5380b3[_0x29f5ef(0x1d8)]?_0x29f5ef(0x1db)+_0x5380b3[_0x29f5ef(0x1d8)]+'\x22':_0x5380b3[_0x29f5ef(0x1e6)]===_0x29f5ef(0x1dc)?_0x29f5ef(0x1d4):_0x5380b3['regionSource']===_0x29f5ef(0x1f9)?_0x29f5ef(0x1f4):_0x29f5ef(0x1f0);await initConfiguredEnvironment({'raw':_0x5380b3[_0x29f5ef(0x1fe)],'configuredRegion':_0x5380b3[_0x29f5ef(0x213)]??_0x5380b3['raw']?.[_0x29f5ef(0x1e5)]??_0x5380b3[_0x29f5ef(0x1e5)],'regionLocation':_0xccf1b2,'targetEnv':_0x5380b3[_0x29f5ef(0x219)]});}async function initConfiguredEnvironment(_0x859a2c){const _0x26c874=a275_0x536f,_0x40dc7a=resolveConfiguredRegion(_0x859a2c[_0x26c874(0x1e2)],_0x859a2c[_0x26c874(0x1e3)]),_0x5ae2d6=resolveEnterpriseRoutingManifest(_0x859a2c[_0x26c874(0x1fe)]?.[_0x26c874(0x21d)]),_0x5bb22f={'region':_0x40dc7a,'apiDomain':_0x5ae2d6?_0x5ae2d6[_0x26c874(0x216)][_0x26c874(0x1e7)]:optionalString(_0x859a2c[_0x26c874(0x1fe)]?.[_0x26c874(0x1e7)]),'userDomain':_0x5ae2d6?_0x5ae2d6[_0x26c874(0x216)]['userDomain']:optionalString(_0x859a2c[_0x26c874(0x1fe)]?.['userDomain']),'runtimeDomain':_0x5ae2d6?_0x5ae2d6[_0x26c874(0x216)][_0x26c874(0x208)]:optionalString(_0x859a2c[_0x26c874(0x1fe)]?.['runtimeDomain']),'skillDomain':_0x5ae2d6?_0x5ae2d6['domains'][_0x26c874(0x210)]:optionalString(_0x859a2c[_0x26c874(0x1fe)]?.['skillDomain'])||optionalString(_0x859a2c[_0x26c874(0x1fe)]?.[_0x26c874(0x1e8)])||optionalString(_0x859a2c[_0x26c874(0x1fe)]?.[_0x26c874(0x1f2)])||optionalString(_0x859a2c[_0x26c874(0x1fe)]?.['platformDomain']),'kbDomain':_0x5ae2d6?_0x5ae2d6[_0x26c874(0x216)]['kbDomain']:optionalString(_0x859a2c[_0x26c874(0x1fe)]?.[_0x26c874(0x1ea)])||optionalString(_0x859a2c[_0x26c874(0x1fe)]?.[_0x26c874(0x1f2)])||optionalString(_0x859a2c[_0x26c874(0x1fe)]?.[_0x26c874(0x1df)]),'kbServiceDomain':_0x5ae2d6?_0x5ae2d6['domains']['kbServiceDomain']:optionalString(_0x859a2c[_0x26c874(0x1fe)]?.[_0x26c874(0x1dd)]),'appDomain':_0x5ae2d6?_0x5ae2d6[_0x26c874(0x216)]['appDomain']:optionalString(_0x859a2c[_0x26c874(0x1fe)]?.[_0x26c874(0x206)]),'localDomain':_0x5ae2d6?_0x5ae2d6[_0x26c874(0x216)][_0x26c874(0x1e1)]:optionalString(_0x859a2c[_0x26c874(0x1fe)]?.[_0x26c874(0x1e1)]),'certificateDomain':_0x5ae2d6?_0x5ae2d6[_0x26c874(0x216)][_0x26c874(0x200)]:optionalString(_0x859a2c[_0x26c874(0x1fe)]?.[_0x26c874(0x200)]),'cdn':_0x5ae2d6?.[_0x26c874(0x1d9)],'allowOfficialKbServiceDefault':!(_0x5ae2d6!==undefined||[_0x26c874(0x1e7),'userDomain',_0x26c874(0x208),_0x26c874(0x210),_0x26c874(0x1e8),_0x26c874(0x1ea),_0x26c874(0x1dd),'agentDomain',_0x26c874(0x1df),_0x26c874(0x206),'localDomain',_0x26c874(0x200)][_0x26c874(0x1ed)](_0x312158=>Object['prototype'][_0x26c874(0x1eb)]['call'](_0x859a2c[_0x26c874(0x1fe)]??{},_0x312158)))},{initEnv:_0x7a4b8e}=await import(_0x26c874(0x1d5)),{initDomains:_0x3e3070}=await import(_0x26c874(0x1f8));_0x7a4b8e(_0x859a2c[_0x26c874(0x20e)]),_0x3e3070(_0x5bb22f);}export async function initMultiAppEnvironment(_0x2890c7){const _0x356e64=a275_0x536f;await initConfiguredEnvironment({'raw':_0x2890c7[_0x356e64(0x1f1)],'configuredRegion':_0x2890c7[_0x356e64(0x1e5)],'regionLocation':'app\x20profile\x20\x22'+_0x2890c7[_0x356e64(0x1ef)]+'\x22','targetEnv':_0x2890c7['env']===_0x356e64(0x207)?'daily':'production'});}export function getConfigAppCode(_0x10d7fa){const _0x59fd0f=a275_0x536f,_0x58f47c=readRawConfig(_0x10d7fa);if(_0x58f47c['apps']&&typeof _0x58f47c[_0x59fd0f(0x20f)]===_0x59fd0f(0x220)){const _0x1e4779=_0x58f47c['defaultApp'];if(_0x1e4779)return _0x58f47c[_0x59fd0f(0x20f)][_0x1e4779]?.[_0x59fd0f(0x1fb)]?String(_0x58f47c[_0x59fd0f(0x20f)][_0x1e4779][_0x59fd0f(0x1fb)])[_0x59fd0f(0x203)]():undefined;const _0x456c6b=Object['values'](_0x58f47c[_0x59fd0f(0x20f)]);if(_0x456c6b[_0x59fd0f(0x204)]===0x1&&_0x456c6b[0x0]?.[_0x59fd0f(0x1fb)])return String(_0x456c6b[0x0][_0x59fd0f(0x1fb)])[_0x59fd0f(0x203)]();}const _0x33fa9a=_0x58f47c['appcode']||_0x58f47c[_0x59fd0f(0x205)];if(typeof _0x33fa9a!==_0x59fd0f(0x21c)||_0x33fa9a[_0x59fd0f(0x203)]()==='')return undefined;return _0x33fa9a['trim']();}const CONNECTION_ROUTING_KEYS=['routing',a275_0x20bad6(0x1e7),'userDomain',a275_0x20bad6(0x208),'skillDomain',a275_0x20bad6(0x1e8),a275_0x20bad6(0x1ea),a275_0x20bad6(0x1dd),'agentDomain',a275_0x20bad6(0x1df),a275_0x20bad6(0x206),a275_0x20bad6(0x1e1),a275_0x20bad6(0x200)];function withAppProfileRouting(_0x5a0889,_0x5d873f){const _0x144900=a275_0x20bad6;if(!_0x5d873f||_0x5d873f[_0x144900(0x1dd)]===undefined)return _0x5a0889;return{..._0x5a0889,'kbServiceDomain':_0x5d873f[_0x144900(0x1dd)]};}function pickConnectionRoutingConfig(_0x1cb626,_0x31314e){const _0x52e665={'region':_0x31314e};for(const _0x186d09 of CONNECTION_ROUTING_KEYS){if(_0x1cb626[_0x186d09]!==undefined)_0x52e665[_0x186d09]=_0x1cb626[_0x186d09];}return _0x52e665;}export function getMultiAppConfigs(_0xbc0078=a275_0x20bad6(0x1dc),_0x50a446){const _0x3bf04f=a275_0x20bad6,_0xd10fd7=loadRawConfigLayers(_0x50a446);let _0x31591a,_0x208f25;const _0x4bb2d7=mergeRawConfigLayers(_0xd10fd7),_0x393303=_0xd10fd7[_0x3bf04f(0x21b)][_0x3bf04f(0x20f)]&&typeof _0xd10fd7[_0x3bf04f(0x21b)][_0x3bf04f(0x20f)]===_0x3bf04f(0x220)?_0xd10fd7[_0x3bf04f(0x21b)][_0x3bf04f(0x20f)]:{},_0x436e96=_0xd10fd7[_0x3bf04f(0x21e)]['apps']&&typeof _0xd10fd7[_0x3bf04f(0x21e)][_0x3bf04f(0x20f)]===_0x3bf04f(0x220)?_0xd10fd7['projectConfig'][_0x3bf04f(0x20f)]:{};_0xbc0078===_0x3bf04f(0x215)?(_0x31591a={..._0x393303,..._0x436e96},_0x208f25=_0x4bb2d7[_0x3bf04f(0x1e4)]):(_0x31591a=_0xd10fd7['projectConfig'][_0x3bf04f(0x20f)],_0x208f25=_0xd10fd7[_0x3bf04f(0x21e)]['defaultApp']);!_0x208f25&&_0x31591a&&typeof _0x31591a==='object'&&Object['keys'](_0x31591a)[_0x3bf04f(0x204)]===0x1&&(_0x208f25=Object[_0x3bf04f(0x20c)](_0x31591a)[0x0]);if(!_0x31591a||typeof _0x31591a!==_0x3bf04f(0x220)||Object[_0x3bf04f(0x20c)](_0x31591a)['length']===0x0)return null;return Object[_0x3bf04f(0x1da)](_0x31591a)[_0x3bf04f(0x212)](([_0x118af9,_0x3ae841])=>{const _0xf1b3f4=_0x3bf04f,_0x36820e=_0xbc0078===_0xf1b3f4(0x1dc)||Object[_0xf1b3f4(0x1ff)][_0xf1b3f4(0x1eb)][_0xf1b3f4(0x1f6)](_0x436e96,_0x118af9),_0x425c29=withAppProfileRouting(_0x36820e?_0x4bb2d7:_0xd10fd7[_0xf1b3f4(0x21b)],_0x3ae841),_0x411e02=resolveEffectiveRegion({'appRegion':_0x3ae841?.[_0xf1b3f4(0x1e5)],'projectRegion':_0x36820e?_0xd10fd7[_0xf1b3f4(0x21e)][_0xf1b3f4(0x1e5)]:undefined,'globalRegion':_0xd10fd7[_0xf1b3f4(0x21b)]['region'],'mergedRegion':_0x425c29[_0xf1b3f4(0x1e5)],'appName':_0x118af9});return{'name':_0x118af9,'appcode':_0x3ae841?.['appcode']||'','apiGroup':optionalString(_0x3ae841?.[_0xf1b3f4(0x1ec)]),'isDefault':_0x118af9===_0x208f25,'region':_0x411e02[_0xf1b3f4(0x1e5)],'regionSource':_0x411e02[_0xf1b3f4(0x218)],'env':_0x3ae841?.[_0xf1b3f4(0x219)],'apiDir':optionalString(_0x3ae841?.[_0xf1b3f4(0x21f)])||optionalString(_0x425c29[_0xf1b3f4(0x21f)]),'cookie':_0x3ae841?.[_0xf1b3f4(0x1d3)]||undefined,'routingConfig':pickConnectionRoutingConfig(_0x425c29,_0x411e02[_0xf1b3f4(0x1e5)])};})[_0x3bf04f(0x1fc)](_0x49aafb=>_0x49aafb['appcode']);}export function getTemplateBaseUrl(_0x20597c){const _0x5997dc=a275_0x20bad6,_0x5811ea=readRawConfig(_0x20597c);if(_0x5811ea['template_base_url']&&typeof _0x5811ea[_0x5997dc(0x20d)]===_0x5997dc(0x21c))return _0x5811ea[_0x5997dc(0x20d)][_0x5997dc(0x201)](/\/$/,'');return _0x5997dc(0x1e9);}function buildConfig(_0x3e6754,_0x4b2a46,_0x40d5a2){const _0x2412e0=a275_0x20bad6,_0x24e634=resolveAppConfig({'raw':_0x3e6754,'flags':_0x4b2a46,'layers':_0x40d5a2,'readEnv':env}),_0x5309f3=_0x24e634['currentApp']?_0x24e634[_0x2412e0(0x20f)][_0x24e634['currentApp']]:undefined;return{..._0x24e634,'raw':withAppProfileRouting(_0x3e6754,_0x5309f3)};}function a275_0x41e0(){const _0x1c10c6=['string','routing','projectConfig','apiDir','object','cookie','project\x20Rabetbase\x20configuration','./constant/env.js','join','4017000smTfBP','currentApp','cdn','entries','app\x20profile\x20\x22','project','kbServiceDomain','3373032YUucGQ','platformDomain','5999ePJyaZ','localDomain','configuredRegion','regionLocation','defaultApp','region','regionSource','apiDomain','skillHubDomain','https://g.lovrabet.com/dist/lovrabet-skill','kbDomain','hasOwnProperty','apiGroup','some','16VDFhaK','name','Rabetbase\x20configuration','routingConfig','agentDomain','./utils/is-non-interactive.js','global\x20Rabetbase\x20configuration','cwd','call','564100PpPWov','./constant/domain.js','global','12YlsxQW','appcode','filter','slice','raw','prototype','certificateDomain','replace','setRawCommand','trim','length','app','appDomain','daily','runtimeDomain','104040wxMcKm','6299091CYWFIj','filePath','keys','template_base_url','targetEnv','apps','skillDomain','900393LnfWcB','map','regionConfiguredValue','argv','merged','domains','doctor','source','env','config','globalConfig'];a275_0x41e0=function(){return _0x1c10c6;};return a275_0x41e0();}export function resolveApiFilePath(_0x117cd6,_0x2222da,_0x4fe37b){const _0x26272d=a275_0x20bad6;return resolveApiModelSource(_0x117cd6,_0x2222da,_0x4fe37b)[_0x26272d(0x20b)];}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a276_0x37bca4=a276_0x300b;function a276_0x300b(_0x4e9a2c,_0x1b3240){_0x4e9a2c=_0x4e9a2c-0x17d;const _0x193794=a276_0x1937();let _0x300b8b=_0x193794[_0x4e9a2c];return _0x300b8b;}(function(_0x4d0f0e,_0x3f9433){const _0x231982=a276_0x300b,_0x170c25=_0x4d0f0e();while(!![]){try{const _0x375026=parseInt(_0x231982(0x183))/0x1+parseInt(_0x231982(0x19b))/0x2+-parseInt(_0x231982(0x180))/0x3+parseInt(_0x231982(0x17f))/0x4*(-parseInt(_0x231982(0x188))/0x5)+parseInt(_0x231982(0x1a1))/0x6*(parseInt(_0x231982(0x190))/0x7)+-parseInt(_0x231982(0x191))/0x8+-parseInt(_0x231982(0x189))/0x9;if(_0x375026===_0x3f9433)break;else _0x170c25['push'](_0x170c25['shift']());}catch(_0x93b259){_0x170c25['push'](_0x170c25['shift']());}}}(a276_0x1937,0x645a5));import{existsSync,readFileSync,realpathSync,statSync}from'node:fs';import{dirname,extname,isAbsolute,relative,resolve}from'node:path';import{MODEL_REGISTRY_FILE_NAME,getProfileModels,readModelRegistry}from'../api/model-registry-file.js';import{parseLegacyApiModels}from'../api/legacy-api-file.js';import{findProjectRootDirectory}from'../context/config-loader.js';const cache=new Map(),MAX_LOCAL_REEXPORT_DEPTH=0x8,SOURCE_FILE_EXTENSIONS=['.ts',a276_0x37bca4(0x19d),a276_0x37bca4(0x197),a276_0x37bca4(0x18b),a276_0x37bca4(0x195),a276_0x37bca4(0x194),a276_0x37bca4(0x1a0),a276_0x37bca4(0x181)],LOCAL_REEXPORT_RE=/\bexport\s+(?:type\s+)?(?:\{[\s\S]*?\}|\*)\s+from\s*["']([^"']+)["']/g,SOURCE_EXTENSIONS_BY_RUNTIME_EXTENSION={'.js':[a276_0x37bca4(0x187),'.tsx'],'.jsx':['.tsx'],'.mjs':[a276_0x37bca4(0x197)],'.cjs':[a276_0x37bca4(0x18b)]};function parseApiFile(_0x49a75c){const _0x1d870a=a276_0x37bca4;return parseLegacyApiModels(_0x49a75c)[_0x1d870a(0x199)](_0x22c783=>_0x22c783[_0x1d870a(0x19f)]?[{'alias':_0x22c783[_0x1d870a(0x19f)],'datasetCode':_0x22c783['datasetCode'],'tableName':_0x22c783[_0x1d870a(0x18c)],'name':_0x22c783['name']}]:[]);}function isWithinRoot(_0x206fe6,_0x293264){const _0x349974=a276_0x37bca4,_0x2b4408=relative(_0x206fe6,_0x293264);return _0x2b4408===''||!_0x2b4408[_0x349974(0x18a)]('..')&&!isAbsolute(_0x2b4408);}function resolveExistingFile(_0x3fde53){const _0x2a83ab=a276_0x37bca4;if(!existsSync(_0x3fde53))return undefined;try{return statSync(_0x3fde53)[_0x2a83ab(0x185)]()?realpathSync(_0x3fde53):undefined;}catch{return undefined;}}function reexportCandidatePaths(_0x77d883){const _0x5e69c8=a276_0x37bca4,_0x24ecdf=extname(_0x77d883);if(!_0x24ecdf)return[...SOURCE_FILE_EXTENSIONS[_0x5e69c8(0x182)](_0x1f7557=>''+_0x77d883+_0x1f7557),...SOURCE_FILE_EXTENSIONS[_0x5e69c8(0x182)](_0xee3c73=>resolve(_0x77d883,_0x5e69c8(0x184)+_0xee3c73))];const _0x5b1602=SOURCE_EXTENSIONS_BY_RUNTIME_EXTENSION[_0x24ecdf];if(!_0x5b1602)return[_0x77d883];const _0x567d97=_0x77d883['slice'](0x0,-_0x24ecdf[_0x5e69c8(0x18f)]);return[..._0x5b1602[_0x5e69c8(0x182)](_0x49ca07=>''+_0x567d97+_0x49ca07),_0x77d883];}function resolveLocalReexport(_0x374041,_0x25d20a,_0x153b07){const _0x331530=a276_0x37bca4;if(!_0x25d20a[_0x331530(0x18a)]('./')&&!_0x25d20a[_0x331530(0x18a)](_0x331530(0x196)))return undefined;const _0x5989f0=resolve(dirname(_0x374041),_0x25d20a);if(!isWithinRoot(_0x153b07,_0x5989f0))return undefined;for(const _0x1461e0 of reexportCandidatePaths(_0x5989f0)){const _0x279265=resolveExistingFile(_0x1461e0);if(_0x279265&&isWithinRoot(_0x153b07,_0x279265))return _0x279265;}return undefined;}function parseApiFileTree(_0x560cc8,_0x2a85d9,_0x54380a,_0x2b1c02){const _0x2d637f=a276_0x37bca4,_0x24bb47=resolveExistingFile(_0x560cc8);if(!_0x24bb47)return[];const _0x5383e6=_0x54380a[_0x2d637f(0x1a2)](_0x24bb47);if(_0x5383e6!==undefined&&_0x5383e6<=_0x2b1c02)return[];_0x54380a['set'](_0x24bb47,_0x2b1c02);const _0xa9e7be=readFileSync(_0x24bb47,_0x2d637f(0x17e)),_0x591f26=parseApiFile(_0xa9e7be);if(_0x2b1c02>=MAX_LOCAL_REEXPORT_DEPTH)return _0x591f26;const _0xc3ae9e=new RegExp(LOCAL_REEXPORT_RE['source'],LOCAL_REEXPORT_RE[_0x2d637f(0x1a4)]);let _0x1c31a9;while((_0x1c31a9=_0xc3ae9e[_0x2d637f(0x19a)](_0xa9e7be))!==null){const _0x38b92f=resolveLocalReexport(_0x24bb47,_0x1c31a9[0x1],_0x2a85d9);_0x38b92f&&_0x591f26[_0x2d637f(0x1a5)](...parseApiFileTree(_0x38b92f,_0x2a85d9,_0x54380a,_0x2b1c02+0x1));}return _0x591f26;}function aliasProjectRoot(_0x30df05){const _0x53ea4f=findProjectRootDirectory(dirname(_0x30df05));try{return realpathSync(_0x53ea4f);}catch{return _0x53ea4f;}}function uniqueAliasEntries(_0x5da035){const _0x471c0d=a276_0x37bca4,_0x393bbf=new Set();return _0x5da035[_0x471c0d(0x19c)](_0x2fed6e=>{const _0x247a00=_0x471c0d,_0x139dfa=JSON[_0x247a00(0x186)](_0x2fed6e);if(_0x393bbf[_0x247a00(0x1a3)](_0x139dfa))return![];return _0x393bbf[_0x247a00(0x18e)](_0x139dfa),!![];});}export function loadAliasMap(_0x1afa86,_0x347d44,_0x3b14b8,_0x2b27e6){const _0x39c1c1=a276_0x37bca4,_0x41c380=resolve(_0x3b14b8??resolve(process['cwd'](),_0x1afa86,_0x39c1c1(0x192))),_0x934fb2=_0x2b27e6?_0x41c380+'#'+_0x2b27e6:_0x41c380;if(cache[_0x39c1c1(0x1a3)](_0x934fb2))return cache[_0x39c1c1(0x1a2)](_0x934fb2);if(!existsSync(_0x41c380))return cache['set'](_0x934fb2,[]),[];try{if(_0x41c380[_0x39c1c1(0x19e)](MODEL_REGISTRY_FILE_NAME)){const _0x19d69a=readModelRegistry(_0x41c380),_0x3bd1e4=_0x2b27e6??_0x19d69a?.['defaultProfile'],_0x22239b=_0x3bd1e4&&_0x19d69a?getProfileModels(_0x19d69a,_0x3bd1e4):[],_0x13948b=uniqueAliasEntries(_0x22239b['flatMap'](_0x38ba42=>_0x38ba42[_0x39c1c1(0x19f)]?[{'alias':_0x38ba42[_0x39c1c1(0x19f)],'datasetCode':_0x38ba42['datasetCode'],'tableName':_0x38ba42[_0x39c1c1(0x18c)],'name':_0x38ba42[_0x39c1c1(0x18d)]}]:[]));return cache['set'](_0x934fb2,_0x13948b),_0x13948b;}const _0x2f6b85=uniqueAliasEntries(parseApiFileTree(_0x41c380,aliasProjectRoot(_0x41c380),new Map(),0x0));return cache[_0x39c1c1(0x198)](_0x934fb2,_0x2f6b85),_0x2f6b85;}catch{return cache[_0x39c1c1(0x198)](_0x934fb2,[]),[];}}export function resolveAlias(_0x4ffb18,_0x7b8044,_0x2fa1c8,_0x1f7b9e,_0x44867a){const _0x19d12f=a276_0x37bca4;if(!_0x7b8044)return undefined;const _0x2352ef=loadAliasMap(_0x4ffb18,_0x2fa1c8,_0x1f7b9e,_0x44867a),_0xc362b3=new Set(_0x2352ef['filter'](_0x31c6e9=>_0x31c6e9[_0x19d12f(0x19f)]===_0x7b8044)[_0x19d12f(0x182)](_0xa1d426=>_0xa1d426[_0x19d12f(0x193)]));return _0xc362b3[_0x19d12f(0x17d)]===0x1?[..._0xc362b3][0x0]:undefined;}function a276_0x1937(){const _0x35b85d=['stringify','.ts','955zQFuld','3652326pCrepw','startsWith','.cts','tableName','name','add','length','50036ZOcLej','2965816iPakuO','api.ts','datasetCode','.jsx','.js','../','.mts','set','flatMap','exec','948154MJTZyI','filter','.tsx','endsWith','alias','.mjs','246dAwthp','get','has','flags','push','size','utf-8','188qLLHDI','804018XCVeCN','.cjs','map','697424XkvZAV','index','isFile'];a276_0x1937=function(){return _0x35b85d;};return a276_0x1937();}export function listAliases(_0x303fef,_0x4a0ec7,_0x1718c3,_0x1ae9c4){return loadAliasMap(_0x303fef,_0x4a0ec7,_0x1718c3,_0x1ae9c4);}
|