@lovrabet/rabetbase-cli 2.5.10-beta.1 → 2.5.10-beta.3
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/README.md +10 -0
- 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.d.ts +2 -2
- package/lib/auth/get-session-user.js +1 -1
- package/lib/auth/is-session-valid.js +1 -1
- package/lib/auth/login-success-html.js +1 -1
- package/lib/auth/logout.js +1 -1
- package/lib/cli-flags.js +1 -1
- package/lib/cli.js +1 -1
- package/lib/commands/api/generate.js +1 -1
- package/lib/commands/api/index.js +1 -1
- package/lib/commands/api/list.js +1 -1
- package/lib/commands/api/pull.js +1 -1
- package/lib/commands/api/shared.js +1 -1
- package/lib/commands/app/detail.js +1 -1
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/members-list.js +1 -1
- package/lib/commands/app/remote-directory.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/delete.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/app-config/list.js +1 -1
- package/lib/commands/app-config/set.js +1 -1
- package/lib/commands/app-config/shared.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/bff/create.js +1 -1
- package/lib/commands/bff/delete.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/bff/list.js +1 -1
- package/lib/commands/bff/logs.js +1 -1
- package/lib/commands/bff/pull.js +1 -1
- package/lib/commands/bff/push.js +1 -1
- package/lib/commands/bff/status.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/cli-update.js +1 -1
- package/lib/commands/codegen/index.js +1 -1
- package/lib/commands/codegen/sdk.js +1 -1
- package/lib/commands/codegen/sql.js +1 -1
- package/lib/commands/common/app-registry.js +1 -1
- package/lib/commands/common/app-selector.js +1 -1
- package/lib/commands/common/async-task.js +1 -1
- package/lib/commands/common/dry-run.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/common/validate.js +1 -1
- package/lib/commands/config/delete.js +1 -1
- package/lib/commands/config/get.js +1 -1
- package/lib/commands/config/index.js +1 -1
- package/lib/commands/config/init.js +1 -1
- package/lib/commands/config/list.js +1 -1
- package/lib/commands/config/set.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/dataset/batch-design.js +1 -1
- package/lib/commands/dataset/business-group-update.js +1 -1
- package/lib/commands/dataset/business-groups.js +1 -1
- package/lib/commands/dataset/capability.js +1 -1
- package/lib/commands/dataset/cross-relation-create.js +1 -1
- package/lib/commands/dataset/cross-relation-delete.js +1 -1
- package/lib/commands/dataset/cross-relation-list.js +1 -1
- package/lib/commands/dataset/cross-relation-shared.js +1 -1
- package/lib/commands/dataset/cross-relation-update.js +1 -1
- package/lib/commands/dataset/delete.js +1 -1
- package/lib/commands/dataset/design-context.js +1 -1
- package/lib/commands/dataset/design-start.js +1 -1
- package/lib/commands/dataset/design-status.js +1 -1
- package/lib/commands/dataset/design-sync-retry.js +1 -1
- package/lib/commands/dataset/design-sync-status.js +1 -1
- package/lib/commands/dataset/design-validate.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/extend-update.js +1 -1
- package/lib/commands/dataset/field-restore.js +1 -1
- package/lib/commands/dataset/field-update.js +1 -1
- package/lib/commands/dataset/generate.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/dataset/relation-audit.js +1 -1
- package/lib/commands/dataset/relation-create.js +1 -1
- package/lib/commands/dataset/relation-delete.js +1 -1
- package/lib/commands/dataset/relation-shared.js +1 -1
- package/lib/commands/dataset/relation-update.js +1 -1
- package/lib/commands/dataset/relations.js +1 -1
- package/lib/commands/dataset/rename.js +1 -1
- package/lib/commands/dataset/restore.js +1 -1
- package/lib/commands/dataset/user-deleted-field-list.js +1 -1
- package/lib/commands/db/analysis-batching.js +1 -1
- package/lib/commands/db/analyze-batch-plan.js +1 -1
- package/lib/commands/db/analyze-cancel.js +1 -1
- package/lib/commands/db/analyze-start.js +1 -1
- package/lib/commands/db/analyze-status.js +1 -1
- package/lib/commands/db/create.js +1 -1
- package/lib/commands/db/cross-db-analysis-shared.js +1 -1
- package/lib/commands/db/cross-db-analyze-latest.js +1 -1
- package/lib/commands/db/cross-db-analyze-start.js +1 -1
- package/lib/commands/db/cross-db-analyze-status.js +1 -1
- package/lib/commands/db/delete.js +1 -1
- package/lib/commands/db/detail.js +1 -1
- package/lib/commands/db/diff-refresh-start.js +1 -1
- package/lib/commands/db/diff-refresh-status.js +1 -1
- package/lib/commands/db/diff.js +1 -1
- package/lib/commands/db/index.js +1 -1
- package/lib/commands/db/list.js +1 -1
- package/lib/commands/db/shared.js +1 -1
- package/lib/commands/db/table-diff-shared.js +1 -1
- package/lib/commands/db/tables.js +1 -1
- package/lib/commands/db/test.js +1 -1
- package/lib/commands/db/update.js +1 -1
- package/lib/commands/deployment/index.js +1 -1
- package/lib/commands/deployment/sync-all.js +1 -1
- package/lib/commands/deployment/sync-jobs.js +1 -1
- package/lib/commands/deployment/sync-status.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/flow/create.js +1 -1
- package/lib/commands/flow/detail.js +1 -1
- package/lib/commands/flow/index.js +1 -1
- package/lib/commands/flow/list.js +1 -1
- package/lib/commands/flow/page-list.js +1 -1
- package/lib/commands/flow/publish.js +1 -1
- package/lib/commands/flow/runtime-resources-shared.js +1 -1
- package/lib/commands/flow/runtime-role-list.js +1 -1
- package/lib/commands/flow/runtime-role-user-list.js +1 -1
- package/lib/commands/flow/runtime-user-search.js +1 -1
- package/lib/commands/flow/shared.js +1 -1
- package/lib/commands/flow/update.js +1 -1
- package/lib/commands/flow/validate.js +1 -1
- package/lib/commands/instant-api-policy/current.js +1 -1
- package/lib/commands/instant-api-policy/index.js +1 -1
- package/lib/commands/instant-api-policy/init.js +1 -1
- package/lib/commands/instant-api-policy/publish.js +1 -1
- package/lib/commands/instant-api-policy/pull.js +1 -1
- package/lib/commands/instant-api-policy/revision.js +1 -1
- package/lib/commands/instant-api-policy/revisions.js +1 -1
- package/lib/commands/instant-api-policy/rollback.js +1 -1
- package/lib/commands/instant-api-policy/shared.d.ts +1 -1
- package/lib/commands/instant-api-policy/shared.js +1 -1
- package/lib/commands/instant-api-policy/validate.js +1 -1
- package/lib/commands/issue/context.d.ts +3 -0
- package/lib/commands/issue/context.js +1 -0
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/nudge.js +1 -1
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/kb/create.js +1 -1
- package/lib/commands/kb/delete.js +1 -1
- package/lib/commands/kb/detail.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/kb/list.js +1 -1
- package/lib/commands/kb/search.js +1 -1
- package/lib/commands/kb/shared.js +1 -1
- package/lib/commands/kb/update.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/asset-update.js +1 -1
- package/lib/commands/menu/delete.js +1 -1
- package/lib/commands/menu/external-link-create.js +1 -1
- package/lib/commands/menu/external-link-update.js +1 -1
- package/lib/commands/menu/group-create.js +1 -1
- package/lib/commands/menu/group-update.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/list.js +1 -1
- package/lib/commands/menu/move.js +1 -1
- package/lib/commands/menu/regroup-start.js +1 -1
- package/lib/commands/menu/rename.js +1 -1
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/delete-plan.js +1 -1
- package/lib/commands/menu/shared/facts.js +1 -1
- package/lib/commands/menu/shared/index.js +1 -1
- package/lib/commands/menu/shared/inquirer.js +1 -1
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.js +1 -1
- package/lib/commands/menu/shared/mutations.js +1 -1
- package/lib/commands/menu/shared/path.js +1 -1
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/subapp-assets.js +1 -1
- package/lib/commands/menu/shared/sync-core.js +1 -1
- package/lib/commands/menu/shared/update-core.js +1 -1
- package/lib/commands/menu/shared/valid-url.js +1 -1
- package/lib/commands/menu/subapp-assets-status.js +1 -1
- package/lib/commands/menu/subapp-assets-update.js +1 -1
- package/lib/commands/menu/sync.js +1 -1
- package/lib/commands/menu/visibility-update.js +1 -1
- package/lib/commands/notification/config-create.js +1 -1
- package/lib/commands/notification/config-delete.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/config-update.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/notification/shared.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/page/create.js +1 -1
- package/lib/commands/page/custom/detail.js +1 -1
- package/lib/commands/page/custom/list.js +1 -1
- package/lib/commands/page/custom/publish.js +1 -1
- package/lib/commands/page/custom/shared.js +1 -1
- package/lib/commands/page/custom/syntax.js +1 -1
- package/lib/commands/page/custom/update.js +1 -1
- package/lib/commands/page/data-list-status.js +1 -1
- package/lib/commands/page/generate-start.js +1 -1
- package/lib/commands/page/generate-status.js +1 -1
- package/lib/commands/page/index.js +1 -1
- package/lib/commands/page/pull.js +1 -1
- package/lib/commands/page/push.js +1 -1
- package/lib/commands/page/relation-audit.js +1 -1
- package/lib/commands/page/restore.js +1 -1
- package/lib/commands/page/shared.js +1 -1
- package/lib/commands/page/sync.js +1 -1
- package/lib/commands/project/api-architecture-upgrade.js +1 -1
- package/lib/commands/project/create/enhanced-guided-create.js +1 -1
- package/lib/commands/project/create/format-elapsed.js +1 -1
- package/lib/commands/project/create/main.js +1 -1
- package/lib/commands/project/create/materialize-project-template.js +1 -1
- package/lib/commands/project/create/project-name.js +1 -1
- package/lib/commands/project/create/project-template-archive.js +1 -1
- package/lib/commands/project/create/project-template-path.js +1 -1
- package/lib/commands/project/create/use-copy-project-template.js +1 -1
- package/lib/commands/project/create/use-format-code.js +1 -1
- package/lib/commands/project/create/use-install-dependencies.js +1 -1
- package/lib/commands/project/domain-routing-sync.js +1 -1
- package/lib/commands/project/index.js +1 -1
- package/lib/commands/project/upgrade.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/role/user-resolve.js +1 -1
- package/lib/commands/rule/get.js +1 -1
- package/lib/commands/rule/index.js +1 -1
- package/lib/commands/rule/list.js +1 -1
- package/lib/commands/rule/set.js +1 -1
- package/lib/commands/rule/shared.js +1 -1
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/sql/create.js +1 -1
- package/lib/commands/sql/delete.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/sql/list.js +1 -1
- package/lib/commands/sql/pull.js +1 -1
- package/lib/commands/sql/push.js +1 -1
- package/lib/commands/sql/shared.js +1 -1
- package/lib/commands/sql/status.js +1 -1
- package/lib/commands/sql/validate.js +1 -1
- package/lib/commands/task/index.js +1 -1
- package/lib/commands/task/status.js +1 -1
- package/lib/commands/tenant/index.js +1 -1
- package/lib/commands/tenant/members-list.js +1 -1
- package/lib/commands/tenant/shared.js +1 -1
- package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
- package/lib/commands/user-account/feishu-bind.js +1 -1
- package/lib/commands/user-account/index.js +1 -1
- package/lib/commands/workspace/add.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/commands/workspace/remove.js +1 -1
- package/lib/config/domain-config.js +1 -1
- package/lib/config/project-domain-routing.js +1 -1
- package/lib/config/region-config.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/cdn.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/paths.js +1 -1
- package/lib/constant/region.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/routing-profile.js +1 -1
- package/lib/context/app-resolver.js +1 -1
- package/lib/context/auth-resolver.js +1 -1
- package/lib/context/config-loader.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.d.ts +0 -28
- package/lib/core/api-client.js +1 -1
- package/lib/core/bff/config.js +1 -1
- package/lib/core/bff/file-system.js +1 -1
- package/lib/core/bff/hash.js +1 -1
- package/lib/core/bff/hook-directory.js +1 -1
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/cross-db-analysis.js +1 -1
- package/lib/core/cross-db-relation.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/flow-config.js +1 -1
- package/lib/core/instant-api-policy/config.js +1 -1
- package/lib/core/instant-api-policy/endpoints.d.ts +8 -0
- package/lib/core/instant-api-policy/endpoints.js +1 -0
- package/lib/core/kb-management-client.d.ts +3 -9
- package/lib/core/kb-management-client.js +1 -1
- package/lib/core/kb-search-client.d.ts +1 -4
- package/lib/core/kb-search-client.js +1 -1
- package/lib/core/page/file-system.js +1 -1
- package/lib/core/page/hash.js +1 -1
- package/lib/core/page/lock.js +1 -1
- package/lib/core/page/lr-smart-jsx.js +1 -1
- package/lib/core/sql-index-auditor.js +1 -1
- package/lib/core/sql-sync/config.js +1 -1
- package/lib/core/sql-sync/file-system.js +1 -1
- package/lib/core/sql-sync/hash.js +1 -1
- package/lib/core/sql-sync/lock.js +1 -1
- package/lib/core/sql-sync/utils.js +1 -1
- package/lib/core/sql-validator.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/error-output.js +1 -1
- package/lib/framework/explicit-yes.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-alias.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/supported-flags.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/generated/official-routing.js +1 -1
- package/lib/generated/routing-contract.js +1 -1
- package/lib/help.js +1 -1
- package/lib/postinstall.js +1 -1
- package/lib/runtime/confirmation.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/services/dataset-design/checkpoint.js +1 -1
- package/lib/services/dataset-design/commands.js +1 -1
- package/lib/services/dataset-design/contract.js +1 -1
- package/lib/skills/builtin-skill.js +1 -1
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/skill-presence.js +1 -1
- package/lib/telemetry/cli-command-trace.js +1 -1
- package/lib/telemetry/cli-help-trace.js +1 -1
- package/lib/telemetry/ensure-cli-otel-config.js +1 -1
- package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
- package/lib/telemetry/send-cli-trace-log.js +1 -1
- package/lib/utils/ai_config.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cdn-config.js +1 -1
- package/lib/utils/check-sdk-version.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/config.js +1 -1
- package/lib/utils/entity-with-id.js +1 -1
- package/lib/utils/file-utils.js +1 -1
- package/lib/utils/guides-cdn.js +1 -1
- package/lib/utils/http-client.js +1 -1
- package/lib/utils/is-non-interactive.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/sleep.js +1 -1
- package/lib/utils/template-replacer.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/with-active-cookie.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +3 -2
- package/skills/rabetbase/SKILL.md +2 -2
- package/skills/rabetbase/references/rabetbase-issue-report.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 +3 -3
- package/lib/commands/issue/shared.d.ts +0 -32
- package/lib/commands/issue/shared.js +0 -1
- package/lib/telemetry/send-platform-issue-collect-log.d.ts +0 -26
- package/lib/telemetry/send-platform-issue-collect-log.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4ebf8,_0x11e590){const _0xd69fa7=a283_0x569d,_0x3738ad=_0x4ebf8();while(!![]){try{const _0x1f2be4=-parseInt(_0xd69fa7(0xc0))/0x1*(parseInt(_0xd69fa7(0xbe))/0x2)+parseInt(_0xd69fa7(0xcc))/0x3+parseInt(_0xd69fa7(0xbd))/0x4*(parseInt(_0xd69fa7(0xaf))/0x5)+parseInt(_0xd69fa7(0xb1))/0x6+-parseInt(_0xd69fa7(0xcd))/0x7+-parseInt(_0xd69fa7(0xbb))/0x8*(-parseInt(_0xd69fa7(0xd8))/0x9)+-parseInt(_0xd69fa7(0xc7))/0xa;if(_0x1f2be4===_0x11e590)break;else _0x3738ad['push'](_0x3738ad['shift']());}catch(_0x4a68fe){_0x3738ad['push'](_0x3738ad['shift']());}}}(a283_0x1db4,0x1a8b2));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 a283_0x569d(_0x8b44,_0x92f9bd){_0x8b44=_0x8b44-0xad;const _0x1db415=a283_0x1db4();let _0x569d3f=_0x1db415[_0x8b44];return _0x569d3f;}function a283_0x1db4(){const _0x1d2062=['300085rKYJiI','globalConfig','429078uewBoK','object','apps','filter','ENV','accessKey','COOKIE','cookie','keys','read','632744mAlgJh','apiDir','4sTFNCy','62734muwmuG','production','1cKSBFj','defaultApp','locale','env','ACCESS_KEY','true','format','742050LPfTcg','PAGE_SIZE','trim','source','app','184395glQgVg','404558BJLMmX','length','projectConfig','FORMAT','region','projectPath','appcode','pageSize','riskLevel','high-risk-write','daily','9ugPTEP','string','value','RISK_LEVEL','write','entries'];a283_0x1db4=function(){return _0x1d2062;};return a283_0x1db4();}function stringConfigValue(_0x38a74f){const _0x61d159=a283_0x569d;return typeof _0x38a74f===_0x61d159(0xd9)&&_0x38a74f[_0x61d159(0xc9)]()?_0x38a74f['trim']():undefined;}function appProfiles(_0x1d37f5){const _0x18f93b=a283_0x569d;return _0x1d37f5['apps']&&typeof _0x1d37f5[_0x18f93b(0xb3)]===_0x18f93b(0xb2)?_0x1d37f5['apps']:{};}function resolveDefaultAppName(_0x2c728c){const _0xdb41ca=a283_0x569d,_0x479f60=stringConfigValue(_0x2c728c[_0xdb41ca(0xc1)]);if(_0x479f60)return _0x479f60;const _0x35c9d0=Object['keys'](appProfiles(_0x2c728c));return _0x35c9d0[_0xdb41ca(0xce)]===0x1?_0x35c9d0[0x0]:undefined;}function resolveTopLevelAppCode(_0x5724cc){const _0x5a9f22=a283_0x569d;return stringConfigValue(_0x5724cc[_0x5a9f22(0xd3)])||stringConfigValue(_0x5724cc[_0x5a9f22(0xcb)]);}function normalizeRiskCeiling(_0x459191){const _0x1ed8dc=a283_0x569d;if(_0x459191===undefined||_0x459191===null)return undefined;if(_0x459191==='read'||_0x459191===_0x1ed8dc(0xad)||_0x459191===_0x1ed8dc(0xd6))return _0x459191;return _0x1ed8dc(0xba);}function resolveRiskCeiling(..._0x2306c){const _0x5b52b6=a283_0x569d;let _0x5d0251;for(const _0x1b0829 of _0x2306c){const _0x5104aa=normalizeRiskCeiling(_0x1b0829);_0x5104aa&&(!_0x5d0251||riskLevelOrder(_0x5104aa)<riskLevelOrder(_0x5d0251))&&(_0x5d0251=_0x5104aa);}return _0x5d0251??DEFAULT_CONFIG_VALUES[_0x5b52b6(0xd5)];}export function resolveAppConfig({raw:_0x43d65b,flags:_0x7f8c20,layers:_0x3858ce,readEnv:_0x5a6c20}){const _0x1e8d76=a283_0x569d,_0x36b323=_0x3858ce?.[_0x1e8d76(0xcf)]??{},_0x2cbe63=_0x3858ce?.[_0x1e8d76(0xb0)]??{},_0xb18452=!!_0x3858ce?.[_0x1e8d76(0xd2)]||Object[_0x1e8d76(0xb9)](_0x36b323)['length']>0x0,_0x5057ff=!_0xb18452,_0x1f799b=_0xb18452?resolveDefaultAppName(_0x36b323):undefined,_0x27ae88=_0x5057ff?resolveDefaultAppName(_0x2cbe63):undefined,_0x5ad608=stringConfigValue(_0x7f8c20[_0x1e8d76(0xcb)]),_0x2a5d90=_0x5a6c20('APP'),_0x4772d1={};if(_0x43d65b['apps']&&typeof _0x43d65b[_0x1e8d76(0xb3)]===_0x1e8d76(0xb2))for(const [_0x4ad89a,_0x5274af]of Object['entries'](_0x43d65b[_0x1e8d76(0xb3)])){_0x5274af&&typeof _0x5274af===_0x1e8d76(0xb2)&&_0x5274af[_0x1e8d76(0xd3)]&&(_0x4772d1[_0x4ad89a]=_0x5274af);}const _0x10fd36=_0x1f799b||_0x27ae88||resolveDefaultAppName(_0x43d65b),_0xeb437e=Object['keys'](_0x4772d1)['length']>0x0,_0x330164=_0x5ad608||_0x1f799b||_0x2a5d90||_0x27ae88||_0x10fd36||undefined,_0x39f68f=stringConfigValue(_0x7f8c20['appcode']),_0x4c72d4=_0x39f68f?Object[_0x1e8d76(0xae)](_0x4772d1)[_0x1e8d76(0xb4)](([,_0x411040])=>_0x411040?.[_0x1e8d76(0xd3)]===_0x39f68f):[],_0x15dbcc=_0x5ad608&&_0x4772d1[_0x5ad608]?.[_0x1e8d76(0xd3)]===_0x39f68f?[_0x5ad608,_0x4772d1[_0x5ad608]]:undefined,_0x16d008=_0x15dbcc??(_0x4c72d4['length']===0x1?_0x4c72d4[0x0]:undefined),_0x2635d7=_0x16d008?.[0x0],_0x4aeb81=_0x16d008?.[0x1],_0x2d79c2=_0x39f68f?_0x2635d7:_0x330164;let _0x474cd0=_0x2d79c2&&_0x4772d1[_0x2d79c2]?_0x4772d1[_0x2d79c2]:undefined;_0x39f68f&&_0x4aeb81&&(_0x474cd0=_0x4aeb81);const _0x558e40=_0x39f68f?_0x4aeb81??_0x474cd0:_0x474cd0,_0x583bbd=!_0x5ad608&&!_0x1f799b&&_0x2a5d90&&_0x2d79c2===_0x2a5d90,_0x283b46=_0x5ad608||(_0x583bbd?_0x2a5d90:undefined)||(_0x39f68f?_0x2635d7:undefined),_0x59b072=_0x558e40?.[_0x1e8d76(0xd3)],_0x1754df=_0xb18452?resolveTopLevelAppCode(_0x36b323):undefined,_0x1c28a8=_0x5057ff?resolveTopLevelAppCode(_0x2cbe63):undefined,_0xe1dbe=_0x5ad608||_0x1f799b?_0x59b072:undefined,_0x5d33f7=!_0x5ad608&&!_0x1f799b?_0x59b072:undefined,_0x2ab2ed=_0x39f68f||_0xe1dbe||_0x1754df||_0x5d33f7||_0x1c28a8||undefined,_0x213659=_0xb18452?stringConfigValue(_0x36b323['env']):undefined,_0x1c7b18=_0x5057ff?stringConfigValue(_0x2cbe63[_0x1e8d76(0xc3)]):undefined,_0x7904b0=_0x7f8c20[_0x1e8d76(0xc3)]||_0x558e40?.[_0x1e8d76(0xc3)]||_0x213659||_0x5a6c20(_0x1e8d76(0xb5))||_0x1c7b18||_0x43d65b['env']||DEFAULT_CONFIG_VALUES['env'],_0x4c72f6=_0x558e40?.[_0x1e8d76(0xc2)]||_0x43d65b[_0x1e8d76(0xc2)]||DEFAULT_CONFIG_VALUES[_0x1e8d76(0xc2)],_0x39df03=_0x5a6c20(_0x1e8d76(0xb7))||_0x558e40?.[_0x1e8d76(0xb8)]||_0x43d65b['cookie']||undefined,_0x3270fe=_0x5a6c20(_0x1e8d76(0xc4))||_0x558e40?.[_0x1e8d76(0xb6)]||_0x43d65b[_0x1e8d76(0xb6)]||undefined,_0x5d38df=_0x7f8c20[_0x1e8d76(0xc6)]||_0x5a6c20(_0x1e8d76(0xd0))||_0x558e40?.['format']||_0x43d65b[_0x1e8d76(0xc6)],_0x3d857d=normalizeLegacyOutputFormat(_0x5d38df),_0x5ac86e=_0x5a6c20(_0x1e8d76(0xc8))||_0x558e40?.[_0x1e8d76(0xd4)]||_0x43d65b[_0x1e8d76(0xd4)],_0x2914b9=_0x5ac86e?Number(_0x5ac86e)||undefined:undefined,_0xfedec5=_0x3858ce?[_0x3858ce['globalConfig']['riskLevel'],_0x3858ce['projectConfig']['riskLevel']]:[_0x43d65b[_0x1e8d76(0xd5)]],_0xed69=resolveRiskCeiling(..._0xfedec5,_0x558e40?.[_0x1e8d76(0xd5)]),_0x3856cc=resolveRiskCeiling(_0xed69,_0x5a6c20(_0x1e8d76(0xdb))),_0x48e149=_0x5a6c20('VERBOSE'),_0x1fd5cd=_0x48e149==='1'||_0x48e149===_0x1e8d76(0xc5),_0x3ebca2=_0x558e40?.[_0x1e8d76(0xbc)]||_0x43d65b[_0x1e8d76(0xbc)]||DEFAULT_CONFIG_VALUES[_0x1e8d76(0xbc)],_0x3d661c=selectConfiguredRegion({'appRegion':_0x558e40?.['region'],'projectRegion':_0xb18452?_0x36b323[_0x1e8d76(0xd1)]:undefined,'globalRegion':_0xb18452||_0x5057ff?_0x2cbe63['region']:undefined,'mergedRegion':_0x43d65b[_0x1e8d76(0xd1)]}),_0x3f2f60=normalizeLovrabetRegion(_0x3d661c['value'])??DEFAULT_LOVRABET_REGION,_0x4e6f6c=isDaily(normalizeEnv(String(_0x7904b0)))?_0x1e8d76(0xd7):_0x1e8d76(0xbf);return{'appCode':typeof _0x2ab2ed===_0x1e8d76(0xd9)&&_0x2ab2ed[_0x1e8d76(0xc9)]()?_0x2ab2ed[_0x1e8d76(0xc9)]():undefined,'region':_0x3f2f60,'regionConfiguredValue':_0x3d661c[_0x1e8d76(0xda)],'regionSource':_0x3d661c[_0x1e8d76(0xca)],'env':_0x4e6f6c,'locale':_0x4c72f6,'cookie':_0x39df03,'accessKey':_0x3270fe,'format':_0x3d857d,'pageSize':_0x2914b9,'riskLevel':_0x3856cc,'verbose':_0x1fd5cd,'apiDir':_0x3ebca2,'apps':_0x4772d1,'defaultApp':_0x10fd36,'currentApp':_0xeb437e?_0x2d79c2:undefined,'explicitAppName':_0x283b46};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a284_0x5b89(_0x5f5119,_0x2d8a51){_0x5f5119=_0x5f5119-0x1aa;const _0x3268b5=a284_0x3268();let _0x5b89ad=_0x3268b5[_0x5f5119];return _0x5b89ad;}(function(_0x23b059,_0x26e9d5){const _0x15b471=a284_0x5b89,_0x365abf=_0x23b059();while(!![]){try{const _0x4ac944=-parseInt(_0x15b471(0x1b1))/0x1+parseInt(_0x15b471(0x1af))/0x2*(parseInt(_0x15b471(0x1aa))/0x3)+parseInt(_0x15b471(0x1ab))/0x4*(-parseInt(_0x15b471(0x1ae))/0x5)+-parseInt(_0x15b471(0x1b3))/0x6*(parseInt(_0x15b471(0x1b2))/0x7)+-parseInt(_0x15b471(0x1b0))/0x8*(parseInt(_0x15b471(0x1b4))/0x9)+parseInt(_0x15b471(0x1ad))/0xa+parseInt(_0x15b471(0x1b5))/0xb;if(_0x4ac944===_0x26e9d5)break;else _0x365abf['push'](_0x365abf['shift']());}catch(_0x31fccd){_0x365abf['push'](_0x365abf['shift']());}}}(a284_0x3268,0x78668));import{getIsSessionValid}from'../auth/is-session-valid.js';import{CliErrors}from'../errors.js';function a284_0x3268(){const _0x569fb3=['756pUbAZF','20009517DtsilU','57MnTrPQ','764584cFpYGX','authRequired','4856590GzDcKI','10SwrfXV','23498svyTtX','65960EkklKz','565640vFyiCe','551971NMrNAt','30ZHPidY'];a284_0x3268=function(){return _0x569fb3;};return a284_0x3268();}export async function buildAuth(_0x4caf5c){const {getCookie:_0x5ea4d5}=await import('../auth/get-cookie.js'),_0x16b7b0=_0x4caf5c['cookie']||_0x5ea4d5(),_0x437767=_0x16b7b0?await getIsSessionValid():![];return{'cookie':_0x16b7b0,'isLoggedIn':_0x437767,async 'getOrLogin'(){const _0x5af836=a284_0x5b89;if(_0x16b7b0&&_0x437767)return _0x16b7b0;throw CliErrors[_0x5af836(0x1ac)]();}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a285_0x5e0787=a285_0x5d50;(function(_0x47f4dd,_0x420bc4){const _0x2bcad8=a285_0x5d50,_0x4f3843=_0x47f4dd();while(!![]){try{const _0x4d79c6=-parseInt(_0x2bcad8(0xa3))/0x1*(parseInt(_0x2bcad8(0x90))/0x2)+-parseInt(_0x2bcad8(0x8c))/0x3+parseInt(_0x2bcad8(0xc0))/0x4*(-parseInt(_0x2bcad8(0xb0))/0x5)+-parseInt(_0x2bcad8(0xc6))/0x6+parseInt(_0x2bcad8(0x9d))/0x7+-parseInt(_0x2bcad8(0xb6))/0x8+parseInt(_0x2bcad8(0x9a))/0x9*(parseInt(_0x2bcad8(0x96))/0xa);if(_0x4d79c6===_0x420bc4)break;else _0x4f3843['push'](_0x4f3843['shift']());}catch(_0x3516d8){_0x4f3843['push'](_0x4f3843['shift']());}}}(a285_0x4e41,0xdc355));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_0x5e0787(0xbd);export const CONFIG_NAMES=[NEW_CONFIG_NAME];const normalizedWriteCache=new Map();export function resolveConfigPath(_0x3d1a08){for(const _0x24d6f4 of CONFIG_NAMES){const _0x2ab9d0=resolve(_0x3d1a08,_0x24d6f4);if(existsSync(_0x2ab9d0))return _0x2ab9d0;}return undefined;}export function findProjectRootDirectory(_0x41d034=process['cwd']()){let _0x52d1d7=resolve(_0x41d034);const {root:_0x224db6}=parse(_0x52d1d7),_0x2217fb=homedir();while(!![]){if(resolveConfigPath(_0x52d1d7)){if(_0x52d1d7===_0x2217fb)break;return _0x52d1d7;}if(_0x52d1d7===_0x224db6||_0x52d1d7===_0x2217fb)break;const _0x53811c=dirname(_0x52d1d7);if(_0x53811c===_0x52d1d7)break;_0x52d1d7=_0x53811c;}return resolve(_0x41d034);}export function getProjectConfigPath(){const _0xf8c0fd=a285_0x5e0787;return resolveConfigPath(process[_0xf8c0fd(0x8b)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}function a285_0x4e41(){const _0x768e6e=['\x0a\x20\x20','message','12hdklpo','format','kbServiceDomain','app','apps','localDomain','10282200LfugQm','cwd','3153765LyTumZ','routing','empty','get','2OUImOW','kbDomain','\x20config\x20file\x20ignored\x20(invalid\x20JSON\x20or\x20unreadable):\x20','projectPath','apiDomain','length','11339810CccFQj','appcode','trim','region','45ElPORn','silent','apiDir','8324260HIfita','parse','object','env','stringify','Project','1359922hVGSzD','userDomain','appDomain','certificateDomain','status','config','keys','missing','inherit','migrated','pageSize','skillDomain','utf8','84815cAJsok','string','defaultApp','cookie','data','project','14250768NujrdP','error','accessKey','Global','warn','locale','riskLevel','.rabetbase.json'];a285_0x4e41=function(){return _0x768e6e;};return a285_0x4e41();}export function isInProject(){return!!getProjectConfigPath();}export function inspectCliConfigJsonFile(_0x40c1f9){const _0x42494f=a285_0x5e0787;if(!existsSync(_0x40c1f9))return{'status':'missing'};try{const _0x205dd9=readFileSync(_0x40c1f9,{'encoding':_0x42494f(0xaf)});if(!_0x205dd9?.[_0x42494f(0x98)]())return{'status':'empty'};const _0x52f75f=JSON[_0x42494f(0x9e)](_0x205dd9);return{'status':'ok','data':_0x52f75f};}catch(_0x24d2f5){return{'status':_0x42494f(0xb7),'message':_0x24d2f5 instanceof Error?_0x24d2f5[_0x42494f(0xbf)]:String(_0x24d2f5)};}}function parseCliConfigJsonFile(_0x4c4f99,_0x2bb358,_0x13985d){const _0x1b4cbc=a285_0x5e0787,_0x159e0b=inspectCliConfigJsonFile(_0x4c4f99);if(_0x159e0b[_0x1b4cbc(0xa7)]===_0x1b4cbc(0xaa)||_0x159e0b[_0x1b4cbc(0xa7)]===_0x1b4cbc(0x8e))return{};if(_0x159e0b[_0x1b4cbc(0xa7)]==='ok')return _0x159e0b[_0x1b4cbc(0xb4)];return _0x2bb358===_0x1b4cbc(0xba)&&_0x13985d&&console[_0x1b4cbc(0xb7)](CLI_BIN_NAME+':\x20'+_0x13985d+_0x1b4cbc(0x92)+_0x4c4f99+_0x1b4cbc(0xbe)+_0x159e0b[_0x1b4cbc(0xbf)]),{};}function normalizeLegacyConfigShape(_0x34788e){const _0x30db7d=a285_0x5e0787;if(!_0x34788e||typeof _0x34788e!==_0x30db7d(0x9f))return{'config':{},'migrated':![]};const _0x4e18f0={..._0x34788e},_0x194473=_0x4e18f0[_0x30db7d(0xc4)]&&typeof _0x4e18f0[_0x30db7d(0xc4)]==='object'?{..._0x4e18f0[_0x30db7d(0xc4)]}:{},_0x1219e6=Object['keys'](_0x194473)[_0x30db7d(0x95)],_0x226edd=_0x4e18f0[_0x30db7d(0x97)]||_0x4e18f0[_0x30db7d(0xc3)];let _0x3cdd93=![];if(_0x226edd&&_0x1219e6===0x0){const _0x1dd5e1=typeof _0x4e18f0[_0x30db7d(0xb2)]===_0x30db7d(0xb1)&&_0x4e18f0[_0x30db7d(0xb2)][_0x30db7d(0x98)]()?_0x4e18f0[_0x30db7d(0xb2)]:String(_0x226edd)['trim']();_0x194473[_0x1dd5e1]={'appcode':String(_0x226edd)['trim'](),..._0x4e18f0['env']!=null?{'env':_0x4e18f0[_0x30db7d(0xa0)]}:{},..._0x4e18f0[_0x30db7d(0x9c)]!=null?{'apiDir':_0x4e18f0[_0x30db7d(0x9c)]}:{},..._0x4e18f0['cookie']!=null?{'cookie':_0x4e18f0[_0x30db7d(0xb3)]}:{},..._0x4e18f0[_0x30db7d(0xb8)]!=null?{'accessKey':_0x4e18f0[_0x30db7d(0xb8)]}:{},..._0x4e18f0['format']!=null?{'format':_0x4e18f0[_0x30db7d(0xc1)]}:{},..._0x4e18f0[_0x30db7d(0xad)]!=null?{'pageSize':_0x4e18f0[_0x30db7d(0xad)]}:{},..._0x4e18f0[_0x30db7d(0xbc)]!=null?{'riskLevel':_0x4e18f0[_0x30db7d(0xbc)]}:{},..._0x4e18f0['locale']!=null?{'locale':_0x4e18f0[_0x30db7d(0xbb)]}:{}},_0x4e18f0[_0x30db7d(0xc4)]=_0x194473,delete _0x4e18f0['defaultApp'],_0x3cdd93=!![];}return(_0x30db7d(0x97)in _0x4e18f0||_0x30db7d(0xc3)in _0x4e18f0)&&(delete _0x4e18f0[_0x30db7d(0x97)],delete _0x4e18f0[_0x30db7d(0xc3)],_0x3cdd93=!![]),{'config':_0x4e18f0,'migrated':_0x3cdd93};}function writeNormalizedConfigIfNeeded(_0x590547,_0x34209b){const _0xd29ba3=a285_0x5e0787,_0x441968=JSON[_0xd29ba3(0xa1)](normalizeConfigForWrite(_0x34209b),null,0x2)+'\x0a';if(normalizedWriteCache[_0xd29ba3(0x8f)](_0x590547)===_0x441968)return;writeConfigFile(_0x590547,_0x34209b),normalizedWriteCache['set'](_0x590547,_0x441968);}function parseAndNormalizeConfig(_0x2c469f,_0x526128,_0x122638){const _0x589029=a285_0x5e0787,_0x111f03=parseCliConfigJsonFile(_0x2c469f,_0x526128,_0x122638),_0x5bd671=normalizeLegacyConfigShape(_0x111f03);if(_0x5bd671[_0x589029(0xac)])try{writeNormalizedConfigIfNeeded(_0x2c469f,_0x5bd671[_0x589029(0xa8)]);}catch{}return _0x5bd671[_0x589029(0xa8)];}export function loadRawConfigLayers(_0x133f33){const _0x2d186c=a285_0x5e0787;let _0x4f56c7={},_0x3476d7={};const _0x374923=resolveConfigPath(homedir());_0x374923&&(_0x4f56c7=parseAndNormalizeConfig(_0x374923,_0x2d186c(0xba),_0x2d186c(0xb9)));const _0x1c4fc5=_0x133f33??findProjectRootDirectory(),_0x8a6bec=resolveConfigPath(_0x1c4fc5);return _0x8a6bec&&(_0x3476d7=parseAndNormalizeConfig(_0x8a6bec,_0x2d186c(0xba),_0x2d186c(0xa2))),{'globalPath':_0x374923,'projectPath':_0x8a6bec,'globalConfig':_0x4f56c7,'projectConfig':_0x3476d7};}const INHERIT_WHITELIST=[a285_0x5e0787(0xb3),a285_0x5e0787(0xb8),a285_0x5e0787(0xbb),'format',a285_0x5e0787(0xbc),'pageSize',a285_0x5e0787(0x99),a285_0x5e0787(0x8d),a285_0x5e0787(0xa4),a285_0x5e0787(0x94),'runtimeDomain',a285_0x5e0787(0xae),a285_0x5e0787(0x91),a285_0x5e0787(0xc2),a285_0x5e0787(0xa5),a285_0x5e0787(0xc5),a285_0x5e0787(0xa6)];export function mergeRawConfigLayers(_0x2c9388){const _0x1fba64=a285_0x5e0787,{globalConfig:_0x1a8f6a,projectConfig:_0x14fcaa}=_0x2c9388,_0x4d4b78=!!_0x2c9388[_0x1fba64(0x93)]||Object[_0x1fba64(0xa9)](_0x14fcaa)[_0x1fba64(0x95)]>0x0;if(!_0x4d4b78)return mergeGlobalOnly(_0x1a8f6a);return mergeProjectFirst(_0x1a8f6a,_0x14fcaa);}function mergeGlobalOnly(_0x109a20){const _0x246a64=a285_0x5e0787,_0x5b55fe={..._0x109a20};delete _0x5b55fe[_0x246a64(0xab)];const _0x5c85b9=_0x109a20['apps']&&typeof _0x109a20[_0x246a64(0xc4)]===_0x246a64(0x9f)?_0x109a20[_0x246a64(0xc4)]:{};if(Object[_0x246a64(0xa9)](_0x5c85b9)['length']>0x0)_0x5b55fe[_0x246a64(0xc4)]=_0x5c85b9;if(_0x109a20[_0x246a64(0xb2)])_0x5b55fe[_0x246a64(0xb2)]=_0x109a20[_0x246a64(0xb2)];return _0x5b55fe;}function mergeProjectFirst(_0x3710f6,_0x59fb43){const _0x48acb6=a285_0x5e0787,_0x30a2b8={..._0x59fb43};delete _0x30a2b8[_0x48acb6(0xab)];for(const _0x12fccc of INHERIT_WHITELIST){!(_0x12fccc in _0x30a2b8)&&_0x12fccc in _0x3710f6&&(_0x30a2b8[_0x12fccc]=_0x3710f6[_0x12fccc]);}const _0x406291=_0x59fb43[_0x48acb6(0xc4)]&&typeof _0x59fb43[_0x48acb6(0xc4)]===_0x48acb6(0x9f)?_0x59fb43['apps']:{};return Object['keys'](_0x406291)[_0x48acb6(0x95)]>0x0?_0x30a2b8[_0x48acb6(0xc4)]=_0x406291:delete _0x30a2b8[_0x48acb6(0xc4)],_0x48acb6(0xb2)in _0x59fb43?_0x30a2b8[_0x48acb6(0xb2)]=_0x59fb43[_0x48acb6(0xb2)]:delete _0x30a2b8['defaultApp'],_0x30a2b8;}export function readRawConfigWithLayers(_0x27694b){const _0x1b9d19=loadRawConfigLayers(_0x27694b);return{'config':mergeRawConfigLayers(_0x1b9d19),'layers':_0x1b9d19};}export function readRawConfig(_0x3b3f45){return mergeRawConfigLayers(loadRawConfigLayers(_0x3b3f45));}function a285_0x5d50(_0x13b926,_0x10e3af){_0x13b926=_0x13b926-0x8b;const _0x4e418a=a285_0x4e41();let _0x5d5043=_0x4e418a[_0x13b926];return _0x5d5043;}export function readConfigFile(_0x47ac1d){const _0x1d5500=a285_0x5e0787;return parseAndNormalizeConfig(_0x47ac1d,_0x1d5500(0x9b));}export function writeConfigFile(_0x2b678d,_0x892fc7){const _0x5408c4=a285_0x5e0787,_0x12a768=dirname(_0x2b678d);!existsSync(_0x12a768)&&mkdirSync(_0x12a768,{'recursive':!![]});const _0x21e5e2=_0x2b678d+'.tmp';try{const _0x587389=normalizeConfigForWrite(_0x892fc7);writeFileSync(_0x21e5e2,JSON[_0x5408c4(0xa1)](_0x587389,null,0x2)+'\x0a',{'encoding':_0x5408c4(0xaf),'mode':0x180}),renameSync(_0x21e5e2,_0x2b678d);}catch(_0x13f097){try{unlinkSync(_0x21e5e2);}catch{}throw _0x13f097;}}export function resolveWriteConfigPath(_0x33814a){const _0x4d6897=a285_0x5e0787,_0x405990=_0x33814a===_0x4d6897(0xb5)?process[_0x4d6897(0x8b)]():homedir(),_0x1b3271=resolveConfigPath(_0x405990);return _0x1b3271??resolve(_0x405990,NEW_CONFIG_NAME);}
|
package/lib/context.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a286_0x105408=a286_0x4c26;(function(_0x5aea62,_0x553b1c){const _0x48ee18=a286_0x4c26,_0x5917a5=_0x5aea62();while(!![]){try{const _0x564fd6=-parseInt(_0x48ee18(0x1c2))/0x1+-parseInt(_0x48ee18(0x1a8))/0x2+-parseInt(_0x48ee18(0x1aa))/0x3*(parseInt(_0x48ee18(0x1bc))/0x4)+-parseInt(_0x48ee18(0x1c6))/0x5+parseInt(_0x48ee18(0x1a1))/0x6*(-parseInt(_0x48ee18(0x19b))/0x7)+-parseInt(_0x48ee18(0x1de))/0x8*(parseInt(_0x48ee18(0x1b4))/0x9)+parseInt(_0x48ee18(0x1d2))/0xa*(parseInt(_0x48ee18(0x1c7))/0xb);if(_0x564fd6===_0x553b1c)break;else _0x5917a5['push'](_0x5917a5['shift']());}catch(_0x1838df){_0x5917a5['push'](_0x5917a5['shift']());}}}(a286_0x4498,0xdd020));import{CLI_BIN_NAME}from'./constant/cli.js';function a286_0x4498(){const _0x4c8c7a=['trim','hasOwnProperty','some','app\x20profile\x20\x22','daily','projectConfig','337400JoMocS','merged','currentApp','global\x20Rabetbase\x20configuration','userDomain','apps','object','setRawCommand','template_base_url','project','apiDomain','map','1907520Qdlavd','source','1357972GeiGKc','cdn','keys','defaultApp','appDomain','kbServiceDomain','24Dytjvy','raw','./constant/domain.js','./utils/is-non-interactive.js','regionLocation','certificateDomain','apiGroup','676564wMOuhJ','config','4404489HevLvg','agentDomain','length','regionSource','string','./constant/env.js','global','project\x20Rabetbase\x20configuration','apiDir','globalConfig','54QwzIrg','localDomain','appcode','prototype','region','https://g.lovrabet.com/dist/lovrabet-skill','runtimeDomain','routingConfig','4eXjnLu','filter','call','cookie','platformDomain','domains','387694huJcob','kbDomain','env','skillDomain','1305445pbvmsa','1815esrHmv','skillHubDomain','values','join','production'];a286_0x4498=function(){return _0x4c8c7a;};return a286_0x4498();}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(_0x2f7575){return process.env[`RABETBASE_${_0x2f7575}`]||process.env[`LOVRABET_${_0x2f7575}`]||undefined;}function optionalString(_0x13f6d9){const _0x4cd81d=a286_0x4c26;return typeof _0x13f6d9===_0x4cd81d(0x1ae)&&_0x13f6d9[_0x4cd81d(0x1cc)]()?_0x13f6d9['trim']():undefined;}export function isRoutingRecoveryService(_0x26d1d0){const _0xd326ee=a286_0x4c26;return _0x26d1d0===_0xd326ee(0x1a9)||_0x26d1d0==='doctor';}export async function createContext(_0x2bc18d){const _0xb46ec6=a286_0x4c26,{config:_0x3ffc2c,layers:_0xadd7eb}=readRawConfigWithLayers(),_0x2050a1=buildConfig(_0x3ffc2c,_0x2bc18d,_0xadd7eb);await initGlobalEnvironment(_0x2050a1);const {getUserDomain:_0x39485e,getApiDomain:_0x52ba64}=await import('./constant/domain.js'),_0x3f7a00={'apiDomain':_0x52ba64(),'userDomain':_0x39485e()},_0x2f57f0=await buildAuth(_0x2050a1);logger['setLogPath'](process['cwd']());const _0x1c0798=(CLI_BIN_NAME+'\x20'+process['argv']['slice'](0x2)[_0xb46ec6(0x1ca)]('\x20'))[_0xb46ec6(0x1cc)]();logger[_0xb46ec6(0x1d9)](_0x1c0798);const {isNonInteractive:_0x360ccb}=await import(_0xb46ec6(0x1a4)),_0xf22a0b=_0x360ccb(_0x2bc18d);return{'config':_0x2050a1,'auth':_0x2f57f0,'logger':logger,'env':_0x3f7a00,'nonInteractive':_0xf22a0b};}export function buildConfigFromFlags(_0x79200f){const {config:_0x47f8ef,layers:_0x2b2cbb}=readRawConfigWithLayers();return buildConfig(_0x47f8ef,_0x79200f,_0x2b2cbb);}export async function initGlobalEnvironment(_0xb52211){const _0x59133f=a286_0x4c26,_0x3930ee=_0xb52211['regionSource']==='app'&&_0xb52211[_0x59133f(0x1d4)]?_0x59133f(0x1cf)+_0xb52211['currentApp']+'\x22':_0xb52211[_0x59133f(0x1ad)]==='project'?_0x59133f(0x1b1):_0xb52211[_0x59133f(0x1ad)]===_0x59133f(0x1b0)?_0x59133f(0x1d5):'Rabetbase\x20configuration';await initConfiguredEnvironment({'raw':_0xb52211['raw'],'configuredRegion':_0xb52211['regionConfiguredValue']??_0xb52211[_0x59133f(0x1a2)]?.[_0x59133f(0x1b8)]??_0xb52211[_0x59133f(0x1b8)],'regionLocation':_0x3930ee,'targetEnv':_0xb52211['env']});}async function initConfiguredEnvironment(_0x17740d){const _0x374f1a=a286_0x4c26,_0x5a636e=resolveConfiguredRegion(_0x17740d['configuredRegion'],_0x17740d[_0x374f1a(0x1a5)]),_0x3fcea9=resolveEnterpriseRoutingManifest(_0x17740d['raw']?.['routing']),_0x4b821f={'region':_0x5a636e,'apiDomain':_0x3fcea9?_0x3fcea9[_0x374f1a(0x1c1)][_0x374f1a(0x1dc)]:optionalString(_0x17740d[_0x374f1a(0x1a2)]?.[_0x374f1a(0x1dc)]),'userDomain':_0x3fcea9?_0x3fcea9['domains']['userDomain']:optionalString(_0x17740d[_0x374f1a(0x1a2)]?.[_0x374f1a(0x1d6)]),'runtimeDomain':_0x3fcea9?_0x3fcea9[_0x374f1a(0x1c1)][_0x374f1a(0x1ba)]:optionalString(_0x17740d['raw']?.['runtimeDomain']),'skillDomain':_0x3fcea9?_0x3fcea9['domains'][_0x374f1a(0x1c5)]:optionalString(_0x17740d[_0x374f1a(0x1a2)]?.['skillDomain'])||optionalString(_0x17740d[_0x374f1a(0x1a2)]?.[_0x374f1a(0x1c8)])||optionalString(_0x17740d[_0x374f1a(0x1a2)]?.[_0x374f1a(0x1ab)])||optionalString(_0x17740d[_0x374f1a(0x1a2)]?.[_0x374f1a(0x1c0)]),'kbDomain':_0x3fcea9?_0x3fcea9[_0x374f1a(0x1c1)][_0x374f1a(0x1c3)]:optionalString(_0x17740d[_0x374f1a(0x1a2)]?.[_0x374f1a(0x1c3)])||optionalString(_0x17740d[_0x374f1a(0x1a2)]?.['agentDomain'])||optionalString(_0x17740d[_0x374f1a(0x1a2)]?.[_0x374f1a(0x1c0)]),'kbServiceDomain':_0x3fcea9?_0x3fcea9[_0x374f1a(0x1c1)][_0x374f1a(0x1a0)]:optionalString(_0x17740d[_0x374f1a(0x1a2)]?.['kbServiceDomain']),'appDomain':_0x3fcea9?_0x3fcea9[_0x374f1a(0x1c1)][_0x374f1a(0x19f)]:optionalString(_0x17740d[_0x374f1a(0x1a2)]?.[_0x374f1a(0x19f)]),'localDomain':_0x3fcea9?_0x3fcea9[_0x374f1a(0x1c1)][_0x374f1a(0x1b5)]:optionalString(_0x17740d['raw']?.[_0x374f1a(0x1b5)]),'certificateDomain':_0x3fcea9?_0x3fcea9[_0x374f1a(0x1c1)][_0x374f1a(0x1a6)]:optionalString(_0x17740d[_0x374f1a(0x1a2)]?.[_0x374f1a(0x1a6)]),'cdn':_0x3fcea9?.[_0x374f1a(0x19c)],'allowOfficialKbServiceDefault':!(_0x3fcea9!==undefined||[_0x374f1a(0x1dc),'userDomain',_0x374f1a(0x1ba),_0x374f1a(0x1c5),_0x374f1a(0x1c8),'kbDomain',_0x374f1a(0x1a0),'agentDomain',_0x374f1a(0x1c0),_0x374f1a(0x19f),_0x374f1a(0x1b5),_0x374f1a(0x1a6)][_0x374f1a(0x1ce)](_0x2be3a0=>Object[_0x374f1a(0x1b7)]['hasOwnProperty'][_0x374f1a(0x1be)](_0x17740d[_0x374f1a(0x1a2)]??{},_0x2be3a0)))},{initEnv:_0x3cb64a}=await import(_0x374f1a(0x1af)),{initDomains:_0x62ee30}=await import(_0x374f1a(0x1a3));_0x3cb64a(_0x17740d['targetEnv']),_0x62ee30(_0x4b821f);}export async function initMultiAppEnvironment(_0x4692e2){const _0x1f1ec3=a286_0x4c26;await initConfiguredEnvironment({'raw':_0x4692e2[_0x1f1ec3(0x1bb)],'configuredRegion':_0x4692e2[_0x1f1ec3(0x1b8)],'regionLocation':'app\x20profile\x20\x22'+_0x4692e2['name']+'\x22','targetEnv':_0x4692e2[_0x1f1ec3(0x1c4)]===_0x1f1ec3(0x1d0)?'daily':_0x1f1ec3(0x1cb)});}function a286_0x4c26(_0x5cb52f,_0x3ed8d9){_0x5cb52f=_0x5cb52f-0x19a;const _0x449879=a286_0x4498();let _0x4c2612=_0x449879[_0x5cb52f];return _0x4c2612;}export function getConfigAppCode(_0x4f8d77){const _0x5dd443=a286_0x4c26,_0x120622=readRawConfig(_0x4f8d77);if(_0x120622[_0x5dd443(0x1d7)]&&typeof _0x120622['apps']==='object'){const _0x42764f=_0x120622['defaultApp'];if(_0x42764f)return _0x120622['apps'][_0x42764f]?.[_0x5dd443(0x1b6)]?String(_0x120622[_0x5dd443(0x1d7)][_0x42764f]['appcode'])['trim']():undefined;const _0x4c346f=Object[_0x5dd443(0x1c9)](_0x120622[_0x5dd443(0x1d7)]);if(_0x4c346f[_0x5dd443(0x1ac)]===0x1&&_0x4c346f[0x0]?.[_0x5dd443(0x1b6)])return String(_0x4c346f[0x0][_0x5dd443(0x1b6)])['trim']();}const _0x1ff509=_0x120622[_0x5dd443(0x1b6)]||_0x120622['app'];if(typeof _0x1ff509!==_0x5dd443(0x1ae)||_0x1ff509['trim']()==='')return undefined;return _0x1ff509[_0x5dd443(0x1cc)]();}const CONNECTION_ROUTING_KEYS=['routing',a286_0x105408(0x1dc),'userDomain','runtimeDomain',a286_0x105408(0x1c5),a286_0x105408(0x1c8),a286_0x105408(0x1c3),'kbServiceDomain','agentDomain','platformDomain','appDomain',a286_0x105408(0x1b5),a286_0x105408(0x1a6)];function withAppProfileRouting(_0xec9f5a,_0x1b129a){const _0x4fdff3=a286_0x105408;if(!_0x1b129a||_0x1b129a[_0x4fdff3(0x1a0)]===undefined)return _0xec9f5a;return{..._0xec9f5a,'kbServiceDomain':_0x1b129a[_0x4fdff3(0x1a0)]};}function pickConnectionRoutingConfig(_0x2cff78,_0x33d7d4){const _0x248365={'region':_0x33d7d4};for(const _0x109935 of CONNECTION_ROUTING_KEYS){if(_0x2cff78[_0x109935]!==undefined)_0x248365[_0x109935]=_0x2cff78[_0x109935];}return _0x248365;}export function getMultiAppConfigs(_0x23e88b=a286_0x105408(0x1db),_0x22fe3e){const _0x9332cc=a286_0x105408,_0x240cb8=loadRawConfigLayers(_0x22fe3e);let _0x41f49a,_0x310abd;const _0x4a9c3b=mergeRawConfigLayers(_0x240cb8),_0x36f9ca=_0x240cb8[_0x9332cc(0x1b3)][_0x9332cc(0x1d7)]&&typeof _0x240cb8[_0x9332cc(0x1b3)][_0x9332cc(0x1d7)]==='object'?_0x240cb8[_0x9332cc(0x1b3)]['apps']:{},_0x8f8ae8=_0x240cb8[_0x9332cc(0x1d1)]['apps']&&typeof _0x240cb8['projectConfig']['apps']===_0x9332cc(0x1d8)?_0x240cb8[_0x9332cc(0x1d1)]['apps']:{};_0x23e88b===_0x9332cc(0x1d3)?(_0x41f49a={..._0x36f9ca,..._0x8f8ae8},_0x310abd=_0x4a9c3b[_0x9332cc(0x19e)]):(_0x41f49a=_0x240cb8[_0x9332cc(0x1d1)][_0x9332cc(0x1d7)],_0x310abd=_0x240cb8[_0x9332cc(0x1d1)][_0x9332cc(0x19e)]);!_0x310abd&&_0x41f49a&&typeof _0x41f49a===_0x9332cc(0x1d8)&&Object['keys'](_0x41f49a)['length']===0x1&&(_0x310abd=Object[_0x9332cc(0x19d)](_0x41f49a)[0x0]);if(!_0x41f49a||typeof _0x41f49a!==_0x9332cc(0x1d8)||Object[_0x9332cc(0x19d)](_0x41f49a)[_0x9332cc(0x1ac)]===0x0)return null;return Object['entries'](_0x41f49a)[_0x9332cc(0x1dd)](([_0x572ba1,_0x5832e9])=>{const _0x229985=_0x9332cc,_0x4991b8=_0x23e88b===_0x229985(0x1db)||Object[_0x229985(0x1b7)][_0x229985(0x1cd)]['call'](_0x8f8ae8,_0x572ba1),_0x13e544=withAppProfileRouting(_0x4991b8?_0x4a9c3b:_0x240cb8[_0x229985(0x1b3)],_0x5832e9),_0x1a4e76=resolveEffectiveRegion({'appRegion':_0x5832e9?.['region'],'projectRegion':_0x4991b8?_0x240cb8[_0x229985(0x1d1)][_0x229985(0x1b8)]:undefined,'globalRegion':_0x240cb8[_0x229985(0x1b3)][_0x229985(0x1b8)],'mergedRegion':_0x13e544[_0x229985(0x1b8)],'appName':_0x572ba1});return{'name':_0x572ba1,'appcode':_0x5832e9?.[_0x229985(0x1b6)]||'','apiGroup':optionalString(_0x5832e9?.[_0x229985(0x1a7)]),'isDefault':_0x572ba1===_0x310abd,'region':_0x1a4e76[_0x229985(0x1b8)],'regionSource':_0x1a4e76[_0x229985(0x19a)],'env':_0x5832e9?.[_0x229985(0x1c4)],'apiDir':optionalString(_0x5832e9?.['apiDir'])||optionalString(_0x13e544[_0x229985(0x1b2)]),'cookie':_0x5832e9?.[_0x229985(0x1bf)]||undefined,'routingConfig':pickConnectionRoutingConfig(_0x13e544,_0x1a4e76['region'])};})[_0x9332cc(0x1bd)](_0x165975=>_0x165975['appcode']);}export function getTemplateBaseUrl(_0x372393){const _0x35cc67=a286_0x105408,_0x424251=readRawConfig(_0x372393);if(_0x424251['template_base_url']&&typeof _0x424251[_0x35cc67(0x1da)]===_0x35cc67(0x1ae))return _0x424251['template_base_url']['replace'](/\/$/,'');return _0x35cc67(0x1b9);}function buildConfig(_0x8882d8,_0x21b65a,_0xa3be55){const _0x7fb1ca=a286_0x105408,_0x3060ce=resolveAppConfig({'raw':_0x8882d8,'flags':_0x21b65a,'layers':_0xa3be55,'readEnv':env}),_0x2eb779=_0x3060ce[_0x7fb1ca(0x1d4)]?_0x3060ce[_0x7fb1ca(0x1d7)][_0x3060ce[_0x7fb1ca(0x1d4)]]:undefined;return{..._0x3060ce,'raw':withAppProfileRouting(_0x8882d8,_0x2eb779)};}export function resolveApiFilePath(_0x39283f,_0x4b1240,_0xcce24c){return resolveApiModelSource(_0x39283f,_0x4b1240,_0xcce24c)['filePath'];}
|
|
1
|
+
const a286_0x4a1f00=a286_0x29c1;(function(_0x3a6717,_0x2a0285){const _0x3c2d02=a286_0x29c1,_0x49b986=_0x3a6717();while(!![]){try{const _0x7f13a=-parseInt(_0x3c2d02(0x11e))/0x1*(-parseInt(_0x3c2d02(0x114))/0x2)+parseInt(_0x3c2d02(0x118))/0x3+parseInt(_0x3c2d02(0x13c))/0x4*(parseInt(_0x3c2d02(0x121))/0x5)+-parseInt(_0x3c2d02(0x126))/0x6*(-parseInt(_0x3c2d02(0x152))/0x7)+-parseInt(_0x3c2d02(0x123))/0x8+parseInt(_0x3c2d02(0x13f))/0x9+-parseInt(_0x3c2d02(0x113))/0xa;if(_0x7f13a===_0x2a0285)break;else _0x49b986['push'](_0x49b986['shift']());}catch(_0x21edff){_0x49b986['push'](_0x49b986['shift']());}}}(a286_0x4bb1,0x4c7e2));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 a286_0x4bb1(){const _0x70e51d=['cwd','skillHubDomain','global','9756iCfNok','project','template_base_url','2795DzKJzp','raw','4912288CsKjKp','./utils/is-non-interactive.js','runtimeDomain','1252182eGhMUS','env','domains','replace','region','apiDir','global\x20Rabetbase\x20configuration','keys','defaultApp','kbServiceDomain','userDomain','trim','filePath','kbDomain','currentApp','setLogPath','./constant/domain.js','merged','globalConfig','routing','call','./constant/env.js','2852QGiBPl','apiDomain','app','1415583ezgxSj','localDomain','values','app\x20profile\x20\x22','argv','string','https://g.lovrabet.com/dist/lovrabet-skill','daily','skillDomain','agentDomain','setRawCommand','Rabetbase\x20configuration','projectConfig','entries','config','platformDomain','apps','appcode','regionConfiguredValue','14IhJFGR','hasOwnProperty','length','project\x20Rabetbase\x20configuration','object','5415100HUqmmg','6xtcKGW','regionSource','slice','appDomain','1399032SAXHRp','prototype','certificateDomain'];a286_0x4bb1=function(){return _0x70e51d;};return a286_0x4bb1();}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(_0xcb6e2a){return process.env[`RABETBASE_${_0xcb6e2a}`]||process.env[`LOVRABET_${_0xcb6e2a}`]||undefined;}function a286_0x29c1(_0x968b9f,_0x23f4f7){_0x968b9f=_0x968b9f-0x113;const _0x4bb1d8=a286_0x4bb1();let _0x29c162=_0x4bb1d8[_0x968b9f];return _0x29c162;}function optionalString(_0xbd905a){const _0x20926d=a286_0x29c1;return typeof _0xbd905a===_0x20926d(0x144)&&_0xbd905a['trim']()?_0xbd905a['trim']():undefined;}export function isRoutingRecoveryService(_0x3dac76){const _0x2ad286=a286_0x29c1;return _0x3dac76===_0x2ad286(0x14d)||_0x3dac76==='doctor';}export async function createContext(_0x2be224){const _0xe5787a=a286_0x29c1,{config:_0x4ab434,layers:_0x3ec8ea}=readRawConfigWithLayers(),_0x31d200=buildConfig(_0x4ab434,_0x2be224,_0x3ec8ea);await initGlobalEnvironment(_0x31d200);const {getUserDomain:_0x841f0a,getApiDomain:_0x538efc}=await import(_0xe5787a(0x136)),_0x316233={'apiDomain':_0x538efc(),'userDomain':_0x841f0a()},_0x2b3c33=await buildAuth(_0x31d200);logger[_0xe5787a(0x135)](process[_0xe5787a(0x11b)]());const _0x1a28a3=(CLI_BIN_NAME+'\x20'+process[_0xe5787a(0x143)][_0xe5787a(0x116)](0x2)['join']('\x20'))[_0xe5787a(0x131)]();logger[_0xe5787a(0x149)](_0x1a28a3);const {isNonInteractive:_0xc5ca07}=await import(_0xe5787a(0x124)),_0x2f99ba=_0xc5ca07(_0x2be224);return{'config':_0x31d200,'auth':_0x2b3c33,'logger':logger,'env':_0x316233,'nonInteractive':_0x2f99ba};}export function buildConfigFromFlags(_0x407756){const {config:_0x339eb5,layers:_0x5a4891}=readRawConfigWithLayers();return buildConfig(_0x339eb5,_0x407756,_0x5a4891);}export async function initGlobalEnvironment(_0x45c6a1){const _0x2a3f83=a286_0x29c1,_0x401e99=_0x45c6a1[_0x2a3f83(0x115)]===_0x2a3f83(0x13e)&&_0x45c6a1['currentApp']?_0x2a3f83(0x142)+_0x45c6a1[_0x2a3f83(0x134)]+'\x22':_0x45c6a1[_0x2a3f83(0x115)]===_0x2a3f83(0x11f)?_0x2a3f83(0x155):_0x45c6a1['regionSource']===_0x2a3f83(0x11d)?_0x2a3f83(0x12c):_0x2a3f83(0x14a);await initConfiguredEnvironment({'raw':_0x45c6a1[_0x2a3f83(0x122)],'configuredRegion':_0x45c6a1[_0x2a3f83(0x151)]??_0x45c6a1[_0x2a3f83(0x122)]?.[_0x2a3f83(0x12a)]??_0x45c6a1[_0x2a3f83(0x12a)],'regionLocation':_0x401e99,'targetEnv':_0x45c6a1[_0x2a3f83(0x127)]});}async function initConfiguredEnvironment(_0x153d98){const _0x4ae9fd=a286_0x29c1,_0x4c2dfa=resolveConfiguredRegion(_0x153d98['configuredRegion'],_0x153d98['regionLocation']),_0x1197ca=resolveEnterpriseRoutingManifest(_0x153d98['raw']?.[_0x4ae9fd(0x139)]),_0x409ff5={'region':_0x4c2dfa,'apiDomain':_0x1197ca?_0x1197ca[_0x4ae9fd(0x128)][_0x4ae9fd(0x13d)]:optionalString(_0x153d98[_0x4ae9fd(0x122)]?.['apiDomain']),'userDomain':_0x1197ca?_0x1197ca['domains']['userDomain']:optionalString(_0x153d98[_0x4ae9fd(0x122)]?.[_0x4ae9fd(0x130)]),'runtimeDomain':_0x1197ca?_0x1197ca[_0x4ae9fd(0x128)][_0x4ae9fd(0x125)]:optionalString(_0x153d98[_0x4ae9fd(0x122)]?.['runtimeDomain']),'skillDomain':_0x1197ca?_0x1197ca[_0x4ae9fd(0x128)]['skillDomain']:optionalString(_0x153d98[_0x4ae9fd(0x122)]?.[_0x4ae9fd(0x147)])||optionalString(_0x153d98['raw']?.[_0x4ae9fd(0x11c)])||optionalString(_0x153d98[_0x4ae9fd(0x122)]?.[_0x4ae9fd(0x148)])||optionalString(_0x153d98['raw']?.[_0x4ae9fd(0x14e)]),'kbDomain':_0x1197ca?_0x1197ca[_0x4ae9fd(0x128)][_0x4ae9fd(0x133)]:optionalString(_0x153d98[_0x4ae9fd(0x122)]?.[_0x4ae9fd(0x133)])||optionalString(_0x153d98[_0x4ae9fd(0x122)]?.[_0x4ae9fd(0x148)])||optionalString(_0x153d98['raw']?.[_0x4ae9fd(0x14e)]),'kbServiceDomain':_0x1197ca?_0x1197ca[_0x4ae9fd(0x128)][_0x4ae9fd(0x12f)]:optionalString(_0x153d98['raw']?.[_0x4ae9fd(0x12f)]),'appDomain':_0x1197ca?_0x1197ca[_0x4ae9fd(0x128)][_0x4ae9fd(0x117)]:optionalString(_0x153d98[_0x4ae9fd(0x122)]?.[_0x4ae9fd(0x117)]),'localDomain':_0x1197ca?_0x1197ca[_0x4ae9fd(0x128)]['localDomain']:optionalString(_0x153d98['raw']?.[_0x4ae9fd(0x140)]),'certificateDomain':_0x1197ca?_0x1197ca[_0x4ae9fd(0x128)]['certificateDomain']:optionalString(_0x153d98[_0x4ae9fd(0x122)]?.['certificateDomain']),'cdn':_0x1197ca?.['cdn'],'allowOfficialKbServiceDefault':!(_0x1197ca!==undefined||[_0x4ae9fd(0x13d),_0x4ae9fd(0x130),_0x4ae9fd(0x125),'skillDomain',_0x4ae9fd(0x11c),_0x4ae9fd(0x133),_0x4ae9fd(0x12f),'agentDomain','platformDomain',_0x4ae9fd(0x117),'localDomain',_0x4ae9fd(0x11a)]['some'](_0x97acf5=>Object[_0x4ae9fd(0x119)][_0x4ae9fd(0x153)][_0x4ae9fd(0x13a)](_0x153d98[_0x4ae9fd(0x122)]??{},_0x97acf5)))},{initEnv:_0x41b8e8}=await import(_0x4ae9fd(0x13b)),{initDomains:_0x76cd19}=await import(_0x4ae9fd(0x136));_0x41b8e8(_0x153d98['targetEnv']),_0x76cd19(_0x409ff5);}export async function initMultiAppEnvironment(_0xd2bdd9){const _0x5a3289=a286_0x29c1;await initConfiguredEnvironment({'raw':_0xd2bdd9['routingConfig'],'configuredRegion':_0xd2bdd9[_0x5a3289(0x12a)],'regionLocation':'app\x20profile\x20\x22'+_0xd2bdd9['name']+'\x22','targetEnv':_0xd2bdd9['env']===_0x5a3289(0x146)?_0x5a3289(0x146):'production'});}export function getConfigAppCode(_0x4bf753){const _0x2fae7a=a286_0x29c1,_0x4f7b89=readRawConfig(_0x4bf753);if(_0x4f7b89[_0x2fae7a(0x14f)]&&typeof _0x4f7b89['apps']==='object'){const _0x1e853d=_0x4f7b89['defaultApp'];if(_0x1e853d)return _0x4f7b89[_0x2fae7a(0x14f)][_0x1e853d]?.[_0x2fae7a(0x150)]?String(_0x4f7b89[_0x2fae7a(0x14f)][_0x1e853d][_0x2fae7a(0x150)])[_0x2fae7a(0x131)]():undefined;const _0x22b13c=Object[_0x2fae7a(0x141)](_0x4f7b89[_0x2fae7a(0x14f)]);if(_0x22b13c[_0x2fae7a(0x154)]===0x1&&_0x22b13c[0x0]?.[_0x2fae7a(0x150)])return String(_0x22b13c[0x0][_0x2fae7a(0x150)])[_0x2fae7a(0x131)]();}const _0x2f13de=_0x4f7b89[_0x2fae7a(0x150)]||_0x4f7b89[_0x2fae7a(0x13e)];if(typeof _0x2f13de!==_0x2fae7a(0x144)||_0x2f13de[_0x2fae7a(0x131)]()==='')return undefined;return _0x2f13de[_0x2fae7a(0x131)]();}const CONNECTION_ROUTING_KEYS=[a286_0x4a1f00(0x139),a286_0x4a1f00(0x13d),a286_0x4a1f00(0x130),a286_0x4a1f00(0x125),a286_0x4a1f00(0x147),a286_0x4a1f00(0x11c),a286_0x4a1f00(0x133),a286_0x4a1f00(0x12f),a286_0x4a1f00(0x148),a286_0x4a1f00(0x14e),'appDomain','localDomain',a286_0x4a1f00(0x11a)];function withAppProfileRouting(_0x4b5292,_0x38876b){const _0x41fce8=a286_0x4a1f00;if(!_0x38876b||_0x38876b[_0x41fce8(0x12f)]===undefined)return _0x4b5292;return{..._0x4b5292,'kbServiceDomain':_0x38876b[_0x41fce8(0x12f)]};}function pickConnectionRoutingConfig(_0x544f54,_0x59bf39){const _0x4fe0fe={'region':_0x59bf39};for(const _0x5d3716 of CONNECTION_ROUTING_KEYS){if(_0x544f54[_0x5d3716]!==undefined)_0x4fe0fe[_0x5d3716]=_0x544f54[_0x5d3716];}return _0x4fe0fe;}export function getMultiAppConfigs(_0x2cf5d9='project',_0x22f21){const _0xf222db=a286_0x4a1f00,_0x2c0ca7=loadRawConfigLayers(_0x22f21);let _0x78a1e5,_0x5869c5;const _0x5070e9=mergeRawConfigLayers(_0x2c0ca7),_0x164649=_0x2c0ca7[_0xf222db(0x138)]['apps']&&typeof _0x2c0ca7['globalConfig'][_0xf222db(0x14f)]==='object'?_0x2c0ca7[_0xf222db(0x138)][_0xf222db(0x14f)]:{},_0x5dbe1e=_0x2c0ca7['projectConfig'][_0xf222db(0x14f)]&&typeof _0x2c0ca7['projectConfig'][_0xf222db(0x14f)]===_0xf222db(0x156)?_0x2c0ca7[_0xf222db(0x14b)][_0xf222db(0x14f)]:{};_0x2cf5d9===_0xf222db(0x137)?(_0x78a1e5={..._0x164649,..._0x5dbe1e},_0x5869c5=_0x5070e9[_0xf222db(0x12e)]):(_0x78a1e5=_0x2c0ca7[_0xf222db(0x14b)][_0xf222db(0x14f)],_0x5869c5=_0x2c0ca7[_0xf222db(0x14b)][_0xf222db(0x12e)]);!_0x5869c5&&_0x78a1e5&&typeof _0x78a1e5===_0xf222db(0x156)&&Object[_0xf222db(0x12d)](_0x78a1e5)[_0xf222db(0x154)]===0x1&&(_0x5869c5=Object[_0xf222db(0x12d)](_0x78a1e5)[0x0]);if(!_0x78a1e5||typeof _0x78a1e5!==_0xf222db(0x156)||Object[_0xf222db(0x12d)](_0x78a1e5)[_0xf222db(0x154)]===0x0)return null;return Object[_0xf222db(0x14c)](_0x78a1e5)['map'](([_0x4dbc47,_0x1d6c1c])=>{const _0x7fdc1=_0xf222db,_0x21b4ea=_0x2cf5d9===_0x7fdc1(0x11f)||Object[_0x7fdc1(0x119)]['hasOwnProperty']['call'](_0x5dbe1e,_0x4dbc47),_0x24865a=withAppProfileRouting(_0x21b4ea?_0x5070e9:_0x2c0ca7[_0x7fdc1(0x138)],_0x1d6c1c),_0x517eba=resolveEffectiveRegion({'appRegion':_0x1d6c1c?.['region'],'projectRegion':_0x21b4ea?_0x2c0ca7[_0x7fdc1(0x14b)]['region']:undefined,'globalRegion':_0x2c0ca7[_0x7fdc1(0x138)]['region'],'mergedRegion':_0x24865a[_0x7fdc1(0x12a)],'appName':_0x4dbc47});return{'name':_0x4dbc47,'appcode':_0x1d6c1c?.['appcode']||'','apiGroup':optionalString(_0x1d6c1c?.['apiGroup']),'isDefault':_0x4dbc47===_0x5869c5,'region':_0x517eba['region'],'regionSource':_0x517eba['source'],'env':_0x1d6c1c?.[_0x7fdc1(0x127)],'apiDir':optionalString(_0x1d6c1c?.[_0x7fdc1(0x12b)])||optionalString(_0x24865a['apiDir']),'cookie':_0x1d6c1c?.['cookie']||undefined,'routingConfig':pickConnectionRoutingConfig(_0x24865a,_0x517eba['region'])};})['filter'](_0x1a8b4d=>_0x1a8b4d[_0xf222db(0x150)]);}export function getTemplateBaseUrl(_0x5ea8ef){const _0x260a6d=a286_0x4a1f00,_0x1b6dc0=readRawConfig(_0x5ea8ef);if(_0x1b6dc0['template_base_url']&&typeof _0x1b6dc0[_0x260a6d(0x120)]===_0x260a6d(0x144))return _0x1b6dc0[_0x260a6d(0x120)][_0x260a6d(0x129)](/\/$/,'');return _0x260a6d(0x145);}function buildConfig(_0x1a622b,_0x957e0b,_0x3c9b44){const _0x5e0297=a286_0x4a1f00,_0x2006f2=resolveAppConfig({'raw':_0x1a622b,'flags':_0x957e0b,'layers':_0x3c9b44,'readEnv':env}),_0x366a42=_0x2006f2[_0x5e0297(0x134)]?_0x2006f2['apps'][_0x2006f2[_0x5e0297(0x134)]]:undefined;return{..._0x2006f2,'raw':withAppProfileRouting(_0x1a622b,_0x366a42)};}export function resolveApiFilePath(_0x14ad1c,_0x4cb9fe,_0x1c0957){const _0x5ebfee=a286_0x4a1f00;return resolveApiModelSource(_0x14ad1c,_0x4cb9fe,_0x1c0957)[_0x5ebfee(0x132)];}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a287_0x404435=a287_0xe75a;(function(_0x2175cb,_0x4b3037){const _0x42d0c5=a287_0xe75a,_0x4b2eb9=_0x2175cb();while(!![]){try{const _0x4aaa96=-parseInt(_0x42d0c5(0x90))/0x1*(parseInt(_0x42d0c5(0x85))/0x2)+-parseInt(_0x42d0c5(0x84))/0x3*(parseInt(_0x42d0c5(0x95))/0x4)+parseInt(_0x42d0c5(0x8a))/0x5+-parseInt(_0x42d0c5(0x7e))/0x6+-parseInt(_0x42d0c5(0x7a))/0x7+-parseInt(_0x42d0c5(0x9a))/0x8+-parseInt(_0x42d0c5(0x9c))/0x9*(-parseInt(_0x42d0c5(0x7f))/0xa);if(_0x4aaa96===_0x4b3037)break;else _0x4b2eb9['push'](_0x4b2eb9['shift']());}catch(_0x4f1a4c){_0x4b2eb9['push'](_0x4b2eb9['shift']());}}}(a287_0x7e2d,0x403f8));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';function a287_0x7e2d(){const _0x48cf7b=['exec','startsWith','2897440RcgWOR','.cts','90uGLqyW','map','push','filter','.mjs','3451588qDhJpF','endsWith','tableName','length','720498KCMmqC','1763130WzQQAM','flatMap','cwd','get','size','589755UgYRLp','30PRoUVM','.tsx','isFile','has','.mts','978135fVSGZy','alias','defaultProfile','.ts','stringify','.js','34911fKogvc','add','.cjs','datasetCode','name','4ZVigUA','index','set'];a287_0x7e2d=function(){return _0x48cf7b;};return a287_0x7e2d();}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_0x404435(0x8d),a287_0x404435(0x86),a287_0x404435(0x89),a287_0x404435(0x9b),a287_0x404435(0x8f),'.jsx',a287_0x404435(0x79),a287_0x404435(0x92)],LOCAL_REEXPORT_RE=/\bexport\s+(?:type\s+)?(?:\{[\s\S]*?\}|\*)\s+from\s*["']([^"']+)["']/g,SOURCE_EXTENSIONS_BY_RUNTIME_EXTENSION={'.js':['.ts',a287_0x404435(0x86)],'.jsx':[a287_0x404435(0x86)],'.mjs':[a287_0x404435(0x89)],'.cjs':[a287_0x404435(0x9b)]};function parseApiFile(_0x4460a2){const _0x215e9b=a287_0x404435;return parseLegacyApiModels(_0x4460a2)[_0x215e9b(0x80)](_0xbee0d5=>_0xbee0d5[_0x215e9b(0x8b)]?[{'alias':_0xbee0d5[_0x215e9b(0x8b)],'datasetCode':_0xbee0d5[_0x215e9b(0x93)],'tableName':_0xbee0d5[_0x215e9b(0x7c)],'name':_0xbee0d5[_0x215e9b(0x94)]}]:[]);}function isWithinRoot(_0xf47d2,_0x58f98a){const _0x29764d=relative(_0xf47d2,_0x58f98a);return _0x29764d===''||!_0x29764d['startsWith']('..')&&!isAbsolute(_0x29764d);}function resolveExistingFile(_0x473cb9){const _0x42055a=a287_0x404435;if(!existsSync(_0x473cb9))return undefined;try{return statSync(_0x473cb9)[_0x42055a(0x87)]()?realpathSync(_0x473cb9):undefined;}catch{return undefined;}}function reexportCandidatePaths(_0x28d39c){const _0x305f49=a287_0x404435,_0x180316=extname(_0x28d39c);if(!_0x180316)return[...SOURCE_FILE_EXTENSIONS[_0x305f49(0x9d)](_0x3f6a02=>''+_0x28d39c+_0x3f6a02),...SOURCE_FILE_EXTENSIONS[_0x305f49(0x9d)](_0x140495=>resolve(_0x28d39c,_0x305f49(0x96)+_0x140495))];const _0x3e9817=SOURCE_EXTENSIONS_BY_RUNTIME_EXTENSION[_0x180316];if(!_0x3e9817)return[_0x28d39c];const _0x27c045=_0x28d39c['slice'](0x0,-_0x180316[_0x305f49(0x7d)]);return[..._0x3e9817['map'](_0x36d602=>''+_0x27c045+_0x36d602),_0x28d39c];}function resolveLocalReexport(_0x3cab33,_0xe4b0e2,_0x3f570a){const _0x120e67=a287_0x404435;if(!_0xe4b0e2['startsWith']('./')&&!_0xe4b0e2[_0x120e67(0x99)]('../'))return undefined;const _0x2fd568=resolve(dirname(_0x3cab33),_0xe4b0e2);if(!isWithinRoot(_0x3f570a,_0x2fd568))return undefined;for(const _0x1f95c4 of reexportCandidatePaths(_0x2fd568)){const _0x317c61=resolveExistingFile(_0x1f95c4);if(_0x317c61&&isWithinRoot(_0x3f570a,_0x317c61))return _0x317c61;}return undefined;}function parseApiFileTree(_0x303a8a,_0x1e7864,_0x2b1303,_0x12f52a){const _0x599a7c=a287_0x404435,_0x371a55=resolveExistingFile(_0x303a8a);if(!_0x371a55)return[];const _0x3d2a9c=_0x2b1303[_0x599a7c(0x82)](_0x371a55);if(_0x3d2a9c!==undefined&&_0x3d2a9c<=_0x12f52a)return[];_0x2b1303[_0x599a7c(0x97)](_0x371a55,_0x12f52a);const _0x5608e0=readFileSync(_0x371a55,'utf-8'),_0x4280bf=parseApiFile(_0x5608e0);if(_0x12f52a>=MAX_LOCAL_REEXPORT_DEPTH)return _0x4280bf;const _0x4718ae=new RegExp(LOCAL_REEXPORT_RE['source'],LOCAL_REEXPORT_RE['flags']);let _0x208e93;while((_0x208e93=_0x4718ae[_0x599a7c(0x98)](_0x5608e0))!==null){const _0x1a7c15=resolveLocalReexport(_0x371a55,_0x208e93[0x1],_0x1e7864);_0x1a7c15&&_0x4280bf[_0x599a7c(0x9e)](...parseApiFileTree(_0x1a7c15,_0x1e7864,_0x2b1303,_0x12f52a+0x1));}return _0x4280bf;}function aliasProjectRoot(_0x3bbc05){const _0x4762db=findProjectRootDirectory(dirname(_0x3bbc05));try{return realpathSync(_0x4762db);}catch{return _0x4762db;}}function uniqueAliasEntries(_0x3bc26e){const _0x4e06db=a287_0x404435,_0x166414=new Set();return _0x3bc26e[_0x4e06db(0x78)](_0x239b19=>{const _0x3c9fb5=_0x4e06db,_0x495818=JSON[_0x3c9fb5(0x8e)](_0x239b19);if(_0x166414['has'](_0x495818))return![];return _0x166414[_0x3c9fb5(0x91)](_0x495818),!![];});}export function loadAliasMap(_0x485536,_0x9392cb,_0x25151a,_0x4ca263){const _0x5227ea=a287_0x404435,_0x1a1dd6=resolve(_0x25151a??resolve(process[_0x5227ea(0x81)](),_0x485536,'api.ts')),_0x4f7c4c=_0x4ca263?_0x1a1dd6+'#'+_0x4ca263:_0x1a1dd6;if(cache[_0x5227ea(0x88)](_0x4f7c4c))return cache[_0x5227ea(0x82)](_0x4f7c4c);if(!existsSync(_0x1a1dd6))return cache[_0x5227ea(0x97)](_0x4f7c4c,[]),[];try{if(_0x1a1dd6[_0x5227ea(0x7b)](MODEL_REGISTRY_FILE_NAME)){const _0x36e021=readModelRegistry(_0x1a1dd6),_0x1eea53=_0x4ca263??_0x36e021?.[_0x5227ea(0x8c)],_0x693d82=_0x1eea53&&_0x36e021?getProfileModels(_0x36e021,_0x1eea53):[],_0x45bbb4=uniqueAliasEntries(_0x693d82['flatMap'](_0x95ac63=>_0x95ac63[_0x5227ea(0x8b)]?[{'alias':_0x95ac63[_0x5227ea(0x8b)],'datasetCode':_0x95ac63[_0x5227ea(0x93)],'tableName':_0x95ac63[_0x5227ea(0x7c)],'name':_0x95ac63[_0x5227ea(0x94)]}]:[]));return cache['set'](_0x4f7c4c,_0x45bbb4),_0x45bbb4;}const _0x31d4dd=uniqueAliasEntries(parseApiFileTree(_0x1a1dd6,aliasProjectRoot(_0x1a1dd6),new Map(),0x0));return cache[_0x5227ea(0x97)](_0x4f7c4c,_0x31d4dd),_0x31d4dd;}catch{return cache[_0x5227ea(0x97)](_0x4f7c4c,[]),[];}}function a287_0xe75a(_0x187293,_0x412232){_0x187293=_0x187293-0x78;const _0x7e2dcb=a287_0x7e2d();let _0xe75ab6=_0x7e2dcb[_0x187293];return _0xe75ab6;}export function resolveAlias(_0x44e570,_0x10ce7c,_0x3c8ee2,_0x1d649d,_0x246f68){const _0x3f0829=a287_0x404435;if(!_0x10ce7c)return undefined;const _0x28ad0b=loadAliasMap(_0x44e570,_0x3c8ee2,_0x1d649d,_0x246f68),_0x215543=new Set(_0x28ad0b[_0x3f0829(0x78)](_0x1d840a=>_0x1d840a[_0x3f0829(0x8b)]===_0x10ce7c)[_0x3f0829(0x9d)](_0x4a42a1=>_0x4a42a1[_0x3f0829(0x93)]));return _0x215543[_0x3f0829(0x83)]===0x1?[..._0x215543][0x0]:undefined;}export function listAliases(_0x2d1dce,_0x54dca1,_0x45800b,_0x29f8a7){return loadAliasMap(_0x2d1dce,_0x54dca1,_0x45800b,_0x29f8a7);}
|
package/lib/core/api-client.d.ts
CHANGED
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 分域 API 客户端
|
|
3
|
-
*
|
|
4
|
-
* 按业务域组织(bff / sql / dataset / dblink / db-analysis),与研发态 OpenAPI 路径前缀自然对齐。
|
|
5
|
-
* 统一认证、超时、错误处理;命令层通过导出函数调用。
|
|
6
|
-
*/
|
|
7
1
|
import type { Paging } from "../framework/response.js";
|
|
8
2
|
import { type CrossDbRelationDetail, type CrossDbRelationMutation, type CrossDbRelationQuery, type CrossDbRelationSource } from "../core/cross-db-relation.js";
|
|
9
3
|
import { type CrossDbAnalysisStatus } from "../core/cross-db-analysis.js";
|
|
@@ -404,28 +398,6 @@ export declare function saveSqlQuery(params: {
|
|
|
404
398
|
description?: string;
|
|
405
399
|
}): Promise<SqlSaveResult>;
|
|
406
400
|
export declare function executeSql(appCode: string, sqlCode: string, params?: Record<string, string | number>): Promise<any>;
|
|
407
|
-
/**
|
|
408
|
-
* Read-only runtime data operations supported by rabetbase-cli.
|
|
409
|
-
*
|
|
410
|
-
* The command surface intentionally stays narrow for now: users mainly need
|
|
411
|
-
* `filter` and `getOne` to inspect real records while designing pages.
|
|
412
|
-
*/
|
|
413
|
-
export type DatasetDataReadOperation = "filter" | "getOne";
|
|
414
|
-
/**
|
|
415
|
-
* Executes a read-only dataset data operation against the runtime WebAPI.
|
|
416
|
-
*
|
|
417
|
-
* The runtime dataset metadata already exposes concrete paths such as
|
|
418
|
-
* `/api/{appCode}/{datasetCode}/filter` and `/getOne`. Calling those paths
|
|
419
|
-
* directly keeps rabetbase aligned with the platform's cookie-authenticated
|
|
420
|
-
* runtime behavior without pulling in the runtime CLI's SDK stack.
|
|
421
|
-
*
|
|
422
|
-
* @param appCode - Resolved app code.
|
|
423
|
-
* @param datasetCode - Target dataset code.
|
|
424
|
-
* @param operation - Read-only operation name.
|
|
425
|
-
* @param params - Request body sent to the runtime API.
|
|
426
|
-
* @returns Raw runtime response payload.
|
|
427
|
-
*/
|
|
428
|
-
export declare function executeDatasetDataOperation(appCode: string, datasetCode: string, operation: DatasetDataReadOperation, params?: Record<string, any>): Promise<any>;
|
|
429
401
|
export interface DatasetItem {
|
|
430
402
|
id: number;
|
|
431
403
|
name: string;
|