@lovrabet/rabetbase-cli 2.5.4-beta.5 → 2.5.5-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api/api-doc.js +1 -1
- package/lib/api/api-group.js +1 -1
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.js +1 -1
- package/lib/api/generate-sdk-config-file.js +1 -1
- package/lib/api/legacy-api-file.js +1 -1
- package/lib/api/model-registry-file.js +1 -1
- package/lib/api/model-registry-scaffold.js +1 -1
- package/lib/api/model-source.js +1 -1
- package/lib/auth/auth-server-ui.js +1 -1
- package/lib/auth/auth-server.js +1 -1
- package/lib/auth/constant.js +1 -1
- package/lib/auth/get-cookie.js +1 -1
- package/lib/auth/get-session-user.js +1 -1
- package/lib/auth/is-session-valid.js +1 -1
- package/lib/auth/login-success-html.js +1 -1
- package/lib/auth/logout.js +1 -1
- package/lib/cli-flags.js +1 -1
- package/lib/cli.js +1 -1
- package/lib/commands/api/generate.js +1 -1
- package/lib/commands/api/index.js +1 -1
- package/lib/commands/api/list.js +1 -1
- package/lib/commands/api/pull.js +1 -1
- package/lib/commands/api/shared.js +1 -1
- package/lib/commands/app/detail.js +1 -1
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/members-list.js +1 -1
- package/lib/commands/app/remote-directory.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/delete.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/app-config/list.js +1 -1
- package/lib/commands/app-config/set.js +1 -1
- package/lib/commands/app-config/shared.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/bff/create.js +1 -1
- package/lib/commands/bff/delete.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/bff/list.js +1 -1
- package/lib/commands/bff/logs.js +1 -1
- package/lib/commands/bff/pull.js +1 -1
- package/lib/commands/bff/push.js +1 -1
- package/lib/commands/bff/status.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/cli-update.js +1 -1
- package/lib/commands/codegen/index.js +1 -1
- package/lib/commands/codegen/sdk.js +1 -1
- package/lib/commands/codegen/sql.js +1 -1
- package/lib/commands/common/app-registry.js +1 -1
- package/lib/commands/common/app-selector.js +1 -1
- package/lib/commands/common/async-task.js +1 -1
- package/lib/commands/common/dry-run.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/common/validate.js +1 -1
- package/lib/commands/config/delete.js +1 -1
- package/lib/commands/config/get.js +1 -1
- package/lib/commands/config/index.js +1 -1
- package/lib/commands/config/init.js +1 -1
- package/lib/commands/config/list.js +1 -1
- package/lib/commands/config/set.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/dataset/batch-design.js +1 -1
- package/lib/commands/dataset/business-group-update.js +1 -1
- package/lib/commands/dataset/business-groups.js +1 -1
- package/lib/commands/dataset/capability.js +1 -1
- package/lib/commands/dataset/cross-relation-create.js +1 -1
- package/lib/commands/dataset/cross-relation-delete.js +1 -1
- package/lib/commands/dataset/cross-relation-list.js +1 -1
- package/lib/commands/dataset/cross-relation-shared.js +1 -1
- package/lib/commands/dataset/cross-relation-update.js +1 -1
- package/lib/commands/dataset/delete.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/extend-update.js +1 -1
- package/lib/commands/dataset/field-restore.js +1 -1
- package/lib/commands/dataset/field-update.js +1 -1
- package/lib/commands/dataset/generate.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/dataset/relation-audit.js +1 -1
- package/lib/commands/dataset/relation-create.js +1 -1
- package/lib/commands/dataset/relation-delete.js +1 -1
- package/lib/commands/dataset/relation-shared.js +1 -1
- package/lib/commands/dataset/relation-update.js +1 -1
- package/lib/commands/dataset/relations.js +1 -1
- package/lib/commands/dataset/rename.js +1 -1
- package/lib/commands/dataset/restore.js +1 -1
- package/lib/commands/dataset/user-deleted-field-list.js +1 -1
- package/lib/commands/db/analysis-batching.js +1 -1
- package/lib/commands/db/analyze-batch-plan.js +1 -1
- package/lib/commands/db/analyze-cancel.js +1 -1
- package/lib/commands/db/analyze-start.js +1 -1
- package/lib/commands/db/analyze-status.js +1 -1
- package/lib/commands/db/create.js +1 -1
- package/lib/commands/db/delete.js +1 -1
- package/lib/commands/db/detail.js +1 -1
- package/lib/commands/db/diff-refresh-start.js +1 -1
- package/lib/commands/db/diff-refresh-status.js +1 -1
- package/lib/commands/db/diff.js +1 -1
- package/lib/commands/db/index.js +1 -1
- package/lib/commands/db/list.js +1 -1
- package/lib/commands/db/shared.js +1 -1
- package/lib/commands/db/table-diff-shared.js +1 -1
- package/lib/commands/db/tables.js +1 -1
- package/lib/commands/db/test.js +1 -1
- package/lib/commands/db/update.js +1 -1
- package/lib/commands/deployment/index.js +1 -1
- package/lib/commands/deployment/sync-all.js +1 -1
- package/lib/commands/deployment/sync-jobs.js +1 -1
- package/lib/commands/deployment/sync-status.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/flow/create.js +1 -1
- package/lib/commands/flow/detail.js +1 -1
- package/lib/commands/flow/index.js +1 -1
- package/lib/commands/flow/list.js +1 -1
- package/lib/commands/flow/publish.js +1 -1
- package/lib/commands/flow/runtime-resources-shared.js +1 -1
- package/lib/commands/flow/runtime-role-list.js +1 -1
- package/lib/commands/flow/runtime-role-user-list.js +1 -1
- package/lib/commands/flow/runtime-user-search.js +1 -1
- package/lib/commands/flow/shared.js +1 -1
- package/lib/commands/flow/update.js +1 -1
- package/lib/commands/flow/validate.js +1 -1
- package/lib/commands/instant-api-policy/current.js +1 -1
- package/lib/commands/instant-api-policy/index.js +1 -1
- package/lib/commands/instant-api-policy/init.js +1 -1
- package/lib/commands/instant-api-policy/publish.js +1 -1
- package/lib/commands/instant-api-policy/pull.js +1 -1
- package/lib/commands/instant-api-policy/revision.js +1 -1
- package/lib/commands/instant-api-policy/revisions.js +1 -1
- package/lib/commands/instant-api-policy/rollback.js +1 -1
- package/lib/commands/instant-api-policy/shared.js +1 -1
- package/lib/commands/instant-api-policy/validate.js +1 -1
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/nudge.js +1 -1
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/issue/shared.js +1 -1
- package/lib/commands/kb/create.js +1 -1
- package/lib/commands/kb/delete.js +1 -1
- package/lib/commands/kb/detail.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/kb/list.js +1 -1
- package/lib/commands/kb/search.js +1 -1
- package/lib/commands/kb/shared.js +1 -1
- package/lib/commands/kb/update.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/asset-update.js +1 -1
- package/lib/commands/menu/delete.js +1 -1
- package/lib/commands/menu/external-link-create.js +1 -1
- package/lib/commands/menu/external-link-update.js +1 -1
- package/lib/commands/menu/group-create.js +1 -1
- package/lib/commands/menu/group-update.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/list.js +1 -1
- package/lib/commands/menu/move.js +1 -1
- package/lib/commands/menu/regroup-start.js +1 -1
- package/lib/commands/menu/rename.js +1 -1
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/delete-plan.js +1 -1
- package/lib/commands/menu/shared/facts.js +1 -1
- package/lib/commands/menu/shared/index.js +1 -1
- package/lib/commands/menu/shared/inquirer.js +1 -1
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.js +1 -1
- package/lib/commands/menu/shared/mutations.js +1 -1
- package/lib/commands/menu/shared/path.js +1 -1
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/subapp-assets.js +1 -1
- package/lib/commands/menu/shared/sync-core.js +1 -1
- package/lib/commands/menu/shared/update-core.js +1 -1
- package/lib/commands/menu/shared/valid-url.js +1 -1
- package/lib/commands/menu/subapp-assets-status.js +1 -1
- package/lib/commands/menu/subapp-assets-update.js +1 -1
- package/lib/commands/menu/sync.js +1 -1
- package/lib/commands/menu/visibility-update.js +1 -1
- package/lib/commands/notification/config-create.js +1 -1
- package/lib/commands/notification/config-delete.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/config-update.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/notification/shared.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/page/create.js +1 -1
- package/lib/commands/page/custom/detail.js +1 -1
- package/lib/commands/page/custom/list.js +1 -1
- package/lib/commands/page/custom/publish.js +1 -1
- package/lib/commands/page/custom/shared.js +1 -1
- package/lib/commands/page/custom/syntax.js +1 -1
- package/lib/commands/page/custom/update.js +1 -1
- package/lib/commands/page/data-list-status.js +1 -1
- package/lib/commands/page/generate-start.js +1 -1
- package/lib/commands/page/generate-status.js +1 -1
- package/lib/commands/page/index.js +1 -1
- package/lib/commands/page/pull.js +1 -1
- package/lib/commands/page/push.js +1 -1
- package/lib/commands/page/relation-audit.js +1 -1
- package/lib/commands/page/restore.js +1 -1
- package/lib/commands/page/shared.js +1 -1
- package/lib/commands/page/sync.js +1 -1
- package/lib/commands/project/api-architecture-upgrade.js +1 -1
- package/lib/commands/project/create/enhanced-guided-create.js +1 -1
- package/lib/commands/project/create/format-elapsed.js +1 -1
- package/lib/commands/project/create/main.js +1 -1
- package/lib/commands/project/create/materialize-project-template.js +1 -1
- package/lib/commands/project/create/project-name.js +1 -1
- package/lib/commands/project/create/project-template-archive.js +1 -1
- package/lib/commands/project/create/project-template-path.js +1 -1
- package/lib/commands/project/create/use-copy-project-template.js +1 -1
- package/lib/commands/project/create/use-format-code.js +1 -1
- package/lib/commands/project/create/use-install-dependencies.js +1 -1
- package/lib/commands/project/domain-routing-sync.js +1 -1
- package/lib/commands/project/index.js +1 -1
- package/lib/commands/project/upgrade.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/role/user-resolve.js +1 -1
- package/lib/commands/rule/get.js +1 -1
- package/lib/commands/rule/index.js +1 -1
- package/lib/commands/rule/list.js +1 -1
- package/lib/commands/rule/set.js +1 -1
- package/lib/commands/rule/shared.js +1 -1
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/sql/create.js +1 -1
- package/lib/commands/sql/delete.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/sql/list.js +1 -1
- package/lib/commands/sql/pull.js +1 -1
- package/lib/commands/sql/push.js +1 -1
- package/lib/commands/sql/shared.js +1 -1
- package/lib/commands/sql/status.js +1 -1
- package/lib/commands/sql/validate.js +1 -1
- package/lib/commands/task/index.js +1 -1
- package/lib/commands/task/status.js +1 -1
- package/lib/commands/tenant/index.js +1 -1
- package/lib/commands/tenant/members-list.js +1 -1
- package/lib/commands/tenant/shared.js +1 -1
- package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
- package/lib/commands/user-account/feishu-bind.js +1 -1
- package/lib/commands/user-account/index.js +1 -1
- package/lib/commands/workspace/add.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/commands/workspace/remove.js +1 -1
- package/lib/config/domain-config.js +1 -1
- package/lib/config/project-domain-routing.js +1 -1
- package/lib/config/region-config.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/cdn.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/paths.js +1 -1
- package/lib/constant/region.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/routing-profile.js +1 -1
- package/lib/context/app-resolver.js +1 -1
- package/lib/context/auth-resolver.js +1 -1
- package/lib/context/config-loader.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/bff/config.js +1 -1
- package/lib/core/bff/file-system.js +1 -1
- package/lib/core/bff/hash.js +1 -1
- package/lib/core/bff/hook-directory.js +1 -1
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/cross-db-relation.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/flow-config.js +1 -1
- package/lib/core/instant-api-policy/config.js +1 -1
- package/lib/core/kb-search-client.js +1 -1
- package/lib/core/page/file-system.js +1 -1
- package/lib/core/page/hash.js +1 -1
- package/lib/core/page/lock.js +1 -1
- package/lib/core/page/lr-smart-jsx.js +1 -1
- package/lib/core/sql-index-auditor.js +1 -1
- package/lib/core/sql-sync/config.js +1 -1
- package/lib/core/sql-sync/file-system.js +1 -1
- package/lib/core/sql-sync/hash.js +1 -1
- package/lib/core/sql-sync/lock.js +1 -1
- package/lib/core/sql-sync/utils.js +1 -1
- package/lib/core/sql-validator.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/error-output.js +1 -1
- package/lib/framework/explicit-yes.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-alias.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/supported-flags.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/generated/official-routing.js +1 -1
- package/lib/generated/routing-contract.js +1 -1
- package/lib/help.js +1 -1
- package/lib/postinstall.js +1 -1
- package/lib/runtime/confirmation.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/skills/builtin-skill.js +1 -1
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/skill-presence.js +1 -1
- package/lib/telemetry/cli-command-trace.js +1 -1
- package/lib/telemetry/cli-help-trace.js +1 -1
- package/lib/telemetry/ensure-cli-otel-config.js +1 -1
- package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
- package/lib/telemetry/send-cli-trace-log.js +1 -1
- package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
- package/lib/utils/ai_config.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cdn-config.js +1 -1
- package/lib/utils/check-sdk-version.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/config.js +1 -1
- package/lib/utils/entity-with-id.js +1 -1
- package/lib/utils/file-utils.js +1 -1
- package/lib/utils/guides-cdn.js +1 -1
- package/lib/utils/http-client.js +1 -1
- package/lib/utils/is-non-interactive.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/sleep.js +1 -1
- package/lib/utils/template-replacer.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/with-active-cookie.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +2 -1
- package/skills/rabetbase/SKILL.md +1 -1
- package/skills/rabetbase-page-generation/SKILL.md +35 -0
- package/skills/rabetbase-page-generation/references/component-baseline.md +18 -0
- package/skills/rabetbase-page-generation/references/generation.md +77 -0
- package/skills/rabetbase-page-generation/templates/onepage/build.mjs +63 -0
- package/skills/rabetbase-page-generation/templates/onepage/create/README.md +20 -0
- package/skills/rabetbase-page-generation/templates/onepage/create/index.jsx +4 -0
- package/skills/rabetbase-page-generation/templates/onepage/create/preview.png +0 -0
- package/skills/rabetbase-page-generation/templates/onepage/detail/README.md +20 -0
- package/skills/rabetbase-page-generation/templates/onepage/detail/index.jsx +194 -0
- package/skills/rabetbase-page-generation/templates/onepage/detail/preview.png +0 -0
- package/skills/rabetbase-page-generation/templates/onepage/list/README.md +20 -0
- package/skills/rabetbase-page-generation/templates/onepage/list/index.jsx +717 -0
- package/skills/rabetbase-page-generation/templates/onepage/list/preview.png +0 -0
- package/skills/rabetbase-page-generation/templates/onepage/shared/editor.jsx +395 -0
- package/skills/rabetbase-page-generation/templates/onepage/shared/model.js +141 -0
- package/skills/rabetbase-page-generation/templates/onepage/shared/page.css +377 -0
- package/skills/rabetbase-page-generation/templates/onepage/shared/record-layout.jsx +90 -0
- package/skills/rabetbase-page-generation/templates/onepage/shared/responsive.jsx +70 -0
- package/skills/rabetbase-page-generation/templates/onepage/update/README.md +21 -0
- package/skills/rabetbase-page-generation/templates/onepage/update/index.jsx +4 -0
- package/skills/rabetbase-page-generation/templates/onepage/update/preview.png +0 -0
- package/skills/rabetbase.manifest.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a111_0x7d9d08=a111_0x3d68;(function(_0x5f031d,_0x19ae99){const _0x35cb53=a111_0x3d68,_0x33e6ce=_0x5f031d();while(!![]){try{const _0xff9c10=parseInt(_0x35cb53(0xd5))/0x1+parseInt(_0x35cb53(0xe6))/0x2+-parseInt(_0x35cb53(0xdd))/0x3*(-parseInt(_0x35cb53(0xda))/0x4)+-parseInt(_0x35cb53(0xcb))/0x5+parseInt(_0x35cb53(0xd4))/0x6+parseInt(_0x35cb53(0xdf))/0x7*(parseInt(_0x35cb53(0xdc))/0x8)+parseInt(_0x35cb53(0xdb))/0x9*(-parseInt(_0x35cb53(0xde))/0xa);if(_0xff9c10===_0x19ae99)break;else _0x33e6ce['push'](_0x33e6ce['shift']());}catch(_0x51c105){_0x33e6ce['push'](_0x33e6ce['shift']());}}}(a111_0x201c,0xa4125));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{asDryRunResult}from'../../commands/common/dry-run.js';import{isPlatformTransportFailure,submitDeploymentMetadataSyncAll}from'../../core/api-client.js';import{CliError,CliErrors}from'../../errors.js';function a111_0x3d68(_0xd9520b,_0x389453){_0xd9520b=_0xd9520b-0xc4;const _0x201ce2=a111_0x201c();let _0x3d6893=_0x201ce2[_0xd9520b];return _0x3d6893;}const SUBMIT_PATH=a111_0x7d9d08(0xe9),CONFIRM_FLAG={'name':'confirm','type':a111_0x7d9d08(0xd7),'description':a111_0x7d9d08(0xc4)};export const deploymentSyncAll={'service':'deployment','command':'sync-all','description':a111_0x7d9d08(0xd9),'risk':a111_0x7d9d08(0xd8),'strictFlags':!![],'structuredErrors':!![],'confirmationDescription':'Submit\x20an\x20administrative\x20metadata\x20backfill\x20or\x20recovery\x20synchronization.','flags':[CONFIRM_FLAG,APPCODE_FLAG_OPTIONAL],async 'dryRun'(_0x1257f6){const _0x23c8c7=a111_0x7d9d08;return asDryRunResult(buildPreview(_0x1257f6[_0x23c8c7(0xd3)]),{'method':_0x23c8c7(0xd6),'url':SUBMIT_PATH,'description':_0x23c8c7(0xe5)});},async 'execute'(_0x19dfc5){const _0x2df18e=a111_0x7d9d08;if(!_0x19dfc5[_0x2df18e(0xcd)](_0x2df18e(0xc9)))throw CliErrors[_0x2df18e(0xe0)](_0x2df18e(0xc8),_0x2df18e(0xc7));try{const _0x51dc1f=await submitDeploymentMetadataSyncAll({'appCode':_0x19dfc5[_0x2df18e(0xd3)]});if(_0x51dc1f[_0x2df18e(0xd2)]===_0x2df18e(0xd1))return{'ok':!![],'data':{'operation':'application_deployment_sync','appCode':_0x19dfc5[_0x2df18e(0xd3)],'submitted':![],'outcome':_0x2df18e(0xd1)},'message':_0x2df18e(0xd0)};return{'ok':!![],'data':{'operation':_0x2df18e(0xe3),'appCode':_0x19dfc5[_0x2df18e(0xd3)],'submitted':!![],'outcome':_0x2df18e(0xe4),'jobId':_0x51dc1f[_0x2df18e(0xe8)][_0x2df18e(0xc6)],'status':_0x51dc1f[_0x2df18e(0xe8)]['status']},'message':_0x2df18e(0xca)+_0x51dc1f['job'][_0x2df18e(0xc6)]+'.'};}catch(_0x297dd8){if(!isPlatformTransportFailure(_0x297dd8))throw _0x297dd8;const _0x40ddaa=new CliError(_0x2df18e(0xce),0x2,_0x2df18e(0xc5),_0x2df18e(0xcf));Object[_0x2df18e(0xe1)](_0x40ddaa,'data',{'enumerable':!![],'value':{'operation':'application_deployment_sync','appCode':_0x19dfc5[_0x2df18e(0xd3)],'submitted':null,'outcome':_0x2df18e(0xe7)}});throw _0x40ddaa;}}};function a111_0x201c(){const _0x5b3d6f=['POST','boolean','write','Backfill\x20or\x20recover\x20all\x20server-supported\x20application\x20metadata','588248kvhXoX','99pfxdFE','8ZFVVVg','27AXzuOd','2907410lYHGhj','7509474hyakUB','validation','defineProperty','not_submitted','application_deployment_sync','submitted','Would\x20submit\x20an\x20administrative\x20deployment\x20metadata\x20backfill\x20or\x20recovery\x20job.','1383876clgSKK','unknown','job','/smartapi/data-sync/submit','Confirm\x20the\x20administrative\x20backfill\x20or\x20recovery\x20synchronization','Deployment\x20sync\x20submission\x20response\x20was\x20unavailable;\x20job\x20creation\x20is\x20unknown.','jobId','Run\x20with\x20--dry-run\x20first,\x20then\x20add\x20--confirm.','--confirm\x20is\x20required\x20to\x20synchronize\x20all\x20application\x20metadata.','confirm','Submitted\x20deployment\x20synchronization\x20job\x20','6063220LLhYJg','all_server_supported_metadata','bool','deployment_sync_submit_outcome_unknown','List\x20recent\x20deployment\x20sync\x20jobs\x20before\x20deciding\x20whether\x20to\x20submit\x20again.','No\x20deployment\x20synchronization\x20was\x20needed\x20for\x20this\x20app.','not_needed','outcome','appCode','6376644IAcbnW','931780qHplFm'];a111_0x201c=function(){return _0x5b3d6f;};return a111_0x201c();}function buildPreview(_0x3dbfef){const _0x2b6e4e=a111_0x7d9d08;return{'operation':_0x2b6e4e(0xe3),'selector':{'appCode':_0x3dbfef,'scope':_0x2b6e4e(0xcc)},'before':null,'after':null,'dryRun':!![],'backend':{'submitted':![],'outcome':_0x2b6e4e(0xe2)},'warnings':[]};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a112_0x2a98(){const _0x48096a=['18239166yjAcaq','num','str','Page\x20number','234YkLCYR','string','Optional\x20server-defined\x20job\x20status\x20filter','249848vdNHPC','11183977KKPEWo','\x20deployment\x20synchronization\x20job(s).','4fXAKaM','11087040ZrVPrk','54iePvAu','--current-page\x20must\x20be\x20a\x20positive\x20integer.','sync-jobs','length','2619363oAocqH','appCode','527535wwSOOU','page-size','2ASHtnX','1118007mIwCOP','items','Found\x20','status','deployment','validation','isSafeInteger','current-page','Items\x20per\x20page\x20(maximum\x20100)'];a112_0x2a98=function(){return _0x48096a;};return a112_0x2a98();}const a112_0x27a691=a112_0x468a;function a112_0x468a(_0x1340ad,_0x532bbe){_0x1340ad=_0x1340ad-0x11f;const _0x2a9865=a112_0x2a98();let _0x468a89=_0x2a9865[_0x1340ad];return _0x468a89;}(function(_0x41aeeb,_0x58a999){const _0x42629a=a112_0x468a,_0x4f995c=_0x41aeeb();while(!![]){try{const _0xc763c2=parseInt(_0x42629a(0x130))/0x1*(-parseInt(_0x42629a(0x12f))/0x2)+-parseInt(_0x42629a(0x12b))/0x3*(parseInt(_0x42629a(0x125))/0x4)+-parseInt(_0x42629a(0x12d))/0x5*(-parseInt(_0x42629a(0x127))/0x6)+-parseInt(_0x42629a(0x123))/0x7+parseInt(_0x42629a(0x122))/0x8*(parseInt(_0x42629a(0x11f))/0x9)+parseInt(_0x42629a(0x126))/0xa+parseInt(_0x42629a(0x139))/0xb;if(_0xc763c2===_0x58a999)break;else _0x4f995c['push'](_0x4f995c['shift']());}catch(_0x345ee4){_0x4f995c['push'](_0x4f995c['shift']());}}}(a112_0x2a98,0xe5614));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{listDeploymentMetadataSyncJobs}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';export const deploymentSyncJobs={'service':a112_0x27a691(0x134),'command':a112_0x27a691(0x129),'description':'List\x20application\x20deployment\x20synchronization\x20jobs','risk':'read','strictFlags':!![],'structuredErrors':!![],'flags':[{'name':'current-page','type':'number','default':0x1,'description':a112_0x27a691(0x13c)},{'name':a112_0x27a691(0x12e),'type':'number','default':0xa,'description':a112_0x27a691(0x138)},{'name':a112_0x27a691(0x133),'type':a112_0x27a691(0x120),'description':a112_0x27a691(0x121)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x4b0a99){const _0xe17193=a112_0x27a691;readPaging(_0x4b0a99[_0xe17193(0x13a)]('current-page',0x1),_0x4b0a99[_0xe17193(0x13a)](_0xe17193(0x12e),0xa));},async 'execute'(_0x47bd29){const _0x248b68=a112_0x27a691,{currentPage:_0x5e39ed,pageSize:_0xad440c}=readPaging(_0x47bd29[_0x248b68(0x13a)](_0x248b68(0x137),0x1),_0x47bd29[_0x248b68(0x13a)]('page-size',0xa)),_0x4ec45e=_0x47bd29[_0x248b68(0x13b)](_0x248b68(0x133))['trim'](),_0x3aca8c=await listDeploymentMetadataSyncJobs({'appCode':_0x47bd29['appCode'],'currentPage':_0x5e39ed,'pageSize':_0xad440c,..._0x4ec45e?{'status':_0x4ec45e}:{}});return{'ok':!![],'data':{'appCode':_0x47bd29[_0x248b68(0x12c)],..._0x3aca8c},'message':_0x248b68(0x132)+_0x3aca8c[_0x248b68(0x131)][_0x248b68(0x12a)]+_0x248b68(0x124)};}};function readPaging(_0x1a89ef,_0x5de743){const _0x2e2a9c=a112_0x27a691;if(!Number[_0x2e2a9c(0x136)](_0x1a89ef)||_0x1a89ef<0x1)throw CliErrors[_0x2e2a9c(0x135)](_0x2e2a9c(0x128));if(!Number['isSafeInteger'](_0x5de743)||_0x5de743<0x1||_0x5de743>0x64)throw CliErrors[_0x2e2a9c(0x135)]('--page-size\x20must\x20be\x20an\x20integer\x20from\x201\x20to\x20100.');return{'currentPage':_0x1a89ef,'pageSize':_0x5de743};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a113_0x454b(_0x24bc70,_0x42992f){_0x24bc70=_0x24bc70-0x1af;const _0x63fdcf=a113_0x63fd();let _0x454bd2=_0x63fdcf[_0x24bc70];return _0x454bd2;}const a113_0x5f53ee=a113_0x454b;(function(_0x7a7779,_0x314366){const _0x260a6d=a113_0x454b,_0x36aeca=_0x7a7779();while(!![]){try{const _0x5a8b29=-parseInt(_0x260a6d(0x1b7))/0x1+-parseInt(_0x260a6d(0x1b8))/0x2*(-parseInt(_0x260a6d(0x1bd))/0x3)+parseInt(_0x260a6d(0x1b2))/0x4+parseInt(_0x260a6d(0x1c6))/0x5*(-parseInt(_0x260a6d(0x1cb))/0x6)+-parseInt(_0x260a6d(0x1ca))/0x7*(-parseInt(_0x260a6d(0x1c0))/0x8)+-parseInt(_0x260a6d(0x1be))/0x9+parseInt(_0x260a6d(0x1bf))/0xa;if(_0x5a8b29===_0x314366)break;else _0x36aeca['push'](_0x36aeca['shift']());}catch(_0x59c151){_0x36aeca['push'](_0x36aeca['shift']());}}}(a113_0x63fd,0x1ca22));import{getDeploymentMetadataSyncStatus}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const TERMINAL_STATUSES=new Set([a113_0x5f53ee(0x1cc),a113_0x5f53ee(0x1b3),a113_0x5f53ee(0x1c1)]),ACTIVE_STATUSES=new Set(['PENDING',a113_0x5f53ee(0x1b0)]);export const deploymentSyncStatus={'service':a113_0x5f53ee(0x1c5),'command':'sync-status','description':'Get\x20application\x20deployment\x20synchronization\x20job\x20status','risk':a113_0x5f53ee(0x1c4),'requiresAppCode':!![],'strictFlags':!![],'structuredErrors':!![],'flags':[{'name':a113_0x5f53ee(0x1ba),'type':a113_0x5f53ee(0x1bc),'required':!![],'description':'Deployment\x20synchronization\x20job\x20ID'}],async 'validate'(_0xc05a51){const _0x1f93c6=a113_0x5f53ee;readJobId(_0xc05a51['num'](_0x1f93c6(0x1ba)));},async 'execute'(_0x2319ab){const _0x2faf49=a113_0x5f53ee,_0x315731=readJobId(_0x2319ab[_0x2faf49(0x1c7)](_0x2faf49(0x1ba))),_0x3bb64d=await getDeploymentMetadataSyncStatus({'jobId':_0x315731,'appCode':_0x2319ab[_0x2faf49(0x1b6)]}),_0x5ce4f4=TERMINAL_STATUSES[_0x2faf49(0x1c9)](_0x3bb64d['status'])?!![]:ACTIVE_STATUSES['has'](_0x3bb64d[_0x2faf49(0x1b1)])?![]:null,_0x48f382=countBy(_0x3bb64d[_0x2faf49(0x1b9)][_0x2faf49(0x1ce)](_0x260c00=>_0x260c00['bizType'])),_0x5e507b=countBy(_0x3bb64d[_0x2faf49(0x1b9)][_0x2faf49(0x1ce)](_0x4a8b11=>_0x4a8b11['action'])),_0x1dc813=_0x5ce4f4===null?['Preserved\x20server-defined\x20status\x20'+_0x3bb64d[_0x2faf49(0x1b1)]+_0x2faf49(0x1cd)]:[];return{'ok':!![],'data':{'job':_0x3bb64d,'isTerminal':_0x5ce4f4,'summary':{'total':_0x3bb64d[_0x2faf49(0x1b9)][_0x2faf49(0x1b4)],'failed':_0x3bb64d[_0x2faf49(0x1b9)][_0x2faf49(0x1af)](_0x2d7d7a=>_0x2d7d7a[_0x2faf49(0x1c2)]===_0x2faf49(0x1c1))[_0x2faf49(0x1b4)],'byBizType':_0x48f382,'byAction':_0x5e507b},'warnings':_0x1dc813},'message':'Deployment\x20synchronization\x20job\x20'+_0x315731+_0x2faf49(0x1bb)+_0x3bb64d[_0x2faf49(0x1b1)]+'.'};}};function readJobId(_0x579fa2){const _0x1a693c=a113_0x5f53ee;if(!Number[_0x1a693c(0x1b5)](_0x579fa2)||_0x579fa2<=0x0)throw CliErrors[_0x1a693c(0x1c3)](_0x1a693c(0x1c8));return _0x579fa2;}function countBy(_0x25803e){return _0x25803e['reduce']((_0x4bd389,_0x436343)=>{return _0x4bd389[_0x436343]=(_0x4bd389[_0x436343]??0x0)+0x1,_0x4bd389;},{});}function a113_0x63fd(){const _0x2592eb=['validation','read','deployment','5DWEEnj','num','--job-id\x20must\x20be\x20a\x20positive\x20integer.','has','450667qlEzkJ','1238298NnnUkP','SUCCESS',';\x20terminal\x20state\x20is\x20unknown\x20to\x20this\x20CLI\x20version.','map','filter','RUNNING','status','603752hzJYmD','PARTIAL_SUCCESS','length','isSafeInteger','appCode','80285zrHkWL','4RBcyjV','results','job-id','\x20is\x20','number','249783jAvbdR','1268433wYGMiT','1630460caEqDU','8FOpbHl','FAILED','action'];a113_0x63fd=function(){return _0x2592eb;};return a113_0x63fd();}
|
package/lib/commands/doctor.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a114_0x36dcb7=a114_0xb0fd;(function(_0x371195,_0x1df76c){const _0x315acf=a114_0xb0fd,_0x3696f7=_0x371195();while(!![]){try{const _0xef3fa1=-parseInt(_0x315acf(0xc0))/0x1+-parseInt(_0x315acf(0x107))/0x2+parseInt(_0x315acf(0x125))/0x3+-parseInt(_0x315acf(0x138))/0x4*(parseInt(_0x315acf(0xbc))/0x5)+-parseInt(_0x315acf(0xb7))/0x6+parseInt(_0x315acf(0xf7))/0x7+parseInt(_0x315acf(0xbb))/0x8;if(_0xef3fa1===_0x1df76c)break;else _0x3696f7['push'](_0x3696f7['shift']());}catch(_0x1f9297){_0x3696f7['push'](_0x3696f7['shift']());}}}(a114_0x3454,0xa0e45));import a114_0x2eff46 from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';import{getActiveRegion,getApiDomain,getAppDomain,getKbDomain,getKbServiceDomain,getSkillDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags,initGlobalEnvironment,inspectCliConfigJsonFile,loadRawConfigLayers}from'../context.js';import{getIsSessionValid}from'../auth/is-session-valid.js';import{getCookie}from'../auth/get-cookie.js';function a114_0xb0fd(_0x293ff3,_0x545bc2){_0x293ff3=_0x293ff3-0xae;const _0x34543a=a114_0x3454();let _0xb0fdf3=_0x34543a[_0x293ff3];return _0xb0fdf3;}import{buildAppDoctorFields}from'../config/schema.js';import{resolveEffectiveRegion}from'../config/region-config.js';function a114_0x3454(){const _0x5856d7=['Repair\x20','bold','(set,\x20length=','✗\x20Invalid\x20JSON','\x20\x20kbDomain:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','packageVersion','globalConfig','env','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','explicitAppName','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','(not\x20found)','\x20\x20Routing\x20Configuration','reason','\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','prototype','6673499WvvwWw','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Config\x20Files','arch','\x20config\x20delete\x20region\x20--global','\x20+\x20','\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','format','green','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(default)','value','\x20doctor','\x20config','global','✓\x20Valid','544570iTGEWr','padEnd','\x20\x20Auth','\x20\x20API\x20Endpoints','object','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','version','raw','yellow','\x20\x20Skill\x20Version:\x20\x20\x20','✗\x20Expired','ignored\x20in\x20','stringify','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','toLowerCase','✗\x20Invalid\x20','message','skillVersion','\x20\x20appDomain:\x20\x20\x20\x20\x20\x20\x20','Set\x20apps.','\x20config\x20delete\x20routing','appCode','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','pageSize','\x20\x20Config\x20JSON','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','\x20config\x20delete\x20inherit','(set\x20via\x20file,\x20length=','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','1654131QgKWYK','\x20\x20Repair\x20project:\x20\x20','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','state','label','✗\x20Invalid','current','Not\x20checked\x20until\x20routing\x20configuration\x20is\x20repaired','region','\x20config\x20delete\x20inherit\x20--global','\x20\x20Repair\x20global:\x20\x20\x20','hasOwnProperty','\x20\x20Package\x20Version:\x20','apps','currentApp','red','\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','✓\x20Valid\x20JSON','\x20\x20Repair\x20global:\x20\x20\x20\x20','56520idxyqR','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','\x20app\x20\x22','verbose','empty','routing','cookie','appcode','platform','source','2194362gLGBkP','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','call','(none)','12679136wVpCEZ','295OcRHli','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','regionConfiguredValue','unknown','958931ttATtt','projectConfig','riskLevel','status','\x20\x20skillDomain:\x20\x20\x20\x20\x20','installedPath','(default:\x20','length','Project','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','accessKey','default','\x20\x20Installed\x20Path:\x20\x20','apiDir','check','regionSource','defaultApp','slice','repeat','\x20\x20kbServiceDomain:\x20','inherit','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','log','locale','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','Global','includes','filter','\x20\x20runtimeDomain:\x20\x20\x20','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','(no\x20file)','string','\x20\x20─','gray','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20app\x20locale:\x20\x20\x20\x20\x20\x20','repairCommand','\x20(invalid)'];a114_0x3454=function(){return _0x5856d7;};return a114_0x3454();}import{inspectBuiltinSkill}from'../skills/builtin-skill.js';import{DEFAULT_LOVRABET_REGION,isInvalidLovrabetRegion}from'../constant/region.js';function describeRegionValue(_0x261b63){const _0x5d0faf=a114_0xb0fd;return typeof _0x261b63===_0x5d0faf(0xdf)?JSON[_0x5d0faf(0x113)](_0x261b63):'<'+(_0x261b63===null?'null':typeof _0x261b63)+'>';}async function execute(_0x3c9b51){const _0x5d34c4=a114_0xb0fd,_0xdf8624=GIT_COMMIT!==_0x5d34c4(0xbf)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x5d34c4(0xd1)](0x0,0xa)+')':VERSION,_0x52db83=buildConfigFromFlags({}),_0x163e55=getCookie();let _0x5f2c9f;try{await initGlobalEnvironment(_0x52db83);}catch(_0x38ec28){_0x5f2c9f=_0x38ec28 instanceof Error?_0x38ec28:new Error(String(_0x38ec28));}console[_0x5d34c4(0xd6)](),console[_0x5d34c4(0xd6)](a114_0x2eff46[_0x5d34c4(0xe7)](CLI_BIN_NAME+_0x5d34c4(0x103))),console[_0x5d34c4(0xd6)](a114_0x2eff46[_0x5d34c4(0xe1)]('─'[_0x5d34c4(0xd2)](0x32))),console[_0x5d34c4(0xd6)](_0x5d34c4(0xbd)+_0xdf8624),console[_0x5d34c4(0xd6)]('\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+process[_0x5d34c4(0x10d)]),console[_0x5d34c4(0xd6)](_0x5d34c4(0xd5)+process[_0x5d34c4(0xb5)]+'\x20'+process[_0x5d34c4(0xfa)]);const _0x34ce3b=inspectBuiltinSkill();console[_0x5d34c4(0xd6)](),console['log'](a114_0x2eff46['bold']('\x20\x20Built-in\x20Skill')),console[_0x5d34c4(0xd6)](a114_0x2eff46[_0x5d34c4(0xe1)]('\x20\x20─'[_0x5d34c4(0xd2)](0x1e)));const _0x2c8ca7=_0x34ce3b[_0x5d34c4(0x128)]===_0x5d34c4(0x12b)?a114_0x2eff46['green']('✓\x20'+_0x34ce3b[_0x5d34c4(0x128)]):a114_0x2eff46[_0x5d34c4(0x134)]('✗\x20'+_0x34ce3b[_0x5d34c4(0x128)]);console[_0x5d34c4(0xd6)]('\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x2c8ca7),console[_0x5d34c4(0xd6)](_0x5d34c4(0x131)+_0x34ce3b[_0x5d34c4(0xec)]),console[_0x5d34c4(0xd6)](_0x5d34c4(0x110)+(_0x34ce3b[_0x5d34c4(0x118)]||a114_0x2eff46[_0x5d34c4(0xe1)]('(unknown)'))),console['log'](_0x5d34c4(0xcc)+(_0x34ce3b[_0x5d34c4(0xc5)]||a114_0x2eff46[_0x5d34c4(0xe1)]('(not\x20found)')));if(_0x34ce3b[_0x5d34c4(0xf4)])console[_0x5d34c4(0xd6)](_0x5d34c4(0xfd)+_0x34ce3b[_0x5d34c4(0xf4)]);_0x34ce3b[_0x5d34c4(0x128)]!==_0x5d34c4(0x12b)&&console['log'](_0x5d34c4(0x135)+_0x34ce3b[_0x5d34c4(0xe4)]);console['log'](),console['log'](a114_0x2eff46[_0x5d34c4(0xe7)](_0x5d34c4(0xf9))),console[_0x5d34c4(0xd6)](a114_0x2eff46[_0x5d34c4(0xe1)](_0x5d34c4(0xe0)['repeat'](0x1e)));const _0x49658e=getGlobalConfigPath(),_0x54cb9c=getProjectConfigPath();console[_0x5d34c4(0xd6)](_0x5d34c4(0xf8)+(_0x49658e||a114_0x2eff46[_0x5d34c4(0xe1)](_0x5d34c4(0xf2)))),console[_0x5d34c4(0xd6)](_0x5d34c4(0xe2)+(_0x54cb9c||a114_0x2eff46['gray'](_0x5d34c4(0xf2)))),console[_0x5d34c4(0xd6)](),console[_0x5d34c4(0xd6)](a114_0x2eff46[_0x5d34c4(0xe7)](_0x5d34c4(0x11f))),console[_0x5d34c4(0xd6)](a114_0x2eff46[_0x5d34c4(0xe1)]('\x20\x20─'[_0x5d34c4(0xd2)](0x1e)));const _0x3a3bbf=(_0x2bbd49,_0x3dc5a3)=>{const _0x3a558b=_0x5d34c4;if(!_0x3dc5a3){console['log']('\x20\x20'+_0x2bbd49[_0x3a558b(0x108)](0x11)+'\x20'+a114_0x2eff46[_0x3a558b(0xe1)](_0x3a558b(0xde)));return;}const _0x49af67=inspectCliConfigJsonFile(_0x3dc5a3);if(_0x49af67[_0x3a558b(0xc3)]==='ok')console[_0x3a558b(0xd6)]('\x20\x20'+_0x2bbd49[_0x3a558b(0x108)](0x11)+'\x20'+a114_0x2eff46[_0x3a558b(0xff)](_0x3a558b(0x136)));else{if(_0x49af67[_0x3a558b(0xc3)]===_0x3a558b(0xb1))console[_0x3a558b(0xd6)]('\x20\x20'+_0x2bbd49[_0x3a558b(0x108)](0x11)+'\x20'+a114_0x2eff46[_0x3a558b(0x10f)]('⚠\x20Empty\x20(treated\x20as\x20{})'));else _0x49af67['status']==='missing'?console[_0x3a558b(0xd6)]('\x20\x20'+_0x2bbd49['padEnd'](0x11)+'\x20'+a114_0x2eff46[_0x3a558b(0xe1)]('(missing)')):(console['log']('\x20\x20'+_0x2bbd49[_0x3a558b(0x108)](0x11)+'\x20'+a114_0x2eff46[_0x3a558b(0x134)](_0x3a558b(0xe9))),console[_0x3a558b(0xd6)]('\x20\x20'+''[_0x3a558b(0x108)](0x11)+'\x20'+a114_0x2eff46[_0x3a558b(0x134)](_0x49af67[_0x3a558b(0x117)])));}};_0x3a3bbf(_0x5d34c4(0xd9),_0x49658e),_0x3a3bbf(_0x5d34c4(0xc8),_0x54cb9c);const _0x150f2b=loadRawConfigLayers(),_0xc1eaff=[{'label':'Project','value':_0x150f2b[_0x5d34c4(0xc1)]['region'],'present':Object['prototype']['hasOwnProperty'][_0x5d34c4(0xb9)](_0x150f2b[_0x5d34c4(0xc1)],_0x5d34c4(0x12d)),'repairCommand':CLI_BIN_NAME+'\x20config\x20delete\x20region'},{'label':'Global','value':_0x150f2b[_0x5d34c4(0xed)][_0x5d34c4(0x12d)],'present':Object[_0x5d34c4(0xf6)][_0x5d34c4(0x130)][_0x5d34c4(0xb9)](_0x150f2b[_0x5d34c4(0xed)],_0x5d34c4(0x12d)),'repairCommand':CLI_BIN_NAME+_0x5d34c4(0xfb)}][_0x5d34c4(0xdb)](_0x397d28=>_0x397d28['present']&&isInvalidLovrabetRegion(_0x397d28['value']));for(const [_0x300ea4,_0x44f238]of[[_0x5d34c4(0xc8),_0x150f2b[_0x5d34c4(0xc1)]],[_0x5d34c4(0xd9),_0x150f2b[_0x5d34c4(0xed)]]]){const _0x52c9e4=_0x44f238['apps']&&typeof _0x44f238[_0x5d34c4(0x132)]===_0x5d34c4(0x10b)?_0x44f238[_0x5d34c4(0x132)]:{};for(const [_0x5ab336,_0x565353]of Object['entries'](_0x52c9e4)){if(!_0x565353||typeof _0x565353!==_0x5d34c4(0x10b)||!Object['prototype']['hasOwnProperty']['call'](_0x565353,'region'))continue;isInvalidLovrabetRegion(_0x565353[_0x5d34c4(0x12d)])&&_0xc1eaff['push']({'label':_0x300ea4+_0x5d34c4(0xaf)+_0x5ab336+'\x22','value':_0x565353[_0x5d34c4(0x12d)],'present':!![],'repairCommand':_0x5d34c4(0x11a)+_0x5ab336+'.region\x20to\x20cn\x20or\x20id\x20in\x20'+_0x300ea4[_0x5d34c4(0x115)]()+_0x5d34c4(0x104)});}}if(_0xc1eaff[_0x5d34c4(0xc7)]>0x0){console['log'](),console['log'](a114_0x2eff46[_0x5d34c4(0xe7)]('\x20\x20Country/Region\x20Configuration')),console[_0x5d34c4(0xd6)](a114_0x2eff46['gray'](_0x5d34c4(0xe0)['repeat'](0x1e)));for(const _0x43ddf1 of _0xc1eaff){console[_0x5d34c4(0xd6)]('\x20\x20'+_0x43ddf1[_0x5d34c4(0x129)][_0x5d34c4(0x108)](0x11)+'\x20'+a114_0x2eff46[_0x5d34c4(0x134)](_0x5d34c4(0x116)+describeRegionValue(_0x43ddf1[_0x5d34c4(0x102)]))),console[_0x5d34c4(0xd6)]('\x20\x20'+(_0x5d34c4(0xe6)+_0x43ddf1[_0x5d34c4(0x129)][_0x5d34c4(0x115)]()+':')[_0x5d34c4(0x108)](0x10)+'\x20'+_0x43ddf1[_0x5d34c4(0xe4)]);}}const _0xfd1b89=[Object[_0x5d34c4(0xf6)][_0x5d34c4(0x130)][_0x5d34c4(0xb9)](_0x150f2b['globalConfig'],_0x5d34c4(0xd4))?_0x5d34c4(0x105):null,Object[_0x5d34c4(0xf6)]['hasOwnProperty'][_0x5d34c4(0xb9)](_0x150f2b[_0x5d34c4(0xc1)],'inherit')?'project':null][_0x5d34c4(0xdb)](Boolean);_0xfd1b89[_0x5d34c4(0xc7)]>0x0&&(console[_0x5d34c4(0xd6)]('\x20\x20Legacy\x20inherit:\x20\x20\x20'+a114_0x2eff46[_0x5d34c4(0x10f)](_0x5d34c4(0x112)+_0xfd1b89['join'](_0x5d34c4(0xfc))+_0x5d34c4(0x104))),_0xfd1b89[_0x5d34c4(0xda)]('project')&&console[_0x5d34c4(0xd6)]('\x20\x20Repair\x20project:\x20\x20\x20'+CLI_BIN_NAME+_0x5d34c4(0x122)),_0xfd1b89[_0x5d34c4(0xda)](_0x5d34c4(0x105))&&console[_0x5d34c4(0xd6)](_0x5d34c4(0x137)+CLI_BIN_NAME+_0x5d34c4(0x12e)));const _0x4b9096=isInvalidLovrabetRegion(_0x52db83['regionConfiguredValue']??_0x52db83[_0x5d34c4(0x10e)]?.[_0x5d34c4(0x12d)]);_0x5f2c9f&&!_0x4b9096&&(console[_0x5d34c4(0xd6)](),console['log'](a114_0x2eff46[_0x5d34c4(0xe7)](_0x5d34c4(0xf3))),console['log'](a114_0x2eff46[_0x5d34c4(0xe1)](_0x5d34c4(0xe0)['repeat'](0x1e))),console[_0x5d34c4(0xd6)](_0x5d34c4(0x127)+a114_0x2eff46[_0x5d34c4(0x134)](_0x5d34c4(0x12a))),console[_0x5d34c4(0xd6)](_0x5d34c4(0xfd)+_0x5f2c9f['message']),Object[_0x5d34c4(0xf6)][_0x5d34c4(0x130)][_0x5d34c4(0xb9)](_0x150f2b[_0x5d34c4(0xc1)],_0x5d34c4(0xb2))&&console[_0x5d34c4(0xd6)](_0x5d34c4(0x126)+CLI_BIN_NAME+_0x5d34c4(0x11b)),Object['prototype'][_0x5d34c4(0x130)][_0x5d34c4(0xb9)](_0x150f2b[_0x5d34c4(0xed)],_0x5d34c4(0xb2))&&console[_0x5d34c4(0xd6)](_0x5d34c4(0x12f)+CLI_BIN_NAME+'\x20config\x20delete\x20routing\x20--global'));console[_0x5d34c4(0xd6)](),console[_0x5d34c4(0xd6)](a114_0x2eff46[_0x5d34c4(0xe7)]('\x20\x20Merged\x20Config')),console[_0x5d34c4(0xd6)](a114_0x2eff46[_0x5d34c4(0xe1)]('\x20\x20─'[_0x5d34c4(0xd2)](0x1e))),console['log'](_0x5d34c4(0xd8)+(_0x52db83[_0x5d34c4(0x11c)]||a114_0x2eff46[_0x5d34c4(0x134)]('(not\x20set)')));const _0x46a5f7=_0x4b9096?a114_0x2eff46[_0x5d34c4(0x134)](describeRegionValue(_0x52db83[_0x5d34c4(0xbe)]??_0x52db83[_0x5d34c4(0x10e)]?.['region'])+_0x5d34c4(0xe5)):(_0x52db83['region']??DEFAULT_LOVRABET_REGION)+'\x20('+(_0x52db83[_0x5d34c4(0xcf)]??_0x5d34c4(0xcb))+')';console[_0x5d34c4(0xd6)]('\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x46a5f7),console[_0x5d34c4(0xd6)](_0x5d34c4(0x100)+_0x52db83['env']),console[_0x5d34c4(0xd6)](_0x5d34c4(0xe3)+_0x52db83[_0x5d34c4(0xd7)]),console[_0x5d34c4(0xd6)](_0x5d34c4(0x10c)+_0x52db83[_0x5d34c4(0xcd)]),console['log'](_0x5d34c4(0x114)+(_0x52db83[_0x5d34c4(0xd0)]||a114_0x2eff46['gray'](_0x5d34c4(0xba)))),console['log'](_0x5d34c4(0xae)+(_0x52db83[_0x5d34c4(0x133)]||a114_0x2eff46[_0x5d34c4(0xe1)](_0x5d34c4(0xba)))),console['log']('\x20\x20explicitAppName:\x20'+(_0x52db83[_0x5d34c4(0xf0)]||a114_0x2eff46[_0x5d34c4(0xe1)](_0x5d34c4(0xba)))),console[_0x5d34c4(0xd6)](_0x5d34c4(0x11d)+(_0x52db83[_0x5d34c4(0xfe)]||a114_0x2eff46[_0x5d34c4(0xe1)](_0x5d34c4(0xc6)+DEFAULT_CONFIG_VALUES['format']+')'))),console[_0x5d34c4(0xd6)]('\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x52db83[_0x5d34c4(0x11e)]??a114_0x2eff46[_0x5d34c4(0xe1)](_0x5d34c4(0x101)))),console['log'](_0x5d34c4(0x121)+_0x52db83[_0x5d34c4(0xc2)]),console[_0x5d34c4(0xd6)](_0x5d34c4(0xf1)+_0x52db83[_0x5d34c4(0xb0)]),console[_0x5d34c4(0xd6)]('\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x52db83[_0x5d34c4(0xb3)]?a114_0x2eff46['green'](_0x5d34c4(0xe8)+_0x52db83[_0x5d34c4(0xb3)][_0x5d34c4(0xc7)]+')'):_0x163e55?a114_0x2eff46[_0x5d34c4(0xff)](_0x5d34c4(0x123)+_0x163e55['length']+')'):a114_0x2eff46[_0x5d34c4(0xe1)](_0x5d34c4(0xba))));const _0x3cb2e8=Object['keys'](_0x52db83[_0x5d34c4(0x132)]);if(_0x3cb2e8[_0x5d34c4(0xc7)]>0x0){console[_0x5d34c4(0xd6)](),console[_0x5d34c4(0xd6)](a114_0x2eff46[_0x5d34c4(0xe7)]('\x20\x20Apps')),console[_0x5d34c4(0xd6)](a114_0x2eff46['gray']('\x20\x20─'[_0x5d34c4(0xd2)](0x1e)));for(const _0x5e3260 of _0x3cb2e8){const _0x3d3d70=_0x52db83[_0x5d34c4(0x132)][_0x5e3260],_0x4a2b3a=_0x5e3260===_0x52db83[_0x5d34c4(0xd0)],_0x1e90c4=_0x5e3260===_0x52db83[_0x5d34c4(0x133)],_0x181d1f=_0x1e90c4?a114_0x2eff46[_0x5d34c4(0xff)]('\x20←\x20current'):'',_0x36e61c=_0x4a2b3a?'\x20(default)':'';console[_0x5d34c4(0xd6)]('\x20\x20'+_0x5e3260+_0x36e61c+_0x181d1f),console['log'](_0x5d34c4(0x120)+_0x3d3d70[_0x5d34c4(0xb4)]);const _0x39d5fe=_0x150f2b['projectConfig'][_0x5d34c4(0x132)]&&typeof _0x150f2b[_0x5d34c4(0xc1)]['apps']===_0x5d34c4(0x10b)?_0x150f2b[_0x5d34c4(0xc1)]['apps']:{},_0x1d63bb=Object[_0x5d34c4(0xf6)][_0x5d34c4(0x130)][_0x5d34c4(0xb9)](_0x39d5fe,_0x5e3260),_0x31e657=isInvalidLovrabetRegion(_0x3d3d70[_0x5d34c4(0x12d)])?{'region':_0x52db83[_0x5d34c4(0x12d)]??DEFAULT_LOVRABET_REGION}:resolveEffectiveRegion({'appRegion':_0x3d3d70['region'],'projectRegion':_0x1d63bb?_0x150f2b[_0x5d34c4(0xc1)][_0x5d34c4(0x12d)]:undefined,'globalRegion':_0x150f2b['globalConfig'][_0x5d34c4(0x12d)],'mergedRegion':_0x52db83[_0x5d34c4(0x10e)]['region'],'appName':_0x5e3260}),_0x84d278=buildAppDoctorFields(_0x3d3d70,{'region':_0x31e657[_0x5d34c4(0x12d)],'env':_0x52db83[_0x5d34c4(0xee)],'apiDir':_0x52db83[_0x5d34c4(0x10e)][_0x5d34c4(0xcd)]||DEFAULT_CONFIG_VALUES['apiDir'],'cookie':_0x52db83[_0x5d34c4(0xb3)]||_0x163e55||undefined,'accessKey':_0x52db83[_0x5d34c4(0xca)]});console[_0x5d34c4(0xd6)]('\x20\x20\x20\x20region:\x20\x20\x20\x20\x20'+_0x84d278[_0x5d34c4(0x12d)][_0x5d34c4(0x102)]+'\x20\x20'+a114_0x2eff46['gray']('('+_0x84d278['region'][_0x5d34c4(0xb6)]+')')),console[_0x5d34c4(0xd6)](_0x5d34c4(0xc9)+_0x84d278['env'][_0x5d34c4(0x102)]+'\x20\x20'+a114_0x2eff46[_0x5d34c4(0xe1)]('('+_0x84d278[_0x5d34c4(0xee)][_0x5d34c4(0xb6)]+')')),console['log'](_0x5d34c4(0x124)+_0x84d278['apiDir'][_0x5d34c4(0x102)]+'\x20\x20'+a114_0x2eff46[_0x5d34c4(0xe1)]('('+_0x84d278[_0x5d34c4(0xcd)][_0x5d34c4(0xb6)]+')'));const _0xa61195=_0x84d278[_0x5d34c4(0xb3)][_0x5d34c4(0x102)]?a114_0x2eff46[_0x5d34c4(0xff)](_0x5d34c4(0xe8)+_0x84d278['cookie'][_0x5d34c4(0x102)]['length']+')'):a114_0x2eff46[_0x5d34c4(0xe1)](_0x5d34c4(0xba));console['log'](_0x5d34c4(0xef)+_0xa61195+'\x20\x20'+a114_0x2eff46[_0x5d34c4(0xe1)]('('+_0x84d278[_0x5d34c4(0xb3)][_0x5d34c4(0xb6)]+')'));const _0x18af63=_0x84d278['accessKey'][_0x5d34c4(0x102)]?a114_0x2eff46[_0x5d34c4(0xff)](_0x5d34c4(0xe8)+_0x84d278[_0x5d34c4(0xca)][_0x5d34c4(0x102)]['length']+')'):a114_0x2eff46[_0x5d34c4(0xe1)](_0x5d34c4(0xba));console[_0x5d34c4(0xd6)]('\x20\x20\x20\x20accessKey:\x20\x20'+_0x18af63+'\x20\x20'+a114_0x2eff46[_0x5d34c4(0xe1)]('('+_0x84d278[_0x5d34c4(0xca)][_0x5d34c4(0xb6)]+')'));}}console[_0x5d34c4(0xd6)](),console[_0x5d34c4(0xd6)](a114_0x2eff46[_0x5d34c4(0xe7)](_0x5d34c4(0x10a))),console[_0x5d34c4(0xd6)](a114_0x2eff46[_0x5d34c4(0xe1)](_0x5d34c4(0xe0)[_0x5d34c4(0xd2)](0x1e)));_0x5f2c9f?console[_0x5d34c4(0xd6)](_0x5d34c4(0x127)+a114_0x2eff46[_0x5d34c4(0x134)]('Unavailable\x20until\x20routing\x20configuration\x20is\x20repaired')):(console[_0x5d34c4(0xd6)](_0x5d34c4(0xf5)+getActiveRegion()),console[_0x5d34c4(0xd6)](_0x5d34c4(0xeb)+getApiDomain()),console[_0x5d34c4(0xd6)](_0x5d34c4(0xdd)+getUserDomain()),console[_0x5d34c4(0xd6)](_0x5d34c4(0xdc)+getRuntimeDomain()),console[_0x5d34c4(0xd6)](_0x5d34c4(0xc4)+getSkillDomain()),console[_0x5d34c4(0xd6)](_0x5d34c4(0xea)+getKbDomain()),console['log'](_0x5d34c4(0xd3)+(getKbServiceDomain()??'not\x20configured')),console[_0x5d34c4(0xd6)](_0x5d34c4(0x119)+getAppDomain()));console[_0x5d34c4(0xd6)](),console[_0x5d34c4(0xd6)](a114_0x2eff46['bold'](_0x5d34c4(0x109))),console[_0x5d34c4(0xd6)](a114_0x2eff46[_0x5d34c4(0xe1)](_0x5d34c4(0xe0)['repeat'](0x1e)));if(_0x5f2c9f)console[_0x5d34c4(0xd6)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a114_0x2eff46[_0x5d34c4(0x10f)](_0x5d34c4(0x12c)));else{if(_0x163e55){const _0x48eb9a=await getIsSessionValid();console[_0x5d34c4(0xd6)](_0x5d34c4(0x127)+(_0x48eb9a?a114_0x2eff46[_0x5d34c4(0xff)](_0x5d34c4(0x106)):a114_0x2eff46['red'](_0x5d34c4(0x111))));}else console['log']('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a114_0x2eff46['red']('✗\x20Not\x20logged\x20in'));}return console[_0x5d34c4(0xd6)](),{'ok':!![]};}export const doctorDefinition={'service':'doctor','command':a114_0x36dcb7(0xce),'description':a114_0x36dcb7(0xb8),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
|
|
1
|
+
const a114_0x3ddc41=a114_0x5722;function a114_0x49da(){const _0x10495d=['keys','\x20←\x20current','\x20+\x20','region','(unknown)','source','hasOwnProperty','✓\x20Valid\x20JSON','✗\x20Expired','status','filter','\x20(invalid)','(not\x20set)','entries','toLowerCase','776ZDxFkS','stringify','(default)','\x20\x20Skill\x20Version:\x20\x20\x20','doctor','\x20\x20Installed\x20Path:\x20\x20','pageSize','length','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','unknown','object','✗\x20Invalid','\x20\x20\x20\x20region:\x20\x20\x20\x20\x20','\x20\x20Apps','✗\x20Not\x20logged\x20in','currentApp','defaultApp','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Legacy\x20inherit:\x20\x20\x20','\x20(default)','green','global','bold','label','\x20\x20Package\x20Version:\x20','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','routing','\x20\x20Repair\x20project:\x20\x20','3311HishoF','missing','\x20\x20Config\x20JSON','42FdWpQz','project','present','\x20config','state','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','riskLevel','\x20\x20Repair\x20global:\x20\x20\x20\x20','prototype','appCode','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','cookie','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','value','accessKey','✓\x20Valid','call','red','skillVersion','\x20\x20Routing\x20Configuration','includes','appcode','Set\x20apps.','message','Project','\x20\x20Auth','gray','(none)','Global','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','\x20config\x20delete\x20inherit\x20--global','inherit','\x20\x20appDomain:\x20\x20\x20\x20\x20\x20\x20','padEnd','9357wUOrso','\x20config\x20delete\x20region','5283ityduE','2292yLVurX','\x20\x20Country/Region\x20Configuration','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','repairCommand','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','reason','env','string','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','(not\x20found)','repeat','481172rIxtkv','apiDir','push','read','apps','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','empty','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','format','(set,\x20length=','\x20doctor','✗\x20Invalid\x20','(missing)','Repair\x20','605iLKFBZ','\x20\x20Repair\x20global:\x20\x20\x20','4020DvglBw','(set\x20via\x20file,\x20length=','57897fMLkYC','Not\x20checked\x20until\x20routing\x20configuration\x20is\x20repaired','platform','(default:\x20','\x20app\x20\x22','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Config\x20Files','\x20\x20API\x20Endpoints','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','3020ZHpWNz','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','arch','\x20\x20app\x20locale:\x20\x20\x20\x20\x20\x20','⚠\x20Empty\x20(treated\x20as\x20{})','9075jVqAxd','\x20\x20kbDomain:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20kbServiceDomain:\x20','yellow','\x20\x20─','current','raw','\x20\x20skillDomain:\x20\x20\x20\x20\x20','explicitAppName','\x20\x20explicitAppName:\x20','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','log','\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','globalConfig','projectConfig','regionConfiguredValue','\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(no\x20file)'];a114_0x49da=function(){return _0x10495d;};return a114_0x49da();}(function(_0x49ccc4,_0x257233){const _0x10e2fb=a114_0x5722,_0x12e621=_0x49ccc4();while(!![]){try{const _0x7704ef=parseInt(_0x10e2fb(0x11e))/0x1+-parseInt(_0x10e2fb(0xda))/0x2*(-parseInt(_0x10e2fb(0xfe))/0x3)+-parseInt(_0x10e2fb(0x10c))/0x4+-parseInt(_0x10e2fb(0x11a))/0x5*(parseInt(_0x10e2fb(0x101))/0x6)+-parseInt(_0x10e2fb(0xd7))/0x7*(-parseInt(_0x10e2fb(0xbb))/0x8)+-parseInt(_0x10e2fb(0x100))/0x9*(parseInt(_0x10e2fb(0x94))/0xa)+parseInt(_0x10e2fb(0x99))/0xb*(parseInt(_0x10e2fb(0x11c))/0xc);if(_0x7704ef===_0x257233)break;else _0x12e621['push'](_0x12e621['shift']());}catch(_0x82be02){_0x12e621['push'](_0x12e621['shift']());}}}(a114_0x49da,0x18de7));import a114_0x13f099 from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';import{getActiveRegion,getApiDomain,getAppDomain,getKbDomain,getKbServiceDomain,getSkillDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';function a114_0x5722(_0x4bbaf6,_0x52f059){_0x4bbaf6=_0x4bbaf6-0x93;const _0x49da94=a114_0x49da();let _0x5722bd=_0x49da94[_0x4bbaf6];return _0x5722bd;}import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags,initGlobalEnvironment,inspectCliConfigJsonFile,loadRawConfigLayers}from'../context.js';import{getIsSessionValid}from'../auth/is-session-valid.js';import{getCookie}from'../auth/get-cookie.js';import{buildAppDoctorFields}from'../config/schema.js';import{resolveEffectiveRegion}from'../config/region-config.js';import{inspectBuiltinSkill}from'../skills/builtin-skill.js';import{DEFAULT_LOVRABET_REGION,isInvalidLovrabetRegion}from'../constant/region.js';function describeRegionValue(_0x2dcd2e){const _0x21c15f=a114_0x5722;return typeof _0x2dcd2e===_0x21c15f(0x108)?JSON[_0x21c15f(0xbc)](_0x2dcd2e):'<'+(_0x2dcd2e===null?'null':typeof _0x2dcd2e)+'>';}async function execute(_0x355f46){const _0x3ce2d5=a114_0x5722,_0x1e607d=GIT_COMMIT!==_0x3ce2d5(0xc4)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME['slice'](0x0,0xa)+')':VERSION,_0x182a5c=buildConfigFromFlags({}),_0x18265a=getCookie();let _0x4312b8;try{await initGlobalEnvironment(_0x182a5c);}catch(_0x32faa5){_0x4312b8=_0x32faa5 instanceof Error?_0x32faa5:new Error(String(_0x32faa5));}console['log'](),console[_0x3ce2d5(0xa4)](a114_0x13f099['bold'](CLI_BIN_NAME+_0x3ce2d5(0x116))),console[_0x3ce2d5(0xa4)](a114_0x13f099['gray']('─'[_0x3ce2d5(0x10b)](0x32))),console[_0x3ce2d5(0xa4)](_0x3ce2d5(0x111)+_0x1e607d),console[_0x3ce2d5(0xa4)](_0x3ce2d5(0xc3)+process['version']),console[_0x3ce2d5(0xa4)](_0x3ce2d5(0x103)+process[_0x3ce2d5(0x120)]+'\x20'+process[_0x3ce2d5(0x96)]);const _0x3ef26a=inspectBuiltinSkill();console['log'](),console[_0x3ce2d5(0xa4)](a114_0x13f099[_0x3ce2d5(0xd1)]('\x20\x20Built-in\x20Skill')),console['log'](a114_0x13f099[_0x3ce2d5(0xf5)](_0x3ce2d5(0x9d)['repeat'](0x1e)));const _0x4f7333=_0x3ef26a[_0x3ce2d5(0xde)]==='current'?a114_0x13f099[_0x3ce2d5(0xcf)]('✓\x20'+_0x3ef26a[_0x3ce2d5(0xde)]):a114_0x13f099[_0x3ce2d5(0xec)]('✗\x20'+_0x3ef26a['state']);console[_0x3ce2d5(0xa4)](_0x3ce2d5(0xa9)+_0x4f7333),console['log'](_0x3ce2d5(0xd3)+_0x3ef26a['packageVersion']),console[_0x3ce2d5(0xa4)](_0x3ce2d5(0xbe)+(_0x3ef26a[_0x3ce2d5(0xed)]||a114_0x13f099[_0x3ce2d5(0xf5)](_0x3ce2d5(0xb0)))),console['log'](_0x3ce2d5(0xc0)+(_0x3ef26a['installedPath']||a114_0x13f099['gray']('(not\x20found)')));if(_0x3ef26a[_0x3ce2d5(0x106)])console[_0x3ce2d5(0xa4)]('\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x3ef26a['reason']);_0x3ef26a['state']!==_0x3ce2d5(0x9e)&&console[_0x3ce2d5(0xa4)]('\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x3ef26a['repairCommand']);console[_0x3ce2d5(0xa4)](),console['log'](a114_0x13f099[_0x3ce2d5(0xd1)](_0x3ce2d5(0x124))),console[_0x3ce2d5(0xa4)](a114_0x13f099['gray']('\x20\x20─'[_0x3ce2d5(0x10b)](0x1e)));const _0x32bc10=getGlobalConfigPath(),_0x2a7f9b=getProjectConfigPath();console[_0x3ce2d5(0xa4)](_0x3ce2d5(0xdf)+(_0x32bc10||a114_0x13f099[_0x3ce2d5(0xf5)](_0x3ce2d5(0x10a)))),console[_0x3ce2d5(0xa4)](_0x3ce2d5(0xe7)+(_0x2a7f9b||a114_0x13f099[_0x3ce2d5(0xf5)](_0x3ce2d5(0x10a)))),console[_0x3ce2d5(0xa4)](),console['log'](a114_0x13f099['bold'](_0x3ce2d5(0xd9))),console[_0x3ce2d5(0xa4)](a114_0x13f099['gray'](_0x3ce2d5(0x9d)['repeat'](0x1e)));const _0x28b6e1=(_0x1fe42d,_0x1435b7)=>{const _0x43f09a=_0x3ce2d5;if(!_0x1435b7){console[_0x43f09a(0xa4)]('\x20\x20'+_0x1fe42d[_0x43f09a(0xfd)](0x11)+'\x20'+a114_0x13f099[_0x43f09a(0xf5)](_0x43f09a(0xab)));return;}const _0x40c923=inspectCliConfigJsonFile(_0x1435b7);if(_0x40c923[_0x43f09a(0xb5)]==='ok')console[_0x43f09a(0xa4)]('\x20\x20'+_0x1fe42d[_0x43f09a(0xfd)](0x11)+'\x20'+a114_0x13f099['green'](_0x43f09a(0xb3)));else{if(_0x40c923[_0x43f09a(0xb5)]===_0x43f09a(0x112))console[_0x43f09a(0xa4)]('\x20\x20'+_0x1fe42d[_0x43f09a(0xfd)](0x11)+'\x20'+a114_0x13f099[_0x43f09a(0x9c)](_0x43f09a(0x98)));else _0x40c923[_0x43f09a(0xb5)]===_0x43f09a(0xd8)?console[_0x43f09a(0xa4)]('\x20\x20'+_0x1fe42d['padEnd'](0x11)+'\x20'+a114_0x13f099['gray'](_0x43f09a(0x118))):(console[_0x43f09a(0xa4)]('\x20\x20'+_0x1fe42d['padEnd'](0x11)+'\x20'+a114_0x13f099[_0x43f09a(0xec)]('✗\x20Invalid\x20JSON')),console[_0x43f09a(0xa4)]('\x20\x20'+''['padEnd'](0x11)+'\x20'+a114_0x13f099[_0x43f09a(0xec)](_0x40c923['message'])));}};_0x28b6e1(_0x3ce2d5(0xf7),_0x32bc10),_0x28b6e1(_0x3ce2d5(0xf3),_0x2a7f9b);const _0xbdf643=loadRawConfigLayers(),_0x475a62=[{'label':_0x3ce2d5(0xf3),'value':_0xbdf643[_0x3ce2d5(0xa7)]['region'],'present':Object[_0x3ce2d5(0xe2)][_0x3ce2d5(0xb2)][_0x3ce2d5(0xeb)](_0xbdf643[_0x3ce2d5(0xa7)],_0x3ce2d5(0xaf)),'repairCommand':CLI_BIN_NAME+_0x3ce2d5(0xff)},{'label':_0x3ce2d5(0xf7),'value':_0xbdf643[_0x3ce2d5(0xa6)][_0x3ce2d5(0xaf)],'present':Object[_0x3ce2d5(0xe2)][_0x3ce2d5(0xb2)][_0x3ce2d5(0xeb)](_0xbdf643[_0x3ce2d5(0xa6)],_0x3ce2d5(0xaf)),'repairCommand':CLI_BIN_NAME+'\x20config\x20delete\x20region\x20--global'}][_0x3ce2d5(0xb6)](_0x416603=>_0x416603[_0x3ce2d5(0xdc)]&&isInvalidLovrabetRegion(_0x416603['value']));for(const [_0x22c7af,_0x5272d4]of[[_0x3ce2d5(0xf3),_0xbdf643[_0x3ce2d5(0xa7)]],[_0x3ce2d5(0xf7),_0xbdf643[_0x3ce2d5(0xa6)]]]){const _0x4ff270=_0x5272d4['apps']&&typeof _0x5272d4[_0x3ce2d5(0x110)]===_0x3ce2d5(0xc5)?_0x5272d4[_0x3ce2d5(0x110)]:{};for(const [_0x2a4a20,_0xe1d1fd]of Object[_0x3ce2d5(0xb9)](_0x4ff270)){if(!_0xe1d1fd||typeof _0xe1d1fd!==_0x3ce2d5(0xc5)||!Object[_0x3ce2d5(0xe2)][_0x3ce2d5(0xb2)]['call'](_0xe1d1fd,_0x3ce2d5(0xaf)))continue;isInvalidLovrabetRegion(_0xe1d1fd[_0x3ce2d5(0xaf)])&&_0x475a62[_0x3ce2d5(0x10e)]({'label':_0x22c7af+_0x3ce2d5(0x122)+_0x2a4a20+'\x22','value':_0xe1d1fd[_0x3ce2d5(0xaf)],'present':!![],'repairCommand':_0x3ce2d5(0xf1)+_0x2a4a20+'.region\x20to\x20cn\x20or\x20id\x20in\x20'+_0x22c7af[_0x3ce2d5(0xba)]()+_0x3ce2d5(0xdd)});}}if(_0x475a62[_0x3ce2d5(0xc2)]>0x0){console[_0x3ce2d5(0xa4)](),console['log'](a114_0x13f099[_0x3ce2d5(0xd1)](_0x3ce2d5(0x102))),console['log'](a114_0x13f099[_0x3ce2d5(0xf5)](_0x3ce2d5(0x9d)[_0x3ce2d5(0x10b)](0x1e)));for(const _0xff7e28 of _0x475a62){console[_0x3ce2d5(0xa4)]('\x20\x20'+_0xff7e28[_0x3ce2d5(0xd2)][_0x3ce2d5(0xfd)](0x11)+'\x20'+a114_0x13f099[_0x3ce2d5(0xec)](_0x3ce2d5(0x117)+describeRegionValue(_0xff7e28[_0x3ce2d5(0xe8)]))),console[_0x3ce2d5(0xa4)]('\x20\x20'+(_0x3ce2d5(0x119)+_0xff7e28[_0x3ce2d5(0xd2)][_0x3ce2d5(0xba)]()+':')[_0x3ce2d5(0xfd)](0x10)+'\x20'+_0xff7e28[_0x3ce2d5(0x104)]);}}const _0x22c074=[Object['prototype'][_0x3ce2d5(0xb2)]['call'](_0xbdf643[_0x3ce2d5(0xa6)],_0x3ce2d5(0xfb))?_0x3ce2d5(0xd0):null,Object[_0x3ce2d5(0xe2)][_0x3ce2d5(0xb2)][_0x3ce2d5(0xeb)](_0xbdf643[_0x3ce2d5(0xa7)],_0x3ce2d5(0xfb))?_0x3ce2d5(0xdb):null][_0x3ce2d5(0xb6)](Boolean);_0x22c074[_0x3ce2d5(0xc2)]>0x0&&(console['log'](_0x3ce2d5(0xcd)+a114_0x13f099[_0x3ce2d5(0x9c)]('ignored\x20in\x20'+_0x22c074['join'](_0x3ce2d5(0xae))+_0x3ce2d5(0xdd))),_0x22c074[_0x3ce2d5(0xef)](_0x3ce2d5(0xdb))&&console[_0x3ce2d5(0xa4)]('\x20\x20Repair\x20project:\x20\x20\x20'+CLI_BIN_NAME+'\x20config\x20delete\x20inherit'),_0x22c074[_0x3ce2d5(0xef)](_0x3ce2d5(0xd0))&&console[_0x3ce2d5(0xa4)](_0x3ce2d5(0xe1)+CLI_BIN_NAME+_0x3ce2d5(0xfa)));const _0x1fa202=isInvalidLovrabetRegion(_0x182a5c['regionConfiguredValue']??_0x182a5c[_0x3ce2d5(0x9f)]?.[_0x3ce2d5(0xaf)]);_0x4312b8&&!_0x1fa202&&(console[_0x3ce2d5(0xa4)](),console[_0x3ce2d5(0xa4)](a114_0x13f099[_0x3ce2d5(0xd1)](_0x3ce2d5(0xee))),console['log'](a114_0x13f099[_0x3ce2d5(0xf5)](_0x3ce2d5(0x9d)['repeat'](0x1e))),console['log'](_0x3ce2d5(0xf8)+a114_0x13f099[_0x3ce2d5(0xec)](_0x3ce2d5(0xc6))),console['log'](_0x3ce2d5(0xa5)+_0x4312b8[_0x3ce2d5(0xf2)]),Object[_0x3ce2d5(0xe2)][_0x3ce2d5(0xb2)][_0x3ce2d5(0xeb)](_0xbdf643[_0x3ce2d5(0xa7)],_0x3ce2d5(0xd5))&&console[_0x3ce2d5(0xa4)](_0x3ce2d5(0xd6)+CLI_BIN_NAME+'\x20config\x20delete\x20routing'),Object['prototype'][_0x3ce2d5(0xb2)][_0x3ce2d5(0xeb)](_0xbdf643[_0x3ce2d5(0xa6)],_0x3ce2d5(0xd5))&&console[_0x3ce2d5(0xa4)](_0x3ce2d5(0x11b)+CLI_BIN_NAME+'\x20config\x20delete\x20routing\x20--global'));console['log'](),console[_0x3ce2d5(0xa4)](a114_0x13f099[_0x3ce2d5(0xd1)]('\x20\x20Merged\x20Config')),console['log'](a114_0x13f099[_0x3ce2d5(0xf5)](_0x3ce2d5(0x9d)[_0x3ce2d5(0x10b)](0x1e))),console[_0x3ce2d5(0xa4)](_0x3ce2d5(0x113)+(_0x182a5c[_0x3ce2d5(0xe3)]||a114_0x13f099[_0x3ce2d5(0xec)](_0x3ce2d5(0xb8))));const _0x2b11d3=_0x1fa202?a114_0x13f099[_0x3ce2d5(0xec)](describeRegionValue(_0x182a5c[_0x3ce2d5(0xa8)]??_0x182a5c[_0x3ce2d5(0x9f)]?.[_0x3ce2d5(0xaf)])+_0x3ce2d5(0xb7)):(_0x182a5c[_0x3ce2d5(0xaf)]??DEFAULT_LOVRABET_REGION)+'\x20('+(_0x182a5c['regionSource']??'default')+')';console[_0x3ce2d5(0xa4)]('\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x2b11d3),console['log'](_0x3ce2d5(0xcc)+_0x182a5c['env']),console[_0x3ce2d5(0xa4)](_0x3ce2d5(0x97)+_0x182a5c['locale']),console['log']('\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x182a5c[_0x3ce2d5(0x10d)]),console[_0x3ce2d5(0xa4)]('\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20'+(_0x182a5c[_0x3ce2d5(0xcb)]||a114_0x13f099['gray'](_0x3ce2d5(0xf6)))),console[_0x3ce2d5(0xa4)](_0x3ce2d5(0x109)+(_0x182a5c[_0x3ce2d5(0xca)]||a114_0x13f099[_0x3ce2d5(0xf5)](_0x3ce2d5(0xf6)))),console[_0x3ce2d5(0xa4)](_0x3ce2d5(0xa2)+(_0x182a5c[_0x3ce2d5(0xa1)]||a114_0x13f099[_0x3ce2d5(0xf5)](_0x3ce2d5(0xf6)))),console['log'](_0x3ce2d5(0xaa)+(_0x182a5c[_0x3ce2d5(0x114)]||a114_0x13f099['gray'](_0x3ce2d5(0x121)+DEFAULT_CONFIG_VALUES['format']+')'))),console[_0x3ce2d5(0xa4)](_0x3ce2d5(0x105)+(_0x182a5c[_0x3ce2d5(0xc1)]??a114_0x13f099['gray'](_0x3ce2d5(0xbd)))),console[_0x3ce2d5(0xa4)](_0x3ce2d5(0xd4)+_0x182a5c[_0x3ce2d5(0xe0)]),console['log'](_0x3ce2d5(0x123)+_0x182a5c['verbose']),console[_0x3ce2d5(0xa4)](_0x3ce2d5(0xe4)+(_0x182a5c[_0x3ce2d5(0xe5)]?a114_0x13f099[_0x3ce2d5(0xcf)](_0x3ce2d5(0x115)+_0x182a5c[_0x3ce2d5(0xe5)][_0x3ce2d5(0xc2)]+')'):_0x18265a?a114_0x13f099[_0x3ce2d5(0xcf)](_0x3ce2d5(0x11d)+_0x18265a['length']+')'):a114_0x13f099[_0x3ce2d5(0xf5)]('(none)')));const _0x5656df=Object[_0x3ce2d5(0xac)](_0x182a5c[_0x3ce2d5(0x110)]);if(_0x5656df[_0x3ce2d5(0xc2)]>0x0){console[_0x3ce2d5(0xa4)](),console[_0x3ce2d5(0xa4)](a114_0x13f099['bold'](_0x3ce2d5(0xc8))),console[_0x3ce2d5(0xa4)](a114_0x13f099[_0x3ce2d5(0xf5)]('\x20\x20─'[_0x3ce2d5(0x10b)](0x1e)));for(const _0x2664e7 of _0x5656df){const _0x501790=_0x182a5c[_0x3ce2d5(0x110)][_0x2664e7],_0x1b18b0=_0x2664e7===_0x182a5c[_0x3ce2d5(0xcb)],_0x45f9ef=_0x2664e7===_0x182a5c[_0x3ce2d5(0xca)],_0x3b8a33=_0x45f9ef?a114_0x13f099[_0x3ce2d5(0xcf)](_0x3ce2d5(0xad)):'',_0x142b5c=_0x1b18b0?_0x3ce2d5(0xce):'';console[_0x3ce2d5(0xa4)]('\x20\x20'+_0x2664e7+_0x142b5c+_0x3b8a33),console[_0x3ce2d5(0xa4)]('\x20\x20\x20\x20appcode:\x20\x20\x20\x20'+_0x501790[_0x3ce2d5(0xf0)]);const _0x16285d=_0xbdf643[_0x3ce2d5(0xa7)][_0x3ce2d5(0x110)]&&typeof _0xbdf643[_0x3ce2d5(0xa7)][_0x3ce2d5(0x110)]===_0x3ce2d5(0xc5)?_0xbdf643['projectConfig'][_0x3ce2d5(0x110)]:{},_0x3c6d55=Object[_0x3ce2d5(0xe2)][_0x3ce2d5(0xb2)][_0x3ce2d5(0xeb)](_0x16285d,_0x2664e7),_0x365b95=isInvalidLovrabetRegion(_0x501790[_0x3ce2d5(0xaf)])?{'region':_0x182a5c['region']??DEFAULT_LOVRABET_REGION}:resolveEffectiveRegion({'appRegion':_0x501790[_0x3ce2d5(0xaf)],'projectRegion':_0x3c6d55?_0xbdf643[_0x3ce2d5(0xa7)]['region']:undefined,'globalRegion':_0xbdf643[_0x3ce2d5(0xa6)]['region'],'mergedRegion':_0x182a5c['raw']['region'],'appName':_0x2664e7}),_0x21215a=buildAppDoctorFields(_0x501790,{'region':_0x365b95[_0x3ce2d5(0xaf)],'env':_0x182a5c[_0x3ce2d5(0x107)],'apiDir':_0x182a5c[_0x3ce2d5(0x9f)][_0x3ce2d5(0x10d)]||DEFAULT_CONFIG_VALUES['apiDir'],'cookie':_0x182a5c[_0x3ce2d5(0xe5)]||_0x18265a||undefined,'accessKey':_0x182a5c[_0x3ce2d5(0xe9)]});console[_0x3ce2d5(0xa4)](_0x3ce2d5(0xc7)+_0x21215a[_0x3ce2d5(0xaf)][_0x3ce2d5(0xe8)]+'\x20\x20'+a114_0x13f099['gray']('('+_0x21215a[_0x3ce2d5(0xaf)]['source']+')')),console[_0x3ce2d5(0xa4)](_0x3ce2d5(0xe6)+_0x21215a['env'][_0x3ce2d5(0xe8)]+'\x20\x20'+a114_0x13f099['gray']('('+_0x21215a[_0x3ce2d5(0x107)][_0x3ce2d5(0xb1)]+')')),console[_0x3ce2d5(0xa4)]('\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20'+_0x21215a[_0x3ce2d5(0x10d)][_0x3ce2d5(0xe8)]+'\x20\x20'+a114_0x13f099[_0x3ce2d5(0xf5)]('('+_0x21215a[_0x3ce2d5(0x10d)][_0x3ce2d5(0xb1)]+')'));const _0x3ee0c9=_0x21215a[_0x3ce2d5(0xe5)]['value']?a114_0x13f099['green'](_0x3ce2d5(0x115)+_0x21215a[_0x3ce2d5(0xe5)][_0x3ce2d5(0xe8)][_0x3ce2d5(0xc2)]+')'):a114_0x13f099['gray']('(none)');console[_0x3ce2d5(0xa4)](_0x3ce2d5(0x95)+_0x3ee0c9+'\x20\x20'+a114_0x13f099[_0x3ce2d5(0xf5)]('('+_0x21215a[_0x3ce2d5(0xe5)][_0x3ce2d5(0xb1)]+')'));const _0x5c0cfa=_0x21215a[_0x3ce2d5(0xe9)][_0x3ce2d5(0xe8)]?a114_0x13f099[_0x3ce2d5(0xcf)](_0x3ce2d5(0x115)+_0x21215a['accessKey'][_0x3ce2d5(0xe8)][_0x3ce2d5(0xc2)]+')'):a114_0x13f099[_0x3ce2d5(0xf5)](_0x3ce2d5(0xf6));console['log']('\x20\x20\x20\x20accessKey:\x20\x20'+_0x5c0cfa+'\x20\x20'+a114_0x13f099[_0x3ce2d5(0xf5)]('('+_0x21215a[_0x3ce2d5(0xe9)][_0x3ce2d5(0xb1)]+')'));}}console[_0x3ce2d5(0xa4)](),console[_0x3ce2d5(0xa4)](a114_0x13f099[_0x3ce2d5(0xd1)](_0x3ce2d5(0x125))),console[_0x3ce2d5(0xa4)](a114_0x13f099[_0x3ce2d5(0xf5)](_0x3ce2d5(0x9d)[_0x3ce2d5(0x10b)](0x1e)));_0x4312b8?console[_0x3ce2d5(0xa4)](_0x3ce2d5(0xf8)+a114_0x13f099[_0x3ce2d5(0xec)]('Unavailable\x20until\x20routing\x20configuration\x20is\x20repaired')):(console[_0x3ce2d5(0xa4)]('\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+getActiveRegion()),console[_0x3ce2d5(0xa4)](_0x3ce2d5(0xa3)+getApiDomain()),console['log'](_0x3ce2d5(0x93)+getUserDomain()),console[_0x3ce2d5(0xa4)]('\x20\x20runtimeDomain:\x20\x20\x20'+getRuntimeDomain()),console['log'](_0x3ce2d5(0xa0)+getSkillDomain()),console['log'](_0x3ce2d5(0x9a)+getKbDomain()),console[_0x3ce2d5(0xa4)](_0x3ce2d5(0x9b)+(getKbServiceDomain()??'not\x20configured')),console[_0x3ce2d5(0xa4)](_0x3ce2d5(0xfc)+getAppDomain()));console['log'](),console[_0x3ce2d5(0xa4)](a114_0x13f099[_0x3ce2d5(0xd1)](_0x3ce2d5(0xf4))),console[_0x3ce2d5(0xa4)](a114_0x13f099[_0x3ce2d5(0xf5)](_0x3ce2d5(0x9d)[_0x3ce2d5(0x10b)](0x1e)));if(_0x4312b8)console[_0x3ce2d5(0xa4)](_0x3ce2d5(0xf8)+a114_0x13f099[_0x3ce2d5(0x9c)](_0x3ce2d5(0x11f)));else{if(_0x18265a){const _0x1bda3e=await getIsSessionValid();console['log'](_0x3ce2d5(0xf8)+(_0x1bda3e?a114_0x13f099[_0x3ce2d5(0xcf)](_0x3ce2d5(0xea)):a114_0x13f099[_0x3ce2d5(0xec)](_0x3ce2d5(0xb4))));}else console[_0x3ce2d5(0xa4)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a114_0x13f099[_0x3ce2d5(0xec)](_0x3ce2d5(0xc9)));}return console[_0x3ce2d5(0xa4)](),{'ok':!![]};}export const doctorDefinition={'service':a114_0x3ddc41(0xbf),'command':'check','description':a114_0x3ddc41(0xf9),'risk':a114_0x3ddc41(0x10f),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a115_0xbca722=a115_0x5358;(function(_0x98ff8b,_0x5ba98b){const _0x5c93e7=a115_0x5358,_0x3a7f08=_0x98ff8b();while(!![]){try{const _0x5ab224=-parseInt(_0x5c93e7(0x127))/0x1*(parseInt(_0x5c93e7(0x13b))/0x2)+parseInt(_0x5c93e7(0x145))/0x3*(parseInt(_0x5c93e7(0x141))/0x4)+-parseInt(_0x5c93e7(0x135))/0x5*(parseInt(_0x5c93e7(0x12a))/0x6)+-parseInt(_0x5c93e7(0x126))/0x7+-parseInt(_0x5c93e7(0x138))/0x8+-parseInt(_0x5c93e7(0x124))/0x9*(parseInt(_0x5c93e7(0x130))/0xa)+parseInt(_0x5c93e7(0x13a))/0xb;if(_0x5ab224===_0x5ba98b)break;else _0x3a7f08['push'](_0x3a7f08['shift']());}catch(_0x32a0dd){_0x3a7f08['push'](_0x3a7f08['shift']());}}}(a115_0x1754,0xc5fd0));import{requireDevelopmentUploadFile}from'../../commands/common/local-file.js';import{queryDevelopmentFileUrl,uploadDevelopmentFile}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a115_0x1754(){const _0x2edc4c=['path','filepath','POST','891816zukTtN','filePath','Preview:\x20upload\x20','upload','9fdofGy','query-url','appCode','/smartapi/common/uploadFile','download','873nRQIHb','Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL','7123095YiDoRO','690116ZKeGRl','str','file','6NiWcxz','long-term','bool','validation','Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML','.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','153220FDjCQL','Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20or\x20immediate\x20access','Path\x20to\x20the\x20local\x20file\x20to\x20upload','Development\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data','File','6371815lCNuSw','boolean','string','8538568PYAjuB','Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','62454887TPdkcb','2IODVul','Uploaded\x20file:\x20','read'];a115_0x1754=function(){return _0x2edc4c;};return a115_0x1754();}const FILE_FLAG={'name':a115_0xbca722(0x129),'type':a115_0xbca722(0x137),'required':!![],'description':a115_0xbca722(0x132)},FILEPATH_FLAG={'name':a115_0xbca722(0x13f),'type':a115_0xbca722(0x137),'required':!![],'description':a115_0xbca722(0x133)},DOWNLOAD_FLAG={'name':a115_0xbca722(0x149),'type':a115_0xbca722(0x136),'description':a115_0xbca722(0x125)},LONG_TERM_FLAG={'name':a115_0xbca722(0x12b),'type':a115_0xbca722(0x136),'description':a115_0xbca722(0x12e)};function a115_0x5358(_0x1eae92,_0xa3b715){_0x1eae92=_0x1eae92-0x124;const _0x17542f=a115_0x1754();let _0x5358b3=_0x17542f[_0x1eae92];return _0x5358b3;}function requireFilePath(_0x9d155b){const _0x2fcc5f=a115_0xbca722,_0x562ea5=_0x9d155b['trim']();if(!_0x562ea5)throw CliErrors[_0x2fcc5f(0x12d)]('filePath\x20is\x20required.');return _0x562ea5;}const fileUpload={'service':'file','command':a115_0xbca722(0x144),'description':'Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','risk':a115_0xbca722(0x13d),'flags':[FILE_FLAG],async 'dryRun'(_0x373f7e){const _0x573459=a115_0xbca722,_0x3d341e=requireDevelopmentUploadFile(_0x373f7e[_0x573459(0x128)](_0x573459(0x129)),_0x573459(0x134));return{'method':_0x573459(0x140),'url':_0x573459(0x148),'body':{'appCode':_0x373f7e[_0x573459(0x147)],'multipart':{'file':_0x3d341e}},'description':_0x573459(0x143)+_0x3d341e[_0x573459(0x13e)]+'\x20to\x20development\x20app\x20'+_0x373f7e[_0x573459(0x147)]};},async 'execute'(_0x2d5a40){const _0x18ee22=a115_0xbca722,_0x22aa4d=requireDevelopmentUploadFile(_0x2d5a40[_0x18ee22(0x128)](_0x18ee22(0x129)),_0x18ee22(0x134)),_0x37aa53=await uploadDevelopmentFile(_0x2d5a40[_0x18ee22(0x147)],_0x22aa4d[_0x18ee22(0x13e)]);return{'ok':!![],'data':_0x37aa53,'message':_0x37aa53[_0x18ee22(0x142)]?_0x18ee22(0x13c)+_0x37aa53[_0x18ee22(0x142)]+_0x18ee22(0x12f):_0x18ee22(0x139)};}},fileQueryUrl={'service':a115_0xbca722(0x129),'command':a115_0xbca722(0x146),'description':a115_0xbca722(0x131),'risk':a115_0xbca722(0x13d),'flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0x276c98){const _0x1f49bf=a115_0xbca722,_0x449d40=requireFilePath(_0x276c98['str'](_0x1f49bf(0x13f))),_0x5a5aa8=await queryDevelopmentFileUrl(_0x449d40,{'download':_0x276c98[_0x1f49bf(0x12c)](_0x1f49bf(0x149)),'longTerm':_0x276c98['bool'](_0x1f49bf(0x12b))});return{'ok':!![],'data':_0x5a5aa8};}};export const fileDefinitions=[fileUpload,fileQueryUrl];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a116_0x55fa0f=a116_0x5d68;function a116_0x5d68(_0x3dceab,_0x22d9d9){_0x3dceab=_0x3dceab-0xfa;const _0x195e8d=a116_0x195e();let _0x5d6832=_0x195e8d[_0x3dceab];return _0x5d6832;}(function(_0x879989,_0x2f2046){const _0x5cfc9d=a116_0x5d68,_0x27f378=_0x879989();while(!![]){try{const _0x41a396=parseInt(_0x5cfc9d(0x101))/0x1*(-parseInt(_0x5cfc9d(0xfa))/0x2)+-parseInt(_0x5cfc9d(0xfe))/0x3*(-parseInt(_0x5cfc9d(0x109))/0x4)+-parseInt(_0x5cfc9d(0x10e))/0x5*(-parseInt(_0x5cfc9d(0x108))/0x6)+-parseInt(_0x5cfc9d(0xfc))/0x7*(parseInt(_0x5cfc9d(0x10c))/0x8)+-parseInt(_0x5cfc9d(0x102))/0x9+-parseInt(_0x5cfc9d(0xfb))/0xa*(-parseInt(_0x5cfc9d(0x10d))/0xb)+parseInt(_0x5cfc9d(0x107))/0xc;if(_0x41a396===_0x2f2046)break;else _0x27f378['push'](_0x27f378['shift']());}catch(_0x4ac5d1){_0x27f378['push'](_0x27f378['shift']());}}}(a116_0x195e,0x4192d));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{asDryRunResult}from'../../commands/common/dry-run.js';import{createFlowDefinition}from'../../core/api-client.js';import{FLOW_FILE_FLAG,FLOW_PATHS,buildFlowUrl,confirmFlowWrite,flowSelector,prepareFlowWrite,readFlowFilePath}from'../../commands/flow/shared.js';function a116_0x195e(){const _0x3c07e5=['datasetCode','.\x20Flow\x20URL:\x20','8NcUXUh','511874frJuOq','30CPjDIq','2QybBal','110vRhiwt','3167059Soglen','appCode','3MlureH','create','Created\x20flow\x20','179077qUlENv','4638771xiBwxa','\x20(id=','flowName','flow','POST','6925452xjOsvC','191070OnadSA','541828SymQXp'];a116_0x195e=function(){return _0x3c07e5;};return a116_0x195e();}export const flowCreate={'service':a116_0x55fa0f(0x105),'command':a116_0x55fa0f(0xff),'description':'Create\x20a\x20draft\x20flow\x20definition\x20from\x20a\x20local\x20FlowConfig\x20file','risk':'write','flags':[FLOW_FILE_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x18fb09){readFlowFilePath(_0x18fb09);},async 'dryRun'(_0x8c6b72){const _0x817a07=a116_0x55fa0f,{request:_0x7fed10,warnings:_0x58e8cd}=await prepareFlowWrite(readFlowFilePath(_0x8c6b72),_0x8c6b72[_0x817a07(0xfd)]);return asDryRunResult({'operation':_0x817a07(0xff),'selector':{'appCode':_0x8c6b72[_0x817a07(0xfd)],'flowName':_0x7fed10['flowName'],..._0x7fed10[_0x817a07(0x10a)]?{'datasetCode':_0x7fed10['datasetCode']}:{}},'before':null,'after':_0x7fed10,'request':_0x7fed10,'dryRun':!![],'backend':{'method':_0x817a07(0x106),'path':FLOW_PATHS[_0x817a07(0xff)]},'warnings':_0x58e8cd},{'method':_0x817a07(0x106),'url':FLOW_PATHS[_0x817a07(0xff)]});},async 'execute'(_0xfd4230){const _0x242bab=a116_0x55fa0f,{request:_0x519b91,warnings:_0x2969c4}=await prepareFlowWrite(readFlowFilePath(_0xfd4230),_0xfd4230['appCode']);await confirmFlowWrite(_0xfd4230,_0x242bab(0xff),_0x519b91);const _0x1b1129=await createFlowDefinition(_0x519b91),_0x1508a3=buildFlowUrl(_0xfd4230[_0x242bab(0xfd)],_0x1b1129['id']),_0x3f8f5d=''+(_0x1b1129['flowName']||_0x519b91[_0x242bab(0x104)])+(_0x1b1129['id']?_0x242bab(0x103)+_0x1b1129['id']+')':'');return{'ok':!![],'data':{'operation':_0x242bab(0xff),'selector':flowSelector(_0xfd4230[_0x242bab(0xfd)],_0x1b1129['id'],_0x1b1129),'before':null,'after':_0x1b1129,'flowUrl':_0x1508a3,'dryRun':![],'backend':{'method':_0x242bab(0x106),'path':FLOW_PATHS[_0x242bab(0xff)]},'warnings':_0x2969c4},'message':_0x242bab(0x100)+_0x3f8f5d+_0x242bab(0x10b)+_0x1508a3};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a117_0x22ba8e=a117_0x2266;(function(_0x1815c2,_0x7150b0){const _0x25838e=a117_0x2266,_0x38a705=_0x1815c2();while(!![]){try{const _0x446286=parseInt(_0x25838e(0xb9))/0x1*(-parseInt(_0x25838e(0xa6))/0x2)+parseInt(_0x25838e(0xb3))/0x3*(-parseInt(_0x25838e(0xa5))/0x4)+-parseInt(_0x25838e(0xb2))/0x5+parseInt(_0x25838e(0xbd))/0x6*(-parseInt(_0x25838e(0xa4))/0x7)+-parseInt(_0x25838e(0xa9))/0x8+-parseInt(_0x25838e(0xb5))/0x9*(parseInt(_0x25838e(0xa2))/0xa)+parseInt(_0x25838e(0xa3))/0xb;if(_0x446286===_0x7150b0)break;else _0x38a705['push'](_0x38a705['shift']());}catch(_0x4ec81a){_0x38a705['push'](_0x38a705['shift']());}}}(a117_0x15cf,0xdfeb9));import{mkdir,stat}from'node:fs/promises';import{dirname,resolve}from'node:path';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{getFlowDefinition}from'../../core/api-client.js';function a117_0x15cf(){const _0x592ada=['ENOENT','EEXIST','warnings','output','flow','Wrote\x20FlowConfig\x20for\x20','string','5859315FuUxvn','75441pKpjcX','str','1668915BKKxZT','config','Overwrite\x20an\x20existing\x20output\x20file','bool','1olfaFn','trim','Pass\x20--force\x20to\x20overwrite\x20it.','code','6IHbOJJ','flowName','50SqBVXW','63503440HvBbsF','4369477zGZfGe','172jprMLK','898034fjLCOF','validation','\x20to\x20','4818208WpqJPI','force'];a117_0x15cf=function(){return _0x592ada;};return a117_0x15cf();}import{writeNormalizedFlowConfig}from'../../core/flow-config.js';import{CliErrors}from'../../errors.js';import{FLOW_ID_FLAG,flowDefinitionToConfig,readFlowId}from'../../commands/flow/shared.js';export const flowDetail={'service':a117_0x22ba8e(0xaf),'command':'detail','description':'Get\x20one\x20design-time\x20flow\x20definition','risk':'read','flags':[FLOW_ID_FLAG,{'name':a117_0x22ba8e(0xae),'type':a117_0x22ba8e(0xb1),'description':'Write\x20a\x20portable\x20normalized\x20FlowConfig\x20JSON\x20file'},{'name':a117_0x22ba8e(0xaa),'type':'boolean','description':a117_0x22ba8e(0xb7)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x376b6b){readFlowId(_0x376b6b);},async 'execute'(_0x3764ec){const _0x4345cc=a117_0x22ba8e,_0x36709b=readFlowId(_0x3764ec),_0x45c64c=_0x3764ec[_0x4345cc(0xb4)]('output')[_0x4345cc(0xba)](),_0x2902de=_0x45c64c?resolve(_0x45c64c):undefined;if(_0x2902de&&!_0x3764ec['bool'](_0x4345cc(0xaa))&&await fileExists(_0x2902de))throw CliErrors[_0x4345cc(0xa7)]('FlowConfig\x20output\x20already\x20exists:\x20'+_0x2902de,'Pass\x20--force\x20to\x20overwrite\x20it.');const _0x997eaa=await getFlowDefinition(_0x3764ec['appCode'],_0x36709b);let _0x41982d;if(_0x2902de){const _0x3f56a2=flowDefinitionToConfig(_0x997eaa);await mkdir(dirname(_0x2902de),{'recursive':!![]});try{await writeNormalizedFlowConfig(_0x2902de,_0x3f56a2[_0x4345cc(0xb6)],{'overwrite':_0x3764ec[_0x4345cc(0xb8)](_0x4345cc(0xaa))});}catch(_0x12851d){if(isAlreadyExistsError(_0x12851d))throw CliErrors['validation']('FlowConfig\x20output\x20already\x20exists:\x20'+_0x2902de,_0x4345cc(0xbb));throw _0x12851d;}_0x41982d={'path':_0x2902de,'warnings':_0x3f56a2[_0x4345cc(0xad)]};}return{'ok':!![],'data':{'flow':_0x997eaa,..._0x41982d?{'output':_0x41982d}:{}},'message':_0x41982d?_0x4345cc(0xb0)+(_0x997eaa[_0x4345cc(0xbe)]||_0x997eaa['flowCode']||_0x36709b)+_0x4345cc(0xa8)+_0x41982d['path']:'Flow\x20'+(_0x997eaa[_0x4345cc(0xbe)]||_0x997eaa['flowCode']||_0x36709b)};}};async function fileExists(_0x26dcba){try{return await stat(_0x26dcba),!![];}catch(_0x2a6016){return!isNotFoundError(_0x2a6016);}}function isNotFoundError(_0x59abf3){const _0x8228a7=a117_0x22ba8e;return _0x59abf3?.[_0x8228a7(0xbc)]===_0x8228a7(0xab);}function a117_0x2266(_0x17699f,_0x19b2a3){_0x17699f=_0x17699f-0xa2;const _0x15cf0e=a117_0x15cf();let _0x22665b=_0x15cf0e[_0x17699f];return _0x22665b;}function isAlreadyExistsError(_0x3c5ee0){const _0x320715=a117_0x22ba8e;return _0x3c5ee0?.[_0x320715(0xbc)]===_0x320715(0xac);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x21dbba,_0x3d5959){const _0x374b4d=a118_0x2463,_0x4133e9=_0x21dbba();while(!![]){try{const _0x54febc=-parseInt(_0x374b4d(0xf8))/0x1+parseInt(_0x374b4d(0xf5))/0x2+-parseInt(_0x374b4d(0xfe))/0x3+-parseInt(_0x374b4d(0xf6))/0x4*(-parseInt(_0x374b4d(0xfc))/0x5)+parseInt(_0x374b4d(0xfd))/0x6*(-parseInt(_0x374b4d(0xf9))/0x7)+parseInt(_0x374b4d(0xfa))/0x8*(parseInt(_0x374b4d(0xfb))/0x9)+parseInt(_0x374b4d(0xf7))/0xa;if(_0x54febc===_0x3d5959)break;else _0x4133e9['push'](_0x4133e9['shift']());}catch(_0x4b0403){_0x4133e9['push'](_0x4133e9['shift']());}}}(a118_0x342f,0x24292));import{flowValidate}from'../../commands/flow/validate.js';import{flowList}from'../../commands/flow/list.js';import{flowDetail}from'../../commands/flow/detail.js';import{flowCreate}from'../../commands/flow/create.js';function a118_0x2463(_0x10aa2c,_0x560bf6){_0x10aa2c=_0x10aa2c-0xf5;const _0x342f44=a118_0x342f();let _0x2463f8=_0x342f44[_0x10aa2c];return _0x2463f8;}import{flowUpdate}from'../../commands/flow/update.js';import{flowPublish}from'../../commands/flow/publish.js';import{flowRuntimeRoleList}from'../../commands/flow/runtime-role-list.js';import{flowRuntimeUserSearch}from'../../commands/flow/runtime-user-search.js';function a118_0x342f(){const _0x5c9a0b=['10816VyVlEE','36RXFbbS','125DIlmLP','1165932Lpqlod','51735qkqdtp','62370qYUNrW','13012AwVbiM','4068650mOeCUl','165102RRAePM','7zpTDVz'];a118_0x342f=function(){return _0x5c9a0b;};return a118_0x342f();}import{flowRuntimeRoleUserList}from'../../commands/flow/runtime-role-user-list.js';export const flowDefinitions=[flowValidate,flowList,flowDetail,flowCreate,flowUpdate,flowPublish,flowRuntimeRoleList,flowRuntimeUserSearch,flowRuntimeRoleUserList];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a119_0x4a5caa=a119_0x2a54;(function(_0x593632,_0x50c123){const _0x348a81=a119_0x2a54,_0x301c21=_0x593632();while(!![]){try{const _0x3cc6a6=-parseInt(_0x348a81(0x113))/0x1*(-parseInt(_0x348a81(0x114))/0x2)+-parseInt(_0x348a81(0x11a))/0x3+parseInt(_0x348a81(0x127))/0x4*(parseInt(_0x348a81(0x129))/0x5)+parseInt(_0x348a81(0x118))/0x6*(-parseInt(_0x348a81(0x121))/0x7)+-parseInt(_0x348a81(0x135))/0x8*(-parseInt(_0x348a81(0x116))/0x9)+parseInt(_0x348a81(0x131))/0xa+parseInt(_0x348a81(0x117))/0xb*(-parseInt(_0x348a81(0x12e))/0xc);if(_0x3cc6a6===_0x50c123)break;else _0x301c21['push'](_0x301c21['shift']());}catch(_0x3d412b){_0x301c21['push'](_0x301c21['shift']());}}}(a119_0x1d11,0xee380));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{listFlowDefinitions}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const FLOW_STATUSES=[a119_0x4a5caa(0x125),'published'];function a119_0x1d11(){const _0x3b208b=['dataset-code','flow-type','string','3QfFkIu','1226132fsUsWS','validation','26775dLHWmr','1408lraPvc','325722AfBbvD','flow','5021172zQicxL','page-size','isSafeInteger','flow-code','length','page','appCode','154fsuUdY','flow-name','list','Filter\x20by\x20dataset\x20code','draft','List\x20design-time\x20flow\x20definitions\x20for\x20the\x20current\x20app','1796UvZwtG','flow-status','19395kkLagj','number','Page\x20size','Filter\x20by\x20flow\x20type','num','88236SKYlhU','str','Filter\x20by\x20exact\x20server-generated\x20flow\x20code','7518970TGoqBp','Page\x20number\x20(1-based)','Filter\x20by\x20flow\x20status','trim','1216GGffRv','--page-size\x20must\x20be\x20a\x20positive\x20integer.','Found\x20'];a119_0x1d11=function(){return _0x3b208b;};return a119_0x1d11();}function a119_0x2a54(_0x237e4b,_0x538b39){_0x237e4b=_0x237e4b-0x112;const _0x1d113a=a119_0x1d11();let _0x2a5469=_0x1d113a[_0x237e4b];return _0x2a5469;}export const flowList={'service':a119_0x4a5caa(0x119),'command':a119_0x4a5caa(0x123),'description':a119_0x4a5caa(0x126),'risk':'read','flags':[APPCODE_FLAG_OPTIONAL,{'name':'flow-code','type':a119_0x4a5caa(0x112),'description':a119_0x4a5caa(0x130)},{'name':a119_0x4a5caa(0x122),'type':'string','description':'Filter\x20by\x20flow\x20name'},{'name':'flow-status','type':a119_0x4a5caa(0x112),'description':a119_0x4a5caa(0x133),'enum':FLOW_STATUSES},{'name':a119_0x4a5caa(0x138),'type':a119_0x4a5caa(0x112),'description':a119_0x4a5caa(0x124)},{'name':a119_0x4a5caa(0x139),'type':a119_0x4a5caa(0x112),'description':a119_0x4a5caa(0x12c)},{'name':a119_0x4a5caa(0x11f),'type':a119_0x4a5caa(0x12a),'description':a119_0x4a5caa(0x132),'default':0x1},{'name':'page-size','type':a119_0x4a5caa(0x12a),'description':a119_0x4a5caa(0x12b),'default':0x14}],async 'validate'(_0xd7bcb3){const _0x59c987=a119_0x4a5caa,_0x525ba2=_0xd7bcb3['num'](_0x59c987(0x11f),0x1),_0x99d25e=_0xd7bcb3['num'](_0x59c987(0x11b),0x14);if(!Number[_0x59c987(0x11c)](_0x525ba2)||_0x525ba2<0x1)throw CliErrors['validation']('--page\x20must\x20be\x20a\x20positive\x20integer.');if(!Number[_0x59c987(0x11c)](_0x99d25e)||_0x99d25e<0x1)throw CliErrors[_0x59c987(0x115)](_0x59c987(0x136));},async 'execute'(_0x221e6e){const _0x38e7ae=a119_0x4a5caa,{items:_0x22e9e3,paging:_0xd913b8}=await listFlowDefinitions(_0x221e6e[_0x38e7ae(0x120)],{'flowCode':optionalString(_0x221e6e[_0x38e7ae(0x12f)](_0x38e7ae(0x11d))),'flowName':optionalString(_0x221e6e[_0x38e7ae(0x12f)](_0x38e7ae(0x122))),'flowStatus':optionalString(_0x221e6e['str'](_0x38e7ae(0x128))),'datasetCode':optionalString(_0x221e6e[_0x38e7ae(0x12f)](_0x38e7ae(0x138))),'flowType':optionalString(_0x221e6e[_0x38e7ae(0x12f)](_0x38e7ae(0x139))),'pageNum':_0x221e6e[_0x38e7ae(0x12d)](_0x38e7ae(0x11f),0x1),'pageSize':_0x221e6e[_0x38e7ae(0x12d)](_0x38e7ae(0x11b),0x14)});return{'ok':!![],'data':{'appCode':_0x221e6e[_0x38e7ae(0x120)],'flows':_0x22e9e3,'paging':_0xd913b8},'message':_0x38e7ae(0x137)+_0x22e9e3[_0x38e7ae(0x11e)]+'\x20flow\x20definition(s)'};}};function optionalString(_0x3b045d){const _0x348af6=a119_0x4a5caa,_0xed81c9=_0x3b045d[_0x348af6(0x134)]();return _0xed81c9||undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a120_0x345ef3=a120_0xbac3;(function(_0x27ff55,_0x2f84ec){const _0x1e6cb6=a120_0xbac3,_0x4aa7c6=_0x27ff55();while(!![]){try{const _0x24a9a0=-parseInt(_0x1e6cb6(0x166))/0x1+parseInt(_0x1e6cb6(0x172))/0x2*(parseInt(_0x1e6cb6(0x16c))/0x3)+parseInt(_0x1e6cb6(0x168))/0x4+-parseInt(_0x1e6cb6(0x175))/0x5+-parseInt(_0x1e6cb6(0x16b))/0x6+parseInt(_0x1e6cb6(0x170))/0x7*(parseInt(_0x1e6cb6(0x16e))/0x8)+parseInt(_0x1e6cb6(0x174))/0x9;if(_0x24a9a0===_0x2f84ec)break;else _0x4aa7c6['push'](_0x4aa7c6['shift']());}catch(_0x86c8b6){_0x4aa7c6['push'](_0x4aa7c6['shift']());}}}(a120_0x3e99,0x95415));function a120_0xbac3(_0x96d6,_0x3a8cf2){_0x96d6=_0x96d6-0x164;const _0x3e99af=a120_0x3e99();let _0xbac3f8=_0x3e99af[_0x96d6];return _0xbac3f8;}function a120_0x3e99(){const _0x3ec700=['778213jyOSHa','Published\x20flow\x20','2262688fKpMZW','POST','Publish\x20the\x20current\x20flow\x20definition\x20draft','1441122XMVNql','3VERUwM','publish','400IkupWZ','published','159397vScBMk','flowName','519786nrSZlJ','write','5087916leYBsQ','4498450CgIEAc','appCode','flow'];a120_0x3e99=function(){return _0x3ec700;};return a120_0x3e99();}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{publishFlowDefinition}from'../../core/api-client.js';import{FLOW_ID_FLAG,FLOW_PATHS,buildFlowUrl,buildFlowIdDryRun,flowSelector,readFlowId}from'../../commands/flow/shared.js';export const flowPublish={'service':a120_0x345ef3(0x165),'command':a120_0x345ef3(0x16d),'description':a120_0x345ef3(0x16a),'risk':a120_0x345ef3(0x173),'flags':[FLOW_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x2634aa){readFlowId(_0x2634aa);},async 'dryRun'(_0x38d3ce){const _0x42b124=a120_0x345ef3,_0x578927=readFlowId(_0x38d3ce);return buildFlowIdDryRun(_0x42b124(0x16d),FLOW_PATHS[_0x42b124(0x16d)],_0x38d3ce[_0x42b124(0x164)],_0x578927,{'id':_0x578927,'flowStatus':_0x42b124(0x16f)});},async 'execute'(_0x3f3ba2){const _0x17c1da=a120_0x345ef3,_0x33e0ec=readFlowId(_0x3f3ba2),_0x5391a9=await publishFlowDefinition(_0x3f3ba2[_0x17c1da(0x164)],_0x33e0ec),_0x55d877=buildFlowUrl(_0x3f3ba2['appCode'],_0x33e0ec);return{'ok':!![],'data':{'operation':'publish','selector':flowSelector(_0x3f3ba2[_0x17c1da(0x164)],_0x33e0ec,_0x5391a9),'before':null,'after':_0x5391a9,'flowUrl':_0x55d877,'dryRun':![],'backend':{'method':_0x17c1da(0x169),'path':FLOW_PATHS[_0x17c1da(0x16d)]},'warnings':[]},'message':_0x17c1da(0x167)+(_0x5391a9[_0x17c1da(0x171)]||_0x5391a9['flowCode']||_0x33e0ec)+'.\x20Flow\x20URL:\x20'+_0x55d877};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a121_0x1935(){const _0x256f56=['code','Runtime\x20role\x20\x22','username','userName','join','roleName','userCount','--page-size\x20must\x20be\x20an\x20integer\x20between\x201\x20and\x20100.','2330124iyusul','\x22\x20not\x20found\x20in\x20app\x20','str','isSafeInteger','6925080UDUhBA','6555451jYZRyu','trim','string','\x22\x20is\x20ambiguous\x20(ids:\x20','--page\x20must\x20be\x20a\x20positive\x20integer.','766255PfbQEd','roleType','number','displayName','1206820MgAiWJ','138PZnAHi','validation','filter','userId','status','Runtime\x20role\x20name\x20\x22','num','Run\x20`flow\x20runtime-role-list`\x20to\x20see\x20runtime\x20roles.','156715SHkZPC','Runtime\x20role\x20id\x20or\x20exact\x20role\x20name','nickname','Disambiguate\x20with\x20--role\x20<id>.','584058aWqxUU','role','length','permitCount'];a121_0x1935=function(){return _0x256f56;};return a121_0x1935();}const a121_0x2eb5da=a121_0x2e73;(function(_0x8be5f,_0x42c42a){const _0x4b5382=a121_0x2e73,_0x956341=_0x8be5f();while(!![]){try{const _0x102a51=parseInt(_0x4b5382(0x1ab))/0x1+parseInt(_0x4b5382(0x1a1))/0x2+-parseInt(_0x4b5382(0x195))/0x3+-parseInt(_0x4b5382(0x1af))/0x4+-parseInt(_0x4b5382(0x191))/0x5*(parseInt(_0x4b5382(0x189))/0x6)+parseInt(_0x4b5382(0x1a6))/0x7+-parseInt(_0x4b5382(0x1a5))/0x8;if(_0x102a51===_0x42c42a)break;else _0x956341['push'](_0x956341['shift']());}catch(_0x2d6189){_0x956341['push'](_0x956341['shift']());}}}(a121_0x1935,0xbf9ff));import{CliErrors}from'../../errors.js';export const FLOW_RUNTIME_PAGE_FLAG={'name':'page','type':a121_0x2eb5da(0x1ad),'description':'Page\x20index\x20(1-based)','default':0x1};export const FLOW_RUNTIME_PAGE_SIZE_FLAG={'name':'page-size','type':a121_0x2eb5da(0x1ad),'description':'Page\x20size\x20(1-100)','default':0x14};export const FLOW_RUNTIME_ROLE_REF_FLAG={'name':a121_0x2eb5da(0x196),'type':'string','required':!![],'description':a121_0x2eb5da(0x192)};function a121_0x2e73(_0x15c42b,_0x3edf06){_0x15c42b=_0x15c42b-0x189;const _0x1935e3=a121_0x1935();let _0x2e730d=_0x1935e3[_0x15c42b];return _0x2e730d;}export function readRuntimePagination(_0x362d2d){const _0x138d2e=a121_0x2eb5da,_0x5c7937=_0x362d2d['num']('page',0x1),_0x552321=_0x362d2d[_0x138d2e(0x18f)]('page-size',0x14);if(!Number['isSafeInteger'](_0x5c7937)||_0x5c7937<0x1)throw CliErrors[_0x138d2e(0x18a)](_0x138d2e(0x1aa));if(!Number[_0x138d2e(0x1a4)](_0x552321)||_0x552321<0x1||_0x552321>0x64)throw CliErrors[_0x138d2e(0x18a)](_0x138d2e(0x1a0));return{'page':_0x5c7937,'pageSize':_0x552321};}export function paginateRuntimeItems(_0x200571,_0x223a93,_0x2d9b55){const _0x3436d5=a121_0x2eb5da,_0x35495c=(_0x223a93-0x1)*_0x2d9b55;return{'items':_0x200571['slice'](_0x35495c,_0x35495c+_0x2d9b55),'paging':{'currentPage':_0x223a93,'pageSize':_0x2d9b55,'totalCount':_0x200571[_0x3436d5(0x197)]}};}export function projectRuntimeRole(_0xf9e3b8){const _0x418067=a121_0x2eb5da;return{'id':_0xf9e3b8['id'],'roleName':_0xf9e3b8[_0x418067(0x19e)]??null,'roleType':_0xf9e3b8[_0x418067(0x1ac)]??null,'remark':_0xf9e3b8['remark']??null,'userCount':_0xf9e3b8[_0x418067(0x19f)]??0x0,'permitCount':_0xf9e3b8[_0x418067(0x198)]??0x0};}export function projectRuntimeUser(_0x472571){const _0x37982b=a121_0x2eb5da,_0x1c35a3=normalizeRuntimeUserId(_0x472571[_0x37982b(0x199)]);if(!_0x1c35a3)return null;return{'userId':_0x1c35a3,'username':_0x472571[_0x37982b(0x19c)]??null,'nickname':_0x472571['nickName']??null,'displayName':_0x472571[_0x37982b(0x1ae)]??null,'email':_0x472571['email']??null,'status':_0x472571[_0x37982b(0x18d)]??null};}export function projectRuntimeRoleMember(_0x2aab66){const _0x573f5e=a121_0x2eb5da,_0x4e2cca=normalizeRuntimeUserId(_0x2aab66[_0x573f5e(0x18c)]);if(!_0x4e2cca)return null;return{'userId':_0x4e2cca,'username':_0x2aab66[_0x573f5e(0x19b)]??null,'nickname':_0x2aab66[_0x573f5e(0x193)]??null};}export function readRuntimeRoleRef(_0x156bbc){const _0x479821=a121_0x2eb5da,_0x4a9c75=_0x156bbc[_0x479821(0x1a3)](_0x479821(0x196))[_0x479821(0x1a7)]();if(!_0x4a9c75)throw CliErrors['flagMissing']('role','Pass\x20--role\x20<id|name>.');return _0x4a9c75;}export function resolveRuntimeRoleGroup(_0x342a86,_0x52a582,_0x18b5f4){const _0x36ef96=a121_0x2eb5da,_0x427b24=/^\d+$/['test'](_0x52a582)?_0x18b5f4[_0x36ef96(0x18b)](_0x1e565a=>_0x1e565a['id']===Number(_0x52a582)):_0x18b5f4[_0x36ef96(0x18b)](_0x531923=>_0x531923[_0x36ef96(0x19e)]===_0x52a582);if(_0x427b24[_0x36ef96(0x197)]===0x0)throw CliErrors[_0x36ef96(0x18a)](_0x36ef96(0x19a)+_0x52a582+_0x36ef96(0x1a2)+_0x342a86+'.',_0x36ef96(0x190));if(_0x427b24['length']>0x1){const _0x3057fe=_0x427b24['map'](_0x280115=>_0x280115['id'])[_0x36ef96(0x19d)](',\x20');throw CliErrors[_0x36ef96(0x18a)](_0x36ef96(0x18e)+_0x52a582+_0x36ef96(0x1a9)+_0x3057fe+').',_0x36ef96(0x194));}return _0x427b24[0x0];}function normalizeRuntimeUserId(_0x23bcb7){const _0x1133a7=a121_0x2eb5da;if(typeof _0x23bcb7!==_0x1133a7(0x1a8)&&typeof _0x23bcb7!=='number')return null;const _0x5749e3=String(_0x23bcb7)['trim']();return _0x5749e3||null;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a122_0x4fbc91=a122_0x4312;(function(_0x1ec1f4,_0x263ce4){const _0x576339=a122_0x4312,_0x5742cc=_0x1ec1f4();while(!![]){try{const _0x2dc46b=parseInt(_0x576339(0x1d3))/0x1+-parseInt(_0x576339(0x1ce))/0x2*(parseInt(_0x576339(0x1d9))/0x3)+parseInt(_0x576339(0x1c8))/0x4+parseInt(_0x576339(0x1d0))/0x5+-parseInt(_0x576339(0x1d6))/0x6*(parseInt(_0x576339(0x1d1))/0x7)+-parseInt(_0x576339(0x1d8))/0x8+-parseInt(_0x576339(0x1cb))/0x9;if(_0x2dc46b===_0x263ce4)break;else _0x5742cc['push'](_0x5742cc['shift']());}catch(_0x18d062){_0x5742cc['push'](_0x5742cc['shift']());}}}(a122_0x57e6,0xe6bae));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';function a122_0x57e6(){const _0x5ea720=['flow','runtime-role-list','403372qMinah','read','8209890GkFoZr','7EbCNuT','appCode','266073ypiXEh','trim','string','3096396HSgkMG','keyword','7359048ZdGiEt','6lFmNns','map','4792216nQpQyr','length','List\x20runtime\x20app\x20roles\x20for\x20approval\x20assignee\x20selection','2895444hFzUfJ'];a122_0x57e6=function(){return _0x5ea720;};return a122_0x57e6();}import{listApprovalRuntimeRoles}from'../../core/api-client.js';function a122_0x4312(_0x2bdb14,_0x3267e6){_0x2bdb14=_0x2bdb14-0x1c8;const _0x57e619=a122_0x57e6();let _0x431267=_0x57e619[_0x2bdb14];return _0x431267;}export const flowRuntimeRoleList={'service':a122_0x4fbc91(0x1cc),'command':a122_0x4fbc91(0x1cd),'description':a122_0x4fbc91(0x1ca),'risk':a122_0x4fbc91(0x1cf),'flags':[{'name':a122_0x4fbc91(0x1d7),'type':a122_0x4fbc91(0x1d5),'description':'Optional\x20runtime\x20role-name\x20keyword'},FLOW_RUNTIME_PAGE_FLAG,FLOW_RUNTIME_PAGE_SIZE_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x51ac3a){readRuntimePagination(_0x51ac3a);},async 'execute'(_0x3c10a5){const _0xcd08cf=a122_0x4fbc91,{page:_0x38d0ed,pageSize:_0x29ad84}=readRuntimePagination(_0x3c10a5),_0x24dd94=_0x3c10a5['str'](_0xcd08cf(0x1d7))[_0xcd08cf(0x1d4)](),{items:_0x435da5,paging:_0x39a560}=await listApprovalRuntimeRoles(_0x3c10a5[_0xcd08cf(0x1d2)],{..._0x24dd94?{'roleName':_0x24dd94}:{},'currentPage':_0x38d0ed,'pageSize':_0x29ad84}),_0x10397d=_0x435da5[_0xcd08cf(0x1da)](projectRuntimeRole);return{'ok':!![],'data':{'appCode':_0x3c10a5[_0xcd08cf(0x1d2)],'scope':'runtime',..._0x24dd94?{'keyword':_0x24dd94}:{},'roles':_0x10397d,'paging':_0x39a560},'message':'Found\x20'+_0x10397d[_0xcd08cf(0x1c9)]+'\x20runtime\x20role(s)'};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a123_0x1bd7(_0x5e0c13,_0x559ef4){_0x5e0c13=_0x5e0c13-0xaf;const _0x2b6275=a123_0x2b62();let _0x1bd75b=_0x2b6275[_0x5e0c13];return _0x1bd75b;}const a123_0x11eda2=a123_0x1bd7;(function(_0x502473,_0x348abf){const _0x148a04=a123_0x1bd7,_0x50d71d=_0x502473();while(!![]){try{const _0x402b03=parseInt(_0x148a04(0xc6))/0x1*(-parseInt(_0x148a04(0xbd))/0x2)+parseInt(_0x148a04(0xc0))/0x3+parseInt(_0x148a04(0xb7))/0x4+parseInt(_0x148a04(0xc3))/0x5+-parseInt(_0x148a04(0xaf))/0x6+-parseInt(_0x148a04(0xc5))/0x7+parseInt(_0x148a04(0xb2))/0x8*(parseInt(_0x148a04(0xb0))/0x9);if(_0x402b03===_0x348abf)break;else _0x50d71d['push'](_0x50d71d['shift']());}catch(_0x362f80){_0x50d71d['push'](_0x50d71d['shift']());}}}(a123_0x2b62,0xafb5e));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{FLOW_RUNTIME_PAGE_FLAG,FLOW_RUNTIME_PAGE_SIZE_FLAG,FLOW_RUNTIME_ROLE_REF_FLAG,paginateRuntimeItems,projectRuntimeRoleMember,readRuntimePagination,readRuntimeRoleRef,resolveRuntimeRoleGroup}from'../../commands/flow/runtime-resources-shared.js';function a123_0x2b62(){const _0x3181fe=['6491940SxpEdY','\x20runtime\x20member(s)\x20in\x20role\x20','6234704eQWOen','2vlyohf','runtime','6042162vwqtlg','9lTzHuo','flow','9149912lYaYRg','userList','runtime-role-user-list','filter','map','4916568tynawk','appCode','items','Found\x20','length','List\x20members\x20of\x20one\x20runtime\x20app\x20role\x20for\x20approval\x20verification','1240714grbFmv','paging','roleName','560562TBqbSc','roleType','read'];a123_0x2b62=function(){return _0x3181fe;};return a123_0x2b62();}import{listApprovalRuntimeRoleUsers}from'../../core/api-client.js';export const flowRuntimeRoleUserList={'service':a123_0x11eda2(0xb1),'command':a123_0x11eda2(0xb4),'description':a123_0x11eda2(0xbc),'risk':a123_0x11eda2(0xc2),'flags':[FLOW_RUNTIME_ROLE_REF_FLAG,FLOW_RUNTIME_PAGE_FLAG,FLOW_RUNTIME_PAGE_SIZE_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x217ead){readRuntimeRoleRef(_0x217ead),readRuntimePagination(_0x217ead);},async 'execute'(_0x1d3555){const _0x52770a=a123_0x11eda2,_0x54b04f=resolveRuntimeRoleGroup(_0x1d3555[_0x52770a(0xb8)],readRuntimeRoleRef(_0x1d3555),await listApprovalRuntimeRoleUsers(_0x1d3555[_0x52770a(0xb8)])),_0x56d055=(_0x54b04f[_0x52770a(0xb3)]??[])[_0x52770a(0xb6)](projectRuntimeRoleMember)[_0x52770a(0xb5)](_0x218cb3=>_0x218cb3!==null),{page:_0x27255c,pageSize:_0x25484d}=readRuntimePagination(_0x1d3555),_0x137bf2=paginateRuntimeItems(_0x56d055,_0x27255c,_0x25484d);return{'ok':!![],'data':{'appCode':_0x1d3555[_0x52770a(0xb8)],'scope':_0x52770a(0xc7),'role':{'id':_0x54b04f['id'],'roleName':_0x54b04f['roleName']??null,'roleType':_0x54b04f[_0x52770a(0xc1)]??null},'users':_0x137bf2[_0x52770a(0xb9)],'paging':_0x137bf2[_0x52770a(0xbe)]},'message':_0x52770a(0xba)+_0x56d055[_0x52770a(0xbb)]+_0x52770a(0xc4)+(_0x54b04f[_0x52770a(0xbf)]??_0x54b04f['id'])};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a124_0x2810fe=a124_0x9cd6;function a124_0x9cd6(_0x173265,_0x23972e){_0x173265=_0x173265-0x165;const _0x1dea4c=a124_0x1dea();let _0x9cd62=_0x1dea4c[_0x173265];return _0x9cd62;}function a124_0x1dea(){const _0x287e7e=['read','4949700QBwZHV','357890IQqjBH','3977658pQRacD','email','flow','\x20runtime\x20app\x20user(s)\x20matching\x20\x22','nickName','items','toLowerCase','string','code','runtime','Found\x20','Search\x20runtime\x20app\x20users\x20for\x20approval\x20assignee\x20selection','trim','userName','Pass\x20--keyword\x20<text>.','filter','keyword','runtime-user-search','appCode','displayName','2529352wNmpPY','8776110cgeQLY','paging','length','flagMissing','33633992AOyqUS','some','str','6102275XfsIIR','5NWNWGm'];a124_0x1dea=function(){return _0x287e7e;};return a124_0x1dea();}(function(_0x4f7c2e,_0xa82acd){const _0x5c15e1=a124_0x9cd6,_0x1801ba=_0x4f7c2e();while(!![]){try{const _0x1d0616=parseInt(_0x5c15e1(0x17f))/0x1*(-parseInt(_0x5c15e1(0x182))/0x2)+parseInt(_0x5c15e1(0x183))/0x3+-parseInt(_0x5c15e1(0x176))/0x4+-parseInt(_0x5c15e1(0x17e))/0x5+-parseInt(_0x5c15e1(0x181))/0x6+-parseInt(_0x5c15e1(0x177))/0x7+parseInt(_0x5c15e1(0x17b))/0x8;if(_0x1d0616===_0xa82acd)break;else _0x1801ba['push'](_0x1801ba['shift']());}catch(_0x36d3d8){_0x1801ba['push'](_0x1801ba['shift']());}}}(a124_0x1dea,0xabdc1));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{FLOW_RUNTIME_PAGE_FLAG,FLOW_RUNTIME_PAGE_SIZE_FLAG,paginateRuntimeItems,projectRuntimeUser,readRuntimePagination}from'../../commands/flow/runtime-resources-shared.js';import{listApprovalRuntimeUsers}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';export const flowRuntimeUserSearch={'service':a124_0x2810fe(0x185),'command':a124_0x2810fe(0x173),'description':a124_0x2810fe(0x16d),'risk':a124_0x2810fe(0x180),'flags':[{'name':a124_0x2810fe(0x172),'type':a124_0x2810fe(0x169),'required':!![],'description':'User\x20id,\x20username,\x20nickname,\x20display\x20name,\x20or\x20email\x20keyword'},FLOW_RUNTIME_PAGE_FLAG,FLOW_RUNTIME_PAGE_SIZE_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x3b9279){const _0x1e96a7=a124_0x2810fe;if(!_0x3b9279['str'](_0x1e96a7(0x172))[_0x1e96a7(0x16e)]())throw CliErrors[_0x1e96a7(0x17a)]('keyword',_0x1e96a7(0x170));readRuntimePagination(_0x3b9279);},async 'execute'(_0xfc82ee){const _0x12496f=a124_0x2810fe,_0x2b507b=_0xfc82ee[_0x12496f(0x17d)](_0x12496f(0x172))[_0x12496f(0x16e)](),_0x5f3876=_0x2b507b[_0x12496f(0x168)](),_0x3d7d5f=(await listApprovalRuntimeUsers(_0xfc82ee[_0x12496f(0x174)]))[_0x12496f(0x171)](_0x4e79d1=>[_0x4e79d1[_0x12496f(0x16a)],_0x4e79d1[_0x12496f(0x16f)],_0x4e79d1[_0x12496f(0x166)],_0x4e79d1[_0x12496f(0x175)],_0x4e79d1[_0x12496f(0x184)]][_0x12496f(0x17c)](_0x4d571c=>_0x4d571c!==null&&_0x4d571c!==undefined&&String(_0x4d571c)[_0x12496f(0x168)]()['includes'](_0x5f3876)))['map'](projectRuntimeUser)['filter'](_0x397150=>_0x397150!==null),{page:_0x9792ad,pageSize:_0x3bd349}=readRuntimePagination(_0xfc82ee),_0xd0ac76=paginateRuntimeItems(_0x3d7d5f,_0x9792ad,_0x3bd349);return{'ok':!![],'data':{'appCode':_0xfc82ee['appCode'],'scope':_0x12496f(0x16b),'keyword':_0x2b507b,'users':_0xd0ac76[_0x12496f(0x167)],'paging':_0xd0ac76[_0x12496f(0x178)]},'message':_0x12496f(0x16c)+_0x3d7d5f[_0x12496f(0x179)]+_0x12496f(0x165)+_0x2b507b+'\x22'};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a125_0x734d8d=a125_0x515f;(function(_0x11a7ad,_0x3e66df){const _0x398fef=a125_0x515f,_0x53fc5f=_0x11a7ad();while(!![]){try{const _0x1fb468=parseInt(_0x398fef(0x168))/0x1*(parseInt(_0x398fef(0x173))/0x2)+parseInt(_0x398fef(0x1a6))/0x3*(-parseInt(_0x398fef(0x17a))/0x4)+-parseInt(_0x398fef(0x187))/0x5*(-parseInt(_0x398fef(0x190))/0x6)+-parseInt(_0x398fef(0x184))/0x7*(parseInt(_0x398fef(0x1a1))/0x8)+-parseInt(_0x398fef(0x179))/0x9+parseInt(_0x398fef(0x1a4))/0xa+parseInt(_0x398fef(0x18c))/0xb*(parseInt(_0x398fef(0x1a2))/0xc);if(_0x1fb468===_0x3e66df)break;else _0x53fc5f['push'](_0x53fc5f['shift']());}catch(_0x1f8538){_0x53fc5f['push'](_0x53fc5f['shift']());}}}(a125_0x31c2,0x7964b));import{asDryRunResult}from'../../commands/common/dry-run.js';function a125_0x31c2(){const _0x3bb352=['cancelled','The\x20detail\x20response\x20does\x20not\x20contain\x20a\x20supported\x20flowType.','flagMissing','FlowConfig\x20validation\x20failed\x20for\x20','trim','errors','flowDesc','Run\x20`rabetbase\x20flow\x20validate\x20--file\x20<path>`\x20for\x20details.','/smartapi/flow/publish','datasetCode','559786PsbMGV','FORM_FLOW','flowCode','INDEPENDENT_FLOW','Path\x20to\x20the\x20local\x20FlowConfig\x20JSON\x20file','\x20\x20flowType:\x20','5886900UEJIho','156WcmAYh','flowJson','The\x20detail\x20response\x20does\x20not\x20contain\x20an\x20object\x20flowJson.','message','/smartapi/flow/detail','Continue?\x20[y/N]\x20','Cannot\x20export\x20an\x20invalid\x20flow\x20definition.','flowType','object','map','385nGHcnC','/data/workflow?workflowId=','Approval\x20flow\x20','10VHnIcy','normalized','string','Cannot\x20export\x20this\x20flow\x20into\x20the\x20current\x20portable\x20FlowConfig\x20contract.','nonInteractive','7722abLOOR','apiError','validation','appCode','1583394pqvSZh','path','POST','--id\x20must\x20be\x20a\x20positive\x20integer.','flowName','isSafeInteger','warnings','str','number','pageId','/smartapi/flow/create','file','bool','num','/smartapi/flow/page','Pass\x20--file\x20<path>.','join','79160TDZZCf','23568KoGTuU','valid','3104660mWMBQw','/smartapi/flow/update','61641qjxUXY','1cspAnP'];a125_0x31c2=function(){return _0x3bb352;};return a125_0x31c2();}function a125_0x515f(_0xa5f6f1,_0x510486){_0xa5f6f1=_0xa5f6f1-0x168;const _0x31c24b=a125_0x31c2();let _0x515ffd=_0x31c24b[_0xa5f6f1];return _0x515ffd;}import{readFlowConfigFile,validateFlowConfig}from'../../core/flow-config.js';import{CliErrors}from'../../errors.js';import{getAppBaseUrl}from'../../constant/domain.js';import{requireConfirmationPrompt}from'@lovrabet/cli-framework';export const FLOW_PATHS={'list':a125_0x734d8d(0x19e),'detail':a125_0x734d8d(0x17e),'create':a125_0x734d8d(0x19a),'update':a125_0x734d8d(0x1a5),'publish':a125_0x734d8d(0x171)};export const FLOW_ID_FLAG={'name':'id','type':a125_0x734d8d(0x198),'required':!![],'description':'Flow\x20definition\x20id\x20(from\x20`flow\x20list`\x20or\x20`flow\x20create`)'};export const FLOW_FILE_FLAG={'name':a125_0x734d8d(0x19b),'type':'string','required':!![],'description':a125_0x734d8d(0x177)};export function flowDefinitionToConfig(_0x15b6f6){const _0x1ec9d4=a125_0x734d8d;if(typeof _0x15b6f6[_0x1ec9d4(0x194)]!==_0x1ec9d4(0x189)||_0x15b6f6['flowName'][_0x1ec9d4(0x16d)]()==='')throw CliErrors['apiError'](_0x1ec9d4(0x180),'The\x20detail\x20response\x20does\x20not\x20contain\x20flowName.');if(typeof _0x15b6f6['flowJson']!==_0x1ec9d4(0x182)||_0x15b6f6[_0x1ec9d4(0x17b)]===null||Array['isArray'](_0x15b6f6[_0x1ec9d4(0x17b)]))throw CliErrors[_0x1ec9d4(0x18d)](_0x1ec9d4(0x180),_0x1ec9d4(0x17c));if(_0x15b6f6[_0x1ec9d4(0x181)]!==_0x1ec9d4(0x174)&&_0x15b6f6[_0x1ec9d4(0x181)]!==_0x1ec9d4(0x176))throw CliErrors[_0x1ec9d4(0x18d)](_0x1ec9d4(0x180),_0x1ec9d4(0x16a));const _0x54cc80={'flowName':_0x15b6f6[_0x1ec9d4(0x194)],...typeof _0x15b6f6['flowDesc']===_0x1ec9d4(0x189)?{'flowDesc':_0x15b6f6[_0x1ec9d4(0x16f)]}:{},'flowType':_0x15b6f6[_0x1ec9d4(0x181)],...typeof _0x15b6f6['datasetCode']===_0x1ec9d4(0x189)&&_0x15b6f6[_0x1ec9d4(0x172)][_0x1ec9d4(0x16d)]()?{'datasetCode':_0x15b6f6[_0x1ec9d4(0x172)]}:{},...typeof _0x15b6f6[_0x1ec9d4(0x199)]==='number'?{'pageId':_0x15b6f6[_0x1ec9d4(0x199)]}:{},'flowJson':_0x15b6f6['flowJson']},_0x346722=validateFlowConfig(_0x54cc80);if(!_0x346722[_0x1ec9d4(0x1a3)]){const _0x4f4d01=_0x346722[_0x1ec9d4(0x16e)][_0x1ec9d4(0x183)](_0x48b815=>_0x48b815[_0x1ec9d4(0x191)]+':\x20'+_0x48b815[_0x1ec9d4(0x17d)])[_0x1ec9d4(0x1a0)](';\x20');throw CliErrors['validation'](_0x1ec9d4(0x18a),_0x4f4d01);}return{'config':_0x346722[_0x1ec9d4(0x188)],'warnings':_0x346722[_0x1ec9d4(0x196)],'removedPaths':_0x346722[_0x1ec9d4(0x196)][_0x1ec9d4(0x183)](_0x4526a6=>_0x4526a6['path'])};}export function readFlowId(_0x5f51c9){const _0x4d547d=a125_0x734d8d,_0x26e1a6=_0x5f51c9[_0x4d547d(0x19d)]('id');if(!Number[_0x4d547d(0x195)](_0x26e1a6)||_0x26e1a6<=0x0)throw CliErrors[_0x4d547d(0x18e)](_0x4d547d(0x193));return _0x26e1a6;}export function readFlowFilePath(_0x5dd5bd){const _0x40d6bb=a125_0x734d8d,_0x417ca7=_0x5dd5bd[_0x40d6bb(0x197)](_0x40d6bb(0x19b))[_0x40d6bb(0x16d)]();if(!_0x417ca7)throw CliErrors[_0x40d6bb(0x16b)](_0x40d6bb(0x19b),_0x40d6bb(0x19f));return _0x417ca7;}export async function prepareFlowWrite(_0x1729d5,_0x123d07,_0x4332bb){const _0x4deb60=a125_0x734d8d;let _0x4f7d19;try{_0x4f7d19=await readFlowConfigFile(_0x1729d5);}catch(_0x23d31f){const _0x50b054=_0x23d31f instanceof Error?_0x23d31f[_0x4deb60(0x17d)]:String(_0x23d31f);throw CliErrors[_0x4deb60(0x18e)]('Unable\x20to\x20read\x20FlowConfig:\x20'+_0x50b054,'File:\x20'+_0x1729d5);}const _0x39831b=validateFlowConfig(_0x4f7d19);if(!_0x39831b['valid']){const _0x5dfd96=_0x39831b['errors']['map'](_0xf9c1c5=>_0xf9c1c5[_0x4deb60(0x191)]+':\x20'+_0xf9c1c5['message'])['join'](';\x20');throw CliErrors[_0x4deb60(0x18e)](_0x4deb60(0x16c)+_0x1729d5+'.',_0x5dfd96||_0x4deb60(0x170));}const _0x1665d2=_0x39831b['normalized'],_0x1c55a7={..._0x4332bb!==undefined?{'id':_0x4332bb}:{},'flowName':_0x1665d2[_0x4deb60(0x194)],..._0x1665d2[_0x4deb60(0x16f)]!==undefined?{'flowDesc':_0x1665d2[_0x4deb60(0x16f)]}:{},'flowType':_0x1665d2[_0x4deb60(0x181)],'appCode':_0x123d07,..._0x1665d2[_0x4deb60(0x172)]!==undefined?{'datasetCode':_0x1665d2[_0x4deb60(0x172)]}:{},..._0x1665d2[_0x4deb60(0x199)]!==undefined?{'pageId':_0x1665d2[_0x4deb60(0x199)]}:{},'flowJson':_0x1665d2['flowJson']};return{'request':_0x1c55a7,'warnings':_0x39831b[_0x4deb60(0x196)]};}export async function confirmFlowWrite(_0x7837e7,_0x2410ca,_0x4ed563){const _0x5bf02f=a125_0x734d8d;if(_0x7837e7[_0x5bf02f(0x18b)]||_0x7837e7[_0x5bf02f(0x19c)]('yes'))return;await requireConfirmationPrompt({'lines':[_0x5bf02f(0x186)+_0x2410ca+':','\x20\x20appCode:\x20'+_0x7837e7[_0x5bf02f(0x18f)],..._0x4ed563['id']!==undefined?['\x20\x20flowId:\x20'+_0x4ed563['id']]:[],'\x20\x20flowName:\x20'+_0x4ed563[_0x5bf02f(0x194)],_0x5bf02f(0x178)+_0x4ed563[_0x5bf02f(0x181)],..._0x4ed563[_0x5bf02f(0x172)]?['\x20\x20datasetCode:\x20'+_0x4ed563['datasetCode']]:[],_0x5bf02f(0x17f)],'createCancelledError':_0x2bb81c=>CliErrors[_0x5bf02f(0x169)](_0x2bb81c)});}export function flowSelector(_0x523e1e,_0x38fac6,_0x56a354){const _0x1b75cb=a125_0x734d8d;return{'appCode':_0x523e1e,..._0x38fac6!==undefined?{'flowId':_0x38fac6}:{},..._0x56a354?.[_0x1b75cb(0x175)]?{'flowCode':_0x56a354[_0x1b75cb(0x175)]}:{},..._0x56a354?.[_0x1b75cb(0x194)]?{'flowName':_0x56a354[_0x1b75cb(0x194)]}:{}};}export function buildFlowUrl(_0x3fbe58,_0x16790b){const _0x385fd0=a125_0x734d8d,_0x16162a=encodeURIComponent(String(_0x16790b));return getAppBaseUrl(_0x3fbe58)+_0x385fd0(0x185)+_0x16162a;}export function buildFlowIdDryRun(_0x4d1342,_0x407656,_0x421cb3,_0x592eb0,_0xab5b68){const _0x103b99=a125_0x734d8d,_0x4c5e4c={'id':_0x592eb0,'appCode':_0x421cb3};return asDryRunResult({'operation':_0x4d1342,'selector':flowSelector(_0x421cb3,_0x592eb0),'before':null,'after':_0xab5b68,'request':_0x4c5e4c,'dryRun':!![],'backend':{'method':_0x103b99(0x192),'path':_0x407656},'warnings':[]},{'method':_0x103b99(0x192),'url':_0x407656});}
|