@lovrabet/rabetbase-cli 2.5.12 → 2.5.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api/api-doc.js +1 -1
- package/lib/api/api-group.js +1 -1
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.js +1 -1
- package/lib/api/generate-sdk-config-file.js +1 -1
- package/lib/api/legacy-api-file.js +1 -1
- package/lib/api/model-registry-file.js +1 -1
- package/lib/api/model-registry-scaffold.js +1 -1
- package/lib/api/model-source.js +1 -1
- package/lib/auth/auth-server-ui.js +1 -1
- package/lib/auth/auth-server.js +1 -1
- package/lib/auth/constant.js +1 -1
- package/lib/auth/get-cookie.js +1 -1
- package/lib/auth/get-session-user.js +1 -1
- package/lib/auth/is-session-valid.js +1 -1
- package/lib/auth/login-success-html.js +1 -1
- package/lib/auth/logout.js +1 -1
- package/lib/cli-flags.js +1 -1
- package/lib/cli.js +1 -1
- package/lib/commands/api/generate.js +1 -1
- package/lib/commands/api/index.js +1 -1
- package/lib/commands/api/list.js +1 -1
- package/lib/commands/api/pull.js +1 -1
- package/lib/commands/api/shared.js +1 -1
- package/lib/commands/app/detail.js +1 -1
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/members-list.js +1 -1
- package/lib/commands/app/remote-directory.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/delete.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/app-config/list.js +1 -1
- package/lib/commands/app-config/set.js +1 -1
- package/lib/commands/app-config/shared.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/bff/create.js +1 -1
- package/lib/commands/bff/delete.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/bff/list.js +1 -1
- package/lib/commands/bff/logs.js +1 -1
- package/lib/commands/bff/pull.js +1 -1
- package/lib/commands/bff/push.js +1 -1
- package/lib/commands/bff/status.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/cli-update.js +1 -1
- package/lib/commands/codegen/index.js +1 -1
- package/lib/commands/codegen/sdk.js +1 -1
- package/lib/commands/codegen/sql.js +1 -1
- package/lib/commands/common/app-registry.js +1 -1
- package/lib/commands/common/app-selector.js +1 -1
- package/lib/commands/common/async-task.js +1 -1
- package/lib/commands/common/dry-run.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/common/validate.js +1 -1
- package/lib/commands/config/delete.js +1 -1
- package/lib/commands/config/get.js +1 -1
- package/lib/commands/config/index.js +1 -1
- package/lib/commands/config/init.js +1 -1
- package/lib/commands/config/list.js +1 -1
- package/lib/commands/config/set.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/dataset/batch-design.js +1 -1
- package/lib/commands/dataset/business-group-update.js +1 -1
- package/lib/commands/dataset/business-groups.js +1 -1
- package/lib/commands/dataset/capability.js +1 -1
- package/lib/commands/dataset/cross-relation-create.js +1 -1
- package/lib/commands/dataset/cross-relation-delete.js +1 -1
- package/lib/commands/dataset/cross-relation-list.js +1 -1
- package/lib/commands/dataset/cross-relation-shared.js +1 -1
- package/lib/commands/dataset/cross-relation-update.js +1 -1
- package/lib/commands/dataset/delete.js +1 -1
- package/lib/commands/dataset/design-context.js +1 -1
- package/lib/commands/dataset/design-start.js +1 -1
- package/lib/commands/dataset/design-status.js +1 -1
- package/lib/commands/dataset/design-sync-retry.js +1 -1
- package/lib/commands/dataset/design-sync-status.js +1 -1
- package/lib/commands/dataset/design-validate.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/extend-update.js +1 -1
- package/lib/commands/dataset/field-restore.js +1 -1
- package/lib/commands/dataset/field-update.js +1 -1
- package/lib/commands/dataset/generate.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/dataset/relation-audit.js +1 -1
- package/lib/commands/dataset/relation-create.js +1 -1
- package/lib/commands/dataset/relation-delete.js +1 -1
- package/lib/commands/dataset/relation-shared.js +1 -1
- package/lib/commands/dataset/relation-update.js +1 -1
- package/lib/commands/dataset/relations.js +1 -1
- package/lib/commands/dataset/rename.js +1 -1
- package/lib/commands/dataset/restore.js +1 -1
- package/lib/commands/dataset/user-deleted-field-list.js +1 -1
- package/lib/commands/db/analysis-batching.js +1 -1
- package/lib/commands/db/analyze-batch-plan.js +1 -1
- package/lib/commands/db/analyze-cancel.js +1 -1
- package/lib/commands/db/analyze-start.js +1 -1
- package/lib/commands/db/analyze-status.js +1 -1
- package/lib/commands/db/create.js +1 -1
- package/lib/commands/db/cross-db-analysis-shared.js +1 -1
- package/lib/commands/db/cross-db-analyze-latest.js +1 -1
- package/lib/commands/db/cross-db-analyze-start.js +1 -1
- package/lib/commands/db/cross-db-analyze-status.js +1 -1
- package/lib/commands/db/delete.js +1 -1
- package/lib/commands/db/detail.js +1 -1
- package/lib/commands/db/diff-refresh-start.js +1 -1
- package/lib/commands/db/diff-refresh-status.js +1 -1
- package/lib/commands/db/diff.js +1 -1
- package/lib/commands/db/index.js +1 -1
- package/lib/commands/db/list.js +1 -1
- package/lib/commands/db/shared.js +1 -1
- package/lib/commands/db/table-diff-shared.js +1 -1
- package/lib/commands/db/tables.js +1 -1
- package/lib/commands/db/test.js +1 -1
- package/lib/commands/db/update.js +1 -1
- package/lib/commands/deployment/index.js +1 -1
- package/lib/commands/deployment/sync-all.js +1 -1
- package/lib/commands/deployment/sync-jobs.js +1 -1
- package/lib/commands/deployment/sync-status.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/flow/create.js +1 -1
- package/lib/commands/flow/detail.js +1 -1
- package/lib/commands/flow/index.js +1 -1
- package/lib/commands/flow/list.js +1 -1
- package/lib/commands/flow/page-list.js +1 -1
- package/lib/commands/flow/publish.js +1 -1
- package/lib/commands/flow/runtime-resources-shared.js +1 -1
- package/lib/commands/flow/runtime-role-list.js +1 -1
- package/lib/commands/flow/runtime-role-user-list.js +1 -1
- package/lib/commands/flow/runtime-user-search.js +1 -1
- package/lib/commands/flow/shared.js +1 -1
- package/lib/commands/flow/update.js +1 -1
- package/lib/commands/flow/validate.js +1 -1
- package/lib/commands/instant-api-policy/current.js +1 -1
- package/lib/commands/instant-api-policy/index.js +1 -1
- package/lib/commands/instant-api-policy/init.js +1 -1
- package/lib/commands/instant-api-policy/publish.js +1 -1
- package/lib/commands/instant-api-policy/pull.js +1 -1
- package/lib/commands/instant-api-policy/revision.js +1 -1
- package/lib/commands/instant-api-policy/revisions.js +1 -1
- package/lib/commands/instant-api-policy/rollback.js +1 -1
- package/lib/commands/instant-api-policy/shared.js +1 -1
- package/lib/commands/instant-api-policy/validate.js +1 -1
- package/lib/commands/issue/context.js +1 -1
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/nudge.js +1 -1
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/kb/create.js +1 -1
- package/lib/commands/kb/delete.js +1 -1
- package/lib/commands/kb/detail.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/kb/list.js +1 -1
- package/lib/commands/kb/search.js +1 -1
- package/lib/commands/kb/shared.js +1 -1
- package/lib/commands/kb/update.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/asset-update.js +1 -1
- package/lib/commands/menu/delete.js +1 -1
- package/lib/commands/menu/external-link-create.js +1 -1
- package/lib/commands/menu/external-link-update.js +1 -1
- package/lib/commands/menu/group-create.js +1 -1
- package/lib/commands/menu/group-update.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/list.js +1 -1
- package/lib/commands/menu/move.js +1 -1
- package/lib/commands/menu/regroup-start.js +1 -1
- package/lib/commands/menu/rename.js +1 -1
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/delete-plan.js +1 -1
- package/lib/commands/menu/shared/facts.js +1 -1
- package/lib/commands/menu/shared/index.js +1 -1
- package/lib/commands/menu/shared/inquirer.js +1 -1
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.js +1 -1
- package/lib/commands/menu/shared/mutations.js +1 -1
- package/lib/commands/menu/shared/path.js +1 -1
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/subapp-assets.js +1 -1
- package/lib/commands/menu/shared/sync-core.js +1 -1
- package/lib/commands/menu/shared/update-core.js +1 -1
- package/lib/commands/menu/shared/valid-url.js +1 -1
- package/lib/commands/menu/subapp-assets-status.js +1 -1
- package/lib/commands/menu/subapp-assets-update.js +1 -1
- package/lib/commands/menu/sync.js +1 -1
- package/lib/commands/menu/visibility-update.js +1 -1
- package/lib/commands/notification/config-create.js +1 -1
- package/lib/commands/notification/config-delete.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/config-update.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/notification/shared.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/page/create.js +1 -1
- package/lib/commands/page/custom/detail.js +1 -1
- package/lib/commands/page/custom/list.js +1 -1
- package/lib/commands/page/custom/publish.js +1 -1
- package/lib/commands/page/custom/shared.js +1 -1
- package/lib/commands/page/custom/syntax.js +1 -1
- package/lib/commands/page/custom/update.js +1 -1
- package/lib/commands/page/data-list-status.js +1 -1
- package/lib/commands/page/generate-start.js +1 -1
- package/lib/commands/page/generate-status.js +1 -1
- package/lib/commands/page/index.js +1 -1
- package/lib/commands/page/pull.js +1 -1
- package/lib/commands/page/push.js +1 -1
- package/lib/commands/page/relation-audit.js +1 -1
- package/lib/commands/page/restore.js +1 -1
- package/lib/commands/page/shared.js +1 -1
- package/lib/commands/page/sync.js +1 -1
- package/lib/commands/project/api-architecture-upgrade.js +1 -1
- package/lib/commands/project/create/enhanced-guided-create.js +1 -1
- package/lib/commands/project/create/format-elapsed.js +1 -1
- package/lib/commands/project/create/main.js +1 -1
- package/lib/commands/project/create/materialize-project-template.js +1 -1
- package/lib/commands/project/create/project-name.js +1 -1
- package/lib/commands/project/create/project-template-archive.js +1 -1
- package/lib/commands/project/create/project-template-path.js +1 -1
- package/lib/commands/project/create/use-copy-project-template.js +1 -1
- package/lib/commands/project/create/use-format-code.js +1 -1
- package/lib/commands/project/create/use-install-dependencies.js +1 -1
- package/lib/commands/project/domain-routing-sync.js +1 -1
- package/lib/commands/project/index.js +1 -1
- package/lib/commands/project/upgrade.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/role/user-resolve.js +1 -1
- package/lib/commands/rule/get.js +1 -1
- package/lib/commands/rule/index.js +1 -1
- package/lib/commands/rule/list.js +1 -1
- package/lib/commands/rule/set.js +1 -1
- package/lib/commands/rule/shared.js +1 -1
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/sql/create.js +1 -1
- package/lib/commands/sql/delete.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/sql/list.js +1 -1
- package/lib/commands/sql/pull.js +1 -1
- package/lib/commands/sql/push.js +1 -1
- package/lib/commands/sql/shared.js +1 -1
- package/lib/commands/sql/status.js +1 -1
- package/lib/commands/sql/validate.js +1 -1
- package/lib/commands/task/index.js +1 -1
- package/lib/commands/task/status.js +1 -1
- package/lib/commands/tenant/index.js +1 -1
- package/lib/commands/tenant/members-list.js +1 -1
- package/lib/commands/tenant/shared.js +1 -1
- package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
- package/lib/commands/user-account/feishu-bind.js +1 -1
- package/lib/commands/user-account/index.js +1 -1
- package/lib/commands/workspace/add.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/commands/workspace/remove.js +1 -1
- package/lib/config/domain-config.js +1 -1
- package/lib/config/project-domain-routing.js +1 -1
- package/lib/config/region-config.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/cdn.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/paths.js +1 -1
- package/lib/constant/region.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/routing-profile.js +1 -1
- package/lib/context/app-resolver.js +1 -1
- package/lib/context/auth-resolver.js +1 -1
- package/lib/context/config-loader.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/bff/config.js +1 -1
- package/lib/core/bff/file-system.js +1 -1
- package/lib/core/bff/hash.js +1 -1
- package/lib/core/bff/hook-directory.js +1 -1
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/cross-db-analysis.js +1 -1
- package/lib/core/cross-db-relation.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/flow-config.js +1 -1
- package/lib/core/instant-api-policy/config.js +1 -1
- package/lib/core/instant-api-policy/endpoints.js +1 -1
- package/lib/core/kb-management-client.js +1 -1
- package/lib/core/kb-search-client.js +1 -1
- package/lib/core/page/file-system.js +1 -1
- package/lib/core/page/hash.js +1 -1
- package/lib/core/page/lock.js +1 -1
- package/lib/core/page/lr-smart-jsx.js +1 -1
- package/lib/core/sql-index-auditor.js +1 -1
- package/lib/core/sql-sync/config.js +1 -1
- package/lib/core/sql-sync/file-system.js +1 -1
- package/lib/core/sql-sync/hash.js +1 -1
- package/lib/core/sql-sync/lock.js +1 -1
- package/lib/core/sql-sync/utils.js +1 -1
- package/lib/core/sql-validator.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/error-output.js +1 -1
- package/lib/framework/explicit-yes.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-alias.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/supported-flags.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/generated/official-routing.js +1 -1
- package/lib/generated/routing-contract.js +1 -1
- package/lib/help.js +1 -1
- package/lib/postinstall.js +1 -1
- package/lib/runtime/confirmation.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/services/dataset-design/checkpoint.js +1 -1
- package/lib/services/dataset-design/commands.js +1 -1
- package/lib/services/dataset-design/contract.js +1 -1
- package/lib/skills/builtin-skill.js +1 -1
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/skill-presence.js +1 -1
- package/lib/telemetry/cli-command-trace.js +1 -1
- package/lib/telemetry/cli-help-trace.js +1 -1
- package/lib/telemetry/ensure-cli-otel-config.js +1 -1
- package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
- package/lib/telemetry/send-cli-trace-log.js +1 -1
- package/lib/utils/ai_config.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cdn-config.js +1 -1
- package/lib/utils/check-sdk-version.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/config.js +1 -1
- package/lib/utils/entity-with-id.js +1 -1
- package/lib/utils/file-utils.js +1 -1
- package/lib/utils/guides-cdn.js +1 -1
- package/lib/utils/http-client.js +1 -1
- package/lib/utils/is-non-interactive.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/sleep.js +1 -1
- package/lib/utils/template-replacer.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/with-active-cookie.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
- package/skills/rabetbase/SKILL.md +1 -1
- package/skills/rabetbase/guides/custom-page-workflow.md +32 -2
- package/skills/rabetbase/knowledge/custom-page/generation-standards.md +106 -6
- package/skills/rabetbase-dataset-generation/SKILL.md +1 -1
- package/skills/rabetbase-page-generation/SKILL.md +1 -1
- package/skills/rabetbase.manifest.json +3 -3
- package/templates/custom-pages/blank.json +1 -1
- package/templates/custom-pages/dashboard.json +1 -1
package/lib/commands/doctor.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a124_0x5bbcd=a124_0x50e0;(function(_0x253d6d,_0x54f9b9){const _0x19785f=a124_0x50e0,_0x1f819d=_0x253d6d();while(!![]){try{const _0x5b4ea9=-parseInt(_0x19785f(0x147))/0x1*(parseInt(_0x19785f(0x15b))/0x2)+-parseInt(_0x19785f(0x156))/0x3+parseInt(_0x19785f(0x169))/0x4+-parseInt(_0x19785f(0xfa))/0x5*(parseInt(_0x19785f(0x111))/0x6)+-parseInt(_0x19785f(0xe9))/0x7+parseInt(_0x19785f(0x149))/0x8+-parseInt(_0x19785f(0xdd))/0x9*(-parseInt(_0x19785f(0x132))/0xa);if(_0x5b4ea9===_0x54f9b9)break;else _0x1f819d['push'](_0x1f819d['shift']());}catch(_0x155671){_0x1f819d['push'](_0x1f819d['shift']());}}}(a124_0x4921,0xc552b));import a124_0x95744c from'chalk';function a124_0x50e0(_0x4420a8,_0x239ae6){_0x4420a8=_0x4420a8-0xdd;const _0x492104=a124_0x4921();let _0x50e029=_0x492104[_0x4420a8];return _0x50e029;}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 a124_0x4921(){const _0x5e27a0=['entries','format','call','\x20config\x20delete\x20inherit\x20--global','\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','apiDir','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Installed\x20Path:\x20\x20','\x20\x20runtimeDomain:\x20\x20\x20','Project','2572692StUqBm','raw','projectConfig','default','join','616nNVVQs','\x20\x20app\x20locale:\x20\x20\x20\x20\x20\x20','\x20\x20kbServiceDomain:\x20','null','doctor','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','\x20\x20Config\x20Files','string','Repair\x20','\x20\x20─','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(set,\x20length=','env','hasOwnProperty','269440OHcUih','\x20\x20\x20\x20accessKey:\x20\x20','\x20\x20Config\x20JSON','(not\x20set)','8892NJfwiv','missing','includes','(unknown)','global','\x20\x20explicitAppName:\x20','\x20\x20Legacy\x20inherit:\x20\x20\x20','packageVersion','globalConfig','explicitAppName','apps','not\x20configured','7897365kDKiwz','skillVersion','\x20\x20Apps','Set\x20apps.','state','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20(invalid)','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','log','\x20\x20Repair\x20global:\x20\x20\x20','\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','locale','gray','object','✗\x20Invalid\x20JSON','\x20config','push','46335FeWKTZ','\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','region','prototype','\x20\x20appDomain:\x20\x20\x20\x20\x20\x20\x20','repairCommand','status','(not\x20found)','repeat','platform','bold','\x20config\x20delete\x20routing','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Repair\x20global:\x20\x20\x20\x20','Not\x20checked\x20until\x20routing\x20configuration\x20is\x20repaired','slice','read','source','\x20\x20Built-in\x20Skill','value','reason','\x20config\x20delete\x20region\x20--global','\x20\x20Package\x20Version:\x20','636HvTBuO','cookie','\x20\x20skillDomain:\x20\x20\x20\x20\x20','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','✓\x20Valid','\x20\x20kbDomain:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','filter','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','pageSize','\x20\x20\x20\x20region:\x20\x20\x20\x20\x20','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','green','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','Unavailable\x20until\x20routing\x20configuration\x20is\x20repaired','\x20\x20Routing\x20Configuration','\x20(default)','stringify','yellow','length','defaultApp','empty','unknown','\x20\x20Auth','padEnd','(none)','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','currentApp','appcode','routing','accessKey','30830AOFfmR','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Merged\x20Config','arch','(default:\x20','✓\x20Valid\x20JSON','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','regionConfiguredValue','\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','regionSource','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(default)','message','current','\x20app\x20\x22','✗\x20Not\x20logged\x20in','Global','(set\x20via\x20file,\x20length=','✗\x20Invalid','red','1695onnSuv','label','9479936JaykPT','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20'];a124_0x4921=function(){return _0x5e27a0;};return a124_0x4921();}import{buildAppDoctorFields}from'../config/schema.js';import{resolveEffectiveRegion}from'../config/region-config.js';import{inspectBuiltinSkill}from'../skills/builtin-skill.js';import{DEFAULT_LOVRABET_REGION,isInvalidLovrabetRegion}from'../constant/region.js';function describeRegionValue(_0x1d8165){const _0x23c88a=a124_0x50e0;return typeof _0x1d8165===_0x23c88a(0x162)?JSON[_0x23c88a(0x124)](_0x1d8165):'<'+(_0x1d8165===null?_0x23c88a(0x15e):typeof _0x1d8165)+'>';}async function execute(_0x244c73){const _0x39c1d8=a124_0x50e0,_0x441c4b=GIT_COMMIT!==_0x39c1d8(0x129)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x39c1d8(0x109)](0x0,0xa)+')':VERSION,_0x4d1bfc=buildConfigFromFlags({}),_0x6bdf95=getCookie();let _0x313843;try{await initGlobalEnvironment(_0x4d1bfc);}catch(_0x3e7622){_0x313843=_0x3e7622 instanceof Error?_0x3e7622:new Error(String(_0x3e7622));}console['log'](),console[_0x39c1d8(0xf1)](a124_0x95744c['bold'](CLI_BIN_NAME+'\x20doctor')),console['log'](a124_0x95744c[_0x39c1d8(0xf5)]('─'['repeat'](0x32))),console['log'](_0x39c1d8(0x120)+_0x441c4b),console['log'](_0x39c1d8(0x13d)+process['version']),console[_0x39c1d8(0xf1)]('\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20'+process[_0x39c1d8(0x103)]+'\x20'+process[_0x39c1d8(0x135)]);const _0x15bb3a=inspectBuiltinSkill();console[_0x39c1d8(0xf1)](),console[_0x39c1d8(0xf1)](a124_0x95744c['bold'](_0x39c1d8(0x10c))),console[_0x39c1d8(0xf1)](a124_0x95744c[_0x39c1d8(0xf5)](_0x39c1d8(0x164)['repeat'](0x1e)));const _0x344590=_0x15bb3a['state']==='current'?a124_0x95744c[_0x39c1d8(0x11f)]('✓\x20'+_0x15bb3a['state']):a124_0x95744c[_0x39c1d8(0x146)]('✗\x20'+_0x15bb3a[_0x39c1d8(0xed)]);console[_0x39c1d8(0xf1)](_0x39c1d8(0x13b)+_0x344590),console['log'](_0x39c1d8(0x110)+_0x15bb3a[_0x39c1d8(0xe4)]),console['log']('\x20\x20Skill\x20Version:\x20\x20\x20'+(_0x15bb3a[_0x39c1d8(0xea)]||a124_0x95744c[_0x39c1d8(0xf5)](_0x39c1d8(0xe0)))),console['log'](_0x39c1d8(0x153)+(_0x15bb3a['installedPath']||a124_0x95744c[_0x39c1d8(0xf5)](_0x39c1d8(0x101))));if(_0x15bb3a[_0x39c1d8(0x10e)])console['log'](_0x39c1d8(0xfb)+_0x15bb3a[_0x39c1d8(0x10e)]);_0x15bb3a[_0x39c1d8(0xed)]!==_0x39c1d8(0x140)&&console[_0x39c1d8(0xf1)](_0x39c1d8(0xf3)+_0x15bb3a[_0x39c1d8(0xff)]);console[_0x39c1d8(0xf1)](),console[_0x39c1d8(0xf1)](a124_0x95744c[_0x39c1d8(0x104)](_0x39c1d8(0x161))),console[_0x39c1d8(0xf1)](a124_0x95744c['gray'](_0x39c1d8(0x164)[_0x39c1d8(0x102)](0x1e)));const _0x22a905=getGlobalConfigPath(),_0x366e6b=getProjectConfigPath();console[_0x39c1d8(0xf1)](_0x39c1d8(0x106)+(_0x22a905||a124_0x95744c['gray'](_0x39c1d8(0x101)))),console['log'](_0x39c1d8(0x133)+(_0x366e6b||a124_0x95744c[_0x39c1d8(0xf5)](_0x39c1d8(0x101)))),console['log'](),console[_0x39c1d8(0xf1)](a124_0x95744c[_0x39c1d8(0x104)](_0x39c1d8(0x16b))),console[_0x39c1d8(0xf1)](a124_0x95744c[_0x39c1d8(0xf5)](_0x39c1d8(0x164)['repeat'](0x1e)));const _0x5089e0=(_0x3db805,_0x57362b)=>{const _0x58e0b7=_0x39c1d8;if(!_0x57362b){console[_0x58e0b7(0xf1)]('\x20\x20'+_0x3db805[_0x58e0b7(0x12b)](0x11)+'\x20'+a124_0x95744c[_0x58e0b7(0xf5)]('(no\x20file)'));return;}const _0x3d82e2=inspectCliConfigJsonFile(_0x57362b);if(_0x3d82e2[_0x58e0b7(0x100)]==='ok')console[_0x58e0b7(0xf1)]('\x20\x20'+_0x3db805['padEnd'](0x11)+'\x20'+a124_0x95744c[_0x58e0b7(0x11f)](_0x58e0b7(0x137)));else{if(_0x3d82e2[_0x58e0b7(0x100)]===_0x58e0b7(0x128))console['log']('\x20\x20'+_0x3db805[_0x58e0b7(0x12b)](0x11)+'\x20'+a124_0x95744c[_0x58e0b7(0x125)]('⚠\x20Empty\x20(treated\x20as\x20{})'));else _0x3d82e2[_0x58e0b7(0x100)]===_0x58e0b7(0xde)?console['log']('\x20\x20'+_0x3db805['padEnd'](0x11)+'\x20'+a124_0x95744c[_0x58e0b7(0xf5)]('(missing)')):(console[_0x58e0b7(0xf1)]('\x20\x20'+_0x3db805[_0x58e0b7(0x12b)](0x11)+'\x20'+a124_0x95744c[_0x58e0b7(0x146)](_0x58e0b7(0xf7))),console['log']('\x20\x20'+''['padEnd'](0x11)+'\x20'+a124_0x95744c['red'](_0x3d82e2[_0x58e0b7(0x13f)])));}};_0x5089e0(_0x39c1d8(0x143),_0x22a905),_0x5089e0(_0x39c1d8(0x155),_0x366e6b);const _0x1e8a90=loadRawConfigLayers(),_0x40f9c2=[{'label':_0x39c1d8(0x155),'value':_0x1e8a90[_0x39c1d8(0x158)][_0x39c1d8(0xfc)],'present':Object['prototype']['hasOwnProperty']['call'](_0x1e8a90['projectConfig'],'region'),'repairCommand':CLI_BIN_NAME+'\x20config\x20delete\x20region'},{'label':_0x39c1d8(0x143),'value':_0x1e8a90[_0x39c1d8(0xe5)][_0x39c1d8(0xfc)],'present':Object[_0x39c1d8(0xfd)][_0x39c1d8(0x168)][_0x39c1d8(0x14e)](_0x1e8a90[_0x39c1d8(0xe5)],_0x39c1d8(0xfc)),'repairCommand':CLI_BIN_NAME+_0x39c1d8(0x10f)}][_0x39c1d8(0x11a)](_0x542968=>_0x542968['present']&&isInvalidLovrabetRegion(_0x542968[_0x39c1d8(0x10d)]));for(const [_0x2eb9db,_0x1348c8]of[[_0x39c1d8(0x155),_0x1e8a90['projectConfig']],[_0x39c1d8(0x143),_0x1e8a90['globalConfig']]]){const _0x1afd83=_0x1348c8[_0x39c1d8(0xe7)]&&typeof _0x1348c8[_0x39c1d8(0xe7)]===_0x39c1d8(0xf6)?_0x1348c8[_0x39c1d8(0xe7)]:{};for(const [_0x3b84eb,_0x3a8f36]of Object[_0x39c1d8(0x14c)](_0x1afd83)){if(!_0x3a8f36||typeof _0x3a8f36!==_0x39c1d8(0xf6)||!Object['prototype']['hasOwnProperty'][_0x39c1d8(0x14e)](_0x3a8f36,_0x39c1d8(0xfc)))continue;isInvalidLovrabetRegion(_0x3a8f36['region'])&&_0x40f9c2[_0x39c1d8(0xf9)]({'label':_0x2eb9db+_0x39c1d8(0x141)+_0x3b84eb+'\x22','value':_0x3a8f36[_0x39c1d8(0xfc)],'present':!![],'repairCommand':_0x39c1d8(0xec)+_0x3b84eb+'.region\x20to\x20cn\x20or\x20id\x20in\x20'+_0x2eb9db['toLowerCase']()+_0x39c1d8(0xf8)});}}if(_0x40f9c2[_0x39c1d8(0x126)]>0x0){console[_0x39c1d8(0xf1)](),console[_0x39c1d8(0xf1)](a124_0x95744c[_0x39c1d8(0x104)]('\x20\x20Country/Region\x20Configuration')),console[_0x39c1d8(0xf1)](a124_0x95744c[_0x39c1d8(0xf5)](_0x39c1d8(0x164)[_0x39c1d8(0x102)](0x1e)));for(const _0x86a8f8 of _0x40f9c2){console['log']('\x20\x20'+_0x86a8f8['label'][_0x39c1d8(0x12b)](0x11)+'\x20'+a124_0x95744c[_0x39c1d8(0x146)]('✗\x20Invalid\x20'+describeRegionValue(_0x86a8f8['value']))),console[_0x39c1d8(0xf1)]('\x20\x20'+(_0x39c1d8(0x163)+_0x86a8f8[_0x39c1d8(0x148)]['toLowerCase']()+':')[_0x39c1d8(0x12b)](0x10)+'\x20'+_0x86a8f8[_0x39c1d8(0xff)]);}}const _0x210240=[Object[_0x39c1d8(0xfd)][_0x39c1d8(0x168)]['call'](_0x1e8a90[_0x39c1d8(0xe5)],'inherit')?_0x39c1d8(0xe1):null,Object[_0x39c1d8(0xfd)]['hasOwnProperty'][_0x39c1d8(0x14e)](_0x1e8a90[_0x39c1d8(0x158)],'inherit')?'project':null][_0x39c1d8(0x11a)](Boolean);_0x210240[_0x39c1d8(0x126)]>0x0&&(console['log'](_0x39c1d8(0xe3)+a124_0x95744c['yellow']('ignored\x20in\x20'+_0x210240[_0x39c1d8(0x15a)]('\x20+\x20')+_0x39c1d8(0xf8))),_0x210240[_0x39c1d8(0xdf)]('project')&&console['log']('\x20\x20Repair\x20project:\x20\x20\x20'+CLI_BIN_NAME+'\x20config\x20delete\x20inherit'),_0x210240[_0x39c1d8(0xdf)](_0x39c1d8(0xe1))&&console[_0x39c1d8(0xf1)](_0x39c1d8(0x107)+CLI_BIN_NAME+_0x39c1d8(0x14f)));const _0x31429e=isInvalidLovrabetRegion(_0x4d1bfc[_0x39c1d8(0x13a)]??_0x4d1bfc[_0x39c1d8(0x157)]?.[_0x39c1d8(0xfc)]);_0x313843&&!_0x31429e&&(console[_0x39c1d8(0xf1)](),console['log'](a124_0x95744c[_0x39c1d8(0x104)](_0x39c1d8(0x122))),console['log'](a124_0x95744c[_0x39c1d8(0xf5)](_0x39c1d8(0x164)[_0x39c1d8(0x102)](0x1e))),console[_0x39c1d8(0xf1)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a124_0x95744c[_0x39c1d8(0x146)](_0x39c1d8(0x145))),console[_0x39c1d8(0xf1)](_0x39c1d8(0xfb)+_0x313843[_0x39c1d8(0x13f)]),Object['prototype'][_0x39c1d8(0x168)][_0x39c1d8(0x14e)](_0x1e8a90[_0x39c1d8(0x158)],_0x39c1d8(0x130))&&console[_0x39c1d8(0xf1)]('\x20\x20Repair\x20project:\x20\x20'+CLI_BIN_NAME+_0x39c1d8(0x105)),Object[_0x39c1d8(0xfd)][_0x39c1d8(0x168)][_0x39c1d8(0x14e)](_0x1e8a90[_0x39c1d8(0xe5)],_0x39c1d8(0x130))&&console[_0x39c1d8(0xf1)](_0x39c1d8(0xf2)+CLI_BIN_NAME+'\x20config\x20delete\x20routing\x20--global'));console[_0x39c1d8(0xf1)](),console[_0x39c1d8(0xf1)](a124_0x95744c[_0x39c1d8(0x104)](_0x39c1d8(0x134))),console['log'](a124_0x95744c[_0x39c1d8(0xf5)]('\x20\x20─'[_0x39c1d8(0x102)](0x1e))),console[_0x39c1d8(0xf1)](_0x39c1d8(0x11e)+(_0x4d1bfc['appCode']||a124_0x95744c[_0x39c1d8(0x146)](_0x39c1d8(0x16c))));const _0x4c6377=_0x31429e?a124_0x95744c[_0x39c1d8(0x146)](describeRegionValue(_0x4d1bfc[_0x39c1d8(0x13a)]??_0x4d1bfc[_0x39c1d8(0x157)]?.[_0x39c1d8(0xfc)])+_0x39c1d8(0xef)):(_0x4d1bfc[_0x39c1d8(0xfc)]??DEFAULT_LOVRABET_REGION)+'\x20('+(_0x4d1bfc[_0x39c1d8(0x13c)]??_0x39c1d8(0x159))+')';console['log'](_0x39c1d8(0x150)+_0x4c6377),console[_0x39c1d8(0xf1)](_0x39c1d8(0x165)+_0x4d1bfc[_0x39c1d8(0x167)]),console[_0x39c1d8(0xf1)](_0x39c1d8(0x15c)+_0x4d1bfc[_0x39c1d8(0xf4)]),console[_0x39c1d8(0xf1)](_0x39c1d8(0xee)+_0x4d1bfc[_0x39c1d8(0x151)]),console[_0x39c1d8(0xf1)]('\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20'+(_0x4d1bfc[_0x39c1d8(0x127)]||a124_0x95744c[_0x39c1d8(0xf5)](_0x39c1d8(0x12c)))),console[_0x39c1d8(0xf1)](_0x39c1d8(0x115)+(_0x4d1bfc[_0x39c1d8(0x12e)]||a124_0x95744c[_0x39c1d8(0xf5)]('(none)'))),console[_0x39c1d8(0xf1)](_0x39c1d8(0xe2)+(_0x4d1bfc[_0x39c1d8(0xe6)]||a124_0x95744c[_0x39c1d8(0xf5)](_0x39c1d8(0x12c)))),console[_0x39c1d8(0xf1)](_0x39c1d8(0x116)+(_0x4d1bfc[_0x39c1d8(0x14d)]||a124_0x95744c[_0x39c1d8(0xf5)](_0x39c1d8(0x136)+DEFAULT_CONFIG_VALUES[_0x39c1d8(0x14d)]+')'))),console[_0x39c1d8(0xf1)](_0x39c1d8(0x14a)+(_0x4d1bfc[_0x39c1d8(0x11c)]??a124_0x95744c[_0x39c1d8(0xf5)](_0x39c1d8(0x13e)))),console['log'](_0x39c1d8(0x160)+_0x4d1bfc['riskLevel']),console['log'](_0x39c1d8(0x114)+_0x4d1bfc['verbose']),console[_0x39c1d8(0xf1)](_0x39c1d8(0x152)+(_0x4d1bfc[_0x39c1d8(0x112)]?a124_0x95744c['green'](_0x39c1d8(0x166)+_0x4d1bfc[_0x39c1d8(0x112)][_0x39c1d8(0x126)]+')'):_0x6bdf95?a124_0x95744c[_0x39c1d8(0x11f)](_0x39c1d8(0x144)+_0x6bdf95[_0x39c1d8(0x126)]+')'):a124_0x95744c[_0x39c1d8(0xf5)](_0x39c1d8(0x12c))));const _0x459d26=Object['keys'](_0x4d1bfc[_0x39c1d8(0xe7)]);if(_0x459d26['length']>0x0){console[_0x39c1d8(0xf1)](),console[_0x39c1d8(0xf1)](a124_0x95744c[_0x39c1d8(0x104)](_0x39c1d8(0xeb))),console[_0x39c1d8(0xf1)](a124_0x95744c[_0x39c1d8(0xf5)](_0x39c1d8(0x164)[_0x39c1d8(0x102)](0x1e)));for(const _0x40ea8a of _0x459d26){const _0x29ca94=_0x4d1bfc['apps'][_0x40ea8a],_0xf25469=_0x40ea8a===_0x4d1bfc[_0x39c1d8(0x127)],_0x1a17e1=_0x40ea8a===_0x4d1bfc[_0x39c1d8(0x12e)],_0x5b3718=_0x1a17e1?a124_0x95744c[_0x39c1d8(0x11f)]('\x20←\x20current'):'',_0x3e09cb=_0xf25469?_0x39c1d8(0x123):'';console[_0x39c1d8(0xf1)]('\x20\x20'+_0x40ea8a+_0x3e09cb+_0x5b3718),console[_0x39c1d8(0xf1)](_0x39c1d8(0x11b)+_0x29ca94[_0x39c1d8(0x12f)]);const _0x320b63=_0x1e8a90[_0x39c1d8(0x158)][_0x39c1d8(0xe7)]&&typeof _0x1e8a90[_0x39c1d8(0x158)]['apps']===_0x39c1d8(0xf6)?_0x1e8a90['projectConfig'][_0x39c1d8(0xe7)]:{},_0x595e6c=Object[_0x39c1d8(0xfd)][_0x39c1d8(0x168)]['call'](_0x320b63,_0x40ea8a),_0x11a340=isInvalidLovrabetRegion(_0x29ca94['region'])?{'region':_0x4d1bfc[_0x39c1d8(0xfc)]??DEFAULT_LOVRABET_REGION}:resolveEffectiveRegion({'appRegion':_0x29ca94[_0x39c1d8(0xfc)],'projectRegion':_0x595e6c?_0x1e8a90[_0x39c1d8(0x158)][_0x39c1d8(0xfc)]:undefined,'globalRegion':_0x1e8a90['globalConfig'][_0x39c1d8(0xfc)],'mergedRegion':_0x4d1bfc[_0x39c1d8(0x157)][_0x39c1d8(0xfc)],'appName':_0x40ea8a}),_0x5c0031=buildAppDoctorFields(_0x29ca94,{'region':_0x11a340['region'],'env':_0x4d1bfc[_0x39c1d8(0x167)],'apiDir':_0x4d1bfc['raw'][_0x39c1d8(0x151)]||DEFAULT_CONFIG_VALUES[_0x39c1d8(0x151)],'cookie':_0x4d1bfc[_0x39c1d8(0x112)]||_0x6bdf95||undefined,'accessKey':_0x4d1bfc[_0x39c1d8(0x131)]});console['log'](_0x39c1d8(0x11d)+_0x5c0031['region'][_0x39c1d8(0x10d)]+'\x20\x20'+a124_0x95744c[_0x39c1d8(0xf5)]('('+_0x5c0031[_0x39c1d8(0xfc)][_0x39c1d8(0x10b)]+')')),console[_0x39c1d8(0xf1)](_0x39c1d8(0xf0)+_0x5c0031[_0x39c1d8(0x167)][_0x39c1d8(0x10d)]+'\x20\x20'+a124_0x95744c[_0x39c1d8(0xf5)]('('+_0x5c0031[_0x39c1d8(0x167)]['source']+')')),console[_0x39c1d8(0xf1)](_0x39c1d8(0x139)+_0x5c0031[_0x39c1d8(0x151)][_0x39c1d8(0x10d)]+'\x20\x20'+a124_0x95744c[_0x39c1d8(0xf5)]('('+_0x5c0031[_0x39c1d8(0x151)]['source']+')'));const _0x550ffb=_0x5c0031['cookie'][_0x39c1d8(0x10d)]?a124_0x95744c['green'](_0x39c1d8(0x166)+_0x5c0031[_0x39c1d8(0x112)][_0x39c1d8(0x10d)][_0x39c1d8(0x126)]+')'):a124_0x95744c[_0x39c1d8(0xf5)](_0x39c1d8(0x12c));console[_0x39c1d8(0xf1)](_0x39c1d8(0x119)+_0x550ffb+'\x20\x20'+a124_0x95744c[_0x39c1d8(0xf5)]('('+_0x5c0031[_0x39c1d8(0x112)][_0x39c1d8(0x10b)]+')'));const _0x292604=_0x5c0031[_0x39c1d8(0x131)][_0x39c1d8(0x10d)]?a124_0x95744c[_0x39c1d8(0x11f)]('(set,\x20length='+_0x5c0031[_0x39c1d8(0x131)]['value'][_0x39c1d8(0x126)]+')'):a124_0x95744c[_0x39c1d8(0xf5)](_0x39c1d8(0x12c));console['log'](_0x39c1d8(0x16a)+_0x292604+'\x20\x20'+a124_0x95744c[_0x39c1d8(0xf5)]('('+_0x5c0031[_0x39c1d8(0x131)][_0x39c1d8(0x10b)]+')'));}}console[_0x39c1d8(0xf1)](),console['log'](a124_0x95744c[_0x39c1d8(0x104)]('\x20\x20API\x20Endpoints')),console['log'](a124_0x95744c[_0x39c1d8(0xf5)](_0x39c1d8(0x164)[_0x39c1d8(0x102)](0x1e)));_0x313843?console['log'](_0x39c1d8(0x12d)+a124_0x95744c[_0x39c1d8(0x146)](_0x39c1d8(0x121))):(console[_0x39c1d8(0xf1)](_0x39c1d8(0x150)+getActiveRegion()),console['log'](_0x39c1d8(0x14b)+getApiDomain()),console[_0x39c1d8(0xf1)]('\x20\x20userDomain:\x20\x20\x20\x20\x20\x20'+getUserDomain()),console[_0x39c1d8(0xf1)](_0x39c1d8(0x154)+getRuntimeDomain()),console[_0x39c1d8(0xf1)](_0x39c1d8(0x113)+getSkillDomain()),console[_0x39c1d8(0xf1)](_0x39c1d8(0x118)+getKbDomain()),console[_0x39c1d8(0xf1)](_0x39c1d8(0x15d)+(getKbServiceDomain()??_0x39c1d8(0xe8))),console['log'](_0x39c1d8(0xfe)+getAppDomain()));console[_0x39c1d8(0xf1)](),console[_0x39c1d8(0xf1)](a124_0x95744c[_0x39c1d8(0x104)](_0x39c1d8(0x12a))),console[_0x39c1d8(0xf1)](a124_0x95744c[_0x39c1d8(0xf5)](_0x39c1d8(0x164)[_0x39c1d8(0x102)](0x1e)));if(_0x313843)console['log'](_0x39c1d8(0x12d)+a124_0x95744c['yellow'](_0x39c1d8(0x108)));else{if(_0x6bdf95){const _0x322baa=await getIsSessionValid();console[_0x39c1d8(0xf1)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x322baa?a124_0x95744c[_0x39c1d8(0x11f)](_0x39c1d8(0x117)):a124_0x95744c[_0x39c1d8(0x146)]('✗\x20Expired')));}else console[_0x39c1d8(0xf1)](_0x39c1d8(0x12d)+a124_0x95744c['red'](_0x39c1d8(0x142)));}return console[_0x39c1d8(0xf1)](),{'ok':!![]};}export const doctorDefinition={'service':a124_0x5bbcd(0x15f),'command':'check','description':a124_0x5bbcd(0x138),'risk':a124_0x5bbcd(0x10a),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
|
|
1
|
+
const a124_0x122c58=a124_0x1210;(function(_0x4401ea,_0x531503){const _0x2a9f99=a124_0x1210,_0x3f884f=_0x4401ea();while(!![]){try{const _0x5acced=parseInt(_0x2a9f99(0x16d))/0x1+-parseInt(_0x2a9f99(0x152))/0x2+-parseInt(_0x2a9f99(0x16e))/0x3*(-parseInt(_0x2a9f99(0x156))/0x4)+parseInt(_0x2a9f99(0x118))/0x5*(parseInt(_0x2a9f99(0x135))/0x6)+-parseInt(_0x2a9f99(0x169))/0x7*(parseInt(_0x2a9f99(0x11d))/0x8)+-parseInt(_0x2a9f99(0x163))/0x9+-parseInt(_0x2a9f99(0x11c))/0xa*(-parseInt(_0x2a9f99(0x145))/0xb);if(_0x5acced===_0x531503)break;else _0x3f884f['push'](_0x3f884f['shift']());}catch(_0x17be36){_0x3f884f['push'](_0x3f884f['shift']());}}}(a124_0x3cc8,0x727df));import a124_0x1e0b6b from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';function a124_0x1210(_0x15672c,_0x1d45ec){_0x15672c=_0x15672c-0xfb;const _0x3cc876=a124_0x3cc8();let _0x121066=_0x3cc876[_0x15672c];return _0x121066;}import{getActiveRegion,getApiDomain,getAppDomain,getKbDomain,getKbServiceDomain,getSkillDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags,initGlobalEnvironment,inspectCliConfigJsonFile,loadRawConfigLayers}from'../context.js';function a124_0x3cc8(){const _0x801057=['padEnd','\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','packageVersion','\x20doctor','3048ohvIqS','red','✗\x20Expired','missing','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','repeat','✗\x20Invalid','\x20\x20Auth','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20skillDomain:\x20\x20\x20\x20\x20','\x20\x20Repair\x20project:\x20\x20\x20','(none)','Not\x20checked\x20until\x20routing\x20configuration\x20is\x20repaired','entries','yellow','66QfkasC','apps','green','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','current','env','\x20config\x20delete\x20routing\x20--global','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','prototype','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','call','(set,\x20length=','routing','1581800TDBayO','(default:\x20','\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20appDomain:\x20\x20\x20\x20\x20\x20\x20','116TkGYvi','\x20app\x20\x22','empty','gray','\x20\x20Skill\x20Version:\x20\x20\x20','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','riskLevel','skillVersion','format','\x20config','message','label','\x20\x20Legacy\x20inherit:\x20\x20\x20','7261011asQmfC','appCode','unknown','projectConfig','slice','\x20\x20API\x20Endpoints','21bjPPCu','\x20\x20Config\x20Files','regionConfiguredValue','\x20\x20Package\x20Version:\x20','669572LHugkT','20031NXgcZt','\x20\x20\x20\x20region:\x20\x20\x20\x20\x20','cookie','stringify','\x20(invalid)','raw','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','installedPath','appcode','Repair\x20','bold','source','locale','\x20config\x20delete\x20region','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','apiDir','Global','reason','\x20\x20runtimeDomain:\x20\x20\x20','value','object','⚠\x20Empty\x20(treated\x20as\x20{})','present','status','read','\x20config\x20delete\x20inherit','arch','(no\x20file)','globalConfig','ignored\x20in\x20','\x20\x20explicitAppName:\x20','toLowerCase','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20accessKey:\x20\x20','.region\x20to\x20cn\x20or\x20id\x20in\x20','✓\x20Valid','platform','accessKey','\x20\x20kbDomain:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Built-in\x20Skill','(not\x20found)','keys','\x20\x20Repair\x20project:\x20\x20','global','\x20config\x20delete\x20region\x20--global','\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(set\x20via\x20file,\x20length=','repairCommand','(unknown)','\x20\x20kbServiceDomain:\x20','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','(missing)','includes','\x20\x20Repair\x20global:\x20\x20\x20\x20','state','(not\x20set)','project','\x20\x20Installed\x20Path:\x20\x20','pageSize','\x20config\x20delete\x20routing','Project','Unavailable\x20until\x20routing\x20configuration\x20is\x20repaired','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','8735zYPqAy','region','\x20\x20Repair\x20global:\x20\x20\x20','log','1700670EyhxjH','1878520AMPRIO','string','Set\x20apps.','inherit','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','doctor','explicitAppName','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','\x20\x20─','✗\x20Invalid\x20','hasOwnProperty','\x20\x20Config\x20JSON','length','defaultApp','verbose','push','filter','\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20+\x20'];a124_0x3cc8=function(){return _0x801057;};return a124_0x3cc8();}import{getIsSessionValid}from'../auth/is-session-valid.js';import{getCookie}from'../auth/get-cookie.js';import{buildAppDoctorFields}from'../config/schema.js';import{resolveEffectiveRegion}from'../config/region-config.js';import{inspectBuiltinSkill}from'../skills/builtin-skill.js';import{DEFAULT_LOVRABET_REGION,isInvalidLovrabetRegion}from'../constant/region.js';function describeRegionValue(_0x1a0321){const _0x393f8b=a124_0x1210;return typeof _0x1a0321===_0x393f8b(0x11e)?JSON[_0x393f8b(0x171)](_0x1a0321):'<'+(_0x1a0321===null?'null':typeof _0x1a0321)+'>';}async function execute(_0x5540c1){const _0x39ae39=a124_0x1210,_0x38a92c=GIT_COMMIT!==_0x39ae39(0x165)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x39ae39(0x167)](0x0,0xa)+')':VERSION,_0x5ea386=buildConfigFromFlags({}),_0x41be03=getCookie();let _0x4a132f;try{await initGlobalEnvironment(_0x5ea386);}catch(_0x59fab9){_0x4a132f=_0x59fab9 instanceof Error?_0x59fab9:new Error(String(_0x59fab9));}console[_0x39ae39(0x11b)](),console[_0x39ae39(0x11b)](a124_0x1e0b6b[_0x39ae39(0x178)](CLI_BIN_NAME+_0x39ae39(0x134))),console[_0x39ae39(0x11b)](a124_0x1e0b6b[_0x39ae39(0x159)]('─'[_0x39ae39(0x13b)](0x32))),console[_0x39ae39(0x11b)](_0x39ae39(0x14c)+_0x38a92c),console[_0x39ae39(0x11b)](_0x39ae39(0x13e)+process['version']),console['log'](_0x39ae39(0x18f)+process[_0x39ae39(0xfd)]+'\x20'+process[_0x39ae39(0x188)]);const _0x2acf66=inspectBuiltinSkill();console[_0x39ae39(0x11b)](),console[_0x39ae39(0x11b)](a124_0x1e0b6b[_0x39ae39(0x178)](_0x39ae39(0x100))),console['log'](a124_0x1e0b6b[_0x39ae39(0x159)](_0x39ae39(0x126)['repeat'](0x1e)));const _0x103883=_0x2acf66[_0x39ae39(0x10f)]==='current'?a124_0x1e0b6b['green']('✓\x20'+_0x2acf66[_0x39ae39(0x10f)]):a124_0x1e0b6b['red']('✗\x20'+_0x2acf66[_0x39ae39(0x10f)]);console['log'](_0x39ae39(0x132)+_0x103883),console[_0x39ae39(0x11b)](_0x39ae39(0x16c)+_0x2acf66[_0x39ae39(0x133)]),console[_0x39ae39(0x11b)](_0x39ae39(0x15a)+(_0x2acf66[_0x39ae39(0x15d)]||a124_0x1e0b6b[_0x39ae39(0x159)](_0x39ae39(0x109)))),console[_0x39ae39(0x11b)](_0x39ae39(0x112)+(_0x2acf66[_0x39ae39(0x175)]||a124_0x1e0b6b[_0x39ae39(0x159)](_0x39ae39(0x101))));if(_0x2acf66['reason'])console['log'](_0x39ae39(0x154)+_0x2acf66[_0x39ae39(0x17f)]);_0x2acf66[_0x39ae39(0x10f)]!==_0x39ae39(0x149)&&console[_0x39ae39(0x11b)](_0x39ae39(0x12f)+_0x2acf66[_0x39ae39(0x108)]);console[_0x39ae39(0x11b)](),console['log'](a124_0x1e0b6b[_0x39ae39(0x178)](_0x39ae39(0x16a))),console[_0x39ae39(0x11b)](a124_0x1e0b6b[_0x39ae39(0x159)](_0x39ae39(0x126)['repeat'](0x1e)));const _0x20e40b=getGlobalConfigPath(),_0x805553=getProjectConfigPath();console[_0x39ae39(0x11b)]('\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x20e40b||a124_0x1e0b6b[_0x39ae39(0x159)]('(not\x20found)'))),console[_0x39ae39(0x11b)](_0x39ae39(0x139)+(_0x805553||a124_0x1e0b6b[_0x39ae39(0x159)](_0x39ae39(0x101)))),console[_0x39ae39(0x11b)](),console[_0x39ae39(0x11b)](a124_0x1e0b6b[_0x39ae39(0x178)](_0x39ae39(0x129))),console['log'](a124_0x1e0b6b[_0x39ae39(0x159)](_0x39ae39(0x126)[_0x39ae39(0x13b)](0x1e)));const _0xc2363a=(_0x12efad,_0x5d4ab6)=>{const _0x3c9e1f=_0x39ae39;if(!_0x5d4ab6){console[_0x3c9e1f(0x11b)]('\x20\x20'+_0x12efad['padEnd'](0x11)+'\x20'+a124_0x1e0b6b[_0x3c9e1f(0x159)](_0x3c9e1f(0x189)));return;}const _0xe878da=inspectCliConfigJsonFile(_0x5d4ab6);if(_0xe878da[_0x3c9e1f(0x185)]==='ok')console['log']('\x20\x20'+_0x12efad[_0x3c9e1f(0x131)](0x11)+'\x20'+a124_0x1e0b6b['green']('✓\x20Valid\x20JSON'));else{if(_0xe878da['status']===_0x3c9e1f(0x158))console['log']('\x20\x20'+_0x12efad[_0x3c9e1f(0x131)](0x11)+'\x20'+a124_0x1e0b6b[_0x3c9e1f(0x144)](_0x3c9e1f(0x183)));else _0xe878da[_0x3c9e1f(0x185)]===_0x3c9e1f(0x138)?console[_0x3c9e1f(0x11b)]('\x20\x20'+_0x12efad[_0x3c9e1f(0x131)](0x11)+'\x20'+a124_0x1e0b6b[_0x3c9e1f(0x159)](_0x3c9e1f(0x10c))):(console['log']('\x20\x20'+_0x12efad[_0x3c9e1f(0x131)](0x11)+'\x20'+a124_0x1e0b6b[_0x3c9e1f(0x136)]('✗\x20Invalid\x20JSON')),console['log']('\x20\x20'+''[_0x3c9e1f(0x131)](0x11)+'\x20'+a124_0x1e0b6b['red'](_0xe878da[_0x3c9e1f(0x160)])));}};_0xc2363a(_0x39ae39(0x17e),_0x20e40b),_0xc2363a(_0x39ae39(0x115),_0x805553);const _0x4a5acb=loadRawConfigLayers(),_0x30f83c=[{'label':'Project','value':_0x4a5acb['projectConfig'][_0x39ae39(0x119)],'present':Object[_0x39ae39(0x14d)][_0x39ae39(0x128)][_0x39ae39(0x14f)](_0x4a5acb[_0x39ae39(0x166)],_0x39ae39(0x119)),'repairCommand':CLI_BIN_NAME+_0x39ae39(0x17b)},{'label':_0x39ae39(0x17e),'value':_0x4a5acb[_0x39ae39(0x18a)][_0x39ae39(0x119)],'present':Object['prototype']['hasOwnProperty'][_0x39ae39(0x14f)](_0x4a5acb[_0x39ae39(0x18a)],_0x39ae39(0x119)),'repairCommand':CLI_BIN_NAME+_0x39ae39(0x105)}][_0x39ae39(0x12e)](_0x59217b=>_0x59217b[_0x39ae39(0x184)]&&isInvalidLovrabetRegion(_0x59217b[_0x39ae39(0x181)]));for(const [_0x4d6311,_0x384226]of[[_0x39ae39(0x115),_0x4a5acb[_0x39ae39(0x166)]],[_0x39ae39(0x17e),_0x4a5acb['globalConfig']]]){const _0x2b7fb4=_0x384226[_0x39ae39(0x146)]&&typeof _0x384226[_0x39ae39(0x146)]===_0x39ae39(0x182)?_0x384226[_0x39ae39(0x146)]:{};for(const [_0x446f05,_0x511f30]of Object[_0x39ae39(0x143)](_0x2b7fb4)){if(!_0x511f30||typeof _0x511f30!==_0x39ae39(0x182)||!Object[_0x39ae39(0x14d)][_0x39ae39(0x128)][_0x39ae39(0x14f)](_0x511f30,_0x39ae39(0x119)))continue;isInvalidLovrabetRegion(_0x511f30[_0x39ae39(0x119)])&&_0x30f83c[_0x39ae39(0x12d)]({'label':_0x4d6311+_0x39ae39(0x157)+_0x446f05+'\x22','value':_0x511f30['region'],'present':!![],'repairCommand':_0x39ae39(0x11f)+_0x446f05+_0x39ae39(0xfb)+_0x4d6311['toLowerCase']()+'\x20config'});}}if(_0x30f83c[_0x39ae39(0x12a)]>0x0){console[_0x39ae39(0x11b)](),console[_0x39ae39(0x11b)](a124_0x1e0b6b[_0x39ae39(0x178)]('\x20\x20Country/Region\x20Configuration')),console[_0x39ae39(0x11b)](a124_0x1e0b6b[_0x39ae39(0x159)](_0x39ae39(0x126)[_0x39ae39(0x13b)](0x1e)));for(const _0x1365d9 of _0x30f83c){console['log']('\x20\x20'+_0x1365d9[_0x39ae39(0x161)][_0x39ae39(0x131)](0x11)+'\x20'+a124_0x1e0b6b[_0x39ae39(0x136)](_0x39ae39(0x127)+describeRegionValue(_0x1365d9['value']))),console['log']('\x20\x20'+(_0x39ae39(0x177)+_0x1365d9['label'][_0x39ae39(0x18d)]()+':')[_0x39ae39(0x131)](0x10)+'\x20'+_0x1365d9['repairCommand']);}}const _0x1bd26a=[Object[_0x39ae39(0x14d)][_0x39ae39(0x128)]['call'](_0x4a5acb[_0x39ae39(0x18a)],_0x39ae39(0x120))?_0x39ae39(0x104):null,Object['prototype']['hasOwnProperty'][_0x39ae39(0x14f)](_0x4a5acb['projectConfig'],_0x39ae39(0x120))?_0x39ae39(0x111):null][_0x39ae39(0x12e)](Boolean);_0x1bd26a[_0x39ae39(0x12a)]>0x0&&(console[_0x39ae39(0x11b)](_0x39ae39(0x162)+a124_0x1e0b6b['yellow'](_0x39ae39(0x18b)+_0x1bd26a['join'](_0x39ae39(0x130))+_0x39ae39(0x15f))),_0x1bd26a['includes'](_0x39ae39(0x111))&&console[_0x39ae39(0x11b)](_0x39ae39(0x140)+CLI_BIN_NAME+_0x39ae39(0x187)),_0x1bd26a[_0x39ae39(0x10d)](_0x39ae39(0x104))&&console[_0x39ae39(0x11b)](_0x39ae39(0x10e)+CLI_BIN_NAME+'\x20config\x20delete\x20inherit\x20--global'));const _0x173f8d=isInvalidLovrabetRegion(_0x5ea386[_0x39ae39(0x16b)]??_0x5ea386[_0x39ae39(0x173)]?.[_0x39ae39(0x119)]);_0x4a132f&&!_0x173f8d&&(console['log'](),console[_0x39ae39(0x11b)](a124_0x1e0b6b[_0x39ae39(0x178)]('\x20\x20Routing\x20Configuration')),console[_0x39ae39(0x11b)](a124_0x1e0b6b['gray'](_0x39ae39(0x126)[_0x39ae39(0x13b)](0x1e))),console[_0x39ae39(0x11b)](_0x39ae39(0x13a)+a124_0x1e0b6b[_0x39ae39(0x136)](_0x39ae39(0x13c))),console[_0x39ae39(0x11b)](_0x39ae39(0x154)+_0x4a132f[_0x39ae39(0x160)]),Object[_0x39ae39(0x14d)]['hasOwnProperty'][_0x39ae39(0x14f)](_0x4a5acb[_0x39ae39(0x166)],_0x39ae39(0x151))&&console[_0x39ae39(0x11b)](_0x39ae39(0x103)+CLI_BIN_NAME+_0x39ae39(0x114)),Object[_0x39ae39(0x14d)][_0x39ae39(0x128)][_0x39ae39(0x14f)](_0x4a5acb[_0x39ae39(0x18a)],'routing')&&console[_0x39ae39(0x11b)](_0x39ae39(0x11a)+CLI_BIN_NAME+_0x39ae39(0x14b)));console['log'](),console[_0x39ae39(0x11b)](a124_0x1e0b6b[_0x39ae39(0x178)]('\x20\x20Merged\x20Config')),console[_0x39ae39(0x11b)](a124_0x1e0b6b[_0x39ae39(0x159)]('\x20\x20─'['repeat'](0x1e))),console[_0x39ae39(0x11b)](_0x39ae39(0x117)+(_0x5ea386[_0x39ae39(0x164)]||a124_0x1e0b6b[_0x39ae39(0x136)](_0x39ae39(0x110))));const _0xe1a76c=_0x173f8d?a124_0x1e0b6b['red'](describeRegionValue(_0x5ea386[_0x39ae39(0x16b)]??_0x5ea386[_0x39ae39(0x173)]?.[_0x39ae39(0x119)])+_0x39ae39(0x172)):(_0x5ea386[_0x39ae39(0x119)]??DEFAULT_LOVRABET_REGION)+'\x20('+(_0x5ea386['regionSource']??'default')+')';console[_0x39ae39(0x11b)](_0x39ae39(0x106)+_0xe1a76c),console['log']('\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x5ea386[_0x39ae39(0x14a)]),console['log']('\x20\x20app\x20locale:\x20\x20\x20\x20\x20\x20'+_0x5ea386[_0x39ae39(0x17a)]),console[_0x39ae39(0x11b)]('\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x5ea386[_0x39ae39(0x17d)]),console['log'](_0x39ae39(0x190)+(_0x5ea386[_0x39ae39(0x12b)]||a124_0x1e0b6b['gray'](_0x39ae39(0x141)))),console['log'](_0x39ae39(0x17c)+(_0x5ea386['currentApp']||a124_0x1e0b6b[_0x39ae39(0x159)](_0x39ae39(0x141)))),console[_0x39ae39(0x11b)](_0x39ae39(0x18c)+(_0x5ea386[_0x39ae39(0x123)]||a124_0x1e0b6b['gray'](_0x39ae39(0x141)))),console['log'](_0x39ae39(0x15b)+(_0x5ea386[_0x39ae39(0x15e)]||a124_0x1e0b6b['gray'](_0x39ae39(0x153)+DEFAULT_CONFIG_VALUES[_0x39ae39(0x15e)]+')'))),console[_0x39ae39(0x11b)](_0x39ae39(0x18e)+(_0x5ea386[_0x39ae39(0x113)]??a124_0x1e0b6b[_0x39ae39(0x159)]('(default)'))),console[_0x39ae39(0x11b)](_0x39ae39(0x121)+_0x5ea386[_0x39ae39(0x15c)]),console[_0x39ae39(0x11b)](_0x39ae39(0x10b)+_0x5ea386[_0x39ae39(0x12c)]),console[_0x39ae39(0x11b)](_0x39ae39(0x14e)+(_0x5ea386[_0x39ae39(0x170)]?a124_0x1e0b6b[_0x39ae39(0x147)](_0x39ae39(0x150)+_0x5ea386[_0x39ae39(0x170)][_0x39ae39(0x12a)]+')'):_0x41be03?a124_0x1e0b6b[_0x39ae39(0x147)](_0x39ae39(0x107)+_0x41be03['length']+')'):a124_0x1e0b6b[_0x39ae39(0x159)](_0x39ae39(0x141))));const _0x4ca3a4=Object[_0x39ae39(0x102)](_0x5ea386[_0x39ae39(0x146)]);if(_0x4ca3a4['length']>0x0){console[_0x39ae39(0x11b)](),console[_0x39ae39(0x11b)](a124_0x1e0b6b[_0x39ae39(0x178)]('\x20\x20Apps')),console[_0x39ae39(0x11b)](a124_0x1e0b6b['gray']('\x20\x20─'['repeat'](0x1e)));for(const _0x9630d5 of _0x4ca3a4){const _0x319848=_0x5ea386[_0x39ae39(0x146)][_0x9630d5],_0x136656=_0x9630d5===_0x5ea386[_0x39ae39(0x12b)],_0x2c3d6b=_0x9630d5===_0x5ea386['currentApp'],_0x2b0004=_0x2c3d6b?a124_0x1e0b6b[_0x39ae39(0x147)]('\x20←\x20current'):'',_0x18434f=_0x136656?'\x20(default)':'';console[_0x39ae39(0x11b)]('\x20\x20'+_0x9630d5+_0x18434f+_0x2b0004),console[_0x39ae39(0x11b)](_0x39ae39(0x148)+_0x319848[_0x39ae39(0x176)]);const _0x5b08b1=_0x4a5acb['projectConfig'][_0x39ae39(0x146)]&&typeof _0x4a5acb[_0x39ae39(0x166)]['apps']===_0x39ae39(0x182)?_0x4a5acb[_0x39ae39(0x166)]['apps']:{},_0x55d7d2=Object[_0x39ae39(0x14d)][_0x39ae39(0x128)][_0x39ae39(0x14f)](_0x5b08b1,_0x9630d5),_0x56c236=isInvalidLovrabetRegion(_0x319848[_0x39ae39(0x119)])?{'region':_0x5ea386[_0x39ae39(0x119)]??DEFAULT_LOVRABET_REGION}:resolveEffectiveRegion({'appRegion':_0x319848['region'],'projectRegion':_0x55d7d2?_0x4a5acb[_0x39ae39(0x166)]['region']:undefined,'globalRegion':_0x4a5acb['globalConfig'][_0x39ae39(0x119)],'mergedRegion':_0x5ea386[_0x39ae39(0x173)]['region'],'appName':_0x9630d5}),_0x4b129e=buildAppDoctorFields(_0x319848,{'region':_0x56c236[_0x39ae39(0x119)],'env':_0x5ea386[_0x39ae39(0x14a)],'apiDir':_0x5ea386[_0x39ae39(0x173)][_0x39ae39(0x17d)]||DEFAULT_CONFIG_VALUES['apiDir'],'cookie':_0x5ea386[_0x39ae39(0x170)]||_0x41be03||undefined,'accessKey':_0x5ea386['accessKey']});console[_0x39ae39(0x11b)](_0x39ae39(0x16f)+_0x4b129e[_0x39ae39(0x119)][_0x39ae39(0x181)]+'\x20\x20'+a124_0x1e0b6b['gray']('('+_0x4b129e[_0x39ae39(0x119)][_0x39ae39(0x179)]+')')),console['log'](_0x39ae39(0x174)+_0x4b129e[_0x39ae39(0x14a)][_0x39ae39(0x181)]+'\x20\x20'+a124_0x1e0b6b[_0x39ae39(0x159)]('('+_0x4b129e['env'][_0x39ae39(0x179)]+')')),console['log']('\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20'+_0x4b129e[_0x39ae39(0x17d)][_0x39ae39(0x181)]+'\x20\x20'+a124_0x1e0b6b[_0x39ae39(0x159)]('('+_0x4b129e[_0x39ae39(0x17d)][_0x39ae39(0x179)]+')'));const _0x1e173b=_0x4b129e[_0x39ae39(0x170)][_0x39ae39(0x181)]?a124_0x1e0b6b[_0x39ae39(0x147)]('(set,\x20length='+_0x4b129e[_0x39ae39(0x170)][_0x39ae39(0x181)]['length']+')'):a124_0x1e0b6b[_0x39ae39(0x159)](_0x39ae39(0x141));console[_0x39ae39(0x11b)](_0x39ae39(0x124)+_0x1e173b+'\x20\x20'+a124_0x1e0b6b['gray']('('+_0x4b129e[_0x39ae39(0x170)][_0x39ae39(0x179)]+')'));const _0x2938f9=_0x4b129e[_0x39ae39(0xfe)][_0x39ae39(0x181)]?a124_0x1e0b6b[_0x39ae39(0x147)](_0x39ae39(0x150)+_0x4b129e[_0x39ae39(0xfe)][_0x39ae39(0x181)][_0x39ae39(0x12a)]+')'):a124_0x1e0b6b['gray'](_0x39ae39(0x141));console[_0x39ae39(0x11b)](_0x39ae39(0x191)+_0x2938f9+'\x20\x20'+a124_0x1e0b6b[_0x39ae39(0x159)]('('+_0x4b129e['accessKey']['source']+')'));}}console[_0x39ae39(0x11b)](),console['log'](a124_0x1e0b6b[_0x39ae39(0x178)](_0x39ae39(0x168))),console['log'](a124_0x1e0b6b[_0x39ae39(0x159)](_0x39ae39(0x126)[_0x39ae39(0x13b)](0x1e)));_0x4a132f?console[_0x39ae39(0x11b)](_0x39ae39(0x13a)+a124_0x1e0b6b[_0x39ae39(0x136)](_0x39ae39(0x116))):(console[_0x39ae39(0x11b)](_0x39ae39(0x106)+getActiveRegion()),console[_0x39ae39(0x11b)](_0x39ae39(0x125)+getApiDomain()),console[_0x39ae39(0x11b)]('\x20\x20userDomain:\x20\x20\x20\x20\x20\x20'+getUserDomain()),console[_0x39ae39(0x11b)](_0x39ae39(0x180)+getRuntimeDomain()),console[_0x39ae39(0x11b)](_0x39ae39(0x13f)+getSkillDomain()),console[_0x39ae39(0x11b)](_0x39ae39(0xff)+getKbDomain()),console[_0x39ae39(0x11b)](_0x39ae39(0x10a)+(getKbServiceDomain()??'not\x20configured')),console['log'](_0x39ae39(0x155)+getAppDomain()));console[_0x39ae39(0x11b)](),console['log'](a124_0x1e0b6b[_0x39ae39(0x178)](_0x39ae39(0x13d))),console[_0x39ae39(0x11b)](a124_0x1e0b6b[_0x39ae39(0x159)]('\x20\x20─'[_0x39ae39(0x13b)](0x1e)));if(_0x4a132f)console['log']('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a124_0x1e0b6b[_0x39ae39(0x144)](_0x39ae39(0x142)));else{if(_0x41be03){const _0x55bedc=await getIsSessionValid();console['log'](_0x39ae39(0x13a)+(_0x55bedc?a124_0x1e0b6b['green'](_0x39ae39(0xfc)):a124_0x1e0b6b[_0x39ae39(0x136)](_0x39ae39(0x137))));}else console['log'](_0x39ae39(0x13a)+a124_0x1e0b6b[_0x39ae39(0x136)]('✗\x20Not\x20logged\x20in'));}return console['log'](),{'ok':!![]};}export const doctorDefinition={'service':a124_0x122c58(0x122),'command':'check','description':'Diagnose\x20CLI\x20configuration\x20and\x20connectivity','risk':a124_0x122c58(0x186),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a125_0x455adc=a125_0x1fbd;(function(_0x227ce5,_0x31b5e8){const _0x263afe=a125_0x1fbd,_0x2334a7=_0x227ce5();while(!![]){try{const _0x1af32a=parseInt(_0x263afe(0xe2))/0x1+-parseInt(_0x263afe(0xdc))/0x2+-parseInt(_0x263afe(0xde))/0x3+-parseInt(_0x263afe(0xda))/0x4+-parseInt(_0x263afe(0xd8))/0x5*(-parseInt(_0x263afe(0xf8))/0x6)+parseInt(_0x263afe(0xdd))/0x7+parseInt(_0x263afe(0xf2))/0x8*(-parseInt(_0x263afe(0xd7))/0x9);if(_0x1af32a===_0x31b5e8)break;else _0x2334a7['push'](_0x2334a7['shift']());}catch(_0x48831b){_0x2334a7['push'](_0x2334a7['shift']());}}}(a125_0x7323,0x198b1));function a125_0x1fbd(_0x2c6e78,_0x288e4b){_0x2c6e78=_0x2c6e78-0xd6;const _0x73238a=a125_0x7323();let _0x1fbd09=_0x73238a[_0x2c6e78];return _0x1fbd09;}import{requireDevelopmentUploadFile}from'../../commands/common/local-file.js';import{queryDevelopmentFileUrl,uploadDevelopmentFile}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const FILE_FLAG={'name':a125_0x455adc(0xe1),'type':a125_0x455adc(0xe4),'required':!![],'description':a125_0x455adc(0xf0)},FILEPATH_FLAG={'name':a125_0x455adc(0xf5),'type':'string','required':!![],'description':a125_0x455adc(0xe3)},DOWNLOAD_FLAG={'name':a125_0x455adc(0xec),'type':a125_0x455adc(0xd6),'description':'Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL'},LONG_TERM_FLAG={'name':a125_0x455adc(0xe6),'type':a125_0x455adc(0xd6),'description':a125_0x455adc(0xf3)};function requireFilePath(_0x4d745b){const _0x5205cc=a125_0x455adc,_0x3ebb76=_0x4d745b['trim']();if(!_0x3ebb76)throw CliErrors[_0x5205cc(0xf4)](_0x5205cc(0xdb));return _0x3ebb76;}const fileUpload={'service':a125_0x455adc(0xe1),'command':a125_0x455adc(0xee),'description':a125_0x455adc(0xf9),'risk':a125_0x455adc(0xfa),'flags':[FILE_FLAG],async 'dryRun'(_0xe932f7){const _0x253e55=a125_0x455adc,_0x1e0d87=requireDevelopmentUploadFile(_0xe932f7[_0x253e55(0xe5)](_0x253e55(0xe1)),_0x253e55(0xea));return{'method':_0x253e55(0xe0),'url':_0x253e55(0xe9),'body':{'appCode':_0xe932f7[_0x253e55(0xe7)],'multipart':{'file':_0x1e0d87}},'description':_0x253e55(0xef)+_0x1e0d87['path']+_0x253e55(0xed)+_0xe932f7[_0x253e55(0xe7)]};},async 'execute'(_0x37aadc){const _0x2b79d8=a125_0x455adc,_0x50c916=requireDevelopmentUploadFile(_0x37aadc[_0x2b79d8(0xe5)](_0x2b79d8(0xe1)),_0x2b79d8(0xea)),_0x26860d=await uploadDevelopmentFile(_0x37aadc[_0x2b79d8(0xe7)],_0x50c916[_0x2b79d8(0xe8)]);return{'ok':!![],'data':_0x26860d,'message':_0x26860d[_0x2b79d8(0xd9)]?_0x2b79d8(0xf7)+_0x26860d[_0x2b79d8(0xd9)]+_0x2b79d8(0xf6):_0x2b79d8(0xdf)};}},fileQueryUrl={'service':a125_0x455adc(0xe1),'command':a125_0x455adc(0xeb),'description':'Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20or\x20immediate\x20access','risk':a125_0x455adc(0xfa),'flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0x1cbe3e){const _0x374549=a125_0x455adc,_0x4348e2=requireFilePath(_0x1cbe3e[_0x374549(0xe5)]('filepath')),_0x4d63c7=await queryDevelopmentFileUrl(_0x4348e2,{'download':_0x1cbe3e['bool'](_0x374549(0xec)),'longTerm':_0x1cbe3e[_0x374549(0xf1)](_0x374549(0xe6))});return{'ok':!![],'data':_0x4d63c7};}};export const fileDefinitions=[fileUpload,fileQueryUrl];function a125_0x7323(){const _0x2300c0=['Preview:\x20upload\x20','Path\x20to\x20the\x20local\x20file\x20to\x20upload','bool','58184XVchRf','Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML','validation','filepath','.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','Uploaded\x20file:\x20','23802TEtDOu','Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','read','boolean','9iYeTxt','220MRALkp','filePath','368812MyBpMN','filePath\x20is\x20required.','11050yTGIMi','159621AeeqoG','50745rPJzru','Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','POST','file','29190xLNOiR','Development\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data','string','str','long-term','appCode','path','/smartapi/common/uploadFile','File','query-url','download','\x20to\x20development\x20app\x20','upload'];a125_0x7323=function(){return _0x2300c0;};return a125_0x7323();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a126_0x263037=a126_0x51cf;(function(_0x4c6ef6,_0x3a5203){const _0x70f873=a126_0x51cf,_0x50fa91=_0x4c6ef6();while(!![]){try{const _0x4b2085=parseInt(_0x70f873(0x13b))/0x1+parseInt(_0x70f873(0x143))/0x2*(-parseInt(_0x70f873(0x136))/0x3)+-parseInt(_0x70f873(0x144))/0x4+-parseInt(_0x70f873(0x13f))/0x5*(parseInt(_0x70f873(0x141))/0x6)+-parseInt(_0x70f873(0x139))/0x7*(parseInt(_0x70f873(0x13a))/0x8)+-parseInt(_0x70f873(0x145))/0x9+-parseInt(_0x70f873(0x13d))/0xa*(-parseInt(_0x70f873(0x13e))/0xb);if(_0x4b2085===_0x3a5203)break;else _0x50fa91['push'](_0x50fa91['shift']());}catch(_0x48f875){_0x50fa91['push'](_0x50fa91['shift']());}}}(a126_0x412c,0xc0e00));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{asDryRunResult}from'../../commands/common/dry-run.js';import{createFlowDefinition}from'../../core/api-client.js';function a126_0x51cf(_0x593df2,_0x33ae5f){_0x593df2=_0x593df2-0x135;const _0x412c17=a126_0x412c();let _0x51cf6e=_0x412c17[_0x593df2];return _0x51cf6e;}import{FLOW_FILE_FLAG,FLOW_PATHS,buildFlowUrl,confirmFlowWrite,flowSelector,prepareFlowWrite,readFlowFilePath}from'../../commands/flow/shared.js';export const flowCreate={'service':a126_0x263037(0x147),'command':a126_0x263037(0x137),'description':'Create\x20a\x20draft\x20flow\x20definition\x20from\x20a\x20local\x20FlowConfig\x20file','risk':a126_0x263037(0x135),'flags':[FLOW_FILE_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x47fdee){readFlowFilePath(_0x47fdee);},async 'dryRun'(_0x11813e){const _0x2fb620=a126_0x263037,{request:_0x110e3d,warnings:_0x4fb786}=await prepareFlowWrite(readFlowFilePath(_0x11813e),_0x11813e[_0x2fb620(0x148)]);return asDryRunResult({'operation':'create','selector':{'appCode':_0x11813e['appCode'],'flowName':_0x110e3d[_0x2fb620(0x146)],..._0x110e3d[_0x2fb620(0x13c)]?{'datasetCode':_0x110e3d[_0x2fb620(0x13c)]}:{}},'before':null,'after':_0x110e3d,'request':_0x110e3d,'dryRun':!![],'backend':{'method':_0x2fb620(0x138),'path':FLOW_PATHS[_0x2fb620(0x137)]},'warnings':_0x4fb786},{'method':_0x2fb620(0x138),'url':FLOW_PATHS[_0x2fb620(0x137)]});},async 'execute'(_0x10f76c){const _0x24d6d7=a126_0x263037,{request:_0x271684,warnings:_0x51b3cd}=await prepareFlowWrite(readFlowFilePath(_0x10f76c),_0x10f76c['appCode']);await confirmFlowWrite(_0x10f76c,_0x24d6d7(0x137),_0x271684);const _0x5b90d3=await createFlowDefinition(_0x271684),_0x29501b=buildFlowUrl(_0x10f76c[_0x24d6d7(0x148)],_0x5b90d3['id']),_0x13c913=''+(_0x5b90d3[_0x24d6d7(0x146)]||_0x271684[_0x24d6d7(0x146)])+(_0x5b90d3['id']?_0x24d6d7(0x142)+_0x5b90d3['id']+')':'');return{'ok':!![],'data':{'operation':_0x24d6d7(0x137),'selector':flowSelector(_0x10f76c[_0x24d6d7(0x148)],_0x5b90d3['id'],_0x5b90d3),'before':null,'after':_0x5b90d3,'flowUrl':_0x29501b,'dryRun':![],'backend':{'method':_0x24d6d7(0x138),'path':FLOW_PATHS[_0x24d6d7(0x137)]},'warnings':_0x51b3cd},'message':'Created\x20flow\x20'+_0x13c913+_0x24d6d7(0x140)+_0x29501b};}};function a126_0x412c(){const _0x40514a=['388138kciEsi','datasetCode','10vxBOsu','43504505fXEWbF','3176485MuwcOj','.\x20Flow\x20URL:\x20','12RSiclU','\x20(id=','866fpRjfE','27996ZutZdi','9123498UhRKhP','flowName','flow','appCode','write','8304sulJdW','create','POST','3031lZjVYq','1168RgnWVO'];a126_0x412c=function(){return _0x40514a;};return a126_0x412c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a127_0x13ed7e=a127_0x792d;(function(_0x274250,_0x4c6134){const _0x5b95d5=a127_0x792d,_0x3af751=_0x274250();while(!![]){try{const _0x1b9f29=-parseInt(_0x5b95d5(0x146))/0x1*(parseInt(_0x5b95d5(0x131))/0x2)+parseInt(_0x5b95d5(0x139))/0x3+parseInt(_0x5b95d5(0x133))/0x4*(parseInt(_0x5b95d5(0x130))/0x5)+parseInt(_0x5b95d5(0x147))/0x6*(-parseInt(_0x5b95d5(0x141))/0x7)+-parseInt(_0x5b95d5(0x143))/0x8*(-parseInt(_0x5b95d5(0x148))/0x9)+-parseInt(_0x5b95d5(0x12a))/0xa*(-parseInt(_0x5b95d5(0x13d))/0xb)+-parseInt(_0x5b95d5(0x136))/0xc*(-parseInt(_0x5b95d5(0x142))/0xd);if(_0x1b9f29===_0x4c6134)break;else _0x3af751['push'](_0x3af751['shift']());}catch(_0x21ee8a){_0x3af751['push'](_0x3af751['shift']());}}}(a127_0x512c,0xb7998));import{mkdir,stat}from'node:fs/promises';import{dirname,resolve}from'node:path';function a127_0x512c(){const _0x57e7fb=['Get\x20one\x20design-time\x20flow\x20definition','2520iAurKa','flowCode','FlowConfig\x20output\x20already\x20exists:\x20','1078608rSZCOb','Pass\x20--force\x20to\x20overwrite\x20it.','boolean','2057514TryReh','read','path','Overwrite\x20an\x20existing\x20output\x20file','33ZQpWwE','appCode','\x20to\x20','trim','343RFaOzq','65KXHsnp','24irhWsp','output','config','29IpLgDz','98574hGmjUf','137601clIPvT','code','str','bool','force','4170630iGFizu','ENOENT','warnings','flowName','Wrote\x20FlowConfig\x20for\x20','Flow\x20','2985nxFwtQ','86302kEtyai'];a127_0x512c=function(){return _0x57e7fb;};return a127_0x512c();}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{getFlowDefinition}from'../../core/api-client.js';import{writeNormalizedFlowConfig}from'../../core/flow-config.js';import{CliErrors}from'../../errors.js';import{FLOW_ID_FLAG,flowDefinitionToConfig,readFlowId}from'../../commands/flow/shared.js';export const flowDetail={'service':'flow','command':'detail','description':a127_0x13ed7e(0x132),'risk':a127_0x13ed7e(0x13a),'flags':[FLOW_ID_FLAG,{'name':a127_0x13ed7e(0x144),'type':'string','description':'Write\x20a\x20portable\x20normalized\x20FlowConfig\x20JSON\x20file'},{'name':a127_0x13ed7e(0x129),'type':a127_0x13ed7e(0x138),'description':a127_0x13ed7e(0x13c)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x222b59){readFlowId(_0x222b59);},async 'execute'(_0x85c89b){const _0x26ac95=a127_0x13ed7e,_0x4cc0e4=readFlowId(_0x85c89b),_0x13ce05=_0x85c89b[_0x26ac95(0x127)](_0x26ac95(0x144))[_0x26ac95(0x140)](),_0x4b6841=_0x13ce05?resolve(_0x13ce05):undefined;if(_0x4b6841&&!_0x85c89b[_0x26ac95(0x128)]('force')&&await fileExists(_0x4b6841))throw CliErrors['validation'](_0x26ac95(0x135)+_0x4b6841,_0x26ac95(0x137));const _0x441998=await getFlowDefinition(_0x85c89b[_0x26ac95(0x13e)],_0x4cc0e4);let _0x360b2a;if(_0x4b6841){const _0x41726c=flowDefinitionToConfig(_0x441998);await mkdir(dirname(_0x4b6841),{'recursive':!![]});try{await writeNormalizedFlowConfig(_0x4b6841,_0x41726c[_0x26ac95(0x145)],{'overwrite':_0x85c89b[_0x26ac95(0x128)]('force')});}catch(_0x37e757){if(isAlreadyExistsError(_0x37e757))throw CliErrors['validation'](_0x26ac95(0x135)+_0x4b6841,_0x26ac95(0x137));throw _0x37e757;}_0x360b2a={'path':_0x4b6841,'warnings':_0x41726c[_0x26ac95(0x12c)]};}return{'ok':!![],'data':{'flow':_0x441998,..._0x360b2a?{'output':_0x360b2a}:{}},'message':_0x360b2a?_0x26ac95(0x12e)+(_0x441998[_0x26ac95(0x12d)]||_0x441998['flowCode']||_0x4cc0e4)+_0x26ac95(0x13f)+_0x360b2a[_0x26ac95(0x13b)]:_0x26ac95(0x12f)+(_0x441998[_0x26ac95(0x12d)]||_0x441998[_0x26ac95(0x134)]||_0x4cc0e4)};}};function a127_0x792d(_0x327d23,_0x314c3d){_0x327d23=_0x327d23-0x126;const _0x512c7c=a127_0x512c();let _0x792dee=_0x512c7c[_0x327d23];return _0x792dee;}async function fileExists(_0x22d0d8){try{return await stat(_0x22d0d8),!![];}catch(_0x25319e){return!isNotFoundError(_0x25319e);}}function isNotFoundError(_0x84eb35){const _0x434bb0=a127_0x13ed7e;return _0x84eb35?.[_0x434bb0(0x126)]===_0x434bb0(0x12b);}function isAlreadyExistsError(_0x29c88b){const _0x58dd8b=a127_0x13ed7e;return _0x29c88b?.[_0x58dd8b(0x126)]==='EEXIST';}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x7774f8,_0x6455cf){const _0x82c94=a128_0x4756,_0x413612=_0x7774f8();while(!![]){try{const _0x1555b1=parseInt(_0x82c94(0x91))/0x1+-parseInt(_0x82c94(0x8b))/0x2+-parseInt(_0x82c94(0x8e))/0x3*(-parseInt(_0x82c94(0x93))/0x4)+parseInt(_0x82c94(0x90))/0x5+-parseInt(_0x82c94(0x92))/0x6*(-parseInt(_0x82c94(0x8f))/0x7)+parseInt(_0x82c94(0x8d))/0x8+-parseInt(_0x82c94(0x8c))/0x9;if(_0x1555b1===_0x6455cf)break;else _0x413612['push'](_0x413612['shift']());}catch(_0x25c854){_0x413612['push'](_0x413612['shift']());}}}(a128_0x1064,0xa7e68));import{flowValidate}from'../../commands/flow/validate.js';import{flowPageList}from'../../commands/flow/page-list.js';import{flowList}from'../../commands/flow/list.js';function a128_0x1064(){const _0x4ac35e=['6058072ALfTiw','1579983NmgBxU','28EMfgrK','4262060BzQNtP','512936RsPsoC','1499208HNziRs','8DDLEXZ','469218FBIJLF','29277648LdWhAF'];a128_0x1064=function(){return _0x4ac35e;};return a128_0x1064();}import{flowDetail}from'../../commands/flow/detail.js';import{flowCreate}from'../../commands/flow/create.js';import{flowUpdate}from'../../commands/flow/update.js';import{flowPublish}from'../../commands/flow/publish.js';import{flowRuntimeRoleList}from'../../commands/flow/runtime-role-list.js';import{flowRuntimeUserSearch}from'../../commands/flow/runtime-user-search.js';import{flowRuntimeRoleUserList}from'../../commands/flow/runtime-role-user-list.js';function a128_0x4756(_0x481510,_0x53617d){_0x481510=_0x481510-0x8b;const _0x106427=a128_0x1064();let _0x4756fc=_0x106427[_0x481510];return _0x4756fc;}export const flowDefinitions=[flowValidate,flowList,flowPageList,flowDetail,flowCreate,flowUpdate,flowPublish,flowRuntimeRoleList,flowRuntimeUserSearch,flowRuntimeRoleUserList];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a129_0x4f71d6=a129_0x2966;(function(_0x34aac0,_0x3ad403){const _0x1f0066=a129_0x2966,_0x2a8ca6=_0x34aac0();while(!![]){try{const _0x3a14ab=-parseInt(_0x1f0066(0x203))/0x1*(parseInt(_0x1f0066(0x1f6))/0x2)+parseInt(_0x1f0066(0x214))/0x3+-parseInt(_0x1f0066(0x1fd))/0x4*(parseInt(_0x1f0066(0x210))/0x5)+parseInt(_0x1f0066(0x1ff))/0x6+parseInt(_0x1f0066(0x1fb))/0x7+parseInt(_0x1f0066(0x1f7))/0x8*(-parseInt(_0x1f0066(0x1fc))/0x9)+parseInt(_0x1f0066(0x208))/0xa;if(_0x3a14ab===_0x3ad403)break;else _0x2a8ca6['push'](_0x2a8ca6['shift']());}catch(_0x628bb8){_0x2a8ca6['push'](_0x2a8ca6['shift']());}}}(a129_0x20a4,0x9632e));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{listFlowDefinitions}from'../../core/api-client.js';function a129_0x20a4(){const _0x295c3e=['dataset-code','flow-status','--page-size\x20must\x20be\x20a\x20positive\x20integer.','137514nLEKSk','string','length','num','Page\x20number\x20(1-based)','Filter\x20by\x20flow\x20type','Filter\x20by\x20flow\x20name','number','Found\x20','appCode','10laLUtO','8RwmGZO','page-size','flow-code','trim','1290415DUYXFF','2460573ZMzpPw','2408204VFwiHb','flow-name','3890364ZJgmCo','\x20flow\x20definition(s)','Page\x20size','isSafeInteger','129567YFIZKe','--page\x20must\x20be\x20a\x20positive\x20integer.','flow','List\x20design-time\x20flow\x20definitions\x20for\x20the\x20current\x20app','Filter\x20by\x20dataset\x20code','12599200Utqwpv','draft','page','list','flow-type','read','str','validation','5QtHiog'];a129_0x20a4=function(){return _0x295c3e;};return a129_0x20a4();}import{CliErrors}from'../../errors.js';function a129_0x2966(_0x4846df,_0xd7929e){_0x4846df=_0x4846df-0x1ed;const _0x20a47c=a129_0x20a4();let _0x29668b=_0x20a47c[_0x4846df];return _0x29668b;}const FLOW_STATUSES=[a129_0x4f71d6(0x209),'published'];export const flowList={'service':a129_0x4f71d6(0x205),'command':a129_0x4f71d6(0x20b),'description':a129_0x4f71d6(0x206),'risk':a129_0x4f71d6(0x20d),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a129_0x4f71d6(0x1f9),'type':a129_0x4f71d6(0x1ed),'description':'Filter\x20by\x20exact\x20server-generated\x20flow\x20code'},{'name':a129_0x4f71d6(0x1fe),'type':a129_0x4f71d6(0x1ed),'description':a129_0x4f71d6(0x1f2)},{'name':a129_0x4f71d6(0x212),'type':a129_0x4f71d6(0x1ed),'description':'Filter\x20by\x20flow\x20status','enum':FLOW_STATUSES},{'name':a129_0x4f71d6(0x211),'type':a129_0x4f71d6(0x1ed),'description':a129_0x4f71d6(0x207)},{'name':a129_0x4f71d6(0x20c),'type':a129_0x4f71d6(0x1ed),'description':a129_0x4f71d6(0x1f1)},{'name':a129_0x4f71d6(0x20a),'type':a129_0x4f71d6(0x1f3),'description':a129_0x4f71d6(0x1f0),'default':0x1},{'name':'page-size','type':a129_0x4f71d6(0x1f3),'description':a129_0x4f71d6(0x201),'default':0x14}],async 'validate'(_0x229058){const _0xdf6c7a=a129_0x4f71d6,_0x28373f=_0x229058['num'](_0xdf6c7a(0x20a),0x1),_0x2f89ee=_0x229058['num'](_0xdf6c7a(0x1f8),0x14);if(!Number[_0xdf6c7a(0x202)](_0x28373f)||_0x28373f<0x1)throw CliErrors[_0xdf6c7a(0x20f)](_0xdf6c7a(0x204));if(!Number[_0xdf6c7a(0x202)](_0x2f89ee)||_0x2f89ee<0x1)throw CliErrors[_0xdf6c7a(0x20f)](_0xdf6c7a(0x213));},async 'execute'(_0x2f452e){const _0x1efae5=a129_0x4f71d6,{items:_0x5c1feb,paging:_0x57b7aa}=await listFlowDefinitions(_0x2f452e[_0x1efae5(0x1f5)],{'flowCode':optionalString(_0x2f452e['str'](_0x1efae5(0x1f9))),'flowName':optionalString(_0x2f452e[_0x1efae5(0x20e)](_0x1efae5(0x1fe))),'flowStatus':optionalString(_0x2f452e[_0x1efae5(0x20e)]('flow-status')),'datasetCode':optionalString(_0x2f452e[_0x1efae5(0x20e)]('dataset-code')),'flowType':optionalString(_0x2f452e[_0x1efae5(0x20e)]('flow-type')),'pageNum':_0x2f452e[_0x1efae5(0x1ef)](_0x1efae5(0x20a),0x1),'pageSize':_0x2f452e[_0x1efae5(0x1ef)](_0x1efae5(0x1f8),0x14)});return{'ok':!![],'data':{'appCode':_0x2f452e[_0x1efae5(0x1f5)],'flows':_0x5c1feb,'paging':_0x57b7aa},'message':_0x1efae5(0x1f4)+_0x5c1feb[_0x1efae5(0x1ee)]+_0x1efae5(0x200)};}};function optionalString(_0xa536aa){const _0x305ea0=a129_0x4f71d6,_0x3aa7e7=_0xa536aa[_0x305ea0(0x1fa)]();return _0x3aa7e7||undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a130_0x31c6(){const _0x45830a=['List\x20CREATE\x20pages\x20for\x20form-flow\x20binding;\x20--id\x20excludes\x20other\x20flows\x27\x20bindings','1639095TnZHEA','trim','\x20must\x20be\x20a\x20positive\x20integer.','847PlMOIi','read','523522uvFSOG','51190HKkuII','num','number','page','5799aRKghn','name','string','Page\x20size','length','3314248kudKAg','1940988gYSqOk','1uILnqG','1485449uROtjq','204jgvnMI','Filter\x20by\x20page\x20name','str','9JxcDpe','Found\x20','page-size','\x20form\x20page(s)','flag'];a130_0x31c6=function(){return _0x45830a;};return a130_0x31c6();}const a130_0x5d31cd=a130_0x25bc;(function(_0x3b3e1c,_0xbe943c){const _0x4fea2d=a130_0x25bc,_0x28c529=_0x3b3e1c();while(!![]){try{const _0xb1bae7=-parseInt(_0x4fea2d(0x1ad))/0x1*(-parseInt(_0x4fea2d(0x1a1))/0x2)+parseInt(_0x4fea2d(0x1a6))/0x3*(parseInt(_0x4fea2d(0x1af))/0x4)+parseInt(_0x4fea2d(0x19c))/0x5+-parseInt(_0x4fea2d(0x1ac))/0x6+parseInt(_0x4fea2d(0x1ae))/0x7+parseInt(_0x4fea2d(0x1ab))/0x8*(parseInt(_0x4fea2d(0x196))/0x9)+parseInt(_0x4fea2d(0x1a2))/0xa*(-parseInt(_0x4fea2d(0x19f))/0xb);if(_0xb1bae7===_0xbe943c)break;else _0x28c529['push'](_0x28c529['shift']());}catch(_0x17125f){_0x28c529['push'](_0x28c529['shift']());}}}(a130_0x31c6,0x91bfe));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{listFlowBindingPages}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a130_0x25bc(_0x545b91,_0x26823e){_0x545b91=_0x545b91-0x195;const _0x31c6cd=a130_0x31c6();let _0x25bc8c=_0x31c6cd[_0x545b91];return _0x25bc8c;}export const flowPageList={'service':'flow','command':'page-list','description':a130_0x5d31cd(0x19b),'risk':a130_0x5d31cd(0x1a0),'flags':[APPCODE_FLAG_OPTIONAL,{'name':'id','type':'number','description':'Existing\x20FORM_FLOW\x20definition\x20id\x20(not\x20flow\x20code)'},{'name':a130_0x5d31cd(0x1a7),'type':a130_0x5d31cd(0x1a8),'description':a130_0x5d31cd(0x1b0)},{'name':a130_0x5d31cd(0x1a5),'type':a130_0x5d31cd(0x1a4),'default':0x1,'description':'Page\x20number\x20(1-based)'},{'name':a130_0x5d31cd(0x198),'type':a130_0x5d31cd(0x1a4),'default':0x14,'description':a130_0x5d31cd(0x1a9)}],async 'validate'(_0xa382c7){const _0x27adc1=a130_0x5d31cd;for(const [_0x1b7e92,_0x24fc74]of[['page',_0xa382c7['num']('page',0x1)],[_0x27adc1(0x198),_0xa382c7[_0x27adc1(0x1a3)]('page-size',0x14)],..._0xa382c7[_0x27adc1(0x19a)]('id')!==undefined?[['id',_0xa382c7[_0x27adc1(0x1a3)]('id')]]:[]]){if(!Number['isSafeInteger'](_0x24fc74)||_0x24fc74<=0x0)throw CliErrors['validation']('--'+_0x1b7e92+_0x27adc1(0x19e));}},async 'execute'(_0x548d50){const _0x1a8dbc=a130_0x5d31cd,_0x388748=_0x548d50[_0x1a8dbc(0x19a)]('id')===undefined?undefined:_0x548d50[_0x1a8dbc(0x1a3)]('id'),{items:_0x4cb13f,paging:_0x15ef5a}=await listFlowBindingPages(_0x548d50['appCode'],{'currentFlowId':_0x388748,'name':_0x548d50[_0x1a8dbc(0x195)](_0x1a8dbc(0x1a7))[_0x1a8dbc(0x19d)]()||undefined,'currentPage':_0x548d50[_0x1a8dbc(0x1a3)](_0x1a8dbc(0x1a5),0x1),'pageSize':_0x548d50[_0x1a8dbc(0x1a3)](_0x1a8dbc(0x198),0x14)});return{'ok':!![],'data':{'appCode':_0x548d50['appCode'],'currentFlowId':_0x388748,'pages':_0x4cb13f,'paging':_0x15ef5a,'availabilityChecked':_0x388748!==undefined},'message':_0x1a8dbc(0x197)+_0x4cb13f[_0x1a8dbc(0x1aa)]+_0x1a8dbc(0x199)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a131_0x4d8f25=a131_0x1358;(function(_0x3e5adc,_0x10d02b){const _0x226185=a131_0x1358,_0x35796e=_0x3e5adc();while(!![]){try{const _0x54e7bc=-parseInt(_0x226185(0x81))/0x1+parseInt(_0x226185(0x86))/0x2*(parseInt(_0x226185(0x8f))/0x3)+parseInt(_0x226185(0x84))/0x4+-parseInt(_0x226185(0x89))/0x5*(-parseInt(_0x226185(0x8e))/0x6)+-parseInt(_0x226185(0x83))/0x7+-parseInt(_0x226185(0x8d))/0x8*(-parseInt(_0x226185(0x8c))/0x9)+-parseInt(_0x226185(0x7f))/0xa;if(_0x54e7bc===_0x10d02b)break;else _0x35796e['push'](_0x35796e['shift']());}catch(_0x3b7563){_0x35796e['push'](_0x35796e['shift']());}}}(a131_0x10ae,0xcadf3));function a131_0x10ae(){const _0x29bb83=['1767717zSbDfE','716064LQTKFh','flow','21158PFMcAx','publish','write','377605bHSyEa','flowCode','POST','9TkMQLG','9838984HRZfeQ','96wApMBs','15exgCZa','.\x20Flow\x20URL:\x20','7941030mREwnv','appCode','792523XRJYyU','Publish\x20the\x20current\x20flow\x20definition\x20draft'];a131_0x10ae=function(){return _0x29bb83;};return a131_0x10ae();}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{publishFlowDefinition}from'../../core/api-client.js';function a131_0x1358(_0x2be7a1,_0x4cf604){_0x2be7a1=_0x2be7a1-0x7e;const _0x10aef4=a131_0x10ae();let _0x13585f=_0x10aef4[_0x2be7a1];return _0x13585f;}import{FLOW_ID_FLAG,FLOW_PATHS,buildFlowUrl,buildFlowIdDryRun,flowSelector,readFlowId}from'../../commands/flow/shared.js';export const flowPublish={'service':a131_0x4d8f25(0x85),'command':'publish','description':a131_0x4d8f25(0x82),'risk':a131_0x4d8f25(0x88),'flags':[FLOW_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x47ba52){readFlowId(_0x47ba52);},async 'dryRun'(_0x2d9599){const _0x2306e3=a131_0x4d8f25,_0x20e770=readFlowId(_0x2d9599);return buildFlowIdDryRun('publish',FLOW_PATHS[_0x2306e3(0x87)],_0x2d9599[_0x2306e3(0x80)],_0x20e770,{'id':_0x20e770,'flowStatus':'published'});},async 'execute'(_0x2b7f4c){const _0x52dee3=a131_0x4d8f25,_0x2a22b0=readFlowId(_0x2b7f4c),_0x22100e=await publishFlowDefinition(_0x2b7f4c[_0x52dee3(0x80)],_0x2a22b0),_0x57f3a0=buildFlowUrl(_0x2b7f4c[_0x52dee3(0x80)],_0x2a22b0);return{'ok':!![],'data':{'operation':_0x52dee3(0x87),'selector':flowSelector(_0x2b7f4c[_0x52dee3(0x80)],_0x2a22b0,_0x22100e),'before':null,'after':_0x22100e,'flowUrl':_0x57f3a0,'dryRun':![],'backend':{'method':_0x52dee3(0x8b),'path':FLOW_PATHS['publish']},'warnings':[]},'message':'Published\x20flow\x20'+(_0x22100e['flowName']||_0x22100e[_0x52dee3(0x8a)]||_0x2a22b0)+_0x52dee3(0x7e)+_0x57f3a0};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a132_0x245971=a132_0x21a4;(function(_0x35dcdc,_0x21e6d1){const _0x2d567f=a132_0x21a4,_0x1fad41=_0x35dcdc();while(!![]){try{const _0x49954d=-parseInt(_0x2d567f(0x1e4))/0x1*(-parseInt(_0x2d567f(0x1fd))/0x2)+parseInt(_0x2d567f(0x1da))/0x3*(-parseInt(_0x2d567f(0x1d4))/0x4)+-parseInt(_0x2d567f(0x1fe))/0x5*(parseInt(_0x2d567f(0x1ff))/0x6)+-parseInt(_0x2d567f(0x1e2))/0x7*(parseInt(_0x2d567f(0x1fb))/0x8)+-parseInt(_0x2d567f(0x1ee))/0x9*(parseInt(_0x2d567f(0x1f8))/0xa)+-parseInt(_0x2d567f(0x1ef))/0xb+parseInt(_0x2d567f(0x1f6))/0xc;if(_0x49954d===_0x21e6d1)break;else _0x1fad41['push'](_0x1fad41['shift']());}catch(_0x402bbc){_0x1fad41['push'](_0x1fad41['shift']());}}}(a132_0x3c56,0x76c1b));import{CliErrors}from'../../errors.js';export const FLOW_RUNTIME_PAGE_FLAG={'name':a132_0x245971(0x1e9),'type':a132_0x245971(0x202),'description':'Page\x20index\x20(1-based)','default':0x1};export const FLOW_RUNTIME_PAGE_SIZE_FLAG={'name':'page-size','type':a132_0x245971(0x202),'description':a132_0x245971(0x200),'default':0x14};export const FLOW_RUNTIME_ROLE_REF_FLAG={'name':a132_0x245971(0x201),'type':'string','required':!![],'description':a132_0x245971(0x1d6)};export function readRuntimePagination(_0x30cebd){const _0x4d93c6=a132_0x245971,_0x48591d=_0x30cebd[_0x4d93c6(0x1f1)]('page',0x1),_0x2700ab=_0x30cebd[_0x4d93c6(0x1f1)](_0x4d93c6(0x1d7),0x14);if(!Number[_0x4d93c6(0x1d8)](_0x48591d)||_0x48591d<0x1)throw CliErrors[_0x4d93c6(0x1db)](_0x4d93c6(0x1f0));if(!Number['isSafeInteger'](_0x2700ab)||_0x2700ab<0x1||_0x2700ab>0x64)throw CliErrors['validation']('--page-size\x20must\x20be\x20an\x20integer\x20between\x201\x20and\x20100.');return{'page':_0x48591d,'pageSize':_0x2700ab};}export function paginateRuntimeItems(_0x75fb1b,_0x5b772b,_0x4653c6){const _0x2abccd=a132_0x245971,_0x590722=(_0x5b772b-0x1)*_0x4653c6;return{'items':_0x75fb1b[_0x2abccd(0x1dd)](_0x590722,_0x590722+_0x4653c6),'paging':{'currentPage':_0x5b772b,'pageSize':_0x4653c6,'totalCount':_0x75fb1b['length']}};}export function projectRuntimeRole(_0x1d5704){const _0x3abd5b=a132_0x245971;return{'id':_0x1d5704['id'],'roleName':_0x1d5704[_0x3abd5b(0x1e1)]??null,'roleType':_0x1d5704[_0x3abd5b(0x1e7)]??null,'remark':_0x1d5704['remark']??null,'userCount':_0x1d5704[_0x3abd5b(0x1f4)]??0x0,'permitCount':_0x1d5704[_0x3abd5b(0x1d3)]??0x0};}function a132_0x21a4(_0x126646,_0x3a76e3){_0x126646=_0x126646-0x1d3;const _0x3c5627=a132_0x3c56();let _0x21a40b=_0x3c5627[_0x126646];return _0x21a40b;}export function projectRuntimeUser(_0x5aac5f){const _0x55a6fe=a132_0x245971,_0x371be8=normalizeRuntimeUserId(_0x5aac5f[_0x55a6fe(0x1fc)]);if(!_0x371be8)return null;return{'userId':_0x371be8,'username':_0x5aac5f[_0x55a6fe(0x1ec)]??null,'nickname':_0x5aac5f[_0x55a6fe(0x1ea)]??null,'displayName':_0x5aac5f['displayName']??null,'email':_0x5aac5f[_0x55a6fe(0x1dc)]??null,'status':_0x5aac5f[_0x55a6fe(0x1e8)]??null};}export function projectRuntimeRoleMember(_0x3ef5c1){const _0x2bae26=a132_0x245971,_0x46ab85=normalizeRuntimeUserId(_0x3ef5c1[_0x2bae26(0x1e5)]);if(!_0x46ab85)return null;return{'userId':_0x46ab85,'username':_0x3ef5c1[_0x2bae26(0x1df)]??null,'nickname':_0x3ef5c1[_0x2bae26(0x1d9)]??null};}function a132_0x3c56(){const _0x4a2b5f=['isSafeInteger','nickname','54579TzPCet','validation','email','slice','string','username','trim','roleName','5502721yPGZrV','Runtime\x20role\x20name\x20\x22','470201hEvxtO','userId','Runtime\x20role\x20\x22','roleType','status','page','nickName','flagMissing','userName','\x22\x20is\x20ambiguous\x20(ids:\x20','117kZPSJV','1632983sHGdgE','--page\x20must\x20be\x20a\x20positive\x20integer.','num','Disambiguate\x20with\x20--role\x20<id>.','\x22\x20not\x20found\x20in\x20app\x20','userCount','Pass\x20--role\x20<id|name>.','24647328kdgQem','filter','628930MqJWpl','length','join','8kqmoau','code','2xnVrwr','65xPguaD','47826mIDBaw','Page\x20size\x20(1-100)','role','number','test','permitCount','40fKeuSh','Run\x20`flow\x20runtime-role-list`\x20to\x20see\x20runtime\x20roles.','Runtime\x20role\x20id\x20or\x20exact\x20role\x20name','page-size'];a132_0x3c56=function(){return _0x4a2b5f;};return a132_0x3c56();}export function readRuntimeRoleRef(_0x1f7045){const _0x10c7e7=a132_0x245971,_0x17816e=_0x1f7045['str']('role')[_0x10c7e7(0x1e0)]();if(!_0x17816e)throw CliErrors[_0x10c7e7(0x1eb)](_0x10c7e7(0x201),_0x10c7e7(0x1f5));return _0x17816e;}export function resolveRuntimeRoleGroup(_0x44b329,_0x2ba559,_0x473732){const _0x5e00a4=a132_0x245971,_0x384a91=/^\d+$/[_0x5e00a4(0x203)](_0x2ba559)?BigInt(_0x2ba559)['toString']():null,_0x118b1c=_0x384a91!==null?_0x473732[_0x5e00a4(0x1f7)](_0x51ec73=>String(_0x51ec73['id'])===_0x384a91):_0x473732[_0x5e00a4(0x1f7)](_0x2ce699=>_0x2ce699[_0x5e00a4(0x1e1)]===_0x2ba559);if(_0x118b1c[_0x5e00a4(0x1f9)]===0x0)throw CliErrors['validation'](_0x5e00a4(0x1e6)+_0x2ba559+_0x5e00a4(0x1f3)+_0x44b329+'.',_0x5e00a4(0x1d5));if(_0x118b1c[_0x5e00a4(0x1f9)]>0x1){const _0x3eea82=_0x118b1c['map'](_0x479f8b=>_0x479f8b['id'])[_0x5e00a4(0x1fa)](',\x20');throw CliErrors['validation'](_0x5e00a4(0x1e3)+_0x2ba559+_0x5e00a4(0x1ed)+_0x3eea82+').',_0x5e00a4(0x1f2));}return _0x118b1c[0x0];}function normalizeRuntimeUserId(_0x567e48){const _0x52e758=a132_0x245971;if(typeof _0x567e48!==_0x52e758(0x1de)&&typeof _0x567e48!==_0x52e758(0x202))return null;const _0xb68812=String(_0x567e48)[_0x52e758(0x1e0)]();return _0xb68812||null;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a133_0x18d0c5=a133_0x4bd9;(function(_0x3ef461,_0x251e1e){const _0x482067=a133_0x4bd9,_0x3e0a93=_0x3ef461();while(!![]){try{const _0x12d707=-parseInt(_0x482067(0x10e))/0x1+parseInt(_0x482067(0x109))/0x2*(-parseInt(_0x482067(0x104))/0x3)+parseInt(_0x482067(0xff))/0x4*(-parseInt(_0x482067(0x10d))/0x5)+-parseInt(_0x482067(0x10a))/0x6*(-parseInt(_0x482067(0x107))/0x7)+-parseInt(_0x482067(0xfb))/0x8*(parseInt(_0x482067(0x101))/0x9)+-parseInt(_0x482067(0x108))/0xa+parseInt(_0x482067(0xfc))/0xb;if(_0x12d707===_0x251e1e)break;else _0x3e0a93['push'](_0x3e0a93['shift']());}catch(_0x1f195a){_0x3e0a93['push'](_0x3e0a93['shift']());}}}(a133_0xe18b,0x709ee));function a133_0xe18b(){const _0x5663ad=['4KVfrEO','trim','27QeTnjB','flow','length','1205166OUWMxJ','map','keyword','3355051gaeAuw','9213970AXjWCy','2OvAMAI','6UuhqEo','List\x20runtime\x20app\x20roles\x20for\x20approval\x20assignee\x20selection','appCode','1174675xXVbIf','451750SFtmkn','runtime','str','string','1664072XhpIjl','28774152cXQSql','read','\x20runtime\x20role(s)'];a133_0xe18b=function(){return _0x5663ad;};return a133_0xe18b();}function a133_0x4bd9(_0xa4763f,_0x359cc5){_0xa4763f=_0xa4763f-0xfb;const _0xe18b3f=a133_0xe18b();let _0x4bd9e3=_0xe18b3f[_0xa4763f];return _0x4bd9e3;}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':a133_0x18d0c5(0x102),'command':'runtime-role-list','description':a133_0x18d0c5(0x10b),'risk':a133_0x18d0c5(0xfd),'flags':[{'name':a133_0x18d0c5(0x106),'type':a133_0x18d0c5(0x111),'description':'Optional\x20runtime\x20role-name\x20keyword'},FLOW_RUNTIME_PAGE_FLAG,FLOW_RUNTIME_PAGE_SIZE_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x5d44d5){readRuntimePagination(_0x5d44d5);},async 'execute'(_0x219cf2){const _0x262d06=a133_0x18d0c5,{page:_0x3f0483,pageSize:_0x1cfcd1}=readRuntimePagination(_0x219cf2),_0x587c39=_0x219cf2[_0x262d06(0x110)](_0x262d06(0x106))[_0x262d06(0x100)](),{items:_0x17d493,paging:_0x3a0f0e}=await listApprovalRuntimeRoles(_0x219cf2['appCode'],{..._0x587c39?{'roleName':_0x587c39}:{},'currentPage':_0x3f0483,'pageSize':_0x1cfcd1}),_0x1e0f61=_0x17d493[_0x262d06(0x105)](projectRuntimeRole);return{'ok':!![],'data':{'appCode':_0x219cf2[_0x262d06(0x10c)],'scope':_0x262d06(0x10f),..._0x587c39?{'keyword':_0x587c39}:{},'roles':_0x1e0f61,'paging':_0x3a0f0e},'message':'Found\x20'+_0x1e0f61[_0x262d06(0x103)]+_0x262d06(0xfe)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a134_0x361bae=a134_0xefd0;(function(_0x18e320,_0x4d5897){const _0x518d44=a134_0xefd0,_0x1b0abd=_0x18e320();while(!![]){try{const _0xaf70d1=parseInt(_0x518d44(0x151))/0x1*(parseInt(_0x518d44(0x147))/0x2)+parseInt(_0x518d44(0x14a))/0x3+parseInt(_0x518d44(0x154))/0x4*(parseInt(_0x518d44(0x14e))/0x5)+-parseInt(_0x518d44(0x14b))/0x6+parseInt(_0x518d44(0x14f))/0x7+parseInt(_0x518d44(0x142))/0x8*(parseInt(_0x518d44(0x13d))/0x9)+-parseInt(_0x518d44(0x13e))/0xa;if(_0xaf70d1===_0x4d5897)break;else _0x1b0abd['push'](_0x1b0abd['shift']());}catch(_0x5d3625){_0x1b0abd['push'](_0x1b0abd['shift']());}}}(a134_0x26a3,0x4178c));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{FLOW_RUNTIME_PAGE_FLAG,FLOW_RUNTIME_PAGE_SIZE_FLAG,FLOW_RUNTIME_ROLE_REF_FLAG,paginateRuntimeItems,projectRuntimeRoleMember,readRuntimePagination,readRuntimeRoleRef,resolveRuntimeRoleGroup}from'../../commands/flow/runtime-resources-shared.js';import{listApprovalRuntimeRoleUsers}from'../../core/api-client.js';function a134_0xefd0(_0x3bb589,_0x1da9e0){_0x3bb589=_0x3bb589-0x13c;const _0x26a3b5=a134_0x26a3();let _0xefd0c6=_0x26a3b5[_0x3bb589];return _0xefd0c6;}export const flowRuntimeRoleUserList={'service':a134_0x361bae(0x141),'command':a134_0x361bae(0x140),'description':a134_0x361bae(0x143),'risk':'read','flags':[FLOW_RUNTIME_ROLE_REF_FLAG,FLOW_RUNTIME_PAGE_FLAG,FLOW_RUNTIME_PAGE_SIZE_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0xc29428){readRuntimeRoleRef(_0xc29428),readRuntimePagination(_0xc29428);},async 'execute'(_0x1e8aaf){const _0x11e5a5=a134_0x361bae,_0x3b6942=resolveRuntimeRoleGroup(_0x1e8aaf[_0x11e5a5(0x149)],readRuntimeRoleRef(_0x1e8aaf),await listApprovalRuntimeRoleUsers(_0x1e8aaf[_0x11e5a5(0x149)])),_0x442f5f=(_0x3b6942[_0x11e5a5(0x14d)]??[])[_0x11e5a5(0x152)](projectRuntimeRoleMember)[_0x11e5a5(0x13f)](_0x304a4c=>_0x304a4c!==null),{page:_0x510039,pageSize:_0x9bd583}=readRuntimePagination(_0x1e8aaf),_0x170c39=paginateRuntimeItems(_0x442f5f,_0x510039,_0x9bd583);return{'ok':!![],'data':{'appCode':_0x1e8aaf[_0x11e5a5(0x149)],'scope':_0x11e5a5(0x145),'role':{'id':_0x3b6942['id'],'roleName':_0x3b6942[_0x11e5a5(0x13c)]??null,'roleType':_0x3b6942[_0x11e5a5(0x150)]??null},'users':_0x170c39[_0x11e5a5(0x148)],'paging':_0x170c39[_0x11e5a5(0x153)]},'message':_0x11e5a5(0x14c)+_0x442f5f[_0x11e5a5(0x144)]+_0x11e5a5(0x146)+(_0x3b6942[_0x11e5a5(0x13c)]??_0x3b6942['id'])};}};function a134_0x26a3(){const _0x263ec2=['\x20runtime\x20member(s)\x20in\x20role\x20','279716uMBRqQ','items','appCode','1321539JEFhur','2671464FGdZOL','Found\x20','userList','2675375wRDkTV','8120PSWYSe','roleType','2cXQMjm','map','paging','4jDMxHA','roleName','4072158KdkApm','9955100fClGcq','filter','runtime-role-user-list','flow','8Azrpkn','List\x20members\x20of\x20one\x20runtime\x20app\x20role\x20for\x20approval\x20verification','length','runtime'];a134_0x26a3=function(){return _0x263ec2;};return a134_0x26a3();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a135_0x2ca643=a135_0x2051;(function(_0x561ff6,_0x57a569){const _0x2178eb=a135_0x2051,_0x26e395=_0x561ff6();while(!![]){try{const _0x2e92ae=parseInt(_0x2178eb(0x20f))/0x1+parseInt(_0x2178eb(0x200))/0x2*(-parseInt(_0x2178eb(0x1f8))/0x3)+parseInt(_0x2178eb(0x20c))/0x4*(parseInt(_0x2178eb(0x208))/0x5)+parseInt(_0x2178eb(0x1f5))/0x6+-parseInt(_0x2178eb(0x1ff))/0x7+parseInt(_0x2178eb(0x20a))/0x8+-parseInt(_0x2178eb(0x1fb))/0x9;if(_0x2e92ae===_0x57a569)break;else _0x26e395['push'](_0x26e395['shift']());}catch(_0x415e99){_0x26e395['push'](_0x26e395['shift']());}}}(a135_0x2a94,0x9c731));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{FLOW_RUNTIME_PAGE_FLAG,FLOW_RUNTIME_PAGE_SIZE_FLAG,paginateRuntimeItems,projectRuntimeUser,readRuntimePagination}from'../../commands/flow/runtime-resources-shared.js';function a135_0x2a94(){const _0x50b23b=['8768504YGhDjU','Search\x20runtime\x20app\x20users\x20for\x20approval\x20assignee\x20selection','4byebLF','\x20runtime\x20app\x20user(s)\x20matching\x20\x22','toLowerCase','515105LtsxKk','read','items','trim','3467322vhFAEK','Pass\x20--keyword\x20<text>.','paging','512583HpxRbl','flow','filter','4882014mARgTl','User\x20id,\x20username,\x20nickname,\x20display\x20name,\x20or\x20email\x20keyword','string','appCode','8908130QyblAA','2RTYOOX','nickName','length','str','keyword','flagMissing','some','map','2188295WFLEhU','includes'];a135_0x2a94=function(){return _0x50b23b;};return a135_0x2a94();}import{listApprovalRuntimeUsers}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a135_0x2051(_0x31348c,_0x58a2df){_0x31348c=_0x31348c-0x1f4;const _0x2a94f6=a135_0x2a94();let _0x2051b5=_0x2a94f6[_0x31348c];return _0x2051b5;}export const flowRuntimeUserSearch={'service':a135_0x2ca643(0x1f9),'command':'runtime-user-search','description':a135_0x2ca643(0x20b),'risk':a135_0x2ca643(0x210),'flags':[{'name':'keyword','type':a135_0x2ca643(0x1fd),'required':!![],'description':a135_0x2ca643(0x1fc)},FLOW_RUNTIME_PAGE_FLAG,FLOW_RUNTIME_PAGE_SIZE_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x2991c9){const _0x5b7343=a135_0x2ca643;if(!_0x2991c9[_0x5b7343(0x203)](_0x5b7343(0x204))[_0x5b7343(0x1f4)]())throw CliErrors[_0x5b7343(0x205)](_0x5b7343(0x204),_0x5b7343(0x1f6));readRuntimePagination(_0x2991c9);},async 'execute'(_0x39d56b){const _0x47c2eb=a135_0x2ca643,_0x4510a6=_0x39d56b[_0x47c2eb(0x203)]('keyword')[_0x47c2eb(0x1f4)](),_0xafc27f=_0x4510a6[_0x47c2eb(0x20e)](),_0x3d711e=(await listApprovalRuntimeUsers(_0x39d56b[_0x47c2eb(0x1fe)]))[_0x47c2eb(0x1fa)](_0x594a42=>[_0x594a42['code'],_0x594a42['userName'],_0x594a42[_0x47c2eb(0x201)],_0x594a42['displayName'],_0x594a42['email']][_0x47c2eb(0x206)](_0xdf9d6f=>_0xdf9d6f!==null&&_0xdf9d6f!==undefined&&String(_0xdf9d6f)[_0x47c2eb(0x20e)]()[_0x47c2eb(0x209)](_0xafc27f)))[_0x47c2eb(0x207)](projectRuntimeUser)['filter'](_0x43afee=>_0x43afee!==null),{page:_0x2193f4,pageSize:_0x38eff4}=readRuntimePagination(_0x39d56b),_0x59c2a7=paginateRuntimeItems(_0x3d711e,_0x2193f4,_0x38eff4);return{'ok':!![],'data':{'appCode':_0x39d56b[_0x47c2eb(0x1fe)],'scope':'runtime','keyword':_0x4510a6,'users':_0x59c2a7[_0x47c2eb(0x211)],'paging':_0x59c2a7[_0x47c2eb(0x1f7)]},'message':'Found\x20'+_0x3d711e[_0x47c2eb(0x202)]+_0x47c2eb(0x20d)+_0x4510a6+'\x22'};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a136_0x1199(){const _0x27b92f=['flagMissing','Cannot\x20export\x20this\x20flow\x20into\x20the\x20current\x20portable\x20FlowConfig\x20contract.','flowType','/smartapi/flow/page','317325uCxSZn','pageId','The\x20detail\x20response\x20does\x20not\x20contain\x20an\x20object\x20flowJson.','POST','flowJson','number','warnings','/data/workflow?workflowId=','697046NvxQCe','1134bAaPPf','/smartapi/flow/update','yes','message','Unable\x20to\x20read\x20FlowConfig:\x20','valid','Approval\x20flow\x20','update','clear\x20all\x20page\x20bindings','pageIds','Path\x20to\x20the\x20local\x20FlowConfig\x20JSON\x20file','unbound','validation','isArray','FlowConfig\x20validation\x20failed\x20for\x20','Continue?\x20[y/N]\x20','\x20\x20appCode:\x20','flowCode','map','9990744NBQavY','num','1191DASMwL','Flow\x20definition\x20id\x20(from\x20`flow\x20list`\x20or\x20`flow\x20create`)','/smartapi/flow/publish','INDEPENDENT_FLOW','str','/smartapi/flow/detail','stringify','datasetCode','omitted\x20(unbound)','flowDesc','trim','replace\x20complete\x20binding\x20list','path','Cannot\x20export\x20an\x20invalid\x20flow\x20definition.','split','isSafeInteger','1842668dDKjQV','flowName','339672JiBpCI','File:\x20','\x20\x20flowId:\x20','The\x20detail\x20response\x20does\x20not\x20contain\x20flowName.','nonInteractive','normalized','\x20\x20flowType:\x20','cancelled','--id\x20must\x20be\x20a\x20positive\x20integer.','Cannot\x20read\x20invalid\x20or\x20unsafe\x20flow\x20page\x20identifiers.','some','length','FORM_FLOW','3421200HAhyUa','errors','string','apiError'];a136_0x1199=function(){return _0x27b92f;};return a136_0x1199();}const a136_0x19dbe2=a136_0x1896;(function(_0x266877,_0x423008){const _0x4e0e88=a136_0x1896,_0x51d920=_0x266877();while(!![]){try{const _0x344ff8=parseInt(_0x4e0e88(0xbb))/0x1+parseInt(_0x4e0e88(0x94))/0x2*(-parseInt(_0x4e0e88(0xa9))/0x3)+-parseInt(_0x4e0e88(0xb9))/0x4+parseInt(_0x4e0e88(0x8b))/0x5+-parseInt(_0x4e0e88(0x83))/0x6+-parseInt(_0x4e0e88(0x93))/0x7+parseInt(_0x4e0e88(0xa7))/0x8;if(_0x344ff8===_0x423008)break;else _0x51d920['push'](_0x51d920['shift']());}catch(_0x3b771f){_0x51d920['push'](_0x51d920['shift']());}}}(a136_0x1199,0x485f4));import{asDryRunResult}from'../../commands/common/dry-run.js';import{readFlowConfigFile,validateFlowConfig}from'../../core/flow-config.js';import{CliErrors}from'../../errors.js';function a136_0x1896(_0x13ea4e,_0x53acd4){_0x13ea4e=_0x13ea4e-0x77;const _0x119953=a136_0x1199();let _0x18967a=_0x119953[_0x13ea4e];return _0x18967a;}import{getAppBaseUrl}from'../../constant/domain.js';import{requireConfirmationPrompt}from'@lovrabet/cli-framework';export const FLOW_PATHS={'list':a136_0x19dbe2(0x8a),'detail':a136_0x19dbe2(0xae),'create':'/smartapi/flow/create','update':a136_0x19dbe2(0x95),'publish':a136_0x19dbe2(0xab)};export const FLOW_ID_FLAG={'name':'id','type':a136_0x19dbe2(0x90),'required':!![],'description':a136_0x19dbe2(0xaa)};export const FLOW_FILE_FLAG={'name':'file','type':a136_0x19dbe2(0x85),'required':!![],'description':a136_0x19dbe2(0x9e)};export function flowDefinitionToConfig(_0x37e492){const _0x59a78a=a136_0x19dbe2;if(typeof _0x37e492[_0x59a78a(0xba)]!==_0x59a78a(0x85)||_0x37e492[_0x59a78a(0xba)][_0x59a78a(0xb3)]()==='')throw CliErrors[_0x59a78a(0x86)](_0x59a78a(0xb6),_0x59a78a(0x79));if(typeof _0x37e492[_0x59a78a(0x8f)]!=='object'||_0x37e492['flowJson']===null||Array[_0x59a78a(0xa1)](_0x37e492[_0x59a78a(0x8f)]))throw CliErrors['apiError'](_0x59a78a(0xb6),_0x59a78a(0x8d));if(_0x37e492[_0x59a78a(0x89)]!==_0x59a78a(0x82)&&_0x37e492[_0x59a78a(0x89)]!==_0x59a78a(0xac))throw CliErrors['apiError'](_0x59a78a(0xb6),'The\x20detail\x20response\x20does\x20not\x20contain\x20a\x20supported\x20flowType.');const _0x1c18cf={'flowName':_0x37e492[_0x59a78a(0xba)],...typeof _0x37e492[_0x59a78a(0xb2)]===_0x59a78a(0x85)?{'flowDesc':_0x37e492[_0x59a78a(0xb2)]}:{},'flowType':_0x37e492[_0x59a78a(0x89)],...typeof _0x37e492['datasetCode']===_0x59a78a(0x85)&&_0x37e492[_0x59a78a(0xb0)]['trim']()?{'datasetCode':_0x37e492[_0x59a78a(0xb0)]}:{},...readFlowPageBindings(_0x37e492),'flowJson':_0x37e492[_0x59a78a(0x8f)]},_0x596523=validateFlowConfig(_0x1c18cf);if(!_0x596523['valid']){const _0x23638d=_0x596523['errors'][_0x59a78a(0xa6)](_0x420c35=>_0x420c35['path']+':\x20'+_0x420c35[_0x59a78a(0x97)])['join'](';\x20');throw CliErrors[_0x59a78a(0xa0)](_0x59a78a(0x88),_0x23638d);}return{'config':_0x596523[_0x59a78a(0x7b)],'warnings':_0x596523[_0x59a78a(0x91)],'removedPaths':_0x596523[_0x59a78a(0x91)][_0x59a78a(0xa6)](_0x16582c=>_0x16582c[_0x59a78a(0xb5)])};}export function readFlowPageBindings(_0x14850f){const _0x4203f2=a136_0x19dbe2;let _0x393e05;if(_0x14850f[_0x4203f2(0x9d)]!==undefined&&_0x14850f[_0x4203f2(0x9d)]!==null)_0x393e05=_0x14850f[_0x4203f2(0x9d)];else{if(typeof _0x14850f[_0x4203f2(0x8c)]===_0x4203f2(0x90))_0x393e05=[_0x14850f['pageId']];else{if(typeof _0x14850f[_0x4203f2(0x8c)]==='string'){const _0x15b75f=_0x14850f[_0x4203f2(0x8c)][_0x4203f2(0xb7)](',')[_0x4203f2(0xa6)](_0x2e632d=>_0x2e632d[_0x4203f2(0xb3)]());if(_0x15b75f[_0x4203f2(0x80)](_0x5769a9=>!/^[0-9]+$/['test'](_0x5769a9)))throw CliErrors['apiError']('Cannot\x20read\x20invalid\x20flow\x20page\x20bindings.');_0x393e05=_0x15b75f['map'](Number);}else{if(_0x14850f['pageId']===null)_0x393e05=[];else return{};}}}if(!Array[_0x4203f2(0xa1)](_0x393e05))throw CliErrors[_0x4203f2(0x86)]('Cannot\x20read\x20invalid\x20or\x20unsafe\x20flow\x20page\x20identifiers.');const _0x3e88c3=_0x393e05['map'](_0x2e2607=>{const _0x47c616=_0x4203f2,_0x3ac15f=typeof _0x2e2607==='string'&&/^[0-9]+$/['test'](_0x2e2607)?Number(_0x2e2607):_0x2e2607;if(typeof _0x3ac15f!==_0x47c616(0x90)||!Number['isSafeInteger'](_0x3ac15f)||_0x3ac15f<=0x0)throw CliErrors['apiError'](_0x47c616(0x7f));return _0x3ac15f;});return{'pageIds':[...new Set(_0x3e88c3)]};}export function readFlowId(_0x323818){const _0x11a5a8=a136_0x19dbe2,_0x424678=_0x323818[_0x11a5a8(0xa8)]('id');if(!Number[_0x11a5a8(0xb8)](_0x424678)||_0x424678<=0x0)throw CliErrors[_0x11a5a8(0xa0)](_0x11a5a8(0x7e));return _0x424678;}export function readFlowFilePath(_0x21345b){const _0x49d85c=a136_0x19dbe2,_0x2abe64=_0x21345b[_0x49d85c(0xad)]('file')['trim']();if(!_0x2abe64)throw CliErrors[_0x49d85c(0x87)]('file','Pass\x20--file\x20<path>.');return _0x2abe64;}export async function prepareFlowWrite(_0x240b86,_0x2da4a8,_0x287bf4){const _0x528655=a136_0x19dbe2;let _0x4ea53a;try{_0x4ea53a=await readFlowConfigFile(_0x240b86);}catch(_0x4f4a4e){const _0x536164=_0x4f4a4e instanceof Error?_0x4f4a4e[_0x528655(0x97)]:String(_0x4f4a4e);throw CliErrors[_0x528655(0xa0)](_0x528655(0x98)+_0x536164,_0x528655(0x77)+_0x240b86);}const _0x2f9b09=validateFlowConfig(_0x4ea53a);if(!_0x2f9b09[_0x528655(0x99)]){const _0x5d0c1e=_0x2f9b09[_0x528655(0x84)][_0x528655(0xa6)](_0x35192c=>_0x35192c[_0x528655(0xb5)]+':\x20'+_0x35192c['message'])['join'](';\x20');throw CliErrors[_0x528655(0xa0)](_0x528655(0xa2)+_0x240b86+'.',_0x5d0c1e||'Run\x20`rabetbase\x20flow\x20validate\x20--file\x20<path>`\x20for\x20details.');}const _0x5dc13c=_0x2f9b09['normalized'],_0x258e40={..._0x287bf4!==undefined?{'id':_0x287bf4}:{},'flowName':_0x5dc13c[_0x528655(0xba)],..._0x5dc13c[_0x528655(0xb2)]!==undefined?{'flowDesc':_0x5dc13c['flowDesc']}:{},'flowType':_0x5dc13c[_0x528655(0x89)],'appCode':_0x2da4a8,..._0x5dc13c['datasetCode']!==undefined?{'datasetCode':_0x5dc13c[_0x528655(0xb0)]}:{},..._0x5dc13c[_0x528655(0x9d)]!==undefined?{'pageIds':[...new Set(_0x5dc13c[_0x528655(0x9d)])]}:_0x5dc13c[_0x528655(0x8c)]!==undefined?{'pageIds':[_0x5dc13c['pageId']]}:{},'flowJson':_0x5dc13c[_0x528655(0x8f)]};return{'request':_0x258e40,'warnings':_0x2f9b09[_0x528655(0x91)]};}export async function confirmFlowWrite(_0x2b0bab,_0x51c1fb,_0x362208){const _0x421790=a136_0x19dbe2;if(_0x2b0bab[_0x421790(0x7a)]||_0x2b0bab['bool'](_0x421790(0x96)))return;const _0x5da810=_0x362208[_0x421790(0x9d)]===undefined?_0x51c1fb===_0x421790(0x9b)?'omitted\x20(preserve\x20existing\x20page\x20bindings)':_0x421790(0xb1):JSON[_0x421790(0xaf)](_0x362208[_0x421790(0x9d)])+'\x20('+(_0x362208[_0x421790(0x9d)][_0x421790(0x81)]>0x0?_0x51c1fb===_0x421790(0x9b)?_0x421790(0xb4):'bind\x20pages':_0x51c1fb===_0x421790(0x9b)?_0x421790(0x9c):_0x421790(0x9f))+')';await requireConfirmationPrompt({'lines':[_0x421790(0x9a)+_0x51c1fb+':',_0x421790(0xa4)+_0x2b0bab['appCode'],..._0x362208['id']!==undefined?[_0x421790(0x78)+_0x362208['id']]:[],'\x20\x20flowName:\x20'+_0x362208[_0x421790(0xba)],_0x421790(0x7c)+_0x362208[_0x421790(0x89)],'\x20\x20pageIds:\x20'+_0x5da810,_0x421790(0xa3)],'createCancelledError':_0x18eaaf=>CliErrors[_0x421790(0x7d)](_0x18eaaf)});}export function flowSelector(_0x4fde08,_0x3a35e1,_0x4f01e6){const _0x1ecfe1=a136_0x19dbe2;return{'appCode':_0x4fde08,..._0x3a35e1!==undefined?{'flowId':_0x3a35e1}:{},..._0x4f01e6?.['flowCode']?{'flowCode':_0x4f01e6[_0x1ecfe1(0xa5)]}:{},..._0x4f01e6?.['flowName']?{'flowName':_0x4f01e6[_0x1ecfe1(0xba)]}:{}};}export function buildFlowUrl(_0x4feb37,_0x5cb12c){const _0x8f3797=a136_0x19dbe2,_0x2c5edc=encodeURIComponent(String(_0x5cb12c));return getAppBaseUrl(_0x4feb37)+_0x8f3797(0x92)+_0x2c5edc;}export function buildFlowIdDryRun(_0x42037d,_0xaa36d4,_0x4b329a,_0x3c5f45,_0x2ddbfe){const _0x1f9a32=a136_0x19dbe2,_0x28a3e6={'id':_0x3c5f45,'appCode':_0x4b329a};return asDryRunResult({'operation':_0x42037d,'selector':flowSelector(_0x4b329a,_0x3c5f45),'before':null,'after':_0x2ddbfe,'request':_0x28a3e6,'dryRun':!![],'backend':{'method':_0x1f9a32(0x8e),'path':_0xaa36d4},'warnings':[]},{'method':'POST','url':_0xaa36d4});}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a137_0x1ba359=a137_0x1899;(function(_0xc201da,_0x5006e1){const _0x43fc97=a137_0x1899,_0x38f899=_0xc201da();while(!![]){try{const _0x3ac9f3=-parseInt(_0x43fc97(0x95))/0x1*(-parseInt(_0x43fc97(0x9b))/0x2)+-parseInt(_0x43fc97(0x81))/0x3*(parseInt(_0x43fc97(0x93))/0x4)+parseInt(_0x43fc97(0xa4))/0x5+-parseInt(_0x43fc97(0x90))/0x6+-parseInt(_0x43fc97(0x8d))/0x7+parseInt(_0x43fc97(0x98))/0x8*(-parseInt(_0x43fc97(0x82))/0x9)+parseInt(_0x43fc97(0x92))/0xa;if(_0x3ac9f3===_0x5006e1)break;else _0x38f899['push'](_0x38f899['shift']());}catch(_0x522d80){_0x38f899['push'](_0x38f899['shift']());}}}(a137_0x52a9,0x7b266));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a137_0x52a9(){const _0x40e16a=['The\x20flow\x20detail\x20response\x20does\x20not\x20identify\x20the\x20current\x20page\x20bindings.','string','isSafeInteger','flowCode','POST','Flow\x20page\x20bindings\x20changed\x20or\x20do\x20not\x20match\x20--expected-page-ids.','length','4789246zgqLrp','includes','apiError','2914344GaoXrN','flow','14475300nHgkqL','351644RGHjJG','update','5hfHDjk','expected-page-ids','Current\x20page\x20bindings\x20as\x20a\x20JSON\x20array;\x20required\x20when\x20changing\x20bindings\x20(non-atomic\x20preflight)','196184gBqFXh','--expected-page-ids\x20requires\x20explicit\x20pageIds\x20or\x20pageId\x20in\x20the\x20FlowConfig.','some','288758ZqsPSU','appCode','flag','pageIds','--expected-page-ids\x20must\x20be\x20a\x20JSON\x20array\x20of\x20positive\x20safe\x20integers.','flowName','filter','Update\x20a\x20flow\x20definition\x20draft\x20from\x20a\x20local\x20FlowConfig\x20file','flagMissing','2542415eionUl','validation','str','15valTsg','207LUuMZd','Updated\x20flow\x20','write','removed'];a137_0x52a9=function(){return _0x40e16a;};return a137_0x52a9();}import{asDryRunResult}from'../../commands/common/dry-run.js';function a137_0x1899(_0x14599d,_0x159ce8){_0x14599d=_0x14599d-0x80;const _0x52a930=a137_0x52a9();let _0x18993c=_0x52a930[_0x14599d];return _0x18993c;}import{getFlowDefinition,updateFlowDefinition}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{FLOW_FILE_FLAG,FLOW_ID_FLAG,FLOW_PATHS,confirmFlowWrite,flowSelector,prepareFlowWrite,readFlowFilePath,readFlowId,readFlowPageBindings}from'../../commands/flow/shared.js';function readExpectedPageIds(_0x7deba8){const _0xfd9806=a137_0x1899;if(_0x7deba8[_0xfd9806(0x9d)](_0xfd9806(0x96))===undefined)return undefined;let _0x120e3b;try{_0x120e3b=JSON['parse'](_0x7deba8[_0xfd9806(0x80)]('expected-page-ids'));}catch{throw CliErrors['validation'](_0xfd9806(0x9f));}if(!Array['isArray'](_0x120e3b)||_0x120e3b[_0xfd9806(0x9a)](_0xc3b372=>!Number[_0xfd9806(0x88)](_0xc3b372)||_0xc3b372<=0x0))throw CliErrors[_0xfd9806(0xa5)](_0xfd9806(0x9f));return[...new Set(_0x120e3b)];}async function preparePageBindingChange(_0x1425ef,_0x3905ed,_0x425503){const _0x27b900=a137_0x1899,_0xd2b50c=readExpectedPageIds(_0x1425ef);if(_0x3905ed[_0x27b900(0x9e)]===undefined){if(_0xd2b50c!==undefined)throw CliErrors[_0x27b900(0xa5)](_0x27b900(0x99));return{'before':null};}const _0x51de64=await getFlowDefinition(_0x1425ef[_0x27b900(0x9c)],_0x3905ed['id']),_0x30c4ce=_0x51de64&&readFlowPageBindings(_0x51de64)['pageIds'];if(_0x30c4ce===undefined||_0x30c4ce===null)throw CliErrors[_0x27b900(0x8f)](_0x27b900(0x86));if(_0xd2b50c!==undefined&&(_0xd2b50c[_0x27b900(0x8c)]!==_0x30c4ce[_0x27b900(0x8c)]||_0xd2b50c[_0x27b900(0x9a)](_0x13957b=>!_0x30c4ce[_0x27b900(0x8e)](_0x13957b))))throw CliErrors[_0x27b900(0xa5)](_0x27b900(0x8b),'Read\x20the\x20flow\x20detail\x20and\x20review\x20the\x20binding\x20changes\x20before\x20retrying.');const _0x4ae980=_0x3905ed[_0x27b900(0x9e)],_0x320dcc={'before':_0x30c4ce,'after':_0x4ae980,'added':_0x4ae980[_0x27b900(0xa1)](_0x49d1a8=>!_0x30c4ce[_0x27b900(0x8e)](_0x49d1a8)),'removed':_0x30c4ce[_0x27b900(0xa1)](_0x572f7e=>!_0x4ae980['includes'](_0x572f7e))};if(!_0x425503&&_0xd2b50c===undefined&&(_0x320dcc['added']['length']>0x0||_0x320dcc[_0x27b900(0x85)][_0x27b900(0x8c)]>0x0))throw CliErrors[_0x27b900(0xa3)](_0x27b900(0x96),'Preview\x20the\x20update,\x20then\x20pass\x20the\x20current\x20binding\x20list\x20as\x20a\x20JSON\x20array;\x20use\x20[]\x20for\x20no\x20bindings.');return{'before':_0x51de64,'pageBindings':_0x320dcc};}export const flowUpdate={'service':a137_0x1ba359(0x91),'command':a137_0x1ba359(0x94),'description':a137_0x1ba359(0xa2),'risk':a137_0x1ba359(0x84),'flags':[FLOW_ID_FLAG,FLOW_FILE_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a137_0x1ba359(0x96),'type':a137_0x1ba359(0x87),'description':a137_0x1ba359(0x97)}],async 'validate'(_0x3c86c8){readFlowId(_0x3c86c8),readFlowFilePath(_0x3c86c8),readExpectedPageIds(_0x3c86c8);},async 'dryRun'(_0x472b87){const _0x25c4a0=a137_0x1ba359,_0x5d3bd2=readFlowId(_0x472b87),{request:_0xdf294a,warnings:_0x4fb1e8}=await prepareFlowWrite(readFlowFilePath(_0x472b87),_0x472b87[_0x25c4a0(0x9c)],_0x5d3bd2),_0x238ed8=await preparePageBindingChange(_0x472b87,{..._0xdf294a,'id':_0x5d3bd2},!![]);return asDryRunResult({'operation':_0x25c4a0(0x94),'selector':flowSelector(_0x472b87['appCode'],_0x5d3bd2),..._0x238ed8,'after':_0xdf294a,'request':_0xdf294a,'dryRun':!![],'backend':{'method':'POST','path':FLOW_PATHS[_0x25c4a0(0x94)]},'warnings':_0x4fb1e8},{'method':_0x25c4a0(0x8a),'url':FLOW_PATHS[_0x25c4a0(0x94)]});},async 'execute'(_0x519032){const _0x2c77a8=a137_0x1ba359,_0x31174a=readFlowId(_0x519032),{request:_0x4e8779,warnings:_0x230b7b}=await prepareFlowWrite(readFlowFilePath(_0x519032),_0x519032[_0x2c77a8(0x9c)],_0x31174a),_0x236f89=await preparePageBindingChange(_0x519032,{..._0x4e8779,'id':_0x31174a},![]);await confirmFlowWrite(_0x519032,_0x2c77a8(0x94),_0x4e8779);const _0x2c7252=await updateFlowDefinition({..._0x4e8779,'id':_0x31174a});return{'ok':!![],'data':{'operation':_0x2c77a8(0x94),'selector':flowSelector(_0x519032[_0x2c77a8(0x9c)],_0x31174a,_0x2c7252),..._0x236f89,'after':_0x2c7252,'dryRun':![],'backend':{'method':_0x2c77a8(0x8a),'path':FLOW_PATHS[_0x2c77a8(0x94)]},'warnings':_0x230b7b},'message':_0x2c77a8(0x83)+(_0x2c7252[_0x2c77a8(0xa0)]||_0x2c7252[_0x2c77a8(0x89)]||_0x31174a)};}};
|