@lovrabet/rabetbase-cli 2.5.4-beta.1 → 2.5.4-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (368) hide show
  1. package/README.md +4 -3
  2. package/lib/api/api-doc.js +1 -1
  3. package/lib/api/api-group.js +1 -1
  4. package/lib/api/fetch-model-list.js +1 -1
  5. package/lib/api/generate-api-file.js +1 -1
  6. package/lib/api/generate-sdk-config-file.js +1 -1
  7. package/lib/api/legacy-api-file.js +1 -1
  8. package/lib/api/model-registry-file.js +1 -1
  9. package/lib/api/model-registry-scaffold.js +1 -1
  10. package/lib/api/model-source.js +1 -1
  11. package/lib/auth/auth-server-ui.js +1 -1
  12. package/lib/auth/auth-server.js +1 -1
  13. package/lib/auth/constant.js +1 -1
  14. package/lib/auth/get-cookie.js +1 -1
  15. package/lib/auth/get-session-user.js +1 -1
  16. package/lib/auth/is-session-valid.js +1 -1
  17. package/lib/auth/login-success-html.js +1 -1
  18. package/lib/auth/logout.js +1 -1
  19. package/lib/cli-flags.js +1 -1
  20. package/lib/cli.js +1 -1
  21. package/lib/commands/api/generate.js +1 -1
  22. package/lib/commands/api/index.js +1 -1
  23. package/lib/commands/api/list.js +1 -1
  24. package/lib/commands/api/pull.js +1 -1
  25. package/lib/commands/api/shared.js +1 -1
  26. package/lib/commands/app/index.js +1 -1
  27. package/lib/commands/app/list.js +1 -1
  28. package/lib/commands/app/members-list.js +1 -1
  29. package/lib/commands/app/remote-directory.js +1 -1
  30. package/lib/commands/app/shared.js +1 -1
  31. package/lib/commands/app-config/delete.js +1 -1
  32. package/lib/commands/app-config/get.js +1 -1
  33. package/lib/commands/app-config/index.js +1 -1
  34. package/lib/commands/app-config/list.js +1 -1
  35. package/lib/commands/app-config/set.js +1 -1
  36. package/lib/commands/app-config/shared.js +1 -1
  37. package/lib/commands/auth/index.js +1 -1
  38. package/lib/commands/bff/create.js +1 -1
  39. package/lib/commands/bff/delete.js +1 -1
  40. package/lib/commands/bff/detail.js +1 -1
  41. package/lib/commands/bff/index.js +1 -1
  42. package/lib/commands/bff/list.js +1 -1
  43. package/lib/commands/bff/logs.js +1 -1
  44. package/lib/commands/bff/pull.js +1 -1
  45. package/lib/commands/bff/push.js +1 -1
  46. package/lib/commands/bff/status.js +1 -1
  47. package/lib/commands/cli-skill/index.js +1 -1
  48. package/lib/commands/cli-update.js +1 -1
  49. package/lib/commands/codegen/index.js +1 -1
  50. package/lib/commands/codegen/sdk.js +1 -1
  51. package/lib/commands/codegen/sql.js +1 -1
  52. package/lib/commands/common/app-registry.js +1 -1
  53. package/lib/commands/common/app-selector.js +1 -1
  54. package/lib/commands/common/async-task.js +1 -1
  55. package/lib/commands/common/dry-run.js +1 -1
  56. package/lib/commands/common/flags.js +1 -1
  57. package/lib/commands/common/local-file.js +1 -1
  58. package/lib/commands/common/validate.js +1 -1
  59. package/lib/commands/config/delete.js +1 -1
  60. package/lib/commands/config/get.js +1 -1
  61. package/lib/commands/config/index.js +1 -1
  62. package/lib/commands/config/init.d.ts +1 -1
  63. package/lib/commands/config/init.js +1 -1
  64. package/lib/commands/config/list.js +1 -1
  65. package/lib/commands/config/set.js +1 -1
  66. package/lib/commands/config/shared.js +1 -1
  67. package/lib/commands/dataset/batch-design.js +1 -1
  68. package/lib/commands/dataset/business-group-update.js +1 -1
  69. package/lib/commands/dataset/business-groups.js +1 -1
  70. package/lib/commands/dataset/capability.js +1 -1
  71. package/lib/commands/dataset/cross-relation-create.js +1 -1
  72. package/lib/commands/dataset/cross-relation-delete.js +1 -1
  73. package/lib/commands/dataset/cross-relation-list.js +1 -1
  74. package/lib/commands/dataset/cross-relation-shared.js +1 -1
  75. package/lib/commands/dataset/cross-relation-update.js +1 -1
  76. package/lib/commands/dataset/delete.js +1 -1
  77. package/lib/commands/dataset/detail.js +1 -1
  78. package/lib/commands/dataset/extend-update.js +1 -1
  79. package/lib/commands/dataset/field-restore.js +1 -1
  80. package/lib/commands/dataset/field-update.js +1 -1
  81. package/lib/commands/dataset/generate.js +1 -1
  82. package/lib/commands/dataset/index.js +1 -1
  83. package/lib/commands/dataset/list.js +1 -1
  84. package/lib/commands/dataset/operations.js +1 -1
  85. package/lib/commands/dataset/relation-audit.js +1 -1
  86. package/lib/commands/dataset/relation-create.js +1 -1
  87. package/lib/commands/dataset/relation-delete.js +1 -1
  88. package/lib/commands/dataset/relation-shared.js +1 -1
  89. package/lib/commands/dataset/relation-update.js +1 -1
  90. package/lib/commands/dataset/relations.js +1 -1
  91. package/lib/commands/dataset/rename.js +1 -1
  92. package/lib/commands/dataset/restore.js +1 -1
  93. package/lib/commands/dataset/user-deleted-field-list.js +1 -1
  94. package/lib/commands/db/analysis-batching.js +1 -1
  95. package/lib/commands/db/analyze-batch-plan.js +1 -1
  96. package/lib/commands/db/analyze-cancel.js +1 -1
  97. package/lib/commands/db/analyze-start.js +1 -1
  98. package/lib/commands/db/analyze-status.js +1 -1
  99. package/lib/commands/db/create.js +1 -1
  100. package/lib/commands/db/delete.js +1 -1
  101. package/lib/commands/db/detail.js +1 -1
  102. package/lib/commands/db/diff-refresh-start.js +1 -1
  103. package/lib/commands/db/diff-refresh-status.js +1 -1
  104. package/lib/commands/db/diff.js +1 -1
  105. package/lib/commands/db/index.js +1 -1
  106. package/lib/commands/db/list.js +1 -1
  107. package/lib/commands/db/shared.js +1 -1
  108. package/lib/commands/db/table-diff-shared.js +1 -1
  109. package/lib/commands/db/tables.js +1 -1
  110. package/lib/commands/db/test.js +1 -1
  111. package/lib/commands/db/update.js +1 -1
  112. package/lib/commands/deployment/index.js +1 -1
  113. package/lib/commands/deployment/sync-all.js +1 -1
  114. package/lib/commands/deployment/sync-jobs.js +1 -1
  115. package/lib/commands/deployment/sync-status.js +1 -1
  116. package/lib/commands/doctor.js +1 -1
  117. package/lib/commands/file/index.js +1 -1
  118. package/lib/commands/flow/create.js +1 -1
  119. package/lib/commands/flow/detail.js +1 -1
  120. package/lib/commands/flow/index.js +1 -1
  121. package/lib/commands/flow/list.js +1 -1
  122. package/lib/commands/flow/publish.js +1 -1
  123. package/lib/commands/flow/runtime-resources-shared.js +1 -1
  124. package/lib/commands/flow/runtime-role-list.js +1 -1
  125. package/lib/commands/flow/runtime-role-user-list.js +1 -1
  126. package/lib/commands/flow/runtime-user-search.js +1 -1
  127. package/lib/commands/flow/shared.js +1 -1
  128. package/lib/commands/flow/update.js +1 -1
  129. package/lib/commands/flow/validate.js +1 -1
  130. package/lib/commands/instant-api-policy/current.js +1 -1
  131. package/lib/commands/instant-api-policy/index.js +1 -1
  132. package/lib/commands/instant-api-policy/init.js +1 -1
  133. package/lib/commands/instant-api-policy/publish.js +1 -1
  134. package/lib/commands/instant-api-policy/pull.js +1 -1
  135. package/lib/commands/instant-api-policy/revision.js +1 -1
  136. package/lib/commands/instant-api-policy/revisions.js +1 -1
  137. package/lib/commands/instant-api-policy/rollback.js +1 -1
  138. package/lib/commands/instant-api-policy/shared.js +1 -1
  139. package/lib/commands/instant-api-policy/validate.js +1 -1
  140. package/lib/commands/issue/index.js +1 -1
  141. package/lib/commands/issue/nudge.js +1 -1
  142. package/lib/commands/issue/report.js +1 -1
  143. package/lib/commands/issue/shared.js +1 -1
  144. package/lib/commands/kb/create.js +1 -1
  145. package/lib/commands/kb/delete.js +1 -1
  146. package/lib/commands/kb/detail.js +1 -1
  147. package/lib/commands/kb/index.js +1 -1
  148. package/lib/commands/kb/list.js +1 -1
  149. package/lib/commands/kb/search.js +1 -1
  150. package/lib/commands/kb/shared.js +1 -1
  151. package/lib/commands/kb/update.js +1 -1
  152. package/lib/commands/logs/index.js +1 -1
  153. package/lib/commands/menu/asset-update.js +1 -1
  154. package/lib/commands/menu/delete.js +1 -1
  155. package/lib/commands/menu/external-link-create.js +1 -1
  156. package/lib/commands/menu/external-link-update.js +1 -1
  157. package/lib/commands/menu/group-create.js +1 -1
  158. package/lib/commands/menu/group-update.js +1 -1
  159. package/lib/commands/menu/index.js +1 -1
  160. package/lib/commands/menu/list.js +1 -1
  161. package/lib/commands/menu/move.js +1 -1
  162. package/lib/commands/menu/regroup-start.js +1 -1
  163. package/lib/commands/menu/rename.js +1 -1
  164. package/lib/commands/menu/shared/compare-table.js +1 -1
  165. package/lib/commands/menu/shared/delete-plan.js +1 -1
  166. package/lib/commands/menu/shared/facts.js +1 -1
  167. package/lib/commands/menu/shared/index.js +1 -1
  168. package/lib/commands/menu/shared/inquirer.js +1 -1
  169. package/lib/commands/menu/shared/local-pages.js +1 -1
  170. package/lib/commands/menu/shared/logic.js +1 -1
  171. package/lib/commands/menu/shared/mutations.js +1 -1
  172. package/lib/commands/menu/shared/service.js +1 -1
  173. package/lib/commands/menu/shared/sync-core.js +1 -1
  174. package/lib/commands/menu/shared/update-core.js +1 -1
  175. package/lib/commands/menu/shared/valid-url.js +1 -1
  176. package/lib/commands/menu/sync.js +1 -1
  177. package/lib/commands/menu/visibility-update.js +1 -1
  178. package/lib/commands/notification/config-create.js +1 -1
  179. package/lib/commands/notification/config-delete.js +1 -1
  180. package/lib/commands/notification/config-list.js +1 -1
  181. package/lib/commands/notification/config-update.js +1 -1
  182. package/lib/commands/notification/index.js +1 -1
  183. package/lib/commands/notification/shared.js +1 -1
  184. package/lib/commands/ocr/index.js +1 -1
  185. package/lib/commands/page/create.js +1 -1
  186. package/lib/commands/page/custom/detail.js +1 -1
  187. package/lib/commands/page/custom/list.js +1 -1
  188. package/lib/commands/page/custom/publish.js +1 -1
  189. package/lib/commands/page/custom/shared.js +1 -1
  190. package/lib/commands/page/custom/syntax.js +1 -1
  191. package/lib/commands/page/custom/update.js +1 -1
  192. package/lib/commands/page/data-list-status.js +1 -1
  193. package/lib/commands/page/generate-start.js +1 -1
  194. package/lib/commands/page/generate-status.js +1 -1
  195. package/lib/commands/page/index.js +1 -1
  196. package/lib/commands/page/pull.js +1 -1
  197. package/lib/commands/page/push.js +1 -1
  198. package/lib/commands/page/relation-audit.js +1 -1
  199. package/lib/commands/page/restore.js +1 -1
  200. package/lib/commands/page/shared.js +1 -1
  201. package/lib/commands/page/sync.js +1 -1
  202. package/lib/commands/project/api-architecture-upgrade.js +1 -1
  203. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  204. package/lib/commands/project/create/format-elapsed.js +1 -1
  205. package/lib/commands/project/create/main.js +1 -1
  206. package/lib/commands/project/create/materialize-project-template.js +1 -1
  207. package/lib/commands/project/create/project-name.js +1 -1
  208. package/lib/commands/project/create/project-template-archive.js +1 -1
  209. package/lib/commands/project/create/project-template-path.js +1 -1
  210. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  211. package/lib/commands/project/create/use-format-code.js +1 -1
  212. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  213. package/lib/commands/project/domain-routing-sync.js +1 -1
  214. package/lib/commands/project/index.js +1 -1
  215. package/lib/commands/project/upgrade.js +1 -1
  216. package/lib/commands/registry.js +1 -1
  217. package/lib/commands/role/delete.js +1 -1
  218. package/lib/commands/role/detail.js +1 -1
  219. package/lib/commands/role/index.js +1 -1
  220. package/lib/commands/role/list.js +1 -1
  221. package/lib/commands/role/shared.js +1 -1
  222. package/lib/commands/role/update.js +1 -1
  223. package/lib/commands/role/user-add.js +1 -1
  224. package/lib/commands/role/user-remove.js +1 -1
  225. package/lib/commands/role/user-resolve.js +1 -1
  226. package/lib/commands/rule/get.js +1 -1
  227. package/lib/commands/rule/index.js +1 -1
  228. package/lib/commands/rule/list.js +1 -1
  229. package/lib/commands/rule/set.js +1 -1
  230. package/lib/commands/rule/shared.js +1 -1
  231. package/lib/commands/run/index.js +1 -1
  232. package/lib/commands/schema.js +1 -1
  233. package/lib/commands/sql/create.js +1 -1
  234. package/lib/commands/sql/delete.js +1 -1
  235. package/lib/commands/sql/detail.js +1 -1
  236. package/lib/commands/sql/exec.js +1 -1
  237. package/lib/commands/sql/index.js +1 -1
  238. package/lib/commands/sql/list.js +1 -1
  239. package/lib/commands/sql/pull.js +1 -1
  240. package/lib/commands/sql/push.js +1 -1
  241. package/lib/commands/sql/shared.js +1 -1
  242. package/lib/commands/sql/status.js +1 -1
  243. package/lib/commands/sql/validate.js +1 -1
  244. package/lib/commands/task/index.js +1 -1
  245. package/lib/commands/task/status.js +1 -1
  246. package/lib/commands/tenant/index.js +1 -1
  247. package/lib/commands/tenant/members-list.js +1 -1
  248. package/lib/commands/tenant/shared.js +1 -1
  249. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  250. package/lib/commands/user-account/index.js +1 -1
  251. package/lib/commands/workspace/add.js +1 -1
  252. package/lib/commands/workspace/index.js +1 -1
  253. package/lib/commands/workspace/remove.js +1 -1
  254. package/lib/config/domain-config.d.ts +1 -1
  255. package/lib/config/domain-config.js +1 -1
  256. package/lib/config/project-domain-routing.js +1 -1
  257. package/lib/config/region-config.js +1 -1
  258. package/lib/config/schema.d.ts +1 -1
  259. package/lib/config/schema.js +1 -1
  260. package/lib/constant/cdn.js +1 -1
  261. package/lib/constant/cli.js +1 -1
  262. package/lib/constant/defaults.js +1 -1
  263. package/lib/constant/domain.d.ts +4 -0
  264. package/lib/constant/domain.js +1 -1
  265. package/lib/constant/env.js +1 -1
  266. package/lib/constant/output.js +1 -1
  267. package/lib/constant/paths.js +1 -1
  268. package/lib/constant/region.d.ts +1 -1
  269. package/lib/constant/region.js +1 -1
  270. package/lib/constant/risk.js +1 -1
  271. package/lib/constant/routing-profile.d.ts +14 -1
  272. package/lib/constant/routing-profile.js +1 -1
  273. package/lib/context/app-resolver.d.ts +1 -0
  274. package/lib/context/app-resolver.js +1 -1
  275. package/lib/context/auth-resolver.js +1 -1
  276. package/lib/context/config-loader.js +1 -1
  277. package/lib/context.js +1 -1
  278. package/lib/core/alias-resolver.js +1 -1
  279. package/lib/core/api-client.js +1 -1
  280. package/lib/core/bff/config.js +1 -1
  281. package/lib/core/bff/file-system.js +1 -1
  282. package/lib/core/bff/hash.js +1 -1
  283. package/lib/core/bff/hook-directory.js +1 -1
  284. package/lib/core/bff/lock.js +1 -1
  285. package/lib/core/bff/utils.js +1 -1
  286. package/lib/core/cross-db-relation.js +1 -1
  287. package/lib/core/db-resolver.js +1 -1
  288. package/lib/core/flow-config.js +1 -1
  289. package/lib/core/instant-api-policy/config.js +1 -1
  290. package/lib/core/kb-search-client.js +1 -1
  291. package/lib/core/page/file-system.js +1 -1
  292. package/lib/core/page/hash.js +1 -1
  293. package/lib/core/page/lock.js +1 -1
  294. package/lib/core/page/lr-smart-jsx.js +1 -1
  295. package/lib/core/sql-index-auditor.js +1 -1
  296. package/lib/core/sql-sync/config.js +1 -1
  297. package/lib/core/sql-sync/file-system.js +1 -1
  298. package/lib/core/sql-sync/hash.js +1 -1
  299. package/lib/core/sql-sync/lock.js +1 -1
  300. package/lib/core/sql-sync/utils.js +1 -1
  301. package/lib/core/sql-validator.js +1 -1
  302. package/lib/errors.js +1 -1
  303. package/lib/framework/build-all-flags.js +1 -1
  304. package/lib/framework/error-output.js +1 -1
  305. package/lib/framework/explicit-yes.js +1 -1
  306. package/lib/framework/flags.js +1 -1
  307. package/lib/framework/help.js +1 -1
  308. package/lib/framework/index.js +1 -1
  309. package/lib/framework/output.js +1 -1
  310. package/lib/framework/response.js +1 -1
  311. package/lib/framework/runner-alias.js +1 -1
  312. package/lib/framework/runner.js +1 -1
  313. package/lib/framework/schema-export.js +1 -1
  314. package/lib/framework/supported-flags.js +1 -1
  315. package/lib/framework/types.js +1 -1
  316. package/lib/generated/build-info.d.ts +4 -4
  317. package/lib/generated/build-info.js +1 -1
  318. package/lib/generated/official-routing.d.ts +15 -3
  319. package/lib/generated/official-routing.js +1 -1
  320. package/lib/generated/routing-contract.d.ts +2 -2
  321. package/lib/generated/routing-contract.js +1 -1
  322. package/lib/help.js +1 -1
  323. package/lib/postinstall.js +1 -1
  324. package/lib/runtime/confirmation.js +1 -1
  325. package/lib/runtime/event.js +1 -1
  326. package/lib/runtime/index.js +1 -1
  327. package/lib/runtime/queue.js +1 -1
  328. package/lib/runtime/resolve.js +1 -1
  329. package/lib/skills/builtin-skill.js +1 -1
  330. package/lib/skills/main.js +1 -1
  331. package/lib/skills/npx-skills-add.d.ts +5 -0
  332. package/lib/skills/npx-skills-add.js +1 -1
  333. package/lib/skills/skill-presence.js +1 -1
  334. package/lib/telemetry/cli-command-trace.js +1 -1
  335. package/lib/telemetry/cli-help-trace.js +1 -1
  336. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  337. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  338. package/lib/telemetry/send-cli-trace-log.js +1 -1
  339. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  340. package/lib/utils/ai_config.js +1 -1
  341. package/lib/utils/apply-jq-filter.js +1 -1
  342. package/lib/utils/cdn-config.js +1 -1
  343. package/lib/utils/check-sdk-version.js +1 -1
  344. package/lib/utils/cli-version-check.js +1 -1
  345. package/lib/utils/cli-version-policy.js +1 -1
  346. package/lib/utils/config.js +1 -1
  347. package/lib/utils/entity-with-id.js +1 -1
  348. package/lib/utils/file-utils.js +1 -1
  349. package/lib/utils/guides-cdn.js +1 -1
  350. package/lib/utils/http-client.js +1 -1
  351. package/lib/utils/is-non-interactive.js +1 -1
  352. package/lib/utils/logger.js +1 -1
  353. package/lib/utils/params.js +1 -1
  354. package/lib/utils/platform.js +1 -1
  355. package/lib/utils/sleep.js +1 -1
  356. package/lib/utils/template-replacer.js +1 -1
  357. package/lib/utils/update-notice.js +1 -1
  358. package/lib/utils/version.js +1 -1
  359. package/lib/utils/with-active-cookie.js +1 -1
  360. package/lib/utils/write-cli-side-channel.js +1 -1
  361. package/package.json +1 -1
  362. package/skills/rabetbase/SKILL.md +2 -2
  363. package/skills/rabetbase/guides/sql-creation-workflow.md +1 -1
  364. package/skills/rabetbase/guides/sql-mybatis.md +12 -8
  365. package/skills/rabetbase/references/rabetbase-config.md +6 -4
  366. package/skills/rabetbase/references/rabetbase-init.md +7 -5
  367. package/skills/rabetbase/references/rabetbase-kb.md +8 -6
  368. package/skills/rabetbase.manifest.json +3 -3
@@ -1 +1 @@
1
- const a108_0x15d5fb=a108_0x45ec;(function(_0x50e647,_0x4e9e6e){const _0x17c09f=a108_0x45ec,_0x315c8a=_0x50e647();while(!![]){try{const _0x4a44ab=-parseInt(_0x17c09f(0x19b))/0x1*(-parseInt(_0x17c09f(0x19f))/0x2)+parseInt(_0x17c09f(0x184))/0x3+-parseInt(_0x17c09f(0x18b))/0x4+parseInt(_0x17c09f(0x199))/0x5+-parseInt(_0x17c09f(0x198))/0x6*(parseInt(_0x17c09f(0x192))/0x7)+-parseInt(_0x17c09f(0x190))/0x8*(parseInt(_0x17c09f(0x1a0))/0x9)+parseInt(_0x17c09f(0x19a))/0xa*(parseInt(_0x17c09f(0x18c))/0xb);if(_0x4a44ab===_0x4e9e6e)break;else _0x315c8a['push'](_0x315c8a['shift']());}catch(_0x1b3dfe){_0x315c8a['push'](_0x315c8a['shift']());}}}(a108_0x23e1,0xb0580));import{getDbLinkInfo,updateDbLink}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a108_0x23e1(){const _0x4a3ed7=['3059956NpHTIQ','11dzkwrj','str','skip-connection-test','******','40NOLWyD','username','7Pflhes','dbparam','[redacted]','New\x20username','num','password','1110588wAUHmz','4784875WZHAzM','1461140MapOwR','687125YyPoPk','dburl','Current\x20or\x20replacement\x20password.\x20Required\x20when\x20the\x20stored\x20password\x20is\x20masked','bool','2wFkXsV','1902645KzvljV','write','dbUrl','--password\x20must\x20contain\x20the\x20real\x20database\x20password,\x20not\x20a\x20masked\x20value.','trim','validation','Updated\x20db\x20link\x20','dbParam','New\x20connection\x20parameter\x20string','dbname','/smartapi/dblink/update','dbDesc','2817606qsjhFO','has','New\x20database\x20name','dbdesc','string','POST','Update\x20a\x20database\x20connection\x20by\x20merging\x20supplied\x20fields\x20into\x20the\x20current\x20server\x20record.\x20A\x20masked\x20server\x20password\x20requires\x20explicit\x20--password'];a108_0x23e1=function(){return _0x4a3ed7;};return a108_0x23e1();}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_0x15d5fb(0x18f),a108_0x15d5fb(0x194)]);function a108_0x45ec(_0x482d8a,_0x469a13){_0x482d8a=_0x482d8a-0x17b;const _0x23e1b3=a108_0x23e1();let _0x45ecbd=_0x23e1b3[_0x482d8a];return _0x45ecbd;}function mergeDbLinkUpdate(_0x3db66a,_0x59a103){const _0x40398c=a108_0x15d5fb,_0xfe59a9={..._0x3db66a},_0x7ac9bb=_0x59a103[_0x40398c(0x18d)](_0x40398c(0x197));if(_0x7ac9bb&&MASKED_PASSWORD_VALUES[_0x40398c(0x185)](_0x7ac9bb))throw CliErrors[_0x40398c(0x17d)](_0x40398c(0x17b));if(!_0x7ac9bb&&MASKED_PASSWORD_VALUES[_0x40398c(0x185)](String(_0x3db66a[_0x40398c(0x197)]??'')))throw CliErrors[_0x40398c(0x17d)]('The\x20server\x20returned\x20a\x20masked\x20database\x20password.\x20Pass\x20the\x20current\x20or\x20replacement\x20password\x20explicitly\x20with\x20--password\x20to\x20update\x20this\x20connection\x20safely.');const _0x16390e=_0x59a103[_0x40398c(0x18d)](_0x40398c(0x181));if(_0x16390e)_0xfe59a9['dbName']=_0x16390e;const _0x21c938=_0x59a103[_0x40398c(0x18d)]('dburl');if(_0x21c938)_0xfe59a9[_0x40398c(0x1a2)]=_0x21c938[_0x40398c(0x17c)]();const _0xb5af69=_0x59a103[_0x40398c(0x18d)](_0x40398c(0x191));if(_0xb5af69)_0xfe59a9[_0x40398c(0x191)]=_0xb5af69;if(_0x7ac9bb)_0xfe59a9[_0x40398c(0x197)]=_0x7ac9bb;const _0x3267d7=_0x59a103[_0x40398c(0x18d)](_0x40398c(0x193));if(_0x3267d7)_0xfe59a9[_0x40398c(0x17f)]=_0x3267d7;const _0x1777a6=_0x59a103[_0x40398c(0x18d)]('dbdesc');if(_0x1777a6)_0xfe59a9[_0x40398c(0x183)]=_0x1777a6;return _0xfe59a9;}export const dbUpdate={'service':'db','command':'update','description':a108_0x15d5fb(0x18a),'risk':a108_0x15d5fb(0x1a1),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':'dbname','type':a108_0x15d5fb(0x188),'description':a108_0x15d5fb(0x186)},{'name':a108_0x15d5fb(0x19c),'type':a108_0x15d5fb(0x188),'description':'New\x20host:port'},{'name':a108_0x15d5fb(0x191),'type':a108_0x15d5fb(0x188),'description':a108_0x15d5fb(0x195)},{'name':a108_0x15d5fb(0x197),'type':a108_0x15d5fb(0x188),'description':a108_0x15d5fb(0x19d)},{'name':a108_0x15d5fb(0x193),'type':'string','description':a108_0x15d5fb(0x180)},{'name':a108_0x15d5fb(0x187),'type':a108_0x15d5fb(0x188),'description':'New\x20description'},SKIP_CONNECTION_TEST_FLAG],async 'validate'(_0x3137cd){const _0x28fa9c=a108_0x15d5fb,_0x3fe41c=_0x3137cd['str'](_0x28fa9c(0x19c));if(_0x3fe41c&&!validateDbUrl(_0x3fe41c['trim']()))throw CliErrors[_0x28fa9c(0x17d)]('Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22'+_0x3fe41c+'\x22');},async 'dryRun'(_0xb17edb){const _0x428534=a108_0x15d5fb,_0x283c9f=_0xb17edb['num']('id'),_0x446160=await getDbLinkInfo(_0x283c9f),_0x2dfb0a=mergeDbLinkUpdate(_0x446160,_0xb17edb),_0x49f1ba=sanitizeDbLinkForOutput(_0x2dfb0a);return{'method':_0x428534(0x189),'url':_0x428534(0x182),'body':_0x49f1ba,'description':'Preview\x20the\x20merged\x20database\x20connection\x20update;\x20password\x20redacted','connectionPreflight':{'enabled':!_0xb17edb['bool'](_0x428534(0x18e)),'executed':![]}};},async 'execute'(_0x5cb2b7){const _0x4355d8=a108_0x15d5fb,_0x22a2ca=_0x5cb2b7[_0x4355d8(0x196)]('id'),_0xb20b8f=await getDbLinkInfo(_0x22a2ca),_0x3fd0f9=mergeDbLinkUpdate(_0xb20b8f,_0x5cb2b7);!_0x5cb2b7[_0x4355d8(0x19e)](_0x4355d8(0x18e))&&await assertDbLinkConnectionPreflight(_0x3fd0f9);const {id:_0x4bbb85,entity:_0x522fde}=normalizeEntityWithIdResponse(await updateDbLink(_0x3fd0f9));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x522fde),'message':_0x4355d8(0x17e)+(_0x4bbb85??_0x22a2ca)};}};
1
+ const a108_0x2f17e7=a108_0x277e;(function(_0x12a069,_0x56a4b6){const _0x43fbe4=a108_0x277e,_0x3e83ea=_0x12a069();while(!![]){try{const _0x1e21b0=parseInt(_0x43fbe4(0x18f))/0x1+parseInt(_0x43fbe4(0x19f))/0x2*(-parseInt(_0x43fbe4(0x18c))/0x3)+parseInt(_0x43fbe4(0x1b1))/0x4*(parseInt(_0x43fbe4(0x190))/0x5)+-parseInt(_0x43fbe4(0x196))/0x6*(parseInt(_0x43fbe4(0x1a9))/0x7)+-parseInt(_0x43fbe4(0x1a3))/0x8*(-parseInt(_0x43fbe4(0x1a4))/0x9)+-parseInt(_0x43fbe4(0x19d))/0xa*(parseInt(_0x43fbe4(0x1a5))/0xb)+parseInt(_0x43fbe4(0x1ad))/0xc*(parseInt(_0x43fbe4(0x19a))/0xd);if(_0x1e21b0===_0x56a4b6)break;else _0x3e83ea['push'](_0x3e83ea['shift']());}catch(_0x2525b9){_0x3e83ea['push'](_0x3e83ea['shift']());}}}(a108_0x955d,0x55ced));import{getDbLinkInfo,updateDbLink}from'../../core/api-client.js';function a108_0x955d(){const _0x16e7cd=['dbparam','5624QHCWom','num','******','dbdesc','2064472bcUCdw','18qnDnoA','253187cWLDUL','[redacted]','string','username','21pmhhiW','str','--password\x20must\x20contain\x20the\x20real\x20database\x20password,\x20not\x20a\x20masked\x20value.','dbDesc','2940BRiepo','dburl','dbParam','Update\x20a\x20database\x20connection\x20by\x20merging\x20supplied\x20fields\x20into\x20the\x20current\x20server\x20record.\x20A\x20masked\x20server\x20password\x20requires\x20explicit\x20--password','95196YoIMrD','has','POST','validation','New\x20connection\x20parameter\x20string','339UzPSlL','write','Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22','409580hcJcts','10QgRViP','dbName','The\x20server\x20returned\x20a\x20masked\x20database\x20password.\x20Pass\x20the\x20current\x20or\x20replacement\x20password\x20explicitly\x20with\x20--password\x20to\x20update\x20this\x20connection\x20safely.','Current\x20or\x20replacement\x20password.\x20Required\x20when\x20the\x20stored\x20password\x20is\x20masked','trim','password','1172856nkxEVA','bool','skip-connection-test','New\x20description','25974cQaQXX','dbname','Updated\x20db\x20link\x20','90FhRedJ'];a108_0x955d=function(){return _0x16e7cd;};return a108_0x955d();}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_0x2f17e7(0x1a1),a108_0x2f17e7(0x1a6)]);function mergeDbLinkUpdate(_0x5ad43e,_0x208c57){const _0x1877be=a108_0x2f17e7,_0x39cf52={..._0x5ad43e},_0x516d4c=_0x208c57['str'](_0x1877be(0x195));if(_0x516d4c&&MASKED_PASSWORD_VALUES[_0x1877be(0x1b2)](_0x516d4c))throw CliErrors['validation'](_0x1877be(0x1ab));if(!_0x516d4c&&MASKED_PASSWORD_VALUES[_0x1877be(0x1b2)](String(_0x5ad43e[_0x1877be(0x195)]??'')))throw CliErrors['validation'](_0x1877be(0x192));const _0x463391=_0x208c57[_0x1877be(0x1aa)](_0x1877be(0x19b));if(_0x463391)_0x39cf52[_0x1877be(0x191)]=_0x463391;const _0x59a18b=_0x208c57[_0x1877be(0x1aa)](_0x1877be(0x1ae));if(_0x59a18b)_0x39cf52['dbUrl']=_0x59a18b[_0x1877be(0x194)]();const _0x3a6d48=_0x208c57[_0x1877be(0x1aa)](_0x1877be(0x1a8));if(_0x3a6d48)_0x39cf52[_0x1877be(0x1a8)]=_0x3a6d48;if(_0x516d4c)_0x39cf52[_0x1877be(0x195)]=_0x516d4c;const _0xddcdc9=_0x208c57['str'](_0x1877be(0x19e));if(_0xddcdc9)_0x39cf52[_0x1877be(0x1af)]=_0xddcdc9;const _0x4abe3c=_0x208c57[_0x1877be(0x1aa)](_0x1877be(0x1a2));if(_0x4abe3c)_0x39cf52[_0x1877be(0x1ac)]=_0x4abe3c;return _0x39cf52;}function a108_0x277e(_0x48ef14,_0xa175f2){_0x48ef14=_0x48ef14-0x18a;const _0x955dd9=a108_0x955d();let _0x277eaf=_0x955dd9[_0x48ef14];return _0x277eaf;}export const dbUpdate={'service':'db','command':'update','description':a108_0x2f17e7(0x1b0),'risk':a108_0x2f17e7(0x18d),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a108_0x2f17e7(0x19b),'type':a108_0x2f17e7(0x1a7),'description':'New\x20database\x20name'},{'name':'dburl','type':a108_0x2f17e7(0x1a7),'description':'New\x20host:port'},{'name':a108_0x2f17e7(0x1a8),'type':a108_0x2f17e7(0x1a7),'description':'New\x20username'},{'name':a108_0x2f17e7(0x195),'type':'string','description':a108_0x2f17e7(0x193)},{'name':a108_0x2f17e7(0x19e),'type':a108_0x2f17e7(0x1a7),'description':a108_0x2f17e7(0x18b)},{'name':'dbdesc','type':a108_0x2f17e7(0x1a7),'description':a108_0x2f17e7(0x199)},SKIP_CONNECTION_TEST_FLAG],async 'validate'(_0x42ed67){const _0x3f0419=a108_0x2f17e7,_0x1c44b9=_0x42ed67[_0x3f0419(0x1aa)](_0x3f0419(0x1ae));if(_0x1c44b9&&!validateDbUrl(_0x1c44b9[_0x3f0419(0x194)]()))throw CliErrors[_0x3f0419(0x18a)](_0x3f0419(0x18e)+_0x1c44b9+'\x22');},async 'dryRun'(_0x219666){const _0x382e4e=a108_0x2f17e7,_0x15437c=_0x219666[_0x382e4e(0x1a0)]('id'),_0x14eb9b=await getDbLinkInfo(_0x15437c),_0x2ab30a=mergeDbLinkUpdate(_0x14eb9b,_0x219666),_0x157593=sanitizeDbLinkForOutput(_0x2ab30a);return{'method':_0x382e4e(0x1b3),'url':'/smartapi/dblink/update','body':_0x157593,'description':'Preview\x20the\x20merged\x20database\x20connection\x20update;\x20password\x20redacted','connectionPreflight':{'enabled':!_0x219666[_0x382e4e(0x197)]('skip-connection-test'),'executed':![]}};},async 'execute'(_0x46a806){const _0x297dab=a108_0x2f17e7,_0xb6ef92=_0x46a806[_0x297dab(0x1a0)]('id'),_0x288804=await getDbLinkInfo(_0xb6ef92),_0x2edcd3=mergeDbLinkUpdate(_0x288804,_0x46a806);!_0x46a806[_0x297dab(0x197)](_0x297dab(0x198))&&await assertDbLinkConnectionPreflight(_0x2edcd3);const {id:_0xfe5992,entity:_0x229aec}=normalizeEntityWithIdResponse(await updateDbLink(_0x2edcd3));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x229aec),'message':_0x297dab(0x19c)+(_0xfe5992??_0xb6ef92)};}};
@@ -1 +1 @@
1
- function a109_0x42c3(_0x189e48,_0x380f99){_0x189e48=_0x189e48-0xce;const _0x46a6ab=a109_0x46a6();let _0x42c3ec=_0x46a6ab[_0x189e48];return _0x42c3ec;}function a109_0x46a6(){const _0x350847=['1055898yGWjQj','8183987TWBCIN','1391662kLbElK','16772APfJly','1629896uDhurI','755vrWyHW','2757228bpsvhM','1QCigBU','1092033dfkgOg'];a109_0x46a6=function(){return _0x350847;};return a109_0x46a6();}(function(_0x1ffcd1,_0x26e841){const _0xf32ea0=a109_0x42c3,_0x255bec=_0x1ffcd1();while(!![]){try{const _0xef1d66=-parseInt(_0xf32ea0(0xcf))/0x1*(parseInt(_0xf32ea0(0xd3))/0x2)+-parseInt(_0xf32ea0(0xd0))/0x3+parseInt(_0xf32ea0(0xd4))/0x4*(parseInt(_0xf32ea0(0xd6))/0x5)+-parseInt(_0xf32ea0(0xce))/0x6+parseInt(_0xf32ea0(0xd2))/0x7+parseInt(_0xf32ea0(0xd5))/0x8+parseInt(_0xf32ea0(0xd1))/0x9;if(_0xef1d66===_0x26e841)break;else _0x255bec['push'](_0x255bec['shift']());}catch(_0x53cda5){_0x255bec['push'](_0x255bec['shift']());}}}(a109_0x46a6,0x9373b));import{deploymentSyncAll}from'../../commands/deployment/sync-all.js';import{deploymentSyncStatus}from'../../commands/deployment/sync-status.js';import{deploymentSyncJobs}from'../../commands/deployment/sync-jobs.js';export const deploymentDefinitions=[deploymentSyncAll,deploymentSyncStatus,deploymentSyncJobs];
1
+ (function(_0x4de477,_0xead8b5){const _0x327b18=a109_0x1a8c,_0xc46b0=_0x4de477();while(!![]){try{const _0x17696c=parseInt(_0x327b18(0x1f5))/0x1*(-parseInt(_0x327b18(0x1f3))/0x2)+-parseInt(_0x327b18(0x1ef))/0x3*(-parseInt(_0x327b18(0x1f4))/0x4)+-parseInt(_0x327b18(0x1f6))/0x5+-parseInt(_0x327b18(0x1f0))/0x6+-parseInt(_0x327b18(0x1f2))/0x7+parseInt(_0x327b18(0x1f1))/0x8+parseInt(_0x327b18(0x1f7))/0x9;if(_0x17696c===_0xead8b5)break;else _0xc46b0['push'](_0xc46b0['shift']());}catch(_0x7df4d9){_0xc46b0['push'](_0xc46b0['shift']());}}}(a109_0x51a4,0x1cedf));import{deploymentSyncAll}from'../../commands/deployment/sync-all.js';function a109_0x51a4(){const _0xa46e41=['1622586XCsWhQ','100PWZuue','746896WDGKjo','586GtXVWv','556460suChRH','852606sNsRuK','3brJeUK','127608YpQRHQ','1845560pEPoEL'];a109_0x51a4=function(){return _0xa46e41;};return a109_0x51a4();}import{deploymentSyncStatus}from'../../commands/deployment/sync-status.js';function a109_0x1a8c(_0x5249ac,_0x44fb5a){_0x5249ac=_0x5249ac-0x1ef;const _0x51a48b=a109_0x51a4();let _0x1a8c79=_0x51a48b[_0x5249ac];return _0x1a8c79;}import{deploymentSyncJobs}from'../../commands/deployment/sync-jobs.js';export const deploymentDefinitions=[deploymentSyncAll,deploymentSyncStatus,deploymentSyncJobs];
@@ -1 +1 @@
1
- const a110_0x147dd8=a110_0xd97a;(function(_0x34fc52,_0x105809){const _0xd0c62b=a110_0xd97a,_0x108115=_0x34fc52();while(!![]){try{const _0x503d7a=parseInt(_0xd0c62b(0x1a0))/0x1+parseInt(_0xd0c62b(0x18f))/0x2+parseInt(_0xd0c62b(0x1a1))/0x3+-parseInt(_0xd0c62b(0x190))/0x4*(parseInt(_0xd0c62b(0x1a8))/0x5)+-parseInt(_0xd0c62b(0x19f))/0x6*(-parseInt(_0xd0c62b(0x19e))/0x7)+parseInt(_0xd0c62b(0x19b))/0x8+-parseInt(_0xd0c62b(0x18c))/0x9;if(_0x503d7a===_0x105809)break;else _0x108115['push'](_0x108115['shift']());}catch(_0xb945f4){_0x108115['push'](_0x108115['shift']());}}}(a110_0x4f94,0x69f07));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';function a110_0x4f94(){const _0x5b3fc5=['application_deployment_sync','validation','status','jobId','8600571apQoRV','boolean','deployment','258614VEsiHD','90616tFAHAb','Confirm\x20the\x20administrative\x20backfill\x20or\x20recovery\x20synchronization','outcome','POST','Submit\x20an\x20administrative\x20metadata\x20backfill\x20or\x20recovery\x20synchronization.','/smartapi/data-sync/submit','Deployment\x20sync\x20submission\x20response\x20was\x20unavailable;\x20job\x20creation\x20is\x20unknown.','not_needed','appCode','sync-all','Run\x20with\x20--dry-run\x20first,\x20then\x20add\x20--confirm.','6450096qdIUoB','deployment_sync_submit_outcome_unknown','defineProperty','7lkphGV','543066iDKRZW','98722oUixrT','2357358Qybake','List\x20recent\x20deployment\x20sync\x20jobs\x20before\x20deciding\x20whether\x20to\x20submit\x20again.','--confirm\x20is\x20required\x20to\x20synchronize\x20all\x20application\x20metadata.','not_submitted','all_server_supported_metadata','Backfill\x20or\x20recover\x20all\x20server-supported\x20application\x20metadata','job','115HZdpnK','No\x20deployment\x20synchronization\x20was\x20needed\x20for\x20this\x20app.'];a110_0x4f94=function(){return _0x5b3fc5;};return a110_0x4f94();}import{CliError,CliErrors}from'../../errors.js';const SUBMIT_PATH=a110_0x147dd8(0x195),CONFIRM_FLAG={'name':'confirm','type':a110_0x147dd8(0x18d),'description':a110_0x147dd8(0x191)};function a110_0xd97a(_0x2cc4d6,_0x16d3a9){_0x2cc4d6=_0x2cc4d6-0x187;const _0x4f94d5=a110_0x4f94();let _0xd97a42=_0x4f94d5[_0x2cc4d6];return _0xd97a42;}export const deploymentSyncAll={'service':a110_0x147dd8(0x18e),'command':a110_0x147dd8(0x199),'description':a110_0x147dd8(0x1a6),'risk':'write','strictFlags':!![],'structuredErrors':!![],'confirmationDescription':a110_0x147dd8(0x194),'flags':[CONFIRM_FLAG,APPCODE_FLAG_OPTIONAL],async 'dryRun'(_0x538abd){const _0x3a6618=a110_0x147dd8;return asDryRunResult(buildPreview(_0x538abd[_0x3a6618(0x198)]),{'method':_0x3a6618(0x193),'url':SUBMIT_PATH,'description':'Would\x20submit\x20an\x20administrative\x20deployment\x20metadata\x20backfill\x20or\x20recovery\x20job.'});},async 'execute'(_0x35a8ad){const _0x5d8106=a110_0x147dd8;if(!_0x35a8ad['bool']('confirm'))throw CliErrors[_0x5d8106(0x189)](_0x5d8106(0x1a3),_0x5d8106(0x19a));try{const _0x1da0f9=await submitDeploymentMetadataSyncAll({'appCode':_0x35a8ad['appCode']});if(_0x1da0f9[_0x5d8106(0x192)]===_0x5d8106(0x197))return{'ok':!![],'data':{'operation':_0x5d8106(0x188),'appCode':_0x35a8ad[_0x5d8106(0x198)],'submitted':![],'outcome':_0x5d8106(0x197)},'message':_0x5d8106(0x187)};return{'ok':!![],'data':{'operation':_0x5d8106(0x188),'appCode':_0x35a8ad['appCode'],'submitted':!![],'outcome':'submitted','jobId':_0x1da0f9[_0x5d8106(0x1a7)][_0x5d8106(0x18b)],'status':_0x1da0f9['job'][_0x5d8106(0x18a)]},'message':'Submitted\x20deployment\x20synchronization\x20job\x20'+_0x1da0f9[_0x5d8106(0x1a7)][_0x5d8106(0x18b)]+'.'};}catch(_0x438392){if(!isPlatformTransportFailure(_0x438392))throw _0x438392;const _0x2bd4da=new CliError(_0x5d8106(0x19c),0x2,_0x5d8106(0x196),_0x5d8106(0x1a2));Object[_0x5d8106(0x19d)](_0x2bd4da,'data',{'enumerable':!![],'value':{'operation':_0x5d8106(0x188),'appCode':_0x35a8ad['appCode'],'submitted':null,'outcome':'unknown'}});throw _0x2bd4da;}}};function buildPreview(_0x176ccf){const _0x979757=a110_0x147dd8;return{'operation':'application_deployment_sync','selector':{'appCode':_0x176ccf,'scope':_0x979757(0x1a5)},'before':null,'after':null,'dryRun':!![],'backend':{'submitted':![],'outcome':_0x979757(0x1a4)},'warnings':[]};}
1
+ const a110_0x5f22a7=a110_0x1131;(function(_0x55d690,_0xc96268){const _0x1cb6cc=a110_0x1131,_0x231ded=_0x55d690();while(!![]){try{const _0x3df74c=parseInt(_0x1cb6cc(0x173))/0x1+parseInt(_0x1cb6cc(0x168))/0x2+-parseInt(_0x1cb6cc(0x161))/0x3*(parseInt(_0x1cb6cc(0x15e))/0x4)+-parseInt(_0x1cb6cc(0x179))/0x5+-parseInt(_0x1cb6cc(0x172))/0x6*(-parseInt(_0x1cb6cc(0x171))/0x7)+-parseInt(_0x1cb6cc(0x182))/0x8*(-parseInt(_0x1cb6cc(0x16b))/0x9)+-parseInt(_0x1cb6cc(0x166))/0xa;if(_0x3df74c===_0xc96268)break;else _0x231ded['push'](_0x231ded['shift']());}catch(_0x45340c){_0x231ded['push'](_0x231ded['shift']());}}}(a110_0x2139,0xf1aaa));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a110_0x1131(_0x4d819f,_0x4ed10b){_0x4d819f=_0x4d819f-0x15e;const _0x2139a1=a110_0x2139();let _0x113142=_0x2139a1[_0x4d819f];return _0x113142;}import{asDryRunResult}from'../../commands/common/dry-run.js';import{isPlatformTransportFailure,submitDeploymentMetadataSyncAll}from'../../core/api-client.js';import{CliError,CliErrors}from'../../errors.js';const SUBMIT_PATH=a110_0x5f22a7(0x160),CONFIRM_FLAG={'name':a110_0x5f22a7(0x164),'type':a110_0x5f22a7(0x167),'description':a110_0x5f22a7(0x16a)};function a110_0x2139(){const _0x580ac4=['18JHutFU','status','POST','validation','Submit\x20an\x20administrative\x20metadata\x20backfill\x20or\x20recovery\x20synchronization.','write','9350299WyYwwu','6ljRWAY','1288991wuhZnR','outcome','unknown','job','bool','submitted','5870645pUFjXC','Run\x20with\x20--dry-run\x20first,\x20then\x20add\x20--confirm.','deployment_sync_submit_outcome_unknown','not_needed','appCode','not_submitted','deployment','Would\x20submit\x20an\x20administrative\x20deployment\x20metadata\x20backfill\x20or\x20recovery\x20job.','No\x20deployment\x20synchronization\x20was\x20needed\x20for\x20this\x20app.','7219984LnblEU','sync-all','Deployment\x20sync\x20submission\x20response\x20was\x20unavailable;\x20job\x20creation\x20is\x20unknown.','9924gMCiGR','application_deployment_sync','/smartapi/data-sync/submit','780jymRoX','defineProperty','jobId','confirm','Backfill\x20or\x20recover\x20all\x20server-supported\x20application\x20metadata','34022180IzKsDG','boolean','3563058lQainc','--confirm\x20is\x20required\x20to\x20synchronize\x20all\x20application\x20metadata.','Confirm\x20the\x20administrative\x20backfill\x20or\x20recovery\x20synchronization'];a110_0x2139=function(){return _0x580ac4;};return a110_0x2139();}export const deploymentSyncAll={'service':a110_0x5f22a7(0x17f),'command':a110_0x5f22a7(0x183),'description':a110_0x5f22a7(0x165),'risk':a110_0x5f22a7(0x170),'strictFlags':!![],'structuredErrors':!![],'confirmationDescription':a110_0x5f22a7(0x16f),'flags':[CONFIRM_FLAG,APPCODE_FLAG_OPTIONAL],async 'dryRun'(_0x344828){const _0x7a0adb=a110_0x5f22a7;return asDryRunResult(buildPreview(_0x344828[_0x7a0adb(0x17d)]),{'method':_0x7a0adb(0x16d),'url':SUBMIT_PATH,'description':_0x7a0adb(0x180)});},async 'execute'(_0x3c3151){const _0x2fa0d9=a110_0x5f22a7;if(!_0x3c3151[_0x2fa0d9(0x177)]('confirm'))throw CliErrors[_0x2fa0d9(0x16e)](_0x2fa0d9(0x169),_0x2fa0d9(0x17a));try{const _0x150fa9=await submitDeploymentMetadataSyncAll({'appCode':_0x3c3151[_0x2fa0d9(0x17d)]});if(_0x150fa9[_0x2fa0d9(0x174)]===_0x2fa0d9(0x17c))return{'ok':!![],'data':{'operation':_0x2fa0d9(0x15f),'appCode':_0x3c3151[_0x2fa0d9(0x17d)],'submitted':![],'outcome':_0x2fa0d9(0x17c)},'message':_0x2fa0d9(0x181)};return{'ok':!![],'data':{'operation':_0x2fa0d9(0x15f),'appCode':_0x3c3151[_0x2fa0d9(0x17d)],'submitted':!![],'outcome':_0x2fa0d9(0x178),'jobId':_0x150fa9['job'][_0x2fa0d9(0x163)],'status':_0x150fa9['job'][_0x2fa0d9(0x16c)]},'message':'Submitted\x20deployment\x20synchronization\x20job\x20'+_0x150fa9[_0x2fa0d9(0x176)]['jobId']+'.'};}catch(_0x474f0d){if(!isPlatformTransportFailure(_0x474f0d))throw _0x474f0d;const _0x4e3469=new CliError(_0x2fa0d9(0x17b),0x2,_0x2fa0d9(0x184),'List\x20recent\x20deployment\x20sync\x20jobs\x20before\x20deciding\x20whether\x20to\x20submit\x20again.');Object[_0x2fa0d9(0x162)](_0x4e3469,'data',{'enumerable':!![],'value':{'operation':_0x2fa0d9(0x15f),'appCode':_0x3c3151[_0x2fa0d9(0x17d)],'submitted':null,'outcome':_0x2fa0d9(0x175)}});throw _0x4e3469;}}};function buildPreview(_0x133794){const _0x210591=a110_0x5f22a7;return{'operation':_0x210591(0x15f),'selector':{'appCode':_0x133794,'scope':'all_server_supported_metadata'},'before':null,'after':null,'dryRun':!![],'backend':{'submitted':![],'outcome':_0x210591(0x17e)},'warnings':[]};}
@@ -1 +1 @@
1
- const a111_0xe9658a=a111_0x1003;function a111_0x1047(){const _0x5f44a6=['24azSBnI','3193695lrpmUP','str','validation','appCode','page-size','Found\x20','48904040nSYowh','6vZlrST','Optional\x20server-defined\x20job\x20status\x20filter','571397tFjKTz','3498980ELSCbO','status','num','List\x20application\x20deployment\x20synchronization\x20jobs','\x20deployment\x20synchronization\x20job(s).','deployment','9CCcDoL','current-page','--page-size\x20must\x20be\x20an\x20integer\x20from\x201\x20to\x20100.','Items\x20per\x20page\x20(maximum\x20100)','sync-jobs','--current-page\x20must\x20be\x20a\x20positive\x20integer.','items','2170566HUGxBe','number','3002531cIXQLp','10567248mMbqDQ'];a111_0x1047=function(){return _0x5f44a6;};return a111_0x1047();}(function(_0x4a8816,_0x31c0f2){const _0x14605c=a111_0x1003,_0x1c324a=_0x4a8816();while(!![]){try{const _0x3d9061=-parseInt(_0x14605c(0xf3))/0x1*(parseInt(_0x14605c(0x10d))/0x2)+-parseInt(_0x14605c(0x101))/0x3+parseInt(_0x14605c(0xf4))/0x4+parseInt(_0x14605c(0x106))/0x5+-parseInt(_0x14605c(0x104))/0x6+-parseInt(_0x14605c(0x103))/0x7*(parseInt(_0x14605c(0x105))/0x8)+parseInt(_0x14605c(0xfa))/0x9*(parseInt(_0x14605c(0x10c))/0xa);if(_0x3d9061===_0x31c0f2)break;else _0x1c324a['push'](_0x1c324a['shift']());}catch(_0x403ee6){_0x1c324a['push'](_0x1c324a['shift']());}}}(a111_0x1047,0xe0298));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{listDeploymentMetadataSyncJobs}from'../../core/api-client.js';function a111_0x1003(_0x789618,_0x3d055e){_0x789618=_0x789618-0xf3;const _0x1047f0=a111_0x1047();let _0x10030d=_0x1047f0[_0x789618];return _0x10030d;}import{CliErrors}from'../../errors.js';export const deploymentSyncJobs={'service':a111_0xe9658a(0xf9),'command':a111_0xe9658a(0xfe),'description':a111_0xe9658a(0xf7),'risk':'read','strictFlags':!![],'structuredErrors':!![],'flags':[{'name':a111_0xe9658a(0xfb),'type':a111_0xe9658a(0x102),'default':0x1,'description':'Page\x20number'},{'name':a111_0xe9658a(0x10a),'type':a111_0xe9658a(0x102),'default':0xa,'description':a111_0xe9658a(0xfd)},{'name':a111_0xe9658a(0xf5),'type':'string','description':a111_0xe9658a(0x10e)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x2fc1eb){const _0x1da3d2=a111_0xe9658a;readPaging(_0x2fc1eb[_0x1da3d2(0xf6)](_0x1da3d2(0xfb),0x1),_0x2fc1eb[_0x1da3d2(0xf6)]('page-size',0xa));},async 'execute'(_0x18977d){const _0x2ca4f1=a111_0xe9658a,{currentPage:_0x6bd1f,pageSize:_0x4d3fb}=readPaging(_0x18977d['num'](_0x2ca4f1(0xfb),0x1),_0x18977d[_0x2ca4f1(0xf6)](_0x2ca4f1(0x10a),0xa)),_0x6cd89c=_0x18977d[_0x2ca4f1(0x107)](_0x2ca4f1(0xf5))['trim'](),_0x1a13f8=await listDeploymentMetadataSyncJobs({'appCode':_0x18977d[_0x2ca4f1(0x109)],'currentPage':_0x6bd1f,'pageSize':_0x4d3fb,..._0x6cd89c?{'status':_0x6cd89c}:{}});return{'ok':!![],'data':{'appCode':_0x18977d[_0x2ca4f1(0x109)],..._0x1a13f8},'message':_0x2ca4f1(0x10b)+_0x1a13f8[_0x2ca4f1(0x100)]['length']+_0x2ca4f1(0xf8)};}};function readPaging(_0x37faf7,_0x6bd271){const _0x44cbdc=a111_0xe9658a;if(!Number['isSafeInteger'](_0x37faf7)||_0x37faf7<0x1)throw CliErrors[_0x44cbdc(0x108)](_0x44cbdc(0xff));if(!Number['isSafeInteger'](_0x6bd271)||_0x6bd271<0x1||_0x6bd271>0x64)throw CliErrors[_0x44cbdc(0x108)](_0x44cbdc(0xfc));return{'currentPage':_0x37faf7,'pageSize':_0x6bd271};}
1
+ function a111_0xfd2f(){const _0xe9e3c2=['isSafeInteger','36645DGQiLy','Items\x20per\x20page\x20(maximum\x20100)','num','page-size','string','69300726hKHDje','159mZoPcG','8cjkMHQ','trim','List\x20application\x20deployment\x20synchronization\x20jobs','validation','number','4ETYYys','items','3586791opJScB','852KTAoJu','status','6640950PXcsJu','appCode','13183047JiPNMG','--page-size\x20must\x20be\x20an\x20integer\x20from\x201\x20to\x20100.','current-page','Page\x20number','10966270IqVAkh','str','\x20deployment\x20synchronization\x20job(s).','deployment','sync-jobs','17026hujNrz'];a111_0xfd2f=function(){return _0xe9e3c2;};return a111_0xfd2f();}const a111_0x43323e=a111_0x3e27;function a111_0x3e27(_0x4a8eb2,_0x20d5fe){_0x4a8eb2=_0x4a8eb2-0x1ee;const _0xfd2f05=a111_0xfd2f();let _0x3e27a2=_0xfd2f05[_0x4a8eb2];return _0x3e27a2;}(function(_0x5c7ed3,_0x444fe4){const _0x35d0c9=a111_0x3e27,_0x5e8ef2=_0x5c7ed3();while(!![]){try{const _0x130980=-parseInt(_0x35d0c9(0x1f1))/0x1*(-parseInt(_0x35d0c9(0x207))/0x2)+-parseInt(_0x35d0c9(0x1f9))/0x3*(-parseInt(_0x35d0c9(0x1f7))/0x4)+parseInt(_0x35d0c9(0x1fc))/0x5+-parseInt(_0x35d0c9(0x1fa))/0x6*(-parseInt(_0x35d0c9(0x209))/0x7)+parseInt(_0x35d0c9(0x1f2))/0x8*(parseInt(_0x35d0c9(0x1fe))/0x9)+parseInt(_0x35d0c9(0x202))/0xa+-parseInt(_0x35d0c9(0x1f0))/0xb;if(_0x130980===_0x444fe4)break;else _0x5e8ef2['push'](_0x5e8ef2['shift']());}catch(_0x5ea7f6){_0x5e8ef2['push'](_0x5e8ef2['shift']());}}}(a111_0xfd2f,0xd7594));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{listDeploymentMetadataSyncJobs}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';export const deploymentSyncJobs={'service':a111_0x43323e(0x205),'command':a111_0x43323e(0x206),'description':a111_0x43323e(0x1f4),'risk':'read','strictFlags':!![],'structuredErrors':!![],'flags':[{'name':a111_0x43323e(0x200),'type':a111_0x43323e(0x1f6),'default':0x1,'description':a111_0x43323e(0x201)},{'name':a111_0x43323e(0x1ee),'type':a111_0x43323e(0x1f6),'default':0xa,'description':a111_0x43323e(0x20a)},{'name':a111_0x43323e(0x1fb),'type':a111_0x43323e(0x1ef),'description':'Optional\x20server-defined\x20job\x20status\x20filter'},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x3cc5b1){const _0x1d94ff=a111_0x43323e;readPaging(_0x3cc5b1[_0x1d94ff(0x20b)](_0x1d94ff(0x200),0x1),_0x3cc5b1['num'](_0x1d94ff(0x1ee),0xa));},async 'execute'(_0x4a042a){const _0xd5e88e=a111_0x43323e,{currentPage:_0x2f1c73,pageSize:_0x5f4d41}=readPaging(_0x4a042a[_0xd5e88e(0x20b)](_0xd5e88e(0x200),0x1),_0x4a042a[_0xd5e88e(0x20b)]('page-size',0xa)),_0xdb2e07=_0x4a042a[_0xd5e88e(0x203)](_0xd5e88e(0x1fb))[_0xd5e88e(0x1f3)](),_0x2666df=await listDeploymentMetadataSyncJobs({'appCode':_0x4a042a[_0xd5e88e(0x1fd)],'currentPage':_0x2f1c73,'pageSize':_0x5f4d41,..._0xdb2e07?{'status':_0xdb2e07}:{}});return{'ok':!![],'data':{'appCode':_0x4a042a['appCode'],..._0x2666df},'message':'Found\x20'+_0x2666df[_0xd5e88e(0x1f8)]['length']+_0xd5e88e(0x204)};}};function readPaging(_0x4610ac,_0x18d257){const _0x5cd147=a111_0x43323e;if(!Number[_0x5cd147(0x208)](_0x4610ac)||_0x4610ac<0x1)throw CliErrors[_0x5cd147(0x1f5)]('--current-page\x20must\x20be\x20a\x20positive\x20integer.');if(!Number[_0x5cd147(0x208)](_0x18d257)||_0x18d257<0x1||_0x18d257>0x64)throw CliErrors['validation'](_0x5cd147(0x1ff));return{'currentPage':_0x4610ac,'pageSize':_0x18d257};}
@@ -1 +1 @@
1
- const a112_0x71c743=a112_0x4da4;function a112_0x4da4(_0x37e2c1,_0x13dae7){_0x37e2c1=_0x37e2c1-0x13d;const _0x5c04f2=a112_0x5c04();let _0x4da430=_0x5c04f2[_0x37e2c1];return _0x4da430;}(function(_0x52fdf9,_0x5c10f6){const _0x51902b=a112_0x4da4,_0x2e8894=_0x52fdf9();while(!![]){try{const _0x4e9de8=parseInt(_0x51902b(0x143))/0x1+-parseInt(_0x51902b(0x148))/0x2*(-parseInt(_0x51902b(0x147))/0x3)+-parseInt(_0x51902b(0x155))/0x4+parseInt(_0x51902b(0x151))/0x5*(-parseInt(_0x51902b(0x144))/0x6)+parseInt(_0x51902b(0x150))/0x7*(parseInt(_0x51902b(0x14b))/0x8)+parseInt(_0x51902b(0x159))/0x9+-parseInt(_0x51902b(0x149))/0xa*(parseInt(_0x51902b(0x141))/0xb);if(_0x4e9de8===_0x5c10f6)break;else _0x2e8894['push'](_0x2e8894['shift']());}catch(_0xf6554c){_0x2e8894['push'](_0x2e8894['shift']());}}}(a112_0x5c04,0x4cf52));import{getDeploymentMetadataSyncStatus}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a112_0x5c04(){const _0x109181=['RUNNING','114544vsqSYp','238962BZToBp',';\x20terminal\x20state\x20is\x20unknown\x20to\x20this\x20CLI\x20version.','sync-status','372wanmhY','6392CQXviS','4590bHdnmg','deployment','4163312thPAqZ','length','has','SUCCESS','reduce','7VGCXJW','35FTUufi','FAILED','Preserved\x20server-defined\x20status\x20','action','975348NINgJT','status','PARTIAL_SUCCESS','Deployment\x20synchronization\x20job\x20','5195187AVkJee','num','map','filter','Get\x20application\x20deployment\x20synchronization\x20job\x20status','read','Deployment\x20synchronization\x20job\x20ID','results','--job-id\x20must\x20be\x20a\x20positive\x20integer.','bizType','job-id','PENDING','number','18469esStSb'];a112_0x5c04=function(){return _0x109181;};return a112_0x5c04();}const TERMINAL_STATUSES=new Set([a112_0x71c743(0x14e),a112_0x71c743(0x157),a112_0x71c743(0x152)]),ACTIVE_STATUSES=new Set([a112_0x71c743(0x13f),a112_0x71c743(0x142)]);export const deploymentSyncStatus={'service':a112_0x71c743(0x14a),'command':a112_0x71c743(0x146),'description':a112_0x71c743(0x15d),'risk':a112_0x71c743(0x15e),'requiresAppCode':!![],'strictFlags':!![],'structuredErrors':!![],'flags':[{'name':a112_0x71c743(0x13e),'type':a112_0x71c743(0x140),'required':!![],'description':a112_0x71c743(0x15f)}],async 'validate'(_0x8be964){const _0xa78c76=a112_0x71c743;readJobId(_0x8be964[_0xa78c76(0x15a)](_0xa78c76(0x13e)));},async 'execute'(_0x4819d7){const _0x208a46=a112_0x71c743,_0xa739b2=readJobId(_0x4819d7[_0x208a46(0x15a)](_0x208a46(0x13e))),_0x48ad58=await getDeploymentMetadataSyncStatus({'jobId':_0xa739b2,'appCode':_0x4819d7['appCode']}),_0x1c519d=TERMINAL_STATUSES[_0x208a46(0x14d)](_0x48ad58[_0x208a46(0x156)])?!![]:ACTIVE_STATUSES['has'](_0x48ad58[_0x208a46(0x156)])?![]:null,_0x59ac11=countBy(_0x48ad58['results'][_0x208a46(0x15b)](_0x1d882b=>_0x1d882b[_0x208a46(0x13d)])),_0x48ee3e=countBy(_0x48ad58[_0x208a46(0x160)][_0x208a46(0x15b)](_0x111c38=>_0x111c38[_0x208a46(0x154)])),_0x4f3b84=_0x1c519d===null?[_0x208a46(0x153)+_0x48ad58[_0x208a46(0x156)]+_0x208a46(0x145)]:[];return{'ok':!![],'data':{'job':_0x48ad58,'isTerminal':_0x1c519d,'summary':{'total':_0x48ad58['results'][_0x208a46(0x14c)],'failed':_0x48ad58[_0x208a46(0x160)][_0x208a46(0x15c)](_0x392c0a=>_0x392c0a[_0x208a46(0x154)]==='FAILED')[_0x208a46(0x14c)],'byBizType':_0x59ac11,'byAction':_0x48ee3e},'warnings':_0x4f3b84},'message':_0x208a46(0x158)+_0xa739b2+'\x20is\x20'+_0x48ad58[_0x208a46(0x156)]+'.'};}};function readJobId(_0x59d35c){const _0x268d4d=a112_0x71c743;if(!Number['isSafeInteger'](_0x59d35c)||_0x59d35c<=0x0)throw CliErrors['validation'](_0x268d4d(0x161));return _0x59d35c;}function countBy(_0x1b5017){const _0x429c41=a112_0x71c743;return _0x1b5017[_0x429c41(0x14f)]((_0x1a2b81,_0x10f03e)=>{return _0x1a2b81[_0x10f03e]=(_0x1a2b81[_0x10f03e]??0x0)+0x1,_0x1a2b81;},{});}
1
+ const a112_0x18a61b=a112_0x5d5f;(function(_0x2c8e72,_0x5e26fc){const _0x41aa61=a112_0x5d5f,_0x3b74ca=_0x2c8e72();while(!![]){try{const _0x1dd366=-parseInt(_0x41aa61(0xd5))/0x1*(-parseInt(_0x41aa61(0xba))/0x2)+parseInt(_0x41aa61(0xb9))/0x3+-parseInt(_0x41aa61(0xd9))/0x4*(parseInt(_0x41aa61(0xbb))/0x5)+-parseInt(_0x41aa61(0xd7))/0x6+parseInt(_0x41aa61(0xbf))/0x7*(-parseInt(_0x41aa61(0xc1))/0x8)+parseInt(_0x41aa61(0xd6))/0x9+parseInt(_0x41aa61(0xc9))/0xa;if(_0x1dd366===_0x5e26fc)break;else _0x3b74ca['push'](_0x3b74ca['shift']());}catch(_0xd8bcf3){_0x3b74ca['push'](_0x3b74ca['shift']());}}}(a112_0x2b65,0xb7926));import{getDeploymentMetadataSyncStatus}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a112_0x5d5f(_0x354025,_0x3fcee6){_0x354025=_0x354025-0xb9;const _0x2b6567=a112_0x2b65();let _0x5d5fc8=_0x2b6567[_0x354025];return _0x5d5fc8;}const TERMINAL_STATUSES=new Set(['SUCCESS',a112_0x18a61b(0xc5),a112_0x18a61b(0xda)]),ACTIVE_STATUSES=new Set([a112_0x18a61b(0xc0),'RUNNING']);export const deploymentSyncStatus={'service':a112_0x18a61b(0xca),'command':a112_0x18a61b(0xdb),'description':'Get\x20application\x20deployment\x20synchronization\x20job\x20status','risk':'read','requiresAppCode':!![],'strictFlags':!![],'structuredErrors':!![],'flags':[{'name':a112_0x18a61b(0xcb),'type':a112_0x18a61b(0xd8),'required':!![],'description':'Deployment\x20synchronization\x20job\x20ID'}],async 'validate'(_0x5493dc){const _0x29f355=a112_0x18a61b;readJobId(_0x5493dc[_0x29f355(0xbc)]('job-id'));},async 'execute'(_0x53d098){const _0x41306c=a112_0x18a61b,_0xce81be=readJobId(_0x53d098[_0x41306c(0xbc)](_0x41306c(0xcb))),_0x4aa57e=await getDeploymentMetadataSyncStatus({'jobId':_0xce81be,'appCode':_0x53d098[_0x41306c(0xcf)]}),_0xe7cb45=TERMINAL_STATUSES[_0x41306c(0xc4)](_0x4aa57e[_0x41306c(0xce)])?!![]:ACTIVE_STATUSES[_0x41306c(0xc4)](_0x4aa57e[_0x41306c(0xce)])?![]:null,_0x1e293b=countBy(_0x4aa57e[_0x41306c(0xd0)][_0x41306c(0xd2)](_0x360a60=>_0x360a60[_0x41306c(0xc6)])),_0x4be720=countBy(_0x4aa57e[_0x41306c(0xd0)][_0x41306c(0xd2)](_0x56d946=>_0x56d946['action'])),_0x4195af=_0xe7cb45===null?[_0x41306c(0xc2)+_0x4aa57e['status']+_0x41306c(0xc3)]:[];return{'ok':!![],'data':{'job':_0x4aa57e,'isTerminal':_0xe7cb45,'summary':{'total':_0x4aa57e[_0x41306c(0xd0)]['length'],'failed':_0x4aa57e['results'][_0x41306c(0xd1)](_0x2abf00=>_0x2abf00[_0x41306c(0xcc)]===_0x41306c(0xda))[_0x41306c(0xc7)],'byBizType':_0x1e293b,'byAction':_0x4be720},'warnings':_0x4195af},'message':_0x41306c(0xd4)+_0xce81be+_0x41306c(0xbd)+_0x4aa57e[_0x41306c(0xce)]+'.'};}};function readJobId(_0x4fa5bb){const _0x3f85dd=a112_0x18a61b;if(!Number[_0x3f85dd(0xbe)](_0x4fa5bb)||_0x4fa5bb<=0x0)throw CliErrors[_0x3f85dd(0xcd)](_0x3f85dd(0xd3));return _0x4fa5bb;}function countBy(_0x26a566){const _0x21ab7d=a112_0x18a61b;return _0x26a566[_0x21ab7d(0xc8)]((_0x1b55e7,_0x21d3f0)=>{return _0x1b55e7[_0x21d3f0]=(_0x1b55e7[_0x21d3f0]??0x0)+0x1,_0x1b55e7;},{});}function a112_0x2b65(){const _0x5d37b0=['length','reduce','6165590klHBxH','deployment','job-id','action','validation','status','appCode','results','filter','map','--job-id\x20must\x20be\x20a\x20positive\x20integer.','Deployment\x20synchronization\x20job\x20','32DhxLui','3040326VwCpGs','3777972AccpEo','number','25372oRsncY','FAILED','sync-status','2397816nvRlCA','73634tSAbTs','195Mmqopa','num','\x20is\x20','isSafeInteger','1155EUAoVq','PENDING','63168gLIKew','Preserved\x20server-defined\x20status\x20',';\x20terminal\x20state\x20is\x20unknown\x20to\x20this\x20CLI\x20version.','has','PARTIAL_SUCCESS','bizType'];a112_0x2b65=function(){return _0x5d37b0;};return a112_0x2b65();}
@@ -1 +1 @@
1
- function a113_0xd312(){const _0x4234e4=['45544qnbnio','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(set,\x20length=','(not\x20set)','\x20\x20runtimeDomain:\x20\x20\x20','\x20←\x20current','riskLevel','apps','bold','14ViqaoH','\x20\x20skillDomain:\x20\x20\x20\x20\x20','108lRpkHN','✗\x20Expired','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','region','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','green','raw','\x20\x20Auth','regionSource','defaultApp','✓\x20Valid','status','label','\x20\x20Legacy\x20inherit:\x20\x20\x20','installedPath','\x20\x20Built-in\x20Skill','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','push','routing','\x20(default)','322570KFWowG','\x20\x20Routing\x20Configuration','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','doctor','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','Project','platform','2478vDtEXB','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','812669lgnGit','missing','\x20\x20Merged\x20Config','✗\x20Invalid\x20JSON','(default:\x20','(none)','env','(default)','(not\x20found)','\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','current','4396440DVxjPG','padEnd','message','.region\x20to\x20cn\x20or\x20id\x20in\x20','✗\x20Not\x20logged\x20in','accessKey','hasOwnProperty','✗\x20Invalid\x20','repeat','explicitAppName','\x20\x20Repair\x20project:\x20\x20','\x20config','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','empty','red','arch','unknown','length','join','\x20config\x20delete\x20routing\x20--global','verbose','global','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','inherit','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','cookie','\x20app\x20\x22','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','3555CIBazZ','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','null','value','slice','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','project','repairCommand','skillVersion','\x20\x20kbDomain:\x20\x20\x20\x20\x20\x20\x20\x20','gray','✓\x20Valid\x20JSON','\x20config\x20delete\x20inherit\x20--global','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','filter','Global','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','check','\x20\x20Apps','appCode','9236kUqoRs','present','✗\x20Invalid','yellow','projectConfig','(missing)','Not\x20checked\x20until\x20routing\x20configuration\x20is\x20repaired','currentApp','entries','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','appcode','Repair\x20','411UbcfQf','\x20\x20Config\x20JSON','\x20config\x20delete\x20routing','⚠\x20Empty\x20(treated\x20as\x20{})','log','\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','prototype','\x20\x20─','toLowerCase','\x20\x20\x20\x20region:\x20\x20\x20\x20\x20','object','5399625RTdhms','source','call','\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Repair\x20global:\x20\x20\x20\x20','\x20\x20Repair\x20global:\x20\x20\x20','apiDir','\x20\x20app\x20locale:\x20\x20\x20\x20\x20\x20','format','string','(no\x20file)','globalConfig','\x20\x20Config\x20Files','\x20config\x20delete\x20region','Unavailable\x20until\x20routing\x20configuration\x20is\x20repaired','\x20\x20Package\x20Version:\x20','\x20config\x20delete\x20region\x20--global','stringify','state','\x20(invalid)','reason','\x20\x20API\x20Endpoints','\x20\x20explicitAppName:\x20','regionConfiguredValue'];a113_0xd312=function(){return _0x4234e4;};return a113_0xd312();}const a113_0x174232=a113_0x2bc6;(function(_0x42c734,_0x395dbe){const _0x33b145=a113_0x2bc6,_0x4c4c87=_0x42c734();while(!![]){try{const _0x2c3ce9=-parseInt(_0x33b145(0xf6))/0x1*(-parseInt(_0x33b145(0xed))/0x2)+-parseInt(_0x33b145(0xca))/0x3*(parseInt(_0x33b145(0xbe))/0x4)+-parseInt(_0x33b145(0x13d))/0x5*(parseInt(_0x33b145(0x113))/0x6)+parseInt(_0x33b145(0xd5))/0x7+-parseInt(_0x33b145(0x120))/0x8+parseInt(_0x33b145(0xf8))/0x9*(parseInt(_0x33b145(0x10c))/0xa)+parseInt(_0x33b145(0x115))/0xb;if(_0x2c3ce9===_0x395dbe)break;else _0x4c4c87['push'](_0x4c4c87['shift']());}catch(_0x46a1c0){_0x4c4c87['push'](_0x4c4c87['shift']());}}}(a113_0xd312,0x5f9bf));import a113_0x5056e5 from'chalk';function a113_0x2bc6(_0x3a83a8,_0x2d95c4){_0x3a83a8=_0x3a83a8-0xaa;const _0xd312b9=a113_0xd312();let _0x2bc674=_0xd312b9[_0x3a83a8];return _0x2bc674;}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(_0xcd1cff){const _0x579304=a113_0x2bc6;return typeof _0xcd1cff===_0x579304(0xde)?JSON[_0x579304(0xe6)](_0xcd1cff):'<'+(_0xcd1cff===null?_0x579304(0xab):typeof _0xcd1cff)+'>';}async function execute(_0x19b8fa){const _0x339d1a=a113_0x2bc6,_0x3125b2=GIT_COMMIT!==_0x339d1a(0x130)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x339d1a(0xad)](0x0,0xa)+')':VERSION,_0x4542bd=buildConfigFromFlags({}),_0xf1ff6f=getCookie();let _0x58d2e5;try{await initGlobalEnvironment(_0x4542bd);}catch(_0x2acb4c){_0x58d2e5=_0x2acb4c instanceof Error?_0x2acb4c:new Error(String(_0x2acb4c));}console[_0x339d1a(0xce)](),console[_0x339d1a(0xce)](a113_0x5056e5['bold'](CLI_BIN_NAME+'\x20doctor')),console[_0x339d1a(0xce)](a113_0x5056e5[_0x339d1a(0xb3)]('─'['repeat'](0x32))),console[_0x339d1a(0xce)](_0x339d1a(0x12c)+_0x3125b2),console['log'](_0x339d1a(0x114)+process['version']),console[_0x339d1a(0xce)]('\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20'+process[_0x339d1a(0x112)]+'\x20'+process[_0x339d1a(0x12f)]);const _0x289bd4=inspectBuiltinSkill();console[_0x339d1a(0xce)](),console[_0x339d1a(0xce)](a113_0x5056e5[_0x339d1a(0xf5)](_0x339d1a(0x107))),console[_0x339d1a(0xce)](a113_0x5056e5[_0x339d1a(0xb3)](_0x339d1a(0xd1)[_0x339d1a(0x128)](0x1e)));const _0x8356c7=_0x289bd4[_0x339d1a(0xe7)]===_0x339d1a(0x11f)?a113_0x5056e5[_0x339d1a(0xfd)]('✓\x20'+_0x289bd4[_0x339d1a(0xe7)]):a113_0x5056e5[_0x339d1a(0x12e)]('✗\x20'+_0x289bd4['state']);console[_0x339d1a(0xce)]('\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x8356c7),console[_0x339d1a(0xce)](_0x339d1a(0xe4)+_0x289bd4['packageVersion']),console[_0x339d1a(0xce)]('\x20\x20Skill\x20Version:\x20\x20\x20'+(_0x289bd4[_0x339d1a(0xb1)]||a113_0x5056e5[_0x339d1a(0xb3)]('(unknown)'))),console[_0x339d1a(0xce)]('\x20\x20Installed\x20Path:\x20\x20'+(_0x289bd4[_0x339d1a(0x106)]||a113_0x5056e5[_0x339d1a(0xb3)](_0x339d1a(0x11d))));if(_0x289bd4[_0x339d1a(0xe9)])console[_0x339d1a(0xce)](_0x339d1a(0xcf)+_0x289bd4[_0x339d1a(0xe9)]);_0x289bd4['state']!==_0x339d1a(0x11f)&&console['log'](_0x339d1a(0x11e)+_0x289bd4[_0x339d1a(0xb0)]);console[_0x339d1a(0xce)](),console[_0x339d1a(0xce)](a113_0x5056e5['bold'](_0x339d1a(0xe1))),console[_0x339d1a(0xce)](a113_0x5056e5[_0x339d1a(0xb3)]('\x20\x20─'[_0x339d1a(0x128)](0x1e)));const _0x3d8e5e=getGlobalConfigPath(),_0x54fbdb=getProjectConfigPath();console[_0x339d1a(0xce)](_0x339d1a(0xb7)+(_0x3d8e5e||a113_0x5056e5[_0x339d1a(0xb3)](_0x339d1a(0x11d)))),console[_0x339d1a(0xce)](_0x339d1a(0x138)+(_0x54fbdb||a113_0x5056e5[_0x339d1a(0xb3)](_0x339d1a(0x11d)))),console[_0x339d1a(0xce)](),console[_0x339d1a(0xce)](a113_0x5056e5[_0x339d1a(0xf5)](_0x339d1a(0xcb))),console[_0x339d1a(0xce)](a113_0x5056e5[_0x339d1a(0xb3)](_0x339d1a(0xd1)[_0x339d1a(0x128)](0x1e)));const _0x3c9309=(_0x566be5,_0x6f1182)=>{const _0x4ca1e9=_0x339d1a;if(!_0x6f1182){console[_0x4ca1e9(0xce)]('\x20\x20'+_0x566be5[_0x4ca1e9(0x121)](0x11)+'\x20'+a113_0x5056e5[_0x4ca1e9(0xb3)](_0x4ca1e9(0xdf)));return;}const _0x240d63=inspectCliConfigJsonFile(_0x6f1182);if(_0x240d63[_0x4ca1e9(0x103)]==='ok')console[_0x4ca1e9(0xce)]('\x20\x20'+_0x566be5['padEnd'](0x11)+'\x20'+a113_0x5056e5[_0x4ca1e9(0xfd)](_0x4ca1e9(0xb4)));else{if(_0x240d63[_0x4ca1e9(0x103)]===_0x4ca1e9(0x12d))console[_0x4ca1e9(0xce)]('\x20\x20'+_0x566be5[_0x4ca1e9(0x121)](0x11)+'\x20'+a113_0x5056e5['yellow'](_0x4ca1e9(0xcd)));else _0x240d63['status']===_0x4ca1e9(0x116)?console[_0x4ca1e9(0xce)]('\x20\x20'+_0x566be5[_0x4ca1e9(0x121)](0x11)+'\x20'+a113_0x5056e5[_0x4ca1e9(0xb3)](_0x4ca1e9(0xc3))):(console[_0x4ca1e9(0xce)]('\x20\x20'+_0x566be5[_0x4ca1e9(0x121)](0x11)+'\x20'+a113_0x5056e5[_0x4ca1e9(0x12e)](_0x4ca1e9(0x118))),console[_0x4ca1e9(0xce)]('\x20\x20'+''[_0x4ca1e9(0x121)](0x11)+'\x20'+a113_0x5056e5['red'](_0x240d63[_0x4ca1e9(0x122)])));}};_0x3c9309(_0x339d1a(0xb9),_0x3d8e5e),_0x3c9309(_0x339d1a(0x111),_0x54fbdb);const _0x4b30bc=loadRawConfigLayers(),_0x429d0e=[{'label':_0x339d1a(0x111),'value':_0x4b30bc[_0x339d1a(0xc2)][_0x339d1a(0xfb)],'present':Object[_0x339d1a(0xd0)][_0x339d1a(0x126)][_0x339d1a(0xd7)](_0x4b30bc[_0x339d1a(0xc2)],'region'),'repairCommand':CLI_BIN_NAME+_0x339d1a(0xe2)},{'label':_0x339d1a(0xb9),'value':_0x4b30bc[_0x339d1a(0xe0)][_0x339d1a(0xfb)],'present':Object[_0x339d1a(0xd0)][_0x339d1a(0x126)][_0x339d1a(0xd7)](_0x4b30bc[_0x339d1a(0xe0)],_0x339d1a(0xfb)),'repairCommand':CLI_BIN_NAME+_0x339d1a(0xe5)}][_0x339d1a(0xb8)](_0x491f80=>_0x491f80[_0x339d1a(0xbf)]&&isInvalidLovrabetRegion(_0x491f80['value']));for(const [_0xb5f24b,_0x4e1b2e]of[[_0x339d1a(0x111),_0x4b30bc[_0x339d1a(0xc2)]],[_0x339d1a(0xb9),_0x4b30bc[_0x339d1a(0xe0)]]]){const _0x1e09e5=_0x4e1b2e[_0x339d1a(0xf4)]&&typeof _0x4e1b2e[_0x339d1a(0xf4)]===_0x339d1a(0xd4)?_0x4e1b2e[_0x339d1a(0xf4)]:{};for(const [_0x5e2906,_0x407121]of Object[_0x339d1a(0xc6)](_0x1e09e5)){if(!_0x407121||typeof _0x407121!=='object'||!Object[_0x339d1a(0xd0)]['hasOwnProperty']['call'](_0x407121,_0x339d1a(0xfb)))continue;isInvalidLovrabetRegion(_0x407121[_0x339d1a(0xfb)])&&_0x429d0e[_0x339d1a(0x109)]({'label':_0xb5f24b+_0x339d1a(0x13a)+_0x5e2906+'\x22','value':_0x407121[_0x339d1a(0xfb)],'present':!![],'repairCommand':'Set\x20apps.'+_0x5e2906+_0x339d1a(0x123)+_0xb5f24b[_0x339d1a(0xd2)]()+_0x339d1a(0x12b)});}}if(_0x429d0e['length']>0x0){console[_0x339d1a(0xce)](),console['log'](a113_0x5056e5[_0x339d1a(0xf5)]('\x20\x20Country/Region\x20Configuration')),console['log'](a113_0x5056e5[_0x339d1a(0xb3)](_0x339d1a(0xd1)[_0x339d1a(0x128)](0x1e)));for(const _0x38d6fb of _0x429d0e){console['log']('\x20\x20'+_0x38d6fb[_0x339d1a(0x104)][_0x339d1a(0x121)](0x11)+'\x20'+a113_0x5056e5[_0x339d1a(0x12e)](_0x339d1a(0x127)+describeRegionValue(_0x38d6fb['value']))),console[_0x339d1a(0xce)]('\x20\x20'+(_0x339d1a(0xc9)+_0x38d6fb[_0x339d1a(0x104)]['toLowerCase']()+':')[_0x339d1a(0x121)](0x10)+'\x20'+_0x38d6fb['repairCommand']);}}const _0xca4800=[Object[_0x339d1a(0xd0)]['hasOwnProperty']['call'](_0x4b30bc[_0x339d1a(0xe0)],_0x339d1a(0x137))?'global':null,Object[_0x339d1a(0xd0)]['hasOwnProperty']['call'](_0x4b30bc['projectConfig'],'inherit')?_0x339d1a(0xaf):null][_0x339d1a(0xb8)](Boolean);_0xca4800[_0x339d1a(0x131)]>0x0&&(console[_0x339d1a(0xce)](_0x339d1a(0x105)+a113_0x5056e5[_0x339d1a(0xc1)]('ignored\x20in\x20'+_0xca4800[_0x339d1a(0x132)]('\x20+\x20')+_0x339d1a(0x12b))),_0xca4800['includes'](_0x339d1a(0xaf))&&console['log']('\x20\x20Repair\x20project:\x20\x20\x20'+CLI_BIN_NAME+'\x20config\x20delete\x20inherit'),_0xca4800['includes'](_0x339d1a(0x135))&&console[_0x339d1a(0xce)](_0x339d1a(0xd9)+CLI_BIN_NAME+_0x339d1a(0xb5)));const _0x3f365b=isInvalidLovrabetRegion(_0x4542bd[_0x339d1a(0xec)]??_0x4542bd[_0x339d1a(0xfe)]?.['region']);_0x58d2e5&&!_0x3f365b&&(console['log'](),console['log'](a113_0x5056e5['bold'](_0x339d1a(0x10d))),console[_0x339d1a(0xce)](a113_0x5056e5[_0x339d1a(0xb3)](_0x339d1a(0xd1)[_0x339d1a(0x128)](0x1e))),console['log'](_0x339d1a(0xb6)+a113_0x5056e5[_0x339d1a(0x12e)](_0x339d1a(0xc0))),console['log'](_0x339d1a(0xcf)+_0x58d2e5[_0x339d1a(0x122)]),Object['prototype'][_0x339d1a(0x126)][_0x339d1a(0xd7)](_0x4b30bc[_0x339d1a(0xc2)],'routing')&&console[_0x339d1a(0xce)](_0x339d1a(0x12a)+CLI_BIN_NAME+_0x339d1a(0xcc)),Object[_0x339d1a(0xd0)]['hasOwnProperty'][_0x339d1a(0xd7)](_0x4b30bc[_0x339d1a(0xe0)],_0x339d1a(0x10a))&&console[_0x339d1a(0xce)](_0x339d1a(0xda)+CLI_BIN_NAME+_0x339d1a(0x133)));console[_0x339d1a(0xce)](),console[_0x339d1a(0xce)](a113_0x5056e5[_0x339d1a(0xf5)](_0x339d1a(0x117))),console['log'](a113_0x5056e5[_0x339d1a(0xb3)](_0x339d1a(0xd1)[_0x339d1a(0x128)](0x1e))),console[_0x339d1a(0xce)]('\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x4542bd[_0x339d1a(0xbd)]||a113_0x5056e5[_0x339d1a(0x12e)](_0x339d1a(0xf0))));const _0x4e030d=_0x3f365b?a113_0x5056e5['red'](describeRegionValue(_0x4542bd[_0x339d1a(0xec)]??_0x4542bd[_0x339d1a(0xfe)]?.[_0x339d1a(0xfb)])+_0x339d1a(0xe8)):(_0x4542bd[_0x339d1a(0xfb)]??DEFAULT_LOVRABET_REGION)+'\x20('+(_0x4542bd[_0x339d1a(0x100)]??'default')+')';console[_0x339d1a(0xce)](_0x339d1a(0xd8)+_0x4e030d),console[_0x339d1a(0xce)]('\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x4542bd['env']),console['log'](_0x339d1a(0xdc)+_0x4542bd['locale']),console['log'](_0x339d1a(0xae)+_0x4542bd[_0x339d1a(0xdb)]),console[_0x339d1a(0xce)](_0x339d1a(0xba)+(_0x4542bd['defaultApp']||a113_0x5056e5[_0x339d1a(0xb3)](_0x339d1a(0x11a)))),console[_0x339d1a(0xce)]('\x20\x20currentApp:\x20\x20\x20\x20\x20\x20'+(_0x4542bd[_0x339d1a(0xc5)]||a113_0x5056e5[_0x339d1a(0xb3)](_0x339d1a(0x11a)))),console[_0x339d1a(0xce)](_0x339d1a(0xeb)+(_0x4542bd[_0x339d1a(0x129)]||a113_0x5056e5['gray'](_0x339d1a(0x11a)))),console[_0x339d1a(0xce)](_0x339d1a(0xee)+(_0x4542bd['format']||a113_0x5056e5['gray'](_0x339d1a(0x119)+DEFAULT_CONFIG_VALUES[_0x339d1a(0xdd)]+')'))),console['log'](_0x339d1a(0xfa)+(_0x4542bd['pageSize']??a113_0x5056e5[_0x339d1a(0xb3)](_0x339d1a(0x11c)))),console[_0x339d1a(0xce)](_0x339d1a(0xc7)+_0x4542bd[_0x339d1a(0xf3)]),console[_0x339d1a(0xce)](_0x339d1a(0x108)+_0x4542bd[_0x339d1a(0x134)]),console[_0x339d1a(0xce)](_0x339d1a(0xaa)+(_0x4542bd[_0x339d1a(0x139)]?a113_0x5056e5[_0x339d1a(0xfd)](_0x339d1a(0xef)+_0x4542bd['cookie']['length']+')'):_0xf1ff6f?a113_0x5056e5[_0x339d1a(0xfd)]('(set\x20via\x20file,\x20length='+_0xf1ff6f[_0x339d1a(0x131)]+')'):a113_0x5056e5[_0x339d1a(0xb3)](_0x339d1a(0x11a))));const _0x336b75=Object['keys'](_0x4542bd[_0x339d1a(0xf4)]);if(_0x336b75[_0x339d1a(0x131)]>0x0){console['log'](),console[_0x339d1a(0xce)](a113_0x5056e5['bold'](_0x339d1a(0xbc))),console[_0x339d1a(0xce)](a113_0x5056e5[_0x339d1a(0xb3)](_0x339d1a(0xd1)[_0x339d1a(0x128)](0x1e)));for(const _0x3f8a04 of _0x336b75){const _0x32b6aa=_0x4542bd['apps'][_0x3f8a04],_0x3a2ea5=_0x3f8a04===_0x4542bd[_0x339d1a(0x101)],_0x1d7ec8=_0x3f8a04===_0x4542bd[_0x339d1a(0xc5)],_0x4b516f=_0x1d7ec8?a113_0x5056e5[_0x339d1a(0xfd)](_0x339d1a(0xf2)):'',_0x66d3e=_0x3a2ea5?_0x339d1a(0x10b):'';console['log']('\x20\x20'+_0x3f8a04+_0x66d3e+_0x4b516f),console[_0x339d1a(0xce)](_0x339d1a(0xfc)+_0x32b6aa[_0x339d1a(0xc8)]);const _0x202e53=_0x4b30bc[_0x339d1a(0xc2)][_0x339d1a(0xf4)]&&typeof _0x4b30bc['projectConfig'][_0x339d1a(0xf4)]==='object'?_0x4b30bc['projectConfig'][_0x339d1a(0xf4)]:{},_0x3de20b=Object[_0x339d1a(0xd0)]['hasOwnProperty'][_0x339d1a(0xd7)](_0x202e53,_0x3f8a04),_0x39d70f=isInvalidLovrabetRegion(_0x32b6aa[_0x339d1a(0xfb)])?{'region':_0x4542bd[_0x339d1a(0xfb)]??DEFAULT_LOVRABET_REGION}:resolveEffectiveRegion({'appRegion':_0x32b6aa[_0x339d1a(0xfb)],'projectRegion':_0x3de20b?_0x4b30bc[_0x339d1a(0xc2)][_0x339d1a(0xfb)]:undefined,'globalRegion':_0x4b30bc[_0x339d1a(0xe0)][_0x339d1a(0xfb)],'mergedRegion':_0x4542bd[_0x339d1a(0xfe)][_0x339d1a(0xfb)],'appName':_0x3f8a04}),_0x30e748=buildAppDoctorFields(_0x32b6aa,{'region':_0x39d70f[_0x339d1a(0xfb)],'env':_0x4542bd['env'],'apiDir':_0x4542bd[_0x339d1a(0xfe)][_0x339d1a(0xdb)]||DEFAULT_CONFIG_VALUES[_0x339d1a(0xdb)],'cookie':_0x4542bd[_0x339d1a(0x139)]||_0xf1ff6f||undefined,'accessKey':_0x4542bd['accessKey']});console['log'](_0x339d1a(0xd3)+_0x30e748[_0x339d1a(0xfb)][_0x339d1a(0xac)]+'\x20\x20'+a113_0x5056e5[_0x339d1a(0xb3)]('('+_0x30e748[_0x339d1a(0xfb)][_0x339d1a(0xd6)]+')')),console[_0x339d1a(0xce)]('\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x30e748[_0x339d1a(0x11b)][_0x339d1a(0xac)]+'\x20\x20'+a113_0x5056e5[_0x339d1a(0xb3)]('('+_0x30e748[_0x339d1a(0x11b)][_0x339d1a(0xd6)]+')')),console['log'](_0x339d1a(0x110)+_0x30e748[_0x339d1a(0xdb)][_0x339d1a(0xac)]+'\x20\x20'+a113_0x5056e5[_0x339d1a(0xb3)]('('+_0x30e748[_0x339d1a(0xdb)]['source']+')'));const _0x24a5a0=_0x30e748[_0x339d1a(0x139)][_0x339d1a(0xac)]?a113_0x5056e5['green'](_0x339d1a(0xef)+_0x30e748[_0x339d1a(0x139)][_0x339d1a(0xac)][_0x339d1a(0x131)]+')'):a113_0x5056e5[_0x339d1a(0xb3)](_0x339d1a(0x11a));console[_0x339d1a(0xce)](_0x339d1a(0x13b)+_0x24a5a0+'\x20\x20'+a113_0x5056e5[_0x339d1a(0xb3)]('('+_0x30e748['cookie']['source']+')'));const _0x5d8a84=_0x30e748[_0x339d1a(0x125)]['value']?a113_0x5056e5[_0x339d1a(0xfd)](_0x339d1a(0xef)+_0x30e748['accessKey']['value'][_0x339d1a(0x131)]+')'):a113_0x5056e5[_0x339d1a(0xb3)](_0x339d1a(0x11a));console[_0x339d1a(0xce)]('\x20\x20\x20\x20accessKey:\x20\x20'+_0x5d8a84+'\x20\x20'+a113_0x5056e5[_0x339d1a(0xb3)]('('+_0x30e748[_0x339d1a(0x125)][_0x339d1a(0xd6)]+')'));}}console[_0x339d1a(0xce)](),console[_0x339d1a(0xce)](a113_0x5056e5['bold'](_0x339d1a(0xea))),console[_0x339d1a(0xce)](a113_0x5056e5[_0x339d1a(0xb3)](_0x339d1a(0xd1)[_0x339d1a(0x128)](0x1e)));_0x58d2e5?console['log'](_0x339d1a(0xb6)+a113_0x5056e5[_0x339d1a(0x12e)](_0x339d1a(0xe3))):(console[_0x339d1a(0xce)]('\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+getActiveRegion()),console[_0x339d1a(0xce)](_0x339d1a(0x10e)+getApiDomain()),console[_0x339d1a(0xce)](_0x339d1a(0x13c)+getUserDomain()),console[_0x339d1a(0xce)](_0x339d1a(0xf1)+getRuntimeDomain()),console['log'](_0x339d1a(0xf7)+getSkillDomain()),console[_0x339d1a(0xce)](_0x339d1a(0xb2)+getKbDomain()),console['log']('\x20\x20appDomain:\x20\x20\x20\x20\x20\x20\x20'+getAppDomain()));console[_0x339d1a(0xce)](),console['log'](a113_0x5056e5[_0x339d1a(0xf5)](_0x339d1a(0xff))),console[_0x339d1a(0xce)](a113_0x5056e5[_0x339d1a(0xb3)](_0x339d1a(0xd1)[_0x339d1a(0x128)](0x1e)));if(_0x58d2e5)console[_0x339d1a(0xce)](_0x339d1a(0xb6)+a113_0x5056e5[_0x339d1a(0xc1)](_0x339d1a(0xc4)));else{if(_0xf1ff6f){const _0x2305e1=await getIsSessionValid();console[_0x339d1a(0xce)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x2305e1?a113_0x5056e5[_0x339d1a(0xfd)](_0x339d1a(0x102)):a113_0x5056e5[_0x339d1a(0x12e)](_0x339d1a(0xf9))));}else console[_0x339d1a(0xce)](_0x339d1a(0xb6)+a113_0x5056e5[_0x339d1a(0x12e)](_0x339d1a(0x124)));}return console[_0x339d1a(0xce)](),{'ok':!![]};}export const doctorDefinition={'service':a113_0x174232(0x10f),'command':a113_0x174232(0xbb),'description':a113_0x174232(0x136),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
1
+ const a113_0x4fb719=a113_0x423d;function a113_0x2884(){const _0x33d90a=['\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','not\x20configured','region','\x20\x20Skill\x20Version:\x20\x20\x20','Set\x20apps.','repairCommand','\x20config\x20delete\x20routing','gray','\x20(invalid)','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','object','global','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','3203970dzHfOl','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','present','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','state','⚠\x20Empty\x20(treated\x20as\x20{})','hasOwnProperty','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','\x20config\x20delete\x20region','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','entries','env','apiDir','\x20\x20skillDomain:\x20\x20\x20\x20\x20','appCode','current','cookie','\x20\x20API\x20Endpoints','Not\x20checked\x20until\x20routing\x20configuration\x20is\x20repaired','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Merged\x20Config','\x20\x20explicitAppName:\x20','slice','globalConfig','\x20\x20Config\x20JSON','\x20app\x20\x22','missing','verbose','green','riskLevel','2226558UOXPCh','\x20\x20Repair\x20global:\x20\x20\x20','format','arch','\x20\x20Repair\x20project:\x20\x20\x20','toLowerCase','bold','\x20\x20\x20\x20accessKey:\x20\x20','\x20doctor','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','apps','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','includes','packageVersion','(no\x20file)','\x20(default)','call','(unknown)','\x20\x20kbDomain:\x20\x20\x20\x20\x20\x20\x20\x20','keys','✗\x20Invalid\x20','ignored\x20in\x20','platform','filter','(not\x20set)','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','reason','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','(set,\x20length=','value','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','source','\x20\x20Auth','\x20\x20─','log','3955040KaSNEf','(set\x20via\x20file,\x20length=','project','check','\x20\x20Package\x20Version:\x20','Project','accessKey','yellow','\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','projectConfig','✓\x20Valid','raw','default','\x20\x20Repair\x20project:\x20\x20','2235918WwIfuh','length','(none)','prototype','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','routing','Repair\x20','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','22740494ythPuG','\x20\x20\x20\x20region:\x20\x20\x20\x20\x20','(not\x20found)','repeat','\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20+\x20','empty','pageSize','\x20config\x20delete\x20inherit\x20--global','red','(missing)','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','null','\x20\x20Apps','.region\x20to\x20cn\x20or\x20id\x20in\x20','1267427suSXOf','\x20\x20Routing\x20Configuration','status','defaultApp','padEnd','regionSource','push','(default)','\x20\x20Repair\x20global:\x20\x20\x20\x20','label','1131804zNidGM','\x20config','✗\x20Invalid\x20JSON','stringify','message','installedPath','✓\x20Valid\x20JSON','Global'];a113_0x2884=function(){return _0x33d90a;};return a113_0x2884();}(function(_0x5a16e0,_0x48b5f3){const _0x107fa8=a113_0x423d,_0xc19d30=_0x5a16e0();while(!![]){try{const _0xecbdd2=-parseInt(_0x107fa8(0x189))/0x1+-parseInt(_0x107fa8(0x170))/0x2+-parseInt(_0x107fa8(0x13f))/0x3+parseInt(_0x107fa8(0x162))/0x4+-parseInt(_0x107fa8(0x11f))/0x5+parseInt(_0x107fa8(0x10a))/0x6+parseInt(_0x107fa8(0x17a))/0x7;if(_0xecbdd2===_0x48b5f3)break;else _0xc19d30['push'](_0xc19d30['shift']());}catch(_0x439645){_0xc19d30['push'](_0xc19d30['shift']());}}}(a113_0x2884,0xa0906));import a113_0x3d272f from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';import{getActiveRegion,getApiDomain,getAppDomain,getKbDomain,getKbServiceDomain,getSkillDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags,initGlobalEnvironment,inspectCliConfigJsonFile,loadRawConfigLayers}from'../context.js';import{getIsSessionValid}from'../auth/is-session-valid.js';import{getCookie}from'../auth/get-cookie.js';import{buildAppDoctorFields}from'../config/schema.js';import{resolveEffectiveRegion}from'../config/region-config.js';import{inspectBuiltinSkill}from'../skills/builtin-skill.js';import{DEFAULT_LOVRABET_REGION,isInvalidLovrabetRegion}from'../constant/region.js';function describeRegionValue(_0x572a5d){const _0x3e9be9=a113_0x423d;return typeof _0x572a5d==='string'?JSON[_0x3e9be9(0x10d)](_0x572a5d):'<'+(_0x572a5d===null?_0x3e9be9(0x186):typeof _0x572a5d)+'>';}async function execute(_0x394354){const _0x4abde0=a113_0x423d,_0x3df934=GIT_COMMIT!=='unknown'?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x4abde0(0x137)](0x0,0xa)+')':VERSION,_0xda8bae=buildConfigFromFlags({}),_0x190ae7=getCookie();let _0x4bdc95;try{await initGlobalEnvironment(_0xda8bae);}catch(_0x23d1fb){_0x4bdc95=_0x23d1fb instanceof Error?_0x23d1fb:new Error(String(_0x23d1fb));}console[_0x4abde0(0x161)](),console[_0x4abde0(0x161)](a113_0x3d272f[_0x4abde0(0x145)](CLI_BIN_NAME+_0x4abde0(0x147))),console[_0x4abde0(0x161)](a113_0x3d272f[_0x4abde0(0x119)]('─'[_0x4abde0(0x17d)](0x32))),console[_0x4abde0(0x161)](_0x4abde0(0x14a)+_0x3df934),console[_0x4abde0(0x161)](_0x4abde0(0x158)+process['version']),console[_0x4abde0(0x161)](_0x4abde0(0x148)+process[_0x4abde0(0x155)]+'\x20'+process[_0x4abde0(0x142)]);const _0x4bb834=inspectBuiltinSkill();console[_0x4abde0(0x161)](),console['log'](a113_0x3d272f[_0x4abde0(0x145)]('\x20\x20Built-in\x20Skill')),console[_0x4abde0(0x161)](a113_0x3d272f[_0x4abde0(0x119)](_0x4abde0(0x160)['repeat'](0x1e)));const _0x35c7b4=_0x4bb834['state']===_0x4abde0(0x130)?a113_0x3d272f[_0x4abde0(0x13d)]('✓\x20'+_0x4bb834[_0x4abde0(0x124)]):a113_0x3d272f[_0x4abde0(0x183)]('✗\x20'+_0x4bb834[_0x4abde0(0x124)]);console[_0x4abde0(0x161)]('\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x35c7b4),console[_0x4abde0(0x161)](_0x4abde0(0x166)+_0x4bb834[_0x4abde0(0x14c)]),console[_0x4abde0(0x161)](_0x4abde0(0x115)+(_0x4bb834['skillVersion']||a113_0x3d272f['gray'](_0x4abde0(0x150)))),console[_0x4abde0(0x161)]('\x20\x20Installed\x20Path:\x20\x20'+(_0x4bb834[_0x4abde0(0x10f)]||a113_0x3d272f[_0x4abde0(0x119)]('(not\x20found)')));if(_0x4bb834[_0x4abde0(0x159)])console[_0x4abde0(0x161)](_0x4abde0(0x16a)+_0x4bb834[_0x4abde0(0x159)]);_0x4bb834[_0x4abde0(0x124)]!==_0x4abde0(0x130)&&console['log'](_0x4abde0(0x178)+_0x4bb834[_0x4abde0(0x117)]);console['log'](),console[_0x4abde0(0x161)](a113_0x3d272f[_0x4abde0(0x145)]('\x20\x20Config\x20Files')),console[_0x4abde0(0x161)](a113_0x3d272f['gray']('\x20\x20─'[_0x4abde0(0x17d)](0x1e)));const _0x2486a9=getGlobalConfigPath(),_0x1b7ba8=getProjectConfigPath();console['log']('\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x2486a9||a113_0x3d272f['gray'](_0x4abde0(0x17c)))),console[_0x4abde0(0x161)](_0x4abde0(0x15d)+(_0x1b7ba8||a113_0x3d272f['gray']('(not\x20found)'))),console[_0x4abde0(0x161)](),console[_0x4abde0(0x161)](a113_0x3d272f[_0x4abde0(0x145)](_0x4abde0(0x139))),console[_0x4abde0(0x161)](a113_0x3d272f[_0x4abde0(0x119)](_0x4abde0(0x160)[_0x4abde0(0x17d)](0x1e)));const _0x560a93=(_0x3e8e5c,_0x43b22d)=>{const _0x456a7a=_0x4abde0;if(!_0x43b22d){console[_0x456a7a(0x161)]('\x20\x20'+_0x3e8e5c[_0x456a7a(0x18d)](0x11)+'\x20'+a113_0x3d272f[_0x456a7a(0x119)](_0x456a7a(0x14d)));return;}const _0x2a82b7=inspectCliConfigJsonFile(_0x43b22d);if(_0x2a82b7[_0x456a7a(0x18b)]==='ok')console[_0x456a7a(0x161)]('\x20\x20'+_0x3e8e5c[_0x456a7a(0x18d)](0x11)+'\x20'+a113_0x3d272f[_0x456a7a(0x13d)](_0x456a7a(0x110)));else{if(_0x2a82b7[_0x456a7a(0x18b)]===_0x456a7a(0x180))console[_0x456a7a(0x161)]('\x20\x20'+_0x3e8e5c[_0x456a7a(0x18d)](0x11)+'\x20'+a113_0x3d272f[_0x456a7a(0x169)](_0x456a7a(0x125)));else _0x2a82b7[_0x456a7a(0x18b)]===_0x456a7a(0x13b)?console[_0x456a7a(0x161)]('\x20\x20'+_0x3e8e5c[_0x456a7a(0x18d)](0x11)+'\x20'+a113_0x3d272f[_0x456a7a(0x119)](_0x456a7a(0x184))):(console[_0x456a7a(0x161)]('\x20\x20'+_0x3e8e5c[_0x456a7a(0x18d)](0x11)+'\x20'+a113_0x3d272f[_0x456a7a(0x183)](_0x456a7a(0x10c))),console[_0x456a7a(0x161)]('\x20\x20'+''[_0x456a7a(0x18d)](0x11)+'\x20'+a113_0x3d272f['red'](_0x2a82b7[_0x456a7a(0x10e)])));}};_0x560a93(_0x4abde0(0x111),_0x2486a9),_0x560a93('Project',_0x1b7ba8);const _0x2d1d8a=loadRawConfigLayers(),_0x4b891d=[{'label':_0x4abde0(0x167),'value':_0x2d1d8a[_0x4abde0(0x16b)][_0x4abde0(0x114)],'present':Object[_0x4abde0(0x173)]['hasOwnProperty']['call'](_0x2d1d8a[_0x4abde0(0x16b)],_0x4abde0(0x114)),'repairCommand':CLI_BIN_NAME+_0x4abde0(0x129)},{'label':_0x4abde0(0x111),'value':_0x2d1d8a[_0x4abde0(0x138)][_0x4abde0(0x114)],'present':Object[_0x4abde0(0x173)][_0x4abde0(0x126)][_0x4abde0(0x14f)](_0x2d1d8a[_0x4abde0(0x138)],_0x4abde0(0x114)),'repairCommand':CLI_BIN_NAME+'\x20config\x20delete\x20region\x20--global'}][_0x4abde0(0x156)](_0x31ae63=>_0x31ae63[_0x4abde0(0x122)]&&isInvalidLovrabetRegion(_0x31ae63['value']));for(const [_0x2c9d66,_0x3ed65d]of[[_0x4abde0(0x167),_0x2d1d8a[_0x4abde0(0x16b)]],[_0x4abde0(0x111),_0x2d1d8a['globalConfig']]]){const _0x27c8fa=_0x3ed65d[_0x4abde0(0x149)]&&typeof _0x3ed65d[_0x4abde0(0x149)]==='object'?_0x3ed65d[_0x4abde0(0x149)]:{};for(const [_0x54c2ec,_0x13c192]of Object[_0x4abde0(0x12b)](_0x27c8fa)){if(!_0x13c192||typeof _0x13c192!==_0x4abde0(0x11c)||!Object[_0x4abde0(0x173)][_0x4abde0(0x126)][_0x4abde0(0x14f)](_0x13c192,'region'))continue;isInvalidLovrabetRegion(_0x13c192['region'])&&_0x4b891d[_0x4abde0(0x18f)]({'label':_0x2c9d66+_0x4abde0(0x13a)+_0x54c2ec+'\x22','value':_0x13c192[_0x4abde0(0x114)],'present':!![],'repairCommand':_0x4abde0(0x116)+_0x54c2ec+_0x4abde0(0x188)+_0x2c9d66['toLowerCase']()+_0x4abde0(0x10b)});}}if(_0x4b891d[_0x4abde0(0x171)]>0x0){console[_0x4abde0(0x161)](),console[_0x4abde0(0x161)](a113_0x3d272f['bold']('\x20\x20Country/Region\x20Configuration')),console[_0x4abde0(0x161)](a113_0x3d272f[_0x4abde0(0x119)](_0x4abde0(0x160)[_0x4abde0(0x17d)](0x1e)));for(const _0x1eba41 of _0x4b891d){console[_0x4abde0(0x161)]('\x20\x20'+_0x1eba41[_0x4abde0(0x109)][_0x4abde0(0x18d)](0x11)+'\x20'+a113_0x3d272f['red'](_0x4abde0(0x153)+describeRegionValue(_0x1eba41[_0x4abde0(0x15c)]))),console['log']('\x20\x20'+(_0x4abde0(0x176)+_0x1eba41[_0x4abde0(0x109)][_0x4abde0(0x144)]()+':')[_0x4abde0(0x18d)](0x10)+'\x20'+_0x1eba41['repairCommand']);}}const _0x27447c=[Object[_0x4abde0(0x173)][_0x4abde0(0x126)][_0x4abde0(0x14f)](_0x2d1d8a[_0x4abde0(0x138)],'inherit')?_0x4abde0(0x11d):null,Object[_0x4abde0(0x173)][_0x4abde0(0x126)][_0x4abde0(0x14f)](_0x2d1d8a['projectConfig'],'inherit')?_0x4abde0(0x164):null][_0x4abde0(0x156)](Boolean);_0x27447c[_0x4abde0(0x171)]>0x0&&(console['log']('\x20\x20Legacy\x20inherit:\x20\x20\x20'+a113_0x3d272f[_0x4abde0(0x169)](_0x4abde0(0x154)+_0x27447c['join'](_0x4abde0(0x17f))+_0x4abde0(0x10b))),_0x27447c[_0x4abde0(0x14b)](_0x4abde0(0x164))&&console[_0x4abde0(0x161)](_0x4abde0(0x143)+CLI_BIN_NAME+'\x20config\x20delete\x20inherit'),_0x27447c[_0x4abde0(0x14b)](_0x4abde0(0x11d))&&console[_0x4abde0(0x161)](_0x4abde0(0x108)+CLI_BIN_NAME+_0x4abde0(0x182)));const _0x2e8e2c=isInvalidLovrabetRegion(_0xda8bae['regionConfiguredValue']??_0xda8bae[_0x4abde0(0x16d)]?.[_0x4abde0(0x114)]);_0x4bdc95&&!_0x2e8e2c&&(console[_0x4abde0(0x161)](),console[_0x4abde0(0x161)](a113_0x3d272f[_0x4abde0(0x145)](_0x4abde0(0x18a))),console[_0x4abde0(0x161)](a113_0x3d272f['gray'](_0x4abde0(0x160)[_0x4abde0(0x17d)](0x1e))),console[_0x4abde0(0x161)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a113_0x3d272f[_0x4abde0(0x183)]('✗\x20Invalid')),console['log'](_0x4abde0(0x16a)+_0x4bdc95['message']),Object['prototype'][_0x4abde0(0x126)]['call'](_0x2d1d8a[_0x4abde0(0x16b)],_0x4abde0(0x175))&&console['log'](_0x4abde0(0x16f)+CLI_BIN_NAME+_0x4abde0(0x118)),Object[_0x4abde0(0x173)][_0x4abde0(0x126)]['call'](_0x2d1d8a['globalConfig'],_0x4abde0(0x175))&&console[_0x4abde0(0x161)](_0x4abde0(0x140)+CLI_BIN_NAME+'\x20config\x20delete\x20routing\x20--global'));console[_0x4abde0(0x161)](),console[_0x4abde0(0x161)](a113_0x3d272f[_0x4abde0(0x145)](_0x4abde0(0x135))),console['log'](a113_0x3d272f['gray']('\x20\x20─'[_0x4abde0(0x17d)](0x1e))),console[_0x4abde0(0x161)](_0x4abde0(0x121)+(_0xda8bae[_0x4abde0(0x12f)]||a113_0x3d272f[_0x4abde0(0x183)](_0x4abde0(0x157))));const _0x3399fb=_0x2e8e2c?a113_0x3d272f['red'](describeRegionValue(_0xda8bae['regionConfiguredValue']??_0xda8bae[_0x4abde0(0x16d)]?.[_0x4abde0(0x114)])+_0x4abde0(0x11a)):(_0xda8bae['region']??DEFAULT_LOVRABET_REGION)+'\x20('+(_0xda8bae[_0x4abde0(0x18e)]??_0x4abde0(0x16e))+')';console['log'](_0x4abde0(0x17e)+_0x3399fb),console['log']('\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0xda8bae[_0x4abde0(0x12c)]),console[_0x4abde0(0x161)]('\x20\x20app\x20locale:\x20\x20\x20\x20\x20\x20'+_0xda8bae['locale']),console['log'](_0x4abde0(0x11b)+_0xda8bae['apiDir']),console[_0x4abde0(0x161)](_0x4abde0(0x112)+(_0xda8bae[_0x4abde0(0x18c)]||a113_0x3d272f['gray']('(none)'))),console[_0x4abde0(0x161)](_0x4abde0(0x11e)+(_0xda8bae['currentApp']||a113_0x3d272f[_0x4abde0(0x119)](_0x4abde0(0x172)))),console[_0x4abde0(0x161)](_0x4abde0(0x136)+(_0xda8bae['explicitAppName']||a113_0x3d272f[_0x4abde0(0x119)](_0x4abde0(0x172)))),console[_0x4abde0(0x161)](_0x4abde0(0x134)+(_0xda8bae[_0x4abde0(0x141)]||a113_0x3d272f[_0x4abde0(0x119)]('(default:\x20'+DEFAULT_CONFIG_VALUES[_0x4abde0(0x141)]+')'))),console['log']('\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20'+(_0xda8bae[_0x4abde0(0x181)]??a113_0x3d272f[_0x4abde0(0x119)](_0x4abde0(0x190)))),console[_0x4abde0(0x161)](_0x4abde0(0x128)+_0xda8bae[_0x4abde0(0x13e)]),console[_0x4abde0(0x161)](_0x4abde0(0x174)+_0xda8bae[_0x4abde0(0x13c)]),console['log'](_0x4abde0(0x123)+(_0xda8bae[_0x4abde0(0x131)]?a113_0x3d272f['green'](_0x4abde0(0x15b)+_0xda8bae[_0x4abde0(0x131)][_0x4abde0(0x171)]+')'):_0x190ae7?a113_0x3d272f[_0x4abde0(0x13d)](_0x4abde0(0x163)+_0x190ae7['length']+')'):a113_0x3d272f[_0x4abde0(0x119)](_0x4abde0(0x172))));const _0x2d2734=Object[_0x4abde0(0x152)](_0xda8bae['apps']);if(_0x2d2734['length']>0x0){console[_0x4abde0(0x161)](),console[_0x4abde0(0x161)](a113_0x3d272f[_0x4abde0(0x145)](_0x4abde0(0x187))),console[_0x4abde0(0x161)](a113_0x3d272f[_0x4abde0(0x119)](_0x4abde0(0x160)[_0x4abde0(0x17d)](0x1e)));for(const _0x29438d of _0x2d2734){const _0x21c27d=_0xda8bae['apps'][_0x29438d],_0x56a504=_0x29438d===_0xda8bae[_0x4abde0(0x18c)],_0x32c2b9=_0x29438d===_0xda8bae['currentApp'],_0x1a978d=_0x32c2b9?a113_0x3d272f[_0x4abde0(0x13d)]('\x20←\x20current'):'',_0x26dbeb=_0x56a504?_0x4abde0(0x14e):'';console['log']('\x20\x20'+_0x29438d+_0x26dbeb+_0x1a978d),console[_0x4abde0(0x161)](_0x4abde0(0x12a)+_0x21c27d['appcode']);const _0x3b64f7=_0x2d1d8a[_0x4abde0(0x16b)]['apps']&&typeof _0x2d1d8a[_0x4abde0(0x16b)][_0x4abde0(0x149)]===_0x4abde0(0x11c)?_0x2d1d8a[_0x4abde0(0x16b)][_0x4abde0(0x149)]:{},_0x59b723=Object[_0x4abde0(0x173)][_0x4abde0(0x126)][_0x4abde0(0x14f)](_0x3b64f7,_0x29438d),_0x12ccc6=isInvalidLovrabetRegion(_0x21c27d[_0x4abde0(0x114)])?{'region':_0xda8bae[_0x4abde0(0x114)]??DEFAULT_LOVRABET_REGION}:resolveEffectiveRegion({'appRegion':_0x21c27d[_0x4abde0(0x114)],'projectRegion':_0x59b723?_0x2d1d8a[_0x4abde0(0x16b)][_0x4abde0(0x114)]:undefined,'globalRegion':_0x2d1d8a['globalConfig'][_0x4abde0(0x114)],'mergedRegion':_0xda8bae['raw'][_0x4abde0(0x114)],'appName':_0x29438d}),_0x43fcdf=buildAppDoctorFields(_0x21c27d,{'region':_0x12ccc6[_0x4abde0(0x114)],'env':_0xda8bae['env'],'apiDir':_0xda8bae[_0x4abde0(0x16d)][_0x4abde0(0x12d)]||DEFAULT_CONFIG_VALUES[_0x4abde0(0x12d)],'cookie':_0xda8bae['cookie']||_0x190ae7||undefined,'accessKey':_0xda8bae[_0x4abde0(0x168)]});console['log'](_0x4abde0(0x17b)+_0x43fcdf['region'][_0x4abde0(0x15c)]+'\x20\x20'+a113_0x3d272f[_0x4abde0(0x119)]('('+_0x43fcdf['region'][_0x4abde0(0x15e)]+')')),console[_0x4abde0(0x161)](_0x4abde0(0x177)+_0x43fcdf[_0x4abde0(0x12c)][_0x4abde0(0x15c)]+'\x20\x20'+a113_0x3d272f[_0x4abde0(0x119)]('('+_0x43fcdf[_0x4abde0(0x12c)][_0x4abde0(0x15e)]+')')),console['log'](_0x4abde0(0x127)+_0x43fcdf[_0x4abde0(0x12d)][_0x4abde0(0x15c)]+'\x20\x20'+a113_0x3d272f[_0x4abde0(0x119)]('('+_0x43fcdf[_0x4abde0(0x12d)][_0x4abde0(0x15e)]+')'));const _0x2c7d8b=_0x43fcdf[_0x4abde0(0x131)][_0x4abde0(0x15c)]?a113_0x3d272f[_0x4abde0(0x13d)](_0x4abde0(0x15b)+_0x43fcdf[_0x4abde0(0x131)]['value'][_0x4abde0(0x171)]+')'):a113_0x3d272f[_0x4abde0(0x119)](_0x4abde0(0x172));console[_0x4abde0(0x161)]('\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20'+_0x2c7d8b+'\x20\x20'+a113_0x3d272f[_0x4abde0(0x119)]('('+_0x43fcdf['cookie']['source']+')'));const _0x67ee56=_0x43fcdf['accessKey'][_0x4abde0(0x15c)]?a113_0x3d272f[_0x4abde0(0x13d)](_0x4abde0(0x15b)+_0x43fcdf[_0x4abde0(0x168)][_0x4abde0(0x15c)][_0x4abde0(0x171)]+')'):a113_0x3d272f[_0x4abde0(0x119)](_0x4abde0(0x172));console['log'](_0x4abde0(0x146)+_0x67ee56+'\x20\x20'+a113_0x3d272f[_0x4abde0(0x119)]('('+_0x43fcdf[_0x4abde0(0x168)][_0x4abde0(0x15e)]+')'));}}console[_0x4abde0(0x161)](),console[_0x4abde0(0x161)](a113_0x3d272f[_0x4abde0(0x145)](_0x4abde0(0x132))),console[_0x4abde0(0x161)](a113_0x3d272f[_0x4abde0(0x119)](_0x4abde0(0x160)[_0x4abde0(0x17d)](0x1e)));_0x4bdc95?console[_0x4abde0(0x161)](_0x4abde0(0x179)+a113_0x3d272f[_0x4abde0(0x183)]('Unavailable\x20until\x20routing\x20configuration\x20is\x20repaired')):(console['log'](_0x4abde0(0x17e)+getActiveRegion()),console['log'](_0x4abde0(0x185)+getApiDomain()),console['log'](_0x4abde0(0x15a)+getUserDomain()),console[_0x4abde0(0x161)]('\x20\x20runtimeDomain:\x20\x20\x20'+getRuntimeDomain()),console['log'](_0x4abde0(0x12e)+getSkillDomain()),console[_0x4abde0(0x161)](_0x4abde0(0x151)+getKbDomain()),console['log']('\x20\x20kbServiceDomain:\x20'+(getKbServiceDomain()??_0x4abde0(0x113))),console[_0x4abde0(0x161)]('\x20\x20appDomain:\x20\x20\x20\x20\x20\x20\x20'+getAppDomain()));console[_0x4abde0(0x161)](),console[_0x4abde0(0x161)](a113_0x3d272f[_0x4abde0(0x145)](_0x4abde0(0x15f))),console['log'](a113_0x3d272f[_0x4abde0(0x119)]('\x20\x20─'[_0x4abde0(0x17d)](0x1e)));if(_0x4bdc95)console[_0x4abde0(0x161)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a113_0x3d272f[_0x4abde0(0x169)](_0x4abde0(0x133)));else{if(_0x190ae7){const _0x479dd8=await getIsSessionValid();console['log'](_0x4abde0(0x179)+(_0x479dd8?a113_0x3d272f[_0x4abde0(0x13d)](_0x4abde0(0x16c)):a113_0x3d272f[_0x4abde0(0x183)]('✗\x20Expired')));}else console[_0x4abde0(0x161)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a113_0x3d272f[_0x4abde0(0x183)]('✗\x20Not\x20logged\x20in'));}return console[_0x4abde0(0x161)](),{'ok':!![]};}function a113_0x423d(_0x11c63f,_0xb96910){_0x11c63f=_0x11c63f-0x108;const _0x2884c0=a113_0x2884();let _0x423d96=_0x2884c0[_0x11c63f];return _0x423d96;}export const doctorDefinition={'service':'doctor','command':a113_0x4fb719(0x165),'description':a113_0x4fb719(0x120),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
@@ -1 +1 @@
1
- const a114_0x18461d=a114_0x9170;(function(_0x76d2a8,_0x38c770){const _0x1912c7=a114_0x9170,_0x2f3593=_0x76d2a8();while(!![]){try{const _0x177207=-parseInt(_0x1912c7(0xe7))/0x1+parseInt(_0x1912c7(0xeb))/0x2+parseInt(_0x1912c7(0xf9))/0x3*(-parseInt(_0x1912c7(0xf0))/0x4)+parseInt(_0x1912c7(0xfc))/0x5*(parseInt(_0x1912c7(0xde))/0x6)+-parseInt(_0x1912c7(0xfd))/0x7*(-parseInt(_0x1912c7(0xee))/0x8)+parseInt(_0x1912c7(0xf1))/0x9*(-parseInt(_0x1912c7(0xd8))/0xa)+parseInt(_0x1912c7(0xe9))/0xb;if(_0x177207===_0x38c770)break;else _0x2f3593['push'](_0x2f3593['shift']());}catch(_0x5ba260){_0x2f3593['push'](_0x2f3593['shift']());}}}(a114_0x4ddb,0x36fdf));import{requireDevelopmentUploadFile}from'../../commands/common/local-file.js';import{queryDevelopmentFileUrl,uploadDevelopmentFile}from'../../core/api-client.js';function a114_0x4ddb(){const _0x3a03a7=['14452NWhsWB','774cdfeBS','Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL','Preview:\x20upload\x20','.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','bool','Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20or\x20immediate\x20access','/smartapi/common/uploadFile','filePath','177tYJhmA','Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','read','5qoocnn','14rISpdJ','38020yxVKqG','appCode','filepath','file','download','validation','2066016sDDErU','query-url','Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML','POST','str','boolean','Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','string','trim','435890pQuXZq','long-term','4559907OxBhab','Path\x20to\x20the\x20local\x20file\x20to\x20upload','7382mzTAWY','path','filePath\x20is\x20required.','1754848sigurb','upload'];a114_0x4ddb=function(){return _0x3a03a7;};return a114_0x4ddb();}import{CliErrors}from'../../errors.js';const FILE_FLAG={'name':a114_0x18461d(0xdb),'type':a114_0x18461d(0xe5),'required':!![],'description':a114_0x18461d(0xea)},FILEPATH_FLAG={'name':'filepath','type':a114_0x18461d(0xe5),'required':!![],'description':'Development\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data'},DOWNLOAD_FLAG={'name':a114_0x18461d(0xdc),'type':'boolean','description':a114_0x18461d(0xf2)},LONG_TERM_FLAG={'name':a114_0x18461d(0xe8),'type':a114_0x18461d(0xe3),'description':a114_0x18461d(0xe0)};function requireFilePath(_0x3dad76){const _0x529642=a114_0x18461d,_0x59658a=_0x3dad76[_0x529642(0xe6)]();if(!_0x59658a)throw CliErrors[_0x529642(0xdd)](_0x529642(0xed));return _0x59658a;}const fileUpload={'service':'file','command':a114_0x18461d(0xef),'description':a114_0x18461d(0xfa),'risk':a114_0x18461d(0xfb),'flags':[FILE_FLAG],async 'dryRun'(_0x180b4b){const _0x4a020a=a114_0x18461d,_0x3dd2a4=requireDevelopmentUploadFile(_0x180b4b[_0x4a020a(0xe2)](_0x4a020a(0xdb)),'File');return{'method':_0x4a020a(0xe1),'url':_0x4a020a(0xf7),'body':{'appCode':_0x180b4b[_0x4a020a(0xd9)],'multipart':{'file':_0x3dd2a4}},'description':_0x4a020a(0xf3)+_0x3dd2a4[_0x4a020a(0xec)]+'\x20to\x20development\x20app\x20'+_0x180b4b[_0x4a020a(0xd9)]};},async 'execute'(_0x275d2a){const _0x1f4c8f=a114_0x18461d,_0x1037d3=requireDevelopmentUploadFile(_0x275d2a[_0x1f4c8f(0xe2)](_0x1f4c8f(0xdb)),'File'),_0x67dfe8=await uploadDevelopmentFile(_0x275d2a['appCode'],_0x1037d3['path']);return{'ok':!![],'data':_0x67dfe8,'message':_0x67dfe8[_0x1f4c8f(0xf8)]?'Uploaded\x20file:\x20'+_0x67dfe8[_0x1f4c8f(0xf8)]+_0x1f4c8f(0xf4):_0x1f4c8f(0xe4)};}},fileQueryUrl={'service':a114_0x18461d(0xdb),'command':a114_0x18461d(0xdf),'description':a114_0x18461d(0xf6),'risk':a114_0x18461d(0xfb),'flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0x5af877){const _0x16fba9=a114_0x18461d,_0x306fad=requireFilePath(_0x5af877[_0x16fba9(0xe2)](_0x16fba9(0xda))),_0x4677b6=await queryDevelopmentFileUrl(_0x306fad,{'download':_0x5af877[_0x16fba9(0xf5)](_0x16fba9(0xdc)),'longTerm':_0x5af877[_0x16fba9(0xf5)](_0x16fba9(0xe8))});return{'ok':!![],'data':_0x4677b6};}};function a114_0x9170(_0x3fe879,_0x45a82f){_0x3fe879=_0x3fe879-0xd8;const _0x4ddb02=a114_0x4ddb();let _0x917007=_0x4ddb02[_0x3fe879];return _0x917007;}export const fileDefinitions=[fileUpload,fileQueryUrl];
1
+ const a114_0x3813b6=a114_0x3437;function a114_0x3437(_0x275eed,_0x128376){_0x275eed=_0x275eed-0x10b;const _0x148cee=a114_0x148c();let _0x3437ac=_0x148cee[_0x275eed];return _0x3437ac;}(function(_0x286c4c,_0x1d7a18){const _0x37cbc=a114_0x3437,_0x4410a5=_0x286c4c();while(!![]){try{const _0x24bd93=parseInt(_0x37cbc(0x118))/0x1+-parseInt(_0x37cbc(0x121))/0x2*(parseInt(_0x37cbc(0x111))/0x3)+-parseInt(_0x37cbc(0x114))/0x4*(-parseInt(_0x37cbc(0x127))/0x5)+parseInt(_0x37cbc(0x11d))/0x6+-parseInt(_0x37cbc(0x131))/0x7*(-parseInt(_0x37cbc(0x10e))/0x8)+parseInt(_0x37cbc(0x122))/0x9*(parseInt(_0x37cbc(0x10f))/0xa)+parseInt(_0x37cbc(0x125))/0xb*(-parseInt(_0x37cbc(0x12a))/0xc);if(_0x24bd93===_0x1d7a18)break;else _0x4410a5['push'](_0x4410a5['shift']());}catch(_0x4cce92){_0x4410a5['push'](_0x4410a5['shift']());}}}(a114_0x148c,0x9b9e6));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_0x3813b6(0x128),'type':a114_0x3813b6(0x110),'required':!![],'description':'Path\x20to\x20the\x20local\x20file\x20to\x20upload'},FILEPATH_FLAG={'name':a114_0x3813b6(0x130),'type':a114_0x3813b6(0x110),'required':!![],'description':a114_0x3813b6(0x115)},DOWNLOAD_FLAG={'name':a114_0x3813b6(0x10d),'type':a114_0x3813b6(0x116),'description':a114_0x3813b6(0x129)},LONG_TERM_FLAG={'name':a114_0x3813b6(0x12d),'type':a114_0x3813b6(0x116),'description':a114_0x3813b6(0x12f)};function requireFilePath(_0x302e74){const _0xb768fd=a114_0x3813b6,_0x54eb2b=_0x302e74[_0xb768fd(0x12b)]();if(!_0x54eb2b)throw CliErrors['validation'](_0xb768fd(0x11a));return _0x54eb2b;}const fileUpload={'service':a114_0x3813b6(0x128),'command':'upload','description':a114_0x3813b6(0x11e),'risk':a114_0x3813b6(0x10b),'flags':[FILE_FLAG],async 'dryRun'(_0x19c87b){const _0x5aa6b5=a114_0x3813b6,_0x2db227=requireDevelopmentUploadFile(_0x19c87b[_0x5aa6b5(0x11f)](_0x5aa6b5(0x128)),_0x5aa6b5(0x112));return{'method':_0x5aa6b5(0x119),'url':_0x5aa6b5(0x10c),'body':{'appCode':_0x19c87b[_0x5aa6b5(0x12e)],'multipart':{'file':_0x2db227}},'description':_0x5aa6b5(0x120)+_0x2db227['path']+_0x5aa6b5(0x124)+_0x19c87b[_0x5aa6b5(0x12e)]};},async 'execute'(_0x207d2b){const _0x108aa3=a114_0x3813b6,_0x5ecbaf=requireDevelopmentUploadFile(_0x207d2b[_0x108aa3(0x11f)](_0x108aa3(0x128)),_0x108aa3(0x112)),_0x408c7a=await uploadDevelopmentFile(_0x207d2b[_0x108aa3(0x12e)],_0x5ecbaf[_0x108aa3(0x11b)]);return{'ok':!![],'data':_0x408c7a,'message':_0x408c7a['filePath']?'Uploaded\x20file:\x20'+_0x408c7a[_0x108aa3(0x11c)]+_0x108aa3(0x117):_0x108aa3(0x123)};}},fileQueryUrl={'service':a114_0x3813b6(0x128),'command':a114_0x3813b6(0x113),'description':a114_0x3813b6(0x12c),'risk':'read','flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0x4e5bf5){const _0x1a8aab=a114_0x3813b6,_0x3d3dd1=requireFilePath(_0x4e5bf5['str'](_0x1a8aab(0x130))),_0x5412ea=await queryDevelopmentFileUrl(_0x3d3dd1,{'download':_0x4e5bf5[_0x1a8aab(0x126)](_0x1a8aab(0x10d)),'longTerm':_0x4e5bf5[_0x1a8aab(0x126)]('long-term')});return{'ok':!![],'data':_0x5412ea};}};export const fileDefinitions=[fileUpload,fileQueryUrl];function a114_0x148c(){const _0x3ff92e=['4QbdYnw','Development\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data','boolean','.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','1155485WAHPlp','POST','filePath\x20is\x20required.','path','filePath','5377416fjGwLI','Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','str','Preview:\x20upload\x20','466654OAvlIe','372924GcPNlY','Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','\x20to\x20development\x20app\x20','28917922tPolND','bool','2002130kFcTlc','file','Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL','12kWNLgP','trim','Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20or\x20immediate\x20access','long-term','appCode','Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML','filepath','4614981OdMPyO','read','/smartapi/common/uploadFile','download','8ZekBAx','150tHETPV','string','6DQlcGV','File','query-url'];a114_0x148c=function(){return _0x3ff92e;};return a114_0x148c();}
@@ -1 +1 @@
1
- const a115_0xc0b02d=a115_0x386d;function a115_0x5dab(){const _0x3628df=['.\x20Flow\x20URL:\x20','datasetCode','230OvTbwx','flow','179148lxQlQY','363294hfmplM','181527XbFLxk','5110525cmtDlO','4650592AgjIie','5qDqkLU','200519hxtWcy','create','3232539CUlCpx','\x20(id=','POST','5Hrjtav','appCode','flowName','12mgWYga','write'];a115_0x5dab=function(){return _0x3628df;};return a115_0x5dab();}(function(_0x163f50,_0x1d1112){const _0x39195c=a115_0x386d,_0x4489ed=_0x163f50();while(!![]){try{const _0xcccdd1=parseInt(_0x39195c(0xa2))/0x1*(-parseInt(_0x39195c(0xb2))/0x2)+-parseInt(_0x39195c(0xb3))/0x3*(-parseInt(_0x39195c(0xab))/0x4)+parseInt(_0x39195c(0xa8))/0x5*(-parseInt(_0x39195c(0xb1))/0x6)+parseInt(_0x39195c(0xb4))/0x7+parseInt(_0x39195c(0xb5))/0x8+parseInt(_0x39195c(0xa5))/0x9+parseInt(_0x39195c(0xaf))/0xa*(-parseInt(_0x39195c(0xa3))/0xb);if(_0xcccdd1===_0x1d1112)break;else _0x4489ed['push'](_0x4489ed['shift']());}catch(_0x42d362){_0x4489ed['push'](_0x4489ed['shift']());}}}(a115_0x5dab,0x78c91));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a115_0x386d(_0x4f54a2,_0x185daf){_0x4f54a2=_0x4f54a2-0xa2;const _0x5dab12=a115_0x5dab();let _0x386d22=_0x5dab12[_0x4f54a2];return _0x386d22;}import{asDryRunResult}from'../../commands/common/dry-run.js';import{createFlowDefinition}from'../../core/api-client.js';import{FLOW_FILE_FLAG,FLOW_PATHS,buildFlowUrl,confirmFlowWrite,flowSelector,prepareFlowWrite,readFlowFilePath}from'../../commands/flow/shared.js';export const flowCreate={'service':a115_0xc0b02d(0xb0),'command':'create','description':'Create\x20a\x20draft\x20flow\x20definition\x20from\x20a\x20local\x20FlowConfig\x20file','risk':a115_0xc0b02d(0xac),'flags':[FLOW_FILE_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x5396f4){readFlowFilePath(_0x5396f4);},async 'dryRun'(_0x30a32d){const _0x4379c6=a115_0xc0b02d,{request:_0x2d7fcf,warnings:_0x4ec41e}=await prepareFlowWrite(readFlowFilePath(_0x30a32d),_0x30a32d[_0x4379c6(0xa9)]);return asDryRunResult({'operation':'create','selector':{'appCode':_0x30a32d['appCode'],'flowName':_0x2d7fcf['flowName'],..._0x2d7fcf[_0x4379c6(0xae)]?{'datasetCode':_0x2d7fcf['datasetCode']}:{}},'before':null,'after':_0x2d7fcf,'request':_0x2d7fcf,'dryRun':!![],'backend':{'method':_0x4379c6(0xa7),'path':FLOW_PATHS[_0x4379c6(0xa4)]},'warnings':_0x4ec41e},{'method':_0x4379c6(0xa7),'url':FLOW_PATHS[_0x4379c6(0xa4)]});},async 'execute'(_0x1f8029){const _0x3e8a1b=a115_0xc0b02d,{request:_0x3a786f,warnings:_0x2b8cb9}=await prepareFlowWrite(readFlowFilePath(_0x1f8029),_0x1f8029[_0x3e8a1b(0xa9)]);await confirmFlowWrite(_0x1f8029,_0x3e8a1b(0xa4),_0x3a786f);const _0x10a87a=await createFlowDefinition(_0x3a786f),_0x7e0523=buildFlowUrl(_0x1f8029[_0x3e8a1b(0xa9)],_0x10a87a['id']),_0x1425ca=''+(_0x10a87a[_0x3e8a1b(0xaa)]||_0x3a786f[_0x3e8a1b(0xaa)])+(_0x10a87a['id']?_0x3e8a1b(0xa6)+_0x10a87a['id']+')':'');return{'ok':!![],'data':{'operation':_0x3e8a1b(0xa4),'selector':flowSelector(_0x1f8029['appCode'],_0x10a87a['id'],_0x10a87a),'before':null,'after':_0x10a87a,'flowUrl':_0x7e0523,'dryRun':![],'backend':{'method':_0x3e8a1b(0xa7),'path':FLOW_PATHS[_0x3e8a1b(0xa4)]},'warnings':_0x2b8cb9},'message':'Created\x20flow\x20'+_0x1425ca+_0x3e8a1b(0xad)+_0x7e0523};}};
1
+ const a115_0xeb2841=a115_0xcdd0;function a115_0xcdd0(_0x246b54,_0xb86016){_0x246b54=_0x246b54-0xf9;const _0x545f57=a115_0x545f();let _0xcdd038=_0x545f57[_0x246b54];return _0xcdd038;}(function(_0x14dd22,_0x316e2a){const _0xb706c1=a115_0xcdd0,_0x261eed=_0x14dd22();while(!![]){try{const _0x500a2d=parseInt(_0xb706c1(0x105))/0x1+parseInt(_0xb706c1(0xfc))/0x2+parseInt(_0xb706c1(0x101))/0x3*(parseInt(_0xb706c1(0x10a))/0x4)+-parseInt(_0xb706c1(0xfe))/0x5+parseInt(_0xb706c1(0x103))/0x6+parseInt(_0xb706c1(0x100))/0x7+-parseInt(_0xb706c1(0x102))/0x8;if(_0x500a2d===_0x316e2a)break;else _0x261eed['push'](_0x261eed['shift']());}catch(_0x59b5b5){_0x261eed['push'](_0x261eed['shift']());}}}(a115_0x545f,0x7dc8e));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,buildFlowUrl,confirmFlowWrite,flowSelector,prepareFlowWrite,readFlowFilePath}from'../../commands/flow/shared.js';export const flowCreate={'service':a115_0xeb2841(0xfb),'command':a115_0xeb2841(0x106),'description':a115_0xeb2841(0xff),'risk':a115_0xeb2841(0xfd),'flags':[FLOW_FILE_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x448d3a){readFlowFilePath(_0x448d3a);},async 'dryRun'(_0x109ab7){const _0x56a0bf=a115_0xeb2841,{request:_0x4f34a2,warnings:_0x4972c2}=await prepareFlowWrite(readFlowFilePath(_0x109ab7),_0x109ab7[_0x56a0bf(0x108)]);return asDryRunResult({'operation':_0x56a0bf(0x106),'selector':{'appCode':_0x109ab7['appCode'],'flowName':_0x4f34a2[_0x56a0bf(0x104)],..._0x4f34a2[_0x56a0bf(0x107)]?{'datasetCode':_0x4f34a2['datasetCode']}:{}},'before':null,'after':_0x4f34a2,'request':_0x4f34a2,'dryRun':!![],'backend':{'method':_0x56a0bf(0x109),'path':FLOW_PATHS[_0x56a0bf(0x106)]},'warnings':_0x4972c2},{'method':_0x56a0bf(0x109),'url':FLOW_PATHS[_0x56a0bf(0x106)]});},async 'execute'(_0x2c3d64){const _0x1597a0=a115_0xeb2841,{request:_0x4b32c5,warnings:_0x44dea1}=await prepareFlowWrite(readFlowFilePath(_0x2c3d64),_0x2c3d64[_0x1597a0(0x108)]);await confirmFlowWrite(_0x2c3d64,_0x1597a0(0x106),_0x4b32c5);const _0x1edcdd=await createFlowDefinition(_0x4b32c5),_0x4b7693=buildFlowUrl(_0x2c3d64[_0x1597a0(0x108)],_0x1edcdd['id']),_0x9caa1=''+(_0x1edcdd[_0x1597a0(0x104)]||_0x4b32c5[_0x1597a0(0x104)])+(_0x1edcdd['id']?_0x1597a0(0xf9)+_0x1edcdd['id']+')':'');return{'ok':!![],'data':{'operation':_0x1597a0(0x106),'selector':flowSelector(_0x2c3d64[_0x1597a0(0x108)],_0x1edcdd['id'],_0x1edcdd),'before':null,'after':_0x1edcdd,'flowUrl':_0x4b7693,'dryRun':![],'backend':{'method':_0x1597a0(0x109),'path':FLOW_PATHS['create']},'warnings':_0x44dea1},'message':'Created\x20flow\x20'+_0x9caa1+_0x1597a0(0xfa)+_0x4b7693};}};function a115_0x545f(){const _0x1c73da=['datasetCode','appCode','POST','4vNNeum','\x20(id=','.\x20Flow\x20URL:\x20','flow','1302872SvjLXs','write','824305wfmgYt','Create\x20a\x20draft\x20flow\x20definition\x20from\x20a\x20local\x20FlowConfig\x20file','530299eBFPrL','118761DaUhKW','9193632iAVxnh','5051058LdPbyP','flowName','220656vKePnt','create'];a115_0x545f=function(){return _0x1c73da;};return a115_0x545f();}
@@ -1 +1 @@
1
- function a116_0x3900(_0x33e32f,_0x5d64ec){_0x33e32f=_0x33e32f-0x141;const _0x2f2af0=a116_0x2f2a();let _0x3900f2=_0x2f2af0[_0x33e32f];return _0x3900f2;}const a116_0x544845=a116_0x3900;(function(_0x3c4723,_0x1ddfcb){const _0x101a96=a116_0x3900,_0x5ea0f9=_0x3c4723();while(!![]){try{const _0x43b1a2=parseInt(_0x101a96(0x153))/0x1*(parseInt(_0x101a96(0x160))/0x2)+parseInt(_0x101a96(0x15c))/0x3*(-parseInt(_0x101a96(0x150))/0x4)+parseInt(_0x101a96(0x147))/0x5+parseInt(_0x101a96(0x14a))/0x6+-parseInt(_0x101a96(0x15e))/0x7*(parseInt(_0x101a96(0x142))/0x8)+parseInt(_0x101a96(0x14b))/0x9+parseInt(_0x101a96(0x152))/0xa*(-parseInt(_0x101a96(0x141))/0xb);if(_0x43b1a2===_0x1ddfcb)break;else _0x5ea0f9['push'](_0x5ea0f9['shift']());}catch(_0x30a1ac){_0x5ea0f9['push'](_0x5ea0f9['shift']());}}}(a116_0x2f2a,0x7b6dd));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_0x2f2a(){const _0xd212bc=['flowName','Flow\x20','932fzIZfp','boolean','1190OnDFGa','3679tflpvR','read','Wrote\x20FlowConfig\x20for\x20','trim','Write\x20a\x20portable\x20normalized\x20FlowConfig\x20JSON\x20file','FlowConfig\x20output\x20already\x20exists:\x20','flowCode','flow','appCode','7575AVipwD','str','21BmDhwp','warnings','522ZDUJlI','force','107866rvjMnZ','889736neaBvm','\x20to\x20','path','output','detail','2516925zFAwXw','bool','EEXIST','5552874TIekbb','1848348WuflVZ','Pass\x20--force\x20to\x20overwrite\x20it.','code'];a116_0x2f2a=function(){return _0xd212bc;};return a116_0x2f2a();}import{CliErrors}from'../../errors.js';import{FLOW_ID_FLAG,flowDefinitionToConfig,readFlowId}from'../../commands/flow/shared.js';export const flowDetail={'service':a116_0x544845(0x15a),'command':a116_0x544845(0x146),'description':'Get\x20one\x20design-time\x20flow\x20definition','risk':a116_0x544845(0x154),'flags':[FLOW_ID_FLAG,{'name':a116_0x544845(0x145),'type':'string','description':a116_0x544845(0x157)},{'name':a116_0x544845(0x161),'type':a116_0x544845(0x151),'description':'Overwrite\x20an\x20existing\x20output\x20file'},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x51bfb3){readFlowId(_0x51bfb3);},async 'execute'(_0x62ef10){const _0x21199b=a116_0x544845,_0x3b3047=readFlowId(_0x62ef10),_0x15c65f=_0x62ef10[_0x21199b(0x15d)](_0x21199b(0x145))[_0x21199b(0x156)](),_0x1717ba=_0x15c65f?resolve(_0x15c65f):undefined;if(_0x1717ba&&!_0x62ef10['bool']('force')&&await fileExists(_0x1717ba))throw CliErrors['validation']('FlowConfig\x20output\x20already\x20exists:\x20'+_0x1717ba,_0x21199b(0x14c));const _0x2a02bf=await getFlowDefinition(_0x62ef10[_0x21199b(0x15b)],_0x3b3047);let _0x2960d0;if(_0x1717ba){const _0x5cbe2a=flowDefinitionToConfig(_0x2a02bf);await mkdir(dirname(_0x1717ba),{'recursive':!![]});try{await writeNormalizedFlowConfig(_0x1717ba,_0x5cbe2a['config'],{'overwrite':_0x62ef10[_0x21199b(0x148)]('force')});}catch(_0x198dca){if(isAlreadyExistsError(_0x198dca))throw CliErrors['validation'](_0x21199b(0x158)+_0x1717ba,_0x21199b(0x14c));throw _0x198dca;}_0x2960d0={'path':_0x1717ba,'warnings':_0x5cbe2a[_0x21199b(0x15f)]};}return{'ok':!![],'data':{'flow':_0x2a02bf,..._0x2960d0?{'output':_0x2960d0}:{}},'message':_0x2960d0?_0x21199b(0x155)+(_0x2a02bf['flowName']||_0x2a02bf[_0x21199b(0x159)]||_0x3b3047)+_0x21199b(0x143)+_0x2960d0[_0x21199b(0x144)]:_0x21199b(0x14f)+(_0x2a02bf[_0x21199b(0x14e)]||_0x2a02bf[_0x21199b(0x159)]||_0x3b3047)};}};async function fileExists(_0x454dca){try{return await stat(_0x454dca),!![];}catch(_0x1fcccc){return!isNotFoundError(_0x1fcccc);}}function isNotFoundError(_0x55e02b){const _0x1492b6=a116_0x544845;return _0x55e02b?.[_0x1492b6(0x14d)]==='ENOENT';}function isAlreadyExistsError(_0x3adc1d){const _0x1a8360=a116_0x544845;return _0x3adc1d?.[_0x1a8360(0x14d)]===_0x1a8360(0x149);}
1
+ const a116_0x27e72a=a116_0x48ce;(function(_0x3e498b,_0x413946){const _0x5c15df=a116_0x48ce,_0xeceb96=_0x3e498b();while(!![]){try{const _0x2f7e7b=parseInt(_0x5c15df(0xe9))/0x1+-parseInt(_0x5c15df(0xd7))/0x2*(parseInt(_0x5c15df(0xed))/0x3)+parseInt(_0x5c15df(0xe7))/0x4*(parseInt(_0x5c15df(0xdc))/0x5)+parseInt(_0x5c15df(0xec))/0x6+-parseInt(_0x5c15df(0xe6))/0x7+-parseInt(_0x5c15df(0xe4))/0x8*(parseInt(_0x5c15df(0xee))/0x9)+parseInt(_0x5c15df(0xeb))/0xa;if(_0x2f7e7b===_0x413946)break;else _0xeceb96['push'](_0xeceb96['shift']());}catch(_0x1d6bc1){_0xeceb96['push'](_0xeceb96['shift']());}}}(a116_0x1a54,0x3cb0d));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_0x48ce(_0x527441,_0x27f70a){_0x527441=_0x527441-0xd3;const _0x1a541d=a116_0x1a54();let _0x48ce16=_0x1a541d[_0x527441];return _0x48ce16;}import{CliErrors}from'../../errors.js';import{FLOW_ID_FLAG,flowDefinitionToConfig,readFlowId}from'../../commands/flow/shared.js';function a116_0x1a54(){const _0x55ec33=['FlowConfig\x20output\x20already\x20exists:\x20','3245907bXeWki','856612svdOpn','EEXIST','373070szMdHb','ENOENT','114900SHxJgO','1291266qxzeZl','11430mnBbOp','9AxFRcw','\x20to\x20','flowCode','code','detail','string','path','boolean','validation','Pass\x20--force\x20to\x20overwrite\x20it.','2ckmaLZ','str','output','Wrote\x20FlowConfig\x20for\x20','trim','10HaHEcM','read','Overwrite\x20an\x20existing\x20output\x20file','flowName','force','bool','flow','config','2495816tPSDVz'];a116_0x1a54=function(){return _0x55ec33;};return a116_0x1a54();}export const flowDetail={'service':a116_0x27e72a(0xe2),'command':a116_0x27e72a(0xf2),'description':'Get\x20one\x20design-time\x20flow\x20definition','risk':a116_0x27e72a(0xdd),'flags':[FLOW_ID_FLAG,{'name':a116_0x27e72a(0xd9),'type':a116_0x27e72a(0xf3),'description':'Write\x20a\x20portable\x20normalized\x20FlowConfig\x20JSON\x20file'},{'name':a116_0x27e72a(0xe0),'type':a116_0x27e72a(0xd4),'description':a116_0x27e72a(0xde)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x240b2f){readFlowId(_0x240b2f);},async 'execute'(_0x5a9e26){const _0x278628=a116_0x27e72a,_0x196951=readFlowId(_0x5a9e26),_0x208089=_0x5a9e26[_0x278628(0xd8)](_0x278628(0xd9))[_0x278628(0xdb)](),_0x235784=_0x208089?resolve(_0x208089):undefined;if(_0x235784&&!_0x5a9e26[_0x278628(0xe1)]('force')&&await fileExists(_0x235784))throw CliErrors[_0x278628(0xd5)](_0x278628(0xe5)+_0x235784,_0x278628(0xd6));const _0x4198bd=await getFlowDefinition(_0x5a9e26['appCode'],_0x196951);let _0x2e3ab4;if(_0x235784){const _0x35691b=flowDefinitionToConfig(_0x4198bd);await mkdir(dirname(_0x235784),{'recursive':!![]});try{await writeNormalizedFlowConfig(_0x235784,_0x35691b[_0x278628(0xe3)],{'overwrite':_0x5a9e26['bool']('force')});}catch(_0xa5fc83){if(isAlreadyExistsError(_0xa5fc83))throw CliErrors[_0x278628(0xd5)](_0x278628(0xe5)+_0x235784,_0x278628(0xd6));throw _0xa5fc83;}_0x2e3ab4={'path':_0x235784,'warnings':_0x35691b['warnings']};}return{'ok':!![],'data':{'flow':_0x4198bd,..._0x2e3ab4?{'output':_0x2e3ab4}:{}},'message':_0x2e3ab4?_0x278628(0xda)+(_0x4198bd[_0x278628(0xdf)]||_0x4198bd['flowCode']||_0x196951)+_0x278628(0xef)+_0x2e3ab4[_0x278628(0xd3)]:'Flow\x20'+(_0x4198bd[_0x278628(0xdf)]||_0x4198bd[_0x278628(0xf0)]||_0x196951)};}};async function fileExists(_0x3b4fc9){try{return await stat(_0x3b4fc9),!![];}catch(_0x4f7aea){return!isNotFoundError(_0x4f7aea);}}function isNotFoundError(_0x1acc7b){const _0x449aab=a116_0x27e72a;return _0x1acc7b?.['code']===_0x449aab(0xea);}function isAlreadyExistsError(_0x47ad95){const _0x25fca2=a116_0x27e72a;return _0x47ad95?.[_0x25fca2(0xf1)]===_0x25fca2(0xe8);}
@@ -1 +1 @@
1
- (function(_0x55a12b,_0x4059ec){const _0x4986d7=a117_0x3192,_0x3f24e4=_0x55a12b();while(!![]){try{const _0xf30cf1=parseInt(_0x4986d7(0x19b))/0x1+-parseInt(_0x4986d7(0x198))/0x2+parseInt(_0x4986d7(0x19a))/0x3+-parseInt(_0x4986d7(0x194))/0x4+parseInt(_0x4986d7(0x199))/0x5+-parseInt(_0x4986d7(0x196))/0x6*(-parseInt(_0x4986d7(0x195))/0x7)+-parseInt(_0x4986d7(0x197))/0x8*(-parseInt(_0x4986d7(0x19c))/0x9);if(_0xf30cf1===_0x4059ec)break;else _0x3f24e4['push'](_0x3f24e4['shift']());}catch(_0xb7af7d){_0x3f24e4['push'](_0x3f24e4['shift']());}}}(a117_0xbd36,0x810d6));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';import{flowPublish}from'../../commands/flow/publish.js';import{flowRuntimeRoleList}from'../../commands/flow/runtime-role-list.js';import{flowRuntimeUserSearch}from'../../commands/flow/runtime-user-search.js';function a117_0xbd36(){const _0xb82b9c=['442920hQCHIJ','2607928GCGXiK','1648754wLeRdx','1412595OIVkOD','1967136BlYdxq','232768qrkqnC','27lOpQif','4069828WfRoPI','21VtHtWK'];a117_0xbd36=function(){return _0xb82b9c;};return a117_0xbd36();}function a117_0x3192(_0x235c7f,_0x3f0d56){_0x235c7f=_0x235c7f-0x194;const _0xbd3672=a117_0xbd36();let _0x3192fe=_0xbd3672[_0x235c7f];return _0x3192fe;}import{flowRuntimeRoleUserList}from'../../commands/flow/runtime-role-user-list.js';export const flowDefinitions=[flowValidate,flowList,flowDetail,flowCreate,flowUpdate,flowPublish,flowRuntimeRoleList,flowRuntimeUserSearch,flowRuntimeRoleUserList];
1
+ (function(_0x47cb40,_0x2a9129){const _0x55d720=a117_0x23cb,_0x376633=_0x47cb40();while(!![]){try{const _0x26de96=-parseInt(_0x55d720(0x18e))/0x1*(-parseInt(_0x55d720(0x18d))/0x2)+parseInt(_0x55d720(0x191))/0x3*(-parseInt(_0x55d720(0x195))/0x4)+-parseInt(_0x55d720(0x18f))/0x5+-parseInt(_0x55d720(0x194))/0x6+parseInt(_0x55d720(0x192))/0x7*(parseInt(_0x55d720(0x196))/0x8)+-parseInt(_0x55d720(0x190))/0x9+parseInt(_0x55d720(0x193))/0xa;if(_0x26de96===_0x2a9129)break;else _0x376633['push'](_0x376633['shift']());}catch(_0x4d32f5){_0x376633['push'](_0x376633['shift']());}}}(a117_0x1ab9,0x271a7));import{flowValidate}from'../../commands/flow/validate.js';import{flowList}from'../../commands/flow/list.js';import{flowDetail}from'../../commands/flow/detail.js';function a117_0x1ab9(){const _0x4a9496=['4290360NQBvVk','1155612yXDoCb','372vDCZvy','424360lpXUKF','2NQZFdj','312370RJebSF','1087660jgQbyW','1461060CAmtlN','3705gFsUtR','14HthhhM'];a117_0x1ab9=function(){return _0x4a9496;};return a117_0x1ab9();}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';import{flowRuntimeUserSearch}from'../../commands/flow/runtime-user-search.js';import{flowRuntimeRoleUserList}from'../../commands/flow/runtime-role-user-list.js';function a117_0x23cb(_0x573450,_0x2f4672){_0x573450=_0x573450-0x18d;const _0x1ab91b=a117_0x1ab9();let _0x23cb47=_0x1ab91b[_0x573450];return _0x23cb47;}export const flowDefinitions=[flowValidate,flowList,flowDetail,flowCreate,flowUpdate,flowPublish,flowRuntimeRoleList,flowRuntimeUserSearch,flowRuntimeRoleUserList];
@@ -1 +1 @@
1
- const a118_0x12ad40=a118_0x52df;(function(_0x22dc45,_0x7a47df){const _0x46d8a=a118_0x52df,_0x11059d=_0x22dc45();while(!![]){try{const _0x30993d=parseInt(_0x46d8a(0x1ba))/0x1+parseInt(_0x46d8a(0x19e))/0x2*(-parseInt(_0x46d8a(0x1c1))/0x3)+-parseInt(_0x46d8a(0x1a3))/0x4*(-parseInt(_0x46d8a(0x1b1))/0x5)+parseInt(_0x46d8a(0x1a1))/0x6*(-parseInt(_0x46d8a(0x1a9))/0x7)+-parseInt(_0x46d8a(0x1a4))/0x8*(parseInt(_0x46d8a(0x1a6))/0x9)+parseInt(_0x46d8a(0x1c0))/0xa+parseInt(_0x46d8a(0x1bc))/0xb;if(_0x30993d===_0x7a47df)break;else _0x11059d['push'](_0x11059d['shift']());}catch(_0x4f562c){_0x11059d['push'](_0x11059d['shift']());}}}(a118_0x25bb,0xcfd21));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a118_0x25bb(){const _0x24351b=['number','21235049LCXumC','flow-name','Filter\x20by\x20flow\x20name','length','16278130tpspxZ','198549wNaLzf','26mhZdIC','flow-code','flow','9868542urhOyu','isSafeInteger','148WDKBbM','2421456vNsRIN','Filter\x20by\x20flow\x20status','36vzLsRG','dataset-code','validation','7HOsSgK','Filter\x20by\x20exact\x20server-generated\x20flow\x20code','num','flow-type','\x20flow\x20definition(s)','list','Filter\x20by\x20flow\x20type','string','106255wTzQvZ','Filter\x20by\x20dataset\x20code','published','str','page-size','appCode','page','Page\x20size','List\x20design-time\x20flow\x20definitions\x20for\x20the\x20current\x20app','222538LwjyWX'];a118_0x25bb=function(){return _0x24351b;};return a118_0x25bb();}import{listFlowDefinitions}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const FLOW_STATUSES=['draft',a118_0x12ad40(0x1b3)];function a118_0x52df(_0x5914cd,_0x5a9ae8){_0x5914cd=_0x5914cd-0x19e;const _0x25bb4c=a118_0x25bb();let _0x52df88=_0x25bb4c[_0x5914cd];return _0x52df88;}export const flowList={'service':a118_0x12ad40(0x1a0),'command':a118_0x12ad40(0x1ae),'description':a118_0x12ad40(0x1b9),'risk':'read','flags':[APPCODE_FLAG_OPTIONAL,{'name':'flow-code','type':'string','description':a118_0x12ad40(0x1aa)},{'name':a118_0x12ad40(0x1bd),'type':a118_0x12ad40(0x1b0),'description':a118_0x12ad40(0x1be)},{'name':'flow-status','type':a118_0x12ad40(0x1b0),'description':a118_0x12ad40(0x1a5),'enum':FLOW_STATUSES},{'name':a118_0x12ad40(0x1a7),'type':'string','description':a118_0x12ad40(0x1b2)},{'name':a118_0x12ad40(0x1ac),'type':a118_0x12ad40(0x1b0),'description':a118_0x12ad40(0x1af)},{'name':a118_0x12ad40(0x1b7),'type':'number','description':'Page\x20number\x20(1-based)','default':0x1},{'name':'page-size','type':a118_0x12ad40(0x1bb),'description':a118_0x12ad40(0x1b8),'default':0x14}],async 'validate'(_0x17b36a){const _0x48df3f=a118_0x12ad40,_0x32456d=_0x17b36a[_0x48df3f(0x1ab)](_0x48df3f(0x1b7),0x1),_0x4d3c60=_0x17b36a[_0x48df3f(0x1ab)](_0x48df3f(0x1b5),0x14);if(!Number['isSafeInteger'](_0x32456d)||_0x32456d<0x1)throw CliErrors[_0x48df3f(0x1a8)]('--page\x20must\x20be\x20a\x20positive\x20integer.');if(!Number[_0x48df3f(0x1a2)](_0x4d3c60)||_0x4d3c60<0x1)throw CliErrors[_0x48df3f(0x1a8)]('--page-size\x20must\x20be\x20a\x20positive\x20integer.');},async 'execute'(_0x3e07d9){const _0x737739=a118_0x12ad40,{items:_0x1e77ec,paging:_0xf60e2f}=await listFlowDefinitions(_0x3e07d9[_0x737739(0x1b6)],{'flowCode':optionalString(_0x3e07d9[_0x737739(0x1b4)](_0x737739(0x19f))),'flowName':optionalString(_0x3e07d9['str'](_0x737739(0x1bd))),'flowStatus':optionalString(_0x3e07d9[_0x737739(0x1b4)]('flow-status')),'datasetCode':optionalString(_0x3e07d9['str'](_0x737739(0x1a7))),'flowType':optionalString(_0x3e07d9[_0x737739(0x1b4)](_0x737739(0x1ac))),'pageNum':_0x3e07d9[_0x737739(0x1ab)](_0x737739(0x1b7),0x1),'pageSize':_0x3e07d9[_0x737739(0x1ab)](_0x737739(0x1b5),0x14)});return{'ok':!![],'data':{'appCode':_0x3e07d9[_0x737739(0x1b6)],'flows':_0x1e77ec,'paging':_0xf60e2f},'message':'Found\x20'+_0x1e77ec[_0x737739(0x1bf)]+_0x737739(0x1ad)};}};function optionalString(_0x5d99a){const _0xc1de7e=_0x5d99a['trim']();return _0xc1de7e||undefined;}
1
+ function a118_0x390b(){const _0x4972e5=['str','validation','2127310JPOhmw','read','Found\x20','--page\x20must\x20be\x20a\x20positive\x20integer.','string','flow-status','trim','2736krcmen','524408juSpSr','flow-name','flow-code','length','isSafeInteger','number','Filter\x20by\x20flow\x20status','13710895PCUuyn','page-size','6ZORDAd','\x20flow\x20definition(s)','flow-type','flow','dataset-code','page','appCode','Filter\x20by\x20exact\x20server-generated\x20flow\x20code','2059595iwwVxC','74AcBbDZ','5362OgtTjx','published','Page\x20number\x20(1-based)','Page\x20size','--page-size\x20must\x20be\x20a\x20positive\x20integer.','2128385HRbALc','num','12zXGgPd','12357QUMNHL'];a118_0x390b=function(){return _0x4972e5;};return a118_0x390b();}const a118_0x1b92a4=a118_0x308c;function a118_0x308c(_0x19e2df,_0x65ec05){_0x19e2df=_0x19e2df-0x1b0;const _0x390b3a=a118_0x390b();let _0x308ce6=_0x390b3a[_0x19e2df];return _0x308ce6;}(function(_0x2d966e,_0x20befc){const _0x5a72ae=a118_0x308c,_0x2ef368=_0x2d966e();while(!![]){try{const _0x30363b=parseInt(_0x5a72ae(0x1d1))/0x1*(-parseInt(_0x5a72ae(0x1d2))/0x2)+parseInt(_0x5a72ae(0x1c8))/0x3*(-parseInt(_0x5a72ae(0x1bf))/0x4)+parseInt(_0x5a72ae(0x1d0))/0x5+parseInt(_0x5a72ae(0x1b3))/0x6*(-parseInt(_0x5a72ae(0x1b1))/0x7)+parseInt(_0x5a72ae(0x1be))/0x8*(-parseInt(_0x5a72ae(0x1b4))/0x9)+parseInt(_0x5a72ae(0x1b7))/0xa+parseInt(_0x5a72ae(0x1c6))/0xb;if(_0x30363b===_0x20befc)break;else _0x2ef368['push'](_0x2ef368['shift']());}catch(_0x472473){_0x2ef368['push'](_0x2ef368['shift']());}}}(a118_0x390b,0x51415));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{listFlowDefinitions}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const FLOW_STATUSES=['draft',a118_0x1b92a4(0x1d3)];export const flowList={'service':a118_0x1b92a4(0x1cb),'command':'list','description':'List\x20design-time\x20flow\x20definitions\x20for\x20the\x20current\x20app','risk':a118_0x1b92a4(0x1b8),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a118_0x1b92a4(0x1c1),'type':a118_0x1b92a4(0x1bb),'description':a118_0x1b92a4(0x1cf)},{'name':a118_0x1b92a4(0x1c0),'type':a118_0x1b92a4(0x1bb),'description':'Filter\x20by\x20flow\x20name'},{'name':'flow-status','type':a118_0x1b92a4(0x1bb),'description':a118_0x1b92a4(0x1c5),'enum':FLOW_STATUSES},{'name':a118_0x1b92a4(0x1cc),'type':a118_0x1b92a4(0x1bb),'description':'Filter\x20by\x20dataset\x20code'},{'name':a118_0x1b92a4(0x1ca),'type':a118_0x1b92a4(0x1bb),'description':'Filter\x20by\x20flow\x20type'},{'name':'page','type':'number','description':a118_0x1b92a4(0x1d4),'default':0x1},{'name':a118_0x1b92a4(0x1c7),'type':a118_0x1b92a4(0x1c4),'description':a118_0x1b92a4(0x1d5),'default':0x14}],async 'validate'(_0x2a6163){const _0x4ed8bb=a118_0x1b92a4,_0x1dfb9f=_0x2a6163['num'](_0x4ed8bb(0x1cd),0x1),_0x422ead=_0x2a6163[_0x4ed8bb(0x1b2)](_0x4ed8bb(0x1c7),0x14);if(!Number['isSafeInteger'](_0x1dfb9f)||_0x1dfb9f<0x1)throw CliErrors['validation'](_0x4ed8bb(0x1ba));if(!Number[_0x4ed8bb(0x1c3)](_0x422ead)||_0x422ead<0x1)throw CliErrors[_0x4ed8bb(0x1b6)](_0x4ed8bb(0x1b0));},async 'execute'(_0xbd3d16){const _0x39c036=a118_0x1b92a4,{items:_0x1933eb,paging:_0x464dbd}=await listFlowDefinitions(_0xbd3d16[_0x39c036(0x1ce)],{'flowCode':optionalString(_0xbd3d16[_0x39c036(0x1b5)](_0x39c036(0x1c1))),'flowName':optionalString(_0xbd3d16[_0x39c036(0x1b5)](_0x39c036(0x1c0))),'flowStatus':optionalString(_0xbd3d16['str'](_0x39c036(0x1bc))),'datasetCode':optionalString(_0xbd3d16[_0x39c036(0x1b5)](_0x39c036(0x1cc))),'flowType':optionalString(_0xbd3d16[_0x39c036(0x1b5)]('flow-type')),'pageNum':_0xbd3d16[_0x39c036(0x1b2)]('page',0x1),'pageSize':_0xbd3d16[_0x39c036(0x1b2)]('page-size',0x14)});return{'ok':!![],'data':{'appCode':_0xbd3d16[_0x39c036(0x1ce)],'flows':_0x1933eb,'paging':_0x464dbd},'message':_0x39c036(0x1b9)+_0x1933eb[_0x39c036(0x1c2)]+_0x39c036(0x1c9)};}};function optionalString(_0x14b1d6){const _0x1ee421=a118_0x1b92a4,_0x42805e=_0x14b1d6[_0x1ee421(0x1bd)]();return _0x42805e||undefined;}
@@ -1 +1 @@
1
- const a119_0x2b578e=a119_0x15f5;(function(_0x307008,_0x38942f){const _0x4d8e1f=a119_0x15f5,_0x5ea541=_0x307008();while(!![]){try{const _0x16e064=parseInt(_0x4d8e1f(0x1e7))/0x1*(-parseInt(_0x4d8e1f(0x1da))/0x2)+-parseInt(_0x4d8e1f(0x1db))/0x3+-parseInt(_0x4d8e1f(0x1e5))/0x4+-parseInt(_0x4d8e1f(0x1d6))/0x5*(parseInt(_0x4d8e1f(0x1e3))/0x6)+-parseInt(_0x4d8e1f(0x1de))/0x7+parseInt(_0x4d8e1f(0x1e6))/0x8+-parseInt(_0x4d8e1f(0x1dc))/0x9*(-parseInt(_0x4d8e1f(0x1e2))/0xa);if(_0x16e064===_0x38942f)break;else _0x5ea541['push'](_0x5ea541['shift']());}catch(_0x3d32f2){_0x5ea541['push'](_0x5ea541['shift']());}}}(a119_0x5f21,0x5c2f6));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{publishFlowDefinition}from'../../core/api-client.js';import{FLOW_ID_FLAG,FLOW_PATHS,buildFlowUrl,buildFlowIdDryRun,flowSelector,readFlowId}from'../../commands/flow/shared.js';function a119_0x15f5(_0x3711b4,_0x23fd2a){_0x3711b4=_0x3711b4-0x1d5;const _0x5f219b=a119_0x5f21();let _0x15f543=_0x5f219b[_0x3711b4];return _0x15f543;}function a119_0x5f21(){const _0x405e51=['1fXDzUa','published','14850GoGpkI','publish','appCode','Published\x20flow\x20','211406aycqth','662841wvZfaY','14382477vboRNc','POST','5213124BmTmts','write','flow','flowCode','10DaFAHv','96NQiWXm','flowName','2397696NFbAZb','3982904wiDsKK'];a119_0x5f21=function(){return _0x405e51;};return a119_0x5f21();}export const flowPublish={'service':a119_0x2b578e(0x1e0),'command':a119_0x2b578e(0x1d7),'description':'Publish\x20the\x20current\x20flow\x20definition\x20draft','risk':a119_0x2b578e(0x1df),'flags':[FLOW_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x160c69){readFlowId(_0x160c69);},async 'dryRun'(_0x380a36){const _0x1d9b9a=a119_0x2b578e,_0x25e157=readFlowId(_0x380a36);return buildFlowIdDryRun(_0x1d9b9a(0x1d7),FLOW_PATHS[_0x1d9b9a(0x1d7)],_0x380a36[_0x1d9b9a(0x1d8)],_0x25e157,{'id':_0x25e157,'flowStatus':_0x1d9b9a(0x1d5)});},async 'execute'(_0x5ce4c4){const _0x1e19d8=a119_0x2b578e,_0x5730a4=readFlowId(_0x5ce4c4),_0x30ee0a=await publishFlowDefinition(_0x5ce4c4['appCode'],_0x5730a4),_0x25818f=buildFlowUrl(_0x5ce4c4[_0x1e19d8(0x1d8)],_0x5730a4);return{'ok':!![],'data':{'operation':'publish','selector':flowSelector(_0x5ce4c4[_0x1e19d8(0x1d8)],_0x5730a4,_0x30ee0a),'before':null,'after':_0x30ee0a,'flowUrl':_0x25818f,'dryRun':![],'backend':{'method':_0x1e19d8(0x1dd),'path':FLOW_PATHS['publish']},'warnings':[]},'message':_0x1e19d8(0x1d9)+(_0x30ee0a[_0x1e19d8(0x1e4)]||_0x30ee0a[_0x1e19d8(0x1e1)]||_0x5730a4)+'.\x20Flow\x20URL:\x20'+_0x25818f};}};
1
+ const a119_0x2b9d7d=a119_0x2a6e;function a119_0x2a6e(_0x113eb4,_0x301fff){_0x113eb4=_0x113eb4-0x11f;const _0x3219d7=a119_0x3219();let _0x2a6efd=_0x3219d7[_0x113eb4];return _0x2a6efd;}function a119_0x3219(){const _0x429a71=['683589vCzYgX','70UYULWK','4318097OZKedD','flowName','9kXwgTI','367634nsRwhw','published','2jcTXQq','flow','2113284VthXAS','6525410PjwcpY','flowCode','.\x20Flow\x20URL:\x20','8ekGLEI','appCode','5810981aQxlKz','publish','169208cYdSkL'];a119_0x3219=function(){return _0x429a71;};return a119_0x3219();}(function(_0x23461e,_0x4002b1){const _0x36291f=a119_0x2a6e,_0x4bb3ef=_0x23461e();while(!![]){try{const _0x56ad18=parseInt(_0x36291f(0x123))/0x1+-parseInt(_0x36291f(0x125))/0x2*(-parseInt(_0x36291f(0x130))/0x3)+-parseInt(_0x36291f(0x12f))/0x4*(-parseInt(_0x36291f(0x11f))/0x5)+-parseInt(_0x36291f(0x127))/0x6+parseInt(_0x36291f(0x120))/0x7*(-parseInt(_0x36291f(0x12b))/0x8)+-parseInt(_0x36291f(0x122))/0x9*(-parseInt(_0x36291f(0x128))/0xa)+-parseInt(_0x36291f(0x12d))/0xb;if(_0x56ad18===_0x4002b1)break;else _0x4bb3ef['push'](_0x4bb3ef['shift']());}catch(_0x16fae3){_0x4bb3ef['push'](_0x4bb3ef['shift']());}}}(a119_0x3219,0x53b7e));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{publishFlowDefinition}from'../../core/api-client.js';import{FLOW_ID_FLAG,FLOW_PATHS,buildFlowUrl,buildFlowIdDryRun,flowSelector,readFlowId}from'../../commands/flow/shared.js';export const flowPublish={'service':a119_0x2b9d7d(0x126),'command':a119_0x2b9d7d(0x12e),'description':'Publish\x20the\x20current\x20flow\x20definition\x20draft','risk':'write','flags':[FLOW_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x446ee5){readFlowId(_0x446ee5);},async 'dryRun'(_0xf15e0e){const _0xb5ce51=a119_0x2b9d7d,_0x2ebc1f=readFlowId(_0xf15e0e);return buildFlowIdDryRun(_0xb5ce51(0x12e),FLOW_PATHS[_0xb5ce51(0x12e)],_0xf15e0e[_0xb5ce51(0x12c)],_0x2ebc1f,{'id':_0x2ebc1f,'flowStatus':_0xb5ce51(0x124)});},async 'execute'(_0xb9b525){const _0x5076d2=a119_0x2b9d7d,_0x3bae81=readFlowId(_0xb9b525),_0x50bbd6=await publishFlowDefinition(_0xb9b525[_0x5076d2(0x12c)],_0x3bae81),_0x55cbde=buildFlowUrl(_0xb9b525[_0x5076d2(0x12c)],_0x3bae81);return{'ok':!![],'data':{'operation':_0x5076d2(0x12e),'selector':flowSelector(_0xb9b525[_0x5076d2(0x12c)],_0x3bae81,_0x50bbd6),'before':null,'after':_0x50bbd6,'flowUrl':_0x55cbde,'dryRun':![],'backend':{'method':'POST','path':FLOW_PATHS[_0x5076d2(0x12e)]},'warnings':[]},'message':'Published\x20flow\x20'+(_0x50bbd6[_0x5076d2(0x121)]||_0x50bbd6[_0x5076d2(0x129)]||_0x3bae81)+_0x5076d2(0x12a)+_0x55cbde};}};
@@ -1 +1 @@
1
- const a120_0x330f99=a120_0x3745;(function(_0x1322a7,_0x569fc0){const _0x48d670=a120_0x3745,_0x40e2b1=_0x1322a7();while(!![]){try{const _0x449068=parseInt(_0x48d670(0x1f3))/0x1*(parseInt(_0x48d670(0x1ef))/0x2)+-parseInt(_0x48d670(0x1eb))/0x3*(-parseInt(_0x48d670(0x209))/0x4)+parseInt(_0x48d670(0x1fd))/0x5+-parseInt(_0x48d670(0x1fa))/0x6*(parseInt(_0x48d670(0x20b))/0x7)+-parseInt(_0x48d670(0x1f7))/0x8+parseInt(_0x48d670(0x20f))/0x9*(-parseInt(_0x48d670(0x205))/0xa)+parseInt(_0x48d670(0x1f6))/0xb;if(_0x449068===_0x569fc0)break;else _0x40e2b1['push'](_0x40e2b1['shift']());}catch(_0x1b6a65){_0x40e2b1['push'](_0x40e2b1['shift']());}}}(a120_0x59a6,0x3783e));import{CliErrors}from'../../errors.js';function a120_0x59a6(){const _0x26171e=['slice','filter','trim','1962NyqNnF','Runtime\x20role\x20\x22','userName','roleName','1046egTDuN','str','displayName','length','151RbBIKp','username','join','7827226cLfBqN','584344QimpCs','isSafeInteger','page-size','455316xbNgDK','nickName','num','697025MJtyKO','Runtime\x20role\x20name\x20\x22','map','Page\x20size\x20(1-100)','number','nickname','Disambiguate\x20with\x20--role\x20<id>.','--page-size\x20must\x20be\x20an\x20integer\x20between\x201\x20and\x20100.','138850nUhMxp','status','flagMissing','Run\x20`flow\x20runtime-role-list`\x20to\x20see\x20runtime\x20roles.','84NJRKaW','string','35ZIgGvJ','role','Page\x20index\x20(1-based)','--page\x20must\x20be\x20a\x20positive\x20integer.','171YTvTYh','\x22\x20is\x20ambiguous\x20(ids:\x20','permitCount','\x22\x20not\x20found\x20in\x20app\x20','email','test','validation','page','Runtime\x20role\x20id\x20or\x20exact\x20role\x20name'];a120_0x59a6=function(){return _0x26171e;};return a120_0x59a6();}export const FLOW_RUNTIME_PAGE_FLAG={'name':a120_0x330f99(0x1e6),'type':a120_0x330f99(0x201),'description':a120_0x330f99(0x20d),'default':0x1};export const FLOW_RUNTIME_PAGE_SIZE_FLAG={'name':a120_0x330f99(0x1f9),'type':a120_0x330f99(0x201),'description':a120_0x330f99(0x200),'default':0x14};function a120_0x3745(_0x3a6232,_0x3231e5){_0x3a6232=_0x3a6232-0x1e0;const _0x59a685=a120_0x59a6();let _0x37457a=_0x59a685[_0x3a6232];return _0x37457a;}export const FLOW_RUNTIME_ROLE_REF_FLAG={'name':a120_0x330f99(0x20c),'type':a120_0x330f99(0x20a),'required':!![],'description':a120_0x330f99(0x1e7)};export function readRuntimePagination(_0x5425fb){const _0x23050a=a120_0x330f99,_0x5ddbc5=_0x5425fb[_0x23050a(0x1fc)]('page',0x1),_0x26a9a1=_0x5425fb[_0x23050a(0x1fc)](_0x23050a(0x1f9),0x14);if(!Number[_0x23050a(0x1f8)](_0x5ddbc5)||_0x5ddbc5<0x1)throw CliErrors[_0x23050a(0x1e5)](_0x23050a(0x20e));if(!Number[_0x23050a(0x1f8)](_0x26a9a1)||_0x26a9a1<0x1||_0x26a9a1>0x64)throw CliErrors['validation'](_0x23050a(0x204));return{'page':_0x5ddbc5,'pageSize':_0x26a9a1};}export function paginateRuntimeItems(_0x21cf55,_0x39df7f,_0x4a9de8){const _0x3ddddd=a120_0x330f99,_0x3cb75e=(_0x39df7f-0x1)*_0x4a9de8;return{'items':_0x21cf55[_0x3ddddd(0x1e8)](_0x3cb75e,_0x3cb75e+_0x4a9de8),'paging':{'currentPage':_0x39df7f,'pageSize':_0x4a9de8,'totalCount':_0x21cf55[_0x3ddddd(0x1f2)]}};}export function projectRuntimeRole(_0xb7e664){const _0x32ae4a=a120_0x330f99;return{'id':_0xb7e664['id'],'roleName':_0xb7e664[_0x32ae4a(0x1ee)]??null,'roleType':_0xb7e664['roleType']??null,'remark':_0xb7e664['remark']??null,'userCount':_0xb7e664['userCount']??0x0,'permitCount':_0xb7e664[_0x32ae4a(0x1e1)]??0x0};}export function projectRuntimeUser(_0x270f2e){const _0x5dc4fb=a120_0x330f99,_0x2ac483=normalizeRuntimeUserId(_0x270f2e['code']);if(!_0x2ac483)return null;return{'userId':_0x2ac483,'username':_0x270f2e[_0x5dc4fb(0x1ed)]??null,'nickname':_0x270f2e[_0x5dc4fb(0x1fb)]??null,'displayName':_0x270f2e[_0x5dc4fb(0x1f1)]??null,'email':_0x270f2e[_0x5dc4fb(0x1e3)]??null,'status':_0x270f2e[_0x5dc4fb(0x206)]??null};}export function projectRuntimeRoleMember(_0x2e6cf){const _0x3984c6=a120_0x330f99,_0x1920c2=normalizeRuntimeUserId(_0x2e6cf['userId']);if(!_0x1920c2)return null;return{'userId':_0x1920c2,'username':_0x2e6cf[_0x3984c6(0x1f4)]??null,'nickname':_0x2e6cf[_0x3984c6(0x202)]??null};}export function readRuntimeRoleRef(_0x40b7f0){const _0x20a94a=a120_0x330f99,_0x4070b7=_0x40b7f0[_0x20a94a(0x1f0)]('role')[_0x20a94a(0x1ea)]();if(!_0x4070b7)throw CliErrors[_0x20a94a(0x207)](_0x20a94a(0x20c),'Pass\x20--role\x20<id|name>.');return _0x4070b7;}export function resolveRuntimeRoleGroup(_0x27f34e,_0x232a5a,_0x26253c){const _0x89b0b0=a120_0x330f99,_0x2d4ee5=/^\d+$/[_0x89b0b0(0x1e4)](_0x232a5a)?_0x26253c['filter'](_0x3d0129=>_0x3d0129['id']===Number(_0x232a5a)):_0x26253c[_0x89b0b0(0x1e9)](_0x1486dd=>_0x1486dd[_0x89b0b0(0x1ee)]===_0x232a5a);if(_0x2d4ee5[_0x89b0b0(0x1f2)]===0x0)throw CliErrors[_0x89b0b0(0x1e5)](_0x89b0b0(0x1ec)+_0x232a5a+_0x89b0b0(0x1e2)+_0x27f34e+'.',_0x89b0b0(0x208));if(_0x2d4ee5[_0x89b0b0(0x1f2)]>0x1){const _0x2bc968=_0x2d4ee5[_0x89b0b0(0x1ff)](_0x63b9e5=>_0x63b9e5['id'])[_0x89b0b0(0x1f5)](',\x20');throw CliErrors['validation'](_0x89b0b0(0x1fe)+_0x232a5a+_0x89b0b0(0x1e0)+_0x2bc968+').',_0x89b0b0(0x203));}return _0x2d4ee5[0x0];}function normalizeRuntimeUserId(_0x573161){const _0x4f766f=a120_0x330f99;if(typeof _0x573161!==_0x4f766f(0x20a)&&typeof _0x573161!==_0x4f766f(0x201))return null;const _0x2491ed=String(_0x573161)[_0x4f766f(0x1ea)]();return _0x2491ed||null;}
1
+ const a120_0x80d8b=a120_0x1a3c;(function(_0x259548,_0x239d5b){const _0x5f2b38=a120_0x1a3c,_0x3979c=_0x259548();while(!![]){try{const _0x1d6dd2=parseInt(_0x5f2b38(0x203))/0x1*(parseInt(_0x5f2b38(0x1e9))/0x2)+parseInt(_0x5f2b38(0x1ed))/0x3*(parseInt(_0x5f2b38(0x1fd))/0x4)+-parseInt(_0x5f2b38(0x1df))/0x5+parseInt(_0x5f2b38(0x20c))/0x6+parseInt(_0x5f2b38(0x200))/0x7*(parseInt(_0x5f2b38(0x205))/0x8)+-parseInt(_0x5f2b38(0x1e6))/0x9+-parseInt(_0x5f2b38(0x1ea))/0xa;if(_0x1d6dd2===_0x239d5b)break;else _0x3979c['push'](_0x3979c['shift']());}catch(_0x3c0fd5){_0x3979c['push'](_0x3979c['shift']());}}}(a120_0x419d,0xe7c36));import{CliErrors}from'../../errors.js';export const FLOW_RUNTIME_PAGE_FLAG={'name':a120_0x80d8b(0x1eb),'type':a120_0x80d8b(0x201),'description':a120_0x80d8b(0x1f0),'default':0x1};export const FLOW_RUNTIME_PAGE_SIZE_FLAG={'name':a120_0x80d8b(0x1e8),'type':a120_0x80d8b(0x201),'description':a120_0x80d8b(0x207),'default':0x14};export const FLOW_RUNTIME_ROLE_REF_FLAG={'name':a120_0x80d8b(0x1ee),'type':a120_0x80d8b(0x1fb),'required':!![],'description':a120_0x80d8b(0x1f6)};export function readRuntimePagination(_0x2b250c){const _0x15a60c=a120_0x80d8b,_0x5825b5=_0x2b250c[_0x15a60c(0x1fc)]('page',0x1),_0xa6360a=_0x2b250c['num'](_0x15a60c(0x1e8),0x14);if(!Number['isSafeInteger'](_0x5825b5)||_0x5825b5<0x1)throw CliErrors[_0x15a60c(0x1f4)]('--page\x20must\x20be\x20a\x20positive\x20integer.');if(!Number[_0x15a60c(0x1e5)](_0xa6360a)||_0xa6360a<0x1||_0xa6360a>0x64)throw CliErrors[_0x15a60c(0x1f4)](_0x15a60c(0x1ef));return{'page':_0x5825b5,'pageSize':_0xa6360a};}export function paginateRuntimeItems(_0x29c338,_0x3b90f7,_0x5a5087){const _0x49674f=a120_0x80d8b,_0x43ff16=(_0x3b90f7-0x1)*_0x5a5087;return{'items':_0x29c338['slice'](_0x43ff16,_0x43ff16+_0x5a5087),'paging':{'currentPage':_0x3b90f7,'pageSize':_0x5a5087,'totalCount':_0x29c338[_0x49674f(0x1fa)]}};}export function projectRuntimeRole(_0x5e0f3a){const _0x16c12c=a120_0x80d8b;return{'id':_0x5e0f3a['id'],'roleName':_0x5e0f3a[_0x16c12c(0x1ec)]??null,'roleType':_0x5e0f3a[_0x16c12c(0x1fe)]??null,'remark':_0x5e0f3a[_0x16c12c(0x1f8)]??null,'userCount':_0x5e0f3a['userCount']??0x0,'permitCount':_0x5e0f3a[_0x16c12c(0x1e3)]??0x0};}function a120_0x1a3c(_0x269abd,_0x5f5389){_0x269abd=_0x269abd-0x1df;const _0x419d8c=a120_0x419d();let _0x1a3c1d=_0x419d8c[_0x269abd];return _0x1a3c1d;}export function projectRuntimeUser(_0x3001d2){const _0x51f935=a120_0x80d8b,_0x2f6dee=normalizeRuntimeUserId(_0x3001d2[_0x51f935(0x208)]);if(!_0x2f6dee)return null;return{'userId':_0x2f6dee,'username':_0x3001d2[_0x51f935(0x20a)]??null,'nickname':_0x3001d2[_0x51f935(0x1f7)]??null,'displayName':_0x3001d2['displayName']??null,'email':_0x3001d2['email']??null,'status':_0x3001d2[_0x51f935(0x1e1)]??null};}function a120_0x419d(){const _0x35d8c2=['code','\x22\x20not\x20found\x20in\x20app\x20','userName','trim','6669012jqLroT','username','str','8403500slZJoT','nickname','status','Disambiguate\x20with\x20--role\x20<id>.','permitCount','Runtime\x20role\x20name\x20\x22','isSafeInteger','5063427DQRkpM','map','page-size','2QemyPO','10791720yXqJdA','page','roleName','1434831ltyyFo','role','--page-size\x20must\x20be\x20an\x20integer\x20between\x201\x20and\x20100.','Page\x20index\x20(1-based)','\x22\x20is\x20ambiguous\x20(ids:\x20','userId','flagMissing','validation','Pass\x20--role\x20<id|name>.','Runtime\x20role\x20id\x20or\x20exact\x20role\x20name','nickName','remark','Runtime\x20role\x20\x22','length','string','num','8tUddWK','roleType','Run\x20`flow\x20runtime-role-list`\x20to\x20see\x20runtime\x20roles.','3698401mMqbON','number','test','1147035ipuPpK','join','16mdigVh','filter','Page\x20size\x20(1-100)'];a120_0x419d=function(){return _0x35d8c2;};return a120_0x419d();}export function projectRuntimeRoleMember(_0x2f6535){const _0x22fa8b=a120_0x80d8b,_0x90d674=normalizeRuntimeUserId(_0x2f6535[_0x22fa8b(0x1f2)]);if(!_0x90d674)return null;return{'userId':_0x90d674,'username':_0x2f6535[_0x22fa8b(0x20d)]??null,'nickname':_0x2f6535[_0x22fa8b(0x1e0)]??null};}export function readRuntimeRoleRef(_0x5b3ab0){const _0x4c07a7=a120_0x80d8b,_0x298abd=_0x5b3ab0[_0x4c07a7(0x20e)](_0x4c07a7(0x1ee))[_0x4c07a7(0x20b)]();if(!_0x298abd)throw CliErrors[_0x4c07a7(0x1f3)]('role',_0x4c07a7(0x1f5));return _0x298abd;}export function resolveRuntimeRoleGroup(_0x160e25,_0x6becd7,_0xa3d198){const _0x912fb=a120_0x80d8b,_0x256c79=/^\d+$/[_0x912fb(0x202)](_0x6becd7)?_0xa3d198[_0x912fb(0x206)](_0xb21334=>_0xb21334['id']===Number(_0x6becd7)):_0xa3d198[_0x912fb(0x206)](_0xb1c6b5=>_0xb1c6b5[_0x912fb(0x1ec)]===_0x6becd7);if(_0x256c79[_0x912fb(0x1fa)]===0x0)throw CliErrors[_0x912fb(0x1f4)](_0x912fb(0x1f9)+_0x6becd7+_0x912fb(0x209)+_0x160e25+'.',_0x912fb(0x1ff));if(_0x256c79[_0x912fb(0x1fa)]>0x1){const _0x5b29d8=_0x256c79[_0x912fb(0x1e7)](_0x1635fe=>_0x1635fe['id'])[_0x912fb(0x204)](',\x20');throw CliErrors['validation'](_0x912fb(0x1e4)+_0x6becd7+_0x912fb(0x1f1)+_0x5b29d8+').',_0x912fb(0x1e2));}return _0x256c79[0x0];}function normalizeRuntimeUserId(_0x44113f){const _0x4227ab=a120_0x80d8b;if(typeof _0x44113f!==_0x4227ab(0x1fb)&&typeof _0x44113f!=='number')return null;const _0x5a7361=String(_0x44113f)[_0x4227ab(0x20b)]();return _0x5a7361||null;}
@@ -1 +1 @@
1
- const a121_0x1768b6=a121_0x1d05;function a121_0x1d05(_0x425cd9,_0xbfba4e){_0x425cd9=_0x425cd9-0x10f;const _0xbabf0d=a121_0xbabf();let _0x1d056c=_0xbabf0d[_0x425cd9];return _0x1d056c;}function a121_0xbabf(){const _0x4556cb=['1970430xedzpM','Optional\x20runtime\x20role-name\x20keyword','length','flow','Found\x20','List\x20runtime\x20app\x20roles\x20for\x20approval\x20assignee\x20selection','7850KSakAS','\x20runtime\x20role(s)','59tZxEzB','map','523568NKffnb','str','appCode','965115NufTnH','keyword','1779302aKcxfT','2363090mkWPSd','162844cDSmrt','runtime-role-list'];a121_0xbabf=function(){return _0x4556cb;};return a121_0xbabf();}(function(_0x2cd0a3,_0x1d110f){const _0x2585cf=a121_0x1d05,_0x309786=_0x2cd0a3();while(!![]){try{const _0x5a3848=parseInt(_0x2585cf(0x116))/0x1*(parseInt(_0x2585cf(0x114))/0x2)+parseInt(_0x2585cf(0x11b))/0x3+-parseInt(_0x2585cf(0x11f))/0x4+parseInt(_0x2585cf(0x11e))/0x5+-parseInt(_0x2585cf(0x121))/0x6+-parseInt(_0x2585cf(0x11d))/0x7+parseInt(_0x2585cf(0x118))/0x8;if(_0x5a3848===_0x1d110f)break;else _0x309786['push'](_0x309786['shift']());}catch(_0x3907b3){_0x309786['push'](_0x309786['shift']());}}}(a121_0xbabf,0x7244a));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{FLOW_RUNTIME_PAGE_FLAG,FLOW_RUNTIME_PAGE_SIZE_FLAG,projectRuntimeRole,readRuntimePagination}from'../../commands/flow/runtime-resources-shared.js';import{listApprovalRuntimeRoles}from'../../core/api-client.js';export const flowRuntimeRoleList={'service':a121_0x1768b6(0x111),'command':a121_0x1768b6(0x120),'description':a121_0x1768b6(0x113),'risk':'read','flags':[{'name':'keyword','type':'string','description':a121_0x1768b6(0x10f)},FLOW_RUNTIME_PAGE_FLAG,FLOW_RUNTIME_PAGE_SIZE_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x24426f){readRuntimePagination(_0x24426f);},async 'execute'(_0x4d47b2){const _0x5997a2=a121_0x1768b6,{page:_0x3e4b80,pageSize:_0x566d84}=readRuntimePagination(_0x4d47b2),_0x150400=_0x4d47b2[_0x5997a2(0x119)](_0x5997a2(0x11c))['trim'](),{items:_0xc20e78,paging:_0x38b174}=await listApprovalRuntimeRoles(_0x4d47b2[_0x5997a2(0x11a)],{..._0x150400?{'roleName':_0x150400}:{},'currentPage':_0x3e4b80,'pageSize':_0x566d84}),_0x1bbfa6=_0xc20e78[_0x5997a2(0x117)](projectRuntimeRole);return{'ok':!![],'data':{'appCode':_0x4d47b2[_0x5997a2(0x11a)],'scope':'runtime',..._0x150400?{'keyword':_0x150400}:{},'roles':_0x1bbfa6,'paging':_0x38b174},'message':_0x5997a2(0x112)+_0x1bbfa6[_0x5997a2(0x110)]+_0x5997a2(0x115)};}};
1
+ function a121_0xbab9(_0x524ac0,_0x21f294){_0x524ac0=_0x524ac0-0x101;const _0x211978=a121_0x2119();let _0xbab97c=_0x211978[_0x524ac0];return _0xbab97c;}function a121_0x2119(){const _0x59696e=['1993481hDxOFq','str','trim','read','5425101blYuSt','Optional\x20runtime\x20role-name\x20keyword','string','flow','2222544VSenBT','keyword','291928CLiCLV','runtime-role-list','662137CvuRug','appCode','2lFcYTJ','5699135NujDei','Found\x20','4616836ZywkhI','6qbKrrv'];a121_0x2119=function(){return _0x59696e;};return a121_0x2119();}const a121_0x4e681f=a121_0xbab9;(function(_0x34722a,_0x33fee2){const _0x3b8514=a121_0xbab9,_0x508294=_0x34722a();while(!![]){try{const _0x575da1=-parseInt(_0x3b8514(0x10f))/0x1*(-parseInt(_0x3b8514(0x111))/0x2)+-parseInt(_0x3b8514(0x10b))/0x3+parseInt(_0x3b8514(0x101))/0x4+-parseInt(_0x3b8514(0x112))/0x5+parseInt(_0x3b8514(0x102))/0x6*(parseInt(_0x3b8514(0x103))/0x7)+parseInt(_0x3b8514(0x10d))/0x8+parseInt(_0x3b8514(0x107))/0x9;if(_0x575da1===_0x33fee2)break;else _0x508294['push'](_0x508294['shift']());}catch(_0x199f75){_0x508294['push'](_0x508294['shift']());}}}(a121_0x2119,0xd1e56));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{FLOW_RUNTIME_PAGE_FLAG,FLOW_RUNTIME_PAGE_SIZE_FLAG,projectRuntimeRole,readRuntimePagination}from'../../commands/flow/runtime-resources-shared.js';import{listApprovalRuntimeRoles}from'../../core/api-client.js';export const flowRuntimeRoleList={'service':a121_0x4e681f(0x10a),'command':a121_0x4e681f(0x10e),'description':'List\x20runtime\x20app\x20roles\x20for\x20approval\x20assignee\x20selection','risk':a121_0x4e681f(0x106),'flags':[{'name':a121_0x4e681f(0x10c),'type':a121_0x4e681f(0x109),'description':a121_0x4e681f(0x108)},FLOW_RUNTIME_PAGE_FLAG,FLOW_RUNTIME_PAGE_SIZE_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x15a07b){readRuntimePagination(_0x15a07b);},async 'execute'(_0x16cda1){const _0x1b1396=a121_0x4e681f,{page:_0xb3a355,pageSize:_0x36a4b7}=readRuntimePagination(_0x16cda1),_0x14eff8=_0x16cda1[_0x1b1396(0x104)](_0x1b1396(0x10c))[_0x1b1396(0x105)](),{items:_0x35d1b3,paging:_0x250be8}=await listApprovalRuntimeRoles(_0x16cda1[_0x1b1396(0x110)],{..._0x14eff8?{'roleName':_0x14eff8}:{},'currentPage':_0xb3a355,'pageSize':_0x36a4b7}),_0x2c80fe=_0x35d1b3['map'](projectRuntimeRole);return{'ok':!![],'data':{'appCode':_0x16cda1[_0x1b1396(0x110)],'scope':'runtime',..._0x14eff8?{'keyword':_0x14eff8}:{},'roles':_0x2c80fe,'paging':_0x250be8},'message':_0x1b1396(0x113)+_0x2c80fe['length']+'\x20runtime\x20role(s)'};}};
@@ -1 +1 @@
1
- function a122_0x2d58(){const _0x480af7=['appCode','1812geYiwh','14369EtBsZV','Found\x20','length','9317PJgWAp','\x20runtime\x20member(s)\x20in\x20role\x20','items','7570895znrTNa','1072HCrwva','runtime-role-user-list','3828600ummaxM','flow','List\x20members\x20of\x20one\x20runtime\x20app\x20role\x20for\x20approval\x20verification','map','10246852BxaSfO','roleName','20820DBJnqz','5820nMSjPf','34839IbeZdI','20qHcsbO','read','runtime','roleType','userList'];a122_0x2d58=function(){return _0x480af7;};return a122_0x2d58();}function a122_0x2121(_0x2f3275,_0x2dd775){_0x2f3275=_0x2f3275-0x1f0;const _0x2d582a=a122_0x2d58();let _0x2121bd=_0x2d582a[_0x2f3275];return _0x2121bd;}const a122_0x563417=a122_0x2121;(function(_0x4e9f57,_0x517b50){const _0x546ed9=a122_0x2121,_0x3b9f84=_0x4e9f57();while(!![]){try{const _0x3190eb=parseInt(_0x546ed9(0x202))/0x1*(parseInt(_0x546ed9(0x1fb))/0x2)+parseInt(_0x546ed9(0x1f9))/0x3*(-parseInt(_0x546ed9(0x201))/0x4)+-parseInt(_0x546ed9(0x208))/0x5+-parseInt(_0x546ed9(0x1f2))/0x6+parseInt(_0x546ed9(0x1f6))/0x7+parseInt(_0x546ed9(0x1f0))/0x8*(parseInt(_0x546ed9(0x1fa))/0x9)+parseInt(_0x546ed9(0x1f8))/0xa*(parseInt(_0x546ed9(0x205))/0xb);if(_0x3190eb===_0x517b50)break;else _0x3b9f84['push'](_0x3b9f84['shift']());}catch(_0x745df7){_0x3b9f84['push'](_0x3b9f84['shift']());}}}(a122_0x2d58,0xd19e3));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_0x563417(0x1f3),'command':a122_0x563417(0x1f1),'description':a122_0x563417(0x1f4),'risk':a122_0x563417(0x1fc),'flags':[FLOW_RUNTIME_ROLE_REF_FLAG,FLOW_RUNTIME_PAGE_FLAG,FLOW_RUNTIME_PAGE_SIZE_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x3fb2ae){readRuntimeRoleRef(_0x3fb2ae),readRuntimePagination(_0x3fb2ae);},async 'execute'(_0x138a26){const _0x77eeb5=a122_0x563417,_0x1c360c=resolveRuntimeRoleGroup(_0x138a26[_0x77eeb5(0x200)],readRuntimeRoleRef(_0x138a26),await listApprovalRuntimeRoleUsers(_0x138a26[_0x77eeb5(0x200)])),_0x1b8f1d=(_0x1c360c[_0x77eeb5(0x1ff)]??[])[_0x77eeb5(0x1f5)](projectRuntimeRoleMember)['filter'](_0x382c57=>_0x382c57!==null),{page:_0x4b1565,pageSize:_0x42ef63}=readRuntimePagination(_0x138a26),_0x572aef=paginateRuntimeItems(_0x1b8f1d,_0x4b1565,_0x42ef63);return{'ok':!![],'data':{'appCode':_0x138a26[_0x77eeb5(0x200)],'scope':_0x77eeb5(0x1fd),'role':{'id':_0x1c360c['id'],'roleName':_0x1c360c[_0x77eeb5(0x1f7)]??null,'roleType':_0x1c360c[_0x77eeb5(0x1fe)]??null},'users':_0x572aef[_0x77eeb5(0x207)],'paging':_0x572aef['paging']},'message':_0x77eeb5(0x203)+_0x1b8f1d[_0x77eeb5(0x204)]+_0x77eeb5(0x206)+(_0x1c360c[_0x77eeb5(0x1f7)]??_0x1c360c['id'])};}};
1
+ const a122_0x2d879e=a122_0x332c;(function(_0x4d4b82,_0x199e1d){const _0x5d3fd0=a122_0x332c,_0x5fc649=_0x4d4b82();while(!![]){try{const _0x2838af=-parseInt(_0x5d3fd0(0x170))/0x1*(-parseInt(_0x5d3fd0(0x16d))/0x2)+-parseInt(_0x5d3fd0(0x15d))/0x3+-parseInt(_0x5d3fd0(0x171))/0x4*(parseInt(_0x5d3fd0(0x173))/0x5)+-parseInt(_0x5d3fd0(0x176))/0x6+parseInt(_0x5d3fd0(0x162))/0x7+parseInt(_0x5d3fd0(0x15e))/0x8*(parseInt(_0x5d3fd0(0x168))/0x9)+parseInt(_0x5d3fd0(0x16a))/0xa*(parseInt(_0x5d3fd0(0x163))/0xb);if(_0x2838af===_0x199e1d)break;else _0x5fc649['push'](_0x5fc649['shift']());}catch(_0x3ce916){_0x5fc649['push'](_0x5fc649['shift']());}}}(a122_0x257b,0x269ac));function a122_0x257b(){const _0x5a0945=['paging','35pnuWba','8qpGLlQ','filter','676655eWKdfL','runtime-role-user-list','List\x20members\x20of\x20one\x20runtime\x20app\x20role\x20for\x20approval\x20verification','708300DUrsao','553524ZvxhWu','536vTQQXw','items','appCode','userList','279930MsQVeh','4029157PwDnyF','length','\x20runtime\x20member(s)\x20in\x20role\x20','roleType','read','41409AALkgL','flow','10PPkbcc','Found\x20','map','960rbQpTO','roleName'];a122_0x257b=function(){return _0x5a0945;};return a122_0x257b();}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{FLOW_RUNTIME_PAGE_FLAG,FLOW_RUNTIME_PAGE_SIZE_FLAG,FLOW_RUNTIME_ROLE_REF_FLAG,paginateRuntimeItems,projectRuntimeRoleMember,readRuntimePagination,readRuntimeRoleRef,resolveRuntimeRoleGroup}from'../../commands/flow/runtime-resources-shared.js';function a122_0x332c(_0x10245e,_0x457946){_0x10245e=_0x10245e-0x15d;const _0x257b8b=a122_0x257b();let _0x332c50=_0x257b8b[_0x10245e];return _0x332c50;}import{listApprovalRuntimeRoleUsers}from'../../core/api-client.js';export const flowRuntimeRoleUserList={'service':a122_0x2d879e(0x169),'command':a122_0x2d879e(0x174),'description':a122_0x2d879e(0x175),'risk':a122_0x2d879e(0x167),'flags':[FLOW_RUNTIME_ROLE_REF_FLAG,FLOW_RUNTIME_PAGE_FLAG,FLOW_RUNTIME_PAGE_SIZE_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x2de52a){readRuntimeRoleRef(_0x2de52a),readRuntimePagination(_0x2de52a);},async 'execute'(_0x479e16){const _0x1c3a98=a122_0x2d879e,_0x44d37f=resolveRuntimeRoleGroup(_0x479e16[_0x1c3a98(0x160)],readRuntimeRoleRef(_0x479e16),await listApprovalRuntimeRoleUsers(_0x479e16['appCode'])),_0x472b0c=(_0x44d37f[_0x1c3a98(0x161)]??[])[_0x1c3a98(0x16c)](projectRuntimeRoleMember)[_0x1c3a98(0x172)](_0x487882=>_0x487882!==null),{page:_0x1d6563,pageSize:_0x1cc174}=readRuntimePagination(_0x479e16),_0x5817ea=paginateRuntimeItems(_0x472b0c,_0x1d6563,_0x1cc174);return{'ok':!![],'data':{'appCode':_0x479e16[_0x1c3a98(0x160)],'scope':'runtime','role':{'id':_0x44d37f['id'],'roleName':_0x44d37f[_0x1c3a98(0x16e)]??null,'roleType':_0x44d37f[_0x1c3a98(0x166)]??null},'users':_0x5817ea[_0x1c3a98(0x15f)],'paging':_0x5817ea[_0x1c3a98(0x16f)]},'message':_0x1c3a98(0x16b)+_0x472b0c[_0x1c3a98(0x164)]+_0x1c3a98(0x165)+(_0x44d37f['roleName']??_0x44d37f['id'])};}};
@@ -1 +1 @@
1
- const a123_0xbc51bb=a123_0x4063;(function(_0x2cc6cb,_0x2ba69a){const _0xeccb4a=a123_0x4063,_0x15e859=_0x2cc6cb();while(!![]){try{const _0x1293ee=parseInt(_0xeccb4a(0xb4))/0x1*(parseInt(_0xeccb4a(0xaf))/0x2)+-parseInt(_0xeccb4a(0x98))/0x3*(-parseInt(_0xeccb4a(0x96))/0x4)+-parseInt(_0xeccb4a(0xae))/0x5*(parseInt(_0xeccb4a(0x8f))/0x6)+-parseInt(_0xeccb4a(0x9a))/0x7*(-parseInt(_0xeccb4a(0x9d))/0x8)+-parseInt(_0xeccb4a(0x9f))/0x9*(-parseInt(_0xeccb4a(0xac))/0xa)+-parseInt(_0xeccb4a(0x90))/0xb*(parseInt(_0xeccb4a(0x94))/0xc)+parseInt(_0xeccb4a(0xa9))/0xd*(-parseInt(_0xeccb4a(0xaa))/0xe);if(_0x1293ee===_0x2ba69a)break;else _0x15e859['push'](_0x15e859['shift']());}catch(_0x3a2ea8){_0x15e859['push'](_0x15e859['shift']());}}}(a123_0x46c0,0x78538));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a123_0x4063(_0x238f0d,_0x144b4b){_0x238f0d=_0x238f0d-0x8f;const _0x46c072=a123_0x46c0();let _0x40637c=_0x46c072[_0x238f0d];return _0x40637c;}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_0xbc51bb(0x95),'command':a123_0xbc51bb(0xa0),'description':a123_0xbc51bb(0xb0),'risk':a123_0xbc51bb(0x92),'flags':[{'name':'keyword','type':a123_0xbc51bb(0x97),'required':!![],'description':a123_0xbc51bb(0x93)},FLOW_RUNTIME_PAGE_FLAG,FLOW_RUNTIME_PAGE_SIZE_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x500573){const _0x3b847e=a123_0xbc51bb;if(!_0x500573['str'](_0x3b847e(0xa1))['trim']())throw CliErrors[_0x3b847e(0x99)](_0x3b847e(0xa1),_0x3b847e(0xa4));readRuntimePagination(_0x500573);},async 'execute'(_0x518f0d){const _0xc6f27f=a123_0xbc51bb,_0x9ca4a4=_0x518f0d[_0xc6f27f(0xa2)]('keyword')[_0xc6f27f(0xa8)](),_0x187bef=_0x9ca4a4[_0xc6f27f(0x9e)](),_0x23b149=(await listApprovalRuntimeUsers(_0x518f0d[_0xc6f27f(0xa7)]))[_0xc6f27f(0x9b)](_0xf2acf1=>[_0xf2acf1[_0xc6f27f(0xad)],_0xf2acf1[_0xc6f27f(0xa5)],_0xf2acf1[_0xc6f27f(0x91)],_0xf2acf1[_0xc6f27f(0xb5)],_0xf2acf1['email']]['some'](_0x3723a6=>_0x3723a6!==null&&_0x3723a6!==undefined&&String(_0x3723a6)[_0xc6f27f(0x9e)]()[_0xc6f27f(0xa3)](_0x187bef)))['map'](projectRuntimeUser)[_0xc6f27f(0x9b)](_0x4534fa=>_0x4534fa!==null),{page:_0x585cf2,pageSize:_0x33865b}=readRuntimePagination(_0x518f0d),_0x99712=paginateRuntimeItems(_0x23b149,_0x585cf2,_0x33865b);return{'ok':!![],'data':{'appCode':_0x518f0d['appCode'],'scope':_0xc6f27f(0xb3),'keyword':_0x9ca4a4,'users':_0x99712[_0xc6f27f(0x9c)],'paging':_0x99712[_0xc6f27f(0xb2)]},'message':_0xc6f27f(0xb1)+_0x23b149[_0xc6f27f(0xa6)]+_0xc6f27f(0xab)+_0x9ca4a4+'\x22'};}};function a123_0x46c0(){const _0x4d9623=['11GCfMDy','nickName','read','User\x20id,\x20username,\x20nickname,\x20display\x20name,\x20or\x20email\x20keyword','7148172itVuPu','flow','108krkZNR','string','70758HcKVJJ','flagMissing','14ocBayB','filter','items','3895464oqCuAp','toLowerCase','1627650hxTOhi','runtime-user-search','keyword','str','includes','Pass\x20--keyword\x20<text>.','userName','length','appCode','trim','2093xFjqQR','87430tCArmc','\x20runtime\x20app\x20user(s)\x20matching\x20\x22','20WrNtrd','code','68165StzhST','31912fHUrNi','Search\x20runtime\x20app\x20users\x20for\x20approval\x20assignee\x20selection','Found\x20','paging','runtime','23EsiMZS','displayName','108MsJQqr'];a123_0x46c0=function(){return _0x4d9623;};return a123_0x46c0();}
1
+ const a123_0x4a3f07=a123_0x4313;(function(_0x318242,_0x85623b){const _0x49dbf2=a123_0x4313,_0x5430c9=_0x318242();while(!![]){try{const _0x47ca94=-parseInt(_0x49dbf2(0x1d1))/0x1+-parseInt(_0x49dbf2(0x1d7))/0x2*(parseInt(_0x49dbf2(0x1d6))/0x3)+parseInt(_0x49dbf2(0x1cc))/0x4*(-parseInt(_0x49dbf2(0x1dc))/0x5)+parseInt(_0x49dbf2(0x1c3))/0x6+parseInt(_0x49dbf2(0x1c4))/0x7*(parseInt(_0x49dbf2(0x1db))/0x8)+-parseInt(_0x49dbf2(0x1c9))/0x9+parseInt(_0x49dbf2(0x1d3))/0xa;if(_0x47ca94===_0x85623b)break;else _0x5430c9['push'](_0x5430c9['shift']());}catch(_0x7504f7){_0x5430c9['push'](_0x5430c9['shift']());}}}(a123_0x5259,0x204ad));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';function a123_0x5259(){const _0x87e760=['724071FdIrYL','2opAdsA','Search\x20runtime\x20app\x20users\x20for\x20approval\x20assignee\x20selection','displayName','includes','8RfNLHy','490qXUPJu','flow','Found\x20','runtime-user-search','code','str','Pass\x20--keyword\x20<text>.','User\x20id,\x20username,\x20nickname,\x20display\x20name,\x20or\x20email\x20keyword','userName','1034748wwHpwI','1190854PYztni','keyword','some','string','paging','374409gQhhFW','trim','map','6160hrRqbK','runtime','appCode','toLowerCase','filter','167141XasyTH','nickName','3907080wjqknX','items','email'];a123_0x5259=function(){return _0x87e760;};return a123_0x5259();}function a123_0x4313(_0x5307b2,_0x4fb08b){_0x5307b2=_0x5307b2-0x1bc;const _0x525918=a123_0x5259();let _0x431358=_0x525918[_0x5307b2];return _0x431358;}import{CliErrors}from'../../errors.js';export const flowRuntimeUserSearch={'service':a123_0x4a3f07(0x1dd),'command':a123_0x4a3f07(0x1bd),'description':a123_0x4a3f07(0x1d8),'risk':'read','flags':[{'name':'keyword','type':a123_0x4a3f07(0x1c7),'required':!![],'description':a123_0x4a3f07(0x1c1)},FLOW_RUNTIME_PAGE_FLAG,FLOW_RUNTIME_PAGE_SIZE_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x464b78){const _0x43d7f8=a123_0x4a3f07;if(!_0x464b78[_0x43d7f8(0x1bf)](_0x43d7f8(0x1c5))[_0x43d7f8(0x1ca)]())throw CliErrors['flagMissing']('keyword',_0x43d7f8(0x1c0));readRuntimePagination(_0x464b78);},async 'execute'(_0x599707){const _0x10dce0=a123_0x4a3f07,_0xff0178=_0x599707['str'](_0x10dce0(0x1c5))[_0x10dce0(0x1ca)](),_0x545087=_0xff0178[_0x10dce0(0x1cf)](),_0x1faeb8=(await listApprovalRuntimeUsers(_0x599707[_0x10dce0(0x1ce)]))['filter'](_0x3eee1a=>[_0x3eee1a[_0x10dce0(0x1be)],_0x3eee1a[_0x10dce0(0x1c2)],_0x3eee1a[_0x10dce0(0x1d2)],_0x3eee1a[_0x10dce0(0x1d9)],_0x3eee1a[_0x10dce0(0x1d5)]][_0x10dce0(0x1c6)](_0xaac327=>_0xaac327!==null&&_0xaac327!==undefined&&String(_0xaac327)['toLowerCase']()[_0x10dce0(0x1da)](_0x545087)))[_0x10dce0(0x1cb)](projectRuntimeUser)[_0x10dce0(0x1d0)](_0x5b7c26=>_0x5b7c26!==null),{page:_0x417927,pageSize:_0x2e9f8f}=readRuntimePagination(_0x599707),_0x2993cd=paginateRuntimeItems(_0x1faeb8,_0x417927,_0x2e9f8f);return{'ok':!![],'data':{'appCode':_0x599707['appCode'],'scope':_0x10dce0(0x1cd),'keyword':_0xff0178,'users':_0x2993cd[_0x10dce0(0x1d4)],'paging':_0x2993cd[_0x10dce0(0x1c8)]},'message':_0x10dce0(0x1bc)+_0x1faeb8['length']+'\x20runtime\x20app\x20user(s)\x20matching\x20\x22'+_0xff0178+'\x22'};}};