@lovrabet/rabetbase-cli 2.5.4-beta.2 → 2.5.4-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api/api-doc.js +1 -1
- package/lib/api/api-group.js +1 -1
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.js +1 -1
- package/lib/api/generate-sdk-config-file.js +1 -1
- package/lib/api/legacy-api-file.js +1 -1
- package/lib/api/model-registry-file.js +1 -1
- package/lib/api/model-registry-scaffold.js +1 -1
- package/lib/api/model-source.js +1 -1
- package/lib/auth/auth-server-ui.js +1 -1
- package/lib/auth/auth-server.js +1 -1
- package/lib/auth/constant.js +1 -1
- package/lib/auth/get-cookie.js +1 -1
- package/lib/auth/get-session-user.js +1 -1
- package/lib/auth/is-session-valid.js +1 -1
- package/lib/auth/login-success-html.js +1 -1
- package/lib/auth/logout.js +1 -1
- package/lib/cli-flags.js +1 -1
- package/lib/cli.js +1 -1
- package/lib/commands/api/generate.js +1 -1
- package/lib/commands/api/index.js +1 -1
- package/lib/commands/api/list.js +1 -1
- package/lib/commands/api/pull.js +1 -1
- package/lib/commands/api/shared.js +1 -1
- package/lib/commands/app/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
|
-
const
|
|
1
|
+
const a108_0x51a72c=a108_0x2ef5;(function(_0x34789f,_0x4774df){const _0x24cb12=a108_0x2ef5,_0x3f0201=_0x34789f();while(!![]){try{const _0x584d4a=-parseInt(_0x24cb12(0x123))/0x1*(-parseInt(_0x24cb12(0x11e))/0x2)+-parseInt(_0x24cb12(0x139))/0x3+-parseInt(_0x24cb12(0x124))/0x4+parseInt(_0x24cb12(0x11a))/0x5+-parseInt(_0x24cb12(0x12e))/0x6*(-parseInt(_0x24cb12(0x136))/0x7)+-parseInt(_0x24cb12(0x135))/0x8+parseInt(_0x24cb12(0x13c))/0x9;if(_0x584d4a===_0x4774df)break;else _0x3f0201['push'](_0x3f0201['shift']());}catch(_0xfe7365){_0x3f0201['push'](_0x3f0201['shift']());}}}(a108_0x2d88,0xa19c6));import{getDbLinkInfo,updateDbLink}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a108_0x2ef5(_0x2c49c2,_0x31b412){_0x2c49c2=_0x2c49c2-0x119;const _0x2d8838=a108_0x2d88();let _0x2ef54d=_0x2d8838[_0x2c49c2];return _0x2ef54d;}function a108_0x2d88(){const _0x5ecf82=['update','dbparam','3923649pjcxUs','validation','string','dbName','num','The\x20server\x20returned\x20a\x20masked\x20database\x20password.\x20Pass\x20the\x20current\x20or\x20replacement\x20password\x20explicitly\x20with\x20--password\x20to\x20update\x20this\x20connection\x20safely.','6016070kkXNWH','dburl','New\x20database\x20name','/smartapi/dblink/update','17942vnPIRC','Preview\x20the\x20merged\x20database\x20connection\x20update;\x20password\x20redacted','New\x20connection\x20parameter\x20string','dbUrl','username','76ZhtcUf','4936728mCDWlR','trim','dbname','--password\x20must\x20contain\x20the\x20real\x20database\x20password,\x20not\x20a\x20masked\x20value.','skip-connection-test','dbDesc','str','has','Update\x20a\x20database\x20connection\x20by\x20merging\x20supplied\x20fields\x20into\x20the\x20current\x20server\x20record.\x20A\x20masked\x20server\x20password\x20requires\x20explicit\x20--password','Current\x20or\x20replacement\x20password.\x20Required\x20when\x20the\x20stored\x20password\x20is\x20masked','156kHpUdX','dbParam','dbdesc','POST','password','[redacted]','New\x20description','1054072csHVqp','123963EiigOY','******','bool','2260518HvCNry'];a108_0x2d88=function(){return _0x5ecf82;};return a108_0x2d88();}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_0x51a72c(0x137),a108_0x51a72c(0x133)]);function mergeDbLinkUpdate(_0x1a57ac,_0x11e684){const _0x161a5c=a108_0x51a72c,_0x2f8e7a={..._0x1a57ac},_0x1cc7ca=_0x11e684[_0x161a5c(0x12a)]('password');if(_0x1cc7ca&&MASKED_PASSWORD_VALUES['has'](_0x1cc7ca))throw CliErrors[_0x161a5c(0x13d)](_0x161a5c(0x127));if(!_0x1cc7ca&&MASKED_PASSWORD_VALUES[_0x161a5c(0x12b)](String(_0x1a57ac[_0x161a5c(0x132)]??'')))throw CliErrors['validation'](_0x161a5c(0x119));const _0x49de86=_0x11e684[_0x161a5c(0x12a)]('dbname');if(_0x49de86)_0x2f8e7a[_0x161a5c(0x13f)]=_0x49de86;const _0x5c8e64=_0x11e684['str'](_0x161a5c(0x11b));if(_0x5c8e64)_0x2f8e7a[_0x161a5c(0x121)]=_0x5c8e64[_0x161a5c(0x125)]();const _0x2ed345=_0x11e684[_0x161a5c(0x12a)]('username');if(_0x2ed345)_0x2f8e7a[_0x161a5c(0x122)]=_0x2ed345;if(_0x1cc7ca)_0x2f8e7a[_0x161a5c(0x132)]=_0x1cc7ca;const _0x5e5963=_0x11e684[_0x161a5c(0x12a)](_0x161a5c(0x13b));if(_0x5e5963)_0x2f8e7a[_0x161a5c(0x12f)]=_0x5e5963;const _0x549560=_0x11e684[_0x161a5c(0x12a)](_0x161a5c(0x130));if(_0x549560)_0x2f8e7a[_0x161a5c(0x129)]=_0x549560;return _0x2f8e7a;}export const dbUpdate={'service':'db','command':a108_0x51a72c(0x13a),'description':a108_0x51a72c(0x12c),'risk':'write','flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a108_0x51a72c(0x126),'type':a108_0x51a72c(0x13e),'description':a108_0x51a72c(0x11c)},{'name':a108_0x51a72c(0x11b),'type':a108_0x51a72c(0x13e),'description':'New\x20host:port'},{'name':a108_0x51a72c(0x122),'type':'string','description':'New\x20username'},{'name':a108_0x51a72c(0x132),'type':a108_0x51a72c(0x13e),'description':a108_0x51a72c(0x12d)},{'name':a108_0x51a72c(0x13b),'type':'string','description':a108_0x51a72c(0x120)},{'name':'dbdesc','type':a108_0x51a72c(0x13e),'description':a108_0x51a72c(0x134)},SKIP_CONNECTION_TEST_FLAG],async 'validate'(_0x4868b8){const _0x362860=a108_0x51a72c,_0x5e1281=_0x4868b8[_0x362860(0x12a)]('dburl');if(_0x5e1281&&!validateDbUrl(_0x5e1281[_0x362860(0x125)]()))throw CliErrors[_0x362860(0x13d)]('Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22'+_0x5e1281+'\x22');},async 'dryRun'(_0x555a81){const _0x3391ef=a108_0x51a72c,_0x56949e=_0x555a81[_0x3391ef(0x140)]('id'),_0x4649f9=await getDbLinkInfo(_0x56949e),_0x4c5822=mergeDbLinkUpdate(_0x4649f9,_0x555a81),_0x11205f=sanitizeDbLinkForOutput(_0x4c5822);return{'method':_0x3391ef(0x131),'url':_0x3391ef(0x11d),'body':_0x11205f,'description':_0x3391ef(0x11f),'connectionPreflight':{'enabled':!_0x555a81[_0x3391ef(0x138)](_0x3391ef(0x128)),'executed':![]}};},async 'execute'(_0x31ad08){const _0x413040=a108_0x51a72c,_0x33a7d2=_0x31ad08['num']('id'),_0xe32d39=await getDbLinkInfo(_0x33a7d2),_0x4918f7=mergeDbLinkUpdate(_0xe32d39,_0x31ad08);!_0x31ad08['bool'](_0x413040(0x128))&&await assertDbLinkConnectionPreflight(_0x4918f7);const {id:_0x5cc25e,entity:_0x4ba83a}=normalizeEntityWithIdResponse(await updateDbLink(_0x4918f7));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x4ba83a),'message':'Updated\x20db\x20link\x20'+(_0x5cc25e??_0x33a7d2)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4625b4,_0xd7fb2){const _0x1331ac=a109_0x312b,_0x37ff76=_0x4625b4();while(!![]){try{const _0x14b718=-parseInt(_0x1331ac(0x1b0))/0x1+parseInt(_0x1331ac(0x1af))/0x2*(-parseInt(_0x1331ac(0x1ac))/0x3)+parseInt(_0x1331ac(0x1ad))/0x4+-parseInt(_0x1331ac(0x1b1))/0x5*(-parseInt(_0x1331ac(0x1b2))/0x6)+-parseInt(_0x1331ac(0x1ae))/0x7*(-parseInt(_0x1331ac(0x1b5))/0x8)+-parseInt(_0x1331ac(0x1ab))/0x9+parseInt(_0x1331ac(0x1b3))/0xa*(-parseInt(_0x1331ac(0x1b4))/0xb);if(_0x14b718===_0xd7fb2)break;else _0x37ff76['push'](_0x37ff76['shift']());}catch(_0x13327a){_0x37ff76['push'](_0x37ff76['shift']());}}}(a109_0xb6f5,0x9c059));import{deploymentSyncAll}from'../../commands/deployment/sync-all.js';import{deploymentSyncStatus}from'../../commands/deployment/sync-status.js';function a109_0xb6f5(){const _0x326e81=['788633BmQcFV','5OJkHhQ','6582138MUADnk','70wrIDpt','677897IBpIvP','8usLbpe','229572hmnBOn','3dPsbGV','2612208kundDb','4937233hVGLUT','1141598riSplt'];a109_0xb6f5=function(){return _0x326e81;};return a109_0xb6f5();}import{deploymentSyncJobs}from'../../commands/deployment/sync-jobs.js';function a109_0x312b(_0x4da66b,_0x827e){_0x4da66b=_0x4da66b-0x1ab;const _0xb6f504=a109_0xb6f5();let _0x312bb0=_0xb6f504[_0x4da66b];return _0x312bb0;}export const deploymentDefinitions=[deploymentSyncAll,deploymentSyncStatus,deploymentSyncJobs];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a110_0x576780=a110_0x2dd0;(function(_0x104581,_0x4b5afe){const _0x1e495d=a110_0x2dd0,_0x5b9e5a=_0x104581();while(!![]){try{const _0x5c59c6=-parseInt(_0x1e495d(0x109))/0x1*(-parseInt(_0x1e495d(0xf2))/0x2)+parseInt(_0x1e495d(0xf9))/0x3*(-parseInt(_0x1e495d(0xfc))/0x4)+parseInt(_0x1e495d(0x10c))/0x5+parseInt(_0x1e495d(0x108))/0x6+-parseInt(_0x1e495d(0x101))/0x7*(parseInt(_0x1e495d(0xf8))/0x8)+-parseInt(_0x1e495d(0xff))/0x9+parseInt(_0x1e495d(0x10d))/0xa;if(_0x5c59c6===_0x4b5afe)break;else _0x5b9e5a['push'](_0x5b9e5a['shift']());}catch(_0x56715e){_0x5b9e5a['push'](_0x5b9e5a['shift']());}}}(a110_0x3e7a,0x407ac));function a110_0x3e7a(){const _0x23218a=['Backfill\x20or\x20recover\x20all\x20server-supported\x20application\x20metadata','status','28XPellk','confirm','unknown','Run\x20with\x20--dry-run\x20first,\x20then\x20add\x20--confirm.','/smartapi/data-sync/submit','Would\x20submit\x20an\x20administrative\x20deployment\x20metadata\x20backfill\x20or\x20recovery\x20job.','11648YtYuDe','12mIqvfQ','Confirm\x20the\x20administrative\x20backfill\x20or\x20recovery\x20synchronization','jobId','419500ITCfbu','deployment_sync_submit_outcome_unknown','Deployment\x20sync\x20submission\x20response\x20was\x20unavailable;\x20job\x20creation\x20is\x20unknown.','387072gkcJTc','application_deployment_sync','2100QDPMPL','Submitted\x20deployment\x20synchronization\x20job\x20','List\x20recent\x20deployment\x20sync\x20jobs\x20before\x20deciding\x20whether\x20to\x20submit\x20again.','write','boolean','data','job','1808484cxfFbs','36671oQsBPm','not_submitted','not_needed','380185CROhin','2725710dIJUhh','POST','defineProperty','No\x20deployment\x20synchronization\x20was\x20needed\x20for\x20this\x20app.','Submit\x20an\x20administrative\x20metadata\x20backfill\x20or\x20recovery\x20synchronization.','sync-all','appCode'];a110_0x3e7a=function(){return _0x23218a;};return a110_0x3e7a();}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{asDryRunResult}from'../../commands/common/dry-run.js';import{isPlatformTransportFailure,submitDeploymentMetadataSyncAll}from'../../core/api-client.js';import{CliError,CliErrors}from'../../errors.js';const SUBMIT_PATH=a110_0x576780(0xf6),CONFIRM_FLAG={'name':'confirm','type':a110_0x576780(0x105),'description':a110_0x576780(0xfa)};export const deploymentSyncAll={'service':'deployment','command':a110_0x576780(0xee),'description':a110_0x576780(0xf0),'risk':a110_0x576780(0x104),'strictFlags':!![],'structuredErrors':!![],'confirmationDescription':a110_0x576780(0xed),'flags':[CONFIRM_FLAG,APPCODE_FLAG_OPTIONAL],async 'dryRun'(_0x428178){const _0x1fd85b=a110_0x576780;return asDryRunResult(buildPreview(_0x428178['appCode']),{'method':_0x1fd85b(0x10e),'url':SUBMIT_PATH,'description':_0x1fd85b(0xf7)});},async 'execute'(_0x2374c0){const _0x1dda46=a110_0x576780;if(!_0x2374c0['bool'](_0x1dda46(0xf3)))throw CliErrors['validation']('--confirm\x20is\x20required\x20to\x20synchronize\x20all\x20application\x20metadata.',_0x1dda46(0xf5));try{const _0x405d53=await submitDeploymentMetadataSyncAll({'appCode':_0x2374c0[_0x1dda46(0xef)]});if(_0x405d53['outcome']===_0x1dda46(0x10b))return{'ok':!![],'data':{'operation':_0x1dda46(0x100),'appCode':_0x2374c0['appCode'],'submitted':![],'outcome':_0x1dda46(0x10b)},'message':_0x1dda46(0x110)};return{'ok':!![],'data':{'operation':_0x1dda46(0x100),'appCode':_0x2374c0['appCode'],'submitted':!![],'outcome':'submitted','jobId':_0x405d53[_0x1dda46(0x107)][_0x1dda46(0xfb)],'status':_0x405d53[_0x1dda46(0x107)][_0x1dda46(0xf1)]},'message':_0x1dda46(0x102)+_0x405d53[_0x1dda46(0x107)][_0x1dda46(0xfb)]+'.'};}catch(_0x23a8ba){if(!isPlatformTransportFailure(_0x23a8ba))throw _0x23a8ba;const _0x29aab7=new CliError(_0x1dda46(0xfd),0x2,_0x1dda46(0xfe),_0x1dda46(0x103));Object[_0x1dda46(0x10f)](_0x29aab7,_0x1dda46(0x106),{'enumerable':!![],'value':{'operation':'application_deployment_sync','appCode':_0x2374c0[_0x1dda46(0xef)],'submitted':null,'outcome':_0x1dda46(0xf4)}});throw _0x29aab7;}}};function a110_0x2dd0(_0x43bc99,_0x11e280){_0x43bc99=_0x43bc99-0xed;const _0x3e7ae9=a110_0x3e7a();let _0x2dd097=_0x3e7ae9[_0x43bc99];return _0x2dd097;}function buildPreview(_0x5c03a8){const _0x298c5d=a110_0x576780;return{'operation':_0x298c5d(0x100),'selector':{'appCode':_0x5c03a8,'scope':'all_server_supported_metadata'},'before':null,'after':null,'dryRun':!![],'backend':{'submitted':![],'outcome':_0x298c5d(0x10a)},'warnings':[]};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a111_0xfd4e5b=a111_0x21d4;(function(_0x190efe,_0x3cefbf){const _0x5b4398=a111_0x21d4,_0x51eb09=_0x190efe();while(!![]){try{const _0x405417=-parseInt(_0x5b4398(0xd5))/0x1+-parseInt(_0x5b4398(0xd1))/0x2+-parseInt(_0x5b4398(0xc4))/0x3*(-parseInt(_0x5b4398(0xc8))/0x4)+-parseInt(_0x5b4398(0xd2))/0x5+parseInt(_0x5b4398(0xcf))/0x6+parseInt(_0x5b4398(0xc9))/0x7*(parseInt(_0x5b4398(0xbe))/0x8)+parseInt(_0x5b4398(0xd6))/0x9;if(_0x405417===_0x3cefbf)break;else _0x51eb09['push'](_0x51eb09['shift']());}catch(_0xf13890){_0x51eb09['push'](_0x51eb09['shift']());}}}(a111_0x5cf7,0xeab40));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{listDeploymentMetadataSyncJobs}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a111_0x21d4(_0x54ce0c,_0x44e4e7){_0x54ce0c=_0x54ce0c-0xbb;const _0x5cf747=a111_0x5cf7();let _0x21d493=_0x5cf747[_0x54ce0c];return _0x21d493;}export const deploymentSyncJobs={'service':a111_0xfd4e5b(0xc3),'command':a111_0xfd4e5b(0xca),'description':a111_0xfd4e5b(0xcb),'risk':a111_0xfd4e5b(0xc7),'strictFlags':!![],'structuredErrors':!![],'flags':[{'name':'current-page','type':a111_0xfd4e5b(0xbb),'default':0x1,'description':a111_0xfd4e5b(0xcc)},{'name':a111_0xfd4e5b(0xc1),'type':'number','default':0xa,'description':'Items\x20per\x20page\x20(maximum\x20100)'},{'name':'status','type':'string','description':'Optional\x20server-defined\x20job\x20status\x20filter'},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x4a04c1){const _0xc8831d=a111_0xfd4e5b;readPaging(_0x4a04c1[_0xc8831d(0xc0)](_0xc8831d(0xc5),0x1),_0x4a04c1[_0xc8831d(0xc0)](_0xc8831d(0xc1),0xa));},async 'execute'(_0xabe2c4){const _0x4afba7=a111_0xfd4e5b,{currentPage:_0x39b284,pageSize:_0x726099}=readPaging(_0xabe2c4['num'](_0x4afba7(0xc5),0x1),_0xabe2c4[_0x4afba7(0xc0)](_0x4afba7(0xc1),0xa)),_0x7d1063=_0xabe2c4[_0x4afba7(0xc2)](_0x4afba7(0xc6))[_0x4afba7(0xd0)](),_0x4b4607=await listDeploymentMetadataSyncJobs({'appCode':_0xabe2c4['appCode'],'currentPage':_0x39b284,'pageSize':_0x726099,..._0x7d1063?{'status':_0x7d1063}:{}});return{'ok':!![],'data':{'appCode':_0xabe2c4['appCode'],..._0x4b4607},'message':_0x4afba7(0xd4)+_0x4b4607['items'][_0x4afba7(0xbc)]+_0x4afba7(0xbd)};}};function a111_0x5cf7(){const _0x427dad=['107586GbstfM','trim','2597690MVCMGl','4496235jFbOCw','--current-page\x20must\x20be\x20a\x20positive\x20integer.','Found\x20','481727jNKUVr','19816173tcyscy','number','length','\x20deployment\x20synchronization\x20job(s).','40xZtrgX','validation','num','page-size','str','deployment','285adLCzo','current-page','status','read','25276EtdtDY','1149582FGktEM','sync-jobs','List\x20application\x20deployment\x20synchronization\x20jobs','Page\x20number','--page-size\x20must\x20be\x20an\x20integer\x20from\x201\x20to\x20100.','isSafeInteger'];a111_0x5cf7=function(){return _0x427dad;};return a111_0x5cf7();}function readPaging(_0x391e29,_0xe95659){const _0x3c97a8=a111_0xfd4e5b;if(!Number[_0x3c97a8(0xce)](_0x391e29)||_0x391e29<0x1)throw CliErrors[_0x3c97a8(0xbf)](_0x3c97a8(0xd3));if(!Number[_0x3c97a8(0xce)](_0xe95659)||_0xe95659<0x1||_0xe95659>0x64)throw CliErrors[_0x3c97a8(0xbf)](_0x3c97a8(0xcd));return{'currentPage':_0x391e29,'pageSize':_0xe95659};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a112_0x31906a=a112_0x250b;function a112_0x250b(_0x2e465a,_0x10a3de){_0x2e465a=_0x2e465a-0x9a;const _0x48f670=a112_0x48f6();let _0x250b2f=_0x48f670[_0x2e465a];return _0x250b2f;}(function(_0x554944,_0x3b7bcf){const _0x3a9b3c=a112_0x250b,_0x5708c9=_0x554944();while(!![]){try{const _0x2fb609=parseInt(_0x3a9b3c(0xa2))/0x1+parseInt(_0x3a9b3c(0x9e))/0x2+parseInt(_0x3a9b3c(0x9a))/0x3+parseInt(_0x3a9b3c(0xa5))/0x4*(-parseInt(_0x3a9b3c(0xa9))/0x5)+parseInt(_0x3a9b3c(0xbb))/0x6+-parseInt(_0x3a9b3c(0xb1))/0x7+-parseInt(_0x3a9b3c(0x9f))/0x8*(parseInt(_0x3a9b3c(0x9b))/0x9);if(_0x2fb609===_0x3b7bcf)break;else _0x5708c9['push'](_0x5708c9['shift']());}catch(_0x161c01){_0x5708c9['push'](_0x5708c9['shift']());}}}(a112_0x48f6,0x9fd3b));import{getDeploymentMetadataSyncStatus}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const TERMINAL_STATUSES=new Set(['SUCCESS',a112_0x31906a(0xb7),'FAILED']),ACTIVE_STATUSES=new Set(['PENDING',a112_0x31906a(0xaf)]);export const deploymentSyncStatus={'service':'deployment','command':a112_0x31906a(0xb9),'description':a112_0x31906a(0xb5),'risk':a112_0x31906a(0xae),'requiresAppCode':!![],'strictFlags':!![],'structuredErrors':!![],'flags':[{'name':a112_0x31906a(0xb3),'type':a112_0x31906a(0xb4),'required':!![],'description':a112_0x31906a(0xa0)}],async 'validate'(_0x22b33b){const _0x4f40ee=a112_0x31906a;readJobId(_0x22b33b['num'](_0x4f40ee(0xb3)));},async 'execute'(_0x56a28b){const _0xd22537=a112_0x31906a,_0x2c2f81=readJobId(_0x56a28b[_0xd22537(0xaa)](_0xd22537(0xb3))),_0x4f975b=await getDeploymentMetadataSyncStatus({'jobId':_0x2c2f81,'appCode':_0x56a28b[_0xd22537(0xa1)]}),_0x40e15e=TERMINAL_STATUSES[_0xd22537(0xb2)](_0x4f975b['status'])?!![]:ACTIVE_STATUSES['has'](_0x4f975b[_0xd22537(0xad)])?![]:null,_0x94f385=countBy(_0x4f975b['results'][_0xd22537(0xb6)](_0x53a811=>_0x53a811[_0xd22537(0xa4)])),_0x510543=countBy(_0x4f975b[_0xd22537(0x9c)][_0xd22537(0xb6)](_0x4bb3b1=>_0x4bb3b1[_0xd22537(0x9d)])),_0x1acad9=_0x40e15e===null?[_0xd22537(0xb0)+_0x4f975b[_0xd22537(0xad)]+_0xd22537(0xb8)]:[];return{'ok':!![],'data':{'job':_0x4f975b,'isTerminal':_0x40e15e,'summary':{'total':_0x4f975b[_0xd22537(0x9c)][_0xd22537(0xba)],'failed':_0x4f975b[_0xd22537(0x9c)][_0xd22537(0xa3)](_0x3e312b=>_0x3e312b[_0xd22537(0x9d)]===_0xd22537(0xa6))[_0xd22537(0xba)],'byBizType':_0x94f385,'byAction':_0x510543},'warnings':_0x1acad9},'message':_0xd22537(0xa8)+_0x2c2f81+'\x20is\x20'+_0x4f975b[_0xd22537(0xad)]+'.'};}};function a112_0x48f6(){const _0x3f154a=['PARTIAL_SUCCESS',';\x20terminal\x20state\x20is\x20unknown\x20to\x20this\x20CLI\x20version.','sync-status','length','2774658JAebmD','3009327JQwlkM','81kLYGhq','results','action','1023570TBtACN','824728wWZxfo','Deployment\x20synchronization\x20job\x20ID','appCode','1303505AcPVbA','filter','bizType','4NoSHAn','FAILED','validation','Deployment\x20synchronization\x20job\x20','3663385sHJqol','num','isSafeInteger','reduce','status','read','RUNNING','Preserved\x20server-defined\x20status\x20','6759865IBBfzA','has','job-id','number','Get\x20application\x20deployment\x20synchronization\x20job\x20status','map'];a112_0x48f6=function(){return _0x3f154a;};return a112_0x48f6();}function readJobId(_0xe21a96){const _0x36fb18=a112_0x31906a;if(!Number[_0x36fb18(0xab)](_0xe21a96)||_0xe21a96<=0x0)throw CliErrors[_0x36fb18(0xa7)]('--job-id\x20must\x20be\x20a\x20positive\x20integer.');return _0xe21a96;}function countBy(_0x57cfa0){const _0x2f61b3=a112_0x31906a;return _0x57cfa0[_0x2f61b3(0xac)]((_0x162b08,_0x17904d)=>{return _0x162b08[_0x17904d]=(_0x162b08[_0x17904d]??0x0)+0x1,_0x162b08;},{});}
|
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_0x2ae37c=a113_0x2c60;(function(_0x5570a8,_0x3fc0ec){const _0x4093ef=a113_0x2c60,_0x4172e5=_0x5570a8();while(!![]){try{const _0xa349ea=parseInt(_0x4093ef(0xc5))/0x1*(parseInt(_0x4093ef(0x121))/0x2)+parseInt(_0x4093ef(0xf8))/0x3+parseInt(_0x4093ef(0x130))/0x4+-parseInt(_0x4093ef(0xf6))/0x5+-parseInt(_0x4093ef(0xe0))/0x6+-parseInt(_0x4093ef(0x14d))/0x7+parseInt(_0x4093ef(0x112))/0x8;if(_0xa349ea===_0x3fc0ec)break;else _0x4172e5['push'](_0x4172e5['shift']());}catch(_0x4d8002){_0x4172e5['push'](_0x4172e5['shift']());}}}(a113_0x548e,0x31154));import a113_0x2e60cd 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';function a113_0x548e(){const _0x4c7fc0=['2121120YNXzTW','\x20config\x20delete\x20inherit','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20─','stringify','projectConfig','globalConfig','riskLevel','value','(default:\x20','\x20config','\x20\x20appDomain:\x20\x20\x20\x20\x20\x20\x20','\x20\x20kbServiceDomain:\x20','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','join','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','verbose','\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','bold','appcode','\x20\x20app\x20locale:\x20\x20\x20\x20\x20\x20','1992625xHXuLR','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','994803SnJBYC','routing','region','hasOwnProperty','(set,\x20length=','\x20\x20Config\x20JSON','\x20\x20runtimeDomain:\x20\x20\x20','appCode','padEnd','installedPath','Repair\x20','\x20\x20Config\x20Files','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','regionConfiguredValue','slice','gray','\x20\x20Repair\x20project:\x20\x20','filter','\x20\x20Repair\x20global:\x20\x20\x20','skillVersion','✓\x20Valid\x20JSON','\x20\x20explicitAppName:\x20','packageVersion','Project','apiDir','version','6874440hUjweO','(missing)','\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','push','accessKey','global','apps','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','reason','(not\x20set)','✗\x20Invalid','not\x20configured','label','(set\x20via\x20file,\x20length=','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','916HeSSsh','defaultApp','\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Installed\x20Path:\x20\x20','repairCommand','Not\x20checked\x20until\x20routing\x20configuration\x20is\x20repaired','\x20+\x20','inherit','(unknown)','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','state','green','\x20(invalid)','missing','toLowerCase','80564UMIyvc','platform','object','string','repeat','\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\x20Routing\x20Configuration','empty','format','✗\x20Invalid\x20','pageSize','status','\x20doctor','\x20\x20Repair\x20project:\x20\x20\x20','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','locale','call','null','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20kbDomain:\x20\x20\x20\x20\x20\x20\x20\x20','log','read','\x20←\x20current','length','cookie','⚠\x20Empty\x20(treated\x20as\x20{})','(not\x20found)','\x20\x20skillDomain:\x20\x20\x20\x20\x20','1988448pwABNh','Global','regionSource','\x20\x20Auth','\x20\x20Package\x20Version:\x20','\x20config\x20delete\x20routing','\x20\x20Country/Region\x20Configuration','57jxEAku','(no\x20file)','currentApp','prototype','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','doctor','raw','current','arch','\x20\x20Built-in\x20Skill','project','source','message','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','\x20config\x20delete\x20region','keys','(none)','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','entries','env','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','yellow','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','\x20\x20Repair\x20global:\x20\x20\x20\x20','red','✗\x20Expired'];a113_0x548e=function(){return _0x4c7fc0;};return a113_0x548e();}import{inspectBuiltinSkill}from'../skills/builtin-skill.js';import{DEFAULT_LOVRABET_REGION,isInvalidLovrabetRegion}from'../constant/region.js';function describeRegionValue(_0x112f04){const _0x550eff=a113_0x2c60;return typeof _0x112f04===_0x550eff(0x133)?JSON[_0x550eff(0xe4)](_0x112f04):'<'+(_0x112f04===null?_0x550eff(0x142):typeof _0x112f04)+'>';}async function execute(_0x44473e){const _0x5cded5=a113_0x2c60,_0x57f357=GIT_COMMIT!=='unknown'?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x5cded5(0x106)](0x0,0xa)+')':VERSION,_0x5d7b06=buildConfigFromFlags({}),_0x428487=getCookie();let _0x283b95;try{await initGlobalEnvironment(_0x5d7b06);}catch(_0x9287b0){_0x283b95=_0x9287b0 instanceof Error?_0x9287b0:new Error(String(_0x9287b0));}console[_0x5cded5(0x145)](),console['log'](a113_0x2e60cd[_0x5cded5(0xf3)](CLI_BIN_NAME+_0x5cded5(0x13d))),console[_0x5cded5(0x145)](a113_0x2e60cd['gray']('─'[_0x5cded5(0x134)](0x32))),console[_0x5cded5(0x145)](_0x5cded5(0x120)+_0x57f357),console[_0x5cded5(0x145)](_0x5cded5(0xd9)+process[_0x5cded5(0x111)]),console[_0x5cded5(0x145)](_0x5cded5(0xf0)+process[_0x5cded5(0x131)]+'\x20'+process[_0x5cded5(0xcd)]);const _0x58de4d=inspectBuiltinSkill();console[_0x5cded5(0x145)](),console[_0x5cded5(0x145)](a113_0x2e60cd['bold'](_0x5cded5(0xce))),console['log'](a113_0x2e60cd[_0x5cded5(0x107)](_0x5cded5(0xe3)[_0x5cded5(0x134)](0x1e)));const _0x560158=_0x58de4d[_0x5cded5(0x12b)]===_0x5cded5(0xcc)?a113_0x2e60cd[_0x5cded5(0x12c)]('✓\x20'+_0x58de4d[_0x5cded5(0x12b)]):a113_0x2e60cd['red']('✗\x20'+_0x58de4d[_0x5cded5(0x12b)]);console[_0x5cded5(0x145)](_0x5cded5(0xf2)+_0x560158),console[_0x5cded5(0x145)](_0x5cded5(0xc2)+_0x58de4d[_0x5cded5(0x10e)]),console['log']('\x20\x20Skill\x20Version:\x20\x20\x20'+(_0x58de4d[_0x5cded5(0x10b)]||a113_0x2e60cd[_0x5cded5(0x107)](_0x5cded5(0x129)))),console[_0x5cded5(0x145)](_0x5cded5(0x124)+(_0x58de4d[_0x5cded5(0x101)]||a113_0x2e60cd[_0x5cded5(0x107)](_0x5cded5(0x14b))));if(_0x58de4d[_0x5cded5(0x11a)])console['log'](_0x5cded5(0x135)+_0x58de4d[_0x5cded5(0x11a)]);_0x58de4d[_0x5cded5(0x12b)]!=='current'&&console[_0x5cded5(0x145)](_0x5cded5(0x123)+_0x58de4d['repairCommand']);console[_0x5cded5(0x145)](),console[_0x5cded5(0x145)](a113_0x2e60cd['bold'](_0x5cded5(0x103))),console[_0x5cded5(0x145)](a113_0x2e60cd[_0x5cded5(0x107)](_0x5cded5(0xe3)[_0x5cded5(0x134)](0x1e)));const _0x460c69=getGlobalConfigPath(),_0x15bfeb=getProjectConfigPath();console['log'](_0x5cded5(0x13f)+(_0x460c69||a113_0x2e60cd[_0x5cded5(0x107)](_0x5cded5(0x14b)))),console[_0x5cded5(0x145)]('\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x15bfeb||a113_0x2e60cd[_0x5cded5(0x107)](_0x5cded5(0x14b)))),console[_0x5cded5(0x145)](),console[_0x5cded5(0x145)](a113_0x2e60cd[_0x5cded5(0xf3)](_0x5cded5(0xfd))),console[_0x5cded5(0x145)](a113_0x2e60cd[_0x5cded5(0x107)](_0x5cded5(0xe3)[_0x5cded5(0x134)](0x1e)));const _0x211693=(_0x5b00d8,_0x31d5a4)=>{const _0x638739=_0x5cded5;if(!_0x31d5a4){console[_0x638739(0x145)]('\x20\x20'+_0x5b00d8[_0x638739(0x100)](0x11)+'\x20'+a113_0x2e60cd[_0x638739(0x107)](_0x638739(0xc6)));return;}const _0x22c015=inspectCliConfigJsonFile(_0x31d5a4);if(_0x22c015[_0x638739(0x13c)]==='ok')console[_0x638739(0x145)]('\x20\x20'+_0x5b00d8['padEnd'](0x11)+'\x20'+a113_0x2e60cd[_0x638739(0x12c)](_0x638739(0x10c)));else{if(_0x22c015[_0x638739(0x13c)]===_0x638739(0x138))console[_0x638739(0x145)]('\x20\x20'+_0x5b00d8[_0x638739(0x100)](0x11)+'\x20'+a113_0x2e60cd[_0x638739(0xda)](_0x638739(0x14a)));else _0x22c015[_0x638739(0x13c)]===_0x638739(0x12e)?console[_0x638739(0x145)]('\x20\x20'+_0x5b00d8[_0x638739(0x100)](0x11)+'\x20'+a113_0x2e60cd[_0x638739(0x107)](_0x638739(0x113))):(console[_0x638739(0x145)]('\x20\x20'+_0x5b00d8[_0x638739(0x100)](0x11)+'\x20'+a113_0x2e60cd[_0x638739(0xde)]('✗\x20Invalid\x20JSON')),console[_0x638739(0x145)]('\x20\x20'+''[_0x638739(0x100)](0x11)+'\x20'+a113_0x2e60cd[_0x638739(0xde)](_0x22c015[_0x638739(0xd1)])));}};_0x211693(_0x5cded5(0x14e),_0x460c69),_0x211693(_0x5cded5(0x10f),_0x15bfeb);const _0x2e3408=loadRawConfigLayers(),_0x20aaaf=[{'label':'Project','value':_0x2e3408[_0x5cded5(0xe5)][_0x5cded5(0xfa)],'present':Object[_0x5cded5(0xc8)]['hasOwnProperty']['call'](_0x2e3408['projectConfig'],_0x5cded5(0xfa)),'repairCommand':CLI_BIN_NAME+_0x5cded5(0xd3)},{'label':_0x5cded5(0x14e),'value':_0x2e3408['globalConfig'][_0x5cded5(0xfa)],'present':Object[_0x5cded5(0xc8)][_0x5cded5(0xfb)][_0x5cded5(0x141)](_0x2e3408[_0x5cded5(0xe6)],_0x5cded5(0xfa)),'repairCommand':CLI_BIN_NAME+'\x20config\x20delete\x20region\x20--global'}][_0x5cded5(0x109)](_0x5b22e2=>_0x5b22e2['present']&&isInvalidLovrabetRegion(_0x5b22e2[_0x5cded5(0xe8)]));for(const [_0x3f5978,_0x57df8a]of[[_0x5cded5(0x10f),_0x2e3408[_0x5cded5(0xe5)]],[_0x5cded5(0x14e),_0x2e3408[_0x5cded5(0xe6)]]]){const _0xf182c5=_0x57df8a['apps']&&typeof _0x57df8a[_0x5cded5(0x118)]===_0x5cded5(0x132)?_0x57df8a[_0x5cded5(0x118)]:{};for(const [_0x7845ed,_0x2c8c00]of Object[_0x5cded5(0xd7)](_0xf182c5)){if(!_0x2c8c00||typeof _0x2c8c00!==_0x5cded5(0x132)||!Object['prototype']['hasOwnProperty'][_0x5cded5(0x141)](_0x2c8c00,_0x5cded5(0xfa)))continue;isInvalidLovrabetRegion(_0x2c8c00['region'])&&_0x20aaaf[_0x5cded5(0x115)]({'label':_0x3f5978+'\x20app\x20\x22'+_0x7845ed+'\x22','value':_0x2c8c00['region'],'present':!![],'repairCommand':'Set\x20apps.'+_0x7845ed+'.region\x20to\x20cn\x20or\x20id\x20in\x20'+_0x3f5978[_0x5cded5(0x12f)]()+'\x20config'});}}if(_0x20aaaf['length']>0x0){console[_0x5cded5(0x145)](),console[_0x5cded5(0x145)](a113_0x2e60cd[_0x5cded5(0xf3)](_0x5cded5(0xc4))),console[_0x5cded5(0x145)](a113_0x2e60cd[_0x5cded5(0x107)](_0x5cded5(0xe3)['repeat'](0x1e)));for(const _0x98c58d of _0x20aaaf){console[_0x5cded5(0x145)]('\x20\x20'+_0x98c58d[_0x5cded5(0x11e)]['padEnd'](0x11)+'\x20'+a113_0x2e60cd[_0x5cded5(0xde)](_0x5cded5(0x13a)+describeRegionValue(_0x98c58d[_0x5cded5(0xe8)]))),console[_0x5cded5(0x145)]('\x20\x20'+(_0x5cded5(0x102)+_0x98c58d[_0x5cded5(0x11e)][_0x5cded5(0x12f)]()+':')[_0x5cded5(0x100)](0x10)+'\x20'+_0x98c58d[_0x5cded5(0x125)]);}}const _0x48b819=[Object[_0x5cded5(0xc8)][_0x5cded5(0xfb)][_0x5cded5(0x141)](_0x2e3408[_0x5cded5(0xe6)],_0x5cded5(0x128))?_0x5cded5(0x117):null,Object[_0x5cded5(0xc8)]['hasOwnProperty'][_0x5cded5(0x141)](_0x2e3408[_0x5cded5(0xe5)],_0x5cded5(0x128))?_0x5cded5(0xcf):null][_0x5cded5(0x109)](Boolean);_0x48b819[_0x5cded5(0x148)]>0x0&&(console[_0x5cded5(0x145)]('\x20\x20Legacy\x20inherit:\x20\x20\x20'+a113_0x2e60cd[_0x5cded5(0xda)]('ignored\x20in\x20'+_0x48b819[_0x5cded5(0xef)](_0x5cded5(0x127))+_0x5cded5(0xea))),_0x48b819['includes']('project')&&console[_0x5cded5(0x145)](_0x5cded5(0x13e)+CLI_BIN_NAME+_0x5cded5(0xe1)),_0x48b819['includes']('global')&&console[_0x5cded5(0x145)](_0x5cded5(0xdd)+CLI_BIN_NAME+'\x20config\x20delete\x20inherit\x20--global'));const _0x417160=isInvalidLovrabetRegion(_0x5d7b06[_0x5cded5(0x105)]??_0x5d7b06[_0x5cded5(0xcb)]?.[_0x5cded5(0xfa)]);_0x283b95&&!_0x417160&&(console[_0x5cded5(0x145)](),console[_0x5cded5(0x145)](a113_0x2e60cd[_0x5cded5(0xf3)](_0x5cded5(0x137))),console['log'](a113_0x2e60cd[_0x5cded5(0x107)](_0x5cded5(0xe3)[_0x5cded5(0x134)](0x1e))),console['log'](_0x5cded5(0x136)+a113_0x2e60cd[_0x5cded5(0xde)](_0x5cded5(0x11c))),console[_0x5cded5(0x145)](_0x5cded5(0x135)+_0x283b95['message']),Object[_0x5cded5(0xc8)][_0x5cded5(0xfb)][_0x5cded5(0x141)](_0x2e3408[_0x5cded5(0xe5)],'routing')&&console[_0x5cded5(0x145)](_0x5cded5(0x108)+CLI_BIN_NAME+_0x5cded5(0xc3)),Object[_0x5cded5(0xc8)][_0x5cded5(0xfb)][_0x5cded5(0x141)](_0x2e3408[_0x5cded5(0xe6)],_0x5cded5(0xf9))&&console[_0x5cded5(0x145)](_0x5cded5(0x10a)+CLI_BIN_NAME+'\x20config\x20delete\x20routing\x20--global'));console[_0x5cded5(0x145)](),console['log'](a113_0x2e60cd[_0x5cded5(0xf3)]('\x20\x20Merged\x20Config')),console['log'](a113_0x2e60cd[_0x5cded5(0x107)]('\x20\x20─'[_0x5cded5(0x134)](0x1e))),console[_0x5cded5(0x145)]('\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x5d7b06[_0x5cded5(0xff)]||a113_0x2e60cd[_0x5cded5(0xde)](_0x5cded5(0x11b))));const _0x43bf63=_0x417160?a113_0x2e60cd['red'](describeRegionValue(_0x5d7b06[_0x5cded5(0x105)]??_0x5d7b06[_0x5cded5(0xcb)]?.['region'])+_0x5cded5(0x12d)):(_0x5d7b06[_0x5cded5(0xfa)]??DEFAULT_LOVRABET_REGION)+'\x20('+(_0x5d7b06[_0x5cded5(0x14f)]??'default')+')';console[_0x5cded5(0x145)](_0x5cded5(0x114)+_0x43bf63),console[_0x5cded5(0x145)](_0x5cded5(0xed)+_0x5d7b06['env']),console[_0x5cded5(0x145)](_0x5cded5(0xf5)+_0x5d7b06[_0x5cded5(0x140)]),console[_0x5cded5(0x145)](_0x5cded5(0xf7)+_0x5d7b06['apiDir']),console[_0x5cded5(0x145)]('\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20'+(_0x5d7b06[_0x5cded5(0x122)]||a113_0x2e60cd['gray']('(none)'))),console[_0x5cded5(0x145)](_0x5cded5(0xd2)+(_0x5d7b06[_0x5cded5(0xc7)]||a113_0x2e60cd[_0x5cded5(0x107)](_0x5cded5(0xd5)))),console[_0x5cded5(0x145)](_0x5cded5(0x10d)+(_0x5d7b06['explicitAppName']||a113_0x2e60cd[_0x5cded5(0x107)](_0x5cded5(0xd5)))),console[_0x5cded5(0x145)](_0x5cded5(0x12a)+(_0x5d7b06[_0x5cded5(0x139)]||a113_0x2e60cd['gray'](_0x5cded5(0xe9)+DEFAULT_CONFIG_VALUES[_0x5cded5(0x139)]+')'))),console[_0x5cded5(0x145)](_0x5cded5(0x143)+(_0x5d7b06[_0x5cded5(0x13b)]??a113_0x2e60cd[_0x5cded5(0x107)]('(default)'))),console['log'](_0x5cded5(0xc9)+_0x5d7b06[_0x5cded5(0xe7)]),console[_0x5cded5(0x145)](_0x5cded5(0xdb)+_0x5d7b06[_0x5cded5(0xf1)]),console['log'](_0x5cded5(0xe2)+(_0x5d7b06[_0x5cded5(0x149)]?a113_0x2e60cd[_0x5cded5(0x12c)]('(set,\x20length='+_0x5d7b06['cookie'][_0x5cded5(0x148)]+')'):_0x428487?a113_0x2e60cd[_0x5cded5(0x12c)](_0x5cded5(0x11f)+_0x428487[_0x5cded5(0x148)]+')'):a113_0x2e60cd[_0x5cded5(0x107)]('(none)')));const _0x2a7ac0=Object[_0x5cded5(0xd4)](_0x5d7b06[_0x5cded5(0x118)]);if(_0x2a7ac0[_0x5cded5(0x148)]>0x0){console['log'](),console[_0x5cded5(0x145)](a113_0x2e60cd[_0x5cded5(0xf3)]('\x20\x20Apps')),console['log'](a113_0x2e60cd[_0x5cded5(0x107)]('\x20\x20─'[_0x5cded5(0x134)](0x1e)));for(const _0x14853b of _0x2a7ac0){const _0x217e6b=_0x5d7b06[_0x5cded5(0x118)][_0x14853b],_0x796ec8=_0x14853b===_0x5d7b06[_0x5cded5(0x122)],_0x2a1300=_0x14853b===_0x5d7b06[_0x5cded5(0xc7)],_0x17533=_0x2a1300?a113_0x2e60cd['green'](_0x5cded5(0x147)):'',_0x77629e=_0x796ec8?'\x20(default)':'';console[_0x5cded5(0x145)]('\x20\x20'+_0x14853b+_0x77629e+_0x17533),console[_0x5cded5(0x145)](_0x5cded5(0xdc)+_0x217e6b[_0x5cded5(0xf4)]);const _0x38bb85=_0x2e3408[_0x5cded5(0xe5)][_0x5cded5(0x118)]&&typeof _0x2e3408[_0x5cded5(0xe5)][_0x5cded5(0x118)]===_0x5cded5(0x132)?_0x2e3408[_0x5cded5(0xe5)]['apps']:{},_0x3d3ca7=Object[_0x5cded5(0xc8)]['hasOwnProperty'][_0x5cded5(0x141)](_0x38bb85,_0x14853b),_0x1e224e=isInvalidLovrabetRegion(_0x217e6b[_0x5cded5(0xfa)])?{'region':_0x5d7b06[_0x5cded5(0xfa)]??DEFAULT_LOVRABET_REGION}:resolveEffectiveRegion({'appRegion':_0x217e6b['region'],'projectRegion':_0x3d3ca7?_0x2e3408[_0x5cded5(0xe5)]['region']:undefined,'globalRegion':_0x2e3408[_0x5cded5(0xe6)][_0x5cded5(0xfa)],'mergedRegion':_0x5d7b06[_0x5cded5(0xcb)][_0x5cded5(0xfa)],'appName':_0x14853b}),_0x2859ff=buildAppDoctorFields(_0x217e6b,{'region':_0x1e224e['region'],'env':_0x5d7b06['env'],'apiDir':_0x5d7b06[_0x5cded5(0xcb)][_0x5cded5(0x110)]||DEFAULT_CONFIG_VALUES['apiDir'],'cookie':_0x5d7b06['cookie']||_0x428487||undefined,'accessKey':_0x5d7b06[_0x5cded5(0x116)]});console['log']('\x20\x20\x20\x20region:\x20\x20\x20\x20\x20'+_0x2859ff['region'][_0x5cded5(0xe8)]+'\x20\x20'+a113_0x2e60cd[_0x5cded5(0x107)]('('+_0x2859ff['region'][_0x5cded5(0xd0)]+')')),console[_0x5cded5(0x145)](_0x5cded5(0x104)+_0x2859ff[_0x5cded5(0xd8)]['value']+'\x20\x20'+a113_0x2e60cd[_0x5cded5(0x107)]('('+_0x2859ff['env'][_0x5cded5(0xd0)]+')')),console[_0x5cded5(0x145)]('\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20'+_0x2859ff[_0x5cded5(0x110)]['value']+'\x20\x20'+a113_0x2e60cd['gray']('('+_0x2859ff['apiDir'][_0x5cded5(0xd0)]+')'));const _0x4b730d=_0x2859ff['cookie']['value']?a113_0x2e60cd['green'](_0x5cded5(0xfc)+_0x2859ff['cookie'][_0x5cded5(0xe8)][_0x5cded5(0x148)]+')'):a113_0x2e60cd[_0x5cded5(0x107)](_0x5cded5(0xd5));console['log'](_0x5cded5(0xee)+_0x4b730d+'\x20\x20'+a113_0x2e60cd[_0x5cded5(0x107)]('('+_0x2859ff[_0x5cded5(0x149)][_0x5cded5(0xd0)]+')'));const _0x4c59df=_0x2859ff[_0x5cded5(0x116)][_0x5cded5(0xe8)]?a113_0x2e60cd[_0x5cded5(0x12c)](_0x5cded5(0xfc)+_0x2859ff[_0x5cded5(0x116)]['value'][_0x5cded5(0x148)]+')'):a113_0x2e60cd[_0x5cded5(0x107)](_0x5cded5(0xd5));console['log']('\x20\x20\x20\x20accessKey:\x20\x20'+_0x4c59df+'\x20\x20'+a113_0x2e60cd['gray']('('+_0x2859ff['accessKey'][_0x5cded5(0xd0)]+')'));}}console[_0x5cded5(0x145)](),console[_0x5cded5(0x145)](a113_0x2e60cd[_0x5cded5(0xf3)]('\x20\x20API\x20Endpoints')),console[_0x5cded5(0x145)](a113_0x2e60cd['gray'](_0x5cded5(0xe3)[_0x5cded5(0x134)](0x1e)));_0x283b95?console[_0x5cded5(0x145)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a113_0x2e60cd[_0x5cded5(0xde)]('Unavailable\x20until\x20routing\x20configuration\x20is\x20repaired')):(console['log'](_0x5cded5(0x114)+getActiveRegion()),console[_0x5cded5(0x145)](_0x5cded5(0xd6)+getApiDomain()),console[_0x5cded5(0x145)](_0x5cded5(0x119)+getUserDomain()),console['log'](_0x5cded5(0xfe)+getRuntimeDomain()),console[_0x5cded5(0x145)](_0x5cded5(0x14c)+getSkillDomain()),console['log'](_0x5cded5(0x144)+getKbDomain()),console[_0x5cded5(0x145)](_0x5cded5(0xec)+(getKbServiceDomain()??_0x5cded5(0x11d))),console[_0x5cded5(0x145)](_0x5cded5(0xeb)+getAppDomain()));console[_0x5cded5(0x145)](),console['log'](a113_0x2e60cd[_0x5cded5(0xf3)](_0x5cded5(0x150))),console[_0x5cded5(0x145)](a113_0x2e60cd[_0x5cded5(0x107)]('\x20\x20─'['repeat'](0x1e)));if(_0x283b95)console[_0x5cded5(0x145)](_0x5cded5(0x136)+a113_0x2e60cd[_0x5cded5(0xda)](_0x5cded5(0x126)));else{if(_0x428487){const _0x1ac648=await getIsSessionValid();console[_0x5cded5(0x145)](_0x5cded5(0x136)+(_0x1ac648?a113_0x2e60cd[_0x5cded5(0x12c)]('✓\x20Valid'):a113_0x2e60cd[_0x5cded5(0xde)](_0x5cded5(0xdf))));}else console[_0x5cded5(0x145)](_0x5cded5(0x136)+a113_0x2e60cd[_0x5cded5(0xde)]('✗\x20Not\x20logged\x20in'));}return console[_0x5cded5(0x145)](),{'ok':!![]};}function a113_0x2c60(_0x3908e4,_0x21796a){_0x3908e4=_0x3908e4-0xc2;const _0x548e07=a113_0x548e();let _0x2c60ba=_0x548e07[_0x3908e4];return _0x2c60ba;}export const doctorDefinition={'service':a113_0x2ae37c(0xca),'command':'check','description':'Diagnose\x20CLI\x20configuration\x20and\x20connectivity','risk':a113_0x2ae37c(0x146),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a114_0x1d5d(_0x46619e,_0x460d3b){_0x46619e=_0x46619e-0xd7;const _0x5da11c=a114_0x5da1();let _0x1d5d41=_0x5da11c[_0x46619e];return _0x1d5d41;}const a114_0x5b806e=a114_0x1d5d;(function(_0x112732,_0x4c4035){const _0xf00483=a114_0x1d5d,_0x30a352=_0x112732();while(!![]){try{const _0x284e2c=parseInt(_0xf00483(0xf3))/0x1+parseInt(_0xf00483(0xea))/0x2+parseInt(_0xf00483(0xe2))/0x3+-parseInt(_0xf00483(0xe4))/0x4*(-parseInt(_0xf00483(0xf4))/0x5)+-parseInt(_0xf00483(0xe1))/0x6*(-parseInt(_0xf00483(0xe6))/0x7)+-parseInt(_0xf00483(0xf7))/0x8*(parseInt(_0xf00483(0xf9))/0x9)+-parseInt(_0xf00483(0xf8))/0xa;if(_0x284e2c===_0x4c4035)break;else _0x30a352['push'](_0x30a352['shift']());}catch(_0x25e602){_0x30a352['push'](_0x30a352['shift']());}}}(a114_0x5da1,0xea6b3));import{requireDevelopmentUploadFile}from'../../commands/common/local-file.js';import{queryDevelopmentFileUrl,uploadDevelopmentFile}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a114_0x5da1(){const _0x43037f=['Path\x20to\x20the\x20local\x20file\x20to\x20upload','filePath','query-url','Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','upload','long-term','Uploaded\x20file:\x20','validation','File','filePath\x20is\x20required.','trim','6RwTvro','1528905nXrwkx','read','4zZZJNY','Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL','5234383YAXTIJ','Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML','string','appCode','280194apyXdK','.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','boolean','\x20to\x20development\x20app\x20','Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20or\x20immediate\x20access','str','path','bool','file','1060436FFymKg','6912030ojOEZj','filepath','POST','48NgDXDR','28799360ZuGXlJ','342XnLBeT','Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.'];a114_0x5da1=function(){return _0x43037f;};return a114_0x5da1();}const FILE_FLAG={'name':a114_0x5b806e(0xf2),'type':a114_0x5b806e(0xe8),'required':!![],'description':a114_0x5b806e(0xfb)},FILEPATH_FLAG={'name':a114_0x5b806e(0xf5),'type':a114_0x5b806e(0xe8),'required':!![],'description':'Development\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data'},DOWNLOAD_FLAG={'name':'download','type':a114_0x5b806e(0xec),'description':a114_0x5b806e(0xe5)},LONG_TERM_FLAG={'name':a114_0x5b806e(0xdb),'type':a114_0x5b806e(0xec),'description':a114_0x5b806e(0xe7)};function requireFilePath(_0x54eb73){const _0x62b9c0=a114_0x5b806e,_0x56e54b=_0x54eb73[_0x62b9c0(0xe0)]();if(!_0x56e54b)throw CliErrors[_0x62b9c0(0xdd)](_0x62b9c0(0xdf));return _0x56e54b;}const fileUpload={'service':a114_0x5b806e(0xf2),'command':a114_0x5b806e(0xda),'description':a114_0x5b806e(0xd9),'risk':'read','flags':[FILE_FLAG],async 'dryRun'(_0x44f13a){const _0x309fb3=a114_0x5b806e,_0x351ebd=requireDevelopmentUploadFile(_0x44f13a[_0x309fb3(0xef)]('file'),_0x309fb3(0xde));return{'method':_0x309fb3(0xf6),'url':'/smartapi/common/uploadFile','body':{'appCode':_0x44f13a[_0x309fb3(0xe9)],'multipart':{'file':_0x351ebd}},'description':'Preview:\x20upload\x20'+_0x351ebd[_0x309fb3(0xf0)]+_0x309fb3(0xed)+_0x44f13a[_0x309fb3(0xe9)]};},async 'execute'(_0x4dc6f6){const _0xd6d822=a114_0x5b806e,_0x3a383e=requireDevelopmentUploadFile(_0x4dc6f6[_0xd6d822(0xef)](_0xd6d822(0xf2)),_0xd6d822(0xde)),_0xbcc892=await uploadDevelopmentFile(_0x4dc6f6[_0xd6d822(0xe9)],_0x3a383e[_0xd6d822(0xf0)]);return{'ok':!![],'data':_0xbcc892,'message':_0xbcc892['filePath']?_0xd6d822(0xdc)+_0xbcc892[_0xd6d822(0xd7)]+_0xd6d822(0xeb):_0xd6d822(0xfa)};}},fileQueryUrl={'service':'file','command':a114_0x5b806e(0xd8),'description':a114_0x5b806e(0xee),'risk':a114_0x5b806e(0xe3),'flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0x3bd297){const _0x335d04=a114_0x5b806e,_0x5c7e92=requireFilePath(_0x3bd297['str'](_0x335d04(0xf5))),_0xf85ccb=await queryDevelopmentFileUrl(_0x5c7e92,{'download':_0x3bd297[_0x335d04(0xf1)]('download'),'longTerm':_0x3bd297[_0x335d04(0xf1)]('long-term')});return{'ok':!![],'data':_0xf85ccb};}};export const fileDefinitions=[fileUpload,fileQueryUrl];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a115_0x2337e9=a115_0x35a1;function a115_0x2019(){const _0x508cb6=['4365180JNcPHZ','24IsbJwM','datasetCode','1518377qtzrIE','650906ZRCpQC','write','3697870CIYerZ','5179584nMtzcU','313930TIYSVu','132syUDDB','\x20(id=','Create\x20a\x20draft\x20flow\x20definition\x20from\x20a\x20local\x20FlowConfig\x20file','create','POST','flowName','appCode','696903uNDIwp','8gTpNRE','1eXVjQI','Created\x20flow\x20','flow'];a115_0x2019=function(){return _0x508cb6;};return a115_0x2019();}(function(_0x3e122f,_0x5c8826){const _0x197918=a115_0x35a1,_0x155a72=_0x3e122f();while(!![]){try{const _0x5a5d0a=parseInt(_0x197918(0x11f))/0x1*(parseInt(_0x197918(0x126))/0x2)+parseInt(_0x197918(0x11d))/0x3*(parseInt(_0x197918(0x11e))/0x4)+parseInt(_0x197918(0x128))/0x5+-parseInt(_0x197918(0x129))/0x6+-parseInt(_0x197918(0x125))/0x7*(-parseInt(_0x197918(0x123))/0x8)+-parseInt(_0x197918(0x122))/0x9+parseInt(_0x197918(0x115))/0xa*(-parseInt(_0x197918(0x116))/0xb);if(_0x5a5d0a===_0x5c8826)break;else _0x155a72['push'](_0x155a72['shift']());}catch(_0x4bf691){_0x155a72['push'](_0x155a72['shift']());}}}(a115_0x2019,0x6f2c2));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_0x35a1(_0x33c264,_0x278dd3){_0x33c264=_0x33c264-0x115;const _0x2019c4=a115_0x2019();let _0x35a194=_0x2019c4[_0x33c264];return _0x35a194;}import{FLOW_FILE_FLAG,FLOW_PATHS,buildFlowUrl,confirmFlowWrite,flowSelector,prepareFlowWrite,readFlowFilePath}from'../../commands/flow/shared.js';export const flowCreate={'service':a115_0x2337e9(0x121),'command':'create','description':a115_0x2337e9(0x118),'risk':a115_0x2337e9(0x127),'flags':[FLOW_FILE_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x3dc58b){readFlowFilePath(_0x3dc58b);},async 'dryRun'(_0xaf31){const _0x2387bf=a115_0x2337e9,{request:_0xd0dec0,warnings:_0x20b43e}=await prepareFlowWrite(readFlowFilePath(_0xaf31),_0xaf31[_0x2387bf(0x11c)]);return asDryRunResult({'operation':_0x2387bf(0x119),'selector':{'appCode':_0xaf31[_0x2387bf(0x11c)],'flowName':_0xd0dec0[_0x2387bf(0x11b)],..._0xd0dec0['datasetCode']?{'datasetCode':_0xd0dec0[_0x2387bf(0x124)]}:{}},'before':null,'after':_0xd0dec0,'request':_0xd0dec0,'dryRun':!![],'backend':{'method':_0x2387bf(0x11a),'path':FLOW_PATHS[_0x2387bf(0x119)]},'warnings':_0x20b43e},{'method':'POST','url':FLOW_PATHS[_0x2387bf(0x119)]});},async 'execute'(_0x9a5e7d){const _0x5c818b=a115_0x2337e9,{request:_0x18dc2c,warnings:_0x546b65}=await prepareFlowWrite(readFlowFilePath(_0x9a5e7d),_0x9a5e7d[_0x5c818b(0x11c)]);await confirmFlowWrite(_0x9a5e7d,'create',_0x18dc2c);const _0x10b3b2=await createFlowDefinition(_0x18dc2c),_0xfcc2c7=buildFlowUrl(_0x9a5e7d[_0x5c818b(0x11c)],_0x10b3b2['id']),_0x15405f=''+(_0x10b3b2[_0x5c818b(0x11b)]||_0x18dc2c['flowName'])+(_0x10b3b2['id']?_0x5c818b(0x117)+_0x10b3b2['id']+')':'');return{'ok':!![],'data':{'operation':_0x5c818b(0x119),'selector':flowSelector(_0x9a5e7d[_0x5c818b(0x11c)],_0x10b3b2['id'],_0x10b3b2),'before':null,'after':_0x10b3b2,'flowUrl':_0xfcc2c7,'dryRun':![],'backend':{'method':'POST','path':FLOW_PATHS[_0x5c818b(0x119)]},'warnings':_0x546b65},'message':_0x5c818b(0x120)+_0x15405f+'.\x20Flow\x20URL:\x20'+_0xfcc2c7};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a116_0x438b04=a116_0xb18e;(function(_0x567ddb,_0x1eb86b){const _0x31a23b=a116_0xb18e,_0x28bea4=_0x567ddb();while(!![]){try{const _0x12cf62=-parseInt(_0x31a23b(0x165))/0x1*(parseInt(_0x31a23b(0x15b))/0x2)+-parseInt(_0x31a23b(0x14e))/0x3+parseInt(_0x31a23b(0x15c))/0x4*(parseInt(_0x31a23b(0x155))/0x5)+-parseInt(_0x31a23b(0x154))/0x6*(parseInt(_0x31a23b(0x152))/0x7)+parseInt(_0x31a23b(0x14f))/0x8*(parseInt(_0x31a23b(0x153))/0x9)+-parseInt(_0x31a23b(0x14b))/0xa+-parseInt(_0x31a23b(0x157))/0xb*(-parseInt(_0x31a23b(0x16a))/0xc);if(_0x12cf62===_0x1eb86b)break;else _0x28bea4['push'](_0x28bea4['shift']());}catch(_0x3c2830){_0x28bea4['push'](_0x28bea4['shift']());}}}(a116_0x5952,0x2fdf9));import{mkdir,stat}from'node:fs/promises';import{dirname,resolve}from'node:path';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{getFlowDefinition}from'../../core/api-client.js';import{writeNormalizedFlowConfig}from'../../core/flow-config.js';import{CliErrors}from'../../errors.js';import{FLOW_ID_FLAG,flowDefinitionToConfig,readFlowId}from'../../commands/flow/shared.js';function a116_0x5952(){const _0x1e48b8=['Write\x20a\x20portable\x20normalized\x20FlowConfig\x20JSON\x20file','warnings','1joVTOy','flowCode','trim','\x20to\x20','string','12AcHuiV','validation','Overwrite\x20an\x20existing\x20output\x20file','appCode','3872410LxvbzD','detail','Wrote\x20FlowConfig\x20for\x20','1109205cNJEEi','504jnpnHq','flowName','bool','7OmZpYj','52281qAAvbt','527934pAeVqe','105bojURA','code','5559719agXDjQ','FlowConfig\x20output\x20already\x20exists:\x20','path','output','185558JnKyjY','49988XdTDDZ','str','force','boolean','Get\x20one\x20design-time\x20flow\x20definition','Pass\x20--force\x20to\x20overwrite\x20it.','config'];a116_0x5952=function(){return _0x1e48b8;};return a116_0x5952();}export const flowDetail={'service':'flow','command':a116_0x438b04(0x14c),'description':a116_0x438b04(0x160),'risk':'read','flags':[FLOW_ID_FLAG,{'name':'output','type':a116_0x438b04(0x169),'description':a116_0x438b04(0x163)},{'name':a116_0x438b04(0x15e),'type':a116_0x438b04(0x15f),'description':a116_0x438b04(0x149)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x2b066a){readFlowId(_0x2b066a);},async 'execute'(_0x14094f){const _0x2798fa=a116_0x438b04,_0x15b988=readFlowId(_0x14094f),_0xbd2b4c=_0x14094f[_0x2798fa(0x15d)](_0x2798fa(0x15a))[_0x2798fa(0x167)](),_0xcd9836=_0xbd2b4c?resolve(_0xbd2b4c):undefined;if(_0xcd9836&&!_0x14094f['bool'](_0x2798fa(0x15e))&&await fileExists(_0xcd9836))throw CliErrors[_0x2798fa(0x148)](_0x2798fa(0x158)+_0xcd9836,_0x2798fa(0x161));const _0x3f6d6c=await getFlowDefinition(_0x14094f[_0x2798fa(0x14a)],_0x15b988);let _0x231cfc;if(_0xcd9836){const _0x5aedff=flowDefinitionToConfig(_0x3f6d6c);await mkdir(dirname(_0xcd9836),{'recursive':!![]});try{await writeNormalizedFlowConfig(_0xcd9836,_0x5aedff[_0x2798fa(0x162)],{'overwrite':_0x14094f[_0x2798fa(0x151)](_0x2798fa(0x15e))});}catch(_0x493fce){if(isAlreadyExistsError(_0x493fce))throw CliErrors[_0x2798fa(0x148)](_0x2798fa(0x158)+_0xcd9836,_0x2798fa(0x161));throw _0x493fce;}_0x231cfc={'path':_0xcd9836,'warnings':_0x5aedff[_0x2798fa(0x164)]};}return{'ok':!![],'data':{'flow':_0x3f6d6c,..._0x231cfc?{'output':_0x231cfc}:{}},'message':_0x231cfc?_0x2798fa(0x14d)+(_0x3f6d6c['flowName']||_0x3f6d6c[_0x2798fa(0x166)]||_0x15b988)+_0x2798fa(0x168)+_0x231cfc[_0x2798fa(0x159)]:'Flow\x20'+(_0x3f6d6c[_0x2798fa(0x150)]||_0x3f6d6c[_0x2798fa(0x166)]||_0x15b988)};}};async function fileExists(_0x1cfd64){try{return await stat(_0x1cfd64),!![];}catch(_0x1b9604){return!isNotFoundError(_0x1b9604);}}function isNotFoundError(_0x32c0a3){return _0x32c0a3?.['code']==='ENOENT';}function a116_0xb18e(_0x1a6e98,_0xafcac6){_0x1a6e98=_0x1a6e98-0x148;const _0x59522c=a116_0x5952();let _0xb18e43=_0x59522c[_0x1a6e98];return _0xb18e43;}function isAlreadyExistsError(_0x38bf3f){const _0x93b4b9=a116_0x438b04;return _0x38bf3f?.[_0x93b4b9(0x156)]==='EEXIST';}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x265b7e,_0x5ae7a5){const _0x2ef378=a117_0x326f,_0x2daa6d=_0x265b7e();while(!![]){try{const _0xa5a2be=parseInt(_0x2ef378(0xea))/0x1+parseInt(_0x2ef378(0xf1))/0x2+-parseInt(_0x2ef378(0xed))/0x3+-parseInt(_0x2ef378(0xf0))/0x4*(parseInt(_0x2ef378(0xe9))/0x5)+-parseInt(_0x2ef378(0xef))/0x6+parseInt(_0x2ef378(0xee))/0x7+-parseInt(_0x2ef378(0xec))/0x8*(parseInt(_0x2ef378(0xeb))/0x9);if(_0xa5a2be===_0x5ae7a5)break;else _0x2daa6d['push'](_0x2daa6d['shift']());}catch(_0x49f5d8){_0x2daa6d['push'](_0x2daa6d['shift']());}}}(a117_0x2bb2,0x90f89));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_0x2bb2(){const _0x22f176=['1154945QgTtmw','1807794bjDHyu','16VTvild','2269107JPRrBL','6281030jDOLNw','434274IinWVk','2356EjEQjN','929420OmjmQc','5880XaZPXt'];a117_0x2bb2=function(){return _0x22f176;};return a117_0x2bb2();}function a117_0x326f(_0x31d87f,_0x1e57cb){_0x31d87f=_0x31d87f-0xe9;const _0x2bb2c3=a117_0x2bb2();let _0x326f41=_0x2bb2c3[_0x31d87f];return _0x326f41;}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
|
-
function
|
|
1
|
+
function a118_0x40f5(_0x7cfe85,_0x36e8ea){_0x7cfe85=_0x7cfe85-0x84;const _0x24cd46=a118_0x24cd();let _0x40f518=_0x24cd46[_0x7cfe85];return _0x40f518;}function a118_0x24cd(){const _0x18e985=['4098288OcXIGx','Found\x20','7orliFI','1960400fVMHeZ','41142HMzSBB','flow','read','dataset-code','13814QuCZXU','3IXXCFf','flow-code','validation','Filter\x20by\x20flow\x20name','11KRdPxn','Filter\x20by\x20flow\x20type','num','page-size','flow-status','18810hknyOG','3AbZypA','867630JcZaKt','\x20flow\x20definition(s)','200dIQYVd','string','--page\x20must\x20be\x20a\x20positive\x20integer.','number','Filter\x20by\x20exact\x20server-generated\x20flow\x20code','Page\x20number\x20(1-based)','str','appCode','13hNKeVF','isSafeInteger','published','List\x20design-time\x20flow\x20definitions\x20for\x20the\x20current\x20app','flow-type','list','flow-name','660316AqVBkr'];a118_0x24cd=function(){return _0x18e985;};return a118_0x24cd();}const a118_0x375d6c=a118_0x40f5;(function(_0x382239,_0x4deb98){const _0x4af327=a118_0x40f5,_0x55bdca=_0x382239();while(!![]){try{const _0x2aba49=parseInt(_0x4af327(0x9a))/0x1*(parseInt(_0x4af327(0x99))/0x2)+parseInt(_0x4af327(0xa4))/0x3*(parseInt(_0x4af327(0x90))/0x4)+-parseInt(_0x4af327(0xa5))/0x5+parseInt(_0x4af327(0x95))/0x6*(parseInt(_0x4af327(0x93))/0x7)+-parseInt(_0x4af327(0xa7))/0x8*(parseInt(_0x4af327(0xa3))/0x9)+parseInt(_0x4af327(0x94))/0xa*(-parseInt(_0x4af327(0x9e))/0xb)+-parseInt(_0x4af327(0x91))/0xc*(-parseInt(_0x4af327(0x89))/0xd);if(_0x2aba49===_0x4deb98)break;else _0x55bdca['push'](_0x55bdca['shift']());}catch(_0xb61e58){_0x55bdca['push'](_0x55bdca['shift']());}}}(a118_0x24cd,0x1b6ed));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{listFlowDefinitions}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const FLOW_STATUSES=['draft',a118_0x375d6c(0x8b)];export const flowList={'service':a118_0x375d6c(0x96),'command':a118_0x375d6c(0x8e),'description':a118_0x375d6c(0x8c),'risk':a118_0x375d6c(0x97),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a118_0x375d6c(0x9b),'type':'string','description':a118_0x375d6c(0x85)},{'name':a118_0x375d6c(0x8f),'type':a118_0x375d6c(0xa8),'description':a118_0x375d6c(0x9d)},{'name':'flow-status','type':a118_0x375d6c(0xa8),'description':'Filter\x20by\x20flow\x20status','enum':FLOW_STATUSES},{'name':a118_0x375d6c(0x98),'type':a118_0x375d6c(0xa8),'description':'Filter\x20by\x20dataset\x20code'},{'name':a118_0x375d6c(0x8d),'type':a118_0x375d6c(0xa8),'description':a118_0x375d6c(0x9f)},{'name':'page','type':'number','description':a118_0x375d6c(0x86),'default':0x1},{'name':a118_0x375d6c(0xa1),'type':a118_0x375d6c(0x84),'description':'Page\x20size','default':0x14}],async 'validate'(_0x348f2e){const _0x534eef=a118_0x375d6c,_0x5af818=_0x348f2e[_0x534eef(0xa0)]('page',0x1),_0xad7a7c=_0x348f2e[_0x534eef(0xa0)]('page-size',0x14);if(!Number['isSafeInteger'](_0x5af818)||_0x5af818<0x1)throw CliErrors[_0x534eef(0x9c)](_0x534eef(0xa9));if(!Number[_0x534eef(0x8a)](_0xad7a7c)||_0xad7a7c<0x1)throw CliErrors[_0x534eef(0x9c)]('--page-size\x20must\x20be\x20a\x20positive\x20integer.');},async 'execute'(_0x4d4c7f){const _0x4a7910=a118_0x375d6c,{items:_0x2beb85,paging:_0xd56999}=await listFlowDefinitions(_0x4d4c7f[_0x4a7910(0x88)],{'flowCode':optionalString(_0x4d4c7f[_0x4a7910(0x87)](_0x4a7910(0x9b))),'flowName':optionalString(_0x4d4c7f[_0x4a7910(0x87)](_0x4a7910(0x8f))),'flowStatus':optionalString(_0x4d4c7f[_0x4a7910(0x87)](_0x4a7910(0xa2))),'datasetCode':optionalString(_0x4d4c7f[_0x4a7910(0x87)](_0x4a7910(0x98))),'flowType':optionalString(_0x4d4c7f['str'](_0x4a7910(0x8d))),'pageNum':_0x4d4c7f[_0x4a7910(0xa0)]('page',0x1),'pageSize':_0x4d4c7f[_0x4a7910(0xa0)]('page-size',0x14)});return{'ok':!![],'data':{'appCode':_0x4d4c7f[_0x4a7910(0x88)],'flows':_0x2beb85,'paging':_0xd56999},'message':_0x4a7910(0x92)+_0x2beb85['length']+_0x4a7910(0xa6)};}};function optionalString(_0x5b7f4e){const _0x3f0572=_0x5b7f4e['trim']();return _0x3f0572||undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a119_0x196f4b=a119_0x3c44;(function(_0x3b8297,_0x19c724){const _0x293fce=a119_0x3c44,_0xcb2ba6=_0x3b8297();while(!![]){try{const _0x32e4c1=parseInt(_0x293fce(0x105))/0x1+-parseInt(_0x293fce(0x108))/0x2+-parseInt(_0x293fce(0xfa))/0x3*(-parseInt(_0x293fce(0x109))/0x4)+parseInt(_0x293fce(0x10a))/0x5*(-parseInt(_0x293fce(0xfb))/0x6)+-parseInt(_0x293fce(0x103))/0x7+-parseInt(_0x293fce(0x104))/0x8*(parseInt(_0x293fce(0x106))/0x9)+parseInt(_0x293fce(0x107))/0xa;if(_0x32e4c1===_0x19c724)break;else _0xcb2ba6['push'](_0xcb2ba6['shift']());}catch(_0x248d32){_0xcb2ba6['push'](_0xcb2ba6['shift']());}}}(a119_0x4059,0xb1744));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a119_0x4059(){const _0x24cae7=['694323QCSlUN','6176889NhxVGZ','16531680JuHUrM','648922XJtETR','251492AVecxX','65oNocgA','flow','POST','33qwFfmt','420492pjJwtT','flowCode','appCode','published','Publish\x20the\x20current\x20flow\x20definition\x20draft','write','publish','Published\x20flow\x20','2732758LQkyEN','8uRpgoZ'];a119_0x4059=function(){return _0x24cae7;};return a119_0x4059();}import{publishFlowDefinition}from'../../core/api-client.js';function a119_0x3c44(_0xd047be,_0x3a38f4){_0xd047be=_0xd047be-0xf9;const _0x4059c2=a119_0x4059();let _0x3c444f=_0x4059c2[_0xd047be];return _0x3c444f;}import{FLOW_ID_FLAG,FLOW_PATHS,buildFlowUrl,buildFlowIdDryRun,flowSelector,readFlowId}from'../../commands/flow/shared.js';export const flowPublish={'service':a119_0x196f4b(0x10b),'command':a119_0x196f4b(0x101),'description':a119_0x196f4b(0xff),'risk':a119_0x196f4b(0x100),'flags':[FLOW_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x768c2c){readFlowId(_0x768c2c);},async 'dryRun'(_0x38d30e){const _0xed66b8=a119_0x196f4b,_0x575ccb=readFlowId(_0x38d30e);return buildFlowIdDryRun('publish',FLOW_PATHS[_0xed66b8(0x101)],_0x38d30e[_0xed66b8(0xfd)],_0x575ccb,{'id':_0x575ccb,'flowStatus':_0xed66b8(0xfe)});},async 'execute'(_0x4d7db9){const _0x185766=a119_0x196f4b,_0x111d14=readFlowId(_0x4d7db9),_0x560462=await publishFlowDefinition(_0x4d7db9[_0x185766(0xfd)],_0x111d14),_0x5b91ff=buildFlowUrl(_0x4d7db9[_0x185766(0xfd)],_0x111d14);return{'ok':!![],'data':{'operation':_0x185766(0x101),'selector':flowSelector(_0x4d7db9[_0x185766(0xfd)],_0x111d14,_0x560462),'before':null,'after':_0x560462,'flowUrl':_0x5b91ff,'dryRun':![],'backend':{'method':_0x185766(0xf9),'path':FLOW_PATHS[_0x185766(0x101)]},'warnings':[]},'message':_0x185766(0x102)+(_0x560462['flowName']||_0x560462[_0x185766(0xfc)]||_0x111d14)+'.\x20Flow\x20URL:\x20'+_0x5b91ff};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a120_0x32487a=a120_0xe196;(function(_0x4b6fbf,_0x3d75de){const _0x5ccc07=a120_0xe196,_0x1d4277=_0x4b6fbf();while(!![]){try{const _0x50b187=-parseInt(_0x5ccc07(0x1f2))/0x1+parseInt(_0x5ccc07(0x209))/0x2*(-parseInt(_0x5ccc07(0x1db))/0x3)+parseInt(_0x5ccc07(0x1f1))/0x4*(-parseInt(_0x5ccc07(0x200))/0x5)+-parseInt(_0x5ccc07(0x202))/0x6*(-parseInt(_0x5ccc07(0x1f9))/0x7)+parseInt(_0x5ccc07(0x1ff))/0x8*(parseInt(_0x5ccc07(0x1e2))/0x9)+-parseInt(_0x5ccc07(0x1e5))/0xa*(parseInt(_0x5ccc07(0x1e3))/0xb)+parseInt(_0x5ccc07(0x1f6))/0xc;if(_0x50b187===_0x3d75de)break;else _0x1d4277['push'](_0x1d4277['shift']());}catch(_0x7f6244){_0x1d4277['push'](_0x1d4277['shift']());}}}(a120_0x3859,0xc54da));import{CliErrors}from'../../errors.js';export const FLOW_RUNTIME_PAGE_FLAG={'name':'page','type':a120_0x32487a(0x206),'description':a120_0x32487a(0x1de),'default':0x1};export const FLOW_RUNTIME_PAGE_SIZE_FLAG={'name':'page-size','type':a120_0x32487a(0x206),'description':a120_0x32487a(0x1da),'default':0x14};export const FLOW_RUNTIME_ROLE_REF_FLAG={'name':a120_0x32487a(0x201),'type':'string','required':!![],'description':a120_0x32487a(0x1e4)};export function readRuntimePagination(_0x130189){const _0x4cf30e=a120_0x32487a,_0x333ceb=_0x130189[_0x4cf30e(0x1f4)](_0x4cf30e(0x1e6),0x1),_0x204150=_0x130189[_0x4cf30e(0x1f4)](_0x4cf30e(0x1e1),0x14);if(!Number[_0x4cf30e(0x1fd)](_0x333ceb)||_0x333ceb<0x1)throw CliErrors[_0x4cf30e(0x1f0)](_0x4cf30e(0x1ee));if(!Number[_0x4cf30e(0x1fd)](_0x204150)||_0x204150<0x1||_0x204150>0x64)throw CliErrors[_0x4cf30e(0x1f0)](_0x4cf30e(0x205));return{'page':_0x333ceb,'pageSize':_0x204150};}function a120_0xe196(_0x53a08b,_0x38b9cb){_0x53a08b=_0x53a08b-0x1da;const _0x3859d8=a120_0x3859();let _0xe196da=_0x3859d8[_0x53a08b];return _0xe196da;}export function paginateRuntimeItems(_0x8977ba,_0x231085,_0x11d014){const _0x1cdc0c=a120_0x32487a,_0x4d96cd=(_0x231085-0x1)*_0x11d014;return{'items':_0x8977ba[_0x1cdc0c(0x203)](_0x4d96cd,_0x4d96cd+_0x11d014),'paging':{'currentPage':_0x231085,'pageSize':_0x11d014,'totalCount':_0x8977ba[_0x1cdc0c(0x1fc)]}};}export function projectRuntimeRole(_0x5c0f52){const _0xb39a2e=a120_0x32487a;return{'id':_0x5c0f52['id'],'roleName':_0x5c0f52[_0xb39a2e(0x207)]??null,'roleType':_0x5c0f52['roleType']??null,'remark':_0x5c0f52[_0xb39a2e(0x1ef)]??null,'userCount':_0x5c0f52[_0xb39a2e(0x1e8)]??0x0,'permitCount':_0x5c0f52[_0xb39a2e(0x1dd)]??0x0};}function a120_0x3859(){const _0x5c8296=['status','39120132pabhOv','flagMissing','trim','14uwfdAR','str','displayName','length','isSafeInteger','\x22\x20is\x20ambiguous\x20(ids:\x20','96elJEOf','53255YUSdkA','role','607866liebJT','slice','filter','--page-size\x20must\x20be\x20an\x20integer\x20between\x201\x20and\x20100.','number','roleName','Disambiguate\x20with\x20--role\x20<id>.','78YJgkDt','Page\x20size\x20(1-100)','89133ySpBMO','string','permitCount','Page\x20index\x20(1-based)','Runtime\x20role\x20\x22','Runtime\x20role\x20name\x20\x22','page-size','787419zigoZQ','99GqgyfH','Runtime\x20role\x20id\x20or\x20exact\x20role\x20name','610970teecof','page','\x22\x20not\x20found\x20in\x20app\x20','userCount','map','userName','nickName','test','nickname','--page\x20must\x20be\x20a\x20positive\x20integer.','remark','validation','300SCouzx','1196944tirEqA','email','num'];a120_0x3859=function(){return _0x5c8296;};return a120_0x3859();}export function projectRuntimeUser(_0x34d280){const _0x3da9a9=a120_0x32487a,_0x5b9985=normalizeRuntimeUserId(_0x34d280['code']);if(!_0x5b9985)return null;return{'userId':_0x5b9985,'username':_0x34d280[_0x3da9a9(0x1ea)]??null,'nickname':_0x34d280[_0x3da9a9(0x1eb)]??null,'displayName':_0x34d280[_0x3da9a9(0x1fb)]??null,'email':_0x34d280[_0x3da9a9(0x1f3)]??null,'status':_0x34d280[_0x3da9a9(0x1f5)]??null};}export function projectRuntimeRoleMember(_0x15d4a6){const _0x228898=a120_0x32487a,_0x2641c5=normalizeRuntimeUserId(_0x15d4a6['userId']);if(!_0x2641c5)return null;return{'userId':_0x2641c5,'username':_0x15d4a6['username']??null,'nickname':_0x15d4a6[_0x228898(0x1ed)]??null};}export function readRuntimeRoleRef(_0x4f7eec){const _0x4ef820=a120_0x32487a,_0xd43354=_0x4f7eec[_0x4ef820(0x1fa)](_0x4ef820(0x201))[_0x4ef820(0x1f8)]();if(!_0xd43354)throw CliErrors[_0x4ef820(0x1f7)](_0x4ef820(0x201),'Pass\x20--role\x20<id|name>.');return _0xd43354;}export function resolveRuntimeRoleGroup(_0x3a02df,_0x55e11b,_0x23c5f5){const _0x1aed50=a120_0x32487a,_0x132332=/^\d+$/[_0x1aed50(0x1ec)](_0x55e11b)?_0x23c5f5['filter'](_0x3f337c=>_0x3f337c['id']===Number(_0x55e11b)):_0x23c5f5[_0x1aed50(0x204)](_0x40a465=>_0x40a465['roleName']===_0x55e11b);if(_0x132332[_0x1aed50(0x1fc)]===0x0)throw CliErrors[_0x1aed50(0x1f0)](_0x1aed50(0x1df)+_0x55e11b+_0x1aed50(0x1e7)+_0x3a02df+'.','Run\x20`flow\x20runtime-role-list`\x20to\x20see\x20runtime\x20roles.');if(_0x132332['length']>0x1){const _0x3c6859=_0x132332[_0x1aed50(0x1e9)](_0x53ee1d=>_0x53ee1d['id'])['join'](',\x20');throw CliErrors[_0x1aed50(0x1f0)](_0x1aed50(0x1e0)+_0x55e11b+_0x1aed50(0x1fe)+_0x3c6859+').',_0x1aed50(0x208));}return _0x132332[0x0];}function normalizeRuntimeUserId(_0x36bb8e){const _0x4c2032=a120_0x32487a;if(typeof _0x36bb8e!==_0x4c2032(0x1dc)&&typeof _0x36bb8e!==_0x4c2032(0x206))return null;const _0x49994b=String(_0x36bb8e)[_0x4c2032(0x1f8)]();return _0x49994b||null;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a121_0x15bc12=a121_0x2412;(function(_0x2c1db8,_0x4a48d1){const _0x48a969=a121_0x2412,_0x1d6ada=_0x2c1db8();while(!![]){try{const _0x58fd98=parseInt(_0x48a969(0x197))/0x1*(-parseInt(_0x48a969(0x195))/0x2)+-parseInt(_0x48a969(0x1a7))/0x3+parseInt(_0x48a969(0x19d))/0x4*(parseInt(_0x48a969(0x1a6))/0x5)+-parseInt(_0x48a969(0x1a2))/0x6+-parseInt(_0x48a969(0x19b))/0x7*(parseInt(_0x48a969(0x1a5))/0x8)+parseInt(_0x48a969(0x1a0))/0x9*(parseInt(_0x48a969(0x196))/0xa)+parseInt(_0x48a969(0x194))/0xb*(parseInt(_0x48a969(0x193))/0xc);if(_0x58fd98===_0x4a48d1)break;else _0x1d6ada['push'](_0x1d6ada['shift']());}catch(_0x55b1f8){_0x1d6ada['push'](_0x1d6ada['shift']());}}}(a121_0x3fd9,0x3d474));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{FLOW_RUNTIME_PAGE_FLAG,FLOW_RUNTIME_PAGE_SIZE_FLAG,projectRuntimeRole,readRuntimePagination}from'../../commands/flow/runtime-resources-shared.js';function a121_0x2412(_0x2911b5,_0x136786){_0x2911b5=_0x2911b5-0x191;const _0x3fd95a=a121_0x3fd9();let _0x241208=_0x3fd95a[_0x2911b5];return _0x241208;}import{listApprovalRuntimeRoles}from'../../core/api-client.js';export const flowRuntimeRoleList={'service':a121_0x15bc12(0x191),'command':a121_0x15bc12(0x19a),'description':a121_0x15bc12(0x1a4),'risk':'read','flags':[{'name':a121_0x15bc12(0x19f),'type':'string','description':a121_0x15bc12(0x198)},FLOW_RUNTIME_PAGE_FLAG,FLOW_RUNTIME_PAGE_SIZE_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x326c6d){readRuntimePagination(_0x326c6d);},async 'execute'(_0xd69599){const _0xb86612=a121_0x15bc12,{page:_0x2d567d,pageSize:_0x472360}=readRuntimePagination(_0xd69599),_0x155f4b=_0xd69599[_0xb86612(0x1a1)](_0xb86612(0x19f))['trim'](),{items:_0x3b3b62,paging:_0x34dde2}=await listApprovalRuntimeRoles(_0xd69599[_0xb86612(0x19c)],{..._0x155f4b?{'roleName':_0x155f4b}:{},'currentPage':_0x2d567d,'pageSize':_0x472360}),_0x5d86e3=_0x3b3b62['map'](projectRuntimeRole);return{'ok':!![],'data':{'appCode':_0xd69599[_0xb86612(0x19c)],'scope':_0xb86612(0x1a3),..._0x155f4b?{'keyword':_0x155f4b}:{},'roles':_0x5d86e3,'paging':_0x34dde2},'message':_0xb86612(0x199)+_0x5d86e3[_0xb86612(0x19e)]+_0xb86612(0x192)};}};function a121_0x3fd9(){const _0x401ed0=['Optional\x20runtime\x20role-name\x20keyword','Found\x20','runtime-role-list','26803UUFZuP','appCode','436sAyWsF','length','keyword','4132017xPzBiQ','str','1047906aCiIRY','runtime','List\x20runtime\x20app\x20roles\x20for\x20approval\x20assignee\x20selection','840PuYgBQ','4135OyRakM','770766knATfD','flow','\x20runtime\x20role(s)','12HHeqyW','9509434vwaKyY','329136XsixIE','10tHkwsW','2HkdQWg'];a121_0x3fd9=function(){return _0x401ed0;};return a121_0x3fd9();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a122_0x2fc5(_0x80655c,_0x4c03bf){_0x80655c=_0x80655c-0x15e;const _0x4d3193=a122_0x4d31();let _0x2fc513=_0x4d3193[_0x80655c];return _0x2fc513;}const a122_0x979632=a122_0x2fc5;(function(_0x1dfc19,_0x46fa54){const _0x22b1d2=a122_0x2fc5,_0x4bd0f9=_0x1dfc19();while(!![]){try{const _0x522880=parseInt(_0x22b1d2(0x16e))/0x1*(parseInt(_0x22b1d2(0x16a))/0x2)+parseInt(_0x22b1d2(0x165))/0x3+parseInt(_0x22b1d2(0x172))/0x4*(parseInt(_0x22b1d2(0x16d))/0x5)+-parseInt(_0x22b1d2(0x161))/0x6+parseInt(_0x22b1d2(0x15e))/0x7+parseInt(_0x22b1d2(0x173))/0x8*(-parseInt(_0x22b1d2(0x15f))/0x9)+parseInt(_0x22b1d2(0x164))/0xa;if(_0x522880===_0x46fa54)break;else _0x4bd0f9['push'](_0x4bd0f9['shift']());}catch(_0x11a70b){_0x4bd0f9['push'](_0x4bd0f9['shift']());}}}(a122_0x4d31,0x76b33));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a122_0x4d31(){const _0x437031=['appCode','roleType','items','160BxKqZv','8zMBgGI','List\x20members\x20of\x20one\x20runtime\x20app\x20role\x20for\x20approval\x20verification','userList','53711kcdYmq','4693554iZkixf','read','110058kJfmeL','filter','Found\x20','4301590WXMGnl','928419yIkoMw','length','paging','runtime-role-user-list','roleName','2mkbDod','map','\x20runtime\x20member(s)\x20in\x20role\x20','4190WUGWfV','245219SwzIQv'];a122_0x4d31=function(){return _0x437031;};return a122_0x4d31();}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_0x979632(0x168),'description':a122_0x979632(0x174),'risk':a122_0x979632(0x160),'flags':[FLOW_RUNTIME_ROLE_REF_FLAG,FLOW_RUNTIME_PAGE_FLAG,FLOW_RUNTIME_PAGE_SIZE_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x2586f8){readRuntimeRoleRef(_0x2586f8),readRuntimePagination(_0x2586f8);},async 'execute'(_0x43dc15){const _0x123edd=a122_0x979632,_0x234f56=resolveRuntimeRoleGroup(_0x43dc15[_0x123edd(0x16f)],readRuntimeRoleRef(_0x43dc15),await listApprovalRuntimeRoleUsers(_0x43dc15[_0x123edd(0x16f)])),_0x19ed78=(_0x234f56[_0x123edd(0x175)]??[])[_0x123edd(0x16b)](projectRuntimeRoleMember)[_0x123edd(0x162)](_0x9f1efa=>_0x9f1efa!==null),{page:_0x4e0983,pageSize:_0x23a9f0}=readRuntimePagination(_0x43dc15),_0x1770bc=paginateRuntimeItems(_0x19ed78,_0x4e0983,_0x23a9f0);return{'ok':!![],'data':{'appCode':_0x43dc15[_0x123edd(0x16f)],'scope':'runtime','role':{'id':_0x234f56['id'],'roleName':_0x234f56[_0x123edd(0x169)]??null,'roleType':_0x234f56[_0x123edd(0x170)]??null},'users':_0x1770bc[_0x123edd(0x171)],'paging':_0x1770bc[_0x123edd(0x167)]},'message':_0x123edd(0x163)+_0x19ed78[_0x123edd(0x166)]+_0x123edd(0x16c)+(_0x234f56[_0x123edd(0x169)]??_0x234f56['id'])};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a123_0xdc180f=a123_0x5ffb;(function(_0x1865c4,_0x1fd077){const _0x10e8dc=a123_0x5ffb,_0x33febf=_0x1865c4();while(!![]){try{const _0x5e809c=parseInt(_0x10e8dc(0x14a))/0x1+-parseInt(_0x10e8dc(0x152))/0x2*(parseInt(_0x10e8dc(0x14b))/0x3)+parseInt(_0x10e8dc(0x15c))/0x4+-parseInt(_0x10e8dc(0x14e))/0x5+-parseInt(_0x10e8dc(0x145))/0x6+-parseInt(_0x10e8dc(0x149))/0x7+parseInt(_0x10e8dc(0x15b))/0x8;if(_0x5e809c===_0x1fd077)break;else _0x33febf['push'](_0x33febf['shift']());}catch(_0x489f0c){_0x33febf['push'](_0x33febf['shift']());}}}(a123_0xbc33,0x91b38));function a123_0x5ffb(_0x43456d,_0x4083c5){_0x43456d=_0x43456d-0x13d;const _0xbc33f6=a123_0xbc33();let _0x5ffb16=_0xbc33f6[_0x43456d];return _0x5ffb16;}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a123_0xbc33(){const _0x3295a8=['toLowerCase','6216483uEqMxd','495888aXGlgQ','204DaOlKd','paging','items','24135dLDqZc','trim','flagMissing','includes','13916XbsUXT','map','length','\x20runtime\x20app\x20user(s)\x20matching\x20\x22','flow','nickName','runtime','code','appCode','11085112ooTKWh','1840568WMtvvS','read','keyword','User\x20id,\x20username,\x20nickname,\x20display\x20name,\x20or\x20email\x20keyword','Pass\x20--keyword\x20<text>.','Found\x20','str','Search\x20runtime\x20app\x20users\x20for\x20approval\x20assignee\x20selection','filter','string','2273022DZFLDR','runtime-user-search','userName'];a123_0xbc33=function(){return _0x3295a8;};return a123_0xbc33();}import{FLOW_RUNTIME_PAGE_FLAG,FLOW_RUNTIME_PAGE_SIZE_FLAG,paginateRuntimeItems,projectRuntimeUser,readRuntimePagination}from'../../commands/flow/runtime-resources-shared.js';import{listApprovalRuntimeUsers}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';export const flowRuntimeUserSearch={'service':a123_0xdc180f(0x156),'command':a123_0xdc180f(0x146),'description':a123_0xdc180f(0x142),'risk':a123_0xdc180f(0x15d),'flags':[{'name':a123_0xdc180f(0x13d),'type':a123_0xdc180f(0x144),'required':!![],'description':a123_0xdc180f(0x13e)},FLOW_RUNTIME_PAGE_FLAG,FLOW_RUNTIME_PAGE_SIZE_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x24a4a4){const _0x39badc=a123_0xdc180f;if(!_0x24a4a4['str'](_0x39badc(0x13d))[_0x39badc(0x14f)]())throw CliErrors[_0x39badc(0x150)]('keyword',_0x39badc(0x13f));readRuntimePagination(_0x24a4a4);},async 'execute'(_0x3e4f4c){const _0x524284=a123_0xdc180f,_0x4a6833=_0x3e4f4c[_0x524284(0x141)]('keyword')['trim'](),_0x4348ad=_0x4a6833['toLowerCase'](),_0x1ee4c8=(await listApprovalRuntimeUsers(_0x3e4f4c[_0x524284(0x15a)]))['filter'](_0x735f6f=>[_0x735f6f[_0x524284(0x159)],_0x735f6f[_0x524284(0x147)],_0x735f6f[_0x524284(0x157)],_0x735f6f['displayName'],_0x735f6f['email']]['some'](_0x5a43e9=>_0x5a43e9!==null&&_0x5a43e9!==undefined&&String(_0x5a43e9)[_0x524284(0x148)]()[_0x524284(0x151)](_0x4348ad)))[_0x524284(0x153)](projectRuntimeUser)[_0x524284(0x143)](_0x5a953e=>_0x5a953e!==null),{page:_0x468de6,pageSize:_0x57c74a}=readRuntimePagination(_0x3e4f4c),_0x5d15f8=paginateRuntimeItems(_0x1ee4c8,_0x468de6,_0x57c74a);return{'ok':!![],'data':{'appCode':_0x3e4f4c['appCode'],'scope':_0x524284(0x158),'keyword':_0x4a6833,'users':_0x5d15f8[_0x524284(0x14d)],'paging':_0x5d15f8[_0x524284(0x14c)]},'message':_0x524284(0x140)+_0x1ee4c8[_0x524284(0x154)]+_0x524284(0x155)+_0x4a6833+'\x22'};}};
|