@lovrabet/rabetbase-cli 2.5.3-beta.3 → 2.5.3-beta.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (361) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/api-group.js +1 -1
  3. package/lib/api/fetch-model-list.js +1 -1
  4. package/lib/api/generate-api-file.js +1 -1
  5. package/lib/api/generate-sdk-config-file.js +1 -1
  6. package/lib/api/legacy-api-file.js +1 -1
  7. package/lib/api/model-registry-file.js +1 -1
  8. package/lib/api/model-registry-scaffold.js +1 -1
  9. package/lib/api/model-source.js +1 -1
  10. package/lib/auth/auth-server-ui.js +1 -1
  11. package/lib/auth/auth-server.js +1 -1
  12. package/lib/auth/constant.js +1 -1
  13. package/lib/auth/get-cookie.js +1 -1
  14. package/lib/auth/get-session-user.js +1 -1
  15. package/lib/auth/is-session-valid.js +1 -1
  16. package/lib/auth/login-success-html.js +1 -1
  17. package/lib/auth/logout.js +1 -1
  18. package/lib/cli-flags.js +1 -1
  19. package/lib/cli.js +1 -1
  20. package/lib/commands/api/generate.js +1 -1
  21. package/lib/commands/api/index.js +1 -1
  22. package/lib/commands/api/list.js +1 -1
  23. package/lib/commands/api/pull.js +1 -1
  24. package/lib/commands/api/shared.js +1 -1
  25. package/lib/commands/app/index.js +1 -1
  26. package/lib/commands/app/list.js +1 -1
  27. package/lib/commands/app/members-list.js +1 -1
  28. package/lib/commands/app/remote-directory.js +1 -1
  29. package/lib/commands/app/shared.js +1 -1
  30. package/lib/commands/app-config/delete.js +1 -1
  31. package/lib/commands/app-config/get.js +1 -1
  32. package/lib/commands/app-config/index.js +1 -1
  33. package/lib/commands/app-config/list.js +1 -1
  34. package/lib/commands/app-config/set.js +1 -1
  35. package/lib/commands/app-config/shared.js +1 -1
  36. package/lib/commands/auth/index.js +1 -1
  37. package/lib/commands/bff/create.js +1 -1
  38. package/lib/commands/bff/delete.js +1 -1
  39. package/lib/commands/bff/detail.js +1 -1
  40. package/lib/commands/bff/index.js +1 -1
  41. package/lib/commands/bff/list.js +1 -1
  42. package/lib/commands/bff/logs.js +1 -1
  43. package/lib/commands/bff/pull.js +1 -1
  44. package/lib/commands/bff/push.js +1 -1
  45. package/lib/commands/bff/status.js +1 -1
  46. package/lib/commands/cli-skill/index.js +1 -1
  47. package/lib/commands/cli-update.js +1 -1
  48. package/lib/commands/codegen/index.js +1 -1
  49. package/lib/commands/codegen/sdk.js +1 -1
  50. package/lib/commands/codegen/sql.js +1 -1
  51. package/lib/commands/common/app-registry.js +1 -1
  52. package/lib/commands/common/app-selector.js +1 -1
  53. package/lib/commands/common/async-task.js +1 -1
  54. package/lib/commands/common/dry-run.js +1 -1
  55. package/lib/commands/common/flags.js +1 -1
  56. package/lib/commands/common/local-file.js +1 -1
  57. package/lib/commands/common/validate.js +1 -1
  58. package/lib/commands/config/delete.js +1 -1
  59. package/lib/commands/config/get.js +1 -1
  60. package/lib/commands/config/index.js +1 -1
  61. package/lib/commands/config/init.js +1 -1
  62. package/lib/commands/config/list.js +1 -1
  63. package/lib/commands/config/set.js +1 -1
  64. package/lib/commands/config/shared.js +1 -1
  65. package/lib/commands/dataset/batch-design.js +1 -1
  66. package/lib/commands/dataset/business-group-update.js +1 -1
  67. package/lib/commands/dataset/business-groups.js +1 -1
  68. package/lib/commands/dataset/capability.js +1 -1
  69. package/lib/commands/dataset/cross-relation-create.js +1 -1
  70. package/lib/commands/dataset/cross-relation-delete.js +1 -1
  71. package/lib/commands/dataset/cross-relation-list.js +1 -1
  72. package/lib/commands/dataset/cross-relation-shared.js +1 -1
  73. package/lib/commands/dataset/cross-relation-update.js +1 -1
  74. package/lib/commands/dataset/delete.js +1 -1
  75. package/lib/commands/dataset/detail.js +1 -1
  76. package/lib/commands/dataset/extend-update.js +1 -1
  77. package/lib/commands/dataset/field-restore.js +1 -1
  78. package/lib/commands/dataset/field-update.js +1 -1
  79. package/lib/commands/dataset/generate.js +1 -1
  80. package/lib/commands/dataset/index.js +1 -1
  81. package/lib/commands/dataset/list.js +1 -1
  82. package/lib/commands/dataset/operations.js +1 -1
  83. package/lib/commands/dataset/relation-audit.js +1 -1
  84. package/lib/commands/dataset/relation-create.js +1 -1
  85. package/lib/commands/dataset/relation-delete.js +1 -1
  86. package/lib/commands/dataset/relation-shared.js +1 -1
  87. package/lib/commands/dataset/relation-update.js +1 -1
  88. package/lib/commands/dataset/relations.js +1 -1
  89. package/lib/commands/dataset/rename.js +1 -1
  90. package/lib/commands/dataset/restore.js +1 -1
  91. package/lib/commands/dataset/user-deleted-field-list.js +1 -1
  92. package/lib/commands/db/analysis-batching.js +1 -1
  93. package/lib/commands/db/analyze-batch-plan.js +1 -1
  94. package/lib/commands/db/analyze-cancel.js +1 -1
  95. package/lib/commands/db/analyze-start.js +1 -1
  96. package/lib/commands/db/analyze-status.js +1 -1
  97. package/lib/commands/db/create.js +1 -1
  98. package/lib/commands/db/delete.js +1 -1
  99. package/lib/commands/db/detail.js +1 -1
  100. package/lib/commands/db/diff-refresh-start.js +1 -1
  101. package/lib/commands/db/diff-refresh-status.js +1 -1
  102. package/lib/commands/db/diff.js +1 -1
  103. package/lib/commands/db/index.js +1 -1
  104. package/lib/commands/db/list.js +1 -1
  105. package/lib/commands/db/shared.js +1 -1
  106. package/lib/commands/db/table-diff-shared.js +1 -1
  107. package/lib/commands/db/tables.js +1 -1
  108. package/lib/commands/db/test.js +1 -1
  109. package/lib/commands/db/update.js +1 -1
  110. package/lib/commands/deployment/index.js +1 -1
  111. package/lib/commands/deployment/sync-all.js +1 -1
  112. package/lib/commands/deployment/sync-jobs.js +1 -1
  113. package/lib/commands/deployment/sync-status.js +1 -1
  114. package/lib/commands/doctor.js +1 -1
  115. package/lib/commands/file/index.js +1 -1
  116. package/lib/commands/flow/create.js +1 -1
  117. package/lib/commands/flow/detail.js +1 -1
  118. package/lib/commands/flow/index.js +1 -1
  119. package/lib/commands/flow/list.js +1 -1
  120. package/lib/commands/flow/publish.js +1 -1
  121. package/lib/commands/flow/runtime-resources-shared.js +1 -1
  122. package/lib/commands/flow/runtime-role-list.js +1 -1
  123. package/lib/commands/flow/runtime-role-user-list.js +1 -1
  124. package/lib/commands/flow/runtime-user-search.js +1 -1
  125. package/lib/commands/flow/shared.js +1 -1
  126. package/lib/commands/flow/update.js +1 -1
  127. package/lib/commands/flow/validate.js +1 -1
  128. package/lib/commands/instant-api-policy/current.js +1 -1
  129. package/lib/commands/instant-api-policy/index.js +1 -1
  130. package/lib/commands/instant-api-policy/init.js +1 -1
  131. package/lib/commands/instant-api-policy/publish.js +1 -1
  132. package/lib/commands/instant-api-policy/pull.js +1 -1
  133. package/lib/commands/instant-api-policy/revision.js +1 -1
  134. package/lib/commands/instant-api-policy/revisions.js +1 -1
  135. package/lib/commands/instant-api-policy/rollback.js +1 -1
  136. package/lib/commands/instant-api-policy/shared.js +1 -1
  137. package/lib/commands/instant-api-policy/validate.js +1 -1
  138. package/lib/commands/issue/index.js +1 -1
  139. package/lib/commands/issue/nudge.js +1 -1
  140. package/lib/commands/issue/report.js +1 -1
  141. package/lib/commands/issue/shared.js +1 -1
  142. package/lib/commands/kb/create.js +1 -1
  143. package/lib/commands/kb/delete.js +1 -1
  144. package/lib/commands/kb/detail.js +1 -1
  145. package/lib/commands/kb/index.js +1 -1
  146. package/lib/commands/kb/list.js +1 -1
  147. package/lib/commands/kb/search.js +1 -1
  148. package/lib/commands/kb/shared.js +1 -1
  149. package/lib/commands/kb/update.js +1 -1
  150. package/lib/commands/logs/index.js +1 -1
  151. package/lib/commands/menu/asset-update.js +1 -1
  152. package/lib/commands/menu/delete.js +1 -1
  153. package/lib/commands/menu/external-link-create.js +1 -1
  154. package/lib/commands/menu/external-link-update.js +1 -1
  155. package/lib/commands/menu/group-create.js +1 -1
  156. package/lib/commands/menu/group-update.js +1 -1
  157. package/lib/commands/menu/index.js +1 -1
  158. package/lib/commands/menu/list.js +1 -1
  159. package/lib/commands/menu/move.js +1 -1
  160. package/lib/commands/menu/regroup-start.js +1 -1
  161. package/lib/commands/menu/rename.js +1 -1
  162. package/lib/commands/menu/shared/compare-table.js +1 -1
  163. package/lib/commands/menu/shared/delete-plan.js +1 -1
  164. package/lib/commands/menu/shared/facts.js +1 -1
  165. package/lib/commands/menu/shared/index.js +1 -1
  166. package/lib/commands/menu/shared/inquirer.js +1 -1
  167. package/lib/commands/menu/shared/local-pages.js +1 -1
  168. package/lib/commands/menu/shared/logic.js +1 -1
  169. package/lib/commands/menu/shared/mutations.js +1 -1
  170. package/lib/commands/menu/shared/service.js +1 -1
  171. package/lib/commands/menu/shared/sync-core.js +1 -1
  172. package/lib/commands/menu/shared/update-core.js +1 -1
  173. package/lib/commands/menu/shared/valid-url.js +1 -1
  174. package/lib/commands/menu/sync.js +1 -1
  175. package/lib/commands/menu/visibility-update.js +1 -1
  176. package/lib/commands/notification/config-create.js +1 -1
  177. package/lib/commands/notification/config-delete.js +1 -1
  178. package/lib/commands/notification/config-list.js +1 -1
  179. package/lib/commands/notification/config-update.js +1 -1
  180. package/lib/commands/notification/index.js +1 -1
  181. package/lib/commands/notification/shared.js +1 -1
  182. package/lib/commands/ocr/index.js +1 -1
  183. package/lib/commands/page/create.js +1 -1
  184. package/lib/commands/page/custom/detail.js +1 -1
  185. package/lib/commands/page/custom/list.js +1 -1
  186. package/lib/commands/page/custom/publish.js +1 -1
  187. package/lib/commands/page/custom/shared.js +1 -1
  188. package/lib/commands/page/custom/syntax.js +1 -1
  189. package/lib/commands/page/custom/update.js +1 -1
  190. package/lib/commands/page/data-list-status.js +1 -1
  191. package/lib/commands/page/generate-start.js +1 -1
  192. package/lib/commands/page/generate-status.js +1 -1
  193. package/lib/commands/page/index.js +1 -1
  194. package/lib/commands/page/pull.js +1 -1
  195. package/lib/commands/page/push.js +1 -1
  196. package/lib/commands/page/relation-audit.js +1 -1
  197. package/lib/commands/page/restore.js +1 -1
  198. package/lib/commands/page/shared.js +1 -1
  199. package/lib/commands/page/sync.js +1 -1
  200. package/lib/commands/project/api-architecture-upgrade.js +1 -1
  201. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  202. package/lib/commands/project/create/format-elapsed.js +1 -1
  203. package/lib/commands/project/create/main.js +1 -1
  204. package/lib/commands/project/create/materialize-project-template.js +1 -1
  205. package/lib/commands/project/create/project-name.js +1 -1
  206. package/lib/commands/project/create/project-template-archive.js +1 -1
  207. package/lib/commands/project/create/project-template-path.js +1 -1
  208. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  209. package/lib/commands/project/create/use-format-code.js +1 -1
  210. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  211. package/lib/commands/project/domain-routing-sync.js +1 -1
  212. package/lib/commands/project/index.js +1 -1
  213. package/lib/commands/project/upgrade.js +1 -1
  214. package/lib/commands/registry.js +1 -1
  215. package/lib/commands/role/delete.js +1 -1
  216. package/lib/commands/role/detail.js +1 -1
  217. package/lib/commands/role/index.js +1 -1
  218. package/lib/commands/role/list.js +1 -1
  219. package/lib/commands/role/shared.js +1 -1
  220. package/lib/commands/role/update.js +1 -1
  221. package/lib/commands/role/user-add.js +1 -1
  222. package/lib/commands/role/user-remove.js +1 -1
  223. package/lib/commands/role/user-resolve.js +1 -1
  224. package/lib/commands/rule/get.js +1 -1
  225. package/lib/commands/rule/index.js +1 -1
  226. package/lib/commands/rule/list.js +1 -1
  227. package/lib/commands/rule/set.js +1 -1
  228. package/lib/commands/rule/shared.js +1 -1
  229. package/lib/commands/run/index.js +1 -1
  230. package/lib/commands/schema.js +1 -1
  231. package/lib/commands/sql/create.js +1 -1
  232. package/lib/commands/sql/delete.js +1 -1
  233. package/lib/commands/sql/detail.js +1 -1
  234. package/lib/commands/sql/exec.js +1 -1
  235. package/lib/commands/sql/index.js +1 -1
  236. package/lib/commands/sql/list.js +1 -1
  237. package/lib/commands/sql/pull.js +1 -1
  238. package/lib/commands/sql/push.js +1 -1
  239. package/lib/commands/sql/shared.js +1 -1
  240. package/lib/commands/sql/status.js +1 -1
  241. package/lib/commands/sql/validate.js +1 -1
  242. package/lib/commands/task/index.js +1 -1
  243. package/lib/commands/task/status.js +1 -1
  244. package/lib/commands/tenant/index.js +1 -1
  245. package/lib/commands/tenant/members-list.js +1 -1
  246. package/lib/commands/tenant/shared.js +1 -1
  247. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  248. package/lib/commands/user-account/index.js +1 -1
  249. package/lib/commands/workspace/add.js +1 -1
  250. package/lib/commands/workspace/index.js +1 -1
  251. package/lib/commands/workspace/remove.js +1 -1
  252. package/lib/config/domain-config.js +1 -1
  253. package/lib/config/project-domain-routing.js +1 -1
  254. package/lib/config/region-config.js +1 -1
  255. package/lib/config/schema.js +1 -1
  256. package/lib/constant/cdn.d.ts +5 -3
  257. package/lib/constant/cdn.js +1 -1
  258. package/lib/constant/cli.js +1 -1
  259. package/lib/constant/defaults.js +1 -1
  260. package/lib/constant/domain.js +1 -1
  261. package/lib/constant/env.js +1 -1
  262. package/lib/constant/output.js +1 -1
  263. package/lib/constant/paths.js +1 -1
  264. package/lib/constant/region.js +1 -1
  265. package/lib/constant/risk.js +1 -1
  266. package/lib/constant/routing-profile.js +1 -1
  267. package/lib/context/app-resolver.js +1 -1
  268. package/lib/context/auth-resolver.js +1 -1
  269. package/lib/context/config-loader.js +1 -1
  270. package/lib/context.js +1 -1
  271. package/lib/core/alias-resolver.js +1 -1
  272. package/lib/core/api-client.js +1 -1
  273. package/lib/core/bff/config.js +1 -1
  274. package/lib/core/bff/file-system.js +1 -1
  275. package/lib/core/bff/hash.js +1 -1
  276. package/lib/core/bff/hook-directory.js +1 -1
  277. package/lib/core/bff/lock.js +1 -1
  278. package/lib/core/bff/utils.js +1 -1
  279. package/lib/core/cross-db-relation.js +1 -1
  280. package/lib/core/db-resolver.js +1 -1
  281. package/lib/core/flow-config.js +1 -1
  282. package/lib/core/instant-api-policy/config.js +1 -1
  283. package/lib/core/kb-search-client.js +1 -1
  284. package/lib/core/page/file-system.js +1 -1
  285. package/lib/core/page/hash.js +1 -1
  286. package/lib/core/page/lock.js +1 -1
  287. package/lib/core/page/lr-smart-jsx.js +1 -1
  288. package/lib/core/sql-index-auditor.js +1 -1
  289. package/lib/core/sql-sync/config.js +1 -1
  290. package/lib/core/sql-sync/file-system.js +1 -1
  291. package/lib/core/sql-sync/hash.js +1 -1
  292. package/lib/core/sql-sync/lock.js +1 -1
  293. package/lib/core/sql-sync/utils.js +1 -1
  294. package/lib/core/sql-validator.js +1 -1
  295. package/lib/errors.js +1 -1
  296. package/lib/framework/build-all-flags.js +1 -1
  297. package/lib/framework/error-output.js +1 -1
  298. package/lib/framework/explicit-yes.js +1 -1
  299. package/lib/framework/flags.js +1 -1
  300. package/lib/framework/help.js +1 -1
  301. package/lib/framework/index.js +1 -1
  302. package/lib/framework/output.js +1 -1
  303. package/lib/framework/response.js +1 -1
  304. package/lib/framework/runner-alias.js +1 -1
  305. package/lib/framework/runner.js +1 -1
  306. package/lib/framework/schema-export.js +1 -1
  307. package/lib/framework/supported-flags.js +1 -1
  308. package/lib/framework/types.js +1 -1
  309. package/lib/generated/build-info.d.ts +4 -4
  310. package/lib/generated/build-info.js +1 -1
  311. package/lib/generated/official-routing.js +1 -1
  312. package/lib/generated/routing-contract.js +1 -1
  313. package/lib/help.js +1 -1
  314. package/lib/postinstall.js +1 -1
  315. package/lib/runtime/confirmation.js +1 -1
  316. package/lib/runtime/event.js +1 -1
  317. package/lib/runtime/index.js +1 -1
  318. package/lib/runtime/queue.js +1 -1
  319. package/lib/runtime/resolve.js +1 -1
  320. package/lib/skills/builtin-skill.js +1 -1
  321. package/lib/skills/main.js +1 -1
  322. package/lib/skills/npx-skills-add.js +1 -1
  323. package/lib/skills/skill-presence.js +1 -1
  324. package/lib/telemetry/cli-command-trace.js +1 -1
  325. package/lib/telemetry/cli-help-trace.js +1 -1
  326. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  327. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  328. package/lib/telemetry/send-cli-trace-log.js +1 -1
  329. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  330. package/lib/utils/ai_config.js +1 -1
  331. package/lib/utils/apply-jq-filter.js +1 -1
  332. package/lib/utils/cdn-config.js +1 -1
  333. package/lib/utils/check-sdk-version.js +1 -1
  334. package/lib/utils/cli-version-check.js +1 -1
  335. package/lib/utils/cli-version-policy.d.ts +7 -0
  336. package/lib/utils/cli-version-policy.js +1 -1
  337. package/lib/utils/config.js +1 -1
  338. package/lib/utils/entity-with-id.js +1 -1
  339. package/lib/utils/file-utils.js +1 -1
  340. package/lib/utils/guides-cdn.js +1 -1
  341. package/lib/utils/http-client.js +1 -1
  342. package/lib/utils/is-non-interactive.js +1 -1
  343. package/lib/utils/logger.js +1 -1
  344. package/lib/utils/params.js +1 -1
  345. package/lib/utils/platform.js +1 -1
  346. package/lib/utils/sleep.js +1 -1
  347. package/lib/utils/template-replacer.js +1 -1
  348. package/lib/utils/update-notice.js +1 -1
  349. package/lib/utils/version.js +1 -1
  350. package/lib/utils/with-active-cookie.js +1 -1
  351. package/lib/utils/write-cli-side-channel.js +1 -1
  352. package/package.json +3 -1
  353. package/skills/rabetbase/SKILL.md +7 -5
  354. package/skills/rabetbase/guides/backend-function.md +5 -1
  355. package/skills/rabetbase/guides/bff-creation-workflow.md +3 -1
  356. package/skills/rabetbase/guides/cross-database-bff.md +70 -0
  357. package/skills/rabetbase/guides/data-api-guidelines.md +35 -33
  358. package/skills/rabetbase/guides/sql-creation-workflow.md +2 -0
  359. package/skills/rabetbase/references/rabetbase-dataset-cross-relations.md +5 -1
  360. package/skills/rabetbase.manifest.json +4 -3
  361. package/templates/README.md +41 -13
@@ -1 +1 @@
1
- const a108_0x5c0128=a108_0x8919;(function(_0x478940,_0x5db3ad){const _0x1761fc=a108_0x8919,_0x145c2e=_0x478940();while(!![]){try{const _0x5849b2=-parseInt(_0x1761fc(0x143))/0x1+-parseInt(_0x1761fc(0x148))/0x2*(-parseInt(_0x1761fc(0x144))/0x3)+parseInt(_0x1761fc(0x145))/0x4*(parseInt(_0x1761fc(0x150))/0x5)+parseInt(_0x1761fc(0x159))/0x6+parseInt(_0x1761fc(0x154))/0x7+-parseInt(_0x1761fc(0x15b))/0x8+-parseInt(_0x1761fc(0x151))/0x9;if(_0x5849b2===_0x5db3ad)break;else _0x145c2e['push'](_0x145c2e['shift']());}catch(_0x2d0a5f){_0x145c2e['push'](_0x145c2e['shift']());}}}(a108_0x1c18,0x5cfb5));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_0x1c18(){const _0x1398fa=['has','dburl','username','dbParam','2323404FrkRcq','trim','1336696nFpOnB','dbdesc','New\x20host:port','validation','num','skip-connection-test','Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22','Preview\x20the\x20merged\x20database\x20connection\x20update;\x20password\x20redacted','str','New\x20username','update','New\x20connection\x20parameter\x20string','password','dbName','648880ncSDUe','259899KPzYxH','6692ygcRjI','dbDesc','bool','2DTYleB','Current\x20or\x20replacement\x20password.\x20Required\x20when\x20the\x20stored\x20password\x20is\x20masked','New\x20description','[redacted]','New\x20database\x20name','dbUrl','dbname','Update\x20a\x20database\x20connection\x20by\x20merging\x20supplied\x20fields\x20into\x20the\x20current\x20server\x20record.\x20A\x20masked\x20server\x20password\x20requires\x20explicit\x20--password','615NzuBde','677394cNpRny','string','dbparam','4147080gpkVyD'];a108_0x1c18=function(){return _0x1398fa;};return a108_0x1c18();}function a108_0x8919(_0x33fdf9,_0x3e86f0){_0x33fdf9=_0x33fdf9-0x136;const _0x1c183d=a108_0x1c18();let _0x8919b5=_0x1c183d[_0x33fdf9];return _0x8919b5;}import{assertDbLinkConnectionPreflight,sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';const MASKED_PASSWORD_VALUES=new Set(['******',a108_0x5c0128(0x14b)]);function mergeDbLinkUpdate(_0xad4966,_0x2bfe7e){const _0x7296e6=a108_0x5c0128,_0x38e389={..._0xad4966},_0x222ce2=_0x2bfe7e['str'](_0x7296e6(0x141));if(_0x222ce2&&MASKED_PASSWORD_VALUES[_0x7296e6(0x155)](_0x222ce2))throw CliErrors['validation']('--password\x20must\x20contain\x20the\x20real\x20database\x20password,\x20not\x20a\x20masked\x20value.');if(!_0x222ce2&&MASKED_PASSWORD_VALUES[_0x7296e6(0x155)](String(_0xad4966['password']??'')))throw CliErrors[_0x7296e6(0x138)]('The\x20server\x20returned\x20a\x20masked\x20database\x20password.\x20Pass\x20the\x20current\x20or\x20replacement\x20password\x20explicitly\x20with\x20--password\x20to\x20update\x20this\x20connection\x20safely.');const _0x3af4a9=_0x2bfe7e[_0x7296e6(0x13d)]('dbname');if(_0x3af4a9)_0x38e389[_0x7296e6(0x142)]=_0x3af4a9;const _0x2f9bfc=_0x2bfe7e['str'](_0x7296e6(0x156));if(_0x2f9bfc)_0x38e389[_0x7296e6(0x14d)]=_0x2f9bfc[_0x7296e6(0x15a)]();const _0x3a4016=_0x2bfe7e['str'](_0x7296e6(0x157));if(_0x3a4016)_0x38e389[_0x7296e6(0x157)]=_0x3a4016;if(_0x222ce2)_0x38e389['password']=_0x222ce2;const _0x5b5844=_0x2bfe7e[_0x7296e6(0x13d)](_0x7296e6(0x153));if(_0x5b5844)_0x38e389[_0x7296e6(0x158)]=_0x5b5844;const _0x19dd04=_0x2bfe7e[_0x7296e6(0x13d)](_0x7296e6(0x136));if(_0x19dd04)_0x38e389[_0x7296e6(0x146)]=_0x19dd04;return _0x38e389;}export const dbUpdate={'service':'db','command':a108_0x5c0128(0x13f),'description':a108_0x5c0128(0x14f),'risk':'write','flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a108_0x5c0128(0x14e),'type':'string','description':a108_0x5c0128(0x14c)},{'name':a108_0x5c0128(0x156),'type':a108_0x5c0128(0x152),'description':a108_0x5c0128(0x137)},{'name':a108_0x5c0128(0x157),'type':a108_0x5c0128(0x152),'description':a108_0x5c0128(0x13e)},{'name':a108_0x5c0128(0x141),'type':a108_0x5c0128(0x152),'description':a108_0x5c0128(0x149)},{'name':'dbparam','type':'string','description':a108_0x5c0128(0x140)},{'name':'dbdesc','type':a108_0x5c0128(0x152),'description':a108_0x5c0128(0x14a)},SKIP_CONNECTION_TEST_FLAG],async 'validate'(_0x75dd34){const _0x156511=a108_0x5c0128,_0xe116f6=_0x75dd34[_0x156511(0x13d)]('dburl');if(_0xe116f6&&!validateDbUrl(_0xe116f6[_0x156511(0x15a)]()))throw CliErrors[_0x156511(0x138)](_0x156511(0x13b)+_0xe116f6+'\x22');},async 'dryRun'(_0x52325f){const _0x328ff0=a108_0x5c0128,_0x3c56b3=_0x52325f[_0x328ff0(0x139)]('id'),_0x5dd0d6=await getDbLinkInfo(_0x3c56b3),_0x18155a=mergeDbLinkUpdate(_0x5dd0d6,_0x52325f),_0xcdc957=sanitizeDbLinkForOutput(_0x18155a);return{'method':'POST','url':'/smartapi/dblink/update','body':_0xcdc957,'description':_0x328ff0(0x13c),'connectionPreflight':{'enabled':!_0x52325f[_0x328ff0(0x147)](_0x328ff0(0x13a)),'executed':![]}};},async 'execute'(_0x43853a){const _0x574907=a108_0x5c0128,_0x16317b=_0x43853a[_0x574907(0x139)]('id'),_0xc88eec=await getDbLinkInfo(_0x16317b),_0x37446a=mergeDbLinkUpdate(_0xc88eec,_0x43853a);!_0x43853a[_0x574907(0x147)]('skip-connection-test')&&await assertDbLinkConnectionPreflight(_0x37446a);const {id:_0x5db32c,entity:_0x2f81dd}=normalizeEntityWithIdResponse(await updateDbLink(_0x37446a));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x2f81dd),'message':'Updated\x20db\x20link\x20'+(_0x5db32c??_0x16317b)};}};
1
+ const a108_0x4e5355=a108_0x41e8;(function(_0x4ed6f4,_0x5c8a7c){const _0x81887a=a108_0x41e8,_0x3f5ef4=_0x4ed6f4();while(!![]){try{const _0x24d11f=-parseInt(_0x81887a(0x119))/0x1*(-parseInt(_0x81887a(0x114))/0x2)+parseInt(_0x81887a(0xf7))/0x3*(parseInt(_0x81887a(0x10e))/0x4)+-parseInt(_0x81887a(0xf6))/0x5*(parseInt(_0x81887a(0x108))/0x6)+parseInt(_0x81887a(0x117))/0x7*(parseInt(_0x81887a(0xf3))/0x8)+-parseInt(_0x81887a(0x10a))/0x9+parseInt(_0x81887a(0x102))/0xa*(-parseInt(_0x81887a(0xf8))/0xb)+-parseInt(_0x81887a(0x10b))/0xc*(-parseInt(_0x81887a(0x10d))/0xd);if(_0x24d11f===_0x5c8a7c)break;else _0x3f5ef4['push'](_0x3f5ef4['shift']());}catch(_0x2dcc35){_0x3f5ef4['push'](_0x3f5ef4['shift']());}}}(a108_0xe803,0x9847a));import{getDbLinkInfo,updateDbLink}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG,SKIP_CONNECTION_TEST_FLAG}from'../../commands/common/flags.js';import{assertDbLinkConnectionPreflight,sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';const MASKED_PASSWORD_VALUES=new Set([a108_0x4e5355(0x101),a108_0x4e5355(0x107)]);function a108_0xe803(){const _0x23c4ba=['1822365MQoFCY','182076GSzfmO','New\x20connection\x20parameter\x20string','481pEDSIY','1126408TnZxde','dbdesc','dbName','trim','New\x20host:port','dbUrl','55718fFJYmr','skip-connection-test','dburl','891569IvEDfE','Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22','15nLPaCT','Current\x20or\x20replacement\x20password.\x20Required\x20when\x20the\x20stored\x20password\x20is\x20masked','New\x20description','8ycsDkP','password','New\x20username','5yTEtCA','3IdmOaY','4056679gthtVi','bool','has','New\x20database\x20name','Preview\x20the\x20merged\x20database\x20connection\x20update;\x20password\x20redacted','Updated\x20db\x20link\x20','validation','update','username','******','10eJtCQT','Update\x20a\x20database\x20connection\x20by\x20merging\x20supplied\x20fields\x20into\x20the\x20current\x20server\x20record.\x20A\x20masked\x20server\x20password\x20requires\x20explicit\x20--password','dbparam','str','string','[redacted]','1159458wGfdxD','num'];a108_0xe803=function(){return _0x23c4ba;};return a108_0xe803();}function a108_0x41e8(_0x1e7250,_0x4dc10c){_0x1e7250=_0x1e7250-0xf2;const _0xe803d9=a108_0xe803();let _0x41e8cf=_0xe803d9[_0x1e7250];return _0x41e8cf;}function mergeDbLinkUpdate(_0x3d01d9,_0x1bf29e){const _0x2ab8dd=a108_0x4e5355,_0xe6f70b={..._0x3d01d9},_0x1913ef=_0x1bf29e['str'](_0x2ab8dd(0xf4));if(_0x1913ef&&MASKED_PASSWORD_VALUES[_0x2ab8dd(0xfa)](_0x1913ef))throw CliErrors[_0x2ab8dd(0xfe)]('--password\x20must\x20contain\x20the\x20real\x20database\x20password,\x20not\x20a\x20masked\x20value.');if(!_0x1913ef&&MASKED_PASSWORD_VALUES[_0x2ab8dd(0xfa)](String(_0x3d01d9[_0x2ab8dd(0xf4)]??'')))throw CliErrors[_0x2ab8dd(0xfe)]('The\x20server\x20returned\x20a\x20masked\x20database\x20password.\x20Pass\x20the\x20current\x20or\x20replacement\x20password\x20explicitly\x20with\x20--password\x20to\x20update\x20this\x20connection\x20safely.');const _0x456e89=_0x1bf29e[_0x2ab8dd(0x105)]('dbname');if(_0x456e89)_0xe6f70b[_0x2ab8dd(0x110)]=_0x456e89;const _0x4bcf34=_0x1bf29e[_0x2ab8dd(0x105)](_0x2ab8dd(0x116));if(_0x4bcf34)_0xe6f70b[_0x2ab8dd(0x113)]=_0x4bcf34[_0x2ab8dd(0x111)]();const _0x294bd3=_0x1bf29e[_0x2ab8dd(0x105)](_0x2ab8dd(0x100));if(_0x294bd3)_0xe6f70b[_0x2ab8dd(0x100)]=_0x294bd3;if(_0x1913ef)_0xe6f70b[_0x2ab8dd(0xf4)]=_0x1913ef;const _0x5690ed=_0x1bf29e[_0x2ab8dd(0x105)](_0x2ab8dd(0x104));if(_0x5690ed)_0xe6f70b['dbParam']=_0x5690ed;const _0x5754a=_0x1bf29e['str'](_0x2ab8dd(0x10f));if(_0x5754a)_0xe6f70b['dbDesc']=_0x5754a;return _0xe6f70b;}export const dbUpdate={'service':'db','command':a108_0x4e5355(0xff),'description':a108_0x4e5355(0x103),'risk':'write','flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':'dbname','type':'string','description':a108_0x4e5355(0xfb)},{'name':a108_0x4e5355(0x116),'type':a108_0x4e5355(0x106),'description':a108_0x4e5355(0x112)},{'name':a108_0x4e5355(0x100),'type':a108_0x4e5355(0x106),'description':a108_0x4e5355(0xf5)},{'name':a108_0x4e5355(0xf4),'type':a108_0x4e5355(0x106),'description':a108_0x4e5355(0x11a)},{'name':a108_0x4e5355(0x104),'type':a108_0x4e5355(0x106),'description':a108_0x4e5355(0x10c)},{'name':a108_0x4e5355(0x10f),'type':a108_0x4e5355(0x106),'description':a108_0x4e5355(0xf2)},SKIP_CONNECTION_TEST_FLAG],async 'validate'(_0x276d78){const _0xb91bc2=a108_0x4e5355,_0x51e280=_0x276d78[_0xb91bc2(0x105)](_0xb91bc2(0x116));if(_0x51e280&&!validateDbUrl(_0x51e280[_0xb91bc2(0x111)]()))throw CliErrors[_0xb91bc2(0xfe)](_0xb91bc2(0x118)+_0x51e280+'\x22');},async 'dryRun'(_0x385360){const _0x582fdc=a108_0x4e5355,_0xc9f117=_0x385360[_0x582fdc(0x109)]('id'),_0x4ef47e=await getDbLinkInfo(_0xc9f117),_0x2d9728=mergeDbLinkUpdate(_0x4ef47e,_0x385360),_0x3c9174=sanitizeDbLinkForOutput(_0x2d9728);return{'method':'POST','url':'/smartapi/dblink/update','body':_0x3c9174,'description':_0x582fdc(0xfc),'connectionPreflight':{'enabled':!_0x385360[_0x582fdc(0xf9)](_0x582fdc(0x115)),'executed':![]}};},async 'execute'(_0x2a25fb){const _0x59c612=a108_0x4e5355,_0x4845b8=_0x2a25fb['num']('id'),_0x2af2ac=await getDbLinkInfo(_0x4845b8),_0x19a696=mergeDbLinkUpdate(_0x2af2ac,_0x2a25fb);!_0x2a25fb[_0x59c612(0xf9)](_0x59c612(0x115))&&await assertDbLinkConnectionPreflight(_0x19a696);const {id:_0x270a95,entity:_0x21f774}=normalizeEntityWithIdResponse(await updateDbLink(_0x19a696));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x21f774),'message':_0x59c612(0xfd)+(_0x270a95??_0x4845b8)};}};
@@ -1 +1 @@
1
- (function(_0x37acf0,_0xf85e25){const _0x33b9de=a109_0x3197,_0x49fb07=_0x37acf0();while(!![]){try{const _0x32855e=parseInt(_0x33b9de(0x1f8))/0x1+-parseInt(_0x33b9de(0x1f4))/0x2*(parseInt(_0x33b9de(0x1fb))/0x3)+-parseInt(_0x33b9de(0x1fa))/0x4+-parseInt(_0x33b9de(0x1fc))/0x5*(parseInt(_0x33b9de(0x1f5))/0x6)+-parseInt(_0x33b9de(0x1fd))/0x7+-parseInt(_0x33b9de(0x1f9))/0x8*(-parseInt(_0x33b9de(0x1f6))/0x9)+-parseInt(_0x33b9de(0x1f7))/0xa;if(_0x32855e===_0xf85e25)break;else _0x49fb07['push'](_0x49fb07['shift']());}catch(_0x220a4d){_0x49fb07['push'](_0x49fb07['shift']());}}}(a109_0x486f,0x1c5b5));function a109_0x3197(_0x5d098b,_0xf2a126){_0x5d098b=_0x5d098b-0x1f4;const _0x486f96=a109_0x486f();let _0x319722=_0x486f96[_0x5d098b];return _0x319722;}import{deploymentSyncAll}from'../../commands/deployment/sync-all.js';import{deploymentSyncStatus}from'../../commands/deployment/sync-status.js';import{deploymentSyncJobs}from'../../commands/deployment/sync-jobs.js';function a109_0x486f(){const _0xd5c63b=['761400jslNNh','219288GBiNZC','3464KBMsyX','197100TZFkWc','153wFCRYZ','18295feVair','636916wegSfn','592LLRvin','114ZUZdgi','4113qtVyTX'];a109_0x486f=function(){return _0xd5c63b;};return a109_0x486f();}export const deploymentDefinitions=[deploymentSyncAll,deploymentSyncStatus,deploymentSyncJobs];
1
+ function a109_0x383b(){const _0x5a25cc=['40qmvkiv','559956AKQhzn','704NTNJEa','2463950rbZGET','165SVGNWv','117008eheqPs','1113495uPMwMp','28494PCHmhL','117327ZCdjmr','48qzIsPt','2qsUony','35759OluxaG'];a109_0x383b=function(){return _0x5a25cc;};return a109_0x383b();}(function(_0x59a25f,_0x20349c){const _0x1277e2=a109_0x27fa,_0x2ce6d2=_0x59a25f();while(!![]){try{const _0x2613f8=parseInt(_0x1277e2(0xbc))/0x1*(parseInt(_0x1277e2(0xbb))/0x2)+-parseInt(_0x1277e2(0xc3))/0x3+-parseInt(_0x1277e2(0xc2))/0x4*(-parseInt(_0x1277e2(0xbd))/0x5)+-parseInt(_0x1277e2(0xba))/0x6*(-parseInt(_0x1277e2(0xc5))/0x7)+parseInt(_0x1277e2(0xbf))/0x8*(-parseInt(_0x1277e2(0xc4))/0x9)+-parseInt(_0x1277e2(0xc0))/0xa+-parseInt(_0x1277e2(0xc1))/0xb*(-parseInt(_0x1277e2(0xbe))/0xc);if(_0x2613f8===_0x20349c)break;else _0x2ce6d2['push'](_0x2ce6d2['shift']());}catch(_0x2beb26){_0x2ce6d2['push'](_0x2ce6d2['shift']());}}}(a109_0x383b,0x32b18));import{deploymentSyncAll}from'../../commands/deployment/sync-all.js';function a109_0x27fa(_0x29340c,_0x152ead){_0x29340c=_0x29340c-0xba;const _0x383b16=a109_0x383b();let _0x27fa1c=_0x383b16[_0x29340c];return _0x27fa1c;}import{deploymentSyncStatus}from'../../commands/deployment/sync-status.js';import{deploymentSyncJobs}from'../../commands/deployment/sync-jobs.js';export const deploymentDefinitions=[deploymentSyncAll,deploymentSyncStatus,deploymentSyncJobs];
@@ -1 +1 @@
1
- const a110_0x5ecea4=a110_0x5b97;(function(_0x78c582,_0x59d797){const _0x1ddf89=a110_0x5b97,_0x330ec3=_0x78c582();while(!![]){try{const _0x129be2=-parseInt(_0x1ddf89(0xff))/0x1+parseInt(_0x1ddf89(0xe8))/0x2*(-parseInt(_0x1ddf89(0xfe))/0x3)+parseInt(_0x1ddf89(0xfa))/0x4*(-parseInt(_0x1ddf89(0xf6))/0x5)+parseInt(_0x1ddf89(0x101))/0x6*(parseInt(_0x1ddf89(0xf1))/0x7)+parseInt(_0x1ddf89(0xe9))/0x8+-parseInt(_0x1ddf89(0xea))/0x9*(-parseInt(_0x1ddf89(0xf7))/0xa)+parseInt(_0x1ddf89(0xe1))/0xb;if(_0x129be2===_0x59d797)break;else _0x330ec3['push'](_0x330ec3['shift']());}catch(_0x2254d2){_0x330ec3['push'](_0x330ec3['shift']());}}}(a110_0x17a6,0x650c5));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{asDryRunResult}from'../../commands/common/dry-run.js';function a110_0x5b97(_0x2d92f6,_0x1ab923){_0x2d92f6=_0x2d92f6-0xdd;const _0x17a6ed=a110_0x17a6();let _0x5b9717=_0x17a6ed[_0x2d92f6];return _0x5b9717;}import{isPlatformTransportFailure,submitDeploymentMetadataSyncAll}from'../../core/api-client.js';import{CliError,CliErrors}from'../../errors.js';const SUBMIT_PATH=a110_0x5ecea4(0xf0),CONFIRM_FLAG={'name':a110_0x5ecea4(0xf8),'type':'boolean','description':a110_0x5ecea4(0xe0)};export const deploymentSyncAll={'service':a110_0x5ecea4(0xe7),'command':a110_0x5ecea4(0xde),'description':a110_0x5ecea4(0xeb),'risk':a110_0x5ecea4(0xf3),'strictFlags':!![],'structuredErrors':!![],'confirmationDescription':a110_0x5ecea4(0xec),'flags':[CONFIRM_FLAG,APPCODE_FLAG_OPTIONAL],async 'dryRun'(_0x1e546c){const _0x5d6280=a110_0x5ecea4;return asDryRunResult(buildPreview(_0x1e546c['appCode']),{'method':'POST','url':SUBMIT_PATH,'description':_0x5d6280(0xee)});},async 'execute'(_0x5baf94){const _0x480087=a110_0x5ecea4;if(!_0x5baf94[_0x480087(0xdf)](_0x480087(0xf8)))throw CliErrors['validation'](_0x480087(0xf5),_0x480087(0xe4));try{const _0x22126e=await submitDeploymentMetadataSyncAll({'appCode':_0x5baf94['appCode']});if(_0x22126e[_0x480087(0xe3)]==='not_needed')return{'ok':!![],'data':{'operation':'application_deployment_sync','appCode':_0x5baf94[_0x480087(0xe2)],'submitted':![],'outcome':'not_needed'},'message':_0x480087(0x102)};return{'ok':!![],'data':{'operation':'application_deployment_sync','appCode':_0x5baf94['appCode'],'submitted':!![],'outcome':_0x480087(0xe5),'jobId':_0x22126e[_0x480087(0xdd)][_0x480087(0xfc)],'status':_0x22126e['job'][_0x480087(0xf2)]},'message':_0x480087(0xf9)+_0x22126e[_0x480087(0xdd)][_0x480087(0xfc)]+'.'};}catch(_0x15205c){if(!isPlatformTransportFailure(_0x15205c))throw _0x15205c;const _0x40bee0=new CliError('deployment_sync_submit_outcome_unknown',0x2,_0x480087(0xf4),_0x480087(0xe6));Object[_0x480087(0xfb)](_0x40bee0,_0x480087(0xef),{'enumerable':!![],'value':{'operation':'application_deployment_sync','appCode':_0x5baf94[_0x480087(0xe2)],'submitted':null,'outcome':_0x480087(0x100)}});throw _0x40bee0;}}};function a110_0x17a6(){const _0x3a1d86=['jobId','application_deployment_sync','123FdYKGK','625221dViIPW','unknown','48ItLxEr','No\x20deployment\x20synchronization\x20was\x20needed\x20for\x20this\x20app.','job','sync-all','bool','Confirm\x20the\x20administrative\x20backfill\x20or\x20recovery\x20synchronization','20449187PRbvgT','appCode','outcome','Run\x20with\x20--dry-run\x20first,\x20then\x20add\x20--confirm.','submitted','List\x20recent\x20deployment\x20sync\x20jobs\x20before\x20deciding\x20whether\x20to\x20submit\x20again.','deployment','36154KuIEue','917936olMQaA','9eBZAoM','Backfill\x20or\x20recover\x20all\x20server-supported\x20application\x20metadata','Submit\x20an\x20administrative\x20metadata\x20backfill\x20or\x20recovery\x20synchronization.','all_server_supported_metadata','Would\x20submit\x20an\x20administrative\x20deployment\x20metadata\x20backfill\x20or\x20recovery\x20job.','data','/smartapi/data-sync/submit','167048nZJgYB','status','write','Deployment\x20sync\x20submission\x20response\x20was\x20unavailable;\x20job\x20creation\x20is\x20unknown.','--confirm\x20is\x20required\x20to\x20synchronize\x20all\x20application\x20metadata.','2526495xhhWfH','1208990PQRPhA','confirm','Submitted\x20deployment\x20synchronization\x20job\x20','4oBthJC','defineProperty'];a110_0x17a6=function(){return _0x3a1d86;};return a110_0x17a6();}function buildPreview(_0x1e064c){const _0xf749cb=a110_0x5ecea4;return{'operation':_0xf749cb(0xfd),'selector':{'appCode':_0x1e064c,'scope':_0xf749cb(0xed)},'before':null,'after':null,'dryRun':!![],'backend':{'submitted':![],'outcome':'not_submitted'},'warnings':[]};}
1
+ const a110_0x2e8c5a=a110_0x32e9;(function(_0x36ba14,_0x19df49){const _0x4c3897=a110_0x32e9,_0x110764=_0x36ba14();while(!![]){try{const _0x466813=-parseInt(_0x4c3897(0x16f))/0x1*(-parseInt(_0x4c3897(0x156))/0x2)+parseInt(_0x4c3897(0x177))/0x3+-parseInt(_0x4c3897(0x163))/0x4*(parseInt(_0x4c3897(0x168))/0x5)+parseInt(_0x4c3897(0x159))/0x6+-parseInt(_0x4c3897(0x170))/0x7*(-parseInt(_0x4c3897(0x16d))/0x8)+parseInt(_0x4c3897(0x167))/0x9+-parseInt(_0x4c3897(0x160))/0xa;if(_0x466813===_0x19df49)break;else _0x110764['push'](_0x110764['shift']());}catch(_0x5ea311){_0x110764['push'](_0x110764['shift']());}}}(a110_0x28c9,0x5d2f1));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{asDryRunResult}from'../../commands/common/dry-run.js';import{isPlatformTransportFailure,submitDeploymentMetadataSyncAll}from'../../core/api-client.js';import{CliError,CliErrors}from'../../errors.js';function a110_0x32e9(_0x3c23a2,_0x5335e5){_0x3c23a2=_0x3c23a2-0x152;const _0x28c9f3=a110_0x28c9();let _0x32e915=_0x28c9f3[_0x3c23a2];return _0x32e915;}const SUBMIT_PATH=a110_0x2e8c5a(0x15a),CONFIRM_FLAG={'name':a110_0x2e8c5a(0x16b),'type':a110_0x2e8c5a(0x16e),'description':a110_0x2e8c5a(0x155)};export const deploymentSyncAll={'service':a110_0x2e8c5a(0x16a),'command':a110_0x2e8c5a(0x15d),'description':'Backfill\x20or\x20recover\x20all\x20server-supported\x20application\x20metadata','risk':a110_0x2e8c5a(0x15f),'strictFlags':!![],'structuredErrors':!![],'confirmationDescription':a110_0x2e8c5a(0x166),'flags':[CONFIRM_FLAG,APPCODE_FLAG_OPTIONAL],async 'dryRun'(_0x21ee5e){const _0x33f99b=a110_0x2e8c5a;return asDryRunResult(buildPreview(_0x21ee5e[_0x33f99b(0x162)]),{'method':_0x33f99b(0x16c),'url':SUBMIT_PATH,'description':_0x33f99b(0x178)});},async 'execute'(_0x4cacab){const _0x3e1aff=a110_0x2e8c5a;if(!_0x4cacab['bool'](_0x3e1aff(0x16b)))throw CliErrors['validation'](_0x3e1aff(0x153),_0x3e1aff(0x176));try{const _0x151338=await submitDeploymentMetadataSyncAll({'appCode':_0x4cacab['appCode']});if(_0x151338['outcome']==='not_needed')return{'ok':!![],'data':{'operation':_0x3e1aff(0x175),'appCode':_0x4cacab[_0x3e1aff(0x162)],'submitted':![],'outcome':_0x3e1aff(0x165)},'message':_0x3e1aff(0x15b)};return{'ok':!![],'data':{'operation':'application_deployment_sync','appCode':_0x4cacab[_0x3e1aff(0x162)],'submitted':!![],'outcome':_0x3e1aff(0x154),'jobId':_0x151338[_0x3e1aff(0x15c)][_0x3e1aff(0x157)],'status':_0x151338[_0x3e1aff(0x15c)][_0x3e1aff(0x173)]},'message':_0x3e1aff(0x152)+_0x151338[_0x3e1aff(0x15c)]['jobId']+'.'};}catch(_0x2d8d3e){if(!isPlatformTransportFailure(_0x2d8d3e))throw _0x2d8d3e;const _0x173cc3=new CliError(_0x3e1aff(0x174),0x2,_0x3e1aff(0x158),_0x3e1aff(0x15e));Object[_0x3e1aff(0x161)](_0x173cc3,_0x3e1aff(0x164),{'enumerable':!![],'value':{'operation':'application_deployment_sync','appCode':_0x4cacab[_0x3e1aff(0x162)],'submitted':null,'outcome':_0x3e1aff(0x172)}});throw _0x173cc3;}}};function buildPreview(_0x57e3ef){const _0x4a0263=a110_0x2e8c5a;return{'operation':'application_deployment_sync','selector':{'appCode':_0x57e3ef,'scope':_0x4a0263(0x169)},'before':null,'after':null,'dryRun':!![],'backend':{'submitted':![],'outcome':_0x4a0263(0x171)},'warnings':[]};}function a110_0x28c9(){const _0x1a16b2=['sync-all','List\x20recent\x20deployment\x20sync\x20jobs\x20before\x20deciding\x20whether\x20to\x20submit\x20again.','write','7506760osSTUR','defineProperty','appCode','11084DlreLx','data','not_needed','Submit\x20an\x20administrative\x20metadata\x20backfill\x20or\x20recovery\x20synchronization.','6857820PqheWO','1275fmRqzo','all_server_supported_metadata','deployment','confirm','POST','40bhyeQS','boolean','5CDILJs','228277oLUBbz','not_submitted','unknown','status','deployment_sync_submit_outcome_unknown','application_deployment_sync','Run\x20with\x20--dry-run\x20first,\x20then\x20add\x20--confirm.','697956xuQCCl','Would\x20submit\x20an\x20administrative\x20deployment\x20metadata\x20backfill\x20or\x20recovery\x20job.','Submitted\x20deployment\x20synchronization\x20job\x20','--confirm\x20is\x20required\x20to\x20synchronize\x20all\x20application\x20metadata.','submitted','Confirm\x20the\x20administrative\x20backfill\x20or\x20recovery\x20synchronization','39842egidIi','jobId','Deployment\x20sync\x20submission\x20response\x20was\x20unavailable;\x20job\x20creation\x20is\x20unknown.','3490020hiRLTB','/smartapi/data-sync/submit','No\x20deployment\x20synchronization\x20was\x20needed\x20for\x20this\x20app.','job'];a110_0x28c9=function(){return _0x1a16b2;};return a110_0x28c9();}
@@ -1 +1 @@
1
- const a111_0x1d041f=a111_0x4199;function a111_0x14b0(){const _0x24544d=['List\x20application\x20deployment\x20synchronization\x20jobs','isSafeInteger','validation','string','num','str','108426VPZSxG','1535qUqIdl','5484661kCEOpa','Page\x20number','8473580jIWUxJ','806544yqtAhR','page-size','Items\x20per\x20page\x20(maximum\x20100)','status','22325VTeZqd','6kNNcMI','--current-page\x20must\x20be\x20a\x20positive\x20integer.','length','number','appCode','read','Optional\x20server-defined\x20job\x20status\x20filter','46KjbEbM','--page-size\x20must\x20be\x20an\x20integer\x20from\x201\x20to\x20100.','deployment','2964PNSkwq','3143176biLbwx','current-page'];a111_0x14b0=function(){return _0x24544d;};return a111_0x14b0();}(function(_0x2c4fcf,_0x43e001){const _0x1056d5=a111_0x4199,_0x2f95e5=_0x2c4fcf();while(!![]){try{const _0x22ee72=parseInt(_0x1056d5(0x199))/0x1*(parseInt(_0x1056d5(0x1a1))/0x2)+parseInt(_0x1056d5(0x190))/0x3+-parseInt(_0x1056d5(0x1a4))/0x4*(parseInt(_0x1056d5(0x191))/0x5)+parseInt(_0x1056d5(0x19a))/0x6*(parseInt(_0x1056d5(0x192))/0x7)+parseInt(_0x1056d5(0x1a5))/0x8+-parseInt(_0x1056d5(0x195))/0x9+-parseInt(_0x1056d5(0x194))/0xa;if(_0x22ee72===_0x43e001)break;else _0x2f95e5['push'](_0x2f95e5['shift']());}catch(_0x14d1b2){_0x2f95e5['push'](_0x2f95e5['shift']());}}}(a111_0x14b0,0x891a8));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{listDeploymentMetadataSyncJobs}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a111_0x4199(_0x1afd06,_0x19aa8a){_0x1afd06=_0x1afd06-0x18d;const _0x14b034=a111_0x14b0();let _0x419970=_0x14b034[_0x1afd06];return _0x419970;}export const deploymentSyncJobs={'service':a111_0x1d041f(0x1a3),'command':'sync-jobs','description':a111_0x1d041f(0x1a7),'risk':a111_0x1d041f(0x19f),'strictFlags':!![],'structuredErrors':!![],'flags':[{'name':a111_0x1d041f(0x1a6),'type':a111_0x1d041f(0x19d),'default':0x1,'description':a111_0x1d041f(0x193)},{'name':a111_0x1d041f(0x196),'type':'number','default':0xa,'description':a111_0x1d041f(0x197)},{'name':a111_0x1d041f(0x198),'type':a111_0x1d041f(0x18d),'description':a111_0x1d041f(0x1a0)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x588449){const _0x599d97=a111_0x1d041f;readPaging(_0x588449[_0x599d97(0x18e)](_0x599d97(0x1a6),0x1),_0x588449[_0x599d97(0x18e)](_0x599d97(0x196),0xa));},async 'execute'(_0x1d3e1){const _0x2999ab=a111_0x1d041f,{currentPage:_0x7266d4,pageSize:_0x52e20f}=readPaging(_0x1d3e1[_0x2999ab(0x18e)](_0x2999ab(0x1a6),0x1),_0x1d3e1['num'](_0x2999ab(0x196),0xa)),_0x3169b3=_0x1d3e1[_0x2999ab(0x18f)](_0x2999ab(0x198))['trim'](),_0x3bb6eb=await listDeploymentMetadataSyncJobs({'appCode':_0x1d3e1[_0x2999ab(0x19e)],'currentPage':_0x7266d4,'pageSize':_0x52e20f,..._0x3169b3?{'status':_0x3169b3}:{}});return{'ok':!![],'data':{'appCode':_0x1d3e1[_0x2999ab(0x19e)],..._0x3bb6eb},'message':'Found\x20'+_0x3bb6eb['items'][_0x2999ab(0x19c)]+'\x20deployment\x20synchronization\x20job(s).'};}};function readPaging(_0xb533b8,_0x2dbbe2){const _0x3ab39d=a111_0x1d041f;if(!Number[_0x3ab39d(0x1a8)](_0xb533b8)||_0xb533b8<0x1)throw CliErrors[_0x3ab39d(0x1a9)](_0x3ab39d(0x19b));if(!Number['isSafeInteger'](_0x2dbbe2)||_0x2dbbe2<0x1||_0x2dbbe2>0x64)throw CliErrors[_0x3ab39d(0x1a9)](_0x3ab39d(0x1a2));return{'currentPage':_0xb533b8,'pageSize':_0x2dbbe2};}
1
+ const a111_0x2d5cce=a111_0x52de;(function(_0x19f897,_0x53a581){const _0x48068c=a111_0x52de,_0x584b50=_0x19f897();while(!![]){try{const _0x310f0e=parseInt(_0x48068c(0x1dd))/0x1*(parseInt(_0x48068c(0x1e1))/0x2)+parseInt(_0x48068c(0x1d0))/0x3*(-parseInt(_0x48068c(0x1d5))/0x4)+-parseInt(_0x48068c(0x1d3))/0x5+-parseInt(_0x48068c(0x1d6))/0x6+parseInt(_0x48068c(0x1e0))/0x7+-parseInt(_0x48068c(0x1df))/0x8+parseInt(_0x48068c(0x1d9))/0x9;if(_0x310f0e===_0x53a581)break;else _0x584b50['push'](_0x584b50['shift']());}catch(_0x21846c){_0x584b50['push'](_0x584b50['shift']());}}}(a111_0x34f8,0x577ca));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{listDeploymentMetadataSyncJobs}from'../../core/api-client.js';function a111_0x52de(_0x5c9ea9,_0x3fbb4f){_0x5c9ea9=_0x5c9ea9-0x1c7;const _0x34f8fb=a111_0x34f8();let _0x52ded=_0x34f8fb[_0x5c9ea9];return _0x52ded;}import{CliErrors}from'../../errors.js';export const deploymentSyncJobs={'service':'deployment','command':'sync-jobs','description':a111_0x2d5cce(0x1cb),'risk':a111_0x2d5cce(0x1d8),'strictFlags':!![],'structuredErrors':!![],'flags':[{'name':'current-page','type':a111_0x2d5cce(0x1db),'default':0x1,'description':a111_0x2d5cce(0x1c8)},{'name':'page-size','type':a111_0x2d5cce(0x1db),'default':0xa,'description':a111_0x2d5cce(0x1da)},{'name':a111_0x2d5cce(0x1ce),'type':a111_0x2d5cce(0x1d1),'description':a111_0x2d5cce(0x1c9)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x8790e8){const _0x182dbc=a111_0x2d5cce;readPaging(_0x8790e8[_0x182dbc(0x1e2)](_0x182dbc(0x1cc),0x1),_0x8790e8[_0x182dbc(0x1e2)](_0x182dbc(0x1d7),0xa));},async 'execute'(_0xfdb2ef){const _0x14e7b2=a111_0x2d5cce,{currentPage:_0x444998,pageSize:_0x19fa9b}=readPaging(_0xfdb2ef['num'](_0x14e7b2(0x1cc),0x1),_0xfdb2ef['num'](_0x14e7b2(0x1d7),0xa)),_0x23f0f8=_0xfdb2ef[_0x14e7b2(0x1c7)]('status')[_0x14e7b2(0x1cf)](),_0x1d4669=await listDeploymentMetadataSyncJobs({'appCode':_0xfdb2ef[_0x14e7b2(0x1de)],'currentPage':_0x444998,'pageSize':_0x19fa9b,..._0x23f0f8?{'status':_0x23f0f8}:{}});return{'ok':!![],'data':{'appCode':_0xfdb2ef['appCode'],..._0x1d4669},'message':_0x14e7b2(0x1d2)+_0x1d4669['items']['length']+_0x14e7b2(0x1cd)};}};function readPaging(_0xb10e35,_0x2af61b){const _0x2011a0=a111_0x2d5cce;if(!Number[_0x2011a0(0x1dc)](_0xb10e35)||_0xb10e35<0x1)throw CliErrors[_0x2011a0(0x1ca)](_0x2011a0(0x1d4));if(!Number[_0x2011a0(0x1dc)](_0x2af61b)||_0x2af61b<0x1||_0x2af61b>0x64)throw CliErrors[_0x2011a0(0x1ca)]('--page-size\x20must\x20be\x20an\x20integer\x20from\x201\x20to\x20100.');return{'currentPage':_0xb10e35,'pageSize':_0x2af61b};}function a111_0x34f8(){const _0x4eebb5=['status','trim','39nZXkjK','string','Found\x20','1417615XmTmoE','--current-page\x20must\x20be\x20a\x20positive\x20integer.','66996UReZDI','4152102PPjpZB','page-size','read','11037456iuRbtd','Items\x20per\x20page\x20(maximum\x20100)','number','isSafeInteger','382406QnPmZf','appCode','4069456zfXiMw','3160605Vyqemb','2CuWTsw','num','str','Page\x20number','Optional\x20server-defined\x20job\x20status\x20filter','validation','List\x20application\x20deployment\x20synchronization\x20jobs','current-page','\x20deployment\x20synchronization\x20job(s).'];a111_0x34f8=function(){return _0x4eebb5;};return a111_0x34f8();}
@@ -1 +1 @@
1
- const a112_0x516777=a112_0x4aeb;(function(_0x12e6c4,_0x51b52d){const _0x372fce=a112_0x4aeb,_0x671a7c=_0x12e6c4();while(!![]){try{const _0x4ce84d=-parseInt(_0x372fce(0x177))/0x1+parseInt(_0x372fce(0x18c))/0x2+parseInt(_0x372fce(0x178))/0x3*(-parseInt(_0x372fce(0x180))/0x4)+parseInt(_0x372fce(0x18e))/0x5+parseInt(_0x372fce(0x190))/0x6*(-parseInt(_0x372fce(0x17b))/0x7)+parseInt(_0x372fce(0x186))/0x8*(parseInt(_0x372fce(0x183))/0x9)+-parseInt(_0x372fce(0x185))/0xa;if(_0x4ce84d===_0x51b52d)break;else _0x671a7c['push'](_0x671a7c['shift']());}catch(_0x26fb7e){_0x671a7c['push'](_0x671a7c['shift']());}}}(a112_0x2772,0x6680f));import{getDeploymentMetadataSyncStatus}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a112_0x4aeb(_0x169812,_0x184006){_0x169812=_0x169812-0x177;const _0x2772d6=a112_0x2772();let _0x4aebf6=_0x2772d6[_0x169812];return _0x4aebf6;}const TERMINAL_STATUSES=new Set(['SUCCESS',a112_0x516777(0x18a),a112_0x516777(0x191)]),ACTIVE_STATUSES=new Set([a112_0x516777(0x184),a112_0x516777(0x194)]);export const deploymentSyncStatus={'service':a112_0x516777(0x195),'command':'sync-status','description':a112_0x516777(0x181),'risk':a112_0x516777(0x189),'requiresAppCode':!![],'strictFlags':!![],'structuredErrors':!![],'flags':[{'name':a112_0x516777(0x192),'type':a112_0x516777(0x18b),'required':!![],'description':a112_0x516777(0x197)}],async 'validate'(_0x2abe52){const _0x2b46dd=a112_0x516777;readJobId(_0x2abe52[_0x2b46dd(0x196)]('job-id'));},async 'execute'(_0x5a62bf){const _0x14164b=a112_0x516777,_0x17c946=readJobId(_0x5a62bf[_0x14164b(0x196)]('job-id')),_0x3c438b=await getDeploymentMetadataSyncStatus({'jobId':_0x17c946,'appCode':_0x5a62bf[_0x14164b(0x17e)]}),_0x317bcd=TERMINAL_STATUSES[_0x14164b(0x179)](_0x3c438b[_0x14164b(0x18f)])?!![]:ACTIVE_STATUSES[_0x14164b(0x179)](_0x3c438b[_0x14164b(0x18f)])?![]:null,_0x44cf4b=countBy(_0x3c438b[_0x14164b(0x198)][_0x14164b(0x17c)](_0x3f629f=>_0x3f629f[_0x14164b(0x17d)])),_0x4e7fb6=countBy(_0x3c438b[_0x14164b(0x198)]['map'](_0x4e1297=>_0x4e1297[_0x14164b(0x17a)])),_0x2c932e=_0x317bcd===null?['Preserved\x20server-defined\x20status\x20'+_0x3c438b['status']+';\x20terminal\x20state\x20is\x20unknown\x20to\x20this\x20CLI\x20version.']:[];return{'ok':!![],'data':{'job':_0x3c438b,'isTerminal':_0x317bcd,'summary':{'total':_0x3c438b['results'][_0x14164b(0x188)],'failed':_0x3c438b[_0x14164b(0x198)][_0x14164b(0x199)](_0x4e0d8d=>_0x4e0d8d['action']==='FAILED')[_0x14164b(0x188)],'byBizType':_0x44cf4b,'byAction':_0x4e7fb6},'warnings':_0x2c932e},'message':_0x14164b(0x182)+_0x17c946+'\x20is\x20'+_0x3c438b['status']+'.'};}};function readJobId(_0x38e5ef){const _0x30ddfc=a112_0x516777;if(!Number[_0x30ddfc(0x193)](_0x38e5ef)||_0x38e5ef<=0x0)throw CliErrors[_0x30ddfc(0x17f)](_0x30ddfc(0x18d));return _0x38e5ef;}function a112_0x2772(){const _0x11f273=['3272185TCmClv','status','164994EFdKEv','FAILED','job-id','isSafeInteger','RUNNING','deployment','num','Deployment\x20synchronization\x20job\x20ID','results','filter','15849LxxdWn','237687TBRJht','has','action','49YbFXaL','map','bizType','appCode','validation','36LDUlSu','Get\x20application\x20deployment\x20synchronization\x20job\x20status','Deployment\x20synchronization\x20job\x20','27kRJORL','PENDING','282320efVnMJ','545384HeRvUA','reduce','length','read','PARTIAL_SUCCESS','number','1021068RSdpkC','--job-id\x20must\x20be\x20a\x20positive\x20integer.'];a112_0x2772=function(){return _0x11f273;};return a112_0x2772();}function countBy(_0x158c3c){const _0x5374c2=a112_0x516777;return _0x158c3c[_0x5374c2(0x187)]((_0x17e252,_0xe30263)=>{return _0x17e252[_0xe30263]=(_0x17e252[_0xe30263]??0x0)+0x1,_0x17e252;},{});}
1
+ const a112_0x226309=a112_0x3860;(function(_0x4022ec,_0x4da928){const _0x2244e5=a112_0x3860,_0xb37eb8=_0x4022ec();while(!![]){try{const _0x238012=-parseInt(_0x2244e5(0x1ee))/0x1*(parseInt(_0x2244e5(0x1f5))/0x2)+-parseInt(_0x2244e5(0x1ef))/0x3+-parseInt(_0x2244e5(0x1f1))/0x4*(-parseInt(_0x2244e5(0x1fa))/0x5)+-parseInt(_0x2244e5(0x1de))/0x6+-parseInt(_0x2244e5(0x1e0))/0x7*(parseInt(_0x2244e5(0x1da))/0x8)+-parseInt(_0x2244e5(0x1ea))/0x9*(-parseInt(_0x2244e5(0x1e7))/0xa)+-parseInt(_0x2244e5(0x1f6))/0xb*(-parseInt(_0x2244e5(0x1e6))/0xc);if(_0x238012===_0x4da928)break;else _0xb37eb8['push'](_0xb37eb8['shift']());}catch(_0x29d84f){_0xb37eb8['push'](_0xb37eb8['shift']());}}}(a112_0x128d,0x24be3));import{getDeploymentMetadataSyncStatus}from'../../core/api-client.js';function a112_0x3860(_0x432001,_0x4e770c){_0x432001=_0x432001-0x1da;const _0x128d29=a112_0x128d();let _0x3860b6=_0x128d29[_0x432001];return _0x3860b6;}import{CliErrors}from'../../errors.js';function a112_0x128d(){const _0x41f63f=['440yluKwY','SUCCESS','Preserved\x20server-defined\x20status\x20','13059dohPHo','\x20is\x20',';\x20terminal\x20state\x20is\x20unknown\x20to\x20this\x20CLI\x20version.','has','143UnDBVl','278325LCiCXr','FAILED','2020fpFPvl','sync-status','results','bizType','3486BofABE','11weuIQp','PARTIAL_SUCCESS','filter','deployment','2105HmqLeS','Get\x20application\x20deployment\x20synchronization\x20job\x20status','8fQQwCh','number','map','num','750036PqebYo','reduce','1985571MzpmZe','length','status','job-id','action','read','7496796CVvkmk'];a112_0x128d=function(){return _0x41f63f;};return a112_0x128d();}const TERMINAL_STATUSES=new Set([a112_0x226309(0x1e8),a112_0x226309(0x1f7),'FAILED']),ACTIVE_STATUSES=new Set(['PENDING','RUNNING']);export const deploymentSyncStatus={'service':a112_0x226309(0x1f9),'command':a112_0x226309(0x1f2),'description':a112_0x226309(0x1fb),'risk':a112_0x226309(0x1e5),'requiresAppCode':!![],'strictFlags':!![],'structuredErrors':!![],'flags':[{'name':a112_0x226309(0x1e3),'type':a112_0x226309(0x1db),'required':!![],'description':'Deployment\x20synchronization\x20job\x20ID'}],async 'validate'(_0x36eeeb){const _0x3fcdf8=a112_0x226309;readJobId(_0x36eeeb[_0x3fcdf8(0x1dd)](_0x3fcdf8(0x1e3)));},async 'execute'(_0xf42e9b){const _0x4cf2ac=a112_0x226309,_0x14be3c=readJobId(_0xf42e9b[_0x4cf2ac(0x1dd)]('job-id')),_0x2d4c18=await getDeploymentMetadataSyncStatus({'jobId':_0x14be3c,'appCode':_0xf42e9b['appCode']}),_0x16d820=TERMINAL_STATUSES[_0x4cf2ac(0x1ed)](_0x2d4c18[_0x4cf2ac(0x1e2)])?!![]:ACTIVE_STATUSES['has'](_0x2d4c18[_0x4cf2ac(0x1e2)])?![]:null,_0x395c27=countBy(_0x2d4c18[_0x4cf2ac(0x1f3)][_0x4cf2ac(0x1dc)](_0x4ddeb6=>_0x4ddeb6[_0x4cf2ac(0x1f4)])),_0x7b32e7=countBy(_0x2d4c18[_0x4cf2ac(0x1f3)][_0x4cf2ac(0x1dc)](_0x373479=>_0x373479[_0x4cf2ac(0x1e4)])),_0x21639f=_0x16d820===null?[_0x4cf2ac(0x1e9)+_0x2d4c18[_0x4cf2ac(0x1e2)]+_0x4cf2ac(0x1ec)]:[];return{'ok':!![],'data':{'job':_0x2d4c18,'isTerminal':_0x16d820,'summary':{'total':_0x2d4c18[_0x4cf2ac(0x1f3)]['length'],'failed':_0x2d4c18[_0x4cf2ac(0x1f3)][_0x4cf2ac(0x1f8)](_0x355e0a=>_0x355e0a[_0x4cf2ac(0x1e4)]===_0x4cf2ac(0x1f0))[_0x4cf2ac(0x1e1)],'byBizType':_0x395c27,'byAction':_0x7b32e7},'warnings':_0x21639f},'message':'Deployment\x20synchronization\x20job\x20'+_0x14be3c+_0x4cf2ac(0x1eb)+_0x2d4c18[_0x4cf2ac(0x1e2)]+'.'};}};function readJobId(_0xa3926c){if(!Number['isSafeInteger'](_0xa3926c)||_0xa3926c<=0x0)throw CliErrors['validation']('--job-id\x20must\x20be\x20a\x20positive\x20integer.');return _0xa3926c;}function countBy(_0x4f4ca6){const _0x292357=a112_0x226309;return _0x4f4ca6[_0x292357(0x1df)]((_0x3bf1b9,_0x4db0f5)=>{return _0x3bf1b9[_0x4db0f5]=(_0x3bf1b9[_0x4db0f5]??0x0)+0x1,_0x3bf1b9;},{});}
@@ -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_0x74ab21=a113_0x2ef9;(function(_0x4e0ec7,_0x169a18){const _0x9b5a69=a113_0x2ef9,_0x1b078b=_0x4e0ec7();while(!![]){try{const _0x5c3f39=-parseInt(_0x9b5a69(0x134))/0x1*(-parseInt(_0x9b5a69(0xf7))/0x2)+parseInt(_0x9b5a69(0xfe))/0x3*(-parseInt(_0x9b5a69(0x13d))/0x4)+parseInt(_0x9b5a69(0xc5))/0x5*(-parseInt(_0x9b5a69(0x116))/0x6)+-parseInt(_0x9b5a69(0xdb))/0x7*(-parseInt(_0x9b5a69(0x136))/0x8)+parseInt(_0x9b5a69(0xeb))/0x9+-parseInt(_0x9b5a69(0x128))/0xa*(-parseInt(_0x9b5a69(0xda))/0xb)+-parseInt(_0x9b5a69(0x13b))/0xc;if(_0x5c3f39===_0x169a18)break;else _0x1b078b['push'](_0x1b078b['shift']());}catch(_0x2f6a4e){_0x1b078b['push'](_0x1b078b['shift']());}}}(a113_0x646f,0x74a77));import a113_0x1a158a from'chalk';function a113_0x646f(){const _0x51cae3=['call','\x20\x20Merged\x20Config','ignored\x20in\x20','\x20←\x20current','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','unknown','Set\x20apps.','inherit','\x20config\x20delete\x20routing','581964GECKFs','(default)','missing','apps','✗\x20Not\x20logged\x20in','cookie','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','2133IzGqiB','\x20\x20runtimeDomain:\x20\x20\x20','regionSource','read','accessKey','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20(default)','stringify','log','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','includes','appCode','routing','push','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','✓\x20Valid','\x20config','installedPath','raw','Project','hasOwnProperty','\x20\x20skillDomain:\x20\x20\x20\x20\x20','label','248898klxuOP','explicitAppName','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','(none)','(set,\x20length=','.region\x20to\x20cn\x20or\x20id\x20in\x20','platform','region','\x20\x20Legacy\x20inherit:\x20\x20\x20','(no\x20file)','value','doctor','join','\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Repair\x20global:\x20\x20\x20','\x20\x20kbDomain:\x20\x20\x20\x20\x20\x20\x20\x20','Global','510fgFCHF','\x20\x20\x20\x20region:\x20\x20\x20\x20\x20','defaultApp','\x20\x20─','\x20\x20appDomain:\x20\x20\x20\x20\x20\x20\x20','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','green','\x20\x20Skill\x20Version:\x20\x20\x20','(set\x20via\x20file,\x20length=','\x20app\x20\x22','state','(missing)','2uEfNQx','currentApp','196424YIyvwA','globalConfig','gray','\x20\x20Repair\x20global:\x20\x20\x20\x20','status','2542536XPMHNq','present','1712IvMfUu','(unknown)','\x20config\x20delete\x20inherit\x20--global','Unavailable\x20until\x20routing\x20configuration\x20is\x20repaired','Not\x20checked\x20until\x20routing\x20configuration\x20is\x20repaired','✓\x20Valid\x20JSON','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','current','\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20config\x20delete\x20region','apiDir','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','\x20config\x20delete\x20inherit','bold','toLowerCase','format','env','prototype','Repair\x20','skillVersion','default','\x20\x20Routing\x20Configuration','length','version','✗\x20Invalid\x20JSON','filter','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','string','\x20\x20Auth','20JwqABW','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20accessKey:\x20\x20','\x20+\x20','source','arch','reason','✗\x20Invalid','padEnd','null','entries','locale','⚠\x20Empty\x20(treated\x20as\x20{})','(default:\x20','appcode','red','object','\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20explicitAppName:\x20','riskLevel','13233lwYQcv','7ceaCSW','\x20config\x20delete\x20region\x20--global','(not\x20set)','projectConfig','✗\x20Invalid\x20','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','keys','empty','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(not\x20found)','message','global','verbose','repeat','regionConfiguredValue','4428567JuxTvW','yellow','\x20\x20Country/Region\x20Configuration'];a113_0x646f=function(){return _0x51cae3;};return a113_0x646f();}function a113_0x2ef9(_0x3ea3d1,_0x336ffb){_0x3ea3d1=_0x3ea3d1-0xc0;const _0x646faa=a113_0x646f();let _0x2ef99f=_0x646faa[_0x3ea3d1];return _0x2ef99f;}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';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(_0x1a6116){const _0xa4b0aa=a113_0x2ef9;return typeof _0x1a6116===_0xa4b0aa(0xc3)?JSON[_0xa4b0aa(0x106)](_0x1a6116):'<'+(_0x1a6116===null?_0xa4b0aa(0xcf):typeof _0x1a6116)+'>';}async function execute(_0x3d06af){const _0x7296d9=a113_0x2ef9,_0x2e89d5=GIT_COMMIT!==_0x7296d9(0xf3)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME['slice'](0x0,0xa)+')':VERSION,_0x1340d9=buildConfigFromFlags({}),_0x228c72=getCookie();let _0x26b09f;try{await initGlobalEnvironment(_0x1340d9);}catch(_0x1193f2){_0x26b09f=_0x1193f2 instanceof Error?_0x1193f2:new Error(String(_0x1193f2));}console[_0x7296d9(0x107)](),console['log'](a113_0x1a158a[_0x7296d9(0x14b)](CLI_BIN_NAME+'\x20doctor')),console[_0x7296d9(0x107)](a113_0x1a158a[_0x7296d9(0x138)]('─'['repeat'](0x32))),console['log'](_0x7296d9(0xc2)+_0x2e89d5),console['log'](_0x7296d9(0xfd)+process[_0x7296d9(0x155)]),console[_0x7296d9(0x107)]('\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20'+process[_0x7296d9(0x11d)]+'\x20'+process[_0x7296d9(0xcb)]);const _0x37f5cb=inspectBuiltinSkill();console[_0x7296d9(0x107)](),console[_0x7296d9(0x107)](a113_0x1a158a[_0x7296d9(0x14b)]('\x20\x20Built-in\x20Skill')),console['log'](a113_0x1a158a['gray'](_0x7296d9(0x12b)[_0x7296d9(0xe9)](0x1e)));const _0x4d21e6=_0x37f5cb[_0x7296d9(0x132)]===_0x7296d9(0x145)?a113_0x1a158a[_0x7296d9(0x12e)]('✓\x20'+_0x37f5cb[_0x7296d9(0x132)]):a113_0x1a158a[_0x7296d9(0xd5)]('✗\x20'+_0x37f5cb[_0x7296d9(0x132)]);console['log'](_0x7296d9(0xe4)+_0x4d21e6),console[_0x7296d9(0x107)]('\x20\x20Package\x20Version:\x20'+_0x37f5cb['packageVersion']),console[_0x7296d9(0x107)](_0x7296d9(0x12f)+(_0x37f5cb[_0x7296d9(0x151)]||a113_0x1a158a[_0x7296d9(0x138)](_0x7296d9(0x13e)))),console[_0x7296d9(0x107)]('\x20\x20Installed\x20Path:\x20\x20'+(_0x37f5cb[_0x7296d9(0x110)]||a113_0x1a158a[_0x7296d9(0x138)](_0x7296d9(0xe5))));if(_0x37f5cb[_0x7296d9(0xcc)])console[_0x7296d9(0x107)](_0x7296d9(0x146)+_0x37f5cb[_0x7296d9(0xcc)]);_0x37f5cb[_0x7296d9(0x132)]!==_0x7296d9(0x145)&&console[_0x7296d9(0x107)](_0x7296d9(0x124)+_0x37f5cb['repairCommand']);console[_0x7296d9(0x107)](),console[_0x7296d9(0x107)](a113_0x1a158a['bold']('\x20\x20Config\x20Files')),console[_0x7296d9(0x107)](a113_0x1a158a['gray'](_0x7296d9(0x12b)[_0x7296d9(0xe9)](0x1e)));const _0xe900f9=getGlobalConfigPath(),_0x2f44d8=getProjectConfigPath();console[_0x7296d9(0x107)](_0x7296d9(0xc7)+(_0xe900f9||a113_0x1a158a[_0x7296d9(0x138)](_0x7296d9(0xe5)))),console[_0x7296d9(0x107)]('\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x2f44d8||a113_0x1a158a[_0x7296d9(0x138)]('(not\x20found)'))),console[_0x7296d9(0x107)](),console['log'](a113_0x1a158a[_0x7296d9(0x14b)]('\x20\x20Config\x20JSON')),console['log'](a113_0x1a158a[_0x7296d9(0x138)](_0x7296d9(0x12b)[_0x7296d9(0xe9)](0x1e)));const _0x28c64f=(_0xd14d6d,_0x2b91ce)=>{const _0x1f5bcf=_0x7296d9;if(!_0x2b91ce){console[_0x1f5bcf(0x107)]('\x20\x20'+_0xd14d6d[_0x1f5bcf(0xce)](0x11)+'\x20'+a113_0x1a158a[_0x1f5bcf(0x138)](_0x1f5bcf(0x120)));return;}const _0x473fcc=inspectCliConfigJsonFile(_0x2b91ce);if(_0x473fcc[_0x1f5bcf(0x13a)]==='ok')console[_0x1f5bcf(0x107)]('\x20\x20'+_0xd14d6d[_0x1f5bcf(0xce)](0x11)+'\x20'+a113_0x1a158a['green'](_0x1f5bcf(0x142)));else{if(_0x473fcc[_0x1f5bcf(0x13a)]===_0x1f5bcf(0xe2))console[_0x1f5bcf(0x107)]('\x20\x20'+_0xd14d6d[_0x1f5bcf(0xce)](0x11)+'\x20'+a113_0x1a158a[_0x1f5bcf(0xec)](_0x1f5bcf(0xd2)));else _0x473fcc[_0x1f5bcf(0x13a)]===_0x1f5bcf(0xf9)?console[_0x1f5bcf(0x107)]('\x20\x20'+_0xd14d6d['padEnd'](0x11)+'\x20'+a113_0x1a158a[_0x1f5bcf(0x138)](_0x1f5bcf(0x133))):(console['log']('\x20\x20'+_0xd14d6d[_0x1f5bcf(0xce)](0x11)+'\x20'+a113_0x1a158a[_0x1f5bcf(0xd5)](_0x1f5bcf(0xc0))),console[_0x1f5bcf(0x107)]('\x20\x20'+''[_0x1f5bcf(0xce)](0x11)+'\x20'+a113_0x1a158a[_0x1f5bcf(0xd5)](_0x473fcc[_0x1f5bcf(0xe6)])));}};_0x28c64f(_0x7296d9(0x127),_0xe900f9),_0x28c64f(_0x7296d9(0x112),_0x2f44d8);const _0x550e93=loadRawConfigLayers(),_0x3647e1=[{'label':_0x7296d9(0x112),'value':_0x550e93[_0x7296d9(0xde)][_0x7296d9(0x11e)],'present':Object[_0x7296d9(0x14f)]['hasOwnProperty']['call'](_0x550e93['projectConfig'],_0x7296d9(0x11e)),'repairCommand':CLI_BIN_NAME+_0x7296d9(0x147)},{'label':_0x7296d9(0x127),'value':_0x550e93[_0x7296d9(0x137)][_0x7296d9(0x11e)],'present':Object[_0x7296d9(0x14f)]['hasOwnProperty'][_0x7296d9(0xee)](_0x550e93['globalConfig'],_0x7296d9(0x11e)),'repairCommand':CLI_BIN_NAME+_0x7296d9(0xdc)}][_0x7296d9(0xc1)](_0x552c69=>_0x552c69[_0x7296d9(0x13c)]&&isInvalidLovrabetRegion(_0x552c69[_0x7296d9(0x121)]));for(const [_0x506e68,_0x306af5]of[[_0x7296d9(0x112),_0x550e93[_0x7296d9(0xde)]],[_0x7296d9(0x127),_0x550e93['globalConfig']]]){const _0x1bb244=_0x306af5[_0x7296d9(0xfa)]&&typeof _0x306af5['apps']===_0x7296d9(0xd6)?_0x306af5['apps']:{};for(const [_0x428d1d,_0x51720c]of Object[_0x7296d9(0xd0)](_0x1bb244)){if(!_0x51720c||typeof _0x51720c!==_0x7296d9(0xd6)||!Object[_0x7296d9(0x14f)]['hasOwnProperty']['call'](_0x51720c,_0x7296d9(0x11e)))continue;isInvalidLovrabetRegion(_0x51720c[_0x7296d9(0x11e)])&&_0x3647e1[_0x7296d9(0x10c)]({'label':_0x506e68+_0x7296d9(0x131)+_0x428d1d+'\x22','value':_0x51720c[_0x7296d9(0x11e)],'present':!![],'repairCommand':_0x7296d9(0xf4)+_0x428d1d+_0x7296d9(0x11c)+_0x506e68[_0x7296d9(0x14c)]()+_0x7296d9(0x10f)});}}if(_0x3647e1[_0x7296d9(0x154)]>0x0){console[_0x7296d9(0x107)](),console[_0x7296d9(0x107)](a113_0x1a158a[_0x7296d9(0x14b)](_0x7296d9(0xed))),console[_0x7296d9(0x107)](a113_0x1a158a[_0x7296d9(0x138)](_0x7296d9(0x12b)[_0x7296d9(0xe9)](0x1e)));for(const _0x4c2e9d of _0x3647e1){console['log']('\x20\x20'+_0x4c2e9d[_0x7296d9(0x115)][_0x7296d9(0xce)](0x11)+'\x20'+a113_0x1a158a['red'](_0x7296d9(0xdf)+describeRegionValue(_0x4c2e9d[_0x7296d9(0x121)]))),console[_0x7296d9(0x107)]('\x20\x20'+(_0x7296d9(0x150)+_0x4c2e9d[_0x7296d9(0x115)]['toLowerCase']()+':')['padEnd'](0x10)+'\x20'+_0x4c2e9d['repairCommand']);}}const _0x515ea2=[Object[_0x7296d9(0x14f)][_0x7296d9(0x113)][_0x7296d9(0xee)](_0x550e93[_0x7296d9(0x137)],_0x7296d9(0xf5))?_0x7296d9(0xe7):null,Object[_0x7296d9(0x14f)][_0x7296d9(0x113)][_0x7296d9(0xee)](_0x550e93[_0x7296d9(0xde)],_0x7296d9(0xf5))?'project':null]['filter'](Boolean);_0x515ea2[_0x7296d9(0x154)]>0x0&&(console[_0x7296d9(0x107)](_0x7296d9(0x11f)+a113_0x1a158a[_0x7296d9(0xec)](_0x7296d9(0xf0)+_0x515ea2[_0x7296d9(0x123)](_0x7296d9(0xc9))+_0x7296d9(0x10f))),_0x515ea2[_0x7296d9(0x109)]('project')&&console[_0x7296d9(0x107)]('\x20\x20Repair\x20project:\x20\x20\x20'+CLI_BIN_NAME+_0x7296d9(0x14a)),_0x515ea2[_0x7296d9(0x109)](_0x7296d9(0xe7))&&console[_0x7296d9(0x107)](_0x7296d9(0x139)+CLI_BIN_NAME+_0x7296d9(0x13f)));const _0x10ec14=isInvalidLovrabetRegion(_0x1340d9[_0x7296d9(0xea)]??_0x1340d9[_0x7296d9(0x111)]?.['region']);_0x26b09f&&!_0x10ec14&&(console[_0x7296d9(0x107)](),console[_0x7296d9(0x107)](a113_0x1a158a[_0x7296d9(0x14b)](_0x7296d9(0x153))),console[_0x7296d9(0x107)](a113_0x1a158a[_0x7296d9(0x138)](_0x7296d9(0x12b)[_0x7296d9(0xe9)](0x1e))),console[_0x7296d9(0x107)](_0x7296d9(0x144)+a113_0x1a158a[_0x7296d9(0xd5)](_0x7296d9(0xcd))),console[_0x7296d9(0x107)](_0x7296d9(0x146)+_0x26b09f[_0x7296d9(0xe6)]),Object[_0x7296d9(0x14f)][_0x7296d9(0x113)][_0x7296d9(0xee)](_0x550e93[_0x7296d9(0xde)],_0x7296d9(0x10b))&&console[_0x7296d9(0x107)]('\x20\x20Repair\x20project:\x20\x20'+CLI_BIN_NAME+_0x7296d9(0xf6)),Object[_0x7296d9(0x14f)]['hasOwnProperty'][_0x7296d9(0xee)](_0x550e93[_0x7296d9(0x137)],_0x7296d9(0x10b))&&console[_0x7296d9(0x107)](_0x7296d9(0x125)+CLI_BIN_NAME+'\x20config\x20delete\x20routing\x20--global'));console[_0x7296d9(0x107)](),console['log'](a113_0x1a158a[_0x7296d9(0x14b)](_0x7296d9(0xef))),console[_0x7296d9(0x107)](a113_0x1a158a[_0x7296d9(0x138)](_0x7296d9(0x12b)[_0x7296d9(0xe9)](0x1e))),console['log']('\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x1340d9[_0x7296d9(0x10a)]||a113_0x1a158a[_0x7296d9(0xd5)](_0x7296d9(0xdd))));const _0x5c8b0e=_0x10ec14?a113_0x1a158a[_0x7296d9(0xd5)](describeRegionValue(_0x1340d9[_0x7296d9(0xea)]??_0x1340d9[_0x7296d9(0x111)]?.['region'])+'\x20(invalid)'):(_0x1340d9[_0x7296d9(0x11e)]??DEFAULT_LOVRABET_REGION)+'\x20('+(_0x1340d9[_0x7296d9(0x100)]??_0x7296d9(0x152))+')';console['log']('\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x5c8b0e),console[_0x7296d9(0x107)](_0x7296d9(0x108)+_0x1340d9[_0x7296d9(0x14e)]),console[_0x7296d9(0x107)]('\x20\x20app\x20locale:\x20\x20\x20\x20\x20\x20'+_0x1340d9[_0x7296d9(0xd1)]),console[_0x7296d9(0x107)](_0x7296d9(0x143)+_0x1340d9[_0x7296d9(0x148)]),console['log'](_0x7296d9(0xe3)+(_0x1340d9['defaultApp']||a113_0x1a158a['gray'](_0x7296d9(0x11a)))),console[_0x7296d9(0x107)](_0x7296d9(0x118)+(_0x1340d9[_0x7296d9(0x135)]||a113_0x1a158a[_0x7296d9(0x138)](_0x7296d9(0x11a)))),console[_0x7296d9(0x107)](_0x7296d9(0xd8)+(_0x1340d9[_0x7296d9(0x117)]||a113_0x1a158a[_0x7296d9(0x138)](_0x7296d9(0x11a)))),console[_0x7296d9(0x107)](_0x7296d9(0x104)+(_0x1340d9[_0x7296d9(0x14d)]||a113_0x1a158a[_0x7296d9(0x138)](_0x7296d9(0xd3)+DEFAULT_CONFIG_VALUES[_0x7296d9(0x14d)]+')'))),console[_0x7296d9(0x107)](_0x7296d9(0x12d)+(_0x1340d9['pageSize']??a113_0x1a158a[_0x7296d9(0x138)](_0x7296d9(0xf8)))),console[_0x7296d9(0x107)](_0x7296d9(0xe0)+_0x1340d9[_0x7296d9(0xd9)]),console['log']('\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x1340d9[_0x7296d9(0xe8)]),console[_0x7296d9(0x107)]('\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x1340d9['cookie']?a113_0x1a158a['green'](_0x7296d9(0x11b)+_0x1340d9[_0x7296d9(0xfc)][_0x7296d9(0x154)]+')'):_0x228c72?a113_0x1a158a[_0x7296d9(0x12e)](_0x7296d9(0x130)+_0x228c72[_0x7296d9(0x154)]+')'):a113_0x1a158a['gray']('(none)')));const _0x3dbd3e=Object[_0x7296d9(0xe1)](_0x1340d9['apps']);if(_0x3dbd3e[_0x7296d9(0x154)]>0x0){console['log'](),console[_0x7296d9(0x107)](a113_0x1a158a[_0x7296d9(0x14b)]('\x20\x20Apps')),console[_0x7296d9(0x107)](a113_0x1a158a[_0x7296d9(0x138)]('\x20\x20─'['repeat'](0x1e)));for(const _0x4c764d of _0x3dbd3e){const _0x2e16a2=_0x1340d9[_0x7296d9(0xfa)][_0x4c764d],_0xc3bf7e=_0x4c764d===_0x1340d9[_0x7296d9(0x12a)],_0x14981e=_0x4c764d===_0x1340d9[_0x7296d9(0x135)],_0x197beb=_0x14981e?a113_0x1a158a['green'](_0x7296d9(0xf1)):'',_0x226113=_0xc3bf7e?_0x7296d9(0x105):'';console['log']('\x20\x20'+_0x4c764d+_0x226113+_0x197beb),console[_0x7296d9(0x107)]('\x20\x20\x20\x20appcode:\x20\x20\x20\x20'+_0x2e16a2[_0x7296d9(0xd4)]);const _0x4a6317=_0x550e93['projectConfig'][_0x7296d9(0xfa)]&&typeof _0x550e93[_0x7296d9(0xde)]['apps']===_0x7296d9(0xd6)?_0x550e93[_0x7296d9(0xde)][_0x7296d9(0xfa)]:{},_0x990df1=Object['prototype'][_0x7296d9(0x113)][_0x7296d9(0xee)](_0x4a6317,_0x4c764d),_0x102eab=isInvalidLovrabetRegion(_0x2e16a2['region'])?{'region':_0x1340d9[_0x7296d9(0x11e)]??DEFAULT_LOVRABET_REGION}:resolveEffectiveRegion({'appRegion':_0x2e16a2[_0x7296d9(0x11e)],'projectRegion':_0x990df1?_0x550e93[_0x7296d9(0xde)][_0x7296d9(0x11e)]:undefined,'globalRegion':_0x550e93[_0x7296d9(0x137)][_0x7296d9(0x11e)],'mergedRegion':_0x1340d9[_0x7296d9(0x111)]['region'],'appName':_0x4c764d}),_0x1f5aa8=buildAppDoctorFields(_0x2e16a2,{'region':_0x102eab['region'],'env':_0x1340d9['env'],'apiDir':_0x1340d9[_0x7296d9(0x111)]['apiDir']||DEFAULT_CONFIG_VALUES[_0x7296d9(0x148)],'cookie':_0x1340d9[_0x7296d9(0xfc)]||_0x228c72||undefined,'accessKey':_0x1340d9[_0x7296d9(0x102)]});console['log'](_0x7296d9(0x129)+_0x1f5aa8['region'][_0x7296d9(0x121)]+'\x20\x20'+a113_0x1a158a[_0x7296d9(0x138)]('('+_0x1f5aa8[_0x7296d9(0x11e)]['source']+')')),console[_0x7296d9(0x107)](_0x7296d9(0x10d)+_0x1f5aa8[_0x7296d9(0x14e)]['value']+'\x20\x20'+a113_0x1a158a[_0x7296d9(0x138)]('('+_0x1f5aa8[_0x7296d9(0x14e)][_0x7296d9(0xca)]+')')),console[_0x7296d9(0x107)](_0x7296d9(0x103)+_0x1f5aa8[_0x7296d9(0x148)][_0x7296d9(0x121)]+'\x20\x20'+a113_0x1a158a[_0x7296d9(0x138)]('('+_0x1f5aa8[_0x7296d9(0x148)][_0x7296d9(0xca)]+')'));const _0x880079=_0x1f5aa8[_0x7296d9(0xfc)][_0x7296d9(0x121)]?a113_0x1a158a[_0x7296d9(0x12e)](_0x7296d9(0x11b)+_0x1f5aa8[_0x7296d9(0xfc)]['value'][_0x7296d9(0x154)]+')'):a113_0x1a158a[_0x7296d9(0x138)](_0x7296d9(0x11a));console[_0x7296d9(0x107)](_0x7296d9(0x119)+_0x880079+'\x20\x20'+a113_0x1a158a[_0x7296d9(0x138)]('('+_0x1f5aa8['cookie'][_0x7296d9(0xca)]+')'));const _0x268ea2=_0x1f5aa8['accessKey'][_0x7296d9(0x121)]?a113_0x1a158a['green'](_0x7296d9(0x11b)+_0x1f5aa8[_0x7296d9(0x102)][_0x7296d9(0x121)][_0x7296d9(0x154)]+')'):a113_0x1a158a[_0x7296d9(0x138)](_0x7296d9(0x11a));console[_0x7296d9(0x107)](_0x7296d9(0xc8)+_0x268ea2+'\x20\x20'+a113_0x1a158a[_0x7296d9(0x138)]('('+_0x1f5aa8[_0x7296d9(0x102)][_0x7296d9(0xca)]+')'));}}console[_0x7296d9(0x107)](),console[_0x7296d9(0x107)](a113_0x1a158a[_0x7296d9(0x14b)]('\x20\x20API\x20Endpoints')),console[_0x7296d9(0x107)](a113_0x1a158a[_0x7296d9(0x138)]('\x20\x20─'[_0x7296d9(0xe9)](0x1e)));_0x26b09f?console[_0x7296d9(0x107)](_0x7296d9(0x144)+a113_0x1a158a[_0x7296d9(0xd5)](_0x7296d9(0x140))):(console[_0x7296d9(0x107)](_0x7296d9(0xd7)+getActiveRegion()),console[_0x7296d9(0x107)](_0x7296d9(0xc6)+getApiDomain()),console[_0x7296d9(0x107)](_0x7296d9(0xf2)+getUserDomain()),console['log'](_0x7296d9(0xff)+getRuntimeDomain()),console[_0x7296d9(0x107)](_0x7296d9(0x114)+getSkillDomain()),console[_0x7296d9(0x107)](_0x7296d9(0x126)+getKbDomain()),console['log'](_0x7296d9(0x12c)+getAppDomain()));console['log'](),console[_0x7296d9(0x107)](a113_0x1a158a[_0x7296d9(0x14b)](_0x7296d9(0xc4))),console['log'](a113_0x1a158a[_0x7296d9(0x138)]('\x20\x20─'[_0x7296d9(0xe9)](0x1e)));if(_0x26b09f)console[_0x7296d9(0x107)](_0x7296d9(0x144)+a113_0x1a158a[_0x7296d9(0xec)](_0x7296d9(0x141)));else{if(_0x228c72){const _0x1f8785=await getIsSessionValid();console['log'](_0x7296d9(0x144)+(_0x1f8785?a113_0x1a158a[_0x7296d9(0x12e)](_0x7296d9(0x10e)):a113_0x1a158a[_0x7296d9(0xd5)]('✗\x20Expired')));}else console[_0x7296d9(0x107)](_0x7296d9(0x144)+a113_0x1a158a[_0x7296d9(0xd5)](_0x7296d9(0xfb)));}return console['log'](),{'ok':!![]};}export const doctorDefinition={'service':a113_0x74ab21(0x122),'command':'check','description':a113_0x74ab21(0x149),'risk':a113_0x74ab21(0x101),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
@@ -1 +1 @@
1
- const a114_0x10fcd6=a114_0x58a1;(function(_0x163df2,_0x11b5ad){const _0x265acc=a114_0x58a1,_0x5e49c0=_0x163df2();while(!![]){try{const _0x113793=parseInt(_0x265acc(0x1d0))/0x1*(parseInt(_0x265acc(0x1db))/0x2)+parseInt(_0x265acc(0x1e3))/0x3+parseInt(_0x265acc(0x1df))/0x4*(parseInt(_0x265acc(0x1cd))/0x5)+parseInt(_0x265acc(0x1d4))/0x6+parseInt(_0x265acc(0x1c8))/0x7*(parseInt(_0x265acc(0x1d9))/0x8)+parseInt(_0x265acc(0x1da))/0x9+-parseInt(_0x265acc(0x1c4))/0xa;if(_0x113793===_0x11b5ad)break;else _0x5e49c0['push'](_0x5e49c0['shift']());}catch(_0x5c76d2){_0x5e49c0['push'](_0x5e49c0['shift']());}}}(a114_0x5bc0,0xe8ebf));import{requireDevelopmentUploadFile}from'../../commands/common/local-file.js';import{queryDevelopmentFileUrl,uploadDevelopmentFile}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a114_0x58a1(_0x18c749,_0x34b2f9){_0x18c749=_0x18c749-0x1c4;const _0x5bc0fd=a114_0x5bc0();let _0x58a1cb=_0x5bc0fd[_0x18c749];return _0x58a1cb;}const FILE_FLAG={'name':a114_0x10fcd6(0x1c7),'type':a114_0x10fcd6(0x1d6),'required':!![],'description':'Path\x20to\x20the\x20local\x20file\x20to\x20upload'},FILEPATH_FLAG={'name':a114_0x10fcd6(0x1e1),'type':a114_0x10fcd6(0x1d6),'required':!![],'description':a114_0x10fcd6(0x1cf)},DOWNLOAD_FLAG={'name':a114_0x10fcd6(0x1ca),'type':a114_0x10fcd6(0x1c6),'description':'Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL'},LONG_TERM_FLAG={'name':a114_0x10fcd6(0x1d8),'type':a114_0x10fcd6(0x1c6),'description':'Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML'};function requireFilePath(_0x89aea){const _0x75a88b=a114_0x10fcd6,_0x32c439=_0x89aea['trim']();if(!_0x32c439)throw CliErrors[_0x75a88b(0x1d7)](_0x75a88b(0x1d1));return _0x32c439;}function a114_0x5bc0(){const _0x3d3e3b=['Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20or\x20immediate\x20access','boolean','file','7aJUwlU','bool','download','read','Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','50BNDHZr','Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','Development\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data','3PtwMcQ','filePath\x20is\x20required.','appCode','str','9289542JoKULG','upload','string','validation','long-term','10406248xjAMdt','17043777AXxPFV','510568wPQQfV','.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','Preview:\x20upload\x20','path','688108Bvgrzv','POST','filepath','File','4409049zFHuOk','Uploaded\x20file:\x20','77445490NCrJue'];a114_0x5bc0=function(){return _0x3d3e3b;};return a114_0x5bc0();}const fileUpload={'service':a114_0x10fcd6(0x1c7),'command':a114_0x10fcd6(0x1d5),'description':a114_0x10fcd6(0x1cc),'risk':'read','flags':[FILE_FLAG],async 'dryRun'(_0x5b0917){const _0x243d7e=a114_0x10fcd6,_0x2e1627=requireDevelopmentUploadFile(_0x5b0917[_0x243d7e(0x1d3)](_0x243d7e(0x1c7)),_0x243d7e(0x1e2));return{'method':_0x243d7e(0x1e0),'url':'/smartapi/common/uploadFile','body':{'appCode':_0x5b0917[_0x243d7e(0x1d2)],'multipart':{'file':_0x2e1627}},'description':_0x243d7e(0x1dd)+_0x2e1627[_0x243d7e(0x1de)]+'\x20to\x20development\x20app\x20'+_0x5b0917[_0x243d7e(0x1d2)]};},async 'execute'(_0xb2c1a8){const _0x29b773=a114_0x10fcd6,_0x4aba87=requireDevelopmentUploadFile(_0xb2c1a8['str'](_0x29b773(0x1c7)),_0x29b773(0x1e2)),_0x512f68=await uploadDevelopmentFile(_0xb2c1a8[_0x29b773(0x1d2)],_0x4aba87[_0x29b773(0x1de)]);return{'ok':!![],'data':_0x512f68,'message':_0x512f68['filePath']?_0x29b773(0x1e4)+_0x512f68['filePath']+_0x29b773(0x1dc):_0x29b773(0x1ce)};}},fileQueryUrl={'service':a114_0x10fcd6(0x1c7),'command':'query-url','description':a114_0x10fcd6(0x1c5),'risk':a114_0x10fcd6(0x1cb),'flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0x22012f){const _0x475121=a114_0x10fcd6,_0x56fd77=requireFilePath(_0x22012f[_0x475121(0x1d3)](_0x475121(0x1e1))),_0x56fd10=await queryDevelopmentFileUrl(_0x56fd77,{'download':_0x22012f[_0x475121(0x1c9)](_0x475121(0x1ca)),'longTerm':_0x22012f[_0x475121(0x1c9)](_0x475121(0x1d8))});return{'ok':!![],'data':_0x56fd10};}};export const fileDefinitions=[fileUpload,fileQueryUrl];
1
+ const a114_0x28b995=a114_0x329f;(function(_0x547f2b,_0x5788d8){const _0x385821=a114_0x329f,_0x1b6412=_0x547f2b();while(!![]){try{const _0x4e5c58=-parseInt(_0x385821(0x19a))/0x1+parseInt(_0x385821(0x1a1))/0x2*(parseInt(_0x385821(0x19c))/0x3)+parseInt(_0x385821(0x18c))/0x4+-parseInt(_0x385821(0x1a2))/0x5+parseInt(_0x385821(0x198))/0x6+-parseInt(_0x385821(0x194))/0x7+parseInt(_0x385821(0x199))/0x8;if(_0x4e5c58===_0x5788d8)break;else _0x1b6412['push'](_0x1b6412['shift']());}catch(_0x1ee62d){_0x1b6412['push'](_0x1b6412['shift']());}}}(a114_0x2aa7,0x9d006));function a114_0x2aa7(){const _0x402995=['File','Uploaded\x20file:\x20','Path\x20to\x20the\x20local\x20file\x20to\x20upload','/smartapi/common/uploadFile','3673971ELzyKz','upload','bool','str','1320336XtjDPl','2573600jVCGtv','97070pckTBD','string','278793EaAUVp','filePath\x20is\x20required.','Preview:\x20upload\x20','validation','query-url','8uTACbh','3057060MLSOeO','Development\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data','\x20to\x20development\x20app\x20','filePath','Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL','file','boolean','Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML','filepath','Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','path','3851732JVYlCI','long-term','read','appCode'];a114_0x2aa7=function(){return _0x402995;};return a114_0x2aa7();}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_0x28b995(0x1a7),'type':a114_0x28b995(0x19b),'required':!![],'description':a114_0x28b995(0x192)},FILEPATH_FLAG={'name':a114_0x28b995(0x1aa),'type':a114_0x28b995(0x19b),'required':!![],'description':a114_0x28b995(0x1a3)},DOWNLOAD_FLAG={'name':'download','type':a114_0x28b995(0x1a8),'description':a114_0x28b995(0x1a6)},LONG_TERM_FLAG={'name':'long-term','type':'boolean','description':a114_0x28b995(0x1a9)};function a114_0x329f(_0x426bf0,_0x23b6d4){_0x426bf0=_0x426bf0-0x189;const _0x2aa7d7=a114_0x2aa7();let _0x329f48=_0x2aa7d7[_0x426bf0];return _0x329f48;}function requireFilePath(_0x3f2f9a){const _0x145b06=a114_0x28b995,_0x4ebfe5=_0x3f2f9a['trim']();if(!_0x4ebfe5)throw CliErrors[_0x145b06(0x19f)](_0x145b06(0x19d));return _0x4ebfe5;}const fileUpload={'service':'file','command':a114_0x28b995(0x195),'description':a114_0x28b995(0x189),'risk':a114_0x28b995(0x18e),'flags':[FILE_FLAG],async 'dryRun'(_0x315405){const _0x110e87=a114_0x28b995,_0x261397=requireDevelopmentUploadFile(_0x315405[_0x110e87(0x197)](_0x110e87(0x1a7)),'File');return{'method':'POST','url':_0x110e87(0x193),'body':{'appCode':_0x315405[_0x110e87(0x18f)],'multipart':{'file':_0x261397}},'description':_0x110e87(0x19e)+_0x261397[_0x110e87(0x18b)]+_0x110e87(0x1a4)+_0x315405['appCode']};},async 'execute'(_0x3a9db5){const _0x4fceb0=a114_0x28b995,_0x15d98a=requireDevelopmentUploadFile(_0x3a9db5[_0x4fceb0(0x197)](_0x4fceb0(0x1a7)),_0x4fceb0(0x190)),_0x34433b=await uploadDevelopmentFile(_0x3a9db5[_0x4fceb0(0x18f)],_0x15d98a[_0x4fceb0(0x18b)]);return{'ok':!![],'data':_0x34433b,'message':_0x34433b[_0x4fceb0(0x1a5)]?_0x4fceb0(0x191)+_0x34433b[_0x4fceb0(0x1a5)]+'.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.':_0x4fceb0(0x18a)};}},fileQueryUrl={'service':a114_0x28b995(0x1a7),'command':a114_0x28b995(0x1a0),'description':'Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20or\x20immediate\x20access','risk':'read','flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0x840ce0){const _0x5db043=a114_0x28b995,_0x367773=requireFilePath(_0x840ce0[_0x5db043(0x197)]('filepath')),_0x465e2b=await queryDevelopmentFileUrl(_0x367773,{'download':_0x840ce0[_0x5db043(0x196)]('download'),'longTerm':_0x840ce0[_0x5db043(0x196)](_0x5db043(0x18d))});return{'ok':!![],'data':_0x465e2b};}};export const fileDefinitions=[fileUpload,fileQueryUrl];
@@ -1 +1 @@
1
- function a115_0x5e5d(_0x2847d9,_0x1d3f36){_0x2847d9=_0x2847d9-0x167;const _0x46f759=a115_0x46f7();let _0x5e5d29=_0x46f759[_0x2847d9];return _0x5e5d29;}const a115_0x4286b5=a115_0x5e5d;(function(_0x454333,_0xa0e4){const _0x59098b=a115_0x5e5d,_0x3b3b52=_0x454333();while(!![]){try{const _0xf58d9d=-parseInt(_0x59098b(0x167))/0x1*(-parseInt(_0x59098b(0x171))/0x2)+-parseInt(_0x59098b(0x16e))/0x3+parseInt(_0x59098b(0x176))/0x4*(-parseInt(_0x59098b(0x169))/0x5)+-parseInt(_0x59098b(0x173))/0x6+-parseInt(_0x59098b(0x170))/0x7*(-parseInt(_0x59098b(0x16d))/0x8)+-parseInt(_0x59098b(0x178))/0x9+parseInt(_0x59098b(0x179))/0xa*(parseInt(_0x59098b(0x17a))/0xb);if(_0xf58d9d===_0xa0e4)break;else _0x3b3b52['push'](_0x3b3b52['shift']());}catch(_0x66db96){_0x3b3b52['push'](_0x3b3b52['shift']());}}}(a115_0x46f7,0x362d4));function a115_0x46f7(){const _0x3ce7c8=['create','862644DIoPhZ','flowName','POST','2908VGeRfT','appCode','234819sXXMmm','18520IdqCsX','3399IZavZT','4IrwsCE','Create\x20a\x20draft\x20flow\x20definition\x20from\x20a\x20local\x20FlowConfig\x20file','605kiFZxt','datasetCode','Created\x20flow\x20','write','333232hdtRJI','1322874edvuQW','\x20(id=','49AsCGuh','28426iiFpLM'];a115_0x46f7=function(){return _0x3ce7c8;};return a115_0x46f7();}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{asDryRunResult}from'../../commands/common/dry-run.js';import{createFlowDefinition}from'../../core/api-client.js';import{FLOW_FILE_FLAG,FLOW_PATHS,confirmFlowWrite,flowSelector,prepareFlowWrite,readFlowFilePath}from'../../commands/flow/shared.js';export const flowCreate={'service':'flow','command':a115_0x4286b5(0x172),'description':a115_0x4286b5(0x168),'risk':a115_0x4286b5(0x16c),'flags':[FLOW_FILE_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x26f2f1){readFlowFilePath(_0x26f2f1);},async 'dryRun'(_0x461557){const _0x1053d8=a115_0x4286b5,{request:_0x543b25,warnings:_0x5157cb}=await prepareFlowWrite(readFlowFilePath(_0x461557),_0x461557['appCode']);return asDryRunResult({'operation':_0x1053d8(0x172),'selector':{'appCode':_0x461557[_0x1053d8(0x177)],'flowName':_0x543b25[_0x1053d8(0x174)],..._0x543b25[_0x1053d8(0x16a)]?{'datasetCode':_0x543b25[_0x1053d8(0x16a)]}:{}},'before':null,'after':_0x543b25,'request':_0x543b25,'dryRun':!![],'backend':{'method':_0x1053d8(0x175),'path':FLOW_PATHS[_0x1053d8(0x172)]},'warnings':_0x5157cb},{'method':'POST','url':FLOW_PATHS[_0x1053d8(0x172)]});},async 'execute'(_0x14652a){const _0x23d627=a115_0x4286b5,{request:_0x332abc,warnings:_0xa87dd6}=await prepareFlowWrite(readFlowFilePath(_0x14652a),_0x14652a[_0x23d627(0x177)]);await confirmFlowWrite(_0x14652a,'create',_0x332abc);const _0x358bfb=await createFlowDefinition(_0x332abc);return{'ok':!![],'data':{'operation':_0x23d627(0x172),'selector':flowSelector(_0x14652a['appCode'],_0x358bfb['id'],_0x358bfb),'before':null,'after':_0x358bfb,'dryRun':![],'backend':{'method':_0x23d627(0x175),'path':FLOW_PATHS[_0x23d627(0x172)]},'warnings':_0xa87dd6},'message':_0x23d627(0x16b)+(_0x358bfb['flowName']||_0x332abc[_0x23d627(0x174)])+(_0x358bfb['id']?_0x23d627(0x16f)+_0x358bfb['id']+')':'')};}};
1
+ const a115_0x2289d1=a115_0x9b3f;(function(_0xc7616a,_0x28cd60){const _0x31f7c6=a115_0x9b3f,_0x5999b5=_0xc7616a();while(!![]){try{const _0x19e539=parseInt(_0x31f7c6(0xd5))/0x1+parseInt(_0x31f7c6(0xe2))/0x2+parseInt(_0x31f7c6(0xdc))/0x3+parseInt(_0x31f7c6(0xdf))/0x4+parseInt(_0x31f7c6(0xe4))/0x5*(parseInt(_0x31f7c6(0xd7))/0x6)+parseInt(_0x31f7c6(0xd8))/0x7+-parseInt(_0x31f7c6(0xe0))/0x8;if(_0x19e539===_0x28cd60)break;else _0x5999b5['push'](_0x5999b5['shift']());}catch(_0x56a414){_0x5999b5['push'](_0x5999b5['shift']());}}}(a115_0x4b1d,0x4bca3));function a115_0x9b3f(_0x54e528,_0x6b068b){_0x54e528=_0x54e528-0xd4;const _0x4b1d61=a115_0x4b1d();let _0x9b3fd1=_0x4b1d61[_0x54e528];return _0x9b3fd1;}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{asDryRunResult}from'../../commands/common/dry-run.js';import{createFlowDefinition}from'../../core/api-client.js';function a115_0x4b1d(){const _0x50be50=['14805840IhZbCc','write','614908pHqirG','datasetCode','195WyemgV','POST','\x20(id=','98575qOTKLx','Created\x20flow\x20','48036yGjkAD','3068583daUuCf','appCode','flowName','flow','1261491bHjSrK','Create\x20a\x20draft\x20flow\x20definition\x20from\x20a\x20local\x20FlowConfig\x20file','create','2336144PQfDac'];a115_0x4b1d=function(){return _0x50be50;};return a115_0x4b1d();}import{FLOW_FILE_FLAG,FLOW_PATHS,confirmFlowWrite,flowSelector,prepareFlowWrite,readFlowFilePath}from'../../commands/flow/shared.js';export const flowCreate={'service':a115_0x2289d1(0xdb),'command':a115_0x2289d1(0xde),'description':a115_0x2289d1(0xdd),'risk':a115_0x2289d1(0xe1),'flags':[FLOW_FILE_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x51753f){readFlowFilePath(_0x51753f);},async 'dryRun'(_0x17db10){const _0x44a607=a115_0x2289d1,{request:_0xf46f5c,warnings:_0x399bd9}=await prepareFlowWrite(readFlowFilePath(_0x17db10),_0x17db10['appCode']);return asDryRunResult({'operation':_0x44a607(0xde),'selector':{'appCode':_0x17db10[_0x44a607(0xd9)],'flowName':_0xf46f5c['flowName'],..._0xf46f5c[_0x44a607(0xe3)]?{'datasetCode':_0xf46f5c[_0x44a607(0xe3)]}:{}},'before':null,'after':_0xf46f5c,'request':_0xf46f5c,'dryRun':!![],'backend':{'method':'POST','path':FLOW_PATHS[_0x44a607(0xde)]},'warnings':_0x399bd9},{'method':_0x44a607(0xe5),'url':FLOW_PATHS[_0x44a607(0xde)]});},async 'execute'(_0x34ad0f){const _0x584c2e=a115_0x2289d1,{request:_0x26ead8,warnings:_0x4bc0a6}=await prepareFlowWrite(readFlowFilePath(_0x34ad0f),_0x34ad0f[_0x584c2e(0xd9)]);await confirmFlowWrite(_0x34ad0f,'create',_0x26ead8);const _0x4a9685=await createFlowDefinition(_0x26ead8);return{'ok':!![],'data':{'operation':_0x584c2e(0xde),'selector':flowSelector(_0x34ad0f[_0x584c2e(0xd9)],_0x4a9685['id'],_0x4a9685),'before':null,'after':_0x4a9685,'dryRun':![],'backend':{'method':_0x584c2e(0xe5),'path':FLOW_PATHS[_0x584c2e(0xde)]},'warnings':_0x4bc0a6},'message':_0x584c2e(0xd6)+(_0x4a9685[_0x584c2e(0xda)]||_0x26ead8[_0x584c2e(0xda)])+(_0x4a9685['id']?_0x584c2e(0xd4)+_0x4a9685['id']+')':'')};}};
@@ -1 +1 @@
1
- function a116_0x1fe2(_0x441430,_0x64f9ac){_0x441430=_0x441430-0x1c9;const _0x4762c5=a116_0x4762();let _0x1fe2f2=_0x4762c5[_0x441430];return _0x1fe2f2;}const a116_0x2bc2fb=a116_0x1fe2;(function(_0x4cd6e2,_0x2de712){const _0x26be78=a116_0x1fe2,_0x2e0359=_0x4cd6e2();while(!![]){try{const _0x1feac9=-parseInt(_0x26be78(0x1dd))/0x1*(parseInt(_0x26be78(0x1cf))/0x2)+-parseInt(_0x26be78(0x1e0))/0x3+-parseInt(_0x26be78(0x1d8))/0x4+-parseInt(_0x26be78(0x1e5))/0x5+parseInt(_0x26be78(0x1e7))/0x6*(parseInt(_0x26be78(0x1d2))/0x7)+-parseInt(_0x26be78(0x1d3))/0x8*(-parseInt(_0x26be78(0x1c9))/0x9)+-parseInt(_0x26be78(0x1de))/0xa*(-parseInt(_0x26be78(0x1db))/0xb);if(_0x1feac9===_0x2de712)break;else _0x2e0359['push'](_0x2e0359['shift']());}catch(_0x466ced){_0x2e0359['push'](_0x2e0359['shift']());}}}(a116_0x4762,0x54224));import{mkdir,stat}from'node:fs/promises';import{dirname,resolve}from'node:path';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{getFlowDefinition}from'../../core/api-client.js';import{writeNormalizedFlowConfig}from'../../core/flow-config.js';function a116_0x4762(){const _0xc8f562=['207AsaGHd','\x20to\x20','Flow\x20','warnings','FlowConfig\x20output\x20already\x20exists:\x20','Get\x20one\x20design-time\x20flow\x20definition','6CzAerO','config','validation','959yrYZud','149992WQRTGV','Wrote\x20FlowConfig\x20for\x20','Pass\x20--force\x20to\x20overwrite\x20it.','path','code','763384NBvXNo','boolean','flowCode','11fqjgTO','ENOENT','178417kprGvq','12876790dPpWXS','str','1008762AGSLTV','EEXIST','output','flow','appCode','1901530itAojj','Write\x20a\x20portable\x20normalized\x20FlowConfig\x20JSON\x20file','2994roxdUR','flowName'];a116_0x4762=function(){return _0xc8f562;};return a116_0x4762();}import{CliErrors}from'../../errors.js';import{FLOW_ID_FLAG,flowDefinitionToConfig,readFlowId}from'../../commands/flow/shared.js';export const flowDetail={'service':a116_0x2bc2fb(0x1e3),'command':'detail','description':a116_0x2bc2fb(0x1ce),'risk':'read','flags':[FLOW_ID_FLAG,{'name':a116_0x2bc2fb(0x1e2),'type':'string','description':a116_0x2bc2fb(0x1e6)},{'name':'force','type':a116_0x2bc2fb(0x1d9),'description':'Overwrite\x20an\x20existing\x20output\x20file'},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x25820a){readFlowId(_0x25820a);},async 'execute'(_0xda3f23){const _0x244047=a116_0x2bc2fb,_0x5f4b80=readFlowId(_0xda3f23),_0x139331=_0xda3f23[_0x244047(0x1df)](_0x244047(0x1e2))['trim'](),_0x40b52a=_0x139331?resolve(_0x139331):undefined;if(_0x40b52a&&!_0xda3f23['bool']('force')&&await fileExists(_0x40b52a))throw CliErrors[_0x244047(0x1d1)](_0x244047(0x1cd)+_0x40b52a,_0x244047(0x1d5));const _0x102756=await getFlowDefinition(_0xda3f23[_0x244047(0x1e4)],_0x5f4b80);let _0x55f5b3;if(_0x40b52a){const _0x4e7ead=flowDefinitionToConfig(_0x102756);await mkdir(dirname(_0x40b52a),{'recursive':!![]});try{await writeNormalizedFlowConfig(_0x40b52a,_0x4e7ead[_0x244047(0x1d0)],{'overwrite':_0xda3f23['bool']('force')});}catch(_0xb46456){if(isAlreadyExistsError(_0xb46456))throw CliErrors[_0x244047(0x1d1)](_0x244047(0x1cd)+_0x40b52a,_0x244047(0x1d5));throw _0xb46456;}_0x55f5b3={'path':_0x40b52a,'warnings':_0x4e7ead[_0x244047(0x1cc)]};}return{'ok':!![],'data':{'flow':_0x102756,..._0x55f5b3?{'output':_0x55f5b3}:{}},'message':_0x55f5b3?_0x244047(0x1d4)+(_0x102756[_0x244047(0x1e8)]||_0x102756['flowCode']||_0x5f4b80)+_0x244047(0x1ca)+_0x55f5b3[_0x244047(0x1d6)]:_0x244047(0x1cb)+(_0x102756[_0x244047(0x1e8)]||_0x102756[_0x244047(0x1da)]||_0x5f4b80)};}};async function fileExists(_0x480ae9){try{return await stat(_0x480ae9),!![];}catch(_0x18da75){return!isNotFoundError(_0x18da75);}}function isNotFoundError(_0x502ecd){const _0x13c3c9=a116_0x2bc2fb;return _0x502ecd?.[_0x13c3c9(0x1d7)]===_0x13c3c9(0x1dc);}function isAlreadyExistsError(_0xa3084f){const _0x489708=a116_0x2bc2fb;return _0xa3084f?.[_0x489708(0x1d7)]===_0x489708(0x1e1);}
1
+ const a116_0xcbd777=a116_0x549d;(function(_0x401439,_0x5259db){const _0x36d515=a116_0x549d,_0x4955c6=_0x401439();while(!![]){try{const _0x356299=-parseInt(_0x36d515(0x148))/0x1*(parseInt(_0x36d515(0x160))/0x2)+-parseInt(_0x36d515(0x156))/0x3+parseInt(_0x36d515(0x15d))/0x4+parseInt(_0x36d515(0x159))/0x5+-parseInt(_0x36d515(0x157))/0x6*(parseInt(_0x36d515(0x151))/0x7)+-parseInt(_0x36d515(0x15a))/0x8+parseInt(_0x36d515(0x15b))/0x9;if(_0x356299===_0x5259db)break;else _0x4955c6['push'](_0x4955c6['shift']());}catch(_0x5c8bb4){_0x4955c6['push'](_0x4955c6['shift']());}}}(a116_0x2243,0x93820));import{mkdir,stat}from'node:fs/promises';import{dirname,resolve}from'node:path';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a116_0x549d(_0x480471,_0x51334e){_0x480471=_0x480471-0x148;const _0x2243be=a116_0x2243();let _0x549d8a=_0x2243be[_0x480471];return _0x549d8a;}function a116_0x2243(){const _0x2dca50=['warnings','output','flowCode','Get\x20one\x20design-time\x20flow\x20definition','187449WTwVXd','bool','path','str','FlowConfig\x20output\x20already\x20exists:\x20','Pass\x20--force\x20to\x20overwrite\x20it.','code','validation','flow','707VvvEdf','trim','Wrote\x20FlowConfig\x20for\x20','EEXIST','Write\x20a\x20portable\x20normalized\x20FlowConfig\x20JSON\x20file','3196302zbDsxw','14754suiYju','Flow\x20','5207555BSuyhL','6609064ZxTLZG','18015975FIdAdc','force','302920aKGizw','config','flowName','4UnKMyz'];a116_0x2243=function(){return _0x2dca50;};return a116_0x2243();}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':a116_0xcbd777(0x150),'command':'detail','description':a116_0xcbd777(0x164),'risk':'read','flags':[FLOW_ID_FLAG,{'name':a116_0xcbd777(0x162),'type':'string','description':a116_0xcbd777(0x155)},{'name':a116_0xcbd777(0x15c),'type':'boolean','description':'Overwrite\x20an\x20existing\x20output\x20file'},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x2d0856){readFlowId(_0x2d0856);},async 'execute'(_0x331289){const _0x2a1513=a116_0xcbd777,_0x406cc6=readFlowId(_0x331289),_0x25e63a=_0x331289[_0x2a1513(0x14b)](_0x2a1513(0x162))[_0x2a1513(0x152)](),_0x16986a=_0x25e63a?resolve(_0x25e63a):undefined;if(_0x16986a&&!_0x331289[_0x2a1513(0x149)]('force')&&await fileExists(_0x16986a))throw CliErrors[_0x2a1513(0x14f)](_0x2a1513(0x14c)+_0x16986a,_0x2a1513(0x14d));const _0x5853c2=await getFlowDefinition(_0x331289['appCode'],_0x406cc6);let _0x239846;if(_0x16986a){const _0x447e26=flowDefinitionToConfig(_0x5853c2);await mkdir(dirname(_0x16986a),{'recursive':!![]});try{await writeNormalizedFlowConfig(_0x16986a,_0x447e26[_0x2a1513(0x15e)],{'overwrite':_0x331289[_0x2a1513(0x149)](_0x2a1513(0x15c))});}catch(_0x2ce170){if(isAlreadyExistsError(_0x2ce170))throw CliErrors['validation']('FlowConfig\x20output\x20already\x20exists:\x20'+_0x16986a,_0x2a1513(0x14d));throw _0x2ce170;}_0x239846={'path':_0x16986a,'warnings':_0x447e26[_0x2a1513(0x161)]};}return{'ok':!![],'data':{'flow':_0x5853c2,..._0x239846?{'output':_0x239846}:{}},'message':_0x239846?_0x2a1513(0x153)+(_0x5853c2['flowName']||_0x5853c2[_0x2a1513(0x163)]||_0x406cc6)+'\x20to\x20'+_0x239846[_0x2a1513(0x14a)]:_0x2a1513(0x158)+(_0x5853c2[_0x2a1513(0x15f)]||_0x5853c2['flowCode']||_0x406cc6)};}};async function fileExists(_0x2f884c){try{return await stat(_0x2f884c),!![];}catch(_0x732395){return!isNotFoundError(_0x732395);}}function isNotFoundError(_0x1e121e){const _0x1c6f26=a116_0xcbd777;return _0x1e121e?.[_0x1c6f26(0x14e)]==='ENOENT';}function isAlreadyExistsError(_0x4f5f9e){const _0x41f8d5=a116_0xcbd777;return _0x4f5f9e?.[_0x41f8d5(0x14e)]===_0x41f8d5(0x154);}
@@ -1 +1 @@
1
- (function(_0x403a6e,_0x16acc0){const _0x44b782=a117_0x473f,_0x21c7c9=_0x403a6e();while(!![]){try{const _0x10e317=parseInt(_0x44b782(0x183))/0x1*(-parseInt(_0x44b782(0x17f))/0x2)+-parseInt(_0x44b782(0x17c))/0x3+-parseInt(_0x44b782(0x182))/0x4*(-parseInt(_0x44b782(0x184))/0x5)+-parseInt(_0x44b782(0x17d))/0x6+parseInt(_0x44b782(0x181))/0x7+parseInt(_0x44b782(0x185))/0x8+parseInt(_0x44b782(0x180))/0x9*(parseInt(_0x44b782(0x17e))/0xa);if(_0x10e317===_0x16acc0)break;else _0x21c7c9['push'](_0x21c7c9['shift']());}catch(_0x2fcda2){_0x21c7c9['push'](_0x21c7c9['shift']());}}}(a117_0x131e,0xc8334));import{flowValidate}from'../../commands/flow/validate.js';function a117_0x473f(_0x36505b,_0x114b2e){_0x36505b=_0x36505b-0x17c;const _0x131e0c=a117_0x131e();let _0x473f69=_0x131e0c[_0x36505b];return _0x473f69;}import{flowList}from'../../commands/flow/list.js';import{flowDetail}from'../../commands/flow/detail.js';import{flowCreate}from'../../commands/flow/create.js';import{flowUpdate}from'../../commands/flow/update.js';import{flowPublish}from'../../commands/flow/publish.js';import{flowRuntimeRoleList}from'../../commands/flow/runtime-role-list.js';function a117_0x131e(){const _0x241385=['519976DRWWVF','639sizeNX','10539767tpTfrQ','4QHYBET','6PXNAwk','5146975kMoxCW','11517936JmvtNU','2554776SvnNKi','5287386uStTtu','19430DnRYUg'];a117_0x131e=function(){return _0x241385;};return a117_0x131e();}import{flowRuntimeUserSearch}from'../../commands/flow/runtime-user-search.js';import{flowRuntimeRoleUserList}from'../../commands/flow/runtime-role-user-list.js';export const flowDefinitions=[flowValidate,flowList,flowDetail,flowCreate,flowUpdate,flowPublish,flowRuntimeRoleList,flowRuntimeUserSearch,flowRuntimeRoleUserList];
1
+ (function(_0x3193af,_0x42f12d){const _0x3f9a18=a117_0x4fee,_0x317dc7=_0x3193af();while(!![]){try{const _0x4a390c=-parseInt(_0x3f9a18(0x11e))/0x1*(parseInt(_0x3f9a18(0x11f))/0x2)+-parseInt(_0x3f9a18(0x126))/0x3*(-parseInt(_0x3f9a18(0x123))/0x4)+-parseInt(_0x3f9a18(0x122))/0x5*(-parseInt(_0x3f9a18(0x127))/0x6)+parseInt(_0x3f9a18(0x120))/0x7*(parseInt(_0x3f9a18(0x128))/0x8)+-parseInt(_0x3f9a18(0x124))/0x9+parseInt(_0x3f9a18(0x121))/0xa+-parseInt(_0x3f9a18(0x125))/0xb*(parseInt(_0x3f9a18(0x11d))/0xc);if(_0x4a390c===_0x42f12d)break;else _0x317dc7['push'](_0x317dc7['shift']());}catch(_0x35be25){_0x317dc7['push'](_0x317dc7['shift']());}}}(a117_0x4397,0xda678));import{flowValidate}from'../../commands/flow/validate.js';import{flowList}from'../../commands/flow/list.js';import{flowDetail}from'../../commands/flow/detail.js';import{flowCreate}from'../../commands/flow/create.js';import{flowUpdate}from'../../commands/flow/update.js';function a117_0x4397(){const _0x22dd3a=['13799151BvAOtN','110cOeois','45YnQWdM','6OGOirj','24tZBnkw','1058052CUBqTL','1UsucYV','96452eLhfCP','2424317ZNifDz','7521220jPSDfY','3404395mzbjDZ','236204paWVEO'];a117_0x4397=function(){return _0x22dd3a;};return a117_0x4397();}import{flowPublish}from'../../commands/flow/publish.js';function a117_0x4fee(_0xe56aa7,_0x12147a){_0xe56aa7=_0xe56aa7-0x11d;const _0x43977e=a117_0x4397();let _0x4feef2=_0x43977e[_0xe56aa7];return _0x4feef2;}import{flowRuntimeRoleList}from'../../commands/flow/runtime-role-list.js';import{flowRuntimeUserSearch}from'../../commands/flow/runtime-user-search.js';import{flowRuntimeRoleUserList}from'../../commands/flow/runtime-role-user-list.js';export const flowDefinitions=[flowValidate,flowList,flowDetail,flowCreate,flowUpdate,flowPublish,flowRuntimeRoleList,flowRuntimeUserSearch,flowRuntimeRoleUserList];
@@ -1 +1 @@
1
- const a118_0x4869ce=a118_0x5c49;(function(_0x5c0cce,_0x141c5e){const _0x7e26d2=a118_0x5c49,_0x4538d7=_0x5c0cce();while(!![]){try{const _0x3da1ea=parseInt(_0x7e26d2(0xcb))/0x1*(parseInt(_0x7e26d2(0xe9))/0x2)+parseInt(_0x7e26d2(0xe4))/0x3+-parseInt(_0x7e26d2(0xef))/0x4*(parseInt(_0x7e26d2(0xc9))/0x5)+parseInt(_0x7e26d2(0xee))/0x6*(-parseInt(_0x7e26d2(0xe7))/0x7)+-parseInt(_0x7e26d2(0xda))/0x8*(parseInt(_0x7e26d2(0xdd))/0x9)+parseInt(_0x7e26d2(0xea))/0xa*(-parseInt(_0x7e26d2(0xd5))/0xb)+parseInt(_0x7e26d2(0xdf))/0xc;if(_0x3da1ea===_0x141c5e)break;else _0x4538d7['push'](_0x4538d7['shift']());}catch(_0xe9e3f3){_0x4538d7['push'](_0x4538d7['shift']());}}}(a118_0x56d4,0xa2dae));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a118_0x56d4(){const _0x2c9469=['Filter\x20by\x20flow\x20status','7981808esWDvu','page-size','Filter\x20by\x20flow\x20type','9PjnzhO','List\x20design-time\x20flow\x20definitions\x20for\x20the\x20current\x20app','16140912oYvCBZ','published','Page\x20number\x20(1-based)','number','Filter\x20by\x20flow\x20name','2339292uAPwaC','dataset-code','--page-size\x20must\x20be\x20a\x20positive\x20integer.','70gvDMcE','appCode','1292828apwakk','80QjbsPu','validation','Found\x20','flow','545022fCnuEl','1382284qVboHL','str','flow-type','list','10KKlAiH','Filter\x20by\x20exact\x20server-generated\x20flow\x20code','2BTfUmR','isSafeInteger','flow-code','Page\x20size','\x20flow\x20definition(s)','read','page','num','flow-name','--page\x20must\x20be\x20a\x20positive\x20integer.','210892SWpUCb','flow-status','string','length'];a118_0x56d4=function(){return _0x2c9469;};return a118_0x56d4();}import{listFlowDefinitions}from'../../core/api-client.js';function a118_0x5c49(_0x6a9ce5,_0x30b6a4){_0x6a9ce5=_0x6a9ce5-0xc6;const _0x56d4db=a118_0x56d4();let _0x5c49ce=_0x56d4db[_0x6a9ce5];return _0x5c49ce;}import{CliErrors}from'../../errors.js';const FLOW_STATUSES=['draft',a118_0x4869ce(0xe0)];export const flowList={'service':a118_0x4869ce(0xed),'command':a118_0x4869ce(0xc8),'description':a118_0x4869ce(0xde),'risk':a118_0x4869ce(0xd0),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a118_0x4869ce(0xcd),'type':a118_0x4869ce(0xd7),'description':a118_0x4869ce(0xca)},{'name':a118_0x4869ce(0xd3),'type':'string','description':a118_0x4869ce(0xe3)},{'name':'flow-status','type':a118_0x4869ce(0xd7),'description':a118_0x4869ce(0xd9),'enum':FLOW_STATUSES},{'name':'dataset-code','type':a118_0x4869ce(0xd7),'description':'Filter\x20by\x20dataset\x20code'},{'name':a118_0x4869ce(0xc7),'type':'string','description':a118_0x4869ce(0xdc)},{'name':'page','type':a118_0x4869ce(0xe2),'description':a118_0x4869ce(0xe1),'default':0x1},{'name':a118_0x4869ce(0xdb),'type':'number','description':a118_0x4869ce(0xce),'default':0x14}],async 'validate'(_0x21378d){const _0x27ba6f=a118_0x4869ce,_0x4c4952=_0x21378d[_0x27ba6f(0xd2)]('page',0x1),_0x1ab2f7=_0x21378d[_0x27ba6f(0xd2)](_0x27ba6f(0xdb),0x14);if(!Number[_0x27ba6f(0xcc)](_0x4c4952)||_0x4c4952<0x1)throw CliErrors[_0x27ba6f(0xeb)](_0x27ba6f(0xd4));if(!Number[_0x27ba6f(0xcc)](_0x1ab2f7)||_0x1ab2f7<0x1)throw CliErrors[_0x27ba6f(0xeb)](_0x27ba6f(0xe6));},async 'execute'(_0x425880){const _0x247b89=a118_0x4869ce,{items:_0x17ede6,paging:_0x5d623e}=await listFlowDefinitions(_0x425880[_0x247b89(0xe8)],{'flowCode':optionalString(_0x425880[_0x247b89(0xc6)](_0x247b89(0xcd))),'flowName':optionalString(_0x425880[_0x247b89(0xc6)](_0x247b89(0xd3))),'flowStatus':optionalString(_0x425880[_0x247b89(0xc6)](_0x247b89(0xd6))),'datasetCode':optionalString(_0x425880[_0x247b89(0xc6)](_0x247b89(0xe5))),'flowType':optionalString(_0x425880['str']('flow-type')),'pageNum':_0x425880[_0x247b89(0xd2)](_0x247b89(0xd1),0x1),'pageSize':_0x425880[_0x247b89(0xd2)]('page-size',0x14)});return{'ok':!![],'data':{'appCode':_0x425880[_0x247b89(0xe8)],'flows':_0x17ede6,'paging':_0x5d623e},'message':_0x247b89(0xec)+_0x17ede6[_0x247b89(0xd8)]+_0x247b89(0xcf)};}};function optionalString(_0x3d815e){const _0x5e9048=_0x3d815e['trim']();return _0x5e9048||undefined;}
1
+ const a118_0xe8b9ff=a118_0x2383;function a118_0x2383(_0x42c497,_0x5ce3c7){_0x42c497=_0x42c497-0x106;const _0x306d99=a118_0x306d();let _0x238340=_0x306d99[_0x42c497];return _0x238340;}(function(_0x31978a,_0x44e161){const _0x506bf9=a118_0x2383,_0x2265d4=_0x31978a();while(!![]){try{const _0x44e198=-parseInt(_0x506bf9(0x122))/0x1+-parseInt(_0x506bf9(0x110))/0x2*(parseInt(_0x506bf9(0x120))/0x3)+-parseInt(_0x506bf9(0x107))/0x4*(parseInt(_0x506bf9(0x111))/0x5)+-parseInt(_0x506bf9(0x129))/0x6+-parseInt(_0x506bf9(0x10d))/0x7+-parseInt(_0x506bf9(0x118))/0x8+-parseInt(_0x506bf9(0x128))/0x9*(-parseInt(_0x506bf9(0x10a))/0xa);if(_0x44e198===_0x44e161)break;else _0x2265d4['push'](_0x2265d4['shift']());}catch(_0x5dfb34){_0x2265d4['push'](_0x2265d4['shift']());}}}(a118_0x306d,0x69a7b));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a118_0x306d(){const _0x294549=['\x20flow\x20definition(s)','number','1011310VsjYbE','trim','Page\x20number\x20(1-based)','1068543DCYndE','flow-code','Filter\x20by\x20flow\x20status','7570xXBuSA','65PBijnC','Filter\x20by\x20flow\x20name','--page\x20must\x20be\x20a\x20positive\x20integer.','flow-name','read','page','flow-status','4253184nnFOxv','Found\x20','validation','string','Page\x20size','published','Filter\x20by\x20flow\x20type','num','513jsJtGZ','page-size','387814XdnUmQ','List\x20design-time\x20flow\x20definitions\x20for\x20the\x20current\x20app','Filter\x20by\x20dataset\x20code','flow-type','appCode','draft','225EhiLiz','1865670npkRHW','str','isSafeInteger','Filter\x20by\x20exact\x20server-generated\x20flow\x20code','20068RAyZqK'];a118_0x306d=function(){return _0x294549;};return a118_0x306d();}import{listFlowDefinitions}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const FLOW_STATUSES=[a118_0xe8b9ff(0x127),a118_0xe8b9ff(0x11d)];export const flowList={'service':'flow','command':'list','description':a118_0xe8b9ff(0x123),'risk':a118_0xe8b9ff(0x115),'flags':[APPCODE_FLAG_OPTIONAL,{'name':'flow-code','type':a118_0xe8b9ff(0x11b),'description':a118_0xe8b9ff(0x106)},{'name':a118_0xe8b9ff(0x114),'type':a118_0xe8b9ff(0x11b),'description':a118_0xe8b9ff(0x112)},{'name':a118_0xe8b9ff(0x117),'type':'string','description':a118_0xe8b9ff(0x10f),'enum':FLOW_STATUSES},{'name':'dataset-code','type':a118_0xe8b9ff(0x11b),'description':a118_0xe8b9ff(0x124)},{'name':a118_0xe8b9ff(0x125),'type':a118_0xe8b9ff(0x11b),'description':a118_0xe8b9ff(0x11e)},{'name':'page','type':'number','description':a118_0xe8b9ff(0x10c),'default':0x1},{'name':a118_0xe8b9ff(0x121),'type':a118_0xe8b9ff(0x109),'description':a118_0xe8b9ff(0x11c),'default':0x14}],async 'validate'(_0x150bc8){const _0x2642af=a118_0xe8b9ff,_0x5dcfa0=_0x150bc8[_0x2642af(0x11f)](_0x2642af(0x116),0x1),_0x140aa2=_0x150bc8[_0x2642af(0x11f)](_0x2642af(0x121),0x14);if(!Number[_0x2642af(0x12b)](_0x5dcfa0)||_0x5dcfa0<0x1)throw CliErrors[_0x2642af(0x11a)](_0x2642af(0x113));if(!Number[_0x2642af(0x12b)](_0x140aa2)||_0x140aa2<0x1)throw CliErrors[_0x2642af(0x11a)]('--page-size\x20must\x20be\x20a\x20positive\x20integer.');},async 'execute'(_0x9bcab6){const _0x5d13d9=a118_0xe8b9ff,{items:_0x1dad05,paging:_0x2de07e}=await listFlowDefinitions(_0x9bcab6[_0x5d13d9(0x126)],{'flowCode':optionalString(_0x9bcab6[_0x5d13d9(0x12a)](_0x5d13d9(0x10e))),'flowName':optionalString(_0x9bcab6[_0x5d13d9(0x12a)]('flow-name')),'flowStatus':optionalString(_0x9bcab6['str'](_0x5d13d9(0x117))),'datasetCode':optionalString(_0x9bcab6[_0x5d13d9(0x12a)]('dataset-code')),'flowType':optionalString(_0x9bcab6[_0x5d13d9(0x12a)]('flow-type')),'pageNum':_0x9bcab6[_0x5d13d9(0x11f)](_0x5d13d9(0x116),0x1),'pageSize':_0x9bcab6[_0x5d13d9(0x11f)](_0x5d13d9(0x121),0x14)});return{'ok':!![],'data':{'appCode':_0x9bcab6[_0x5d13d9(0x126)],'flows':_0x1dad05,'paging':_0x2de07e},'message':_0x5d13d9(0x119)+_0x1dad05['length']+_0x5d13d9(0x108)};}};function optionalString(_0x4934c9){const _0x1f0e7d=a118_0xe8b9ff,_0x35fe35=_0x4934c9[_0x1f0e7d(0x10b)]();return _0x35fe35||undefined;}
@@ -1 +1 @@
1
- function a119_0x375a(_0x540bb2,_0x4b7c76){_0x540bb2=_0x540bb2-0x16f;const _0x324bd2=a119_0x324b();let _0x375a22=_0x324bd2[_0x540bb2];return _0x375a22;}function a119_0x324b(){const _0x4528e1=['147006lOIBet','7ZUJJpC','POST','flow','3eFCGet','Publish\x20the\x20current\x20flow\x20definition\x20draft','flowCode','Published\x20flow\x20','flowName','published','600GqwtMs','51733LsELrN','964304akjZCN','591408YZaipS','494732jauvXq','2438450wHNzSm','publish','1429893CNjWrz','1Fdpedd','5BoofKY','appCode'];a119_0x324b=function(){return _0x4528e1;};return a119_0x324b();}const a119_0x598f6f=a119_0x375a;(function(_0x2781ea,_0x3a1f82){const _0x20f776=a119_0x375a,_0x3fd874=_0x2781ea();while(!![]){try{const _0x4d23d3=-parseInt(_0x20f776(0x171))/0x1*(-parseInt(_0x20f776(0x174))/0x2)+parseInt(_0x20f776(0x178))/0x3*(-parseInt(_0x20f776(0x182))/0x4)+parseInt(_0x20f776(0x172))/0x5*(-parseInt(_0x20f776(0x181))/0x6)+-parseInt(_0x20f776(0x175))/0x7*(-parseInt(_0x20f776(0x180))/0x8)+parseInt(_0x20f776(0x170))/0x9+-parseInt(_0x20f776(0x183))/0xa+-parseInt(_0x20f776(0x17f))/0xb*(-parseInt(_0x20f776(0x17e))/0xc);if(_0x4d23d3===_0x3a1f82)break;else _0x3fd874['push'](_0x3fd874['shift']());}catch(_0x48e998){_0x3fd874['push'](_0x3fd874['shift']());}}}(a119_0x324b,0x1dc74));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{publishFlowDefinition}from'../../core/api-client.js';import{FLOW_ID_FLAG,FLOW_PATHS,buildFlowIdDryRun,flowSelector,readFlowId}from'../../commands/flow/shared.js';export const flowPublish={'service':a119_0x598f6f(0x177),'command':'publish','description':a119_0x598f6f(0x179),'risk':'high-risk-write','flags':[FLOW_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x518f5d){readFlowId(_0x518f5d);},async 'dryRun'(_0x1dfc10){const _0x1e4e6c=a119_0x598f6f,_0x5acb72=readFlowId(_0x1dfc10);return buildFlowIdDryRun(_0x1e4e6c(0x16f),FLOW_PATHS[_0x1e4e6c(0x16f)],_0x1dfc10['appCode'],_0x5acb72,{'id':_0x5acb72,'flowStatus':_0x1e4e6c(0x17d)});},async 'execute'(_0x4e6cd2){const _0x5cfbc7=a119_0x598f6f,_0xdb442f=readFlowId(_0x4e6cd2),_0xa0515d=await publishFlowDefinition(_0x4e6cd2[_0x5cfbc7(0x173)],_0xdb442f);return{'ok':!![],'data':{'operation':_0x5cfbc7(0x16f),'selector':flowSelector(_0x4e6cd2[_0x5cfbc7(0x173)],_0xdb442f,_0xa0515d),'before':null,'after':_0xa0515d,'dryRun':![],'backend':{'method':_0x5cfbc7(0x176),'path':FLOW_PATHS[_0x5cfbc7(0x16f)]},'warnings':[]},'message':_0x5cfbc7(0x17b)+(_0xa0515d[_0x5cfbc7(0x17c)]||_0xa0515d[_0x5cfbc7(0x17a)]||_0xdb442f)};}};
1
+ const a119_0x298d70=a119_0x2f52;(function(_0x3c34b7,_0x1763d3){const _0x7bd253=a119_0x2f52,_0x5db0f5=_0x3c34b7();while(!![]){try{const _0x22e5e5=-parseInt(_0x7bd253(0x171))/0x1*(parseInt(_0x7bd253(0x176))/0x2)+parseInt(_0x7bd253(0x16e))/0x3+parseInt(_0x7bd253(0x174))/0x4*(-parseInt(_0x7bd253(0x167))/0x5)+parseInt(_0x7bd253(0x16f))/0x6+parseInt(_0x7bd253(0x168))/0x7*(parseInt(_0x7bd253(0x16d))/0x8)+-parseInt(_0x7bd253(0x16c))/0x9+-parseInt(_0x7bd253(0x16a))/0xa*(parseInt(_0x7bd253(0x175))/0xb);if(_0x22e5e5===_0x1763d3)break;else _0x5db0f5['push'](_0x5db0f5['shift']());}catch(_0x472715){_0x5db0f5['push'](_0x5db0f5['shift']());}}}(a119_0x31e1,0x9038f));function a119_0x31e1(){const _0x2b5bbf=['34CYbCjz','publish','published','4tvnZsa','500533twfhJB','5462sqPVeD','flow','appCode','flowName','1540535ABTZyl','10276QDmxbV','POST','30pBYJYQ','Publish\x20the\x20current\x20flow\x20definition\x20draft','1569123NStscF','5144tsYOyg','874242AcrkTq','403284zuDrZL','high-risk-write'];a119_0x31e1=function(){return _0x2b5bbf;};return a119_0x31e1();}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{publishFlowDefinition}from'../../core/api-client.js';import{FLOW_ID_FLAG,FLOW_PATHS,buildFlowIdDryRun,flowSelector,readFlowId}from'../../commands/flow/shared.js';function a119_0x2f52(_0xf62cdf,_0x61656d){_0xf62cdf=_0xf62cdf-0x165;const _0x31e19f=a119_0x31e1();let _0x2f5222=_0x31e19f[_0xf62cdf];return _0x2f5222;}export const flowPublish={'service':a119_0x298d70(0x177),'command':a119_0x298d70(0x172),'description':a119_0x298d70(0x16b),'risk':a119_0x298d70(0x170),'flags':[FLOW_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x12c0a7){readFlowId(_0x12c0a7);},async 'dryRun'(_0x1ecbc4){const _0xd0558e=a119_0x298d70,_0xaea536=readFlowId(_0x1ecbc4);return buildFlowIdDryRun(_0xd0558e(0x172),FLOW_PATHS[_0xd0558e(0x172)],_0x1ecbc4[_0xd0558e(0x165)],_0xaea536,{'id':_0xaea536,'flowStatus':_0xd0558e(0x173)});},async 'execute'(_0x42dfb5){const _0x5c410c=a119_0x298d70,_0x257bb1=readFlowId(_0x42dfb5),_0x1a7d6b=await publishFlowDefinition(_0x42dfb5[_0x5c410c(0x165)],_0x257bb1);return{'ok':!![],'data':{'operation':_0x5c410c(0x172),'selector':flowSelector(_0x42dfb5[_0x5c410c(0x165)],_0x257bb1,_0x1a7d6b),'before':null,'after':_0x1a7d6b,'dryRun':![],'backend':{'method':_0x5c410c(0x169),'path':FLOW_PATHS[_0x5c410c(0x172)]},'warnings':[]},'message':'Published\x20flow\x20'+(_0x1a7d6b[_0x5c410c(0x166)]||_0x1a7d6b['flowCode']||_0x257bb1)};}};
@@ -1 +1 @@
1
- const a120_0x4f0e74=a120_0x495d;(function(_0x39b103,_0xc10d1e){const _0x4cb07c=a120_0x495d,_0x3738df=_0x39b103();while(!![]){try{const _0x20ef70=-parseInt(_0x4cb07c(0x1b5))/0x1+-parseInt(_0x4cb07c(0x1c5))/0x2*(parseInt(_0x4cb07c(0x1be))/0x3)+-parseInt(_0x4cb07c(0x19c))/0x4+parseInt(_0x4cb07c(0x1ac))/0x5+parseInt(_0x4cb07c(0x1ab))/0x6+parseInt(_0x4cb07c(0x1b7))/0x7+-parseInt(_0x4cb07c(0x1b6))/0x8*(-parseInt(_0x4cb07c(0x1bc))/0x9);if(_0x20ef70===_0xc10d1e)break;else _0x3738df['push'](_0x3738df['shift']());}catch(_0x113a08){_0x3738df['push'](_0x3738df['shift']());}}}(a120_0x1501,0x1a393));import{CliErrors}from'../../errors.js';export const FLOW_RUNTIME_PAGE_FLAG={'name':a120_0x4f0e74(0x1a5),'type':a120_0x4f0e74(0x19d),'description':a120_0x4f0e74(0x1c3),'default':0x1};export const FLOW_RUNTIME_PAGE_SIZE_FLAG={'name':a120_0x4f0e74(0x19e),'type':a120_0x4f0e74(0x19d),'description':a120_0x4f0e74(0x1a3),'default':0x14};function a120_0x495d(_0x5e763f,_0x4018e3){_0x5e763f=_0x5e763f-0x19a;const _0x15017e=a120_0x1501();let _0x495d91=_0x15017e[_0x5e763f];return _0x495d91;}export const FLOW_RUNTIME_ROLE_REF_FLAG={'name':a120_0x4f0e74(0x1b3),'type':'string','required':!![],'description':a120_0x4f0e74(0x1bb)};export function readRuntimePagination(_0x28e7f3){const _0x2a26b3=a120_0x4f0e74,_0x1d727e=_0x28e7f3[_0x2a26b3(0x1a2)](_0x2a26b3(0x1a5),0x1),_0x49399d=_0x28e7f3[_0x2a26b3(0x1a2)]('page-size',0x14);if(!Number[_0x2a26b3(0x1a0)](_0x1d727e)||_0x1d727e<0x1)throw CliErrors[_0x2a26b3(0x1ae)](_0x2a26b3(0x1c2));if(!Number['isSafeInteger'](_0x49399d)||_0x49399d<0x1||_0x49399d>0x64)throw CliErrors[_0x2a26b3(0x1ae)](_0x2a26b3(0x1a6));return{'page':_0x1d727e,'pageSize':_0x49399d};}export function paginateRuntimeItems(_0x49384a,_0x344a52,_0x5b65a6){const _0x1d663a=a120_0x4f0e74,_0x2fc163=(_0x344a52-0x1)*_0x5b65a6;return{'items':_0x49384a[_0x1d663a(0x1a1)](_0x2fc163,_0x2fc163+_0x5b65a6),'paging':{'currentPage':_0x344a52,'pageSize':_0x5b65a6,'totalCount':_0x49384a[_0x1d663a(0x1a7)]}};}export function projectRuntimeRole(_0x5363c1){const _0x558722=a120_0x4f0e74;return{'id':_0x5363c1['id'],'roleName':_0x5363c1['roleName']??null,'roleType':_0x5363c1[_0x558722(0x1b4)]??null,'remark':_0x5363c1[_0x558722(0x1bd)]??null,'userCount':_0x5363c1[_0x558722(0x19b)]??0x0,'permitCount':_0x5363c1['permitCount']??0x0};}function a120_0x1501(){const _0x2f7df9=['remark','843zRwHGh','\x22\x20not\x20found\x20in\x20app\x20','join','test','--page\x20must\x20be\x20a\x20positive\x20integer.','Page\x20index\x20(1-based)','nickName','400MoMxhm','filter','userCount','289320QPtwuG','number','page-size','trim','isSafeInteger','slice','num','Page\x20size\x20(1-100)','Runtime\x20role\x20name\x20\x22','page','--page-size\x20must\x20be\x20an\x20integer\x20between\x201\x20and\x20100.','length','userId','username','string','483330aGLmpb','362995FATiAV','code','validation','displayName','nickname','Disambiguate\x20with\x20--role\x20<id>.','roleName','role','roleType','18487CRQxLo','3624YZarCK','445725IjeCNY','map','Run\x20`flow\x20runtime-role-list`\x20to\x20see\x20runtime\x20roles.','Pass\x20--role\x20<id|name>.','Runtime\x20role\x20id\x20or\x20exact\x20role\x20name','747cYfwBv'];a120_0x1501=function(){return _0x2f7df9;};return a120_0x1501();}export function projectRuntimeUser(_0x36f947){const _0x2705e5=a120_0x4f0e74,_0x566a97=normalizeRuntimeUserId(_0x36f947[_0x2705e5(0x1ad)]);if(!_0x566a97)return null;return{'userId':_0x566a97,'username':_0x36f947['userName']??null,'nickname':_0x36f947[_0x2705e5(0x1c4)]??null,'displayName':_0x36f947[_0x2705e5(0x1af)]??null,'email':_0x36f947['email']??null,'status':_0x36f947['status']??null};}export function projectRuntimeRoleMember(_0x2cde7b){const _0x3a0542=a120_0x4f0e74,_0x36bc98=normalizeRuntimeUserId(_0x2cde7b[_0x3a0542(0x1a8)]);if(!_0x36bc98)return null;return{'userId':_0x36bc98,'username':_0x2cde7b[_0x3a0542(0x1a9)]??null,'nickname':_0x2cde7b[_0x3a0542(0x1b0)]??null};}export function readRuntimeRoleRef(_0x508793){const _0xe05e05=a120_0x4f0e74,_0x39764d=_0x508793['str'](_0xe05e05(0x1b3))[_0xe05e05(0x19f)]();if(!_0x39764d)throw CliErrors['flagMissing'](_0xe05e05(0x1b3),_0xe05e05(0x1ba));return _0x39764d;}export function resolveRuntimeRoleGroup(_0x475ea8,_0x540de6,_0x161ea5){const _0xc7c5fa=a120_0x4f0e74,_0x454bbd=/^\d+$/[_0xc7c5fa(0x1c1)](_0x540de6)?_0x161ea5['filter'](_0x30bd61=>_0x30bd61['id']===Number(_0x540de6)):_0x161ea5[_0xc7c5fa(0x19a)](_0x507ab9=>_0x507ab9[_0xc7c5fa(0x1b2)]===_0x540de6);if(_0x454bbd[_0xc7c5fa(0x1a7)]===0x0)throw CliErrors[_0xc7c5fa(0x1ae)]('Runtime\x20role\x20\x22'+_0x540de6+_0xc7c5fa(0x1bf)+_0x475ea8+'.',_0xc7c5fa(0x1b9));if(_0x454bbd[_0xc7c5fa(0x1a7)]>0x1){const _0x4d905b=_0x454bbd[_0xc7c5fa(0x1b8)](_0x301ae6=>_0x301ae6['id'])[_0xc7c5fa(0x1c0)](',\x20');throw CliErrors['validation'](_0xc7c5fa(0x1a4)+_0x540de6+'\x22\x20is\x20ambiguous\x20(ids:\x20'+_0x4d905b+').',_0xc7c5fa(0x1b1));}return _0x454bbd[0x0];}function normalizeRuntimeUserId(_0x2edaf2){const _0x42fcd4=a120_0x4f0e74;if(typeof _0x2edaf2!==_0x42fcd4(0x1aa)&&typeof _0x2edaf2!=='number')return null;const _0x22a77e=String(_0x2edaf2)[_0x42fcd4(0x19f)]();return _0x22a77e||null;}
1
+ const a120_0x15a26e=a120_0x1014;(function(_0x588ce3,_0x5c60e4){const _0x1cc978=a120_0x1014,_0x234bb2=_0x588ce3();while(!![]){try{const _0x33185d=-parseInt(_0x1cc978(0xa3))/0x1+parseInt(_0x1cc978(0xaa))/0x2+parseInt(_0x1cc978(0xb0))/0x3*(-parseInt(_0x1cc978(0x98))/0x4)+-parseInt(_0x1cc978(0x91))/0x5+parseInt(_0x1cc978(0x9c))/0x6+-parseInt(_0x1cc978(0xa2))/0x7+parseInt(_0x1cc978(0x8e))/0x8*(parseInt(_0x1cc978(0x99))/0x9);if(_0x33185d===_0x5c60e4)break;else _0x234bb2['push'](_0x234bb2['shift']());}catch(_0x1cd9c4){_0x234bb2['push'](_0x234bb2['shift']());}}}(a120_0x2eef,0x24b7a));import{CliErrors}from'../../errors.js';export const FLOW_RUNTIME_PAGE_FLAG={'name':a120_0x15a26e(0xad),'type':'number','description':a120_0x15a26e(0xa8),'default':0x1};export const FLOW_RUNTIME_PAGE_SIZE_FLAG={'name':'page-size','type':a120_0x15a26e(0xa7),'description':a120_0x15a26e(0xa9),'default':0x14};export const FLOW_RUNTIME_ROLE_REF_FLAG={'name':'role','type':a120_0x15a26e(0x95),'required':!![],'description':a120_0x15a26e(0x9f)};export function readRuntimePagination(_0x19eb06){const _0x4394cc=a120_0x15a26e,_0x340931=_0x19eb06['num'](_0x4394cc(0xad),0x1),_0x594c59=_0x19eb06['num']('page-size',0x14);if(!Number[_0x4394cc(0x93)](_0x340931)||_0x340931<0x1)throw CliErrors[_0x4394cc(0x8f)](_0x4394cc(0xab));if(!Number['isSafeInteger'](_0x594c59)||_0x594c59<0x1||_0x594c59>0x64)throw CliErrors[_0x4394cc(0x8f)](_0x4394cc(0x90));return{'page':_0x340931,'pageSize':_0x594c59};}export function paginateRuntimeItems(_0x133faf,_0x169a56,_0x5c11d7){const _0x5ef4e5=a120_0x15a26e,_0x2293c3=(_0x169a56-0x1)*_0x5c11d7;return{'items':_0x133faf[_0x5ef4e5(0x96)](_0x2293c3,_0x2293c3+_0x5c11d7),'paging':{'currentPage':_0x169a56,'pageSize':_0x5c11d7,'totalCount':_0x133faf['length']}};}function a120_0x2eef(){const _0x42efd7=['isSafeInteger','trim','string','slice','userName','4HfVsiw','18vavnsY','email','code','944424BpRMRF','length','nickname','Runtime\x20role\x20id\x20or\x20exact\x20role\x20name','userId','status','1501206DKKqEc','125709hNDNbg','nickName','Runtime\x20role\x20name\x20\x22','Runtime\x20role\x20\x22','number','Page\x20index\x20(1-based)','Page\x20size\x20(1-100)','4640JyTgvQ','--page\x20must\x20be\x20a\x20positive\x20integer.','permitCount','page','filter','roleName','769251XTpejq','displayName','flagMissing','Pass\x20--role\x20<id|name>.','\x22\x20is\x20ambiguous\x20(ids:\x20','roleType','test','role','userCount','Run\x20`flow\x20runtime-role-list`\x20to\x20see\x20runtime\x20roles.','2736296BRBSfw','validation','--page-size\x20must\x20be\x20an\x20integer\x20between\x201\x20and\x20100.','484100fQgpJg','username'];a120_0x2eef=function(){return _0x42efd7;};return a120_0x2eef();}export function projectRuntimeRole(_0x470cec){const _0x401195=a120_0x15a26e;return{'id':_0x470cec['id'],'roleName':_0x470cec[_0x401195(0xaf)]??null,'roleType':_0x470cec[_0x401195(0xb5)]??null,'remark':_0x470cec['remark']??null,'userCount':_0x470cec[_0x401195(0xb8)]??0x0,'permitCount':_0x470cec[_0x401195(0xac)]??0x0};}export function projectRuntimeUser(_0x17d583){const _0x24b94d=a120_0x15a26e,_0x5a4bca=normalizeRuntimeUserId(_0x17d583[_0x24b94d(0x9b)]);if(!_0x5a4bca)return null;return{'userId':_0x5a4bca,'username':_0x17d583[_0x24b94d(0x97)]??null,'nickname':_0x17d583[_0x24b94d(0xa4)]??null,'displayName':_0x17d583[_0x24b94d(0xb1)]??null,'email':_0x17d583[_0x24b94d(0x9a)]??null,'status':_0x17d583[_0x24b94d(0xa1)]??null};}export function projectRuntimeRoleMember(_0x25435a){const _0x34ae2d=a120_0x15a26e,_0x5c7386=normalizeRuntimeUserId(_0x25435a[_0x34ae2d(0xa0)]);if(!_0x5c7386)return null;return{'userId':_0x5c7386,'username':_0x25435a[_0x34ae2d(0x92)]??null,'nickname':_0x25435a[_0x34ae2d(0x9e)]??null};}export function readRuntimeRoleRef(_0x1dd4d8){const _0x28f98e=a120_0x15a26e,_0x16d5f8=_0x1dd4d8['str'](_0x28f98e(0xb7))[_0x28f98e(0x94)]();if(!_0x16d5f8)throw CliErrors[_0x28f98e(0xb2)](_0x28f98e(0xb7),_0x28f98e(0xb3));return _0x16d5f8;}function a120_0x1014(_0x549307,_0x53d235){_0x549307=_0x549307-0x8d;const _0x2eefc1=a120_0x2eef();let _0x1014e8=_0x2eefc1[_0x549307];return _0x1014e8;}export function resolveRuntimeRoleGroup(_0x46483e,_0x4d19f8,_0x42681e){const _0x26d1bd=a120_0x15a26e,_0xfe7622=/^\d+$/[_0x26d1bd(0xb6)](_0x4d19f8)?_0x42681e[_0x26d1bd(0xae)](_0x3252f2=>_0x3252f2['id']===Number(_0x4d19f8)):_0x42681e['filter'](_0x91920e=>_0x91920e[_0x26d1bd(0xaf)]===_0x4d19f8);if(_0xfe7622[_0x26d1bd(0x9d)]===0x0)throw CliErrors['validation'](_0x26d1bd(0xa6)+_0x4d19f8+'\x22\x20not\x20found\x20in\x20app\x20'+_0x46483e+'.',_0x26d1bd(0x8d));if(_0xfe7622[_0x26d1bd(0x9d)]>0x1){const _0x4fd646=_0xfe7622['map'](_0x543a4c=>_0x543a4c['id'])['join'](',\x20');throw CliErrors['validation'](_0x26d1bd(0xa5)+_0x4d19f8+_0x26d1bd(0xb4)+_0x4fd646+').','Disambiguate\x20with\x20--role\x20<id>.');}return _0xfe7622[0x0];}function normalizeRuntimeUserId(_0x1f32f7){const _0x323ec8=a120_0x15a26e;if(typeof _0x1f32f7!=='string'&&typeof _0x1f32f7!==_0x323ec8(0xa7))return null;const _0x43cc1a=String(_0x1f32f7)[_0x323ec8(0x94)]();return _0x43cc1a||null;}
@@ -1 +1 @@
1
- const a121_0x25d0a2=a121_0x33dd;(function(_0x2923dc,_0x5b1f50){const _0x3f32b3=a121_0x33dd,_0x3da28b=_0x2923dc();while(!![]){try{const _0x1a1246=parseInt(_0x3f32b3(0x11a))/0x1*(parseInt(_0x3f32b3(0x110))/0x2)+-parseInt(_0x3f32b3(0x10a))/0x3*(parseInt(_0x3f32b3(0x117))/0x4)+parseInt(_0x3f32b3(0x114))/0x5*(-parseInt(_0x3f32b3(0x10e))/0x6)+-parseInt(_0x3f32b3(0x113))/0x7+-parseInt(_0x3f32b3(0x10f))/0x8*(-parseInt(_0x3f32b3(0x111))/0x9)+-parseInt(_0x3f32b3(0x11b))/0xa+parseInt(_0x3f32b3(0x10b))/0xb;if(_0x1a1246===_0x5b1f50)break;else _0x3da28b['push'](_0x3da28b['shift']());}catch(_0x27dbd1){_0x3da28b['push'](_0x3da28b['shift']());}}}(a121_0x4247,0x1acf5));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{FLOW_RUNTIME_PAGE_FLAG,FLOW_RUNTIME_PAGE_SIZE_FLAG,projectRuntimeRole,readRuntimePagination}from'../../commands/flow/runtime-resources-shared.js';import{listApprovalRuntimeRoles}from'../../core/api-client.js';function a121_0x33dd(_0x59e135,_0x5d1463){_0x59e135=_0x59e135-0x107;const _0x424762=a121_0x4247();let _0x33ddc2=_0x424762[_0x59e135];return _0x33ddc2;}export const flowRuntimeRoleList={'service':a121_0x25d0a2(0x108),'command':'runtime-role-list','description':a121_0x25d0a2(0x118),'risk':'read','flags':[{'name':a121_0x25d0a2(0x116),'type':a121_0x25d0a2(0x10d),'description':a121_0x25d0a2(0x115)},FLOW_RUNTIME_PAGE_FLAG,FLOW_RUNTIME_PAGE_SIZE_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x3da6a6){readRuntimePagination(_0x3da6a6);},async 'execute'(_0x287f47){const _0x54eed1=a121_0x25d0a2,{page:_0x589b08,pageSize:_0x5e79c8}=readRuntimePagination(_0x287f47),_0xbdbdb1=_0x287f47[_0x54eed1(0x107)](_0x54eed1(0x116))[_0x54eed1(0x119)](),{items:_0x4c4017,paging:_0x5537b8}=await listApprovalRuntimeRoles(_0x287f47[_0x54eed1(0x109)],{..._0xbdbdb1?{'roleName':_0xbdbdb1}:{},'currentPage':_0x589b08,'pageSize':_0x5e79c8}),_0x582e5d=_0x4c4017[_0x54eed1(0x10c)](projectRuntimeRole);return{'ok':!![],'data':{'appCode':_0x287f47[_0x54eed1(0x109)],'scope':_0x54eed1(0x112),..._0xbdbdb1?{'keyword':_0xbdbdb1}:{},'roles':_0x582e5d,'paging':_0x5537b8},'message':'Found\x20'+_0x582e5d['length']+'\x20runtime\x20role(s)'};}};function a121_0x4247(){const _0x47c428=['flow','appCode','10713rtCvZP','6464876pROieN','map','string','180xHRztG','2808dxCheb','9378hwocfI','603pFzDVv','runtime','1407315aamqCM','24585oIyaOX','Optional\x20runtime\x20role-name\x20keyword','keyword','76vmgNvI','List\x20runtime\x20app\x20roles\x20for\x20approval\x20assignee\x20selection','trim','9notuPP','1272170fuNsYl','str'];a121_0x4247=function(){return _0x47c428;};return a121_0x4247();}
1
+ const a121_0x4e4101=a121_0x396d;(function(_0x20e82f,_0x1c2349){const _0x25f319=a121_0x396d,_0x3c964c=_0x20e82f();while(!![]){try{const _0x40b2bf=-parseInt(_0x25f319(0x1d2))/0x1+-parseInt(_0x25f319(0x1dc))/0x2*(parseInt(_0x25f319(0x1e1))/0x3)+-parseInt(_0x25f319(0x1db))/0x4+-parseInt(_0x25f319(0x1d5))/0x5*(parseInt(_0x25f319(0x1dd))/0x6)+parseInt(_0x25f319(0x1da))/0x7+-parseInt(_0x25f319(0x1de))/0x8+parseInt(_0x25f319(0x1d9))/0x9;if(_0x40b2bf===_0x1c2349)break;else _0x3c964c['push'](_0x3c964c['shift']());}catch(_0x8a9996){_0x3c964c['push'](_0x3c964c['shift']());}}}(a121_0x3c37,0x63d9b));function a121_0x3c37(){const _0x25942e=['flow','runtime','5rXyKZu','List\x20runtime\x20app\x20roles\x20for\x20approval\x20assignee\x20selection','str','string','32712282uuXDGE','277417JUejiU','2855940PuPYje','721394UoUfKH','1913574vOGobv','5783448oKYyUu','Found\x20','length','6REmhhy','Optional\x20runtime\x20role-name\x20keyword','appCode','read','keyword','788103vwZoUk'];a121_0x3c37=function(){return _0x25942e;};return a121_0x3c37();}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{FLOW_RUNTIME_PAGE_FLAG,FLOW_RUNTIME_PAGE_SIZE_FLAG,projectRuntimeRole,readRuntimePagination}from'../../commands/flow/runtime-resources-shared.js';function a121_0x396d(_0x142f87,_0x1f8579){_0x142f87=_0x142f87-0x1d0;const _0x3c37c9=a121_0x3c37();let _0x396d7e=_0x3c37c9[_0x142f87];return _0x396d7e;}import{listApprovalRuntimeRoles}from'../../core/api-client.js';export const flowRuntimeRoleList={'service':a121_0x4e4101(0x1d3),'command':'runtime-role-list','description':a121_0x4e4101(0x1d6),'risk':a121_0x4e4101(0x1d0),'flags':[{'name':a121_0x4e4101(0x1d1),'type':a121_0x4e4101(0x1d8),'description':a121_0x4e4101(0x1e2)},FLOW_RUNTIME_PAGE_FLAG,FLOW_RUNTIME_PAGE_SIZE_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x3f7435){readRuntimePagination(_0x3f7435);},async 'execute'(_0x58fddf){const _0x3bb278=a121_0x4e4101,{page:_0x2073f0,pageSize:_0x4cee56}=readRuntimePagination(_0x58fddf),_0x362d30=_0x58fddf[_0x3bb278(0x1d7)](_0x3bb278(0x1d1))['trim'](),{items:_0x5e1143,paging:_0x25ffe6}=await listApprovalRuntimeRoles(_0x58fddf[_0x3bb278(0x1e3)],{..._0x362d30?{'roleName':_0x362d30}:{},'currentPage':_0x2073f0,'pageSize':_0x4cee56}),_0x22c514=_0x5e1143['map'](projectRuntimeRole);return{'ok':!![],'data':{'appCode':_0x58fddf[_0x3bb278(0x1e3)],'scope':_0x3bb278(0x1d4),..._0x362d30?{'keyword':_0x362d30}:{},'roles':_0x22c514,'paging':_0x25ffe6},'message':_0x3bb278(0x1df)+_0x22c514[_0x3bb278(0x1e0)]+'\x20runtime\x20role(s)'};}};
@@ -1 +1 @@
1
- const a122_0x115234=a122_0x45ea;function a122_0x45b9(){const _0x25e6ed=['775250KAcsCQ','4425384txLxoN','719115nbnQjW','map','45578uNTpeL','filter','userList','paging','768380zAOkBE','3039906LEKRWy','8598987yykMdO','items','length','Found\x20','roleType','flow','runtime-role-user-list','3ctCbcF','List\x20members\x20of\x20one\x20runtime\x20app\x20role\x20for\x20approval\x20verification','\x20runtime\x20member(s)\x20in\x20role\x20','runtime','6HbooyM','appCode','roleName'];a122_0x45b9=function(){return _0x25e6ed;};return a122_0x45b9();}(function(_0x24359c,_0x51932b){const _0x5658d4=a122_0x45ea,_0x4bb721=_0x24359c();while(!![]){try{const _0x57d313=-parseInt(_0x5658d4(0xb5))/0x1*(-parseInt(_0x5658d4(0xc0))/0x2)+parseInt(_0x5658d4(0xad))/0x3+-parseInt(_0x5658d4(0xac))/0x4+-parseInt(_0x5658d4(0xbe))/0x5*(-parseInt(_0x5658d4(0xb9))/0x6)+-parseInt(_0x5658d4(0xbc))/0x7+parseInt(_0x5658d4(0xbd))/0x8+-parseInt(_0x5658d4(0xae))/0x9;if(_0x57d313===_0x51932b)break;else _0x4bb721['push'](_0x4bb721['shift']());}catch(_0x44e742){_0x4bb721['push'](_0x4bb721['shift']());}}}(a122_0x45b9,0x7f0b9));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a122_0x45ea(_0x31e3b1,_0x249e12){_0x31e3b1=_0x31e3b1-0xaa;const _0x45b979=a122_0x45b9();let _0x45ead9=_0x45b979[_0x31e3b1];return _0x45ead9;}import{FLOW_RUNTIME_PAGE_FLAG,FLOW_RUNTIME_PAGE_SIZE_FLAG,FLOW_RUNTIME_ROLE_REF_FLAG,paginateRuntimeItems,projectRuntimeRoleMember,readRuntimePagination,readRuntimeRoleRef,resolveRuntimeRoleGroup}from'../../commands/flow/runtime-resources-shared.js';import{listApprovalRuntimeRoleUsers}from'../../core/api-client.js';export const flowRuntimeRoleUserList={'service':a122_0x115234(0xb3),'command':a122_0x115234(0xb4),'description':a122_0x115234(0xb6),'risk':'read','flags':[FLOW_RUNTIME_ROLE_REF_FLAG,FLOW_RUNTIME_PAGE_FLAG,FLOW_RUNTIME_PAGE_SIZE_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x15f31f){readRuntimeRoleRef(_0x15f31f),readRuntimePagination(_0x15f31f);},async 'execute'(_0x5993ca){const _0x1e90dd=a122_0x115234,_0x160c1c=resolveRuntimeRoleGroup(_0x5993ca[_0x1e90dd(0xba)],readRuntimeRoleRef(_0x5993ca),await listApprovalRuntimeRoleUsers(_0x5993ca[_0x1e90dd(0xba)])),_0x5c476c=(_0x160c1c[_0x1e90dd(0xaa)]??[])[_0x1e90dd(0xbf)](projectRuntimeRoleMember)[_0x1e90dd(0xc1)](_0x42d1b3=>_0x42d1b3!==null),{page:_0xb8aa58,pageSize:_0x1fff03}=readRuntimePagination(_0x5993ca),_0x4f8c0b=paginateRuntimeItems(_0x5c476c,_0xb8aa58,_0x1fff03);return{'ok':!![],'data':{'appCode':_0x5993ca['appCode'],'scope':_0x1e90dd(0xb8),'role':{'id':_0x160c1c['id'],'roleName':_0x160c1c[_0x1e90dd(0xbb)]??null,'roleType':_0x160c1c[_0x1e90dd(0xb2)]??null},'users':_0x4f8c0b[_0x1e90dd(0xaf)],'paging':_0x4f8c0b[_0x1e90dd(0xab)]},'message':_0x1e90dd(0xb1)+_0x5c476c[_0x1e90dd(0xb0)]+_0x1e90dd(0xb7)+(_0x160c1c['roleName']??_0x160c1c['id'])};}};
1
+ function a122_0x4bc7(_0x4e8599,_0x575f01){_0x4e8599=_0x4e8599-0xaf;const _0x21c9f7=a122_0x21c9();let _0x4bc784=_0x21c9f7[_0x4e8599];return _0x4bc784;}const a122_0x3c6a14=a122_0x4bc7;(function(_0x138ad2,_0x2c850d){const _0xa1b106=a122_0x4bc7,_0x6fd93e=_0x138ad2();while(!![]){try{const _0x3867b7=-parseInt(_0xa1b106(0xbe))/0x1*(-parseInt(_0xa1b106(0xbd))/0x2)+parseInt(_0xa1b106(0xb3))/0x3+-parseInt(_0xa1b106(0xb0))/0x4+-parseInt(_0xa1b106(0xaf))/0x5*(parseInt(_0xa1b106(0xc0))/0x6)+parseInt(_0xa1b106(0xb7))/0x7+parseInt(_0xa1b106(0xbc))/0x8*(-parseInt(_0xa1b106(0xb9))/0x9)+parseInt(_0xa1b106(0xba))/0xa;if(_0x3867b7===_0x2c850d)break;else _0x6fd93e['push'](_0x6fd93e['shift']());}catch(_0x1a6c96){_0x6fd93e['push'](_0x6fd93e['shift']());}}}(a122_0x21c9,0x5e3e4));function a122_0x21c9(){const _0x2fd382=['runtime','8IhcHqm','202NYiGlr','1012UhVejO','paging','402768sGlYZm','5KKWxhq','665672soxAOm','flow','roleType','1472787pSeREd','read','map','filter','2893919INnnry','appCode','5447529rKHZpN','2182890YTlNai'];a122_0x21c9=function(){return _0x2fd382;};return a122_0x21c9();}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{FLOW_RUNTIME_PAGE_FLAG,FLOW_RUNTIME_PAGE_SIZE_FLAG,FLOW_RUNTIME_ROLE_REF_FLAG,paginateRuntimeItems,projectRuntimeRoleMember,readRuntimePagination,readRuntimeRoleRef,resolveRuntimeRoleGroup}from'../../commands/flow/runtime-resources-shared.js';import{listApprovalRuntimeRoleUsers}from'../../core/api-client.js';export const flowRuntimeRoleUserList={'service':a122_0x3c6a14(0xb1),'command':'runtime-role-user-list','description':'List\x20members\x20of\x20one\x20runtime\x20app\x20role\x20for\x20approval\x20verification','risk':a122_0x3c6a14(0xb4),'flags':[FLOW_RUNTIME_ROLE_REF_FLAG,FLOW_RUNTIME_PAGE_FLAG,FLOW_RUNTIME_PAGE_SIZE_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x4f03a1){readRuntimeRoleRef(_0x4f03a1),readRuntimePagination(_0x4f03a1);},async 'execute'(_0xadb10f){const _0x3fb5b3=a122_0x3c6a14,_0x437b9f=resolveRuntimeRoleGroup(_0xadb10f['appCode'],readRuntimeRoleRef(_0xadb10f),await listApprovalRuntimeRoleUsers(_0xadb10f[_0x3fb5b3(0xb8)])),_0x216731=(_0x437b9f['userList']??[])[_0x3fb5b3(0xb5)](projectRuntimeRoleMember)[_0x3fb5b3(0xb6)](_0xb74519=>_0xb74519!==null),{page:_0x2b68cb,pageSize:_0x1420e9}=readRuntimePagination(_0xadb10f),_0x15a67d=paginateRuntimeItems(_0x216731,_0x2b68cb,_0x1420e9);return{'ok':!![],'data':{'appCode':_0xadb10f[_0x3fb5b3(0xb8)],'scope':_0x3fb5b3(0xbb),'role':{'id':_0x437b9f['id'],'roleName':_0x437b9f['roleName']??null,'roleType':_0x437b9f[_0x3fb5b3(0xb2)]??null},'users':_0x15a67d['items'],'paging':_0x15a67d[_0x3fb5b3(0xbf)]},'message':'Found\x20'+_0x216731['length']+'\x20runtime\x20member(s)\x20in\x20role\x20'+(_0x437b9f['roleName']??_0x437b9f['id'])};}};
@@ -1 +1 @@
1
- function a123_0x2132(_0x2aca8e,_0x136ce9){_0x2aca8e=_0x2aca8e-0xa1;const _0x3ab106=a123_0x3ab1();let _0x213209=_0x3ab106[_0x2aca8e];return _0x213209;}const a123_0x339a79=a123_0x2132;(function(_0x171797,_0x1bfa1e){const _0x150154=a123_0x2132,_0x40a2e1=_0x171797();while(!![]){try{const _0x53d6a6=parseInt(_0x150154(0xa7))/0x1*(-parseInt(_0x150154(0xb7))/0x2)+parseInt(_0x150154(0xb8))/0x3*(-parseInt(_0x150154(0xb3))/0x4)+-parseInt(_0x150154(0xba))/0x5*(parseInt(_0x150154(0xaa))/0x6)+parseInt(_0x150154(0xac))/0x7+-parseInt(_0x150154(0xa5))/0x8*(parseInt(_0x150154(0xbc))/0x9)+-parseInt(_0x150154(0xa8))/0xa+parseInt(_0x150154(0xb5))/0xb*(parseInt(_0x150154(0xbb))/0xc);if(_0x53d6a6===_0x1bfa1e)break;else _0x40a2e1['push'](_0x40a2e1['shift']());}catch(_0x173a9c){_0x40a2e1['push'](_0x40a2e1['shift']());}}}(a123_0x3ab1,0x6b40f));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a123_0x3ab1(){const _0x92ca0a=['4570573NjXjIn','\x20runtime\x20app\x20user(s)\x20matching\x20\x22','items','some','code','Search\x20runtime\x20app\x20users\x20for\x20approval\x20assignee\x20selection','map','202748mRjMji','length','175967CAeYOZ','read','1161052LZhRwy','3MzfyKx','filter','5xkDnrW','1236dDyEmH','7745274yvSqhE','runtime-user-search','trim','flow','keyword','userName','displayName','flagMissing','str','8cqPYif','appCode','1SJjDkQ','2876240UECeSj','toLowerCase','491376xRcHca','nickName'];a123_0x3ab1=function(){return _0x92ca0a;};return a123_0x3ab1();}import{FLOW_RUNTIME_PAGE_FLAG,FLOW_RUNTIME_PAGE_SIZE_FLAG,paginateRuntimeItems,projectRuntimeUser,readRuntimePagination}from'../../commands/flow/runtime-resources-shared.js';import{listApprovalRuntimeUsers}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';export const flowRuntimeUserSearch={'service':a123_0x339a79(0xbf),'command':a123_0x339a79(0xbd),'description':a123_0x339a79(0xb1),'risk':a123_0x339a79(0xb6),'flags':[{'name':'keyword','type':'string','required':!![],'description':'User\x20id,\x20username,\x20nickname,\x20display\x20name,\x20or\x20email\x20keyword'},FLOW_RUNTIME_PAGE_FLAG,FLOW_RUNTIME_PAGE_SIZE_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x5457df){const _0x36e773=a123_0x339a79;if(!_0x5457df[_0x36e773(0xa4)](_0x36e773(0xc0))[_0x36e773(0xbe)]())throw CliErrors[_0x36e773(0xa3)](_0x36e773(0xc0),'Pass\x20--keyword\x20<text>.');readRuntimePagination(_0x5457df);},async 'execute'(_0x1b15ab){const _0x415b1c=a123_0x339a79,_0x492c46=_0x1b15ab[_0x415b1c(0xa4)](_0x415b1c(0xc0))['trim'](),_0x118e26=_0x492c46[_0x415b1c(0xa9)](),_0x100410=(await listApprovalRuntimeUsers(_0x1b15ab[_0x415b1c(0xa6)]))[_0x415b1c(0xb9)](_0xa98dfa=>[_0xa98dfa[_0x415b1c(0xb0)],_0xa98dfa[_0x415b1c(0xa1)],_0xa98dfa[_0x415b1c(0xab)],_0xa98dfa[_0x415b1c(0xa2)],_0xa98dfa['email']][_0x415b1c(0xaf)](_0x14b166=>_0x14b166!==null&&_0x14b166!==undefined&&String(_0x14b166)[_0x415b1c(0xa9)]()['includes'](_0x118e26)))[_0x415b1c(0xb2)](projectRuntimeUser)[_0x415b1c(0xb9)](_0x5e4f54=>_0x5e4f54!==null),{page:_0x3626d1,pageSize:_0x2fb748}=readRuntimePagination(_0x1b15ab),_0x597e44=paginateRuntimeItems(_0x100410,_0x3626d1,_0x2fb748);return{'ok':!![],'data':{'appCode':_0x1b15ab[_0x415b1c(0xa6)],'scope':'runtime','keyword':_0x492c46,'users':_0x597e44[_0x415b1c(0xae)],'paging':_0x597e44['paging']},'message':'Found\x20'+_0x100410[_0x415b1c(0xb4)]+_0x415b1c(0xad)+_0x492c46+'\x22'};}};
1
+ function a123_0x18ef(){const _0x259b8a=['\x20runtime\x20app\x20user(s)\x20matching\x20\x22','80026ebBMrR','runtime-user-search','383532WVYsKM','length','User\x20id,\x20username,\x20nickname,\x20display\x20name,\x20or\x20email\x20keyword','flagMissing','string','str','15kOmYQb','nickName','1067gaXoBN','1202076wgWIzX','filter','trim','4Wwbtsz','toLowerCase','runtime','3190144sQtmib','code','7tvrlWA','email','150135HKsNzl','Pass\x20--keyword\x20<text>.','some','70088UHUAiF','Found\x20','62380PcQDEo','userName','read','paging','flow'];a123_0x18ef=function(){return _0x259b8a;};return a123_0x18ef();}const a123_0x4b84fd=a123_0x5d93;function a123_0x5d93(_0x5ba45f,_0x43f63b){_0x5ba45f=_0x5ba45f-0x10d;const _0x18efae=a123_0x18ef();let _0x5d9320=_0x18efae[_0x5ba45f];return _0x5d9320;}(function(_0x4c8314,_0x160eff){const _0x4a1dc2=a123_0x5d93,_0x80dc5e=_0x4c8314();while(!![]){try{const _0x54cd4a=parseInt(_0x4a1dc2(0x11d))/0x1+parseInt(_0x4a1dc2(0x12b))/0x2*(parseInt(_0x4a1dc2(0x112))/0x3)+-parseInt(_0x4a1dc2(0x115))/0x4*(parseInt(_0x4a1dc2(0x125))/0x5)+parseInt(_0x4a1dc2(0x11f))/0x6+-parseInt(_0x4a1dc2(0x110))/0x7*(parseInt(_0x4a1dc2(0x10e))/0x8)+-parseInt(_0x4a1dc2(0x128))/0x9+-parseInt(_0x4a1dc2(0x117))/0xa*(-parseInt(_0x4a1dc2(0x127))/0xb);if(_0x54cd4a===_0x160eff)break;else _0x80dc5e['push'](_0x80dc5e['shift']());}catch(_0x4b166a){_0x80dc5e['push'](_0x80dc5e['shift']());}}}(a123_0x18ef,0x40822));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{FLOW_RUNTIME_PAGE_FLAG,FLOW_RUNTIME_PAGE_SIZE_FLAG,paginateRuntimeItems,projectRuntimeUser,readRuntimePagination}from'../../commands/flow/runtime-resources-shared.js';import{listApprovalRuntimeUsers}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';export const flowRuntimeUserSearch={'service':a123_0x4b84fd(0x11b),'command':a123_0x4b84fd(0x11e),'description':'Search\x20runtime\x20app\x20users\x20for\x20approval\x20assignee\x20selection','risk':a123_0x4b84fd(0x119),'flags':[{'name':'keyword','type':a123_0x4b84fd(0x123),'required':!![],'description':a123_0x4b84fd(0x121)},FLOW_RUNTIME_PAGE_FLAG,FLOW_RUNTIME_PAGE_SIZE_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0xc561f8){const _0x2da89a=a123_0x4b84fd;if(!_0xc561f8[_0x2da89a(0x124)]('keyword')[_0x2da89a(0x12a)]())throw CliErrors[_0x2da89a(0x122)]('keyword',_0x2da89a(0x113));readRuntimePagination(_0xc561f8);},async 'execute'(_0x1c80a4){const _0x11751a=a123_0x4b84fd,_0x55fb68=_0x1c80a4[_0x11751a(0x124)]('keyword')[_0x11751a(0x12a)](),_0x6f5e73=_0x55fb68[_0x11751a(0x12c)](),_0x3a78d0=(await listApprovalRuntimeUsers(_0x1c80a4['appCode']))[_0x11751a(0x129)](_0x236c22=>[_0x236c22[_0x11751a(0x10f)],_0x236c22[_0x11751a(0x118)],_0x236c22[_0x11751a(0x126)],_0x236c22['displayName'],_0x236c22[_0x11751a(0x111)]][_0x11751a(0x114)](_0x5c745d=>_0x5c745d!==null&&_0x5c745d!==undefined&&String(_0x5c745d)[_0x11751a(0x12c)]()['includes'](_0x6f5e73)))['map'](projectRuntimeUser)[_0x11751a(0x129)](_0x456e6a=>_0x456e6a!==null),{page:_0x181f49,pageSize:_0x245d5e}=readRuntimePagination(_0x1c80a4),_0x190afb=paginateRuntimeItems(_0x3a78d0,_0x181f49,_0x245d5e);return{'ok':!![],'data':{'appCode':_0x1c80a4['appCode'],'scope':_0x11751a(0x10d),'keyword':_0x55fb68,'users':_0x190afb['items'],'paging':_0x190afb[_0x11751a(0x11a)]},'message':_0x11751a(0x116)+_0x3a78d0[_0x11751a(0x120)]+_0x11751a(0x11c)+_0x55fb68+'\x22'};}};