@lovrabet/rabetbase-cli 2.5.3-beta.3 → 2.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api/api-doc.js +1 -1
- package/lib/api/api-group.js +1 -1
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.js +1 -1
- package/lib/api/generate-sdk-config-file.js +1 -1
- package/lib/api/legacy-api-file.js +1 -1
- package/lib/api/model-registry-file.js +1 -1
- package/lib/api/model-registry-scaffold.js +1 -1
- package/lib/api/model-source.js +1 -1
- package/lib/auth/auth-server-ui.js +1 -1
- package/lib/auth/auth-server.js +1 -1
- package/lib/auth/constant.js +1 -1
- package/lib/auth/get-cookie.js +1 -1
- package/lib/auth/get-session-user.js +1 -1
- package/lib/auth/is-session-valid.js +1 -1
- package/lib/auth/login-success-html.js +1 -1
- package/lib/auth/logout.js +1 -1
- package/lib/cli-flags.js +1 -1
- package/lib/cli.js +1 -1
- package/lib/commands/api/generate.js +1 -1
- package/lib/commands/api/index.js +1 -1
- package/lib/commands/api/list.js +1 -1
- package/lib/commands/api/pull.js +1 -1
- package/lib/commands/api/shared.js +1 -1
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/members-list.js +1 -1
- package/lib/commands/app/remote-directory.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/delete.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/app-config/list.js +1 -1
- package/lib/commands/app-config/set.js +1 -1
- package/lib/commands/app-config/shared.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/bff/create.js +1 -1
- package/lib/commands/bff/delete.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/bff/list.js +1 -1
- package/lib/commands/bff/logs.js +1 -1
- package/lib/commands/bff/pull.js +1 -1
- package/lib/commands/bff/push.js +1 -1
- package/lib/commands/bff/status.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/cli-update.js +1 -1
- package/lib/commands/codegen/index.js +1 -1
- package/lib/commands/codegen/sdk.js +1 -1
- package/lib/commands/codegen/sql.js +1 -1
- package/lib/commands/common/app-registry.js +1 -1
- package/lib/commands/common/app-selector.js +1 -1
- package/lib/commands/common/async-task.js +1 -1
- package/lib/commands/common/dry-run.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/common/validate.js +1 -1
- package/lib/commands/config/delete.js +1 -1
- package/lib/commands/config/get.js +1 -1
- package/lib/commands/config/index.js +1 -1
- package/lib/commands/config/init.js +1 -1
- package/lib/commands/config/list.js +1 -1
- package/lib/commands/config/set.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/dataset/batch-design.js +1 -1
- package/lib/commands/dataset/business-group-update.js +1 -1
- package/lib/commands/dataset/business-groups.js +1 -1
- package/lib/commands/dataset/capability.js +1 -1
- package/lib/commands/dataset/cross-relation-create.js +1 -1
- package/lib/commands/dataset/cross-relation-delete.js +1 -1
- package/lib/commands/dataset/cross-relation-list.js +1 -1
- package/lib/commands/dataset/cross-relation-shared.js +1 -1
- package/lib/commands/dataset/cross-relation-update.js +1 -1
- package/lib/commands/dataset/delete.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/extend-update.js +1 -1
- package/lib/commands/dataset/field-restore.js +1 -1
- package/lib/commands/dataset/field-update.js +1 -1
- package/lib/commands/dataset/generate.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/dataset/relation-audit.js +1 -1
- package/lib/commands/dataset/relation-create.js +1 -1
- package/lib/commands/dataset/relation-delete.js +1 -1
- package/lib/commands/dataset/relation-shared.js +1 -1
- package/lib/commands/dataset/relation-update.js +1 -1
- package/lib/commands/dataset/relations.js +1 -1
- package/lib/commands/dataset/rename.js +1 -1
- package/lib/commands/dataset/restore.js +1 -1
- package/lib/commands/dataset/user-deleted-field-list.js +1 -1
- package/lib/commands/db/analysis-batching.js +1 -1
- package/lib/commands/db/analyze-batch-plan.js +1 -1
- package/lib/commands/db/analyze-cancel.js +1 -1
- package/lib/commands/db/analyze-start.js +1 -1
- package/lib/commands/db/analyze-status.js +1 -1
- package/lib/commands/db/create.js +1 -1
- package/lib/commands/db/delete.js +1 -1
- package/lib/commands/db/detail.js +1 -1
- package/lib/commands/db/diff-refresh-start.js +1 -1
- package/lib/commands/db/diff-refresh-status.js +1 -1
- package/lib/commands/db/diff.js +1 -1
- package/lib/commands/db/index.js +1 -1
- package/lib/commands/db/list.js +1 -1
- package/lib/commands/db/shared.js +1 -1
- package/lib/commands/db/table-diff-shared.js +1 -1
- package/lib/commands/db/tables.js +1 -1
- package/lib/commands/db/test.js +1 -1
- package/lib/commands/db/update.js +1 -1
- package/lib/commands/deployment/index.js +1 -1
- package/lib/commands/deployment/sync-all.js +1 -1
- package/lib/commands/deployment/sync-jobs.js +1 -1
- package/lib/commands/deployment/sync-status.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/flow/create.js +1 -1
- package/lib/commands/flow/detail.js +1 -1
- package/lib/commands/flow/index.js +1 -1
- package/lib/commands/flow/list.js +1 -1
- package/lib/commands/flow/publish.js +1 -1
- package/lib/commands/flow/runtime-resources-shared.js +1 -1
- package/lib/commands/flow/runtime-role-list.js +1 -1
- package/lib/commands/flow/runtime-role-user-list.js +1 -1
- package/lib/commands/flow/runtime-user-search.js +1 -1
- package/lib/commands/flow/shared.js +1 -1
- package/lib/commands/flow/update.js +1 -1
- package/lib/commands/flow/validate.js +1 -1
- package/lib/commands/instant-api-policy/current.js +1 -1
- package/lib/commands/instant-api-policy/index.js +1 -1
- package/lib/commands/instant-api-policy/init.js +1 -1
- package/lib/commands/instant-api-policy/publish.js +1 -1
- package/lib/commands/instant-api-policy/pull.js +1 -1
- package/lib/commands/instant-api-policy/revision.js +1 -1
- package/lib/commands/instant-api-policy/revisions.js +1 -1
- package/lib/commands/instant-api-policy/rollback.js +1 -1
- package/lib/commands/instant-api-policy/shared.js +1 -1
- package/lib/commands/instant-api-policy/validate.js +1 -1
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/nudge.js +1 -1
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/issue/shared.js +1 -1
- package/lib/commands/kb/create.js +1 -1
- package/lib/commands/kb/delete.js +1 -1
- package/lib/commands/kb/detail.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/kb/list.js +1 -1
- package/lib/commands/kb/search.js +1 -1
- package/lib/commands/kb/shared.js +1 -1
- package/lib/commands/kb/update.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/asset-update.js +1 -1
- package/lib/commands/menu/delete.js +1 -1
- package/lib/commands/menu/external-link-create.js +1 -1
- package/lib/commands/menu/external-link-update.js +1 -1
- package/lib/commands/menu/group-create.js +1 -1
- package/lib/commands/menu/group-update.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/list.js +1 -1
- package/lib/commands/menu/move.js +1 -1
- package/lib/commands/menu/regroup-start.js +1 -1
- package/lib/commands/menu/rename.js +1 -1
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/delete-plan.js +1 -1
- package/lib/commands/menu/shared/facts.js +1 -1
- package/lib/commands/menu/shared/index.js +1 -1
- package/lib/commands/menu/shared/inquirer.js +1 -1
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.js +1 -1
- package/lib/commands/menu/shared/mutations.js +1 -1
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/sync-core.js +1 -1
- package/lib/commands/menu/shared/update-core.js +1 -1
- package/lib/commands/menu/shared/valid-url.js +1 -1
- package/lib/commands/menu/sync.js +1 -1
- package/lib/commands/menu/visibility-update.js +1 -1
- package/lib/commands/notification/config-create.js +1 -1
- package/lib/commands/notification/config-delete.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/config-update.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/notification/shared.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/page/create.js +1 -1
- package/lib/commands/page/custom/detail.js +1 -1
- package/lib/commands/page/custom/list.js +1 -1
- package/lib/commands/page/custom/publish.js +1 -1
- package/lib/commands/page/custom/shared.js +1 -1
- package/lib/commands/page/custom/syntax.js +1 -1
- package/lib/commands/page/custom/update.js +1 -1
- package/lib/commands/page/data-list-status.js +1 -1
- package/lib/commands/page/generate-start.js +1 -1
- package/lib/commands/page/generate-status.js +1 -1
- package/lib/commands/page/index.js +1 -1
- package/lib/commands/page/pull.js +1 -1
- package/lib/commands/page/push.js +1 -1
- package/lib/commands/page/relation-audit.js +1 -1
- package/lib/commands/page/restore.js +1 -1
- package/lib/commands/page/shared.js +1 -1
- package/lib/commands/page/sync.js +1 -1
- package/lib/commands/project/api-architecture-upgrade.js +1 -1
- package/lib/commands/project/create/enhanced-guided-create.js +1 -1
- package/lib/commands/project/create/format-elapsed.js +1 -1
- package/lib/commands/project/create/main.js +1 -1
- package/lib/commands/project/create/materialize-project-template.js +1 -1
- package/lib/commands/project/create/project-name.js +1 -1
- package/lib/commands/project/create/project-template-archive.js +1 -1
- package/lib/commands/project/create/project-template-path.js +1 -1
- package/lib/commands/project/create/use-copy-project-template.js +1 -1
- package/lib/commands/project/create/use-format-code.js +1 -1
- package/lib/commands/project/create/use-install-dependencies.js +1 -1
- package/lib/commands/project/domain-routing-sync.js +1 -1
- package/lib/commands/project/index.js +1 -1
- package/lib/commands/project/upgrade.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/role/user-resolve.js +1 -1
- package/lib/commands/rule/get.js +1 -1
- package/lib/commands/rule/index.js +1 -1
- package/lib/commands/rule/list.js +1 -1
- package/lib/commands/rule/set.js +1 -1
- package/lib/commands/rule/shared.js +1 -1
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/sql/create.js +1 -1
- package/lib/commands/sql/delete.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/sql/list.js +1 -1
- package/lib/commands/sql/pull.js +1 -1
- package/lib/commands/sql/push.js +1 -1
- package/lib/commands/sql/shared.js +1 -1
- package/lib/commands/sql/status.js +1 -1
- package/lib/commands/sql/validate.js +1 -1
- package/lib/commands/task/index.js +1 -1
- package/lib/commands/task/status.js +1 -1
- package/lib/commands/tenant/index.js +1 -1
- package/lib/commands/tenant/members-list.js +1 -1
- package/lib/commands/tenant/shared.js +1 -1
- package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
- package/lib/commands/user-account/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.d.ts +5 -3
- package/lib/constant/cdn.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/paths.js +1 -1
- package/lib/constant/region.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/routing-profile.js +1 -1
- package/lib/context/app-resolver.js +1 -1
- package/lib/context/auth-resolver.js +1 -1
- package/lib/context/config-loader.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/bff/config.js +1 -1
- package/lib/core/bff/file-system.js +1 -1
- package/lib/core/bff/hash.js +1 -1
- package/lib/core/bff/hook-directory.js +1 -1
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/cross-db-relation.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/flow-config.js +1 -1
- package/lib/core/instant-api-policy/config.js +1 -1
- package/lib/core/kb-search-client.js +1 -1
- package/lib/core/page/file-system.js +1 -1
- package/lib/core/page/hash.js +1 -1
- package/lib/core/page/lock.js +1 -1
- package/lib/core/page/lr-smart-jsx.js +1 -1
- package/lib/core/sql-index-auditor.js +1 -1
- package/lib/core/sql-sync/config.js +1 -1
- package/lib/core/sql-sync/file-system.js +1 -1
- package/lib/core/sql-sync/hash.js +1 -1
- package/lib/core/sql-sync/lock.js +1 -1
- package/lib/core/sql-sync/utils.js +1 -1
- package/lib/core/sql-validator.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/error-output.js +1 -1
- package/lib/framework/explicit-yes.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-alias.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/supported-flags.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/generated/official-routing.js +1 -1
- package/lib/generated/routing-contract.js +1 -1
- package/lib/help.js +1 -1
- package/lib/postinstall.js +1 -1
- package/lib/runtime/confirmation.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/skills/builtin-skill.js +1 -1
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/skill-presence.js +1 -1
- package/lib/telemetry/cli-command-trace.js +1 -1
- package/lib/telemetry/cli-help-trace.js +1 -1
- package/lib/telemetry/ensure-cli-otel-config.js +1 -1
- package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
- package/lib/telemetry/send-cli-trace-log.js +1 -1
- package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
- package/lib/utils/ai_config.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cdn-config.js +1 -1
- package/lib/utils/check-sdk-version.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.d.ts +7 -0
- 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 +3 -1
- package/skills/rabetbase/SKILL.md +7 -5
- package/skills/rabetbase/guides/backend-function.md +5 -1
- package/skills/rabetbase/guides/bff-creation-workflow.md +3 -1
- package/skills/rabetbase/guides/cross-database-bff.md +70 -0
- package/skills/rabetbase/guides/data-api-guidelines.md +35 -33
- package/skills/rabetbase/guides/sql-creation-workflow.md +2 -0
- package/skills/rabetbase/references/rabetbase-dataset-cross-relations.md +5 -1
- package/skills/rabetbase.manifest.json +4 -3
- package/templates/README.md +41 -13
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a108_0x34b52d=a108_0x41a8;(function(_0x799d3b,_0x437e65){const _0x3dc486=a108_0x41a8,_0x176f3c=_0x799d3b();while(!![]){try{const _0x2ed795=parseInt(_0x3dc486(0x160))/0x1*(parseInt(_0x3dc486(0x164))/0x2)+parseInt(_0x3dc486(0x177))/0x3+-parseInt(_0x3dc486(0x163))/0x4*(-parseInt(_0x3dc486(0x173))/0x5)+-parseInt(_0x3dc486(0x16b))/0x6+parseInt(_0x3dc486(0x172))/0x7+parseInt(_0x3dc486(0x183))/0x8+-parseInt(_0x3dc486(0x170))/0x9*(parseInt(_0x3dc486(0x168))/0xa);if(_0x2ed795===_0x437e65)break;else _0x176f3c['push'](_0x176f3c['shift']());}catch(_0x5a9d17){_0x176f3c['push'](_0x176f3c['shift']());}}}(a108_0x1f15,0x9639c));import{getDbLinkInfo,updateDbLink}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG,SKIP_CONNECTION_TEST_FLAG}from'../../commands/common/flags.js';function a108_0x1f15(){const _0x215164=['2450064HkqCiB','dbdesc','str','trim','bool','504iSHxjt','skip-connection-test','5738635AdGYES','10hcxiRg','num','username','******','2967462tUAVpy','validation','New\x20username','dburl','--password\x20must\x20contain\x20the\x20real\x20database\x20password,\x20not\x20a\x20masked\x20value.','write','New\x20connection\x20parameter\x20string','New\x20description','dbparam','/smartapi/dblink/update','Update\x20a\x20database\x20connection\x20by\x20merging\x20supplied\x20fields\x20into\x20the\x20current\x20server\x20record.\x20A\x20masked\x20server\x20password\x20requires\x20explicit\x20--password','has','2934064HyAbTP','New\x20database\x20name','password','POST','19IeHTkE','dbParam','Current\x20or\x20replacement\x20password.\x20Required\x20when\x20the\x20stored\x20password\x20is\x20masked','583316PEQZyz','3646RWBHOx','Preview\x20the\x20merged\x20database\x20connection\x20update;\x20password\x20redacted','dbUrl','string','263990uWIEso','dbDesc','update'];a108_0x1f15=function(){return _0x215164;};return a108_0x1f15();}import{assertDbLinkConnectionPreflight,sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';function a108_0x41a8(_0x28c6f2,_0x1b6bd9){_0x28c6f2=_0x28c6f2-0x160;const _0x1f1566=a108_0x1f15();let _0x41a861=_0x1f1566[_0x28c6f2];return _0x41a861;}import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';const MASKED_PASSWORD_VALUES=new Set([a108_0x34b52d(0x176),'[redacted]']);function mergeDbLinkUpdate(_0x5b93df,_0x298909){const _0x5664a8=a108_0x34b52d,_0x558e35={..._0x5b93df},_0x4f47b1=_0x298909[_0x5664a8(0x16d)](_0x5664a8(0x185));if(_0x4f47b1&&MASKED_PASSWORD_VALUES['has'](_0x4f47b1))throw CliErrors[_0x5664a8(0x178)](_0x5664a8(0x17b));if(!_0x4f47b1&&MASKED_PASSWORD_VALUES[_0x5664a8(0x182)](String(_0x5b93df[_0x5664a8(0x185)]??'')))throw CliErrors[_0x5664a8(0x178)]('The\x20server\x20returned\x20a\x20masked\x20database\x20password.\x20Pass\x20the\x20current\x20or\x20replacement\x20password\x20explicitly\x20with\x20--password\x20to\x20update\x20this\x20connection\x20safely.');const _0x26673f=_0x298909['str']('dbname');if(_0x26673f)_0x558e35['dbName']=_0x26673f;const _0x6efa4=_0x298909[_0x5664a8(0x16d)](_0x5664a8(0x17a));if(_0x6efa4)_0x558e35[_0x5664a8(0x166)]=_0x6efa4[_0x5664a8(0x16e)]();const _0x130d81=_0x298909['str'](_0x5664a8(0x175));if(_0x130d81)_0x558e35[_0x5664a8(0x175)]=_0x130d81;if(_0x4f47b1)_0x558e35['password']=_0x4f47b1;const _0x2750cc=_0x298909[_0x5664a8(0x16d)](_0x5664a8(0x17f));if(_0x2750cc)_0x558e35[_0x5664a8(0x161)]=_0x2750cc;const _0x383cd2=_0x298909['str'](_0x5664a8(0x16c));if(_0x383cd2)_0x558e35[_0x5664a8(0x169)]=_0x383cd2;return _0x558e35;}export const dbUpdate={'service':'db','command':a108_0x34b52d(0x16a),'description':a108_0x34b52d(0x181),'risk':a108_0x34b52d(0x17c),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':'dbname','type':a108_0x34b52d(0x167),'description':a108_0x34b52d(0x184)},{'name':a108_0x34b52d(0x17a),'type':a108_0x34b52d(0x167),'description':'New\x20host:port'},{'name':a108_0x34b52d(0x175),'type':'string','description':a108_0x34b52d(0x179)},{'name':a108_0x34b52d(0x185),'type':a108_0x34b52d(0x167),'description':a108_0x34b52d(0x162)},{'name':a108_0x34b52d(0x17f),'type':a108_0x34b52d(0x167),'description':a108_0x34b52d(0x17d)},{'name':a108_0x34b52d(0x16c),'type':a108_0x34b52d(0x167),'description':a108_0x34b52d(0x17e)},SKIP_CONNECTION_TEST_FLAG],async 'validate'(_0x32aa79){const _0x47dda1=a108_0x34b52d,_0x475196=_0x32aa79[_0x47dda1(0x16d)](_0x47dda1(0x17a));if(_0x475196&&!validateDbUrl(_0x475196[_0x47dda1(0x16e)]()))throw CliErrors[_0x47dda1(0x178)]('Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22'+_0x475196+'\x22');},async 'dryRun'(_0x122d3d){const _0x153b59=a108_0x34b52d,_0x4e4e40=_0x122d3d['num']('id'),_0xba3673=await getDbLinkInfo(_0x4e4e40),_0xbb58cb=mergeDbLinkUpdate(_0xba3673,_0x122d3d),_0x53998f=sanitizeDbLinkForOutput(_0xbb58cb);return{'method':_0x153b59(0x186),'url':_0x153b59(0x180),'body':_0x53998f,'description':_0x153b59(0x165),'connectionPreflight':{'enabled':!_0x122d3d[_0x153b59(0x16f)](_0x153b59(0x171)),'executed':![]}};},async 'execute'(_0x3ad991){const _0x351083=a108_0x34b52d,_0x3897a3=_0x3ad991[_0x351083(0x174)]('id'),_0x755467=await getDbLinkInfo(_0x3897a3),_0x5c925c=mergeDbLinkUpdate(_0x755467,_0x3ad991);!_0x3ad991[_0x351083(0x16f)](_0x351083(0x171))&&await assertDbLinkConnectionPreflight(_0x5c925c);const {id:_0x5ad05d,entity:_0x575d59}=normalizeEntityWithIdResponse(await updateDbLink(_0x5c925c));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x575d59),'message':'Updated\x20db\x20link\x20'+(_0x5ad05d??_0x3897a3)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x455883,_0x57da0d){const _0x14bb94=a109_0x7f2c,_0x55dc30=_0x455883();while(!![]){try{const _0x3fc9d4=parseInt(_0x14bb94(0x100))/0x1+-parseInt(_0x14bb94(0x105))/0x2+parseInt(_0x14bb94(0xff))/0x3*(parseInt(_0x14bb94(0x101))/0x4)+parseInt(_0x14bb94(0x104))/0x5+-parseInt(_0x14bb94(0xfe))/0x6+-parseInt(_0x14bb94(0xfd))/0x7+-parseInt(_0x14bb94(0x102))/0x8*(-parseInt(_0x14bb94(0x103))/0x9);if(_0x3fc9d4===_0x57da0d)break;else _0x55dc30['push'](_0x55dc30['shift']());}catch(_0x277dce){_0x55dc30['push'](_0x55dc30['shift']());}}}(a109_0x341f,0xe40ce));import{deploymentSyncAll}from'../../commands/deployment/sync-all.js';import{deploymentSyncStatus}from'../../commands/deployment/sync-status.js';import{deploymentSyncJobs}from'../../commands/deployment/sync-jobs.js';export const deploymentDefinitions=[deploymentSyncAll,deploymentSyncStatus,deploymentSyncJobs];function a109_0x7f2c(_0x1c0566,_0x270c55){_0x1c0566=_0x1c0566-0xfd;const _0x341fa0=a109_0x341f();let _0x7f2c3c=_0x341fa0[_0x1c0566];return _0x7f2c3c;}function a109_0x341f(){const _0x33e861=['4300218JgHQYh','3323500QvaaHc','1577046fSeePJ','7738073DMdmjS','7747866NtqKxc','3MzapbB','768782pPcqKE','3098708eATGxi','32rczkzd'];a109_0x341f=function(){return _0x33e861;};return a109_0x341f();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a110_0x388e34=a110_0x52b7;(function(_0x1f4918,_0x31c7e2){const _0x5eaddc=a110_0x52b7,_0x5a3854=_0x1f4918();while(!![]){try{const _0x1eac5f=parseInt(_0x5eaddc(0x1a0))/0x1+-parseInt(_0x5eaddc(0x1b4))/0x2+parseInt(_0x5eaddc(0x1a8))/0x3+parseInt(_0x5eaddc(0x1af))/0x4*(-parseInt(_0x5eaddc(0x19f))/0x5)+parseInt(_0x5eaddc(0x1a9))/0x6*(-parseInt(_0x5eaddc(0x1a2))/0x7)+parseInt(_0x5eaddc(0x195))/0x8*(parseInt(_0x5eaddc(0x1ae))/0x9)+-parseInt(_0x5eaddc(0x1a5))/0xa*(-parseInt(_0x5eaddc(0x1b9))/0xb);if(_0x1eac5f===_0x31c7e2)break;else _0x5a3854['push'](_0x5a3854['shift']());}catch(_0x446536){_0x5a3854['push'](_0x5a3854['shift']());}}}(a110_0x4f3b,0x3a1d4));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_0x388e34(0x1a1),CONFIRM_FLAG={'name':a110_0x388e34(0x198),'type':'boolean','description':a110_0x388e34(0x1ad)};export const deploymentSyncAll={'service':a110_0x388e34(0x19c),'command':a110_0x388e34(0x1aa),'description':a110_0x388e34(0x19b),'risk':a110_0x388e34(0x19a),'strictFlags':!![],'structuredErrors':!![],'confirmationDescription':a110_0x388e34(0x1b1),'flags':[CONFIRM_FLAG,APPCODE_FLAG_OPTIONAL],async 'dryRun'(_0x557220){const _0x46b2da=a110_0x388e34;return asDryRunResult(buildPreview(_0x557220['appCode']),{'method':'POST','url':SUBMIT_PATH,'description':_0x46b2da(0x19d)});},async 'execute'(_0x10454d){const _0x3691c5=a110_0x388e34;if(!_0x10454d[_0x3691c5(0x196)](_0x3691c5(0x198)))throw CliErrors[_0x3691c5(0x1a7)](_0x3691c5(0x1a4),_0x3691c5(0x194));try{const _0x5f0b90=await submitDeploymentMetadataSyncAll({'appCode':_0x10454d[_0x3691c5(0x1ac)]});if(_0x5f0b90[_0x3691c5(0x1b0)]===_0x3691c5(0x1a3))return{'ok':!![],'data':{'operation':_0x3691c5(0x1b5),'appCode':_0x10454d[_0x3691c5(0x1ac)],'submitted':![],'outcome':'not_needed'},'message':_0x3691c5(0x1b7)};return{'ok':!![],'data':{'operation':_0x3691c5(0x1b5),'appCode':_0x10454d['appCode'],'submitted':!![],'outcome':_0x3691c5(0x193),'jobId':_0x5f0b90[_0x3691c5(0x1a6)][_0x3691c5(0x1bb)],'status':_0x5f0b90[_0x3691c5(0x1a6)][_0x3691c5(0x1ba)]},'message':_0x3691c5(0x1b8)+_0x5f0b90[_0x3691c5(0x1a6)]['jobId']+'.'};}catch(_0x322e0e){if(!isPlatformTransportFailure(_0x322e0e))throw _0x322e0e;const _0x21c102=new CliError(_0x3691c5(0x1ab),0x2,_0x3691c5(0x197),_0x3691c5(0x1b3));Object[_0x3691c5(0x19e)](_0x21c102,'data',{'enumerable':!![],'value':{'operation':_0x3691c5(0x1b5),'appCode':_0x10454d[_0x3691c5(0x1ac)],'submitted':null,'outcome':_0x3691c5(0x1b6)}});throw _0x21c102;}}};function a110_0x52b7(_0x49ed91,_0x29e184){_0x49ed91=_0x49ed91-0x193;const _0x4f3b73=a110_0x4f3b();let _0x52b73d=_0x4f3b73[_0x49ed91];return _0x52b73d;}function a110_0x4f3b(){const _0x9de70d=['not_submitted','write','Backfill\x20or\x20recover\x20all\x20server-supported\x20application\x20metadata','deployment','Would\x20submit\x20an\x20administrative\x20deployment\x20metadata\x20backfill\x20or\x20recovery\x20job.','defineProperty','5ZznKsv','67608QqEIqT','/smartapi/data-sync/submit','23996LMfcXS','not_needed','--confirm\x20is\x20required\x20to\x20synchronize\x20all\x20application\x20metadata.','10RJYgBk','job','validation','284544JznDEG','150xEUdwK','sync-all','deployment_sync_submit_outcome_unknown','appCode','Confirm\x20the\x20administrative\x20backfill\x20or\x20recovery\x20synchronization','428877qKUhwy','1645468twhsdS','outcome','Submit\x20an\x20administrative\x20metadata\x20backfill\x20or\x20recovery\x20synchronization.','all_server_supported_metadata','List\x20recent\x20deployment\x20sync\x20jobs\x20before\x20deciding\x20whether\x20to\x20submit\x20again.','900434iKQEkr','application_deployment_sync','unknown','No\x20deployment\x20synchronization\x20was\x20needed\x20for\x20this\x20app.','Submitted\x20deployment\x20synchronization\x20job\x20','10727321DgJETk','status','jobId','submitted','Run\x20with\x20--dry-run\x20first,\x20then\x20add\x20--confirm.','8fFpzhi','bool','Deployment\x20sync\x20submission\x20response\x20was\x20unavailable;\x20job\x20creation\x20is\x20unknown.','confirm'];a110_0x4f3b=function(){return _0x9de70d;};return a110_0x4f3b();}function buildPreview(_0x28cbca){const _0x549b65=a110_0x388e34;return{'operation':'application_deployment_sync','selector':{'appCode':_0x28cbca,'scope':_0x549b65(0x1b2)},'before':null,'after':null,'dryRun':!![],'backend':{'submitted':![],'outcome':_0x549b65(0x199)},'warnings':[]};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a111_0x2b39d8=a111_0x331d;(function(_0x12ce23,_0x54c053){const _0x57d3df=a111_0x331d,_0x3a042b=_0x12ce23();while(!![]){try{const _0x313f69=parseInt(_0x57d3df(0xef))/0x1+-parseInt(_0x57d3df(0xf7))/0x2+-parseInt(_0x57d3df(0xf3))/0x3*(parseInt(_0x57d3df(0xf1))/0x4)+-parseInt(_0x57d3df(0xe7))/0x5+-parseInt(_0x57d3df(0xf0))/0x6*(parseInt(_0x57d3df(0xe3))/0x7)+-parseInt(_0x57d3df(0xeb))/0x8*(-parseInt(_0x57d3df(0xf8))/0x9)+parseInt(_0x57d3df(0xe6))/0xa*(parseInt(_0x57d3df(0xf4))/0xb);if(_0x313f69===_0x54c053)break;else _0x3a042b['push'](_0x3a042b['shift']());}catch(_0x21bc26){_0x3a042b['push'](_0x3a042b['shift']());}}}(a111_0x58c3,0x97c73));function a111_0x58c3(){const _0x430443=['14565260ltiRsx','5700160KnxfpI','--page-size\x20must\x20be\x20an\x20integer\x20from\x201\x20to\x20100.','status','Optional\x20server-defined\x20job\x20status\x20filter','4871080SKRLtC','string','--current-page\x20must\x20be\x20a\x20positive\x20integer.','length','418452EYGLkj','103674ngWmiT','14132oaEfAq','Items\x20per\x20page\x20(maximum\x20100)','789IQpZUg','22VvkJxT','num','isSafeInteger','2230766kYkUnQ','18kmkBjm','deployment','trim','page-size','\x20deployment\x20synchronization\x20job(s).','Found\x20','str','appCode','301qVmrSk','number','validation'];a111_0x58c3=function(){return _0x430443;};return a111_0x58c3();}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{listDeploymentMetadataSyncJobs}from'../../core/api-client.js';function a111_0x331d(_0x47997c,_0x33b437){_0x47997c=_0x47997c-0xe3;const _0x58c34e=a111_0x58c3();let _0x331d0c=_0x58c34e[_0x47997c];return _0x331d0c;}import{CliErrors}from'../../errors.js';export const deploymentSyncJobs={'service':a111_0x2b39d8(0xf9),'command':'sync-jobs','description':'List\x20application\x20deployment\x20synchronization\x20jobs','risk':'read','strictFlags':!![],'structuredErrors':!![],'flags':[{'name':'current-page','type':a111_0x2b39d8(0xe4),'default':0x1,'description':'Page\x20number'},{'name':a111_0x2b39d8(0xfb),'type':a111_0x2b39d8(0xe4),'default':0xa,'description':a111_0x2b39d8(0xf2)},{'name':a111_0x2b39d8(0xe9),'type':a111_0x2b39d8(0xec),'description':a111_0x2b39d8(0xea)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0xaf1944){const _0x7b57a=a111_0x2b39d8;readPaging(_0xaf1944[_0x7b57a(0xf5)]('current-page',0x1),_0xaf1944[_0x7b57a(0xf5)](_0x7b57a(0xfb),0xa));},async 'execute'(_0x272004){const _0x204e96=a111_0x2b39d8,{currentPage:_0x59d9b8,pageSize:_0x30f320}=readPaging(_0x272004[_0x204e96(0xf5)]('current-page',0x1),_0x272004[_0x204e96(0xf5)](_0x204e96(0xfb),0xa)),_0x429db0=_0x272004[_0x204e96(0xfe)](_0x204e96(0xe9))[_0x204e96(0xfa)](),_0x39df9c=await listDeploymentMetadataSyncJobs({'appCode':_0x272004[_0x204e96(0xff)],'currentPage':_0x59d9b8,'pageSize':_0x30f320,..._0x429db0?{'status':_0x429db0}:{}});return{'ok':!![],'data':{'appCode':_0x272004[_0x204e96(0xff)],..._0x39df9c},'message':_0x204e96(0xfd)+_0x39df9c['items'][_0x204e96(0xee)]+_0x204e96(0xfc)};}};function readPaging(_0x339f70,_0x25a33b){const _0x11fc04=a111_0x2b39d8;if(!Number[_0x11fc04(0xf6)](_0x339f70)||_0x339f70<0x1)throw CliErrors['validation'](_0x11fc04(0xed));if(!Number[_0x11fc04(0xf6)](_0x25a33b)||_0x25a33b<0x1||_0x25a33b>0x64)throw CliErrors[_0x11fc04(0xe5)](_0x11fc04(0xe8));return{'currentPage':_0x339f70,'pageSize':_0x25a33b};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a112_0x5a24(_0x379d11,_0x3db623){_0x379d11=_0x379d11-0x1a5;const _0x746517=a112_0x7465();let _0x5a240e=_0x746517[_0x379d11];return _0x5a240e;}const a112_0x9ba814=a112_0x5a24;(function(_0xe756b9,_0xed147e){const _0x343d5e=a112_0x5a24,_0x1424c2=_0xe756b9();while(!![]){try{const _0x264dc9=-parseInt(_0x343d5e(0x1c3))/0x1+parseInt(_0x343d5e(0x1c7))/0x2*(-parseInt(_0x343d5e(0x1b2))/0x3)+parseInt(_0x343d5e(0x1bc))/0x4*(parseInt(_0x343d5e(0x1be))/0x5)+parseInt(_0x343d5e(0x1c4))/0x6+parseInt(_0x343d5e(0x1b3))/0x7+parseInt(_0x343d5e(0x1c1))/0x8+-parseInt(_0x343d5e(0x1a7))/0x9;if(_0x264dc9===_0xed147e)break;else _0x1424c2['push'](_0x1424c2['shift']());}catch(_0x4cf242){_0x1424c2['push'](_0x1424c2['shift']());}}}(a112_0x7465,0xd4f25));import{getDeploymentMetadataSyncStatus}from'../../core/api-client.js';function a112_0x7465(){const _0x240740=['RUNNING','results','--job-id\x20must\x20be\x20a\x20positive\x20integer.','bizType','validation','2654336PkxNVT','num','5ChqFrw','Deployment\x20synchronization\x20job\x20ID','action','64488ggohbr','number','1390306pCPtXi','10035048KcGPJu','appCode','map','2eRhgEL','deployment','read','5471973YmXOmr','has','sync-status','\x20is\x20','PENDING','reduce','status','length','job-id','FAILED',';\x20terminal\x20state\x20is\x20unknown\x20to\x20this\x20CLI\x20version.','2002491WGpWRn','8357132YlgSHz','Deployment\x20synchronization\x20job\x20','SUCCESS','PARTIAL_SUCCESS'];a112_0x7465=function(){return _0x240740;};return a112_0x7465();}import{CliErrors}from'../../errors.js';const TERMINAL_STATUSES=new Set([a112_0x9ba814(0x1b5),a112_0x9ba814(0x1b6),a112_0x9ba814(0x1b0)]),ACTIVE_STATUSES=new Set([a112_0x9ba814(0x1ab),a112_0x9ba814(0x1b7)]);export const deploymentSyncStatus={'service':a112_0x9ba814(0x1a5),'command':a112_0x9ba814(0x1a9),'description':'Get\x20application\x20deployment\x20synchronization\x20job\x20status','risk':a112_0x9ba814(0x1a6),'requiresAppCode':!![],'strictFlags':!![],'structuredErrors':!![],'flags':[{'name':'job-id','type':a112_0x9ba814(0x1c2),'required':!![],'description':a112_0x9ba814(0x1bf)}],async 'validate'(_0xae87b8){const _0x1775d0=a112_0x9ba814;readJobId(_0xae87b8[_0x1775d0(0x1bd)](_0x1775d0(0x1af)));},async 'execute'(_0x95f627){const _0x492905=a112_0x9ba814,_0x2d3f1e=readJobId(_0x95f627[_0x492905(0x1bd)](_0x492905(0x1af))),_0x3ab24b=await getDeploymentMetadataSyncStatus({'jobId':_0x2d3f1e,'appCode':_0x95f627[_0x492905(0x1c5)]}),_0x1a4ddd=TERMINAL_STATUSES['has'](_0x3ab24b['status'])?!![]:ACTIVE_STATUSES[_0x492905(0x1a8)](_0x3ab24b['status'])?![]:null,_0x23494f=countBy(_0x3ab24b['results']['map'](_0x5a6d59=>_0x5a6d59[_0x492905(0x1ba)])),_0xce7f80=countBy(_0x3ab24b[_0x492905(0x1b8)][_0x492905(0x1c6)](_0x39ac88=>_0x39ac88['action'])),_0x4dc4ef=_0x1a4ddd===null?['Preserved\x20server-defined\x20status\x20'+_0x3ab24b[_0x492905(0x1ad)]+_0x492905(0x1b1)]:[];return{'ok':!![],'data':{'job':_0x3ab24b,'isTerminal':_0x1a4ddd,'summary':{'total':_0x3ab24b[_0x492905(0x1b8)][_0x492905(0x1ae)],'failed':_0x3ab24b[_0x492905(0x1b8)]['filter'](_0x297807=>_0x297807[_0x492905(0x1c0)]===_0x492905(0x1b0))['length'],'byBizType':_0x23494f,'byAction':_0xce7f80},'warnings':_0x4dc4ef},'message':_0x492905(0x1b4)+_0x2d3f1e+_0x492905(0x1aa)+_0x3ab24b[_0x492905(0x1ad)]+'.'};}};function readJobId(_0x5cd52b){const _0x480fb2=a112_0x9ba814;if(!Number['isSafeInteger'](_0x5cd52b)||_0x5cd52b<=0x0)throw CliErrors[_0x480fb2(0x1bb)](_0x480fb2(0x1b9));return _0x5cd52b;}function countBy(_0x4acb0a){const _0xa3eaae=a112_0x9ba814;return _0x4acb0a[_0xa3eaae(0x1ac)]((_0x3c29b9,_0x131c24)=>{return _0x3c29b9[_0x131c24]=(_0x3c29b9[_0x131c24]??0x0)+0x1,_0x3c29b9;},{});}
|
package/lib/commands/doctor.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a113_0x423171=a113_0x20c4;(function(_0x3d71b4,_0x24b8ba){const _0x14a4d4=a113_0x20c4,_0x111cf4=_0x3d71b4();while(!![]){try{const _0xa1f823=parseInt(_0x14a4d4(0x241))/0x1+parseInt(_0x14a4d4(0x1f2))/0x2+parseInt(_0x14a4d4(0x1ff))/0x3+-parseInt(_0x14a4d4(0x208))/0x4*(parseInt(_0x14a4d4(0x230))/0x5)+-parseInt(_0x14a4d4(0x228))/0x6+-parseInt(_0x14a4d4(0x233))/0x7*(parseInt(_0x14a4d4(0x1de))/0x8)+-parseInt(_0x14a4d4(0x24b))/0x9*(-parseInt(_0x14a4d4(0x258))/0xa);if(_0xa1f823===_0x24b8ba)break;else _0x111cf4['push'](_0x111cf4['shift']());}catch(_0x4db5be){_0x111cf4['push'](_0x111cf4['shift']());}}}(a113_0x380d,0xc4da1));function a113_0x20c4(_0x1e9cd0,_0x3cdb44){_0x1e9cd0=_0x1e9cd0-0x1d7;const _0x380d5d=a113_0x380d();let _0x20c4fa=_0x380d5d[_0x1e9cd0];return _0x20c4fa;}import a113_0x5e7fd9 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,getSkillDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';function a113_0x380d(){const _0x16d478=['\x20←\x20current','includes','accessKey','Repair\x20','49328QIdvTF','\x20app\x20\x22','\x20\x20Installed\x20Path:\x20\x20','gray','\x20\x20app\x20locale:\x20\x20\x20\x20\x20\x20','label','inherit','prototype','apps','present','global','green','\x20\x20API\x20Endpoints','\x20\x20Repair\x20global:\x20\x20\x20\x20','length','verbose','\x20\x20Apps','\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','bold','\x20\x20─','repeat','hasOwnProperty','\x20\x20Repair\x20project:\x20\x20','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','push','current','appcode','padEnd','check','filter','apiDir','Global','2706018VDvvil','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20config\x20delete\x20region','\x20\x20kbDomain:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Package\x20Version:\x20','toLowerCase','platform','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','135ZYSfUV','yellow','string','14056GkKvJg','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','message','entries','(not\x20set)','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','Unavailable\x20until\x20routing\x20configuration\x20is\x20repaired','defaultApp','\x20config','\x20\x20explicitAppName:\x20','✓\x20Valid','log','regionSource','format','659426TrpCPl','(default:\x20','Project','object','raw','state','null','\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','skillVersion','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','4230ToLpXN','\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','project','\x20\x20\x20\x20accessKey:\x20\x20','\x20\x20skillDomain:\x20\x20\x20\x20\x20','Not\x20checked\x20until\x20routing\x20configuration\x20is\x20repaired','join','Set\x20apps.','empty','(set,\x20length=','\x20\x20Country/Region\x20Configuration','\x20config\x20delete\x20routing','\x20config\x20delete\x20region\x20--global','4690fuTBXN','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','default','currentApp','\x20\x20Routing\x20Configuration','\x20config\x20delete\x20inherit','cookie','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','value','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','source','projectConfig','\x20\x20Built-in\x20Skill','explicitAppName','region','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','slice','packageVersion','5480nJTcET','(default)','(none)','\x20config\x20delete\x20inherit\x20--global','riskLevel','unknown','read','status','\x20+\x20','\x20\x20Skill\x20Version:\x20\x20\x20','⚠\x20Empty\x20(treated\x20as\x20{})','installedPath','✗\x20Expired','doctor','\x20\x20Repair\x20project:\x20\x20\x20','appCode','\x20doctor','reason','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','2184550vDPVUb','\x20(default)','call','pageSize','repairCommand','globalConfig','(not\x20found)','✗\x20Invalid','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','(missing)','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','routing','\x20config\x20delete\x20routing\x20--global','2980863fdfBmd','env','red','\x20\x20Merged\x20Config','.region\x20to\x20cn\x20or\x20id\x20in\x20'];a113_0x380d=function(){return _0x16d478;};return a113_0x380d();}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(_0x25c3e3){const _0x32d4b7=a113_0x20c4;return typeof _0x25c3e3===_0x32d4b7(0x232)?JSON['stringify'](_0x25c3e3):'<'+(_0x25c3e3===null?_0x32d4b7(0x247):typeof _0x25c3e3)+'>';}async function execute(_0x44bc63){const _0x4f370f=a113_0x20c4,_0x56b4a4=GIT_COMMIT!==_0x4f370f(0x1e3)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x4f370f(0x1dc)](0x0,0xa)+')':VERSION,_0x5f36de=buildConfigFromFlags({}),_0x26c32b=getCookie();let _0x24c8b6;try{await initGlobalEnvironment(_0x5f36de);}catch(_0x59822d){_0x24c8b6=_0x59822d instanceof Error?_0x59822d:new Error(String(_0x59822d));}console[_0x4f370f(0x23e)](),console[_0x4f370f(0x23e)](a113_0x5e7fd9[_0x4f370f(0x21a)](CLI_BIN_NAME+_0x4f370f(0x1ee))),console[_0x4f370f(0x23e)](a113_0x5e7fd9['gray']('─'[_0x4f370f(0x21c)](0x32))),console[_0x4f370f(0x23e)](_0x4f370f(0x25f)+_0x56b4a4),console['log']('\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+process['version']),console[_0x4f370f(0x23e)](_0x4f370f(0x1d9)+process[_0x4f370f(0x22e)]+'\x20'+process['arch']);const _0x2585ab=inspectBuiltinSkill();console[_0x4f370f(0x23e)](),console[_0x4f370f(0x23e)](a113_0x5e7fd9['bold'](_0x4f370f(0x264))),console[_0x4f370f(0x23e)](a113_0x5e7fd9[_0x4f370f(0x20b)](_0x4f370f(0x21b)['repeat'](0x1e)));const _0x570351=_0x2585ab['state']===_0x4f370f(0x221)?a113_0x5e7fd9['green']('✓\x20'+_0x2585ab[_0x4f370f(0x246)]):a113_0x5e7fd9[_0x4f370f(0x201)]('✗\x20'+_0x2585ab[_0x4f370f(0x246)]);console['log']('\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x570351),console[_0x4f370f(0x23e)](_0x4f370f(0x22c)+_0x2585ab[_0x4f370f(0x1dd)]),console[_0x4f370f(0x23e)](_0x4f370f(0x1e7)+(_0x2585ab[_0x4f370f(0x249)]||a113_0x5e7fd9['gray']('(unknown)'))),console[_0x4f370f(0x23e)](_0x4f370f(0x20a)+(_0x2585ab[_0x4f370f(0x1e9)]||a113_0x5e7fd9[_0x4f370f(0x20b)](_0x4f370f(0x1f8))));if(_0x2585ab[_0x4f370f(0x1ef)])console[_0x4f370f(0x23e)]('\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x2585ab[_0x4f370f(0x1ef)]);_0x2585ab[_0x4f370f(0x246)]!==_0x4f370f(0x221)&&console[_0x4f370f(0x23e)](_0x4f370f(0x24c)+_0x2585ab[_0x4f370f(0x1f6)]);console[_0x4f370f(0x23e)](),console[_0x4f370f(0x23e)](a113_0x5e7fd9['bold']('\x20\x20Config\x20Files')),console['log'](a113_0x5e7fd9['gray'](_0x4f370f(0x21b)[_0x4f370f(0x21c)](0x1e)));const _0x15a6bc=getGlobalConfigPath(),_0x11872b=getProjectConfigPath();console[_0x4f370f(0x23e)]('\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x15a6bc||a113_0x5e7fd9[_0x4f370f(0x20b)]('(not\x20found)'))),console[_0x4f370f(0x23e)](_0x4f370f(0x229)+(_0x11872b||a113_0x5e7fd9[_0x4f370f(0x20b)](_0x4f370f(0x1f8)))),console['log'](),console['log'](a113_0x5e7fd9[_0x4f370f(0x21a)]('\x20\x20Config\x20JSON')),console[_0x4f370f(0x23e)](a113_0x5e7fd9[_0x4f370f(0x20b)](_0x4f370f(0x21b)[_0x4f370f(0x21c)](0x1e)));const _0x5da47b=(_0x37e6ad,_0x1c0389)=>{const _0x2bdd47=_0x4f370f;if(!_0x1c0389){console[_0x2bdd47(0x23e)]('\x20\x20'+_0x37e6ad[_0x2bdd47(0x223)](0x11)+'\x20'+a113_0x5e7fd9[_0x2bdd47(0x20b)]('(no\x20file)'));return;}const _0xd3fd2c=inspectCliConfigJsonFile(_0x1c0389);if(_0xd3fd2c[_0x2bdd47(0x1e5)]==='ok')console[_0x2bdd47(0x23e)]('\x20\x20'+_0x37e6ad[_0x2bdd47(0x223)](0x11)+'\x20'+a113_0x5e7fd9[_0x2bdd47(0x213)]('✓\x20Valid\x20JSON'));else{if(_0xd3fd2c['status']===_0x2bdd47(0x253))console['log']('\x20\x20'+_0x37e6ad['padEnd'](0x11)+'\x20'+a113_0x5e7fd9[_0x2bdd47(0x231)](_0x2bdd47(0x1e8)));else _0xd3fd2c[_0x2bdd47(0x1e5)]==='missing'?console[_0x2bdd47(0x23e)]('\x20\x20'+_0x37e6ad['padEnd'](0x11)+'\x20'+a113_0x5e7fd9[_0x2bdd47(0x20b)](_0x2bdd47(0x1fb))):(console[_0x2bdd47(0x23e)]('\x20\x20'+_0x37e6ad[_0x2bdd47(0x223)](0x11)+'\x20'+a113_0x5e7fd9['red']('✗\x20Invalid\x20JSON')),console[_0x2bdd47(0x23e)]('\x20\x20'+''[_0x2bdd47(0x223)](0x11)+'\x20'+a113_0x5e7fd9['red'](_0xd3fd2c[_0x2bdd47(0x235)])));}};_0x5da47b(_0x4f370f(0x227),_0x15a6bc),_0x5da47b(_0x4f370f(0x243),_0x11872b);const _0x418747=loadRawConfigLayers(),_0x32cc2e=[{'label':_0x4f370f(0x243),'value':_0x418747[_0x4f370f(0x263)][_0x4f370f(0x1d8)],'present':Object[_0x4f370f(0x20f)][_0x4f370f(0x21d)][_0x4f370f(0x1f4)](_0x418747[_0x4f370f(0x263)],_0x4f370f(0x1d8)),'repairCommand':CLI_BIN_NAME+_0x4f370f(0x22a)},{'label':_0x4f370f(0x227),'value':_0x418747['globalConfig']['region'],'present':Object['prototype']['hasOwnProperty'][_0x4f370f(0x1f4)](_0x418747[_0x4f370f(0x1f7)],'region'),'repairCommand':CLI_BIN_NAME+_0x4f370f(0x257)}][_0x4f370f(0x225)](_0x523880=>_0x523880[_0x4f370f(0x211)]&&isInvalidLovrabetRegion(_0x523880['value']));for(const [_0x10b619,_0x344c1d]of[[_0x4f370f(0x243),_0x418747[_0x4f370f(0x263)]],[_0x4f370f(0x227),_0x418747[_0x4f370f(0x1f7)]]]){const _0x4054b9=_0x344c1d[_0x4f370f(0x210)]&&typeof _0x344c1d[_0x4f370f(0x210)]===_0x4f370f(0x244)?_0x344c1d['apps']:{};for(const [_0x974285,_0x1f4ab6]of Object[_0x4f370f(0x236)](_0x4054b9)){if(!_0x1f4ab6||typeof _0x1f4ab6!=='object'||!Object[_0x4f370f(0x20f)][_0x4f370f(0x21d)][_0x4f370f(0x1f4)](_0x1f4ab6,'region'))continue;isInvalidLovrabetRegion(_0x1f4ab6[_0x4f370f(0x1d8)])&&_0x32cc2e[_0x4f370f(0x220)]({'label':_0x10b619+_0x4f370f(0x209)+_0x974285+'\x22','value':_0x1f4ab6['region'],'present':!![],'repairCommand':_0x4f370f(0x252)+_0x974285+_0x4f370f(0x203)+_0x10b619[_0x4f370f(0x22d)]()+_0x4f370f(0x23b)});}}if(_0x32cc2e[_0x4f370f(0x216)]>0x0){console[_0x4f370f(0x23e)](),console[_0x4f370f(0x23e)](a113_0x5e7fd9[_0x4f370f(0x21a)](_0x4f370f(0x255))),console[_0x4f370f(0x23e)](a113_0x5e7fd9[_0x4f370f(0x20b)](_0x4f370f(0x21b)[_0x4f370f(0x21c)](0x1e)));for(const _0x44863d of _0x32cc2e){console[_0x4f370f(0x23e)]('\x20\x20'+_0x44863d['label']['padEnd'](0x11)+'\x20'+a113_0x5e7fd9[_0x4f370f(0x201)]('✗\x20Invalid\x20'+describeRegionValue(_0x44863d[_0x4f370f(0x260)]))),console[_0x4f370f(0x23e)]('\x20\x20'+(_0x4f370f(0x207)+_0x44863d[_0x4f370f(0x20d)][_0x4f370f(0x22d)]()+':')[_0x4f370f(0x223)](0x10)+'\x20'+_0x44863d['repairCommand']);}}const _0xe8732b=[Object[_0x4f370f(0x20f)][_0x4f370f(0x21d)][_0x4f370f(0x1f4)](_0x418747['globalConfig'],_0x4f370f(0x20e))?'global':null,Object[_0x4f370f(0x20f)][_0x4f370f(0x21d)]['call'](_0x418747['projectConfig'],_0x4f370f(0x20e))?_0x4f370f(0x24d):null][_0x4f370f(0x225)](Boolean);_0xe8732b[_0x4f370f(0x216)]>0x0&&(console[_0x4f370f(0x23e)]('\x20\x20Legacy\x20inherit:\x20\x20\x20'+a113_0x5e7fd9[_0x4f370f(0x231)]('ignored\x20in\x20'+_0xe8732b[_0x4f370f(0x251)](_0x4f370f(0x1e6))+_0x4f370f(0x23b))),_0xe8732b[_0x4f370f(0x205)](_0x4f370f(0x24d))&&console['log'](_0x4f370f(0x1ec)+CLI_BIN_NAME+_0x4f370f(0x25d)),_0xe8732b[_0x4f370f(0x205)](_0x4f370f(0x212))&&console[_0x4f370f(0x23e)](_0x4f370f(0x215)+CLI_BIN_NAME+_0x4f370f(0x1e1)));const _0x5649db=isInvalidLovrabetRegion(_0x5f36de['regionConfiguredValue']??_0x5f36de['raw']?.[_0x4f370f(0x1d8)]);_0x24c8b6&&!_0x5649db&&(console['log'](),console['log'](a113_0x5e7fd9['bold'](_0x4f370f(0x25c))),console[_0x4f370f(0x23e)](a113_0x5e7fd9['gray'](_0x4f370f(0x21b)[_0x4f370f(0x21c)](0x1e))),console[_0x4f370f(0x23e)](_0x4f370f(0x1da)+a113_0x5e7fd9[_0x4f370f(0x201)](_0x4f370f(0x1f9))),console[_0x4f370f(0x23e)](_0x4f370f(0x219)+_0x24c8b6[_0x4f370f(0x235)]),Object['prototype'][_0x4f370f(0x21d)]['call'](_0x418747[_0x4f370f(0x263)],'routing')&&console['log'](_0x4f370f(0x21e)+CLI_BIN_NAME+_0x4f370f(0x256)),Object['prototype'][_0x4f370f(0x21d)]['call'](_0x418747[_0x4f370f(0x1f7)],_0x4f370f(0x1fd))&&console[_0x4f370f(0x23e)]('\x20\x20Repair\x20global:\x20\x20\x20'+CLI_BIN_NAME+_0x4f370f(0x1fe)));console[_0x4f370f(0x23e)](),console[_0x4f370f(0x23e)](a113_0x5e7fd9['bold'](_0x4f370f(0x202))),console['log'](a113_0x5e7fd9[_0x4f370f(0x20b)](_0x4f370f(0x21b)[_0x4f370f(0x21c)](0x1e))),console[_0x4f370f(0x23e)]('\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x5f36de[_0x4f370f(0x1ed)]||a113_0x5e7fd9[_0x4f370f(0x201)](_0x4f370f(0x237))));const _0x466ce5=_0x5649db?a113_0x5e7fd9[_0x4f370f(0x201)](describeRegionValue(_0x5f36de['regionConfiguredValue']??_0x5f36de[_0x4f370f(0x245)]?.[_0x4f370f(0x1d8)])+'\x20(invalid)'):(_0x5f36de[_0x4f370f(0x1d8)]??DEFAULT_LOVRABET_REGION)+'\x20('+(_0x5f36de[_0x4f370f(0x23f)]??_0x4f370f(0x25a))+')';console[_0x4f370f(0x23e)](_0x4f370f(0x248)+_0x466ce5),console['log'](_0x4f370f(0x259)+_0x5f36de[_0x4f370f(0x200)]),console[_0x4f370f(0x23e)](_0x4f370f(0x20c)+_0x5f36de['locale']),console['log']('\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x5f36de[_0x4f370f(0x226)]),console[_0x4f370f(0x23e)](_0x4f370f(0x1db)+(_0x5f36de[_0x4f370f(0x23a)]||a113_0x5e7fd9[_0x4f370f(0x20b)](_0x4f370f(0x1e0)))),console[_0x4f370f(0x23e)]('\x20\x20currentApp:\x20\x20\x20\x20\x20\x20'+(_0x5f36de[_0x4f370f(0x25b)]||a113_0x5e7fd9[_0x4f370f(0x20b)](_0x4f370f(0x1e0)))),console[_0x4f370f(0x23e)](_0x4f370f(0x23c)+(_0x5f36de[_0x4f370f(0x1d7)]||a113_0x5e7fd9['gray'](_0x4f370f(0x1e0)))),console[_0x4f370f(0x23e)](_0x4f370f(0x1f1)+(_0x5f36de[_0x4f370f(0x240)]||a113_0x5e7fd9[_0x4f370f(0x20b)](_0x4f370f(0x242)+DEFAULT_CONFIG_VALUES[_0x4f370f(0x240)]+')'))),console[_0x4f370f(0x23e)](_0x4f370f(0x22f)+(_0x5f36de[_0x4f370f(0x1f5)]??a113_0x5e7fd9[_0x4f370f(0x20b)](_0x4f370f(0x1df)))),console['log'](_0x4f370f(0x1fa)+_0x5f36de[_0x4f370f(0x1e2)]),console[_0x4f370f(0x23e)](_0x4f370f(0x1fc)+_0x5f36de[_0x4f370f(0x217)]),console[_0x4f370f(0x23e)]('\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x5f36de[_0x4f370f(0x25e)]?a113_0x5e7fd9[_0x4f370f(0x213)]('(set,\x20length='+_0x5f36de[_0x4f370f(0x25e)][_0x4f370f(0x216)]+')'):_0x26c32b?a113_0x5e7fd9[_0x4f370f(0x213)]('(set\x20via\x20file,\x20length='+_0x26c32b[_0x4f370f(0x216)]+')'):a113_0x5e7fd9['gray'](_0x4f370f(0x1e0))));const _0x436da5=Object['keys'](_0x5f36de[_0x4f370f(0x210)]);if(_0x436da5[_0x4f370f(0x216)]>0x0){console[_0x4f370f(0x23e)](),console[_0x4f370f(0x23e)](a113_0x5e7fd9['bold'](_0x4f370f(0x218))),console[_0x4f370f(0x23e)](a113_0x5e7fd9[_0x4f370f(0x20b)](_0x4f370f(0x21b)[_0x4f370f(0x21c)](0x1e)));for(const _0x2a28f2 of _0x436da5){const _0x3396b4=_0x5f36de[_0x4f370f(0x210)][_0x2a28f2],_0x1a9560=_0x2a28f2===_0x5f36de[_0x4f370f(0x23a)],_0x215805=_0x2a28f2===_0x5f36de[_0x4f370f(0x25b)],_0x1c775e=_0x215805?a113_0x5e7fd9[_0x4f370f(0x213)](_0x4f370f(0x204)):'',_0x2002c8=_0x1a9560?_0x4f370f(0x1f3):'';console[_0x4f370f(0x23e)]('\x20\x20'+_0x2a28f2+_0x2002c8+_0x1c775e),console[_0x4f370f(0x23e)](_0x4f370f(0x238)+_0x3396b4[_0x4f370f(0x222)]);const _0x256254=_0x418747['projectConfig'][_0x4f370f(0x210)]&&typeof _0x418747[_0x4f370f(0x263)]['apps']===_0x4f370f(0x244)?_0x418747[_0x4f370f(0x263)][_0x4f370f(0x210)]:{},_0x1ec24c=Object['prototype'][_0x4f370f(0x21d)]['call'](_0x256254,_0x2a28f2),_0x7c3b88=isInvalidLovrabetRegion(_0x3396b4['region'])?{'region':_0x5f36de[_0x4f370f(0x1d8)]??DEFAULT_LOVRABET_REGION}:resolveEffectiveRegion({'appRegion':_0x3396b4[_0x4f370f(0x1d8)],'projectRegion':_0x1ec24c?_0x418747[_0x4f370f(0x263)][_0x4f370f(0x1d8)]:undefined,'globalRegion':_0x418747[_0x4f370f(0x1f7)][_0x4f370f(0x1d8)],'mergedRegion':_0x5f36de['raw']['region'],'appName':_0x2a28f2}),_0x19f1b5=buildAppDoctorFields(_0x3396b4,{'region':_0x7c3b88[_0x4f370f(0x1d8)],'env':_0x5f36de[_0x4f370f(0x200)],'apiDir':_0x5f36de[_0x4f370f(0x245)][_0x4f370f(0x226)]||DEFAULT_CONFIG_VALUES[_0x4f370f(0x226)],'cookie':_0x5f36de[_0x4f370f(0x25e)]||_0x26c32b||undefined,'accessKey':_0x5f36de[_0x4f370f(0x206)]});console[_0x4f370f(0x23e)]('\x20\x20\x20\x20region:\x20\x20\x20\x20\x20'+_0x19f1b5[_0x4f370f(0x1d8)][_0x4f370f(0x260)]+'\x20\x20'+a113_0x5e7fd9[_0x4f370f(0x20b)]('('+_0x19f1b5[_0x4f370f(0x1d8)][_0x4f370f(0x262)]+')')),console[_0x4f370f(0x23e)]('\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x19f1b5[_0x4f370f(0x200)][_0x4f370f(0x260)]+'\x20\x20'+a113_0x5e7fd9[_0x4f370f(0x20b)]('('+_0x19f1b5['env']['source']+')')),console[_0x4f370f(0x23e)](_0x4f370f(0x24a)+_0x19f1b5[_0x4f370f(0x226)][_0x4f370f(0x260)]+'\x20\x20'+a113_0x5e7fd9[_0x4f370f(0x20b)]('('+_0x19f1b5[_0x4f370f(0x226)]['source']+')'));const _0x2c152c=_0x19f1b5[_0x4f370f(0x25e)][_0x4f370f(0x260)]?a113_0x5e7fd9[_0x4f370f(0x213)](_0x4f370f(0x254)+_0x19f1b5['cookie']['value'][_0x4f370f(0x216)]+')'):a113_0x5e7fd9[_0x4f370f(0x20b)](_0x4f370f(0x1e0));console[_0x4f370f(0x23e)](_0x4f370f(0x261)+_0x2c152c+'\x20\x20'+a113_0x5e7fd9[_0x4f370f(0x20b)]('('+_0x19f1b5[_0x4f370f(0x25e)]['source']+')'));const _0x5b4cbb=_0x19f1b5[_0x4f370f(0x206)]['value']?a113_0x5e7fd9['green'](_0x4f370f(0x254)+_0x19f1b5[_0x4f370f(0x206)][_0x4f370f(0x260)][_0x4f370f(0x216)]+')'):a113_0x5e7fd9[_0x4f370f(0x20b)]('(none)');console['log'](_0x4f370f(0x24e)+_0x5b4cbb+'\x20\x20'+a113_0x5e7fd9[_0x4f370f(0x20b)]('('+_0x19f1b5[_0x4f370f(0x206)][_0x4f370f(0x262)]+')'));}}console[_0x4f370f(0x23e)](),console[_0x4f370f(0x23e)](a113_0x5e7fd9[_0x4f370f(0x21a)](_0x4f370f(0x214))),console[_0x4f370f(0x23e)](a113_0x5e7fd9['gray']('\x20\x20─'[_0x4f370f(0x21c)](0x1e)));_0x24c8b6?console['log'](_0x4f370f(0x1da)+a113_0x5e7fd9[_0x4f370f(0x201)](_0x4f370f(0x239))):(console[_0x4f370f(0x23e)](_0x4f370f(0x248)+getActiveRegion()),console[_0x4f370f(0x23e)](_0x4f370f(0x21f)+getApiDomain()),console['log'](_0x4f370f(0x1f0)+getUserDomain()),console['log']('\x20\x20runtimeDomain:\x20\x20\x20'+getRuntimeDomain()),console['log'](_0x4f370f(0x24f)+getSkillDomain()),console[_0x4f370f(0x23e)](_0x4f370f(0x22b)+getKbDomain()),console[_0x4f370f(0x23e)]('\x20\x20appDomain:\x20\x20\x20\x20\x20\x20\x20'+getAppDomain()));console[_0x4f370f(0x23e)](),console['log'](a113_0x5e7fd9[_0x4f370f(0x21a)]('\x20\x20Auth')),console[_0x4f370f(0x23e)](a113_0x5e7fd9['gray'](_0x4f370f(0x21b)[_0x4f370f(0x21c)](0x1e)));if(_0x24c8b6)console['log'](_0x4f370f(0x1da)+a113_0x5e7fd9[_0x4f370f(0x231)](_0x4f370f(0x250)));else{if(_0x26c32b){const _0x58cb08=await getIsSessionValid();console[_0x4f370f(0x23e)](_0x4f370f(0x1da)+(_0x58cb08?a113_0x5e7fd9[_0x4f370f(0x213)](_0x4f370f(0x23d)):a113_0x5e7fd9[_0x4f370f(0x201)](_0x4f370f(0x1ea))));}else console[_0x4f370f(0x23e)](_0x4f370f(0x1da)+a113_0x5e7fd9['red']('✗\x20Not\x20logged\x20in'));}return console[_0x4f370f(0x23e)](),{'ok':!![]};}export const doctorDefinition={'service':a113_0x423171(0x1eb),'command':a113_0x423171(0x224),'description':a113_0x423171(0x234),'risk':a113_0x423171(0x1e4),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
|
|
1
|
+
const a113_0xef596a=a113_0x2622;(function(_0x3dcfc0,_0x56a783){const _0x1609de=a113_0x2622,_0x534c16=_0x3dcfc0();while(!![]){try{const _0xcf4365=parseInt(_0x1609de(0x1a4))/0x1*(-parseInt(_0x1609de(0x1bc))/0x2)+-parseInt(_0x1609de(0x196))/0x3*(parseInt(_0x1609de(0x145))/0x4)+-parseInt(_0x1609de(0x1b3))/0x5*(-parseInt(_0x1609de(0x184))/0x6)+parseInt(_0x1609de(0x19b))/0x7*(-parseInt(_0x1609de(0x1c0))/0x8)+-parseInt(_0x1609de(0x1ab))/0x9*(parseInt(_0x1609de(0x142))/0xa)+-parseInt(_0x1609de(0x153))/0xb+parseInt(_0x1609de(0x13a))/0xc;if(_0xcf4365===_0x56a783)break;else _0x534c16['push'](_0x534c16['shift']());}catch(_0x249136){_0x534c16['push'](_0x534c16['shift']());}}}(a113_0x24bc,0xe7d44));import a113_0x1c840a 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,getSkillDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags,initGlobalEnvironment,inspectCliConfigJsonFile,loadRawConfigLayers}from'../context.js';import{getIsSessionValid}from'../auth/is-session-valid.js';import{getCookie}from'../auth/get-cookie.js';function a113_0x2622(_0x1ca258,_0x12df93){_0x1ca258=_0x1ca258-0x13a;const _0x24bca1=a113_0x24bc();let _0x262271=_0x24bca1[_0x1ca258];return _0x262271;}import{buildAppDoctorFields}from'../config/schema.js';function a113_0x24bc(){const _0x20edfd=['✗\x20Invalid\x20JSON','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','(not\x20set)','region','\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(set\x20via\x20file,\x20length=','join','6PvfhWX','raw','appcode','Set\x20apps.','\x20config\x20delete\x20routing\x20--global','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','projectConfig','✗\x20Invalid\x20','\x20\x20─','format','default','version','read','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','project','\x20\x20Legacy\x20inherit:\x20\x20\x20','(default)','riskLevel','63DYVuvS','repeat','string','\x20config\x20delete\x20routing','\x20\x20Skill\x20Version:\x20\x20\x20','5774923gJsnsf','state','filter','toLowerCase','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','empty','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','env','689286fcTzxb','hasOwnProperty','yellow','length','apps','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','locale','12070197OUnmzQ','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','call','(default:\x20','\x20\x20Config\x20JSON','appCode','current','source','3544435oTGBhw','arch','repairCommand','\x20doctor','currentApp','regionConfiguredValue','stringify','\x20config\x20delete\x20region\x20--global','✗\x20Not\x20logged\x20in','4fGMMtO','(not\x20found)','reason','\x20←\x20current','8TaVGTT','keys','message','\x20\x20Repair\x20global:\x20\x20\x20','includes','\x20+\x20','bold','\x20\x20Repair\x20project:\x20\x20','\x20\x20\x20\x20region:\x20\x20\x20\x20\x20','slice','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','missing','\x20config\x20delete\x20inherit\x20--global','60140820tzXysO','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','⚠\x20Empty\x20(treated\x20as\x20{})','\x20\x20Auth','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','Not\x20checked\x20until\x20routing\x20configuration\x20is\x20repaired','(unknown)','10htSMEn','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20config\x20delete\x20inherit','77500MnelmR','\x20app\x20\x22','✗\x20Invalid','\x20\x20Country/Region\x20Configuration','\x20\x20Repair\x20project:\x20\x20\x20','Repair\x20','globalConfig','log','\x20config','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','✗\x20Expired','present','global','Project','9014291nyifUK','\x20\x20API\x20Endpoints','entries','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(set,\x20length=','skillVersion','\x20\x20skillDomain:\x20\x20\x20\x20\x20','red','routing','\x20\x20app\x20locale:\x20\x20\x20\x20\x20\x20','cookie','\x20\x20runtimeDomain:\x20\x20\x20','Global','\x20\x20Package\x20Version:\x20','\x20\x20Merged\x20Config','inherit','check','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Config\x20Files','gray','green','pageSize','.region\x20to\x20cn\x20or\x20id\x20in\x20','prototype','\x20config\x20delete\x20region','platform','accessKey','value','\x20\x20kbDomain:\x20\x20\x20\x20\x20\x20\x20\x20','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','padEnd','\x20\x20Apps','\x20\x20explicitAppName:\x20','apiDir','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','object','label','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','(none)','status','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20'];a113_0x24bc=function(){return _0x20edfd;};return a113_0x24bc();}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(_0x39f7e7){const _0x39df21=a113_0x2622;return typeof _0x39f7e7===_0x39df21(0x198)?JSON[_0x39df21(0x1b9)](_0x39f7e7):'<'+(_0x39f7e7===null?'null':typeof _0x39f7e7)+'>';}async function execute(_0x19adcd){const _0x33ff88=a113_0x2622,_0x1bc08e=GIT_COMMIT!=='unknown'?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x33ff88(0x1c9)](0x0,0xa)+')':VERSION,_0x409a60=buildConfigFromFlags({}),_0x16a9d0=getCookie();let _0x3acfc6;try{await initGlobalEnvironment(_0x409a60);}catch(_0x3c7d2d){_0x3acfc6=_0x3c7d2d instanceof Error?_0x3c7d2d:new Error(String(_0x3c7d2d));}console['log'](),console[_0x33ff88(0x14c)](a113_0x1c840a[_0x33ff88(0x1c6)](CLI_BIN_NAME+_0x33ff88(0x1b6))),console[_0x33ff88(0x14c)](a113_0x1c840a[_0x33ff88(0x166)]('─'[_0x33ff88(0x197)](0x32))),console['log'](_0x33ff88(0x13b)+_0x1bc08e),console[_0x33ff88(0x14c)](_0x33ff88(0x156)+process[_0x33ff88(0x18f)]),console[_0x33ff88(0x14c)](_0x33ff88(0x14e)+process[_0x33ff88(0x16c)]+'\x20'+process[_0x33ff88(0x1b4)]);const _0x4d72c9=inspectBuiltinSkill();console[_0x33ff88(0x14c)](),console['log'](a113_0x1c840a['bold']('\x20\x20Built-in\x20Skill')),console[_0x33ff88(0x14c)](a113_0x1c840a[_0x33ff88(0x166)]('\x20\x20─'[_0x33ff88(0x197)](0x1e)));const _0x1bd355=_0x4d72c9['state']===_0x33ff88(0x1b1)?a113_0x1c840a[_0x33ff88(0x167)]('✓\x20'+_0x4d72c9[_0x33ff88(0x19c)]):a113_0x1c840a[_0x33ff88(0x15a)]('✗\x20'+_0x4d72c9['state']);console[_0x33ff88(0x14c)]('\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x1bd355),console[_0x33ff88(0x14c)](_0x33ff88(0x160)+_0x4d72c9['packageVersion']),console[_0x33ff88(0x14c)](_0x33ff88(0x19a)+(_0x4d72c9[_0x33ff88(0x158)]||a113_0x1c840a[_0x33ff88(0x166)](_0x33ff88(0x141)))),console[_0x33ff88(0x14c)]('\x20\x20Installed\x20Path:\x20\x20'+(_0x4d72c9['installedPath']||a113_0x1c840a[_0x33ff88(0x166)](_0x33ff88(0x1bd))));if(_0x4d72c9[_0x33ff88(0x1be)])console[_0x33ff88(0x14c)](_0x33ff88(0x1a0)+_0x4d72c9[_0x33ff88(0x1be)]);_0x4d72c9[_0x33ff88(0x19c)]!==_0x33ff88(0x1b1)&&console[_0x33ff88(0x14c)]('\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x4d72c9[_0x33ff88(0x1b5)]);console['log'](),console['log'](a113_0x1c840a['bold'](_0x33ff88(0x165))),console[_0x33ff88(0x14c)](a113_0x1c840a[_0x33ff88(0x166)](_0x33ff88(0x18c)['repeat'](0x1e)));const _0xbc785f=getGlobalConfigPath(),_0x279520=getProjectConfigPath();console[_0x33ff88(0x14c)]('\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0xbc785f||a113_0x1c840a[_0x33ff88(0x166)](_0x33ff88(0x1bd)))),console[_0x33ff88(0x14c)](_0x33ff88(0x13e)+(_0x279520||a113_0x1c840a[_0x33ff88(0x166)](_0x33ff88(0x1bd)))),console[_0x33ff88(0x14c)](),console[_0x33ff88(0x14c)](a113_0x1c840a[_0x33ff88(0x1c6)](_0x33ff88(0x1af))),console['log'](a113_0x1c840a['gray']('\x20\x20─'[_0x33ff88(0x197)](0x1e)));const _0x3a8279=(_0x3ce844,_0x20f114)=>{const _0x123e4b=_0x33ff88;if(!_0x20f114){console[_0x123e4b(0x14c)]('\x20\x20'+_0x3ce844['padEnd'](0x11)+'\x20'+a113_0x1c840a[_0x123e4b(0x166)]('(no\x20file)'));return;}const _0x527d33=inspectCliConfigJsonFile(_0x20f114);if(_0x527d33[_0x123e4b(0x17b)]==='ok')console['log']('\x20\x20'+_0x3ce844['padEnd'](0x11)+'\x20'+a113_0x1c840a[_0x123e4b(0x167)]('✓\x20Valid\x20JSON'));else{if(_0x527d33[_0x123e4b(0x17b)]===_0x123e4b(0x1a1))console[_0x123e4b(0x14c)]('\x20\x20'+_0x3ce844['padEnd'](0x11)+'\x20'+a113_0x1c840a[_0x123e4b(0x1a6)](_0x123e4b(0x13c)));else _0x527d33[_0x123e4b(0x17b)]===_0x123e4b(0x1cb)?console[_0x123e4b(0x14c)]('\x20\x20'+_0x3ce844[_0x123e4b(0x171)](0x11)+'\x20'+a113_0x1c840a['gray']('(missing)')):(console[_0x123e4b(0x14c)]('\x20\x20'+_0x3ce844[_0x123e4b(0x171)](0x11)+'\x20'+a113_0x1c840a['red'](_0x123e4b(0x17d))),console[_0x123e4b(0x14c)]('\x20\x20'+''[_0x123e4b(0x171)](0x11)+'\x20'+a113_0x1c840a[_0x123e4b(0x15a)](_0x527d33[_0x123e4b(0x1c2)])));}};_0x3a8279(_0x33ff88(0x15f),_0xbc785f),_0x3a8279(_0x33ff88(0x152),_0x279520);const _0x3a8645=loadRawConfigLayers(),_0x41ce50=[{'label':'Project','value':_0x3a8645[_0x33ff88(0x18a)]['region'],'present':Object[_0x33ff88(0x16a)]['hasOwnProperty'][_0x33ff88(0x1ad)](_0x3a8645[_0x33ff88(0x18a)],'region'),'repairCommand':CLI_BIN_NAME+_0x33ff88(0x16b)},{'label':_0x33ff88(0x15f),'value':_0x3a8645[_0x33ff88(0x14b)][_0x33ff88(0x180)],'present':Object[_0x33ff88(0x16a)][_0x33ff88(0x1a5)][_0x33ff88(0x1ad)](_0x3a8645[_0x33ff88(0x14b)],_0x33ff88(0x180)),'repairCommand':CLI_BIN_NAME+_0x33ff88(0x1ba)}][_0x33ff88(0x19d)](_0x365b11=>_0x365b11[_0x33ff88(0x150)]&&isInvalidLovrabetRegion(_0x365b11[_0x33ff88(0x16e)]));for(const [_0x225d46,_0x133b0e]of[['Project',_0x3a8645[_0x33ff88(0x18a)]],[_0x33ff88(0x15f),_0x3a8645[_0x33ff88(0x14b)]]]){const _0x54e20c=_0x133b0e[_0x33ff88(0x1a8)]&&typeof _0x133b0e[_0x33ff88(0x1a8)]===_0x33ff88(0x177)?_0x133b0e[_0x33ff88(0x1a8)]:{};for(const [_0x544531,_0x7f3037]of Object[_0x33ff88(0x155)](_0x54e20c)){if(!_0x7f3037||typeof _0x7f3037!==_0x33ff88(0x177)||!Object[_0x33ff88(0x16a)][_0x33ff88(0x1a5)][_0x33ff88(0x1ad)](_0x7f3037,_0x33ff88(0x180)))continue;isInvalidLovrabetRegion(_0x7f3037[_0x33ff88(0x180)])&&_0x41ce50['push']({'label':_0x225d46+_0x33ff88(0x146)+_0x544531+'\x22','value':_0x7f3037[_0x33ff88(0x180)],'present':!![],'repairCommand':_0x33ff88(0x187)+_0x544531+_0x33ff88(0x169)+_0x225d46[_0x33ff88(0x19e)]()+_0x33ff88(0x14d)});}}if(_0x41ce50[_0x33ff88(0x1a7)]>0x0){console['log'](),console[_0x33ff88(0x14c)](a113_0x1c840a[_0x33ff88(0x1c6)](_0x33ff88(0x148))),console[_0x33ff88(0x14c)](a113_0x1c840a[_0x33ff88(0x166)]('\x20\x20─'[_0x33ff88(0x197)](0x1e)));for(const _0x3b0aef of _0x41ce50){console[_0x33ff88(0x14c)]('\x20\x20'+_0x3b0aef[_0x33ff88(0x178)][_0x33ff88(0x171)](0x11)+'\x20'+a113_0x1c840a[_0x33ff88(0x15a)](_0x33ff88(0x18b)+describeRegionValue(_0x3b0aef[_0x33ff88(0x16e)]))),console[_0x33ff88(0x14c)]('\x20\x20'+(_0x33ff88(0x14a)+_0x3b0aef[_0x33ff88(0x178)]['toLowerCase']()+':')[_0x33ff88(0x171)](0x10)+'\x20'+_0x3b0aef[_0x33ff88(0x1b5)]);}}const _0xdbae3a=[Object[_0x33ff88(0x16a)][_0x33ff88(0x1a5)][_0x33ff88(0x1ad)](_0x3a8645['globalConfig'],_0x33ff88(0x162))?_0x33ff88(0x151):null,Object[_0x33ff88(0x16a)][_0x33ff88(0x1a5)][_0x33ff88(0x1ad)](_0x3a8645[_0x33ff88(0x18a)],_0x33ff88(0x162))?'project':null][_0x33ff88(0x19d)](Boolean);_0xdbae3a[_0x33ff88(0x1a7)]>0x0&&(console[_0x33ff88(0x14c)](_0x33ff88(0x193)+a113_0x1c840a[_0x33ff88(0x1a6)]('ignored\x20in\x20'+_0xdbae3a[_0x33ff88(0x183)](_0x33ff88(0x1c5))+_0x33ff88(0x14d))),_0xdbae3a['includes'](_0x33ff88(0x192))&&console[_0x33ff88(0x14c)](_0x33ff88(0x149)+CLI_BIN_NAME+_0x33ff88(0x144)),_0xdbae3a[_0x33ff88(0x1c4)](_0x33ff88(0x151))&&console[_0x33ff88(0x14c)]('\x20\x20Repair\x20global:\x20\x20\x20\x20'+CLI_BIN_NAME+_0x33ff88(0x1cc)));const _0x57b419=isInvalidLovrabetRegion(_0x409a60[_0x33ff88(0x1b8)]??_0x409a60['raw']?.['region']);_0x3acfc6&&!_0x57b419&&(console[_0x33ff88(0x14c)](),console[_0x33ff88(0x14c)](a113_0x1c840a[_0x33ff88(0x1c6)]('\x20\x20Routing\x20Configuration')),console['log'](a113_0x1c840a[_0x33ff88(0x166)]('\x20\x20─'[_0x33ff88(0x197)](0x1e))),console['log'](_0x33ff88(0x143)+a113_0x1c840a[_0x33ff88(0x15a)](_0x33ff88(0x147))),console[_0x33ff88(0x14c)](_0x33ff88(0x1a0)+_0x3acfc6[_0x33ff88(0x1c2)]),Object[_0x33ff88(0x16a)][_0x33ff88(0x1a5)][_0x33ff88(0x1ad)](_0x3a8645[_0x33ff88(0x18a)],_0x33ff88(0x15b))&&console[_0x33ff88(0x14c)](_0x33ff88(0x1c7)+CLI_BIN_NAME+_0x33ff88(0x199)),Object[_0x33ff88(0x16a)][_0x33ff88(0x1a5)][_0x33ff88(0x1ad)](_0x3a8645['globalConfig'],'routing')&&console[_0x33ff88(0x14c)](_0x33ff88(0x1c3)+CLI_BIN_NAME+_0x33ff88(0x188)));console['log'](),console['log'](a113_0x1c840a['bold'](_0x33ff88(0x161))),console[_0x33ff88(0x14c)](a113_0x1c840a['gray'](_0x33ff88(0x18c)[_0x33ff88(0x197)](0x1e))),console[_0x33ff88(0x14c)](_0x33ff88(0x175)+(_0x409a60[_0x33ff88(0x1b0)]||a113_0x1c840a[_0x33ff88(0x15a)](_0x33ff88(0x17f))));const _0x5afbc3=_0x57b419?a113_0x1c840a['red'](describeRegionValue(_0x409a60[_0x33ff88(0x1b8)]??_0x409a60[_0x33ff88(0x185)]?.[_0x33ff88(0x180)])+'\x20(invalid)'):(_0x409a60[_0x33ff88(0x180)]??DEFAULT_LOVRABET_REGION)+'\x20('+(_0x409a60['regionSource']??_0x33ff88(0x18e))+')';console[_0x33ff88(0x14c)](_0x33ff88(0x181)+_0x5afbc3),console[_0x33ff88(0x14c)]('\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x409a60[_0x33ff88(0x1a3)]),console[_0x33ff88(0x14c)](_0x33ff88(0x15c)+_0x409a60[_0x33ff88(0x1aa)]),console['log'](_0x33ff88(0x164)+_0x409a60[_0x33ff88(0x174)]),console[_0x33ff88(0x14c)](_0x33ff88(0x17c)+(_0x409a60['defaultApp']||a113_0x1c840a[_0x33ff88(0x166)](_0x33ff88(0x17a)))),console[_0x33ff88(0x14c)](_0x33ff88(0x1a2)+(_0x409a60[_0x33ff88(0x1b7)]||a113_0x1c840a[_0x33ff88(0x166)](_0x33ff88(0x17a)))),console[_0x33ff88(0x14c)](_0x33ff88(0x173)+(_0x409a60['explicitAppName']||a113_0x1c840a['gray'](_0x33ff88(0x17a)))),console['log'](_0x33ff88(0x1a9)+(_0x409a60[_0x33ff88(0x18d)]||a113_0x1c840a[_0x33ff88(0x166)](_0x33ff88(0x1ae)+DEFAULT_CONFIG_VALUES[_0x33ff88(0x18d)]+')'))),console[_0x33ff88(0x14c)](_0x33ff88(0x19f)+(_0x409a60[_0x33ff88(0x168)]??a113_0x1c840a[_0x33ff88(0x166)](_0x33ff88(0x194)))),console[_0x33ff88(0x14c)](_0x33ff88(0x1ca)+_0x409a60[_0x33ff88(0x195)]),console[_0x33ff88(0x14c)](_0x33ff88(0x13f)+_0x409a60['verbose']),console[_0x33ff88(0x14c)](_0x33ff88(0x176)+(_0x409a60[_0x33ff88(0x15d)]?a113_0x1c840a[_0x33ff88(0x167)](_0x33ff88(0x157)+_0x409a60['cookie'][_0x33ff88(0x1a7)]+')'):_0x16a9d0?a113_0x1c840a[_0x33ff88(0x167)](_0x33ff88(0x182)+_0x16a9d0[_0x33ff88(0x1a7)]+')'):a113_0x1c840a[_0x33ff88(0x166)]('(none)')));const _0x14c0e5=Object[_0x33ff88(0x1c1)](_0x409a60[_0x33ff88(0x1a8)]);if(_0x14c0e5[_0x33ff88(0x1a7)]>0x0){console[_0x33ff88(0x14c)](),console[_0x33ff88(0x14c)](a113_0x1c840a[_0x33ff88(0x1c6)](_0x33ff88(0x172))),console[_0x33ff88(0x14c)](a113_0x1c840a['gray']('\x20\x20─'[_0x33ff88(0x197)](0x1e)));for(const _0x42e4dd of _0x14c0e5){const _0x3d9bff=_0x409a60['apps'][_0x42e4dd],_0x1a2425=_0x42e4dd===_0x409a60['defaultApp'],_0x814f98=_0x42e4dd===_0x409a60[_0x33ff88(0x1b7)],_0x68a974=_0x814f98?a113_0x1c840a[_0x33ff88(0x167)](_0x33ff88(0x1bf)):'',_0x44a9f7=_0x1a2425?'\x20(default)':'';console[_0x33ff88(0x14c)]('\x20\x20'+_0x42e4dd+_0x44a9f7+_0x68a974),console[_0x33ff88(0x14c)](_0x33ff88(0x179)+_0x3d9bff[_0x33ff88(0x186)]);const _0x748cb5=_0x3a8645['projectConfig'][_0x33ff88(0x1a8)]&&typeof _0x3a8645[_0x33ff88(0x18a)][_0x33ff88(0x1a8)]===_0x33ff88(0x177)?_0x3a8645[_0x33ff88(0x18a)][_0x33ff88(0x1a8)]:{},_0x245761=Object[_0x33ff88(0x16a)][_0x33ff88(0x1a5)][_0x33ff88(0x1ad)](_0x748cb5,_0x42e4dd),_0x3b673e=isInvalidLovrabetRegion(_0x3d9bff['region'])?{'region':_0x409a60[_0x33ff88(0x180)]??DEFAULT_LOVRABET_REGION}:resolveEffectiveRegion({'appRegion':_0x3d9bff[_0x33ff88(0x180)],'projectRegion':_0x245761?_0x3a8645[_0x33ff88(0x18a)][_0x33ff88(0x180)]:undefined,'globalRegion':_0x3a8645['globalConfig']['region'],'mergedRegion':_0x409a60[_0x33ff88(0x185)][_0x33ff88(0x180)],'appName':_0x42e4dd}),_0x5298f0=buildAppDoctorFields(_0x3d9bff,{'region':_0x3b673e[_0x33ff88(0x180)],'env':_0x409a60[_0x33ff88(0x1a3)],'apiDir':_0x409a60['raw']['apiDir']||DEFAULT_CONFIG_VALUES['apiDir'],'cookie':_0x409a60[_0x33ff88(0x15d)]||_0x16a9d0||undefined,'accessKey':_0x409a60['accessKey']});console['log'](_0x33ff88(0x1c8)+_0x5298f0[_0x33ff88(0x180)][_0x33ff88(0x16e)]+'\x20\x20'+a113_0x1c840a[_0x33ff88(0x166)]('('+_0x5298f0['region']['source']+')')),console[_0x33ff88(0x14c)](_0x33ff88(0x17e)+_0x5298f0[_0x33ff88(0x1a3)][_0x33ff88(0x16e)]+'\x20\x20'+a113_0x1c840a[_0x33ff88(0x166)]('('+_0x5298f0['env']['source']+')')),console[_0x33ff88(0x14c)](_0x33ff88(0x1ac)+_0x5298f0[_0x33ff88(0x174)]['value']+'\x20\x20'+a113_0x1c840a[_0x33ff88(0x166)]('('+_0x5298f0[_0x33ff88(0x174)][_0x33ff88(0x1b2)]+')'));const _0x517276=_0x5298f0[_0x33ff88(0x15d)][_0x33ff88(0x16e)]?a113_0x1c840a[_0x33ff88(0x167)]('(set,\x20length='+_0x5298f0[_0x33ff88(0x15d)]['value'][_0x33ff88(0x1a7)]+')'):a113_0x1c840a[_0x33ff88(0x166)](_0x33ff88(0x17a));console[_0x33ff88(0x14c)](_0x33ff88(0x189)+_0x517276+'\x20\x20'+a113_0x1c840a[_0x33ff88(0x166)]('('+_0x5298f0[_0x33ff88(0x15d)][_0x33ff88(0x1b2)]+')'));const _0x4c4687=_0x5298f0[_0x33ff88(0x16d)][_0x33ff88(0x16e)]?a113_0x1c840a[_0x33ff88(0x167)](_0x33ff88(0x157)+_0x5298f0['accessKey']['value'][_0x33ff88(0x1a7)]+')'):a113_0x1c840a[_0x33ff88(0x166)](_0x33ff88(0x17a));console['log']('\x20\x20\x20\x20accessKey:\x20\x20'+_0x4c4687+'\x20\x20'+a113_0x1c840a[_0x33ff88(0x166)]('('+_0x5298f0[_0x33ff88(0x16d)][_0x33ff88(0x1b2)]+')'));}}console['log'](),console[_0x33ff88(0x14c)](a113_0x1c840a[_0x33ff88(0x1c6)](_0x33ff88(0x154))),console[_0x33ff88(0x14c)](a113_0x1c840a[_0x33ff88(0x166)](_0x33ff88(0x18c)[_0x33ff88(0x197)](0x1e)));_0x3acfc6?console[_0x33ff88(0x14c)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a113_0x1c840a['red']('Unavailable\x20until\x20routing\x20configuration\x20is\x20repaired')):(console[_0x33ff88(0x14c)](_0x33ff88(0x181)+getActiveRegion()),console[_0x33ff88(0x14c)]('\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20'+getApiDomain()),console[_0x33ff88(0x14c)](_0x33ff88(0x191)+getUserDomain()),console['log'](_0x33ff88(0x15e)+getRuntimeDomain()),console[_0x33ff88(0x14c)](_0x33ff88(0x159)+getSkillDomain()),console['log'](_0x33ff88(0x16f)+getKbDomain()),console[_0x33ff88(0x14c)]('\x20\x20appDomain:\x20\x20\x20\x20\x20\x20\x20'+getAppDomain()));console[_0x33ff88(0x14c)](),console[_0x33ff88(0x14c)](a113_0x1c840a['bold'](_0x33ff88(0x13d))),console[_0x33ff88(0x14c)](a113_0x1c840a[_0x33ff88(0x166)](_0x33ff88(0x18c)[_0x33ff88(0x197)](0x1e)));if(_0x3acfc6)console[_0x33ff88(0x14c)](_0x33ff88(0x143)+a113_0x1c840a[_0x33ff88(0x1a6)](_0x33ff88(0x140)));else{if(_0x16a9d0){const _0x2667cd=await getIsSessionValid();console[_0x33ff88(0x14c)](_0x33ff88(0x143)+(_0x2667cd?a113_0x1c840a['green']('✓\x20Valid'):a113_0x1c840a[_0x33ff88(0x15a)](_0x33ff88(0x14f))));}else console[_0x33ff88(0x14c)](_0x33ff88(0x143)+a113_0x1c840a[_0x33ff88(0x15a)](_0x33ff88(0x1bb)));}return console[_0x33ff88(0x14c)](),{'ok':!![]};}export const doctorDefinition={'service':'doctor','command':a113_0xef596a(0x163),'description':a113_0xef596a(0x170),'risk':a113_0xef596a(0x190),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a114_0x2dbc96=a114_0x4262;function a114_0x3c68(){const _0xecb694=['Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML','File','filepath','Uploaded\x20file:\x20','1417604AHDKZG','POST','/smartapi/common/uploadFile','Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL','trim','7fKWeYb','string','1770NQxswq','788iGyTTP','filePath','read','17217oPOmCs','1809080mAxikI','.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','path','205302tfvSDx','appCode','bool','Development\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data','download','1715485Aobpeq','str','854CstXuH','Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20or\x20immediate\x20access','filePath\x20is\x20required.','validation','949446CtBboE','long-term','file','boolean'];a114_0x3c68=function(){return _0xecb694;};return a114_0x3c68();}(function(_0x269208,_0x25301e){const _0x3f9a29=a114_0x4262,_0x53c996=_0x269208();while(!![]){try{const _0x2927c7=-parseInt(_0x3f9a29(0xf7))/0x1*(parseInt(_0x3f9a29(0x105))/0x2)+-parseInt(_0x3f9a29(0x109))/0x3+parseInt(_0x3f9a29(0x112))/0x4+parseInt(_0x3f9a29(0x103))/0x5+parseInt(_0x3f9a29(0xfe))/0x6*(parseInt(_0x3f9a29(0xf4))/0x7)+-parseInt(_0x3f9a29(0xfb))/0x8+-parseInt(_0x3f9a29(0xfa))/0x9*(-parseInt(_0x3f9a29(0xf6))/0xa);if(_0x2927c7===_0x25301e)break;else _0x53c996['push'](_0x53c996['shift']());}catch(_0x5da876){_0x53c996['push'](_0x53c996['shift']());}}}(a114_0x3c68,0x2eaf7));import{requireDevelopmentUploadFile}from'../../commands/common/local-file.js';import{queryDevelopmentFileUrl,uploadDevelopmentFile}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const FILE_FLAG={'name':a114_0x2dbc96(0x10b),'type':'string','required':!![],'description':'Path\x20to\x20the\x20local\x20file\x20to\x20upload'},FILEPATH_FLAG={'name':a114_0x2dbc96(0x110),'type':a114_0x2dbc96(0xf5),'required':!![],'description':a114_0x2dbc96(0x101)},DOWNLOAD_FLAG={'name':a114_0x2dbc96(0x102),'type':a114_0x2dbc96(0x10c),'description':a114_0x2dbc96(0xf2)},LONG_TERM_FLAG={'name':a114_0x2dbc96(0x10a),'type':'boolean','description':a114_0x2dbc96(0x10e)};function requireFilePath(_0x1e501e){const _0x311418=a114_0x2dbc96,_0x24f050=_0x1e501e[_0x311418(0xf3)]();if(!_0x24f050)throw CliErrors[_0x311418(0x108)](_0x311418(0x107));return _0x24f050;}const fileUpload={'service':a114_0x2dbc96(0x10b),'command':'upload','description':'Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','risk':'read','flags':[FILE_FLAG],async 'dryRun'(_0x5d13d9){const _0x55ea55=a114_0x2dbc96,_0x114e2b=requireDevelopmentUploadFile(_0x5d13d9[_0x55ea55(0x104)]('file'),_0x55ea55(0x10f));return{'method':_0x55ea55(0x113),'url':_0x55ea55(0xf1),'body':{'appCode':_0x5d13d9['appCode'],'multipart':{'file':_0x114e2b}},'description':'Preview:\x20upload\x20'+_0x114e2b[_0x55ea55(0xfd)]+'\x20to\x20development\x20app\x20'+_0x5d13d9['appCode']};},async 'execute'(_0x151992){const _0x345d28=a114_0x2dbc96,_0x1fc372=requireDevelopmentUploadFile(_0x151992[_0x345d28(0x104)]('file'),_0x345d28(0x10f)),_0x22f782=await uploadDevelopmentFile(_0x151992[_0x345d28(0xff)],_0x1fc372[_0x345d28(0xfd)]);return{'ok':!![],'data':_0x22f782,'message':_0x22f782[_0x345d28(0xf8)]?_0x345d28(0x111)+_0x22f782[_0x345d28(0xf8)]+_0x345d28(0xfc):_0x345d28(0x10d)};}},fileQueryUrl={'service':'file','command':'query-url','description':a114_0x2dbc96(0x106),'risk':a114_0x2dbc96(0xf9),'flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0xae434c){const _0x43ef51=a114_0x2dbc96,_0x130651=requireFilePath(_0xae434c[_0x43ef51(0x104)](_0x43ef51(0x110))),_0x3a0d35=await queryDevelopmentFileUrl(_0x130651,{'download':_0xae434c[_0x43ef51(0x100)](_0x43ef51(0x102)),'longTerm':_0xae434c[_0x43ef51(0x100)](_0x43ef51(0x10a))});return{'ok':!![],'data':_0x3a0d35};}};function a114_0x4262(_0x14c2a4,_0x35ec3d){_0x14c2a4=_0x14c2a4-0xf1;const _0x3c685a=a114_0x3c68();let _0x426284=_0x3c685a[_0x14c2a4];return _0x426284;}export const fileDefinitions=[fileUpload,fileQueryUrl];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a115_0x5372ba=a115_0x548a;(function(_0x1d6c69,_0x3d234f){const _0x2f7b30=a115_0x548a,_0x1d71fc=_0x1d6c69();while(!![]){try{const _0x29ea6f=-parseInt(_0x2f7b30(0x110))/0x1*(-parseInt(_0x2f7b30(0x10d))/0x2)+-parseInt(_0x2f7b30(0x10e))/0x3*(parseInt(_0x2f7b30(0x112))/0x4)+-parseInt(_0x2f7b30(0x108))/0x5*(-parseInt(_0x2f7b30(0x10c))/0x6)+-parseInt(_0x2f7b30(0x109))/0x7+parseInt(_0x2f7b30(0x113))/0x8*(-parseInt(_0x2f7b30(0x10f))/0x9)+parseInt(_0x2f7b30(0x115))/0xa+-parseInt(_0x2f7b30(0x114))/0xb;if(_0x29ea6f===_0x3d234f)break;else _0x1d71fc['push'](_0x1d71fc['shift']());}catch(_0x543a6f){_0x1d71fc['push'](_0x1d71fc['shift']());}}}(a115_0x2bd0,0xed75f));function a115_0x2bd0(){const _0x1cc78c=['9kmuenY','write','172ysgGDn','8fUQcOL','6656122zhfgJo','18629740zEIpVY','POST','create','datasetCode','Create\x20a\x20draft\x20flow\x20definition\x20from\x20a\x20local\x20FlowConfig\x20file','appCode','40010XsALpY','174902rJbnTj','Created\x20flow\x20','flowName','1446OswjAv','165590dgKBAJ','131757GLvDVX','9408303yACpcB'];a115_0x2bd0=function(){return _0x1cc78c;};return a115_0x2bd0();}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a115_0x548a(_0xf218dc,_0x5e2997){_0xf218dc=_0xf218dc-0x107;const _0x2bd009=a115_0x2bd0();let _0x548a3a=_0x2bd009[_0xf218dc];return _0x548a3a;}import{asDryRunResult}from'../../commands/common/dry-run.js';import{createFlowDefinition}from'../../core/api-client.js';import{FLOW_FILE_FLAG,FLOW_PATHS,confirmFlowWrite,flowSelector,prepareFlowWrite,readFlowFilePath}from'../../commands/flow/shared.js';export const flowCreate={'service':'flow','command':'create','description':a115_0x5372ba(0x119),'risk':a115_0x5372ba(0x111),'flags':[FLOW_FILE_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x104cb0){readFlowFilePath(_0x104cb0);},async 'dryRun'(_0x5dd84c){const _0x434886=a115_0x5372ba,{request:_0x5c29f6,warnings:_0x2eacbe}=await prepareFlowWrite(readFlowFilePath(_0x5dd84c),_0x5dd84c['appCode']);return asDryRunResult({'operation':_0x434886(0x117),'selector':{'appCode':_0x5dd84c['appCode'],'flowName':_0x5c29f6[_0x434886(0x10b)],..._0x5c29f6[_0x434886(0x118)]?{'datasetCode':_0x5c29f6[_0x434886(0x118)]}:{}},'before':null,'after':_0x5c29f6,'request':_0x5c29f6,'dryRun':!![],'backend':{'method':_0x434886(0x116),'path':FLOW_PATHS[_0x434886(0x117)]},'warnings':_0x2eacbe},{'method':_0x434886(0x116),'url':FLOW_PATHS[_0x434886(0x117)]});},async 'execute'(_0x124137){const _0xb14ec0=a115_0x5372ba,{request:_0x5eeab4,warnings:_0x59e549}=await prepareFlowWrite(readFlowFilePath(_0x124137),_0x124137[_0xb14ec0(0x107)]);await confirmFlowWrite(_0x124137,_0xb14ec0(0x117),_0x5eeab4);const _0x24a4d8=await createFlowDefinition(_0x5eeab4);return{'ok':!![],'data':{'operation':_0xb14ec0(0x117),'selector':flowSelector(_0x124137[_0xb14ec0(0x107)],_0x24a4d8['id'],_0x24a4d8),'before':null,'after':_0x24a4d8,'dryRun':![],'backend':{'method':'POST','path':FLOW_PATHS[_0xb14ec0(0x117)]},'warnings':_0x59e549},'message':_0xb14ec0(0x10a)+(_0x24a4d8[_0xb14ec0(0x10b)]||_0x5eeab4['flowName'])+(_0x24a4d8['id']?'\x20(id='+_0x24a4d8['id']+')':'')};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a116_0x3baecc=a116_0x2de7;(function(_0x2ed9d7,_0x3bc5b1){const _0x346975=a116_0x2de7,_0x5ddf70=_0x2ed9d7();while(!![]){try{const _0x4f1849=-parseInt(_0x346975(0x147))/0x1*(parseInt(_0x346975(0x14f))/0x2)+parseInt(_0x346975(0x142))/0x3+-parseInt(_0x346975(0x154))/0x4+parseInt(_0x346975(0x137))/0x5+parseInt(_0x346975(0x138))/0x6*(parseInt(_0x346975(0x14d))/0x7)+parseInt(_0x346975(0x145))/0x8+-parseInt(_0x346975(0x135))/0x9*(-parseInt(_0x346975(0x13c))/0xa);if(_0x4f1849===_0x3bc5b1)break;else _0x5ddf70['push'](_0x5ddf70['shift']());}catch(_0x5a4852){_0x5ddf70['push'](_0x5ddf70['shift']());}}}(a116_0x35cd,0x46e73));import{mkdir,stat}from'node:fs/promises';function a116_0x2de7(_0x5eb597,_0x3a71a0){_0x5eb597=_0x5eb597-0x135;const _0x35cde7=a116_0x35cd();let _0x2de735=_0x35cde7[_0x5eb597];return _0x2de735;}import{dirname,resolve}from'node:path';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a116_0x35cd(){const _0x137b6a=['boolean','686828DRsdPN','trim','EEXIST','2921652koVrJh','Get\x20one\x20design-time\x20flow\x20definition','612450GsaUuO','652242vhzuRK','force','FlowConfig\x20output\x20already\x20exists:\x20','validation','10LhTESQ','output','Overwrite\x20an\x20existing\x20output\x20file','read','\x20to\x20','flowCode','42345yVbDsV','Flow\x20','Pass\x20--force\x20to\x20overwrite\x20it.','221800LQEJCD','string','10phUBcs','bool','flowName','Wrote\x20FlowConfig\x20for\x20','path','warnings','28ivGGxK','config','92332IDaDpW','appCode','detail','ENOENT'];a116_0x35cd=function(){return _0x137b6a;};return a116_0x35cd();}import{getFlowDefinition}from'../../core/api-client.js';import{writeNormalizedFlowConfig}from'../../core/flow-config.js';import{CliErrors}from'../../errors.js';import{FLOW_ID_FLAG,flowDefinitionToConfig,readFlowId}from'../../commands/flow/shared.js';export const flowDetail={'service':'flow','command':a116_0x3baecc(0x151),'description':a116_0x3baecc(0x136),'risk':a116_0x3baecc(0x13f),'flags':[FLOW_ID_FLAG,{'name':a116_0x3baecc(0x13d),'type':a116_0x3baecc(0x146),'description':'Write\x20a\x20portable\x20normalized\x20FlowConfig\x20JSON\x20file'},{'name':a116_0x3baecc(0x139),'type':a116_0x3baecc(0x153),'description':a116_0x3baecc(0x13e)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x55c27f){readFlowId(_0x55c27f);},async 'execute'(_0x3eda1a){const _0x2efda1=a116_0x3baecc,_0x2db8ae=readFlowId(_0x3eda1a),_0x1e390e=_0x3eda1a['str']('output')[_0x2efda1(0x155)](),_0x5c58ad=_0x1e390e?resolve(_0x1e390e):undefined;if(_0x5c58ad&&!_0x3eda1a[_0x2efda1(0x148)](_0x2efda1(0x139))&&await fileExists(_0x5c58ad))throw CliErrors[_0x2efda1(0x13b)](_0x2efda1(0x13a)+_0x5c58ad,_0x2efda1(0x144));const _0x13a070=await getFlowDefinition(_0x3eda1a[_0x2efda1(0x150)],_0x2db8ae);let _0x497893;if(_0x5c58ad){const _0x13daf5=flowDefinitionToConfig(_0x13a070);await mkdir(dirname(_0x5c58ad),{'recursive':!![]});try{await writeNormalizedFlowConfig(_0x5c58ad,_0x13daf5[_0x2efda1(0x14e)],{'overwrite':_0x3eda1a[_0x2efda1(0x148)](_0x2efda1(0x139))});}catch(_0xb679b2){if(isAlreadyExistsError(_0xb679b2))throw CliErrors[_0x2efda1(0x13b)]('FlowConfig\x20output\x20already\x20exists:\x20'+_0x5c58ad,_0x2efda1(0x144));throw _0xb679b2;}_0x497893={'path':_0x5c58ad,'warnings':_0x13daf5[_0x2efda1(0x14c)]};}return{'ok':!![],'data':{'flow':_0x13a070,..._0x497893?{'output':_0x497893}:{}},'message':_0x497893?_0x2efda1(0x14a)+(_0x13a070[_0x2efda1(0x149)]||_0x13a070[_0x2efda1(0x141)]||_0x2db8ae)+_0x2efda1(0x140)+_0x497893[_0x2efda1(0x14b)]:_0x2efda1(0x143)+(_0x13a070[_0x2efda1(0x149)]||_0x13a070['flowCode']||_0x2db8ae)};}};async function fileExists(_0x13f604){try{return await stat(_0x13f604),!![];}catch(_0x2e0cc6){return!isNotFoundError(_0x2e0cc6);}}function isNotFoundError(_0x4827e3){const _0x16cdbf=a116_0x3baecc;return _0x4827e3?.['code']===_0x16cdbf(0x152);}function isAlreadyExistsError(_0x4fc63e){const _0x3433ef=a116_0x3baecc;return _0x4fc63e?.['code']===_0x3433ef(0x156);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4b3d23,_0x466b57){const _0x470f4d=a117_0x3f6c,_0x20d673=_0x4b3d23();while(!![]){try{const _0x4c3e0b=-parseInt(_0x470f4d(0xa7))/0x1+parseInt(_0x470f4d(0xaa))/0x2+parseInt(_0x470f4d(0xa8))/0x3*(-parseInt(_0x470f4d(0xa9))/0x4)+-parseInt(_0x470f4d(0xab))/0x5+-parseInt(_0x470f4d(0xae))/0x6*(parseInt(_0x470f4d(0xad))/0x7)+parseInt(_0x470f4d(0xa5))/0x8*(parseInt(_0x470f4d(0xac))/0x9)+-parseInt(_0x470f4d(0xa6))/0xa;if(_0x4c3e0b===_0x466b57)break;else _0x20d673['push'](_0x20d673['shift']());}catch(_0x163a8c){_0x20d673['push'](_0x20d673['shift']());}}}(a117_0x3a0a,0x77d8d));import{flowValidate}from'../../commands/flow/validate.js';import{flowList}from'../../commands/flow/list.js';import{flowDetail}from'../../commands/flow/detail.js';import{flowCreate}from'../../commands/flow/create.js';function a117_0x3f6c(_0x5d6d5f,_0x39dc64){_0x5d6d5f=_0x5d6d5f-0xa5;const _0x3a0a68=a117_0x3a0a();let _0x3f6ccc=_0x3a0a68[_0x5d6d5f];return _0x3f6ccc;}import{flowUpdate}from'../../commands/flow/update.js';import{flowPublish}from'../../commands/flow/publish.js';import{flowRuntimeRoleList}from'../../commands/flow/runtime-role-list.js';import{flowRuntimeUserSearch}from'../../commands/flow/runtime-user-search.js';import{flowRuntimeRoleUserList}from'../../commands/flow/runtime-role-user-list.js';export const flowDefinitions=[flowValidate,flowList,flowDetail,flowCreate,flowUpdate,flowPublish,flowRuntimeRoleList,flowRuntimeUserSearch,flowRuntimeRoleUserList];function a117_0x3a0a(){const _0x51075a=['1956080ldrKMs','2505125ghvAZi','9iJTgqi','237202gsJwtQ','66TtjXhy','7285120PbBfch','3739340ImNxtw','76433BEZSTK','220947pHvopp','4iGcZry'];a117_0x3a0a=function(){return _0x51075a;};return a117_0x3a0a();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a118_0x35040d=a118_0x4870;(function(_0x4af14c,_0x5f4d49){const _0x3a1248=a118_0x4870,_0x3f052b=_0x4af14c();while(!![]){try{const _0x5a7f73=parseInt(_0x3a1248(0x1cb))/0x1+-parseInt(_0x3a1248(0x1e9))/0x2+-parseInt(_0x3a1248(0x1d2))/0x3+parseInt(_0x3a1248(0x1eb))/0x4+-parseInt(_0x3a1248(0x1e5))/0x5*(-parseInt(_0x3a1248(0x1dd))/0x6)+-parseInt(_0x3a1248(0x1db))/0x7+-parseInt(_0x3a1248(0x1c5))/0x8*(parseInt(_0x3a1248(0x1d4))/0x9);if(_0x5a7f73===_0x5f4d49)break;else _0x3f052b['push'](_0x3f052b['shift']());}catch(_0x1351d6){_0x3f052b['push'](_0x3f052b['shift']());}}}(a118_0x2b9b,0x56ce5));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{listFlowDefinitions}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a118_0x2b9b(){const _0x38f5ea=['Filter\x20by\x20dataset\x20code','1170WuvKGl','string','dataset-code','flow-name','--page\x20must\x20be\x20a\x20positive\x20integer.','Page\x20number\x20(1-based)','page-size','361361gqGwLc','List\x20design-time\x20flow\x20definitions\x20for\x20the\x20current\x20app','6VsyFMj','Filter\x20by\x20flow\x20name','Filter\x20by\x20flow\x20type','page','flow-type','str','Found\x20','list','1644985UyObJI','Filter\x20by\x20flow\x20status','--page-size\x20must\x20be\x20a\x20positive\x20integer.','appCode','818042wRuwVm','flow-status','1071316hfnfFJ','21944DzbxNF','Filter\x20by\x20exact\x20server-generated\x20flow\x20code','number','num','\x20flow\x20definition(s)','length','660284cCakks','published','isSafeInteger','flow-code','read','flow','validation','252957Emsyko'];a118_0x2b9b=function(){return _0x38f5ea;};return a118_0x2b9b();}const FLOW_STATUSES=['draft',a118_0x35040d(0x1cc)];function a118_0x4870(_0x56ec0c,_0x8c5e8d){_0x56ec0c=_0x56ec0c-0x1c5;const _0x2b9b99=a118_0x2b9b();let _0x487025=_0x2b9b99[_0x56ec0c];return _0x487025;}export const flowList={'service':a118_0x35040d(0x1d0),'command':a118_0x35040d(0x1e4),'description':a118_0x35040d(0x1dc),'risk':a118_0x35040d(0x1cf),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a118_0x35040d(0x1ce),'type':a118_0x35040d(0x1d5),'description':a118_0x35040d(0x1c6)},{'name':a118_0x35040d(0x1d7),'type':a118_0x35040d(0x1d5),'description':a118_0x35040d(0x1de)},{'name':a118_0x35040d(0x1ea),'type':'string','description':a118_0x35040d(0x1e6),'enum':FLOW_STATUSES},{'name':a118_0x35040d(0x1d6),'type':a118_0x35040d(0x1d5),'description':a118_0x35040d(0x1d3)},{'name':a118_0x35040d(0x1e1),'type':a118_0x35040d(0x1d5),'description':a118_0x35040d(0x1df)},{'name':a118_0x35040d(0x1e0),'type':a118_0x35040d(0x1c7),'description':a118_0x35040d(0x1d9),'default':0x1},{'name':a118_0x35040d(0x1da),'type':a118_0x35040d(0x1c7),'description':'Page\x20size','default':0x14}],async 'validate'(_0x138a9e){const _0x5a1246=a118_0x35040d,_0x300f96=_0x138a9e[_0x5a1246(0x1c8)](_0x5a1246(0x1e0),0x1),_0x5a2f4c=_0x138a9e[_0x5a1246(0x1c8)]('page-size',0x14);if(!Number[_0x5a1246(0x1cd)](_0x300f96)||_0x300f96<0x1)throw CliErrors['validation'](_0x5a1246(0x1d8));if(!Number[_0x5a1246(0x1cd)](_0x5a2f4c)||_0x5a2f4c<0x1)throw CliErrors[_0x5a1246(0x1d1)](_0x5a1246(0x1e7));},async 'execute'(_0x4a2594){const _0x4c3864=a118_0x35040d,{items:_0x2f700d,paging:_0x312893}=await listFlowDefinitions(_0x4a2594[_0x4c3864(0x1e8)],{'flowCode':optionalString(_0x4a2594[_0x4c3864(0x1e2)](_0x4c3864(0x1ce))),'flowName':optionalString(_0x4a2594[_0x4c3864(0x1e2)](_0x4c3864(0x1d7))),'flowStatus':optionalString(_0x4a2594[_0x4c3864(0x1e2)]('flow-status')),'datasetCode':optionalString(_0x4a2594[_0x4c3864(0x1e2)]('dataset-code')),'flowType':optionalString(_0x4a2594[_0x4c3864(0x1e2)](_0x4c3864(0x1e1))),'pageNum':_0x4a2594[_0x4c3864(0x1c8)]('page',0x1),'pageSize':_0x4a2594[_0x4c3864(0x1c8)](_0x4c3864(0x1da),0x14)});return{'ok':!![],'data':{'appCode':_0x4a2594['appCode'],'flows':_0x2f700d,'paging':_0x312893},'message':_0x4c3864(0x1e3)+_0x2f700d[_0x4c3864(0x1ca)]+_0x4c3864(0x1c9)};}};function optionalString(_0x5d4cae){const _0x3b02a5=_0x5d4cae['trim']();return _0x3b02a5||undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a119_0x23ab0f=a119_0x3042;(function(_0x821319,_0x366c5e){const _0x586f23=a119_0x3042,_0x170c82=_0x821319();while(!![]){try{const _0x555c58=parseInt(_0x586f23(0x7d))/0x1+-parseInt(_0x586f23(0x80))/0x2*(parseInt(_0x586f23(0x88))/0x3)+-parseInt(_0x586f23(0x7b))/0x4*(parseInt(_0x586f23(0x7a))/0x5)+parseInt(_0x586f23(0x79))/0x6*(-parseInt(_0x586f23(0x8b))/0x7)+parseInt(_0x586f23(0x7f))/0x8+-parseInt(_0x586f23(0x8c))/0x9*(-parseInt(_0x586f23(0x7e))/0xa)+parseInt(_0x586f23(0x81))/0xb;if(_0x555c58===_0x366c5e)break;else _0x170c82['push'](_0x170c82['shift']());}catch(_0x2f7432){_0x170c82['push'](_0x170c82['shift']());}}}(a119_0x388d,0x7c181));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a119_0x388d(){const _0x38a610=['7UtwZtg','27NOZeYz','4001898QxVWhL','2140090tXORNQ','4kvSPbh','publish','73588pSDqlA','3003470VpJQQr','1700792vsoZzC','17354zyjQtg','11639760tveuPk','Publish\x20the\x20current\x20flow\x20definition\x20draft','high-risk-write','Published\x20flow\x20','flowCode','published','flow','222LDMviY','POST','flowName'];a119_0x388d=function(){return _0x38a610;};return a119_0x388d();}import{publishFlowDefinition}from'../../core/api-client.js';import{FLOW_ID_FLAG,FLOW_PATHS,buildFlowIdDryRun,flowSelector,readFlowId}from'../../commands/flow/shared.js';function a119_0x3042(_0x478ba1,_0x4c5808){_0x478ba1=_0x478ba1-0x79;const _0x388d9b=a119_0x388d();let _0x3042f0=_0x388d9b[_0x478ba1];return _0x3042f0;}export const flowPublish={'service':a119_0x23ab0f(0x87),'command':a119_0x23ab0f(0x7c),'description':a119_0x23ab0f(0x82),'risk':a119_0x23ab0f(0x83),'flags':[FLOW_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0xf328fc){readFlowId(_0xf328fc);},async 'dryRun'(_0x17fb16){const _0x3cf21b=a119_0x23ab0f,_0x1759d4=readFlowId(_0x17fb16);return buildFlowIdDryRun(_0x3cf21b(0x7c),FLOW_PATHS[_0x3cf21b(0x7c)],_0x17fb16['appCode'],_0x1759d4,{'id':_0x1759d4,'flowStatus':_0x3cf21b(0x86)});},async 'execute'(_0x5612d1){const _0x98254e=a119_0x23ab0f,_0x25c91f=readFlowId(_0x5612d1),_0x419b86=await publishFlowDefinition(_0x5612d1['appCode'],_0x25c91f);return{'ok':!![],'data':{'operation':'publish','selector':flowSelector(_0x5612d1['appCode'],_0x25c91f,_0x419b86),'before':null,'after':_0x419b86,'dryRun':![],'backend':{'method':_0x98254e(0x89),'path':FLOW_PATHS[_0x98254e(0x7c)]},'warnings':[]},'message':_0x98254e(0x84)+(_0x419b86[_0x98254e(0x8a)]||_0x419b86[_0x98254e(0x85)]||_0x25c91f)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a120_0x4c99a7=a120_0x264c;function a120_0x660e(){const _0x62b341=['length','num','608892jHDcCA','7186248SeXtgY','784636dYxhGm','roleType','displayName','trim','15zCgBnA','filter','str','status','userName','permitCount','nickName','validation','--page\x20must\x20be\x20a\x20positive\x20integer.','1952936JkcApG','2888137NFAxPC','slice','47594ZZwizF','role','181127xvClOL','flagMissing','page-size','\x22\x20is\x20ambiguous\x20(ids:\x20','page','test','Disambiguate\x20with\x20--role\x20<id>.','string','email','roleName','nickname','isSafeInteger','Runtime\x20role\x20name\x20\x22','Run\x20`flow\x20runtime-role-list`\x20to\x20see\x20runtime\x20roles.','5jMAJwJ','remark','number','--page-size\x20must\x20be\x20an\x20integer\x20between\x201\x20and\x20100.','userId','username','Pass\x20--role\x20<id|name>.','Runtime\x20role\x20id\x20or\x20exact\x20role\x20name','Page\x20size\x20(1-100)'];a120_0x660e=function(){return _0x62b341;};return a120_0x660e();}(function(_0x51d394,_0x555022){const _0x16dc0f=a120_0x264c,_0x1648d2=_0x51d394();while(!![]){try{const _0x5d53ce=parseInt(_0x16dc0f(0xe4))/0x1+-parseInt(_0x16dc0f(0xe2))/0x2*(parseInt(_0x16dc0f(0xd6))/0x3)+-parseInt(_0x16dc0f(0xd2))/0x4*(-parseInt(_0x16dc0f(0xf2))/0x5)+parseInt(_0x16dc0f(0xd0))/0x6+parseInt(_0x16dc0f(0xe0))/0x7+parseInt(_0x16dc0f(0xdf))/0x8+-parseInt(_0x16dc0f(0xd1))/0x9;if(_0x5d53ce===_0x555022)break;else _0x1648d2['push'](_0x1648d2['shift']());}catch(_0x5ddc3e){_0x1648d2['push'](_0x1648d2['shift']());}}}(a120_0x660e,0x353a3));import{CliErrors}from'../../errors.js';export const FLOW_RUNTIME_PAGE_FLAG={'name':a120_0x4c99a7(0xe8),'type':a120_0x4c99a7(0xf4),'description':'Page\x20index\x20(1-based)','default':0x1};export const FLOW_RUNTIME_PAGE_SIZE_FLAG={'name':a120_0x4c99a7(0xe6),'type':a120_0x4c99a7(0xf4),'description':a120_0x4c99a7(0xcd),'default':0x14};export const FLOW_RUNTIME_ROLE_REF_FLAG={'name':a120_0x4c99a7(0xe3),'type':a120_0x4c99a7(0xeb),'required':!![],'description':a120_0x4c99a7(0xcc)};export function readRuntimePagination(_0x55dbfc){const _0x54e613=a120_0x4c99a7,_0x3193d1=_0x55dbfc[_0x54e613(0xcf)]('page',0x1),_0x3b6ca2=_0x55dbfc[_0x54e613(0xcf)](_0x54e613(0xe6),0x14);if(!Number[_0x54e613(0xef)](_0x3193d1)||_0x3193d1<0x1)throw CliErrors['validation'](_0x54e613(0xde));if(!Number[_0x54e613(0xef)](_0x3b6ca2)||_0x3b6ca2<0x1||_0x3b6ca2>0x64)throw CliErrors['validation'](_0x54e613(0xc8));return{'page':_0x3193d1,'pageSize':_0x3b6ca2};}export function paginateRuntimeItems(_0x16e814,_0x34686b,_0x8356cf){const _0x1e96ef=a120_0x4c99a7,_0x494dc8=(_0x34686b-0x1)*_0x8356cf;return{'items':_0x16e814[_0x1e96ef(0xe1)](_0x494dc8,_0x494dc8+_0x8356cf),'paging':{'currentPage':_0x34686b,'pageSize':_0x8356cf,'totalCount':_0x16e814[_0x1e96ef(0xce)]}};}export function projectRuntimeRole(_0x54648e){const _0x4e400e=a120_0x4c99a7;return{'id':_0x54648e['id'],'roleName':_0x54648e[_0x4e400e(0xed)]??null,'roleType':_0x54648e[_0x4e400e(0xd3)]??null,'remark':_0x54648e[_0x4e400e(0xf3)]??null,'userCount':_0x54648e['userCount']??0x0,'permitCount':_0x54648e[_0x4e400e(0xdb)]??0x0};}export function projectRuntimeUser(_0x29c6bc){const _0x5f4da8=a120_0x4c99a7,_0x33d569=normalizeRuntimeUserId(_0x29c6bc['code']);if(!_0x33d569)return null;return{'userId':_0x33d569,'username':_0x29c6bc[_0x5f4da8(0xda)]??null,'nickname':_0x29c6bc[_0x5f4da8(0xdc)]??null,'displayName':_0x29c6bc[_0x5f4da8(0xd4)]??null,'email':_0x29c6bc[_0x5f4da8(0xec)]??null,'status':_0x29c6bc[_0x5f4da8(0xd9)]??null};}export function projectRuntimeRoleMember(_0x3ec055){const _0x3d118a=a120_0x4c99a7,_0x581eeb=normalizeRuntimeUserId(_0x3ec055[_0x3d118a(0xc9)]);if(!_0x581eeb)return null;return{'userId':_0x581eeb,'username':_0x3ec055[_0x3d118a(0xca)]??null,'nickname':_0x3ec055[_0x3d118a(0xee)]??null};}export function readRuntimeRoleRef(_0x14c39a){const _0x3953e4=a120_0x4c99a7,_0x33ebe2=_0x14c39a[_0x3953e4(0xd8)](_0x3953e4(0xe3))['trim']();if(!_0x33ebe2)throw CliErrors[_0x3953e4(0xe5)](_0x3953e4(0xe3),_0x3953e4(0xcb));return _0x33ebe2;}export function resolveRuntimeRoleGroup(_0x4468fe,_0xe8c1be,_0x6aa373){const _0x56767f=a120_0x4c99a7,_0x532cf7=/^\d+$/[_0x56767f(0xe9)](_0xe8c1be)?_0x6aa373[_0x56767f(0xd7)](_0xd9342a=>_0xd9342a['id']===Number(_0xe8c1be)):_0x6aa373[_0x56767f(0xd7)](_0x81ac52=>_0x81ac52[_0x56767f(0xed)]===_0xe8c1be);if(_0x532cf7[_0x56767f(0xce)]===0x0)throw CliErrors[_0x56767f(0xdd)]('Runtime\x20role\x20\x22'+_0xe8c1be+'\x22\x20not\x20found\x20in\x20app\x20'+_0x4468fe+'.',_0x56767f(0xf1));if(_0x532cf7[_0x56767f(0xce)]>0x1){const _0x396982=_0x532cf7['map'](_0x31baff=>_0x31baff['id'])['join'](',\x20');throw CliErrors[_0x56767f(0xdd)](_0x56767f(0xf0)+_0xe8c1be+_0x56767f(0xe7)+_0x396982+').',_0x56767f(0xea));}return _0x532cf7[0x0];}function a120_0x264c(_0x225bff,_0x4acccb){_0x225bff=_0x225bff-0xc8;const _0x660e01=a120_0x660e();let _0x264c77=_0x660e01[_0x225bff];return _0x264c77;}function normalizeRuntimeUserId(_0x57de75){const _0x2bbca2=a120_0x4c99a7;if(typeof _0x57de75!=='string'&&typeof _0x57de75!==_0x2bbca2(0xf4))return null;const _0x9cd693=String(_0x57de75)[_0x2bbca2(0xd5)]();return _0x9cd693||null;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a121_0x2422(){const _0x56536a=['14198zsQcZo','5470587keFkjR','6nmYILt','keyword','59712040tiFhXy','read','str','Optional\x20runtime\x20role-name\x20keyword','trim','flow','List\x20runtime\x20app\x20roles\x20for\x20approval\x20assignee\x20selection','appCode','1440026XSHhih','70uvISMH','map','9899432XABzYX','3110544EyGbyI','string','61xUJtLv','\x20runtime\x20role(s)','467816BdSDst','length','11GXblxS'];a121_0x2422=function(){return _0x56536a;};return a121_0x2422();}const a121_0x282125=a121_0x3bdc;function a121_0x3bdc(_0x24b833,_0x361f39){_0x24b833=_0x24b833-0xcb;const _0x24221f=a121_0x2422();let _0x3bdcdd=_0x24221f[_0x24b833];return _0x3bdcdd;}(function(_0x2cbcf7,_0x53bb97){const _0x3060c6=a121_0x3bdc,_0x3e7002=_0x2cbcf7();while(!![]){try{const _0x3cf13e=-parseInt(_0x3060c6(0xd7))/0x1*(parseInt(_0x3060c6(0xdc))/0x2)+-parseInt(_0x3060c6(0xdd))/0x3+parseInt(_0x3060c6(0xd9))/0x4*(-parseInt(_0x3060c6(0xd2))/0x5)+parseInt(_0x3060c6(0xde))/0x6*(-parseInt(_0x3060c6(0xd1))/0x7)+-parseInt(_0x3060c6(0xd4))/0x8+parseInt(_0x3060c6(0xd5))/0x9+parseInt(_0x3060c6(0xe0))/0xa*(parseInt(_0x3060c6(0xdb))/0xb);if(_0x3cf13e===_0x53bb97)break;else _0x3e7002['push'](_0x3e7002['shift']());}catch(_0x43ae71){_0x3e7002['push'](_0x3e7002['shift']());}}}(a121_0x2422,0xef325));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{FLOW_RUNTIME_PAGE_FLAG,FLOW_RUNTIME_PAGE_SIZE_FLAG,projectRuntimeRole,readRuntimePagination}from'../../commands/flow/runtime-resources-shared.js';import{listApprovalRuntimeRoles}from'../../core/api-client.js';export const flowRuntimeRoleList={'service':a121_0x282125(0xce),'command':'runtime-role-list','description':a121_0x282125(0xcf),'risk':a121_0x282125(0xe1),'flags':[{'name':a121_0x282125(0xdf),'type':a121_0x282125(0xd6),'description':a121_0x282125(0xcc)},FLOW_RUNTIME_PAGE_FLAG,FLOW_RUNTIME_PAGE_SIZE_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x4305eb){readRuntimePagination(_0x4305eb);},async 'execute'(_0x406129){const _0x26e7bf=a121_0x282125,{page:_0x36aace,pageSize:_0x358970}=readRuntimePagination(_0x406129),_0x519fad=_0x406129[_0x26e7bf(0xcb)](_0x26e7bf(0xdf))[_0x26e7bf(0xcd)](),{items:_0x480cc7,paging:_0x19e1c5}=await listApprovalRuntimeRoles(_0x406129[_0x26e7bf(0xd0)],{..._0x519fad?{'roleName':_0x519fad}:{},'currentPage':_0x36aace,'pageSize':_0x358970}),_0x271275=_0x480cc7[_0x26e7bf(0xd3)](projectRuntimeRole);return{'ok':!![],'data':{'appCode':_0x406129[_0x26e7bf(0xd0)],'scope':'runtime',..._0x519fad?{'keyword':_0x519fad}:{},'roles':_0x271275,'paging':_0x19e1c5},'message':'Found\x20'+_0x271275[_0x26e7bf(0xda)]+_0x26e7bf(0xd8)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a122_0x3f0667=a122_0xd3c1;(function(_0x1eb514,_0x138108){const _0x3574f0=a122_0xd3c1,_0x436a38=_0x1eb514();while(!![]){try{const _0x2500ea=parseInt(_0x3574f0(0x10c))/0x1*(-parseInt(_0x3574f0(0x110))/0x2)+-parseInt(_0x3574f0(0x101))/0x3+parseInt(_0x3574f0(0x10b))/0x4+parseInt(_0x3574f0(0xfe))/0x5+parseInt(_0x3574f0(0x103))/0x6+-parseInt(_0x3574f0(0x10f))/0x7+parseInt(_0x3574f0(0x10d))/0x8;if(_0x2500ea===_0x138108)break;else _0x436a38['push'](_0x436a38['shift']());}catch(_0x3ce74b){_0x436a38['push'](_0x436a38['shift']());}}}(a122_0x550b,0xb9919));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{FLOW_RUNTIME_PAGE_FLAG,FLOW_RUNTIME_PAGE_SIZE_FLAG,FLOW_RUNTIME_ROLE_REF_FLAG,paginateRuntimeItems,projectRuntimeRoleMember,readRuntimePagination,readRuntimeRoleRef,resolveRuntimeRoleGroup}from'../../commands/flow/runtime-resources-shared.js';import{listApprovalRuntimeRoleUsers}from'../../core/api-client.js';function a122_0xd3c1(_0x29198d,_0x4d3833){_0x29198d=_0x29198d-0xfc;const _0x550b3c=a122_0x550b();let _0xd3c19b=_0x550b3c[_0x29198d];return _0xd3c19b;}function a122_0x550b(){const _0x48568a=['userList','filter','read','1784950pvRfuf','paging','runtime-role-user-list','983553wdrpMy','\x20runtime\x20member(s)\x20in\x20role\x20','4345200QDEzYx','List\x20members\x20of\x20one\x20runtime\x20app\x20role\x20for\x20approval\x20verification','appCode','roleName','flow','map','runtime','roleType','5129520dNaUQO','10397GbcZjN','3774536VAIIWa','length','4008102XvdmcJ','226cukyJb','Found\x20'];a122_0x550b=function(){return _0x48568a;};return a122_0x550b();}export const flowRuntimeRoleUserList={'service':a122_0x3f0667(0x107),'command':a122_0x3f0667(0x100),'description':a122_0x3f0667(0x104),'risk':a122_0x3f0667(0xfd),'flags':[FLOW_RUNTIME_ROLE_REF_FLAG,FLOW_RUNTIME_PAGE_FLAG,FLOW_RUNTIME_PAGE_SIZE_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x3c8100){readRuntimeRoleRef(_0x3c8100),readRuntimePagination(_0x3c8100);},async 'execute'(_0x24d786){const _0x298be1=a122_0x3f0667,_0x10eab8=resolveRuntimeRoleGroup(_0x24d786['appCode'],readRuntimeRoleRef(_0x24d786),await listApprovalRuntimeRoleUsers(_0x24d786[_0x298be1(0x105)])),_0x32fd47=(_0x10eab8[_0x298be1(0x112)]??[])[_0x298be1(0x108)](projectRuntimeRoleMember)[_0x298be1(0xfc)](_0x39521b=>_0x39521b!==null),{page:_0x30c8b0,pageSize:_0x174a4d}=readRuntimePagination(_0x24d786),_0x13c465=paginateRuntimeItems(_0x32fd47,_0x30c8b0,_0x174a4d);return{'ok':!![],'data':{'appCode':_0x24d786[_0x298be1(0x105)],'scope':_0x298be1(0x109),'role':{'id':_0x10eab8['id'],'roleName':_0x10eab8[_0x298be1(0x106)]??null,'roleType':_0x10eab8[_0x298be1(0x10a)]??null},'users':_0x13c465['items'],'paging':_0x13c465[_0x298be1(0xff)]},'message':_0x298be1(0x111)+_0x32fd47[_0x298be1(0x10e)]+_0x298be1(0x102)+(_0x10eab8[_0x298be1(0x106)]??_0x10eab8['id'])};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a123_0x4ff172=a123_0x37f2;(function(_0xebd5ee,_0x30bb7e){const _0x4cd70b=a123_0x37f2,_0x39bbc6=_0xebd5ee();while(!![]){try{const _0x10fcdf=-parseInt(_0x4cd70b(0x194))/0x1*(parseInt(_0x4cd70b(0x1a4))/0x2)+parseInt(_0x4cd70b(0x19d))/0x3*(-parseInt(_0x4cd70b(0x1a0))/0x4)+parseInt(_0x4cd70b(0x1a5))/0x5*(-parseInt(_0x4cd70b(0x1a7))/0x6)+parseInt(_0x4cd70b(0x19f))/0x7*(-parseInt(_0x4cd70b(0x1b1))/0x8)+-parseInt(_0x4cd70b(0x1ae))/0x9*(-parseInt(_0x4cd70b(0x195))/0xa)+-parseInt(_0x4cd70b(0x19e))/0xb*(parseInt(_0x4cd70b(0x1af))/0xc)+parseInt(_0x4cd70b(0x1a2))/0xd;if(_0x10fcdf===_0x30bb7e)break;else _0x39bbc6['push'](_0x39bbc6['shift']());}catch(_0x42cd6d){_0x39bbc6['push'](_0x39bbc6['shift']());}}}(a123_0x54d3,0xebe02));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{FLOW_RUNTIME_PAGE_FLAG,FLOW_RUNTIME_PAGE_SIZE_FLAG,paginateRuntimeItems,projectRuntimeUser,readRuntimePagination}from'../../commands/flow/runtime-resources-shared.js';function a123_0x54d3(){const _0x2b5378=['User\x20id,\x20username,\x20nickname,\x20display\x20name,\x20or\x20email\x20keyword','appCode','toLowerCase','flow','trim','Found\x20','some','2292twaqBL','3756698xqpBDa','9793TUqxXm','424ZlMXGf','Search\x20runtime\x20app\x20users\x20for\x20approval\x20assignee\x20selection','45361563WsQtDR','map','2LSFHsQ','7571710NFSqEO','userName','6UKTNTr','length','flagMissing','email','str','runtime-user-search','filter','9PrOrfA','36wMfYsa','keyword','1384avNDDb','displayName','includes','paging','read','Pass\x20--keyword\x20<text>.','\x20runtime\x20app\x20user(s)\x20matching\x20\x22','code','671050fUDoeP','10097520YXWNlH'];a123_0x54d3=function(){return _0x2b5378;};return a123_0x54d3();}import{listApprovalRuntimeUsers}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a123_0x37f2(_0x4e82f4,_0x490a4d){_0x4e82f4=_0x4e82f4-0x194;const _0x54d359=a123_0x54d3();let _0x37f2d5=_0x54d359[_0x4e82f4];return _0x37f2d5;}export const flowRuntimeUserSearch={'service':a123_0x4ff172(0x199),'command':a123_0x4ff172(0x1ac),'description':a123_0x4ff172(0x1a1),'risk':a123_0x4ff172(0x1b5),'flags':[{'name':a123_0x4ff172(0x1b0),'type':'string','required':!![],'description':a123_0x4ff172(0x196)},FLOW_RUNTIME_PAGE_FLAG,FLOW_RUNTIME_PAGE_SIZE_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0xfdf7bb){const _0x2d6131=a123_0x4ff172;if(!_0xfdf7bb['str'](_0x2d6131(0x1b0))['trim']())throw CliErrors[_0x2d6131(0x1a9)](_0x2d6131(0x1b0),_0x2d6131(0x1b6));readRuntimePagination(_0xfdf7bb);},async 'execute'(_0x5ef85b){const _0x1ea212=a123_0x4ff172,_0x367748=_0x5ef85b[_0x1ea212(0x1ab)](_0x1ea212(0x1b0))[_0x1ea212(0x19a)](),_0xb38914=_0x367748[_0x1ea212(0x198)](),_0x32c6c1=(await listApprovalRuntimeUsers(_0x5ef85b['appCode']))[_0x1ea212(0x1ad)](_0x1801dc=>[_0x1801dc[_0x1ea212(0x1b8)],_0x1801dc[_0x1ea212(0x1a6)],_0x1801dc['nickName'],_0x1801dc[_0x1ea212(0x1b2)],_0x1801dc[_0x1ea212(0x1aa)]][_0x1ea212(0x19c)](_0x3d65c9=>_0x3d65c9!==null&&_0x3d65c9!==undefined&&String(_0x3d65c9)[_0x1ea212(0x198)]()[_0x1ea212(0x1b3)](_0xb38914)))[_0x1ea212(0x1a3)](projectRuntimeUser)[_0x1ea212(0x1ad)](_0x485e5b=>_0x485e5b!==null),{page:_0x24a5e9,pageSize:_0x192c8b}=readRuntimePagination(_0x5ef85b),_0x585803=paginateRuntimeItems(_0x32c6c1,_0x24a5e9,_0x192c8b);return{'ok':!![],'data':{'appCode':_0x5ef85b[_0x1ea212(0x197)],'scope':'runtime','keyword':_0x367748,'users':_0x585803['items'],'paging':_0x585803[_0x1ea212(0x1b4)]},'message':_0x1ea212(0x19b)+_0x32c6c1[_0x1ea212(0x1a8)]+_0x1ea212(0x1b7)+_0x367748+'\x22'};}};
|