@lovrabet/rabetbase-cli 2.5.5-beta.1 → 2.5.5-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api/api-doc.js +1 -1
- package/lib/api/api-group.js +1 -1
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.js +1 -1
- package/lib/api/generate-sdk-config-file.js +1 -1
- package/lib/api/legacy-api-file.js +1 -1
- package/lib/api/model-registry-file.js +1 -1
- package/lib/api/model-registry-scaffold.js +1 -1
- package/lib/api/model-source.js +1 -1
- package/lib/auth/auth-server-ui.js +1 -1
- package/lib/auth/auth-server.js +1 -1
- package/lib/auth/constant.js +1 -1
- package/lib/auth/get-cookie.js +1 -1
- package/lib/auth/get-session-user.js +1 -1
- package/lib/auth/is-session-valid.js +1 -1
- package/lib/auth/login-success-html.js +1 -1
- package/lib/auth/logout.js +1 -1
- package/lib/cli-flags.js +1 -1
- package/lib/cli.js +1 -1
- package/lib/commands/api/generate.js +1 -1
- package/lib/commands/api/index.js +1 -1
- package/lib/commands/api/list.js +1 -1
- package/lib/commands/api/pull.js +1 -1
- package/lib/commands/api/shared.js +1 -1
- package/lib/commands/app/detail.js +1 -1
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/members-list.js +1 -1
- package/lib/commands/app/remote-directory.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/delete.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/app-config/list.js +1 -1
- package/lib/commands/app-config/set.js +1 -1
- package/lib/commands/app-config/shared.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/bff/create.js +1 -1
- package/lib/commands/bff/delete.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/bff/list.js +1 -1
- package/lib/commands/bff/logs.js +1 -1
- package/lib/commands/bff/pull.js +1 -1
- package/lib/commands/bff/push.js +1 -1
- package/lib/commands/bff/status.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/cli-update.js +1 -1
- package/lib/commands/codegen/index.js +1 -1
- package/lib/commands/codegen/sdk.js +1 -1
- package/lib/commands/codegen/sql.js +1 -1
- package/lib/commands/common/app-registry.js +1 -1
- package/lib/commands/common/app-selector.js +1 -1
- package/lib/commands/common/async-task.js +1 -1
- package/lib/commands/common/dry-run.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/common/validate.js +1 -1
- package/lib/commands/config/delete.js +1 -1
- package/lib/commands/config/get.js +1 -1
- package/lib/commands/config/index.js +1 -1
- package/lib/commands/config/init.js +1 -1
- package/lib/commands/config/list.js +1 -1
- package/lib/commands/config/set.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/dataset/batch-design.js +1 -1
- package/lib/commands/dataset/business-group-update.js +1 -1
- package/lib/commands/dataset/business-groups.js +1 -1
- package/lib/commands/dataset/capability.js +1 -1
- package/lib/commands/dataset/cross-relation-create.js +1 -1
- package/lib/commands/dataset/cross-relation-delete.js +1 -1
- package/lib/commands/dataset/cross-relation-list.js +1 -1
- package/lib/commands/dataset/cross-relation-shared.js +1 -1
- package/lib/commands/dataset/cross-relation-update.js +1 -1
- package/lib/commands/dataset/delete.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/extend-update.js +1 -1
- package/lib/commands/dataset/field-restore.js +1 -1
- package/lib/commands/dataset/field-update.js +1 -1
- package/lib/commands/dataset/generate.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/dataset/relation-audit.js +1 -1
- package/lib/commands/dataset/relation-create.js +1 -1
- package/lib/commands/dataset/relation-delete.js +1 -1
- package/lib/commands/dataset/relation-shared.js +1 -1
- package/lib/commands/dataset/relation-update.js +1 -1
- package/lib/commands/dataset/relations.js +1 -1
- package/lib/commands/dataset/rename.js +1 -1
- package/lib/commands/dataset/restore.js +1 -1
- package/lib/commands/dataset/user-deleted-field-list.js +1 -1
- package/lib/commands/db/analysis-batching.js +1 -1
- package/lib/commands/db/analyze-batch-plan.js +1 -1
- package/lib/commands/db/analyze-cancel.js +1 -1
- package/lib/commands/db/analyze-start.js +1 -1
- package/lib/commands/db/analyze-status.js +1 -1
- package/lib/commands/db/create.js +1 -1
- package/lib/commands/db/delete.js +1 -1
- package/lib/commands/db/detail.js +1 -1
- package/lib/commands/db/diff-refresh-start.js +1 -1
- package/lib/commands/db/diff-refresh-status.js +1 -1
- package/lib/commands/db/diff.js +1 -1
- package/lib/commands/db/index.js +1 -1
- package/lib/commands/db/list.js +1 -1
- package/lib/commands/db/shared.js +1 -1
- package/lib/commands/db/table-diff-shared.js +1 -1
- package/lib/commands/db/tables.js +1 -1
- package/lib/commands/db/test.js +1 -1
- package/lib/commands/db/update.js +1 -1
- package/lib/commands/deployment/index.js +1 -1
- package/lib/commands/deployment/sync-all.js +1 -1
- package/lib/commands/deployment/sync-jobs.js +1 -1
- package/lib/commands/deployment/sync-status.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/flow/create.js +1 -1
- package/lib/commands/flow/detail.js +1 -1
- package/lib/commands/flow/index.js +1 -1
- package/lib/commands/flow/list.js +1 -1
- package/lib/commands/flow/publish.js +1 -1
- package/lib/commands/flow/runtime-resources-shared.js +1 -1
- package/lib/commands/flow/runtime-role-list.js +1 -1
- package/lib/commands/flow/runtime-role-user-list.js +1 -1
- package/lib/commands/flow/runtime-user-search.js +1 -1
- package/lib/commands/flow/shared.js +1 -1
- package/lib/commands/flow/update.js +1 -1
- package/lib/commands/flow/validate.js +1 -1
- package/lib/commands/instant-api-policy/current.js +1 -1
- package/lib/commands/instant-api-policy/index.js +1 -1
- package/lib/commands/instant-api-policy/init.js +1 -1
- package/lib/commands/instant-api-policy/publish.js +1 -1
- package/lib/commands/instant-api-policy/pull.js +1 -1
- package/lib/commands/instant-api-policy/revision.js +1 -1
- package/lib/commands/instant-api-policy/revisions.js +1 -1
- package/lib/commands/instant-api-policy/rollback.js +1 -1
- package/lib/commands/instant-api-policy/shared.js +1 -1
- package/lib/commands/instant-api-policy/validate.js +1 -1
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/nudge.js +1 -1
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/issue/shared.js +1 -1
- package/lib/commands/kb/create.js +1 -1
- package/lib/commands/kb/delete.js +1 -1
- package/lib/commands/kb/detail.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/kb/list.js +1 -1
- package/lib/commands/kb/search.js +1 -1
- package/lib/commands/kb/shared.js +1 -1
- package/lib/commands/kb/update.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/asset-update.js +1 -1
- package/lib/commands/menu/delete.js +1 -1
- package/lib/commands/menu/external-link-create.js +1 -1
- package/lib/commands/menu/external-link-update.js +1 -1
- package/lib/commands/menu/group-create.js +1 -1
- package/lib/commands/menu/group-update.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/list.js +1 -1
- package/lib/commands/menu/move.js +1 -1
- package/lib/commands/menu/regroup-start.js +1 -1
- package/lib/commands/menu/rename.js +1 -1
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/delete-plan.js +1 -1
- package/lib/commands/menu/shared/facts.js +1 -1
- package/lib/commands/menu/shared/index.js +1 -1
- package/lib/commands/menu/shared/inquirer.js +1 -1
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.js +1 -1
- package/lib/commands/menu/shared/mutations.js +1 -1
- package/lib/commands/menu/shared/path.js +1 -1
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/subapp-assets.js +1 -1
- package/lib/commands/menu/shared/sync-core.js +1 -1
- package/lib/commands/menu/shared/update-core.js +1 -1
- package/lib/commands/menu/shared/valid-url.js +1 -1
- package/lib/commands/menu/subapp-assets-status.js +1 -1
- package/lib/commands/menu/subapp-assets-update.js +1 -1
- package/lib/commands/menu/sync.js +1 -1
- package/lib/commands/menu/visibility-update.js +1 -1
- package/lib/commands/notification/config-create.js +1 -1
- package/lib/commands/notification/config-delete.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/config-update.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/notification/shared.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/page/create.js +1 -1
- package/lib/commands/page/custom/detail.js +1 -1
- package/lib/commands/page/custom/list.js +1 -1
- package/lib/commands/page/custom/publish.js +1 -1
- package/lib/commands/page/custom/shared.js +1 -1
- package/lib/commands/page/custom/syntax.js +1 -1
- package/lib/commands/page/custom/update.js +1 -1
- package/lib/commands/page/data-list-status.js +1 -1
- package/lib/commands/page/generate-start.js +1 -1
- package/lib/commands/page/generate-status.js +1 -1
- package/lib/commands/page/index.js +1 -1
- package/lib/commands/page/pull.js +1 -1
- package/lib/commands/page/push.js +1 -1
- package/lib/commands/page/relation-audit.js +1 -1
- package/lib/commands/page/restore.js +1 -1
- package/lib/commands/page/shared.js +1 -1
- package/lib/commands/page/sync.js +1 -1
- package/lib/commands/project/api-architecture-upgrade.js +1 -1
- package/lib/commands/project/create/enhanced-guided-create.js +1 -1
- package/lib/commands/project/create/format-elapsed.js +1 -1
- package/lib/commands/project/create/main.js +1 -1
- package/lib/commands/project/create/materialize-project-template.js +1 -1
- package/lib/commands/project/create/project-name.js +1 -1
- package/lib/commands/project/create/project-template-archive.js +1 -1
- package/lib/commands/project/create/project-template-path.js +1 -1
- package/lib/commands/project/create/use-copy-project-template.js +1 -1
- package/lib/commands/project/create/use-format-code.js +1 -1
- package/lib/commands/project/create/use-install-dependencies.js +1 -1
- package/lib/commands/project/domain-routing-sync.js +1 -1
- package/lib/commands/project/index.js +1 -1
- package/lib/commands/project/upgrade.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/role/user-resolve.js +1 -1
- package/lib/commands/rule/get.js +1 -1
- package/lib/commands/rule/index.js +1 -1
- package/lib/commands/rule/list.js +1 -1
- package/lib/commands/rule/set.js +1 -1
- package/lib/commands/rule/shared.js +1 -1
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/sql/create.js +1 -1
- package/lib/commands/sql/delete.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/sql/list.js +1 -1
- package/lib/commands/sql/pull.js +1 -1
- package/lib/commands/sql/push.js +1 -1
- package/lib/commands/sql/shared.js +1 -1
- package/lib/commands/sql/status.js +1 -1
- package/lib/commands/sql/validate.js +1 -1
- package/lib/commands/task/index.js +1 -1
- package/lib/commands/task/status.js +1 -1
- package/lib/commands/tenant/index.js +1 -1
- package/lib/commands/tenant/members-list.js +1 -1
- package/lib/commands/tenant/shared.js +1 -1
- package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
- package/lib/commands/user-account/feishu-bind.js +1 -1
- package/lib/commands/user-account/index.js +1 -1
- package/lib/commands/workspace/add.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/commands/workspace/remove.js +1 -1
- package/lib/config/domain-config.js +1 -1
- package/lib/config/project-domain-routing.js +1 -1
- package/lib/config/region-config.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/cdn.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/paths.js +1 -1
- package/lib/constant/region.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/routing-profile.js +1 -1
- package/lib/context/app-resolver.js +1 -1
- package/lib/context/auth-resolver.js +1 -1
- package/lib/context/config-loader.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/bff/config.js +1 -1
- package/lib/core/bff/file-system.js +1 -1
- package/lib/core/bff/hash.js +1 -1
- package/lib/core/bff/hook-directory.js +1 -1
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/cross-db-relation.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/flow-config.js +1 -1
- package/lib/core/instant-api-policy/config.js +1 -1
- package/lib/core/kb-search-client.js +1 -1
- package/lib/core/page/file-system.js +1 -1
- package/lib/core/page/hash.js +1 -1
- package/lib/core/page/lock.js +1 -1
- package/lib/core/page/lr-smart-jsx.js +1 -1
- package/lib/core/sql-index-auditor.js +1 -1
- package/lib/core/sql-sync/config.js +1 -1
- package/lib/core/sql-sync/file-system.js +1 -1
- package/lib/core/sql-sync/hash.js +1 -1
- package/lib/core/sql-sync/lock.js +1 -1
- package/lib/core/sql-sync/utils.js +1 -1
- package/lib/core/sql-validator.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/error-output.js +1 -1
- package/lib/framework/explicit-yes.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-alias.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/supported-flags.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/generated/official-routing.js +1 -1
- package/lib/generated/routing-contract.js +1 -1
- package/lib/help.js +1 -1
- package/lib/postinstall.js +1 -1
- package/lib/runtime/confirmation.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/skills/builtin-skill.js +1 -1
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/skill-presence.js +1 -1
- package/lib/telemetry/cli-command-trace.js +1 -1
- package/lib/telemetry/cli-help-trace.js +1 -1
- package/lib/telemetry/ensure-cli-otel-config.js +1 -1
- package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
- package/lib/telemetry/send-cli-trace-log.js +1 -1
- package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
- package/lib/utils/ai_config.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cdn-config.js +1 -1
- package/lib/utils/check-sdk-version.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/config.js +1 -1
- package/lib/utils/entity-with-id.js +1 -1
- package/lib/utils/file-utils.js +1 -1
- package/lib/utils/guides-cdn.js +1 -1
- package/lib/utils/http-client.js +1 -1
- package/lib/utils/is-non-interactive.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/sleep.js +1 -1
- package/lib/utils/template-replacer.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/with-active-cookie.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
- package/skills/rabetbase/SKILL.md +1 -1
- package/skills/rabetbase-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 a109_0x49071c=a109_0x5bb3;function a109_0x5bb3(_0x18e00b,_0x33fc5b){_0x18e00b=_0x18e00b-0x16d;const _0x1dda87=a109_0x1dda();let _0x5bb308=_0x1dda87[_0x18e00b];return _0x5bb308;}function a109_0x1dda(){const _0xe8b3d5=['dbdesc','dbName','dbname','dbUrl','Preview\x20the\x20merged\x20database\x20connection\x20update;\x20password\x20redacted','[redacted]','num','1223934pVhpHQ','string','New\x20description','3OtgMBS','dbParam','bool','New\x20database\x20name','8TTfTjL','write','/smartapi/dblink/update','New\x20username','password','username','1254hMPOyp','str','dbparam','927384bhXwhI','update','115030TQWYLX','10574298IkUkuj','New\x20host:port','validation','New\x20connection\x20parameter\x20string','953312wkJpmP','Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22','--password\x20must\x20contain\x20the\x20real\x20database\x20password,\x20not\x20a\x20masked\x20value.','3822460VlkDfs','Current\x20or\x20replacement\x20password.\x20Required\x20when\x20the\x20stored\x20password\x20is\x20masked','Update\x20a\x20database\x20connection\x20by\x20merging\x20supplied\x20fields\x20into\x20the\x20current\x20server\x20record.\x20A\x20masked\x20server\x20password\x20requires\x20explicit\x20--password','skip-connection-test','Updated\x20db\x20link\x20','trim','846048YgwhVr','POST','dburl','has','49WZsCSL'];a109_0x1dda=function(){return _0xe8b3d5;};return a109_0x1dda();}(function(_0x27277f,_0x1138fa){const _0xa78afe=a109_0x5bb3,_0x21b79d=_0x27277f();while(!![]){try{const _0x5b9643=parseInt(_0xa78afe(0x192))/0x1+-parseInt(_0xa78afe(0x182))/0x2*(parseInt(_0xa78afe(0x185))/0x3)+-parseInt(_0xa78afe(0x189))/0x4*(-parseInt(_0xa78afe(0x170))/0x5)+-parseInt(_0xa78afe(0x176))/0x6*(parseInt(_0xa78afe(0x17a))/0x7)+-parseInt(_0xa78afe(0x16d))/0x8+-parseInt(_0xa78afe(0x195))/0x9+-parseInt(_0xa78afe(0x194))/0xa*(-parseInt(_0xa78afe(0x18f))/0xb);if(_0x5b9643===_0x1138fa)break;else _0x21b79d['push'](_0x21b79d['shift']());}catch(_0x5832fb){_0x21b79d['push'](_0x21b79d['shift']());}}}(a109_0x1dda,0xd5869));import{getDbLinkInfo,updateDbLink}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG,SKIP_CONNECTION_TEST_FLAG}from'../../commands/common/flags.js';import{assertDbLinkConnectionPreflight,sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';const MASKED_PASSWORD_VALUES=new Set(['******',a109_0x49071c(0x180)]);function mergeDbLinkUpdate(_0x1d64e9,_0x2edf6f){const _0x104665=a109_0x49071c,_0x45a9bc={..._0x1d64e9},_0x11dc73=_0x2edf6f[_0x104665(0x190)](_0x104665(0x18d));if(_0x11dc73&&MASKED_PASSWORD_VALUES[_0x104665(0x179)](_0x11dc73))throw CliErrors[_0x104665(0x197)](_0x104665(0x16f));if(!_0x11dc73&&MASKED_PASSWORD_VALUES[_0x104665(0x179)](String(_0x1d64e9['password']??'')))throw CliErrors[_0x104665(0x197)]('The\x20server\x20returned\x20a\x20masked\x20database\x20password.\x20Pass\x20the\x20current\x20or\x20replacement\x20password\x20explicitly\x20with\x20--password\x20to\x20update\x20this\x20connection\x20safely.');const _0xd1ccba=_0x2edf6f[_0x104665(0x190)](_0x104665(0x17d));if(_0xd1ccba)_0x45a9bc[_0x104665(0x17c)]=_0xd1ccba;const _0x34845c=_0x2edf6f[_0x104665(0x190)](_0x104665(0x178));if(_0x34845c)_0x45a9bc[_0x104665(0x17e)]=_0x34845c['trim']();const _0x4dd74f=_0x2edf6f[_0x104665(0x190)](_0x104665(0x18e));if(_0x4dd74f)_0x45a9bc[_0x104665(0x18e)]=_0x4dd74f;if(_0x11dc73)_0x45a9bc[_0x104665(0x18d)]=_0x11dc73;const _0x288c0d=_0x2edf6f[_0x104665(0x190)](_0x104665(0x191));if(_0x288c0d)_0x45a9bc[_0x104665(0x186)]=_0x288c0d;const _0x25abf3=_0x2edf6f['str']('dbdesc');if(_0x25abf3)_0x45a9bc['dbDesc']=_0x25abf3;return _0x45a9bc;}export const dbUpdate={'service':'db','command':a109_0x49071c(0x193),'description':a109_0x49071c(0x172),'risk':a109_0x49071c(0x18a),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a109_0x49071c(0x17d),'type':a109_0x49071c(0x183),'description':a109_0x49071c(0x188)},{'name':a109_0x49071c(0x178),'type':'string','description':a109_0x49071c(0x196)},{'name':a109_0x49071c(0x18e),'type':a109_0x49071c(0x183),'description':a109_0x49071c(0x18c)},{'name':a109_0x49071c(0x18d),'type':a109_0x49071c(0x183),'description':a109_0x49071c(0x171)},{'name':a109_0x49071c(0x191),'type':'string','description':a109_0x49071c(0x198)},{'name':a109_0x49071c(0x17b),'type':a109_0x49071c(0x183),'description':a109_0x49071c(0x184)},SKIP_CONNECTION_TEST_FLAG],async 'validate'(_0x1119d1){const _0x1ccd57=a109_0x49071c,_0x110d6e=_0x1119d1[_0x1ccd57(0x190)](_0x1ccd57(0x178));if(_0x110d6e&&!validateDbUrl(_0x110d6e[_0x1ccd57(0x175)]()))throw CliErrors[_0x1ccd57(0x197)](_0x1ccd57(0x16e)+_0x110d6e+'\x22');},async 'dryRun'(_0x4de23b){const _0x230720=a109_0x49071c,_0x4b535e=_0x4de23b[_0x230720(0x181)]('id'),_0x385a66=await getDbLinkInfo(_0x4b535e),_0x13ca6e=mergeDbLinkUpdate(_0x385a66,_0x4de23b),_0x486286=sanitizeDbLinkForOutput(_0x13ca6e);return{'method':_0x230720(0x177),'url':_0x230720(0x18b),'body':_0x486286,'description':_0x230720(0x17f),'connectionPreflight':{'enabled':!_0x4de23b[_0x230720(0x187)](_0x230720(0x173)),'executed':![]}};},async 'execute'(_0x1d43e9){const _0x4b0003=a109_0x49071c,_0x2274a7=_0x1d43e9[_0x4b0003(0x181)]('id'),_0x2692b6=await getDbLinkInfo(_0x2274a7),_0x1b7e44=mergeDbLinkUpdate(_0x2692b6,_0x1d43e9);!_0x1d43e9[_0x4b0003(0x187)](_0x4b0003(0x173))&&await assertDbLinkConnectionPreflight(_0x1b7e44);const {id:_0x1059b6,entity:_0x3128eb}=normalizeEntityWithIdResponse(await updateDbLink(_0x1b7e44));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x3128eb),'message':_0x4b0003(0x174)+(_0x1059b6??_0x2274a7)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x42c9c9,_0x37ca33){const _0x28238c=a110_0x3ad0,_0x59f80f=_0x42c9c9();while(!![]){try{const _0x520103=-parseInt(_0x28238c(0x171))/0x1+parseInt(_0x28238c(0x176))/0x2*(-parseInt(_0x28238c(0x170))/0x3)+parseInt(_0x28238c(0x173))/0x4*(-parseInt(_0x28238c(0x174))/0x5)+parseInt(_0x28238c(0x16e))/0x6+-parseInt(_0x28238c(0x16f))/0x7*(parseInt(_0x28238c(0x175))/0x8)+-parseInt(_0x28238c(0x16d))/0x9*(parseInt(_0x28238c(0x16c))/0xa)+parseInt(_0x28238c(0x172))/0xb;if(_0x520103===_0x37ca33)break;else _0x59f80f['push'](_0x59f80f['shift']());}catch(_0x2b4010){_0x59f80f['push'](_0x59f80f['shift']());}}}(a110_0xbd8d,0xebab2));import{deploymentSyncAll}from'../../commands/deployment/sync-all.js';import{deploymentSyncStatus}from'../../commands/deployment/sync-status.js';import{deploymentSyncJobs}from'../../commands/deployment/sync-jobs.js';function a110_0x3ad0(_0x1cd773,_0x26570f){_0x1cd773=_0x1cd773-0x16c;const _0xbd8d60=a110_0xbd8d();let _0x3ad05a=_0xbd8d60[_0x1cd773];return _0x3ad05a;}export const deploymentDefinitions=[deploymentSyncAll,deploymentSyncStatus,deploymentSyncJobs];function a110_0xbd8d(){const _0x2bab11=['680958FcraXB','52377633XAqXcE','6841348zvmOZE','5tpJLMK','220904ymJOue','9276UmYIZo','470jmgbIe','71802EmEZXh','9641154lunYrU','371aDzdAI','759QNvhVC'];a110_0xbd8d=function(){return _0x2bab11;};return a110_0xbd8d();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a111_0x1c7e7d=a111_0x5c8d;function a111_0x5c8d(_0x45bdae,_0x65d233){_0x45bdae=_0x45bdae-0x18b;const _0x461494=a111_0x4614();let _0x5c8d5e=_0x461494[_0x45bdae];return _0x5c8d5e;}(function(_0x25da05,_0x2c9895){const _0x467eee=a111_0x5c8d,_0x473cc1=_0x25da05();while(!![]){try{const _0x1c11f7=parseInt(_0x467eee(0x195))/0x1+parseInt(_0x467eee(0x18d))/0x2*(-parseInt(_0x467eee(0x1ae))/0x3)+-parseInt(_0x467eee(0x1a0))/0x4*(-parseInt(_0x467eee(0x191))/0x5)+-parseInt(_0x467eee(0x18c))/0x6*(-parseInt(_0x467eee(0x19e))/0x7)+-parseInt(_0x467eee(0x18b))/0x8*(parseInt(_0x467eee(0x1a4))/0x9)+-parseInt(_0x467eee(0x198))/0xa+parseInt(_0x467eee(0x1a5))/0xb;if(_0x1c11f7===_0x2c9895)break;else _0x473cc1['push'](_0x473cc1['shift']());}catch(_0x34da3c){_0x473cc1['push'](_0x473cc1['shift']());}}}(a111_0x4614,0xe35e1));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';const SUBMIT_PATH=a111_0x1c7e7d(0x1aa),CONFIRM_FLAG={'name':'confirm','type':a111_0x1c7e7d(0x1b2),'description':a111_0x1c7e7d(0x1a3)};function a111_0x4614(){const _0x3e7e67=['application_deployment_sync','196458jtovTp','POST','Backfill\x20or\x20recover\x20all\x20server-supported\x20application\x20metadata','Submit\x20an\x20administrative\x20metadata\x20backfill\x20or\x20recovery\x20synchronization.','boolean','96bzUkVd','48bpaXGx','38vDEpZb','deployment_sync_submit_outcome_unknown','--confirm\x20is\x20required\x20to\x20synchronize\x20all\x20application\x20metadata.','data','65075RWCQKc','Submitted\x20deployment\x20synchronization\x20job\x20','List\x20recent\x20deployment\x20sync\x20jobs\x20before\x20deciding\x20whether\x20to\x20submit\x20again.','Deployment\x20sync\x20submission\x20response\x20was\x20unavailable;\x20job\x20creation\x20is\x20unknown.','143575QlEsyW','validation','outcome','13068120afyoHH','unknown','No\x20deployment\x20synchronization\x20was\x20needed\x20for\x20this\x20app.','not_submitted','Run\x20with\x20--dry-run\x20first,\x20then\x20add\x20--confirm.','not_needed','428449YpZtYU','all_server_supported_metadata','68ePCDrF','bool','defineProperty','Confirm\x20the\x20administrative\x20backfill\x20or\x20recovery\x20synchronization','339435VRRgRo','33884807yewdlg','jobId','status','job','deployment','/smartapi/data-sync/submit','appCode','sync-all'];a111_0x4614=function(){return _0x3e7e67;};return a111_0x4614();}export const deploymentSyncAll={'service':a111_0x1c7e7d(0x1a9),'command':a111_0x1c7e7d(0x1ac),'description':a111_0x1c7e7d(0x1b0),'risk':'write','strictFlags':!![],'structuredErrors':!![],'confirmationDescription':a111_0x1c7e7d(0x1b1),'flags':[CONFIRM_FLAG,APPCODE_FLAG_OPTIONAL],async 'dryRun'(_0x1236a2){const _0x41d660=a111_0x1c7e7d;return asDryRunResult(buildPreview(_0x1236a2['appCode']),{'method':_0x41d660(0x1af),'url':SUBMIT_PATH,'description':'Would\x20submit\x20an\x20administrative\x20deployment\x20metadata\x20backfill\x20or\x20recovery\x20job.'});},async 'execute'(_0x5e8f78){const _0x1d709e=a111_0x1c7e7d;if(!_0x5e8f78[_0x1d709e(0x1a1)]('confirm'))throw CliErrors[_0x1d709e(0x196)](_0x1d709e(0x18f),_0x1d709e(0x19c));try{const _0x2c07e3=await submitDeploymentMetadataSyncAll({'appCode':_0x5e8f78['appCode']});if(_0x2c07e3[_0x1d709e(0x197)]===_0x1d709e(0x19d))return{'ok':!![],'data':{'operation':_0x1d709e(0x1ad),'appCode':_0x5e8f78[_0x1d709e(0x1ab)],'submitted':![],'outcome':'not_needed'},'message':_0x1d709e(0x19a)};return{'ok':!![],'data':{'operation':_0x1d709e(0x1ad),'appCode':_0x5e8f78[_0x1d709e(0x1ab)],'submitted':!![],'outcome':'submitted','jobId':_0x2c07e3[_0x1d709e(0x1a8)][_0x1d709e(0x1a6)],'status':_0x2c07e3[_0x1d709e(0x1a8)][_0x1d709e(0x1a7)]},'message':_0x1d709e(0x192)+_0x2c07e3[_0x1d709e(0x1a8)][_0x1d709e(0x1a6)]+'.'};}catch(_0x208a52){if(!isPlatformTransportFailure(_0x208a52))throw _0x208a52;const _0x3c4a84=new CliError(_0x1d709e(0x18e),0x2,_0x1d709e(0x194),_0x1d709e(0x193));Object[_0x1d709e(0x1a2)](_0x3c4a84,_0x1d709e(0x190),{'enumerable':!![],'value':{'operation':_0x1d709e(0x1ad),'appCode':_0x5e8f78['appCode'],'submitted':null,'outcome':_0x1d709e(0x199)}});throw _0x3c4a84;}}};function buildPreview(_0x370ed9){const _0x42b087=a111_0x1c7e7d;return{'operation':_0x42b087(0x1ad),'selector':{'appCode':_0x370ed9,'scope':_0x42b087(0x19f)},'before':null,'after':null,'dryRun':!![],'backend':{'submitted':![],'outcome':_0x42b087(0x19b)},'warnings':[]};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a112_0x3097(_0x2800e2,_0x58a41d){_0x2800e2=_0x2800e2-0xbd;const _0xbd1ee=a112_0xbd1e();let _0x309765=_0xbd1ee[_0x2800e2];return _0x309765;}const a112_0x4abb5c=a112_0x3097;(function(_0x244187,_0x4ad46f){const _0x844f71=a112_0x3097,_0x10b09d=_0x244187();while(!![]){try{const _0x3ba035=-parseInt(_0x844f71(0xd3))/0x1+parseInt(_0x844f71(0xc9))/0x2*(parseInt(_0x844f71(0xd8))/0x3)+parseInt(_0x844f71(0xc3))/0x4*(parseInt(_0x844f71(0xd4))/0x5)+parseInt(_0x844f71(0xc7))/0x6+-parseInt(_0x844f71(0xd2))/0x7*(parseInt(_0x844f71(0xc8))/0x8)+parseInt(_0x844f71(0xbe))/0x9*(parseInt(_0x844f71(0xc0))/0xa)+-parseInt(_0x844f71(0xce))/0xb;if(_0x3ba035===_0x4ad46f)break;else _0x10b09d['push'](_0x10b09d['shift']());}catch(_0x2b09f1){_0x10b09d['push'](_0x10b09d['shift']());}}}(a112_0xbd1e,0xdad3f));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{listDeploymentMetadataSyncJobs}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';export const deploymentSyncJobs={'service':a112_0x4abb5c(0xbf),'command':a112_0x4abb5c(0xda),'description':a112_0x4abb5c(0xd7),'risk':a112_0x4abb5c(0xbd),'strictFlags':!![],'structuredErrors':!![],'flags':[{'name':a112_0x4abb5c(0xd9),'type':a112_0x4abb5c(0xcf),'default':0x1,'description':'Page\x20number'},{'name':a112_0x4abb5c(0xd0),'type':a112_0x4abb5c(0xcf),'default':0xa,'description':a112_0x4abb5c(0xd1)},{'name':a112_0x4abb5c(0xc6),'type':a112_0x4abb5c(0xc4),'description':a112_0x4abb5c(0xcb)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x4fd2f8){const _0x37a238=a112_0x4abb5c;readPaging(_0x4fd2f8[_0x37a238(0xc1)](_0x37a238(0xd9),0x1),_0x4fd2f8[_0x37a238(0xc1)](_0x37a238(0xd0),0xa));},async 'execute'(_0x59c4ae){const _0x168be4=a112_0x4abb5c,{currentPage:_0xdc789,pageSize:_0xdc2c8b}=readPaging(_0x59c4ae[_0x168be4(0xc1)](_0x168be4(0xd9),0x1),_0x59c4ae[_0x168be4(0xc1)](_0x168be4(0xd0),0xa)),_0x4e6052=_0x59c4ae[_0x168be4(0xcc)](_0x168be4(0xc6))['trim'](),_0x46e795=await listDeploymentMetadataSyncJobs({'appCode':_0x59c4ae['appCode'],'currentPage':_0xdc789,'pageSize':_0xdc2c8b,..._0x4e6052?{'status':_0x4e6052}:{}});return{'ok':!![],'data':{'appCode':_0x59c4ae['appCode'],..._0x46e795},'message':_0x168be4(0xca)+_0x46e795[_0x168be4(0xd5)][_0x168be4(0xc5)]+'\x20deployment\x20synchronization\x20job(s).'};}};function readPaging(_0x3966f7,_0x24be4a){const _0x109c0e=a112_0x4abb5c;if(!Number[_0x109c0e(0xcd)](_0x3966f7)||_0x3966f7<0x1)throw CliErrors[_0x109c0e(0xc2)](_0x109c0e(0xd6));if(!Number[_0x109c0e(0xcd)](_0x24be4a)||_0x24be4a<0x1||_0x24be4a>0x64)throw CliErrors['validation']('--page-size\x20must\x20be\x20an\x20integer\x20from\x201\x20to\x20100.');return{'currentPage':_0x3966f7,'pageSize':_0x24be4a};}function a112_0xbd1e(){const _0x4c98d6=['status','3826680RPsrYA','8oQTCjO','1354rjaYVq','Found\x20','Optional\x20server-defined\x20job\x20status\x20filter','str','isSafeInteger','9906336KuBrEC','number','page-size','Items\x20per\x20page\x20(maximum\x20100)','475174fKydNl','1525678QsdkbQ','5NCEhBx','items','--current-page\x20must\x20be\x20a\x20positive\x20integer.','List\x20application\x20deployment\x20synchronization\x20jobs','741oklDLx','current-page','sync-jobs','read','9jVRznT','deployment','8780530ulOMQG','num','validation','6829612GFIQGc','string','length'];a112_0xbd1e=function(){return _0x4c98d6;};return a112_0xbd1e();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a113_0x5aba55=a113_0x2c13;(function(_0x16947d,_0x130c03){const _0x41f29c=a113_0x2c13,_0x15c6b5=_0x16947d();while(!![]){try{const _0x426363=parseInt(_0x41f29c(0x8a))/0x1*(parseInt(_0x41f29c(0x84))/0x2)+-parseInt(_0x41f29c(0x78))/0x3*(parseInt(_0x41f29c(0x7c))/0x4)+-parseInt(_0x41f29c(0x6f))/0x5+parseInt(_0x41f29c(0x8c))/0x6+-parseInt(_0x41f29c(0x6e))/0x7*(-parseInt(_0x41f29c(0x79))/0x8)+-parseInt(_0x41f29c(0x87))/0x9*(-parseInt(_0x41f29c(0x7b))/0xa)+parseInt(_0x41f29c(0x77))/0xb;if(_0x426363===_0x130c03)break;else _0x15c6b5['push'](_0x15c6b5['shift']());}catch(_0x49e56a){_0x15c6b5['push'](_0x15c6b5['shift']());}}}(a113_0x3bb0,0xe4b8d));import{getDeploymentMetadataSyncStatus}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a113_0x2c13(_0x1f6b0b,_0x110e7b){_0x1f6b0b=_0x1f6b0b-0x68;const _0x3bb0b6=a113_0x3bb0();let _0x2c1305=_0x3bb0b6[_0x1f6b0b];return _0x2c1305;}const TERMINAL_STATUSES=new Set([a113_0x5aba55(0x6a),a113_0x5aba55(0x8d),a113_0x5aba55(0x68)]),ACTIVE_STATUSES=new Set([a113_0x5aba55(0x7d),a113_0x5aba55(0x70)]);export const deploymentSyncStatus={'service':a113_0x5aba55(0x75),'command':'sync-status','description':a113_0x5aba55(0x82),'risk':a113_0x5aba55(0x81),'requiresAppCode':!![],'strictFlags':!![],'structuredErrors':!![],'flags':[{'name':a113_0x5aba55(0x69),'type':a113_0x5aba55(0x6b),'required':!![],'description':a113_0x5aba55(0x7e)}],async 'validate'(_0x5ab608){const _0x592c30=a113_0x5aba55;readJobId(_0x5ab608[_0x592c30(0x83)]('job-id'));},async 'execute'(_0xc0dd0b){const _0x12dfe2=a113_0x5aba55,_0x127179=readJobId(_0xc0dd0b['num'](_0x12dfe2(0x69))),_0x51386d=await getDeploymentMetadataSyncStatus({'jobId':_0x127179,'appCode':_0xc0dd0b[_0x12dfe2(0x6c)]}),_0x276d5b=TERMINAL_STATUSES['has'](_0x51386d[_0x12dfe2(0x71)])?!![]:ACTIVE_STATUSES[_0x12dfe2(0x80)](_0x51386d[_0x12dfe2(0x71)])?![]:null,_0x57a57d=countBy(_0x51386d[_0x12dfe2(0x86)][_0x12dfe2(0x7a)](_0x3553e4=>_0x3553e4[_0x12dfe2(0x72)])),_0x5b1182=countBy(_0x51386d[_0x12dfe2(0x86)][_0x12dfe2(0x7a)](_0x37eeed=>_0x37eeed['action'])),_0x4960ed=_0x276d5b===null?[_0x12dfe2(0x6d)+_0x51386d['status']+_0x12dfe2(0x88)]:[];return{'ok':!![],'data':{'job':_0x51386d,'isTerminal':_0x276d5b,'summary':{'total':_0x51386d[_0x12dfe2(0x86)][_0x12dfe2(0x89)],'failed':_0x51386d[_0x12dfe2(0x86)][_0x12dfe2(0x85)](_0x5ec9bc=>_0x5ec9bc['action']==='FAILED')[_0x12dfe2(0x89)],'byBizType':_0x57a57d,'byAction':_0x5b1182},'warnings':_0x4960ed},'message':_0x12dfe2(0x8b)+_0x127179+_0x12dfe2(0x7f)+_0x51386d[_0x12dfe2(0x71)]+'.'};}};function a113_0x3bb0(){const _0x2cc472=['4AhFeNK','filter','results','4814091FIOqoD',';\x20terminal\x20state\x20is\x20unknown\x20to\x20this\x20CLI\x20version.','length','57061mogXQW','Deployment\x20synchronization\x20job\x20','5530398ABoxpg','PARTIAL_SUCCESS','--job-id\x20must\x20be\x20a\x20positive\x20integer.','FAILED','job-id','SUCCESS','number','appCode','Preserved\x20server-defined\x20status\x20','7WzJhco','7612390dieRRP','RUNNING','status','bizType','isSafeInteger','reduce','deployment','validation','13563121pkGJAD','226821tymFRw','1478456enFhvm','map','10pnAFOf','28CfEyOO','PENDING','Deployment\x20synchronization\x20job\x20ID','\x20is\x20','has','read','Get\x20application\x20deployment\x20synchronization\x20job\x20status','num'];a113_0x3bb0=function(){return _0x2cc472;};return a113_0x3bb0();}function readJobId(_0x445957){const _0xb0ded6=a113_0x5aba55;if(!Number[_0xb0ded6(0x73)](_0x445957)||_0x445957<=0x0)throw CliErrors[_0xb0ded6(0x76)](_0xb0ded6(0x8e));return _0x445957;}function countBy(_0x376bf0){const _0xf6491b=a113_0x5aba55;return _0x376bf0[_0xf6491b(0x74)]((_0x29f5cf,_0x29ce83)=>{return _0x29f5cf[_0x29ce83]=(_0x29f5cf[_0x29ce83]??0x0)+0x1,_0x29f5cf;},{});}
|
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_0x186f12=a114_0x1107;(function(_0x155520,_0x3859c8){const _0x37c36f=a114_0x1107,_0xac3116=_0x155520();while(!![]){try{const _0x3bd416=-parseInt(_0x37c36f(0x15c))/0x1*(parseInt(_0x37c36f(0x1ab))/0x2)+parseInt(_0x37c36f(0x1bb))/0x3*(parseInt(_0x37c36f(0x182))/0x4)+parseInt(_0x37c36f(0x1bc))/0x5*(-parseInt(_0x37c36f(0x1e3))/0x6)+-parseInt(_0x37c36f(0x176))/0x7*(parseInt(_0x37c36f(0x187))/0x8)+parseInt(_0x37c36f(0x174))/0x9+-parseInt(_0x37c36f(0x1cf))/0xa*(-parseInt(_0x37c36f(0x164))/0xb)+parseInt(_0x37c36f(0x1cb))/0xc*(parseInt(_0x37c36f(0x1b8))/0xd);if(_0x3bd416===_0x3859c8)break;else _0xac3116['push'](_0xac3116['shift']());}catch(_0x4fa11f){_0xac3116['push'](_0xac3116['shift']());}}}(a114_0x14dc,0x53c87));function a114_0x14dc(){const _0x437a2b=['accessKey','appCode','status','repairCommand','Unavailable\x20until\x20routing\x20configuration\x20is\x20repaired','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','explicitAppName','default','\x20config\x20delete\x20region','\x20\x20Routing\x20Configuration','globalConfig','repeat','label','\x20config\x20delete\x20region\x20--global','not\x20configured','2478816bseJzA','doctor','203HCmftZ','read','\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(missing)','(no\x20file)','stringify','projectConfig','object','\x20\x20\x20\x20region:\x20\x20\x20\x20\x20','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','\x20\x20Skill\x20Version:\x20\x20\x20','✗\x20Invalid\x20','749648RzkxBO','\x20\x20Repair\x20project:\x20\x20\x20','defaultApp','filter','✗\x20Not\x20logged\x20in','159192XVWcQW','string','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','installedPath','regionConfiguredValue','Repair\x20','log','\x20config\x20delete\x20routing\x20--global','\x20config\x20delete\x20inherit\x20--global','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Merged\x20Config','routing','\x20(invalid)','value','env','(not\x20set)','inherit','regionSource','\x20\x20app\x20locale:\x20\x20\x20\x20\x20\x20','reason','\x20(default)','hasOwnProperty','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','missing','global','empty','check','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','green','format','currentApp','\x20\x20Installed\x20Path:\x20\x20','Project','(default:\x20','\x20\x20─','5910oNNFbg','\x20\x20Repair\x20global:\x20\x20\x20','pageSize','\x20\x20Built-in\x20Skill','state','Global','red','appcode','gray','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','arch','\x20\x20\x20\x20accessKey:\x20\x20','\x20config\x20delete\x20routing','13wOLwnq','entries','\x20\x20Package\x20Version:\x20','6VEUcfF','16210RCiydZ','message','✓\x20Valid\x20JSON','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','version','\x20\x20appDomain:\x20\x20\x20\x20\x20\x20\x20','\x20\x20explicitAppName:\x20','verbose','push','ignored\x20in\x20','cookie','join','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','(not\x20found)','prototype','2234508GEyquR','(set,\x20length=','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20skillDomain:\x20\x20\x20\x20\x20','1110UGMlmZ','toLowerCase','source','\x20\x20API\x20Endpoints','\x20←\x20current','slice','(none)','region','padEnd','yellow','(set\x20via\x20file,\x20length=','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','includes','✗\x20Expired','\x20\x20Config\x20JSON','raw','\x20\x20Auth','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20config','✗\x20Invalid','300VKrtUO','\x20\x20kbDomain:\x20\x20\x20\x20\x20\x20\x20\x20','length','\x20config\x20delete\x20inherit','project','current','(unknown)','packageVersion','platform','apiDir','bold','null','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','27lZnIZj','keys','apps','.region\x20to\x20cn\x20or\x20id\x20in\x20','call','Not\x20checked\x20until\x20routing\x20configuration\x20is\x20repaired','\x20\x20Country/Region\x20Configuration','\x20\x20Repair\x20project:\x20\x20','32274STETco'];a114_0x14dc=function(){return _0x437a2b;};return a114_0x14dc();}import a114_0x3aeb3c from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';function a114_0x1107(_0x1473c0,_0xe8010d){_0x1473c0=_0x1473c0-0x152;const _0x14dcfd=a114_0x14dc();let _0x11076a=_0x14dcfd[_0x1473c0];return _0x11076a;}import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';import{getActiveRegion,getApiDomain,getAppDomain,getKbDomain,getKbServiceDomain,getSkillDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags,initGlobalEnvironment,inspectCliConfigJsonFile,loadRawConfigLayers}from'../context.js';import{getIsSessionValid}from'../auth/is-session-valid.js';import{getCookie}from'../auth/get-cookie.js';import{buildAppDoctorFields}from'../config/schema.js';import{resolveEffectiveRegion}from'../config/region-config.js';import{inspectBuiltinSkill}from'../skills/builtin-skill.js';import{DEFAULT_LOVRABET_REGION,isInvalidLovrabetRegion}from'../constant/region.js';function describeRegionValue(_0x447efa){const _0x5ac84b=a114_0x1107;return typeof _0x447efa===_0x5ac84b(0x188)?JSON[_0x5ac84b(0x17b)](_0x447efa):'<'+(_0x447efa===null?_0x5ac84b(0x15a):typeof _0x447efa)+'>';}async function execute(_0x59edde){const _0x32647a=a114_0x1107,_0x20862a=GIT_COMMIT!=='unknown'?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x32647a(0x1d4)](0x0,0xa)+')':VERSION,_0x52d0e8=buildConfigFromFlags({}),_0x557a97=getCookie();let _0x255de9;try{await initGlobalEnvironment(_0x52d0e8);}catch(_0xe81d76){_0x255de9=_0xe81d76 instanceof Error?_0xe81d76:new Error(String(_0xe81d76));}console['log'](),console[_0x32647a(0x18e)](a114_0x3aeb3c[_0x32647a(0x159)](CLI_BIN_NAME+'\x20doctor')),console['log'](a114_0x3aeb3c['gray']('─'[_0x32647a(0x170)](0x32))),console[_0x32647a(0x18e)](_0x32647a(0x1da)+_0x20862a),console[_0x32647a(0x18e)]('\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+process[_0x32647a(0x1c0)]),console['log'](_0x32647a(0x16a)+process[_0x32647a(0x157)]+'\x20'+process[_0x32647a(0x1b5)]);const _0x5f0246=inspectBuiltinSkill();console['log'](),console[_0x32647a(0x18e)](a114_0x3aeb3c[_0x32647a(0x159)](_0x32647a(0x1ae))),console['log'](a114_0x3aeb3c[_0x32647a(0x1b3)]('\x20\x20─'[_0x32647a(0x170)](0x1e)));const _0x1744b7=_0x5f0246[_0x32647a(0x1af)]===_0x32647a(0x154)?a114_0x3aeb3c[_0x32647a(0x1a4)]('✓\x20'+_0x5f0246[_0x32647a(0x1af)]):a114_0x3aeb3c['red']('✗\x20'+_0x5f0246[_0x32647a(0x1af)]);console[_0x32647a(0x18e)]('\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x1744b7),console[_0x32647a(0x18e)](_0x32647a(0x1ba)+_0x5f0246[_0x32647a(0x156)]),console['log'](_0x32647a(0x180)+(_0x5f0246['skillVersion']||a114_0x3aeb3c[_0x32647a(0x1b3)](_0x32647a(0x155)))),console[_0x32647a(0x18e)](_0x32647a(0x1a7)+(_0x5f0246[_0x32647a(0x18b)]||a114_0x3aeb3c[_0x32647a(0x1b3)](_0x32647a(0x1c9))));if(_0x5f0246[_0x32647a(0x19b)])console[_0x32647a(0x18e)]('\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x5f0246[_0x32647a(0x19b)]);_0x5f0246[_0x32647a(0x1af)]!==_0x32647a(0x154)&&console['log']('\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x5f0246['repairCommand']);console['log'](),console[_0x32647a(0x18e)](a114_0x3aeb3c[_0x32647a(0x159)]('\x20\x20Config\x20Files')),console['log'](a114_0x3aeb3c[_0x32647a(0x1b3)]('\x20\x20─'[_0x32647a(0x170)](0x1e)));const _0x579f9f=getGlobalConfigPath(),_0x491901=getProjectConfigPath();console[_0x32647a(0x18e)]('\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x579f9f||a114_0x3aeb3c[_0x32647a(0x1b3)](_0x32647a(0x1c9)))),console[_0x32647a(0x18e)](_0x32647a(0x1cd)+(_0x491901||a114_0x3aeb3c[_0x32647a(0x1b3)](_0x32647a(0x1c9)))),console[_0x32647a(0x18e)](),console['log'](a114_0x3aeb3c['bold'](_0x32647a(0x1dd))),console[_0x32647a(0x18e)](a114_0x3aeb3c['gray'](_0x32647a(0x1aa)[_0x32647a(0x170)](0x1e)));const _0x3f65e1=(_0x365f12,_0x21962f)=>{const _0x2171dd=_0x32647a;if(!_0x21962f){console[_0x2171dd(0x18e)]('\x20\x20'+_0x365f12[_0x2171dd(0x1d7)](0x11)+'\x20'+a114_0x3aeb3c[_0x2171dd(0x1b3)](_0x2171dd(0x17a)));return;}const _0x4bcca4=inspectCliConfigJsonFile(_0x21962f);if(_0x4bcca4[_0x2171dd(0x167)]==='ok')console[_0x2171dd(0x18e)]('\x20\x20'+_0x365f12[_0x2171dd(0x1d7)](0x11)+'\x20'+a114_0x3aeb3c[_0x2171dd(0x1a4)](_0x2171dd(0x1be)));else{if(_0x4bcca4[_0x2171dd(0x167)]===_0x2171dd(0x1a1))console[_0x2171dd(0x18e)]('\x20\x20'+_0x365f12['padEnd'](0x11)+'\x20'+a114_0x3aeb3c['yellow']('⚠\x20Empty\x20(treated\x20as\x20{})'));else _0x4bcca4[_0x2171dd(0x167)]===_0x2171dd(0x19f)?console[_0x2171dd(0x18e)]('\x20\x20'+_0x365f12[_0x2171dd(0x1d7)](0x11)+'\x20'+a114_0x3aeb3c[_0x2171dd(0x1b3)](_0x2171dd(0x179))):(console[_0x2171dd(0x18e)]('\x20\x20'+_0x365f12['padEnd'](0x11)+'\x20'+a114_0x3aeb3c[_0x2171dd(0x1b1)]('✗\x20Invalid\x20JSON')),console['log']('\x20\x20'+''[_0x2171dd(0x1d7)](0x11)+'\x20'+a114_0x3aeb3c[_0x2171dd(0x1b1)](_0x4bcca4[_0x2171dd(0x1bd)])));}};_0x3f65e1(_0x32647a(0x1b0),_0x579f9f),_0x3f65e1('Project',_0x491901);const _0xc9e82d=loadRawConfigLayers(),_0x9abd67=[{'label':'Project','value':_0xc9e82d[_0x32647a(0x17c)][_0x32647a(0x1d6)],'present':Object[_0x32647a(0x1ca)][_0x32647a(0x19d)][_0x32647a(0x160)](_0xc9e82d[_0x32647a(0x17c)],_0x32647a(0x1d6)),'repairCommand':CLI_BIN_NAME+_0x32647a(0x16d)},{'label':_0x32647a(0x1b0),'value':_0xc9e82d[_0x32647a(0x16f)][_0x32647a(0x1d6)],'present':Object[_0x32647a(0x1ca)][_0x32647a(0x19d)][_0x32647a(0x160)](_0xc9e82d['globalConfig'],_0x32647a(0x1d6)),'repairCommand':CLI_BIN_NAME+_0x32647a(0x172)}][_0x32647a(0x185)](_0x26bfa3=>_0x26bfa3['present']&&isInvalidLovrabetRegion(_0x26bfa3[_0x32647a(0x195)]));for(const [_0x3ed260,_0x4cc90a]of[[_0x32647a(0x1a8),_0xc9e82d[_0x32647a(0x17c)]],['Global',_0xc9e82d[_0x32647a(0x16f)]]]){const _0x68f042=_0x4cc90a['apps']&&typeof _0x4cc90a[_0x32647a(0x15e)]===_0x32647a(0x17d)?_0x4cc90a[_0x32647a(0x15e)]:{};for(const [_0x303857,_0x10a3b2]of Object[_0x32647a(0x1b9)](_0x68f042)){if(!_0x10a3b2||typeof _0x10a3b2!==_0x32647a(0x17d)||!Object[_0x32647a(0x1ca)][_0x32647a(0x19d)][_0x32647a(0x160)](_0x10a3b2,_0x32647a(0x1d6)))continue;isInvalidLovrabetRegion(_0x10a3b2[_0x32647a(0x1d6)])&&_0x9abd67[_0x32647a(0x1c4)]({'label':_0x3ed260+'\x20app\x20\x22'+_0x303857+'\x22','value':_0x10a3b2['region'],'present':!![],'repairCommand':'Set\x20apps.'+_0x303857+_0x32647a(0x15f)+_0x3ed260[_0x32647a(0x1d0)]()+_0x32647a(0x1e1)});}}if(_0x9abd67['length']>0x0){console[_0x32647a(0x18e)](),console[_0x32647a(0x18e)](a114_0x3aeb3c[_0x32647a(0x159)](_0x32647a(0x162))),console['log'](a114_0x3aeb3c[_0x32647a(0x1b3)](_0x32647a(0x1aa)['repeat'](0x1e)));for(const _0x1e7de3 of _0x9abd67){console['log']('\x20\x20'+_0x1e7de3[_0x32647a(0x171)]['padEnd'](0x11)+'\x20'+a114_0x3aeb3c[_0x32647a(0x1b1)](_0x32647a(0x181)+describeRegionValue(_0x1e7de3[_0x32647a(0x195)]))),console[_0x32647a(0x18e)]('\x20\x20'+(_0x32647a(0x18d)+_0x1e7de3[_0x32647a(0x171)][_0x32647a(0x1d0)]()+':')[_0x32647a(0x1d7)](0x10)+'\x20'+_0x1e7de3[_0x32647a(0x168)]);}}const _0x58413f=[Object[_0x32647a(0x1ca)][_0x32647a(0x19d)][_0x32647a(0x160)](_0xc9e82d[_0x32647a(0x16f)],_0x32647a(0x198))?_0x32647a(0x1a0):null,Object[_0x32647a(0x1ca)][_0x32647a(0x19d)][_0x32647a(0x160)](_0xc9e82d[_0x32647a(0x17c)],_0x32647a(0x198))?_0x32647a(0x153):null][_0x32647a(0x185)](Boolean);_0x58413f[_0x32647a(0x1e5)]>0x0&&(console[_0x32647a(0x18e)]('\x20\x20Legacy\x20inherit:\x20\x20\x20'+a114_0x3aeb3c['yellow'](_0x32647a(0x1c5)+_0x58413f[_0x32647a(0x1c7)]('\x20+\x20')+_0x32647a(0x1e1))),_0x58413f[_0x32647a(0x1db)](_0x32647a(0x153))&&console['log'](_0x32647a(0x183)+CLI_BIN_NAME+_0x32647a(0x152)),_0x58413f['includes'](_0x32647a(0x1a0))&&console[_0x32647a(0x18e)]('\x20\x20Repair\x20global:\x20\x20\x20\x20'+CLI_BIN_NAME+_0x32647a(0x190)));const _0x2961a5=isInvalidLovrabetRegion(_0x52d0e8['regionConfiguredValue']??_0x52d0e8['raw']?.['region']);_0x255de9&&!_0x2961a5&&(console[_0x32647a(0x18e)](),console['log'](a114_0x3aeb3c[_0x32647a(0x159)](_0x32647a(0x16e))),console[_0x32647a(0x18e)](a114_0x3aeb3c[_0x32647a(0x1b3)](_0x32647a(0x1aa)[_0x32647a(0x170)](0x1e))),console[_0x32647a(0x18e)](_0x32647a(0x191)+a114_0x3aeb3c['red'](_0x32647a(0x1e2))),console[_0x32647a(0x18e)](_0x32647a(0x18a)+_0x255de9['message']),Object[_0x32647a(0x1ca)][_0x32647a(0x19d)][_0x32647a(0x160)](_0xc9e82d[_0x32647a(0x17c)],'routing')&&console[_0x32647a(0x18e)](_0x32647a(0x163)+CLI_BIN_NAME+_0x32647a(0x1b7)),Object['prototype']['hasOwnProperty'][_0x32647a(0x160)](_0xc9e82d[_0x32647a(0x16f)],_0x32647a(0x193))&&console[_0x32647a(0x18e)](_0x32647a(0x1ac)+CLI_BIN_NAME+_0x32647a(0x18f)));console[_0x32647a(0x18e)](),console[_0x32647a(0x18e)](a114_0x3aeb3c['bold'](_0x32647a(0x192))),console[_0x32647a(0x18e)](a114_0x3aeb3c['gray'](_0x32647a(0x1aa)[_0x32647a(0x170)](0x1e))),console['log'](_0x32647a(0x15b)+(_0x52d0e8[_0x32647a(0x166)]||a114_0x3aeb3c[_0x32647a(0x1b1)](_0x32647a(0x197))));const _0x3fd308=_0x2961a5?a114_0x3aeb3c[_0x32647a(0x1b1)](describeRegionValue(_0x52d0e8[_0x32647a(0x18c)]??_0x52d0e8['raw']?.[_0x32647a(0x1d6)])+_0x32647a(0x194)):(_0x52d0e8['region']??DEFAULT_LOVRABET_REGION)+'\x20('+(_0x52d0e8[_0x32647a(0x199)]??_0x32647a(0x16c))+')';console[_0x32647a(0x18e)](_0x32647a(0x178)+_0x3fd308),console[_0x32647a(0x18e)](_0x32647a(0x1a3)+_0x52d0e8['env']),console['log'](_0x32647a(0x19a)+_0x52d0e8['locale']),console[_0x32647a(0x18e)](_0x32647a(0x1e0)+_0x52d0e8[_0x32647a(0x158)]),console[_0x32647a(0x18e)]('\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20'+(_0x52d0e8[_0x32647a(0x184)]||a114_0x3aeb3c[_0x32647a(0x1b3)](_0x32647a(0x1d5)))),console[_0x32647a(0x18e)]('\x20\x20currentApp:\x20\x20\x20\x20\x20\x20'+(_0x52d0e8[_0x32647a(0x1a6)]||a114_0x3aeb3c['gray'](_0x32647a(0x1d5)))),console['log'](_0x32647a(0x1c2)+(_0x52d0e8[_0x32647a(0x16b)]||a114_0x3aeb3c[_0x32647a(0x1b3)](_0x32647a(0x1d5)))),console[_0x32647a(0x18e)]('\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x52d0e8[_0x32647a(0x1a5)]||a114_0x3aeb3c[_0x32647a(0x1b3)](_0x32647a(0x1a9)+DEFAULT_CONFIG_VALUES[_0x32647a(0x1a5)]+')'))),console[_0x32647a(0x18e)]('\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x52d0e8[_0x32647a(0x1ad)]??a114_0x3aeb3c[_0x32647a(0x1b3)]('(default)'))),console['log']('\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20'+_0x52d0e8['riskLevel']),console['log'](_0x32647a(0x1b4)+_0x52d0e8[_0x32647a(0x1c3)]),console[_0x32647a(0x18e)]('\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x52d0e8[_0x32647a(0x1c6)]?a114_0x3aeb3c[_0x32647a(0x1a4)](_0x32647a(0x1cc)+_0x52d0e8[_0x32647a(0x1c6)][_0x32647a(0x1e5)]+')'):_0x557a97?a114_0x3aeb3c[_0x32647a(0x1a4)](_0x32647a(0x1d9)+_0x557a97['length']+')'):a114_0x3aeb3c[_0x32647a(0x1b3)]('(none)')));const _0x2fa790=Object[_0x32647a(0x15d)](_0x52d0e8[_0x32647a(0x15e)]);if(_0x2fa790['length']>0x0){console[_0x32647a(0x18e)](),console['log'](a114_0x3aeb3c[_0x32647a(0x159)]('\x20\x20Apps')),console['log'](a114_0x3aeb3c[_0x32647a(0x1b3)]('\x20\x20─'[_0x32647a(0x170)](0x1e)));for(const _0xa0cd85 of _0x2fa790){const _0x3b3efd=_0x52d0e8[_0x32647a(0x15e)][_0xa0cd85],_0x36c5c7=_0xa0cd85===_0x52d0e8[_0x32647a(0x184)],_0x507cbe=_0xa0cd85===_0x52d0e8[_0x32647a(0x1a6)],_0x2a4ea0=_0x507cbe?a114_0x3aeb3c[_0x32647a(0x1a4)](_0x32647a(0x1d3)):'',_0x8cbc3a=_0x36c5c7?_0x32647a(0x19c):'';console[_0x32647a(0x18e)]('\x20\x20'+_0xa0cd85+_0x8cbc3a+_0x2a4ea0),console[_0x32647a(0x18e)](_0x32647a(0x19e)+_0x3b3efd[_0x32647a(0x1b2)]);const _0x151717=_0xc9e82d[_0x32647a(0x17c)][_0x32647a(0x15e)]&&typeof _0xc9e82d[_0x32647a(0x17c)][_0x32647a(0x15e)]==='object'?_0xc9e82d['projectConfig'][_0x32647a(0x15e)]:{},_0x19f194=Object['prototype']['hasOwnProperty'][_0x32647a(0x160)](_0x151717,_0xa0cd85),_0x31f1e4=isInvalidLovrabetRegion(_0x3b3efd[_0x32647a(0x1d6)])?{'region':_0x52d0e8[_0x32647a(0x1d6)]??DEFAULT_LOVRABET_REGION}:resolveEffectiveRegion({'appRegion':_0x3b3efd[_0x32647a(0x1d6)],'projectRegion':_0x19f194?_0xc9e82d[_0x32647a(0x17c)][_0x32647a(0x1d6)]:undefined,'globalRegion':_0xc9e82d[_0x32647a(0x16f)][_0x32647a(0x1d6)],'mergedRegion':_0x52d0e8[_0x32647a(0x1de)][_0x32647a(0x1d6)],'appName':_0xa0cd85}),_0x5ec575=buildAppDoctorFields(_0x3b3efd,{'region':_0x31f1e4['region'],'env':_0x52d0e8[_0x32647a(0x196)],'apiDir':_0x52d0e8[_0x32647a(0x1de)][_0x32647a(0x158)]||DEFAULT_CONFIG_VALUES[_0x32647a(0x158)],'cookie':_0x52d0e8['cookie']||_0x557a97||undefined,'accessKey':_0x52d0e8['accessKey']});console[_0x32647a(0x18e)](_0x32647a(0x17e)+_0x5ec575['region'][_0x32647a(0x195)]+'\x20\x20'+a114_0x3aeb3c[_0x32647a(0x1b3)]('('+_0x5ec575[_0x32647a(0x1d6)][_0x32647a(0x1d1)]+')')),console[_0x32647a(0x18e)]('\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x5ec575[_0x32647a(0x196)][_0x32647a(0x195)]+'\x20\x20'+a114_0x3aeb3c['gray']('('+_0x5ec575['env']['source']+')')),console[_0x32647a(0x18e)](_0x32647a(0x17f)+_0x5ec575[_0x32647a(0x158)][_0x32647a(0x195)]+'\x20\x20'+a114_0x3aeb3c[_0x32647a(0x1b3)]('('+_0x5ec575['apiDir'][_0x32647a(0x1d1)]+')'));const _0x1dd992=_0x5ec575['cookie'][_0x32647a(0x195)]?a114_0x3aeb3c[_0x32647a(0x1a4)](_0x32647a(0x1cc)+_0x5ec575[_0x32647a(0x1c6)][_0x32647a(0x195)]['length']+')'):a114_0x3aeb3c['gray'](_0x32647a(0x1d5));console[_0x32647a(0x18e)]('\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20'+_0x1dd992+'\x20\x20'+a114_0x3aeb3c[_0x32647a(0x1b3)]('('+_0x5ec575['cookie'][_0x32647a(0x1d1)]+')'));const _0x26f1ad=_0x5ec575['accessKey']['value']?a114_0x3aeb3c[_0x32647a(0x1a4)](_0x32647a(0x1cc)+_0x5ec575['accessKey'][_0x32647a(0x195)][_0x32647a(0x1e5)]+')'):a114_0x3aeb3c[_0x32647a(0x1b3)]('(none)');console[_0x32647a(0x18e)](_0x32647a(0x1b6)+_0x26f1ad+'\x20\x20'+a114_0x3aeb3c[_0x32647a(0x1b3)]('('+_0x5ec575[_0x32647a(0x165)][_0x32647a(0x1d1)]+')'));}}console[_0x32647a(0x18e)](),console[_0x32647a(0x18e)](a114_0x3aeb3c[_0x32647a(0x159)](_0x32647a(0x1d2))),console[_0x32647a(0x18e)](a114_0x3aeb3c['gray']('\x20\x20─'['repeat'](0x1e)));_0x255de9?console[_0x32647a(0x18e)](_0x32647a(0x191)+a114_0x3aeb3c[_0x32647a(0x1b1)](_0x32647a(0x169))):(console[_0x32647a(0x18e)]('\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+getActiveRegion()),console[_0x32647a(0x18e)](_0x32647a(0x1c8)+getApiDomain()),console[_0x32647a(0x18e)](_0x32647a(0x189)+getUserDomain()),console[_0x32647a(0x18e)]('\x20\x20runtimeDomain:\x20\x20\x20'+getRuntimeDomain()),console[_0x32647a(0x18e)](_0x32647a(0x1ce)+getSkillDomain()),console[_0x32647a(0x18e)](_0x32647a(0x1e4)+getKbDomain()),console[_0x32647a(0x18e)]('\x20\x20kbServiceDomain:\x20'+(getKbServiceDomain()??_0x32647a(0x173))),console[_0x32647a(0x18e)](_0x32647a(0x1c1)+getAppDomain()));console['log'](),console[_0x32647a(0x18e)](a114_0x3aeb3c[_0x32647a(0x159)](_0x32647a(0x1df))),console[_0x32647a(0x18e)](a114_0x3aeb3c[_0x32647a(0x1b3)](_0x32647a(0x1aa)['repeat'](0x1e)));if(_0x255de9)console[_0x32647a(0x18e)](_0x32647a(0x191)+a114_0x3aeb3c[_0x32647a(0x1d8)](_0x32647a(0x161)));else{if(_0x557a97){const _0x456d15=await getIsSessionValid();console[_0x32647a(0x18e)](_0x32647a(0x191)+(_0x456d15?a114_0x3aeb3c[_0x32647a(0x1a4)]('✓\x20Valid'):a114_0x3aeb3c[_0x32647a(0x1b1)](_0x32647a(0x1dc))));}else console[_0x32647a(0x18e)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a114_0x3aeb3c['red'](_0x32647a(0x186)));}return console[_0x32647a(0x18e)](),{'ok':!![]};}export const doctorDefinition={'service':a114_0x186f12(0x175),'command':a114_0x186f12(0x1a2),'description':a114_0x186f12(0x1bf),'risk':a114_0x186f12(0x177),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a115_0x39b20d=a115_0x3162;(function(_0x2a8731,_0x217a2a){const _0x3aa74f=a115_0x3162,_0x3cf40a=_0x2a8731();while(!![]){try{const _0x3fb6b7=-parseInt(_0x3aa74f(0x13e))/0x1*(-parseInt(_0x3aa74f(0x124))/0x2)+-parseInt(_0x3aa74f(0x128))/0x3*(-parseInt(_0x3aa74f(0x12e))/0x4)+-parseInt(_0x3aa74f(0x149))/0x5*(-parseInt(_0x3aa74f(0x146))/0x6)+-parseInt(_0x3aa74f(0x12a))/0x7*(-parseInt(_0x3aa74f(0x13f))/0x8)+-parseInt(_0x3aa74f(0x141))/0x9*(parseInt(_0x3aa74f(0x126))/0xa)+-parseInt(_0x3aa74f(0x144))/0xb*(-parseInt(_0x3aa74f(0x13b))/0xc)+-parseInt(_0x3aa74f(0x143))/0xd;if(_0x3fb6b7===_0x217a2a)break;else _0x3cf40a['push'](_0x3cf40a['shift']());}catch(_0x30193e){_0x3cf40a['push'](_0x3cf40a['shift']());}}}(a115_0x3237,0x510ae));function a115_0x3162(_0x107861,_0x54372e){_0x107861=_0x107861-0x123;const _0x323797=a115_0x3237();let _0x316230=_0x323797[_0x107861];return _0x316230;}import{requireDevelopmentUploadFile}from'../../commands/common/local-file.js';function a115_0x3237(){const _0x13a9e3=['appCode','/smartapi/common/uploadFile','Development\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data','43556tFjeIs','str','filePath','validation','long-term','Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML','trim','file','download','Uploaded\x20file:\x20','filepath','.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','\x20to\x20development\x20app\x20','12zFkuBT','boolean','POST','5541ihVaPx','8YjqLtU','read','9ydXtAE','filePath\x20is\x20required.','17551352muLCQH','734503tvyJfj','Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL','708CvOWOE','Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','upload','26195Etjczl','bool','File','14GGPHuq','Path\x20to\x20the\x20local\x20file\x20to\x20upload','2818360XUimib','Preview:\x20upload\x20','177xvQZzr','path','4183739HEWhck'];a115_0x3237=function(){return _0x13a9e3;};return a115_0x3237();}import{queryDevelopmentFileUrl,uploadDevelopmentFile}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const FILE_FLAG={'name':a115_0x39b20d(0x135),'type':'string','required':!![],'description':a115_0x39b20d(0x125)},FILEPATH_FLAG={'name':'filepath','type':'string','required':!![],'description':a115_0x39b20d(0x12d)},DOWNLOAD_FLAG={'name':a115_0x39b20d(0x136),'type':a115_0x39b20d(0x13c),'description':a115_0x39b20d(0x145)},LONG_TERM_FLAG={'name':a115_0x39b20d(0x132),'type':a115_0x39b20d(0x13c),'description':a115_0x39b20d(0x133)};function requireFilePath(_0x582dce){const _0x2f62e5=a115_0x39b20d,_0x58720c=_0x582dce[_0x2f62e5(0x134)]();if(!_0x58720c)throw CliErrors[_0x2f62e5(0x131)](_0x2f62e5(0x142));return _0x58720c;}const fileUpload={'service':a115_0x39b20d(0x135),'command':a115_0x39b20d(0x148),'description':'Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','risk':a115_0x39b20d(0x140),'flags':[FILE_FLAG],async 'dryRun'(_0xdbc38a){const _0xa4cbd5=a115_0x39b20d,_0xcd0db8=requireDevelopmentUploadFile(_0xdbc38a[_0xa4cbd5(0x12f)]('file'),_0xa4cbd5(0x123));return{'method':_0xa4cbd5(0x13d),'url':_0xa4cbd5(0x12c),'body':{'appCode':_0xdbc38a[_0xa4cbd5(0x12b)],'multipart':{'file':_0xcd0db8}},'description':_0xa4cbd5(0x127)+_0xcd0db8[_0xa4cbd5(0x129)]+_0xa4cbd5(0x13a)+_0xdbc38a[_0xa4cbd5(0x12b)]};},async 'execute'(_0x12be8a){const _0x59becc=a115_0x39b20d,_0x1acf68=requireDevelopmentUploadFile(_0x12be8a[_0x59becc(0x12f)](_0x59becc(0x135)),_0x59becc(0x123)),_0x471428=await uploadDevelopmentFile(_0x12be8a['appCode'],_0x1acf68[_0x59becc(0x129)]);return{'ok':!![],'data':_0x471428,'message':_0x471428[_0x59becc(0x130)]?_0x59becc(0x137)+_0x471428['filePath']+_0x59becc(0x139):_0x59becc(0x147)};}},fileQueryUrl={'service':a115_0x39b20d(0x135),'command':'query-url','description':'Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20or\x20immediate\x20access','risk':a115_0x39b20d(0x140),'flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0x1112f3){const _0x52b227=a115_0x39b20d,_0x1bd87c=requireFilePath(_0x1112f3[_0x52b227(0x12f)](_0x52b227(0x138))),_0x49499f=await queryDevelopmentFileUrl(_0x1bd87c,{'download':_0x1112f3[_0x52b227(0x14a)](_0x52b227(0x136)),'longTerm':_0x1112f3[_0x52b227(0x14a)](_0x52b227(0x132))});return{'ok':!![],'data':_0x49499f};}};export const fileDefinitions=[fileUpload,fileQueryUrl];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a116_0x2d4725=a116_0x191d;(function(_0x44f30a,_0x168049){const _0x3ecd93=a116_0x191d,_0x19027d=_0x44f30a();while(!![]){try{const _0x2ba746=parseInt(_0x3ecd93(0x1cd))/0x1*(-parseInt(_0x3ecd93(0x1c5))/0x2)+-parseInt(_0x3ecd93(0x1ca))/0x3*(-parseInt(_0x3ecd93(0x1cf))/0x4)+parseInt(_0x3ecd93(0x1c6))/0x5+parseInt(_0x3ecd93(0x1c4))/0x6*(parseInt(_0x3ecd93(0x1c7))/0x7)+-parseInt(_0x3ecd93(0x1cc))/0x8*(-parseInt(_0x3ecd93(0x1c3))/0x9)+parseInt(_0x3ecd93(0x1c8))/0xa*(parseInt(_0x3ecd93(0x1d4))/0xb)+-parseInt(_0x3ecd93(0x1d2))/0xc*(parseInt(_0x3ecd93(0x1d3))/0xd);if(_0x2ba746===_0x168049)break;else _0x19027d['push'](_0x19027d['shift']());}catch(_0x32ff1e){_0x19027d['push'](_0x19027d['shift']());}}}(a116_0x50fa,0xac47e));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a116_0x50fa(){const _0x27bf7d=['2831322mSKgmV','3544CXWnCL','4886540THcmHG','7abRWZi','10tdeyKc','flowName','171078gSqdNO','POST','100960xICXyv','349kLnKrH','create','28EnOmaU','write','Create\x20a\x20draft\x20flow\x20definition\x20from\x20a\x20local\x20FlowConfig\x20file','12UwvvOg','28500407zwuelP','12518132zdfZzP','datasetCode','.\x20Flow\x20URL:\x20','appCode','378tHOmpl'];a116_0x50fa=function(){return _0x27bf7d;};return a116_0x50fa();}import{asDryRunResult}from'../../commands/common/dry-run.js';function a116_0x191d(_0x478ac2,_0x25c79f){_0x478ac2=_0x478ac2-0x1c2;const _0x50fab1=a116_0x50fa();let _0x191d7e=_0x50fab1[_0x478ac2];return _0x191d7e;}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':'flow','command':a116_0x2d4725(0x1ce),'description':a116_0x2d4725(0x1d1),'risk':a116_0x2d4725(0x1d0),'flags':[FLOW_FILE_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x5303f2){readFlowFilePath(_0x5303f2);},async 'dryRun'(_0x32bc71){const _0x426239=a116_0x2d4725,{request:_0x36c801,warnings:_0x2c3ef9}=await prepareFlowWrite(readFlowFilePath(_0x32bc71),_0x32bc71[_0x426239(0x1c2)]);return asDryRunResult({'operation':_0x426239(0x1ce),'selector':{'appCode':_0x32bc71['appCode'],'flowName':_0x36c801[_0x426239(0x1c9)],..._0x36c801[_0x426239(0x1d5)]?{'datasetCode':_0x36c801['datasetCode']}:{}},'before':null,'after':_0x36c801,'request':_0x36c801,'dryRun':!![],'backend':{'method':_0x426239(0x1cb),'path':FLOW_PATHS['create']},'warnings':_0x2c3ef9},{'method':'POST','url':FLOW_PATHS['create']});},async 'execute'(_0x18b6f6){const _0x215387=a116_0x2d4725,{request:_0x2be019,warnings:_0x4bd5da}=await prepareFlowWrite(readFlowFilePath(_0x18b6f6),_0x18b6f6[_0x215387(0x1c2)]);await confirmFlowWrite(_0x18b6f6,_0x215387(0x1ce),_0x2be019);const _0x3ade27=await createFlowDefinition(_0x2be019),_0x452bd6=buildFlowUrl(_0x18b6f6[_0x215387(0x1c2)],_0x3ade27['id']),_0x219fa4=''+(_0x3ade27[_0x215387(0x1c9)]||_0x2be019['flowName'])+(_0x3ade27['id']?'\x20(id='+_0x3ade27['id']+')':'');return{'ok':!![],'data':{'operation':_0x215387(0x1ce),'selector':flowSelector(_0x18b6f6['appCode'],_0x3ade27['id'],_0x3ade27),'before':null,'after':_0x3ade27,'flowUrl':_0x452bd6,'dryRun':![],'backend':{'method':'POST','path':FLOW_PATHS['create']},'warnings':_0x4bd5da},'message':'Created\x20flow\x20'+_0x219fa4+_0x215387(0x1d6)+_0x452bd6};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a117_0x2df465=a117_0x3e67;(function(_0x4a230b,_0x67d18f){const _0x5a9f67=a117_0x3e67,_0x42c160=_0x4a230b();while(!![]){try{const _0x382f51=-parseInt(_0x5a9f67(0x161))/0x1+parseInt(_0x5a9f67(0x16b))/0x2*(-parseInt(_0x5a9f67(0x170))/0x3)+-parseInt(_0x5a9f67(0x179))/0x4+-parseInt(_0x5a9f67(0x16f))/0x5+parseInt(_0x5a9f67(0x175))/0x6+-parseInt(_0x5a9f67(0x16e))/0x7+-parseInt(_0x5a9f67(0x17b))/0x8*(-parseInt(_0x5a9f67(0x173))/0x9);if(_0x382f51===_0x67d18f)break;else _0x42c160['push'](_0x42c160['shift']());}catch(_0x399171){_0x42c160['push'](_0x42c160['shift']());}}}(a117_0x387c,0x9b928));import{mkdir,stat}from'node:fs/promises';import{dirname,resolve}from'node:path';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{getFlowDefinition}from'../../core/api-client.js';import{writeNormalizedFlowConfig}from'../../core/flow-config.js';function a117_0x3e67(_0x454b13,_0x160653){_0x454b13=_0x454b13-0x15f;const _0x387ca8=a117_0x387c();let _0x3e6783=_0x387ca8[_0x454b13];return _0x3e6783;}import{CliErrors}from'../../errors.js';function a117_0x387c(){const _0x4c1b90=['ENOENT','483672cIVwXU','Wrote\x20FlowConfig\x20for\x20','EEXIST','force','output','read','bool','Pass\x20--force\x20to\x20overwrite\x20it.','flowName','appCode','20zZAKVE','flowCode','trim','7048146JtiFpa','4748400nkhxAw','24657NKoiZu','path','warnings','560313MjoVvV','Get\x20one\x20design-time\x20flow\x20definition','3009282GJPday','\x20to\x20','boolean','config','2068040JZCvzM','code','408UgGATO','Write\x20a\x20portable\x20normalized\x20FlowConfig\x20JSON\x20file','FlowConfig\x20output\x20already\x20exists:\x20'];a117_0x387c=function(){return _0x4c1b90;};return a117_0x387c();}import{FLOW_ID_FLAG,flowDefinitionToConfig,readFlowId}from'../../commands/flow/shared.js';export const flowDetail={'service':'flow','command':'detail','description':a117_0x2df465(0x174),'risk':a117_0x2df465(0x166),'flags':[FLOW_ID_FLAG,{'name':'output','type':'string','description':a117_0x2df465(0x17c)},{'name':a117_0x2df465(0x164),'type':a117_0x2df465(0x177),'description':'Overwrite\x20an\x20existing\x20output\x20file'},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x1bcc90){readFlowId(_0x1bcc90);},async 'execute'(_0x514efb){const _0x50065d=a117_0x2df465,_0x52f9e9=readFlowId(_0x514efb),_0x444215=_0x514efb['str'](_0x50065d(0x165))[_0x50065d(0x16d)](),_0x2a65ea=_0x444215?resolve(_0x444215):undefined;if(_0x2a65ea&&!_0x514efb[_0x50065d(0x167)](_0x50065d(0x164))&&await fileExists(_0x2a65ea))throw CliErrors['validation'](_0x50065d(0x15f)+_0x2a65ea,_0x50065d(0x168));const _0x920afb=await getFlowDefinition(_0x514efb[_0x50065d(0x16a)],_0x52f9e9);let _0x6e0282;if(_0x2a65ea){const _0x4b9acc=flowDefinitionToConfig(_0x920afb);await mkdir(dirname(_0x2a65ea),{'recursive':!![]});try{await writeNormalizedFlowConfig(_0x2a65ea,_0x4b9acc[_0x50065d(0x178)],{'overwrite':_0x514efb[_0x50065d(0x167)](_0x50065d(0x164))});}catch(_0x1546d5){if(isAlreadyExistsError(_0x1546d5))throw CliErrors['validation'](_0x50065d(0x15f)+_0x2a65ea,_0x50065d(0x168));throw _0x1546d5;}_0x6e0282={'path':_0x2a65ea,'warnings':_0x4b9acc[_0x50065d(0x172)]};}return{'ok':!![],'data':{'flow':_0x920afb,..._0x6e0282?{'output':_0x6e0282}:{}},'message':_0x6e0282?_0x50065d(0x162)+(_0x920afb[_0x50065d(0x169)]||_0x920afb[_0x50065d(0x16c)]||_0x52f9e9)+_0x50065d(0x176)+_0x6e0282[_0x50065d(0x171)]:'Flow\x20'+(_0x920afb[_0x50065d(0x169)]||_0x920afb['flowCode']||_0x52f9e9)};}};async function fileExists(_0x34d897){try{return await stat(_0x34d897),!![];}catch(_0x584334){return!isNotFoundError(_0x584334);}}function isNotFoundError(_0x2d5247){const _0x2b6acf=a117_0x2df465;return _0x2d5247?.['code']===_0x2b6acf(0x160);}function isAlreadyExistsError(_0x597d18){const _0x4904c6=a117_0x2df465;return _0x597d18?.[_0x4904c6(0x17a)]===_0x4904c6(0x163);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xe26f7e,_0x54a2ad){const _0x3f1ae8=a118_0x4e08,_0x1cc081=_0xe26f7e();while(!![]){try{const _0x1f8a69=-parseInt(_0x3f1ae8(0x1a4))/0x1+-parseInt(_0x3f1ae8(0x1a0))/0x2+parseInt(_0x3f1ae8(0x1a1))/0x3+parseInt(_0x3f1ae8(0x1a2))/0x4+-parseInt(_0x3f1ae8(0x19f))/0x5+-parseInt(_0x3f1ae8(0x19d))/0x6+-parseInt(_0x3f1ae8(0x19e))/0x7*(-parseInt(_0x3f1ae8(0x1a3))/0x8);if(_0x1f8a69===_0x54a2ad)break;else _0x1cc081['push'](_0x1cc081['shift']());}catch(_0x5928fc){_0x1cc081['push'](_0x1cc081['shift']());}}}(a118_0x1bc4,0xa6770));import{flowValidate}from'../../commands/flow/validate.js';function a118_0x1bc4(){const _0x228099=['250004mcmLwx','2746617voaSHe','2554092SinxkF','7704408haNOXW','761611KdCuAv','491742zoSVQV','7aaPAjj','4333515RlFmCf'];a118_0x1bc4=function(){return _0x228099;};return a118_0x1bc4();}import{flowList}from'../../commands/flow/list.js';import{flowDetail}from'../../commands/flow/detail.js';import{flowCreate}from'../../commands/flow/create.js';function a118_0x4e08(_0x15c08b,_0x35ddb5){_0x15c08b=_0x15c08b-0x19d;const _0x1bc453=a118_0x1bc4();let _0x4e0805=_0x1bc453[_0x15c08b];return _0x4e0805;}import{flowUpdate}from'../../commands/flow/update.js';import{flowPublish}from'../../commands/flow/publish.js';import{flowRuntimeRoleList}from'../../commands/flow/runtime-role-list.js';import{flowRuntimeUserSearch}from'../../commands/flow/runtime-user-search.js';import{flowRuntimeRoleUserList}from'../../commands/flow/runtime-role-user-list.js';export const flowDefinitions=[flowValidate,flowList,flowDetail,flowCreate,flowUpdate,flowPublish,flowRuntimeRoleList,flowRuntimeUserSearch,flowRuntimeRoleUserList];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a119_0x26fe07=a119_0x1cd7;(function(_0x1d62e0,_0x48703c){const _0x475341=a119_0x1cd7,_0x827ac7=_0x1d62e0();while(!![]){try{const _0x4d4ce7=-parseInt(_0x475341(0x137))/0x1+-parseInt(_0x475341(0x13b))/0x2+-parseInt(_0x475341(0x12f))/0x3*(parseInt(_0x475341(0x146))/0x4)+-parseInt(_0x475341(0x136))/0x5*(parseInt(_0x475341(0x145))/0x6)+-parseInt(_0x475341(0x129))/0x7+-parseInt(_0x475341(0x135))/0x8+parseInt(_0x475341(0x128))/0x9;if(_0x4d4ce7===_0x48703c)break;else _0x827ac7['push'](_0x827ac7['shift']());}catch(_0x41e270){_0x827ac7['push'](_0x827ac7['shift']());}}}(a119_0x1e87,0x5c97c));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a119_0x1e87(){const _0x62c092=['published','\x20flow\x20definition(s)','Filter\x20by\x20dataset\x20code','list','appCode','--page\x20must\x20be\x20a\x20positive\x20integer.','144VmpcSj','188giMccA','read','length','page-size','Page\x20number\x20(1-based)','number','flow-type','20176047kcvOeX','2199848xUBQZp','flow-status','flow','isSafeInteger','flow-code','Filter\x20by\x20flow\x20type','23097DjrOmW','page','string','flow-name','Filter\x20by\x20flow\x20name','Filter\x20by\x20exact\x20server-generated\x20flow\x20code','189984nnbxSz','48100uZeIpJ','399086KakmXx','num','dataset-code','List\x20design-time\x20flow\x20definitions\x20for\x20the\x20current\x20app','1065384OMjAFA','Filter\x20by\x20flow\x20status','str','validation'];a119_0x1e87=function(){return _0x62c092;};return a119_0x1e87();}import{listFlowDefinitions}from'../../core/api-client.js';function a119_0x1cd7(_0x59a17b,_0x236cf0){_0x59a17b=_0x59a17b-0x122;const _0x1e8786=a119_0x1e87();let _0x1cd78f=_0x1e8786[_0x59a17b];return _0x1cd78f;}import{CliErrors}from'../../errors.js';const FLOW_STATUSES=['draft',a119_0x26fe07(0x13f)];export const flowList={'service':a119_0x26fe07(0x12b),'command':a119_0x26fe07(0x142),'description':a119_0x26fe07(0x13a),'risk':a119_0x26fe07(0x122),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a119_0x26fe07(0x12d),'type':a119_0x26fe07(0x131),'description':a119_0x26fe07(0x134)},{'name':a119_0x26fe07(0x132),'type':a119_0x26fe07(0x131),'description':a119_0x26fe07(0x133)},{'name':a119_0x26fe07(0x12a),'type':a119_0x26fe07(0x131),'description':a119_0x26fe07(0x13c),'enum':FLOW_STATUSES},{'name':a119_0x26fe07(0x139),'type':a119_0x26fe07(0x131),'description':a119_0x26fe07(0x141)},{'name':a119_0x26fe07(0x127),'type':'string','description':a119_0x26fe07(0x12e)},{'name':a119_0x26fe07(0x130),'type':'number','description':a119_0x26fe07(0x125),'default':0x1},{'name':a119_0x26fe07(0x124),'type':a119_0x26fe07(0x126),'description':'Page\x20size','default':0x14}],async 'validate'(_0x553700){const _0x302673=a119_0x26fe07,_0x23dafb=_0x553700[_0x302673(0x138)]('page',0x1),_0x44d3cf=_0x553700['num'](_0x302673(0x124),0x14);if(!Number[_0x302673(0x12c)](_0x23dafb)||_0x23dafb<0x1)throw CliErrors['validation'](_0x302673(0x144));if(!Number['isSafeInteger'](_0x44d3cf)||_0x44d3cf<0x1)throw CliErrors[_0x302673(0x13e)]('--page-size\x20must\x20be\x20a\x20positive\x20integer.');},async 'execute'(_0x418280){const _0x4dbec1=a119_0x26fe07,{items:_0x3adc0c,paging:_0x2813c1}=await listFlowDefinitions(_0x418280[_0x4dbec1(0x143)],{'flowCode':optionalString(_0x418280[_0x4dbec1(0x13d)](_0x4dbec1(0x12d))),'flowName':optionalString(_0x418280[_0x4dbec1(0x13d)]('flow-name')),'flowStatus':optionalString(_0x418280[_0x4dbec1(0x13d)](_0x4dbec1(0x12a))),'datasetCode':optionalString(_0x418280[_0x4dbec1(0x13d)]('dataset-code')),'flowType':optionalString(_0x418280[_0x4dbec1(0x13d)](_0x4dbec1(0x127))),'pageNum':_0x418280['num'](_0x4dbec1(0x130),0x1),'pageSize':_0x418280[_0x4dbec1(0x138)](_0x4dbec1(0x124),0x14)});return{'ok':!![],'data':{'appCode':_0x418280['appCode'],'flows':_0x3adc0c,'paging':_0x2813c1},'message':'Found\x20'+_0x3adc0c[_0x4dbec1(0x123)]+_0x4dbec1(0x140)};}};function optionalString(_0x60ca7f){const _0x53d0f1=_0x60ca7f['trim']();return _0x53d0f1||undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a120_0x2bd062=a120_0x3492;(function(_0x376add,_0x131f2b){const _0x8e9808=a120_0x3492,_0xd806d2=_0x376add();while(!![]){try{const _0x59305e=parseInt(_0x8e9808(0x7a))/0x1*(parseInt(_0x8e9808(0x79))/0x2)+-parseInt(_0x8e9808(0x74))/0x3*(parseInt(_0x8e9808(0x6f))/0x4)+parseInt(_0x8e9808(0x77))/0x5+-parseInt(_0x8e9808(0x7b))/0x6*(-parseInt(_0x8e9808(0x6d))/0x7)+parseInt(_0x8e9808(0x71))/0x8+parseInt(_0x8e9808(0x70))/0x9+parseInt(_0x8e9808(0x76))/0xa*(-parseInt(_0x8e9808(0x75))/0xb);if(_0x59305e===_0x131f2b)break;else _0xd806d2['push'](_0xd806d2['shift']());}catch(_0x5a52b9){_0xd806d2['push'](_0xd806d2['shift']());}}}(a120_0x31b7,0x547a8));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a120_0x3492(_0x26b0f7,_0xa8354b){_0x26b0f7=_0x26b0f7-0x6d;const _0x31b724=a120_0x31b7();let _0x349218=_0x31b724[_0x26b0f7];return _0x349218;}import{publishFlowDefinition}from'../../core/api-client.js';function a120_0x31b7(){const _0x2f1e0f=['177352qpwZRE','appCode','36BNetbN','2321496SzOZzM','1195256GlIZSv','Published\x20flow\x20','.\x20Flow\x20URL:\x20','103665wZMjcz','10444753cNTGJR','10mVuEol','2910945mVHdTq','flow','566330jzxkhk','2lTTtFU','12faUXhf','Publish\x20the\x20current\x20flow\x20definition\x20draft','publish','flowName','flowCode','POST'];a120_0x31b7=function(){return _0x2f1e0f;};return a120_0x31b7();}import{FLOW_ID_FLAG,FLOW_PATHS,buildFlowUrl,buildFlowIdDryRun,flowSelector,readFlowId}from'../../commands/flow/shared.js';export const flowPublish={'service':a120_0x2bd062(0x78),'command':a120_0x2bd062(0x7d),'description':a120_0x2bd062(0x7c),'risk':'write','flags':[FLOW_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x688eb2){readFlowId(_0x688eb2);},async 'dryRun'(_0x5e1746){const _0x575c60=a120_0x2bd062,_0x5a8f9e=readFlowId(_0x5e1746);return buildFlowIdDryRun(_0x575c60(0x7d),FLOW_PATHS[_0x575c60(0x7d)],_0x5e1746[_0x575c60(0x6e)],_0x5a8f9e,{'id':_0x5a8f9e,'flowStatus':'published'});},async 'execute'(_0x4545e2){const _0x3853f3=a120_0x2bd062,_0xd25bd6=readFlowId(_0x4545e2),_0x17e677=await publishFlowDefinition(_0x4545e2['appCode'],_0xd25bd6),_0x1a57c4=buildFlowUrl(_0x4545e2[_0x3853f3(0x6e)],_0xd25bd6);return{'ok':!![],'data':{'operation':_0x3853f3(0x7d),'selector':flowSelector(_0x4545e2[_0x3853f3(0x6e)],_0xd25bd6,_0x17e677),'before':null,'after':_0x17e677,'flowUrl':_0x1a57c4,'dryRun':![],'backend':{'method':_0x3853f3(0x80),'path':FLOW_PATHS[_0x3853f3(0x7d)]},'warnings':[]},'message':_0x3853f3(0x72)+(_0x17e677[_0x3853f3(0x7e)]||_0x17e677[_0x3853f3(0x7f)]||_0xd25bd6)+_0x3853f3(0x73)+_0x1a57c4};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a121_0x126bbb=a121_0xc578;(function(_0x3b45cf,_0x5633d0){const _0x103f89=a121_0xc578,_0x24ccad=_0x3b45cf();while(!![]){try{const _0x15f637=-parseInt(_0x103f89(0x14e))/0x1+parseInt(_0x103f89(0x13d))/0x2+-parseInt(_0x103f89(0x155))/0x3+parseInt(_0x103f89(0x14b))/0x4+parseInt(_0x103f89(0x140))/0x5*(-parseInt(_0x103f89(0x162))/0x6)+-parseInt(_0x103f89(0x163))/0x7+parseInt(_0x103f89(0x14d))/0x8*(parseInt(_0x103f89(0x157))/0x9);if(_0x15f637===_0x5633d0)break;else _0x24ccad['push'](_0x24ccad['shift']());}catch(_0x3f1440){_0x24ccad['push'](_0x24ccad['shift']());}}}(a121_0x4c1c,0x542a5));import{CliErrors}from'../../errors.js';export const FLOW_RUNTIME_PAGE_FLAG={'name':a121_0x126bbb(0x147),'type':'number','description':a121_0x126bbb(0x153),'default':0x1};export const FLOW_RUNTIME_PAGE_SIZE_FLAG={'name':a121_0x126bbb(0x15d),'type':a121_0x126bbb(0x15b),'description':a121_0x126bbb(0x15f),'default':0x14};export const FLOW_RUNTIME_ROLE_REF_FLAG={'name':a121_0x126bbb(0x15a),'type':a121_0x126bbb(0x14c),'required':!![],'description':a121_0x126bbb(0x144)};export function readRuntimePagination(_0x5ea756){const _0x16d828=a121_0x126bbb,_0x587ab7=_0x5ea756['num']('page',0x1),_0x408f8f=_0x5ea756['num'](_0x16d828(0x15d),0x14);if(!Number[_0x16d828(0x13e)](_0x587ab7)||_0x587ab7<0x1)throw CliErrors[_0x16d828(0x15e)](_0x16d828(0x158));if(!Number[_0x16d828(0x13e)](_0x408f8f)||_0x408f8f<0x1||_0x408f8f>0x64)throw CliErrors[_0x16d828(0x15e)](_0x16d828(0x151));return{'page':_0x587ab7,'pageSize':_0x408f8f};}export function paginateRuntimeItems(_0x5a6017,_0x2d8c70,_0x5a09b6){const _0x562469=a121_0x126bbb,_0x1bdd91=(_0x2d8c70-0x1)*_0x5a09b6;return{'items':_0x5a6017['slice'](_0x1bdd91,_0x1bdd91+_0x5a09b6),'paging':{'currentPage':_0x2d8c70,'pageSize':_0x5a09b6,'totalCount':_0x5a6017[_0x562469(0x141)]}};}export function projectRuntimeRole(_0x5929d7){const _0x173fec=a121_0x126bbb;return{'id':_0x5929d7['id'],'roleName':_0x5929d7[_0x173fec(0x146)]??null,'roleType':_0x5929d7[_0x173fec(0x148)]??null,'remark':_0x5929d7[_0x173fec(0x150)]??null,'userCount':_0x5929d7['userCount']??0x0,'permitCount':_0x5929d7[_0x173fec(0x13c)]??0x0};}function a121_0x4c1c(){const _0x918c24=['remark','--page-size\x20must\x20be\x20an\x20integer\x20between\x201\x20and\x20100.','userName','Page\x20index\x20(1-based)','map','2005941mvzHdi','str','963TMhJzu','--page\x20must\x20be\x20a\x20positive\x20integer.','username','role','number','join','page-size','validation','Page\x20size\x20(1-100)','\x22\x20is\x20ambiguous\x20(ids:\x20','Disambiguate\x20with\x20--role\x20<id>.','204534pAbZWV','3898944OXhBTD','\x22\x20not\x20found\x20in\x20app\x20','userId','permitCount','1222006PxUVPn','isSafeInteger','filter','75kcTQOz','length','Runtime\x20role\x20\x22','flagMissing','Runtime\x20role\x20id\x20or\x20exact\x20role\x20name','status','roleName','page','roleType','Run\x20`flow\x20runtime-role-list`\x20to\x20see\x20runtime\x20roles.','trim','2594532thAbVD','string','93872fuJgyW','433459grEZnR','test'];a121_0x4c1c=function(){return _0x918c24;};return a121_0x4c1c();}function a121_0xc578(_0x55323e,_0x25c2cc){_0x55323e=_0x55323e-0x13b;const _0x4c1cd0=a121_0x4c1c();let _0xc5780=_0x4c1cd0[_0x55323e];return _0xc5780;}export function projectRuntimeUser(_0x28ce67){const _0xec8470=a121_0x126bbb,_0x26d627=normalizeRuntimeUserId(_0x28ce67['code']);if(!_0x26d627)return null;return{'userId':_0x26d627,'username':_0x28ce67[_0xec8470(0x152)]??null,'nickname':_0x28ce67['nickName']??null,'displayName':_0x28ce67['displayName']??null,'email':_0x28ce67['email']??null,'status':_0x28ce67[_0xec8470(0x145)]??null};}export function projectRuntimeRoleMember(_0x31e1b0){const _0xe0406d=a121_0x126bbb,_0x1933ea=normalizeRuntimeUserId(_0x31e1b0[_0xe0406d(0x13b)]);if(!_0x1933ea)return null;return{'userId':_0x1933ea,'username':_0x31e1b0[_0xe0406d(0x159)]??null,'nickname':_0x31e1b0['nickname']??null};}export function readRuntimeRoleRef(_0x5e1c54){const _0x2bee29=a121_0x126bbb,_0x5b9dcd=_0x5e1c54[_0x2bee29(0x156)](_0x2bee29(0x15a))[_0x2bee29(0x14a)]();if(!_0x5b9dcd)throw CliErrors[_0x2bee29(0x143)](_0x2bee29(0x15a),'Pass\x20--role\x20<id|name>.');return _0x5b9dcd;}export function resolveRuntimeRoleGroup(_0x71d3b6,_0x3eede2,_0x321bf6){const _0x2a4bdd=a121_0x126bbb,_0xf0095b=/^\d+$/[_0x2a4bdd(0x14f)](_0x3eede2)?_0x321bf6[_0x2a4bdd(0x13f)](_0xe4cb30=>_0xe4cb30['id']===Number(_0x3eede2)):_0x321bf6[_0x2a4bdd(0x13f)](_0x1c70cb=>_0x1c70cb[_0x2a4bdd(0x146)]===_0x3eede2);if(_0xf0095b[_0x2a4bdd(0x141)]===0x0)throw CliErrors[_0x2a4bdd(0x15e)](_0x2a4bdd(0x142)+_0x3eede2+_0x2a4bdd(0x164)+_0x71d3b6+'.',_0x2a4bdd(0x149));if(_0xf0095b[_0x2a4bdd(0x141)]>0x1){const _0x4c5610=_0xf0095b[_0x2a4bdd(0x154)](_0x9be59f=>_0x9be59f['id'])[_0x2a4bdd(0x15c)](',\x20');throw CliErrors[_0x2a4bdd(0x15e)]('Runtime\x20role\x20name\x20\x22'+_0x3eede2+_0x2a4bdd(0x160)+_0x4c5610+').',_0x2a4bdd(0x161));}return _0xf0095b[0x0];}function normalizeRuntimeUserId(_0x57612a){const _0x4657b6=a121_0x126bbb;if(typeof _0x57612a!==_0x4657b6(0x14c)&&typeof _0x57612a!=='number')return null;const _0x551419=String(_0x57612a)[_0x4657b6(0x14a)]();return _0x551419||null;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a122_0x27ce(){const _0xa3ccd0=['1298725NTPVjK','List\x20runtime\x20app\x20roles\x20for\x20approval\x20assignee\x20selection','692141DyJVqI','runtime-role-list','string','flow','1550244mtUGUk','164554jRfkaC','6782810PZFMUf','28833827nnUbMC','2736szJXlU','runtime','Found\x20','keyword','14464oygSmT','Optional\x20runtime\x20role-name\x20keyword','21vcIUpI','21YAADrx','4dmMncM'];a122_0x27ce=function(){return _0xa3ccd0;};return a122_0x27ce();}const a122_0x90e6f9=a122_0x5681;(function(_0x4101d8,_0x464ed5){const _0x32b12f=a122_0x5681,_0x24088f=_0x4101d8();while(!![]){try{const _0x44c937=parseInt(_0x32b12f(0x1da))/0x1+-parseInt(_0x32b12f(0x1df))/0x2*(parseInt(_0x32b12f(0x1d6))/0x3)+parseInt(_0x32b12f(0x1d7))/0x4*(-parseInt(_0x32b12f(0x1d8))/0x5)+parseInt(_0x32b12f(0x1de))/0x6*(-parseInt(_0x32b12f(0x1d5))/0x7)+-parseInt(_0x32b12f(0x1d3))/0x8*(parseInt(_0x32b12f(0x1e2))/0x9)+-parseInt(_0x32b12f(0x1e0))/0xa+parseInt(_0x32b12f(0x1e1))/0xb;if(_0x44c937===_0x464ed5)break;else _0x24088f['push'](_0x24088f['shift']());}catch(_0x10a63d){_0x24088f['push'](_0x24088f['shift']());}}}(a122_0x27ce,0x73e37));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_0x5681(_0x7516ef,_0x1d0dd5){_0x7516ef=_0x7516ef-0x1d3;const _0x27ceb0=a122_0x27ce();let _0x56815b=_0x27ceb0[_0x7516ef];return _0x56815b;}export const flowRuntimeRoleList={'service':a122_0x90e6f9(0x1dd),'command':a122_0x90e6f9(0x1db),'description':a122_0x90e6f9(0x1d9),'risk':'read','flags':[{'name':a122_0x90e6f9(0x1e5),'type':a122_0x90e6f9(0x1dc),'description':a122_0x90e6f9(0x1d4)},FLOW_RUNTIME_PAGE_FLAG,FLOW_RUNTIME_PAGE_SIZE_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x38b16c){readRuntimePagination(_0x38b16c);},async 'execute'(_0x234f8c){const _0x4fe16d=a122_0x90e6f9,{page:_0x12bc14,pageSize:_0xed10c9}=readRuntimePagination(_0x234f8c),_0x2f338d=_0x234f8c['str'](_0x4fe16d(0x1e5))['trim'](),{items:_0x3b3e18,paging:_0x20b91e}=await listApprovalRuntimeRoles(_0x234f8c['appCode'],{..._0x2f338d?{'roleName':_0x2f338d}:{},'currentPage':_0x12bc14,'pageSize':_0xed10c9}),_0x19fd2c=_0x3b3e18['map'](projectRuntimeRole);return{'ok':!![],'data':{'appCode':_0x234f8c['appCode'],'scope':_0x4fe16d(0x1e3),..._0x2f338d?{'keyword':_0x2f338d}:{},'roles':_0x19fd2c,'paging':_0x20b91e},'message':_0x4fe16d(0x1e4)+_0x19fd2c['length']+'\x20runtime\x20role(s)'};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a123_0x3a659b=a123_0x3d00;function a123_0xfca6(){const _0x5b5b15=['filter','List\x20members\x20of\x20one\x20runtime\x20app\x20role\x20for\x20approval\x20verification','userList','55236590zpFWuY','roleName','14669haSANT','202sMJEjV','\x20runtime\x20member(s)\x20in\x20role\x20','3038922QBsEQJ','appCode','182KNXeEG','3423582weSaou','paging','read','runtime','roleType','runtime-role-user-list','4012716cdRPNm','9UCxKPh','flow','329768EWOuCV','8169055rSfXNn','length'];a123_0xfca6=function(){return _0x5b5b15;};return a123_0xfca6();}(function(_0x4728f2,_0x258d69){const _0x159845=a123_0x3d00,_0x2e788a=_0x4728f2();while(!![]){try{const _0x29a8bf=parseInt(_0x159845(0xe2))/0x1*(-parseInt(_0x159845(0xe3))/0x2)+-parseInt(_0x159845(0xe5))/0x3+-parseInt(_0x159845(0xd7))/0x4+-parseInt(_0x159845(0xdb))/0x5+-parseInt(_0x159845(0xe8))/0x6+-parseInt(_0x159845(0xe7))/0x7*(-parseInt(_0x159845(0xda))/0x8)+parseInt(_0x159845(0xd8))/0x9*(parseInt(_0x159845(0xe0))/0xa);if(_0x29a8bf===_0x258d69)break;else _0x2e788a['push'](_0x2e788a['shift']());}catch(_0x43944d){_0x2e788a['push'](_0x2e788a['shift']());}}}(a123_0xfca6,0xda15b));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{FLOW_RUNTIME_PAGE_FLAG,FLOW_RUNTIME_PAGE_SIZE_FLAG,FLOW_RUNTIME_ROLE_REF_FLAG,paginateRuntimeItems,projectRuntimeRoleMember,readRuntimePagination,readRuntimeRoleRef,resolveRuntimeRoleGroup}from'../../commands/flow/runtime-resources-shared.js';function a123_0x3d00(_0x59aaa1,_0x413112){_0x59aaa1=_0x59aaa1-0xd7;const _0xfca61a=a123_0xfca6();let _0x3d0023=_0xfca61a[_0x59aaa1];return _0x3d0023;}import{listApprovalRuntimeRoleUsers}from'../../core/api-client.js';export const flowRuntimeRoleUserList={'service':a123_0x3a659b(0xd9),'command':a123_0x3a659b(0xed),'description':a123_0x3a659b(0xde),'risk':a123_0x3a659b(0xea),'flags':[FLOW_RUNTIME_ROLE_REF_FLAG,FLOW_RUNTIME_PAGE_FLAG,FLOW_RUNTIME_PAGE_SIZE_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x3f2bb6){readRuntimeRoleRef(_0x3f2bb6),readRuntimePagination(_0x3f2bb6);},async 'execute'(_0x177269){const _0x575fdc=a123_0x3a659b,_0x31f2d9=resolveRuntimeRoleGroup(_0x177269[_0x575fdc(0xe6)],readRuntimeRoleRef(_0x177269),await listApprovalRuntimeRoleUsers(_0x177269[_0x575fdc(0xe6)])),_0x41f345=(_0x31f2d9[_0x575fdc(0xdf)]??[])['map'](projectRuntimeRoleMember)[_0x575fdc(0xdd)](_0x5345f0=>_0x5345f0!==null),{page:_0xe2c244,pageSize:_0xfdbff8}=readRuntimePagination(_0x177269),_0x4ceeb6=paginateRuntimeItems(_0x41f345,_0xe2c244,_0xfdbff8);return{'ok':!![],'data':{'appCode':_0x177269[_0x575fdc(0xe6)],'scope':_0x575fdc(0xeb),'role':{'id':_0x31f2d9['id'],'roleName':_0x31f2d9[_0x575fdc(0xe1)]??null,'roleType':_0x31f2d9[_0x575fdc(0xec)]??null},'users':_0x4ceeb6['items'],'paging':_0x4ceeb6[_0x575fdc(0xe9)]},'message':'Found\x20'+_0x41f345[_0x575fdc(0xdc)]+_0x575fdc(0xe4)+(_0x31f2d9[_0x575fdc(0xe1)]??_0x31f2d9['id'])};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a124_0x164a(){const _0xf83617=['flow','9657603jJRXOX','read','string','Search\x20runtime\x20app\x20users\x20for\x20approval\x20assignee\x20selection','\x20runtime\x20app\x20user(s)\x20matching\x20\x22','5gRwCQy','trim','23754Rntvlz','8qaYpxn','length','toLowerCase','11622779aFVIOa','runtime','Found\x20','appCode','118276XnbgXP','6193290PFzUci','runtime-user-search','filter','346HCsgsD','User\x20id,\x20username,\x20nickname,\x20display\x20name,\x20or\x20email\x20keyword','str','keyword','items','flagMissing','11GRYKlm','displayName','nickName','code','313953GIDPaV','includes','some','email','Pass\x20--keyword\x20<text>.','29627170vbruhm'];a124_0x164a=function(){return _0xf83617;};return a124_0x164a();}const a124_0x341875=a124_0x288b;(function(_0x20e75d,_0x2ee8bb){const _0x299ed3=a124_0x288b,_0x23dc96=_0x20e75d();while(!![]){try{const _0x2583d7=parseInt(_0x299ed3(0xc4))/0x1+parseInt(_0x299ed3(0xde))/0x2*(parseInt(_0x299ed3(0xd2))/0x3)+-parseInt(_0x299ed3(0xda))/0x4*(parseInt(_0x299ed3(0xd0))/0x5)+-parseInt(_0x299ed3(0xdb))/0x6+-parseInt(_0x299ed3(0xd6))/0x7+parseInt(_0x299ed3(0xd3))/0x8*(-parseInt(_0x299ed3(0xcb))/0x9)+-parseInt(_0x299ed3(0xc9))/0xa*(-parseInt(_0x299ed3(0xc0))/0xb);if(_0x2583d7===_0x2ee8bb)break;else _0x23dc96['push'](_0x23dc96['shift']());}catch(_0x251d40){_0x23dc96['push'](_0x23dc96['shift']());}}}(a124_0x164a,0xcfd24));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a124_0x288b(_0x25875a,_0x3d4bc1){_0x25875a=_0x25875a-0xc0;const _0x164aff=a124_0x164a();let _0x288ba0=_0x164aff[_0x25875a];return _0x288ba0;}import{FLOW_RUNTIME_PAGE_FLAG,FLOW_RUNTIME_PAGE_SIZE_FLAG,paginateRuntimeItems,projectRuntimeUser,readRuntimePagination}from'../../commands/flow/runtime-resources-shared.js';import{listApprovalRuntimeUsers}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';export const flowRuntimeUserSearch={'service':a124_0x341875(0xca),'command':a124_0x341875(0xdc),'description':a124_0x341875(0xce),'risk':a124_0x341875(0xcc),'flags':[{'name':a124_0x341875(0xe1),'type':a124_0x341875(0xcd),'required':!![],'description':a124_0x341875(0xdf)},FLOW_RUNTIME_PAGE_FLAG,FLOW_RUNTIME_PAGE_SIZE_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x289d8f){const _0x4a9d3e=a124_0x341875;if(!_0x289d8f[_0x4a9d3e(0xe0)]('keyword')[_0x4a9d3e(0xd1)]())throw CliErrors[_0x4a9d3e(0xe3)]('keyword',_0x4a9d3e(0xc8));readRuntimePagination(_0x289d8f);},async 'execute'(_0x42f7ee){const _0x2af10e=a124_0x341875,_0x58fb5b=_0x42f7ee[_0x2af10e(0xe0)](_0x2af10e(0xe1))[_0x2af10e(0xd1)](),_0x356f14=_0x58fb5b['toLowerCase'](),_0x4d4a12=(await listApprovalRuntimeUsers(_0x42f7ee[_0x2af10e(0xd9)]))[_0x2af10e(0xdd)](_0x1ce6ac=>[_0x1ce6ac[_0x2af10e(0xc3)],_0x1ce6ac['userName'],_0x1ce6ac[_0x2af10e(0xc2)],_0x1ce6ac[_0x2af10e(0xc1)],_0x1ce6ac[_0x2af10e(0xc7)]][_0x2af10e(0xc6)](_0x46fd16=>_0x46fd16!==null&&_0x46fd16!==undefined&&String(_0x46fd16)[_0x2af10e(0xd5)]()[_0x2af10e(0xc5)](_0x356f14)))['map'](projectRuntimeUser)[_0x2af10e(0xdd)](_0xaa2860=>_0xaa2860!==null),{page:_0x5ba6df,pageSize:_0x171834}=readRuntimePagination(_0x42f7ee),_0x44c390=paginateRuntimeItems(_0x4d4a12,_0x5ba6df,_0x171834);return{'ok':!![],'data':{'appCode':_0x42f7ee[_0x2af10e(0xd9)],'scope':_0x2af10e(0xd7),'keyword':_0x58fb5b,'users':_0x44c390[_0x2af10e(0xe2)],'paging':_0x44c390['paging']},'message':_0x2af10e(0xd8)+_0x4d4a12[_0x2af10e(0xd4)]+_0x2af10e(0xcf)+_0x58fb5b+'\x22'};}};
|