@lovrabet/rabetbase-cli 2.5.4-beta.4 → 2.5.4-beta.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/README.md +8 -2
- 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.d.ts +2 -0
- package/lib/commands/app/detail.js +1 -0
- 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.d.ts +1 -1
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.d.ts +3 -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.d.ts +2 -0
- package/lib/commands/menu/shared/path.js +1 -0
- package/lib/commands/menu/shared/service.d.ts +6 -1
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/subapp-assets.d.ts +28 -0
- package/lib/commands/menu/shared/subapp-assets.js +1 -0
- package/lib/commands/menu/shared/sync-core.d.ts +2 -1
- package/lib/commands/menu/shared/sync-core.js +1 -1
- package/lib/commands/menu/shared/types.d.ts +14 -4
- 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.d.ts +2 -0
- package/lib/commands/menu/subapp-assets-status.js +1 -0
- package/lib/commands/menu/subapp-assets-update.d.ts +2 -0
- package/lib/commands/menu/subapp-assets-update.js +1 -0
- package/lib/commands/menu/sync.js +1 -1
- package/lib/commands/menu/visibility-update.js +1 -1
- package/lib/commands/notification/config-create.js +1 -1
- package/lib/commands/notification/config-delete.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/config-update.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/notification/shared.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/page/create.js +1 -1
- package/lib/commands/page/custom/detail.js +1 -1
- package/lib/commands/page/custom/list.js +1 -1
- package/lib/commands/page/custom/publish.js +1 -1
- package/lib/commands/page/custom/shared.js +1 -1
- package/lib/commands/page/custom/syntax.js +1 -1
- package/lib/commands/page/custom/update.js +1 -1
- package/lib/commands/page/data-list-status.js +1 -1
- package/lib/commands/page/generate-start.js +1 -1
- package/lib/commands/page/generate-status.js +1 -1
- package/lib/commands/page/index.js +1 -1
- package/lib/commands/page/pull.js +1 -1
- package/lib/commands/page/push.js +1 -1
- package/lib/commands/page/relation-audit.js +1 -1
- package/lib/commands/page/restore.js +1 -1
- package/lib/commands/page/shared.js +1 -1
- package/lib/commands/page/sync.js +1 -1
- package/lib/commands/project/api-architecture-upgrade.js +1 -1
- package/lib/commands/project/create/enhanced-guided-create.js +1 -1
- package/lib/commands/project/create/format-elapsed.js +1 -1
- package/lib/commands/project/create/main.js +1 -1
- package/lib/commands/project/create/materialize-project-template.js +1 -1
- package/lib/commands/project/create/project-name.js +1 -1
- package/lib/commands/project/create/project-template-archive.js +1 -1
- package/lib/commands/project/create/project-template-path.js +1 -1
- package/lib/commands/project/create/use-copy-project-template.js +1 -1
- package/lib/commands/project/create/use-format-code.js +1 -1
- package/lib/commands/project/create/use-install-dependencies.js +1 -1
- package/lib/commands/project/domain-routing-sync.js +1 -1
- package/lib/commands/project/index.js +1 -1
- package/lib/commands/project/upgrade.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/role/user-resolve.js +1 -1
- package/lib/commands/rule/get.js +1 -1
- package/lib/commands/rule/index.js +1 -1
- package/lib/commands/rule/list.js +1 -1
- package/lib/commands/rule/set.js +1 -1
- package/lib/commands/rule/shared.js +1 -1
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/sql/create.js +1 -1
- package/lib/commands/sql/delete.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/sql/list.js +1 -1
- package/lib/commands/sql/pull.js +1 -1
- package/lib/commands/sql/push.js +1 -1
- package/lib/commands/sql/shared.js +1 -1
- package/lib/commands/sql/status.js +1 -1
- package/lib/commands/sql/validate.js +1 -1
- package/lib/commands/task/index.js +1 -1
- package/lib/commands/task/status.js +1 -1
- package/lib/commands/tenant/index.js +1 -1
- package/lib/commands/tenant/members-list.js +1 -1
- package/lib/commands/tenant/shared.js +1 -1
- package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
- package/lib/commands/user-account/feishu-bind.js +1 -1
- package/lib/commands/user-account/index.js +1 -1
- package/lib/commands/workspace/add.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/commands/workspace/remove.js +1 -1
- package/lib/config/domain-config.js +1 -1
- package/lib/config/project-domain-routing.js +1 -1
- package/lib/config/region-config.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/cdn.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/paths.js +1 -1
- package/lib/constant/region.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/routing-profile.js +1 -1
- package/lib/context/app-resolver.js +1 -1
- package/lib/context/auth-resolver.js +1 -1
- package/lib/context/config-loader.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.d.ts +15 -0
- package/lib/core/api-client.js +1 -1
- package/lib/core/bff/config.js +1 -1
- package/lib/core/bff/file-system.js +1 -1
- package/lib/core/bff/hash.js +1 -1
- package/lib/core/bff/hook-directory.js +1 -1
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/cross-db-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 +21 -12
- package/skills/rabetbase/guides/backend-function.md +2 -7
- package/skills/rabetbase/guides/bff-creation-workflow.md +24 -23
- package/skills/rabetbase/guides/host-frontend-integration.md +62 -0
- package/skills/rabetbase/guides/independent-deployment.md +45 -0
- package/skills/rabetbase/guides/troubleshooting.md +9 -1
- package/skills/rabetbase/references/rabetbase-app-detail.md +31 -0
- package/skills/rabetbase/references/rabetbase-bff-detail.md +1 -1
- package/skills/rabetbase/references/rabetbase-bff-push.md +2 -2
- package/skills/rabetbase/references/rabetbase-data-list-status.md +1 -0
- package/skills/rabetbase/references/rabetbase-deployment-sync-all.md +5 -1
- package/skills/rabetbase/references/rabetbase-menu-asset-update.md +9 -7
- package/skills/rabetbase/references/rabetbase-menu-list.md +2 -2
- package/skills/rabetbase/references/rabetbase-menu-subapp-assets-status.md +19 -0
- package/skills/rabetbase/references/rabetbase-menu-subapp-assets-update.md +27 -0
- package/skills/rabetbase/references/rabetbase-menu-sync.md +40 -14
- package/skills/rabetbase/references/rabetbase-page-create.md +1 -1
- package/skills/rabetbase/references/rabetbase-page-generate-start.md +5 -3
- package/skills/rabetbase/references/rabetbase-page-generate-status.md +1 -0
- package/skills/rabetbase.manifest.json +8 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a111_0x409d1a=a111_0x339a;(function(_0x29030c,_0x9712de){const _0x21d226=a111_0x339a,_0x48fee6=_0x29030c();while(!![]){try{const _0x333ba6=parseInt(_0x21d226(0xee))/0x1*(-parseInt(_0x21d226(0xe8))/0x2)+parseInt(_0x21d226(0xf4))/0x3+-parseInt(_0x21d226(0xe6))/0x4+-parseInt(_0x21d226(0xf6))/0x5+-parseInt(_0x21d226(0xf5))/0x6*(parseInt(_0x21d226(0x106))/0x7)+-parseInt(_0x21d226(0xe3))/0x8*(parseInt(_0x21d226(0xe0))/0x9)+parseInt(_0x21d226(0xeb))/0xa*(parseInt(_0x21d226(0xff))/0xb);if(_0x333ba6===_0x9712de)break;else _0x48fee6['push'](_0x48fee6['shift']());}catch(_0xb1ab0e){_0x48fee6['push'](_0x48fee6['shift']());}}}(a111_0x497d,0xde11c));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a111_0x497d(){const _0x49ea27=['List\x20recent\x20deployment\x20sync\x20jobs\x20before\x20deciding\x20whether\x20to\x20submit\x20again.','deployment_sync_submit_outcome_unknown','2159190arhygT','/smartapi/data-sync/submit','submitted','Submitted\x20deployment\x20synchronization\x20job\x20','Deployment\x20sync\x20submission\x20response\x20was\x20unavailable;\x20job\x20creation\x20is\x20unknown.','Submit\x20an\x20administrative\x20metadata\x20backfill\x20or\x20recovery\x20synchronization.','Confirm\x20the\x20administrative\x20backfill\x20or\x20recovery\x20synchronization','7emJffF','POST','43614waKWuC','not_submitted','--confirm\x20is\x20required\x20to\x20synchronize\x20all\x20application\x20metadata.','240nkTREd','Run\x20with\x20--dry-run\x20first,\x20then\x20add\x20--confirm.','status','1190228tiBgjU','Backfill\x20or\x20recover\x20all\x20server-supported\x20application\x20metadata','4VezEzg','application_deployment_sync','all_server_supported_metadata','170GdboyN','No\x20deployment\x20synchronization\x20was\x20needed\x20for\x20this\x20app.','job','638530XfuzUy','unknown','not_needed','bool','sync-all','validation','856368aaGrbw','3870948YzvVfg','1738175GCPvhv','boolean','jobId','Would\x20submit\x20an\x20administrative\x20deployment\x20metadata\x20backfill\x20or\x20recovery\x20job.','confirm','appCode','write'];a111_0x497d=function(){return _0x49ea27;};return a111_0x497d();}function a111_0x339a(_0x1e6a31,_0x49d706){_0x1e6a31=_0x1e6a31-0xe0;const _0x497d52=a111_0x497d();let _0x339a5f=_0x497d52[_0x1e6a31];return _0x339a5f;}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_0x409d1a(0x100),CONFIRM_FLAG={'name':a111_0x409d1a(0xfa),'type':a111_0x409d1a(0xf7),'description':a111_0x409d1a(0x105)};export const deploymentSyncAll={'service':'deployment','command':a111_0x409d1a(0xf2),'description':a111_0x409d1a(0xe7),'risk':a111_0x409d1a(0xfc),'strictFlags':!![],'structuredErrors':!![],'confirmationDescription':a111_0x409d1a(0x104),'flags':[CONFIRM_FLAG,APPCODE_FLAG_OPTIONAL],async 'dryRun'(_0x3033cf){const _0x4220f3=a111_0x409d1a;return asDryRunResult(buildPreview(_0x3033cf['appCode']),{'method':_0x4220f3(0x107),'url':SUBMIT_PATH,'description':_0x4220f3(0xf9)});},async 'execute'(_0x3a2910){const _0x316192=a111_0x409d1a;if(!_0x3a2910[_0x316192(0xf1)](_0x316192(0xfa)))throw CliErrors[_0x316192(0xf3)](_0x316192(0xe2),_0x316192(0xe4));try{const _0x2dda7f=await submitDeploymentMetadataSyncAll({'appCode':_0x3a2910[_0x316192(0xfb)]});if(_0x2dda7f['outcome']===_0x316192(0xf0))return{'ok':!![],'data':{'operation':'application_deployment_sync','appCode':_0x3a2910[_0x316192(0xfb)],'submitted':![],'outcome':_0x316192(0xf0)},'message':_0x316192(0xec)};return{'ok':!![],'data':{'operation':_0x316192(0xe9),'appCode':_0x3a2910[_0x316192(0xfb)],'submitted':!![],'outcome':_0x316192(0x101),'jobId':_0x2dda7f['job']['jobId'],'status':_0x2dda7f[_0x316192(0xed)][_0x316192(0xe5)]},'message':_0x316192(0x102)+_0x2dda7f[_0x316192(0xed)][_0x316192(0xf8)]+'.'};}catch(_0x33cb03){if(!isPlatformTransportFailure(_0x33cb03))throw _0x33cb03;const _0x156cb8=new CliError(_0x316192(0xfe),0x2,_0x316192(0x103),_0x316192(0xfd));Object['defineProperty'](_0x156cb8,'data',{'enumerable':!![],'value':{'operation':_0x316192(0xe9),'appCode':_0x3a2910[_0x316192(0xfb)],'submitted':null,'outcome':_0x316192(0xef)}});throw _0x156cb8;}}};function buildPreview(_0x1c2d48){const _0x4630b9=a111_0x409d1a;return{'operation':_0x4630b9(0xe9),'selector':{'appCode':_0x1c2d48,'scope':_0x4630b9(0xea)},'before':null,'after':null,'dryRun':!![],'backend':{'submitted':![],'outcome':_0x4630b9(0xe1)},'warnings':[]};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a112_0x2516(_0x4b570e,_0x122408){_0x4b570e=_0x4b570e-0x93;const _0x28443f=a112_0x2844();let _0x2516e6=_0x28443f[_0x4b570e];return _0x2516e6;}const a112_0x23be1e=a112_0x2516;(function(_0x224214,_0x178f52){const _0x4daeca=a112_0x2516,_0x5c6255=_0x224214();while(!![]){try{const _0x275aa2=-parseInt(_0x4daeca(0x9d))/0x1*(-parseInt(_0x4daeca(0xa1))/0x2)+-parseInt(_0x4daeca(0x94))/0x3*(parseInt(_0x4daeca(0x98))/0x4)+parseInt(_0x4daeca(0x95))/0x5+parseInt(_0x4daeca(0xaa))/0x6+-parseInt(_0x4daeca(0x99))/0x7+parseInt(_0x4daeca(0x9b))/0x8*(-parseInt(_0x4daeca(0xa6))/0x9)+-parseInt(_0x4daeca(0x9a))/0xa*(-parseInt(_0x4daeca(0xa0))/0xb);if(_0x275aa2===_0x178f52)break;else _0x5c6255['push'](_0x5c6255['shift']());}catch(_0x21d0c2){_0x5c6255['push'](_0x5c6255['shift']());}}}(a112_0x2844,0x69ff0));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a112_0x2844(){const _0x580885=['Found\x20','2ENfMqb','num','\x20deployment\x20synchronization\x20job(s).','13237807wZoflC','108494kvayXN','List\x20application\x20deployment\x20synchronization\x20jobs','length','Items\x20per\x20page\x20(maximum\x20100)','trim','5233950bVanzZ','validation','Optional\x20server-defined\x20job\x20status\x20filter','string','3430380SvWIfk','status','isSafeInteger','--current-page\x20must\x20be\x20a\x20positive\x20integer.','page-size','appCode','sync-jobs','12525BGtmmm','1627795aFetHv','items','current-page','548xxZpoE','4350745hLvzoV','10FRwRyK','8beEFMa'];a112_0x2844=function(){return _0x580885;};return a112_0x2844();}import{listDeploymentMetadataSyncJobs}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';export const deploymentSyncJobs={'service':'deployment','command':a112_0x23be1e(0x93),'description':a112_0x23be1e(0xa2),'risk':'read','strictFlags':!![],'structuredErrors':!![],'flags':[{'name':'current-page','type':'number','default':0x1,'description':'Page\x20number'},{'name':'page-size','type':'number','default':0xa,'description':a112_0x23be1e(0xa4)},{'name':a112_0x23be1e(0xab),'type':a112_0x23be1e(0xa9),'description':a112_0x23be1e(0xa8)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x3a2246){const _0x30076e=a112_0x23be1e;readPaging(_0x3a2246[_0x30076e(0x9e)](_0x30076e(0x97),0x1),_0x3a2246[_0x30076e(0x9e)]('page-size',0xa));},async 'execute'(_0x11a004){const _0x515f4b=a112_0x23be1e,{currentPage:_0x425c44,pageSize:_0x4aa112}=readPaging(_0x11a004[_0x515f4b(0x9e)](_0x515f4b(0x97),0x1),_0x11a004[_0x515f4b(0x9e)](_0x515f4b(0xae),0xa)),_0x54b5f7=_0x11a004['str']('status')[_0x515f4b(0xa5)](),_0x1266bb=await listDeploymentMetadataSyncJobs({'appCode':_0x11a004[_0x515f4b(0xaf)],'currentPage':_0x425c44,'pageSize':_0x4aa112,..._0x54b5f7?{'status':_0x54b5f7}:{}});return{'ok':!![],'data':{'appCode':_0x11a004[_0x515f4b(0xaf)],..._0x1266bb},'message':_0x515f4b(0x9c)+_0x1266bb[_0x515f4b(0x96)][_0x515f4b(0xa3)]+_0x515f4b(0x9f)};}};function readPaging(_0x3cf4c4,_0x2825d2){const _0x4489d5=a112_0x23be1e;if(!Number[_0x4489d5(0xac)](_0x3cf4c4)||_0x3cf4c4<0x1)throw CliErrors[_0x4489d5(0xa7)](_0x4489d5(0xad));if(!Number[_0x4489d5(0xac)](_0x2825d2)||_0x2825d2<0x1||_0x2825d2>0x64)throw CliErrors[_0x4489d5(0xa7)]('--page-size\x20must\x20be\x20an\x20integer\x20from\x201\x20to\x20100.');return{'currentPage':_0x3cf4c4,'pageSize':_0x2825d2};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a113_0x2261eb=a113_0x5c4e;(function(_0x563396,_0x9bbc7f){const _0xa76313=a113_0x5c4e,_0x32d0f2=_0x563396();while(!![]){try{const _0x2b9987=parseInt(_0xa76313(0x13c))/0x1*(parseInt(_0xa76313(0x131))/0x2)+parseInt(_0xa76313(0x12b))/0x3+parseInt(_0xa76313(0x12d))/0x4*(-parseInt(_0xa76313(0x142))/0x5)+parseInt(_0xa76313(0x121))/0x6*(parseInt(_0xa76313(0x143))/0x7)+parseInt(_0xa76313(0x129))/0x8+-parseInt(_0xa76313(0x134))/0x9*(-parseInt(_0xa76313(0x141))/0xa)+-parseInt(_0xa76313(0x123))/0xb;if(_0x2b9987===_0x9bbc7f)break;else _0x32d0f2['push'](_0x32d0f2['shift']());}catch(_0x6d66e){_0x32d0f2['push'](_0x32d0f2['shift']());}}}(a113_0x13c5,0x3a376));import{getDeploymentMetadataSyncStatus}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a113_0x13c5(){const _0x376053=['2jyJjcH','appCode','read','filter','\x20is\x20','73280xuuuzi','197105oMzSDF','43785TYIDkv','120ZsRDND','results','4269562YdINas','PARTIAL_SUCCESS','isSafeInteger','status','num','Deployment\x20synchronization\x20job\x20','2674168byQKMj','map','363912KlAGkF','validation','20VeqWEl','action','FAILED','Get\x20application\x20deployment\x20synchronization\x20job\x20status','213714pyFMdy','length','--job-id\x20must\x20be\x20a\x20positive\x20integer.','36wndLBf','job-id','deployment',';\x20terminal\x20state\x20is\x20unknown\x20to\x20this\x20CLI\x20version.','Deployment\x20synchronization\x20job\x20ID','has','bizType','sync-status'];a113_0x13c5=function(){return _0x376053;};return a113_0x13c5();}const TERMINAL_STATUSES=new Set(['SUCCESS',a113_0x2261eb(0x124),a113_0x2261eb(0x12f)]),ACTIVE_STATUSES=new Set(['PENDING','RUNNING']);export const deploymentSyncStatus={'service':a113_0x2261eb(0x136),'command':a113_0x2261eb(0x13b),'description':a113_0x2261eb(0x130),'risk':a113_0x2261eb(0x13e),'requiresAppCode':!![],'strictFlags':!![],'structuredErrors':!![],'flags':[{'name':a113_0x2261eb(0x135),'type':'number','required':!![],'description':a113_0x2261eb(0x138)}],async 'validate'(_0x3b256e){const _0x409833=a113_0x2261eb;readJobId(_0x3b256e[_0x409833(0x127)](_0x409833(0x135)));},async 'execute'(_0x97b3c3){const _0xa936f2=a113_0x2261eb,_0x3d439a=readJobId(_0x97b3c3['num'](_0xa936f2(0x135))),_0x4e1a60=await getDeploymentMetadataSyncStatus({'jobId':_0x3d439a,'appCode':_0x97b3c3[_0xa936f2(0x13d)]}),_0x48c44b=TERMINAL_STATUSES[_0xa936f2(0x139)](_0x4e1a60[_0xa936f2(0x126)])?!![]:ACTIVE_STATUSES[_0xa936f2(0x139)](_0x4e1a60[_0xa936f2(0x126)])?![]:null,_0x2c76d5=countBy(_0x4e1a60[_0xa936f2(0x122)][_0xa936f2(0x12a)](_0x313c22=>_0x313c22[_0xa936f2(0x13a)])),_0x1f7621=countBy(_0x4e1a60['results'][_0xa936f2(0x12a)](_0x41a7e1=>_0x41a7e1[_0xa936f2(0x12e)])),_0x3b1804=_0x48c44b===null?['Preserved\x20server-defined\x20status\x20'+_0x4e1a60[_0xa936f2(0x126)]+_0xa936f2(0x137)]:[];return{'ok':!![],'data':{'job':_0x4e1a60,'isTerminal':_0x48c44b,'summary':{'total':_0x4e1a60[_0xa936f2(0x122)][_0xa936f2(0x132)],'failed':_0x4e1a60['results'][_0xa936f2(0x13f)](_0x2b7aec=>_0x2b7aec[_0xa936f2(0x12e)]===_0xa936f2(0x12f))[_0xa936f2(0x132)],'byBizType':_0x2c76d5,'byAction':_0x1f7621},'warnings':_0x3b1804},'message':_0xa936f2(0x128)+_0x3d439a+_0xa936f2(0x140)+_0x4e1a60[_0xa936f2(0x126)]+'.'};}};function readJobId(_0x459bcc){const _0x1ea343=a113_0x2261eb;if(!Number[_0x1ea343(0x125)](_0x459bcc)||_0x459bcc<=0x0)throw CliErrors[_0x1ea343(0x12c)](_0x1ea343(0x133));return _0x459bcc;}function a113_0x5c4e(_0x3ecc76,_0x8372c0){_0x3ecc76=_0x3ecc76-0x121;const _0x13c5b3=a113_0x13c5();let _0x5c4e8a=_0x13c5b3[_0x3ecc76];return _0x5c4e8a;}function countBy(_0x518e5f){return _0x518e5f['reduce']((_0x2a3363,_0x17f4fc)=>{return _0x2a3363[_0x17f4fc]=(_0x2a3363[_0x17f4fc]??0x0)+0x1,_0x2a3363;},{});}
|
package/lib/commands/doctor.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a113_0x2ae37c=a113_0x2c60;(function(_0x5570a8,_0x3fc0ec){const _0x4093ef=a113_0x2c60,_0x4172e5=_0x5570a8();while(!![]){try{const _0xa349ea=parseInt(_0x4093ef(0xc5))/0x1*(parseInt(_0x4093ef(0x121))/0x2)+parseInt(_0x4093ef(0xf8))/0x3+parseInt(_0x4093ef(0x130))/0x4+-parseInt(_0x4093ef(0xf6))/0x5+-parseInt(_0x4093ef(0xe0))/0x6+-parseInt(_0x4093ef(0x14d))/0x7+parseInt(_0x4093ef(0x112))/0x8;if(_0xa349ea===_0x3fc0ec)break;else _0x4172e5['push'](_0x4172e5['shift']());}catch(_0x4d8002){_0x4172e5['push'](_0x4172e5['shift']());}}}(a113_0x548e,0x31154));import a113_0x2e60cd from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';import{getActiveRegion,getApiDomain,getAppDomain,getKbDomain,getKbServiceDomain,getSkillDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags,initGlobalEnvironment,inspectCliConfigJsonFile,loadRawConfigLayers}from'../context.js';import{getIsSessionValid}from'../auth/is-session-valid.js';import{getCookie}from'../auth/get-cookie.js';import{buildAppDoctorFields}from'../config/schema.js';import{resolveEffectiveRegion}from'../config/region-config.js';function a113_0x548e(){const _0x4c7fc0=['2121120YNXzTW','\x20config\x20delete\x20inherit','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20─','stringify','projectConfig','globalConfig','riskLevel','value','(default:\x20','\x20config','\x20\x20appDomain:\x20\x20\x20\x20\x20\x20\x20','\x20\x20kbServiceDomain:\x20','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','join','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','verbose','\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','bold','appcode','\x20\x20app\x20locale:\x20\x20\x20\x20\x20\x20','1992625xHXuLR','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','994803SnJBYC','routing','region','hasOwnProperty','(set,\x20length=','\x20\x20Config\x20JSON','\x20\x20runtimeDomain:\x20\x20\x20','appCode','padEnd','installedPath','Repair\x20','\x20\x20Config\x20Files','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','regionConfiguredValue','slice','gray','\x20\x20Repair\x20project:\x20\x20','filter','\x20\x20Repair\x20global:\x20\x20\x20','skillVersion','✓\x20Valid\x20JSON','\x20\x20explicitAppName:\x20','packageVersion','Project','apiDir','version','6874440hUjweO','(missing)','\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','push','accessKey','global','apps','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','reason','(not\x20set)','✗\x20Invalid','not\x20configured','label','(set\x20via\x20file,\x20length=','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','916HeSSsh','defaultApp','\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Installed\x20Path:\x20\x20','repairCommand','Not\x20checked\x20until\x20routing\x20configuration\x20is\x20repaired','\x20+\x20','inherit','(unknown)','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','state','green','\x20(invalid)','missing','toLowerCase','80564UMIyvc','platform','object','string','repeat','\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Routing\x20Configuration','empty','format','✗\x20Invalid\x20','pageSize','status','\x20doctor','\x20\x20Repair\x20project:\x20\x20\x20','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','locale','call','null','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20kbDomain:\x20\x20\x20\x20\x20\x20\x20\x20','log','read','\x20←\x20current','length','cookie','⚠\x20Empty\x20(treated\x20as\x20{})','(not\x20found)','\x20\x20skillDomain:\x20\x20\x20\x20\x20','1988448pwABNh','Global','regionSource','\x20\x20Auth','\x20\x20Package\x20Version:\x20','\x20config\x20delete\x20routing','\x20\x20Country/Region\x20Configuration','57jxEAku','(no\x20file)','currentApp','prototype','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','doctor','raw','current','arch','\x20\x20Built-in\x20Skill','project','source','message','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','\x20config\x20delete\x20region','keys','(none)','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','entries','env','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','yellow','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','\x20\x20Repair\x20global:\x20\x20\x20\x20','red','✗\x20Expired'];a113_0x548e=function(){return _0x4c7fc0;};return a113_0x548e();}import{inspectBuiltinSkill}from'../skills/builtin-skill.js';import{DEFAULT_LOVRABET_REGION,isInvalidLovrabetRegion}from'../constant/region.js';function describeRegionValue(_0x112f04){const _0x550eff=a113_0x2c60;return typeof _0x112f04===_0x550eff(0x133)?JSON[_0x550eff(0xe4)](_0x112f04):'<'+(_0x112f04===null?_0x550eff(0x142):typeof _0x112f04)+'>';}async function execute(_0x44473e){const _0x5cded5=a113_0x2c60,_0x57f357=GIT_COMMIT!=='unknown'?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x5cded5(0x106)](0x0,0xa)+')':VERSION,_0x5d7b06=buildConfigFromFlags({}),_0x428487=getCookie();let _0x283b95;try{await initGlobalEnvironment(_0x5d7b06);}catch(_0x9287b0){_0x283b95=_0x9287b0 instanceof Error?_0x9287b0:new Error(String(_0x9287b0));}console[_0x5cded5(0x145)](),console['log'](a113_0x2e60cd[_0x5cded5(0xf3)](CLI_BIN_NAME+_0x5cded5(0x13d))),console[_0x5cded5(0x145)](a113_0x2e60cd['gray']('─'[_0x5cded5(0x134)](0x32))),console[_0x5cded5(0x145)](_0x5cded5(0x120)+_0x57f357),console[_0x5cded5(0x145)](_0x5cded5(0xd9)+process[_0x5cded5(0x111)]),console[_0x5cded5(0x145)](_0x5cded5(0xf0)+process[_0x5cded5(0x131)]+'\x20'+process[_0x5cded5(0xcd)]);const _0x58de4d=inspectBuiltinSkill();console[_0x5cded5(0x145)](),console[_0x5cded5(0x145)](a113_0x2e60cd['bold'](_0x5cded5(0xce))),console['log'](a113_0x2e60cd[_0x5cded5(0x107)](_0x5cded5(0xe3)[_0x5cded5(0x134)](0x1e)));const _0x560158=_0x58de4d[_0x5cded5(0x12b)]===_0x5cded5(0xcc)?a113_0x2e60cd[_0x5cded5(0x12c)]('✓\x20'+_0x58de4d[_0x5cded5(0x12b)]):a113_0x2e60cd['red']('✗\x20'+_0x58de4d[_0x5cded5(0x12b)]);console[_0x5cded5(0x145)](_0x5cded5(0xf2)+_0x560158),console[_0x5cded5(0x145)](_0x5cded5(0xc2)+_0x58de4d[_0x5cded5(0x10e)]),console['log']('\x20\x20Skill\x20Version:\x20\x20\x20'+(_0x58de4d[_0x5cded5(0x10b)]||a113_0x2e60cd[_0x5cded5(0x107)](_0x5cded5(0x129)))),console[_0x5cded5(0x145)](_0x5cded5(0x124)+(_0x58de4d[_0x5cded5(0x101)]||a113_0x2e60cd[_0x5cded5(0x107)](_0x5cded5(0x14b))));if(_0x58de4d[_0x5cded5(0x11a)])console['log'](_0x5cded5(0x135)+_0x58de4d[_0x5cded5(0x11a)]);_0x58de4d[_0x5cded5(0x12b)]!=='current'&&console[_0x5cded5(0x145)](_0x5cded5(0x123)+_0x58de4d['repairCommand']);console[_0x5cded5(0x145)](),console[_0x5cded5(0x145)](a113_0x2e60cd['bold'](_0x5cded5(0x103))),console[_0x5cded5(0x145)](a113_0x2e60cd[_0x5cded5(0x107)](_0x5cded5(0xe3)[_0x5cded5(0x134)](0x1e)));const _0x460c69=getGlobalConfigPath(),_0x15bfeb=getProjectConfigPath();console['log'](_0x5cded5(0x13f)+(_0x460c69||a113_0x2e60cd[_0x5cded5(0x107)](_0x5cded5(0x14b)))),console[_0x5cded5(0x145)]('\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x15bfeb||a113_0x2e60cd[_0x5cded5(0x107)](_0x5cded5(0x14b)))),console[_0x5cded5(0x145)](),console[_0x5cded5(0x145)](a113_0x2e60cd[_0x5cded5(0xf3)](_0x5cded5(0xfd))),console[_0x5cded5(0x145)](a113_0x2e60cd[_0x5cded5(0x107)](_0x5cded5(0xe3)[_0x5cded5(0x134)](0x1e)));const _0x211693=(_0x5b00d8,_0x31d5a4)=>{const _0x638739=_0x5cded5;if(!_0x31d5a4){console[_0x638739(0x145)]('\x20\x20'+_0x5b00d8[_0x638739(0x100)](0x11)+'\x20'+a113_0x2e60cd[_0x638739(0x107)](_0x638739(0xc6)));return;}const _0x22c015=inspectCliConfigJsonFile(_0x31d5a4);if(_0x22c015[_0x638739(0x13c)]==='ok')console[_0x638739(0x145)]('\x20\x20'+_0x5b00d8['padEnd'](0x11)+'\x20'+a113_0x2e60cd[_0x638739(0x12c)](_0x638739(0x10c)));else{if(_0x22c015[_0x638739(0x13c)]===_0x638739(0x138))console[_0x638739(0x145)]('\x20\x20'+_0x5b00d8[_0x638739(0x100)](0x11)+'\x20'+a113_0x2e60cd[_0x638739(0xda)](_0x638739(0x14a)));else _0x22c015[_0x638739(0x13c)]===_0x638739(0x12e)?console[_0x638739(0x145)]('\x20\x20'+_0x5b00d8[_0x638739(0x100)](0x11)+'\x20'+a113_0x2e60cd[_0x638739(0x107)](_0x638739(0x113))):(console[_0x638739(0x145)]('\x20\x20'+_0x5b00d8[_0x638739(0x100)](0x11)+'\x20'+a113_0x2e60cd[_0x638739(0xde)]('✗\x20Invalid\x20JSON')),console[_0x638739(0x145)]('\x20\x20'+''[_0x638739(0x100)](0x11)+'\x20'+a113_0x2e60cd[_0x638739(0xde)](_0x22c015[_0x638739(0xd1)])));}};_0x211693(_0x5cded5(0x14e),_0x460c69),_0x211693(_0x5cded5(0x10f),_0x15bfeb);const _0x2e3408=loadRawConfigLayers(),_0x20aaaf=[{'label':'Project','value':_0x2e3408[_0x5cded5(0xe5)][_0x5cded5(0xfa)],'present':Object[_0x5cded5(0xc8)]['hasOwnProperty']['call'](_0x2e3408['projectConfig'],_0x5cded5(0xfa)),'repairCommand':CLI_BIN_NAME+_0x5cded5(0xd3)},{'label':_0x5cded5(0x14e),'value':_0x2e3408['globalConfig'][_0x5cded5(0xfa)],'present':Object[_0x5cded5(0xc8)][_0x5cded5(0xfb)][_0x5cded5(0x141)](_0x2e3408[_0x5cded5(0xe6)],_0x5cded5(0xfa)),'repairCommand':CLI_BIN_NAME+'\x20config\x20delete\x20region\x20--global'}][_0x5cded5(0x109)](_0x5b22e2=>_0x5b22e2['present']&&isInvalidLovrabetRegion(_0x5b22e2[_0x5cded5(0xe8)]));for(const [_0x3f5978,_0x57df8a]of[[_0x5cded5(0x10f),_0x2e3408[_0x5cded5(0xe5)]],[_0x5cded5(0x14e),_0x2e3408[_0x5cded5(0xe6)]]]){const _0xf182c5=_0x57df8a['apps']&&typeof _0x57df8a[_0x5cded5(0x118)]===_0x5cded5(0x132)?_0x57df8a[_0x5cded5(0x118)]:{};for(const [_0x7845ed,_0x2c8c00]of Object[_0x5cded5(0xd7)](_0xf182c5)){if(!_0x2c8c00||typeof _0x2c8c00!==_0x5cded5(0x132)||!Object['prototype']['hasOwnProperty'][_0x5cded5(0x141)](_0x2c8c00,_0x5cded5(0xfa)))continue;isInvalidLovrabetRegion(_0x2c8c00['region'])&&_0x20aaaf[_0x5cded5(0x115)]({'label':_0x3f5978+'\x20app\x20\x22'+_0x7845ed+'\x22','value':_0x2c8c00['region'],'present':!![],'repairCommand':'Set\x20apps.'+_0x7845ed+'.region\x20to\x20cn\x20or\x20id\x20in\x20'+_0x3f5978[_0x5cded5(0x12f)]()+'\x20config'});}}if(_0x20aaaf['length']>0x0){console[_0x5cded5(0x145)](),console[_0x5cded5(0x145)](a113_0x2e60cd[_0x5cded5(0xf3)](_0x5cded5(0xc4))),console[_0x5cded5(0x145)](a113_0x2e60cd[_0x5cded5(0x107)](_0x5cded5(0xe3)['repeat'](0x1e)));for(const _0x98c58d of _0x20aaaf){console[_0x5cded5(0x145)]('\x20\x20'+_0x98c58d[_0x5cded5(0x11e)]['padEnd'](0x11)+'\x20'+a113_0x2e60cd[_0x5cded5(0xde)](_0x5cded5(0x13a)+describeRegionValue(_0x98c58d[_0x5cded5(0xe8)]))),console[_0x5cded5(0x145)]('\x20\x20'+(_0x5cded5(0x102)+_0x98c58d[_0x5cded5(0x11e)][_0x5cded5(0x12f)]()+':')[_0x5cded5(0x100)](0x10)+'\x20'+_0x98c58d[_0x5cded5(0x125)]);}}const _0x48b819=[Object[_0x5cded5(0xc8)][_0x5cded5(0xfb)][_0x5cded5(0x141)](_0x2e3408[_0x5cded5(0xe6)],_0x5cded5(0x128))?_0x5cded5(0x117):null,Object[_0x5cded5(0xc8)]['hasOwnProperty'][_0x5cded5(0x141)](_0x2e3408[_0x5cded5(0xe5)],_0x5cded5(0x128))?_0x5cded5(0xcf):null][_0x5cded5(0x109)](Boolean);_0x48b819[_0x5cded5(0x148)]>0x0&&(console[_0x5cded5(0x145)]('\x20\x20Legacy\x20inherit:\x20\x20\x20'+a113_0x2e60cd[_0x5cded5(0xda)]('ignored\x20in\x20'+_0x48b819[_0x5cded5(0xef)](_0x5cded5(0x127))+_0x5cded5(0xea))),_0x48b819['includes']('project')&&console[_0x5cded5(0x145)](_0x5cded5(0x13e)+CLI_BIN_NAME+_0x5cded5(0xe1)),_0x48b819['includes']('global')&&console[_0x5cded5(0x145)](_0x5cded5(0xdd)+CLI_BIN_NAME+'\x20config\x20delete\x20inherit\x20--global'));const _0x417160=isInvalidLovrabetRegion(_0x5d7b06[_0x5cded5(0x105)]??_0x5d7b06[_0x5cded5(0xcb)]?.[_0x5cded5(0xfa)]);_0x283b95&&!_0x417160&&(console[_0x5cded5(0x145)](),console[_0x5cded5(0x145)](a113_0x2e60cd[_0x5cded5(0xf3)](_0x5cded5(0x137))),console['log'](a113_0x2e60cd[_0x5cded5(0x107)](_0x5cded5(0xe3)[_0x5cded5(0x134)](0x1e))),console['log'](_0x5cded5(0x136)+a113_0x2e60cd[_0x5cded5(0xde)](_0x5cded5(0x11c))),console[_0x5cded5(0x145)](_0x5cded5(0x135)+_0x283b95['message']),Object[_0x5cded5(0xc8)][_0x5cded5(0xfb)][_0x5cded5(0x141)](_0x2e3408[_0x5cded5(0xe5)],'routing')&&console[_0x5cded5(0x145)](_0x5cded5(0x108)+CLI_BIN_NAME+_0x5cded5(0xc3)),Object[_0x5cded5(0xc8)][_0x5cded5(0xfb)][_0x5cded5(0x141)](_0x2e3408[_0x5cded5(0xe6)],_0x5cded5(0xf9))&&console[_0x5cded5(0x145)](_0x5cded5(0x10a)+CLI_BIN_NAME+'\x20config\x20delete\x20routing\x20--global'));console[_0x5cded5(0x145)](),console['log'](a113_0x2e60cd[_0x5cded5(0xf3)]('\x20\x20Merged\x20Config')),console['log'](a113_0x2e60cd[_0x5cded5(0x107)]('\x20\x20─'[_0x5cded5(0x134)](0x1e))),console[_0x5cded5(0x145)]('\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x5d7b06[_0x5cded5(0xff)]||a113_0x2e60cd[_0x5cded5(0xde)](_0x5cded5(0x11b))));const _0x43bf63=_0x417160?a113_0x2e60cd['red'](describeRegionValue(_0x5d7b06[_0x5cded5(0x105)]??_0x5d7b06[_0x5cded5(0xcb)]?.['region'])+_0x5cded5(0x12d)):(_0x5d7b06[_0x5cded5(0xfa)]??DEFAULT_LOVRABET_REGION)+'\x20('+(_0x5d7b06[_0x5cded5(0x14f)]??'default')+')';console[_0x5cded5(0x145)](_0x5cded5(0x114)+_0x43bf63),console[_0x5cded5(0x145)](_0x5cded5(0xed)+_0x5d7b06['env']),console[_0x5cded5(0x145)](_0x5cded5(0xf5)+_0x5d7b06[_0x5cded5(0x140)]),console[_0x5cded5(0x145)](_0x5cded5(0xf7)+_0x5d7b06['apiDir']),console[_0x5cded5(0x145)]('\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20'+(_0x5d7b06[_0x5cded5(0x122)]||a113_0x2e60cd['gray']('(none)'))),console[_0x5cded5(0x145)](_0x5cded5(0xd2)+(_0x5d7b06[_0x5cded5(0xc7)]||a113_0x2e60cd[_0x5cded5(0x107)](_0x5cded5(0xd5)))),console[_0x5cded5(0x145)](_0x5cded5(0x10d)+(_0x5d7b06['explicitAppName']||a113_0x2e60cd[_0x5cded5(0x107)](_0x5cded5(0xd5)))),console[_0x5cded5(0x145)](_0x5cded5(0x12a)+(_0x5d7b06[_0x5cded5(0x139)]||a113_0x2e60cd['gray'](_0x5cded5(0xe9)+DEFAULT_CONFIG_VALUES[_0x5cded5(0x139)]+')'))),console[_0x5cded5(0x145)](_0x5cded5(0x143)+(_0x5d7b06[_0x5cded5(0x13b)]??a113_0x2e60cd[_0x5cded5(0x107)]('(default)'))),console['log'](_0x5cded5(0xc9)+_0x5d7b06[_0x5cded5(0xe7)]),console[_0x5cded5(0x145)](_0x5cded5(0xdb)+_0x5d7b06[_0x5cded5(0xf1)]),console['log'](_0x5cded5(0xe2)+(_0x5d7b06[_0x5cded5(0x149)]?a113_0x2e60cd[_0x5cded5(0x12c)]('(set,\x20length='+_0x5d7b06['cookie'][_0x5cded5(0x148)]+')'):_0x428487?a113_0x2e60cd[_0x5cded5(0x12c)](_0x5cded5(0x11f)+_0x428487[_0x5cded5(0x148)]+')'):a113_0x2e60cd[_0x5cded5(0x107)]('(none)')));const _0x2a7ac0=Object[_0x5cded5(0xd4)](_0x5d7b06[_0x5cded5(0x118)]);if(_0x2a7ac0[_0x5cded5(0x148)]>0x0){console['log'](),console[_0x5cded5(0x145)](a113_0x2e60cd[_0x5cded5(0xf3)]('\x20\x20Apps')),console['log'](a113_0x2e60cd[_0x5cded5(0x107)]('\x20\x20─'[_0x5cded5(0x134)](0x1e)));for(const _0x14853b of _0x2a7ac0){const _0x217e6b=_0x5d7b06[_0x5cded5(0x118)][_0x14853b],_0x796ec8=_0x14853b===_0x5d7b06[_0x5cded5(0x122)],_0x2a1300=_0x14853b===_0x5d7b06[_0x5cded5(0xc7)],_0x17533=_0x2a1300?a113_0x2e60cd['green'](_0x5cded5(0x147)):'',_0x77629e=_0x796ec8?'\x20(default)':'';console[_0x5cded5(0x145)]('\x20\x20'+_0x14853b+_0x77629e+_0x17533),console[_0x5cded5(0x145)](_0x5cded5(0xdc)+_0x217e6b[_0x5cded5(0xf4)]);const _0x38bb85=_0x2e3408[_0x5cded5(0xe5)][_0x5cded5(0x118)]&&typeof _0x2e3408[_0x5cded5(0xe5)][_0x5cded5(0x118)]===_0x5cded5(0x132)?_0x2e3408[_0x5cded5(0xe5)]['apps']:{},_0x3d3ca7=Object[_0x5cded5(0xc8)]['hasOwnProperty'][_0x5cded5(0x141)](_0x38bb85,_0x14853b),_0x1e224e=isInvalidLovrabetRegion(_0x217e6b[_0x5cded5(0xfa)])?{'region':_0x5d7b06[_0x5cded5(0xfa)]??DEFAULT_LOVRABET_REGION}:resolveEffectiveRegion({'appRegion':_0x217e6b['region'],'projectRegion':_0x3d3ca7?_0x2e3408[_0x5cded5(0xe5)]['region']:undefined,'globalRegion':_0x2e3408[_0x5cded5(0xe6)][_0x5cded5(0xfa)],'mergedRegion':_0x5d7b06[_0x5cded5(0xcb)][_0x5cded5(0xfa)],'appName':_0x14853b}),_0x2859ff=buildAppDoctorFields(_0x217e6b,{'region':_0x1e224e['region'],'env':_0x5d7b06['env'],'apiDir':_0x5d7b06[_0x5cded5(0xcb)][_0x5cded5(0x110)]||DEFAULT_CONFIG_VALUES['apiDir'],'cookie':_0x5d7b06['cookie']||_0x428487||undefined,'accessKey':_0x5d7b06[_0x5cded5(0x116)]});console['log']('\x20\x20\x20\x20region:\x20\x20\x20\x20\x20'+_0x2859ff['region'][_0x5cded5(0xe8)]+'\x20\x20'+a113_0x2e60cd[_0x5cded5(0x107)]('('+_0x2859ff['region'][_0x5cded5(0xd0)]+')')),console[_0x5cded5(0x145)](_0x5cded5(0x104)+_0x2859ff[_0x5cded5(0xd8)]['value']+'\x20\x20'+a113_0x2e60cd[_0x5cded5(0x107)]('('+_0x2859ff['env'][_0x5cded5(0xd0)]+')')),console[_0x5cded5(0x145)]('\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20'+_0x2859ff[_0x5cded5(0x110)]['value']+'\x20\x20'+a113_0x2e60cd['gray']('('+_0x2859ff['apiDir'][_0x5cded5(0xd0)]+')'));const _0x4b730d=_0x2859ff['cookie']['value']?a113_0x2e60cd['green'](_0x5cded5(0xfc)+_0x2859ff['cookie'][_0x5cded5(0xe8)][_0x5cded5(0x148)]+')'):a113_0x2e60cd[_0x5cded5(0x107)](_0x5cded5(0xd5));console['log'](_0x5cded5(0xee)+_0x4b730d+'\x20\x20'+a113_0x2e60cd[_0x5cded5(0x107)]('('+_0x2859ff[_0x5cded5(0x149)][_0x5cded5(0xd0)]+')'));const _0x4c59df=_0x2859ff[_0x5cded5(0x116)][_0x5cded5(0xe8)]?a113_0x2e60cd[_0x5cded5(0x12c)](_0x5cded5(0xfc)+_0x2859ff[_0x5cded5(0x116)]['value'][_0x5cded5(0x148)]+')'):a113_0x2e60cd[_0x5cded5(0x107)](_0x5cded5(0xd5));console['log']('\x20\x20\x20\x20accessKey:\x20\x20'+_0x4c59df+'\x20\x20'+a113_0x2e60cd['gray']('('+_0x2859ff['accessKey'][_0x5cded5(0xd0)]+')'));}}console[_0x5cded5(0x145)](),console[_0x5cded5(0x145)](a113_0x2e60cd[_0x5cded5(0xf3)]('\x20\x20API\x20Endpoints')),console[_0x5cded5(0x145)](a113_0x2e60cd['gray'](_0x5cded5(0xe3)[_0x5cded5(0x134)](0x1e)));_0x283b95?console[_0x5cded5(0x145)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a113_0x2e60cd[_0x5cded5(0xde)]('Unavailable\x20until\x20routing\x20configuration\x20is\x20repaired')):(console['log'](_0x5cded5(0x114)+getActiveRegion()),console[_0x5cded5(0x145)](_0x5cded5(0xd6)+getApiDomain()),console[_0x5cded5(0x145)](_0x5cded5(0x119)+getUserDomain()),console['log'](_0x5cded5(0xfe)+getRuntimeDomain()),console[_0x5cded5(0x145)](_0x5cded5(0x14c)+getSkillDomain()),console['log'](_0x5cded5(0x144)+getKbDomain()),console[_0x5cded5(0x145)](_0x5cded5(0xec)+(getKbServiceDomain()??_0x5cded5(0x11d))),console[_0x5cded5(0x145)](_0x5cded5(0xeb)+getAppDomain()));console[_0x5cded5(0x145)](),console['log'](a113_0x2e60cd[_0x5cded5(0xf3)](_0x5cded5(0x150))),console[_0x5cded5(0x145)](a113_0x2e60cd[_0x5cded5(0x107)]('\x20\x20─'['repeat'](0x1e)));if(_0x283b95)console[_0x5cded5(0x145)](_0x5cded5(0x136)+a113_0x2e60cd[_0x5cded5(0xda)](_0x5cded5(0x126)));else{if(_0x428487){const _0x1ac648=await getIsSessionValid();console[_0x5cded5(0x145)](_0x5cded5(0x136)+(_0x1ac648?a113_0x2e60cd[_0x5cded5(0x12c)]('✓\x20Valid'):a113_0x2e60cd[_0x5cded5(0xde)](_0x5cded5(0xdf))));}else console[_0x5cded5(0x145)](_0x5cded5(0x136)+a113_0x2e60cd[_0x5cded5(0xde)]('✗\x20Not\x20logged\x20in'));}return console[_0x5cded5(0x145)](),{'ok':!![]};}function a113_0x2c60(_0x3908e4,_0x21796a){_0x3908e4=_0x3908e4-0xc2;const _0x548e07=a113_0x548e();let _0x2c60ba=_0x548e07[_0x3908e4];return _0x2c60ba;}export const doctorDefinition={'service':a113_0x2ae37c(0xca),'command':'check','description':'Diagnose\x20CLI\x20configuration\x20and\x20connectivity','risk':a113_0x2ae37c(0x146),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
|
|
1
|
+
const a114_0x36dcb7=a114_0xb0fd;(function(_0x371195,_0x1df76c){const _0x315acf=a114_0xb0fd,_0x3696f7=_0x371195();while(!![]){try{const _0xef3fa1=-parseInt(_0x315acf(0xc0))/0x1+-parseInt(_0x315acf(0x107))/0x2+parseInt(_0x315acf(0x125))/0x3+-parseInt(_0x315acf(0x138))/0x4*(parseInt(_0x315acf(0xbc))/0x5)+-parseInt(_0x315acf(0xb7))/0x6+parseInt(_0x315acf(0xf7))/0x7+parseInt(_0x315acf(0xbb))/0x8;if(_0xef3fa1===_0x1df76c)break;else _0x3696f7['push'](_0x3696f7['shift']());}catch(_0x1f9297){_0x3696f7['push'](_0x3696f7['shift']());}}}(a114_0x3454,0xa0e45));import a114_0x2eff46 from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';import{getActiveRegion,getApiDomain,getAppDomain,getKbDomain,getKbServiceDomain,getSkillDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags,initGlobalEnvironment,inspectCliConfigJsonFile,loadRawConfigLayers}from'../context.js';import{getIsSessionValid}from'../auth/is-session-valid.js';import{getCookie}from'../auth/get-cookie.js';function a114_0xb0fd(_0x293ff3,_0x545bc2){_0x293ff3=_0x293ff3-0xae;const _0x34543a=a114_0x3454();let _0xb0fdf3=_0x34543a[_0x293ff3];return _0xb0fdf3;}import{buildAppDoctorFields}from'../config/schema.js';import{resolveEffectiveRegion}from'../config/region-config.js';function a114_0x3454(){const _0x5856d7=['Repair\x20','bold','(set,\x20length=','✗\x20Invalid\x20JSON','\x20\x20kbDomain:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','packageVersion','globalConfig','env','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','explicitAppName','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','(not\x20found)','\x20\x20Routing\x20Configuration','reason','\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','prototype','6673499WvvwWw','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Config\x20Files','arch','\x20config\x20delete\x20region\x20--global','\x20+\x20','\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','format','green','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(default)','value','\x20doctor','\x20config','global','✓\x20Valid','544570iTGEWr','padEnd','\x20\x20Auth','\x20\x20API\x20Endpoints','object','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','version','raw','yellow','\x20\x20Skill\x20Version:\x20\x20\x20','✗\x20Expired','ignored\x20in\x20','stringify','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','toLowerCase','✗\x20Invalid\x20','message','skillVersion','\x20\x20appDomain:\x20\x20\x20\x20\x20\x20\x20','Set\x20apps.','\x20config\x20delete\x20routing','appCode','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','pageSize','\x20\x20Config\x20JSON','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','\x20config\x20delete\x20inherit','(set\x20via\x20file,\x20length=','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','1654131QgKWYK','\x20\x20Repair\x20project:\x20\x20','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','state','label','✗\x20Invalid','current','Not\x20checked\x20until\x20routing\x20configuration\x20is\x20repaired','region','\x20config\x20delete\x20inherit\x20--global','\x20\x20Repair\x20global:\x20\x20\x20','hasOwnProperty','\x20\x20Package\x20Version:\x20','apps','currentApp','red','\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','✓\x20Valid\x20JSON','\x20\x20Repair\x20global:\x20\x20\x20\x20','56520idxyqR','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','\x20app\x20\x22','verbose','empty','routing','cookie','appcode','platform','source','2194362gLGBkP','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','call','(none)','12679136wVpCEZ','295OcRHli','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','regionConfiguredValue','unknown','958931ttATtt','projectConfig','riskLevel','status','\x20\x20skillDomain:\x20\x20\x20\x20\x20','installedPath','(default:\x20','length','Project','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','accessKey','default','\x20\x20Installed\x20Path:\x20\x20','apiDir','check','regionSource','defaultApp','slice','repeat','\x20\x20kbServiceDomain:\x20','inherit','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','log','locale','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','Global','includes','filter','\x20\x20runtimeDomain:\x20\x20\x20','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','(no\x20file)','string','\x20\x20─','gray','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20app\x20locale:\x20\x20\x20\x20\x20\x20','repairCommand','\x20(invalid)'];a114_0x3454=function(){return _0x5856d7;};return a114_0x3454();}import{inspectBuiltinSkill}from'../skills/builtin-skill.js';import{DEFAULT_LOVRABET_REGION,isInvalidLovrabetRegion}from'../constant/region.js';function describeRegionValue(_0x261b63){const _0x5d0faf=a114_0xb0fd;return typeof _0x261b63===_0x5d0faf(0xdf)?JSON[_0x5d0faf(0x113)](_0x261b63):'<'+(_0x261b63===null?'null':typeof _0x261b63)+'>';}async function execute(_0x3c9b51){const _0x5d34c4=a114_0xb0fd,_0xdf8624=GIT_COMMIT!==_0x5d34c4(0xbf)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x5d34c4(0xd1)](0x0,0xa)+')':VERSION,_0x52db83=buildConfigFromFlags({}),_0x163e55=getCookie();let _0x5f2c9f;try{await initGlobalEnvironment(_0x52db83);}catch(_0x38ec28){_0x5f2c9f=_0x38ec28 instanceof Error?_0x38ec28:new Error(String(_0x38ec28));}console[_0x5d34c4(0xd6)](),console[_0x5d34c4(0xd6)](a114_0x2eff46[_0x5d34c4(0xe7)](CLI_BIN_NAME+_0x5d34c4(0x103))),console[_0x5d34c4(0xd6)](a114_0x2eff46[_0x5d34c4(0xe1)]('─'[_0x5d34c4(0xd2)](0x32))),console[_0x5d34c4(0xd6)](_0x5d34c4(0xbd)+_0xdf8624),console[_0x5d34c4(0xd6)]('\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+process[_0x5d34c4(0x10d)]),console[_0x5d34c4(0xd6)](_0x5d34c4(0xd5)+process[_0x5d34c4(0xb5)]+'\x20'+process[_0x5d34c4(0xfa)]);const _0x34ce3b=inspectBuiltinSkill();console[_0x5d34c4(0xd6)](),console['log'](a114_0x2eff46['bold']('\x20\x20Built-in\x20Skill')),console[_0x5d34c4(0xd6)](a114_0x2eff46[_0x5d34c4(0xe1)]('\x20\x20─'[_0x5d34c4(0xd2)](0x1e)));const _0x2c8ca7=_0x34ce3b[_0x5d34c4(0x128)]===_0x5d34c4(0x12b)?a114_0x2eff46['green']('✓\x20'+_0x34ce3b[_0x5d34c4(0x128)]):a114_0x2eff46[_0x5d34c4(0x134)]('✗\x20'+_0x34ce3b[_0x5d34c4(0x128)]);console[_0x5d34c4(0xd6)]('\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x2c8ca7),console[_0x5d34c4(0xd6)](_0x5d34c4(0x131)+_0x34ce3b[_0x5d34c4(0xec)]),console[_0x5d34c4(0xd6)](_0x5d34c4(0x110)+(_0x34ce3b[_0x5d34c4(0x118)]||a114_0x2eff46[_0x5d34c4(0xe1)]('(unknown)'))),console['log'](_0x5d34c4(0xcc)+(_0x34ce3b[_0x5d34c4(0xc5)]||a114_0x2eff46[_0x5d34c4(0xe1)]('(not\x20found)')));if(_0x34ce3b[_0x5d34c4(0xf4)])console[_0x5d34c4(0xd6)](_0x5d34c4(0xfd)+_0x34ce3b[_0x5d34c4(0xf4)]);_0x34ce3b[_0x5d34c4(0x128)]!==_0x5d34c4(0x12b)&&console['log'](_0x5d34c4(0x135)+_0x34ce3b[_0x5d34c4(0xe4)]);console['log'](),console['log'](a114_0x2eff46[_0x5d34c4(0xe7)](_0x5d34c4(0xf9))),console[_0x5d34c4(0xd6)](a114_0x2eff46[_0x5d34c4(0xe1)](_0x5d34c4(0xe0)['repeat'](0x1e)));const _0x49658e=getGlobalConfigPath(),_0x54cb9c=getProjectConfigPath();console[_0x5d34c4(0xd6)](_0x5d34c4(0xf8)+(_0x49658e||a114_0x2eff46[_0x5d34c4(0xe1)](_0x5d34c4(0xf2)))),console[_0x5d34c4(0xd6)](_0x5d34c4(0xe2)+(_0x54cb9c||a114_0x2eff46['gray'](_0x5d34c4(0xf2)))),console[_0x5d34c4(0xd6)](),console[_0x5d34c4(0xd6)](a114_0x2eff46[_0x5d34c4(0xe7)](_0x5d34c4(0x11f))),console[_0x5d34c4(0xd6)](a114_0x2eff46[_0x5d34c4(0xe1)]('\x20\x20─'[_0x5d34c4(0xd2)](0x1e)));const _0x3a3bbf=(_0x2bbd49,_0x3dc5a3)=>{const _0x3a558b=_0x5d34c4;if(!_0x3dc5a3){console['log']('\x20\x20'+_0x2bbd49[_0x3a558b(0x108)](0x11)+'\x20'+a114_0x2eff46[_0x3a558b(0xe1)](_0x3a558b(0xde)));return;}const _0x49af67=inspectCliConfigJsonFile(_0x3dc5a3);if(_0x49af67[_0x3a558b(0xc3)]==='ok')console[_0x3a558b(0xd6)]('\x20\x20'+_0x2bbd49[_0x3a558b(0x108)](0x11)+'\x20'+a114_0x2eff46[_0x3a558b(0xff)](_0x3a558b(0x136)));else{if(_0x49af67[_0x3a558b(0xc3)]===_0x3a558b(0xb1))console[_0x3a558b(0xd6)]('\x20\x20'+_0x2bbd49[_0x3a558b(0x108)](0x11)+'\x20'+a114_0x2eff46[_0x3a558b(0x10f)]('⚠\x20Empty\x20(treated\x20as\x20{})'));else _0x49af67['status']==='missing'?console[_0x3a558b(0xd6)]('\x20\x20'+_0x2bbd49['padEnd'](0x11)+'\x20'+a114_0x2eff46[_0x3a558b(0xe1)]('(missing)')):(console['log']('\x20\x20'+_0x2bbd49[_0x3a558b(0x108)](0x11)+'\x20'+a114_0x2eff46[_0x3a558b(0x134)](_0x3a558b(0xe9))),console[_0x3a558b(0xd6)]('\x20\x20'+''[_0x3a558b(0x108)](0x11)+'\x20'+a114_0x2eff46[_0x3a558b(0x134)](_0x49af67[_0x3a558b(0x117)])));}};_0x3a3bbf(_0x5d34c4(0xd9),_0x49658e),_0x3a3bbf(_0x5d34c4(0xc8),_0x54cb9c);const _0x150f2b=loadRawConfigLayers(),_0xc1eaff=[{'label':'Project','value':_0x150f2b[_0x5d34c4(0xc1)]['region'],'present':Object['prototype']['hasOwnProperty'][_0x5d34c4(0xb9)](_0x150f2b[_0x5d34c4(0xc1)],_0x5d34c4(0x12d)),'repairCommand':CLI_BIN_NAME+'\x20config\x20delete\x20region'},{'label':'Global','value':_0x150f2b[_0x5d34c4(0xed)][_0x5d34c4(0x12d)],'present':Object[_0x5d34c4(0xf6)][_0x5d34c4(0x130)][_0x5d34c4(0xb9)](_0x150f2b[_0x5d34c4(0xed)],_0x5d34c4(0x12d)),'repairCommand':CLI_BIN_NAME+_0x5d34c4(0xfb)}][_0x5d34c4(0xdb)](_0x397d28=>_0x397d28['present']&&isInvalidLovrabetRegion(_0x397d28['value']));for(const [_0x300ea4,_0x44f238]of[[_0x5d34c4(0xc8),_0x150f2b[_0x5d34c4(0xc1)]],[_0x5d34c4(0xd9),_0x150f2b[_0x5d34c4(0xed)]]]){const _0x52c9e4=_0x44f238['apps']&&typeof _0x44f238[_0x5d34c4(0x132)]===_0x5d34c4(0x10b)?_0x44f238[_0x5d34c4(0x132)]:{};for(const [_0x5ab336,_0x565353]of Object['entries'](_0x52c9e4)){if(!_0x565353||typeof _0x565353!==_0x5d34c4(0x10b)||!Object['prototype']['hasOwnProperty']['call'](_0x565353,'region'))continue;isInvalidLovrabetRegion(_0x565353[_0x5d34c4(0x12d)])&&_0xc1eaff['push']({'label':_0x300ea4+_0x5d34c4(0xaf)+_0x5ab336+'\x22','value':_0x565353[_0x5d34c4(0x12d)],'present':!![],'repairCommand':_0x5d34c4(0x11a)+_0x5ab336+'.region\x20to\x20cn\x20or\x20id\x20in\x20'+_0x300ea4[_0x5d34c4(0x115)]()+_0x5d34c4(0x104)});}}if(_0xc1eaff[_0x5d34c4(0xc7)]>0x0){console['log'](),console['log'](a114_0x2eff46[_0x5d34c4(0xe7)]('\x20\x20Country/Region\x20Configuration')),console[_0x5d34c4(0xd6)](a114_0x2eff46['gray'](_0x5d34c4(0xe0)['repeat'](0x1e)));for(const _0x43ddf1 of _0xc1eaff){console[_0x5d34c4(0xd6)]('\x20\x20'+_0x43ddf1[_0x5d34c4(0x129)][_0x5d34c4(0x108)](0x11)+'\x20'+a114_0x2eff46[_0x5d34c4(0x134)](_0x5d34c4(0x116)+describeRegionValue(_0x43ddf1[_0x5d34c4(0x102)]))),console[_0x5d34c4(0xd6)]('\x20\x20'+(_0x5d34c4(0xe6)+_0x43ddf1[_0x5d34c4(0x129)][_0x5d34c4(0x115)]()+':')[_0x5d34c4(0x108)](0x10)+'\x20'+_0x43ddf1[_0x5d34c4(0xe4)]);}}const _0xfd1b89=[Object[_0x5d34c4(0xf6)][_0x5d34c4(0x130)][_0x5d34c4(0xb9)](_0x150f2b['globalConfig'],_0x5d34c4(0xd4))?_0x5d34c4(0x105):null,Object[_0x5d34c4(0xf6)]['hasOwnProperty'][_0x5d34c4(0xb9)](_0x150f2b[_0x5d34c4(0xc1)],'inherit')?'project':null][_0x5d34c4(0xdb)](Boolean);_0xfd1b89[_0x5d34c4(0xc7)]>0x0&&(console[_0x5d34c4(0xd6)]('\x20\x20Legacy\x20inherit:\x20\x20\x20'+a114_0x2eff46[_0x5d34c4(0x10f)](_0x5d34c4(0x112)+_0xfd1b89['join'](_0x5d34c4(0xfc))+_0x5d34c4(0x104))),_0xfd1b89[_0x5d34c4(0xda)]('project')&&console[_0x5d34c4(0xd6)]('\x20\x20Repair\x20project:\x20\x20\x20'+CLI_BIN_NAME+_0x5d34c4(0x122)),_0xfd1b89[_0x5d34c4(0xda)](_0x5d34c4(0x105))&&console[_0x5d34c4(0xd6)](_0x5d34c4(0x137)+CLI_BIN_NAME+_0x5d34c4(0x12e)));const _0x4b9096=isInvalidLovrabetRegion(_0x52db83['regionConfiguredValue']??_0x52db83[_0x5d34c4(0x10e)]?.[_0x5d34c4(0x12d)]);_0x5f2c9f&&!_0x4b9096&&(console[_0x5d34c4(0xd6)](),console['log'](a114_0x2eff46[_0x5d34c4(0xe7)](_0x5d34c4(0xf3))),console['log'](a114_0x2eff46[_0x5d34c4(0xe1)](_0x5d34c4(0xe0)['repeat'](0x1e))),console[_0x5d34c4(0xd6)](_0x5d34c4(0x127)+a114_0x2eff46[_0x5d34c4(0x134)](_0x5d34c4(0x12a))),console[_0x5d34c4(0xd6)](_0x5d34c4(0xfd)+_0x5f2c9f['message']),Object[_0x5d34c4(0xf6)][_0x5d34c4(0x130)][_0x5d34c4(0xb9)](_0x150f2b[_0x5d34c4(0xc1)],_0x5d34c4(0xb2))&&console[_0x5d34c4(0xd6)](_0x5d34c4(0x126)+CLI_BIN_NAME+_0x5d34c4(0x11b)),Object['prototype'][_0x5d34c4(0x130)][_0x5d34c4(0xb9)](_0x150f2b[_0x5d34c4(0xed)],_0x5d34c4(0xb2))&&console[_0x5d34c4(0xd6)](_0x5d34c4(0x12f)+CLI_BIN_NAME+'\x20config\x20delete\x20routing\x20--global'));console[_0x5d34c4(0xd6)](),console[_0x5d34c4(0xd6)](a114_0x2eff46[_0x5d34c4(0xe7)]('\x20\x20Merged\x20Config')),console[_0x5d34c4(0xd6)](a114_0x2eff46[_0x5d34c4(0xe1)]('\x20\x20─'[_0x5d34c4(0xd2)](0x1e))),console['log'](_0x5d34c4(0xd8)+(_0x52db83[_0x5d34c4(0x11c)]||a114_0x2eff46[_0x5d34c4(0x134)]('(not\x20set)')));const _0x46a5f7=_0x4b9096?a114_0x2eff46[_0x5d34c4(0x134)](describeRegionValue(_0x52db83[_0x5d34c4(0xbe)]??_0x52db83[_0x5d34c4(0x10e)]?.['region'])+_0x5d34c4(0xe5)):(_0x52db83['region']??DEFAULT_LOVRABET_REGION)+'\x20('+(_0x52db83[_0x5d34c4(0xcf)]??_0x5d34c4(0xcb))+')';console[_0x5d34c4(0xd6)]('\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x46a5f7),console[_0x5d34c4(0xd6)](_0x5d34c4(0x100)+_0x52db83['env']),console[_0x5d34c4(0xd6)](_0x5d34c4(0xe3)+_0x52db83[_0x5d34c4(0xd7)]),console[_0x5d34c4(0xd6)](_0x5d34c4(0x10c)+_0x52db83[_0x5d34c4(0xcd)]),console['log'](_0x5d34c4(0x114)+(_0x52db83[_0x5d34c4(0xd0)]||a114_0x2eff46['gray'](_0x5d34c4(0xba)))),console['log'](_0x5d34c4(0xae)+(_0x52db83[_0x5d34c4(0x133)]||a114_0x2eff46[_0x5d34c4(0xe1)](_0x5d34c4(0xba)))),console['log']('\x20\x20explicitAppName:\x20'+(_0x52db83[_0x5d34c4(0xf0)]||a114_0x2eff46[_0x5d34c4(0xe1)](_0x5d34c4(0xba)))),console[_0x5d34c4(0xd6)](_0x5d34c4(0x11d)+(_0x52db83[_0x5d34c4(0xfe)]||a114_0x2eff46[_0x5d34c4(0xe1)](_0x5d34c4(0xc6)+DEFAULT_CONFIG_VALUES['format']+')'))),console[_0x5d34c4(0xd6)]('\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x52db83[_0x5d34c4(0x11e)]??a114_0x2eff46[_0x5d34c4(0xe1)](_0x5d34c4(0x101)))),console['log'](_0x5d34c4(0x121)+_0x52db83[_0x5d34c4(0xc2)]),console[_0x5d34c4(0xd6)](_0x5d34c4(0xf1)+_0x52db83[_0x5d34c4(0xb0)]),console[_0x5d34c4(0xd6)]('\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x52db83[_0x5d34c4(0xb3)]?a114_0x2eff46['green'](_0x5d34c4(0xe8)+_0x52db83[_0x5d34c4(0xb3)][_0x5d34c4(0xc7)]+')'):_0x163e55?a114_0x2eff46[_0x5d34c4(0xff)](_0x5d34c4(0x123)+_0x163e55['length']+')'):a114_0x2eff46[_0x5d34c4(0xe1)](_0x5d34c4(0xba))));const _0x3cb2e8=Object['keys'](_0x52db83[_0x5d34c4(0x132)]);if(_0x3cb2e8[_0x5d34c4(0xc7)]>0x0){console[_0x5d34c4(0xd6)](),console[_0x5d34c4(0xd6)](a114_0x2eff46[_0x5d34c4(0xe7)]('\x20\x20Apps')),console[_0x5d34c4(0xd6)](a114_0x2eff46['gray']('\x20\x20─'[_0x5d34c4(0xd2)](0x1e)));for(const _0x5e3260 of _0x3cb2e8){const _0x3d3d70=_0x52db83[_0x5d34c4(0x132)][_0x5e3260],_0x4a2b3a=_0x5e3260===_0x52db83[_0x5d34c4(0xd0)],_0x1e90c4=_0x5e3260===_0x52db83[_0x5d34c4(0x133)],_0x181d1f=_0x1e90c4?a114_0x2eff46[_0x5d34c4(0xff)]('\x20←\x20current'):'',_0x36e61c=_0x4a2b3a?'\x20(default)':'';console[_0x5d34c4(0xd6)]('\x20\x20'+_0x5e3260+_0x36e61c+_0x181d1f),console['log'](_0x5d34c4(0x120)+_0x3d3d70[_0x5d34c4(0xb4)]);const _0x39d5fe=_0x150f2b['projectConfig'][_0x5d34c4(0x132)]&&typeof _0x150f2b[_0x5d34c4(0xc1)]['apps']===_0x5d34c4(0x10b)?_0x150f2b[_0x5d34c4(0xc1)]['apps']:{},_0x1d63bb=Object[_0x5d34c4(0xf6)][_0x5d34c4(0x130)][_0x5d34c4(0xb9)](_0x39d5fe,_0x5e3260),_0x31e657=isInvalidLovrabetRegion(_0x3d3d70[_0x5d34c4(0x12d)])?{'region':_0x52db83[_0x5d34c4(0x12d)]??DEFAULT_LOVRABET_REGION}:resolveEffectiveRegion({'appRegion':_0x3d3d70['region'],'projectRegion':_0x1d63bb?_0x150f2b[_0x5d34c4(0xc1)][_0x5d34c4(0x12d)]:undefined,'globalRegion':_0x150f2b['globalConfig'][_0x5d34c4(0x12d)],'mergedRegion':_0x52db83[_0x5d34c4(0x10e)]['region'],'appName':_0x5e3260}),_0x84d278=buildAppDoctorFields(_0x3d3d70,{'region':_0x31e657[_0x5d34c4(0x12d)],'env':_0x52db83[_0x5d34c4(0xee)],'apiDir':_0x52db83[_0x5d34c4(0x10e)][_0x5d34c4(0xcd)]||DEFAULT_CONFIG_VALUES['apiDir'],'cookie':_0x52db83[_0x5d34c4(0xb3)]||_0x163e55||undefined,'accessKey':_0x52db83[_0x5d34c4(0xca)]});console[_0x5d34c4(0xd6)]('\x20\x20\x20\x20region:\x20\x20\x20\x20\x20'+_0x84d278[_0x5d34c4(0x12d)][_0x5d34c4(0x102)]+'\x20\x20'+a114_0x2eff46['gray']('('+_0x84d278['region'][_0x5d34c4(0xb6)]+')')),console[_0x5d34c4(0xd6)](_0x5d34c4(0xc9)+_0x84d278['env'][_0x5d34c4(0x102)]+'\x20\x20'+a114_0x2eff46[_0x5d34c4(0xe1)]('('+_0x84d278[_0x5d34c4(0xee)][_0x5d34c4(0xb6)]+')')),console['log'](_0x5d34c4(0x124)+_0x84d278['apiDir'][_0x5d34c4(0x102)]+'\x20\x20'+a114_0x2eff46[_0x5d34c4(0xe1)]('('+_0x84d278[_0x5d34c4(0xcd)][_0x5d34c4(0xb6)]+')'));const _0xa61195=_0x84d278[_0x5d34c4(0xb3)][_0x5d34c4(0x102)]?a114_0x2eff46[_0x5d34c4(0xff)](_0x5d34c4(0xe8)+_0x84d278['cookie'][_0x5d34c4(0x102)]['length']+')'):a114_0x2eff46[_0x5d34c4(0xe1)](_0x5d34c4(0xba));console['log'](_0x5d34c4(0xef)+_0xa61195+'\x20\x20'+a114_0x2eff46[_0x5d34c4(0xe1)]('('+_0x84d278[_0x5d34c4(0xb3)][_0x5d34c4(0xb6)]+')'));const _0x18af63=_0x84d278['accessKey'][_0x5d34c4(0x102)]?a114_0x2eff46[_0x5d34c4(0xff)](_0x5d34c4(0xe8)+_0x84d278[_0x5d34c4(0xca)][_0x5d34c4(0x102)]['length']+')'):a114_0x2eff46[_0x5d34c4(0xe1)](_0x5d34c4(0xba));console[_0x5d34c4(0xd6)]('\x20\x20\x20\x20accessKey:\x20\x20'+_0x18af63+'\x20\x20'+a114_0x2eff46[_0x5d34c4(0xe1)]('('+_0x84d278[_0x5d34c4(0xca)][_0x5d34c4(0xb6)]+')'));}}console[_0x5d34c4(0xd6)](),console[_0x5d34c4(0xd6)](a114_0x2eff46[_0x5d34c4(0xe7)](_0x5d34c4(0x10a))),console[_0x5d34c4(0xd6)](a114_0x2eff46[_0x5d34c4(0xe1)](_0x5d34c4(0xe0)[_0x5d34c4(0xd2)](0x1e)));_0x5f2c9f?console[_0x5d34c4(0xd6)](_0x5d34c4(0x127)+a114_0x2eff46[_0x5d34c4(0x134)]('Unavailable\x20until\x20routing\x20configuration\x20is\x20repaired')):(console[_0x5d34c4(0xd6)](_0x5d34c4(0xf5)+getActiveRegion()),console[_0x5d34c4(0xd6)](_0x5d34c4(0xeb)+getApiDomain()),console[_0x5d34c4(0xd6)](_0x5d34c4(0xdd)+getUserDomain()),console[_0x5d34c4(0xd6)](_0x5d34c4(0xdc)+getRuntimeDomain()),console[_0x5d34c4(0xd6)](_0x5d34c4(0xc4)+getSkillDomain()),console[_0x5d34c4(0xd6)](_0x5d34c4(0xea)+getKbDomain()),console['log'](_0x5d34c4(0xd3)+(getKbServiceDomain()??'not\x20configured')),console[_0x5d34c4(0xd6)](_0x5d34c4(0x119)+getAppDomain()));console[_0x5d34c4(0xd6)](),console[_0x5d34c4(0xd6)](a114_0x2eff46['bold'](_0x5d34c4(0x109))),console[_0x5d34c4(0xd6)](a114_0x2eff46[_0x5d34c4(0xe1)](_0x5d34c4(0xe0)['repeat'](0x1e)));if(_0x5f2c9f)console[_0x5d34c4(0xd6)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a114_0x2eff46[_0x5d34c4(0x10f)](_0x5d34c4(0x12c)));else{if(_0x163e55){const _0x48eb9a=await getIsSessionValid();console[_0x5d34c4(0xd6)](_0x5d34c4(0x127)+(_0x48eb9a?a114_0x2eff46[_0x5d34c4(0xff)](_0x5d34c4(0x106)):a114_0x2eff46['red'](_0x5d34c4(0x111))));}else console['log']('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a114_0x2eff46['red']('✗\x20Not\x20logged\x20in'));}return console[_0x5d34c4(0xd6)](),{'ok':!![]};}export const doctorDefinition={'service':'doctor','command':a114_0x36dcb7(0xce),'description':a114_0x36dcb7(0xb8),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a115_0x23767f=a115_0x5076;(function(_0x5c255a,_0x471631){const _0x5b4182=a115_0x5076,_0x3a3fa8=_0x5c255a();while(!![]){try{const _0x3af435=-parseInt(_0x5b4182(0x7c))/0x1+parseInt(_0x5b4182(0x85))/0x2+parseInt(_0x5b4182(0x83))/0x3*(parseInt(_0x5b4182(0x90))/0x4)+-parseInt(_0x5b4182(0x78))/0x5*(parseInt(_0x5b4182(0x80))/0x6)+-parseInt(_0x5b4182(0x7a))/0x7+-parseInt(_0x5b4182(0x88))/0x8+parseInt(_0x5b4182(0x91))/0x9;if(_0x3af435===_0x471631)break;else _0x3a3fa8['push'](_0x3a3fa8['shift']());}catch(_0x243a0d){_0x3a3fa8['push'](_0x3a3fa8['shift']());}}}(a115_0x31b9,0x8af2f));import{requireDevelopmentUploadFile}from'../../commands/common/local-file.js';import{queryDevelopmentFileUrl,uploadDevelopmentFile}from'../../core/api-client.js';function a115_0x31b9(){const _0x4b5bdd=['2161476vmmDlP','Preview:\x20upload\x20','appCode','2391904ZSQuze','Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20or\x20immediate\x20access','string','\x20to\x20development\x20app\x20','Uploaded\x20file:\x20','filepath','Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL','File','788QaFRDA','8822412XQPFEq','file','/smartapi/common/uploadFile','Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','long-term','Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','bool','str','Development\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data','5eoDybI','read','1377180bbydJx','query-url','652778ObsdzZ','filePath','POST','path','3355662jLrClG','download','Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML','3288uLYFem','boolean'];a115_0x31b9=function(){return _0x4b5bdd;};return a115_0x31b9();}function a115_0x5076(_0x1af22d,_0x51e1e7){_0x1af22d=_0x1af22d-0x78;const _0x31b9c6=a115_0x31b9();let _0x50764a=_0x31b9c6[_0x1af22d];return _0x50764a;}import{CliErrors}from'../../errors.js';const FILE_FLAG={'name':a115_0x23767f(0x92),'type':'string','required':!![],'description':'Path\x20to\x20the\x20local\x20file\x20to\x20upload'},FILEPATH_FLAG={'name':a115_0x23767f(0x8d),'type':a115_0x23767f(0x8a),'required':!![],'description':a115_0x23767f(0x99)},DOWNLOAD_FLAG={'name':a115_0x23767f(0x81),'type':a115_0x23767f(0x84),'description':a115_0x23767f(0x8e)},LONG_TERM_FLAG={'name':a115_0x23767f(0x95),'type':a115_0x23767f(0x84),'description':a115_0x23767f(0x82)};function requireFilePath(_0x34b25f){const _0x4fd3fb=_0x34b25f['trim']();if(!_0x4fd3fb)throw CliErrors['validation']('filePath\x20is\x20required.');return _0x4fd3fb;}const fileUpload={'service':a115_0x23767f(0x92),'command':'upload','description':a115_0x23767f(0x96),'risk':a115_0x23767f(0x79),'flags':[FILE_FLAG],async 'dryRun'(_0x1dd7de){const _0x4072e1=a115_0x23767f,_0x57339c=requireDevelopmentUploadFile(_0x1dd7de[_0x4072e1(0x98)](_0x4072e1(0x92)),_0x4072e1(0x8f));return{'method':_0x4072e1(0x7e),'url':_0x4072e1(0x93),'body':{'appCode':_0x1dd7de[_0x4072e1(0x87)],'multipart':{'file':_0x57339c}},'description':_0x4072e1(0x86)+_0x57339c[_0x4072e1(0x7f)]+_0x4072e1(0x8b)+_0x1dd7de['appCode']};},async 'execute'(_0x7f5f81){const _0x5830c5=a115_0x23767f,_0x345b44=requireDevelopmentUploadFile(_0x7f5f81['str'](_0x5830c5(0x92)),'File'),_0x40fe10=await uploadDevelopmentFile(_0x7f5f81[_0x5830c5(0x87)],_0x345b44[_0x5830c5(0x7f)]);return{'ok':!![],'data':_0x40fe10,'message':_0x40fe10[_0x5830c5(0x7d)]?_0x5830c5(0x8c)+_0x40fe10[_0x5830c5(0x7d)]+'.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.':_0x5830c5(0x94)};}},fileQueryUrl={'service':a115_0x23767f(0x92),'command':a115_0x23767f(0x7b),'description':a115_0x23767f(0x89),'risk':a115_0x23767f(0x79),'flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0x53d71d){const _0x5cfcf4=a115_0x23767f,_0x1eb2e6=requireFilePath(_0x53d71d[_0x5cfcf4(0x98)](_0x5cfcf4(0x8d))),_0x223d71=await queryDevelopmentFileUrl(_0x1eb2e6,{'download':_0x53d71d[_0x5cfcf4(0x97)](_0x5cfcf4(0x81)),'longTerm':_0x53d71d[_0x5cfcf4(0x97)](_0x5cfcf4(0x95))});return{'ok':!![],'data':_0x223d71};}};export const fileDefinitions=[fileUpload,fileQueryUrl];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a116_0x78cee2=a116_0x27f0;(function(_0x49c001,_0x3bbd24){const _0x396211=a116_0x27f0,_0x5a5875=_0x49c001();while(!![]){try{const _0x54e9d5=parseInt(_0x396211(0x98))/0x1*(-parseInt(_0x396211(0x9f))/0x2)+parseInt(_0x396211(0x94))/0x3+parseInt(_0x396211(0x9b))/0x4+-parseInt(_0x396211(0x96))/0x5+parseInt(_0x396211(0xa2))/0x6+-parseInt(_0x396211(0x95))/0x7*(parseInt(_0x396211(0x97))/0x8)+parseInt(_0x396211(0x9c))/0x9;if(_0x54e9d5===_0x3bbd24)break;else _0x5a5875['push'](_0x5a5875['shift']());}catch(_0x262fa2){_0x5a5875['push'](_0x5a5875['shift']());}}}(a116_0x3df3,0x89451));function a116_0x3df3(){const _0x3889ba=['3FlLosp','POST','Created\x20flow\x20','3914236SJYzvu','2602665JwkYVF','write','flowName','374214nWyvUW','create','Create\x20a\x20draft\x20flow\x20definition\x20from\x20a\x20local\x20FlowConfig\x20file','5140422rtViWv','datasetCode','flow','appCode','\x20(id=','3286467ILqCKh','63LhukxF','5186495YgYYCc','941416fglQGb'];a116_0x3df3=function(){return _0x3889ba;};return a116_0x3df3();}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{asDryRunResult}from'../../commands/common/dry-run.js';function a116_0x27f0(_0x1421fe,_0x1d6001){_0x1421fe=_0x1421fe-0x94;const _0x3df36f=a116_0x3df3();let _0x27f0c3=_0x3df36f[_0x1421fe];return _0x27f0c3;}import{createFlowDefinition}from'../../core/api-client.js';import{FLOW_FILE_FLAG,FLOW_PATHS,buildFlowUrl,confirmFlowWrite,flowSelector,prepareFlowWrite,readFlowFilePath}from'../../commands/flow/shared.js';export const flowCreate={'service':a116_0x78cee2(0xa4),'command':a116_0x78cee2(0xa0),'description':a116_0x78cee2(0xa1),'risk':a116_0x78cee2(0x9d),'flags':[FLOW_FILE_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x2a012d){readFlowFilePath(_0x2a012d);},async 'dryRun'(_0x10ed61){const _0x1c586a=a116_0x78cee2,{request:_0x513e03,warnings:_0x557c4f}=await prepareFlowWrite(readFlowFilePath(_0x10ed61),_0x10ed61[_0x1c586a(0xa5)]);return asDryRunResult({'operation':_0x1c586a(0xa0),'selector':{'appCode':_0x10ed61[_0x1c586a(0xa5)],'flowName':_0x513e03[_0x1c586a(0x9e)],..._0x513e03['datasetCode']?{'datasetCode':_0x513e03[_0x1c586a(0xa3)]}:{}},'before':null,'after':_0x513e03,'request':_0x513e03,'dryRun':!![],'backend':{'method':_0x1c586a(0x99),'path':FLOW_PATHS[_0x1c586a(0xa0)]},'warnings':_0x557c4f},{'method':_0x1c586a(0x99),'url':FLOW_PATHS[_0x1c586a(0xa0)]});},async 'execute'(_0x3577ca){const _0xf6ea5d=a116_0x78cee2,{request:_0x1ca525,warnings:_0x4fd433}=await prepareFlowWrite(readFlowFilePath(_0x3577ca),_0x3577ca[_0xf6ea5d(0xa5)]);await confirmFlowWrite(_0x3577ca,'create',_0x1ca525);const _0x12b03c=await createFlowDefinition(_0x1ca525),_0x2baf0d=buildFlowUrl(_0x3577ca[_0xf6ea5d(0xa5)],_0x12b03c['id']),_0x3cac88=''+(_0x12b03c[_0xf6ea5d(0x9e)]||_0x1ca525[_0xf6ea5d(0x9e)])+(_0x12b03c['id']?_0xf6ea5d(0xa6)+_0x12b03c['id']+')':'');return{'ok':!![],'data':{'operation':_0xf6ea5d(0xa0),'selector':flowSelector(_0x3577ca[_0xf6ea5d(0xa5)],_0x12b03c['id'],_0x12b03c),'before':null,'after':_0x12b03c,'flowUrl':_0x2baf0d,'dryRun':![],'backend':{'method':_0xf6ea5d(0x99),'path':FLOW_PATHS[_0xf6ea5d(0xa0)]},'warnings':_0x4fd433},'message':_0xf6ea5d(0x9a)+_0x3cac88+'.\x20Flow\x20URL:\x20'+_0x2baf0d};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a117_0xb57461=a117_0x5b07;(function(_0x197be3,_0x1cea61){const _0x3e8740=a117_0x5b07,_0x28d9b6=_0x197be3();while(!![]){try{const _0x5b91e8=-parseInt(_0x3e8740(0xcd))/0x1+-parseInt(_0x3e8740(0xc3))/0x2+parseInt(_0x3e8740(0xd7))/0x3*(parseInt(_0x3e8740(0xe1))/0x4)+-parseInt(_0x3e8740(0xe0))/0x5+parseInt(_0x3e8740(0xd3))/0x6*(parseInt(_0x3e8740(0xd9))/0x7)+-parseInt(_0x3e8740(0xd2))/0x8+parseInt(_0x3e8740(0xcf))/0x9*(parseInt(_0x3e8740(0xdf))/0xa);if(_0x5b91e8===_0x1cea61)break;else _0x28d9b6['push'](_0x28d9b6['shift']());}catch(_0x3ece72){_0x28d9b6['push'](_0x28d9b6['shift']());}}}(a117_0x2d84,0xcc4b6));import{mkdir,stat}from'node:fs/promises';import{dirname,resolve}from'node:path';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{getFlowDefinition}from'../../core/api-client.js';import{writeNormalizedFlowConfig}from'../../core/flow-config.js';import{CliErrors}from'../../errors.js';import{FLOW_ID_FLAG,flowDefinitionToConfig,readFlowId}from'../../commands/flow/shared.js';export const flowDetail={'service':a117_0xb57461(0xc2),'command':a117_0xb57461(0xd6),'description':a117_0xb57461(0xda),'risk':'read','flags':[FLOW_ID_FLAG,{'name':'output','type':'string','description':a117_0xb57461(0xcb)},{'name':a117_0xb57461(0xd1),'type':a117_0xb57461(0xc5),'description':a117_0xb57461(0xdd)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x4c1e3d){readFlowId(_0x4c1e3d);},async 'execute'(_0x42bd76){const _0x57bd48=a117_0xb57461,_0x59a84c=readFlowId(_0x42bd76),_0x5e9b33=_0x42bd76[_0x57bd48(0xc9)]('output')[_0x57bd48(0xce)](),_0x439380=_0x5e9b33?resolve(_0x5e9b33):undefined;if(_0x439380&&!_0x42bd76[_0x57bd48(0xd4)]('force')&&await fileExists(_0x439380))throw CliErrors[_0x57bd48(0xd8)](_0x57bd48(0xdc)+_0x439380,_0x57bd48(0xe4));const _0x2d6739=await getFlowDefinition(_0x42bd76[_0x57bd48(0xd5)],_0x59a84c);let _0x11dd2f;if(_0x439380){const _0xdf57e4=flowDefinitionToConfig(_0x2d6739);await mkdir(dirname(_0x439380),{'recursive':!![]});try{await writeNormalizedFlowConfig(_0x439380,_0xdf57e4[_0x57bd48(0xc6)],{'overwrite':_0x42bd76['bool'](_0x57bd48(0xd1))});}catch(_0x3b84fc){if(isAlreadyExistsError(_0x3b84fc))throw CliErrors[_0x57bd48(0xd8)](_0x57bd48(0xdc)+_0x439380,_0x57bd48(0xe4));throw _0x3b84fc;}_0x11dd2f={'path':_0x439380,'warnings':_0xdf57e4[_0x57bd48(0xde)]};}return{'ok':!![],'data':{'flow':_0x2d6739,..._0x11dd2f?{'output':_0x11dd2f}:{}},'message':_0x11dd2f?_0x57bd48(0xcc)+(_0x2d6739['flowName']||_0x2d6739[_0x57bd48(0xdb)]||_0x59a84c)+_0x57bd48(0xc4)+_0x11dd2f[_0x57bd48(0xc7)]:_0x57bd48(0xc8)+(_0x2d6739[_0x57bd48(0xca)]||_0x2d6739[_0x57bd48(0xdb)]||_0x59a84c)};}};function a117_0x5b07(_0x29476f,_0x567da3){_0x29476f=_0x29476f-0xc2;const _0x2d847d=a117_0x2d84();let _0x5b07f4=_0x2d847d[_0x29476f];return _0x5b07f4;}async function fileExists(_0x315bc2){try{return await stat(_0x315bc2),!![];}catch(_0x57e38a){return!isNotFoundError(_0x57e38a);}}function isNotFoundError(_0x31ab1f){const _0x160131=a117_0xb57461;return _0x31ab1f?.[_0x160131(0xd0)]===_0x160131(0xe2);}function a117_0x2d84(){const _0xd482de=['273890eYjlZS','263190BPRXxv','388JsqwLM','ENOENT','EEXIST','Pass\x20--force\x20to\x20overwrite\x20it.','flow','222802umSmiP','\x20to\x20','boolean','config','path','Flow\x20','str','flowName','Write\x20a\x20portable\x20normalized\x20FlowConfig\x20JSON\x20file','Wrote\x20FlowConfig\x20for\x20','723102OfTXMt','trim','126HlDjlE','code','force','1153752YRquUx','75222OgJNxV','bool','appCode','detail','42429htRISI','validation','63fcNtRM','Get\x20one\x20design-time\x20flow\x20definition','flowCode','FlowConfig\x20output\x20already\x20exists:\x20','Overwrite\x20an\x20existing\x20output\x20file','warnings'];a117_0x2d84=function(){return _0xd482de;};return a117_0x2d84();}function isAlreadyExistsError(_0x1b3b95){const _0x11975f=a117_0xb57461;return _0x1b3b95?.[_0x11975f(0xd0)]===_0x11975f(0xe3);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x196d8e,_0xf0e86e){const _0x4cc4c1=a118_0x51fa,_0x2970e9=_0x196d8e();while(!![]){try{const _0x2a7ded=parseInt(_0x4cc4c1(0x1cb))/0x1*(parseInt(_0x4cc4c1(0x1cc))/0x2)+parseInt(_0x4cc4c1(0x1d4))/0x3*(-parseInt(_0x4cc4c1(0x1d1))/0x4)+-parseInt(_0x4cc4c1(0x1d0))/0x5+parseInt(_0x4cc4c1(0x1d2))/0x6+-parseInt(_0x4cc4c1(0x1ce))/0x7*(-parseInt(_0x4cc4c1(0x1d3))/0x8)+parseInt(_0x4cc4c1(0x1d5))/0x9*(parseInt(_0x4cc4c1(0x1cd))/0xa)+-parseInt(_0x4cc4c1(0x1cf))/0xb;if(_0x2a7ded===_0xf0e86e)break;else _0x2970e9['push'](_0x2970e9['shift']());}catch(_0x3a6b78){_0x2970e9['push'](_0x2970e9['shift']());}}}(a118_0x378e,0x8e488));import{flowValidate}from'../../commands/flow/validate.js';import{flowList}from'../../commands/flow/list.js';import{flowDetail}from'../../commands/flow/detail.js';function a118_0x378e(){const _0x5cb517=['87548nVofor','22tYFMoK','1460Fuoisg','63CcHwtE','16372708ojfGjy','4481495GzzBWE','26968wXePbx','5487264YChHJJ','815944buQnqo','267dciyUZ','47592jXzlQN'];a118_0x378e=function(){return _0x5cb517;};return a118_0x378e();}import{flowCreate}from'../../commands/flow/create.js';import{flowUpdate}from'../../commands/flow/update.js';import{flowPublish}from'../../commands/flow/publish.js';import{flowRuntimeRoleList}from'../../commands/flow/runtime-role-list.js';import{flowRuntimeUserSearch}from'../../commands/flow/runtime-user-search.js';function a118_0x51fa(_0x28110b,_0x437687){_0x28110b=_0x28110b-0x1cb;const _0x378e65=a118_0x378e();let _0x51fab9=_0x378e65[_0x28110b];return _0x51fab9;}import{flowRuntimeRoleUserList}from'../../commands/flow/runtime-role-user-list.js';export const flowDefinitions=[flowValidate,flowList,flowDetail,flowCreate,flowUpdate,flowPublish,flowRuntimeRoleList,flowRuntimeUserSearch,flowRuntimeRoleUserList];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a119_0x4895(){const _0x36c6ec=['page','135YSjJpr','str','trim','list','flow','1326910lWbzYE','--page\x20must\x20be\x20a\x20positive\x20integer.','1688200gGZXpq','read','page-size','Filter\x20by\x20exact\x20server-generated\x20flow\x20code','443020ktAVbL','3SGKEaO','1665556zEiLGf','Found\x20','\x20flow\x20definition(s)','validation','number','flow-code','flow-name','List\x20design-time\x20flow\x20definitions\x20for\x20the\x20current\x20app','56xbnryB','Filter\x20by\x20flow\x20name','387163ppMbyJ','string','71486vWEPke','2603892CdoGeR','isSafeInteger','appCode','num','Page\x20number\x20(1-based)','dataset-code','length','flow-type','Page\x20size','Filter\x20by\x20flow\x20status','--page-size\x20must\x20be\x20a\x20positive\x20integer.','flow-status','Filter\x20by\x20dataset\x20code'];a119_0x4895=function(){return _0x36c6ec;};return a119_0x4895();}const a119_0x5f0277=a119_0xc03b;(function(_0x3fc30a,_0x389ee2){const _0x3dc073=a119_0xc03b,_0x551720=_0x3fc30a();while(!![]){try{const _0x32e785=parseInt(_0x3dc073(0x9d))/0x1+-parseInt(_0x3dc073(0xb7))/0x2+parseInt(_0x3dc073(0xb8))/0x3*(-parseInt(_0x3dc073(0xb9))/0x4)+-parseInt(_0x3dc073(0xb3))/0x5+-parseInt(_0x3dc073(0x9e))/0x6+-parseInt(_0x3dc073(0xc3))/0x7*(parseInt(_0x3dc073(0xc1))/0x8)+parseInt(_0x3dc073(0xac))/0x9*(parseInt(_0x3dc073(0xb1))/0xa);if(_0x32e785===_0x389ee2)break;else _0x551720['push'](_0x551720['shift']());}catch(_0x16f3c4){_0x551720['push'](_0x551720['shift']());}}}(a119_0x4895,0x40bcf));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{listFlowDefinitions}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const FLOW_STATUSES=['draft','published'];function a119_0xc03b(_0x119b15,_0x2c38c0){_0x119b15=_0x119b15-0x9d;const _0x489588=a119_0x4895();let _0xc03be1=_0x489588[_0x119b15];return _0xc03be1;}export const flowList={'service':a119_0x5f0277(0xb0),'command':a119_0x5f0277(0xaf),'description':a119_0x5f0277(0xc0),'risk':a119_0x5f0277(0xb4),'flags':[APPCODE_FLAG_OPTIONAL,{'name':'flow-code','type':a119_0x5f0277(0xc4),'description':a119_0x5f0277(0xb6)},{'name':a119_0x5f0277(0xbf),'type':'string','description':a119_0x5f0277(0xc2)},{'name':'flow-status','type':'string','description':a119_0x5f0277(0xa7),'enum':FLOW_STATUSES},{'name':a119_0x5f0277(0xa3),'type':a119_0x5f0277(0xc4),'description':a119_0x5f0277(0xaa)},{'name':a119_0x5f0277(0xa5),'type':a119_0x5f0277(0xc4),'description':'Filter\x20by\x20flow\x20type'},{'name':'page','type':a119_0x5f0277(0xbd),'description':a119_0x5f0277(0xa2),'default':0x1},{'name':a119_0x5f0277(0xb5),'type':a119_0x5f0277(0xbd),'description':a119_0x5f0277(0xa6),'default':0x14}],async 'validate'(_0x22ee64){const _0x3be82a=a119_0x5f0277,_0x37ef4d=_0x22ee64[_0x3be82a(0xa1)](_0x3be82a(0xab),0x1),_0x1c2007=_0x22ee64[_0x3be82a(0xa1)](_0x3be82a(0xb5),0x14);if(!Number[_0x3be82a(0x9f)](_0x37ef4d)||_0x37ef4d<0x1)throw CliErrors[_0x3be82a(0xbc)](_0x3be82a(0xb2));if(!Number[_0x3be82a(0x9f)](_0x1c2007)||_0x1c2007<0x1)throw CliErrors[_0x3be82a(0xbc)](_0x3be82a(0xa8));},async 'execute'(_0x384097){const _0x4e08b1=a119_0x5f0277,{items:_0x1f8835,paging:_0x18e60f}=await listFlowDefinitions(_0x384097[_0x4e08b1(0xa0)],{'flowCode':optionalString(_0x384097[_0x4e08b1(0xad)](_0x4e08b1(0xbe))),'flowName':optionalString(_0x384097[_0x4e08b1(0xad)](_0x4e08b1(0xbf))),'flowStatus':optionalString(_0x384097['str'](_0x4e08b1(0xa9))),'datasetCode':optionalString(_0x384097[_0x4e08b1(0xad)]('dataset-code')),'flowType':optionalString(_0x384097[_0x4e08b1(0xad)](_0x4e08b1(0xa5))),'pageNum':_0x384097[_0x4e08b1(0xa1)]('page',0x1),'pageSize':_0x384097[_0x4e08b1(0xa1)]('page-size',0x14)});return{'ok':!![],'data':{'appCode':_0x384097[_0x4e08b1(0xa0)],'flows':_0x1f8835,'paging':_0x18e60f},'message':_0x4e08b1(0xba)+_0x1f8835[_0x4e08b1(0xa4)]+_0x4e08b1(0xbb)};}};function optionalString(_0x3e5215){const _0xafb989=a119_0x5f0277,_0x36e2c0=_0x3e5215[_0xafb989(0xae)]();return _0x36e2c0||undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a120_0x1035(_0x11152b,_0x3f9bf3){_0x11152b=_0x11152b-0xc1;const _0x5bd546=a120_0x5bd5();let _0x1035c0=_0x5bd546[_0x11152b];return _0x1035c0;}function a120_0x5bd5(){const _0x4737fb=['58IWfikk','flow','flowCode','5610048jzqhZM','2372040AdhATh','Publish\x20the\x20current\x20flow\x20definition\x20draft','published','19563480YYvGno','8lhFAkf','1781019FHfogv','32507DOiLhg','publish','3680220mrdlFP','appCode','.\x20Flow\x20URL:\x20','1222626ewzyMp','flowName','7tBLvSn','Published\x20flow\x20'];a120_0x5bd5=function(){return _0x4737fb;};return a120_0x5bd5();}const a120_0x327d2d=a120_0x1035;(function(_0x428d9d,_0x57f2ec){const _0xd63c72=a120_0x1035,_0x2a3559=_0x428d9d();while(!![]){try{const _0x4fd8b0=-parseInt(_0xd63c72(0xcf))/0x1*(-parseInt(_0xd63c72(0xc5))/0x2)+-parseInt(_0xd63c72(0xc1))/0x3+parseInt(_0xd63c72(0xc9))/0x4+parseInt(_0xd63c72(0xd1))/0x5+-parseInt(_0xd63c72(0xc8))/0x6*(-parseInt(_0xd63c72(0xc3))/0x7)+-parseInt(_0xd63c72(0xcd))/0x8*(parseInt(_0xd63c72(0xce))/0x9)+-parseInt(_0xd63c72(0xcc))/0xa;if(_0x4fd8b0===_0x57f2ec)break;else _0x2a3559['push'](_0x2a3559['shift']());}catch(_0xca3f72){_0x2a3559['push'](_0x2a3559['shift']());}}}(a120_0x5bd5,0x9d778));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{publishFlowDefinition}from'../../core/api-client.js';import{FLOW_ID_FLAG,FLOW_PATHS,buildFlowUrl,buildFlowIdDryRun,flowSelector,readFlowId}from'../../commands/flow/shared.js';export const flowPublish={'service':a120_0x327d2d(0xc6),'command':'publish','description':a120_0x327d2d(0xca),'risk':'write','flags':[FLOW_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x474d59){readFlowId(_0x474d59);},async 'dryRun'(_0xc98a05){const _0x5b892e=a120_0x327d2d,_0x2d7044=readFlowId(_0xc98a05);return buildFlowIdDryRun(_0x5b892e(0xd0),FLOW_PATHS[_0x5b892e(0xd0)],_0xc98a05['appCode'],_0x2d7044,{'id':_0x2d7044,'flowStatus':_0x5b892e(0xcb)});},async 'execute'(_0x5d50be){const _0x29a3a6=a120_0x327d2d,_0x24e394=readFlowId(_0x5d50be),_0x5d0d24=await publishFlowDefinition(_0x5d50be['appCode'],_0x24e394),_0x52f14e=buildFlowUrl(_0x5d50be[_0x29a3a6(0xd2)],_0x24e394);return{'ok':!![],'data':{'operation':'publish','selector':flowSelector(_0x5d50be[_0x29a3a6(0xd2)],_0x24e394,_0x5d0d24),'before':null,'after':_0x5d0d24,'flowUrl':_0x52f14e,'dryRun':![],'backend':{'method':'POST','path':FLOW_PATHS['publish']},'warnings':[]},'message':_0x29a3a6(0xc4)+(_0x5d0d24[_0x29a3a6(0xc2)]||_0x5d0d24[_0x29a3a6(0xc7)]||_0x24e394)+_0x29a3a6(0xd3)+_0x52f14e};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a121_0x48b7(){const _0x42f87b=['trim','4RldneE','Page\x20size\x20(1-100)','7651794IeXZQi','string','roleName','map','11ZMTRBh','--page-size\x20must\x20be\x20an\x20integer\x20between\x201\x20and\x20100.','5YhOWIT','displayName','2AjErXe','2533299sCBZxi','Runtime\x20role\x20name\x20\x22','username','Page\x20index\x20(1-based)','userId','Disambiguate\x20with\x20--role\x20<id>.','userCount','roleType','3262770edrVdX','Runtime\x20role\x20\x22','role','str','Runtime\x20role\x20id\x20or\x20exact\x20role\x20name','remark','num','9302949MbrSDN','isSafeInteger','page-size','89873UwkDft','8FQYAVk','number','join','email','test','permitCount','nickname','nickName','16314612tjzBpI','filter','\x22\x20is\x20ambiguous\x20(ids:\x20','flagMissing','validation','page','length','6380410YIHLCm','\x22\x20not\x20found\x20in\x20app\x20'];a121_0x48b7=function(){return _0x42f87b;};return a121_0x48b7();}const a121_0x588926=a121_0x5d13;(function(_0x1e93e8,_0x2e992f){const _0x2e1e4f=a121_0x5d13,_0x9b0222=_0x1e93e8();while(!![]){try{const _0x394505=-parseInt(_0x2e1e4f(0x1f8))/0x1*(parseInt(_0x2e1e4f(0x215))/0x2)+parseInt(_0x2e1e4f(0x216))/0x3*(parseInt(_0x2e1e4f(0x20b))/0x4)+-parseInt(_0x2e1e4f(0x213))/0x5*(-parseInt(_0x2e1e4f(0x20d))/0x6)+parseInt(_0x2e1e4f(0x1ee))/0x7+-parseInt(_0x2e1e4f(0x1f9))/0x8*(parseInt(_0x2e1e4f(0x1f5))/0x9)+parseInt(_0x2e1e4f(0x208))/0xa+-parseInt(_0x2e1e4f(0x211))/0xb*(parseInt(_0x2e1e4f(0x201))/0xc);if(_0x394505===_0x2e992f)break;else _0x9b0222['push'](_0x9b0222['shift']());}catch(_0x447580){_0x9b0222['push'](_0x9b0222['shift']());}}}(a121_0x48b7,0xb4dbe));import{CliErrors}from'../../errors.js';export const FLOW_RUNTIME_PAGE_FLAG={'name':a121_0x588926(0x206),'type':a121_0x588926(0x1fa),'description':a121_0x588926(0x219),'default':0x1};export const FLOW_RUNTIME_PAGE_SIZE_FLAG={'name':a121_0x588926(0x1f7),'type':'number','description':a121_0x588926(0x20c),'default':0x14};function a121_0x5d13(_0x14e1fe,_0x55dbde){_0x14e1fe=_0x14e1fe-0x1eb;const _0x48b71d=a121_0x48b7();let _0x5d13fd=_0x48b71d[_0x14e1fe];return _0x5d13fd;}export const FLOW_RUNTIME_ROLE_REF_FLAG={'name':a121_0x588926(0x1f0),'type':a121_0x588926(0x20e),'required':!![],'description':a121_0x588926(0x1f2)};export function readRuntimePagination(_0xf4519b){const _0x1bcfd0=a121_0x588926,_0x43a944=_0xf4519b[_0x1bcfd0(0x1f4)](_0x1bcfd0(0x206),0x1),_0xdbc679=_0xf4519b[_0x1bcfd0(0x1f4)](_0x1bcfd0(0x1f7),0x14);if(!Number[_0x1bcfd0(0x1f6)](_0x43a944)||_0x43a944<0x1)throw CliErrors['validation']('--page\x20must\x20be\x20a\x20positive\x20integer.');if(!Number[_0x1bcfd0(0x1f6)](_0xdbc679)||_0xdbc679<0x1||_0xdbc679>0x64)throw CliErrors['validation'](_0x1bcfd0(0x212));return{'page':_0x43a944,'pageSize':_0xdbc679};}export function paginateRuntimeItems(_0x390c6a,_0x18f491,_0x549cf4){const _0x2b9e18=a121_0x588926,_0x352b3f=(_0x18f491-0x1)*_0x549cf4;return{'items':_0x390c6a['slice'](_0x352b3f,_0x352b3f+_0x549cf4),'paging':{'currentPage':_0x18f491,'pageSize':_0x549cf4,'totalCount':_0x390c6a[_0x2b9e18(0x207)]}};}export function projectRuntimeRole(_0x300b0f){const _0x1bb3d5=a121_0x588926;return{'id':_0x300b0f['id'],'roleName':_0x300b0f['roleName']??null,'roleType':_0x300b0f[_0x1bb3d5(0x1ed)]??null,'remark':_0x300b0f[_0x1bb3d5(0x1f3)]??null,'userCount':_0x300b0f[_0x1bb3d5(0x1ec)]??0x0,'permitCount':_0x300b0f[_0x1bb3d5(0x1fe)]??0x0};}export function projectRuntimeUser(_0x2f0182){const _0x3318a3=a121_0x588926,_0x1e7cd2=normalizeRuntimeUserId(_0x2f0182['code']);if(!_0x1e7cd2)return null;return{'userId':_0x1e7cd2,'username':_0x2f0182['userName']??null,'nickname':_0x2f0182[_0x3318a3(0x200)]??null,'displayName':_0x2f0182[_0x3318a3(0x214)]??null,'email':_0x2f0182[_0x3318a3(0x1fc)]??null,'status':_0x2f0182['status']??null};}export function projectRuntimeRoleMember(_0x5a4e63){const _0x1ed076=a121_0x588926,_0x3df511=normalizeRuntimeUserId(_0x5a4e63[_0x1ed076(0x21a)]);if(!_0x3df511)return null;return{'userId':_0x3df511,'username':_0x5a4e63[_0x1ed076(0x218)]??null,'nickname':_0x5a4e63[_0x1ed076(0x1ff)]??null};}export function readRuntimeRoleRef(_0x5c95a3){const _0x54b6ed=a121_0x588926,_0x7f35f7=_0x5c95a3[_0x54b6ed(0x1f1)]('role')['trim']();if(!_0x7f35f7)throw CliErrors[_0x54b6ed(0x204)](_0x54b6ed(0x1f0),'Pass\x20--role\x20<id|name>.');return _0x7f35f7;}export function resolveRuntimeRoleGroup(_0x2dcf17,_0x4b5a8f,_0x5aa96f){const _0x52a066=a121_0x588926,_0xd2b290=/^\d+$/[_0x52a066(0x1fd)](_0x4b5a8f)?_0x5aa96f[_0x52a066(0x202)](_0x18cdc3=>_0x18cdc3['id']===Number(_0x4b5a8f)):_0x5aa96f[_0x52a066(0x202)](_0x21ae56=>_0x21ae56[_0x52a066(0x20f)]===_0x4b5a8f);if(_0xd2b290['length']===0x0)throw CliErrors[_0x52a066(0x205)](_0x52a066(0x1ef)+_0x4b5a8f+_0x52a066(0x209)+_0x2dcf17+'.','Run\x20`flow\x20runtime-role-list`\x20to\x20see\x20runtime\x20roles.');if(_0xd2b290[_0x52a066(0x207)]>0x1){const _0x42e557=_0xd2b290[_0x52a066(0x210)](_0x215868=>_0x215868['id'])[_0x52a066(0x1fb)](',\x20');throw CliErrors[_0x52a066(0x205)](_0x52a066(0x217)+_0x4b5a8f+_0x52a066(0x203)+_0x42e557+').',_0x52a066(0x1eb));}return _0xd2b290[0x0];}function normalizeRuntimeUserId(_0x2f38c0){const _0x5910a9=a121_0x588926;if(typeof _0x2f38c0!==_0x5910a9(0x20e)&&typeof _0x2f38c0!==_0x5910a9(0x1fa))return null;const _0x25500e=String(_0x2f38c0)[_0x5910a9(0x20a)]();return _0x25500e||null;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a122_0x52b9f3=a122_0x1aef;function a122_0x3816(){const _0xe6fdf=['3RYmlAF','2805216wyaVpx','4283432QYgOtv','144wTZcGx','keyword','flow','1849196DYjFSl','1VbBiwI','appCode','4125702zahkvJ','8282457xlqzgt','Optional\x20runtime\x20role-name\x20keyword','runtime','List\x20runtime\x20app\x20roles\x20for\x20approval\x20assignee\x20selection','length','map','trim','\x20runtime\x20role(s)','read','1758350DSyIyD'];a122_0x3816=function(){return _0xe6fdf;};return a122_0x3816();}(function(_0x1e61ad,_0xc4b681){const _0x4f433f=a122_0x1aef,_0x4d123a=_0x1e61ad();while(!![]){try{const _0x3d737b=-parseInt(_0x4f433f(0x131))/0x1*(-parseInt(_0x4f433f(0x12d))/0x2)+parseInt(_0x4f433f(0x12a))/0x3*(parseInt(_0x4f433f(0x130))/0x4)+parseInt(_0x4f433f(0x129))/0x5+parseInt(_0x4f433f(0x12b))/0x6+parseInt(_0x4f433f(0x133))/0x7+-parseInt(_0x4f433f(0x12c))/0x8+-parseInt(_0x4f433f(0x134))/0x9;if(_0x3d737b===_0xc4b681)break;else _0x4d123a['push'](_0x4d123a['shift']());}catch(_0x163032){_0x4d123a['push'](_0x4d123a['shift']());}}}(a122_0x3816,0x6561d));function a122_0x1aef(_0x10a6f7,_0x365dba){_0x10a6f7=_0x10a6f7-0x128;const _0x381633=a122_0x3816();let _0x1aef87=_0x381633[_0x10a6f7];return _0x1aef87;}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_0x52b9f3(0x12f),'command':'runtime-role-list','description':a122_0x52b9f3(0x137),'risk':a122_0x52b9f3(0x128),'flags':[{'name':a122_0x52b9f3(0x12e),'type':'string','description':a122_0x52b9f3(0x135)},FLOW_RUNTIME_PAGE_FLAG,FLOW_RUNTIME_PAGE_SIZE_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x4baf99){readRuntimePagination(_0x4baf99);},async 'execute'(_0x35d32c){const _0x2da463=a122_0x52b9f3,{page:_0x58563b,pageSize:_0x286487}=readRuntimePagination(_0x35d32c),_0x532093=_0x35d32c['str'](_0x2da463(0x12e))[_0x2da463(0x13a)](),{items:_0x19a5a5,paging:_0xd3b6b8}=await listApprovalRuntimeRoles(_0x35d32c['appCode'],{..._0x532093?{'roleName':_0x532093}:{},'currentPage':_0x58563b,'pageSize':_0x286487}),_0x200c1f=_0x19a5a5[_0x2da463(0x139)](projectRuntimeRole);return{'ok':!![],'data':{'appCode':_0x35d32c[_0x2da463(0x132)],'scope':_0x2da463(0x136),..._0x532093?{'keyword':_0x532093}:{},'roles':_0x200c1f,'paging':_0xd3b6b8},'message':'Found\x20'+_0x200c1f[_0x2da463(0x138)]+_0x2da463(0x13b)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a123_0x388da2=a123_0x3aaf;(function(_0x157569,_0xdd413e){const _0x54ba68=a123_0x3aaf,_0x23d589=_0x157569();while(!![]){try{const _0x4bc08a=parseInt(_0x54ba68(0x154))/0x1*(-parseInt(_0x54ba68(0x148))/0x2)+parseInt(_0x54ba68(0x14f))/0x3+parseInt(_0x54ba68(0x140))/0x4*(parseInt(_0x54ba68(0x147))/0x5)+-parseInt(_0x54ba68(0x155))/0x6+parseInt(_0x54ba68(0x141))/0x7+-parseInt(_0x54ba68(0x14b))/0x8*(-parseInt(_0x54ba68(0x145))/0x9)+-parseInt(_0x54ba68(0x14d))/0xa*(-parseInt(_0x54ba68(0x151))/0xb);if(_0x4bc08a===_0xdd413e)break;else _0x23d589['push'](_0x23d589['shift']());}catch(_0x299610){_0x23d589['push'](_0x23d589['shift']());}}}(a123_0x319c,0xd3e4e));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';function a123_0x3aaf(_0x18ef2b,_0x555380){_0x18ef2b=_0x18ef2b-0x140;const _0x319c24=a123_0x319c();let _0x3aafae=_0x319c24[_0x18ef2b];return _0x3aafae;}import{listApprovalRuntimeRoleUsers}from'../../core/api-client.js';export const flowRuntimeRoleUserList={'service':a123_0x388da2(0x142),'command':'runtime-role-user-list','description':a123_0x388da2(0x14c),'risk':a123_0x388da2(0x153),'flags':[FLOW_RUNTIME_ROLE_REF_FLAG,FLOW_RUNTIME_PAGE_FLAG,FLOW_RUNTIME_PAGE_SIZE_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x585de9){readRuntimeRoleRef(_0x585de9),readRuntimePagination(_0x585de9);},async 'execute'(_0xceece9){const _0x31e91c=a123_0x388da2,_0x1c526a=resolveRuntimeRoleGroup(_0xceece9[_0x31e91c(0x157)],readRuntimeRoleRef(_0xceece9),await listApprovalRuntimeRoleUsers(_0xceece9[_0x31e91c(0x157)])),_0x2f715a=(_0x1c526a[_0x31e91c(0x156)]??[])['map'](projectRuntimeRoleMember)['filter'](_0x4f3c02=>_0x4f3c02!==null),{page:_0xd9074a,pageSize:_0x41634c}=readRuntimePagination(_0xceece9),_0xf8d76a=paginateRuntimeItems(_0x2f715a,_0xd9074a,_0x41634c);return{'ok':!![],'data':{'appCode':_0xceece9['appCode'],'scope':_0x31e91c(0x14e),'role':{'id':_0x1c526a['id'],'roleName':_0x1c526a['roleName']??null,'roleType':_0x1c526a[_0x31e91c(0x14a)]??null},'users':_0xf8d76a[_0x31e91c(0x152)],'paging':_0xf8d76a[_0x31e91c(0x150)]},'message':_0x31e91c(0x146)+_0x2f715a[_0x31e91c(0x149)]+_0x31e91c(0x143)+(_0x1c526a[_0x31e91c(0x144)]??_0x1c526a['id'])};}};function a123_0x319c(){const _0x3b415b=['8AJfWch','List\x20members\x20of\x20one\x20runtime\x20app\x20role\x20for\x20approval\x20verification','2170uFzRNY','runtime','295515JsWJTr','paging','120362dLFiUV','items','read','1OCjXho','9622488pUTUIE','userList','appCode','293948VqyUAx','2618980ziwHyh','flow','\x20runtime\x20member(s)\x20in\x20role\x20','roleName','7964937LCECES','Found\x20','5pAUfOT','2667746YoFEsK','length','roleType'];a123_0x319c=function(){return _0x3b415b;};return a123_0x319c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a124_0x3ac8(){const _0x2f591e=['appCode','paging','nickName','2936430MYIHzS','5811632MMYtXB','114176mPxDAJ','some','26718gPsWMb','filter','707tKANSL','29664370uGjieh','160hYitOo','read','flagMissing','User\x20id,\x20username,\x20nickname,\x20display\x20name,\x20or\x20email\x20keyword','userName','string','items','7929576QtuaYJ','toLowerCase','2qWOQcp','displayName','Search\x20runtime\x20app\x20users\x20for\x20approval\x20assignee\x20selection','483036VSmTMW','str','runtime','length','keyword'];a124_0x3ac8=function(){return _0x2f591e;};return a124_0x3ac8();}const a124_0x4a80e7=a124_0x5937;(function(_0x3ac729,_0x112678){const _0x7b6bf6=a124_0x5937,_0x1198d8=_0x3ac729();while(!![]){try{const _0x276aa1=-parseInt(_0x7b6bf6(0x1b1))/0x1*(parseInt(_0x7b6bf6(0x1b4))/0x2)+parseInt(_0x7b6bf6(0x1a0))/0x3+parseInt(_0x7b6bf6(0x1a2))/0x4*(parseInt(_0x7b6bf6(0x1a8))/0x5)+-parseInt(_0x7b6bf6(0x1a4))/0x6*(-parseInt(_0x7b6bf6(0x1a6))/0x7)+parseInt(_0x7b6bf6(0x1a1))/0x8+parseInt(_0x7b6bf6(0x1af))/0x9+-parseInt(_0x7b6bf6(0x1a7))/0xa;if(_0x276aa1===_0x112678)break;else _0x1198d8['push'](_0x1198d8['shift']());}catch(_0x2dfb4e){_0x1198d8['push'](_0x1198d8['shift']());}}}(a124_0x3ac8,0x7a130));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a124_0x5937(_0x538d3c,_0x4185c5){_0x538d3c=_0x538d3c-0x19f;const _0x3ac89b=a124_0x3ac8();let _0x593735=_0x3ac89b[_0x538d3c];return _0x593735;}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';import{CliErrors}from'../../errors.js';export const flowRuntimeUserSearch={'service':'flow','command':'runtime-user-search','description':a124_0x4a80e7(0x1b3),'risk':a124_0x4a80e7(0x1a9),'flags':[{'name':a124_0x4a80e7(0x1b8),'type':a124_0x4a80e7(0x1ad),'required':!![],'description':a124_0x4a80e7(0x1ab)},FLOW_RUNTIME_PAGE_FLAG,FLOW_RUNTIME_PAGE_SIZE_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0xa2a5ce){const _0x601f3a=a124_0x4a80e7;if(!_0xa2a5ce['str'](_0x601f3a(0x1b8))['trim']())throw CliErrors[_0x601f3a(0x1aa)](_0x601f3a(0x1b8),'Pass\x20--keyword\x20<text>.');readRuntimePagination(_0xa2a5ce);},async 'execute'(_0x3d9729){const _0x4e60a0=a124_0x4a80e7,_0xb3c756=_0x3d9729[_0x4e60a0(0x1b5)](_0x4e60a0(0x1b8))['trim'](),_0x42d730=_0xb3c756['toLowerCase'](),_0x21234b=(await listApprovalRuntimeUsers(_0x3d9729[_0x4e60a0(0x1b9)]))[_0x4e60a0(0x1a5)](_0x308e30=>[_0x308e30['code'],_0x308e30[_0x4e60a0(0x1ac)],_0x308e30[_0x4e60a0(0x19f)],_0x308e30[_0x4e60a0(0x1b2)],_0x308e30['email']][_0x4e60a0(0x1a3)](_0x16f9ff=>_0x16f9ff!==null&&_0x16f9ff!==undefined&&String(_0x16f9ff)[_0x4e60a0(0x1b0)]()['includes'](_0x42d730)))['map'](projectRuntimeUser)[_0x4e60a0(0x1a5)](_0x32a8dc=>_0x32a8dc!==null),{page:_0xd68fbe,pageSize:_0x3bfc45}=readRuntimePagination(_0x3d9729),_0x1763d3=paginateRuntimeItems(_0x21234b,_0xd68fbe,_0x3bfc45);return{'ok':!![],'data':{'appCode':_0x3d9729[_0x4e60a0(0x1b9)],'scope':_0x4e60a0(0x1b6),'keyword':_0xb3c756,'users':_0x1763d3[_0x4e60a0(0x1ae)],'paging':_0x1763d3[_0x4e60a0(0x1ba)]},'message':'Found\x20'+_0x21234b[_0x4e60a0(0x1b7)]+'\x20runtime\x20app\x20user(s)\x20matching\x20\x22'+_0xb3c756+'\x22'};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a125_0xb84cb5=a125_0x37a5;(function(_0x2f4977,_0x2f3be6){const _0x598082=a125_0x37a5,_0x213f5a=_0x2f4977();while(!![]){try{const _0x131c88=parseInt(_0x598082(0x18f))/0x1*(parseInt(_0x598082(0x18e))/0x2)+parseInt(_0x598082(0x186))/0x3*(-parseInt(_0x598082(0x182))/0x4)+-parseInt(_0x598082(0x183))/0x5*(-parseInt(_0x598082(0x19a))/0x6)+parseInt(_0x598082(0x18d))/0x7+parseInt(_0x598082(0x17a))/0x8*(-parseInt(_0x598082(0x1a1))/0x9)+parseInt(_0x598082(0x180))/0xa*(-parseInt(_0x598082(0x185))/0xb)+parseInt(_0x598082(0x165))/0xc*(parseInt(_0x598082(0x178))/0xd);if(_0x131c88===_0x2f3be6)break;else _0x213f5a['push'](_0x213f5a['shift']());}catch(_0x18acb5){_0x213f5a['push'](_0x213f5a['shift']());}}}(a125_0x50dd,0x85ba6));import{asDryRunResult}from'../../commands/common/dry-run.js';import{readFlowConfigFile,validateFlowConfig}from'../../core/flow-config.js';function a125_0x50dd(){const _0x5bf27d=['FlowConfig\x20validation\x20failed\x20for\x20','File:\x20','normalized','The\x20detail\x20response\x20does\x20not\x20contain\x20a\x20supported\x20flowType.','4679780AyIVQU','/smartapi/flow/detail','5008ynrkzt','5ksezwj','\x20\x20flowId:\x20','11tyKGGF','729gpKgsY','errors','trim','Cannot\x20export\x20an\x20invalid\x20flow\x20definition.','The\x20detail\x20response\x20does\x20not\x20contain\x20an\x20object\x20flowJson.','\x20\x20flowType:\x20','The\x20detail\x20response\x20does\x20not\x20contain\x20flowName.','799295fLoTEm','908WuNSlo','1649CYfbOQ','\x20\x20flowName:\x20','number','yes','/smartapi/flow/create','--id\x20must\x20be\x20a\x20positive\x20integer.','\x20\x20datasetCode:\x20','/smartapi/flow/publish','valid','num','datasetCode','3778986eLstiM','pageId','validation','str','Run\x20`rabetbase\x20flow\x20validate\x20--file\x20<path>`\x20for\x20details.','file','Pass\x20--file\x20<path>.','18aiEcHO','Flow\x20definition\x20id\x20(from\x20`flow\x20list`\x20or\x20`flow\x20create`)','map','string','join','flowJson','flowType','object','24BIQtnM','flowName','Cannot\x20export\x20this\x20flow\x20into\x20the\x20current\x20portable\x20FlowConfig\x20contract.','Approval\x20flow\x20','path','flowDesc','flowCode','FORM_FLOW','message','Unable\x20to\x20read\x20FlowConfig:\x20','POST','Continue?\x20[y/N]\x20','apiError','/smartapi/flow/page','INDEPENDENT_FLOW','bool','appCode','nonInteractive','warnings','4922749ruMpxk','Path\x20to\x20the\x20local\x20FlowConfig\x20JSON\x20file','3720176AXTWoV','\x20\x20appCode:\x20'];a125_0x50dd=function(){return _0x5bf27d;};return a125_0x50dd();}import{CliErrors}from'../../errors.js';import{getAppBaseUrl}from'../../constant/domain.js';import{requireConfirmationPrompt}from'@lovrabet/cli-framework';export const FLOW_PATHS={'list':a125_0xb84cb5(0x172),'detail':a125_0xb84cb5(0x181),'create':a125_0xb84cb5(0x193),'update':'/smartapi/flow/update','publish':a125_0xb84cb5(0x196)};export const FLOW_ID_FLAG={'name':'id','type':'number','required':!![],'description':a125_0xb84cb5(0x1a2)};export const FLOW_FILE_FLAG={'name':a125_0xb84cb5(0x19f),'type':a125_0xb84cb5(0x160),'required':!![],'description':a125_0xb84cb5(0x179)};export function flowDefinitionToConfig(_0x475b85){const _0x3d4378=a125_0xb84cb5;if(typeof _0x475b85[_0x3d4378(0x166)]!==_0x3d4378(0x160)||_0x475b85['flowName'][_0x3d4378(0x188)]()==='')throw CliErrors[_0x3d4378(0x171)](_0x3d4378(0x189),_0x3d4378(0x18c));if(typeof _0x475b85[_0x3d4378(0x162)]!==_0x3d4378(0x164)||_0x475b85[_0x3d4378(0x162)]===null||Array['isArray'](_0x475b85['flowJson']))throw CliErrors['apiError'](_0x3d4378(0x189),_0x3d4378(0x18a));if(_0x475b85[_0x3d4378(0x163)]!==_0x3d4378(0x16c)&&_0x475b85[_0x3d4378(0x163)]!==_0x3d4378(0x173))throw CliErrors[_0x3d4378(0x171)]('Cannot\x20export\x20an\x20invalid\x20flow\x20definition.',_0x3d4378(0x17f));const _0x562c83={'flowName':_0x475b85['flowName'],...typeof _0x475b85[_0x3d4378(0x16a)]===_0x3d4378(0x160)?{'flowDesc':_0x475b85[_0x3d4378(0x16a)]}:{},'flowType':_0x475b85['flowType'],...typeof _0x475b85[_0x3d4378(0x199)]===_0x3d4378(0x160)&&_0x475b85[_0x3d4378(0x199)][_0x3d4378(0x188)]()?{'datasetCode':_0x475b85['datasetCode']}:{},...typeof _0x475b85[_0x3d4378(0x19b)]===_0x3d4378(0x191)?{'pageId':_0x475b85['pageId']}:{},'flowJson':_0x475b85[_0x3d4378(0x162)]},_0x1771a0=validateFlowConfig(_0x562c83);if(!_0x1771a0[_0x3d4378(0x197)]){const _0x4a9ce7=_0x1771a0[_0x3d4378(0x187)]['map'](_0x3620fe=>_0x3620fe[_0x3d4378(0x169)]+':\x20'+_0x3620fe[_0x3d4378(0x16d)])[_0x3d4378(0x161)](';\x20');throw CliErrors['validation'](_0x3d4378(0x167),_0x4a9ce7);}return{'config':_0x1771a0['normalized'],'warnings':_0x1771a0[_0x3d4378(0x177)],'removedPaths':_0x1771a0['warnings'][_0x3d4378(0x15f)](_0x25828f=>_0x25828f[_0x3d4378(0x169)])};}export function readFlowId(_0x233062){const _0x27eb8a=a125_0xb84cb5,_0x4addfd=_0x233062[_0x27eb8a(0x198)]('id');if(!Number['isSafeInteger'](_0x4addfd)||_0x4addfd<=0x0)throw CliErrors[_0x27eb8a(0x19c)](_0x27eb8a(0x194));return _0x4addfd;}export function readFlowFilePath(_0x4c4523){const _0x199fa5=a125_0xb84cb5,_0x4967e4=_0x4c4523[_0x199fa5(0x19d)]('file')['trim']();if(!_0x4967e4)throw CliErrors['flagMissing'](_0x199fa5(0x19f),_0x199fa5(0x1a0));return _0x4967e4;}export async function prepareFlowWrite(_0x388e12,_0x2b4b94,_0x3bdf69){const _0x2b2a8a=a125_0xb84cb5;let _0x51c700;try{_0x51c700=await readFlowConfigFile(_0x388e12);}catch(_0x5edf43){const _0x51b7d4=_0x5edf43 instanceof Error?_0x5edf43[_0x2b2a8a(0x16d)]:String(_0x5edf43);throw CliErrors[_0x2b2a8a(0x19c)](_0x2b2a8a(0x16e)+_0x51b7d4,_0x2b2a8a(0x17d)+_0x388e12);}const _0x3e085d=validateFlowConfig(_0x51c700);if(!_0x3e085d['valid']){const _0x442c1f=_0x3e085d['errors'][_0x2b2a8a(0x15f)](_0x159f12=>_0x159f12[_0x2b2a8a(0x169)]+':\x20'+_0x159f12['message'])['join'](';\x20');throw CliErrors[_0x2b2a8a(0x19c)](_0x2b2a8a(0x17c)+_0x388e12+'.',_0x442c1f||_0x2b2a8a(0x19e));}const _0x2d3478=_0x3e085d[_0x2b2a8a(0x17e)],_0x2c77d4={..._0x3bdf69!==undefined?{'id':_0x3bdf69}:{},'flowName':_0x2d3478['flowName'],..._0x2d3478[_0x2b2a8a(0x16a)]!==undefined?{'flowDesc':_0x2d3478['flowDesc']}:{},'flowType':_0x2d3478[_0x2b2a8a(0x163)],'appCode':_0x2b4b94,..._0x2d3478['datasetCode']!==undefined?{'datasetCode':_0x2d3478['datasetCode']}:{},..._0x2d3478['pageId']!==undefined?{'pageId':_0x2d3478[_0x2b2a8a(0x19b)]}:{},'flowJson':_0x2d3478[_0x2b2a8a(0x162)]};return{'request':_0x2c77d4,'warnings':_0x3e085d['warnings']};}function a125_0x37a5(_0x154eb2,_0x591679){_0x154eb2=_0x154eb2-0x15f;const _0x50ddd0=a125_0x50dd();let _0x37a549=_0x50ddd0[_0x154eb2];return _0x37a549;}export async function confirmFlowWrite(_0x5c84d4,_0x5b58ac,_0x2bde8b){const _0x94aff4=a125_0xb84cb5;if(_0x5c84d4[_0x94aff4(0x176)]||_0x5c84d4[_0x94aff4(0x174)](_0x94aff4(0x192)))return;await requireConfirmationPrompt({'lines':[_0x94aff4(0x168)+_0x5b58ac+':',_0x94aff4(0x17b)+_0x5c84d4[_0x94aff4(0x175)],..._0x2bde8b['id']!==undefined?[_0x94aff4(0x184)+_0x2bde8b['id']]:[],_0x94aff4(0x190)+_0x2bde8b['flowName'],_0x94aff4(0x18b)+_0x2bde8b['flowType'],..._0x2bde8b[_0x94aff4(0x199)]?[_0x94aff4(0x195)+_0x2bde8b[_0x94aff4(0x199)]]:[],_0x94aff4(0x170)],'createCancelledError':_0x93110=>CliErrors['cancelled'](_0x93110)});}export function flowSelector(_0x2741ce,_0x2d9dce,_0x3c9c74){const _0x44feba=a125_0xb84cb5;return{'appCode':_0x2741ce,..._0x2d9dce!==undefined?{'flowId':_0x2d9dce}:{},..._0x3c9c74?.['flowCode']?{'flowCode':_0x3c9c74[_0x44feba(0x16b)]}:{},..._0x3c9c74?.['flowName']?{'flowName':_0x3c9c74[_0x44feba(0x166)]}:{}};}export function buildFlowUrl(_0x30cdb8,_0x114e3f){const _0x237235=encodeURIComponent(String(_0x114e3f));return getAppBaseUrl(_0x30cdb8)+'/data/workflow?workflowId='+_0x237235;}export function buildFlowIdDryRun(_0x17b269,_0x567b65,_0x88bde6,_0x14e9c4,_0x4a22b2){const _0x67f80b=a125_0xb84cb5,_0x3f0753={'id':_0x14e9c4,'appCode':_0x88bde6};return asDryRunResult({'operation':_0x17b269,'selector':flowSelector(_0x88bde6,_0x14e9c4),'before':null,'after':_0x4a22b2,'request':_0x3f0753,'dryRun':!![],'backend':{'method':_0x67f80b(0x16f),'path':_0x567b65},'warnings':[]},{'method':_0x67f80b(0x16f),'url':_0x567b65});}
|