@lovrabet/rabetbase-cli 2.5.5-beta.2 → 2.5.5
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/detail.js +1 -1
- package/lib/commands/dataset/extend-update.js +1 -1
- package/lib/commands/dataset/field-restore.js +1 -1
- package/lib/commands/dataset/field-update.js +1 -1
- package/lib/commands/dataset/generate.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/dataset/relation-audit.js +1 -1
- package/lib/commands/dataset/relation-create.js +1 -1
- package/lib/commands/dataset/relation-delete.js +1 -1
- package/lib/commands/dataset/relation-shared.js +1 -1
- package/lib/commands/dataset/relation-update.js +1 -1
- package/lib/commands/dataset/relations.js +1 -1
- package/lib/commands/dataset/rename.js +1 -1
- package/lib/commands/dataset/restore.js +1 -1
- package/lib/commands/dataset/user-deleted-field-list.js +1 -1
- package/lib/commands/db/analysis-batching.js +1 -1
- package/lib/commands/db/analyze-batch-plan.js +1 -1
- package/lib/commands/db/analyze-cancel.js +1 -1
- package/lib/commands/db/analyze-start.js +1 -1
- package/lib/commands/db/analyze-status.js +1 -1
- package/lib/commands/db/create.js +1 -1
- package/lib/commands/db/delete.js +1 -1
- package/lib/commands/db/detail.js +1 -1
- package/lib/commands/db/diff-refresh-start.js +1 -1
- package/lib/commands/db/diff-refresh-status.js +1 -1
- package/lib/commands/db/diff.js +1 -1
- package/lib/commands/db/index.js +1 -1
- package/lib/commands/db/list.js +1 -1
- package/lib/commands/db/shared.js +1 -1
- package/lib/commands/db/table-diff-shared.js +1 -1
- package/lib/commands/db/tables.js +1 -1
- package/lib/commands/db/test.js +1 -1
- package/lib/commands/db/update.js +1 -1
- package/lib/commands/deployment/index.js +1 -1
- package/lib/commands/deployment/sync-all.js +1 -1
- package/lib/commands/deployment/sync-jobs.js +1 -1
- package/lib/commands/deployment/sync-status.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/flow/create.js +1 -1
- package/lib/commands/flow/detail.js +1 -1
- package/lib/commands/flow/index.js +1 -1
- package/lib/commands/flow/list.js +1 -1
- package/lib/commands/flow/publish.js +1 -1
- package/lib/commands/flow/runtime-resources-shared.js +1 -1
- package/lib/commands/flow/runtime-role-list.js +1 -1
- package/lib/commands/flow/runtime-role-user-list.js +1 -1
- package/lib/commands/flow/runtime-user-search.js +1 -1
- package/lib/commands/flow/shared.js +1 -1
- package/lib/commands/flow/update.js +1 -1
- package/lib/commands/flow/validate.js +1 -1
- package/lib/commands/instant-api-policy/current.js +1 -1
- package/lib/commands/instant-api-policy/index.js +1 -1
- package/lib/commands/instant-api-policy/init.js +1 -1
- package/lib/commands/instant-api-policy/publish.js +1 -1
- package/lib/commands/instant-api-policy/pull.js +1 -1
- package/lib/commands/instant-api-policy/revision.js +1 -1
- package/lib/commands/instant-api-policy/revisions.js +1 -1
- package/lib/commands/instant-api-policy/rollback.js +1 -1
- package/lib/commands/instant-api-policy/shared.js +1 -1
- package/lib/commands/instant-api-policy/validate.js +1 -1
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/nudge.js +1 -1
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/issue/shared.js +1 -1
- package/lib/commands/kb/create.js +1 -1
- package/lib/commands/kb/delete.js +1 -1
- package/lib/commands/kb/detail.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/kb/list.js +1 -1
- package/lib/commands/kb/search.js +1 -1
- package/lib/commands/kb/shared.js +1 -1
- package/lib/commands/kb/update.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/asset-update.js +1 -1
- package/lib/commands/menu/delete.js +1 -1
- package/lib/commands/menu/external-link-create.js +1 -1
- package/lib/commands/menu/external-link-update.js +1 -1
- package/lib/commands/menu/group-create.js +1 -1
- package/lib/commands/menu/group-update.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/list.js +1 -1
- package/lib/commands/menu/move.js +1 -1
- package/lib/commands/menu/regroup-start.js +1 -1
- package/lib/commands/menu/rename.js +1 -1
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/delete-plan.js +1 -1
- package/lib/commands/menu/shared/facts.js +1 -1
- package/lib/commands/menu/shared/index.js +1 -1
- package/lib/commands/menu/shared/inquirer.js +1 -1
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.js +1 -1
- package/lib/commands/menu/shared/mutations.js +1 -1
- package/lib/commands/menu/shared/path.js +1 -1
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/subapp-assets.js +1 -1
- package/lib/commands/menu/shared/sync-core.js +1 -1
- package/lib/commands/menu/shared/update-core.js +1 -1
- package/lib/commands/menu/shared/valid-url.js +1 -1
- package/lib/commands/menu/subapp-assets-status.js +1 -1
- package/lib/commands/menu/subapp-assets-update.js +1 -1
- package/lib/commands/menu/sync.js +1 -1
- package/lib/commands/menu/visibility-update.js +1 -1
- package/lib/commands/notification/config-create.js +1 -1
- package/lib/commands/notification/config-delete.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/config-update.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/notification/shared.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/page/create.js +1 -1
- package/lib/commands/page/custom/detail.js +1 -1
- package/lib/commands/page/custom/list.js +1 -1
- package/lib/commands/page/custom/publish.js +1 -1
- package/lib/commands/page/custom/shared.js +1 -1
- package/lib/commands/page/custom/syntax.js +1 -1
- package/lib/commands/page/custom/update.js +1 -1
- package/lib/commands/page/data-list-status.js +1 -1
- package/lib/commands/page/generate-start.js +1 -1
- package/lib/commands/page/generate-status.js +1 -1
- package/lib/commands/page/index.js +1 -1
- package/lib/commands/page/pull.js +1 -1
- package/lib/commands/page/push.js +1 -1
- package/lib/commands/page/relation-audit.js +1 -1
- package/lib/commands/page/restore.js +1 -1
- package/lib/commands/page/shared.js +1 -1
- package/lib/commands/page/sync.js +1 -1
- package/lib/commands/project/api-architecture-upgrade.js +1 -1
- package/lib/commands/project/create/enhanced-guided-create.js +1 -1
- package/lib/commands/project/create/format-elapsed.js +1 -1
- package/lib/commands/project/create/main.js +1 -1
- package/lib/commands/project/create/materialize-project-template.js +1 -1
- package/lib/commands/project/create/project-name.js +1 -1
- package/lib/commands/project/create/project-template-archive.js +1 -1
- package/lib/commands/project/create/project-template-path.js +1 -1
- package/lib/commands/project/create/use-copy-project-template.js +1 -1
- package/lib/commands/project/create/use-format-code.js +1 -1
- package/lib/commands/project/create/use-install-dependencies.js +1 -1
- package/lib/commands/project/domain-routing-sync.js +1 -1
- package/lib/commands/project/index.js +1 -1
- package/lib/commands/project/upgrade.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/role/user-resolve.js +1 -1
- package/lib/commands/rule/get.js +1 -1
- package/lib/commands/rule/index.js +1 -1
- package/lib/commands/rule/list.js +1 -1
- package/lib/commands/rule/set.js +1 -1
- package/lib/commands/rule/shared.js +1 -1
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/sql/create.js +1 -1
- package/lib/commands/sql/delete.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/sql/list.js +1 -1
- package/lib/commands/sql/pull.js +1 -1
- package/lib/commands/sql/push.js +1 -1
- package/lib/commands/sql/shared.js +1 -1
- package/lib/commands/sql/status.js +1 -1
- package/lib/commands/sql/validate.js +1 -1
- package/lib/commands/task/index.js +1 -1
- package/lib/commands/task/status.js +1 -1
- package/lib/commands/tenant/index.js +1 -1
- package/lib/commands/tenant/members-list.js +1 -1
- package/lib/commands/tenant/shared.js +1 -1
- package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
- package/lib/commands/user-account/feishu-bind.js +1 -1
- package/lib/commands/user-account/index.js +1 -1
- package/lib/commands/workspace/add.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/commands/workspace/remove.js +1 -1
- package/lib/config/domain-config.js +1 -1
- package/lib/config/project-domain-routing.js +1 -1
- package/lib/config/region-config.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/cdn.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/paths.js +1 -1
- package/lib/constant/region.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/routing-profile.js +1 -1
- package/lib/context/app-resolver.js +1 -1
- package/lib/context/auth-resolver.js +1 -1
- package/lib/context/config-loader.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/bff/config.js +1 -1
- package/lib/core/bff/file-system.js +1 -1
- package/lib/core/bff/hash.js +1 -1
- package/lib/core/bff/hook-directory.js +1 -1
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/cross-db-relation.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/flow-config.js +1 -1
- package/lib/core/instant-api-policy/config.js +1 -1
- package/lib/core/kb-search-client.js +1 -1
- package/lib/core/page/file-system.js +1 -1
- package/lib/core/page/hash.js +1 -1
- package/lib/core/page/lock.js +1 -1
- package/lib/core/page/lr-smart-jsx.js +1 -1
- package/lib/core/sql-index-auditor.js +1 -1
- package/lib/core/sql-sync/config.js +1 -1
- package/lib/core/sql-sync/file-system.js +1 -1
- package/lib/core/sql-sync/hash.js +1 -1
- package/lib/core/sql-sync/lock.js +1 -1
- package/lib/core/sql-sync/utils.js +1 -1
- package/lib/core/sql-validator.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/error-output.js +1 -1
- package/lib/framework/explicit-yes.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-alias.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/supported-flags.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/generated/official-routing.js +1 -1
- package/lib/generated/routing-contract.js +1 -1
- package/lib/help.js +1 -1
- package/lib/postinstall.js +1 -1
- package/lib/runtime/confirmation.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/skills/builtin-skill.js +1 -1
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/skill-presence.js +1 -1
- package/lib/telemetry/cli-command-trace.js +1 -1
- package/lib/telemetry/cli-help-trace.js +1 -1
- package/lib/telemetry/ensure-cli-otel-config.js +1 -1
- package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
- package/lib/telemetry/send-cli-trace-log.js +1 -1
- package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
- package/lib/utils/ai_config.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cdn-config.js +1 -1
- package/lib/utils/check-sdk-version.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/config.js +1 -1
- package/lib/utils/entity-with-id.js +1 -1
- package/lib/utils/file-utils.js +1 -1
- package/lib/utils/guides-cdn.js +1 -1
- package/lib/utils/http-client.js +1 -1
- package/lib/utils/is-non-interactive.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/sleep.js +1 -1
- package/lib/utils/template-replacer.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/with-active-cookie.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
- package/skills/rabetbase/SKILL.md +3 -3
- package/skills/rabetbase/guides/independent-deployment.md +11 -1
- package/skills/rabetbase/references/rabetbase-config.md +16 -19
- package/skills/rabetbase/references/rabetbase-menu-visibility-update.md +5 -4
- package/skills/rabetbase/references/rabetbase-workspace.md +3 -1
- package/skills/rabetbase-page-generation/SKILL.md +1 -1
- package/skills/rabetbase.manifest.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a109_0x45c726=a109_0x3e7a;(function(_0xf6bbcd,_0x3265ef){const _0x23c278=a109_0x3e7a,_0x157173=_0xf6bbcd();while(!![]){try{const _0x4db775=-parseInt(_0x23c278(0x162))/0x1+parseInt(_0x23c278(0x151))/0x2+-parseInt(_0x23c278(0x14b))/0x3+parseInt(_0x23c278(0x14f))/0x4+-parseInt(_0x23c278(0x14c))/0x5+parseInt(_0x23c278(0x163))/0x6+parseInt(_0x23c278(0x168))/0x7;if(_0x4db775===_0x3265ef)break;else _0x157173['push'](_0x157173['shift']());}catch(_0x1cd21f){_0x157173['push'](_0x157173['shift']());}}}(a109_0x2934,0x882c3));function a109_0x3e7a(_0x5f5854,_0x4a4d8f){_0x5f5854=_0x5f5854-0x14b;const _0x293435=a109_0x2934();let _0x3e7a11=_0x293435[_0x5f5854];return _0x3e7a11;}import{getDbLinkInfo,updateDbLink}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG,SKIP_CONNECTION_TEST_FLAG}from'../../commands/common/flags.js';import{assertDbLinkConnectionPreflight,sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';const MASKED_PASSWORD_VALUES=new Set([a109_0x45c726(0x16b),'[redacted]']);function mergeDbLinkUpdate(_0x3d6d4f,_0x2eee93){const _0x2fb8bf=a109_0x45c726,_0x56e126={..._0x3d6d4f},_0x2f0894=_0x2eee93[_0x2fb8bf(0x157)](_0x2fb8bf(0x155));if(_0x2f0894&&MASKED_PASSWORD_VALUES[_0x2fb8bf(0x14e)](_0x2f0894))throw CliErrors[_0x2fb8bf(0x165)](_0x2fb8bf(0x16f));if(!_0x2f0894&&MASKED_PASSWORD_VALUES[_0x2fb8bf(0x14e)](String(_0x3d6d4f[_0x2fb8bf(0x155)]??'')))throw CliErrors[_0x2fb8bf(0x165)]('The\x20server\x20returned\x20a\x20masked\x20database\x20password.\x20Pass\x20the\x20current\x20or\x20replacement\x20password\x20explicitly\x20with\x20--password\x20to\x20update\x20this\x20connection\x20safely.');const _0x5618b4=_0x2eee93['str'](_0x2fb8bf(0x160));if(_0x5618b4)_0x56e126[_0x2fb8bf(0x14d)]=_0x5618b4;const _0x159f51=_0x2eee93[_0x2fb8bf(0x157)](_0x2fb8bf(0x158));if(_0x159f51)_0x56e126[_0x2fb8bf(0x15f)]=_0x159f51[_0x2fb8bf(0x154)]();const _0xa23348=_0x2eee93[_0x2fb8bf(0x157)](_0x2fb8bf(0x153));if(_0xa23348)_0x56e126[_0x2fb8bf(0x153)]=_0xa23348;if(_0x2f0894)_0x56e126[_0x2fb8bf(0x155)]=_0x2f0894;const _0x493d9b=_0x2eee93['str'](_0x2fb8bf(0x164));if(_0x493d9b)_0x56e126[_0x2fb8bf(0x161)]=_0x493d9b;const _0x3e37cc=_0x2eee93[_0x2fb8bf(0x157)](_0x2fb8bf(0x169));if(_0x3e37cc)_0x56e126[_0x2fb8bf(0x159)]=_0x3e37cc;return _0x56e126;}function a109_0x2934(){const _0x4ad072=['1731482pePJVA','string','username','trim','password','POST','str','dburl','dbDesc','New\x20host:port','skip-connection-test','Update\x20a\x20database\x20connection\x20by\x20merging\x20supplied\x20fields\x20into\x20the\x20current\x20server\x20record.\x20A\x20masked\x20server\x20password\x20requires\x20explicit\x20--password','/smartapi/dblink/update','Current\x20or\x20replacement\x20password.\x20Required\x20when\x20the\x20stored\x20password\x20is\x20masked','dbUrl','dbname','dbParam','322815RtJBAu','2740164NvTtfj','dbparam','validation','New\x20database\x20name','Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22','7924987OCGHEz','dbdesc','New\x20username','******','Updated\x20db\x20link\x20','New\x20connection\x20parameter\x20string','num','--password\x20must\x20contain\x20the\x20real\x20database\x20password,\x20not\x20a\x20masked\x20value.','3338853FQMKag','4916405HEarAA','dbName','has','2088936iDSUWU','write'];a109_0x2934=function(){return _0x4ad072;};return a109_0x2934();}export const dbUpdate={'service':'db','command':'update','description':a109_0x45c726(0x15c),'risk':a109_0x45c726(0x150),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':'dbname','type':a109_0x45c726(0x152),'description':a109_0x45c726(0x166)},{'name':'dburl','type':a109_0x45c726(0x152),'description':a109_0x45c726(0x15a)},{'name':'username','type':a109_0x45c726(0x152),'description':a109_0x45c726(0x16a)},{'name':a109_0x45c726(0x155),'type':'string','description':a109_0x45c726(0x15e)},{'name':a109_0x45c726(0x164),'type':a109_0x45c726(0x152),'description':a109_0x45c726(0x16d)},{'name':a109_0x45c726(0x169),'type':a109_0x45c726(0x152),'description':'New\x20description'},SKIP_CONNECTION_TEST_FLAG],async 'validate'(_0x5908d5){const _0x3fb7c8=a109_0x45c726,_0x7750e4=_0x5908d5[_0x3fb7c8(0x157)](_0x3fb7c8(0x158));if(_0x7750e4&&!validateDbUrl(_0x7750e4['trim']()))throw CliErrors[_0x3fb7c8(0x165)](_0x3fb7c8(0x167)+_0x7750e4+'\x22');},async 'dryRun'(_0x5e6cd4){const _0x2d0934=a109_0x45c726,_0x560c8f=_0x5e6cd4[_0x2d0934(0x16e)]('id'),_0x29a287=await getDbLinkInfo(_0x560c8f),_0x560d4f=mergeDbLinkUpdate(_0x29a287,_0x5e6cd4),_0x359548=sanitizeDbLinkForOutput(_0x560d4f);return{'method':_0x2d0934(0x156),'url':_0x2d0934(0x15d),'body':_0x359548,'description':'Preview\x20the\x20merged\x20database\x20connection\x20update;\x20password\x20redacted','connectionPreflight':{'enabled':!_0x5e6cd4['bool']('skip-connection-test'),'executed':![]}};},async 'execute'(_0x33c506){const _0x18df74=a109_0x45c726,_0x4b315d=_0x33c506['num']('id'),_0x179c78=await getDbLinkInfo(_0x4b315d),_0x2c1008=mergeDbLinkUpdate(_0x179c78,_0x33c506);!_0x33c506['bool'](_0x18df74(0x15b))&&await assertDbLinkConnectionPreflight(_0x2c1008);const {id:_0x3a8bce,entity:_0x1ea39a}=normalizeEntityWithIdResponse(await updateDbLink(_0x2c1008));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x1ea39a),'message':_0x18df74(0x16c)+(_0x3a8bce??_0x4b315d)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x52a773,_0xd6e043){const _0x3d5a2f=a110_0x3cba,_0x3c1dd4=_0x52a773();while(!![]){try{const _0x207c33=parseInt(_0x3d5a2f(0xef))/0x1+parseInt(_0x3d5a2f(0xee))/0x2+-parseInt(_0x3d5a2f(0xf3))/0x3+parseInt(_0x3d5a2f(0xf1))/0x4+-parseInt(_0x3d5a2f(0xf4))/0x5+parseInt(_0x3d5a2f(0xf0))/0x6+parseInt(_0x3d5a2f(0xed))/0x7*(-parseInt(_0x3d5a2f(0xf2))/0x8);if(_0x207c33===_0xd6e043)break;else _0x3c1dd4['push'](_0x3c1dd4['shift']());}catch(_0x1be435){_0x3c1dd4['push'](_0x3c1dd4['shift']());}}}(a110_0x570c,0x9b56b));import{deploymentSyncAll}from'../../commands/deployment/sync-all.js';import{deploymentSyncStatus}from'../../commands/deployment/sync-status.js';function a110_0x3cba(_0x51d9f7,_0xaf6242){_0x51d9f7=_0x51d9f7-0xed;const _0x570c9a=a110_0x570c();let _0x3cba4e=_0x570c9a[_0x51d9f7];return _0x3cba4e;}function a110_0x570c(){const _0xfdd84b=['2791060fzBMxF','9760891IXrWWy','1392984xiIclZ','721239DFrruN','6273690IXawAE','1856408DYSoIi','8yMzeXB','1015668uMuIiC'];a110_0x570c=function(){return _0xfdd84b;};return a110_0x570c();}import{deploymentSyncJobs}from'../../commands/deployment/sync-jobs.js';export const deploymentDefinitions=[deploymentSyncAll,deploymentSyncStatus,deploymentSyncJobs];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a111_0x8d3349=a111_0x3e2c;(function(_0x2a00c8,_0x1a4838){const _0x26f2eb=a111_0x3e2c,_0x17e5cc=_0x2a00c8();while(!![]){try{const _0xdc0257=-parseInt(_0x26f2eb(0x1af))/0x1*(parseInt(_0x26f2eb(0x19b))/0x2)+parseInt(_0x26f2eb(0x191))/0x3*(parseInt(_0x26f2eb(0x1aa))/0x4)+-parseInt(_0x26f2eb(0x1b7))/0x5+parseInt(_0x26f2eb(0x194))/0x6+parseInt(_0x26f2eb(0x1a2))/0x7*(parseInt(_0x26f2eb(0x19a))/0x8)+-parseInt(_0x26f2eb(0x19c))/0x9+-parseInt(_0x26f2eb(0x1b8))/0xa*(-parseInt(_0x26f2eb(0x193))/0xb);if(_0xdc0257===_0x1a4838)break;else _0x17e5cc['push'](_0x17e5cc['shift']());}catch(_0x19796f){_0x17e5cc['push'](_0x17e5cc['shift']());}}}(a111_0x23d9,0xc19c7));function a111_0x3e2c(_0x34611c,_0x2d7a4d){_0x34611c=_0x34611c-0x191;const _0x23d9a6=a111_0x23d9();let _0x3e2c70=_0x23d9a6[_0x34611c];return _0x3e2c70;}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{asDryRunResult}from'../../commands/common/dry-run.js';import{isPlatformTransportFailure,submitDeploymentMetadataSyncAll}from'../../core/api-client.js';import{CliError,CliErrors}from'../../errors.js';const SUBMIT_PATH=a111_0x8d3349(0x1b4),CONFIRM_FLAG={'name':a111_0x8d3349(0x1a1),'type':'boolean','description':a111_0x8d3349(0x1a9)};function a111_0x23d9(){const _0x3b7192=['5578808HvTbER','6imCOAb','3943674TuafoS','application_deployment_sync','--confirm\x20is\x20required\x20to\x20synchronize\x20all\x20application\x20metadata.','all_server_supported_metadata','job','confirm','14xwqNVo','Run\x20with\x20--dry-run\x20first,\x20then\x20add\x20--confirm.','status','write','Would\x20submit\x20an\x20administrative\x20deployment\x20metadata\x20backfill\x20or\x20recovery\x20job.','not_submitted','outcome','Confirm\x20the\x20administrative\x20backfill\x20or\x20recovery\x20synchronization','1668RuNSda','jobId','defineProperty','not_needed','Submit\x20an\x20administrative\x20metadata\x20backfill\x20or\x20recovery\x20synchronization.','416225QwZGCR','List\x20recent\x20deployment\x20sync\x20jobs\x20before\x20deciding\x20whether\x20to\x20submit\x20again.','deployment','submitted','appCode','/smartapi/data-sync/submit','sync-all','deployment_sync_submit_outcome_unknown','1404400zUKZEj','35420fdTZsz','Backfill\x20or\x20recover\x20all\x20server-supported\x20application\x20metadata','1611ddXHLj','data','2948vSRsfz','1157310IjWZkc','No\x20deployment\x20synchronization\x20was\x20needed\x20for\x20this\x20app.','bool','validation','POST','Submitted\x20deployment\x20synchronization\x20job\x20'];a111_0x23d9=function(){return _0x3b7192;};return a111_0x23d9();}export const deploymentSyncAll={'service':a111_0x8d3349(0x1b1),'command':a111_0x8d3349(0x1b5),'description':a111_0x8d3349(0x1b9),'risk':a111_0x8d3349(0x1a5),'strictFlags':!![],'structuredErrors':!![],'confirmationDescription':a111_0x8d3349(0x1ae),'flags':[CONFIRM_FLAG,APPCODE_FLAG_OPTIONAL],async 'dryRun'(_0x3e816c){const _0x26f174=a111_0x8d3349;return asDryRunResult(buildPreview(_0x3e816c[_0x26f174(0x1b3)]),{'method':_0x26f174(0x198),'url':SUBMIT_PATH,'description':_0x26f174(0x1a6)});},async 'execute'(_0x5ddab4){const _0x88501a=a111_0x8d3349;if(!_0x5ddab4[_0x88501a(0x196)](_0x88501a(0x1a1)))throw CliErrors[_0x88501a(0x197)](_0x88501a(0x19e),_0x88501a(0x1a3));try{const _0x1252ae=await submitDeploymentMetadataSyncAll({'appCode':_0x5ddab4[_0x88501a(0x1b3)]});if(_0x1252ae[_0x88501a(0x1a8)]===_0x88501a(0x1ad))return{'ok':!![],'data':{'operation':_0x88501a(0x19d),'appCode':_0x5ddab4['appCode'],'submitted':![],'outcome':_0x88501a(0x1ad)},'message':_0x88501a(0x195)};return{'ok':!![],'data':{'operation':'application_deployment_sync','appCode':_0x5ddab4['appCode'],'submitted':!![],'outcome':_0x88501a(0x1b2),'jobId':_0x1252ae['job'][_0x88501a(0x1ab)],'status':_0x1252ae[_0x88501a(0x1a0)][_0x88501a(0x1a4)]},'message':_0x88501a(0x199)+_0x1252ae['job'][_0x88501a(0x1ab)]+'.'};}catch(_0x343905){if(!isPlatformTransportFailure(_0x343905))throw _0x343905;const _0x49d96c=new CliError(_0x88501a(0x1b6),0x2,'Deployment\x20sync\x20submission\x20response\x20was\x20unavailable;\x20job\x20creation\x20is\x20unknown.',_0x88501a(0x1b0));Object[_0x88501a(0x1ac)](_0x49d96c,_0x88501a(0x192),{'enumerable':!![],'value':{'operation':_0x88501a(0x19d),'appCode':_0x5ddab4[_0x88501a(0x1b3)],'submitted':null,'outcome':'unknown'}});throw _0x49d96c;}}};function buildPreview(_0x22c0e2){const _0x5debe3=a111_0x8d3349;return{'operation':'application_deployment_sync','selector':{'appCode':_0x22c0e2,'scope':_0x5debe3(0x19f)},'before':null,'after':null,'dryRun':!![],'backend':{'submitted':![],'outcome':_0x5debe3(0x1a7)},'warnings':[]};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a112_0x459e(){const _0x19d3fe=['919722mvGYZa','8fwdMZB','validation','286887mivaND','204ecUURM','--page-size\x20must\x20be\x20an\x20integer\x20from\x201\x20to\x20100.','appCode','1151197oQcJKI','2816615LPgHrz','1647833tXkvRZ','Items\x20per\x20page\x20(maximum\x20100)','length','items','\x20deployment\x20synchronization\x20job(s).','page-size','number','str','current-page','6419870DgAsum','isSafeInteger','Found\x20','string','22yHfRqZ','trim','Optional\x20server-defined\x20job\x20status\x20filter','deployment','48NQLmBx','status','347337OruMuU','28PvbjUh'];a112_0x459e=function(){return _0x19d3fe;};return a112_0x459e();}const a112_0x58c92e=a112_0x1ad6;(function(_0x261118,_0x11ec63){const _0x205eda=a112_0x1ad6,_0xa62eb6=_0x261118();while(!![]){try{const _0x3cfd42=-parseInt(_0x205eda(0x1de))/0x1+parseInt(_0x205eda(0x1cf))/0x2*(-parseInt(_0x205eda(0x1da))/0x3)+parseInt(_0x205eda(0x1d8))/0x4*(-parseInt(_0x205eda(0x1df))/0x5)+-parseInt(_0x205eda(0x1d7))/0x6*(-parseInt(_0x205eda(0x1d6))/0x7)+-parseInt(_0x205eda(0x1d3))/0x8*(-parseInt(_0x205eda(0x1d5))/0x9)+parseInt(_0x205eda(0x1cb))/0xa+-parseInt(_0x205eda(0x1e0))/0xb*(-parseInt(_0x205eda(0x1db))/0xc);if(_0x3cfd42===_0x11ec63)break;else _0xa62eb6['push'](_0xa62eb6['shift']());}catch(_0x2eaafb){_0xa62eb6['push'](_0xa62eb6['shift']());}}}(a112_0x459e,0xabc5e));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':a112_0x58c92e(0x1d2),'command':'sync-jobs','description':'List\x20application\x20deployment\x20synchronization\x20jobs','risk':'read','strictFlags':!![],'structuredErrors':!![],'flags':[{'name':a112_0x58c92e(0x1ca),'type':a112_0x58c92e(0x1c8),'default':0x1,'description':'Page\x20number'},{'name':a112_0x58c92e(0x1c7),'type':a112_0x58c92e(0x1c8),'default':0xa,'description':a112_0x58c92e(0x1c3)},{'name':'status','type':a112_0x58c92e(0x1ce),'description':a112_0x58c92e(0x1d1)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x15689b){const _0x1ceede=a112_0x58c92e;readPaging(_0x15689b['num'](_0x1ceede(0x1ca),0x1),_0x15689b['num']('page-size',0xa));},async 'execute'(_0x3f72c1){const _0x57d466=a112_0x58c92e,{currentPage:_0x3a54ff,pageSize:_0xd13f51}=readPaging(_0x3f72c1['num'](_0x57d466(0x1ca),0x1),_0x3f72c1['num']('page-size',0xa)),_0x33a866=_0x3f72c1[_0x57d466(0x1c9)](_0x57d466(0x1d4))[_0x57d466(0x1d0)](),_0x298f6a=await listDeploymentMetadataSyncJobs({'appCode':_0x3f72c1[_0x57d466(0x1dd)],'currentPage':_0x3a54ff,'pageSize':_0xd13f51,..._0x33a866?{'status':_0x33a866}:{}});return{'ok':!![],'data':{'appCode':_0x3f72c1[_0x57d466(0x1dd)],..._0x298f6a},'message':_0x57d466(0x1cd)+_0x298f6a[_0x57d466(0x1c5)][_0x57d466(0x1c4)]+_0x57d466(0x1c6)};}};function a112_0x1ad6(_0x182b35,_0x59dbfb){_0x182b35=_0x182b35-0x1c3;const _0x459ea1=a112_0x459e();let _0x1ad6e3=_0x459ea1[_0x182b35];return _0x1ad6e3;}function readPaging(_0x101ca1,_0x165821){const _0x56dedd=a112_0x58c92e;if(!Number['isSafeInteger'](_0x101ca1)||_0x101ca1<0x1)throw CliErrors['validation']('--current-page\x20must\x20be\x20a\x20positive\x20integer.');if(!Number[_0x56dedd(0x1cc)](_0x165821)||_0x165821<0x1||_0x165821>0x64)throw CliErrors[_0x56dedd(0x1d9)](_0x56dedd(0x1dc));return{'currentPage':_0x101ca1,'pageSize':_0x165821};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a113_0x4debb8=a113_0x1d5e;function a113_0x1d5e(_0x549cf1,_0x231cb6){_0x549cf1=_0x549cf1-0x109;const _0x229ba2=a113_0x229b();let _0x1d5e65=_0x229ba2[_0x549cf1];return _0x1d5e65;}(function(_0x2401ba,_0x1b7bc2){const _0x8acd1a=a113_0x1d5e,_0x5676c5=_0x2401ba();while(!![]){try{const _0x57d179=-parseInt(_0x8acd1a(0x110))/0x1+-parseInt(_0x8acd1a(0x10e))/0x2+-parseInt(_0x8acd1a(0x119))/0x3*(-parseInt(_0x8acd1a(0x116))/0x4)+parseInt(_0x8acd1a(0x10f))/0x5*(-parseInt(_0x8acd1a(0x123))/0x6)+parseInt(_0x8acd1a(0x120))/0x7+parseInt(_0x8acd1a(0x122))/0x8+parseInt(_0x8acd1a(0x11f))/0x9;if(_0x57d179===_0x1b7bc2)break;else _0x5676c5['push'](_0x5676c5['shift']());}catch(_0x451b15){_0x5676c5['push'](_0x5676c5['shift']());}}}(a113_0x229b,0x7fad8));function a113_0x229b(){const _0xf9a62a=['69042LjrGSA','num','\x20is\x20','has','RUNNING','Deployment\x20synchronization\x20job\x20ID','length','PENDING','read','PARTIAL_SUCCESS','appCode','1434664JjNGba','65uWrwqy','598232HLxWST','status','--job-id\x20must\x20be\x20a\x20positive\x20integer.','bizType','number','filter','1650284KoPmGP',';\x20terminal\x20state\x20is\x20unknown\x20to\x20this\x20CLI\x20version.','deployment','6NoccTU','action','job-id','validation','results','reduce','3821391MIDpPQ','1324561jnAfWu','map','4393272FUPfIA'];a113_0x229b=function(){return _0xf9a62a;};return a113_0x229b();}import{getDeploymentMetadataSyncStatus}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const TERMINAL_STATUSES=new Set(['SUCCESS',a113_0x4debb8(0x10c),'FAILED']),ACTIVE_STATUSES=new Set([a113_0x4debb8(0x10a),a113_0x4debb8(0x127)]);export const deploymentSyncStatus={'service':a113_0x4debb8(0x118),'command':'sync-status','description':'Get\x20application\x20deployment\x20synchronization\x20job\x20status','risk':a113_0x4debb8(0x10b),'requiresAppCode':!![],'strictFlags':!![],'structuredErrors':!![],'flags':[{'name':a113_0x4debb8(0x11b),'type':a113_0x4debb8(0x114),'required':!![],'description':a113_0x4debb8(0x128)}],async 'validate'(_0x53ebb3){const _0x208487=a113_0x4debb8;readJobId(_0x53ebb3[_0x208487(0x124)](_0x208487(0x11b)));},async 'execute'(_0x4a8cf3){const _0x3dbb56=a113_0x4debb8,_0x58ef3f=readJobId(_0x4a8cf3[_0x3dbb56(0x124)]('job-id')),_0x4f466d=await getDeploymentMetadataSyncStatus({'jobId':_0x58ef3f,'appCode':_0x4a8cf3[_0x3dbb56(0x10d)]}),_0x1a8ae4=TERMINAL_STATUSES[_0x3dbb56(0x126)](_0x4f466d['status'])?!![]:ACTIVE_STATUSES[_0x3dbb56(0x126)](_0x4f466d[_0x3dbb56(0x111)])?![]:null,_0x5a8ad4=countBy(_0x4f466d[_0x3dbb56(0x11d)]['map'](_0x3207b5=>_0x3207b5[_0x3dbb56(0x113)])),_0x205c6e=countBy(_0x4f466d['results'][_0x3dbb56(0x121)](_0x46d827=>_0x46d827[_0x3dbb56(0x11a)])),_0x2aff37=_0x1a8ae4===null?['Preserved\x20server-defined\x20status\x20'+_0x4f466d[_0x3dbb56(0x111)]+_0x3dbb56(0x117)]:[];return{'ok':!![],'data':{'job':_0x4f466d,'isTerminal':_0x1a8ae4,'summary':{'total':_0x4f466d[_0x3dbb56(0x11d)]['length'],'failed':_0x4f466d[_0x3dbb56(0x11d)][_0x3dbb56(0x115)](_0x2cc63d=>_0x2cc63d[_0x3dbb56(0x11a)]==='FAILED')[_0x3dbb56(0x109)],'byBizType':_0x5a8ad4,'byAction':_0x205c6e},'warnings':_0x2aff37},'message':'Deployment\x20synchronization\x20job\x20'+_0x58ef3f+_0x3dbb56(0x125)+_0x4f466d[_0x3dbb56(0x111)]+'.'};}};function readJobId(_0x16a04b){const _0x5d1f96=a113_0x4debb8;if(!Number['isSafeInteger'](_0x16a04b)||_0x16a04b<=0x0)throw CliErrors[_0x5d1f96(0x11c)](_0x5d1f96(0x112));return _0x16a04b;}function countBy(_0x1c4c8b){const _0x1e9405=a113_0x4debb8;return _0x1c4c8b[_0x1e9405(0x11e)]((_0x4757a0,_0x336fef)=>{return _0x4757a0[_0x336fef]=(_0x4757a0[_0x336fef]??0x0)+0x1,_0x4757a0;},{});}
|
package/lib/commands/doctor.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a114_0x186f12=a114_0x1107;(function(_0x155520,_0x3859c8){const _0x37c36f=a114_0x1107,_0xac3116=_0x155520();while(!![]){try{const _0x3bd416=-parseInt(_0x37c36f(0x15c))/0x1*(parseInt(_0x37c36f(0x1ab))/0x2)+parseInt(_0x37c36f(0x1bb))/0x3*(parseInt(_0x37c36f(0x182))/0x4)+parseInt(_0x37c36f(0x1bc))/0x5*(-parseInt(_0x37c36f(0x1e3))/0x6)+-parseInt(_0x37c36f(0x176))/0x7*(parseInt(_0x37c36f(0x187))/0x8)+parseInt(_0x37c36f(0x174))/0x9+-parseInt(_0x37c36f(0x1cf))/0xa*(-parseInt(_0x37c36f(0x164))/0xb)+parseInt(_0x37c36f(0x1cb))/0xc*(parseInt(_0x37c36f(0x1b8))/0xd);if(_0x3bd416===_0x3859c8)break;else _0xac3116['push'](_0xac3116['shift']());}catch(_0x4fa11f){_0xac3116['push'](_0xac3116['shift']());}}}(a114_0x14dc,0x53c87));function a114_0x14dc(){const _0x437a2b=['accessKey','appCode','status','repairCommand','Unavailable\x20until\x20routing\x20configuration\x20is\x20repaired','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','explicitAppName','default','\x20config\x20delete\x20region','\x20\x20Routing\x20Configuration','globalConfig','repeat','label','\x20config\x20delete\x20region\x20--global','not\x20configured','2478816bseJzA','doctor','203HCmftZ','read','\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(missing)','(no\x20file)','stringify','projectConfig','object','\x20\x20\x20\x20region:\x20\x20\x20\x20\x20','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','\x20\x20Skill\x20Version:\x20\x20\x20','✗\x20Invalid\x20','749648RzkxBO','\x20\x20Repair\x20project:\x20\x20\x20','defaultApp','filter','✗\x20Not\x20logged\x20in','159192XVWcQW','string','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','installedPath','regionConfiguredValue','Repair\x20','log','\x20config\x20delete\x20routing\x20--global','\x20config\x20delete\x20inherit\x20--global','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Merged\x20Config','routing','\x20(invalid)','value','env','(not\x20set)','inherit','regionSource','\x20\x20app\x20locale:\x20\x20\x20\x20\x20\x20','reason','\x20(default)','hasOwnProperty','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','missing','global','empty','check','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','green','format','currentApp','\x20\x20Installed\x20Path:\x20\x20','Project','(default:\x20','\x20\x20─','5910oNNFbg','\x20\x20Repair\x20global:\x20\x20\x20','pageSize','\x20\x20Built-in\x20Skill','state','Global','red','appcode','gray','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','arch','\x20\x20\x20\x20accessKey:\x20\x20','\x20config\x20delete\x20routing','13wOLwnq','entries','\x20\x20Package\x20Version:\x20','6VEUcfF','16210RCiydZ','message','✓\x20Valid\x20JSON','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','version','\x20\x20appDomain:\x20\x20\x20\x20\x20\x20\x20','\x20\x20explicitAppName:\x20','verbose','push','ignored\x20in\x20','cookie','join','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','(not\x20found)','prototype','2234508GEyquR','(set,\x20length=','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20skillDomain:\x20\x20\x20\x20\x20','1110UGMlmZ','toLowerCase','source','\x20\x20API\x20Endpoints','\x20←\x20current','slice','(none)','region','padEnd','yellow','(set\x20via\x20file,\x20length=','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','includes','✗\x20Expired','\x20\x20Config\x20JSON','raw','\x20\x20Auth','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20config','✗\x20Invalid','300VKrtUO','\x20\x20kbDomain:\x20\x20\x20\x20\x20\x20\x20\x20','length','\x20config\x20delete\x20inherit','project','current','(unknown)','packageVersion','platform','apiDir','bold','null','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','27lZnIZj','keys','apps','.region\x20to\x20cn\x20or\x20id\x20in\x20','call','Not\x20checked\x20until\x20routing\x20configuration\x20is\x20repaired','\x20\x20Country/Region\x20Configuration','\x20\x20Repair\x20project:\x20\x20','32274STETco'];a114_0x14dc=function(){return _0x437a2b;};return a114_0x14dc();}import a114_0x3aeb3c from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';function a114_0x1107(_0x1473c0,_0xe8010d){_0x1473c0=_0x1473c0-0x152;const _0x14dcfd=a114_0x14dc();let _0x11076a=_0x14dcfd[_0x1473c0];return _0x11076a;}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(_0x447efa){const _0x5ac84b=a114_0x1107;return typeof _0x447efa===_0x5ac84b(0x188)?JSON[_0x5ac84b(0x17b)](_0x447efa):'<'+(_0x447efa===null?_0x5ac84b(0x15a):typeof _0x447efa)+'>';}async function execute(_0x59edde){const _0x32647a=a114_0x1107,_0x20862a=GIT_COMMIT!=='unknown'?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x32647a(0x1d4)](0x0,0xa)+')':VERSION,_0x52d0e8=buildConfigFromFlags({}),_0x557a97=getCookie();let _0x255de9;try{await initGlobalEnvironment(_0x52d0e8);}catch(_0xe81d76){_0x255de9=_0xe81d76 instanceof Error?_0xe81d76:new Error(String(_0xe81d76));}console['log'](),console[_0x32647a(0x18e)](a114_0x3aeb3c[_0x32647a(0x159)](CLI_BIN_NAME+'\x20doctor')),console['log'](a114_0x3aeb3c['gray']('─'[_0x32647a(0x170)](0x32))),console[_0x32647a(0x18e)](_0x32647a(0x1da)+_0x20862a),console[_0x32647a(0x18e)]('\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+process[_0x32647a(0x1c0)]),console['log'](_0x32647a(0x16a)+process[_0x32647a(0x157)]+'\x20'+process[_0x32647a(0x1b5)]);const _0x5f0246=inspectBuiltinSkill();console['log'](),console[_0x32647a(0x18e)](a114_0x3aeb3c[_0x32647a(0x159)](_0x32647a(0x1ae))),console['log'](a114_0x3aeb3c[_0x32647a(0x1b3)]('\x20\x20─'[_0x32647a(0x170)](0x1e)));const _0x1744b7=_0x5f0246[_0x32647a(0x1af)]===_0x32647a(0x154)?a114_0x3aeb3c[_0x32647a(0x1a4)]('✓\x20'+_0x5f0246[_0x32647a(0x1af)]):a114_0x3aeb3c['red']('✗\x20'+_0x5f0246[_0x32647a(0x1af)]);console[_0x32647a(0x18e)]('\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x1744b7),console[_0x32647a(0x18e)](_0x32647a(0x1ba)+_0x5f0246[_0x32647a(0x156)]),console['log'](_0x32647a(0x180)+(_0x5f0246['skillVersion']||a114_0x3aeb3c[_0x32647a(0x1b3)](_0x32647a(0x155)))),console[_0x32647a(0x18e)](_0x32647a(0x1a7)+(_0x5f0246[_0x32647a(0x18b)]||a114_0x3aeb3c[_0x32647a(0x1b3)](_0x32647a(0x1c9))));if(_0x5f0246[_0x32647a(0x19b)])console[_0x32647a(0x18e)]('\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x5f0246[_0x32647a(0x19b)]);_0x5f0246[_0x32647a(0x1af)]!==_0x32647a(0x154)&&console['log']('\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x5f0246['repairCommand']);console['log'](),console[_0x32647a(0x18e)](a114_0x3aeb3c[_0x32647a(0x159)]('\x20\x20Config\x20Files')),console['log'](a114_0x3aeb3c[_0x32647a(0x1b3)]('\x20\x20─'[_0x32647a(0x170)](0x1e)));const _0x579f9f=getGlobalConfigPath(),_0x491901=getProjectConfigPath();console[_0x32647a(0x18e)]('\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x579f9f||a114_0x3aeb3c[_0x32647a(0x1b3)](_0x32647a(0x1c9)))),console[_0x32647a(0x18e)](_0x32647a(0x1cd)+(_0x491901||a114_0x3aeb3c[_0x32647a(0x1b3)](_0x32647a(0x1c9)))),console[_0x32647a(0x18e)](),console['log'](a114_0x3aeb3c['bold'](_0x32647a(0x1dd))),console[_0x32647a(0x18e)](a114_0x3aeb3c['gray'](_0x32647a(0x1aa)[_0x32647a(0x170)](0x1e)));const _0x3f65e1=(_0x365f12,_0x21962f)=>{const _0x2171dd=_0x32647a;if(!_0x21962f){console[_0x2171dd(0x18e)]('\x20\x20'+_0x365f12[_0x2171dd(0x1d7)](0x11)+'\x20'+a114_0x3aeb3c[_0x2171dd(0x1b3)](_0x2171dd(0x17a)));return;}const _0x4bcca4=inspectCliConfigJsonFile(_0x21962f);if(_0x4bcca4[_0x2171dd(0x167)]==='ok')console[_0x2171dd(0x18e)]('\x20\x20'+_0x365f12[_0x2171dd(0x1d7)](0x11)+'\x20'+a114_0x3aeb3c[_0x2171dd(0x1a4)](_0x2171dd(0x1be)));else{if(_0x4bcca4[_0x2171dd(0x167)]===_0x2171dd(0x1a1))console[_0x2171dd(0x18e)]('\x20\x20'+_0x365f12['padEnd'](0x11)+'\x20'+a114_0x3aeb3c['yellow']('⚠\x20Empty\x20(treated\x20as\x20{})'));else _0x4bcca4[_0x2171dd(0x167)]===_0x2171dd(0x19f)?console[_0x2171dd(0x18e)]('\x20\x20'+_0x365f12[_0x2171dd(0x1d7)](0x11)+'\x20'+a114_0x3aeb3c[_0x2171dd(0x1b3)](_0x2171dd(0x179))):(console[_0x2171dd(0x18e)]('\x20\x20'+_0x365f12['padEnd'](0x11)+'\x20'+a114_0x3aeb3c[_0x2171dd(0x1b1)]('✗\x20Invalid\x20JSON')),console['log']('\x20\x20'+''[_0x2171dd(0x1d7)](0x11)+'\x20'+a114_0x3aeb3c[_0x2171dd(0x1b1)](_0x4bcca4[_0x2171dd(0x1bd)])));}};_0x3f65e1(_0x32647a(0x1b0),_0x579f9f),_0x3f65e1('Project',_0x491901);const _0xc9e82d=loadRawConfigLayers(),_0x9abd67=[{'label':'Project','value':_0xc9e82d[_0x32647a(0x17c)][_0x32647a(0x1d6)],'present':Object[_0x32647a(0x1ca)][_0x32647a(0x19d)][_0x32647a(0x160)](_0xc9e82d[_0x32647a(0x17c)],_0x32647a(0x1d6)),'repairCommand':CLI_BIN_NAME+_0x32647a(0x16d)},{'label':_0x32647a(0x1b0),'value':_0xc9e82d[_0x32647a(0x16f)][_0x32647a(0x1d6)],'present':Object[_0x32647a(0x1ca)][_0x32647a(0x19d)][_0x32647a(0x160)](_0xc9e82d['globalConfig'],_0x32647a(0x1d6)),'repairCommand':CLI_BIN_NAME+_0x32647a(0x172)}][_0x32647a(0x185)](_0x26bfa3=>_0x26bfa3['present']&&isInvalidLovrabetRegion(_0x26bfa3[_0x32647a(0x195)]));for(const [_0x3ed260,_0x4cc90a]of[[_0x32647a(0x1a8),_0xc9e82d[_0x32647a(0x17c)]],['Global',_0xc9e82d[_0x32647a(0x16f)]]]){const _0x68f042=_0x4cc90a['apps']&&typeof _0x4cc90a[_0x32647a(0x15e)]===_0x32647a(0x17d)?_0x4cc90a[_0x32647a(0x15e)]:{};for(const [_0x303857,_0x10a3b2]of Object[_0x32647a(0x1b9)](_0x68f042)){if(!_0x10a3b2||typeof _0x10a3b2!==_0x32647a(0x17d)||!Object[_0x32647a(0x1ca)][_0x32647a(0x19d)][_0x32647a(0x160)](_0x10a3b2,_0x32647a(0x1d6)))continue;isInvalidLovrabetRegion(_0x10a3b2[_0x32647a(0x1d6)])&&_0x9abd67[_0x32647a(0x1c4)]({'label':_0x3ed260+'\x20app\x20\x22'+_0x303857+'\x22','value':_0x10a3b2['region'],'present':!![],'repairCommand':'Set\x20apps.'+_0x303857+_0x32647a(0x15f)+_0x3ed260[_0x32647a(0x1d0)]()+_0x32647a(0x1e1)});}}if(_0x9abd67['length']>0x0){console[_0x32647a(0x18e)](),console[_0x32647a(0x18e)](a114_0x3aeb3c[_0x32647a(0x159)](_0x32647a(0x162))),console['log'](a114_0x3aeb3c[_0x32647a(0x1b3)](_0x32647a(0x1aa)['repeat'](0x1e)));for(const _0x1e7de3 of _0x9abd67){console['log']('\x20\x20'+_0x1e7de3[_0x32647a(0x171)]['padEnd'](0x11)+'\x20'+a114_0x3aeb3c[_0x32647a(0x1b1)](_0x32647a(0x181)+describeRegionValue(_0x1e7de3[_0x32647a(0x195)]))),console[_0x32647a(0x18e)]('\x20\x20'+(_0x32647a(0x18d)+_0x1e7de3[_0x32647a(0x171)][_0x32647a(0x1d0)]()+':')[_0x32647a(0x1d7)](0x10)+'\x20'+_0x1e7de3[_0x32647a(0x168)]);}}const _0x58413f=[Object[_0x32647a(0x1ca)][_0x32647a(0x19d)][_0x32647a(0x160)](_0xc9e82d[_0x32647a(0x16f)],_0x32647a(0x198))?_0x32647a(0x1a0):null,Object[_0x32647a(0x1ca)][_0x32647a(0x19d)][_0x32647a(0x160)](_0xc9e82d[_0x32647a(0x17c)],_0x32647a(0x198))?_0x32647a(0x153):null][_0x32647a(0x185)](Boolean);_0x58413f[_0x32647a(0x1e5)]>0x0&&(console[_0x32647a(0x18e)]('\x20\x20Legacy\x20inherit:\x20\x20\x20'+a114_0x3aeb3c['yellow'](_0x32647a(0x1c5)+_0x58413f[_0x32647a(0x1c7)]('\x20+\x20')+_0x32647a(0x1e1))),_0x58413f[_0x32647a(0x1db)](_0x32647a(0x153))&&console['log'](_0x32647a(0x183)+CLI_BIN_NAME+_0x32647a(0x152)),_0x58413f['includes'](_0x32647a(0x1a0))&&console[_0x32647a(0x18e)]('\x20\x20Repair\x20global:\x20\x20\x20\x20'+CLI_BIN_NAME+_0x32647a(0x190)));const _0x2961a5=isInvalidLovrabetRegion(_0x52d0e8['regionConfiguredValue']??_0x52d0e8['raw']?.['region']);_0x255de9&&!_0x2961a5&&(console[_0x32647a(0x18e)](),console['log'](a114_0x3aeb3c[_0x32647a(0x159)](_0x32647a(0x16e))),console[_0x32647a(0x18e)](a114_0x3aeb3c[_0x32647a(0x1b3)](_0x32647a(0x1aa)[_0x32647a(0x170)](0x1e))),console[_0x32647a(0x18e)](_0x32647a(0x191)+a114_0x3aeb3c['red'](_0x32647a(0x1e2))),console[_0x32647a(0x18e)](_0x32647a(0x18a)+_0x255de9['message']),Object[_0x32647a(0x1ca)][_0x32647a(0x19d)][_0x32647a(0x160)](_0xc9e82d[_0x32647a(0x17c)],'routing')&&console[_0x32647a(0x18e)](_0x32647a(0x163)+CLI_BIN_NAME+_0x32647a(0x1b7)),Object['prototype']['hasOwnProperty'][_0x32647a(0x160)](_0xc9e82d[_0x32647a(0x16f)],_0x32647a(0x193))&&console[_0x32647a(0x18e)](_0x32647a(0x1ac)+CLI_BIN_NAME+_0x32647a(0x18f)));console[_0x32647a(0x18e)](),console[_0x32647a(0x18e)](a114_0x3aeb3c['bold'](_0x32647a(0x192))),console[_0x32647a(0x18e)](a114_0x3aeb3c['gray'](_0x32647a(0x1aa)[_0x32647a(0x170)](0x1e))),console['log'](_0x32647a(0x15b)+(_0x52d0e8[_0x32647a(0x166)]||a114_0x3aeb3c[_0x32647a(0x1b1)](_0x32647a(0x197))));const _0x3fd308=_0x2961a5?a114_0x3aeb3c[_0x32647a(0x1b1)](describeRegionValue(_0x52d0e8[_0x32647a(0x18c)]??_0x52d0e8['raw']?.[_0x32647a(0x1d6)])+_0x32647a(0x194)):(_0x52d0e8['region']??DEFAULT_LOVRABET_REGION)+'\x20('+(_0x52d0e8[_0x32647a(0x199)]??_0x32647a(0x16c))+')';console[_0x32647a(0x18e)](_0x32647a(0x178)+_0x3fd308),console[_0x32647a(0x18e)](_0x32647a(0x1a3)+_0x52d0e8['env']),console['log'](_0x32647a(0x19a)+_0x52d0e8['locale']),console[_0x32647a(0x18e)](_0x32647a(0x1e0)+_0x52d0e8[_0x32647a(0x158)]),console[_0x32647a(0x18e)]('\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20'+(_0x52d0e8[_0x32647a(0x184)]||a114_0x3aeb3c[_0x32647a(0x1b3)](_0x32647a(0x1d5)))),console[_0x32647a(0x18e)]('\x20\x20currentApp:\x20\x20\x20\x20\x20\x20'+(_0x52d0e8[_0x32647a(0x1a6)]||a114_0x3aeb3c['gray'](_0x32647a(0x1d5)))),console['log'](_0x32647a(0x1c2)+(_0x52d0e8[_0x32647a(0x16b)]||a114_0x3aeb3c[_0x32647a(0x1b3)](_0x32647a(0x1d5)))),console[_0x32647a(0x18e)]('\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x52d0e8[_0x32647a(0x1a5)]||a114_0x3aeb3c[_0x32647a(0x1b3)](_0x32647a(0x1a9)+DEFAULT_CONFIG_VALUES[_0x32647a(0x1a5)]+')'))),console[_0x32647a(0x18e)]('\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x52d0e8[_0x32647a(0x1ad)]??a114_0x3aeb3c[_0x32647a(0x1b3)]('(default)'))),console['log']('\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20'+_0x52d0e8['riskLevel']),console['log'](_0x32647a(0x1b4)+_0x52d0e8[_0x32647a(0x1c3)]),console[_0x32647a(0x18e)]('\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x52d0e8[_0x32647a(0x1c6)]?a114_0x3aeb3c[_0x32647a(0x1a4)](_0x32647a(0x1cc)+_0x52d0e8[_0x32647a(0x1c6)][_0x32647a(0x1e5)]+')'):_0x557a97?a114_0x3aeb3c[_0x32647a(0x1a4)](_0x32647a(0x1d9)+_0x557a97['length']+')'):a114_0x3aeb3c[_0x32647a(0x1b3)]('(none)')));const _0x2fa790=Object[_0x32647a(0x15d)](_0x52d0e8[_0x32647a(0x15e)]);if(_0x2fa790['length']>0x0){console[_0x32647a(0x18e)](),console['log'](a114_0x3aeb3c[_0x32647a(0x159)]('\x20\x20Apps')),console['log'](a114_0x3aeb3c[_0x32647a(0x1b3)]('\x20\x20─'[_0x32647a(0x170)](0x1e)));for(const _0xa0cd85 of _0x2fa790){const _0x3b3efd=_0x52d0e8[_0x32647a(0x15e)][_0xa0cd85],_0x36c5c7=_0xa0cd85===_0x52d0e8[_0x32647a(0x184)],_0x507cbe=_0xa0cd85===_0x52d0e8[_0x32647a(0x1a6)],_0x2a4ea0=_0x507cbe?a114_0x3aeb3c[_0x32647a(0x1a4)](_0x32647a(0x1d3)):'',_0x8cbc3a=_0x36c5c7?_0x32647a(0x19c):'';console[_0x32647a(0x18e)]('\x20\x20'+_0xa0cd85+_0x8cbc3a+_0x2a4ea0),console[_0x32647a(0x18e)](_0x32647a(0x19e)+_0x3b3efd[_0x32647a(0x1b2)]);const _0x151717=_0xc9e82d[_0x32647a(0x17c)][_0x32647a(0x15e)]&&typeof _0xc9e82d[_0x32647a(0x17c)][_0x32647a(0x15e)]==='object'?_0xc9e82d['projectConfig'][_0x32647a(0x15e)]:{},_0x19f194=Object['prototype']['hasOwnProperty'][_0x32647a(0x160)](_0x151717,_0xa0cd85),_0x31f1e4=isInvalidLovrabetRegion(_0x3b3efd[_0x32647a(0x1d6)])?{'region':_0x52d0e8[_0x32647a(0x1d6)]??DEFAULT_LOVRABET_REGION}:resolveEffectiveRegion({'appRegion':_0x3b3efd[_0x32647a(0x1d6)],'projectRegion':_0x19f194?_0xc9e82d[_0x32647a(0x17c)][_0x32647a(0x1d6)]:undefined,'globalRegion':_0xc9e82d[_0x32647a(0x16f)][_0x32647a(0x1d6)],'mergedRegion':_0x52d0e8[_0x32647a(0x1de)][_0x32647a(0x1d6)],'appName':_0xa0cd85}),_0x5ec575=buildAppDoctorFields(_0x3b3efd,{'region':_0x31f1e4['region'],'env':_0x52d0e8[_0x32647a(0x196)],'apiDir':_0x52d0e8[_0x32647a(0x1de)][_0x32647a(0x158)]||DEFAULT_CONFIG_VALUES[_0x32647a(0x158)],'cookie':_0x52d0e8['cookie']||_0x557a97||undefined,'accessKey':_0x52d0e8['accessKey']});console[_0x32647a(0x18e)](_0x32647a(0x17e)+_0x5ec575['region'][_0x32647a(0x195)]+'\x20\x20'+a114_0x3aeb3c[_0x32647a(0x1b3)]('('+_0x5ec575[_0x32647a(0x1d6)][_0x32647a(0x1d1)]+')')),console[_0x32647a(0x18e)]('\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x5ec575[_0x32647a(0x196)][_0x32647a(0x195)]+'\x20\x20'+a114_0x3aeb3c['gray']('('+_0x5ec575['env']['source']+')')),console[_0x32647a(0x18e)](_0x32647a(0x17f)+_0x5ec575[_0x32647a(0x158)][_0x32647a(0x195)]+'\x20\x20'+a114_0x3aeb3c[_0x32647a(0x1b3)]('('+_0x5ec575['apiDir'][_0x32647a(0x1d1)]+')'));const _0x1dd992=_0x5ec575['cookie'][_0x32647a(0x195)]?a114_0x3aeb3c[_0x32647a(0x1a4)](_0x32647a(0x1cc)+_0x5ec575[_0x32647a(0x1c6)][_0x32647a(0x195)]['length']+')'):a114_0x3aeb3c['gray'](_0x32647a(0x1d5));console[_0x32647a(0x18e)]('\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20'+_0x1dd992+'\x20\x20'+a114_0x3aeb3c[_0x32647a(0x1b3)]('('+_0x5ec575['cookie'][_0x32647a(0x1d1)]+')'));const _0x26f1ad=_0x5ec575['accessKey']['value']?a114_0x3aeb3c[_0x32647a(0x1a4)](_0x32647a(0x1cc)+_0x5ec575['accessKey'][_0x32647a(0x195)][_0x32647a(0x1e5)]+')'):a114_0x3aeb3c[_0x32647a(0x1b3)]('(none)');console[_0x32647a(0x18e)](_0x32647a(0x1b6)+_0x26f1ad+'\x20\x20'+a114_0x3aeb3c[_0x32647a(0x1b3)]('('+_0x5ec575[_0x32647a(0x165)][_0x32647a(0x1d1)]+')'));}}console[_0x32647a(0x18e)](),console[_0x32647a(0x18e)](a114_0x3aeb3c[_0x32647a(0x159)](_0x32647a(0x1d2))),console[_0x32647a(0x18e)](a114_0x3aeb3c['gray']('\x20\x20─'['repeat'](0x1e)));_0x255de9?console[_0x32647a(0x18e)](_0x32647a(0x191)+a114_0x3aeb3c[_0x32647a(0x1b1)](_0x32647a(0x169))):(console[_0x32647a(0x18e)]('\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+getActiveRegion()),console[_0x32647a(0x18e)](_0x32647a(0x1c8)+getApiDomain()),console[_0x32647a(0x18e)](_0x32647a(0x189)+getUserDomain()),console[_0x32647a(0x18e)]('\x20\x20runtimeDomain:\x20\x20\x20'+getRuntimeDomain()),console[_0x32647a(0x18e)](_0x32647a(0x1ce)+getSkillDomain()),console[_0x32647a(0x18e)](_0x32647a(0x1e4)+getKbDomain()),console[_0x32647a(0x18e)]('\x20\x20kbServiceDomain:\x20'+(getKbServiceDomain()??_0x32647a(0x173))),console[_0x32647a(0x18e)](_0x32647a(0x1c1)+getAppDomain()));console['log'](),console[_0x32647a(0x18e)](a114_0x3aeb3c[_0x32647a(0x159)](_0x32647a(0x1df))),console[_0x32647a(0x18e)](a114_0x3aeb3c[_0x32647a(0x1b3)](_0x32647a(0x1aa)['repeat'](0x1e)));if(_0x255de9)console[_0x32647a(0x18e)](_0x32647a(0x191)+a114_0x3aeb3c[_0x32647a(0x1d8)](_0x32647a(0x161)));else{if(_0x557a97){const _0x456d15=await getIsSessionValid();console[_0x32647a(0x18e)](_0x32647a(0x191)+(_0x456d15?a114_0x3aeb3c[_0x32647a(0x1a4)]('✓\x20Valid'):a114_0x3aeb3c[_0x32647a(0x1b1)](_0x32647a(0x1dc))));}else console[_0x32647a(0x18e)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a114_0x3aeb3c['red'](_0x32647a(0x186)));}return console[_0x32647a(0x18e)](),{'ok':!![]};}export const doctorDefinition={'service':a114_0x186f12(0x175),'command':a114_0x186f12(0x1a2),'description':a114_0x186f12(0x1bf),'risk':a114_0x186f12(0x177),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
|
|
1
|
+
function a114_0x2d23(_0x495771,_0x31dcd4){_0x495771=_0x495771-0xae;const _0x119b65=a114_0x119b();let _0x2d23a5=_0x119b65[_0x495771];return _0x2d23a5;}const a114_0x38e42c=a114_0x2d23;(function(_0x908182,_0x37ce01){const _0x3e251b=a114_0x2d23,_0x5a884d=_0x908182();while(!![]){try{const _0x46dfdf=-parseInt(_0x3e251b(0xee))/0x1*(-parseInt(_0x3e251b(0xf5))/0x2)+-parseInt(_0x3e251b(0x129))/0x3+parseInt(_0x3e251b(0xd9))/0x4+parseInt(_0x3e251b(0xc6))/0x5*(-parseInt(_0x3e251b(0xe1))/0x6)+-parseInt(_0x3e251b(0x105))/0x7*(parseInt(_0x3e251b(0x11d))/0x8)+parseInt(_0x3e251b(0xfb))/0x9+-parseInt(_0x3e251b(0x133))/0xa;if(_0x46dfdf===_0x37ce01)break;else _0x5a884d['push'](_0x5a884d['shift']());}catch(_0x12b351){_0x5a884d['push'](_0x5a884d['shift']());}}}(a114_0x119b,0x255ad));import a114_0x56d75a from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';import{getActiveRegion,getApiDomain,getAppDomain,getKbDomain,getKbServiceDomain,getSkillDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags,initGlobalEnvironment,inspectCliConfigJsonFile,loadRawConfigLayers}from'../context.js';function a114_0x119b(){const _0x26950a=['125724tgmpfW','\x20\x20Legacy\x20inherit:\x20\x20\x20','\x20\x20─','padEnd','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','current','\x20\x20skillDomain:\x20\x20\x20\x20\x20','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','12NGYhpC','missing','object','appcode','\x20\x20\x20\x20region:\x20\x20\x20\x20\x20','\x20config\x20delete\x20inherit\x20--global','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','keys','repeat','reason','Unavailable\x20until\x20routing\x20configuration\x20is\x20repaired','\x20app\x20\x22','regionSource','217zgsdJd','\x20\x20Skill\x20Version:\x20\x20\x20','projectConfig','bold','✗\x20Not\x20logged\x20in','locale','version','2292zozmMF','value','verbose','default','\x20(invalid)','✗\x20Invalid\x20','2356731CBZJRB','\x20\x20Installed\x20Path:\x20\x20','\x20\x20appDomain:\x20\x20\x20\x20\x20\x20\x20','\x20\x20Built-in\x20Skill','hasOwnProperty','\x20\x20kbDomain:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','state','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','339815LVVBZG','join','\x20\x20Auth','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','push','not\x20configured','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20config','accessKey','doctor','entries','empty','yellow','(none)','inherit','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','region','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','installedPath','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','\x20\x20Country/Region\x20Configuration','\x20config\x20delete\x20routing\x20--global','apiDir','red','8dzPaJP','✗\x20Invalid\x20JSON','Project','skillVersion','\x20\x20API\x20Endpoints','globalConfig','apps','green','\x20config\x20delete\x20region','slice','raw','project','370122eshVBD','stringify','source','pageSize','(default:\x20','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(missing)','\x20config\x20delete\x20routing','routing','1310360wNGnJC','env','\x20config\x20delete\x20region\x20--global','platform','format','\x20\x20Apps','Global','label','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','prototype','log','status','call','\x20+\x20','gray','\x20←\x20current','(not\x20set)','\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20kbServiceDomain:\x20','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','\x20\x20app\x20locale:\x20\x20\x20\x20\x20\x20','includes','defaultApp','(set\x20via\x20file,\x20length=','arch','\x20\x20\x20\x20accessKey:\x20\x20','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','\x20\x20Repair\x20project:\x20\x20\x20','message','\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(not\x20found)','toLowerCase','(set,\x20length=','repairCommand','215030GgVaef','riskLevel','\x20\x20Routing\x20Configuration','(unknown)','\x20\x20Package\x20Version:\x20','null','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','explicitAppName','appCode','\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','cookie','\x20\x20Repair\x20project:\x20\x20','global','string','✓\x20Valid\x20JSON','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','⚠\x20Empty\x20(treated\x20as\x20{})','✗\x20Expired','length'];a114_0x119b=function(){return _0x26950a;};return a114_0x119b();}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(_0x1bf7cf){const _0x33c672=a114_0x2d23;return typeof _0x1bf7cf===_0x33c672(0xd3)?JSON[_0x33c672(0x12a)](_0x1bf7cf):'<'+(_0x1bf7cf===null?_0x33c672(0xcb):typeof _0x1bf7cf)+'>';}async function execute(_0x743803){const _0x331ce9=a114_0x2d23,_0x33b5a3=GIT_COMMIT!=='unknown'?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x331ce9(0x126)](0x0,0xa)+')':VERSION,_0xf358ba=buildConfigFromFlags({}),_0x2882a5=getCookie();let _0x1aacaf;try{await initGlobalEnvironment(_0xf358ba);}catch(_0x4ebf99){_0x1aacaf=_0x4ebf99 instanceof Error?_0x4ebf99:new Error(String(_0x4ebf99));}console[_0x331ce9(0xae)](),console['log'](a114_0x56d75a['bold'](CLI_BIN_NAME+'\x20doctor')),console[_0x331ce9(0xae)](a114_0x56d75a[_0x331ce9(0xb2)]('─'[_0x331ce9(0xe9)](0x32))),console[_0x331ce9(0xae)]('\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20'+_0x33b5a3),console[_0x331ce9(0xae)](_0x331ce9(0x104)+process[_0x331ce9(0xf4)]),console['log'](_0x331ce9(0x13b)+process[_0x331ce9(0x136)]+'\x20'+process[_0x331ce9(0xbc)]);const _0x150f9d=inspectBuiltinSkill();console[_0x331ce9(0xae)](),console['log'](a114_0x56d75a[_0x331ce9(0xf1)](_0x331ce9(0xfe))),console[_0x331ce9(0xae)](a114_0x56d75a['gray'](_0x331ce9(0xdb)['repeat'](0x1e)));const _0x3ff0d8=_0x150f9d['state']===_0x331ce9(0xde)?a114_0x56d75a[_0x331ce9(0x124)]('✓\x20'+_0x150f9d[_0x331ce9(0x102)]):a114_0x56d75a[_0x331ce9(0x11c)]('✗\x20'+_0x150f9d[_0x331ce9(0x102)]);console['log'](_0x331ce9(0xc1)+_0x3ff0d8),console['log'](_0x331ce9(0xca)+_0x150f9d['packageVersion']),console[_0x331ce9(0xae)](_0x331ce9(0xef)+(_0x150f9d[_0x331ce9(0x120)]||a114_0x56d75a[_0x331ce9(0xb2)](_0x331ce9(0xc9)))),console[_0x331ce9(0xae)](_0x331ce9(0xfc)+(_0x150f9d[_0x331ce9(0x117)]||a114_0x56d75a[_0x331ce9(0xb2)]('(not\x20found)')));if(_0x150f9d[_0x331ce9(0xea)])console[_0x331ce9(0xae)](_0x331ce9(0x101)+_0x150f9d[_0x331ce9(0xea)]);_0x150f9d['state']!==_0x331ce9(0xde)&&console[_0x331ce9(0xae)](_0x331ce9(0xcf)+_0x150f9d['repairCommand']);console[_0x331ce9(0xae)](),console[_0x331ce9(0xae)](a114_0x56d75a[_0x331ce9(0xf1)]('\x20\x20Config\x20Files')),console[_0x331ce9(0xae)](a114_0x56d75a[_0x331ce9(0xb2)]('\x20\x20─'[_0x331ce9(0xe9)](0x1e)));const _0x2f575f=getGlobalConfigPath(),_0x472d39=getProjectConfigPath();console['log'](_0x331ce9(0x10b)+(_0x2f575f||a114_0x56d75a[_0x331ce9(0xb2)](_0x331ce9(0xc2)))),console[_0x331ce9(0xae)](_0x331ce9(0xe7)+(_0x472d39||a114_0x56d75a[_0x331ce9(0xb2)](_0x331ce9(0xc2)))),console[_0x331ce9(0xae)](),console['log'](a114_0x56d75a[_0x331ce9(0xf1)]('\x20\x20Config\x20JSON')),console[_0x331ce9(0xae)](a114_0x56d75a[_0x331ce9(0xb2)]('\x20\x20─'[_0x331ce9(0xe9)](0x1e)));const _0x24f635=(_0x536d89,_0x5f4c04)=>{const _0x92a2ac=_0x331ce9;if(!_0x5f4c04){console[_0x92a2ac(0xae)]('\x20\x20'+_0x536d89[_0x92a2ac(0xdc)](0x11)+'\x20'+a114_0x56d75a[_0x92a2ac(0xb2)]('(no\x20file)'));return;}const _0x2541fc=inspectCliConfigJsonFile(_0x5f4c04);if(_0x2541fc[_0x92a2ac(0xaf)]==='ok')console['log']('\x20\x20'+_0x536d89[_0x92a2ac(0xdc)](0x11)+'\x20'+a114_0x56d75a[_0x92a2ac(0x124)](_0x92a2ac(0xd4)));else{if(_0x2541fc[_0x92a2ac(0xaf)]===_0x92a2ac(0x110))console[_0x92a2ac(0xae)]('\x20\x20'+_0x536d89[_0x92a2ac(0xdc)](0x11)+'\x20'+a114_0x56d75a[_0x92a2ac(0x111)](_0x92a2ac(0xd6)));else _0x2541fc[_0x92a2ac(0xaf)]===_0x92a2ac(0xe2)?console[_0x92a2ac(0xae)]('\x20\x20'+_0x536d89[_0x92a2ac(0xdc)](0x11)+'\x20'+a114_0x56d75a['gray'](_0x92a2ac(0x130))):(console[_0x92a2ac(0xae)]('\x20\x20'+_0x536d89[_0x92a2ac(0xdc)](0x11)+'\x20'+a114_0x56d75a[_0x92a2ac(0x11c)](_0x92a2ac(0x11e))),console[_0x92a2ac(0xae)]('\x20\x20'+''[_0x92a2ac(0xdc)](0x11)+'\x20'+a114_0x56d75a[_0x92a2ac(0x11c)](_0x2541fc[_0x92a2ac(0xc0)])));}};_0x24f635(_0x331ce9(0x139),_0x2f575f),_0x24f635('Project',_0x472d39);const _0x40ac48=loadRawConfigLayers(),_0x46f480=[{'label':'Project','value':_0x40ac48[_0x331ce9(0xf0)][_0x331ce9(0x115)],'present':Object[_0x331ce9(0x13c)][_0x331ce9(0xff)][_0x331ce9(0xb0)](_0x40ac48[_0x331ce9(0xf0)],_0x331ce9(0x115)),'repairCommand':CLI_BIN_NAME+_0x331ce9(0x125)},{'label':'Global','value':_0x40ac48[_0x331ce9(0x122)]['region'],'present':Object[_0x331ce9(0x13c)]['hasOwnProperty'][_0x331ce9(0xb0)](_0x40ac48[_0x331ce9(0x122)],_0x331ce9(0x115)),'repairCommand':CLI_BIN_NAME+_0x331ce9(0x135)}]['filter'](_0x305554=>_0x305554['present']&&isInvalidLovrabetRegion(_0x305554[_0x331ce9(0xf6)]));for(const [_0x2843b2,_0x44d6e4]of[[_0x331ce9(0x11f),_0x40ac48['projectConfig']],[_0x331ce9(0x139),_0x40ac48[_0x331ce9(0x122)]]]){const _0x3d1ed2=_0x44d6e4[_0x331ce9(0x123)]&&typeof _0x44d6e4[_0x331ce9(0x123)]===_0x331ce9(0xe3)?_0x44d6e4[_0x331ce9(0x123)]:{};for(const [_0x114da1,_0x95a1a1]of Object[_0x331ce9(0x10f)](_0x3d1ed2)){if(!_0x95a1a1||typeof _0x95a1a1!=='object'||!Object[_0x331ce9(0x13c)][_0x331ce9(0xff)][_0x331ce9(0xb0)](_0x95a1a1,_0x331ce9(0x115)))continue;isInvalidLovrabetRegion(_0x95a1a1[_0x331ce9(0x115)])&&_0x46f480[_0x331ce9(0x109)]({'label':_0x2843b2+_0x331ce9(0xec)+_0x114da1+'\x22','value':_0x95a1a1[_0x331ce9(0x115)],'present':!![],'repairCommand':'Set\x20apps.'+_0x114da1+'.region\x20to\x20cn\x20or\x20id\x20in\x20'+_0x2843b2['toLowerCase']()+_0x331ce9(0x10c)});}}if(_0x46f480[_0x331ce9(0xd8)]>0x0){console[_0x331ce9(0xae)](),console['log'](a114_0x56d75a[_0x331ce9(0xf1)](_0x331ce9(0x119))),console[_0x331ce9(0xae)](a114_0x56d75a[_0x331ce9(0xb2)](_0x331ce9(0xdb)['repeat'](0x1e)));for(const _0x1d89ea of _0x46f480){console[_0x331ce9(0xae)]('\x20\x20'+_0x1d89ea[_0x331ce9(0x13a)][_0x331ce9(0xdc)](0x11)+'\x20'+a114_0x56d75a[_0x331ce9(0x11c)](_0x331ce9(0xfa)+describeRegionValue(_0x1d89ea[_0x331ce9(0xf6)]))),console[_0x331ce9(0xae)]('\x20\x20'+('Repair\x20'+_0x1d89ea[_0x331ce9(0x13a)][_0x331ce9(0xc3)]()+':')[_0x331ce9(0xdc)](0x10)+'\x20'+_0x1d89ea[_0x331ce9(0xc5)]);}}const _0x5269eb=[Object[_0x331ce9(0x13c)][_0x331ce9(0xff)]['call'](_0x40ac48[_0x331ce9(0x122)],_0x331ce9(0x113))?'global':null,Object[_0x331ce9(0x13c)][_0x331ce9(0xff)][_0x331ce9(0xb0)](_0x40ac48[_0x331ce9(0xf0)],_0x331ce9(0x113))?_0x331ce9(0x128):null]['filter'](Boolean);_0x5269eb[_0x331ce9(0xd8)]>0x0&&(console[_0x331ce9(0xae)](_0x331ce9(0xda)+a114_0x56d75a[_0x331ce9(0x111)]('ignored\x20in\x20'+_0x5269eb[_0x331ce9(0x106)](_0x331ce9(0xb1))+'\x20config')),_0x5269eb[_0x331ce9(0xb9)]('project')&&console[_0x331ce9(0xae)](_0x331ce9(0xbf)+CLI_BIN_NAME+'\x20config\x20delete\x20inherit'),_0x5269eb['includes'](_0x331ce9(0xd2))&&console[_0x331ce9(0xae)]('\x20\x20Repair\x20global:\x20\x20\x20\x20'+CLI_BIN_NAME+_0x331ce9(0xe6)));const _0x2f12e0=isInvalidLovrabetRegion(_0xf358ba['regionConfiguredValue']??_0xf358ba['raw']?.[_0x331ce9(0x115)]);_0x1aacaf&&!_0x2f12e0&&(console[_0x331ce9(0xae)](),console[_0x331ce9(0xae)](a114_0x56d75a[_0x331ce9(0xf1)](_0x331ce9(0xc8))),console[_0x331ce9(0xae)](a114_0x56d75a[_0x331ce9(0xb2)](_0x331ce9(0xdb)[_0x331ce9(0xe9)](0x1e))),console[_0x331ce9(0xae)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a114_0x56d75a[_0x331ce9(0x11c)]('✗\x20Invalid')),console['log'](_0x331ce9(0x101)+_0x1aacaf[_0x331ce9(0xc0)]),Object['prototype']['hasOwnProperty'][_0x331ce9(0xb0)](_0x40ac48[_0x331ce9(0xf0)],_0x331ce9(0x132))&&console[_0x331ce9(0xae)](_0x331ce9(0xd1)+CLI_BIN_NAME+_0x331ce9(0x131)),Object[_0x331ce9(0x13c)][_0x331ce9(0xff)][_0x331ce9(0xb0)](_0x40ac48[_0x331ce9(0x122)],_0x331ce9(0x132))&&console['log']('\x20\x20Repair\x20global:\x20\x20\x20'+CLI_BIN_NAME+_0x331ce9(0x11a)));console[_0x331ce9(0xae)](),console[_0x331ce9(0xae)](a114_0x56d75a['bold']('\x20\x20Merged\x20Config')),console[_0x331ce9(0xae)](a114_0x56d75a[_0x331ce9(0xb2)]('\x20\x20─'[_0x331ce9(0xe9)](0x1e))),console[_0x331ce9(0xae)]('\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0xf358ba[_0x331ce9(0xce)]||a114_0x56d75a[_0x331ce9(0x11c)](_0x331ce9(0xb4))));const _0x3ed664=_0x2f12e0?a114_0x56d75a['red'](describeRegionValue(_0xf358ba['regionConfiguredValue']??_0xf358ba[_0x331ce9(0x127)]?.[_0x331ce9(0x115)])+_0x331ce9(0xf9)):(_0xf358ba[_0x331ce9(0x115)]??DEFAULT_LOVRABET_REGION)+'\x20('+(_0xf358ba[_0x331ce9(0xed)]??_0x331ce9(0xf8))+')';console[_0x331ce9(0xae)]('\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x3ed664),console['log'](_0x331ce9(0xcc)+_0xf358ba[_0x331ce9(0x134)]),console[_0x331ce9(0xae)](_0x331ce9(0xb8)+_0xf358ba[_0x331ce9(0xf3)]),console[_0x331ce9(0xae)](_0x331ce9(0xe0)+_0xf358ba['apiDir']),console[_0x331ce9(0xae)](_0x331ce9(0x114)+(_0xf358ba['defaultApp']||a114_0x56d75a[_0x331ce9(0xb2)](_0x331ce9(0x112)))),console['log']('\x20\x20currentApp:\x20\x20\x20\x20\x20\x20'+(_0xf358ba['currentApp']||a114_0x56d75a[_0x331ce9(0xb2)](_0x331ce9(0x112)))),console[_0x331ce9(0xae)]('\x20\x20explicitAppName:\x20'+(_0xf358ba[_0x331ce9(0xcd)]||a114_0x56d75a[_0x331ce9(0xb2)]('(none)'))),console[_0x331ce9(0xae)](_0x331ce9(0x108)+(_0xf358ba[_0x331ce9(0x137)]||a114_0x56d75a['gray'](_0x331ce9(0x12d)+DEFAULT_CONFIG_VALUES[_0x331ce9(0x137)]+')'))),console[_0x331ce9(0xae)]('\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20'+(_0xf358ba[_0x331ce9(0x12c)]??a114_0x56d75a[_0x331ce9(0xb2)]('(default)'))),console['log']('\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20'+_0xf358ba[_0x331ce9(0xc7)]),console['log'](_0x331ce9(0xdd)+_0xf358ba[_0x331ce9(0xf7)]),console[_0x331ce9(0xae)](_0x331ce9(0x12f)+(_0xf358ba[_0x331ce9(0xd0)]?a114_0x56d75a[_0x331ce9(0x124)](_0x331ce9(0xc4)+_0xf358ba[_0x331ce9(0xd0)][_0x331ce9(0xd8)]+')'):_0x2882a5?a114_0x56d75a[_0x331ce9(0x124)](_0x331ce9(0xbb)+_0x2882a5[_0x331ce9(0xd8)]+')'):a114_0x56d75a[_0x331ce9(0xb2)](_0x331ce9(0x112))));const _0x227e9f=Object[_0x331ce9(0xe8)](_0xf358ba[_0x331ce9(0x123)]);if(_0x227e9f['length']>0x0){console[_0x331ce9(0xae)](),console[_0x331ce9(0xae)](a114_0x56d75a['bold'](_0x331ce9(0x138))),console['log'](a114_0x56d75a['gray'](_0x331ce9(0xdb)[_0x331ce9(0xe9)](0x1e)));for(const _0xb80193 of _0x227e9f){const _0x3fd2b5=_0xf358ba[_0x331ce9(0x123)][_0xb80193],_0x49b368=_0xb80193===_0xf358ba[_0x331ce9(0xba)],_0x5478f9=_0xb80193===_0xf358ba['currentApp'],_0x1ad614=_0x5478f9?a114_0x56d75a[_0x331ce9(0x124)](_0x331ce9(0xb3)):'',_0x473814=_0x49b368?'\x20(default)':'';console[_0x331ce9(0xae)]('\x20\x20'+_0xb80193+_0x473814+_0x1ad614),console[_0x331ce9(0xae)](_0x331ce9(0x103)+_0x3fd2b5[_0x331ce9(0xe4)]);const _0x563219=_0x40ac48[_0x331ce9(0xf0)][_0x331ce9(0x123)]&&typeof _0x40ac48['projectConfig'][_0x331ce9(0x123)]===_0x331ce9(0xe3)?_0x40ac48[_0x331ce9(0xf0)]['apps']:{},_0x4ef244=Object[_0x331ce9(0x13c)][_0x331ce9(0xff)][_0x331ce9(0xb0)](_0x563219,_0xb80193),_0x4522f3=isInvalidLovrabetRegion(_0x3fd2b5[_0x331ce9(0x115)])?{'region':_0xf358ba[_0x331ce9(0x115)]??DEFAULT_LOVRABET_REGION}:resolveEffectiveRegion({'appRegion':_0x3fd2b5['region'],'projectRegion':_0x4ef244?_0x40ac48[_0x331ce9(0xf0)][_0x331ce9(0x115)]:undefined,'globalRegion':_0x40ac48[_0x331ce9(0x122)][_0x331ce9(0x115)],'mergedRegion':_0xf358ba[_0x331ce9(0x127)]['region'],'appName':_0xb80193}),_0x5de500=buildAppDoctorFields(_0x3fd2b5,{'region':_0x4522f3[_0x331ce9(0x115)],'env':_0xf358ba['env'],'apiDir':_0xf358ba[_0x331ce9(0x127)][_0x331ce9(0x11b)]||DEFAULT_CONFIG_VALUES[_0x331ce9(0x11b)],'cookie':_0xf358ba[_0x331ce9(0xd0)]||_0x2882a5||undefined,'accessKey':_0xf358ba[_0x331ce9(0x10d)]});console['log'](_0x331ce9(0xe5)+_0x5de500[_0x331ce9(0x115)][_0x331ce9(0xf6)]+'\x20\x20'+a114_0x56d75a[_0x331ce9(0xb2)]('('+_0x5de500['region']['source']+')')),console[_0x331ce9(0xae)](_0x331ce9(0x12e)+_0x5de500[_0x331ce9(0x134)]['value']+'\x20\x20'+a114_0x56d75a[_0x331ce9(0xb2)]('('+_0x5de500[_0x331ce9(0x134)][_0x331ce9(0x12b)]+')')),console[_0x331ce9(0xae)](_0x331ce9(0x116)+_0x5de500[_0x331ce9(0x11b)][_0x331ce9(0xf6)]+'\x20\x20'+a114_0x56d75a[_0x331ce9(0xb2)]('('+_0x5de500['apiDir'][_0x331ce9(0x12b)]+')'));const _0x1a515c=_0x5de500[_0x331ce9(0xd0)][_0x331ce9(0xf6)]?a114_0x56d75a[_0x331ce9(0x124)](_0x331ce9(0xc4)+_0x5de500[_0x331ce9(0xd0)][_0x331ce9(0xf6)][_0x331ce9(0xd8)]+')'):a114_0x56d75a[_0x331ce9(0xb2)](_0x331ce9(0x112));console[_0x331ce9(0xae)]('\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20'+_0x1a515c+'\x20\x20'+a114_0x56d75a[_0x331ce9(0xb2)]('('+_0x5de500[_0x331ce9(0xd0)][_0x331ce9(0x12b)]+')'));const _0x5bc5a1=_0x5de500['accessKey'][_0x331ce9(0xf6)]?a114_0x56d75a[_0x331ce9(0x124)](_0x331ce9(0xc4)+_0x5de500[_0x331ce9(0x10d)][_0x331ce9(0xf6)][_0x331ce9(0xd8)]+')'):a114_0x56d75a[_0x331ce9(0xb2)](_0x331ce9(0x112));console['log'](_0x331ce9(0xbd)+_0x5bc5a1+'\x20\x20'+a114_0x56d75a['gray']('('+_0x5de500['accessKey'][_0x331ce9(0x12b)]+')'));}}console[_0x331ce9(0xae)](),console['log'](a114_0x56d75a[_0x331ce9(0xf1)](_0x331ce9(0x121))),console[_0x331ce9(0xae)](a114_0x56d75a[_0x331ce9(0xb2)](_0x331ce9(0xdb)[_0x331ce9(0xe9)](0x1e)));_0x1aacaf?console['log'](_0x331ce9(0xd5)+a114_0x56d75a['red'](_0x331ce9(0xeb))):(console[_0x331ce9(0xae)](_0x331ce9(0xb5)+getActiveRegion()),console[_0x331ce9(0xae)](_0x331ce9(0x118)+getApiDomain()),console[_0x331ce9(0xae)](_0x331ce9(0xb7)+getUserDomain()),console[_0x331ce9(0xae)]('\x20\x20runtimeDomain:\x20\x20\x20'+getRuntimeDomain()),console[_0x331ce9(0xae)](_0x331ce9(0xdf)+getSkillDomain()),console[_0x331ce9(0xae)](_0x331ce9(0x100)+getKbDomain()),console[_0x331ce9(0xae)](_0x331ce9(0xb6)+(getKbServiceDomain()??_0x331ce9(0x10a))),console['log'](_0x331ce9(0xfd)+getAppDomain()));console['log'](),console[_0x331ce9(0xae)](a114_0x56d75a[_0x331ce9(0xf1)](_0x331ce9(0x107))),console[_0x331ce9(0xae)](a114_0x56d75a[_0x331ce9(0xb2)](_0x331ce9(0xdb)[_0x331ce9(0xe9)](0x1e)));if(_0x1aacaf)console[_0x331ce9(0xae)](_0x331ce9(0xd5)+a114_0x56d75a[_0x331ce9(0x111)]('Not\x20checked\x20until\x20routing\x20configuration\x20is\x20repaired'));else{if(_0x2882a5){const _0x85c9a4=await getIsSessionValid();console[_0x331ce9(0xae)](_0x331ce9(0xd5)+(_0x85c9a4?a114_0x56d75a[_0x331ce9(0x124)]('✓\x20Valid'):a114_0x56d75a[_0x331ce9(0x11c)](_0x331ce9(0xd7))));}else console[_0x331ce9(0xae)](_0x331ce9(0xd5)+a114_0x56d75a[_0x331ce9(0x11c)](_0x331ce9(0xf2)));}return console[_0x331ce9(0xae)](),{'ok':!![]};}export const doctorDefinition={'service':a114_0x38e42c(0x10e),'command':'check','description':a114_0x38e42c(0xbe),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a115_0x1cc7(_0x451689,_0x59a0d2){_0x451689=_0x451689-0x70;const _0x128458=a115_0x1284();let _0x1cc7b0=_0x128458[_0x451689];return _0x1cc7b0;}const a115_0x1be89b=a115_0x1cc7;(function(_0x3b4042,_0x5e1c39){const _0x40bd2e=a115_0x1cc7,_0x4d06df=_0x3b4042();while(!![]){try{const _0x5942e5=-parseInt(_0x40bd2e(0x8e))/0x1+parseInt(_0x40bd2e(0x80))/0x2+parseInt(_0x40bd2e(0x76))/0x3+parseInt(_0x40bd2e(0x8f))/0x4*(-parseInt(_0x40bd2e(0x87))/0x5)+parseInt(_0x40bd2e(0x7a))/0x6*(parseInt(_0x40bd2e(0x89))/0x7)+parseInt(_0x40bd2e(0x8b))/0x8+-parseInt(_0x40bd2e(0x72))/0x9;if(_0x5942e5===_0x5e1c39)break;else _0x4d06df['push'](_0x4d06df['shift']());}catch(_0x4496e1){_0x4d06df['push'](_0x4d06df['shift']());}}}(a115_0x1284,0xdaa85));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':a115_0x1be89b(0x90),'type':a115_0x1be89b(0x85),'required':!![],'description':a115_0x1be89b(0x75)},FILEPATH_FLAG={'name':a115_0x1be89b(0x8d),'type':a115_0x1be89b(0x85),'required':!![],'description':a115_0x1be89b(0x86)},DOWNLOAD_FLAG={'name':'download','type':a115_0x1be89b(0x71),'description':'Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL'},LONG_TERM_FLAG={'name':a115_0x1be89b(0x74),'type':a115_0x1be89b(0x71),'description':'Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML'};function requireFilePath(_0x2e4d1b){const _0x789da8=a115_0x1be89b,_0x1ce2cf=_0x2e4d1b[_0x789da8(0x79)]();if(!_0x1ce2cf)throw CliErrors['validation'](_0x789da8(0x88));return _0x1ce2cf;}function a115_0x1284(){const _0x42e668=['trim','6ALMcns','Preview:\x20upload\x20','Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20or\x20immediate\x20access','path','Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','114554VWtyWi','appCode','/smartapi/common/uploadFile','File','POST','string','Development\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data','149090moiAAi','filePath\x20is\x20required.','4338901hEpFFG','\x20to\x20development\x20app\x20','11306560NZXqes','bool','filepath','172634Mkdlqe','12hgxFfV','file','query-url','boolean','12679209XdApqF','read','long-term','Path\x20to\x20the\x20local\x20file\x20to\x20upload','1428210HvlGvC','filePath','str'];a115_0x1284=function(){return _0x42e668;};return a115_0x1284();}const fileUpload={'service':a115_0x1be89b(0x90),'command':'upload','description':a115_0x1be89b(0x7c),'risk':a115_0x1be89b(0x73),'flags':[FILE_FLAG],async 'dryRun'(_0x5e24e1){const _0x19d3e2=a115_0x1be89b,_0x547973=requireDevelopmentUploadFile(_0x5e24e1[_0x19d3e2(0x78)](_0x19d3e2(0x90)),_0x19d3e2(0x83));return{'method':_0x19d3e2(0x84),'url':_0x19d3e2(0x82),'body':{'appCode':_0x5e24e1[_0x19d3e2(0x81)],'multipart':{'file':_0x547973}},'description':_0x19d3e2(0x7b)+_0x547973[_0x19d3e2(0x7e)]+_0x19d3e2(0x8a)+_0x5e24e1[_0x19d3e2(0x81)]};},async 'execute'(_0x2a599e){const _0x2b6e84=a115_0x1be89b,_0x206874=requireDevelopmentUploadFile(_0x2a599e[_0x2b6e84(0x78)](_0x2b6e84(0x90)),'File'),_0x80de5=await uploadDevelopmentFile(_0x2a599e['appCode'],_0x206874['path']);return{'ok':!![],'data':_0x80de5,'message':_0x80de5[_0x2b6e84(0x77)]?'Uploaded\x20file:\x20'+_0x80de5[_0x2b6e84(0x77)]+'.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.':_0x2b6e84(0x7f)};}},fileQueryUrl={'service':a115_0x1be89b(0x90),'command':a115_0x1be89b(0x70),'description':a115_0x1be89b(0x7d),'risk':'read','flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0x292c19){const _0x1d87f2=a115_0x1be89b,_0xcbec0=requireFilePath(_0x292c19[_0x1d87f2(0x78)]('filepath')),_0x37311b=await queryDevelopmentFileUrl(_0xcbec0,{'download':_0x292c19['bool']('download'),'longTerm':_0x292c19[_0x1d87f2(0x8c)]('long-term')});return{'ok':!![],'data':_0x37311b};}};export const fileDefinitions=[fileUpload,fileQueryUrl];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a116_0x45255c=a116_0x19d3;(function(_0x155615,_0x400a5d){const _0x306148=a116_0x19d3,_0x45ab5e=_0x155615();while(!![]){try{const _0x205aab=-parseInt(_0x306148(0x123))/0x1*(-parseInt(_0x306148(0x119))/0x2)+parseInt(_0x306148(0x120))/0x3+parseInt(_0x306148(0x116))/0x4+-parseInt(_0x306148(0x117))/0x5*(parseInt(_0x306148(0x114))/0x6)+parseInt(_0x306148(0x11e))/0x7+parseInt(_0x306148(0x110))/0x8+-parseInt(_0x306148(0x111))/0x9*(parseInt(_0x306148(0x121))/0xa);if(_0x205aab===_0x400a5d)break;else _0x45ab5e['push'](_0x45ab5e['shift']());}catch(_0x278fe4){_0x45ab5e['push'](_0x45ab5e['shift']());}}}(a116_0x2e6a,0x29623));function a116_0x2e6a(){const _0x233e66=['flow','992946VNFGjh','60SBCfyQ','POST','32575EMJojy','1647056gAJvCG','1399509xxbFly','create','appCode','54nPdJLv','Create\x20a\x20draft\x20flow\x20definition\x20from\x20a\x20local\x20FlowConfig\x20file','1019512UiNeYT','99985jIahoU','write','16RhpIuQ','\x20(id=','.\x20Flow\x20URL:\x20','Created\x20flow\x20','datasetCode','1611008tnIIWj'];a116_0x2e6a=function(){return _0x233e66;};return a116_0x2e6a();}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{asDryRunResult}from'../../commands/common/dry-run.js';import{createFlowDefinition}from'../../core/api-client.js';function a116_0x19d3(_0x5a9324,_0x36c514){_0x5a9324=_0x5a9324-0x110;const _0x2e6a19=a116_0x2e6a();let _0x19d3e6=_0x2e6a19[_0x5a9324];return _0x19d3e6;}import{FLOW_FILE_FLAG,FLOW_PATHS,buildFlowUrl,confirmFlowWrite,flowSelector,prepareFlowWrite,readFlowFilePath}from'../../commands/flow/shared.js';export const flowCreate={'service':a116_0x45255c(0x11f),'command':a116_0x45255c(0x112),'description':a116_0x45255c(0x115),'risk':a116_0x45255c(0x118),'flags':[FLOW_FILE_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x4c58fc){readFlowFilePath(_0x4c58fc);},async 'dryRun'(_0x15c886){const _0x2b7a78=a116_0x45255c,{request:_0x38fe92,warnings:_0x559f02}=await prepareFlowWrite(readFlowFilePath(_0x15c886),_0x15c886[_0x2b7a78(0x113)]);return asDryRunResult({'operation':_0x2b7a78(0x112),'selector':{'appCode':_0x15c886[_0x2b7a78(0x113)],'flowName':_0x38fe92['flowName'],..._0x38fe92[_0x2b7a78(0x11d)]?{'datasetCode':_0x38fe92['datasetCode']}:{}},'before':null,'after':_0x38fe92,'request':_0x38fe92,'dryRun':!![],'backend':{'method':_0x2b7a78(0x122),'path':FLOW_PATHS[_0x2b7a78(0x112)]},'warnings':_0x559f02},{'method':_0x2b7a78(0x122),'url':FLOW_PATHS['create']});},async 'execute'(_0x1b6b0d){const _0x13852f=a116_0x45255c,{request:_0x55244c,warnings:_0x1d6fd3}=await prepareFlowWrite(readFlowFilePath(_0x1b6b0d),_0x1b6b0d[_0x13852f(0x113)]);await confirmFlowWrite(_0x1b6b0d,_0x13852f(0x112),_0x55244c);const _0x5c4100=await createFlowDefinition(_0x55244c),_0x47937e=buildFlowUrl(_0x1b6b0d['appCode'],_0x5c4100['id']),_0x3e959b=''+(_0x5c4100['flowName']||_0x55244c['flowName'])+(_0x5c4100['id']?_0x13852f(0x11a)+_0x5c4100['id']+')':'');return{'ok':!![],'data':{'operation':_0x13852f(0x112),'selector':flowSelector(_0x1b6b0d[_0x13852f(0x113)],_0x5c4100['id'],_0x5c4100),'before':null,'after':_0x5c4100,'flowUrl':_0x47937e,'dryRun':![],'backend':{'method':_0x13852f(0x122),'path':FLOW_PATHS[_0x13852f(0x112)]},'warnings':_0x1d6fd3},'message':_0x13852f(0x11c)+_0x3e959b+_0x13852f(0x11b)+_0x47937e};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a117_0x3722(){const _0x151c6d=['ENOENT','855368ZBmYay','\x20to\x20','Write\x20a\x20portable\x20normalized\x20FlowConfig\x20JSON\x20file','7tBFwtk','string','853155efthLd','flowName','path','FlowConfig\x20output\x20already\x20exists:\x20','10frGXWZ','87732DRqEmo','4kUxBwv','Wrote\x20FlowConfig\x20for\x20','config','788145dWJsKm','warnings','flowCode','force','5919441EqPRrt','validation','detail','1059450yVnAol','flow','read','trim','Pass\x20--force\x20to\x20overwrite\x20it.','bool','appCode','str','Flow\x20','8FmpHvX','code','boolean','1081518XyqobB'];a117_0x3722=function(){return _0x151c6d;};return a117_0x3722();}const a117_0x47904a=a117_0x12b1;(function(_0x34750f,_0x5a927d){const _0xab2d64=a117_0x12b1,_0x2f564e=_0x34750f();while(!![]){try{const _0x1ba2a1=parseInt(_0xab2d64(0x1fe))/0x1*(parseInt(_0xab2d64(0x1ff))/0x2)+-parseInt(_0xab2d64(0x209))/0x3+-parseInt(_0xab2d64(0x1f4))/0x4+-parseInt(_0xab2d64(0x202))/0x5+parseInt(_0xab2d64(0x1f2))/0x6*(parseInt(_0xab2d64(0x1f7))/0x7)+-parseInt(_0xab2d64(0x1ef))/0x8*(-parseInt(_0xab2d64(0x1f9))/0x9)+parseInt(_0xab2d64(0x1fd))/0xa*(parseInt(_0xab2d64(0x206))/0xb);if(_0x1ba2a1===_0x5a927d)break;else _0x2f564e['push'](_0x2f564e['shift']());}catch(_0x2ebbcf){_0x2f564e['push'](_0x2f564e['shift']());}}}(a117_0x3722,0x40756));import{mkdir,stat}from'node:fs/promises';import{dirname,resolve}from'node:path';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{getFlowDefinition}from'../../core/api-client.js';function a117_0x12b1(_0x56d255,_0x1ee314){_0x56d255=_0x56d255-0x1ee;const _0x372295=a117_0x3722();let _0x12b1e4=_0x372295[_0x56d255];return _0x12b1e4;}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':a117_0x47904a(0x20a),'command':a117_0x47904a(0x208),'description':'Get\x20one\x20design-time\x20flow\x20definition','risk':a117_0x47904a(0x20b),'flags':[FLOW_ID_FLAG,{'name':'output','type':a117_0x47904a(0x1f8),'description':a117_0x47904a(0x1f6)},{'name':'force','type':a117_0x47904a(0x1f1),'description':'Overwrite\x20an\x20existing\x20output\x20file'},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x526dea){readFlowId(_0x526dea);},async 'execute'(_0x1f5913){const _0xd45a1f=a117_0x47904a,_0x42d46f=readFlowId(_0x1f5913),_0x14c871=_0x1f5913[_0xd45a1f(0x210)]('output')[_0xd45a1f(0x20c)](),_0x3ed94b=_0x14c871?resolve(_0x14c871):undefined;if(_0x3ed94b&&!_0x1f5913[_0xd45a1f(0x20e)](_0xd45a1f(0x205))&&await fileExists(_0x3ed94b))throw CliErrors['validation'](_0xd45a1f(0x1fc)+_0x3ed94b,_0xd45a1f(0x20d));const _0x316caf=await getFlowDefinition(_0x1f5913[_0xd45a1f(0x20f)],_0x42d46f);let _0x5b0aee;if(_0x3ed94b){const _0x38f294=flowDefinitionToConfig(_0x316caf);await mkdir(dirname(_0x3ed94b),{'recursive':!![]});try{await writeNormalizedFlowConfig(_0x3ed94b,_0x38f294[_0xd45a1f(0x201)],{'overwrite':_0x1f5913[_0xd45a1f(0x20e)](_0xd45a1f(0x205))});}catch(_0x14e0b1){if(isAlreadyExistsError(_0x14e0b1))throw CliErrors[_0xd45a1f(0x207)]('FlowConfig\x20output\x20already\x20exists:\x20'+_0x3ed94b,_0xd45a1f(0x20d));throw _0x14e0b1;}_0x5b0aee={'path':_0x3ed94b,'warnings':_0x38f294[_0xd45a1f(0x203)]};}return{'ok':!![],'data':{'flow':_0x316caf,..._0x5b0aee?{'output':_0x5b0aee}:{}},'message':_0x5b0aee?_0xd45a1f(0x200)+(_0x316caf[_0xd45a1f(0x1fa)]||_0x316caf['flowCode']||_0x42d46f)+_0xd45a1f(0x1f5)+_0x5b0aee[_0xd45a1f(0x1fb)]:_0xd45a1f(0x1ee)+(_0x316caf[_0xd45a1f(0x1fa)]||_0x316caf[_0xd45a1f(0x204)]||_0x42d46f)};}};async function fileExists(_0x1c479c){try{return await stat(_0x1c479c),!![];}catch(_0x56d5d3){return!isNotFoundError(_0x56d5d3);}}function isNotFoundError(_0x4deb32){const _0x478ed9=a117_0x47904a;return _0x4deb32?.['code']===_0x478ed9(0x1f3);}function isAlreadyExistsError(_0x29ec0f){const _0x319043=a117_0x47904a;return _0x29ec0f?.[_0x319043(0x1f0)]==='EEXIST';}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x24632a,_0x444291){const _0x421cb4=a118_0x3796,_0x345f05=_0x24632a();while(!![]){try{const _0x44d613=parseInt(_0x421cb4(0x71))/0x1*(parseInt(_0x421cb4(0x74))/0x2)+parseInt(_0x421cb4(0x72))/0x3+-parseInt(_0x421cb4(0x7a))/0x4*(-parseInt(_0x421cb4(0x77))/0x5)+parseInt(_0x421cb4(0x73))/0x6*(parseInt(_0x421cb4(0x75))/0x7)+-parseInt(_0x421cb4(0x70))/0x8+-parseInt(_0x421cb4(0x78))/0x9*(-parseInt(_0x421cb4(0x76))/0xa)+-parseInt(_0x421cb4(0x79))/0xb;if(_0x44d613===_0x444291)break;else _0x345f05['push'](_0x345f05['shift']());}catch(_0x3933f3){_0x345f05['push'](_0x345f05['shift']());}}}(a118_0x5d3e,0x952eb));import{flowValidate}from'../../commands/flow/validate.js';import{flowList}from'../../commands/flow/list.js';import{flowDetail}from'../../commands/flow/detail.js';import{flowCreate}from'../../commands/flow/create.js';import{flowUpdate}from'../../commands/flow/update.js';import{flowPublish}from'../../commands/flow/publish.js';import{flowRuntimeRoleList}from'../../commands/flow/runtime-role-list.js';function a118_0x5d3e(){const _0xf4b943=['6307bkPsZl','27530nohJtz','10SXdsSV','81ImJcyw','28366734evJzSr','2374764JtZoXM','311528zwbIXF','3idcfCQ','2387358KXkpna','7002bqkDac','112916CDebqH'];a118_0x5d3e=function(){return _0xf4b943;};return a118_0x5d3e();}import{flowRuntimeUserSearch}from'../../commands/flow/runtime-user-search.js';import{flowRuntimeRoleUserList}from'../../commands/flow/runtime-role-user-list.js';function a118_0x3796(_0xa0eabc,_0xbea138){_0xa0eabc=_0xa0eabc-0x70;const _0x5d3e64=a118_0x5d3e();let _0x3796e3=_0x5d3e64[_0xa0eabc];return _0x3796e3;}export const flowDefinitions=[flowValidate,flowList,flowDetail,flowCreate,flowUpdate,flowPublish,flowRuntimeRoleList,flowRuntimeUserSearch,flowRuntimeRoleUserList];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a119_0x21c43d=a119_0xb824;function a119_0xb824(_0x5270c1,_0x4be58c){_0x5270c1=_0x5270c1-0x1ee;const _0x3180bd=a119_0x3180();let _0xb824f=_0x3180bd[_0x5270c1];return _0xb824f;}(function(_0x51dd00,_0x5dc272){const _0xc31233=a119_0xb824,_0x510210=_0x51dd00();while(!![]){try{const _0x17c769=-parseInt(_0xc31233(0x1f0))/0x1*(parseInt(_0xc31233(0x212))/0x2)+-parseInt(_0xc31233(0x203))/0x3*(-parseInt(_0xc31233(0x1ee))/0x4)+-parseInt(_0xc31233(0x214))/0x5*(parseInt(_0xc31233(0x208))/0x6)+-parseInt(_0xc31233(0x205))/0x7*(parseInt(_0xc31233(0x20a))/0x8)+parseInt(_0xc31233(0x1fd))/0x9+parseInt(_0xc31233(0x20d))/0xa*(-parseInt(_0xc31233(0x200))/0xb)+parseInt(_0xc31233(0x1f2))/0xc;if(_0x17c769===_0x5dc272)break;else _0x510210['push'](_0x510210['shift']());}catch(_0xb95ab1){_0x510210['push'](_0x510210['shift']());}}}(a119_0x3180,0xb5292));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{listFlowDefinitions}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a119_0x3180(){const _0x3454d6=['610eJiLje','1476204ECRohC','validation','1986PRZgAw','flow-name','23128488OXCTYB','\x20flow\x20definition(s)','page','isSafeInteger','page-size','Filter\x20by\x20flow\x20type','Page\x20number\x20(1-based)','num','read','appCode','flow','2782683xJIyOp','flow-status','Filter\x20by\x20flow\x20name','2441087MGDwvB','string','list','9UZKJYU','Filter\x20by\x20exact\x20server-generated\x20flow\x20code','7vNClEH','flow-code','Filter\x20by\x20dataset\x20code','1932NMqELZ','length','3853256oBAbWY','Found\x20','flow-type','50qDVxEu','str','trim','published','dataset-code','978PAPrMF','List\x20design-time\x20flow\x20definitions\x20for\x20the\x20current\x20app'];a119_0x3180=function(){return _0x3454d6;};return a119_0x3180();}const FLOW_STATUSES=['draft',a119_0x21c43d(0x210)];export const flowList={'service':a119_0x21c43d(0x1fc),'command':a119_0x21c43d(0x202),'description':a119_0x21c43d(0x213),'risk':a119_0x21c43d(0x1fa),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a119_0x21c43d(0x206),'type':'string','description':a119_0x21c43d(0x204)},{'name':a119_0x21c43d(0x1f1),'type':a119_0x21c43d(0x201),'description':a119_0x21c43d(0x1ff)},{'name':a119_0x21c43d(0x1fe),'type':a119_0x21c43d(0x201),'description':'Filter\x20by\x20flow\x20status','enum':FLOW_STATUSES},{'name':a119_0x21c43d(0x211),'type':'string','description':a119_0x21c43d(0x207)},{'name':a119_0x21c43d(0x20c),'type':a119_0x21c43d(0x201),'description':a119_0x21c43d(0x1f7)},{'name':a119_0x21c43d(0x1f4),'type':'number','description':a119_0x21c43d(0x1f8),'default':0x1},{'name':a119_0x21c43d(0x1f6),'type':'number','description':'Page\x20size','default':0x14}],async 'validate'(_0x5a7de6){const _0x3d6f6f=a119_0x21c43d,_0x34d9d9=_0x5a7de6[_0x3d6f6f(0x1f9)]('page',0x1),_0x3e1f92=_0x5a7de6[_0x3d6f6f(0x1f9)]('page-size',0x14);if(!Number[_0x3d6f6f(0x1f5)](_0x34d9d9)||_0x34d9d9<0x1)throw CliErrors[_0x3d6f6f(0x1ef)]('--page\x20must\x20be\x20a\x20positive\x20integer.');if(!Number[_0x3d6f6f(0x1f5)](_0x3e1f92)||_0x3e1f92<0x1)throw CliErrors[_0x3d6f6f(0x1ef)]('--page-size\x20must\x20be\x20a\x20positive\x20integer.');},async 'execute'(_0x38e707){const _0x5b55c0=a119_0x21c43d,{items:_0x86c3e3,paging:_0x326892}=await listFlowDefinitions(_0x38e707[_0x5b55c0(0x1fb)],{'flowCode':optionalString(_0x38e707[_0x5b55c0(0x20e)]('flow-code')),'flowName':optionalString(_0x38e707[_0x5b55c0(0x20e)](_0x5b55c0(0x1f1))),'flowStatus':optionalString(_0x38e707['str'](_0x5b55c0(0x1fe))),'datasetCode':optionalString(_0x38e707[_0x5b55c0(0x20e)](_0x5b55c0(0x211))),'flowType':optionalString(_0x38e707['str'](_0x5b55c0(0x20c))),'pageNum':_0x38e707['num'](_0x5b55c0(0x1f4),0x1),'pageSize':_0x38e707[_0x5b55c0(0x1f9)](_0x5b55c0(0x1f6),0x14)});return{'ok':!![],'data':{'appCode':_0x38e707[_0x5b55c0(0x1fb)],'flows':_0x86c3e3,'paging':_0x326892},'message':_0x5b55c0(0x20b)+_0x86c3e3[_0x5b55c0(0x209)]+_0x5b55c0(0x1f3)};}};function optionalString(_0x3ee4a3){const _0x10d0f9=a119_0x21c43d,_0x3586e8=_0x3ee4a3[_0x10d0f9(0x20f)]();return _0x3586e8||undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a120_0x36b9ee=a120_0x1e35;function a120_0xb256(){const _0x207588=['flow','2264346NSavUZ','317044zOIQXU','write','.\x20Flow\x20URL:\x20','10lIMJqs','appCode','flowCode','952078tKhXWs','8IDdxzK','8714041gfXRJA','63jNYCgQ','737034UOiWGo','published','publish','725270jAonaJ','1224156ftsCwG','POST'];a120_0xb256=function(){return _0x207588;};return a120_0xb256();}(function(_0x2ea5a9,_0x29c370){const _0x19e66c=a120_0x1e35,_0xc8e517=_0x2ea5a9();while(!![]){try{const _0x2c011f=-parseInt(_0x19e66c(0xba))/0x1+-parseInt(_0x19e66c(0xc8))/0x2+parseInt(_0x19e66c(0xc1))/0x3+parseInt(_0x19e66c(0xc2))/0x4+-parseInt(_0x19e66c(0xc5))/0x5*(parseInt(_0x19e66c(0xbe))/0x6)+parseInt(_0x19e66c(0xb8))/0x7*(parseInt(_0x19e66c(0xc9))/0x8)+-parseInt(_0x19e66c(0xb9))/0x9*(-parseInt(_0x19e66c(0xbd))/0xa);if(_0x2c011f===_0x29c370)break;else _0xc8e517['push'](_0xc8e517['shift']());}catch(_0x1f1cd7){_0xc8e517['push'](_0xc8e517['shift']());}}}(a120_0xb256,0xebb5e));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{publishFlowDefinition}from'../../core/api-client.js';function a120_0x1e35(_0x2ad22b,_0x883563){_0x2ad22b=_0x2ad22b-0xb8;const _0xb256f2=a120_0xb256();let _0x1e356c=_0xb256f2[_0x2ad22b];return _0x1e356c;}import{FLOW_ID_FLAG,FLOW_PATHS,buildFlowUrl,buildFlowIdDryRun,flowSelector,readFlowId}from'../../commands/flow/shared.js';export const flowPublish={'service':a120_0x36b9ee(0xc0),'command':a120_0x36b9ee(0xbc),'description':'Publish\x20the\x20current\x20flow\x20definition\x20draft','risk':a120_0x36b9ee(0xc3),'flags':[FLOW_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x2a054f){readFlowId(_0x2a054f);},async 'dryRun'(_0x327646){const _0x48a6e7=a120_0x36b9ee,_0xd1d57c=readFlowId(_0x327646);return buildFlowIdDryRun('publish',FLOW_PATHS[_0x48a6e7(0xbc)],_0x327646['appCode'],_0xd1d57c,{'id':_0xd1d57c,'flowStatus':_0x48a6e7(0xbb)});},async 'execute'(_0x11e5eb){const _0x51f874=a120_0x36b9ee,_0x156c21=readFlowId(_0x11e5eb),_0x546c2c=await publishFlowDefinition(_0x11e5eb[_0x51f874(0xc6)],_0x156c21),_0x324629=buildFlowUrl(_0x11e5eb[_0x51f874(0xc6)],_0x156c21);return{'ok':!![],'data':{'operation':_0x51f874(0xbc),'selector':flowSelector(_0x11e5eb[_0x51f874(0xc6)],_0x156c21,_0x546c2c),'before':null,'after':_0x546c2c,'flowUrl':_0x324629,'dryRun':![],'backend':{'method':_0x51f874(0xbf),'path':FLOW_PATHS[_0x51f874(0xbc)]},'warnings':[]},'message':'Published\x20flow\x20'+(_0x546c2c['flowName']||_0x546c2c[_0x51f874(0xc7)]||_0x156c21)+_0x51f874(0xc4)+_0x324629};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a121_0x3713e8=a121_0x1e3e;(function(_0x3987e3,_0x3678a0){const _0x406aff=a121_0x1e3e,_0x9ba8e6=_0x3987e3();while(!![]){try{const _0x4c3fb4=-parseInt(_0x406aff(0x108))/0x1+-parseInt(_0x406aff(0xf7))/0x2+-parseInt(_0x406aff(0x10d))/0x3*(-parseInt(_0x406aff(0xfc))/0x4)+-parseInt(_0x406aff(0x102))/0x5*(parseInt(_0x406aff(0x107))/0x6)+parseInt(_0x406aff(0xfb))/0x7*(parseInt(_0x406aff(0x11e))/0x8)+-parseInt(_0x406aff(0x11a))/0x9*(-parseInt(_0x406aff(0x11f))/0xa)+parseInt(_0x406aff(0x10c))/0xb*(parseInt(_0x406aff(0x119))/0xc);if(_0x4c3fb4===_0x3678a0)break;else _0x9ba8e6['push'](_0x9ba8e6['shift']());}catch(_0x36b1f0){_0x9ba8e6['push'](_0x9ba8e6['shift']());}}}(a121_0x2bc1,0x968c8));import{CliErrors}from'../../errors.js';export const FLOW_RUNTIME_PAGE_FLAG={'name':a121_0x3713e8(0x10e),'type':'number','description':'Page\x20index\x20(1-based)','default':0x1};export const FLOW_RUNTIME_PAGE_SIZE_FLAG={'name':a121_0x3713e8(0x10b),'type':a121_0x3713e8(0xf6),'description':'Page\x20size\x20(1-100)','default':0x14};export const FLOW_RUNTIME_ROLE_REF_FLAG={'name':a121_0x3713e8(0x11c),'type':a121_0x3713e8(0x10f),'required':!![],'description':a121_0x3713e8(0x103)};export function readRuntimePagination(_0x2431ce){const _0x4c004c=a121_0x3713e8,_0x509ecd=_0x2431ce['num'](_0x4c004c(0x10e),0x1),_0x23d8e0=_0x2431ce['num'](_0x4c004c(0x10b),0x14);if(!Number[_0x4c004c(0xfe)](_0x509ecd)||_0x509ecd<0x1)throw CliErrors['validation'](_0x4c004c(0x10a));if(!Number[_0x4c004c(0xfe)](_0x23d8e0)||_0x23d8e0<0x1||_0x23d8e0>0x64)throw CliErrors[_0x4c004c(0x115)](_0x4c004c(0x118));return{'page':_0x509ecd,'pageSize':_0x23d8e0};}function a121_0x1e3e(_0x1b1327,_0x21bdf6){_0x1b1327=_0x1b1327-0xf6;const _0x2bc1b3=a121_0x2bc1();let _0x1e3edf=_0x2bc1b3[_0x1b1327];return _0x1e3edf;}export function paginateRuntimeItems(_0x41bace,_0x2ae3c1,_0x2239ad){const _0x5601bc=a121_0x3713e8,_0x79052b=(_0x2ae3c1-0x1)*_0x2239ad;return{'items':_0x41bace[_0x5601bc(0xfa)](_0x79052b,_0x79052b+_0x2239ad),'paging':{'currentPage':_0x2ae3c1,'pageSize':_0x2239ad,'totalCount':_0x41bace[_0x5601bc(0x101)]}};}export function projectRuntimeRole(_0x4691fa){const _0x42be11=a121_0x3713e8;return{'id':_0x4691fa['id'],'roleName':_0x4691fa[_0x42be11(0x120)]??null,'roleType':_0x4691fa['roleType']??null,'remark':_0x4691fa['remark']??null,'userCount':_0x4691fa[_0x42be11(0x110)]??0x0,'permitCount':_0x4691fa[_0x42be11(0xf8)]??0x0};}export function projectRuntimeUser(_0x4fe03b){const _0x1ce7ce=a121_0x3713e8,_0x2eb71a=normalizeRuntimeUserId(_0x4fe03b[_0x1ce7ce(0x109)]);if(!_0x2eb71a)return null;return{'userId':_0x2eb71a,'username':_0x4fe03b[_0x1ce7ce(0x104)]??null,'nickname':_0x4fe03b['nickName']??null,'displayName':_0x4fe03b['displayName']??null,'email':_0x4fe03b[_0x1ce7ce(0xfd)]??null,'status':_0x4fe03b['status']??null};}export function projectRuntimeRoleMember(_0x15872d){const _0x5eef84=a121_0x3713e8,_0x1177c1=normalizeRuntimeUserId(_0x15872d[_0x5eef84(0x111)]);if(!_0x1177c1)return null;return{'userId':_0x1177c1,'username':_0x15872d[_0x5eef84(0xff)]??null,'nickname':_0x15872d['nickname']??null};}export function readRuntimeRoleRef(_0x1c1364){const _0x1a8b63=a121_0x3713e8,_0x536f45=_0x1c1364[_0x1a8b63(0x106)]('role')[_0x1a8b63(0x117)]();if(!_0x536f45)throw CliErrors[_0x1a8b63(0x11b)](_0x1a8b63(0x11c),_0x1a8b63(0x112));return _0x536f45;}export function resolveRuntimeRoleGroup(_0x388b1a,_0x5bf49a,_0x29554a){const _0x313086=a121_0x3713e8,_0x186076=/^\d+$/[_0x313086(0x114)](_0x5bf49a)?_0x29554a[_0x313086(0x100)](_0x40379c=>_0x40379c['id']===Number(_0x5bf49a)):_0x29554a['filter'](_0xf1fb2f=>_0xf1fb2f[_0x313086(0x120)]===_0x5bf49a);if(_0x186076['length']===0x0)throw CliErrors['validation']('Runtime\x20role\x20\x22'+_0x5bf49a+_0x313086(0x113)+_0x388b1a+'.',_0x313086(0x105));if(_0x186076[_0x313086(0x101)]>0x1){const _0x363e4a=_0x186076['map'](_0x5e88e1=>_0x5e88e1['id'])[_0x313086(0x116)](',\x20');throw CliErrors[_0x313086(0x115)](_0x313086(0x11d)+_0x5bf49a+_0x313086(0xf9)+_0x363e4a+').',_0x313086(0x121));}return _0x186076[0x0];}function a121_0x2bc1(){const _0x3a66e7=['userName','Run\x20`flow\x20runtime-role-list`\x20to\x20see\x20runtime\x20roles.','str','15144NBnahk','871181fJmbZl','code','--page\x20must\x20be\x20a\x20positive\x20integer.','page-size','17301449cLTtWL','15fTdsXd','page','string','userCount','userId','Pass\x20--role\x20<id|name>.','\x22\x20not\x20found\x20in\x20app\x20','test','validation','join','trim','--page-size\x20must\x20be\x20an\x20integer\x20between\x201\x20and\x20100.','12RBSdWl','22635LyNSJH','flagMissing','role','Runtime\x20role\x20name\x20\x22','5184632txGAby','1010fJSKIJ','roleName','Disambiguate\x20with\x20--role\x20<id>.','number','1309784tpVGOg','permitCount','\x22\x20is\x20ambiguous\x20(ids:\x20','slice','7OkMSVO','305648RYCNlq','email','isSafeInteger','username','filter','length','1415dmrKag','Runtime\x20role\x20id\x20or\x20exact\x20role\x20name'];a121_0x2bc1=function(){return _0x3a66e7;};return a121_0x2bc1();}function normalizeRuntimeUserId(_0x1379a4){const _0x29a856=a121_0x3713e8;if(typeof _0x1379a4!==_0x29a856(0x10f)&&typeof _0x1379a4!==_0x29a856(0xf6))return null;const _0x448968=String(_0x1379a4)[_0x29a856(0x117)]();return _0x448968||null;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a122_0x3fc9e6=a122_0x4d86;(function(_0x3971b7,_0x54c2aa){const _0x3f7f68=a122_0x4d86,_0x5062d7=_0x3971b7();while(!![]){try{const _0x3e65cf=parseInt(_0x3f7f68(0xb8))/0x1+-parseInt(_0x3f7f68(0xb7))/0x2+parseInt(_0x3f7f68(0xbd))/0x3+-parseInt(_0x3f7f68(0xaf))/0x4*(-parseInt(_0x3f7f68(0xba))/0x5)+parseInt(_0x3f7f68(0xb3))/0x6*(-parseInt(_0x3f7f68(0xbc))/0x7)+-parseInt(_0x3f7f68(0xb0))/0x8+parseInt(_0x3f7f68(0xb2))/0x9;if(_0x3e65cf===_0x54c2aa)break;else _0x5062d7['push'](_0x5062d7['shift']());}catch(_0x2e460b){_0x5062d7['push'](_0x5062d7['shift']());}}}(a122_0x1b35,0x3d2e5));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{FLOW_RUNTIME_PAGE_FLAG,FLOW_RUNTIME_PAGE_SIZE_FLAG,projectRuntimeRole,readRuntimePagination}from'../../commands/flow/runtime-resources-shared.js';import{listApprovalRuntimeRoles}from'../../core/api-client.js';export const flowRuntimeRoleList={'service':a122_0x3fc9e6(0xae),'command':a122_0x3fc9e6(0xc0),'description':'List\x20runtime\x20app\x20roles\x20for\x20approval\x20assignee\x20selection','risk':a122_0x3fc9e6(0xb9),'flags':[{'name':'keyword','type':a122_0x3fc9e6(0xbb),'description':a122_0x3fc9e6(0xb4)},FLOW_RUNTIME_PAGE_FLAG,FLOW_RUNTIME_PAGE_SIZE_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x5c634c){readRuntimePagination(_0x5c634c);},async 'execute'(_0x163320){const _0xe3fceb=a122_0x3fc9e6,{page:_0x1afcab,pageSize:_0xde649}=readRuntimePagination(_0x163320),_0x24be26=_0x163320[_0xe3fceb(0xb5)](_0xe3fceb(0xad))[_0xe3fceb(0xbf)](),{items:_0x388cbe,paging:_0x3134a9}=await listApprovalRuntimeRoles(_0x163320[_0xe3fceb(0xbe)],{..._0x24be26?{'roleName':_0x24be26}:{},'currentPage':_0x1afcab,'pageSize':_0xde649}),_0x478211=_0x388cbe['map'](projectRuntimeRole);return{'ok':!![],'data':{'appCode':_0x163320[_0xe3fceb(0xbe)],'scope':_0xe3fceb(0xb6),..._0x24be26?{'keyword':_0x24be26}:{},'roles':_0x478211,'paging':_0x3134a9},'message':'Found\x20'+_0x478211[_0xe3fceb(0xb1)]+'\x20runtime\x20role(s)'};}};function a122_0x4d86(_0x50476d,_0x500ffb){_0x50476d=_0x50476d-0xad;const _0x1b359a=a122_0x1b35();let _0x4d866a=_0x1b359a[_0x50476d];return _0x4d866a;}function a122_0x1b35(){const _0x48786f=['20LutmZf','954256qCnJzz','length','500697lVDgWU','6jBXhZN','Optional\x20runtime\x20role-name\x20keyword','str','runtime','554990sghRPg','146439FiEOxU','read','165995YYbdqS','string','633612VrQqxG','1109469CoGFKC','appCode','trim','runtime-role-list','keyword','flow'];a122_0x1b35=function(){return _0x48786f;};return a122_0x1b35();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a123_0x36e336=a123_0x217c;function a123_0x217c(_0x14277d,_0x4f609a){_0x14277d=_0x14277d-0x10c;const _0x3dc78e=a123_0x3dc7();let _0x217cc5=_0x3dc78e[_0x14277d];return _0x217cc5;}(function(_0x4118b3,_0x4ef0eb){const _0xe3dfd4=a123_0x217c,_0x128c89=_0x4118b3();while(!![]){try{const _0x3ded10=-parseInt(_0xe3dfd4(0x110))/0x1*(parseInt(_0xe3dfd4(0x10e))/0x2)+parseInt(_0xe3dfd4(0x113))/0x3+-parseInt(_0xe3dfd4(0x10f))/0x4+parseInt(_0xe3dfd4(0x11a))/0x5+-parseInt(_0xe3dfd4(0x11b))/0x6+parseInt(_0xe3dfd4(0x11f))/0x7*(parseInt(_0xe3dfd4(0x114))/0x8)+parseInt(_0xe3dfd4(0x118))/0x9;if(_0x3ded10===_0x4ef0eb)break;else _0x128c89['push'](_0x128c89['shift']());}catch(_0x5e833e){_0x128c89['push'](_0x128c89['shift']());}}}(a123_0x3dc7,0x85706));function a123_0x3dc7(){const _0x396b4e=['appCode','filter','runtime','111349vxwftp','Found\x20','length','paging','385592gzZRjE','3842272LzLjLs','2hSirns','List\x20members\x20of\x20one\x20runtime\x20app\x20role\x20for\x20approval\x20verification','map','2060625qpHXOL','8jQeNTw','userList','roleName','roleType','4521798rxpkyS','flow','3912205iUVPLr','569514xWbDep'];a123_0x3dc7=function(){return _0x396b4e;};return a123_0x3dc7();}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{FLOW_RUNTIME_PAGE_FLAG,FLOW_RUNTIME_PAGE_SIZE_FLAG,FLOW_RUNTIME_ROLE_REF_FLAG,paginateRuntimeItems,projectRuntimeRoleMember,readRuntimePagination,readRuntimeRoleRef,resolveRuntimeRoleGroup}from'../../commands/flow/runtime-resources-shared.js';import{listApprovalRuntimeRoleUsers}from'../../core/api-client.js';export const flowRuntimeRoleUserList={'service':a123_0x36e336(0x119),'command':'runtime-role-user-list','description':a123_0x36e336(0x111),'risk':'read','flags':[FLOW_RUNTIME_ROLE_REF_FLAG,FLOW_RUNTIME_PAGE_FLAG,FLOW_RUNTIME_PAGE_SIZE_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x31e6f5){readRuntimeRoleRef(_0x31e6f5),readRuntimePagination(_0x31e6f5);},async 'execute'(_0x7f86c4){const _0x26a490=a123_0x36e336,_0x55cef4=resolveRuntimeRoleGroup(_0x7f86c4[_0x26a490(0x11c)],readRuntimeRoleRef(_0x7f86c4),await listApprovalRuntimeRoleUsers(_0x7f86c4[_0x26a490(0x11c)])),_0x46bbcd=(_0x55cef4[_0x26a490(0x115)]??[])[_0x26a490(0x112)](projectRuntimeRoleMember)[_0x26a490(0x11d)](_0x2c2c99=>_0x2c2c99!==null),{page:_0x588ed0,pageSize:_0xc5e63c}=readRuntimePagination(_0x7f86c4),_0x3736c1=paginateRuntimeItems(_0x46bbcd,_0x588ed0,_0xc5e63c);return{'ok':!![],'data':{'appCode':_0x7f86c4['appCode'],'scope':_0x26a490(0x11e),'role':{'id':_0x55cef4['id'],'roleName':_0x55cef4['roleName']??null,'roleType':_0x55cef4[_0x26a490(0x117)]??null},'users':_0x3736c1['items'],'paging':_0x3736c1[_0x26a490(0x10d)]},'message':_0x26a490(0x120)+_0x46bbcd[_0x26a490(0x10c)]+'\x20runtime\x20member(s)\x20in\x20role\x20'+(_0x55cef4[_0x26a490(0x116)]??_0x55cef4['id'])};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a124_0x42c9c8=a124_0x34df;(function(_0x37c7ea,_0x1f8783){const _0x31dde1=a124_0x34df,_0x2b3584=_0x37c7ea();while(!![]){try{const _0x3b8f8f=-parseInt(_0x31dde1(0xcf))/0x1*(parseInt(_0x31dde1(0xc8))/0x2)+parseInt(_0x31dde1(0xae))/0x3+-parseInt(_0x31dde1(0xc5))/0x4*(-parseInt(_0x31dde1(0xce))/0x5)+parseInt(_0x31dde1(0xb7))/0x6*(-parseInt(_0x31dde1(0xb0))/0x7)+parseInt(_0x31dde1(0xca))/0x8+-parseInt(_0x31dde1(0xb6))/0x9*(-parseInt(_0x31dde1(0xbf))/0xa)+parseInt(_0x31dde1(0xbc))/0xb*(-parseInt(_0x31dde1(0xcc))/0xc);if(_0x3b8f8f===_0x1f8783)break;else _0x2b3584['push'](_0x2b3584['shift']());}catch(_0x1b40f8){_0x2b3584['push'](_0x2b3584['shift']());}}}(a124_0x3d8a,0x23c12));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{FLOW_RUNTIME_PAGE_FLAG,FLOW_RUNTIME_PAGE_SIZE_FLAG,paginateRuntimeItems,projectRuntimeUser,readRuntimePagination}from'../../commands/flow/runtime-resources-shared.js';import{listApprovalRuntimeUsers}from'../../core/api-client.js';function a124_0x34df(_0x4a1553,_0x56325e){_0x4a1553=_0x4a1553-0xae;const _0x3d8a02=a124_0x3d8a();let _0x34df96=_0x3d8a02[_0x4a1553];return _0x34df96;}import{CliErrors}from'../../errors.js';function a124_0x3d8a(){const _0x1ac963=['24QZLFSu','flagMissing','175VsIYfj','1EWGGIi','264438zUlaDy','map','18088ZJMAhA','userName','length','read','items','nickName','9tfnJQh','534XeoNfH','filter','paging','\x20runtime\x20app\x20user(s)\x20matching\x20\x22','runtime','607838BhyOKy','Found\x20','keyword','1917990vAgMuo','appCode','str','trim','Pass\x20--keyword\x20<text>.','code','22292xLwnKk','runtime-user-search','toLowerCase','482054oPxFwQ','includes','2023752NzZwaw','Search\x20runtime\x20app\x20users\x20for\x20approval\x20assignee\x20selection'];a124_0x3d8a=function(){return _0x1ac963;};return a124_0x3d8a();}export const flowRuntimeUserSearch={'service':'flow','command':a124_0x42c9c8(0xc6),'description':a124_0x42c9c8(0xcb),'risk':a124_0x42c9c8(0xb3),'flags':[{'name':a124_0x42c9c8(0xbe),'type':'string','required':!![],'description':'User\x20id,\x20username,\x20nickname,\x20display\x20name,\x20or\x20email\x20keyword'},FLOW_RUNTIME_PAGE_FLAG,FLOW_RUNTIME_PAGE_SIZE_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x3a3606){const _0x46fb75=a124_0x42c9c8;if(!_0x3a3606[_0x46fb75(0xc1)](_0x46fb75(0xbe))['trim']())throw CliErrors[_0x46fb75(0xcd)](_0x46fb75(0xbe),_0x46fb75(0xc3));readRuntimePagination(_0x3a3606);},async 'execute'(_0x2f2cd5){const _0x54c53c=a124_0x42c9c8,_0x4fa5e2=_0x2f2cd5[_0x54c53c(0xc1)](_0x54c53c(0xbe))[_0x54c53c(0xc2)](),_0x2ae70d=_0x4fa5e2[_0x54c53c(0xc7)](),_0x4286ea=(await listApprovalRuntimeUsers(_0x2f2cd5[_0x54c53c(0xc0)]))[_0x54c53c(0xb8)](_0xa8c595=>[_0xa8c595[_0x54c53c(0xc4)],_0xa8c595[_0x54c53c(0xb1)],_0xa8c595[_0x54c53c(0xb5)],_0xa8c595['displayName'],_0xa8c595['email']]['some'](_0x10e9b9=>_0x10e9b9!==null&&_0x10e9b9!==undefined&&String(_0x10e9b9)['toLowerCase']()[_0x54c53c(0xc9)](_0x2ae70d)))[_0x54c53c(0xaf)](projectRuntimeUser)[_0x54c53c(0xb8)](_0x3d3688=>_0x3d3688!==null),{page:_0x2011ef,pageSize:_0x42f321}=readRuntimePagination(_0x2f2cd5),_0x43604a=paginateRuntimeItems(_0x4286ea,_0x2011ef,_0x42f321);return{'ok':!![],'data':{'appCode':_0x2f2cd5[_0x54c53c(0xc0)],'scope':_0x54c53c(0xbb),'keyword':_0x4fa5e2,'users':_0x43604a[_0x54c53c(0xb4)],'paging':_0x43604a[_0x54c53c(0xb9)]},'message':_0x54c53c(0xbd)+_0x4286ea[_0x54c53c(0xb2)]+_0x54c53c(0xba)+_0x4fa5e2+'\x22'};}};
|