@lovrabet/rabetbase-cli 2.5.6 → 2.5.7-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.d.ts +2 -0
- package/lib/commands/flow/page-list.js +1 -0
- package/lib/commands/flow/publish.js +1 -1
- package/lib/commands/flow/runtime-resources-shared.d.ts +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.d.ts +6 -2
- 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.d.ts +26 -6
- 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.d.ts +12 -0
- 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/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/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 +8 -4
- package/skills/rabetbase/guides/approval-flow-development-workflow.md +52 -13
- package/skills/rabetbase/guides/backend-function.md +26 -4
- package/skills/rabetbase/guides/bff-creation-workflow.md +9 -0
- package/skills/rabetbase/guides/cross-database-bff.md +1 -0
- package/skills/rabetbase/guides/custom-page-flow-sdk.md +2 -0
- package/skills/rabetbase/guides/data-api-guidelines.md +2 -0
- package/skills/rabetbase/guides/flow-config-examples.md +75 -0
- package/skills/rabetbase/guides/form-flow-start.md +61 -0
- package/skills/rabetbase/guides/typescript-sdk.md +1 -1
- package/skills/rabetbase/knowledge/approval-flow/config-json-schema.md +18 -4
- package/skills/rabetbase/references/rabetbase-codegen-sdk.md +5 -4
- package/skills/rabetbase/references/rabetbase-flow-commands.md +21 -2
- package/skills/rabetbase/references/rabetbase-flow-resources.md +21 -3
- package/skills/rabetbase/references/rabetbase-flow-runtime-boundary.md +6 -2
- package/skills/rabetbase/references/rabetbase-kb.md +4 -1
- package/skills/rabetbase-dataset-generation/SKILL.md +1 -1
- package/skills/rabetbase-page-generation/SKILL.md +1 -1
- package/skills/rabetbase.manifest.json +5 -3
package/lib/constant/env.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a277_0x1ac7a7=a277_0x3e7f;(function(_0x39cf6f,_0x136f16){const _0x5d53c5=a277_0x3e7f,_0x178e7f=_0x39cf6f();while(!![]){try{const _0x799334=parseInt(_0x5d53c5(0x114))/0x1*(-parseInt(_0x5d53c5(0x11c))/0x2)+-parseInt(_0x5d53c5(0x112))/0x3*(parseInt(_0x5d53c5(0x11a))/0x4)+-parseInt(_0x5d53c5(0x118))/0x5+-parseInt(_0x5d53c5(0x117))/0x6+-parseInt(_0x5d53c5(0x11d))/0x7*(parseInt(_0x5d53c5(0x120))/0x8)+parseInt(_0x5d53c5(0x122))/0x9*(-parseInt(_0x5d53c5(0x113))/0xa)+parseInt(_0x5d53c5(0x119))/0xb*(parseInt(_0x5d53c5(0x115))/0xc);if(_0x799334===_0x136f16)break;else _0x178e7f['push'](_0x178e7f['shift']());}catch(_0x1ae3be){_0x178e7f['push'](_0x178e7f['shift']());}}}(a277_0x3e0a,0x43bbb));export const RABETBASE_ENV_VALUES=[a277_0x1ac7a7(0x11e),a277_0x1ac7a7(0x11f)];export function normalizeEnv(_0x546c7c){const _0x1743e3=a277_0x1ac7a7;return _0x546c7c===_0x1743e3(0x11b)?_0x1743e3(0x11e):_0x546c7c;}export function isProduction(_0x5788d1){const _0x5819fa=a277_0x1ac7a7;return normalizeEnv(_0x5788d1)===_0x5819fa(0x11e);}export function isDaily(_0x57d7d5){const _0x2b27e5=a277_0x1ac7a7;return normalizeEnv(_0x57d7d5)===_0x2b27e5(0x11f);}export function isDev(_0x3b7af6){const _0x62f60d=a277_0x1ac7a7,_0x128abf=normalizeEnv(_0x3b7af6);return _0x128abf===_0x62f60d(0x116)||_0x128abf===_0x62f60d(0x121);}function a277_0x3e7f(_0x309613,_0x4268d4){_0x309613=_0x309613-0x112;const _0x3e0a76=a277_0x3e0a();let _0x3e7fb6=_0x3e0a76[_0x309613];return _0x3e7fb6;}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||a277_0x1ac7a7(0x11e));function a277_0x3e0a(){const _0x162b7f=['dev','18891IPkDZF','61767EGDbyb','1510kCMhwd','1NYoGeM','29628FNrVOr','development','1494438dmDcGU','212770bIowub','7249jtFixC','40yJqRCw','online','753254vYGMhJ','5467jEavxn','production','daily','1624XXoozb'];a277_0x3e0a=function(){return _0x162b7f;};return a277_0x3e0a();}export function getEnv(){return env;}export function initEnv(_0x47de2e){env=normalizeEnv(_0x47de2e);}
|
package/lib/constant/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a278_0x528fc1=a278_0x79e7;(function(_0x53959b,_0x5d976c){const _0x25b4f1=a278_0x79e7,_0x287291=_0x53959b();while(!![]){try{const _0x5685f0=-parseInt(_0x25b4f1(0x192))/0x1*(-parseInt(_0x25b4f1(0x19c))/0x2)+parseInt(_0x25b4f1(0x191))/0x3*(parseInt(_0x25b4f1(0x198))/0x4)+parseInt(_0x25b4f1(0x197))/0x5+parseInt(_0x25b4f1(0x190))/0x6+-parseInt(_0x25b4f1(0x199))/0x7+parseInt(_0x25b4f1(0x194))/0x8*(parseInt(_0x25b4f1(0x19d))/0x9)+parseInt(_0x25b4f1(0x195))/0xa*(-parseInt(_0x25b4f1(0x193))/0xb);if(_0x5685f0===_0x5d976c)break;else _0x287291['push'](_0x287291['shift']());}catch(_0x5ed41a){_0x287291['push'](_0x287291['shift']());}}}(a278_0xf1c4,0xe9ebe));function a278_0x79e7(_0x38358a,_0x1b7d4a){_0x38358a=_0x38358a-0x190;const _0xf1c41b=a278_0xf1c4();let _0x79e799=_0xf1c41b[_0x38358a];return _0x79e799;}export const RABETBASE_OUTPUT_FORMAT_VALUES=[a278_0x528fc1(0x19b),a278_0x528fc1(0x196),a278_0x528fc1(0x19a)];function a278_0xf1c4(){const _0xa01a39=['43348YJorYd','5630485xInZwd','compress','json','625358iDNSea','9mpQWps','743424lmCbVC','507HeMYmr','5vbEqgs','22396nvuOgI','7012856aIuFTl','13170WtKCea','pretty','242750vkRYFR'];a278_0xf1c4=function(){return _0xa01a39;};return a278_0xf1c4();}
|
package/lib/constant/paths.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a279_0x13a6(_0x444e2c,_0x4a533f){_0x444e2c=_0x444e2c-0x86;const _0x5e86c5=a279_0x5e86();let _0x13a63d=_0x5e86c5[_0x444e2c];return _0x13a63d;}const a279_0x3a2977=a279_0x13a6;(function(_0x52bd6d,_0x575e77){const _0x1f9c3d=a279_0x13a6,_0x4e2d58=_0x52bd6d();while(!![]){try{const _0x4d80ba=-parseInt(_0x1f9c3d(0x90))/0x1*(-parseInt(_0x1f9c3d(0x8b))/0x2)+-parseInt(_0x1f9c3d(0x92))/0x3*(-parseInt(_0x1f9c3d(0x8a))/0x4)+parseInt(_0x1f9c3d(0x8d))/0x5*(parseInt(_0x1f9c3d(0x91))/0x6)+-parseInt(_0x1f9c3d(0x8c))/0x7*(parseInt(_0x1f9c3d(0x8f))/0x8)+-parseInt(_0x1f9c3d(0x86))/0x9+-parseInt(_0x1f9c3d(0x89))/0xa+parseInt(_0x1f9c3d(0x87))/0xb*(-parseInt(_0x1f9c3d(0x8e))/0xc);if(_0x4d80ba===_0x575e77)break;else _0x4e2d58['push'](_0x4e2d58['shift']());}catch(_0x2a11a5){_0x4e2d58['push'](_0x4e2d58['shift']());}}}(a279_0x5e86,0xe31fd));function a279_0x5e86(){const _0x4d3ac6=['2526IaVIWh','12aTehny','13552191HpqXPP','22mRFgEN','./src/api','3312220yixehI','201368YyLCGI','12DrlDVI','935431cNnXXW','17845daqZiP','1918308opXUSm','24wwfVjJ','297337BaOghy'];a279_0x5e86=function(){return _0x4d3ac6;};return a279_0x5e86();}export const DEFAULT_API_DIR=a279_0x3a2977(0x88);
|
package/lib/constant/region.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x47251a,_0x35c52e){const _0xeb6f09=a280_0x3a0b,_0x15055a=_0x47251a();while(!![]){try{const _0x558856=-parseInt(_0xeb6f09(0xb7))/0x1*(-parseInt(_0xeb6f09(0xb4))/0x2)+parseInt(_0xeb6f09(0xb1))/0x3+-parseInt(_0xeb6f09(0xb8))/0x4+-parseInt(_0xeb6f09(0xb3))/0x5+-parseInt(_0xeb6f09(0xb5))/0x6*(parseInt(_0xeb6f09(0xb0))/0x7)+parseInt(_0xeb6f09(0xae))/0x8*(parseInt(_0xeb6f09(0xaf))/0x9)+parseInt(_0xeb6f09(0xb6))/0xa*(parseInt(_0xeb6f09(0xac))/0xb);if(_0x558856===_0x35c52e)break;else _0x15055a['push'](_0x15055a['shift']());}catch(_0x53a195){_0x15055a['push'](_0x15055a['shift']());}}}(a280_0x3f12,0xa66c0));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;export const DEFAULT_LOVRABET_REGION=DEFAULT_REGION;export function isLovrabetRegion(_0xd7b424){const _0x1ff006=a280_0x3a0b;return typeof _0xd7b424===_0x1ff006(0xb2)&&LOVRABET_REGION_VALUES[_0x1ff006(0xad)](_0xd7b424);}function a280_0x3f12(){const _0x473b2f=['2LNccrH','2680752WGeOKX','13275590ZBwgGL','416349stiAvA','3274260Xvyucy','22YqQUXe','includes','48DxiaPB','39870ZmPkFM','21aZPqaj','3217245JhiTjs','string','6649285kSFsvW'];a280_0x3f12=function(){return _0x473b2f;};return a280_0x3f12();}export function isEnabledLovrabetRegion(_0x18cf60){const _0x4fdf93=a280_0x3a0b;return typeof _0x18cf60===_0x4fdf93(0xb2)&&ENABLED_LOVRABET_REGION_VALUES[_0x4fdf93(0xad)](_0x18cf60);}function a280_0x3a0b(_0x46cdf5,_0x1d48aa){_0x46cdf5=_0x46cdf5-0xac;const _0x3f1221=a280_0x3f12();let _0x3a0b6e=_0x3f1221[_0x46cdf5];return _0x3a0b6e;}export function normalizeLovrabetRegion(_0x2a7b5d){if(typeof _0x2a7b5d!=='string')return undefined;const _0xd6933f=REGION_ALIASES[_0x2a7b5d]??_0x2a7b5d;return isLovrabetRegion(_0xd6933f)?_0xd6933f:undefined;}export function isInvalidLovrabetRegion(_0x2e102a){return _0x2e102a!==undefined&&_0x2e102a!==null&&_0x2e102a!==''&&normalizeLovrabetRegion(_0x2e102a)===undefined;}
|
package/lib/constant/risk.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a281_0x5490d2=a281_0x8d9d;(function(_0x231f6c,_0x5a9d83){const _0x56e110=a281_0x8d9d,_0x3fccce=_0x231f6c();while(!![]){try{const _0x57d88f=parseInt(_0x56e110(0xd5))/0x1+-parseInt(_0x56e110(0xd8))/0x2+parseInt(_0x56e110(0xda))/0x3*(-parseInt(_0x56e110(0xdf))/0x4)+parseInt(_0x56e110(0xd9))/0x5+-parseInt(_0x56e110(0xdc))/0x6*(parseInt(_0x56e110(0xd4))/0x7)+-parseInt(_0x56e110(0xd6))/0x8+-parseInt(_0x56e110(0xde))/0x9*(-parseInt(_0x56e110(0xdd))/0xa);if(_0x57d88f===_0x5a9d83)break;else _0x3fccce['push'](_0x3fccce['shift']());}catch(_0x5cec9d){_0x3fccce['push'](_0x3fccce['shift']());}}}(a281_0x49b6,0xafdfa));export const RISK_LEVEL_VALUES=['read',a281_0x5490d2(0xdb),a281_0x5490d2(0xd7)];function a281_0x8d9d(_0xa1f332,_0x42adce){_0xa1f332=_0xa1f332-0xd4;const _0x49b6d0=a281_0x49b6();let _0x8d9d1=_0x49b6d0[_0xa1f332];return _0x8d9d1;}function a281_0x49b6(){const _0x3d24d6=['14wOKXbU','792483dwcoaL','7964512FDnJpx','high-risk-write','2122210rAPCjq','2295520kCilAv','4179sNrdgF','write','3057966qfayEu','12690TqVkah','22563anEfNY','1828EEgAfP'];a281_0x49b6=function(){return _0x3d24d6;};return a281_0x49b6();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a282_0x4aa6(_0x566a8c,_0x2be307){_0x566a8c=_0x566a8c-0x1be;const _0x263c2e=a282_0x263c();let _0x4aa6dc=_0x263c2e[_0x566a8c];return _0x4aa6dc;}(function(_0x28b5ad,_0x3751d5){const _0x30f0ed=a282_0x4aa6,_0x49f84f=_0x28b5ad();while(!![]){try{const _0x509240=-parseInt(_0x30f0ed(0x1c1))/0x1+-parseInt(_0x30f0ed(0x1c3))/0x2*(-parseInt(_0x30f0ed(0x1c9))/0x3)+-parseInt(_0x30f0ed(0x1cb))/0x4+-parseInt(_0x30f0ed(0x1c2))/0x5*(parseInt(_0x30f0ed(0x1c8))/0x6)+-parseInt(_0x30f0ed(0x1cc))/0x7+-parseInt(_0x30f0ed(0x1c0))/0x8+-parseInt(_0x30f0ed(0x1c7))/0x9*(-parseInt(_0x30f0ed(0x1c4))/0xa);if(_0x509240===_0x3751d5)break;else _0x49f84f['push'](_0x49f84f['shift']());}catch(_0x1eea26){_0x49f84f['push'](_0x49f84f['shift']());}}}(a282_0x263c,0x867ff));import{OFFICIAL_ROUTING_PROFILES as a282_0x3a7872,ROUTING_CATALOG_DIGEST}from'../generated/official-routing.js';export const OFFICIAL_ROUTING_PROFILES=a282_0x3a7872;export{ROUTING_CATALOG_DIGEST};function a282_0x263c(){const _0x3444e0=['libraries','2656472yniEfk','633847XGZIVM','1936835sAYqqp','179482PuIKXR','10NemNdh','Official\x20routing\x20for\x20region\x20\x22','\x22\x20is\x20not\x20ready:\x20Lovrabet\x20CDN\x20Domain\x20is\x20not\x20configured.','18732969UYOoXN','6QYMCPv','33yhzmjr','cdn','1492432VbaqCh','5539100BLoOJL','lovrabet'];a282_0x263c=function(){return _0x3444e0;};return a282_0x263c();}export function getOfficialRoutingProfile(_0x67e74b){return OFFICIAL_ROUTING_PROFILES[_0x67e74b];}export function getOfficialRoutingCdn(_0x2d1479){const _0x4aa93a=a282_0x4aa6,_0x4eb34a=getOfficialRoutingProfile(_0x2d1479)[_0x4aa93a(0x1ca)];if(!_0x4eb34a[_0x4aa93a(0x1be)])throw new Error(_0x4aa93a(0x1c5)+_0x2d1479+_0x4aa93a(0x1c6));return{'libraries':_0x4eb34a[_0x4aa93a(0x1bf)],'lovrabet':_0x4eb34a[_0x4aa93a(0x1be)]};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1bc0ca,_0x106b0d){const _0x551fb2=a283_0x1158,_0x116496=_0x1bc0ca();while(!![]){try{const _0x5e0d5a=parseInt(_0x551fb2(0x152))/0x1+-parseInt(_0x551fb2(0x139))/0x2*(-parseInt(_0x551fb2(0x13f))/0x3)+-parseInt(_0x551fb2(0x143))/0x4*(parseInt(_0x551fb2(0x133))/0x5)+-parseInt(_0x551fb2(0x153))/0x6+-parseInt(_0x551fb2(0x137))/0x7*(parseInt(_0x551fb2(0x154))/0x8)+-parseInt(_0x551fb2(0x144))/0x9*(parseInt(_0x551fb2(0x14e))/0xa)+parseInt(_0x551fb2(0x14f))/0xb;if(_0x5e0d5a===_0x106b0d)break;else _0x116496['push'](_0x116496['shift']());}catch(_0x3dd28a){_0x116496['push'](_0x116496['shift']());}}}(a283_0x3bc7,0x4906e));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{isDaily,normalizeEnv}from'../constant/env.js';import{normalizeLegacyOutputFormat,riskLevelOrder}from'../framework/types.js';function a283_0x1158(_0x15bcd0,_0x536679){_0x15bcd0=_0x15bcd0-0x133;const _0x3bc742=a283_0x3bc7();let _0x115886=_0x3bc742[_0x15bcd0];return _0x115886;}import{DEFAULT_LOVRABET_REGION,normalizeLovrabetRegion}from'../constant/region.js';import{selectConfiguredRegion}from'../config/region-config.js';function stringConfigValue(_0xfaf67e){const _0x14add3=a283_0x1158;return typeof _0xfaf67e===_0x14add3(0x141)&&_0xfaf67e[_0x14add3(0x15b)]()?_0xfaf67e[_0x14add3(0x15b)]():undefined;}function appProfiles(_0x2c67d9){const _0x5814a2=a283_0x1158;return _0x2c67d9[_0x5814a2(0x142)]&&typeof _0x2c67d9[_0x5814a2(0x142)]===_0x5814a2(0x147)?_0x2c67d9[_0x5814a2(0x142)]:{};}function a283_0x3bc7(){const _0x3596b6=['ENV','FORMAT','locale','source','production','703130ooWyay','4096334NOmtuf','projectConfig','accessKey','379299ZQkReT','1483524zmNxUM','312OjuduL','high-risk-write','pageSize','env','appcode','filter','keys','trim','entries','VERBOSE','projectPath','10mCWANA','RISK_LEVEL','riskLevel','globalConfig','105014RqoMxM','app','54576MnBmys','COOKIE','format','apiDir','value','length','51NFdaVD','PAGE_SIZE','string','apps','27652nrzLtY','9gObdlK','APP','cookie','object','region'];a283_0x3bc7=function(){return _0x3596b6;};return a283_0x3bc7();}function resolveDefaultAppName(_0x1b2784){const _0x5dc90e=a283_0x1158,_0x933c7d=stringConfigValue(_0x1b2784['defaultApp']);if(_0x933c7d)return _0x933c7d;const _0x592e8e=Object[_0x5dc90e(0x15a)](appProfiles(_0x1b2784));return _0x592e8e[_0x5dc90e(0x13e)]===0x1?_0x592e8e[0x0]:undefined;}function resolveTopLevelAppCode(_0x24f50f){const _0x139273=a283_0x1158;return stringConfigValue(_0x24f50f['appcode'])||stringConfigValue(_0x24f50f[_0x139273(0x138)]);}function normalizeRiskCeiling(_0x623511){const _0x21a3a8=a283_0x1158;if(_0x623511===undefined||_0x623511===null)return undefined;if(_0x623511==='read'||_0x623511==='write'||_0x623511===_0x21a3a8(0x155))return _0x623511;return'read';}function resolveRiskCeiling(..._0x5f45a5){const _0x173648=a283_0x1158;let _0x498ba5;for(const _0xbc55ec of _0x5f45a5){const _0x36c1d4=normalizeRiskCeiling(_0xbc55ec);_0x36c1d4&&(!_0x498ba5||riskLevelOrder(_0x36c1d4)<riskLevelOrder(_0x498ba5))&&(_0x498ba5=_0x36c1d4);}return _0x498ba5??DEFAULT_CONFIG_VALUES[_0x173648(0x135)];}export function resolveAppConfig({raw:_0x5a296a,flags:_0x4f62dc,layers:_0x538cbb,readEnv:_0x457256}){const _0x4accc7=a283_0x1158,_0xbd546b=_0x538cbb?.[_0x4accc7(0x150)]??{},_0x477d0a=_0x538cbb?.[_0x4accc7(0x136)]??{},_0x42dbec=!!_0x538cbb?.[_0x4accc7(0x15e)]||Object[_0x4accc7(0x15a)](_0xbd546b)['length']>0x0,_0x4797dc=!_0x42dbec,_0x47ff39=_0x42dbec?resolveDefaultAppName(_0xbd546b):undefined,_0x150738=_0x4797dc?resolveDefaultAppName(_0x477d0a):undefined,_0x59543d=stringConfigValue(_0x4f62dc['app']),_0x26f9ff=_0x457256(_0x4accc7(0x145)),_0x4444eb={};if(_0x5a296a[_0x4accc7(0x142)]&&typeof _0x5a296a[_0x4accc7(0x142)]===_0x4accc7(0x147))for(const [_0x34a6b5,_0x3bf424]of Object[_0x4accc7(0x15c)](_0x5a296a[_0x4accc7(0x142)])){_0x3bf424&&typeof _0x3bf424===_0x4accc7(0x147)&&_0x3bf424[_0x4accc7(0x158)]&&(_0x4444eb[_0x34a6b5]=_0x3bf424);}const _0x9eca58=_0x47ff39||_0x150738||resolveDefaultAppName(_0x5a296a),_0x234675=Object['keys'](_0x4444eb)[_0x4accc7(0x13e)]>0x0,_0x5997e1=_0x59543d||_0x47ff39||_0x26f9ff||_0x150738||_0x9eca58||undefined,_0x3cffe9=stringConfigValue(_0x4f62dc['appcode']),_0x3190e8=_0x3cffe9?Object[_0x4accc7(0x15c)](_0x4444eb)[_0x4accc7(0x159)](([,_0x42af97])=>_0x42af97?.[_0x4accc7(0x158)]===_0x3cffe9):[],_0x5decef=_0x59543d&&_0x4444eb[_0x59543d]?.[_0x4accc7(0x158)]===_0x3cffe9?[_0x59543d,_0x4444eb[_0x59543d]]:undefined,_0x46a885=_0x5decef??(_0x3190e8['length']===0x1?_0x3190e8[0x0]:undefined),_0x1e0cfe=_0x46a885?.[0x0],_0x36b52c=_0x46a885?.[0x1],_0x2d2ef9=_0x3cffe9?_0x1e0cfe:_0x5997e1;let _0x4bd904=_0x2d2ef9&&_0x4444eb[_0x2d2ef9]?_0x4444eb[_0x2d2ef9]:undefined;_0x3cffe9&&_0x36b52c&&(_0x4bd904=_0x36b52c);const _0x41ba79=_0x3cffe9?_0x36b52c??_0x4bd904:_0x4bd904,_0x327089=!_0x59543d&&!_0x47ff39&&_0x26f9ff&&_0x2d2ef9===_0x26f9ff,_0x5da1ac=_0x59543d||(_0x327089?_0x26f9ff:undefined)||(_0x3cffe9?_0x1e0cfe:undefined),_0x485df2=_0x41ba79?.[_0x4accc7(0x158)],_0x118855=_0x42dbec?resolveTopLevelAppCode(_0xbd546b):undefined,_0x5e55c4=_0x4797dc?resolveTopLevelAppCode(_0x477d0a):undefined,_0x3df3fe=_0x59543d||_0x47ff39?_0x485df2:undefined,_0x2eefbd=!_0x59543d&&!_0x47ff39?_0x485df2:undefined,_0x3fbfe6=_0x3cffe9||_0x3df3fe||_0x118855||_0x2eefbd||_0x5e55c4||undefined,_0x4fe652=_0x42dbec?stringConfigValue(_0xbd546b[_0x4accc7(0x157)]):undefined,_0x1729c9=_0x4797dc?stringConfigValue(_0x477d0a[_0x4accc7(0x157)]):undefined,_0x4e854b=_0x4f62dc['env']||_0x41ba79?.['env']||_0x4fe652||_0x457256(_0x4accc7(0x149))||_0x1729c9||_0x5a296a['env']||DEFAULT_CONFIG_VALUES['env'],_0x504d36=_0x41ba79?.['locale']||_0x5a296a[_0x4accc7(0x14b)]||DEFAULT_CONFIG_VALUES['locale'],_0x153370=_0x457256(_0x4accc7(0x13a))||_0x41ba79?.['cookie']||_0x5a296a[_0x4accc7(0x146)]||undefined,_0x4b0eb9=_0x457256('ACCESS_KEY')||_0x41ba79?.[_0x4accc7(0x151)]||_0x5a296a[_0x4accc7(0x151)]||undefined,_0x3437df=_0x4f62dc[_0x4accc7(0x13b)]||_0x457256(_0x4accc7(0x14a))||_0x41ba79?.['format']||_0x5a296a['format'],_0x1bb3a2=normalizeLegacyOutputFormat(_0x3437df),_0x9557d7=_0x457256(_0x4accc7(0x140))||_0x41ba79?.[_0x4accc7(0x156)]||_0x5a296a[_0x4accc7(0x156)],_0x17cac0=_0x9557d7?Number(_0x9557d7)||undefined:undefined,_0x3173b1=_0x538cbb?[_0x538cbb['globalConfig'][_0x4accc7(0x135)],_0x538cbb[_0x4accc7(0x150)][_0x4accc7(0x135)]]:[_0x5a296a[_0x4accc7(0x135)]],_0x219d88=resolveRiskCeiling(..._0x3173b1,_0x41ba79?.[_0x4accc7(0x135)]),_0x5b319c=resolveRiskCeiling(_0x219d88,_0x457256(_0x4accc7(0x134))),_0x3823f5=_0x457256(_0x4accc7(0x15d)),_0x3e554b=_0x3823f5==='1'||_0x3823f5==='true',_0xca5b53=_0x41ba79?.[_0x4accc7(0x13c)]||_0x5a296a[_0x4accc7(0x13c)]||DEFAULT_CONFIG_VALUES[_0x4accc7(0x13c)],_0x2ca645=selectConfiguredRegion({'appRegion':_0x41ba79?.[_0x4accc7(0x148)],'projectRegion':_0x42dbec?_0xbd546b[_0x4accc7(0x148)]:undefined,'globalRegion':_0x42dbec||_0x4797dc?_0x477d0a[_0x4accc7(0x148)]:undefined,'mergedRegion':_0x5a296a[_0x4accc7(0x148)]}),_0x1909f2=normalizeLovrabetRegion(_0x2ca645[_0x4accc7(0x13d)])??DEFAULT_LOVRABET_REGION,_0x566259=isDaily(normalizeEnv(String(_0x4e854b)))?'daily':_0x4accc7(0x14d);return{'appCode':typeof _0x3fbfe6===_0x4accc7(0x141)&&_0x3fbfe6[_0x4accc7(0x15b)]()?_0x3fbfe6[_0x4accc7(0x15b)]():undefined,'region':_0x1909f2,'regionConfiguredValue':_0x2ca645['value'],'regionSource':_0x2ca645[_0x4accc7(0x14c)],'env':_0x566259,'locale':_0x504d36,'cookie':_0x153370,'accessKey':_0x4b0eb9,'format':_0x1bb3a2,'pageSize':_0x17cac0,'riskLevel':_0x5b319c,'verbose':_0x3e554b,'apiDir':_0xca5b53,'apps':_0x4444eb,'defaultApp':_0x9eca58,'currentApp':_0x234675?_0x2d2ef9:undefined,'explicitAppName':_0x5da1ac};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a284_0x2756(){const _0x445e5a=['30UkFncw','1420460IevjEo','565980BxIhgZ','5426112ijkMTb','18qtaYqJ','authRequired','cookie','4863330tAXiOR','21mkuyNT','319iMuHZU','../auth/get-cookie.js','4335507DgnFfq','321uAepWN','3130iMAybT','1895144GjuBYU'];a284_0x2756=function(){return _0x445e5a;};return a284_0x2756();}(function(_0x1eaad3,_0x304a50){const _0x4284f2=a284_0x1578,_0x352e9a=_0x1eaad3();while(!![]){try{const _0x3d1c60=parseInt(_0x4284f2(0x75))/0x1*(parseInt(_0x4284f2(0x76))/0x2)+parseInt(_0x4284f2(0x74))/0x3+-parseInt(_0x4284f2(0x7b))/0x4+parseInt(_0x4284f2(0x79))/0x5*(parseInt(_0x4284f2(0x7c))/0x6)+parseInt(_0x4284f2(0x71))/0x7*(-parseInt(_0x4284f2(0x77))/0x8)+parseInt(_0x4284f2(0x70))/0x9*(parseInt(_0x4284f2(0x78))/0xa)+parseInt(_0x4284f2(0x72))/0xb*(-parseInt(_0x4284f2(0x7a))/0xc);if(_0x3d1c60===_0x304a50)break;else _0x352e9a['push'](_0x352e9a['shift']());}catch(_0xc5b91a){_0x352e9a['push'](_0x352e9a['shift']());}}}(a284_0x2756,0xf0b48));import{getIsSessionValid}from'../auth/is-session-valid.js';import{CliErrors}from'../errors.js';function a284_0x1578(_0x2eb74e,_0x4b1539){_0x2eb74e=_0x2eb74e-0x70;const _0x2756b0=a284_0x2756();let _0x15780e=_0x2756b0[_0x2eb74e];return _0x15780e;}export async function buildAuth(_0x343515){const _0x977be5=a284_0x1578,{getCookie:_0x35d379}=await import(_0x977be5(0x73)),_0x52e06e=_0x343515[_0x977be5(0x7e)]||_0x35d379(),_0x2939f6=_0x52e06e?await getIsSessionValid():![];return{'cookie':_0x52e06e,'isLoggedIn':_0x2939f6,async 'getOrLogin'(){const _0x207c9a=_0x977be5;if(_0x52e06e&&_0x2939f6)return _0x52e06e;throw CliErrors[_0x207c9a(0x7d)]();}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a285_0x21ebf8=a285_0x6349;(function(_0x42816e,_0x368595){const _0x2b1e86=a285_0x6349,_0x406732=_0x42816e();while(!![]){try{const _0x275ac0=parseInt(_0x2b1e86(0x173))/0x1+parseInt(_0x2b1e86(0x16d))/0x2+-parseInt(_0x2b1e86(0x165))/0x3+parseInt(_0x2b1e86(0x14c))/0x4+parseInt(_0x2b1e86(0x159))/0x5+parseInt(_0x2b1e86(0x14e))/0x6*(-parseInt(_0x2b1e86(0x151))/0x7)+-parseInt(_0x2b1e86(0x16a))/0x8;if(_0x275ac0===_0x368595)break;else _0x406732['push'](_0x406732['shift']());}catch(_0x26b885){_0x406732['push'](_0x406732['shift']());}}}(a285_0x1d05,0xbe61d));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_0x21ebf8(0x167);export const CONFIG_NAMES=[NEW_CONFIG_NAME];const normalizedWriteCache=new Map();function a285_0x1d05(){const _0x3f32f5=['.rabetbase.json','routing','.tmp','3975616zmxGIO','error','apiDir','2582728mdnBnQ','format','skillDomain','locale','parse','kbServiceDomain','365910eXcVfJ','silent','cwd','utf8','pageSize','\x20config\x20file\x20ignored\x20(invalid\x20JSON\x20or\x20unreadable):\x20','config','Global','length','set','data','inherit','message','migrated','accessKey','missing','4063616SbhsXD','empty','44868LsGtvs','cookie','apps','161oGsFoB','stringify','warn','localDomain','kbDomain','appDomain','object','riskLevel','1564745lSbWlV','trim','defaultApp','userDomain','appcode','status','\x0a\x20\x20','get','certificateDomain','keys','app','env','4612128regXAv','runtimeDomain'];a285_0x1d05=function(){return _0x3f32f5;};return a285_0x1d05();}export function resolveConfigPath(_0x83ccc8){for(const _0x4d293 of CONFIG_NAMES){const _0x3c6bdc=resolve(_0x83ccc8,_0x4d293);if(existsSync(_0x3c6bdc))return _0x3c6bdc;}return undefined;}export function findProjectRootDirectory(_0x2a26ab=process[a285_0x21ebf8(0x13e)]()){let _0xb704b3=resolve(_0x2a26ab);const {root:_0x4b0fa5}=parse(_0xb704b3),_0x43018f=homedir();while(!![]){if(resolveConfigPath(_0xb704b3)){if(_0xb704b3===_0x43018f)break;return _0xb704b3;}if(_0xb704b3===_0x4b0fa5||_0xb704b3===_0x43018f)break;const _0x25e048=dirname(_0xb704b3);if(_0x25e048===_0xb704b3)break;_0xb704b3=_0x25e048;}return resolve(_0x2a26ab);}export function getProjectConfigPath(){const _0x4d9d73=a285_0x21ebf8;return resolveConfigPath(process[_0x4d9d73(0x13e)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function isInProject(){return!!getProjectConfigPath();}export function inspectCliConfigJsonFile(_0x34b9e4){const _0x33e3fb=a285_0x21ebf8;if(!existsSync(_0x34b9e4))return{'status':_0x33e3fb(0x14b)};try{const _0x3ecd3a=readFileSync(_0x34b9e4,{'encoding':_0x33e3fb(0x13f)});if(!_0x3ecd3a?.['trim']())return{'status':_0x33e3fb(0x14d)};const _0x250702=JSON[_0x33e3fb(0x171)](_0x3ecd3a);return{'status':'ok','data':_0x250702};}catch(_0x4f8c89){return{'status':_0x33e3fb(0x16b),'message':_0x4f8c89 instanceof Error?_0x4f8c89[_0x33e3fb(0x148)]:String(_0x4f8c89)};}}function parseCliConfigJsonFile(_0x5b0b48,_0x1b015f,_0x352c83){const _0x57b81d=a285_0x21ebf8,_0x4e435f=inspectCliConfigJsonFile(_0x5b0b48);if(_0x4e435f[_0x57b81d(0x15e)]===_0x57b81d(0x14b)||_0x4e435f[_0x57b81d(0x15e)]===_0x57b81d(0x14d))return{};if(_0x4e435f['status']==='ok')return _0x4e435f[_0x57b81d(0x146)];return _0x1b015f===_0x57b81d(0x153)&&_0x352c83&&console[_0x57b81d(0x16b)](CLI_BIN_NAME+':\x20'+_0x352c83+_0x57b81d(0x141)+_0x5b0b48+_0x57b81d(0x15f)+_0x4e435f[_0x57b81d(0x148)]),{};}function normalizeLegacyConfigShape(_0x8cc412){const _0x5aae26=a285_0x21ebf8;if(!_0x8cc412||typeof _0x8cc412!==_0x5aae26(0x157))return{'config':{},'migrated':![]};const _0x32c029={..._0x8cc412},_0x296a3c=_0x32c029[_0x5aae26(0x150)]&&typeof _0x32c029[_0x5aae26(0x150)]===_0x5aae26(0x157)?{..._0x32c029[_0x5aae26(0x150)]}:{},_0x5b29b3=Object[_0x5aae26(0x162)](_0x296a3c)['length'],_0x1de1a4=_0x32c029['appcode']||_0x32c029[_0x5aae26(0x163)];let _0x186aa4=![];if(_0x1de1a4&&_0x5b29b3===0x0){const _0x17efa0=typeof _0x32c029[_0x5aae26(0x15b)]==='string'&&_0x32c029[_0x5aae26(0x15b)][_0x5aae26(0x15a)]()?_0x32c029[_0x5aae26(0x15b)]:String(_0x1de1a4)['trim']();_0x296a3c[_0x17efa0]={'appcode':String(_0x1de1a4)[_0x5aae26(0x15a)](),..._0x32c029[_0x5aae26(0x164)]!=null?{'env':_0x32c029[_0x5aae26(0x164)]}:{},..._0x32c029[_0x5aae26(0x16c)]!=null?{'apiDir':_0x32c029[_0x5aae26(0x16c)]}:{},..._0x32c029[_0x5aae26(0x14f)]!=null?{'cookie':_0x32c029[_0x5aae26(0x14f)]}:{},..._0x32c029[_0x5aae26(0x14a)]!=null?{'accessKey':_0x32c029[_0x5aae26(0x14a)]}:{},..._0x32c029[_0x5aae26(0x16e)]!=null?{'format':_0x32c029['format']}:{},..._0x32c029[_0x5aae26(0x140)]!=null?{'pageSize':_0x32c029['pageSize']}:{},..._0x32c029[_0x5aae26(0x158)]!=null?{'riskLevel':_0x32c029[_0x5aae26(0x158)]}:{},..._0x32c029[_0x5aae26(0x170)]!=null?{'locale':_0x32c029[_0x5aae26(0x170)]}:{}},_0x32c029['apps']=_0x296a3c,delete _0x32c029[_0x5aae26(0x15b)],_0x186aa4=!![];}return(_0x5aae26(0x15d)in _0x32c029||_0x5aae26(0x163)in _0x32c029)&&(delete _0x32c029[_0x5aae26(0x15d)],delete _0x32c029[_0x5aae26(0x163)],_0x186aa4=!![]),{'config':_0x32c029,'migrated':_0x186aa4};}function writeNormalizedConfigIfNeeded(_0x4476e3,_0x1cf2c7){const _0x24ed2a=a285_0x21ebf8,_0x35e6e1=JSON[_0x24ed2a(0x152)](normalizeConfigForWrite(_0x1cf2c7),null,0x2)+'\x0a';if(normalizedWriteCache[_0x24ed2a(0x160)](_0x4476e3)===_0x35e6e1)return;writeConfigFile(_0x4476e3,_0x1cf2c7),normalizedWriteCache[_0x24ed2a(0x145)](_0x4476e3,_0x35e6e1);}function parseAndNormalizeConfig(_0x2faabe,_0x9a00fb,_0x5bba60){const _0x307a60=a285_0x21ebf8,_0x16d401=parseCliConfigJsonFile(_0x2faabe,_0x9a00fb,_0x5bba60),_0x187a67=normalizeLegacyConfigShape(_0x16d401);if(_0x187a67[_0x307a60(0x149)])try{writeNormalizedConfigIfNeeded(_0x2faabe,_0x187a67['config']);}catch{}return _0x187a67[_0x307a60(0x142)];}export function loadRawConfigLayers(_0xd0dfa2){const _0x7ac28c=a285_0x21ebf8;let _0x1a3dc0={},_0x6459a4={};const _0x2362c0=resolveConfigPath(homedir());_0x2362c0&&(_0x1a3dc0=parseAndNormalizeConfig(_0x2362c0,_0x7ac28c(0x153),_0x7ac28c(0x143)));const _0x49ef7c=_0xd0dfa2??findProjectRootDirectory(),_0x12f22f=resolveConfigPath(_0x49ef7c);return _0x12f22f&&(_0x6459a4=parseAndNormalizeConfig(_0x12f22f,'warn','Project')),{'globalPath':_0x2362c0,'projectPath':_0x12f22f,'globalConfig':_0x1a3dc0,'projectConfig':_0x6459a4};}const INHERIT_WHITELIST=[a285_0x21ebf8(0x14f),a285_0x21ebf8(0x14a),a285_0x21ebf8(0x170),a285_0x21ebf8(0x16e),a285_0x21ebf8(0x158),a285_0x21ebf8(0x140),'region',a285_0x21ebf8(0x168),a285_0x21ebf8(0x15c),'apiDomain',a285_0x21ebf8(0x166),a285_0x21ebf8(0x16f),a285_0x21ebf8(0x155),a285_0x21ebf8(0x172),a285_0x21ebf8(0x156),a285_0x21ebf8(0x154),a285_0x21ebf8(0x161)];export function mergeRawConfigLayers(_0x32aef2){const _0x2cbcd8=a285_0x21ebf8,{globalConfig:_0x18271a,projectConfig:_0x1aa91f}=_0x32aef2,_0x49daae=!!_0x32aef2['projectPath']||Object['keys'](_0x1aa91f)[_0x2cbcd8(0x144)]>0x0;if(!_0x49daae)return mergeGlobalOnly(_0x18271a);return mergeProjectFirst(_0x18271a,_0x1aa91f);}function mergeGlobalOnly(_0x7eacc7){const _0x49541c=a285_0x21ebf8,_0x4442a0={..._0x7eacc7};delete _0x4442a0[_0x49541c(0x147)];const _0x53511c=_0x7eacc7[_0x49541c(0x150)]&&typeof _0x7eacc7[_0x49541c(0x150)]===_0x49541c(0x157)?_0x7eacc7[_0x49541c(0x150)]:{};if(Object['keys'](_0x53511c)[_0x49541c(0x144)]>0x0)_0x4442a0[_0x49541c(0x150)]=_0x53511c;if(_0x7eacc7[_0x49541c(0x15b)])_0x4442a0[_0x49541c(0x15b)]=_0x7eacc7[_0x49541c(0x15b)];return _0x4442a0;}function mergeProjectFirst(_0x4f781d,_0x48679c){const _0x6d4e46=a285_0x21ebf8,_0xaf8af9={..._0x48679c};delete _0xaf8af9['inherit'];for(const _0x13e2d6 of INHERIT_WHITELIST){!(_0x13e2d6 in _0xaf8af9)&&_0x13e2d6 in _0x4f781d&&(_0xaf8af9[_0x13e2d6]=_0x4f781d[_0x13e2d6]);}const _0x3785ac=_0x48679c[_0x6d4e46(0x150)]&&typeof _0x48679c[_0x6d4e46(0x150)]==='object'?_0x48679c[_0x6d4e46(0x150)]:{};return Object[_0x6d4e46(0x162)](_0x3785ac)[_0x6d4e46(0x144)]>0x0?_0xaf8af9[_0x6d4e46(0x150)]=_0x3785ac:delete _0xaf8af9[_0x6d4e46(0x150)],_0x6d4e46(0x15b)in _0x48679c?_0xaf8af9[_0x6d4e46(0x15b)]=_0x48679c[_0x6d4e46(0x15b)]:delete _0xaf8af9[_0x6d4e46(0x15b)],_0xaf8af9;}function a285_0x6349(_0x42bf76,_0x55d450){_0x42bf76=_0x42bf76-0x13d;const _0x1d0511=a285_0x1d05();let _0x6349a7=_0x1d0511[_0x42bf76];return _0x6349a7;}export function readRawConfigWithLayers(_0x3098f9){const _0x1802d4=loadRawConfigLayers(_0x3098f9);return{'config':mergeRawConfigLayers(_0x1802d4),'layers':_0x1802d4};}export function readRawConfig(_0x3d4168){return mergeRawConfigLayers(loadRawConfigLayers(_0x3d4168));}export function readConfigFile(_0x343649){const _0x1516aa=a285_0x21ebf8;return parseAndNormalizeConfig(_0x343649,_0x1516aa(0x13d));}export function writeConfigFile(_0x37d4ba,_0x57cc31){const _0xe36254=a285_0x21ebf8,_0x42f977=dirname(_0x37d4ba);!existsSync(_0x42f977)&&mkdirSync(_0x42f977,{'recursive':!![]});const _0x940b6e=_0x37d4ba+_0xe36254(0x169);try{const _0xbb4f96=normalizeConfigForWrite(_0x57cc31);writeFileSync(_0x940b6e,JSON['stringify'](_0xbb4f96,null,0x2)+'\x0a',{'encoding':_0xe36254(0x13f),'mode':0x180}),renameSync(_0x940b6e,_0x37d4ba);}catch(_0x3bcd65){try{unlinkSync(_0x940b6e);}catch{}throw _0x3bcd65;}}export function resolveWriteConfigPath(_0x3f35ae){const _0x1af8e4=_0x3f35ae==='project'?process['cwd']():homedir(),_0x32331e=resolveConfigPath(_0x1af8e4);return _0x32331e??resolve(_0x1af8e4,NEW_CONFIG_NAME);}
|
package/lib/context.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a285_0x1bd4f0=a285_0x3b8b;(function(_0x5540e9,_0x3ece0e){const _0x86eef1=a285_0x3b8b,_0x2563f1=_0x5540e9();while(!![]){try{const _0x108c21=-parseInt(_0x86eef1(0x1f6))/0x1*(parseInt(_0x86eef1(0x1fe))/0x2)+parseInt(_0x86eef1(0x1d1))/0x3+-parseInt(_0x86eef1(0x1ee))/0x4+-parseInt(_0x86eef1(0x1e6))/0x5+parseInt(_0x86eef1(0x1d0))/0x6*(-parseInt(_0x86eef1(0x1ec))/0x7)+parseInt(_0x86eef1(0x20f))/0x8*(-parseInt(_0x86eef1(0x1fc))/0x9)+parseInt(_0x86eef1(0x203))/0xa;if(_0x108c21===_0x3ece0e)break;else _0x2563f1['push'](_0x2563f1['shift']());}catch(_0x339719){_0x2563f1['push'](_0x2563f1['shift']());}}}(a285_0x12b8,0x814a8));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';function a285_0x12b8(){const _0x55e830=['app\x20profile\x20\x22','skillDomain','5618454OShEkZ','1049181bpmugJ','join','setLogPath','routingConfig','setRawCommand','projectConfig','userDomain','config','agentDomain','some','regionSource','apiDomain','cwd','entries','skillHubDomain','./utils/is-non-interactive.js','kbServiceDomain','daily','routing','region','runtimeDomain','1621840RgJExY','replace','project','values','template_base_url','kbDomain','7ROYuHL','trim','2691260tdYvyc','currentApp','global\x20Rabetbase\x20configuration','certificateDomain','project\x20Rabetbase\x20configuration','apiGroup','argv','production','24147SFMKqJ','string','keys','targetEnv','cdn','hasOwnProperty','9LjlaAS','globalConfig','50spzIHp','global','appDomain','env','merged','36493970pWczkj','length','name','platformDomain','object','prototype','map','./constant/domain.js','slice','appcode','Rabetbase\x20configuration','https://g.lovrabet.com/dist/lovrabet-skill','7458248naPnQG','apps','apiDir','raw','call','app','domains','filePath','localDomain','defaultApp'];a285_0x12b8=function(){return _0x55e830;};return a285_0x12b8();}function a285_0x3b8b(_0x9a06d9,_0x477bab){_0x9a06d9=_0x9a06d9-0x1cd;const _0x12b8e4=a285_0x12b8();let _0x3b8bf5=_0x12b8e4[_0x9a06d9];return _0x3b8bf5;}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(_0x5e9685){return process.env[`RABETBASE_${_0x5e9685}`]||process.env[`LOVRABET_${_0x5e9685}`]||undefined;}function optionalString(_0x5b4a6f){const _0x19519a=a285_0x3b8b;return typeof _0x5b4a6f===_0x19519a(0x1f7)&&_0x5b4a6f[_0x19519a(0x1ed)]()?_0x5b4a6f[_0x19519a(0x1ed)]():undefined;}export function isRoutingRecoveryService(_0x1cc21b){const _0x4f333c=a285_0x3b8b;return _0x1cc21b===_0x4f333c(0x1d8)||_0x1cc21b==='doctor';}export async function createContext(_0x4a542f){const _0x4c920b=a285_0x3b8b,{config:_0x3b13a1,layers:_0x301b73}=readRawConfigWithLayers(),_0x4e9811=buildConfig(_0x3b13a1,_0x4a542f,_0x301b73);await initGlobalEnvironment(_0x4e9811);const {getUserDomain:_0x13ea15,getApiDomain:_0x1a7e22}=await import(_0x4c920b(0x20a)),_0x491b07={'apiDomain':_0x1a7e22(),'userDomain':_0x13ea15()},_0x111789=await buildAuth(_0x4e9811);logger[_0x4c920b(0x1d3)](process[_0x4c920b(0x1dd)]());const _0x8fdb79=(CLI_BIN_NAME+'\x20'+process[_0x4c920b(0x1f4)][_0x4c920b(0x20b)](0x2)[_0x4c920b(0x1d2)]('\x20'))[_0x4c920b(0x1ed)]();logger[_0x4c920b(0x1d5)](_0x8fdb79);const {isNonInteractive:_0x3a24ad}=await import(_0x4c920b(0x1e0)),_0xe5442b=_0x3a24ad(_0x4a542f);return{'config':_0x4e9811,'auth':_0x111789,'logger':logger,'env':_0x491b07,'nonInteractive':_0xe5442b};}export function buildConfigFromFlags(_0x47c527){const {config:_0x54db97,layers:_0x19c84e}=readRawConfigWithLayers();return buildConfig(_0x54db97,_0x47c527,_0x19c84e);}export async function initGlobalEnvironment(_0x123198){const _0x15e78f=a285_0x3b8b,_0x320a43=_0x123198[_0x15e78f(0x1db)]===_0x15e78f(0x214)&&_0x123198[_0x15e78f(0x1ef)]?'app\x20profile\x20\x22'+_0x123198[_0x15e78f(0x1ef)]+'\x22':_0x123198['regionSource']==='project'?_0x15e78f(0x1f2):_0x123198[_0x15e78f(0x1db)]===_0x15e78f(0x1ff)?_0x15e78f(0x1f0):_0x15e78f(0x20d);await initConfiguredEnvironment({'raw':_0x123198[_0x15e78f(0x212)],'configuredRegion':_0x123198['regionConfiguredValue']??_0x123198[_0x15e78f(0x212)]?.[_0x15e78f(0x1e4)]??_0x123198['region'],'regionLocation':_0x320a43,'targetEnv':_0x123198[_0x15e78f(0x201)]});}async function initConfiguredEnvironment(_0x1ad266){const _0xf868ad=a285_0x3b8b,_0x32d127=resolveConfiguredRegion(_0x1ad266['configuredRegion'],_0x1ad266['regionLocation']),_0x3ef506=resolveEnterpriseRoutingManifest(_0x1ad266[_0xf868ad(0x212)]?.[_0xf868ad(0x1e3)]),_0x17edab={'region':_0x32d127,'apiDomain':_0x3ef506?_0x3ef506[_0xf868ad(0x215)][_0xf868ad(0x1dc)]:optionalString(_0x1ad266['raw']?.['apiDomain']),'userDomain':_0x3ef506?_0x3ef506['domains'][_0xf868ad(0x1d7)]:optionalString(_0x1ad266[_0xf868ad(0x212)]?.[_0xf868ad(0x1d7)]),'runtimeDomain':_0x3ef506?_0x3ef506['domains'][_0xf868ad(0x1e5)]:optionalString(_0x1ad266['raw']?.[_0xf868ad(0x1e5)]),'skillDomain':_0x3ef506?_0x3ef506[_0xf868ad(0x215)][_0xf868ad(0x1cf)]:optionalString(_0x1ad266['raw']?.['skillDomain'])||optionalString(_0x1ad266[_0xf868ad(0x212)]?.[_0xf868ad(0x1df)])||optionalString(_0x1ad266[_0xf868ad(0x212)]?.[_0xf868ad(0x1d9)])||optionalString(_0x1ad266[_0xf868ad(0x212)]?.[_0xf868ad(0x206)]),'kbDomain':_0x3ef506?_0x3ef506['domains'][_0xf868ad(0x1eb)]:optionalString(_0x1ad266['raw']?.[_0xf868ad(0x1eb)])||optionalString(_0x1ad266[_0xf868ad(0x212)]?.[_0xf868ad(0x1d9)])||optionalString(_0x1ad266[_0xf868ad(0x212)]?.[_0xf868ad(0x206)]),'kbServiceDomain':_0x3ef506?_0x3ef506[_0xf868ad(0x215)]['kbServiceDomain']:optionalString(_0x1ad266[_0xf868ad(0x212)]?.[_0xf868ad(0x1e1)]),'appDomain':_0x3ef506?_0x3ef506['domains'][_0xf868ad(0x200)]:optionalString(_0x1ad266[_0xf868ad(0x212)]?.['appDomain']),'localDomain':_0x3ef506?_0x3ef506[_0xf868ad(0x215)][_0xf868ad(0x217)]:optionalString(_0x1ad266[_0xf868ad(0x212)]?.[_0xf868ad(0x217)]),'certificateDomain':_0x3ef506?_0x3ef506[_0xf868ad(0x215)]['certificateDomain']:optionalString(_0x1ad266[_0xf868ad(0x212)]?.[_0xf868ad(0x1f1)]),'cdn':_0x3ef506?.[_0xf868ad(0x1fa)],'allowOfficialKbServiceDefault':!(_0x3ef506!==undefined||[_0xf868ad(0x1dc),_0xf868ad(0x1d7),'runtimeDomain',_0xf868ad(0x1cf),_0xf868ad(0x1df),_0xf868ad(0x1eb),_0xf868ad(0x1e1),_0xf868ad(0x1d9),_0xf868ad(0x206),_0xf868ad(0x200),_0xf868ad(0x217),_0xf868ad(0x1f1)][_0xf868ad(0x1da)](_0x55d486=>Object[_0xf868ad(0x208)]['hasOwnProperty'][_0xf868ad(0x213)](_0x1ad266[_0xf868ad(0x212)]??{},_0x55d486)))},{initEnv:_0xb9f998}=await import('./constant/env.js'),{initDomains:_0x44bc52}=await import(_0xf868ad(0x20a));_0xb9f998(_0x1ad266[_0xf868ad(0x1f9)]),_0x44bc52(_0x17edab);}export async function initMultiAppEnvironment(_0x5894e8){const _0x376287=a285_0x3b8b;await initConfiguredEnvironment({'raw':_0x5894e8[_0x376287(0x1d4)],'configuredRegion':_0x5894e8[_0x376287(0x1e4)],'regionLocation':_0x376287(0x1ce)+_0x5894e8[_0x376287(0x205)]+'\x22','targetEnv':_0x5894e8['env']==='daily'?_0x376287(0x1e2):_0x376287(0x1f5)});}export function getConfigAppCode(_0x559972){const _0x53f8a0=a285_0x3b8b,_0x57448e=readRawConfig(_0x559972);if(_0x57448e['apps']&&typeof _0x57448e[_0x53f8a0(0x210)]==='object'){const _0x573739=_0x57448e[_0x53f8a0(0x1cd)];if(_0x573739)return _0x57448e[_0x53f8a0(0x210)][_0x573739]?.[_0x53f8a0(0x20c)]?String(_0x57448e['apps'][_0x573739][_0x53f8a0(0x20c)])[_0x53f8a0(0x1ed)]():undefined;const _0x3c4be1=Object[_0x53f8a0(0x1e9)](_0x57448e[_0x53f8a0(0x210)]);if(_0x3c4be1[_0x53f8a0(0x204)]===0x1&&_0x3c4be1[0x0]?.[_0x53f8a0(0x20c)])return String(_0x3c4be1[0x0][_0x53f8a0(0x20c)])[_0x53f8a0(0x1ed)]();}const _0x4a46b7=_0x57448e[_0x53f8a0(0x20c)]||_0x57448e[_0x53f8a0(0x214)];if(typeof _0x4a46b7!=='string'||_0x4a46b7[_0x53f8a0(0x1ed)]()==='')return undefined;return _0x4a46b7['trim']();}const CONNECTION_ROUTING_KEYS=[a285_0x1bd4f0(0x1e3),a285_0x1bd4f0(0x1dc),a285_0x1bd4f0(0x1d7),a285_0x1bd4f0(0x1e5),'skillDomain',a285_0x1bd4f0(0x1df),a285_0x1bd4f0(0x1eb),a285_0x1bd4f0(0x1e1),a285_0x1bd4f0(0x1d9),a285_0x1bd4f0(0x206),a285_0x1bd4f0(0x200),a285_0x1bd4f0(0x217),a285_0x1bd4f0(0x1f1)];function withAppProfileRouting(_0x5be3f4,_0x771660){const _0x5da480=a285_0x1bd4f0;if(!_0x771660||_0x771660[_0x5da480(0x1e1)]===undefined)return _0x5be3f4;return{..._0x5be3f4,'kbServiceDomain':_0x771660[_0x5da480(0x1e1)]};}function pickConnectionRoutingConfig(_0x430639,_0x390a30){const _0x2a9f65={'region':_0x390a30};for(const _0x58797e of CONNECTION_ROUTING_KEYS){if(_0x430639[_0x58797e]!==undefined)_0x2a9f65[_0x58797e]=_0x430639[_0x58797e];}return _0x2a9f65;}export function getMultiAppConfigs(_0x415c8a=a285_0x1bd4f0(0x1e8),_0x31f99e){const _0x1ca196=a285_0x1bd4f0,_0x2302b8=loadRawConfigLayers(_0x31f99e);let _0x248685,_0x2547e3;const _0x167abb=mergeRawConfigLayers(_0x2302b8),_0x44a27f=_0x2302b8[_0x1ca196(0x1fd)]['apps']&&typeof _0x2302b8['globalConfig'][_0x1ca196(0x210)]==='object'?_0x2302b8[_0x1ca196(0x1fd)]['apps']:{},_0xdbbdea=_0x2302b8['projectConfig'][_0x1ca196(0x210)]&&typeof _0x2302b8[_0x1ca196(0x1d6)][_0x1ca196(0x210)]==='object'?_0x2302b8['projectConfig'][_0x1ca196(0x210)]:{};_0x415c8a===_0x1ca196(0x202)?(_0x248685={..._0x44a27f,..._0xdbbdea},_0x2547e3=_0x167abb[_0x1ca196(0x1cd)]):(_0x248685=_0x2302b8[_0x1ca196(0x1d6)][_0x1ca196(0x210)],_0x2547e3=_0x2302b8[_0x1ca196(0x1d6)]['defaultApp']);!_0x2547e3&&_0x248685&&typeof _0x248685===_0x1ca196(0x207)&&Object[_0x1ca196(0x1f8)](_0x248685)[_0x1ca196(0x204)]===0x1&&(_0x2547e3=Object[_0x1ca196(0x1f8)](_0x248685)[0x0]);if(!_0x248685||typeof _0x248685!==_0x1ca196(0x207)||Object['keys'](_0x248685)['length']===0x0)return null;return Object[_0x1ca196(0x1de)](_0x248685)[_0x1ca196(0x209)](([_0x491b02,_0x2495f8])=>{const _0x47f2cf=_0x1ca196,_0xbbc10a=_0x415c8a===_0x47f2cf(0x1e8)||Object[_0x47f2cf(0x208)][_0x47f2cf(0x1fb)][_0x47f2cf(0x213)](_0xdbbdea,_0x491b02),_0xc7a1f3=withAppProfileRouting(_0xbbc10a?_0x167abb:_0x2302b8[_0x47f2cf(0x1fd)],_0x2495f8),_0x32921f=resolveEffectiveRegion({'appRegion':_0x2495f8?.[_0x47f2cf(0x1e4)],'projectRegion':_0xbbc10a?_0x2302b8[_0x47f2cf(0x1d6)]['region']:undefined,'globalRegion':_0x2302b8[_0x47f2cf(0x1fd)][_0x47f2cf(0x1e4)],'mergedRegion':_0xc7a1f3[_0x47f2cf(0x1e4)],'appName':_0x491b02});return{'name':_0x491b02,'appcode':_0x2495f8?.[_0x47f2cf(0x20c)]||'','apiGroup':optionalString(_0x2495f8?.[_0x47f2cf(0x1f3)]),'isDefault':_0x491b02===_0x2547e3,'region':_0x32921f['region'],'regionSource':_0x32921f['source'],'env':_0x2495f8?.[_0x47f2cf(0x201)],'apiDir':optionalString(_0x2495f8?.[_0x47f2cf(0x211)])||optionalString(_0xc7a1f3[_0x47f2cf(0x211)]),'cookie':_0x2495f8?.['cookie']||undefined,'routingConfig':pickConnectionRoutingConfig(_0xc7a1f3,_0x32921f[_0x47f2cf(0x1e4)])};})['filter'](_0x3230ef=>_0x3230ef[_0x1ca196(0x20c)]);}export function getTemplateBaseUrl(_0x4a1342){const _0x38ac82=a285_0x1bd4f0,_0x28cc2d=readRawConfig(_0x4a1342);if(_0x28cc2d[_0x38ac82(0x1ea)]&&typeof _0x28cc2d['template_base_url']===_0x38ac82(0x1f7))return _0x28cc2d[_0x38ac82(0x1ea)][_0x38ac82(0x1e7)](/\/$/,'');return _0x38ac82(0x20e);}function buildConfig(_0x4c00cd,_0x23abfb,_0x235b68){const _0x55468c=a285_0x1bd4f0,_0x3c357d=resolveAppConfig({'raw':_0x4c00cd,'flags':_0x23abfb,'layers':_0x235b68,'readEnv':env}),_0x2a36e8=_0x3c357d[_0x55468c(0x1ef)]?_0x3c357d['apps'][_0x3c357d['currentApp']]:undefined;return{..._0x3c357d,'raw':withAppProfileRouting(_0x4c00cd,_0x2a36e8)};}export function resolveApiFilePath(_0x5a6543,_0x1e3817,_0x9d38ec){const _0x246a33=a285_0x1bd4f0;return resolveApiModelSource(_0x5a6543,_0x1e3817,_0x9d38ec)[_0x246a33(0x216)];}
|
|
1
|
+
const a286_0x25fcfd=a286_0x24bc;(function(_0x4e04da,_0x5f20ee){const _0x4f0a3a=a286_0x24bc,_0x48aa56=_0x4e04da();while(!![]){try{const _0x51cf78=-parseInt(_0x4f0a3a(0x83))/0x1*(-parseInt(_0x4f0a3a(0xa3))/0x2)+-parseInt(_0x4f0a3a(0x81))/0x3+parseInt(_0x4f0a3a(0x8a))/0x4*(-parseInt(_0x4f0a3a(0xa6))/0x5)+parseInt(_0x4f0a3a(0x9d))/0x6*(parseInt(_0x4f0a3a(0x8f))/0x7)+-parseInt(_0x4f0a3a(0x6e))/0x8+parseInt(_0x4f0a3a(0x72))/0x9+parseInt(_0x4f0a3a(0xa0))/0xa;if(_0x51cf78===_0x5f20ee)break;else _0x48aa56['push'](_0x48aa56['shift']());}catch(_0x14b949){_0x48aa56['push'](_0x48aa56['shift']());}}}(a286_0x4607,0x66342));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';function a286_0x24bc(_0x224ea9,_0x487a34){_0x224ea9=_0x224ea9-0x69;const _0x460721=a286_0x4607();let _0x24bcf4=_0x460721[_0x224ea9];return _0x24bcf4;}import{resolveEnterpriseRoutingManifest}from'./config/domain-config.js';import{logger}from'./utils/logger.js';import{resolveApiModelSource}from'./api/model-source.js';function a286_0x4607(){const _0x29eb29=['routingConfig','cdn','runtimeDomain','setLogPath','3264632wOmgRr','certificateDomain','./constant/env.js','string','5374116ACkrjR','regionLocation','project\x20Rabetbase\x20configuration','project','some','appDomain','kbDomain','currentApp','merged','global','template_base_url','config','region','slice','configuredRegion','1842555MzzgZg','userDomain','2381PoAwJK','replace','entries','keys','appcode','./constant/domain.js','skillDomain','36huzWTH','prototype','argv','domains','Rabetbase\x20configuration','7PUTSSz','raw','map','app','agentDomain','apiDir','doctor','defaultApp','apiDomain','cwd','platformDomain','apiGroup','trim','env','981006VebDhb','cookie','kbServiceDomain','4314230FTfxoM','app\x20profile\x20\x22','projectConfig','346VNFezp','object','apps','90595daqOBk','filter','globalConfig','setRawCommand','call','regionSource','source','skillHubDomain','length','localDomain'];a286_0x4607=function(){return _0x29eb29;};return a286_0x4607();}export{CONFIG_NAMES,NEW_CONFIG_NAME,findProjectRootDirectory,getGlobalConfigPath,getProjectConfigPath,inspectCliConfigJsonFile,isInProject,loadRawConfigLayers,mergeRawConfigLayers,readConfigFile,readRawConfig,readRawConfigWithLayers,resolveConfigPath,resolveWriteConfigPath,writeConfigFile};function env(_0x307423){return process.env[`RABETBASE_${_0x307423}`]||process.env[`LOVRABET_${_0x307423}`]||undefined;}function optionalString(_0x300710){const _0x2af6a2=a286_0x24bc;return typeof _0x300710===_0x2af6a2(0x71)&&_0x300710[_0x2af6a2(0x9b)]()?_0x300710[_0x2af6a2(0x9b)]():undefined;}export function isRoutingRecoveryService(_0x40d422){const _0x1c43b3=a286_0x24bc;return _0x40d422===_0x1c43b3(0x7d)||_0x40d422===_0x1c43b3(0x95);}export async function createContext(_0xf2dfdc){const _0x38ae32=a286_0x24bc,{config:_0x567d84,layers:_0x25a63f}=readRawConfigWithLayers(),_0x3a499a=buildConfig(_0x567d84,_0xf2dfdc,_0x25a63f);await initGlobalEnvironment(_0x3a499a);const {getUserDomain:_0x24ec02,getApiDomain:_0x4c1679}=await import(_0x38ae32(0x88)),_0x52bd8d={'apiDomain':_0x4c1679(),'userDomain':_0x24ec02()},_0x18cd2d=await buildAuth(_0x3a499a);logger[_0x38ae32(0x6d)](process[_0x38ae32(0x98)]());const _0x379e36=(CLI_BIN_NAME+'\x20'+process[_0x38ae32(0x8c)][_0x38ae32(0x7f)](0x2)['join']('\x20'))[_0x38ae32(0x9b)]();logger[_0x38ae32(0xa9)](_0x379e36);const {isNonInteractive:_0x21bb70}=await import('./utils/is-non-interactive.js'),_0x37429b=_0x21bb70(_0xf2dfdc);return{'config':_0x3a499a,'auth':_0x18cd2d,'logger':logger,'env':_0x52bd8d,'nonInteractive':_0x37429b};}export function buildConfigFromFlags(_0x5ce853){const {config:_0x45f526,layers:_0x4c527b}=readRawConfigWithLayers();return buildConfig(_0x45f526,_0x5ce853,_0x4c527b);}export async function initGlobalEnvironment(_0x115b66){const _0x5a72ac=a286_0x24bc,_0x59b1ef=_0x115b66[_0x5a72ac(0xab)]===_0x5a72ac(0x92)&&_0x115b66[_0x5a72ac(0x79)]?_0x5a72ac(0xa1)+_0x115b66[_0x5a72ac(0x79)]+'\x22':_0x115b66[_0x5a72ac(0xab)]===_0x5a72ac(0x75)?_0x5a72ac(0x74):_0x115b66[_0x5a72ac(0xab)]===_0x5a72ac(0x7b)?'global\x20Rabetbase\x20configuration':_0x5a72ac(0x8e);await initConfiguredEnvironment({'raw':_0x115b66[_0x5a72ac(0x90)],'configuredRegion':_0x115b66['regionConfiguredValue']??_0x115b66[_0x5a72ac(0x90)]?.[_0x5a72ac(0x7e)]??_0x115b66[_0x5a72ac(0x7e)],'regionLocation':_0x59b1ef,'targetEnv':_0x115b66[_0x5a72ac(0x9c)]});}async function initConfiguredEnvironment(_0x1dbd38){const _0xfcec50=a286_0x24bc,_0x15dfa1=resolveConfiguredRegion(_0x1dbd38[_0xfcec50(0x80)],_0x1dbd38[_0xfcec50(0x73)]),_0x400ca4=resolveEnterpriseRoutingManifest(_0x1dbd38['raw']?.['routing']),_0x462210={'region':_0x15dfa1,'apiDomain':_0x400ca4?_0x400ca4['domains']['apiDomain']:optionalString(_0x1dbd38[_0xfcec50(0x90)]?.['apiDomain']),'userDomain':_0x400ca4?_0x400ca4[_0xfcec50(0x8d)][_0xfcec50(0x82)]:optionalString(_0x1dbd38[_0xfcec50(0x90)]?.['userDomain']),'runtimeDomain':_0x400ca4?_0x400ca4[_0xfcec50(0x8d)][_0xfcec50(0x6c)]:optionalString(_0x1dbd38[_0xfcec50(0x90)]?.[_0xfcec50(0x6c)]),'skillDomain':_0x400ca4?_0x400ca4['domains'][_0xfcec50(0x89)]:optionalString(_0x1dbd38[_0xfcec50(0x90)]?.[_0xfcec50(0x89)])||optionalString(_0x1dbd38['raw']?.[_0xfcec50(0xad)])||optionalString(_0x1dbd38['raw']?.['agentDomain'])||optionalString(_0x1dbd38['raw']?.[_0xfcec50(0x99)]),'kbDomain':_0x400ca4?_0x400ca4[_0xfcec50(0x8d)]['kbDomain']:optionalString(_0x1dbd38['raw']?.[_0xfcec50(0x78)])||optionalString(_0x1dbd38[_0xfcec50(0x90)]?.[_0xfcec50(0x93)])||optionalString(_0x1dbd38[_0xfcec50(0x90)]?.[_0xfcec50(0x99)]),'kbServiceDomain':_0x400ca4?_0x400ca4['domains'][_0xfcec50(0x9f)]:optionalString(_0x1dbd38[_0xfcec50(0x90)]?.['kbServiceDomain']),'appDomain':_0x400ca4?_0x400ca4[_0xfcec50(0x8d)][_0xfcec50(0x77)]:optionalString(_0x1dbd38['raw']?.[_0xfcec50(0x77)]),'localDomain':_0x400ca4?_0x400ca4['domains']['localDomain']:optionalString(_0x1dbd38['raw']?.['localDomain']),'certificateDomain':_0x400ca4?_0x400ca4[_0xfcec50(0x8d)][_0xfcec50(0x6f)]:optionalString(_0x1dbd38[_0xfcec50(0x90)]?.['certificateDomain']),'cdn':_0x400ca4?.[_0xfcec50(0x6b)],'allowOfficialKbServiceDefault':!(_0x400ca4!==undefined||[_0xfcec50(0x97),_0xfcec50(0x82),_0xfcec50(0x6c),_0xfcec50(0x89),_0xfcec50(0xad),_0xfcec50(0x78),_0xfcec50(0x9f),_0xfcec50(0x93),_0xfcec50(0x99),_0xfcec50(0x77),_0xfcec50(0x69),_0xfcec50(0x6f)][_0xfcec50(0x76)](_0x67caf7=>Object[_0xfcec50(0x8b)]['hasOwnProperty'][_0xfcec50(0xaa)](_0x1dbd38[_0xfcec50(0x90)]??{},_0x67caf7)))},{initEnv:_0x15973e}=await import(_0xfcec50(0x70)),{initDomains:_0x5620ad}=await import(_0xfcec50(0x88));_0x15973e(_0x1dbd38['targetEnv']),_0x5620ad(_0x462210);}export async function initMultiAppEnvironment(_0x1ff790){const _0x1788e0=a286_0x24bc;await initConfiguredEnvironment({'raw':_0x1ff790[_0x1788e0(0x6a)],'configuredRegion':_0x1ff790[_0x1788e0(0x7e)],'regionLocation':_0x1788e0(0xa1)+_0x1ff790['name']+'\x22','targetEnv':_0x1ff790[_0x1788e0(0x9c)]==='daily'?'daily':'production'});}export function getConfigAppCode(_0xf03c63){const _0x4f3f04=a286_0x24bc,_0x355f8b=readRawConfig(_0xf03c63);if(_0x355f8b[_0x4f3f04(0xa5)]&&typeof _0x355f8b[_0x4f3f04(0xa5)]===_0x4f3f04(0xa4)){const _0x4ebb1e=_0x355f8b[_0x4f3f04(0x96)];if(_0x4ebb1e)return _0x355f8b[_0x4f3f04(0xa5)][_0x4ebb1e]?.[_0x4f3f04(0x87)]?String(_0x355f8b[_0x4f3f04(0xa5)][_0x4ebb1e]['appcode'])[_0x4f3f04(0x9b)]():undefined;const _0x3e62c5=Object['values'](_0x355f8b[_0x4f3f04(0xa5)]);if(_0x3e62c5['length']===0x1&&_0x3e62c5[0x0]?.[_0x4f3f04(0x87)])return String(_0x3e62c5[0x0][_0x4f3f04(0x87)])[_0x4f3f04(0x9b)]();}const _0x2bebcf=_0x355f8b[_0x4f3f04(0x87)]||_0x355f8b['app'];if(typeof _0x2bebcf!==_0x4f3f04(0x71)||_0x2bebcf[_0x4f3f04(0x9b)]()==='')return undefined;return _0x2bebcf[_0x4f3f04(0x9b)]();}const CONNECTION_ROUTING_KEYS=['routing','apiDomain',a286_0x25fcfd(0x82),a286_0x25fcfd(0x6c),a286_0x25fcfd(0x89),a286_0x25fcfd(0xad),a286_0x25fcfd(0x78),a286_0x25fcfd(0x9f),a286_0x25fcfd(0x93),a286_0x25fcfd(0x99),a286_0x25fcfd(0x77),a286_0x25fcfd(0x69),a286_0x25fcfd(0x6f)];function withAppProfileRouting(_0x426494,_0x30f749){if(!_0x30f749||_0x30f749['kbServiceDomain']===undefined)return _0x426494;return{..._0x426494,'kbServiceDomain':_0x30f749['kbServiceDomain']};}function pickConnectionRoutingConfig(_0x28c778,_0x2936d9){const _0x4109e4={'region':_0x2936d9};for(const _0x11ceb2 of CONNECTION_ROUTING_KEYS){if(_0x28c778[_0x11ceb2]!==undefined)_0x4109e4[_0x11ceb2]=_0x28c778[_0x11ceb2];}return _0x4109e4;}export function getMultiAppConfigs(_0x3f6d56=a286_0x25fcfd(0x75),_0x2ed209){const _0x3fc407=a286_0x25fcfd,_0x98685e=loadRawConfigLayers(_0x2ed209);let _0x393168,_0x3e0d58;const _0x2b5f8f=mergeRawConfigLayers(_0x98685e),_0x533880=_0x98685e['globalConfig'][_0x3fc407(0xa5)]&&typeof _0x98685e[_0x3fc407(0xa8)][_0x3fc407(0xa5)]===_0x3fc407(0xa4)?_0x98685e[_0x3fc407(0xa8)]['apps']:{},_0x972c6c=_0x98685e['projectConfig']['apps']&&typeof _0x98685e[_0x3fc407(0xa2)][_0x3fc407(0xa5)]==='object'?_0x98685e[_0x3fc407(0xa2)]['apps']:{};_0x3f6d56===_0x3fc407(0x7a)?(_0x393168={..._0x533880,..._0x972c6c},_0x3e0d58=_0x2b5f8f[_0x3fc407(0x96)]):(_0x393168=_0x98685e['projectConfig'][_0x3fc407(0xa5)],_0x3e0d58=_0x98685e[_0x3fc407(0xa2)][_0x3fc407(0x96)]);!_0x3e0d58&&_0x393168&&typeof _0x393168==='object'&&Object[_0x3fc407(0x86)](_0x393168)[_0x3fc407(0xae)]===0x1&&(_0x3e0d58=Object[_0x3fc407(0x86)](_0x393168)[0x0]);if(!_0x393168||typeof _0x393168!=='object'||Object['keys'](_0x393168)['length']===0x0)return null;return Object[_0x3fc407(0x85)](_0x393168)[_0x3fc407(0x91)](([_0x1bcaa2,_0x2a754e])=>{const _0x54fc85=_0x3fc407,_0x361e10=_0x3f6d56==='project'||Object[_0x54fc85(0x8b)]['hasOwnProperty'][_0x54fc85(0xaa)](_0x972c6c,_0x1bcaa2),_0x28dc66=withAppProfileRouting(_0x361e10?_0x2b5f8f:_0x98685e[_0x54fc85(0xa8)],_0x2a754e),_0x39bcce=resolveEffectiveRegion({'appRegion':_0x2a754e?.[_0x54fc85(0x7e)],'projectRegion':_0x361e10?_0x98685e[_0x54fc85(0xa2)][_0x54fc85(0x7e)]:undefined,'globalRegion':_0x98685e['globalConfig'][_0x54fc85(0x7e)],'mergedRegion':_0x28dc66['region'],'appName':_0x1bcaa2});return{'name':_0x1bcaa2,'appcode':_0x2a754e?.[_0x54fc85(0x87)]||'','apiGroup':optionalString(_0x2a754e?.[_0x54fc85(0x9a)]),'isDefault':_0x1bcaa2===_0x3e0d58,'region':_0x39bcce[_0x54fc85(0x7e)],'regionSource':_0x39bcce[_0x54fc85(0xac)],'env':_0x2a754e?.['env'],'apiDir':optionalString(_0x2a754e?.['apiDir'])||optionalString(_0x28dc66[_0x54fc85(0x94)]),'cookie':_0x2a754e?.[_0x54fc85(0x9e)]||undefined,'routingConfig':pickConnectionRoutingConfig(_0x28dc66,_0x39bcce['region'])};})[_0x3fc407(0xa7)](_0x2a6836=>_0x2a6836[_0x3fc407(0x87)]);}export function getTemplateBaseUrl(_0x4f4b4f){const _0x170639=a286_0x25fcfd,_0x1d025a=readRawConfig(_0x4f4b4f);if(_0x1d025a['template_base_url']&&typeof _0x1d025a[_0x170639(0x7c)]===_0x170639(0x71))return _0x1d025a['template_base_url'][_0x170639(0x84)](/\/$/,'');return'https://g.lovrabet.com/dist/lovrabet-skill';}function buildConfig(_0x52abb3,_0xacd321,_0x339597){const _0x2a1f07=a286_0x25fcfd,_0x58d8d9=resolveAppConfig({'raw':_0x52abb3,'flags':_0xacd321,'layers':_0x339597,'readEnv':env}),_0x1c9206=_0x58d8d9[_0x2a1f07(0x79)]?_0x58d8d9[_0x2a1f07(0xa5)][_0x58d8d9['currentApp']]:undefined;return{..._0x58d8d9,'raw':withAppProfileRouting(_0x52abb3,_0x1c9206)};}export function resolveApiFilePath(_0x2b8d29,_0x981f86,_0x2f7def){return resolveApiModelSource(_0x2b8d29,_0x981f86,_0x2f7def)['filePath'];}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a287_0x37871c=a287_0x4df5;(function(_0x34fdb8,_0x38748e){const _0x45d67e=a287_0x4df5,_0x243e82=_0x34fdb8();while(!![]){try{const _0x256a57=parseInt(_0x45d67e(0xb3))/0x1+parseInt(_0x45d67e(0xb1))/0x2+parseInt(_0x45d67e(0xb5))/0x3*(-parseInt(_0x45d67e(0xa8))/0x4)+-parseInt(_0x45d67e(0xaa))/0x5*(-parseInt(_0x45d67e(0xa5))/0x6)+parseInt(_0x45d67e(0xae))/0x7+parseInt(_0x45d67e(0xb2))/0x8+parseInt(_0x45d67e(0xb7))/0x9*(-parseInt(_0x45d67e(0xbb))/0xa);if(_0x256a57===_0x38748e)break;else _0x243e82['push'](_0x243e82['shift']());}catch(_0x5248fc){_0x243e82['push'](_0x243e82['shift']());}}}(a287_0x1503,0x42150));import{existsSync,readFileSync,realpathSync,statSync}from'node:fs';function a287_0x1503(){const _0xa75f20=['.ts','push','6936380yKogMD','.cts','size','get','length','flags','datasetCode','.cjs','alias','set','tableName','defaultProfile','.js','has','.mts','slice','startsWith','2442756iRLMVc','index','filter','64bOaTij','name','5NTAbtq','.mjs','.tsx','exec','671706QEqagE','utf-8','map','858428Vsfxmz','2768720cUTUbF','67218BABlbh','cwd','71493WnNjVm','stringify','9snkwbl','add'];a287_0x1503=function(){return _0xa75f20;};return a287_0x1503();}function a287_0x4df5(_0x4ef489,_0x4c60fc){_0x4ef489=_0x4ef489-0x98;const _0x15036c=a287_0x1503();let _0x4df59f=_0x15036c[_0x4ef489];return _0x4df59f;}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=[a287_0x37871c(0xb9),a287_0x37871c(0xac),a287_0x37871c(0xa2),'.cts',a287_0x37871c(0xa0),'.jsx',a287_0x37871c(0xab),a287_0x37871c(0x9b)],LOCAL_REEXPORT_RE=/\bexport\s+(?:type\s+)?(?:\{[\s\S]*?\}|\*)\s+from\s*["']([^"']+)["']/g,SOURCE_EXTENSIONS_BY_RUNTIME_EXTENSION={'.js':[a287_0x37871c(0xb9),'.tsx'],'.jsx':[a287_0x37871c(0xac)],'.mjs':[a287_0x37871c(0xa2)],'.cjs':[a287_0x37871c(0xbc)]};function parseApiFile(_0x3539cb){const _0x46746=a287_0x37871c;return parseLegacyApiModels(_0x3539cb)['flatMap'](_0x4f54ca=>_0x4f54ca[_0x46746(0x9c)]?[{'alias':_0x4f54ca[_0x46746(0x9c)],'datasetCode':_0x4f54ca[_0x46746(0x9a)],'tableName':_0x4f54ca[_0x46746(0x9e)],'name':_0x4f54ca[_0x46746(0xa9)]}]:[]);}function isWithinRoot(_0x25bfae,_0x36c5e3){const _0x253919=a287_0x37871c,_0x71fc88=relative(_0x25bfae,_0x36c5e3);return _0x71fc88===''||!_0x71fc88[_0x253919(0xa4)]('..')&&!isAbsolute(_0x71fc88);}function resolveExistingFile(_0x1f6c4a){if(!existsSync(_0x1f6c4a))return undefined;try{return statSync(_0x1f6c4a)['isFile']()?realpathSync(_0x1f6c4a):undefined;}catch{return undefined;}}function reexportCandidatePaths(_0x21992a){const _0xe23460=a287_0x37871c,_0x39c8ca=extname(_0x21992a);if(!_0x39c8ca)return[...SOURCE_FILE_EXTENSIONS[_0xe23460(0xb0)](_0xe20898=>''+_0x21992a+_0xe20898),...SOURCE_FILE_EXTENSIONS[_0xe23460(0xb0)](_0x2137d7=>resolve(_0x21992a,_0xe23460(0xa6)+_0x2137d7))];const _0x1a27ae=SOURCE_EXTENSIONS_BY_RUNTIME_EXTENSION[_0x39c8ca];if(!_0x1a27ae)return[_0x21992a];const _0x413c51=_0x21992a[_0xe23460(0xa3)](0x0,-_0x39c8ca[_0xe23460(0x98)]);return[..._0x1a27ae['map'](_0x12dd6f=>''+_0x413c51+_0x12dd6f),_0x21992a];}function resolveLocalReexport(_0x4bdafa,_0x35c6c7,_0x2265dd){const _0x3b99e4=a287_0x37871c;if(!_0x35c6c7['startsWith']('./')&&!_0x35c6c7[_0x3b99e4(0xa4)]('../'))return undefined;const _0x233970=resolve(dirname(_0x4bdafa),_0x35c6c7);if(!isWithinRoot(_0x2265dd,_0x233970))return undefined;for(const _0x55715f of reexportCandidatePaths(_0x233970)){const _0x46b604=resolveExistingFile(_0x55715f);if(_0x46b604&&isWithinRoot(_0x2265dd,_0x46b604))return _0x46b604;}return undefined;}function parseApiFileTree(_0x43a7a5,_0x5adc88,_0x30f566,_0x4639d6){const _0x3583d5=a287_0x37871c,_0x491769=resolveExistingFile(_0x43a7a5);if(!_0x491769)return[];const _0xf4e4f9=_0x30f566[_0x3583d5(0xbe)](_0x491769);if(_0xf4e4f9!==undefined&&_0xf4e4f9<=_0x4639d6)return[];_0x30f566[_0x3583d5(0x9d)](_0x491769,_0x4639d6);const _0x554935=readFileSync(_0x491769,_0x3583d5(0xaf)),_0x5add3a=parseApiFile(_0x554935);if(_0x4639d6>=MAX_LOCAL_REEXPORT_DEPTH)return _0x5add3a;const _0x18b77b=new RegExp(LOCAL_REEXPORT_RE['source'],LOCAL_REEXPORT_RE[_0x3583d5(0x99)]);let _0x4343cb;while((_0x4343cb=_0x18b77b[_0x3583d5(0xad)](_0x554935))!==null){const _0x5ed842=resolveLocalReexport(_0x491769,_0x4343cb[0x1],_0x5adc88);_0x5ed842&&_0x5add3a[_0x3583d5(0xba)](...parseApiFileTree(_0x5ed842,_0x5adc88,_0x30f566,_0x4639d6+0x1));}return _0x5add3a;}function aliasProjectRoot(_0x58c518){const _0x3485fb=findProjectRootDirectory(dirname(_0x58c518));try{return realpathSync(_0x3485fb);}catch{return _0x3485fb;}}function uniqueAliasEntries(_0x1c880c){const _0x20c3d2=a287_0x37871c,_0x21d7c2=new Set();return _0x1c880c[_0x20c3d2(0xa7)](_0xb401a6=>{const _0x4f423a=_0x20c3d2,_0x2bfb76=JSON[_0x4f423a(0xb6)](_0xb401a6);if(_0x21d7c2[_0x4f423a(0xa1)](_0x2bfb76))return![];return _0x21d7c2[_0x4f423a(0xb8)](_0x2bfb76),!![];});}export function loadAliasMap(_0x14a480,_0x27db32,_0x36c262,_0x5615a4){const _0x430c38=a287_0x37871c,_0x1f1943=resolve(_0x36c262??resolve(process[_0x430c38(0xb4)](),_0x14a480,'api.ts')),_0x4d636e=_0x5615a4?_0x1f1943+'#'+_0x5615a4:_0x1f1943;if(cache[_0x430c38(0xa1)](_0x4d636e))return cache['get'](_0x4d636e);if(!existsSync(_0x1f1943))return cache[_0x430c38(0x9d)](_0x4d636e,[]),[];try{if(_0x1f1943['endsWith'](MODEL_REGISTRY_FILE_NAME)){const _0x269a56=readModelRegistry(_0x1f1943),_0x465bba=_0x5615a4??_0x269a56?.[_0x430c38(0x9f)],_0x18e62c=_0x465bba&&_0x269a56?getProfileModels(_0x269a56,_0x465bba):[],_0x4e0e84=uniqueAliasEntries(_0x18e62c['flatMap'](_0x1b3dbf=>_0x1b3dbf['alias']?[{'alias':_0x1b3dbf[_0x430c38(0x9c)],'datasetCode':_0x1b3dbf['datasetCode'],'tableName':_0x1b3dbf[_0x430c38(0x9e)],'name':_0x1b3dbf[_0x430c38(0xa9)]}]:[]));return cache[_0x430c38(0x9d)](_0x4d636e,_0x4e0e84),_0x4e0e84;}const _0x10b78c=uniqueAliasEntries(parseApiFileTree(_0x1f1943,aliasProjectRoot(_0x1f1943),new Map(),0x0));return cache[_0x430c38(0x9d)](_0x4d636e,_0x10b78c),_0x10b78c;}catch{return cache[_0x430c38(0x9d)](_0x4d636e,[]),[];}}export function resolveAlias(_0x54951f,_0x407e79,_0xe4e7e7,_0x22a691,_0x3f312e){const _0x20d92c=a287_0x37871c;if(!_0x407e79)return undefined;const _0x412d85=loadAliasMap(_0x54951f,_0xe4e7e7,_0x22a691,_0x3f312e),_0x58c20e=new Set(_0x412d85[_0x20d92c(0xa7)](_0x47d16a=>_0x47d16a[_0x20d92c(0x9c)]===_0x407e79)[_0x20d92c(0xb0)](_0x33b832=>_0x33b832['datasetCode']));return _0x58c20e[_0x20d92c(0xbd)]===0x1?[..._0x58c20e][0x0]:undefined;}export function listAliases(_0x399b18,_0x5b9daa,_0x2134d1,_0x31afd7){return loadAliasMap(_0x399b18,_0x5b9daa,_0x2134d1,_0x31afd7);}
|
package/lib/core/api-client.d.ts
CHANGED
|
@@ -1043,7 +1043,7 @@ export interface DbAnalysisStatus {
|
|
|
1043
1043
|
}
|
|
1044
1044
|
/** Runtime role exposed by lovrabet-runtime for approval assignee selection. */
|
|
1045
1045
|
export interface ApprovalRuntimeRole {
|
|
1046
|
-
id: number;
|
|
1046
|
+
id: number | string;
|
|
1047
1047
|
appCode?: string | null;
|
|
1048
1048
|
roleName?: string | null;
|
|
1049
1049
|
roleType?: string | null;
|
|
@@ -1071,7 +1071,7 @@ export interface ApprovalRuntimeRoleMember {
|
|
|
1071
1071
|
}
|
|
1072
1072
|
/** Runtime role and its current members. */
|
|
1073
1073
|
export interface ApprovalRuntimeRoleUsers {
|
|
1074
|
-
id: number;
|
|
1074
|
+
id: number | string;
|
|
1075
1075
|
roleName?: string | null;
|
|
1076
1076
|
roleType?: string | null;
|
|
1077
1077
|
userList?: ApprovalRuntimeRoleMember[] | null;
|
|
@@ -1094,11 +1094,12 @@ export declare function listApprovalRuntimeUsers(appCode: string): Promise<Appro
|
|
|
1094
1094
|
export declare function listApprovalRuntimeRoleUsers(appCode: string): Promise<ApprovalRuntimeRoleUsers[]>;
|
|
1095
1095
|
/** Flow definition returned by SmartFlowController. */
|
|
1096
1096
|
export interface FlowDefinition {
|
|
1097
|
-
id: number;
|
|
1097
|
+
id: number | string;
|
|
1098
1098
|
flowCode?: string | null;
|
|
1099
1099
|
appCode?: string | null;
|
|
1100
1100
|
datasetCode?: string | null;
|
|
1101
|
-
pageId?: number | null;
|
|
1101
|
+
pageId?: string | number | null;
|
|
1102
|
+
pageIds?: Array<number | string> | null;
|
|
1102
1103
|
flowName?: string | null;
|
|
1103
1104
|
flowDesc?: string | null;
|
|
1104
1105
|
flowType?: string | null;
|
|
@@ -1116,8 +1117,8 @@ export interface FlowDefinition {
|
|
|
1116
1117
|
enabled?: boolean | null;
|
|
1117
1118
|
createUserId?: string | null;
|
|
1118
1119
|
updateUserId?: string | null;
|
|
1119
|
-
gmtCreate?: string | null;
|
|
1120
|
-
gmtModified?: string | null;
|
|
1120
|
+
gmtCreate?: number | string | null;
|
|
1121
|
+
gmtModified?: number | string | null;
|
|
1121
1122
|
[key: string]: unknown;
|
|
1122
1123
|
}
|
|
1123
1124
|
/** Exact writable fields exposed by FlowDefRequest. */
|
|
@@ -1129,6 +1130,7 @@ export interface FlowDefinitionWriteRequest {
|
|
|
1129
1130
|
appCode: string;
|
|
1130
1131
|
datasetCode?: string;
|
|
1131
1132
|
pageId?: number;
|
|
1133
|
+
pageIds?: number[];
|
|
1132
1134
|
flowJson: Record<string, unknown>;
|
|
1133
1135
|
}
|
|
1134
1136
|
/** Supported filters exposed by FlowDefQueryRequest. */
|
|
@@ -1141,6 +1143,24 @@ export interface FlowDefinitionListOptions {
|
|
|
1141
1143
|
pageNum?: number;
|
|
1142
1144
|
pageSize?: number;
|
|
1143
1145
|
}
|
|
1146
|
+
/** A standard page available for a form-flow binding. */
|
|
1147
|
+
export interface FlowBindingPage {
|
|
1148
|
+
id: number | string;
|
|
1149
|
+
name?: string;
|
|
1150
|
+
pageCode?: string;
|
|
1151
|
+
type?: string;
|
|
1152
|
+
[key: string]: unknown;
|
|
1153
|
+
}
|
|
1154
|
+
/** GET /smartapi/page/getPageList with Cookie auth; currentFlowId enables binding availability filtering. */
|
|
1155
|
+
export declare function listFlowBindingPages(appCode: string, options?: {
|
|
1156
|
+
currentFlowId?: number;
|
|
1157
|
+
name?: string;
|
|
1158
|
+
currentPage?: number;
|
|
1159
|
+
pageSize?: number;
|
|
1160
|
+
}): Promise<{
|
|
1161
|
+
items: FlowBindingPage[];
|
|
1162
|
+
paging?: Paging;
|
|
1163
|
+
}>;
|
|
1144
1164
|
/** POST /smartapi/flow/page: list flow definitions for one app. */
|
|
1145
1165
|
export declare function listFlowDefinitions(appCode: string, options?: FlowDefinitionListOptions): Promise<{
|
|
1146
1166
|
items: FlowDefinition[];
|