@lovrabet/rabetbase-cli 2.5.8-beta.2 → 2.5.9-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/README.md +6 -6
- package/lib/api/api-doc.js +1 -1
- package/lib/api/api-group.js +1 -1
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.js +1 -1
- package/lib/api/generate-sdk-config-file.js +1 -1
- package/lib/api/legacy-api-file.js +1 -1
- package/lib/api/model-registry-file.js +1 -1
- package/lib/api/model-registry-scaffold.js +1 -1
- package/lib/api/model-source.js +1 -1
- package/lib/auth/auth-server-ui.js +1 -1
- package/lib/auth/auth-server.js +1 -1
- package/lib/auth/constant.js +1 -1
- package/lib/auth/get-cookie.js +1 -1
- package/lib/auth/get-session-user.js +1 -1
- package/lib/auth/is-session-valid.js +1 -1
- package/lib/auth/login-success-html.js +1 -1
- package/lib/auth/logout.js +1 -1
- package/lib/cli-flags.js +1 -1
- package/lib/cli.js +1 -1
- package/lib/commands/api/generate.js +1 -1
- package/lib/commands/api/index.js +1 -1
- package/lib/commands/api/list.js +1 -1
- package/lib/commands/api/pull.js +1 -1
- package/lib/commands/api/shared.js +1 -1
- package/lib/commands/app/detail.js +1 -1
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/members-list.js +1 -1
- package/lib/commands/app/remote-directory.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/delete.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/app-config/list.js +1 -1
- package/lib/commands/app-config/set.js +1 -1
- package/lib/commands/app-config/shared.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/bff/create.js +1 -1
- package/lib/commands/bff/delete.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/bff/list.js +1 -1
- package/lib/commands/bff/logs.js +1 -1
- package/lib/commands/bff/pull.js +1 -1
- package/lib/commands/bff/push.js +1 -1
- package/lib/commands/bff/status.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/cli-update.js +1 -1
- package/lib/commands/codegen/index.js +1 -1
- package/lib/commands/codegen/sdk.js +1 -1
- package/lib/commands/codegen/sql.js +1 -1
- package/lib/commands/common/app-registry.js +1 -1
- package/lib/commands/common/app-selector.js +1 -1
- package/lib/commands/common/async-task.js +1 -1
- package/lib/commands/common/dry-run.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/common/validate.js +1 -1
- package/lib/commands/config/delete.js +1 -1
- package/lib/commands/config/get.js +1 -1
- package/lib/commands/config/index.js +1 -1
- package/lib/commands/config/init.js +1 -1
- package/lib/commands/config/list.js +1 -1
- package/lib/commands/config/set.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/dataset/batch-design.js +1 -1
- package/lib/commands/dataset/business-group-update.js +1 -1
- package/lib/commands/dataset/business-groups.js +1 -1
- package/lib/commands/dataset/capability.js +1 -1
- package/lib/commands/dataset/cross-relation-create.js +1 -1
- package/lib/commands/dataset/cross-relation-delete.js +1 -1
- package/lib/commands/dataset/cross-relation-list.js +1 -1
- package/lib/commands/dataset/cross-relation-shared.js +1 -1
- package/lib/commands/dataset/cross-relation-update.js +1 -1
- package/lib/commands/dataset/delete.js +1 -1
- package/lib/commands/dataset/design-context.js +1 -1
- package/lib/commands/dataset/design-start.js +1 -1
- package/lib/commands/dataset/design-status.js +1 -1
- package/lib/commands/dataset/design-sync-retry.js +1 -1
- package/lib/commands/dataset/design-sync-status.js +1 -1
- package/lib/commands/dataset/design-validate.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/extend-update.js +1 -1
- package/lib/commands/dataset/field-restore.js +1 -1
- package/lib/commands/dataset/field-update.js +1 -1
- package/lib/commands/dataset/generate.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/dataset/relation-audit.js +1 -1
- package/lib/commands/dataset/relation-create.js +1 -1
- package/lib/commands/dataset/relation-delete.js +1 -1
- package/lib/commands/dataset/relation-shared.js +1 -1
- package/lib/commands/dataset/relation-update.js +1 -1
- package/lib/commands/dataset/relations.js +1 -1
- package/lib/commands/dataset/rename.js +1 -1
- package/lib/commands/dataset/restore.js +1 -1
- package/lib/commands/dataset/user-deleted-field-list.js +1 -1
- package/lib/commands/db/analysis-batching.js +1 -1
- package/lib/commands/db/analyze-batch-plan.js +1 -1
- package/lib/commands/db/analyze-cancel.js +1 -1
- package/lib/commands/db/analyze-start.js +1 -1
- package/lib/commands/db/analyze-status.js +1 -1
- package/lib/commands/db/create.js +1 -1
- package/lib/commands/db/cross-db-analysis-shared.js +1 -1
- package/lib/commands/db/cross-db-analyze-latest.js +1 -1
- package/lib/commands/db/cross-db-analyze-start.js +1 -1
- package/lib/commands/db/cross-db-analyze-status.js +1 -1
- package/lib/commands/db/delete.js +1 -1
- package/lib/commands/db/detail.js +1 -1
- package/lib/commands/db/diff-refresh-start.js +1 -1
- package/lib/commands/db/diff-refresh-status.js +1 -1
- package/lib/commands/db/diff.js +1 -1
- package/lib/commands/db/index.js +1 -1
- package/lib/commands/db/list.js +1 -1
- package/lib/commands/db/shared.js +1 -1
- package/lib/commands/db/table-diff-shared.js +1 -1
- package/lib/commands/db/tables.js +1 -1
- package/lib/commands/db/test.js +1 -1
- package/lib/commands/db/update.js +1 -1
- package/lib/commands/deployment/index.js +1 -1
- package/lib/commands/deployment/sync-all.js +1 -1
- package/lib/commands/deployment/sync-jobs.js +1 -1
- package/lib/commands/deployment/sync-status.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/flow/create.js +1 -1
- package/lib/commands/flow/detail.js +1 -1
- package/lib/commands/flow/index.js +1 -1
- package/lib/commands/flow/list.js +1 -1
- package/lib/commands/flow/page-list.js +1 -1
- package/lib/commands/flow/publish.js +1 -1
- package/lib/commands/flow/runtime-resources-shared.js +1 -1
- package/lib/commands/flow/runtime-role-list.js +1 -1
- package/lib/commands/flow/runtime-role-user-list.js +1 -1
- package/lib/commands/flow/runtime-user-search.js +1 -1
- package/lib/commands/flow/shared.js +1 -1
- package/lib/commands/flow/update.js +1 -1
- package/lib/commands/flow/validate.js +1 -1
- package/lib/commands/instant-api-policy/current.js +1 -1
- package/lib/commands/instant-api-policy/index.js +1 -1
- package/lib/commands/instant-api-policy/init.js +1 -1
- package/lib/commands/instant-api-policy/publish.js +1 -1
- package/lib/commands/instant-api-policy/pull.js +1 -1
- package/lib/commands/instant-api-policy/revision.js +1 -1
- package/lib/commands/instant-api-policy/revisions.js +1 -1
- package/lib/commands/instant-api-policy/rollback.js +1 -1
- package/lib/commands/instant-api-policy/shared.js +1 -1
- package/lib/commands/instant-api-policy/validate.js +1 -1
- package/lib/commands/issue/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.d.ts +8 -5
- 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.d.ts +5 -3
- 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 +14 -11
- 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/kb-management-client.d.ts +2 -2
- package/lib/core/kb-management-client.js +1 -1
- package/lib/core/kb-search-client.d.ts +3 -1
- package/lib/core/kb-search-client.js +1 -1
- package/lib/core/page/file-system.js +1 -1
- package/lib/core/page/hash.js +1 -1
- package/lib/core/page/lock.js +1 -1
- package/lib/core/page/lr-smart-jsx.js +1 -1
- package/lib/core/sql-index-auditor.js +1 -1
- package/lib/core/sql-sync/config.js +1 -1
- package/lib/core/sql-sync/file-system.js +1 -1
- package/lib/core/sql-sync/hash.js +1 -1
- package/lib/core/sql-sync/lock.js +1 -1
- package/lib/core/sql-sync/utils.js +1 -1
- package/lib/core/sql-validator.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/error-output.js +1 -1
- package/lib/framework/explicit-yes.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-alias.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/supported-flags.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/generated/official-routing.js +1 -1
- package/lib/generated/routing-contract.js +1 -1
- package/lib/help.js +1 -1
- package/lib/postinstall.js +1 -1
- package/lib/runtime/confirmation.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/services/dataset-design/checkpoint.js +1 -1
- package/lib/services/dataset-design/commands.js +1 -1
- package/lib/services/dataset-design/contract.js +1 -1
- package/lib/skills/builtin-skill.js +1 -1
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/skill-presence.js +1 -1
- package/lib/telemetry/cli-command-trace.js +1 -1
- package/lib/telemetry/cli-help-trace.js +1 -1
- package/lib/telemetry/ensure-cli-otel-config.js +1 -1
- package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
- package/lib/telemetry/send-cli-trace-log.js +1 -1
- package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
- package/lib/utils/ai_config.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cdn-config.js +1 -1
- package/lib/utils/check-sdk-version.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/config.js +1 -1
- package/lib/utils/entity-with-id.js +1 -1
- package/lib/utils/file-utils.js +1 -1
- package/lib/utils/guides-cdn.js +1 -1
- package/lib/utils/http-client.js +1 -1
- package/lib/utils/is-non-interactive.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/sleep.js +1 -1
- package/lib/utils/template-replacer.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/with-active-cookie.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
- package/skills/rabetbase/SKILL.md +1 -1
- package/skills/rabetbase/references/rabetbase-kb.md +17 -15
- package/skills/rabetbase/references/rabetbase-rule.md +8 -6
- package/skills/rabetbase-dataset-generation/SKILL.md +1 -1
- package/skills/rabetbase-page-generation/SKILL.md +1 -1
- package/skills/rabetbase.manifest.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a109_0x105b(_0x14f33f,_0x11ea1f){_0x14f33f=_0x14f33f-0x100;const _0x464a7d=a109_0x464a();let _0x105bb6=_0x464a7d[_0x14f33f];return _0x105bb6;}const a109_0x3871c1=a109_0x105b;function a109_0x464a(){const _0x591dac=['3XZWVAx','22gvosfr','5036535PeVJgG','4979180lSWxHR','appCode','22HNKKGk','77VZCldS','150472UwCYAj','1888320WgfgEp','read','DB_TABLE','2025068gvnHDO','5nbnKmh','Get\x20one\x20database\x20connection\x20by\x20id\x20(metadata\x20+\x20analysis\x20fields;\x20password\x20redacted)','num','detail','7604568ICZfwv','1373HOWXBF','dbName'];a109_0x464a=function(){return _0x591dac;};return a109_0x464a();}(function(_0x17900e,_0x4baf0d){const _0x2d603c=a109_0x105b,_0x2ff5cb=_0x17900e();while(!![]){try{const _0x49735b=-parseInt(_0x2d603c(0x109))/0x1*(parseInt(_0x2d603c(0x110))/0x2)+parseInt(_0x2d603c(0x10b))/0x3*(-parseInt(_0x2d603c(0x103))/0x4)+parseInt(_0x2d603c(0x104))/0x5*(-parseInt(_0x2d603c(0x100))/0x6)+-parseInt(_0x2d603c(0x111))/0x7*(parseInt(_0x2d603c(0x112))/0x8)+parseInt(_0x2d603c(0x10d))/0x9+-parseInt(_0x2d603c(0x10e))/0xa+-parseInt(_0x2d603c(0x10c))/0xb*(-parseInt(_0x2d603c(0x108))/0xc);if(_0x49735b===_0x4baf0d)break;else _0x2ff5cb['push'](_0x2ff5cb['shift']());}catch(_0x239e46){_0x2ff5cb['push'](_0x2ff5cb['shift']());}}}(a109_0x464a,0x45db8));import{getDbLinkInfo,listDatasets}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{buildDbDatasetDependency,sanitizeDbLinkForOutput}from'../../commands/db/shared.js';export const dbDetail={'service':'db','command':a109_0x3871c1(0x107),'description':a109_0x3871c1(0x105),'risk':a109_0x3871c1(0x101),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x93d943){const _0x1215f4=a109_0x3871c1,_0xac34dd=_0x93d943[_0x1215f4(0x106)]('id'),_0x1f4814=await getDbLinkInfo(_0xac34dd),_0x46cd68=await listDatasets(_0x1f4814[_0x1215f4(0x10f)]||_0x93d943[_0x1215f4(0x10f)],{'source':_0x1215f4(0x102)}),_0x53952c=buildDbDatasetDependency(_0x1f4814,_0x46cd68);return{'ok':!![],'data':{...sanitizeDbLinkForOutput(_0x1f4814),'datasetDependency':_0x53952c['datasetDependency']},'message':'db\x20link\x20'+_0xac34dd+':\x20'+_0x1f4814[_0x1215f4(0x10a)]};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a110_0x33b6ea=a110_0x2dda;(function(_0x469749,_0x2663dd){const _0x20ee8b=a110_0x2dda,_0x325276=_0x469749();while(!![]){try{const _0x29ed30=-parseInt(_0x20ee8b(0xde))/0x1*(-parseInt(_0x20ee8b(0xdc))/0x2)+-parseInt(_0x20ee8b(0xd8))/0x3+-parseInt(_0x20ee8b(0xe0))/0x4+-parseInt(_0x20ee8b(0xd2))/0x5*(parseInt(_0x20ee8b(0xd0))/0x6)+-parseInt(_0x20ee8b(0xe3))/0x7+parseInt(_0x20ee8b(0xdd))/0x8*(parseInt(_0x20ee8b(0xd1))/0x9)+parseInt(_0x20ee8b(0xd4))/0xa*(parseInt(_0x20ee8b(0xd5))/0xb);if(_0x29ed30===_0x2663dd)break;else _0x325276['push'](_0x325276['shift']());}catch(_0x5a8891){_0x325276['push'](_0x325276['shift']());}}}(a110_0x1f63,0xa1f0d));import{startDbTableDiffRefresh}from'../../core/api-client.js';import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a110_0x1f63(){const _0x11cecb=['97628VgSOuz','3936YBZaZf','12WlbXJs','Start\x20an\x20asynchronous\x20refresh\x20of\x20the\x20database\x20table-diff\x20result','3943804MlUDQS','Started\x20table-diff\x20refresh\x20for\x20db\x20link\x20','\x20db\x20diff-refresh-status\x20--id\x20','5254641MDEdVb','3574950kxucxC','1638ktaZcR','10FHVPeK','appCode','33434170FzqgAg','11FjBYRp','traceId','trim','1281468ohRVIQ','diff-refresh-start','validation','Table-diff\x20refresh\x20started\x20without\x20a\x20traceId;\x20the\x20request\x20outcome\x20is\x20unknown.\x20Do\x20not\x20submit\x20another\x20refresh\x20automatically.'];a110_0x1f63=function(){return _0x11cecb;};return a110_0x1f63();}import{CLI_BIN_NAME}from'../../constant/cli.js';import{CliErrors}from'../../errors.js';function a110_0x2dda(_0x3ec0b5,_0x2b1bbb){_0x3ec0b5=_0x3ec0b5-0xd0;const _0x1f63f5=a110_0x1f63();let _0x2dda47=_0x1f63f5[_0x3ec0b5];return _0x2dda47;}export const dbDiffRefreshStart={'service':'db','command':a110_0x33b6ea(0xd9),'description':a110_0x33b6ea(0xdf),'risk':'write','flags':[DBLINK_ID_FLAG],async 'execute'(_0x55207e){const _0x5ba995=a110_0x33b6ea,_0x4264d9=_0x55207e['num']('id'),_0x159616=await startDbTableDiffRefresh(_0x55207e[_0x5ba995(0xd3)],_0x4264d9),_0x316871=_0x159616[_0x5ba995(0xd6)]?.[_0x5ba995(0xd7)]();if(!_0x316871)throw CliErrors[_0x5ba995(0xda)](_0x5ba995(0xdb));return{'ok':!![],'data':{'dbLinkId':_0x4264d9,'traceId':_0x316871,'status':_0x159616['status']??null,'query':{'command':CLI_BIN_NAME+_0x5ba995(0xe2)+_0x4264d9+'\x20--plan\x20'+_0x316871+'\x20--format\x20compress'}},'message':_0x5ba995(0xe1)+_0x4264d9};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a111_0x2ac508=a111_0x4aa0;(function(_0x41986b,_0x3c49cf){const _0x436150=a111_0x4aa0,_0x394b72=_0x41986b();while(!![]){try{const _0x3a717b=-parseInt(_0x436150(0x127))/0x1*(-parseInt(_0x436150(0x12f))/0x2)+parseInt(_0x436150(0x12d))/0x3*(parseInt(_0x436150(0x126))/0x4)+parseInt(_0x436150(0x12c))/0x5*(parseInt(_0x436150(0x11a))/0x6)+-parseInt(_0x436150(0x124))/0x7+-parseInt(_0x436150(0x118))/0x8+parseInt(_0x436150(0x11d))/0x9*(parseInt(_0x436150(0x128))/0xa)+parseInt(_0x436150(0x122))/0xb;if(_0x3a717b===_0x3c49cf)break;else _0x394b72['push'](_0x394b72['shift']());}catch(_0x32a482){_0x394b72['push'](_0x394b72['shift']());}}}(a111_0x370b,0xa01b7));function a111_0x370b(){const _0x23d3bb=['1265696fKgwwz','SUCCESS','186fgzXUz','Fetch\x20table-diff\x20refresh\x20status\x20by\x20plan\x20/\x20trace\x20id','\x20--plan\x20','81BNhnJv','string','plan','\x20--format\x20compress','has','5963771Lonqep','FAILED','6921264wMKrkJ','read','19212bSpkHi','59344KCdoaP','929710cawdtq','RETRYING','CANCELLED','PENDING','54920KPpanw','15dumTvv','UNKNOWN','2OKQDfM','Table-diff\x20refresh\x20status\x20for\x20'];a111_0x370b=function(){return _0x23d3bb;};return a111_0x370b();}import{getDbAnalysisStatus}from'../../core/api-client.js';function a111_0x4aa0(_0x161fce,_0x6bf27b){_0x161fce=_0x161fce-0x117;const _0x370bd1=a111_0x370b();let _0x4aa017=_0x370bd1[_0x161fce];return _0x4aa017;}import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{CLI_BIN_NAME}from'../../constant/cli.js';const TERMINAL_STATUSES=new Set([a111_0x2ac508(0x119),a111_0x2ac508(0x123),a111_0x2ac508(0x12a)]),RUNNING_STATUSES=new Set([a111_0x2ac508(0x12b),'RUNNING',a111_0x2ac508(0x129)]);export const dbDiffRefreshStatus={'service':'db','command':'diff-refresh-status','description':a111_0x2ac508(0x11b),'risk':a111_0x2ac508(0x125),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a111_0x2ac508(0x11f),'type':a111_0x2ac508(0x11e),'required':!![],'description':'Table-diff\x20refresh\x20trace\x20id\x20from\x20diff-refresh-start'}],async 'execute'(_0x16efc7){const _0x439fb4=a111_0x2ac508,_0x5afa04=_0x16efc7['num']('id'),_0x5456b9=_0x16efc7['str'](_0x439fb4(0x11f)),_0x166d42=await getDbAnalysisStatus(_0x5456b9),_0x4c31b7=_0x166d42['status']??null,_0x51ea65=TERMINAL_STATUSES[_0x439fb4(0x121)](_0x4c31b7??''),_0x38f9b5=_0x4c31b7===_0x439fb4(0x119),_0x15f9b9=_0x51ea65||RUNNING_STATUSES[_0x439fb4(0x121)](_0x4c31b7??'');return{'ok':!![],'data':{'dbLinkId':_0x5afa04,'planId':_0x5456b9,'status':_0x166d42,'knownStatus':_0x15f9b9,'isTerminal':_0x51ea65,'isSuccessful':_0x38f9b5,'query':_0x15f9b9&&!_0x51ea65?{'command':CLI_BIN_NAME+'\x20db\x20diff-refresh-status\x20--id\x20'+_0x5afa04+_0x439fb4(0x11c)+_0x5456b9+_0x439fb4(0x120)}:null},'message':_0x439fb4(0x117)+_0x5456b9+':\x20'+(_0x4c31b7??_0x439fb4(0x12e))};}};
|
package/lib/commands/db/diff.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a112_0x515b5c=a112_0x4dac;function a112_0x4dac(_0x49a199,_0x1942cb){_0x49a199=_0x49a199-0x152;const _0x48ae3a=a112_0x48ae();let _0x4dac63=_0x48ae3a[_0x49a199];return _0x4dac63;}function a112_0x48ae(){const _0xd95da=['page','11nhQzDW','num','2664906vkYaSr','string','datasetTableCount','table','bool','pagesize','14EboBGj','Compare\x20datasets\x20with\x20physical\x20database\x20tables\x20and\x20show\x20schema\x20drift','15068AzfRkG','str','NEW_TABLE','MODIFIED_TABLE','diff','Page\x20size','759rFcpgs','summary','number','10129730bZmguR','Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)','Fetch\x20and\x20aggregate\x20every\x20page\x20(overrides\x20--page\x20and\x20--pagesize)','diffType','3728130RgyvCm','all','map','appCode','length','568NQeBXX','48636948VhpShW','64962MHcYoK','tableName','fieldDiff','modifiedColumns','addedColumns','totalCount','DELETED_TABLE','27868aqIyWv','boolean','filter','67wzMYny','physicalTableCount'];a112_0x48ae=function(){return _0xd95da;};return a112_0x48ae();}(function(_0x16d992,_0x163d67){const _0x1c63d8=a112_0x4dac,_0x4fa063=_0x16d992();while(!![]){try{const _0x4ba927=-parseInt(_0x1c63d8(0x15e))/0x1*(parseInt(_0x1c63d8(0x15b))/0x2)+parseInt(_0x1c63d8(0x171))/0x3*(parseInt(_0x1c63d8(0x16b))/0x4)+-parseInt(_0x1c63d8(0x178))/0x5+parseInt(_0x1c63d8(0x163))/0x6*(-parseInt(_0x1c63d8(0x169))/0x7)+-parseInt(_0x1c63d8(0x152))/0x8*(parseInt(_0x1c63d8(0x154))/0x9)+-parseInt(_0x1c63d8(0x174))/0xa*(parseInt(_0x1c63d8(0x161))/0xb)+parseInt(_0x1c63d8(0x153))/0xc;if(_0x4ba927===_0x163d67)break;else _0x4fa063['push'](_0x4fa063['shift']());}catch(_0x3b8845){_0x4fa063['push'](_0x4fa063['shift']());}}}(a112_0x48ae,0xdef15));import{getDbTableDiff}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{DB_TABLE_PAGE_SIZE,getAllDbTableDiff,summarizeDbTableDiff}from'../../commands/db/table-diff-shared.js';export const dbDiff={'service':'db','command':a112_0x515b5c(0x16f),'description':a112_0x515b5c(0x16a),'risk':'read','flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a112_0x515b5c(0x166),'type':a112_0x515b5c(0x164),'description':a112_0x515b5c(0x175)},{'name':'page','type':a112_0x515b5c(0x173),'description':'Page\x20index\x20(1-based)','default':0x1},{'name':'pagesize','type':a112_0x515b5c(0x173),'description':a112_0x515b5c(0x170),'default':0x14},{'name':a112_0x515b5c(0x179),'type':a112_0x515b5c(0x15c),'description':a112_0x515b5c(0x176)}],async 'execute'(_0x42432c){const _0x3472cb=a112_0x515b5c,_0x17ec35=_0x42432c[_0x3472cb(0x162)]('id'),_0x5709c7=_0x42432c[_0x3472cb(0x167)]('all'),_0x53131f=_0x5709c7?0x1:_0x42432c[_0x3472cb(0x162)](_0x3472cb(0x160),0x1)||0x1,_0x277cf7=_0x5709c7?DB_TABLE_PAGE_SIZE:_0x42432c['num'](_0x3472cb(0x168),0x14)||0x14,_0x4827db=_0x42432c[_0x3472cb(0x16c)](_0x3472cb(0x166))||undefined,_0x4fb693=_0x5709c7?await getAllDbTableDiff(getDbTableDiff,_0x42432c[_0x3472cb(0x17b)],_0x17ec35,_0x4827db):await getDbTableDiff(_0x42432c[_0x3472cb(0x17b)],_0x17ec35,{'pageIndex':_0x53131f,'pageSize':_0x277cf7,'tableName':_0x4827db}),_0x7dc4a6=_0x4fb693['tableList'],_0x3054a7=summarizeDbTableDiff(_0x7dc4a6),_0x34a5ce=_0x7dc4a6[_0x3472cb(0x15d)](_0x211449=>_0x211449[_0x3472cb(0x177)]===_0x3472cb(0x16d)||_0x211449[_0x3472cb(0x177)]===_0x3472cb(0x16e))['map'](_0x39f5f6=>_0x39f5f6[_0x3472cb(0x155)]),_0x260d8f=_0x7dc4a6[_0x3472cb(0x15d)](_0x2a9718=>_0x2a9718['diffType']===_0x3472cb(0x15a))[_0x3472cb(0x17a)](_0x5c5669=>_0x5c5669['tableName']),_0x9b8126=_0x7dc4a6[_0x3472cb(0x15d)](_0x13aec4=>_0x13aec4['diffType']===_0x3472cb(0x16e))[_0x3472cb(0x17a)](_0x5b59e1=>({'tableName':_0x5b59e1['tableName'],'addedColumns':_0x5b59e1[_0x3472cb(0x156)]?.[_0x3472cb(0x158)]??[],'deletedColumns':_0x5b59e1[_0x3472cb(0x156)]?.['deletedColumns']??[],'modifiedColumns':_0x5b59e1['fieldDiff']?.[_0x3472cb(0x157)]??[]}));return{'ok':!![],'data':{'dbLinkId':_0x17ec35,'page':_0x53131f,'pageSize':_0x277cf7,'totalCount':_0x4fb693['totalCount'],...typeof _0x4fb693[_0x3472cb(0x15f)]===_0x3472cb(0x173)?{'physicalTableCount':_0x4fb693[_0x3472cb(0x15f)]}:{},...typeof _0x4fb693[_0x3472cb(0x165)]===_0x3472cb(0x173)?{'datasetTableCount':_0x4fb693[_0x3472cb(0x165)]}:{},..._0x4fb693[_0x3472cb(0x172)]?{'summary':_0x4fb693[_0x3472cb(0x172)]}:{},'summaryByType':_0x3054a7,'toAnalyzeTables':_0x34a5ce,'deletedTables':_0x260d8f,'modifiedFieldDiffs':_0x9b8126,'tables':_0x7dc4a6},'message':_0x7dc4a6[_0x3472cb(0x17c)]+'\x20changed\x20table\x20row(s),\x20total\x20'+_0x4fb693[_0x3472cb(0x159)]+'\x20(db\x20link\x20'+_0x17ec35+')'};}};
|
package/lib/commands/db/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4d2ddb,_0x21812e){const _0x252d23=a113_0x58b5,_0x5e3239=_0x4d2ddb();while(!![]){try{const _0x10a3d4=-parseInt(_0x252d23(0x104))/0x1+parseInt(_0x252d23(0x100))/0x2+parseInt(_0x252d23(0x105))/0x3+-parseInt(_0x252d23(0x102))/0x4+parseInt(_0x252d23(0x106))/0x5*(parseInt(_0x252d23(0x103))/0x6)+-parseInt(_0x252d23(0x101))/0x7*(-parseInt(_0x252d23(0xfe))/0x8)+parseInt(_0x252d23(0xff))/0x9;if(_0x10a3d4===_0x21812e)break;else _0x5e3239['push'](_0x5e3239['shift']());}catch(_0x1cb493){_0x5e3239['push'](_0x5e3239['shift']());}}}(a113_0x456f,0x39cef));import{dbList}from'../../commands/db/list.js';function a113_0x58b5(_0x4d854e,_0x533032){_0x4d854e=_0x4d854e-0xfe;const _0x456fb8=a113_0x456f();let _0x58b598=_0x456fb8[_0x4d854e];return _0x58b598;}import{dbDetail}from'../../commands/db/detail.js';import{dbCreate}from'../../commands/db/create.js';import{dbUpdate}from'../../commands/db/update.js';import{dbDelete}from'../../commands/db/delete.js';import{dbTest}from'../../commands/db/test.js';import{dbAnalyzeBatchPlan}from'../../commands/db/analyze-batch-plan.js';import{dbAnalyzeStart}from'../../commands/db/analyze-start.js';import{dbAnalyzeCancel}from'../../commands/db/analyze-cancel.js';import{dbAnalyzeStatus}from'../../commands/db/analyze-status.js';import{dbCrossAnalyzeStart}from'../../commands/db/cross-db-analyze-start.js';import{dbCrossAnalyzeStatus}from'../../commands/db/cross-db-analyze-status.js';import{dbCrossAnalyzeLatest}from'../../commands/db/cross-db-analyze-latest.js';import{dbTables}from'../../commands/db/tables.js';import{dbDiff}from'../../commands/db/diff.js';import{dbDiffRefreshStart}from'../../commands/db/diff-refresh-start.js';function a113_0x456f(){const _0x38d970=['313127OiPhna','969URtyFU','65mEWDdS','16sErfbj','2482299LTIoZi','210252NaqDhl','657118XjnOns','1509564ScoGQp','165366cHLPNR'];a113_0x456f=function(){return _0x38d970;};return a113_0x456f();}import{dbDiffRefreshStatus}from'../../commands/db/diff-refresh-status.js';export const dbDefinitions=[dbList,dbDetail,dbCreate,dbUpdate,dbDelete,dbTest,dbAnalyzeBatchPlan,dbAnalyzeStart,dbAnalyzeCancel,dbAnalyzeStatus,dbCrossAnalyzeStart,dbCrossAnalyzeStatus,dbCrossAnalyzeLatest,dbTables,dbDiff,dbDiffRefreshStart,dbDiffRefreshStatus];
|
package/lib/commands/db/list.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a114_0x7a539c=a114_0x9e6a;function a114_0x9e6a(_0x45a9c0,_0x46535c){_0x45a9c0=_0x45a9c0-0x1e5;const _0x41936b=a114_0x4193();let _0x9e6ab5=_0x41936b[_0x45a9c0];return _0x9e6ab5;}(function(_0x126efe,_0x61f861){const _0x5ee1c1=a114_0x9e6a,_0x211cb4=_0x126efe();while(!![]){try{const _0x509d3b=-parseInt(_0x5ee1c1(0x1f8))/0x1*(-parseInt(_0x5ee1c1(0x1e9))/0x2)+parseInt(_0x5ee1c1(0x1fc))/0x3*(parseInt(_0x5ee1c1(0x1e8))/0x4)+-parseInt(_0x5ee1c1(0x1ff))/0x5*(-parseInt(_0x5ee1c1(0x1f0))/0x6)+parseInt(_0x5ee1c1(0x1e5))/0x7*(parseInt(_0x5ee1c1(0x1e7))/0x8)+parseInt(_0x5ee1c1(0x1ee))/0x9+parseInt(_0x5ee1c1(0x1f1))/0xa+-parseInt(_0x5ee1c1(0x1f2))/0xb;if(_0x509d3b===_0x61f861)break;else _0x211cb4['push'](_0x211cb4['shift']());}catch(_0x30290d){_0x211cb4['push'](_0x211cb4['shift']());}}}(a114_0x4193,0x20d82));function a114_0x4193(){const _0x555065=['map','126NfzhFJ','Page\x20size','num','661915hSJOTJ','14sJFEPl','DB_TABLE','434128dmBbXH','2564gHBBbv','22GRvsua','appCode','page','read','pagesize','1810206tIpbyq','length','6uTXWoZ','851080WnKOkD','7384003nIVgoM','\x20database\x20connection(s)','datasetDependency','all','Server\x20omitted\x20paging\x20metadata;\x20totalCount\x20is\x20unknown\x20—\x20rowsOnPage\x20is\x20this\x20page\x20only','Found\x20','22884DurQwW','Page\x20index\x20(1-based)','List\x20database\x20connections\x20(dblinks)\x20for\x20the\x20current\x20app\x20with\x20analysis\x20status\x20—\x20for\x20AI\x20to\x20pick\x20ids\x20before\x20db\x20detail\x20/\x20analyze\x20/\x20tables'];a114_0x4193=function(){return _0x555065;};return a114_0x4193();}import{listDatasets,listDbLinks}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{buildDbDatasetDependency,sanitizeDbLinkForOutput}from'../../commands/db/shared.js';export const dbList={'service':'db','command':'list','description':a114_0x7a539c(0x1fa),'risk':a114_0x7a539c(0x1ec),'flags':[APPCODE_FLAG_OPTIONAL,{'name':'page','type':'number','description':a114_0x7a539c(0x1f9),'default':0x1},{'name':a114_0x7a539c(0x1ed),'type':'number','description':a114_0x7a539c(0x1fd),'default':0x64}],async 'execute'(_0x10654b){const _0x59ba4c=a114_0x7a539c,_0x4cfee8=_0x10654b[_0x59ba4c(0x1fe)](_0x59ba4c(0x1eb),0x1)||0x1,_0x33c657=_0x10654b[_0x59ba4c(0x1fe)](_0x59ba4c(0x1ed),0x64)||0x64,[{items:_0x5de9f3,paging:_0x3005f4},_0x5c4bad]=await Promise[_0x59ba4c(0x1f5)]([listDbLinks(_0x10654b[_0x59ba4c(0x1ea)],{'currentPage':_0x4cfee8,'pageSize':_0x33c657}),listDatasets(_0x10654b['appCode'],{'source':_0x59ba4c(0x1e6)})]),_0x457c1c=_0x5de9f3[_0x59ba4c(0x1fb)](_0x56e05e=>({...sanitizeDbLinkForOutput(_0x56e05e),'datasetDependency':buildDbDatasetDependency(_0x56e05e,_0x5c4bad)[_0x59ba4c(0x1f4)]})),_0x2c73dc=_0x3005f4?_0x3005f4:{'currentPage':_0x4cfee8,'pageSize':_0x33c657,'rowsOnPage':_0x457c1c[_0x59ba4c(0x1ef)],'totalCount':null,'note':_0x59ba4c(0x1f6)};return{'ok':!![],'data':{'connections':_0x457c1c,'paging':_0x2c73dc},'message':_0x59ba4c(0x1f7)+_0x457c1c[_0x59ba4c(0x1ef)]+_0x59ba4c(0x1f3)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x57bb49,_0x2be8f4){const _0x411480=a115_0x49a0,_0x17f98c=_0x57bb49();while(!![]){try{const _0x9f90fd=-parseInt(_0x411480(0x12c))/0x1+parseInt(_0x411480(0x127))/0x2+-parseInt(_0x411480(0x11e))/0x3+parseInt(_0x411480(0x11c))/0x4*(-parseInt(_0x411480(0x121))/0x5)+parseInt(_0x411480(0x125))/0x6+parseInt(_0x411480(0x110))/0x7+parseInt(_0x411480(0x120))/0x8;if(_0x9f90fd===_0x2be8f4)break;else _0x17f98c['push'](_0x17f98c['shift']());}catch(_0x377bb7){_0x17f98c['push'](_0x17f98c['shift']());}}}(a115_0xe92e,0x78a9d));import{testDbLinkConfigConnect}from'../../core/api-client.js';import{getAppBaseUrl}from'../../constant/domain.js';import{CliErrors}from'../../errors.js';function shouldRedactKey(_0x1c37f1){const _0x6ddcf7=a115_0x49a0,_0x331d78=_0x1c37f1['toLowerCase']();if(_0x331d78===_0x6ddcf7(0x116)||_0x331d78==='passwd'||_0x331d78===_0x6ddcf7(0x12b))return!![];if(_0x331d78[_0x6ddcf7(0x126)](_0x6ddcf7(0x10e))||_0x331d78[_0x6ddcf7(0x126)](_0x6ddcf7(0x129))||_0x331d78[_0x6ddcf7(0x126)](_0x6ddcf7(0x12d)))return!![];if(_0x331d78['includes']('privatekey')||_0x331d78['includes'](_0x6ddcf7(0x12a)))return!![];if(_0x331d78==='authorization'||_0x331d78===_0x6ddcf7(0x12f)||_0x331d78===_0x6ddcf7(0x10f))return!![];return![];}function a115_0x49a0(_0x5223c6,_0xfca373){_0x5223c6=_0x5223c6-0x10d;const _0xe92e6c=a115_0xe92e();let _0x49a00d=_0xe92e6c[_0x5223c6];return _0x49a00d;}function a115_0xe92e(){const _0xa758d5=['hasAvailableDo','connectionstring','filter','secret','jdbcurl','2678396bAYVaU','/data/database','apiError','tableName','map','test','password','[redacted]','dbtableConfig','/data/er?dbId=','keys','Database\x20connection\x20preflight\x20failed.','152212EPFzjx','number','2439939dqBTxs','length','12205928wQZkDg','110GedpUQ','code','isFinite','dbId','506796ReXlxO','includes','1053398qyffOY','trim','token','accesskey','dbpassword','374818MTwMch','credential'];a115_0xe92e=function(){return _0xa758d5;};return a115_0xe92e();}export function sanitizeDbLinkForOutput(_0x829ccb){const _0x38af1f=a115_0x49a0,_0x3f1c76={..._0x829ccb};delete _0x3f1c76[_0x38af1f(0x12e)];for(const _0x52235a of Object[_0x38af1f(0x11a)](_0x3f1c76)){if(!shouldRedactKey(_0x52235a))continue;const _0x1c18b3=_0x3f1c76[_0x52235a];_0x1c18b3!=null&&String(_0x1c18b3)['length']>0x0&&(_0x3f1c76[_0x52235a]=_0x38af1f(0x117));}return _0x3f1c76;}export function sanitizeDbLinkList(_0x29b967){const _0x57fbd8=a115_0x49a0;return _0x29b967[_0x57fbd8(0x114)](_0x325a08=>sanitizeDbLinkForOutput(_0x325a08));}export function buildDbDatasetDependency(_0x2fa642,_0x44cae2){const _0x173d5a=a115_0x49a0,_0x3fbcef=_0x44cae2[_0x173d5a(0x10d)](_0x2237b9=>Number(_0x2237b9[_0x173d5a(0x118)]?.[_0x173d5a(0x124)])===Number(_0x2fa642['id']))[_0x173d5a(0x114)](_0x7a8af9=>({'id':_0x7a8af9['id'],'code':_0x7a8af9[_0x173d5a(0x122)],'name':_0x7a8af9['name'],..._0x7a8af9[_0x173d5a(0x118)]?.[_0x173d5a(0x113)]?{'tableName':_0x7a8af9[_0x173d5a(0x118)][_0x173d5a(0x113)]}:{}}));return{'datasetDependency':{'hasDependencies':_0x3fbcef[_0x173d5a(0x11f)]>0x0,'activeDatasetCount':_0x3fbcef[_0x173d5a(0x11f)]},'datasets':_0x3fbcef};}export async function assertDbLinkConnectionPreflight(_0x3d18e6){const _0x297ebe=a115_0x49a0,_0x305a2a=await testDbLinkConfigConnect(_0x3d18e6);if(_0x305a2a!==!![])throw CliErrors[_0x297ebe(0x112)](_0x297ebe(0x11b),'The\x20configuration\x20was\x20not\x20saved.\x20Verify\x20the\x20host,\x20credentials,\x20database\x20name,\x20network,\x20and\x20allowlist,\x20or\x20explicitly\x20pass\x20--skip-connection-test.');}const DB_URL_PATTERN=/^[^\s:]+(?::\d+)?$/;export function validateDbUrl(_0x3de0fe){const _0x44bd1a=a115_0x49a0,_0x4b1a63=_0x3de0fe['trim']();if(!_0x4b1a63)return![];return DB_URL_PATTERN[_0x44bd1a(0x115)](_0x4b1a63);}export function buildDbPageLinks(_0x1c4d68,_0x5b713b){const _0x5b3724=a115_0x49a0,_0x188ab0=_0x1c4d68?.[_0x5b3724(0x128)]();if(!_0x188ab0)return undefined;const _0x4aa7c1=typeof _0x5b713b===_0x5b3724(0x11d)?String(_0x5b713b):String(_0x5b713b??'')['trim']();if(!_0x4aa7c1)return undefined;const _0x3334d4=Number(_0x4aa7c1);if(!Number[_0x5b3724(0x123)](_0x3334d4)||_0x3334d4<=0x0)return undefined;const _0x4df94c=getAppBaseUrl(_0x188ab0),_0x21ac7f=encodeURIComponent(String(_0x3334d4));return{'databasePage':_0x4df94c+_0x5b3724(0x111),'erPage':_0x4df94c+_0x5b3724(0x119)+_0x21ac7f};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a116_0x98e930=a116_0x3ace;function a116_0x3ace(_0x75203a,_0x12234c){_0x75203a=_0x75203a-0x14d;const _0x58ac07=a116_0x58ac();let _0x3aceea=_0x58ac07[_0x75203a];return _0x3aceea;}(function(_0x5da61d,_0xca61bf){const _0x14d439=a116_0x3ace,_0x4e8d53=_0x5da61d();while(!![]){try{const _0x193785=parseInt(_0x14d439(0x162))/0x1*(parseInt(_0x14d439(0x15f))/0x2)+-parseInt(_0x14d439(0x16b))/0x3+parseInt(_0x14d439(0x15a))/0x4*(-parseInt(_0x14d439(0x14d))/0x5)+-parseInt(_0x14d439(0x159))/0x6*(-parseInt(_0x14d439(0x153))/0x7)+-parseInt(_0x14d439(0x152))/0x8*(parseInt(_0x14d439(0x163))/0x9)+-parseInt(_0x14d439(0x151))/0xa*(-parseInt(_0x14d439(0x16a))/0xb)+-parseInt(_0x14d439(0x166))/0xc*(-parseInt(_0x14d439(0x150))/0xd);if(_0x193785===_0xca61bf)break;else _0x4e8d53['push'](_0x4e8d53['shift']());}catch(_0x5a184a){_0x4e8d53['push'](_0x4e8d53['shift']());}}}(a116_0x58ac,0xd5ff8));import{CliErrors}from'../../errors.js';export const DB_TABLE_PAGE_SIZE=0x64;export const DB_TABLE_DIFF_TYPES=[a116_0x98e930(0x156),a116_0x98e930(0x160),a116_0x98e930(0x15e),'ALREADY_ANALYZED'];export function summarizeDbTableDiff(_0x37998c){const _0x5a0c01=a116_0x98e930;return Object[_0x5a0c01(0x16c)](DB_TABLE_DIFF_TYPES['map'](_0x10d040=>[_0x10d040,_0x37998c[_0x5a0c01(0x155)](_0x329803=>_0x329803[_0x5a0c01(0x154)]===_0x10d040)[_0x5a0c01(0x167)]]));}export async function getAllDbTableDiff(_0x484b90,_0xb89419,_0x42069b,_0x42d403){const _0x32e708=a116_0x98e930,_0x408f46=new Map();let _0x223270=0x1,_0x51300b=null;while(!![]){_0x51300b=await _0x484b90(_0xb89419,_0x42069b,{'pageIndex':_0x223270,'pageSize':DB_TABLE_PAGE_SIZE,'tableName':_0x42d403});const _0x4499cd=_0x408f46[_0x32e708(0x14e)];for(const _0x321001 of _0x51300b[_0x32e708(0x15b)]){_0x408f46[_0x32e708(0x16d)](_0x321001['tableName'],_0x321001);}if(_0x408f46[_0x32e708(0x14e)]>=_0x51300b['totalCount'])break;if(_0x51300b[_0x32e708(0x15b)]['length']===0x0||_0x408f46['size']===_0x4499cd)throw CliErrors[_0x32e708(0x164)](_0x32e708(0x158)+_0x408f46['size']+_0x32e708(0x157)+_0x51300b[_0x32e708(0x161)]+_0x32e708(0x15d));_0x223270+=0x1;}return{'totalCount':_0x51300b?.['totalCount']??0x0,...typeof _0x51300b?.[_0x32e708(0x165)]===_0x32e708(0x14f)?{'physicalTableCount':_0x51300b[_0x32e708(0x165)]}:{},...typeof _0x51300b?.[_0x32e708(0x169)]==='number'?{'datasetTableCount':_0x51300b[_0x32e708(0x169)]}:{},..._0x51300b?.[_0x32e708(0x168)]?{'summary':_0x51300b[_0x32e708(0x168)]}:{},'tableList':[..._0x408f46[_0x32e708(0x15c)]()]};}function a116_0x58ac(){const _0x39524f=['\x20row(s).','DELETED_TABLE','1075586AZTyOt','MODIFIED_TABLE','totalCount','1uKmvGY','1673613GIRagY','validation','physicalTableCount','12OvFzeD','length','summary','datasetTableCount','1406042IvDALb','1443642bRUqjA','fromEntries','set','5OmCIiE','size','number','17911283nrtWNJ','60Lddxul','24icsMIQ','154VMbjkN','diffType','filter','NEW_TABLE','\x20of\x20','Incomplete\x20db\x20table\x20pagination:\x20collected\x20','48882ZGvSyg','3784516wzDkoG','tableList','values'];a116_0x58ac=function(){return _0x39524f;};return a116_0x58ac();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a117_0x55fa(_0x49a376,_0x326e57){_0x49a376=_0x49a376-0x1e9;const _0x37be4e=a117_0x37be();let _0x55fa9a=_0x37be4e[_0x49a376];return _0x55fa9a;}const a117_0x27fcca=a117_0x55fa;(function(_0x2e2cff,_0x2bf7eb){const _0x159db9=a117_0x55fa,_0x46fe3a=_0x2e2cff();while(!![]){try{const _0x5e933d=-parseInt(_0x159db9(0x1fc))/0x1*(-parseInt(_0x159db9(0x1f8))/0x2)+-parseInt(_0x159db9(0x1f6))/0x3*(parseInt(_0x159db9(0x1ff))/0x4)+parseInt(_0x159db9(0x203))/0x5*(parseInt(_0x159db9(0x1f3))/0x6)+parseInt(_0x159db9(0x1f5))/0x7*(parseInt(_0x159db9(0x1f4))/0x8)+parseInt(_0x159db9(0x1f9))/0x9*(-parseInt(_0x159db9(0x1ed))/0xa)+-parseInt(_0x159db9(0x1fa))/0xb+-parseInt(_0x159db9(0x1f1))/0xc*(parseInt(_0x159db9(0x201))/0xd);if(_0x5e933d===_0x2bf7eb)break;else _0x46fe3a['push'](_0x46fe3a['shift']());}catch(_0x1c7a6d){_0x46fe3a['push'](_0x46fe3a['shift']());}}}(a117_0x37be,0x50490));import{getDbTableComparisonPage}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a117_0x37be(){const _0xe1e002=['618qUqytG','29048SkFRCb','406pWTVkG','66DrwisJ','tables','147772IYqYrv','373419guygkk','977295eJLJwm','table','7IkTDMe','datasetTableCount','appCode','7588NSoBLi','num','108641JFZBqQ','\x20table\x20comparison\x20row(s),\x20total\x20','21035rhsRvy','summary','number','str','physicalTableCount','10BnHXbk','length','read','totalCount','948qdQDjL','List\x20all\x20database\x20table\x20comparison\x20rows\x20and\x20analysis\x20states'];a117_0x37be=function(){return _0xe1e002;};return a117_0x37be();}import{getAllDbTableDiff,summarizeDbTableDiff}from'../../commands/db/table-diff-shared.js';export const dbTables={'service':'db','command':a117_0x27fcca(0x1f7),'description':a117_0x27fcca(0x1f2),'risk':a117_0x27fcca(0x1ef),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a117_0x27fcca(0x1fb),'type':'string','description':'Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)'}],async 'execute'(_0x54af2b){const _0x4a1011=a117_0x27fcca,_0x4c523b=_0x54af2b[_0x4a1011(0x200)]('id'),_0x2b6894=_0x54af2b[_0x4a1011(0x1eb)](_0x4a1011(0x1fb))||undefined,_0x1f9504=await getAllDbTableDiff(getDbTableComparisonPage,_0x54af2b[_0x4a1011(0x1fe)],_0x4c523b,_0x2b6894),_0x3ecfda=_0x1f9504['tableList'];return{'ok':!![],'data':{'dbLinkId':_0x4c523b,'totalCount':_0x1f9504[_0x4a1011(0x1f0)],...typeof _0x1f9504[_0x4a1011(0x1ec)]===_0x4a1011(0x1ea)?{'physicalTableCount':_0x1f9504[_0x4a1011(0x1ec)]}:{},...typeof _0x1f9504['datasetTableCount']===_0x4a1011(0x1ea)?{'datasetTableCount':_0x1f9504[_0x4a1011(0x1fd)]}:{},..._0x1f9504[_0x4a1011(0x1e9)]?{'summary':_0x1f9504[_0x4a1011(0x1e9)]}:{},'summaryByType':summarizeDbTableDiff(_0x3ecfda),'tables':_0x3ecfda},'message':_0x3ecfda[_0x4a1011(0x1ee)]+_0x4a1011(0x202)+_0x1f9504[_0x4a1011(0x1f0)]+'\x20(db\x20link\x20'+_0x4c523b+')'};}};
|
package/lib/commands/db/test.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a118_0x62acf9=a118_0x1ea2;(function(_0x7d1777,_0x2fa75b){const _0xa86d1c=a118_0x1ea2,_0x40229f=_0x7d1777();while(!![]){try{const _0x5b55d7=-parseInt(_0xa86d1c(0x116))/0x1*(parseInt(_0xa86d1c(0x11f))/0x2)+-parseInt(_0xa86d1c(0x11b))/0x3*(-parseInt(_0xa86d1c(0x119))/0x4)+parseInt(_0xa86d1c(0x121))/0x5*(-parseInt(_0xa86d1c(0x127))/0x6)+-parseInt(_0xa86d1c(0x11d))/0x7*(-parseInt(_0xa86d1c(0x122))/0x8)+parseInt(_0xa86d1c(0x114))/0x9+-parseInt(_0xa86d1c(0x124))/0xa*(-parseInt(_0xa86d1c(0x111))/0xb)+-parseInt(_0xa86d1c(0x123))/0xc;if(_0x5b55d7===_0x2fa75b)break;else _0x40229f['push'](_0x40229f['shift']());}catch(_0x511f42){_0x40229f['push'](_0x40229f['shift']());}}}(a118_0x5d55,0xcbc9a));import{testDbLinkConnect}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function summarizeTestConnectResult(_0x58dc5e){const _0x47f288=a118_0x1ea2;if(_0x58dc5e===!![]||_0x58dc5e===![])return{'success':_0x58dc5e};if(_0x58dc5e===null||_0x58dc5e===undefined)return{'type':typeof _0x58dc5e};if(typeof _0x58dc5e!=='object')return{'type':typeof _0x58dc5e};const _0xc5f5e1=_0x58dc5e,_0x2a6ee6=[_0x47f288(0x125),_0x47f288(0x126),_0x47f288(0x112),_0x47f288(0x120),_0x47f288(0x115),'data'],_0x42d940={};for(const _0x13a78f of _0x2a6ee6){if(_0x13a78f in _0xc5f5e1)_0x42d940[_0x13a78f]=_0xc5f5e1[_0x13a78f];}return Object[_0x47f288(0x117)](_0x42d940)[_0x47f288(0x128)]===0x0&&(_0x42d940[_0x47f288(0x117)]=Object[_0x47f288(0x117)](_0xc5f5e1)[_0x47f288(0x11c)](0x0,0x14)),_0x42d940;}function a118_0x1ea2(_0x51e146,_0x1675bd){_0x51e146=_0x51e146-0x111;const _0x5d558c=a118_0x5d55();let _0x1ea250=_0x5d558c[_0x51e146];return _0x1ea250;}function a118_0x5d55(){const _0x4a9793=['3juTeRo','slice','5175863GozMsO','\x20(see\x20data.result)','52uoZZzu','error','10hvhhTi','8XKdbQy','8486088AxouKn','10JyEFDT','success','message','1153230cXKuxM','length','Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)','6185003EcykIb','code','object','13856940RdgZsA','msg','39630juJcdz','keys','test','461344aFrQwr','num'];a118_0x5d55=function(){return _0x4a9793;};return a118_0x5d55();}export const dbTest={'service':'db','command':a118_0x62acf9(0x118),'description':a118_0x62acf9(0x129),'risk':'read','requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x52e50b){const _0xdd5e36=a118_0x62acf9,_0x1a7057=_0x52e50b[_0xdd5e36(0x11a)]('id'),_0x27e0d1=await testDbLinkConnect(_0x1a7057),_0x18b331=_0x27e0d1===!![]||typeof _0x27e0d1===_0xdd5e36(0x113)&&_0x27e0d1!==null&&_0x27e0d1[_0xdd5e36(0x125)]===!![],_0x5afba1=summarizeTestConnectResult(_0x27e0d1);return{'ok':!![],'data':{'id':_0x1a7057,'connected':Boolean(_0x18b331),'result':_0x5afba1},'message':_0x18b331?'Connection\x20OK\x20for\x20db\x20link\x20'+_0x1a7057:'Connection\x20check\x20finished\x20for\x20db\x20link\x20'+_0x1a7057+_0xdd5e36(0x11e)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a119_0xbe1094=a119_0x236b;function a119_0x4efc(){const _0x2b87a7=['4524756XQGhvO','str','dbDesc','******','Update\x20a\x20database\x20connection\x20by\x20merging\x20supplied\x20fields\x20into\x20the\x20current\x20server\x20record.\x20A\x20masked\x20server\x20password\x20requires\x20explicit\x20--password','2698395ZfYCrt','string','num','New\x20connection\x20parameter\x20string','[redacted]','POST','dburl','/smartapi/dblink/update','554294xsGRtp','24885wEiZFf','dbparam','username','10209600bMMAHe','validation','dbdesc','update','trim','Updated\x20db\x20link\x20','dbParam','bool','Preview\x20the\x20merged\x20database\x20connection\x20update;\x20password\x20redacted','skip-connection-test','1sCnmNz','dbName','New\x20database\x20name','write','has','3329934BaNYQI','2995923PasYhg','--password\x20must\x20contain\x20the\x20real\x20database\x20password,\x20not\x20a\x20masked\x20value.','password','New\x20host:port'];a119_0x4efc=function(){return _0x2b87a7;};return a119_0x4efc();}(function(_0x5c9c23,_0x2d4406){const _0x3166e1=a119_0x236b,_0x149700=_0x5c9c23();while(!![]){try{const _0x551139=-parseInt(_0x3166e1(0x1ac))/0x1*(-parseInt(_0x3166e1(0x19e))/0x2)+-parseInt(_0x3166e1(0x1b2))/0x3+parseInt(_0x3166e1(0x191))/0x4+-parseInt(_0x3166e1(0x196))/0x5+-parseInt(_0x3166e1(0x1b1))/0x6+parseInt(_0x3166e1(0x19f))/0x7+parseInt(_0x3166e1(0x1a2))/0x8;if(_0x551139===_0x2d4406)break;else _0x149700['push'](_0x149700['shift']());}catch(_0xd3ff04){_0x149700['push'](_0x149700['shift']());}}}(a119_0x4efc,0x9135e));import{getDbLinkInfo,updateDbLink}from'../../core/api-client.js';function a119_0x236b(_0x22d588,_0x3c0786){_0x22d588=_0x22d588-0x191;const _0x4efcdd=a119_0x4efc();let _0x236b6f=_0x4efcdd[_0x22d588];return _0x236b6f;}import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG,SKIP_CONNECTION_TEST_FLAG}from'../../commands/common/flags.js';import{assertDbLinkConnectionPreflight,sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';const MASKED_PASSWORD_VALUES=new Set([a119_0xbe1094(0x194),a119_0xbe1094(0x19a)]);function mergeDbLinkUpdate(_0x1a04b7,_0x59b68c){const _0x189a44=a119_0xbe1094,_0x3e11b8={..._0x1a04b7},_0x4b06e6=_0x59b68c[_0x189a44(0x192)](_0x189a44(0x1b4));if(_0x4b06e6&&MASKED_PASSWORD_VALUES[_0x189a44(0x1b0)](_0x4b06e6))throw CliErrors[_0x189a44(0x1a3)](_0x189a44(0x1b3));if(!_0x4b06e6&&MASKED_PASSWORD_VALUES[_0x189a44(0x1b0)](String(_0x1a04b7[_0x189a44(0x1b4)]??'')))throw CliErrors[_0x189a44(0x1a3)]('The\x20server\x20returned\x20a\x20masked\x20database\x20password.\x20Pass\x20the\x20current\x20or\x20replacement\x20password\x20explicitly\x20with\x20--password\x20to\x20update\x20this\x20connection\x20safely.');const _0x1224a4=_0x59b68c[_0x189a44(0x192)]('dbname');if(_0x1224a4)_0x3e11b8[_0x189a44(0x1ad)]=_0x1224a4;const _0xb024d=_0x59b68c['str'](_0x189a44(0x19c));if(_0xb024d)_0x3e11b8['dbUrl']=_0xb024d['trim']();const _0x1ee9af=_0x59b68c[_0x189a44(0x192)]('username');if(_0x1ee9af)_0x3e11b8['username']=_0x1ee9af;if(_0x4b06e6)_0x3e11b8[_0x189a44(0x1b4)]=_0x4b06e6;const _0x42091f=_0x59b68c[_0x189a44(0x192)](_0x189a44(0x1a0));if(_0x42091f)_0x3e11b8[_0x189a44(0x1a8)]=_0x42091f;const _0x24bac2=_0x59b68c[_0x189a44(0x192)](_0x189a44(0x1a4));if(_0x24bac2)_0x3e11b8[_0x189a44(0x193)]=_0x24bac2;return _0x3e11b8;}export const dbUpdate={'service':'db','command':a119_0xbe1094(0x1a5),'description':a119_0xbe1094(0x195),'risk':a119_0xbe1094(0x1af),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':'dbname','type':a119_0xbe1094(0x197),'description':a119_0xbe1094(0x1ae)},{'name':'dburl','type':a119_0xbe1094(0x197),'description':a119_0xbe1094(0x1b5)},{'name':a119_0xbe1094(0x1a1),'type':'string','description':'New\x20username'},{'name':a119_0xbe1094(0x1b4),'type':a119_0xbe1094(0x197),'description':'Current\x20or\x20replacement\x20password.\x20Required\x20when\x20the\x20stored\x20password\x20is\x20masked'},{'name':a119_0xbe1094(0x1a0),'type':a119_0xbe1094(0x197),'description':a119_0xbe1094(0x199)},{'name':a119_0xbe1094(0x1a4),'type':a119_0xbe1094(0x197),'description':'New\x20description'},SKIP_CONNECTION_TEST_FLAG],async 'validate'(_0x4968a5){const _0x210648=a119_0xbe1094,_0x5c5310=_0x4968a5['str'](_0x210648(0x19c));if(_0x5c5310&&!validateDbUrl(_0x5c5310[_0x210648(0x1a6)]()))throw CliErrors[_0x210648(0x1a3)]('Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22'+_0x5c5310+'\x22');},async 'dryRun'(_0x315f0d){const _0x14eef3=a119_0xbe1094,_0x25747d=_0x315f0d['num']('id'),_0xfbe5f8=await getDbLinkInfo(_0x25747d),_0x249349=mergeDbLinkUpdate(_0xfbe5f8,_0x315f0d),_0x375339=sanitizeDbLinkForOutput(_0x249349);return{'method':_0x14eef3(0x19b),'url':_0x14eef3(0x19d),'body':_0x375339,'description':_0x14eef3(0x1aa),'connectionPreflight':{'enabled':!_0x315f0d['bool'](_0x14eef3(0x1ab)),'executed':![]}};},async 'execute'(_0x3bf503){const _0x1df22e=a119_0xbe1094,_0xc9c5ac=_0x3bf503[_0x1df22e(0x198)]('id'),_0x612bdc=await getDbLinkInfo(_0xc9c5ac),_0x3aa60e=mergeDbLinkUpdate(_0x612bdc,_0x3bf503);!_0x3bf503[_0x1df22e(0x1a9)]('skip-connection-test')&&await assertDbLinkConnectionPreflight(_0x3aa60e);const {id:_0x3cb36b,entity:_0xd9726c}=normalizeEntityWithIdResponse(await updateDbLink(_0x3aa60e));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0xd9726c),'message':_0x1df22e(0x1a7)+(_0x3cb36b??_0xc9c5ac)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2105bb,_0xda7615){const _0x4b65ca=a120_0x182d,_0x35b6b2=_0x2105bb();while(!![]){try{const _0xc2ae25=parseInt(_0x4b65ca(0x185))/0x1*(parseInt(_0x4b65ca(0x183))/0x2)+-parseInt(_0x4b65ca(0x184))/0x3*(parseInt(_0x4b65ca(0x189))/0x4)+-parseInt(_0x4b65ca(0x182))/0x5+-parseInt(_0x4b65ca(0x18a))/0x6*(-parseInt(_0x4b65ca(0x188))/0x7)+-parseInt(_0x4b65ca(0x18c))/0x8*(parseInt(_0x4b65ca(0x187))/0x9)+parseInt(_0x4b65ca(0x186))/0xa+parseInt(_0x4b65ca(0x18d))/0xb*(-parseInt(_0x4b65ca(0x18b))/0xc);if(_0xc2ae25===_0xda7615)break;else _0x35b6b2['push'](_0x35b6b2['shift']());}catch(_0x170b55){_0x35b6b2['push'](_0x35b6b2['shift']());}}}(a120_0x237f,0x1b01c));function a120_0x237f(){const _0x2d2f5f=['1438299FJZcUh','1342852fTqecE','4HZvgVn','6CPiZJx','94392kDtXTH','8qbFEwr','209NDRwnN','25045kVSZjT','243198JwkOsr','292866fOqDih','1hYEqgo','2090810kkFjHC'];a120_0x237f=function(){return _0x2d2f5f;};return a120_0x237f();}import{deploymentSyncAll}from'../../commands/deployment/sync-all.js';import{deploymentSyncStatus}from'../../commands/deployment/sync-status.js';import{deploymentSyncJobs}from'../../commands/deployment/sync-jobs.js';function a120_0x182d(_0x5a3832,_0x13a04d){_0x5a3832=_0x5a3832-0x182;const _0x237f9f=a120_0x237f();let _0x182d7a=_0x237f9f[_0x5a3832];return _0x182d7a;}export const deploymentDefinitions=[deploymentSyncAll,deploymentSyncStatus,deploymentSyncJobs];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a121_0x2785ca=a121_0x540b;(function(_0x4eed69,_0x24bffe){const _0x5cafde=a121_0x540b,_0x4ceb6c=_0x4eed69();while(!![]){try{const _0x45decd=parseInt(_0x5cafde(0x122))/0x1*(parseInt(_0x5cafde(0x127))/0x2)+-parseInt(_0x5cafde(0x133))/0x3*(parseInt(_0x5cafde(0x129))/0x4)+-parseInt(_0x5cafde(0x135))/0x5+parseInt(_0x5cafde(0x13f))/0x6+-parseInt(_0x5cafde(0x145))/0x7*(-parseInt(_0x5cafde(0x13c))/0x8)+-parseInt(_0x5cafde(0x130))/0x9*(parseInt(_0x5cafde(0x134))/0xa)+-parseInt(_0x5cafde(0x12f))/0xb*(-parseInt(_0x5cafde(0x131))/0xc);if(_0x45decd===_0x24bffe)break;else _0x4ceb6c['push'](_0x4ceb6c['shift']());}catch(_0x42c2c9){_0x4ceb6c['push'](_0x4ceb6c['shift']());}}}(a121_0x2186,0xd2548));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a121_0x540b(_0x2d64f3,_0x3c31cb){_0x2d64f3=_0x2d64f3-0x122;const _0x21860c=a121_0x2186();let _0x540b6c=_0x21860c[_0x2d64f3];return _0x540b6c;}import{asDryRunResult}from'../../commands/common/dry-run.js';import{isPlatformTransportFailure,submitDeploymentMetadataSyncAll}from'../../core/api-client.js';import{CliError,CliErrors}from'../../errors.js';const SUBMIT_PATH=a121_0x2785ca(0x12a),CONFIRM_FLAG={'name':a121_0x2785ca(0x139),'type':a121_0x2785ca(0x12d),'description':'Confirm\x20the\x20administrative\x20backfill\x20or\x20recovery\x20synchronization'};function a121_0x2186(){const _0x4444d7=['/smartapi/data-sync/submit','sync-all','job','boolean','not_submitted','11aAHfPK','17649nzZYjy','26328504sltWXW','deployment_sync_submit_outcome_unknown','12XuZbsJ','1880TXjmPr','7508755GgqtyC','Would\x20submit\x20an\x20administrative\x20deployment\x20metadata\x20backfill\x20or\x20recovery\x20job.','data','all_server_supported_metadata','confirm','validation','Backfill\x20or\x20recover\x20all\x20server-supported\x20application\x20metadata','232976SWOfnk','application_deployment_sync','jobId','1905930NTTXKb','status','Run\x20with\x20--dry-run\x20first,\x20then\x20add\x20--confirm.','unknown','Submit\x20an\x20administrative\x20metadata\x20backfill\x20or\x20recovery\x20synchronization.','--confirm\x20is\x20required\x20to\x20synchronize\x20all\x20application\x20metadata.','392parmJW','outcome','84059MyYtgc','appCode','write','POST','deployment','4tPFuzV','not_needed','1578716ZSXfYI'];a121_0x2186=function(){return _0x4444d7;};return a121_0x2186();}export const deploymentSyncAll={'service':a121_0x2785ca(0x126),'command':a121_0x2785ca(0x12b),'description':a121_0x2785ca(0x13b),'risk':a121_0x2785ca(0x124),'strictFlags':!![],'structuredErrors':!![],'confirmationDescription':a121_0x2785ca(0x143),'flags':[CONFIRM_FLAG,APPCODE_FLAG_OPTIONAL],async 'dryRun'(_0x44e6b9){const _0x129ef0=a121_0x2785ca;return asDryRunResult(buildPreview(_0x44e6b9[_0x129ef0(0x123)]),{'method':_0x129ef0(0x125),'url':SUBMIT_PATH,'description':_0x129ef0(0x136)});},async 'execute'(_0x57248b){const _0x4cec80=a121_0x2785ca;if(!_0x57248b['bool'](_0x4cec80(0x139)))throw CliErrors[_0x4cec80(0x13a)](_0x4cec80(0x144),_0x4cec80(0x141));try{const _0x3f8bb1=await submitDeploymentMetadataSyncAll({'appCode':_0x57248b['appCode']});if(_0x3f8bb1[_0x4cec80(0x146)]==='not_needed')return{'ok':!![],'data':{'operation':_0x4cec80(0x13d),'appCode':_0x57248b[_0x4cec80(0x123)],'submitted':![],'outcome':_0x4cec80(0x128)},'message':'No\x20deployment\x20synchronization\x20was\x20needed\x20for\x20this\x20app.'};return{'ok':!![],'data':{'operation':_0x4cec80(0x13d),'appCode':_0x57248b['appCode'],'submitted':!![],'outcome':'submitted','jobId':_0x3f8bb1['job'][_0x4cec80(0x13e)],'status':_0x3f8bb1[_0x4cec80(0x12c)][_0x4cec80(0x140)]},'message':'Submitted\x20deployment\x20synchronization\x20job\x20'+_0x3f8bb1[_0x4cec80(0x12c)][_0x4cec80(0x13e)]+'.'};}catch(_0x3d08e3){if(!isPlatformTransportFailure(_0x3d08e3))throw _0x3d08e3;const _0x286e8b=new CliError(_0x4cec80(0x132),0x2,'Deployment\x20sync\x20submission\x20response\x20was\x20unavailable;\x20job\x20creation\x20is\x20unknown.','List\x20recent\x20deployment\x20sync\x20jobs\x20before\x20deciding\x20whether\x20to\x20submit\x20again.');Object['defineProperty'](_0x286e8b,_0x4cec80(0x137),{'enumerable':!![],'value':{'operation':_0x4cec80(0x13d),'appCode':_0x57248b[_0x4cec80(0x123)],'submitted':null,'outcome':_0x4cec80(0x142)}});throw _0x286e8b;}}};function buildPreview(_0x4c4a6c){const _0x45d238=a121_0x2785ca;return{'operation':_0x45d238(0x13d),'selector':{'appCode':_0x4c4a6c,'scope':_0x45d238(0x138)},'before':null,'after':null,'dryRun':!![],'backend':{'submitted':![],'outcome':_0x45d238(0x12e)},'warnings':[]};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a122_0x385118=a122_0x763b;(function(_0x3c1206,_0x37b4dc){const _0x1ebf16=a122_0x763b,_0x2fb7e1=_0x3c1206();while(!![]){try{const _0x2bae5d=-parseInt(_0x1ebf16(0x1ae))/0x1*(-parseInt(_0x1ebf16(0x19e))/0x2)+-parseInt(_0x1ebf16(0x1ac))/0x3*(-parseInt(_0x1ebf16(0x1ad))/0x4)+parseInt(_0x1ebf16(0x1a5))/0x5*(parseInt(_0x1ebf16(0x1b1))/0x6)+parseInt(_0x1ebf16(0x1ab))/0x7+-parseInt(_0x1ebf16(0x1af))/0x8*(parseInt(_0x1ebf16(0x1b0))/0x9)+parseInt(_0x1ebf16(0x197))/0xa*(-parseInt(_0x1ebf16(0x199))/0xb)+-parseInt(_0x1ebf16(0x1a9))/0xc;if(_0x2bae5d===_0x37b4dc)break;else _0x2fb7e1['push'](_0x2fb7e1['shift']());}catch(_0x378e6f){_0x2fb7e1['push'](_0x2fb7e1['shift']());}}}(a122_0x4078,0xcdaad));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a122_0x4078(){const _0x565bc0=['string','6770DqrwnS','page-size','4851dPzNeh','isSafeInteger','--page-size\x20must\x20be\x20an\x20integer\x20from\x201\x20to\x20100.','Found\x20','appCode','46888QQsqBn','trim','Page\x20number','items','deployment','str','\x20deployment\x20synchronization\x20job(s).','428630wxmekQ','num','Optional\x20server-defined\x20job\x20status\x20filter','sync-jobs','43828044vWMgmL','current-page','11566569IuydGC','6XINIGt','1391624cnBNDo','67FsyLnV','56achNwE','308646PXXIqH','78IHwOcR','status','List\x20application\x20deployment\x20synchronization\x20jobs','Items\x20per\x20page\x20(maximum\x20100)','number','validation'];a122_0x4078=function(){return _0x565bc0;};return a122_0x4078();}import{listDeploymentMetadataSyncJobs}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a122_0x763b(_0x82a2a3,_0xa0e410){_0x82a2a3=_0x82a2a3-0x192;const _0x4078d4=a122_0x4078();let _0x763bd3=_0x4078d4[_0x82a2a3];return _0x763bd3;}export const deploymentSyncJobs={'service':a122_0x385118(0x1a2),'command':a122_0x385118(0x1a8),'description':a122_0x385118(0x192),'risk':'read','strictFlags':!![],'structuredErrors':!![],'flags':[{'name':a122_0x385118(0x1aa),'type':a122_0x385118(0x194),'default':0x1,'description':a122_0x385118(0x1a0)},{'name':a122_0x385118(0x198),'type':a122_0x385118(0x194),'default':0xa,'description':a122_0x385118(0x193)},{'name':a122_0x385118(0x1b2),'type':a122_0x385118(0x196),'description':a122_0x385118(0x1a7)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x2be52f){const _0x8857d2=a122_0x385118;readPaging(_0x2be52f['num'](_0x8857d2(0x1aa),0x1),_0x2be52f[_0x8857d2(0x1a6)](_0x8857d2(0x198),0xa));},async 'execute'(_0x18fdd3){const _0x38940c=a122_0x385118,{currentPage:_0x203cbb,pageSize:_0x207497}=readPaging(_0x18fdd3[_0x38940c(0x1a6)]('current-page',0x1),_0x18fdd3['num'](_0x38940c(0x198),0xa)),_0x53e490=_0x18fdd3[_0x38940c(0x1a3)](_0x38940c(0x1b2))[_0x38940c(0x19f)](),_0x57da09=await listDeploymentMetadataSyncJobs({'appCode':_0x18fdd3[_0x38940c(0x19d)],'currentPage':_0x203cbb,'pageSize':_0x207497,..._0x53e490?{'status':_0x53e490}:{}});return{'ok':!![],'data':{'appCode':_0x18fdd3['appCode'],..._0x57da09},'message':_0x38940c(0x19c)+_0x57da09[_0x38940c(0x1a1)]['length']+_0x38940c(0x1a4)};}};function readPaging(_0x1b3624,_0x4e1209){const _0x15da42=a122_0x385118;if(!Number[_0x15da42(0x19a)](_0x1b3624)||_0x1b3624<0x1)throw CliErrors['validation']('--current-page\x20must\x20be\x20a\x20positive\x20integer.');if(!Number['isSafeInteger'](_0x4e1209)||_0x4e1209<0x1||_0x4e1209>0x64)throw CliErrors[_0x15da42(0x195)](_0x15da42(0x19b));return{'currentPage':_0x1b3624,'pageSize':_0x4e1209};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a123_0xae558=a123_0x2c9c;(function(_0x35762c,_0x5172fe){const _0x1b5b08=a123_0x2c9c,_0x11c89e=_0x35762c();while(!![]){try{const _0x3e652d=parseInt(_0x1b5b08(0x7e))/0x1*(parseInt(_0x1b5b08(0x99))/0x2)+-parseInt(_0x1b5b08(0x97))/0x3+-parseInt(_0x1b5b08(0x8d))/0x4+parseInt(_0x1b5b08(0x89))/0x5*(-parseInt(_0x1b5b08(0x8c))/0x6)+parseInt(_0x1b5b08(0x83))/0x7*(-parseInt(_0x1b5b08(0x90))/0x8)+parseInt(_0x1b5b08(0x7b))/0x9+parseInt(_0x1b5b08(0x8a))/0xa*(parseInt(_0x1b5b08(0x81))/0xb);if(_0x3e652d===_0x5172fe)break;else _0x11c89e['push'](_0x11c89e['shift']());}catch(_0x25467d){_0x11c89e['push'](_0x11c89e['shift']());}}}(a123_0x3c59,0x3989d));import{getDeploymentMetadataSyncStatus}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const TERMINAL_STATUSES=new Set([a123_0xae558(0x7a),a123_0xae558(0x78),a123_0xae558(0x92)]),ACTIVE_STATUSES=new Set(['PENDING',a123_0xae558(0x93)]);function a123_0x2c9c(_0x45697d,_0x3c0993){_0x45697d=_0x45697d-0x77;const _0x3c5980=a123_0x3c59();let _0x2c9c30=_0x3c5980[_0x45697d];return _0x2c9c30;}export const deploymentSyncStatus={'service':a123_0xae558(0x85),'command':a123_0xae558(0x95),'description':a123_0xae558(0x86),'risk':'read','requiresAppCode':!![],'strictFlags':!![],'structuredErrors':!![],'flags':[{'name':a123_0xae558(0x8b),'type':a123_0xae558(0x94),'required':!![],'description':a123_0xae558(0x87)}],async 'validate'(_0x437abe){readJobId(_0x437abe['num']('job-id'));},async 'execute'(_0x42953e){const _0x3ffd2d=a123_0xae558,_0x15831c=readJobId(_0x42953e[_0x3ffd2d(0x79)](_0x3ffd2d(0x8b))),_0x125038=await getDeploymentMetadataSyncStatus({'jobId':_0x15831c,'appCode':_0x42953e['appCode']}),_0x5ef83f=TERMINAL_STATUSES[_0x3ffd2d(0x91)](_0x125038[_0x3ffd2d(0x80)])?!![]:ACTIVE_STATUSES[_0x3ffd2d(0x91)](_0x125038[_0x3ffd2d(0x80)])?![]:null,_0x2e8ef2=countBy(_0x125038[_0x3ffd2d(0x7d)]['map'](_0x3f09a6=>_0x3f09a6['bizType'])),_0xc12255=countBy(_0x125038[_0x3ffd2d(0x7d)][_0x3ffd2d(0x84)](_0x39923a=>_0x39923a[_0x3ffd2d(0x96)])),_0x1421b3=_0x5ef83f===null?[_0x3ffd2d(0x7c)+_0x125038[_0x3ffd2d(0x80)]+_0x3ffd2d(0x77)]:[];return{'ok':!![],'data':{'job':_0x125038,'isTerminal':_0x5ef83f,'summary':{'total':_0x125038[_0x3ffd2d(0x7d)][_0x3ffd2d(0x8e)],'failed':_0x125038[_0x3ffd2d(0x7d)]['filter'](_0x7efbad=>_0x7efbad[_0x3ffd2d(0x96)]===_0x3ffd2d(0x92))['length'],'byBizType':_0x2e8ef2,'byAction':_0xc12255},'warnings':_0x1421b3},'message':_0x3ffd2d(0x8f)+_0x15831c+'\x20is\x20'+_0x125038[_0x3ffd2d(0x80)]+'.'};}};function a123_0x3c59(){const _0x1c8a10=['Get\x20application\x20deployment\x20synchronization\x20job\x20status','Deployment\x20synchronization\x20job\x20ID','isSafeInteger','1285415zBTIfn','230Aezlsq','job-id','6zWszdL','1571840YKypnw','length','Deployment\x20synchronization\x20job\x20','304Zwrlsx','has','FAILED','RUNNING','number','sync-status','action','1190580qnNvTC','reduce','6GGqCKJ',';\x20terminal\x20state\x20is\x20unknown\x20to\x20this\x20CLI\x20version.','PARTIAL_SUCCESS','num','SUCCESS','2830122dFCijl','Preserved\x20server-defined\x20status\x20','results','69633kXoUMq','--job-id\x20must\x20be\x20a\x20positive\x20integer.','status','570889DniHrX','validation','80031VYitpq','map','deployment'];a123_0x3c59=function(){return _0x1c8a10;};return a123_0x3c59();}function readJobId(_0x54ed2a){const _0x3096d6=a123_0xae558;if(!Number[_0x3096d6(0x88)](_0x54ed2a)||_0x54ed2a<=0x0)throw CliErrors[_0x3096d6(0x82)](_0x3096d6(0x7f));return _0x54ed2a;}function countBy(_0x19dec4){const _0x42863a=a123_0xae558;return _0x19dec4[_0x42863a(0x98)]((_0x2f3a39,_0x2fb808)=>{return _0x2f3a39[_0x2fb808]=(_0x2f3a39[_0x2fb808]??0x0)+0x1,_0x2f3a39;},{});}
|
package/lib/commands/doctor.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a124_0x38e630=a124_0x1b36;(function(_0x35733b,_0x4cfd4d){const _0x3f79e2=a124_0x1b36,_0x204444=_0x35733b();while(!![]){try{const _0x517fc0=-parseInt(_0x3f79e2(0xa1))/0x1+parseInt(_0x3f79e2(0x10a))/0x2+-parseInt(_0x3f79e2(0xe6))/0x3*(-parseInt(_0x3f79e2(0x110))/0x4)+parseInt(_0x3f79e2(0x12a))/0x5*(-parseInt(_0x3f79e2(0xda))/0x6)+parseInt(_0x3f79e2(0xf8))/0x7*(-parseInt(_0x3f79e2(0xfb))/0x8)+-parseInt(_0x3f79e2(0xc6))/0x9*(-parseInt(_0x3f79e2(0xbd))/0xa)+-parseInt(_0x3f79e2(0xab))/0xb;if(_0x517fc0===_0x4cfd4d)break;else _0x204444['push'](_0x204444['shift']());}catch(_0x3b1457){_0x204444['push'](_0x204444['shift']());}}}(a124_0x31ef,0xd546c));import a124_0x36991c from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';function a124_0x1b36(_0x35f9e7,_0x1725ee){_0x35f9e7=_0x35f9e7-0x9a;const _0x31ef76=a124_0x31ef();let _0x1b364c=_0x31ef76[_0x35f9e7];return _0x1b364c;}function a124_0x31ef(){const _0x1b814a=['packageVersion','apps','log','\x20←\x20current','\x20\x20Routing\x20Configuration','\x20config\x20delete\x20region\x20--global','Unavailable\x20until\x20routing\x20configuration\x20is\x20repaired','stringify','object','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','780339pijZdi','keys','\x20\x20explicitAppName:\x20','16ypysfg','\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','version','\x20\x20Skill\x20Version:\x20\x20\x20','(set,\x20length=','✗\x20Invalid','string','missing','filter','defaultApp','push','prototype','installedPath','(none)','\x20\x20Country/Region\x20Configuration','1167690mCIKbj','regionConfiguredValue','\x20config\x20delete\x20inherit','\x20config\x20delete\x20routing','✓\x20Valid\x20JSON','\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','372DMtuXi','\x20\x20\x20\x20region:\x20\x20\x20\x20\x20','explicitAppName','\x20config','\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','✗\x20Invalid\x20','(default:\x20','source','doctor','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Global','message','length','regionSource','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','Project','call','null','\x20\x20kbServiceDomain:\x20','pageSize','\x20app\x20\x22','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','join','ignored\x20in\x20','\x20\x20Merged\x20Config','entries','8465gIHlnE','arch','unknown','region','bold','toLowerCase','\x20\x20\x20\x20accessKey:\x20\x20','yellow','cookie','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','inherit','locale','(not\x20set)','184765uIWqLY','\x20(default)','(no\x20file)','repairCommand','\x20\x20app\x20locale:\x20\x20\x20\x20\x20\x20','read','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','raw','✓\x20Valid','\x20\x20Config\x20Files','25029356TxCKAJ','(missing)','reason','red','\x20config\x20delete\x20inherit\x20--global','value','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','accessKey','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','Repair\x20','state','\x20config\x20delete\x20region','✗\x20Invalid\x20JSON','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','skillVersion','\x20\x20skillDomain:\x20\x20\x20\x20\x20','✗\x20Not\x20logged\x20in','check','221950meuVwb','not\x20configured','current','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','gray','(default)','padEnd','green','\x20\x20runtimeDomain:\x20\x20\x20','675TDZNyr','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','routing','\x20\x20Installed\x20Path:\x20\x20','\x20\x20Legacy\x20inherit:\x20\x20\x20','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','includes','\x20\x20Repair\x20project:\x20\x20','\x20\x20Built-in\x20Skill','currentApp','globalConfig','apiDir','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','appCode','status','appcode','\x20\x20─','(not\x20found)','\x20config\x20delete\x20routing\x20--global','1206dkADkA','hasOwnProperty','project','repeat','global','env','\x20(invalid)','default','\x20\x20kbDomain:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','projectConfig','format','53178wiVBnI','slice','label','platform','present','\x20\x20appDomain:\x20\x20\x20\x20\x20\x20\x20','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','empty'];a124_0x31ef=function(){return _0x1b814a;};return a124_0x31ef();}import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';import{getActiveRegion,getApiDomain,getAppDomain,getKbDomain,getKbServiceDomain,getSkillDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags,initGlobalEnvironment,inspectCliConfigJsonFile,loadRawConfigLayers}from'../context.js';import{getIsSessionValid}from'../auth/is-session-valid.js';import{getCookie}from'../auth/get-cookie.js';import{buildAppDoctorFields}from'../config/schema.js';import{resolveEffectiveRegion}from'../config/region-config.js';import{inspectBuiltinSkill}from'../skills/builtin-skill.js';import{DEFAULT_LOVRABET_REGION,isInvalidLovrabetRegion}from'../constant/region.js';function describeRegionValue(_0x5ea1eb){const _0x468066=a124_0x1b36;return typeof _0x5ea1eb===_0x468066(0x101)?JSON[_0x468066(0xf5)](_0x5ea1eb):'<'+(_0x5ea1eb===null?_0x468066(0x121):typeof _0x5ea1eb)+'>';}async function execute(_0x4751ee){const _0x69678f=a124_0x1b36,_0x545915=GIT_COMMIT!==_0x69678f(0x12c)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x69678f(0xe7)](0x0,0xa)+')':VERSION,_0x402587=buildConfigFromFlags({}),_0x3a95d4=getCookie();let _0x1ebb05;try{await initGlobalEnvironment(_0x402587);}catch(_0x112b74){_0x1ebb05=_0x112b74 instanceof Error?_0x112b74:new Error(String(_0x112b74));}console[_0x69678f(0xf0)](),console[_0x69678f(0xf0)](a124_0x36991c[_0x69678f(0x12e)](CLI_BIN_NAME+'\x20doctor')),console[_0x69678f(0xf0)](a124_0x36991c[_0x69678f(0xc1)]('─'[_0x69678f(0xdd)](0x32))),console[_0x69678f(0xf0)](_0x69678f(0xb3)+_0x545915),console[_0x69678f(0xf0)]('\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+process[_0x69678f(0xfd)]),console[_0x69678f(0xf0)](_0x69678f(0xe3)+process[_0x69678f(0xe9)]+'\x20'+process[_0x69678f(0x12b)]);const _0x4c247c=inspectBuiltinSkill();console[_0x69678f(0xf0)](),console[_0x69678f(0xf0)](a124_0x36991c[_0x69678f(0x12e)](_0x69678f(0xce))),console[_0x69678f(0xf0)](a124_0x36991c[_0x69678f(0xc1)](_0x69678f(0xd7)['repeat'](0x1e)));const _0x504681=_0x4c247c['state']===_0x69678f(0xbf)?a124_0x36991c[_0x69678f(0xc4)]('✓\x20'+_0x4c247c[_0x69678f(0xb5)]):a124_0x36991c[_0x69678f(0xae)]('✗\x20'+_0x4c247c[_0x69678f(0xb5)]);console[_0x69678f(0xf0)](_0x69678f(0x114)+_0x504681),console[_0x69678f(0xf0)]('\x20\x20Package\x20Version:\x20'+_0x4c247c[_0x69678f(0xee)]),console['log'](_0x69678f(0xfe)+(_0x4c247c[_0x69678f(0xb9)]||a124_0x36991c[_0x69678f(0xc1)]('(unknown)'))),console[_0x69678f(0xf0)](_0x69678f(0xc9)+(_0x4c247c[_0x69678f(0x107)]||a124_0x36991c[_0x69678f(0xc1)]('(not\x20found)')));if(_0x4c247c[_0x69678f(0xad)])console['log'](_0x69678f(0x10f)+_0x4c247c[_0x69678f(0xad)]);_0x4c247c['state']!==_0x69678f(0xbf)&&console[_0x69678f(0xf0)](_0x69678f(0xd3)+_0x4c247c['repairCommand']);console['log'](),console[_0x69678f(0xf0)](a124_0x36991c['bold'](_0x69678f(0xaa))),console['log'](a124_0x36991c[_0x69678f(0xc1)](_0x69678f(0xd7)[_0x69678f(0xdd)](0x1e)));const _0x4071f1=getGlobalConfigPath(),_0x47f24d=getProjectConfigPath();console[_0x69678f(0xf0)](_0x69678f(0xb8)+(_0x4071f1||a124_0x36991c[_0x69678f(0xc1)](_0x69678f(0xd8)))),console[_0x69678f(0xf0)](_0x69678f(0x9d)+(_0x47f24d||a124_0x36991c[_0x69678f(0xc1)]('(not\x20found)'))),console[_0x69678f(0xf0)](),console[_0x69678f(0xf0)](a124_0x36991c['bold']('\x20\x20Config\x20JSON')),console[_0x69678f(0xf0)](a124_0x36991c[_0x69678f(0xc1)](_0x69678f(0xd7)[_0x69678f(0xdd)](0x1e)));const _0x23d073=(_0x142f9d,_0x16f2cc)=>{const _0x56d1fe=_0x69678f;if(!_0x16f2cc){console[_0x56d1fe(0xf0)]('\x20\x20'+_0x142f9d['padEnd'](0x11)+'\x20'+a124_0x36991c[_0x56d1fe(0xc1)](_0x56d1fe(0xa3)));return;}const _0x20e421=inspectCliConfigJsonFile(_0x16f2cc);if(_0x20e421[_0x56d1fe(0xd5)]==='ok')console[_0x56d1fe(0xf0)]('\x20\x20'+_0x142f9d[_0x56d1fe(0xc3)](0x11)+'\x20'+a124_0x36991c[_0x56d1fe(0xc4)](_0x56d1fe(0x10e)));else{if(_0x20e421[_0x56d1fe(0xd5)]===_0x56d1fe(0xed))console[_0x56d1fe(0xf0)]('\x20\x20'+_0x142f9d[_0x56d1fe(0xc3)](0x11)+'\x20'+a124_0x36991c[_0x56d1fe(0x9a)]('⚠\x20Empty\x20(treated\x20as\x20{})'));else _0x20e421[_0x56d1fe(0xd5)]===_0x56d1fe(0x102)?console[_0x56d1fe(0xf0)]('\x20\x20'+_0x142f9d[_0x56d1fe(0xc3)](0x11)+'\x20'+a124_0x36991c['gray'](_0x56d1fe(0xac))):(console[_0x56d1fe(0xf0)]('\x20\x20'+_0x142f9d[_0x56d1fe(0xc3)](0x11)+'\x20'+a124_0x36991c[_0x56d1fe(0xae)](_0x56d1fe(0xb7))),console[_0x56d1fe(0xf0)]('\x20\x20'+''[_0x56d1fe(0xc3)](0x11)+'\x20'+a124_0x36991c[_0x56d1fe(0xae)](_0x20e421[_0x56d1fe(0x11b)])));}};_0x23d073(_0x69678f(0x11a),_0x4071f1),_0x23d073(_0x69678f(0x11f),_0x47f24d);const _0x24c787=loadRawConfigLayers(),_0x463c2b=[{'label':_0x69678f(0x11f),'value':_0x24c787[_0x69678f(0xe4)][_0x69678f(0x12d)],'present':Object[_0x69678f(0x106)][_0x69678f(0xdb)][_0x69678f(0x120)](_0x24c787[_0x69678f(0xe4)],_0x69678f(0x12d)),'repairCommand':CLI_BIN_NAME+_0x69678f(0xb6)},{'label':_0x69678f(0x11a),'value':_0x24c787['globalConfig']['region'],'present':Object['prototype'][_0x69678f(0xdb)][_0x69678f(0x120)](_0x24c787[_0x69678f(0xd0)],'region'),'repairCommand':CLI_BIN_NAME+_0x69678f(0xf3)}][_0x69678f(0x103)](_0x3f0e74=>_0x3f0e74[_0x69678f(0xea)]&&isInvalidLovrabetRegion(_0x3f0e74[_0x69678f(0xb0)]));for(const [_0x5edfbd,_0x44a3a6]of[[_0x69678f(0x11f),_0x24c787[_0x69678f(0xe4)]],['Global',_0x24c787[_0x69678f(0xd0)]]]){const _0x3f88e1=_0x44a3a6[_0x69678f(0xef)]&&typeof _0x44a3a6['apps']===_0x69678f(0xf6)?_0x44a3a6['apps']:{};for(const [_0x4bd00f,_0x360c09]of Object[_0x69678f(0x129)](_0x3f88e1)){if(!_0x360c09||typeof _0x360c09!=='object'||!Object['prototype'][_0x69678f(0xdb)][_0x69678f(0x120)](_0x360c09,_0x69678f(0x12d)))continue;isInvalidLovrabetRegion(_0x360c09[_0x69678f(0x12d)])&&_0x463c2b[_0x69678f(0x105)]({'label':_0x5edfbd+_0x69678f(0x124)+_0x4bd00f+'\x22','value':_0x360c09[_0x69678f(0x12d)],'present':!![],'repairCommand':'Set\x20apps.'+_0x4bd00f+'.region\x20to\x20cn\x20or\x20id\x20in\x20'+_0x5edfbd[_0x69678f(0x12f)]()+'\x20config'});}}if(_0x463c2b[_0x69678f(0x11c)]>0x0){console['log'](),console['log'](a124_0x36991c[_0x69678f(0x12e)](_0x69678f(0x109))),console[_0x69678f(0xf0)](a124_0x36991c['gray'](_0x69678f(0xd7)[_0x69678f(0xdd)](0x1e)));for(const _0x1f4971 of _0x463c2b){console[_0x69678f(0xf0)]('\x20\x20'+_0x1f4971[_0x69678f(0xe8)][_0x69678f(0xc3)](0x11)+'\x20'+a124_0x36991c['red'](_0x69678f(0x115)+describeRegionValue(_0x1f4971['value']))),console[_0x69678f(0xf0)]('\x20\x20'+(_0x69678f(0xb4)+_0x1f4971[_0x69678f(0xe8)][_0x69678f(0x12f)]()+':')[_0x69678f(0xc3)](0x10)+'\x20'+_0x1f4971[_0x69678f(0xa4)]);}}const _0x4585e5=[Object[_0x69678f(0x106)]['hasOwnProperty'][_0x69678f(0x120)](_0x24c787[_0x69678f(0xd0)],_0x69678f(0x9e))?'global':null,Object['prototype']['hasOwnProperty'][_0x69678f(0x120)](_0x24c787[_0x69678f(0xe4)],'inherit')?_0x69678f(0xdc):null]['filter'](Boolean);_0x4585e5[_0x69678f(0x11c)]>0x0&&(console[_0x69678f(0xf0)](_0x69678f(0xca)+a124_0x36991c[_0x69678f(0x9a)](_0x69678f(0x127)+_0x4585e5[_0x69678f(0x126)]('\x20+\x20')+_0x69678f(0x113))),_0x4585e5[_0x69678f(0xcc)](_0x69678f(0xdc))&&console[_0x69678f(0xf0)]('\x20\x20Repair\x20project:\x20\x20\x20'+CLI_BIN_NAME+_0x69678f(0x10c)),_0x4585e5[_0x69678f(0xcc)](_0x69678f(0xde))&&console[_0x69678f(0xf0)]('\x20\x20Repair\x20global:\x20\x20\x20\x20'+CLI_BIN_NAME+_0x69678f(0xaf)));const _0x879331=isInvalidLovrabetRegion(_0x402587[_0x69678f(0x10b)]??_0x402587[_0x69678f(0xa8)]?.[_0x69678f(0x12d)]);_0x1ebb05&&!_0x879331&&(console['log'](),console[_0x69678f(0xf0)](a124_0x36991c[_0x69678f(0x12e)](_0x69678f(0xf2))),console[_0x69678f(0xf0)](a124_0x36991c[_0x69678f(0xc1)](_0x69678f(0xd7)['repeat'](0x1e))),console[_0x69678f(0xf0)](_0x69678f(0x119)+a124_0x36991c[_0x69678f(0xae)](_0x69678f(0x100))),console['log'](_0x69678f(0x10f)+_0x1ebb05[_0x69678f(0x11b)]),Object['prototype']['hasOwnProperty'][_0x69678f(0x120)](_0x24c787['projectConfig'],_0x69678f(0xc8))&&console['log'](_0x69678f(0xcd)+CLI_BIN_NAME+_0x69678f(0x10d)),Object[_0x69678f(0x106)][_0x69678f(0xdb)][_0x69678f(0x120)](_0x24c787[_0x69678f(0xd0)],'routing')&&console[_0x69678f(0xf0)]('\x20\x20Repair\x20global:\x20\x20\x20'+CLI_BIN_NAME+_0x69678f(0xd9)));console[_0x69678f(0xf0)](),console[_0x69678f(0xf0)](a124_0x36991c['bold'](_0x69678f(0x128))),console['log'](a124_0x36991c[_0x69678f(0xc1)](_0x69678f(0xd7)['repeat'](0x1e))),console['log'](_0x69678f(0x9c)+(_0x402587[_0x69678f(0xd4)]||a124_0x36991c[_0x69678f(0xae)](_0x69678f(0xa0))));const _0xa49ef4=_0x879331?a124_0x36991c['red'](describeRegionValue(_0x402587[_0x69678f(0x10b)]??_0x402587[_0x69678f(0xa8)]?.['region'])+_0x69678f(0xe0)):(_0x402587[_0x69678f(0x12d)]??DEFAULT_LOVRABET_REGION)+'\x20('+(_0x402587[_0x69678f(0x11d)]??_0x69678f(0xe1))+')';console['log'](_0x69678f(0xfc)+_0xa49ef4),console['log'](_0x69678f(0xd2)+_0x402587[_0x69678f(0xdf)]),console['log'](_0x69678f(0xa5)+_0x402587[_0x69678f(0x9f)]),console[_0x69678f(0xf0)](_0x69678f(0xcb)+_0x402587[_0x69678f(0xd1)]),console[_0x69678f(0xf0)]('\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20'+(_0x402587[_0x69678f(0x104)]||a124_0x36991c[_0x69678f(0xc1)](_0x69678f(0x108)))),console[_0x69678f(0xf0)](_0x69678f(0xec)+(_0x402587['currentApp']||a124_0x36991c[_0x69678f(0xc1)](_0x69678f(0x108)))),console['log'](_0x69678f(0xfa)+(_0x402587[_0x69678f(0x112)]||a124_0x36991c['gray']('(none)'))),console['log']('\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x402587[_0x69678f(0xe5)]||a124_0x36991c[_0x69678f(0xc1)](_0x69678f(0x116)+DEFAULT_CONFIG_VALUES['format']+')'))),console['log']('\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x402587[_0x69678f(0x123)]??a124_0x36991c['gray'](_0x69678f(0xc2)))),console[_0x69678f(0xf0)]('\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20'+_0x402587['riskLevel']),console[_0x69678f(0xf0)]('\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x402587['verbose']),console[_0x69678f(0xf0)](_0x69678f(0xa7)+(_0x402587['cookie']?a124_0x36991c[_0x69678f(0xc4)](_0x69678f(0xff)+_0x402587[_0x69678f(0x9b)][_0x69678f(0x11c)]+')'):_0x3a95d4?a124_0x36991c[_0x69678f(0xc4)]('(set\x20via\x20file,\x20length='+_0x3a95d4['length']+')'):a124_0x36991c[_0x69678f(0xc1)](_0x69678f(0x108))));const _0x2ca77d=Object[_0x69678f(0xf9)](_0x402587[_0x69678f(0xef)]);if(_0x2ca77d[_0x69678f(0x11c)]>0x0){console[_0x69678f(0xf0)](),console[_0x69678f(0xf0)](a124_0x36991c['bold']('\x20\x20Apps')),console['log'](a124_0x36991c['gray'](_0x69678f(0xd7)[_0x69678f(0xdd)](0x1e)));for(const _0x328a7a of _0x2ca77d){const _0x3baba2=_0x402587['apps'][_0x328a7a],_0x1da3c5=_0x328a7a===_0x402587['defaultApp'],_0x17b721=_0x328a7a===_0x402587[_0x69678f(0xcf)],_0x588ed2=_0x17b721?a124_0x36991c['green'](_0x69678f(0xf1)):'',_0x4edd6d=_0x1da3c5?_0x69678f(0xa2):'';console[_0x69678f(0xf0)]('\x20\x20'+_0x328a7a+_0x4edd6d+_0x588ed2),console['log'](_0x69678f(0xc7)+_0x3baba2[_0x69678f(0xd6)]);const _0x31c0b5=_0x24c787[_0x69678f(0xe4)][_0x69678f(0xef)]&&typeof _0x24c787[_0x69678f(0xe4)]['apps']===_0x69678f(0xf6)?_0x24c787[_0x69678f(0xe4)]['apps']:{},_0x5bba9b=Object[_0x69678f(0x106)][_0x69678f(0xdb)][_0x69678f(0x120)](_0x31c0b5,_0x328a7a),_0x2f82ec=isInvalidLovrabetRegion(_0x3baba2['region'])?{'region':_0x402587[_0x69678f(0x12d)]??DEFAULT_LOVRABET_REGION}:resolveEffectiveRegion({'appRegion':_0x3baba2['region'],'projectRegion':_0x5bba9b?_0x24c787['projectConfig'][_0x69678f(0x12d)]:undefined,'globalRegion':_0x24c787[_0x69678f(0xd0)][_0x69678f(0x12d)],'mergedRegion':_0x402587[_0x69678f(0xa8)][_0x69678f(0x12d)],'appName':_0x328a7a}),_0x2f0a4b=buildAppDoctorFields(_0x3baba2,{'region':_0x2f82ec[_0x69678f(0x12d)],'env':_0x402587['env'],'apiDir':_0x402587['raw'][_0x69678f(0xd1)]||DEFAULT_CONFIG_VALUES[_0x69678f(0xd1)],'cookie':_0x402587[_0x69678f(0x9b)]||_0x3a95d4||undefined,'accessKey':_0x402587['accessKey']});console[_0x69678f(0xf0)](_0x69678f(0x111)+_0x2f0a4b['region'][_0x69678f(0xb0)]+'\x20\x20'+a124_0x36991c[_0x69678f(0xc1)]('('+_0x2f0a4b[_0x69678f(0x12d)][_0x69678f(0x117)]+')')),console[_0x69678f(0xf0)]('\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x2f0a4b['env']['value']+'\x20\x20'+a124_0x36991c[_0x69678f(0xc1)]('('+_0x2f0a4b['env'][_0x69678f(0x117)]+')')),console[_0x69678f(0xf0)](_0x69678f(0xf7)+_0x2f0a4b[_0x69678f(0xd1)]['value']+'\x20\x20'+a124_0x36991c[_0x69678f(0xc1)]('('+_0x2f0a4b['apiDir'][_0x69678f(0x117)]+')'));const _0x5c700f=_0x2f0a4b[_0x69678f(0x9b)][_0x69678f(0xb0)]?a124_0x36991c['green'](_0x69678f(0xff)+_0x2f0a4b[_0x69678f(0x9b)]['value'][_0x69678f(0x11c)]+')'):a124_0x36991c[_0x69678f(0xc1)](_0x69678f(0x108));console[_0x69678f(0xf0)](_0x69678f(0x125)+_0x5c700f+'\x20\x20'+a124_0x36991c['gray']('('+_0x2f0a4b[_0x69678f(0x9b)][_0x69678f(0x117)]+')'));const _0x418c88=_0x2f0a4b['accessKey'][_0x69678f(0xb0)]?a124_0x36991c[_0x69678f(0xc4)]('(set,\x20length='+_0x2f0a4b[_0x69678f(0xb2)]['value'][_0x69678f(0x11c)]+')'):a124_0x36991c[_0x69678f(0xc1)](_0x69678f(0x108));console['log'](_0x69678f(0x130)+_0x418c88+'\x20\x20'+a124_0x36991c[_0x69678f(0xc1)]('('+_0x2f0a4b[_0x69678f(0xb2)][_0x69678f(0x117)]+')'));}}console[_0x69678f(0xf0)](),console[_0x69678f(0xf0)](a124_0x36991c[_0x69678f(0x12e)]('\x20\x20API\x20Endpoints')),console['log'](a124_0x36991c[_0x69678f(0xc1)](_0x69678f(0xd7)[_0x69678f(0xdd)](0x1e)));_0x1ebb05?console['log'](_0x69678f(0x119)+a124_0x36991c['red'](_0x69678f(0xf4))):(console['log']('\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+getActiveRegion()),console['log'](_0x69678f(0xc0)+getApiDomain()),console['log'](_0x69678f(0x11e)+getUserDomain()),console[_0x69678f(0xf0)](_0x69678f(0xc5)+getRuntimeDomain()),console[_0x69678f(0xf0)](_0x69678f(0xba)+getSkillDomain()),console['log'](_0x69678f(0xe2)+getKbDomain()),console[_0x69678f(0xf0)](_0x69678f(0x122)+(getKbServiceDomain()??_0x69678f(0xbe))),console['log'](_0x69678f(0xeb)+getAppDomain()));console[_0x69678f(0xf0)](),console['log'](a124_0x36991c[_0x69678f(0x12e)]('\x20\x20Auth')),console[_0x69678f(0xf0)](a124_0x36991c[_0x69678f(0xc1)]('\x20\x20─'[_0x69678f(0xdd)](0x1e)));if(_0x1ebb05)console[_0x69678f(0xf0)](_0x69678f(0x119)+a124_0x36991c[_0x69678f(0x9a)]('Not\x20checked\x20until\x20routing\x20configuration\x20is\x20repaired'));else{if(_0x3a95d4){const _0x50f238=await getIsSessionValid();console[_0x69678f(0xf0)](_0x69678f(0x119)+(_0x50f238?a124_0x36991c[_0x69678f(0xc4)](_0x69678f(0xa9)):a124_0x36991c[_0x69678f(0xae)]('✗\x20Expired')));}else console['log'](_0x69678f(0x119)+a124_0x36991c[_0x69678f(0xae)](_0x69678f(0xbb)));}return console['log'](),{'ok':!![]};}export const doctorDefinition={'service':a124_0x38e630(0x118),'command':a124_0x38e630(0xbc),'description':a124_0x38e630(0xb1),'risk':a124_0x38e630(0xa6),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
|
|
1
|
+
const a124_0x3a43da=a124_0x36ba;(function(_0x12cc7e,_0x3b689a){const _0x7298=a124_0x36ba,_0x2da592=_0x12cc7e();while(!![]){try{const _0x3312a1=-parseInt(_0x7298(0xb3))/0x1*(-parseInt(_0x7298(0xa9))/0x2)+-parseInt(_0x7298(0xe4))/0x3+parseInt(_0x7298(0xe5))/0x4+parseInt(_0x7298(0xc9))/0x5*(-parseInt(_0x7298(0xfa))/0x6)+-parseInt(_0x7298(0x87))/0x7*(parseInt(_0x7298(0x90))/0x8)+parseInt(_0x7298(0x109))/0x9+-parseInt(_0x7298(0x93))/0xa;if(_0x3312a1===_0x3b689a)break;else _0x2da592['push'](_0x2da592['shift']());}catch(_0x30e3ff){_0x2da592['push'](_0x2da592['shift']());}}}(a124_0x24db,0xd7183));import a124_0x362ed8 from'chalk';function a124_0x24db(){const _0x33d8ab=['appCode','\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','doctor','padEnd','entries','not\x20configured','(default:\x20','\x20\x20Built-in\x20Skill','state','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','current','(default)','repeat','repairCommand','\x20config\x20delete\x20region\x20--global','\x20\x20Config\x20Files','342wzTjQE','\x20+\x20','global','globalConfig','\x20\x20Legacy\x20inherit:\x20\x20\x20','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','default','string','\x20←\x20current','\x20\x20Apps','Repair\x20','length','arch','\x20\x20Routing\x20Configuration','\x20\x20Package\x20Version:\x20','14752503lQHHSq','region','accessKey','defaultApp','raw','✗\x20Invalid\x20JSON','\x20\x20skillDomain:\x20\x20\x20\x20\x20','Not\x20checked\x20until\x20routing\x20configuration\x20is\x20repaired','\x20\x20Repair\x20project:\x20\x20\x20','\x20\x20Installed\x20Path:\x20\x20','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','green','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','inherit','21FvfBqr','(not\x20found)','project','pageSize','(set,\x20length=','\x20\x20kbDomain:\x20\x20\x20\x20\x20\x20\x20\x20','ignored\x20in\x20','routing','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','562872NWXMOH','\x20\x20Merged\x20Config','\x20config\x20delete\x20region','7218320dtqVsM','currentApp','\x20\x20─','value','.region\x20to\x20cn\x20or\x20id\x20in\x20','(not\x20set)','call','installedPath','(none)','✓\x20Valid\x20JSON','reason','✗\x20Invalid','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','slice','verbose','✗\x20Invalid\x20','toLowerCase','regionConfiguredValue','\x20\x20explicitAppName:\x20','3514130hHrRCy','\x20\x20Repair\x20global:\x20\x20\x20\x20','version','unknown','⚠\x20Empty\x20(treated\x20as\x20{})','empty','(missing)','filter','✗\x20Not\x20logged\x20in','cookie','1KJvfuk','\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20runtimeDomain:\x20\x20\x20','locale','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','gray','push','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','bold','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20region:\x20\x20\x20\x20\x20','object','projectConfig','Project','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','platform','\x20config\x20delete\x20inherit','join','102305NSSVAy','packageVersion','\x20\x20API\x20Endpoints','apps','includes','regionSource','hasOwnProperty','yellow','✓\x20Valid','message','log','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','\x20config','check','status','Global','prototype','env','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','(set\x20via\x20file,\x20length=','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','explicitAppName','source','format','\x20app\x20\x22','\x20(default)','keys','4947480fxgOoW','4932564PQaCip','red','apiDir','appcode'];a124_0x24db=function(){return _0x33d8ab;};return a124_0x24db();}import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';import{getActiveRegion,getApiDomain,getAppDomain,getKbDomain,getKbServiceDomain,getSkillDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags,initGlobalEnvironment,inspectCliConfigJsonFile,loadRawConfigLayers}from'../context.js';function a124_0x36ba(_0xa0f465,_0x336489){_0xa0f465=_0xa0f465-0x82;const _0x24db77=a124_0x24db();let _0x36bacc=_0x24db77[_0xa0f465];return _0x36bacc;}import{getIsSessionValid}from'../auth/is-session-valid.js';import{getCookie}from'../auth/get-cookie.js';import{buildAppDoctorFields}from'../config/schema.js';import{resolveEffectiveRegion}from'../config/region-config.js';import{inspectBuiltinSkill}from'../skills/builtin-skill.js';import{DEFAULT_LOVRABET_REGION,isInvalidLovrabetRegion}from'../constant/region.js';function describeRegionValue(_0x138ff0){const _0x4e9d5b=a124_0x36ba;return typeof _0x138ff0===_0x4e9d5b(0x101)?JSON['stringify'](_0x138ff0):'<'+(_0x138ff0===null?'null':typeof _0x138ff0)+'>';}async function execute(_0x1aca2c){const _0x471ee9=a124_0x36ba,_0x4d50ec=GIT_COMMIT!==_0x471ee9(0xac)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x471ee9(0xa3)](0x0,0xa)+')':VERSION,_0x434382=buildConfigFromFlags({}),_0x1af78c=getCookie();let _0x357f83;try{await initGlobalEnvironment(_0x434382);}catch(_0x4204ea){_0x357f83=_0x4204ea instanceof Error?_0x4204ea:new Error(String(_0x4204ea));}console[_0x471ee9(0xd3)](),console['log'](a124_0x362ed8[_0x471ee9(0xbe)](CLI_BIN_NAME+'\x20doctor')),console[_0x471ee9(0xd3)](a124_0x362ed8[_0x471ee9(0xba)]('─'['repeat'](0x32))),console['log'](_0x471ee9(0xf2)+_0x4d50ec),console['log'](_0x471ee9(0xc5)+process[_0x471ee9(0xab)]),console[_0x471ee9(0xd3)](_0x471ee9(0xd4)+process[_0x471ee9(0xc6)]+'\x20'+process[_0x471ee9(0x106)]);const _0x1ba500=inspectBuiltinSkill();console[_0x471ee9(0xd3)](),console[_0x471ee9(0xd3)](a124_0x362ed8['bold'](_0x471ee9(0xf0))),console[_0x471ee9(0xd3)](a124_0x362ed8['gray'](_0x471ee9(0x95)[_0x471ee9(0xf6)](0x1e)));const _0x2bbe18=_0x1ba500[_0x471ee9(0xf1)]===_0x471ee9(0xf4)?a124_0x362ed8[_0x471ee9(0x84)]('✓\x20'+_0x1ba500[_0x471ee9(0xf1)]):a124_0x362ed8[_0x471ee9(0xe6)]('✗\x20'+_0x1ba500['state']);console[_0x471ee9(0xd3)](_0x471ee9(0xea)+_0x2bbe18),console[_0x471ee9(0xd3)](_0x471ee9(0x108)+_0x1ba500[_0x471ee9(0xca)]),console[_0x471ee9(0xd3)]('\x20\x20Skill\x20Version:\x20\x20\x20'+(_0x1ba500['skillVersion']||a124_0x362ed8[_0x471ee9(0xba)]('(unknown)'))),console[_0x471ee9(0xd3)](_0x471ee9(0x82)+(_0x1ba500[_0x471ee9(0x9a)]||a124_0x362ed8[_0x471ee9(0xba)](_0x471ee9(0x88))));if(_0x1ba500[_0x471ee9(0x9d)])console[_0x471ee9(0xd3)](_0x471ee9(0xa2)+_0x1ba500['reason']);_0x1ba500[_0x471ee9(0xf1)]!==_0x471ee9(0xf4)&&console['log'](_0x471ee9(0xb4)+_0x1ba500[_0x471ee9(0xf7)]);console['log'](),console[_0x471ee9(0xd3)](a124_0x362ed8['bold'](_0x471ee9(0xf9))),console['log'](a124_0x362ed8[_0x471ee9(0xba)]('\x20\x20─'[_0x471ee9(0xf6)](0x1e)));const _0x5dac30=getGlobalConfigPath(),_0x474a40=getProjectConfigPath();console[_0x471ee9(0xd3)](_0x471ee9(0x8f)+(_0x5dac30||a124_0x362ed8['gray'](_0x471ee9(0x88)))),console[_0x471ee9(0xd3)](_0x471ee9(0xc4)+(_0x474a40||a124_0x362ed8[_0x471ee9(0xba)](_0x471ee9(0x88)))),console[_0x471ee9(0xd3)](),console[_0x471ee9(0xd3)](a124_0x362ed8[_0x471ee9(0xbe)]('\x20\x20Config\x20JSON')),console['log'](a124_0x362ed8[_0x471ee9(0xba)](_0x471ee9(0x95)[_0x471ee9(0xf6)](0x1e)));const _0x3fd397=(_0x307bdd,_0x5c9c7a)=>{const _0x54bb8a=_0x471ee9;if(!_0x5c9c7a){console[_0x54bb8a(0xd3)]('\x20\x20'+_0x307bdd[_0x54bb8a(0xec)](0x11)+'\x20'+a124_0x362ed8[_0x54bb8a(0xba)]('(no\x20file)'));return;}const _0x4c39e3=inspectCliConfigJsonFile(_0x5c9c7a);if(_0x4c39e3[_0x54bb8a(0xd7)]==='ok')console[_0x54bb8a(0xd3)]('\x20\x20'+_0x307bdd[_0x54bb8a(0xec)](0x11)+'\x20'+a124_0x362ed8[_0x54bb8a(0x84)](_0x54bb8a(0x9c)));else{if(_0x4c39e3[_0x54bb8a(0xd7)]===_0x54bb8a(0xae))console[_0x54bb8a(0xd3)]('\x20\x20'+_0x307bdd[_0x54bb8a(0xec)](0x11)+'\x20'+a124_0x362ed8[_0x54bb8a(0xd0)](_0x54bb8a(0xad)));else _0x4c39e3[_0x54bb8a(0xd7)]==='missing'?console[_0x54bb8a(0xd3)]('\x20\x20'+_0x307bdd[_0x54bb8a(0xec)](0x11)+'\x20'+a124_0x362ed8['gray'](_0x54bb8a(0xaf))):(console['log']('\x20\x20'+_0x307bdd[_0x54bb8a(0xec)](0x11)+'\x20'+a124_0x362ed8[_0x54bb8a(0xe6)](_0x54bb8a(0x10e))),console[_0x54bb8a(0xd3)]('\x20\x20'+''['padEnd'](0x11)+'\x20'+a124_0x362ed8[_0x54bb8a(0xe6)](_0x4c39e3[_0x54bb8a(0xd2)])));}};_0x3fd397(_0x471ee9(0xd8),_0x5dac30),_0x3fd397(_0x471ee9(0xc3),_0x474a40);const _0x1b1f58=loadRawConfigLayers(),_0x944b58=[{'label':'Project','value':_0x1b1f58[_0x471ee9(0xc2)][_0x471ee9(0x10a)],'present':Object[_0x471ee9(0xd9)][_0x471ee9(0xcf)][_0x471ee9(0x99)](_0x1b1f58[_0x471ee9(0xc2)],_0x471ee9(0x10a)),'repairCommand':CLI_BIN_NAME+_0x471ee9(0x92)},{'label':_0x471ee9(0xd8),'value':_0x1b1f58[_0x471ee9(0xfd)][_0x471ee9(0x10a)],'present':Object[_0x471ee9(0xd9)][_0x471ee9(0xcf)][_0x471ee9(0x99)](_0x1b1f58[_0x471ee9(0xfd)],_0x471ee9(0x10a)),'repairCommand':CLI_BIN_NAME+_0x471ee9(0xf8)}][_0x471ee9(0xb0)](_0x260e4e=>_0x260e4e['present']&&isInvalidLovrabetRegion(_0x260e4e['value']));for(const [_0x49adb2,_0x1ebe13]of[['Project',_0x1b1f58['projectConfig']],[_0x471ee9(0xd8),_0x1b1f58[_0x471ee9(0xfd)]]]){const _0x476b4a=_0x1ebe13[_0x471ee9(0xcc)]&&typeof _0x1ebe13[_0x471ee9(0xcc)]===_0x471ee9(0xc1)?_0x1ebe13[_0x471ee9(0xcc)]:{};for(const [_0x3c0f07,_0x2d56aa]of Object[_0x471ee9(0xed)](_0x476b4a)){if(!_0x2d56aa||typeof _0x2d56aa!==_0x471ee9(0xc1)||!Object[_0x471ee9(0xd9)][_0x471ee9(0xcf)][_0x471ee9(0x99)](_0x2d56aa,_0x471ee9(0x10a)))continue;isInvalidLovrabetRegion(_0x2d56aa[_0x471ee9(0x10a)])&&_0x944b58[_0x471ee9(0xbb)]({'label':_0x49adb2+_0x471ee9(0xe1)+_0x3c0f07+'\x22','value':_0x2d56aa['region'],'present':!![],'repairCommand':'Set\x20apps.'+_0x3c0f07+_0x471ee9(0x97)+_0x49adb2[_0x471ee9(0xa6)]()+_0x471ee9(0xd5)});}}if(_0x944b58['length']>0x0){console[_0x471ee9(0xd3)](),console[_0x471ee9(0xd3)](a124_0x362ed8[_0x471ee9(0xbe)]('\x20\x20Country/Region\x20Configuration')),console[_0x471ee9(0xd3)](a124_0x362ed8[_0x471ee9(0xba)](_0x471ee9(0x95)[_0x471ee9(0xf6)](0x1e)));for(const _0x355b22 of _0x944b58){console[_0x471ee9(0xd3)]('\x20\x20'+_0x355b22['label'][_0x471ee9(0xec)](0x11)+'\x20'+a124_0x362ed8[_0x471ee9(0xe6)](_0x471ee9(0xa5)+describeRegionValue(_0x355b22[_0x471ee9(0x96)]))),console[_0x471ee9(0xd3)]('\x20\x20'+(_0x471ee9(0x104)+_0x355b22['label'][_0x471ee9(0xa6)]()+':')[_0x471ee9(0xec)](0x10)+'\x20'+_0x355b22[_0x471ee9(0xf7)]);}}const _0x4cb077=[Object[_0x471ee9(0xd9)][_0x471ee9(0xcf)][_0x471ee9(0x99)](_0x1b1f58[_0x471ee9(0xfd)],_0x471ee9(0x86))?_0x471ee9(0xfc):null,Object[_0x471ee9(0xd9)]['hasOwnProperty']['call'](_0x1b1f58[_0x471ee9(0xc2)],_0x471ee9(0x86))?_0x471ee9(0x89):null][_0x471ee9(0xb0)](Boolean);_0x4cb077[_0x471ee9(0x105)]>0x0&&(console[_0x471ee9(0xd3)](_0x471ee9(0xfe)+a124_0x362ed8[_0x471ee9(0xd0)](_0x471ee9(0x8d)+_0x4cb077[_0x471ee9(0xc8)](_0x471ee9(0xfb))+_0x471ee9(0xd5))),_0x4cb077[_0x471ee9(0xcd)](_0x471ee9(0x89))&&console[_0x471ee9(0xd3)](_0x471ee9(0x111)+CLI_BIN_NAME+_0x471ee9(0xc7)),_0x4cb077[_0x471ee9(0xcd)](_0x471ee9(0xfc))&&console[_0x471ee9(0xd3)](_0x471ee9(0xaa)+CLI_BIN_NAME+'\x20config\x20delete\x20inherit\x20--global'));const _0x26ad90=isInvalidLovrabetRegion(_0x434382[_0x471ee9(0xa7)]??_0x434382[_0x471ee9(0x10d)]?.[_0x471ee9(0x10a)]);_0x357f83&&!_0x26ad90&&(console['log'](),console[_0x471ee9(0xd3)](a124_0x362ed8[_0x471ee9(0xbe)](_0x471ee9(0x107))),console['log'](a124_0x362ed8[_0x471ee9(0xba)]('\x20\x20─'[_0x471ee9(0xf6)](0x1e))),console[_0x471ee9(0xd3)](_0x471ee9(0xb7)+a124_0x362ed8[_0x471ee9(0xe6)](_0x471ee9(0x9e))),console['log'](_0x471ee9(0xa2)+_0x357f83[_0x471ee9(0xd2)]),Object[_0x471ee9(0xd9)][_0x471ee9(0xcf)][_0x471ee9(0x99)](_0x1b1f58[_0x471ee9(0xc2)],_0x471ee9(0x8e))&&console[_0x471ee9(0xd3)]('\x20\x20Repair\x20project:\x20\x20'+CLI_BIN_NAME+'\x20config\x20delete\x20routing'),Object[_0x471ee9(0xd9)][_0x471ee9(0xcf)][_0x471ee9(0x99)](_0x1b1f58[_0x471ee9(0xfd)],'routing')&&console['log']('\x20\x20Repair\x20global:\x20\x20\x20'+CLI_BIN_NAME+'\x20config\x20delete\x20routing\x20--global'));console[_0x471ee9(0xd3)](),console[_0x471ee9(0xd3)](a124_0x362ed8[_0x471ee9(0xbe)](_0x471ee9(0x91))),console[_0x471ee9(0xd3)](a124_0x362ed8[_0x471ee9(0xba)](_0x471ee9(0x95)['repeat'](0x1e))),console[_0x471ee9(0xd3)](_0x471ee9(0x9f)+(_0x434382[_0x471ee9(0xe9)]||a124_0x362ed8[_0x471ee9(0xe6)](_0x471ee9(0x98))));const _0x2db70b=_0x26ad90?a124_0x362ed8['red'](describeRegionValue(_0x434382[_0x471ee9(0xa7)]??_0x434382[_0x471ee9(0x10d)]?.[_0x471ee9(0x10a)])+'\x20(invalid)'):(_0x434382[_0x471ee9(0x10a)]??DEFAULT_LOVRABET_REGION)+'\x20('+(_0x434382[_0x471ee9(0xce)]??_0x471ee9(0x100))+')';console['log'](_0x471ee9(0xa0)+_0x2db70b),console[_0x471ee9(0xd3)](_0x471ee9(0xdd)+_0x434382[_0x471ee9(0xda)]),console[_0x471ee9(0xd3)]('\x20\x20app\x20locale:\x20\x20\x20\x20\x20\x20'+_0x434382[_0x471ee9(0xb6)]),console['log']('\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x434382[_0x471ee9(0xe7)]),console[_0x471ee9(0xd3)](_0x471ee9(0xbf)+(_0x434382[_0x471ee9(0x10c)]||a124_0x362ed8[_0x471ee9(0xba)]('(none)'))),console['log'](_0x471ee9(0xbc)+(_0x434382['currentApp']||a124_0x362ed8[_0x471ee9(0xba)]('(none)'))),console['log'](_0x471ee9(0xa8)+(_0x434382[_0x471ee9(0xde)]||a124_0x362ed8[_0x471ee9(0xba)](_0x471ee9(0x9b)))),console['log'](_0x471ee9(0xf3)+(_0x434382[_0x471ee9(0xe0)]||a124_0x362ed8['gray'](_0x471ee9(0xef)+DEFAULT_CONFIG_VALUES[_0x471ee9(0xe0)]+')'))),console[_0x471ee9(0xd3)]('\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x434382[_0x471ee9(0x8a)]??a124_0x362ed8[_0x471ee9(0xba)](_0x471ee9(0xf5)))),console['log'](_0x471ee9(0x85)+_0x434382['riskLevel']),console['log'](_0x471ee9(0xbd)+_0x434382[_0x471ee9(0xa4)]),console[_0x471ee9(0xd3)]('\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x434382[_0x471ee9(0xb2)]?a124_0x362ed8[_0x471ee9(0x84)](_0x471ee9(0x8b)+_0x434382[_0x471ee9(0xb2)][_0x471ee9(0x105)]+')'):_0x1af78c?a124_0x362ed8[_0x471ee9(0x84)](_0x471ee9(0xdc)+_0x1af78c['length']+')'):a124_0x362ed8[_0x471ee9(0xba)](_0x471ee9(0x9b))));const _0x28754d=Object[_0x471ee9(0xe3)](_0x434382[_0x471ee9(0xcc)]);if(_0x28754d[_0x471ee9(0x105)]>0x0){console['log'](),console[_0x471ee9(0xd3)](a124_0x362ed8['bold'](_0x471ee9(0x103))),console['log'](a124_0x362ed8[_0x471ee9(0xba)](_0x471ee9(0x95)[_0x471ee9(0xf6)](0x1e)));for(const _0x2cad2d of _0x28754d){const _0x37a292=_0x434382[_0x471ee9(0xcc)][_0x2cad2d],_0x498921=_0x2cad2d===_0x434382[_0x471ee9(0x10c)],_0x3699c0=_0x2cad2d===_0x434382[_0x471ee9(0x94)],_0x545583=_0x3699c0?a124_0x362ed8[_0x471ee9(0x84)](_0x471ee9(0x102)):'',_0x3349a0=_0x498921?_0x471ee9(0xe2):'';console[_0x471ee9(0xd3)]('\x20\x20'+_0x2cad2d+_0x3349a0+_0x545583),console['log'](_0x471ee9(0xb8)+_0x37a292[_0x471ee9(0xe8)]);const _0x49b4ec=_0x1b1f58['projectConfig'][_0x471ee9(0xcc)]&&typeof _0x1b1f58[_0x471ee9(0xc2)][_0x471ee9(0xcc)]==='object'?_0x1b1f58[_0x471ee9(0xc2)]['apps']:{},_0x39c1a6=Object['prototype']['hasOwnProperty'][_0x471ee9(0x99)](_0x49b4ec,_0x2cad2d),_0x49add6=isInvalidLovrabetRegion(_0x37a292['region'])?{'region':_0x434382[_0x471ee9(0x10a)]??DEFAULT_LOVRABET_REGION}:resolveEffectiveRegion({'appRegion':_0x37a292['region'],'projectRegion':_0x39c1a6?_0x1b1f58['projectConfig'][_0x471ee9(0x10a)]:undefined,'globalRegion':_0x1b1f58[_0x471ee9(0xfd)][_0x471ee9(0x10a)],'mergedRegion':_0x434382[_0x471ee9(0x10d)][_0x471ee9(0x10a)],'appName':_0x2cad2d}),_0x383dd2=buildAppDoctorFields(_0x37a292,{'region':_0x49add6[_0x471ee9(0x10a)],'env':_0x434382[_0x471ee9(0xda)],'apiDir':_0x434382['raw'][_0x471ee9(0xe7)]||DEFAULT_CONFIG_VALUES['apiDir'],'cookie':_0x434382[_0x471ee9(0xb2)]||_0x1af78c||undefined,'accessKey':_0x434382[_0x471ee9(0x10b)]});console['log'](_0x471ee9(0xc0)+_0x383dd2[_0x471ee9(0x10a)][_0x471ee9(0x96)]+'\x20\x20'+a124_0x362ed8[_0x471ee9(0xba)]('('+_0x383dd2[_0x471ee9(0x10a)]['source']+')')),console[_0x471ee9(0xd3)](_0x471ee9(0xff)+_0x383dd2['env'][_0x471ee9(0x96)]+'\x20\x20'+a124_0x362ed8[_0x471ee9(0xba)]('('+_0x383dd2[_0x471ee9(0xda)][_0x471ee9(0xdf)]+')')),console['log'](_0x471ee9(0x83)+_0x383dd2[_0x471ee9(0xe7)][_0x471ee9(0x96)]+'\x20\x20'+a124_0x362ed8[_0x471ee9(0xba)]('('+_0x383dd2[_0x471ee9(0xe7)]['source']+')'));const _0x33233f=_0x383dd2[_0x471ee9(0xb2)]['value']?a124_0x362ed8[_0x471ee9(0x84)](_0x471ee9(0x8b)+_0x383dd2[_0x471ee9(0xb2)][_0x471ee9(0x96)]['length']+')'):a124_0x362ed8[_0x471ee9(0xba)](_0x471ee9(0x9b));console[_0x471ee9(0xd3)](_0x471ee9(0xa1)+_0x33233f+'\x20\x20'+a124_0x362ed8[_0x471ee9(0xba)]('('+_0x383dd2[_0x471ee9(0xb2)][_0x471ee9(0xdf)]+')'));const _0x1a7565=_0x383dd2[_0x471ee9(0x10b)][_0x471ee9(0x96)]?a124_0x362ed8[_0x471ee9(0x84)](_0x471ee9(0x8b)+_0x383dd2[_0x471ee9(0x10b)][_0x471ee9(0x96)][_0x471ee9(0x105)]+')'):a124_0x362ed8[_0x471ee9(0xba)](_0x471ee9(0x9b));console[_0x471ee9(0xd3)]('\x20\x20\x20\x20accessKey:\x20\x20'+_0x1a7565+'\x20\x20'+a124_0x362ed8['gray']('('+_0x383dd2[_0x471ee9(0x10b)][_0x471ee9(0xdf)]+')'));}}console['log'](),console[_0x471ee9(0xd3)](a124_0x362ed8[_0x471ee9(0xbe)](_0x471ee9(0xcb))),console[_0x471ee9(0xd3)](a124_0x362ed8[_0x471ee9(0xba)]('\x20\x20─'['repeat'](0x1e)));_0x357f83?console[_0x471ee9(0xd3)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a124_0x362ed8[_0x471ee9(0xe6)]('Unavailable\x20until\x20routing\x20configuration\x20is\x20repaired')):(console['log'](_0x471ee9(0xa0)+getActiveRegion()),console['log'](_0x471ee9(0xb9)+getApiDomain()),console[_0x471ee9(0xd3)](_0x471ee9(0xdb)+getUserDomain()),console['log'](_0x471ee9(0xb5)+getRuntimeDomain()),console[_0x471ee9(0xd3)](_0x471ee9(0x10f)+getSkillDomain()),console[_0x471ee9(0xd3)](_0x471ee9(0x8c)+getKbDomain()),console[_0x471ee9(0xd3)]('\x20\x20kbServiceDomain:\x20'+(getKbServiceDomain()??_0x471ee9(0xee))),console[_0x471ee9(0xd3)]('\x20\x20appDomain:\x20\x20\x20\x20\x20\x20\x20'+getAppDomain()));console['log'](),console['log'](a124_0x362ed8['bold']('\x20\x20Auth')),console[_0x471ee9(0xd3)](a124_0x362ed8[_0x471ee9(0xba)](_0x471ee9(0x95)[_0x471ee9(0xf6)](0x1e)));if(_0x357f83)console['log']('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a124_0x362ed8[_0x471ee9(0xd0)](_0x471ee9(0x110)));else{if(_0x1af78c){const _0x3b1691=await getIsSessionValid();console[_0x471ee9(0xd3)](_0x471ee9(0xb7)+(_0x3b1691?a124_0x362ed8[_0x471ee9(0x84)](_0x471ee9(0xd1)):a124_0x362ed8[_0x471ee9(0xe6)]('✗\x20Expired')));}else console[_0x471ee9(0xd3)](_0x471ee9(0xb7)+a124_0x362ed8[_0x471ee9(0xe6)](_0x471ee9(0xb1)));}return console[_0x471ee9(0xd3)](),{'ok':!![]};}export const doctorDefinition={'service':a124_0x3a43da(0xeb),'command':a124_0x3a43da(0xd6),'description':'Diagnose\x20CLI\x20configuration\x20and\x20connectivity','risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
|