@lovrabet/rabetbase-cli 2.5.5 → 2.5.6-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/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.d.ts +40 -0
- package/lib/commands/db/cross-db-analysis-shared.js +1 -0
- package/lib/commands/db/cross-db-analyze-latest.d.ts +2 -0
- package/lib/commands/db/cross-db-analyze-latest.js +1 -0
- package/lib/commands/db/cross-db-analyze-start.d.ts +2 -0
- package/lib/commands/db/cross-db-analyze-start.js +1 -0
- package/lib/commands/db/cross-db-analyze-status.d.ts +2 -0
- package/lib/commands/db/cross-db-analyze-status.js +1 -0
- package/lib/commands/db/delete.js +1 -1
- package/lib/commands/db/detail.js +1 -1
- package/lib/commands/db/diff-refresh-start.js +1 -1
- package/lib/commands/db/diff-refresh-status.js +1 -1
- package/lib/commands/db/diff.js +1 -1
- package/lib/commands/db/index.js +1 -1
- package/lib/commands/db/list.js +1 -1
- package/lib/commands/db/shared.js +1 -1
- package/lib/commands/db/table-diff-shared.js +1 -1
- package/lib/commands/db/tables.js +1 -1
- package/lib/commands/db/test.js +1 -1
- package/lib/commands/db/update.js +1 -1
- package/lib/commands/deployment/index.js +1 -1
- package/lib/commands/deployment/sync-all.js +1 -1
- package/lib/commands/deployment/sync-jobs.js +1 -1
- package/lib/commands/deployment/sync-status.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/flow/create.js +1 -1
- package/lib/commands/flow/detail.js +1 -1
- package/lib/commands/flow/index.js +1 -1
- package/lib/commands/flow/list.js +1 -1
- package/lib/commands/flow/publish.js +1 -1
- package/lib/commands/flow/runtime-resources-shared.js +1 -1
- package/lib/commands/flow/runtime-role-list.js +1 -1
- package/lib/commands/flow/runtime-role-user-list.js +1 -1
- package/lib/commands/flow/runtime-user-search.js +1 -1
- package/lib/commands/flow/shared.js +1 -1
- package/lib/commands/flow/update.js +1 -1
- package/lib/commands/flow/validate.js +1 -1
- package/lib/commands/instant-api-policy/current.js +1 -1
- package/lib/commands/instant-api-policy/index.js +1 -1
- package/lib/commands/instant-api-policy/init.js +1 -1
- package/lib/commands/instant-api-policy/publish.js +1 -1
- package/lib/commands/instant-api-policy/pull.js +1 -1
- package/lib/commands/instant-api-policy/revision.js +1 -1
- package/lib/commands/instant-api-policy/revisions.js +1 -1
- package/lib/commands/instant-api-policy/rollback.js +1 -1
- package/lib/commands/instant-api-policy/shared.js +1 -1
- package/lib/commands/instant-api-policy/validate.js +1 -1
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/nudge.js +1 -1
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/issue/shared.js +1 -1
- package/lib/commands/kb/create.js +1 -1
- package/lib/commands/kb/delete.js +1 -1
- package/lib/commands/kb/detail.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/kb/list.js +1 -1
- package/lib/commands/kb/search.js +1 -1
- package/lib/commands/kb/shared.js +1 -1
- package/lib/commands/kb/update.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/asset-update.js +1 -1
- package/lib/commands/menu/delete.js +1 -1
- package/lib/commands/menu/external-link-create.js +1 -1
- package/lib/commands/menu/external-link-update.js +1 -1
- package/lib/commands/menu/group-create.js +1 -1
- package/lib/commands/menu/group-update.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/list.js +1 -1
- package/lib/commands/menu/move.js +1 -1
- package/lib/commands/menu/regroup-start.js +1 -1
- package/lib/commands/menu/rename.js +1 -1
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/delete-plan.js +1 -1
- package/lib/commands/menu/shared/facts.js +1 -1
- package/lib/commands/menu/shared/index.js +1 -1
- package/lib/commands/menu/shared/inquirer.js +1 -1
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.js +1 -1
- package/lib/commands/menu/shared/mutations.js +1 -1
- package/lib/commands/menu/shared/path.js +1 -1
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/subapp-assets.js +1 -1
- package/lib/commands/menu/shared/sync-core.js +1 -1
- package/lib/commands/menu/shared/update-core.js +1 -1
- package/lib/commands/menu/shared/valid-url.js +1 -1
- package/lib/commands/menu/subapp-assets-status.js +1 -1
- package/lib/commands/menu/subapp-assets-update.js +1 -1
- package/lib/commands/menu/sync.js +1 -1
- package/lib/commands/menu/visibility-update.js +1 -1
- package/lib/commands/notification/config-create.js +1 -1
- package/lib/commands/notification/config-delete.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/config-update.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/notification/shared.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/page/create.js +1 -1
- package/lib/commands/page/custom/detail.js +1 -1
- package/lib/commands/page/custom/list.js +1 -1
- package/lib/commands/page/custom/publish.js +1 -1
- package/lib/commands/page/custom/shared.js +1 -1
- package/lib/commands/page/custom/syntax.js +1 -1
- package/lib/commands/page/custom/update.js +1 -1
- package/lib/commands/page/data-list-status.js +1 -1
- package/lib/commands/page/generate-start.js +1 -1
- package/lib/commands/page/generate-status.js +1 -1
- package/lib/commands/page/index.js +1 -1
- package/lib/commands/page/pull.js +1 -1
- package/lib/commands/page/push.js +1 -1
- package/lib/commands/page/relation-audit.js +1 -1
- package/lib/commands/page/restore.js +1 -1
- package/lib/commands/page/shared.js +1 -1
- package/lib/commands/page/sync.js +1 -1
- package/lib/commands/project/api-architecture-upgrade.js +1 -1
- package/lib/commands/project/create/enhanced-guided-create.js +1 -1
- package/lib/commands/project/create/format-elapsed.js +1 -1
- package/lib/commands/project/create/main.js +1 -1
- package/lib/commands/project/create/materialize-project-template.js +1 -1
- package/lib/commands/project/create/project-name.js +1 -1
- package/lib/commands/project/create/project-template-archive.js +1 -1
- package/lib/commands/project/create/project-template-path.js +1 -1
- package/lib/commands/project/create/use-copy-project-template.js +1 -1
- package/lib/commands/project/create/use-format-code.js +1 -1
- package/lib/commands/project/create/use-install-dependencies.js +1 -1
- package/lib/commands/project/domain-routing-sync.js +1 -1
- package/lib/commands/project/index.js +1 -1
- package/lib/commands/project/upgrade.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/role/user-resolve.js +1 -1
- package/lib/commands/rule/get.js +1 -1
- package/lib/commands/rule/index.js +1 -1
- package/lib/commands/rule/list.js +1 -1
- package/lib/commands/rule/set.js +1 -1
- package/lib/commands/rule/shared.js +1 -1
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/sql/create.js +1 -1
- package/lib/commands/sql/delete.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/sql/list.js +1 -1
- package/lib/commands/sql/pull.js +1 -1
- package/lib/commands/sql/push.js +1 -1
- package/lib/commands/sql/shared.js +1 -1
- package/lib/commands/sql/status.js +1 -1
- package/lib/commands/sql/validate.js +1 -1
- package/lib/commands/task/index.js +1 -1
- package/lib/commands/task/status.js +1 -1
- package/lib/commands/tenant/index.js +1 -1
- package/lib/commands/tenant/members-list.js +1 -1
- package/lib/commands/tenant/shared.js +1 -1
- package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
- package/lib/commands/user-account/feishu-bind.js +1 -1
- package/lib/commands/user-account/index.js +1 -1
- package/lib/commands/workspace/add.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/commands/workspace/remove.js +1 -1
- package/lib/config/domain-config.js +1 -1
- package/lib/config/project-domain-routing.js +1 -1
- package/lib/config/region-config.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/cdn.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/paths.js +1 -1
- package/lib/constant/region.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/routing-profile.js +1 -1
- package/lib/context/app-resolver.js +1 -1
- package/lib/context/auth-resolver.js +1 -1
- package/lib/context/config-loader.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.d.ts +7 -0
- 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.d.ts +17 -0
- package/lib/core/cross-db-analysis.js +1 -0
- package/lib/core/cross-db-relation.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/flow-config.js +1 -1
- package/lib/core/instant-api-policy/config.js +1 -1
- package/lib/core/kb-search-client.js +1 -1
- package/lib/core/page/file-system.js +1 -1
- package/lib/core/page/hash.js +1 -1
- package/lib/core/page/lock.js +1 -1
- package/lib/core/page/lr-smart-jsx.js +1 -1
- package/lib/core/sql-index-auditor.js +1 -1
- package/lib/core/sql-sync/config.js +1 -1
- package/lib/core/sql-sync/file-system.js +1 -1
- package/lib/core/sql-sync/hash.js +1 -1
- package/lib/core/sql-sync/lock.js +1 -1
- package/lib/core/sql-sync/utils.js +1 -1
- package/lib/core/sql-validator.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/error-output.js +1 -1
- package/lib/framework/explicit-yes.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-alias.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/supported-flags.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/generated/official-routing.js +1 -1
- package/lib/generated/routing-contract.js +1 -1
- package/lib/help.js +1 -1
- package/lib/postinstall.js +1 -1
- package/lib/runtime/confirmation.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/skills/builtin-skill.js +1 -1
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/skill-presence.js +1 -1
- package/lib/telemetry/cli-command-trace.js +1 -1
- package/lib/telemetry/cli-help-trace.js +1 -1
- package/lib/telemetry/ensure-cli-otel-config.js +1 -1
- package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
- package/lib/telemetry/send-cli-trace-log.js +1 -1
- package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
- package/lib/utils/ai_config.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cdn-config.js +1 -1
- package/lib/utils/check-sdk-version.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/config.js +1 -1
- package/lib/utils/entity-with-id.js +1 -1
- package/lib/utils/file-utils.js +1 -1
- package/lib/utils/guides-cdn.js +1 -1
- package/lib/utils/http-client.js +1 -1
- package/lib/utils/is-non-interactive.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/sleep.js +1 -1
- package/lib/utils/template-replacer.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/with-active-cookie.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
- package/skills/rabetbase/SKILL.md +6 -4
- package/skills/rabetbase/guides/database-connection-workflow.md +12 -3
- package/skills/rabetbase/guides/independent-deployment.md +10 -2
- package/skills/rabetbase/references/rabetbase-dataset-cross-relations.md +2 -0
- package/skills/rabetbase/references/rabetbase-db-analyze.md +2 -0
- package/skills/rabetbase/references/rabetbase-db-cross-analyze.md +78 -0
- package/skills/rabetbase-page-generation/SKILL.md +1 -1
- package/skills/rabetbase.manifest.json +4 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xf4604f,_0x5847b0){const _0x81077b=a276_0x30d8,_0x6862bb=_0xf4604f();while(!![]){try{const _0x32af1b=-parseInt(_0x81077b(0x91))/0x1+parseInt(_0x81077b(0x89))/0x2+parseInt(_0x81077b(0xa5))/0x3*(parseInt(_0x81077b(0x8f))/0x4)+-parseInt(_0x81077b(0x9f))/0x5*(-parseInt(_0x81077b(0x98))/0x6)+-parseInt(_0x81077b(0xab))/0x7+-parseInt(_0x81077b(0xad))/0x8+parseInt(_0x81077b(0xa0))/0x9;if(_0x32af1b===_0x5847b0)break;else _0x6862bb['push'](_0x6862bb['shift']());}catch(_0x5f43db){_0x6862bb['push'](_0x6862bb['shift']());}}}(a276_0x2553,0x37b78));function a276_0x30d8(_0x41363c,_0x2bfb13){_0x41363c=_0x41363c-0x87;const _0x2553fe=a276_0x2553();let _0x30d861=_0x2553fe[_0x41363c];return _0x30d861;}import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';function a276_0x2553(){const _0x19d8fe=['trim','riskLevel','production','app','ENV','2049915SUDukd','PAGE_SIZE','2809832fOWVPI','source','RISK_LEVEL','appcode','accessKey','cookie','locale','pageSize','305078ezuBDJ','object','entries','apps','string','region','1775156VezWim','value','285662jvzrAa','high-risk-write','read','defaultApp','COOKIE','globalConfig','env','265092EKNpko','APP','VERBOSE','length','format','projectPath','projectConfig','5MEbCTZ','4656978BrnKGh','keys','write','true','apiDir','3XwKrHX'];a276_0x2553=function(){return _0x19d8fe;};return a276_0x2553();}import{isDaily,normalizeEnv}from'../constant/env.js';import{normalizeLegacyOutputFormat,riskLevelOrder}from'../framework/types.js';import{DEFAULT_LOVRABET_REGION,normalizeLovrabetRegion}from'../constant/region.js';import{selectConfiguredRegion}from'../config/region-config.js';function stringConfigValue(_0x472490){const _0x5f11e5=a276_0x30d8;return typeof _0x472490===_0x5f11e5(0x8d)&&_0x472490['trim']()?_0x472490[_0x5f11e5(0xa6)]():undefined;}function appProfiles(_0xcf6a7f){const _0x1febe4=a276_0x30d8;return _0xcf6a7f[_0x1febe4(0x8c)]&&typeof _0xcf6a7f[_0x1febe4(0x8c)]==='object'?_0xcf6a7f['apps']:{};}function resolveDefaultAppName(_0x386594){const _0x17323e=a276_0x30d8,_0x1a88eb=stringConfigValue(_0x386594[_0x17323e(0x94)]);if(_0x1a88eb)return _0x1a88eb;const _0x5941da=Object[_0x17323e(0xa1)](appProfiles(_0x386594));return _0x5941da[_0x17323e(0x9b)]===0x1?_0x5941da[0x0]:undefined;}function resolveTopLevelAppCode(_0x198dd9){const _0xab75a7=a276_0x30d8;return stringConfigValue(_0x198dd9[_0xab75a7(0xb0)])||stringConfigValue(_0x198dd9[_0xab75a7(0xa9)]);}function normalizeRiskCeiling(_0x291e26){const _0x3ed3cb=a276_0x30d8;if(_0x291e26===undefined||_0x291e26===null)return undefined;if(_0x291e26===_0x3ed3cb(0x93)||_0x291e26===_0x3ed3cb(0xa2)||_0x291e26===_0x3ed3cb(0x92))return _0x291e26;return _0x3ed3cb(0x93);}function resolveRiskCeiling(..._0xf4e3f8){const _0x406d5b=a276_0x30d8;let _0x430353;for(const _0x25bad6 of _0xf4e3f8){const _0xeae491=normalizeRiskCeiling(_0x25bad6);_0xeae491&&(!_0x430353||riskLevelOrder(_0xeae491)<riskLevelOrder(_0x430353))&&(_0x430353=_0xeae491);}return _0x430353??DEFAULT_CONFIG_VALUES[_0x406d5b(0xa7)];}export function resolveAppConfig({raw:_0x395b4c,flags:_0xccce19,layers:_0x1fc9b8,readEnv:_0x502295}){const _0x1aead2=a276_0x30d8,_0x3cc4e7=_0x1fc9b8?.[_0x1aead2(0x9e)]??{},_0x464853=_0x1fc9b8?.[_0x1aead2(0x96)]??{},_0x2b5275=!!_0x1fc9b8?.[_0x1aead2(0x9d)]||Object['keys'](_0x3cc4e7)['length']>0x0,_0x634ce6=!_0x2b5275,_0x349ad6=_0x2b5275?resolveDefaultAppName(_0x3cc4e7):undefined,_0x1d9119=_0x634ce6?resolveDefaultAppName(_0x464853):undefined,_0xd2da65=stringConfigValue(_0xccce19[_0x1aead2(0xa9)]),_0x42d339=_0x502295(_0x1aead2(0x99)),_0x837ed8={};if(_0x395b4c['apps']&&typeof _0x395b4c[_0x1aead2(0x8c)]===_0x1aead2(0x8a))for(const [_0x153f34,_0x31d480]of Object[_0x1aead2(0x8b)](_0x395b4c[_0x1aead2(0x8c)])){_0x31d480&&typeof _0x31d480==='object'&&_0x31d480['appcode']&&(_0x837ed8[_0x153f34]=_0x31d480);}const _0x11007d=_0x349ad6||_0x1d9119||resolveDefaultAppName(_0x395b4c),_0x2cdc1c=Object[_0x1aead2(0xa1)](_0x837ed8)[_0x1aead2(0x9b)]>0x0,_0x2f827d=_0xd2da65||_0x349ad6||_0x42d339||_0x1d9119||_0x11007d||undefined,_0x45883b=stringConfigValue(_0xccce19[_0x1aead2(0xb0)]),_0x3f4e3b=_0x45883b?Object[_0x1aead2(0x8b)](_0x837ed8)['filter'](([,_0x5d4303])=>_0x5d4303?.[_0x1aead2(0xb0)]===_0x45883b):[],_0x429df7=_0xd2da65&&_0x837ed8[_0xd2da65]?.['appcode']===_0x45883b?[_0xd2da65,_0x837ed8[_0xd2da65]]:undefined,_0x553014=_0x429df7??(_0x3f4e3b['length']===0x1?_0x3f4e3b[0x0]:undefined),_0x2ff09e=_0x553014?.[0x0],_0x8e6441=_0x553014?.[0x1],_0x11b298=_0x45883b?_0x2ff09e:_0x2f827d;let _0x26e492=_0x11b298&&_0x837ed8[_0x11b298]?_0x837ed8[_0x11b298]:undefined;_0x45883b&&_0x8e6441&&(_0x26e492=_0x8e6441);const _0x1f4525=_0x45883b?_0x8e6441??_0x26e492:_0x26e492,_0x5c1da4=!_0xd2da65&&!_0x349ad6&&_0x42d339&&_0x11b298===_0x42d339,_0x75ddec=_0xd2da65||(_0x5c1da4?_0x42d339:undefined)||(_0x45883b?_0x2ff09e:undefined),_0x442dc8=_0x1f4525?.[_0x1aead2(0xb0)],_0x279bd3=_0x2b5275?resolveTopLevelAppCode(_0x3cc4e7):undefined,_0x40f7fd=_0x634ce6?resolveTopLevelAppCode(_0x464853):undefined,_0x5f4acc=_0xd2da65||_0x349ad6?_0x442dc8:undefined,_0x5b9857=!_0xd2da65&&!_0x349ad6?_0x442dc8:undefined,_0x3f413c=_0x45883b||_0x5f4acc||_0x279bd3||_0x5b9857||_0x40f7fd||undefined,_0x5e7a32=_0x2b5275?stringConfigValue(_0x3cc4e7[_0x1aead2(0x97)]):undefined,_0x52d1a6=_0x634ce6?stringConfigValue(_0x464853[_0x1aead2(0x97)]):undefined,_0x52007f=_0xccce19[_0x1aead2(0x97)]||_0x1f4525?.[_0x1aead2(0x97)]||_0x5e7a32||_0x502295(_0x1aead2(0xaa))||_0x52d1a6||_0x395b4c[_0x1aead2(0x97)]||DEFAULT_CONFIG_VALUES[_0x1aead2(0x97)],_0x206fca=_0x1f4525?.[_0x1aead2(0x87)]||_0x395b4c[_0x1aead2(0x87)]||DEFAULT_CONFIG_VALUES[_0x1aead2(0x87)],_0x400d56=_0x502295(_0x1aead2(0x95))||_0x1f4525?.[_0x1aead2(0xb2)]||_0x395b4c[_0x1aead2(0xb2)]||undefined,_0x17cc22=_0x502295('ACCESS_KEY')||_0x1f4525?.['accessKey']||_0x395b4c[_0x1aead2(0xb1)]||undefined,_0x3203d4=_0xccce19[_0x1aead2(0x9c)]||_0x502295('FORMAT')||_0x1f4525?.[_0x1aead2(0x9c)]||_0x395b4c[_0x1aead2(0x9c)],_0x16fa87=normalizeLegacyOutputFormat(_0x3203d4),_0x22b5cb=_0x502295(_0x1aead2(0xac))||_0x1f4525?.[_0x1aead2(0x88)]||_0x395b4c[_0x1aead2(0x88)],_0x3aa9bc=_0x22b5cb?Number(_0x22b5cb)||undefined:undefined,_0x1295c7=_0x1fc9b8?[_0x1fc9b8[_0x1aead2(0x96)][_0x1aead2(0xa7)],_0x1fc9b8[_0x1aead2(0x9e)][_0x1aead2(0xa7)]]:[_0x395b4c[_0x1aead2(0xa7)]],_0x1a688b=resolveRiskCeiling(..._0x1295c7,_0x1f4525?.['riskLevel']),_0x42c1f7=resolveRiskCeiling(_0x1a688b,_0x502295(_0x1aead2(0xaf))),_0x1e271d=_0x502295(_0x1aead2(0x9a)),_0x4fb5b0=_0x1e271d==='1'||_0x1e271d===_0x1aead2(0xa3),_0x565c8c=_0x1f4525?.[_0x1aead2(0xa4)]||_0x395b4c[_0x1aead2(0xa4)]||DEFAULT_CONFIG_VALUES[_0x1aead2(0xa4)],_0x45d950=selectConfiguredRegion({'appRegion':_0x1f4525?.[_0x1aead2(0x8e)],'projectRegion':_0x2b5275?_0x3cc4e7[_0x1aead2(0x8e)]:undefined,'globalRegion':_0x2b5275||_0x634ce6?_0x464853['region']:undefined,'mergedRegion':_0x395b4c[_0x1aead2(0x8e)]}),_0x2c8987=normalizeLovrabetRegion(_0x45d950[_0x1aead2(0x90)])??DEFAULT_LOVRABET_REGION,_0x386d4f=isDaily(normalizeEnv(String(_0x52007f)))?'daily':_0x1aead2(0xa8);return{'appCode':typeof _0x3f413c==='string'&&_0x3f413c[_0x1aead2(0xa6)]()?_0x3f413c[_0x1aead2(0xa6)]():undefined,'region':_0x2c8987,'regionConfiguredValue':_0x45d950[_0x1aead2(0x90)],'regionSource':_0x45d950[_0x1aead2(0xae)],'env':_0x386d4f,'locale':_0x206fca,'cookie':_0x400d56,'accessKey':_0x17cc22,'format':_0x16fa87,'pageSize':_0x3aa9bc,'riskLevel':_0x42c1f7,'verbose':_0x4fb5b0,'apiDir':_0x565c8c,'apps':_0x837ed8,'defaultApp':_0x11007d,'currentApp':_0x2cdc1c?_0x11b298:undefined,'explicitAppName':_0x75ddec};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x35aa41,_0x893ad4){const _0x1c125c=a277_0x4a24,_0x451566=_0x35aa41();while(!![]){try{const _0x24f70e=-parseInt(_0x1c125c(0x74))/0x1+parseInt(_0x1c125c(0x76))/0x2+parseInt(_0x1c125c(0x7c))/0x3+parseInt(_0x1c125c(0x77))/0x4*(-parseInt(_0x1c125c(0x72))/0x5)+-parseInt(_0x1c125c(0x79))/0x6*(-parseInt(_0x1c125c(0x75))/0x7)+parseInt(_0x1c125c(0x7d))/0x8+parseInt(_0x1c125c(0x78))/0x9;if(_0x24f70e===_0x893ad4)break;else _0x451566['push'](_0x451566['shift']());}catch(_0x38b176){_0x451566['push'](_0x451566['shift']());}}}(a277_0x39ce,0x6f147));function a277_0x39ce(){const _0x434248=['5106800YrtRmM','59875kYvgze','authRequired','769147YLmucx','3759XoDoUs','782902WZugvI','184zclFQE','3499326Euxwym','3288GTtOYQ','cookie','../auth/get-cookie.js','186267eOZCpC'];a277_0x39ce=function(){return _0x434248;};return a277_0x39ce();}import{getIsSessionValid}from'../auth/is-session-valid.js';function a277_0x4a24(_0x155df3,_0x4c981c){_0x155df3=_0x155df3-0x72;const _0x39cea2=a277_0x39ce();let _0x4a24da=_0x39cea2[_0x155df3];return _0x4a24da;}import{CliErrors}from'../errors.js';export async function buildAuth(_0x354a87){const _0x2aa1aa=a277_0x4a24,{getCookie:_0x5bf5f5}=await import(_0x2aa1aa(0x7b)),_0x25fdf=_0x354a87[_0x2aa1aa(0x7a)]||_0x5bf5f5(),_0x4290a9=_0x25fdf?await getIsSessionValid():![];return{'cookie':_0x25fdf,'isLoggedIn':_0x4290a9,async 'getOrLogin'(){const _0x717b84=_0x2aa1aa;if(_0x25fdf&&_0x4290a9)return _0x25fdf;throw CliErrors[_0x717b84(0x73)]();}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a278_0x2ad4(_0xe8f170,_0x1b8906){_0xe8f170=_0xe8f170-0xc4;const _0x295b9a=a278_0x295b();let _0x2ad429=_0x295b9a[_0xe8f170];return _0x2ad429;}const a278_0x3f8fed=a278_0x2ad4;(function(_0x1c5157,_0x4b253a){const _0x547a41=a278_0x2ad4,_0x26e289=_0x1c5157();while(!![]){try{const _0x38513c=parseInt(_0x547a41(0xca))/0x1*(parseInt(_0x547a41(0xe3))/0x2)+parseInt(_0x547a41(0xe7))/0x3*(parseInt(_0x547a41(0xf9))/0x4)+parseInt(_0x547a41(0xfa))/0x5*(parseInt(_0x547a41(0xf3))/0x6)+-parseInt(_0x547a41(0xdd))/0x7*(-parseInt(_0x547a41(0xed))/0x8)+-parseInt(_0x547a41(0xce))/0x9+parseInt(_0x547a41(0xc6))/0xa+parseInt(_0x547a41(0xee))/0xb*(-parseInt(_0x547a41(0xe0))/0xc);if(_0x38513c===_0x4b253a)break;else _0x26e289['push'](_0x26e289['shift']());}catch(_0x13a6ae){_0x26e289['push'](_0x26e289['shift']());}}}(a278_0x295b,0xe245b));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=a278_0x3f8fed(0xcb);export const CONFIG_NAMES=[NEW_CONFIG_NAME];const normalizedWriteCache=new Map();function a278_0x295b(){const _0x5a18ae=['cwd','message','error','data','utf8','object','inherit','apps','\x20config\x20file\x20ignored\x20(invalid\x20JSON\x20or\x20unreadable):\x20','routing','appDomain','7841561RqwMAJ','region','status','4992SBDkPd','defaultApp','format','11028kngJHn','project','appcode','localDomain','6246LUKlVK','stringify','empty','certificateDomain','userDomain','config','8zkQDff','16522qqycmB','env','warn','riskLevel','pageSize','186BlFfWF','string','accessKey','app','length','trim','1316BaQIqQ','55345myWiYr','migrated','set','apiDomain','projectPath','5929790sVLaJi','missing','apiDir','locale','3muhKXR','.rabetbase.json','Project','get','10855962DaOaMe','parse','kbServiceDomain','cookie'];a278_0x295b=function(){return _0x5a18ae;};return a278_0x295b();}export function resolveConfigPath(_0x5bf669){for(const _0x34aa50 of CONFIG_NAMES){const _0x2404d4=resolve(_0x5bf669,_0x34aa50);if(existsSync(_0x2404d4))return _0x2404d4;}return undefined;}export function findProjectRootDirectory(_0xd56687=process[a278_0x3f8fed(0xd2)]()){let _0x113658=resolve(_0xd56687);const {root:_0x5785cc}=parse(_0x113658),_0x2c585a=homedir();while(!![]){if(resolveConfigPath(_0x113658)){if(_0x113658===_0x2c585a)break;return _0x113658;}if(_0x113658===_0x5785cc||_0x113658===_0x2c585a)break;const _0x249b6d=dirname(_0x113658);if(_0x249b6d===_0x113658)break;_0x113658=_0x249b6d;}return resolve(_0xd56687);}export function getProjectConfigPath(){return resolveConfigPath(process['cwd']());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function isInProject(){return!!getProjectConfigPath();}export function inspectCliConfigJsonFile(_0x347d7f){const _0x3b851b=a278_0x3f8fed;if(!existsSync(_0x347d7f))return{'status':_0x3b851b(0xc7)};try{const _0x23a4c1=readFileSync(_0x347d7f,{'encoding':_0x3b851b(0xd6)});if(!_0x23a4c1?.[_0x3b851b(0xf8)]())return{'status':_0x3b851b(0xe9)};const _0x38caaf=JSON[_0x3b851b(0xcf)](_0x23a4c1);return{'status':'ok','data':_0x38caaf};}catch(_0x3c75ad){return{'status':_0x3b851b(0xd4),'message':_0x3c75ad instanceof Error?_0x3c75ad[_0x3b851b(0xd3)]:String(_0x3c75ad)};}}function parseCliConfigJsonFile(_0x407f35,_0x18b9d2,_0x220b7b){const _0x410b3=a278_0x3f8fed,_0x46d69f=inspectCliConfigJsonFile(_0x407f35);if(_0x46d69f[_0x410b3(0xdf)]===_0x410b3(0xc7)||_0x46d69f[_0x410b3(0xdf)]===_0x410b3(0xe9))return{};if(_0x46d69f[_0x410b3(0xdf)]==='ok')return _0x46d69f[_0x410b3(0xd5)];return _0x18b9d2==='warn'&&_0x220b7b&&console[_0x410b3(0xd4)](CLI_BIN_NAME+':\x20'+_0x220b7b+_0x410b3(0xda)+_0x407f35+'\x0a\x20\x20'+_0x46d69f[_0x410b3(0xd3)]),{};}function normalizeLegacyConfigShape(_0x407f54){const _0x2e3c2a=a278_0x3f8fed;if(!_0x407f54||typeof _0x407f54!=='object')return{'config':{},'migrated':![]};const _0x32d008={..._0x407f54},_0x5b9181=_0x32d008['apps']&&typeof _0x32d008[_0x2e3c2a(0xd9)]===_0x2e3c2a(0xd7)?{..._0x32d008['apps']}:{},_0x55b796=Object['keys'](_0x5b9181)[_0x2e3c2a(0xf7)],_0x4568ec=_0x32d008['appcode']||_0x32d008['app'];let _0xe7086e=![];if(_0x4568ec&&_0x55b796===0x0){const _0x1347ea=typeof _0x32d008[_0x2e3c2a(0xe1)]===_0x2e3c2a(0xf4)&&_0x32d008['defaultApp']['trim']()?_0x32d008[_0x2e3c2a(0xe1)]:String(_0x4568ec)[_0x2e3c2a(0xf8)]();_0x5b9181[_0x1347ea]={'appcode':String(_0x4568ec)[_0x2e3c2a(0xf8)](),..._0x32d008[_0x2e3c2a(0xef)]!=null?{'env':_0x32d008[_0x2e3c2a(0xef)]}:{},..._0x32d008[_0x2e3c2a(0xc8)]!=null?{'apiDir':_0x32d008['apiDir']}:{},..._0x32d008[_0x2e3c2a(0xd1)]!=null?{'cookie':_0x32d008[_0x2e3c2a(0xd1)]}:{},..._0x32d008[_0x2e3c2a(0xf5)]!=null?{'accessKey':_0x32d008[_0x2e3c2a(0xf5)]}:{},..._0x32d008[_0x2e3c2a(0xe2)]!=null?{'format':_0x32d008[_0x2e3c2a(0xe2)]}:{},..._0x32d008['pageSize']!=null?{'pageSize':_0x32d008[_0x2e3c2a(0xf2)]}:{},..._0x32d008[_0x2e3c2a(0xf1)]!=null?{'riskLevel':_0x32d008[_0x2e3c2a(0xf1)]}:{},..._0x32d008[_0x2e3c2a(0xc9)]!=null?{'locale':_0x32d008['locale']}:{}},_0x32d008['apps']=_0x5b9181,delete _0x32d008['defaultApp'],_0xe7086e=!![];}return(_0x2e3c2a(0xe5)in _0x32d008||_0x2e3c2a(0xf6)in _0x32d008)&&(delete _0x32d008[_0x2e3c2a(0xe5)],delete _0x32d008[_0x2e3c2a(0xf6)],_0xe7086e=!![]),{'config':_0x32d008,'migrated':_0xe7086e};}function writeNormalizedConfigIfNeeded(_0xe627f7,_0x16acc4){const _0x44a5f0=a278_0x3f8fed,_0x291ccc=JSON[_0x44a5f0(0xe8)](normalizeConfigForWrite(_0x16acc4),null,0x2)+'\x0a';if(normalizedWriteCache[_0x44a5f0(0xcd)](_0xe627f7)===_0x291ccc)return;writeConfigFile(_0xe627f7,_0x16acc4),normalizedWriteCache[_0x44a5f0(0xfc)](_0xe627f7,_0x291ccc);}function parseAndNormalizeConfig(_0x1305a6,_0x5e5fbe,_0x4f2a52){const _0x1232f4=a278_0x3f8fed,_0x463b0e=parseCliConfigJsonFile(_0x1305a6,_0x5e5fbe,_0x4f2a52),_0x327d6f=normalizeLegacyConfigShape(_0x463b0e);if(_0x327d6f[_0x1232f4(0xfb)])try{writeNormalizedConfigIfNeeded(_0x1305a6,_0x327d6f[_0x1232f4(0xec)]);}catch{}return _0x327d6f[_0x1232f4(0xec)];}export function loadRawConfigLayers(_0x45de94){const _0x2ee37d=a278_0x3f8fed;let _0x159820={},_0x1fc331={};const _0x2e3a81=resolveConfigPath(homedir());_0x2e3a81&&(_0x159820=parseAndNormalizeConfig(_0x2e3a81,_0x2ee37d(0xf0),'Global'));const _0x2da688=_0x45de94??findProjectRootDirectory(),_0x2f7dc4=resolveConfigPath(_0x2da688);return _0x2f7dc4&&(_0x1fc331=parseAndNormalizeConfig(_0x2f7dc4,_0x2ee37d(0xf0),_0x2ee37d(0xcc))),{'globalPath':_0x2e3a81,'projectPath':_0x2f7dc4,'globalConfig':_0x159820,'projectConfig':_0x1fc331};}const INHERIT_WHITELIST=[a278_0x3f8fed(0xd1),a278_0x3f8fed(0xf5),a278_0x3f8fed(0xc9),a278_0x3f8fed(0xe2),a278_0x3f8fed(0xf1),a278_0x3f8fed(0xf2),a278_0x3f8fed(0xde),a278_0x3f8fed(0xdb),a278_0x3f8fed(0xeb),a278_0x3f8fed(0xc4),'runtimeDomain','skillDomain','kbDomain',a278_0x3f8fed(0xd0),a278_0x3f8fed(0xdc),a278_0x3f8fed(0xe6),a278_0x3f8fed(0xea)];export function mergeRawConfigLayers(_0x1b4a82){const _0x1f5af4=a278_0x3f8fed,{globalConfig:_0xc234ac,projectConfig:_0x3393fb}=_0x1b4a82,_0x11ab99=!!_0x1b4a82[_0x1f5af4(0xc5)]||Object['keys'](_0x3393fb)[_0x1f5af4(0xf7)]>0x0;if(!_0x11ab99)return mergeGlobalOnly(_0xc234ac);return mergeProjectFirst(_0xc234ac,_0x3393fb);}function mergeGlobalOnly(_0x4cc5e1){const _0x4341a6=a278_0x3f8fed,_0x276f23={..._0x4cc5e1};delete _0x276f23['inherit'];const _0x2e9c3f=_0x4cc5e1[_0x4341a6(0xd9)]&&typeof _0x4cc5e1['apps']==='object'?_0x4cc5e1[_0x4341a6(0xd9)]:{};if(Object['keys'](_0x2e9c3f)['length']>0x0)_0x276f23['apps']=_0x2e9c3f;if(_0x4cc5e1['defaultApp'])_0x276f23[_0x4341a6(0xe1)]=_0x4cc5e1[_0x4341a6(0xe1)];return _0x276f23;}function mergeProjectFirst(_0x290647,_0x498397){const _0x4e9785=a278_0x3f8fed,_0x1c2306={..._0x498397};delete _0x1c2306[_0x4e9785(0xd8)];for(const _0xe92c78 of INHERIT_WHITELIST){!(_0xe92c78 in _0x1c2306)&&_0xe92c78 in _0x290647&&(_0x1c2306[_0xe92c78]=_0x290647[_0xe92c78]);}const _0x30a99f=_0x498397[_0x4e9785(0xd9)]&&typeof _0x498397[_0x4e9785(0xd9)]===_0x4e9785(0xd7)?_0x498397[_0x4e9785(0xd9)]:{};return Object['keys'](_0x30a99f)['length']>0x0?_0x1c2306[_0x4e9785(0xd9)]=_0x30a99f:delete _0x1c2306[_0x4e9785(0xd9)],'defaultApp'in _0x498397?_0x1c2306[_0x4e9785(0xe1)]=_0x498397[_0x4e9785(0xe1)]:delete _0x1c2306[_0x4e9785(0xe1)],_0x1c2306;}export function readRawConfigWithLayers(_0x2f2c3f){const _0x3cfaee=loadRawConfigLayers(_0x2f2c3f);return{'config':mergeRawConfigLayers(_0x3cfaee),'layers':_0x3cfaee};}export function readRawConfig(_0x7c11d0){return mergeRawConfigLayers(loadRawConfigLayers(_0x7c11d0));}export function readConfigFile(_0xf20446){return parseAndNormalizeConfig(_0xf20446,'silent');}export function writeConfigFile(_0x3b14bd,_0x47d827){const _0xc64425=a278_0x3f8fed,_0x83a6d4=dirname(_0x3b14bd);!existsSync(_0x83a6d4)&&mkdirSync(_0x83a6d4,{'recursive':!![]});const _0x3faf26=_0x3b14bd+'.tmp';try{const _0x14a1e6=normalizeConfigForWrite(_0x47d827);writeFileSync(_0x3faf26,JSON[_0xc64425(0xe8)](_0x14a1e6,null,0x2)+'\x0a',{'encoding':_0xc64425(0xd6),'mode':0x180}),renameSync(_0x3faf26,_0x3b14bd);}catch(_0x486613){try{unlinkSync(_0x3faf26);}catch{}throw _0x486613;}}export function resolveWriteConfigPath(_0x4207ac){const _0x49203d=a278_0x3f8fed,_0x2a3971=_0x4207ac===_0x49203d(0xe4)?process['cwd']():homedir(),_0x275096=resolveConfigPath(_0x2a3971);return _0x275096??resolve(_0x2a3971,NEW_CONFIG_NAME);}
|
package/lib/context.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a275_0x20bad6=a275_0x536f;function a275_0x536f(_0x20928a,_0x1f66ba){_0x20928a=_0x20928a-0x1d3;const _0x41e0d7=a275_0x41e0();let _0x536f99=_0x41e0d7[_0x20928a];return _0x536f99;}(function(_0x43900e,_0x33e1ee){const _0x769a38=a275_0x536f,_0x3383ba=_0x43900e();while(!![]){try{const _0x1259bc=parseInt(_0x769a38(0x209))/0x1*(-parseInt(_0x769a38(0x1fa))/0x2)+-parseInt(_0x769a38(0x211))/0x3+parseInt(_0x769a38(0x1ee))/0x4*(-parseInt(_0x769a38(0x1f7))/0x5)+parseInt(_0x769a38(0x1d7))/0x6+-parseInt(_0x769a38(0x1e0))/0x7+parseInt(_0x769a38(0x1de))/0x8+parseInt(_0x769a38(0x20a))/0x9;if(_0x1259bc===_0x33e1ee)break;else _0x3383ba['push'](_0x3383ba['shift']());}catch(_0x2c22c4){_0x3383ba['push'](_0x3383ba['shift']());}}}(a275_0x41e0,0x65338));import{CLI_BIN_NAME}from'./constant/cli.js';import{buildAuth}from'./context/auth-resolver.js';import{resolveAppConfig}from'./context/app-resolver.js';import{CONFIG_NAMES,NEW_CONFIG_NAME,findProjectRootDirectory,getGlobalConfigPath,getProjectConfigPath,inspectCliConfigJsonFile,isInProject,loadRawConfigLayers,mergeRawConfigLayers,readConfigFile,readRawConfig,readRawConfigWithLayers,resolveConfigPath,resolveWriteConfigPath,writeConfigFile}from'./context/config-loader.js';import{resolveConfiguredRegion,resolveEffectiveRegion}from'./config/region-config.js';import{resolveEnterpriseRoutingManifest}from'./config/domain-config.js';import{logger}from'./utils/logger.js';import{resolveApiModelSource}from'./api/model-source.js';export{CONFIG_NAMES,NEW_CONFIG_NAME,findProjectRootDirectory,getGlobalConfigPath,getProjectConfigPath,inspectCliConfigJsonFile,isInProject,loadRawConfigLayers,mergeRawConfigLayers,readConfigFile,readRawConfig,readRawConfigWithLayers,resolveConfigPath,resolveWriteConfigPath,writeConfigFile};function env(_0x301264){return process.env[`RABETBASE_${_0x301264}`]||process.env[`LOVRABET_${_0x301264}`]||undefined;}function optionalString(_0x2871f1){const _0x5e378c=a275_0x536f;return typeof _0x2871f1===_0x5e378c(0x21c)&&_0x2871f1[_0x5e378c(0x203)]()?_0x2871f1[_0x5e378c(0x203)]():undefined;}export function isRoutingRecoveryService(_0xb317fe){const _0x2b9f74=a275_0x536f;return _0xb317fe===_0x2b9f74(0x21a)||_0xb317fe===_0x2b9f74(0x217);}export async function createContext(_0x4f14ef){const _0x3cfd6b=a275_0x536f,{config:_0x4aff92,layers:_0x4987ea}=readRawConfigWithLayers(),_0x5013d9=buildConfig(_0x4aff92,_0x4f14ef,_0x4987ea);await initGlobalEnvironment(_0x5013d9);const {getUserDomain:_0x72f0f1,getApiDomain:_0x1690d4}=await import(_0x3cfd6b(0x1f8)),_0x51423b={'apiDomain':_0x1690d4(),'userDomain':_0x72f0f1()},_0x4ee90e=await buildAuth(_0x5013d9);logger['setLogPath'](process[_0x3cfd6b(0x1f5)]());const _0x598811=(CLI_BIN_NAME+'\x20'+process[_0x3cfd6b(0x214)][_0x3cfd6b(0x1fd)](0x2)[_0x3cfd6b(0x1d6)]('\x20'))[_0x3cfd6b(0x203)]();logger[_0x3cfd6b(0x202)](_0x598811);const {isNonInteractive:_0x5bb0e7}=await import(_0x3cfd6b(0x1f3)),_0x45c327=_0x5bb0e7(_0x4f14ef);return{'config':_0x5013d9,'auth':_0x4ee90e,'logger':logger,'env':_0x51423b,'nonInteractive':_0x45c327};}export function buildConfigFromFlags(_0x503e5d){const {config:_0x50fbe9,layers:_0x1af87}=readRawConfigWithLayers();return buildConfig(_0x50fbe9,_0x503e5d,_0x1af87);}export async function initGlobalEnvironment(_0x5380b3){const _0x29f5ef=a275_0x536f,_0xccf1b2=_0x5380b3['regionSource']===_0x29f5ef(0x205)&&_0x5380b3[_0x29f5ef(0x1d8)]?_0x29f5ef(0x1db)+_0x5380b3[_0x29f5ef(0x1d8)]+'\x22':_0x5380b3[_0x29f5ef(0x1e6)]===_0x29f5ef(0x1dc)?_0x29f5ef(0x1d4):_0x5380b3['regionSource']===_0x29f5ef(0x1f9)?_0x29f5ef(0x1f4):_0x29f5ef(0x1f0);await initConfiguredEnvironment({'raw':_0x5380b3[_0x29f5ef(0x1fe)],'configuredRegion':_0x5380b3[_0x29f5ef(0x213)]??_0x5380b3['raw']?.[_0x29f5ef(0x1e5)]??_0x5380b3[_0x29f5ef(0x1e5)],'regionLocation':_0xccf1b2,'targetEnv':_0x5380b3[_0x29f5ef(0x219)]});}async function initConfiguredEnvironment(_0x859a2c){const _0x26c874=a275_0x536f,_0x40dc7a=resolveConfiguredRegion(_0x859a2c[_0x26c874(0x1e2)],_0x859a2c[_0x26c874(0x1e3)]),_0x5ae2d6=resolveEnterpriseRoutingManifest(_0x859a2c[_0x26c874(0x1fe)]?.[_0x26c874(0x21d)]),_0x5bb22f={'region':_0x40dc7a,'apiDomain':_0x5ae2d6?_0x5ae2d6[_0x26c874(0x216)][_0x26c874(0x1e7)]:optionalString(_0x859a2c[_0x26c874(0x1fe)]?.[_0x26c874(0x1e7)]),'userDomain':_0x5ae2d6?_0x5ae2d6[_0x26c874(0x216)]['userDomain']:optionalString(_0x859a2c[_0x26c874(0x1fe)]?.['userDomain']),'runtimeDomain':_0x5ae2d6?_0x5ae2d6[_0x26c874(0x216)][_0x26c874(0x208)]:optionalString(_0x859a2c[_0x26c874(0x1fe)]?.['runtimeDomain']),'skillDomain':_0x5ae2d6?_0x5ae2d6['domains'][_0x26c874(0x210)]:optionalString(_0x859a2c[_0x26c874(0x1fe)]?.['skillDomain'])||optionalString(_0x859a2c[_0x26c874(0x1fe)]?.[_0x26c874(0x1e8)])||optionalString(_0x859a2c[_0x26c874(0x1fe)]?.[_0x26c874(0x1f2)])||optionalString(_0x859a2c[_0x26c874(0x1fe)]?.['platformDomain']),'kbDomain':_0x5ae2d6?_0x5ae2d6[_0x26c874(0x216)]['kbDomain']:optionalString(_0x859a2c[_0x26c874(0x1fe)]?.[_0x26c874(0x1ea)])||optionalString(_0x859a2c[_0x26c874(0x1fe)]?.[_0x26c874(0x1f2)])||optionalString(_0x859a2c[_0x26c874(0x1fe)]?.[_0x26c874(0x1df)]),'kbServiceDomain':_0x5ae2d6?_0x5ae2d6['domains']['kbServiceDomain']:optionalString(_0x859a2c[_0x26c874(0x1fe)]?.[_0x26c874(0x1dd)]),'appDomain':_0x5ae2d6?_0x5ae2d6[_0x26c874(0x216)]['appDomain']:optionalString(_0x859a2c[_0x26c874(0x1fe)]?.[_0x26c874(0x206)]),'localDomain':_0x5ae2d6?_0x5ae2d6[_0x26c874(0x216)][_0x26c874(0x1e1)]:optionalString(_0x859a2c[_0x26c874(0x1fe)]?.[_0x26c874(0x1e1)]),'certificateDomain':_0x5ae2d6?_0x5ae2d6[_0x26c874(0x216)][_0x26c874(0x200)]:optionalString(_0x859a2c[_0x26c874(0x1fe)]?.[_0x26c874(0x200)]),'cdn':_0x5ae2d6?.[_0x26c874(0x1d9)],'allowOfficialKbServiceDefault':!(_0x5ae2d6!==undefined||[_0x26c874(0x1e7),'userDomain',_0x26c874(0x208),_0x26c874(0x210),_0x26c874(0x1e8),_0x26c874(0x1ea),_0x26c874(0x1dd),'agentDomain',_0x26c874(0x1df),_0x26c874(0x206),'localDomain',_0x26c874(0x200)][_0x26c874(0x1ed)](_0x312158=>Object['prototype'][_0x26c874(0x1eb)]['call'](_0x859a2c[_0x26c874(0x1fe)]??{},_0x312158)))},{initEnv:_0x7a4b8e}=await import(_0x26c874(0x1d5)),{initDomains:_0x3e3070}=await import(_0x26c874(0x1f8));_0x7a4b8e(_0x859a2c[_0x26c874(0x20e)]),_0x3e3070(_0x5bb22f);}export async function initMultiAppEnvironment(_0x2890c7){const _0x356e64=a275_0x536f;await initConfiguredEnvironment({'raw':_0x2890c7[_0x356e64(0x1f1)],'configuredRegion':_0x2890c7[_0x356e64(0x1e5)],'regionLocation':'app\x20profile\x20\x22'+_0x2890c7[_0x356e64(0x1ef)]+'\x22','targetEnv':_0x2890c7['env']===_0x356e64(0x207)?'daily':'production'});}export function getConfigAppCode(_0x10d7fa){const _0x59fd0f=a275_0x536f,_0x58f47c=readRawConfig(_0x10d7fa);if(_0x58f47c['apps']&&typeof _0x58f47c[_0x59fd0f(0x20f)]===_0x59fd0f(0x220)){const _0x1e4779=_0x58f47c['defaultApp'];if(_0x1e4779)return _0x58f47c[_0x59fd0f(0x20f)][_0x1e4779]?.[_0x59fd0f(0x1fb)]?String(_0x58f47c[_0x59fd0f(0x20f)][_0x1e4779][_0x59fd0f(0x1fb)])[_0x59fd0f(0x203)]():undefined;const _0x456c6b=Object['values'](_0x58f47c[_0x59fd0f(0x20f)]);if(_0x456c6b[_0x59fd0f(0x204)]===0x1&&_0x456c6b[0x0]?.[_0x59fd0f(0x1fb)])return String(_0x456c6b[0x0][_0x59fd0f(0x1fb)])[_0x59fd0f(0x203)]();}const _0x33fa9a=_0x58f47c['appcode']||_0x58f47c[_0x59fd0f(0x205)];if(typeof _0x33fa9a!==_0x59fd0f(0x21c)||_0x33fa9a[_0x59fd0f(0x203)]()==='')return undefined;return _0x33fa9a['trim']();}const CONNECTION_ROUTING_KEYS=['routing',a275_0x20bad6(0x1e7),'userDomain',a275_0x20bad6(0x208),'skillDomain',a275_0x20bad6(0x1e8),a275_0x20bad6(0x1ea),a275_0x20bad6(0x1dd),'agentDomain',a275_0x20bad6(0x1df),a275_0x20bad6(0x206),a275_0x20bad6(0x1e1),a275_0x20bad6(0x200)];function withAppProfileRouting(_0x5a0889,_0x5d873f){const _0x144900=a275_0x20bad6;if(!_0x5d873f||_0x5d873f[_0x144900(0x1dd)]===undefined)return _0x5a0889;return{..._0x5a0889,'kbServiceDomain':_0x5d873f[_0x144900(0x1dd)]};}function pickConnectionRoutingConfig(_0x1cb626,_0x31314e){const _0x52e665={'region':_0x31314e};for(const _0x186d09 of CONNECTION_ROUTING_KEYS){if(_0x1cb626[_0x186d09]!==undefined)_0x52e665[_0x186d09]=_0x1cb626[_0x186d09];}return _0x52e665;}export function getMultiAppConfigs(_0xbc0078=a275_0x20bad6(0x1dc),_0x50a446){const _0x3bf04f=a275_0x20bad6,_0xd10fd7=loadRawConfigLayers(_0x50a446);let _0x31591a,_0x208f25;const _0x4bb2d7=mergeRawConfigLayers(_0xd10fd7),_0x393303=_0xd10fd7[_0x3bf04f(0x21b)][_0x3bf04f(0x20f)]&&typeof _0xd10fd7[_0x3bf04f(0x21b)][_0x3bf04f(0x20f)]===_0x3bf04f(0x220)?_0xd10fd7[_0x3bf04f(0x21b)][_0x3bf04f(0x20f)]:{},_0x436e96=_0xd10fd7[_0x3bf04f(0x21e)]['apps']&&typeof _0xd10fd7[_0x3bf04f(0x21e)][_0x3bf04f(0x20f)]===_0x3bf04f(0x220)?_0xd10fd7['projectConfig'][_0x3bf04f(0x20f)]:{};_0xbc0078===_0x3bf04f(0x215)?(_0x31591a={..._0x393303,..._0x436e96},_0x208f25=_0x4bb2d7[_0x3bf04f(0x1e4)]):(_0x31591a=_0xd10fd7['projectConfig'][_0x3bf04f(0x20f)],_0x208f25=_0xd10fd7[_0x3bf04f(0x21e)]['defaultApp']);!_0x208f25&&_0x31591a&&typeof _0x31591a==='object'&&Object['keys'](_0x31591a)[_0x3bf04f(0x204)]===0x1&&(_0x208f25=Object[_0x3bf04f(0x20c)](_0x31591a)[0x0]);if(!_0x31591a||typeof _0x31591a!==_0x3bf04f(0x220)||Object[_0x3bf04f(0x20c)](_0x31591a)['length']===0x0)return null;return Object[_0x3bf04f(0x1da)](_0x31591a)[_0x3bf04f(0x212)](([_0x118af9,_0x3ae841])=>{const _0xf1b3f4=_0x3bf04f,_0x36820e=_0xbc0078===_0xf1b3f4(0x1dc)||Object[_0xf1b3f4(0x1ff)][_0xf1b3f4(0x1eb)][_0xf1b3f4(0x1f6)](_0x436e96,_0x118af9),_0x425c29=withAppProfileRouting(_0x36820e?_0x4bb2d7:_0xd10fd7[_0xf1b3f4(0x21b)],_0x3ae841),_0x411e02=resolveEffectiveRegion({'appRegion':_0x3ae841?.[_0xf1b3f4(0x1e5)],'projectRegion':_0x36820e?_0xd10fd7[_0xf1b3f4(0x21e)][_0xf1b3f4(0x1e5)]:undefined,'globalRegion':_0xd10fd7[_0xf1b3f4(0x21b)]['region'],'mergedRegion':_0x425c29[_0xf1b3f4(0x1e5)],'appName':_0x118af9});return{'name':_0x118af9,'appcode':_0x3ae841?.['appcode']||'','apiGroup':optionalString(_0x3ae841?.[_0xf1b3f4(0x1ec)]),'isDefault':_0x118af9===_0x208f25,'region':_0x411e02[_0xf1b3f4(0x1e5)],'regionSource':_0x411e02[_0xf1b3f4(0x218)],'env':_0x3ae841?.[_0xf1b3f4(0x219)],'apiDir':optionalString(_0x3ae841?.[_0xf1b3f4(0x21f)])||optionalString(_0x425c29[_0xf1b3f4(0x21f)]),'cookie':_0x3ae841?.[_0xf1b3f4(0x1d3)]||undefined,'routingConfig':pickConnectionRoutingConfig(_0x425c29,_0x411e02[_0xf1b3f4(0x1e5)])};})[_0x3bf04f(0x1fc)](_0x49aafb=>_0x49aafb['appcode']);}export function getTemplateBaseUrl(_0x20597c){const _0x5997dc=a275_0x20bad6,_0x5811ea=readRawConfig(_0x20597c);if(_0x5811ea['template_base_url']&&typeof _0x5811ea[_0x5997dc(0x20d)]===_0x5997dc(0x21c))return _0x5811ea[_0x5997dc(0x20d)][_0x5997dc(0x201)](/\/$/,'');return _0x5997dc(0x1e9);}function buildConfig(_0x3e6754,_0x4b2a46,_0x40d5a2){const _0x2412e0=a275_0x20bad6,_0x24e634=resolveAppConfig({'raw':_0x3e6754,'flags':_0x4b2a46,'layers':_0x40d5a2,'readEnv':env}),_0x5309f3=_0x24e634['currentApp']?_0x24e634[_0x2412e0(0x20f)][_0x24e634['currentApp']]:undefined;return{..._0x24e634,'raw':withAppProfileRouting(_0x3e6754,_0x5309f3)};}function a275_0x41e0(){const _0x1c10c6=['string','routing','projectConfig','apiDir','object','cookie','project\x20Rabetbase\x20configuration','./constant/env.js','join','4017000smTfBP','currentApp','cdn','entries','app\x20profile\x20\x22','project','kbServiceDomain','3373032YUucGQ','platformDomain','5999ePJyaZ','localDomain','configuredRegion','regionLocation','defaultApp','region','regionSource','apiDomain','skillHubDomain','https://g.lovrabet.com/dist/lovrabet-skill','kbDomain','hasOwnProperty','apiGroup','some','16VDFhaK','name','Rabetbase\x20configuration','routingConfig','agentDomain','./utils/is-non-interactive.js','global\x20Rabetbase\x20configuration','cwd','call','564100PpPWov','./constant/domain.js','global','12YlsxQW','appcode','filter','slice','raw','prototype','certificateDomain','replace','setRawCommand','trim','length','app','appDomain','daily','runtimeDomain','104040wxMcKm','6299091CYWFIj','filePath','keys','template_base_url','targetEnv','apps','skillDomain','900393LnfWcB','map','regionConfiguredValue','argv','merged','domains','doctor','source','env','config','globalConfig'];a275_0x41e0=function(){return _0x1c10c6;};return a275_0x41e0();}export function resolveApiFilePath(_0x117cd6,_0x2222da,_0x4fe37b){const _0x26272d=a275_0x20bad6;return resolveApiModelSource(_0x117cd6,_0x2222da,_0x4fe37b)[_0x26272d(0x20b)];}
|
|
1
|
+
const a279_0x5a5500=a279_0x48b0;(function(_0x1ea5ef,_0x32236a){const _0x53b733=a279_0x48b0,_0x20f61b=_0x1ea5ef();while(!![]){try{const _0x36a7e3=parseInt(_0x53b733(0x200))/0x1+parseInt(_0x53b733(0x1f4))/0x2+parseInt(_0x53b733(0x1f0))/0x3+-parseInt(_0x53b733(0x1ca))/0x4+parseInt(_0x53b733(0x1ec))/0x5*(parseInt(_0x53b733(0x20c))/0x6)+-parseInt(_0x53b733(0x1fa))/0x7*(-parseInt(_0x53b733(0x207))/0x8)+parseInt(_0x53b733(0x1ef))/0x9*(-parseInt(_0x53b733(0x204))/0xa);if(_0x36a7e3===_0x32236a)break;else _0x20f61b['push'](_0x20f61b['shift']());}catch(_0x22db79){_0x20f61b['push'](_0x20f61b['shift']());}}}(a279_0x13dd,0x4f91c));import{CLI_BIN_NAME}from'./constant/cli.js';import{buildAuth}from'./context/auth-resolver.js';import{resolveAppConfig}from'./context/app-resolver.js';import{CONFIG_NAMES,NEW_CONFIG_NAME,findProjectRootDirectory,getGlobalConfigPath,getProjectConfigPath,inspectCliConfigJsonFile,isInProject,loadRawConfigLayers,mergeRawConfigLayers,readConfigFile,readRawConfig,readRawConfigWithLayers,resolveConfigPath,resolveWriteConfigPath,writeConfigFile}from'./context/config-loader.js';import{resolveConfiguredRegion,resolveEffectiveRegion}from'./config/region-config.js';import{resolveEnterpriseRoutingManifest}from'./config/domain-config.js';import{logger}from'./utils/logger.js';import{resolveApiModelSource}from'./api/model-source.js';export{CONFIG_NAMES,NEW_CONFIG_NAME,findProjectRootDirectory,getGlobalConfigPath,getProjectConfigPath,inspectCliConfigJsonFile,isInProject,loadRawConfigLayers,mergeRawConfigLayers,readConfigFile,readRawConfig,readRawConfigWithLayers,resolveConfigPath,resolveWriteConfigPath,writeConfigFile};function env(_0x84677b){return process.env[`RABETBASE_${_0x84677b}`]||process.env[`LOVRABET_${_0x84677b}`]||undefined;}function optionalString(_0xff83c){const _0x4e05e3=a279_0x48b0;return typeof _0xff83c===_0x4e05e3(0x1d7)&&_0xff83c[_0x4e05e3(0x1d0)]()?_0xff83c['trim']():undefined;}function a279_0x48b0(_0x3a8f05,_0x30f2a6){_0x3a8f05=_0x3a8f05-0x1c6;const _0x13dd1b=a279_0x13dd();let _0x48b0db=_0x13dd1b[_0x3a8f05];return _0x48b0db;}export function isRoutingRecoveryService(_0x11f4a9){const _0x2ed859=a279_0x48b0;return _0x11f4a9===_0x2ed859(0x1d8)||_0x11f4a9===_0x2ed859(0x1dd);}export async function createContext(_0x32a464){const _0x35bf7c=a279_0x48b0,{config:_0x3c29e9,layers:_0x32159a}=readRawConfigWithLayers(),_0x4990d4=buildConfig(_0x3c29e9,_0x32a464,_0x32159a);await initGlobalEnvironment(_0x4990d4);const {getUserDomain:_0x1ade4a,getApiDomain:_0x3f63de}=await import(_0x35bf7c(0x1d4)),_0x2b62bb={'apiDomain':_0x3f63de(),'userDomain':_0x1ade4a()},_0x50111d=await buildAuth(_0x4990d4);logger['setLogPath'](process[_0x35bf7c(0x209)]());const _0x1c5ed5=(CLI_BIN_NAME+'\x20'+process['argv']['slice'](0x2)[_0x35bf7c(0x1f9)]('\x20'))[_0x35bf7c(0x1d0)]();logger['setRawCommand'](_0x1c5ed5);const {isNonInteractive:_0x3b4541}=await import(_0x35bf7c(0x1ed)),_0x15dbd7=_0x3b4541(_0x32a464);return{'config':_0x4990d4,'auth':_0x50111d,'logger':logger,'env':_0x2b62bb,'nonInteractive':_0x15dbd7};}export function buildConfigFromFlags(_0x207a56){const {config:_0x45b6fd,layers:_0x1d0784}=readRawConfigWithLayers();return buildConfig(_0x45b6fd,_0x207a56,_0x1d0784);}export async function initGlobalEnvironment(_0x3ae266){const _0x5f02fe=a279_0x48b0,_0x6e918=_0x3ae266[_0x5f02fe(0x1d6)]===_0x5f02fe(0x1d2)&&_0x3ae266[_0x5f02fe(0x1e8)]?'app\x20profile\x20\x22'+_0x3ae266['currentApp']+'\x22':_0x3ae266[_0x5f02fe(0x1d6)]===_0x5f02fe(0x1e9)?_0x5f02fe(0x20e):_0x3ae266[_0x5f02fe(0x1d6)]===_0x5f02fe(0x1f7)?_0x5f02fe(0x1e7):_0x5f02fe(0x1f8);await initConfiguredEnvironment({'raw':_0x3ae266[_0x5f02fe(0x1e3)],'configuredRegion':_0x3ae266['regionConfiguredValue']??_0x3ae266[_0x5f02fe(0x1e3)]?.[_0x5f02fe(0x1fd)]??_0x3ae266[_0x5f02fe(0x1fd)],'regionLocation':_0x6e918,'targetEnv':_0x3ae266[_0x5f02fe(0x20a)]});}async function initConfiguredEnvironment(_0x1e3421){const _0x13fdc5=a279_0x48b0,_0x3a9696=resolveConfiguredRegion(_0x1e3421['configuredRegion'],_0x1e3421[_0x13fdc5(0x1e1)]),_0x16debb=resolveEnterpriseRoutingManifest(_0x1e3421[_0x13fdc5(0x1e3)]?.['routing']),_0x47ea22={'region':_0x3a9696,'apiDomain':_0x16debb?_0x16debb['domains'][_0x13fdc5(0x1cd)]:optionalString(_0x1e3421[_0x13fdc5(0x1e3)]?.['apiDomain']),'userDomain':_0x16debb?_0x16debb[_0x13fdc5(0x208)]['userDomain']:optionalString(_0x1e3421[_0x13fdc5(0x1e3)]?.['userDomain']),'runtimeDomain':_0x16debb?_0x16debb[_0x13fdc5(0x208)][_0x13fdc5(0x1e6)]:optionalString(_0x1e3421[_0x13fdc5(0x1e3)]?.[_0x13fdc5(0x1e6)]),'skillDomain':_0x16debb?_0x16debb[_0x13fdc5(0x208)][_0x13fdc5(0x1d9)]:optionalString(_0x1e3421[_0x13fdc5(0x1e3)]?.['skillDomain'])||optionalString(_0x1e3421['raw']?.[_0x13fdc5(0x1d1)])||optionalString(_0x1e3421[_0x13fdc5(0x1e3)]?.[_0x13fdc5(0x1c7)])||optionalString(_0x1e3421[_0x13fdc5(0x1e3)]?.[_0x13fdc5(0x1c8)]),'kbDomain':_0x16debb?_0x16debb['domains'][_0x13fdc5(0x1de)]:optionalString(_0x1e3421[_0x13fdc5(0x1e3)]?.['kbDomain'])||optionalString(_0x1e3421['raw']?.['agentDomain'])||optionalString(_0x1e3421[_0x13fdc5(0x1e3)]?.['platformDomain']),'kbServiceDomain':_0x16debb?_0x16debb[_0x13fdc5(0x208)][_0x13fdc5(0x1f5)]:optionalString(_0x1e3421[_0x13fdc5(0x1e3)]?.['kbServiceDomain']),'appDomain':_0x16debb?_0x16debb[_0x13fdc5(0x208)]['appDomain']:optionalString(_0x1e3421[_0x13fdc5(0x1e3)]?.['appDomain']),'localDomain':_0x16debb?_0x16debb[_0x13fdc5(0x208)][_0x13fdc5(0x205)]:optionalString(_0x1e3421['raw']?.[_0x13fdc5(0x205)]),'certificateDomain':_0x16debb?_0x16debb['domains']['certificateDomain']:optionalString(_0x1e3421['raw']?.[_0x13fdc5(0x1d3)]),'cdn':_0x16debb?.[_0x13fdc5(0x1dc)],'allowOfficialKbServiceDefault':!(_0x16debb!==undefined||[_0x13fdc5(0x1cd),_0x13fdc5(0x1eb),_0x13fdc5(0x1e6),_0x13fdc5(0x1d9),'skillHubDomain',_0x13fdc5(0x1de),_0x13fdc5(0x1f5),_0x13fdc5(0x1c7),_0x13fdc5(0x1c8),_0x13fdc5(0x1ee),_0x13fdc5(0x205),_0x13fdc5(0x1d3)][_0x13fdc5(0x1fe)](_0x37cbb4=>Object[_0x13fdc5(0x1c6)][_0x13fdc5(0x203)]['call'](_0x1e3421[_0x13fdc5(0x1e3)]??{},_0x37cbb4)))},{initEnv:_0x1db586}=await import(_0x13fdc5(0x1cb)),{initDomains:_0x5c5cf8}=await import('./constant/domain.js');_0x1db586(_0x1e3421['targetEnv']),_0x5c5cf8(_0x47ea22);}export async function initMultiAppEnvironment(_0x3b3bd6){const _0x3084f1=a279_0x48b0;await initConfiguredEnvironment({'raw':_0x3b3bd6[_0x3084f1(0x1ff)],'configuredRegion':_0x3b3bd6[_0x3084f1(0x1fd)],'regionLocation':_0x3084f1(0x1db)+_0x3b3bd6[_0x3084f1(0x1e4)]+'\x22','targetEnv':_0x3b3bd6[_0x3084f1(0x20a)]==='daily'?_0x3084f1(0x1f1):_0x3084f1(0x202)});}export function getConfigAppCode(_0x39b3a5){const _0x4292e6=a279_0x48b0,_0x1c6e7f=readRawConfig(_0x39b3a5);if(_0x1c6e7f[_0x4292e6(0x1e0)]&&typeof _0x1c6e7f['apps']==='object'){const _0x3fcc91=_0x1c6e7f[_0x4292e6(0x1cc)];if(_0x3fcc91)return _0x1c6e7f[_0x4292e6(0x1e0)][_0x3fcc91]?.['appcode']?String(_0x1c6e7f[_0x4292e6(0x1e0)][_0x3fcc91][_0x4292e6(0x1e5)])[_0x4292e6(0x1d0)]():undefined;const _0x521914=Object[_0x4292e6(0x1f3)](_0x1c6e7f[_0x4292e6(0x1e0)]);if(_0x521914['length']===0x1&&_0x521914[0x0]?.['appcode'])return String(_0x521914[0x0]['appcode'])[_0x4292e6(0x1d0)]();}const _0x40ba11=_0x1c6e7f[_0x4292e6(0x1e5)]||_0x1c6e7f['app'];if(typeof _0x40ba11!=='string'||_0x40ba11[_0x4292e6(0x1d0)]()==='')return undefined;return _0x40ba11[_0x4292e6(0x1d0)]();}function a279_0x13dd(){const _0x9e21cf=['routing','keys','trim','skillHubDomain','app','certificateDomain','./constant/domain.js','apiGroup','regionSource','string','config','skillDomain','length','app\x20profile\x20\x22','cdn','doctor','kbDomain','call','apps','regionLocation','globalConfig','raw','name','appcode','runtimeDomain','global\x20Rabetbase\x20configuration','currentApp','project','template_base_url','userDomain','4790XagGVs','./utils/is-non-interactive.js','appDomain','1062OSWiwe','526998aOAZSz','daily','https://g.lovrabet.com/dist/lovrabet-skill','values','301916uZVsUu','kbServiceDomain','projectConfig','global','Rabetbase\x20configuration','join','48426Kcqedm','entries','object','region','some','routingConfig','613474qbtFxw','apiDir','production','hasOwnProperty','58280UuFTUa','localDomain','source','328kBwTGu','domains','cwd','env','filePath','1614YhHBcY','cookie','project\x20Rabetbase\x20configuration','prototype','agentDomain','platformDomain','filter','1871272GOriqt','./constant/env.js','defaultApp','apiDomain'];a279_0x13dd=function(){return _0x9e21cf;};return a279_0x13dd();}const CONNECTION_ROUTING_KEYS=[a279_0x5a5500(0x1ce),a279_0x5a5500(0x1cd),a279_0x5a5500(0x1eb),a279_0x5a5500(0x1e6),a279_0x5a5500(0x1d9),a279_0x5a5500(0x1d1),'kbDomain',a279_0x5a5500(0x1f5),a279_0x5a5500(0x1c7),a279_0x5a5500(0x1c8),'appDomain',a279_0x5a5500(0x205),a279_0x5a5500(0x1d3)];function withAppProfileRouting(_0xdf34aa,_0x2c706f){const _0x5c1199=a279_0x5a5500;if(!_0x2c706f||_0x2c706f[_0x5c1199(0x1f5)]===undefined)return _0xdf34aa;return{..._0xdf34aa,'kbServiceDomain':_0x2c706f[_0x5c1199(0x1f5)]};}function pickConnectionRoutingConfig(_0x4440ca,_0x5f41b7){const _0xa86ba7={'region':_0x5f41b7};for(const _0x15a0db of CONNECTION_ROUTING_KEYS){if(_0x4440ca[_0x15a0db]!==undefined)_0xa86ba7[_0x15a0db]=_0x4440ca[_0x15a0db];}return _0xa86ba7;}export function getMultiAppConfigs(_0x4faf5d=a279_0x5a5500(0x1e9),_0x4d6505){const _0x459181=a279_0x5a5500,_0x352b65=loadRawConfigLayers(_0x4d6505);let _0xd0c7f6,_0xf959cb;const _0x51d436=mergeRawConfigLayers(_0x352b65),_0x2722ff=_0x352b65[_0x459181(0x1e2)][_0x459181(0x1e0)]&&typeof _0x352b65['globalConfig'][_0x459181(0x1e0)]===_0x459181(0x1fc)?_0x352b65[_0x459181(0x1e2)][_0x459181(0x1e0)]:{},_0x35ab04=_0x352b65[_0x459181(0x1f6)][_0x459181(0x1e0)]&&typeof _0x352b65[_0x459181(0x1f6)][_0x459181(0x1e0)]==='object'?_0x352b65['projectConfig'][_0x459181(0x1e0)]:{};_0x4faf5d==='merged'?(_0xd0c7f6={..._0x2722ff,..._0x35ab04},_0xf959cb=_0x51d436['defaultApp']):(_0xd0c7f6=_0x352b65['projectConfig']['apps'],_0xf959cb=_0x352b65[_0x459181(0x1f6)]['defaultApp']);!_0xf959cb&&_0xd0c7f6&&typeof _0xd0c7f6==='object'&&Object['keys'](_0xd0c7f6)[_0x459181(0x1da)]===0x1&&(_0xf959cb=Object[_0x459181(0x1cf)](_0xd0c7f6)[0x0]);if(!_0xd0c7f6||typeof _0xd0c7f6!=='object'||Object['keys'](_0xd0c7f6)[_0x459181(0x1da)]===0x0)return null;return Object[_0x459181(0x1fb)](_0xd0c7f6)['map'](([_0x56a6fa,_0x2b9faf])=>{const _0x1f92a8=_0x459181,_0x5a096b=_0x4faf5d===_0x1f92a8(0x1e9)||Object[_0x1f92a8(0x1c6)][_0x1f92a8(0x203)][_0x1f92a8(0x1df)](_0x35ab04,_0x56a6fa),_0x1ae6d6=withAppProfileRouting(_0x5a096b?_0x51d436:_0x352b65[_0x1f92a8(0x1e2)],_0x2b9faf),_0x1a52f5=resolveEffectiveRegion({'appRegion':_0x2b9faf?.[_0x1f92a8(0x1fd)],'projectRegion':_0x5a096b?_0x352b65[_0x1f92a8(0x1f6)][_0x1f92a8(0x1fd)]:undefined,'globalRegion':_0x352b65[_0x1f92a8(0x1e2)][_0x1f92a8(0x1fd)],'mergedRegion':_0x1ae6d6['region'],'appName':_0x56a6fa});return{'name':_0x56a6fa,'appcode':_0x2b9faf?.[_0x1f92a8(0x1e5)]||'','apiGroup':optionalString(_0x2b9faf?.[_0x1f92a8(0x1d5)]),'isDefault':_0x56a6fa===_0xf959cb,'region':_0x1a52f5[_0x1f92a8(0x1fd)],'regionSource':_0x1a52f5[_0x1f92a8(0x206)],'env':_0x2b9faf?.[_0x1f92a8(0x20a)],'apiDir':optionalString(_0x2b9faf?.[_0x1f92a8(0x201)])||optionalString(_0x1ae6d6['apiDir']),'cookie':_0x2b9faf?.[_0x1f92a8(0x20d)]||undefined,'routingConfig':pickConnectionRoutingConfig(_0x1ae6d6,_0x1a52f5[_0x1f92a8(0x1fd)])};})[_0x459181(0x1c9)](_0xf942c3=>_0xf942c3[_0x459181(0x1e5)]);}export function getTemplateBaseUrl(_0x6f97b3){const _0x4b52cc=a279_0x5a5500,_0x36c3fd=readRawConfig(_0x6f97b3);if(_0x36c3fd[_0x4b52cc(0x1ea)]&&typeof _0x36c3fd['template_base_url']===_0x4b52cc(0x1d7))return _0x36c3fd['template_base_url']['replace'](/\/$/,'');return _0x4b52cc(0x1f2);}function buildConfig(_0x31e8c2,_0xf8898,_0x256b9c){const _0x2bf79d=a279_0x5a5500,_0x3e0d80=resolveAppConfig({'raw':_0x31e8c2,'flags':_0xf8898,'layers':_0x256b9c,'readEnv':env}),_0x33f154=_0x3e0d80[_0x2bf79d(0x1e8)]?_0x3e0d80[_0x2bf79d(0x1e0)][_0x3e0d80[_0x2bf79d(0x1e8)]]:undefined;return{..._0x3e0d80,'raw':withAppProfileRouting(_0x31e8c2,_0x33f154)};}export function resolveApiFilePath(_0x1993f7,_0x45106c,_0x489c26){const _0x618578=a279_0x5a5500;return resolveApiModelSource(_0x1993f7,_0x45106c,_0x489c26)[_0x618578(0x20b)];}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a280_0x3eb042=a280_0x3b4b;(function(_0x2ad1f9,_0x21994f){const _0x312ec4=a280_0x3b4b,_0x429d87=_0x2ad1f9();while(!![]){try{const _0x3361a8=-parseInt(_0x312ec4(0xf4))/0x1+parseInt(_0x312ec4(0xdb))/0x2*(-parseInt(_0x312ec4(0xe6))/0x3)+-parseInt(_0x312ec4(0xf9))/0x4*(-parseInt(_0x312ec4(0xda))/0x5)+-parseInt(_0x312ec4(0xf3))/0x6+-parseInt(_0x312ec4(0xf0))/0x7*(-parseInt(_0x312ec4(0x102))/0x8)+-parseInt(_0x312ec4(0xe7))/0x9+parseInt(_0x312ec4(0xee))/0xa;if(_0x3361a8===_0x21994f)break;else _0x429d87['push'](_0x429d87['shift']());}catch(_0x10bec7){_0x429d87['push'](_0x429d87['shift']());}}}(a280_0x5ac7,0x2ef2a));import{existsSync,readFileSync,realpathSync,statSync}from'node:fs';import{dirname,extname,isAbsolute,relative,resolve}from'node:path';import{MODEL_REGISTRY_FILE_NAME,getProfileModels,readModelRegistry}from'../api/model-registry-file.js';import{parseLegacyApiModels}from'../api/legacy-api-file.js';import{findProjectRootDirectory}from'../context/config-loader.js';const cache=new Map(),MAX_LOCAL_REEXPORT_DEPTH=0x8,SOURCE_FILE_EXTENSIONS=[a280_0x3eb042(0xf2),a280_0x3eb042(0xe9),'.mts',a280_0x3eb042(0xf7),a280_0x3eb042(0xfc),a280_0x3eb042(0xe3),'.mjs',a280_0x3eb042(0xed)],LOCAL_REEXPORT_RE=/\bexport\s+(?:type\s+)?(?:\{[\s\S]*?\}|\*)\s+from\s*["']([^"']+)["']/g,SOURCE_EXTENSIONS_BY_RUNTIME_EXTENSION={'.js':[a280_0x3eb042(0xf2),a280_0x3eb042(0xe9)],'.jsx':[a280_0x3eb042(0xe9)],'.mjs':[a280_0x3eb042(0x100)],'.cjs':[a280_0x3eb042(0xf7)]};function parseApiFile(_0xa6540f){const _0x3c0ba1=a280_0x3eb042;return parseLegacyApiModels(_0xa6540f)[_0x3c0ba1(0xfb)](_0x4af049=>_0x4af049['alias']?[{'alias':_0x4af049[_0x3c0ba1(0xec)],'datasetCode':_0x4af049[_0x3c0ba1(0xf1)],'tableName':_0x4af049['tableName'],'name':_0x4af049[_0x3c0ba1(0xfa)]}]:[]);}function isWithinRoot(_0x548ce2,_0x47e192){const _0x56a3e9=relative(_0x548ce2,_0x47e192);return _0x56a3e9===''||!_0x56a3e9['startsWith']('..')&&!isAbsolute(_0x56a3e9);}function resolveExistingFile(_0x291804){const _0x2295f8=a280_0x3eb042;if(!existsSync(_0x291804))return undefined;try{return statSync(_0x291804)[_0x2295f8(0xdd)]()?realpathSync(_0x291804):undefined;}catch{return undefined;}}function reexportCandidatePaths(_0x1ccc90){const _0x5c26d7=a280_0x3eb042,_0x5bc295=extname(_0x1ccc90);if(!_0x5bc295)return[...SOURCE_FILE_EXTENSIONS[_0x5c26d7(0xe8)](_0x54f078=>''+_0x1ccc90+_0x54f078),...SOURCE_FILE_EXTENSIONS[_0x5c26d7(0xe8)](_0x35840b=>resolve(_0x1ccc90,_0x5c26d7(0xe0)+_0x35840b))];const _0x11c894=SOURCE_EXTENSIONS_BY_RUNTIME_EXTENSION[_0x5bc295];if(!_0x11c894)return[_0x1ccc90];const _0x363f57=_0x1ccc90['slice'](0x0,-_0x5bc295[_0x5c26d7(0xff)]);return[..._0x11c894[_0x5c26d7(0xe8)](_0x9dae4c=>''+_0x363f57+_0x9dae4c),_0x1ccc90];}function resolveLocalReexport(_0x4387aa,_0x5e5ea5,_0x42e84d){const _0x393b29=a280_0x3eb042;if(!_0x5e5ea5[_0x393b29(0xf6)]('./')&&!_0x5e5ea5[_0x393b29(0xf6)](_0x393b29(0xeb)))return undefined;const _0x569fe3=resolve(dirname(_0x4387aa),_0x5e5ea5);if(!isWithinRoot(_0x42e84d,_0x569fe3))return undefined;for(const _0x4ad748 of reexportCandidatePaths(_0x569fe3)){const _0x3599e0=resolveExistingFile(_0x4ad748);if(_0x3599e0&&isWithinRoot(_0x42e84d,_0x3599e0))return _0x3599e0;}return undefined;}function a280_0x5ac7(){const _0x38667c=['startsWith','.cts','filter','727996DcWqbR','name','flatMap','.js','stringify','cwd','length','.mts','defaultProfile','176zfHAXC','5jXtQub','2xvWcpp','utf-8','isFile','has','get','index','push','endsWith','.jsx','set','size','487167UYwaWW','582300yjxaCc','map','.tsx','source','../','alias','.cjs','4404990AARmWc','tableName','15652ftHtlx','datasetCode','.ts','1162926mvTVNy','58482csZonk','flags'];a280_0x5ac7=function(){return _0x38667c;};return a280_0x5ac7();}function parseApiFileTree(_0x1e60b5,_0x3407f0,_0x3bdb02,_0x467df1){const _0x474975=a280_0x3eb042,_0x1bd073=resolveExistingFile(_0x1e60b5);if(!_0x1bd073)return[];const _0x59ffc9=_0x3bdb02['get'](_0x1bd073);if(_0x59ffc9!==undefined&&_0x59ffc9<=_0x467df1)return[];_0x3bdb02[_0x474975(0xe4)](_0x1bd073,_0x467df1);const _0x2da9e1=readFileSync(_0x1bd073,_0x474975(0xdc)),_0x73901a=parseApiFile(_0x2da9e1);if(_0x467df1>=MAX_LOCAL_REEXPORT_DEPTH)return _0x73901a;const _0x191546=new RegExp(LOCAL_REEXPORT_RE[_0x474975(0xea)],LOCAL_REEXPORT_RE[_0x474975(0xf5)]);let _0x3c1659;while((_0x3c1659=_0x191546['exec'](_0x2da9e1))!==null){const _0x203dbe=resolveLocalReexport(_0x1bd073,_0x3c1659[0x1],_0x3407f0);_0x203dbe&&_0x73901a[_0x474975(0xe1)](...parseApiFileTree(_0x203dbe,_0x3407f0,_0x3bdb02,_0x467df1+0x1));}return _0x73901a;}function a280_0x3b4b(_0x5edbdb,_0x43bae8){_0x5edbdb=_0x5edbdb-0xda;const _0x5ac709=a280_0x5ac7();let _0x3b4b25=_0x5ac709[_0x5edbdb];return _0x3b4b25;}function aliasProjectRoot(_0x15d2b9){const _0x23368a=findProjectRootDirectory(dirname(_0x15d2b9));try{return realpathSync(_0x23368a);}catch{return _0x23368a;}}function uniqueAliasEntries(_0x13c9d6){const _0x2acdd6=a280_0x3eb042,_0x30c492=new Set();return _0x13c9d6[_0x2acdd6(0xf8)](_0x1db488=>{const _0x3e92ef=_0x2acdd6,_0x571ed8=JSON[_0x3e92ef(0xfd)](_0x1db488);if(_0x30c492[_0x3e92ef(0xde)](_0x571ed8))return![];return _0x30c492['add'](_0x571ed8),!![];});}export function loadAliasMap(_0x45250f,_0x812b08,_0x386963,_0x53c5e8){const _0x17f3ab=a280_0x3eb042,_0x48c938=resolve(_0x386963??resolve(process[_0x17f3ab(0xfe)](),_0x45250f,'api.ts')),_0x3d15e0=_0x53c5e8?_0x48c938+'#'+_0x53c5e8:_0x48c938;if(cache['has'](_0x3d15e0))return cache[_0x17f3ab(0xdf)](_0x3d15e0);if(!existsSync(_0x48c938))return cache[_0x17f3ab(0xe4)](_0x3d15e0,[]),[];try{if(_0x48c938[_0x17f3ab(0xe2)](MODEL_REGISTRY_FILE_NAME)){const _0xeb41b0=readModelRegistry(_0x48c938),_0x2574b3=_0x53c5e8??_0xeb41b0?.[_0x17f3ab(0x101)],_0x468bc9=_0x2574b3&&_0xeb41b0?getProfileModels(_0xeb41b0,_0x2574b3):[],_0x21cc2f=uniqueAliasEntries(_0x468bc9[_0x17f3ab(0xfb)](_0x4315e0=>_0x4315e0[_0x17f3ab(0xec)]?[{'alias':_0x4315e0['alias'],'datasetCode':_0x4315e0[_0x17f3ab(0xf1)],'tableName':_0x4315e0[_0x17f3ab(0xef)],'name':_0x4315e0['name']}]:[]));return cache[_0x17f3ab(0xe4)](_0x3d15e0,_0x21cc2f),_0x21cc2f;}const _0x15b581=uniqueAliasEntries(parseApiFileTree(_0x48c938,aliasProjectRoot(_0x48c938),new Map(),0x0));return cache[_0x17f3ab(0xe4)](_0x3d15e0,_0x15b581),_0x15b581;}catch{return cache[_0x17f3ab(0xe4)](_0x3d15e0,[]),[];}}export function resolveAlias(_0xd49147,_0x4831d6,_0x3f1990,_0x152e18,_0x201b78){const _0x21a29d=a280_0x3eb042;if(!_0x4831d6)return undefined;const _0x45da58=loadAliasMap(_0xd49147,_0x3f1990,_0x152e18,_0x201b78),_0x4c6791=new Set(_0x45da58[_0x21a29d(0xf8)](_0x4a9ad1=>_0x4a9ad1[_0x21a29d(0xec)]===_0x4831d6)[_0x21a29d(0xe8)](_0x4f2986=>_0x4f2986[_0x21a29d(0xf1)]));return _0x4c6791[_0x21a29d(0xe5)]===0x1?[..._0x4c6791][0x0]:undefined;}export function listAliases(_0x163002,_0x133629,_0x5edc76,_0x4ef5aa){return loadAliasMap(_0x163002,_0x133629,_0x5edc76,_0x4ef5aa);}
|
package/lib/core/api-client.d.ts
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import type { Paging } from "../framework/response.js";
|
|
8
8
|
import { type CrossDbRelationDetail, type CrossDbRelationMutation, type CrossDbRelationQuery, type CrossDbRelationSource } from "../core/cross-db-relation.js";
|
|
9
|
+
import { type CrossDbAnalysisStatus } from "../core/cross-db-analysis.js";
|
|
9
10
|
import type { FetchDocOptions, FetchModelListResult } from "../types/index.js";
|
|
10
11
|
export declare function setActiveCookie(cookie: string): void;
|
|
11
12
|
export declare function clearActiveCookie(): void;
|
|
@@ -1314,6 +1315,12 @@ export interface DbAnalysisStartResult {
|
|
|
1314
1315
|
export declare function startDbAnalysis(dbLinkId: number, tableNames?: string[]): Promise<DbAnalysisStartResult>;
|
|
1315
1316
|
export declare function cancelDbAnalysis(planId: string): Promise<void>;
|
|
1316
1317
|
export declare function getDbAnalysisStatus(planId: string): Promise<DbAnalysisStatus>;
|
|
1318
|
+
/** POST with Cookie auth; the server returns a traceId string, exposed as planId. Never retry. */
|
|
1319
|
+
export declare function startCrossDbAnalysis(appCode: string, dbLinkIds: number[]): Promise<string>;
|
|
1320
|
+
/** GET by encoded planId only. Reject mismatched task identity; preserve unknown lifecycle states. */
|
|
1321
|
+
export declare function getCrossDbAnalysisStatus(planId: string): Promise<CrossDbAnalysisStatus>;
|
|
1322
|
+
/** GET latest-job with appCode. An explicit null is normal absence; missing/invalid data is an error. */
|
|
1323
|
+
export declare function getLatestCrossDbAnalysisPlan(appCode: string): Promise<string | null>;
|
|
1317
1324
|
export declare function getDbTableDiff(appCode: string, dbLinkId: number, opts?: {
|
|
1318
1325
|
pageIndex?: number;
|
|
1319
1326
|
pageSize?: number;
|