@lovrabet/rabetbase-cli 2.5.12-beta.1 → 2.5.13-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api/api-doc.js +1 -1
- package/lib/api/api-group.js +1 -1
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.js +1 -1
- package/lib/api/generate-sdk-config-file.js +1 -1
- package/lib/api/legacy-api-file.js +1 -1
- package/lib/api/model-registry-file.js +1 -1
- package/lib/api/model-registry-scaffold.js +1 -1
- package/lib/api/model-source.js +1 -1
- package/lib/auth/auth-server-ui.js +1 -1
- package/lib/auth/auth-server.js +1 -1
- package/lib/auth/constant.js +1 -1
- package/lib/auth/get-cookie.js +1 -1
- package/lib/auth/get-session-user.js +1 -1
- package/lib/auth/is-session-valid.js +1 -1
- package/lib/auth/login-success-html.js +1 -1
- package/lib/auth/logout.js +1 -1
- package/lib/cli-flags.js +1 -1
- package/lib/cli.js +1 -1
- package/lib/commands/api/generate.js +1 -1
- package/lib/commands/api/index.js +1 -1
- package/lib/commands/api/list.js +1 -1
- package/lib/commands/api/pull.js +1 -1
- package/lib/commands/api/shared.js +1 -1
- package/lib/commands/app/detail.js +1 -1
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/members-list.js +1 -1
- package/lib/commands/app/remote-directory.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/delete.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/app-config/list.js +1 -1
- package/lib/commands/app-config/set.js +1 -1
- package/lib/commands/app-config/shared.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/bff/create.js +1 -1
- package/lib/commands/bff/delete.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/bff/list.js +1 -1
- package/lib/commands/bff/logs.js +1 -1
- package/lib/commands/bff/pull.js +1 -1
- package/lib/commands/bff/push.js +1 -1
- package/lib/commands/bff/status.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/cli-update.js +1 -1
- package/lib/commands/codegen/index.js +1 -1
- package/lib/commands/codegen/sdk.js +1 -1
- package/lib/commands/codegen/sql.js +1 -1
- package/lib/commands/common/app-registry.js +1 -1
- package/lib/commands/common/app-selector.js +1 -1
- package/lib/commands/common/async-task.js +1 -1
- package/lib/commands/common/dry-run.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/common/validate.js +1 -1
- package/lib/commands/config/delete.js +1 -1
- package/lib/commands/config/get.js +1 -1
- package/lib/commands/config/index.js +1 -1
- package/lib/commands/config/init.js +1 -1
- package/lib/commands/config/list.js +1 -1
- package/lib/commands/config/set.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/dataset/batch-design.js +1 -1
- package/lib/commands/dataset/business-group-update.js +1 -1
- package/lib/commands/dataset/business-groups.js +1 -1
- package/lib/commands/dataset/capability.js +1 -1
- package/lib/commands/dataset/cross-relation-create.js +1 -1
- package/lib/commands/dataset/cross-relation-delete.js +1 -1
- package/lib/commands/dataset/cross-relation-list.js +1 -1
- package/lib/commands/dataset/cross-relation-shared.js +1 -1
- package/lib/commands/dataset/cross-relation-update.js +1 -1
- package/lib/commands/dataset/delete.js +1 -1
- package/lib/commands/dataset/design-context.js +1 -1
- package/lib/commands/dataset/design-start.js +1 -1
- package/lib/commands/dataset/design-status.js +1 -1
- package/lib/commands/dataset/design-sync-retry.js +1 -1
- package/lib/commands/dataset/design-sync-status.js +1 -1
- package/lib/commands/dataset/design-validate.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/extend-update.js +1 -1
- package/lib/commands/dataset/field-restore.js +1 -1
- package/lib/commands/dataset/field-update.js +1 -1
- package/lib/commands/dataset/generate.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/dataset/relation-audit.js +1 -1
- package/lib/commands/dataset/relation-create.js +1 -1
- package/lib/commands/dataset/relation-delete.js +1 -1
- package/lib/commands/dataset/relation-shared.js +1 -1
- package/lib/commands/dataset/relation-update.js +1 -1
- package/lib/commands/dataset/relations.js +1 -1
- package/lib/commands/dataset/rename.js +1 -1
- package/lib/commands/dataset/restore.js +1 -1
- package/lib/commands/dataset/user-deleted-field-list.js +1 -1
- package/lib/commands/db/analysis-batching.js +1 -1
- package/lib/commands/db/analyze-batch-plan.js +1 -1
- package/lib/commands/db/analyze-cancel.js +1 -1
- package/lib/commands/db/analyze-start.js +1 -1
- package/lib/commands/db/analyze-status.js +1 -1
- package/lib/commands/db/create.js +1 -1
- package/lib/commands/db/cross-db-analysis-shared.js +1 -1
- package/lib/commands/db/cross-db-analyze-latest.js +1 -1
- package/lib/commands/db/cross-db-analyze-start.js +1 -1
- package/lib/commands/db/cross-db-analyze-status.js +1 -1
- package/lib/commands/db/delete.js +1 -1
- package/lib/commands/db/detail.js +1 -1
- package/lib/commands/db/diff-refresh-start.js +1 -1
- package/lib/commands/db/diff-refresh-status.js +1 -1
- package/lib/commands/db/diff.js +1 -1
- package/lib/commands/db/index.js +1 -1
- package/lib/commands/db/list.js +1 -1
- package/lib/commands/db/shared.js +1 -1
- package/lib/commands/db/table-diff-shared.js +1 -1
- package/lib/commands/db/tables.js +1 -1
- package/lib/commands/db/test.js +1 -1
- package/lib/commands/db/update.js +1 -1
- package/lib/commands/deployment/index.js +1 -1
- package/lib/commands/deployment/sync-all.js +1 -1
- package/lib/commands/deployment/sync-jobs.js +1 -1
- package/lib/commands/deployment/sync-status.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/flow/create.js +1 -1
- package/lib/commands/flow/detail.js +1 -1
- package/lib/commands/flow/index.js +1 -1
- package/lib/commands/flow/list.js +1 -1
- package/lib/commands/flow/page-list.js +1 -1
- package/lib/commands/flow/publish.js +1 -1
- package/lib/commands/flow/runtime-resources-shared.js +1 -1
- package/lib/commands/flow/runtime-role-list.js +1 -1
- package/lib/commands/flow/runtime-role-user-list.js +1 -1
- package/lib/commands/flow/runtime-user-search.js +1 -1
- package/lib/commands/flow/shared.js +1 -1
- package/lib/commands/flow/update.js +1 -1
- package/lib/commands/flow/validate.js +1 -1
- package/lib/commands/instant-api-policy/current.js +1 -1
- package/lib/commands/instant-api-policy/index.js +1 -1
- package/lib/commands/instant-api-policy/init.js +1 -1
- package/lib/commands/instant-api-policy/publish.js +1 -1
- package/lib/commands/instant-api-policy/pull.js +1 -1
- package/lib/commands/instant-api-policy/revision.js +1 -1
- package/lib/commands/instant-api-policy/revisions.js +1 -1
- package/lib/commands/instant-api-policy/rollback.js +1 -1
- package/lib/commands/instant-api-policy/shared.js +1 -1
- package/lib/commands/instant-api-policy/validate.js +1 -1
- package/lib/commands/issue/context.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/kb/create.js +1 -1
- package/lib/commands/kb/delete.js +1 -1
- package/lib/commands/kb/detail.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/kb/list.js +1 -1
- package/lib/commands/kb/search.js +1 -1
- package/lib/commands/kb/shared.js +1 -1
- package/lib/commands/kb/update.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/asset-update.js +1 -1
- package/lib/commands/menu/delete.js +1 -1
- package/lib/commands/menu/external-link-create.js +1 -1
- package/lib/commands/menu/external-link-update.js +1 -1
- package/lib/commands/menu/group-create.js +1 -1
- package/lib/commands/menu/group-update.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/list.js +1 -1
- package/lib/commands/menu/move.js +1 -1
- package/lib/commands/menu/regroup-start.js +1 -1
- package/lib/commands/menu/rename.js +1 -1
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/delete-plan.js +1 -1
- package/lib/commands/menu/shared/facts.js +1 -1
- package/lib/commands/menu/shared/index.js +1 -1
- package/lib/commands/menu/shared/inquirer.js +1 -1
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.js +1 -1
- package/lib/commands/menu/shared/mutations.js +1 -1
- package/lib/commands/menu/shared/path.js +1 -1
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/subapp-assets.js +1 -1
- package/lib/commands/menu/shared/sync-core.js +1 -1
- package/lib/commands/menu/shared/update-core.js +1 -1
- package/lib/commands/menu/shared/valid-url.js +1 -1
- package/lib/commands/menu/subapp-assets-status.js +1 -1
- package/lib/commands/menu/subapp-assets-update.js +1 -1
- package/lib/commands/menu/sync.js +1 -1
- package/lib/commands/menu/visibility-update.js +1 -1
- package/lib/commands/notification/config-create.js +1 -1
- package/lib/commands/notification/config-delete.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/config-update.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/notification/shared.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/page/create.js +1 -1
- package/lib/commands/page/custom/detail.js +1 -1
- package/lib/commands/page/custom/list.js +1 -1
- package/lib/commands/page/custom/publish.js +1 -1
- package/lib/commands/page/custom/shared.js +1 -1
- package/lib/commands/page/custom/syntax.js +1 -1
- package/lib/commands/page/custom/update.js +1 -1
- package/lib/commands/page/data-list-status.js +1 -1
- package/lib/commands/page/generate-start.js +1 -1
- package/lib/commands/page/generate-status.js +1 -1
- package/lib/commands/page/index.js +1 -1
- package/lib/commands/page/pull.js +1 -1
- package/lib/commands/page/push.js +1 -1
- package/lib/commands/page/relation-audit.js +1 -1
- package/lib/commands/page/restore.js +1 -1
- package/lib/commands/page/shared.js +1 -1
- package/lib/commands/page/sync.js +1 -1
- package/lib/commands/project/api-architecture-upgrade.js +1 -1
- package/lib/commands/project/create/enhanced-guided-create.js +1 -1
- package/lib/commands/project/create/format-elapsed.js +1 -1
- package/lib/commands/project/create/main.js +1 -1
- package/lib/commands/project/create/materialize-project-template.js +1 -1
- package/lib/commands/project/create/project-name.js +1 -1
- package/lib/commands/project/create/project-template-archive.js +1 -1
- package/lib/commands/project/create/project-template-path.js +1 -1
- package/lib/commands/project/create/use-copy-project-template.js +1 -1
- package/lib/commands/project/create/use-format-code.js +1 -1
- package/lib/commands/project/create/use-install-dependencies.js +1 -1
- package/lib/commands/project/domain-routing-sync.js +1 -1
- package/lib/commands/project/index.js +1 -1
- package/lib/commands/project/upgrade.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/role/user-resolve.js +1 -1
- package/lib/commands/rule/get.js +1 -1
- package/lib/commands/rule/index.js +1 -1
- package/lib/commands/rule/list.js +1 -1
- package/lib/commands/rule/set.js +1 -1
- package/lib/commands/rule/shared.js +1 -1
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/sql/create.js +1 -1
- package/lib/commands/sql/delete.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/sql/list.js +1 -1
- package/lib/commands/sql/pull.js +1 -1
- package/lib/commands/sql/push.js +1 -1
- package/lib/commands/sql/shared.js +1 -1
- package/lib/commands/sql/status.js +1 -1
- package/lib/commands/sql/validate.js +1 -1
- package/lib/commands/task/index.js +1 -1
- package/lib/commands/task/status.js +1 -1
- package/lib/commands/tenant/index.js +1 -1
- package/lib/commands/tenant/members-list.js +1 -1
- package/lib/commands/tenant/shared.js +1 -1
- package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
- package/lib/commands/user-account/feishu-bind.js +1 -1
- package/lib/commands/user-account/index.js +1 -1
- package/lib/commands/workspace/add.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/commands/workspace/remove.js +1 -1
- package/lib/config/domain-config.js +1 -1
- package/lib/config/project-domain-routing.js +1 -1
- package/lib/config/region-config.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/cdn.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/paths.js +1 -1
- package/lib/constant/region.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/routing-profile.js +1 -1
- package/lib/context/app-resolver.js +1 -1
- package/lib/context/auth-resolver.js +1 -1
- package/lib/context/config-loader.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/bff/config.js +1 -1
- package/lib/core/bff/file-system.js +1 -1
- package/lib/core/bff/hash.js +1 -1
- package/lib/core/bff/hook-directory.js +1 -1
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/cross-db-analysis.js +1 -1
- package/lib/core/cross-db-relation.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/flow-config.js +1 -1
- package/lib/core/instant-api-policy/config.js +1 -1
- package/lib/core/instant-api-policy/endpoints.js +1 -1
- package/lib/core/kb-management-client.js +1 -1
- package/lib/core/kb-search-client.js +1 -1
- package/lib/core/page/file-system.js +1 -1
- package/lib/core/page/hash.js +1 -1
- package/lib/core/page/lock.js +1 -1
- package/lib/core/page/lr-smart-jsx.js +1 -1
- package/lib/core/sql-index-auditor.js +1 -1
- package/lib/core/sql-sync/config.js +1 -1
- package/lib/core/sql-sync/file-system.js +1 -1
- package/lib/core/sql-sync/hash.js +1 -1
- package/lib/core/sql-sync/lock.js +1 -1
- package/lib/core/sql-sync/utils.js +1 -1
- package/lib/core/sql-validator.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/error-output.js +1 -1
- package/lib/framework/explicit-yes.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-alias.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/supported-flags.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/generated/official-routing.js +1 -1
- package/lib/generated/routing-contract.js +1 -1
- package/lib/help.js +1 -1
- package/lib/postinstall.js +1 -1
- package/lib/runtime/confirmation.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/services/dataset-design/checkpoint.js +1 -1
- package/lib/services/dataset-design/commands.js +1 -1
- package/lib/services/dataset-design/contract.js +1 -1
- package/lib/skills/builtin-skill.js +1 -1
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/skill-presence.js +1 -1
- package/lib/telemetry/cli-command-trace.js +1 -1
- package/lib/telemetry/cli-help-trace.js +1 -1
- package/lib/telemetry/ensure-cli-otel-config.js +1 -1
- package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
- package/lib/telemetry/send-cli-trace-log.js +1 -1
- package/lib/utils/ai_config.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cdn-config.js +1 -1
- package/lib/utils/check-sdk-version.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/config.js +1 -1
- package/lib/utils/entity-with-id.js +1 -1
- package/lib/utils/file-utils.js +1 -1
- package/lib/utils/guides-cdn.js +1 -1
- package/lib/utils/http-client.js +1 -1
- package/lib/utils/is-non-interactive.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/sleep.js +1 -1
- package/lib/utils/template-replacer.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/with-active-cookie.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
- package/skills/rabetbase/SKILL.md +1 -1
- package/skills/rabetbase/guides/custom-page-workflow.md +32 -2
- package/skills/rabetbase/knowledge/custom-page/generation-standards.md +106 -6
- package/skills/rabetbase-dataset-generation/SKILL.md +1 -1
- package/skills/rabetbase-page-generation/SKILL.md +1 -1
- package/skills/rabetbase.manifest.json +3 -3
- package/templates/custom-pages/blank.json +1 -1
- package/templates/custom-pages/dashboard.json +1 -1
package/lib/commands/db/diff.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a112_0x3b1b8d=a112_0x3fff;function a112_0x3fda(){const _0xffafaf=['NEW_TABLE','bool','171537EzCbCs','933072zIPHST','5550808bVbRYR','totalCount','datasetTableCount','diff','2743044iYFhaF','num','summary','Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)','Page\x20index\x20(1-based)','7tEbPrp','\x20changed\x20table\x20row(s),\x20total\x20','Compare\x20datasets\x20with\x20physical\x20database\x20tables\x20and\x20show\x20schema\x20drift','physicalTableCount','tableName','boolean','deletedColumns','3583575FhbGgL','filter','string','map','all','number','appCode','diffType','Page\x20size','25838900KpWywG','modifiedColumns','table','682141MTNAKY','page','2FaewVX','20GaXyQo','pagesize','tableList','DELETED_TABLE','\x20(db\x20link\x20','fieldDiff'];a112_0x3fda=function(){return _0xffafaf;};return a112_0x3fda();}function a112_0x3fff(_0x15a585,_0x2a3111){_0x15a585=_0x15a585-0x171;const _0x3fda9b=a112_0x3fda();let _0x3fffa1=_0x3fda9b[_0x15a585];return _0x3fffa1;}(function(_0x36004,_0x5632a4){const _0x203b9d=a112_0x3fff,_0x5f22b4=_0x36004();while(!![]){try{const _0x409af7=parseInt(_0x203b9d(0x181))/0x1+parseInt(_0x203b9d(0x183))/0x2*(-parseInt(_0x203b9d(0x18c))/0x3)+parseInt(_0x203b9d(0x192))/0x4+-parseInt(_0x203b9d(0x184))/0x5*(-parseInt(_0x203b9d(0x18d))/0x6)+-parseInt(_0x203b9d(0x197))/0x7*(-parseInt(_0x203b9d(0x18e))/0x8)+parseInt(_0x203b9d(0x175))/0x9+-parseInt(_0x203b9d(0x17e))/0xa;if(_0x409af7===_0x5632a4)break;else _0x5f22b4['push'](_0x5f22b4['shift']());}catch(_0x773c77){_0x5f22b4['push'](_0x5f22b4['shift']());}}}(a112_0x3fda,0x6ba4b));import{getDbTableDiff}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{DB_TABLE_PAGE_SIZE,getAllDbTableDiff,summarizeDbTableDiff}from'../../commands/db/table-diff-shared.js';export const dbDiff={'service':'db','command':a112_0x3b1b8d(0x191),'description':a112_0x3b1b8d(0x199),'risk':'read','flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a112_0x3b1b8d(0x180),'type':a112_0x3b1b8d(0x177),'description':a112_0x3b1b8d(0x195)},{'name':'page','type':a112_0x3b1b8d(0x17a),'description':a112_0x3b1b8d(0x196),'default':0x1},{'name':a112_0x3b1b8d(0x185),'type':'number','description':a112_0x3b1b8d(0x17d),'default':0x14},{'name':a112_0x3b1b8d(0x179),'type':a112_0x3b1b8d(0x173),'description':'Fetch\x20and\x20aggregate\x20every\x20page\x20(overrides\x20--page\x20and\x20--pagesize)'}],async 'execute'(_0x1641ac){const _0x2a7259=a112_0x3b1b8d,_0x413122=_0x1641ac['num']('id'),_0x42a9ff=_0x1641ac[_0x2a7259(0x18b)]('all'),_0x4d334f=_0x42a9ff?0x1:_0x1641ac[_0x2a7259(0x193)](_0x2a7259(0x182),0x1)||0x1,_0xf37e72=_0x42a9ff?DB_TABLE_PAGE_SIZE:_0x1641ac[_0x2a7259(0x193)](_0x2a7259(0x185),0x14)||0x14,_0xa2fa3b=_0x1641ac['str']('table')||undefined,_0x273a86=_0x42a9ff?await getAllDbTableDiff(getDbTableDiff,_0x1641ac[_0x2a7259(0x17b)],_0x413122,_0xa2fa3b):await getDbTableDiff(_0x1641ac[_0x2a7259(0x17b)],_0x413122,{'pageIndex':_0x4d334f,'pageSize':_0xf37e72,'tableName':_0xa2fa3b}),_0x4e47a9=_0x273a86[_0x2a7259(0x186)],_0x30ef1e=summarizeDbTableDiff(_0x4e47a9),_0x4e0909=_0x4e47a9[_0x2a7259(0x176)](_0x49f511=>_0x49f511[_0x2a7259(0x17c)]===_0x2a7259(0x18a)||_0x49f511['diffType']==='MODIFIED_TABLE')[_0x2a7259(0x178)](_0x185d02=>_0x185d02[_0x2a7259(0x172)]),_0x4d932e=_0x4e47a9[_0x2a7259(0x176)](_0x1cc32e=>_0x1cc32e['diffType']===_0x2a7259(0x187))[_0x2a7259(0x178)](_0x1f7f9b=>_0x1f7f9b[_0x2a7259(0x172)]),_0x27defd=_0x4e47a9[_0x2a7259(0x176)](_0x289e42=>_0x289e42[_0x2a7259(0x17c)]==='MODIFIED_TABLE')[_0x2a7259(0x178)](_0x1b3524=>({'tableName':_0x1b3524['tableName'],'addedColumns':_0x1b3524[_0x2a7259(0x189)]?.['addedColumns']??[],'deletedColumns':_0x1b3524[_0x2a7259(0x189)]?.[_0x2a7259(0x174)]??[],'modifiedColumns':_0x1b3524[_0x2a7259(0x189)]?.[_0x2a7259(0x17f)]??[]}));return{'ok':!![],'data':{'dbLinkId':_0x413122,'page':_0x4d334f,'pageSize':_0xf37e72,'totalCount':_0x273a86[_0x2a7259(0x18f)],...typeof _0x273a86['physicalTableCount']===_0x2a7259(0x17a)?{'physicalTableCount':_0x273a86[_0x2a7259(0x171)]}:{},...typeof _0x273a86[_0x2a7259(0x190)]==='number'?{'datasetTableCount':_0x273a86[_0x2a7259(0x190)]}:{},..._0x273a86[_0x2a7259(0x194)]?{'summary':_0x273a86[_0x2a7259(0x194)]}:{},'summaryByType':_0x30ef1e,'toAnalyzeTables':_0x4e0909,'deletedTables':_0x4d932e,'modifiedFieldDiffs':_0x27defd,'tables':_0x4e47a9},'message':_0x4e47a9['length']+_0x2a7259(0x198)+_0x273a86[_0x2a7259(0x18f)]+_0x2a7259(0x188)+_0x413122+')'};}};
|
package/lib/commands/db/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5b8fc1,_0x31d1ff){const _0x512e8d=a113_0x5708,_0x264a31=_0x5b8fc1();while(!![]){try{const _0x3152f1=-parseInt(_0x512e8d(0x1b8))/0x1*(-parseInt(_0x512e8d(0x1b3))/0x2)+parseInt(_0x512e8d(0x1af))/0x3+-parseInt(_0x512e8d(0x1b4))/0x4*(-parseInt(_0x512e8d(0x1b5))/0x5)+parseInt(_0x512e8d(0x1b9))/0x6*(-parseInt(_0x512e8d(0x1b1))/0x7)+-parseInt(_0x512e8d(0x1b6))/0x8*(parseInt(_0x512e8d(0x1b0))/0x9)+-parseInt(_0x512e8d(0x1b2))/0xa*(parseInt(_0x512e8d(0x1b7))/0xb)+-parseInt(_0x512e8d(0x1ae))/0xc;if(_0x3152f1===_0x31d1ff)break;else _0x264a31['push'](_0x264a31['shift']());}catch(_0x581c6d){_0x264a31['push'](_0x264a31['shift']());}}}(a113_0x3fd7,0xbcdf3));function a113_0x3fd7(){const _0x3cc36c=['847qxTFxO','20FGhQWR','209172LswvmS','2933896Pdlvdq','10ShnDie','184egtlhI','1475683mskTsG','1wzbJlB','29178YSKczp','13699716qsOvHs','3797676ClMwmy','25605sdYWja'];a113_0x3fd7=function(){return _0x3cc36c;};return a113_0x3fd7();}import{dbList}from'../../commands/db/list.js';import{dbDetail}from'../../commands/db/detail.js';import{dbCreate}from'../../commands/db/create.js';import{dbUpdate}from'../../commands/db/update.js';import{dbDelete}from'../../commands/db/delete.js';import{dbTest}from'../../commands/db/test.js';function a113_0x5708(_0x21daf4,_0x204543){_0x21daf4=_0x21daf4-0x1ae;const _0x3fd7bd=a113_0x3fd7();let _0x5708f9=_0x3fd7bd[_0x21daf4];return _0x5708f9;}import{dbAnalyzeBatchPlan}from'../../commands/db/analyze-batch-plan.js';import{dbAnalyzeStart}from'../../commands/db/analyze-start.js';import{dbAnalyzeCancel}from'../../commands/db/analyze-cancel.js';import{dbAnalyzeStatus}from'../../commands/db/analyze-status.js';import{dbCrossAnalyzeStart}from'../../commands/db/cross-db-analyze-start.js';import{dbCrossAnalyzeStatus}from'../../commands/db/cross-db-analyze-status.js';import{dbCrossAnalyzeLatest}from'../../commands/db/cross-db-analyze-latest.js';import{dbTables}from'../../commands/db/tables.js';import{dbDiff}from'../../commands/db/diff.js';import{dbDiffRefreshStart}from'../../commands/db/diff-refresh-start.js';import{dbDiffRefreshStatus}from'../../commands/db/diff-refresh-status.js';export const dbDefinitions=[dbList,dbDetail,dbCreate,dbUpdate,dbDelete,dbTest,dbAnalyzeBatchPlan,dbAnalyzeStart,dbAnalyzeCancel,dbAnalyzeStatus,dbCrossAnalyzeStart,dbCrossAnalyzeStatus,dbCrossAnalyzeLatest,dbTables,dbDiff,dbDiffRefreshStart,dbDiffRefreshStatus];
|
package/lib/commands/db/list.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a114_0x58dd72=a114_0x4565;(function(_0x1bd416,_0x18d82f){const _0x1c081d=a114_0x4565,_0x5b1e1f=_0x1bd416();while(!![]){try{const _0x484076=parseInt(_0x1c081d(0x196))/0x1+parseInt(_0x1c081d(0x18a))/0x2*(-parseInt(_0x1c081d(0x18d))/0x3)+parseInt(_0x1c081d(0x193))/0x4+parseInt(_0x1c081d(0x188))/0x5*(-parseInt(_0x1c081d(0x189))/0x6)+parseInt(_0x1c081d(0x185))/0x7+-parseInt(_0x1c081d(0x187))/0x8*(parseInt(_0x1c081d(0x197))/0x9)+-parseInt(_0x1c081d(0x198))/0xa*(-parseInt(_0x1c081d(0x18c))/0xb);if(_0x484076===_0x18d82f)break;else _0x5b1e1f['push'](_0x5b1e1f['shift']());}catch(_0x2a7e1b){_0x5b1e1f['push'](_0x5b1e1f['shift']());}}}(a114_0x51d2,0x8e2e5));function a114_0x4565(_0x270c55,_0x1492fc){_0x270c55=_0x270c55-0x17f;const _0x51d201=a114_0x51d2();let _0x4565d5=_0x51d201[_0x270c55];return _0x4565d5;}import{listDatasets,listDbLinks}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a114_0x51d2(){const _0x262701=['\x20database\x20connection(s)','121vLrXRF','3kYAwrv','all','read','Page\x20size','pagesize','num','4184064rqizjx','map','Server\x20omitted\x20paging\x20metadata;\x20totalCount\x20is\x20unknown\x20—\x20rowsOnPage\x20is\x20this\x20page\x20only','215782HjQHad','18jZnaXi','494770tgWNaB','Found\x20','list','Page\x20index\x20(1-based)','DB_TABLE','number','page','2145626YreQGP','appCode','2341688RtRPEQ','65605rZbzro','234hxGKMh','866098mVXJsG'];a114_0x51d2=function(){return _0x262701;};return a114_0x51d2();}import{buildDbDatasetDependency,sanitizeDbLinkForOutput}from'../../commands/db/shared.js';export const dbList={'service':'db','command':a114_0x58dd72(0x180),'description':'List\x20database\x20connections\x20(dblinks)\x20for\x20the\x20current\x20app\x20with\x20analysis\x20status\x20—\x20for\x20AI\x20to\x20pick\x20ids\x20before\x20db\x20detail\x20/\x20analyze\x20/\x20tables','risk':a114_0x58dd72(0x18f),'flags':[APPCODE_FLAG_OPTIONAL,{'name':'page','type':a114_0x58dd72(0x183),'description':a114_0x58dd72(0x181),'default':0x1},{'name':a114_0x58dd72(0x191),'type':a114_0x58dd72(0x183),'description':a114_0x58dd72(0x190),'default':0x64}],async 'execute'(_0x543797){const _0x265a86=a114_0x58dd72,_0x3a0471=_0x543797[_0x265a86(0x192)](_0x265a86(0x184),0x1)||0x1,_0x42b5fc=_0x543797[_0x265a86(0x192)](_0x265a86(0x191),0x64)||0x64,[{items:_0x239aea,paging:_0x342708},_0x5edeb3]=await Promise[_0x265a86(0x18e)]([listDbLinks(_0x543797['appCode'],{'currentPage':_0x3a0471,'pageSize':_0x42b5fc}),listDatasets(_0x543797[_0x265a86(0x186)],{'source':_0x265a86(0x182)})]),_0x5aa5e1=_0x239aea[_0x265a86(0x194)](_0x36c2d2=>({...sanitizeDbLinkForOutput(_0x36c2d2),'datasetDependency':buildDbDatasetDependency(_0x36c2d2,_0x5edeb3)['datasetDependency']})),_0x48a23f=_0x342708?_0x342708:{'currentPage':_0x3a0471,'pageSize':_0x42b5fc,'rowsOnPage':_0x5aa5e1['length'],'totalCount':null,'note':_0x265a86(0x195)};return{'ok':!![],'data':{'connections':_0x5aa5e1,'paging':_0x48a23f},'message':_0x265a86(0x17f)+_0x5aa5e1['length']+_0x265a86(0x18b)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5a0a38,_0x39ec73){const _0x1d60a7=a115_0xa9ce,_0xe0fa63=_0x5a0a38();while(!![]){try{const _0x3f761=-parseInt(_0x1d60a7(0x1f4))/0x1*(-parseInt(_0x1d60a7(0x1e2))/0x2)+parseInt(_0x1d60a7(0x1de))/0x3*(-parseInt(_0x1d60a7(0x1eb))/0x4)+-parseInt(_0x1d60a7(0x1fb))/0x5+parseInt(_0x1d60a7(0x1df))/0x6*(-parseInt(_0x1d60a7(0x1f6))/0x7)+-parseInt(_0x1d60a7(0x1fd))/0x8*(-parseInt(_0x1d60a7(0x1f9))/0x9)+parseInt(_0x1d60a7(0x1e5))/0xa+-parseInt(_0x1d60a7(0x203))/0xb*(-parseInt(_0x1d60a7(0x1f3))/0xc);if(_0x3f761===_0x39ec73)break;else _0xe0fa63['push'](_0xe0fa63['shift']());}catch(_0x137dae){_0xe0fa63['push'](_0xe0fa63['shift']());}}}(a115_0x3c80,0x2a97e));import{testDbLinkConfigConnect}from'../../core/api-client.js';function a115_0xa9ce(_0x250ece,_0x2d4fc0){_0x250ece=_0x250ece-0x1dc;const _0x3c80b9=a115_0x3c80();let _0xa9ced=_0x3c80b9[_0x250ece];return _0xa9ced;}import{getAppBaseUrl}from'../../constant/domain.js';import{CliErrors}from'../../errors.js';function shouldRedactKey(_0x880b){const _0x4493bf=a115_0xa9ce,_0x467225=_0x880b[_0x4493bf(0x1fe)]();if(_0x467225===_0x4493bf(0x201)||_0x467225===_0x4493bf(0x1ee)||_0x467225===_0x4493bf(0x1e4))return!![];if(_0x467225[_0x4493bf(0x1ec)](_0x4493bf(0x1ef))||_0x467225[_0x4493bf(0x1ec)](_0x4493bf(0x1ff))||_0x467225['includes'](_0x4493bf(0x204)))return!![];if(_0x467225[_0x4493bf(0x1ec)](_0x4493bf(0x1fa))||_0x467225[_0x4493bf(0x1ec)](_0x4493bf(0x1e8)))return!![];if(_0x467225===_0x4493bf(0x1e6)||_0x467225===_0x4493bf(0x1e7)||_0x467225===_0x4493bf(0x1e0))return!![];return![];}export function sanitizeDbLinkForOutput(_0x401f87){const _0x131192=a115_0xa9ce,_0x14e5c1={..._0x401f87};delete _0x14e5c1[_0x131192(0x1fc)];for(const _0x36927b of Object['keys'](_0x14e5c1)){if(!shouldRedactKey(_0x36927b))continue;const _0x35441a=_0x14e5c1[_0x36927b];_0x35441a!=null&&String(_0x35441a)[_0x131192(0x1dd)]>0x0&&(_0x14e5c1[_0x36927b]='[redacted]');}return _0x14e5c1;}export function sanitizeDbLinkList(_0x5e0d1f){const _0x3011ac=a115_0xa9ce;return _0x5e0d1f[_0x3011ac(0x1f1)](_0x494319=>sanitizeDbLinkForOutput(_0x494319));}export function buildDbDatasetDependency(_0x158456,_0x5dd882){const _0x254d63=a115_0xa9ce,_0x4aafc1=_0x5dd882[_0x254d63(0x1e3)](_0x5c85c8=>Number(_0x5c85c8[_0x254d63(0x1f2)]?.[_0x254d63(0x1e1)])===Number(_0x158456['id']))[_0x254d63(0x1f1)](_0x2d8d3f=>({'id':_0x2d8d3f['id'],'code':_0x2d8d3f[_0x254d63(0x1ed)],'name':_0x2d8d3f[_0x254d63(0x1f7)],..._0x2d8d3f[_0x254d63(0x1f2)]?.[_0x254d63(0x1e9)]?{'tableName':_0x2d8d3f['dbtableConfig'][_0x254d63(0x1e9)]}:{}}));return{'datasetDependency':{'hasDependencies':_0x4aafc1[_0x254d63(0x1dd)]>0x0,'activeDatasetCount':_0x4aafc1['length']},'datasets':_0x4aafc1};}export async function assertDbLinkConnectionPreflight(_0x16adf9){const _0x74585a=a115_0xa9ce,_0xd95572=await testDbLinkConfigConnect(_0x16adf9);if(_0xd95572!==!![])throw CliErrors['apiError']('Database\x20connection\x20preflight\x20failed.',_0x74585a(0x200));}function a115_0x3c80(){const _0x200d4f=['jdbcurl','dbId','494116szsrMB','filter','dbpassword','2228260WLInVK','authorization','connectionstring','accesskey','tableName','number','3448lmmAyu','includes','code','passwd','secret','trim','map','dbtableConfig','1699140CpgaNR','1iLNoxx','/data/database','911407HnsPhA','name','isFinite','9NQWIIu','privatekey','932605zweLxq','hasAvailableDo','355088GLecUi','toLowerCase','token','The\x20configuration\x20was\x20not\x20saved.\x20Verify\x20the\x20host,\x20credentials,\x20database\x20name,\x20network,\x20and\x20allowlist,\x20or\x20explicitly\x20pass\x20--skip-connection-test.','password','test','11LRsjQQ','credential','/data/er?dbId=','length','120sSjrUv','12HmgtIc'];a115_0x3c80=function(){return _0x200d4f;};return a115_0x3c80();}const DB_URL_PATTERN=/^[^\s:]+(?::\d+)?$/;export function validateDbUrl(_0x22de1a){const _0x34a2ba=a115_0xa9ce,_0x3e16d3=_0x22de1a[_0x34a2ba(0x1f0)]();if(!_0x3e16d3)return![];return DB_URL_PATTERN[_0x34a2ba(0x202)](_0x3e16d3);}export function buildDbPageLinks(_0x43f3b0,_0x33bb39){const _0x12f4bd=a115_0xa9ce,_0x54b228=_0x43f3b0?.[_0x12f4bd(0x1f0)]();if(!_0x54b228)return undefined;const _0x3a6952=typeof _0x33bb39===_0x12f4bd(0x1ea)?String(_0x33bb39):String(_0x33bb39??'')[_0x12f4bd(0x1f0)]();if(!_0x3a6952)return undefined;const _0x3cfb35=Number(_0x3a6952);if(!Number[_0x12f4bd(0x1f8)](_0x3cfb35)||_0x3cfb35<=0x0)return undefined;const _0x58bafa=getAppBaseUrl(_0x54b228),_0x1157a=encodeURIComponent(String(_0x3cfb35));return{'databasePage':_0x58bafa+_0x12f4bd(0x1f5),'erPage':_0x58bafa+_0x12f4bd(0x1dc)+_0x1157a};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a116_0x176066=a116_0x1ef3;function a116_0x1ef3(_0x5aac71,_0x1889dc){_0x5aac71=_0x5aac71-0x1dc;const _0x66b80c=a116_0x66b8();let _0x1ef3a4=_0x66b80c[_0x5aac71];return _0x1ef3a4;}(function(_0x27242c,_0x32f233){const _0x2a4560=a116_0x1ef3,_0x3ceb0b=_0x27242c();while(!![]){try{const _0x546cdc=parseInt(_0x2a4560(0x1e9))/0x1+-parseInt(_0x2a4560(0x1e0))/0x2*(-parseInt(_0x2a4560(0x1e6))/0x3)+-parseInt(_0x2a4560(0x1ea))/0x4*(-parseInt(_0x2a4560(0x1f8))/0x5)+-parseInt(_0x2a4560(0x1f1))/0x6+parseInt(_0x2a4560(0x1de))/0x7+parseInt(_0x2a4560(0x1ef))/0x8*(parseInt(_0x2a4560(0x1e4))/0x9)+parseInt(_0x2a4560(0x1e7))/0xa*(-parseInt(_0x2a4560(0x1dd))/0xb);if(_0x546cdc===_0x32f233)break;else _0x3ceb0b['push'](_0x3ceb0b['shift']());}catch(_0x47ed4c){_0x3ceb0b['push'](_0x3ceb0b['shift']());}}}(a116_0x66b8,0xe0669));import{CliErrors}from'../../errors.js';export const DB_TABLE_PAGE_SIZE=0x64;export const DB_TABLE_DIFF_TYPES=[a116_0x176066(0x1f4),a116_0x176066(0x1f3),a116_0x176066(0x1ec),a116_0x176066(0x1e3)];export function summarizeDbTableDiff(_0xb8ef61){const _0x364383=a116_0x176066;return Object[_0x364383(0x1e8)](DB_TABLE_DIFF_TYPES[_0x364383(0x1e2)](_0xbbab22=>[_0xbbab22,_0xb8ef61[_0x364383(0x1ee)](_0x4a3416=>_0x4a3416[_0x364383(0x1f6)]===_0xbbab22)['length']]));}function a116_0x66b8(){const _0x6d3430=['ALREADY_ANALYZED','424224seLsUo','datasetTableCount','4038162DKZAur','890VkrEPe','fromEntries','1050272wqQjfm','2448064uBehRQ','physicalTableCount','DELETED_TABLE','size','filter','32WhuXzG','validation','982008SYEVfV','number','MODIFIED_TABLE','NEW_TABLE','\x20of\x20','diffType','totalCount','10wRaVsL','tableList','511753BspSjs','9901206gkRPZo','Incomplete\x20db\x20table\x20pagination:\x20collected\x20','2MltPHF','length','map'];a116_0x66b8=function(){return _0x6d3430;};return a116_0x66b8();}export async function getAllDbTableDiff(_0x11e431,_0x3273ca,_0x333c31,_0x3e5c27){const _0x11fb9e=a116_0x176066,_0x5ace0a=new Map();let _0x50a6b4=0x1,_0x2edd83=null;while(!![]){_0x2edd83=await _0x11e431(_0x3273ca,_0x333c31,{'pageIndex':_0x50a6b4,'pageSize':DB_TABLE_PAGE_SIZE,'tableName':_0x3e5c27});const _0x470273=_0x5ace0a[_0x11fb9e(0x1ed)];for(const _0x104374 of _0x2edd83[_0x11fb9e(0x1dc)]){_0x5ace0a['set'](_0x104374['tableName'],_0x104374);}if(_0x5ace0a['size']>=_0x2edd83['totalCount'])break;if(_0x2edd83[_0x11fb9e(0x1dc)][_0x11fb9e(0x1e1)]===0x0||_0x5ace0a['size']===_0x470273)throw CliErrors[_0x11fb9e(0x1f0)](_0x11fb9e(0x1df)+_0x5ace0a[_0x11fb9e(0x1ed)]+_0x11fb9e(0x1f5)+_0x2edd83[_0x11fb9e(0x1f7)]+'\x20row(s).');_0x50a6b4+=0x1;}return{'totalCount':_0x2edd83?.[_0x11fb9e(0x1f7)]??0x0,...typeof _0x2edd83?.[_0x11fb9e(0x1eb)]===_0x11fb9e(0x1f2)?{'physicalTableCount':_0x2edd83[_0x11fb9e(0x1eb)]}:{},...typeof _0x2edd83?.[_0x11fb9e(0x1e5)]==='number'?{'datasetTableCount':_0x2edd83['datasetTableCount']}:{},..._0x2edd83?.['summary']?{'summary':_0x2edd83['summary']}:{},'tableList':[..._0x5ace0a['values']()]};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a117_0x5467e6=a117_0x327a;(function(_0x5a5a57,_0x82126){const _0x3faed6=a117_0x327a,_0x197726=_0x5a5a57();while(!![]){try{const _0xcbc3c5=parseInt(_0x3faed6(0x10d))/0x1*(-parseInt(_0x3faed6(0xf4))/0x2)+-parseInt(_0x3faed6(0x102))/0x3*(parseInt(_0x3faed6(0xf8))/0x4)+-parseInt(_0x3faed6(0xfa))/0x5*(-parseInt(_0x3faed6(0xf5))/0x6)+parseInt(_0x3faed6(0xf6))/0x7*(-parseInt(_0x3faed6(0x101))/0x8)+-parseInt(_0x3faed6(0x103))/0x9*(parseInt(_0x3faed6(0xfc))/0xa)+-parseInt(_0x3faed6(0x105))/0xb*(-parseInt(_0x3faed6(0x10f))/0xc)+-parseInt(_0x3faed6(0x106))/0xd*(-parseInt(_0x3faed6(0xff))/0xe);if(_0xcbc3c5===_0x82126)break;else _0x197726['push'](_0x197726['shift']());}catch(_0x45fd3f){_0x197726['push'](_0x197726['shift']());}}}(a117_0x9281,0xeadbc));import{getDbTableComparisonPage}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{getAllDbTableDiff,summarizeDbTableDiff}from'../../commands/db/table-diff-shared.js';function a117_0x327a(_0x299676,_0x162843){_0x299676=_0x299676-0xf3;const _0x92812d=a117_0x9281();let _0x327a23=_0x92812d[_0x299676];return _0x327a23;}export const dbTables={'service':'db','command':a117_0x5467e6(0xf9),'description':a117_0x5467e6(0xf3),'risk':a117_0x5467e6(0x10b),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a117_0x5467e6(0x109),'type':'string','description':'Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)'}],async 'execute'(_0x4fd684){const _0x459cda=a117_0x5467e6,_0x1298bd=_0x4fd684[_0x459cda(0xf7)]('id'),_0xf2b7a8=_0x4fd684['str'](_0x459cda(0x109))||undefined,_0x14faa0=await getAllDbTableDiff(getDbTableComparisonPage,_0x4fd684[_0x459cda(0xfe)],_0x1298bd,_0xf2b7a8),_0x531b61=_0x14faa0[_0x459cda(0x104)];return{'ok':!![],'data':{'dbLinkId':_0x1298bd,'totalCount':_0x14faa0[_0x459cda(0x108)],...typeof _0x14faa0[_0x459cda(0xfb)]===_0x459cda(0x10e)?{'physicalTableCount':_0x14faa0[_0x459cda(0xfb)]}:{},...typeof _0x14faa0[_0x459cda(0xfd)]===_0x459cda(0x10e)?{'datasetTableCount':_0x14faa0[_0x459cda(0xfd)]}:{},..._0x14faa0['summary']?{'summary':_0x14faa0[_0x459cda(0x10c)]}:{},'summaryByType':summarizeDbTableDiff(_0x531b61),'tables':_0x531b61},'message':_0x531b61[_0x459cda(0x10a)]+_0x459cda(0x100)+_0x14faa0[_0x459cda(0x108)]+_0x459cda(0x107)+_0x1298bd+')'};}};function a117_0x9281(){const _0x1aa9ca=['4440wOXzFU','1246AVgEKZ','num','15316BcXbqz','tables','8870INEhgT','physicalTableCount','40QuLJFX','datasetTableCount','appCode','28utDghQ','\x20table\x20comparison\x20row(s),\x20total\x20','51336XSjfAY','150GtRuqo','4260087yBnfSC','tableList','62645yYqkcD','21173685buyMBt','\x20(db\x20link\x20','totalCount','table','length','read','summary','1161437IvqNll','number','1644CgkvSx','List\x20all\x20database\x20table\x20comparison\x20rows\x20and\x20analysis\x20states','2MTruwp'];a117_0x9281=function(){return _0x1aa9ca;};return a117_0x9281();}
|
package/lib/commands/db/test.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a118_0x5e94de=a118_0x48ca;(function(_0x49521e,_0x3c3d87){const _0x150e1d=a118_0x48ca,_0x339d31=_0x49521e();while(!![]){try{const _0x2d22d6=parseInt(_0x150e1d(0x13f))/0x1+parseInt(_0x150e1d(0x137))/0x2+-parseInt(_0x150e1d(0x13d))/0x3+-parseInt(_0x150e1d(0x140))/0x4+-parseInt(_0x150e1d(0x133))/0x5+-parseInt(_0x150e1d(0x12f))/0x6+-parseInt(_0x150e1d(0x13a))/0x7*(-parseInt(_0x150e1d(0x13c))/0x8);if(_0x2d22d6===_0x3c3d87)break;else _0x339d31['push'](_0x339d31['shift']());}catch(_0x5300d3){_0x339d31['push'](_0x339d31['shift']());}}}(a118_0x3c27,0x33c23));import{testDbLinkConnect}from'../../core/api-client.js';function a118_0x48ca(_0x4af486,_0x438a55){_0x4af486=_0x4af486-0x12d;const _0x3c2796=a118_0x3c27();let _0x48ca01=_0x3c2796[_0x4af486];return _0x48ca01;}import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a118_0x3c27(){const _0x3a00a1=['success','keys','1179600agZQPg','num','Connection\x20OK\x20for\x20db\x20link\x20','Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)','93088myvlNA','length','\x20(see\x20data.result)','798gaHFmS','msg','48104snRMHA','430572qAhNti','data','173179fcccbc','1181344NWKbtC','test','object','Connection\x20check\x20finished\x20for\x20db\x20link\x20','110532JfhhFI','read'];a118_0x3c27=function(){return _0x3a00a1;};return a118_0x3c27();}function summarizeTestConnectResult(_0x175ef3){const _0x3d0374=a118_0x48ca;if(_0x175ef3===!![]||_0x175ef3===![])return{'success':_0x175ef3};if(_0x175ef3===null||_0x175ef3===undefined)return{'type':typeof _0x175ef3};if(typeof _0x175ef3!==_0x3d0374(0x12d))return{'type':typeof _0x175ef3};const _0x3ad9dc=_0x175ef3,_0x346517=[_0x3d0374(0x131),'message','code','error',_0x3d0374(0x13b),_0x3d0374(0x13e)],_0x344d2b={};for(const _0x397cef of _0x346517){if(_0x397cef in _0x3ad9dc)_0x344d2b[_0x397cef]=_0x3ad9dc[_0x397cef];}return Object[_0x3d0374(0x132)](_0x344d2b)[_0x3d0374(0x138)]===0x0&&(_0x344d2b[_0x3d0374(0x132)]=Object['keys'](_0x3ad9dc)['slice'](0x0,0x14)),_0x344d2b;}export const dbTest={'service':'db','command':a118_0x5e94de(0x141),'description':a118_0x5e94de(0x136),'risk':a118_0x5e94de(0x130),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x6eb2da){const _0x12b5eb=a118_0x5e94de,_0x5ec0e9=_0x6eb2da[_0x12b5eb(0x134)]('id'),_0x2af250=await testDbLinkConnect(_0x5ec0e9),_0x34bcc4=_0x2af250===!![]||typeof _0x2af250===_0x12b5eb(0x12d)&&_0x2af250!==null&&_0x2af250[_0x12b5eb(0x131)]===!![],_0x357c8b=summarizeTestConnectResult(_0x2af250);return{'ok':!![],'data':{'id':_0x5ec0e9,'connected':Boolean(_0x34bcc4),'result':_0x357c8b},'message':_0x34bcc4?_0x12b5eb(0x135)+_0x5ec0e9:_0x12b5eb(0x12e)+_0x5ec0e9+_0x12b5eb(0x139)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a119_0x2e00cc=a119_0x57a1;function a119_0xcc48(){const _0x1af724=['5PGjJpI','POST','69654JjxOET','dbName','dburl','password','Preview\x20the\x20merged\x20database\x20connection\x20update;\x20password\x20redacted','dbparam','New\x20username','315606pNHPkz','******','1451928UuiDSe','has','trim','bool','20053pMWWEg','Update\x20a\x20database\x20connection\x20by\x20merging\x20supplied\x20fields\x20into\x20the\x20current\x20server\x20record.\x20A\x20masked\x20server\x20password\x20requires\x20explicit\x20--password','New\x20connection\x20parameter\x20string','75246iusmpM','skip-connection-test','dbDesc','--password\x20must\x20contain\x20the\x20real\x20database\x20password,\x20not\x20a\x20masked\x20value.','dbdesc','610LFtLut','122269CgOKcH','dbParam','str','New\x20host:port','9WTWNmN','227132ZOJzqC','Updated\x20db\x20link\x20','Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22','1MPtjJw','[redacted]','write','Current\x20or\x20replacement\x20password.\x20Required\x20when\x20the\x20stored\x20password\x20is\x20masked','The\x20server\x20returned\x20a\x20masked\x20database\x20password.\x20Pass\x20the\x20current\x20or\x20replacement\x20password\x20explicitly\x20with\x20--password\x20to\x20update\x20this\x20connection\x20safely.','New\x20database\x20name','dbname','username','validation','num','string'];a119_0xcc48=function(){return _0x1af724;};return a119_0xcc48();}(function(_0x353130,_0x34f22){const _0x149771=a119_0x57a1,_0x5d4f0f=_0x353130();while(!![]){try{const _0x52e36e=-parseInt(_0x149771(0x88))/0x1*(-parseInt(_0x149771(0x7a))/0x2)+parseInt(_0x149771(0x95))/0x3+parseInt(_0x149771(0x85))/0x4*(parseInt(_0x149771(0x93))/0x5)+-parseInt(_0x149771(0x71))/0x6+-parseInt(_0x149771(0x80))/0x7+-parseInt(_0x149771(0x73))/0x8*(-parseInt(_0x149771(0x84))/0x9)+parseInt(_0x149771(0x7f))/0xa*(-parseInt(_0x149771(0x77))/0xb);if(_0x52e36e===_0x34f22)break;else _0x5d4f0f['push'](_0x5d4f0f['shift']());}catch(_0x1d86c2){_0x5d4f0f['push'](_0x5d4f0f['shift']());}}}(a119_0xcc48,0x1cc54));import{getDbLinkInfo,updateDbLink}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG,SKIP_CONNECTION_TEST_FLAG}from'../../commands/common/flags.js';import{assertDbLinkConnectionPreflight,sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';const MASKED_PASSWORD_VALUES=new Set([a119_0x2e00cc(0x72),a119_0x2e00cc(0x89)]);function a119_0x57a1(_0x72b0da,_0x30d4ff){_0x72b0da=_0x72b0da-0x6c;const _0xcc4837=a119_0xcc48();let _0x57a1b0=_0xcc4837[_0x72b0da];return _0x57a1b0;}function mergeDbLinkUpdate(_0x872f20,_0x387b4c){const _0x126e6e=a119_0x2e00cc,_0x81eb6c={..._0x872f20},_0x44b0df=_0x387b4c[_0x126e6e(0x82)](_0x126e6e(0x6d));if(_0x44b0df&&MASKED_PASSWORD_VALUES[_0x126e6e(0x74)](_0x44b0df))throw CliErrors[_0x126e6e(0x90)](_0x126e6e(0x7d));if(!_0x44b0df&&MASKED_PASSWORD_VALUES[_0x126e6e(0x74)](String(_0x872f20[_0x126e6e(0x6d)]??'')))throw CliErrors[_0x126e6e(0x90)](_0x126e6e(0x8c));const _0x555552=_0x387b4c[_0x126e6e(0x82)]('dbname');if(_0x555552)_0x81eb6c[_0x126e6e(0x96)]=_0x555552;const _0x6a942d=_0x387b4c[_0x126e6e(0x82)]('dburl');if(_0x6a942d)_0x81eb6c['dbUrl']=_0x6a942d[_0x126e6e(0x75)]();const _0x4b5fe4=_0x387b4c[_0x126e6e(0x82)](_0x126e6e(0x8f));if(_0x4b5fe4)_0x81eb6c[_0x126e6e(0x8f)]=_0x4b5fe4;if(_0x44b0df)_0x81eb6c['password']=_0x44b0df;const _0x16c2a1=_0x387b4c[_0x126e6e(0x82)]('dbparam');if(_0x16c2a1)_0x81eb6c[_0x126e6e(0x81)]=_0x16c2a1;const _0x4f96dc=_0x387b4c['str'](_0x126e6e(0x7e));if(_0x4f96dc)_0x81eb6c[_0x126e6e(0x7c)]=_0x4f96dc;return _0x81eb6c;}export const dbUpdate={'service':'db','command':'update','description':a119_0x2e00cc(0x78),'risk':a119_0x2e00cc(0x8a),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a119_0x2e00cc(0x8e),'type':a119_0x2e00cc(0x92),'description':a119_0x2e00cc(0x8d)},{'name':a119_0x2e00cc(0x6c),'type':a119_0x2e00cc(0x92),'description':a119_0x2e00cc(0x83)},{'name':a119_0x2e00cc(0x8f),'type':a119_0x2e00cc(0x92),'description':a119_0x2e00cc(0x70)},{'name':a119_0x2e00cc(0x6d),'type':'string','description':a119_0x2e00cc(0x8b)},{'name':a119_0x2e00cc(0x6f),'type':a119_0x2e00cc(0x92),'description':a119_0x2e00cc(0x79)},{'name':a119_0x2e00cc(0x7e),'type':a119_0x2e00cc(0x92),'description':'New\x20description'},SKIP_CONNECTION_TEST_FLAG],async 'validate'(_0x345f9e){const _0x29b47c=a119_0x2e00cc,_0x2b65cf=_0x345f9e['str'](_0x29b47c(0x6c));if(_0x2b65cf&&!validateDbUrl(_0x2b65cf[_0x29b47c(0x75)]()))throw CliErrors[_0x29b47c(0x90)](_0x29b47c(0x87)+_0x2b65cf+'\x22');},async 'dryRun'(_0x2ad161){const _0x497fec=a119_0x2e00cc,_0x13a96c=_0x2ad161[_0x497fec(0x91)]('id'),_0x4cf5f5=await getDbLinkInfo(_0x13a96c),_0x53ed04=mergeDbLinkUpdate(_0x4cf5f5,_0x2ad161),_0x3d555c=sanitizeDbLinkForOutput(_0x53ed04);return{'method':_0x497fec(0x94),'url':'/smartapi/dblink/update','body':_0x3d555c,'description':_0x497fec(0x6e),'connectionPreflight':{'enabled':!_0x2ad161[_0x497fec(0x76)]('skip-connection-test'),'executed':![]}};},async 'execute'(_0x4d0439){const _0x404a69=a119_0x2e00cc,_0x567747=_0x4d0439[_0x404a69(0x91)]('id'),_0x44ee7a=await getDbLinkInfo(_0x567747),_0x140d59=mergeDbLinkUpdate(_0x44ee7a,_0x4d0439);!_0x4d0439[_0x404a69(0x76)](_0x404a69(0x7b))&&await assertDbLinkConnectionPreflight(_0x140d59);const {id:_0x347f8e,entity:_0x5136a0}=normalizeEntityWithIdResponse(await updateDbLink(_0x140d59));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x5136a0),'message':_0x404a69(0x86)+(_0x347f8e??_0x567747)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x3ffa78,_0x1ef8cc){const _0x5af945=a120_0xc303,_0x2a2a14=_0x3ffa78();while(!![]){try{const _0x25eef4=-parseInt(_0x5af945(0x1c2))/0x1+-parseInt(_0x5af945(0x1bc))/0x2*(parseInt(_0x5af945(0x1c3))/0x3)+-parseInt(_0x5af945(0x1be))/0x4*(-parseInt(_0x5af945(0x1bf))/0x5)+-parseInt(_0x5af945(0x1ba))/0x6*(-parseInt(_0x5af945(0x1c0))/0x7)+parseInt(_0x5af945(0x1bd))/0x8+-parseInt(_0x5af945(0x1c1))/0x9+parseInt(_0x5af945(0x1bb))/0xa;if(_0x25eef4===_0x1ef8cc)break;else _0x2a2a14['push'](_0x2a2a14['shift']());}catch(_0x61cc28){_0x2a2a14['push'](_0x2a2a14['shift']());}}}(a120_0x4931,0x5d165));import{deploymentSyncAll}from'../../commands/deployment/sync-all.js';function a120_0xc303(_0x51e417,_0x550b9f){_0x51e417=_0x51e417-0x1ba;const _0x4931a8=a120_0x4931();let _0xc303c0=_0x4931a8[_0x51e417];return _0xc303c0;}import{deploymentSyncStatus}from'../../commands/deployment/sync-status.js';import{deploymentSyncJobs}from'../../commands/deployment/sync-jobs.js';function a120_0x4931(){const _0x979d32=['13394540NokFkh','10kPCIdC','405144ldymSA','4OVIxAZ','1343845uNxurU','16996aBUbHg','5611509oGlJkH','265733MrQqAr','423849ydMUhB','786IbSLhZ'];a120_0x4931=function(){return _0x979d32;};return a120_0x4931();}export const deploymentDefinitions=[deploymentSyncAll,deploymentSyncStatus,deploymentSyncJobs];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a121_0x4fdd1b=a121_0x52f5;(function(_0x38049f,_0x55577f){const _0x561d13=a121_0x52f5,_0x3867aa=_0x38049f();while(!![]){try{const _0x207aad=-parseInt(_0x561d13(0x1c8))/0x1+-parseInt(_0x561d13(0x1b6))/0x2+-parseInt(_0x561d13(0x1c7))/0x3+-parseInt(_0x561d13(0x1ac))/0x4*(-parseInt(_0x561d13(0x1b1))/0x5)+parseInt(_0x561d13(0x1bd))/0x6+parseInt(_0x561d13(0x1ba))/0x7*(parseInt(_0x561d13(0x1c5))/0x8)+parseInt(_0x561d13(0x1c0))/0x9;if(_0x207aad===_0x55577f)break;else _0x3867aa['push'](_0x3867aa['shift']());}catch(_0x380127){_0x3867aa['push'](_0x3867aa['shift']());}}}(a121_0xa95e,0x706f7));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a121_0xa95e(){const _0x21e6b1=['3017480IBGiNd','Would\x20submit\x20an\x20administrative\x20deployment\x20metadata\x20backfill\x20or\x20recovery\x20job.','application_deployment_sync','all_server_supported_metadata','appCode','1542656zWvAol','status','deployment_sync_submit_outcome_unknown','POST','1277759ansLUl','List\x20recent\x20deployment\x20sync\x20jobs\x20before\x20deciding\x20whether\x20to\x20submit\x20again.','jobId','3362220heawBS','bool','Submit\x20an\x20administrative\x20metadata\x20backfill\x20or\x20recovery\x20synchronization.','3299904HrvRhq','deployment','/smartapi/data-sync/submit','Backfill\x20or\x20recover\x20all\x20server-supported\x20application\x20metadata','--confirm\x20is\x20required\x20to\x20synchronize\x20all\x20application\x20metadata.','40ZzTxNL','job','1812192csGUxW','607280uwaiPr','unknown','Run\x20with\x20--dry-run\x20first,\x20then\x20add\x20--confirm.','4uogXFP','Confirm\x20the\x20administrative\x20backfill\x20or\x20recovery\x20synchronization','confirm','submitted','defineProperty'];a121_0xa95e=function(){return _0x21e6b1;};return a121_0xa95e();}import{asDryRunResult}from'../../commands/common/dry-run.js';import{isPlatformTransportFailure,submitDeploymentMetadataSyncAll}from'../../core/api-client.js';import{CliError,CliErrors}from'../../errors.js';const SUBMIT_PATH=a121_0x4fdd1b(0x1c2),CONFIRM_FLAG={'name':a121_0x4fdd1b(0x1ae),'type':'boolean','description':a121_0x4fdd1b(0x1ad)};export const deploymentSyncAll={'service':a121_0x4fdd1b(0x1c1),'command':'sync-all','description':a121_0x4fdd1b(0x1c3),'risk':'write','strictFlags':!![],'structuredErrors':!![],'confirmationDescription':a121_0x4fdd1b(0x1bf),'flags':[CONFIRM_FLAG,APPCODE_FLAG_OPTIONAL],async 'dryRun'(_0x122620){const _0x170e5b=a121_0x4fdd1b;return asDryRunResult(buildPreview(_0x122620[_0x170e5b(0x1b5)]),{'method':_0x170e5b(0x1b9),'url':SUBMIT_PATH,'description':_0x170e5b(0x1b2)});},async 'execute'(_0x5654f5){const _0x3894e8=a121_0x4fdd1b;if(!_0x5654f5[_0x3894e8(0x1be)]('confirm'))throw CliErrors['validation'](_0x3894e8(0x1c4),_0x3894e8(0x1ca));try{const _0x5bd75e=await submitDeploymentMetadataSyncAll({'appCode':_0x5654f5[_0x3894e8(0x1b5)]});if(_0x5bd75e['outcome']==='not_needed')return{'ok':!![],'data':{'operation':'application_deployment_sync','appCode':_0x5654f5[_0x3894e8(0x1b5)],'submitted':![],'outcome':'not_needed'},'message':'No\x20deployment\x20synchronization\x20was\x20needed\x20for\x20this\x20app.'};return{'ok':!![],'data':{'operation':_0x3894e8(0x1b3),'appCode':_0x5654f5[_0x3894e8(0x1b5)],'submitted':!![],'outcome':_0x3894e8(0x1af),'jobId':_0x5bd75e[_0x3894e8(0x1c6)][_0x3894e8(0x1bc)],'status':_0x5bd75e[_0x3894e8(0x1c6)][_0x3894e8(0x1b7)]},'message':'Submitted\x20deployment\x20synchronization\x20job\x20'+_0x5bd75e[_0x3894e8(0x1c6)][_0x3894e8(0x1bc)]+'.'};}catch(_0x8bd5a9){if(!isPlatformTransportFailure(_0x8bd5a9))throw _0x8bd5a9;const _0x195a3b=new CliError(_0x3894e8(0x1b8),0x2,'Deployment\x20sync\x20submission\x20response\x20was\x20unavailable;\x20job\x20creation\x20is\x20unknown.',_0x3894e8(0x1bb));Object[_0x3894e8(0x1b0)](_0x195a3b,'data',{'enumerable':!![],'value':{'operation':_0x3894e8(0x1b3),'appCode':_0x5654f5[_0x3894e8(0x1b5)],'submitted':null,'outcome':_0x3894e8(0x1c9)}});throw _0x195a3b;}}};function a121_0x52f5(_0x3dfb2d,_0x2d6ddb){_0x3dfb2d=_0x3dfb2d-0x1ac;const _0xa95ef=a121_0xa95e();let _0x52f518=_0xa95ef[_0x3dfb2d];return _0x52f518;}function buildPreview(_0x200bbd){const _0x28aa42=a121_0x4fdd1b;return{'operation':'application_deployment_sync','selector':{'appCode':_0x200bbd,'scope':_0x28aa42(0x1b4)},'before':null,'after':null,'dryRun':!![],'backend':{'submitted':![],'outcome':'not_submitted'},'warnings':[]};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a122_0x4bb7d2=a122_0x4bc2;function a122_0x4bc2(_0x368416,_0x14d9d3){_0x368416=_0x368416-0x9e;const _0x40c2f7=a122_0x40c2();let _0x4bc2f6=_0x40c2f7[_0x368416];return _0x4bc2f6;}(function(_0xf12555,_0x5c19d7){const _0x27dcf5=a122_0x4bc2,_0x50f1c4=_0xf12555();while(!![]){try{const _0x3a12dc=-parseInt(_0x27dcf5(0xad))/0x1*(-parseInt(_0x27dcf5(0xb8))/0x2)+-parseInt(_0x27dcf5(0xb0))/0x3*(-parseInt(_0x27dcf5(0xbb))/0x4)+parseInt(_0x27dcf5(0xab))/0x5*(parseInt(_0x27dcf5(0xa4))/0x6)+parseInt(_0x27dcf5(0xb7))/0x7+parseInt(_0x27dcf5(0xb6))/0x8*(-parseInt(_0x27dcf5(0xb1))/0x9)+-parseInt(_0x27dcf5(0xa3))/0xa*(parseInt(_0x27dcf5(0xa7))/0xb)+-parseInt(_0x27dcf5(0xb2))/0xc*(parseInt(_0x27dcf5(0xa1))/0xd);if(_0x3a12dc===_0x5c19d7)break;else _0x50f1c4['push'](_0x50f1c4['shift']());}catch(_0x4b03d9){_0x50f1c4['push'](_0x50f1c4['shift']());}}}(a122_0x40c2,0xe9e9a));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a122_0x40c2(){const _0x4eb930=['num','43615jGmfvY','appCode','11715490tBtWhZ','12drBLlm','isSafeInteger','deployment','11PWyNDh','--current-page\x20must\x20be\x20a\x20positive\x20integer.','current-page','Found\x20','4168925AfCNmo','validation','1908248ACDsQy','str','sync-jobs','42JLrUuu','270UgciHs','10776sRKdBj','Page\x20number','number','string','309528wMfJHO','9784537jkZFuY','2TrmQkl','page-size','List\x20application\x20deployment\x20synchronization\x20jobs','379876iUqijT','trim','status','Items\x20per\x20page\x20(maximum\x20100)','\x20deployment\x20synchronization\x20job(s).','--page-size\x20must\x20be\x20an\x20integer\x20from\x201\x20to\x20100.'];a122_0x40c2=function(){return _0x4eb930;};return a122_0x40c2();}import{listDeploymentMetadataSyncJobs}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';export const deploymentSyncJobs={'service':a122_0x4bb7d2(0xa6),'command':a122_0x4bb7d2(0xaf),'description':a122_0x4bb7d2(0xba),'risk':'read','strictFlags':!![],'structuredErrors':!![],'flags':[{'name':a122_0x4bb7d2(0xa9),'type':'number','default':0x1,'description':a122_0x4bb7d2(0xb3)},{'name':a122_0x4bb7d2(0xb9),'type':a122_0x4bb7d2(0xb4),'default':0xa,'description':a122_0x4bb7d2(0xbe)},{'name':a122_0x4bb7d2(0xbd),'type':a122_0x4bb7d2(0xb5),'description':'Optional\x20server-defined\x20job\x20status\x20filter'},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x1deb9b){const _0xc34316=a122_0x4bb7d2;readPaging(_0x1deb9b[_0xc34316(0xa0)](_0xc34316(0xa9),0x1),_0x1deb9b[_0xc34316(0xa0)](_0xc34316(0xb9),0xa));},async 'execute'(_0x1fcebe){const _0x3e0a9e=a122_0x4bb7d2,{currentPage:_0x571285,pageSize:_0x1a03bf}=readPaging(_0x1fcebe['num'](_0x3e0a9e(0xa9),0x1),_0x1fcebe[_0x3e0a9e(0xa0)]('page-size',0xa)),_0x1cbb57=_0x1fcebe[_0x3e0a9e(0xae)](_0x3e0a9e(0xbd))[_0x3e0a9e(0xbc)](),_0xeb14ca=await listDeploymentMetadataSyncJobs({'appCode':_0x1fcebe['appCode'],'currentPage':_0x571285,'pageSize':_0x1a03bf,..._0x1cbb57?{'status':_0x1cbb57}:{}});return{'ok':!![],'data':{'appCode':_0x1fcebe[_0x3e0a9e(0xa2)],..._0xeb14ca},'message':_0x3e0a9e(0xaa)+_0xeb14ca['items']['length']+_0x3e0a9e(0x9e)};}};function readPaging(_0x2902bd,_0x1988c2){const _0x4f075e=a122_0x4bb7d2;if(!Number[_0x4f075e(0xa5)](_0x2902bd)||_0x2902bd<0x1)throw CliErrors[_0x4f075e(0xac)](_0x4f075e(0xa8));if(!Number[_0x4f075e(0xa5)](_0x1988c2)||_0x1988c2<0x1||_0x1988c2>0x64)throw CliErrors[_0x4f075e(0xac)](_0x4f075e(0x9f));return{'currentPage':_0x2902bd,'pageSize':_0x1988c2};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a123_0x40ab11=a123_0x32af;(function(_0x311871,_0x37fb60){const _0x59d0f7=a123_0x32af,_0x49212f=_0x311871();while(!![]){try{const _0x12f38a=-parseInt(_0x59d0f7(0xbe))/0x1*(-parseInt(_0x59d0f7(0xc1))/0x2)+parseInt(_0x59d0f7(0xc9))/0x3*(parseInt(_0x59d0f7(0xd3))/0x4)+-parseInt(_0x59d0f7(0xc3))/0x5+parseInt(_0x59d0f7(0xb9))/0x6+parseInt(_0x59d0f7(0xd0))/0x7*(parseInt(_0x59d0f7(0xb3))/0x8)+-parseInt(_0x59d0f7(0xcf))/0x9*(-parseInt(_0x59d0f7(0xc0))/0xa)+-parseInt(_0x59d0f7(0xd6))/0xb;if(_0x12f38a===_0x37fb60)break;else _0x49212f['push'](_0x49212f['shift']());}catch(_0x2dcdf0){_0x49212f['push'](_0x49212f['shift']());}}}(a123_0x203d,0xa295b));function a123_0x32af(_0x575191,_0x218df3){_0x575191=_0x575191-0xb1;const _0x203d07=a123_0x203d();let _0x32af79=_0x203d07[_0x575191];return _0x32af79;}import{getDeploymentMetadataSyncStatus}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const TERMINAL_STATUSES=new Set([a123_0x40ab11(0xbd),a123_0x40ab11(0xb7),a123_0x40ab11(0xcc)]),ACTIVE_STATUSES=new Set(['PENDING',a123_0x40ab11(0xbf)]);export const deploymentSyncStatus={'service':'deployment','command':'sync-status','description':a123_0x40ab11(0xc4),'risk':a123_0x40ab11(0xc8),'requiresAppCode':!![],'strictFlags':!![],'structuredErrors':!![],'flags':[{'name':a123_0x40ab11(0xb2),'type':a123_0x40ab11(0xd1),'required':!![],'description':a123_0x40ab11(0xd5)}],async 'validate'(_0x2e3502){const _0x503893=a123_0x40ab11;readJobId(_0x2e3502[_0x503893(0xce)]('job-id'));},async 'execute'(_0x313599){const _0x206864=a123_0x40ab11,_0x3c9586=readJobId(_0x313599[_0x206864(0xce)](_0x206864(0xb2))),_0x15babd=await getDeploymentMetadataSyncStatus({'jobId':_0x3c9586,'appCode':_0x313599[_0x206864(0xcb)]}),_0x309826=TERMINAL_STATUSES['has'](_0x15babd[_0x206864(0xc2)])?!![]:ACTIVE_STATUSES[_0x206864(0xbb)](_0x15babd['status'])?![]:null,_0x3bf823=countBy(_0x15babd[_0x206864(0xc6)][_0x206864(0xb6)](_0x206b4d=>_0x206b4d[_0x206864(0xc7)])),_0x5289f4=countBy(_0x15babd['results']['map'](_0x347fd1=>_0x347fd1['action'])),_0x14aeaf=_0x309826===null?[_0x206864(0xb4)+_0x15babd[_0x206864(0xc2)]+_0x206864(0xb1)]:[];return{'ok':!![],'data':{'job':_0x15babd,'isTerminal':_0x309826,'summary':{'total':_0x15babd['results'][_0x206864(0xba)],'failed':_0x15babd[_0x206864(0xc6)][_0x206864(0xb8)](_0x151fa1=>_0x151fa1[_0x206864(0xc5)]===_0x206864(0xcc))[_0x206864(0xba)],'byBizType':_0x3bf823,'byAction':_0x5289f4},'warnings':_0x14aeaf},'message':_0x206864(0xb5)+_0x3c9586+_0x206864(0xcd)+_0x15babd[_0x206864(0xc2)]+'.'};}};function readJobId(_0x26d566){const _0x55ec54=a123_0x40ab11;if(!Number[_0x55ec54(0xbc)](_0x26d566)||_0x26d566<=0x0)throw CliErrors[_0x55ec54(0xd4)](_0x55ec54(0xca));return _0x26d566;}function a123_0x203d(){const _0x187f31=['appCode','FAILED','\x20is\x20','num','442521IEwqpJ','77bLctCz','number','reduce','39388EMrYKF','validation','Deployment\x20synchronization\x20job\x20ID','24170861JkjVTT',';\x20terminal\x20state\x20is\x20unknown\x20to\x20this\x20CLI\x20version.','job-id','188792XIdahD','Preserved\x20server-defined\x20status\x20','Deployment\x20synchronization\x20job\x20','map','PARTIAL_SUCCESS','filter','5971140ZLhjxj','length','has','isSafeInteger','SUCCESS','7vztCiS','RUNNING','110TjjJSQ','185782SNtOOh','status','3181030PfgZGS','Get\x20application\x20deployment\x20synchronization\x20job\x20status','action','results','bizType','read','321ZVlasU','--job-id\x20must\x20be\x20a\x20positive\x20integer.'];a123_0x203d=function(){return _0x187f31;};return a123_0x203d();}function countBy(_0x433865){const _0x1acf93=a123_0x40ab11;return _0x433865[_0x1acf93(0xd2)]((_0x4dac90,_0x2a4f24)=>{return _0x4dac90[_0x2a4f24]=(_0x4dac90[_0x2a4f24]??0x0)+0x1,_0x4dac90;},{});}
|
package/lib/commands/doctor.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a124_0x26352e=a124_0x5c95;(function(_0x372a84,_0x1fa0e3){const _0x19bc06=a124_0x5c95,_0x4474a3=_0x372a84();while(!![]){try{const _0x5cadc3=-parseInt(_0x19bc06(0x191))/0x1+-parseInt(_0x19bc06(0x17f))/0x2+parseInt(_0x19bc06(0x166))/0x3+parseInt(_0x19bc06(0x122))/0x4+parseInt(_0x19bc06(0x148))/0x5*(parseInt(_0x19bc06(0x18e))/0x6)+parseInt(_0x19bc06(0x154))/0x7+-parseInt(_0x19bc06(0x12d))/0x8;if(_0x5cadc3===_0x1fa0e3)break;else _0x4474a3['push'](_0x4474a3['shift']());}catch(_0xf55d66){_0x4474a3['push'](_0x4474a3['shift']());}}}(a124_0x44b2,0x78bbe));function a124_0x5c95(_0x2ffd1c,_0x296b32){_0x2ffd1c=_0x2ffd1c-0x10d;const _0x44b21b=a124_0x44b2();let _0x5c95c1=_0x44b21b[_0x2ffd1c];return _0x5c95c1;}import a124_0x37bfd6 from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';import{getActiveRegion,getApiDomain,getAppDomain,getKbDomain,getKbServiceDomain,getSkillDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';function a124_0x44b2(){const _0x760509=['\x20\x20\x20\x20appcode:\x20\x20\x20\x20','locale','\x20\x20Installed\x20Path:\x20\x20','\x20+\x20','\x20\x20Repair\x20global:\x20\x20\x20\x20','current','\x20\x20kbServiceDomain:\x20','5373352SkMNKE','present','(none)','\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','green','(set\x20via\x20file,\x20length=','defaultApp','\x20(default)','globalConfig','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','(set,\x20length=','verbose','length','\x20\x20Repair\x20project:\x20\x20','prototype','\x20\x20Config\x20JSON','\x20\x20app\x20locale:\x20\x20\x20\x20\x20\x20','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','value','project','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','region','default','accessKey','\x20\x20skillDomain:\x20\x20\x20\x20\x20','\x20config\x20delete\x20routing\x20--global','5VcScSM','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','⚠\x20Empty\x20(treated\x20as\x20{})','skillVersion','\x20\x20Config\x20Files','platform','\x20\x20Legacy\x20inherit:\x20\x20\x20','bold','riskLevel','✗\x20Invalid','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','(missing)','1100043REWEGv','(no\x20file)','cookie','object','toLowerCase','hasOwnProperty','✗\x20Expired','(default:\x20','\x20\x20─','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','currentApp','repairCommand','read','(not\x20set)','state','\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20explicitAppName:\x20','log','2962527lMwcnv','regionConfiguredValue','projectConfig','\x20config\x20delete\x20routing','push','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','padEnd','ignored\x20in\x20','\x20config','source','env','apps','\x20(invalid)','\x20\x20Merged\x20Config','repeat','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Routing\x20Configuration','empty','call','message','entries','global','\x20\x20Repair\x20project:\x20\x20\x20','✗\x20Invalid\x20','\x20\x20Built-in\x20Skill','1389910GvBDKY','pageSize','missing','doctor','(unknown)','join','Set\x20apps.','slice','null','✓\x20Valid\x20JSON','version','.region\x20to\x20cn\x20or\x20id\x20in\x20','\x20←\x20current','label','appCode','4516176EToIRr','\x20doctor','\x20\x20Repair\x20global:\x20\x20\x20','451490eUKejA','routing','Project','yellow','Global','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','✗\x20Not\x20logged\x20in','status','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20config\x20delete\x20inherit','packageVersion','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','filter','inherit','includes','apiDir','gray','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20app\x20\x22','string','red','(not\x20found)','Repair\x20','\x20config\x20delete\x20region','reason','check','\x20\x20Auth','raw','1661144wAVxZq','format','\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'];a124_0x44b2=function(){return _0x760509;};return a124_0x44b2();}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(_0x417de2){const _0x257ae1=a124_0x5c95;return typeof _0x417de2===_0x257ae1(0x119)?JSON['stringify'](_0x417de2):'<'+(_0x417de2===null?_0x257ae1(0x187):typeof _0x417de2)+'>';}async function execute(_0x12d585){const _0x7e18c1=a124_0x5c95,_0x5ce03c=GIT_COMMIT!=='unknown'?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x7e18c1(0x186)](0x0,0xa)+')':VERSION,_0x4ffc40=buildConfigFromFlags({}),_0x5a8b4b=getCookie();let _0x4b4bef;try{await initGlobalEnvironment(_0x4ffc40);}catch(_0x269fb9){_0x4b4bef=_0x269fb9 instanceof Error?_0x269fb9:new Error(String(_0x269fb9));}console[_0x7e18c1(0x165)](),console[_0x7e18c1(0x165)](a124_0x37bfd6[_0x7e18c1(0x14f)](CLI_BIN_NAME+_0x7e18c1(0x18f))),console[_0x7e18c1(0x165)](a124_0x37bfd6[_0x7e18c1(0x116)]('─'[_0x7e18c1(0x174)](0x32))),console[_0x7e18c1(0x165)](_0x7e18c1(0x15d)+_0x5ce03c),console['log']('\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+process[_0x7e18c1(0x189)]),console[_0x7e18c1(0x165)]('\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20'+process[_0x7e18c1(0x14d)]+'\x20'+process['arch']);const _0x34d812=inspectBuiltinSkill();console[_0x7e18c1(0x165)](),console[_0x7e18c1(0x165)](a124_0x37bfd6[_0x7e18c1(0x14f)](_0x7e18c1(0x17e))),console[_0x7e18c1(0x165)](a124_0x37bfd6['gray']('\x20\x20─'[_0x7e18c1(0x174)](0x1e)));const _0x7c4011=_0x34d812[_0x7e18c1(0x162)]===_0x7e18c1(0x12b)?a124_0x37bfd6[_0x7e18c1(0x132)]('✓\x20'+_0x34d812['state']):a124_0x37bfd6[_0x7e18c1(0x11a)]('✗\x20'+_0x34d812[_0x7e18c1(0x162)]);console['log'](_0x7e18c1(0x124)+_0x7c4011),console[_0x7e18c1(0x165)]('\x20\x20Package\x20Version:\x20'+_0x34d812[_0x7e18c1(0x110)]),console[_0x7e18c1(0x165)]('\x20\x20Skill\x20Version:\x20\x20\x20'+(_0x34d812[_0x7e18c1(0x14b)]||a124_0x37bfd6[_0x7e18c1(0x116)](_0x7e18c1(0x183)))),console[_0x7e18c1(0x165)](_0x7e18c1(0x128)+(_0x34d812['installedPath']||a124_0x37bfd6[_0x7e18c1(0x116)](_0x7e18c1(0x11b))));if(_0x34d812[_0x7e18c1(0x11e)])console[_0x7e18c1(0x165)](_0x7e18c1(0x163)+_0x34d812[_0x7e18c1(0x11e)]);_0x34d812['state']!=='current'&&console[_0x7e18c1(0x165)]('\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x34d812[_0x7e18c1(0x15f)]);console[_0x7e18c1(0x165)](),console[_0x7e18c1(0x165)](a124_0x37bfd6[_0x7e18c1(0x14f)](_0x7e18c1(0x14c))),console[_0x7e18c1(0x165)](a124_0x37bfd6[_0x7e18c1(0x116)]('\x20\x20─'[_0x7e18c1(0x174)](0x1e)));const _0x952fcd=getGlobalConfigPath(),_0xc3a3b7=getProjectConfigPath();console['log'](_0x7e18c1(0x117)+(_0x952fcd||a124_0x37bfd6[_0x7e18c1(0x116)]('(not\x20found)'))),console[_0x7e18c1(0x165)](_0x7e18c1(0x10e)+(_0xc3a3b7||a124_0x37bfd6[_0x7e18c1(0x116)](_0x7e18c1(0x11b)))),console[_0x7e18c1(0x165)](),console['log'](a124_0x37bfd6['bold'](_0x7e18c1(0x13d))),console[_0x7e18c1(0x165)](a124_0x37bfd6[_0x7e18c1(0x116)](_0x7e18c1(0x15c)['repeat'](0x1e)));const _0x118936=(_0x41725d,_0x35c162)=>{const _0x4adc59=_0x7e18c1;if(!_0x35c162){console['log']('\x20\x20'+_0x41725d[_0x4adc59(0x16c)](0x11)+'\x20'+a124_0x37bfd6[_0x4adc59(0x116)](_0x4adc59(0x155)));return;}const _0x1acc32=inspectCliConfigJsonFile(_0x35c162);if(_0x1acc32[_0x4adc59(0x10d)]==='ok')console[_0x4adc59(0x165)]('\x20\x20'+_0x41725d[_0x4adc59(0x16c)](0x11)+'\x20'+a124_0x37bfd6[_0x4adc59(0x132)](_0x4adc59(0x188)));else{if(_0x1acc32['status']===_0x4adc59(0x177))console[_0x4adc59(0x165)]('\x20\x20'+_0x41725d[_0x4adc59(0x16c)](0x11)+'\x20'+a124_0x37bfd6[_0x4adc59(0x194)](_0x4adc59(0x14a)));else _0x1acc32[_0x4adc59(0x10d)]===_0x4adc59(0x181)?console[_0x4adc59(0x165)]('\x20\x20'+_0x41725d[_0x4adc59(0x16c)](0x11)+'\x20'+a124_0x37bfd6[_0x4adc59(0x116)](_0x4adc59(0x153))):(console[_0x4adc59(0x165)]('\x20\x20'+_0x41725d[_0x4adc59(0x16c)](0x11)+'\x20'+a124_0x37bfd6[_0x4adc59(0x11a)]('✗\x20Invalid\x20JSON')),console['log']('\x20\x20'+''[_0x4adc59(0x16c)](0x11)+'\x20'+a124_0x37bfd6[_0x4adc59(0x11a)](_0x1acc32[_0x4adc59(0x179)])));}};_0x118936(_0x7e18c1(0x195),_0x952fcd),_0x118936(_0x7e18c1(0x193),_0xc3a3b7);const _0x409d51=loadRawConfigLayers(),_0x399b9e=[{'label':_0x7e18c1(0x193),'value':_0x409d51[_0x7e18c1(0x168)][_0x7e18c1(0x143)],'present':Object[_0x7e18c1(0x13c)][_0x7e18c1(0x159)]['call'](_0x409d51[_0x7e18c1(0x168)],_0x7e18c1(0x143)),'repairCommand':CLI_BIN_NAME+_0x7e18c1(0x11d)},{'label':'Global','value':_0x409d51[_0x7e18c1(0x136)][_0x7e18c1(0x143)],'present':Object[_0x7e18c1(0x13c)][_0x7e18c1(0x159)]['call'](_0x409d51['globalConfig'],'region'),'repairCommand':CLI_BIN_NAME+'\x20config\x20delete\x20region\x20--global'}][_0x7e18c1(0x112)](_0xf68f0a=>_0xf68f0a[_0x7e18c1(0x12e)]&&isInvalidLovrabetRegion(_0xf68f0a['value']));for(const [_0x59fedf,_0x12df32]of[[_0x7e18c1(0x193),_0x409d51[_0x7e18c1(0x168)]],[_0x7e18c1(0x195),_0x409d51[_0x7e18c1(0x136)]]]){const _0x3cfa32=_0x12df32['apps']&&typeof _0x12df32[_0x7e18c1(0x171)]===_0x7e18c1(0x157)?_0x12df32[_0x7e18c1(0x171)]:{};for(const [_0x14b336,_0x106e0c]of Object[_0x7e18c1(0x17a)](_0x3cfa32)){if(!_0x106e0c||typeof _0x106e0c!==_0x7e18c1(0x157)||!Object['prototype']['hasOwnProperty'][_0x7e18c1(0x178)](_0x106e0c,_0x7e18c1(0x143)))continue;isInvalidLovrabetRegion(_0x106e0c[_0x7e18c1(0x143)])&&_0x399b9e[_0x7e18c1(0x16a)]({'label':_0x59fedf+_0x7e18c1(0x118)+_0x14b336+'\x22','value':_0x106e0c['region'],'present':!![],'repairCommand':_0x7e18c1(0x185)+_0x14b336+_0x7e18c1(0x18a)+_0x59fedf[_0x7e18c1(0x158)]()+_0x7e18c1(0x16e)});}}if(_0x399b9e[_0x7e18c1(0x13a)]>0x0){console[_0x7e18c1(0x165)](),console[_0x7e18c1(0x165)](a124_0x37bfd6['bold']('\x20\x20Country/Region\x20Configuration')),console[_0x7e18c1(0x165)](a124_0x37bfd6[_0x7e18c1(0x116)](_0x7e18c1(0x15c)[_0x7e18c1(0x174)](0x1e)));for(const _0x33c81d of _0x399b9e){console['log']('\x20\x20'+_0x33c81d['label'][_0x7e18c1(0x16c)](0x11)+'\x20'+a124_0x37bfd6['red'](_0x7e18c1(0x17d)+describeRegionValue(_0x33c81d[_0x7e18c1(0x140)]))),console[_0x7e18c1(0x165)]('\x20\x20'+(_0x7e18c1(0x11c)+_0x33c81d[_0x7e18c1(0x18c)][_0x7e18c1(0x158)]()+':')['padEnd'](0x10)+'\x20'+_0x33c81d['repairCommand']);}}const _0x162eb5=[Object[_0x7e18c1(0x13c)][_0x7e18c1(0x159)][_0x7e18c1(0x178)](_0x409d51['globalConfig'],_0x7e18c1(0x113))?_0x7e18c1(0x17b):null,Object[_0x7e18c1(0x13c)]['hasOwnProperty']['call'](_0x409d51[_0x7e18c1(0x168)],'inherit')?_0x7e18c1(0x141):null]['filter'](Boolean);_0x162eb5[_0x7e18c1(0x13a)]>0x0&&(console[_0x7e18c1(0x165)](_0x7e18c1(0x14e)+a124_0x37bfd6[_0x7e18c1(0x194)](_0x7e18c1(0x16d)+_0x162eb5[_0x7e18c1(0x184)](_0x7e18c1(0x129))+'\x20config')),_0x162eb5[_0x7e18c1(0x114)](_0x7e18c1(0x141))&&console[_0x7e18c1(0x165)](_0x7e18c1(0x17c)+CLI_BIN_NAME+_0x7e18c1(0x10f)),_0x162eb5[_0x7e18c1(0x114)](_0x7e18c1(0x17b))&&console[_0x7e18c1(0x165)](_0x7e18c1(0x12a)+CLI_BIN_NAME+'\x20config\x20delete\x20inherit\x20--global'));const _0x1f84cd=isInvalidLovrabetRegion(_0x4ffc40[_0x7e18c1(0x167)]??_0x4ffc40['raw']?.[_0x7e18c1(0x143)]);_0x4b4bef&&!_0x1f84cd&&(console[_0x7e18c1(0x165)](),console[_0x7e18c1(0x165)](a124_0x37bfd6[_0x7e18c1(0x14f)](_0x7e18c1(0x176))),console[_0x7e18c1(0x165)](a124_0x37bfd6[_0x7e18c1(0x116)]('\x20\x20─'['repeat'](0x1e))),console[_0x7e18c1(0x165)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a124_0x37bfd6[_0x7e18c1(0x11a)](_0x7e18c1(0x151))),console[_0x7e18c1(0x165)](_0x7e18c1(0x163)+_0x4b4bef[_0x7e18c1(0x179)]),Object[_0x7e18c1(0x13c)][_0x7e18c1(0x159)][_0x7e18c1(0x178)](_0x409d51['projectConfig'],_0x7e18c1(0x192))&&console[_0x7e18c1(0x165)](_0x7e18c1(0x13b)+CLI_BIN_NAME+_0x7e18c1(0x169)),Object[_0x7e18c1(0x13c)]['hasOwnProperty'][_0x7e18c1(0x178)](_0x409d51[_0x7e18c1(0x136)],_0x7e18c1(0x192))&&console[_0x7e18c1(0x165)](_0x7e18c1(0x190)+CLI_BIN_NAME+_0x7e18c1(0x147)));console[_0x7e18c1(0x165)](),console[_0x7e18c1(0x165)](a124_0x37bfd6[_0x7e18c1(0x14f)](_0x7e18c1(0x173))),console['log'](a124_0x37bfd6[_0x7e18c1(0x116)](_0x7e18c1(0x15c)[_0x7e18c1(0x174)](0x1e))),console[_0x7e18c1(0x165)](_0x7e18c1(0x175)+(_0x4ffc40[_0x7e18c1(0x18d)]||a124_0x37bfd6[_0x7e18c1(0x11a)](_0x7e18c1(0x161))));const _0x7ff519=_0x1f84cd?a124_0x37bfd6[_0x7e18c1(0x11a)](describeRegionValue(_0x4ffc40[_0x7e18c1(0x167)]??_0x4ffc40[_0x7e18c1(0x121)]?.[_0x7e18c1(0x143)])+_0x7e18c1(0x172)):(_0x4ffc40[_0x7e18c1(0x143)]??DEFAULT_LOVRABET_REGION)+'\x20('+(_0x4ffc40['regionSource']??_0x7e18c1(0x144))+')';console[_0x7e18c1(0x165)]('\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x7ff519),console[_0x7e18c1(0x165)](_0x7e18c1(0x125)+_0x4ffc40[_0x7e18c1(0x170)]),console[_0x7e18c1(0x165)](_0x7e18c1(0x13e)+_0x4ffc40[_0x7e18c1(0x127)]),console['log'](_0x7e18c1(0x16b)+_0x4ffc40[_0x7e18c1(0x115)]),console[_0x7e18c1(0x165)](_0x7e18c1(0x142)+(_0x4ffc40[_0x7e18c1(0x134)]||a124_0x37bfd6[_0x7e18c1(0x116)](_0x7e18c1(0x12f)))),console[_0x7e18c1(0x165)]('\x20\x20currentApp:\x20\x20\x20\x20\x20\x20'+(_0x4ffc40[_0x7e18c1(0x15e)]||a124_0x37bfd6[_0x7e18c1(0x116)](_0x7e18c1(0x12f)))),console[_0x7e18c1(0x165)](_0x7e18c1(0x164)+(_0x4ffc40['explicitAppName']||a124_0x37bfd6['gray'](_0x7e18c1(0x12f)))),console[_0x7e18c1(0x165)]('\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x4ffc40[_0x7e18c1(0x123)]||a124_0x37bfd6[_0x7e18c1(0x116)](_0x7e18c1(0x15b)+DEFAULT_CONFIG_VALUES[_0x7e18c1(0x123)]+')'))),console[_0x7e18c1(0x165)]('\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x4ffc40[_0x7e18c1(0x180)]??a124_0x37bfd6[_0x7e18c1(0x116)]('(default)'))),console[_0x7e18c1(0x165)](_0x7e18c1(0x149)+_0x4ffc40[_0x7e18c1(0x150)]),console['log'](_0x7e18c1(0x111)+_0x4ffc40[_0x7e18c1(0x139)]),console[_0x7e18c1(0x165)](_0x7e18c1(0x196)+(_0x4ffc40[_0x7e18c1(0x156)]?a124_0x37bfd6[_0x7e18c1(0x132)]('(set,\x20length='+_0x4ffc40[_0x7e18c1(0x156)][_0x7e18c1(0x13a)]+')'):_0x5a8b4b?a124_0x37bfd6[_0x7e18c1(0x132)](_0x7e18c1(0x133)+_0x5a8b4b[_0x7e18c1(0x13a)]+')'):a124_0x37bfd6[_0x7e18c1(0x116)](_0x7e18c1(0x12f))));const _0x13feda=Object['keys'](_0x4ffc40[_0x7e18c1(0x171)]);if(_0x13feda[_0x7e18c1(0x13a)]>0x0){console[_0x7e18c1(0x165)](),console['log'](a124_0x37bfd6[_0x7e18c1(0x14f)]('\x20\x20Apps')),console['log'](a124_0x37bfd6[_0x7e18c1(0x116)](_0x7e18c1(0x15c)[_0x7e18c1(0x174)](0x1e)));for(const _0x5c98ea of _0x13feda){const _0x27308d=_0x4ffc40['apps'][_0x5c98ea],_0xe1c023=_0x5c98ea===_0x4ffc40['defaultApp'],_0xb3105e=_0x5c98ea===_0x4ffc40['currentApp'],_0x11574e=_0xb3105e?a124_0x37bfd6['green'](_0x7e18c1(0x18b)):'',_0x37c7bf=_0xe1c023?_0x7e18c1(0x135):'';console[_0x7e18c1(0x165)]('\x20\x20'+_0x5c98ea+_0x37c7bf+_0x11574e),console[_0x7e18c1(0x165)](_0x7e18c1(0x126)+_0x27308d['appcode']);const _0x4bd6c2=_0x409d51[_0x7e18c1(0x168)][_0x7e18c1(0x171)]&&typeof _0x409d51[_0x7e18c1(0x168)][_0x7e18c1(0x171)]==='object'?_0x409d51[_0x7e18c1(0x168)][_0x7e18c1(0x171)]:{},_0x16b538=Object[_0x7e18c1(0x13c)]['hasOwnProperty'][_0x7e18c1(0x178)](_0x4bd6c2,_0x5c98ea),_0xfcb641=isInvalidLovrabetRegion(_0x27308d[_0x7e18c1(0x143)])?{'region':_0x4ffc40[_0x7e18c1(0x143)]??DEFAULT_LOVRABET_REGION}:resolveEffectiveRegion({'appRegion':_0x27308d[_0x7e18c1(0x143)],'projectRegion':_0x16b538?_0x409d51[_0x7e18c1(0x168)][_0x7e18c1(0x143)]:undefined,'globalRegion':_0x409d51[_0x7e18c1(0x136)][_0x7e18c1(0x143)],'mergedRegion':_0x4ffc40['raw'][_0x7e18c1(0x143)],'appName':_0x5c98ea}),_0x2d9935=buildAppDoctorFields(_0x27308d,{'region':_0xfcb641[_0x7e18c1(0x143)],'env':_0x4ffc40[_0x7e18c1(0x170)],'apiDir':_0x4ffc40[_0x7e18c1(0x121)][_0x7e18c1(0x115)]||DEFAULT_CONFIG_VALUES[_0x7e18c1(0x115)],'cookie':_0x4ffc40['cookie']||_0x5a8b4b||undefined,'accessKey':_0x4ffc40['accessKey']});console['log']('\x20\x20\x20\x20region:\x20\x20\x20\x20\x20'+_0x2d9935[_0x7e18c1(0x143)][_0x7e18c1(0x140)]+'\x20\x20'+a124_0x37bfd6[_0x7e18c1(0x116)]('('+_0x2d9935[_0x7e18c1(0x143)][_0x7e18c1(0x16f)]+')')),console['log'](_0x7e18c1(0x137)+_0x2d9935[_0x7e18c1(0x170)][_0x7e18c1(0x140)]+'\x20\x20'+a124_0x37bfd6['gray']('('+_0x2d9935[_0x7e18c1(0x170)]['source']+')')),console['log'](_0x7e18c1(0x152)+_0x2d9935['apiDir']['value']+'\x20\x20'+a124_0x37bfd6[_0x7e18c1(0x116)]('('+_0x2d9935[_0x7e18c1(0x115)][_0x7e18c1(0x16f)]+')'));const _0x13c7e8=_0x2d9935[_0x7e18c1(0x156)][_0x7e18c1(0x140)]?a124_0x37bfd6['green'](_0x7e18c1(0x138)+_0x2d9935[_0x7e18c1(0x156)][_0x7e18c1(0x140)]['length']+')'):a124_0x37bfd6[_0x7e18c1(0x116)](_0x7e18c1(0x12f));console[_0x7e18c1(0x165)]('\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20'+_0x13c7e8+'\x20\x20'+a124_0x37bfd6[_0x7e18c1(0x116)]('('+_0x2d9935[_0x7e18c1(0x156)][_0x7e18c1(0x16f)]+')'));const _0xed62d1=_0x2d9935[_0x7e18c1(0x145)]['value']?a124_0x37bfd6[_0x7e18c1(0x132)](_0x7e18c1(0x138)+_0x2d9935['accessKey'][_0x7e18c1(0x140)]['length']+')'):a124_0x37bfd6[_0x7e18c1(0x116)](_0x7e18c1(0x12f));console[_0x7e18c1(0x165)]('\x20\x20\x20\x20accessKey:\x20\x20'+_0xed62d1+'\x20\x20'+a124_0x37bfd6['gray']('('+_0x2d9935['accessKey'][_0x7e18c1(0x16f)]+')'));}}console[_0x7e18c1(0x165)](),console['log'](a124_0x37bfd6['bold']('\x20\x20API\x20Endpoints')),console['log'](a124_0x37bfd6[_0x7e18c1(0x116)](_0x7e18c1(0x15c)[_0x7e18c1(0x174)](0x1e)));_0x4b4bef?console['log'](_0x7e18c1(0x13f)+a124_0x37bfd6[_0x7e18c1(0x11a)]('Unavailable\x20until\x20routing\x20configuration\x20is\x20repaired')):(console[_0x7e18c1(0x165)](_0x7e18c1(0x130)+getActiveRegion()),console[_0x7e18c1(0x165)]('\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20'+getApiDomain()),console[_0x7e18c1(0x165)]('\x20\x20userDomain:\x20\x20\x20\x20\x20\x20'+getUserDomain()),console[_0x7e18c1(0x165)]('\x20\x20runtimeDomain:\x20\x20\x20'+getRuntimeDomain()),console[_0x7e18c1(0x165)](_0x7e18c1(0x146)+getSkillDomain()),console['log']('\x20\x20kbDomain:\x20\x20\x20\x20\x20\x20\x20\x20'+getKbDomain()),console[_0x7e18c1(0x165)](_0x7e18c1(0x12c)+(getKbServiceDomain()??'not\x20configured')),console['log']('\x20\x20appDomain:\x20\x20\x20\x20\x20\x20\x20'+getAppDomain()));console[_0x7e18c1(0x165)](),console['log'](a124_0x37bfd6[_0x7e18c1(0x14f)](_0x7e18c1(0x120))),console[_0x7e18c1(0x165)](a124_0x37bfd6[_0x7e18c1(0x116)](_0x7e18c1(0x15c)[_0x7e18c1(0x174)](0x1e)));if(_0x4b4bef)console[_0x7e18c1(0x165)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a124_0x37bfd6[_0x7e18c1(0x194)]('Not\x20checked\x20until\x20routing\x20configuration\x20is\x20repaired'));else{if(_0x5a8b4b){const _0x56e8c3=await getIsSessionValid();console[_0x7e18c1(0x165)](_0x7e18c1(0x13f)+(_0x56e8c3?a124_0x37bfd6[_0x7e18c1(0x132)]('✓\x20Valid'):a124_0x37bfd6['red'](_0x7e18c1(0x15a))));}else console[_0x7e18c1(0x165)](_0x7e18c1(0x13f)+a124_0x37bfd6[_0x7e18c1(0x11a)](_0x7e18c1(0x197)));}return console[_0x7e18c1(0x165)](),{'ok':!![]};}export const doctorDefinition={'service':a124_0x26352e(0x182),'command':a124_0x26352e(0x11f),'description':a124_0x26352e(0x131),'risk':a124_0x26352e(0x160),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
|
|
1
|
+
const a124_0x193295=a124_0x3d61;(function(_0xafbd90,_0x41f889){const _0x12aa3a=a124_0x3d61,_0x59847e=_0xafbd90();while(!![]){try{const _0x3f910c=parseInt(_0x12aa3a(0x1ca))/0x1*(parseInt(_0x12aa3a(0x1cd))/0x2)+parseInt(_0x12aa3a(0x1eb))/0x3+-parseInt(_0x12aa3a(0x236))/0x4+parseInt(_0x12aa3a(0x1d8))/0x5*(-parseInt(_0x12aa3a(0x215))/0x6)+-parseInt(_0x12aa3a(0x23a))/0x7+-parseInt(_0x12aa3a(0x1dc))/0x8+-parseInt(_0x12aa3a(0x22f))/0x9*(-parseInt(_0x12aa3a(0x21f))/0xa);if(_0x3f910c===_0x41f889)break;else _0x59847e['push'](_0x59847e['shift']());}catch(_0x3181a7){_0x59847e['push'](_0x59847e['shift']());}}}(a124_0x3704,0x7ef71));import a124_0x352d0f from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';import{getActiveRegion,getApiDomain,getAppDomain,getKbDomain,getKbServiceDomain,getSkillDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags,initGlobalEnvironment,inspectCliConfigJsonFile,loadRawConfigLayers}from'../context.js';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';function a124_0x3d61(_0x4229d0,_0x924d9e){_0x4229d0=_0x4229d0-0x1c0;const _0x3704d9=a124_0x3704();let _0x3d6119=_0x3704d9[_0x4229d0];return _0x3d6119;}import{inspectBuiltinSkill}from'../skills/builtin-skill.js';import{DEFAULT_LOVRABET_REGION,isInvalidLovrabetRegion}from'../constant/region.js';function a124_0x3704(){const _0x4fea33=['\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Country/Region\x20Configuration','\x20\x20Routing\x20Configuration','pageSize','Global','toLowerCase','✗\x20Invalid\x20','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','defaultApp','bold','(unknown)','green','\x20\x20Merged\x20Config','appcode','default','check','Set\x20apps.','entries','doctor','\x20\x20kbDomain:\x20\x20\x20\x20\x20\x20\x20\x20','locale','keys','stringify','yellow','39351mdyYxK','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','currentApp','18uJfGno','(not\x20set)','\x20\x20\x20\x20accessKey:\x20\x20','status','(set,\x20length=','\x20\x20runtimeDomain:\x20\x20\x20','padEnd','env','explicitAppName','\x20\x20─','Unavailable\x20until\x20routing\x20configuration\x20is\x20repaired','4725lOcYxl','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','riskLevel','✗\x20Invalid','1992112Deyxtm','\x20\x20appDomain:\x20\x20\x20\x20\x20\x20\x20','globalConfig','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Legacy\x20inherit:\x20\x20\x20','apps','\x20\x20Package\x20Version:\x20','object','\x20\x20\x20\x20region:\x20\x20\x20\x20\x20','state','\x20config','raw','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20(default)','repeat','1561095NlGEnh','\x20←\x20current','projectConfig','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','source','(none)','arch','length','current','accessKey','prototype','✓\x20Valid\x20JSON','✗\x20Invalid\x20JSON','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','\x20\x20Apps','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','present','appCode','hasOwnProperty','reason','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','routing','\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','unknown','Project','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','cookie','\x20config\x20delete\x20inherit','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','call','gray','\x20\x20Skill\x20Version:\x20\x20\x20','.region\x20to\x20cn\x20or\x20id\x20in\x20','(missing)','\x20doctor','includes','✗\x20Not\x20logged\x20in','\x20app\x20\x22','\x20\x20app\x20locale:\x20\x20\x20\x20\x20\x20','\x20\x20kbServiceDomain:\x20','\x20\x20Installed\x20Path:\x20\x20','\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','3342aFBuBt','filter','slice','regionConfiguredValue','\x20\x20Repair\x20project:\x20\x20','format','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','skillVersion','push','log','18549460XbCsUJ','Repair\x20','ignored\x20in\x20','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','Not\x20checked\x20until\x20routing\x20configuration\x20is\x20repaired','apiDir','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','region','\x20\x20explicitAppName:\x20','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','red','(not\x20found)','(default:\x20','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','inherit','\x20\x20Repair\x20project:\x20\x20\x20','9HwFzSU','platform','\x20\x20Repair\x20global:\x20\x20\x20','\x20config\x20delete\x20routing\x20--global','\x20\x20Repair\x20global:\x20\x20\x20\x20','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20+\x20','2167884MMaSPA','\x20\x20skillDomain:\x20\x20\x20\x20\x20','value','label','6244497qzWfHa','global','\x20\x20API\x20Endpoints','installedPath','(no\x20file)','\x20(invalid)','null','\x20\x20Auth','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','missing','project'];a124_0x3704=function(){return _0x4fea33;};return a124_0x3704();}function describeRegionValue(_0x3d0e4b){const _0xec4090=a124_0x3d61;return typeof _0x3d0e4b==='string'?JSON[_0xec4090(0x1c8)](_0x3d0e4b):'<'+(_0x3d0e4b===null?_0xec4090(0x240):typeof _0x3d0e4b)+'>';}async function execute(_0x5daafe){const _0x8605f8=a124_0x3d61,_0x292ea1=GIT_COMMIT!==_0x8605f8(0x202)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x8605f8(0x217)](0x0,0xa)+')':VERSION,_0x4625b8=buildConfigFromFlags({}),_0x6382e7=getCookie();let _0x2d0a6a;try{await initGlobalEnvironment(_0x4625b8);}catch(_0x5454fc){_0x2d0a6a=_0x5454fc instanceof Error?_0x5454fc:new Error(String(_0x5454fc));}console[_0x8605f8(0x21e)](),console['log'](a124_0x352d0f[_0x8605f8(0x24f)](CLI_BIN_NAME+_0x8605f8(0x20d))),console[_0x8605f8(0x21e)](a124_0x352d0f[_0x8605f8(0x209)]('─'['repeat'](0x32))),console[_0x8605f8(0x21e)](_0x8605f8(0x207)+_0x292ea1),console[_0x8605f8(0x21e)]('\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+process['version']),console['log'](_0x8605f8(0x21b)+process[_0x8605f8(0x230)]+'\x20'+process[_0x8605f8(0x1f1)]);const _0x514cad=inspectBuiltinSkill();console[_0x8605f8(0x21e)](),console['log'](a124_0x352d0f[_0x8605f8(0x24f)]('\x20\x20Built-in\x20Skill')),console[_0x8605f8(0x21e)](a124_0x352d0f['gray'](_0x8605f8(0x1d6)['repeat'](0x1e)));const _0x2b14e6=_0x514cad['state']===_0x8605f8(0x1f3)?a124_0x352d0f[_0x8605f8(0x251)]('✓\x20'+_0x514cad['state']):a124_0x352d0f[_0x8605f8(0x229)]('✗\x20'+_0x514cad['state']);console['log'](_0x8605f8(0x246)+_0x2b14e6),console[_0x8605f8(0x21e)](_0x8605f8(0x1e2)+_0x514cad['packageVersion']),console[_0x8605f8(0x21e)](_0x8605f8(0x20a)+(_0x514cad[_0x8605f8(0x21c)]||a124_0x352d0f[_0x8605f8(0x209)](_0x8605f8(0x250)))),console[_0x8605f8(0x21e)](_0x8605f8(0x213)+(_0x514cad[_0x8605f8(0x23d)]||a124_0x352d0f['gray'](_0x8605f8(0x22a))));if(_0x514cad[_0x8605f8(0x1fe)])console[_0x8605f8(0x21e)]('\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x514cad['reason']);_0x514cad[_0x8605f8(0x1e5)]!=='current'&&console[_0x8605f8(0x21e)]('\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x514cad['repairCommand']);console[_0x8605f8(0x21e)](),console[_0x8605f8(0x21e)](a124_0x352d0f[_0x8605f8(0x24f)]('\x20\x20Config\x20Files')),console['log'](a124_0x352d0f[_0x8605f8(0x209)](_0x8605f8(0x1d6)[_0x8605f8(0x1ea)](0x1e)));const _0x2b095f=getGlobalConfigPath(),_0x19247d=getProjectConfigPath();console['log'](_0x8605f8(0x234)+(_0x2b095f||a124_0x352d0f[_0x8605f8(0x209)](_0x8605f8(0x22a)))),console[_0x8605f8(0x21e)](_0x8605f8(0x1df)+(_0x19247d||a124_0x352d0f[_0x8605f8(0x209)](_0x8605f8(0x22a)))),console['log'](),console[_0x8605f8(0x21e)](a124_0x352d0f[_0x8605f8(0x24f)]('\x20\x20Config\x20JSON')),console[_0x8605f8(0x21e)](a124_0x352d0f['gray'](_0x8605f8(0x1d6)[_0x8605f8(0x1ea)](0x1e)));const _0x4d26df=(_0x1ce29a,_0x329daf)=>{const _0x4ac6ae=_0x8605f8;if(!_0x329daf){console['log']('\x20\x20'+_0x1ce29a['padEnd'](0x11)+'\x20'+a124_0x352d0f[_0x4ac6ae(0x209)](_0x4ac6ae(0x23e)));return;}const _0x10bf59=inspectCliConfigJsonFile(_0x329daf);if(_0x10bf59[_0x4ac6ae(0x1d0)]==='ok')console['log']('\x20\x20'+_0x1ce29a[_0x4ac6ae(0x1d3)](0x11)+'\x20'+a124_0x352d0f[_0x4ac6ae(0x251)](_0x4ac6ae(0x1f6)));else{if(_0x10bf59['status']==='empty')console[_0x4ac6ae(0x21e)]('\x20\x20'+_0x1ce29a['padEnd'](0x11)+'\x20'+a124_0x352d0f[_0x4ac6ae(0x1c9)]('⚠\x20Empty\x20(treated\x20as\x20{})'));else _0x10bf59[_0x4ac6ae(0x1d0)]===_0x4ac6ae(0x244)?console[_0x4ac6ae(0x21e)]('\x20\x20'+_0x1ce29a['padEnd'](0x11)+'\x20'+a124_0x352d0f['gray'](_0x4ac6ae(0x20c))):(console[_0x4ac6ae(0x21e)]('\x20\x20'+_0x1ce29a[_0x4ac6ae(0x1d3)](0x11)+'\x20'+a124_0x352d0f[_0x4ac6ae(0x229)](_0x4ac6ae(0x1f7))),console[_0x4ac6ae(0x21e)]('\x20\x20'+''[_0x4ac6ae(0x1d3)](0x11)+'\x20'+a124_0x352d0f[_0x4ac6ae(0x229)](_0x10bf59['message'])));}};_0x4d26df('Global',_0x2b095f),_0x4d26df('Project',_0x19247d);const _0x523817=loadRawConfigLayers(),_0x5908cf=[{'label':_0x8605f8(0x203),'value':_0x523817[_0x8605f8(0x1ed)][_0x8605f8(0x226)],'present':Object['prototype'][_0x8605f8(0x1fd)]['call'](_0x523817[_0x8605f8(0x1ed)],_0x8605f8(0x226)),'repairCommand':CLI_BIN_NAME+'\x20config\x20delete\x20region'},{'label':'Global','value':_0x523817[_0x8605f8(0x1de)][_0x8605f8(0x226)],'present':Object[_0x8605f8(0x1f5)][_0x8605f8(0x1fd)]['call'](_0x523817[_0x8605f8(0x1de)],_0x8605f8(0x226)),'repairCommand':CLI_BIN_NAME+'\x20config\x20delete\x20region\x20--global'}][_0x8605f8(0x216)](_0xbc6316=>_0xbc6316[_0x8605f8(0x1fb)]&&isInvalidLovrabetRegion(_0xbc6316['value']));for(const [_0x1b318b,_0x251cee]of[[_0x8605f8(0x203),_0x523817[_0x8605f8(0x1ed)]],[_0x8605f8(0x24a),_0x523817[_0x8605f8(0x1de)]]]){const _0x16e5dc=_0x251cee[_0x8605f8(0x1e1)]&&typeof _0x251cee[_0x8605f8(0x1e1)]===_0x8605f8(0x1e3)?_0x251cee[_0x8605f8(0x1e1)]:{};for(const [_0x2bbba7,_0x489410]of Object[_0x8605f8(0x1c3)](_0x16e5dc)){if(!_0x489410||typeof _0x489410!==_0x8605f8(0x1e3)||!Object[_0x8605f8(0x1f5)]['hasOwnProperty'][_0x8605f8(0x208)](_0x489410,'region'))continue;isInvalidLovrabetRegion(_0x489410[_0x8605f8(0x226)])&&_0x5908cf[_0x8605f8(0x21d)]({'label':_0x1b318b+_0x8605f8(0x210)+_0x2bbba7+'\x22','value':_0x489410[_0x8605f8(0x226)],'present':!![],'repairCommand':_0x8605f8(0x1c2)+_0x2bbba7+_0x8605f8(0x20b)+_0x1b318b['toLowerCase']()+_0x8605f8(0x1e6)});}}if(_0x5908cf[_0x8605f8(0x1f2)]>0x0){console[_0x8605f8(0x21e)](),console[_0x8605f8(0x21e)](a124_0x352d0f[_0x8605f8(0x24f)](_0x8605f8(0x247))),console[_0x8605f8(0x21e)](a124_0x352d0f[_0x8605f8(0x209)](_0x8605f8(0x1d6)[_0x8605f8(0x1ea)](0x1e)));for(const _0x4947f9 of _0x5908cf){console[_0x8605f8(0x21e)]('\x20\x20'+_0x4947f9[_0x8605f8(0x239)][_0x8605f8(0x1d3)](0x11)+'\x20'+a124_0x352d0f[_0x8605f8(0x229)](_0x8605f8(0x24c)+describeRegionValue(_0x4947f9['value']))),console[_0x8605f8(0x21e)]('\x20\x20'+(_0x8605f8(0x220)+_0x4947f9[_0x8605f8(0x239)][_0x8605f8(0x24b)]()+':')[_0x8605f8(0x1d3)](0x10)+'\x20'+_0x4947f9['repairCommand']);}}const _0x520e1c=[Object[_0x8605f8(0x1f5)][_0x8605f8(0x1fd)][_0x8605f8(0x208)](_0x523817[_0x8605f8(0x1de)],_0x8605f8(0x22d))?_0x8605f8(0x23b):null,Object['prototype'][_0x8605f8(0x1fd)][_0x8605f8(0x208)](_0x523817[_0x8605f8(0x1ed)],'inherit')?_0x8605f8(0x245):null][_0x8605f8(0x216)](Boolean);_0x520e1c[_0x8605f8(0x1f2)]>0x0&&(console['log'](_0x8605f8(0x1e0)+a124_0x352d0f[_0x8605f8(0x1c9)](_0x8605f8(0x221)+_0x520e1c['join'](_0x8605f8(0x235))+_0x8605f8(0x1e6))),_0x520e1c[_0x8605f8(0x20e)](_0x8605f8(0x245))&&console[_0x8605f8(0x21e)](_0x8605f8(0x22e)+CLI_BIN_NAME+_0x8605f8(0x206)),_0x520e1c[_0x8605f8(0x20e)](_0x8605f8(0x23b))&&console[_0x8605f8(0x21e)](_0x8605f8(0x233)+CLI_BIN_NAME+'\x20config\x20delete\x20inherit\x20--global'));const _0x24480a=isInvalidLovrabetRegion(_0x4625b8['regionConfiguredValue']??_0x4625b8[_0x8605f8(0x1e7)]?.[_0x8605f8(0x226)]);_0x2d0a6a&&!_0x24480a&&(console[_0x8605f8(0x21e)](),console[_0x8605f8(0x21e)](a124_0x352d0f[_0x8605f8(0x24f)](_0x8605f8(0x248))),console[_0x8605f8(0x21e)](a124_0x352d0f[_0x8605f8(0x209)](_0x8605f8(0x1d6)['repeat'](0x1e))),console['log'](_0x8605f8(0x243)+a124_0x352d0f[_0x8605f8(0x229)](_0x8605f8(0x1db))),console[_0x8605f8(0x21e)](_0x8605f8(0x214)+_0x2d0a6a['message']),Object[_0x8605f8(0x1f5)][_0x8605f8(0x1fd)][_0x8605f8(0x208)](_0x523817[_0x8605f8(0x1ed)],_0x8605f8(0x200))&&console[_0x8605f8(0x21e)](_0x8605f8(0x219)+CLI_BIN_NAME+'\x20config\x20delete\x20routing'),Object[_0x8605f8(0x1f5)]['hasOwnProperty'][_0x8605f8(0x208)](_0x523817[_0x8605f8(0x1de)],_0x8605f8(0x200))&&console['log'](_0x8605f8(0x231)+CLI_BIN_NAME+_0x8605f8(0x232)));console[_0x8605f8(0x21e)](),console[_0x8605f8(0x21e)](a124_0x352d0f[_0x8605f8(0x24f)](_0x8605f8(0x252))),console[_0x8605f8(0x21e)](a124_0x352d0f['gray']('\x20\x20─'['repeat'](0x1e))),console[_0x8605f8(0x21e)](_0x8605f8(0x1ff)+(_0x4625b8[_0x8605f8(0x1fc)]||a124_0x352d0f[_0x8605f8(0x229)](_0x8605f8(0x1ce))));const _0x4c8aff=_0x24480a?a124_0x352d0f[_0x8605f8(0x229)](describeRegionValue(_0x4625b8[_0x8605f8(0x218)]??_0x4625b8[_0x8605f8(0x1e7)]?.[_0x8605f8(0x226)])+_0x8605f8(0x23f)):(_0x4625b8[_0x8605f8(0x226)]??DEFAULT_LOVRABET_REGION)+'\x20('+(_0x4625b8['regionSource']??_0x8605f8(0x1c0))+')';console['log'](_0x8605f8(0x201)+_0x4c8aff),console[_0x8605f8(0x21e)](_0x8605f8(0x22c)+_0x4625b8['env']),console[_0x8605f8(0x21e)](_0x8605f8(0x211)+_0x4625b8[_0x8605f8(0x1c6)]),console[_0x8605f8(0x21e)](_0x8605f8(0x24d)+_0x4625b8[_0x8605f8(0x224)]),console[_0x8605f8(0x21e)](_0x8605f8(0x204)+(_0x4625b8['defaultApp']||a124_0x352d0f[_0x8605f8(0x209)](_0x8605f8(0x1f0)))),console['log']('\x20\x20currentApp:\x20\x20\x20\x20\x20\x20'+(_0x4625b8[_0x8605f8(0x1cc)]||a124_0x352d0f[_0x8605f8(0x209)](_0x8605f8(0x1f0)))),console[_0x8605f8(0x21e)](_0x8605f8(0x227)+(_0x4625b8[_0x8605f8(0x1d5)]||a124_0x352d0f['gray'](_0x8605f8(0x1f0)))),console[_0x8605f8(0x21e)](_0x8605f8(0x1d9)+(_0x4625b8['format']||a124_0x352d0f[_0x8605f8(0x209)](_0x8605f8(0x22b)+DEFAULT_CONFIG_VALUES[_0x8605f8(0x21a)]+')'))),console[_0x8605f8(0x21e)](_0x8605f8(0x1fa)+(_0x4625b8[_0x8605f8(0x249)]??a124_0x352d0f[_0x8605f8(0x209)]('(default)'))),console['log']('\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20'+_0x4625b8[_0x8605f8(0x1da)]),console[_0x8605f8(0x21e)]('\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x4625b8['verbose']),console[_0x8605f8(0x21e)](_0x8605f8(0x1e8)+(_0x4625b8['cookie']?a124_0x352d0f[_0x8605f8(0x251)]('(set,\x20length='+_0x4625b8[_0x8605f8(0x205)]['length']+')'):_0x6382e7?a124_0x352d0f[_0x8605f8(0x251)]('(set\x20via\x20file,\x20length='+_0x6382e7[_0x8605f8(0x1f2)]+')'):a124_0x352d0f[_0x8605f8(0x209)](_0x8605f8(0x1f0))));const _0x1ce85f=Object[_0x8605f8(0x1c7)](_0x4625b8['apps']);if(_0x1ce85f[_0x8605f8(0x1f2)]>0x0){console[_0x8605f8(0x21e)](),console[_0x8605f8(0x21e)](a124_0x352d0f['bold'](_0x8605f8(0x1f9))),console['log'](a124_0x352d0f[_0x8605f8(0x209)](_0x8605f8(0x1d6)[_0x8605f8(0x1ea)](0x1e)));for(const _0xa7fd42 of _0x1ce85f){const _0xa22fec=_0x4625b8[_0x8605f8(0x1e1)][_0xa7fd42],_0x2554bf=_0xa7fd42===_0x4625b8[_0x8605f8(0x24e)],_0x1fd9ab=_0xa7fd42===_0x4625b8[_0x8605f8(0x1cc)],_0x199b1a=_0x1fd9ab?a124_0x352d0f[_0x8605f8(0x251)](_0x8605f8(0x1ec)):'',_0x484912=_0x2554bf?_0x8605f8(0x1e9):'';console[_0x8605f8(0x21e)]('\x20\x20'+_0xa7fd42+_0x484912+_0x199b1a),console['log'](_0x8605f8(0x222)+_0xa22fec[_0x8605f8(0x253)]);const _0x348123=_0x523817[_0x8605f8(0x1ed)][_0x8605f8(0x1e1)]&&typeof _0x523817[_0x8605f8(0x1ed)]['apps']===_0x8605f8(0x1e3)?_0x523817[_0x8605f8(0x1ed)][_0x8605f8(0x1e1)]:{},_0x53c678=Object['prototype'][_0x8605f8(0x1fd)][_0x8605f8(0x208)](_0x348123,_0xa7fd42),_0x301f81=isInvalidLovrabetRegion(_0xa22fec[_0x8605f8(0x226)])?{'region':_0x4625b8[_0x8605f8(0x226)]??DEFAULT_LOVRABET_REGION}:resolveEffectiveRegion({'appRegion':_0xa22fec[_0x8605f8(0x226)],'projectRegion':_0x53c678?_0x523817['projectConfig']['region']:undefined,'globalRegion':_0x523817[_0x8605f8(0x1de)][_0x8605f8(0x226)],'mergedRegion':_0x4625b8[_0x8605f8(0x1e7)]['region'],'appName':_0xa7fd42}),_0x58bd8f=buildAppDoctorFields(_0xa22fec,{'region':_0x301f81['region'],'env':_0x4625b8[_0x8605f8(0x1d4)],'apiDir':_0x4625b8[_0x8605f8(0x1e7)]['apiDir']||DEFAULT_CONFIG_VALUES['apiDir'],'cookie':_0x4625b8[_0x8605f8(0x205)]||_0x6382e7||undefined,'accessKey':_0x4625b8[_0x8605f8(0x1f4)]});console[_0x8605f8(0x21e)](_0x8605f8(0x1e4)+_0x58bd8f[_0x8605f8(0x226)][_0x8605f8(0x238)]+'\x20\x20'+a124_0x352d0f[_0x8605f8(0x209)]('('+_0x58bd8f[_0x8605f8(0x226)][_0x8605f8(0x1ef)]+')')),console[_0x8605f8(0x21e)](_0x8605f8(0x225)+_0x58bd8f['env'][_0x8605f8(0x238)]+'\x20\x20'+a124_0x352d0f[_0x8605f8(0x209)]('('+_0x58bd8f[_0x8605f8(0x1d4)][_0x8605f8(0x1ef)]+')')),console[_0x8605f8(0x21e)](_0x8605f8(0x228)+_0x58bd8f[_0x8605f8(0x224)][_0x8605f8(0x238)]+'\x20\x20'+a124_0x352d0f['gray']('('+_0x58bd8f[_0x8605f8(0x224)][_0x8605f8(0x1ef)]+')'));const _0x23b6a2=_0x58bd8f[_0x8605f8(0x205)][_0x8605f8(0x238)]?a124_0x352d0f['green'](_0x8605f8(0x1d1)+_0x58bd8f[_0x8605f8(0x205)][_0x8605f8(0x238)]['length']+')'):a124_0x352d0f[_0x8605f8(0x209)](_0x8605f8(0x1f0));console[_0x8605f8(0x21e)](_0x8605f8(0x1ee)+_0x23b6a2+'\x20\x20'+a124_0x352d0f[_0x8605f8(0x209)]('('+_0x58bd8f[_0x8605f8(0x205)][_0x8605f8(0x1ef)]+')'));const _0x16ae67=_0x58bd8f[_0x8605f8(0x1f4)]['value']?a124_0x352d0f[_0x8605f8(0x251)](_0x8605f8(0x1d1)+_0x58bd8f[_0x8605f8(0x1f4)][_0x8605f8(0x238)][_0x8605f8(0x1f2)]+')'):a124_0x352d0f['gray'](_0x8605f8(0x1f0));console[_0x8605f8(0x21e)](_0x8605f8(0x1cf)+_0x16ae67+'\x20\x20'+a124_0x352d0f[_0x8605f8(0x209)]('('+_0x58bd8f[_0x8605f8(0x1f4)][_0x8605f8(0x1ef)]+')'));}}console[_0x8605f8(0x21e)](),console[_0x8605f8(0x21e)](a124_0x352d0f[_0x8605f8(0x24f)](_0x8605f8(0x23c))),console[_0x8605f8(0x21e)](a124_0x352d0f['gray'](_0x8605f8(0x1d6)[_0x8605f8(0x1ea)](0x1e)));_0x2d0a6a?console[_0x8605f8(0x21e)](_0x8605f8(0x243)+a124_0x352d0f[_0x8605f8(0x229)](_0x8605f8(0x1d7))):(console[_0x8605f8(0x21e)]('\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+getActiveRegion()),console[_0x8605f8(0x21e)](_0x8605f8(0x1cb)+getApiDomain()),console[_0x8605f8(0x21e)](_0x8605f8(0x242)+getUserDomain()),console[_0x8605f8(0x21e)](_0x8605f8(0x1d2)+getRuntimeDomain()),console[_0x8605f8(0x21e)](_0x8605f8(0x237)+getSkillDomain()),console['log'](_0x8605f8(0x1c5)+getKbDomain()),console[_0x8605f8(0x21e)](_0x8605f8(0x212)+(getKbServiceDomain()??'not\x20configured')),console[_0x8605f8(0x21e)](_0x8605f8(0x1dd)+getAppDomain()));console[_0x8605f8(0x21e)](),console[_0x8605f8(0x21e)](a124_0x352d0f[_0x8605f8(0x24f)](_0x8605f8(0x241))),console[_0x8605f8(0x21e)](a124_0x352d0f[_0x8605f8(0x209)](_0x8605f8(0x1d6)[_0x8605f8(0x1ea)](0x1e)));if(_0x2d0a6a)console['log'](_0x8605f8(0x243)+a124_0x352d0f[_0x8605f8(0x1c9)](_0x8605f8(0x223)));else{if(_0x6382e7){const _0x172a33=await getIsSessionValid();console[_0x8605f8(0x21e)](_0x8605f8(0x243)+(_0x172a33?a124_0x352d0f[_0x8605f8(0x251)]('✓\x20Valid'):a124_0x352d0f[_0x8605f8(0x229)]('✗\x20Expired')));}else console[_0x8605f8(0x21e)](_0x8605f8(0x243)+a124_0x352d0f[_0x8605f8(0x229)](_0x8605f8(0x20f)));}return console[_0x8605f8(0x21e)](),{'ok':!![]};}export const doctorDefinition={'service':a124_0x193295(0x1c4),'command':a124_0x193295(0x1c1),'description':a124_0x193295(0x1f8),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a125_0xc500(_0x46524f,_0x2f8629){_0x46524f=_0x46524f-0x16a;const _0x19eec7=a125_0x19ee();let _0xc50024=_0x19eec7[_0x46524f];return _0xc50024;}const a125_0x2df328=a125_0xc500;function a125_0x19ee(){const _0x145771=['6JAqSQi','233388ZbwUSB','filePath','query-url','12074PMEWJC','str','1892oBjpuw','Development\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data','/smartapi/common/uploadFile','Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL','44250BQTYnj','Preview:\x20upload\x20','12208224ThrMQM','Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML','3193715XBIrpx','File','file','filepath','\x20to\x20development\x20app\x20','boolean','string','Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','bool','path','81MskHkH','long-term','Uploaded\x20file:\x20','Path\x20to\x20the\x20local\x20file\x20to\x20upload','filePath\x20is\x20required.','read','appCode','download','4259331ujGuGY','1178010eIxVJw','73lQofHL'];a125_0x19ee=function(){return _0x145771;};return a125_0x19ee();}(function(_0x15b2ec,_0x1bd3c5){const _0x402c93=a125_0xc500,_0x1d0505=_0x15b2ec();while(!![]){try{const _0x35f754=parseInt(_0x402c93(0x189))/0x1*(parseInt(_0x402c93(0x16b))/0x2)+parseInt(_0x402c93(0x17f))/0x3*(-parseInt(_0x402c93(0x18b))/0x4)+parseInt(_0x402c93(0x188))/0x5+parseInt(_0x402c93(0x18a))/0x6*(parseInt(_0x402c93(0x175))/0x7)+parseInt(_0x402c93(0x173))/0x8+parseInt(_0x402c93(0x187))/0x9+parseInt(_0x402c93(0x171))/0xa*(-parseInt(_0x402c93(0x16d))/0xb);if(_0x35f754===_0x1bd3c5)break;else _0x1d0505['push'](_0x1d0505['shift']());}catch(_0x7e590){_0x1d0505['push'](_0x1d0505['shift']());}}}(a125_0x19ee,0xc22e6));import{requireDevelopmentUploadFile}from'../../commands/common/local-file.js';import{queryDevelopmentFileUrl,uploadDevelopmentFile}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const FILE_FLAG={'name':'file','type':a125_0x2df328(0x17b),'required':!![],'description':a125_0x2df328(0x182)},FILEPATH_FLAG={'name':a125_0x2df328(0x178),'type':a125_0x2df328(0x17b),'required':!![],'description':a125_0x2df328(0x16e)},DOWNLOAD_FLAG={'name':a125_0x2df328(0x186),'type':a125_0x2df328(0x17a),'description':a125_0x2df328(0x170)},LONG_TERM_FLAG={'name':'long-term','type':a125_0x2df328(0x17a),'description':a125_0x2df328(0x174)};function requireFilePath(_0x5cb15e){const _0x4b21b5=a125_0x2df328,_0x49f44=_0x5cb15e['trim']();if(!_0x49f44)throw CliErrors['validation'](_0x4b21b5(0x183));return _0x49f44;}const fileUpload={'service':a125_0x2df328(0x177),'command':'upload','description':a125_0x2df328(0x17c),'risk':a125_0x2df328(0x184),'flags':[FILE_FLAG],async 'dryRun'(_0x39e2f5){const _0x4cd29e=a125_0x2df328,_0x20648f=requireDevelopmentUploadFile(_0x39e2f5[_0x4cd29e(0x16c)]('file'),_0x4cd29e(0x176));return{'method':'POST','url':_0x4cd29e(0x16f),'body':{'appCode':_0x39e2f5[_0x4cd29e(0x185)],'multipart':{'file':_0x20648f}},'description':_0x4cd29e(0x172)+_0x20648f['path']+_0x4cd29e(0x179)+_0x39e2f5[_0x4cd29e(0x185)]};},async 'execute'(_0x4a57bd){const _0x5de438=a125_0x2df328,_0x2b0db5=requireDevelopmentUploadFile(_0x4a57bd[_0x5de438(0x16c)](_0x5de438(0x177)),_0x5de438(0x176)),_0x3132cc=await uploadDevelopmentFile(_0x4a57bd[_0x5de438(0x185)],_0x2b0db5[_0x5de438(0x17e)]);return{'ok':!![],'data':_0x3132cc,'message':_0x3132cc[_0x5de438(0x18c)]?_0x5de438(0x181)+_0x3132cc[_0x5de438(0x18c)]+'.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.':'Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.'};}},fileQueryUrl={'service':'file','command':a125_0x2df328(0x16a),'description':'Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20or\x20immediate\x20access','risk':a125_0x2df328(0x184),'flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0x24af4c){const _0x2f9772=a125_0x2df328,_0x15e340=requireFilePath(_0x24af4c['str']('filepath')),_0x118912=await queryDevelopmentFileUrl(_0x15e340,{'download':_0x24af4c[_0x2f9772(0x17d)]('download'),'longTerm':_0x24af4c[_0x2f9772(0x17d)](_0x2f9772(0x180))});return{'ok':!![],'data':_0x118912};}};export const fileDefinitions=[fileUpload,fileQueryUrl];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a126_0xc98ce9=a126_0x5553;function a126_0x5553(_0x553e36,_0x509680){_0x553e36=_0x553e36-0x10c;const _0x8f6de0=a126_0x8f6d();let _0x5553d4=_0x8f6de0[_0x553e36];return _0x5553d4;}(function(_0x4cf85b,_0xd7178a){const _0x1c9952=a126_0x5553,_0x522462=_0x4cf85b();while(!![]){try{const _0x1d422e=parseInt(_0x1c9952(0x115))/0x1*(parseInt(_0x1c9952(0x119))/0x2)+parseInt(_0x1c9952(0x114))/0x3+-parseInt(_0x1c9952(0x11a))/0x4+-parseInt(_0x1c9952(0x10f))/0x5+parseInt(_0x1c9952(0x117))/0x6*(-parseInt(_0x1c9952(0x11b))/0x7)+parseInt(_0x1c9952(0x11c))/0x8*(-parseInt(_0x1c9952(0x11e))/0x9)+-parseInt(_0x1c9952(0x111))/0xa*(-parseInt(_0x1c9952(0x116))/0xb);if(_0x1d422e===_0xd7178a)break;else _0x522462['push'](_0x522462['shift']());}catch(_0x40f84a){_0x522462['push'](_0x522462['shift']());}}}(a126_0x8f6d,0xb6da6));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a126_0x8f6d(){const _0x1cee5d=['306117ykgeOC','appCode','Created\x20flow\x20','create','POST','3644115CVnpPv','\x20(id=','22204330WaVmwV','flow','flowName','629250bBJrPL','214823fPbNfn','11uYQLUQ','3768mORfwu','Create\x20a\x20draft\x20flow\x20definition\x20from\x20a\x20local\x20FlowConfig\x20file','10piGXym','5133708oTEwgC','2975pzQAyA','112dAyWMz','datasetCode'];a126_0x8f6d=function(){return _0x1cee5d;};return a126_0x8f6d();}import{asDryRunResult}from'../../commands/common/dry-run.js';import{createFlowDefinition}from'../../core/api-client.js';import{FLOW_FILE_FLAG,FLOW_PATHS,buildFlowUrl,confirmFlowWrite,flowSelector,prepareFlowWrite,readFlowFilePath}from'../../commands/flow/shared.js';export const flowCreate={'service':a126_0xc98ce9(0x112),'command':a126_0xc98ce9(0x10d),'description':a126_0xc98ce9(0x118),'risk':'write','flags':[FLOW_FILE_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x511992){readFlowFilePath(_0x511992);},async 'dryRun'(_0x470cef){const _0x434fcc=a126_0xc98ce9,{request:_0x30fc16,warnings:_0x2764ec}=await prepareFlowWrite(readFlowFilePath(_0x470cef),_0x470cef[_0x434fcc(0x11f)]);return asDryRunResult({'operation':_0x434fcc(0x10d),'selector':{'appCode':_0x470cef['appCode'],'flowName':_0x30fc16['flowName'],..._0x30fc16[_0x434fcc(0x11d)]?{'datasetCode':_0x30fc16[_0x434fcc(0x11d)]}:{}},'before':null,'after':_0x30fc16,'request':_0x30fc16,'dryRun':!![],'backend':{'method':_0x434fcc(0x10e),'path':FLOW_PATHS[_0x434fcc(0x10d)]},'warnings':_0x2764ec},{'method':'POST','url':FLOW_PATHS[_0x434fcc(0x10d)]});},async 'execute'(_0x4c6628){const _0x315632=a126_0xc98ce9,{request:_0x2de601,warnings:_0x363925}=await prepareFlowWrite(readFlowFilePath(_0x4c6628),_0x4c6628[_0x315632(0x11f)]);await confirmFlowWrite(_0x4c6628,_0x315632(0x10d),_0x2de601);const _0x5db2cf=await createFlowDefinition(_0x2de601),_0x3a08c3=buildFlowUrl(_0x4c6628[_0x315632(0x11f)],_0x5db2cf['id']),_0xbcc5ab=''+(_0x5db2cf[_0x315632(0x113)]||_0x2de601[_0x315632(0x113)])+(_0x5db2cf['id']?_0x315632(0x110)+_0x5db2cf['id']+')':'');return{'ok':!![],'data':{'operation':_0x315632(0x10d),'selector':flowSelector(_0x4c6628['appCode'],_0x5db2cf['id'],_0x5db2cf),'before':null,'after':_0x5db2cf,'flowUrl':_0x3a08c3,'dryRun':![],'backend':{'method':_0x315632(0x10e),'path':FLOW_PATHS[_0x315632(0x10d)]},'warnings':_0x363925},'message':_0x315632(0x10c)+_0xbcc5ab+'.\x20Flow\x20URL:\x20'+_0x3a08c3};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a127_0x3862de=a127_0x3a2e;(function(_0x3e439a,_0x29b4a4){const _0x4a1a92=a127_0x3a2e,_0x17dfa9=_0x3e439a();while(!![]){try{const _0xdc46f9=-parseInt(_0x4a1a92(0x1c4))/0x1*(-parseInt(_0x4a1a92(0x1d2))/0x2)+-parseInt(_0x4a1a92(0x1b8))/0x3*(-parseInt(_0x4a1a92(0x1c1))/0x4)+-parseInt(_0x4a1a92(0x1bb))/0x5+-parseInt(_0x4a1a92(0x1c0))/0x6+-parseInt(_0x4a1a92(0x1ca))/0x7*(parseInt(_0x4a1a92(0x1c3))/0x8)+-parseInt(_0x4a1a92(0x1c8))/0x9+parseInt(_0x4a1a92(0x1b5))/0xa*(parseInt(_0x4a1a92(0x1c6))/0xb);if(_0xdc46f9===_0x29b4a4)break;else _0x17dfa9['push'](_0x17dfa9['shift']());}catch(_0x371807){_0x17dfa9['push'](_0x17dfa9['shift']());}}}(a127_0xd5ee,0x7440c));import{mkdir,stat}from'node:fs/promises';import{dirname,resolve}from'node:path';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a127_0x3a2e(_0x1caf00,_0x1ddab3){_0x1caf00=_0x1caf00-0x1b5;const _0xd5ee26=a127_0xd5ee();let _0x3a2efb=_0xd5ee26[_0x1caf00];return _0x3a2efb;}import{getFlowDefinition}from'../../core/api-client.js';import{writeNormalizedFlowConfig}from'../../core/flow-config.js';import{CliErrors}from'../../errors.js';import{FLOW_ID_FLAG,flowDefinitionToConfig,readFlowId}from'../../commands/flow/shared.js';export const flowDetail={'service':a127_0x3862de(0x1d0),'command':a127_0x3862de(0x1cd),'description':a127_0x3862de(0x1d3),'risk':a127_0x3862de(0x1d1),'flags':[FLOW_ID_FLAG,{'name':'output','type':'string','description':a127_0x3862de(0x1b7)},{'name':a127_0x3862de(0x1ba),'type':a127_0x3862de(0x1b9),'description':a127_0x3862de(0x1c7)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x3c2af3){readFlowId(_0x3c2af3);},async 'execute'(_0x731e9){const _0x54d55d=a127_0x3862de,_0x2b8858=readFlowId(_0x731e9),_0x3117d4=_0x731e9[_0x54d55d(0x1bc)](_0x54d55d(0x1cc))['trim'](),_0x361d57=_0x3117d4?resolve(_0x3117d4):undefined;if(_0x361d57&&!_0x731e9['bool'](_0x54d55d(0x1ba))&&await fileExists(_0x361d57))throw CliErrors[_0x54d55d(0x1c9)](_0x54d55d(0x1d5)+_0x361d57,_0x54d55d(0x1b6));const _0x25b564=await getFlowDefinition(_0x731e9[_0x54d55d(0x1c5)],_0x2b8858);let _0x30bc87;if(_0x361d57){const _0xd85faf=flowDefinitionToConfig(_0x25b564);await mkdir(dirname(_0x361d57),{'recursive':!![]});try{await writeNormalizedFlowConfig(_0x361d57,_0xd85faf['config'],{'overwrite':_0x731e9[_0x54d55d(0x1c2)](_0x54d55d(0x1ba))});}catch(_0x1f3cdd){if(isAlreadyExistsError(_0x1f3cdd))throw CliErrors['validation'](_0x54d55d(0x1d5)+_0x361d57,'Pass\x20--force\x20to\x20overwrite\x20it.');throw _0x1f3cdd;}_0x30bc87={'path':_0x361d57,'warnings':_0xd85faf['warnings']};}return{'ok':!![],'data':{'flow':_0x25b564,..._0x30bc87?{'output':_0x30bc87}:{}},'message':_0x30bc87?_0x54d55d(0x1ce)+(_0x25b564[_0x54d55d(0x1bf)]||_0x25b564[_0x54d55d(0x1cf)]||_0x2b8858)+_0x54d55d(0x1bd)+_0x30bc87[_0x54d55d(0x1d4)]:'Flow\x20'+(_0x25b564[_0x54d55d(0x1bf)]||_0x25b564[_0x54d55d(0x1cf)]||_0x2b8858)};}};async function fileExists(_0x15f666){try{return await stat(_0x15f666),!![];}catch(_0xf4dbe7){return!isNotFoundError(_0xf4dbe7);}}function a127_0xd5ee(){const _0x3af959=['240JvWWfZ','Pass\x20--force\x20to\x20overwrite\x20it.','Write\x20a\x20portable\x20normalized\x20FlowConfig\x20JSON\x20file','3jsvZqW','boolean','force','3066935vBZsCC','str','\x20to\x20','code','flowName','959190WPnbuf','481688pkMzRz','bool','3184ohYNDv','52816qTYuZc','appCode','909381xCdUiS','Overwrite\x20an\x20existing\x20output\x20file','8072154dTEroC','validation','8554WUTHdW','ENOENT','output','detail','Wrote\x20FlowConfig\x20for\x20','flowCode','flow','read','20UQnSkw','Get\x20one\x20design-time\x20flow\x20definition','path','FlowConfig\x20output\x20already\x20exists:\x20'];a127_0xd5ee=function(){return _0x3af959;};return a127_0xd5ee();}function isNotFoundError(_0x4e515a){const _0x20e93e=a127_0x3862de;return _0x4e515a?.[_0x20e93e(0x1be)]===_0x20e93e(0x1cb);}function isAlreadyExistsError(_0x540d63){const _0x1fa579=a127_0x3862de;return _0x540d63?.[_0x1fa579(0x1be)]==='EEXIST';}
|