@lovrabet/rabetbase-cli 2.5.7 → 2.5.8-beta.2
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 +7 -0
- package/lib/api/api-doc.js +1 -1
- package/lib/api/api-group.js +1 -1
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.js +1 -1
- package/lib/api/generate-sdk-config-file.js +1 -1
- package/lib/api/legacy-api-file.js +1 -1
- package/lib/api/model-registry-file.js +1 -1
- package/lib/api/model-registry-scaffold.js +1 -1
- package/lib/api/model-source.js +1 -1
- package/lib/auth/auth-server-ui.js +1 -1
- package/lib/auth/auth-server.js +1 -1
- package/lib/auth/constant.js +1 -1
- package/lib/auth/get-cookie.js +1 -1
- package/lib/auth/get-session-user.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.js +1 -1
- package/lib/commands/kb/update.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/asset-update.js +1 -1
- package/lib/commands/menu/delete.js +1 -1
- package/lib/commands/menu/external-link-create.js +1 -1
- package/lib/commands/menu/external-link-update.js +1 -1
- package/lib/commands/menu/group-create.js +1 -1
- package/lib/commands/menu/group-update.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/list.js +1 -1
- package/lib/commands/menu/move.js +1 -1
- package/lib/commands/menu/regroup-start.js +1 -1
- package/lib/commands/menu/rename.js +1 -1
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/delete-plan.js +1 -1
- package/lib/commands/menu/shared/facts.js +1 -1
- package/lib/commands/menu/shared/index.js +1 -1
- package/lib/commands/menu/shared/inquirer.js +1 -1
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.js +1 -1
- package/lib/commands/menu/shared/mutations.js +1 -1
- package/lib/commands/menu/shared/path.js +1 -1
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/subapp-assets.js +1 -1
- package/lib/commands/menu/shared/sync-core.js +1 -1
- package/lib/commands/menu/shared/update-core.js +1 -1
- package/lib/commands/menu/shared/valid-url.js +1 -1
- package/lib/commands/menu/subapp-assets-status.js +1 -1
- package/lib/commands/menu/subapp-assets-update.js +1 -1
- package/lib/commands/menu/sync.js +1 -1
- package/lib/commands/menu/visibility-update.js +1 -1
- package/lib/commands/notification/config-create.js +1 -1
- package/lib/commands/notification/config-delete.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/config-update.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/notification/shared.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/page/create.js +1 -1
- package/lib/commands/page/custom/detail.js +1 -1
- package/lib/commands/page/custom/list.js +1 -1
- package/lib/commands/page/custom/publish.js +1 -1
- package/lib/commands/page/custom/shared.js +1 -1
- package/lib/commands/page/custom/syntax.js +1 -1
- package/lib/commands/page/custom/update.js +1 -1
- package/lib/commands/page/data-list-status.js +1 -1
- package/lib/commands/page/generate-start.js +1 -1
- package/lib/commands/page/generate-status.js +1 -1
- package/lib/commands/page/index.js +1 -1
- package/lib/commands/page/pull.js +1 -1
- package/lib/commands/page/push.js +1 -1
- package/lib/commands/page/relation-audit.js +1 -1
- package/lib/commands/page/restore.js +1 -1
- package/lib/commands/page/shared.js +1 -1
- package/lib/commands/page/sync.js +1 -1
- package/lib/commands/project/api-architecture-upgrade.js +1 -1
- package/lib/commands/project/create/enhanced-guided-create.js +1 -1
- package/lib/commands/project/create/format-elapsed.js +1 -1
- package/lib/commands/project/create/main.js +1 -1
- package/lib/commands/project/create/materialize-project-template.js +1 -1
- package/lib/commands/project/create/project-name.js +1 -1
- package/lib/commands/project/create/project-template-archive.js +1 -1
- package/lib/commands/project/create/project-template-path.js +1 -1
- package/lib/commands/project/create/use-copy-project-template.js +1 -1
- package/lib/commands/project/create/use-format-code.js +1 -1
- package/lib/commands/project/create/use-install-dependencies.js +1 -1
- package/lib/commands/project/domain-routing-sync.js +1 -1
- package/lib/commands/project/index.js +1 -1
- package/lib/commands/project/upgrade.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/role/user-resolve.js +1 -1
- package/lib/commands/rule/get.js +1 -1
- package/lib/commands/rule/index.js +1 -1
- package/lib/commands/rule/list.js +1 -1
- package/lib/commands/rule/set.js +1 -1
- package/lib/commands/rule/shared.js +1 -1
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/sql/create.js +1 -1
- package/lib/commands/sql/delete.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/sql/list.js +1 -1
- package/lib/commands/sql/pull.js +1 -1
- package/lib/commands/sql/push.js +1 -1
- package/lib/commands/sql/shared.js +1 -1
- package/lib/commands/sql/status.js +1 -1
- package/lib/commands/sql/validate.js +1 -1
- package/lib/commands/task/index.js +1 -1
- package/lib/commands/task/status.js +1 -1
- package/lib/commands/tenant/index.js +1 -1
- package/lib/commands/tenant/members-list.js +1 -1
- package/lib/commands/tenant/shared.js +1 -1
- package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
- package/lib/commands/user-account/feishu-bind.js +1 -1
- package/lib/commands/user-account/index.js +1 -1
- package/lib/commands/workspace/add.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/commands/workspace/remove.js +1 -1
- package/lib/config/domain-config.js +1 -1
- package/lib/config/project-domain-routing.js +1 -1
- package/lib/config/region-config.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/cdn.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/domain.d.ts +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 +2 -2
- 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 +19 -0
- package/lib/core/kb-management-client.js +1 -0
- 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 +2 -2
- package/skills/rabetbase/references/rabetbase-kb.md +7 -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
|
-
|
|
1
|
+
const a109_0x36a01c=a109_0x1c57;(function(_0xf74f52,_0xff8f7c){const _0x41de5a=a109_0x1c57,_0x3c1b7f=_0xf74f52();while(!![]){try{const _0x55cb09=-parseInt(_0x41de5a(0x122))/0x1*(-parseInt(_0x41de5a(0x120))/0x2)+-parseInt(_0x41de5a(0x11d))/0x3*(parseInt(_0x41de5a(0x116))/0x4)+-parseInt(_0x41de5a(0x128))/0x5*(-parseInt(_0x41de5a(0x119))/0x6)+parseInt(_0x41de5a(0x126))/0x7*(parseInt(_0x41de5a(0x115))/0x8)+-parseInt(_0x41de5a(0x11e))/0x9*(parseInt(_0x41de5a(0x11b))/0xa)+parseInt(_0x41de5a(0x118))/0xb+-parseInt(_0x41de5a(0x114))/0xc*(parseInt(_0x41de5a(0x123))/0xd);if(_0x55cb09===_0xff8f7c)break;else _0x3c1b7f['push'](_0x3c1b7f['shift']());}catch(_0x513a97){_0x3c1b7f['push'](_0x3c1b7f['shift']());}}}(a109_0xff8c,0x1888e));import{getDbLinkInfo,listDatasets}from'../../core/api-client.js';function a109_0x1c57(_0x47d33d,_0x4d0b68){_0x47d33d=_0x47d33d-0x114;const _0xff8cc2=a109_0xff8c();let _0x1c57e2=_0xff8cc2[_0x47d33d];return _0x1c57e2;}import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a109_0xff8c(){const _0x5dbcdc=['6lFRFXV','datasetDependency','69710QBgqvz','db\x20link\x20','93rSEqTN','54PkDDrR','dbName','22730ANjPas','Get\x20one\x20database\x20connection\x20by\x20id\x20(metadata\x20+\x20analysis\x20fields;\x20password\x20redacted)','13KyKddZ','9191BplrSL','appCode','DB_TABLE','7gMoqAQ','detail','913085OAiTjs','6420VpJRiJ','1478184ombAxy','128mQYiXr','num','70642XRjjsP'];a109_0xff8c=function(){return _0x5dbcdc;};return a109_0xff8c();}import{buildDbDatasetDependency,sanitizeDbLinkForOutput}from'../../commands/db/shared.js';export const dbDetail={'service':'db','command':a109_0x36a01c(0x127),'description':a109_0x36a01c(0x121),'risk':'read','requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x1dded6){const _0x1702ef=a109_0x36a01c,_0x2140cd=_0x1dded6[_0x1702ef(0x117)]('id'),_0x3a14fa=await getDbLinkInfo(_0x2140cd),_0x169408=await listDatasets(_0x3a14fa['appCode']||_0x1dded6[_0x1702ef(0x124)],{'source':_0x1702ef(0x125)}),_0xc8114f=buildDbDatasetDependency(_0x3a14fa,_0x169408);return{'ok':!![],'data':{...sanitizeDbLinkForOutput(_0x3a14fa),'datasetDependency':_0xc8114f[_0x1702ef(0x11a)]},'message':_0x1702ef(0x11c)+_0x2140cd+':\x20'+_0x3a14fa[_0x1702ef(0x11f)]};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a110_0x2f2d(_0x11cf18,_0x9af02d){_0x11cf18=_0x11cf18-0x185;const _0x1e3124=a110_0x1e31();let _0x2f2d0f=_0x1e3124[_0x11cf18];return _0x2f2d0f;}function a110_0x1e31(){const _0x3215cb=['write','50juQhXl','385yOygCA','7150578boSDmk','24TLyhjJ','validation','diff-refresh-start','975393mkhVeA','\x20--format\x20compress','trim','Started\x20table-diff\x20refresh\x20for\x20db\x20link\x20','66KVlZbk','5200612MfueoI','status','5NMQuev','1161300aBSFax','3892371CWmXSX','1193952PJeWql','19599yOhQkT','\x20db\x20diff-refresh-status\x20--id\x20','Start\x20an\x20asynchronous\x20refresh\x20of\x20the\x20database\x20table-diff\x20result'];a110_0x1e31=function(){return _0x3215cb;};return a110_0x1e31();}const a110_0x2179fe=a110_0x2f2d;(function(_0x5c8eb7,_0x29fbd9){const _0x42f79c=a110_0x2f2d,_0x3ac646=_0x5c8eb7();while(!![]){try{const _0x154fa2=-parseInt(_0x42f79c(0x195))/0x1*(parseInt(_0x42f79c(0x18e))/0x2)+parseInt(_0x42f79c(0x192))/0x3+-parseInt(_0x42f79c(0x18f))/0x4*(-parseInt(_0x42f79c(0x191))/0x5)+parseInt(_0x42f79c(0x186))/0x6+parseInt(_0x42f79c(0x193))/0x7*(parseInt(_0x42f79c(0x187))/0x8)+-parseInt(_0x42f79c(0x18a))/0x9*(-parseInt(_0x42f79c(0x199))/0xa)+parseInt(_0x42f79c(0x185))/0xb*(-parseInt(_0x42f79c(0x194))/0xc);if(_0x154fa2===_0x29fbd9)break;else _0x3ac646['push'](_0x3ac646['shift']());}catch(_0x163b6f){_0x3ac646['push'](_0x3ac646['shift']());}}}(a110_0x1e31,0xea5bd));import{startDbTableDiffRefresh}from'../../core/api-client.js';import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{CliErrors}from'../../errors.js';export const dbDiffRefreshStart={'service':'db','command':a110_0x2179fe(0x189),'description':a110_0x2179fe(0x197),'risk':a110_0x2179fe(0x198),'flags':[DBLINK_ID_FLAG],async 'execute'(_0x122784){const _0x28c364=a110_0x2179fe,_0x418580=_0x122784['num']('id'),_0x2807dd=await startDbTableDiffRefresh(_0x122784['appCode'],_0x418580),_0x3a0757=_0x2807dd['traceId']?.[_0x28c364(0x18c)]();if(!_0x3a0757)throw CliErrors[_0x28c364(0x188)]('Table-diff\x20refresh\x20started\x20without\x20a\x20traceId;\x20the\x20request\x20outcome\x20is\x20unknown.\x20Do\x20not\x20submit\x20another\x20refresh\x20automatically.');return{'ok':!![],'data':{'dbLinkId':_0x418580,'traceId':_0x3a0757,'status':_0x2807dd[_0x28c364(0x190)]??null,'query':{'command':CLI_BIN_NAME+_0x28c364(0x196)+_0x418580+'\x20--plan\x20'+_0x3a0757+_0x28c364(0x18b)}},'message':_0x28c364(0x18d)+_0x418580};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a111_0x4bd2cf=a111_0x2bc3;(function(_0x50fd8b,_0x373178){const _0x55bb70=a111_0x2bc3,_0x18830d=_0x50fd8b();while(!![]){try{const _0x185949=parseInt(_0x55bb70(0x17d))/0x1*(-parseInt(_0x55bb70(0x18c))/0x2)+-parseInt(_0x55bb70(0x175))/0x3+parseInt(_0x55bb70(0x17b))/0x4+parseInt(_0x55bb70(0x173))/0x5+parseInt(_0x55bb70(0x181))/0x6*(parseInt(_0x55bb70(0x188))/0x7)+-parseInt(_0x55bb70(0x17a))/0x8*(parseInt(_0x55bb70(0x174))/0x9)+parseInt(_0x55bb70(0x17c))/0xa;if(_0x185949===_0x373178)break;else _0x18830d['push'](_0x18830d['shift']());}catch(_0x243fe5){_0x18830d['push'](_0x18830d['shift']());}}}(a111_0x40aa,0xd869f));import{getDbAnalysisStatus}from'../../core/api-client.js';function a111_0x2bc3(_0x2938bc,_0x5bc1c2){_0x2938bc=_0x2938bc-0x172;const _0x40aacb=a111_0x40aa();let _0x2bc338=_0x40aacb[_0x2938bc];return _0x2bc338;}import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a111_0x40aa(){const _0x587f7c=['1815870mFlfLR','Fetch\x20table-diff\x20refresh\x20status\x20by\x20plan\x20/\x20trace\x20id','str','CANCELLED','PENDING','8pcPWUN','7051100vFSVDj','1510970CRJYwq','1063OKEcFG','has','\x20db\x20diff-refresh-status\x20--id\x20','UNKNOWN','441366cdiefa','FAILED','RUNNING','status','read','num','string','133RErjDV','plan','SUCCESS','RETRYING','1814NRrpKo','\x20--plan\x20','2805730QWvwcq','12751335oUeqRK'];a111_0x40aa=function(){return _0x587f7c;};return a111_0x40aa();}import{CLI_BIN_NAME}from'../../constant/cli.js';const TERMINAL_STATUSES=new Set(['SUCCESS',a111_0x4bd2cf(0x182),a111_0x4bd2cf(0x178)]),RUNNING_STATUSES=new Set([a111_0x4bd2cf(0x179),a111_0x4bd2cf(0x183),a111_0x4bd2cf(0x18b)]);export const dbDiffRefreshStatus={'service':'db','command':'diff-refresh-status','description':a111_0x4bd2cf(0x176),'risk':a111_0x4bd2cf(0x185),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a111_0x4bd2cf(0x189),'type':a111_0x4bd2cf(0x187),'required':!![],'description':'Table-diff\x20refresh\x20trace\x20id\x20from\x20diff-refresh-start'}],async 'execute'(_0x529e5f){const _0x4b52c2=a111_0x4bd2cf,_0x5ce31b=_0x529e5f[_0x4b52c2(0x186)]('id'),_0x53f182=_0x529e5f[_0x4b52c2(0x177)](_0x4b52c2(0x189)),_0x3d9923=await getDbAnalysisStatus(_0x53f182),_0x3bc386=_0x3d9923[_0x4b52c2(0x184)]??null,_0x14c381=TERMINAL_STATUSES[_0x4b52c2(0x17e)](_0x3bc386??''),_0x51d5c2=_0x3bc386===_0x4b52c2(0x18a),_0x4e6977=_0x14c381||RUNNING_STATUSES[_0x4b52c2(0x17e)](_0x3bc386??'');return{'ok':!![],'data':{'dbLinkId':_0x5ce31b,'planId':_0x53f182,'status':_0x3d9923,'knownStatus':_0x4e6977,'isTerminal':_0x14c381,'isSuccessful':_0x51d5c2,'query':_0x4e6977&&!_0x14c381?{'command':CLI_BIN_NAME+_0x4b52c2(0x17f)+_0x5ce31b+_0x4b52c2(0x172)+_0x53f182+'\x20--format\x20compress'}:null},'message':'Table-diff\x20refresh\x20status\x20for\x20'+_0x53f182+':\x20'+(_0x3bc386??_0x4b52c2(0x180))};}};
|
package/lib/commands/db/diff.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a112_0x4af37b=a112_0x1181;(function(_0xd568e0,_0x39d755){const _0xf799b9=a112_0x1181,_0x3168b6=_0xd568e0();while(!![]){try{const _0x5bcd9b=parseInt(_0xf799b9(0x141))/0x1+parseInt(_0xf799b9(0x13e))/0x2+-parseInt(_0xf799b9(0x122))/0x3*(parseInt(_0xf799b9(0x147))/0x4)+parseInt(_0xf799b9(0x13a))/0x5*(-parseInt(_0xf799b9(0x138))/0x6)+parseInt(_0xf799b9(0x121))/0x7*(parseInt(_0xf799b9(0x13b))/0x8)+parseInt(_0xf799b9(0x132))/0x9*(parseInt(_0xf799b9(0x12c))/0xa)+-parseInt(_0xf799b9(0x13c))/0xb*(parseInt(_0xf799b9(0x134))/0xc);if(_0x5bcd9b===_0x39d755)break;else _0x3168b6['push'](_0x3168b6['shift']());}catch(_0x488f08){_0x3168b6['push'](_0x3168b6['shift']());}}}(a112_0x2a10,0x8ffa3));function a112_0x1181(_0x502e4c,_0xd8b1f5){_0x502e4c=_0x502e4c-0x11c;const _0x2a1090=a112_0x2a10();let _0x118155=_0x2a1090[_0x502e4c];return _0x118155;}function a112_0x2a10(){const _0x2d98a7=['page','table','DELETED_TABLE','totalCount','Page\x20size','number','\x20(db\x20link\x20','string','4310QIqGvN','map','deletedColumns','all','filter','length','15192pwXabl','tableName','23880CBGgYh','physicalTableCount','Page\x20index\x20(1-based)','str','59502YhMgnX','pagesize','410cAxuie','1640624bZrxzz','1870NwpDTg','read','2032080GnddWv','appCode','tableList','342751eSlrhw','addedColumns','num','NEW_TABLE','datasetTableCount','diffType','1604SroThJ','diff','fieldDiff','boolean','\x20changed\x20table\x20row(s),\x20total\x20','MODIFIED_TABLE','7dOJLTW','4116TGOPoG','bool'];a112_0x2a10=function(){return _0x2d98a7;};return a112_0x2a10();}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_0x4af37b(0x11c),'description':'Compare\x20datasets\x20with\x20physical\x20database\x20tables\x20and\x20show\x20schema\x20drift','risk':a112_0x4af37b(0x13d),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a112_0x4af37b(0x125),'type':a112_0x4af37b(0x12b),'description':'Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)'},{'name':'page','type':a112_0x4af37b(0x129),'description':a112_0x4af37b(0x136),'default':0x1},{'name':a112_0x4af37b(0x139),'type':a112_0x4af37b(0x129),'description':a112_0x4af37b(0x128),'default':0x14},{'name':a112_0x4af37b(0x12f),'type':a112_0x4af37b(0x11e),'description':'Fetch\x20and\x20aggregate\x20every\x20page\x20(overrides\x20--page\x20and\x20--pagesize)'}],async 'execute'(_0x53af56){const _0x498132=a112_0x4af37b,_0x1dc0dc=_0x53af56[_0x498132(0x143)]('id'),_0x3bee22=_0x53af56[_0x498132(0x123)](_0x498132(0x12f)),_0x53e2b1=_0x3bee22?0x1:_0x53af56['num'](_0x498132(0x124),0x1)||0x1,_0x4eec47=_0x3bee22?DB_TABLE_PAGE_SIZE:_0x53af56[_0x498132(0x143)]('pagesize',0x14)||0x14,_0x2fd7d2=_0x53af56[_0x498132(0x137)](_0x498132(0x125))||undefined,_0x2902d1=_0x3bee22?await getAllDbTableDiff(getDbTableDiff,_0x53af56['appCode'],_0x1dc0dc,_0x2fd7d2):await getDbTableDiff(_0x53af56[_0x498132(0x13f)],_0x1dc0dc,{'pageIndex':_0x53e2b1,'pageSize':_0x4eec47,'tableName':_0x2fd7d2}),_0x171343=_0x2902d1[_0x498132(0x140)],_0x539091=summarizeDbTableDiff(_0x171343),_0x27d3b5=_0x171343[_0x498132(0x130)](_0x25b981=>_0x25b981['diffType']===_0x498132(0x144)||_0x25b981[_0x498132(0x146)]===_0x498132(0x120))['map'](_0x22d190=>_0x22d190[_0x498132(0x133)]),_0x1a6d9a=_0x171343['filter'](_0x3b4434=>_0x3b4434[_0x498132(0x146)]===_0x498132(0x126))[_0x498132(0x12d)](_0x41e942=>_0x41e942[_0x498132(0x133)]),_0x45c523=_0x171343[_0x498132(0x130)](_0x5c8b10=>_0x5c8b10[_0x498132(0x146)]===_0x498132(0x120))[_0x498132(0x12d)](_0x18ab2b=>({'tableName':_0x18ab2b[_0x498132(0x133)],'addedColumns':_0x18ab2b[_0x498132(0x11d)]?.[_0x498132(0x142)]??[],'deletedColumns':_0x18ab2b['fieldDiff']?.[_0x498132(0x12e)]??[],'modifiedColumns':_0x18ab2b['fieldDiff']?.['modifiedColumns']??[]}));return{'ok':!![],'data':{'dbLinkId':_0x1dc0dc,'page':_0x53e2b1,'pageSize':_0x4eec47,'totalCount':_0x2902d1[_0x498132(0x127)],...typeof _0x2902d1[_0x498132(0x135)]==='number'?{'physicalTableCount':_0x2902d1[_0x498132(0x135)]}:{},...typeof _0x2902d1[_0x498132(0x145)]===_0x498132(0x129)?{'datasetTableCount':_0x2902d1['datasetTableCount']}:{},..._0x2902d1['summary']?{'summary':_0x2902d1['summary']}:{},'summaryByType':_0x539091,'toAnalyzeTables':_0x27d3b5,'deletedTables':_0x1a6d9a,'modifiedFieldDiffs':_0x45c523,'tables':_0x171343},'message':_0x171343[_0x498132(0x131)]+_0x498132(0x11f)+_0x2902d1[_0x498132(0x127)]+_0x498132(0x12a)+_0x1dc0dc+')'};}};
|
package/lib/commands/db/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x111626,_0xf1b3d9){const _0x13928e=a113_0x268e,_0x5e4960=_0x111626();while(!![]){try{const _0x50aaf2=parseInt(_0x13928e(0x75))/0x1+-parseInt(_0x13928e(0x77))/0x2+parseInt(_0x13928e(0x7c))/0x3*(parseInt(_0x13928e(0x76))/0x4)+parseInt(_0x13928e(0x79))/0x5*(-parseInt(_0x13928e(0x7e))/0x6)+parseInt(_0x13928e(0x7d))/0x7*(-parseInt(_0x13928e(0x7a))/0x8)+parseInt(_0x13928e(0x7b))/0x9*(parseInt(_0x13928e(0x78))/0xa)+parseInt(_0x13928e(0x7f))/0xb;if(_0x50aaf2===_0xf1b3d9)break;else _0x5e4960['push'](_0x5e4960['shift']());}catch(_0x996ab1){_0x5e4960['push'](_0x5e4960['shift']());}}}(a113_0x8bcc,0xda1d0));import{dbList}from'../../commands/db/list.js';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';function a113_0x8bcc(){const _0x1190e7=['4naOkex','2552194SlrpOI','6510170CXECFq','240365cReBje','592BQpazc','9eoWzoC','4886829aHPrko','127967nIdnEO','36KpZqTD','10696543rlAsVl','558348iJCzXV'];a113_0x8bcc=function(){return _0x1190e7;};return a113_0x8bcc();}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_0x268e(_0x4fa987,_0x4fda8f){_0x4fa987=_0x4fa987-0x75;const _0x8bccc0=a113_0x8bcc();let _0x268e12=_0x8bccc0[_0x4fa987];return _0x268e12;}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_0x12591c=a114_0x3d14;(function(_0x441a7c,_0x3ea471){const _0x53e377=a114_0x3d14,_0x90596e=_0x441a7c();while(!![]){try{const _0x356bf8=parseInt(_0x53e377(0xad))/0x1*(-parseInt(_0x53e377(0xac))/0x2)+-parseInt(_0x53e377(0x9e))/0x3+-parseInt(_0x53e377(0xaa))/0x4+-parseInt(_0x53e377(0xa1))/0x5*(parseInt(_0x53e377(0xa4))/0x6)+parseInt(_0x53e377(0x9d))/0x7*(-parseInt(_0x53e377(0x9b))/0x8)+parseInt(_0x53e377(0xb2))/0x9*(parseInt(_0x53e377(0xa9))/0xa)+parseInt(_0x53e377(0xa7))/0xb;if(_0x356bf8===_0x3ea471)break;else _0x90596e['push'](_0x90596e['shift']());}catch(_0x17a2e8){_0x90596e['push'](_0x90596e['shift']());}}}(a114_0x1acd,0x4a4ee));import{listDatasets,listDbLinks}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a114_0x3d14(_0x1a826d,_0x5e4bda){_0x1a826d=_0x1a826d-0x9a;const _0x1acd54=a114_0x1acd();let _0x3d14b7=_0x1acd54[_0x1a826d];return _0x3d14b7;}import{buildDbDatasetDependency,sanitizeDbLinkForOutput}from'../../commands/db/shared.js';export const dbList={'service':'db','command':a114_0x12591c(0xab),'description':'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','risk':a114_0x12591c(0xb0),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a114_0x12591c(0xb1),'type':a114_0x12591c(0xa0),'description':a114_0x12591c(0xa3),'default':0x1},{'name':a114_0x12591c(0xa8),'type':a114_0x12591c(0xa0),'description':a114_0x12591c(0xa5),'default':0x64}],async 'execute'(_0x4cdad4){const _0x52b50c=a114_0x12591c,_0x299434=_0x4cdad4[_0x52b50c(0xa2)]('page',0x1)||0x1,_0x3230e8=_0x4cdad4[_0x52b50c(0xa2)](_0x52b50c(0xa8),0x64)||0x64,[{items:_0x3e63df,paging:_0x2632dc},_0xae74f6]=await Promise['all']([listDbLinks(_0x4cdad4[_0x52b50c(0x9f)],{'currentPage':_0x299434,'pageSize':_0x3230e8}),listDatasets(_0x4cdad4[_0x52b50c(0x9f)],{'source':'DB_TABLE'})]),_0x4ee1c0=_0x3e63df[_0x52b50c(0xaf)](_0x10c37f=>({...sanitizeDbLinkForOutput(_0x10c37f),'datasetDependency':buildDbDatasetDependency(_0x10c37f,_0xae74f6)['datasetDependency']})),_0x592cdc=_0x2632dc?_0x2632dc:{'currentPage':_0x299434,'pageSize':_0x3230e8,'rowsOnPage':_0x4ee1c0[_0x52b50c(0x9c)],'totalCount':null,'note':_0x52b50c(0x9a)};return{'ok':!![],'data':{'connections':_0x4ee1c0,'paging':_0x592cdc},'message':_0x52b50c(0xae)+_0x4ee1c0[_0x52b50c(0x9c)]+_0x52b50c(0xa6)};}};function a114_0x1acd(){const _0x49829a=['1202511eTtVXe','appCode','number','80915IxWEep','num','Page\x20index\x20(1-based)','48oLHOPI','Page\x20size','\x20database\x20connection(s)','12354144uRzXaj','pagesize','70sekieC','1271972UANLBw','list','78bMeTsQ','7865xuKDkl','Found\x20','map','read','page','620802WhyoNY','Server\x20omitted\x20paging\x20metadata;\x20totalCount\x20is\x20unknown\x20—\x20rowsOnPage\x20is\x20this\x20page\x20only','40usagfc','length','205177xbDCWf'];a114_0x1acd=function(){return _0x49829a;};return a114_0x1acd();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xa0d3ad,_0x1eab78){const _0x2bd809=a115_0x4931,_0x347595=_0xa0d3ad();while(!![]){try{const _0x272907=-parseInt(_0x2bd809(0x121))/0x1+parseInt(_0x2bd809(0x122))/0x2*(parseInt(_0x2bd809(0x106))/0x3)+-parseInt(_0x2bd809(0x107))/0x4+parseInt(_0x2bd809(0x10a))/0x5*(parseInt(_0x2bd809(0x10c))/0x6)+parseInt(_0x2bd809(0x10e))/0x7+-parseInt(_0x2bd809(0x108))/0x8+-parseInt(_0x2bd809(0x11c))/0x9*(-parseInt(_0x2bd809(0x11b))/0xa);if(_0x272907===_0x1eab78)break;else _0x347595['push'](_0x347595['shift']());}catch(_0x11f27c){_0x347595['push'](_0x347595['shift']());}}}(a115_0xc6b4,0x3d3de));import{testDbLinkConfigConnect}from'../../core/api-client.js';import{getAppBaseUrl}from'../../constant/domain.js';import{CliErrors}from'../../errors.js';function shouldRedactKey(_0x4eea66){const _0x24efaa=a115_0x4931,_0x4a7a97=_0x4eea66[_0x24efaa(0x110)]();if(_0x4a7a97==='password'||_0x4a7a97==='passwd'||_0x4a7a97===_0x24efaa(0x105))return!![];if(_0x4a7a97[_0x24efaa(0x112)]('secret')||_0x4a7a97[_0x24efaa(0x112)](_0x24efaa(0x109))||_0x4a7a97['includes'](_0x24efaa(0x111)))return!![];if(_0x4a7a97[_0x24efaa(0x112)](_0x24efaa(0x126))||_0x4a7a97[_0x24efaa(0x112)](_0x24efaa(0x10b)))return!![];if(_0x4a7a97===_0x24efaa(0x11d)||_0x4a7a97===_0x24efaa(0x118)||_0x4a7a97==='jdbcurl')return!![];return![];}function a115_0x4931(_0x39d0de,_0x108c23){_0x39d0de=_0x39d0de-0x105;const _0xc6b4f0=a115_0xc6b4();let _0x493168=_0xc6b4f0[_0x39d0de];return _0x493168;}export function sanitizeDbLinkForOutput(_0x25b16a){const _0x1c5813=a115_0x4931,_0x4359ee={..._0x25b16a};delete _0x4359ee['hasAvailableDo'];for(const _0x29b112 of Object[_0x1c5813(0x116)](_0x4359ee)){if(!shouldRedactKey(_0x29b112))continue;const _0x41fda0=_0x4359ee[_0x29b112];_0x41fda0!=null&&String(_0x41fda0)[_0x1c5813(0x119)]>0x0&&(_0x4359ee[_0x29b112]='[redacted]');}return _0x4359ee;}export function sanitizeDbLinkList(_0x2ab647){const _0x3d5da1=a115_0x4931;return _0x2ab647[_0x3d5da1(0x124)](_0x4bff7f=>sanitizeDbLinkForOutput(_0x4bff7f));}export function buildDbDatasetDependency(_0x10691f,_0x4924d8){const _0x528bab=a115_0x4931,_0x24fcf1=_0x4924d8['filter'](_0x45c067=>Number(_0x45c067[_0x528bab(0x11f)]?.[_0x528bab(0x115)])===Number(_0x10691f['id']))['map'](_0x3bcc9b=>({'id':_0x3bcc9b['id'],'code':_0x3bcc9b[_0x528bab(0x11e)],'name':_0x3bcc9b[_0x528bab(0x10f)],..._0x3bcc9b[_0x528bab(0x11f)]?.[_0x528bab(0x10d)]?{'tableName':_0x3bcc9b['dbtableConfig'][_0x528bab(0x10d)]}:{}}));return{'datasetDependency':{'hasDependencies':_0x24fcf1[_0x528bab(0x119)]>0x0,'activeDatasetCount':_0x24fcf1[_0x528bab(0x119)]},'datasets':_0x24fcf1};}export async function assertDbLinkConnectionPreflight(_0x4bf1d9){const _0x11658a=a115_0x4931,_0x23cab9=await testDbLinkConfigConnect(_0x4bf1d9);if(_0x23cab9!==!![])throw CliErrors[_0x11658a(0x11a)](_0x11658a(0x117),_0x11658a(0x123));}function a115_0xc6b4(){const _0x117cfd=['951696zNbaLa','token','1445MhUsNh','accesskey','8166SneKcR','tableName','2781723XKBLpt','name','toLowerCase','credential','includes','number','trim','dbId','keys','Database\x20connection\x20preflight\x20failed.','connectionstring','length','apiError','3850nAAMtc','7947LEZiVF','authorization','code','dbtableConfig','/data/database','434061YbLhVx','144EQWNFL','The\x20configuration\x20was\x20not\x20saved.\x20Verify\x20the\x20host,\x20credentials,\x20database\x20name,\x20network,\x20and\x20allowlist,\x20or\x20explicitly\x20pass\x20--skip-connection-test.','map','test','privatekey','dbpassword','3426coSbsg','1636112qCmOdZ'];a115_0xc6b4=function(){return _0x117cfd;};return a115_0xc6b4();}const DB_URL_PATTERN=/^[^\s:]+(?::\d+)?$/;export function validateDbUrl(_0x2c3485){const _0x28cb66=a115_0x4931,_0x99e39f=_0x2c3485['trim']();if(!_0x99e39f)return![];return DB_URL_PATTERN[_0x28cb66(0x125)](_0x99e39f);}export function buildDbPageLinks(_0x1a17e4,_0x493909){const _0x110b89=a115_0x4931,_0x7f021c=_0x1a17e4?.[_0x110b89(0x114)]();if(!_0x7f021c)return undefined;const _0x27f73d=typeof _0x493909===_0x110b89(0x113)?String(_0x493909):String(_0x493909??'')[_0x110b89(0x114)]();if(!_0x27f73d)return undefined;const _0xbc6bff=Number(_0x27f73d);if(!Number['isFinite'](_0xbc6bff)||_0xbc6bff<=0x0)return undefined;const _0x25f040=getAppBaseUrl(_0x7f021c),_0x40fef5=encodeURIComponent(String(_0xbc6bff));return{'databasePage':_0x25f040+_0x110b89(0x120),'erPage':_0x25f040+'/data/er?dbId='+_0x40fef5};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a116_0x37ac19=a116_0x4084;function a116_0x4084(_0x538e34,_0x14954c){_0x538e34=_0x538e34-0x111;const _0x18cc6b=a116_0x18cc();let _0x408434=_0x18cc6b[_0x538e34];return _0x408434;}(function(_0x4692a1,_0x5a7155){const _0x541880=a116_0x4084,_0x14d862=_0x4692a1();while(!![]){try{const _0x16392e=parseInt(_0x541880(0x12c))/0x1*(-parseInt(_0x541880(0x12b))/0x2)+-parseInt(_0x541880(0x129))/0x3+parseInt(_0x541880(0x114))/0x4+parseInt(_0x541880(0x11a))/0x5+-parseInt(_0x541880(0x120))/0x6*(-parseInt(_0x541880(0x12f))/0x7)+parseInt(_0x541880(0x121))/0x8*(-parseInt(_0x541880(0x116))/0x9)+parseInt(_0x541880(0x127))/0xa;if(_0x16392e===_0x5a7155)break;else _0x14d862['push'](_0x14d862['shift']());}catch(_0x5284ed){_0x14d862['push'](_0x14d862['shift']());}}}(a116_0x18cc,0x99c85));import{CliErrors}from'../../errors.js';export const DB_TABLE_PAGE_SIZE=0x64;export const DB_TABLE_DIFF_TYPES=[a116_0x37ac19(0x12a),a116_0x37ac19(0x115),a116_0x37ac19(0x12d),a116_0x37ac19(0x11b)];function a116_0x18cc(){const _0x18e657=['filter','length','4706305icqoQx','ALREADY_ANALYZED','values','size','set','diffType','36DrABJt','8iTbAgF','validation','tableList','map','Incomplete\x20db\x20table\x20pagination:\x20collected\x20','\x20row(s).','1957360MzZuYM','number','2383887TOCjad','NEW_TABLE','1606bZGkLV','1111IKfdxM','DELETED_TABLE','\x20of\x20','150346wZBBMF','summary','totalCount','tableName','physicalTableCount','5038844MqqbJD','MODIFIED_TABLE','1880289HvhptJ','datasetTableCount'];a116_0x18cc=function(){return _0x18e657;};return a116_0x18cc();}export function summarizeDbTableDiff(_0x25c72b){const _0x1cadda=a116_0x37ac19;return Object['fromEntries'](DB_TABLE_DIFF_TYPES[_0x1cadda(0x124)](_0x57f9b9=>[_0x57f9b9,_0x25c72b[_0x1cadda(0x118)](_0x367a3b=>_0x367a3b[_0x1cadda(0x11f)]===_0x57f9b9)[_0x1cadda(0x119)]]));}export async function getAllDbTableDiff(_0x38311b,_0x49ce8c,_0x18b75e,_0x483f05){const _0x17a642=a116_0x37ac19,_0x5d12c4=new Map();let _0x19b864=0x1,_0x5d53a4=null;while(!![]){_0x5d53a4=await _0x38311b(_0x49ce8c,_0x18b75e,{'pageIndex':_0x19b864,'pageSize':DB_TABLE_PAGE_SIZE,'tableName':_0x483f05});const _0x58895f=_0x5d12c4[_0x17a642(0x11d)];for(const _0x22c4c6 of _0x5d53a4[_0x17a642(0x123)]){_0x5d12c4[_0x17a642(0x11e)](_0x22c4c6[_0x17a642(0x112)],_0x22c4c6);}if(_0x5d12c4[_0x17a642(0x11d)]>=_0x5d53a4[_0x17a642(0x111)])break;if(_0x5d53a4[_0x17a642(0x123)]['length']===0x0||_0x5d12c4[_0x17a642(0x11d)]===_0x58895f)throw CliErrors[_0x17a642(0x122)](_0x17a642(0x125)+_0x5d12c4[_0x17a642(0x11d)]+_0x17a642(0x12e)+_0x5d53a4[_0x17a642(0x111)]+_0x17a642(0x126));_0x19b864+=0x1;}return{'totalCount':_0x5d53a4?.[_0x17a642(0x111)]??0x0,...typeof _0x5d53a4?.[_0x17a642(0x113)]===_0x17a642(0x128)?{'physicalTableCount':_0x5d53a4[_0x17a642(0x113)]}:{},...typeof _0x5d53a4?.[_0x17a642(0x117)]==='number'?{'datasetTableCount':_0x5d53a4['datasetTableCount']}:{},..._0x5d53a4?.[_0x17a642(0x130)]?{'summary':_0x5d53a4[_0x17a642(0x130)]}:{},'tableList':[..._0x5d12c4[_0x17a642(0x11c)]()]};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a117_0x1ddc(_0x509f24,_0x134cae){_0x509f24=_0x509f24-0x14a;const _0x5e1cd4=a117_0x5e1c();let _0x1ddc10=_0x5e1cd4[_0x509f24];return _0x1ddc10;}function a117_0x5e1c(){const _0xb13bf3=['4029600VIvCBo','1266470OhmjQP','Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)','totalCount','length','202744mSXLRT','physicalTableCount','2kQhJoU','193420ePNHiC','num','21joaLSx','90kQcEgd','appCode','tableList','List\x20all\x20database\x20table\x20comparison\x20rows\x20and\x20analysis\x20states','number','97845SpTTFA','1546856DuGHoS','datasetTableCount','table','string','7173859BHbpjK','54svJWRE','\x20table\x20comparison\x20row(s),\x20total\x20','summary','99KjnHpc'];a117_0x5e1c=function(){return _0xb13bf3;};return a117_0x5e1c();}const a117_0x3f23b7=a117_0x1ddc;(function(_0x4b4cb3,_0x520fe4){const _0x296f3c=a117_0x1ddc,_0x3f22d5=_0x4b4cb3();while(!![]){try{const _0x3e1f9c=-parseInt(_0x296f3c(0x156))/0x1*(parseInt(_0x296f3c(0x14c))/0x2)+-parseInt(_0x296f3c(0x14f))/0x3*(-parseInt(_0x296f3c(0x14d))/0x4)+parseInt(_0x296f3c(0x155))/0x5*(-parseInt(_0x296f3c(0x15b))/0x6)+parseInt(_0x296f3c(0x15a))/0x7+parseInt(_0x296f3c(0x14a))/0x8*(-parseInt(_0x296f3c(0x150))/0x9)+-parseInt(_0x296f3c(0x160))/0xa*(-parseInt(_0x296f3c(0x15e))/0xb)+parseInt(_0x296f3c(0x15f))/0xc;if(_0x3e1f9c===_0x520fe4)break;else _0x3f22d5['push'](_0x3f22d5['shift']());}catch(_0x395853){_0x3f22d5['push'](_0x3f22d5['shift']());}}}(a117_0x5e1c,0xd294a));import{getDbTableComparisonPage}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{getAllDbTableDiff,summarizeDbTableDiff}from'../../commands/db/table-diff-shared.js';export const dbTables={'service':'db','command':'tables','description':a117_0x3f23b7(0x153),'risk':'read','flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a117_0x3f23b7(0x158),'type':a117_0x3f23b7(0x159),'description':a117_0x3f23b7(0x161)}],async 'execute'(_0x571528){const _0x25be76=a117_0x3f23b7,_0x25effe=_0x571528[_0x25be76(0x14e)]('id'),_0x4c5242=_0x571528['str']('table')||undefined,_0x407320=await getAllDbTableDiff(getDbTableComparisonPage,_0x571528[_0x25be76(0x151)],_0x25effe,_0x4c5242),_0x4ca305=_0x407320[_0x25be76(0x152)];return{'ok':!![],'data':{'dbLinkId':_0x25effe,'totalCount':_0x407320[_0x25be76(0x162)],...typeof _0x407320['physicalTableCount']===_0x25be76(0x154)?{'physicalTableCount':_0x407320[_0x25be76(0x14b)]}:{},...typeof _0x407320[_0x25be76(0x157)]===_0x25be76(0x154)?{'datasetTableCount':_0x407320[_0x25be76(0x157)]}:{},..._0x407320[_0x25be76(0x15d)]?{'summary':_0x407320[_0x25be76(0x15d)]}:{},'summaryByType':summarizeDbTableDiff(_0x4ca305),'tables':_0x4ca305},'message':_0x4ca305[_0x25be76(0x163)]+_0x25be76(0x15c)+_0x407320['totalCount']+'\x20(db\x20link\x20'+_0x25effe+')'};}};
|
package/lib/commands/db/test.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a118_0x22e2(_0x35a68d,_0x3eda13){_0x35a68d=_0x35a68d-0x79;const _0xbc0fe8=a118_0xbc0f();let _0x22e2aa=_0xbc0fe8[_0x35a68d];return _0x22e2aa;}function a118_0xbc0f(){const _0xd96d2d=['1459532MoFlAc','12712EyoeLI','msg','21362HjxUxU','keys','14810MMvLIT','success','168133kOByAC','27VwrUwK','2310BEjUgk','object','\x20(see\x20data.result)','12162WEpvmI','length','Connection\x20OK\x20for\x20db\x20link\x20','1668878IGhbrx','861495qEHvhW','error','code','num','1myXcAB'];a118_0xbc0f=function(){return _0xd96d2d;};return a118_0xbc0f();}(function(_0x3d295a,_0x5276bf){const _0x4e66c9=a118_0x22e2,_0x2c9daf=_0x3d295a();while(!![]){try{const _0x4d1c5c=parseInt(_0x4e66c9(0x79))/0x1*(-parseInt(_0x4e66c9(0x89))/0x2)+-parseInt(_0x4e66c9(0x8a))/0x3+-parseInt(_0x4e66c9(0x7a))/0x4+parseInt(_0x4e66c9(0x83))/0x5*(-parseInt(_0x4e66c9(0x86))/0x6)+parseInt(_0x4e66c9(0x81))/0x7+parseInt(_0x4e66c9(0x7b))/0x8*(-parseInt(_0x4e66c9(0x82))/0x9)+-parseInt(_0x4e66c9(0x7f))/0xa*(-parseInt(_0x4e66c9(0x7d))/0xb);if(_0x4d1c5c===_0x5276bf)break;else _0x2c9daf['push'](_0x2c9daf['shift']());}catch(_0x2ca5ef){_0x2c9daf['push'](_0x2c9daf['shift']());}}}(a118_0xbc0f,0x73549));import{testDbLinkConnect}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function summarizeTestConnectResult(_0x5b0905){const _0xd4a771=a118_0x22e2;if(_0x5b0905===!![]||_0x5b0905===![])return{'success':_0x5b0905};if(_0x5b0905===null||_0x5b0905===undefined)return{'type':typeof _0x5b0905};if(typeof _0x5b0905!==_0xd4a771(0x84))return{'type':typeof _0x5b0905};const _0x29f112=_0x5b0905,_0x5d1584=[_0xd4a771(0x80),'message',_0xd4a771(0x8c),_0xd4a771(0x8b),_0xd4a771(0x7c),'data'],_0x46ad6c={};for(const _0x193759 of _0x5d1584){if(_0x193759 in _0x29f112)_0x46ad6c[_0x193759]=_0x29f112[_0x193759];}return Object[_0xd4a771(0x7e)](_0x46ad6c)[_0xd4a771(0x87)]===0x0&&(_0x46ad6c[_0xd4a771(0x7e)]=Object['keys'](_0x29f112)['slice'](0x0,0x14)),_0x46ad6c;}export const dbTest={'service':'db','command':'test','description':'Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)','risk':'read','requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0xe144d){const _0x55a6bf=a118_0x22e2,_0x2aae9f=_0xe144d[_0x55a6bf(0x8d)]('id'),_0x18d0b6=await testDbLinkConnect(_0x2aae9f),_0x1ab6b9=_0x18d0b6===!![]||typeof _0x18d0b6===_0x55a6bf(0x84)&&_0x18d0b6!==null&&_0x18d0b6[_0x55a6bf(0x80)]===!![],_0x5417f4=summarizeTestConnectResult(_0x18d0b6);return{'ok':!![],'data':{'id':_0x2aae9f,'connected':Boolean(_0x1ab6b9),'result':_0x5417f4},'message':_0x1ab6b9?_0x55a6bf(0x88)+_0x2aae9f:'Connection\x20check\x20finished\x20for\x20db\x20link\x20'+_0x2aae9f+_0x55a6bf(0x85)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a119_0x844af9=a119_0x2c83;(function(_0x1db07b,_0x4e0899){const _0x43ad47=a119_0x2c83,_0x37f0c4=_0x1db07b();while(!![]){try{const _0x4c0937=parseInt(_0x43ad47(0x15a))/0x1+parseInt(_0x43ad47(0x151))/0x2*(-parseInt(_0x43ad47(0x14b))/0x3)+-parseInt(_0x43ad47(0x158))/0x4+parseInt(_0x43ad47(0x15e))/0x5*(-parseInt(_0x43ad47(0x157))/0x6)+parseInt(_0x43ad47(0x14f))/0x7*(-parseInt(_0x43ad47(0x155))/0x8)+-parseInt(_0x43ad47(0x154))/0x9+-parseInt(_0x43ad47(0x147))/0xa*(-parseInt(_0x43ad47(0x15d))/0xb);if(_0x4c0937===_0x4e0899)break;else _0x37f0c4['push'](_0x37f0c4['shift']());}catch(_0x290901){_0x37f0c4['push'](_0x37f0c4['shift']());}}}(a119_0x55e1,0x4c770));function a119_0x55e1(){const _0x185d7d=['266XJCspO','New\x20host:port','41482TVYeaW','bool','string','1837224bQVLrL','129992CCuIbq','--password\x20must\x20contain\x20the\x20real\x20database\x20password,\x20not\x20a\x20masked\x20value.','3558156luPjby','1066776JiJRIK','The\x20server\x20returned\x20a\x20masked\x20database\x20password.\x20Pass\x20the\x20current\x20or\x20replacement\x20password\x20explicitly\x20with\x20--password\x20to\x20update\x20this\x20connection\x20safely.','601769ZRPqky','Current\x20or\x20replacement\x20password.\x20Required\x20when\x20the\x20stored\x20password\x20is\x20masked','dbname','6399602LccKNf','5ibiNjF','dbparam','num','dburl','username','New\x20connection\x20parameter\x20string','skip-connection-test','dbdesc','trim','validation','password','New\x20description','update','has','Update\x20a\x20database\x20connection\x20by\x20merging\x20supplied\x20fields\x20into\x20the\x20current\x20server\x20record.\x20A\x20masked\x20server\x20password\x20requires\x20explicit\x20--password','dbParam','30KbKtlh','str','Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22','POST','51VInhrE','Preview\x20the\x20merged\x20database\x20connection\x20update;\x20password\x20redacted','New\x20username','dbDesc'];a119_0x55e1=function(){return _0x185d7d;};return a119_0x55e1();}import{getDbLinkInfo,updateDbLink}from'../../core/api-client.js';function a119_0x2c83(_0xf635f8,_0x546876){_0xf635f8=_0xf635f8-0x144;const _0x55e176=a119_0x55e1();let _0x2c8366=_0x55e176[_0xf635f8];return _0x2c8366;}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(['******','[redacted]']);function mergeDbLinkUpdate(_0x3a8cb0,_0x14aee8){const _0x305212=a119_0x2c83,_0x29f4dd={..._0x3a8cb0},_0x5e5606=_0x14aee8['str'](_0x305212(0x168));if(_0x5e5606&&MASKED_PASSWORD_VALUES[_0x305212(0x144)](_0x5e5606))throw CliErrors['validation'](_0x305212(0x156));if(!_0x5e5606&&MASKED_PASSWORD_VALUES[_0x305212(0x144)](String(_0x3a8cb0['password']??'')))throw CliErrors[_0x305212(0x167)](_0x305212(0x159));const _0x30f22c=_0x14aee8[_0x305212(0x148)](_0x305212(0x15c));if(_0x30f22c)_0x29f4dd['dbName']=_0x30f22c;const _0x68e3c7=_0x14aee8['str'](_0x305212(0x161));if(_0x68e3c7)_0x29f4dd['dbUrl']=_0x68e3c7[_0x305212(0x166)]();const _0x36b669=_0x14aee8['str'](_0x305212(0x162));if(_0x36b669)_0x29f4dd[_0x305212(0x162)]=_0x36b669;if(_0x5e5606)_0x29f4dd[_0x305212(0x168)]=_0x5e5606;const _0x199b0d=_0x14aee8[_0x305212(0x148)](_0x305212(0x15f));if(_0x199b0d)_0x29f4dd[_0x305212(0x146)]=_0x199b0d;const _0x88e0a0=_0x14aee8[_0x305212(0x148)](_0x305212(0x165));if(_0x88e0a0)_0x29f4dd[_0x305212(0x14e)]=_0x88e0a0;return _0x29f4dd;}export const dbUpdate={'service':'db','command':a119_0x844af9(0x16a),'description':a119_0x844af9(0x145),'risk':'write','flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':'dbname','type':a119_0x844af9(0x153),'description':'New\x20database\x20name'},{'name':a119_0x844af9(0x161),'type':a119_0x844af9(0x153),'description':a119_0x844af9(0x150)},{'name':a119_0x844af9(0x162),'type':'string','description':a119_0x844af9(0x14d)},{'name':a119_0x844af9(0x168),'type':a119_0x844af9(0x153),'description':a119_0x844af9(0x15b)},{'name':a119_0x844af9(0x15f),'type':'string','description':a119_0x844af9(0x163)},{'name':a119_0x844af9(0x165),'type':a119_0x844af9(0x153),'description':a119_0x844af9(0x169)},SKIP_CONNECTION_TEST_FLAG],async 'validate'(_0xd38b13){const _0x315dcb=a119_0x844af9,_0x39fe7d=_0xd38b13[_0x315dcb(0x148)](_0x315dcb(0x161));if(_0x39fe7d&&!validateDbUrl(_0x39fe7d[_0x315dcb(0x166)]()))throw CliErrors[_0x315dcb(0x167)](_0x315dcb(0x149)+_0x39fe7d+'\x22');},async 'dryRun'(_0x2712ce){const _0x3839ba=a119_0x844af9,_0x36085e=_0x2712ce['num']('id'),_0x1d4390=await getDbLinkInfo(_0x36085e),_0x4438b6=mergeDbLinkUpdate(_0x1d4390,_0x2712ce),_0x53dfa3=sanitizeDbLinkForOutput(_0x4438b6);return{'method':_0x3839ba(0x14a),'url':'/smartapi/dblink/update','body':_0x53dfa3,'description':_0x3839ba(0x14c),'connectionPreflight':{'enabled':!_0x2712ce['bool'](_0x3839ba(0x164)),'executed':![]}};},async 'execute'(_0x19fe7e){const _0x353fe3=a119_0x844af9,_0x122be0=_0x19fe7e[_0x353fe3(0x160)]('id'),_0x4d2ce3=await getDbLinkInfo(_0x122be0),_0x24ede8=mergeDbLinkUpdate(_0x4d2ce3,_0x19fe7e);!_0x19fe7e[_0x353fe3(0x152)](_0x353fe3(0x164))&&await assertDbLinkConnectionPreflight(_0x24ede8);const {id:_0x442978,entity:_0x2857f7}=normalizeEntityWithIdResponse(await updateDbLink(_0x24ede8));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x2857f7),'message':'Updated\x20db\x20link\x20'+(_0x442978??_0x122be0)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2b6b75,_0x157cdd){const _0xb30d88=a120_0x1a91,_0x41a9ea=_0x2b6b75();while(!![]){try{const _0xf076ee=-parseInt(_0xb30d88(0x10e))/0x1*(parseInt(_0xb30d88(0x109))/0x2)+parseInt(_0xb30d88(0x10c))/0x3+-parseInt(_0xb30d88(0x10f))/0x4*(-parseInt(_0xb30d88(0x108))/0x5)+parseInt(_0xb30d88(0x106))/0x6*(parseInt(_0xb30d88(0x10b))/0x7)+-parseInt(_0xb30d88(0x107))/0x8*(-parseInt(_0xb30d88(0x10a))/0x9)+-parseInt(_0xb30d88(0x105))/0xa+-parseInt(_0xb30d88(0x10d))/0xb;if(_0xf076ee===_0x157cdd)break;else _0x41a9ea['push'](_0x41a9ea['shift']());}catch(_0x15bc15){_0x41a9ea['push'](_0x41a9ea['shift']());}}}(a120_0x424a,0x1e9a3));import{deploymentSyncAll}from'../../commands/deployment/sync-all.js';import{deploymentSyncStatus}from'../../commands/deployment/sync-status.js';function a120_0x1a91(_0x76d9af,_0xfa4cbb){_0x76d9af=_0x76d9af-0x105;const _0x424a53=a120_0x424a();let _0x1a91ec=_0x424a53[_0x76d9af];return _0x1a91ec;}import{deploymentSyncJobs}from'../../commands/deployment/sync-jobs.js';export const deploymentDefinitions=[deploymentSyncAll,deploymentSyncStatus,deploymentSyncJobs];function a120_0x424a(){const _0x1557ed=['208672yvkJum','10PsLrFi','4942LTbqHU','63RaUQfU','14ikQEtK','724392zjUpcM','2491082HhJuXz','1Xqvjow','245524rxJksB','2159540RHNyTV','70260IQIhVg'];a120_0x424a=function(){return _0x1557ed;};return a120_0x424a();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a121_0x3b4a64=a121_0xced4;(function(_0x1193e8,_0x4c39d7){const _0x4019c8=a121_0xced4,_0x3cf0ee=_0x1193e8();while(!![]){try{const _0x2b4079=parseInt(_0x4019c8(0x18d))/0x1+parseInt(_0x4019c8(0x1ac))/0x2*(-parseInt(_0x4019c8(0x19f))/0x3)+-parseInt(_0x4019c8(0x19b))/0x4*(-parseInt(_0x4019c8(0x1b2))/0x5)+-parseInt(_0x4019c8(0x1a2))/0x6*(parseInt(_0x4019c8(0x1a8))/0x7)+parseInt(_0x4019c8(0x1a1))/0x8*(parseInt(_0x4019c8(0x18c))/0x9)+-parseInt(_0x4019c8(0x1a6))/0xa*(parseInt(_0x4019c8(0x19d))/0xb)+-parseInt(_0x4019c8(0x1a9))/0xc*(-parseInt(_0x4019c8(0x1ab))/0xd);if(_0x2b4079===_0x4c39d7)break;else _0x3cf0ee['push'](_0x3cf0ee['shift']());}catch(_0x40bc0d){_0x3cf0ee['push'](_0x3cf0ee['shift']());}}}(a121_0x4cca,0xdb5af));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a121_0xced4(_0x51ece8,_0xe5ea27){_0x51ece8=_0x51ece8-0x18c;const _0x4cca67=a121_0x4cca();let _0xced4cc=_0x4cca67[_0x51ece8];return _0xced4cc;}import{asDryRunResult}from'../../commands/common/dry-run.js';import{isPlatformTransportFailure,submitDeploymentMetadataSyncAll}from'../../core/api-client.js';function a121_0x4cca(){const _0x18933b=['Submitted\x20deployment\x20synchronization\x20job\x20','108220pEfcTj','POST','211410ROWREx','359550kSurOq','deployment','submitted','all_server_supported_metadata','confirm','application_deployment_sync','data','/smartapi/data-sync/submit','Submit\x20an\x20administrative\x20metadata\x20backfill\x20or\x20recovery\x20synchronization.','write','No\x20deployment\x20synchronization\x20was\x20needed\x20for\x20this\x20app.','bool','status','deployment_sync_submit_outcome_unknown','44cmnPNW','Deployment\x20sync\x20submission\x20response\x20was\x20unavailable;\x20job\x20creation\x20is\x20unknown.','11lPFMRc','not_needed','5013UdHWcx','List\x20recent\x20deployment\x20sync\x20jobs\x20before\x20deciding\x20whether\x20to\x20submit\x20again.','192iTIUpX','342sKfFmQ','outcome','Backfill\x20or\x20recover\x20all\x20server-supported\x20application\x20metadata','Run\x20with\x20--dry-run\x20first,\x20then\x20add\x20--confirm.','8124310UddKCF','job','1694OSBRSe','3062004FqskxS','jobId','39JLvtoW','242KQFtCf','appCode','sync-all','not_submitted','defineProperty'];a121_0x4cca=function(){return _0x18933b;};return a121_0x4cca();}import{CliError,CliErrors}from'../../errors.js';const SUBMIT_PATH=a121_0x3b4a64(0x194),CONFIRM_FLAG={'name':a121_0x3b4a64(0x191),'type':'boolean','description':'Confirm\x20the\x20administrative\x20backfill\x20or\x20recovery\x20synchronization'};export const deploymentSyncAll={'service':a121_0x3b4a64(0x18e),'command':a121_0x3b4a64(0x1ae),'description':a121_0x3b4a64(0x1a4),'risk':a121_0x3b4a64(0x196),'strictFlags':!![],'structuredErrors':!![],'confirmationDescription':a121_0x3b4a64(0x195),'flags':[CONFIRM_FLAG,APPCODE_FLAG_OPTIONAL],async 'dryRun'(_0x35e607){const _0x133f31=a121_0x3b4a64;return asDryRunResult(buildPreview(_0x35e607[_0x133f31(0x1ad)]),{'method':_0x133f31(0x1b3),'url':SUBMIT_PATH,'description':'Would\x20submit\x20an\x20administrative\x20deployment\x20metadata\x20backfill\x20or\x20recovery\x20job.'});},async 'execute'(_0x1835d3){const _0x2a2d54=a121_0x3b4a64;if(!_0x1835d3[_0x2a2d54(0x198)]('confirm'))throw CliErrors['validation']('--confirm\x20is\x20required\x20to\x20synchronize\x20all\x20application\x20metadata.',_0x2a2d54(0x1a5));try{const _0x3ad3f7=await submitDeploymentMetadataSyncAll({'appCode':_0x1835d3['appCode']});if(_0x3ad3f7[_0x2a2d54(0x1a3)]===_0x2a2d54(0x19e))return{'ok':!![],'data':{'operation':_0x2a2d54(0x192),'appCode':_0x1835d3['appCode'],'submitted':![],'outcome':'not_needed'},'message':_0x2a2d54(0x197)};return{'ok':!![],'data':{'operation':_0x2a2d54(0x192),'appCode':_0x1835d3[_0x2a2d54(0x1ad)],'submitted':!![],'outcome':_0x2a2d54(0x18f),'jobId':_0x3ad3f7[_0x2a2d54(0x1a7)][_0x2a2d54(0x1aa)],'status':_0x3ad3f7[_0x2a2d54(0x1a7)][_0x2a2d54(0x199)]},'message':_0x2a2d54(0x1b1)+_0x3ad3f7[_0x2a2d54(0x1a7)]['jobId']+'.'};}catch(_0x9e8a81){if(!isPlatformTransportFailure(_0x9e8a81))throw _0x9e8a81;const _0x817724=new CliError(_0x2a2d54(0x19a),0x2,_0x2a2d54(0x19c),_0x2a2d54(0x1a0));Object[_0x2a2d54(0x1b0)](_0x817724,_0x2a2d54(0x193),{'enumerable':!![],'value':{'operation':_0x2a2d54(0x192),'appCode':_0x1835d3['appCode'],'submitted':null,'outcome':'unknown'}});throw _0x817724;}}};function buildPreview(_0x3286ba){const _0x40549e=a121_0x3b4a64;return{'operation':_0x40549e(0x192),'selector':{'appCode':_0x3286ba,'scope':_0x40549e(0x190)},'before':null,'after':null,'dryRun':!![],'backend':{'submitted':![],'outcome':_0x40549e(0x1af)},'warnings':[]};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a122_0xabcf(_0x53ed5b,_0x3b5f08){_0x53ed5b=_0x53ed5b-0xef;const _0x49969a=a122_0x4996();let _0xabcfa=_0x49969a[_0x53ed5b];return _0xabcfa;}const a122_0xbbb80b=a122_0xabcf;(function(_0x5a50a8,_0x3c9ae0){const _0x21ad86=a122_0xabcf,_0x52bfdf=_0x5a50a8();while(!![]){try{const _0x43f0a1=-parseInt(_0x21ad86(0xf5))/0x1*(-parseInt(_0x21ad86(0xf8))/0x2)+-parseInt(_0x21ad86(0xfa))/0x3+parseInt(_0x21ad86(0xfc))/0x4+parseInt(_0x21ad86(0xfb))/0x5+-parseInt(_0x21ad86(0xfe))/0x6*(parseInt(_0x21ad86(0x104))/0x7)+parseInt(_0x21ad86(0x102))/0x8+parseInt(_0x21ad86(0xff))/0x9*(-parseInt(_0x21ad86(0xf7))/0xa);if(_0x43f0a1===_0x3c9ae0)break;else _0x52bfdf['push'](_0x52bfdf['shift']());}catch(_0x26be8a){_0x52bfdf['push'](_0x52bfdf['shift']());}}}(a122_0x4996,0x19d2f));function a122_0x4996(){const _0x1f16c6=['\x20deployment\x20synchronization\x20job(s).','Optional\x20server-defined\x20job\x20status\x20filter','isSafeInteger','validation','str','status','number','appCode','length','string','72481PZVhJU','current-page','30izPpAJ','4xIdLNH','num','139176JILzsW','808835bNknXg','589672eFpXpk','read','474774WKmsJx','1246563PNSejJ','--current-page\x20must\x20be\x20a\x20positive\x20integer.','deployment','1541360QVVdBm','trim','7ggGDSM','List\x20application\x20deployment\x20synchronization\x20jobs','Found\x20','page-size'];a122_0x4996=function(){return _0x1f16c6;};return a122_0x4996();}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{listDeploymentMetadataSyncJobs}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';export const deploymentSyncJobs={'service':a122_0xbbb80b(0x101),'command':'sync-jobs','description':a122_0xbbb80b(0x105),'risk':a122_0xbbb80b(0xfd),'strictFlags':!![],'structuredErrors':!![],'flags':[{'name':a122_0xbbb80b(0xf6),'type':a122_0xbbb80b(0xf1),'default':0x1,'description':'Page\x20number'},{'name':'page-size','type':a122_0xbbb80b(0xf1),'default':0xa,'description':'Items\x20per\x20page\x20(maximum\x20100)'},{'name':a122_0xbbb80b(0xf0),'type':a122_0xbbb80b(0xf4),'description':a122_0xbbb80b(0x109)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x5f01c8){const _0xf43d39=a122_0xbbb80b;readPaging(_0x5f01c8[_0xf43d39(0xf9)]('current-page',0x1),_0x5f01c8[_0xf43d39(0xf9)](_0xf43d39(0x107),0xa));},async 'execute'(_0x4d9961){const _0x2b58a9=a122_0xbbb80b,{currentPage:_0x540a92,pageSize:_0xef886d}=readPaging(_0x4d9961[_0x2b58a9(0xf9)](_0x2b58a9(0xf6),0x1),_0x4d9961[_0x2b58a9(0xf9)](_0x2b58a9(0x107),0xa)),_0x307b1f=_0x4d9961[_0x2b58a9(0xef)](_0x2b58a9(0xf0))[_0x2b58a9(0x103)](),_0x268170=await listDeploymentMetadataSyncJobs({'appCode':_0x4d9961[_0x2b58a9(0xf2)],'currentPage':_0x540a92,'pageSize':_0xef886d,..._0x307b1f?{'status':_0x307b1f}:{}});return{'ok':!![],'data':{'appCode':_0x4d9961[_0x2b58a9(0xf2)],..._0x268170},'message':_0x2b58a9(0x106)+_0x268170['items'][_0x2b58a9(0xf3)]+_0x2b58a9(0x108)};}};function readPaging(_0x290f70,_0x42251e){const _0x1a4965=a122_0xbbb80b;if(!Number[_0x1a4965(0x10a)](_0x290f70)||_0x290f70<0x1)throw CliErrors[_0x1a4965(0x10b)](_0x1a4965(0x100));if(!Number[_0x1a4965(0x10a)](_0x42251e)||_0x42251e<0x1||_0x42251e>0x64)throw CliErrors[_0x1a4965(0x10b)]('--page-size\x20must\x20be\x20an\x20integer\x20from\x201\x20to\x20100.');return{'currentPage':_0x290f70,'pageSize':_0x42251e};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a123_0x205bee=a123_0x2204;(function(_0x92d8a4,_0x53759b){const _0x1a0edb=a123_0x2204,_0x1c361d=_0x92d8a4();while(!![]){try{const _0xade0e2=-parseInt(_0x1a0edb(0x181))/0x1+-parseInt(_0x1a0edb(0x17d))/0x2*(parseInt(_0x1a0edb(0x163))/0x3)+-parseInt(_0x1a0edb(0x169))/0x4*(parseInt(_0x1a0edb(0x16c))/0x5)+-parseInt(_0x1a0edb(0x172))/0x6+-parseInt(_0x1a0edb(0x177))/0x7+parseInt(_0x1a0edb(0x178))/0x8*(parseInt(_0x1a0edb(0x173))/0x9)+-parseInt(_0x1a0edb(0x16d))/0xa*(-parseInt(_0x1a0edb(0x167))/0xb);if(_0xade0e2===_0x53759b)break;else _0x1c361d['push'](_0x1c361d['shift']());}catch(_0x1695db){_0x1c361d['push'](_0x1c361d['shift']());}}}(a123_0x23a6,0xaa552));function a123_0x2204(_0x1c9b3c,_0xd257e6){_0x1c9b3c=_0x1c9b3c-0x162;const _0x23a6e2=a123_0x23a6();let _0x22045f=_0x23a6e2[_0x1c9b3c];return _0x22045f;}import{getDeploymentMetadataSyncStatus}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const TERMINAL_STATUSES=new Set(['SUCCESS','PARTIAL_SUCCESS','FAILED']),ACTIVE_STATUSES=new Set(['PENDING',a123_0x205bee(0x176)]);export const deploymentSyncStatus={'service':a123_0x205bee(0x17c),'command':a123_0x205bee(0x162),'description':a123_0x205bee(0x175),'risk':'read','requiresAppCode':!![],'strictFlags':!![],'structuredErrors':!![],'flags':[{'name':a123_0x205bee(0x180),'type':a123_0x205bee(0x16e),'required':!![],'description':a123_0x205bee(0x174)}],async 'validate'(_0x5ef375){readJobId(_0x5ef375['num']('job-id'));},async 'execute'(_0x385ae8){const _0x517b05=a123_0x205bee,_0x57db4c=readJobId(_0x385ae8[_0x517b05(0x17a)](_0x517b05(0x180))),_0x2f0c81=await getDeploymentMetadataSyncStatus({'jobId':_0x57db4c,'appCode':_0x385ae8[_0x517b05(0x166)]}),_0x1c8068=TERMINAL_STATUSES[_0x517b05(0x17f)](_0x2f0c81[_0x517b05(0x171)])?!![]:ACTIVE_STATUSES[_0x517b05(0x17f)](_0x2f0c81[_0x517b05(0x171)])?![]:null,_0x2283c1=countBy(_0x2f0c81[_0x517b05(0x179)][_0x517b05(0x168)](_0x2122dc=>_0x2122dc[_0x517b05(0x17b)])),_0xf842a5=countBy(_0x2f0c81['results'][_0x517b05(0x168)](_0x3fd66f=>_0x3fd66f[_0x517b05(0x165)])),_0x478a0a=_0x1c8068===null?[_0x517b05(0x16b)+_0x2f0c81['status']+';\x20terminal\x20state\x20is\x20unknown\x20to\x20this\x20CLI\x20version.']:[];return{'ok':!![],'data':{'job':_0x2f0c81,'isTerminal':_0x1c8068,'summary':{'total':_0x2f0c81[_0x517b05(0x179)]['length'],'failed':_0x2f0c81['results']['filter'](_0x128a7c=>_0x128a7c[_0x517b05(0x165)]===_0x517b05(0x16a))['length'],'byBizType':_0x2283c1,'byAction':_0xf842a5},'warnings':_0x478a0a},'message':_0x517b05(0x17e)+_0x57db4c+'\x20is\x20'+_0x2f0c81['status']+'.'};}};function readJobId(_0x5b6eba){const _0x4bb8b7=a123_0x205bee;if(!Number[_0x4bb8b7(0x164)](_0x5b6eba)||_0x5b6eba<=0x0)throw CliErrors[_0x4bb8b7(0x170)]('--job-id\x20must\x20be\x20a\x20positive\x20integer.');return _0x5b6eba;}function countBy(_0x51df27){const _0x44d9b9=a123_0x205bee;return _0x51df27[_0x44d9b9(0x16f)]((_0x33f8de,_0x5d0491)=>{return _0x33f8de[_0x5d0491]=(_0x33f8de[_0x5d0491]??0x0)+0x1,_0x33f8de;},{});}function a123_0x23a6(){const _0x53cae8=['results','num','bizType','deployment','381830OjokFY','Deployment\x20synchronization\x20job\x20','has','job-id','939768wOZKcU','sync-status','21NjSfwK','isSafeInteger','action','appCode','237303eSDBlH','map','8JsDfpa','FAILED','Preserved\x20server-defined\x20status\x20','1126915iIwbnA','1830EIcPNx','number','reduce','validation','status','2153670fIeKmi','10058373CIRZKK','Deployment\x20synchronization\x20job\x20ID','Get\x20application\x20deployment\x20synchronization\x20job\x20status','RUNNING','8973230pwftRU','8NuDYlZ'];a123_0x23a6=function(){return _0x53cae8;};return a123_0x23a6();}
|
package/lib/commands/doctor.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a124_0x375dde=a124_0x3a61;(function(_0x2b5509,_0x326378){const _0x29013b=a124_0x3a61,_0x166e34=_0x2b5509();while(!![]){try{const _0x3bafdf=parseInt(_0x29013b(0x146))/0x1*(-parseInt(_0x29013b(0x126))/0x2)+parseInt(_0x29013b(0x156))/0x3*(-parseInt(_0x29013b(0x177))/0x4)+parseInt(_0x29013b(0x12c))/0x5*(-parseInt(_0x29013b(0x142))/0x6)+parseInt(_0x29013b(0x121))/0x7+-parseInt(_0x29013b(0x134))/0x8*(parseInt(_0x29013b(0x153))/0x9)+-parseInt(_0x29013b(0x176))/0xa+parseInt(_0x29013b(0x15d))/0xb;if(_0x3bafdf===_0x326378)break;else _0x166e34['push'](_0x166e34['shift']());}catch(_0xf6dd76){_0x166e34['push'](_0x166e34['shift']());}}}(a124_0x38d3,0x682ae));import a124_0x1d70e0 from'chalk';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';function a124_0x38d3(){const _0x31a549=['✗\x20Invalid','\x20\x20runtimeDomain:\x20\x20\x20','✗\x20Not\x20logged\x20in','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','\x20\x20kbServiceDomain:\x20','status','doctor','red','installedPath','inherit','\x20←\x20current','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','padEnd','\x20\x20Country/Region\x20Configuration','label','appcode','\x20\x20─','version','Global','message','✓\x20Valid\x20JSON','check','\x20\x20Config\x20Files','green','env','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','global','\x20\x20Package\x20Version:\x20','\x20\x20Merged\x20Config','object','not\x20configured','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','format','routing','hasOwnProperty','\x20\x20Repair\x20project:\x20\x20\x20','regionConfiguredValue','(set,\x20length=','prototype','empty','4617389mnvByX','explicitAppName','\x20\x20Legacy\x20inherit:\x20\x20\x20','reason','stringify','392684PrFJvF','project','\x20\x20kbDomain:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Repair\x20project:\x20\x20','missing','filter','15QmMcxN','(none)','\x20\x20Skill\x20Version:\x20\x20\x20','current','length','includes','defaultApp','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','3214816dPJLjf','log','push','raw','state','platform','yellow','\x20(invalid)','\x20\x20Apps','slice','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','apiDir','\x20doctor','\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','14424bqTlQt','cookie','Project','\x20\x20\x20\x20region:\x20\x20\x20\x20\x20','1mmROpe','repeat','\x20\x20Repair\x20global:\x20\x20\x20','Repair\x20','\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','regionSource','.region\x20to\x20cn\x20or\x20id\x20in\x20','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','\x20\x20explicitAppName:\x20','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','present','\x20config\x20delete\x20region\x20--global','9cTWnaB','verbose','✗\x20Expired','631887xLgLRI','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','globalConfig','null','apps','ignored\x20in\x20','source','9141055xKNcAO','region','(not\x20set)','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','✗\x20Invalid\x20','repairCommand','bold','arch','gray','join','default','currentApp','\x20config\x20delete\x20routing','(not\x20found)','\x20app\x20\x22','(no\x20file)','\x20\x20Built-in\x20Skill','projectConfig','toLowerCase','\x20\x20app\x20locale:\x20\x20\x20\x20\x20\x20','(unknown)','\x20\x20Config\x20JSON','\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','372980vkYiyG','8RhLvOV','value','\x20\x20Repair\x20global:\x20\x20\x20\x20','\x20\x20\x20\x20accessKey:\x20\x20','accessKey','call','\x20\x20Auth','(missing)','skillVersion','\x20(default)','entries','\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','✗\x20Invalid\x20JSON','\x20\x20Installed\x20Path:\x20\x20','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20'];a124_0x38d3=function(){return _0x31a549;};return a124_0x38d3();}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_0x3a61(_0x40c312,_0x2f4b27){_0x40c312=_0x40c312-0xef;const _0x38d321=a124_0x38d3();let _0x3a61df=_0x38d321[_0x40c312];return _0x3a61df;}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(_0x3d1cc0){const _0x595662=a124_0x3a61;return typeof _0x3d1cc0==='string'?JSON[_0x595662(0x125)](_0x3d1cc0):'<'+(_0x3d1cc0===null?_0x595662(0x159):typeof _0x3d1cc0)+'>';}async function execute(_0x4c3768){const _0x164318=a124_0x3a61,_0x60008b=GIT_COMMIT!=='unknown'?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x164318(0x13d)](0x0,0xa)+')':VERSION,_0x31d517=buildConfigFromFlags({}),_0x2f58d1=getCookie();let _0x4a08ec;try{await initGlobalEnvironment(_0x31d517);}catch(_0x545283){_0x4a08ec=_0x545283 instanceof Error?_0x545283:new Error(String(_0x545283));}console[_0x164318(0x135)](),console[_0x164318(0x135)](a124_0x1d70e0[_0x164318(0x163)](CLI_BIN_NAME+_0x164318(0x140))),console[_0x164318(0x135)](a124_0x1d70e0['gray']('─'[_0x164318(0x147)](0x32))),console['log'](_0x164318(0x14d)+_0x60008b),console[_0x164318(0x135)](_0x164318(0x150)+process[_0x164318(0x10a)]),console[_0x164318(0x135)](_0x164318(0xf7)+process[_0x164318(0x139)]+'\x20'+process[_0x164318(0x164)]);const _0x5abefd=inspectBuiltinSkill();console[_0x164318(0x135)](),console[_0x164318(0x135)](a124_0x1d70e0['bold'](_0x164318(0x16d))),console['log'](a124_0x1d70e0[_0x164318(0x165)](_0x164318(0x109)[_0x164318(0x147)](0x1e)));const _0xa03291=_0x5abefd[_0x164318(0x138)]===_0x164318(0x12f)?a124_0x1d70e0[_0x164318(0x110)]('✓\x20'+_0x5abefd[_0x164318(0x138)]):a124_0x1d70e0[_0x164318(0x100)]('✗\x20'+_0x5abefd[_0x164318(0x138)]);console['log'](_0x164318(0x141)+_0xa03291),console[_0x164318(0x135)](_0x164318(0x114)+_0x5abefd['packageVersion']),console[_0x164318(0x135)](_0x164318(0x12e)+(_0x5abefd[_0x164318(0xf1)]||a124_0x1d70e0[_0x164318(0x165)](_0x164318(0x171)))),console[_0x164318(0x135)](_0x164318(0xf6)+(_0x5abefd[_0x164318(0x101)]||a124_0x1d70e0[_0x164318(0x165)]('(not\x20found)')));if(_0x5abefd[_0x164318(0x124)])console[_0x164318(0x135)](_0x164318(0xf4)+_0x5abefd[_0x164318(0x124)]);_0x5abefd['state']!==_0x164318(0x12f)&&console[_0x164318(0x135)](_0x164318(0x14a)+_0x5abefd[_0x164318(0x162)]);console[_0x164318(0x135)](),console[_0x164318(0x135)](a124_0x1d70e0['bold'](_0x164318(0x10f))),console[_0x164318(0x135)](a124_0x1d70e0['gray']('\x20\x20─'[_0x164318(0x147)](0x1e)));const _0x3dae5c=getGlobalConfigPath(),_0x51cad9=getProjectConfigPath();console[_0x164318(0x135)]('\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x3dae5c||a124_0x1d70e0[_0x164318(0x165)](_0x164318(0x16a)))),console['log']('\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x51cad9||a124_0x1d70e0['gray']('(not\x20found)'))),console['log'](),console[_0x164318(0x135)](a124_0x1d70e0[_0x164318(0x163)](_0x164318(0x172))),console[_0x164318(0x135)](a124_0x1d70e0[_0x164318(0x165)](_0x164318(0x109)[_0x164318(0x147)](0x1e)));const _0x21c20b=(_0x1c854d,_0x5bcf87)=>{const _0x476278=_0x164318;if(!_0x5bcf87){console['log']('\x20\x20'+_0x1c854d[_0x476278(0x105)](0x11)+'\x20'+a124_0x1d70e0[_0x476278(0x165)](_0x476278(0x16c)));return;}const _0x573cb2=inspectCliConfigJsonFile(_0x5bcf87);if(_0x573cb2[_0x476278(0xfe)]==='ok')console['log']('\x20\x20'+_0x1c854d['padEnd'](0x11)+'\x20'+a124_0x1d70e0[_0x476278(0x110)](_0x476278(0x10d)));else{if(_0x573cb2[_0x476278(0xfe)]===_0x476278(0x120))console[_0x476278(0x135)]('\x20\x20'+_0x1c854d[_0x476278(0x105)](0x11)+'\x20'+a124_0x1d70e0['yellow']('⚠\x20Empty\x20(treated\x20as\x20{})'));else _0x573cb2['status']===_0x476278(0x12a)?console[_0x476278(0x135)]('\x20\x20'+_0x1c854d[_0x476278(0x105)](0x11)+'\x20'+a124_0x1d70e0['gray'](_0x476278(0xf0))):(console[_0x476278(0x135)]('\x20\x20'+_0x1c854d[_0x476278(0x105)](0x11)+'\x20'+a124_0x1d70e0['red'](_0x476278(0xf5))),console['log']('\x20\x20'+''[_0x476278(0x105)](0x11)+'\x20'+a124_0x1d70e0[_0x476278(0x100)](_0x573cb2[_0x476278(0x10c)])));}};_0x21c20b(_0x164318(0x10b),_0x3dae5c),_0x21c20b(_0x164318(0x144),_0x51cad9);const _0x46ed30=loadRawConfigLayers(),_0x326338=[{'label':_0x164318(0x144),'value':_0x46ed30[_0x164318(0x16e)][_0x164318(0x15e)],'present':Object[_0x164318(0x11f)][_0x164318(0x11b)]['call'](_0x46ed30[_0x164318(0x16e)],_0x164318(0x15e)),'repairCommand':CLI_BIN_NAME+'\x20config\x20delete\x20region'},{'label':_0x164318(0x10b),'value':_0x46ed30[_0x164318(0x158)][_0x164318(0x15e)],'present':Object[_0x164318(0x11f)]['hasOwnProperty']['call'](_0x46ed30[_0x164318(0x158)],_0x164318(0x15e)),'repairCommand':CLI_BIN_NAME+_0x164318(0x152)}][_0x164318(0x12b)](_0x31ee83=>_0x31ee83[_0x164318(0x151)]&&isInvalidLovrabetRegion(_0x31ee83[_0x164318(0x178)]));for(const [_0x28e48e,_0x34a780]of[[_0x164318(0x144),_0x46ed30[_0x164318(0x16e)]],[_0x164318(0x10b),_0x46ed30[_0x164318(0x158)]]]){const _0x3ee995=_0x34a780[_0x164318(0x15a)]&&typeof _0x34a780[_0x164318(0x15a)]===_0x164318(0x116)?_0x34a780['apps']:{};for(const [_0x535a20,_0x54d4d4]of Object[_0x164318(0xf3)](_0x3ee995)){if(!_0x54d4d4||typeof _0x54d4d4!==_0x164318(0x116)||!Object[_0x164318(0x11f)]['hasOwnProperty']['call'](_0x54d4d4,_0x164318(0x15e)))continue;isInvalidLovrabetRegion(_0x54d4d4[_0x164318(0x15e)])&&_0x326338[_0x164318(0x136)]({'label':_0x28e48e+_0x164318(0x16b)+_0x535a20+'\x22','value':_0x54d4d4[_0x164318(0x15e)],'present':!![],'repairCommand':'Set\x20apps.'+_0x535a20+_0x164318(0x14c)+_0x28e48e[_0x164318(0x16f)]()+'\x20config'});}}if(_0x326338[_0x164318(0x130)]>0x0){console['log'](),console[_0x164318(0x135)](a124_0x1d70e0['bold'](_0x164318(0x106))),console[_0x164318(0x135)](a124_0x1d70e0[_0x164318(0x165)](_0x164318(0x109)['repeat'](0x1e)));for(const _0x24dcc1 of _0x326338){console[_0x164318(0x135)]('\x20\x20'+_0x24dcc1[_0x164318(0x107)]['padEnd'](0x11)+'\x20'+a124_0x1d70e0['red'](_0x164318(0x161)+describeRegionValue(_0x24dcc1[_0x164318(0x178)]))),console['log']('\x20\x20'+(_0x164318(0x149)+_0x24dcc1[_0x164318(0x107)][_0x164318(0x16f)]()+':')['padEnd'](0x10)+'\x20'+_0x24dcc1[_0x164318(0x162)]);}}const _0x5bbad6=[Object[_0x164318(0x11f)]['hasOwnProperty']['call'](_0x46ed30[_0x164318(0x158)],_0x164318(0x102))?_0x164318(0x113):null,Object['prototype'][_0x164318(0x11b)][_0x164318(0x17c)](_0x46ed30['projectConfig'],_0x164318(0x102))?_0x164318(0x127):null][_0x164318(0x12b)](Boolean);_0x5bbad6['length']>0x0&&(console['log'](_0x164318(0x123)+a124_0x1d70e0['yellow'](_0x164318(0x15b)+_0x5bbad6[_0x164318(0x166)]('\x20+\x20')+'\x20config')),_0x5bbad6[_0x164318(0x131)](_0x164318(0x127))&&console[_0x164318(0x135)](_0x164318(0x11c)+CLI_BIN_NAME+'\x20config\x20delete\x20inherit'),_0x5bbad6['includes'](_0x164318(0x113))&&console[_0x164318(0x135)](_0x164318(0x179)+CLI_BIN_NAME+'\x20config\x20delete\x20inherit\x20--global'));const _0x1d932f=isInvalidLovrabetRegion(_0x31d517[_0x164318(0x11d)]??_0x31d517[_0x164318(0x137)]?.[_0x164318(0x15e)]);_0x4a08ec&&!_0x1d932f&&(console[_0x164318(0x135)](),console[_0x164318(0x135)](a124_0x1d70e0['bold']('\x20\x20Routing\x20Configuration')),console[_0x164318(0x135)](a124_0x1d70e0[_0x164318(0x165)](_0x164318(0x109)[_0x164318(0x147)](0x1e))),console[_0x164318(0x135)](_0x164318(0x13e)+a124_0x1d70e0[_0x164318(0x100)](_0x164318(0xf8))),console['log'](_0x164318(0xf4)+_0x4a08ec[_0x164318(0x10c)]),Object[_0x164318(0x11f)][_0x164318(0x11b)]['call'](_0x46ed30[_0x164318(0x16e)],'routing')&&console['log'](_0x164318(0x129)+CLI_BIN_NAME+_0x164318(0x169)),Object[_0x164318(0x11f)]['hasOwnProperty'][_0x164318(0x17c)](_0x46ed30['globalConfig'],_0x164318(0x11a))&&console[_0x164318(0x135)](_0x164318(0x148)+CLI_BIN_NAME+'\x20config\x20delete\x20routing\x20--global'));console[_0x164318(0x135)](),console[_0x164318(0x135)](a124_0x1d70e0[_0x164318(0x163)](_0x164318(0x115))),console[_0x164318(0x135)](a124_0x1d70e0['gray'](_0x164318(0x109)[_0x164318(0x147)](0x1e))),console[_0x164318(0x135)](_0x164318(0x157)+(_0x31d517['appCode']||a124_0x1d70e0[_0x164318(0x100)](_0x164318(0x15f))));const _0x459406=_0x1d932f?a124_0x1d70e0['red'](describeRegionValue(_0x31d517[_0x164318(0x11d)]??_0x31d517[_0x164318(0x137)]?.[_0x164318(0x15e)])+_0x164318(0x13b)):(_0x31d517[_0x164318(0x15e)]??DEFAULT_LOVRABET_REGION)+'\x20('+(_0x31d517[_0x164318(0x14b)]??_0x164318(0x167))+')';console[_0x164318(0x135)](_0x164318(0x173)+_0x459406),console[_0x164318(0x135)](_0x164318(0x160)+_0x31d517[_0x164318(0x111)]),console[_0x164318(0x135)](_0x164318(0x170)+_0x31d517['locale']),console['log']('\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x31d517[_0x164318(0x13f)]),console['log']('\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20'+(_0x31d517[_0x164318(0x132)]||a124_0x1d70e0[_0x164318(0x165)](_0x164318(0x12d)))),console[_0x164318(0x135)](_0x164318(0x133)+(_0x31d517[_0x164318(0x168)]||a124_0x1d70e0[_0x164318(0x165)](_0x164318(0x12d)))),console['log'](_0x164318(0x14e)+(_0x31d517[_0x164318(0x122)]||a124_0x1d70e0[_0x164318(0x165)](_0x164318(0x12d)))),console[_0x164318(0x135)]('\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x31d517[_0x164318(0x119)]||a124_0x1d70e0['gray']('(default:\x20'+DEFAULT_CONFIG_VALUES['format']+')'))),console[_0x164318(0x135)](_0x164318(0x174)+(_0x31d517['pageSize']??a124_0x1d70e0[_0x164318(0x165)]('(default)'))),console[_0x164318(0x135)](_0x164318(0x112)+_0x31d517['riskLevel']),console[_0x164318(0x135)]('\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x31d517[_0x164318(0x154)]),console[_0x164318(0x135)](_0x164318(0x104)+(_0x31d517[_0x164318(0x143)]?a124_0x1d70e0[_0x164318(0x110)](_0x164318(0x11e)+_0x31d517['cookie'][_0x164318(0x130)]+')'):_0x2f58d1?a124_0x1d70e0[_0x164318(0x110)]('(set\x20via\x20file,\x20length='+_0x2f58d1['length']+')'):a124_0x1d70e0['gray'](_0x164318(0x12d))));const _0x19bdec=Object['keys'](_0x31d517[_0x164318(0x15a)]);if(_0x19bdec[_0x164318(0x130)]>0x0){console[_0x164318(0x135)](),console[_0x164318(0x135)](a124_0x1d70e0[_0x164318(0x163)](_0x164318(0x13c))),console[_0x164318(0x135)](a124_0x1d70e0[_0x164318(0x165)]('\x20\x20─'[_0x164318(0x147)](0x1e)));for(const _0x45c8af of _0x19bdec){const _0x279a0b=_0x31d517[_0x164318(0x15a)][_0x45c8af],_0x557c3a=_0x45c8af===_0x31d517[_0x164318(0x132)],_0x5ca09d=_0x45c8af===_0x31d517[_0x164318(0x168)],_0x7ab0b9=_0x5ca09d?a124_0x1d70e0[_0x164318(0x110)](_0x164318(0x103)):'',_0x23498a=_0x557c3a?_0x164318(0xf2):'';console[_0x164318(0x135)]('\x20\x20'+_0x45c8af+_0x23498a+_0x7ab0b9),console[_0x164318(0x135)](_0x164318(0xfc)+_0x279a0b[_0x164318(0x108)]);const _0x22fcfc=_0x46ed30[_0x164318(0x16e)]['apps']&&typeof _0x46ed30[_0x164318(0x16e)]['apps']===_0x164318(0x116)?_0x46ed30[_0x164318(0x16e)][_0x164318(0x15a)]:{},_0x1f635a=Object[_0x164318(0x11f)]['hasOwnProperty'][_0x164318(0x17c)](_0x22fcfc,_0x45c8af),_0x428d7d=isInvalidLovrabetRegion(_0x279a0b[_0x164318(0x15e)])?{'region':_0x31d517[_0x164318(0x15e)]??DEFAULT_LOVRABET_REGION}:resolveEffectiveRegion({'appRegion':_0x279a0b[_0x164318(0x15e)],'projectRegion':_0x1f635a?_0x46ed30[_0x164318(0x16e)]['region']:undefined,'globalRegion':_0x46ed30[_0x164318(0x158)]['region'],'mergedRegion':_0x31d517[_0x164318(0x137)][_0x164318(0x15e)],'appName':_0x45c8af}),_0x1259c7=buildAppDoctorFields(_0x279a0b,{'region':_0x428d7d[_0x164318(0x15e)],'env':_0x31d517[_0x164318(0x111)],'apiDir':_0x31d517['raw'][_0x164318(0x13f)]||DEFAULT_CONFIG_VALUES[_0x164318(0x13f)],'cookie':_0x31d517['cookie']||_0x2f58d1||undefined,'accessKey':_0x31d517[_0x164318(0x17b)]});console[_0x164318(0x135)](_0x164318(0x145)+_0x1259c7[_0x164318(0x15e)][_0x164318(0x178)]+'\x20\x20'+a124_0x1d70e0[_0x164318(0x165)]('('+_0x1259c7['region']['source']+')')),console[_0x164318(0x135)]('\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x1259c7['env'][_0x164318(0x178)]+'\x20\x20'+a124_0x1d70e0[_0x164318(0x165)]('('+_0x1259c7['env'][_0x164318(0x15c)]+')')),console[_0x164318(0x135)](_0x164318(0x175)+_0x1259c7[_0x164318(0x13f)][_0x164318(0x178)]+'\x20\x20'+a124_0x1d70e0[_0x164318(0x165)]('('+_0x1259c7[_0x164318(0x13f)][_0x164318(0x15c)]+')'));const _0x688855=_0x1259c7[_0x164318(0x143)][_0x164318(0x178)]?a124_0x1d70e0[_0x164318(0x110)](_0x164318(0x11e)+_0x1259c7[_0x164318(0x143)][_0x164318(0x178)][_0x164318(0x130)]+')'):a124_0x1d70e0[_0x164318(0x165)](_0x164318(0x12d));console['log'](_0x164318(0xfb)+_0x688855+'\x20\x20'+a124_0x1d70e0[_0x164318(0x165)]('('+_0x1259c7[_0x164318(0x143)]['source']+')'));const _0x4132cb=_0x1259c7[_0x164318(0x17b)]['value']?a124_0x1d70e0['green'](_0x164318(0x11e)+_0x1259c7[_0x164318(0x17b)][_0x164318(0x178)][_0x164318(0x130)]+')'):a124_0x1d70e0[_0x164318(0x165)]('(none)');console[_0x164318(0x135)](_0x164318(0x17a)+_0x4132cb+'\x20\x20'+a124_0x1d70e0['gray']('('+_0x1259c7[_0x164318(0x17b)][_0x164318(0x15c)]+')'));}}console[_0x164318(0x135)](),console[_0x164318(0x135)](a124_0x1d70e0[_0x164318(0x163)]('\x20\x20API\x20Endpoints')),console['log'](a124_0x1d70e0['gray'](_0x164318(0x109)[_0x164318(0x147)](0x1e)));_0x4a08ec?console[_0x164318(0x135)](_0x164318(0x13e)+a124_0x1d70e0[_0x164318(0x100)]('Unavailable\x20until\x20routing\x20configuration\x20is\x20repaired')):(console[_0x164318(0x135)](_0x164318(0x173)+getActiveRegion()),console[_0x164318(0x135)](_0x164318(0x14f)+getApiDomain()),console[_0x164318(0x135)](_0x164318(0x118)+getUserDomain()),console[_0x164318(0x135)](_0x164318(0xf9)+getRuntimeDomain()),console[_0x164318(0x135)]('\x20\x20skillDomain:\x20\x20\x20\x20\x20'+getSkillDomain()),console['log'](_0x164318(0x128)+getKbDomain()),console[_0x164318(0x135)](_0x164318(0xfd)+(getKbServiceDomain()??_0x164318(0x117))),console['log']('\x20\x20appDomain:\x20\x20\x20\x20\x20\x20\x20'+getAppDomain()));console[_0x164318(0x135)](),console[_0x164318(0x135)](a124_0x1d70e0[_0x164318(0x163)](_0x164318(0xef))),console['log'](a124_0x1d70e0[_0x164318(0x165)]('\x20\x20─'[_0x164318(0x147)](0x1e)));if(_0x4a08ec)console[_0x164318(0x135)](_0x164318(0x13e)+a124_0x1d70e0[_0x164318(0x13a)]('Not\x20checked\x20until\x20routing\x20configuration\x20is\x20repaired'));else{if(_0x2f58d1){const _0x369ce3=await getIsSessionValid();console[_0x164318(0x135)](_0x164318(0x13e)+(_0x369ce3?a124_0x1d70e0[_0x164318(0x110)]('✓\x20Valid'):a124_0x1d70e0[_0x164318(0x100)](_0x164318(0x155))));}else console['log'](_0x164318(0x13e)+a124_0x1d70e0[_0x164318(0x100)](_0x164318(0xfa)));}return console[_0x164318(0x135)](),{'ok':!![]};}export const doctorDefinition={'service':a124_0x375dde(0xff),'command':a124_0x375dde(0x10e),'description':'Diagnose\x20CLI\x20configuration\x20and\x20connectivity','risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
|
|
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};
|