@lovrabet/rabetbase-cli 2.5.5-beta.1 → 2.5.5-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api/api-doc.js +1 -1
- package/lib/api/api-group.js +1 -1
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.js +1 -1
- package/lib/api/generate-sdk-config-file.js +1 -1
- package/lib/api/legacy-api-file.js +1 -1
- package/lib/api/model-registry-file.js +1 -1
- package/lib/api/model-registry-scaffold.js +1 -1
- package/lib/api/model-source.js +1 -1
- package/lib/auth/auth-server-ui.js +1 -1
- package/lib/auth/auth-server.js +1 -1
- package/lib/auth/constant.js +1 -1
- package/lib/auth/get-cookie.js +1 -1
- package/lib/auth/get-session-user.js +1 -1
- package/lib/auth/is-session-valid.js +1 -1
- package/lib/auth/login-success-html.js +1 -1
- package/lib/auth/logout.js +1 -1
- package/lib/cli-flags.js +1 -1
- package/lib/cli.js +1 -1
- package/lib/commands/api/generate.js +1 -1
- package/lib/commands/api/index.js +1 -1
- package/lib/commands/api/list.js +1 -1
- package/lib/commands/api/pull.js +1 -1
- package/lib/commands/api/shared.js +1 -1
- package/lib/commands/app/detail.js +1 -1
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/members-list.js +1 -1
- package/lib/commands/app/remote-directory.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/delete.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/app-config/list.js +1 -1
- package/lib/commands/app-config/set.js +1 -1
- package/lib/commands/app-config/shared.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/bff/create.js +1 -1
- package/lib/commands/bff/delete.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/bff/list.js +1 -1
- package/lib/commands/bff/logs.js +1 -1
- package/lib/commands/bff/pull.js +1 -1
- package/lib/commands/bff/push.js +1 -1
- package/lib/commands/bff/status.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/cli-update.js +1 -1
- package/lib/commands/codegen/index.js +1 -1
- package/lib/commands/codegen/sdk.js +1 -1
- package/lib/commands/codegen/sql.js +1 -1
- package/lib/commands/common/app-registry.js +1 -1
- package/lib/commands/common/app-selector.js +1 -1
- package/lib/commands/common/async-task.js +1 -1
- package/lib/commands/common/dry-run.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/common/validate.js +1 -1
- package/lib/commands/config/delete.js +1 -1
- package/lib/commands/config/get.js +1 -1
- package/lib/commands/config/index.js +1 -1
- package/lib/commands/config/init.js +1 -1
- package/lib/commands/config/list.js +1 -1
- package/lib/commands/config/set.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/dataset/batch-design.js +1 -1
- package/lib/commands/dataset/business-group-update.js +1 -1
- package/lib/commands/dataset/business-groups.js +1 -1
- package/lib/commands/dataset/capability.js +1 -1
- package/lib/commands/dataset/cross-relation-create.js +1 -1
- package/lib/commands/dataset/cross-relation-delete.js +1 -1
- package/lib/commands/dataset/cross-relation-list.js +1 -1
- package/lib/commands/dataset/cross-relation-shared.js +1 -1
- package/lib/commands/dataset/cross-relation-update.js +1 -1
- package/lib/commands/dataset/delete.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/extend-update.js +1 -1
- package/lib/commands/dataset/field-restore.js +1 -1
- package/lib/commands/dataset/field-update.js +1 -1
- package/lib/commands/dataset/generate.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/dataset/relation-audit.js +1 -1
- package/lib/commands/dataset/relation-create.js +1 -1
- package/lib/commands/dataset/relation-delete.js +1 -1
- package/lib/commands/dataset/relation-shared.js +1 -1
- package/lib/commands/dataset/relation-update.js +1 -1
- package/lib/commands/dataset/relations.js +1 -1
- package/lib/commands/dataset/rename.js +1 -1
- package/lib/commands/dataset/restore.js +1 -1
- package/lib/commands/dataset/user-deleted-field-list.js +1 -1
- package/lib/commands/db/analysis-batching.js +1 -1
- package/lib/commands/db/analyze-batch-plan.js +1 -1
- package/lib/commands/db/analyze-cancel.js +1 -1
- package/lib/commands/db/analyze-start.js +1 -1
- package/lib/commands/db/analyze-status.js +1 -1
- package/lib/commands/db/create.js +1 -1
- package/lib/commands/db/delete.js +1 -1
- package/lib/commands/db/detail.js +1 -1
- package/lib/commands/db/diff-refresh-start.js +1 -1
- package/lib/commands/db/diff-refresh-status.js +1 -1
- package/lib/commands/db/diff.js +1 -1
- package/lib/commands/db/index.js +1 -1
- package/lib/commands/db/list.js +1 -1
- package/lib/commands/db/shared.js +1 -1
- package/lib/commands/db/table-diff-shared.js +1 -1
- package/lib/commands/db/tables.js +1 -1
- package/lib/commands/db/test.js +1 -1
- package/lib/commands/db/update.js +1 -1
- package/lib/commands/deployment/index.js +1 -1
- package/lib/commands/deployment/sync-all.js +1 -1
- package/lib/commands/deployment/sync-jobs.js +1 -1
- package/lib/commands/deployment/sync-status.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/flow/create.js +1 -1
- package/lib/commands/flow/detail.js +1 -1
- package/lib/commands/flow/index.js +1 -1
- package/lib/commands/flow/list.js +1 -1
- package/lib/commands/flow/publish.js +1 -1
- package/lib/commands/flow/runtime-resources-shared.js +1 -1
- package/lib/commands/flow/runtime-role-list.js +1 -1
- package/lib/commands/flow/runtime-role-user-list.js +1 -1
- package/lib/commands/flow/runtime-user-search.js +1 -1
- package/lib/commands/flow/shared.js +1 -1
- package/lib/commands/flow/update.js +1 -1
- package/lib/commands/flow/validate.js +1 -1
- package/lib/commands/instant-api-policy/current.js +1 -1
- package/lib/commands/instant-api-policy/index.js +1 -1
- package/lib/commands/instant-api-policy/init.js +1 -1
- package/lib/commands/instant-api-policy/publish.js +1 -1
- package/lib/commands/instant-api-policy/pull.js +1 -1
- package/lib/commands/instant-api-policy/revision.js +1 -1
- package/lib/commands/instant-api-policy/revisions.js +1 -1
- package/lib/commands/instant-api-policy/rollback.js +1 -1
- package/lib/commands/instant-api-policy/shared.js +1 -1
- package/lib/commands/instant-api-policy/validate.js +1 -1
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/nudge.js +1 -1
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/issue/shared.js +1 -1
- package/lib/commands/kb/create.js +1 -1
- package/lib/commands/kb/delete.js +1 -1
- package/lib/commands/kb/detail.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/kb/list.js +1 -1
- package/lib/commands/kb/search.js +1 -1
- package/lib/commands/kb/shared.js +1 -1
- package/lib/commands/kb/update.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/asset-update.js +1 -1
- package/lib/commands/menu/delete.js +1 -1
- package/lib/commands/menu/external-link-create.js +1 -1
- package/lib/commands/menu/external-link-update.js +1 -1
- package/lib/commands/menu/group-create.js +1 -1
- package/lib/commands/menu/group-update.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/list.js +1 -1
- package/lib/commands/menu/move.js +1 -1
- package/lib/commands/menu/regroup-start.js +1 -1
- package/lib/commands/menu/rename.js +1 -1
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/delete-plan.js +1 -1
- package/lib/commands/menu/shared/facts.js +1 -1
- package/lib/commands/menu/shared/index.js +1 -1
- package/lib/commands/menu/shared/inquirer.js +1 -1
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.js +1 -1
- package/lib/commands/menu/shared/mutations.js +1 -1
- package/lib/commands/menu/shared/path.js +1 -1
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/subapp-assets.js +1 -1
- package/lib/commands/menu/shared/sync-core.js +1 -1
- package/lib/commands/menu/shared/update-core.js +1 -1
- package/lib/commands/menu/shared/valid-url.js +1 -1
- package/lib/commands/menu/subapp-assets-status.js +1 -1
- package/lib/commands/menu/subapp-assets-update.js +1 -1
- package/lib/commands/menu/sync.js +1 -1
- package/lib/commands/menu/visibility-update.js +1 -1
- package/lib/commands/notification/config-create.js +1 -1
- package/lib/commands/notification/config-delete.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/config-update.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/notification/shared.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/page/create.js +1 -1
- package/lib/commands/page/custom/detail.js +1 -1
- package/lib/commands/page/custom/list.js +1 -1
- package/lib/commands/page/custom/publish.js +1 -1
- package/lib/commands/page/custom/shared.js +1 -1
- package/lib/commands/page/custom/syntax.js +1 -1
- package/lib/commands/page/custom/update.js +1 -1
- package/lib/commands/page/data-list-status.js +1 -1
- package/lib/commands/page/generate-start.js +1 -1
- package/lib/commands/page/generate-status.js +1 -1
- package/lib/commands/page/index.js +1 -1
- package/lib/commands/page/pull.js +1 -1
- package/lib/commands/page/push.js +1 -1
- package/lib/commands/page/relation-audit.js +1 -1
- package/lib/commands/page/restore.js +1 -1
- package/lib/commands/page/shared.js +1 -1
- package/lib/commands/page/sync.js +1 -1
- package/lib/commands/project/api-architecture-upgrade.js +1 -1
- package/lib/commands/project/create/enhanced-guided-create.js +1 -1
- package/lib/commands/project/create/format-elapsed.js +1 -1
- package/lib/commands/project/create/main.js +1 -1
- package/lib/commands/project/create/materialize-project-template.js +1 -1
- package/lib/commands/project/create/project-name.js +1 -1
- package/lib/commands/project/create/project-template-archive.js +1 -1
- package/lib/commands/project/create/project-template-path.js +1 -1
- package/lib/commands/project/create/use-copy-project-template.js +1 -1
- package/lib/commands/project/create/use-format-code.js +1 -1
- package/lib/commands/project/create/use-install-dependencies.js +1 -1
- package/lib/commands/project/domain-routing-sync.js +1 -1
- package/lib/commands/project/index.js +1 -1
- package/lib/commands/project/upgrade.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/role/user-resolve.js +1 -1
- package/lib/commands/rule/get.js +1 -1
- package/lib/commands/rule/index.js +1 -1
- package/lib/commands/rule/list.js +1 -1
- package/lib/commands/rule/set.js +1 -1
- package/lib/commands/rule/shared.js +1 -1
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/sql/create.js +1 -1
- package/lib/commands/sql/delete.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/sql/list.js +1 -1
- package/lib/commands/sql/pull.js +1 -1
- package/lib/commands/sql/push.js +1 -1
- package/lib/commands/sql/shared.js +1 -1
- package/lib/commands/sql/status.js +1 -1
- package/lib/commands/sql/validate.js +1 -1
- package/lib/commands/task/index.js +1 -1
- package/lib/commands/task/status.js +1 -1
- package/lib/commands/tenant/index.js +1 -1
- package/lib/commands/tenant/members-list.js +1 -1
- package/lib/commands/tenant/shared.js +1 -1
- package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
- package/lib/commands/user-account/feishu-bind.js +1 -1
- package/lib/commands/user-account/index.js +1 -1
- package/lib/commands/workspace/add.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/commands/workspace/remove.js +1 -1
- package/lib/config/domain-config.js +1 -1
- package/lib/config/project-domain-routing.js +1 -1
- package/lib/config/region-config.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/cdn.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/paths.js +1 -1
- package/lib/constant/region.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/routing-profile.js +1 -1
- package/lib/context/app-resolver.js +1 -1
- package/lib/context/auth-resolver.js +1 -1
- package/lib/context/config-loader.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/bff/config.js +1 -1
- package/lib/core/bff/file-system.js +1 -1
- package/lib/core/bff/hash.js +1 -1
- package/lib/core/bff/hook-directory.js +1 -1
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/cross-db-relation.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/flow-config.js +1 -1
- package/lib/core/instant-api-policy/config.js +1 -1
- package/lib/core/kb-search-client.js +1 -1
- package/lib/core/page/file-system.js +1 -1
- package/lib/core/page/hash.js +1 -1
- package/lib/core/page/lock.js +1 -1
- package/lib/core/page/lr-smart-jsx.js +1 -1
- package/lib/core/sql-index-auditor.js +1 -1
- package/lib/core/sql-sync/config.js +1 -1
- package/lib/core/sql-sync/file-system.js +1 -1
- package/lib/core/sql-sync/hash.js +1 -1
- package/lib/core/sql-sync/lock.js +1 -1
- package/lib/core/sql-sync/utils.js +1 -1
- package/lib/core/sql-validator.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/error-output.js +1 -1
- package/lib/framework/explicit-yes.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-alias.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/supported-flags.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/generated/official-routing.js +1 -1
- package/lib/generated/routing-contract.js +1 -1
- package/lib/help.js +1 -1
- package/lib/postinstall.js +1 -1
- package/lib/runtime/confirmation.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/skills/builtin-skill.js +1 -1
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/skill-presence.js +1 -1
- package/lib/telemetry/cli-command-trace.js +1 -1
- package/lib/telemetry/cli-help-trace.js +1 -1
- package/lib/telemetry/ensure-cli-otel-config.js +1 -1
- package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
- package/lib/telemetry/send-cli-trace-log.js +1 -1
- package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
- package/lib/utils/ai_config.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cdn-config.js +1 -1
- package/lib/utils/check-sdk-version.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/config.js +1 -1
- package/lib/utils/entity-with-id.js +1 -1
- package/lib/utils/file-utils.js +1 -1
- package/lib/utils/guides-cdn.js +1 -1
- package/lib/utils/http-client.js +1 -1
- package/lib/utils/is-non-interactive.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/sleep.js +1 -1
- package/lib/utils/template-replacer.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/with-active-cookie.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
- package/skills/rabetbase/SKILL.md +3 -3
- package/skills/rabetbase/guides/independent-deployment.md +11 -1
- package/skills/rabetbase/references/rabetbase-config.md +16 -19
- package/skills/rabetbase/references/rabetbase-menu-visibility-update.md +5 -4
- package/skills/rabetbase/references/rabetbase-workspace.md +3 -1
- package/skills/rabetbase-page-generation/SKILL.md +13 -9
- package/skills/rabetbase-page-generation/references/component-baseline.md +2 -2
- package/skills/rabetbase-page-generation/references/generation.md +64 -15
- package/skills/rabetbase-page-generation/templates/onepage/build.mjs +39 -54
- package/skills/rabetbase-page-generation/templates/onepage/list/index.jsx +6 -2
- package/skills/rabetbase.manifest.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a111_0x3a00aa=a111_0x4289;function a111_0x43c6(){const _0x283d59=['1583904nsgPYY','boolean','job','jobId','Deployment\x20sync\x20submission\x20response\x20was\x20unavailable;\x20job\x20creation\x20is\x20unknown.','bool','Submit\x20an\x20administrative\x20metadata\x20backfill\x20or\x20recovery\x20synchronization.','application_deployment_sync','data','defineProperty','POST','9KmFVNW','outcome','submitted','24UiyKkk','16OErEyS','5XLYAVS','unknown','deployment','Backfill\x20or\x20recover\x20all\x20server-supported\x20application\x20metadata','Confirm\x20the\x20administrative\x20backfill\x20or\x20recovery\x20synchronization','64644vdwjZL','status','Run\x20with\x20--dry-run\x20first,\x20then\x20add\x20--confirm.','validation','425388UAkaCY','6061MDwvtY','confirm','742695GMyYbr','3567310WwwCrl','No\x20deployment\x20synchronization\x20was\x20needed\x20for\x20this\x20app.','22188jMvCMp','not_needed','387877vTZVxY','appCode','all_server_supported_metadata'];a111_0x43c6=function(){return _0x283d59;};return a111_0x43c6();}(function(_0x568f72,_0xc51b29){const _0x20e453=a111_0x4289,_0x5468d3=_0x568f72();while(!![]){try{const _0x335c3e=-parseInt(_0x20e453(0x1d5))/0x1+-parseInt(_0x20e453(0x1d2))/0x2+-parseInt(_0x20e453(0x1ce))/0x3*(-parseInt(_0x20e453(0x1c7))/0x4)+parseInt(_0x20e453(0x1c9))/0x5*(-parseInt(_0x20e453(0x1b9))/0x6)+parseInt(_0x20e453(0x1b6))/0x7*(parseInt(_0x20e453(0x1c8))/0x8)+parseInt(_0x20e453(0x1c4))/0x9*(parseInt(_0x20e453(0x1d6))/0xa)+parseInt(_0x20e453(0x1d3))/0xb*(parseInt(_0x20e453(0x1b4))/0xc);if(_0x335c3e===_0xc51b29)break;else _0x5468d3['push'](_0x5468d3['shift']());}catch(_0x4b89a1){_0x5468d3['push'](_0x5468d3['shift']());}}}(a111_0x43c6,0x60beb));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_0x4289(_0xe73f0f,_0x546dbf){_0xe73f0f=_0xe73f0f-0x1b3;const _0x43c6df=a111_0x43c6();let _0x4289cf=_0x43c6df[_0xe73f0f];return _0x4289cf;}const SUBMIT_PATH='/smartapi/data-sync/submit',CONFIRM_FLAG={'name':a111_0x3a00aa(0x1d4),'type':a111_0x3a00aa(0x1ba),'description':a111_0x3a00aa(0x1cd)};export const deploymentSyncAll={'service':a111_0x3a00aa(0x1cb),'command':'sync-all','description':a111_0x3a00aa(0x1cc),'risk':'write','strictFlags':!![],'structuredErrors':!![],'confirmationDescription':a111_0x3a00aa(0x1bf),'flags':[CONFIRM_FLAG,APPCODE_FLAG_OPTIONAL],async 'dryRun'(_0x24b12d){const _0x1d4392=a111_0x3a00aa;return asDryRunResult(buildPreview(_0x24b12d[_0x1d4392(0x1b7)]),{'method':_0x1d4392(0x1c3),'url':SUBMIT_PATH,'description':'Would\x20submit\x20an\x20administrative\x20deployment\x20metadata\x20backfill\x20or\x20recovery\x20job.'});},async 'execute'(_0x3f2464){const _0x17fd9d=a111_0x3a00aa;if(!_0x3f2464[_0x17fd9d(0x1be)](_0x17fd9d(0x1d4)))throw CliErrors[_0x17fd9d(0x1d1)]('--confirm\x20is\x20required\x20to\x20synchronize\x20all\x20application\x20metadata.',_0x17fd9d(0x1d0));try{const _0x492fe2=await submitDeploymentMetadataSyncAll({'appCode':_0x3f2464[_0x17fd9d(0x1b7)]});if(_0x492fe2[_0x17fd9d(0x1c5)]===_0x17fd9d(0x1b5))return{'ok':!![],'data':{'operation':_0x17fd9d(0x1c0),'appCode':_0x3f2464[_0x17fd9d(0x1b7)],'submitted':![],'outcome':'not_needed'},'message':_0x17fd9d(0x1b3)};return{'ok':!![],'data':{'operation':_0x17fd9d(0x1c0),'appCode':_0x3f2464['appCode'],'submitted':!![],'outcome':_0x17fd9d(0x1c6),'jobId':_0x492fe2[_0x17fd9d(0x1bb)][_0x17fd9d(0x1bc)],'status':_0x492fe2[_0x17fd9d(0x1bb)][_0x17fd9d(0x1cf)]},'message':'Submitted\x20deployment\x20synchronization\x20job\x20'+_0x492fe2[_0x17fd9d(0x1bb)]['jobId']+'.'};}catch(_0x2f129a){if(!isPlatformTransportFailure(_0x2f129a))throw _0x2f129a;const _0x29ea48=new CliError('deployment_sync_submit_outcome_unknown',0x2,_0x17fd9d(0x1bd),'List\x20recent\x20deployment\x20sync\x20jobs\x20before\x20deciding\x20whether\x20to\x20submit\x20again.');Object[_0x17fd9d(0x1c2)](_0x29ea48,_0x17fd9d(0x1c1),{'enumerable':!![],'value':{'operation':'application_deployment_sync','appCode':_0x3f2464[_0x17fd9d(0x1b7)],'submitted':null,'outcome':_0x17fd9d(0x1ca)}});throw _0x29ea48;}}};function buildPreview(_0x1acee1){const _0x3565b7=a111_0x3a00aa;return{'operation':_0x3565b7(0x1c0),'selector':{'appCode':_0x1acee1,'scope':_0x3565b7(0x1b8)},'before':null,'after':null,'dryRun':!![],'backend':{'submitted':![],'outcome':'not_submitted'},'warnings':[]};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a112_0xc5670c=a112_0x88e2;(function(_0x315e4a,_0x134bac){const _0x2300f8=a112_0x88e2,_0x349fff=_0x315e4a();while(!![]){try{const _0x539c71=parseInt(_0x2300f8(0x161))/0x1+parseInt(_0x2300f8(0x16c))/0x2+-parseInt(_0x2300f8(0x165))/0x3*(-parseInt(_0x2300f8(0x151))/0x4)+parseInt(_0x2300f8(0x15f))/0x5*(-parseInt(_0x2300f8(0x16a))/0x6)+parseInt(_0x2300f8(0x169))/0x7+parseInt(_0x2300f8(0x15c))/0x8*(-parseInt(_0x2300f8(0x15d))/0x9)+-parseInt(_0x2300f8(0x15a))/0xa;if(_0x539c71===_0x134bac)break;else _0x349fff['push'](_0x349fff['shift']());}catch(_0x458024){_0x349fff['push'](_0x349fff['shift']());}}}(a112_0x5cf3,0x2f18b));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a112_0x88e2(_0x477586,_0x36924d){_0x477586=_0x477586-0x151;const _0x5cf37a=a112_0x5cf3();let _0x88e22c=_0x5cf37a[_0x477586];return _0x88e22c;}import{listDeploymentMetadataSyncJobs}from'../../core/api-client.js';function a112_0x5cf3(){const _0x11fab1=['deployment','2601382hbefCj','743862htkgJZ','status','534536yqJOEp','--current-page\x20must\x20be\x20a\x20positive\x20integer.','length','page-size','trim','28jTiiFR','read','Page\x20number','isSafeInteger','appCode','current-page','items','\x20deployment\x20synchronization\x20job(s).','Found\x20','2274460TkKRgi','Items\x20per\x20page\x20(maximum\x20100)','40sUhSPb','592011uAwecx','List\x20application\x20deployment\x20synchronization\x20jobs','15DQTHtz','str','232280uKeawH','number','validation','num','107145QoaDTD','string','--page-size\x20must\x20be\x20an\x20integer\x20from\x201\x20to\x20100.'];a112_0x5cf3=function(){return _0x11fab1;};return a112_0x5cf3();}import{CliErrors}from'../../errors.js';export const deploymentSyncJobs={'service':a112_0xc5670c(0x168),'command':'sync-jobs','description':a112_0xc5670c(0x15e),'risk':a112_0xc5670c(0x152),'strictFlags':!![],'structuredErrors':!![],'flags':[{'name':a112_0xc5670c(0x156),'type':a112_0xc5670c(0x162),'default':0x1,'description':a112_0xc5670c(0x153)},{'name':a112_0xc5670c(0x16f),'type':a112_0xc5670c(0x162),'default':0xa,'description':a112_0xc5670c(0x15b)},{'name':a112_0xc5670c(0x16b),'type':a112_0xc5670c(0x166),'description':'Optional\x20server-defined\x20job\x20status\x20filter'},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x474c7e){const _0x5b5965=a112_0xc5670c;readPaging(_0x474c7e['num'](_0x5b5965(0x156),0x1),_0x474c7e[_0x5b5965(0x164)](_0x5b5965(0x16f),0xa));},async 'execute'(_0xb3ef56){const _0x4f50ef=a112_0xc5670c,{currentPage:_0x4b7f2d,pageSize:_0x3e4744}=readPaging(_0xb3ef56[_0x4f50ef(0x164)](_0x4f50ef(0x156),0x1),_0xb3ef56[_0x4f50ef(0x164)](_0x4f50ef(0x16f),0xa)),_0x152de6=_0xb3ef56[_0x4f50ef(0x160)](_0x4f50ef(0x16b))[_0x4f50ef(0x170)](),_0x556928=await listDeploymentMetadataSyncJobs({'appCode':_0xb3ef56['appCode'],'currentPage':_0x4b7f2d,'pageSize':_0x3e4744,..._0x152de6?{'status':_0x152de6}:{}});return{'ok':!![],'data':{'appCode':_0xb3ef56[_0x4f50ef(0x155)],..._0x556928},'message':_0x4f50ef(0x159)+_0x556928[_0x4f50ef(0x157)][_0x4f50ef(0x16e)]+_0x4f50ef(0x158)};}};function readPaging(_0x3d366a,_0x9139cc){const _0x245752=a112_0xc5670c;if(!Number[_0x245752(0x154)](_0x3d366a)||_0x3d366a<0x1)throw CliErrors[_0x245752(0x163)](_0x245752(0x16d));if(!Number[_0x245752(0x154)](_0x9139cc)||_0x9139cc<0x1||_0x9139cc>0x64)throw CliErrors[_0x245752(0x163)](_0x245752(0x167));return{'currentPage':_0x3d366a,'pageSize':_0x9139cc};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a113_0x30bd59=a113_0x21ce;function a113_0x45b6(){const _0x57125f=['reduce','length','596874cieMin','140zBbimN','map','results','--job-id\x20must\x20be\x20a\x20positive\x20integer.',';\x20terminal\x20state\x20is\x20unknown\x20to\x20this\x20CLI\x20version.','bizType','job-id','sync-status','Deployment\x20synchronization\x20job\x20ID','num','deployment','filter','1970739zeWgRF','FAILED','validation','PARTIAL_SUCCESS','status','592280mWYYOv','Preserved\x20server-defined\x20status\x20','appCode','536298BUSiRw','PENDING','\x20is\x20','isSafeInteger','96656EOofpU','has','action','2238KEFlnC','RUNNING','1512320MoVYER','number','77HNuHeJ'];a113_0x45b6=function(){return _0x57125f;};return a113_0x45b6();}(function(_0x1aa91,_0x37b6da){const _0x3cc928=a113_0x21ce,_0x38134a=_0x1aa91();while(!![]){try{const _0x4a368f=parseInt(_0x3cc928(0x1c0))/0x1+parseInt(_0x3cc928(0x1bd))/0x2+parseInt(_0x3cc928(0x1ab))/0x3+-parseInt(_0x3cc928(0x1c9))/0x4+parseInt(_0x3cc928(0x1ac))/0x5*(-parseInt(_0x3cc928(0x1c7))/0x6)+-parseInt(_0x3cc928(0x1a8))/0x7*(parseInt(_0x3cc928(0x1c4))/0x8)+-parseInt(_0x3cc928(0x1b8))/0x9;if(_0x4a368f===_0x37b6da)break;else _0x38134a['push'](_0x38134a['shift']());}catch(_0x21f66f){_0x38134a['push'](_0x38134a['shift']());}}}(a113_0x45b6,0x470b7));function a113_0x21ce(_0x385843,_0x5e2a1a){_0x385843=_0x385843-0x1a8;const _0x45b6c2=a113_0x45b6();let _0x21ce14=_0x45b6c2[_0x385843];return _0x21ce14;}import{getDeploymentMetadataSyncStatus}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const TERMINAL_STATUSES=new Set(['SUCCESS',a113_0x30bd59(0x1bb),a113_0x30bd59(0x1b9)]),ACTIVE_STATUSES=new Set([a113_0x30bd59(0x1c1),a113_0x30bd59(0x1c8)]);export const deploymentSyncStatus={'service':a113_0x30bd59(0x1b6),'command':a113_0x30bd59(0x1b3),'description':'Get\x20application\x20deployment\x20synchronization\x20job\x20status','risk':'read','requiresAppCode':!![],'strictFlags':!![],'structuredErrors':!![],'flags':[{'name':'job-id','type':a113_0x30bd59(0x1ca),'required':!![],'description':a113_0x30bd59(0x1b4)}],async 'validate'(_0x358569){const _0x4d2b79=a113_0x30bd59;readJobId(_0x358569[_0x4d2b79(0x1b5)](_0x4d2b79(0x1b2)));},async 'execute'(_0x121d4f){const _0x318030=a113_0x30bd59,_0x4671d3=readJobId(_0x121d4f['num'](_0x318030(0x1b2))),_0x39e0e6=await getDeploymentMetadataSyncStatus({'jobId':_0x4671d3,'appCode':_0x121d4f[_0x318030(0x1bf)]}),_0x378dfd=TERMINAL_STATUSES[_0x318030(0x1c5)](_0x39e0e6[_0x318030(0x1bc)])?!![]:ACTIVE_STATUSES[_0x318030(0x1c5)](_0x39e0e6['status'])?![]:null,_0x5be1f0=countBy(_0x39e0e6[_0x318030(0x1ae)]['map'](_0x3ffffa=>_0x3ffffa[_0x318030(0x1b1)])),_0x298a15=countBy(_0x39e0e6[_0x318030(0x1ae)][_0x318030(0x1ad)](_0x36921b=>_0x36921b[_0x318030(0x1c6)])),_0x5ad32c=_0x378dfd===null?[_0x318030(0x1be)+_0x39e0e6[_0x318030(0x1bc)]+_0x318030(0x1b0)]:[];return{'ok':!![],'data':{'job':_0x39e0e6,'isTerminal':_0x378dfd,'summary':{'total':_0x39e0e6[_0x318030(0x1ae)][_0x318030(0x1aa)],'failed':_0x39e0e6['results'][_0x318030(0x1b7)](_0x5b7ff3=>_0x5b7ff3[_0x318030(0x1c6)]===_0x318030(0x1b9))[_0x318030(0x1aa)],'byBizType':_0x5be1f0,'byAction':_0x298a15},'warnings':_0x5ad32c},'message':'Deployment\x20synchronization\x20job\x20'+_0x4671d3+_0x318030(0x1c2)+_0x39e0e6[_0x318030(0x1bc)]+'.'};}};function readJobId(_0x28d8a1){const _0x5de5e9=a113_0x30bd59;if(!Number[_0x5de5e9(0x1c3)](_0x28d8a1)||_0x28d8a1<=0x0)throw CliErrors[_0x5de5e9(0x1ba)](_0x5de5e9(0x1af));return _0x28d8a1;}function countBy(_0x1a7bbc){const _0x51387b=a113_0x30bd59;return _0x1a7bbc[_0x51387b(0x1a9)]((_0x209c84,_0x50e14c)=>{return _0x209c84[_0x50e14c]=(_0x209c84[_0x50e14c]??0x0)+0x1,_0x209c84;},{});}
|
package/lib/commands/doctor.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a114_0x3ddc41=a114_0x5722;function a114_0x49da(){const _0x10495d=['keys','\x20←\x20current','\x20+\x20','region','(unknown)','source','hasOwnProperty','✓\x20Valid\x20JSON','✗\x20Expired','status','filter','\x20(invalid)','(not\x20set)','entries','toLowerCase','776ZDxFkS','stringify','(default)','\x20\x20Skill\x20Version:\x20\x20\x20','doctor','\x20\x20Installed\x20Path:\x20\x20','pageSize','length','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','unknown','object','✗\x20Invalid','\x20\x20\x20\x20region:\x20\x20\x20\x20\x20','\x20\x20Apps','✗\x20Not\x20logged\x20in','currentApp','defaultApp','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Legacy\x20inherit:\x20\x20\x20','\x20(default)','green','global','bold','label','\x20\x20Package\x20Version:\x20','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','routing','\x20\x20Repair\x20project:\x20\x20','3311HishoF','missing','\x20\x20Config\x20JSON','42FdWpQz','project','present','\x20config','state','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','riskLevel','\x20\x20Repair\x20global:\x20\x20\x20\x20','prototype','appCode','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','cookie','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','value','accessKey','✓\x20Valid','call','red','skillVersion','\x20\x20Routing\x20Configuration','includes','appcode','Set\x20apps.','message','Project','\x20\x20Auth','gray','(none)','Global','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','\x20config\x20delete\x20inherit\x20--global','inherit','\x20\x20appDomain:\x20\x20\x20\x20\x20\x20\x20','padEnd','9357wUOrso','\x20config\x20delete\x20region','5283ityduE','2292yLVurX','\x20\x20Country/Region\x20Configuration','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','repairCommand','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','reason','env','string','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','(not\x20found)','repeat','481172rIxtkv','apiDir','push','read','apps','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','empty','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','format','(set,\x20length=','\x20doctor','✗\x20Invalid\x20','(missing)','Repair\x20','605iLKFBZ','\x20\x20Repair\x20global:\x20\x20\x20','4020DvglBw','(set\x20via\x20file,\x20length=','57897fMLkYC','Not\x20checked\x20until\x20routing\x20configuration\x20is\x20repaired','platform','(default:\x20','\x20app\x20\x22','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Config\x20Files','\x20\x20API\x20Endpoints','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','3020ZHpWNz','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','arch','\x20\x20app\x20locale:\x20\x20\x20\x20\x20\x20','⚠\x20Empty\x20(treated\x20as\x20{})','9075jVqAxd','\x20\x20kbDomain:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20kbServiceDomain:\x20','yellow','\x20\x20─','current','raw','\x20\x20skillDomain:\x20\x20\x20\x20\x20','explicitAppName','\x20\x20explicitAppName:\x20','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','log','\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','globalConfig','projectConfig','regionConfiguredValue','\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(no\x20file)'];a114_0x49da=function(){return _0x10495d;};return a114_0x49da();}(function(_0x49ccc4,_0x257233){const _0x10e2fb=a114_0x5722,_0x12e621=_0x49ccc4();while(!![]){try{const _0x7704ef=parseInt(_0x10e2fb(0x11e))/0x1+-parseInt(_0x10e2fb(0xda))/0x2*(-parseInt(_0x10e2fb(0xfe))/0x3)+-parseInt(_0x10e2fb(0x10c))/0x4+-parseInt(_0x10e2fb(0x11a))/0x5*(parseInt(_0x10e2fb(0x101))/0x6)+-parseInt(_0x10e2fb(0xd7))/0x7*(-parseInt(_0x10e2fb(0xbb))/0x8)+-parseInt(_0x10e2fb(0x100))/0x9*(parseInt(_0x10e2fb(0x94))/0xa)+parseInt(_0x10e2fb(0x99))/0xb*(parseInt(_0x10e2fb(0x11c))/0xc);if(_0x7704ef===_0x257233)break;else _0x12e621['push'](_0x12e621['shift']());}catch(_0x82be02){_0x12e621['push'](_0x12e621['shift']());}}}(a114_0x49da,0x18de7));import a114_0x13f099 from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';import{getActiveRegion,getApiDomain,getAppDomain,getKbDomain,getKbServiceDomain,getSkillDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';function a114_0x5722(_0x4bbaf6,_0x52f059){_0x4bbaf6=_0x4bbaf6-0x93;const _0x49da94=a114_0x49da();let _0x5722bd=_0x49da94[_0x4bbaf6];return _0x5722bd;}import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags,initGlobalEnvironment,inspectCliConfigJsonFile,loadRawConfigLayers}from'../context.js';import{getIsSessionValid}from'../auth/is-session-valid.js';import{getCookie}from'../auth/get-cookie.js';import{buildAppDoctorFields}from'../config/schema.js';import{resolveEffectiveRegion}from'../config/region-config.js';import{inspectBuiltinSkill}from'../skills/builtin-skill.js';import{DEFAULT_LOVRABET_REGION,isInvalidLovrabetRegion}from'../constant/region.js';function describeRegionValue(_0x2dcd2e){const _0x21c15f=a114_0x5722;return typeof _0x2dcd2e===_0x21c15f(0x108)?JSON[_0x21c15f(0xbc)](_0x2dcd2e):'<'+(_0x2dcd2e===null?'null':typeof _0x2dcd2e)+'>';}async function execute(_0x355f46){const _0x3ce2d5=a114_0x5722,_0x1e607d=GIT_COMMIT!==_0x3ce2d5(0xc4)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME['slice'](0x0,0xa)+')':VERSION,_0x182a5c=buildConfigFromFlags({}),_0x18265a=getCookie();let _0x4312b8;try{await initGlobalEnvironment(_0x182a5c);}catch(_0x32faa5){_0x4312b8=_0x32faa5 instanceof Error?_0x32faa5:new Error(String(_0x32faa5));}console['log'](),console[_0x3ce2d5(0xa4)](a114_0x13f099['bold'](CLI_BIN_NAME+_0x3ce2d5(0x116))),console[_0x3ce2d5(0xa4)](a114_0x13f099['gray']('─'[_0x3ce2d5(0x10b)](0x32))),console[_0x3ce2d5(0xa4)](_0x3ce2d5(0x111)+_0x1e607d),console[_0x3ce2d5(0xa4)](_0x3ce2d5(0xc3)+process['version']),console[_0x3ce2d5(0xa4)](_0x3ce2d5(0x103)+process[_0x3ce2d5(0x120)]+'\x20'+process[_0x3ce2d5(0x96)]);const _0x3ef26a=inspectBuiltinSkill();console['log'](),console[_0x3ce2d5(0xa4)](a114_0x13f099[_0x3ce2d5(0xd1)]('\x20\x20Built-in\x20Skill')),console['log'](a114_0x13f099[_0x3ce2d5(0xf5)](_0x3ce2d5(0x9d)['repeat'](0x1e)));const _0x4f7333=_0x3ef26a[_0x3ce2d5(0xde)]==='current'?a114_0x13f099[_0x3ce2d5(0xcf)]('✓\x20'+_0x3ef26a[_0x3ce2d5(0xde)]):a114_0x13f099[_0x3ce2d5(0xec)]('✗\x20'+_0x3ef26a['state']);console[_0x3ce2d5(0xa4)](_0x3ce2d5(0xa9)+_0x4f7333),console['log'](_0x3ce2d5(0xd3)+_0x3ef26a['packageVersion']),console[_0x3ce2d5(0xa4)](_0x3ce2d5(0xbe)+(_0x3ef26a[_0x3ce2d5(0xed)]||a114_0x13f099[_0x3ce2d5(0xf5)](_0x3ce2d5(0xb0)))),console['log'](_0x3ce2d5(0xc0)+(_0x3ef26a['installedPath']||a114_0x13f099['gray']('(not\x20found)')));if(_0x3ef26a[_0x3ce2d5(0x106)])console[_0x3ce2d5(0xa4)]('\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x3ef26a['reason']);_0x3ef26a['state']!==_0x3ce2d5(0x9e)&&console[_0x3ce2d5(0xa4)]('\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x3ef26a['repairCommand']);console[_0x3ce2d5(0xa4)](),console['log'](a114_0x13f099[_0x3ce2d5(0xd1)](_0x3ce2d5(0x124))),console[_0x3ce2d5(0xa4)](a114_0x13f099['gray']('\x20\x20─'[_0x3ce2d5(0x10b)](0x1e)));const _0x32bc10=getGlobalConfigPath(),_0x2a7f9b=getProjectConfigPath();console[_0x3ce2d5(0xa4)](_0x3ce2d5(0xdf)+(_0x32bc10||a114_0x13f099[_0x3ce2d5(0xf5)](_0x3ce2d5(0x10a)))),console[_0x3ce2d5(0xa4)](_0x3ce2d5(0xe7)+(_0x2a7f9b||a114_0x13f099[_0x3ce2d5(0xf5)](_0x3ce2d5(0x10a)))),console[_0x3ce2d5(0xa4)](),console['log'](a114_0x13f099['bold'](_0x3ce2d5(0xd9))),console[_0x3ce2d5(0xa4)](a114_0x13f099['gray'](_0x3ce2d5(0x9d)['repeat'](0x1e)));const _0x28b6e1=(_0x1fe42d,_0x1435b7)=>{const _0x43f09a=_0x3ce2d5;if(!_0x1435b7){console[_0x43f09a(0xa4)]('\x20\x20'+_0x1fe42d[_0x43f09a(0xfd)](0x11)+'\x20'+a114_0x13f099[_0x43f09a(0xf5)](_0x43f09a(0xab)));return;}const _0x40c923=inspectCliConfigJsonFile(_0x1435b7);if(_0x40c923[_0x43f09a(0xb5)]==='ok')console[_0x43f09a(0xa4)]('\x20\x20'+_0x1fe42d[_0x43f09a(0xfd)](0x11)+'\x20'+a114_0x13f099['green'](_0x43f09a(0xb3)));else{if(_0x40c923[_0x43f09a(0xb5)]===_0x43f09a(0x112))console[_0x43f09a(0xa4)]('\x20\x20'+_0x1fe42d[_0x43f09a(0xfd)](0x11)+'\x20'+a114_0x13f099[_0x43f09a(0x9c)](_0x43f09a(0x98)));else _0x40c923[_0x43f09a(0xb5)]===_0x43f09a(0xd8)?console[_0x43f09a(0xa4)]('\x20\x20'+_0x1fe42d['padEnd'](0x11)+'\x20'+a114_0x13f099['gray'](_0x43f09a(0x118))):(console[_0x43f09a(0xa4)]('\x20\x20'+_0x1fe42d['padEnd'](0x11)+'\x20'+a114_0x13f099[_0x43f09a(0xec)]('✗\x20Invalid\x20JSON')),console[_0x43f09a(0xa4)]('\x20\x20'+''['padEnd'](0x11)+'\x20'+a114_0x13f099[_0x43f09a(0xec)](_0x40c923['message'])));}};_0x28b6e1(_0x3ce2d5(0xf7),_0x32bc10),_0x28b6e1(_0x3ce2d5(0xf3),_0x2a7f9b);const _0xbdf643=loadRawConfigLayers(),_0x475a62=[{'label':_0x3ce2d5(0xf3),'value':_0xbdf643[_0x3ce2d5(0xa7)]['region'],'present':Object[_0x3ce2d5(0xe2)][_0x3ce2d5(0xb2)][_0x3ce2d5(0xeb)](_0xbdf643[_0x3ce2d5(0xa7)],_0x3ce2d5(0xaf)),'repairCommand':CLI_BIN_NAME+_0x3ce2d5(0xff)},{'label':_0x3ce2d5(0xf7),'value':_0xbdf643[_0x3ce2d5(0xa6)][_0x3ce2d5(0xaf)],'present':Object[_0x3ce2d5(0xe2)][_0x3ce2d5(0xb2)][_0x3ce2d5(0xeb)](_0xbdf643[_0x3ce2d5(0xa6)],_0x3ce2d5(0xaf)),'repairCommand':CLI_BIN_NAME+'\x20config\x20delete\x20region\x20--global'}][_0x3ce2d5(0xb6)](_0x416603=>_0x416603[_0x3ce2d5(0xdc)]&&isInvalidLovrabetRegion(_0x416603['value']));for(const [_0x22c7af,_0x5272d4]of[[_0x3ce2d5(0xf3),_0xbdf643[_0x3ce2d5(0xa7)]],[_0x3ce2d5(0xf7),_0xbdf643[_0x3ce2d5(0xa6)]]]){const _0x4ff270=_0x5272d4['apps']&&typeof _0x5272d4[_0x3ce2d5(0x110)]===_0x3ce2d5(0xc5)?_0x5272d4[_0x3ce2d5(0x110)]:{};for(const [_0x2a4a20,_0xe1d1fd]of Object[_0x3ce2d5(0xb9)](_0x4ff270)){if(!_0xe1d1fd||typeof _0xe1d1fd!==_0x3ce2d5(0xc5)||!Object[_0x3ce2d5(0xe2)][_0x3ce2d5(0xb2)]['call'](_0xe1d1fd,_0x3ce2d5(0xaf)))continue;isInvalidLovrabetRegion(_0xe1d1fd[_0x3ce2d5(0xaf)])&&_0x475a62[_0x3ce2d5(0x10e)]({'label':_0x22c7af+_0x3ce2d5(0x122)+_0x2a4a20+'\x22','value':_0xe1d1fd[_0x3ce2d5(0xaf)],'present':!![],'repairCommand':_0x3ce2d5(0xf1)+_0x2a4a20+'.region\x20to\x20cn\x20or\x20id\x20in\x20'+_0x22c7af[_0x3ce2d5(0xba)]()+_0x3ce2d5(0xdd)});}}if(_0x475a62[_0x3ce2d5(0xc2)]>0x0){console[_0x3ce2d5(0xa4)](),console['log'](a114_0x13f099[_0x3ce2d5(0xd1)](_0x3ce2d5(0x102))),console['log'](a114_0x13f099[_0x3ce2d5(0xf5)](_0x3ce2d5(0x9d)[_0x3ce2d5(0x10b)](0x1e)));for(const _0xff7e28 of _0x475a62){console[_0x3ce2d5(0xa4)]('\x20\x20'+_0xff7e28[_0x3ce2d5(0xd2)][_0x3ce2d5(0xfd)](0x11)+'\x20'+a114_0x13f099[_0x3ce2d5(0xec)](_0x3ce2d5(0x117)+describeRegionValue(_0xff7e28[_0x3ce2d5(0xe8)]))),console[_0x3ce2d5(0xa4)]('\x20\x20'+(_0x3ce2d5(0x119)+_0xff7e28[_0x3ce2d5(0xd2)][_0x3ce2d5(0xba)]()+':')[_0x3ce2d5(0xfd)](0x10)+'\x20'+_0xff7e28[_0x3ce2d5(0x104)]);}}const _0x22c074=[Object['prototype'][_0x3ce2d5(0xb2)]['call'](_0xbdf643[_0x3ce2d5(0xa6)],_0x3ce2d5(0xfb))?_0x3ce2d5(0xd0):null,Object[_0x3ce2d5(0xe2)][_0x3ce2d5(0xb2)][_0x3ce2d5(0xeb)](_0xbdf643[_0x3ce2d5(0xa7)],_0x3ce2d5(0xfb))?_0x3ce2d5(0xdb):null][_0x3ce2d5(0xb6)](Boolean);_0x22c074[_0x3ce2d5(0xc2)]>0x0&&(console['log'](_0x3ce2d5(0xcd)+a114_0x13f099[_0x3ce2d5(0x9c)]('ignored\x20in\x20'+_0x22c074['join'](_0x3ce2d5(0xae))+_0x3ce2d5(0xdd))),_0x22c074[_0x3ce2d5(0xef)](_0x3ce2d5(0xdb))&&console[_0x3ce2d5(0xa4)]('\x20\x20Repair\x20project:\x20\x20\x20'+CLI_BIN_NAME+'\x20config\x20delete\x20inherit'),_0x22c074[_0x3ce2d5(0xef)](_0x3ce2d5(0xd0))&&console[_0x3ce2d5(0xa4)](_0x3ce2d5(0xe1)+CLI_BIN_NAME+_0x3ce2d5(0xfa)));const _0x1fa202=isInvalidLovrabetRegion(_0x182a5c['regionConfiguredValue']??_0x182a5c[_0x3ce2d5(0x9f)]?.[_0x3ce2d5(0xaf)]);_0x4312b8&&!_0x1fa202&&(console[_0x3ce2d5(0xa4)](),console[_0x3ce2d5(0xa4)](a114_0x13f099[_0x3ce2d5(0xd1)](_0x3ce2d5(0xee))),console['log'](a114_0x13f099[_0x3ce2d5(0xf5)](_0x3ce2d5(0x9d)['repeat'](0x1e))),console['log'](_0x3ce2d5(0xf8)+a114_0x13f099[_0x3ce2d5(0xec)](_0x3ce2d5(0xc6))),console['log'](_0x3ce2d5(0xa5)+_0x4312b8[_0x3ce2d5(0xf2)]),Object[_0x3ce2d5(0xe2)][_0x3ce2d5(0xb2)][_0x3ce2d5(0xeb)](_0xbdf643[_0x3ce2d5(0xa7)],_0x3ce2d5(0xd5))&&console[_0x3ce2d5(0xa4)](_0x3ce2d5(0xd6)+CLI_BIN_NAME+'\x20config\x20delete\x20routing'),Object['prototype'][_0x3ce2d5(0xb2)][_0x3ce2d5(0xeb)](_0xbdf643[_0x3ce2d5(0xa6)],_0x3ce2d5(0xd5))&&console[_0x3ce2d5(0xa4)](_0x3ce2d5(0x11b)+CLI_BIN_NAME+'\x20config\x20delete\x20routing\x20--global'));console['log'](),console[_0x3ce2d5(0xa4)](a114_0x13f099[_0x3ce2d5(0xd1)]('\x20\x20Merged\x20Config')),console['log'](a114_0x13f099[_0x3ce2d5(0xf5)](_0x3ce2d5(0x9d)[_0x3ce2d5(0x10b)](0x1e))),console[_0x3ce2d5(0xa4)](_0x3ce2d5(0x113)+(_0x182a5c[_0x3ce2d5(0xe3)]||a114_0x13f099[_0x3ce2d5(0xec)](_0x3ce2d5(0xb8))));const _0x2b11d3=_0x1fa202?a114_0x13f099[_0x3ce2d5(0xec)](describeRegionValue(_0x182a5c[_0x3ce2d5(0xa8)]??_0x182a5c[_0x3ce2d5(0x9f)]?.[_0x3ce2d5(0xaf)])+_0x3ce2d5(0xb7)):(_0x182a5c[_0x3ce2d5(0xaf)]??DEFAULT_LOVRABET_REGION)+'\x20('+(_0x182a5c['regionSource']??'default')+')';console[_0x3ce2d5(0xa4)]('\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x2b11d3),console['log'](_0x3ce2d5(0xcc)+_0x182a5c['env']),console[_0x3ce2d5(0xa4)](_0x3ce2d5(0x97)+_0x182a5c['locale']),console['log']('\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x182a5c[_0x3ce2d5(0x10d)]),console[_0x3ce2d5(0xa4)]('\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20'+(_0x182a5c[_0x3ce2d5(0xcb)]||a114_0x13f099['gray'](_0x3ce2d5(0xf6)))),console[_0x3ce2d5(0xa4)](_0x3ce2d5(0x109)+(_0x182a5c[_0x3ce2d5(0xca)]||a114_0x13f099[_0x3ce2d5(0xf5)](_0x3ce2d5(0xf6)))),console[_0x3ce2d5(0xa4)](_0x3ce2d5(0xa2)+(_0x182a5c[_0x3ce2d5(0xa1)]||a114_0x13f099[_0x3ce2d5(0xf5)](_0x3ce2d5(0xf6)))),console['log'](_0x3ce2d5(0xaa)+(_0x182a5c[_0x3ce2d5(0x114)]||a114_0x13f099['gray'](_0x3ce2d5(0x121)+DEFAULT_CONFIG_VALUES['format']+')'))),console[_0x3ce2d5(0xa4)](_0x3ce2d5(0x105)+(_0x182a5c[_0x3ce2d5(0xc1)]??a114_0x13f099['gray'](_0x3ce2d5(0xbd)))),console[_0x3ce2d5(0xa4)](_0x3ce2d5(0xd4)+_0x182a5c[_0x3ce2d5(0xe0)]),console['log'](_0x3ce2d5(0x123)+_0x182a5c['verbose']),console[_0x3ce2d5(0xa4)](_0x3ce2d5(0xe4)+(_0x182a5c[_0x3ce2d5(0xe5)]?a114_0x13f099[_0x3ce2d5(0xcf)](_0x3ce2d5(0x115)+_0x182a5c[_0x3ce2d5(0xe5)][_0x3ce2d5(0xc2)]+')'):_0x18265a?a114_0x13f099[_0x3ce2d5(0xcf)](_0x3ce2d5(0x11d)+_0x18265a['length']+')'):a114_0x13f099[_0x3ce2d5(0xf5)]('(none)')));const _0x5656df=Object[_0x3ce2d5(0xac)](_0x182a5c[_0x3ce2d5(0x110)]);if(_0x5656df[_0x3ce2d5(0xc2)]>0x0){console[_0x3ce2d5(0xa4)](),console[_0x3ce2d5(0xa4)](a114_0x13f099['bold'](_0x3ce2d5(0xc8))),console[_0x3ce2d5(0xa4)](a114_0x13f099[_0x3ce2d5(0xf5)]('\x20\x20─'[_0x3ce2d5(0x10b)](0x1e)));for(const _0x2664e7 of _0x5656df){const _0x501790=_0x182a5c[_0x3ce2d5(0x110)][_0x2664e7],_0x1b18b0=_0x2664e7===_0x182a5c[_0x3ce2d5(0xcb)],_0x45f9ef=_0x2664e7===_0x182a5c[_0x3ce2d5(0xca)],_0x3b8a33=_0x45f9ef?a114_0x13f099[_0x3ce2d5(0xcf)](_0x3ce2d5(0xad)):'',_0x142b5c=_0x1b18b0?_0x3ce2d5(0xce):'';console[_0x3ce2d5(0xa4)]('\x20\x20'+_0x2664e7+_0x142b5c+_0x3b8a33),console[_0x3ce2d5(0xa4)]('\x20\x20\x20\x20appcode:\x20\x20\x20\x20'+_0x501790[_0x3ce2d5(0xf0)]);const _0x16285d=_0xbdf643[_0x3ce2d5(0xa7)][_0x3ce2d5(0x110)]&&typeof _0xbdf643[_0x3ce2d5(0xa7)][_0x3ce2d5(0x110)]===_0x3ce2d5(0xc5)?_0xbdf643['projectConfig'][_0x3ce2d5(0x110)]:{},_0x3c6d55=Object[_0x3ce2d5(0xe2)][_0x3ce2d5(0xb2)][_0x3ce2d5(0xeb)](_0x16285d,_0x2664e7),_0x365b95=isInvalidLovrabetRegion(_0x501790[_0x3ce2d5(0xaf)])?{'region':_0x182a5c['region']??DEFAULT_LOVRABET_REGION}:resolveEffectiveRegion({'appRegion':_0x501790[_0x3ce2d5(0xaf)],'projectRegion':_0x3c6d55?_0xbdf643[_0x3ce2d5(0xa7)]['region']:undefined,'globalRegion':_0xbdf643[_0x3ce2d5(0xa6)]['region'],'mergedRegion':_0x182a5c['raw']['region'],'appName':_0x2664e7}),_0x21215a=buildAppDoctorFields(_0x501790,{'region':_0x365b95[_0x3ce2d5(0xaf)],'env':_0x182a5c[_0x3ce2d5(0x107)],'apiDir':_0x182a5c[_0x3ce2d5(0x9f)][_0x3ce2d5(0x10d)]||DEFAULT_CONFIG_VALUES['apiDir'],'cookie':_0x182a5c[_0x3ce2d5(0xe5)]||_0x18265a||undefined,'accessKey':_0x182a5c[_0x3ce2d5(0xe9)]});console[_0x3ce2d5(0xa4)](_0x3ce2d5(0xc7)+_0x21215a[_0x3ce2d5(0xaf)][_0x3ce2d5(0xe8)]+'\x20\x20'+a114_0x13f099['gray']('('+_0x21215a[_0x3ce2d5(0xaf)]['source']+')')),console[_0x3ce2d5(0xa4)](_0x3ce2d5(0xe6)+_0x21215a['env'][_0x3ce2d5(0xe8)]+'\x20\x20'+a114_0x13f099['gray']('('+_0x21215a[_0x3ce2d5(0x107)][_0x3ce2d5(0xb1)]+')')),console[_0x3ce2d5(0xa4)]('\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20'+_0x21215a[_0x3ce2d5(0x10d)][_0x3ce2d5(0xe8)]+'\x20\x20'+a114_0x13f099[_0x3ce2d5(0xf5)]('('+_0x21215a[_0x3ce2d5(0x10d)][_0x3ce2d5(0xb1)]+')'));const _0x3ee0c9=_0x21215a[_0x3ce2d5(0xe5)]['value']?a114_0x13f099['green'](_0x3ce2d5(0x115)+_0x21215a[_0x3ce2d5(0xe5)][_0x3ce2d5(0xe8)][_0x3ce2d5(0xc2)]+')'):a114_0x13f099['gray']('(none)');console[_0x3ce2d5(0xa4)](_0x3ce2d5(0x95)+_0x3ee0c9+'\x20\x20'+a114_0x13f099[_0x3ce2d5(0xf5)]('('+_0x21215a[_0x3ce2d5(0xe5)][_0x3ce2d5(0xb1)]+')'));const _0x5c0cfa=_0x21215a[_0x3ce2d5(0xe9)][_0x3ce2d5(0xe8)]?a114_0x13f099[_0x3ce2d5(0xcf)](_0x3ce2d5(0x115)+_0x21215a['accessKey'][_0x3ce2d5(0xe8)][_0x3ce2d5(0xc2)]+')'):a114_0x13f099[_0x3ce2d5(0xf5)](_0x3ce2d5(0xf6));console['log']('\x20\x20\x20\x20accessKey:\x20\x20'+_0x5c0cfa+'\x20\x20'+a114_0x13f099[_0x3ce2d5(0xf5)]('('+_0x21215a[_0x3ce2d5(0xe9)][_0x3ce2d5(0xb1)]+')'));}}console[_0x3ce2d5(0xa4)](),console[_0x3ce2d5(0xa4)](a114_0x13f099[_0x3ce2d5(0xd1)](_0x3ce2d5(0x125))),console[_0x3ce2d5(0xa4)](a114_0x13f099[_0x3ce2d5(0xf5)](_0x3ce2d5(0x9d)[_0x3ce2d5(0x10b)](0x1e)));_0x4312b8?console[_0x3ce2d5(0xa4)](_0x3ce2d5(0xf8)+a114_0x13f099[_0x3ce2d5(0xec)]('Unavailable\x20until\x20routing\x20configuration\x20is\x20repaired')):(console[_0x3ce2d5(0xa4)]('\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+getActiveRegion()),console[_0x3ce2d5(0xa4)](_0x3ce2d5(0xa3)+getApiDomain()),console['log'](_0x3ce2d5(0x93)+getUserDomain()),console[_0x3ce2d5(0xa4)]('\x20\x20runtimeDomain:\x20\x20\x20'+getRuntimeDomain()),console['log'](_0x3ce2d5(0xa0)+getSkillDomain()),console['log'](_0x3ce2d5(0x9a)+getKbDomain()),console[_0x3ce2d5(0xa4)](_0x3ce2d5(0x9b)+(getKbServiceDomain()??'not\x20configured')),console[_0x3ce2d5(0xa4)](_0x3ce2d5(0xfc)+getAppDomain()));console['log'](),console[_0x3ce2d5(0xa4)](a114_0x13f099[_0x3ce2d5(0xd1)](_0x3ce2d5(0xf4))),console[_0x3ce2d5(0xa4)](a114_0x13f099[_0x3ce2d5(0xf5)](_0x3ce2d5(0x9d)[_0x3ce2d5(0x10b)](0x1e)));if(_0x4312b8)console[_0x3ce2d5(0xa4)](_0x3ce2d5(0xf8)+a114_0x13f099[_0x3ce2d5(0x9c)](_0x3ce2d5(0x11f)));else{if(_0x18265a){const _0x1bda3e=await getIsSessionValid();console['log'](_0x3ce2d5(0xf8)+(_0x1bda3e?a114_0x13f099[_0x3ce2d5(0xcf)](_0x3ce2d5(0xea)):a114_0x13f099[_0x3ce2d5(0xec)](_0x3ce2d5(0xb4))));}else console[_0x3ce2d5(0xa4)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a114_0x13f099[_0x3ce2d5(0xec)](_0x3ce2d5(0xc9)));}return console[_0x3ce2d5(0xa4)](),{'ok':!![]};}export const doctorDefinition={'service':a114_0x3ddc41(0xbf),'command':'check','description':a114_0x3ddc41(0xf9),'risk':a114_0x3ddc41(0x10f),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
|
|
1
|
+
const a114_0x41bc05=a114_0xf4e3;function a114_0x3d07(){const _0x1e954b=['source','\x20\x20API\x20Endpoints','globalConfig','\x20+\x20','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','\x20\x20Repair\x20global:\x20\x20\x20','appCode','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','\x20\x20\x20\x20region:\x20\x20\x20\x20\x20','arch','apiDir','repeat','reason','70302SeVGbm','call','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','entries','keys','Repair\x20','\x20app\x20\x22','read','\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20(invalid)','\x20doctor','check','object','doctor','region','\x20config\x20delete\x20routing\x20--global','(unknown)','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(set\x20via\x20file,\x20length=','value','\x20\x20Repair\x20project:\x20\x20\x20','259yvpGyF','length','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','prototype','\x20\x20appDomain:\x20\x20\x20\x20\x20\x20\x20','string','\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','✓\x20Valid','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','⚠\x20Empty\x20(treated\x20as\x20{})','Set\x20apps.','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(none)','label','\x20config\x20delete\x20inherit','log','routing','\x20\x20Merged\x20Config','\x20\x20Installed\x20Path:\x20\x20','projectConfig','✓\x20Valid\x20JSON','\x20config\x20delete\x20region','project','\x20\x20Auth','cookie','state','(default:\x20','6231140Ixqpen','Project','installedPath','\x20\x20Config\x20Files','✗\x20Not\x20logged\x20in','\x20\x20Routing\x20Configuration','yellow','\x20\x20app\x20locale:\x20\x20\x20\x20\x20\x20','status','hasOwnProperty','inherit','current','3609IYYxLD','slice','(not\x20found)','1324ztIMZT','riskLevel','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','gray','accessKey','1727514nqGNIk','\x20\x20Skill\x20Version:\x20\x20\x20','unknown','push','format','regionConfiguredValue','default','19833vakmpS','green','\x20\x20Package\x20Version:\x20','skillVersion','version','\x20(default)','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','26064nwOvFH','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','toLowerCase','\x20\x20kbDomain:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','verbose','✗\x20Invalid\x20','595bGzlTA','7157205rkelko','\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','2384jsqGMl','filter','✗\x20Invalid\x20JSON','explicitAppName','currentApp','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','global','bold','env','Global','locale','null','\x20config\x20delete\x20inherit\x20--global','defaultApp','missing','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','✗\x20Invalid','raw','includes','apps','\x20\x20\x20\x20accessKey:\x20\x20','packageVersion','message','\x20config','(no\x20file)','empty','\x20config\x20delete\x20routing','8WBmsKo','padEnd','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Built-in\x20Skill','repairCommand','\x20\x20Country/Region\x20Configuration','\x20\x20─','regionSource','pageSize','red','✗\x20Expired','(set,\x20length=','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20'];a114_0x3d07=function(){return _0x1e954b;};return a114_0x3d07();}(function(_0x5b08a8,_0x370c30){const _0x1c5f0f=a114_0xf4e3,_0x4e07df=_0x5b08a8();while(!![]){try{const _0x3279a5=parseInt(_0x1c5f0f(0xc3))/0x1*(parseInt(_0x1c5f0f(0xa9))/0x2)+-parseInt(_0x1c5f0f(0xae))/0x3*(parseInt(_0x1c5f0f(0xe4))/0x4)+-parseInt(_0x1c5f0f(0xc4))/0x5+-parseInt(_0x1c5f0f(0xfe))/0x6*(parseInt(_0x1c5f0f(0x7e))/0x7)+-parseInt(_0x1c5f0f(0xc9))/0x8*(-parseInt(_0x1c5f0f(0xa6))/0x9)+-parseInt(_0x1c5f0f(0x9a))/0xa+parseInt(_0x1c5f0f(0xb5))/0xb*(parseInt(_0x1c5f0f(0xbc))/0xc);if(_0x3279a5===_0x370c30)break;else _0x4e07df['push'](_0x4e07df['shift']());}catch(_0x37cada){_0x4e07df['push'](_0x4e07df['shift']());}}}(a114_0x3d07,0xc0cf0));import a114_0x3f3882 from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';function a114_0xf4e3(_0x117b5c,_0x487002){_0x117b5c=_0x117b5c-0x71;const _0x3d0789=a114_0x3d07();let _0xf4e3cf=_0x3d0789[_0x117b5c];return _0xf4e3cf;}import{getActiveRegion,getApiDomain,getAppDomain,getKbDomain,getKbServiceDomain,getSkillDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags,initGlobalEnvironment,inspectCliConfigJsonFile,loadRawConfigLayers}from'../context.js';import{getIsSessionValid}from'../auth/is-session-valid.js';import{getCookie}from'../auth/get-cookie.js';import{buildAppDoctorFields}from'../config/schema.js';import{resolveEffectiveRegion}from'../config/region-config.js';import{inspectBuiltinSkill}from'../skills/builtin-skill.js';import{DEFAULT_LOVRABET_REGION,isInvalidLovrabetRegion}from'../constant/region.js';function describeRegionValue(_0x182e1c){const _0x977f1b=a114_0xf4e3;return typeof _0x182e1c===_0x977f1b(0x83)?JSON['stringify'](_0x182e1c):'<'+(_0x182e1c===null?_0x977f1b(0xd4):typeof _0x182e1c)+'>';}async function execute(_0x40b365){const _0x76bf2d=a114_0xf4e3,_0x4cd102=GIT_COMMIT!==_0x76bf2d(0xb0)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x76bf2d(0xa7)](0x0,0xa)+')':VERSION,_0x4c0cda=buildConfigFromFlags({}),_0xe0688b=getCookie();let _0x31045b;try{await initGlobalEnvironment(_0x4c0cda);}catch(_0x5bb536){_0x31045b=_0x5bb536 instanceof Error?_0x5bb536:new Error(String(_0x5bb536));}console['log'](),console['log'](a114_0x3f3882['bold'](CLI_BIN_NAME+_0x76bf2d(0x73))),console[_0x76bf2d(0x8e)](a114_0x3f3882['gray']('─'['repeat'](0x32))),console[_0x76bf2d(0x8e)](_0x76bf2d(0xc8)+_0x4cd102),console[_0x76bf2d(0x8e)](_0x76bf2d(0x8a)+process[_0x76bf2d(0xb9)]),console['log']('\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20'+process['platform']+'\x20'+process[_0x76bf2d(0xfa)]);const _0x57a242=inspectBuiltinSkill();console['log'](),console[_0x76bf2d(0x8e)](a114_0x3f3882[_0x76bf2d(0xd0)](_0x76bf2d(0xe7))),console[_0x76bf2d(0x8e)](a114_0x3f3882[_0x76bf2d(0xac)](_0x76bf2d(0xea)[_0x76bf2d(0xfc)](0x1e)));const _0x57d92c=_0x57a242['state']===_0x76bf2d(0xa5)?a114_0x3f3882[_0x76bf2d(0xb6)]('✓\x20'+_0x57a242[_0x76bf2d(0x98)]):a114_0x3f3882[_0x76bf2d(0xed)]('✗\x20'+_0x57a242[_0x76bf2d(0x98)]);console[_0x76bf2d(0x8e)](_0x76bf2d(0x71)+_0x57d92c),console[_0x76bf2d(0x8e)](_0x76bf2d(0xb7)+_0x57a242[_0x76bf2d(0xde)]),console[_0x76bf2d(0x8e)](_0x76bf2d(0xaf)+(_0x57a242[_0x76bf2d(0xb8)]||a114_0x3f3882[_0x76bf2d(0xac)](_0x76bf2d(0x79)))),console[_0x76bf2d(0x8e)](_0x76bf2d(0x91)+(_0x57a242[_0x76bf2d(0x9c)]||a114_0x3f3882[_0x76bf2d(0xac)](_0x76bf2d(0xa8))));if(_0x57a242['reason'])console[_0x76bf2d(0x8e)](_0x76bf2d(0xc5)+_0x57a242[_0x76bf2d(0xfd)]);_0x57a242[_0x76bf2d(0x98)]!=='current'&&console['log'](_0x76bf2d(0x84)+_0x57a242[_0x76bf2d(0xe8)]);console[_0x76bf2d(0x8e)](),console[_0x76bf2d(0x8e)](a114_0x3f3882[_0x76bf2d(0xd0)](_0x76bf2d(0x9d))),console[_0x76bf2d(0x8e)](a114_0x3f3882[_0x76bf2d(0xac)](_0x76bf2d(0xea)[_0x76bf2d(0xfc)](0x1e)));const _0x46ce6c=getGlobalConfigPath(),_0x88f05c=getProjectConfigPath();console[_0x76bf2d(0x8e)](_0x76bf2d(0xd8)+(_0x46ce6c||a114_0x3f3882['gray'](_0x76bf2d(0xa8)))),console[_0x76bf2d(0x8e)](_0x76bf2d(0xbd)+(_0x88f05c||a114_0x3f3882[_0x76bf2d(0xac)](_0x76bf2d(0xa8)))),console[_0x76bf2d(0x8e)](),console[_0x76bf2d(0x8e)](a114_0x3f3882['bold']('\x20\x20Config\x20JSON')),console[_0x76bf2d(0x8e)](a114_0x3f3882[_0x76bf2d(0xac)](_0x76bf2d(0xea)[_0x76bf2d(0xfc)](0x1e)));const _0x3144b4=(_0x45ee99,_0x72cd6f)=>{const _0x58379f=_0x76bf2d;if(!_0x72cd6f){console['log']('\x20\x20'+_0x45ee99['padEnd'](0x11)+'\x20'+a114_0x3f3882[_0x58379f(0xac)](_0x58379f(0xe1)));return;}const _0x3d9a55=inspectCliConfigJsonFile(_0x72cd6f);if(_0x3d9a55[_0x58379f(0xa2)]==='ok')console['log']('\x20\x20'+_0x45ee99[_0x58379f(0xe5)](0x11)+'\x20'+a114_0x3f3882['green'](_0x58379f(0x93)));else{if(_0x3d9a55[_0x58379f(0xa2)]===_0x58379f(0xe2))console[_0x58379f(0x8e)]('\x20\x20'+_0x45ee99[_0x58379f(0xe5)](0x11)+'\x20'+a114_0x3f3882[_0x58379f(0xa0)](_0x58379f(0x88)));else _0x3d9a55[_0x58379f(0xa2)]===_0x58379f(0xd7)?console[_0x58379f(0x8e)]('\x20\x20'+_0x45ee99[_0x58379f(0xe5)](0x11)+'\x20'+a114_0x3f3882['gray']('(missing)')):(console[_0x58379f(0x8e)]('\x20\x20'+_0x45ee99['padEnd'](0x11)+'\x20'+a114_0x3f3882[_0x58379f(0xed)](_0x58379f(0xcb))),console[_0x58379f(0x8e)]('\x20\x20'+''[_0x58379f(0xe5)](0x11)+'\x20'+a114_0x3f3882[_0x58379f(0xed)](_0x3d9a55[_0x58379f(0xdf)])));}};_0x3144b4(_0x76bf2d(0xd2),_0x46ce6c),_0x3144b4('Project',_0x88f05c);const _0x43db3c=loadRawConfigLayers(),_0x12bfa1=[{'label':'Project','value':_0x43db3c['projectConfig']['region'],'present':Object[_0x76bf2d(0x81)][_0x76bf2d(0xa3)]['call'](_0x43db3c[_0x76bf2d(0x92)],'region'),'repairCommand':CLI_BIN_NAME+_0x76bf2d(0x94)},{'label':_0x76bf2d(0xd2),'value':_0x43db3c[_0x76bf2d(0xf3)]['region'],'present':Object[_0x76bf2d(0x81)][_0x76bf2d(0xa3)][_0x76bf2d(0xff)](_0x43db3c[_0x76bf2d(0xf3)],'region'),'repairCommand':CLI_BIN_NAME+'\x20config\x20delete\x20region\x20--global'}][_0x76bf2d(0xca)](_0x290c44=>_0x290c44['present']&&isInvalidLovrabetRegion(_0x290c44['value']));for(const [_0x1c9745,_0x57f067]of[[_0x76bf2d(0x9b),_0x43db3c[_0x76bf2d(0x92)]],['Global',_0x43db3c[_0x76bf2d(0xf3)]]]){const _0x830510=_0x57f067['apps']&&typeof _0x57f067[_0x76bf2d(0xdc)]===_0x76bf2d(0x75)?_0x57f067[_0x76bf2d(0xdc)]:{};for(const [_0x36e5fa,_0x137295]of Object[_0x76bf2d(0x101)](_0x830510)){if(!_0x137295||typeof _0x137295!==_0x76bf2d(0x75)||!Object[_0x76bf2d(0x81)][_0x76bf2d(0xa3)]['call'](_0x137295,_0x76bf2d(0x77)))continue;isInvalidLovrabetRegion(_0x137295['region'])&&_0x12bfa1[_0x76bf2d(0xb1)]({'label':_0x1c9745+_0x76bf2d(0x104)+_0x36e5fa+'\x22','value':_0x137295[_0x76bf2d(0x77)],'present':!![],'repairCommand':_0x76bf2d(0x89)+_0x36e5fa+'.region\x20to\x20cn\x20or\x20id\x20in\x20'+_0x1c9745[_0x76bf2d(0xbe)]()+_0x76bf2d(0xe0)});}}if(_0x12bfa1[_0x76bf2d(0x7f)]>0x0){console[_0x76bf2d(0x8e)](),console[_0x76bf2d(0x8e)](a114_0x3f3882[_0x76bf2d(0xd0)](_0x76bf2d(0xe9))),console[_0x76bf2d(0x8e)](a114_0x3f3882[_0x76bf2d(0xac)](_0x76bf2d(0xea)[_0x76bf2d(0xfc)](0x1e)));for(const _0xf7a513 of _0x12bfa1){console['log']('\x20\x20'+_0xf7a513[_0x76bf2d(0x8c)][_0x76bf2d(0xe5)](0x11)+'\x20'+a114_0x3f3882[_0x76bf2d(0xed)](_0x76bf2d(0xc2)+describeRegionValue(_0xf7a513[_0x76bf2d(0x7c)]))),console['log']('\x20\x20'+(_0x76bf2d(0x103)+_0xf7a513[_0x76bf2d(0x8c)][_0x76bf2d(0xbe)]()+':')[_0x76bf2d(0xe5)](0x10)+'\x20'+_0xf7a513[_0x76bf2d(0xe8)]);}}const _0x4f689c=[Object[_0x76bf2d(0x81)][_0x76bf2d(0xa3)][_0x76bf2d(0xff)](_0x43db3c[_0x76bf2d(0xf3)],'inherit')?_0x76bf2d(0xcf):null,Object[_0x76bf2d(0x81)][_0x76bf2d(0xa3)]['call'](_0x43db3c[_0x76bf2d(0x92)],_0x76bf2d(0xa4))?_0x76bf2d(0x95):null][_0x76bf2d(0xca)](Boolean);_0x4f689c[_0x76bf2d(0x7f)]>0x0&&(console['log']('\x20\x20Legacy\x20inherit:\x20\x20\x20'+a114_0x3f3882[_0x76bf2d(0xa0)]('ignored\x20in\x20'+_0x4f689c['join'](_0x76bf2d(0xf4))+_0x76bf2d(0xe0))),_0x4f689c[_0x76bf2d(0xdb)](_0x76bf2d(0x95))&&console[_0x76bf2d(0x8e)](_0x76bf2d(0x7d)+CLI_BIN_NAME+_0x76bf2d(0x8d)),_0x4f689c[_0x76bf2d(0xdb)](_0x76bf2d(0xcf))&&console[_0x76bf2d(0x8e)]('\x20\x20Repair\x20global:\x20\x20\x20\x20'+CLI_BIN_NAME+_0x76bf2d(0xd5)));const _0x5337a6=isInvalidLovrabetRegion(_0x4c0cda[_0x76bf2d(0xb3)]??_0x4c0cda[_0x76bf2d(0xda)]?.[_0x76bf2d(0x77)]);_0x31045b&&!_0x5337a6&&(console['log'](),console['log'](a114_0x3f3882[_0x76bf2d(0xd0)](_0x76bf2d(0x9f))),console[_0x76bf2d(0x8e)](a114_0x3f3882[_0x76bf2d(0xac)](_0x76bf2d(0xea)[_0x76bf2d(0xfc)](0x1e))),console[_0x76bf2d(0x8e)](_0x76bf2d(0x100)+a114_0x3f3882['red'](_0x76bf2d(0xd9))),console[_0x76bf2d(0x8e)](_0x76bf2d(0xc5)+_0x31045b[_0x76bf2d(0xdf)]),Object[_0x76bf2d(0x81)]['hasOwnProperty'][_0x76bf2d(0xff)](_0x43db3c[_0x76bf2d(0x92)],_0x76bf2d(0x8f))&&console[_0x76bf2d(0x8e)]('\x20\x20Repair\x20project:\x20\x20'+CLI_BIN_NAME+_0x76bf2d(0xe3)),Object[_0x76bf2d(0x81)][_0x76bf2d(0xa3)][_0x76bf2d(0xff)](_0x43db3c['globalConfig'],_0x76bf2d(0x8f))&&console[_0x76bf2d(0x8e)](_0x76bf2d(0xf6)+CLI_BIN_NAME+_0x76bf2d(0x78)));console[_0x76bf2d(0x8e)](),console[_0x76bf2d(0x8e)](a114_0x3f3882[_0x76bf2d(0xd0)](_0x76bf2d(0x90))),console[_0x76bf2d(0x8e)](a114_0x3f3882[_0x76bf2d(0xac)](_0x76bf2d(0xea)[_0x76bf2d(0xfc)](0x1e))),console[_0x76bf2d(0x8e)](_0x76bf2d(0xe6)+(_0x4c0cda[_0x76bf2d(0xf7)]||a114_0x3f3882[_0x76bf2d(0xed)]('(not\x20set)')));const _0x2ac9bd=_0x5337a6?a114_0x3f3882[_0x76bf2d(0xed)](describeRegionValue(_0x4c0cda['regionConfiguredValue']??_0x4c0cda['raw']?.[_0x76bf2d(0x77)])+_0x76bf2d(0x72)):(_0x4c0cda[_0x76bf2d(0x77)]??DEFAULT_LOVRABET_REGION)+'\x20('+(_0x4c0cda[_0x76bf2d(0xeb)]??_0x76bf2d(0xb4))+')';console[_0x76bf2d(0x8e)](_0x76bf2d(0xc7)+_0x2ac9bd),console[_0x76bf2d(0x8e)](_0x76bf2d(0x87)+_0x4c0cda[_0x76bf2d(0xd1)]),console[_0x76bf2d(0x8e)](_0x76bf2d(0xa1)+_0x4c0cda[_0x76bf2d(0xd3)]),console[_0x76bf2d(0x8e)](_0x76bf2d(0x7a)+_0x4c0cda[_0x76bf2d(0xfb)]),console[_0x76bf2d(0x8e)](_0x76bf2d(0xc6)+(_0x4c0cda[_0x76bf2d(0xd6)]||a114_0x3f3882[_0x76bf2d(0xac)](_0x76bf2d(0x8b)))),console[_0x76bf2d(0x8e)]('\x20\x20currentApp:\x20\x20\x20\x20\x20\x20'+(_0x4c0cda[_0x76bf2d(0xcd)]||a114_0x3f3882['gray'](_0x76bf2d(0x8b)))),console['log']('\x20\x20explicitAppName:\x20'+(_0x4c0cda[_0x76bf2d(0xcc)]||a114_0x3f3882[_0x76bf2d(0xac)]('(none)'))),console['log']('\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x4c0cda[_0x76bf2d(0xb2)]||a114_0x3f3882[_0x76bf2d(0xac)](_0x76bf2d(0x99)+DEFAULT_CONFIG_VALUES[_0x76bf2d(0xb2)]+')'))),console[_0x76bf2d(0x8e)](_0x76bf2d(0xab)+(_0x4c0cda[_0x76bf2d(0xec)]??a114_0x3f3882[_0x76bf2d(0xac)]('(default)'))),console['log'](_0x76bf2d(0xf0)+_0x4c0cda[_0x76bf2d(0xaa)]),console[_0x76bf2d(0x8e)](_0x76bf2d(0xbb)+_0x4c0cda[_0x76bf2d(0xc1)]),console[_0x76bf2d(0x8e)](_0x76bf2d(0xc0)+(_0x4c0cda[_0x76bf2d(0x97)]?a114_0x3f3882['green'](_0x76bf2d(0xef)+_0x4c0cda[_0x76bf2d(0x97)][_0x76bf2d(0x7f)]+')'):_0xe0688b?a114_0x3f3882[_0x76bf2d(0xb6)](_0x76bf2d(0x7b)+_0xe0688b[_0x76bf2d(0x7f)]+')'):a114_0x3f3882['gray'](_0x76bf2d(0x8b))));const _0x17957c=Object[_0x76bf2d(0x102)](_0x4c0cda[_0x76bf2d(0xdc)]);if(_0x17957c[_0x76bf2d(0x7f)]>0x0){console[_0x76bf2d(0x8e)](),console[_0x76bf2d(0x8e)](a114_0x3f3882[_0x76bf2d(0xd0)]('\x20\x20Apps')),console[_0x76bf2d(0x8e)](a114_0x3f3882[_0x76bf2d(0xac)]('\x20\x20─'[_0x76bf2d(0xfc)](0x1e)));for(const _0x1f95ac of _0x17957c){const _0x1527db=_0x4c0cda['apps'][_0x1f95ac],_0x4541cb=_0x1f95ac===_0x4c0cda[_0x76bf2d(0xd6)],_0x12ee6d=_0x1f95ac===_0x4c0cda[_0x76bf2d(0xcd)],_0x167e04=_0x12ee6d?a114_0x3f3882[_0x76bf2d(0xb6)]('\x20←\x20current'):'',_0x1a2871=_0x4541cb?_0x76bf2d(0xba):'';console['log']('\x20\x20'+_0x1f95ac+_0x1a2871+_0x167e04),console[_0x76bf2d(0x8e)](_0x76bf2d(0xf8)+_0x1527db['appcode']);const _0xd58c43=_0x43db3c[_0x76bf2d(0x92)][_0x76bf2d(0xdc)]&&typeof _0x43db3c[_0x76bf2d(0x92)][_0x76bf2d(0xdc)]===_0x76bf2d(0x75)?_0x43db3c[_0x76bf2d(0x92)][_0x76bf2d(0xdc)]:{},_0x2e8dce=Object[_0x76bf2d(0x81)][_0x76bf2d(0xa3)][_0x76bf2d(0xff)](_0xd58c43,_0x1f95ac),_0x5df251=isInvalidLovrabetRegion(_0x1527db[_0x76bf2d(0x77)])?{'region':_0x4c0cda[_0x76bf2d(0x77)]??DEFAULT_LOVRABET_REGION}:resolveEffectiveRegion({'appRegion':_0x1527db['region'],'projectRegion':_0x2e8dce?_0x43db3c[_0x76bf2d(0x92)]['region']:undefined,'globalRegion':_0x43db3c[_0x76bf2d(0xf3)][_0x76bf2d(0x77)],'mergedRegion':_0x4c0cda['raw'][_0x76bf2d(0x77)],'appName':_0x1f95ac}),_0x9d077b=buildAppDoctorFields(_0x1527db,{'region':_0x5df251[_0x76bf2d(0x77)],'env':_0x4c0cda[_0x76bf2d(0xd1)],'apiDir':_0x4c0cda[_0x76bf2d(0xda)][_0x76bf2d(0xfb)]||DEFAULT_CONFIG_VALUES[_0x76bf2d(0xfb)],'cookie':_0x4c0cda[_0x76bf2d(0x97)]||_0xe0688b||undefined,'accessKey':_0x4c0cda['accessKey']});console['log'](_0x76bf2d(0xf9)+_0x9d077b[_0x76bf2d(0x77)][_0x76bf2d(0x7c)]+'\x20\x20'+a114_0x3f3882['gray']('('+_0x9d077b[_0x76bf2d(0x77)]['source']+')')),console[_0x76bf2d(0x8e)]('\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x9d077b[_0x76bf2d(0xd1)]['value']+'\x20\x20'+a114_0x3f3882['gray']('('+_0x9d077b['env'][_0x76bf2d(0xf1)]+')')),console['log'](_0x76bf2d(0xce)+_0x9d077b[_0x76bf2d(0xfb)][_0x76bf2d(0x7c)]+'\x20\x20'+a114_0x3f3882['gray']('('+_0x9d077b['apiDir'][_0x76bf2d(0xf1)]+')'));const _0x520a3a=_0x9d077b[_0x76bf2d(0x97)][_0x76bf2d(0x7c)]?a114_0x3f3882['green'](_0x76bf2d(0xef)+_0x9d077b[_0x76bf2d(0x97)][_0x76bf2d(0x7c)][_0x76bf2d(0x7f)]+')'):a114_0x3f3882[_0x76bf2d(0xac)](_0x76bf2d(0x8b));console[_0x76bf2d(0x8e)](_0x76bf2d(0x86)+_0x520a3a+'\x20\x20'+a114_0x3f3882['gray']('('+_0x9d077b['cookie'][_0x76bf2d(0xf1)]+')'));const _0x5cc653=_0x9d077b[_0x76bf2d(0xad)]['value']?a114_0x3f3882['green'](_0x76bf2d(0xef)+_0x9d077b[_0x76bf2d(0xad)]['value'][_0x76bf2d(0x7f)]+')'):a114_0x3f3882[_0x76bf2d(0xac)](_0x76bf2d(0x8b));console[_0x76bf2d(0x8e)](_0x76bf2d(0xdd)+_0x5cc653+'\x20\x20'+a114_0x3f3882[_0x76bf2d(0xac)]('('+_0x9d077b['accessKey'][_0x76bf2d(0xf1)]+')'));}}console['log'](),console[_0x76bf2d(0x8e)](a114_0x3f3882['bold'](_0x76bf2d(0xf2))),console[_0x76bf2d(0x8e)](a114_0x3f3882[_0x76bf2d(0xac)](_0x76bf2d(0xea)[_0x76bf2d(0xfc)](0x1e)));_0x31045b?console[_0x76bf2d(0x8e)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a114_0x3f3882[_0x76bf2d(0xed)]('Unavailable\x20until\x20routing\x20configuration\x20is\x20repaired')):(console['log'](_0x76bf2d(0xc7)+getActiveRegion()),console[_0x76bf2d(0x8e)](_0x76bf2d(0xf5)+getApiDomain()),console[_0x76bf2d(0x8e)]('\x20\x20userDomain:\x20\x20\x20\x20\x20\x20'+getUserDomain()),console[_0x76bf2d(0x8e)]('\x20\x20runtimeDomain:\x20\x20\x20'+getRuntimeDomain()),console[_0x76bf2d(0x8e)]('\x20\x20skillDomain:\x20\x20\x20\x20\x20'+getSkillDomain()),console[_0x76bf2d(0x8e)](_0x76bf2d(0xbf)+getKbDomain()),console[_0x76bf2d(0x8e)]('\x20\x20kbServiceDomain:\x20'+(getKbServiceDomain()??'not\x20configured')),console[_0x76bf2d(0x8e)](_0x76bf2d(0x82)+getAppDomain()));console[_0x76bf2d(0x8e)](),console['log'](a114_0x3f3882[_0x76bf2d(0xd0)](_0x76bf2d(0x96))),console['log'](a114_0x3f3882[_0x76bf2d(0xac)](_0x76bf2d(0xea)[_0x76bf2d(0xfc)](0x1e)));if(_0x31045b)console[_0x76bf2d(0x8e)](_0x76bf2d(0x100)+a114_0x3f3882[_0x76bf2d(0xa0)]('Not\x20checked\x20until\x20routing\x20configuration\x20is\x20repaired'));else{if(_0xe0688b){const _0x1f6fe1=await getIsSessionValid();console[_0x76bf2d(0x8e)](_0x76bf2d(0x100)+(_0x1f6fe1?a114_0x3f3882[_0x76bf2d(0xb6)](_0x76bf2d(0x85)):a114_0x3f3882['red'](_0x76bf2d(0xee))));}else console[_0x76bf2d(0x8e)](_0x76bf2d(0x100)+a114_0x3f3882[_0x76bf2d(0xed)](_0x76bf2d(0x9e)));}return console[_0x76bf2d(0x8e)](),{'ok':!![]};}export const doctorDefinition={'service':a114_0x41bc05(0x76),'command':a114_0x41bc05(0x74),'description':a114_0x41bc05(0x80),'risk':a114_0x41bc05(0x105),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a115_0x4948(){const _0x185b86=['path','File','1449301FTIIrD','file','long-term','filepath','.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','/smartapi/common/uploadFile','9885411pTAuqQ','Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','appCode','Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML','Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','POST','3xoclEt','91414gBAdpS','Path\x20to\x20the\x20local\x20file\x20to\x20upload','35520SrahYk','Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20or\x20immediate\x20access','11XMFmef','str','filePath','query-url','8rbNIwJ','78840vyUkci','656370dgfAoR','\x20to\x20development\x20app\x20','bool','upload','Preview:\x20upload\x20','download','Uploaded\x20file:\x20','string','boolean','read','trim','244sFDgQC','1925570XZqAup','filePath\x20is\x20required.'];a115_0x4948=function(){return _0x185b86;};return a115_0x4948();}const a115_0x202871=a115_0x1368;(function(_0x341320,_0x49961c){const _0x49e39f=a115_0x1368,_0x1d67a1=_0x341320();while(!![]){try{const _0x101cb0=-parseInt(_0x49e39f(0xf1))/0x1+-parseInt(_0x49e39f(0xe8))/0x2*(parseInt(_0x49e39f(0xe7))/0x3)+parseInt(_0x49e39f(0xfd))/0x4*(-parseInt(_0x49e39f(0xea))/0x5)+parseInt(_0x49e39f(0xf2))/0x6+parseInt(_0x49e39f(0xdb))/0x7+parseInt(_0x49e39f(0xf0))/0x8*(parseInt(_0x49e39f(0xe1))/0x9)+parseInt(_0x49e39f(0xd7))/0xa*(-parseInt(_0x49e39f(0xec))/0xb);if(_0x101cb0===_0x49961c)break;else _0x1d67a1['push'](_0x1d67a1['shift']());}catch(_0x3e7584){_0x1d67a1['push'](_0x1d67a1['shift']());}}}(a115_0x4948,0xa2331));function a115_0x1368(_0x116b70,_0x4a7390){_0x116b70=_0x116b70-0xd7;const _0x4948ef=a115_0x4948();let _0x136861=_0x4948ef[_0x116b70];return _0x136861;}import{requireDevelopmentUploadFile}from'../../commands/common/local-file.js';import{queryDevelopmentFileUrl,uploadDevelopmentFile}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const FILE_FLAG={'name':a115_0x202871(0xdc),'type':a115_0x202871(0xf9),'required':!![],'description':a115_0x202871(0xe9)},FILEPATH_FLAG={'name':a115_0x202871(0xde),'type':a115_0x202871(0xf9),'required':!![],'description':'Development\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data'},DOWNLOAD_FLAG={'name':a115_0x202871(0xf7),'type':'boolean','description':'Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL'},LONG_TERM_FLAG={'name':a115_0x202871(0xdd),'type':a115_0x202871(0xfa),'description':a115_0x202871(0xe4)};function requireFilePath(_0x5f56d7){const _0x52261f=a115_0x202871,_0x11a3c1=_0x5f56d7[_0x52261f(0xfc)]();if(!_0x11a3c1)throw CliErrors['validation'](_0x52261f(0xd8));return _0x11a3c1;}const fileUpload={'service':a115_0x202871(0xdc),'command':a115_0x202871(0xf5),'description':a115_0x202871(0xe2),'risk':'read','flags':[FILE_FLAG],async 'dryRun'(_0x553003){const _0x49f3cb=a115_0x202871,_0x5c6a08=requireDevelopmentUploadFile(_0x553003[_0x49f3cb(0xed)](_0x49f3cb(0xdc)),_0x49f3cb(0xda));return{'method':_0x49f3cb(0xe6),'url':_0x49f3cb(0xe0),'body':{'appCode':_0x553003[_0x49f3cb(0xe3)],'multipart':{'file':_0x5c6a08}},'description':_0x49f3cb(0xf6)+_0x5c6a08[_0x49f3cb(0xd9)]+_0x49f3cb(0xf3)+_0x553003[_0x49f3cb(0xe3)]};},async 'execute'(_0x16b4fd){const _0x3c54d8=a115_0x202871,_0x3217e8=requireDevelopmentUploadFile(_0x16b4fd['str'](_0x3c54d8(0xdc)),_0x3c54d8(0xda)),_0x32cb8a=await uploadDevelopmentFile(_0x16b4fd[_0x3c54d8(0xe3)],_0x3217e8[_0x3c54d8(0xd9)]);return{'ok':!![],'data':_0x32cb8a,'message':_0x32cb8a[_0x3c54d8(0xee)]?_0x3c54d8(0xf8)+_0x32cb8a[_0x3c54d8(0xee)]+_0x3c54d8(0xdf):_0x3c54d8(0xe5)};}},fileQueryUrl={'service':a115_0x202871(0xdc),'command':a115_0x202871(0xef),'description':a115_0x202871(0xeb),'risk':a115_0x202871(0xfb),'flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0x3a1196){const _0x4d2409=a115_0x202871,_0x124f37=requireFilePath(_0x3a1196[_0x4d2409(0xed)](_0x4d2409(0xde))),_0x1b7ae5=await queryDevelopmentFileUrl(_0x124f37,{'download':_0x3a1196[_0x4d2409(0xf4)](_0x4d2409(0xf7)),'longTerm':_0x3a1196[_0x4d2409(0xf4)](_0x4d2409(0xdd))});return{'ok':!![],'data':_0x1b7ae5};}};export const fileDefinitions=[fileUpload,fileQueryUrl];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a116_0x4ba772=a116_0x4a15;(function(_0x304cc4,_0x17f0b4){const _0x3ff1e1=a116_0x4a15,_0x41a5f3=_0x304cc4();while(!![]){try{const _0x4c3ce0=-parseInt(_0x3ff1e1(0x98))/0x1*(-parseInt(_0x3ff1e1(0x96))/0x2)+parseInt(_0x3ff1e1(0x9c))/0x3*(parseInt(_0x3ff1e1(0x97))/0x4)+parseInt(_0x3ff1e1(0xa5))/0x5+parseInt(_0x3ff1e1(0x9a))/0x6+-parseInt(_0x3ff1e1(0x94))/0x7+-parseInt(_0x3ff1e1(0x9e))/0x8*(parseInt(_0x3ff1e1(0xa2))/0x9)+parseInt(_0x3ff1e1(0x95))/0xa*(parseInt(_0x3ff1e1(0xa3))/0xb);if(_0x4c3ce0===_0x17f0b4)break;else _0x41a5f3['push'](_0x41a5f3['shift']());}catch(_0x34fe65){_0x41a5f3['push'](_0x41a5f3['shift']());}}}(a116_0x4b8f,0x559b6));function a116_0x4a15(_0x17b8d7,_0x661c48){_0x17b8d7=_0x17b8d7-0x92;const _0x4b8fb7=a116_0x4b8f();let _0x4a154c=_0x4b8fb7[_0x17b8d7];return _0x4a154c;}function a116_0x4b8f(){const _0x503e71=['301038rdoBZx','flowName','35283GpCVQK','flow','16qJpwPl','write','datasetCode','appCode','763020CfJUqf','704bsrdQX','Created\x20flow\x20','786485wkWJPd','POST','create','4812115pCHtOQ','44480csXvXR','994imYzae','16PNMTIL','1345NiUOBT','.\x20Flow\x20URL:\x20'];a116_0x4b8f=function(){return _0x503e71;};return a116_0x4b8f();}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';export const flowCreate={'service':a116_0x4ba772(0x9d),'command':'create','description':'Create\x20a\x20draft\x20flow\x20definition\x20from\x20a\x20local\x20FlowConfig\x20file','risk':a116_0x4ba772(0x9f),'flags':[FLOW_FILE_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x1d59e5){readFlowFilePath(_0x1d59e5);},async 'dryRun'(_0x43f77e){const _0x396ab3=a116_0x4ba772,{request:_0x1aefa9,warnings:_0x128856}=await prepareFlowWrite(readFlowFilePath(_0x43f77e),_0x43f77e[_0x396ab3(0xa1)]);return asDryRunResult({'operation':_0x396ab3(0x93),'selector':{'appCode':_0x43f77e[_0x396ab3(0xa1)],'flowName':_0x1aefa9[_0x396ab3(0x9b)],..._0x1aefa9['datasetCode']?{'datasetCode':_0x1aefa9[_0x396ab3(0xa0)]}:{}},'before':null,'after':_0x1aefa9,'request':_0x1aefa9,'dryRun':!![],'backend':{'method':_0x396ab3(0x92),'path':FLOW_PATHS[_0x396ab3(0x93)]},'warnings':_0x128856},{'method':_0x396ab3(0x92),'url':FLOW_PATHS[_0x396ab3(0x93)]});},async 'execute'(_0x467ac9){const _0x20b990=a116_0x4ba772,{request:_0xd6232,warnings:_0xac1a4e}=await prepareFlowWrite(readFlowFilePath(_0x467ac9),_0x467ac9[_0x20b990(0xa1)]);await confirmFlowWrite(_0x467ac9,'create',_0xd6232);const _0x1bb587=await createFlowDefinition(_0xd6232),_0x2b92bd=buildFlowUrl(_0x467ac9[_0x20b990(0xa1)],_0x1bb587['id']),_0x52741d=''+(_0x1bb587['flowName']||_0xd6232[_0x20b990(0x9b)])+(_0x1bb587['id']?'\x20(id='+_0x1bb587['id']+')':'');return{'ok':!![],'data':{'operation':_0x20b990(0x93),'selector':flowSelector(_0x467ac9[_0x20b990(0xa1)],_0x1bb587['id'],_0x1bb587),'before':null,'after':_0x1bb587,'flowUrl':_0x2b92bd,'dryRun':![],'backend':{'method':_0x20b990(0x92),'path':FLOW_PATHS[_0x20b990(0x93)]},'warnings':_0xac1a4e},'message':_0x20b990(0xa4)+_0x52741d+_0x20b990(0x99)+_0x2b92bd};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a117_0x52a5de=a117_0x5b13;(function(_0x24a6b8,_0x263b7d){const _0x29ab8a=a117_0x5b13,_0x4afe15=_0x24a6b8();while(!![]){try{const _0x395e44=parseInt(_0x29ab8a(0x19b))/0x1+-parseInt(_0x29ab8a(0x186))/0x2+-parseInt(_0x29ab8a(0x19f))/0x3+parseInt(_0x29ab8a(0x189))/0x4*(-parseInt(_0x29ab8a(0x195))/0x5)+parseInt(_0x29ab8a(0x18f))/0x6*(-parseInt(_0x29ab8a(0x190))/0x7)+-parseInt(_0x29ab8a(0x19c))/0x8*(-parseInt(_0x29ab8a(0x18d))/0x9)+parseInt(_0x29ab8a(0x197))/0xa*(parseInt(_0x29ab8a(0x196))/0xb);if(_0x395e44===_0x263b7d)break;else _0x4afe15['push'](_0x4afe15['shift']());}catch(_0x419693){_0x4afe15['push'](_0x4afe15['shift']());}}}(a117_0x1278,0x4478c));import{mkdir,stat}from'node:fs/promises';import{dirname,resolve}from'node:path';function a117_0x5b13(_0x2a3e7b,_0xb76e94){_0x2a3e7b=_0x2a3e7b-0x181;const _0x127885=a117_0x1278();let _0x5b1324=_0x127885[_0x2a3e7b];return _0x5b1324;}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';function a117_0x1278(){const _0x22fe86=['code','362885SoJhqj','2404592eiSnXg','FlowConfig\x20output\x20already\x20exists:\x20','flowCode','319866vWrpVj','Write\x20a\x20portable\x20normalized\x20FlowConfig\x20JSON\x20file','EEXIST','\x20to\x20','Flow\x20','Overwrite\x20an\x20existing\x20output\x20file','1039836COmYXO','trim','detail','36dfcoNL','bool','ENOENT','output','9QCWvLC','flow','50178zqHqsC','133saNSOX','boolean','validation','path','warnings','221720NdYGmh','18601jAzUkn','4740rDEEUz','Pass\x20--force\x20to\x20overwrite\x20it.','flowName'];a117_0x1278=function(){return _0x22fe86;};return a117_0x1278();}import{FLOW_ID_FLAG,flowDefinitionToConfig,readFlowId}from'../../commands/flow/shared.js';export const flowDetail={'service':a117_0x52a5de(0x18e),'command':a117_0x52a5de(0x188),'description':'Get\x20one\x20design-time\x20flow\x20definition','risk':'read','flags':[FLOW_ID_FLAG,{'name':a117_0x52a5de(0x18c),'type':'string','description':a117_0x52a5de(0x181)},{'name':'force','type':a117_0x52a5de(0x191),'description':a117_0x52a5de(0x185)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x2fdaa3){readFlowId(_0x2fdaa3);},async 'execute'(_0x417a24){const _0x2499d0=a117_0x52a5de,_0x20a110=readFlowId(_0x417a24),_0x14631a=_0x417a24['str'](_0x2499d0(0x18c))[_0x2499d0(0x187)](),_0x2b8e36=_0x14631a?resolve(_0x14631a):undefined;if(_0x2b8e36&&!_0x417a24[_0x2499d0(0x18a)]('force')&&await fileExists(_0x2b8e36))throw CliErrors[_0x2499d0(0x192)](_0x2499d0(0x19d)+_0x2b8e36,_0x2499d0(0x198));const _0x10aed9=await getFlowDefinition(_0x417a24['appCode'],_0x20a110);let _0x7c69cb;if(_0x2b8e36){const _0x1e9511=flowDefinitionToConfig(_0x10aed9);await mkdir(dirname(_0x2b8e36),{'recursive':!![]});try{await writeNormalizedFlowConfig(_0x2b8e36,_0x1e9511['config'],{'overwrite':_0x417a24[_0x2499d0(0x18a)]('force')});}catch(_0x663fa6){if(isAlreadyExistsError(_0x663fa6))throw CliErrors[_0x2499d0(0x192)](_0x2499d0(0x19d)+_0x2b8e36,_0x2499d0(0x198));throw _0x663fa6;}_0x7c69cb={'path':_0x2b8e36,'warnings':_0x1e9511[_0x2499d0(0x194)]};}return{'ok':!![],'data':{'flow':_0x10aed9,..._0x7c69cb?{'output':_0x7c69cb}:{}},'message':_0x7c69cb?'Wrote\x20FlowConfig\x20for\x20'+(_0x10aed9[_0x2499d0(0x199)]||_0x10aed9[_0x2499d0(0x19e)]||_0x20a110)+_0x2499d0(0x183)+_0x7c69cb[_0x2499d0(0x193)]:_0x2499d0(0x184)+(_0x10aed9[_0x2499d0(0x199)]||_0x10aed9[_0x2499d0(0x19e)]||_0x20a110)};}};async function fileExists(_0x4aa5fa){try{return await stat(_0x4aa5fa),!![];}catch(_0x2dca65){return!isNotFoundError(_0x2dca65);}}function isNotFoundError(_0x4023d5){const _0x33bec7=a117_0x52a5de;return _0x4023d5?.[_0x33bec7(0x19a)]===_0x33bec7(0x18b);}function isAlreadyExistsError(_0x11816f){const _0x5ae7f0=a117_0x52a5de;return _0x11816f?.[_0x5ae7f0(0x19a)]===_0x5ae7f0(0x182);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1fa0be,_0x1acac7){const _0x4ec944=a118_0x82eb,_0x4b3323=_0x1fa0be();while(!![]){try{const _0x4f98b0=-parseInt(_0x4ec944(0x13c))/0x1+-parseInt(_0x4ec944(0x145))/0x2*(parseInt(_0x4ec944(0x13d))/0x3)+parseInt(_0x4ec944(0x144))/0x4+parseInt(_0x4ec944(0x143))/0x5+parseInt(_0x4ec944(0x13f))/0x6*(parseInt(_0x4ec944(0x13e))/0x7)+-parseInt(_0x4ec944(0x140))/0x8+parseInt(_0x4ec944(0x141))/0x9*(parseInt(_0x4ec944(0x142))/0xa);if(_0x4f98b0===_0x1acac7)break;else _0x4b3323['push'](_0x4b3323['shift']());}catch(_0x10f8b4){_0x4b3323['push'](_0x4b3323['shift']());}}}(a118_0x6ba7,0x8d84b));import{flowValidate}from'../../commands/flow/validate.js';import{flowList}from'../../commands/flow/list.js';import{flowDetail}from'../../commands/flow/detail.js';import{flowCreate}from'../../commands/flow/create.js';import{flowUpdate}from'../../commands/flow/update.js';function a118_0x82eb(_0x4a0eb5,_0x620daa){_0x4a0eb5=_0x4a0eb5-0x13c;const _0x6ba7a5=a118_0x6ba7();let _0x82eb1b=_0x6ba7a5[_0x4a0eb5];return _0x82eb1b;}import{flowPublish}from'../../commands/flow/publish.js';import{flowRuntimeRoleList}from'../../commands/flow/runtime-role-list.js';import{flowRuntimeUserSearch}from'../../commands/flow/runtime-user-search.js';function a118_0x6ba7(){const _0x23d97f=['1831501yogoLx','12dLLmUI','5391144PlkwGR','19017XSeADv','5150PlhqhJ','1027270yIpWvQ','3478516BnJwlT','2NXVmAU','385843kAMSKr','3141507ffVQYZ'];a118_0x6ba7=function(){return _0x23d97f;};return a118_0x6ba7();}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
|
-
const
|
|
1
|
+
function a119_0x53df(_0x2f9071,_0x39190b){_0x2f9071=_0x2f9071-0xd6;const _0x921cad=a119_0x921c();let _0x53df45=_0x921cad[_0x2f9071];return _0x53df45;}const a119_0x4d0f7a=a119_0x53df;(function(_0xac1740,_0x377e98){const _0x2da27f=a119_0x53df,_0x227169=_0xac1740();while(!![]){try{const _0x13a2f0=-parseInt(_0x2da27f(0xdf))/0x1*(parseInt(_0x2da27f(0xef))/0x2)+parseInt(_0x2da27f(0xf5))/0x3+parseInt(_0x2da27f(0xe7))/0x4*(-parseInt(_0x2da27f(0xdc))/0x5)+parseInt(_0x2da27f(0xe6))/0x6+-parseInt(_0x2da27f(0xe8))/0x7*(-parseInt(_0x2da27f(0xf8))/0x8)+-parseInt(_0x2da27f(0xe1))/0x9+parseInt(_0x2da27f(0xf9))/0xa;if(_0x13a2f0===_0x377e98)break;else _0x227169['push'](_0x227169['shift']());}catch(_0x1c4939){_0x227169['push'](_0x227169['shift']());}}}(a119_0x921c,0x98623));function a119_0x921c(){const _0x207734=['flow-status','2415QpHcBw','flow-type','Filter\x20by\x20dataset\x20code','5jtifQN','page','9318915Qldrav','--page\x20must\x20be\x20a\x20positive\x20integer.','appCode','--page-size\x20must\x20be\x20a\x20positive\x20integer.','list','4681074gkVPjf','4760aJhrrW','4860359kLVRJo','isSafeInteger','str','Filter\x20by\x20flow\x20status','Page\x20size','flow','flow-name','39122okKkGQ','draft','length','Filter\x20by\x20exact\x20server-generated\x20flow\x20code','Filter\x20by\x20flow\x20type','number','307431kGOOXu','string','Filter\x20by\x20flow\x20name','8lIGRLq','7551800BKXKJB','validation','num','dataset-code','published','Found\x20'];a119_0x921c=function(){return _0x207734;};return a119_0x921c();}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{listFlowDefinitions}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const FLOW_STATUSES=[a119_0x4d0f7a(0xf0),a119_0x4d0f7a(0xd9)];export const flowList={'service':a119_0x4d0f7a(0xed),'command':a119_0x4d0f7a(0xe5),'description':'List\x20design-time\x20flow\x20definitions\x20for\x20the\x20current\x20app','risk':'read','flags':[APPCODE_FLAG_OPTIONAL,{'name':'flow-code','type':a119_0x4d0f7a(0xf6),'description':a119_0x4d0f7a(0xf2)},{'name':'flow-name','type':a119_0x4d0f7a(0xf6),'description':a119_0x4d0f7a(0xf7)},{'name':a119_0x4d0f7a(0xdb),'type':a119_0x4d0f7a(0xf6),'description':a119_0x4d0f7a(0xeb),'enum':FLOW_STATUSES},{'name':a119_0x4d0f7a(0xd8),'type':a119_0x4d0f7a(0xf6),'description':a119_0x4d0f7a(0xde)},{'name':a119_0x4d0f7a(0xdd),'type':a119_0x4d0f7a(0xf6),'description':a119_0x4d0f7a(0xf3)},{'name':a119_0x4d0f7a(0xe0),'type':a119_0x4d0f7a(0xf4),'description':'Page\x20number\x20(1-based)','default':0x1},{'name':'page-size','type':a119_0x4d0f7a(0xf4),'description':a119_0x4d0f7a(0xec),'default':0x14}],async 'validate'(_0xebaa90){const _0x5b53f4=a119_0x4d0f7a,_0x5d3827=_0xebaa90['num'](_0x5b53f4(0xe0),0x1),_0x259bec=_0xebaa90[_0x5b53f4(0xd7)]('page-size',0x14);if(!Number['isSafeInteger'](_0x5d3827)||_0x5d3827<0x1)throw CliErrors[_0x5b53f4(0xd6)](_0x5b53f4(0xe2));if(!Number[_0x5b53f4(0xe9)](_0x259bec)||_0x259bec<0x1)throw CliErrors['validation'](_0x5b53f4(0xe4));},async 'execute'(_0x8bc1af){const _0x5d8c69=a119_0x4d0f7a,{items:_0x24cddb,paging:_0x516308}=await listFlowDefinitions(_0x8bc1af[_0x5d8c69(0xe3)],{'flowCode':optionalString(_0x8bc1af[_0x5d8c69(0xea)]('flow-code')),'flowName':optionalString(_0x8bc1af[_0x5d8c69(0xea)](_0x5d8c69(0xee))),'flowStatus':optionalString(_0x8bc1af[_0x5d8c69(0xea)](_0x5d8c69(0xdb))),'datasetCode':optionalString(_0x8bc1af['str']('dataset-code')),'flowType':optionalString(_0x8bc1af[_0x5d8c69(0xea)](_0x5d8c69(0xdd))),'pageNum':_0x8bc1af['num'](_0x5d8c69(0xe0),0x1),'pageSize':_0x8bc1af['num']('page-size',0x14)});return{'ok':!![],'data':{'appCode':_0x8bc1af[_0x5d8c69(0xe3)],'flows':_0x24cddb,'paging':_0x516308},'message':_0x5d8c69(0xda)+_0x24cddb[_0x5d8c69(0xf1)]+'\x20flow\x20definition(s)'};}};function optionalString(_0x1c9bbc){const _0x2ac42e=_0x1c9bbc['trim']();return _0x2ac42e||undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a120_0x4e54ef=a120_0x21b3;(function(_0x411088,_0x3194b1){const _0x4b6497=a120_0x21b3,_0x364e39=_0x411088();while(!![]){try{const _0x597bc6=-parseInt(_0x4b6497(0x100))/0x1+-parseInt(_0x4b6497(0x10b))/0x2+parseInt(_0x4b6497(0x109))/0x3+parseInt(_0x4b6497(0x105))/0x4+-parseInt(_0x4b6497(0x102))/0x5*(parseInt(_0x4b6497(0x104))/0x6)+-parseInt(_0x4b6497(0xfc))/0x7+parseInt(_0x4b6497(0xff))/0x8*(parseInt(_0x4b6497(0x103))/0x9);if(_0x597bc6===_0x3194b1)break;else _0x364e39['push'](_0x364e39['shift']());}catch(_0x120e68){_0x364e39['push'](_0x364e39['shift']());}}}(a120_0x4ea4,0x5cc8b));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{publishFlowDefinition}from'../../core/api-client.js';function a120_0x21b3(_0x8cc145,_0x449413){_0x8cc145=_0x8cc145-0xfb;const _0x4ea4a6=a120_0x4ea4();let _0x21b35e=_0x4ea4a6[_0x8cc145];return _0x21b35e;}function a120_0x4ea4(){const _0x117156=['POST','publish','24HaAxyu','596255jGYzoL','appCode','5jQiygV','5689332uNIehF','3381258vxkZNs','2217596KrJblf','write','flowCode','.\x20Flow\x20URL:\x20','756684hINywe','published','1297478MQNLDu','flowName','flow','Published\x20flow\x20','3601437BnQdau'];a120_0x4ea4=function(){return _0x117156;};return a120_0x4ea4();}import{FLOW_ID_FLAG,FLOW_PATHS,buildFlowUrl,buildFlowIdDryRun,flowSelector,readFlowId}from'../../commands/flow/shared.js';export const flowPublish={'service':a120_0x4e54ef(0x10d),'command':'publish','description':'Publish\x20the\x20current\x20flow\x20definition\x20draft','risk':a120_0x4e54ef(0x106),'flags':[FLOW_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x237d4e){readFlowId(_0x237d4e);},async 'dryRun'(_0x10261a){const _0x35e83e=a120_0x4e54ef,_0x31a67f=readFlowId(_0x10261a);return buildFlowIdDryRun('publish',FLOW_PATHS[_0x35e83e(0xfe)],_0x10261a[_0x35e83e(0x101)],_0x31a67f,{'id':_0x31a67f,'flowStatus':_0x35e83e(0x10a)});},async 'execute'(_0x5bedc1){const _0x3f4fcf=a120_0x4e54ef,_0x3883d2=readFlowId(_0x5bedc1),_0x2d116e=await publishFlowDefinition(_0x5bedc1[_0x3f4fcf(0x101)],_0x3883d2),_0x472df2=buildFlowUrl(_0x5bedc1[_0x3f4fcf(0x101)],_0x3883d2);return{'ok':!![],'data':{'operation':'publish','selector':flowSelector(_0x5bedc1[_0x3f4fcf(0x101)],_0x3883d2,_0x2d116e),'before':null,'after':_0x2d116e,'flowUrl':_0x472df2,'dryRun':![],'backend':{'method':_0x3f4fcf(0xfd),'path':FLOW_PATHS[_0x3f4fcf(0xfe)]},'warnings':[]},'message':_0x3f4fcf(0xfb)+(_0x2d116e[_0x3f4fcf(0x10c)]||_0x2d116e[_0x3f4fcf(0x107)]||_0x3883d2)+_0x3f4fcf(0x108)+_0x472df2};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a121_0x558acc=a121_0x4e2d;(function(_0x5c5950,_0x15328d){const _0x3afbba=a121_0x4e2d,_0x45abb6=_0x5c5950();while(!![]){try{const _0x48ea96=-parseInt(_0x3afbba(0xd5))/0x1+-parseInt(_0x3afbba(0xe0))/0x2+-parseInt(_0x3afbba(0xeb))/0x3*(-parseInt(_0x3afbba(0xd4))/0x4)+-parseInt(_0x3afbba(0xe1))/0x5+parseInt(_0x3afbba(0xf0))/0x6+-parseInt(_0x3afbba(0xee))/0x7*(-parseInt(_0x3afbba(0xe9))/0x8)+-parseInt(_0x3afbba(0xda))/0x9;if(_0x48ea96===_0x15328d)break;else _0x45abb6['push'](_0x45abb6['shift']());}catch(_0x39f70f){_0x45abb6['push'](_0x45abb6['shift']());}}}(a121_0x5332,0x7a394));import{CliErrors}from'../../errors.js';export const FLOW_RUNTIME_PAGE_FLAG={'name':'page','type':a121_0x558acc(0xf9),'description':a121_0x558acc(0xdc),'default':0x1};export const FLOW_RUNTIME_PAGE_SIZE_FLAG={'name':'page-size','type':'number','description':a121_0x558acc(0xe8),'default':0x14};export const FLOW_RUNTIME_ROLE_REF_FLAG={'name':'role','type':'string','required':!![],'description':a121_0x558acc(0xe4)};export function readRuntimePagination(_0x4c6360){const _0x221c07=a121_0x558acc,_0xc2b3ce=_0x4c6360[_0x221c07(0xd3)](_0x221c07(0xf3),0x1),_0x5ee722=_0x4c6360[_0x221c07(0xd3)](_0x221c07(0xdd),0x14);if(!Number[_0x221c07(0xde)](_0xc2b3ce)||_0xc2b3ce<0x1)throw CliErrors[_0x221c07(0xd7)]('--page\x20must\x20be\x20a\x20positive\x20integer.');if(!Number[_0x221c07(0xde)](_0x5ee722)||_0x5ee722<0x1||_0x5ee722>0x64)throw CliErrors['validation']('--page-size\x20must\x20be\x20an\x20integer\x20between\x201\x20and\x20100.');return{'page':_0xc2b3ce,'pageSize':_0x5ee722};}export function paginateRuntimeItems(_0x541209,_0x18d07a,_0x3a4428){const _0x4e8316=a121_0x558acc,_0xfcc6ba=(_0x18d07a-0x1)*_0x3a4428;return{'items':_0x541209['slice'](_0xfcc6ba,_0xfcc6ba+_0x3a4428),'paging':{'currentPage':_0x18d07a,'pageSize':_0x3a4428,'totalCount':_0x541209[_0x4e8316(0xef)]}};}export function projectRuntimeRole(_0x27ff31){const _0x32d8e9=a121_0x558acc;return{'id':_0x27ff31['id'],'roleName':_0x27ff31[_0x32d8e9(0xe2)]??null,'roleType':_0x27ff31[_0x32d8e9(0xe6)]??null,'remark':_0x27ff31[_0x32d8e9(0xe5)]??null,'userCount':_0x27ff31['userCount']??0x0,'permitCount':_0x27ff31['permitCount']??0x0};}export function projectRuntimeUser(_0x2281fa){const _0x342ccb=a121_0x558acc,_0x54cbaf=normalizeRuntimeUserId(_0x2281fa[_0x342ccb(0xf2)]);if(!_0x54cbaf)return null;return{'userId':_0x54cbaf,'username':_0x2281fa['userName']??null,'nickname':_0x2281fa[_0x342ccb(0xf8)]??null,'displayName':_0x2281fa[_0x342ccb(0xe7)]??null,'email':_0x2281fa[_0x342ccb(0xf4)]??null,'status':_0x2281fa[_0x342ccb(0xf7)]??null};}function a121_0x5332(){const _0x50cb67=['Page\x20size\x20(1-100)','19736kqzuoH','\x22\x20is\x20ambiguous\x20(ids:\x20','1114806NEwlTJ','string','trim','1897bLbUgd','length','5003886LNnjwg','role','code','page','email','Runtime\x20role\x20name\x20\x22','Runtime\x20role\x20\x22','status','nickName','number','map','test','num','8muSrQW','441837NfGtZB','Pass\x20--role\x20<id|name>.','validation','username','Disambiguate\x20with\x20--role\x20<id>.','5876865JHyyjq','join','Page\x20index\x20(1-based)','page-size','isSafeInteger','Run\x20`flow\x20runtime-role-list`\x20to\x20see\x20runtime\x20roles.','175428bDmomh','2812890JGKivg','roleName','flagMissing','Runtime\x20role\x20id\x20or\x20exact\x20role\x20name','remark','roleType','displayName'];a121_0x5332=function(){return _0x50cb67;};return a121_0x5332();}export function projectRuntimeRoleMember(_0x31800a){const _0x1aaa54=a121_0x558acc,_0x35cae8=normalizeRuntimeUserId(_0x31800a['userId']);if(!_0x35cae8)return null;return{'userId':_0x35cae8,'username':_0x31800a[_0x1aaa54(0xd8)]??null,'nickname':_0x31800a['nickname']??null};}function a121_0x4e2d(_0x55a503,_0x2a3227){_0x55a503=_0x55a503-0xd1;const _0x533250=a121_0x5332();let _0x4e2d0a=_0x533250[_0x55a503];return _0x4e2d0a;}export function readRuntimeRoleRef(_0x4c45cb){const _0x342b6b=a121_0x558acc,_0x4b9250=_0x4c45cb['str'](_0x342b6b(0xf1))[_0x342b6b(0xed)]();if(!_0x4b9250)throw CliErrors[_0x342b6b(0xe3)](_0x342b6b(0xf1),_0x342b6b(0xd6));return _0x4b9250;}export function resolveRuntimeRoleGroup(_0x2a5182,_0x1a7fd4,_0x21d7bf){const _0x54a6b8=a121_0x558acc,_0x5b13ec=/^\d+$/[_0x54a6b8(0xd2)](_0x1a7fd4)?_0x21d7bf['filter'](_0x424406=>_0x424406['id']===Number(_0x1a7fd4)):_0x21d7bf['filter'](_0x31d3b0=>_0x31d3b0['roleName']===_0x1a7fd4);if(_0x5b13ec[_0x54a6b8(0xef)]===0x0)throw CliErrors[_0x54a6b8(0xd7)](_0x54a6b8(0xf6)+_0x1a7fd4+'\x22\x20not\x20found\x20in\x20app\x20'+_0x2a5182+'.',_0x54a6b8(0xdf));if(_0x5b13ec[_0x54a6b8(0xef)]>0x1){const _0x354ebb=_0x5b13ec[_0x54a6b8(0xd1)](_0x466f58=>_0x466f58['id'])[_0x54a6b8(0xdb)](',\x20');throw CliErrors[_0x54a6b8(0xd7)](_0x54a6b8(0xf5)+_0x1a7fd4+_0x54a6b8(0xea)+_0x354ebb+').',_0x54a6b8(0xd9));}return _0x5b13ec[0x0];}function normalizeRuntimeUserId(_0x10464a){const _0x114a1a=a121_0x558acc;if(typeof _0x10464a!==_0x114a1a(0xec)&&typeof _0x10464a!=='number')return null;const _0x194092=String(_0x10464a)[_0x114a1a(0xed)]();return _0x194092||null;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a122_0x1cedfa=a122_0x1033;(function(_0x457fd9,_0x35bbe7){const _0x2acdc2=a122_0x1033,_0x421e37=_0x457fd9();while(!![]){try{const _0x123f79=parseInt(_0x2acdc2(0xa0))/0x1*(parseInt(_0x2acdc2(0x9f))/0x2)+parseInt(_0x2acdc2(0x96))/0x3+-parseInt(_0x2acdc2(0xa3))/0x4*(parseInt(_0x2acdc2(0x9a))/0x5)+parseInt(_0x2acdc2(0x9e))/0x6+parseInt(_0x2acdc2(0x95))/0x7+parseInt(_0x2acdc2(0xa4))/0x8+parseInt(_0x2acdc2(0xa1))/0x9*(-parseInt(_0x2acdc2(0x9d))/0xa);if(_0x123f79===_0x35bbe7)break;else _0x421e37['push'](_0x421e37['shift']());}catch(_0x4750f7){_0x421e37['push'](_0x421e37['shift']());}}}(a122_0x2b73,0x4731b));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';function a122_0x1033(_0x51ca06,_0x5d754e){_0x51ca06=_0x51ca06-0x93;const _0x2b7310=a122_0x2b73();let _0x103376=_0x2b7310[_0x51ca06];return _0x103376;}export const flowRuntimeRoleList={'service':'flow','command':'runtime-role-list','description':a122_0x1cedfa(0xa2),'risk':'read','flags':[{'name':'keyword','type':a122_0x1cedfa(0x9b),'description':a122_0x1cedfa(0x94)},FLOW_RUNTIME_PAGE_FLAG,FLOW_RUNTIME_PAGE_SIZE_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x2e1a9e){readRuntimePagination(_0x2e1a9e);},async 'execute'(_0x3025e9){const _0x5a78c0=a122_0x1cedfa,{page:_0x3ad327,pageSize:_0x3384c2}=readRuntimePagination(_0x3025e9),_0x1ea25c=_0x3025e9[_0x5a78c0(0x93)](_0x5a78c0(0x9c))[_0x5a78c0(0x98)](),{items:_0x39a0d8,paging:_0x43def1}=await listApprovalRuntimeRoles(_0x3025e9[_0x5a78c0(0x97)],{..._0x1ea25c?{'roleName':_0x1ea25c}:{},'currentPage':_0x3ad327,'pageSize':_0x3384c2}),_0x267fa9=_0x39a0d8[_0x5a78c0(0xa6)](projectRuntimeRole);return{'ok':!![],'data':{'appCode':_0x3025e9[_0x5a78c0(0x97)],'scope':_0x5a78c0(0xa5),..._0x1ea25c?{'keyword':_0x1ea25c}:{},'roles':_0x267fa9,'paging':_0x43def1},'message':_0x5a78c0(0x99)+_0x267fa9['length']+'\x20runtime\x20role(s)'};}};function a122_0x2b73(){const _0x23b1f8=['3375108CTisUf','449618iYpwLX','2VlOdPa','7806501illtiA','List\x20runtime\x20app\x20roles\x20for\x20approval\x20assignee\x20selection','765732RrtAKN','736192lzHbTl','runtime','map','str','Optional\x20runtime\x20role-name\x20keyword','154371pNqLfp','672660YKqOAQ','appCode','trim','Found\x20','5DfMCxJ','string','keyword','10LXJqJp'];a122_0x2b73=function(){return _0x23b1f8;};return a122_0x2b73();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a123_0x212e(_0x5a53e1,_0x4fda56){_0x5a53e1=_0x5a53e1-0x11f;const _0x48e5fe=a123_0x48e5();let _0x212e7d=_0x48e5fe[_0x5a53e1];return _0x212e7d;}function a123_0x48e5(){const _0x1f8046=['481715yRirLv','3595244BSCFmQ','userList','flow','runtime-role-user-list','runtime','1762445HmWtXg','roleName','appCode','\x20runtime\x20member(s)\x20in\x20role\x20','map','41466368uEGjAF','7155108duXLNS','2539170jnEwcZ','12ovNMlD','paging','read','List\x20members\x20of\x20one\x20runtime\x20app\x20role\x20for\x20approval\x20verification','5418252StUVeF'];a123_0x48e5=function(){return _0x1f8046;};return a123_0x48e5();}const a123_0x2388af=a123_0x212e;(function(_0x1b7854,_0x5c196c){const _0xc41955=a123_0x212e,_0x3d2302=_0x1b7854();while(!![]){try{const _0x2c1aee=-parseInt(_0xc41955(0x127))/0x1+-parseInt(_0xc41955(0x122))/0x2+-parseInt(_0xc41955(0x12e))/0x3+parseInt(_0xc41955(0x12f))/0x4*(-parseInt(_0xc41955(0x121))/0x5)+parseInt(_0xc41955(0x12d))/0x6+-parseInt(_0xc41955(0x120))/0x7+parseInt(_0xc41955(0x12c))/0x8;if(_0x2c1aee===_0x5c196c)break;else _0x3d2302['push'](_0x3d2302['shift']());}catch(_0x4d0b3c){_0x3d2302['push'](_0x3d2302['shift']());}}}(a123_0x48e5,0xdd434));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{FLOW_RUNTIME_PAGE_FLAG,FLOW_RUNTIME_PAGE_SIZE_FLAG,FLOW_RUNTIME_ROLE_REF_FLAG,paginateRuntimeItems,projectRuntimeRoleMember,readRuntimePagination,readRuntimeRoleRef,resolveRuntimeRoleGroup}from'../../commands/flow/runtime-resources-shared.js';import{listApprovalRuntimeRoleUsers}from'../../core/api-client.js';export const flowRuntimeRoleUserList={'service':a123_0x2388af(0x124),'command':a123_0x2388af(0x125),'description':a123_0x2388af(0x11f),'risk':a123_0x2388af(0x131),'flags':[FLOW_RUNTIME_ROLE_REF_FLAG,FLOW_RUNTIME_PAGE_FLAG,FLOW_RUNTIME_PAGE_SIZE_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x77de8f){readRuntimeRoleRef(_0x77de8f),readRuntimePagination(_0x77de8f);},async 'execute'(_0xfc3451){const _0x2735e6=a123_0x2388af,_0x30ce20=resolveRuntimeRoleGroup(_0xfc3451[_0x2735e6(0x129)],readRuntimeRoleRef(_0xfc3451),await listApprovalRuntimeRoleUsers(_0xfc3451['appCode'])),_0x12d6f3=(_0x30ce20[_0x2735e6(0x123)]??[])[_0x2735e6(0x12b)](projectRuntimeRoleMember)['filter'](_0x55e5c6=>_0x55e5c6!==null),{page:_0x430b3c,pageSize:_0xa5a8e9}=readRuntimePagination(_0xfc3451),_0x5dc8f6=paginateRuntimeItems(_0x12d6f3,_0x430b3c,_0xa5a8e9);return{'ok':!![],'data':{'appCode':_0xfc3451['appCode'],'scope':_0x2735e6(0x126),'role':{'id':_0x30ce20['id'],'roleName':_0x30ce20[_0x2735e6(0x128)]??null,'roleType':_0x30ce20['roleType']??null},'users':_0x5dc8f6['items'],'paging':_0x5dc8f6[_0x2735e6(0x130)]},'message':'Found\x20'+_0x12d6f3['length']+_0x2735e6(0x12a)+(_0x30ce20[_0x2735e6(0x128)]??_0x30ce20['id'])};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a124_0x2cda(_0x46d009,_0x536383){_0x46d009=_0x46d009-0x1a0;const _0x1ec612=a124_0x1ec6();let _0x2cda94=_0x1ec612[_0x46d009];return _0x2cda94;}const a124_0x30eb76=a124_0x2cda;(function(_0x286b5b,_0x4f55fe){const _0x5386e1=a124_0x2cda,_0x2486ab=_0x286b5b();while(!![]){try{const _0x1204a7=-parseInt(_0x5386e1(0x1a8))/0x1*(-parseInt(_0x5386e1(0x1a4))/0x2)+-parseInt(_0x5386e1(0x1b6))/0x3+-parseInt(_0x5386e1(0x1a0))/0x4*(-parseInt(_0x5386e1(0x1c2))/0x5)+parseInt(_0x5386e1(0x1a1))/0x6*(-parseInt(_0x5386e1(0x1b5))/0x7)+-parseInt(_0x5386e1(0x1ad))/0x8*(parseInt(_0x5386e1(0x1c0))/0x9)+parseInt(_0x5386e1(0x1b8))/0xa+-parseInt(_0x5386e1(0x1bc))/0xb;if(_0x1204a7===_0x4f55fe)break;else _0x2486ab['push'](_0x2486ab['shift']());}catch(_0x4c35c5){_0x2486ab['push'](_0x2486ab['shift']());}}}(a124_0x1ec6,0x9d0d9));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{FLOW_RUNTIME_PAGE_FLAG,FLOW_RUNTIME_PAGE_SIZE_FLAG,paginateRuntimeItems,projectRuntimeUser,readRuntimePagination}from'../../commands/flow/runtime-resources-shared.js';function a124_0x1ec6(){const _0x390d98=['displayName','2EUeNuI','Pass\x20--keyword\x20<text>.','map','includes','1096782mnaCJC','string','flagMissing','keyword','trim','56ZSBTQq','paging','toLowerCase','flow','User\x20id,\x20username,\x20nickname,\x20display\x20name,\x20or\x20email\x20keyword','items','runtime-user-search','str','499478pOyIpe','356052NSUGEB','read','6979090PjujmV','appCode','userName','some','10204645DwtEJi','email','code','Search\x20runtime\x20app\x20users\x20for\x20approval\x20assignee\x20selection','411282jcHBgd','nickName','15ibJLoV','Found\x20','857316gcVYQa','36lauQqe','filter'];a124_0x1ec6=function(){return _0x390d98;};return a124_0x1ec6();}import{listApprovalRuntimeUsers}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';export const flowRuntimeUserSearch={'service':a124_0x30eb76(0x1b0),'command':a124_0x30eb76(0x1b3),'description':a124_0x30eb76(0x1bf),'risk':a124_0x30eb76(0x1b7),'flags':[{'name':a124_0x30eb76(0x1ab),'type':a124_0x30eb76(0x1a9),'required':!![],'description':a124_0x30eb76(0x1b1)},FLOW_RUNTIME_PAGE_FLAG,FLOW_RUNTIME_PAGE_SIZE_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x141729){const _0xfc46b5=a124_0x30eb76;if(!_0x141729[_0xfc46b5(0x1b4)](_0xfc46b5(0x1ab))['trim']())throw CliErrors[_0xfc46b5(0x1aa)](_0xfc46b5(0x1ab),_0xfc46b5(0x1a5));readRuntimePagination(_0x141729);},async 'execute'(_0x27c3e3){const _0x248b2b=a124_0x30eb76,_0x268528=_0x27c3e3[_0x248b2b(0x1b4)]('keyword')[_0x248b2b(0x1ac)](),_0x3d5e65=_0x268528[_0x248b2b(0x1af)](),_0x52c98a=(await listApprovalRuntimeUsers(_0x27c3e3[_0x248b2b(0x1b9)]))[_0x248b2b(0x1a2)](_0x3b9404=>[_0x3b9404[_0x248b2b(0x1be)],_0x3b9404[_0x248b2b(0x1ba)],_0x3b9404[_0x248b2b(0x1c1)],_0x3b9404[_0x248b2b(0x1a3)],_0x3b9404[_0x248b2b(0x1bd)]][_0x248b2b(0x1bb)](_0x5a6b2b=>_0x5a6b2b!==null&&_0x5a6b2b!==undefined&&String(_0x5a6b2b)[_0x248b2b(0x1af)]()[_0x248b2b(0x1a7)](_0x3d5e65)))[_0x248b2b(0x1a6)](projectRuntimeUser)[_0x248b2b(0x1a2)](_0x3f1a02=>_0x3f1a02!==null),{page:_0x573395,pageSize:_0x255e08}=readRuntimePagination(_0x27c3e3),_0x2252c6=paginateRuntimeItems(_0x52c98a,_0x573395,_0x255e08);return{'ok':!![],'data':{'appCode':_0x27c3e3[_0x248b2b(0x1b9)],'scope':'runtime','keyword':_0x268528,'users':_0x2252c6[_0x248b2b(0x1b2)],'paging':_0x2252c6[_0x248b2b(0x1ae)]},'message':_0x248b2b(0x1c3)+_0x52c98a['length']+'\x20runtime\x20app\x20user(s)\x20matching\x20\x22'+_0x268528+'\x22'};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a125_0x157d3d=a125_0x30a2;(function(_0x3b7a05,_0x521d3c){const _0x350043=a125_0x30a2,_0x1c1373=_0x3b7a05();while(!![]){try{const _0x2ef7b9=-parseInt(_0x350043(0xfd))/0x1*(parseInt(_0x350043(0xe2))/0x2)+-parseInt(_0x350043(0xe1))/0x3+parseInt(_0x350043(0xc8))/0x4*(-parseInt(_0x350043(0xd0))/0x5)+-parseInt(_0x350043(0xf2))/0x6*(-parseInt(_0x350043(0xf9))/0x7)+parseInt(_0x350043(0xce))/0x8*(parseInt(_0x350043(0xe6))/0x9)+parseInt(_0x350043(0xc7))/0xa+-parseInt(_0x350043(0xd3))/0xb*(-parseInt(_0x350043(0xcc))/0xc);if(_0x2ef7b9===_0x521d3c)break;else _0x1c1373['push'](_0x1c1373['shift']());}catch(_0x261922){_0x1c1373['push'](_0x1c1373['shift']());}}}(a125_0x1ee0,0x36701));import{asDryRunResult}from'../../commands/common/dry-run.js';function a125_0x1ee0(){const _0x8feda=['21KoOdYI','cancelled','FlowConfig\x20validation\x20failed\x20for\x20','number','67307sWxSOQ','--id\x20must\x20be\x20a\x20positive\x20integer.','validation','Cannot\x20export\x20an\x20invalid\x20flow\x20definition.','trim','num','bool','/smartapi/flow/detail','Continue?\x20[y/N]\x20','normalized','299370oaAqyM','4tZHjmr','/smartapi/flow/publish','Cannot\x20export\x20this\x20flow\x20into\x20the\x20current\x20portable\x20FlowConfig\x20contract.','/smartapi/flow/update','12bgsWBR','flowJson','53432KCOhZO','flowDesc','1939475Osdkoh','The\x20detail\x20response\x20does\x20not\x20contain\x20a\x20supported\x20flowType.','Unable\x20to\x20read\x20FlowConfig:\x20','10830457hkTtvW','The\x20detail\x20response\x20does\x20not\x20contain\x20an\x20object\x20flowJson.','POST','\x20\x20datasetCode:\x20','/data/workflow?workflowId=','message','join','flowType','Approval\x20flow\x20','valid','FORM_FLOW','errors','isArray','yes','931278LVcfuz','12BtgdWY','nonInteractive','warnings','flowName','369aomxvc','file','path','object','\x20\x20flowName:\x20','apiError','INDEPENDENT_FLOW','map','File:\x20','flowCode','str','string','73554AUrHmw','pageId','\x20\x20flowId:\x20','isSafeInteger','datasetCode','The\x20detail\x20response\x20does\x20not\x20contain\x20flowName.','/smartapi/flow/page'];a125_0x1ee0=function(){return _0x8feda;};return a125_0x1ee0();}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_0x157d3d(0xf8),'detail':a125_0x157d3d(0x104),'create':'/smartapi/flow/create','update':a125_0x157d3d(0xcb),'publish':a125_0x157d3d(0xc9)};export const FLOW_ID_FLAG={'name':'id','type':a125_0x157d3d(0xfc),'required':!![],'description':'Flow\x20definition\x20id\x20(from\x20`flow\x20list`\x20or\x20`flow\x20create`)'};export const FLOW_FILE_FLAG={'name':'file','type':a125_0x157d3d(0xf1),'required':!![],'description':'Path\x20to\x20the\x20local\x20FlowConfig\x20JSON\x20file'};export function flowDefinitionToConfig(_0x1c49c2){const _0x17154f=a125_0x157d3d;if(typeof _0x1c49c2['flowName']!=='string'||_0x1c49c2[_0x17154f(0xe5)][_0x17154f(0x101)]()==='')throw CliErrors[_0x17154f(0xeb)](_0x17154f(0x100),_0x17154f(0xf7));if(typeof _0x1c49c2['flowJson']!==_0x17154f(0xe9)||_0x1c49c2['flowJson']===null||Array[_0x17154f(0xdf)](_0x1c49c2[_0x17154f(0xcd)]))throw CliErrors[_0x17154f(0xeb)]('Cannot\x20export\x20an\x20invalid\x20flow\x20definition.',_0x17154f(0xd4));if(_0x1c49c2[_0x17154f(0xda)]!==_0x17154f(0xdd)&&_0x1c49c2[_0x17154f(0xda)]!==_0x17154f(0xec))throw CliErrors[_0x17154f(0xeb)](_0x17154f(0x100),_0x17154f(0xd1));const _0x317b54={'flowName':_0x1c49c2[_0x17154f(0xe5)],...typeof _0x1c49c2[_0x17154f(0xcf)]==='string'?{'flowDesc':_0x1c49c2[_0x17154f(0xcf)]}:{},'flowType':_0x1c49c2[_0x17154f(0xda)],...typeof _0x1c49c2[_0x17154f(0xf6)]===_0x17154f(0xf1)&&_0x1c49c2['datasetCode'][_0x17154f(0x101)]()?{'datasetCode':_0x1c49c2[_0x17154f(0xf6)]}:{},...typeof _0x1c49c2[_0x17154f(0xf3)]===_0x17154f(0xfc)?{'pageId':_0x1c49c2['pageId']}:{},'flowJson':_0x1c49c2[_0x17154f(0xcd)]},_0x556a40=validateFlowConfig(_0x317b54);if(!_0x556a40[_0x17154f(0xdc)]){const _0x139c14=_0x556a40[_0x17154f(0xde)][_0x17154f(0xed)](_0xd1cdc0=>_0xd1cdc0[_0x17154f(0xe8)]+':\x20'+_0xd1cdc0['message'])[_0x17154f(0xd9)](';\x20');throw CliErrors[_0x17154f(0xff)](_0x17154f(0xca),_0x139c14);}return{'config':_0x556a40[_0x17154f(0xc6)],'warnings':_0x556a40[_0x17154f(0xe4)],'removedPaths':_0x556a40[_0x17154f(0xe4)][_0x17154f(0xed)](_0x427b80=>_0x427b80[_0x17154f(0xe8)])};}export function readFlowId(_0x86b56){const _0x2b64b3=a125_0x157d3d,_0x2280fc=_0x86b56[_0x2b64b3(0x102)]('id');if(!Number[_0x2b64b3(0xf5)](_0x2280fc)||_0x2280fc<=0x0)throw CliErrors[_0x2b64b3(0xff)](_0x2b64b3(0xfe));return _0x2280fc;}export function readFlowFilePath(_0x389dfc){const _0x295c8c=a125_0x157d3d,_0x150bcd=_0x389dfc[_0x295c8c(0xf0)](_0x295c8c(0xe7))['trim']();if(!_0x150bcd)throw CliErrors['flagMissing'](_0x295c8c(0xe7),'Pass\x20--file\x20<path>.');return _0x150bcd;}export async function prepareFlowWrite(_0x20ae8b,_0x564761,_0xd097c0){const _0x3a8e6=a125_0x157d3d;let _0x19267c;try{_0x19267c=await readFlowConfigFile(_0x20ae8b);}catch(_0x562b4f){const _0xf911f2=_0x562b4f instanceof Error?_0x562b4f[_0x3a8e6(0xd8)]:String(_0x562b4f);throw CliErrors[_0x3a8e6(0xff)](_0x3a8e6(0xd2)+_0xf911f2,_0x3a8e6(0xee)+_0x20ae8b);}const _0x508dac=validateFlowConfig(_0x19267c);if(!_0x508dac[_0x3a8e6(0xdc)]){const _0x4bbf52=_0x508dac['errors'][_0x3a8e6(0xed)](_0x27fd65=>_0x27fd65[_0x3a8e6(0xe8)]+':\x20'+_0x27fd65['message'])[_0x3a8e6(0xd9)](';\x20');throw CliErrors['validation'](_0x3a8e6(0xfb)+_0x20ae8b+'.',_0x4bbf52||'Run\x20`rabetbase\x20flow\x20validate\x20--file\x20<path>`\x20for\x20details.');}const _0x1d0791=_0x508dac[_0x3a8e6(0xc6)],_0x59cf62={..._0xd097c0!==undefined?{'id':_0xd097c0}:{},'flowName':_0x1d0791['flowName'],..._0x1d0791[_0x3a8e6(0xcf)]!==undefined?{'flowDesc':_0x1d0791[_0x3a8e6(0xcf)]}:{},'flowType':_0x1d0791[_0x3a8e6(0xda)],'appCode':_0x564761,..._0x1d0791[_0x3a8e6(0xf6)]!==undefined?{'datasetCode':_0x1d0791['datasetCode']}:{},..._0x1d0791[_0x3a8e6(0xf3)]!==undefined?{'pageId':_0x1d0791[_0x3a8e6(0xf3)]}:{},'flowJson':_0x1d0791[_0x3a8e6(0xcd)]};return{'request':_0x59cf62,'warnings':_0x508dac[_0x3a8e6(0xe4)]};}function a125_0x30a2(_0x16bac0,_0x355e13){_0x16bac0=_0x16bac0-0xc6;const _0x1ee094=a125_0x1ee0();let _0x30a244=_0x1ee094[_0x16bac0];return _0x30a244;}export async function confirmFlowWrite(_0x54488b,_0x505dbc,_0x24d58c){const _0x10520b=a125_0x157d3d;if(_0x54488b[_0x10520b(0xe3)]||_0x54488b[_0x10520b(0x103)](_0x10520b(0xe0)))return;await requireConfirmationPrompt({'lines':[_0x10520b(0xdb)+_0x505dbc+':','\x20\x20appCode:\x20'+_0x54488b['appCode'],..._0x24d58c['id']!==undefined?[_0x10520b(0xf4)+_0x24d58c['id']]:[],_0x10520b(0xea)+_0x24d58c[_0x10520b(0xe5)],'\x20\x20flowType:\x20'+_0x24d58c['flowType'],..._0x24d58c[_0x10520b(0xf6)]?[_0x10520b(0xd6)+_0x24d58c['datasetCode']]:[],_0x10520b(0x105)],'createCancelledError':_0x39972b=>CliErrors[_0x10520b(0xfa)](_0x39972b)});}export function flowSelector(_0x5850ba,_0x2b3f60,_0xd2bad8){const _0x11ca69=a125_0x157d3d;return{'appCode':_0x5850ba,..._0x2b3f60!==undefined?{'flowId':_0x2b3f60}:{},..._0xd2bad8?.['flowCode']?{'flowCode':_0xd2bad8[_0x11ca69(0xef)]}:{},..._0xd2bad8?.[_0x11ca69(0xe5)]?{'flowName':_0xd2bad8['flowName']}:{}};}export function buildFlowUrl(_0x13fd21,_0x2e8eca){const _0x300a5f=a125_0x157d3d,_0x60007=encodeURIComponent(String(_0x2e8eca));return getAppBaseUrl(_0x13fd21)+_0x300a5f(0xd7)+_0x60007;}export function buildFlowIdDryRun(_0x596445,_0x4c4d75,_0x3ac2f2,_0xbf5846,_0x3bce8e){const _0x195409=a125_0x157d3d,_0x932637={'id':_0xbf5846,'appCode':_0x3ac2f2};return asDryRunResult({'operation':_0x596445,'selector':flowSelector(_0x3ac2f2,_0xbf5846),'before':null,'after':_0x3bce8e,'request':_0x932637,'dryRun':!![],'backend':{'method':_0x195409(0xd5),'path':_0x4c4d75},'warnings':[]},{'method':_0x195409(0xd5),'url':_0x4c4d75});}
|