@lovrabet/rabetbase-cli 2.5.11-beta.1 → 2.5.12-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api/api-doc.js +1 -1
- package/lib/api/api-group.js +1 -1
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.js +1 -1
- package/lib/api/generate-sdk-config-file.js +1 -1
- package/lib/api/legacy-api-file.js +1 -1
- package/lib/api/model-registry-file.js +1 -1
- package/lib/api/model-registry-scaffold.js +1 -1
- package/lib/api/model-source.js +1 -1
- package/lib/auth/auth-server-ui.js +1 -1
- package/lib/auth/auth-server.js +1 -1
- package/lib/auth/constant.js +1 -1
- package/lib/auth/get-cookie.js +1 -1
- package/lib/auth/get-session-user.js +1 -1
- package/lib/auth/is-session-valid.js +1 -1
- package/lib/auth/login-success-html.js +1 -1
- package/lib/auth/logout.js +1 -1
- package/lib/cli-flags.js +1 -1
- package/lib/cli.js +1 -1
- package/lib/commands/api/generate.js +1 -1
- package/lib/commands/api/index.js +1 -1
- package/lib/commands/api/list.js +1 -1
- package/lib/commands/api/pull.js +1 -1
- package/lib/commands/api/shared.js +1 -1
- package/lib/commands/app/detail.js +1 -1
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/members-list.js +1 -1
- package/lib/commands/app/remote-directory.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/delete.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/app-config/list.js +1 -1
- package/lib/commands/app-config/set.js +1 -1
- package/lib/commands/app-config/shared.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/bff/create.js +1 -1
- package/lib/commands/bff/delete.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/bff/list.js +1 -1
- package/lib/commands/bff/logs.js +1 -1
- package/lib/commands/bff/pull.js +1 -1
- package/lib/commands/bff/push.js +1 -1
- package/lib/commands/bff/status.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/cli-update.js +1 -1
- package/lib/commands/codegen/index.js +1 -1
- package/lib/commands/codegen/sdk.js +1 -1
- package/lib/commands/codegen/sql.js +1 -1
- package/lib/commands/common/app-registry.js +1 -1
- package/lib/commands/common/app-selector.js +1 -1
- package/lib/commands/common/async-task.js +1 -1
- package/lib/commands/common/dry-run.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/common/validate.js +1 -1
- package/lib/commands/config/delete.js +1 -1
- package/lib/commands/config/get.js +1 -1
- package/lib/commands/config/index.js +1 -1
- package/lib/commands/config/init.js +1 -1
- package/lib/commands/config/list.js +1 -1
- package/lib/commands/config/set.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/dataset/batch-design.js +1 -1
- package/lib/commands/dataset/business-group-update.js +1 -1
- package/lib/commands/dataset/business-groups.js +1 -1
- package/lib/commands/dataset/capability.js +1 -1
- package/lib/commands/dataset/cross-relation-create.js +1 -1
- package/lib/commands/dataset/cross-relation-delete.js +1 -1
- package/lib/commands/dataset/cross-relation-list.js +1 -1
- package/lib/commands/dataset/cross-relation-shared.js +1 -1
- package/lib/commands/dataset/cross-relation-update.js +1 -1
- package/lib/commands/dataset/delete.js +1 -1
- package/lib/commands/dataset/design-context.js +1 -1
- package/lib/commands/dataset/design-start.js +1 -1
- package/lib/commands/dataset/design-status.js +1 -1
- package/lib/commands/dataset/design-sync-retry.js +1 -1
- package/lib/commands/dataset/design-sync-status.js +1 -1
- package/lib/commands/dataset/design-validate.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/extend-update.js +1 -1
- package/lib/commands/dataset/field-restore.js +1 -1
- package/lib/commands/dataset/field-update.js +1 -1
- package/lib/commands/dataset/generate.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/dataset/relation-audit.js +1 -1
- package/lib/commands/dataset/relation-create.js +1 -1
- package/lib/commands/dataset/relation-delete.js +1 -1
- package/lib/commands/dataset/relation-shared.js +1 -1
- package/lib/commands/dataset/relation-update.js +1 -1
- package/lib/commands/dataset/relations.js +1 -1
- package/lib/commands/dataset/rename.js +1 -1
- package/lib/commands/dataset/restore.js +1 -1
- package/lib/commands/dataset/user-deleted-field-list.js +1 -1
- package/lib/commands/db/analysis-batching.js +1 -1
- package/lib/commands/db/analyze-batch-plan.js +1 -1
- package/lib/commands/db/analyze-cancel.js +1 -1
- package/lib/commands/db/analyze-start.js +1 -1
- package/lib/commands/db/analyze-status.js +1 -1
- package/lib/commands/db/create.js +1 -1
- package/lib/commands/db/cross-db-analysis-shared.js +1 -1
- package/lib/commands/db/cross-db-analyze-latest.js +1 -1
- package/lib/commands/db/cross-db-analyze-start.js +1 -1
- package/lib/commands/db/cross-db-analyze-status.js +1 -1
- package/lib/commands/db/delete.js +1 -1
- package/lib/commands/db/detail.js +1 -1
- package/lib/commands/db/diff-refresh-start.js +1 -1
- package/lib/commands/db/diff-refresh-status.js +1 -1
- package/lib/commands/db/diff.js +1 -1
- package/lib/commands/db/index.js +1 -1
- package/lib/commands/db/list.js +1 -1
- package/lib/commands/db/shared.js +1 -1
- package/lib/commands/db/table-diff-shared.js +1 -1
- package/lib/commands/db/tables.js +1 -1
- package/lib/commands/db/test.js +1 -1
- package/lib/commands/db/update.js +1 -1
- package/lib/commands/deployment/index.js +1 -1
- package/lib/commands/deployment/sync-all.js +1 -1
- package/lib/commands/deployment/sync-jobs.js +1 -1
- package/lib/commands/deployment/sync-status.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/flow/create.js +1 -1
- package/lib/commands/flow/detail.js +1 -1
- package/lib/commands/flow/index.js +1 -1
- package/lib/commands/flow/list.js +1 -1
- package/lib/commands/flow/page-list.js +1 -1
- package/lib/commands/flow/publish.js +1 -1
- package/lib/commands/flow/runtime-resources-shared.js +1 -1
- package/lib/commands/flow/runtime-role-list.js +1 -1
- package/lib/commands/flow/runtime-role-user-list.js +1 -1
- package/lib/commands/flow/runtime-user-search.js +1 -1
- package/lib/commands/flow/shared.js +1 -1
- package/lib/commands/flow/update.js +1 -1
- package/lib/commands/flow/validate.js +1 -1
- package/lib/commands/instant-api-policy/current.js +1 -1
- package/lib/commands/instant-api-policy/index.js +1 -1
- package/lib/commands/instant-api-policy/init.js +1 -1
- package/lib/commands/instant-api-policy/publish.js +1 -1
- package/lib/commands/instant-api-policy/pull.js +1 -1
- package/lib/commands/instant-api-policy/revision.js +1 -1
- package/lib/commands/instant-api-policy/revisions.js +1 -1
- package/lib/commands/instant-api-policy/rollback.js +1 -1
- package/lib/commands/instant-api-policy/shared.js +1 -1
- package/lib/commands/instant-api-policy/validate.js +1 -1
- package/lib/commands/issue/context.js +1 -1
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/nudge.js +1 -1
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/kb/create.js +1 -1
- package/lib/commands/kb/delete.js +1 -1
- package/lib/commands/kb/detail.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/kb/list.js +1 -1
- package/lib/commands/kb/search.js +1 -1
- package/lib/commands/kb/shared.js +1 -1
- package/lib/commands/kb/update.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/asset-update.js +1 -1
- package/lib/commands/menu/delete.js +1 -1
- package/lib/commands/menu/external-link-create.js +1 -1
- package/lib/commands/menu/external-link-update.js +1 -1
- package/lib/commands/menu/group-create.js +1 -1
- package/lib/commands/menu/group-update.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/list.js +1 -1
- package/lib/commands/menu/move.js +1 -1
- package/lib/commands/menu/regroup-start.js +1 -1
- package/lib/commands/menu/rename.js +1 -1
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/delete-plan.js +1 -1
- package/lib/commands/menu/shared/facts.js +1 -1
- package/lib/commands/menu/shared/index.js +1 -1
- package/lib/commands/menu/shared/inquirer.js +1 -1
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.js +1 -1
- package/lib/commands/menu/shared/mutations.js +1 -1
- package/lib/commands/menu/shared/path.js +1 -1
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/subapp-assets.js +1 -1
- package/lib/commands/menu/shared/sync-core.js +1 -1
- package/lib/commands/menu/shared/update-core.js +1 -1
- package/lib/commands/menu/shared/valid-url.js +1 -1
- package/lib/commands/menu/subapp-assets-status.js +1 -1
- package/lib/commands/menu/subapp-assets-update.js +1 -1
- package/lib/commands/menu/sync.js +1 -1
- package/lib/commands/menu/visibility-update.js +1 -1
- package/lib/commands/notification/config-create.js +1 -1
- package/lib/commands/notification/config-delete.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/config-update.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/notification/shared.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/page/create.js +1 -1
- package/lib/commands/page/custom/detail.js +1 -1
- package/lib/commands/page/custom/list.js +1 -1
- package/lib/commands/page/custom/publish.js +1 -1
- package/lib/commands/page/custom/shared.js +1 -1
- package/lib/commands/page/custom/syntax.js +1 -1
- package/lib/commands/page/custom/update.js +1 -1
- package/lib/commands/page/data-list-status.js +1 -1
- package/lib/commands/page/generate-start.js +1 -1
- package/lib/commands/page/generate-status.js +1 -1
- package/lib/commands/page/index.js +1 -1
- package/lib/commands/page/pull.js +1 -1
- package/lib/commands/page/push.js +1 -1
- package/lib/commands/page/relation-audit.js +1 -1
- package/lib/commands/page/restore.js +1 -1
- package/lib/commands/page/shared.js +1 -1
- package/lib/commands/page/sync.js +1 -1
- package/lib/commands/project/api-architecture-upgrade.js +1 -1
- package/lib/commands/project/create/enhanced-guided-create.js +1 -1
- package/lib/commands/project/create/format-elapsed.js +1 -1
- package/lib/commands/project/create/main.js +1 -1
- package/lib/commands/project/create/materialize-project-template.js +1 -1
- package/lib/commands/project/create/project-name.js +1 -1
- package/lib/commands/project/create/project-template-archive.js +1 -1
- package/lib/commands/project/create/project-template-path.js +1 -1
- package/lib/commands/project/create/use-copy-project-template.js +1 -1
- package/lib/commands/project/create/use-format-code.js +1 -1
- package/lib/commands/project/create/use-install-dependencies.js +1 -1
- package/lib/commands/project/domain-routing-sync.js +1 -1
- package/lib/commands/project/index.js +1 -1
- package/lib/commands/project/upgrade.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/role/user-resolve.js +1 -1
- package/lib/commands/rule/get.js +1 -1
- package/lib/commands/rule/index.js +1 -1
- package/lib/commands/rule/list.js +1 -1
- package/lib/commands/rule/set.js +1 -1
- package/lib/commands/rule/shared.js +1 -1
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/sql/create.js +1 -1
- package/lib/commands/sql/delete.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/sql/list.js +1 -1
- package/lib/commands/sql/pull.js +1 -1
- package/lib/commands/sql/push.js +1 -1
- package/lib/commands/sql/shared.js +1 -1
- package/lib/commands/sql/status.js +1 -1
- package/lib/commands/sql/validate.js +1 -1
- package/lib/commands/task/index.js +1 -1
- package/lib/commands/task/status.js +1 -1
- package/lib/commands/tenant/index.js +1 -1
- package/lib/commands/tenant/members-list.js +1 -1
- package/lib/commands/tenant/shared.js +1 -1
- package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
- package/lib/commands/user-account/feishu-bind.js +1 -1
- package/lib/commands/user-account/index.js +1 -1
- package/lib/commands/workspace/add.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/commands/workspace/remove.js +1 -1
- package/lib/config/domain-config.js +1 -1
- package/lib/config/project-domain-routing.js +1 -1
- package/lib/config/region-config.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/cdn.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/paths.js +1 -1
- package/lib/constant/region.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/routing-profile.d.ts +1 -0
- package/lib/constant/routing-profile.js +1 -1
- package/lib/context/app-resolver.js +1 -1
- package/lib/context/auth-resolver.js +1 -1
- package/lib/context/config-loader.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/bff/config.js +1 -1
- package/lib/core/bff/file-system.js +1 -1
- package/lib/core/bff/hash.js +1 -1
- package/lib/core/bff/hook-directory.js +1 -1
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/cross-db-analysis.js +1 -1
- package/lib/core/cross-db-relation.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/flow-config.js +1 -1
- package/lib/core/instant-api-policy/config.js +1 -1
- package/lib/core/instant-api-policy/endpoints.js +1 -1
- package/lib/core/kb-management-client.js +1 -1
- package/lib/core/kb-search-client.js +1 -1
- package/lib/core/page/file-system.js +1 -1
- package/lib/core/page/hash.js +1 -1
- package/lib/core/page/lock.js +1 -1
- package/lib/core/page/lr-smart-jsx.js +1 -1
- package/lib/core/sql-index-auditor.js +1 -1
- package/lib/core/sql-sync/config.js +1 -1
- package/lib/core/sql-sync/file-system.js +1 -1
- package/lib/core/sql-sync/hash.js +1 -1
- package/lib/core/sql-sync/lock.js +1 -1
- package/lib/core/sql-sync/utils.js +1 -1
- package/lib/core/sql-validator.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/error-output.js +1 -1
- package/lib/framework/explicit-yes.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-alias.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/supported-flags.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/generated/official-routing.d.ts +2 -1
- package/lib/generated/official-routing.js +1 -1
- package/lib/generated/routing-contract.js +1 -1
- package/lib/help.js +1 -1
- package/lib/postinstall.js +1 -1
- package/lib/runtime/confirmation.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/services/dataset-design/checkpoint.js +1 -1
- package/lib/services/dataset-design/commands.js +1 -1
- package/lib/services/dataset-design/contract.js +1 -1
- package/lib/skills/builtin-skill.js +1 -1
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/skill-presence.js +1 -1
- package/lib/telemetry/cli-command-trace.js +1 -1
- package/lib/telemetry/cli-help-trace.js +1 -1
- package/lib/telemetry/ensure-cli-otel-config.js +1 -1
- package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
- package/lib/telemetry/send-cli-trace-log.js +1 -1
- package/lib/utils/ai_config.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cdn-config.js +1 -1
- package/lib/utils/check-sdk-version.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/config.js +1 -1
- package/lib/utils/entity-with-id.js +1 -1
- package/lib/utils/file-utils.js +1 -1
- package/lib/utils/guides-cdn.js +1 -1
- package/lib/utils/http-client.js +1 -1
- package/lib/utils/is-non-interactive.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/sleep.js +1 -1
- package/lib/utils/template-replacer.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/with-active-cookie.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
- package/skills/rabetbase/SKILL.md +1 -1
- package/skills/rabetbase/references/rabetbase-kb.md +1 -1
- package/skills/rabetbase-dataset-generation/SKILL.md +1 -1
- package/skills/rabetbase-page-generation/SKILL.md +1 -1
- package/skills/rabetbase.manifest.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2f7592,_0x14e310){const _0x1453a5=a115_0x57be,_0x4868a9=_0x2f7592();while(!![]){try{const _0x91201f=parseInt(_0x1453a5(0x1ae))/0x1*(parseInt(_0x1453a5(0x1a5))/0x2)+-parseInt(_0x1453a5(0x1ad))/0x3+-parseInt(_0x1453a5(0x1ac))/0x4*(parseInt(_0x1453a5(0x1b3))/0x5)+-parseInt(_0x1453a5(0x198))/0x6*(-parseInt(_0x1453a5(0x193))/0x7)+-parseInt(_0x1453a5(0x1b2))/0x8*(parseInt(_0x1453a5(0x1a7))/0x9)+parseInt(_0x1453a5(0x19e))/0xa*(parseInt(_0x1453a5(0x19d))/0xb)+-parseInt(_0x1453a5(0x1a0))/0xc*(-parseInt(_0x1453a5(0x1a1))/0xd);if(_0x91201f===_0x14e310)break;else _0x4868a9['push'](_0x4868a9['shift']());}catch(_0x296a38){_0x4868a9['push'](_0x4868a9['shift']());}}}(a115_0x5a47,0xe8d3f));import{testDbLinkConfigConnect}from'../../core/api-client.js';import{getAppBaseUrl}from'../../constant/domain.js';import{CliErrors}from'../../errors.js';function shouldRedactKey(_0x5435b9){const _0x484276=a115_0x57be,_0x4051ee=_0x5435b9[_0x484276(0x1aa)]();if(_0x4051ee===_0x484276(0x1a2)||_0x4051ee==='passwd'||_0x4051ee===_0x484276(0x197))return!![];if(_0x4051ee['includes']('secret')||_0x4051ee['includes']('token')||_0x4051ee['includes']('credential'))return!![];if(_0x4051ee['includes']('privatekey')||_0x4051ee[_0x484276(0x19f)](_0x484276(0x191)))return!![];if(_0x4051ee==='authorization'||_0x4051ee===_0x484276(0x18d)||_0x4051ee===_0x484276(0x199))return!![];return![];}export function sanitizeDbLinkForOutput(_0x37518d){const _0x478e7d=a115_0x57be,_0x3901ed={..._0x37518d};delete _0x3901ed[_0x478e7d(0x1a9)];for(const _0x432d26 of Object[_0x478e7d(0x196)](_0x3901ed)){if(!shouldRedactKey(_0x432d26))continue;const _0x1a4740=_0x3901ed[_0x432d26];_0x1a4740!=null&&String(_0x1a4740)['length']>0x0&&(_0x3901ed[_0x432d26]=_0x478e7d(0x19c));}return _0x3901ed;}export function sanitizeDbLinkList(_0x55d56c){const _0x4bc070=a115_0x57be;return _0x55d56c[_0x4bc070(0x194)](_0x48a2ac=>sanitizeDbLinkForOutput(_0x48a2ac));}export function buildDbDatasetDependency(_0x339766,_0x2a10f5){const _0x448961=a115_0x57be,_0x3bc690=_0x2a10f5[_0x448961(0x192)](_0x23c0d9=>Number(_0x23c0d9[_0x448961(0x1a8)]?.[_0x448961(0x1a4)])===Number(_0x339766['id']))[_0x448961(0x194)](_0x5e15ca=>({'id':_0x5e15ca['id'],'code':_0x5e15ca[_0x448961(0x1a6)],'name':_0x5e15ca[_0x448961(0x190)],..._0x5e15ca[_0x448961(0x1a8)]?.[_0x448961(0x195)]?{'tableName':_0x5e15ca[_0x448961(0x1a8)][_0x448961(0x195)]}:{}}));return{'datasetDependency':{'hasDependencies':_0x3bc690[_0x448961(0x1b0)]>0x0,'activeDatasetCount':_0x3bc690[_0x448961(0x1b0)]},'datasets':_0x3bc690};}function a115_0x5a47(){const _0xf476f4=['filter','4461653sEKypV','map','tableName','keys','dbpassword','6ZpIDiB','jdbcurl','The\x20configuration\x20was\x20not\x20saved.\x20Verify\x20the\x20host,\x20credentials,\x20database\x20name,\x20network,\x20and\x20allowlist,\x20or\x20explicitly\x20pass\x20--skip-connection-test.','number','[redacted]','4860438rwLJAG','10KQoYzF','includes','9672teSYiH','12454rNAzlV','password','test','dbId','794GKHAfd','code','6593751BUemMU','dbtableConfig','hasAvailableDo','toLowerCase','trim','5900764SgAHpo','1076640JAqpoh','4204GOEYZd','/data/database','length','isFinite','8yiNBiL','5oTHEdQ','connectionstring','Database\x20connection\x20preflight\x20failed.','/data/er?dbId=','name','accesskey'];a115_0x5a47=function(){return _0xf476f4;};return a115_0x5a47();}export async function assertDbLinkConnectionPreflight(_0x12acea){const _0x55dcf8=a115_0x57be,_0x4e00a0=await testDbLinkConfigConnect(_0x12acea);if(_0x4e00a0!==!![])throw CliErrors['apiError'](_0x55dcf8(0x18e),_0x55dcf8(0x19a));}const DB_URL_PATTERN=/^[^\s:]+(?::\d+)?$/;function a115_0x57be(_0x414978,_0x4e6503){_0x414978=_0x414978-0x18d;const _0x5a47f5=a115_0x5a47();let _0x57bece=_0x5a47f5[_0x414978];return _0x57bece;}export function validateDbUrl(_0x1c94fb){const _0x8a72d1=a115_0x57be,_0x1a5f06=_0x1c94fb['trim']();if(!_0x1a5f06)return![];return DB_URL_PATTERN[_0x8a72d1(0x1a3)](_0x1a5f06);}export function buildDbPageLinks(_0x363370,_0x51235b){const _0x19c7d5=a115_0x57be,_0x1c53fd=_0x363370?.[_0x19c7d5(0x1ab)]();if(!_0x1c53fd)return undefined;const _0x509780=typeof _0x51235b===_0x19c7d5(0x19b)?String(_0x51235b):String(_0x51235b??'')[_0x19c7d5(0x1ab)]();if(!_0x509780)return undefined;const _0x447b76=Number(_0x509780);if(!Number[_0x19c7d5(0x1b1)](_0x447b76)||_0x447b76<=0x0)return undefined;const _0x4e21a4=getAppBaseUrl(_0x1c53fd),_0x1bb6a5=encodeURIComponent(String(_0x447b76));return{'databasePage':_0x4e21a4+_0x19c7d5(0x1af),'erPage':_0x4e21a4+_0x19c7d5(0x18f)+_0x1bb6a5};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a116_0x49c239=a116_0x1593;function a116_0x575f(){const _0x477530=['48vOACps','length','DELETED_TABLE','tableList','set','validation','8139MPQNMT','325PGEyXB','10QsRghh','804jHXuyp','ALREADY_ANALYZED','fromEntries','summary','size','\x20row(s).','2818101CNPtbX','totalCount','897072vffILu','14RjsZEH','physicalTableCount','map','1572cHUZmz','137930UWmArv','datasetTableCount','3851703xRtzNp','Incomplete\x20db\x20table\x20pagination:\x20collected\x20','\x20of\x20','2196rZQKIp','number','12OAJoFa','filter'];a116_0x575f=function(){return _0x477530;};return a116_0x575f();}(function(_0x3a4d93,_0x25b32f){const _0x3a38af=a116_0x1593,_0x48fad4=_0x3a4d93();while(!![]){try{const _0x3e90de=-parseInt(_0x3a38af(0xff))/0x1*(-parseInt(_0x3a38af(0xf9))/0x2)+-parseInt(_0x3a38af(0xf5))/0x3*(-parseInt(_0x3a38af(0x102))/0x4)+parseInt(_0x3a38af(0xf0))/0x5*(-parseInt(_0x3a38af(0xf7))/0x6)+-parseInt(_0x3a38af(0xec))/0x7*(-parseInt(_0x3a38af(0xeb))/0x8)+parseInt(_0x3a38af(0xf2))/0x9*(-parseInt(_0x3a38af(0x101))/0xa)+parseInt(_0x3a38af(0xe9))/0xb+parseInt(_0x3a38af(0xef))/0xc*(parseInt(_0x3a38af(0x100))/0xd);if(_0x3e90de===_0x25b32f)break;else _0x48fad4['push'](_0x48fad4['shift']());}catch(_0x38a471){_0x48fad4['push'](_0x48fad4['shift']());}}}(a116_0x575f,0x53c17));import{CliErrors}from'../../errors.js';export const DB_TABLE_PAGE_SIZE=0x64;function a116_0x1593(_0x3aa32a,_0x2c9382){_0x3aa32a=_0x3aa32a-0xe6;const _0x575fa0=a116_0x575f();let _0x1593f8=_0x575fa0[_0x3aa32a];return _0x1593f8;}export const DB_TABLE_DIFF_TYPES=['NEW_TABLE','MODIFIED_TABLE',a116_0x49c239(0xfb),a116_0x49c239(0x103)];export function summarizeDbTableDiff(_0x3092be){const _0x598b72=a116_0x49c239;return Object[_0x598b72(0x104)](DB_TABLE_DIFF_TYPES[_0x598b72(0xee)](_0x40e751=>[_0x40e751,_0x3092be[_0x598b72(0xf8)](_0x15746c=>_0x15746c['diffType']===_0x40e751)[_0x598b72(0xfa)]]));}export async function getAllDbTableDiff(_0x232b5e,_0x1930ab,_0x780456,_0xf9f882){const _0x3b4816=a116_0x49c239,_0x308579=new Map();let _0x3e0906=0x1,_0x1f1c85=null;while(!![]){_0x1f1c85=await _0x232b5e(_0x1930ab,_0x780456,{'pageIndex':_0x3e0906,'pageSize':DB_TABLE_PAGE_SIZE,'tableName':_0xf9f882});const _0x579fd3=_0x308579[_0x3b4816(0xe7)];for(const _0x1bcf7e of _0x1f1c85[_0x3b4816(0xfc)]){_0x308579[_0x3b4816(0xfd)](_0x1bcf7e['tableName'],_0x1bcf7e);}if(_0x308579[_0x3b4816(0xe7)]>=_0x1f1c85['totalCount'])break;if(_0x1f1c85[_0x3b4816(0xfc)]['length']===0x0||_0x308579[_0x3b4816(0xe7)]===_0x579fd3)throw CliErrors[_0x3b4816(0xfe)](_0x3b4816(0xf3)+_0x308579['size']+_0x3b4816(0xf4)+_0x1f1c85['totalCount']+_0x3b4816(0xe8));_0x3e0906+=0x1;}return{'totalCount':_0x1f1c85?.[_0x3b4816(0xea)]??0x0,...typeof _0x1f1c85?.[_0x3b4816(0xed)]===_0x3b4816(0xf6)?{'physicalTableCount':_0x1f1c85['physicalTableCount']}:{},...typeof _0x1f1c85?.[_0x3b4816(0xf1)]===_0x3b4816(0xf6)?{'datasetTableCount':_0x1f1c85[_0x3b4816(0xf1)]}:{},..._0x1f1c85?.[_0x3b4816(0xe6)]?{'summary':_0x1f1c85[_0x3b4816(0xe6)]}:{},'tableList':[..._0x308579['values']()]};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a117_0x35fbb5=a117_0x37fc;(function(_0x463aba,_0x1081e6){const _0x5aad46=a117_0x37fc,_0x9f2fa6=_0x463aba();while(!![]){try{const _0x1b95eb=-parseInt(_0x5aad46(0x174))/0x1+parseInt(_0x5aad46(0x188))/0x2*(-parseInt(_0x5aad46(0x176))/0x3)+parseInt(_0x5aad46(0x186))/0x4*(-parseInt(_0x5aad46(0x17c))/0x5)+-parseInt(_0x5aad46(0x18a))/0x6+parseInt(_0x5aad46(0x17e))/0x7*(-parseInt(_0x5aad46(0x17a))/0x8)+-parseInt(_0x5aad46(0x184))/0x9+-parseInt(_0x5aad46(0x187))/0xa*(-parseInt(_0x5aad46(0x18c))/0xb);if(_0x1b95eb===_0x1081e6)break;else _0x9f2fa6['push'](_0x9f2fa6['shift']());}catch(_0x325a53){_0x9f2fa6['push'](_0x9f2fa6['shift']());}}}(a117_0x4ef4,0x93dcd));function a117_0x4ef4(){const _0x17e666=['525AXtYck','length','21MweDsq','totalCount','summary','Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)','List\x20all\x20database\x20table\x20comparison\x20rows\x20and\x20analysis\x20states','table','801054ywZitp','string','8204eQsxeu','258520uSReHB','4itcYpm','appCode','6531744IGyOZR','number','1177WYrtPQ','547393IaQMoo','physicalTableCount','69468noQdGx','str','tableList','read','463544BWRgYE','datasetTableCount'];a117_0x4ef4=function(){return _0x17e666;};return a117_0x4ef4();}import{getDbTableComparisonPage}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{getAllDbTableDiff,summarizeDbTableDiff}from'../../commands/db/table-diff-shared.js';function a117_0x37fc(_0x1fca2e,_0x2e385a){_0x1fca2e=_0x1fca2e-0x174;const _0x4ef4bf=a117_0x4ef4();let _0x37fc97=_0x4ef4bf[_0x1fca2e];return _0x37fc97;}export const dbTables={'service':'db','command':'tables','description':a117_0x35fbb5(0x182),'risk':a117_0x35fbb5(0x179),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a117_0x35fbb5(0x183),'type':a117_0x35fbb5(0x185),'description':a117_0x35fbb5(0x181)}],async 'execute'(_0x45916b){const _0x35ba91=a117_0x35fbb5,_0x16d940=_0x45916b['num']('id'),_0x3a15c6=_0x45916b[_0x35ba91(0x177)](_0x35ba91(0x183))||undefined,_0x102242=await getAllDbTableDiff(getDbTableComparisonPage,_0x45916b[_0x35ba91(0x189)],_0x16d940,_0x3a15c6),_0x476022=_0x102242[_0x35ba91(0x178)];return{'ok':!![],'data':{'dbLinkId':_0x16d940,'totalCount':_0x102242[_0x35ba91(0x17f)],...typeof _0x102242[_0x35ba91(0x175)]===_0x35ba91(0x18b)?{'physicalTableCount':_0x102242[_0x35ba91(0x175)]}:{},...typeof _0x102242[_0x35ba91(0x17b)]===_0x35ba91(0x18b)?{'datasetTableCount':_0x102242[_0x35ba91(0x17b)]}:{},..._0x102242['summary']?{'summary':_0x102242[_0x35ba91(0x180)]}:{},'summaryByType':summarizeDbTableDiff(_0x476022),'tables':_0x476022},'message':_0x476022[_0x35ba91(0x17d)]+'\x20table\x20comparison\x20row(s),\x20total\x20'+_0x102242[_0x35ba91(0x17f)]+'\x20(db\x20link\x20'+_0x16d940+')'};}};
|
package/lib/commands/db/test.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a118_0x3244c9=a118_0x5b12;function a118_0x5b12(_0x588cd3,_0x47616e){_0x588cd3=_0x588cd3-0x85;const _0x2b5dbd=a118_0x2b5d();let _0x5b12cf=_0x2b5dbd[_0x588cd3];return _0x5b12cf;}(function(_0x2ea5cf,_0x58aec7){const _0x5e64cd=a118_0x5b12,_0x2ae38=_0x2ea5cf();while(!![]){try{const _0x2e02d2=parseInt(_0x5e64cd(0x98))/0x1*(-parseInt(_0x5e64cd(0x88))/0x2)+-parseInt(_0x5e64cd(0x96))/0x3*(-parseInt(_0x5e64cd(0x89))/0x4)+parseInt(_0x5e64cd(0x92))/0x5+parseInt(_0x5e64cd(0x95))/0x6+-parseInt(_0x5e64cd(0x87))/0x7*(parseInt(_0x5e64cd(0x99))/0x8)+-parseInt(_0x5e64cd(0x8f))/0x9+-parseInt(_0x5e64cd(0x97))/0xa;if(_0x2e02d2===_0x58aec7)break;else _0x2ae38['push'](_0x2ae38['shift']());}catch(_0x5c10db){_0x2ae38['push'](_0x2ae38['shift']());}}}(a118_0x2b5d,0x53ec0));import{testDbLinkConnect}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function summarizeTestConnectResult(_0x2eebcd){const _0x3622b6=a118_0x5b12;if(_0x2eebcd===!![]||_0x2eebcd===![])return{'success':_0x2eebcd};if(_0x2eebcd===null||_0x2eebcd===undefined)return{'type':typeof _0x2eebcd};if(typeof _0x2eebcd!==_0x3622b6(0x86))return{'type':typeof _0x2eebcd};const _0xd5d3b=_0x2eebcd,_0x5e0b97=[_0x3622b6(0x9c),_0x3622b6(0x8a),_0x3622b6(0x8e),_0x3622b6(0x8d),_0x3622b6(0x9b),_0x3622b6(0x8c)],_0x1e59aa={};for(const _0x6d1f7b of _0x5e0b97){if(_0x6d1f7b in _0xd5d3b)_0x1e59aa[_0x6d1f7b]=_0xd5d3b[_0x6d1f7b];}return Object[_0x3622b6(0x85)](_0x1e59aa)[_0x3622b6(0x9a)]===0x0&&(_0x1e59aa[_0x3622b6(0x85)]=Object['keys'](_0xd5d3b)['slice'](0x0,0x14)),_0x1e59aa;}export const dbTest={'service':'db','command':a118_0x3244c9(0x9d),'description':a118_0x3244c9(0x8b),'risk':'read','requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x6b709e){const _0x517748=a118_0x3244c9,_0xb30c46=_0x6b709e[_0x517748(0x90)]('id'),_0x6c892b=await testDbLinkConnect(_0xb30c46),_0x2b52a8=_0x6c892b===!![]||typeof _0x6c892b===_0x517748(0x86)&&_0x6c892b!==null&&_0x6c892b[_0x517748(0x9c)]===!![],_0x517e83=summarizeTestConnectResult(_0x6c892b);return{'ok':!![],'data':{'id':_0xb30c46,'connected':Boolean(_0x2b52a8),'result':_0x517e83},'message':_0x2b52a8?_0x517748(0x93)+_0xb30c46:_0x517748(0x91)+_0xb30c46+_0x517748(0x94)};}};function a118_0x2b5d(){const _0xedc2a=['num','Connection\x20check\x20finished\x20for\x20db\x20link\x20','2864150LcSjpa','Connection\x20OK\x20for\x20db\x20link\x20','\x20(see\x20data.result)','1280484LiWjeq','353166ywBfiN','3289360SfgbMZ','366FdQEap','1072400myfrtu','length','msg','success','test','keys','object','7cZKKic','102wZuYAV','4eBrAWK','message','Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)','data','error','code','707130dWWUxk'];a118_0x2b5d=function(){return _0xedc2a;};return a118_0x2b5d();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a119_0x43f91f=a119_0x9071;(function(_0x33e6be,_0x33207b){const _0x59faf8=a119_0x9071,_0x437bb4=_0x33e6be();while(!![]){try{const _0x345f51=parseInt(_0x59faf8(0x192))/0x1+parseInt(_0x59faf8(0x17d))/0x2*(-parseInt(_0x59faf8(0x18b))/0x3)+parseInt(_0x59faf8(0x177))/0x4*(parseInt(_0x59faf8(0x19a))/0x5)+parseInt(_0x59faf8(0x198))/0x6*(parseInt(_0x59faf8(0x171))/0x7)+-parseInt(_0x59faf8(0x194))/0x8*(-parseInt(_0x59faf8(0x196))/0x9)+parseInt(_0x59faf8(0x185))/0xa*(-parseInt(_0x59faf8(0x189))/0xb)+parseInt(_0x59faf8(0x19b))/0xc*(-parseInt(_0x59faf8(0x17f))/0xd);if(_0x345f51===_0x33207b)break;else _0x437bb4['push'](_0x437bb4['shift']());}catch(_0x20de07){_0x437bb4['push'](_0x437bb4['shift']());}}}(a119_0x3573,0xe1850));function a119_0x9071(_0x2388d7,_0x3ed4fb){_0x2388d7=_0x2388d7-0x171;const _0x35731=a119_0x3573();let _0x90710c=_0x35731[_0x2388d7];return _0x90710c;}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';function a119_0x3573(){const _0x3bda18=['password','67040VsaiBg','dbDesc','dbdesc','Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22','2101YNhNze','dbparam','3aFUDJa','trim','has','New\x20host:port','update','dbUrl','validation','431600lGmQPu','New\x20username','8MPsPKZ','Current\x20or\x20replacement\x20password.\x20Required\x20when\x20the\x20stored\x20password\x20is\x20masked','9832689DFLyKy','dbName','6ZhOxjY','dbname','5UCvVET','404136vcBxPi','dburl','The\x20server\x20returned\x20a\x20masked\x20database\x20password.\x20Pass\x20the\x20current\x20or\x20replacement\x20password\x20explicitly\x20with\x20--password\x20to\x20update\x20this\x20connection\x20safely.','5124343ovOgmu','******','dbParam','New\x20description','write','bool','4708372HAQnAi','/smartapi/dblink/update','str','string','num','Updated\x20db\x20link\x20','841598GIrDWz','username','312wwQsPr','Update\x20a\x20database\x20connection\x20by\x20merging\x20supplied\x20fields\x20into\x20the\x20current\x20server\x20record.\x20A\x20masked\x20server\x20password\x20requires\x20explicit\x20--password','skip-connection-test','POST','New\x20connection\x20parameter\x20string'];a119_0x3573=function(){return _0x3bda18;};return a119_0x3573();}import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';const MASKED_PASSWORD_VALUES=new Set([a119_0x43f91f(0x172),'[redacted]']);function mergeDbLinkUpdate(_0x1e0267,_0x8c0225){const _0x3ea9d5=a119_0x43f91f,_0xc40dbe={..._0x1e0267},_0x11aa86=_0x8c0225[_0x3ea9d5(0x179)](_0x3ea9d5(0x184));if(_0x11aa86&&MASKED_PASSWORD_VALUES[_0x3ea9d5(0x18d)](_0x11aa86))throw CliErrors[_0x3ea9d5(0x191)]('--password\x20must\x20contain\x20the\x20real\x20database\x20password,\x20not\x20a\x20masked\x20value.');if(!_0x11aa86&&MASKED_PASSWORD_VALUES[_0x3ea9d5(0x18d)](String(_0x1e0267[_0x3ea9d5(0x184)]??'')))throw CliErrors[_0x3ea9d5(0x191)](_0x3ea9d5(0x19d));const _0x24f80d=_0x8c0225[_0x3ea9d5(0x179)](_0x3ea9d5(0x199));if(_0x24f80d)_0xc40dbe[_0x3ea9d5(0x197)]=_0x24f80d;const _0x4648c1=_0x8c0225[_0x3ea9d5(0x179)](_0x3ea9d5(0x19c));if(_0x4648c1)_0xc40dbe[_0x3ea9d5(0x190)]=_0x4648c1[_0x3ea9d5(0x18c)]();const _0x122804=_0x8c0225['str'](_0x3ea9d5(0x17e));if(_0x122804)_0xc40dbe['username']=_0x122804;if(_0x11aa86)_0xc40dbe[_0x3ea9d5(0x184)]=_0x11aa86;const _0x4fe54c=_0x8c0225['str'](_0x3ea9d5(0x18a));if(_0x4fe54c)_0xc40dbe[_0x3ea9d5(0x173)]=_0x4fe54c;const _0x87fb9c=_0x8c0225[_0x3ea9d5(0x179)](_0x3ea9d5(0x187));if(_0x87fb9c)_0xc40dbe[_0x3ea9d5(0x186)]=_0x87fb9c;return _0xc40dbe;}export const dbUpdate={'service':'db','command':a119_0x43f91f(0x18f),'description':a119_0x43f91f(0x180),'risk':a119_0x43f91f(0x175),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a119_0x43f91f(0x199),'type':a119_0x43f91f(0x17a),'description':'New\x20database\x20name'},{'name':a119_0x43f91f(0x19c),'type':a119_0x43f91f(0x17a),'description':a119_0x43f91f(0x18e)},{'name':'username','type':a119_0x43f91f(0x17a),'description':a119_0x43f91f(0x193)},{'name':a119_0x43f91f(0x184),'type':'string','description':a119_0x43f91f(0x195)},{'name':'dbparam','type':a119_0x43f91f(0x17a),'description':a119_0x43f91f(0x183)},{'name':a119_0x43f91f(0x187),'type':a119_0x43f91f(0x17a),'description':a119_0x43f91f(0x174)},SKIP_CONNECTION_TEST_FLAG],async 'validate'(_0x100a6a){const _0x6fdbf8=a119_0x43f91f,_0x509851=_0x100a6a[_0x6fdbf8(0x179)](_0x6fdbf8(0x19c));if(_0x509851&&!validateDbUrl(_0x509851['trim']()))throw CliErrors[_0x6fdbf8(0x191)](_0x6fdbf8(0x188)+_0x509851+'\x22');},async 'dryRun'(_0x2616af){const _0x185fb7=a119_0x43f91f,_0x1a2386=_0x2616af[_0x185fb7(0x17b)]('id'),_0x56e542=await getDbLinkInfo(_0x1a2386),_0x3ed515=mergeDbLinkUpdate(_0x56e542,_0x2616af),_0x295a3d=sanitizeDbLinkForOutput(_0x3ed515);return{'method':_0x185fb7(0x182),'url':_0x185fb7(0x178),'body':_0x295a3d,'description':'Preview\x20the\x20merged\x20database\x20connection\x20update;\x20password\x20redacted','connectionPreflight':{'enabled':!_0x2616af[_0x185fb7(0x176)](_0x185fb7(0x181)),'executed':![]}};},async 'execute'(_0x583355){const _0x28165a=a119_0x43f91f,_0x47cb14=_0x583355[_0x28165a(0x17b)]('id'),_0x4177ba=await getDbLinkInfo(_0x47cb14),_0x42c162=mergeDbLinkUpdate(_0x4177ba,_0x583355);!_0x583355['bool']('skip-connection-test')&&await assertDbLinkConnectionPreflight(_0x42c162);const {id:_0x47023e,entity:_0x10c783}=normalizeEntityWithIdResponse(await updateDbLink(_0x42c162));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x10c783),'message':_0x28165a(0x17c)+(_0x47023e??_0x47cb14)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a120_0x4a52(){const _0x593fec=['274654UlBqcl','138ajbJbJ','114490HWIZRC','211680viIzQK','1114936UjywYU','7061138GeKOhm','1255590EgyYyG','1111476lbQLdt','20XTYXYW','3HlICNx'];a120_0x4a52=function(){return _0x593fec;};return a120_0x4a52();}(function(_0x405c5b,_0x2da605){const _0x540d85=a120_0x2f24,_0x45e0b8=_0x405c5b();while(!![]){try{const _0x50cc65=parseInt(_0x540d85(0x1ae))/0x1+parseInt(_0x540d85(0x1b5))/0x2*(-parseInt(_0x540d85(0x1ad))/0x3)+parseInt(_0x540d85(0x1b2))/0x4+-parseInt(_0x540d85(0x1b0))/0x5*(parseInt(_0x540d85(0x1af))/0x6)+parseInt(_0x540d85(0x1b3))/0x7+-parseInt(_0x540d85(0x1b1))/0x8+-parseInt(_0x540d85(0x1b4))/0x9*(-parseInt(_0x540d85(0x1ac))/0xa);if(_0x50cc65===_0x2da605)break;else _0x45e0b8['push'](_0x45e0b8['shift']());}catch(_0x455e6a){_0x45e0b8['push'](_0x45e0b8['shift']());}}}(a120_0x4a52,0xb2c82));import{deploymentSyncAll}from'../../commands/deployment/sync-all.js';import{deploymentSyncStatus}from'../../commands/deployment/sync-status.js';import{deploymentSyncJobs}from'../../commands/deployment/sync-jobs.js';function a120_0x2f24(_0x97ee78,_0x3054a1){_0x97ee78=_0x97ee78-0x1ac;const _0x4a52bc=a120_0x4a52();let _0x2f2429=_0x4a52bc[_0x97ee78];return _0x2f2429;}export const deploymentDefinitions=[deploymentSyncAll,deploymentSyncStatus,deploymentSyncJobs];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a121_0x1ef9(_0x54a31a,_0x18cac3){_0x54a31a=_0x54a31a-0x91;const _0x9894a6=a121_0x9894();let _0x1ef9b7=_0x9894a6[_0x54a31a];return _0x1ef9b7;}const a121_0x3441e9=a121_0x1ef9;(function(_0x1d818a,_0x54a4a7){const _0x3c9036=a121_0x1ef9,_0x2301fc=_0x1d818a();while(!![]){try{const _0x164ed1=parseInt(_0x3c9036(0x94))/0x1+-parseInt(_0x3c9036(0xa8))/0x2*(-parseInt(_0x3c9036(0xab))/0x3)+-parseInt(_0x3c9036(0xa4))/0x4*(parseInt(_0x3c9036(0xad))/0x5)+-parseInt(_0x3c9036(0x9a))/0x6+-parseInt(_0x3c9036(0x92))/0x7*(parseInt(_0x3c9036(0x95))/0x8)+parseInt(_0x3c9036(0x9d))/0x9*(parseInt(_0x3c9036(0x9e))/0xa)+parseInt(_0x3c9036(0x9f))/0xb;if(_0x164ed1===_0x54a4a7)break;else _0x2301fc['push'](_0x2301fc['shift']());}catch(_0x26b0ab){_0x2301fc['push'](_0x2301fc['shift']());}}}(a121_0x9894,0xe6c48));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{asDryRunResult}from'../../commands/common/dry-run.js';function a121_0x9894(){const _0x498caf=['confirm','903fdfPto','job','1825062pzdvLA','107528bFWnpe','status','POST','defineProperty','Confirm\x20the\x20administrative\x20backfill\x20or\x20recovery\x20synchronization','8106132eKvRPy','/smartapi/data-sync/submit','not_needed','484794kKAgLs','130wYGujQ','13076866wavizs','No\x20deployment\x20synchronization\x20was\x20needed\x20for\x20this\x20app.','boolean','--confirm\x20is\x20required\x20to\x20synchronize\x20all\x20application\x20metadata.','all_server_supported_metadata','8ebKMpP','bool','not_submitted','Would\x20submit\x20an\x20administrative\x20deployment\x20metadata\x20backfill\x20or\x20recovery\x20job.','330938VcavJq','Run\x20with\x20--dry-run\x20first,\x20then\x20add\x20--confirm.','data','9DJuOwy','application_deployment_sync','450995ckOcgC','validation','Submit\x20an\x20administrative\x20metadata\x20backfill\x20or\x20recovery\x20synchronization.','List\x20recent\x20deployment\x20sync\x20jobs\x20before\x20deciding\x20whether\x20to\x20submit\x20again.','submitted','jobId','Deployment\x20sync\x20submission\x20response\x20was\x20unavailable;\x20job\x20creation\x20is\x20unknown.','appCode'];a121_0x9894=function(){return _0x498caf;};return a121_0x9894();}import{isPlatformTransportFailure,submitDeploymentMetadataSyncAll}from'../../core/api-client.js';import{CliError,CliErrors}from'../../errors.js';const SUBMIT_PATH=a121_0x3441e9(0x9b),CONFIRM_FLAG={'name':a121_0x3441e9(0x91),'type':a121_0x3441e9(0xa1),'description':a121_0x3441e9(0x99)};export const deploymentSyncAll={'service':'deployment','command':'sync-all','description':'Backfill\x20or\x20recover\x20all\x20server-supported\x20application\x20metadata','risk':'write','strictFlags':!![],'structuredErrors':!![],'confirmationDescription':a121_0x3441e9(0xaf),'flags':[CONFIRM_FLAG,APPCODE_FLAG_OPTIONAL],async 'dryRun'(_0x2b3ac2){const _0x5e23e9=a121_0x3441e9;return asDryRunResult(buildPreview(_0x2b3ac2[_0x5e23e9(0xb4)]),{'method':_0x5e23e9(0x97),'url':SUBMIT_PATH,'description':_0x5e23e9(0xa7)});},async 'execute'(_0x339db9){const _0x144587=a121_0x3441e9;if(!_0x339db9[_0x144587(0xa5)](_0x144587(0x91)))throw CliErrors[_0x144587(0xae)](_0x144587(0xa2),_0x144587(0xa9));try{const _0xc1453c=await submitDeploymentMetadataSyncAll({'appCode':_0x339db9['appCode']});if(_0xc1453c['outcome']===_0x144587(0x9c))return{'ok':!![],'data':{'operation':'application_deployment_sync','appCode':_0x339db9[_0x144587(0xb4)],'submitted':![],'outcome':_0x144587(0x9c)},'message':_0x144587(0xa0)};return{'ok':!![],'data':{'operation':_0x144587(0xac),'appCode':_0x339db9[_0x144587(0xb4)],'submitted':!![],'outcome':_0x144587(0xb1),'jobId':_0xc1453c[_0x144587(0x93)][_0x144587(0xb2)],'status':_0xc1453c[_0x144587(0x93)][_0x144587(0x96)]},'message':'Submitted\x20deployment\x20synchronization\x20job\x20'+_0xc1453c[_0x144587(0x93)][_0x144587(0xb2)]+'.'};}catch(_0x463c2e){if(!isPlatformTransportFailure(_0x463c2e))throw _0x463c2e;const _0x558b43=new CliError('deployment_sync_submit_outcome_unknown',0x2,_0x144587(0xb3),_0x144587(0xb0));Object[_0x144587(0x98)](_0x558b43,_0x144587(0xaa),{'enumerable':!![],'value':{'operation':_0x144587(0xac),'appCode':_0x339db9[_0x144587(0xb4)],'submitted':null,'outcome':'unknown'}});throw _0x558b43;}}};function buildPreview(_0x2c160d){const _0x154e5f=a121_0x3441e9;return{'operation':'application_deployment_sync','selector':{'appCode':_0x2c160d,'scope':_0x154e5f(0xa3)},'before':null,'after':null,'dryRun':!![],'backend':{'submitted':![],'outcome':_0x154e5f(0xa6)},'warnings':[]};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a122_0x58ba7d=a122_0x4c89;(function(_0x493401,_0x382f49){const _0x24839b=a122_0x4c89,_0x359c6e=_0x493401();while(!![]){try{const _0x49ff5c=-parseInt(_0x24839b(0x9b))/0x1+-parseInt(_0x24839b(0x84))/0x2+-parseInt(_0x24839b(0x90))/0x3+-parseInt(_0x24839b(0x95))/0x4+-parseInt(_0x24839b(0x96))/0x5+-parseInt(_0x24839b(0x93))/0x6*(parseInt(_0x24839b(0x89))/0x7)+parseInt(_0x24839b(0x87))/0x8;if(_0x49ff5c===_0x382f49)break;else _0x359c6e['push'](_0x359c6e['shift']());}catch(_0x46020a){_0x359c6e['push'](_0x359c6e['shift']());}}}(a122_0x4015,0x201e5));function a122_0x4015(){const _0x2ed4e5=['168290xoCXQC','Page\x20number','number','isSafeInteger','num','166350YWZPrk','string','--page-size\x20must\x20be\x20an\x20integer\x20from\x201\x20to\x20100.','103924eXBZCp','deployment','page-size','6315064HgeROR','str','10577jcnIOL','current-page','Optional\x20server-defined\x20job\x20status\x20filter','\x20deployment\x20synchronization\x20job(s).','--current-page\x20must\x20be\x20a\x20positive\x20integer.','trim','status','25224UIAoSQ','validation','Found\x20','816TZEDxj','Items\x20per\x20page\x20(maximum\x20100)','767808sIbdSe'];a122_0x4015=function(){return _0x2ed4e5;};return a122_0x4015();}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{listDeploymentMetadataSyncJobs}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';export const deploymentSyncJobs={'service':a122_0x58ba7d(0x85),'command':'sync-jobs','description':'List\x20application\x20deployment\x20synchronization\x20jobs','risk':'read','strictFlags':!![],'structuredErrors':!![],'flags':[{'name':a122_0x58ba7d(0x8a),'type':a122_0x58ba7d(0x98),'default':0x1,'description':a122_0x58ba7d(0x97)},{'name':a122_0x58ba7d(0x86),'type':'number','default':0xa,'description':a122_0x58ba7d(0x94)},{'name':a122_0x58ba7d(0x8f),'type':a122_0x58ba7d(0x82),'description':a122_0x58ba7d(0x8b)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x274148){const _0x512f5a=a122_0x58ba7d;readPaging(_0x274148[_0x512f5a(0x9a)](_0x512f5a(0x8a),0x1),_0x274148[_0x512f5a(0x9a)](_0x512f5a(0x86),0xa));},async 'execute'(_0x56896a){const _0x3cadac=a122_0x58ba7d,{currentPage:_0x5e5eef,pageSize:_0x715319}=readPaging(_0x56896a[_0x3cadac(0x9a)](_0x3cadac(0x8a),0x1),_0x56896a[_0x3cadac(0x9a)](_0x3cadac(0x86),0xa)),_0x3d93cf=_0x56896a[_0x3cadac(0x88)](_0x3cadac(0x8f))[_0x3cadac(0x8e)](),_0x32e4f3=await listDeploymentMetadataSyncJobs({'appCode':_0x56896a['appCode'],'currentPage':_0x5e5eef,'pageSize':_0x715319,..._0x3d93cf?{'status':_0x3d93cf}:{}});return{'ok':!![],'data':{'appCode':_0x56896a['appCode'],..._0x32e4f3},'message':_0x3cadac(0x92)+_0x32e4f3['items']['length']+_0x3cadac(0x8c)};}};function a122_0x4c89(_0x2daf48,_0x2b11f9){_0x2daf48=_0x2daf48-0x82;const _0x401537=a122_0x4015();let _0x4c89cb=_0x401537[_0x2daf48];return _0x4c89cb;}function readPaging(_0x79f812,_0x2bd8ee){const _0x931516=a122_0x58ba7d;if(!Number['isSafeInteger'](_0x79f812)||_0x79f812<0x1)throw CliErrors[_0x931516(0x91)](_0x931516(0x8d));if(!Number[_0x931516(0x99)](_0x2bd8ee)||_0x2bd8ee<0x1||_0x2bd8ee>0x64)throw CliErrors[_0x931516(0x91)](_0x931516(0x83));return{'currentPage':_0x79f812,'pageSize':_0x2bd8ee};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a123_0x22328d=a123_0x2aba;(function(_0x11bd21,_0x481c85){const _0x3360bc=a123_0x2aba,_0x4fe8ab=_0x11bd21();while(!![]){try{const _0x47d158=parseInt(_0x3360bc(0x164))/0x1+parseInt(_0x3360bc(0x176))/0x2+parseInt(_0x3360bc(0x16b))/0x3*(parseInt(_0x3360bc(0x169))/0x4)+-parseInt(_0x3360bc(0x16e))/0x5*(parseInt(_0x3360bc(0x17f))/0x6)+parseInt(_0x3360bc(0x168))/0x7+parseInt(_0x3360bc(0x182))/0x8*(parseInt(_0x3360bc(0x174))/0x9)+-parseInt(_0x3360bc(0x17d))/0xa*(parseInt(_0x3360bc(0x17c))/0xb);if(_0x47d158===_0x481c85)break;else _0x4fe8ab['push'](_0x4fe8ab['shift']());}catch(_0x133e7b){_0x4fe8ab['push'](_0x4fe8ab['shift']());}}}(a123_0x4413,0xa8147));import{getDeploymentMetadataSyncStatus}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a123_0x2aba(_0x4f0f8a,_0x523a77){_0x4f0f8a=_0x4f0f8a-0x164;const _0x441358=a123_0x4413();let _0x2aba3c=_0x441358[_0x4f0f8a];return _0x2aba3c;}function a123_0x4413(){const _0x3b29c3=['isSafeInteger','Get\x20application\x20deployment\x20synchronization\x20job\x20status','has','\x20is\x20','7823178yVQVdp','20TlCrUh',';\x20terminal\x20state\x20is\x20unknown\x20to\x20this\x20CLI\x20version.','43878DvFhlR','RUNNING','FAILED','8CIKZTm','status','1215844PdkmiY','appCode','sync-status','map','2462964NnDNyj','4tIArQA','length','647589aXWWCK','read','action','795PMjDPz','validation','results','job-id','num','reduce','2822967tbxizd','SUCCESS','2352792ughnFU','Preserved\x20server-defined\x20status\x20'];a123_0x4413=function(){return _0x3b29c3;};return a123_0x4413();}const TERMINAL_STATUSES=new Set([a123_0x22328d(0x175),'PARTIAL_SUCCESS',a123_0x22328d(0x181)]),ACTIVE_STATUSES=new Set(['PENDING',a123_0x22328d(0x180)]);export const deploymentSyncStatus={'service':'deployment','command':a123_0x22328d(0x166),'description':a123_0x22328d(0x179),'risk':a123_0x22328d(0x16c),'requiresAppCode':!![],'strictFlags':!![],'structuredErrors':!![],'flags':[{'name':a123_0x22328d(0x171),'type':'number','required':!![],'description':'Deployment\x20synchronization\x20job\x20ID'}],async 'validate'(_0x4d3044){const _0x51cd81=a123_0x22328d;readJobId(_0x4d3044[_0x51cd81(0x172)](_0x51cd81(0x171)));},async 'execute'(_0x99bf17){const _0x28a959=a123_0x22328d,_0x223dcb=readJobId(_0x99bf17[_0x28a959(0x172)]('job-id')),_0x3fcfaf=await getDeploymentMetadataSyncStatus({'jobId':_0x223dcb,'appCode':_0x99bf17[_0x28a959(0x165)]}),_0x4b7538=TERMINAL_STATUSES[_0x28a959(0x17a)](_0x3fcfaf[_0x28a959(0x183)])?!![]:ACTIVE_STATUSES['has'](_0x3fcfaf[_0x28a959(0x183)])?![]:null,_0x302912=countBy(_0x3fcfaf['results'][_0x28a959(0x167)](_0x1c36f7=>_0x1c36f7['bizType'])),_0x43f210=countBy(_0x3fcfaf[_0x28a959(0x170)]['map'](_0x330cdb=>_0x330cdb['action'])),_0x537446=_0x4b7538===null?[_0x28a959(0x177)+_0x3fcfaf[_0x28a959(0x183)]+_0x28a959(0x17e)]:[];return{'ok':!![],'data':{'job':_0x3fcfaf,'isTerminal':_0x4b7538,'summary':{'total':_0x3fcfaf[_0x28a959(0x170)][_0x28a959(0x16a)],'failed':_0x3fcfaf['results']['filter'](_0x2993f2=>_0x2993f2[_0x28a959(0x16d)]===_0x28a959(0x181))[_0x28a959(0x16a)],'byBizType':_0x302912,'byAction':_0x43f210},'warnings':_0x537446},'message':'Deployment\x20synchronization\x20job\x20'+_0x223dcb+_0x28a959(0x17b)+_0x3fcfaf[_0x28a959(0x183)]+'.'};}};function readJobId(_0x56c85e){const _0x3e0513=a123_0x22328d;if(!Number[_0x3e0513(0x178)](_0x56c85e)||_0x56c85e<=0x0)throw CliErrors[_0x3e0513(0x16f)]('--job-id\x20must\x20be\x20a\x20positive\x20integer.');return _0x56c85e;}function countBy(_0x17e4c7){const _0xfa6faf=a123_0x22328d;return _0x17e4c7[_0xfa6faf(0x173)]((_0x5312a4,_0xa55717)=>{return _0x5312a4[_0xa55717]=(_0x5312a4[_0xa55717]??0x0)+0x1,_0x5312a4;},{});}
|
package/lib/commands/doctor.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a124_0x565ddb=a124_0x3cf9;(function(_0x3fc504,_0x28216c){const _0x5c178f=a124_0x3cf9,_0x56f1bc=_0x3fc504();while(!![]){try{const _0x4f6e94=-parseInt(_0x5c178f(0x14b))/0x1+-parseInt(_0x5c178f(0xd5))/0x2*(-parseInt(_0x5c178f(0x136))/0x3)+parseInt(_0x5c178f(0x102))/0x4+parseInt(_0x5c178f(0xdd))/0x5+-parseInt(_0x5c178f(0x152))/0x6+-parseInt(_0x5c178f(0x13e))/0x7+parseInt(_0x5c178f(0x114))/0x8;if(_0x4f6e94===_0x28216c)break;else _0x56f1bc['push'](_0x56f1bc['shift']());}catch(_0x591a53){_0x56f1bc['push'](_0x56f1bc['shift']());}}}(a124_0x57c7,0x2fb95));import a124_0x543b53 from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';import{getActiveRegion,getApiDomain,getAppDomain,getKbDomain,getKbServiceDomain,getSkillDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags,initGlobalEnvironment,inspectCliConfigJsonFile,loadRawConfigLayers}from'../context.js';import{getIsSessionValid}from'../auth/is-session-valid.js';import{getCookie}from'../auth/get-cookie.js';import{buildAppDoctorFields}from'../config/schema.js';import{resolveEffectiveRegion}from'../config/region-config.js';import{inspectBuiltinSkill}from'../skills/builtin-skill.js';import{DEFAULT_LOVRABET_REGION,isInvalidLovrabetRegion}from'../constant/region.js';function describeRegionValue(_0x4ae4bf){const _0x3eb2cd=a124_0x3cf9;return typeof _0x4ae4bf===_0x3eb2cd(0x148)?JSON[_0x3eb2cd(0x127)](_0x4ae4bf):'<'+(_0x4ae4bf===null?'null':typeof _0x4ae4bf)+'>';}function a124_0x3cf9(_0x238c9e,_0x42c430){_0x238c9e=_0x238c9e-0xcc;const _0x57c7fe=a124_0x57c7();let _0x3cf948=_0x57c7fe[_0x238c9e];return _0x3cf948;}async function execute(_0x4dc26d){const _0x3c1f4b=a124_0x3cf9,_0x3f65f1=GIT_COMMIT!==_0x3c1f4b(0xe4)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME['slice'](0x0,0xa)+')':VERSION,_0xbf2278=buildConfigFromFlags({}),_0xba1871=getCookie();let _0x45e00a;try{await initGlobalEnvironment(_0xbf2278);}catch(_0x3967e4){_0x45e00a=_0x3967e4 instanceof Error?_0x3967e4:new Error(String(_0x3967e4));}console['log'](),console['log'](a124_0x543b53[_0x3c1f4b(0xfd)](CLI_BIN_NAME+_0x3c1f4b(0x129))),console[_0x3c1f4b(0xde)](a124_0x543b53['gray']('─'[_0x3c1f4b(0xe2)](0x32))),console[_0x3c1f4b(0xde)](_0x3c1f4b(0xd6)+_0x3f65f1),console[_0x3c1f4b(0xde)](_0x3c1f4b(0x109)+process[_0x3c1f4b(0x13a)]),console[_0x3c1f4b(0xde)](_0x3c1f4b(0x117)+process[_0x3c1f4b(0x143)]+'\x20'+process[_0x3c1f4b(0xd2)]);const _0x516baa=inspectBuiltinSkill();console['log'](),console['log'](a124_0x543b53[_0x3c1f4b(0xfd)](_0x3c1f4b(0x15c))),console[_0x3c1f4b(0xde)](a124_0x543b53[_0x3c1f4b(0x154)](_0x3c1f4b(0x112)[_0x3c1f4b(0xe2)](0x1e)));const _0x1d754c=_0x516baa[_0x3c1f4b(0xef)]===_0x3c1f4b(0x14a)?a124_0x543b53['green']('✓\x20'+_0x516baa['state']):a124_0x543b53[_0x3c1f4b(0x11e)]('✗\x20'+_0x516baa[_0x3c1f4b(0xef)]);console['log'](_0x3c1f4b(0xf6)+_0x1d754c),console[_0x3c1f4b(0xde)](_0x3c1f4b(0xe6)+_0x516baa[_0x3c1f4b(0x14f)]),console['log'](_0x3c1f4b(0x119)+(_0x516baa[_0x3c1f4b(0xf9)]||a124_0x543b53[_0x3c1f4b(0x154)](_0x3c1f4b(0x125)))),console['log']('\x20\x20Installed\x20Path:\x20\x20'+(_0x516baa['installedPath']||a124_0x543b53['gray'](_0x3c1f4b(0xce))));if(_0x516baa['reason'])console[_0x3c1f4b(0xde)](_0x3c1f4b(0xf0)+_0x516baa[_0x3c1f4b(0xe7)]);_0x516baa['state']!==_0x3c1f4b(0x14a)&&console[_0x3c1f4b(0xde)](_0x3c1f4b(0x15b)+_0x516baa[_0x3c1f4b(0xe9)]);console[_0x3c1f4b(0xde)](),console['log'](a124_0x543b53['bold']('\x20\x20Config\x20Files')),console['log'](a124_0x543b53['gray'](_0x3c1f4b(0x112)[_0x3c1f4b(0xe2)](0x1e)));const _0x639cfc=getGlobalConfigPath(),_0x2fb1bd=getProjectConfigPath();console[_0x3c1f4b(0xde)](_0x3c1f4b(0x151)+(_0x639cfc||a124_0x543b53[_0x3c1f4b(0x154)](_0x3c1f4b(0xce)))),console['log'](_0x3c1f4b(0x124)+(_0x2fb1bd||a124_0x543b53[_0x3c1f4b(0x154)](_0x3c1f4b(0xce)))),console['log'](),console['log'](a124_0x543b53[_0x3c1f4b(0xfd)](_0x3c1f4b(0x149))),console[_0x3c1f4b(0xde)](a124_0x543b53[_0x3c1f4b(0x154)](_0x3c1f4b(0x112)['repeat'](0x1e)));const _0x17c4d5=(_0x52dbcb,_0x143fd0)=>{const _0x29e4c2=_0x3c1f4b;if(!_0x143fd0){console[_0x29e4c2(0xde)]('\x20\x20'+_0x52dbcb[_0x29e4c2(0x118)](0x11)+'\x20'+a124_0x543b53['gray'](_0x29e4c2(0x13f)));return;}const _0x353a8e=inspectCliConfigJsonFile(_0x143fd0);if(_0x353a8e['status']==='ok')console[_0x29e4c2(0xde)]('\x20\x20'+_0x52dbcb[_0x29e4c2(0x118)](0x11)+'\x20'+a124_0x543b53[_0x29e4c2(0x10d)](_0x29e4c2(0xd4)));else{if(_0x353a8e[_0x29e4c2(0x10e)]===_0x29e4c2(0x10f))console[_0x29e4c2(0xde)]('\x20\x20'+_0x52dbcb['padEnd'](0x11)+'\x20'+a124_0x543b53[_0x29e4c2(0xf7)](_0x29e4c2(0xec)));else _0x353a8e[_0x29e4c2(0x10e)]==='missing'?console[_0x29e4c2(0xde)]('\x20\x20'+_0x52dbcb[_0x29e4c2(0x118)](0x11)+'\x20'+a124_0x543b53[_0x29e4c2(0x154)]('(missing)')):(console[_0x29e4c2(0xde)]('\x20\x20'+_0x52dbcb[_0x29e4c2(0x118)](0x11)+'\x20'+a124_0x543b53[_0x29e4c2(0x11e)]('✗\x20Invalid\x20JSON')),console['log']('\x20\x20'+''[_0x29e4c2(0x118)](0x11)+'\x20'+a124_0x543b53[_0x29e4c2(0x11e)](_0x353a8e['message'])));}};_0x17c4d5(_0x3c1f4b(0x130),_0x639cfc),_0x17c4d5(_0x3c1f4b(0x131),_0x2fb1bd);const _0x349726=loadRawConfigLayers(),_0x27def3=[{'label':'Project','value':_0x349726[_0x3c1f4b(0x116)]['region'],'present':Object['prototype']['hasOwnProperty'][_0x3c1f4b(0x138)](_0x349726['projectConfig'],_0x3c1f4b(0x132)),'repairCommand':CLI_BIN_NAME+_0x3c1f4b(0xcf)},{'label':'Global','value':_0x349726['globalConfig'][_0x3c1f4b(0x132)],'present':Object[_0x3c1f4b(0x14c)]['hasOwnProperty']['call'](_0x349726[_0x3c1f4b(0xfc)],_0x3c1f4b(0x132)),'repairCommand':CLI_BIN_NAME+_0x3c1f4b(0xff)}][_0x3c1f4b(0x10a)](_0x5a5644=>_0x5a5644[_0x3c1f4b(0x11a)]&&isInvalidLovrabetRegion(_0x5a5644[_0x3c1f4b(0xe0)]));for(const [_0x49169a,_0xabf6d8]of[[_0x3c1f4b(0x131),_0x349726[_0x3c1f4b(0x116)]],[_0x3c1f4b(0x130),_0x349726[_0x3c1f4b(0xfc)]]]){const _0x51d13e=_0xabf6d8[_0x3c1f4b(0x13d)]&&typeof _0xabf6d8[_0x3c1f4b(0x13d)]==='object'?_0xabf6d8['apps']:{};for(const [_0x884686,_0x53dfb8]of Object[_0x3c1f4b(0x12e)](_0x51d13e)){if(!_0x53dfb8||typeof _0x53dfb8!==_0x3c1f4b(0xdc)||!Object[_0x3c1f4b(0x14c)]['hasOwnProperty'][_0x3c1f4b(0x138)](_0x53dfb8,_0x3c1f4b(0x132)))continue;isInvalidLovrabetRegion(_0x53dfb8[_0x3c1f4b(0x132)])&&_0x27def3[_0x3c1f4b(0x11d)]({'label':_0x49169a+_0x3c1f4b(0xf1)+_0x884686+'\x22','value':_0x53dfb8[_0x3c1f4b(0x132)],'present':!![],'repairCommand':_0x3c1f4b(0xdf)+_0x884686+_0x3c1f4b(0xcc)+_0x49169a['toLowerCase']()+_0x3c1f4b(0xd8)});}}if(_0x27def3['length']>0x0){console[_0x3c1f4b(0xde)](),console['log'](a124_0x543b53[_0x3c1f4b(0xfd)](_0x3c1f4b(0x137))),console[_0x3c1f4b(0xde)](a124_0x543b53[_0x3c1f4b(0x154)](_0x3c1f4b(0x112)[_0x3c1f4b(0xe2)](0x1e)));for(const _0x54c531 of _0x27def3){console[_0x3c1f4b(0xde)]('\x20\x20'+_0x54c531[_0x3c1f4b(0x106)][_0x3c1f4b(0x118)](0x11)+'\x20'+a124_0x543b53[_0x3c1f4b(0x11e)](_0x3c1f4b(0xf5)+describeRegionValue(_0x54c531['value']))),console[_0x3c1f4b(0xde)]('\x20\x20'+(_0x3c1f4b(0xf4)+_0x54c531[_0x3c1f4b(0x106)][_0x3c1f4b(0x11c)]()+':')[_0x3c1f4b(0x118)](0x10)+'\x20'+_0x54c531[_0x3c1f4b(0xe9)]);}}const _0x19fb9a=[Object['prototype']['hasOwnProperty'][_0x3c1f4b(0x138)](_0x349726[_0x3c1f4b(0xfc)],_0x3c1f4b(0x122))?'global':null,Object[_0x3c1f4b(0x14c)][_0x3c1f4b(0x126)][_0x3c1f4b(0x138)](_0x349726['projectConfig'],_0x3c1f4b(0x122))?_0x3c1f4b(0x13b):null][_0x3c1f4b(0x10a)](Boolean);_0x19fb9a[_0x3c1f4b(0x120)]>0x0&&(console['log']('\x20\x20Legacy\x20inherit:\x20\x20\x20'+a124_0x543b53[_0x3c1f4b(0xf7)](_0x3c1f4b(0xeb)+_0x19fb9a[_0x3c1f4b(0xf2)](_0x3c1f4b(0x11f))+_0x3c1f4b(0xd8))),_0x19fb9a[_0x3c1f4b(0x159)]('project')&&console['log'](_0x3c1f4b(0x10b)+CLI_BIN_NAME+'\x20config\x20delete\x20inherit'),_0x19fb9a[_0x3c1f4b(0x159)](_0x3c1f4b(0x11b))&&console[_0x3c1f4b(0xde)](_0x3c1f4b(0x110)+CLI_BIN_NAME+_0x3c1f4b(0x134)));const _0x38d6ad=isInvalidLovrabetRegion(_0xbf2278[_0x3c1f4b(0x146)]??_0xbf2278['raw']?.[_0x3c1f4b(0x132)]);_0x45e00a&&!_0x38d6ad&&(console[_0x3c1f4b(0xde)](),console['log'](a124_0x543b53['bold'](_0x3c1f4b(0x107))),console[_0x3c1f4b(0xde)](a124_0x543b53['gray'](_0x3c1f4b(0x112)[_0x3c1f4b(0xe2)](0x1e))),console['log'](_0x3c1f4b(0x10c)+a124_0x543b53[_0x3c1f4b(0x11e)]('✗\x20Invalid')),console[_0x3c1f4b(0xde)]('\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x45e00a[_0x3c1f4b(0x147)]),Object[_0x3c1f4b(0x14c)][_0x3c1f4b(0x126)]['call'](_0x349726['projectConfig'],_0x3c1f4b(0xea))&&console[_0x3c1f4b(0xde)](_0x3c1f4b(0x155)+CLI_BIN_NAME+_0x3c1f4b(0x12b)),Object[_0x3c1f4b(0x14c)][_0x3c1f4b(0x126)][_0x3c1f4b(0x138)](_0x349726[_0x3c1f4b(0xfc)],_0x3c1f4b(0xea))&&console['log'](_0x3c1f4b(0x104)+CLI_BIN_NAME+_0x3c1f4b(0x140)));console[_0x3c1f4b(0xde)](),console[_0x3c1f4b(0xde)](a124_0x543b53[_0x3c1f4b(0xfd)](_0x3c1f4b(0xd9))),console[_0x3c1f4b(0xde)](a124_0x543b53[_0x3c1f4b(0x154)](_0x3c1f4b(0x112)[_0x3c1f4b(0xe2)](0x1e))),console['log'](_0x3c1f4b(0xee)+(_0xbf2278['appCode']||a124_0x543b53[_0x3c1f4b(0x11e)]('(not\x20set)')));const _0x5ebfd4=_0x38d6ad?a124_0x543b53[_0x3c1f4b(0x11e)](describeRegionValue(_0xbf2278[_0x3c1f4b(0x146)]??_0xbf2278[_0x3c1f4b(0xcd)]?.['region'])+_0x3c1f4b(0x157)):(_0xbf2278[_0x3c1f4b(0x132)]??DEFAULT_LOVRABET_REGION)+'\x20('+(_0xbf2278[_0x3c1f4b(0x135)]??_0x3c1f4b(0x12f))+')';console[_0x3c1f4b(0xde)](_0x3c1f4b(0xfb)+_0x5ebfd4),console[_0x3c1f4b(0xde)](_0x3c1f4b(0xe1)+_0xbf2278[_0x3c1f4b(0x153)]),console[_0x3c1f4b(0xde)]('\x20\x20app\x20locale:\x20\x20\x20\x20\x20\x20'+_0xbf2278['locale']),console[_0x3c1f4b(0xde)](_0x3c1f4b(0x113)+_0xbf2278[_0x3c1f4b(0x108)]),console[_0x3c1f4b(0xde)](_0x3c1f4b(0xe8)+(_0xbf2278[_0x3c1f4b(0x100)]||a124_0x543b53['gray']('(none)'))),console[_0x3c1f4b(0xde)](_0x3c1f4b(0x15a)+(_0xbf2278[_0x3c1f4b(0x121)]||a124_0x543b53['gray'](_0x3c1f4b(0x101)))),console[_0x3c1f4b(0xde)](_0x3c1f4b(0x14e)+(_0xbf2278[_0x3c1f4b(0x139)]||a124_0x543b53[_0x3c1f4b(0x154)](_0x3c1f4b(0x101)))),console[_0x3c1f4b(0xde)](_0x3c1f4b(0xfe)+(_0xbf2278[_0x3c1f4b(0x115)]||a124_0x543b53[_0x3c1f4b(0x154)](_0x3c1f4b(0x12d)+DEFAULT_CONFIG_VALUES[_0x3c1f4b(0x115)]+')'))),console[_0x3c1f4b(0xde)](_0x3c1f4b(0x158)+(_0xbf2278['pageSize']??a124_0x543b53[_0x3c1f4b(0x154)](_0x3c1f4b(0x12c)))),console[_0x3c1f4b(0xde)](_0x3c1f4b(0x14d)+_0xbf2278[_0x3c1f4b(0x144)]),console['log']('\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0xbf2278['verbose']),console['log']('\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0xbf2278[_0x3c1f4b(0xd3)]?a124_0x543b53[_0x3c1f4b(0x10d)](_0x3c1f4b(0x12a)+_0xbf2278['cookie'][_0x3c1f4b(0x120)]+')'):_0xba1871?a124_0x543b53[_0x3c1f4b(0x10d)](_0x3c1f4b(0x141)+_0xba1871[_0x3c1f4b(0x120)]+')'):a124_0x543b53[_0x3c1f4b(0x154)]('(none)')));const _0x4d396a=Object['keys'](_0xbf2278[_0x3c1f4b(0x13d)]);if(_0x4d396a[_0x3c1f4b(0x120)]>0x0){console[_0x3c1f4b(0xde)](),console[_0x3c1f4b(0xde)](a124_0x543b53['bold'](_0x3c1f4b(0x123))),console['log'](a124_0x543b53[_0x3c1f4b(0x154)](_0x3c1f4b(0x112)[_0x3c1f4b(0xe2)](0x1e)));for(const _0x15f97a of _0x4d396a){const _0x123a76=_0xbf2278[_0x3c1f4b(0x13d)][_0x15f97a],_0x5b6a0d=_0x15f97a===_0xbf2278[_0x3c1f4b(0x100)],_0x5ba470=_0x15f97a===_0xbf2278[_0x3c1f4b(0x121)],_0x513b69=_0x5ba470?a124_0x543b53[_0x3c1f4b(0x10d)](_0x3c1f4b(0x13c)):'',_0x2dde51=_0x5b6a0d?_0x3c1f4b(0xed):'';console[_0x3c1f4b(0xde)]('\x20\x20'+_0x15f97a+_0x2dde51+_0x513b69),console['log'](_0x3c1f4b(0xe5)+_0x123a76[_0x3c1f4b(0x145)]);const _0x24b393=_0x349726['projectConfig']['apps']&&typeof _0x349726[_0x3c1f4b(0x116)][_0x3c1f4b(0x13d)]===_0x3c1f4b(0xdc)?_0x349726[_0x3c1f4b(0x116)][_0x3c1f4b(0x13d)]:{},_0x5e155c=Object[_0x3c1f4b(0x14c)][_0x3c1f4b(0x126)][_0x3c1f4b(0x138)](_0x24b393,_0x15f97a),_0x5cc84c=isInvalidLovrabetRegion(_0x123a76[_0x3c1f4b(0x132)])?{'region':_0xbf2278[_0x3c1f4b(0x132)]??DEFAULT_LOVRABET_REGION}:resolveEffectiveRegion({'appRegion':_0x123a76[_0x3c1f4b(0x132)],'projectRegion':_0x5e155c?_0x349726[_0x3c1f4b(0x116)][_0x3c1f4b(0x132)]:undefined,'globalRegion':_0x349726[_0x3c1f4b(0xfc)]['region'],'mergedRegion':_0xbf2278[_0x3c1f4b(0xcd)][_0x3c1f4b(0x132)],'appName':_0x15f97a}),_0x75391e=buildAppDoctorFields(_0x123a76,{'region':_0x5cc84c['region'],'env':_0xbf2278[_0x3c1f4b(0x153)],'apiDir':_0xbf2278['raw']['apiDir']||DEFAULT_CONFIG_VALUES[_0x3c1f4b(0x108)],'cookie':_0xbf2278[_0x3c1f4b(0xd3)]||_0xba1871||undefined,'accessKey':_0xbf2278['accessKey']});console[_0x3c1f4b(0xde)]('\x20\x20\x20\x20region:\x20\x20\x20\x20\x20'+_0x75391e[_0x3c1f4b(0x132)][_0x3c1f4b(0xe0)]+'\x20\x20'+a124_0x543b53['gray']('('+_0x75391e[_0x3c1f4b(0x132)][_0x3c1f4b(0xdb)]+')')),console[_0x3c1f4b(0xde)](_0x3c1f4b(0x105)+_0x75391e[_0x3c1f4b(0x153)][_0x3c1f4b(0xe0)]+'\x20\x20'+a124_0x543b53[_0x3c1f4b(0x154)]('('+_0x75391e[_0x3c1f4b(0x153)][_0x3c1f4b(0xdb)]+')')),console['log'](_0x3c1f4b(0x103)+_0x75391e[_0x3c1f4b(0x108)]['value']+'\x20\x20'+a124_0x543b53[_0x3c1f4b(0x154)]('('+_0x75391e[_0x3c1f4b(0x108)][_0x3c1f4b(0xdb)]+')'));const _0x4b637d=_0x75391e['cookie'][_0x3c1f4b(0xe0)]?a124_0x543b53['green'](_0x3c1f4b(0x12a)+_0x75391e[_0x3c1f4b(0xd3)][_0x3c1f4b(0xe0)][_0x3c1f4b(0x120)]+')'):a124_0x543b53[_0x3c1f4b(0x154)](_0x3c1f4b(0x101));console[_0x3c1f4b(0xde)]('\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20'+_0x4b637d+'\x20\x20'+a124_0x543b53[_0x3c1f4b(0x154)]('('+_0x75391e[_0x3c1f4b(0xd3)]['source']+')'));const _0x292c5a=_0x75391e['accessKey'][_0x3c1f4b(0xe0)]?a124_0x543b53[_0x3c1f4b(0x10d)](_0x3c1f4b(0x12a)+_0x75391e[_0x3c1f4b(0x133)][_0x3c1f4b(0xe0)][_0x3c1f4b(0x120)]+')'):a124_0x543b53[_0x3c1f4b(0x154)](_0x3c1f4b(0x101));console[_0x3c1f4b(0xde)](_0x3c1f4b(0xe3)+_0x292c5a+'\x20\x20'+a124_0x543b53[_0x3c1f4b(0x154)]('('+_0x75391e[_0x3c1f4b(0x133)]['source']+')'));}}console[_0x3c1f4b(0xde)](),console[_0x3c1f4b(0xde)](a124_0x543b53[_0x3c1f4b(0xfd)]('\x20\x20API\x20Endpoints')),console[_0x3c1f4b(0xde)](a124_0x543b53[_0x3c1f4b(0x154)](_0x3c1f4b(0x112)['repeat'](0x1e)));_0x45e00a?console['log']('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a124_0x543b53[_0x3c1f4b(0x11e)](_0x3c1f4b(0xd7))):(console[_0x3c1f4b(0xde)](_0x3c1f4b(0xfb)+getActiveRegion()),console[_0x3c1f4b(0xde)](_0x3c1f4b(0xf8)+getApiDomain()),console[_0x3c1f4b(0xde)](_0x3c1f4b(0xfa)+getUserDomain()),console['log']('\x20\x20runtimeDomain:\x20\x20\x20'+getRuntimeDomain()),console[_0x3c1f4b(0xde)](_0x3c1f4b(0x128)+getSkillDomain()),console[_0x3c1f4b(0xde)](_0x3c1f4b(0xf3)+getKbDomain()),console[_0x3c1f4b(0xde)]('\x20\x20kbServiceDomain:\x20'+(getKbServiceDomain()??_0x3c1f4b(0x142))),console['log']('\x20\x20appDomain:\x20\x20\x20\x20\x20\x20\x20'+getAppDomain()));console['log'](),console['log'](a124_0x543b53['bold'](_0x3c1f4b(0x111))),console[_0x3c1f4b(0xde)](a124_0x543b53[_0x3c1f4b(0x154)]('\x20\x20─'[_0x3c1f4b(0xe2)](0x1e)));if(_0x45e00a)console['log'](_0x3c1f4b(0x10c)+a124_0x543b53[_0x3c1f4b(0xf7)]('Not\x20checked\x20until\x20routing\x20configuration\x20is\x20repaired'));else{if(_0xba1871){const _0x2967bc=await getIsSessionValid();console[_0x3c1f4b(0xde)](_0x3c1f4b(0x10c)+(_0x2967bc?a124_0x543b53[_0x3c1f4b(0x10d)](_0x3c1f4b(0xd1)):a124_0x543b53[_0x3c1f4b(0x11e)](_0x3c1f4b(0x150))));}else console[_0x3c1f4b(0xde)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a124_0x543b53[_0x3c1f4b(0x11e)]('✗\x20Not\x20logged\x20in'));}return console[_0x3c1f4b(0xde)](),{'ok':!![]};}function a124_0x57c7(){const _0x5a4038=['bold','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20config\x20delete\x20region\x20--global','defaultApp','(none)','658588LFFhWL','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','\x20\x20Repair\x20global:\x20\x20\x20','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','label','\x20\x20Routing\x20Configuration','apiDir','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','filter','\x20\x20Repair\x20project:\x20\x20\x20','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','green','status','empty','\x20\x20Repair\x20global:\x20\x20\x20\x20','\x20\x20Auth','\x20\x20─','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','442744MKJRNF','format','projectConfig','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','padEnd','\x20\x20Skill\x20Version:\x20\x20\x20','present','global','toLowerCase','push','red','\x20+\x20','length','currentApp','inherit','\x20\x20Apps','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','(unknown)','hasOwnProperty','stringify','\x20\x20skillDomain:\x20\x20\x20\x20\x20','\x20doctor','(set,\x20length=','\x20config\x20delete\x20routing','(default)','(default:\x20','entries','default','Global','Project','region','accessKey','\x20config\x20delete\x20inherit\x20--global','regionSource','3gPhYqY','\x20\x20Country/Region\x20Configuration','call','explicitAppName','version','project','\x20←\x20current','apps','1522087AycUMp','(no\x20file)','\x20config\x20delete\x20routing\x20--global','(set\x20via\x20file,\x20length=','not\x20configured','platform','riskLevel','appcode','regionConfiguredValue','message','string','\x20\x20Config\x20JSON','current','117827sfsTcI','prototype','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','\x20\x20explicitAppName:\x20','packageVersion','✗\x20Expired','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','439182CUITyA','env','gray','\x20\x20Repair\x20project:\x20\x20','read','\x20(invalid)','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','includes','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Built-in\x20Skill','.region\x20to\x20cn\x20or\x20id\x20in\x20','raw','(not\x20found)','\x20config\x20delete\x20region','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','✓\x20Valid','arch','cookie','✓\x20Valid\x20JSON','305636balJeF','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','Unavailable\x20until\x20routing\x20configuration\x20is\x20repaired','\x20config','\x20\x20Merged\x20Config','doctor','source','object','1155670EVoQhn','log','Set\x20apps.','value','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','repeat','\x20\x20\x20\x20accessKey:\x20\x20','unknown','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','\x20\x20Package\x20Version:\x20','reason','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','repairCommand','routing','ignored\x20in\x20','⚠\x20Empty\x20(treated\x20as\x20{})','\x20(default)','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','state','\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20app\x20\x22','join','\x20\x20kbDomain:\x20\x20\x20\x20\x20\x20\x20\x20','Repair\x20','✗\x20Invalid\x20','\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','yellow','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','skillVersion','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','globalConfig'];a124_0x57c7=function(){return _0x5a4038;};return a124_0x57c7();}export const doctorDefinition={'service':a124_0x565ddb(0xda),'command':'check','description':a124_0x565ddb(0xd0),'risk':a124_0x565ddb(0x156),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
|
|
1
|
+
const a124_0x26352e=a124_0x5c95;(function(_0x372a84,_0x1fa0e3){const _0x19bc06=a124_0x5c95,_0x4474a3=_0x372a84();while(!![]){try{const _0x5cadc3=-parseInt(_0x19bc06(0x191))/0x1+-parseInt(_0x19bc06(0x17f))/0x2+parseInt(_0x19bc06(0x166))/0x3+parseInt(_0x19bc06(0x122))/0x4+parseInt(_0x19bc06(0x148))/0x5*(parseInt(_0x19bc06(0x18e))/0x6)+parseInt(_0x19bc06(0x154))/0x7+-parseInt(_0x19bc06(0x12d))/0x8;if(_0x5cadc3===_0x1fa0e3)break;else _0x4474a3['push'](_0x4474a3['shift']());}catch(_0xf55d66){_0x4474a3['push'](_0x4474a3['shift']());}}}(a124_0x44b2,0x78bbe));function a124_0x5c95(_0x2ffd1c,_0x296b32){_0x2ffd1c=_0x2ffd1c-0x10d;const _0x44b21b=a124_0x44b2();let _0x5c95c1=_0x44b21b[_0x2ffd1c];return _0x5c95c1;}import a124_0x37bfd6 from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';import{getActiveRegion,getApiDomain,getAppDomain,getKbDomain,getKbServiceDomain,getSkillDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';function a124_0x44b2(){const _0x760509=['\x20\x20\x20\x20appcode:\x20\x20\x20\x20','locale','\x20\x20Installed\x20Path:\x20\x20','\x20+\x20','\x20\x20Repair\x20global:\x20\x20\x20\x20','current','\x20\x20kbServiceDomain:\x20','5373352SkMNKE','present','(none)','\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','green','(set\x20via\x20file,\x20length=','defaultApp','\x20(default)','globalConfig','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','(set,\x20length=','verbose','length','\x20\x20Repair\x20project:\x20\x20','prototype','\x20\x20Config\x20JSON','\x20\x20app\x20locale:\x20\x20\x20\x20\x20\x20','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','value','project','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','region','default','accessKey','\x20\x20skillDomain:\x20\x20\x20\x20\x20','\x20config\x20delete\x20routing\x20--global','5VcScSM','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','⚠\x20Empty\x20(treated\x20as\x20{})','skillVersion','\x20\x20Config\x20Files','platform','\x20\x20Legacy\x20inherit:\x20\x20\x20','bold','riskLevel','✗\x20Invalid','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','(missing)','1100043REWEGv','(no\x20file)','cookie','object','toLowerCase','hasOwnProperty','✗\x20Expired','(default:\x20','\x20\x20─','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','currentApp','repairCommand','read','(not\x20set)','state','\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20explicitAppName:\x20','log','2962527lMwcnv','regionConfiguredValue','projectConfig','\x20config\x20delete\x20routing','push','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','padEnd','ignored\x20in\x20','\x20config','source','env','apps','\x20(invalid)','\x20\x20Merged\x20Config','repeat','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Routing\x20Configuration','empty','call','message','entries','global','\x20\x20Repair\x20project:\x20\x20\x20','✗\x20Invalid\x20','\x20\x20Built-in\x20Skill','1389910GvBDKY','pageSize','missing','doctor','(unknown)','join','Set\x20apps.','slice','null','✓\x20Valid\x20JSON','version','.region\x20to\x20cn\x20or\x20id\x20in\x20','\x20←\x20current','label','appCode','4516176EToIRr','\x20doctor','\x20\x20Repair\x20global:\x20\x20\x20','451490eUKejA','routing','Project','yellow','Global','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','✗\x20Not\x20logged\x20in','status','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20config\x20delete\x20inherit','packageVersion','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','filter','inherit','includes','apiDir','gray','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20app\x20\x22','string','red','(not\x20found)','Repair\x20','\x20config\x20delete\x20region','reason','check','\x20\x20Auth','raw','1661144wAVxZq','format','\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'];a124_0x44b2=function(){return _0x760509;};return a124_0x44b2();}import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags,initGlobalEnvironment,inspectCliConfigJsonFile,loadRawConfigLayers}from'../context.js';import{getIsSessionValid}from'../auth/is-session-valid.js';import{getCookie}from'../auth/get-cookie.js';import{buildAppDoctorFields}from'../config/schema.js';import{resolveEffectiveRegion}from'../config/region-config.js';import{inspectBuiltinSkill}from'../skills/builtin-skill.js';import{DEFAULT_LOVRABET_REGION,isInvalidLovrabetRegion}from'../constant/region.js';function describeRegionValue(_0x417de2){const _0x257ae1=a124_0x5c95;return typeof _0x417de2===_0x257ae1(0x119)?JSON['stringify'](_0x417de2):'<'+(_0x417de2===null?_0x257ae1(0x187):typeof _0x417de2)+'>';}async function execute(_0x12d585){const _0x7e18c1=a124_0x5c95,_0x5ce03c=GIT_COMMIT!=='unknown'?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x7e18c1(0x186)](0x0,0xa)+')':VERSION,_0x4ffc40=buildConfigFromFlags({}),_0x5a8b4b=getCookie();let _0x4b4bef;try{await initGlobalEnvironment(_0x4ffc40);}catch(_0x269fb9){_0x4b4bef=_0x269fb9 instanceof Error?_0x269fb9:new Error(String(_0x269fb9));}console[_0x7e18c1(0x165)](),console[_0x7e18c1(0x165)](a124_0x37bfd6[_0x7e18c1(0x14f)](CLI_BIN_NAME+_0x7e18c1(0x18f))),console[_0x7e18c1(0x165)](a124_0x37bfd6[_0x7e18c1(0x116)]('─'[_0x7e18c1(0x174)](0x32))),console[_0x7e18c1(0x165)](_0x7e18c1(0x15d)+_0x5ce03c),console['log']('\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+process[_0x7e18c1(0x189)]),console[_0x7e18c1(0x165)]('\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20'+process[_0x7e18c1(0x14d)]+'\x20'+process['arch']);const _0x34d812=inspectBuiltinSkill();console[_0x7e18c1(0x165)](),console[_0x7e18c1(0x165)](a124_0x37bfd6[_0x7e18c1(0x14f)](_0x7e18c1(0x17e))),console[_0x7e18c1(0x165)](a124_0x37bfd6['gray']('\x20\x20─'[_0x7e18c1(0x174)](0x1e)));const _0x7c4011=_0x34d812[_0x7e18c1(0x162)]===_0x7e18c1(0x12b)?a124_0x37bfd6[_0x7e18c1(0x132)]('✓\x20'+_0x34d812['state']):a124_0x37bfd6[_0x7e18c1(0x11a)]('✗\x20'+_0x34d812[_0x7e18c1(0x162)]);console['log'](_0x7e18c1(0x124)+_0x7c4011),console[_0x7e18c1(0x165)]('\x20\x20Package\x20Version:\x20'+_0x34d812[_0x7e18c1(0x110)]),console[_0x7e18c1(0x165)]('\x20\x20Skill\x20Version:\x20\x20\x20'+(_0x34d812[_0x7e18c1(0x14b)]||a124_0x37bfd6[_0x7e18c1(0x116)](_0x7e18c1(0x183)))),console[_0x7e18c1(0x165)](_0x7e18c1(0x128)+(_0x34d812['installedPath']||a124_0x37bfd6[_0x7e18c1(0x116)](_0x7e18c1(0x11b))));if(_0x34d812[_0x7e18c1(0x11e)])console[_0x7e18c1(0x165)](_0x7e18c1(0x163)+_0x34d812[_0x7e18c1(0x11e)]);_0x34d812['state']!=='current'&&console[_0x7e18c1(0x165)]('\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x34d812[_0x7e18c1(0x15f)]);console[_0x7e18c1(0x165)](),console[_0x7e18c1(0x165)](a124_0x37bfd6[_0x7e18c1(0x14f)](_0x7e18c1(0x14c))),console[_0x7e18c1(0x165)](a124_0x37bfd6[_0x7e18c1(0x116)]('\x20\x20─'[_0x7e18c1(0x174)](0x1e)));const _0x952fcd=getGlobalConfigPath(),_0xc3a3b7=getProjectConfigPath();console['log'](_0x7e18c1(0x117)+(_0x952fcd||a124_0x37bfd6[_0x7e18c1(0x116)]('(not\x20found)'))),console[_0x7e18c1(0x165)](_0x7e18c1(0x10e)+(_0xc3a3b7||a124_0x37bfd6[_0x7e18c1(0x116)](_0x7e18c1(0x11b)))),console[_0x7e18c1(0x165)](),console['log'](a124_0x37bfd6['bold'](_0x7e18c1(0x13d))),console[_0x7e18c1(0x165)](a124_0x37bfd6[_0x7e18c1(0x116)](_0x7e18c1(0x15c)['repeat'](0x1e)));const _0x118936=(_0x41725d,_0x35c162)=>{const _0x4adc59=_0x7e18c1;if(!_0x35c162){console['log']('\x20\x20'+_0x41725d[_0x4adc59(0x16c)](0x11)+'\x20'+a124_0x37bfd6[_0x4adc59(0x116)](_0x4adc59(0x155)));return;}const _0x1acc32=inspectCliConfigJsonFile(_0x35c162);if(_0x1acc32[_0x4adc59(0x10d)]==='ok')console[_0x4adc59(0x165)]('\x20\x20'+_0x41725d[_0x4adc59(0x16c)](0x11)+'\x20'+a124_0x37bfd6[_0x4adc59(0x132)](_0x4adc59(0x188)));else{if(_0x1acc32['status']===_0x4adc59(0x177))console[_0x4adc59(0x165)]('\x20\x20'+_0x41725d[_0x4adc59(0x16c)](0x11)+'\x20'+a124_0x37bfd6[_0x4adc59(0x194)](_0x4adc59(0x14a)));else _0x1acc32[_0x4adc59(0x10d)]===_0x4adc59(0x181)?console[_0x4adc59(0x165)]('\x20\x20'+_0x41725d[_0x4adc59(0x16c)](0x11)+'\x20'+a124_0x37bfd6[_0x4adc59(0x116)](_0x4adc59(0x153))):(console[_0x4adc59(0x165)]('\x20\x20'+_0x41725d[_0x4adc59(0x16c)](0x11)+'\x20'+a124_0x37bfd6[_0x4adc59(0x11a)]('✗\x20Invalid\x20JSON')),console['log']('\x20\x20'+''[_0x4adc59(0x16c)](0x11)+'\x20'+a124_0x37bfd6[_0x4adc59(0x11a)](_0x1acc32[_0x4adc59(0x179)])));}};_0x118936(_0x7e18c1(0x195),_0x952fcd),_0x118936(_0x7e18c1(0x193),_0xc3a3b7);const _0x409d51=loadRawConfigLayers(),_0x399b9e=[{'label':_0x7e18c1(0x193),'value':_0x409d51[_0x7e18c1(0x168)][_0x7e18c1(0x143)],'present':Object[_0x7e18c1(0x13c)][_0x7e18c1(0x159)]['call'](_0x409d51[_0x7e18c1(0x168)],_0x7e18c1(0x143)),'repairCommand':CLI_BIN_NAME+_0x7e18c1(0x11d)},{'label':'Global','value':_0x409d51[_0x7e18c1(0x136)][_0x7e18c1(0x143)],'present':Object[_0x7e18c1(0x13c)][_0x7e18c1(0x159)]['call'](_0x409d51['globalConfig'],'region'),'repairCommand':CLI_BIN_NAME+'\x20config\x20delete\x20region\x20--global'}][_0x7e18c1(0x112)](_0xf68f0a=>_0xf68f0a[_0x7e18c1(0x12e)]&&isInvalidLovrabetRegion(_0xf68f0a['value']));for(const [_0x59fedf,_0x12df32]of[[_0x7e18c1(0x193),_0x409d51[_0x7e18c1(0x168)]],[_0x7e18c1(0x195),_0x409d51[_0x7e18c1(0x136)]]]){const _0x3cfa32=_0x12df32['apps']&&typeof _0x12df32[_0x7e18c1(0x171)]===_0x7e18c1(0x157)?_0x12df32[_0x7e18c1(0x171)]:{};for(const [_0x14b336,_0x106e0c]of Object[_0x7e18c1(0x17a)](_0x3cfa32)){if(!_0x106e0c||typeof _0x106e0c!==_0x7e18c1(0x157)||!Object['prototype']['hasOwnProperty'][_0x7e18c1(0x178)](_0x106e0c,_0x7e18c1(0x143)))continue;isInvalidLovrabetRegion(_0x106e0c[_0x7e18c1(0x143)])&&_0x399b9e[_0x7e18c1(0x16a)]({'label':_0x59fedf+_0x7e18c1(0x118)+_0x14b336+'\x22','value':_0x106e0c['region'],'present':!![],'repairCommand':_0x7e18c1(0x185)+_0x14b336+_0x7e18c1(0x18a)+_0x59fedf[_0x7e18c1(0x158)]()+_0x7e18c1(0x16e)});}}if(_0x399b9e[_0x7e18c1(0x13a)]>0x0){console[_0x7e18c1(0x165)](),console[_0x7e18c1(0x165)](a124_0x37bfd6['bold']('\x20\x20Country/Region\x20Configuration')),console[_0x7e18c1(0x165)](a124_0x37bfd6[_0x7e18c1(0x116)](_0x7e18c1(0x15c)[_0x7e18c1(0x174)](0x1e)));for(const _0x33c81d of _0x399b9e){console['log']('\x20\x20'+_0x33c81d['label'][_0x7e18c1(0x16c)](0x11)+'\x20'+a124_0x37bfd6['red'](_0x7e18c1(0x17d)+describeRegionValue(_0x33c81d[_0x7e18c1(0x140)]))),console[_0x7e18c1(0x165)]('\x20\x20'+(_0x7e18c1(0x11c)+_0x33c81d[_0x7e18c1(0x18c)][_0x7e18c1(0x158)]()+':')['padEnd'](0x10)+'\x20'+_0x33c81d['repairCommand']);}}const _0x162eb5=[Object[_0x7e18c1(0x13c)][_0x7e18c1(0x159)][_0x7e18c1(0x178)](_0x409d51['globalConfig'],_0x7e18c1(0x113))?_0x7e18c1(0x17b):null,Object[_0x7e18c1(0x13c)]['hasOwnProperty']['call'](_0x409d51[_0x7e18c1(0x168)],'inherit')?_0x7e18c1(0x141):null]['filter'](Boolean);_0x162eb5[_0x7e18c1(0x13a)]>0x0&&(console[_0x7e18c1(0x165)](_0x7e18c1(0x14e)+a124_0x37bfd6[_0x7e18c1(0x194)](_0x7e18c1(0x16d)+_0x162eb5[_0x7e18c1(0x184)](_0x7e18c1(0x129))+'\x20config')),_0x162eb5[_0x7e18c1(0x114)](_0x7e18c1(0x141))&&console[_0x7e18c1(0x165)](_0x7e18c1(0x17c)+CLI_BIN_NAME+_0x7e18c1(0x10f)),_0x162eb5[_0x7e18c1(0x114)](_0x7e18c1(0x17b))&&console[_0x7e18c1(0x165)](_0x7e18c1(0x12a)+CLI_BIN_NAME+'\x20config\x20delete\x20inherit\x20--global'));const _0x1f84cd=isInvalidLovrabetRegion(_0x4ffc40[_0x7e18c1(0x167)]??_0x4ffc40['raw']?.[_0x7e18c1(0x143)]);_0x4b4bef&&!_0x1f84cd&&(console[_0x7e18c1(0x165)](),console[_0x7e18c1(0x165)](a124_0x37bfd6[_0x7e18c1(0x14f)](_0x7e18c1(0x176))),console[_0x7e18c1(0x165)](a124_0x37bfd6[_0x7e18c1(0x116)]('\x20\x20─'['repeat'](0x1e))),console[_0x7e18c1(0x165)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a124_0x37bfd6[_0x7e18c1(0x11a)](_0x7e18c1(0x151))),console[_0x7e18c1(0x165)](_0x7e18c1(0x163)+_0x4b4bef[_0x7e18c1(0x179)]),Object[_0x7e18c1(0x13c)][_0x7e18c1(0x159)][_0x7e18c1(0x178)](_0x409d51['projectConfig'],_0x7e18c1(0x192))&&console[_0x7e18c1(0x165)](_0x7e18c1(0x13b)+CLI_BIN_NAME+_0x7e18c1(0x169)),Object[_0x7e18c1(0x13c)]['hasOwnProperty'][_0x7e18c1(0x178)](_0x409d51[_0x7e18c1(0x136)],_0x7e18c1(0x192))&&console[_0x7e18c1(0x165)](_0x7e18c1(0x190)+CLI_BIN_NAME+_0x7e18c1(0x147)));console[_0x7e18c1(0x165)](),console[_0x7e18c1(0x165)](a124_0x37bfd6[_0x7e18c1(0x14f)](_0x7e18c1(0x173))),console['log'](a124_0x37bfd6[_0x7e18c1(0x116)](_0x7e18c1(0x15c)[_0x7e18c1(0x174)](0x1e))),console[_0x7e18c1(0x165)](_0x7e18c1(0x175)+(_0x4ffc40[_0x7e18c1(0x18d)]||a124_0x37bfd6[_0x7e18c1(0x11a)](_0x7e18c1(0x161))));const _0x7ff519=_0x1f84cd?a124_0x37bfd6[_0x7e18c1(0x11a)](describeRegionValue(_0x4ffc40[_0x7e18c1(0x167)]??_0x4ffc40[_0x7e18c1(0x121)]?.[_0x7e18c1(0x143)])+_0x7e18c1(0x172)):(_0x4ffc40[_0x7e18c1(0x143)]??DEFAULT_LOVRABET_REGION)+'\x20('+(_0x4ffc40['regionSource']??_0x7e18c1(0x144))+')';console[_0x7e18c1(0x165)]('\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x7ff519),console[_0x7e18c1(0x165)](_0x7e18c1(0x125)+_0x4ffc40[_0x7e18c1(0x170)]),console[_0x7e18c1(0x165)](_0x7e18c1(0x13e)+_0x4ffc40[_0x7e18c1(0x127)]),console['log'](_0x7e18c1(0x16b)+_0x4ffc40[_0x7e18c1(0x115)]),console[_0x7e18c1(0x165)](_0x7e18c1(0x142)+(_0x4ffc40[_0x7e18c1(0x134)]||a124_0x37bfd6[_0x7e18c1(0x116)](_0x7e18c1(0x12f)))),console[_0x7e18c1(0x165)]('\x20\x20currentApp:\x20\x20\x20\x20\x20\x20'+(_0x4ffc40[_0x7e18c1(0x15e)]||a124_0x37bfd6[_0x7e18c1(0x116)](_0x7e18c1(0x12f)))),console[_0x7e18c1(0x165)](_0x7e18c1(0x164)+(_0x4ffc40['explicitAppName']||a124_0x37bfd6['gray'](_0x7e18c1(0x12f)))),console[_0x7e18c1(0x165)]('\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x4ffc40[_0x7e18c1(0x123)]||a124_0x37bfd6[_0x7e18c1(0x116)](_0x7e18c1(0x15b)+DEFAULT_CONFIG_VALUES[_0x7e18c1(0x123)]+')'))),console[_0x7e18c1(0x165)]('\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x4ffc40[_0x7e18c1(0x180)]??a124_0x37bfd6[_0x7e18c1(0x116)]('(default)'))),console[_0x7e18c1(0x165)](_0x7e18c1(0x149)+_0x4ffc40[_0x7e18c1(0x150)]),console['log'](_0x7e18c1(0x111)+_0x4ffc40[_0x7e18c1(0x139)]),console[_0x7e18c1(0x165)](_0x7e18c1(0x196)+(_0x4ffc40[_0x7e18c1(0x156)]?a124_0x37bfd6[_0x7e18c1(0x132)]('(set,\x20length='+_0x4ffc40[_0x7e18c1(0x156)][_0x7e18c1(0x13a)]+')'):_0x5a8b4b?a124_0x37bfd6[_0x7e18c1(0x132)](_0x7e18c1(0x133)+_0x5a8b4b[_0x7e18c1(0x13a)]+')'):a124_0x37bfd6[_0x7e18c1(0x116)](_0x7e18c1(0x12f))));const _0x13feda=Object['keys'](_0x4ffc40[_0x7e18c1(0x171)]);if(_0x13feda[_0x7e18c1(0x13a)]>0x0){console[_0x7e18c1(0x165)](),console['log'](a124_0x37bfd6[_0x7e18c1(0x14f)]('\x20\x20Apps')),console['log'](a124_0x37bfd6[_0x7e18c1(0x116)](_0x7e18c1(0x15c)[_0x7e18c1(0x174)](0x1e)));for(const _0x5c98ea of _0x13feda){const _0x27308d=_0x4ffc40['apps'][_0x5c98ea],_0xe1c023=_0x5c98ea===_0x4ffc40['defaultApp'],_0xb3105e=_0x5c98ea===_0x4ffc40['currentApp'],_0x11574e=_0xb3105e?a124_0x37bfd6['green'](_0x7e18c1(0x18b)):'',_0x37c7bf=_0xe1c023?_0x7e18c1(0x135):'';console[_0x7e18c1(0x165)]('\x20\x20'+_0x5c98ea+_0x37c7bf+_0x11574e),console[_0x7e18c1(0x165)](_0x7e18c1(0x126)+_0x27308d['appcode']);const _0x4bd6c2=_0x409d51[_0x7e18c1(0x168)][_0x7e18c1(0x171)]&&typeof _0x409d51[_0x7e18c1(0x168)][_0x7e18c1(0x171)]==='object'?_0x409d51[_0x7e18c1(0x168)][_0x7e18c1(0x171)]:{},_0x16b538=Object[_0x7e18c1(0x13c)]['hasOwnProperty'][_0x7e18c1(0x178)](_0x4bd6c2,_0x5c98ea),_0xfcb641=isInvalidLovrabetRegion(_0x27308d[_0x7e18c1(0x143)])?{'region':_0x4ffc40[_0x7e18c1(0x143)]??DEFAULT_LOVRABET_REGION}:resolveEffectiveRegion({'appRegion':_0x27308d[_0x7e18c1(0x143)],'projectRegion':_0x16b538?_0x409d51[_0x7e18c1(0x168)][_0x7e18c1(0x143)]:undefined,'globalRegion':_0x409d51[_0x7e18c1(0x136)][_0x7e18c1(0x143)],'mergedRegion':_0x4ffc40['raw'][_0x7e18c1(0x143)],'appName':_0x5c98ea}),_0x2d9935=buildAppDoctorFields(_0x27308d,{'region':_0xfcb641[_0x7e18c1(0x143)],'env':_0x4ffc40[_0x7e18c1(0x170)],'apiDir':_0x4ffc40[_0x7e18c1(0x121)][_0x7e18c1(0x115)]||DEFAULT_CONFIG_VALUES[_0x7e18c1(0x115)],'cookie':_0x4ffc40['cookie']||_0x5a8b4b||undefined,'accessKey':_0x4ffc40['accessKey']});console['log']('\x20\x20\x20\x20region:\x20\x20\x20\x20\x20'+_0x2d9935[_0x7e18c1(0x143)][_0x7e18c1(0x140)]+'\x20\x20'+a124_0x37bfd6[_0x7e18c1(0x116)]('('+_0x2d9935[_0x7e18c1(0x143)][_0x7e18c1(0x16f)]+')')),console['log'](_0x7e18c1(0x137)+_0x2d9935[_0x7e18c1(0x170)][_0x7e18c1(0x140)]+'\x20\x20'+a124_0x37bfd6['gray']('('+_0x2d9935[_0x7e18c1(0x170)]['source']+')')),console['log'](_0x7e18c1(0x152)+_0x2d9935['apiDir']['value']+'\x20\x20'+a124_0x37bfd6[_0x7e18c1(0x116)]('('+_0x2d9935[_0x7e18c1(0x115)][_0x7e18c1(0x16f)]+')'));const _0x13c7e8=_0x2d9935[_0x7e18c1(0x156)][_0x7e18c1(0x140)]?a124_0x37bfd6['green'](_0x7e18c1(0x138)+_0x2d9935[_0x7e18c1(0x156)][_0x7e18c1(0x140)]['length']+')'):a124_0x37bfd6[_0x7e18c1(0x116)](_0x7e18c1(0x12f));console[_0x7e18c1(0x165)]('\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20'+_0x13c7e8+'\x20\x20'+a124_0x37bfd6[_0x7e18c1(0x116)]('('+_0x2d9935[_0x7e18c1(0x156)][_0x7e18c1(0x16f)]+')'));const _0xed62d1=_0x2d9935[_0x7e18c1(0x145)]['value']?a124_0x37bfd6[_0x7e18c1(0x132)](_0x7e18c1(0x138)+_0x2d9935['accessKey'][_0x7e18c1(0x140)]['length']+')'):a124_0x37bfd6[_0x7e18c1(0x116)](_0x7e18c1(0x12f));console[_0x7e18c1(0x165)]('\x20\x20\x20\x20accessKey:\x20\x20'+_0xed62d1+'\x20\x20'+a124_0x37bfd6['gray']('('+_0x2d9935['accessKey'][_0x7e18c1(0x16f)]+')'));}}console[_0x7e18c1(0x165)](),console['log'](a124_0x37bfd6['bold']('\x20\x20API\x20Endpoints')),console['log'](a124_0x37bfd6[_0x7e18c1(0x116)](_0x7e18c1(0x15c)[_0x7e18c1(0x174)](0x1e)));_0x4b4bef?console['log'](_0x7e18c1(0x13f)+a124_0x37bfd6[_0x7e18c1(0x11a)]('Unavailable\x20until\x20routing\x20configuration\x20is\x20repaired')):(console[_0x7e18c1(0x165)](_0x7e18c1(0x130)+getActiveRegion()),console[_0x7e18c1(0x165)]('\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20'+getApiDomain()),console[_0x7e18c1(0x165)]('\x20\x20userDomain:\x20\x20\x20\x20\x20\x20'+getUserDomain()),console[_0x7e18c1(0x165)]('\x20\x20runtimeDomain:\x20\x20\x20'+getRuntimeDomain()),console[_0x7e18c1(0x165)](_0x7e18c1(0x146)+getSkillDomain()),console['log']('\x20\x20kbDomain:\x20\x20\x20\x20\x20\x20\x20\x20'+getKbDomain()),console[_0x7e18c1(0x165)](_0x7e18c1(0x12c)+(getKbServiceDomain()??'not\x20configured')),console['log']('\x20\x20appDomain:\x20\x20\x20\x20\x20\x20\x20'+getAppDomain()));console[_0x7e18c1(0x165)](),console['log'](a124_0x37bfd6[_0x7e18c1(0x14f)](_0x7e18c1(0x120))),console[_0x7e18c1(0x165)](a124_0x37bfd6[_0x7e18c1(0x116)](_0x7e18c1(0x15c)[_0x7e18c1(0x174)](0x1e)));if(_0x4b4bef)console[_0x7e18c1(0x165)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a124_0x37bfd6[_0x7e18c1(0x194)]('Not\x20checked\x20until\x20routing\x20configuration\x20is\x20repaired'));else{if(_0x5a8b4b){const _0x56e8c3=await getIsSessionValid();console[_0x7e18c1(0x165)](_0x7e18c1(0x13f)+(_0x56e8c3?a124_0x37bfd6[_0x7e18c1(0x132)]('✓\x20Valid'):a124_0x37bfd6['red'](_0x7e18c1(0x15a))));}else console[_0x7e18c1(0x165)](_0x7e18c1(0x13f)+a124_0x37bfd6[_0x7e18c1(0x11a)](_0x7e18c1(0x197)));}return console[_0x7e18c1(0x165)](),{'ok':!![]};}export const doctorDefinition={'service':a124_0x26352e(0x182),'command':a124_0x26352e(0x11f),'description':a124_0x26352e(0x131),'risk':a124_0x26352e(0x160),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a125_0x1b91(_0xcb77cc,_0x217446){_0xcb77cc=_0xcb77cc-0x122;const _0x169c98=a125_0x169c();let _0x1b9145=_0x169c98[_0xcb77cc];return _0x1b9145;}const a125_0x3bdfe9=a125_0x1b91;(function(_0x332b71,_0x2af16c){const _0xe76836=a125_0x1b91,_0xde3730=_0x332b71();while(!![]){try{const _0x491b3e=-parseInt(_0xe76836(0x129))/0x1*(parseInt(_0xe76836(0x137))/0x2)+parseInt(_0xe76836(0x135))/0x3+parseInt(_0xe76836(0x126))/0x4+-parseInt(_0xe76836(0x13a))/0x5*(parseInt(_0xe76836(0x13d))/0x6)+parseInt(_0xe76836(0x12c))/0x7*(parseInt(_0xe76836(0x134))/0x8)+-parseInt(_0xe76836(0x123))/0x9+parseInt(_0xe76836(0x12d))/0xa;if(_0x491b3e===_0x2af16c)break;else _0xde3730['push'](_0xde3730['shift']());}catch(_0x396ba8){_0xde3730['push'](_0xde3730['shift']());}}}(a125_0x169c,0x47ca4));function a125_0x169c(){const _0x38c200=['692316UiuqiN','bool','506DnekZL','filePath','appCode','85hDwiHv','read','.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','28698eKTdzW','path','string','file','Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','File','Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20or\x20immediate\x20access','732645Ghvhey','boolean','Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML','354852GxSkWM','validation','download','691uywYGP','long-term','filepath','28pPDMAj','696980tmDcda','/smartapi/common/uploadFile','str','trim','upload','\x20to\x20development\x20app\x20','filePath\x20is\x20required.','484816cCmoxn'];a125_0x169c=function(){return _0x38c200;};return a125_0x169c();}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_0x3bdfe9(0x140),'type':a125_0x3bdfe9(0x13f),'required':!![],'description':'Path\x20to\x20the\x20local\x20file\x20to\x20upload'},FILEPATH_FLAG={'name':a125_0x3bdfe9(0x12b),'type':a125_0x3bdfe9(0x13f),'required':!![],'description':'Development\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data'},DOWNLOAD_FLAG={'name':'download','type':'boolean','description':'Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL'},LONG_TERM_FLAG={'name':'long-term','type':a125_0x3bdfe9(0x124),'description':a125_0x3bdfe9(0x125)};function requireFilePath(_0x24d796){const _0x1f3b96=a125_0x3bdfe9,_0x1869d5=_0x24d796[_0x1f3b96(0x130)]();if(!_0x1869d5)throw CliErrors[_0x1f3b96(0x127)](_0x1f3b96(0x133));return _0x1869d5;}const fileUpload={'service':a125_0x3bdfe9(0x140),'command':a125_0x3bdfe9(0x131),'description':'Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','risk':a125_0x3bdfe9(0x13b),'flags':[FILE_FLAG],async 'dryRun'(_0x4363be){const _0x47ce9e=a125_0x3bdfe9,_0x48b665=requireDevelopmentUploadFile(_0x4363be['str'](_0x47ce9e(0x140)),_0x47ce9e(0x142));return{'method':'POST','url':_0x47ce9e(0x12e),'body':{'appCode':_0x4363be[_0x47ce9e(0x139)],'multipart':{'file':_0x48b665}},'description':'Preview:\x20upload\x20'+_0x48b665[_0x47ce9e(0x13e)]+_0x47ce9e(0x132)+_0x4363be['appCode']};},async 'execute'(_0x5ebd83){const _0x41b58e=a125_0x3bdfe9,_0x1b6487=requireDevelopmentUploadFile(_0x5ebd83[_0x41b58e(0x12f)]('file'),_0x41b58e(0x142)),_0x554d15=await uploadDevelopmentFile(_0x5ebd83[_0x41b58e(0x139)],_0x1b6487[_0x41b58e(0x13e)]);return{'ok':!![],'data':_0x554d15,'message':_0x554d15['filePath']?'Uploaded\x20file:\x20'+_0x554d15[_0x41b58e(0x138)]+_0x41b58e(0x13c):_0x41b58e(0x141)};}},fileQueryUrl={'service':a125_0x3bdfe9(0x140),'command':'query-url','description':a125_0x3bdfe9(0x122),'risk':a125_0x3bdfe9(0x13b),'flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0x1697ca){const _0x287444=a125_0x3bdfe9,_0x2c7fc1=requireFilePath(_0x1697ca[_0x287444(0x12f)](_0x287444(0x12b))),_0x4ed40d=await queryDevelopmentFileUrl(_0x2c7fc1,{'download':_0x1697ca[_0x287444(0x136)](_0x287444(0x128)),'longTerm':_0x1697ca['bool'](_0x287444(0x12a))});return{'ok':!![],'data':_0x4ed40d};}};export const fileDefinitions=[fileUpload,fileQueryUrl];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a126_0x569bba=a126_0x1219;(function(_0x25ac5f,_0x27081c){const _0x302e80=a126_0x1219,_0x13f3f4=_0x25ac5f();while(!![]){try{const _0x21b0a8=-parseInt(_0x302e80(0x1e2))/0x1*(parseInt(_0x302e80(0x1da))/0x2)+-parseInt(_0x302e80(0x1e9))/0x3*(-parseInt(_0x302e80(0x1d7))/0x4)+parseInt(_0x302e80(0x1d8))/0x5*(parseInt(_0x302e80(0x1dc))/0x6)+-parseInt(_0x302e80(0x1e8))/0x7+parseInt(_0x302e80(0x1df))/0x8+-parseInt(_0x302e80(0x1e1))/0x9+parseInt(_0x302e80(0x1e6))/0xa*(-parseInt(_0x302e80(0x1e4))/0xb);if(_0x21b0a8===_0x27081c)break;else _0x13f3f4['push'](_0x13f3f4['shift']());}catch(_0x591fb8){_0x13f3f4['push'](_0x13f3f4['shift']());}}}(a126_0x489c,0x87c1e));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{asDryRunResult}from'../../commands/common/dry-run.js';function a126_0x489c(){const _0xf39240=['create','991221gmgUZE','flow','10xTQrbF','appCode','6319544LOWjEY','500397YLigWH','datasetCode','Created\x20flow\x20','20NmXTvZ','8165woQBOm','write','2PkwmaL','Create\x20a\x20draft\x20flow\x20definition\x20from\x20a\x20local\x20FlowConfig\x20file','1230XIcEcL','.\x20Flow\x20URL:\x20','POST','6048192xjMgqL','flowName','2691027tPyYiV','76816aJSKLC'];a126_0x489c=function(){return _0xf39240;};return a126_0x489c();}import{createFlowDefinition}from'../../core/api-client.js';import{FLOW_FILE_FLAG,FLOW_PATHS,buildFlowUrl,confirmFlowWrite,flowSelector,prepareFlowWrite,readFlowFilePath}from'../../commands/flow/shared.js';function a126_0x1219(_0xaffeb,_0x428521){_0xaffeb=_0xaffeb-0x1d6;const _0x489c50=a126_0x489c();let _0x121912=_0x489c50[_0xaffeb];return _0x121912;}export const flowCreate={'service':a126_0x569bba(0x1e5),'command':a126_0x569bba(0x1e3),'description':a126_0x569bba(0x1db),'risk':a126_0x569bba(0x1d9),'flags':[FLOW_FILE_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x563add){readFlowFilePath(_0x563add);},async 'dryRun'(_0x953bd4){const _0x511d3b=a126_0x569bba,{request:_0x1a1190,warnings:_0x4aab61}=await prepareFlowWrite(readFlowFilePath(_0x953bd4),_0x953bd4['appCode']);return asDryRunResult({'operation':_0x511d3b(0x1e3),'selector':{'appCode':_0x953bd4['appCode'],'flowName':_0x1a1190[_0x511d3b(0x1e0)],..._0x1a1190[_0x511d3b(0x1ea)]?{'datasetCode':_0x1a1190['datasetCode']}:{}},'before':null,'after':_0x1a1190,'request':_0x1a1190,'dryRun':!![],'backend':{'method':'POST','path':FLOW_PATHS[_0x511d3b(0x1e3)]},'warnings':_0x4aab61},{'method':_0x511d3b(0x1de),'url':FLOW_PATHS[_0x511d3b(0x1e3)]});},async 'execute'(_0x185642){const _0x62cb48=a126_0x569bba,{request:_0x431ecb,warnings:_0x49ac98}=await prepareFlowWrite(readFlowFilePath(_0x185642),_0x185642[_0x62cb48(0x1e7)]);await confirmFlowWrite(_0x185642,_0x62cb48(0x1e3),_0x431ecb);const _0x3f5647=await createFlowDefinition(_0x431ecb),_0x100e9a=buildFlowUrl(_0x185642[_0x62cb48(0x1e7)],_0x3f5647['id']),_0x1914ed=''+(_0x3f5647['flowName']||_0x431ecb['flowName'])+(_0x3f5647['id']?'\x20(id='+_0x3f5647['id']+')':'');return{'ok':!![],'data':{'operation':_0x62cb48(0x1e3),'selector':flowSelector(_0x185642[_0x62cb48(0x1e7)],_0x3f5647['id'],_0x3f5647),'before':null,'after':_0x3f5647,'flowUrl':_0x100e9a,'dryRun':![],'backend':{'method':_0x62cb48(0x1de),'path':FLOW_PATHS[_0x62cb48(0x1e3)]},'warnings':_0x49ac98},'message':_0x62cb48(0x1d6)+_0x1914ed+_0x62cb48(0x1dd)+_0x100e9a};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a127_0x31928c=a127_0x531c;(function(_0x5891ec,_0x19a931){const _0x45dc53=a127_0x531c,_0x596b82=_0x5891ec();while(!![]){try{const _0x5e4194=parseInt(_0x45dc53(0x1ad))/0x1+parseInt(_0x45dc53(0x1a4))/0x2*(parseInt(_0x45dc53(0x1bd))/0x3)+-parseInt(_0x45dc53(0x1ac))/0x4*(-parseInt(_0x45dc53(0x1be))/0x5)+-parseInt(_0x45dc53(0x1af))/0x6*(-parseInt(_0x45dc53(0x1aa))/0x7)+parseInt(_0x45dc53(0x1a0))/0x8*(-parseInt(_0x45dc53(0x1b2))/0x9)+parseInt(_0x45dc53(0x1bb))/0xa+-parseInt(_0x45dc53(0x1a2))/0xb;if(_0x5e4194===_0x19a931)break;else _0x596b82['push'](_0x596b82['shift']());}catch(_0x3be06c){_0x596b82['push'](_0x596b82['shift']());}}}(a127_0x4067,0x3f19e));import{mkdir,stat}from'node:fs/promises';import{dirname,resolve}from'node:path';function a127_0x531c(_0x3bac30,_0x2bd2f1){_0x3bac30=_0x3bac30-0x19f;const _0x406740=a127_0x4067();let _0x531cc8=_0x406740[_0x3bac30];return _0x531cc8;}function a127_0x4067(){const _0x5ab76a=['1179aNqvRi','1833775oNKJXq','appCode','8yrJWzu','flowCode','10368501jwQyBq','output','520WeaGwl','ENOENT','Overwrite\x20an\x20existing\x20output\x20file','code','validation','boolean','2951347xZDojt','trim','4SLalDS','248610Siheiw','flow','6XmpXut','flowName','bool','1624851JGqFDE','str','config','force','warnings','path','\x20to\x20','FlowConfig\x20output\x20already\x20exists:\x20','Write\x20a\x20portable\x20normalized\x20FlowConfig\x20JSON\x20file','2424260SFnvGZ','Pass\x20--force\x20to\x20overwrite\x20it.'];a127_0x4067=function(){return _0x5ab76a;};return a127_0x4067();}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{getFlowDefinition}from'../../core/api-client.js';import{writeNormalizedFlowConfig}from'../../core/flow-config.js';import{CliErrors}from'../../errors.js';import{FLOW_ID_FLAG,flowDefinitionToConfig,readFlowId}from'../../commands/flow/shared.js';export const flowDetail={'service':a127_0x31928c(0x1ae),'command':'detail','description':'Get\x20one\x20design-time\x20flow\x20definition','risk':'read','flags':[FLOW_ID_FLAG,{'name':a127_0x31928c(0x1a3),'type':'string','description':a127_0x31928c(0x1ba)},{'name':a127_0x31928c(0x1b5),'type':a127_0x31928c(0x1a9),'description':a127_0x31928c(0x1a6)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x426880){readFlowId(_0x426880);},async 'execute'(_0x1e8246){const _0x278040=a127_0x31928c,_0x5a5c81=readFlowId(_0x1e8246),_0x3a7a33=_0x1e8246[_0x278040(0x1b3)]('output')[_0x278040(0x1ab)](),_0x245728=_0x3a7a33?resolve(_0x3a7a33):undefined;if(_0x245728&&!_0x1e8246['bool']('force')&&await fileExists(_0x245728))throw CliErrors['validation'](_0x278040(0x1b9)+_0x245728,_0x278040(0x1bc));const _0x252900=await getFlowDefinition(_0x1e8246[_0x278040(0x19f)],_0x5a5c81);let _0x4e8a6f;if(_0x245728){const _0x1e97f9=flowDefinitionToConfig(_0x252900);await mkdir(dirname(_0x245728),{'recursive':!![]});try{await writeNormalizedFlowConfig(_0x245728,_0x1e97f9[_0x278040(0x1b4)],{'overwrite':_0x1e8246[_0x278040(0x1b1)](_0x278040(0x1b5))});}catch(_0x2041b7){if(isAlreadyExistsError(_0x2041b7))throw CliErrors[_0x278040(0x1a8)](_0x278040(0x1b9)+_0x245728,'Pass\x20--force\x20to\x20overwrite\x20it.');throw _0x2041b7;}_0x4e8a6f={'path':_0x245728,'warnings':_0x1e97f9[_0x278040(0x1b6)]};}return{'ok':!![],'data':{'flow':_0x252900,..._0x4e8a6f?{'output':_0x4e8a6f}:{}},'message':_0x4e8a6f?'Wrote\x20FlowConfig\x20for\x20'+(_0x252900[_0x278040(0x1b0)]||_0x252900['flowCode']||_0x5a5c81)+_0x278040(0x1b8)+_0x4e8a6f[_0x278040(0x1b7)]:'Flow\x20'+(_0x252900[_0x278040(0x1b0)]||_0x252900[_0x278040(0x1a1)]||_0x5a5c81)};}};async function fileExists(_0x2d8cc5){try{return await stat(_0x2d8cc5),!![];}catch(_0x37b1f3){return!isNotFoundError(_0x37b1f3);}}function isNotFoundError(_0x25bc6e){const _0x24359e=a127_0x31928c;return _0x25bc6e?.['code']===_0x24359e(0x1a5);}function isAlreadyExistsError(_0x45a1a8){const _0x275ae5=a127_0x31928c;return _0x45a1a8?.[_0x275ae5(0x1a7)]==='EEXIST';}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1db680,_0x116a21){const _0x11c4a3=a128_0x1eb8,_0x2be0fc=_0x1db680();while(!![]){try{const _0x49a505=parseInt(_0x11c4a3(0x15d))/0x1*(parseInt(_0x11c4a3(0x158))/0x2)+-parseInt(_0x11c4a3(0x159))/0x3*(parseInt(_0x11c4a3(0x15c))/0x4)+parseInt(_0x11c4a3(0x153))/0x5+-parseInt(_0x11c4a3(0x154))/0x6+parseInt(_0x11c4a3(0x157))/0x7+-parseInt(_0x11c4a3(0x15b))/0x8*(-parseInt(_0x11c4a3(0x15a))/0x9)+-parseInt(_0x11c4a3(0x156))/0xa*(-parseInt(_0x11c4a3(0x155))/0xb);if(_0x49a505===_0x116a21)break;else _0x2be0fc['push'](_0x2be0fc['shift']());}catch(_0x487560){_0x2be0fc['push'](_0x2be0fc['shift']());}}}(a128_0x572e,0x458f3));import{flowValidate}from'../../commands/flow/validate.js';import{flowPageList}from'../../commands/flow/page-list.js';import{flowList}from'../../commands/flow/list.js';import{flowDetail}from'../../commands/flow/detail.js';function a128_0x1eb8(_0x4ce418,_0x31bdb8){_0x4ce418=_0x4ce418-0x153;const _0x572eac=a128_0x572e();let _0x1eb826=_0x572eac[_0x4ce418];return _0x1eb826;}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';function a128_0x572e(){const _0x188084=['108APCOzv','235672AaoAgU','3732mEKWCw','136859tFDMio','573515kXuJXo','3201396drwhEJ','11XYtBrL','4397810vFViBT','2151142ZubMrP','2EHtsPP','1716ZIEJXx'];a128_0x572e=function(){return _0x188084;};return a128_0x572e();}import{flowRuntimeUserSearch}from'../../commands/flow/runtime-user-search.js';import{flowRuntimeRoleUserList}from'../../commands/flow/runtime-role-user-list.js';export const flowDefinitions=[flowValidate,flowList,flowPageList,flowDetail,flowCreate,flowUpdate,flowPublish,flowRuntimeRoleList,flowRuntimeUserSearch,flowRuntimeRoleUserList];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a129_0x27a34c=a129_0x431b;(function(_0x4191d9,_0xf7a9e0){const _0x365e06=a129_0x431b,_0x4d152c=_0x4191d9();while(!![]){try{const _0x563665=-parseInt(_0x365e06(0xbf))/0x1+parseInt(_0x365e06(0xb5))/0x2+parseInt(_0x365e06(0xc5))/0x3+-parseInt(_0x365e06(0xc8))/0x4+parseInt(_0x365e06(0xac))/0x5*(-parseInt(_0x365e06(0xba))/0x6)+parseInt(_0x365e06(0xc4))/0x7*(-parseInt(_0x365e06(0xbc))/0x8)+parseInt(_0x365e06(0xb9))/0x9;if(_0x563665===_0xf7a9e0)break;else _0x4d152c['push'](_0x4d152c['shift']());}catch(_0x1b0f7b){_0x4d152c['push'](_0x4d152c['shift']());}}}(a129_0x3ddf,0xdd02f));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{listFlowDefinitions}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const FLOW_STATUSES=[a129_0x27a34c(0xa9),'published'];function a129_0x431b(_0x2fd46d,_0x339fc8){_0x2fd46d=_0x2fd46d-0xa8;const _0x3ddf64=a129_0x3ddf();let _0x431bb8=_0x3ddf64[_0x2fd46d];return _0x431bb8;}function a129_0x3ddf(){const _0x345cd4=['string','8615845jFonWC','--page-size\x20must\x20be\x20a\x20positive\x20integer.','page-size','Found\x20','flow','read','number','Filter\x20by\x20flow\x20type','isSafeInteger','2588820WCxlnI','Filter\x20by\x20exact\x20server-generated\x20flow\x20code','validation','\x20flow\x20definition(s)','23027112qWYKHO','6jlyMuq','dataset-code','920LhDEeg','Filter\x20by\x20flow\x20name','num','763182UXPZoZ','Filter\x20by\x20dataset\x20code','flow-code','List\x20design-time\x20flow\x20definitions\x20for\x20the\x20current\x20app','trim','100247JvKphA','4575906srxsQZ','length','str','1359004WHrSTq','page','flow-name','flow-type','Filter\x20by\x20flow\x20status','draft','appCode'];a129_0x3ddf=function(){return _0x345cd4;};return a129_0x3ddf();}export const flowList={'service':a129_0x27a34c(0xb0),'command':'list','description':a129_0x27a34c(0xc2),'risk':a129_0x27a34c(0xb1),'flags':[APPCODE_FLAG_OPTIONAL,{'name':'flow-code','type':'string','description':a129_0x27a34c(0xb6)},{'name':'flow-name','type':'string','description':a129_0x27a34c(0xbd)},{'name':'flow-status','type':a129_0x27a34c(0xab),'description':a129_0x27a34c(0xa8),'enum':FLOW_STATUSES},{'name':a129_0x27a34c(0xbb),'type':a129_0x27a34c(0xab),'description':a129_0x27a34c(0xc0)},{'name':a129_0x27a34c(0xcb),'type':a129_0x27a34c(0xab),'description':a129_0x27a34c(0xb3)},{'name':'page','type':a129_0x27a34c(0xb2),'description':'Page\x20number\x20(1-based)','default':0x1},{'name':a129_0x27a34c(0xae),'type':a129_0x27a34c(0xb2),'description':'Page\x20size','default':0x14}],async 'validate'(_0x182958){const _0x12ed5b=a129_0x27a34c,_0x26a950=_0x182958[_0x12ed5b(0xbe)](_0x12ed5b(0xc9),0x1),_0x81eaa2=_0x182958[_0x12ed5b(0xbe)](_0x12ed5b(0xae),0x14);if(!Number[_0x12ed5b(0xb4)](_0x26a950)||_0x26a950<0x1)throw CliErrors[_0x12ed5b(0xb7)]('--page\x20must\x20be\x20a\x20positive\x20integer.');if(!Number[_0x12ed5b(0xb4)](_0x81eaa2)||_0x81eaa2<0x1)throw CliErrors[_0x12ed5b(0xb7)](_0x12ed5b(0xad));},async 'execute'(_0x195c77){const _0x1e801c=a129_0x27a34c,{items:_0x2e4317,paging:_0x488bad}=await listFlowDefinitions(_0x195c77[_0x1e801c(0xaa)],{'flowCode':optionalString(_0x195c77[_0x1e801c(0xc7)](_0x1e801c(0xc1))),'flowName':optionalString(_0x195c77['str'](_0x1e801c(0xca))),'flowStatus':optionalString(_0x195c77[_0x1e801c(0xc7)]('flow-status')),'datasetCode':optionalString(_0x195c77['str'](_0x1e801c(0xbb))),'flowType':optionalString(_0x195c77[_0x1e801c(0xc7)]('flow-type')),'pageNum':_0x195c77[_0x1e801c(0xbe)](_0x1e801c(0xc9),0x1),'pageSize':_0x195c77[_0x1e801c(0xbe)](_0x1e801c(0xae),0x14)});return{'ok':!![],'data':{'appCode':_0x195c77[_0x1e801c(0xaa)],'flows':_0x2e4317,'paging':_0x488bad},'message':_0x1e801c(0xaf)+_0x2e4317[_0x1e801c(0xc6)]+_0x1e801c(0xb8)};}};function optionalString(_0x15da17){const _0x58ce6b=a129_0x27a34c,_0x32af68=_0x15da17[_0x58ce6b(0xc3)]();return _0x32af68||undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a130_0x24f0(){const _0x551252=['Page\x20size','name','num','Existing\x20FORM_FLOW\x20definition\x20id\x20(not\x20flow\x20code)','\x20must\x20be\x20a\x20positive\x20integer.','Page\x20number\x20(1-based)','87060MXOyJF','page','1684344WozvNS','read','flag','Found\x20','\x20form\x20page(s)','9965298MKRqKu','5hzRqaf','3735124XLhcQB','1LVTOPc','1017mGtpYF','185625EnunnE','length','isSafeInteger','3366306kPvhwq','Filter\x20by\x20page\x20name','number','2004tItxYS','string','page-size','trim','931158vRdRtf','49iNjswF','appCode'];a130_0x24f0=function(){return _0x551252;};return a130_0x24f0();}const a130_0x427ba2=a130_0x30c8;(function(_0x3bd312,_0x949f92){const _0x446bbd=a130_0x30c8,_0x2efb60=_0x3bd312();while(!![]){try{const _0x2f0851=-parseInt(_0x446bbd(0x88))/0x1*(-parseInt(_0x446bbd(0x94))/0x2)+-parseInt(_0x446bbd(0x8d))/0x3+-parseInt(_0x446bbd(0x87))/0x4*(-parseInt(_0x446bbd(0x86))/0x5)+-parseInt(_0x446bbd(0x85))/0x6+-parseInt(_0x446bbd(0x76))/0x7*(parseInt(_0x446bbd(0x80))/0x8)+parseInt(_0x446bbd(0x89))/0x9*(parseInt(_0x446bbd(0x7e))/0xa)+-parseInt(_0x446bbd(0x8a))/0xb*(-parseInt(_0x446bbd(0x90))/0xc);if(_0x2f0851===_0x949f92)break;else _0x2efb60['push'](_0x2efb60['shift']());}catch(_0x1a4385){_0x2efb60['push'](_0x2efb60['shift']());}}}(a130_0x24f0,0xe695d));function a130_0x30c8(_0x1a98db,_0x4ae26b){_0x1a98db=_0x1a98db-0x76;const _0x24f0c2=a130_0x24f0();let _0x30c87c=_0x24f0c2[_0x1a98db];return _0x30c87c;}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{listFlowBindingPages}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';export const flowPageList={'service':'flow','command':'page-list','description':'List\x20CREATE\x20pages\x20for\x20form-flow\x20binding;\x20--id\x20excludes\x20other\x20flows\x27\x20bindings','risk':a130_0x427ba2(0x81),'flags':[APPCODE_FLAG_OPTIONAL,{'name':'id','type':a130_0x427ba2(0x8f),'description':a130_0x427ba2(0x7b)},{'name':a130_0x427ba2(0x79),'type':a130_0x427ba2(0x91),'description':a130_0x427ba2(0x8e)},{'name':a130_0x427ba2(0x7f),'type':a130_0x427ba2(0x8f),'default':0x1,'description':a130_0x427ba2(0x7d)},{'name':a130_0x427ba2(0x92),'type':a130_0x427ba2(0x8f),'default':0x14,'description':a130_0x427ba2(0x78)}],async 'validate'(_0xbec9f7){const _0x3df200=a130_0x427ba2;for(const [_0x43ea66,_0x4057de]of[[_0x3df200(0x7f),_0xbec9f7[_0x3df200(0x7a)](_0x3df200(0x7f),0x1)],[_0x3df200(0x92),_0xbec9f7[_0x3df200(0x7a)](_0x3df200(0x92),0x14)],..._0xbec9f7[_0x3df200(0x82)]('id')!==undefined?[['id',_0xbec9f7['num']('id')]]:[]]){if(!Number[_0x3df200(0x8c)](_0x4057de)||_0x4057de<=0x0)throw CliErrors['validation']('--'+_0x43ea66+_0x3df200(0x7c));}},async 'execute'(_0x4298bf){const _0x49d533=a130_0x427ba2,_0x24392c=_0x4298bf[_0x49d533(0x82)]('id')===undefined?undefined:_0x4298bf['num']('id'),{items:_0x24610d,paging:_0x49fcd4}=await listFlowBindingPages(_0x4298bf[_0x49d533(0x77)],{'currentFlowId':_0x24392c,'name':_0x4298bf['str'](_0x49d533(0x79))[_0x49d533(0x93)]()||undefined,'currentPage':_0x4298bf[_0x49d533(0x7a)](_0x49d533(0x7f),0x1),'pageSize':_0x4298bf[_0x49d533(0x7a)]('page-size',0x14)});return{'ok':!![],'data':{'appCode':_0x4298bf[_0x49d533(0x77)],'currentFlowId':_0x24392c,'pages':_0x24610d,'paging':_0x49fcd4,'availabilityChecked':_0x24392c!==undefined},'message':_0x49d533(0x83)+_0x24610d[_0x49d533(0x8b)]+_0x49d533(0x84)};}};
|