@lovrabet/rabetbase-cli 2.5.4-beta.2 → 2.5.4-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api/api-doc.js +1 -1
- package/lib/api/api-group.js +1 -1
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.js +1 -1
- package/lib/api/generate-sdk-config-file.js +1 -1
- package/lib/api/legacy-api-file.js +1 -1
- package/lib/api/model-registry-file.js +1 -1
- package/lib/api/model-registry-scaffold.js +1 -1
- package/lib/api/model-source.js +1 -1
- package/lib/auth/auth-server-ui.js +1 -1
- package/lib/auth/auth-server.js +1 -1
- package/lib/auth/constant.js +1 -1
- package/lib/auth/get-cookie.js +1 -1
- package/lib/auth/get-session-user.js +1 -1
- package/lib/auth/is-session-valid.js +1 -1
- package/lib/auth/login-success-html.js +1 -1
- package/lib/auth/logout.js +1 -1
- package/lib/cli-flags.js +1 -1
- package/lib/cli.js +1 -1
- package/lib/commands/api/generate.js +1 -1
- package/lib/commands/api/index.js +1 -1
- package/lib/commands/api/list.js +1 -1
- package/lib/commands/api/pull.js +1 -1
- package/lib/commands/api/shared.js +1 -1
- package/lib/commands/app/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/service.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/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.d.ts +2 -0
- package/lib/commands/user-account/feishu-bind.js +1 -0
- 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.d.ts +2 -0
- package/lib/core/api-client.js +1 -1
- package/lib/core/bff/config.js +1 -1
- package/lib/core/bff/file-system.js +1 -1
- package/lib/core/bff/hash.js +1 -1
- package/lib/core/bff/hook-directory.js +1 -1
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/cross-db-relation.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/flow-config.js +1 -1
- package/lib/core/instant-api-policy/config.js +1 -1
- package/lib/core/kb-search-client.js +1 -1
- package/lib/core/page/file-system.js +1 -1
- package/lib/core/page/hash.js +1 -1
- package/lib/core/page/lock.js +1 -1
- package/lib/core/page/lr-smart-jsx.js +1 -1
- package/lib/core/sql-index-auditor.js +1 -1
- package/lib/core/sql-sync/config.js +1 -1
- package/lib/core/sql-sync/file-system.js +1 -1
- package/lib/core/sql-sync/hash.js +1 -1
- package/lib/core/sql-sync/lock.js +1 -1
- package/lib/core/sql-sync/utils.js +1 -1
- package/lib/core/sql-validator.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/error-output.js +1 -1
- package/lib/framework/explicit-yes.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-alias.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/supported-flags.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/generated/official-routing.js +1 -1
- package/lib/generated/routing-contract.js +1 -1
- package/lib/help.js +1 -1
- package/lib/postinstall.js +1 -1
- package/lib/runtime/confirmation.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/skills/builtin-skill.js +1 -1
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/skill-presence.js +1 -1
- package/lib/telemetry/cli-command-trace.js +1 -1
- package/lib/telemetry/cli-help-trace.js +1 -1
- package/lib/telemetry/ensure-cli-otel-config.js +1 -1
- package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
- package/lib/telemetry/send-cli-trace-log.js +1 -1
- package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
- package/lib/utils/ai_config.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cdn-config.js +1 -1
- package/lib/utils/check-sdk-version.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/config.js +1 -1
- package/lib/utils/entity-with-id.js +1 -1
- package/lib/utils/file-utils.js +1 -1
- package/lib/utils/guides-cdn.js +1 -1
- package/lib/utils/http-client.js +1 -1
- package/lib/utils/is-non-interactive.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/sleep.js +1 -1
- package/lib/utils/template-replacer.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/with-active-cookie.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
- package/skills/rabetbase/SKILL.md +3 -2
- package/skills/rabetbase/references/rabetbase-user-account.md +20 -2
- package/skills/rabetbase.manifest.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a108_0x1671(){const _0x383eb2=['trim','username','password','Preview\x20the\x20merged\x20database\x20connection\x20update;\x20password\x20redacted','Current\x20or\x20replacement\x20password.\x20Required\x20when\x20the\x20stored\x20password\x20is\x20masked','12292aIrzwt','dburl','bool','dbname','has','524305XpwOuv','--password\x20must\x20contain\x20the\x20real\x20database\x20password,\x20not\x20a\x20masked\x20value.','1432767HzuOug','20VTRlNF','361264FUkKtx','update','2FipSeN','num','Update\x20a\x20database\x20connection\x20by\x20merging\x20supplied\x20fields\x20into\x20the\x20current\x20server\x20record.\x20A\x20masked\x20server\x20password\x20requires\x20explicit\x20--password','string','dbdesc','POST','1083712mdRHSP','New\x20description','******','The\x20server\x20returned\x20a\x20masked\x20database\x20password.\x20Pass\x20the\x20current\x20or\x20replacement\x20password\x20explicitly\x20with\x20--password\x20to\x20update\x20this\x20connection\x20safely.','dbDesc','1614FxefYy','validation','str','3600999dlNwZW','dbUrl','dbName','Updated\x20db\x20link\x20','New\x20username','New\x20host:port','/smartapi/dblink/update','dbParam','New\x20connection\x20parameter\x20string','651820mgqGBh','Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22','dbparam'];a108_0x1671=function(){return _0x383eb2;};return a108_0x1671();}const a108_0x4e7d63=a108_0x27a2;(function(_0x4943b3,_0x1c7aca){const _0xaaf005=a108_0x27a2,_0x27db00=_0x4943b3();while(!![]){try{const _0x975612=parseInt(_0xaaf005(0xc7))/0x1+-parseInt(_0xaaf005(0xc9))/0x2*(-parseInt(_0xaaf005(0xc5))/0x3)+-parseInt(_0xaaf005(0xc6))/0x4*(parseInt(_0xaaf005(0xed))/0x5)+-parseInt(_0xaaf005(0xd4))/0x6*(-parseInt(_0xaaf005(0xe8))/0x7)+-parseInt(_0xaaf005(0xcf))/0x8+-parseInt(_0xaaf005(0xd7))/0x9+parseInt(_0xaaf005(0xe0))/0xa;if(_0x975612===_0x1c7aca)break;else _0x27db00['push'](_0x27db00['shift']());}catch(_0x15405c){_0x27db00['push'](_0x27db00['shift']());}}}(a108_0x1671,0x4d467));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([a108_0x4e7d63(0xd1),'[redacted]']);function a108_0x27a2(_0x40a62f,_0x419a6b){_0x40a62f=_0x40a62f-0xc5;const _0x1671c7=a108_0x1671();let _0x27a251=_0x1671c7[_0x40a62f];return _0x27a251;}function mergeDbLinkUpdate(_0x29c9f9,_0x4ba9e7){const _0x2f8800=a108_0x4e7d63,_0x1a8ae3={..._0x29c9f9},_0xb09e5e=_0x4ba9e7[_0x2f8800(0xd6)]('password');if(_0xb09e5e&&MASKED_PASSWORD_VALUES[_0x2f8800(0xec)](_0xb09e5e))throw CliErrors[_0x2f8800(0xd5)](_0x2f8800(0xee));if(!_0xb09e5e&&MASKED_PASSWORD_VALUES[_0x2f8800(0xec)](String(_0x29c9f9['password']??'')))throw CliErrors[_0x2f8800(0xd5)](_0x2f8800(0xd2));const _0x1d6787=_0x4ba9e7[_0x2f8800(0xd6)](_0x2f8800(0xeb));if(_0x1d6787)_0x1a8ae3[_0x2f8800(0xd9)]=_0x1d6787;const _0x3d67df=_0x4ba9e7[_0x2f8800(0xd6)](_0x2f8800(0xe9));if(_0x3d67df)_0x1a8ae3[_0x2f8800(0xd8)]=_0x3d67df[_0x2f8800(0xe3)]();const _0x53b53d=_0x4ba9e7[_0x2f8800(0xd6)](_0x2f8800(0xe4));if(_0x53b53d)_0x1a8ae3[_0x2f8800(0xe4)]=_0x53b53d;if(_0xb09e5e)_0x1a8ae3['password']=_0xb09e5e;const _0x14bcce=_0x4ba9e7[_0x2f8800(0xd6)](_0x2f8800(0xe2));if(_0x14bcce)_0x1a8ae3[_0x2f8800(0xde)]=_0x14bcce;const _0x3b3f7a=_0x4ba9e7[_0x2f8800(0xd6)](_0x2f8800(0xcd));if(_0x3b3f7a)_0x1a8ae3[_0x2f8800(0xd3)]=_0x3b3f7a;return _0x1a8ae3;}export const dbUpdate={'service':'db','command':a108_0x4e7d63(0xc8),'description':a108_0x4e7d63(0xcb),'risk':'write','flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':'dbname','type':a108_0x4e7d63(0xcc),'description':'New\x20database\x20name'},{'name':'dburl','type':a108_0x4e7d63(0xcc),'description':a108_0x4e7d63(0xdc)},{'name':a108_0x4e7d63(0xe4),'type':a108_0x4e7d63(0xcc),'description':a108_0x4e7d63(0xdb)},{'name':a108_0x4e7d63(0xe5),'type':'string','description':a108_0x4e7d63(0xe7)},{'name':a108_0x4e7d63(0xe2),'type':a108_0x4e7d63(0xcc),'description':a108_0x4e7d63(0xdf)},{'name':a108_0x4e7d63(0xcd),'type':'string','description':a108_0x4e7d63(0xd0)},SKIP_CONNECTION_TEST_FLAG],async 'validate'(_0x2ca5d6){const _0x520529=a108_0x4e7d63,_0x2f1f71=_0x2ca5d6[_0x520529(0xd6)]('dburl');if(_0x2f1f71&&!validateDbUrl(_0x2f1f71[_0x520529(0xe3)]()))throw CliErrors[_0x520529(0xd5)](_0x520529(0xe1)+_0x2f1f71+'\x22');},async 'dryRun'(_0x17aabb){const _0x5cf03a=a108_0x4e7d63,_0x23d525=_0x17aabb[_0x5cf03a(0xca)]('id'),_0x19b23e=await getDbLinkInfo(_0x23d525),_0x232622=mergeDbLinkUpdate(_0x19b23e,_0x17aabb),_0x224ff7=sanitizeDbLinkForOutput(_0x232622);return{'method':_0x5cf03a(0xce),'url':_0x5cf03a(0xdd),'body':_0x224ff7,'description':_0x5cf03a(0xe6),'connectionPreflight':{'enabled':!_0x17aabb[_0x5cf03a(0xea)]('skip-connection-test'),'executed':![]}};},async 'execute'(_0x3c0782){const _0x724d6a=a108_0x4e7d63,_0x3fc913=_0x3c0782[_0x724d6a(0xca)]('id'),_0x2b70d3=await getDbLinkInfo(_0x3fc913),_0xa4e611=mergeDbLinkUpdate(_0x2b70d3,_0x3c0782);!_0x3c0782[_0x724d6a(0xea)]('skip-connection-test')&&await assertDbLinkConnectionPreflight(_0xa4e611);const {id:_0x47eff9,entity:_0x5d22a9}=normalizeEntityWithIdResponse(await updateDbLink(_0xa4e611));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x5d22a9),'message':_0x724d6a(0xda)+(_0x47eff9??_0x3fc913)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a109_0x9d81(_0x17de61,_0x251b47){_0x17de61=_0x17de61-0x1c0;const _0x57bb97=a109_0x57bb();let _0x9d8155=_0x57bb97[_0x17de61];return _0x9d8155;}(function(_0x51f6cf,_0x4b9410){const _0x3d466d=a109_0x9d81,_0xcc6c48=_0x51f6cf();while(!![]){try{const _0x4c500b=-parseInt(_0x3d466d(0x1c5))/0x1+-parseInt(_0x3d466d(0x1c1))/0x2+-parseInt(_0x3d466d(0x1c0))/0x3+parseInt(_0x3d466d(0x1c3))/0x4+-parseInt(_0x3d466d(0x1c6))/0x5+parseInt(_0x3d466d(0x1c4))/0x6+parseInt(_0x3d466d(0x1c2))/0x7;if(_0x4c500b===_0x4b9410)break;else _0xcc6c48['push'](_0xcc6c48['shift']());}catch(_0x336326){_0xcc6c48['push'](_0xcc6c48['shift']());}}}(a109_0x57bb,0x68530));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 a109_0x57bb(){const _0x92862=['1469262YcxMty','1223290OQxtSZ','16470160OyTdJf','2050376Vnceqn','1768896ibgqow','794512dEAzYi','4185335QYspPb'];a109_0x57bb=function(){return _0x92862;};return a109_0x57bb();}export const deploymentDefinitions=[deploymentSyncAll,deploymentSyncStatus,deploymentSyncJobs];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a110_0x350e19=a110_0x46ca;(function(_0x22aed,_0x30cf30){const _0x35cae5=a110_0x46ca,_0x5bc7c2=_0x22aed();while(!![]){try{const _0x1d499e=parseInt(_0x35cae5(0xfc))/0x1*(parseInt(_0x35cae5(0x107))/0x2)+parseInt(_0x35cae5(0xfe))/0x3+parseInt(_0x35cae5(0x113))/0x4+parseInt(_0x35cae5(0xfa))/0x5+-parseInt(_0x35cae5(0x10a))/0x6*(-parseInt(_0x35cae5(0x109))/0x7)+parseInt(_0x35cae5(0x10d))/0x8*(parseInt(_0x35cae5(0x110))/0x9)+-parseInt(_0x35cae5(0x106))/0xa;if(_0x1d499e===_0x30cf30)break;else _0x5bc7c2['push'](_0x5bc7c2['shift']());}catch(_0x1dd23c){_0x5bc7c2['push'](_0x5bc7c2['shift']());}}}(a110_0x2c5f,0xadcfd));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a110_0x2c5f(){const _0x221f83=['928TxJSiD','data','Would\x20submit\x20an\x20administrative\x20deployment\x20metadata\x20backfill\x20or\x20recovery\x20job.','27567sFWGOK','appCode','status','2772488QhDTjg','List\x20recent\x20deployment\x20sync\x20jobs\x20before\x20deciding\x20whether\x20to\x20submit\x20again.','Backfill\x20or\x20recover\x20all\x20server-supported\x20application\x20metadata','Run\x20with\x20--dry-run\x20first,\x20then\x20add\x20--confirm.','--confirm\x20is\x20required\x20to\x20synchronize\x20all\x20application\x20metadata.','deployment','sync-all','No\x20deployment\x20synchronization\x20was\x20needed\x20for\x20this\x20app.','4763310RyTNPB','Confirm\x20the\x20administrative\x20backfill\x20or\x20recovery\x20synchronization','485693FrmiIv','confirm','2880810eFHBIe','application_deployment_sync','Deployment\x20sync\x20submission\x20response\x20was\x20unavailable;\x20job\x20creation\x20is\x20unknown.','jobId','outcome','Submitted\x20deployment\x20synchronization\x20job\x20','boolean','not_needed','31887060skXCUo','2cGdKUL','write','1587544ZVcfgd','12loOhMR','job','validation'];a110_0x2c5f=function(){return _0x221f83;};return a110_0x2c5f();}import{asDryRunResult}from'../../commands/common/dry-run.js';import{isPlatformTransportFailure,submitDeploymentMetadataSyncAll}from'../../core/api-client.js';function a110_0x46ca(_0x52db52,_0x5ce923){_0x52db52=_0x52db52-0xf4;const _0x2c5fba=a110_0x2c5f();let _0x46ca5c=_0x2c5fba[_0x52db52];return _0x46ca5c;}import{CliError,CliErrors}from'../../errors.js';const SUBMIT_PATH='/smartapi/data-sync/submit',CONFIRM_FLAG={'name':a110_0x350e19(0xfd),'type':a110_0x350e19(0x104),'description':a110_0x350e19(0xfb)};export const deploymentSyncAll={'service':a110_0x350e19(0xf7),'command':a110_0x350e19(0xf8),'description':a110_0x350e19(0xf4),'risk':a110_0x350e19(0x108),'strictFlags':!![],'structuredErrors':!![],'confirmationDescription':'Submit\x20an\x20administrative\x20metadata\x20backfill\x20or\x20recovery\x20synchronization.','flags':[CONFIRM_FLAG,APPCODE_FLAG_OPTIONAL],async 'dryRun'(_0xd3b841){const _0x156610=a110_0x350e19;return asDryRunResult(buildPreview(_0xd3b841[_0x156610(0x111)]),{'method':'POST','url':SUBMIT_PATH,'description':_0x156610(0x10f)});},async 'execute'(_0x4677b8){const _0x4e3e03=a110_0x350e19;if(!_0x4677b8['bool'](_0x4e3e03(0xfd)))throw CliErrors[_0x4e3e03(0x10c)](_0x4e3e03(0xf6),_0x4e3e03(0xf5));try{const _0x4393ba=await submitDeploymentMetadataSyncAll({'appCode':_0x4677b8[_0x4e3e03(0x111)]});if(_0x4393ba[_0x4e3e03(0x102)]===_0x4e3e03(0x105))return{'ok':!![],'data':{'operation':'application_deployment_sync','appCode':_0x4677b8[_0x4e3e03(0x111)],'submitted':![],'outcome':_0x4e3e03(0x105)},'message':_0x4e3e03(0xf9)};return{'ok':!![],'data':{'operation':_0x4e3e03(0xff),'appCode':_0x4677b8[_0x4e3e03(0x111)],'submitted':!![],'outcome':'submitted','jobId':_0x4393ba[_0x4e3e03(0x10b)][_0x4e3e03(0x101)],'status':_0x4393ba['job'][_0x4e3e03(0x112)]},'message':_0x4e3e03(0x103)+_0x4393ba['job'][_0x4e3e03(0x101)]+'.'};}catch(_0x185c82){if(!isPlatformTransportFailure(_0x185c82))throw _0x185c82;const _0x286a87=new CliError('deployment_sync_submit_outcome_unknown',0x2,_0x4e3e03(0x100),_0x4e3e03(0x114));Object['defineProperty'](_0x286a87,_0x4e3e03(0x10e),{'enumerable':!![],'value':{'operation':_0x4e3e03(0xff),'appCode':_0x4677b8['appCode'],'submitted':null,'outcome':'unknown'}});throw _0x286a87;}}};function buildPreview(_0x3a5802){const _0x370345=a110_0x350e19;return{'operation':_0x370345(0xff),'selector':{'appCode':_0x3a5802,'scope':'all_server_supported_metadata'},'before':null,'after':null,'dryRun':!![],'backend':{'submitted':![],'outcome':'not_submitted'},'warnings':[]};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a111_0x306a84=a111_0x2c26;(function(_0x58f505,_0xc9bdc){const _0xcaae65=a111_0x2c26,_0x3d6afb=_0x58f505();while(!![]){try{const _0x10d042=parseInt(_0xcaae65(0xc3))/0x1+-parseInt(_0xcaae65(0xdd))/0x2*(parseInt(_0xcaae65(0xde))/0x3)+parseInt(_0xcaae65(0xd9))/0x4*(parseInt(_0xcaae65(0xc7))/0x5)+parseInt(_0xcaae65(0xca))/0x6+parseInt(_0xcaae65(0xc8))/0x7+parseInt(_0xcaae65(0xc5))/0x8*(parseInt(_0xcaae65(0xc1))/0x9)+-parseInt(_0xcaae65(0xd8))/0xa*(-parseInt(_0xcaae65(0xdc))/0xb);if(_0x10d042===_0xc9bdc)break;else _0x3d6afb['push'](_0x3d6afb['shift']());}catch(_0x21a9ab){_0x3d6afb['push'](_0x3d6afb['shift']());}}}(a111_0x16f5,0x1fcf5));function a111_0x2c26(_0x325ad7,_0x1edc7e){_0x325ad7=_0x325ad7-0xc1;const _0x16f547=a111_0x16f5();let _0x2c2615=_0x16f547[_0x325ad7];return _0x2c2615;}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':a111_0x306a84(0xd2),'command':a111_0x306a84(0xc4),'description':'List\x20application\x20deployment\x20synchronization\x20jobs','risk':'read','strictFlags':!![],'structuredErrors':!![],'flags':[{'name':a111_0x306a84(0xcd),'type':a111_0x306a84(0xcc),'default':0x1,'description':a111_0x306a84(0xda)},{'name':a111_0x306a84(0xd4),'type':a111_0x306a84(0xcc),'default':0xa,'description':a111_0x306a84(0xdb)},{'name':a111_0x306a84(0xcb),'type':a111_0x306a84(0xce),'description':a111_0x306a84(0xcf)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x2b5594){const _0x59ec82=a111_0x306a84;readPaging(_0x2b5594['num'](_0x59ec82(0xcd),0x1),_0x2b5594[_0x59ec82(0xd0)]('page-size',0xa));},async 'execute'(_0x3aade8){const _0x4b0e94=a111_0x306a84,{currentPage:_0x4a59b8,pageSize:_0x2af516}=readPaging(_0x3aade8[_0x4b0e94(0xd0)](_0x4b0e94(0xcd),0x1),_0x3aade8[_0x4b0e94(0xd0)]('page-size',0xa)),_0x505599=_0x3aade8[_0x4b0e94(0xc6)](_0x4b0e94(0xcb))[_0x4b0e94(0xd1)](),_0x18bd2f=await listDeploymentMetadataSyncJobs({'appCode':_0x3aade8['appCode'],'currentPage':_0x4a59b8,'pageSize':_0x2af516,..._0x505599?{'status':_0x505599}:{}});return{'ok':!![],'data':{'appCode':_0x3aade8[_0x4b0e94(0xd5)],..._0x18bd2f},'message':_0x4b0e94(0xd7)+_0x18bd2f['items'][_0x4b0e94(0xc9)]+_0x4b0e94(0xd6)};}};function readPaging(_0x62090,_0x4496cf){const _0x4c92ff=a111_0x306a84;if(!Number[_0x4c92ff(0xdf)](_0x62090)||_0x62090<0x1)throw CliErrors[_0x4c92ff(0xc2)](_0x4c92ff(0xe0));if(!Number[_0x4c92ff(0xdf)](_0x4496cf)||_0x4496cf<0x1||_0x4496cf>0x64)throw CliErrors[_0x4c92ff(0xc2)](_0x4c92ff(0xd3));return{'currentPage':_0x62090,'pageSize':_0x4496cf};}function a111_0x16f5(){const _0x5102d9=['Optional\x20server-defined\x20job\x20status\x20filter','num','trim','deployment','--page-size\x20must\x20be\x20an\x20integer\x20from\x201\x20to\x20100.','page-size','appCode','\x20deployment\x20synchronization\x20job(s).','Found\x20','852470knfoJM','4adbliB','Page\x20number','Items\x20per\x20page\x20(maximum\x20100)','11tOYRUx','2GMrxul','677691ndExQt','isSafeInteger','--current-page\x20must\x20be\x20a\x20positive\x20integer.','729cXMsqY','validation','45662mebrtg','sync-jobs','1048rdPSSu','str','148400dwaTKz','1280902OKvewX','length','12024LRYTOT','status','number','current-page','string'];a111_0x16f5=function(){return _0x5102d9;};return a111_0x16f5();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a112_0x2306f7=a112_0x599c;(function(_0x394b4b,_0x1b11d6){const _0x4e05d9=a112_0x599c,_0x4950d6=_0x394b4b();while(!![]){try{const _0x41cfe9=-parseInt(_0x4e05d9(0x186))/0x1*(parseInt(_0x4e05d9(0x190))/0x2)+parseInt(_0x4e05d9(0x18e))/0x3*(-parseInt(_0x4e05d9(0x179))/0x4)+-parseInt(_0x4e05d9(0x174))/0x5+parseInt(_0x4e05d9(0x17d))/0x6*(-parseInt(_0x4e05d9(0x17f))/0x7)+parseInt(_0x4e05d9(0x192))/0x8*(-parseInt(_0x4e05d9(0x184))/0x9)+-parseInt(_0x4e05d9(0x181))/0xa+parseInt(_0x4e05d9(0x170))/0xb;if(_0x41cfe9===_0x1b11d6)break;else _0x4950d6['push'](_0x4950d6['shift']());}catch(_0x3e732d){_0x4950d6['push'](_0x4950d6['shift']());}}}(a112_0xa976,0x71462));import{getDeploymentMetadataSyncStatus}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const TERMINAL_STATUSES=new Set(['SUCCESS',a112_0x2306f7(0x18b),'FAILED']),ACTIVE_STATUSES=new Set([a112_0x2306f7(0x177),a112_0x2306f7(0x171)]);function a112_0xa976(){const _0x173d1f=['number','reduce','938735meuQSC','filter','Get\x20application\x20deployment\x20synchronization\x20job\x20status','PENDING','Preserved\x20server-defined\x20status\x20','4hOKOyW','appCode','status','validation','108omAAAt','FAILED','45171gMfKMB','job-id','8003510vTwHfj','sync-status','bizType','95265RZWjfK','action','502ajBsOA','Deployment\x20synchronization\x20job\x20','map','isSafeInteger','num','PARTIAL_SUCCESS','results',';\x20terminal\x20state\x20is\x20unknown\x20to\x20this\x20CLI\x20version.','1626351pekAJK','has','2386jXXJwV','length','120vsUkuk','\x20is\x20','deployment','31548000KWdsFK','RUNNING'];a112_0xa976=function(){return _0x173d1f;};return a112_0xa976();}export const deploymentSyncStatus={'service':a112_0x2306f7(0x16f),'command':a112_0x2306f7(0x182),'description':a112_0x2306f7(0x176),'risk':'read','requiresAppCode':!![],'strictFlags':!![],'structuredErrors':!![],'flags':[{'name':a112_0x2306f7(0x180),'type':a112_0x2306f7(0x172),'required':!![],'description':'Deployment\x20synchronization\x20job\x20ID'}],async 'validate'(_0x2ba14c){const _0x4601df=a112_0x2306f7;readJobId(_0x2ba14c[_0x4601df(0x18a)](_0x4601df(0x180)));},async 'execute'(_0x203fb9){const _0x2a7e01=a112_0x2306f7,_0x170ed8=readJobId(_0x203fb9[_0x2a7e01(0x18a)](_0x2a7e01(0x180))),_0x3ff38d=await getDeploymentMetadataSyncStatus({'jobId':_0x170ed8,'appCode':_0x203fb9[_0x2a7e01(0x17a)]}),_0x149407=TERMINAL_STATUSES[_0x2a7e01(0x18f)](_0x3ff38d[_0x2a7e01(0x17b)])?!![]:ACTIVE_STATUSES[_0x2a7e01(0x18f)](_0x3ff38d[_0x2a7e01(0x17b)])?![]:null,_0x51789c=countBy(_0x3ff38d['results'][_0x2a7e01(0x188)](_0x5de43e=>_0x5de43e[_0x2a7e01(0x183)])),_0x36a558=countBy(_0x3ff38d[_0x2a7e01(0x18c)][_0x2a7e01(0x188)](_0x2bf56d=>_0x2bf56d[_0x2a7e01(0x185)])),_0xb343f9=_0x149407===null?[_0x2a7e01(0x178)+_0x3ff38d[_0x2a7e01(0x17b)]+_0x2a7e01(0x18d)]:[];return{'ok':!![],'data':{'job':_0x3ff38d,'isTerminal':_0x149407,'summary':{'total':_0x3ff38d[_0x2a7e01(0x18c)][_0x2a7e01(0x191)],'failed':_0x3ff38d[_0x2a7e01(0x18c)][_0x2a7e01(0x175)](_0x178735=>_0x178735[_0x2a7e01(0x185)]===_0x2a7e01(0x17e))[_0x2a7e01(0x191)],'byBizType':_0x51789c,'byAction':_0x36a558},'warnings':_0xb343f9},'message':_0x2a7e01(0x187)+_0x170ed8+_0x2a7e01(0x16e)+_0x3ff38d[_0x2a7e01(0x17b)]+'.'};}};function readJobId(_0x1deaee){const _0x4f198e=a112_0x2306f7;if(!Number[_0x4f198e(0x189)](_0x1deaee)||_0x1deaee<=0x0)throw CliErrors[_0x4f198e(0x17c)]('--job-id\x20must\x20be\x20a\x20positive\x20integer.');return _0x1deaee;}function a112_0x599c(_0x27c8a6,_0x2516f3){_0x27c8a6=_0x27c8a6-0x16e;const _0xa9767a=a112_0xa976();let _0x599c42=_0xa9767a[_0x27c8a6];return _0x599c42;}function countBy(_0x2bbbe8){const _0x323f22=a112_0x2306f7;return _0x2bbbe8[_0x323f22(0x173)]((_0x126515,_0x4a204d)=>{return _0x126515[_0x4a204d]=(_0x126515[_0x4a204d]??0x0)+0x1,_0x126515;},{});}
|
package/lib/commands/doctor.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a113_0x4fb719=a113_0x423d;function a113_0x2884(){const _0x33d90a=['\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','not\x20configured','region','\x20\x20Skill\x20Version:\x20\x20\x20','Set\x20apps.','repairCommand','\x20config\x20delete\x20routing','gray','\x20(invalid)','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','object','global','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','3203970dzHfOl','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','present','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','state','⚠\x20Empty\x20(treated\x20as\x20{})','hasOwnProperty','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','\x20config\x20delete\x20region','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','entries','env','apiDir','\x20\x20skillDomain:\x20\x20\x20\x20\x20','appCode','current','cookie','\x20\x20API\x20Endpoints','Not\x20checked\x20until\x20routing\x20configuration\x20is\x20repaired','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Merged\x20Config','\x20\x20explicitAppName:\x20','slice','globalConfig','\x20\x20Config\x20JSON','\x20app\x20\x22','missing','verbose','green','riskLevel','2226558UOXPCh','\x20\x20Repair\x20global:\x20\x20\x20','format','arch','\x20\x20Repair\x20project:\x20\x20\x20','toLowerCase','bold','\x20\x20\x20\x20accessKey:\x20\x20','\x20doctor','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','apps','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','includes','packageVersion','(no\x20file)','\x20(default)','call','(unknown)','\x20\x20kbDomain:\x20\x20\x20\x20\x20\x20\x20\x20','keys','✗\x20Invalid\x20','ignored\x20in\x20','platform','filter','(not\x20set)','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','reason','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','(set,\x20length=','value','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','source','\x20\x20Auth','\x20\x20─','log','3955040KaSNEf','(set\x20via\x20file,\x20length=','project','check','\x20\x20Package\x20Version:\x20','Project','accessKey','yellow','\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','projectConfig','✓\x20Valid','raw','default','\x20\x20Repair\x20project:\x20\x20','2235918WwIfuh','length','(none)','prototype','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','routing','Repair\x20','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','22740494ythPuG','\x20\x20\x20\x20region:\x20\x20\x20\x20\x20','(not\x20found)','repeat','\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20+\x20','empty','pageSize','\x20config\x20delete\x20inherit\x20--global','red','(missing)','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','null','\x20\x20Apps','.region\x20to\x20cn\x20or\x20id\x20in\x20','1267427suSXOf','\x20\x20Routing\x20Configuration','status','defaultApp','padEnd','regionSource','push','(default)','\x20\x20Repair\x20global:\x20\x20\x20\x20','label','1131804zNidGM','\x20config','✗\x20Invalid\x20JSON','stringify','message','installedPath','✓\x20Valid\x20JSON','Global'];a113_0x2884=function(){return _0x33d90a;};return a113_0x2884();}(function(_0x5a16e0,_0x48b5f3){const _0x107fa8=a113_0x423d,_0xc19d30=_0x5a16e0();while(!![]){try{const _0xecbdd2=-parseInt(_0x107fa8(0x189))/0x1+-parseInt(_0x107fa8(0x170))/0x2+-parseInt(_0x107fa8(0x13f))/0x3+parseInt(_0x107fa8(0x162))/0x4+-parseInt(_0x107fa8(0x11f))/0x5+parseInt(_0x107fa8(0x10a))/0x6+parseInt(_0x107fa8(0x17a))/0x7;if(_0xecbdd2===_0x48b5f3)break;else _0xc19d30['push'](_0xc19d30['shift']());}catch(_0x439645){_0xc19d30['push'](_0xc19d30['shift']());}}}(a113_0x2884,0xa0906));import a113_0x3d272f from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';import{getActiveRegion,getApiDomain,getAppDomain,getKbDomain,getKbServiceDomain,getSkillDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags,initGlobalEnvironment,inspectCliConfigJsonFile,loadRawConfigLayers}from'../context.js';import{getIsSessionValid}from'../auth/is-session-valid.js';import{getCookie}from'../auth/get-cookie.js';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(_0x572a5d){const _0x3e9be9=a113_0x423d;return typeof _0x572a5d==='string'?JSON[_0x3e9be9(0x10d)](_0x572a5d):'<'+(_0x572a5d===null?_0x3e9be9(0x186):typeof _0x572a5d)+'>';}async function execute(_0x394354){const _0x4abde0=a113_0x423d,_0x3df934=GIT_COMMIT!=='unknown'?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x4abde0(0x137)](0x0,0xa)+')':VERSION,_0xda8bae=buildConfigFromFlags({}),_0x190ae7=getCookie();let _0x4bdc95;try{await initGlobalEnvironment(_0xda8bae);}catch(_0x23d1fb){_0x4bdc95=_0x23d1fb instanceof Error?_0x23d1fb:new Error(String(_0x23d1fb));}console[_0x4abde0(0x161)](),console[_0x4abde0(0x161)](a113_0x3d272f[_0x4abde0(0x145)](CLI_BIN_NAME+_0x4abde0(0x147))),console[_0x4abde0(0x161)](a113_0x3d272f[_0x4abde0(0x119)]('─'[_0x4abde0(0x17d)](0x32))),console[_0x4abde0(0x161)](_0x4abde0(0x14a)+_0x3df934),console[_0x4abde0(0x161)](_0x4abde0(0x158)+process['version']),console[_0x4abde0(0x161)](_0x4abde0(0x148)+process[_0x4abde0(0x155)]+'\x20'+process[_0x4abde0(0x142)]);const _0x4bb834=inspectBuiltinSkill();console[_0x4abde0(0x161)](),console['log'](a113_0x3d272f[_0x4abde0(0x145)]('\x20\x20Built-in\x20Skill')),console[_0x4abde0(0x161)](a113_0x3d272f[_0x4abde0(0x119)](_0x4abde0(0x160)['repeat'](0x1e)));const _0x35c7b4=_0x4bb834['state']===_0x4abde0(0x130)?a113_0x3d272f[_0x4abde0(0x13d)]('✓\x20'+_0x4bb834[_0x4abde0(0x124)]):a113_0x3d272f[_0x4abde0(0x183)]('✗\x20'+_0x4bb834[_0x4abde0(0x124)]);console[_0x4abde0(0x161)]('\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x35c7b4),console[_0x4abde0(0x161)](_0x4abde0(0x166)+_0x4bb834[_0x4abde0(0x14c)]),console[_0x4abde0(0x161)](_0x4abde0(0x115)+(_0x4bb834['skillVersion']||a113_0x3d272f['gray'](_0x4abde0(0x150)))),console[_0x4abde0(0x161)]('\x20\x20Installed\x20Path:\x20\x20'+(_0x4bb834[_0x4abde0(0x10f)]||a113_0x3d272f[_0x4abde0(0x119)]('(not\x20found)')));if(_0x4bb834[_0x4abde0(0x159)])console[_0x4abde0(0x161)](_0x4abde0(0x16a)+_0x4bb834[_0x4abde0(0x159)]);_0x4bb834[_0x4abde0(0x124)]!==_0x4abde0(0x130)&&console['log'](_0x4abde0(0x178)+_0x4bb834[_0x4abde0(0x117)]);console['log'](),console[_0x4abde0(0x161)](a113_0x3d272f[_0x4abde0(0x145)]('\x20\x20Config\x20Files')),console[_0x4abde0(0x161)](a113_0x3d272f['gray']('\x20\x20─'[_0x4abde0(0x17d)](0x1e)));const _0x2486a9=getGlobalConfigPath(),_0x1b7ba8=getProjectConfigPath();console['log']('\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x2486a9||a113_0x3d272f['gray'](_0x4abde0(0x17c)))),console[_0x4abde0(0x161)](_0x4abde0(0x15d)+(_0x1b7ba8||a113_0x3d272f['gray']('(not\x20found)'))),console[_0x4abde0(0x161)](),console[_0x4abde0(0x161)](a113_0x3d272f[_0x4abde0(0x145)](_0x4abde0(0x139))),console[_0x4abde0(0x161)](a113_0x3d272f[_0x4abde0(0x119)](_0x4abde0(0x160)[_0x4abde0(0x17d)](0x1e)));const _0x560a93=(_0x3e8e5c,_0x43b22d)=>{const _0x456a7a=_0x4abde0;if(!_0x43b22d){console[_0x456a7a(0x161)]('\x20\x20'+_0x3e8e5c[_0x456a7a(0x18d)](0x11)+'\x20'+a113_0x3d272f[_0x456a7a(0x119)](_0x456a7a(0x14d)));return;}const _0x2a82b7=inspectCliConfigJsonFile(_0x43b22d);if(_0x2a82b7[_0x456a7a(0x18b)]==='ok')console[_0x456a7a(0x161)]('\x20\x20'+_0x3e8e5c[_0x456a7a(0x18d)](0x11)+'\x20'+a113_0x3d272f[_0x456a7a(0x13d)](_0x456a7a(0x110)));else{if(_0x2a82b7[_0x456a7a(0x18b)]===_0x456a7a(0x180))console[_0x456a7a(0x161)]('\x20\x20'+_0x3e8e5c[_0x456a7a(0x18d)](0x11)+'\x20'+a113_0x3d272f[_0x456a7a(0x169)](_0x456a7a(0x125)));else _0x2a82b7[_0x456a7a(0x18b)]===_0x456a7a(0x13b)?console[_0x456a7a(0x161)]('\x20\x20'+_0x3e8e5c[_0x456a7a(0x18d)](0x11)+'\x20'+a113_0x3d272f[_0x456a7a(0x119)](_0x456a7a(0x184))):(console[_0x456a7a(0x161)]('\x20\x20'+_0x3e8e5c[_0x456a7a(0x18d)](0x11)+'\x20'+a113_0x3d272f[_0x456a7a(0x183)](_0x456a7a(0x10c))),console[_0x456a7a(0x161)]('\x20\x20'+''[_0x456a7a(0x18d)](0x11)+'\x20'+a113_0x3d272f['red'](_0x2a82b7[_0x456a7a(0x10e)])));}};_0x560a93(_0x4abde0(0x111),_0x2486a9),_0x560a93('Project',_0x1b7ba8);const _0x2d1d8a=loadRawConfigLayers(),_0x4b891d=[{'label':_0x4abde0(0x167),'value':_0x2d1d8a[_0x4abde0(0x16b)][_0x4abde0(0x114)],'present':Object[_0x4abde0(0x173)]['hasOwnProperty']['call'](_0x2d1d8a[_0x4abde0(0x16b)],_0x4abde0(0x114)),'repairCommand':CLI_BIN_NAME+_0x4abde0(0x129)},{'label':_0x4abde0(0x111),'value':_0x2d1d8a[_0x4abde0(0x138)][_0x4abde0(0x114)],'present':Object[_0x4abde0(0x173)][_0x4abde0(0x126)][_0x4abde0(0x14f)](_0x2d1d8a[_0x4abde0(0x138)],_0x4abde0(0x114)),'repairCommand':CLI_BIN_NAME+'\x20config\x20delete\x20region\x20--global'}][_0x4abde0(0x156)](_0x31ae63=>_0x31ae63[_0x4abde0(0x122)]&&isInvalidLovrabetRegion(_0x31ae63['value']));for(const [_0x2c9d66,_0x3ed65d]of[[_0x4abde0(0x167),_0x2d1d8a[_0x4abde0(0x16b)]],[_0x4abde0(0x111),_0x2d1d8a['globalConfig']]]){const _0x27c8fa=_0x3ed65d[_0x4abde0(0x149)]&&typeof _0x3ed65d[_0x4abde0(0x149)]==='object'?_0x3ed65d[_0x4abde0(0x149)]:{};for(const [_0x54c2ec,_0x13c192]of Object[_0x4abde0(0x12b)](_0x27c8fa)){if(!_0x13c192||typeof _0x13c192!==_0x4abde0(0x11c)||!Object[_0x4abde0(0x173)][_0x4abde0(0x126)][_0x4abde0(0x14f)](_0x13c192,'region'))continue;isInvalidLovrabetRegion(_0x13c192['region'])&&_0x4b891d[_0x4abde0(0x18f)]({'label':_0x2c9d66+_0x4abde0(0x13a)+_0x54c2ec+'\x22','value':_0x13c192[_0x4abde0(0x114)],'present':!![],'repairCommand':_0x4abde0(0x116)+_0x54c2ec+_0x4abde0(0x188)+_0x2c9d66['toLowerCase']()+_0x4abde0(0x10b)});}}if(_0x4b891d[_0x4abde0(0x171)]>0x0){console[_0x4abde0(0x161)](),console[_0x4abde0(0x161)](a113_0x3d272f['bold']('\x20\x20Country/Region\x20Configuration')),console[_0x4abde0(0x161)](a113_0x3d272f[_0x4abde0(0x119)](_0x4abde0(0x160)[_0x4abde0(0x17d)](0x1e)));for(const _0x1eba41 of _0x4b891d){console[_0x4abde0(0x161)]('\x20\x20'+_0x1eba41[_0x4abde0(0x109)][_0x4abde0(0x18d)](0x11)+'\x20'+a113_0x3d272f['red'](_0x4abde0(0x153)+describeRegionValue(_0x1eba41[_0x4abde0(0x15c)]))),console['log']('\x20\x20'+(_0x4abde0(0x176)+_0x1eba41[_0x4abde0(0x109)][_0x4abde0(0x144)]()+':')[_0x4abde0(0x18d)](0x10)+'\x20'+_0x1eba41['repairCommand']);}}const _0x27447c=[Object[_0x4abde0(0x173)][_0x4abde0(0x126)][_0x4abde0(0x14f)](_0x2d1d8a[_0x4abde0(0x138)],'inherit')?_0x4abde0(0x11d):null,Object[_0x4abde0(0x173)][_0x4abde0(0x126)][_0x4abde0(0x14f)](_0x2d1d8a['projectConfig'],'inherit')?_0x4abde0(0x164):null][_0x4abde0(0x156)](Boolean);_0x27447c[_0x4abde0(0x171)]>0x0&&(console['log']('\x20\x20Legacy\x20inherit:\x20\x20\x20'+a113_0x3d272f[_0x4abde0(0x169)](_0x4abde0(0x154)+_0x27447c['join'](_0x4abde0(0x17f))+_0x4abde0(0x10b))),_0x27447c[_0x4abde0(0x14b)](_0x4abde0(0x164))&&console[_0x4abde0(0x161)](_0x4abde0(0x143)+CLI_BIN_NAME+'\x20config\x20delete\x20inherit'),_0x27447c[_0x4abde0(0x14b)](_0x4abde0(0x11d))&&console[_0x4abde0(0x161)](_0x4abde0(0x108)+CLI_BIN_NAME+_0x4abde0(0x182)));const _0x2e8e2c=isInvalidLovrabetRegion(_0xda8bae['regionConfiguredValue']??_0xda8bae[_0x4abde0(0x16d)]?.[_0x4abde0(0x114)]);_0x4bdc95&&!_0x2e8e2c&&(console[_0x4abde0(0x161)](),console[_0x4abde0(0x161)](a113_0x3d272f[_0x4abde0(0x145)](_0x4abde0(0x18a))),console[_0x4abde0(0x161)](a113_0x3d272f['gray'](_0x4abde0(0x160)[_0x4abde0(0x17d)](0x1e))),console[_0x4abde0(0x161)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a113_0x3d272f[_0x4abde0(0x183)]('✗\x20Invalid')),console['log'](_0x4abde0(0x16a)+_0x4bdc95['message']),Object['prototype'][_0x4abde0(0x126)]['call'](_0x2d1d8a[_0x4abde0(0x16b)],_0x4abde0(0x175))&&console['log'](_0x4abde0(0x16f)+CLI_BIN_NAME+_0x4abde0(0x118)),Object[_0x4abde0(0x173)][_0x4abde0(0x126)]['call'](_0x2d1d8a['globalConfig'],_0x4abde0(0x175))&&console[_0x4abde0(0x161)](_0x4abde0(0x140)+CLI_BIN_NAME+'\x20config\x20delete\x20routing\x20--global'));console[_0x4abde0(0x161)](),console[_0x4abde0(0x161)](a113_0x3d272f[_0x4abde0(0x145)](_0x4abde0(0x135))),console['log'](a113_0x3d272f['gray']('\x20\x20─'[_0x4abde0(0x17d)](0x1e))),console[_0x4abde0(0x161)](_0x4abde0(0x121)+(_0xda8bae[_0x4abde0(0x12f)]||a113_0x3d272f[_0x4abde0(0x183)](_0x4abde0(0x157))));const _0x3399fb=_0x2e8e2c?a113_0x3d272f['red'](describeRegionValue(_0xda8bae['regionConfiguredValue']??_0xda8bae[_0x4abde0(0x16d)]?.[_0x4abde0(0x114)])+_0x4abde0(0x11a)):(_0xda8bae['region']??DEFAULT_LOVRABET_REGION)+'\x20('+(_0xda8bae[_0x4abde0(0x18e)]??_0x4abde0(0x16e))+')';console['log'](_0x4abde0(0x17e)+_0x3399fb),console['log']('\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0xda8bae[_0x4abde0(0x12c)]),console[_0x4abde0(0x161)]('\x20\x20app\x20locale:\x20\x20\x20\x20\x20\x20'+_0xda8bae['locale']),console['log'](_0x4abde0(0x11b)+_0xda8bae['apiDir']),console[_0x4abde0(0x161)](_0x4abde0(0x112)+(_0xda8bae[_0x4abde0(0x18c)]||a113_0x3d272f['gray']('(none)'))),console[_0x4abde0(0x161)](_0x4abde0(0x11e)+(_0xda8bae['currentApp']||a113_0x3d272f[_0x4abde0(0x119)](_0x4abde0(0x172)))),console[_0x4abde0(0x161)](_0x4abde0(0x136)+(_0xda8bae['explicitAppName']||a113_0x3d272f[_0x4abde0(0x119)](_0x4abde0(0x172)))),console[_0x4abde0(0x161)](_0x4abde0(0x134)+(_0xda8bae[_0x4abde0(0x141)]||a113_0x3d272f[_0x4abde0(0x119)]('(default:\x20'+DEFAULT_CONFIG_VALUES[_0x4abde0(0x141)]+')'))),console['log']('\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20'+(_0xda8bae[_0x4abde0(0x181)]??a113_0x3d272f[_0x4abde0(0x119)](_0x4abde0(0x190)))),console[_0x4abde0(0x161)](_0x4abde0(0x128)+_0xda8bae[_0x4abde0(0x13e)]),console[_0x4abde0(0x161)](_0x4abde0(0x174)+_0xda8bae[_0x4abde0(0x13c)]),console['log'](_0x4abde0(0x123)+(_0xda8bae[_0x4abde0(0x131)]?a113_0x3d272f['green'](_0x4abde0(0x15b)+_0xda8bae[_0x4abde0(0x131)][_0x4abde0(0x171)]+')'):_0x190ae7?a113_0x3d272f[_0x4abde0(0x13d)](_0x4abde0(0x163)+_0x190ae7['length']+')'):a113_0x3d272f[_0x4abde0(0x119)](_0x4abde0(0x172))));const _0x2d2734=Object[_0x4abde0(0x152)](_0xda8bae['apps']);if(_0x2d2734['length']>0x0){console[_0x4abde0(0x161)](),console[_0x4abde0(0x161)](a113_0x3d272f[_0x4abde0(0x145)](_0x4abde0(0x187))),console[_0x4abde0(0x161)](a113_0x3d272f[_0x4abde0(0x119)](_0x4abde0(0x160)[_0x4abde0(0x17d)](0x1e)));for(const _0x29438d of _0x2d2734){const _0x21c27d=_0xda8bae['apps'][_0x29438d],_0x56a504=_0x29438d===_0xda8bae[_0x4abde0(0x18c)],_0x32c2b9=_0x29438d===_0xda8bae['currentApp'],_0x1a978d=_0x32c2b9?a113_0x3d272f[_0x4abde0(0x13d)]('\x20←\x20current'):'',_0x26dbeb=_0x56a504?_0x4abde0(0x14e):'';console['log']('\x20\x20'+_0x29438d+_0x26dbeb+_0x1a978d),console[_0x4abde0(0x161)](_0x4abde0(0x12a)+_0x21c27d['appcode']);const _0x3b64f7=_0x2d1d8a[_0x4abde0(0x16b)]['apps']&&typeof _0x2d1d8a[_0x4abde0(0x16b)][_0x4abde0(0x149)]===_0x4abde0(0x11c)?_0x2d1d8a[_0x4abde0(0x16b)][_0x4abde0(0x149)]:{},_0x59b723=Object[_0x4abde0(0x173)][_0x4abde0(0x126)][_0x4abde0(0x14f)](_0x3b64f7,_0x29438d),_0x12ccc6=isInvalidLovrabetRegion(_0x21c27d[_0x4abde0(0x114)])?{'region':_0xda8bae[_0x4abde0(0x114)]??DEFAULT_LOVRABET_REGION}:resolveEffectiveRegion({'appRegion':_0x21c27d[_0x4abde0(0x114)],'projectRegion':_0x59b723?_0x2d1d8a[_0x4abde0(0x16b)][_0x4abde0(0x114)]:undefined,'globalRegion':_0x2d1d8a['globalConfig'][_0x4abde0(0x114)],'mergedRegion':_0xda8bae['raw'][_0x4abde0(0x114)],'appName':_0x29438d}),_0x43fcdf=buildAppDoctorFields(_0x21c27d,{'region':_0x12ccc6[_0x4abde0(0x114)],'env':_0xda8bae['env'],'apiDir':_0xda8bae[_0x4abde0(0x16d)][_0x4abde0(0x12d)]||DEFAULT_CONFIG_VALUES[_0x4abde0(0x12d)],'cookie':_0xda8bae['cookie']||_0x190ae7||undefined,'accessKey':_0xda8bae[_0x4abde0(0x168)]});console['log'](_0x4abde0(0x17b)+_0x43fcdf['region'][_0x4abde0(0x15c)]+'\x20\x20'+a113_0x3d272f[_0x4abde0(0x119)]('('+_0x43fcdf['region'][_0x4abde0(0x15e)]+')')),console[_0x4abde0(0x161)](_0x4abde0(0x177)+_0x43fcdf[_0x4abde0(0x12c)][_0x4abde0(0x15c)]+'\x20\x20'+a113_0x3d272f[_0x4abde0(0x119)]('('+_0x43fcdf[_0x4abde0(0x12c)][_0x4abde0(0x15e)]+')')),console['log'](_0x4abde0(0x127)+_0x43fcdf[_0x4abde0(0x12d)][_0x4abde0(0x15c)]+'\x20\x20'+a113_0x3d272f[_0x4abde0(0x119)]('('+_0x43fcdf[_0x4abde0(0x12d)][_0x4abde0(0x15e)]+')'));const _0x2c7d8b=_0x43fcdf[_0x4abde0(0x131)][_0x4abde0(0x15c)]?a113_0x3d272f[_0x4abde0(0x13d)](_0x4abde0(0x15b)+_0x43fcdf[_0x4abde0(0x131)]['value'][_0x4abde0(0x171)]+')'):a113_0x3d272f[_0x4abde0(0x119)](_0x4abde0(0x172));console[_0x4abde0(0x161)]('\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20'+_0x2c7d8b+'\x20\x20'+a113_0x3d272f[_0x4abde0(0x119)]('('+_0x43fcdf['cookie']['source']+')'));const _0x67ee56=_0x43fcdf['accessKey'][_0x4abde0(0x15c)]?a113_0x3d272f[_0x4abde0(0x13d)](_0x4abde0(0x15b)+_0x43fcdf[_0x4abde0(0x168)][_0x4abde0(0x15c)][_0x4abde0(0x171)]+')'):a113_0x3d272f[_0x4abde0(0x119)](_0x4abde0(0x172));console['log'](_0x4abde0(0x146)+_0x67ee56+'\x20\x20'+a113_0x3d272f[_0x4abde0(0x119)]('('+_0x43fcdf[_0x4abde0(0x168)][_0x4abde0(0x15e)]+')'));}}console[_0x4abde0(0x161)](),console[_0x4abde0(0x161)](a113_0x3d272f[_0x4abde0(0x145)](_0x4abde0(0x132))),console[_0x4abde0(0x161)](a113_0x3d272f[_0x4abde0(0x119)](_0x4abde0(0x160)[_0x4abde0(0x17d)](0x1e)));_0x4bdc95?console[_0x4abde0(0x161)](_0x4abde0(0x179)+a113_0x3d272f[_0x4abde0(0x183)]('Unavailable\x20until\x20routing\x20configuration\x20is\x20repaired')):(console['log'](_0x4abde0(0x17e)+getActiveRegion()),console['log'](_0x4abde0(0x185)+getApiDomain()),console['log'](_0x4abde0(0x15a)+getUserDomain()),console[_0x4abde0(0x161)]('\x20\x20runtimeDomain:\x20\x20\x20'+getRuntimeDomain()),console['log'](_0x4abde0(0x12e)+getSkillDomain()),console[_0x4abde0(0x161)](_0x4abde0(0x151)+getKbDomain()),console['log']('\x20\x20kbServiceDomain:\x20'+(getKbServiceDomain()??_0x4abde0(0x113))),console[_0x4abde0(0x161)]('\x20\x20appDomain:\x20\x20\x20\x20\x20\x20\x20'+getAppDomain()));console[_0x4abde0(0x161)](),console[_0x4abde0(0x161)](a113_0x3d272f[_0x4abde0(0x145)](_0x4abde0(0x15f))),console['log'](a113_0x3d272f[_0x4abde0(0x119)]('\x20\x20─'[_0x4abde0(0x17d)](0x1e)));if(_0x4bdc95)console[_0x4abde0(0x161)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a113_0x3d272f[_0x4abde0(0x169)](_0x4abde0(0x133)));else{if(_0x190ae7){const _0x479dd8=await getIsSessionValid();console['log'](_0x4abde0(0x179)+(_0x479dd8?a113_0x3d272f[_0x4abde0(0x13d)](_0x4abde0(0x16c)):a113_0x3d272f[_0x4abde0(0x183)]('✗\x20Expired')));}else console[_0x4abde0(0x161)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a113_0x3d272f[_0x4abde0(0x183)]('✗\x20Not\x20logged\x20in'));}return console[_0x4abde0(0x161)](),{'ok':!![]};}function a113_0x423d(_0x11c63f,_0xb96910){_0x11c63f=_0x11c63f-0x108;const _0x2884c0=a113_0x2884();let _0x423d96=_0x2884c0[_0x11c63f];return _0x423d96;}export const doctorDefinition={'service':'doctor','command':a113_0x4fb719(0x165),'description':a113_0x4fb719(0x120),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
|
|
1
|
+
const a113_0x5e0768=a113_0x7f3a;(function(_0x54eabe,_0x2ec0f6){const _0x507115=a113_0x7f3a,_0x4c2b61=_0x54eabe();while(!![]){try{const _0x2474eb=parseInt(_0x507115(0x265))/0x1*(parseInt(_0x507115(0x1e5))/0x2)+parseInt(_0x507115(0x240))/0x3*(-parseInt(_0x507115(0x258))/0x4)+-parseInt(_0x507115(0x21f))/0x5+parseInt(_0x507115(0x24c))/0x6*(-parseInt(_0x507115(0x1ff))/0x7)+-parseInt(_0x507115(0x1ee))/0x8*(parseInt(_0x507115(0x20c))/0x9)+-parseInt(_0x507115(0x266))/0xa+parseInt(_0x507115(0x25f))/0xb;if(_0x2474eb===_0x2ec0f6)break;else _0x4c2b61['push'](_0x4c2b61['shift']());}catch(_0x319d87){_0x4c2b61['push'](_0x4c2b61['shift']());}}}(a113_0x350c,0xe4c41));import a113_0x7ce790 from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';function a113_0x350c(){const _0x4ed026=['38208643sARRXo','(none)','env','(not\x20found)','filter','present','431CQctfc','7105210ZztWIl','(missing)','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Repair\x20project:\x20\x20','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','\x20\x20Legacy\x20inherit:\x20\x20\x20','\x20config\x20delete\x20inherit','riskLevel','1572PxSIbQ','platform','includes','verbose','gray','repeat','\x20\x20kbDomain:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','regionConfiguredValue','976TQvboW','\x20\x20─','cookie','✗\x20Not\x20logged\x20in','\x20\x20Skill\x20Version:\x20\x20\x20','\x20\x20Apps','\x20\x20Repair\x20global:\x20\x20\x20','yellow','\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Repair\x20project:\x20\x20\x20','source','repairCommand','(unknown)','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','✗\x20Invalid\x20','2390605ozBsgX','raw','hasOwnProperty','\x20config\x20delete\x20region','\x20\x20API\x20Endpoints','\x20\x20explicitAppName:\x20','Project','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','prototype','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','call','doctor','\x20doctor','14319JSQyKj','current','stringify','(default:\x20','\x20\x20appDomain:\x20\x20\x20\x20\x20\x20\x20','\x20\x20Package\x20Version:\x20','value','\x20+\x20','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','status','Unavailable\x20until\x20routing\x20configuration\x20is\x20repaired','keys','accessKey','globalConfig','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','pageSize','(not\x20set)','apps','2236395eFAeKz','green','\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Not\x20checked\x20until\x20routing\x20configuration\x20is\x20repaired','length','\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20(invalid)','(set,\x20length=','toLowerCase','not\x20configured','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','object','null','✓\x20Valid','appcode','empty','✗\x20Invalid','currentApp','bold','\x20\x20Repair\x20global:\x20\x20\x20\x20','routing','(default)','(set\x20via\x20file,\x20length=','red','✗\x20Invalid\x20JSON','\x20\x20skillDomain:\x20\x20\x20\x20\x20','log','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','apiDir','locale','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','project','\x20(default)','1473oQWXBj','\x20config\x20delete\x20inherit\x20--global','region','entries','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','inherit','join','appCode','\x20←\x20current','defaultApp','\x20\x20app\x20locale:\x20\x20\x20\x20\x20\x20','\x20config\x20delete\x20routing','6kRPzsZ','state','check','format','projectConfig','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','skillVersion','global','✗\x20Expired','.region\x20to\x20cn\x20or\x20id\x20in\x20','reason','read','9628TXWJHM','\x20\x20runtimeDomain:\x20\x20\x20','\x20config','padEnd','Global','version','label'];a113_0x350c=function(){return _0x4ed026;};return a113_0x350c();}import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';import{getActiveRegion,getApiDomain,getAppDomain,getKbDomain,getKbServiceDomain,getSkillDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags,initGlobalEnvironment,inspectCliConfigJsonFile,loadRawConfigLayers}from'../context.js';function a113_0x7f3a(_0x56e020,_0x2584a0){_0x56e020=_0x56e020-0x1dd;const _0x350cf7=a113_0x350c();let _0x7f3a5f=_0x350cf7[_0x56e020];return _0x7f3a5f;}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(_0x240843){const _0x38497d=a113_0x7f3a;return typeof _0x240843==='string'?JSON[_0x38497d(0x20e)](_0x240843):'<'+(_0x240843===null?_0x38497d(0x22b):typeof _0x240843)+'>';}async function execute(_0x3730c7){const _0x21674f=a113_0x7f3a,_0x43a5e3=GIT_COMMIT!=='unknown'?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME['slice'](0x0,0xa)+')':VERSION,_0x2616d0=buildConfigFromFlags({}),_0x293e1a=getCookie();let _0xfe5f35;try{await initGlobalEnvironment(_0x2616d0);}catch(_0x50ccd7){_0xfe5f35=_0x50ccd7 instanceof Error?_0x50ccd7:new Error(String(_0x50ccd7));}console[_0x21674f(0x239)](),console[_0x21674f(0x239)](a113_0x7ce790[_0x21674f(0x231)](CLI_BIN_NAME+_0x21674f(0x20b))),console['log'](a113_0x7ce790[_0x21674f(0x1e9)]('─'[_0x21674f(0x1ea)](0x32))),console[_0x21674f(0x239)](_0x21674f(0x1ec)+_0x43a5e3),console['log'](_0x21674f(0x208)+process[_0x21674f(0x25d)]),console['log'](_0x21674f(0x251)+process[_0x21674f(0x1e6)]+'\x20'+process['arch']);const _0x40a2bd=inspectBuiltinSkill();console['log'](),console['log'](a113_0x7ce790[_0x21674f(0x231)]('\x20\x20Built-in\x20Skill')),console[_0x21674f(0x239)](a113_0x7ce790['gray'](_0x21674f(0x1ef)[_0x21674f(0x1ea)](0x1e)));const _0x13818a=_0x40a2bd['state']===_0x21674f(0x20d)?a113_0x7ce790[_0x21674f(0x220)]('✓\x20'+_0x40a2bd[_0x21674f(0x24d)]):a113_0x7ce790[_0x21674f(0x236)]('✗\x20'+_0x40a2bd[_0x21674f(0x24d)]);console[_0x21674f(0x239)](_0x21674f(0x1df)+_0x13818a),console[_0x21674f(0x239)](_0x21674f(0x211)+_0x40a2bd['packageVersion']),console[_0x21674f(0x239)](_0x21674f(0x1f2)+(_0x40a2bd[_0x21674f(0x252)]||a113_0x7ce790[_0x21674f(0x1e9)](_0x21674f(0x1fb)))),console[_0x21674f(0x239)]('\x20\x20Installed\x20Path:\x20\x20'+(_0x40a2bd['installedPath']||a113_0x7ce790[_0x21674f(0x1e9)](_0x21674f(0x262))));if(_0x40a2bd[_0x21674f(0x256)])console[_0x21674f(0x239)](_0x21674f(0x1f6)+_0x40a2bd[_0x21674f(0x256)]);_0x40a2bd[_0x21674f(0x24d)]!=='current'&&console[_0x21674f(0x239)](_0x21674f(0x221)+_0x40a2bd[_0x21674f(0x1fa)]);console[_0x21674f(0x239)](),console['log'](a113_0x7ce790['bold']('\x20\x20Config\x20Files')),console[_0x21674f(0x239)](a113_0x7ce790[_0x21674f(0x1e9)](_0x21674f(0x1ef)['repeat'](0x1e)));const _0x2dc9b6=getGlobalConfigPath(),_0x2c60e0=getProjectConfigPath();console[_0x21674f(0x239)](_0x21674f(0x229)+(_0x2dc9b6||a113_0x7ce790[_0x21674f(0x1e9)](_0x21674f(0x262)))),console[_0x21674f(0x239)](_0x21674f(0x23a)+(_0x2c60e0||a113_0x7ce790[_0x21674f(0x1e9)]('(not\x20found)'))),console[_0x21674f(0x239)](),console[_0x21674f(0x239)](a113_0x7ce790[_0x21674f(0x231)]('\x20\x20Config\x20JSON')),console[_0x21674f(0x239)](a113_0x7ce790[_0x21674f(0x1e9)]('\x20\x20─'[_0x21674f(0x1ea)](0x1e)));const _0x44c2ea=(_0x50c4a8,_0x2e8039)=>{const _0x25c147=_0x21674f;if(!_0x2e8039){console[_0x25c147(0x239)]('\x20\x20'+_0x50c4a8[_0x25c147(0x25b)](0x11)+'\x20'+a113_0x7ce790[_0x25c147(0x1e9)]('(no\x20file)'));return;}const _0xb2c11d=inspectCliConfigJsonFile(_0x2e8039);if(_0xb2c11d[_0x25c147(0x215)]==='ok')console[_0x25c147(0x239)]('\x20\x20'+_0x50c4a8[_0x25c147(0x25b)](0x11)+'\x20'+a113_0x7ce790[_0x25c147(0x220)]('✓\x20Valid\x20JSON'));else{if(_0xb2c11d['status']===_0x25c147(0x22e))console['log']('\x20\x20'+_0x50c4a8[_0x25c147(0x25b)](0x11)+'\x20'+a113_0x7ce790[_0x25c147(0x1f5)]('⚠\x20Empty\x20(treated\x20as\x20{})'));else _0xb2c11d['status']==='missing'?console['log']('\x20\x20'+_0x50c4a8['padEnd'](0x11)+'\x20'+a113_0x7ce790[_0x25c147(0x1e9)](_0x25c147(0x1dd))):(console['log']('\x20\x20'+_0x50c4a8[_0x25c147(0x25b)](0x11)+'\x20'+a113_0x7ce790[_0x25c147(0x236)](_0x25c147(0x237))),console[_0x25c147(0x239)]('\x20\x20'+''[_0x25c147(0x25b)](0x11)+'\x20'+a113_0x7ce790[_0x25c147(0x236)](_0xb2c11d['message'])));}};_0x44c2ea(_0x21674f(0x25c),_0x2dc9b6),_0x44c2ea(_0x21674f(0x205),_0x2c60e0);const _0x567750=loadRawConfigLayers(),_0x15bc61=[{'label':'Project','value':_0x567750['projectConfig'][_0x21674f(0x242)],'present':Object[_0x21674f(0x207)]['hasOwnProperty'][_0x21674f(0x209)](_0x567750['projectConfig'],_0x21674f(0x242)),'repairCommand':CLI_BIN_NAME+_0x21674f(0x202)},{'label':_0x21674f(0x25c),'value':_0x567750[_0x21674f(0x219)][_0x21674f(0x242)],'present':Object[_0x21674f(0x207)][_0x21674f(0x201)]['call'](_0x567750[_0x21674f(0x219)],'region'),'repairCommand':CLI_BIN_NAME+'\x20config\x20delete\x20region\x20--global'}][_0x21674f(0x263)](_0xd9ab2c=>_0xd9ab2c[_0x21674f(0x264)]&&isInvalidLovrabetRegion(_0xd9ab2c['value']));for(const [_0x5c4991,_0x377408]of[['Project',_0x567750[_0x21674f(0x250)]],['Global',_0x567750[_0x21674f(0x219)]]]){const _0x594bf=_0x377408[_0x21674f(0x21e)]&&typeof _0x377408[_0x21674f(0x21e)]===_0x21674f(0x22a)?_0x377408[_0x21674f(0x21e)]:{};for(const [_0x4ab971,_0xf23048]of Object[_0x21674f(0x243)](_0x594bf)){if(!_0xf23048||typeof _0xf23048!=='object'||!Object[_0x21674f(0x207)][_0x21674f(0x201)][_0x21674f(0x209)](_0xf23048,'region'))continue;isInvalidLovrabetRegion(_0xf23048[_0x21674f(0x242)])&&_0x15bc61['push']({'label':_0x5c4991+'\x20app\x20\x22'+_0x4ab971+'\x22','value':_0xf23048[_0x21674f(0x242)],'present':!![],'repairCommand':'Set\x20apps.'+_0x4ab971+_0x21674f(0x255)+_0x5c4991['toLowerCase']()+_0x21674f(0x25a)});}}if(_0x15bc61[_0x21674f(0x223)]>0x0){console[_0x21674f(0x239)](),console[_0x21674f(0x239)](a113_0x7ce790['bold']('\x20\x20Country/Region\x20Configuration')),console[_0x21674f(0x239)](a113_0x7ce790[_0x21674f(0x1e9)]('\x20\x20─'[_0x21674f(0x1ea)](0x1e)));for(const _0x490aae of _0x15bc61){console[_0x21674f(0x239)]('\x20\x20'+_0x490aae[_0x21674f(0x25e)]['padEnd'](0x11)+'\x20'+a113_0x7ce790[_0x21674f(0x236)](_0x21674f(0x1fe)+describeRegionValue(_0x490aae['value']))),console['log']('\x20\x20'+('Repair\x20'+_0x490aae[_0x21674f(0x25e)][_0x21674f(0x227)]()+':')[_0x21674f(0x25b)](0x10)+'\x20'+_0x490aae['repairCommand']);}}const _0x500915=[Object[_0x21674f(0x207)]['hasOwnProperty'][_0x21674f(0x209)](_0x567750[_0x21674f(0x219)],_0x21674f(0x245))?'global':null,Object[_0x21674f(0x207)][_0x21674f(0x201)][_0x21674f(0x209)](_0x567750[_0x21674f(0x250)],_0x21674f(0x245))?'project':null]['filter'](Boolean);_0x500915[_0x21674f(0x223)]>0x0&&(console['log'](_0x21674f(0x1e2)+a113_0x7ce790['yellow']('ignored\x20in\x20'+_0x500915[_0x21674f(0x246)](_0x21674f(0x213))+_0x21674f(0x25a))),_0x500915[_0x21674f(0x1e7)](_0x21674f(0x23e))&&console['log'](_0x21674f(0x1f8)+CLI_BIN_NAME+_0x21674f(0x1e3)),_0x500915[_0x21674f(0x1e7)](_0x21674f(0x253))&&console['log'](_0x21674f(0x232)+CLI_BIN_NAME+_0x21674f(0x241)));const _0x443eb8=isInvalidLovrabetRegion(_0x2616d0[_0x21674f(0x1ed)]??_0x2616d0['raw']?.['region']);_0xfe5f35&&!_0x443eb8&&(console[_0x21674f(0x239)](),console['log'](a113_0x7ce790[_0x21674f(0x231)]('\x20\x20Routing\x20Configuration')),console[_0x21674f(0x239)](a113_0x7ce790['gray'](_0x21674f(0x1ef)['repeat'](0x1e))),console['log'](_0x21674f(0x1f7)+a113_0x7ce790['red'](_0x21674f(0x22f))),console['log']('\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0xfe5f35['message']),Object[_0x21674f(0x207)][_0x21674f(0x201)][_0x21674f(0x209)](_0x567750['projectConfig'],'routing')&&console['log'](_0x21674f(0x1e0)+CLI_BIN_NAME+_0x21674f(0x24b)),Object[_0x21674f(0x207)][_0x21674f(0x201)][_0x21674f(0x209)](_0x567750[_0x21674f(0x219)],_0x21674f(0x233))&&console[_0x21674f(0x239)](_0x21674f(0x1f4)+CLI_BIN_NAME+'\x20config\x20delete\x20routing\x20--global'));console['log'](),console[_0x21674f(0x239)](a113_0x7ce790[_0x21674f(0x231)]('\x20\x20Merged\x20Config')),console[_0x21674f(0x239)](a113_0x7ce790[_0x21674f(0x1e9)]('\x20\x20─'[_0x21674f(0x1ea)](0x1e))),console[_0x21674f(0x239)](_0x21674f(0x21a)+(_0x2616d0[_0x21674f(0x247)]||a113_0x7ce790[_0x21674f(0x236)](_0x21674f(0x21d))));const _0x5b331a=_0x443eb8?a113_0x7ce790[_0x21674f(0x236)](describeRegionValue(_0x2616d0['regionConfiguredValue']??_0x2616d0[_0x21674f(0x200)]?.[_0x21674f(0x242)])+_0x21674f(0x225)):(_0x2616d0['region']??DEFAULT_LOVRABET_REGION)+'\x20('+(_0x2616d0['regionSource']??'default')+')';console[_0x21674f(0x239)](_0x21674f(0x224)+_0x5b331a),console[_0x21674f(0x239)](_0x21674f(0x1fd)+_0x2616d0[_0x21674f(0x261)]),console[_0x21674f(0x239)](_0x21674f(0x24a)+_0x2616d0[_0x21674f(0x23c)]),console[_0x21674f(0x239)](_0x21674f(0x1fc)+_0x2616d0[_0x21674f(0x23b)]),console[_0x21674f(0x239)]('\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20'+(_0x2616d0['defaultApp']||a113_0x7ce790[_0x21674f(0x1e9)](_0x21674f(0x260)))),console['log'](_0x21674f(0x214)+(_0x2616d0[_0x21674f(0x230)]||a113_0x7ce790[_0x21674f(0x1e9)](_0x21674f(0x260)))),console[_0x21674f(0x239)](_0x21674f(0x204)+(_0x2616d0['explicitAppName']||a113_0x7ce790['gray']('(none)'))),console[_0x21674f(0x239)]('\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x2616d0[_0x21674f(0x24f)]||a113_0x7ce790[_0x21674f(0x1e9)](_0x21674f(0x20f)+DEFAULT_CONFIG_VALUES['format']+')'))),console['log'](_0x21674f(0x244)+(_0x2616d0[_0x21674f(0x21c)]??a113_0x7ce790[_0x21674f(0x1e9)](_0x21674f(0x234)))),console[_0x21674f(0x239)]('\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20'+_0x2616d0[_0x21674f(0x1e4)]),console[_0x21674f(0x239)]('\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x2616d0[_0x21674f(0x1e8)]),console[_0x21674f(0x239)](_0x21674f(0x23d)+(_0x2616d0[_0x21674f(0x1f0)]?a113_0x7ce790[_0x21674f(0x220)](_0x21674f(0x226)+_0x2616d0[_0x21674f(0x1f0)][_0x21674f(0x223)]+')'):_0x293e1a?a113_0x7ce790[_0x21674f(0x220)](_0x21674f(0x235)+_0x293e1a[_0x21674f(0x223)]+')'):a113_0x7ce790['gray']('(none)')));const _0x1f87fa=Object[_0x21674f(0x217)](_0x2616d0[_0x21674f(0x21e)]);if(_0x1f87fa[_0x21674f(0x223)]>0x0){console['log'](),console[_0x21674f(0x239)](a113_0x7ce790[_0x21674f(0x231)](_0x21674f(0x1f3))),console[_0x21674f(0x239)](a113_0x7ce790['gray'](_0x21674f(0x1ef)[_0x21674f(0x1ea)](0x1e)));for(const _0x4b6bff of _0x1f87fa){const _0x3c2510=_0x2616d0[_0x21674f(0x21e)][_0x4b6bff],_0x13c9af=_0x4b6bff===_0x2616d0[_0x21674f(0x249)],_0xd4d6ed=_0x4b6bff===_0x2616d0[_0x21674f(0x230)],_0x20ae3a=_0xd4d6ed?a113_0x7ce790[_0x21674f(0x220)](_0x21674f(0x248)):'',_0x297b7b=_0x13c9af?_0x21674f(0x23f):'';console[_0x21674f(0x239)]('\x20\x20'+_0x4b6bff+_0x297b7b+_0x20ae3a),console[_0x21674f(0x239)](_0x21674f(0x1de)+_0x3c2510[_0x21674f(0x22d)]);const _0xb868c2=_0x567750[_0x21674f(0x250)][_0x21674f(0x21e)]&&typeof _0x567750[_0x21674f(0x250)][_0x21674f(0x21e)]===_0x21674f(0x22a)?_0x567750['projectConfig'][_0x21674f(0x21e)]:{},_0x1cf6e7=Object['prototype'][_0x21674f(0x201)][_0x21674f(0x209)](_0xb868c2,_0x4b6bff),_0x3302ab=isInvalidLovrabetRegion(_0x3c2510[_0x21674f(0x242)])?{'region':_0x2616d0[_0x21674f(0x242)]??DEFAULT_LOVRABET_REGION}:resolveEffectiveRegion({'appRegion':_0x3c2510[_0x21674f(0x242)],'projectRegion':_0x1cf6e7?_0x567750[_0x21674f(0x250)][_0x21674f(0x242)]:undefined,'globalRegion':_0x567750[_0x21674f(0x219)]['region'],'mergedRegion':_0x2616d0[_0x21674f(0x200)][_0x21674f(0x242)],'appName':_0x4b6bff}),_0x430286=buildAppDoctorFields(_0x3c2510,{'region':_0x3302ab[_0x21674f(0x242)],'env':_0x2616d0['env'],'apiDir':_0x2616d0['raw']['apiDir']||DEFAULT_CONFIG_VALUES[_0x21674f(0x23b)],'cookie':_0x2616d0[_0x21674f(0x1f0)]||_0x293e1a||undefined,'accessKey':_0x2616d0[_0x21674f(0x218)]});console[_0x21674f(0x239)]('\x20\x20\x20\x20region:\x20\x20\x20\x20\x20'+_0x430286['region'][_0x21674f(0x212)]+'\x20\x20'+a113_0x7ce790['gray']('('+_0x430286[_0x21674f(0x242)][_0x21674f(0x1f9)]+')')),console[_0x21674f(0x239)]('\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x430286[_0x21674f(0x261)][_0x21674f(0x212)]+'\x20\x20'+a113_0x7ce790['gray']('('+_0x430286[_0x21674f(0x261)][_0x21674f(0x1f9)]+')')),console[_0x21674f(0x239)](_0x21674f(0x21b)+_0x430286[_0x21674f(0x23b)][_0x21674f(0x212)]+'\x20\x20'+a113_0x7ce790['gray']('('+_0x430286[_0x21674f(0x23b)][_0x21674f(0x1f9)]+')'));const _0x402d68=_0x430286[_0x21674f(0x1f0)]['value']?a113_0x7ce790['green'](_0x21674f(0x226)+_0x430286[_0x21674f(0x1f0)]['value'][_0x21674f(0x223)]+')'):a113_0x7ce790['gray'](_0x21674f(0x260));console['log'](_0x21674f(0x1e1)+_0x402d68+'\x20\x20'+a113_0x7ce790[_0x21674f(0x1e9)]('('+_0x430286[_0x21674f(0x1f0)][_0x21674f(0x1f9)]+')'));const _0x421d9b=_0x430286[_0x21674f(0x218)]['value']?a113_0x7ce790[_0x21674f(0x220)]('(set,\x20length='+_0x430286[_0x21674f(0x218)]['value'][_0x21674f(0x223)]+')'):a113_0x7ce790[_0x21674f(0x1e9)](_0x21674f(0x260));console[_0x21674f(0x239)]('\x20\x20\x20\x20accessKey:\x20\x20'+_0x421d9b+'\x20\x20'+a113_0x7ce790[_0x21674f(0x1e9)]('('+_0x430286[_0x21674f(0x218)][_0x21674f(0x1f9)]+')'));}}console['log'](),console[_0x21674f(0x239)](a113_0x7ce790[_0x21674f(0x231)](_0x21674f(0x203))),console[_0x21674f(0x239)](a113_0x7ce790[_0x21674f(0x1e9)]('\x20\x20─'['repeat'](0x1e)));_0xfe5f35?console[_0x21674f(0x239)](_0x21674f(0x1f7)+a113_0x7ce790[_0x21674f(0x236)](_0x21674f(0x216))):(console[_0x21674f(0x239)]('\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+getActiveRegion()),console['log'](_0x21674f(0x206)+getApiDomain()),console['log']('\x20\x20userDomain:\x20\x20\x20\x20\x20\x20'+getUserDomain()),console[_0x21674f(0x239)](_0x21674f(0x259)+getRuntimeDomain()),console['log'](_0x21674f(0x238)+getSkillDomain()),console[_0x21674f(0x239)](_0x21674f(0x1eb)+getKbDomain()),console[_0x21674f(0x239)]('\x20\x20kbServiceDomain:\x20'+(getKbServiceDomain()??_0x21674f(0x228))),console[_0x21674f(0x239)](_0x21674f(0x210)+getAppDomain()));console['log'](),console[_0x21674f(0x239)](a113_0x7ce790[_0x21674f(0x231)]('\x20\x20Auth')),console[_0x21674f(0x239)](a113_0x7ce790[_0x21674f(0x1e9)](_0x21674f(0x1ef)[_0x21674f(0x1ea)](0x1e)));if(_0xfe5f35)console[_0x21674f(0x239)](_0x21674f(0x1f7)+a113_0x7ce790[_0x21674f(0x1f5)](_0x21674f(0x222)));else{if(_0x293e1a){const _0x3da6b8=await getIsSessionValid();console['log'](_0x21674f(0x1f7)+(_0x3da6b8?a113_0x7ce790[_0x21674f(0x220)](_0x21674f(0x22c)):a113_0x7ce790['red'](_0x21674f(0x254))));}else console['log'](_0x21674f(0x1f7)+a113_0x7ce790[_0x21674f(0x236)](_0x21674f(0x1f1)));}return console[_0x21674f(0x239)](),{'ok':!![]};}export const doctorDefinition={'service':a113_0x5e0768(0x20a),'command':a113_0x5e0768(0x24e),'description':'Diagnose\x20CLI\x20configuration\x20and\x20connectivity','risk':a113_0x5e0768(0x257),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a114_0x55e6(_0x2219d7,_0x365fbd){_0x2219d7=_0x2219d7-0xde;const _0x2faa90=a114_0x2faa();let _0x55e675=_0x2faa90[_0x2219d7];return _0x55e675;}function a114_0x2faa(){const _0x98a0d4=['long-term','4023334SdglKT','353428SsIagc','upload','file','\x20to\x20development\x20app\x20','Path\x20to\x20the\x20local\x20file\x20to\x20upload','filePath','40AkHVfr','16IKhrrT','filepath','path','Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','Development\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data','.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','17288DqPkdL','8AqdznR','trim','POST','3209136BQNmwu','string','329139gNHnKO','Uploaded\x20file:\x20','45vINEKP','read','filePath\x20is\x20required.','download','501100MGlwOS','appCode','Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20or\x20immediate\x20access','File','boolean','bool','query-url','1284371iwnbXb','validation','Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML'];a114_0x2faa=function(){return _0x98a0d4;};return a114_0x2faa();}const a114_0x175731=a114_0x55e6;(function(_0x5bbda7,_0x35f199){const _0x580856=a114_0x55e6,_0x240d2d=_0x5bbda7();while(!![]){try{const _0x2a49b7=parseInt(_0x580856(0xec))/0x1+parseInt(_0x580856(0xed))/0x2*(parseInt(_0x580856(0xf2))/0x3)+parseInt(_0x580856(0xdf))/0x4*(parseInt(_0x580856(0xe5))/0x5)+parseInt(_0x580856(0xf0))/0x6+parseInt(_0x580856(0xde))/0x7*(-parseInt(_0x580856(0xe6))/0x8)+-parseInt(_0x580856(0xf4))/0x9*(-parseInt(_0x580856(0xf8))/0xa)+-parseInt(_0x580856(0xff))/0xb;if(_0x2a49b7===_0x35f199)break;else _0x240d2d['push'](_0x240d2d['shift']());}catch(_0x106102){_0x240d2d['push'](_0x240d2d['shift']());}}}(a114_0x2faa,0xa6885));import{requireDevelopmentUploadFile}from'../../commands/common/local-file.js';import{queryDevelopmentFileUrl,uploadDevelopmentFile}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const FILE_FLAG={'name':'file','type':a114_0x175731(0xf1),'required':!![],'description':a114_0x175731(0xe3)},FILEPATH_FLAG={'name':'filepath','type':a114_0x175731(0xf1),'required':!![],'description':a114_0x175731(0xea)},DOWNLOAD_FLAG={'name':a114_0x175731(0xf7),'type':a114_0x175731(0xfc),'description':'Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL'},LONG_TERM_FLAG={'name':a114_0x175731(0x102),'type':a114_0x175731(0xfc),'description':a114_0x175731(0x101)};function requireFilePath(_0x343445){const _0x535a13=a114_0x175731,_0x278fc9=_0x343445[_0x535a13(0xee)]();if(!_0x278fc9)throw CliErrors[_0x535a13(0x100)](_0x535a13(0xf6));return _0x278fc9;}const fileUpload={'service':a114_0x175731(0xe1),'command':a114_0x175731(0xe0),'description':'Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','risk':a114_0x175731(0xf5),'flags':[FILE_FLAG],async 'dryRun'(_0x440890){const _0x4ec45c=a114_0x175731,_0x2c8d2e=requireDevelopmentUploadFile(_0x440890['str'](_0x4ec45c(0xe1)),_0x4ec45c(0xfb));return{'method':_0x4ec45c(0xef),'url':'/smartapi/common/uploadFile','body':{'appCode':_0x440890[_0x4ec45c(0xf9)],'multipart':{'file':_0x2c8d2e}},'description':'Preview:\x20upload\x20'+_0x2c8d2e['path']+_0x4ec45c(0xe2)+_0x440890['appCode']};},async 'execute'(_0x27cd66){const _0x61787c=a114_0x175731,_0x34ed1d=requireDevelopmentUploadFile(_0x27cd66['str']('file'),'File'),_0x481f4f=await uploadDevelopmentFile(_0x27cd66['appCode'],_0x34ed1d[_0x61787c(0xe8)]);return{'ok':!![],'data':_0x481f4f,'message':_0x481f4f[_0x61787c(0xe4)]?_0x61787c(0xf3)+_0x481f4f[_0x61787c(0xe4)]+_0x61787c(0xeb):_0x61787c(0xe9)};}},fileQueryUrl={'service':a114_0x175731(0xe1),'command':a114_0x175731(0xfe),'description':a114_0x175731(0xfa),'risk':a114_0x175731(0xf5),'flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0x42091c){const _0x5eec85=a114_0x175731,_0x55b152=requireFilePath(_0x42091c['str'](_0x5eec85(0xe7))),_0x3d96df=await queryDevelopmentFileUrl(_0x55b152,{'download':_0x42091c[_0x5eec85(0xfd)](_0x5eec85(0xf7)),'longTerm':_0x42091c[_0x5eec85(0xfd)](_0x5eec85(0x102))});return{'ok':!![],'data':_0x3d96df};}};export const fileDefinitions=[fileUpload,fileQueryUrl];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a115_0x182012=a115_0x4a87;function a115_0x45ca(){const _0x35f7b5=['334784zDUUSg','flowName','POST','61994EiEROL','3926195EwrqyN','flow','Create\x20a\x20draft\x20flow\x20definition\x20from\x20a\x20local\x20FlowConfig\x20file','appCode','Created\x20flow\x20','.\x20Flow\x20URL:\x20','write','3563406DHBtlX','create','datasetCode','585516vDJMNK','1541547sujgAY','854245ckAWEM','\x20(id=','48PcRBwu','17NhdXvq'];a115_0x45ca=function(){return _0x35f7b5;};return a115_0x45ca();}(function(_0x1c2d41,_0x5cdbe2){const _0x79ea9d=a115_0x4a87,_0x5bad5d=_0x1c2d41();while(!![]){try{const _0x423d28=parseInt(_0x79ea9d(0xc9))/0x1*(-parseInt(_0x79ea9d(0xcd))/0x2)+parseInt(_0x79ea9d(0xc4))/0x3+-parseInt(_0x79ea9d(0xca))/0x4+parseInt(_0x79ea9d(0xce))/0x5+parseInt(_0x79ea9d(0xc1))/0x6+parseInt(_0x79ea9d(0xc6))/0x7*(-parseInt(_0x79ea9d(0xc8))/0x8)+parseInt(_0x79ea9d(0xc5))/0x9;if(_0x423d28===_0x5cdbe2)break;else _0x5bad5d['push'](_0x5bad5d['shift']());}catch(_0x5d77fe){_0x5bad5d['push'](_0x5bad5d['shift']());}}}(a115_0x45ca,0x62534));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{asDryRunResult}from'../../commands/common/dry-run.js';import{createFlowDefinition}from'../../core/api-client.js';function a115_0x4a87(_0x55a6a1,_0x5c195c){_0x55a6a1=_0x55a6a1-0xbb;const _0x45ca94=a115_0x45ca();let _0x4a874b=_0x45ca94[_0x55a6a1];return _0x4a874b;}import{FLOW_FILE_FLAG,FLOW_PATHS,buildFlowUrl,confirmFlowWrite,flowSelector,prepareFlowWrite,readFlowFilePath}from'../../commands/flow/shared.js';export const flowCreate={'service':a115_0x182012(0xbb),'command':a115_0x182012(0xc2),'description':a115_0x182012(0xbc),'risk':a115_0x182012(0xc0),'flags':[FLOW_FILE_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x269c35){readFlowFilePath(_0x269c35);},async 'dryRun'(_0x5836be){const _0x1f4362=a115_0x182012,{request:_0x1c1822,warnings:_0x234aa2}=await prepareFlowWrite(readFlowFilePath(_0x5836be),_0x5836be[_0x1f4362(0xbd)]);return asDryRunResult({'operation':_0x1f4362(0xc2),'selector':{'appCode':_0x5836be[_0x1f4362(0xbd)],'flowName':_0x1c1822['flowName'],..._0x1c1822[_0x1f4362(0xc3)]?{'datasetCode':_0x1c1822[_0x1f4362(0xc3)]}:{}},'before':null,'after':_0x1c1822,'request':_0x1c1822,'dryRun':!![],'backend':{'method':_0x1f4362(0xcc),'path':FLOW_PATHS[_0x1f4362(0xc2)]},'warnings':_0x234aa2},{'method':'POST','url':FLOW_PATHS['create']});},async 'execute'(_0x5b8a0d){const _0x34e498=a115_0x182012,{request:_0x3ff0c8,warnings:_0x5740aa}=await prepareFlowWrite(readFlowFilePath(_0x5b8a0d),_0x5b8a0d[_0x34e498(0xbd)]);await confirmFlowWrite(_0x5b8a0d,_0x34e498(0xc2),_0x3ff0c8);const _0x320ed4=await createFlowDefinition(_0x3ff0c8),_0x1b6476=buildFlowUrl(_0x5b8a0d[_0x34e498(0xbd)],_0x320ed4['id']),_0x501ea6=''+(_0x320ed4[_0x34e498(0xcb)]||_0x3ff0c8[_0x34e498(0xcb)])+(_0x320ed4['id']?_0x34e498(0xc7)+_0x320ed4['id']+')':'');return{'ok':!![],'data':{'operation':_0x34e498(0xc2),'selector':flowSelector(_0x5b8a0d[_0x34e498(0xbd)],_0x320ed4['id'],_0x320ed4),'before':null,'after':_0x320ed4,'flowUrl':_0x1b6476,'dryRun':![],'backend':{'method':_0x34e498(0xcc),'path':FLOW_PATHS[_0x34e498(0xc2)]},'warnings':_0x5740aa},'message':_0x34e498(0xbe)+_0x501ea6+_0x34e498(0xbf)+_0x1b6476};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a116_0x211add=a116_0x580f;(function(_0x1e3746,_0x58db63){const _0x3dac1d=a116_0x580f,_0x3c03f1=_0x1e3746();while(!![]){try{const _0x22760b=parseInt(_0x3dac1d(0x90))/0x1*(parseInt(_0x3dac1d(0x73))/0x2)+parseInt(_0x3dac1d(0x89))/0x3*(parseInt(_0x3dac1d(0x8f))/0x4)+-parseInt(_0x3dac1d(0x83))/0x5+parseInt(_0x3dac1d(0x7e))/0x6*(-parseInt(_0x3dac1d(0x8a))/0x7)+parseInt(_0x3dac1d(0x8d))/0x8*(-parseInt(_0x3dac1d(0x86))/0x9)+parseInt(_0x3dac1d(0x85))/0xa*(-parseInt(_0x3dac1d(0x91))/0xb)+parseInt(_0x3dac1d(0x79))/0xc;if(_0x22760b===_0x58db63)break;else _0x3c03f1['push'](_0x3c03f1['shift']());}catch(_0x1f6320){_0x3c03f1['push'](_0x3c03f1['shift']());}}}(a116_0x2964,0x783e3));import{mkdir,stat}from'node:fs/promises';function a116_0x580f(_0x400193,_0x5581ad){_0x400193=_0x400193-0x71;const _0x296480=a116_0x2964();let _0x580fda=_0x296480[_0x400193];return _0x580fda;}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';import{CliErrors}from'../../errors.js';function a116_0x2964(){const _0xe84bf6=['9OaspWk','code','Write\x20a\x20portable\x20normalized\x20FlowConfig\x20JSON\x20file','429lQGezj','217pWqZdZ','str','Flow\x20','6475832SWofww','flow','27436BqGQnD','1018hCHEKa','1496077GUVPOj','Overwrite\x20an\x20existing\x20output\x20file','read','output','bool','138NkCnpY','\x20to\x20','detail','validation','ENOENT','Pass\x20--force\x20to\x20overwrite\x20it.','14995596tJvpic','trim','warnings','Wrote\x20FlowConfig\x20for\x20','flowName','75108UsBrHL','EEXIST','appCode','FlowConfig\x20output\x20already\x20exists:\x20','flowCode','1013195TIQBiN','force','30IRyBde'];a116_0x2964=function(){return _0xe84bf6;};return a116_0x2964();}import{FLOW_ID_FLAG,flowDefinitionToConfig,readFlowId}from'../../commands/flow/shared.js';export const flowDetail={'service':a116_0x211add(0x8e),'command':a116_0x211add(0x75),'description':'Get\x20one\x20design-time\x20flow\x20definition','risk':a116_0x211add(0x93),'flags':[FLOW_ID_FLAG,{'name':a116_0x211add(0x71),'type':'string','description':a116_0x211add(0x88)},{'name':'force','type':'boolean','description':a116_0x211add(0x92)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x29e837){readFlowId(_0x29e837);},async 'execute'(_0x20178c){const _0x4a9f62=a116_0x211add,_0x20fc2d=readFlowId(_0x20178c),_0x2af1ca=_0x20178c[_0x4a9f62(0x8b)](_0x4a9f62(0x71))[_0x4a9f62(0x7a)](),_0xd142ed=_0x2af1ca?resolve(_0x2af1ca):undefined;if(_0xd142ed&&!_0x20178c[_0x4a9f62(0x72)](_0x4a9f62(0x84))&&await fileExists(_0xd142ed))throw CliErrors[_0x4a9f62(0x76)](_0x4a9f62(0x81)+_0xd142ed,_0x4a9f62(0x78));const _0x152dfc=await getFlowDefinition(_0x20178c[_0x4a9f62(0x80)],_0x20fc2d);let _0x3c6454;if(_0xd142ed){const _0x2ce65c=flowDefinitionToConfig(_0x152dfc);await mkdir(dirname(_0xd142ed),{'recursive':!![]});try{await writeNormalizedFlowConfig(_0xd142ed,_0x2ce65c['config'],{'overwrite':_0x20178c[_0x4a9f62(0x72)]('force')});}catch(_0x4071f9){if(isAlreadyExistsError(_0x4071f9))throw CliErrors['validation'](_0x4a9f62(0x81)+_0xd142ed,_0x4a9f62(0x78));throw _0x4071f9;}_0x3c6454={'path':_0xd142ed,'warnings':_0x2ce65c[_0x4a9f62(0x7b)]};}return{'ok':!![],'data':{'flow':_0x152dfc,..._0x3c6454?{'output':_0x3c6454}:{}},'message':_0x3c6454?_0x4a9f62(0x7c)+(_0x152dfc[_0x4a9f62(0x7d)]||_0x152dfc[_0x4a9f62(0x82)]||_0x20fc2d)+_0x4a9f62(0x74)+_0x3c6454['path']:_0x4a9f62(0x8c)+(_0x152dfc[_0x4a9f62(0x7d)]||_0x152dfc['flowCode']||_0x20fc2d)};}};async function fileExists(_0x51ec4e){try{return await stat(_0x51ec4e),!![];}catch(_0x37acdf){return!isNotFoundError(_0x37acdf);}}function isNotFoundError(_0x242eac){const _0x273c86=a116_0x211add;return _0x242eac?.[_0x273c86(0x87)]===_0x273c86(0x77);}function isAlreadyExistsError(_0x20689c){const _0x16edb9=a116_0x211add;return _0x20689c?.[_0x16edb9(0x87)]===_0x16edb9(0x7f);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x386b17,_0x91489f){const _0x7eb637=a117_0x4a4d,_0x40f7bc=_0x386b17();while(!![]){try{const _0x2bd693=-parseInt(_0x7eb637(0x82))/0x1*(parseInt(_0x7eb637(0x86))/0x2)+-parseInt(_0x7eb637(0x81))/0x3+parseInt(_0x7eb637(0x8a))/0x4*(parseInt(_0x7eb637(0x88))/0x5)+-parseInt(_0x7eb637(0x8b))/0x6*(-parseInt(_0x7eb637(0x83))/0x7)+parseInt(_0x7eb637(0x89))/0x8+parseInt(_0x7eb637(0x80))/0x9*(parseInt(_0x7eb637(0x84))/0xa)+parseInt(_0x7eb637(0x87))/0xb*(-parseInt(_0x7eb637(0x85))/0xc);if(_0x2bd693===_0x91489f)break;else _0x40f7bc['push'](_0x40f7bc['shift']());}catch(_0x337e32){_0x40f7bc['push'](_0x40f7bc['shift']());}}}(a117_0x5284,0x49018));function a117_0x4a4d(_0x1b8cf6,_0x27d775){_0x1b8cf6=_0x1b8cf6-0x80;const _0x5284b4=a117_0x5284();let _0x4a4d13=_0x5284b4[_0x1b8cf6];return _0x4a4d13;}import{flowValidate}from'../../commands/flow/validate.js';import{flowList}from'../../commands/flow/list.js';import{flowDetail}from'../../commands/flow/detail.js';import{flowCreate}from'../../commands/flow/create.js';import{flowUpdate}from'../../commands/flow/update.js';function a117_0x5284(){const _0xffd19=['492525EYiGKc','160281yasIYV','5HnpcuZ','14HQCGlm','60FrcLIU','382416IDpNUL','82774vOUwfb','385mURQtK','2772155lptbGq','1945512SBlfOC','4DYtkUD','1646412pbBXpS'];a117_0x5284=function(){return _0xffd19;};return a117_0x5284();}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
|
-
|
|
1
|
+
const a118_0x59722b=a118_0x151e;(function(_0x54d820,_0x255001){const _0x92d847=a118_0x151e,_0x1dbf98=_0x54d820();while(!![]){try{const _0x18d66a=-parseInt(_0x92d847(0xcf))/0x1*(parseInt(_0x92d847(0xd5))/0x2)+-parseInt(_0x92d847(0xda))/0x3+-parseInt(_0x92d847(0xce))/0x4*(parseInt(_0x92d847(0xd2))/0x5)+-parseInt(_0x92d847(0xcd))/0x6+-parseInt(_0x92d847(0xd9))/0x7*(-parseInt(_0x92d847(0xc7))/0x8)+parseInt(_0x92d847(0xb9))/0x9*(parseInt(_0x92d847(0xc4))/0xa)+parseInt(_0x92d847(0xc2))/0xb;if(_0x18d66a===_0x255001)break;else _0x1dbf98['push'](_0x1dbf98['shift']());}catch(_0x58d279){_0x1dbf98['push'](_0x1dbf98['shift']());}}}(a118_0x8be7,0x569d4));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a118_0x8be7(){const _0xf2a77d=['validation','published','22566885KTbdOZ','page-size','8130jVxkkB','Filter\x20by\x20flow\x20name','list','73768KQVBlR','isSafeInteger','number','flow-name','flow-status','page','3358632DjrUQg','1468zHBGBa','93vevJFr','Page\x20size','read','7430EOtjxy','draft','dataset-code','13742DHXcyS','string','num','flow','287IicTum','1706688zCgYbt','Filter\x20by\x20flow\x20status','\x20flow\x20definition(s)','flow-code','Filter\x20by\x20flow\x20type','2637EVKeEQ','str','flow-type','--page\x20must\x20be\x20a\x20positive\x20integer.','appCode','Filter\x20by\x20dataset\x20code','--page-size\x20must\x20be\x20a\x20positive\x20integer.'];a118_0x8be7=function(){return _0xf2a77d;};return a118_0x8be7();}function a118_0x151e(_0x1116be,_0x5e020d){_0x1116be=_0x1116be-0xb8;const _0x8be76d=a118_0x8be7();let _0x151e09=_0x8be76d[_0x1116be];return _0x151e09;}import{listFlowDefinitions}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const FLOW_STATUSES=[a118_0x59722b(0xd3),a118_0x59722b(0xc1)];export const flowList={'service':a118_0x59722b(0xd8),'command':a118_0x59722b(0xc6),'description':'List\x20design-time\x20flow\x20definitions\x20for\x20the\x20current\x20app','risk':a118_0x59722b(0xd1),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a118_0x59722b(0xdd),'type':'string','description':'Filter\x20by\x20exact\x20server-generated\x20flow\x20code'},{'name':a118_0x59722b(0xca),'type':a118_0x59722b(0xd6),'description':a118_0x59722b(0xc5)},{'name':a118_0x59722b(0xcb),'type':a118_0x59722b(0xd6),'description':a118_0x59722b(0xdb),'enum':FLOW_STATUSES},{'name':a118_0x59722b(0xd4),'type':a118_0x59722b(0xd6),'description':a118_0x59722b(0xbe)},{'name':a118_0x59722b(0xbb),'type':a118_0x59722b(0xd6),'description':a118_0x59722b(0xb8)},{'name':'page','type':a118_0x59722b(0xc9),'description':'Page\x20number\x20(1-based)','default':0x1},{'name':'page-size','type':a118_0x59722b(0xc9),'description':a118_0x59722b(0xd0),'default':0x14}],async 'validate'(_0xd6765){const _0x36908c=a118_0x59722b,_0x1a6084=_0xd6765[_0x36908c(0xd7)](_0x36908c(0xcc),0x1),_0x49135d=_0xd6765[_0x36908c(0xd7)](_0x36908c(0xc3),0x14);if(!Number[_0x36908c(0xc8)](_0x1a6084)||_0x1a6084<0x1)throw CliErrors['validation'](_0x36908c(0xbc));if(!Number[_0x36908c(0xc8)](_0x49135d)||_0x49135d<0x1)throw CliErrors[_0x36908c(0xc0)](_0x36908c(0xbf));},async 'execute'(_0x4a860c){const _0x2b4f68=a118_0x59722b,{items:_0xc8ed06,paging:_0x1bdb00}=await listFlowDefinitions(_0x4a860c[_0x2b4f68(0xbd)],{'flowCode':optionalString(_0x4a860c[_0x2b4f68(0xba)]('flow-code')),'flowName':optionalString(_0x4a860c['str'](_0x2b4f68(0xca))),'flowStatus':optionalString(_0x4a860c['str'](_0x2b4f68(0xcb))),'datasetCode':optionalString(_0x4a860c['str']('dataset-code')),'flowType':optionalString(_0x4a860c['str'](_0x2b4f68(0xbb))),'pageNum':_0x4a860c[_0x2b4f68(0xd7)](_0x2b4f68(0xcc),0x1),'pageSize':_0x4a860c[_0x2b4f68(0xd7)](_0x2b4f68(0xc3),0x14)});return{'ok':!![],'data':{'appCode':_0x4a860c['appCode'],'flows':_0xc8ed06,'paging':_0x1bdb00},'message':'Found\x20'+_0xc8ed06['length']+_0x2b4f68(0xdc)};}};function optionalString(_0x53b4fa){const _0x112933=_0x53b4fa['trim']();return _0x112933||undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a119_0x3c74(){const _0x492051=['3qsLblp','appCode','49305suMZdo','48ewpihg','12VkQCPV','Publish\x20the\x20current\x20flow\x20definition\x20draft','6043221ZcHzdH','POST','81053gmEunf','184xFpZJi','4949351tpowUZ','.\x20Flow\x20URL:\x20','flow','2136990YueLNd','write','665313vztYfj','16qFaMgh','452068paCJZD','Published\x20flow\x20','publish'];a119_0x3c74=function(){return _0x492051;};return a119_0x3c74();}const a119_0x39d63c=a119_0x573f;function a119_0x573f(_0x4f7c86,_0x20656d){_0x4f7c86=_0x4f7c86-0xf0;const _0x3c74da=a119_0x3c74();let _0x573f1f=_0x3c74da[_0x4f7c86];return _0x573f1f;}(function(_0x47c6a4,_0x40ff6e){const _0x400a30=a119_0x573f,_0x1d2e3f=_0x47c6a4();while(!![]){try{const _0x498836=-parseInt(_0x400a30(0xf3))/0x1*(-parseInt(_0x400a30(0xf0))/0x2)+parseInt(_0x400a30(0x102))/0x3*(-parseInt(_0x400a30(0x103))/0x4)+-parseInt(_0x400a30(0xf5))/0x5*(-parseInt(_0x400a30(0xf6))/0x6)+parseInt(_0x400a30(0xfb))/0x7*(-parseInt(_0x400a30(0xfc))/0x8)+parseInt(_0x400a30(0xf9))/0x9+-parseInt(_0x400a30(0x100))/0xa+-parseInt(_0x400a30(0xfd))/0xb*(-parseInt(_0x400a30(0xf7))/0xc);if(_0x498836===_0x40ff6e)break;else _0x1d2e3f['push'](_0x1d2e3f['shift']());}catch(_0x2fe88e){_0x1d2e3f['push'](_0x1d2e3f['shift']());}}}(a119_0x3c74,0x7cd44));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{publishFlowDefinition}from'../../core/api-client.js';import{FLOW_ID_FLAG,FLOW_PATHS,buildFlowUrl,buildFlowIdDryRun,flowSelector,readFlowId}from'../../commands/flow/shared.js';export const flowPublish={'service':a119_0x39d63c(0xff),'command':a119_0x39d63c(0xf2),'description':a119_0x39d63c(0xf8),'risk':a119_0x39d63c(0x101),'flags':[FLOW_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x336d18){readFlowId(_0x336d18);},async 'dryRun'(_0x404cd8){const _0x3c4b06=a119_0x39d63c,_0x36114a=readFlowId(_0x404cd8);return buildFlowIdDryRun(_0x3c4b06(0xf2),FLOW_PATHS['publish'],_0x404cd8[_0x3c4b06(0xf4)],_0x36114a,{'id':_0x36114a,'flowStatus':'published'});},async 'execute'(_0x3006d2){const _0x534680=a119_0x39d63c,_0x244b11=readFlowId(_0x3006d2),_0x2a6535=await publishFlowDefinition(_0x3006d2[_0x534680(0xf4)],_0x244b11),_0x2a0a97=buildFlowUrl(_0x3006d2[_0x534680(0xf4)],_0x244b11);return{'ok':!![],'data':{'operation':_0x534680(0xf2),'selector':flowSelector(_0x3006d2[_0x534680(0xf4)],_0x244b11,_0x2a6535),'before':null,'after':_0x2a6535,'flowUrl':_0x2a0a97,'dryRun':![],'backend':{'method':_0x534680(0xfa),'path':FLOW_PATHS[_0x534680(0xf2)]},'warnings':[]},'message':_0x534680(0xf1)+(_0x2a6535['flowName']||_0x2a6535['flowCode']||_0x244b11)+_0x534680(0xfe)+_0x2a0a97};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a120_0xebf6a9=a120_0x7eed;(function(_0x17c39e,_0x189939){const _0x259c8f=a120_0x7eed,_0x3738c4=_0x17c39e();while(!![]){try{const _0x2acca2=-parseInt(_0x259c8f(0x14b))/0x1*(-parseInt(_0x259c8f(0x129))/0x2)+parseInt(_0x259c8f(0x135))/0x3*(parseInt(_0x259c8f(0x12c))/0x4)+-parseInt(_0x259c8f(0x149))/0x5+-parseInt(_0x259c8f(0x137))/0x6+parseInt(_0x259c8f(0x148))/0x7+-parseInt(_0x259c8f(0x13f))/0x8+parseInt(_0x259c8f(0x12d))/0x9*(parseInt(_0x259c8f(0x139))/0xa);if(_0x2acca2===_0x189939)break;else _0x3738c4['push'](_0x3738c4['shift']());}catch(_0x5c432e){_0x3738c4['push'](_0x3738c4['shift']());}}}(a120_0xb3d5,0xccc8c));import{CliErrors}from'../../errors.js';export const FLOW_RUNTIME_PAGE_FLAG={'name':a120_0xebf6a9(0x145),'type':'number','description':a120_0xebf6a9(0x131),'default':0x1};export const FLOW_RUNTIME_PAGE_SIZE_FLAG={'name':a120_0xebf6a9(0x13e),'type':a120_0xebf6a9(0x127),'description':'Page\x20size\x20(1-100)','default':0x14};export const FLOW_RUNTIME_ROLE_REF_FLAG={'name':a120_0xebf6a9(0x138),'type':a120_0xebf6a9(0x14c),'required':!![],'description':a120_0xebf6a9(0x147)};export function readRuntimePagination(_0x12dfd4){const _0x4d954d=a120_0xebf6a9,_0x135d54=_0x12dfd4[_0x4d954d(0x141)](_0x4d954d(0x145),0x1),_0x15e7e3=_0x12dfd4[_0x4d954d(0x141)]('page-size',0x14);if(!Number['isSafeInteger'](_0x135d54)||_0x135d54<0x1)throw CliErrors['validation']('--page\x20must\x20be\x20a\x20positive\x20integer.');if(!Number[_0x4d954d(0x14d)](_0x15e7e3)||_0x15e7e3<0x1||_0x15e7e3>0x64)throw CliErrors[_0x4d954d(0x12f)]('--page-size\x20must\x20be\x20an\x20integer\x20between\x201\x20and\x20100.');return{'page':_0x135d54,'pageSize':_0x15e7e3};}export function paginateRuntimeItems(_0x22f9b2,_0x59fac2,_0x5440b7){const _0x49225b=a120_0xebf6a9,_0x33c802=(_0x59fac2-0x1)*_0x5440b7;return{'items':_0x22f9b2[_0x49225b(0x143)](_0x33c802,_0x33c802+_0x5440b7),'paging':{'currentPage':_0x59fac2,'pageSize':_0x5440b7,'totalCount':_0x22f9b2['length']}};}function a120_0xb3d5(){const _0x41c918=['join','roleType','trim','map','page-size','11092720ekwEsE','Disambiguate\x20with\x20--role\x20<id>.','num','nickName','slice','userCount','page','userName','Runtime\x20role\x20id\x20or\x20exact\x20role\x20name','9998681NBlVsr','3510235NJwTfE','Runtime\x20role\x20name\x20\x22','12oMaldg','string','isSafeInteger','Pass\x20--role\x20<id|name>.','number','flagMissing','189170XGtgIt','email','filter','80CgdJUJ','9pTynNF','\x22\x20is\x20ambiguous\x20(ids:\x20','validation','code','Page\x20index\x20(1-based)','roleName','remark','permitCount','170367Rmkjap','length','8592018tgwovE','role','6602530wWDNHD'];a120_0xb3d5=function(){return _0x41c918;};return a120_0xb3d5();}export function projectRuntimeRole(_0x15459f){const _0x4e1349=a120_0xebf6a9;return{'id':_0x15459f['id'],'roleName':_0x15459f['roleName']??null,'roleType':_0x15459f[_0x4e1349(0x13b)]??null,'remark':_0x15459f[_0x4e1349(0x133)]??null,'userCount':_0x15459f[_0x4e1349(0x144)]??0x0,'permitCount':_0x15459f[_0x4e1349(0x134)]??0x0};}export function projectRuntimeUser(_0x26a079){const _0x67673=a120_0xebf6a9,_0xdea3e3=normalizeRuntimeUserId(_0x26a079[_0x67673(0x130)]);if(!_0xdea3e3)return null;return{'userId':_0xdea3e3,'username':_0x26a079[_0x67673(0x146)]??null,'nickname':_0x26a079[_0x67673(0x142)]??null,'displayName':_0x26a079['displayName']??null,'email':_0x26a079[_0x67673(0x12a)]??null,'status':_0x26a079['status']??null};}export function projectRuntimeRoleMember(_0x413e13){const _0x40088a=normalizeRuntimeUserId(_0x413e13['userId']);if(!_0x40088a)return null;return{'userId':_0x40088a,'username':_0x413e13['username']??null,'nickname':_0x413e13['nickname']??null};}export function readRuntimeRoleRef(_0x4338a0){const _0x4810d1=a120_0xebf6a9,_0x469ff9=_0x4338a0['str']('role')[_0x4810d1(0x13c)]();if(!_0x469ff9)throw CliErrors[_0x4810d1(0x128)](_0x4810d1(0x138),_0x4810d1(0x14e));return _0x469ff9;}function a120_0x7eed(_0x234b99,_0x36c25d){_0x234b99=_0x234b99-0x127;const _0xb3d50b=a120_0xb3d5();let _0x7eedf7=_0xb3d50b[_0x234b99];return _0x7eedf7;}export function resolveRuntimeRoleGroup(_0x2106a9,_0x119663,_0x36ba19){const _0xfc01d4=a120_0xebf6a9,_0x17600c=/^\d+$/['test'](_0x119663)?_0x36ba19[_0xfc01d4(0x12b)](_0x43f720=>_0x43f720['id']===Number(_0x119663)):_0x36ba19['filter'](_0x36ef82=>_0x36ef82[_0xfc01d4(0x132)]===_0x119663);if(_0x17600c[_0xfc01d4(0x136)]===0x0)throw CliErrors[_0xfc01d4(0x12f)]('Runtime\x20role\x20\x22'+_0x119663+'\x22\x20not\x20found\x20in\x20app\x20'+_0x2106a9+'.','Run\x20`flow\x20runtime-role-list`\x20to\x20see\x20runtime\x20roles.');if(_0x17600c['length']>0x1){const _0x2e5094=_0x17600c[_0xfc01d4(0x13d)](_0xbab20f=>_0xbab20f['id'])[_0xfc01d4(0x13a)](',\x20');throw CliErrors['validation'](_0xfc01d4(0x14a)+_0x119663+_0xfc01d4(0x12e)+_0x2e5094+').',_0xfc01d4(0x140));}return _0x17600c[0x0];}function normalizeRuntimeUserId(_0x50d2b6){const _0x2c8af1=a120_0xebf6a9;if(typeof _0x50d2b6!==_0x2c8af1(0x14c)&&typeof _0x50d2b6!=='number')return null;const _0x2344fd=String(_0x50d2b6)[_0x2c8af1(0x13c)]();return _0x2344fd||null;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a121_0x19726c=a121_0x16bf;(function(_0x1e88be,_0x446579){const _0x479200=a121_0x16bf,_0x3ef2b4=_0x1e88be();while(!![]){try{const _0xcf7fa3=-parseInt(_0x479200(0x16d))/0x1+parseInt(_0x479200(0x161))/0x2+parseInt(_0x479200(0x170))/0x3+-parseInt(_0x479200(0x16e))/0x4*(parseInt(_0x479200(0x15f))/0x5)+-parseInt(_0x479200(0x165))/0x6*(-parseInt(_0x479200(0x171))/0x7)+-parseInt(_0x479200(0x162))/0x8+-parseInt(_0x479200(0x163))/0x9*(-parseInt(_0x479200(0x166))/0xa);if(_0xcf7fa3===_0x446579)break;else _0x3ef2b4['push'](_0x3ef2b4['shift']());}catch(_0x2d0393){_0x3ef2b4['push'](_0x3ef2b4['shift']());}}}(a121_0xe31c,0x4fe18));function a121_0x16bf(_0x1deec7,_0x589b2e){_0x1deec7=_0x1deec7-0x15e;const _0xe31c8d=a121_0xe31c();let _0x16bfb8=_0xe31c8d[_0x1deec7];return _0x16bfb8;}function a121_0xe31c(){const _0x36a14a=['map','2290270zLzmHw','runtime-role-list','1060274OfjIeF','4190312CpZxIe','9qOStnJ','trim','2390928vmlOSC','1986230Rdauvq','string','appCode','read','List\x20runtime\x20app\x20roles\x20for\x20approval\x20assignee\x20selection','str','flow','424545ImyjQL','4vUOxVg','\x20runtime\x20role(s)','1818996jAiGXV','7AqDmna'];a121_0xe31c=function(){return _0x36a14a;};return a121_0xe31c();}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{FLOW_RUNTIME_PAGE_FLAG,FLOW_RUNTIME_PAGE_SIZE_FLAG,projectRuntimeRole,readRuntimePagination}from'../../commands/flow/runtime-resources-shared.js';import{listApprovalRuntimeRoles}from'../../core/api-client.js';export const flowRuntimeRoleList={'service':a121_0x19726c(0x16c),'command':a121_0x19726c(0x160),'description':a121_0x19726c(0x16a),'risk':a121_0x19726c(0x169),'flags':[{'name':'keyword','type':a121_0x19726c(0x167),'description':'Optional\x20runtime\x20role-name\x20keyword'},FLOW_RUNTIME_PAGE_FLAG,FLOW_RUNTIME_PAGE_SIZE_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x37a18f){readRuntimePagination(_0x37a18f);},async 'execute'(_0x3153fa){const _0x7a3719=a121_0x19726c,{page:_0x48da9e,pageSize:_0x159cbf}=readRuntimePagination(_0x3153fa),_0x2c0fb6=_0x3153fa[_0x7a3719(0x16b)]('keyword')[_0x7a3719(0x164)](),{items:_0x31095c,paging:_0x35282f}=await listApprovalRuntimeRoles(_0x3153fa['appCode'],{..._0x2c0fb6?{'roleName':_0x2c0fb6}:{},'currentPage':_0x48da9e,'pageSize':_0x159cbf}),_0x57a479=_0x31095c[_0x7a3719(0x15e)](projectRuntimeRole);return{'ok':!![],'data':{'appCode':_0x3153fa[_0x7a3719(0x168)],'scope':'runtime',..._0x2c0fb6?{'keyword':_0x2c0fb6}:{},'roles':_0x57a479,'paging':_0x35282f},'message':'Found\x20'+_0x57a479['length']+_0x7a3719(0x16f)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a122_0xd6156b=a122_0x251e;(function(_0x3c8dfb,_0x21a6c0){const _0x5e6aa6=a122_0x251e,_0x10b816=_0x3c8dfb();while(!![]){try{const _0x460413=-parseInt(_0x5e6aa6(0xd1))/0x1+-parseInt(_0x5e6aa6(0xc4))/0x2+-parseInt(_0x5e6aa6(0xcc))/0x3*(parseInt(_0x5e6aa6(0xcf))/0x4)+-parseInt(_0x5e6aa6(0xca))/0x5+parseInt(_0x5e6aa6(0xc8))/0x6+parseInt(_0x5e6aa6(0xc0))/0x7*(-parseInt(_0x5e6aa6(0xc1))/0x8)+parseInt(_0x5e6aa6(0xc7))/0x9;if(_0x460413===_0x21a6c0)break;else _0x10b816['push'](_0x10b816['shift']());}catch(_0x40d7db){_0x10b816['push'](_0x10b816['shift']());}}}(a122_0x39f6,0xd2950));function a122_0x251e(_0x18fcbe,_0x1fce15){_0x18fcbe=_0x18fcbe-0xbd;const _0x39f606=a122_0x39f6();let _0x251ed3=_0x39f606[_0x18fcbe];return _0x251ed3;}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{FLOW_RUNTIME_PAGE_FLAG,FLOW_RUNTIME_PAGE_SIZE_FLAG,FLOW_RUNTIME_ROLE_REF_FLAG,paginateRuntimeItems,projectRuntimeRoleMember,readRuntimePagination,readRuntimeRoleRef,resolveRuntimeRoleGroup}from'../../commands/flow/runtime-resources-shared.js';import{listApprovalRuntimeRoleUsers}from'../../core/api-client.js';export const flowRuntimeRoleUserList={'service':'flow','command':a122_0xd6156b(0xcd),'description':'List\x20members\x20of\x20one\x20runtime\x20app\x20role\x20for\x20approval\x20verification','risk':'read','flags':[FLOW_RUNTIME_ROLE_REF_FLAG,FLOW_RUNTIME_PAGE_FLAG,FLOW_RUNTIME_PAGE_SIZE_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x54ab45){readRuntimeRoleRef(_0x54ab45),readRuntimePagination(_0x54ab45);},async 'execute'(_0x48ba9d){const _0x3a7c76=a122_0xd6156b,_0x1dc9b7=resolveRuntimeRoleGroup(_0x48ba9d[_0x3a7c76(0xc3)],readRuntimeRoleRef(_0x48ba9d),await listApprovalRuntimeRoleUsers(_0x48ba9d[_0x3a7c76(0xc3)])),_0x41b41a=(_0x1dc9b7[_0x3a7c76(0xc9)]??[])[_0x3a7c76(0xce)](projectRuntimeRoleMember)['filter'](_0x7e087a=>_0x7e087a!==null),{page:_0x4d21c1,pageSize:_0x4e215f}=readRuntimePagination(_0x48ba9d),_0x2ac03a=paginateRuntimeItems(_0x41b41a,_0x4d21c1,_0x4e215f);return{'ok':!![],'data':{'appCode':_0x48ba9d[_0x3a7c76(0xc3)],'scope':_0x3a7c76(0xd0),'role':{'id':_0x1dc9b7['id'],'roleName':_0x1dc9b7['roleName']??null,'roleType':_0x1dc9b7[_0x3a7c76(0xc6)]??null},'users':_0x2ac03a[_0x3a7c76(0xcb)],'paging':_0x2ac03a[_0x3a7c76(0xc2)]},'message':_0x3a7c76(0xbf)+_0x41b41a[_0x3a7c76(0xbd)]+_0x3a7c76(0xc5)+(_0x1dc9b7[_0x3a7c76(0xbe)]??_0x1dc9b7['id'])};}};function a122_0x39f6(){const _0x39f7b3=['length','roleName','Found\x20','7dbivuD','12655640jWXiUl','paging','appCode','1248320bTqKFe','\x20runtime\x20member(s)\x20in\x20role\x20','roleType','42117840IRUjsl','5790162TLtcBs','userList','5735525gTILcG','items','102ZRiuqJ','runtime-role-user-list','map','143036ZkpuPC','runtime','213217pztjEc'];a122_0x39f6=function(){return _0x39f7b3;};return a122_0x39f6();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a123_0x3073(){const _0x20c2e8=['toLowerCase','paging','runtime','displayName','code','User\x20id,\x20username,\x20nickname,\x20display\x20name,\x20or\x20email\x20keyword','335382AgAonu','userName','3778838SptfzJ','Found\x20','795273FKjRWy','str','filter','items','3902850MFvuod','string','Pass\x20--keyword\x20<text>.','272336meDNzE','1680756ZvovKT','keyword','nickName','Search\x20runtime\x20app\x20users\x20for\x20approval\x20assignee\x20selection','24mePhgR','trim','flagMissing','\x20runtime\x20app\x20user(s)\x20matching\x20\x22','3226188FAUEOw','length','appCode','includes','email','map'];a123_0x3073=function(){return _0x20c2e8;};return a123_0x3073();}const a123_0x121755=a123_0x3965;(function(_0x1e5887,_0x166c4a){const _0x4c6eb7=a123_0x3965,_0xd18017=_0x1e5887();while(!![]){try{const _0x20bc3f=parseInt(_0x4c6eb7(0x1b8))/0x1+parseInt(_0x4c6eb7(0x1c3))/0x2+parseInt(_0x4c6eb7(0x1bc))/0x3+parseInt(_0x4c6eb7(0x1ac))/0x4+parseInt(_0x4c6eb7(0x1c0))/0x5+-parseInt(_0x4c6eb7(0x1c4))/0x6+parseInt(_0x4c6eb7(0x1ba))/0x7*(-parseInt(_0x4c6eb7(0x1a8))/0x8);if(_0x20bc3f===_0x166c4a)break;else _0xd18017['push'](_0xd18017['shift']());}catch(_0x5e917f){_0xd18017['push'](_0xd18017['shift']());}}}(a123_0x3073,0x678c2));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{FLOW_RUNTIME_PAGE_FLAG,FLOW_RUNTIME_PAGE_SIZE_FLAG,paginateRuntimeItems,projectRuntimeUser,readRuntimePagination}from'../../commands/flow/runtime-resources-shared.js';import{listApprovalRuntimeUsers}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a123_0x3965(_0x1a569a,_0x45337b){_0x1a569a=_0x1a569a-0x1a5;const _0x30737f=a123_0x3073();let _0x39650a=_0x30737f[_0x1a569a];return _0x39650a;}export const flowRuntimeUserSearch={'service':'flow','command':'runtime-user-search','description':a123_0x121755(0x1a7),'risk':'read','flags':[{'name':a123_0x121755(0x1a5),'type':a123_0x121755(0x1c1),'required':!![],'description':a123_0x121755(0x1b7)},FLOW_RUNTIME_PAGE_FLAG,FLOW_RUNTIME_PAGE_SIZE_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x57a6ca){const _0x78583e=a123_0x121755;if(!_0x57a6ca[_0x78583e(0x1bd)](_0x78583e(0x1a5))[_0x78583e(0x1a9)]())throw CliErrors[_0x78583e(0x1aa)](_0x78583e(0x1a5),_0x78583e(0x1c2));readRuntimePagination(_0x57a6ca);},async 'execute'(_0x2fdef5){const _0x29bd19=a123_0x121755,_0xb5be14=_0x2fdef5['str'](_0x29bd19(0x1a5))[_0x29bd19(0x1a9)](),_0x5195c5=_0xb5be14[_0x29bd19(0x1b2)](),_0x4fba13=(await listApprovalRuntimeUsers(_0x2fdef5['appCode']))[_0x29bd19(0x1be)](_0x21494f=>[_0x21494f[_0x29bd19(0x1b6)],_0x21494f[_0x29bd19(0x1b9)],_0x21494f[_0x29bd19(0x1a6)],_0x21494f[_0x29bd19(0x1b5)],_0x21494f[_0x29bd19(0x1b0)]]['some'](_0x429b13=>_0x429b13!==null&&_0x429b13!==undefined&&String(_0x429b13)['toLowerCase']()[_0x29bd19(0x1af)](_0x5195c5)))[_0x29bd19(0x1b1)](projectRuntimeUser)[_0x29bd19(0x1be)](_0x32831c=>_0x32831c!==null),{page:_0x35c7f5,pageSize:_0x3f8e68}=readRuntimePagination(_0x2fdef5),_0x2d324a=paginateRuntimeItems(_0x4fba13,_0x35c7f5,_0x3f8e68);return{'ok':!![],'data':{'appCode':_0x2fdef5[_0x29bd19(0x1ae)],'scope':_0x29bd19(0x1b4),'keyword':_0xb5be14,'users':_0x2d324a[_0x29bd19(0x1bf)],'paging':_0x2d324a[_0x29bd19(0x1b3)]},'message':_0x29bd19(0x1bb)+_0x4fba13[_0x29bd19(0x1ad)]+_0x29bd19(0x1ab)+_0xb5be14+'\x22'};}};
|