@lovrabet/rabetbase-cli 2.5.8-beta.1 → 2.5.8
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
|
-
function
|
|
1
|
+
const a109_0x53b7ce=a109_0x56de;function a109_0x56de(_0x14a8d3,_0x2a356b){_0x14a8d3=_0x14a8d3-0x15d;const _0x472c30=a109_0x472c();let _0x56def9=_0x472c30[_0x14a8d3];return _0x56def9;}(function(_0x4d5268,_0x4e75b1){const _0x5c5818=a109_0x56de,_0x41a331=_0x4d5268();while(!![]){try{const _0x386de9=-parseInt(_0x5c5818(0x163))/0x1*(parseInt(_0x5c5818(0x162))/0x2)+-parseInt(_0x5c5818(0x16c))/0x3*(-parseInt(_0x5c5818(0x161))/0x4)+-parseInt(_0x5c5818(0x15d))/0x5+parseInt(_0x5c5818(0x166))/0x6*(parseInt(_0x5c5818(0x15f))/0x7)+-parseInt(_0x5c5818(0x16b))/0x8+-parseInt(_0x5c5818(0x169))/0x9+parseInt(_0x5c5818(0x168))/0xa*(parseInt(_0x5c5818(0x16a))/0xb);if(_0x386de9===_0x4e75b1)break;else _0x41a331['push'](_0x41a331['shift']());}catch(_0x5b61d8){_0x41a331['push'](_0x41a331['shift']());}}}(a109_0x472c,0xab72b));import{getDbLinkInfo,listDatasets}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{buildDbDatasetDependency,sanitizeDbLinkForOutput}from'../../commands/db/shared.js';function a109_0x472c(){const _0x1fbf90=['DB_TABLE','5518420tVmuNl','appCode','31381OvHnUg','num','16896IIZXOH','338IBgjsZ','2834exfsCj','db\x20link\x20','Get\x20one\x20database\x20connection\x20by\x20id\x20(metadata\x20+\x20analysis\x20fields;\x20password\x20redacted)','330lVzkzF','dbName','85070jNKGDE','2515185MllGAg','3575PvINhC','8442000qdDmaG','432FNhmLd'];a109_0x472c=function(){return _0x1fbf90;};return a109_0x472c();}export const dbDetail={'service':'db','command':'detail','description':a109_0x53b7ce(0x165),'risk':'read','requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x583081){const _0x4cefb9=a109_0x53b7ce,_0x5e4544=_0x583081[_0x4cefb9(0x160)]('id'),_0x3f2110=await getDbLinkInfo(_0x5e4544),_0x957ae1=await listDatasets(_0x3f2110[_0x4cefb9(0x15e)]||_0x583081[_0x4cefb9(0x15e)],{'source':_0x4cefb9(0x16d)}),_0x2f2e9b=buildDbDatasetDependency(_0x3f2110,_0x957ae1);return{'ok':!![],'data':{...sanitizeDbLinkForOutput(_0x3f2110),'datasetDependency':_0x2f2e9b['datasetDependency']},'message':_0x4cefb9(0x164)+_0x5e4544+':\x20'+_0x3f2110[_0x4cefb9(0x167)]};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a110_0x47fe86=a110_0x4168;(function(_0x5d4c70,_0x13ea77){const _0x368205=a110_0x4168,_0x4269f1=_0x5d4c70();while(!![]){try{const _0x2fc944=-parseInt(_0x368205(0xe0))/0x1+-parseInt(_0x368205(0xe7))/0x2+parseInt(_0x368205(0xe1))/0x3*(-parseInt(_0x368205(0xdb))/0x4)+parseInt(_0x368205(0xdd))/0x5*(-parseInt(_0x368205(0xe3))/0x6)+-parseInt(_0x368205(0xdf))/0x7+-parseInt(_0x368205(0xd8))/0x8*(-parseInt(_0x368205(0xdc))/0x9)+parseInt(_0x368205(0xd9))/0xa;if(_0x2fc944===_0x13ea77)break;else _0x4269f1['push'](_0x4269f1['shift']());}catch(_0x5e4b2e){_0x4269f1['push'](_0x4269f1['shift']());}}}(a110_0x5827,0x27d9c));import{startDbTableDiffRefresh}from'../../core/api-client.js';function a110_0x5827(){const _0x2ae0b9=['traceId','414GDRnoa','num','diff-refresh-start','\x20--format\x20compress','383986RmjyVY','trim','\x20--plan\x20','\x20db\x20diff-refresh-status\x20--id\x20','status','160lWQyXX','8121600baHzWd','Started\x20table-diff\x20refresh\x20for\x20db\x20link\x20','148fEJsHa','75807RmajCm','21665hsGsaV','write','973434dTKJzH','473AwZJdK','15153lNccas'];a110_0x5827=function(){return _0x2ae0b9;};return a110_0x5827();}import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{CLI_BIN_NAME}from'../../constant/cli.js';function a110_0x4168(_0x4258e7,_0x2945ab){_0x4258e7=_0x4258e7-0xd5;const _0x582737=a110_0x5827();let _0x41680e=_0x582737[_0x4258e7];return _0x41680e;}import{CliErrors}from'../../errors.js';export const dbDiffRefreshStart={'service':'db','command':a110_0x47fe86(0xe5),'description':'Start\x20an\x20asynchronous\x20refresh\x20of\x20the\x20database\x20table-diff\x20result','risk':a110_0x47fe86(0xde),'flags':[DBLINK_ID_FLAG],async 'execute'(_0x52da72){const _0x359bc6=a110_0x47fe86,_0x2dcd53=_0x52da72[_0x359bc6(0xe4)]('id'),_0x2a44a8=await startDbTableDiffRefresh(_0x52da72['appCode'],_0x2dcd53),_0x519876=_0x2a44a8[_0x359bc6(0xe2)]?.[_0x359bc6(0xe8)]();if(!_0x519876)throw CliErrors['validation']('Table-diff\x20refresh\x20started\x20without\x20a\x20traceId;\x20the\x20request\x20outcome\x20is\x20unknown.\x20Do\x20not\x20submit\x20another\x20refresh\x20automatically.');return{'ok':!![],'data':{'dbLinkId':_0x2dcd53,'traceId':_0x519876,'status':_0x2a44a8[_0x359bc6(0xd7)]??null,'query':{'command':CLI_BIN_NAME+_0x359bc6(0xd6)+_0x2dcd53+_0x359bc6(0xd5)+_0x519876+_0x359bc6(0xe6)}},'message':_0x359bc6(0xda)+_0x2dcd53};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a111_0x5b81e6=a111_0x356e;(function(_0x2aad8e,_0x143902){const _0x122ce1=a111_0x356e,_0x332e8c=_0x2aad8e();while(!![]){try{const _0x36a697=-parseInt(_0x122ce1(0x1bf))/0x1*(parseInt(_0x122ce1(0x1a7))/0x2)+parseInt(_0x122ce1(0x1ad))/0x3*(-parseInt(_0x122ce1(0x1b9))/0x4)+parseInt(_0x122ce1(0x1b8))/0x5+-parseInt(_0x122ce1(0x1b7))/0x6+-parseInt(_0x122ce1(0x1a8))/0x7*(parseInt(_0x122ce1(0x1ab))/0x8)+parseInt(_0x122ce1(0x1ae))/0x9+parseInt(_0x122ce1(0x1bb))/0xa*(parseInt(_0x122ce1(0x1b5))/0xb);if(_0x36a697===_0x143902)break;else _0x332e8c['push'](_0x332e8c['shift']());}catch(_0x341477){_0x332e8c['push'](_0x332e8c['shift']());}}}(a111_0x216e,0x75e1b));import{getDbAnalysisStatus}from'../../core/api-client.js';function a111_0x356e(_0xe054c6,_0x3202ff){_0xe054c6=_0xe054c6-0x1a6;const _0x216ed6=a111_0x216e();let _0x356ec9=_0x216ed6[_0xe054c6];return _0x356ec9;}function a111_0x216e(){const _0x2f0de8=['35QvPetr','has','plan','352960LqjLDn','\x20--plan\x20','300873NMCUvf','1652850zUpsqO','UNKNOWN','read','string','num','str','RETRYING','8646VOShUA','CANCELLED','4822656rTKRmw','3289955DHJcur','4zKHtID','SUCCESS','10510hKVdop','FAILED','RUNNING','Fetch\x20table-diff\x20refresh\x20status\x20by\x20plan\x20/\x20trace\x20id','60217jGMQwz','\x20db\x20diff-refresh-status\x20--id\x20','\x20--format\x20compress','Table-diff\x20refresh\x20trace\x20id\x20from\x20diff-refresh-start','2FepEWt'];a111_0x216e=function(){return _0x2f0de8;};return a111_0x216e();}import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{CLI_BIN_NAME}from'../../constant/cli.js';const TERMINAL_STATUSES=new Set([a111_0x5b81e6(0x1ba),a111_0x5b81e6(0x1bc),a111_0x5b81e6(0x1b6)]),RUNNING_STATUSES=new Set(['PENDING',a111_0x5b81e6(0x1bd),a111_0x5b81e6(0x1b4)]);export const dbDiffRefreshStatus={'service':'db','command':'diff-refresh-status','description':a111_0x5b81e6(0x1be),'risk':a111_0x5b81e6(0x1b0),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':'plan','type':a111_0x5b81e6(0x1b1),'required':!![],'description':a111_0x5b81e6(0x1a6)}],async 'execute'(_0x1bb421){const _0x4ff808=a111_0x5b81e6,_0xd27586=_0x1bb421[_0x4ff808(0x1b2)]('id'),_0x13fa2b=_0x1bb421[_0x4ff808(0x1b3)](_0x4ff808(0x1aa)),_0x5bcc94=await getDbAnalysisStatus(_0x13fa2b),_0x41f959=_0x5bcc94['status']??null,_0x1de4e4=TERMINAL_STATUSES[_0x4ff808(0x1a9)](_0x41f959??''),_0x26bcf1=_0x41f959==='SUCCESS',_0xfd1cbe=_0x1de4e4||RUNNING_STATUSES['has'](_0x41f959??'');return{'ok':!![],'data':{'dbLinkId':_0xd27586,'planId':_0x13fa2b,'status':_0x5bcc94,'knownStatus':_0xfd1cbe,'isTerminal':_0x1de4e4,'isSuccessful':_0x26bcf1,'query':_0xfd1cbe&&!_0x1de4e4?{'command':CLI_BIN_NAME+_0x4ff808(0x1c0)+_0xd27586+_0x4ff808(0x1ac)+_0x13fa2b+_0x4ff808(0x1c1)}:null},'message':'Table-diff\x20refresh\x20status\x20for\x20'+_0x13fa2b+':\x20'+(_0x41f959??_0x4ff808(0x1af))};}};
|
package/lib/commands/db/diff.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a112_0x1e51bc=a112_0x5c74;(function(_0x5c75a3,_0x1cc6f6){const _0x393b14=a112_0x5c74,_0xfe2688=_0x5c75a3();while(!![]){try{const _0x422fbc=parseInt(_0x393b14(0xe4))/0x1*(parseInt(_0x393b14(0xf2))/0x2)+-parseInt(_0x393b14(0xdf))/0x3*(parseInt(_0x393b14(0xf6))/0x4)+parseInt(_0x393b14(0x104))/0x5*(parseInt(_0x393b14(0xed))/0x6)+parseInt(_0x393b14(0xe3))/0x7+parseInt(_0x393b14(0xe9))/0x8*(-parseInt(_0x393b14(0xf3))/0x9)+parseInt(_0x393b14(0xfb))/0xa+-parseInt(_0x393b14(0xe6))/0xb*(parseInt(_0x393b14(0x101))/0xc);if(_0x422fbc===_0x1cc6f6)break;else _0xfe2688['push'](_0xfe2688['shift']());}catch(_0x3fda29){_0xfe2688['push'](_0xfe2688['shift']());}}}(a112_0x3c64,0x97f20));function a112_0x3c64(){const _0x31861b=['18sieauv','map','table','length','\x20changed\x20table\x20row(s),\x20total\x20','2KyYqsi','3429GHdGjf','str','NEW_TABLE','48ravFUB','DELETED_TABLE','number','fieldDiff','datasetTableCount','2503500fKuPmB','Compare\x20datasets\x20with\x20physical\x20database\x20tables\x20and\x20show\x20schema\x20drift','totalCount','modifiedColumns','MODIFIED_TABLE','pagesize','2436396hUyslb','filter','\x20(db\x20link\x20','1970355qyPxCL','diffType','144981LPsYKx','physicalTableCount','boolean','num','7367136ojejnC','794213GwuDJq','page','77GLmMqa','all','appCode','13768LKiRbw','tableName','Fetch\x20and\x20aggregate\x20every\x20page\x20(overrides\x20--page\x20and\x20--pagesize)','addedColumns'];a112_0x3c64=function(){return _0x31861b;};return a112_0x3c64();}function a112_0x5c74(_0x2ec644,_0x3a3c24){_0x2ec644=_0x2ec644-0xde;const _0x3c6450=a112_0x3c64();let _0x5c74d0=_0x3c6450[_0x2ec644];return _0x5c74d0;}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':'diff','description':a112_0x1e51bc(0xfc),'risk':'read','flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a112_0x1e51bc(0xef),'type':'string','description':'Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)'},{'name':a112_0x1e51bc(0xe5),'type':a112_0x1e51bc(0xf8),'description':'Page\x20index\x20(1-based)','default':0x1},{'name':'pagesize','type':a112_0x1e51bc(0xf8),'description':'Page\x20size','default':0x14},{'name':a112_0x1e51bc(0xe7),'type':a112_0x1e51bc(0xe1),'description':a112_0x1e51bc(0xeb)}],async 'execute'(_0x58e9a2){const _0xe03784=a112_0x1e51bc,_0x236524=_0x58e9a2['num']('id'),_0x5b3d24=_0x58e9a2['bool'](_0xe03784(0xe7)),_0x26f9a6=_0x5b3d24?0x1:_0x58e9a2[_0xe03784(0xe2)]('page',0x1)||0x1,_0x1103cd=_0x5b3d24?DB_TABLE_PAGE_SIZE:_0x58e9a2[_0xe03784(0xe2)](_0xe03784(0x100),0x14)||0x14,_0x272669=_0x58e9a2[_0xe03784(0xf4)]('table')||undefined,_0x2aa242=_0x5b3d24?await getAllDbTableDiff(getDbTableDiff,_0x58e9a2['appCode'],_0x236524,_0x272669):await getDbTableDiff(_0x58e9a2[_0xe03784(0xe8)],_0x236524,{'pageIndex':_0x26f9a6,'pageSize':_0x1103cd,'tableName':_0x272669}),_0x4586e1=_0x2aa242['tableList'],_0x59b437=summarizeDbTableDiff(_0x4586e1),_0x2582da=_0x4586e1[_0xe03784(0x102)](_0x37b52e=>_0x37b52e[_0xe03784(0xde)]===_0xe03784(0xf5)||_0x37b52e[_0xe03784(0xde)]===_0xe03784(0xff))[_0xe03784(0xee)](_0x1cb7e1=>_0x1cb7e1[_0xe03784(0xea)]),_0x74de36=_0x4586e1['filter'](_0x5beb92=>_0x5beb92[_0xe03784(0xde)]===_0xe03784(0xf7))[_0xe03784(0xee)](_0x33c129=>_0x33c129[_0xe03784(0xea)]),_0x2411ee=_0x4586e1[_0xe03784(0x102)](_0x12742f=>_0x12742f[_0xe03784(0xde)]===_0xe03784(0xff))[_0xe03784(0xee)](_0x461868=>({'tableName':_0x461868[_0xe03784(0xea)],'addedColumns':_0x461868['fieldDiff']?.[_0xe03784(0xec)]??[],'deletedColumns':_0x461868[_0xe03784(0xf9)]?.['deletedColumns']??[],'modifiedColumns':_0x461868['fieldDiff']?.[_0xe03784(0xfe)]??[]}));return{'ok':!![],'data':{'dbLinkId':_0x236524,'page':_0x26f9a6,'pageSize':_0x1103cd,'totalCount':_0x2aa242[_0xe03784(0xfd)],...typeof _0x2aa242['physicalTableCount']==='number'?{'physicalTableCount':_0x2aa242[_0xe03784(0xe0)]}:{},...typeof _0x2aa242['datasetTableCount']===_0xe03784(0xf8)?{'datasetTableCount':_0x2aa242[_0xe03784(0xfa)]}:{},..._0x2aa242['summary']?{'summary':_0x2aa242['summary']}:{},'summaryByType':_0x59b437,'toAnalyzeTables':_0x2582da,'deletedTables':_0x74de36,'modifiedFieldDiffs':_0x2411ee,'tables':_0x4586e1},'message':_0x4586e1[_0xe03784(0xf0)]+_0xe03784(0xf1)+_0x2aa242[_0xe03784(0xfd)]+_0xe03784(0x103)+_0x236524+')'};}};
|
package/lib/commands/db/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x540c96,_0x4fd522){const _0x57cf99=a113_0x527b,_0xeee02b=_0x540c96();while(!![]){try{const _0x328110=-parseInt(_0x57cf99(0x1a3))/0x1*(-parseInt(_0x57cf99(0x19b))/0x2)+-parseInt(_0x57cf99(0x1a1))/0x3+parseInt(_0x57cf99(0x19a))/0x4+-parseInt(_0x57cf99(0x19f))/0x5*(parseInt(_0x57cf99(0x19e))/0x6)+parseInt(_0x57cf99(0x19d))/0x7+-parseInt(_0x57cf99(0x1a0))/0x8+parseInt(_0x57cf99(0x1a2))/0x9*(parseInt(_0x57cf99(0x19c))/0xa);if(_0x328110===_0x4fd522)break;else _0xeee02b['push'](_0xeee02b['shift']());}catch(_0x1bad44){_0xeee02b['push'](_0xeee02b['shift']());}}}(a113_0x48c0,0x305ef));function a113_0x48c0(){const _0x1207a6=['1154982dSrFRI','10MOWrHa','1923384UGYphQ','526536bAkNqw','1332XeOKej','2699fkmhvu','384156ndTKFb','106upEnEN','26020YwcFry','2624118shPWwt'];a113_0x48c0=function(){return _0x1207a6;};return a113_0x48c0();}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';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';function a113_0x527b(_0x29987b,_0x11a778){_0x29987b=_0x29987b-0x19a;const _0x48c03e=a113_0x48c0();let _0x527bc7=_0x48c03e[_0x29987b];return _0x527bc7;}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';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
|
-
function
|
|
1
|
+
const a114_0x416f99=a114_0x3bbd;function a114_0x28d7(){const _0x4f41b7=['694569kBKVoy','434PberGs','198888tgSAaj','read','pagesize','length','datasetDependency','num','appCode','25xguNth','12771vAcGWX','map','1651980JQtDPr','670bqeMZf','Found\x20','23208qwsSWP','856339mHOwyz','27471AdYtpX','4XYavHG','page','4BVnWgW','list'];a114_0x28d7=function(){return _0x4f41b7;};return a114_0x28d7();}(function(_0x2e977b,_0x18a1e3){const _0x4fc0f3=a114_0x3bbd,_0x4aa03f=_0x2e977b();while(!![]){try{const _0x5666da=parseInt(_0x4fc0f3(0x171))/0x1*(parseInt(_0x4fc0f3(0x174))/0x2)+parseInt(_0x4fc0f3(0x176))/0x3*(-parseInt(_0x4fc0f3(0x172))/0x4)+parseInt(_0x4fc0f3(0x169))/0x5*(parseInt(_0x4fc0f3(0x162))/0x6)+-parseInt(_0x4fc0f3(0x161))/0x7*(parseInt(_0x4fc0f3(0x16f))/0x8)+parseInt(_0x4fc0f3(0x16a))/0x9*(parseInt(_0x4fc0f3(0x16d))/0xa)+parseInt(_0x4fc0f3(0x170))/0xb+parseInt(_0x4fc0f3(0x16c))/0xc;if(_0x5666da===_0x18a1e3)break;else _0x4aa03f['push'](_0x4aa03f['shift']());}catch(_0x5df6e8){_0x4aa03f['push'](_0x4aa03f['shift']());}}}(a114_0x28d7,0x1d44c));import{listDatasets,listDbLinks}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{buildDbDatasetDependency,sanitizeDbLinkForOutput}from'../../commands/db/shared.js';function a114_0x3bbd(_0x459e74,_0x3d30a4){_0x459e74=_0x459e74-0x161;const _0x28d70b=a114_0x28d7();let _0x3bbddc=_0x28d70b[_0x459e74];return _0x3bbddc;}export const dbList={'service':'db','command':a114_0x416f99(0x175),'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_0x416f99(0x163),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a114_0x416f99(0x173),'type':'number','description':'Page\x20index\x20(1-based)','default':0x1},{'name':a114_0x416f99(0x164),'type':'number','description':'Page\x20size','default':0x64}],async 'execute'(_0x4e5032){const _0x37a294=a114_0x416f99,_0x39b3e8=_0x4e5032[_0x37a294(0x167)](_0x37a294(0x173),0x1)||0x1,_0x3aba9a=_0x4e5032[_0x37a294(0x167)](_0x37a294(0x164),0x64)||0x64,[{items:_0x23ac4e,paging:_0x5c071e},_0x5b662d]=await Promise['all']([listDbLinks(_0x4e5032['appCode'],{'currentPage':_0x39b3e8,'pageSize':_0x3aba9a}),listDatasets(_0x4e5032[_0x37a294(0x168)],{'source':'DB_TABLE'})]),_0x1c3384=_0x23ac4e[_0x37a294(0x16b)](_0x12b4d3=>({...sanitizeDbLinkForOutput(_0x12b4d3),'datasetDependency':buildDbDatasetDependency(_0x12b4d3,_0x5b662d)[_0x37a294(0x166)]})),_0x11efa6=_0x5c071e?_0x5c071e:{'currentPage':_0x39b3e8,'pageSize':_0x3aba9a,'rowsOnPage':_0x1c3384[_0x37a294(0x165)],'totalCount':null,'note':'Server\x20omitted\x20paging\x20metadata;\x20totalCount\x20is\x20unknown\x20—\x20rowsOnPage\x20is\x20this\x20page\x20only'};return{'ok':!![],'data':{'connections':_0x1c3384,'paging':_0x11efa6},'message':_0x37a294(0x16e)+_0x1c3384[_0x37a294(0x165)]+'\x20database\x20connection(s)'};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5deb68,_0x596a79){const _0x2db821=a115_0x2db7,_0x3429a4=_0x5deb68();while(!![]){try{const _0x71b74=-parseInt(_0x2db821(0x129))/0x1+parseInt(_0x2db821(0x124))/0x2*(-parseInt(_0x2db821(0x12f))/0x3)+-parseInt(_0x2db821(0x142))/0x4*(-parseInt(_0x2db821(0x128))/0x5)+-parseInt(_0x2db821(0x127))/0x6*(-parseInt(_0x2db821(0x122))/0x7)+-parseInt(_0x2db821(0x139))/0x8*(parseInt(_0x2db821(0x132))/0x9)+-parseInt(_0x2db821(0x12e))/0xa*(parseInt(_0x2db821(0x13b))/0xb)+parseInt(_0x2db821(0x134))/0xc*(parseInt(_0x2db821(0x12d))/0xd);if(_0x71b74===_0x596a79)break;else _0x3429a4['push'](_0x3429a4['shift']());}catch(_0x274ce0){_0x3429a4['push'](_0x3429a4['shift']());}}}(a115_0x30e0,0x39686));import{testDbLinkConfigConnect}from'../../core/api-client.js';function a115_0x30e0(){const _0x176269=['9yVtiro','Database\x20connection\x20preflight\x20failed.','2412IcotNV','map','test','hasAvailableDo','[redacted]','1249432RWfXnh','password','801823eYYaKj','keys','toLowerCase','The\x20configuration\x20was\x20not\x20saved.\x20Verify\x20the\x20host,\x20credentials,\x20database\x20name,\x20network,\x20and\x20allowlist,\x20or\x20explicitly\x20pass\x20--skip-connection-test.','trim','length','token','506684WtGaZP','credential','filter','connectionstring','dbpassword','apiError','/data/database','secret','7fveWpi','/data/er?dbId=','18104kkedop','accesskey','includes','92814PkZLxP','5FxSsdD','197857GLWayx','code','dbtableConfig','isFinite','59449NQRzyl','30xsDyGc','84QpAJXy','number','tableName'];a115_0x30e0=function(){return _0x176269;};return a115_0x30e0();}import{getAppBaseUrl}from'../../constant/domain.js';import{CliErrors}from'../../errors.js';function shouldRedactKey(_0x7f5a1b){const _0x45c4af=a115_0x2db7,_0xe4866=_0x7f5a1b[_0x45c4af(0x13d)]();if(_0xe4866===_0x45c4af(0x13a)||_0xe4866==='passwd'||_0xe4866===_0x45c4af(0x146))return!![];if(_0xe4866[_0x45c4af(0x126)](_0x45c4af(0x121))||_0xe4866[_0x45c4af(0x126)](_0x45c4af(0x141))||_0xe4866[_0x45c4af(0x126)](_0x45c4af(0x143)))return!![];if(_0xe4866[_0x45c4af(0x126)]('privatekey')||_0xe4866[_0x45c4af(0x126)](_0x45c4af(0x125)))return!![];if(_0xe4866==='authorization'||_0xe4866===_0x45c4af(0x145)||_0xe4866==='jdbcurl')return!![];return![];}export function sanitizeDbLinkForOutput(_0x3ae344){const _0x3ee27e=a115_0x2db7,_0x3a2a32={..._0x3ae344};delete _0x3a2a32[_0x3ee27e(0x137)];for(const _0x580d65 of Object[_0x3ee27e(0x13c)](_0x3a2a32)){if(!shouldRedactKey(_0x580d65))continue;const _0x1e36d1=_0x3a2a32[_0x580d65];_0x1e36d1!=null&&String(_0x1e36d1)['length']>0x0&&(_0x3a2a32[_0x580d65]=_0x3ee27e(0x138));}return _0x3a2a32;}export function sanitizeDbLinkList(_0x1ba5c6){const _0x164024=a115_0x2db7;return _0x1ba5c6[_0x164024(0x135)](_0x390a60=>sanitizeDbLinkForOutput(_0x390a60));}function a115_0x2db7(_0x6938c8,_0x34bbe0){_0x6938c8=_0x6938c8-0x11f;const _0x30e048=a115_0x30e0();let _0x2db71a=_0x30e048[_0x6938c8];return _0x2db71a;}export function buildDbDatasetDependency(_0x34b006,_0x2dc74b){const _0x5b5645=a115_0x2db7,_0x982a0a=_0x2dc74b[_0x5b5645(0x144)](_0x2114a0=>Number(_0x2114a0[_0x5b5645(0x12b)]?.['dbId'])===Number(_0x34b006['id']))['map'](_0x3fd5ca=>({'id':_0x3fd5ca['id'],'code':_0x3fd5ca[_0x5b5645(0x12a)],'name':_0x3fd5ca['name'],..._0x3fd5ca[_0x5b5645(0x12b)]?.[_0x5b5645(0x131)]?{'tableName':_0x3fd5ca[_0x5b5645(0x12b)][_0x5b5645(0x131)]}:{}}));return{'datasetDependency':{'hasDependencies':_0x982a0a[_0x5b5645(0x140)]>0x0,'activeDatasetCount':_0x982a0a[_0x5b5645(0x140)]},'datasets':_0x982a0a};}export async function assertDbLinkConnectionPreflight(_0x11ff99){const _0x621022=a115_0x2db7,_0x2e8a92=await testDbLinkConfigConnect(_0x11ff99);if(_0x2e8a92!==!![])throw CliErrors[_0x621022(0x11f)](_0x621022(0x133),_0x621022(0x13e));}const DB_URL_PATTERN=/^[^\s:]+(?::\d+)?$/;export function validateDbUrl(_0x2e50f5){const _0x4a4615=a115_0x2db7,_0x4ece73=_0x2e50f5[_0x4a4615(0x13f)]();if(!_0x4ece73)return![];return DB_URL_PATTERN[_0x4a4615(0x136)](_0x4ece73);}export function buildDbPageLinks(_0x193648,_0x187dda){const _0xbff453=a115_0x2db7,_0x13c7e0=_0x193648?.[_0xbff453(0x13f)]();if(!_0x13c7e0)return undefined;const _0x39b635=typeof _0x187dda===_0xbff453(0x130)?String(_0x187dda):String(_0x187dda??'')[_0xbff453(0x13f)]();if(!_0x39b635)return undefined;const _0x5b0541=Number(_0x39b635);if(!Number[_0xbff453(0x12c)](_0x5b0541)||_0x5b0541<=0x0)return undefined;const _0x52a921=getAppBaseUrl(_0x13c7e0),_0x5b8cce=encodeURIComponent(String(_0x5b0541));return{'databasePage':_0x52a921+_0xbff453(0x120),'erPage':_0x52a921+_0xbff453(0x123)+_0x5b8cce};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a116_0x327c13=a116_0x46ee;(function(_0x1c7fd1,_0x2b09b4){const _0x21bd4e=a116_0x46ee,_0x475441=_0x1c7fd1();while(!![]){try{const _0x483126=parseInt(_0x21bd4e(0x170))/0x1+parseInt(_0x21bd4e(0x15f))/0x2+parseInt(_0x21bd4e(0x167))/0x3+-parseInt(_0x21bd4e(0x15b))/0x4+-parseInt(_0x21bd4e(0x173))/0x5*(parseInt(_0x21bd4e(0x165))/0x6)+parseInt(_0x21bd4e(0x164))/0x7+-parseInt(_0x21bd4e(0x15d))/0x8;if(_0x483126===_0x2b09b4)break;else _0x475441['push'](_0x475441['shift']());}catch(_0x4275f8){_0x475441['push'](_0x475441['shift']());}}}(a116_0x1f6a,0x4a404));import{CliErrors}from'../../errors.js';export const DB_TABLE_PAGE_SIZE=0x64;function a116_0x1f6a(){const _0x567ddc=['465227uepfdH','312996vDqfyN','validation','1414185DRhyTM','length','size','totalCount','physicalTableCount','set','fromEntries','datasetTableCount','NEW_TABLE','571260CYCjAi','filter','number','30QubLAT','2142168qfZgLU','\x20of\x20','3584560ubKwOA','map','983248OHPtst','summary','\x20row(s).','ALREADY_ANALYZED','DELETED_TABLE'];a116_0x1f6a=function(){return _0x567ddc;};return a116_0x1f6a();}export const DB_TABLE_DIFF_TYPES=[a116_0x327c13(0x16f),'MODIFIED_TABLE',a116_0x327c13(0x163),a116_0x327c13(0x162)];export function summarizeDbTableDiff(_0x4a0907){const _0x56d2ef=a116_0x327c13;return Object[_0x56d2ef(0x16d)](DB_TABLE_DIFF_TYPES[_0x56d2ef(0x15e)](_0x440907=>[_0x440907,_0x4a0907[_0x56d2ef(0x171)](_0x2daf49=>_0x2daf49['diffType']===_0x440907)[_0x56d2ef(0x168)]]));}function a116_0x46ee(_0x309cf2,_0x554082){_0x309cf2=_0x309cf2-0x15b;const _0x1f6acf=a116_0x1f6a();let _0x46ee01=_0x1f6acf[_0x309cf2];return _0x46ee01;}export async function getAllDbTableDiff(_0x228c2c,_0x12df25,_0x2eb898,_0x2e4373){const _0x10daf3=a116_0x327c13,_0x664013=new Map();let _0x57e1bc=0x1,_0x1dfc78=null;while(!![]){_0x1dfc78=await _0x228c2c(_0x12df25,_0x2eb898,{'pageIndex':_0x57e1bc,'pageSize':DB_TABLE_PAGE_SIZE,'tableName':_0x2e4373});const _0x168bad=_0x664013[_0x10daf3(0x169)];for(const _0x3cfdd4 of _0x1dfc78['tableList']){_0x664013[_0x10daf3(0x16c)](_0x3cfdd4['tableName'],_0x3cfdd4);}if(_0x664013[_0x10daf3(0x169)]>=_0x1dfc78['totalCount'])break;if(_0x1dfc78['tableList']['length']===0x0||_0x664013[_0x10daf3(0x169)]===_0x168bad)throw CliErrors[_0x10daf3(0x166)]('Incomplete\x20db\x20table\x20pagination:\x20collected\x20'+_0x664013['size']+_0x10daf3(0x15c)+_0x1dfc78[_0x10daf3(0x16a)]+_0x10daf3(0x161));_0x57e1bc+=0x1;}return{'totalCount':_0x1dfc78?.[_0x10daf3(0x16a)]??0x0,...typeof _0x1dfc78?.[_0x10daf3(0x16b)]===_0x10daf3(0x172)?{'physicalTableCount':_0x1dfc78[_0x10daf3(0x16b)]}:{},...typeof _0x1dfc78?.[_0x10daf3(0x16e)]===_0x10daf3(0x172)?{'datasetTableCount':_0x1dfc78[_0x10daf3(0x16e)]}:{},..._0x1dfc78?.[_0x10daf3(0x160)]?{'summary':_0x1dfc78[_0x10daf3(0x160)]}:{},'tableList':[..._0x664013['values']()]};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a117_0xae222f=a117_0x3b74;(function(_0x17a71a,_0x33ef26){const _0x43b788=a117_0x3b74,_0x28ab82=_0x17a71a();while(!![]){try{const _0x33e7e9=-parseInt(_0x43b788(0x103))/0x1+-parseInt(_0x43b788(0x10f))/0x2+-parseInt(_0x43b788(0x10d))/0x3*(parseInt(_0x43b788(0x105))/0x4)+-parseInt(_0x43b788(0x108))/0x5+parseInt(_0x43b788(0x104))/0x6+-parseInt(_0x43b788(0x119))/0x7+parseInt(_0x43b788(0x10a))/0x8*(parseInt(_0x43b788(0x10e))/0x9);if(_0x33e7e9===_0x33ef26)break;else _0x28ab82['push'](_0x28ab82['shift']());}catch(_0x23f4c0){_0x28ab82['push'](_0x28ab82['shift']());}}}(a117_0x485f,0xdf239));import{getDbTableComparisonPage}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a117_0x3b74(_0x1fc6ae,_0x55aa9f){_0x1fc6ae=_0x1fc6ae-0x103;const _0x485feb=a117_0x485f();let _0x3b7455=_0x485feb[_0x1fc6ae];return _0x3b7455;}function a117_0x485f(){const _0x51d837=['119076SHYdaf','7803Egptep','448918WHvYum','physicalTableCount','summary','string','length','table','read','str','\x20(db\x20link\x20','\x20table\x20comparison\x20row(s),\x20total\x20','10328486kzCZqi','num','765229nCCpJM','2770908iNglMQ','4FIhYFV','totalCount','tableList','2645850LozuDP','datasetTableCount','32168DEcJdF','List\x20all\x20database\x20table\x20comparison\x20rows\x20and\x20analysis\x20states','number'];a117_0x485f=function(){return _0x51d837;};return a117_0x485f();}import{getAllDbTableDiff,summarizeDbTableDiff}from'../../commands/db/table-diff-shared.js';export const dbTables={'service':'db','command':'tables','description':a117_0xae222f(0x10b),'risk':a117_0xae222f(0x115),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a117_0xae222f(0x114),'type':a117_0xae222f(0x112),'description':'Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)'}],async 'execute'(_0x55e000){const _0x1aceb6=a117_0xae222f,_0x487649=_0x55e000[_0x1aceb6(0x11a)]('id'),_0x38d0d2=_0x55e000[_0x1aceb6(0x116)](_0x1aceb6(0x114))||undefined,_0x19ff27=await getAllDbTableDiff(getDbTableComparisonPage,_0x55e000['appCode'],_0x487649,_0x38d0d2),_0x270f3a=_0x19ff27[_0x1aceb6(0x107)];return{'ok':!![],'data':{'dbLinkId':_0x487649,'totalCount':_0x19ff27[_0x1aceb6(0x106)],...typeof _0x19ff27['physicalTableCount']===_0x1aceb6(0x10c)?{'physicalTableCount':_0x19ff27[_0x1aceb6(0x110)]}:{},...typeof _0x19ff27[_0x1aceb6(0x109)]==='number'?{'datasetTableCount':_0x19ff27[_0x1aceb6(0x109)]}:{},..._0x19ff27[_0x1aceb6(0x111)]?{'summary':_0x19ff27[_0x1aceb6(0x111)]}:{},'summaryByType':summarizeDbTableDiff(_0x270f3a),'tables':_0x270f3a},'message':_0x270f3a[_0x1aceb6(0x113)]+_0x1aceb6(0x118)+_0x19ff27[_0x1aceb6(0x106)]+_0x1aceb6(0x117)+_0x487649+')'};}};
|
package/lib/commands/db/test.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a118_0x355a54=a118_0xbc04;(function(_0x15f772,_0x431e69){const _0x162dce=a118_0xbc04,_0xe7fd80=_0x15f772();while(!![]){try{const _0x4bc890=parseInt(_0x162dce(0x1a2))/0x1+parseInt(_0x162dce(0x1a6))/0x2+parseInt(_0x162dce(0x19e))/0x3+-parseInt(_0x162dce(0x1aa))/0x4*(-parseInt(_0x162dce(0x1ac))/0x5)+parseInt(_0x162dce(0x19b))/0x6*(-parseInt(_0x162dce(0x19a))/0x7)+-parseInt(_0x162dce(0x198))/0x8+-parseInt(_0x162dce(0x1ab))/0x9;if(_0x4bc890===_0x431e69)break;else _0xe7fd80['push'](_0xe7fd80['shift']());}catch(_0x552ff3){_0xe7fd80['push'](_0xe7fd80['shift']());}}}(a118_0x2308,0x9edd3));function a118_0x2308(){const _0x543093=['message','error','data','3932CPaoNr','3623175xkpptB','50FLcIJx','Connection\x20check\x20finished\x20for\x20db\x20link\x20','test','1228416xxCMym','read','1645ZSeIyr','31830IKoTIM','slice','keys','1641270zXrXck','length','num','object','1151664ySHIXc','success','Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)','Connection\x20OK\x20for\x20db\x20link\x20','1489850zohxhW'];a118_0x2308=function(){return _0x543093;};return a118_0x2308();}import{testDbLinkConnect}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a118_0xbc04(_0x4735a4,_0x2c9fb5){_0x4735a4=_0x4735a4-0x197;const _0x2308d3=a118_0x2308();let _0xbc0428=_0x2308d3[_0x4735a4];return _0xbc0428;}function summarizeTestConnectResult(_0x15c254){const _0x188793=a118_0xbc04;if(_0x15c254===!![]||_0x15c254===![])return{'success':_0x15c254};if(_0x15c254===null||_0x15c254===undefined)return{'type':typeof _0x15c254};if(typeof _0x15c254!==_0x188793(0x1a1))return{'type':typeof _0x15c254};const _0x2af097=_0x15c254,_0x165d56=[_0x188793(0x1a3),_0x188793(0x1a7),'code',_0x188793(0x1a8),'msg',_0x188793(0x1a9)],_0x5a1733={};for(const _0x5c9f0c of _0x165d56){if(_0x5c9f0c in _0x2af097)_0x5a1733[_0x5c9f0c]=_0x2af097[_0x5c9f0c];}return Object[_0x188793(0x19d)](_0x5a1733)[_0x188793(0x19f)]===0x0&&(_0x5a1733['keys']=Object['keys'](_0x2af097)[_0x188793(0x19c)](0x0,0x14)),_0x5a1733;}export const dbTest={'service':'db','command':a118_0x355a54(0x197),'description':a118_0x355a54(0x1a4),'risk':a118_0x355a54(0x199),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x17b503){const _0x157afe=a118_0x355a54,_0x293bd7=_0x17b503[_0x157afe(0x1a0)]('id'),_0x4f81d1=await testDbLinkConnect(_0x293bd7),_0x4689ed=_0x4f81d1===!![]||typeof _0x4f81d1===_0x157afe(0x1a1)&&_0x4f81d1!==null&&_0x4f81d1[_0x157afe(0x1a3)]===!![],_0x48f268=summarizeTestConnectResult(_0x4f81d1);return{'ok':!![],'data':{'id':_0x293bd7,'connected':Boolean(_0x4689ed),'result':_0x48f268},'message':_0x4689ed?_0x157afe(0x1a5)+_0x293bd7:_0x157afe(0x1ad)+_0x293bd7+'\x20(see\x20data.result)'};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a119_0xc02596=a119_0x23d1;(function(_0x2f37b9,_0x262b90){const _0x5a63ad=a119_0x23d1,_0x957174=_0x2f37b9();while(!![]){try{const _0x349447=parseInt(_0x5a63ad(0x114))/0x1+-parseInt(_0x5a63ad(0x106))/0x2*(parseInt(_0x5a63ad(0xff))/0x3)+parseInt(_0x5a63ad(0xf7))/0x4*(-parseInt(_0x5a63ad(0xfe))/0x5)+-parseInt(_0x5a63ad(0x112))/0x6+-parseInt(_0x5a63ad(0x101))/0x7+-parseInt(_0x5a63ad(0x115))/0x8*(parseInt(_0x5a63ad(0x109))/0x9)+parseInt(_0x5a63ad(0x117))/0xa;if(_0x349447===_0x262b90)break;else _0x957174['push'](_0x957174['shift']());}catch(_0x127c70){_0x957174['push'](_0x957174['shift']());}}}(a119_0x248e,0xab0cc));import{getDbLinkInfo,updateDbLink}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG,SKIP_CONNECTION_TEST_FLAG}from'../../commands/common/flags.js';import{assertDbLinkConnectionPreflight,sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';const MASKED_PASSWORD_VALUES=new Set([a119_0xc02596(0x113),a119_0xc02596(0xf6)]);function a119_0x23d1(_0x4c3fd9,_0x3829fc){_0x4c3fd9=_0x4c3fd9-0xf4;const _0x248e42=a119_0x248e();let _0x23d138=_0x248e42[_0x4c3fd9];return _0x23d138;}function mergeDbLinkUpdate(_0x39026c,_0x57971b){const _0x5194e4=a119_0xc02596,_0xba9f1={..._0x39026c},_0x33a9f5=_0x57971b['str'](_0x5194e4(0xfb));if(_0x33a9f5&&MASKED_PASSWORD_VALUES[_0x5194e4(0x100)](_0x33a9f5))throw CliErrors['validation'](_0x5194e4(0x108));if(!_0x33a9f5&&MASKED_PASSWORD_VALUES[_0x5194e4(0x100)](String(_0x39026c['password']??'')))throw CliErrors[_0x5194e4(0x105)](_0x5194e4(0x116));const _0x103eab=_0x57971b[_0x5194e4(0x110)]('dbname');if(_0x103eab)_0xba9f1[_0x5194e4(0xf8)]=_0x103eab;const _0x171cfa=_0x57971b[_0x5194e4(0x110)]('dburl');if(_0x171cfa)_0xba9f1[_0x5194e4(0x119)]=_0x171cfa['trim']();const _0x539ff0=_0x57971b[_0x5194e4(0x110)](_0x5194e4(0xf4));if(_0x539ff0)_0xba9f1['username']=_0x539ff0;if(_0x33a9f5)_0xba9f1[_0x5194e4(0xfb)]=_0x33a9f5;const _0x493113=_0x57971b[_0x5194e4(0x110)](_0x5194e4(0x102));if(_0x493113)_0xba9f1[_0x5194e4(0x118)]=_0x493113;const _0x39b72a=_0x57971b[_0x5194e4(0x110)](_0x5194e4(0x10a));if(_0x39b72a)_0xba9f1[_0x5194e4(0x104)]=_0x39b72a;return _0xba9f1;}function a119_0x248e(){const _0x2ce515=['4514568DKnrdv','dbName','bool','Updated\x20db\x20link\x20','password','New\x20database\x20name','New\x20host:port','5eLVZPZ','12uSToRr','has','3024756TwONdn','dbparam','write','dbDesc','validation','570842gitUTc','num','--password\x20must\x20contain\x20the\x20real\x20database\x20password,\x20not\x20a\x20masked\x20value.','9xVYOgp','dbdesc','dburl','update','Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22','Update\x20a\x20database\x20connection\x20by\x20merging\x20supplied\x20fields\x20into\x20the\x20current\x20server\x20record.\x20A\x20masked\x20server\x20password\x20requires\x20explicit\x20--password','skip-connection-test','str','string','6602298ftXSzx','******','744669PyplaZ','6643304kxljja','The\x20server\x20returned\x20a\x20masked\x20database\x20password.\x20Pass\x20the\x20current\x20or\x20replacement\x20password\x20explicitly\x20with\x20--password\x20to\x20update\x20this\x20connection\x20safely.','45891810HIUzFE','dbParam','dbUrl','Current\x20or\x20replacement\x20password.\x20Required\x20when\x20the\x20stored\x20password\x20is\x20masked','username','Preview\x20the\x20merged\x20database\x20connection\x20update;\x20password\x20redacted','[redacted]'];a119_0x248e=function(){return _0x2ce515;};return a119_0x248e();}export const dbUpdate={'service':'db','command':a119_0xc02596(0x10c),'description':a119_0xc02596(0x10e),'risk':a119_0xc02596(0x103),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':'dbname','type':'string','description':a119_0xc02596(0xfc)},{'name':a119_0xc02596(0x10b),'type':'string','description':a119_0xc02596(0xfd)},{'name':a119_0xc02596(0xf4),'type':a119_0xc02596(0x111),'description':'New\x20username'},{'name':a119_0xc02596(0xfb),'type':a119_0xc02596(0x111),'description':a119_0xc02596(0x11a)},{'name':'dbparam','type':'string','description':'New\x20connection\x20parameter\x20string'},{'name':'dbdesc','type':a119_0xc02596(0x111),'description':'New\x20description'},SKIP_CONNECTION_TEST_FLAG],async 'validate'(_0x394c40){const _0x2350e1=a119_0xc02596,_0xb0c944=_0x394c40[_0x2350e1(0x110)]('dburl');if(_0xb0c944&&!validateDbUrl(_0xb0c944['trim']()))throw CliErrors['validation'](_0x2350e1(0x10d)+_0xb0c944+'\x22');},async 'dryRun'(_0x5eb345){const _0x3e95e9=a119_0xc02596,_0x4ed26c=_0x5eb345[_0x3e95e9(0x107)]('id'),_0x304951=await getDbLinkInfo(_0x4ed26c),_0x520028=mergeDbLinkUpdate(_0x304951,_0x5eb345),_0xfdc015=sanitizeDbLinkForOutput(_0x520028);return{'method':'POST','url':'/smartapi/dblink/update','body':_0xfdc015,'description':_0x3e95e9(0xf5),'connectionPreflight':{'enabled':!_0x5eb345['bool'](_0x3e95e9(0x10f)),'executed':![]}};},async 'execute'(_0x4e0cba){const _0x2d2bd6=a119_0xc02596,_0x6bb32a=_0x4e0cba[_0x2d2bd6(0x107)]('id'),_0xa3f1ce=await getDbLinkInfo(_0x6bb32a),_0x397ee4=mergeDbLinkUpdate(_0xa3f1ce,_0x4e0cba);!_0x4e0cba[_0x2d2bd6(0xf9)](_0x2d2bd6(0x10f))&&await assertDbLinkConnectionPreflight(_0x397ee4);const {id:_0x3a450f,entity:_0x5b9f6d}=normalizeEntityWithIdResponse(await updateDbLink(_0x397ee4));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x5b9f6d),'message':_0x2d2bd6(0xfa)+(_0x3a450f??_0x6bb32a)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2a0eb5,_0x24c687){const _0x42d21e=a120_0x1a2f,_0x3c2e3e=_0x2a0eb5();while(!![]){try{const _0x1af14e=-parseInt(_0x42d21e(0x152))/0x1*(-parseInt(_0x42d21e(0x155))/0x2)+-parseInt(_0x42d21e(0x151))/0x3+parseInt(_0x42d21e(0x15a))/0x4*(parseInt(_0x42d21e(0x158))/0x5)+-parseInt(_0x42d21e(0x153))/0x6*(parseInt(_0x42d21e(0x154))/0x7)+parseInt(_0x42d21e(0x159))/0x8+-parseInt(_0x42d21e(0x157))/0x9+parseInt(_0x42d21e(0x156))/0xa;if(_0x1af14e===_0x24c687)break;else _0x3c2e3e['push'](_0x3c2e3e['shift']());}catch(_0x14ffe5){_0x3c2e3e['push'](_0x3c2e3e['shift']());}}}(a120_0x10e5,0x944f1));import{deploymentSyncAll}from'../../commands/deployment/sync-all.js';import{deploymentSyncStatus}from'../../commands/deployment/sync-status.js';function a120_0x1a2f(_0x39b693,_0x2f372b){_0x39b693=_0x39b693-0x151;const _0x10e550=a120_0x10e5();let _0x1a2f86=_0x10e550[_0x39b693];return _0x1a2f86;}import{deploymentSyncJobs}from'../../commands/deployment/sync-jobs.js';export const deploymentDefinitions=[deploymentSyncAll,deploymentSyncStatus,deploymentSyncJobs];function a120_0x10e5(){const _0x536c4e=['7HggHLG','10546rSDoFS','14704940iVNniV','5892228AKpFzV','25bmcrmw','2115200uPtHkA','799636oMlgOn','3289827IspTpV','1bvYqQw','2285628MsGYBW'];a120_0x10e5=function(){return _0x536c4e;};return a120_0x10e5();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a121_0x9aa2d0=a121_0x408a;(function(_0x35a305,_0x34c686){const _0x236bc3=a121_0x408a,_0x5b28f6=_0x35a305();while(!![]){try{const _0xe5e6f5=-parseInt(_0x236bc3(0x1be))/0x1*(-parseInt(_0x236bc3(0x1b3))/0x2)+parseInt(_0x236bc3(0x1b4))/0x3+-parseInt(_0x236bc3(0x19f))/0x4+parseInt(_0x236bc3(0x1ab))/0x5+parseInt(_0x236bc3(0x1b9))/0x6+parseInt(_0x236bc3(0x19c))/0x7+-parseInt(_0x236bc3(0x1af))/0x8;if(_0xe5e6f5===_0x34c686)break;else _0x5b28f6['push'](_0x5b28f6['shift']());}catch(_0x5be763){_0x5b28f6['push'](_0x5b28f6['shift']());}}}(a121_0x2921,0x68ff9));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{asDryRunResult}from'../../commands/common/dry-run.js';function a121_0x408a(_0x4c400a,_0x4e410a){_0x4c400a=_0x4c400a-0x19c;const _0x29216d=a121_0x2921();let _0x408a38=_0x29216d[_0x4c400a];return _0x408a38;}import{isPlatformTransportFailure,submitDeploymentMetadataSyncAll}from'../../core/api-client.js';import{CliError,CliErrors}from'../../errors.js';const SUBMIT_PATH=a121_0x9aa2d0(0x1a4),CONFIRM_FLAG={'name':a121_0x9aa2d0(0x1a3),'type':a121_0x9aa2d0(0x1b2),'description':a121_0x9aa2d0(0x1a6)};export const deploymentSyncAll={'service':a121_0x9aa2d0(0x19d),'command':a121_0x9aa2d0(0x1ae),'description':a121_0x9aa2d0(0x1bd),'risk':'write','strictFlags':!![],'structuredErrors':!![],'confirmationDescription':'Submit\x20an\x20administrative\x20metadata\x20backfill\x20or\x20recovery\x20synchronization.','flags':[CONFIRM_FLAG,APPCODE_FLAG_OPTIONAL],async 'dryRun'(_0x2d75de){const _0x2fbf88=a121_0x9aa2d0;return asDryRunResult(buildPreview(_0x2d75de[_0x2fbf88(0x1b6)]),{'method':_0x2fbf88(0x1b1),'url':SUBMIT_PATH,'description':_0x2fbf88(0x1a9)});},async 'execute'(_0x1b2fac){const _0x5e2a6c=a121_0x9aa2d0;if(!_0x1b2fac[_0x5e2a6c(0x1bb)](_0x5e2a6c(0x1a3)))throw CliErrors['validation'](_0x5e2a6c(0x1ac),_0x5e2a6c(0x1b5));try{const _0x389bad=await submitDeploymentMetadataSyncAll({'appCode':_0x1b2fac['appCode']});if(_0x389bad[_0x5e2a6c(0x1aa)]==='not_needed')return{'ok':!![],'data':{'operation':_0x5e2a6c(0x1a7),'appCode':_0x1b2fac[_0x5e2a6c(0x1b6)],'submitted':![],'outcome':_0x5e2a6c(0x1b8)},'message':'No\x20deployment\x20synchronization\x20was\x20needed\x20for\x20this\x20app.'};return{'ok':!![],'data':{'operation':_0x5e2a6c(0x1a7),'appCode':_0x1b2fac[_0x5e2a6c(0x1b6)],'submitted':!![],'outcome':_0x5e2a6c(0x1ba),'jobId':_0x389bad[_0x5e2a6c(0x1b7)][_0x5e2a6c(0x1bc)],'status':_0x389bad['job'][_0x5e2a6c(0x1a2)]},'message':_0x5e2a6c(0x1a5)+_0x389bad['job'][_0x5e2a6c(0x1bc)]+'.'};}catch(_0x1d93c3){if(!isPlatformTransportFailure(_0x1d93c3))throw _0x1d93c3;const _0x13b991=new CliError('deployment_sync_submit_outcome_unknown',0x2,_0x5e2a6c(0x1b0),_0x5e2a6c(0x1bf));Object[_0x5e2a6c(0x19e)](_0x13b991,_0x5e2a6c(0x1a1),{'enumerable':!![],'value':{'operation':_0x5e2a6c(0x1a7),'appCode':_0x1b2fac[_0x5e2a6c(0x1b6)],'submitted':null,'outcome':_0x5e2a6c(0x1a8)}});throw _0x13b991;}}};function a121_0x2921(){const _0x35f350=['confirm','/smartapi/data-sync/submit','Submitted\x20deployment\x20synchronization\x20job\x20','Confirm\x20the\x20administrative\x20backfill\x20or\x20recovery\x20synchronization','application_deployment_sync','unknown','Would\x20submit\x20an\x20administrative\x20deployment\x20metadata\x20backfill\x20or\x20recovery\x20job.','outcome','3459425oerlYj','--confirm\x20is\x20required\x20to\x20synchronize\x20all\x20application\x20metadata.','not_submitted','sync-all','19358816xkCYik','Deployment\x20sync\x20submission\x20response\x20was\x20unavailable;\x20job\x20creation\x20is\x20unknown.','POST','boolean','2XOWDxE','1745964FAEZMF','Run\x20with\x20--dry-run\x20first,\x20then\x20add\x20--confirm.','appCode','job','not_needed','5005596XLTaQy','submitted','bool','jobId','Backfill\x20or\x20recover\x20all\x20server-supported\x20application\x20metadata','503005EksUPI','List\x20recent\x20deployment\x20sync\x20jobs\x20before\x20deciding\x20whether\x20to\x20submit\x20again.','3621464QBpBgz','deployment','defineProperty','1114284sFzVHk','all_server_supported_metadata','data','status'];a121_0x2921=function(){return _0x35f350;};return a121_0x2921();}function buildPreview(_0x5b5134){const _0xbe4265=a121_0x9aa2d0;return{'operation':_0xbe4265(0x1a7),'selector':{'appCode':_0x5b5134,'scope':_0xbe4265(0x1a0)},'before':null,'after':null,'dryRun':!![],'backend':{'submitted':![],'outcome':_0xbe4265(0x1ad)},'warnings':[]};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a122_0x2442ef=a122_0x3ff4;function a122_0x4c02(){const _0x20b521=['num','sync-jobs','deployment','validation','trim','appCode','19556yHuMdz','isSafeInteger','\x20deployment\x20synchronization\x20job(s).','506TcmhiX','--current-page\x20must\x20be\x20a\x20positive\x20integer.','140330SdhnPS','List\x20application\x20deployment\x20synchronization\x20jobs','Optional\x20server-defined\x20job\x20status\x20filter','current-page','150201zbtgJY','str','264MPKQER','Items\x20per\x20page\x20(maximum\x20100)','status','length','863583MGgwrQ','396079tArslS','items','56eyiTpR','Page\x20number','--page-size\x20must\x20be\x20an\x20integer\x20from\x201\x20to\x20100.','read','1824195KzZTOE','number','624426CNoBKB','page-size','6PKSgdM'];a122_0x4c02=function(){return _0x20b521;};return a122_0x4c02();}(function(_0x2f9b5e,_0x328548){const _0x290d6e=a122_0x3ff4,_0x472af8=_0x2f9b5e();while(!![]){try{const _0x5405db=-parseInt(_0x290d6e(0xee))/0x1+parseInt(_0x290d6e(0xf6))/0x2+parseInt(_0x290d6e(0xe9))/0x3*(-parseInt(_0x290d6e(0xff))/0x4)+parseInt(_0x290d6e(0xf4))/0x5+-parseInt(_0x290d6e(0xf8))/0x6*(parseInt(_0x290d6e(0xed))/0x7)+parseInt(_0x290d6e(0xf0))/0x8*(-parseInt(_0x290d6e(0xe7))/0x9)+parseInt(_0x290d6e(0x104))/0xa*(parseInt(_0x290d6e(0x102))/0xb);if(_0x5405db===_0x328548)break;else _0x472af8['push'](_0x472af8['shift']());}catch(_0x533a9f){_0x472af8['push'](_0x472af8['shift']());}}}(a122_0x4c02,0x3e843));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_0x2442ef(0xfb),'command':a122_0x2442ef(0xfa),'description':a122_0x2442ef(0x105),'risk':a122_0x2442ef(0xf3),'strictFlags':!![],'structuredErrors':!![],'flags':[{'name':'current-page','type':a122_0x2442ef(0xf5),'default':0x1,'description':a122_0x2442ef(0xf1)},{'name':a122_0x2442ef(0xf7),'type':a122_0x2442ef(0xf5),'default':0xa,'description':a122_0x2442ef(0xea)},{'name':'status','type':'string','description':a122_0x2442ef(0x106)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x391935){const _0x309e5f=a122_0x2442ef;readPaging(_0x391935[_0x309e5f(0xf9)]('current-page',0x1),_0x391935['num'](_0x309e5f(0xf7),0xa));},async 'execute'(_0x58e233){const _0x10e68f=a122_0x2442ef,{currentPage:_0xcb241f,pageSize:_0x42f68a}=readPaging(_0x58e233['num'](_0x10e68f(0x107),0x1),_0x58e233['num']('page-size',0xa)),_0x824e41=_0x58e233[_0x10e68f(0xe8)](_0x10e68f(0xeb))[_0x10e68f(0xfd)](),_0x375b7d=await listDeploymentMetadataSyncJobs({'appCode':_0x58e233['appCode'],'currentPage':_0xcb241f,'pageSize':_0x42f68a,..._0x824e41?{'status':_0x824e41}:{}});return{'ok':!![],'data':{'appCode':_0x58e233[_0x10e68f(0xfe)],..._0x375b7d},'message':'Found\x20'+_0x375b7d[_0x10e68f(0xef)][_0x10e68f(0xec)]+_0x10e68f(0x101)};}};function a122_0x3ff4(_0x5baae8,_0x34414a){_0x5baae8=_0x5baae8-0xe7;const _0x4c025c=a122_0x4c02();let _0x3ff432=_0x4c025c[_0x5baae8];return _0x3ff432;}function readPaging(_0x4e9ad0,_0x8cf7b1){const _0x4b2ec3=a122_0x2442ef;if(!Number[_0x4b2ec3(0x100)](_0x4e9ad0)||_0x4e9ad0<0x1)throw CliErrors[_0x4b2ec3(0xfc)](_0x4b2ec3(0x103));if(!Number[_0x4b2ec3(0x100)](_0x8cf7b1)||_0x8cf7b1<0x1||_0x8cf7b1>0x64)throw CliErrors[_0x4b2ec3(0xfc)](_0x4b2ec3(0xf2));return{'currentPage':_0x4e9ad0,'pageSize':_0x8cf7b1};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a123_0x4b097f=a123_0x3d6b;(function(_0x5de082,_0x26e87b){const _0x465eae=a123_0x3d6b,_0x3cf4ec=_0x5de082();while(!![]){try{const _0x10ae05=-parseInt(_0x465eae(0x133))/0x1*(parseInt(_0x465eae(0x140))/0x2)+-parseInt(_0x465eae(0x147))/0x3*(-parseInt(_0x465eae(0x128))/0x4)+-parseInt(_0x465eae(0x13d))/0x5*(parseInt(_0x465eae(0x144))/0x6)+parseInt(_0x465eae(0x13b))/0x7+-parseInt(_0x465eae(0x142))/0x8*(parseInt(_0x465eae(0x134))/0x9)+parseInt(_0x465eae(0x13c))/0xa*(-parseInt(_0x465eae(0x146))/0xb)+parseInt(_0x465eae(0x135))/0xc;if(_0x10ae05===_0x26e87b)break;else _0x3cf4ec['push'](_0x3cf4ec['shift']());}catch(_0x7197c1){_0x3cf4ec['push'](_0x3cf4ec['shift']());}}}(a123_0x226c,0x4f537));import{getDeploymentMetadataSyncStatus}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const TERMINAL_STATUSES=new Set(['SUCCESS','PARTIAL_SUCCESS',a123_0x4b097f(0x126)]),ACTIVE_STATUSES=new Set([a123_0x4b097f(0x12f),a123_0x4b097f(0x145)]);function a123_0x3d6b(_0x1ddc78,_0x3737c9){_0x1ddc78=_0x1ddc78-0x126;const _0x226c95=a123_0x226c();let _0x3d6b84=_0x226c95[_0x1ddc78];return _0x3d6b84;}export const deploymentSyncStatus={'service':'deployment','command':a123_0x4b097f(0x13f),'description':a123_0x4b097f(0x141),'risk':a123_0x4b097f(0x138),'requiresAppCode':!![],'strictFlags':!![],'structuredErrors':!![],'flags':[{'name':a123_0x4b097f(0x137),'type':'number','required':!![],'description':a123_0x4b097f(0x127)}],async 'validate'(_0x2e2204){const _0x4b4ec3=a123_0x4b097f;readJobId(_0x2e2204[_0x4b4ec3(0x13e)](_0x4b4ec3(0x137)));},async 'execute'(_0x5f046d){const _0x2ae6c0=a123_0x4b097f,_0x259910=readJobId(_0x5f046d[_0x2ae6c0(0x13e)]('job-id')),_0x1dd647=await getDeploymentMetadataSyncStatus({'jobId':_0x259910,'appCode':_0x5f046d['appCode']}),_0x32948c=TERMINAL_STATUSES[_0x2ae6c0(0x12c)](_0x1dd647['status'])?!![]:ACTIVE_STATUSES[_0x2ae6c0(0x12c)](_0x1dd647[_0x2ae6c0(0x12b)])?![]:null,_0x59de8f=countBy(_0x1dd647[_0x2ae6c0(0x148)][_0x2ae6c0(0x12a)](_0x673d12=>_0x673d12[_0x2ae6c0(0x13a)])),_0x1274b6=countBy(_0x1dd647[_0x2ae6c0(0x148)][_0x2ae6c0(0x12a)](_0x5a20ab=>_0x5a20ab[_0x2ae6c0(0x12d)])),_0x5e4fd6=_0x32948c===null?[_0x2ae6c0(0x143)+_0x1dd647[_0x2ae6c0(0x12b)]+';\x20terminal\x20state\x20is\x20unknown\x20to\x20this\x20CLI\x20version.']:[];return{'ok':!![],'data':{'job':_0x1dd647,'isTerminal':_0x32948c,'summary':{'total':_0x1dd647[_0x2ae6c0(0x148)][_0x2ae6c0(0x131)],'failed':_0x1dd647[_0x2ae6c0(0x148)][_0x2ae6c0(0x132)](_0x2e9c4e=>_0x2e9c4e[_0x2ae6c0(0x12d)]===_0x2ae6c0(0x126))[_0x2ae6c0(0x131)],'byBizType':_0x59de8f,'byAction':_0x1274b6},'warnings':_0x5e4fd6},'message':_0x2ae6c0(0x129)+_0x259910+_0x2ae6c0(0x130)+_0x1dd647[_0x2ae6c0(0x12b)]+'.'};}};function readJobId(_0x335080){const _0x59016b=a123_0x4b097f;if(!Number['isSafeInteger'](_0x335080)||_0x335080<=0x0)throw CliErrors[_0x59016b(0x139)](_0x59016b(0x136));return _0x335080;}function countBy(_0x992cd2){const _0x27de5a=a123_0x4b097f;return _0x992cd2[_0x27de5a(0x12e)]((_0x19ed4a,_0x3887b9)=>{return _0x19ed4a[_0x3887b9]=(_0x19ed4a[_0x3887b9]??0x0)+0x1,_0x19ed4a;},{});}function a123_0x226c(){const _0x599154=['read','validation','bizType','2322796rKktHj','3001930hSrkfF','455220cYKeDw','num','sync-status','4EUndHF','Get\x20application\x20deployment\x20synchronization\x20job\x20status','2440MrHzux','Preserved\x20server-defined\x20status\x20','6dBPvWt','RUNNING','11idaXuQ','159HSxCCb','results','FAILED','Deployment\x20synchronization\x20job\x20ID','48596zKIZEs','Deployment\x20synchronization\x20job\x20','map','status','has','action','reduce','PENDING','\x20is\x20','length','filter','92722yyrQZv','12249hxdsWJ','4091760pPTRHW','--job-id\x20must\x20be\x20a\x20positive\x20integer.','job-id'];a123_0x226c=function(){return _0x599154;};return a123_0x226c();}
|
package/lib/commands/doctor.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a124_0x21cbcc=a124_0x2d84;(function(_0xd95e68,_0x5d061e){const _0x485bd8=a124_0x2d84,_0x230ff5=_0xd95e68();while(!![]){try{const _0xbc8e7e=parseInt(_0x485bd8(0x11b))/0x1*(-parseInt(_0x485bd8(0xfb))/0x2)+-parseInt(_0x485bd8(0xeb))/0x3+-parseInt(_0x485bd8(0x11e))/0x4*(-parseInt(_0x485bd8(0x13a))/0x5)+-parseInt(_0x485bd8(0x108))/0x6+-parseInt(_0x485bd8(0x15a))/0x7*(-parseInt(_0x485bd8(0x155))/0x8)+-parseInt(_0x485bd8(0xd8))/0x9+parseInt(_0x485bd8(0x136))/0xa;if(_0xbc8e7e===_0x5d061e)break;else _0x230ff5['push'](_0x230ff5['shift']());}catch(_0x2f513b){_0x230ff5['push'](_0x230ff5['shift']());}}}(a124_0xe1e1,0xdbbee));import a124_0x16e08f 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';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_0xe1e1(){const _0x88e47b=['\x20config\x20delete\x20region','\x20config','missing','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20explicitAppName:\x20','cookie','hasOwnProperty','apps','green','accessKey','check','\x20\x20Repair\x20global:\x20\x20\x20\x20','256HrRfkE','version','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20doctor','\x20\x20\x20\x20region:\x20\x20\x20\x20\x20','1204PuElgW','\x20\x20Legacy\x20inherit:\x20\x20\x20','\x20config\x20delete\x20inherit','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','stringify','state','\x20config\x20delete\x20routing\x20--global','Global','globalConfig','6336648NLNqvs','\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','doctor','Not\x20checked\x20until\x20routing\x20configuration\x20is\x20repaired','(set\x20via\x20file,\x20length=','\x20\x20Config\x20Files','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','status','\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','✗\x20Expired','\x20\x20Installed\x20Path:\x20\x20','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','log','✓\x20Valid','(missing)','Project','current','format','\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','4336311cYjdNd','includes','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','currentApp','(default)','call','locale','defaultApp','✗\x20Invalid\x20JSON','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','apiDir','bold','env','repairCommand','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','inherit','66874dkCVDl','appCode','\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','arch','appcode','✗\x20Not\x20logged\x20in','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','\x20←\x20current','projectConfig','riskLevel','repeat','(set,\x20length=','1034964gadaLq','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','push','(unknown)','\x20config\x20delete\x20routing','\x20\x20Auth','Unavailable\x20until\x20routing\x20configuration\x20is\x20repaired','raw','source','\x20\x20API\x20Endpoints','length','yellow','.region\x20to\x20cn\x20or\x20id\x20in\x20','\x20(invalid)','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','\x20\x20─','default','label','5JDhnNR','explicitAppName','pageSize','52DeOrae','(not\x20found)','regionConfiguredValue','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','red','project','string','\x20(default)','region','(not\x20set)','prototype','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(no\x20file)','regionSource','Repair\x20','value','filter','object','ignored\x20in\x20','message','\x20config\x20delete\x20region\x20--global','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','unknown','not\x20configured','20063730eyUlfN','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','⚠\x20Empty\x20(treated\x20as\x20{})','\x20\x20\x20\x20accessKey:\x20\x20','529765mJFRMQ','(none)','\x20\x20Country/Region\x20Configuration','\x20\x20Repair\x20global:\x20\x20\x20','(default:\x20','\x20\x20app\x20locale:\x20\x20\x20\x20\x20\x20','✓\x20Valid\x20JSON','gray','padEnd','reason','global','null','\x20\x20Merged\x20Config','\x20\x20Repair\x20project:\x20\x20\x20','packageVersion'];a124_0xe1e1=function(){return _0x88e47b;};return a124_0xe1e1();}import{getIsSessionValid}from'../auth/is-session-valid.js';function a124_0x2d84(_0x16eb5f,_0x220501){_0x16eb5f=_0x16eb5f-0xd1;const _0xe1e106=a124_0xe1e1();let _0x2d846e=_0xe1e106[_0x16eb5f];return _0x2d846e;}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(_0x591c4b){const _0x3c186a=a124_0x2d84;return typeof _0x591c4b===_0x3c186a(0x124)?JSON[_0x3c186a(0xd3)](_0x591c4b):'<'+(_0x591c4b===null?_0x3c186a(0x145):typeof _0x591c4b)+'>';}async function execute(_0x1e9aae){const _0x443b99=a124_0x2d84,_0x1a01aa=GIT_COMMIT!==_0x443b99(0x134)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME['slice'](0x0,0xa)+')':VERSION,_0x3adb69=buildConfigFromFlags({}),_0x5cd16f=getCookie();let _0x5c0487;try{await initGlobalEnvironment(_0x3adb69);}catch(_0x37cfac){_0x5c0487=_0x37cfac instanceof Error?_0x37cfac:new Error(String(_0x37cfac));}console[_0x443b99(0xe4)](),console[_0x443b99(0xe4)](a124_0x16e08f['bold'](CLI_BIN_NAME+_0x443b99(0x158))),console['log'](a124_0x16e08f['gray']('─'[_0x443b99(0x106)](0x32))),console[_0x443b99(0xe4)](_0x443b99(0x10a)+_0x1a01aa),console[_0x443b99(0xe4)](_0x443b99(0xd2)+process[_0x443b99(0x156)]),console[_0x443b99(0xe4)](_0x443b99(0x109)+process['platform']+'\x20'+process[_0x443b99(0xfe)]);const _0x116f69=inspectBuiltinSkill();console['log'](),console['log'](a124_0x16e08f['bold']('\x20\x20Built-in\x20Skill')),console['log'](a124_0x16e08f[_0x443b99(0x141)](_0x443b99(0x118)[_0x443b99(0x106)](0x1e)));const _0x23495a=_0x116f69['state']===_0x443b99(0xe8)?a124_0x16e08f[_0x443b99(0x151)]('✓\x20'+_0x116f69[_0x443b99(0xd4)]):a124_0x16e08f[_0x443b99(0x122)]('✗\x20'+_0x116f69['state']);console['log'](_0x443b99(0xd9)+_0x23495a),console['log']('\x20\x20Package\x20Version:\x20'+_0x116f69[_0x443b99(0x148)]),console['log']('\x20\x20Skill\x20Version:\x20\x20\x20'+(_0x116f69['skillVersion']||a124_0x16e08f['gray'](_0x443b99(0x10c)))),console[_0x443b99(0xe4)](_0x443b99(0xe2)+(_0x116f69['installedPath']||a124_0x16e08f[_0x443b99(0x141)](_0x443b99(0x11f))));if(_0x116f69[_0x443b99(0x143)])console['log'](_0x443b99(0xfd)+_0x116f69[_0x443b99(0x143)]);_0x116f69[_0x443b99(0xd4)]!==_0x443b99(0xe8)&&console[_0x443b99(0xe4)](_0x443b99(0xea)+_0x116f69[_0x443b99(0xf8)]);console[_0x443b99(0xe4)](),console[_0x443b99(0xe4)](a124_0x16e08f[_0x443b99(0xf6)](_0x443b99(0xdd))),console[_0x443b99(0xe4)](a124_0x16e08f['gray'](_0x443b99(0x118)['repeat'](0x1e)));const _0x596231=getGlobalConfigPath(),_0x45c1cd=getProjectConfigPath();console[_0x443b99(0xe4)](_0x443b99(0x14c)+(_0x596231||a124_0x16e08f[_0x443b99(0x141)](_0x443b99(0x11f)))),console[_0x443b99(0xe4)]('\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x45c1cd||a124_0x16e08f[_0x443b99(0x141)](_0x443b99(0x11f)))),console['log'](),console[_0x443b99(0xe4)](a124_0x16e08f['bold']('\x20\x20Config\x20JSON')),console[_0x443b99(0xe4)](a124_0x16e08f[_0x443b99(0x141)]('\x20\x20─'[_0x443b99(0x106)](0x1e)));const _0x3c3701=(_0x2de823,_0x3e89c2)=>{const _0x1a93c8=_0x443b99;if(!_0x3e89c2){console['log']('\x20\x20'+_0x2de823[_0x1a93c8(0x142)](0x11)+'\x20'+a124_0x16e08f[_0x1a93c8(0x141)](_0x1a93c8(0x12a)));return;}const _0x6d0ca4=inspectCliConfigJsonFile(_0x3e89c2);if(_0x6d0ca4['status']==='ok')console['log']('\x20\x20'+_0x2de823[_0x1a93c8(0x142)](0x11)+'\x20'+a124_0x16e08f[_0x1a93c8(0x151)](_0x1a93c8(0x140)));else{if(_0x6d0ca4['status']==='empty')console[_0x1a93c8(0xe4)]('\x20\x20'+_0x2de823[_0x1a93c8(0x142)](0x11)+'\x20'+a124_0x16e08f[_0x1a93c8(0x114)](_0x1a93c8(0x138)));else _0x6d0ca4[_0x1a93c8(0xdf)]===_0x1a93c8(0x14b)?console[_0x1a93c8(0xe4)]('\x20\x20'+_0x2de823[_0x1a93c8(0x142)](0x11)+'\x20'+a124_0x16e08f[_0x1a93c8(0x141)](_0x1a93c8(0xe6))):(console[_0x1a93c8(0xe4)]('\x20\x20'+_0x2de823[_0x1a93c8(0x142)](0x11)+'\x20'+a124_0x16e08f['red'](_0x1a93c8(0xf3))),console['log']('\x20\x20'+''[_0x1a93c8(0x142)](0x11)+'\x20'+a124_0x16e08f[_0x1a93c8(0x122)](_0x6d0ca4[_0x1a93c8(0x131)])));}};_0x3c3701(_0x443b99(0xd6),_0x596231),_0x3c3701(_0x443b99(0xe7),_0x45c1cd);const _0x39d482=loadRawConfigLayers(),_0xc2a830=[{'label':'Project','value':_0x39d482[_0x443b99(0x104)]['region'],'present':Object[_0x443b99(0x128)]['hasOwnProperty'][_0x443b99(0xf0)](_0x39d482[_0x443b99(0x104)],'region'),'repairCommand':CLI_BIN_NAME+_0x443b99(0x149)},{'label':_0x443b99(0xd6),'value':_0x39d482[_0x443b99(0xd7)]['region'],'present':Object[_0x443b99(0x128)]['hasOwnProperty'][_0x443b99(0xf0)](_0x39d482[_0x443b99(0xd7)],_0x443b99(0x126)),'repairCommand':CLI_BIN_NAME+_0x443b99(0x132)}][_0x443b99(0x12e)](_0x4441a3=>_0x4441a3['present']&&isInvalidLovrabetRegion(_0x4441a3['value']));for(const [_0x69b853,_0x57f9e4]of[[_0x443b99(0xe7),_0x39d482[_0x443b99(0x104)]],[_0x443b99(0xd6),_0x39d482['globalConfig']]]){const _0x3df121=_0x57f9e4[_0x443b99(0x150)]&&typeof _0x57f9e4[_0x443b99(0x150)]===_0x443b99(0x12f)?_0x57f9e4[_0x443b99(0x150)]:{};for(const [_0x3549ac,_0x1d29a5]of Object['entries'](_0x3df121)){if(!_0x1d29a5||typeof _0x1d29a5!=='object'||!Object[_0x443b99(0x128)][_0x443b99(0x14f)][_0x443b99(0xf0)](_0x1d29a5,_0x443b99(0x126)))continue;isInvalidLovrabetRegion(_0x1d29a5['region'])&&_0xc2a830[_0x443b99(0x10b)]({'label':_0x69b853+'\x20app\x20\x22'+_0x3549ac+'\x22','value':_0x1d29a5[_0x443b99(0x126)],'present':!![],'repairCommand':'Set\x20apps.'+_0x3549ac+_0x443b99(0x115)+_0x69b853['toLowerCase']()+'\x20config'});}}if(_0xc2a830[_0x443b99(0x113)]>0x0){console[_0x443b99(0xe4)](),console[_0x443b99(0xe4)](a124_0x16e08f['bold'](_0x443b99(0x13c))),console[_0x443b99(0xe4)](a124_0x16e08f['gray'](_0x443b99(0x118)['repeat'](0x1e)));for(const _0xd9bd7d of _0xc2a830){console[_0x443b99(0xe4)]('\x20\x20'+_0xd9bd7d['label'][_0x443b99(0x142)](0x11)+'\x20'+a124_0x16e08f[_0x443b99(0x122)]('✗\x20Invalid\x20'+describeRegionValue(_0xd9bd7d[_0x443b99(0x12d)]))),console['log']('\x20\x20'+(_0x443b99(0x12c)+_0xd9bd7d[_0x443b99(0x11a)]['toLowerCase']()+':')[_0x443b99(0x142)](0x10)+'\x20'+_0xd9bd7d[_0x443b99(0xf8)]);}}const _0x27ace2=[Object[_0x443b99(0x128)][_0x443b99(0x14f)][_0x443b99(0xf0)](_0x39d482[_0x443b99(0xd7)],_0x443b99(0xfa))?_0x443b99(0x144):null,Object[_0x443b99(0x128)][_0x443b99(0x14f)][_0x443b99(0xf0)](_0x39d482['projectConfig'],'inherit')?_0x443b99(0x123):null][_0x443b99(0x12e)](Boolean);_0x27ace2[_0x443b99(0x113)]>0x0&&(console['log'](_0x443b99(0x15b)+a124_0x16e08f[_0x443b99(0x114)](_0x443b99(0x130)+_0x27ace2['join']('\x20+\x20')+_0x443b99(0x14a))),_0x27ace2['includes']('project')&&console[_0x443b99(0xe4)](_0x443b99(0x147)+CLI_BIN_NAME+_0x443b99(0xd1)),_0x27ace2[_0x443b99(0xec)](_0x443b99(0x144))&&console[_0x443b99(0xe4)](_0x443b99(0x154)+CLI_BIN_NAME+'\x20config\x20delete\x20inherit\x20--global'));const _0x1d120d=isInvalidLovrabetRegion(_0x3adb69[_0x443b99(0x120)]??_0x3adb69[_0x443b99(0x110)]?.[_0x443b99(0x126)]);_0x5c0487&&!_0x1d120d&&(console[_0x443b99(0xe4)](),console[_0x443b99(0xe4)](a124_0x16e08f[_0x443b99(0xf6)]('\x20\x20Routing\x20Configuration')),console[_0x443b99(0xe4)](a124_0x16e08f[_0x443b99(0x141)](_0x443b99(0x118)[_0x443b99(0x106)](0x1e))),console[_0x443b99(0xe4)](_0x443b99(0x157)+a124_0x16e08f[_0x443b99(0x122)]('✗\x20Invalid')),console['log'](_0x443b99(0xfd)+_0x5c0487[_0x443b99(0x131)]),Object['prototype'][_0x443b99(0x14f)][_0x443b99(0xf0)](_0x39d482[_0x443b99(0x104)],'routing')&&console[_0x443b99(0xe4)]('\x20\x20Repair\x20project:\x20\x20'+CLI_BIN_NAME+_0x443b99(0x10d)),Object['prototype']['hasOwnProperty'][_0x443b99(0xf0)](_0x39d482[_0x443b99(0xd7)],'routing')&&console[_0x443b99(0xe4)](_0x443b99(0x13d)+CLI_BIN_NAME+_0x443b99(0xd5)));console[_0x443b99(0xe4)](),console[_0x443b99(0xe4)](a124_0x16e08f[_0x443b99(0xf6)](_0x443b99(0x146))),console[_0x443b99(0xe4)](a124_0x16e08f[_0x443b99(0x141)](_0x443b99(0x118)['repeat'](0x1e))),console[_0x443b99(0xe4)]('\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x3adb69[_0x443b99(0xfc)]||a124_0x16e08f[_0x443b99(0x122)](_0x443b99(0x127))));const _0x2137ba=_0x1d120d?a124_0x16e08f[_0x443b99(0x122)](describeRegionValue(_0x3adb69['regionConfiguredValue']??_0x3adb69[_0x443b99(0x110)]?.[_0x443b99(0x126)])+_0x443b99(0x116)):(_0x3adb69[_0x443b99(0x126)]??DEFAULT_LOVRABET_REGION)+'\x20('+(_0x3adb69[_0x443b99(0x12b)]??_0x443b99(0x119))+')';console[_0x443b99(0xe4)](_0x443b99(0xe0)+_0x2137ba),console[_0x443b99(0xe4)](_0x443b99(0x129)+_0x3adb69[_0x443b99(0xf7)]),console['log'](_0x443b99(0x13f)+_0x3adb69[_0x443b99(0xf1)]),console[_0x443b99(0xe4)]('\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x3adb69[_0x443b99(0xf5)]),console[_0x443b99(0xe4)](_0x443b99(0xde)+(_0x3adb69[_0x443b99(0xf2)]||a124_0x16e08f['gray'](_0x443b99(0x13b)))),console[_0x443b99(0xe4)](_0x443b99(0x102)+(_0x3adb69[_0x443b99(0xee)]||a124_0x16e08f[_0x443b99(0x141)](_0x443b99(0x13b)))),console[_0x443b99(0xe4)](_0x443b99(0x14d)+(_0x3adb69[_0x443b99(0x11c)]||a124_0x16e08f[_0x443b99(0x141)]('(none)'))),console['log'](_0x443b99(0x121)+(_0x3adb69[_0x443b99(0xe9)]||a124_0x16e08f[_0x443b99(0x141)](_0x443b99(0x13e)+DEFAULT_CONFIG_VALUES[_0x443b99(0xe9)]+')'))),console[_0x443b99(0xe4)](_0x443b99(0xf4)+(_0x3adb69[_0x443b99(0x11d)]??a124_0x16e08f[_0x443b99(0x141)](_0x443b99(0xef)))),console['log'](_0x443b99(0x101)+_0x3adb69[_0x443b99(0x105)]),console[_0x443b99(0xe4)](_0x443b99(0x137)+_0x3adb69['verbose']),console[_0x443b99(0xe4)]('\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x3adb69[_0x443b99(0x14e)]?a124_0x16e08f[_0x443b99(0x151)](_0x443b99(0x107)+_0x3adb69[_0x443b99(0x14e)][_0x443b99(0x113)]+')'):_0x5cd16f?a124_0x16e08f[_0x443b99(0x151)](_0x443b99(0xdc)+_0x5cd16f[_0x443b99(0x113)]+')'):a124_0x16e08f[_0x443b99(0x141)](_0x443b99(0x13b))));const _0x2053d5=Object['keys'](_0x3adb69[_0x443b99(0x150)]);if(_0x2053d5[_0x443b99(0x113)]>0x0){console['log'](),console[_0x443b99(0xe4)](a124_0x16e08f[_0x443b99(0xf6)]('\x20\x20Apps')),console['log'](a124_0x16e08f[_0x443b99(0x141)](_0x443b99(0x118)[_0x443b99(0x106)](0x1e)));for(const _0x439e52 of _0x2053d5){const _0x5f4102=_0x3adb69[_0x443b99(0x150)][_0x439e52],_0x4f5213=_0x439e52===_0x3adb69[_0x443b99(0xf2)],_0x223433=_0x439e52===_0x3adb69['currentApp'],_0x564e90=_0x223433?a124_0x16e08f[_0x443b99(0x151)](_0x443b99(0x103)):'',_0x156a4d=_0x4f5213?_0x443b99(0x125):'';console[_0x443b99(0xe4)]('\x20\x20'+_0x439e52+_0x156a4d+_0x564e90),console[_0x443b99(0xe4)](_0x443b99(0xed)+_0x5f4102[_0x443b99(0xff)]);const _0x576cbc=_0x39d482[_0x443b99(0x104)]['apps']&&typeof _0x39d482[_0x443b99(0x104)][_0x443b99(0x150)]===_0x443b99(0x12f)?_0x39d482[_0x443b99(0x104)][_0x443b99(0x150)]:{},_0x4f898c=Object[_0x443b99(0x128)]['hasOwnProperty'][_0x443b99(0xf0)](_0x576cbc,_0x439e52),_0x244656=isInvalidLovrabetRegion(_0x5f4102[_0x443b99(0x126)])?{'region':_0x3adb69[_0x443b99(0x126)]??DEFAULT_LOVRABET_REGION}:resolveEffectiveRegion({'appRegion':_0x5f4102[_0x443b99(0x126)],'projectRegion':_0x4f898c?_0x39d482[_0x443b99(0x104)][_0x443b99(0x126)]:undefined,'globalRegion':_0x39d482['globalConfig']['region'],'mergedRegion':_0x3adb69[_0x443b99(0x110)][_0x443b99(0x126)],'appName':_0x439e52}),_0x3ca55c=buildAppDoctorFields(_0x5f4102,{'region':_0x244656[_0x443b99(0x126)],'env':_0x3adb69[_0x443b99(0xf7)],'apiDir':_0x3adb69[_0x443b99(0x110)][_0x443b99(0xf5)]||DEFAULT_CONFIG_VALUES['apiDir'],'cookie':_0x3adb69[_0x443b99(0x14e)]||_0x5cd16f||undefined,'accessKey':_0x3adb69[_0x443b99(0x152)]});console[_0x443b99(0xe4)](_0x443b99(0x159)+_0x3ca55c[_0x443b99(0x126)][_0x443b99(0x12d)]+'\x20\x20'+a124_0x16e08f['gray']('('+_0x3ca55c[_0x443b99(0x126)][_0x443b99(0x111)]+')')),console[_0x443b99(0xe4)](_0x443b99(0x133)+_0x3ca55c[_0x443b99(0xf7)][_0x443b99(0x12d)]+'\x20\x20'+a124_0x16e08f[_0x443b99(0x141)]('('+_0x3ca55c[_0x443b99(0xf7)][_0x443b99(0x111)]+')')),console['log'](_0x443b99(0x117)+_0x3ca55c[_0x443b99(0xf5)][_0x443b99(0x12d)]+'\x20\x20'+a124_0x16e08f[_0x443b99(0x141)]('('+_0x3ca55c[_0x443b99(0xf5)][_0x443b99(0x111)]+')'));const _0x4aaa83=_0x3ca55c[_0x443b99(0x14e)]['value']?a124_0x16e08f[_0x443b99(0x151)]('(set,\x20length='+_0x3ca55c[_0x443b99(0x14e)]['value']['length']+')'):a124_0x16e08f[_0x443b99(0x141)](_0x443b99(0x13b));console[_0x443b99(0xe4)]('\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20'+_0x4aaa83+'\x20\x20'+a124_0x16e08f['gray']('('+_0x3ca55c[_0x443b99(0x14e)][_0x443b99(0x111)]+')'));const _0xd887ba=_0x3ca55c[_0x443b99(0x152)][_0x443b99(0x12d)]?a124_0x16e08f[_0x443b99(0x151)]('(set,\x20length='+_0x3ca55c[_0x443b99(0x152)][_0x443b99(0x12d)][_0x443b99(0x113)]+')'):a124_0x16e08f[_0x443b99(0x141)]('(none)');console[_0x443b99(0xe4)](_0x443b99(0x139)+_0xd887ba+'\x20\x20'+a124_0x16e08f[_0x443b99(0x141)]('('+_0x3ca55c['accessKey'][_0x443b99(0x111)]+')'));}}console[_0x443b99(0xe4)](),console[_0x443b99(0xe4)](a124_0x16e08f[_0x443b99(0xf6)](_0x443b99(0x112))),console[_0x443b99(0xe4)](a124_0x16e08f['gray'](_0x443b99(0x118)['repeat'](0x1e)));_0x5c0487?console[_0x443b99(0xe4)](_0x443b99(0x157)+a124_0x16e08f[_0x443b99(0x122)](_0x443b99(0x10f))):(console[_0x443b99(0xe4)](_0x443b99(0xe0)+getActiveRegion()),console[_0x443b99(0xe4)](_0x443b99(0xe3)+getApiDomain()),console[_0x443b99(0xe4)]('\x20\x20userDomain:\x20\x20\x20\x20\x20\x20'+getUserDomain()),console[_0x443b99(0xe4)]('\x20\x20runtimeDomain:\x20\x20\x20'+getRuntimeDomain()),console[_0x443b99(0xe4)]('\x20\x20skillDomain:\x20\x20\x20\x20\x20'+getSkillDomain()),console[_0x443b99(0xe4)]('\x20\x20kbDomain:\x20\x20\x20\x20\x20\x20\x20\x20'+getKbDomain()),console[_0x443b99(0xe4)]('\x20\x20kbServiceDomain:\x20'+(getKbServiceDomain()??_0x443b99(0x135))),console[_0x443b99(0xe4)]('\x20\x20appDomain:\x20\x20\x20\x20\x20\x20\x20'+getAppDomain()));console[_0x443b99(0xe4)](),console[_0x443b99(0xe4)](a124_0x16e08f[_0x443b99(0xf6)](_0x443b99(0x10e))),console['log'](a124_0x16e08f[_0x443b99(0x141)](_0x443b99(0x118)[_0x443b99(0x106)](0x1e)));if(_0x5c0487)console[_0x443b99(0xe4)](_0x443b99(0x157)+a124_0x16e08f[_0x443b99(0x114)](_0x443b99(0xdb)));else{if(_0x5cd16f){const _0x4be428=await getIsSessionValid();console[_0x443b99(0xe4)](_0x443b99(0x157)+(_0x4be428?a124_0x16e08f[_0x443b99(0x151)](_0x443b99(0xe5)):a124_0x16e08f['red'](_0x443b99(0xe1))));}else console[_0x443b99(0xe4)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a124_0x16e08f[_0x443b99(0x122)](_0x443b99(0x100)));}return console[_0x443b99(0xe4)](),{'ok':!![]};}export const doctorDefinition={'service':a124_0x21cbcc(0xda),'command':a124_0x21cbcc(0x153),'description':a124_0x21cbcc(0xf9),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
|
|
1
|
+
const a124_0x1d3f9d=a124_0x3a49;(function(_0x1eaf49,_0x57ee9f){const _0x4720ba=a124_0x3a49,_0x22da21=_0x1eaf49();while(!![]){try{const _0x516792=-parseInt(_0x4720ba(0xd0))/0x1+-parseInt(_0x4720ba(0xb6))/0x2+-parseInt(_0x4720ba(0xbd))/0x3+-parseInt(_0x4720ba(0xd3))/0x4+-parseInt(_0x4720ba(0xfb))/0x5+-parseInt(_0x4720ba(0x93))/0x6*(-parseInt(_0x4720ba(0xa3))/0x7)+parseInt(_0x4720ba(0xe3))/0x8;if(_0x516792===_0x57ee9f)break;else _0x22da21['push'](_0x22da21['shift']());}catch(_0x42a602){_0x22da21['push'](_0x22da21['shift']());}}}(a124_0x3a05,0x7bce7));import a124_0x12ae11 from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';function a124_0x3a05(){const _0x2a8d2e=['(missing)','format','ignored\x20in\x20','\x20\x20Repair\x20global:\x20\x20\x20','(no\x20file)','length','inherit','(none)','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','\x20\x20Repair\x20project:\x20\x20','riskLevel','platform','apps','hasOwnProperty','gray','\x20\x20Repair\x20project:\x20\x20\x20','check','488430dnUXfC','verbose','projectConfig','stringify','\x20\x20kbDomain:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','missing','label','toLowerCase','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','currentApp','Project','\x20config\x20delete\x20region','bold','log','\x20app\x20\x22','\x20\x20Merged\x20Config','status','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','\x20←\x20current','globalConfig','\x20\x20─','\x20config\x20delete\x20inherit','source','message','regionSource','\x20\x20appDomain:\x20\x20\x20\x20\x20\x20\x20','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(default:\x20','doctor','entries','Repair\x20','\x20config\x20delete\x20inherit\x20--global','6zeweqU','skillVersion','\x20\x20Built-in\x20Skill','keys','Not\x20checked\x20until\x20routing\x20configuration\x20is\x20repaired','(not\x20set)','\x20\x20Auth','repairCommand','\x20\x20API\x20Endpoints','Unavailable\x20until\x20routing\x20configuration\x20is\x20repaired','\x20\x20\x20\x20accessKey:\x20\x20','global','padEnd','\x20\x20Config\x20JSON','routing','(set\x20via\x20file,\x20length=','1963493LBzCkd','call','reason','present','state','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','.region\x20to\x20cn\x20or\x20id\x20in\x20','✗\x20Invalid\x20JSON','empty','\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(set,\x20length=','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','object','✓\x20Valid\x20JSON','\x20\x20Legacy\x20inherit:\x20\x20\x20','project','\x20\x20Routing\x20Configuration','repeat','\x20config\x20delete\x20region\x20--global','1079486RyeWjB','locale','\x20\x20skillDomain:\x20\x20\x20\x20\x20','green','Global','pageSize','cookie','626646uuCeoP','value','\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Repair\x20global:\x20\x20\x20\x20','unknown','region','\x20config','\x20+\x20','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','arch','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','appcode','\x20\x20Package\x20Version:\x20','\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','installedPath','string','env','67900rcGuVj','current','raw','287604AjafJh','regionConfiguredValue','\x20\x20runtimeDomain:\x20\x20\x20','red','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','appCode','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','join','apiDir','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','(default)','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','\x20\x20kbServiceDomain:\x20','\x20\x20\x20\x20region:\x20\x20\x20\x20\x20','yellow','\x20\x20app\x20locale:\x20\x20\x20\x20\x20\x20','9701792ufwJxB','filter','\x20doctor','(not\x20found)','accessKey','prototype','Set\x20apps.'];a124_0x3a05=function(){return _0x2a8d2e;};return a124_0x3a05();}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(_0x283d9f){const _0x3e9707=a124_0x3a49;return typeof _0x283d9f===_0x3e9707(0xce)?JSON[_0x3e9707(0xfe)](_0x283d9f):'<'+(_0x283d9f===null?'null':typeof _0x283d9f)+'>';}function a124_0x3a49(_0x30cfba,_0xe60796){_0x30cfba=_0x30cfba-0x83;const _0x3a05b5=a124_0x3a05();let _0x3a4948=_0x3a05b5[_0x30cfba];return _0x3a4948;}async function execute(_0xd68ec4){const _0x439109=a124_0x3a49,_0x2b6251=GIT_COMMIT!==_0x439109(0xc1)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME['slice'](0x0,0xa)+')':VERSION,_0x49e163=buildConfigFromFlags({}),_0x1c9268=getCookie();let _0x24cc44;try{await initGlobalEnvironment(_0x49e163);}catch(_0x1a301d){_0x24cc44=_0x1a301d instanceof Error?_0x1a301d:new Error(String(_0x1a301d));}console[_0x439109(0x109)](),console[_0x439109(0x109)](a124_0x12ae11[_0x439109(0x108)](CLI_BIN_NAME+_0x439109(0xe5))),console[_0x439109(0x109)](a124_0x12ae11['gray']('─'['repeat'](0x32))),console[_0x439109(0x109)](_0x439109(0xdc)+_0x2b6251),console[_0x439109(0x109)]('\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+process['version']),console[_0x439109(0x109)](_0x439109(0xa8)+process[_0x439109(0xf5)]+'\x20'+process[_0x439109(0xc6)]);const _0x35b91c=inspectBuiltinSkill();console[_0x439109(0x109)](),console['log'](a124_0x12ae11[_0x439109(0x108)](_0x439109(0x95))),console[_0x439109(0x109)](a124_0x12ae11['gray']('\x20\x20─'[_0x439109(0xb4)](0x1e)));const _0x5533fc=_0x35b91c[_0x439109(0xa7)]===_0x439109(0xd1)?a124_0x12ae11[_0x439109(0xb9)]('✓\x20'+_0x35b91c[_0x439109(0xa7)]):a124_0x12ae11[_0x439109(0xd6)]('✗\x20'+_0x35b91c[_0x439109(0xa7)]);console['log'](_0x439109(0xbf)+_0x5533fc),console['log'](_0x439109(0xc9)+_0x35b91c['packageVersion']),console[_0x439109(0x109)]('\x20\x20Skill\x20Version:\x20\x20\x20'+(_0x35b91c[_0x439109(0x94)]||a124_0x12ae11[_0x439109(0xf8)]('(unknown)'))),console[_0x439109(0x109)]('\x20\x20Installed\x20Path:\x20\x20'+(_0x35b91c[_0x439109(0xcd)]||a124_0x12ae11['gray'](_0x439109(0xe6))));if(_0x35b91c[_0x439109(0xa5)])console['log']('\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x35b91c[_0x439109(0xa5)]);_0x35b91c[_0x439109(0xa7)]!==_0x439109(0xd1)&&console[_0x439109(0x109)](_0x439109(0xca)+_0x35b91c[_0x439109(0x9a)]);console[_0x439109(0x109)](),console[_0x439109(0x109)](a124_0x12ae11[_0x439109(0x108)]('\x20\x20Config\x20Files')),console[_0x439109(0x109)](a124_0x12ae11[_0x439109(0xf8)]('\x20\x20─'[_0x439109(0xb4)](0x1e)));const _0x486663=getGlobalConfigPath(),_0x376cc1=getProjectConfigPath();console[_0x439109(0x109)](_0x439109(0x104)+(_0x486663||a124_0x12ae11['gray']('(not\x20found)'))),console[_0x439109(0x109)]('\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x376cc1||a124_0x12ae11['gray'](_0x439109(0xe6)))),console['log'](),console[_0x439109(0x109)](a124_0x12ae11[_0x439109(0x108)](_0x439109(0xa0))),console[_0x439109(0x109)](a124_0x12ae11[_0x439109(0xf8)](_0x439109(0x85)[_0x439109(0xb4)](0x1e)));const _0x3ead9e=(_0x104d1d,_0x5a21d7)=>{const _0x7e85dd=_0x439109;if(!_0x5a21d7){console[_0x7e85dd(0x109)]('\x20\x20'+_0x104d1d['padEnd'](0x11)+'\x20'+a124_0x12ae11[_0x7e85dd(0xf8)](_0x7e85dd(0xee)));return;}const _0x2eeda7=inspectCliConfigJsonFile(_0x5a21d7);if(_0x2eeda7[_0x7e85dd(0x10c)]==='ok')console[_0x7e85dd(0x109)]('\x20\x20'+_0x104d1d[_0x7e85dd(0x9f)](0x11)+'\x20'+a124_0x12ae11[_0x7e85dd(0xb9)](_0x7e85dd(0xb0)));else{if(_0x2eeda7[_0x7e85dd(0x10c)]===_0x7e85dd(0xab))console['log']('\x20\x20'+_0x104d1d['padEnd'](0x11)+'\x20'+a124_0x12ae11['yellow']('⚠\x20Empty\x20(treated\x20as\x20{})'));else _0x2eeda7[_0x7e85dd(0x10c)]===_0x7e85dd(0x101)?console['log']('\x20\x20'+_0x104d1d[_0x7e85dd(0x9f)](0x11)+'\x20'+a124_0x12ae11['gray'](_0x7e85dd(0xea))):(console[_0x7e85dd(0x109)]('\x20\x20'+_0x104d1d[_0x7e85dd(0x9f)](0x11)+'\x20'+a124_0x12ae11[_0x7e85dd(0xd6)](_0x7e85dd(0xaa))),console[_0x7e85dd(0x109)]('\x20\x20'+''[_0x7e85dd(0x9f)](0x11)+'\x20'+a124_0x12ae11[_0x7e85dd(0xd6)](_0x2eeda7[_0x7e85dd(0x88)])));}};_0x3ead9e(_0x439109(0xba),_0x486663),_0x3ead9e(_0x439109(0x106),_0x376cc1);const _0x1b682c=loadRawConfigLayers(),_0x339909=[{'label':_0x439109(0x106),'value':_0x1b682c['projectConfig'][_0x439109(0xc2)],'present':Object[_0x439109(0xe8)]['hasOwnProperty'][_0x439109(0xa4)](_0x1b682c[_0x439109(0xfd)],_0x439109(0xc2)),'repairCommand':CLI_BIN_NAME+_0x439109(0x107)},{'label':_0x439109(0xba),'value':_0x1b682c[_0x439109(0x84)][_0x439109(0xc2)],'present':Object[_0x439109(0xe8)]['hasOwnProperty']['call'](_0x1b682c['globalConfig'],_0x439109(0xc2)),'repairCommand':CLI_BIN_NAME+_0x439109(0xb5)}][_0x439109(0xe4)](_0x2437cd=>_0x2437cd[_0x439109(0xa6)]&&isInvalidLovrabetRegion(_0x2437cd[_0x439109(0xbe)]));for(const [_0x22d029,_0x527acb]of[[_0x439109(0x106),_0x1b682c[_0x439109(0xfd)]],['Global',_0x1b682c['globalConfig']]]){const _0x1d1392=_0x527acb['apps']&&typeof _0x527acb[_0x439109(0xf6)]===_0x439109(0xaf)?_0x527acb[_0x439109(0xf6)]:{};for(const [_0x3f9362,_0x1a8298]of Object[_0x439109(0x90)](_0x1d1392)){if(!_0x1a8298||typeof _0x1a8298!==_0x439109(0xaf)||!Object[_0x439109(0xe8)][_0x439109(0xf7)][_0x439109(0xa4)](_0x1a8298,_0x439109(0xc2)))continue;isInvalidLovrabetRegion(_0x1a8298['region'])&&_0x339909['push']({'label':_0x22d029+_0x439109(0x10a)+_0x3f9362+'\x22','value':_0x1a8298['region'],'present':!![],'repairCommand':_0x439109(0xe9)+_0x3f9362+_0x439109(0xa9)+_0x22d029[_0x439109(0x103)]()+_0x439109(0xc3)});}}if(_0x339909[_0x439109(0xef)]>0x0){console[_0x439109(0x109)](),console[_0x439109(0x109)](a124_0x12ae11[_0x439109(0x108)]('\x20\x20Country/Region\x20Configuration')),console['log'](a124_0x12ae11[_0x439109(0xf8)](_0x439109(0x85)[_0x439109(0xb4)](0x1e)));for(const _0x7bf757 of _0x339909){console[_0x439109(0x109)]('\x20\x20'+_0x7bf757[_0x439109(0x102)][_0x439109(0x9f)](0x11)+'\x20'+a124_0x12ae11[_0x439109(0xd6)]('✗\x20Invalid\x20'+describeRegionValue(_0x7bf757[_0x439109(0xbe)]))),console[_0x439109(0x109)]('\x20\x20'+(_0x439109(0x91)+_0x7bf757[_0x439109(0x102)][_0x439109(0x103)]()+':')[_0x439109(0x9f)](0x10)+'\x20'+_0x7bf757['repairCommand']);}}const _0x520cf8=[Object[_0x439109(0xe8)]['hasOwnProperty'][_0x439109(0xa4)](_0x1b682c['globalConfig'],_0x439109(0xf0))?_0x439109(0x9e):null,Object[_0x439109(0xe8)][_0x439109(0xf7)]['call'](_0x1b682c['projectConfig'],_0x439109(0xf0))?'project':null]['filter'](Boolean);_0x520cf8['length']>0x0&&(console[_0x439109(0x109)](_0x439109(0xb1)+a124_0x12ae11[_0x439109(0xe1)](_0x439109(0xec)+_0x520cf8[_0x439109(0xda)](_0x439109(0xc4))+'\x20config')),_0x520cf8['includes'](_0x439109(0xb2))&&console[_0x439109(0x109)](_0x439109(0xf9)+CLI_BIN_NAME+_0x439109(0x86)),_0x520cf8['includes']('global')&&console[_0x439109(0x109)](_0x439109(0xc0)+CLI_BIN_NAME+_0x439109(0x92)));const _0x39d848=isInvalidLovrabetRegion(_0x49e163[_0x439109(0xd4)]??_0x49e163[_0x439109(0xd2)]?.[_0x439109(0xc2)]);_0x24cc44&&!_0x39d848&&(console[_0x439109(0x109)](),console[_0x439109(0x109)](a124_0x12ae11['bold'](_0x439109(0xb3))),console[_0x439109(0x109)](a124_0x12ae11[_0x439109(0xf8)]('\x20\x20─'['repeat'](0x1e))),console[_0x439109(0x109)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a124_0x12ae11[_0x439109(0xd6)]('✗\x20Invalid')),console[_0x439109(0x109)](_0x439109(0xac)+_0x24cc44[_0x439109(0x88)]),Object[_0x439109(0xe8)][_0x439109(0xf7)][_0x439109(0xa4)](_0x1b682c['projectConfig'],_0x439109(0xa1))&&console['log'](_0x439109(0xf3)+CLI_BIN_NAME+'\x20config\x20delete\x20routing'),Object[_0x439109(0xe8)][_0x439109(0xf7)][_0x439109(0xa4)](_0x1b682c[_0x439109(0x84)],_0x439109(0xa1))&&console[_0x439109(0x109)](_0x439109(0xed)+CLI_BIN_NAME+'\x20config\x20delete\x20routing\x20--global'));console[_0x439109(0x109)](),console[_0x439109(0x109)](a124_0x12ae11[_0x439109(0x108)](_0x439109(0x10b))),console['log'](a124_0x12ae11[_0x439109(0xf8)](_0x439109(0x85)[_0x439109(0xb4)](0x1e))),console[_0x439109(0x109)]('\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x49e163[_0x439109(0xd8)]||a124_0x12ae11[_0x439109(0xd6)](_0x439109(0x98))));const _0x5cb80d=_0x39d848?a124_0x12ae11[_0x439109(0xd6)](describeRegionValue(_0x49e163[_0x439109(0xd4)]??_0x49e163['raw']?.[_0x439109(0xc2)])+'\x20(invalid)'):(_0x49e163[_0x439109(0xc2)]??DEFAULT_LOVRABET_REGION)+'\x20('+(_0x49e163[_0x439109(0x89)]??'default')+')';console[_0x439109(0x109)](_0x439109(0x100)+_0x5cb80d),console[_0x439109(0x109)](_0x439109(0x8b)+_0x49e163[_0x439109(0xcf)]),console[_0x439109(0x109)](_0x439109(0xe2)+_0x49e163[_0x439109(0xb7)]),console[_0x439109(0x109)](_0x439109(0xae)+_0x49e163[_0x439109(0xdb)]),console[_0x439109(0x109)]('\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20'+(_0x49e163['defaultApp']||a124_0x12ae11[_0x439109(0xf8)](_0x439109(0xf1)))),console['log'](_0x439109(0xde)+(_0x49e163[_0x439109(0x105)]||a124_0x12ae11[_0x439109(0xf8)]('(none)'))),console[_0x439109(0x109)]('\x20\x20explicitAppName:\x20'+(_0x49e163['explicitAppName']||a124_0x12ae11[_0x439109(0xf8)](_0x439109(0xf1)))),console['log']('\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x49e163[_0x439109(0xeb)]||a124_0x12ae11[_0x439109(0xf8)](_0x439109(0x8e)+DEFAULT_CONFIG_VALUES[_0x439109(0xeb)]+')'))),console['log']('\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x49e163[_0x439109(0xbb)]??a124_0x12ae11[_0x439109(0xf8)](_0x439109(0xdd)))),console['log'](_0x439109(0xd9)+_0x49e163[_0x439109(0xf4)]),console['log']('\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x49e163[_0x439109(0xfc)]),console[_0x439109(0x109)](_0x439109(0x8c)+(_0x49e163[_0x439109(0xbc)]?a124_0x12ae11['green'](_0x439109(0xad)+_0x49e163[_0x439109(0xbc)]['length']+')'):_0x1c9268?a124_0x12ae11[_0x439109(0xb9)](_0x439109(0xa2)+_0x1c9268[_0x439109(0xef)]+')'):a124_0x12ae11['gray'](_0x439109(0xf1))));const _0x56a5e5=Object[_0x439109(0x96)](_0x49e163[_0x439109(0xf6)]);if(_0x56a5e5[_0x439109(0xef)]>0x0){console[_0x439109(0x109)](),console[_0x439109(0x109)](a124_0x12ae11['bold']('\x20\x20Apps')),console['log'](a124_0x12ae11[_0x439109(0xf8)](_0x439109(0x85)[_0x439109(0xb4)](0x1e)));for(const _0x4211a7 of _0x56a5e5){const _0x3a8feb=_0x49e163['apps'][_0x4211a7],_0x3fd9f3=_0x4211a7===_0x49e163['defaultApp'],_0x86122c=_0x4211a7===_0x49e163[_0x439109(0x105)],_0xa1c9a3=_0x86122c?a124_0x12ae11[_0x439109(0xb9)](_0x439109(0x83)):'',_0x40af07=_0x3fd9f3?'\x20(default)':'';console[_0x439109(0x109)]('\x20\x20'+_0x4211a7+_0x40af07+_0xa1c9a3),console[_0x439109(0x109)](_0x439109(0xc7)+_0x3a8feb[_0x439109(0xc8)]);const _0x448065=_0x1b682c[_0x439109(0xfd)][_0x439109(0xf6)]&&typeof _0x1b682c[_0x439109(0xfd)][_0x439109(0xf6)]===_0x439109(0xaf)?_0x1b682c['projectConfig']['apps']:{},_0x890cde=Object['prototype'][_0x439109(0xf7)][_0x439109(0xa4)](_0x448065,_0x4211a7),_0x50ca31=isInvalidLovrabetRegion(_0x3a8feb[_0x439109(0xc2)])?{'region':_0x49e163[_0x439109(0xc2)]??DEFAULT_LOVRABET_REGION}:resolveEffectiveRegion({'appRegion':_0x3a8feb[_0x439109(0xc2)],'projectRegion':_0x890cde?_0x1b682c[_0x439109(0xfd)]['region']:undefined,'globalRegion':_0x1b682c[_0x439109(0x84)][_0x439109(0xc2)],'mergedRegion':_0x49e163[_0x439109(0xd2)][_0x439109(0xc2)],'appName':_0x4211a7}),_0x178311=buildAppDoctorFields(_0x3a8feb,{'region':_0x50ca31[_0x439109(0xc2)],'env':_0x49e163[_0x439109(0xcf)],'apiDir':_0x49e163[_0x439109(0xd2)][_0x439109(0xdb)]||DEFAULT_CONFIG_VALUES['apiDir'],'cookie':_0x49e163[_0x439109(0xbc)]||_0x1c9268||undefined,'accessKey':_0x49e163['accessKey']});console[_0x439109(0x109)](_0x439109(0xe0)+_0x178311[_0x439109(0xc2)][_0x439109(0xbe)]+'\x20\x20'+a124_0x12ae11[_0x439109(0xf8)]('('+_0x178311['region'][_0x439109(0x87)]+')')),console[_0x439109(0x109)](_0x439109(0xd7)+_0x178311[_0x439109(0xcf)][_0x439109(0xbe)]+'\x20\x20'+a124_0x12ae11['gray']('('+_0x178311[_0x439109(0xcf)]['source']+')')),console[_0x439109(0x109)](_0x439109(0xcb)+_0x178311['apiDir'][_0x439109(0xbe)]+'\x20\x20'+a124_0x12ae11[_0x439109(0xf8)]('('+_0x178311[_0x439109(0xdb)][_0x439109(0x87)]+')'));const _0x52463b=_0x178311[_0x439109(0xbc)]['value']?a124_0x12ae11['green'](_0x439109(0xad)+_0x178311['cookie'][_0x439109(0xbe)][_0x439109(0xef)]+')'):a124_0x12ae11['gray'](_0x439109(0xf1));console[_0x439109(0x109)](_0x439109(0xf2)+_0x52463b+'\x20\x20'+a124_0x12ae11[_0x439109(0xf8)]('('+_0x178311[_0x439109(0xbc)][_0x439109(0x87)]+')'));const _0x101277=_0x178311[_0x439109(0xe7)][_0x439109(0xbe)]?a124_0x12ae11[_0x439109(0xb9)]('(set,\x20length='+_0x178311[_0x439109(0xe7)][_0x439109(0xbe)][_0x439109(0xef)]+')'):a124_0x12ae11[_0x439109(0xf8)]('(none)');console[_0x439109(0x109)](_0x439109(0x9d)+_0x101277+'\x20\x20'+a124_0x12ae11[_0x439109(0xf8)]('('+_0x178311[_0x439109(0xe7)]['source']+')'));}}console['log'](),console[_0x439109(0x109)](a124_0x12ae11[_0x439109(0x108)](_0x439109(0x9b))),console[_0x439109(0x109)](a124_0x12ae11[_0x439109(0xf8)]('\x20\x20─'['repeat'](0x1e)));_0x24cc44?console[_0x439109(0x109)](_0x439109(0x8d)+a124_0x12ae11[_0x439109(0xd6)](_0x439109(0x9c))):(console[_0x439109(0x109)]('\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+getActiveRegion()),console[_0x439109(0x109)](_0x439109(0xc5)+getApiDomain()),console[_0x439109(0x109)](_0x439109(0xcc)+getUserDomain()),console[_0x439109(0x109)](_0x439109(0xd5)+getRuntimeDomain()),console[_0x439109(0x109)](_0x439109(0xb8)+getSkillDomain()),console['log'](_0x439109(0xff)+getKbDomain()),console[_0x439109(0x109)](_0x439109(0xdf)+(getKbServiceDomain()??'not\x20configured')),console[_0x439109(0x109)](_0x439109(0x8a)+getAppDomain()));console[_0x439109(0x109)](),console['log'](a124_0x12ae11[_0x439109(0x108)](_0x439109(0x99))),console['log'](a124_0x12ae11['gray']('\x20\x20─'[_0x439109(0xb4)](0x1e)));if(_0x24cc44)console[_0x439109(0x109)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a124_0x12ae11[_0x439109(0xe1)](_0x439109(0x97)));else{if(_0x1c9268){const _0x4e9d95=await getIsSessionValid();console['log'](_0x439109(0x8d)+(_0x4e9d95?a124_0x12ae11[_0x439109(0xb9)]('✓\x20Valid'):a124_0x12ae11[_0x439109(0xd6)]('✗\x20Expired')));}else console[_0x439109(0x109)](_0x439109(0x8d)+a124_0x12ae11[_0x439109(0xd6)]('✗\x20Not\x20logged\x20in'));}return console[_0x439109(0x109)](),{'ok':!![]};}export const doctorDefinition={'service':a124_0x1d3f9d(0x8f),'command':a124_0x1d3f9d(0xfa),'description':a124_0x1d3f9d(0x10d),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a125_0x450a8f=a125_0x486c;(function(_0xc0e815,_0x4e4f26){const _0x244324=a125_0x486c,_0x273a8b=_0xc0e815();while(!![]){try{const _0xae2673=parseInt(_0x244324(0x1d4))/0x1*(-parseInt(_0x244324(0x1db))/0x2)+-parseInt(_0x244324(0x1cb))/0x3+-parseInt(_0x244324(0x1d7))/0x4*(parseInt(_0x244324(0x1e2))/0x5)+-parseInt(_0x244324(0x1e0))/0x6*(parseInt(_0x244324(0x1dd))/0x7)+-parseInt(_0x244324(0x1d3))/0x8+-parseInt(_0x244324(0x1d0))/0x9+parseInt(_0x244324(0x1cc))/0xa*(parseInt(_0x244324(0x1d9))/0xb);if(_0xae2673===_0x4e4f26)break;else _0x273a8b['push'](_0x273a8b['shift']());}catch(_0x63bf19){_0x273a8b['push'](_0x273a8b['shift']());}}}(a125_0x3257,0x3f49a));import{requireDevelopmentUploadFile}from'../../commands/common/local-file.js';function a125_0x3257(){const _0x3192e7=['File','15792oFPwGb','11170640ddteEo','filePath','read','query-url','2024856CpVXIg','bool','Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','803384UCoEtb','1vPXsXW','Uploaded\x20file:\x20','filepath','23708tWcfhR','long-term','11cGADoJ','upload','170102oAjpch','appCode','6265llVoLl','trim','.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','858qIhjTj','/smartapi/common/uploadFile','265vXODce','boolean','Development\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data','download','path','str','Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','\x20to\x20development\x20app\x20','validation','file','string'];a125_0x3257=function(){return _0x3192e7;};return a125_0x3257();}import{queryDevelopmentFileUrl,uploadDevelopmentFile}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const FILE_FLAG={'name':a125_0x450a8f(0x1c8),'type':a125_0x450a8f(0x1c9),'required':!![],'description':'Path\x20to\x20the\x20local\x20file\x20to\x20upload'},FILEPATH_FLAG={'name':a125_0x450a8f(0x1d6),'type':a125_0x450a8f(0x1c9),'required':!![],'description':a125_0x450a8f(0x1e4)},DOWNLOAD_FLAG={'name':'download','type':a125_0x450a8f(0x1e3),'description':'Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL'},LONG_TERM_FLAG={'name':'long-term','type':'boolean','description':'Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML'};function requireFilePath(_0x56a243){const _0x5502aa=a125_0x450a8f,_0x4c7733=_0x56a243[_0x5502aa(0x1de)]();if(!_0x4c7733)throw CliErrors[_0x5502aa(0x1c7)]('filePath\x20is\x20required.');return _0x4c7733;}const fileUpload={'service':'file','command':a125_0x450a8f(0x1da),'description':a125_0x450a8f(0x1c5),'risk':'read','flags':[FILE_FLAG],async 'dryRun'(_0x211b81){const _0x1e366e=a125_0x450a8f,_0xa3e14b=requireDevelopmentUploadFile(_0x211b81['str']('file'),_0x1e366e(0x1ca));return{'method':'POST','url':_0x1e366e(0x1e1),'body':{'appCode':_0x211b81[_0x1e366e(0x1dc)],'multipart':{'file':_0xa3e14b}},'description':'Preview:\x20upload\x20'+_0xa3e14b[_0x1e366e(0x1c3)]+_0x1e366e(0x1c6)+_0x211b81[_0x1e366e(0x1dc)]};},async 'execute'(_0x57e6df){const _0x34b4a3=a125_0x450a8f,_0x197950=requireDevelopmentUploadFile(_0x57e6df[_0x34b4a3(0x1c4)](_0x34b4a3(0x1c8)),_0x34b4a3(0x1ca)),_0x37ecce=await uploadDevelopmentFile(_0x57e6df[_0x34b4a3(0x1dc)],_0x197950['path']);return{'ok':!![],'data':_0x37ecce,'message':_0x37ecce[_0x34b4a3(0x1cd)]?_0x34b4a3(0x1d5)+_0x37ecce[_0x34b4a3(0x1cd)]+_0x34b4a3(0x1df):_0x34b4a3(0x1d2)};}},fileQueryUrl={'service':a125_0x450a8f(0x1c8),'command':a125_0x450a8f(0x1cf),'description':'Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20or\x20immediate\x20access','risk':a125_0x450a8f(0x1ce),'flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0xecaddd){const _0x13b719=a125_0x450a8f,_0x149419=requireFilePath(_0xecaddd[_0x13b719(0x1c4)](_0x13b719(0x1d6))),_0x494571=await queryDevelopmentFileUrl(_0x149419,{'download':_0xecaddd['bool'](_0x13b719(0x1e5)),'longTerm':_0xecaddd[_0x13b719(0x1d1)](_0x13b719(0x1d8))});return{'ok':!![],'data':_0x494571};}};function a125_0x486c(_0x367690,_0x2b0725){_0x367690=_0x367690-0x1c3;const _0x32574d=a125_0x3257();let _0x486cae=_0x32574d[_0x367690];return _0x486cae;}export const fileDefinitions=[fileUpload,fileQueryUrl];
|