@lovrabet/rabetbase-cli 2.5.3-beta.2 → 2.5.3-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api/api-doc.js +1 -1
- package/lib/api/api-group.d.ts +22 -0
- package/lib/api/api-group.js +1 -0
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.d.ts +18 -2
- 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.d.ts +11 -0
- package/lib/api/legacy-api-file.js +1 -0
- package/lib/api/model-registry-file.d.ts +36 -0
- package/lib/api/model-registry-file.js +1 -0
- package/lib/api/model-registry-scaffold.d.ts +7 -0
- package/lib/api/model-registry-scaffold.js +1 -0
- package/lib/api/model-source.d.ts +6 -0
- package/lib/api/model-source.js +1 -0
- 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/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.d.ts +7 -0
- 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.d.ts +2 -0
- package/lib/commands/dataset/cross-relation-create.js +1 -0
- package/lib/commands/dataset/cross-relation-delete.d.ts +2 -0
- package/lib/commands/dataset/cross-relation-delete.js +1 -0
- package/lib/commands/dataset/cross-relation-list.d.ts +2 -0
- package/lib/commands/dataset/cross-relation-list.js +1 -0
- package/lib/commands/dataset/cross-relation-shared.d.ts +190 -0
- package/lib/commands/dataset/cross-relation-shared.js +1 -0
- package/lib/commands/dataset/cross-relation-update.d.ts +2 -0
- package/lib/commands/dataset/cross-relation-update.js +1 -0
- package/lib/commands/dataset/delete.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/extend-update.js +1 -1
- package/lib/commands/dataset/field-restore.js +1 -1
- package/lib/commands/dataset/field-update.js +1 -1
- package/lib/commands/dataset/generate.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/dataset/relation-audit.js +1 -1
- package/lib/commands/dataset/relation-create.js +1 -1
- package/lib/commands/dataset/relation-delete.js +1 -1
- package/lib/commands/dataset/relation-shared.js +1 -1
- package/lib/commands/dataset/relation-update.js +1 -1
- package/lib/commands/dataset/relations.js +1 -1
- package/lib/commands/dataset/rename.js +1 -1
- package/lib/commands/dataset/restore.js +1 -1
- package/lib/commands/dataset/user-deleted-field-list.js +1 -1
- package/lib/commands/db/analysis-batching.js +1 -1
- package/lib/commands/db/analyze-batch-plan.js +1 -1
- package/lib/commands/db/analyze-cancel.js +1 -1
- package/lib/commands/db/analyze-start.js +1 -1
- package/lib/commands/db/analyze-status.js +1 -1
- package/lib/commands/db/create.js +1 -1
- package/lib/commands/db/delete.js +1 -1
- package/lib/commands/db/detail.js +1 -1
- package/lib/commands/db/diff-refresh-start.js +1 -1
- package/lib/commands/db/diff-refresh-status.js +1 -1
- package/lib/commands/db/diff.js +1 -1
- package/lib/commands/db/index.js +1 -1
- package/lib/commands/db/list.js +1 -1
- package/lib/commands/db/shared.js +1 -1
- package/lib/commands/db/table-diff-shared.js +1 -1
- package/lib/commands/db/tables.js +1 -1
- package/lib/commands/db/test.js +1 -1
- package/lib/commands/db/update.js +1 -1
- package/lib/commands/deployment/index.js +1 -1
- package/lib/commands/deployment/sync-all.js +1 -1
- package/lib/commands/deployment/sync-jobs.js +1 -1
- package/lib/commands/deployment/sync-status.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/flow/create.js +1 -1
- package/lib/commands/flow/detail.js +1 -1
- package/lib/commands/flow/index.js +1 -1
- package/lib/commands/flow/list.js +1 -1
- package/lib/commands/flow/publish.js +1 -1
- package/lib/commands/flow/runtime-resources-shared.js +1 -1
- package/lib/commands/flow/runtime-role-list.js +1 -1
- package/lib/commands/flow/runtime-role-user-list.js +1 -1
- package/lib/commands/flow/runtime-user-search.js +1 -1
- package/lib/commands/flow/shared.js +1 -1
- package/lib/commands/flow/update.js +1 -1
- package/lib/commands/flow/validate.js +1 -1
- package/lib/commands/instant-api-policy/current.js +1 -1
- package/lib/commands/instant-api-policy/index.js +1 -1
- package/lib/commands/instant-api-policy/init.js +1 -1
- package/lib/commands/instant-api-policy/publish.js +1 -1
- package/lib/commands/instant-api-policy/pull.js +1 -1
- package/lib/commands/instant-api-policy/revision.js +1 -1
- package/lib/commands/instant-api-policy/revisions.js +1 -1
- package/lib/commands/instant-api-policy/rollback.js +1 -1
- package/lib/commands/instant-api-policy/shared.js +1 -1
- package/lib/commands/instant-api-policy/validate.js +1 -1
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/nudge.js +1 -1
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/issue/shared.js +1 -1
- package/lib/commands/kb/create.js +1 -1
- package/lib/commands/kb/delete.js +1 -1
- package/lib/commands/kb/detail.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/kb/list.js +1 -1
- package/lib/commands/kb/search.js +1 -1
- package/lib/commands/kb/shared.js +1 -1
- package/lib/commands/kb/update.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/asset-update.js +1 -1
- package/lib/commands/menu/delete.js +1 -1
- package/lib/commands/menu/external-link-create.js +1 -1
- package/lib/commands/menu/external-link-update.js +1 -1
- package/lib/commands/menu/group-create.js +1 -1
- package/lib/commands/menu/group-update.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/list.js +1 -1
- package/lib/commands/menu/move.js +1 -1
- package/lib/commands/menu/regroup-start.js +1 -1
- package/lib/commands/menu/rename.js +1 -1
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/delete-plan.js +1 -1
- package/lib/commands/menu/shared/facts.js +1 -1
- package/lib/commands/menu/shared/index.js +1 -1
- package/lib/commands/menu/shared/inquirer.js +1 -1
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.js +1 -1
- package/lib/commands/menu/shared/mutations.js +1 -1
- package/lib/commands/menu/shared/service.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/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.d.ts +28 -0
- package/lib/commands/project/api-architecture-upgrade.js +1 -0
- 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.d.ts +30 -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/index.js +1 -1
- package/lib/commands/workspace/add.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/commands/workspace/remove.js +1 -1
- package/lib/config/domain-config.js +1 -1
- package/lib/config/project-domain-routing.js +1 -1
- package/lib/config/region-config.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/cdn.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/paths.js +1 -1
- package/lib/constant/region.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/routing-profile.js +1 -1
- package/lib/context/app-resolver.d.ts +2 -0
- 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.d.ts +2 -1
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.d.ts +13 -17
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.d.ts +6 -0
- package/lib/core/api-client.js +1 -1
- package/lib/core/bff/config.js +1 -1
- package/lib/core/bff/file-system.js +1 -1
- package/lib/core/bff/hash.js +1 -1
- package/lib/core/bff/hook-directory.js +1 -1
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/cross-db-relation.d.ts +41 -0
- package/lib/core/cross-db-relation.js +1 -0
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/flow-config.js +1 -1
- package/lib/core/instant-api-policy/config.js +1 -1
- package/lib/core/kb-search-client.js +1 -1
- package/lib/core/page/file-system.js +1 -1
- package/lib/core/page/hash.js +1 -1
- package/lib/core/page/lock.js +1 -1
- package/lib/core/page/lr-smart-jsx.js +1 -1
- package/lib/core/sql-index-auditor.js +1 -1
- package/lib/core/sql-sync/config.js +1 -1
- package/lib/core/sql-sync/file-system.js +1 -1
- package/lib/core/sql-sync/hash.js +1 -1
- package/lib/core/sql-sync/lock.js +1 -1
- package/lib/core/sql-sync/utils.js +1 -1
- package/lib/core/sql-validator.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/error-output.js +1 -1
- package/lib/framework/explicit-yes.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-alias.d.ts +1 -1
- package/lib/framework/runner-alias.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/supported-flags.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/generated/official-routing.js +1 -1
- package/lib/generated/routing-contract.js +1 -1
- package/lib/help.js +1 -1
- package/lib/postinstall.js +1 -1
- package/lib/runtime/confirmation.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/skills/builtin-skill.js +1 -1
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.d.ts +0 -10
- 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/types/index.d.ts +11 -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.d.ts +12 -0
- 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 +4 -1
- package/skills/rabetbase/SKILL.md +10 -6
- package/skills/rabetbase/guides/sdk-client-generation.md +112 -61
- package/skills/rabetbase/guides/typescript-sdk.md +9 -0
- package/skills/rabetbase/references/rabetbase-api-pull.md +30 -19
- package/skills/rabetbase/references/rabetbase-app-list.md +1 -1
- package/skills/rabetbase/references/rabetbase-config.md +2 -1
- package/skills/rabetbase/references/rabetbase-dataset-cross-relations.md +60 -0
- package/skills/rabetbase/references/rabetbase-project-create.md +3 -3
- package/skills/rabetbase/references/rabetbase-project-upgrade.md +24 -13
- package/skills/rabetbase.manifest.json +4 -3
- package/templates/README.md +16 -4
- package/templates/generate-api/model-runtime.ts.tpl +101 -0
- package/templates/generate-api/profile-api.ts.tpl +21 -0
- package/templates/generate-api/profile-client.ts.tpl +14 -0
package/lib/commands/db/diff.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a101_0xc47d6=a101_0x2816;(function(_0x29edc5,_0x3db714){const _0x45f8d7=a101_0x2816,_0x7223a=_0x29edc5();while(!![]){try{const _0x41791a=-parseInt(_0x45f8d7(0x7d))/0x1*(parseInt(_0x45f8d7(0x7e))/0x2)+-parseInt(_0x45f8d7(0x6e))/0x3+-parseInt(_0x45f8d7(0x82))/0x4*(parseInt(_0x45f8d7(0x6f))/0x5)+parseInt(_0x45f8d7(0x93))/0x6*(-parseInt(_0x45f8d7(0x77))/0x7)+-parseInt(_0x45f8d7(0x6d))/0x8*(parseInt(_0x45f8d7(0x74))/0x9)+parseInt(_0x45f8d7(0x84))/0xa*(parseInt(_0x45f8d7(0x8d))/0xb)+parseInt(_0x45f8d7(0x6a))/0xc*(parseInt(_0x45f8d7(0x86))/0xd);if(_0x41791a===_0x3db714)break;else _0x7223a['push'](_0x7223a['shift']());}catch(_0x580e38){_0x7223a['push'](_0x7223a['shift']());}}}(a101_0x3c9a,0x5e32e));import{getDbTableDiff}from'../../core/api-client.js';function a101_0x2816(_0x5c9ae4,_0x1f2792){_0x5c9ae4=_0x5c9ae4-0x6a;const _0x3c9afd=a101_0x3c9a();let _0x2816ee=_0x3c9afd[_0x5c9ae4];return _0x2816ee;}function a101_0x3c9a(){const _0xd89547=['42bqJbhP','datasetTableCount','Page\x20index\x20(1-based)','physicalTableCount','12BcwvKk','boolean','DELETED_TABLE','95848JdPliT','882105FdKltZ','95CxuMzY','Compare\x20datasets\x20with\x20physical\x20database\x20tables\x20and\x20show\x20schema\x20drift','MODIFIED_TABLE','num','totalCount','549vMcOpo','Fetch\x20and\x20aggregate\x20every\x20page\x20(overrides\x20--page\x20and\x20--pagesize)','map','495593HrWbHn','number','\x20changed\x20table\x20row(s),\x20total\x20','\x20(db\x20link\x20','all','summary','746qcclvV','106JkIWjg','Page\x20size','diffType','pagesize','159756TjxHEZ','addedColumns','101540hszqpZ','diff','27108796jIougV','tableList','filter','bool','tableName','fieldDiff','table','671hRmCBZ','str','appCode','string','read','deletedColumns'];a101_0x3c9a=function(){return _0xd89547;};return a101_0x3c9a();}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':a101_0xc47d6(0x85),'description':a101_0xc47d6(0x70),'risk':a101_0xc47d6(0x91),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a101_0xc47d6(0x8c),'type':a101_0xc47d6(0x90),'description':'Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)'},{'name':'page','type':'number','description':a101_0xc47d6(0x95),'default':0x1},{'name':'pagesize','type':a101_0xc47d6(0x78),'description':a101_0xc47d6(0x7f),'default':0x14},{'name':a101_0xc47d6(0x7b),'type':a101_0xc47d6(0x6b),'description':a101_0xc47d6(0x75)}],async 'execute'(_0x20fdf4){const _0x3eb498=a101_0xc47d6,_0x313810=_0x20fdf4['num']('id'),_0x1e96e0=_0x20fdf4[_0x3eb498(0x89)](_0x3eb498(0x7b)),_0x5da0d2=_0x1e96e0?0x1:_0x20fdf4[_0x3eb498(0x72)]('page',0x1)||0x1,_0x1211da=_0x1e96e0?DB_TABLE_PAGE_SIZE:_0x20fdf4[_0x3eb498(0x72)](_0x3eb498(0x81),0x14)||0x14,_0x5ab9b0=_0x20fdf4[_0x3eb498(0x8e)](_0x3eb498(0x8c))||undefined,_0x599007=_0x1e96e0?await getAllDbTableDiff(getDbTableDiff,_0x20fdf4[_0x3eb498(0x8f)],_0x313810,_0x5ab9b0):await getDbTableDiff(_0x20fdf4['appCode'],_0x313810,{'pageIndex':_0x5da0d2,'pageSize':_0x1211da,'tableName':_0x5ab9b0}),_0x43572c=_0x599007[_0x3eb498(0x87)],_0x154e6e=summarizeDbTableDiff(_0x43572c),_0x46ed0f=_0x43572c[_0x3eb498(0x88)](_0x282158=>_0x282158[_0x3eb498(0x80)]==='NEW_TABLE'||_0x282158[_0x3eb498(0x80)]===_0x3eb498(0x71))[_0x3eb498(0x76)](_0x49c751=>_0x49c751[_0x3eb498(0x8a)]),_0xfab184=_0x43572c[_0x3eb498(0x88)](_0x73f07f=>_0x73f07f[_0x3eb498(0x80)]===_0x3eb498(0x6c))[_0x3eb498(0x76)](_0x20f566=>_0x20f566['tableName']),_0x148b70=_0x43572c['filter'](_0x21c5b2=>_0x21c5b2[_0x3eb498(0x80)]===_0x3eb498(0x71))[_0x3eb498(0x76)](_0x478620=>({'tableName':_0x478620[_0x3eb498(0x8a)],'addedColumns':_0x478620[_0x3eb498(0x8b)]?.[_0x3eb498(0x83)]??[],'deletedColumns':_0x478620[_0x3eb498(0x8b)]?.[_0x3eb498(0x92)]??[],'modifiedColumns':_0x478620[_0x3eb498(0x8b)]?.['modifiedColumns']??[]}));return{'ok':!![],'data':{'dbLinkId':_0x313810,'page':_0x5da0d2,'pageSize':_0x1211da,'totalCount':_0x599007['totalCount'],...typeof _0x599007[_0x3eb498(0x96)]==='number'?{'physicalTableCount':_0x599007[_0x3eb498(0x96)]}:{},...typeof _0x599007[_0x3eb498(0x94)]===_0x3eb498(0x78)?{'datasetTableCount':_0x599007['datasetTableCount']}:{},..._0x599007[_0x3eb498(0x7c)]?{'summary':_0x599007['summary']}:{},'summaryByType':_0x154e6e,'toAnalyzeTables':_0x46ed0f,'deletedTables':_0xfab184,'modifiedFieldDiffs':_0x148b70,'tables':_0x43572c},'message':_0x43572c['length']+_0x3eb498(0x79)+_0x599007[_0x3eb498(0x73)]+_0x3eb498(0x7a)+_0x313810+')'};}};
|
package/lib/commands/db/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x373ac3,_0x4abeee){const _0xcfb5b6=a102_0x52fb,_0x3bf7bb=_0x373ac3();while(!![]){try{const _0x1c9865=-parseInt(_0xcfb5b6(0x85))/0x1*(parseInt(_0xcfb5b6(0x8c))/0x2)+parseInt(_0xcfb5b6(0x8b))/0x3*(parseInt(_0xcfb5b6(0x8e))/0x4)+parseInt(_0xcfb5b6(0x89))/0x5+-parseInt(_0xcfb5b6(0x88))/0x6+-parseInt(_0xcfb5b6(0x86))/0x7*(-parseInt(_0xcfb5b6(0x8d))/0x8)+-parseInt(_0xcfb5b6(0x87))/0x9+parseInt(_0xcfb5b6(0x84))/0xa*(-parseInt(_0xcfb5b6(0x8a))/0xb);if(_0x1c9865===_0x4abeee)break;else _0x3bf7bb['push'](_0x3bf7bb['shift']());}catch(_0x1d0421){_0x3bf7bb['push'](_0x3bf7bb['shift']());}}}(a102_0xbbcb,0xec0b2));import{dbList}from'../../commands/db/list.js';import{dbDetail}from'../../commands/db/detail.js';function a102_0x52fb(_0x3b4517,_0x1e0c2c){_0x3b4517=_0x3b4517-0x84;const _0xbbcb1d=a102_0xbbcb();let _0x52fb2b=_0xbbcb1d[_0x3b4517];return _0x52fb2b;}import{dbCreate}from'../../commands/db/create.js';import{dbUpdate}from'../../commands/db/update.js';function a102_0xbbcb(){const _0x15e99d=['148sUdNRK','30ezFAOY','134662yrpMyj','7OnMhVi','3124296JKitFw','3542022flUVfj','8411765XfzdvV','4975366YargHa','17817JRyIYN','2WkFGwR','11950392JTseBZ'];a102_0xbbcb=function(){return _0x15e99d;};return a102_0xbbcb();}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{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,dbTables,dbDiff,dbDiffRefreshStart,dbDiffRefreshStatus];
|
package/lib/commands/db/list.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a103_0x13dc(){const _0x35c8ab=['pagesize','Server\x20omitted\x20paging\x20metadata;\x20totalCount\x20is\x20unknown\x20—\x20rowsOnPage\x20is\x20this\x20page\x20only','appCode','read','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','number','Found\x20','map','4046mjMwFF','2373xiCNhH','Page\x20size','102881rbrafk','DB_TABLE','1281990rhtPYd','932gfhMXQ','num','91MjHJQP','17585ugJqof','list','length','datasetDependency','\x20database\x20connection(s)','680670WbzKXH','25608tJtiWA','63LRCDft','684XWIiEu','5990856qHluXW','page','Page\x20index\x20(1-based)'];a103_0x13dc=function(){return _0x35c8ab;};return a103_0x13dc();}const a103_0x3006b0=a103_0x4f9d;(function(_0x27bc7b,_0x18d889){const _0x134457=a103_0x4f9d,_0x473b07=_0x27bc7b();while(!![]){try{const _0xa7e6ba=parseInt(_0x134457(0xf8))/0x1+-parseInt(_0x134457(0xf5))/0x2*(parseInt(_0x134457(0xf6))/0x3)+-parseInt(_0x134457(0xfb))/0x4*(-parseInt(_0x134457(0xfe))/0x5)+-parseInt(_0x134457(0x103))/0x6*(-parseInt(_0x134457(0xfd))/0x7)+-parseInt(_0x134457(0x107))/0x8+parseInt(_0x134457(0x105))/0x9*(parseInt(_0x134457(0xfa))/0xa)+-parseInt(_0x134457(0x104))/0xb*(parseInt(_0x134457(0x106))/0xc);if(_0xa7e6ba===_0x18d889)break;else _0x473b07['push'](_0x473b07['shift']());}catch(_0x23f92a){_0x473b07['push'](_0x473b07['shift']());}}}(a103_0x13dc,0xc66e6));function a103_0x4f9d(_0x57b552,_0x234310){_0x57b552=_0x57b552-0xf1;const _0x13dc54=a103_0x13dc();let _0x4f9dba=_0x13dc54[_0x57b552];return _0x4f9dba;}import{listDatasets,listDbLinks}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{buildDbDatasetDependency,sanitizeDbLinkForOutput}from'../../commands/db/shared.js';export const dbList={'service':'db','command':a103_0x3006b0(0xff),'description':a103_0x3006b0(0xf1),'risk':a103_0x3006b0(0x10d),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a103_0x3006b0(0x108),'type':a103_0x3006b0(0xf2),'description':a103_0x3006b0(0x109),'default':0x1},{'name':'pagesize','type':a103_0x3006b0(0xf2),'description':a103_0x3006b0(0xf7),'default':0x64}],async 'execute'(_0x366641){const _0x7fdb66=a103_0x3006b0,_0x82d7e6=_0x366641['num'](_0x7fdb66(0x108),0x1)||0x1,_0x5ac732=_0x366641[_0x7fdb66(0xfc)](_0x7fdb66(0x10a),0x64)||0x64,[{items:_0x463efd,paging:_0x5a50e8},_0x185df2]=await Promise['all']([listDbLinks(_0x366641['appCode'],{'currentPage':_0x82d7e6,'pageSize':_0x5ac732}),listDatasets(_0x366641[_0x7fdb66(0x10c)],{'source':_0x7fdb66(0xf9)})]),_0x415676=_0x463efd[_0x7fdb66(0xf4)](_0x72b5cc=>({...sanitizeDbLinkForOutput(_0x72b5cc),'datasetDependency':buildDbDatasetDependency(_0x72b5cc,_0x185df2)[_0x7fdb66(0x101)]})),_0x4d947b=_0x5a50e8?_0x5a50e8:{'currentPage':_0x82d7e6,'pageSize':_0x5ac732,'rowsOnPage':_0x415676[_0x7fdb66(0x100)],'totalCount':null,'note':_0x7fdb66(0x10b)};return{'ok':!![],'data':{'connections':_0x415676,'paging':_0x4d947b},'message':_0x7fdb66(0xf3)+_0x415676['length']+_0x7fdb66(0x102)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xdfc1ef,_0x2a5f8d){const _0xb27596=a104_0x1a4b,_0x23c07e=_0xdfc1ef();while(!![]){try{const _0x40ba9c=parseInt(_0xb27596(0x1e4))/0x1*(parseInt(_0xb27596(0x1ed))/0x2)+-parseInt(_0xb27596(0x1da))/0x3*(parseInt(_0xb27596(0x1e0))/0x4)+-parseInt(_0xb27596(0x1f0))/0x5*(-parseInt(_0xb27596(0x1e2))/0x6)+-parseInt(_0xb27596(0x1eb))/0x7+parseInt(_0xb27596(0x1f2))/0x8+parseInt(_0xb27596(0x1ef))/0x9*(parseInt(_0xb27596(0x1de))/0xa)+-parseInt(_0xb27596(0x1db))/0xb;if(_0x40ba9c===_0x2a5f8d)break;else _0x23c07e['push'](_0x23c07e['shift']());}catch(_0x312a3e){_0x23c07e['push'](_0x23c07e['shift']());}}}(a104_0x5d8f,0xd8dda));import{testDbLinkConfigConnect}from'../../core/api-client.js';import{getAppBaseUrl}from'../../constant/domain.js';function a104_0x1a4b(_0x2c1583,_0x262a4b){_0x2c1583=_0x2c1583-0x1da;const _0x5d8f6a=a104_0x5d8f();let _0x1a4b3d=_0x5d8f6a[_0x2c1583];return _0x1a4b3d;}import{CliErrors}from'../../errors.js';function shouldRedactKey(_0x5f10e1){const _0x42219a=a104_0x1a4b,_0x54e501=_0x5f10e1['toLowerCase']();if(_0x54e501==='password'||_0x54e501===_0x42219a(0x1dc)||_0x54e501===_0x42219a(0x1e1))return!![];if(_0x54e501[_0x42219a(0x1e9)](_0x42219a(0x1e6))||_0x54e501['includes'](_0x42219a(0x1df))||_0x54e501[_0x42219a(0x1e9)](_0x42219a(0x1e5)))return!![];if(_0x54e501[_0x42219a(0x1e9)]('privatekey')||_0x54e501[_0x42219a(0x1e9)](_0x42219a(0x1f4)))return!![];if(_0x54e501==='authorization'||_0x54e501==='connectionstring'||_0x54e501==='jdbcurl')return!![];return![];}export function sanitizeDbLinkForOutput(_0x428179){const _0x174723=a104_0x1a4b,_0x12eb2d={..._0x428179};delete _0x12eb2d[_0x174723(0x1dd)];for(const _0x33d944 of Object['keys'](_0x12eb2d)){if(!shouldRedactKey(_0x33d944))continue;const _0x140609=_0x12eb2d[_0x33d944];_0x140609!=null&&String(_0x140609)['length']>0x0&&(_0x12eb2d[_0x33d944]=_0x174723(0x1e8));}return _0x12eb2d;}export function sanitizeDbLinkList(_0x43f66b){const _0x224380=a104_0x1a4b;return _0x43f66b[_0x224380(0x1ea)](_0x1430d1=>sanitizeDbLinkForOutput(_0x1430d1));}export function buildDbDatasetDependency(_0x1dd6b0,_0x1fe764){const _0x159a82=a104_0x1a4b,_0x224bda=_0x1fe764[_0x159a82(0x1ee)](_0xa9d0c5=>Number(_0xa9d0c5[_0x159a82(0x1f7)]?.['dbId'])===Number(_0x1dd6b0['id']))[_0x159a82(0x1ea)](_0x417a45=>({'id':_0x417a45['id'],'code':_0x417a45['code'],'name':_0x417a45[_0x159a82(0x1f1)],..._0x417a45[_0x159a82(0x1f7)]?.[_0x159a82(0x1e3)]?{'tableName':_0x417a45[_0x159a82(0x1f7)]['tableName']}:{}}));return{'datasetDependency':{'hasDependencies':_0x224bda['length']>0x0,'activeDatasetCount':_0x224bda['length']},'datasets':_0x224bda};}export async function assertDbLinkConnectionPreflight(_0x354f4d){const _0x4e8fd8=a104_0x1a4b,_0x26c77a=await testDbLinkConfigConnect(_0x354f4d);if(_0x26c77a!==!![])throw CliErrors[_0x4e8fd8(0x1f6)]('Database\x20connection\x20preflight\x20failed.',_0x4e8fd8(0x1f5));}const DB_URL_PATTERN=/^[^\s:]+(?::\d+)?$/;export function validateDbUrl(_0x293f4b){const _0x49d359=a104_0x1a4b,_0x26a88c=_0x293f4b[_0x49d359(0x1f8)]();if(!_0x26a88c)return![];return DB_URL_PATTERN[_0x49d359(0x1ec)](_0x26a88c);}function a104_0x5d8f(){const _0x579819=['secret','number','[redacted]','includes','map','9489536selKVU','test','651074TeRLCd','filter','369ynPOGg','35BaEvEg','name','6750112MBFlvp','/data/database','accesskey','The\x20configuration\x20was\x20not\x20saved.\x20Verify\x20the\x20host,\x20credentials,\x20database\x20name,\x20network,\x20and\x20allowlist,\x20or\x20explicitly\x20pass\x20--skip-connection-test.','apiError','dbtableConfig','trim','279WrUeSi','2549074FTVdhl','passwd','hasAvailableDo','333490xRkyUA','token','68248mQacuK','dbpassword','1028814ZMrsCM','tableName','2cZrfJu','credential'];a104_0x5d8f=function(){return _0x579819;};return a104_0x5d8f();}export function buildDbPageLinks(_0x313e81,_0x4993a6){const _0x1d245b=a104_0x1a4b,_0x57f5e1=_0x313e81?.[_0x1d245b(0x1f8)]();if(!_0x57f5e1)return undefined;const _0x411eb5=typeof _0x4993a6===_0x1d245b(0x1e7)?String(_0x4993a6):String(_0x4993a6??'')['trim']();if(!_0x411eb5)return undefined;const _0x9f0142=Number(_0x411eb5);if(!Number['isFinite'](_0x9f0142)||_0x9f0142<=0x0)return undefined;const _0x1917ff=getAppBaseUrl(_0x57f5e1),_0x5d50b2=encodeURIComponent(String(_0x9f0142));return{'databasePage':_0x1917ff+_0x1d245b(0x1f3),'erPage':_0x1917ff+'/data/er?dbId='+_0x5d50b2};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a105_0xa58a9b=a105_0x1c7e;function a105_0xe30a(){const _0x286a72=['fromEntries','4706124tbwEYg','\x20row(s).','datasetTableCount','157436gwAldD','NEW_TABLE','filter','1731216HwtSnR','diffType','map','4048pNbqyn','2317WmwTkH','tableName','2353896AsZdUS','summary','tableList','5qmAWds','size','length','physicalTableCount','set','totalCount','validation','\x20of\x20','1166706rHRIwM','332807oKRNgo','ALREADY_ANALYZED'];a105_0xe30a=function(){return _0x286a72;};return a105_0xe30a();}(function(_0x16693c,_0x3789ed){const _0x9948f5=a105_0x1c7e,_0x56483a=_0x16693c();while(!![]){try{const _0x38861f=-parseInt(_0x9948f5(0x7b))/0x1+-parseInt(_0x9948f5(0x66))/0x2+parseInt(_0x9948f5(0x7a))/0x3+-parseInt(_0x9948f5(0x69))/0x4+parseInt(_0x9948f5(0x72))/0x5*(parseInt(_0x9948f5(0x7e))/0x6)+-parseInt(_0x9948f5(0x6d))/0x7*(parseInt(_0x9948f5(0x6c))/0x8)+parseInt(_0x9948f5(0x6f))/0x9;if(_0x38861f===_0x3789ed)break;else _0x56483a['push'](_0x56483a['shift']());}catch(_0x5eba14){_0x56483a['push'](_0x56483a['shift']());}}}(a105_0xe30a,0x67449));function a105_0x1c7e(_0xba602b,_0x89b51e){_0xba602b=_0xba602b-0x64;const _0xe30a4c=a105_0xe30a();let _0x1c7eae=_0xe30a4c[_0xba602b];return _0x1c7eae;}import{CliErrors}from'../../errors.js';export const DB_TABLE_PAGE_SIZE=0x64;export const DB_TABLE_DIFF_TYPES=[a105_0xa58a9b(0x67),'MODIFIED_TABLE','DELETED_TABLE',a105_0xa58a9b(0x7c)];export function summarizeDbTableDiff(_0x772f25){const _0x547240=a105_0xa58a9b;return Object[_0x547240(0x7d)](DB_TABLE_DIFF_TYPES[_0x547240(0x6b)](_0x2ebf6e=>[_0x2ebf6e,_0x772f25[_0x547240(0x68)](_0x5cea73=>_0x5cea73[_0x547240(0x6a)]===_0x2ebf6e)['length']]));}export async function getAllDbTableDiff(_0x57d7a0,_0x50c79c,_0x51133a,_0x3db122){const _0xaf9ae8=a105_0xa58a9b,_0x9b0c47=new Map();let _0x28ad3c=0x1,_0x275e8c=null;while(!![]){_0x275e8c=await _0x57d7a0(_0x50c79c,_0x51133a,{'pageIndex':_0x28ad3c,'pageSize':DB_TABLE_PAGE_SIZE,'tableName':_0x3db122});const _0x1f0faa=_0x9b0c47['size'];for(const _0x3b5859 of _0x275e8c[_0xaf9ae8(0x71)]){_0x9b0c47[_0xaf9ae8(0x76)](_0x3b5859[_0xaf9ae8(0x6e)],_0x3b5859);}if(_0x9b0c47[_0xaf9ae8(0x73)]>=_0x275e8c[_0xaf9ae8(0x77)])break;if(_0x275e8c[_0xaf9ae8(0x71)][_0xaf9ae8(0x74)]===0x0||_0x9b0c47[_0xaf9ae8(0x73)]===_0x1f0faa)throw CliErrors[_0xaf9ae8(0x78)]('Incomplete\x20db\x20table\x20pagination:\x20collected\x20'+_0x9b0c47['size']+_0xaf9ae8(0x79)+_0x275e8c[_0xaf9ae8(0x77)]+_0xaf9ae8(0x64));_0x28ad3c+=0x1;}return{'totalCount':_0x275e8c?.['totalCount']??0x0,...typeof _0x275e8c?.[_0xaf9ae8(0x75)]==='number'?{'physicalTableCount':_0x275e8c[_0xaf9ae8(0x75)]}:{},...typeof _0x275e8c?.[_0xaf9ae8(0x65)]==='number'?{'datasetTableCount':_0x275e8c[_0xaf9ae8(0x65)]}:{},..._0x275e8c?.[_0xaf9ae8(0x70)]?{'summary':_0x275e8c[_0xaf9ae8(0x70)]}:{},'tableList':[..._0x9b0c47['values']()]};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a106_0x2abee3=a106_0x2c21;(function(_0x230dc6,_0x37935f){const _0x433b15=a106_0x2c21,_0x1a2dda=_0x230dc6();while(!![]){try{const _0xb11288=parseInt(_0x433b15(0xf3))/0x1*(parseInt(_0x433b15(0xef))/0x2)+parseInt(_0x433b15(0xf5))/0x3*(-parseInt(_0x433b15(0xf1))/0x4)+parseInt(_0x433b15(0xf9))/0x5+-parseInt(_0x433b15(0xed))/0x6+parseInt(_0x433b15(0xf6))/0x7+-parseInt(_0x433b15(0xfe))/0x8+parseInt(_0x433b15(0xeb))/0x9;if(_0xb11288===_0x37935f)break;else _0x1a2dda['push'](_0x1a2dda['shift']());}catch(_0x4bdfcc){_0x1a2dda['push'](_0x1a2dda['shift']());}}}(a106_0x2d59,0x251c9));function a106_0x2c21(_0x5f3af6,_0x5dd02e){_0x5f3af6=_0x5f3af6-0xea;const _0x2d598b=a106_0x2d59();let _0x2c2143=_0x2d598b[_0x5f3af6];return _0x2c2143;}import{getDbTableComparisonPage}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a106_0x2d59(){const _0x592324=['Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)','129hhDZgF','862834GBZxnL','\x20(db\x20link\x20','read','61410UrnsaS','str','totalCount','num','summary','1087704uCFpin','List\x20all\x20database\x20table\x20comparison\x20rows\x20and\x20analysis\x20states','number','length','datasetTableCount','3378465btMWGD','table','269118sWfJSz','tableList','2wRDFnx','tables','25964BIAihg','physicalTableCount','101009aEamcS'];a106_0x2d59=function(){return _0x592324;};return a106_0x2d59();}import{getAllDbTableDiff,summarizeDbTableDiff}from'../../commands/db/table-diff-shared.js';export const dbTables={'service':'db','command':a106_0x2abee3(0xf0),'description':a106_0x2abee3(0xff),'risk':a106_0x2abee3(0xf8),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a106_0x2abee3(0xec),'type':'string','description':a106_0x2abee3(0xf4)}],async 'execute'(_0xe6b37b){const _0x5648ef=a106_0x2abee3,_0x59751c=_0xe6b37b[_0x5648ef(0xfc)]('id'),_0x4204db=_0xe6b37b[_0x5648ef(0xfa)](_0x5648ef(0xec))||undefined,_0x206314=await getAllDbTableDiff(getDbTableComparisonPage,_0xe6b37b['appCode'],_0x59751c,_0x4204db),_0x47f1d6=_0x206314[_0x5648ef(0xee)];return{'ok':!![],'data':{'dbLinkId':_0x59751c,'totalCount':_0x206314['totalCount'],...typeof _0x206314[_0x5648ef(0xf2)]===_0x5648ef(0x100)?{'physicalTableCount':_0x206314[_0x5648ef(0xf2)]}:{},...typeof _0x206314[_0x5648ef(0xea)]==='number'?{'datasetTableCount':_0x206314[_0x5648ef(0xea)]}:{},..._0x206314[_0x5648ef(0xfd)]?{'summary':_0x206314[_0x5648ef(0xfd)]}:{},'summaryByType':summarizeDbTableDiff(_0x47f1d6),'tables':_0x47f1d6},'message':_0x47f1d6[_0x5648ef(0x101)]+'\x20table\x20comparison\x20row(s),\x20total\x20'+_0x206314[_0x5648ef(0xfb)]+_0x5648ef(0xf7)+_0x59751c+')'};}};
|
package/lib/commands/db/test.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a107_0x11da10=a107_0x5e67;function a107_0x5e67(_0x218794,_0x5ad0fa){_0x218794=_0x218794-0xe7;const _0x3c0f30=a107_0x3c0f();let _0x5e6779=_0x3c0f30[_0x218794];return _0x5e6779;}(function(_0x5eb2c8,_0x5c29cf){const _0x397af6=a107_0x5e67,_0x43cbca=_0x5eb2c8();while(!![]){try{const _0x123154=parseInt(_0x397af6(0xea))/0x1*(parseInt(_0x397af6(0xfb))/0x2)+parseInt(_0x397af6(0xec))/0x3+parseInt(_0x397af6(0xf4))/0x4*(parseInt(_0x397af6(0xf8))/0x5)+-parseInt(_0x397af6(0xf1))/0x6+parseInt(_0x397af6(0xee))/0x7+-parseInt(_0x397af6(0xf0))/0x8+-parseInt(_0x397af6(0xf6))/0x9;if(_0x123154===_0x5c29cf)break;else _0x43cbca['push'](_0x43cbca['shift']());}catch(_0x37448e){_0x43cbca['push'](_0x43cbca['shift']());}}}(a107_0x3c0f,0x91a8d));import{testDbLinkConnect}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a107_0x3c0f(){const _0x163efb=['\x20(see\x20data.result)','msg','4afiJdo','Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)','12606741NbYrRP','Connection\x20OK\x20for\x20db\x20link\x20','425695sAAWmz','slice','test','98834dVzOcc','data','object','length','6ZjJWOU','keys','3523779uGFBav','num','5628644flpqRa','message','768192krqVrE','1601592AIAWCo'];a107_0x3c0f=function(){return _0x163efb;};return a107_0x3c0f();}function summarizeTestConnectResult(_0x553576){const _0x116ad2=a107_0x5e67;if(_0x553576===!![]||_0x553576===![])return{'success':_0x553576};if(_0x553576===null||_0x553576===undefined)return{'type':typeof _0x553576};if(typeof _0x553576!==_0x116ad2(0xe8))return{'type':typeof _0x553576};const _0x49dd8a=_0x553576,_0x9c53e6=['success',_0x116ad2(0xef),'code','error',_0x116ad2(0xf3),_0x116ad2(0xe7)],_0x5aa98={};for(const _0x14f413 of _0x9c53e6){if(_0x14f413 in _0x49dd8a)_0x5aa98[_0x14f413]=_0x49dd8a[_0x14f413];}return Object['keys'](_0x5aa98)[_0x116ad2(0xe9)]===0x0&&(_0x5aa98[_0x116ad2(0xeb)]=Object['keys'](_0x49dd8a)[_0x116ad2(0xf9)](0x0,0x14)),_0x5aa98;}export const dbTest={'service':'db','command':a107_0x11da10(0xfa),'description':a107_0x11da10(0xf5),'risk':'read','requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x54bec4){const _0x1f3004=a107_0x11da10,_0x10056b=_0x54bec4[_0x1f3004(0xed)]('id'),_0x9f72cf=await testDbLinkConnect(_0x10056b),_0x1af2ba=_0x9f72cf===!![]||typeof _0x9f72cf===_0x1f3004(0xe8)&&_0x9f72cf!==null&&_0x9f72cf['success']===!![],_0x354ee8=summarizeTestConnectResult(_0x9f72cf);return{'ok':!![],'data':{'id':_0x10056b,'connected':Boolean(_0x1af2ba),'result':_0x354ee8},'message':_0x1af2ba?_0x1f3004(0xf7)+_0x10056b:'Connection\x20check\x20finished\x20for\x20db\x20link\x20'+_0x10056b+_0x1f3004(0xf2)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a108_0x5c0128=a108_0x8919;(function(_0x478940,_0x5db3ad){const _0x1761fc=a108_0x8919,_0x145c2e=_0x478940();while(!![]){try{const _0x5849b2=-parseInt(_0x1761fc(0x143))/0x1+-parseInt(_0x1761fc(0x148))/0x2*(-parseInt(_0x1761fc(0x144))/0x3)+parseInt(_0x1761fc(0x145))/0x4*(parseInt(_0x1761fc(0x150))/0x5)+parseInt(_0x1761fc(0x159))/0x6+parseInt(_0x1761fc(0x154))/0x7+-parseInt(_0x1761fc(0x15b))/0x8+-parseInt(_0x1761fc(0x151))/0x9;if(_0x5849b2===_0x5db3ad)break;else _0x145c2e['push'](_0x145c2e['shift']());}catch(_0x2d0a5f){_0x145c2e['push'](_0x145c2e['shift']());}}}(a108_0x1c18,0x5cfb5));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';function a108_0x1c18(){const _0x1398fa=['has','dburl','username','dbParam','2323404FrkRcq','trim','1336696nFpOnB','dbdesc','New\x20host:port','validation','num','skip-connection-test','Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22','Preview\x20the\x20merged\x20database\x20connection\x20update;\x20password\x20redacted','str','New\x20username','update','New\x20connection\x20parameter\x20string','password','dbName','648880ncSDUe','259899KPzYxH','6692ygcRjI','dbDesc','bool','2DTYleB','Current\x20or\x20replacement\x20password.\x20Required\x20when\x20the\x20stored\x20password\x20is\x20masked','New\x20description','[redacted]','New\x20database\x20name','dbUrl','dbname','Update\x20a\x20database\x20connection\x20by\x20merging\x20supplied\x20fields\x20into\x20the\x20current\x20server\x20record.\x20A\x20masked\x20server\x20password\x20requires\x20explicit\x20--password','615NzuBde','677394cNpRny','string','dbparam','4147080gpkVyD'];a108_0x1c18=function(){return _0x1398fa;};return a108_0x1c18();}function a108_0x8919(_0x33fdf9,_0x3e86f0){_0x33fdf9=_0x33fdf9-0x136;const _0x1c183d=a108_0x1c18();let _0x8919b5=_0x1c183d[_0x33fdf9];return _0x8919b5;}import{assertDbLinkConnectionPreflight,sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';const MASKED_PASSWORD_VALUES=new Set(['******',a108_0x5c0128(0x14b)]);function mergeDbLinkUpdate(_0xad4966,_0x2bfe7e){const _0x7296e6=a108_0x5c0128,_0x38e389={..._0xad4966},_0x222ce2=_0x2bfe7e['str'](_0x7296e6(0x141));if(_0x222ce2&&MASKED_PASSWORD_VALUES[_0x7296e6(0x155)](_0x222ce2))throw CliErrors['validation']('--password\x20must\x20contain\x20the\x20real\x20database\x20password,\x20not\x20a\x20masked\x20value.');if(!_0x222ce2&&MASKED_PASSWORD_VALUES[_0x7296e6(0x155)](String(_0xad4966['password']??'')))throw CliErrors[_0x7296e6(0x138)]('The\x20server\x20returned\x20a\x20masked\x20database\x20password.\x20Pass\x20the\x20current\x20or\x20replacement\x20password\x20explicitly\x20with\x20--password\x20to\x20update\x20this\x20connection\x20safely.');const _0x3af4a9=_0x2bfe7e[_0x7296e6(0x13d)]('dbname');if(_0x3af4a9)_0x38e389[_0x7296e6(0x142)]=_0x3af4a9;const _0x2f9bfc=_0x2bfe7e['str'](_0x7296e6(0x156));if(_0x2f9bfc)_0x38e389[_0x7296e6(0x14d)]=_0x2f9bfc[_0x7296e6(0x15a)]();const _0x3a4016=_0x2bfe7e['str'](_0x7296e6(0x157));if(_0x3a4016)_0x38e389[_0x7296e6(0x157)]=_0x3a4016;if(_0x222ce2)_0x38e389['password']=_0x222ce2;const _0x5b5844=_0x2bfe7e[_0x7296e6(0x13d)](_0x7296e6(0x153));if(_0x5b5844)_0x38e389[_0x7296e6(0x158)]=_0x5b5844;const _0x19dd04=_0x2bfe7e[_0x7296e6(0x13d)](_0x7296e6(0x136));if(_0x19dd04)_0x38e389[_0x7296e6(0x146)]=_0x19dd04;return _0x38e389;}export const dbUpdate={'service':'db','command':a108_0x5c0128(0x13f),'description':a108_0x5c0128(0x14f),'risk':'write','flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a108_0x5c0128(0x14e),'type':'string','description':a108_0x5c0128(0x14c)},{'name':a108_0x5c0128(0x156),'type':a108_0x5c0128(0x152),'description':a108_0x5c0128(0x137)},{'name':a108_0x5c0128(0x157),'type':a108_0x5c0128(0x152),'description':a108_0x5c0128(0x13e)},{'name':a108_0x5c0128(0x141),'type':a108_0x5c0128(0x152),'description':a108_0x5c0128(0x149)},{'name':'dbparam','type':'string','description':a108_0x5c0128(0x140)},{'name':'dbdesc','type':a108_0x5c0128(0x152),'description':a108_0x5c0128(0x14a)},SKIP_CONNECTION_TEST_FLAG],async 'validate'(_0x75dd34){const _0x156511=a108_0x5c0128,_0xe116f6=_0x75dd34[_0x156511(0x13d)]('dburl');if(_0xe116f6&&!validateDbUrl(_0xe116f6[_0x156511(0x15a)]()))throw CliErrors[_0x156511(0x138)](_0x156511(0x13b)+_0xe116f6+'\x22');},async 'dryRun'(_0x52325f){const _0x328ff0=a108_0x5c0128,_0x3c56b3=_0x52325f[_0x328ff0(0x139)]('id'),_0x5dd0d6=await getDbLinkInfo(_0x3c56b3),_0x18155a=mergeDbLinkUpdate(_0x5dd0d6,_0x52325f),_0xcdc957=sanitizeDbLinkForOutput(_0x18155a);return{'method':'POST','url':'/smartapi/dblink/update','body':_0xcdc957,'description':_0x328ff0(0x13c),'connectionPreflight':{'enabled':!_0x52325f[_0x328ff0(0x147)](_0x328ff0(0x13a)),'executed':![]}};},async 'execute'(_0x43853a){const _0x574907=a108_0x5c0128,_0x16317b=_0x43853a[_0x574907(0x139)]('id'),_0xc88eec=await getDbLinkInfo(_0x16317b),_0x37446a=mergeDbLinkUpdate(_0xc88eec,_0x43853a);!_0x43853a[_0x574907(0x147)]('skip-connection-test')&&await assertDbLinkConnectionPreflight(_0x37446a);const {id:_0x5db32c,entity:_0x2f81dd}=normalizeEntityWithIdResponse(await updateDbLink(_0x37446a));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x2f81dd),'message':'Updated\x20db\x20link\x20'+(_0x5db32c??_0x16317b)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x37acf0,_0xf85e25){const _0x33b9de=a109_0x3197,_0x49fb07=_0x37acf0();while(!![]){try{const _0x32855e=parseInt(_0x33b9de(0x1f8))/0x1+-parseInt(_0x33b9de(0x1f4))/0x2*(parseInt(_0x33b9de(0x1fb))/0x3)+-parseInt(_0x33b9de(0x1fa))/0x4+-parseInt(_0x33b9de(0x1fc))/0x5*(parseInt(_0x33b9de(0x1f5))/0x6)+-parseInt(_0x33b9de(0x1fd))/0x7+-parseInt(_0x33b9de(0x1f9))/0x8*(-parseInt(_0x33b9de(0x1f6))/0x9)+-parseInt(_0x33b9de(0x1f7))/0xa;if(_0x32855e===_0xf85e25)break;else _0x49fb07['push'](_0x49fb07['shift']());}catch(_0x220a4d){_0x49fb07['push'](_0x49fb07['shift']());}}}(a109_0x486f,0x1c5b5));function a109_0x3197(_0x5d098b,_0xf2a126){_0x5d098b=_0x5d098b-0x1f4;const _0x486f96=a109_0x486f();let _0x319722=_0x486f96[_0x5d098b];return _0x319722;}import{deploymentSyncAll}from'../../commands/deployment/sync-all.js';import{deploymentSyncStatus}from'../../commands/deployment/sync-status.js';import{deploymentSyncJobs}from'../../commands/deployment/sync-jobs.js';function a109_0x486f(){const _0xd5c63b=['761400jslNNh','219288GBiNZC','3464KBMsyX','197100TZFkWc','153wFCRYZ','18295feVair','636916wegSfn','592LLRvin','114ZUZdgi','4113qtVyTX'];a109_0x486f=function(){return _0xd5c63b;};return a109_0x486f();}export const deploymentDefinitions=[deploymentSyncAll,deploymentSyncStatus,deploymentSyncJobs];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a110_0x5ecea4=a110_0x5b97;(function(_0x78c582,_0x59d797){const _0x1ddf89=a110_0x5b97,_0x330ec3=_0x78c582();while(!![]){try{const _0x129be2=-parseInt(_0x1ddf89(0xff))/0x1+parseInt(_0x1ddf89(0xe8))/0x2*(-parseInt(_0x1ddf89(0xfe))/0x3)+parseInt(_0x1ddf89(0xfa))/0x4*(-parseInt(_0x1ddf89(0xf6))/0x5)+parseInt(_0x1ddf89(0x101))/0x6*(parseInt(_0x1ddf89(0xf1))/0x7)+parseInt(_0x1ddf89(0xe9))/0x8+-parseInt(_0x1ddf89(0xea))/0x9*(-parseInt(_0x1ddf89(0xf7))/0xa)+parseInt(_0x1ddf89(0xe1))/0xb;if(_0x129be2===_0x59d797)break;else _0x330ec3['push'](_0x330ec3['shift']());}catch(_0x2254d2){_0x330ec3['push'](_0x330ec3['shift']());}}}(a110_0x17a6,0x650c5));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{asDryRunResult}from'../../commands/common/dry-run.js';function a110_0x5b97(_0x2d92f6,_0x1ab923){_0x2d92f6=_0x2d92f6-0xdd;const _0x17a6ed=a110_0x17a6();let _0x5b9717=_0x17a6ed[_0x2d92f6];return _0x5b9717;}import{isPlatformTransportFailure,submitDeploymentMetadataSyncAll}from'../../core/api-client.js';import{CliError,CliErrors}from'../../errors.js';const SUBMIT_PATH=a110_0x5ecea4(0xf0),CONFIRM_FLAG={'name':a110_0x5ecea4(0xf8),'type':'boolean','description':a110_0x5ecea4(0xe0)};export const deploymentSyncAll={'service':a110_0x5ecea4(0xe7),'command':a110_0x5ecea4(0xde),'description':a110_0x5ecea4(0xeb),'risk':a110_0x5ecea4(0xf3),'strictFlags':!![],'structuredErrors':!![],'confirmationDescription':a110_0x5ecea4(0xec),'flags':[CONFIRM_FLAG,APPCODE_FLAG_OPTIONAL],async 'dryRun'(_0x1e546c){const _0x5d6280=a110_0x5ecea4;return asDryRunResult(buildPreview(_0x1e546c['appCode']),{'method':'POST','url':SUBMIT_PATH,'description':_0x5d6280(0xee)});},async 'execute'(_0x5baf94){const _0x480087=a110_0x5ecea4;if(!_0x5baf94[_0x480087(0xdf)](_0x480087(0xf8)))throw CliErrors['validation'](_0x480087(0xf5),_0x480087(0xe4));try{const _0x22126e=await submitDeploymentMetadataSyncAll({'appCode':_0x5baf94['appCode']});if(_0x22126e[_0x480087(0xe3)]==='not_needed')return{'ok':!![],'data':{'operation':'application_deployment_sync','appCode':_0x5baf94[_0x480087(0xe2)],'submitted':![],'outcome':'not_needed'},'message':_0x480087(0x102)};return{'ok':!![],'data':{'operation':'application_deployment_sync','appCode':_0x5baf94['appCode'],'submitted':!![],'outcome':_0x480087(0xe5),'jobId':_0x22126e[_0x480087(0xdd)][_0x480087(0xfc)],'status':_0x22126e['job'][_0x480087(0xf2)]},'message':_0x480087(0xf9)+_0x22126e[_0x480087(0xdd)][_0x480087(0xfc)]+'.'};}catch(_0x15205c){if(!isPlatformTransportFailure(_0x15205c))throw _0x15205c;const _0x40bee0=new CliError('deployment_sync_submit_outcome_unknown',0x2,_0x480087(0xf4),_0x480087(0xe6));Object[_0x480087(0xfb)](_0x40bee0,_0x480087(0xef),{'enumerable':!![],'value':{'operation':'application_deployment_sync','appCode':_0x5baf94[_0x480087(0xe2)],'submitted':null,'outcome':_0x480087(0x100)}});throw _0x40bee0;}}};function a110_0x17a6(){const _0x3a1d86=['jobId','application_deployment_sync','123FdYKGK','625221dViIPW','unknown','48ItLxEr','No\x20deployment\x20synchronization\x20was\x20needed\x20for\x20this\x20app.','job','sync-all','bool','Confirm\x20the\x20administrative\x20backfill\x20or\x20recovery\x20synchronization','20449187PRbvgT','appCode','outcome','Run\x20with\x20--dry-run\x20first,\x20then\x20add\x20--confirm.','submitted','List\x20recent\x20deployment\x20sync\x20jobs\x20before\x20deciding\x20whether\x20to\x20submit\x20again.','deployment','36154KuIEue','917936olMQaA','9eBZAoM','Backfill\x20or\x20recover\x20all\x20server-supported\x20application\x20metadata','Submit\x20an\x20administrative\x20metadata\x20backfill\x20or\x20recovery\x20synchronization.','all_server_supported_metadata','Would\x20submit\x20an\x20administrative\x20deployment\x20metadata\x20backfill\x20or\x20recovery\x20job.','data','/smartapi/data-sync/submit','167048nZJgYB','status','write','Deployment\x20sync\x20submission\x20response\x20was\x20unavailable;\x20job\x20creation\x20is\x20unknown.','--confirm\x20is\x20required\x20to\x20synchronize\x20all\x20application\x20metadata.','2526495xhhWfH','1208990PQRPhA','confirm','Submitted\x20deployment\x20synchronization\x20job\x20','4oBthJC','defineProperty'];a110_0x17a6=function(){return _0x3a1d86;};return a110_0x17a6();}function buildPreview(_0x1e064c){const _0xf749cb=a110_0x5ecea4;return{'operation':_0xf749cb(0xfd),'selector':{'appCode':_0x1e064c,'scope':_0xf749cb(0xed)},'before':null,'after':null,'dryRun':!![],'backend':{'submitted':![],'outcome':'not_submitted'},'warnings':[]};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a111_0x1d041f=a111_0x4199;function a111_0x14b0(){const _0x24544d=['List\x20application\x20deployment\x20synchronization\x20jobs','isSafeInteger','validation','string','num','str','108426VPZSxG','1535qUqIdl','5484661kCEOpa','Page\x20number','8473580jIWUxJ','806544yqtAhR','page-size','Items\x20per\x20page\x20(maximum\x20100)','status','22325VTeZqd','6kNNcMI','--current-page\x20must\x20be\x20a\x20positive\x20integer.','length','number','appCode','read','Optional\x20server-defined\x20job\x20status\x20filter','46KjbEbM','--page-size\x20must\x20be\x20an\x20integer\x20from\x201\x20to\x20100.','deployment','2964PNSkwq','3143176biLbwx','current-page'];a111_0x14b0=function(){return _0x24544d;};return a111_0x14b0();}(function(_0x2c4fcf,_0x43e001){const _0x1056d5=a111_0x4199,_0x2f95e5=_0x2c4fcf();while(!![]){try{const _0x22ee72=parseInt(_0x1056d5(0x199))/0x1*(parseInt(_0x1056d5(0x1a1))/0x2)+parseInt(_0x1056d5(0x190))/0x3+-parseInt(_0x1056d5(0x1a4))/0x4*(parseInt(_0x1056d5(0x191))/0x5)+parseInt(_0x1056d5(0x19a))/0x6*(parseInt(_0x1056d5(0x192))/0x7)+parseInt(_0x1056d5(0x1a5))/0x8+-parseInt(_0x1056d5(0x195))/0x9+-parseInt(_0x1056d5(0x194))/0xa;if(_0x22ee72===_0x43e001)break;else _0x2f95e5['push'](_0x2f95e5['shift']());}catch(_0x14d1b2){_0x2f95e5['push'](_0x2f95e5['shift']());}}}(a111_0x14b0,0x891a8));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{listDeploymentMetadataSyncJobs}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a111_0x4199(_0x1afd06,_0x19aa8a){_0x1afd06=_0x1afd06-0x18d;const _0x14b034=a111_0x14b0();let _0x419970=_0x14b034[_0x1afd06];return _0x419970;}export const deploymentSyncJobs={'service':a111_0x1d041f(0x1a3),'command':'sync-jobs','description':a111_0x1d041f(0x1a7),'risk':a111_0x1d041f(0x19f),'strictFlags':!![],'structuredErrors':!![],'flags':[{'name':a111_0x1d041f(0x1a6),'type':a111_0x1d041f(0x19d),'default':0x1,'description':a111_0x1d041f(0x193)},{'name':a111_0x1d041f(0x196),'type':'number','default':0xa,'description':a111_0x1d041f(0x197)},{'name':a111_0x1d041f(0x198),'type':a111_0x1d041f(0x18d),'description':a111_0x1d041f(0x1a0)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x588449){const _0x599d97=a111_0x1d041f;readPaging(_0x588449[_0x599d97(0x18e)](_0x599d97(0x1a6),0x1),_0x588449[_0x599d97(0x18e)](_0x599d97(0x196),0xa));},async 'execute'(_0x1d3e1){const _0x2999ab=a111_0x1d041f,{currentPage:_0x7266d4,pageSize:_0x52e20f}=readPaging(_0x1d3e1[_0x2999ab(0x18e)](_0x2999ab(0x1a6),0x1),_0x1d3e1['num'](_0x2999ab(0x196),0xa)),_0x3169b3=_0x1d3e1[_0x2999ab(0x18f)](_0x2999ab(0x198))['trim'](),_0x3bb6eb=await listDeploymentMetadataSyncJobs({'appCode':_0x1d3e1[_0x2999ab(0x19e)],'currentPage':_0x7266d4,'pageSize':_0x52e20f,..._0x3169b3?{'status':_0x3169b3}:{}});return{'ok':!![],'data':{'appCode':_0x1d3e1[_0x2999ab(0x19e)],..._0x3bb6eb},'message':'Found\x20'+_0x3bb6eb['items'][_0x2999ab(0x19c)]+'\x20deployment\x20synchronization\x20job(s).'};}};function readPaging(_0xb533b8,_0x2dbbe2){const _0x3ab39d=a111_0x1d041f;if(!Number[_0x3ab39d(0x1a8)](_0xb533b8)||_0xb533b8<0x1)throw CliErrors[_0x3ab39d(0x1a9)](_0x3ab39d(0x19b));if(!Number['isSafeInteger'](_0x2dbbe2)||_0x2dbbe2<0x1||_0x2dbbe2>0x64)throw CliErrors[_0x3ab39d(0x1a9)](_0x3ab39d(0x1a2));return{'currentPage':_0xb533b8,'pageSize':_0x2dbbe2};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a112_0x516777=a112_0x4aeb;(function(_0x12e6c4,_0x51b52d){const _0x372fce=a112_0x4aeb,_0x671a7c=_0x12e6c4();while(!![]){try{const _0x4ce84d=-parseInt(_0x372fce(0x177))/0x1+parseInt(_0x372fce(0x18c))/0x2+parseInt(_0x372fce(0x178))/0x3*(-parseInt(_0x372fce(0x180))/0x4)+parseInt(_0x372fce(0x18e))/0x5+parseInt(_0x372fce(0x190))/0x6*(-parseInt(_0x372fce(0x17b))/0x7)+parseInt(_0x372fce(0x186))/0x8*(parseInt(_0x372fce(0x183))/0x9)+-parseInt(_0x372fce(0x185))/0xa;if(_0x4ce84d===_0x51b52d)break;else _0x671a7c['push'](_0x671a7c['shift']());}catch(_0x26fb7e){_0x671a7c['push'](_0x671a7c['shift']());}}}(a112_0x2772,0x6680f));import{getDeploymentMetadataSyncStatus}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a112_0x4aeb(_0x169812,_0x184006){_0x169812=_0x169812-0x177;const _0x2772d6=a112_0x2772();let _0x4aebf6=_0x2772d6[_0x169812];return _0x4aebf6;}const TERMINAL_STATUSES=new Set(['SUCCESS',a112_0x516777(0x18a),a112_0x516777(0x191)]),ACTIVE_STATUSES=new Set([a112_0x516777(0x184),a112_0x516777(0x194)]);export const deploymentSyncStatus={'service':a112_0x516777(0x195),'command':'sync-status','description':a112_0x516777(0x181),'risk':a112_0x516777(0x189),'requiresAppCode':!![],'strictFlags':!![],'structuredErrors':!![],'flags':[{'name':a112_0x516777(0x192),'type':a112_0x516777(0x18b),'required':!![],'description':a112_0x516777(0x197)}],async 'validate'(_0x2abe52){const _0x2b46dd=a112_0x516777;readJobId(_0x2abe52[_0x2b46dd(0x196)]('job-id'));},async 'execute'(_0x5a62bf){const _0x14164b=a112_0x516777,_0x17c946=readJobId(_0x5a62bf[_0x14164b(0x196)]('job-id')),_0x3c438b=await getDeploymentMetadataSyncStatus({'jobId':_0x17c946,'appCode':_0x5a62bf[_0x14164b(0x17e)]}),_0x317bcd=TERMINAL_STATUSES[_0x14164b(0x179)](_0x3c438b[_0x14164b(0x18f)])?!![]:ACTIVE_STATUSES[_0x14164b(0x179)](_0x3c438b[_0x14164b(0x18f)])?![]:null,_0x44cf4b=countBy(_0x3c438b[_0x14164b(0x198)][_0x14164b(0x17c)](_0x3f629f=>_0x3f629f[_0x14164b(0x17d)])),_0x4e7fb6=countBy(_0x3c438b[_0x14164b(0x198)]['map'](_0x4e1297=>_0x4e1297[_0x14164b(0x17a)])),_0x2c932e=_0x317bcd===null?['Preserved\x20server-defined\x20status\x20'+_0x3c438b['status']+';\x20terminal\x20state\x20is\x20unknown\x20to\x20this\x20CLI\x20version.']:[];return{'ok':!![],'data':{'job':_0x3c438b,'isTerminal':_0x317bcd,'summary':{'total':_0x3c438b['results'][_0x14164b(0x188)],'failed':_0x3c438b[_0x14164b(0x198)][_0x14164b(0x199)](_0x4e0d8d=>_0x4e0d8d['action']==='FAILED')[_0x14164b(0x188)],'byBizType':_0x44cf4b,'byAction':_0x4e7fb6},'warnings':_0x2c932e},'message':_0x14164b(0x182)+_0x17c946+'\x20is\x20'+_0x3c438b['status']+'.'};}};function readJobId(_0x38e5ef){const _0x30ddfc=a112_0x516777;if(!Number[_0x30ddfc(0x193)](_0x38e5ef)||_0x38e5ef<=0x0)throw CliErrors[_0x30ddfc(0x17f)](_0x30ddfc(0x18d));return _0x38e5ef;}function a112_0x2772(){const _0x11f273=['3272185TCmClv','status','164994EFdKEv','FAILED','job-id','isSafeInteger','RUNNING','deployment','num','Deployment\x20synchronization\x20job\x20ID','results','filter','15849LxxdWn','237687TBRJht','has','action','49YbFXaL','map','bizType','appCode','validation','36LDUlSu','Get\x20application\x20deployment\x20synchronization\x20job\x20status','Deployment\x20synchronization\x20job\x20','27kRJORL','PENDING','282320efVnMJ','545384HeRvUA','reduce','length','read','PARTIAL_SUCCESS','number','1021068RSdpkC','--job-id\x20must\x20be\x20a\x20positive\x20integer.'];a112_0x2772=function(){return _0x11f273;};return a112_0x2772();}function countBy(_0x158c3c){const _0x5374c2=a112_0x516777;return _0x158c3c[_0x5374c2(0x187)]((_0x17e252,_0xe30263)=>{return _0x17e252[_0xe30263]=(_0x17e252[_0xe30263]??0x0)+0x1,_0x17e252;},{});}
|
package/lib/commands/doctor.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a103_0x517102=a103_0x35f9;(function(_0x49451b,_0x483568){const _0x306c44=a103_0x35f9,_0x13533d=_0x49451b();while(!![]){try{const _0x7cb3f4=-parseInt(_0x306c44(0x1e0))/0x1+parseInt(_0x306c44(0x1d5))/0x2+-parseInt(_0x306c44(0x1bb))/0x3*(parseInt(_0x306c44(0x205))/0x4)+parseInt(_0x306c44(0x18c))/0x5*(parseInt(_0x306c44(0x1fa))/0x6)+-parseInt(_0x306c44(0x20d))/0x7+-parseInt(_0x306c44(0x1fd))/0x8+parseInt(_0x306c44(0x1cf))/0x9;if(_0x7cb3f4===_0x483568)break;else _0x13533d['push'](_0x13533d['shift']());}catch(_0x348692){_0x13533d['push'](_0x13533d['shift']());}}}(a103_0x412e,0xd4fdc));import a103_0x2d1d31 from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';function a103_0x35f9(_0x1c7893,_0x44f446){_0x1c7893=_0x1c7893-0x181;const _0x412e85=a103_0x412e();let _0x35f90b=_0x412e85[_0x1c7893];return _0x35f90b;}import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';import{getActiveRegion,getApiDomain,getAppDomain,getKbDomain,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';function a103_0x412e(){const _0x395439=['inherit','1019975QvnWnr','project','\x20\x20skillDomain:\x20\x20\x20\x20\x20','repeat','bold','Not\x20checked\x20until\x20routing\x20configuration\x20is\x20repaired','\x20\x20Auth','\x20\x20Apps','Repair\x20','reason','region','toLowerCase','(set\x20via\x20file,\x20length=','(unknown)','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','(set,\x20length=','join','\x20app\x20\x22','(none)','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','env','(not\x20set)','\x20\x20explicitAppName:\x20','message','red','pageSize','803646gHQHtm','appcode','check','841448WtleiH','\x20config\x20delete\x20region','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','source','projectConfig','platform','regionConfiguredValue','unknown','228sVmOkV','\x20\x20appDomain:\x20\x20\x20\x20\x20\x20\x20','explicitAppName','version','\x20\x20API\x20Endpoints','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','✗\x20Expired','\x20\x20Repair\x20project:\x20\x20\x20','6418013JiKEdT','missing','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','arch','\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','currentApp','\x20\x20Repair\x20project:\x20\x20','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','\x20\x20Repair\x20global:\x20\x20\x20\x20','\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','read','ignored\x20in\x20','5AtZYUc','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Config\x20JSON','Unavailable\x20until\x20routing\x20configuration\x20is\x20repaired','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','apiDir','apps','\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Global','global','green','✓\x20Valid','prototype','\x20doctor','label','object','(not\x20found)','cookie','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','raw','Set\x20apps.','\x20\x20Package\x20Version:\x20','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','✗\x20Not\x20logged\x20in','hasOwnProperty','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','(default)','\x20\x20Merged\x20Config','accessKey','format','state','value','\x20config\x20delete\x20inherit','✗\x20Invalid\x20JSON','yellow','gray','filter','routing','\x20\x20\x20\x20region:\x20\x20\x20\x20\x20','\x20\x20Repair\x20global:\x20\x20\x20','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','\x20\x20Built-in\x20Skill','installedPath','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','includes','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','71166KeVNvy','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','\x20\x20runtimeDomain:\x20\x20\x20','length','\x20\x20app\x20locale:\x20\x20\x20\x20\x20\x20','\x20\x20Routing\x20Configuration','push','riskLevel','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Legacy\x20inherit:\x20\x20\x20','call','(no\x20file)','\x20\x20Config\x20Files','\x20config\x20delete\x20routing\x20--global','\x20config','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','globalConfig','empty','✗\x20Invalid','keys','34119738nZRycC','\x20config\x20delete\x20routing','slice','log','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','\x20\x20kbDomain:\x20\x20\x20\x20\x20\x20\x20\x20','683116pZGSNK','locale','defaultApp','\x20\x20─','\x20+\x20','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','packageVersion','Project','padEnd','\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'];a103_0x412e=function(){return _0x395439;};return a103_0x412e();}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(_0x26b0d1){return typeof _0x26b0d1==='string'?JSON['stringify'](_0x26b0d1):'<'+(_0x26b0d1===null?'null':typeof _0x26b0d1)+'>';}async function execute(_0x2b0a8a){const _0x2221f4=a103_0x35f9,_0x569a22=GIT_COMMIT!==_0x2221f4(0x204)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x2221f4(0x1d1)](0x0,0xa)+')':VERSION,_0xe2b283=buildConfigFromFlags({}),_0x2c85c7=getCookie();let _0x103541;try{await initGlobalEnvironment(_0xe2b283);}catch(_0x531295){_0x103541=_0x531295 instanceof Error?_0x531295:new Error(String(_0x531295));}console[_0x2221f4(0x1d2)](),console['log'](a103_0x2d1d31[_0x2221f4(0x1e4)](CLI_BIN_NAME+_0x2221f4(0x19a))),console['log'](a103_0x2d1d31[_0x2221f4(0x1b0)]('─'[_0x2221f4(0x1e3)](0x32))),console[_0x2221f4(0x1d2)](_0x2221f4(0x182)+_0x569a22),console[_0x2221f4(0x1d2)](_0x2221f4(0x1a3)+process[_0x2221f4(0x208)]),console[_0x2221f4(0x1d2)]('\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20'+process[_0x2221f4(0x202)]+'\x20'+process[_0x2221f4(0x183)]);const _0x3b81cc=inspectBuiltinSkill();console[_0x2221f4(0x1d2)](),console[_0x2221f4(0x1d2)](a103_0x2d1d31[_0x2221f4(0x1e4)](_0x2221f4(0x1b6))),console[_0x2221f4(0x1d2)](a103_0x2d1d31['gray'](_0x2221f4(0x1d8)[_0x2221f4(0x1e3)](0x1e)));const _0x4ff3db=_0x3b81cc[_0x2221f4(0x1ab)]==='current'?a103_0x2d1d31['green']('✓\x20'+_0x3b81cc[_0x2221f4(0x1ab)]):a103_0x2d1d31[_0x2221f4(0x1f8)]('✗\x20'+_0x3b81cc[_0x2221f4(0x1ab)]);console[_0x2221f4(0x1d2)](_0x2221f4(0x194)+_0x4ff3db),console[_0x2221f4(0x1d2)](_0x2221f4(0x1a2)+_0x3b81cc[_0x2221f4(0x1db)]),console[_0x2221f4(0x1d2)]('\x20\x20Skill\x20Version:\x20\x20\x20'+(_0x3b81cc['skillVersion']||a103_0x2d1d31[_0x2221f4(0x1b0)](_0x2221f4(0x1ed)))),console['log']('\x20\x20Installed\x20Path:\x20\x20'+(_0x3b81cc[_0x2221f4(0x1b7)]||a103_0x2d1d31[_0x2221f4(0x1b0)](_0x2221f4(0x19d))));if(_0x3b81cc['reason'])console['log']('\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x3b81cc[_0x2221f4(0x1e9)]);_0x3b81cc[_0x2221f4(0x1ab)]!=='current'&&console[_0x2221f4(0x1d2)](_0x2221f4(0x184)+_0x3b81cc['repairCommand']);console[_0x2221f4(0x1d2)](),console['log'](a103_0x2d1d31[_0x2221f4(0x1e4)](_0x2221f4(0x1c7))),console[_0x2221f4(0x1d2)](a103_0x2d1d31[_0x2221f4(0x1b0)](_0x2221f4(0x1d8)[_0x2221f4(0x1e3)](0x1e)));const _0x1c4405=getGlobalConfigPath(),_0x12d6ac=getProjectConfigPath();console['log'](_0x2221f4(0x1ba)+(_0x1c4405||a103_0x2d1d31[_0x2221f4(0x1b0)](_0x2221f4(0x19d)))),console[_0x2221f4(0x1d2)](_0x2221f4(0x1c3)+(_0x12d6ac||a103_0x2d1d31['gray'](_0x2221f4(0x19d)))),console[_0x2221f4(0x1d2)](),console[_0x2221f4(0x1d2)](a103_0x2d1d31['bold'](_0x2221f4(0x18f))),console[_0x2221f4(0x1d2)](a103_0x2d1d31[_0x2221f4(0x1b0)](_0x2221f4(0x1d8)[_0x2221f4(0x1e3)](0x1e)));const _0x2061a2=(_0xe567e5,_0x286bd9)=>{const _0x1f631c=_0x2221f4;if(!_0x286bd9){console[_0x1f631c(0x1d2)]('\x20\x20'+_0xe567e5[_0x1f631c(0x1dd)](0x11)+'\x20'+a103_0x2d1d31[_0x1f631c(0x1b0)](_0x1f631c(0x1c6)));return;}const _0x49aa4d=inspectCliConfigJsonFile(_0x286bd9);if(_0x49aa4d['status']==='ok')console[_0x1f631c(0x1d2)]('\x20\x20'+_0xe567e5[_0x1f631c(0x1dd)](0x11)+'\x20'+a103_0x2d1d31['green']('✓\x20Valid\x20JSON'));else{if(_0x49aa4d['status']===_0x1f631c(0x1cc))console['log']('\x20\x20'+_0xe567e5[_0x1f631c(0x1dd)](0x11)+'\x20'+a103_0x2d1d31['yellow']('⚠\x20Empty\x20(treated\x20as\x20{})'));else _0x49aa4d['status']===_0x1f631c(0x181)?console[_0x1f631c(0x1d2)]('\x20\x20'+_0xe567e5[_0x1f631c(0x1dd)](0x11)+'\x20'+a103_0x2d1d31[_0x1f631c(0x1b0)]('(missing)')):(console['log']('\x20\x20'+_0xe567e5['padEnd'](0x11)+'\x20'+a103_0x2d1d31['red'](_0x1f631c(0x1ae))),console[_0x1f631c(0x1d2)]('\x20\x20'+''[_0x1f631c(0x1dd)](0x11)+'\x20'+a103_0x2d1d31[_0x1f631c(0x1f8)](_0x49aa4d['message'])));}};_0x2061a2(_0x2221f4(0x195),_0x1c4405),_0x2061a2(_0x2221f4(0x1dc),_0x12d6ac);const _0x44c915=loadRawConfigLayers(),_0xeeee8a=[{'label':_0x2221f4(0x1dc),'value':_0x44c915['projectConfig']['region'],'present':Object['prototype'][_0x2221f4(0x1a5)][_0x2221f4(0x1c5)](_0x44c915[_0x2221f4(0x201)],'region'),'repairCommand':CLI_BIN_NAME+_0x2221f4(0x1fe)},{'label':_0x2221f4(0x195),'value':_0x44c915['globalConfig']['region'],'present':Object[_0x2221f4(0x199)][_0x2221f4(0x1a5)][_0x2221f4(0x1c5)](_0x44c915[_0x2221f4(0x1cb)],'region'),'repairCommand':CLI_BIN_NAME+'\x20config\x20delete\x20region\x20--global'}][_0x2221f4(0x1b1)](_0x2ed67d=>_0x2ed67d['present']&&isInvalidLovrabetRegion(_0x2ed67d[_0x2221f4(0x1ac)]));for(const [_0x46a882,_0x14b4fb]of[['Project',_0x44c915[_0x2221f4(0x201)]],[_0x2221f4(0x195),_0x44c915[_0x2221f4(0x1cb)]]]){const _0x4b5d55=_0x14b4fb[_0x2221f4(0x193)]&&typeof _0x14b4fb[_0x2221f4(0x193)]==='object'?_0x14b4fb[_0x2221f4(0x193)]:{};for(const [_0x5dc942,_0x213296]of Object['entries'](_0x4b5d55)){if(!_0x213296||typeof _0x213296!==_0x2221f4(0x19c)||!Object['prototype'][_0x2221f4(0x1a5)][_0x2221f4(0x1c5)](_0x213296,_0x2221f4(0x1ea)))continue;isInvalidLovrabetRegion(_0x213296['region'])&&_0xeeee8a[_0x2221f4(0x1c1)]({'label':_0x46a882+_0x2221f4(0x1f1)+_0x5dc942+'\x22','value':_0x213296[_0x2221f4(0x1ea)],'present':!![],'repairCommand':_0x2221f4(0x1a1)+_0x5dc942+'.region\x20to\x20cn\x20or\x20id\x20in\x20'+_0x46a882[_0x2221f4(0x1eb)]()+_0x2221f4(0x1c9)});}}if(_0xeeee8a['length']>0x0){console[_0x2221f4(0x1d2)](),console[_0x2221f4(0x1d2)](a103_0x2d1d31[_0x2221f4(0x1e4)]('\x20\x20Country/Region\x20Configuration')),console[_0x2221f4(0x1d2)](a103_0x2d1d31[_0x2221f4(0x1b0)](_0x2221f4(0x1d8)[_0x2221f4(0x1e3)](0x1e)));for(const _0x46d957 of _0xeeee8a){console[_0x2221f4(0x1d2)]('\x20\x20'+_0x46d957[_0x2221f4(0x19b)]['padEnd'](0x11)+'\x20'+a103_0x2d1d31[_0x2221f4(0x1f8)]('✗\x20Invalid\x20'+describeRegionValue(_0x46d957['value']))),console[_0x2221f4(0x1d2)]('\x20\x20'+(_0x2221f4(0x1e8)+_0x46d957[_0x2221f4(0x19b)][_0x2221f4(0x1eb)]()+':')[_0x2221f4(0x1dd)](0x10)+'\x20'+_0x46d957['repairCommand']);}}const _0x5a3530=[Object['prototype'][_0x2221f4(0x1a5)][_0x2221f4(0x1c5)](_0x44c915[_0x2221f4(0x1cb)],_0x2221f4(0x1df))?_0x2221f4(0x196):null,Object['prototype'][_0x2221f4(0x1a5)][_0x2221f4(0x1c5)](_0x44c915[_0x2221f4(0x201)],_0x2221f4(0x1df))?_0x2221f4(0x1e1):null][_0x2221f4(0x1b1)](Boolean);_0x5a3530['length']>0x0&&(console[_0x2221f4(0x1d2)](_0x2221f4(0x1c4)+a103_0x2d1d31[_0x2221f4(0x1af)](_0x2221f4(0x18b)+_0x5a3530[_0x2221f4(0x1f0)](_0x2221f4(0x1d9))+_0x2221f4(0x1c9))),_0x5a3530[_0x2221f4(0x1b9)](_0x2221f4(0x1e1))&&console[_0x2221f4(0x1d2)](_0x2221f4(0x20c)+CLI_BIN_NAME+_0x2221f4(0x1ad)),_0x5a3530[_0x2221f4(0x1b9)](_0x2221f4(0x196))&&console['log'](_0x2221f4(0x188)+CLI_BIN_NAME+'\x20config\x20delete\x20inherit\x20--global'));const _0x3dd910=isInvalidLovrabetRegion(_0xe2b283['regionConfiguredValue']??_0xe2b283[_0x2221f4(0x1a0)]?.['region']);_0x103541&&!_0x3dd910&&(console[_0x2221f4(0x1d2)](),console[_0x2221f4(0x1d2)](a103_0x2d1d31['bold'](_0x2221f4(0x1c0))),console[_0x2221f4(0x1d2)](a103_0x2d1d31[_0x2221f4(0x1b0)]('\x20\x20─'[_0x2221f4(0x1e3)](0x1e))),console[_0x2221f4(0x1d2)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a103_0x2d1d31[_0x2221f4(0x1f8)](_0x2221f4(0x1cd))),console[_0x2221f4(0x1d2)](_0x2221f4(0x1de)+_0x103541[_0x2221f4(0x1f7)]),Object[_0x2221f4(0x199)][_0x2221f4(0x1a5)][_0x2221f4(0x1c5)](_0x44c915['projectConfig'],'routing')&&console['log'](_0x2221f4(0x186)+CLI_BIN_NAME+_0x2221f4(0x1d0)),Object['prototype'][_0x2221f4(0x1a5)][_0x2221f4(0x1c5)](_0x44c915['globalConfig'],_0x2221f4(0x1b2))&&console[_0x2221f4(0x1d2)](_0x2221f4(0x1b4)+CLI_BIN_NAME+_0x2221f4(0x1c8)));console[_0x2221f4(0x1d2)](),console['log'](a103_0x2d1d31[_0x2221f4(0x1e4)](_0x2221f4(0x1a8))),console[_0x2221f4(0x1d2)](a103_0x2d1d31[_0x2221f4(0x1b0)]('\x20\x20─'[_0x2221f4(0x1e3)](0x1e))),console[_0x2221f4(0x1d2)]('\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0xe2b283['appCode']||a103_0x2d1d31['red'](_0x2221f4(0x1f5))));const _0x375264=_0x3dd910?a103_0x2d1d31[_0x2221f4(0x1f8)](describeRegionValue(_0xe2b283[_0x2221f4(0x203)]??_0xe2b283[_0x2221f4(0x1a0)]?.[_0x2221f4(0x1ea)])+'\x20(invalid)'):(_0xe2b283['region']??DEFAULT_LOVRABET_REGION)+'\x20('+(_0xe2b283['regionSource']??'default')+')';console[_0x2221f4(0x1d2)](_0x2221f4(0x189)+_0x375264),console[_0x2221f4(0x1d2)](_0x2221f4(0x1da)+_0xe2b283['env']),console[_0x2221f4(0x1d2)](_0x2221f4(0x1bf)+_0xe2b283[_0x2221f4(0x1d6)]),console['log'](_0x2221f4(0x1ca)+_0xe2b283[_0x2221f4(0x192)]),console[_0x2221f4(0x1d2)](_0x2221f4(0x191)+(_0xe2b283[_0x2221f4(0x1d7)]||a103_0x2d1d31[_0x2221f4(0x1b0)]('(none)'))),console[_0x2221f4(0x1d2)](_0x2221f4(0x1d3)+(_0xe2b283[_0x2221f4(0x185)]||a103_0x2d1d31[_0x2221f4(0x1b0)](_0x2221f4(0x1f2)))),console[_0x2221f4(0x1d2)](_0x2221f4(0x1f6)+(_0xe2b283[_0x2221f4(0x207)]||a103_0x2d1d31['gray'](_0x2221f4(0x1f2)))),console[_0x2221f4(0x1d2)](_0x2221f4(0x18e)+(_0xe2b283[_0x2221f4(0x1aa)]||a103_0x2d1d31[_0x2221f4(0x1b0)]('(default:\x20'+DEFAULT_CONFIG_VALUES['format']+')'))),console['log'](_0x2221f4(0x1a6)+(_0xe2b283[_0x2221f4(0x1f9)]??a103_0x2d1d31[_0x2221f4(0x1b0)](_0x2221f4(0x1a7)))),console[_0x2221f4(0x1d2)](_0x2221f4(0x1ff)+_0xe2b283[_0x2221f4(0x1c2)]),console['log'](_0x2221f4(0x1b8)+_0xe2b283['verbose']),console['log'](_0x2221f4(0x1f3)+(_0xe2b283[_0x2221f4(0x19e)]?a103_0x2d1d31[_0x2221f4(0x197)](_0x2221f4(0x1ef)+_0xe2b283[_0x2221f4(0x19e)][_0x2221f4(0x1be)]+')'):_0x2c85c7?a103_0x2d1d31[_0x2221f4(0x197)](_0x2221f4(0x1ec)+_0x2c85c7['length']+')'):a103_0x2d1d31['gray'](_0x2221f4(0x1f2))));const _0x45b01c=Object[_0x2221f4(0x1ce)](_0xe2b283['apps']);if(_0x45b01c[_0x2221f4(0x1be)]>0x0){console[_0x2221f4(0x1d2)](),console[_0x2221f4(0x1d2)](a103_0x2d1d31['bold'](_0x2221f4(0x1e7))),console['log'](a103_0x2d1d31[_0x2221f4(0x1b0)](_0x2221f4(0x1d8)[_0x2221f4(0x1e3)](0x1e)));for(const _0x2627ef of _0x45b01c){const _0x89fc64=_0xe2b283['apps'][_0x2627ef],_0x34a0a9=_0x2627ef===_0xe2b283[_0x2221f4(0x1d7)],_0x359038=_0x2627ef===_0xe2b283[_0x2221f4(0x185)],_0x5b5878=_0x359038?a103_0x2d1d31[_0x2221f4(0x197)]('\x20←\x20current'):'',_0x31dddd=_0x34a0a9?'\x20(default)':'';console[_0x2221f4(0x1d2)]('\x20\x20'+_0x2627ef+_0x31dddd+_0x5b5878),console['log'](_0x2221f4(0x1ee)+_0x89fc64[_0x2221f4(0x1fb)]);const _0x1690b9=_0x44c915['projectConfig'][_0x2221f4(0x193)]&&typeof _0x44c915[_0x2221f4(0x201)][_0x2221f4(0x193)]==='object'?_0x44c915[_0x2221f4(0x201)]['apps']:{},_0x3f9c58=Object[_0x2221f4(0x199)][_0x2221f4(0x1a5)]['call'](_0x1690b9,_0x2627ef),_0x32d52a=isInvalidLovrabetRegion(_0x89fc64[_0x2221f4(0x1ea)])?{'region':_0xe2b283['region']??DEFAULT_LOVRABET_REGION}:resolveEffectiveRegion({'appRegion':_0x89fc64[_0x2221f4(0x1ea)],'projectRegion':_0x3f9c58?_0x44c915[_0x2221f4(0x201)][_0x2221f4(0x1ea)]:undefined,'globalRegion':_0x44c915['globalConfig']['region'],'mergedRegion':_0xe2b283['raw'][_0x2221f4(0x1ea)],'appName':_0x2627ef}),_0x3b8caf=buildAppDoctorFields(_0x89fc64,{'region':_0x32d52a[_0x2221f4(0x1ea)],'env':_0xe2b283['env'],'apiDir':_0xe2b283[_0x2221f4(0x1a0)][_0x2221f4(0x192)]||DEFAULT_CONFIG_VALUES['apiDir'],'cookie':_0xe2b283[_0x2221f4(0x19e)]||_0x2c85c7||undefined,'accessKey':_0xe2b283[_0x2221f4(0x1a9)]});console[_0x2221f4(0x1d2)](_0x2221f4(0x1b3)+_0x3b8caf[_0x2221f4(0x1ea)][_0x2221f4(0x1ac)]+'\x20\x20'+a103_0x2d1d31[_0x2221f4(0x1b0)]('('+_0x3b8caf[_0x2221f4(0x1ea)]['source']+')')),console[_0x2221f4(0x1d2)]('\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x3b8caf[_0x2221f4(0x1f4)][_0x2221f4(0x1ac)]+'\x20\x20'+a103_0x2d1d31[_0x2221f4(0x1b0)]('('+_0x3b8caf[_0x2221f4(0x1f4)][_0x2221f4(0x200)]+')')),console[_0x2221f4(0x1d2)](_0x2221f4(0x18d)+_0x3b8caf['apiDir']['value']+'\x20\x20'+a103_0x2d1d31['gray']('('+_0x3b8caf['apiDir'][_0x2221f4(0x200)]+')'));const _0x594602=_0x3b8caf['cookie'][_0x2221f4(0x1ac)]?a103_0x2d1d31[_0x2221f4(0x197)](_0x2221f4(0x1ef)+_0x3b8caf['cookie'][_0x2221f4(0x1ac)][_0x2221f4(0x1be)]+')'):a103_0x2d1d31[_0x2221f4(0x1b0)](_0x2221f4(0x1f2));console[_0x2221f4(0x1d2)](_0x2221f4(0x19f)+_0x594602+'\x20\x20'+a103_0x2d1d31[_0x2221f4(0x1b0)]('('+_0x3b8caf['cookie']['source']+')'));const _0x12e18c=_0x3b8caf[_0x2221f4(0x1a9)]['value']?a103_0x2d1d31['green'](_0x2221f4(0x1ef)+_0x3b8caf[_0x2221f4(0x1a9)][_0x2221f4(0x1ac)][_0x2221f4(0x1be)]+')'):a103_0x2d1d31[_0x2221f4(0x1b0)](_0x2221f4(0x1f2));console['log']('\x20\x20\x20\x20accessKey:\x20\x20'+_0x12e18c+'\x20\x20'+a103_0x2d1d31['gray']('('+_0x3b8caf[_0x2221f4(0x1a9)][_0x2221f4(0x200)]+')'));}}console['log'](),console[_0x2221f4(0x1d2)](a103_0x2d1d31[_0x2221f4(0x1e4)](_0x2221f4(0x209))),console[_0x2221f4(0x1d2)](a103_0x2d1d31['gray'](_0x2221f4(0x1d8)[_0x2221f4(0x1e3)](0x1e)));_0x103541?console[_0x2221f4(0x1d2)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a103_0x2d1d31['red'](_0x2221f4(0x190))):(console[_0x2221f4(0x1d2)]('\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+getActiveRegion()),console[_0x2221f4(0x1d2)](_0x2221f4(0x187)+getApiDomain()),console['log'](_0x2221f4(0x1b5)+getUserDomain()),console[_0x2221f4(0x1d2)](_0x2221f4(0x1bd)+getRuntimeDomain()),console[_0x2221f4(0x1d2)](_0x2221f4(0x1e2)+getSkillDomain()),console[_0x2221f4(0x1d2)](_0x2221f4(0x1d4)+getKbDomain()),console['log'](_0x2221f4(0x206)+getAppDomain()));console[_0x2221f4(0x1d2)](),console['log'](a103_0x2d1d31[_0x2221f4(0x1e4)](_0x2221f4(0x1e6))),console[_0x2221f4(0x1d2)](a103_0x2d1d31['gray'](_0x2221f4(0x1d8)['repeat'](0x1e)));if(_0x103541)console[_0x2221f4(0x1d2)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a103_0x2d1d31['yellow'](_0x2221f4(0x1e5)));else{if(_0x2c85c7){const _0x9a93f7=await getIsSessionValid();console[_0x2221f4(0x1d2)](_0x2221f4(0x20a)+(_0x9a93f7?a103_0x2d1d31['green'](_0x2221f4(0x198)):a103_0x2d1d31[_0x2221f4(0x1f8)](_0x2221f4(0x20b))));}else console[_0x2221f4(0x1d2)](_0x2221f4(0x20a)+a103_0x2d1d31[_0x2221f4(0x1f8)](_0x2221f4(0x1a4)));}return console[_0x2221f4(0x1d2)](),{'ok':!![]};}export const doctorDefinition={'service':'doctor','command':a103_0x517102(0x1fc),'description':a103_0x517102(0x1bc),'risk':a103_0x517102(0x18a),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
|
|
1
|
+
const a113_0x423171=a113_0x20c4;(function(_0x3d71b4,_0x24b8ba){const _0x14a4d4=a113_0x20c4,_0x111cf4=_0x3d71b4();while(!![]){try{const _0xa1f823=parseInt(_0x14a4d4(0x241))/0x1+parseInt(_0x14a4d4(0x1f2))/0x2+parseInt(_0x14a4d4(0x1ff))/0x3+-parseInt(_0x14a4d4(0x208))/0x4*(parseInt(_0x14a4d4(0x230))/0x5)+-parseInt(_0x14a4d4(0x228))/0x6+-parseInt(_0x14a4d4(0x233))/0x7*(parseInt(_0x14a4d4(0x1de))/0x8)+-parseInt(_0x14a4d4(0x24b))/0x9*(-parseInt(_0x14a4d4(0x258))/0xa);if(_0xa1f823===_0x24b8ba)break;else _0x111cf4['push'](_0x111cf4['shift']());}catch(_0x4db5be){_0x111cf4['push'](_0x111cf4['shift']());}}}(a113_0x380d,0xc4da1));function a113_0x20c4(_0x1e9cd0,_0x3cdb44){_0x1e9cd0=_0x1e9cd0-0x1d7;const _0x380d5d=a113_0x380d();let _0x20c4fa=_0x380d5d[_0x1e9cd0];return _0x20c4fa;}import a113_0x5e7fd9 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,getSkillDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';function a113_0x380d(){const _0x16d478=['\x20←\x20current','includes','accessKey','Repair\x20','49328QIdvTF','\x20app\x20\x22','\x20\x20Installed\x20Path:\x20\x20','gray','\x20\x20app\x20locale:\x20\x20\x20\x20\x20\x20','label','inherit','prototype','apps','present','global','green','\x20\x20API\x20Endpoints','\x20\x20Repair\x20global:\x20\x20\x20\x20','length','verbose','\x20\x20Apps','\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','bold','\x20\x20─','repeat','hasOwnProperty','\x20\x20Repair\x20project:\x20\x20','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','push','current','appcode','padEnd','check','filter','apiDir','Global','2706018VDvvil','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20config\x20delete\x20region','\x20\x20kbDomain:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Package\x20Version:\x20','toLowerCase','platform','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','135ZYSfUV','yellow','string','14056GkKvJg','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','message','entries','(not\x20set)','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','Unavailable\x20until\x20routing\x20configuration\x20is\x20repaired','defaultApp','\x20config','\x20\x20explicitAppName:\x20','✓\x20Valid','log','regionSource','format','659426TrpCPl','(default:\x20','Project','object','raw','state','null','\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','skillVersion','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','4230ToLpXN','\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','project','\x20\x20\x20\x20accessKey:\x20\x20','\x20\x20skillDomain:\x20\x20\x20\x20\x20','Not\x20checked\x20until\x20routing\x20configuration\x20is\x20repaired','join','Set\x20apps.','empty','(set,\x20length=','\x20\x20Country/Region\x20Configuration','\x20config\x20delete\x20routing','\x20config\x20delete\x20region\x20--global','4690fuTBXN','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','default','currentApp','\x20\x20Routing\x20Configuration','\x20config\x20delete\x20inherit','cookie','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','value','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','source','projectConfig','\x20\x20Built-in\x20Skill','explicitAppName','region','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','slice','packageVersion','5480nJTcET','(default)','(none)','\x20config\x20delete\x20inherit\x20--global','riskLevel','unknown','read','status','\x20+\x20','\x20\x20Skill\x20Version:\x20\x20\x20','⚠\x20Empty\x20(treated\x20as\x20{})','installedPath','✗\x20Expired','doctor','\x20\x20Repair\x20project:\x20\x20\x20','appCode','\x20doctor','reason','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','2184550vDPVUb','\x20(default)','call','pageSize','repairCommand','globalConfig','(not\x20found)','✗\x20Invalid','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','(missing)','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','routing','\x20config\x20delete\x20routing\x20--global','2980863fdfBmd','env','red','\x20\x20Merged\x20Config','.region\x20to\x20cn\x20or\x20id\x20in\x20'];a113_0x380d=function(){return _0x16d478;};return a113_0x380d();}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(_0x25c3e3){const _0x32d4b7=a113_0x20c4;return typeof _0x25c3e3===_0x32d4b7(0x232)?JSON['stringify'](_0x25c3e3):'<'+(_0x25c3e3===null?_0x32d4b7(0x247):typeof _0x25c3e3)+'>';}async function execute(_0x44bc63){const _0x4f370f=a113_0x20c4,_0x56b4a4=GIT_COMMIT!==_0x4f370f(0x1e3)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x4f370f(0x1dc)](0x0,0xa)+')':VERSION,_0x5f36de=buildConfigFromFlags({}),_0x26c32b=getCookie();let _0x24c8b6;try{await initGlobalEnvironment(_0x5f36de);}catch(_0x59822d){_0x24c8b6=_0x59822d instanceof Error?_0x59822d:new Error(String(_0x59822d));}console[_0x4f370f(0x23e)](),console[_0x4f370f(0x23e)](a113_0x5e7fd9[_0x4f370f(0x21a)](CLI_BIN_NAME+_0x4f370f(0x1ee))),console[_0x4f370f(0x23e)](a113_0x5e7fd9['gray']('─'[_0x4f370f(0x21c)](0x32))),console[_0x4f370f(0x23e)](_0x4f370f(0x25f)+_0x56b4a4),console['log']('\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+process['version']),console[_0x4f370f(0x23e)](_0x4f370f(0x1d9)+process[_0x4f370f(0x22e)]+'\x20'+process['arch']);const _0x2585ab=inspectBuiltinSkill();console[_0x4f370f(0x23e)](),console[_0x4f370f(0x23e)](a113_0x5e7fd9['bold'](_0x4f370f(0x264))),console[_0x4f370f(0x23e)](a113_0x5e7fd9[_0x4f370f(0x20b)](_0x4f370f(0x21b)['repeat'](0x1e)));const _0x570351=_0x2585ab['state']===_0x4f370f(0x221)?a113_0x5e7fd9['green']('✓\x20'+_0x2585ab[_0x4f370f(0x246)]):a113_0x5e7fd9[_0x4f370f(0x201)]('✗\x20'+_0x2585ab[_0x4f370f(0x246)]);console['log']('\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x570351),console[_0x4f370f(0x23e)](_0x4f370f(0x22c)+_0x2585ab[_0x4f370f(0x1dd)]),console[_0x4f370f(0x23e)](_0x4f370f(0x1e7)+(_0x2585ab[_0x4f370f(0x249)]||a113_0x5e7fd9['gray']('(unknown)'))),console[_0x4f370f(0x23e)](_0x4f370f(0x20a)+(_0x2585ab[_0x4f370f(0x1e9)]||a113_0x5e7fd9[_0x4f370f(0x20b)](_0x4f370f(0x1f8))));if(_0x2585ab[_0x4f370f(0x1ef)])console[_0x4f370f(0x23e)]('\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x2585ab[_0x4f370f(0x1ef)]);_0x2585ab[_0x4f370f(0x246)]!==_0x4f370f(0x221)&&console[_0x4f370f(0x23e)](_0x4f370f(0x24c)+_0x2585ab[_0x4f370f(0x1f6)]);console[_0x4f370f(0x23e)](),console[_0x4f370f(0x23e)](a113_0x5e7fd9['bold']('\x20\x20Config\x20Files')),console['log'](a113_0x5e7fd9['gray'](_0x4f370f(0x21b)[_0x4f370f(0x21c)](0x1e)));const _0x15a6bc=getGlobalConfigPath(),_0x11872b=getProjectConfigPath();console[_0x4f370f(0x23e)]('\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x15a6bc||a113_0x5e7fd9[_0x4f370f(0x20b)]('(not\x20found)'))),console[_0x4f370f(0x23e)](_0x4f370f(0x229)+(_0x11872b||a113_0x5e7fd9[_0x4f370f(0x20b)](_0x4f370f(0x1f8)))),console['log'](),console['log'](a113_0x5e7fd9[_0x4f370f(0x21a)]('\x20\x20Config\x20JSON')),console[_0x4f370f(0x23e)](a113_0x5e7fd9[_0x4f370f(0x20b)](_0x4f370f(0x21b)[_0x4f370f(0x21c)](0x1e)));const _0x5da47b=(_0x37e6ad,_0x1c0389)=>{const _0x2bdd47=_0x4f370f;if(!_0x1c0389){console[_0x2bdd47(0x23e)]('\x20\x20'+_0x37e6ad[_0x2bdd47(0x223)](0x11)+'\x20'+a113_0x5e7fd9[_0x2bdd47(0x20b)]('(no\x20file)'));return;}const _0xd3fd2c=inspectCliConfigJsonFile(_0x1c0389);if(_0xd3fd2c[_0x2bdd47(0x1e5)]==='ok')console[_0x2bdd47(0x23e)]('\x20\x20'+_0x37e6ad[_0x2bdd47(0x223)](0x11)+'\x20'+a113_0x5e7fd9[_0x2bdd47(0x213)]('✓\x20Valid\x20JSON'));else{if(_0xd3fd2c['status']===_0x2bdd47(0x253))console['log']('\x20\x20'+_0x37e6ad['padEnd'](0x11)+'\x20'+a113_0x5e7fd9[_0x2bdd47(0x231)](_0x2bdd47(0x1e8)));else _0xd3fd2c[_0x2bdd47(0x1e5)]==='missing'?console[_0x2bdd47(0x23e)]('\x20\x20'+_0x37e6ad['padEnd'](0x11)+'\x20'+a113_0x5e7fd9[_0x2bdd47(0x20b)](_0x2bdd47(0x1fb))):(console[_0x2bdd47(0x23e)]('\x20\x20'+_0x37e6ad[_0x2bdd47(0x223)](0x11)+'\x20'+a113_0x5e7fd9['red']('✗\x20Invalid\x20JSON')),console[_0x2bdd47(0x23e)]('\x20\x20'+''[_0x2bdd47(0x223)](0x11)+'\x20'+a113_0x5e7fd9['red'](_0xd3fd2c[_0x2bdd47(0x235)])));}};_0x5da47b(_0x4f370f(0x227),_0x15a6bc),_0x5da47b(_0x4f370f(0x243),_0x11872b);const _0x418747=loadRawConfigLayers(),_0x32cc2e=[{'label':_0x4f370f(0x243),'value':_0x418747[_0x4f370f(0x263)][_0x4f370f(0x1d8)],'present':Object[_0x4f370f(0x20f)][_0x4f370f(0x21d)][_0x4f370f(0x1f4)](_0x418747[_0x4f370f(0x263)],_0x4f370f(0x1d8)),'repairCommand':CLI_BIN_NAME+_0x4f370f(0x22a)},{'label':_0x4f370f(0x227),'value':_0x418747['globalConfig']['region'],'present':Object['prototype']['hasOwnProperty'][_0x4f370f(0x1f4)](_0x418747[_0x4f370f(0x1f7)],'region'),'repairCommand':CLI_BIN_NAME+_0x4f370f(0x257)}][_0x4f370f(0x225)](_0x523880=>_0x523880[_0x4f370f(0x211)]&&isInvalidLovrabetRegion(_0x523880['value']));for(const [_0x10b619,_0x344c1d]of[[_0x4f370f(0x243),_0x418747[_0x4f370f(0x263)]],[_0x4f370f(0x227),_0x418747[_0x4f370f(0x1f7)]]]){const _0x4054b9=_0x344c1d[_0x4f370f(0x210)]&&typeof _0x344c1d[_0x4f370f(0x210)]===_0x4f370f(0x244)?_0x344c1d['apps']:{};for(const [_0x974285,_0x1f4ab6]of Object[_0x4f370f(0x236)](_0x4054b9)){if(!_0x1f4ab6||typeof _0x1f4ab6!=='object'||!Object[_0x4f370f(0x20f)][_0x4f370f(0x21d)][_0x4f370f(0x1f4)](_0x1f4ab6,'region'))continue;isInvalidLovrabetRegion(_0x1f4ab6[_0x4f370f(0x1d8)])&&_0x32cc2e[_0x4f370f(0x220)]({'label':_0x10b619+_0x4f370f(0x209)+_0x974285+'\x22','value':_0x1f4ab6['region'],'present':!![],'repairCommand':_0x4f370f(0x252)+_0x974285+_0x4f370f(0x203)+_0x10b619[_0x4f370f(0x22d)]()+_0x4f370f(0x23b)});}}if(_0x32cc2e[_0x4f370f(0x216)]>0x0){console[_0x4f370f(0x23e)](),console[_0x4f370f(0x23e)](a113_0x5e7fd9[_0x4f370f(0x21a)](_0x4f370f(0x255))),console[_0x4f370f(0x23e)](a113_0x5e7fd9[_0x4f370f(0x20b)](_0x4f370f(0x21b)[_0x4f370f(0x21c)](0x1e)));for(const _0x44863d of _0x32cc2e){console[_0x4f370f(0x23e)]('\x20\x20'+_0x44863d['label']['padEnd'](0x11)+'\x20'+a113_0x5e7fd9[_0x4f370f(0x201)]('✗\x20Invalid\x20'+describeRegionValue(_0x44863d[_0x4f370f(0x260)]))),console[_0x4f370f(0x23e)]('\x20\x20'+(_0x4f370f(0x207)+_0x44863d[_0x4f370f(0x20d)][_0x4f370f(0x22d)]()+':')[_0x4f370f(0x223)](0x10)+'\x20'+_0x44863d['repairCommand']);}}const _0xe8732b=[Object[_0x4f370f(0x20f)][_0x4f370f(0x21d)][_0x4f370f(0x1f4)](_0x418747['globalConfig'],_0x4f370f(0x20e))?'global':null,Object[_0x4f370f(0x20f)][_0x4f370f(0x21d)]['call'](_0x418747['projectConfig'],_0x4f370f(0x20e))?_0x4f370f(0x24d):null][_0x4f370f(0x225)](Boolean);_0xe8732b[_0x4f370f(0x216)]>0x0&&(console[_0x4f370f(0x23e)]('\x20\x20Legacy\x20inherit:\x20\x20\x20'+a113_0x5e7fd9[_0x4f370f(0x231)]('ignored\x20in\x20'+_0xe8732b[_0x4f370f(0x251)](_0x4f370f(0x1e6))+_0x4f370f(0x23b))),_0xe8732b[_0x4f370f(0x205)](_0x4f370f(0x24d))&&console['log'](_0x4f370f(0x1ec)+CLI_BIN_NAME+_0x4f370f(0x25d)),_0xe8732b[_0x4f370f(0x205)](_0x4f370f(0x212))&&console[_0x4f370f(0x23e)](_0x4f370f(0x215)+CLI_BIN_NAME+_0x4f370f(0x1e1)));const _0x5649db=isInvalidLovrabetRegion(_0x5f36de['regionConfiguredValue']??_0x5f36de['raw']?.[_0x4f370f(0x1d8)]);_0x24c8b6&&!_0x5649db&&(console['log'](),console['log'](a113_0x5e7fd9['bold'](_0x4f370f(0x25c))),console[_0x4f370f(0x23e)](a113_0x5e7fd9['gray'](_0x4f370f(0x21b)[_0x4f370f(0x21c)](0x1e))),console[_0x4f370f(0x23e)](_0x4f370f(0x1da)+a113_0x5e7fd9[_0x4f370f(0x201)](_0x4f370f(0x1f9))),console[_0x4f370f(0x23e)](_0x4f370f(0x219)+_0x24c8b6[_0x4f370f(0x235)]),Object['prototype'][_0x4f370f(0x21d)]['call'](_0x418747[_0x4f370f(0x263)],'routing')&&console['log'](_0x4f370f(0x21e)+CLI_BIN_NAME+_0x4f370f(0x256)),Object['prototype'][_0x4f370f(0x21d)]['call'](_0x418747[_0x4f370f(0x1f7)],_0x4f370f(0x1fd))&&console[_0x4f370f(0x23e)]('\x20\x20Repair\x20global:\x20\x20\x20'+CLI_BIN_NAME+_0x4f370f(0x1fe)));console[_0x4f370f(0x23e)](),console[_0x4f370f(0x23e)](a113_0x5e7fd9['bold'](_0x4f370f(0x202))),console['log'](a113_0x5e7fd9[_0x4f370f(0x20b)](_0x4f370f(0x21b)[_0x4f370f(0x21c)](0x1e))),console[_0x4f370f(0x23e)]('\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x5f36de[_0x4f370f(0x1ed)]||a113_0x5e7fd9[_0x4f370f(0x201)](_0x4f370f(0x237))));const _0x466ce5=_0x5649db?a113_0x5e7fd9[_0x4f370f(0x201)](describeRegionValue(_0x5f36de['regionConfiguredValue']??_0x5f36de[_0x4f370f(0x245)]?.[_0x4f370f(0x1d8)])+'\x20(invalid)'):(_0x5f36de[_0x4f370f(0x1d8)]??DEFAULT_LOVRABET_REGION)+'\x20('+(_0x5f36de[_0x4f370f(0x23f)]??_0x4f370f(0x25a))+')';console[_0x4f370f(0x23e)](_0x4f370f(0x248)+_0x466ce5),console['log'](_0x4f370f(0x259)+_0x5f36de[_0x4f370f(0x200)]),console[_0x4f370f(0x23e)](_0x4f370f(0x20c)+_0x5f36de['locale']),console['log']('\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x5f36de[_0x4f370f(0x226)]),console[_0x4f370f(0x23e)](_0x4f370f(0x1db)+(_0x5f36de[_0x4f370f(0x23a)]||a113_0x5e7fd9[_0x4f370f(0x20b)](_0x4f370f(0x1e0)))),console[_0x4f370f(0x23e)]('\x20\x20currentApp:\x20\x20\x20\x20\x20\x20'+(_0x5f36de[_0x4f370f(0x25b)]||a113_0x5e7fd9[_0x4f370f(0x20b)](_0x4f370f(0x1e0)))),console[_0x4f370f(0x23e)](_0x4f370f(0x23c)+(_0x5f36de[_0x4f370f(0x1d7)]||a113_0x5e7fd9['gray'](_0x4f370f(0x1e0)))),console[_0x4f370f(0x23e)](_0x4f370f(0x1f1)+(_0x5f36de[_0x4f370f(0x240)]||a113_0x5e7fd9[_0x4f370f(0x20b)](_0x4f370f(0x242)+DEFAULT_CONFIG_VALUES[_0x4f370f(0x240)]+')'))),console[_0x4f370f(0x23e)](_0x4f370f(0x22f)+(_0x5f36de[_0x4f370f(0x1f5)]??a113_0x5e7fd9[_0x4f370f(0x20b)](_0x4f370f(0x1df)))),console['log'](_0x4f370f(0x1fa)+_0x5f36de[_0x4f370f(0x1e2)]),console[_0x4f370f(0x23e)](_0x4f370f(0x1fc)+_0x5f36de[_0x4f370f(0x217)]),console[_0x4f370f(0x23e)]('\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x5f36de[_0x4f370f(0x25e)]?a113_0x5e7fd9[_0x4f370f(0x213)]('(set,\x20length='+_0x5f36de[_0x4f370f(0x25e)][_0x4f370f(0x216)]+')'):_0x26c32b?a113_0x5e7fd9[_0x4f370f(0x213)]('(set\x20via\x20file,\x20length='+_0x26c32b[_0x4f370f(0x216)]+')'):a113_0x5e7fd9['gray'](_0x4f370f(0x1e0))));const _0x436da5=Object['keys'](_0x5f36de[_0x4f370f(0x210)]);if(_0x436da5[_0x4f370f(0x216)]>0x0){console[_0x4f370f(0x23e)](),console[_0x4f370f(0x23e)](a113_0x5e7fd9['bold'](_0x4f370f(0x218))),console[_0x4f370f(0x23e)](a113_0x5e7fd9[_0x4f370f(0x20b)](_0x4f370f(0x21b)[_0x4f370f(0x21c)](0x1e)));for(const _0x2a28f2 of _0x436da5){const _0x3396b4=_0x5f36de[_0x4f370f(0x210)][_0x2a28f2],_0x1a9560=_0x2a28f2===_0x5f36de[_0x4f370f(0x23a)],_0x215805=_0x2a28f2===_0x5f36de[_0x4f370f(0x25b)],_0x1c775e=_0x215805?a113_0x5e7fd9[_0x4f370f(0x213)](_0x4f370f(0x204)):'',_0x2002c8=_0x1a9560?_0x4f370f(0x1f3):'';console[_0x4f370f(0x23e)]('\x20\x20'+_0x2a28f2+_0x2002c8+_0x1c775e),console[_0x4f370f(0x23e)](_0x4f370f(0x238)+_0x3396b4[_0x4f370f(0x222)]);const _0x256254=_0x418747['projectConfig'][_0x4f370f(0x210)]&&typeof _0x418747[_0x4f370f(0x263)]['apps']===_0x4f370f(0x244)?_0x418747[_0x4f370f(0x263)][_0x4f370f(0x210)]:{},_0x1ec24c=Object['prototype'][_0x4f370f(0x21d)]['call'](_0x256254,_0x2a28f2),_0x7c3b88=isInvalidLovrabetRegion(_0x3396b4['region'])?{'region':_0x5f36de[_0x4f370f(0x1d8)]??DEFAULT_LOVRABET_REGION}:resolveEffectiveRegion({'appRegion':_0x3396b4[_0x4f370f(0x1d8)],'projectRegion':_0x1ec24c?_0x418747[_0x4f370f(0x263)][_0x4f370f(0x1d8)]:undefined,'globalRegion':_0x418747[_0x4f370f(0x1f7)][_0x4f370f(0x1d8)],'mergedRegion':_0x5f36de['raw']['region'],'appName':_0x2a28f2}),_0x19f1b5=buildAppDoctorFields(_0x3396b4,{'region':_0x7c3b88[_0x4f370f(0x1d8)],'env':_0x5f36de[_0x4f370f(0x200)],'apiDir':_0x5f36de[_0x4f370f(0x245)][_0x4f370f(0x226)]||DEFAULT_CONFIG_VALUES[_0x4f370f(0x226)],'cookie':_0x5f36de[_0x4f370f(0x25e)]||_0x26c32b||undefined,'accessKey':_0x5f36de[_0x4f370f(0x206)]});console[_0x4f370f(0x23e)]('\x20\x20\x20\x20region:\x20\x20\x20\x20\x20'+_0x19f1b5[_0x4f370f(0x1d8)][_0x4f370f(0x260)]+'\x20\x20'+a113_0x5e7fd9[_0x4f370f(0x20b)]('('+_0x19f1b5[_0x4f370f(0x1d8)][_0x4f370f(0x262)]+')')),console[_0x4f370f(0x23e)]('\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x19f1b5[_0x4f370f(0x200)][_0x4f370f(0x260)]+'\x20\x20'+a113_0x5e7fd9[_0x4f370f(0x20b)]('('+_0x19f1b5['env']['source']+')')),console[_0x4f370f(0x23e)](_0x4f370f(0x24a)+_0x19f1b5[_0x4f370f(0x226)][_0x4f370f(0x260)]+'\x20\x20'+a113_0x5e7fd9[_0x4f370f(0x20b)]('('+_0x19f1b5[_0x4f370f(0x226)]['source']+')'));const _0x2c152c=_0x19f1b5[_0x4f370f(0x25e)][_0x4f370f(0x260)]?a113_0x5e7fd9[_0x4f370f(0x213)](_0x4f370f(0x254)+_0x19f1b5['cookie']['value'][_0x4f370f(0x216)]+')'):a113_0x5e7fd9[_0x4f370f(0x20b)](_0x4f370f(0x1e0));console[_0x4f370f(0x23e)](_0x4f370f(0x261)+_0x2c152c+'\x20\x20'+a113_0x5e7fd9[_0x4f370f(0x20b)]('('+_0x19f1b5[_0x4f370f(0x25e)]['source']+')'));const _0x5b4cbb=_0x19f1b5[_0x4f370f(0x206)]['value']?a113_0x5e7fd9['green'](_0x4f370f(0x254)+_0x19f1b5[_0x4f370f(0x206)][_0x4f370f(0x260)][_0x4f370f(0x216)]+')'):a113_0x5e7fd9[_0x4f370f(0x20b)]('(none)');console['log'](_0x4f370f(0x24e)+_0x5b4cbb+'\x20\x20'+a113_0x5e7fd9[_0x4f370f(0x20b)]('('+_0x19f1b5[_0x4f370f(0x206)][_0x4f370f(0x262)]+')'));}}console[_0x4f370f(0x23e)](),console[_0x4f370f(0x23e)](a113_0x5e7fd9[_0x4f370f(0x21a)](_0x4f370f(0x214))),console[_0x4f370f(0x23e)](a113_0x5e7fd9['gray']('\x20\x20─'[_0x4f370f(0x21c)](0x1e)));_0x24c8b6?console['log'](_0x4f370f(0x1da)+a113_0x5e7fd9[_0x4f370f(0x201)](_0x4f370f(0x239))):(console[_0x4f370f(0x23e)](_0x4f370f(0x248)+getActiveRegion()),console[_0x4f370f(0x23e)](_0x4f370f(0x21f)+getApiDomain()),console['log'](_0x4f370f(0x1f0)+getUserDomain()),console['log']('\x20\x20runtimeDomain:\x20\x20\x20'+getRuntimeDomain()),console['log'](_0x4f370f(0x24f)+getSkillDomain()),console[_0x4f370f(0x23e)](_0x4f370f(0x22b)+getKbDomain()),console[_0x4f370f(0x23e)]('\x20\x20appDomain:\x20\x20\x20\x20\x20\x20\x20'+getAppDomain()));console[_0x4f370f(0x23e)](),console['log'](a113_0x5e7fd9[_0x4f370f(0x21a)]('\x20\x20Auth')),console[_0x4f370f(0x23e)](a113_0x5e7fd9['gray'](_0x4f370f(0x21b)[_0x4f370f(0x21c)](0x1e)));if(_0x24c8b6)console['log'](_0x4f370f(0x1da)+a113_0x5e7fd9[_0x4f370f(0x231)](_0x4f370f(0x250)));else{if(_0x26c32b){const _0x58cb08=await getIsSessionValid();console[_0x4f370f(0x23e)](_0x4f370f(0x1da)+(_0x58cb08?a113_0x5e7fd9[_0x4f370f(0x213)](_0x4f370f(0x23d)):a113_0x5e7fd9[_0x4f370f(0x201)](_0x4f370f(0x1ea))));}else console[_0x4f370f(0x23e)](_0x4f370f(0x1da)+a113_0x5e7fd9['red']('✗\x20Not\x20logged\x20in'));}return console[_0x4f370f(0x23e)](),{'ok':!![]};}export const doctorDefinition={'service':a113_0x423171(0x1eb),'command':a113_0x423171(0x224),'description':a113_0x423171(0x234),'risk':a113_0x423171(0x1e4),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a114_0x10fcd6=a114_0x58a1;(function(_0x163df2,_0x11b5ad){const _0x265acc=a114_0x58a1,_0x5e49c0=_0x163df2();while(!![]){try{const _0x113793=parseInt(_0x265acc(0x1d0))/0x1*(parseInt(_0x265acc(0x1db))/0x2)+parseInt(_0x265acc(0x1e3))/0x3+parseInt(_0x265acc(0x1df))/0x4*(parseInt(_0x265acc(0x1cd))/0x5)+parseInt(_0x265acc(0x1d4))/0x6+parseInt(_0x265acc(0x1c8))/0x7*(parseInt(_0x265acc(0x1d9))/0x8)+parseInt(_0x265acc(0x1da))/0x9+-parseInt(_0x265acc(0x1c4))/0xa;if(_0x113793===_0x11b5ad)break;else _0x5e49c0['push'](_0x5e49c0['shift']());}catch(_0x5c76d2){_0x5e49c0['push'](_0x5e49c0['shift']());}}}(a114_0x5bc0,0xe8ebf));import{requireDevelopmentUploadFile}from'../../commands/common/local-file.js';import{queryDevelopmentFileUrl,uploadDevelopmentFile}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a114_0x58a1(_0x18c749,_0x34b2f9){_0x18c749=_0x18c749-0x1c4;const _0x5bc0fd=a114_0x5bc0();let _0x58a1cb=_0x5bc0fd[_0x18c749];return _0x58a1cb;}const FILE_FLAG={'name':a114_0x10fcd6(0x1c7),'type':a114_0x10fcd6(0x1d6),'required':!![],'description':'Path\x20to\x20the\x20local\x20file\x20to\x20upload'},FILEPATH_FLAG={'name':a114_0x10fcd6(0x1e1),'type':a114_0x10fcd6(0x1d6),'required':!![],'description':a114_0x10fcd6(0x1cf)},DOWNLOAD_FLAG={'name':a114_0x10fcd6(0x1ca),'type':a114_0x10fcd6(0x1c6),'description':'Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL'},LONG_TERM_FLAG={'name':a114_0x10fcd6(0x1d8),'type':a114_0x10fcd6(0x1c6),'description':'Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML'};function requireFilePath(_0x89aea){const _0x75a88b=a114_0x10fcd6,_0x32c439=_0x89aea['trim']();if(!_0x32c439)throw CliErrors[_0x75a88b(0x1d7)](_0x75a88b(0x1d1));return _0x32c439;}function a114_0x5bc0(){const _0x3d3e3b=['Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20or\x20immediate\x20access','boolean','file','7aJUwlU','bool','download','read','Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','50BNDHZr','Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','Development\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data','3PtwMcQ','filePath\x20is\x20required.','appCode','str','9289542JoKULG','upload','string','validation','long-term','10406248xjAMdt','17043777AXxPFV','510568wPQQfV','.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','Preview:\x20upload\x20','path','688108Bvgrzv','POST','filepath','File','4409049zFHuOk','Uploaded\x20file:\x20','77445490NCrJue'];a114_0x5bc0=function(){return _0x3d3e3b;};return a114_0x5bc0();}const fileUpload={'service':a114_0x10fcd6(0x1c7),'command':a114_0x10fcd6(0x1d5),'description':a114_0x10fcd6(0x1cc),'risk':'read','flags':[FILE_FLAG],async 'dryRun'(_0x5b0917){const _0x243d7e=a114_0x10fcd6,_0x2e1627=requireDevelopmentUploadFile(_0x5b0917[_0x243d7e(0x1d3)](_0x243d7e(0x1c7)),_0x243d7e(0x1e2));return{'method':_0x243d7e(0x1e0),'url':'/smartapi/common/uploadFile','body':{'appCode':_0x5b0917[_0x243d7e(0x1d2)],'multipart':{'file':_0x2e1627}},'description':_0x243d7e(0x1dd)+_0x2e1627[_0x243d7e(0x1de)]+'\x20to\x20development\x20app\x20'+_0x5b0917[_0x243d7e(0x1d2)]};},async 'execute'(_0xb2c1a8){const _0x29b773=a114_0x10fcd6,_0x4aba87=requireDevelopmentUploadFile(_0xb2c1a8['str'](_0x29b773(0x1c7)),_0x29b773(0x1e2)),_0x512f68=await uploadDevelopmentFile(_0xb2c1a8[_0x29b773(0x1d2)],_0x4aba87[_0x29b773(0x1de)]);return{'ok':!![],'data':_0x512f68,'message':_0x512f68['filePath']?_0x29b773(0x1e4)+_0x512f68['filePath']+_0x29b773(0x1dc):_0x29b773(0x1ce)};}},fileQueryUrl={'service':a114_0x10fcd6(0x1c7),'command':'query-url','description':a114_0x10fcd6(0x1c5),'risk':a114_0x10fcd6(0x1cb),'flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0x22012f){const _0x475121=a114_0x10fcd6,_0x56fd77=requireFilePath(_0x22012f[_0x475121(0x1d3)](_0x475121(0x1e1))),_0x56fd10=await queryDevelopmentFileUrl(_0x56fd77,{'download':_0x22012f[_0x475121(0x1c9)](_0x475121(0x1ca)),'longTerm':_0x22012f[_0x475121(0x1c9)](_0x475121(0x1d8))});return{'ok':!![],'data':_0x56fd10};}};export const fileDefinitions=[fileUpload,fileQueryUrl];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a115_0x5e5d(_0x2847d9,_0x1d3f36){_0x2847d9=_0x2847d9-0x167;const _0x46f759=a115_0x46f7();let _0x5e5d29=_0x46f759[_0x2847d9];return _0x5e5d29;}const a115_0x4286b5=a115_0x5e5d;(function(_0x454333,_0xa0e4){const _0x59098b=a115_0x5e5d,_0x3b3b52=_0x454333();while(!![]){try{const _0xf58d9d=-parseInt(_0x59098b(0x167))/0x1*(-parseInt(_0x59098b(0x171))/0x2)+-parseInt(_0x59098b(0x16e))/0x3+parseInt(_0x59098b(0x176))/0x4*(-parseInt(_0x59098b(0x169))/0x5)+-parseInt(_0x59098b(0x173))/0x6+-parseInt(_0x59098b(0x170))/0x7*(-parseInt(_0x59098b(0x16d))/0x8)+-parseInt(_0x59098b(0x178))/0x9+parseInt(_0x59098b(0x179))/0xa*(parseInt(_0x59098b(0x17a))/0xb);if(_0xf58d9d===_0xa0e4)break;else _0x3b3b52['push'](_0x3b3b52['shift']());}catch(_0x66db96){_0x3b3b52['push'](_0x3b3b52['shift']());}}}(a115_0x46f7,0x362d4));function a115_0x46f7(){const _0x3ce7c8=['create','862644DIoPhZ','flowName','POST','2908VGeRfT','appCode','234819sXXMmm','18520IdqCsX','3399IZavZT','4IrwsCE','Create\x20a\x20draft\x20flow\x20definition\x20from\x20a\x20local\x20FlowConfig\x20file','605kiFZxt','datasetCode','Created\x20flow\x20','write','333232hdtRJI','1322874edvuQW','\x20(id=','49AsCGuh','28426iiFpLM'];a115_0x46f7=function(){return _0x3ce7c8;};return a115_0x46f7();}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{asDryRunResult}from'../../commands/common/dry-run.js';import{createFlowDefinition}from'../../core/api-client.js';import{FLOW_FILE_FLAG,FLOW_PATHS,confirmFlowWrite,flowSelector,prepareFlowWrite,readFlowFilePath}from'../../commands/flow/shared.js';export const flowCreate={'service':'flow','command':a115_0x4286b5(0x172),'description':a115_0x4286b5(0x168),'risk':a115_0x4286b5(0x16c),'flags':[FLOW_FILE_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x26f2f1){readFlowFilePath(_0x26f2f1);},async 'dryRun'(_0x461557){const _0x1053d8=a115_0x4286b5,{request:_0x543b25,warnings:_0x5157cb}=await prepareFlowWrite(readFlowFilePath(_0x461557),_0x461557['appCode']);return asDryRunResult({'operation':_0x1053d8(0x172),'selector':{'appCode':_0x461557[_0x1053d8(0x177)],'flowName':_0x543b25[_0x1053d8(0x174)],..._0x543b25[_0x1053d8(0x16a)]?{'datasetCode':_0x543b25[_0x1053d8(0x16a)]}:{}},'before':null,'after':_0x543b25,'request':_0x543b25,'dryRun':!![],'backend':{'method':_0x1053d8(0x175),'path':FLOW_PATHS[_0x1053d8(0x172)]},'warnings':_0x5157cb},{'method':'POST','url':FLOW_PATHS[_0x1053d8(0x172)]});},async 'execute'(_0x14652a){const _0x23d627=a115_0x4286b5,{request:_0x332abc,warnings:_0xa87dd6}=await prepareFlowWrite(readFlowFilePath(_0x14652a),_0x14652a[_0x23d627(0x177)]);await confirmFlowWrite(_0x14652a,'create',_0x332abc);const _0x358bfb=await createFlowDefinition(_0x332abc);return{'ok':!![],'data':{'operation':_0x23d627(0x172),'selector':flowSelector(_0x14652a['appCode'],_0x358bfb['id'],_0x358bfb),'before':null,'after':_0x358bfb,'dryRun':![],'backend':{'method':_0x23d627(0x175),'path':FLOW_PATHS[_0x23d627(0x172)]},'warnings':_0xa87dd6},'message':_0x23d627(0x16b)+(_0x358bfb['flowName']||_0x332abc[_0x23d627(0x174)])+(_0x358bfb['id']?_0x23d627(0x16f)+_0x358bfb['id']+')':'')};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a116_0x1fe2(_0x441430,_0x64f9ac){_0x441430=_0x441430-0x1c9;const _0x4762c5=a116_0x4762();let _0x1fe2f2=_0x4762c5[_0x441430];return _0x1fe2f2;}const a116_0x2bc2fb=a116_0x1fe2;(function(_0x4cd6e2,_0x2de712){const _0x26be78=a116_0x1fe2,_0x2e0359=_0x4cd6e2();while(!![]){try{const _0x1feac9=-parseInt(_0x26be78(0x1dd))/0x1*(parseInt(_0x26be78(0x1cf))/0x2)+-parseInt(_0x26be78(0x1e0))/0x3+-parseInt(_0x26be78(0x1d8))/0x4+-parseInt(_0x26be78(0x1e5))/0x5+parseInt(_0x26be78(0x1e7))/0x6*(parseInt(_0x26be78(0x1d2))/0x7)+-parseInt(_0x26be78(0x1d3))/0x8*(-parseInt(_0x26be78(0x1c9))/0x9)+-parseInt(_0x26be78(0x1de))/0xa*(-parseInt(_0x26be78(0x1db))/0xb);if(_0x1feac9===_0x2de712)break;else _0x2e0359['push'](_0x2e0359['shift']());}catch(_0x466ced){_0x2e0359['push'](_0x2e0359['shift']());}}}(a116_0x4762,0x54224));import{mkdir,stat}from'node:fs/promises';import{dirname,resolve}from'node:path';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{getFlowDefinition}from'../../core/api-client.js';import{writeNormalizedFlowConfig}from'../../core/flow-config.js';function a116_0x4762(){const _0xc8f562=['207AsaGHd','\x20to\x20','Flow\x20','warnings','FlowConfig\x20output\x20already\x20exists:\x20','Get\x20one\x20design-time\x20flow\x20definition','6CzAerO','config','validation','959yrYZud','149992WQRTGV','Wrote\x20FlowConfig\x20for\x20','Pass\x20--force\x20to\x20overwrite\x20it.','path','code','763384NBvXNo','boolean','flowCode','11fqjgTO','ENOENT','178417kprGvq','12876790dPpWXS','str','1008762AGSLTV','EEXIST','output','flow','appCode','1901530itAojj','Write\x20a\x20portable\x20normalized\x20FlowConfig\x20JSON\x20file','2994roxdUR','flowName'];a116_0x4762=function(){return _0xc8f562;};return a116_0x4762();}import{CliErrors}from'../../errors.js';import{FLOW_ID_FLAG,flowDefinitionToConfig,readFlowId}from'../../commands/flow/shared.js';export const flowDetail={'service':a116_0x2bc2fb(0x1e3),'command':'detail','description':a116_0x2bc2fb(0x1ce),'risk':'read','flags':[FLOW_ID_FLAG,{'name':a116_0x2bc2fb(0x1e2),'type':'string','description':a116_0x2bc2fb(0x1e6)},{'name':'force','type':a116_0x2bc2fb(0x1d9),'description':'Overwrite\x20an\x20existing\x20output\x20file'},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x25820a){readFlowId(_0x25820a);},async 'execute'(_0xda3f23){const _0x244047=a116_0x2bc2fb,_0x5f4b80=readFlowId(_0xda3f23),_0x139331=_0xda3f23[_0x244047(0x1df)](_0x244047(0x1e2))['trim'](),_0x40b52a=_0x139331?resolve(_0x139331):undefined;if(_0x40b52a&&!_0xda3f23['bool']('force')&&await fileExists(_0x40b52a))throw CliErrors[_0x244047(0x1d1)](_0x244047(0x1cd)+_0x40b52a,_0x244047(0x1d5));const _0x102756=await getFlowDefinition(_0xda3f23[_0x244047(0x1e4)],_0x5f4b80);let _0x55f5b3;if(_0x40b52a){const _0x4e7ead=flowDefinitionToConfig(_0x102756);await mkdir(dirname(_0x40b52a),{'recursive':!![]});try{await writeNormalizedFlowConfig(_0x40b52a,_0x4e7ead[_0x244047(0x1d0)],{'overwrite':_0xda3f23['bool']('force')});}catch(_0xb46456){if(isAlreadyExistsError(_0xb46456))throw CliErrors[_0x244047(0x1d1)](_0x244047(0x1cd)+_0x40b52a,_0x244047(0x1d5));throw _0xb46456;}_0x55f5b3={'path':_0x40b52a,'warnings':_0x4e7ead[_0x244047(0x1cc)]};}return{'ok':!![],'data':{'flow':_0x102756,..._0x55f5b3?{'output':_0x55f5b3}:{}},'message':_0x55f5b3?_0x244047(0x1d4)+(_0x102756[_0x244047(0x1e8)]||_0x102756['flowCode']||_0x5f4b80)+_0x244047(0x1ca)+_0x55f5b3[_0x244047(0x1d6)]:_0x244047(0x1cb)+(_0x102756[_0x244047(0x1e8)]||_0x102756[_0x244047(0x1da)]||_0x5f4b80)};}};async function fileExists(_0x480ae9){try{return await stat(_0x480ae9),!![];}catch(_0x18da75){return!isNotFoundError(_0x18da75);}}function isNotFoundError(_0x502ecd){const _0x13c3c9=a116_0x2bc2fb;return _0x502ecd?.[_0x13c3c9(0x1d7)]===_0x13c3c9(0x1dc);}function isAlreadyExistsError(_0xa3084f){const _0x489708=a116_0x2bc2fb;return _0xa3084f?.[_0x489708(0x1d7)]===_0x489708(0x1e1);}
|