@lovrabet/rabetbase-cli 2.5.4-beta.5 → 2.5.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api/api-doc.js +1 -1
- package/lib/api/api-group.js +1 -1
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.js +1 -1
- package/lib/api/generate-sdk-config-file.js +1 -1
- package/lib/api/legacy-api-file.js +1 -1
- package/lib/api/model-registry-file.js +1 -1
- package/lib/api/model-registry-scaffold.js +1 -1
- package/lib/api/model-source.js +1 -1
- package/lib/auth/auth-server-ui.js +1 -1
- package/lib/auth/auth-server.js +1 -1
- package/lib/auth/constant.js +1 -1
- package/lib/auth/get-cookie.js +1 -1
- package/lib/auth/get-session-user.js +1 -1
- package/lib/auth/is-session-valid.js +1 -1
- package/lib/auth/login-success-html.js +1 -1
- package/lib/auth/logout.js +1 -1
- package/lib/cli-flags.js +1 -1
- package/lib/cli.js +1 -1
- package/lib/commands/api/generate.js +1 -1
- package/lib/commands/api/index.js +1 -1
- package/lib/commands/api/list.js +1 -1
- package/lib/commands/api/pull.js +1 -1
- package/lib/commands/api/shared.js +1 -1
- package/lib/commands/app/detail.js +1 -1
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/members-list.js +1 -1
- package/lib/commands/app/remote-directory.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/delete.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/app-config/list.js +1 -1
- package/lib/commands/app-config/set.js +1 -1
- package/lib/commands/app-config/shared.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/bff/create.js +1 -1
- package/lib/commands/bff/delete.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/bff/list.js +1 -1
- package/lib/commands/bff/logs.js +1 -1
- package/lib/commands/bff/pull.js +1 -1
- package/lib/commands/bff/push.js +1 -1
- package/lib/commands/bff/status.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/cli-update.js +1 -1
- package/lib/commands/codegen/index.js +1 -1
- package/lib/commands/codegen/sdk.js +1 -1
- package/lib/commands/codegen/sql.js +1 -1
- package/lib/commands/common/app-registry.js +1 -1
- package/lib/commands/common/app-selector.js +1 -1
- package/lib/commands/common/async-task.js +1 -1
- package/lib/commands/common/dry-run.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/common/validate.js +1 -1
- package/lib/commands/config/delete.js +1 -1
- package/lib/commands/config/get.js +1 -1
- package/lib/commands/config/index.js +1 -1
- package/lib/commands/config/init.js +1 -1
- package/lib/commands/config/list.js +1 -1
- package/lib/commands/config/set.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/dataset/batch-design.js +1 -1
- package/lib/commands/dataset/business-group-update.js +1 -1
- package/lib/commands/dataset/business-groups.js +1 -1
- package/lib/commands/dataset/capability.js +1 -1
- package/lib/commands/dataset/cross-relation-create.js +1 -1
- package/lib/commands/dataset/cross-relation-delete.js +1 -1
- package/lib/commands/dataset/cross-relation-list.js +1 -1
- package/lib/commands/dataset/cross-relation-shared.js +1 -1
- package/lib/commands/dataset/cross-relation-update.js +1 -1
- package/lib/commands/dataset/delete.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/extend-update.js +1 -1
- package/lib/commands/dataset/field-restore.js +1 -1
- package/lib/commands/dataset/field-update.js +1 -1
- package/lib/commands/dataset/generate.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/dataset/relation-audit.js +1 -1
- package/lib/commands/dataset/relation-create.js +1 -1
- package/lib/commands/dataset/relation-delete.js +1 -1
- package/lib/commands/dataset/relation-shared.js +1 -1
- package/lib/commands/dataset/relation-update.js +1 -1
- package/lib/commands/dataset/relations.js +1 -1
- package/lib/commands/dataset/rename.js +1 -1
- package/lib/commands/dataset/restore.js +1 -1
- package/lib/commands/dataset/user-deleted-field-list.js +1 -1
- package/lib/commands/db/analysis-batching.js +1 -1
- package/lib/commands/db/analyze-batch-plan.js +1 -1
- package/lib/commands/db/analyze-cancel.js +1 -1
- package/lib/commands/db/analyze-start.js +1 -1
- package/lib/commands/db/analyze-status.js +1 -1
- package/lib/commands/db/create.js +1 -1
- package/lib/commands/db/delete.js +1 -1
- package/lib/commands/db/detail.js +1 -1
- package/lib/commands/db/diff-refresh-start.js +1 -1
- package/lib/commands/db/diff-refresh-status.js +1 -1
- package/lib/commands/db/diff.js +1 -1
- package/lib/commands/db/index.js +1 -1
- package/lib/commands/db/list.js +1 -1
- package/lib/commands/db/shared.js +1 -1
- package/lib/commands/db/table-diff-shared.js +1 -1
- package/lib/commands/db/tables.js +1 -1
- package/lib/commands/db/test.js +1 -1
- package/lib/commands/db/update.js +1 -1
- package/lib/commands/deployment/index.js +1 -1
- package/lib/commands/deployment/sync-all.js +1 -1
- package/lib/commands/deployment/sync-jobs.js +1 -1
- package/lib/commands/deployment/sync-status.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/flow/create.js +1 -1
- package/lib/commands/flow/detail.js +1 -1
- package/lib/commands/flow/index.js +1 -1
- package/lib/commands/flow/list.js +1 -1
- package/lib/commands/flow/publish.js +1 -1
- package/lib/commands/flow/runtime-resources-shared.js +1 -1
- package/lib/commands/flow/runtime-role-list.js +1 -1
- package/lib/commands/flow/runtime-role-user-list.js +1 -1
- package/lib/commands/flow/runtime-user-search.js +1 -1
- package/lib/commands/flow/shared.js +1 -1
- package/lib/commands/flow/update.js +1 -1
- package/lib/commands/flow/validate.js +1 -1
- package/lib/commands/instant-api-policy/current.js +1 -1
- package/lib/commands/instant-api-policy/index.js +1 -1
- package/lib/commands/instant-api-policy/init.js +1 -1
- package/lib/commands/instant-api-policy/publish.js +1 -1
- package/lib/commands/instant-api-policy/pull.js +1 -1
- package/lib/commands/instant-api-policy/revision.js +1 -1
- package/lib/commands/instant-api-policy/revisions.js +1 -1
- package/lib/commands/instant-api-policy/rollback.js +1 -1
- package/lib/commands/instant-api-policy/shared.js +1 -1
- package/lib/commands/instant-api-policy/validate.js +1 -1
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/nudge.js +1 -1
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/issue/shared.js +1 -1
- package/lib/commands/kb/create.js +1 -1
- package/lib/commands/kb/delete.js +1 -1
- package/lib/commands/kb/detail.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/kb/list.js +1 -1
- package/lib/commands/kb/search.js +1 -1
- package/lib/commands/kb/shared.js +1 -1
- package/lib/commands/kb/update.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/asset-update.js +1 -1
- package/lib/commands/menu/delete.js +1 -1
- package/lib/commands/menu/external-link-create.js +1 -1
- package/lib/commands/menu/external-link-update.js +1 -1
- package/lib/commands/menu/group-create.js +1 -1
- package/lib/commands/menu/group-update.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/list.js +1 -1
- package/lib/commands/menu/move.js +1 -1
- package/lib/commands/menu/regroup-start.js +1 -1
- package/lib/commands/menu/rename.js +1 -1
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/delete-plan.js +1 -1
- package/lib/commands/menu/shared/facts.js +1 -1
- package/lib/commands/menu/shared/index.js +1 -1
- package/lib/commands/menu/shared/inquirer.js +1 -1
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.js +1 -1
- package/lib/commands/menu/shared/mutations.js +1 -1
- package/lib/commands/menu/shared/path.js +1 -1
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/subapp-assets.js +1 -1
- package/lib/commands/menu/shared/sync-core.js +1 -1
- package/lib/commands/menu/shared/update-core.js +1 -1
- package/lib/commands/menu/shared/valid-url.js +1 -1
- package/lib/commands/menu/subapp-assets-status.js +1 -1
- package/lib/commands/menu/subapp-assets-update.js +1 -1
- package/lib/commands/menu/sync.js +1 -1
- package/lib/commands/menu/visibility-update.js +1 -1
- package/lib/commands/notification/config-create.js +1 -1
- package/lib/commands/notification/config-delete.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/config-update.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/notification/shared.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/page/create.js +1 -1
- package/lib/commands/page/custom/detail.js +1 -1
- package/lib/commands/page/custom/list.js +1 -1
- package/lib/commands/page/custom/publish.js +1 -1
- package/lib/commands/page/custom/shared.js +1 -1
- package/lib/commands/page/custom/syntax.js +1 -1
- package/lib/commands/page/custom/update.js +1 -1
- package/lib/commands/page/data-list-status.js +1 -1
- package/lib/commands/page/generate-start.js +1 -1
- package/lib/commands/page/generate-status.js +1 -1
- package/lib/commands/page/index.js +1 -1
- package/lib/commands/page/pull.js +1 -1
- package/lib/commands/page/push.js +1 -1
- package/lib/commands/page/relation-audit.js +1 -1
- package/lib/commands/page/restore.js +1 -1
- package/lib/commands/page/shared.js +1 -1
- package/lib/commands/page/sync.js +1 -1
- package/lib/commands/project/api-architecture-upgrade.js +1 -1
- package/lib/commands/project/create/enhanced-guided-create.js +1 -1
- package/lib/commands/project/create/format-elapsed.js +1 -1
- package/lib/commands/project/create/main.js +1 -1
- package/lib/commands/project/create/materialize-project-template.js +1 -1
- package/lib/commands/project/create/project-name.js +1 -1
- package/lib/commands/project/create/project-template-archive.js +1 -1
- package/lib/commands/project/create/project-template-path.js +1 -1
- package/lib/commands/project/create/use-copy-project-template.js +1 -1
- package/lib/commands/project/create/use-format-code.js +1 -1
- package/lib/commands/project/create/use-install-dependencies.js +1 -1
- package/lib/commands/project/domain-routing-sync.js +1 -1
- package/lib/commands/project/index.js +1 -1
- package/lib/commands/project/upgrade.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/role/user-resolve.js +1 -1
- package/lib/commands/rule/get.js +1 -1
- package/lib/commands/rule/index.js +1 -1
- package/lib/commands/rule/list.js +1 -1
- package/lib/commands/rule/set.js +1 -1
- package/lib/commands/rule/shared.js +1 -1
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/sql/create.js +1 -1
- package/lib/commands/sql/delete.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/sql/list.js +1 -1
- package/lib/commands/sql/pull.js +1 -1
- package/lib/commands/sql/push.js +1 -1
- package/lib/commands/sql/shared.js +1 -1
- package/lib/commands/sql/status.js +1 -1
- package/lib/commands/sql/validate.js +1 -1
- package/lib/commands/task/index.js +1 -1
- package/lib/commands/task/status.js +1 -1
- package/lib/commands/tenant/index.js +1 -1
- package/lib/commands/tenant/members-list.js +1 -1
- package/lib/commands/tenant/shared.js +1 -1
- package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
- package/lib/commands/user-account/feishu-bind.js +1 -1
- package/lib/commands/user-account/index.js +1 -1
- package/lib/commands/workspace/add.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/commands/workspace/remove.js +1 -1
- package/lib/config/domain-config.js +1 -1
- package/lib/config/project-domain-routing.js +1 -1
- package/lib/config/region-config.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/cdn.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/paths.js +1 -1
- package/lib/constant/region.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/routing-profile.js +1 -1
- package/lib/context/app-resolver.js +1 -1
- package/lib/context/auth-resolver.js +1 -1
- package/lib/context/config-loader.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/bff/config.js +1 -1
- package/lib/core/bff/file-system.js +1 -1
- package/lib/core/bff/hash.js +1 -1
- package/lib/core/bff/hook-directory.js +1 -1
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/cross-db-relation.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/flow-config.js +1 -1
- package/lib/core/instant-api-policy/config.js +1 -1
- package/lib/core/kb-search-client.js +1 -1
- package/lib/core/page/file-system.js +1 -1
- package/lib/core/page/hash.js +1 -1
- package/lib/core/page/lock.js +1 -1
- package/lib/core/page/lr-smart-jsx.js +1 -1
- package/lib/core/sql-index-auditor.js +1 -1
- package/lib/core/sql-sync/config.js +1 -1
- package/lib/core/sql-sync/file-system.js +1 -1
- package/lib/core/sql-sync/hash.js +1 -1
- package/lib/core/sql-sync/lock.js +1 -1
- package/lib/core/sql-sync/utils.js +1 -1
- package/lib/core/sql-validator.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/error-output.js +1 -1
- package/lib/framework/explicit-yes.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-alias.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/supported-flags.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/generated/official-routing.js +1 -1
- package/lib/generated/routing-contract.js +1 -1
- package/lib/help.js +1 -1
- package/lib/postinstall.js +1 -1
- package/lib/runtime/confirmation.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/skills/builtin-skill.js +1 -1
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/skill-presence.js +1 -1
- package/lib/telemetry/cli-command-trace.js +1 -1
- package/lib/telemetry/cli-help-trace.js +1 -1
- package/lib/telemetry/ensure-cli-otel-config.js +1 -1
- package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
- package/lib/telemetry/send-cli-trace-log.js +1 -1
- package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
- package/lib/utils/ai_config.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cdn-config.js +1 -1
- package/lib/utils/check-sdk-version.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/config.js +1 -1
- package/lib/utils/entity-with-id.js +1 -1
- package/lib/utils/file-utils.js +1 -1
- package/lib/utils/guides-cdn.js +1 -1
- package/lib/utils/http-client.js +1 -1
- package/lib/utils/is-non-interactive.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/sleep.js +1 -1
- package/lib/utils/template-replacer.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/with-active-cookie.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
- package/skills/rabetbase/SKILL.md +1 -1
- package/skills/rabetbase.manifest.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a111_0x1ac6(){const _0x1ae79f=['Would\x20submit\x20an\x20administrative\x20deployment\x20metadata\x20backfill\x20or\x20recovery\x20job.','7320ueqyqP','confirm','application_deployment_sync','data','/smartapi/data-sync/submit','Backfill\x20or\x20recover\x20all\x20server-supported\x20application\x20metadata','job','unknown','not_needed','Deployment\x20sync\x20submission\x20response\x20was\x20unavailable;\x20job\x20creation\x20is\x20unknown.','Run\x20with\x20--dry-run\x20first,\x20then\x20add\x20--confirm.','9919651Wuknjz','No\x20deployment\x20synchronization\x20was\x20needed\x20for\x20this\x20app.','POST','7600480loBEex','deployment','855509PwwcJd','sync-all','--confirm\x20is\x20required\x20to\x20synchronize\x20all\x20application\x20metadata.','submitted','4939788qqEeua','Submit\x20an\x20administrative\x20metadata\x20backfill\x20or\x20recovery\x20synchronization.','5369586NYxCdt','Confirm\x20the\x20administrative\x20backfill\x20or\x20recovery\x20synchronization','2IFYmfE','jobId','boolean','not_submitted','8950401eVVNTm','appCode','Submitted\x20deployment\x20synchronization\x20job\x20','status','6590xcizuj'];a111_0x1ac6=function(){return _0x1ae79f;};return a111_0x1ac6();}const a111_0x5c9cd3=a111_0x4eb9;(function(_0xf1bd05,_0x451de0){const _0x20978c=a111_0x4eb9,_0x49a2f7=_0xf1bd05();while(!![]){try{const _0x5e5a9d=parseInt(_0x20978c(0xb9))/0x1*(parseInt(_0x20978c(0x9f))/0x2)+parseInt(_0x20978c(0x9d))/0x3+parseInt(_0x20978c(0xbd))/0x4+-parseInt(_0x20978c(0xa7))/0x5*(parseInt(_0x20978c(0xa9))/0x6)+-parseInt(_0x20978c(0xb4))/0x7+-parseInt(_0x20978c(0xb7))/0x8+parseInt(_0x20978c(0xa3))/0x9;if(_0x5e5a9d===_0x451de0)break;else _0x49a2f7['push'](_0x49a2f7['shift']());}catch(_0x369bad){_0x49a2f7['push'](_0x49a2f7['shift']());}}}(a111_0x1ac6,0xdba6e));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_0x4eb9(_0x2487b1,_0x318ca){_0x2487b1=_0x2487b1-0x9c;const _0x1ac6d1=a111_0x1ac6();let _0x4eb9a7=_0x1ac6d1[_0x2487b1];return _0x4eb9a7;}const SUBMIT_PATH=a111_0x5c9cd3(0xad),CONFIRM_FLAG={'name':'confirm','type':a111_0x5c9cd3(0xa1),'description':a111_0x5c9cd3(0x9e)};export const deploymentSyncAll={'service':a111_0x5c9cd3(0xb8),'command':a111_0x5c9cd3(0xba),'description':a111_0x5c9cd3(0xae),'risk':'write','strictFlags':!![],'structuredErrors':!![],'confirmationDescription':a111_0x5c9cd3(0x9c),'flags':[CONFIRM_FLAG,APPCODE_FLAG_OPTIONAL],async 'dryRun'(_0x7222b9){const _0xb87b57=a111_0x5c9cd3;return asDryRunResult(buildPreview(_0x7222b9[_0xb87b57(0xa4)]),{'method':_0xb87b57(0xb6),'url':SUBMIT_PATH,'description':_0xb87b57(0xa8)});},async 'execute'(_0x518de0){const _0x1e033f=a111_0x5c9cd3;if(!_0x518de0['bool'](_0x1e033f(0xaa)))throw CliErrors['validation'](_0x1e033f(0xbb),_0x1e033f(0xb3));try{const _0x5d285b=await submitDeploymentMetadataSyncAll({'appCode':_0x518de0[_0x1e033f(0xa4)]});if(_0x5d285b['outcome']===_0x1e033f(0xb1))return{'ok':!![],'data':{'operation':'application_deployment_sync','appCode':_0x518de0[_0x1e033f(0xa4)],'submitted':![],'outcome':'not_needed'},'message':_0x1e033f(0xb5)};return{'ok':!![],'data':{'operation':_0x1e033f(0xab),'appCode':_0x518de0[_0x1e033f(0xa4)],'submitted':!![],'outcome':_0x1e033f(0xbc),'jobId':_0x5d285b[_0x1e033f(0xaf)][_0x1e033f(0xa0)],'status':_0x5d285b['job'][_0x1e033f(0xa6)]},'message':_0x1e033f(0xa5)+_0x5d285b[_0x1e033f(0xaf)][_0x1e033f(0xa0)]+'.'};}catch(_0x98f7b0){if(!isPlatformTransportFailure(_0x98f7b0))throw _0x98f7b0;const _0x51ce0e=new CliError('deployment_sync_submit_outcome_unknown',0x2,_0x1e033f(0xb2),'List\x20recent\x20deployment\x20sync\x20jobs\x20before\x20deciding\x20whether\x20to\x20submit\x20again.');Object['defineProperty'](_0x51ce0e,_0x1e033f(0xac),{'enumerable':!![],'value':{'operation':_0x1e033f(0xab),'appCode':_0x518de0['appCode'],'submitted':null,'outcome':_0x1e033f(0xb0)}});throw _0x51ce0e;}}};function buildPreview(_0x2e8d77){const _0x4ba335=a111_0x5c9cd3;return{'operation':'application_deployment_sync','selector':{'appCode':_0x2e8d77,'scope':'all_server_supported_metadata'},'before':null,'after':null,'dryRun':!![],'backend':{'submitted':![],'outcome':_0x4ba335(0xa2)},'warnings':[]};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a112_0x43b997=a112_0xac7b;(function(_0x32309c,_0x11055f){const _0x544e20=a112_0xac7b,_0x29d72c=_0x32309c();while(!![]){try{const _0x4ce2bf=parseInt(_0x544e20(0xbb))/0x1*(parseInt(_0x544e20(0xab))/0x2)+-parseInt(_0x544e20(0xbf))/0x3+-parseInt(_0x544e20(0xa8))/0x4*(-parseInt(_0x544e20(0xb5))/0x5)+parseInt(_0x544e20(0xaf))/0x6*(-parseInt(_0x544e20(0xb8))/0x7)+parseInt(_0x544e20(0xbd))/0x8*(-parseInt(_0x544e20(0xb3))/0x9)+-parseInt(_0x544e20(0xa3))/0xa+parseInt(_0x544e20(0xa6))/0xb;if(_0x4ce2bf===_0x11055f)break;else _0x29d72c['push'](_0x29d72c['shift']());}catch(_0x4eeec9){_0x29d72c['push'](_0x29d72c['shift']());}}}(a112_0x5d97,0xe699c));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{listDeploymentMetadataSyncJobs}from'../../core/api-client.js';function a112_0xac7b(_0x81f76,_0x8ed25f){_0x81f76=_0x81f76-0xa2;const _0x5d97d8=a112_0x5d97();let _0xac7ba9=_0x5d97d8[_0x81f76];return _0xac7ba9;}import{CliErrors}from'../../errors.js';export const deploymentSyncJobs={'service':a112_0x43b997(0xa4),'command':a112_0x43b997(0xbe),'description':a112_0x43b997(0xb4),'risk':a112_0x43b997(0xb1),'strictFlags':!![],'structuredErrors':!![],'flags':[{'name':a112_0x43b997(0xae),'type':a112_0x43b997(0xad),'default':0x1,'description':a112_0x43b997(0xb0)},{'name':a112_0x43b997(0xb7),'type':a112_0x43b997(0xad),'default':0xa,'description':'Items\x20per\x20page\x20(maximum\x20100)'},{'name':'status','type':'string','description':a112_0x43b997(0xa9)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x1e2869){const _0x465d63=a112_0x43b997;readPaging(_0x1e2869[_0x465d63(0xb2)](_0x465d63(0xae),0x1),_0x1e2869['num'](_0x465d63(0xb7),0xa));},async 'execute'(_0x464b6e){const _0x5a3951=a112_0x43b997,{currentPage:_0x24e1ea,pageSize:_0x180484}=readPaging(_0x464b6e[_0x5a3951(0xb2)]('current-page',0x1),_0x464b6e[_0x5a3951(0xb2)](_0x5a3951(0xb7),0xa)),_0x1e8047=_0x464b6e[_0x5a3951(0xac)](_0x5a3951(0xbc))['trim'](),_0x211403=await listDeploymentMetadataSyncJobs({'appCode':_0x464b6e[_0x5a3951(0xba)],'currentPage':_0x24e1ea,'pageSize':_0x180484,..._0x1e8047?{'status':_0x1e8047}:{}});return{'ok':!![],'data':{'appCode':_0x464b6e[_0x5a3951(0xba)],..._0x211403},'message':_0x5a3951(0xa5)+_0x211403[_0x5a3951(0xc0)]['length']+_0x5a3951(0xaa)};}};function a112_0x5d97(){const _0x5c2072=['status','12569216eMKspa','sync-jobs','3818004KpGGZY','items','--current-page\x20must\x20be\x20a\x20positive\x20integer.','1593650IDLmLp','deployment','Found\x20','16642571NPswuW','validation','24imXeXy','Optional\x20server-defined\x20job\x20status\x20filter','\x20deployment\x20synchronization\x20job(s).','469690BGJUjI','str','number','current-page','1506mjkjjk','Page\x20number','read','num','9CohVpS','List\x20application\x20deployment\x20synchronization\x20jobs','1180075PpBYKx','isSafeInteger','page-size','17437izZLEP','--page-size\x20must\x20be\x20an\x20integer\x20from\x201\x20to\x20100.','appCode','7aCkFif'];a112_0x5d97=function(){return _0x5c2072;};return a112_0x5d97();}function readPaging(_0x34899d,_0x984040){const _0x14c4a2=a112_0x43b997;if(!Number['isSafeInteger'](_0x34899d)||_0x34899d<0x1)throw CliErrors['validation'](_0x14c4a2(0xa2));if(!Number[_0x14c4a2(0xb6)](_0x984040)||_0x984040<0x1||_0x984040>0x64)throw CliErrors[_0x14c4a2(0xa7)](_0x14c4a2(0xb9));return{'currentPage':_0x34899d,'pageSize':_0x984040};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a113_0x21d8b8=a113_0x1baa;(function(_0x5b41d1,_0x5b55d4){const _0x1b5c7a=a113_0x1baa,_0xd90018=_0x5b41d1();while(!![]){try{const _0x3560db=-parseInt(_0x1b5c7a(0x158))/0x1+parseInt(_0x1b5c7a(0x160))/0x2+-parseInt(_0x1b5c7a(0x15d))/0x3*(parseInt(_0x1b5c7a(0x16b))/0x4)+parseInt(_0x1b5c7a(0x162))/0x5*(-parseInt(_0x1b5c7a(0x15b))/0x6)+parseInt(_0x1b5c7a(0x15f))/0x7+-parseInt(_0x1b5c7a(0x15a))/0x8+parseInt(_0x1b5c7a(0x155))/0x9;if(_0x3560db===_0x5b55d4)break;else _0xd90018['push'](_0xd90018['shift']());}catch(_0x3dddb4){_0xd90018['push'](_0xd90018['shift']());}}}(a113_0x5bc3,0xa374e));import{getDeploymentMetadataSyncStatus}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const TERMINAL_STATUSES=new Set([a113_0x21d8b8(0x156),a113_0x21d8b8(0x159),a113_0x21d8b8(0x16c)]),ACTIVE_STATUSES=new Set([a113_0x21d8b8(0x168),a113_0x21d8b8(0x161)]);export const deploymentSyncStatus={'service':a113_0x21d8b8(0x154),'command':a113_0x21d8b8(0x166),'description':'Get\x20application\x20deployment\x20synchronization\x20job\x20status','risk':'read','requiresAppCode':!![],'strictFlags':!![],'structuredErrors':!![],'flags':[{'name':a113_0x21d8b8(0x152),'type':'number','required':!![],'description':'Deployment\x20synchronization\x20job\x20ID'}],async 'validate'(_0x48636c){const _0x596dd3=a113_0x21d8b8;readJobId(_0x48636c['num'](_0x596dd3(0x152)));},async 'execute'(_0x41bd11){const _0x2c30b1=a113_0x21d8b8,_0x56cb6c=readJobId(_0x41bd11[_0x2c30b1(0x15e)](_0x2c30b1(0x152))),_0x3ef1dc=await getDeploymentMetadataSyncStatus({'jobId':_0x56cb6c,'appCode':_0x41bd11[_0x2c30b1(0x153)]}),_0x3cd526=TERMINAL_STATUSES[_0x2c30b1(0x150)](_0x3ef1dc[_0x2c30b1(0x151)])?!![]:ACTIVE_STATUSES[_0x2c30b1(0x150)](_0x3ef1dc[_0x2c30b1(0x151)])?![]:null,_0x90b91f=countBy(_0x3ef1dc[_0x2c30b1(0x157)][_0x2c30b1(0x16a)](_0x2d350c=>_0x2d350c['bizType'])),_0x252329=countBy(_0x3ef1dc[_0x2c30b1(0x157)]['map'](_0x262e76=>_0x262e76[_0x2c30b1(0x169)])),_0x27a1c0=_0x3cd526===null?[_0x2c30b1(0x167)+_0x3ef1dc[_0x2c30b1(0x151)]+';\x20terminal\x20state\x20is\x20unknown\x20to\x20this\x20CLI\x20version.']:[];return{'ok':!![],'data':{'job':_0x3ef1dc,'isTerminal':_0x3cd526,'summary':{'total':_0x3ef1dc[_0x2c30b1(0x157)][_0x2c30b1(0x14f)],'failed':_0x3ef1dc[_0x2c30b1(0x157)][_0x2c30b1(0x164)](_0x32e5cf=>_0x32e5cf[_0x2c30b1(0x169)]===_0x2c30b1(0x16c))['length'],'byBizType':_0x90b91f,'byAction':_0x252329},'warnings':_0x27a1c0},'message':'Deployment\x20synchronization\x20job\x20'+_0x56cb6c+_0x2c30b1(0x15c)+_0x3ef1dc[_0x2c30b1(0x151)]+'.'};}};function readJobId(_0x2bbc4c){const _0x3d413c=a113_0x21d8b8;if(!Number[_0x3d413c(0x165)](_0x2bbc4c)||_0x2bbc4c<=0x0)throw CliErrors[_0x3d413c(0x163)]('--job-id\x20must\x20be\x20a\x20positive\x20integer.');return _0x2bbc4c;}function countBy(_0x1f1ff0){return _0x1f1ff0['reduce']((_0x8283fa,_0x30606d)=>{return _0x8283fa[_0x30606d]=(_0x8283fa[_0x30606d]??0x0)+0x1,_0x8283fa;},{});}function a113_0x1baa(_0x11a577,_0x5e263e){_0x11a577=_0x11a577-0x14f;const _0x5bc3ef=a113_0x5bc3();let _0x1baadd=_0x5bc3ef[_0x11a577];return _0x1baadd;}function a113_0x5bc3(){const _0x1def9f=['action','map','20pXoqTK','FAILED','length','has','status','job-id','appCode','deployment','20625228YvqthS','SUCCESS','results','1157236wcSGzw','PARTIAL_SUCCESS','8751112AwbNVD','5928402rQdRGT','\x20is\x20','427407xJGFjj','num','8350069nXgDpD','2272992uSWycA','RUNNING','5xZzTAF','validation','filter','isSafeInteger','sync-status','Preserved\x20server-defined\x20status\x20','PENDING'];a113_0x5bc3=function(){return _0x1def9f;};return a113_0x5bc3();}
|
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_0x19055e=a114_0x5a0f;(function(_0x1d5ec6,_0x23c2b9){const _0x1ea028=a114_0x5a0f,_0x981291=_0x1d5ec6();while(!![]){try{const _0x155695=parseInt(_0x1ea028(0x125))/0x1*(parseInt(_0x1ea028(0xa2))/0x2)+parseInt(_0x1ea028(0xe4))/0x3*(parseInt(_0x1ea028(0xf6))/0x4)+-parseInt(_0x1ea028(0x119))/0x5+parseInt(_0x1ea028(0x127))/0x6+parseInt(_0x1ea028(0x111))/0x7+parseInt(_0x1ea028(0x11d))/0x8+-parseInt(_0x1ea028(0xb3))/0x9;if(_0x155695===_0x23c2b9)break;else _0x981291['push'](_0x981291['shift']());}catch(_0xca3741){_0x981291['push'](_0x981291['shift']());}}}(a114_0x5146,0x87b98));import a114_0x142da9 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_0x5a0f(_0x46b371,_0x2f391d){_0x46b371=_0x46b371-0xa0;const _0x5146fa=a114_0x5146();let _0x5a0f2d=_0x5146fa[_0x46b371];return _0x5a0f2d;}import{buildAppDoctorFields}from'../config/schema.js';import{resolveEffectiveRegion}from'../config/region-config.js';function a114_0x5146(){const _0x22f2d6=['✓\x20Valid\x20JSON','status','\x20\x20runtimeDomain:\x20\x20\x20','Global','global','\x20\x20appDomain:\x20\x20\x20\x20\x20\x20\x20','length','installedPath','globalConfig','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','routing','reason','\x20\x20Repair\x20global:\x20\x20\x20','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','✗\x20Invalid','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Repair\x20project:\x20\x20','currentApp','\x20doctor','repairCommand','✗\x20Expired','version','toLowerCase','message','unknown','(not\x20set)','\x20config\x20delete\x20routing','\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','default','(missing)','log','regionSource','(not\x20found)','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20kbDomain:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Config\x20Files','(default:\x20','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','defaultApp','(set\x20via\x20file,\x20length=','keys','32748hvvdLw','current','gray','\x20config','missing','\x20←\x20current','\x20\x20Legacy\x20inherit:\x20\x20\x20','source','\x20\x20\x20\x20region:\x20\x20\x20\x20\x20','\x20\x20Repair\x20global:\x20\x20\x20\x20','push','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','region','doctor','\x20(default)','repeat','projectConfig','(default)','12tHUnPX','.region\x20to\x20cn\x20or\x20id\x20in\x20','slice','\x20\x20Package\x20Version:\x20','\x20(invalid)','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Built-in\x20Skill','prototype','empty','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','padEnd','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20skillDomain:\x20\x20\x20\x20\x20','(set,\x20length=','state','✓\x20Valid','Unavailable\x20until\x20routing\x20configuration\x20is\x20repaired','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Repair\x20project:\x20\x20\x20','\x20\x20API\x20Endpoints','Project','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','call','\x20app\x20\x22','\x20+\x20','✗\x20Not\x20logged\x20in','6634586hhlpcl','locale','\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','string','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','read','value','filter','2395805xwXBbM','project','packageVersion','⚠\x20Empty\x20(treated\x20as\x20{})','8032072xGkPXW','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','cookie','\x20config\x20delete\x20region\x20--global','ignored\x20in\x20','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20app\x20locale:\x20\x20\x20\x20\x20\x20','307KQuznR','apiDir','4649550jNLjoo','format','null','(no\x20file)','join','apps','raw','bold','explicitAppName','\x20config\x20delete\x20inherit\x20--global','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','1096MrRaaT','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','(none)','\x20config\x20delete\x20routing\x20--global','\x20\x20Config\x20JSON','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','yellow','inherit','red','label','riskLevel','green','accessKey','\x20config\x20delete\x20inherit','\x20\x20kbServiceDomain:\x20','\x20\x20─','env','17033643PFGMhy','skillVersion','hasOwnProperty','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','\x20\x20Apps','Repair\x20','regionConfiguredValue'];a114_0x5146=function(){return _0x22f2d6;};return a114_0x5146();}import{inspectBuiltinSkill}from'../skills/builtin-skill.js';import{DEFAULT_LOVRABET_REGION,isInvalidLovrabetRegion}from'../constant/region.js';function describeRegionValue(_0x1588d8){const _0x28cb85=a114_0x5a0f;return typeof _0x1588d8===_0x28cb85(0x114)?JSON['stringify'](_0x1588d8):'<'+(_0x1588d8===null?_0x28cb85(0x129):typeof _0x1588d8)+'>';}async function execute(_0x2d3934){const _0x6adde1=a114_0x5a0f,_0x4c4127=GIT_COMMIT!==_0x6adde1(0xd2)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x6adde1(0xf8)](0x0,0xa)+')':VERSION,_0x3225ec=buildConfigFromFlags({}),_0x3faf5b=getCookie();let _0x48a084;try{await initGlobalEnvironment(_0x3225ec);}catch(_0x3db235){_0x48a084=_0x3db235 instanceof Error?_0x3db235:new Error(String(_0x3db235));}console[_0x6adde1(0xd8)](),console['log'](a114_0x142da9['bold'](CLI_BIN_NAME+_0x6adde1(0xcc))),console[_0x6adde1(0xd8)](a114_0x142da9[_0x6adde1(0xe6)]('─'[_0x6adde1(0xf3)](0x32))),console[_0x6adde1(0xd8)](_0x6adde1(0xff)+_0x4c4127),console[_0x6adde1(0xd8)]('\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+process[_0x6adde1(0xcf)]),console[_0x6adde1(0xd8)](_0x6adde1(0xa0)+process['platform']+'\x20'+process['arch']);const _0x3f47f6=inspectBuiltinSkill();console['log'](),console[_0x6adde1(0xd8)](a114_0x142da9[_0x6adde1(0x12e)](_0x6adde1(0xfc))),console[_0x6adde1(0xd8)](a114_0x142da9[_0x6adde1(0xe6)]('\x20\x20─'[_0x6adde1(0xf3)](0x1e)));const _0x59461c=_0x3f47f6[_0x6adde1(0x105)]==='current'?a114_0x142da9[_0x6adde1(0xad)]('✓\x20'+_0x3f47f6['state']):a114_0x142da9[_0x6adde1(0xaa)]('✗\x20'+_0x3f47f6[_0x6adde1(0x105)]);console[_0x6adde1(0xd8)](_0x6adde1(0xd5)+_0x59461c),console[_0x6adde1(0xd8)](_0x6adde1(0xf9)+_0x3f47f6[_0x6adde1(0x11b)]),console['log']('\x20\x20Skill\x20Version:\x20\x20\x20'+(_0x3f47f6[_0x6adde1(0xb4)]||a114_0x142da9[_0x6adde1(0xe6)]('(unknown)'))),console[_0x6adde1(0xd8)]('\x20\x20Installed\x20Path:\x20\x20'+(_0x3f47f6[_0x6adde1(0xc1)]||a114_0x142da9[_0x6adde1(0xe6)](_0x6adde1(0xda))));if(_0x3f47f6[_0x6adde1(0xc5)])console['log'](_0x6adde1(0x100)+_0x3f47f6[_0x6adde1(0xc5)]);_0x3f47f6[_0x6adde1(0x105)]!==_0x6adde1(0xe5)&&console[_0x6adde1(0xd8)](_0x6adde1(0x123)+_0x3f47f6[_0x6adde1(0xcd)]);console[_0x6adde1(0xd8)](),console['log'](a114_0x142da9[_0x6adde1(0x12e)](_0x6adde1(0xdd))),console[_0x6adde1(0xd8)](a114_0x142da9[_0x6adde1(0xe6)](_0x6adde1(0xb1)['repeat'](0x1e)));const _0x987f48=getGlobalConfigPath(),_0xea5ad2=getProjectConfigPath();console['log'](_0x6adde1(0xdf)+(_0x987f48||a114_0x142da9['gray'](_0x6adde1(0xda)))),console['log'](_0x6adde1(0x115)+(_0xea5ad2||a114_0x142da9['gray'](_0x6adde1(0xda)))),console[_0x6adde1(0xd8)](),console[_0x6adde1(0xd8)](a114_0x142da9[_0x6adde1(0x12e)](_0x6adde1(0xa6))),console[_0x6adde1(0xd8)](a114_0x142da9[_0x6adde1(0xe6)](_0x6adde1(0xb1)[_0x6adde1(0xf3)](0x1e)));const _0x857975=(_0x29a1bf,_0x25cc59)=>{const _0x376ead=_0x6adde1;if(!_0x25cc59){console[_0x376ead(0xd8)]('\x20\x20'+_0x29a1bf[_0x376ead(0x101)](0x11)+'\x20'+a114_0x142da9['gray'](_0x376ead(0x12a)));return;}const _0x1f4728=inspectCliConfigJsonFile(_0x25cc59);if(_0x1f4728['status']==='ok')console[_0x376ead(0xd8)]('\x20\x20'+_0x29a1bf[_0x376ead(0x101)](0x11)+'\x20'+a114_0x142da9[_0x376ead(0xad)](_0x376ead(0xba)));else{if(_0x1f4728['status']===_0x376ead(0xfe))console['log']('\x20\x20'+_0x29a1bf[_0x376ead(0x101)](0x11)+'\x20'+a114_0x142da9[_0x376ead(0xa8)](_0x376ead(0x11c)));else _0x1f4728[_0x376ead(0xbb)]===_0x376ead(0xe8)?console[_0x376ead(0xd8)]('\x20\x20'+_0x29a1bf[_0x376ead(0x101)](0x11)+'\x20'+a114_0x142da9[_0x376ead(0xe6)](_0x376ead(0xd7))):(console[_0x376ead(0xd8)]('\x20\x20'+_0x29a1bf['padEnd'](0x11)+'\x20'+a114_0x142da9[_0x376ead(0xaa)]('✗\x20Invalid\x20JSON')),console[_0x376ead(0xd8)]('\x20\x20'+''[_0x376ead(0x101)](0x11)+'\x20'+a114_0x142da9['red'](_0x1f4728[_0x376ead(0xd1)])));}};_0x857975(_0x6adde1(0xbd),_0x987f48),_0x857975(_0x6adde1(0x10b),_0xea5ad2);const _0x1ccf78=loadRawConfigLayers(),_0x2a4002=[{'label':_0x6adde1(0x10b),'value':_0x1ccf78[_0x6adde1(0xf4)][_0x6adde1(0xf0)],'present':Object[_0x6adde1(0xfd)][_0x6adde1(0xb5)][_0x6adde1(0x10d)](_0x1ccf78[_0x6adde1(0xf4)],_0x6adde1(0xf0)),'repairCommand':CLI_BIN_NAME+'\x20config\x20delete\x20region'},{'label':_0x6adde1(0xbd),'value':_0x1ccf78['globalConfig'][_0x6adde1(0xf0)],'present':Object[_0x6adde1(0xfd)][_0x6adde1(0xb5)][_0x6adde1(0x10d)](_0x1ccf78[_0x6adde1(0xc2)],_0x6adde1(0xf0)),'repairCommand':CLI_BIN_NAME+_0x6adde1(0x120)}][_0x6adde1(0x118)](_0x1d6c94=>_0x1d6c94['present']&&isInvalidLovrabetRegion(_0x1d6c94[_0x6adde1(0x117)]));for(const [_0x32e9eb,_0x5ce039]of[[_0x6adde1(0x10b),_0x1ccf78[_0x6adde1(0xf4)]],['Global',_0x1ccf78[_0x6adde1(0xc2)]]]){const _0xd93c3=_0x5ce039['apps']&&typeof _0x5ce039[_0x6adde1(0x12c)]==='object'?_0x5ce039[_0x6adde1(0x12c)]:{};for(const [_0x572f61,_0x40518d]of Object['entries'](_0xd93c3)){if(!_0x40518d||typeof _0x40518d!=='object'||!Object[_0x6adde1(0xfd)][_0x6adde1(0xb5)][_0x6adde1(0x10d)](_0x40518d,_0x6adde1(0xf0)))continue;isInvalidLovrabetRegion(_0x40518d[_0x6adde1(0xf0)])&&_0x2a4002[_0x6adde1(0xee)]({'label':_0x32e9eb+_0x6adde1(0x10e)+_0x572f61+'\x22','value':_0x40518d['region'],'present':!![],'repairCommand':'Set\x20apps.'+_0x572f61+_0x6adde1(0xf7)+_0x32e9eb[_0x6adde1(0xd0)]()+_0x6adde1(0xe7)});}}if(_0x2a4002['length']>0x0){console[_0x6adde1(0xd8)](),console['log'](a114_0x142da9['bold']('\x20\x20Country/Region\x20Configuration')),console[_0x6adde1(0xd8)](a114_0x142da9[_0x6adde1(0xe6)](_0x6adde1(0xb1)[_0x6adde1(0xf3)](0x1e)));for(const _0x1c76ea of _0x2a4002){console[_0x6adde1(0xd8)]('\x20\x20'+_0x1c76ea[_0x6adde1(0xab)][_0x6adde1(0x101)](0x11)+'\x20'+a114_0x142da9[_0x6adde1(0xaa)]('✗\x20Invalid\x20'+describeRegionValue(_0x1c76ea[_0x6adde1(0x117)]))),console[_0x6adde1(0xd8)]('\x20\x20'+(_0x6adde1(0xb8)+_0x1c76ea[_0x6adde1(0xab)][_0x6adde1(0xd0)]()+':')[_0x6adde1(0x101)](0x10)+'\x20'+_0x1c76ea[_0x6adde1(0xcd)]);}}const _0x2284f5=[Object['prototype'][_0x6adde1(0xb5)][_0x6adde1(0x10d)](_0x1ccf78[_0x6adde1(0xc2)],_0x6adde1(0xa9))?_0x6adde1(0xbe):null,Object['prototype']['hasOwnProperty'][_0x6adde1(0x10d)](_0x1ccf78[_0x6adde1(0xf4)],_0x6adde1(0xa9))?_0x6adde1(0x11a):null][_0x6adde1(0x118)](Boolean);_0x2284f5[_0x6adde1(0xc0)]>0x0&&(console[_0x6adde1(0xd8)](_0x6adde1(0xea)+a114_0x142da9[_0x6adde1(0xa8)](_0x6adde1(0x121)+_0x2284f5[_0x6adde1(0x12b)](_0x6adde1(0x10f))+_0x6adde1(0xe7))),_0x2284f5['includes'](_0x6adde1(0x11a))&&console['log'](_0x6adde1(0x109)+CLI_BIN_NAME+_0x6adde1(0xaf)),_0x2284f5['includes'](_0x6adde1(0xbe))&&console['log'](_0x6adde1(0xed)+CLI_BIN_NAME+_0x6adde1(0x130)));const _0x240373=isInvalidLovrabetRegion(_0x3225ec[_0x6adde1(0xb9)]??_0x3225ec[_0x6adde1(0x12d)]?.[_0x6adde1(0xf0)]);_0x48a084&&!_0x240373&&(console[_0x6adde1(0xd8)](),console[_0x6adde1(0xd8)](a114_0x142da9[_0x6adde1(0x12e)]('\x20\x20Routing\x20Configuration')),console[_0x6adde1(0xd8)](a114_0x142da9[_0x6adde1(0xe6)](_0x6adde1(0xb1)[_0x6adde1(0xf3)](0x1e))),console[_0x6adde1(0xd8)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a114_0x142da9[_0x6adde1(0xaa)](_0x6adde1(0xc8))),console['log'](_0x6adde1(0x100)+_0x48a084[_0x6adde1(0xd1)]),Object['prototype'][_0x6adde1(0xb5)][_0x6adde1(0x10d)](_0x1ccf78[_0x6adde1(0xf4)],_0x6adde1(0xc4))&&console[_0x6adde1(0xd8)](_0x6adde1(0xca)+CLI_BIN_NAME+_0x6adde1(0xd4)),Object['prototype'][_0x6adde1(0xb5)][_0x6adde1(0x10d)](_0x1ccf78[_0x6adde1(0xc2)],'routing')&&console[_0x6adde1(0xd8)](_0x6adde1(0xc6)+CLI_BIN_NAME+_0x6adde1(0xa5)));console[_0x6adde1(0xd8)](),console[_0x6adde1(0xd8)](a114_0x142da9['bold']('\x20\x20Merged\x20Config')),console[_0x6adde1(0xd8)](a114_0x142da9[_0x6adde1(0xe6)](_0x6adde1(0xb1)[_0x6adde1(0xf3)](0x1e))),console['log'](_0x6adde1(0xe0)+(_0x3225ec['appCode']||a114_0x142da9['red'](_0x6adde1(0xd3))));const _0x3e9b1c=_0x240373?a114_0x142da9['red'](describeRegionValue(_0x3225ec['regionConfiguredValue']??_0x3225ec[_0x6adde1(0x12d)]?.[_0x6adde1(0xf0)])+_0x6adde1(0xfa)):(_0x3225ec[_0x6adde1(0xf0)]??DEFAULT_LOVRABET_REGION)+'\x20('+(_0x3225ec[_0x6adde1(0xd9)]??_0x6adde1(0xd6))+')';console[_0x6adde1(0xd8)]('\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x3e9b1c),console[_0x6adde1(0xd8)](_0x6adde1(0xef)+_0x3225ec[_0x6adde1(0xb2)]),console[_0x6adde1(0xd8)](_0x6adde1(0x124)+_0x3225ec[_0x6adde1(0x112)]),console[_0x6adde1(0xd8)](_0x6adde1(0x108)+_0x3225ec[_0x6adde1(0x126)]),console[_0x6adde1(0xd8)](_0x6adde1(0xc3)+(_0x3225ec[_0x6adde1(0xe1)]||a114_0x142da9['gray'](_0x6adde1(0xa4)))),console['log'](_0x6adde1(0x122)+(_0x3225ec['currentApp']||a114_0x142da9[_0x6adde1(0xe6)](_0x6adde1(0xa4)))),console[_0x6adde1(0xd8)]('\x20\x20explicitAppName:\x20'+(_0x3225ec[_0x6adde1(0x12f)]||a114_0x142da9[_0x6adde1(0xe6)]('(none)'))),console['log'](_0x6adde1(0x102)+(_0x3225ec[_0x6adde1(0x128)]||a114_0x142da9[_0x6adde1(0xe6)](_0x6adde1(0xde)+DEFAULT_CONFIG_VALUES['format']+')'))),console[_0x6adde1(0xd8)](_0x6adde1(0xdb)+(_0x3225ec['pageSize']??a114_0x142da9['gray'](_0x6adde1(0xf5)))),console['log'](_0x6adde1(0xb6)+_0x3225ec[_0x6adde1(0xac)]),console['log']('\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x3225ec['verbose']),console[_0x6adde1(0xd8)](_0x6adde1(0xc9)+(_0x3225ec['cookie']?a114_0x142da9[_0x6adde1(0xad)](_0x6adde1(0x104)+_0x3225ec[_0x6adde1(0x11f)]['length']+')'):_0x3faf5b?a114_0x142da9[_0x6adde1(0xad)](_0x6adde1(0xe2)+_0x3faf5b[_0x6adde1(0xc0)]+')'):a114_0x142da9[_0x6adde1(0xe6)]('(none)')));const _0x5180cd=Object[_0x6adde1(0xe3)](_0x3225ec['apps']);if(_0x5180cd[_0x6adde1(0xc0)]>0x0){console[_0x6adde1(0xd8)](),console[_0x6adde1(0xd8)](a114_0x142da9['bold'](_0x6adde1(0xb7))),console[_0x6adde1(0xd8)](a114_0x142da9['gray'](_0x6adde1(0xb1)[_0x6adde1(0xf3)](0x1e)));for(const _0x1227d4 of _0x5180cd){const _0x43ab2d=_0x3225ec[_0x6adde1(0x12c)][_0x1227d4],_0x3e3de1=_0x1227d4===_0x3225ec[_0x6adde1(0xe1)],_0xd23b32=_0x1227d4===_0x3225ec[_0x6adde1(0xcb)],_0x5cdb19=_0xd23b32?a114_0x142da9[_0x6adde1(0xad)](_0x6adde1(0xe9)):'',_0x147bbe=_0x3e3de1?_0x6adde1(0xf2):'';console['log']('\x20\x20'+_0x1227d4+_0x147bbe+_0x5cdb19),console[_0x6adde1(0xd8)](_0x6adde1(0x10c)+_0x43ab2d['appcode']);const _0x35f588=_0x1ccf78[_0x6adde1(0xf4)][_0x6adde1(0x12c)]&&typeof _0x1ccf78[_0x6adde1(0xf4)]['apps']==='object'?_0x1ccf78[_0x6adde1(0xf4)][_0x6adde1(0x12c)]:{},_0x57b358=Object[_0x6adde1(0xfd)]['hasOwnProperty'][_0x6adde1(0x10d)](_0x35f588,_0x1227d4),_0x5da25e=isInvalidLovrabetRegion(_0x43ab2d[_0x6adde1(0xf0)])?{'region':_0x3225ec['region']??DEFAULT_LOVRABET_REGION}:resolveEffectiveRegion({'appRegion':_0x43ab2d[_0x6adde1(0xf0)],'projectRegion':_0x57b358?_0x1ccf78[_0x6adde1(0xf4)]['region']:undefined,'globalRegion':_0x1ccf78[_0x6adde1(0xc2)][_0x6adde1(0xf0)],'mergedRegion':_0x3225ec['raw'][_0x6adde1(0xf0)],'appName':_0x1227d4}),_0x166cd8=buildAppDoctorFields(_0x43ab2d,{'region':_0x5da25e['region'],'env':_0x3225ec['env'],'apiDir':_0x3225ec[_0x6adde1(0x12d)]['apiDir']||DEFAULT_CONFIG_VALUES[_0x6adde1(0x126)],'cookie':_0x3225ec[_0x6adde1(0x11f)]||_0x3faf5b||undefined,'accessKey':_0x3225ec[_0x6adde1(0xae)]});console[_0x6adde1(0xd8)](_0x6adde1(0xec)+_0x166cd8[_0x6adde1(0xf0)][_0x6adde1(0x117)]+'\x20\x20'+a114_0x142da9['gray']('('+_0x166cd8['region'][_0x6adde1(0xeb)]+')')),console[_0x6adde1(0xd8)](_0x6adde1(0xa7)+_0x166cd8[_0x6adde1(0xb2)][_0x6adde1(0x117)]+'\x20\x20'+a114_0x142da9[_0x6adde1(0xe6)]('('+_0x166cd8[_0x6adde1(0xb2)][_0x6adde1(0xeb)]+')')),console['log'](_0x6adde1(0xc7)+_0x166cd8[_0x6adde1(0x126)][_0x6adde1(0x117)]+'\x20\x20'+a114_0x142da9['gray']('('+_0x166cd8[_0x6adde1(0x126)]['source']+')'));const _0x327675=_0x166cd8[_0x6adde1(0x11f)][_0x6adde1(0x117)]?a114_0x142da9[_0x6adde1(0xad)]('(set,\x20length='+_0x166cd8[_0x6adde1(0x11f)][_0x6adde1(0x117)][_0x6adde1(0xc0)]+')'):a114_0x142da9[_0x6adde1(0xe6)](_0x6adde1(0xa4));console[_0x6adde1(0xd8)]('\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20'+_0x327675+'\x20\x20'+a114_0x142da9[_0x6adde1(0xe6)]('('+_0x166cd8[_0x6adde1(0x11f)][_0x6adde1(0xeb)]+')'));const _0x4db040=_0x166cd8['accessKey'][_0x6adde1(0x117)]?a114_0x142da9[_0x6adde1(0xad)](_0x6adde1(0x104)+_0x166cd8[_0x6adde1(0xae)][_0x6adde1(0x117)][_0x6adde1(0xc0)]+')'):a114_0x142da9[_0x6adde1(0xe6)](_0x6adde1(0xa4));console[_0x6adde1(0xd8)]('\x20\x20\x20\x20accessKey:\x20\x20'+_0x4db040+'\x20\x20'+a114_0x142da9['gray']('('+_0x166cd8[_0x6adde1(0xae)][_0x6adde1(0xeb)]+')'));}}console[_0x6adde1(0xd8)](),console['log'](a114_0x142da9[_0x6adde1(0x12e)](_0x6adde1(0x10a))),console[_0x6adde1(0xd8)](a114_0x142da9[_0x6adde1(0xe6)](_0x6adde1(0xb1)[_0x6adde1(0xf3)](0x1e)));_0x48a084?console[_0x6adde1(0xd8)](_0x6adde1(0xfb)+a114_0x142da9[_0x6adde1(0xaa)](_0x6adde1(0x107))):(console[_0x6adde1(0xd8)](_0x6adde1(0x113)+getActiveRegion()),console[_0x6adde1(0xd8)](_0x6adde1(0xa1)+getApiDomain()),console[_0x6adde1(0xd8)](_0x6adde1(0xa3)+getUserDomain()),console[_0x6adde1(0xd8)](_0x6adde1(0xbc)+getRuntimeDomain()),console['log'](_0x6adde1(0x103)+getSkillDomain()),console[_0x6adde1(0xd8)](_0x6adde1(0xdc)+getKbDomain()),console[_0x6adde1(0xd8)](_0x6adde1(0xb0)+(getKbServiceDomain()??'not\x20configured')),console[_0x6adde1(0xd8)](_0x6adde1(0xbf)+getAppDomain()));console['log'](),console[_0x6adde1(0xd8)](a114_0x142da9[_0x6adde1(0x12e)]('\x20\x20Auth')),console[_0x6adde1(0xd8)](a114_0x142da9[_0x6adde1(0xe6)](_0x6adde1(0xb1)[_0x6adde1(0xf3)](0x1e)));if(_0x48a084)console[_0x6adde1(0xd8)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a114_0x142da9[_0x6adde1(0xa8)]('Not\x20checked\x20until\x20routing\x20configuration\x20is\x20repaired'));else{if(_0x3faf5b){const _0x24b5a4=await getIsSessionValid();console[_0x6adde1(0xd8)](_0x6adde1(0xfb)+(_0x24b5a4?a114_0x142da9[_0x6adde1(0xad)](_0x6adde1(0x106)):a114_0x142da9[_0x6adde1(0xaa)](_0x6adde1(0xce))));}else console['log'](_0x6adde1(0xfb)+a114_0x142da9['red'](_0x6adde1(0x110)));}return console[_0x6adde1(0xd8)](),{'ok':!![]};}export const doctorDefinition={'service':a114_0x19055e(0xf1),'command':'check','description':a114_0x19055e(0x11e),'risk':a114_0x19055e(0x116),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a115_0x4e024c=a115_0x281e;(function(_0x44baea,_0x12e632){const _0x136c2d=a115_0x281e,_0x1aa162=_0x44baea();while(!![]){try{const _0x1aebfe=parseInt(_0x136c2d(0xb2))/0x1+-parseInt(_0x136c2d(0xb4))/0x2+parseInt(_0x136c2d(0xc7))/0x3*(-parseInt(_0x136c2d(0xb6))/0x4)+-parseInt(_0x136c2d(0xc4))/0x5*(-parseInt(_0x136c2d(0xb8))/0x6)+parseInt(_0x136c2d(0xae))/0x7+-parseInt(_0x136c2d(0xb0))/0x8+-parseInt(_0x136c2d(0xb5))/0x9*(parseInt(_0x136c2d(0xba))/0xa);if(_0x1aebfe===_0x12e632)break;else _0x1aa162['push'](_0x1aa162['shift']());}catch(_0x5bcc67){_0x1aa162['push'](_0x1aa162['shift']());}}}(a115_0x53fb,0x915b9));import{requireDevelopmentUploadFile}from'../../commands/common/local-file.js';import{queryDevelopmentFileUrl,uploadDevelopmentFile}from'../../core/api-client.js';function a115_0x53fb(){const _0x20a5bb=['download','POST','3735158rOKPVK','bool','2566568cDQdGl','trim','669474ZvZXPw','filePath\x20is\x20required.','673414OSNGdl','54SuPhgK','4FwJFkS','Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','407244sSBiIk','Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML','237680ZfPLrC','filepath','query-url','/smartapi/common/uploadFile','validation','read','File','path','string','long-term','55kgqiAw','boolean','str','1662483kbTGCt','upload','appCode','.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','file','Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','\x20to\x20development\x20app\x20','Development\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data'];a115_0x53fb=function(){return _0x20a5bb;};return a115_0x53fb();}import{CliErrors}from'../../errors.js';const FILE_FLAG={'name':a115_0x4e024c(0xcb),'type':a115_0x4e024c(0xc2),'required':!![],'description':'Path\x20to\x20the\x20local\x20file\x20to\x20upload'},FILEPATH_FLAG={'name':a115_0x4e024c(0xbb),'type':'string','required':!![],'description':a115_0x4e024c(0xce)},DOWNLOAD_FLAG={'name':a115_0x4e024c(0xcf),'type':a115_0x4e024c(0xc5),'description':'Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL'},LONG_TERM_FLAG={'name':a115_0x4e024c(0xc3),'type':a115_0x4e024c(0xc5),'description':a115_0x4e024c(0xb9)};function a115_0x281e(_0x5b1146,_0x347156){_0x5b1146=_0x5b1146-0xad;const _0x53fbbc=a115_0x53fb();let _0x281e8a=_0x53fbbc[_0x5b1146];return _0x281e8a;}function requireFilePath(_0x1b5468){const _0x51006c=a115_0x4e024c,_0xc274d0=_0x1b5468[_0x51006c(0xb1)]();if(!_0xc274d0)throw CliErrors[_0x51006c(0xbe)](_0x51006c(0xb3));return _0xc274d0;}const fileUpload={'service':a115_0x4e024c(0xcb),'command':a115_0x4e024c(0xc8),'description':a115_0x4e024c(0xcc),'risk':a115_0x4e024c(0xbf),'flags':[FILE_FLAG],async 'dryRun'(_0x568d45){const _0x395a9e=a115_0x4e024c,_0x17439f=requireDevelopmentUploadFile(_0x568d45[_0x395a9e(0xc6)](_0x395a9e(0xcb)),_0x395a9e(0xc0));return{'method':_0x395a9e(0xad),'url':_0x395a9e(0xbd),'body':{'appCode':_0x568d45[_0x395a9e(0xc9)],'multipart':{'file':_0x17439f}},'description':'Preview:\x20upload\x20'+_0x17439f[_0x395a9e(0xc1)]+_0x395a9e(0xcd)+_0x568d45['appCode']};},async 'execute'(_0x50db8d){const _0x391ce0=a115_0x4e024c,_0x23ab5c=requireDevelopmentUploadFile(_0x50db8d[_0x391ce0(0xc6)]('file'),'File'),_0x24153e=await uploadDevelopmentFile(_0x50db8d['appCode'],_0x23ab5c[_0x391ce0(0xc1)]);return{'ok':!![],'data':_0x24153e,'message':_0x24153e['filePath']?'Uploaded\x20file:\x20'+_0x24153e['filePath']+_0x391ce0(0xca):_0x391ce0(0xb7)};}},fileQueryUrl={'service':'file','command':a115_0x4e024c(0xbc),'description':'Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20or\x20immediate\x20access','risk':'read','flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0x1e3f19){const _0x198198=a115_0x4e024c,_0x37a898=requireFilePath(_0x1e3f19[_0x198198(0xc6)](_0x198198(0xbb))),_0x590b23=await queryDevelopmentFileUrl(_0x37a898,{'download':_0x1e3f19[_0x198198(0xaf)]('download'),'longTerm':_0x1e3f19[_0x198198(0xaf)]('long-term')});return{'ok':!![],'data':_0x590b23};}};export const fileDefinitions=[fileUpload,fileQueryUrl];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a116_0x2e7713=a116_0x1995;function a116_0x3354(){const _0x460c9c=['Create\x20a\x20draft\x20flow\x20definition\x20from\x20a\x20local\x20FlowConfig\x20file','flow','2246868tyeoTN','datasetCode','3658176mBVpxz','336812NxecVn','368597nsAqcs','flowName','.\x20Flow\x20URL:\x20','14gtHXaY','3730460lTZBnf','6347709ZZiIrs','7366tfOiFi','appCode','create','write','POST','636DNwQho'];a116_0x3354=function(){return _0x460c9c;};return a116_0x3354();}(function(_0x54c112,_0x404e68){const _0x3baa77=a116_0x1995,_0x3353c1=_0x54c112();while(!![]){try{const _0x2f5ac7=parseInt(_0x3baa77(0x90))/0x1+parseInt(_0x3baa77(0x96))/0x2*(-parseInt(_0x3baa77(0x9b))/0x3)+parseInt(_0x3baa77(0x8f))/0x4+parseInt(_0x3baa77(0x94))/0x5+parseInt(_0x3baa77(0x8c))/0x6+parseInt(_0x3baa77(0x93))/0x7*(-parseInt(_0x3baa77(0x8e))/0x8)+parseInt(_0x3baa77(0x95))/0x9;if(_0x2f5ac7===_0x404e68)break;else _0x3353c1['push'](_0x3353c1['shift']());}catch(_0x1868c6){_0x3353c1['push'](_0x3353c1['shift']());}}}(a116_0x3354,0x8e6a3));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_0x1995(_0x3ce1bc,_0x355b50){_0x3ce1bc=_0x3ce1bc-0x8a;const _0x33543e=a116_0x3354();let _0x1995f1=_0x33543e[_0x3ce1bc];return _0x1995f1;}export const flowCreate={'service':a116_0x2e7713(0x8b),'command':'create','description':a116_0x2e7713(0x8a),'risk':a116_0x2e7713(0x99),'flags':[FLOW_FILE_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x3f9d04){readFlowFilePath(_0x3f9d04);},async 'dryRun'(_0x31591e){const _0x4196ab=a116_0x2e7713,{request:_0x1f1571,warnings:_0x5abcac}=await prepareFlowWrite(readFlowFilePath(_0x31591e),_0x31591e['appCode']);return asDryRunResult({'operation':'create','selector':{'appCode':_0x31591e['appCode'],'flowName':_0x1f1571[_0x4196ab(0x91)],..._0x1f1571['datasetCode']?{'datasetCode':_0x1f1571[_0x4196ab(0x8d)]}:{}},'before':null,'after':_0x1f1571,'request':_0x1f1571,'dryRun':!![],'backend':{'method':_0x4196ab(0x9a),'path':FLOW_PATHS[_0x4196ab(0x98)]},'warnings':_0x5abcac},{'method':_0x4196ab(0x9a),'url':FLOW_PATHS[_0x4196ab(0x98)]});},async 'execute'(_0x4e9c1e){const _0x32ad91=a116_0x2e7713,{request:_0x382423,warnings:_0x9d4196}=await prepareFlowWrite(readFlowFilePath(_0x4e9c1e),_0x4e9c1e[_0x32ad91(0x97)]);await confirmFlowWrite(_0x4e9c1e,_0x32ad91(0x98),_0x382423);const _0x3718aa=await createFlowDefinition(_0x382423),_0x5069bb=buildFlowUrl(_0x4e9c1e[_0x32ad91(0x97)],_0x3718aa['id']),_0x5808e1=''+(_0x3718aa['flowName']||_0x382423['flowName'])+(_0x3718aa['id']?'\x20(id='+_0x3718aa['id']+')':'');return{'ok':!![],'data':{'operation':'create','selector':flowSelector(_0x4e9c1e['appCode'],_0x3718aa['id'],_0x3718aa),'before':null,'after':_0x3718aa,'flowUrl':_0x5069bb,'dryRun':![],'backend':{'method':_0x32ad91(0x9a),'path':FLOW_PATHS[_0x32ad91(0x98)]},'warnings':_0x9d4196},'message':'Created\x20flow\x20'+_0x5808e1+_0x32ad91(0x92)+_0x5069bb};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a117_0x55b5(_0x4eca2f,_0x303a58){_0x4eca2f=_0x4eca2f-0x6b;const _0x414b9b=a117_0x414b();let _0x55b50b=_0x414b9b[_0x4eca2f];return _0x55b50b;}const a117_0x28a05d=a117_0x55b5;(function(_0x13da33,_0x161ab6){const _0x54a39c=a117_0x55b5,_0x29bc20=_0x13da33();while(!![]){try{const _0x5f52ff=parseInt(_0x54a39c(0x89))/0x1*(-parseInt(_0x54a39c(0x78))/0x2)+-parseInt(_0x54a39c(0x84))/0x3+-parseInt(_0x54a39c(0x75))/0x4+parseInt(_0x54a39c(0x7b))/0x5*(parseInt(_0x54a39c(0x7d))/0x6)+parseInt(_0x54a39c(0x77))/0x7*(parseInt(_0x54a39c(0x87))/0x8)+-parseInt(_0x54a39c(0x7a))/0x9+-parseInt(_0x54a39c(0x83))/0xa*(-parseInt(_0x54a39c(0x73))/0xb);if(_0x5f52ff===_0x161ab6)break;else _0x29bc20['push'](_0x29bc20['shift']());}catch(_0x3e7747){_0x29bc20['push'](_0x29bc20['shift']());}}}(a117_0x414b,0x49aca));import{mkdir,stat}from'node:fs/promises';import{dirname,resolve}from'node:path';function a117_0x414b(){const _0x2a6cc2=['7613518eZcxSg','Overwrite\x20an\x20existing\x20output\x20file','2068208HdhYLw','output','119uWrUYY','2XDXkvy','bool','800037FsqwNf','65FoAMEH','trim','52614VxBsFg','Get\x20one\x20design-time\x20flow\x20definition','Write\x20a\x20portable\x20normalized\x20FlowConfig\x20JSON\x20file','flowCode','\x20to\x20','boolean','10hrZRMh','1270731gEgpym','appCode','path','275104HfEsza','Pass\x20--force\x20to\x20overwrite\x20it.','59439Fqajfo','force','read','Flow\x20','code','FlowConfig\x20output\x20already\x20exists:\x20','string','validation','flowName','str'];a117_0x414b=function(){return _0x2a6cc2;};return a117_0x414b();}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{getFlowDefinition}from'../../core/api-client.js';import{writeNormalizedFlowConfig}from'../../core/flow-config.js';import{CliErrors}from'../../errors.js';import{FLOW_ID_FLAG,flowDefinitionToConfig,readFlowId}from'../../commands/flow/shared.js';export const flowDetail={'service':'flow','command':'detail','description':a117_0x28a05d(0x7e),'risk':a117_0x28a05d(0x6b),'flags':[FLOW_ID_FLAG,{'name':a117_0x28a05d(0x76),'type':a117_0x28a05d(0x6f),'description':a117_0x28a05d(0x7f)},{'name':a117_0x28a05d(0x8a),'type':a117_0x28a05d(0x82),'description':a117_0x28a05d(0x74)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x514fe0){readFlowId(_0x514fe0);},async 'execute'(_0x4b2a3c){const _0x436dec=a117_0x28a05d,_0x36f33a=readFlowId(_0x4b2a3c),_0x38531c=_0x4b2a3c[_0x436dec(0x72)](_0x436dec(0x76))[_0x436dec(0x7c)](),_0x2eab5a=_0x38531c?resolve(_0x38531c):undefined;if(_0x2eab5a&&!_0x4b2a3c['bool'](_0x436dec(0x8a))&&await fileExists(_0x2eab5a))throw CliErrors[_0x436dec(0x70)](_0x436dec(0x6e)+_0x2eab5a,'Pass\x20--force\x20to\x20overwrite\x20it.');const _0x14b3ce=await getFlowDefinition(_0x4b2a3c[_0x436dec(0x85)],_0x36f33a);let _0x1e2223;if(_0x2eab5a){const _0xf8f65a=flowDefinitionToConfig(_0x14b3ce);await mkdir(dirname(_0x2eab5a),{'recursive':!![]});try{await writeNormalizedFlowConfig(_0x2eab5a,_0xf8f65a['config'],{'overwrite':_0x4b2a3c[_0x436dec(0x79)](_0x436dec(0x8a))});}catch(_0x37ba28){if(isAlreadyExistsError(_0x37ba28))throw CliErrors[_0x436dec(0x70)](_0x436dec(0x6e)+_0x2eab5a,_0x436dec(0x88));throw _0x37ba28;}_0x1e2223={'path':_0x2eab5a,'warnings':_0xf8f65a['warnings']};}return{'ok':!![],'data':{'flow':_0x14b3ce,..._0x1e2223?{'output':_0x1e2223}:{}},'message':_0x1e2223?'Wrote\x20FlowConfig\x20for\x20'+(_0x14b3ce[_0x436dec(0x71)]||_0x14b3ce[_0x436dec(0x80)]||_0x36f33a)+_0x436dec(0x81)+_0x1e2223[_0x436dec(0x86)]:_0x436dec(0x6c)+(_0x14b3ce['flowName']||_0x14b3ce[_0x436dec(0x80)]||_0x36f33a)};}};async function fileExists(_0x40cc7b){try{return await stat(_0x40cc7b),!![];}catch(_0x5c3cb2){return!isNotFoundError(_0x5c3cb2);}}function isNotFoundError(_0x269b25){const _0x566eae=a117_0x28a05d;return _0x269b25?.[_0x566eae(0x6d)]==='ENOENT';}function isAlreadyExistsError(_0x538672){return _0x538672?.['code']==='EEXIST';}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3725b1,_0x5409e2){const _0x53edd9=a118_0x3413,_0x120882=_0x3725b1();while(!![]){try{const _0x51a07e=parseInt(_0x53edd9(0xb0))/0x1*(parseInt(_0x53edd9(0xb2))/0x2)+-parseInt(_0x53edd9(0xb1))/0x3+parseInt(_0x53edd9(0xad))/0x4*(parseInt(_0x53edd9(0xac))/0x5)+-parseInt(_0x53edd9(0xae))/0x6+-parseInt(_0x53edd9(0xb4))/0x7+-parseInt(_0x53edd9(0xab))/0x8*(-parseInt(_0x53edd9(0xaf))/0x9)+parseInt(_0x53edd9(0xb5))/0xa*(parseInt(_0x53edd9(0xb3))/0xb);if(_0x51a07e===_0x5409e2)break;else _0x120882['push'](_0x120882['shift']());}catch(_0x5c48cb){_0x120882['push'](_0x120882['shift']());}}}(a118_0x4b23,0x1b1fd));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_0x4b23(){const _0x4a64a5=['10jDLvFR','184yEtunW','12735OyWtQM','108zvUxPe','895710avLoNd','64962yjVGBE','822UhznZO','631881TdfseA','36vdgTVX','3242833GXlddZ','513583wytYzf'];a118_0x4b23=function(){return _0x4a64a5;};return a118_0x4b23();}import{flowUpdate}from'../../commands/flow/update.js';import{flowPublish}from'../../commands/flow/publish.js';import{flowRuntimeRoleList}from'../../commands/flow/runtime-role-list.js';function a118_0x3413(_0x3cfa1b,_0x589996){_0x3cfa1b=_0x3cfa1b-0xab;const _0x4b2319=a118_0x4b23();let _0x341339=_0x4b2319[_0x3cfa1b];return _0x341339;}import{flowRuntimeUserSearch}from'../../commands/flow/runtime-user-search.js';import{flowRuntimeRoleUserList}from'../../commands/flow/runtime-role-user-list.js';export const flowDefinitions=[flowValidate,flowList,flowDetail,flowCreate,flowUpdate,flowPublish,flowRuntimeRoleList,flowRuntimeUserSearch,flowRuntimeRoleUserList];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a119_0x4f0628=a119_0x301d;(function(_0x355d32,_0x33f385){const _0xd00a4a=a119_0x301d,_0x7249ff=_0x355d32();while(!![]){try{const _0x2f88fb=parseInt(_0xd00a4a(0x116))/0x1+parseInt(_0xd00a4a(0x10c))/0x2+-parseInt(_0xd00a4a(0x104))/0x3+parseInt(_0xd00a4a(0x10e))/0x4*(parseInt(_0xd00a4a(0xfc))/0x5)+parseInt(_0xd00a4a(0xfe))/0x6+parseInt(_0xd00a4a(0x10b))/0x7*(-parseInt(_0xd00a4a(0x11b))/0x8)+-parseInt(_0xd00a4a(0x115))/0x9;if(_0x2f88fb===_0x33f385)break;else _0x7249ff['push'](_0x7249ff['shift']());}catch(_0x17b164){_0x7249ff['push'](_0x7249ff['shift']());}}}(a119_0x3e52,0x7d3af));function a119_0x3e52(){const _0x486b13=['1410908vWZsUq','page-size','--page-size\x20must\x20be\x20a\x20positive\x20integer.','validation','Page\x20number\x20(1-based)','flow-type','length','13282110uHGdSb','1015792zNBBxf','appCode','flow','num','read','40AtztfF','draft','Filter\x20by\x20dataset\x20code','number','10DUtTNh','dataset-code','5556060amkQTM','Page\x20size','flow-code','Filter\x20by\x20flow\x20type','flow-name','str','446529YjbWhb','Filter\x20by\x20flow\x20status','published','--page\x20must\x20be\x20a\x20positive\x20integer.','Found\x20','flow-status','string','722330OBcije','12540VALFoY','page'];a119_0x3e52=function(){return _0x486b13;};return a119_0x3e52();}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{listFlowDefinitions}from'../../core/api-client.js';function a119_0x301d(_0x14c087,_0x57d00c){_0x14c087=_0x14c087-0xfb;const _0x3e52b4=a119_0x3e52();let _0x301d6e=_0x3e52b4[_0x14c087];return _0x301d6e;}import{CliErrors}from'../../errors.js';const FLOW_STATUSES=[a119_0x4f0628(0x11c),a119_0x4f0628(0x106)];export const flowList={'service':a119_0x4f0628(0x118),'command':'list','description':'List\x20design-time\x20flow\x20definitions\x20for\x20the\x20current\x20app','risk':a119_0x4f0628(0x11a),'flags':[APPCODE_FLAG_OPTIONAL,{'name':'flow-code','type':a119_0x4f0628(0x10a),'description':'Filter\x20by\x20exact\x20server-generated\x20flow\x20code'},{'name':a119_0x4f0628(0x102),'type':a119_0x4f0628(0x10a),'description':'Filter\x20by\x20flow\x20name'},{'name':'flow-status','type':a119_0x4f0628(0x10a),'description':a119_0x4f0628(0x105),'enum':FLOW_STATUSES},{'name':a119_0x4f0628(0xfd),'type':a119_0x4f0628(0x10a),'description':a119_0x4f0628(0x11d)},{'name':a119_0x4f0628(0x113),'type':a119_0x4f0628(0x10a),'description':a119_0x4f0628(0x101)},{'name':a119_0x4f0628(0x10d),'type':'number','description':a119_0x4f0628(0x112),'default':0x1},{'name':'page-size','type':a119_0x4f0628(0xfb),'description':a119_0x4f0628(0xff),'default':0x14}],async 'validate'(_0x2b07f1){const _0x5294c1=a119_0x4f0628,_0x43d9b9=_0x2b07f1[_0x5294c1(0x119)](_0x5294c1(0x10d),0x1),_0x1401f9=_0x2b07f1[_0x5294c1(0x119)](_0x5294c1(0x10f),0x14);if(!Number['isSafeInteger'](_0x43d9b9)||_0x43d9b9<0x1)throw CliErrors[_0x5294c1(0x111)](_0x5294c1(0x107));if(!Number['isSafeInteger'](_0x1401f9)||_0x1401f9<0x1)throw CliErrors['validation'](_0x5294c1(0x110));},async 'execute'(_0x469398){const _0x4afc38=a119_0x4f0628,{items:_0x5307e6,paging:_0x332006}=await listFlowDefinitions(_0x469398[_0x4afc38(0x117)],{'flowCode':optionalString(_0x469398[_0x4afc38(0x103)](_0x4afc38(0x100))),'flowName':optionalString(_0x469398[_0x4afc38(0x103)](_0x4afc38(0x102))),'flowStatus':optionalString(_0x469398['str'](_0x4afc38(0x109))),'datasetCode':optionalString(_0x469398['str']('dataset-code')),'flowType':optionalString(_0x469398[_0x4afc38(0x103)]('flow-type')),'pageNum':_0x469398[_0x4afc38(0x119)](_0x4afc38(0x10d),0x1),'pageSize':_0x469398[_0x4afc38(0x119)](_0x4afc38(0x10f),0x14)});return{'ok':!![],'data':{'appCode':_0x469398[_0x4afc38(0x117)],'flows':_0x5307e6,'paging':_0x332006},'message':_0x4afc38(0x108)+_0x5307e6[_0x4afc38(0x114)]+'\x20flow\x20definition(s)'};}};function optionalString(_0x3977ed){const _0x3e84d8=_0x3977ed['trim']();return _0x3e84d8||undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a120_0x5f7d15=a120_0x26de;(function(_0x14bbc1,_0x37bcd4){const _0x1d9006=a120_0x26de,_0xd9ea64=_0x14bbc1();while(!![]){try{const _0x262650=-parseInt(_0x1d9006(0x1eb))/0x1+parseInt(_0x1d9006(0x1dc))/0x2+-parseInt(_0x1d9006(0x1de))/0x3*(-parseInt(_0x1d9006(0x1e3))/0x4)+parseInt(_0x1d9006(0x1ea))/0x5+-parseInt(_0x1d9006(0x1e5))/0x6*(parseInt(_0x1d9006(0x1df))/0x7)+parseInt(_0x1d9006(0x1e4))/0x8+-parseInt(_0x1d9006(0x1dd))/0x9;if(_0x262650===_0x37bcd4)break;else _0xd9ea64['push'](_0xd9ea64['shift']());}catch(_0x2a0798){_0xd9ea64['push'](_0xd9ea64['shift']());}}}(a120_0x555a,0x51743));function a120_0x555a(){const _0x4fd37b=['588002JtnjSf','3386790WFZLfk','991167NywOoh','14FkACpY','Publish\x20the\x20current\x20flow\x20definition\x20draft','flowCode','Published\x20flow\x20','4wvNygg','3192040MVhEJR','1550946QZRTkL','flow','published','publish','write','2526695yZuFrp','301807vImmLI','appCode','.\x20Flow\x20URL:\x20'];a120_0x555a=function(){return _0x4fd37b;};return a120_0x555a();}function a120_0x26de(_0x427d9a,_0x588eb7){_0x427d9a=_0x427d9a-0x1dc;const _0x555a9a=a120_0x555a();let _0x26dee2=_0x555a9a[_0x427d9a];return _0x26dee2;}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_0x5f7d15(0x1e6),'command':a120_0x5f7d15(0x1e8),'description':a120_0x5f7d15(0x1e0),'risk':a120_0x5f7d15(0x1e9),'flags':[FLOW_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x3cde80){readFlowId(_0x3cde80);},async 'dryRun'(_0x54c520){const _0x24d22d=a120_0x5f7d15,_0x2b4733=readFlowId(_0x54c520);return buildFlowIdDryRun('publish',FLOW_PATHS['publish'],_0x54c520[_0x24d22d(0x1ec)],_0x2b4733,{'id':_0x2b4733,'flowStatus':_0x24d22d(0x1e7)});},async 'execute'(_0xef65ba){const _0xe48ede=a120_0x5f7d15,_0x3a0bc4=readFlowId(_0xef65ba),_0x1ff073=await publishFlowDefinition(_0xef65ba[_0xe48ede(0x1ec)],_0x3a0bc4),_0x16df83=buildFlowUrl(_0xef65ba[_0xe48ede(0x1ec)],_0x3a0bc4);return{'ok':!![],'data':{'operation':_0xe48ede(0x1e8),'selector':flowSelector(_0xef65ba[_0xe48ede(0x1ec)],_0x3a0bc4,_0x1ff073),'before':null,'after':_0x1ff073,'flowUrl':_0x16df83,'dryRun':![],'backend':{'method':'POST','path':FLOW_PATHS[_0xe48ede(0x1e8)]},'warnings':[]},'message':_0xe48ede(0x1e2)+(_0x1ff073['flowName']||_0x1ff073[_0xe48ede(0x1e1)]||_0x3a0bc4)+_0xe48ede(0x1ed)+_0x16df83};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a121_0x370b54=a121_0xf6c6;(function(_0x45def3,_0x2c4f31){const _0xb6eb6f=a121_0xf6c6,_0xc7c854=_0x45def3();while(!![]){try{const _0x23042d=-parseInt(_0xb6eb6f(0xbd))/0x1*(parseInt(_0xb6eb6f(0xdc))/0x2)+parseInt(_0xb6eb6f(0xc1))/0x3*(-parseInt(_0xb6eb6f(0xce))/0x4)+-parseInt(_0xb6eb6f(0xd1))/0x5+parseInt(_0xb6eb6f(0xc5))/0x6+parseInt(_0xb6eb6f(0xd7))/0x7*(-parseInt(_0xb6eb6f(0xc0))/0x8)+-parseInt(_0xb6eb6f(0xb8))/0x9+parseInt(_0xb6eb6f(0xde))/0xa;if(_0x23042d===_0x2c4f31)break;else _0xc7c854['push'](_0xc7c854['shift']());}catch(_0x514548){_0xc7c854['push'](_0xc7c854['shift']());}}}(a121_0x4e6b,0xc3a3d));import{CliErrors}from'../../errors.js';export const FLOW_RUNTIME_PAGE_FLAG={'name':a121_0x370b54(0xd6),'type':'number','description':'Page\x20index\x20(1-based)','default':0x1};export const FLOW_RUNTIME_PAGE_SIZE_FLAG={'name':'page-size','type':a121_0x370b54(0xc2),'description':'Page\x20size\x20(1-100)','default':0x14};export const FLOW_RUNTIME_ROLE_REF_FLAG={'name':'role','type':a121_0x370b54(0xda),'required':!![],'description':a121_0x370b54(0xc6)};export function readRuntimePagination(_0x1191bc){const _0x407823=a121_0x370b54,_0x1b0ee1=_0x1191bc['num'](_0x407823(0xd6),0x1),_0x177bf6=_0x1191bc[_0x407823(0xd0)](_0x407823(0xd5),0x14);if(!Number[_0x407823(0xb9)](_0x1b0ee1)||_0x1b0ee1<0x1)throw CliErrors[_0x407823(0xcd)]('--page\x20must\x20be\x20a\x20positive\x20integer.');if(!Number[_0x407823(0xb9)](_0x177bf6)||_0x177bf6<0x1||_0x177bf6>0x64)throw CliErrors['validation'](_0x407823(0xc7));return{'page':_0x1b0ee1,'pageSize':_0x177bf6};}function a121_0x4e6b(){const _0x478af8=['\x22\x20is\x20ambiguous\x20(ids:\x20','page-size','page','49hBRwGY','slice','username','string','userName','1622YDePaQ','roleType','31337400prlXyO','role','\x22\x20not\x20found\x20in\x20app\x20','roleName','10760571vSuDgN','isSafeInteger','filter','Runtime\x20role\x20name\x20\x22','remark','434TRuQOJ','Runtime\x20role\x20\x22','join','1377872AWqmTF','15JKrLjY','number','permitCount','length','8682528YTZevn','Runtime\x20role\x20id\x20or\x20exact\x20role\x20name','--page-size\x20must\x20be\x20an\x20integer\x20between\x201\x20and\x20100.','trim','str','map','code','email','validation','488108sncwwK','test','num','2080605ORqgaL','status','displayName'];a121_0x4e6b=function(){return _0x478af8;};return a121_0x4e6b();}export function paginateRuntimeItems(_0x1deecd,_0x49c4fd,_0x36a4b6){const _0x6ff5b=a121_0x370b54,_0x384f4c=(_0x49c4fd-0x1)*_0x36a4b6;return{'items':_0x1deecd[_0x6ff5b(0xd8)](_0x384f4c,_0x384f4c+_0x36a4b6),'paging':{'currentPage':_0x49c4fd,'pageSize':_0x36a4b6,'totalCount':_0x1deecd['length']}};}export function projectRuntimeRole(_0x471a91){const _0x518411=a121_0x370b54;return{'id':_0x471a91['id'],'roleName':_0x471a91[_0x518411(0xb7)]??null,'roleType':_0x471a91[_0x518411(0xdd)]??null,'remark':_0x471a91[_0x518411(0xbc)]??null,'userCount':_0x471a91['userCount']??0x0,'permitCount':_0x471a91[_0x518411(0xc3)]??0x0};}export function projectRuntimeUser(_0x2d25ce){const _0x12b8d7=a121_0x370b54,_0x5409d9=normalizeRuntimeUserId(_0x2d25ce[_0x12b8d7(0xcb)]);if(!_0x5409d9)return null;return{'userId':_0x5409d9,'username':_0x2d25ce[_0x12b8d7(0xdb)]??null,'nickname':_0x2d25ce['nickName']??null,'displayName':_0x2d25ce[_0x12b8d7(0xd3)]??null,'email':_0x2d25ce[_0x12b8d7(0xcc)]??null,'status':_0x2d25ce[_0x12b8d7(0xd2)]??null};}export function projectRuntimeRoleMember(_0x391549){const _0x5a0af9=a121_0x370b54,_0x523397=normalizeRuntimeUserId(_0x391549['userId']);if(!_0x523397)return null;return{'userId':_0x523397,'username':_0x391549[_0x5a0af9(0xd9)]??null,'nickname':_0x391549['nickname']??null};}function a121_0xf6c6(_0x48ed16,_0x1d3917){_0x48ed16=_0x48ed16-0xb7;const _0x4e6b28=a121_0x4e6b();let _0xf6c6f8=_0x4e6b28[_0x48ed16];return _0xf6c6f8;}export function readRuntimeRoleRef(_0x16d058){const _0x35d3c0=a121_0x370b54,_0x58eca3=_0x16d058[_0x35d3c0(0xc9)](_0x35d3c0(0xdf))[_0x35d3c0(0xc8)]();if(!_0x58eca3)throw CliErrors['flagMissing'](_0x35d3c0(0xdf),'Pass\x20--role\x20<id|name>.');return _0x58eca3;}export function resolveRuntimeRoleGroup(_0x22fcc5,_0x144d2b,_0x551548){const _0x29028c=a121_0x370b54,_0x24b695=/^\d+$/[_0x29028c(0xcf)](_0x144d2b)?_0x551548[_0x29028c(0xba)](_0x3fcaf2=>_0x3fcaf2['id']===Number(_0x144d2b)):_0x551548['filter'](_0x3768e4=>_0x3768e4[_0x29028c(0xb7)]===_0x144d2b);if(_0x24b695[_0x29028c(0xc4)]===0x0)throw CliErrors[_0x29028c(0xcd)](_0x29028c(0xbe)+_0x144d2b+_0x29028c(0xe0)+_0x22fcc5+'.','Run\x20`flow\x20runtime-role-list`\x20to\x20see\x20runtime\x20roles.');if(_0x24b695['length']>0x1){const _0x1fc1e3=_0x24b695[_0x29028c(0xca)](_0x2c8b3c=>_0x2c8b3c['id'])[_0x29028c(0xbf)](',\x20');throw CliErrors['validation'](_0x29028c(0xbb)+_0x144d2b+_0x29028c(0xd4)+_0x1fc1e3+').','Disambiguate\x20with\x20--role\x20<id>.');}return _0x24b695[0x0];}function normalizeRuntimeUserId(_0x54868a){const _0x308231=a121_0x370b54;if(typeof _0x54868a!==_0x308231(0xda)&&typeof _0x54868a!==_0x308231(0xc2))return null;const _0x3447eb=String(_0x54868a)[_0x308231(0xc8)]();return _0x3447eb||null;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a122_0x38db8a=a122_0x43a8;function a122_0x43a8(_0x3d74ff,_0x3ff215){_0x3d74ff=_0x3d74ff-0x155;const _0x2091e9=a122_0x2091();let _0x43a87f=_0x2091e9[_0x3d74ff];return _0x43a87f;}(function(_0x4abb44,_0x2f7474){const _0x5618f3=a122_0x43a8,_0x2da439=_0x4abb44();while(!![]){try{const _0x46bc0b=parseInt(_0x5618f3(0x158))/0x1*(-parseInt(_0x5618f3(0x163))/0x2)+parseInt(_0x5618f3(0x15a))/0x3+-parseInt(_0x5618f3(0x157))/0x4+-parseInt(_0x5618f3(0x169))/0x5*(-parseInt(_0x5618f3(0x15c))/0x6)+parseInt(_0x5618f3(0x166))/0x7+parseInt(_0x5618f3(0x161))/0x8*(parseInt(_0x5618f3(0x15b))/0x9)+-parseInt(_0x5618f3(0x168))/0xa*(-parseInt(_0x5618f3(0x155))/0xb);if(_0x46bc0b===_0x2f7474)break;else _0x2da439['push'](_0x2da439['shift']());}catch(_0x35fa07){_0x2da439['push'](_0x2da439['shift']());}}}(a122_0x2091,0x28070));function a122_0x2091(){const _0x2e3dbe=['2OZwzby','\x20runtime\x20role(s)','Optional\x20runtime\x20role-name\x20keyword','50596QlWLjU','length','13550bEMWiL','519335COTGAs','flow','99xfUUrE','string','1105120BmgYzJ','153346GBEJEG','appCode','466656AvDOSm','711HrzAxS','6VcRAXX','runtime-role-list','read','runtime','keyword','31872WCfbxU','List\x20runtime\x20app\x20roles\x20for\x20approval\x20assignee\x20selection'];a122_0x2091=function(){return _0x2e3dbe;};return a122_0x2091();}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{FLOW_RUNTIME_PAGE_FLAG,FLOW_RUNTIME_PAGE_SIZE_FLAG,projectRuntimeRole,readRuntimePagination}from'../../commands/flow/runtime-resources-shared.js';import{listApprovalRuntimeRoles}from'../../core/api-client.js';export const flowRuntimeRoleList={'service':a122_0x38db8a(0x16a),'command':a122_0x38db8a(0x15d),'description':a122_0x38db8a(0x162),'risk':a122_0x38db8a(0x15e),'flags':[{'name':'keyword','type':a122_0x38db8a(0x156),'description':a122_0x38db8a(0x165)},FLOW_RUNTIME_PAGE_FLAG,FLOW_RUNTIME_PAGE_SIZE_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x25a759){readRuntimePagination(_0x25a759);},async 'execute'(_0x2c9d2f){const _0x1acb38=a122_0x38db8a,{page:_0x3c079b,pageSize:_0x540937}=readRuntimePagination(_0x2c9d2f),_0x3f6a90=_0x2c9d2f['str'](_0x1acb38(0x160))['trim'](),{items:_0x44ea13,paging:_0x2906ff}=await listApprovalRuntimeRoles(_0x2c9d2f[_0x1acb38(0x159)],{..._0x3f6a90?{'roleName':_0x3f6a90}:{},'currentPage':_0x3c079b,'pageSize':_0x540937}),_0x2c7203=_0x44ea13['map'](projectRuntimeRole);return{'ok':!![],'data':{'appCode':_0x2c9d2f[_0x1acb38(0x159)],'scope':_0x1acb38(0x15f),..._0x3f6a90?{'keyword':_0x3f6a90}:{},'roles':_0x2c7203,'paging':_0x2906ff},'message':'Found\x20'+_0x2c7203[_0x1acb38(0x167)]+_0x1acb38(0x164)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a123_0x4e3dbc=a123_0x56c7;(function(_0x5694e9,_0xa5c627){const _0x2898c6=a123_0x56c7,_0x2b392e=_0x5694e9();while(!![]){try{const _0x3ada50=parseInt(_0x2898c6(0x170))/0x1*(-parseInt(_0x2898c6(0x17b))/0x2)+parseInt(_0x2898c6(0x16c))/0x3+parseInt(_0x2898c6(0x178))/0x4+-parseInt(_0x2898c6(0x179))/0x5*(-parseInt(_0x2898c6(0x16f))/0x6)+-parseInt(_0x2898c6(0x17d))/0x7+-parseInt(_0x2898c6(0x169))/0x8+-parseInt(_0x2898c6(0x16b))/0x9*(-parseInt(_0x2898c6(0x174))/0xa);if(_0x3ada50===_0xa5c627)break;else _0x2b392e['push'](_0x2b392e['shift']());}catch(_0x29ae47){_0x2b392e['push'](_0x2b392e['shift']());}}}(a123_0x5501,0x392c5));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_0x56c7(_0x239a12,_0x351aec){_0x239a12=_0x239a12-0x169;const _0x550124=a123_0x5501();let _0x56c74b=_0x550124[_0x239a12];return _0x56c74b;}import{listApprovalRuntimeRoleUsers}from'../../core/api-client.js';function a123_0x5501(){const _0x1aea08=['196612uxhtJE','5baINIJ','List\x20members\x20of\x20one\x20runtime\x20app\x20role\x20for\x20approval\x20verification','107546NfQPZB','map','174335GlateM','items','905856ePNMSJ','userList','63cXLeie','153261sQtIKf','flow','runtime','2647116dKaFiD','5HluelH','filter','appCode','\x20runtime\x20member(s)\x20in\x20role\x20','142510xbpjzV','read','Found\x20','length'];a123_0x5501=function(){return _0x1aea08;};return a123_0x5501();}export const flowRuntimeRoleUserList={'service':a123_0x4e3dbc(0x16d),'command':'runtime-role-user-list','description':a123_0x4e3dbc(0x17a),'risk':a123_0x4e3dbc(0x175),'flags':[FLOW_RUNTIME_ROLE_REF_FLAG,FLOW_RUNTIME_PAGE_FLAG,FLOW_RUNTIME_PAGE_SIZE_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x50980e){readRuntimeRoleRef(_0x50980e),readRuntimePagination(_0x50980e);},async 'execute'(_0x2122fe){const _0x65137f=a123_0x4e3dbc,_0x5a32bf=resolveRuntimeRoleGroup(_0x2122fe['appCode'],readRuntimeRoleRef(_0x2122fe),await listApprovalRuntimeRoleUsers(_0x2122fe[_0x65137f(0x172)])),_0x331dbd=(_0x5a32bf[_0x65137f(0x16a)]??[])[_0x65137f(0x17c)](projectRuntimeRoleMember)[_0x65137f(0x171)](_0x1218c0=>_0x1218c0!==null),{page:_0x2e1206,pageSize:_0x3bbd60}=readRuntimePagination(_0x2122fe),_0x412c27=paginateRuntimeItems(_0x331dbd,_0x2e1206,_0x3bbd60);return{'ok':!![],'data':{'appCode':_0x2122fe[_0x65137f(0x172)],'scope':_0x65137f(0x16e),'role':{'id':_0x5a32bf['id'],'roleName':_0x5a32bf['roleName']??null,'roleType':_0x5a32bf['roleType']??null},'users':_0x412c27[_0x65137f(0x17e)],'paging':_0x412c27['paging']},'message':_0x65137f(0x176)+_0x331dbd[_0x65137f(0x177)]+_0x65137f(0x173)+(_0x5a32bf['roleName']??_0x5a32bf['id'])};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a124_0x1e304b=a124_0x2436;(function(_0x49a9a5,_0x561c24){const _0x7436c4=a124_0x2436,_0x233525=_0x49a9a5();while(!![]){try{const _0x51571c=-parseInt(_0x7436c4(0x1c0))/0x1+-parseInt(_0x7436c4(0x1c7))/0x2*(-parseInt(_0x7436c4(0x1cf))/0x3)+parseInt(_0x7436c4(0x1b7))/0x4+-parseInt(_0x7436c4(0x1c2))/0x5+parseInt(_0x7436c4(0x1b8))/0x6*(parseInt(_0x7436c4(0x1b9))/0x7)+-parseInt(_0x7436c4(0x1bd))/0x8*(-parseInt(_0x7436c4(0x1bc))/0x9)+-parseInt(_0x7436c4(0x1c4))/0xa*(parseInt(_0x7436c4(0x1bb))/0xb);if(_0x51571c===_0x561c24)break;else _0x233525['push'](_0x233525['shift']());}catch(_0x5940c9){_0x233525['push'](_0x233525['shift']());}}}(a124_0xe43f,0x4d326));function a124_0x2436(_0x195d94,_0x49d973){_0x195d94=_0x195d94-0x1b0;const _0xe43f24=a124_0xe43f();let _0x2436d4=_0xe43f24[_0x195d94];return _0x2436d4;}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{FLOW_RUNTIME_PAGE_FLAG,FLOW_RUNTIME_PAGE_SIZE_FLAG,paginateRuntimeItems,projectRuntimeUser,readRuntimePagination}from'../../commands/flow/runtime-resources-shared.js';import{listApprovalRuntimeUsers}from'../../core/api-client.js';function a124_0xe43f(){const _0x116742=['map','displayName','items','toLowerCase','filter','trim','4299WkXkcj','code','paging','email','nickName','read','User\x20id,\x20username,\x20nickname,\x20display\x20name,\x20or\x20email\x20keyword','flagMissing','string','697876ADzXpo','6EwcZMf','3713458RWnKYf','keyword','149369iDNsBc','606132QTvFOZ','72KNOgQL','str','flow','284242zbCJxG','Pass\x20--keyword\x20<text>.','993075Arbbno','appCode','490wtTiTZ','some','runtime-user-search','214UwuWth','Search\x20runtime\x20app\x20users\x20for\x20approval\x20assignee\x20selection'];a124_0xe43f=function(){return _0x116742;};return a124_0xe43f();}import{CliErrors}from'../../errors.js';export const flowRuntimeUserSearch={'service':a124_0x1e304b(0x1bf),'command':a124_0x1e304b(0x1c6),'description':a124_0x1e304b(0x1c8),'risk':a124_0x1e304b(0x1b3),'flags':[{'name':a124_0x1e304b(0x1ba),'type':a124_0x1e304b(0x1b6),'required':!![],'description':a124_0x1e304b(0x1b4)},FLOW_RUNTIME_PAGE_FLAG,FLOW_RUNTIME_PAGE_SIZE_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x541f8b){const _0x3386cb=a124_0x1e304b;if(!_0x541f8b['str']('keyword')[_0x3386cb(0x1ce)]())throw CliErrors[_0x3386cb(0x1b5)]('keyword',_0x3386cb(0x1c1));readRuntimePagination(_0x541f8b);},async 'execute'(_0x197e23){const _0x20dda9=a124_0x1e304b,_0x1f58e8=_0x197e23[_0x20dda9(0x1be)](_0x20dda9(0x1ba))[_0x20dda9(0x1ce)](),_0x677359=_0x1f58e8[_0x20dda9(0x1cc)](),_0x56eb1e=(await listApprovalRuntimeUsers(_0x197e23[_0x20dda9(0x1c3)]))[_0x20dda9(0x1cd)](_0x368c40=>[_0x368c40[_0x20dda9(0x1d0)],_0x368c40['userName'],_0x368c40[_0x20dda9(0x1b2)],_0x368c40[_0x20dda9(0x1ca)],_0x368c40[_0x20dda9(0x1b1)]][_0x20dda9(0x1c5)](_0x3a63e3=>_0x3a63e3!==null&&_0x3a63e3!==undefined&&String(_0x3a63e3)[_0x20dda9(0x1cc)]()['includes'](_0x677359)))[_0x20dda9(0x1c9)](projectRuntimeUser)[_0x20dda9(0x1cd)](_0x37fd34=>_0x37fd34!==null),{page:_0x36ef1c,pageSize:_0x30f0ac}=readRuntimePagination(_0x197e23),_0x1b3666=paginateRuntimeItems(_0x56eb1e,_0x36ef1c,_0x30f0ac);return{'ok':!![],'data':{'appCode':_0x197e23[_0x20dda9(0x1c3)],'scope':'runtime','keyword':_0x1f58e8,'users':_0x1b3666[_0x20dda9(0x1cb)],'paging':_0x1b3666[_0x20dda9(0x1b0)]},'message':'Found\x20'+_0x56eb1e['length']+'\x20runtime\x20app\x20user(s)\x20matching\x20\x22'+_0x1f58e8+'\x22'};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a125_0x9ff55f=a125_0x3438;(function(_0x8f9fb0,_0x177fc6){const _0x240083=a125_0x3438,_0x598586=_0x8f9fb0();while(!![]){try{const _0x14bf3a=parseInt(_0x240083(0x140))/0x1*(-parseInt(_0x240083(0x154))/0x2)+parseInt(_0x240083(0x170))/0x3+parseInt(_0x240083(0x144))/0x4+parseInt(_0x240083(0x169))/0x5+parseInt(_0x240083(0x157))/0x6*(parseInt(_0x240083(0x177))/0x7)+-parseInt(_0x240083(0x164))/0x8*(-parseInt(_0x240083(0x165))/0x9)+parseInt(_0x240083(0x163))/0xa*(-parseInt(_0x240083(0x175))/0xb);if(_0x14bf3a===_0x177fc6)break;else _0x598586['push'](_0x598586['shift']());}catch(_0x56b154){_0x598586['push'](_0x598586['shift']());}}}(a125_0x1fdf,0x2326f));import{asDryRunResult}from'../../commands/common/dry-run.js';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_0x9ff55f(0x14f),'detail':a125_0x9ff55f(0x15d),'create':a125_0x9ff55f(0x14a),'update':a125_0x9ff55f(0x168),'publish':'/smartapi/flow/publish'};function a125_0x1fdf(){const _0x5ad2f1=['Cannot\x20export\x20an\x20invalid\x20flow\x20definition.','string','/smartapi/flow/update','1003370kUFAsU','Unable\x20to\x20read\x20FlowConfig:\x20','valid','Run\x20`rabetbase\x20flow\x20validate\x20--file\x20<path>`\x20for\x20details.','bool','FORM_FLOW','apiError','691626oQrbcR','yes','The\x20detail\x20response\x20does\x20not\x20contain\x20flowName.','isSafeInteger','flowJson','198VKxjzG','isArray','539gvldEh','flowDesc','flowName','object','number','Pass\x20--file\x20<path>.','2wwIpKt','\x20\x20appCode:\x20','warnings','flowCode','605180PsiKBV','flowType','map','pageId','message','join','/smartapi/flow/create','Continue?\x20[y/N]\x20','trim','\x20\x20flowId:\x20','datasetCode','/smartapi/flow/page','Approval\x20flow\x20','errors','Cannot\x20export\x20this\x20flow\x20into\x20the\x20current\x20portable\x20FlowConfig\x20contract.','path','6586qZKUwR','file','/data/workflow?workflowId=','5250JsefIQ','\x20\x20datasetCode:\x20','File:\x20','validation','flagMissing','The\x20detail\x20response\x20does\x20not\x20contain\x20an\x20object\x20flowJson.','/smartapi/flow/detail','FlowConfig\x20validation\x20failed\x20for\x20','Path\x20to\x20the\x20local\x20FlowConfig\x20JSON\x20file','normalized','cancelled','str','374840frCBAV','40VPUWIX','315711MojcaD'];a125_0x1fdf=function(){return _0x5ad2f1;};return a125_0x1fdf();}export const FLOW_ID_FLAG={'name':'id','type':a125_0x9ff55f(0x17b),'required':!![],'description':'Flow\x20definition\x20id\x20(from\x20`flow\x20list`\x20or\x20`flow\x20create`)'};export const FLOW_FILE_FLAG={'name':'file','type':a125_0x9ff55f(0x167),'required':!![],'description':a125_0x9ff55f(0x15f)};export function flowDefinitionToConfig(_0x2b4127){const _0x4bda07=a125_0x9ff55f;if(typeof _0x2b4127['flowName']!==_0x4bda07(0x167)||_0x2b4127[_0x4bda07(0x179)][_0x4bda07(0x14c)]()==='')throw CliErrors['apiError'](_0x4bda07(0x166),_0x4bda07(0x172));if(typeof _0x2b4127[_0x4bda07(0x174)]!==_0x4bda07(0x17a)||_0x2b4127['flowJson']===null||Array[_0x4bda07(0x176)](_0x2b4127[_0x4bda07(0x174)]))throw CliErrors[_0x4bda07(0x16f)](_0x4bda07(0x166),_0x4bda07(0x15c));if(_0x2b4127[_0x4bda07(0x145)]!==_0x4bda07(0x16e)&&_0x2b4127[_0x4bda07(0x145)]!=='INDEPENDENT_FLOW')throw CliErrors['apiError'](_0x4bda07(0x166),'The\x20detail\x20response\x20does\x20not\x20contain\x20a\x20supported\x20flowType.');const _0x4777dc={'flowName':_0x2b4127['flowName'],...typeof _0x2b4127[_0x4bda07(0x178)]===_0x4bda07(0x167)?{'flowDesc':_0x2b4127['flowDesc']}:{},'flowType':_0x2b4127[_0x4bda07(0x145)],...typeof _0x2b4127[_0x4bda07(0x14e)]==='string'&&_0x2b4127['datasetCode']['trim']()?{'datasetCode':_0x2b4127[_0x4bda07(0x14e)]}:{},...typeof _0x2b4127[_0x4bda07(0x147)]==='number'?{'pageId':_0x2b4127[_0x4bda07(0x147)]}:{},'flowJson':_0x2b4127[_0x4bda07(0x174)]},_0x1e0b7d=validateFlowConfig(_0x4777dc);if(!_0x1e0b7d[_0x4bda07(0x16b)]){const _0x919a31=_0x1e0b7d[_0x4bda07(0x151)][_0x4bda07(0x146)](_0x2c987e=>_0x2c987e['path']+':\x20'+_0x2c987e['message'])[_0x4bda07(0x149)](';\x20');throw CliErrors[_0x4bda07(0x15a)](_0x4bda07(0x152),_0x919a31);}return{'config':_0x1e0b7d[_0x4bda07(0x160)],'warnings':_0x1e0b7d[_0x4bda07(0x142)],'removedPaths':_0x1e0b7d['warnings'][_0x4bda07(0x146)](_0xec519=>_0xec519[_0x4bda07(0x153)])};}function a125_0x3438(_0x36c4ed,_0x5bf849){_0x36c4ed=_0x36c4ed-0x140;const _0x1fdf05=a125_0x1fdf();let _0x34384a=_0x1fdf05[_0x36c4ed];return _0x34384a;}export function readFlowId(_0x2cdda8){const _0x20620f=a125_0x9ff55f,_0x505ca1=_0x2cdda8['num']('id');if(!Number[_0x20620f(0x173)](_0x505ca1)||_0x505ca1<=0x0)throw CliErrors[_0x20620f(0x15a)]('--id\x20must\x20be\x20a\x20positive\x20integer.');return _0x505ca1;}export function readFlowFilePath(_0x4cd7c4){const _0x305951=a125_0x9ff55f,_0x8658ed=_0x4cd7c4[_0x305951(0x162)](_0x305951(0x155))[_0x305951(0x14c)]();if(!_0x8658ed)throw CliErrors[_0x305951(0x15b)](_0x305951(0x155),_0x305951(0x17c));return _0x8658ed;}export async function prepareFlowWrite(_0x5781c2,_0x59d897,_0x32dde9){const _0x2551a4=a125_0x9ff55f;let _0x2fe99d;try{_0x2fe99d=await readFlowConfigFile(_0x5781c2);}catch(_0xb0f4b1){const _0x5a1091=_0xb0f4b1 instanceof Error?_0xb0f4b1['message']:String(_0xb0f4b1);throw CliErrors[_0x2551a4(0x15a)](_0x2551a4(0x16a)+_0x5a1091,_0x2551a4(0x159)+_0x5781c2);}const _0x2873b2=validateFlowConfig(_0x2fe99d);if(!_0x2873b2[_0x2551a4(0x16b)]){const _0x424d72=_0x2873b2[_0x2551a4(0x151)]['map'](_0x5a558d=>_0x5a558d[_0x2551a4(0x153)]+':\x20'+_0x5a558d[_0x2551a4(0x148)])[_0x2551a4(0x149)](';\x20');throw CliErrors['validation'](_0x2551a4(0x15e)+_0x5781c2+'.',_0x424d72||_0x2551a4(0x16c));}const _0x3eab75=_0x2873b2['normalized'],_0x4ed0fc={..._0x32dde9!==undefined?{'id':_0x32dde9}:{},'flowName':_0x3eab75[_0x2551a4(0x179)],..._0x3eab75[_0x2551a4(0x178)]!==undefined?{'flowDesc':_0x3eab75[_0x2551a4(0x178)]}:{},'flowType':_0x3eab75['flowType'],'appCode':_0x59d897,..._0x3eab75[_0x2551a4(0x14e)]!==undefined?{'datasetCode':_0x3eab75[_0x2551a4(0x14e)]}:{},..._0x3eab75[_0x2551a4(0x147)]!==undefined?{'pageId':_0x3eab75[_0x2551a4(0x147)]}:{},'flowJson':_0x3eab75['flowJson']};return{'request':_0x4ed0fc,'warnings':_0x2873b2['warnings']};}export async function confirmFlowWrite(_0x2ae877,_0x420d8b,_0x59fb15){const _0x53f1b3=a125_0x9ff55f;if(_0x2ae877['nonInteractive']||_0x2ae877[_0x53f1b3(0x16d)](_0x53f1b3(0x171)))return;await requireConfirmationPrompt({'lines':[_0x53f1b3(0x150)+_0x420d8b+':',_0x53f1b3(0x141)+_0x2ae877['appCode'],..._0x59fb15['id']!==undefined?[_0x53f1b3(0x14d)+_0x59fb15['id']]:[],'\x20\x20flowName:\x20'+_0x59fb15[_0x53f1b3(0x179)],'\x20\x20flowType:\x20'+_0x59fb15['flowType'],..._0x59fb15[_0x53f1b3(0x14e)]?[_0x53f1b3(0x158)+_0x59fb15['datasetCode']]:[],_0x53f1b3(0x14b)],'createCancelledError':_0x5ba4b1=>CliErrors[_0x53f1b3(0x161)](_0x5ba4b1)});}export function flowSelector(_0x4ee258,_0x181d06,_0x3c1851){const _0x3199df=a125_0x9ff55f;return{'appCode':_0x4ee258,..._0x181d06!==undefined?{'flowId':_0x181d06}:{},..._0x3c1851?.[_0x3199df(0x143)]?{'flowCode':_0x3c1851['flowCode']}:{},..._0x3c1851?.['flowName']?{'flowName':_0x3c1851[_0x3199df(0x179)]}:{}};}export function buildFlowUrl(_0x413c69,_0x53cb36){const _0x33bb13=a125_0x9ff55f,_0x28a560=encodeURIComponent(String(_0x53cb36));return getAppBaseUrl(_0x413c69)+_0x33bb13(0x156)+_0x28a560;}export function buildFlowIdDryRun(_0x499330,_0x84fc15,_0x21810d,_0x26c9d6,_0x5f15c4){const _0x94d8a2={'id':_0x26c9d6,'appCode':_0x21810d};return asDryRunResult({'operation':_0x499330,'selector':flowSelector(_0x21810d,_0x26c9d6),'before':null,'after':_0x5f15c4,'request':_0x94d8a2,'dryRun':!![],'backend':{'method':'POST','path':_0x84fc15},'warnings':[]},{'method':'POST','url':_0x84fc15});}
|