@lovrabet/rabetbase-cli 2.5.6-beta.1 → 2.5.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -1
- 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.d.ts +1 -0
- package/lib/commands/dataset/design-context.js +1 -0
- package/lib/commands/dataset/design-start.d.ts +1 -0
- package/lib/commands/dataset/design-start.js +1 -0
- package/lib/commands/dataset/design-status.d.ts +1 -0
- package/lib/commands/dataset/design-status.js +1 -0
- package/lib/commands/dataset/design-sync-retry.d.ts +1 -0
- package/lib/commands/dataset/design-sync-retry.js +1 -0
- package/lib/commands/dataset/design-sync-status.d.ts +1 -0
- package/lib/commands/dataset/design-sync-status.js +1 -0
- package/lib/commands/dataset/design-validate.d.ts +1 -0
- package/lib/commands/dataset/design-validate.js +1 -0
- 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/publish.js +1 -1
- package/lib/commands/flow/runtime-resources-shared.js +1 -1
- package/lib/commands/flow/runtime-role-list.js +1 -1
- package/lib/commands/flow/runtime-role-user-list.js +1 -1
- package/lib/commands/flow/runtime-user-search.js +1 -1
- package/lib/commands/flow/shared.js +1 -1
- package/lib/commands/flow/update.js +1 -1
- package/lib/commands/flow/validate.js +1 -1
- package/lib/commands/instant-api-policy/current.js +1 -1
- package/lib/commands/instant-api-policy/index.js +1 -1
- package/lib/commands/instant-api-policy/init.js +1 -1
- package/lib/commands/instant-api-policy/publish.js +1 -1
- package/lib/commands/instant-api-policy/pull.js +1 -1
- package/lib/commands/instant-api-policy/revision.js +1 -1
- package/lib/commands/instant-api-policy/revisions.js +1 -1
- package/lib/commands/instant-api-policy/rollback.js +1 -1
- package/lib/commands/instant-api-policy/shared.js +1 -1
- package/lib/commands/instant-api-policy/validate.js +1 -1
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/nudge.js +1 -1
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/issue/shared.js +1 -1
- package/lib/commands/kb/create.js +1 -1
- package/lib/commands/kb/delete.js +1 -1
- package/lib/commands/kb/detail.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/kb/list.js +1 -1
- package/lib/commands/kb/search.js +1 -1
- package/lib/commands/kb/shared.js +1 -1
- package/lib/commands/kb/update.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/asset-update.js +1 -1
- package/lib/commands/menu/delete.js +1 -1
- package/lib/commands/menu/external-link-create.js +1 -1
- package/lib/commands/menu/external-link-update.js +1 -1
- package/lib/commands/menu/group-create.js +1 -1
- package/lib/commands/menu/group-update.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/list.js +1 -1
- package/lib/commands/menu/move.js +1 -1
- package/lib/commands/menu/regroup-start.js +1 -1
- package/lib/commands/menu/rename.js +1 -1
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/delete-plan.js +1 -1
- package/lib/commands/menu/shared/facts.js +1 -1
- package/lib/commands/menu/shared/index.js +1 -1
- package/lib/commands/menu/shared/inquirer.js +1 -1
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.js +1 -1
- package/lib/commands/menu/shared/mutations.js +1 -1
- package/lib/commands/menu/shared/path.js +1 -1
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/subapp-assets.js +1 -1
- package/lib/commands/menu/shared/sync-core.js +1 -1
- package/lib/commands/menu/shared/update-core.js +1 -1
- package/lib/commands/menu/shared/valid-url.js +1 -1
- package/lib/commands/menu/subapp-assets-status.js +1 -1
- package/lib/commands/menu/subapp-assets-update.js +1 -1
- package/lib/commands/menu/sync.js +1 -1
- package/lib/commands/menu/visibility-update.js +1 -1
- package/lib/commands/notification/config-create.js +1 -1
- package/lib/commands/notification/config-delete.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/config-update.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/notification/shared.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/page/create.js +1 -1
- package/lib/commands/page/custom/detail.js +1 -1
- package/lib/commands/page/custom/list.js +1 -1
- package/lib/commands/page/custom/publish.js +1 -1
- package/lib/commands/page/custom/shared.js +1 -1
- package/lib/commands/page/custom/syntax.js +1 -1
- package/lib/commands/page/custom/update.js +1 -1
- package/lib/commands/page/data-list-status.js +1 -1
- package/lib/commands/page/generate-start.js +1 -1
- package/lib/commands/page/generate-status.js +1 -1
- package/lib/commands/page/index.js +1 -1
- package/lib/commands/page/pull.js +1 -1
- package/lib/commands/page/push.js +1 -1
- package/lib/commands/page/relation-audit.js +1 -1
- package/lib/commands/page/restore.js +1 -1
- package/lib/commands/page/shared.js +1 -1
- package/lib/commands/page/sync.js +1 -1
- package/lib/commands/project/api-architecture-upgrade.js +1 -1
- package/lib/commands/project/create/enhanced-guided-create.js +1 -1
- package/lib/commands/project/create/format-elapsed.js +1 -1
- package/lib/commands/project/create/main.js +1 -1
- package/lib/commands/project/create/materialize-project-template.js +1 -1
- package/lib/commands/project/create/project-name.js +1 -1
- package/lib/commands/project/create/project-template-archive.js +1 -1
- package/lib/commands/project/create/project-template-path.js +1 -1
- package/lib/commands/project/create/use-copy-project-template.js +1 -1
- package/lib/commands/project/create/use-format-code.js +1 -1
- package/lib/commands/project/create/use-install-dependencies.js +1 -1
- package/lib/commands/project/domain-routing-sync.js +1 -1
- package/lib/commands/project/index.js +1 -1
- package/lib/commands/project/upgrade.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/role/user-resolve.js +1 -1
- package/lib/commands/rule/get.js +1 -1
- package/lib/commands/rule/index.js +1 -1
- package/lib/commands/rule/list.js +1 -1
- package/lib/commands/rule/set.js +1 -1
- package/lib/commands/rule/shared.js +1 -1
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/sql/create.js +1 -1
- package/lib/commands/sql/delete.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/sql/list.js +1 -1
- package/lib/commands/sql/pull.js +1 -1
- package/lib/commands/sql/push.js +1 -1
- package/lib/commands/sql/shared.js +1 -1
- package/lib/commands/sql/status.js +1 -1
- package/lib/commands/sql/validate.js +1 -1
- package/lib/commands/task/index.js +1 -1
- package/lib/commands/task/status.js +1 -1
- package/lib/commands/tenant/index.js +1 -1
- package/lib/commands/tenant/members-list.js +1 -1
- package/lib/commands/tenant/shared.js +1 -1
- package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
- package/lib/commands/user-account/feishu-bind.js +1 -1
- package/lib/commands/user-account/index.js +1 -1
- package/lib/commands/workspace/add.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/commands/workspace/remove.js +1 -1
- package/lib/config/domain-config.js +1 -1
- package/lib/config/project-domain-routing.js +1 -1
- package/lib/config/region-config.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/cdn.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/paths.js +1 -1
- package/lib/constant/region.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/routing-profile.js +1 -1
- package/lib/context/app-resolver.js +1 -1
- package/lib/context/auth-resolver.js +1 -1
- package/lib/context/config-loader.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.d.ts +11 -0
- package/lib/core/api-client.js +1 -1
- package/lib/core/bff/config.js +1 -1
- package/lib/core/bff/file-system.js +1 -1
- package/lib/core/bff/hash.js +1 -1
- package/lib/core/bff/hook-directory.js +1 -1
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/cross-db-analysis.js +1 -1
- package/lib/core/cross-db-relation.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/flow-config.js +1 -1
- package/lib/core/instant-api-policy/config.js +1 -1
- package/lib/core/kb-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.d.ts +17 -0
- package/lib/services/dataset-design/checkpoint.js +1 -0
- package/lib/services/dataset-design/commands.d.ts +6 -0
- package/lib/services/dataset-design/commands.js +1 -0
- package/lib/services/dataset-design/contract.d.ts +7 -0
- package/lib/services/dataset-design/contract.js +1 -0
- package/lib/skills/builtin-skill.js +1 -1
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/skill-presence.js +1 -1
- package/lib/telemetry/cli-command-trace.js +1 -1
- package/lib/telemetry/cli-help-trace.js +1 -1
- package/lib/telemetry/ensure-cli-otel-config.js +1 -1
- package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
- package/lib/telemetry/send-cli-trace-log.js +1 -1
- package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
- package/lib/utils/ai_config.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cdn-config.js +1 -1
- package/lib/utils/check-sdk-version.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/config.js +1 -1
- package/lib/utils/entity-with-id.js +1 -1
- package/lib/utils/file-utils.js +1 -1
- package/lib/utils/guides-cdn.js +1 -1
- package/lib/utils/http-client.js +1 -1
- package/lib/utils/is-non-interactive.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/sleep.js +1 -1
- package/lib/utils/template-replacer.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/with-active-cookie.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +3 -2
- package/skills/rabetbase/SKILL.md +4 -4
- package/skills/rabetbase/references/rabetbase-dataset-design.md +25 -0
- package/skills/rabetbase/references/rabetbase-dataset-generate.md +2 -255
- package/skills/rabetbase-dataset-generation/SKILL.md +45 -0
- package/skills/rabetbase-dataset-generation/references/workflow.md +60 -0
- package/skills/rabetbase-page-generation/SKILL.md +1 -1
- package/skills/rabetbase.manifest.json +4 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x31d449,_0x4f6ed6){const _0x428848=a115_0x55b3,_0x4ddc0c=_0x31d449();while(!![]){try{const _0x1a81e8=parseInt(_0x428848(0x1d0))/0x1+-parseInt(_0x428848(0x1b7))/0x2+parseInt(_0x428848(0x1b4))/0x3*(parseInt(_0x428848(0x1cd))/0x4)+-parseInt(_0x428848(0x1ba))/0x5*(parseInt(_0x428848(0x1d1))/0x6)+-parseInt(_0x428848(0x1b8))/0x7+parseInt(_0x428848(0x1ca))/0x8*(parseInt(_0x428848(0x1d2))/0x9)+-parseInt(_0x428848(0x1c5))/0xa;if(_0x1a81e8===_0x4f6ed6)break;else _0x4ddc0c['push'](_0x4ddc0c['shift']());}catch(_0x4ea153){_0x4ddc0c['push'](_0x4ddc0c['shift']());}}}(a115_0x1f46,0x719b6));function a115_0x1f46(){const _0x4ed21f=['150584FfEmyj','privatekey','10JWRDuj','dbtableConfig','dbId','trim','number','connectionstring','jdbcurl','name','authorization','hasAvailableDo','token','5994200afyxbE','keys','apiError','passwd','/data/er?dbId=','325120nBWWYA','includes','secret','760StGbAL','toLowerCase','Database\x20connection\x20preflight\x20failed.','725445lWtyxd','194154jjErWA','54ZFvLqd','length','[redacted]','tableName','The\x20configuration\x20was\x20not\x20saved.\x20Verify\x20the\x20host,\x20credentials,\x20database\x20name,\x20network,\x20and\x20allowlist,\x20or\x20explicitly\x20pass\x20--skip-connection-test.','map','11967yRSRmT','accesskey','isFinite','1152422SHNbms'];a115_0x1f46=function(){return _0x4ed21f;};return a115_0x1f46();}import{testDbLinkConfigConnect}from'../../core/api-client.js';import{getAppBaseUrl}from'../../constant/domain.js';import{CliErrors}from'../../errors.js';function shouldRedactKey(_0x29e77e){const _0x314c86=a115_0x55b3,_0x5716bc=_0x29e77e[_0x314c86(0x1ce)]();if(_0x5716bc==='password'||_0x5716bc===_0x314c86(0x1c8)||_0x5716bc==='dbpassword')return!![];if(_0x5716bc[_0x314c86(0x1cb)](_0x314c86(0x1cc))||_0x5716bc[_0x314c86(0x1cb)](_0x314c86(0x1c4))||_0x5716bc[_0x314c86(0x1cb)]('credential'))return!![];if(_0x5716bc['includes'](_0x314c86(0x1b9))||_0x5716bc[_0x314c86(0x1cb)](_0x314c86(0x1b5)))return!![];if(_0x5716bc===_0x314c86(0x1c2)||_0x5716bc===_0x314c86(0x1bf)||_0x5716bc===_0x314c86(0x1c0))return!![];return![];}export function sanitizeDbLinkForOutput(_0x5add3a){const _0x310384=a115_0x55b3,_0x34bbe1={..._0x5add3a};delete _0x34bbe1[_0x310384(0x1c3)];for(const _0x53d53e of Object[_0x310384(0x1c6)](_0x34bbe1)){if(!shouldRedactKey(_0x53d53e))continue;const _0x449870=_0x34bbe1[_0x53d53e];_0x449870!=null&&String(_0x449870)['length']>0x0&&(_0x34bbe1[_0x53d53e]=_0x310384(0x1b0));}return _0x34bbe1;}export function sanitizeDbLinkList(_0x559b35){return _0x559b35['map'](_0x1a1ecf=>sanitizeDbLinkForOutput(_0x1a1ecf));}function a115_0x55b3(_0x37f9f5,_0x2dec27){_0x37f9f5=_0x37f9f5-0x1b0;const _0x1f4667=a115_0x1f46();let _0x55b333=_0x1f4667[_0x37f9f5];return _0x55b333;}export function buildDbDatasetDependency(_0x1da66d,_0x100e57){const _0x293aec=a115_0x55b3,_0x3ada2d=_0x100e57['filter'](_0x22e462=>Number(_0x22e462[_0x293aec(0x1bb)]?.[_0x293aec(0x1bc)])===Number(_0x1da66d['id']))[_0x293aec(0x1b3)](_0x49dbe8=>({'id':_0x49dbe8['id'],'code':_0x49dbe8['code'],'name':_0x49dbe8[_0x293aec(0x1c1)],..._0x49dbe8['dbtableConfig']?.['tableName']?{'tableName':_0x49dbe8[_0x293aec(0x1bb)][_0x293aec(0x1b1)]}:{}}));return{'datasetDependency':{'hasDependencies':_0x3ada2d[_0x293aec(0x1d3)]>0x0,'activeDatasetCount':_0x3ada2d[_0x293aec(0x1d3)]},'datasets':_0x3ada2d};}export async function assertDbLinkConnectionPreflight(_0x12e043){const _0xbe40bb=a115_0x55b3,_0x209073=await testDbLinkConfigConnect(_0x12e043);if(_0x209073!==!![])throw CliErrors[_0xbe40bb(0x1c7)](_0xbe40bb(0x1cf),_0xbe40bb(0x1b2));}const DB_URL_PATTERN=/^[^\s:]+(?::\d+)?$/;export function validateDbUrl(_0x194894){const _0x2b2482=a115_0x55b3,_0x34ffd5=_0x194894[_0x2b2482(0x1bd)]();if(!_0x34ffd5)return![];return DB_URL_PATTERN['test'](_0x34ffd5);}export function buildDbPageLinks(_0x1e26d8,_0xa85613){const _0x4e5cca=a115_0x55b3,_0x4a0bde=_0x1e26d8?.[_0x4e5cca(0x1bd)]();if(!_0x4a0bde)return undefined;const _0x26b249=typeof _0xa85613===_0x4e5cca(0x1be)?String(_0xa85613):String(_0xa85613??'')[_0x4e5cca(0x1bd)]();if(!_0x26b249)return undefined;const _0x124065=Number(_0x26b249);if(!Number[_0x4e5cca(0x1b6)](_0x124065)||_0x124065<=0x0)return undefined;const _0x2543a7=getAppBaseUrl(_0x4a0bde),_0x42e56a=encodeURIComponent(String(_0x124065));return{'databasePage':_0x2543a7+'/data/database','erPage':_0x2543a7+_0x4e5cca(0x1c9)+_0x42e56a};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a116_0x21f770=a116_0x3f3c;(function(_0x5a6f64,_0xece144){const _0x31e456=a116_0x3f3c,_0x1d2ee5=_0x5a6f64();while(!![]){try{const _0x45554f=parseInt(_0x31e456(0x18c))/0x1+parseInt(_0x31e456(0x19b))/0x2*(parseInt(_0x31e456(0x18a))/0x3)+-parseInt(_0x31e456(0x19f))/0x4+parseInt(_0x31e456(0x18e))/0x5*(-parseInt(_0x31e456(0x19d))/0x6)+-parseInt(_0x31e456(0x198))/0x7+-parseInt(_0x31e456(0x191))/0x8*(-parseInt(_0x31e456(0x189))/0x9)+parseInt(_0x31e456(0x196))/0xa*(parseInt(_0x31e456(0x1a2))/0xb);if(_0x45554f===_0xece144)break;else _0x1d2ee5['push'](_0x1d2ee5['shift']());}catch(_0x148907){_0x1d2ee5['push'](_0x1d2ee5['shift']());}}}(a116_0x59c9,0xe02bb));import{CliErrors}from'../../errors.js';export const DB_TABLE_PAGE_SIZE=0x64;function a116_0x3f3c(_0x2fa3e0,_0x413de6){_0x2fa3e0=_0x2fa3e0-0x189;const _0x59c9c4=a116_0x59c9();let _0x3f3c8e=_0x59c9c4[_0x2fa3e0];return _0x3f3c8e;}export const DB_TABLE_DIFF_TYPES=['NEW_TABLE',a116_0x21f770(0x19a),a116_0x21f770(0x1a6),a116_0x21f770(0x19e)];function a116_0x59c9(){const _0x1307e7=['5151464szErrM','totalCount','size','22qfZLMw','number','filter','summary','DELETED_TABLE','12658167IbsoHq','69UjArqz','validation','1318214foBPOs','Incomplete\x20db\x20table\x20pagination:\x20collected\x20','8513145LnsvvG','length','physicalTableCount','8TajlPb','tableList','tableName','\x20row(s).','diffType','9700760ngePAH','\x20of\x20','10290840AArQMG','map','MODIFIED_TABLE','62086vyfqfg','datasetTableCount','6BMtyre','ALREADY_ANALYZED'];a116_0x59c9=function(){return _0x1307e7;};return a116_0x59c9();}export function summarizeDbTableDiff(_0x3ef1bb){const _0x572520=a116_0x21f770;return Object['fromEntries'](DB_TABLE_DIFF_TYPES[_0x572520(0x199)](_0x4a23bb=>[_0x4a23bb,_0x3ef1bb[_0x572520(0x1a4)](_0x51f1a3=>_0x51f1a3[_0x572520(0x195)]===_0x4a23bb)[_0x572520(0x18f)]]));}export async function getAllDbTableDiff(_0x5f32b4,_0x445320,_0x27ab57,_0x3d34c2){const _0x2b0e28=a116_0x21f770,_0xa1200e=new Map();let _0x2f4e7a=0x1,_0x2607a4=null;while(!![]){_0x2607a4=await _0x5f32b4(_0x445320,_0x27ab57,{'pageIndex':_0x2f4e7a,'pageSize':DB_TABLE_PAGE_SIZE,'tableName':_0x3d34c2});const _0x12f2fc=_0xa1200e['size'];for(const _0x53b1f2 of _0x2607a4[_0x2b0e28(0x192)]){_0xa1200e['set'](_0x53b1f2[_0x2b0e28(0x193)],_0x53b1f2);}if(_0xa1200e[_0x2b0e28(0x1a1)]>=_0x2607a4[_0x2b0e28(0x1a0)])break;if(_0x2607a4[_0x2b0e28(0x192)][_0x2b0e28(0x18f)]===0x0||_0xa1200e[_0x2b0e28(0x1a1)]===_0x12f2fc)throw CliErrors[_0x2b0e28(0x18b)](_0x2b0e28(0x18d)+_0xa1200e[_0x2b0e28(0x1a1)]+_0x2b0e28(0x197)+_0x2607a4[_0x2b0e28(0x1a0)]+_0x2b0e28(0x194));_0x2f4e7a+=0x1;}return{'totalCount':_0x2607a4?.[_0x2b0e28(0x1a0)]??0x0,...typeof _0x2607a4?.['physicalTableCount']===_0x2b0e28(0x1a3)?{'physicalTableCount':_0x2607a4[_0x2b0e28(0x190)]}:{},...typeof _0x2607a4?.[_0x2b0e28(0x19c)]===_0x2b0e28(0x1a3)?{'datasetTableCount':_0x2607a4[_0x2b0e28(0x19c)]}:{},..._0x2607a4?.[_0x2b0e28(0x1a5)]?{'summary':_0x2607a4[_0x2b0e28(0x1a5)]}:{},'tableList':[..._0xa1200e['values']()]};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a117_0x1a565e=a117_0x29dc;(function(_0x1f3ec1,_0x5852aa){const _0xa08a5=a117_0x29dc,_0xce518f=_0x1f3ec1();while(!![]){try{const _0x315621=parseInt(_0xa08a5(0xcf))/0x1+-parseInt(_0xa08a5(0xbe))/0x2*(-parseInt(_0xa08a5(0xd1))/0x3)+parseInt(_0xa08a5(0xc3))/0x4+-parseInt(_0xa08a5(0xd0))/0x5+parseInt(_0xa08a5(0xc4))/0x6*(parseInt(_0xa08a5(0xd3))/0x7)+-parseInt(_0xa08a5(0xd2))/0x8*(-parseInt(_0xa08a5(0xc5))/0x9)+parseInt(_0xa08a5(0xd4))/0xa*(-parseInt(_0xa08a5(0xc8))/0xb);if(_0x315621===_0x5852aa)break;else _0xce518f['push'](_0xce518f['shift']());}catch(_0x443163){_0xce518f['push'](_0xce518f['shift']());}}}(a117_0x562f,0xb847a));import{getDbTableComparisonPage}from'../../core/api-client.js';function a117_0x29dc(_0x4addf8,_0x3f1f71){_0x4addf8=_0x4addf8-0xbe;const _0x562fe8=a117_0x562f();let _0x29dcc1=_0x562fe8[_0x4addf8];return _0x29dcc1;}import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{getAllDbTableDiff,summarizeDbTableDiff}from'../../commands/db/table-diff-shared.js';export const dbTables={'service':'db','command':a117_0x1a565e(0xca),'description':'List\x20all\x20database\x20table\x20comparison\x20rows\x20and\x20analysis\x20states','risk':a117_0x1a565e(0xcb),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a117_0x1a565e(0xc9),'type':a117_0x1a565e(0xcc),'description':'Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)'}],async 'execute'(_0x207b03){const _0x26df1e=a117_0x1a565e,_0x191a96=_0x207b03[_0x26df1e(0xc7)]('id'),_0x439bc7=_0x207b03[_0x26df1e(0xc6)](_0x26df1e(0xc9))||undefined,_0x31e281=await getAllDbTableDiff(getDbTableComparisonPage,_0x207b03['appCode'],_0x191a96,_0x439bc7),_0x240954=_0x31e281['tableList'];return{'ok':!![],'data':{'dbLinkId':_0x191a96,'totalCount':_0x31e281[_0x26df1e(0xc0)],...typeof _0x31e281['physicalTableCount']==='number'?{'physicalTableCount':_0x31e281[_0x26df1e(0xbf)]}:{},...typeof _0x31e281[_0x26df1e(0xc2)]==='number'?{'datasetTableCount':_0x31e281[_0x26df1e(0xc2)]}:{},..._0x31e281[_0x26df1e(0xce)]?{'summary':_0x31e281[_0x26df1e(0xce)]}:{},'summaryByType':summarizeDbTableDiff(_0x240954),'tables':_0x240954},'message':_0x240954['length']+_0x26df1e(0xc1)+_0x31e281[_0x26df1e(0xc0)]+_0x26df1e(0xcd)+_0x191a96+')'};}};function a117_0x562f(){const _0x15f642=['summary','1402501wZKbcD','5848640KHlweK','286401XWRIEg','1228904nHebCQ','330155jjlYQn','10RvVCCs','10tzOnBD','physicalTableCount','totalCount','\x20table\x20comparison\x20row(s),\x20total\x20','datasetTableCount','1742620TfbuFu','90hfKMsi','9mDfpUU','str','num','13772451JGFFbF','table','tables','read','string','\x20(db\x20link\x20'];a117_0x562f=function(){return _0x15f642;};return a117_0x562f();}
|
package/lib/commands/db/test.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a118_0x2729f7=a118_0x5af1;(function(_0x17de7a,_0x13bb1d){const _0x10e706=a118_0x5af1,_0xef839f=_0x17de7a();while(!![]){try{const _0x19a554=-parseInt(_0x10e706(0x77))/0x1*(parseInt(_0x10e706(0x8a))/0x2)+-parseInt(_0x10e706(0x80))/0x3+parseInt(_0x10e706(0x83))/0x4+-parseInt(_0x10e706(0x8d))/0x5*(parseInt(_0x10e706(0x8c))/0x6)+-parseInt(_0x10e706(0x79))/0x7*(parseInt(_0x10e706(0x7d))/0x8)+parseInt(_0x10e706(0x85))/0x9+parseInt(_0x10e706(0x7e))/0xa;if(_0x19a554===_0x13bb1d)break;else _0xef839f['push'](_0xef839f['shift']());}catch(_0x2ad617){_0xef839f['push'](_0xef839f['shift']());}}}(a118_0x1386,0x979df));import{testDbLinkConnect}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a118_0x5af1(_0x3a161b,_0x3b218e){_0x3a161b=_0x3a161b-0x76;const _0x138677=a118_0x1386();let _0x5af1ce=_0x138677[_0x3a161b];return _0x5af1ce;}function a118_0x1386(){const _0x29ce50=['read','3528760GExazW','num','10428084fSdfpL','\x20(see\x20data.result)','success','object','message','10eXUhgu','keys','3481242AzYBby','5aLklSV','Connection\x20OK\x20for\x20db\x20link\x20','69695nsFfOc','error','14GfyjKU','length','slice','Connection\x20check\x20finished\x20for\x20db\x20link\x20','3400856okNbaf','9555100OazVDg','Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)','1789371AElgef','data'];a118_0x1386=function(){return _0x29ce50;};return a118_0x1386();}function summarizeTestConnectResult(_0xfaab9a){const _0x559b63=a118_0x5af1;if(_0xfaab9a===!![]||_0xfaab9a===![])return{'success':_0xfaab9a};if(_0xfaab9a===null||_0xfaab9a===undefined)return{'type':typeof _0xfaab9a};if(typeof _0xfaab9a!==_0x559b63(0x88))return{'type':typeof _0xfaab9a};const _0x6fc945=_0xfaab9a,_0x823625=[_0x559b63(0x87),_0x559b63(0x89),'code',_0x559b63(0x78),'msg',_0x559b63(0x81)],_0x1d899c={};for(const _0x5719a5 of _0x823625){if(_0x5719a5 in _0x6fc945)_0x1d899c[_0x5719a5]=_0x6fc945[_0x5719a5];}return Object[_0x559b63(0x8b)](_0x1d899c)[_0x559b63(0x7a)]===0x0&&(_0x1d899c[_0x559b63(0x8b)]=Object[_0x559b63(0x8b)](_0x6fc945)[_0x559b63(0x7b)](0x0,0x14)),_0x1d899c;}export const dbTest={'service':'db','command':'test','description':a118_0x2729f7(0x7f),'risk':a118_0x2729f7(0x82),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0xed7bc9){const _0x4e11f1=a118_0x2729f7,_0x5cff6b=_0xed7bc9[_0x4e11f1(0x84)]('id'),_0x53065d=await testDbLinkConnect(_0x5cff6b),_0x367e34=_0x53065d===!![]||typeof _0x53065d===_0x4e11f1(0x88)&&_0x53065d!==null&&_0x53065d['success']===!![],_0x318f30=summarizeTestConnectResult(_0x53065d);return{'ok':!![],'data':{'id':_0x5cff6b,'connected':Boolean(_0x367e34),'result':_0x318f30},'message':_0x367e34?_0x4e11f1(0x76)+_0x5cff6b:_0x4e11f1(0x7c)+_0x5cff6b+_0x4e11f1(0x86)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a119_0x24b20e=a119_0x44ee;(function(_0x7bc6ea,_0x465a2c){const _0x32378a=a119_0x44ee,_0x51410b=_0x7bc6ea();while(!![]){try{const _0x281eeb=-parseInt(_0x32378a(0xd8))/0x1+-parseInt(_0x32378a(0xde))/0x2+parseInt(_0x32378a(0xd7))/0x3*(-parseInt(_0x32378a(0xf2))/0x4)+-parseInt(_0x32378a(0xee))/0x5*(parseInt(_0x32378a(0xdb))/0x6)+-parseInt(_0x32378a(0xf0))/0x7*(-parseInt(_0x32378a(0xd6))/0x8)+-parseInt(_0x32378a(0xe7))/0x9*(parseInt(_0x32378a(0xe3))/0xa)+parseInt(_0x32378a(0xe6))/0xb;if(_0x281eeb===_0x465a2c)break;else _0x51410b['push'](_0x51410b['shift']());}catch(_0xf6534d){_0x51410b['push'](_0x51410b['shift']());}}}(a119_0x5672,0xb458c));function a119_0x5672(){const _0x14fe2e=['update','num','726696zZWrnd','validation','POST','username','Current\x20or\x20replacement\x20password.\x20Required\x20when\x20the\x20stored\x20password\x20is\x20masked','30370gAYDjp','dburl','New\x20host:port','49643616dTBzmn','4167nomGOP','dbDesc','New\x20description','dbparam','has','dbname','[redacted]','20YEYlJs','dbName','98pvUmBf','******','500OANwfm','str','The\x20server\x20returned\x20a\x20masked\x20database\x20password.\x20Pass\x20the\x20current\x20or\x20replacement\x20password\x20explicitly\x20with\x20--password\x20to\x20update\x20this\x20connection\x20safely.','Update\x20a\x20database\x20connection\x20by\x20merging\x20supplied\x20fields\x20into\x20the\x20current\x20server\x20record.\x20A\x20masked\x20server\x20password\x20requires\x20explicit\x20--password','write','bool','string','dbdesc','New\x20username','skip-connection-test','--password\x20must\x20contain\x20the\x20real\x20database\x20password,\x20not\x20a\x20masked\x20value.','/smartapi/dblink/update','176576MMJSzg','13887MrJbXC','1122404exoQlO','trim','password','919284ARhKfX'];a119_0x5672=function(){return _0x14fe2e;};return a119_0x5672();}import{getDbLinkInfo,updateDbLink}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG,SKIP_CONNECTION_TEST_FLAG}from'../../commands/common/flags.js';import{assertDbLinkConnectionPreflight,sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';function a119_0x44ee(_0x3c6581,_0x554560){_0x3c6581=_0x3c6581-0xd5;const _0x5672b8=a119_0x5672();let _0x44eea7=_0x5672b8[_0x3c6581];return _0x44eea7;}const MASKED_PASSWORD_VALUES=new Set([a119_0x24b20e(0xf1),a119_0x24b20e(0xed)]);function mergeDbLinkUpdate(_0x27bf5d,_0x581ed3){const _0x5aa622=a119_0x24b20e,_0x48514a={..._0x27bf5d},_0x106c17=_0x581ed3[_0x5aa622(0xf3)]('password');if(_0x106c17&&MASKED_PASSWORD_VALUES[_0x5aa622(0xeb)](_0x106c17))throw CliErrors[_0x5aa622(0xdf)](_0x5aa622(0xfc));if(!_0x106c17&&MASKED_PASSWORD_VALUES[_0x5aa622(0xeb)](String(_0x27bf5d['password']??'')))throw CliErrors[_0x5aa622(0xdf)](_0x5aa622(0xf4));const _0x323158=_0x581ed3[_0x5aa622(0xf3)]('dbname');if(_0x323158)_0x48514a[_0x5aa622(0xef)]=_0x323158;const _0x53f484=_0x581ed3[_0x5aa622(0xf3)](_0x5aa622(0xe4));if(_0x53f484)_0x48514a['dbUrl']=_0x53f484[_0x5aa622(0xd9)]();const _0x5c18c=_0x581ed3[_0x5aa622(0xf3)](_0x5aa622(0xe1));if(_0x5c18c)_0x48514a['username']=_0x5c18c;if(_0x106c17)_0x48514a[_0x5aa622(0xda)]=_0x106c17;const _0x26d917=_0x581ed3[_0x5aa622(0xf3)](_0x5aa622(0xea));if(_0x26d917)_0x48514a['dbParam']=_0x26d917;const _0x1ebce3=_0x581ed3[_0x5aa622(0xf3)](_0x5aa622(0xf9));if(_0x1ebce3)_0x48514a[_0x5aa622(0xe8)]=_0x1ebce3;return _0x48514a;}export const dbUpdate={'service':'db','command':a119_0x24b20e(0xdc),'description':a119_0x24b20e(0xf5),'risk':a119_0x24b20e(0xf6),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a119_0x24b20e(0xec),'type':'string','description':'New\x20database\x20name'},{'name':a119_0x24b20e(0xe4),'type':a119_0x24b20e(0xf8),'description':a119_0x24b20e(0xe5)},{'name':a119_0x24b20e(0xe1),'type':'string','description':a119_0x24b20e(0xfa)},{'name':a119_0x24b20e(0xda),'type':a119_0x24b20e(0xf8),'description':a119_0x24b20e(0xe2)},{'name':'dbparam','type':a119_0x24b20e(0xf8),'description':'New\x20connection\x20parameter\x20string'},{'name':a119_0x24b20e(0xf9),'type':a119_0x24b20e(0xf8),'description':a119_0x24b20e(0xe9)},SKIP_CONNECTION_TEST_FLAG],async 'validate'(_0x4f5331){const _0x2b4aed=a119_0x24b20e,_0x2996dc=_0x4f5331[_0x2b4aed(0xf3)](_0x2b4aed(0xe4));if(_0x2996dc&&!validateDbUrl(_0x2996dc['trim']()))throw CliErrors['validation']('Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22'+_0x2996dc+'\x22');},async 'dryRun'(_0x304639){const _0x4fe4be=a119_0x24b20e,_0x693ff4=_0x304639[_0x4fe4be(0xdd)]('id'),_0x59d0af=await getDbLinkInfo(_0x693ff4),_0x6dac39=mergeDbLinkUpdate(_0x59d0af,_0x304639),_0x1807aa=sanitizeDbLinkForOutput(_0x6dac39);return{'method':_0x4fe4be(0xe0),'url':_0x4fe4be(0xd5),'body':_0x1807aa,'description':'Preview\x20the\x20merged\x20database\x20connection\x20update;\x20password\x20redacted','connectionPreflight':{'enabled':!_0x304639[_0x4fe4be(0xf7)]('skip-connection-test'),'executed':![]}};},async 'execute'(_0x27dba6){const _0x4b4550=a119_0x24b20e,_0x242f8f=_0x27dba6[_0x4b4550(0xdd)]('id'),_0x8ab6d9=await getDbLinkInfo(_0x242f8f),_0x5a2720=mergeDbLinkUpdate(_0x8ab6d9,_0x27dba6);!_0x27dba6[_0x4b4550(0xf7)](_0x4b4550(0xfb))&&await assertDbLinkConnectionPreflight(_0x5a2720);const {id:_0x374e9d,entity:_0x47d9b4}=normalizeEntityWithIdResponse(await updateDbLink(_0x5a2720));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x47d9b4),'message':'Updated\x20db\x20link\x20'+(_0x374e9d??_0x242f8f)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x576d1f,_0x43e510){const _0x32b019=a120_0x4904,_0x2db801=_0x576d1f();while(!![]){try{const _0x3b986d=-parseInt(_0x32b019(0x86))/0x1*(parseInt(_0x32b019(0x82))/0x2)+-parseInt(_0x32b019(0x84))/0x3+parseInt(_0x32b019(0x8a))/0x4+-parseInt(_0x32b019(0x85))/0x5*(-parseInt(_0x32b019(0x83))/0x6)+parseInt(_0x32b019(0x81))/0x7+parseInt(_0x32b019(0x87))/0x8*(-parseInt(_0x32b019(0x88))/0x9)+parseInt(_0x32b019(0x89))/0xa;if(_0x3b986d===_0x43e510)break;else _0x2db801['push'](_0x2db801['shift']());}catch(_0x25337d){_0x2db801['push'](_0x2db801['shift']());}}}(a120_0x32d5,0x64208));import{deploymentSyncAll}from'../../commands/deployment/sync-all.js';function a120_0x32d5(){const _0x5b94d1=['8912710QWHdUH','765928ISBNEz','2138878huaSLM','82sTkxcn','6VTKoSU','1901391eASIli','1905835btLLHz','10561HpfnQV','19184KpgVyR','1098bcAlPj'];a120_0x32d5=function(){return _0x5b94d1;};return a120_0x32d5();}import{deploymentSyncStatus}from'../../commands/deployment/sync-status.js';function a120_0x4904(_0x60ae38,_0x3928e7){_0x60ae38=_0x60ae38-0x81;const _0x32d5ef=a120_0x32d5();let _0x4904fa=_0x32d5ef[_0x60ae38];return _0x4904fa;}import{deploymentSyncJobs}from'../../commands/deployment/sync-jobs.js';export const deploymentDefinitions=[deploymentSyncAll,deploymentSyncStatus,deploymentSyncJobs];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a121_0x4cc3a6=a121_0x5a29;function a121_0x4e17(){const _0x144eec=['outcome','job','Run\x20with\x20--dry-run\x20first,\x20then\x20add\x20--confirm.','confirm','Deployment\x20sync\x20submission\x20response\x20was\x20unavailable;\x20job\x20creation\x20is\x20unknown.','6WccARt','Backfill\x20or\x20recover\x20all\x20server-supported\x20application\x20metadata','3942384XCcaca','status','5350uqESyA','List\x20recent\x20deployment\x20sync\x20jobs\x20before\x20deciding\x20whether\x20to\x20submit\x20again.','9LDAWGB','unknown','--confirm\x20is\x20required\x20to\x20synchronize\x20all\x20application\x20metadata.','/smartapi/data-sync/submit','3398345trfTae','jobId','validation','Submitted\x20deployment\x20synchronization\x20job\x20','Submit\x20an\x20administrative\x20metadata\x20backfill\x20or\x20recovery\x20synchronization.','write','2603208okRAye','32845986KZJKuj','deployment','not_submitted','Confirm\x20the\x20administrative\x20backfill\x20or\x20recovery\x20synchronization','appCode','POST','application_deployment_sync','not_needed','1653591nGWmEa','defineProperty','No\x20deployment\x20synchronization\x20was\x20needed\x20for\x20this\x20app.','2350348siYyGs'];a121_0x4e17=function(){return _0x144eec;};return a121_0x4e17();}(function(_0x15ae4c,_0x513a56){const _0x10ff91=a121_0x5a29,_0x2e1ca4=_0x15ae4c();while(!![]){try{const _0xeb0887=parseInt(_0x10ff91(0xd8))/0x1*(-parseInt(_0x10ff91(0xd6))/0x2)+-parseInt(_0x10ff91(0xeb))/0x3+-parseInt(_0x10ff91(0xd4))/0x4+-parseInt(_0x10ff91(0xdc))/0x5*(parseInt(_0x10ff91(0xd2))/0x6)+-parseInt(_0x10ff91(0xcc))/0x7+-parseInt(_0x10ff91(0xe2))/0x8+parseInt(_0x10ff91(0xe3))/0x9;if(_0xeb0887===_0x513a56)break;else _0x2e1ca4['push'](_0x2e1ca4['shift']());}catch(_0x58f47c){_0x2e1ca4['push'](_0x2e1ca4['shift']());}}}(a121_0x4e17,0xb694c));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';import{CliError,CliErrors}from'../../errors.js';function a121_0x5a29(_0x266dad,_0x21ca4f){_0x266dad=_0x266dad-0xcc;const _0x4e17a7=a121_0x4e17();let _0x5a298f=_0x4e17a7[_0x266dad];return _0x5a298f;}const SUBMIT_PATH=a121_0x4cc3a6(0xdb),CONFIRM_FLAG={'name':'confirm','type':'boolean','description':a121_0x4cc3a6(0xe6)};export const deploymentSyncAll={'service':a121_0x4cc3a6(0xe4),'command':'sync-all','description':a121_0x4cc3a6(0xd3),'risk':a121_0x4cc3a6(0xe1),'strictFlags':!![],'structuredErrors':!![],'confirmationDescription':a121_0x4cc3a6(0xe0),'flags':[CONFIRM_FLAG,APPCODE_FLAG_OPTIONAL],async 'dryRun'(_0x5d6daa){const _0x4fef00=a121_0x4cc3a6;return asDryRunResult(buildPreview(_0x5d6daa[_0x4fef00(0xe7)]),{'method':_0x4fef00(0xe8),'url':SUBMIT_PATH,'description':'Would\x20submit\x20an\x20administrative\x20deployment\x20metadata\x20backfill\x20or\x20recovery\x20job.'});},async 'execute'(_0x4940ab){const _0x9f4022=a121_0x4cc3a6;if(!_0x4940ab['bool'](_0x9f4022(0xd0)))throw CliErrors[_0x9f4022(0xde)](_0x9f4022(0xda),_0x9f4022(0xcf));try{const _0x3e8b08=await submitDeploymentMetadataSyncAll({'appCode':_0x4940ab[_0x9f4022(0xe7)]});if(_0x3e8b08[_0x9f4022(0xcd)]===_0x9f4022(0xea))return{'ok':!![],'data':{'operation':_0x9f4022(0xe9),'appCode':_0x4940ab[_0x9f4022(0xe7)],'submitted':![],'outcome':_0x9f4022(0xea)},'message':_0x9f4022(0xed)};return{'ok':!![],'data':{'operation':_0x9f4022(0xe9),'appCode':_0x4940ab[_0x9f4022(0xe7)],'submitted':!![],'outcome':'submitted','jobId':_0x3e8b08[_0x9f4022(0xce)][_0x9f4022(0xdd)],'status':_0x3e8b08[_0x9f4022(0xce)][_0x9f4022(0xd5)]},'message':_0x9f4022(0xdf)+_0x3e8b08[_0x9f4022(0xce)][_0x9f4022(0xdd)]+'.'};}catch(_0x398187){if(!isPlatformTransportFailure(_0x398187))throw _0x398187;const _0x476988=new CliError('deployment_sync_submit_outcome_unknown',0x2,_0x9f4022(0xd1),_0x9f4022(0xd7));Object[_0x9f4022(0xec)](_0x476988,'data',{'enumerable':!![],'value':{'operation':_0x9f4022(0xe9),'appCode':_0x4940ab['appCode'],'submitted':null,'outcome':_0x9f4022(0xd9)}});throw _0x476988;}}};function buildPreview(_0x37d49b){const _0x1464ef=a121_0x4cc3a6;return{'operation':_0x1464ef(0xe9),'selector':{'appCode':_0x37d49b,'scope':'all_server_supported_metadata'},'before':null,'after':null,'dryRun':!![],'backend':{'submitted':![],'outcome':_0x1464ef(0xe5)},'warnings':[]};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a122_0x2f33c2=a122_0x2cb2;function a122_0x2cb2(_0x7e4518,_0x1e3b93){_0x7e4518=_0x7e4518-0x136;const _0x3118ff=a122_0x3118();let _0x2cb201=_0x3118ff[_0x7e4518];return _0x2cb201;}(function(_0x407087,_0x3d5f66){const _0x2a4abd=a122_0x2cb2,_0x1409c9=_0x407087();while(!![]){try{const _0x5a8f1f=parseInt(_0x2a4abd(0x155))/0x1*(parseInt(_0x2a4abd(0x146))/0x2)+-parseInt(_0x2a4abd(0x150))/0x3*(-parseInt(_0x2a4abd(0x143))/0x4)+parseInt(_0x2a4abd(0x14d))/0x5+-parseInt(_0x2a4abd(0x13c))/0x6*(-parseInt(_0x2a4abd(0x13f))/0x7)+-parseInt(_0x2a4abd(0x144))/0x8*(-parseInt(_0x2a4abd(0x145))/0x9)+parseInt(_0x2a4abd(0x147))/0xa+-parseInt(_0x2a4abd(0x14a))/0xb;if(_0x5a8f1f===_0x3d5f66)break;else _0x1409c9['push'](_0x1409c9['shift']());}catch(_0x382661){_0x1409c9['push'](_0x1409c9['shift']());}}}(a122_0x3118,0x2f4ec));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{listDeploymentMetadataSyncJobs}from'../../core/api-client.js';function a122_0x3118(){const _0x4dd1e8=['num','str','--page-size\x20must\x20be\x20an\x20integer\x20from\x201\x20to\x20100.','16WPkbEg','264zYflnK','60093gBthvU','112134DQvYoS','3773470gsnExY','List\x20application\x20deployment\x20synchronization\x20jobs','length','14143811RbcqRf','appCode','string','1727355TyFCPh','Found\x20','validation','267594jbznEW','sync-jobs','\x20deployment\x20synchronization\x20job(s).','page-size','status','2uQvpqh','--current-page\x20must\x20be\x20a\x20positive\x20integer.','number','trim','items','Items\x20per\x20page\x20(maximum\x20100)','read','Page\x20number','4218IkqFRZ','current-page','isSafeInteger','672FMOLXI'];a122_0x3118=function(){return _0x4dd1e8;};return a122_0x3118();}import{CliErrors}from'../../errors.js';export const deploymentSyncJobs={'service':'deployment','command':a122_0x2f33c2(0x151),'description':a122_0x2f33c2(0x148),'risk':a122_0x2f33c2(0x13a),'strictFlags':!![],'structuredErrors':!![],'flags':[{'name':'current-page','type':a122_0x2f33c2(0x136),'default':0x1,'description':a122_0x2f33c2(0x13b)},{'name':a122_0x2f33c2(0x153),'type':a122_0x2f33c2(0x136),'default':0xa,'description':a122_0x2f33c2(0x139)},{'name':'status','type':a122_0x2f33c2(0x14c),'description':'Optional\x20server-defined\x20job\x20status\x20filter'},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x386d8f){const _0x2df2c7=a122_0x2f33c2;readPaging(_0x386d8f['num'](_0x2df2c7(0x13d),0x1),_0x386d8f[_0x2df2c7(0x140)](_0x2df2c7(0x153),0xa));},async 'execute'(_0x41c34b){const _0xb0967f=a122_0x2f33c2,{currentPage:_0x442c4e,pageSize:_0x31ea33}=readPaging(_0x41c34b[_0xb0967f(0x140)](_0xb0967f(0x13d),0x1),_0x41c34b['num'](_0xb0967f(0x153),0xa)),_0x53ea74=_0x41c34b[_0xb0967f(0x141)](_0xb0967f(0x154))[_0xb0967f(0x137)](),_0x3480a4=await listDeploymentMetadataSyncJobs({'appCode':_0x41c34b['appCode'],'currentPage':_0x442c4e,'pageSize':_0x31ea33,..._0x53ea74?{'status':_0x53ea74}:{}});return{'ok':!![],'data':{'appCode':_0x41c34b[_0xb0967f(0x14b)],..._0x3480a4},'message':_0xb0967f(0x14e)+_0x3480a4[_0xb0967f(0x138)][_0xb0967f(0x149)]+_0xb0967f(0x152)};}};function readPaging(_0x46bfef,_0x4254d6){const _0x2cdf18=a122_0x2f33c2;if(!Number[_0x2cdf18(0x13e)](_0x46bfef)||_0x46bfef<0x1)throw CliErrors['validation'](_0x2cdf18(0x156));if(!Number['isSafeInteger'](_0x4254d6)||_0x4254d6<0x1||_0x4254d6>0x64)throw CliErrors[_0x2cdf18(0x14f)](_0x2cdf18(0x142));return{'currentPage':_0x46bfef,'pageSize':_0x4254d6};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a123_0x1e01bf=a123_0x2a9b;(function(_0x3e2f73,_0x3f6585){const _0x59e206=a123_0x2a9b,_0x2665c9=_0x3e2f73();while(!![]){try{const _0x45de97=parseInt(_0x59e206(0x161))/0x1*(parseInt(_0x59e206(0x16b))/0x2)+parseInt(_0x59e206(0x15e))/0x3+parseInt(_0x59e206(0x159))/0x4+parseInt(_0x59e206(0x148))/0x5*(-parseInt(_0x59e206(0x163))/0x6)+-parseInt(_0x59e206(0x155))/0x7+-parseInt(_0x59e206(0x150))/0x8+-parseInt(_0x59e206(0x15a))/0x9;if(_0x45de97===_0x3f6585)break;else _0x2665c9['push'](_0x2665c9['shift']());}catch(_0x5ada06){_0x2665c9['push'](_0x2665c9['shift']());}}}(a123_0x42c7,0xa8d90));function a123_0x2a9b(_0x405e4a,_0x463c26){_0x405e4a=_0x405e4a-0x147;const _0x42c71a=a123_0x42c7();let _0x2a9b78=_0x42c71a[_0x405e4a];return _0x2a9b78;}import{getDeploymentMetadataSyncStatus}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const TERMINAL_STATUSES=new Set([a123_0x1e01bf(0x147),a123_0x1e01bf(0x169),a123_0x1e01bf(0x14c)]),ACTIVE_STATUSES=new Set([a123_0x1e01bf(0x15d),a123_0x1e01bf(0x156)]);export const deploymentSyncStatus={'service':a123_0x1e01bf(0x165),'command':a123_0x1e01bf(0x14d),'description':a123_0x1e01bf(0x15c),'risk':a123_0x1e01bf(0x158),'requiresAppCode':!![],'strictFlags':!![],'structuredErrors':!![],'flags':[{'name':'job-id','type':a123_0x1e01bf(0x160),'required':!![],'description':a123_0x1e01bf(0x14a)}],async 'validate'(_0x1ca35e){const _0x5c8a00=a123_0x1e01bf;readJobId(_0x1ca35e[_0x5c8a00(0x162)](_0x5c8a00(0x14f)));},async 'execute'(_0x43c543){const _0x55379a=a123_0x1e01bf,_0xecf764=readJobId(_0x43c543[_0x55379a(0x162)](_0x55379a(0x14f))),_0x755ee4=await getDeploymentMetadataSyncStatus({'jobId':_0xecf764,'appCode':_0x43c543[_0x55379a(0x153)]}),_0x5a4afe=TERMINAL_STATUSES[_0x55379a(0x15f)](_0x755ee4[_0x55379a(0x16a)])?!![]:ACTIVE_STATUSES[_0x55379a(0x15f)](_0x755ee4[_0x55379a(0x16a)])?![]:null,_0x409d01=countBy(_0x755ee4[_0x55379a(0x167)]['map'](_0xa44518=>_0xa44518[_0x55379a(0x154)])),_0x2b1136=countBy(_0x755ee4[_0x55379a(0x167)]['map'](_0x395a53=>_0x395a53[_0x55379a(0x152)])),_0xae8d05=_0x5a4afe===null?[_0x55379a(0x166)+_0x755ee4[_0x55379a(0x16a)]+_0x55379a(0x14b)]:[];return{'ok':!![],'data':{'job':_0x755ee4,'isTerminal':_0x5a4afe,'summary':{'total':_0x755ee4[_0x55379a(0x167)][_0x55379a(0x14e)],'failed':_0x755ee4[_0x55379a(0x167)][_0x55379a(0x164)](_0x3ca9ad=>_0x3ca9ad[_0x55379a(0x152)]===_0x55379a(0x14c))[_0x55379a(0x14e)],'byBizType':_0x409d01,'byAction':_0x2b1136},'warnings':_0xae8d05},'message':_0x55379a(0x15b)+_0xecf764+_0x55379a(0x157)+_0x755ee4[_0x55379a(0x16a)]+'.'};}};function a123_0x42c7(){const _0x4a9373=['reduce','PARTIAL_SUCCESS','status','422iOipQl','SUCCESS','534685hOtslc','isSafeInteger','Deployment\x20synchronization\x20job\x20ID',';\x20terminal\x20state\x20is\x20unknown\x20to\x20this\x20CLI\x20version.','FAILED','sync-status','length','job-id','1068392VTQLij','--job-id\x20must\x20be\x20a\x20positive\x20integer.','action','appCode','bizType','5180007fUezEV','RUNNING','\x20is\x20','read','2452244YhNFKZ','4132620oiDRRi','Deployment\x20synchronization\x20job\x20','Get\x20application\x20deployment\x20synchronization\x20job\x20status','PENDING','2405583ITSKax','has','number','3395moBPDx','num','6KKNkzV','filter','deployment','Preserved\x20server-defined\x20status\x20','results'];a123_0x42c7=function(){return _0x4a9373;};return a123_0x42c7();}function readJobId(_0x33ed7f){const _0x3b5a43=a123_0x1e01bf;if(!Number[_0x3b5a43(0x149)](_0x33ed7f)||_0x33ed7f<=0x0)throw CliErrors['validation'](_0x3b5a43(0x151));return _0x33ed7f;}function countBy(_0xc81943){const _0x313bbd=a123_0x1e01bf;return _0xc81943[_0x313bbd(0x168)]((_0x4cff6c,_0x28a71d)=>{return _0x4cff6c[_0x28a71d]=(_0x4cff6c[_0x28a71d]??0x0)+0x1,_0x4cff6c;},{});}
|
package/lib/commands/doctor.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a118_0xb5be17=a118_0x2ddc;(function(_0x2f4d3d,_0x2feb01){const _0x3a8176=a118_0x2ddc,_0x45c009=_0x2f4d3d();while(!![]){try{const _0x19a9b9=parseInt(_0x3a8176(0xc5))/0x1*(parseInt(_0x3a8176(0x128))/0x2)+parseInt(_0x3a8176(0xcb))/0x3+-parseInt(_0x3a8176(0x104))/0x4+parseInt(_0x3a8176(0x112))/0x5+parseInt(_0x3a8176(0xf1))/0x6+parseInt(_0x3a8176(0x134))/0x7+parseInt(_0x3a8176(0x116))/0x8*(-parseInt(_0x3a8176(0xf8))/0x9);if(_0x19a9b9===_0x2feb01)break;else _0x45c009['push'](_0x45c009['shift']());}catch(_0x2bac51){_0x45c009['push'](_0x45c009['shift']());}}}(a118_0x1fd9,0x424e6));import a118_0xab1d9d from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';import{getActiveRegion,getApiDomain,getAppDomain,getKbDomain,getKbServiceDomain,getSkillDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags,initGlobalEnvironment,inspectCliConfigJsonFile,loadRawConfigLayers}from'../context.js';function a118_0x1fd9(){const _0x452da4=['(missing)','red','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','projectConfig','push','riskLevel','2350240zaTfrT','\x20config\x20delete\x20region\x20--global','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','bold','15944RijLrM','(none)','length','not\x20configured','(default:\x20','missing','Global','yellow','(default)','globalConfig','stringify','apiDir','Repair\x20','\x20app\x20\x22','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','appCode','toLowerCase','message','2esblbI','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','(set\x20via\x20file,\x20length=','present','Set\x20apps.','log','read','repairCommand','\x20\x20Auth','keys','113344csJafM','includes','env','✗\x20Invalid\x20JSON','✗\x20Invalid\x20','entries','padEnd','verbose','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','green','currentApp','filter','\x20\x20explicitAppName:\x20','current','Project','regionConfiguredValue','\x20config\x20delete\x20inherit\x20--global','✓\x20Valid\x20JSON','join','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','format','accessKey','prototype','string','\x20config','region','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','raw','arch','\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','project','✓\x20Valid','(set,\x20length=','51691cOQPer','\x20\x20Routing\x20Configuration','routing','\x20\x20kbDomain:\x20\x20\x20\x20\x20\x20\x20\x20','(not\x20found)','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','1012584RwDHrk','cookie','\x20config\x20delete\x20region','✗\x20Invalid','explicitAppName','\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20←\x20current','version','(unknown)','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','✗\x20Not\x20logged\x20in','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Country/Region\x20Configuration','\x20doctor','\x20config\x20delete\x20routing\x20--global','repeat','Unavailable\x20until\x20routing\x20configuration\x20is\x20repaired','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Legacy\x20inherit:\x20\x20\x20','ignored\x20in\x20','\x20\x20Repair\x20global:\x20\x20\x20','regionSource','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','doctor','value','Not\x20checked\x20until\x20routing\x20configuration\x20is\x20repaired','.region\x20to\x20cn\x20or\x20id\x20in\x20','\x20\x20─','\x20\x20Apps','✗\x20Expired','\x20(invalid)','\x20\x20kbServiceDomain:\x20','null','gray','hasOwnProperty','630576vkpCAs','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','call','installedPath','object','\x20(default)','defaultApp','1098ZSHcpm','apps','inherit','source','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20appDomain:\x20\x20\x20\x20\x20\x20\x20','\x20\x20Repair\x20global:\x20\x20\x20\x20','label','\x20\x20Repair\x20project:\x20\x20\x20','status','default','\x20\x20Repair\x20project:\x20\x20','1863276xqYMZc','state','\x20\x20Built-in\x20Skill','⚠\x20Empty\x20(treated\x20as\x20{})','packageVersion','slice','global','\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'];a118_0x1fd9=function(){return _0x452da4;};return a118_0x1fd9();}import{getIsSessionValid}from'../auth/is-session-valid.js';function a118_0x2ddc(_0x4bf8b4,_0x37195f){_0x4bf8b4=_0x4bf8b4-0xb3;const _0x1fd96e=a118_0x1fd9();let _0x2ddc2f=_0x1fd96e[_0x4bf8b4];return _0x2ddc2f;}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(_0x5318f5){const _0x5a33af=a118_0x2ddc;return typeof _0x5318f5===_0x5a33af(0xbb)?JSON[_0x5a33af(0x120)](_0x5318f5):'<'+(_0x5318f5===null?_0x5a33af(0xee):typeof _0x5318f5)+'>';}async function execute(_0x176c01){const _0x1896f0=a118_0x2ddc,_0x1cd62e=GIT_COMMIT!=='unknown'?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x1896f0(0x109)](0x0,0xa)+')':VERSION,_0x3f0735=buildConfigFromFlags({}),_0x4ad5a4=getCookie();let _0x79315b;try{await initGlobalEnvironment(_0x3f0735);}catch(_0x536914){_0x79315b=_0x536914 instanceof Error?_0x536914:new Error(String(_0x536914));}console[_0x1896f0(0x12f)](),console[_0x1896f0(0x12f)](a118_0xab1d9d[_0x1896f0(0x115)](CLI_BIN_NAME+_0x1896f0(0xd9))),console[_0x1896f0(0x12f)](a118_0xab1d9d[_0x1896f0(0xef)]('─'[_0x1896f0(0xdb)](0x32))),console[_0x1896f0(0x12f)](_0x1896f0(0x124)+_0x1cd62e),console[_0x1896f0(0x12f)](_0x1896f0(0xf2)+process[_0x1896f0(0xd2)]),console[_0x1896f0(0x12f)]('\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20'+process['platform']+'\x20'+process[_0x1896f0(0xc0)]);const _0x517a70=inspectBuiltinSkill();console[_0x1896f0(0x12f)](),console[_0x1896f0(0x12f)](a118_0xab1d9d['bold'](_0x1896f0(0x106))),console['log'](a118_0xab1d9d[_0x1896f0(0xef)]('\x20\x20─'[_0x1896f0(0xdb)](0x1e)));const _0x11a6b4=_0x517a70['state']===_0x1896f0(0x141)?a118_0xab1d9d[_0x1896f0(0x13d)]('✓\x20'+_0x517a70[_0x1896f0(0x105)]):a118_0xab1d9d['red']('✗\x20'+_0x517a70[_0x1896f0(0x105)]);console[_0x1896f0(0x12f)]('\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x11a6b4),console[_0x1896f0(0x12f)]('\x20\x20Package\x20Version:\x20'+_0x517a70[_0x1896f0(0x108)]),console[_0x1896f0(0x12f)]('\x20\x20Skill\x20Version:\x20\x20\x20'+(_0x517a70['skillVersion']||a118_0xab1d9d[_0x1896f0(0xef)](_0x1896f0(0xd3)))),console['log']('\x20\x20Installed\x20Path:\x20\x20'+(_0x517a70[_0x1896f0(0xf4)]||a118_0xab1d9d['gray'](_0x1896f0(0xc9))));if(_0x517a70['reason'])console[_0x1896f0(0x12f)](_0x1896f0(0xd0)+_0x517a70['reason']);_0x517a70['state']!==_0x1896f0(0x141)&&console[_0x1896f0(0x12f)](_0x1896f0(0x10b)+_0x517a70[_0x1896f0(0x131)]);console[_0x1896f0(0x12f)](),console[_0x1896f0(0x12f)](a118_0xab1d9d[_0x1896f0(0x115)]('\x20\x20Config\x20Files')),console['log'](a118_0xab1d9d['gray'](_0x1896f0(0xe9)['repeat'](0x1e)));const _0x240c25=getGlobalConfigPath(),_0x240086=getProjectConfigPath();console[_0x1896f0(0x12f)](_0x1896f0(0xdd)+(_0x240c25||a118_0xab1d9d[_0x1896f0(0xef)](_0x1896f0(0xc9)))),console[_0x1896f0(0x12f)](_0x1896f0(0xd6)+(_0x240086||a118_0xab1d9d['gray'](_0x1896f0(0xc9)))),console[_0x1896f0(0x12f)](),console[_0x1896f0(0x12f)](a118_0xab1d9d['bold']('\x20\x20Config\x20JSON')),console[_0x1896f0(0x12f)](a118_0xab1d9d[_0x1896f0(0xef)](_0x1896f0(0xe9)[_0x1896f0(0xdb)](0x1e)));const _0x3cc754=(_0x56947f,_0xf34efe)=>{const _0x555fe1=_0x1896f0;if(!_0xf34efe){console[_0x555fe1(0x12f)]('\x20\x20'+_0x56947f['padEnd'](0x11)+'\x20'+a118_0xab1d9d[_0x555fe1(0xef)]('(no\x20file)'));return;}const _0x1fa0a9=inspectCliConfigJsonFile(_0xf34efe);if(_0x1fa0a9[_0x555fe1(0x101)]==='ok')console[_0x555fe1(0x12f)]('\x20\x20'+_0x56947f[_0x555fe1(0x13a)](0x11)+'\x20'+a118_0xab1d9d[_0x555fe1(0x13d)](_0x555fe1(0xb5)));else{if(_0x1fa0a9[_0x555fe1(0x101)]==='empty')console[_0x555fe1(0x12f)]('\x20\x20'+_0x56947f[_0x555fe1(0x13a)](0x11)+'\x20'+a118_0xab1d9d[_0x555fe1(0x11d)](_0x555fe1(0x107)));else _0x1fa0a9['status']===_0x555fe1(0x11b)?console[_0x555fe1(0x12f)]('\x20\x20'+_0x56947f['padEnd'](0x11)+'\x20'+a118_0xab1d9d[_0x555fe1(0xef)](_0x555fe1(0x10c))):(console['log']('\x20\x20'+_0x56947f['padEnd'](0x11)+'\x20'+a118_0xab1d9d[_0x555fe1(0x10d)](_0x555fe1(0x137))),console['log']('\x20\x20'+''[_0x555fe1(0x13a)](0x11)+'\x20'+a118_0xab1d9d[_0x555fe1(0x10d)](_0x1fa0a9['message'])));}};_0x3cc754(_0x1896f0(0x11c),_0x240c25),_0x3cc754(_0x1896f0(0x142),_0x240086);const _0x55c1cb=loadRawConfigLayers(),_0x2ef571=[{'label':_0x1896f0(0x142),'value':_0x55c1cb[_0x1896f0(0x10f)][_0x1896f0(0xbd)],'present':Object[_0x1896f0(0xba)]['hasOwnProperty'][_0x1896f0(0xf3)](_0x55c1cb[_0x1896f0(0x10f)],_0x1896f0(0xbd)),'repairCommand':CLI_BIN_NAME+_0x1896f0(0xcd)},{'label':_0x1896f0(0x11c),'value':_0x55c1cb[_0x1896f0(0x11f)][_0x1896f0(0xbd)],'present':Object['prototype'][_0x1896f0(0xf0)][_0x1896f0(0xf3)](_0x55c1cb['globalConfig'],_0x1896f0(0xbd)),'repairCommand':CLI_BIN_NAME+_0x1896f0(0x113)}][_0x1896f0(0x13f)](_0x20a2a2=>_0x20a2a2[_0x1896f0(0x12d)]&&isInvalidLovrabetRegion(_0x20a2a2[_0x1896f0(0xe6)]));for(const [_0x5129f2,_0x1d3893]of[[_0x1896f0(0x142),_0x55c1cb['projectConfig']],[_0x1896f0(0x11c),_0x55c1cb[_0x1896f0(0x11f)]]]){const _0x2fc9f4=_0x1d3893['apps']&&typeof _0x1d3893[_0x1896f0(0xf9)]===_0x1896f0(0xf5)?_0x1d3893[_0x1896f0(0xf9)]:{};for(const [_0xda799,_0x220d11]of Object[_0x1896f0(0x139)](_0x2fc9f4)){if(!_0x220d11||typeof _0x220d11!==_0x1896f0(0xf5)||!Object['prototype'][_0x1896f0(0xf0)][_0x1896f0(0xf3)](_0x220d11,_0x1896f0(0xbd)))continue;isInvalidLovrabetRegion(_0x220d11[_0x1896f0(0xbd)])&&_0x2ef571[_0x1896f0(0x110)]({'label':_0x5129f2+_0x1896f0(0x123)+_0xda799+'\x22','value':_0x220d11['region'],'present':!![],'repairCommand':_0x1896f0(0x12e)+_0xda799+_0x1896f0(0xe8)+_0x5129f2['toLowerCase']()+'\x20config'});}}if(_0x2ef571[_0x1896f0(0x118)]>0x0){console[_0x1896f0(0x12f)](),console['log'](a118_0xab1d9d[_0x1896f0(0x115)](_0x1896f0(0xd8))),console[_0x1896f0(0x12f)](a118_0xab1d9d[_0x1896f0(0xef)]('\x20\x20─'[_0x1896f0(0xdb)](0x1e)));for(const _0x54ba87 of _0x2ef571){console[_0x1896f0(0x12f)]('\x20\x20'+_0x54ba87['label'][_0x1896f0(0x13a)](0x11)+'\x20'+a118_0xab1d9d[_0x1896f0(0x10d)](_0x1896f0(0x138)+describeRegionValue(_0x54ba87[_0x1896f0(0xe6)]))),console[_0x1896f0(0x12f)]('\x20\x20'+(_0x1896f0(0x122)+_0x54ba87[_0x1896f0(0xff)][_0x1896f0(0x126)]()+':')[_0x1896f0(0x13a)](0x10)+'\x20'+_0x54ba87[_0x1896f0(0x131)]);}}const _0x50d3dc=[Object[_0x1896f0(0xba)][_0x1896f0(0xf0)][_0x1896f0(0xf3)](_0x55c1cb[_0x1896f0(0x11f)],'inherit')?'global':null,Object['prototype']['hasOwnProperty'][_0x1896f0(0xf3)](_0x55c1cb[_0x1896f0(0x10f)],_0x1896f0(0xfa))?_0x1896f0(0xc2):null][_0x1896f0(0x13f)](Boolean);_0x50d3dc[_0x1896f0(0x118)]>0x0&&(console['log'](_0x1896f0(0xde)+a118_0xab1d9d[_0x1896f0(0x11d)](_0x1896f0(0xdf)+_0x50d3dc[_0x1896f0(0xb6)]('\x20+\x20')+_0x1896f0(0xbc))),_0x50d3dc['includes'](_0x1896f0(0xc2))&&console[_0x1896f0(0x12f)](_0x1896f0(0x100)+CLI_BIN_NAME+'\x20config\x20delete\x20inherit'),_0x50d3dc[_0x1896f0(0x135)](_0x1896f0(0x10a))&&console[_0x1896f0(0x12f)](_0x1896f0(0xfe)+CLI_BIN_NAME+_0x1896f0(0xb4)));const _0xdff64c=isInvalidLovrabetRegion(_0x3f0735[_0x1896f0(0xb3)]??_0x3f0735[_0x1896f0(0xbf)]?.[_0x1896f0(0xbd)]);_0x79315b&&!_0xdff64c&&(console[_0x1896f0(0x12f)](),console[_0x1896f0(0x12f)](a118_0xab1d9d[_0x1896f0(0x115)](_0x1896f0(0xc6))),console[_0x1896f0(0x12f)](a118_0xab1d9d['gray'](_0x1896f0(0xe9)[_0x1896f0(0xdb)](0x1e))),console[_0x1896f0(0x12f)](_0x1896f0(0xfc)+a118_0xab1d9d['red'](_0x1896f0(0xce))),console[_0x1896f0(0x12f)](_0x1896f0(0xd0)+_0x79315b[_0x1896f0(0x127)]),Object['prototype'][_0x1896f0(0xf0)][_0x1896f0(0xf3)](_0x55c1cb['projectConfig'],_0x1896f0(0xc7))&&console[_0x1896f0(0x12f)](_0x1896f0(0x103)+CLI_BIN_NAME+'\x20config\x20delete\x20routing'),Object[_0x1896f0(0xba)][_0x1896f0(0xf0)][_0x1896f0(0xf3)](_0x55c1cb[_0x1896f0(0x11f)],_0x1896f0(0xc7))&&console[_0x1896f0(0x12f)](_0x1896f0(0xe0)+CLI_BIN_NAME+_0x1896f0(0xda)));console[_0x1896f0(0x12f)](),console['log'](a118_0xab1d9d[_0x1896f0(0x115)]('\x20\x20Merged\x20Config')),console[_0x1896f0(0x12f)](a118_0xab1d9d[_0x1896f0(0xef)](_0x1896f0(0xe9)[_0x1896f0(0xdb)](0x1e))),console[_0x1896f0(0x12f)](_0x1896f0(0x10e)+(_0x3f0735[_0x1896f0(0x125)]||a118_0xab1d9d[_0x1896f0(0x10d)]('(not\x20set)')));const _0x59443f=_0xdff64c?a118_0xab1d9d[_0x1896f0(0x10d)](describeRegionValue(_0x3f0735['regionConfiguredValue']??_0x3f0735[_0x1896f0(0xbf)]?.[_0x1896f0(0xbd)])+_0x1896f0(0xec)):(_0x3f0735['region']??DEFAULT_LOVRABET_REGION)+'\x20('+(_0x3f0735[_0x1896f0(0xe1)]??_0x1896f0(0x102))+')';console['log'](_0x1896f0(0xc1)+_0x59443f),console[_0x1896f0(0x12f)](_0x1896f0(0xe2)+_0x3f0735[_0x1896f0(0x136)]),console[_0x1896f0(0x12f)]('\x20\x20app\x20locale:\x20\x20\x20\x20\x20\x20'+_0x3f0735['locale']),console['log'](_0x1896f0(0xca)+_0x3f0735[_0x1896f0(0x121)]),console['log'](_0x1896f0(0x13c)+(_0x3f0735[_0x1896f0(0xf7)]||a118_0xab1d9d[_0x1896f0(0xef)](_0x1896f0(0x117)))),console[_0x1896f0(0x12f)]('\x20\x20currentApp:\x20\x20\x20\x20\x20\x20'+(_0x3f0735[_0x1896f0(0x13e)]||a118_0xab1d9d[_0x1896f0(0xef)]('(none)'))),console[_0x1896f0(0x12f)](_0x1896f0(0x140)+(_0x3f0735[_0x1896f0(0xcf)]||a118_0xab1d9d[_0x1896f0(0xef)]('(none)'))),console[_0x1896f0(0x12f)](_0x1896f0(0xe3)+(_0x3f0735[_0x1896f0(0xb8)]||a118_0xab1d9d['gray'](_0x1896f0(0x11a)+DEFAULT_CONFIG_VALUES[_0x1896f0(0xb8)]+')'))),console['log'](_0x1896f0(0xd7)+(_0x3f0735['pageSize']??a118_0xab1d9d[_0x1896f0(0xef)](_0x1896f0(0x11e)))),console['log'](_0x1896f0(0xb7)+_0x3f0735[_0x1896f0(0x111)]),console[_0x1896f0(0x12f)](_0x1896f0(0x114)+_0x3f0735[_0x1896f0(0x13b)]),console[_0x1896f0(0x12f)](_0x1896f0(0xe4)+(_0x3f0735[_0x1896f0(0xcc)]?a118_0xab1d9d[_0x1896f0(0x13d)]('(set,\x20length='+_0x3f0735['cookie'][_0x1896f0(0x118)]+')'):_0x4ad5a4?a118_0xab1d9d['green'](_0x1896f0(0x12c)+_0x4ad5a4[_0x1896f0(0x118)]+')'):a118_0xab1d9d[_0x1896f0(0xef)](_0x1896f0(0x117))));const _0x535528=Object[_0x1896f0(0x133)](_0x3f0735['apps']);if(_0x535528[_0x1896f0(0x118)]>0x0){console[_0x1896f0(0x12f)](),console[_0x1896f0(0x12f)](a118_0xab1d9d['bold'](_0x1896f0(0xea))),console[_0x1896f0(0x12f)](a118_0xab1d9d[_0x1896f0(0xef)](_0x1896f0(0xe9)[_0x1896f0(0xdb)](0x1e)));for(const _0x3242bc of _0x535528){const _0x42dd85=_0x3f0735['apps'][_0x3242bc],_0x5323e6=_0x3242bc===_0x3f0735[_0x1896f0(0xf7)],_0x4cda3f=_0x3242bc===_0x3f0735[_0x1896f0(0x13e)],_0x5eb928=_0x4cda3f?a118_0xab1d9d[_0x1896f0(0x13d)](_0x1896f0(0xd1)):'',_0x2b9b5c=_0x5323e6?_0x1896f0(0xf6):'';console[_0x1896f0(0x12f)]('\x20\x20'+_0x3242bc+_0x2b9b5c+_0x5eb928),console[_0x1896f0(0x12f)]('\x20\x20\x20\x20appcode:\x20\x20\x20\x20'+_0x42dd85['appcode']);const _0x293c69=_0x55c1cb[_0x1896f0(0x10f)][_0x1896f0(0xf9)]&&typeof _0x55c1cb[_0x1896f0(0x10f)][_0x1896f0(0xf9)]===_0x1896f0(0xf5)?_0x55c1cb[_0x1896f0(0x10f)][_0x1896f0(0xf9)]:{},_0x409989=Object[_0x1896f0(0xba)][_0x1896f0(0xf0)][_0x1896f0(0xf3)](_0x293c69,_0x3242bc),_0x1b7f5d=isInvalidLovrabetRegion(_0x42dd85['region'])?{'region':_0x3f0735[_0x1896f0(0xbd)]??DEFAULT_LOVRABET_REGION}:resolveEffectiveRegion({'appRegion':_0x42dd85[_0x1896f0(0xbd)],'projectRegion':_0x409989?_0x55c1cb['projectConfig'][_0x1896f0(0xbd)]:undefined,'globalRegion':_0x55c1cb[_0x1896f0(0x11f)]['region'],'mergedRegion':_0x3f0735[_0x1896f0(0xbf)]['region'],'appName':_0x3242bc}),_0x5bbe23=buildAppDoctorFields(_0x42dd85,{'region':_0x1b7f5d['region'],'env':_0x3f0735[_0x1896f0(0x136)],'apiDir':_0x3f0735[_0x1896f0(0xbf)][_0x1896f0(0x121)]||DEFAULT_CONFIG_VALUES[_0x1896f0(0x121)],'cookie':_0x3f0735[_0x1896f0(0xcc)]||_0x4ad5a4||undefined,'accessKey':_0x3f0735[_0x1896f0(0xb9)]});console[_0x1896f0(0x12f)]('\x20\x20\x20\x20region:\x20\x20\x20\x20\x20'+_0x5bbe23[_0x1896f0(0xbd)][_0x1896f0(0xe6)]+'\x20\x20'+a118_0xab1d9d[_0x1896f0(0xef)]('('+_0x5bbe23[_0x1896f0(0xbd)][_0x1896f0(0xfb)]+')')),console[_0x1896f0(0x12f)]('\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x5bbe23[_0x1896f0(0x136)]['value']+'\x20\x20'+a118_0xab1d9d[_0x1896f0(0xef)]('('+_0x5bbe23['env'][_0x1896f0(0xfb)]+')')),console[_0x1896f0(0x12f)](_0x1896f0(0xd4)+_0x5bbe23['apiDir'][_0x1896f0(0xe6)]+'\x20\x20'+a118_0xab1d9d[_0x1896f0(0xef)]('('+_0x5bbe23[_0x1896f0(0x121)][_0x1896f0(0xfb)]+')'));const _0x4e556e=_0x5bbe23[_0x1896f0(0xcc)][_0x1896f0(0xe6)]?a118_0xab1d9d[_0x1896f0(0x13d)](_0x1896f0(0xc4)+_0x5bbe23[_0x1896f0(0xcc)][_0x1896f0(0xe6)][_0x1896f0(0x118)]+')'):a118_0xab1d9d[_0x1896f0(0xef)](_0x1896f0(0x117));console[_0x1896f0(0x12f)](_0x1896f0(0x12a)+_0x4e556e+'\x20\x20'+a118_0xab1d9d[_0x1896f0(0xef)]('('+_0x5bbe23['cookie']['source']+')'));const _0x2b6046=_0x5bbe23['accessKey'][_0x1896f0(0xe6)]?a118_0xab1d9d[_0x1896f0(0x13d)](_0x1896f0(0xc4)+_0x5bbe23[_0x1896f0(0xb9)]['value'][_0x1896f0(0x118)]+')'):a118_0xab1d9d[_0x1896f0(0xef)](_0x1896f0(0x117));console['log']('\x20\x20\x20\x20accessKey:\x20\x20'+_0x2b6046+'\x20\x20'+a118_0xab1d9d[_0x1896f0(0xef)]('('+_0x5bbe23[_0x1896f0(0xb9)]['source']+')'));}}console[_0x1896f0(0x12f)](),console[_0x1896f0(0x12f)](a118_0xab1d9d[_0x1896f0(0x115)]('\x20\x20API\x20Endpoints')),console[_0x1896f0(0x12f)](a118_0xab1d9d[_0x1896f0(0xef)](_0x1896f0(0xe9)['repeat'](0x1e)));_0x79315b?console[_0x1896f0(0x12f)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a118_0xab1d9d['red'](_0x1896f0(0xdc))):(console[_0x1896f0(0x12f)](_0x1896f0(0xc1)+getActiveRegion()),console[_0x1896f0(0x12f)](_0x1896f0(0x129)+getApiDomain()),console[_0x1896f0(0x12f)](_0x1896f0(0xbe)+getUserDomain()),console[_0x1896f0(0x12f)]('\x20\x20runtimeDomain:\x20\x20\x20'+getRuntimeDomain()),console[_0x1896f0(0x12f)]('\x20\x20skillDomain:\x20\x20\x20\x20\x20'+getSkillDomain()),console[_0x1896f0(0x12f)](_0x1896f0(0xc8)+getKbDomain()),console[_0x1896f0(0x12f)](_0x1896f0(0xed)+(getKbServiceDomain()??_0x1896f0(0x119))),console[_0x1896f0(0x12f)](_0x1896f0(0xfd)+getAppDomain()));console[_0x1896f0(0x12f)](),console[_0x1896f0(0x12f)](a118_0xab1d9d[_0x1896f0(0x115)](_0x1896f0(0x132))),console['log'](a118_0xab1d9d[_0x1896f0(0xef)](_0x1896f0(0xe9)['repeat'](0x1e)));if(_0x79315b)console[_0x1896f0(0x12f)](_0x1896f0(0xfc)+a118_0xab1d9d[_0x1896f0(0x11d)](_0x1896f0(0xe7)));else{if(_0x4ad5a4){const _0xc1f572=await getIsSessionValid();console[_0x1896f0(0x12f)](_0x1896f0(0xfc)+(_0xc1f572?a118_0xab1d9d[_0x1896f0(0x13d)](_0x1896f0(0xc3)):a118_0xab1d9d[_0x1896f0(0x10d)](_0x1896f0(0xeb))));}else console[_0x1896f0(0x12f)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a118_0xab1d9d[_0x1896f0(0x10d)](_0x1896f0(0xd5)));}return console[_0x1896f0(0x12f)](),{'ok':!![]};}export const doctorDefinition={'service':a118_0xb5be17(0xe5),'command':'check','description':a118_0xb5be17(0x12b),'risk':a118_0xb5be17(0x130),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
|
|
1
|
+
const a124_0xbee04=a124_0x4549;(function(_0x5bb196,_0x40f2a7){const _0x209d10=a124_0x4549,_0x492f7a=_0x5bb196();while(!![]){try{const _0x4c8c63=-parseInt(_0x209d10(0xbb))/0x1*(-parseInt(_0x209d10(0xc0))/0x2)+parseInt(_0x209d10(0x136))/0x3+parseInt(_0x209d10(0xf9))/0x4*(-parseInt(_0x209d10(0x12a))/0x5)+-parseInt(_0x209d10(0xe2))/0x6+-parseInt(_0x209d10(0xe1))/0x7+-parseInt(_0x209d10(0x117))/0x8+parseInt(_0x209d10(0xe7))/0x9*(parseInt(_0x209d10(0x133))/0xa);if(_0x4c8c63===_0x40f2a7)break;else _0x492f7a['push'](_0x492f7a['shift']());}catch(_0x2558ca){_0x492f7a['push'](_0x492f7a['shift']());}}}(a124_0x67a2,0xe247a));import a124_0x4353d5 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_0x4549(_0xfb9f42,_0x304339){_0xfb9f42=_0xfb9f42-0xb7;const _0x67a22f=a124_0x67a2();let _0x4549fa=_0x67a22f[_0xfb9f42];return _0x4549fa;}import{getActiveRegion,getApiDomain,getAppDomain,getKbDomain,getKbServiceDomain,getSkillDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags,initGlobalEnvironment,inspectCliConfigJsonFile,loadRawConfigLayers}from'../context.js';import{getIsSessionValid}from'../auth/is-session-valid.js';import{getCookie}from'../auth/get-cookie.js';import{buildAppDoctorFields}from'../config/schema.js';import{resolveEffectiveRegion}from'../config/region-config.js';import{inspectBuiltinSkill}from'../skills/builtin-skill.js';import{DEFAULT_LOVRABET_REGION,isInvalidLovrabetRegion}from'../constant/region.js';function describeRegionValue(_0x316132){const _0x450609=a124_0x4549;return typeof _0x316132===_0x450609(0x137)?JSON['stringify'](_0x316132):'<'+(_0x316132===null?'null':typeof _0x316132)+'>';}async function execute(_0x16fd9e){const _0x271470=a124_0x4549,_0x17a73b=GIT_COMMIT!==_0x271470(0xd3)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME['slice'](0x0,0xa)+')':VERSION,_0x1bd11a=buildConfigFromFlags({}),_0x40bb5a=getCookie();let _0x430010;try{await initGlobalEnvironment(_0x1bd11a);}catch(_0x190d9f){_0x430010=_0x190d9f instanceof Error?_0x190d9f:new Error(String(_0x190d9f));}console[_0x271470(0xbc)](),console[_0x271470(0xbc)](a124_0x4353d5[_0x271470(0x131)](CLI_BIN_NAME+_0x271470(0xe3))),console[_0x271470(0xbc)](a124_0x4353d5['gray']('─'['repeat'](0x32))),console[_0x271470(0xbc)](_0x271470(0xd0)+_0x17a73b),console[_0x271470(0xbc)](_0x271470(0xef)+process[_0x271470(0xc4)]),console[_0x271470(0xbc)](_0x271470(0xd9)+process[_0x271470(0x130)]+'\x20'+process['arch']);const _0x3f3961=inspectBuiltinSkill();console[_0x271470(0xbc)](),console['log'](a124_0x4353d5['bold'](_0x271470(0xb7))),console[_0x271470(0xbc)](a124_0x4353d5[_0x271470(0x106)](_0x271470(0xe9)[_0x271470(0xfe)](0x1e)));const _0x1675d0=_0x3f3961[_0x271470(0xc6)]===_0x271470(0x139)?a124_0x4353d5[_0x271470(0xf8)]('✓\x20'+_0x3f3961['state']):a124_0x4353d5[_0x271470(0x108)]('✗\x20'+_0x3f3961[_0x271470(0xc6)]);console[_0x271470(0xbc)](_0x271470(0xce)+_0x1675d0),console[_0x271470(0xbc)](_0x271470(0xd4)+_0x3f3961['packageVersion']),console['log']('\x20\x20Skill\x20Version:\x20\x20\x20'+(_0x3f3961[_0x271470(0x12f)]||a124_0x4353d5['gray'](_0x271470(0xe4)))),console[_0x271470(0xbc)](_0x271470(0x149)+(_0x3f3961[_0x271470(0x10b)]||a124_0x4353d5[_0x271470(0x106)]('(not\x20found)')));if(_0x3f3961[_0x271470(0xf0)])console['log'](_0x271470(0xd1)+_0x3f3961[_0x271470(0xf0)]);_0x3f3961['state']!==_0x271470(0x139)&&console[_0x271470(0xbc)](_0x271470(0x14a)+_0x3f3961[_0x271470(0xba)]);console['log'](),console[_0x271470(0xbc)](a124_0x4353d5[_0x271470(0x131)](_0x271470(0x132))),console['log'](a124_0x4353d5['gray']('\x20\x20─'[_0x271470(0xfe)](0x1e)));const _0x383ad4=getGlobalConfigPath(),_0x30dec9=getProjectConfigPath();console[_0x271470(0xbc)](_0x271470(0xff)+(_0x383ad4||a124_0x4353d5['gray'](_0x271470(0x102)))),console[_0x271470(0xbc)](_0x271470(0xeb)+(_0x30dec9||a124_0x4353d5[_0x271470(0x106)]('(not\x20found)'))),console[_0x271470(0xbc)](),console[_0x271470(0xbc)](a124_0x4353d5[_0x271470(0x131)](_0x271470(0xf5))),console[_0x271470(0xbc)](a124_0x4353d5['gray'](_0x271470(0xe9)[_0x271470(0xfe)](0x1e)));const _0x1a345a=(_0x44d444,_0x248d91)=>{const _0x39498b=_0x271470;if(!_0x248d91){console[_0x39498b(0xbc)]('\x20\x20'+_0x44d444[_0x39498b(0xf3)](0x11)+'\x20'+a124_0x4353d5['gray'](_0x39498b(0x138)));return;}const _0x127440=inspectCliConfigJsonFile(_0x248d91);if(_0x127440[_0x39498b(0x14c)]==='ok')console['log']('\x20\x20'+_0x44d444[_0x39498b(0xf3)](0x11)+'\x20'+a124_0x4353d5[_0x39498b(0xf8)](_0x39498b(0x121)));else{if(_0x127440[_0x39498b(0x14c)]===_0x39498b(0x114))console[_0x39498b(0xbc)]('\x20\x20'+_0x44d444[_0x39498b(0xf3)](0x11)+'\x20'+a124_0x4353d5[_0x39498b(0x12c)]('⚠\x20Empty\x20(treated\x20as\x20{})'));else _0x127440[_0x39498b(0x14c)]===_0x39498b(0x11b)?console[_0x39498b(0xbc)]('\x20\x20'+_0x44d444[_0x39498b(0xf3)](0x11)+'\x20'+a124_0x4353d5[_0x39498b(0x106)](_0x39498b(0x148))):(console['log']('\x20\x20'+_0x44d444[_0x39498b(0xf3)](0x11)+'\x20'+a124_0x4353d5[_0x39498b(0x108)](_0x39498b(0xfa))),console['log']('\x20\x20'+''[_0x39498b(0xf3)](0x11)+'\x20'+a124_0x4353d5[_0x39498b(0x108)](_0x127440['message'])));}};_0x1a345a('Global',_0x383ad4),_0x1a345a('Project',_0x30dec9);const _0x168a46=loadRawConfigLayers(),_0x129cf5=[{'label':_0x271470(0xea),'value':_0x168a46[_0x271470(0x127)][_0x271470(0xc7)],'present':Object[_0x271470(0x10c)][_0x271470(0xdf)][_0x271470(0xbd)](_0x168a46[_0x271470(0x127)],_0x271470(0xc7)),'repairCommand':CLI_BIN_NAME+_0x271470(0x107)},{'label':_0x271470(0x10f),'value':_0x168a46['globalConfig'][_0x271470(0xc7)],'present':Object[_0x271470(0x10c)]['hasOwnProperty'][_0x271470(0xbd)](_0x168a46[_0x271470(0xcf)],_0x271470(0xc7)),'repairCommand':CLI_BIN_NAME+_0x271470(0xdd)}][_0x271470(0x116)](_0x3b4162=>_0x3b4162[_0x271470(0xd7)]&&isInvalidLovrabetRegion(_0x3b4162[_0x271470(0xcd)]));for(const [_0x14dbc9,_0x1877c8]of[[_0x271470(0xea),_0x168a46[_0x271470(0x127)]],[_0x271470(0x10f),_0x168a46[_0x271470(0xcf)]]]){const _0x5c391e=_0x1877c8[_0x271470(0x145)]&&typeof _0x1877c8[_0x271470(0x145)]===_0x271470(0x126)?_0x1877c8['apps']:{};for(const [_0x68c3ea,_0x1c3811]of Object['entries'](_0x5c391e)){if(!_0x1c3811||typeof _0x1c3811!==_0x271470(0x126)||!Object['prototype'][_0x271470(0xdf)]['call'](_0x1c3811,'region'))continue;isInvalidLovrabetRegion(_0x1c3811[_0x271470(0xc7)])&&_0x129cf5[_0x271470(0xfc)]({'label':_0x14dbc9+_0x271470(0x129)+_0x68c3ea+'\x22','value':_0x1c3811[_0x271470(0xc7)],'present':!![],'repairCommand':_0x271470(0x142)+_0x68c3ea+_0x271470(0x11c)+_0x14dbc9['toLowerCase']()+_0x271470(0x10d)});}}if(_0x129cf5['length']>0x0){console['log'](),console[_0x271470(0xbc)](a124_0x4353d5['bold'](_0x271470(0x11a))),console[_0x271470(0xbc)](a124_0x4353d5[_0x271470(0x106)](_0x271470(0xe9)[_0x271470(0xfe)](0x1e)));for(const _0xd7b445 of _0x129cf5){console[_0x271470(0xbc)]('\x20\x20'+_0xd7b445[_0x271470(0xf4)][_0x271470(0xf3)](0x11)+'\x20'+a124_0x4353d5[_0x271470(0x108)](_0x271470(0x147)+describeRegionValue(_0xd7b445[_0x271470(0xcd)]))),console['log']('\x20\x20'+(_0x271470(0xf7)+_0xd7b445[_0x271470(0xf4)]['toLowerCase']()+':')[_0x271470(0xf3)](0x10)+'\x20'+_0xd7b445['repairCommand']);}}const _0xfc1fed=[Object[_0x271470(0x10c)]['hasOwnProperty'][_0x271470(0xbd)](_0x168a46[_0x271470(0xcf)],'inherit')?_0x271470(0x122):null,Object['prototype']['hasOwnProperty'][_0x271470(0xbd)](_0x168a46[_0x271470(0x127)],_0x271470(0x112))?_0x271470(0x13e):null]['filter'](Boolean);_0xfc1fed[_0x271470(0xfd)]>0x0&&(console[_0x271470(0xbc)](_0x271470(0xf6)+a124_0x4353d5[_0x271470(0x12c)](_0x271470(0xe5)+_0xfc1fed['join']('\x20+\x20')+'\x20config')),_0xfc1fed[_0x271470(0xbf)](_0x271470(0x13e))&&console[_0x271470(0xbc)](_0x271470(0x12b)+CLI_BIN_NAME+_0x271470(0x115)),_0xfc1fed[_0x271470(0xbf)](_0x271470(0x122))&&console['log'](_0x271470(0xc1)+CLI_BIN_NAME+_0x271470(0xbe)));const _0x465dd6=isInvalidLovrabetRegion(_0x1bd11a[_0x271470(0x12e)]??_0x1bd11a[_0x271470(0xfb)]?.[_0x271470(0xc7)]);_0x430010&&!_0x465dd6&&(console['log'](),console[_0x271470(0xbc)](a124_0x4353d5[_0x271470(0x131)](_0x271470(0xd8))),console[_0x271470(0xbc)](a124_0x4353d5[_0x271470(0x106)](_0x271470(0xe9)[_0x271470(0xfe)](0x1e))),console[_0x271470(0xbc)](_0x271470(0x105)+a124_0x4353d5['red']('✗\x20Invalid')),console[_0x271470(0xbc)](_0x271470(0xd1)+_0x430010[_0x271470(0x12d)]),Object[_0x271470(0x10c)][_0x271470(0xdf)]['call'](_0x168a46[_0x271470(0x127)],_0x271470(0x146))&&console[_0x271470(0xbc)](_0x271470(0x110)+CLI_BIN_NAME+_0x271470(0x144)),Object[_0x271470(0x10c)][_0x271470(0xdf)]['call'](_0x168a46[_0x271470(0xcf)],_0x271470(0x146))&&console[_0x271470(0xbc)](_0x271470(0x134)+CLI_BIN_NAME+_0x271470(0x14b)));console[_0x271470(0xbc)](),console[_0x271470(0xbc)](a124_0x4353d5[_0x271470(0x131)](_0x271470(0x13c))),console[_0x271470(0xbc)](a124_0x4353d5[_0x271470(0x106)](_0x271470(0xe9)[_0x271470(0xfe)](0x1e))),console['log'](_0x271470(0xcb)+(_0x1bd11a[_0x271470(0x13d)]||a124_0x4353d5[_0x271470(0x108)](_0x271470(0x13f))));const _0x4f65bf=_0x465dd6?a124_0x4353d5[_0x271470(0x108)](describeRegionValue(_0x1bd11a[_0x271470(0x12e)]??_0x1bd11a[_0x271470(0xfb)]?.[_0x271470(0xc7)])+_0x271470(0xc2)):(_0x1bd11a[_0x271470(0xc7)]??DEFAULT_LOVRABET_REGION)+'\x20('+(_0x1bd11a['regionSource']??_0x271470(0x100))+')';console[_0x271470(0xbc)]('\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x4f65bf),console[_0x271470(0xbc)](_0x271470(0xc9)+_0x1bd11a['env']),console[_0x271470(0xbc)](_0x271470(0xb8)+_0x1bd11a[_0x271470(0x11e)]),console[_0x271470(0xbc)](_0x271470(0x109)+_0x1bd11a[_0x271470(0x13a)]),console[_0x271470(0xbc)]('\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20'+(_0x1bd11a[_0x271470(0x128)]||a124_0x4353d5['gray'](_0x271470(0x119)))),console[_0x271470(0xbc)](_0x271470(0xd2)+(_0x1bd11a['currentApp']||a124_0x4353d5[_0x271470(0x106)](_0x271470(0x119)))),console[_0x271470(0xbc)](_0x271470(0x140)+(_0x1bd11a[_0x271470(0x10a)]||a124_0x4353d5['gray'](_0x271470(0x119)))),console[_0x271470(0xbc)]('\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x1bd11a['format']||a124_0x4353d5[_0x271470(0x106)](_0x271470(0xde)+DEFAULT_CONFIG_VALUES[_0x271470(0x125)]+')'))),console[_0x271470(0xbc)](_0x271470(0xc8)+(_0x1bd11a[_0x271470(0xdb)]??a124_0x4353d5[_0x271470(0x106)](_0x271470(0x10e)))),console['log'](_0x271470(0xed)+_0x1bd11a[_0x271470(0x143)]),console[_0x271470(0xbc)]('\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x1bd11a[_0x271470(0xc5)]),console['log'](_0x271470(0xe6)+(_0x1bd11a[_0x271470(0xf1)]?a124_0x4353d5['green'](_0x271470(0x11f)+_0x1bd11a[_0x271470(0xf1)][_0x271470(0xfd)]+')'):_0x40bb5a?a124_0x4353d5[_0x271470(0xf8)](_0x271470(0x120)+_0x40bb5a[_0x271470(0xfd)]+')'):a124_0x4353d5[_0x271470(0x106)]('(none)')));const _0x2d9d67=Object['keys'](_0x1bd11a['apps']);if(_0x2d9d67['length']>0x0){console[_0x271470(0xbc)](),console['log'](a124_0x4353d5[_0x271470(0x131)](_0x271470(0xf2))),console[_0x271470(0xbc)](a124_0x4353d5[_0x271470(0x106)](_0x271470(0xe9)['repeat'](0x1e)));for(const _0x33ed0a of _0x2d9d67){const _0xcdbba=_0x1bd11a[_0x271470(0x145)][_0x33ed0a],_0x251808=_0x33ed0a===_0x1bd11a[_0x271470(0x128)],_0x5808ea=_0x33ed0a===_0x1bd11a['currentApp'],_0x91f7d8=_0x5808ea?a124_0x4353d5['green'](_0x271470(0xcc)):'',_0x45c442=_0x251808?'\x20(default)':'';console[_0x271470(0xbc)]('\x20\x20'+_0x33ed0a+_0x45c442+_0x91f7d8),console['log']('\x20\x20\x20\x20appcode:\x20\x20\x20\x20'+_0xcdbba[_0x271470(0xe8)]);const _0x17fcbc=_0x168a46[_0x271470(0x127)]['apps']&&typeof _0x168a46['projectConfig'][_0x271470(0x145)]===_0x271470(0x126)?_0x168a46['projectConfig'][_0x271470(0x145)]:{},_0x583f07=Object[_0x271470(0x10c)]['hasOwnProperty']['call'](_0x17fcbc,_0x33ed0a),_0x1601a6=isInvalidLovrabetRegion(_0xcdbba[_0x271470(0xc7)])?{'region':_0x1bd11a['region']??DEFAULT_LOVRABET_REGION}:resolveEffectiveRegion({'appRegion':_0xcdbba['region'],'projectRegion':_0x583f07?_0x168a46[_0x271470(0x127)][_0x271470(0xc7)]:undefined,'globalRegion':_0x168a46['globalConfig']['region'],'mergedRegion':_0x1bd11a[_0x271470(0xfb)][_0x271470(0xc7)],'appName':_0x33ed0a}),_0x255865=buildAppDoctorFields(_0xcdbba,{'region':_0x1601a6[_0x271470(0xc7)],'env':_0x1bd11a[_0x271470(0x104)],'apiDir':_0x1bd11a[_0x271470(0xfb)][_0x271470(0x13a)]||DEFAULT_CONFIG_VALUES[_0x271470(0x13a)],'cookie':_0x1bd11a[_0x271470(0xf1)]||_0x40bb5a||undefined,'accessKey':_0x1bd11a['accessKey']});console[_0x271470(0xbc)](_0x271470(0xec)+_0x255865[_0x271470(0xc7)][_0x271470(0xcd)]+'\x20\x20'+a124_0x4353d5['gray']('('+_0x255865[_0x271470(0xc7)][_0x271470(0x141)]+')')),console[_0x271470(0xbc)](_0x271470(0x103)+_0x255865[_0x271470(0x104)][_0x271470(0xcd)]+'\x20\x20'+a124_0x4353d5[_0x271470(0x106)]('('+_0x255865[_0x271470(0x104)][_0x271470(0x141)]+')')),console[_0x271470(0xbc)](_0x271470(0x13b)+_0x255865[_0x271470(0x13a)][_0x271470(0xcd)]+'\x20\x20'+a124_0x4353d5[_0x271470(0x106)]('('+_0x255865['apiDir'][_0x271470(0x141)]+')'));const _0x18f265=_0x255865[_0x271470(0xf1)][_0x271470(0xcd)]?a124_0x4353d5[_0x271470(0xf8)](_0x271470(0x11f)+_0x255865[_0x271470(0xf1)]['value'][_0x271470(0xfd)]+')'):a124_0x4353d5[_0x271470(0x106)](_0x271470(0x119));console[_0x271470(0xbc)](_0x271470(0xe0)+_0x18f265+'\x20\x20'+a124_0x4353d5[_0x271470(0x106)]('('+_0x255865[_0x271470(0xf1)][_0x271470(0x141)]+')'));const _0x13caee=_0x255865['accessKey'][_0x271470(0xcd)]?a124_0x4353d5[_0x271470(0xf8)](_0x271470(0x11f)+_0x255865['accessKey'][_0x271470(0xcd)][_0x271470(0xfd)]+')'):a124_0x4353d5[_0x271470(0x106)]('(none)');console[_0x271470(0xbc)]('\x20\x20\x20\x20accessKey:\x20\x20'+_0x13caee+'\x20\x20'+a124_0x4353d5[_0x271470(0x106)]('('+_0x255865[_0x271470(0x11d)][_0x271470(0x141)]+')'));}}console[_0x271470(0xbc)](),console['log'](a124_0x4353d5['bold'](_0x271470(0x113))),console['log'](a124_0x4353d5[_0x271470(0x106)]('\x20\x20─'[_0x271470(0xfe)](0x1e)));_0x430010?console[_0x271470(0xbc)](_0x271470(0x105)+a124_0x4353d5[_0x271470(0x108)](_0x271470(0xc3))):(console[_0x271470(0xbc)](_0x271470(0x101)+getActiveRegion()),console[_0x271470(0xbc)]('\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20'+getApiDomain()),console[_0x271470(0xbc)](_0x271470(0x118)+getUserDomain()),console[_0x271470(0xbc)](_0x271470(0xda)+getRuntimeDomain()),console[_0x271470(0xbc)](_0x271470(0xd5)+getSkillDomain()),console[_0x271470(0xbc)](_0x271470(0x124)+getKbDomain()),console[_0x271470(0xbc)]('\x20\x20kbServiceDomain:\x20'+(getKbServiceDomain()??_0x271470(0x123))),console[_0x271470(0xbc)](_0x271470(0xd6)+getAppDomain()));console[_0x271470(0xbc)](),console['log'](a124_0x4353d5[_0x271470(0x131)]('\x20\x20Auth')),console['log'](a124_0x4353d5[_0x271470(0x106)](_0x271470(0xe9)['repeat'](0x1e)));if(_0x430010)console['log'](_0x271470(0x105)+a124_0x4353d5[_0x271470(0x12c)](_0x271470(0xdc)));else{if(_0x40bb5a){const _0x483cd9=await getIsSessionValid();console['log'](_0x271470(0x105)+(_0x483cd9?a124_0x4353d5[_0x271470(0xf8)]('✓\x20Valid'):a124_0x4353d5[_0x271470(0x108)](_0x271470(0xee))));}else console[_0x271470(0xbc)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a124_0x4353d5[_0x271470(0x108)](_0x271470(0x135)));}return console[_0x271470(0xbc)](),{'ok':!![]};}export const doctorDefinition={'service':a124_0xbee04(0xb9),'command':a124_0xbee04(0x111),'description':'Diagnose\x20CLI\x20configuration\x20and\x20connectivity','risk':a124_0xbee04(0xca),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};function a124_0x67a2(){const _0x1fcf0a=['repeat','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','default','\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(not\x20found)','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','env','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','gray','\x20config\x20delete\x20region','red','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','explicitAppName','installedPath','prototype','\x20config','(default)','Global','\x20\x20Repair\x20project:\x20\x20','check','inherit','\x20\x20API\x20Endpoints','empty','\x20config\x20delete\x20inherit','filter','9554896UiSQvW','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','(none)','\x20\x20Country/Region\x20Configuration','missing','.region\x20to\x20cn\x20or\x20id\x20in\x20','accessKey','locale','(set,\x20length=','(set\x20via\x20file,\x20length=','✓\x20Valid\x20JSON','global','not\x20configured','\x20\x20kbDomain:\x20\x20\x20\x20\x20\x20\x20\x20','format','object','projectConfig','defaultApp','\x20app\x20\x22','251105vlqjZF','\x20\x20Repair\x20project:\x20\x20\x20','yellow','message','regionConfiguredValue','skillVersion','platform','bold','\x20\x20Config\x20Files','1380zSOzxU','\x20\x20Repair\x20global:\x20\x20\x20','✗\x20Not\x20logged\x20in','3966165tKBtfm','string','(no\x20file)','current','apiDir','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','\x20\x20Merged\x20Config','appCode','project','(not\x20set)','\x20\x20explicitAppName:\x20','source','Set\x20apps.','riskLevel','\x20config\x20delete\x20routing','apps','routing','✗\x20Invalid\x20','(missing)','\x20\x20Installed\x20Path:\x20\x20','\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20config\x20delete\x20routing\x20--global','status','\x20\x20Built-in\x20Skill','\x20\x20app\x20locale:\x20\x20\x20\x20\x20\x20','doctor','repairCommand','1LDKtMt','log','call','\x20config\x20delete\x20inherit\x20--global','includes','978254jysbBK','\x20\x20Repair\x20global:\x20\x20\x20\x20','\x20(invalid)','Unavailable\x20until\x20routing\x20configuration\x20is\x20repaired','version','verbose','state','region','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','read','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20←\x20current','value','\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','globalConfig','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','unknown','\x20\x20Package\x20Version:\x20','\x20\x20skillDomain:\x20\x20\x20\x20\x20','\x20\x20appDomain:\x20\x20\x20\x20\x20\x20\x20','present','\x20\x20Routing\x20Configuration','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20runtimeDomain:\x20\x20\x20','pageSize','Not\x20checked\x20until\x20routing\x20configuration\x20is\x20repaired','\x20config\x20delete\x20region\x20--global','(default:\x20','hasOwnProperty','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','3796849BtCOxs','4018656HeFrmm','\x20doctor','(unknown)','ignored\x20in\x20','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','200808CzvNVy','appcode','\x20\x20─','Project','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20region:\x20\x20\x20\x20\x20','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','✗\x20Expired','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','reason','cookie','\x20\x20Apps','padEnd','label','\x20\x20Config\x20JSON','\x20\x20Legacy\x20inherit:\x20\x20\x20','Repair\x20','green','124bxFynb','✗\x20Invalid\x20JSON','raw','push','length'];a124_0x67a2=function(){return _0x1fcf0a;};return a124_0x67a2();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a125_0x39391e=a125_0x2c7a;(function(_0x294bae,_0x44670d){const _0x45dc41=a125_0x2c7a,_0x8b03f2=_0x294bae();while(!![]){try{const _0x55516b=-parseInt(_0x45dc41(0x185))/0x1+parseInt(_0x45dc41(0x17b))/0x2*(-parseInt(_0x45dc41(0x182))/0x3)+-parseInt(_0x45dc41(0x17e))/0x4+-parseInt(_0x45dc41(0x183))/0x5*(parseInt(_0x45dc41(0x186))/0x6)+-parseInt(_0x45dc41(0x18c))/0x7+-parseInt(_0x45dc41(0x18e))/0x8+parseInt(_0x45dc41(0x190))/0x9;if(_0x55516b===_0x44670d)break;else _0x8b03f2['push'](_0x8b03f2['shift']());}catch(_0x5c1bc5){_0x8b03f2['push'](_0x8b03f2['shift']());}}}(a125_0x4a2c,0x1ed28));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_0x39391e(0x192),'type':a125_0x39391e(0x179),'required':!![],'description':a125_0x39391e(0x187)},FILEPATH_FLAG={'name':a125_0x39391e(0x195),'type':a125_0x39391e(0x179),'required':!![],'description':'Development\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data'},DOWNLOAD_FLAG={'name':'download','type':a125_0x39391e(0x18d),'description':a125_0x39391e(0x193)},LONG_TERM_FLAG={'name':a125_0x39391e(0x189),'type':a125_0x39391e(0x18d),'description':a125_0x39391e(0x18f)};function requireFilePath(_0x3e5fce){const _0x53e21d=a125_0x39391e,_0x30bac1=_0x3e5fce[_0x53e21d(0x174)]();if(!_0x30bac1)throw CliErrors[_0x53e21d(0x176)](_0x53e21d(0x184));return _0x30bac1;}function a125_0x4a2c(){const _0x4abfd3=['57219cfjNGR','5mRPRsB','filePath\x20is\x20required.','193848VvzFXB','1329132OlpJXZ','Path\x20to\x20the\x20local\x20file\x20to\x20upload','File','long-term','bool','/smartapi/common/uploadFile','311017BKClvj','boolean','74272LrXTgj','Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML','6388983JAwOQt','Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20or\x20immediate\x20access','file','Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL','query-url','filepath','appCode','trim','Uploaded\x20file:\x20','validation','filePath','str','string','\x20to\x20development\x20app\x20','6OZGABF','Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','path','229340uQuOOc','read','Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.'];a125_0x4a2c=function(){return _0x4abfd3;};return a125_0x4a2c();}const fileUpload={'service':a125_0x39391e(0x192),'command':'upload','description':a125_0x39391e(0x17c),'risk':a125_0x39391e(0x17f),'flags':[FILE_FLAG],async 'dryRun'(_0x103981){const _0x2bd200=a125_0x39391e,_0x31d81a=requireDevelopmentUploadFile(_0x103981['str'](_0x2bd200(0x192)),'File');return{'method':'POST','url':_0x2bd200(0x18b),'body':{'appCode':_0x103981[_0x2bd200(0x173)],'multipart':{'file':_0x31d81a}},'description':'Preview:\x20upload\x20'+_0x31d81a[_0x2bd200(0x17d)]+_0x2bd200(0x17a)+_0x103981[_0x2bd200(0x173)]};},async 'execute'(_0x3c87c3){const _0x20f0ed=a125_0x39391e,_0x1f2563=requireDevelopmentUploadFile(_0x3c87c3[_0x20f0ed(0x178)](_0x20f0ed(0x192)),_0x20f0ed(0x188)),_0x8554cc=await uploadDevelopmentFile(_0x3c87c3[_0x20f0ed(0x173)],_0x1f2563[_0x20f0ed(0x17d)]);return{'ok':!![],'data':_0x8554cc,'message':_0x8554cc[_0x20f0ed(0x177)]?_0x20f0ed(0x175)+_0x8554cc[_0x20f0ed(0x177)]+_0x20f0ed(0x181):_0x20f0ed(0x180)};}},fileQueryUrl={'service':a125_0x39391e(0x192),'command':a125_0x39391e(0x194),'description':a125_0x39391e(0x191),'risk':a125_0x39391e(0x17f),'flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0x18850f){const _0x28b4d3=a125_0x39391e,_0x47b08e=requireFilePath(_0x18850f[_0x28b4d3(0x178)](_0x28b4d3(0x195))),_0x8ffd3b=await queryDevelopmentFileUrl(_0x47b08e,{'download':_0x18850f[_0x28b4d3(0x18a)]('download'),'longTerm':_0x18850f[_0x28b4d3(0x18a)](_0x28b4d3(0x189))});return{'ok':!![],'data':_0x8ffd3b};}};function a125_0x2c7a(_0x5b4970,_0x576cf6){_0x5b4970=_0x5b4970-0x173;const _0x4a2cfb=a125_0x4a2c();let _0x2c7a0a=_0x4a2cfb[_0x5b4970];return _0x2c7a0a;}export const fileDefinitions=[fileUpload,fileQueryUrl];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a126_0x56fadf=a126_0x4527;(function(_0x3ab640,_0x43852b){const _0x56e909=a126_0x4527,_0x34d21f=_0x3ab640();while(!![]){try{const _0x4fa3bd=-parseInt(_0x56e909(0x1f2))/0x1+-parseInt(_0x56e909(0x1f8))/0x2+parseInt(_0x56e909(0x1f6))/0x3*(-parseInt(_0x56e909(0x1f1))/0x4)+parseInt(_0x56e909(0x201))/0x5+parseInt(_0x56e909(0x202))/0x6*(-parseInt(_0x56e909(0x1fd))/0x7)+parseInt(_0x56e909(0x1f7))/0x8+-parseInt(_0x56e909(0x1f0))/0x9*(-parseInt(_0x56e909(0x1fe))/0xa);if(_0x4fa3bd===_0x43852b)break;else _0x34d21f['push'](_0x34d21f['shift']());}catch(_0x4b553f){_0x34d21f['push'](_0x34d21f['shift']());}}}(a126_0x52ef,0x434b0));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{asDryRunResult}from'../../commands/common/dry-run.js';function a126_0x52ef(){const _0x65bf45=['flowName','appCode','datasetCode','465852PmTREy','3507736SjVHNY','393922sXcJBf','flow','POST','Created\x20flow\x20','\x20(id=','2791922EKWGoV','323180YmFgLQ','Create\x20a\x20draft\x20flow\x20definition\x20from\x20a\x20local\x20FlowConfig\x20file','create','1167290gJRVux','6KUWObc','.\x20Flow\x20URL:\x20','207GfEtHQ','8cYrBWO','233232DLpnUu'];a126_0x52ef=function(){return _0x65bf45;};return a126_0x52ef();}import{createFlowDefinition}from'../../core/api-client.js';function a126_0x4527(_0xa3cda3,_0x250740){_0xa3cda3=_0xa3cda3-0x1f0;const _0x52efd2=a126_0x52ef();let _0x45276d=_0x52efd2[_0xa3cda3];return _0x45276d;}import{FLOW_FILE_FLAG,FLOW_PATHS,buildFlowUrl,confirmFlowWrite,flowSelector,prepareFlowWrite,readFlowFilePath}from'../../commands/flow/shared.js';export const flowCreate={'service':a126_0x56fadf(0x1f9),'command':a126_0x56fadf(0x200),'description':a126_0x56fadf(0x1ff),'risk':'write','flags':[FLOW_FILE_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x23c532){readFlowFilePath(_0x23c532);},async 'dryRun'(_0x583e88){const _0x46a434=a126_0x56fadf,{request:_0x1de969,warnings:_0x15115f}=await prepareFlowWrite(readFlowFilePath(_0x583e88),_0x583e88[_0x46a434(0x1f4)]);return asDryRunResult({'operation':_0x46a434(0x200),'selector':{'appCode':_0x583e88[_0x46a434(0x1f4)],'flowName':_0x1de969[_0x46a434(0x1f3)],..._0x1de969['datasetCode']?{'datasetCode':_0x1de969[_0x46a434(0x1f5)]}:{}},'before':null,'after':_0x1de969,'request':_0x1de969,'dryRun':!![],'backend':{'method':_0x46a434(0x1fa),'path':FLOW_PATHS[_0x46a434(0x200)]},'warnings':_0x15115f},{'method':_0x46a434(0x1fa),'url':FLOW_PATHS[_0x46a434(0x200)]});},async 'execute'(_0xc05850){const _0x589526=a126_0x56fadf,{request:_0x334dd8,warnings:_0x139fbe}=await prepareFlowWrite(readFlowFilePath(_0xc05850),_0xc05850['appCode']);await confirmFlowWrite(_0xc05850,_0x589526(0x200),_0x334dd8);const _0xa131b4=await createFlowDefinition(_0x334dd8),_0x411bc9=buildFlowUrl(_0xc05850[_0x589526(0x1f4)],_0xa131b4['id']),_0x260301=''+(_0xa131b4['flowName']||_0x334dd8[_0x589526(0x1f3)])+(_0xa131b4['id']?_0x589526(0x1fc)+_0xa131b4['id']+')':'');return{'ok':!![],'data':{'operation':_0x589526(0x200),'selector':flowSelector(_0xc05850[_0x589526(0x1f4)],_0xa131b4['id'],_0xa131b4),'before':null,'after':_0xa131b4,'flowUrl':_0x411bc9,'dryRun':![],'backend':{'method':_0x589526(0x1fa),'path':FLOW_PATHS['create']},'warnings':_0x139fbe},'message':_0x589526(0x1fb)+_0x260301+_0x589526(0x203)+_0x411bc9};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a127_0x2fd43e=a127_0x5d9d;(function(_0x32f863,_0x2d15ca){const _0x4eccb9=a127_0x5d9d,_0x529f87=_0x32f863();while(!![]){try{const _0x46194c=-parseInt(_0x4eccb9(0xfd))/0x1+parseInt(_0x4eccb9(0x100))/0x2+parseInt(_0x4eccb9(0xf4))/0x3+parseInt(_0x4eccb9(0x114))/0x4*(-parseInt(_0x4eccb9(0xf9))/0x5)+parseInt(_0x4eccb9(0x112))/0x6*(-parseInt(_0x4eccb9(0xff))/0x7)+-parseInt(_0x4eccb9(0xfb))/0x8+parseInt(_0x4eccb9(0x115))/0x9;if(_0x46194c===_0x2d15ca)break;else _0x529f87['push'](_0x529f87['shift']());}catch(_0x4cb4da){_0x529f87['push'](_0x529f87['shift']());}}}(a127_0x1745,0x6c689));import{mkdir,stat}from'node:fs/promises';import{dirname,resolve}from'node:path';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{getFlowDefinition}from'../../core/api-client.js';import{writeNormalizedFlowConfig}from'../../core/flow-config.js';import{CliErrors}from'../../errors.js';function a127_0x1745(){const _0x275608=['code','detail','validation','boolean','path','\x20to\x20','trim','flowName','Pass\x20--force\x20to\x20overwrite\x20it.','force','string','FlowConfig\x20output\x20already\x20exists:\x20','flowCode','ENOENT','Flow\x20','19914LfWisF','read','1116484hYIKAC','14157963xobljj','377937ETipZg','warnings','Get\x20one\x20design-time\x20flow\x20definition','bool','flow','10eFcNxf','output','573152xNFldv','Wrote\x20FlowConfig\x20for\x20','261334KTtClZ','EEXIST','1512mNRatA','706158gffTjA','Write\x20a\x20portable\x20normalized\x20FlowConfig\x20JSON\x20file','config'];a127_0x1745=function(){return _0x275608;};return a127_0x1745();}import{FLOW_ID_FLAG,flowDefinitionToConfig,readFlowId}from'../../commands/flow/shared.js';export const flowDetail={'service':a127_0x2fd43e(0xf8),'command':a127_0x2fd43e(0x104),'description':a127_0x2fd43e(0xf6),'risk':a127_0x2fd43e(0x113),'flags':[FLOW_ID_FLAG,{'name':a127_0x2fd43e(0xfa),'type':a127_0x2fd43e(0x10d),'description':a127_0x2fd43e(0x101)},{'name':'force','type':a127_0x2fd43e(0x106),'description':'Overwrite\x20an\x20existing\x20output\x20file'},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x421c49){readFlowId(_0x421c49);},async 'execute'(_0x168311){const _0x29e457=a127_0x2fd43e,_0x242dd0=readFlowId(_0x168311),_0xb64b91=_0x168311['str'](_0x29e457(0xfa))[_0x29e457(0x109)](),_0x5bf979=_0xb64b91?resolve(_0xb64b91):undefined;if(_0x5bf979&&!_0x168311['bool']('force')&&await fileExists(_0x5bf979))throw CliErrors['validation'](_0x29e457(0x10e)+_0x5bf979,_0x29e457(0x10b));const _0x2050ff=await getFlowDefinition(_0x168311['appCode'],_0x242dd0);let _0x35e7c7;if(_0x5bf979){const _0x512bf6=flowDefinitionToConfig(_0x2050ff);await mkdir(dirname(_0x5bf979),{'recursive':!![]});try{await writeNormalizedFlowConfig(_0x5bf979,_0x512bf6[_0x29e457(0x102)],{'overwrite':_0x168311[_0x29e457(0xf7)](_0x29e457(0x10c))});}catch(_0x484a45){if(isAlreadyExistsError(_0x484a45))throw CliErrors[_0x29e457(0x105)](_0x29e457(0x10e)+_0x5bf979,_0x29e457(0x10b));throw _0x484a45;}_0x35e7c7={'path':_0x5bf979,'warnings':_0x512bf6[_0x29e457(0xf5)]};}return{'ok':!![],'data':{'flow':_0x2050ff,..._0x35e7c7?{'output':_0x35e7c7}:{}},'message':_0x35e7c7?_0x29e457(0xfc)+(_0x2050ff[_0x29e457(0x10a)]||_0x2050ff[_0x29e457(0x10f)]||_0x242dd0)+_0x29e457(0x108)+_0x35e7c7[_0x29e457(0x107)]:_0x29e457(0x111)+(_0x2050ff['flowName']||_0x2050ff['flowCode']||_0x242dd0)};}};function a127_0x5d9d(_0x2e0e03,_0x3ccb02){_0x2e0e03=_0x2e0e03-0xf4;const _0x1745a3=a127_0x1745();let _0x5d9d54=_0x1745a3[_0x2e0e03];return _0x5d9d54;}async function fileExists(_0x2e3816){try{return await stat(_0x2e3816),!![];}catch(_0xcde6a5){return!isNotFoundError(_0xcde6a5);}}function isNotFoundError(_0xc8de9f){const _0x5eecba=a127_0x2fd43e;return _0xc8de9f?.['code']===_0x5eecba(0x110);}function isAlreadyExistsError(_0x1d5c99){const _0x47b907=a127_0x2fd43e;return _0x1d5c99?.[_0x47b907(0x103)]===_0x47b907(0xfe);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x34bbfc,_0x153058){const _0x595474=a128_0x13b1,_0x36db93=_0x34bbfc();while(!![]){try{const _0x48eee2=parseInt(_0x595474(0x125))/0x1+parseInt(_0x595474(0x124))/0x2+-parseInt(_0x595474(0x128))/0x3*(-parseInt(_0x595474(0x12b))/0x4)+parseInt(_0x595474(0x12a))/0x5*(-parseInt(_0x595474(0x123))/0x6)+-parseInt(_0x595474(0x12d))/0x7*(-parseInt(_0x595474(0x127))/0x8)+parseInt(_0x595474(0x12c))/0x9*(-parseInt(_0x595474(0x126))/0xa)+-parseInt(_0x595474(0x129))/0xb;if(_0x48eee2===_0x153058)break;else _0x36db93['push'](_0x36db93['shift']());}catch(_0x94f22e){_0x36db93['push'](_0x36db93['shift']());}}}(a128_0x2c0b,0xdd701));import{flowValidate}from'../../commands/flow/validate.js';import{flowList}from'../../commands/flow/list.js';function a128_0x2c0b(){const _0x160579=['827446ftachl','558740RUCwzX','487130ikXYXs','24qdOGWG','39642fWEutz','8674171bbAqhc','10JlolXy','164YObvpz','18HtaUjT','1428917tjcskY','1000902dStxXM'];a128_0x2c0b=function(){return _0x160579;};return a128_0x2c0b();}function a128_0x13b1(_0x23aa61,_0x5aac5e){_0x23aa61=_0x23aa61-0x123;const _0x2c0bea=a128_0x2c0b();let _0x13b188=_0x2c0bea[_0x23aa61];return _0x13b188;}import{flowDetail}from'../../commands/flow/detail.js';import{flowCreate}from'../../commands/flow/create.js';import{flowUpdate}from'../../commands/flow/update.js';import{flowPublish}from'../../commands/flow/publish.js';import{flowRuntimeRoleList}from'../../commands/flow/runtime-role-list.js';import{flowRuntimeUserSearch}from'../../commands/flow/runtime-user-search.js';import{flowRuntimeRoleUserList}from'../../commands/flow/runtime-role-user-list.js';export const flowDefinitions=[flowValidate,flowList,flowDetail,flowCreate,flowUpdate,flowPublish,flowRuntimeRoleList,flowRuntimeUserSearch,flowRuntimeRoleUserList];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a129_0x1c11e6=a129_0x53e4;(function(_0x339e9b,_0x583aaf){const _0x97199d=a129_0x53e4,_0x525253=_0x339e9b();while(!![]){try{const _0xea36d7=-parseInt(_0x97199d(0x1e4))/0x1+-parseInt(_0x97199d(0x1ed))/0x2+-parseInt(_0x97199d(0x1e2))/0x3*(parseInt(_0x97199d(0x1f5))/0x4)+parseInt(_0x97199d(0x1e0))/0x5*(parseInt(_0x97199d(0x1e5))/0x6)+parseInt(_0x97199d(0x1e6))/0x7*(parseInt(_0x97199d(0x1ef))/0x8)+parseInt(_0x97199d(0x1e7))/0x9+-parseInt(_0x97199d(0x1db))/0xa*(-parseInt(_0x97199d(0x1ec))/0xb);if(_0xea36d7===_0x583aaf)break;else _0x525253['push'](_0x525253['shift']());}catch(_0x1c623a){_0x525253['push'](_0x525253['shift']());}}}(a129_0x561c,0x23c71));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{listFlowDefinitions}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const FLOW_STATUSES=['draft',a129_0x1c11e6(0x1f7)];export const flowList={'service':'flow','command':a129_0x1c11e6(0x1da),'description':a129_0x1c11e6(0x1ee),'risk':a129_0x1c11e6(0x1d6),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a129_0x1c11e6(0x1f4),'type':a129_0x1c11e6(0x1e1),'description':a129_0x1c11e6(0x1e3)},{'name':a129_0x1c11e6(0x1eb),'type':a129_0x1c11e6(0x1e1),'description':'Filter\x20by\x20flow\x20name'},{'name':'flow-status','type':a129_0x1c11e6(0x1e1),'description':a129_0x1c11e6(0x1f9),'enum':FLOW_STATUSES},{'name':a129_0x1c11e6(0x1e9),'type':a129_0x1c11e6(0x1e1),'description':a129_0x1c11e6(0x1d7)},{'name':a129_0x1c11e6(0x1dc),'type':a129_0x1c11e6(0x1e1),'description':'Filter\x20by\x20flow\x20type'},{'name':'page','type':'number','description':a129_0x1c11e6(0x1d8),'default':0x1},{'name':a129_0x1c11e6(0x1d5),'type':'number','description':'Page\x20size','default':0x14}],async 'validate'(_0x3e2df9){const _0x394ac0=a129_0x1c11e6,_0x29c00f=_0x3e2df9[_0x394ac0(0x1d9)](_0x394ac0(0x1f2),0x1),_0x4579fe=_0x3e2df9[_0x394ac0(0x1d9)]('page-size',0x14);if(!Number[_0x394ac0(0x1f3)](_0x29c00f)||_0x29c00f<0x1)throw CliErrors[_0x394ac0(0x1f8)](_0x394ac0(0x1f6));if(!Number[_0x394ac0(0x1f3)](_0x4579fe)||_0x4579fe<0x1)throw CliErrors['validation'](_0x394ac0(0x1f0));},async 'execute'(_0x1e7406){const _0x44f0fc=a129_0x1c11e6,{items:_0x378145,paging:_0x355141}=await listFlowDefinitions(_0x1e7406[_0x44f0fc(0x1dd)],{'flowCode':optionalString(_0x1e7406[_0x44f0fc(0x1f1)](_0x44f0fc(0x1f4))),'flowName':optionalString(_0x1e7406[_0x44f0fc(0x1f1)](_0x44f0fc(0x1eb))),'flowStatus':optionalString(_0x1e7406[_0x44f0fc(0x1f1)](_0x44f0fc(0x1e8))),'datasetCode':optionalString(_0x1e7406['str'](_0x44f0fc(0x1e9))),'flowType':optionalString(_0x1e7406[_0x44f0fc(0x1f1)](_0x44f0fc(0x1dc))),'pageNum':_0x1e7406['num'](_0x44f0fc(0x1f2),0x1),'pageSize':_0x1e7406['num'](_0x44f0fc(0x1d5),0x14)});return{'ok':!![],'data':{'appCode':_0x1e7406[_0x44f0fc(0x1dd)],'flows':_0x378145,'paging':_0x355141},'message':_0x44f0fc(0x1df)+_0x378145[_0x44f0fc(0x1de)]+_0x44f0fc(0x1ea)};}};function a129_0x53e4(_0x38cef7,_0x3ff4ed){_0x38cef7=_0x38cef7-0x1d5;const _0x561cb9=a129_0x561c();let _0x53e46c=_0x561cb9[_0x38cef7];return _0x53e46c;}function a129_0x561c(){const _0x1184c1=['page-size','read','Filter\x20by\x20dataset\x20code','Page\x20number\x20(1-based)','num','list','680CfENAA','flow-type','appCode','length','Found\x20','15BYPeGH','string','770871JGvQHP','Filter\x20by\x20exact\x20server-generated\x20flow\x20code','278723kWtFID','384708yjHjaI','1653757bDbLCf','1480887YYpyBs','flow-status','dataset-code','\x20flow\x20definition(s)','flow-name','38478tdJjwX','297574WwJcZA','List\x20design-time\x20flow\x20definitions\x20for\x20the\x20current\x20app','8KfKhRo','--page-size\x20must\x20be\x20a\x20positive\x20integer.','str','page','isSafeInteger','flow-code','4TitdLT','--page\x20must\x20be\x20a\x20positive\x20integer.','published','validation','Filter\x20by\x20flow\x20status'];a129_0x561c=function(){return _0x1184c1;};return a129_0x561c();}function optionalString(_0x111dd0){const _0x1f47e9=_0x111dd0['trim']();return _0x1f47e9||undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a130_0x289b(_0xf6b467,_0x443fad){_0xf6b467=_0xf6b467-0x8f;const _0xe71f05=a130_0xe71f();let _0x289bc9=_0xe71f05[_0xf6b467];return _0x289bc9;}const a130_0x5cfbb8=a130_0x289b;(function(_0x192528,_0x2ed9bb){const _0x5e6518=a130_0x289b,_0x426e67=_0x192528();while(!![]){try{const _0x224960=parseInt(_0x5e6518(0x98))/0x1+parseInt(_0x5e6518(0x94))/0x2+-parseInt(_0x5e6518(0x96))/0x3+-parseInt(_0x5e6518(0x92))/0x4*(parseInt(_0x5e6518(0x90))/0x5)+parseInt(_0x5e6518(0x9e))/0x6*(-parseInt(_0x5e6518(0x93))/0x7)+parseInt(_0x5e6518(0x9b))/0x8+parseInt(_0x5e6518(0x9c))/0x9*(parseInt(_0x5e6518(0x9d))/0xa);if(_0x224960===_0x2ed9bb)break;else _0x426e67['push'](_0x426e67['shift']());}catch(_0x459a26){_0x426e67['push'](_0x426e67['shift']());}}}(a130_0xe71f,0x3e4e3));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a130_0xe71f(){const _0x82a8ed=['52385EANrRe','flow','140IkURbT','182441xRhkJc','763512LyUvJA','flowCode','904263twNiwH','appCode','214061SMgewB','write','published','2345864tGSPVK','56268afysif','430YPCiAl','54griQCz','Publish\x20the\x20current\x20flow\x20definition\x20draft','publish'];a130_0xe71f=function(){return _0x82a8ed;};return a130_0xe71f();}import{publishFlowDefinition}from'../../core/api-client.js';import{FLOW_ID_FLAG,FLOW_PATHS,buildFlowUrl,buildFlowIdDryRun,flowSelector,readFlowId}from'../../commands/flow/shared.js';export const flowPublish={'service':a130_0x5cfbb8(0x91),'command':a130_0x5cfbb8(0x8f),'description':a130_0x5cfbb8(0x9f),'risk':a130_0x5cfbb8(0x99),'flags':[FLOW_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x3bf8f1){readFlowId(_0x3bf8f1);},async 'dryRun'(_0x5e1416){const _0x1414a6=a130_0x5cfbb8,_0x3ede87=readFlowId(_0x5e1416);return buildFlowIdDryRun('publish',FLOW_PATHS[_0x1414a6(0x8f)],_0x5e1416[_0x1414a6(0x97)],_0x3ede87,{'id':_0x3ede87,'flowStatus':_0x1414a6(0x9a)});},async 'execute'(_0x474d63){const _0x1e3ed5=a130_0x5cfbb8,_0x5297a7=readFlowId(_0x474d63),_0x1be07e=await publishFlowDefinition(_0x474d63[_0x1e3ed5(0x97)],_0x5297a7),_0x5af1ac=buildFlowUrl(_0x474d63['appCode'],_0x5297a7);return{'ok':!![],'data':{'operation':_0x1e3ed5(0x8f),'selector':flowSelector(_0x474d63[_0x1e3ed5(0x97)],_0x5297a7,_0x1be07e),'before':null,'after':_0x1be07e,'flowUrl':_0x5af1ac,'dryRun':![],'backend':{'method':'POST','path':FLOW_PATHS['publish']},'warnings':[]},'message':'Published\x20flow\x20'+(_0x1be07e['flowName']||_0x1be07e[_0x1e3ed5(0x95)]||_0x5297a7)+'.\x20Flow\x20URL:\x20'+_0x5af1ac};}};
|