@lovrabet/rabetbase-cli 2.5.13-beta.1 → 2.5.13
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-dataset-generation/SKILL.md +1 -1
- package/skills/rabetbase-page-generation/SKILL.md +1 -1
- package/skills/rabetbase.manifest.json +3 -3
package/lib/commands/db/diff.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a112_0x2629fc=a112_0x2d20;(function(_0xb6fbc6,_0x690fb5){const _0x1d6181=a112_0x2d20,_0xe8abfb=_0xb6fbc6();while(!![]){try{const _0x1767a8=parseInt(_0x1d6181(0x1af))/0x1+parseInt(_0x1d6181(0x1a9))/0x2*(parseInt(_0x1d6181(0x1a6))/0x3)+-parseInt(_0x1d6181(0x193))/0x4+parseInt(_0x1d6181(0x18d))/0x5+parseInt(_0x1d6181(0x18c))/0x6+-parseInt(_0x1d6181(0x1ac))/0x7+-parseInt(_0x1d6181(0x19b))/0x8*(parseInt(_0x1d6181(0x195))/0x9);if(_0x1767a8===_0x690fb5)break;else _0xe8abfb['push'](_0xe8abfb['shift']());}catch(_0x522692){_0xe8abfb['push'](_0xe8abfb['shift']());}}}(a112_0x1265,0x85d7b));import{getDbTableDiff}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a112_0x1265(){const _0x2183e1=['2025GyNmXD','boolean','datasetTableCount','length','tableName','number','23272lHNrDn','string','Compare\x20datasets\x20with\x20physical\x20database\x20tables\x20and\x20show\x20schema\x20drift','summary','addedColumns','str','num','Fetch\x20and\x20aggregate\x20every\x20page\x20(overrides\x20--page\x20and\x20--pagesize)','MODIFIED_TABLE','appCode','fieldDiff','1675911VpoIbb','bool','read','2oPwzqJ','DELETED_TABLE','all','6197912bAZtVz','physicalTableCount','table','172072EQhqNz','diffType','\x20changed\x20table\x20row(s),\x20total\x20','5939658bxLsXC','2328025NUpYEi','Page\x20index\x20(1-based)','modifiedColumns','deletedColumns','page','map','392388ODnFpx','filter'];a112_0x1265=function(){return _0x2183e1;};return a112_0x1265();}function a112_0x2d20(_0x4cce54,_0x510e15){_0x4cce54=_0x4cce54-0x18c;const _0x12654d=a112_0x1265();let _0x2d200f=_0x12654d[_0x4cce54];return _0x2d200f;}import{DB_TABLE_PAGE_SIZE,getAllDbTableDiff,summarizeDbTableDiff}from'../../commands/db/table-diff-shared.js';export const dbDiff={'service':'db','command':'diff','description':a112_0x2629fc(0x19d),'risk':a112_0x2629fc(0x1a8),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':'table','type':a112_0x2629fc(0x19c),'description':'Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)'},{'name':a112_0x2629fc(0x191),'type':a112_0x2629fc(0x19a),'description':a112_0x2629fc(0x18e),'default':0x1},{'name':'pagesize','type':'number','description':'Page\x20size','default':0x14},{'name':a112_0x2629fc(0x1ab),'type':a112_0x2629fc(0x196),'description':a112_0x2629fc(0x1a2)}],async 'execute'(_0x1fc28e){const _0xaf2c81=a112_0x2629fc,_0x194870=_0x1fc28e[_0xaf2c81(0x1a1)]('id'),_0x5a655b=_0x1fc28e[_0xaf2c81(0x1a7)]('all'),_0x221478=_0x5a655b?0x1:_0x1fc28e[_0xaf2c81(0x1a1)](_0xaf2c81(0x191),0x1)||0x1,_0x384044=_0x5a655b?DB_TABLE_PAGE_SIZE:_0x1fc28e['num']('pagesize',0x14)||0x14,_0x14a380=_0x1fc28e[_0xaf2c81(0x1a0)](_0xaf2c81(0x1ae))||undefined,_0x50d6cc=_0x5a655b?await getAllDbTableDiff(getDbTableDiff,_0x1fc28e[_0xaf2c81(0x1a4)],_0x194870,_0x14a380):await getDbTableDiff(_0x1fc28e['appCode'],_0x194870,{'pageIndex':_0x221478,'pageSize':_0x384044,'tableName':_0x14a380}),_0x241117=_0x50d6cc['tableList'],_0x92b2d=summarizeDbTableDiff(_0x241117),_0x59ca70=_0x241117[_0xaf2c81(0x194)](_0x475164=>_0x475164[_0xaf2c81(0x1b0)]==='NEW_TABLE'||_0x475164[_0xaf2c81(0x1b0)]===_0xaf2c81(0x1a3))['map'](_0x5254a8=>_0x5254a8[_0xaf2c81(0x199)]),_0x3165fb=_0x241117[_0xaf2c81(0x194)](_0x4c0b3c=>_0x4c0b3c[_0xaf2c81(0x1b0)]===_0xaf2c81(0x1aa))[_0xaf2c81(0x192)](_0xc9054a=>_0xc9054a[_0xaf2c81(0x199)]),_0x346fc5=_0x241117[_0xaf2c81(0x194)](_0x1bf259=>_0x1bf259['diffType']==='MODIFIED_TABLE')[_0xaf2c81(0x192)](_0x365a4b=>({'tableName':_0x365a4b[_0xaf2c81(0x199)],'addedColumns':_0x365a4b[_0xaf2c81(0x1a5)]?.[_0xaf2c81(0x19f)]??[],'deletedColumns':_0x365a4b[_0xaf2c81(0x1a5)]?.[_0xaf2c81(0x190)]??[],'modifiedColumns':_0x365a4b[_0xaf2c81(0x1a5)]?.[_0xaf2c81(0x18f)]??[]}));return{'ok':!![],'data':{'dbLinkId':_0x194870,'page':_0x221478,'pageSize':_0x384044,'totalCount':_0x50d6cc['totalCount'],...typeof _0x50d6cc[_0xaf2c81(0x1ad)]===_0xaf2c81(0x19a)?{'physicalTableCount':_0x50d6cc['physicalTableCount']}:{},...typeof _0x50d6cc[_0xaf2c81(0x197)]===_0xaf2c81(0x19a)?{'datasetTableCount':_0x50d6cc[_0xaf2c81(0x197)]}:{},..._0x50d6cc[_0xaf2c81(0x19e)]?{'summary':_0x50d6cc[_0xaf2c81(0x19e)]}:{},'summaryByType':_0x92b2d,'toAnalyzeTables':_0x59ca70,'deletedTables':_0x3165fb,'modifiedFieldDiffs':_0x346fc5,'tables':_0x241117},'message':_0x241117[_0xaf2c81(0x198)]+_0xaf2c81(0x1b1)+_0x50d6cc['totalCount']+'\x20(db\x20link\x20'+_0x194870+')'};}};
|
package/lib/commands/db/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1f27c1,_0x5c6220){const _0x4eb31c=a113_0x83f1,_0x5a726a=_0x1f27c1();while(!![]){try{const _0x1e5303=parseInt(_0x4eb31c(0x73))/0x1+parseInt(_0x4eb31c(0x77))/0x2*(-parseInt(_0x4eb31c(0x6f))/0x3)+parseInt(_0x4eb31c(0x70))/0x4+-parseInt(_0x4eb31c(0x75))/0x5+parseInt(_0x4eb31c(0x74))/0x6*(parseInt(_0x4eb31c(0x72))/0x7)+parseInt(_0x4eb31c(0x6e))/0x8+parseInt(_0x4eb31c(0x76))/0x9*(parseInt(_0x4eb31c(0x71))/0xa);if(_0x1e5303===_0x5c6220)break;else _0x5a726a['push'](_0x5a726a['shift']());}catch(_0x10bfd1){_0x5a726a['push'](_0x5a726a['shift']());}}}(a113_0x325d,0x2bee2));import{dbList}from'../../commands/db/list.js';function a113_0x325d(){const _0x5aab40=['689337eCmjRf','457288vSbihj','505664zwzLaq','3rqkGsO','470416XBVXIr','10fJyOBB','42uSEpEk','161366KuTZeG','146346PdEGzp','782675JudQTZ'];a113_0x325d=function(){return _0x5aab40;};return a113_0x325d();}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';function a113_0x83f1(_0x364d66,_0x2449a2){_0x364d66=_0x364d66-0x6e;const _0x325d87=a113_0x325d();let _0x83f1bd=_0x325d87[_0x364d66];return _0x83f1bd;}import{dbTest}from'../../commands/db/test.js';import{dbAnalyzeBatchPlan}from'../../commands/db/analyze-batch-plan.js';import{dbAnalyzeStart}from'../../commands/db/analyze-start.js';import{dbAnalyzeCancel}from'../../commands/db/analyze-cancel.js';import{dbAnalyzeStatus}from'../../commands/db/analyze-status.js';import{dbCrossAnalyzeStart}from'../../commands/db/cross-db-analyze-start.js';import{dbCrossAnalyzeStatus}from'../../commands/db/cross-db-analyze-status.js';import{dbCrossAnalyzeLatest}from'../../commands/db/cross-db-analyze-latest.js';import{dbTables}from'../../commands/db/tables.js';import{dbDiff}from'../../commands/db/diff.js';import{dbDiffRefreshStart}from'../../commands/db/diff-refresh-start.js';import{dbDiffRefreshStatus}from'../../commands/db/diff-refresh-status.js';export const dbDefinitions=[dbList,dbDetail,dbCreate,dbUpdate,dbDelete,dbTest,dbAnalyzeBatchPlan,dbAnalyzeStart,dbAnalyzeCancel,dbAnalyzeStatus,dbCrossAnalyzeStart,dbCrossAnalyzeStatus,dbCrossAnalyzeLatest,dbTables,dbDiff,dbDiffRefreshStart,dbDiffRefreshStatus];
|
package/lib/commands/db/list.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a114_0x180539=a114_0x2a3f;function a114_0x2a3f(_0x4ea2e6,_0x567e34){_0x4ea2e6=_0x4ea2e6-0xdb;const _0x4673b1=a114_0x4673();let _0x2a3f59=_0x4673b1[_0x4ea2e6];return _0x2a3f59;}(function(_0x31b21d,_0x532f1c){const _0x4497e8=a114_0x2a3f,_0x4ae614=_0x31b21d();while(!![]){try{const _0xa8f52b=-parseInt(_0x4497e8(0xe0))/0x1+-parseInt(_0x4497e8(0xe2))/0x2+parseInt(_0x4497e8(0xdc))/0x3+-parseInt(_0x4497e8(0xe6))/0x4+-parseInt(_0x4497e8(0xef))/0x5*(-parseInt(_0x4497e8(0xed))/0x6)+parseInt(_0x4497e8(0xdf))/0x7*(-parseInt(_0x4497e8(0xea))/0x8)+parseInt(_0x4497e8(0xeb))/0x9;if(_0xa8f52b===_0x532f1c)break;else _0x4ae614['push'](_0x4ae614['shift']());}catch(_0x5ee510){_0x4ae614['push'](_0x4ae614['shift']());}}}(a114_0x4673,0x9ae13));import{listDatasets,listDbLinks}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{buildDbDatasetDependency,sanitizeDbLinkForOutput}from'../../commands/db/shared.js';export const dbList={'service':'db','command':a114_0x180539(0xde),'description':a114_0x180539(0xe9),'risk':a114_0x180539(0xe7),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a114_0x180539(0xe8),'type':a114_0x180539(0xdd),'description':a114_0x180539(0xe3),'default':0x1},{'name':a114_0x180539(0xe5),'type':'number','description':a114_0x180539(0xe4),'default':0x64}],async 'execute'(_0x27c9ee){const _0x36c245=a114_0x180539,_0x3fc40c=_0x27c9ee[_0x36c245(0xf0)]('page',0x1)||0x1,_0x4a1cc0=_0x27c9ee[_0x36c245(0xf0)](_0x36c245(0xe5),0x64)||0x64,[{items:_0x356d5a,paging:_0x4bd01b},_0x1d56a0]=await Promise['all']([listDbLinks(_0x27c9ee[_0x36c245(0xee)],{'currentPage':_0x3fc40c,'pageSize':_0x4a1cc0}),listDatasets(_0x27c9ee[_0x36c245(0xee)],{'source':_0x36c245(0xf1)})]),_0x22db4b=_0x356d5a['map'](_0x18a2b7=>({...sanitizeDbLinkForOutput(_0x18a2b7),'datasetDependency':buildDbDatasetDependency(_0x18a2b7,_0x1d56a0)['datasetDependency']})),_0x148047=_0x4bd01b?_0x4bd01b:{'currentPage':_0x3fc40c,'pageSize':_0x4a1cc0,'rowsOnPage':_0x22db4b[_0x36c245(0xe1)],'totalCount':null,'note':'Server\x20omitted\x20paging\x20metadata;\x20totalCount\x20is\x20unknown\x20—\x20rowsOnPage\x20is\x20this\x20page\x20only'};return{'ok':!![],'data':{'connections':_0x22db4b,'paging':_0x148047},'message':_0x36c245(0xec)+_0x22db4b[_0x36c245(0xe1)]+_0x36c245(0xdb)};}};function a114_0x4673(){const _0x34d364=['1705532EIoGPk','read','page','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','263864yNRLIv','28227717esJhIU','Found\x20','17634ujxtkd','appCode','545cAnWPN','num','DB_TABLE','\x20database\x20connection(s)','2029341gJpQmE','number','list','182qapMZo','1262157IFOnNn','length','1905452AurFwL','Page\x20index\x20(1-based)','Page\x20size','pagesize'];a114_0x4673=function(){return _0x34d364;};return a114_0x4673();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a115_0x301c(_0x28d2ee,_0x5a1817){_0x28d2ee=_0x28d2ee-0xe9;const _0x478844=a115_0x4788();let _0x301c8d=_0x478844[_0x28d2ee];return _0x301c8d;}(function(_0x40afe4,_0x19a258){const _0x488919=a115_0x301c,_0x50c3b0=_0x40afe4();while(!![]){try{const _0x577855=parseInt(_0x488919(0xee))/0x1+parseInt(_0x488919(0xfb))/0x2+-parseInt(_0x488919(0xfd))/0x3*(-parseInt(_0x488919(0xfc))/0x4)+parseInt(_0x488919(0xf4))/0x5+parseInt(_0x488919(0xf2))/0x6+parseInt(_0x488919(0xf7))/0x7+-parseInt(_0x488919(0xf3))/0x8*(parseInt(_0x488919(0xfe))/0x9);if(_0x577855===_0x19a258)break;else _0x50c3b0['push'](_0x50c3b0['shift']());}catch(_0x156787){_0x50c3b0['push'](_0x50c3b0['shift']());}}}(a115_0x4788,0x2ae84));import{testDbLinkConfigConnect}from'../../core/api-client.js';function a115_0x4788(){const _0x269bc5=['dbId','tableName','234032FJtBXz','36mlHmdD','48684vCMVOB','3256542WUqfmC','jdbcurl','/data/database','The\x20configuration\x20was\x20not\x20saved.\x20Verify\x20the\x20host,\x20credentials,\x20database\x20name,\x20network,\x20and\x20allowlist,\x20or\x20explicitly\x20pass\x20--skip-connection-test.','dbtableConfig','isFinite','passwd','trim','apiError','accesskey','password','Database\x20connection\x20preflight\x20failed.','secret','includes','hasAvailableDo','dbpassword','connectionstring','name','/data/er?dbId=','number','81492bgeypL','map','test','[redacted]','297636JIwByk','16NADCJq','965240tDCRoN','filter','length','2185470mnUXtW','privatekey'];a115_0x4788=function(){return _0x269bc5;};return a115_0x4788();}import{getAppBaseUrl}from'../../constant/domain.js';import{CliErrors}from'../../errors.js';function shouldRedactKey(_0x27427c){const _0x484d9c=a115_0x301c,_0x201cb7=_0x27427c['toLowerCase']();if(_0x201cb7===_0x484d9c(0x108)||_0x201cb7===_0x484d9c(0x104)||_0x201cb7===_0x484d9c(0xe9))return!![];if(_0x201cb7[_0x484d9c(0x10b)](_0x484d9c(0x10a))||_0x201cb7['includes']('token')||_0x201cb7['includes']('credential'))return!![];if(_0x201cb7[_0x484d9c(0x10b)](_0x484d9c(0xf8))||_0x201cb7[_0x484d9c(0x10b)](_0x484d9c(0x107)))return!![];if(_0x201cb7==='authorization'||_0x201cb7===_0x484d9c(0xea)||_0x201cb7===_0x484d9c(0xff))return!![];return![];}export function sanitizeDbLinkForOutput(_0x37fcd0){const _0x4e0c16=a115_0x301c,_0x2425a1={..._0x37fcd0};delete _0x2425a1[_0x4e0c16(0x10c)];for(const _0x45ffb3 of Object['keys'](_0x2425a1)){if(!shouldRedactKey(_0x45ffb3))continue;const _0x30958a=_0x2425a1[_0x45ffb3];_0x30958a!=null&&String(_0x30958a)[_0x4e0c16(0xf6)]>0x0&&(_0x2425a1[_0x45ffb3]=_0x4e0c16(0xf1));}return _0x2425a1;}export function sanitizeDbLinkList(_0x4d8274){const _0x22529b=a115_0x301c;return _0x4d8274[_0x22529b(0xef)](_0x4f3e54=>sanitizeDbLinkForOutput(_0x4f3e54));}export function buildDbDatasetDependency(_0x51aaef,_0x3c3c9d){const _0x33c7ec=a115_0x301c,_0x3191c6=_0x3c3c9d[_0x33c7ec(0xf5)](_0xafeb4b=>Number(_0xafeb4b[_0x33c7ec(0x102)]?.[_0x33c7ec(0xf9)])===Number(_0x51aaef['id']))[_0x33c7ec(0xef)](_0x58db6f=>({'id':_0x58db6f['id'],'code':_0x58db6f['code'],'name':_0x58db6f[_0x33c7ec(0xeb)],..._0x58db6f['dbtableConfig']?.[_0x33c7ec(0xfa)]?{'tableName':_0x58db6f[_0x33c7ec(0x102)][_0x33c7ec(0xfa)]}:{}}));return{'datasetDependency':{'hasDependencies':_0x3191c6['length']>0x0,'activeDatasetCount':_0x3191c6[_0x33c7ec(0xf6)]},'datasets':_0x3191c6};}export async function assertDbLinkConnectionPreflight(_0x35374c){const _0x564f48=a115_0x301c,_0x452822=await testDbLinkConfigConnect(_0x35374c);if(_0x452822!==!![])throw CliErrors[_0x564f48(0x106)](_0x564f48(0x109),_0x564f48(0x101));}const DB_URL_PATTERN=/^[^\s:]+(?::\d+)?$/;export function validateDbUrl(_0x35f7f1){const _0x168f29=a115_0x301c,_0x383213=_0x35f7f1['trim']();if(!_0x383213)return![];return DB_URL_PATTERN[_0x168f29(0xf0)](_0x383213);}export function buildDbPageLinks(_0x5d8947,_0x57e428){const _0x53f7f5=a115_0x301c,_0x7951fd=_0x5d8947?.[_0x53f7f5(0x105)]();if(!_0x7951fd)return undefined;const _0x3ce09d=typeof _0x57e428===_0x53f7f5(0xed)?String(_0x57e428):String(_0x57e428??'')[_0x53f7f5(0x105)]();if(!_0x3ce09d)return undefined;const _0x574b17=Number(_0x3ce09d);if(!Number[_0x53f7f5(0x103)](_0x574b17)||_0x574b17<=0x0)return undefined;const _0x4febe8=getAppBaseUrl(_0x7951fd),_0x181832=encodeURIComponent(String(_0x574b17));return{'databasePage':_0x4febe8+_0x53f7f5(0x100),'erPage':_0x4febe8+_0x53f7f5(0xec)+_0x181832};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a116_0x21cd(_0x12fefe,_0x3851e9){_0x12fefe=_0x12fefe-0x154;const _0x1f37b5=a116_0x1f37();let _0x21cdb7=_0x1f37b5[_0x12fefe];return _0x21cdb7;}const a116_0x38b235=a116_0x21cd;(function(_0x318278,_0x3b118e){const _0x40cc93=a116_0x21cd,_0x22de90=_0x318278();while(!![]){try{const _0x340e0e=-parseInt(_0x40cc93(0x167))/0x1*(parseInt(_0x40cc93(0x16d))/0x2)+-parseInt(_0x40cc93(0x16e))/0x3+-parseInt(_0x40cc93(0x166))/0x4*(parseInt(_0x40cc93(0x155))/0x5)+parseInt(_0x40cc93(0x161))/0x6*(-parseInt(_0x40cc93(0x15c))/0x7)+-parseInt(_0x40cc93(0x169))/0x8+parseInt(_0x40cc93(0x160))/0x9+parseInt(_0x40cc93(0x165))/0xa*(parseInt(_0x40cc93(0x156))/0xb);if(_0x340e0e===_0x3b118e)break;else _0x22de90['push'](_0x22de90['shift']());}catch(_0x27ca30){_0x22de90['push'](_0x22de90['shift']());}}}(a116_0x1f37,0xbe74a));import{CliErrors}from'../../errors.js';export const DB_TABLE_PAGE_SIZE=0x64;export const DB_TABLE_DIFF_TYPES=['NEW_TABLE','MODIFIED_TABLE','DELETED_TABLE',a116_0x38b235(0x16a)];export function summarizeDbTableDiff(_0x36f105){const _0x2d70b5=a116_0x38b235;return Object[_0x2d70b5(0x159)](DB_TABLE_DIFF_TYPES[_0x2d70b5(0x154)](_0x3ad6ec=>[_0x3ad6ec,_0x36f105[_0x2d70b5(0x15a)](_0x237bd4=>_0x237bd4['diffType']===_0x3ad6ec)[_0x2d70b5(0x15d)]]));}function a116_0x1f37(){const _0x1dd90a=['4019700VBJYxa','values','tableList','map','10TglfVx','1672OJqSYw','summary','number','fromEntries','filter','size','7hfjXss','length','totalCount','\x20of\x20','4354029jACruy','7365264SdLkyh','\x20row(s).','physicalTableCount','validation','296070yiTroQ','357044nymFrG','39554BGdtJI','Incomplete\x20db\x20table\x20pagination:\x20collected\x20','9448760DozbOW','ALREADY_ANALYZED','datasetTableCount','set','14OXFovn'];a116_0x1f37=function(){return _0x1dd90a;};return a116_0x1f37();}export async function getAllDbTableDiff(_0x282a48,_0x15e560,_0x371977,_0x358466){const _0xa5e850=a116_0x38b235,_0x24294b=new Map();let _0x5c99e7=0x1,_0x593b65=null;while(!![]){_0x593b65=await _0x282a48(_0x15e560,_0x371977,{'pageIndex':_0x5c99e7,'pageSize':DB_TABLE_PAGE_SIZE,'tableName':_0x358466});const _0x4d30a7=_0x24294b[_0xa5e850(0x15b)];for(const _0x80b2a1 of _0x593b65[_0xa5e850(0x170)]){_0x24294b[_0xa5e850(0x16c)](_0x80b2a1['tableName'],_0x80b2a1);}if(_0x24294b[_0xa5e850(0x15b)]>=_0x593b65[_0xa5e850(0x15e)])break;if(_0x593b65[_0xa5e850(0x170)]['length']===0x0||_0x24294b['size']===_0x4d30a7)throw CliErrors[_0xa5e850(0x164)](_0xa5e850(0x168)+_0x24294b[_0xa5e850(0x15b)]+_0xa5e850(0x15f)+_0x593b65[_0xa5e850(0x15e)]+_0xa5e850(0x162));_0x5c99e7+=0x1;}return{'totalCount':_0x593b65?.[_0xa5e850(0x15e)]??0x0,...typeof _0x593b65?.[_0xa5e850(0x163)]===_0xa5e850(0x158)?{'physicalTableCount':_0x593b65[_0xa5e850(0x163)]}:{},...typeof _0x593b65?.['datasetTableCount']===_0xa5e850(0x158)?{'datasetTableCount':_0x593b65[_0xa5e850(0x16b)]}:{},..._0x593b65?.[_0xa5e850(0x157)]?{'summary':_0x593b65[_0xa5e850(0x157)]}:{},'tableList':[..._0x24294b[_0xa5e850(0x16f)]()]};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a117_0x1500(_0x56b948,_0x450e9e){_0x56b948=_0x56b948-0xaf;const _0x328a96=a117_0x328a();let _0x1500a6=_0x328a96[_0x56b948];return _0x1500a6;}const a117_0x4ce380=a117_0x1500;(function(_0x511c64,_0x5cebcb){const _0x22a7a3=a117_0x1500,_0x1b5a9e=_0x511c64();while(!![]){try{const _0x3d30fe=parseInt(_0x22a7a3(0xc6))/0x1*(parseInt(_0x22a7a3(0xc8))/0x2)+parseInt(_0x22a7a3(0xc2))/0x3+parseInt(_0x22a7a3(0xb0))/0x4+parseInt(_0x22a7a3(0xaf))/0x5*(-parseInt(_0x22a7a3(0xc3))/0x6)+parseInt(_0x22a7a3(0xb6))/0x7+parseInt(_0x22a7a3(0xc5))/0x8*(parseInt(_0x22a7a3(0xc9))/0x9)+parseInt(_0x22a7a3(0xb2))/0xa*(-parseInt(_0x22a7a3(0xb9))/0xb);if(_0x3d30fe===_0x5cebcb)break;else _0x1b5a9e['push'](_0x1b5a9e['shift']());}catch(_0x480a6b){_0x1b5a9e['push'](_0x1b5a9e['shift']());}}}(a117_0x328a,0x428ad));import{getDbTableComparisonPage}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a117_0x328a(){const _0x59a0e3=['2185pOrDjH','187888czbyBl','datasetTableCount','94580Fofrps','physicalTableCount','str','table','2344825RFMpFh','summary','\x20table\x20comparison\x20row(s),\x20total\x20','913sldDqh','tableList','read','tables','Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)','length','\x20(db\x20link\x20','string','totalCount','993612ytDJdn','2592IphGJW','num','24DRFOao','272693TltboF','appCode','2zBslSM','781533BWsVID'];a117_0x328a=function(){return _0x59a0e3;};return a117_0x328a();}import{getAllDbTableDiff,summarizeDbTableDiff}from'../../commands/db/table-diff-shared.js';export const dbTables={'service':'db','command':a117_0x4ce380(0xbc),'description':'List\x20all\x20database\x20table\x20comparison\x20rows\x20and\x20analysis\x20states','risk':a117_0x4ce380(0xbb),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a117_0x4ce380(0xb5),'type':a117_0x4ce380(0xc0),'description':a117_0x4ce380(0xbd)}],async 'execute'(_0x5788c9){const _0x3aec62=a117_0x4ce380,_0x5415b3=_0x5788c9[_0x3aec62(0xc4)]('id'),_0x26c095=_0x5788c9[_0x3aec62(0xb4)](_0x3aec62(0xb5))||undefined,_0x38c314=await getAllDbTableDiff(getDbTableComparisonPage,_0x5788c9[_0x3aec62(0xc7)],_0x5415b3,_0x26c095),_0x8f7b50=_0x38c314[_0x3aec62(0xba)];return{'ok':!![],'data':{'dbLinkId':_0x5415b3,'totalCount':_0x38c314[_0x3aec62(0xc1)],...typeof _0x38c314[_0x3aec62(0xb3)]==='number'?{'physicalTableCount':_0x38c314[_0x3aec62(0xb3)]}:{},...typeof _0x38c314[_0x3aec62(0xb1)]==='number'?{'datasetTableCount':_0x38c314[_0x3aec62(0xb1)]}:{},..._0x38c314[_0x3aec62(0xb7)]?{'summary':_0x38c314[_0x3aec62(0xb7)]}:{},'summaryByType':summarizeDbTableDiff(_0x8f7b50),'tables':_0x8f7b50},'message':_0x8f7b50[_0x3aec62(0xbe)]+_0x3aec62(0xb8)+_0x38c314['totalCount']+_0x3aec62(0xbf)+_0x5415b3+')'};}};
|
package/lib/commands/db/test.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a118_0x44827e=a118_0x2429;(function(_0x306af8,_0x519324){const _0x22d756=a118_0x2429,_0x5eaed9=_0x306af8();while(!![]){try{const _0x1fed8c=-parseInt(_0x22d756(0x17f))/0x1+-parseInt(_0x22d756(0x18f))/0x2*(-parseInt(_0x22d756(0x17e))/0x3)+parseInt(_0x22d756(0x18c))/0x4+-parseInt(_0x22d756(0x18b))/0x5*(parseInt(_0x22d756(0x17b))/0x6)+-parseInt(_0x22d756(0x181))/0x7*(parseInt(_0x22d756(0x191))/0x8)+parseInt(_0x22d756(0x182))/0x9+parseInt(_0x22d756(0x18e))/0xa*(parseInt(_0x22d756(0x17a))/0xb);if(_0x1fed8c===_0x519324)break;else _0x5eaed9['push'](_0x5eaed9['shift']());}catch(_0x22af17){_0x5eaed9['push'](_0x5eaed9['shift']());}}}(a118_0x2021,0x4c5e1));import{testDbLinkConnect}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a118_0x2021(){const _0x517f9e=['2794580ZKdGMn','2035636ndeqEc','Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)','110ChGinG','10LgimdI','success','333176HyiqbS','1182599YDfNPR','6jgXtIp','keys','message','116799gaFnjn','594627MDNgar','read','84euaRXa','719415dxFCqT','object','code','slice','Connection\x20check\x20finished\x20for\x20db\x20link\x20','num','error','test','msg'];a118_0x2021=function(){return _0x517f9e;};return a118_0x2021();}function summarizeTestConnectResult(_0x179f0e){const _0x90851e=a118_0x2429;if(_0x179f0e===!![]||_0x179f0e===![])return{'success':_0x179f0e};if(_0x179f0e===null||_0x179f0e===undefined)return{'type':typeof _0x179f0e};if(typeof _0x179f0e!==_0x90851e(0x183))return{'type':typeof _0x179f0e};const _0x38f4bf=_0x179f0e,_0x3e5fda=[_0x90851e(0x190),_0x90851e(0x17d),_0x90851e(0x184),_0x90851e(0x188),_0x90851e(0x18a),'data'],_0x6107e1={};for(const _0x559542 of _0x3e5fda){if(_0x559542 in _0x38f4bf)_0x6107e1[_0x559542]=_0x38f4bf[_0x559542];}return Object[_0x90851e(0x17c)](_0x6107e1)['length']===0x0&&(_0x6107e1[_0x90851e(0x17c)]=Object[_0x90851e(0x17c)](_0x38f4bf)[_0x90851e(0x185)](0x0,0x14)),_0x6107e1;}function a118_0x2429(_0x1bc2a0,_0x110092){_0x1bc2a0=_0x1bc2a0-0x17a;const _0x202172=a118_0x2021();let _0x24299d=_0x202172[_0x1bc2a0];return _0x24299d;}export const dbTest={'service':'db','command':a118_0x44827e(0x189),'description':a118_0x44827e(0x18d),'risk':a118_0x44827e(0x180),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x1ea517){const _0x4fc7c2=a118_0x44827e,_0xd314db=_0x1ea517[_0x4fc7c2(0x187)]('id'),_0x5b3d0d=await testDbLinkConnect(_0xd314db),_0x169334=_0x5b3d0d===!![]||typeof _0x5b3d0d==='object'&&_0x5b3d0d!==null&&_0x5b3d0d[_0x4fc7c2(0x190)]===!![],_0x41ea59=summarizeTestConnectResult(_0x5b3d0d);return{'ok':!![],'data':{'id':_0xd314db,'connected':Boolean(_0x169334),'result':_0x41ea59},'message':_0x169334?'Connection\x20OK\x20for\x20db\x20link\x20'+_0xd314db:_0x4fc7c2(0x186)+_0xd314db+'\x20(see\x20data.result)'};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a119_0x3a4a6b=a119_0x99e8;(function(_0x3aee51,_0x183fa3){const _0x23de0c=a119_0x99e8,_0x24c511=_0x3aee51();while(!![]){try{const _0x9a545e=parseInt(_0x23de0c(0x8c))/0x1+-parseInt(_0x23de0c(0x74))/0x2+parseInt(_0x23de0c(0x8a))/0x3*(-parseInt(_0x23de0c(0x88))/0x4)+parseInt(_0x23de0c(0x94))/0x5+-parseInt(_0x23de0c(0x84))/0x6+parseInt(_0x23de0c(0x77))/0x7+-parseInt(_0x23de0c(0x7c))/0x8*(parseInt(_0x23de0c(0x79))/0x9);if(_0x9a545e===_0x183fa3)break;else _0x24c511['push'](_0x24c511['shift']());}catch(_0x210c39){_0x24c511['push'](_0x24c511['shift']());}}}(a119_0x1124,0xa6662));function a119_0x99e8(_0x3179d3,_0x53c81d){_0x3179d3=_0x3179d3-0x74;const _0x1124fc=a119_0x1124();let _0x99e82a=_0x1124fc[_0x3179d3];return _0x99e82a;}import{getDbLinkInfo,updateDbLink}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG,SKIP_CONNECTION_TEST_FLAG}from'../../commands/common/flags.js';function a119_0x1124(){const _0x1abf15=['dbname','--password\x20must\x20contain\x20the\x20real\x20database\x20password,\x20not\x20a\x20masked\x20value.','dbdesc','dbparam','has','Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22','3784056lrgEVU','validation','dbUrl','str','88GpMLDk','[redacted]','171813RvtEdZ','Updated\x20db\x20link\x20','1231853dvQuRZ','bool','num','username','skip-connection-test','******','string','trim','4500595ADpNKQ','Preview\x20the\x20merged\x20database\x20connection\x20update;\x20password\x20redacted','Current\x20or\x20replacement\x20password.\x20Required\x20when\x20the\x20stored\x20password\x20is\x20masked','360788jgIqAt','POST','password','8744309JvyISS','New\x20username','1885671nfHPvg','New\x20connection\x20parameter\x20string','dbParam','24RQfcSA','dburl'];a119_0x1124=function(){return _0x1abf15;};return a119_0x1124();}import{assertDbLinkConnectionPreflight,sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';const MASKED_PASSWORD_VALUES=new Set([a119_0x3a4a6b(0x91),a119_0x3a4a6b(0x89)]);function mergeDbLinkUpdate(_0x3eb664,_0x78b07a){const _0x1ad813=a119_0x3a4a6b,_0x2f8185={..._0x3eb664},_0x5f5bef=_0x78b07a['str'](_0x1ad813(0x76));if(_0x5f5bef&&MASKED_PASSWORD_VALUES[_0x1ad813(0x82)](_0x5f5bef))throw CliErrors['validation'](_0x1ad813(0x7f));if(!_0x5f5bef&&MASKED_PASSWORD_VALUES[_0x1ad813(0x82)](String(_0x3eb664['password']??'')))throw CliErrors[_0x1ad813(0x85)]('The\x20server\x20returned\x20a\x20masked\x20database\x20password.\x20Pass\x20the\x20current\x20or\x20replacement\x20password\x20explicitly\x20with\x20--password\x20to\x20update\x20this\x20connection\x20safely.');const _0x3066e8=_0x78b07a['str'](_0x1ad813(0x7e));if(_0x3066e8)_0x2f8185['dbName']=_0x3066e8;const _0x3dff40=_0x78b07a[_0x1ad813(0x87)](_0x1ad813(0x7d));if(_0x3dff40)_0x2f8185[_0x1ad813(0x86)]=_0x3dff40[_0x1ad813(0x93)]();const _0xce3dfd=_0x78b07a['str']('username');if(_0xce3dfd)_0x2f8185['username']=_0xce3dfd;if(_0x5f5bef)_0x2f8185[_0x1ad813(0x76)]=_0x5f5bef;const _0x36f309=_0x78b07a[_0x1ad813(0x87)]('dbparam');if(_0x36f309)_0x2f8185[_0x1ad813(0x7b)]=_0x36f309;const _0xed92d3=_0x78b07a['str'](_0x1ad813(0x80));if(_0xed92d3)_0x2f8185['dbDesc']=_0xed92d3;return _0x2f8185;}export const dbUpdate={'service':'db','command':'update','description':'Update\x20a\x20database\x20connection\x20by\x20merging\x20supplied\x20fields\x20into\x20the\x20current\x20server\x20record.\x20A\x20masked\x20server\x20password\x20requires\x20explicit\x20--password','risk':'write','flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':'dbname','type':a119_0x3a4a6b(0x92),'description':'New\x20database\x20name'},{'name':a119_0x3a4a6b(0x7d),'type':a119_0x3a4a6b(0x92),'description':'New\x20host:port'},{'name':a119_0x3a4a6b(0x8f),'type':a119_0x3a4a6b(0x92),'description':a119_0x3a4a6b(0x78)},{'name':a119_0x3a4a6b(0x76),'type':a119_0x3a4a6b(0x92),'description':a119_0x3a4a6b(0x96)},{'name':a119_0x3a4a6b(0x81),'type':a119_0x3a4a6b(0x92),'description':a119_0x3a4a6b(0x7a)},{'name':a119_0x3a4a6b(0x80),'type':'string','description':'New\x20description'},SKIP_CONNECTION_TEST_FLAG],async 'validate'(_0x36cd3a){const _0x18f843=a119_0x3a4a6b,_0xc21360=_0x36cd3a[_0x18f843(0x87)]('dburl');if(_0xc21360&&!validateDbUrl(_0xc21360[_0x18f843(0x93)]()))throw CliErrors[_0x18f843(0x85)](_0x18f843(0x83)+_0xc21360+'\x22');},async 'dryRun'(_0x210f40){const _0x52ff16=a119_0x3a4a6b,_0x2b6551=_0x210f40[_0x52ff16(0x8e)]('id'),_0x3cd117=await getDbLinkInfo(_0x2b6551),_0x3bf19a=mergeDbLinkUpdate(_0x3cd117,_0x210f40),_0x2993e3=sanitizeDbLinkForOutput(_0x3bf19a);return{'method':_0x52ff16(0x75),'url':'/smartapi/dblink/update','body':_0x2993e3,'description':_0x52ff16(0x95),'connectionPreflight':{'enabled':!_0x210f40['bool'](_0x52ff16(0x90)),'executed':![]}};},async 'execute'(_0xbdcbc1){const _0x22f9b5=a119_0x3a4a6b,_0x4b5ad8=_0xbdcbc1['num']('id'),_0x1aea53=await getDbLinkInfo(_0x4b5ad8),_0x4e2854=mergeDbLinkUpdate(_0x1aea53,_0xbdcbc1);!_0xbdcbc1[_0x22f9b5(0x8d)](_0x22f9b5(0x90))&&await assertDbLinkConnectionPreflight(_0x4e2854);const {id:_0x4d7701,entity:_0x2e8658}=normalizeEntityWithIdResponse(await updateDbLink(_0x4e2854));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x2e8658),'message':_0x22f9b5(0x8b)+(_0x4d7701??_0x4b5ad8)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5143d2,_0xd89eb4){const _0x481d40=a120_0x3e3f,_0x59f621=_0x5143d2();while(!![]){try{const _0x6da2a3=-parseInt(_0x481d40(0x1c6))/0x1*(parseInt(_0x481d40(0x1ce))/0x2)+-parseInt(_0x481d40(0x1d0))/0x3*(parseInt(_0x481d40(0x1c9))/0x4)+parseInt(_0x481d40(0x1cc))/0x5*(parseInt(_0x481d40(0x1c7))/0x6)+-parseInt(_0x481d40(0x1c8))/0x7*(parseInt(_0x481d40(0x1cd))/0x8)+-parseInt(_0x481d40(0x1c4))/0x9*(-parseInt(_0x481d40(0x1c5))/0xa)+-parseInt(_0x481d40(0x1cb))/0xb*(-parseInt(_0x481d40(0x1ca))/0xc)+parseInt(_0x481d40(0x1cf))/0xd;if(_0x6da2a3===_0xd89eb4)break;else _0x59f621['push'](_0x59f621['shift']());}catch(_0x4b271f){_0x59f621['push'](_0x59f621['shift']());}}}(a120_0x1da9,0x3eafb));function a120_0x3e3f(_0x182cef,_0x203490){_0x182cef=_0x182cef-0x1c4;const _0x1da94c=a120_0x1da9();let _0x3e3f11=_0x1da94c[_0x182cef];return _0x3e3f11;}function a120_0x1da9(){const _0x223ef1=['7FEiLNX','1577492GfwlII','2136dKBJVL','9636LXCNuJ','5BHnJfA','2682184hevHqq','817454OWuqPk','11733280LHulPU','3VbMVbT','387IVwKnP','67640YeIwmt','1jczBNE','274776Pwzmbr'];a120_0x1da9=function(){return _0x223ef1;};return a120_0x1da9();}import{deploymentSyncAll}from'../../commands/deployment/sync-all.js';import{deploymentSyncStatus}from'../../commands/deployment/sync-status.js';import{deploymentSyncJobs}from'../../commands/deployment/sync-jobs.js';export const deploymentDefinitions=[deploymentSyncAll,deploymentSyncStatus,deploymentSyncJobs];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a121_0x39f9(){const _0x12987d=['7530882yENGag','Would\x20submit\x20an\x20administrative\x20deployment\x20metadata\x20backfill\x20or\x20recovery\x20job.','job','4LsKVuP','1027444OxkYRP','List\x20recent\x20deployment\x20sync\x20jobs\x20before\x20deciding\x20whether\x20to\x20submit\x20again.','all_server_supported_metadata','/smartapi/data-sync/submit','10672605LSuiVA','Submitted\x20deployment\x20synchronization\x20job\x20','jobId','validation','not_submitted','appCode','boolean','1665996oFqYdM','No\x20deployment\x20synchronization\x20was\x20needed\x20for\x20this\x20app.','status','data','2193801XJVbiA','bool','defineProperty','application_deployment_sync','write','7ylKNHn','5118400iVVseE','sync-all','8eRKcdk','not_needed','deployment','35725030xgTipQ','confirm'];a121_0x39f9=function(){return _0x12987d;};return a121_0x39f9();}const a121_0x4c6a83=a121_0x5430;(function(_0x2f861d,_0x4edc3b){const _0x9ec06f=a121_0x5430,_0x309b79=_0x2f861d();while(!![]){try{const _0x212f5e=-parseInt(_0x9ec06f(0xf9))/0x1+parseInt(_0x9ec06f(0x104))/0x2+parseInt(_0x9ec06f(0xe8))/0x3*(parseInt(_0x9ec06f(0xf8))/0x4)+-parseInt(_0x9ec06f(0xee))/0x5+-parseInt(_0x9ec06f(0xf5))/0x6*(parseInt(_0x9ec06f(0xed))/0x7)+parseInt(_0x9ec06f(0xf0))/0x8*(-parseInt(_0x9ec06f(0xfd))/0x9)+parseInt(_0x9ec06f(0xf3))/0xa;if(_0x212f5e===_0x4edc3b)break;else _0x309b79['push'](_0x309b79['shift']());}catch(_0x5d60ec){_0x309b79['push'](_0x309b79['shift']());}}}(a121_0x39f9,0x9d62c));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{asDryRunResult}from'../../commands/common/dry-run.js';import{isPlatformTransportFailure,submitDeploymentMetadataSyncAll}from'../../core/api-client.js';function a121_0x5430(_0xf55d29,_0x32f7a5){_0xf55d29=_0xf55d29-0xe6;const _0x39f9cc=a121_0x39f9();let _0x5430b2=_0x39f9cc[_0xf55d29];return _0x5430b2;}import{CliError,CliErrors}from'../../errors.js';const SUBMIT_PATH=a121_0x4c6a83(0xfc),CONFIRM_FLAG={'name':a121_0x4c6a83(0xf4),'type':a121_0x4c6a83(0x103),'description':'Confirm\x20the\x20administrative\x20backfill\x20or\x20recovery\x20synchronization'};export const deploymentSyncAll={'service':a121_0x4c6a83(0xf2),'command':a121_0x4c6a83(0xef),'description':'Backfill\x20or\x20recover\x20all\x20server-supported\x20application\x20metadata','risk':a121_0x4c6a83(0xec),'strictFlags':!![],'structuredErrors':!![],'confirmationDescription':'Submit\x20an\x20administrative\x20metadata\x20backfill\x20or\x20recovery\x20synchronization.','flags':[CONFIRM_FLAG,APPCODE_FLAG_OPTIONAL],async 'dryRun'(_0x2b85b1){const _0x5d189e=a121_0x4c6a83;return asDryRunResult(buildPreview(_0x2b85b1[_0x5d189e(0x102)]),{'method':'POST','url':SUBMIT_PATH,'description':_0x5d189e(0xf6)});},async 'execute'(_0x19346a){const _0x34ace0=a121_0x4c6a83;if(!_0x19346a[_0x34ace0(0xe9)](_0x34ace0(0xf4)))throw CliErrors[_0x34ace0(0x100)]('--confirm\x20is\x20required\x20to\x20synchronize\x20all\x20application\x20metadata.','Run\x20with\x20--dry-run\x20first,\x20then\x20add\x20--confirm.');try{const _0x558576=await submitDeploymentMetadataSyncAll({'appCode':_0x19346a[_0x34ace0(0x102)]});if(_0x558576['outcome']===_0x34ace0(0xf1))return{'ok':!![],'data':{'operation':_0x34ace0(0xeb),'appCode':_0x19346a[_0x34ace0(0x102)],'submitted':![],'outcome':_0x34ace0(0xf1)},'message':_0x34ace0(0x105)};return{'ok':!![],'data':{'operation':_0x34ace0(0xeb),'appCode':_0x19346a['appCode'],'submitted':!![],'outcome':'submitted','jobId':_0x558576[_0x34ace0(0xf7)][_0x34ace0(0xff)],'status':_0x558576[_0x34ace0(0xf7)][_0x34ace0(0xe6)]},'message':_0x34ace0(0xfe)+_0x558576[_0x34ace0(0xf7)][_0x34ace0(0xff)]+'.'};}catch(_0xc506c9){if(!isPlatformTransportFailure(_0xc506c9))throw _0xc506c9;const _0x45c5b2=new CliError('deployment_sync_submit_outcome_unknown',0x2,'Deployment\x20sync\x20submission\x20response\x20was\x20unavailable;\x20job\x20creation\x20is\x20unknown.',_0x34ace0(0xfa));Object[_0x34ace0(0xea)](_0x45c5b2,_0x34ace0(0xe7),{'enumerable':!![],'value':{'operation':_0x34ace0(0xeb),'appCode':_0x19346a['appCode'],'submitted':null,'outcome':'unknown'}});throw _0x45c5b2;}}};function buildPreview(_0x220f7c){const _0x36ad74=a121_0x4c6a83;return{'operation':_0x36ad74(0xeb),'selector':{'appCode':_0x220f7c,'scope':_0x36ad74(0xfb)},'before':null,'after':null,'dryRun':!![],'backend':{'submitted':![],'outcome':_0x36ad74(0x101)},'warnings':[]};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a122_0x53e98d=a122_0x4f28;(function(_0x5dae8b,_0x4f6cab){const _0x59e0c6=a122_0x4f28,_0x4a1529=_0x5dae8b();while(!![]){try{const _0x1f4741=-parseInt(_0x59e0c6(0xc5))/0x1+-parseInt(_0x59e0c6(0xd4))/0x2+parseInt(_0x59e0c6(0xd5))/0x3+-parseInt(_0x59e0c6(0xd3))/0x4*(-parseInt(_0x59e0c6(0xce))/0x5)+parseInt(_0x59e0c6(0xc8))/0x6+parseInt(_0x59e0c6(0xc0))/0x7*(-parseInt(_0x59e0c6(0xbc))/0x8)+parseInt(_0x59e0c6(0xc7))/0x9*(parseInt(_0x59e0c6(0xc2))/0xa);if(_0x1f4741===_0x4f6cab)break;else _0x4a1529['push'](_0x4a1529['shift']());}catch(_0x26c97d){_0x4a1529['push'](_0x4a1529['shift']());}}}(a122_0x1761,0x695e9));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{listDeploymentMetadataSyncJobs}from'../../core/api-client.js';function a122_0x1761(){const _0x54ebd1=['read','number','deployment','Optional\x20server-defined\x20job\x20status\x20filter','6715ZpveKa','Items\x20per\x20page\x20(maximum\x20100)','length','string','isSafeInteger','196mhdZqw','1377180adBHTk','335628eWfCTh','trim','sync-jobs','str','List\x20application\x20deployment\x20synchronization\x20jobs','current-page','\x20deployment\x20synchronization\x20job(s).','1376744sFtCPV','Found\x20','validation','items','21aWapNr','page-size','50FeaDxS','--page-size\x20must\x20be\x20an\x20integer\x20from\x201\x20to\x20100.','--current-page\x20must\x20be\x20a\x20positive\x20integer.','840346bPbamR','num','2626461DTegrp','5039880gYNAbb','appCode'];a122_0x1761=function(){return _0x54ebd1;};return a122_0x1761();}import{CliErrors}from'../../errors.js';export const deploymentSyncJobs={'service':a122_0x53e98d(0xcc),'command':a122_0x53e98d(0xd7),'description':a122_0x53e98d(0xd9),'risk':a122_0x53e98d(0xca),'strictFlags':!![],'structuredErrors':!![],'flags':[{'name':a122_0x53e98d(0xba),'type':a122_0x53e98d(0xcb),'default':0x1,'description':'Page\x20number'},{'name':'page-size','type':a122_0x53e98d(0xcb),'default':0xa,'description':a122_0x53e98d(0xcf)},{'name':'status','type':a122_0x53e98d(0xd1),'description':a122_0x53e98d(0xcd)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x5a8968){const _0x17eef7=a122_0x53e98d;readPaging(_0x5a8968[_0x17eef7(0xc6)](_0x17eef7(0xba),0x1),_0x5a8968[_0x17eef7(0xc6)]('page-size',0xa));},async 'execute'(_0x5ae7c6){const _0x1d3800=a122_0x53e98d,{currentPage:_0x4aa174,pageSize:_0x64ff5c}=readPaging(_0x5ae7c6[_0x1d3800(0xc6)](_0x1d3800(0xba),0x1),_0x5ae7c6[_0x1d3800(0xc6)](_0x1d3800(0xc1),0xa)),_0x5cf650=_0x5ae7c6[_0x1d3800(0xd8)]('status')[_0x1d3800(0xd6)](),_0x182049=await listDeploymentMetadataSyncJobs({'appCode':_0x5ae7c6['appCode'],'currentPage':_0x4aa174,'pageSize':_0x64ff5c,..._0x5cf650?{'status':_0x5cf650}:{}});return{'ok':!![],'data':{'appCode':_0x5ae7c6[_0x1d3800(0xc9)],..._0x182049},'message':_0x1d3800(0xbd)+_0x182049[_0x1d3800(0xbf)][_0x1d3800(0xd0)]+_0x1d3800(0xbb)};}};function a122_0x4f28(_0x5b482b,_0x429179){_0x5b482b=_0x5b482b-0xba;const _0x1761eb=a122_0x1761();let _0x4f2831=_0x1761eb[_0x5b482b];return _0x4f2831;}function readPaging(_0x3a4714,_0x350e92){const _0x391841=a122_0x53e98d;if(!Number[_0x391841(0xd2)](_0x3a4714)||_0x3a4714<0x1)throw CliErrors[_0x391841(0xbe)](_0x391841(0xc4));if(!Number[_0x391841(0xd2)](_0x350e92)||_0x350e92<0x1||_0x350e92>0x64)throw CliErrors[_0x391841(0xbe)](_0x391841(0xc3));return{'currentPage':_0x3a4714,'pageSize':_0x350e92};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a123_0x6d7919=a123_0x13d9;(function(_0x7b641c,_0x566e9e){const _0x1c626a=a123_0x13d9,_0x5c8f37=_0x7b641c();while(!![]){try{const _0x4a9e31=-parseInt(_0x1c626a(0x1d0))/0x1*(parseInt(_0x1c626a(0x1c5))/0x2)+-parseInt(_0x1c626a(0x1de))/0x3*(-parseInt(_0x1c626a(0x1dc))/0x4)+-parseInt(_0x1c626a(0x1c8))/0x5+parseInt(_0x1c626a(0x1df))/0x6+parseInt(_0x1c626a(0x1d7))/0x7*(-parseInt(_0x1c626a(0x1c6))/0x8)+-parseInt(_0x1c626a(0x1cc))/0x9*(-parseInt(_0x1c626a(0x1dd))/0xa)+-parseInt(_0x1c626a(0x1d3))/0xb*(parseInt(_0x1c626a(0x1e0))/0xc);if(_0x4a9e31===_0x566e9e)break;else _0x5c8f37['push'](_0x5c8f37['shift']());}catch(_0x1c2a06){_0x5c8f37['push'](_0x5c8f37['shift']());}}}(a123_0xaf0a,0xf2a40));import{getDeploymentMetadataSyncStatus}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const TERMINAL_STATUSES=new Set(['SUCCESS',a123_0x6d7919(0x1ce),a123_0x6d7919(0x1d6)]),ACTIVE_STATUSES=new Set([a123_0x6d7919(0x1d4),'RUNNING']);export const deploymentSyncStatus={'service':a123_0x6d7919(0x1d1),'command':'sync-status','description':'Get\x20application\x20deployment\x20synchronization\x20job\x20status','risk':a123_0x6d7919(0x1c7),'requiresAppCode':!![],'strictFlags':!![],'structuredErrors':!![],'flags':[{'name':'job-id','type':a123_0x6d7919(0x1db),'required':!![],'description':'Deployment\x20synchronization\x20job\x20ID'}],async 'validate'(_0x38c49c){const _0x5de8dd=a123_0x6d7919;readJobId(_0x38c49c[_0x5de8dd(0x1d8)](_0x5de8dd(0x1d2)));},async 'execute'(_0x4bbf43){const _0x3e2c19=a123_0x6d7919,_0xde2ab0=readJobId(_0x4bbf43[_0x3e2c19(0x1d8)](_0x3e2c19(0x1d2))),_0x5551d4=await getDeploymentMetadataSyncStatus({'jobId':_0xde2ab0,'appCode':_0x4bbf43[_0x3e2c19(0x1cf)]}),_0x25e0c0=TERMINAL_STATUSES[_0x3e2c19(0x1da)](_0x5551d4[_0x3e2c19(0x1c0)])?!![]:ACTIVE_STATUSES[_0x3e2c19(0x1da)](_0x5551d4['status'])?![]:null,_0xfcafd0=countBy(_0x5551d4['results'][_0x3e2c19(0x1cd)](_0x29d4fc=>_0x29d4fc['bizType'])),_0x29d071=countBy(_0x5551d4[_0x3e2c19(0x1e2)][_0x3e2c19(0x1cd)](_0x375eff=>_0x375eff[_0x3e2c19(0x1c2)])),_0x147579=_0x25e0c0===null?[_0x3e2c19(0x1c3)+_0x5551d4[_0x3e2c19(0x1c0)]+_0x3e2c19(0x1c4)]:[];return{'ok':!![],'data':{'job':_0x5551d4,'isTerminal':_0x25e0c0,'summary':{'total':_0x5551d4[_0x3e2c19(0x1e2)]['length'],'failed':_0x5551d4[_0x3e2c19(0x1e2)]['filter'](_0x2a759c=>_0x2a759c[_0x3e2c19(0x1c2)]==='FAILED')[_0x3e2c19(0x1cb)],'byBizType':_0xfcafd0,'byAction':_0x29d071},'warnings':_0x147579},'message':_0x3e2c19(0x1d9)+_0xde2ab0+_0x3e2c19(0x1d5)+_0x5551d4[_0x3e2c19(0x1c0)]+'.'};}};function readJobId(_0x399ae1){const _0x905cdf=a123_0x6d7919;if(!Number[_0x905cdf(0x1ca)](_0x399ae1)||_0x399ae1<=0x0)throw CliErrors[_0x905cdf(0x1e1)](_0x905cdf(0x1c1));return _0x399ae1;}function a123_0x13d9(_0x1785f6,_0x11da27){_0x1785f6=_0x1785f6-0x1c0;const _0xaf0a4d=a123_0xaf0a();let _0x13d981=_0xaf0a4d[_0x1785f6];return _0x13d981;}function a123_0xaf0a(){const _0x1c1690=['6400590nDUJjm','reduce','isSafeInteger','length','6732rVAbqo','map','PARTIAL_SUCCESS','appCode','395qnlHHR','deployment','job-id','6923158RbAJel','PENDING','\x20is\x20','FAILED','2585863oVCKeM','num','Deployment\x20synchronization\x20job\x20','has','number','6319308FtjuVc','23440JRgNgt','3txxmcl','7800870gpCRZk','24EykNdg','validation','results','status','--job-id\x20must\x20be\x20a\x20positive\x20integer.','action','Preserved\x20server-defined\x20status\x20',';\x20terminal\x20state\x20is\x20unknown\x20to\x20this\x20CLI\x20version.','3702cBleGc','8smscHh','read'];a123_0xaf0a=function(){return _0x1c1690;};return a123_0xaf0a();}function countBy(_0x5dbead){const _0x2e5f93=a123_0x6d7919;return _0x5dbead[_0x2e5f93(0x1c9)]((_0x413b34,_0x42e9ef)=>{return _0x413b34[_0x42e9ef]=(_0x413b34[_0x42e9ef]??0x0)+0x1,_0x413b34;},{});}
|
package/lib/commands/doctor.js
CHANGED
|
@@ -1 +1 @@
|
|
|
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
|
+
const a124_0x122c58=a124_0x1210;(function(_0x4401ea,_0x531503){const _0x2a9f99=a124_0x1210,_0x3f884f=_0x4401ea();while(!![]){try{const _0x5acced=parseInt(_0x2a9f99(0x16d))/0x1+-parseInt(_0x2a9f99(0x152))/0x2+-parseInt(_0x2a9f99(0x16e))/0x3*(-parseInt(_0x2a9f99(0x156))/0x4)+parseInt(_0x2a9f99(0x118))/0x5*(parseInt(_0x2a9f99(0x135))/0x6)+-parseInt(_0x2a9f99(0x169))/0x7*(parseInt(_0x2a9f99(0x11d))/0x8)+-parseInt(_0x2a9f99(0x163))/0x9+-parseInt(_0x2a9f99(0x11c))/0xa*(-parseInt(_0x2a9f99(0x145))/0xb);if(_0x5acced===_0x531503)break;else _0x3f884f['push'](_0x3f884f['shift']());}catch(_0x17be36){_0x3f884f['push'](_0x3f884f['shift']());}}}(a124_0x3cc8,0x727df));import a124_0x1e0b6b from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';function a124_0x1210(_0x15672c,_0x1d45ec){_0x15672c=_0x15672c-0xfb;const _0x3cc876=a124_0x3cc8();let _0x121066=_0x3cc876[_0x15672c];return _0x121066;}import{getActiveRegion,getApiDomain,getAppDomain,getKbDomain,getKbServiceDomain,getSkillDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags,initGlobalEnvironment,inspectCliConfigJsonFile,loadRawConfigLayers}from'../context.js';function a124_0x3cc8(){const _0x801057=['padEnd','\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','packageVersion','\x20doctor','3048ohvIqS','red','✗\x20Expired','missing','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','repeat','✗\x20Invalid','\x20\x20Auth','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20skillDomain:\x20\x20\x20\x20\x20','\x20\x20Repair\x20project:\x20\x20\x20','(none)','Not\x20checked\x20until\x20routing\x20configuration\x20is\x20repaired','entries','yellow','66QfkasC','apps','green','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','current','env','\x20config\x20delete\x20routing\x20--global','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','prototype','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','call','(set,\x20length=','routing','1581800TDBayO','(default:\x20','\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20appDomain:\x20\x20\x20\x20\x20\x20\x20','116TkGYvi','\x20app\x20\x22','empty','gray','\x20\x20Skill\x20Version:\x20\x20\x20','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','riskLevel','skillVersion','format','\x20config','message','label','\x20\x20Legacy\x20inherit:\x20\x20\x20','7261011asQmfC','appCode','unknown','projectConfig','slice','\x20\x20API\x20Endpoints','21bjPPCu','\x20\x20Config\x20Files','regionConfiguredValue','\x20\x20Package\x20Version:\x20','669572LHugkT','20031NXgcZt','\x20\x20\x20\x20region:\x20\x20\x20\x20\x20','cookie','stringify','\x20(invalid)','raw','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','installedPath','appcode','Repair\x20','bold','source','locale','\x20config\x20delete\x20region','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','apiDir','Global','reason','\x20\x20runtimeDomain:\x20\x20\x20','value','object','⚠\x20Empty\x20(treated\x20as\x20{})','present','status','read','\x20config\x20delete\x20inherit','arch','(no\x20file)','globalConfig','ignored\x20in\x20','\x20\x20explicitAppName:\x20','toLowerCase','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20accessKey:\x20\x20','.region\x20to\x20cn\x20or\x20id\x20in\x20','✓\x20Valid','platform','accessKey','\x20\x20kbDomain:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Built-in\x20Skill','(not\x20found)','keys','\x20\x20Repair\x20project:\x20\x20','global','\x20config\x20delete\x20region\x20--global','\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(set\x20via\x20file,\x20length=','repairCommand','(unknown)','\x20\x20kbServiceDomain:\x20','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','(missing)','includes','\x20\x20Repair\x20global:\x20\x20\x20\x20','state','(not\x20set)','project','\x20\x20Installed\x20Path:\x20\x20','pageSize','\x20config\x20delete\x20routing','Project','Unavailable\x20until\x20routing\x20configuration\x20is\x20repaired','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','8735zYPqAy','region','\x20\x20Repair\x20global:\x20\x20\x20','log','1700670EyhxjH','1878520AMPRIO','string','Set\x20apps.','inherit','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','doctor','explicitAppName','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','\x20\x20─','✗\x20Invalid\x20','hasOwnProperty','\x20\x20Config\x20JSON','length','defaultApp','verbose','push','filter','\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20+\x20'];a124_0x3cc8=function(){return _0x801057;};return a124_0x3cc8();}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(_0x1a0321){const _0x393f8b=a124_0x1210;return typeof _0x1a0321===_0x393f8b(0x11e)?JSON[_0x393f8b(0x171)](_0x1a0321):'<'+(_0x1a0321===null?'null':typeof _0x1a0321)+'>';}async function execute(_0x5540c1){const _0x39ae39=a124_0x1210,_0x38a92c=GIT_COMMIT!==_0x39ae39(0x165)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x39ae39(0x167)](0x0,0xa)+')':VERSION,_0x5ea386=buildConfigFromFlags({}),_0x41be03=getCookie();let _0x4a132f;try{await initGlobalEnvironment(_0x5ea386);}catch(_0x59fab9){_0x4a132f=_0x59fab9 instanceof Error?_0x59fab9:new Error(String(_0x59fab9));}console[_0x39ae39(0x11b)](),console[_0x39ae39(0x11b)](a124_0x1e0b6b[_0x39ae39(0x178)](CLI_BIN_NAME+_0x39ae39(0x134))),console[_0x39ae39(0x11b)](a124_0x1e0b6b[_0x39ae39(0x159)]('─'[_0x39ae39(0x13b)](0x32))),console[_0x39ae39(0x11b)](_0x39ae39(0x14c)+_0x38a92c),console[_0x39ae39(0x11b)](_0x39ae39(0x13e)+process['version']),console['log'](_0x39ae39(0x18f)+process[_0x39ae39(0xfd)]+'\x20'+process[_0x39ae39(0x188)]);const _0x2acf66=inspectBuiltinSkill();console[_0x39ae39(0x11b)](),console[_0x39ae39(0x11b)](a124_0x1e0b6b[_0x39ae39(0x178)](_0x39ae39(0x100))),console['log'](a124_0x1e0b6b[_0x39ae39(0x159)](_0x39ae39(0x126)['repeat'](0x1e)));const _0x103883=_0x2acf66[_0x39ae39(0x10f)]==='current'?a124_0x1e0b6b['green']('✓\x20'+_0x2acf66[_0x39ae39(0x10f)]):a124_0x1e0b6b['red']('✗\x20'+_0x2acf66[_0x39ae39(0x10f)]);console['log'](_0x39ae39(0x132)+_0x103883),console[_0x39ae39(0x11b)](_0x39ae39(0x16c)+_0x2acf66[_0x39ae39(0x133)]),console[_0x39ae39(0x11b)](_0x39ae39(0x15a)+(_0x2acf66[_0x39ae39(0x15d)]||a124_0x1e0b6b[_0x39ae39(0x159)](_0x39ae39(0x109)))),console[_0x39ae39(0x11b)](_0x39ae39(0x112)+(_0x2acf66[_0x39ae39(0x175)]||a124_0x1e0b6b[_0x39ae39(0x159)](_0x39ae39(0x101))));if(_0x2acf66['reason'])console['log'](_0x39ae39(0x154)+_0x2acf66[_0x39ae39(0x17f)]);_0x2acf66[_0x39ae39(0x10f)]!==_0x39ae39(0x149)&&console[_0x39ae39(0x11b)](_0x39ae39(0x12f)+_0x2acf66[_0x39ae39(0x108)]);console[_0x39ae39(0x11b)](),console['log'](a124_0x1e0b6b[_0x39ae39(0x178)](_0x39ae39(0x16a))),console[_0x39ae39(0x11b)](a124_0x1e0b6b[_0x39ae39(0x159)](_0x39ae39(0x126)['repeat'](0x1e)));const _0x20e40b=getGlobalConfigPath(),_0x805553=getProjectConfigPath();console[_0x39ae39(0x11b)]('\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x20e40b||a124_0x1e0b6b[_0x39ae39(0x159)]('(not\x20found)'))),console[_0x39ae39(0x11b)](_0x39ae39(0x139)+(_0x805553||a124_0x1e0b6b[_0x39ae39(0x159)](_0x39ae39(0x101)))),console[_0x39ae39(0x11b)](),console[_0x39ae39(0x11b)](a124_0x1e0b6b[_0x39ae39(0x178)](_0x39ae39(0x129))),console['log'](a124_0x1e0b6b[_0x39ae39(0x159)](_0x39ae39(0x126)[_0x39ae39(0x13b)](0x1e)));const _0xc2363a=(_0x12efad,_0x5d4ab6)=>{const _0x3c9e1f=_0x39ae39;if(!_0x5d4ab6){console[_0x3c9e1f(0x11b)]('\x20\x20'+_0x12efad['padEnd'](0x11)+'\x20'+a124_0x1e0b6b[_0x3c9e1f(0x159)](_0x3c9e1f(0x189)));return;}const _0xe878da=inspectCliConfigJsonFile(_0x5d4ab6);if(_0xe878da[_0x3c9e1f(0x185)]==='ok')console['log']('\x20\x20'+_0x12efad[_0x3c9e1f(0x131)](0x11)+'\x20'+a124_0x1e0b6b['green']('✓\x20Valid\x20JSON'));else{if(_0xe878da['status']===_0x3c9e1f(0x158))console['log']('\x20\x20'+_0x12efad[_0x3c9e1f(0x131)](0x11)+'\x20'+a124_0x1e0b6b[_0x3c9e1f(0x144)](_0x3c9e1f(0x183)));else _0xe878da[_0x3c9e1f(0x185)]===_0x3c9e1f(0x138)?console[_0x3c9e1f(0x11b)]('\x20\x20'+_0x12efad[_0x3c9e1f(0x131)](0x11)+'\x20'+a124_0x1e0b6b[_0x3c9e1f(0x159)](_0x3c9e1f(0x10c))):(console['log']('\x20\x20'+_0x12efad[_0x3c9e1f(0x131)](0x11)+'\x20'+a124_0x1e0b6b[_0x3c9e1f(0x136)]('✗\x20Invalid\x20JSON')),console['log']('\x20\x20'+''[_0x3c9e1f(0x131)](0x11)+'\x20'+a124_0x1e0b6b['red'](_0xe878da[_0x3c9e1f(0x160)])));}};_0xc2363a(_0x39ae39(0x17e),_0x20e40b),_0xc2363a(_0x39ae39(0x115),_0x805553);const _0x4a5acb=loadRawConfigLayers(),_0x30f83c=[{'label':'Project','value':_0x4a5acb['projectConfig'][_0x39ae39(0x119)],'present':Object[_0x39ae39(0x14d)][_0x39ae39(0x128)][_0x39ae39(0x14f)](_0x4a5acb[_0x39ae39(0x166)],_0x39ae39(0x119)),'repairCommand':CLI_BIN_NAME+_0x39ae39(0x17b)},{'label':_0x39ae39(0x17e),'value':_0x4a5acb[_0x39ae39(0x18a)][_0x39ae39(0x119)],'present':Object['prototype']['hasOwnProperty'][_0x39ae39(0x14f)](_0x4a5acb[_0x39ae39(0x18a)],_0x39ae39(0x119)),'repairCommand':CLI_BIN_NAME+_0x39ae39(0x105)}][_0x39ae39(0x12e)](_0x59217b=>_0x59217b[_0x39ae39(0x184)]&&isInvalidLovrabetRegion(_0x59217b[_0x39ae39(0x181)]));for(const [_0x4d6311,_0x384226]of[[_0x39ae39(0x115),_0x4a5acb[_0x39ae39(0x166)]],[_0x39ae39(0x17e),_0x4a5acb['globalConfig']]]){const _0x2b7fb4=_0x384226[_0x39ae39(0x146)]&&typeof _0x384226[_0x39ae39(0x146)]===_0x39ae39(0x182)?_0x384226[_0x39ae39(0x146)]:{};for(const [_0x446f05,_0x511f30]of Object[_0x39ae39(0x143)](_0x2b7fb4)){if(!_0x511f30||typeof _0x511f30!==_0x39ae39(0x182)||!Object[_0x39ae39(0x14d)][_0x39ae39(0x128)][_0x39ae39(0x14f)](_0x511f30,_0x39ae39(0x119)))continue;isInvalidLovrabetRegion(_0x511f30[_0x39ae39(0x119)])&&_0x30f83c[_0x39ae39(0x12d)]({'label':_0x4d6311+_0x39ae39(0x157)+_0x446f05+'\x22','value':_0x511f30['region'],'present':!![],'repairCommand':_0x39ae39(0x11f)+_0x446f05+_0x39ae39(0xfb)+_0x4d6311['toLowerCase']()+'\x20config'});}}if(_0x30f83c[_0x39ae39(0x12a)]>0x0){console[_0x39ae39(0x11b)](),console[_0x39ae39(0x11b)](a124_0x1e0b6b[_0x39ae39(0x178)]('\x20\x20Country/Region\x20Configuration')),console[_0x39ae39(0x11b)](a124_0x1e0b6b[_0x39ae39(0x159)](_0x39ae39(0x126)[_0x39ae39(0x13b)](0x1e)));for(const _0x1365d9 of _0x30f83c){console['log']('\x20\x20'+_0x1365d9[_0x39ae39(0x161)][_0x39ae39(0x131)](0x11)+'\x20'+a124_0x1e0b6b[_0x39ae39(0x136)](_0x39ae39(0x127)+describeRegionValue(_0x1365d9['value']))),console['log']('\x20\x20'+(_0x39ae39(0x177)+_0x1365d9['label'][_0x39ae39(0x18d)]()+':')[_0x39ae39(0x131)](0x10)+'\x20'+_0x1365d9['repairCommand']);}}const _0x1bd26a=[Object[_0x39ae39(0x14d)][_0x39ae39(0x128)]['call'](_0x4a5acb[_0x39ae39(0x18a)],_0x39ae39(0x120))?_0x39ae39(0x104):null,Object['prototype']['hasOwnProperty'][_0x39ae39(0x14f)](_0x4a5acb['projectConfig'],_0x39ae39(0x120))?_0x39ae39(0x111):null][_0x39ae39(0x12e)](Boolean);_0x1bd26a[_0x39ae39(0x12a)]>0x0&&(console[_0x39ae39(0x11b)](_0x39ae39(0x162)+a124_0x1e0b6b['yellow'](_0x39ae39(0x18b)+_0x1bd26a['join'](_0x39ae39(0x130))+_0x39ae39(0x15f))),_0x1bd26a['includes'](_0x39ae39(0x111))&&console[_0x39ae39(0x11b)](_0x39ae39(0x140)+CLI_BIN_NAME+_0x39ae39(0x187)),_0x1bd26a[_0x39ae39(0x10d)](_0x39ae39(0x104))&&console[_0x39ae39(0x11b)](_0x39ae39(0x10e)+CLI_BIN_NAME+'\x20config\x20delete\x20inherit\x20--global'));const _0x173f8d=isInvalidLovrabetRegion(_0x5ea386[_0x39ae39(0x16b)]??_0x5ea386[_0x39ae39(0x173)]?.[_0x39ae39(0x119)]);_0x4a132f&&!_0x173f8d&&(console['log'](),console[_0x39ae39(0x11b)](a124_0x1e0b6b[_0x39ae39(0x178)]('\x20\x20Routing\x20Configuration')),console[_0x39ae39(0x11b)](a124_0x1e0b6b['gray'](_0x39ae39(0x126)[_0x39ae39(0x13b)](0x1e))),console[_0x39ae39(0x11b)](_0x39ae39(0x13a)+a124_0x1e0b6b[_0x39ae39(0x136)](_0x39ae39(0x13c))),console[_0x39ae39(0x11b)](_0x39ae39(0x154)+_0x4a132f[_0x39ae39(0x160)]),Object[_0x39ae39(0x14d)]['hasOwnProperty'][_0x39ae39(0x14f)](_0x4a5acb[_0x39ae39(0x166)],_0x39ae39(0x151))&&console[_0x39ae39(0x11b)](_0x39ae39(0x103)+CLI_BIN_NAME+_0x39ae39(0x114)),Object[_0x39ae39(0x14d)][_0x39ae39(0x128)][_0x39ae39(0x14f)](_0x4a5acb[_0x39ae39(0x18a)],'routing')&&console[_0x39ae39(0x11b)](_0x39ae39(0x11a)+CLI_BIN_NAME+_0x39ae39(0x14b)));console['log'](),console[_0x39ae39(0x11b)](a124_0x1e0b6b[_0x39ae39(0x178)]('\x20\x20Merged\x20Config')),console[_0x39ae39(0x11b)](a124_0x1e0b6b[_0x39ae39(0x159)]('\x20\x20─'['repeat'](0x1e))),console[_0x39ae39(0x11b)](_0x39ae39(0x117)+(_0x5ea386[_0x39ae39(0x164)]||a124_0x1e0b6b[_0x39ae39(0x136)](_0x39ae39(0x110))));const _0xe1a76c=_0x173f8d?a124_0x1e0b6b['red'](describeRegionValue(_0x5ea386[_0x39ae39(0x16b)]??_0x5ea386[_0x39ae39(0x173)]?.[_0x39ae39(0x119)])+_0x39ae39(0x172)):(_0x5ea386[_0x39ae39(0x119)]??DEFAULT_LOVRABET_REGION)+'\x20('+(_0x5ea386['regionSource']??'default')+')';console[_0x39ae39(0x11b)](_0x39ae39(0x106)+_0xe1a76c),console['log']('\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x5ea386[_0x39ae39(0x14a)]),console['log']('\x20\x20app\x20locale:\x20\x20\x20\x20\x20\x20'+_0x5ea386[_0x39ae39(0x17a)]),console[_0x39ae39(0x11b)]('\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x5ea386[_0x39ae39(0x17d)]),console['log'](_0x39ae39(0x190)+(_0x5ea386[_0x39ae39(0x12b)]||a124_0x1e0b6b['gray'](_0x39ae39(0x141)))),console['log'](_0x39ae39(0x17c)+(_0x5ea386['currentApp']||a124_0x1e0b6b[_0x39ae39(0x159)](_0x39ae39(0x141)))),console[_0x39ae39(0x11b)](_0x39ae39(0x18c)+(_0x5ea386[_0x39ae39(0x123)]||a124_0x1e0b6b['gray'](_0x39ae39(0x141)))),console['log'](_0x39ae39(0x15b)+(_0x5ea386[_0x39ae39(0x15e)]||a124_0x1e0b6b['gray'](_0x39ae39(0x153)+DEFAULT_CONFIG_VALUES[_0x39ae39(0x15e)]+')'))),console[_0x39ae39(0x11b)](_0x39ae39(0x18e)+(_0x5ea386[_0x39ae39(0x113)]??a124_0x1e0b6b[_0x39ae39(0x159)]('(default)'))),console[_0x39ae39(0x11b)](_0x39ae39(0x121)+_0x5ea386[_0x39ae39(0x15c)]),console[_0x39ae39(0x11b)](_0x39ae39(0x10b)+_0x5ea386[_0x39ae39(0x12c)]),console[_0x39ae39(0x11b)](_0x39ae39(0x14e)+(_0x5ea386[_0x39ae39(0x170)]?a124_0x1e0b6b[_0x39ae39(0x147)](_0x39ae39(0x150)+_0x5ea386[_0x39ae39(0x170)][_0x39ae39(0x12a)]+')'):_0x41be03?a124_0x1e0b6b[_0x39ae39(0x147)](_0x39ae39(0x107)+_0x41be03['length']+')'):a124_0x1e0b6b[_0x39ae39(0x159)](_0x39ae39(0x141))));const _0x4ca3a4=Object[_0x39ae39(0x102)](_0x5ea386[_0x39ae39(0x146)]);if(_0x4ca3a4['length']>0x0){console[_0x39ae39(0x11b)](),console[_0x39ae39(0x11b)](a124_0x1e0b6b[_0x39ae39(0x178)]('\x20\x20Apps')),console[_0x39ae39(0x11b)](a124_0x1e0b6b['gray']('\x20\x20─'['repeat'](0x1e)));for(const _0x9630d5 of _0x4ca3a4){const _0x319848=_0x5ea386[_0x39ae39(0x146)][_0x9630d5],_0x136656=_0x9630d5===_0x5ea386[_0x39ae39(0x12b)],_0x2c3d6b=_0x9630d5===_0x5ea386['currentApp'],_0x2b0004=_0x2c3d6b?a124_0x1e0b6b[_0x39ae39(0x147)]('\x20←\x20current'):'',_0x18434f=_0x136656?'\x20(default)':'';console[_0x39ae39(0x11b)]('\x20\x20'+_0x9630d5+_0x18434f+_0x2b0004),console[_0x39ae39(0x11b)](_0x39ae39(0x148)+_0x319848[_0x39ae39(0x176)]);const _0x5b08b1=_0x4a5acb['projectConfig'][_0x39ae39(0x146)]&&typeof _0x4a5acb[_0x39ae39(0x166)]['apps']===_0x39ae39(0x182)?_0x4a5acb[_0x39ae39(0x166)]['apps']:{},_0x55d7d2=Object[_0x39ae39(0x14d)][_0x39ae39(0x128)][_0x39ae39(0x14f)](_0x5b08b1,_0x9630d5),_0x56c236=isInvalidLovrabetRegion(_0x319848[_0x39ae39(0x119)])?{'region':_0x5ea386[_0x39ae39(0x119)]??DEFAULT_LOVRABET_REGION}:resolveEffectiveRegion({'appRegion':_0x319848['region'],'projectRegion':_0x55d7d2?_0x4a5acb[_0x39ae39(0x166)]['region']:undefined,'globalRegion':_0x4a5acb['globalConfig'][_0x39ae39(0x119)],'mergedRegion':_0x5ea386[_0x39ae39(0x173)]['region'],'appName':_0x9630d5}),_0x4b129e=buildAppDoctorFields(_0x319848,{'region':_0x56c236[_0x39ae39(0x119)],'env':_0x5ea386[_0x39ae39(0x14a)],'apiDir':_0x5ea386[_0x39ae39(0x173)][_0x39ae39(0x17d)]||DEFAULT_CONFIG_VALUES['apiDir'],'cookie':_0x5ea386[_0x39ae39(0x170)]||_0x41be03||undefined,'accessKey':_0x5ea386['accessKey']});console[_0x39ae39(0x11b)](_0x39ae39(0x16f)+_0x4b129e[_0x39ae39(0x119)][_0x39ae39(0x181)]+'\x20\x20'+a124_0x1e0b6b['gray']('('+_0x4b129e[_0x39ae39(0x119)][_0x39ae39(0x179)]+')')),console['log'](_0x39ae39(0x174)+_0x4b129e[_0x39ae39(0x14a)][_0x39ae39(0x181)]+'\x20\x20'+a124_0x1e0b6b[_0x39ae39(0x159)]('('+_0x4b129e['env'][_0x39ae39(0x179)]+')')),console['log']('\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20'+_0x4b129e[_0x39ae39(0x17d)][_0x39ae39(0x181)]+'\x20\x20'+a124_0x1e0b6b[_0x39ae39(0x159)]('('+_0x4b129e[_0x39ae39(0x17d)][_0x39ae39(0x179)]+')'));const _0x1e173b=_0x4b129e[_0x39ae39(0x170)][_0x39ae39(0x181)]?a124_0x1e0b6b[_0x39ae39(0x147)]('(set,\x20length='+_0x4b129e[_0x39ae39(0x170)][_0x39ae39(0x181)]['length']+')'):a124_0x1e0b6b[_0x39ae39(0x159)](_0x39ae39(0x141));console[_0x39ae39(0x11b)](_0x39ae39(0x124)+_0x1e173b+'\x20\x20'+a124_0x1e0b6b['gray']('('+_0x4b129e[_0x39ae39(0x170)][_0x39ae39(0x179)]+')'));const _0x2938f9=_0x4b129e[_0x39ae39(0xfe)][_0x39ae39(0x181)]?a124_0x1e0b6b[_0x39ae39(0x147)](_0x39ae39(0x150)+_0x4b129e[_0x39ae39(0xfe)][_0x39ae39(0x181)][_0x39ae39(0x12a)]+')'):a124_0x1e0b6b['gray'](_0x39ae39(0x141));console[_0x39ae39(0x11b)](_0x39ae39(0x191)+_0x2938f9+'\x20\x20'+a124_0x1e0b6b[_0x39ae39(0x159)]('('+_0x4b129e['accessKey']['source']+')'));}}console[_0x39ae39(0x11b)](),console['log'](a124_0x1e0b6b[_0x39ae39(0x178)](_0x39ae39(0x168))),console['log'](a124_0x1e0b6b[_0x39ae39(0x159)](_0x39ae39(0x126)[_0x39ae39(0x13b)](0x1e)));_0x4a132f?console[_0x39ae39(0x11b)](_0x39ae39(0x13a)+a124_0x1e0b6b[_0x39ae39(0x136)](_0x39ae39(0x116))):(console[_0x39ae39(0x11b)](_0x39ae39(0x106)+getActiveRegion()),console[_0x39ae39(0x11b)](_0x39ae39(0x125)+getApiDomain()),console[_0x39ae39(0x11b)]('\x20\x20userDomain:\x20\x20\x20\x20\x20\x20'+getUserDomain()),console[_0x39ae39(0x11b)](_0x39ae39(0x180)+getRuntimeDomain()),console[_0x39ae39(0x11b)](_0x39ae39(0x13f)+getSkillDomain()),console[_0x39ae39(0x11b)](_0x39ae39(0xff)+getKbDomain()),console[_0x39ae39(0x11b)](_0x39ae39(0x10a)+(getKbServiceDomain()??'not\x20configured')),console['log'](_0x39ae39(0x155)+getAppDomain()));console[_0x39ae39(0x11b)](),console['log'](a124_0x1e0b6b[_0x39ae39(0x178)](_0x39ae39(0x13d))),console[_0x39ae39(0x11b)](a124_0x1e0b6b[_0x39ae39(0x159)]('\x20\x20─'[_0x39ae39(0x13b)](0x1e)));if(_0x4a132f)console['log']('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a124_0x1e0b6b[_0x39ae39(0x144)](_0x39ae39(0x142)));else{if(_0x41be03){const _0x55bedc=await getIsSessionValid();console['log'](_0x39ae39(0x13a)+(_0x55bedc?a124_0x1e0b6b['green'](_0x39ae39(0xfc)):a124_0x1e0b6b[_0x39ae39(0x136)](_0x39ae39(0x137))));}else console['log'](_0x39ae39(0x13a)+a124_0x1e0b6b[_0x39ae39(0x136)]('✗\x20Not\x20logged\x20in'));}return console['log'](),{'ok':!![]};}export const doctorDefinition={'service':a124_0x122c58(0x122),'command':'check','description':'Diagnose\x20CLI\x20configuration\x20and\x20connectivity','risk':a124_0x122c58(0x186),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a125_0x455adc=a125_0x1fbd;(function(_0x227ce5,_0x31b5e8){const _0x263afe=a125_0x1fbd,_0x2334a7=_0x227ce5();while(!![]){try{const _0x1af32a=parseInt(_0x263afe(0xe2))/0x1+-parseInt(_0x263afe(0xdc))/0x2+-parseInt(_0x263afe(0xde))/0x3+-parseInt(_0x263afe(0xda))/0x4+-parseInt(_0x263afe(0xd8))/0x5*(-parseInt(_0x263afe(0xf8))/0x6)+parseInt(_0x263afe(0xdd))/0x7+parseInt(_0x263afe(0xf2))/0x8*(-parseInt(_0x263afe(0xd7))/0x9);if(_0x1af32a===_0x31b5e8)break;else _0x2334a7['push'](_0x2334a7['shift']());}catch(_0x48831b){_0x2334a7['push'](_0x2334a7['shift']());}}}(a125_0x7323,0x198b1));function a125_0x1fbd(_0x2c6e78,_0x288e4b){_0x2c6e78=_0x2c6e78-0xd6;const _0x73238a=a125_0x7323();let _0x1fbd09=_0x73238a[_0x2c6e78];return _0x1fbd09;}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':a125_0x455adc(0xe1),'type':a125_0x455adc(0xe4),'required':!![],'description':a125_0x455adc(0xf0)},FILEPATH_FLAG={'name':a125_0x455adc(0xf5),'type':'string','required':!![],'description':a125_0x455adc(0xe3)},DOWNLOAD_FLAG={'name':a125_0x455adc(0xec),'type':a125_0x455adc(0xd6),'description':'Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL'},LONG_TERM_FLAG={'name':a125_0x455adc(0xe6),'type':a125_0x455adc(0xd6),'description':a125_0x455adc(0xf3)};function requireFilePath(_0x4d745b){const _0x5205cc=a125_0x455adc,_0x3ebb76=_0x4d745b['trim']();if(!_0x3ebb76)throw CliErrors[_0x5205cc(0xf4)](_0x5205cc(0xdb));return _0x3ebb76;}const fileUpload={'service':a125_0x455adc(0xe1),'command':a125_0x455adc(0xee),'description':a125_0x455adc(0xf9),'risk':a125_0x455adc(0xfa),'flags':[FILE_FLAG],async 'dryRun'(_0xe932f7){const _0x253e55=a125_0x455adc,_0x1e0d87=requireDevelopmentUploadFile(_0xe932f7[_0x253e55(0xe5)](_0x253e55(0xe1)),_0x253e55(0xea));return{'method':_0x253e55(0xe0),'url':_0x253e55(0xe9),'body':{'appCode':_0xe932f7[_0x253e55(0xe7)],'multipart':{'file':_0x1e0d87}},'description':_0x253e55(0xef)+_0x1e0d87['path']+_0x253e55(0xed)+_0xe932f7[_0x253e55(0xe7)]};},async 'execute'(_0x37aadc){const _0x2b79d8=a125_0x455adc,_0x50c916=requireDevelopmentUploadFile(_0x37aadc[_0x2b79d8(0xe5)](_0x2b79d8(0xe1)),_0x2b79d8(0xea)),_0x26860d=await uploadDevelopmentFile(_0x37aadc[_0x2b79d8(0xe7)],_0x50c916[_0x2b79d8(0xe8)]);return{'ok':!![],'data':_0x26860d,'message':_0x26860d[_0x2b79d8(0xd9)]?_0x2b79d8(0xf7)+_0x26860d[_0x2b79d8(0xd9)]+_0x2b79d8(0xf6):_0x2b79d8(0xdf)};}},fileQueryUrl={'service':a125_0x455adc(0xe1),'command':a125_0x455adc(0xeb),'description':'Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20or\x20immediate\x20access','risk':a125_0x455adc(0xfa),'flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0x1cbe3e){const _0x374549=a125_0x455adc,_0x4348e2=requireFilePath(_0x1cbe3e[_0x374549(0xe5)]('filepath')),_0x4d63c7=await queryDevelopmentFileUrl(_0x4348e2,{'download':_0x1cbe3e['bool'](_0x374549(0xec)),'longTerm':_0x1cbe3e[_0x374549(0xf1)](_0x374549(0xe6))});return{'ok':!![],'data':_0x4d63c7};}};export const fileDefinitions=[fileUpload,fileQueryUrl];function a125_0x7323(){const _0x2300c0=['Preview:\x20upload\x20','Path\x20to\x20the\x20local\x20file\x20to\x20upload','bool','58184XVchRf','Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML','validation','filepath','.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','Uploaded\x20file:\x20','23802TEtDOu','Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','read','boolean','9iYeTxt','220MRALkp','filePath','368812MyBpMN','filePath\x20is\x20required.','11050yTGIMi','159621AeeqoG','50745rPJzru','Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','POST','file','29190xLNOiR','Development\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data','string','str','long-term','appCode','path','/smartapi/common/uploadFile','File','query-url','download','\x20to\x20development\x20app\x20','upload'];a125_0x7323=function(){return _0x2300c0;};return a125_0x7323();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a126_0x263037=a126_0x51cf;(function(_0x4c6ef6,_0x3a5203){const _0x70f873=a126_0x51cf,_0x50fa91=_0x4c6ef6();while(!![]){try{const _0x4b2085=parseInt(_0x70f873(0x13b))/0x1+parseInt(_0x70f873(0x143))/0x2*(-parseInt(_0x70f873(0x136))/0x3)+-parseInt(_0x70f873(0x144))/0x4+-parseInt(_0x70f873(0x13f))/0x5*(parseInt(_0x70f873(0x141))/0x6)+-parseInt(_0x70f873(0x139))/0x7*(parseInt(_0x70f873(0x13a))/0x8)+-parseInt(_0x70f873(0x145))/0x9+-parseInt(_0x70f873(0x13d))/0xa*(-parseInt(_0x70f873(0x13e))/0xb);if(_0x4b2085===_0x3a5203)break;else _0x50fa91['push'](_0x50fa91['shift']());}catch(_0x48f875){_0x50fa91['push'](_0x50fa91['shift']());}}}(a126_0x412c,0xc0e00));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{asDryRunResult}from'../../commands/common/dry-run.js';import{createFlowDefinition}from'../../core/api-client.js';function a126_0x51cf(_0x593df2,_0x33ae5f){_0x593df2=_0x593df2-0x135;const _0x412c17=a126_0x412c();let _0x51cf6e=_0x412c17[_0x593df2];return _0x51cf6e;}import{FLOW_FILE_FLAG,FLOW_PATHS,buildFlowUrl,confirmFlowWrite,flowSelector,prepareFlowWrite,readFlowFilePath}from'../../commands/flow/shared.js';export const flowCreate={'service':a126_0x263037(0x147),'command':a126_0x263037(0x137),'description':'Create\x20a\x20draft\x20flow\x20definition\x20from\x20a\x20local\x20FlowConfig\x20file','risk':a126_0x263037(0x135),'flags':[FLOW_FILE_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x47fdee){readFlowFilePath(_0x47fdee);},async 'dryRun'(_0x11813e){const _0x2fb620=a126_0x263037,{request:_0x110e3d,warnings:_0x4fb786}=await prepareFlowWrite(readFlowFilePath(_0x11813e),_0x11813e[_0x2fb620(0x148)]);return asDryRunResult({'operation':'create','selector':{'appCode':_0x11813e['appCode'],'flowName':_0x110e3d[_0x2fb620(0x146)],..._0x110e3d[_0x2fb620(0x13c)]?{'datasetCode':_0x110e3d[_0x2fb620(0x13c)]}:{}},'before':null,'after':_0x110e3d,'request':_0x110e3d,'dryRun':!![],'backend':{'method':_0x2fb620(0x138),'path':FLOW_PATHS[_0x2fb620(0x137)]},'warnings':_0x4fb786},{'method':_0x2fb620(0x138),'url':FLOW_PATHS[_0x2fb620(0x137)]});},async 'execute'(_0x10f76c){const _0x24d6d7=a126_0x263037,{request:_0x271684,warnings:_0x51b3cd}=await prepareFlowWrite(readFlowFilePath(_0x10f76c),_0x10f76c['appCode']);await confirmFlowWrite(_0x10f76c,_0x24d6d7(0x137),_0x271684);const _0x5b90d3=await createFlowDefinition(_0x271684),_0x29501b=buildFlowUrl(_0x10f76c[_0x24d6d7(0x148)],_0x5b90d3['id']),_0x13c913=''+(_0x5b90d3[_0x24d6d7(0x146)]||_0x271684[_0x24d6d7(0x146)])+(_0x5b90d3['id']?_0x24d6d7(0x142)+_0x5b90d3['id']+')':'');return{'ok':!![],'data':{'operation':_0x24d6d7(0x137),'selector':flowSelector(_0x10f76c[_0x24d6d7(0x148)],_0x5b90d3['id'],_0x5b90d3),'before':null,'after':_0x5b90d3,'flowUrl':_0x29501b,'dryRun':![],'backend':{'method':_0x24d6d7(0x138),'path':FLOW_PATHS[_0x24d6d7(0x137)]},'warnings':_0x51b3cd},'message':'Created\x20flow\x20'+_0x13c913+_0x24d6d7(0x140)+_0x29501b};}};function a126_0x412c(){const _0x40514a=['388138kciEsi','datasetCode','10vxBOsu','43504505fXEWbF','3176485MuwcOj','.\x20Flow\x20URL:\x20','12RSiclU','\x20(id=','866fpRjfE','27996ZutZdi','9123498UhRKhP','flowName','flow','appCode','write','8304sulJdW','create','POST','3031lZjVYq','1168RgnWVO'];a126_0x412c=function(){return _0x40514a;};return a126_0x412c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a127_0x13ed7e=a127_0x792d;(function(_0x274250,_0x4c6134){const _0x5b95d5=a127_0x792d,_0x3af751=_0x274250();while(!![]){try{const _0x1b9f29=-parseInt(_0x5b95d5(0x146))/0x1*(parseInt(_0x5b95d5(0x131))/0x2)+parseInt(_0x5b95d5(0x139))/0x3+parseInt(_0x5b95d5(0x133))/0x4*(parseInt(_0x5b95d5(0x130))/0x5)+parseInt(_0x5b95d5(0x147))/0x6*(-parseInt(_0x5b95d5(0x141))/0x7)+-parseInt(_0x5b95d5(0x143))/0x8*(-parseInt(_0x5b95d5(0x148))/0x9)+-parseInt(_0x5b95d5(0x12a))/0xa*(-parseInt(_0x5b95d5(0x13d))/0xb)+-parseInt(_0x5b95d5(0x136))/0xc*(-parseInt(_0x5b95d5(0x142))/0xd);if(_0x1b9f29===_0x4c6134)break;else _0x3af751['push'](_0x3af751['shift']());}catch(_0x21ee8a){_0x3af751['push'](_0x3af751['shift']());}}}(a127_0x512c,0xb7998));import{mkdir,stat}from'node:fs/promises';import{dirname,resolve}from'node:path';function a127_0x512c(){const _0x57e7fb=['Get\x20one\x20design-time\x20flow\x20definition','2520iAurKa','flowCode','FlowConfig\x20output\x20already\x20exists:\x20','1078608rSZCOb','Pass\x20--force\x20to\x20overwrite\x20it.','boolean','2057514TryReh','read','path','Overwrite\x20an\x20existing\x20output\x20file','33ZQpWwE','appCode','\x20to\x20','trim','343RFaOzq','65KXHsnp','24irhWsp','output','config','29IpLgDz','98574hGmjUf','137601clIPvT','code','str','bool','force','4170630iGFizu','ENOENT','warnings','flowName','Wrote\x20FlowConfig\x20for\x20','Flow\x20','2985nxFwtQ','86302kEtyai'];a127_0x512c=function(){return _0x57e7fb;};return a127_0x512c();}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';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':'flow','command':'detail','description':a127_0x13ed7e(0x132),'risk':a127_0x13ed7e(0x13a),'flags':[FLOW_ID_FLAG,{'name':a127_0x13ed7e(0x144),'type':'string','description':'Write\x20a\x20portable\x20normalized\x20FlowConfig\x20JSON\x20file'},{'name':a127_0x13ed7e(0x129),'type':a127_0x13ed7e(0x138),'description':a127_0x13ed7e(0x13c)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x222b59){readFlowId(_0x222b59);},async 'execute'(_0x85c89b){const _0x26ac95=a127_0x13ed7e,_0x4cc0e4=readFlowId(_0x85c89b),_0x13ce05=_0x85c89b[_0x26ac95(0x127)](_0x26ac95(0x144))[_0x26ac95(0x140)](),_0x4b6841=_0x13ce05?resolve(_0x13ce05):undefined;if(_0x4b6841&&!_0x85c89b[_0x26ac95(0x128)]('force')&&await fileExists(_0x4b6841))throw CliErrors['validation'](_0x26ac95(0x135)+_0x4b6841,_0x26ac95(0x137));const _0x441998=await getFlowDefinition(_0x85c89b[_0x26ac95(0x13e)],_0x4cc0e4);let _0x360b2a;if(_0x4b6841){const _0x41726c=flowDefinitionToConfig(_0x441998);await mkdir(dirname(_0x4b6841),{'recursive':!![]});try{await writeNormalizedFlowConfig(_0x4b6841,_0x41726c[_0x26ac95(0x145)],{'overwrite':_0x85c89b[_0x26ac95(0x128)]('force')});}catch(_0x37e757){if(isAlreadyExistsError(_0x37e757))throw CliErrors['validation'](_0x26ac95(0x135)+_0x4b6841,_0x26ac95(0x137));throw _0x37e757;}_0x360b2a={'path':_0x4b6841,'warnings':_0x41726c[_0x26ac95(0x12c)]};}return{'ok':!![],'data':{'flow':_0x441998,..._0x360b2a?{'output':_0x360b2a}:{}},'message':_0x360b2a?_0x26ac95(0x12e)+(_0x441998[_0x26ac95(0x12d)]||_0x441998['flowCode']||_0x4cc0e4)+_0x26ac95(0x13f)+_0x360b2a[_0x26ac95(0x13b)]:_0x26ac95(0x12f)+(_0x441998[_0x26ac95(0x12d)]||_0x441998[_0x26ac95(0x134)]||_0x4cc0e4)};}};function a127_0x792d(_0x327d23,_0x314c3d){_0x327d23=_0x327d23-0x126;const _0x512c7c=a127_0x512c();let _0x792dee=_0x512c7c[_0x327d23];return _0x792dee;}async function fileExists(_0x22d0d8){try{return await stat(_0x22d0d8),!![];}catch(_0x25319e){return!isNotFoundError(_0x25319e);}}function isNotFoundError(_0x84eb35){const _0x434bb0=a127_0x13ed7e;return _0x84eb35?.[_0x434bb0(0x126)]===_0x434bb0(0x12b);}function isAlreadyExistsError(_0x29c88b){const _0x58dd8b=a127_0x13ed7e;return _0x29c88b?.[_0x58dd8b(0x126)]==='EEXIST';}
|