@lovrabet/rabetbase-cli 2.5.11-beta.1 → 2.5.11

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 (376) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/api-group.js +1 -1
  3. package/lib/api/fetch-model-list.js +1 -1
  4. package/lib/api/generate-api-file.js +1 -1
  5. package/lib/api/generate-sdk-config-file.js +1 -1
  6. package/lib/api/legacy-api-file.js +1 -1
  7. package/lib/api/model-registry-file.js +1 -1
  8. package/lib/api/model-registry-scaffold.js +1 -1
  9. package/lib/api/model-source.js +1 -1
  10. package/lib/auth/auth-server-ui.js +1 -1
  11. package/lib/auth/auth-server.js +1 -1
  12. package/lib/auth/constant.js +1 -1
  13. package/lib/auth/get-cookie.js +1 -1
  14. package/lib/auth/get-session-user.js +1 -1
  15. package/lib/auth/is-session-valid.js +1 -1
  16. package/lib/auth/login-success-html.js +1 -1
  17. package/lib/auth/logout.js +1 -1
  18. package/lib/cli-flags.js +1 -1
  19. package/lib/cli.js +1 -1
  20. package/lib/commands/api/generate.js +1 -1
  21. package/lib/commands/api/index.js +1 -1
  22. package/lib/commands/api/list.js +1 -1
  23. package/lib/commands/api/pull.js +1 -1
  24. package/lib/commands/api/shared.js +1 -1
  25. package/lib/commands/app/detail.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.js +1 -1
  63. package/lib/commands/config/list.js +1 -1
  64. package/lib/commands/config/set.js +1 -1
  65. package/lib/commands/config/shared.js +1 -1
  66. package/lib/commands/dataset/batch-design.js +1 -1
  67. package/lib/commands/dataset/business-group-update.js +1 -1
  68. package/lib/commands/dataset/business-groups.js +1 -1
  69. package/lib/commands/dataset/capability.js +1 -1
  70. package/lib/commands/dataset/cross-relation-create.js +1 -1
  71. package/lib/commands/dataset/cross-relation-delete.js +1 -1
  72. package/lib/commands/dataset/cross-relation-list.js +1 -1
  73. package/lib/commands/dataset/cross-relation-shared.js +1 -1
  74. package/lib/commands/dataset/cross-relation-update.js +1 -1
  75. package/lib/commands/dataset/delete.js +1 -1
  76. package/lib/commands/dataset/design-context.js +1 -1
  77. package/lib/commands/dataset/design-start.js +1 -1
  78. package/lib/commands/dataset/design-status.js +1 -1
  79. package/lib/commands/dataset/design-sync-retry.js +1 -1
  80. package/lib/commands/dataset/design-sync-status.js +1 -1
  81. package/lib/commands/dataset/design-validate.js +1 -1
  82. package/lib/commands/dataset/detail.js +1 -1
  83. package/lib/commands/dataset/extend-update.js +1 -1
  84. package/lib/commands/dataset/field-restore.js +1 -1
  85. package/lib/commands/dataset/field-update.js +1 -1
  86. package/lib/commands/dataset/generate.js +1 -1
  87. package/lib/commands/dataset/index.js +1 -1
  88. package/lib/commands/dataset/list.js +1 -1
  89. package/lib/commands/dataset/operations.js +1 -1
  90. package/lib/commands/dataset/relation-audit.js +1 -1
  91. package/lib/commands/dataset/relation-create.js +1 -1
  92. package/lib/commands/dataset/relation-delete.js +1 -1
  93. package/lib/commands/dataset/relation-shared.js +1 -1
  94. package/lib/commands/dataset/relation-update.js +1 -1
  95. package/lib/commands/dataset/relations.js +1 -1
  96. package/lib/commands/dataset/rename.js +1 -1
  97. package/lib/commands/dataset/restore.js +1 -1
  98. package/lib/commands/dataset/user-deleted-field-list.js +1 -1
  99. package/lib/commands/db/analysis-batching.js +1 -1
  100. package/lib/commands/db/analyze-batch-plan.js +1 -1
  101. package/lib/commands/db/analyze-cancel.js +1 -1
  102. package/lib/commands/db/analyze-start.js +1 -1
  103. package/lib/commands/db/analyze-status.js +1 -1
  104. package/lib/commands/db/create.js +1 -1
  105. package/lib/commands/db/cross-db-analysis-shared.js +1 -1
  106. package/lib/commands/db/cross-db-analyze-latest.js +1 -1
  107. package/lib/commands/db/cross-db-analyze-start.js +1 -1
  108. package/lib/commands/db/cross-db-analyze-status.js +1 -1
  109. package/lib/commands/db/delete.js +1 -1
  110. package/lib/commands/db/detail.js +1 -1
  111. package/lib/commands/db/diff-refresh-start.js +1 -1
  112. package/lib/commands/db/diff-refresh-status.js +1 -1
  113. package/lib/commands/db/diff.js +1 -1
  114. package/lib/commands/db/index.js +1 -1
  115. package/lib/commands/db/list.js +1 -1
  116. package/lib/commands/db/shared.js +1 -1
  117. package/lib/commands/db/table-diff-shared.js +1 -1
  118. package/lib/commands/db/tables.js +1 -1
  119. package/lib/commands/db/test.js +1 -1
  120. package/lib/commands/db/update.js +1 -1
  121. package/lib/commands/deployment/index.js +1 -1
  122. package/lib/commands/deployment/sync-all.js +1 -1
  123. package/lib/commands/deployment/sync-jobs.js +1 -1
  124. package/lib/commands/deployment/sync-status.js +1 -1
  125. package/lib/commands/doctor.js +1 -1
  126. package/lib/commands/file/index.js +1 -1
  127. package/lib/commands/flow/create.js +1 -1
  128. package/lib/commands/flow/detail.js +1 -1
  129. package/lib/commands/flow/index.js +1 -1
  130. package/lib/commands/flow/list.js +1 -1
  131. package/lib/commands/flow/page-list.js +1 -1
  132. package/lib/commands/flow/publish.js +1 -1
  133. package/lib/commands/flow/runtime-resources-shared.js +1 -1
  134. package/lib/commands/flow/runtime-role-list.js +1 -1
  135. package/lib/commands/flow/runtime-role-user-list.js +1 -1
  136. package/lib/commands/flow/runtime-user-search.js +1 -1
  137. package/lib/commands/flow/shared.js +1 -1
  138. package/lib/commands/flow/update.js +1 -1
  139. package/lib/commands/flow/validate.js +1 -1
  140. package/lib/commands/instant-api-policy/current.js +1 -1
  141. package/lib/commands/instant-api-policy/index.js +1 -1
  142. package/lib/commands/instant-api-policy/init.js +1 -1
  143. package/lib/commands/instant-api-policy/publish.js +1 -1
  144. package/lib/commands/instant-api-policy/pull.js +1 -1
  145. package/lib/commands/instant-api-policy/revision.js +1 -1
  146. package/lib/commands/instant-api-policy/revisions.js +1 -1
  147. package/lib/commands/instant-api-policy/rollback.js +1 -1
  148. package/lib/commands/instant-api-policy/shared.js +1 -1
  149. package/lib/commands/instant-api-policy/validate.js +1 -1
  150. package/lib/commands/issue/context.js +1 -1
  151. package/lib/commands/issue/index.js +1 -1
  152. package/lib/commands/issue/nudge.js +1 -1
  153. package/lib/commands/issue/report.js +1 -1
  154. package/lib/commands/kb/create.js +1 -1
  155. package/lib/commands/kb/delete.js +1 -1
  156. package/lib/commands/kb/detail.js +1 -1
  157. package/lib/commands/kb/index.js +1 -1
  158. package/lib/commands/kb/list.js +1 -1
  159. package/lib/commands/kb/search.js +1 -1
  160. package/lib/commands/kb/shared.js +1 -1
  161. package/lib/commands/kb/update.js +1 -1
  162. package/lib/commands/logs/index.js +1 -1
  163. package/lib/commands/menu/asset-update.js +1 -1
  164. package/lib/commands/menu/delete.js +1 -1
  165. package/lib/commands/menu/external-link-create.js +1 -1
  166. package/lib/commands/menu/external-link-update.js +1 -1
  167. package/lib/commands/menu/group-create.js +1 -1
  168. package/lib/commands/menu/group-update.js +1 -1
  169. package/lib/commands/menu/index.js +1 -1
  170. package/lib/commands/menu/list.js +1 -1
  171. package/lib/commands/menu/move.js +1 -1
  172. package/lib/commands/menu/regroup-start.js +1 -1
  173. package/lib/commands/menu/rename.js +1 -1
  174. package/lib/commands/menu/shared/compare-table.js +1 -1
  175. package/lib/commands/menu/shared/delete-plan.js +1 -1
  176. package/lib/commands/menu/shared/facts.js +1 -1
  177. package/lib/commands/menu/shared/index.js +1 -1
  178. package/lib/commands/menu/shared/inquirer.js +1 -1
  179. package/lib/commands/menu/shared/local-pages.js +1 -1
  180. package/lib/commands/menu/shared/logic.js +1 -1
  181. package/lib/commands/menu/shared/mutations.js +1 -1
  182. package/lib/commands/menu/shared/path.js +1 -1
  183. package/lib/commands/menu/shared/service.js +1 -1
  184. package/lib/commands/menu/shared/subapp-assets.js +1 -1
  185. package/lib/commands/menu/shared/sync-core.js +1 -1
  186. package/lib/commands/menu/shared/update-core.js +1 -1
  187. package/lib/commands/menu/shared/valid-url.js +1 -1
  188. package/lib/commands/menu/subapp-assets-status.js +1 -1
  189. package/lib/commands/menu/subapp-assets-update.js +1 -1
  190. package/lib/commands/menu/sync.js +1 -1
  191. package/lib/commands/menu/visibility-update.js +1 -1
  192. package/lib/commands/notification/config-create.js +1 -1
  193. package/lib/commands/notification/config-delete.js +1 -1
  194. package/lib/commands/notification/config-list.js +1 -1
  195. package/lib/commands/notification/config-update.js +1 -1
  196. package/lib/commands/notification/index.js +1 -1
  197. package/lib/commands/notification/shared.js +1 -1
  198. package/lib/commands/ocr/index.js +1 -1
  199. package/lib/commands/page/create.js +1 -1
  200. package/lib/commands/page/custom/detail.js +1 -1
  201. package/lib/commands/page/custom/list.js +1 -1
  202. package/lib/commands/page/custom/publish.js +1 -1
  203. package/lib/commands/page/custom/shared.js +1 -1
  204. package/lib/commands/page/custom/syntax.js +1 -1
  205. package/lib/commands/page/custom/update.js +1 -1
  206. package/lib/commands/page/data-list-status.js +1 -1
  207. package/lib/commands/page/generate-start.js +1 -1
  208. package/lib/commands/page/generate-status.js +1 -1
  209. package/lib/commands/page/index.js +1 -1
  210. package/lib/commands/page/pull.js +1 -1
  211. package/lib/commands/page/push.js +1 -1
  212. package/lib/commands/page/relation-audit.js +1 -1
  213. package/lib/commands/page/restore.js +1 -1
  214. package/lib/commands/page/shared.js +1 -1
  215. package/lib/commands/page/sync.js +1 -1
  216. package/lib/commands/project/api-architecture-upgrade.js +1 -1
  217. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  218. package/lib/commands/project/create/format-elapsed.js +1 -1
  219. package/lib/commands/project/create/main.js +1 -1
  220. package/lib/commands/project/create/materialize-project-template.js +1 -1
  221. package/lib/commands/project/create/project-name.js +1 -1
  222. package/lib/commands/project/create/project-template-archive.js +1 -1
  223. package/lib/commands/project/create/project-template-path.js +1 -1
  224. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  225. package/lib/commands/project/create/use-format-code.js +1 -1
  226. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  227. package/lib/commands/project/domain-routing-sync.js +1 -1
  228. package/lib/commands/project/index.js +1 -1
  229. package/lib/commands/project/upgrade.js +1 -1
  230. package/lib/commands/registry.js +1 -1
  231. package/lib/commands/role/delete.js +1 -1
  232. package/lib/commands/role/detail.js +1 -1
  233. package/lib/commands/role/index.js +1 -1
  234. package/lib/commands/role/list.js +1 -1
  235. package/lib/commands/role/shared.js +1 -1
  236. package/lib/commands/role/update.js +1 -1
  237. package/lib/commands/role/user-add.js +1 -1
  238. package/lib/commands/role/user-remove.js +1 -1
  239. package/lib/commands/role/user-resolve.js +1 -1
  240. package/lib/commands/rule/get.js +1 -1
  241. package/lib/commands/rule/index.js +1 -1
  242. package/lib/commands/rule/list.js +1 -1
  243. package/lib/commands/rule/set.js +1 -1
  244. package/lib/commands/rule/shared.js +1 -1
  245. package/lib/commands/run/index.js +1 -1
  246. package/lib/commands/schema.js +1 -1
  247. package/lib/commands/sql/create.js +1 -1
  248. package/lib/commands/sql/delete.js +1 -1
  249. package/lib/commands/sql/detail.js +1 -1
  250. package/lib/commands/sql/exec.js +1 -1
  251. package/lib/commands/sql/index.js +1 -1
  252. package/lib/commands/sql/list.js +1 -1
  253. package/lib/commands/sql/pull.js +1 -1
  254. package/lib/commands/sql/push.js +1 -1
  255. package/lib/commands/sql/shared.js +1 -1
  256. package/lib/commands/sql/status.js +1 -1
  257. package/lib/commands/sql/validate.js +1 -1
  258. package/lib/commands/task/index.js +1 -1
  259. package/lib/commands/task/status.js +1 -1
  260. package/lib/commands/tenant/index.js +1 -1
  261. package/lib/commands/tenant/members-list.js +1 -1
  262. package/lib/commands/tenant/shared.js +1 -1
  263. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  264. package/lib/commands/user-account/feishu-bind.js +1 -1
  265. package/lib/commands/user-account/index.js +1 -1
  266. package/lib/commands/workspace/add.js +1 -1
  267. package/lib/commands/workspace/index.js +1 -1
  268. package/lib/commands/workspace/remove.js +1 -1
  269. package/lib/config/domain-config.js +1 -1
  270. package/lib/config/project-domain-routing.js +1 -1
  271. package/lib/config/region-config.js +1 -1
  272. package/lib/config/schema.js +1 -1
  273. package/lib/constant/cdn.js +1 -1
  274. package/lib/constant/cli.js +1 -1
  275. package/lib/constant/defaults.js +1 -1
  276. package/lib/constant/domain.js +1 -1
  277. package/lib/constant/env.js +1 -1
  278. package/lib/constant/output.js +1 -1
  279. package/lib/constant/paths.js +1 -1
  280. package/lib/constant/region.js +1 -1
  281. package/lib/constant/risk.js +1 -1
  282. package/lib/constant/routing-profile.js +1 -1
  283. package/lib/context/app-resolver.js +1 -1
  284. package/lib/context/auth-resolver.js +1 -1
  285. package/lib/context/config-loader.js +1 -1
  286. package/lib/context.js +1 -1
  287. package/lib/core/alias-resolver.js +1 -1
  288. package/lib/core/api-client.js +1 -1
  289. package/lib/core/bff/config.js +1 -1
  290. package/lib/core/bff/file-system.js +1 -1
  291. package/lib/core/bff/hash.js +1 -1
  292. package/lib/core/bff/hook-directory.js +1 -1
  293. package/lib/core/bff/lock.js +1 -1
  294. package/lib/core/bff/utils.js +1 -1
  295. package/lib/core/cross-db-analysis.js +1 -1
  296. package/lib/core/cross-db-relation.js +1 -1
  297. package/lib/core/db-resolver.js +1 -1
  298. package/lib/core/flow-config.js +1 -1
  299. package/lib/core/instant-api-policy/config.js +1 -1
  300. package/lib/core/instant-api-policy/endpoints.js +1 -1
  301. package/lib/core/kb-management-client.js +1 -1
  302. package/lib/core/kb-search-client.js +1 -1
  303. package/lib/core/page/file-system.js +1 -1
  304. package/lib/core/page/hash.js +1 -1
  305. package/lib/core/page/lock.js +1 -1
  306. package/lib/core/page/lr-smart-jsx.js +1 -1
  307. package/lib/core/sql-index-auditor.js +1 -1
  308. package/lib/core/sql-sync/config.js +1 -1
  309. package/lib/core/sql-sync/file-system.js +1 -1
  310. package/lib/core/sql-sync/hash.js +1 -1
  311. package/lib/core/sql-sync/lock.js +1 -1
  312. package/lib/core/sql-sync/utils.js +1 -1
  313. package/lib/core/sql-validator.js +1 -1
  314. package/lib/errors.js +1 -1
  315. package/lib/framework/build-all-flags.js +1 -1
  316. package/lib/framework/error-output.js +1 -1
  317. package/lib/framework/explicit-yes.js +1 -1
  318. package/lib/framework/flags.js +1 -1
  319. package/lib/framework/help.js +1 -1
  320. package/lib/framework/index.js +1 -1
  321. package/lib/framework/output.js +1 -1
  322. package/lib/framework/response.js +1 -1
  323. package/lib/framework/runner-alias.js +1 -1
  324. package/lib/framework/runner.js +1 -1
  325. package/lib/framework/schema-export.js +1 -1
  326. package/lib/framework/supported-flags.js +1 -1
  327. package/lib/framework/types.js +1 -1
  328. package/lib/generated/build-info.d.ts +4 -4
  329. package/lib/generated/build-info.js +1 -1
  330. package/lib/generated/official-routing.js +1 -1
  331. package/lib/generated/routing-contract.js +1 -1
  332. package/lib/help.js +1 -1
  333. package/lib/postinstall.js +1 -1
  334. package/lib/runtime/confirmation.js +1 -1
  335. package/lib/runtime/event.js +1 -1
  336. package/lib/runtime/index.js +1 -1
  337. package/lib/runtime/queue.js +1 -1
  338. package/lib/runtime/resolve.js +1 -1
  339. package/lib/services/dataset-design/checkpoint.js +1 -1
  340. package/lib/services/dataset-design/commands.js +1 -1
  341. package/lib/services/dataset-design/contract.js +1 -1
  342. package/lib/skills/builtin-skill.js +1 -1
  343. package/lib/skills/main.js +1 -1
  344. package/lib/skills/npx-skills-add.js +1 -1
  345. package/lib/skills/skill-presence.js +1 -1
  346. package/lib/telemetry/cli-command-trace.js +1 -1
  347. package/lib/telemetry/cli-help-trace.js +1 -1
  348. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  349. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  350. package/lib/telemetry/send-cli-trace-log.js +1 -1
  351. package/lib/utils/ai_config.js +1 -1
  352. package/lib/utils/apply-jq-filter.js +1 -1
  353. package/lib/utils/cdn-config.js +1 -1
  354. package/lib/utils/check-sdk-version.js +1 -1
  355. package/lib/utils/cli-version-check.js +1 -1
  356. package/lib/utils/cli-version-policy.js +1 -1
  357. package/lib/utils/config.js +1 -1
  358. package/lib/utils/entity-with-id.js +1 -1
  359. package/lib/utils/file-utils.js +1 -1
  360. package/lib/utils/guides-cdn.js +1 -1
  361. package/lib/utils/http-client.js +1 -1
  362. package/lib/utils/is-non-interactive.js +1 -1
  363. package/lib/utils/logger.js +1 -1
  364. package/lib/utils/params.js +1 -1
  365. package/lib/utils/platform.js +1 -1
  366. package/lib/utils/sleep.js +1 -1
  367. package/lib/utils/template-replacer.js +1 -1
  368. package/lib/utils/update-notice.js +1 -1
  369. package/lib/utils/version.js +1 -1
  370. package/lib/utils/with-active-cookie.js +1 -1
  371. package/lib/utils/write-cli-side-channel.js +1 -1
  372. package/package.json +1 -1
  373. package/skills/rabetbase/SKILL.md +1 -1
  374. package/skills/rabetbase-dataset-generation/SKILL.md +1 -1
  375. package/skills/rabetbase-page-generation/SKILL.md +1 -1
  376. package/skills/rabetbase.manifest.json +3 -3
@@ -1 +1 @@
1
- (function(_0x15ca72,_0x4eaaa1){const _0x543316=a115_0x9e1a,_0x295e43=_0x15ca72();while(!![]){try{const _0x464855=-parseInt(_0x543316(0xe5))/0x1*(parseInt(_0x543316(0xe2))/0x2)+parseInt(_0x543316(0xee))/0x3*(parseInt(_0x543316(0xfb))/0x4)+-parseInt(_0x543316(0x106))/0x5+-parseInt(_0x543316(0xf9))/0x6*(-parseInt(_0x543316(0x100))/0x7)+parseInt(_0x543316(0xea))/0x8+parseInt(_0x543316(0x101))/0x9*(-parseInt(_0x543316(0xf0))/0xa)+parseInt(_0x543316(0x105))/0xb*(parseInt(_0x543316(0xf3))/0xc);if(_0x464855===_0x4eaaa1)break;else _0x295e43['push'](_0x295e43['shift']());}catch(_0x1fd751){_0x295e43['push'](_0x295e43['shift']());}}}(a115_0x2a5b,0x36991));import{testDbLinkConfigConnect}from'../../core/api-client.js';import{getAppBaseUrl}from'../../constant/domain.js';import{CliErrors}from'../../errors.js';function a115_0x9e1a(_0x472f56,_0x7246aa){_0x472f56=_0x472f56-0xe1;const _0x2a5b20=a115_0x2a5b();let _0x9e1a4=_0x2a5b20[_0x472f56];return _0x9e1a4;}function shouldRedactKey(_0x8e99e4){const _0x1f7bd1=a115_0x9e1a,_0x477625=_0x8e99e4[_0x1f7bd1(0xfe)]();if(_0x477625===_0x1f7bd1(0xeb)||_0x477625===_0x1f7bd1(0xe6)||_0x477625===_0x1f7bd1(0xf8))return!![];if(_0x477625[_0x1f7bd1(0xfc)](_0x1f7bd1(0xfd))||_0x477625['includes'](_0x1f7bd1(0x103))||_0x477625[_0x1f7bd1(0xfc)](_0x1f7bd1(0xf1)))return!![];if(_0x477625['includes'](_0x1f7bd1(0xf2))||_0x477625[_0x1f7bd1(0xfc)](_0x1f7bd1(0xf4)))return!![];if(_0x477625===_0x1f7bd1(0xe1)||_0x477625===_0x1f7bd1(0x104)||_0x477625===_0x1f7bd1(0xef))return!![];return![];}export function sanitizeDbLinkForOutput(_0x5784cb){const _0x550616=a115_0x9e1a,_0x4be46e={..._0x5784cb};delete _0x4be46e[_0x550616(0xf5)];for(const _0x2dee11 of Object['keys'](_0x4be46e)){if(!shouldRedactKey(_0x2dee11))continue;const _0x60ad58=_0x4be46e[_0x2dee11];_0x60ad58!=null&&String(_0x60ad58)[_0x550616(0xf6)]>0x0&&(_0x4be46e[_0x2dee11]='[redacted]');}return _0x4be46e;}export function sanitizeDbLinkList(_0x23a885){const _0xb0bc2a=a115_0x9e1a;return _0x23a885[_0xb0bc2a(0xe9)](_0x3c63a4=>sanitizeDbLinkForOutput(_0x3c63a4));}export function buildDbDatasetDependency(_0x3703e6,_0x387d1f){const _0x3a7cb3=a115_0x9e1a,_0x390736=_0x387d1f['filter'](_0x5b251f=>Number(_0x5b251f[_0x3a7cb3(0xec)]?.[_0x3a7cb3(0x102)])===Number(_0x3703e6['id']))[_0x3a7cb3(0xe9)](_0x17444b=>({'id':_0x17444b['id'],'code':_0x17444b[_0x3a7cb3(0xfa)],'name':_0x17444b['name'],..._0x17444b[_0x3a7cb3(0xec)]?.['tableName']?{'tableName':_0x17444b[_0x3a7cb3(0xec)][_0x3a7cb3(0xff)]}:{}}));return{'datasetDependency':{'hasDependencies':_0x390736[_0x3a7cb3(0xf6)]>0x0,'activeDatasetCount':_0x390736[_0x3a7cb3(0xf6)]},'datasets':_0x390736};}export async function assertDbLinkConnectionPreflight(_0x178706){const _0x2f8094=a115_0x9e1a,_0xd4c3fa=await testDbLinkConfigConnect(_0x178706);if(_0xd4c3fa!==!![])throw CliErrors['apiError'](_0x2f8094(0xe4),_0x2f8094(0xe7));}const DB_URL_PATTERN=/^[^\s:]+(?::\d+)?$/;export function validateDbUrl(_0x10d8bc){const _0xe4d020=a115_0x9e1a,_0x35edd8=_0x10d8bc[_0xe4d020(0xe3)]();if(!_0x35edd8)return![];return DB_URL_PATTERN['test'](_0x35edd8);}function a115_0x2a5b(){const _0x5da36e=['hasAvailableDo','length','/data/er?dbId=','dbpassword','462QZlvOS','code','8wUoAam','includes','secret','toLowerCase','tableName','973YMBQTw','9MHUtPn','dbId','token','connectionstring','44cIJUZj','1735975QRVHlH','authorization','285682JLFXff','trim','Database\x20connection\x20preflight\x20failed.','2vvIYwU','passwd','The\x20configuration\x20was\x20not\x20saved.\x20Verify\x20the\x20host,\x20credentials,\x20database\x20name,\x20network,\x20and\x20allowlist,\x20or\x20explicitly\x20pass\x20--skip-connection-test.','isFinite','map','1713008NtmQTa','password','dbtableConfig','number','197130PkMrWa','jdbcurl','4378950CWBWFE','credential','privatekey','2814468EOPkLM','accesskey'];a115_0x2a5b=function(){return _0x5da36e;};return a115_0x2a5b();}export function buildDbPageLinks(_0x465188,_0xedfe0b){const _0x27449e=a115_0x9e1a,_0x1b1a5b=_0x465188?.[_0x27449e(0xe3)]();if(!_0x1b1a5b)return undefined;const _0x2a8b34=typeof _0xedfe0b===_0x27449e(0xed)?String(_0xedfe0b):String(_0xedfe0b??'')[_0x27449e(0xe3)]();if(!_0x2a8b34)return undefined;const _0xb5b19c=Number(_0x2a8b34);if(!Number[_0x27449e(0xe8)](_0xb5b19c)||_0xb5b19c<=0x0)return undefined;const _0x11ce86=getAppBaseUrl(_0x1b1a5b),_0x26bf43=encodeURIComponent(String(_0xb5b19c));return{'databasePage':_0x11ce86+'/data/database','erPage':_0x11ce86+_0x27449e(0xf7)+_0x26bf43};}
1
+ (function(_0xf41cb8,_0x2dbd74){const _0x4c8f64=a115_0x1036,_0x9e86a5=_0xf41cb8();while(!![]){try{const _0x22f04b=-parseInt(_0x4c8f64(0x18b))/0x1*(-parseInt(_0x4c8f64(0x171))/0x2)+parseInt(_0x4c8f64(0x175))/0x3+-parseInt(_0x4c8f64(0x16e))/0x4*(parseInt(_0x4c8f64(0x172))/0x5)+-parseInt(_0x4c8f64(0x17d))/0x6+-parseInt(_0x4c8f64(0x183))/0x7+parseInt(_0x4c8f64(0x185))/0x8+parseInt(_0x4c8f64(0x182))/0x9*(parseInt(_0x4c8f64(0x18c))/0xa);if(_0x22f04b===_0x2dbd74)break;else _0x9e86a5['push'](_0x9e86a5['shift']());}catch(_0x1f89de){_0x9e86a5['push'](_0x9e86a5['shift']());}}}(a115_0x4728,0x981b6));import{testDbLinkConfigConnect}from'../../core/api-client.js';import{getAppBaseUrl}from'../../constant/domain.js';function a115_0x4728(){const _0x214f85=['number','4VyYNob','includes','apiError','338YdcTje','412565rqBiJw','[redacted]','trim','2884338azdhAf','accesskey','/data/database','name','dbtableConfig','tableName','test','passwd','4811148Ahbinx','hasAvailableDo','map','dbpassword','code','3897cdWIGj','6462876LmOZFC','password','9924640UUpWwW','toLowerCase','privatekey','/data/er?dbId=','connectionstring','filter','346hltLdc','3930ltglEf','secret','keys','dbId'];a115_0x4728=function(){return _0x214f85;};return a115_0x4728();}import{CliErrors}from'../../errors.js';function a115_0x1036(_0x271fe3,_0x4ecfab){_0x271fe3=_0x271fe3-0x16e;const _0x4728d3=a115_0x4728();let _0x1036fc=_0x4728d3[_0x271fe3];return _0x1036fc;}function shouldRedactKey(_0x10f12d){const _0x320e67=a115_0x1036,_0x50a950=_0x10f12d[_0x320e67(0x186)]();if(_0x50a950===_0x320e67(0x184)||_0x50a950===_0x320e67(0x17c)||_0x50a950===_0x320e67(0x180))return!![];if(_0x50a950[_0x320e67(0x16f)](_0x320e67(0x18d))||_0x50a950['includes']('token')||_0x50a950[_0x320e67(0x16f)]('credential'))return!![];if(_0x50a950['includes'](_0x320e67(0x187))||_0x50a950[_0x320e67(0x16f)](_0x320e67(0x176)))return!![];if(_0x50a950==='authorization'||_0x50a950===_0x320e67(0x189)||_0x50a950==='jdbcurl')return!![];return![];}export function sanitizeDbLinkForOutput(_0x376e2d){const _0x301edc=a115_0x1036,_0x1f5df4={..._0x376e2d};delete _0x1f5df4[_0x301edc(0x17e)];for(const _0x204b14 of Object[_0x301edc(0x18e)](_0x1f5df4)){if(!shouldRedactKey(_0x204b14))continue;const _0x576aea=_0x1f5df4[_0x204b14];_0x576aea!=null&&String(_0x576aea)['length']>0x0&&(_0x1f5df4[_0x204b14]=_0x301edc(0x173));}return _0x1f5df4;}export function sanitizeDbLinkList(_0x5a9eca){const _0x5b0df7=a115_0x1036;return _0x5a9eca[_0x5b0df7(0x17f)](_0x385680=>sanitizeDbLinkForOutput(_0x385680));}export function buildDbDatasetDependency(_0x2a64ae,_0x286a27){const _0x5014d3=a115_0x1036,_0x130fc5=_0x286a27[_0x5014d3(0x18a)](_0x335b66=>Number(_0x335b66[_0x5014d3(0x179)]?.[_0x5014d3(0x18f)])===Number(_0x2a64ae['id']))[_0x5014d3(0x17f)](_0x546758=>({'id':_0x546758['id'],'code':_0x546758[_0x5014d3(0x181)],'name':_0x546758[_0x5014d3(0x178)],..._0x546758[_0x5014d3(0x179)]?.[_0x5014d3(0x17a)]?{'tableName':_0x546758[_0x5014d3(0x179)][_0x5014d3(0x17a)]}:{}}));return{'datasetDependency':{'hasDependencies':_0x130fc5['length']>0x0,'activeDatasetCount':_0x130fc5['length']},'datasets':_0x130fc5};}export async function assertDbLinkConnectionPreflight(_0x29830e){const _0x3c3f01=a115_0x1036,_0x450731=await testDbLinkConfigConnect(_0x29830e);if(_0x450731!==!![])throw CliErrors[_0x3c3f01(0x170)]('Database\x20connection\x20preflight\x20failed.','The\x20configuration\x20was\x20not\x20saved.\x20Verify\x20the\x20host,\x20credentials,\x20database\x20name,\x20network,\x20and\x20allowlist,\x20or\x20explicitly\x20pass\x20--skip-connection-test.');}const DB_URL_PATTERN=/^[^\s:]+(?::\d+)?$/;export function validateDbUrl(_0x331958){const _0x11c573=a115_0x1036,_0x462130=_0x331958[_0x11c573(0x174)]();if(!_0x462130)return![];return DB_URL_PATTERN[_0x11c573(0x17b)](_0x462130);}export function buildDbPageLinks(_0x20caab,_0x4dee88){const _0x19e29d=a115_0x1036,_0x59fe43=_0x20caab?.[_0x19e29d(0x174)]();if(!_0x59fe43)return undefined;const _0x433b9b=typeof _0x4dee88===_0x19e29d(0x190)?String(_0x4dee88):String(_0x4dee88??'')[_0x19e29d(0x174)]();if(!_0x433b9b)return undefined;const _0x1ff393=Number(_0x433b9b);if(!Number['isFinite'](_0x1ff393)||_0x1ff393<=0x0)return undefined;const _0x3eae30=getAppBaseUrl(_0x59fe43),_0x58ded7=encodeURIComponent(String(_0x1ff393));return{'databasePage':_0x3eae30+_0x19e29d(0x177),'erPage':_0x3eae30+_0x19e29d(0x188)+_0x58ded7};}
@@ -1 +1 @@
1
- const a116_0xbc17a1=a116_0x64cf;function a116_0x64cf(_0x44d648,_0x1b94ab){_0x44d648=_0x44d648-0x1a0;const _0x2b4297=a116_0x2b42();let _0x64cf37=_0x2b4297[_0x44d648];return _0x64cf37;}function a116_0x2b42(){const _0x2a255f=['set','325428BVNxVX','\x20row(s).','2668911ZWCziO','length','fromEntries','summary','physicalTableCount','DELETED_TABLE','\x20of\x20','number','totalCount','5394000CwtGSS','validation','NEW_TABLE','tableName','MODIFIED_TABLE','datasetTableCount','49428DrPHkb','size','values','2155812WPrUut','map','182285fXYWMH','48FJvanf','17065AkMnlx','filter','tableList','ALREADY_ANALYZED'];a116_0x2b42=function(){return _0x2a255f;};return a116_0x2b42();}(function(_0x5737cc,_0x5c23b7){const _0x1439c0=a116_0x64cf,_0x41447f=_0x5737cc();while(!![]){try{const _0x2174bd=-parseInt(_0x1439c0(0x1ab))/0x1+parseInt(_0x1439c0(0x1aa))/0x2*(parseInt(_0x1439c0(0x1a4))/0x3)+parseInt(_0x1439c0(0x1b0))/0x4+-parseInt(_0x1439c0(0x1a9))/0x5+-parseInt(_0x1439c0(0x1a7))/0x6+-parseInt(_0x1439c0(0x1b2))/0x7+parseInt(_0x1439c0(0x1bb))/0x8;if(_0x2174bd===_0x5c23b7)break;else _0x41447f['push'](_0x41447f['shift']());}catch(_0x14c9ee){_0x41447f['push'](_0x41447f['shift']());}}}(a116_0x2b42,0x57246));import{CliErrors}from'../../errors.js';export const DB_TABLE_PAGE_SIZE=0x64;export const DB_TABLE_DIFF_TYPES=[a116_0xbc17a1(0x1a0),a116_0xbc17a1(0x1a2),a116_0xbc17a1(0x1b7),a116_0xbc17a1(0x1ae)];export function summarizeDbTableDiff(_0x208424){const _0x55df2c=a116_0xbc17a1;return Object[_0x55df2c(0x1b4)](DB_TABLE_DIFF_TYPES[_0x55df2c(0x1a8)](_0x2597b1=>[_0x2597b1,_0x208424[_0x55df2c(0x1ac)](_0x5e35cf=>_0x5e35cf['diffType']===_0x2597b1)[_0x55df2c(0x1b3)]]));}export async function getAllDbTableDiff(_0x5d67a5,_0x5c7006,_0x5aee56,_0x469763){const _0x28c972=a116_0xbc17a1,_0x12aa81=new Map();let _0x1ea17f=0x1,_0x16d6e1=null;while(!![]){_0x16d6e1=await _0x5d67a5(_0x5c7006,_0x5aee56,{'pageIndex':_0x1ea17f,'pageSize':DB_TABLE_PAGE_SIZE,'tableName':_0x469763});const _0x32adf3=_0x12aa81[_0x28c972(0x1a5)];for(const _0x46805f of _0x16d6e1['tableList']){_0x12aa81[_0x28c972(0x1af)](_0x46805f[_0x28c972(0x1a1)],_0x46805f);}if(_0x12aa81[_0x28c972(0x1a5)]>=_0x16d6e1['totalCount'])break;if(_0x16d6e1[_0x28c972(0x1ad)][_0x28c972(0x1b3)]===0x0||_0x12aa81[_0x28c972(0x1a5)]===_0x32adf3)throw CliErrors[_0x28c972(0x1bc)]('Incomplete\x20db\x20table\x20pagination:\x20collected\x20'+_0x12aa81['size']+_0x28c972(0x1b8)+_0x16d6e1[_0x28c972(0x1ba)]+_0x28c972(0x1b1));_0x1ea17f+=0x1;}return{'totalCount':_0x16d6e1?.[_0x28c972(0x1ba)]??0x0,...typeof _0x16d6e1?.['physicalTableCount']===_0x28c972(0x1b9)?{'physicalTableCount':_0x16d6e1[_0x28c972(0x1b6)]}:{},...typeof _0x16d6e1?.[_0x28c972(0x1a3)]===_0x28c972(0x1b9)?{'datasetTableCount':_0x16d6e1[_0x28c972(0x1a3)]}:{},..._0x16d6e1?.['summary']?{'summary':_0x16d6e1[_0x28c972(0x1b5)]}:{},'tableList':[..._0x12aa81[_0x28c972(0x1a6)]()]};}
1
+ const a116_0x38e25c=a116_0x59bc;(function(_0x236338,_0x40566c){const _0x6f7a12=a116_0x59bc,_0xe02118=_0x236338();while(!![]){try{const _0xb45beb=parseInt(_0x6f7a12(0xba))/0x1*(-parseInt(_0x6f7a12(0xd0))/0x2)+parseInt(_0x6f7a12(0xce))/0x3*(parseInt(_0x6f7a12(0xcc))/0x4)+-parseInt(_0x6f7a12(0xbe))/0x5*(-parseInt(_0x6f7a12(0xb9))/0x6)+-parseInt(_0x6f7a12(0xc3))/0x7*(parseInt(_0x6f7a12(0xc6))/0x8)+-parseInt(_0x6f7a12(0xc1))/0x9+parseInt(_0x6f7a12(0xca))/0xa+-parseInt(_0x6f7a12(0xb8))/0xb*(-parseInt(_0x6f7a12(0xcf))/0xc);if(_0xb45beb===_0x40566c)break;else _0xe02118['push'](_0xe02118['shift']());}catch(_0x4a2270){_0xe02118['push'](_0xe02118['shift']());}}}(a116_0x1b69,0xa6d14));import{CliErrors}from'../../errors.js';export const DB_TABLE_PAGE_SIZE=0x64;function a116_0x59bc(_0x3b5a18,_0x1ca05e){_0x3b5a18=_0x3b5a18-0xb6;const _0x1b69f0=a116_0x1b69();let _0x59bc91=_0x1b69f0[_0x3b5a18];return _0x59bc91;}export const DB_TABLE_DIFF_TYPES=['NEW_TABLE',a116_0x38e25c(0xc2),a116_0x38e25c(0xc8),'ALREADY_ANALYZED'];export function summarizeDbTableDiff(_0x6dd900){const _0x51d294=a116_0x38e25c;return Object[_0x51d294(0xbd)](DB_TABLE_DIFF_TYPES[_0x51d294(0xc0)](_0x47857b=>[_0x47857b,_0x6dd900[_0x51d294(0xbb)](_0x2536e9=>_0x2536e9['diffType']===_0x47857b)['length']]));}function a116_0x1b69(){const _0x2dea25=['179156YXfECs','filter','physicalTableCount','fromEntries','239515IKZQVZ','set','map','7728273MzSBNP','MODIFIED_TABLE','42tSCjRM','summary','Incomplete\x20db\x20table\x20pagination:\x20collected\x20','360184bBPuey','datasetTableCount','DELETED_TABLE','values','6146990TFtASs','tableList','34472VOIrnm','size','276hyNGza','156aTPZjR','8wTRTwM','totalCount','length','746031kpUDEr','30KSNdbJ'];a116_0x1b69=function(){return _0x2dea25;};return a116_0x1b69();}export async function getAllDbTableDiff(_0x1f0fbf,_0x121ec5,_0x2a4862,_0x3da167){const _0xca2dc4=a116_0x38e25c,_0x4ff00e=new Map();let _0x1a1690=0x1,_0x38f168=null;while(!![]){_0x38f168=await _0x1f0fbf(_0x121ec5,_0x2a4862,{'pageIndex':_0x1a1690,'pageSize':DB_TABLE_PAGE_SIZE,'tableName':_0x3da167});const _0x3b2872=_0x4ff00e[_0xca2dc4(0xcd)];for(const _0x5e99c3 of _0x38f168[_0xca2dc4(0xcb)]){_0x4ff00e[_0xca2dc4(0xbf)](_0x5e99c3['tableName'],_0x5e99c3);}if(_0x4ff00e[_0xca2dc4(0xcd)]>=_0x38f168[_0xca2dc4(0xb6)])break;if(_0x38f168['tableList'][_0xca2dc4(0xb7)]===0x0||_0x4ff00e[_0xca2dc4(0xcd)]===_0x3b2872)throw CliErrors['validation'](_0xca2dc4(0xc5)+_0x4ff00e['size']+'\x20of\x20'+_0x38f168[_0xca2dc4(0xb6)]+'\x20row(s).');_0x1a1690+=0x1;}return{'totalCount':_0x38f168?.[_0xca2dc4(0xb6)]??0x0,...typeof _0x38f168?.['physicalTableCount']==='number'?{'physicalTableCount':_0x38f168[_0xca2dc4(0xbc)]}:{},...typeof _0x38f168?.['datasetTableCount']==='number'?{'datasetTableCount':_0x38f168[_0xca2dc4(0xc7)]}:{},..._0x38f168?.[_0xca2dc4(0xc4)]?{'summary':_0x38f168[_0xca2dc4(0xc4)]}:{},'tableList':[..._0x4ff00e[_0xca2dc4(0xc9)]()]};}
@@ -1 +1 @@
1
- const a117_0x3986dc=a117_0x254f;(function(_0x564496,_0x45351a){const _0x438650=a117_0x254f,_0x5e0f96=_0x564496();while(!![]){try{const _0x526001=parseInt(_0x438650(0x202))/0x1*(-parseInt(_0x438650(0x1eb))/0x2)+-parseInt(_0x438650(0x1fc))/0x3+-parseInt(_0x438650(0x1ef))/0x4*(parseInt(_0x438650(0x1fd))/0x5)+-parseInt(_0x438650(0x201))/0x6+-parseInt(_0x438650(0x1fe))/0x7*(-parseInt(_0x438650(0x1ed))/0x8)+-parseInt(_0x438650(0x1f5))/0x9*(parseInt(_0x438650(0x1f6))/0xa)+parseInt(_0x438650(0x203))/0xb;if(_0x526001===_0x45351a)break;else _0x5e0f96['push'](_0x5e0f96['shift']());}catch(_0x1c6553){_0x5e0f96['push'](_0x5e0f96['shift']());}}}(a117_0x5083,0x7bbbb));import{getDbTableComparisonPage}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{getAllDbTableDiff,summarizeDbTableDiff}from'../../commands/db/table-diff-shared.js';export const dbTables={'service':'db','command':a117_0x3986dc(0x1ee),'description':'List\x20all\x20database\x20table\x20comparison\x20rows\x20and\x20analysis\x20states','risk':'read','flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a117_0x3986dc(0x1ec),'type':a117_0x3986dc(0x1f4),'description':'Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)'}],async 'execute'(_0x2530e1){const _0x5b1c5f=a117_0x3986dc,_0x3bf71e=_0x2530e1[_0x5b1c5f(0x1f1)]('id'),_0x2ef398=_0x2530e1[_0x5b1c5f(0x1f7)](_0x5b1c5f(0x1ec))||undefined,_0x2ee675=await getAllDbTableDiff(getDbTableComparisonPage,_0x2530e1[_0x5b1c5f(0x1f3)],_0x3bf71e,_0x2ef398),_0x3cc528=_0x2ee675[_0x5b1c5f(0x1f9)];return{'ok':!![],'data':{'dbLinkId':_0x3bf71e,'totalCount':_0x2ee675['totalCount'],...typeof _0x2ee675[_0x5b1c5f(0x1ff)]===_0x5b1c5f(0x1fb)?{'physicalTableCount':_0x2ee675[_0x5b1c5f(0x1ff)]}:{},...typeof _0x2ee675[_0x5b1c5f(0x1fa)]===_0x5b1c5f(0x1fb)?{'datasetTableCount':_0x2ee675[_0x5b1c5f(0x1fa)]}:{},..._0x2ee675[_0x5b1c5f(0x1f2)]?{'summary':_0x2ee675[_0x5b1c5f(0x1f2)]}:{},'summaryByType':summarizeDbTableDiff(_0x3cc528),'tables':_0x3cc528},'message':_0x3cc528[_0x5b1c5f(0x200)]+'\x20table\x20comparison\x20row(s),\x20total\x20'+_0x2ee675[_0x5b1c5f(0x1f0)]+_0x5b1c5f(0x1f8)+_0x3bf71e+')'};}};function a117_0x254f(_0x492177,_0x23a69b){_0x492177=_0x492177-0x1eb;const _0x5083da=a117_0x5083();let _0x254fc7=_0x5083da[_0x492177];return _0x254fc7;}function a117_0x5083(){const _0x25d2a2=['1202360DvvYpu','tables','1321596afxwcF','totalCount','num','summary','appCode','string','811548Dogqvd','70HPnGUr','str','\x20(db\x20link\x20','tableList','datasetTableCount','number','124521AHBssy','15bIYlBO','35CEMgPR','physicalTableCount','length','2035794FUcPzR','404XrTbAM','20441641EDqASl','494cvRVXB','table'];a117_0x5083=function(){return _0x25d2a2;};return a117_0x5083();}
1
+ const a117_0x1adb5b=a117_0x3f7f;(function(_0x11e55f,_0x35220f){const _0x44a554=a117_0x3f7f,_0x23366e=_0x11e55f();while(!![]){try{const _0x1b4c3d=parseInt(_0x44a554(0x159))/0x1+parseInt(_0x44a554(0x15d))/0x2+parseInt(_0x44a554(0x151))/0x3*(-parseInt(_0x44a554(0x150))/0x4)+parseInt(_0x44a554(0x157))/0x5*(parseInt(_0x44a554(0x15c))/0x6)+parseInt(_0x44a554(0x14a))/0x7*(-parseInt(_0x44a554(0x14d))/0x8)+parseInt(_0x44a554(0x15e))/0x9*(-parseInt(_0x44a554(0x146))/0xa)+-parseInt(_0x44a554(0x148))/0xb*(-parseInt(_0x44a554(0x154))/0xc);if(_0x1b4c3d===_0x35220f)break;else _0x23366e['push'](_0x23366e['shift']());}catch(_0x3402ab){_0x23366e['push'](_0x23366e['shift']());}}}(a117_0x3a2c,0x92f03));import{getDbTableComparisonPage}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{getAllDbTableDiff,summarizeDbTableDiff}from'../../commands/db/table-diff-shared.js';function a117_0x3f7f(_0x434cb8,_0x241b1f){_0x434cb8=_0x434cb8-0x144;const _0x3a2c81=a117_0x3a2c();let _0x3f7f4c=_0x3a2c81[_0x434cb8];return _0x3f7f4c;}function a117_0x3a2c(){const _0x3b9f31=['datasetTableCount','30092bERrvV','438ZbNinU','physicalTableCount','length','36TLwoxz','tableList','string','299855RLuWHH','read','23927dVQXXQ','table','str','60VkJetI','314556frlDri','397422srSvtl','\x20(db\x20link\x20','tables','Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)','210jxasTQ','num','6876991UXtoyv','totalCount','21RDJbug','\x20table\x20comparison\x20row(s),\x20total\x20','number','77128jjZnup','summary'];a117_0x3a2c=function(){return _0x3b9f31;};return a117_0x3a2c();}export const dbTables={'service':'db','command':a117_0x1adb5b(0x144),'description':'List\x20all\x20database\x20table\x20comparison\x20rows\x20and\x20analysis\x20states','risk':a117_0x1adb5b(0x158),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a117_0x1adb5b(0x15a),'type':a117_0x1adb5b(0x156),'description':a117_0x1adb5b(0x145)}],async 'execute'(_0x3190e3){const _0x1e93ab=a117_0x1adb5b,_0x181294=_0x3190e3[_0x1e93ab(0x147)]('id'),_0x123cdd=_0x3190e3[_0x1e93ab(0x15b)](_0x1e93ab(0x15a))||undefined,_0x45166f=await getAllDbTableDiff(getDbTableComparisonPage,_0x3190e3['appCode'],_0x181294,_0x123cdd),_0x3a7512=_0x45166f[_0x1e93ab(0x155)];return{'ok':!![],'data':{'dbLinkId':_0x181294,'totalCount':_0x45166f[_0x1e93ab(0x149)],...typeof _0x45166f[_0x1e93ab(0x152)]===_0x1e93ab(0x14c)?{'physicalTableCount':_0x45166f[_0x1e93ab(0x152)]}:{},...typeof _0x45166f[_0x1e93ab(0x14f)]===_0x1e93ab(0x14c)?{'datasetTableCount':_0x45166f[_0x1e93ab(0x14f)]}:{},..._0x45166f[_0x1e93ab(0x14e)]?{'summary':_0x45166f[_0x1e93ab(0x14e)]}:{},'summaryByType':summarizeDbTableDiff(_0x3a7512),'tables':_0x3a7512},'message':_0x3a7512[_0x1e93ab(0x153)]+_0x1e93ab(0x14b)+_0x45166f[_0x1e93ab(0x149)]+_0x1e93ab(0x15f)+_0x181294+')'};}};
@@ -1 +1 @@
1
- const a118_0x18305c=a118_0x3e1a;(function(_0x377b34,_0x3cdab3){const _0x2c877b=a118_0x3e1a,_0x4886b7=_0x377b34();while(!![]){try{const _0x309af0=-parseInt(_0x2c877b(0xce))/0x1+-parseInt(_0x2c877b(0xcd))/0x2*(parseInt(_0x2c877b(0xdc))/0x3)+parseInt(_0x2c877b(0xd4))/0x4*(parseInt(_0x2c877b(0xdb))/0x5)+parseInt(_0x2c877b(0xd1))/0x6*(-parseInt(_0x2c877b(0xdd))/0x7)+-parseInt(_0x2c877b(0xe0))/0x8+parseInt(_0x2c877b(0xe2))/0x9+parseInt(_0x2c877b(0xd7))/0xa;if(_0x309af0===_0x3cdab3)break;else _0x4886b7['push'](_0x4886b7['shift']());}catch(_0x4fdda1){_0x4886b7['push'](_0x4886b7['shift']());}}}(a118_0x3b5e,0x316fb));import{testDbLinkConnect}from'../../core/api-client.js';function a118_0x3e1a(_0x4380aa,_0x5ec141){_0x4380aa=_0x4380aa-0xcd;const _0x3b5efa=a118_0x3b5e();let _0x3e1a0b=_0x3b5efa[_0x4380aa];return _0x3e1a0b;}function a118_0x3b5e(){const _0x4529f7=['196mFFCjP','length','read','3254760FNssbU','\x20(see\x20data.result)','Connection\x20OK\x20for\x20db\x20link\x20','num','38635FeyTEL','767931kLmbjO','46172rylNWH','slice','msg','1871824bcITla','code','1689984CMVfuP','2eyJbah','113681wJIJJl','keys','error','78hhsAhr','object','success'];a118_0x3b5e=function(){return _0x4529f7;};return a118_0x3b5e();}import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function summarizeTestConnectResult(_0x310c9){const _0x4ac846=a118_0x3e1a;if(_0x310c9===!![]||_0x310c9===![])return{'success':_0x310c9};if(_0x310c9===null||_0x310c9===undefined)return{'type':typeof _0x310c9};if(typeof _0x310c9!==_0x4ac846(0xd2))return{'type':typeof _0x310c9};const _0x506d57=_0x310c9,_0x2ee5ab=[_0x4ac846(0xd3),'message',_0x4ac846(0xe1),_0x4ac846(0xd0),_0x4ac846(0xdf),'data'],_0x5aeadf={};for(const _0x36615d of _0x2ee5ab){if(_0x36615d in _0x506d57)_0x5aeadf[_0x36615d]=_0x506d57[_0x36615d];}return Object[_0x4ac846(0xcf)](_0x5aeadf)[_0x4ac846(0xd5)]===0x0&&(_0x5aeadf[_0x4ac846(0xcf)]=Object[_0x4ac846(0xcf)](_0x506d57)[_0x4ac846(0xde)](0x0,0x14)),_0x5aeadf;}export const dbTest={'service':'db','command':'test','description':'Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)','risk':a118_0x18305c(0xd6),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x14a154){const _0x37f5a0=a118_0x18305c,_0x43156a=_0x14a154[_0x37f5a0(0xda)]('id'),_0x59ffdb=await testDbLinkConnect(_0x43156a),_0x10b2a5=_0x59ffdb===!![]||typeof _0x59ffdb===_0x37f5a0(0xd2)&&_0x59ffdb!==null&&_0x59ffdb['success']===!![],_0x18592d=summarizeTestConnectResult(_0x59ffdb);return{'ok':!![],'data':{'id':_0x43156a,'connected':Boolean(_0x10b2a5),'result':_0x18592d},'message':_0x10b2a5?_0x37f5a0(0xd9)+_0x43156a:'Connection\x20check\x20finished\x20for\x20db\x20link\x20'+_0x43156a+_0x37f5a0(0xd8)};}};
1
+ const a118_0x3b9ac5=a118_0xc61a;(function(_0x67fc60,_0x40a46e){const _0xd6ee82=a118_0xc61a,_0x41e823=_0x67fc60();while(!![]){try{const _0x5b0d03=-parseInt(_0xd6ee82(0xfb))/0x1*(-parseInt(_0xd6ee82(0x101))/0x2)+parseInt(_0xd6ee82(0xf8))/0x3*(parseInt(_0xd6ee82(0x109))/0x4)+-parseInt(_0xd6ee82(0xf7))/0x5*(parseInt(_0xd6ee82(0x10e))/0x6)+parseInt(_0xd6ee82(0x103))/0x7*(-parseInt(_0xd6ee82(0xff))/0x8)+-parseInt(_0xd6ee82(0xfe))/0x9+parseInt(_0xd6ee82(0x10a))/0xa*(parseInt(_0xd6ee82(0x10d))/0xb)+-parseInt(_0xd6ee82(0xf9))/0xc;if(_0x5b0d03===_0x40a46e)break;else _0x41e823['push'](_0x41e823['shift']());}catch(_0x11e704){_0x41e823['push'](_0x41e823['shift']());}}}(a118_0x53dc,0xcbd7e));import{testDbLinkConnect}from'../../core/api-client.js';function a118_0xc61a(_0x49b372,_0x164b60){_0x49b372=_0x49b372-0xf5;const _0x53dced=a118_0x53dc();let _0xc61a8f=_0x53dced[_0x49b372];return _0xc61a8f;}import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function summarizeTestConnectResult(_0x374ad1){const _0x3a81f4=a118_0xc61a;if(_0x374ad1===!![]||_0x374ad1===![])return{'success':_0x374ad1};if(_0x374ad1===null||_0x374ad1===undefined)return{'type':typeof _0x374ad1};if(typeof _0x374ad1!=='object')return{'type':typeof _0x374ad1};const _0x80d18d=_0x374ad1,_0x30059f=[_0x3a81f4(0xf6),_0x3a81f4(0x10b),_0x3a81f4(0x100),_0x3a81f4(0x108),_0x3a81f4(0x105),'data'],_0x2885b1={};for(const _0x25e280 of _0x30059f){if(_0x25e280 in _0x80d18d)_0x2885b1[_0x25e280]=_0x80d18d[_0x25e280];}return Object[_0x3a81f4(0xf5)](_0x2885b1)[_0x3a81f4(0xfa)]===0x0&&(_0x2885b1[_0x3a81f4(0xf5)]=Object[_0x3a81f4(0xf5)](_0x80d18d)[_0x3a81f4(0x104)](0x0,0x14)),_0x2885b1;}export const dbTest={'service':'db','command':'test','description':a118_0x3b9ac5(0x106),'risk':a118_0x3b9ac5(0x10c),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x616e4f){const _0x3d3276=a118_0x3b9ac5,_0x3cc4c5=_0x616e4f['num']('id'),_0x5cc019=await testDbLinkConnect(_0x3cc4c5),_0xba56d8=_0x5cc019===!![]||typeof _0x5cc019===_0x3d3276(0x102)&&_0x5cc019!==null&&_0x5cc019['success']===!![],_0x4dbf7d=summarizeTestConnectResult(_0x5cc019);return{'ok':!![],'data':{'id':_0x3cc4c5,'connected':Boolean(_0xba56d8),'result':_0x4dbf7d},'message':_0xba56d8?_0x3d3276(0xfc)+_0x3cc4c5:_0x3d3276(0x107)+_0x3cc4c5+_0x3d3276(0xfd)};}};function a118_0x53dc(){const _0x2cb676=['Connection\x20check\x20finished\x20for\x20db\x20link\x20','error','68esIgiv','1081340KWPXgc','message','read','88NdliyF','17904wnSJQW','keys','success','35pWwLuG','26382SKHyVU','2709780yjmtkd','length','1fftUfx','Connection\x20OK\x20for\x20db\x20link\x20','\x20(see\x20data.result)','4889034hkBdBh','8rPoGev','code','2694494dELuRK','object','5158622HnlzEE','slice','msg','Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)'];a118_0x53dc=function(){return _0x2cb676;};return a118_0x53dc();}
@@ -1 +1 @@
1
- const a119_0x4a4fdd=a119_0x40ce;(function(_0x11a07f,_0x32ecbc){const _0x3b8f48=a119_0x40ce,_0x14db19=_0x11a07f();while(!![]){try{const _0x2cc2d4=parseInt(_0x3b8f48(0xb8))/0x1*(-parseInt(_0x3b8f48(0xac))/0x2)+parseInt(_0x3b8f48(0xba))/0x3*(-parseInt(_0x3b8f48(0xb6))/0x4)+parseInt(_0x3b8f48(0xaf))/0x5+-parseInt(_0x3b8f48(0xc2))/0x6*(parseInt(_0x3b8f48(0xb0))/0x7)+-parseInt(_0x3b8f48(0xae))/0x8*(parseInt(_0x3b8f48(0xc1))/0x9)+-parseInt(_0x3b8f48(0xb3))/0xa+parseInt(_0x3b8f48(0xa8))/0xb*(parseInt(_0x3b8f48(0xb4))/0xc);if(_0x2cc2d4===_0x32ecbc)break;else _0x14db19['push'](_0x14db19['shift']());}catch(_0x248734){_0x14db19['push'](_0x14db19['shift']());}}}(a119_0x1ebb,0x1d43f));function a119_0x40ce(_0x199c45,_0x497195){_0x199c45=_0x199c45-0x9d;const _0x1ebbaa=a119_0x1ebb();let _0x40cec8=_0x1ebbaa[_0x199c45];return _0x40cec8;}import{getDbLinkInfo,updateDbLink}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG,SKIP_CONNECTION_TEST_FLAG}from'../../commands/common/flags.js';import{assertDbLinkConnectionPreflight,sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';function a119_0x1ebb(){const _0x5ba2e0=['[redacted]','has','dbname','trim','/smartapi/dblink/update','New\x20host:port','2702579WckEtE','Update\x20a\x20database\x20connection\x20by\x20merging\x20supplied\x20fields\x20into\x20the\x20current\x20server\x20record.\x20A\x20masked\x20server\x20password\x20requires\x20explicit\x20--password','username','New\x20database\x20name','2esUXbL','dbdesc','17176LlYckt','496630BziuaR','5985MjLdsB','The\x20server\x20returned\x20a\x20masked\x20database\x20password.\x20Pass\x20the\x20current\x20or\x20replacement\x20password\x20explicitly\x20with\x20--password\x20to\x20update\x20this\x20connection\x20safely.','string','1246650eolKwV','24HJhPWp','password','260808bWlkLw','New\x20connection\x20parameter\x20string','16809EQARkW','dbUrl','3oGCbQu','str','dbParam','dburl','Preview\x20the\x20merged\x20database\x20connection\x20update;\x20password\x20redacted','New\x20username','validation','774GdaGxn','558BqIkRJ','dbDesc','num','bool','Updated\x20db\x20link\x20','dbparam'];a119_0x1ebb=function(){return _0x5ba2e0;};return a119_0x1ebb();}const MASKED_PASSWORD_VALUES=new Set(['******',a119_0x4a4fdd(0xa2)]);function mergeDbLinkUpdate(_0x217422,_0x4da85f){const _0xdedddc=a119_0x4a4fdd,_0x35d0ae={..._0x217422},_0x35501f=_0x4da85f['str'](_0xdedddc(0xb5));if(_0x35501f&&MASKED_PASSWORD_VALUES[_0xdedddc(0xa3)](_0x35501f))throw CliErrors[_0xdedddc(0xc0)]('--password\x20must\x20contain\x20the\x20real\x20database\x20password,\x20not\x20a\x20masked\x20value.');if(!_0x35501f&&MASKED_PASSWORD_VALUES[_0xdedddc(0xa3)](String(_0x217422['password']??'')))throw CliErrors['validation'](_0xdedddc(0xb1));const _0x2c9e9c=_0x4da85f[_0xdedddc(0xbb)](_0xdedddc(0xa4));if(_0x2c9e9c)_0x35d0ae['dbName']=_0x2c9e9c;const _0x276381=_0x4da85f['str'](_0xdedddc(0xbd));if(_0x276381)_0x35d0ae[_0xdedddc(0xb9)]=_0x276381[_0xdedddc(0xa5)]();const _0x393c38=_0x4da85f[_0xdedddc(0xbb)](_0xdedddc(0xaa));if(_0x393c38)_0x35d0ae['username']=_0x393c38;if(_0x35501f)_0x35d0ae[_0xdedddc(0xb5)]=_0x35501f;const _0x188f5f=_0x4da85f[_0xdedddc(0xbb)](_0xdedddc(0xa1));if(_0x188f5f)_0x35d0ae[_0xdedddc(0xbc)]=_0x188f5f;const _0x57530c=_0x4da85f[_0xdedddc(0xbb)](_0xdedddc(0xad));if(_0x57530c)_0x35d0ae[_0xdedddc(0x9d)]=_0x57530c;return _0x35d0ae;}export const dbUpdate={'service':'db','command':'update','description':a119_0x4a4fdd(0xa9),'risk':'write','flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':'dbname','type':'string','description':a119_0x4a4fdd(0xab)},{'name':a119_0x4a4fdd(0xbd),'type':'string','description':a119_0x4a4fdd(0xa7)},{'name':a119_0x4a4fdd(0xaa),'type':'string','description':a119_0x4a4fdd(0xbf)},{'name':a119_0x4a4fdd(0xb5),'type':a119_0x4a4fdd(0xb2),'description':'Current\x20or\x20replacement\x20password.\x20Required\x20when\x20the\x20stored\x20password\x20is\x20masked'},{'name':'dbparam','type':a119_0x4a4fdd(0xb2),'description':a119_0x4a4fdd(0xb7)},{'name':a119_0x4a4fdd(0xad),'type':a119_0x4a4fdd(0xb2),'description':'New\x20description'},SKIP_CONNECTION_TEST_FLAG],async 'validate'(_0x52fb74){const _0x48d6d0=a119_0x4a4fdd,_0x1920ee=_0x52fb74[_0x48d6d0(0xbb)](_0x48d6d0(0xbd));if(_0x1920ee&&!validateDbUrl(_0x1920ee['trim']()))throw CliErrors[_0x48d6d0(0xc0)]('Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22'+_0x1920ee+'\x22');},async 'dryRun'(_0x4fdfb0){const _0x2f1e51=a119_0x4a4fdd,_0x19bad4=_0x4fdfb0['num']('id'),_0x499f43=await getDbLinkInfo(_0x19bad4),_0x31c3f7=mergeDbLinkUpdate(_0x499f43,_0x4fdfb0),_0x2c7930=sanitizeDbLinkForOutput(_0x31c3f7);return{'method':'POST','url':_0x2f1e51(0xa6),'body':_0x2c7930,'description':_0x2f1e51(0xbe),'connectionPreflight':{'enabled':!_0x4fdfb0[_0x2f1e51(0x9f)]('skip-connection-test'),'executed':![]}};},async 'execute'(_0x1deca3){const _0x452a37=a119_0x4a4fdd,_0x5823c4=_0x1deca3[_0x452a37(0x9e)]('id'),_0x5dba88=await getDbLinkInfo(_0x5823c4),_0x2772d6=mergeDbLinkUpdate(_0x5dba88,_0x1deca3);!_0x1deca3['bool']('skip-connection-test')&&await assertDbLinkConnectionPreflight(_0x2772d6);const {id:_0x226b3f,entity:_0x1fc9e2}=normalizeEntityWithIdResponse(await updateDbLink(_0x2772d6));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x1fc9e2),'message':_0x452a37(0xa0)+(_0x226b3f??_0x5823c4)};}};
1
+ const a119_0x3fb704=a119_0x2a64;(function(_0x4abadb,_0x951569){const _0x5dcb38=a119_0x2a64,_0xa03c5d=_0x4abadb();while(!![]){try{const _0x5de203=parseInt(_0x5dcb38(0x89))/0x1+-parseInt(_0x5dcb38(0xa5))/0x2+parseInt(_0x5dcb38(0x99))/0x3+parseInt(_0x5dcb38(0xab))/0x4*(parseInt(_0x5dcb38(0x98))/0x5)+parseInt(_0x5dcb38(0x8e))/0x6*(parseInt(_0x5dcb38(0xa7))/0x7)+parseInt(_0x5dcb38(0xa8))/0x8+-parseInt(_0x5dcb38(0x9d))/0x9*(parseInt(_0x5dcb38(0xa2))/0xa);if(_0x5de203===_0x951569)break;else _0xa03c5d['push'](_0xa03c5d['shift']());}catch(_0x16e258){_0xa03c5d['push'](_0xa03c5d['shift']());}}}(a119_0x4cea,0x63b2b));import{getDbLinkInfo,updateDbLink}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG,SKIP_CONNECTION_TEST_FLAG}from'../../commands/common/flags.js';function a119_0x4cea(){const _0x568e39=['50rfHWNR','The\x20server\x20returned\x20a\x20masked\x20database\x20password.\x20Pass\x20the\x20current\x20or\x20replacement\x20password\x20explicitly\x20with\x20--password\x20to\x20update\x20this\x20connection\x20safely.','bool','735120nILwTh','update','20965FbsVdD','2769488GlKTfR','validation','write','8jjSEMc','dbParam','dbDesc','str','dbUrl','Updated\x20db\x20link\x20','dburl','353627EfMXrT','dbname','string','dbName','New\x20description','1488HtbLsg','num','Update\x20a\x20database\x20connection\x20by\x20merging\x20supplied\x20fields\x20into\x20the\x20current\x20server\x20record.\x20A\x20masked\x20server\x20password\x20requires\x20explicit\x20--password','--password\x20must\x20contain\x20the\x20real\x20database\x20password,\x20not\x20a\x20masked\x20value.','trim','POST','password','New\x20connection\x20parameter\x20string','dbparam','New\x20username','205910pWHEhu','1179093ILBocg','/smartapi/dblink/update','[redacted]','New\x20host:port','2055681jZuIeh','has','username','New\x20database\x20name','Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22'];a119_0x4cea=function(){return _0x568e39;};return a119_0x4cea();}import{assertDbLinkConnectionPreflight,sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';function a119_0x2a64(_0x37e7f7,_0xafe88e){_0x37e7f7=_0x37e7f7-0x85;const _0x4ceaf1=a119_0x4cea();let _0x2a64ea=_0x4ceaf1[_0x37e7f7];return _0x2a64ea;}const MASKED_PASSWORD_VALUES=new Set(['******',a119_0x3fb704(0x9b)]);function mergeDbLinkUpdate(_0x1fc68c,_0x1bbfb3){const _0x1539bf=a119_0x3fb704,_0x4d2da6={..._0x1fc68c},_0x1a9d48=_0x1bbfb3[_0x1539bf(0x85)]('password');if(_0x1a9d48&&MASKED_PASSWORD_VALUES[_0x1539bf(0x9e)](_0x1a9d48))throw CliErrors['validation'](_0x1539bf(0x91));if(!_0x1a9d48&&MASKED_PASSWORD_VALUES[_0x1539bf(0x9e)](String(_0x1fc68c[_0x1539bf(0x94)]??'')))throw CliErrors['validation'](_0x1539bf(0xa3));const _0x436f9e=_0x1bbfb3[_0x1539bf(0x85)](_0x1539bf(0x8a));if(_0x436f9e)_0x4d2da6[_0x1539bf(0x8c)]=_0x436f9e;const _0x9ea043=_0x1bbfb3[_0x1539bf(0x85)](_0x1539bf(0x88));if(_0x9ea043)_0x4d2da6[_0x1539bf(0x86)]=_0x9ea043[_0x1539bf(0x92)]();const _0x7822fc=_0x1bbfb3['str'](_0x1539bf(0x9f));if(_0x7822fc)_0x4d2da6[_0x1539bf(0x9f)]=_0x7822fc;if(_0x1a9d48)_0x4d2da6[_0x1539bf(0x94)]=_0x1a9d48;const _0x1fb244=_0x1bbfb3[_0x1539bf(0x85)]('dbparam');if(_0x1fb244)_0x4d2da6[_0x1539bf(0xac)]=_0x1fb244;const _0x467a38=_0x1bbfb3['str']('dbdesc');if(_0x467a38)_0x4d2da6[_0x1539bf(0xad)]=_0x467a38;return _0x4d2da6;}export const dbUpdate={'service':'db','command':a119_0x3fb704(0xa6),'description':a119_0x3fb704(0x90),'risk':a119_0x3fb704(0xaa),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a119_0x3fb704(0x8a),'type':a119_0x3fb704(0x8b),'description':a119_0x3fb704(0xa0)},{'name':'dburl','type':'string','description':a119_0x3fb704(0x9c)},{'name':a119_0x3fb704(0x9f),'type':a119_0x3fb704(0x8b),'description':a119_0x3fb704(0x97)},{'name':'password','type':a119_0x3fb704(0x8b),'description':'Current\x20or\x20replacement\x20password.\x20Required\x20when\x20the\x20stored\x20password\x20is\x20masked'},{'name':a119_0x3fb704(0x96),'type':a119_0x3fb704(0x8b),'description':a119_0x3fb704(0x95)},{'name':'dbdesc','type':a119_0x3fb704(0x8b),'description':a119_0x3fb704(0x8d)},SKIP_CONNECTION_TEST_FLAG],async 'validate'(_0x9be94b){const _0x1c919d=a119_0x3fb704,_0x55af6d=_0x9be94b[_0x1c919d(0x85)](_0x1c919d(0x88));if(_0x55af6d&&!validateDbUrl(_0x55af6d[_0x1c919d(0x92)]()))throw CliErrors[_0x1c919d(0xa9)](_0x1c919d(0xa1)+_0x55af6d+'\x22');},async 'dryRun'(_0x3089b5){const _0x23337f=a119_0x3fb704,_0x2b63ac=_0x3089b5[_0x23337f(0x8f)]('id'),_0xbe8048=await getDbLinkInfo(_0x2b63ac),_0x5425da=mergeDbLinkUpdate(_0xbe8048,_0x3089b5),_0x17e467=sanitizeDbLinkForOutput(_0x5425da);return{'method':_0x23337f(0x93),'url':_0x23337f(0x9a),'body':_0x17e467,'description':'Preview\x20the\x20merged\x20database\x20connection\x20update;\x20password\x20redacted','connectionPreflight':{'enabled':!_0x3089b5[_0x23337f(0xa4)]('skip-connection-test'),'executed':![]}};},async 'execute'(_0x268083){const _0x55edf6=a119_0x3fb704,_0x576da5=_0x268083[_0x55edf6(0x8f)]('id'),_0x41335e=await getDbLinkInfo(_0x576da5),_0x422a80=mergeDbLinkUpdate(_0x41335e,_0x268083);!_0x268083[_0x55edf6(0xa4)]('skip-connection-test')&&await assertDbLinkConnectionPreflight(_0x422a80);const {id:_0x589729,entity:_0x4cc73a}=normalizeEntityWithIdResponse(await updateDbLink(_0x422a80));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x4cc73a),'message':_0x55edf6(0x87)+(_0x589729??_0x576da5)};}};
@@ -1 +1 @@
1
- (function(_0x5a22c5,_0x1ade04){const _0x1565c0=a120_0x52d1,_0x4ca5b8=_0x5a22c5();while(!![]){try{const _0x79ba89=-parseInt(_0x1565c0(0xa6))/0x1+-parseInt(_0x1565c0(0xa0))/0x2+-parseInt(_0x1565c0(0xa3))/0x3*(parseInt(_0x1565c0(0xa1))/0x4)+-parseInt(_0x1565c0(0x9f))/0x5*(-parseInt(_0x1565c0(0xa5))/0x6)+parseInt(_0x1565c0(0xa2))/0x7+-parseInt(_0x1565c0(0xa7))/0x8*(-parseInt(_0x1565c0(0xa4))/0x9)+parseInt(_0x1565c0(0xa8))/0xa;if(_0x79ba89===_0x1ade04)break;else _0x4ca5b8['push'](_0x4ca5b8['shift']());}catch(_0xe60a87){_0x4ca5b8['push'](_0x4ca5b8['shift']());}}}(a120_0x16e9,0x67c57));function a120_0x52d1(_0xc27a92,_0xf25c78){_0xc27a92=_0xc27a92-0x9f;const _0x16e917=a120_0x16e9();let _0x52d1fe=_0x16e917[_0xc27a92];return _0x52d1fe;}import{deploymentSyncAll}from'../../commands/deployment/sync-all.js';import{deploymentSyncStatus}from'../../commands/deployment/sync-status.js';import{deploymentSyncJobs}from'../../commands/deployment/sync-jobs.js';export const deploymentDefinitions=[deploymentSyncAll,deploymentSyncStatus,deploymentSyncJobs];function a120_0x16e9(){const _0x5d8211=['36lruSRV','27fqhTOY','104820bmHqxp','724911IiDybZ','632920MJSKMP','8823020yUIowU','85UsSUjz','774510KwZVOZ','213828EODbqZ','5334420BKOWis'];a120_0x16e9=function(){return _0x5d8211;};return a120_0x16e9();}
1
+ (function(_0xf476a8,_0x1ec245){const _0x360c4c=a120_0x5f1d,_0x268571=_0xf476a8();while(!![]){try{const _0x559cd0=-parseInt(_0x360c4c(0xba))/0x1*(-parseInt(_0x360c4c(0xb9))/0x2)+-parseInt(_0x360c4c(0xbc))/0x3+-parseInt(_0x360c4c(0xb6))/0x4+parseInt(_0x360c4c(0xb5))/0x5+parseInt(_0x360c4c(0xbd))/0x6+-parseInt(_0x360c4c(0xbb))/0x7+-parseInt(_0x360c4c(0xb8))/0x8*(-parseInt(_0x360c4c(0xb7))/0x9);if(_0x559cd0===_0x1ec245)break;else _0x268571['push'](_0x268571['shift']());}catch(_0x11db66){_0x268571['push'](_0x268571['shift']());}}}(a120_0x32c8,0x939d9));import{deploymentSyncAll}from'../../commands/deployment/sync-all.js';import{deploymentSyncStatus}from'../../commands/deployment/sync-status.js';import{deploymentSyncJobs}from'../../commands/deployment/sync-jobs.js';export const deploymentDefinitions=[deploymentSyncAll,deploymentSyncStatus,deploymentSyncJobs];function a120_0x5f1d(_0x5f335f,_0x5826a8){_0x5f335f=_0x5f335f-0xb5;const _0x32c89d=a120_0x32c8();let _0x5f1d08=_0x32c89d[_0x5f335f];return _0x5f1d08;}function a120_0x32c8(){const _0x29526c=['23fAIXLZ','4046336weCmaW','1603218VwstHK','3264594cYuHZF','3839380EsJylo','4656788epnKQM','11627982vpjAYh','8svKDba','24114brkRwY'];a120_0x32c8=function(){return _0x29526c;};return a120_0x32c8();}
@@ -1 +1 @@
1
- const a121_0x15dd02=a121_0x120e;(function(_0x59f426,_0x3a95ea){const _0x32fb12=a121_0x120e,_0x4b7a8b=_0x59f426();while(!![]){try{const _0x21a2c0=-parseInt(_0x32fb12(0x1e5))/0x1*(parseInt(_0x32fb12(0x1df))/0x2)+-parseInt(_0x32fb12(0x1d1))/0x3+parseInt(_0x32fb12(0x1de))/0x4+parseInt(_0x32fb12(0x1da))/0x5*(-parseInt(_0x32fb12(0x1db))/0x6)+-parseInt(_0x32fb12(0x1dd))/0x7*(-parseInt(_0x32fb12(0x1d7))/0x8)+-parseInt(_0x32fb12(0x1d8))/0x9*(parseInt(_0x32fb12(0x1e9))/0xa)+-parseInt(_0x32fb12(0x1e1))/0xb*(-parseInt(_0x32fb12(0x1e7))/0xc);if(_0x21a2c0===_0x3a95ea)break;else _0x4b7a8b['push'](_0x4b7a8b['shift']());}catch(_0x43e974){_0x4b7a8b['push'](_0x4b7a8b['shift']());}}}(a121_0x5ed9,0xc97b1));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{asDryRunResult}from'../../commands/common/dry-run.js';import{isPlatformTransportFailure,submitDeploymentMetadataSyncAll}from'../../core/api-client.js';import{CliError,CliErrors}from'../../errors.js';function a121_0x120e(_0x4a4788,_0x53a7ce){_0x4a4788=_0x4a4788-0x1cb;const _0x5ed92b=a121_0x5ed9();let _0x120ec5=_0x5ed92b[_0x4a4788];return _0x120ec5;}function a121_0x5ed9(){const _0x35b4fa=['Submitted\x20deployment\x20synchronization\x20job\x20','validation','POST','No\x20deployment\x20synchronization\x20was\x20needed\x20for\x20this\x20app.','defineProperty','not_submitted','application_deployment_sync','sync-all','confirm','List\x20recent\x20deployment\x20sync\x20jobs\x20before\x20deciding\x20whether\x20to\x20submit\x20again.','appCode','759975EgMKrP','job','deployment','unknown','Would\x20submit\x20an\x20administrative\x20deployment\x20metadata\x20backfill\x20or\x20recovery\x20job.','jobId','9654608FOPage','105336iEryzy','Run\x20with\x20--dry-run\x20first,\x20then\x20add\x20--confirm.','5AAhKHP','2452524KqqWZZ','deployment_sync_submit_outcome_unknown','7Ordnuu','5798716SKBEfd','2492HHGbpZ','submitted','209ioDROH','status','/smartapi/data-sync/submit','data','162xtkkIh','bool','120876qeJlwb','Backfill\x20or\x20recover\x20all\x20server-supported\x20application\x20metadata','990BqnJBC','Submit\x20an\x20administrative\x20metadata\x20backfill\x20or\x20recovery\x20synchronization.','not_needed'];a121_0x5ed9=function(){return _0x35b4fa;};return a121_0x5ed9();}const SUBMIT_PATH=a121_0x15dd02(0x1e3),CONFIRM_FLAG={'name':a121_0x15dd02(0x1ce),'type':'boolean','description':'Confirm\x20the\x20administrative\x20backfill\x20or\x20recovery\x20synchronization'};export const deploymentSyncAll={'service':a121_0x15dd02(0x1d3),'command':a121_0x15dd02(0x1cd),'description':a121_0x15dd02(0x1e8),'risk':'write','strictFlags':!![],'structuredErrors':!![],'confirmationDescription':a121_0x15dd02(0x1ea),'flags':[CONFIRM_FLAG,APPCODE_FLAG_OPTIONAL],async 'dryRun'(_0x5a16da){const _0x59ba8b=a121_0x15dd02;return asDryRunResult(buildPreview(_0x5a16da[_0x59ba8b(0x1d0)]),{'method':_0x59ba8b(0x1ee),'url':SUBMIT_PATH,'description':_0x59ba8b(0x1d5)});},async 'execute'(_0x167b85){const _0x19c4e4=a121_0x15dd02;if(!_0x167b85[_0x19c4e4(0x1e6)]('confirm'))throw CliErrors[_0x19c4e4(0x1ed)]('--confirm\x20is\x20required\x20to\x20synchronize\x20all\x20application\x20metadata.',_0x19c4e4(0x1d9));try{const _0x325761=await submitDeploymentMetadataSyncAll({'appCode':_0x167b85[_0x19c4e4(0x1d0)]});if(_0x325761['outcome']==='not_needed')return{'ok':!![],'data':{'operation':_0x19c4e4(0x1cc),'appCode':_0x167b85[_0x19c4e4(0x1d0)],'submitted':![],'outcome':_0x19c4e4(0x1eb)},'message':_0x19c4e4(0x1ef)};return{'ok':!![],'data':{'operation':'application_deployment_sync','appCode':_0x167b85[_0x19c4e4(0x1d0)],'submitted':!![],'outcome':_0x19c4e4(0x1e0),'jobId':_0x325761[_0x19c4e4(0x1d2)][_0x19c4e4(0x1d6)],'status':_0x325761[_0x19c4e4(0x1d2)][_0x19c4e4(0x1e2)]},'message':_0x19c4e4(0x1ec)+_0x325761[_0x19c4e4(0x1d2)][_0x19c4e4(0x1d6)]+'.'};}catch(_0x5d7eca){if(!isPlatformTransportFailure(_0x5d7eca))throw _0x5d7eca;const _0x277aed=new CliError(_0x19c4e4(0x1dc),0x2,'Deployment\x20sync\x20submission\x20response\x20was\x20unavailable;\x20job\x20creation\x20is\x20unknown.',_0x19c4e4(0x1cf));Object[_0x19c4e4(0x1f0)](_0x277aed,_0x19c4e4(0x1e4),{'enumerable':!![],'value':{'operation':_0x19c4e4(0x1cc),'appCode':_0x167b85['appCode'],'submitted':null,'outcome':_0x19c4e4(0x1d4)}});throw _0x277aed;}}};function buildPreview(_0x465f5c){const _0x4b775e=a121_0x15dd02;return{'operation':'application_deployment_sync','selector':{'appCode':_0x465f5c,'scope':'all_server_supported_metadata'},'before':null,'after':null,'dryRun':!![],'backend':{'submitted':![],'outcome':_0x4b775e(0x1cb)},'warnings':[]};}
1
+ const a121_0x4d298f=a121_0x553c;(function(_0x7c3acf,_0x10da64){const _0x42c3da=a121_0x553c,_0xb41411=_0x7c3acf();while(!![]){try{const _0x29d24f=parseInt(_0x42c3da(0x1ed))/0x1+parseInt(_0x42c3da(0x1e6))/0x2+parseInt(_0x42c3da(0x1e9))/0x3+parseInt(_0x42c3da(0x1e8))/0x4+-parseInt(_0x42c3da(0x1ef))/0x5+-parseInt(_0x42c3da(0x1f6))/0x6+parseInt(_0x42c3da(0x1e0))/0x7;if(_0x29d24f===_0x10da64)break;else _0xb41411['push'](_0xb41411['shift']());}catch(_0x1f25e2){_0xb41411['push'](_0xb41411['shift']());}}}(a121_0x5719,0xdbac5));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{asDryRunResult}from'../../commands/common/dry-run.js';import{isPlatformTransportFailure,submitDeploymentMetadataSyncAll}from'../../core/api-client.js';import{CliError,CliErrors}from'../../errors.js';function a121_0x553c(_0x3b52df,_0x2fb540){_0x3b52df=_0x3b52df-0x1e0;const _0x5719dd=a121_0x5719();let _0x553ca3=_0x5719dd[_0x3b52df];return _0x553ca3;}const SUBMIT_PATH='/smartapi/data-sync/submit',CONFIRM_FLAG={'name':a121_0x4d298f(0x1f2),'type':a121_0x4d298f(0x1e7),'description':'Confirm\x20the\x20administrative\x20backfill\x20or\x20recovery\x20synchronization'};export const deploymentSyncAll={'service':a121_0x4d298f(0x1ee),'command':'sync-all','description':'Backfill\x20or\x20recover\x20all\x20server-supported\x20application\x20metadata','risk':a121_0x4d298f(0x1f8),'strictFlags':!![],'structuredErrors':!![],'confirmationDescription':a121_0x4d298f(0x1ff),'flags':[CONFIRM_FLAG,APPCODE_FLAG_OPTIONAL],async 'dryRun'(_0xb4300a){const _0x4220cc=a121_0x4d298f;return asDryRunResult(buildPreview(_0xb4300a[_0x4220cc(0x1f5)]),{'method':'POST','url':SUBMIT_PATH,'description':'Would\x20submit\x20an\x20administrative\x20deployment\x20metadata\x20backfill\x20or\x20recovery\x20job.'});},async 'execute'(_0x309d6c){const _0xa7147a=a121_0x4d298f;if(!_0x309d6c[_0xa7147a(0x1e2)](_0xa7147a(0x1f2)))throw CliErrors[_0xa7147a(0x1fc)](_0xa7147a(0x1f1),'Run\x20with\x20--dry-run\x20first,\x20then\x20add\x20--confirm.');try{const _0x2c4151=await submitDeploymentMetadataSyncAll({'appCode':_0x309d6c[_0xa7147a(0x1f5)]});if(_0x2c4151[_0xa7147a(0x1ec)]==='not_needed')return{'ok':!![],'data':{'operation':_0xa7147a(0x1fd),'appCode':_0x309d6c[_0xa7147a(0x1f5)],'submitted':![],'outcome':_0xa7147a(0x1e3)},'message':_0xa7147a(0x1e1)};return{'ok':!![],'data':{'operation':_0xa7147a(0x1fd),'appCode':_0x309d6c['appCode'],'submitted':!![],'outcome':_0xa7147a(0x1f9),'jobId':_0x2c4151[_0xa7147a(0x1fb)]['jobId'],'status':_0x2c4151[_0xa7147a(0x1fb)][_0xa7147a(0x1ea)]},'message':_0xa7147a(0x1f0)+_0x2c4151[_0xa7147a(0x1fb)][_0xa7147a(0x1f4)]+'.'};}catch(_0x2fb54c){if(!isPlatformTransportFailure(_0x2fb54c))throw _0x2fb54c;const _0x1db574=new CliError(_0xa7147a(0x1fa),0x2,_0xa7147a(0x1fe),_0xa7147a(0x1eb));Object[_0xa7147a(0x1f3)](_0x1db574,_0xa7147a(0x1e4),{'enumerable':!![],'value':{'operation':_0xa7147a(0x1fd),'appCode':_0x309d6c[_0xa7147a(0x1f5)],'submitted':null,'outcome':_0xa7147a(0x1f7)}});throw _0x1db574;}}};function a121_0x5719(){const _0x33c1fe=['List\x20recent\x20deployment\x20sync\x20jobs\x20before\x20deciding\x20whether\x20to\x20submit\x20again.','outcome','66675xHqOpi','deployment','4004215ETQSLD','Submitted\x20deployment\x20synchronization\x20job\x20','--confirm\x20is\x20required\x20to\x20synchronize\x20all\x20application\x20metadata.','confirm','defineProperty','jobId','appCode','5110398QkvaDS','unknown','write','submitted','deployment_sync_submit_outcome_unknown','job','validation','application_deployment_sync','Deployment\x20sync\x20submission\x20response\x20was\x20unavailable;\x20job\x20creation\x20is\x20unknown.','Submit\x20an\x20administrative\x20metadata\x20backfill\x20or\x20recovery\x20synchronization.','10604076ZfoDMm','No\x20deployment\x20synchronization\x20was\x20needed\x20for\x20this\x20app.','bool','not_needed','data','all_server_supported_metadata','846238EFdtUR','boolean','522636aPbYQy','1251108IvSZeP','status'];a121_0x5719=function(){return _0x33c1fe;};return a121_0x5719();}function buildPreview(_0x1efe03){const _0x279ac3=a121_0x4d298f;return{'operation':_0x279ac3(0x1fd),'selector':{'appCode':_0x1efe03,'scope':_0x279ac3(0x1e5)},'before':null,'after':null,'dryRun':!![],'backend':{'submitted':![],'outcome':'not_submitted'},'warnings':[]};}
@@ -1 +1 @@
1
- const a122_0x4d0eaa=a122_0x39bd;(function(_0x55ba54,_0xef300f){const _0x21e0cf=a122_0x39bd,_0x2d2788=_0x55ba54();while(!![]){try{const _0x2b7dc1=parseInt(_0x21e0cf(0x8a))/0x1*(-parseInt(_0x21e0cf(0x82))/0x2)+-parseInt(_0x21e0cf(0x81))/0x3+-parseInt(_0x21e0cf(0x76))/0x4*(parseInt(_0x21e0cf(0x7d))/0x5)+parseInt(_0x21e0cf(0x8e))/0x6+parseInt(_0x21e0cf(0x88))/0x7+parseInt(_0x21e0cf(0x7b))/0x8*(-parseInt(_0x21e0cf(0x77))/0x9)+parseInt(_0x21e0cf(0x7a))/0xa*(parseInt(_0x21e0cf(0x7c))/0xb);if(_0x2b7dc1===_0xef300f)break;else _0x2d2788['push'](_0x2d2788['shift']());}catch(_0x283b95){_0x2d2788['push'](_0x2d2788['shift']());}}}(a122_0x5bee,0x6abc2));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{listDeploymentMetadataSyncJobs}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a122_0x5bee(){const _0x125927=['612570EOBnqA','136koozEd','319qYxzQH','5gGIfhq','trim','page-size','current-page','1980297kVGBBW','662KmeVvP','Page\x20number','Optional\x20server-defined\x20job\x20status\x20filter','string','\x20deployment\x20synchronization\x20job(s).','--current-page\x20must\x20be\x20a\x20positive\x20integer.','5316892kXtJhv','number','1728CLHDHm','Found\x20','sync-jobs','validation','189120CrFCCW','isSafeInteger','deployment','List\x20application\x20deployment\x20synchronization\x20jobs','num','1958928uBNmTF','216288qBaPhl','read','status'];a122_0x5bee=function(){return _0x125927;};return a122_0x5bee();}export const deploymentSyncJobs={'service':a122_0x4d0eaa(0x73),'command':a122_0x4d0eaa(0x8c),'description':a122_0x4d0eaa(0x74),'risk':a122_0x4d0eaa(0x78),'strictFlags':!![],'structuredErrors':!![],'flags':[{'name':a122_0x4d0eaa(0x80),'type':a122_0x4d0eaa(0x89),'default':0x1,'description':a122_0x4d0eaa(0x83)},{'name':a122_0x4d0eaa(0x7f),'type':a122_0x4d0eaa(0x89),'default':0xa,'description':'Items\x20per\x20page\x20(maximum\x20100)'},{'name':'status','type':a122_0x4d0eaa(0x85),'description':a122_0x4d0eaa(0x84)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x5e32f8){const _0x12ca11=a122_0x4d0eaa;readPaging(_0x5e32f8[_0x12ca11(0x75)](_0x12ca11(0x80),0x1),_0x5e32f8[_0x12ca11(0x75)]('page-size',0xa));},async 'execute'(_0x2d88ce){const _0x41ac0c=a122_0x4d0eaa,{currentPage:_0x57a0e5,pageSize:_0x4e6dcf}=readPaging(_0x2d88ce[_0x41ac0c(0x75)](_0x41ac0c(0x80),0x1),_0x2d88ce[_0x41ac0c(0x75)]('page-size',0xa)),_0x538b24=_0x2d88ce['str'](_0x41ac0c(0x79))[_0x41ac0c(0x7e)](),_0x3817aa=await listDeploymentMetadataSyncJobs({'appCode':_0x2d88ce['appCode'],'currentPage':_0x57a0e5,'pageSize':_0x4e6dcf,..._0x538b24?{'status':_0x538b24}:{}});return{'ok':!![],'data':{'appCode':_0x2d88ce['appCode'],..._0x3817aa},'message':_0x41ac0c(0x8b)+_0x3817aa['items']['length']+_0x41ac0c(0x86)};}};function a122_0x39bd(_0x77fb31,_0x2c9002){_0x77fb31=_0x77fb31-0x72;const _0x5beec7=a122_0x5bee();let _0x39bd7b=_0x5beec7[_0x77fb31];return _0x39bd7b;}function readPaging(_0xf2befd,_0x34ae9b){const _0xd2c928=a122_0x4d0eaa;if(!Number['isSafeInteger'](_0xf2befd)||_0xf2befd<0x1)throw CliErrors[_0xd2c928(0x8d)](_0xd2c928(0x87));if(!Number[_0xd2c928(0x72)](_0x34ae9b)||_0x34ae9b<0x1||_0x34ae9b>0x64)throw CliErrors['validation']('--page-size\x20must\x20be\x20an\x20integer\x20from\x201\x20to\x20100.');return{'currentPage':_0xf2befd,'pageSize':_0x34ae9b};}
1
+ function a122_0xbf67(_0x180552,_0x37a059){_0x180552=_0x180552-0x69;const _0x2700ba=a122_0x2700();let _0xbf67e9=_0x2700ba[_0x180552];return _0xbf67e9;}const a122_0x986c5e=a122_0xbf67;function a122_0x2700(){const _0x48f38d=['110339swiUvp','77npRIzx','--page-size\x20must\x20be\x20an\x20integer\x20from\x201\x20to\x20100.','validation','isSafeInteger','Found\x20','trim','length','string','str','676355DuFAAk','1172870YMCJbC','number','appCode','574272kDyWGX','12XSZbAT','--current-page\x20must\x20be\x20a\x20positive\x20integer.','status','785214JyEGlg','2jckCxs','Items\x20per\x20page\x20(maximum\x20100)','199416NkmVaF','Page\x20number','current-page','num','171208AfdWuI','\x20deployment\x20synchronization\x20job(s).','page-size'];a122_0x2700=function(){return _0x48f38d;};return a122_0x2700();}(function(_0x197807,_0x4fc755){const _0x13f664=a122_0xbf67,_0x5aa44d=_0x197807();while(!![]){try{const _0x41871a=-parseInt(_0x13f664(0x6f))/0x1*(-parseInt(_0x13f664(0x82))/0x2)+parseInt(_0x13f664(0x84))/0x3*(-parseInt(_0x13f664(0x7e))/0x4)+parseInt(_0x13f664(0x79))/0x5+parseInt(_0x13f664(0x81))/0x6+parseInt(_0x13f664(0x70))/0x7*(-parseInt(_0x13f664(0x6c))/0x8)+parseInt(_0x13f664(0x7d))/0x9+parseInt(_0x13f664(0x7a))/0xa;if(_0x41871a===_0x4fc755)break;else _0x5aa44d['push'](_0x5aa44d['shift']());}catch(_0x137751){_0x5aa44d['push'](_0x5aa44d['shift']());}}}(a122_0x2700,0x1df7b));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':'deployment','command':'sync-jobs','description':'List\x20application\x20deployment\x20synchronization\x20jobs','risk':'read','strictFlags':!![],'structuredErrors':!![],'flags':[{'name':'current-page','type':a122_0x986c5e(0x7b),'default':0x1,'description':a122_0x986c5e(0x69)},{'name':a122_0x986c5e(0x6e),'type':'number','default':0xa,'description':a122_0x986c5e(0x83)},{'name':a122_0x986c5e(0x80),'type':a122_0x986c5e(0x77),'description':'Optional\x20server-defined\x20job\x20status\x20filter'},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x477c46){const _0x3d85bc=a122_0x986c5e;readPaging(_0x477c46[_0x3d85bc(0x6b)]('current-page',0x1),_0x477c46[_0x3d85bc(0x6b)]('page-size',0xa));},async 'execute'(_0xe95c77){const _0x40e050=a122_0x986c5e,{currentPage:_0x565956,pageSize:_0x349a8d}=readPaging(_0xe95c77[_0x40e050(0x6b)](_0x40e050(0x6a),0x1),_0xe95c77[_0x40e050(0x6b)](_0x40e050(0x6e),0xa)),_0xf5230a=_0xe95c77[_0x40e050(0x78)]('status')[_0x40e050(0x75)](),_0x2f34a4=await listDeploymentMetadataSyncJobs({'appCode':_0xe95c77[_0x40e050(0x7c)],'currentPage':_0x565956,'pageSize':_0x349a8d,..._0xf5230a?{'status':_0xf5230a}:{}});return{'ok':!![],'data':{'appCode':_0xe95c77[_0x40e050(0x7c)],..._0x2f34a4},'message':_0x40e050(0x74)+_0x2f34a4['items'][_0x40e050(0x76)]+_0x40e050(0x6d)};}};function readPaging(_0x53ace0,_0x112808){const _0x3cfff7=a122_0x986c5e;if(!Number[_0x3cfff7(0x73)](_0x53ace0)||_0x53ace0<0x1)throw CliErrors['validation'](_0x3cfff7(0x7f));if(!Number[_0x3cfff7(0x73)](_0x112808)||_0x112808<0x1||_0x112808>0x64)throw CliErrors[_0x3cfff7(0x72)](_0x3cfff7(0x71));return{'currentPage':_0x53ace0,'pageSize':_0x112808};}
@@ -1 +1 @@
1
- function a123_0x52ac(_0x2c785b,_0xc406fa){_0x2c785b=_0x2c785b-0x109;const _0x665d04=a123_0x665d();let _0x52acaf=_0x665d04[_0x2c785b];return _0x52acaf;}const a123_0x560983=a123_0x52ac;(function(_0x3d09d6,_0x2b9b10){const _0x31c1b1=a123_0x52ac,_0x2ebe56=_0x3d09d6();while(!![]){try{const _0x46ca13=parseInt(_0x31c1b1(0x117))/0x1*(-parseInt(_0x31c1b1(0x11d))/0x2)+parseInt(_0x31c1b1(0x11c))/0x3*(-parseInt(_0x31c1b1(0x10d))/0x4)+parseInt(_0x31c1b1(0x112))/0x5*(-parseInt(_0x31c1b1(0x119))/0x6)+-parseInt(_0x31c1b1(0x114))/0x7+-parseInt(_0x31c1b1(0x121))/0x8*(parseInt(_0x31c1b1(0x10a))/0x9)+-parseInt(_0x31c1b1(0x113))/0xa+-parseInt(_0x31c1b1(0x120))/0xb*(-parseInt(_0x31c1b1(0x109))/0xc);if(_0x46ca13===_0x2b9b10)break;else _0x2ebe56['push'](_0x2ebe56['shift']());}catch(_0x1e601f){_0x2ebe56['push'](_0x2ebe56['shift']());}}}(a123_0x665d,0x729a1));function a123_0x665d(){const _0x8d9070=['num','appCode','sync-status','read','has','bizType','13548PoWPKH','1437948dvndHx','PENDING','filter','672644GIOLaa','status','map','--job-id\x20must\x20be\x20a\x20positive\x20integer.','results','15WIqwJK','529320efOBaI','3996251bmaScK','FAILED','length','10048PnoeUw','RUNNING','929748Uownyn','SUCCESS','reduce','9eXplZv','10EOjMWy','Deployment\x20synchronization\x20job\x20ID','number','28369BWOzzi','40IUcUqN','Deployment\x20synchronization\x20job\x20','job-id','isSafeInteger'];a123_0x665d=function(){return _0x8d9070;};return a123_0x665d();}import{getDeploymentMetadataSyncStatus}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const TERMINAL_STATUSES=new Set([a123_0x560983(0x11a),'PARTIAL_SUCCESS',a123_0x560983(0x115)]),ACTIVE_STATUSES=new Set([a123_0x560983(0x10b),a123_0x560983(0x118)]);export const deploymentSyncStatus={'service':'deployment','command':a123_0x560983(0x127),'description':'Get\x20application\x20deployment\x20synchronization\x20job\x20status','risk':a123_0x560983(0x128),'requiresAppCode':!![],'strictFlags':!![],'structuredErrors':!![],'flags':[{'name':a123_0x560983(0x123),'type':a123_0x560983(0x11f),'required':!![],'description':a123_0x560983(0x11e)}],async 'validate'(_0x4ea311){const _0x28152b=a123_0x560983;readJobId(_0x4ea311[_0x28152b(0x125)](_0x28152b(0x123)));},async 'execute'(_0x303b1e){const _0x4e1242=a123_0x560983,_0x5e793e=readJobId(_0x303b1e[_0x4e1242(0x125)](_0x4e1242(0x123))),_0x1e604d=await getDeploymentMetadataSyncStatus({'jobId':_0x5e793e,'appCode':_0x303b1e[_0x4e1242(0x126)]}),_0x5d3d37=TERMINAL_STATUSES['has'](_0x1e604d[_0x4e1242(0x10e)])?!![]:ACTIVE_STATUSES[_0x4e1242(0x129)](_0x1e604d[_0x4e1242(0x10e)])?![]:null,_0x3f5148=countBy(_0x1e604d['results'][_0x4e1242(0x10f)](_0x22075b=>_0x22075b[_0x4e1242(0x12a)])),_0x16211c=countBy(_0x1e604d[_0x4e1242(0x111)]['map'](_0x43cf9c=>_0x43cf9c['action'])),_0x3336d7=_0x5d3d37===null?['Preserved\x20server-defined\x20status\x20'+_0x1e604d['status']+';\x20terminal\x20state\x20is\x20unknown\x20to\x20this\x20CLI\x20version.']:[];return{'ok':!![],'data':{'job':_0x1e604d,'isTerminal':_0x5d3d37,'summary':{'total':_0x1e604d[_0x4e1242(0x111)]['length'],'failed':_0x1e604d[_0x4e1242(0x111)][_0x4e1242(0x10c)](_0x5cac0e=>_0x5cac0e['action']===_0x4e1242(0x115))[_0x4e1242(0x116)],'byBizType':_0x3f5148,'byAction':_0x16211c},'warnings':_0x3336d7},'message':_0x4e1242(0x122)+_0x5e793e+'\x20is\x20'+_0x1e604d[_0x4e1242(0x10e)]+'.'};}};function readJobId(_0x3062ad){const _0x214611=a123_0x560983;if(!Number[_0x214611(0x124)](_0x3062ad)||_0x3062ad<=0x0)throw CliErrors['validation'](_0x214611(0x110));return _0x3062ad;}function countBy(_0x27d941){const _0x1b996b=a123_0x560983;return _0x27d941[_0x1b996b(0x11b)]((_0x47ff04,_0x31f86d)=>{return _0x47ff04[_0x31f86d]=(_0x47ff04[_0x31f86d]??0x0)+0x1,_0x47ff04;},{});}
1
+ const a123_0x538625=a123_0x13fc;function a123_0x19ed(){const _0x58a120=['deployment','2324022TIwSPZ','3995572GwpPGM','filter','11146583ydThig','3363789dGDjFB','FAILED','Deployment\x20synchronization\x20job\x20','SUCCESS',';\x20terminal\x20state\x20is\x20unknown\x20to\x20this\x20CLI\x20version.','job-id','status','has','1056070ZoXDHy','reduce','map','length','Preserved\x20server-defined\x20status\x20','RUNNING','read','appCode','bizType','results','Deployment\x20synchronization\x20job\x20ID','452018TPLbre','num','Get\x20application\x20deployment\x20synchronization\x20job\x20status','action','number','validation','705844BuhGMh','sync-status'];a123_0x19ed=function(){return _0x58a120;};return a123_0x19ed();}(function(_0x215bb5,_0x2102da){const _0x39dbf3=a123_0x13fc,_0x4fbd2c=_0x215bb5();while(!![]){try{const _0x5131a3=-parseInt(_0x39dbf3(0x176))/0x1+parseInt(_0x39dbf3(0x17c))/0x2+parseInt(_0x39dbf3(0x183))/0x3+parseInt(_0x39dbf3(0x180))/0x4+-parseInt(_0x39dbf3(0x18b))/0x5+parseInt(_0x39dbf3(0x17f))/0x6+-parseInt(_0x39dbf3(0x182))/0x7;if(_0x5131a3===_0x2102da)break;else _0x4fbd2c['push'](_0x4fbd2c['shift']());}catch(_0x2e617d){_0x4fbd2c['push'](_0x4fbd2c['shift']());}}}(a123_0x19ed,0x93a8e));function a123_0x13fc(_0x15e134,_0x82f3c5){_0x15e134=_0x15e134-0x176;const _0x19ed02=a123_0x19ed();let _0x13fcc8=_0x19ed02[_0x15e134];return _0x13fcc8;}import{getDeploymentMetadataSyncStatus}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const TERMINAL_STATUSES=new Set([a123_0x538625(0x186),'PARTIAL_SUCCESS',a123_0x538625(0x184)]),ACTIVE_STATUSES=new Set(['PENDING',a123_0x538625(0x190)]);export const deploymentSyncStatus={'service':a123_0x538625(0x17e),'command':a123_0x538625(0x17d),'description':a123_0x538625(0x178),'risk':a123_0x538625(0x191),'requiresAppCode':!![],'strictFlags':!![],'structuredErrors':!![],'flags':[{'name':a123_0x538625(0x188),'type':a123_0x538625(0x17a),'required':!![],'description':a123_0x538625(0x195)}],async 'validate'(_0x5ed09e){const _0x4e913e=a123_0x538625;readJobId(_0x5ed09e[_0x4e913e(0x177)]('job-id'));},async 'execute'(_0x31a9c3){const _0x565698=a123_0x538625,_0x27b530=readJobId(_0x31a9c3[_0x565698(0x177)](_0x565698(0x188))),_0x4df8e8=await getDeploymentMetadataSyncStatus({'jobId':_0x27b530,'appCode':_0x31a9c3[_0x565698(0x192)]}),_0x38e146=TERMINAL_STATUSES[_0x565698(0x18a)](_0x4df8e8[_0x565698(0x189)])?!![]:ACTIVE_STATUSES[_0x565698(0x18a)](_0x4df8e8[_0x565698(0x189)])?![]:null,_0x25778b=countBy(_0x4df8e8[_0x565698(0x194)][_0x565698(0x18d)](_0xcd8914=>_0xcd8914[_0x565698(0x193)])),_0xacd684=countBy(_0x4df8e8[_0x565698(0x194)]['map'](_0x5bdf00=>_0x5bdf00['action'])),_0x1b476c=_0x38e146===null?[_0x565698(0x18f)+_0x4df8e8[_0x565698(0x189)]+_0x565698(0x187)]:[];return{'ok':!![],'data':{'job':_0x4df8e8,'isTerminal':_0x38e146,'summary':{'total':_0x4df8e8[_0x565698(0x194)][_0x565698(0x18e)],'failed':_0x4df8e8[_0x565698(0x194)][_0x565698(0x181)](_0x5dd969=>_0x5dd969[_0x565698(0x179)]==='FAILED')[_0x565698(0x18e)],'byBizType':_0x25778b,'byAction':_0xacd684},'warnings':_0x1b476c},'message':_0x565698(0x185)+_0x27b530+'\x20is\x20'+_0x4df8e8['status']+'.'};}};function readJobId(_0x2634fe){const _0x30d6d8=a123_0x538625;if(!Number['isSafeInteger'](_0x2634fe)||_0x2634fe<=0x0)throw CliErrors[_0x30d6d8(0x17b)]('--job-id\x20must\x20be\x20a\x20positive\x20integer.');return _0x2634fe;}function countBy(_0x3dc953){const _0x39d984=a123_0x538625;return _0x3dc953[_0x39d984(0x18c)]((_0x4e5ae9,_0x7686db)=>{return _0x4e5ae9[_0x7686db]=(_0x4e5ae9[_0x7686db]??0x0)+0x1,_0x4e5ae9;},{});}
@@ -1 +1 @@
1
- const a124_0x565ddb=a124_0x3cf9;(function(_0x3fc504,_0x28216c){const _0x5c178f=a124_0x3cf9,_0x56f1bc=_0x3fc504();while(!![]){try{const _0x4f6e94=-parseInt(_0x5c178f(0x14b))/0x1+-parseInt(_0x5c178f(0xd5))/0x2*(-parseInt(_0x5c178f(0x136))/0x3)+parseInt(_0x5c178f(0x102))/0x4+parseInt(_0x5c178f(0xdd))/0x5+-parseInt(_0x5c178f(0x152))/0x6+-parseInt(_0x5c178f(0x13e))/0x7+parseInt(_0x5c178f(0x114))/0x8;if(_0x4f6e94===_0x28216c)break;else _0x56f1bc['push'](_0x56f1bc['shift']());}catch(_0x591a53){_0x56f1bc['push'](_0x56f1bc['shift']());}}}(a124_0x57c7,0x2fb95));import a124_0x543b53 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(_0x4ae4bf){const _0x3eb2cd=a124_0x3cf9;return typeof _0x4ae4bf===_0x3eb2cd(0x148)?JSON[_0x3eb2cd(0x127)](_0x4ae4bf):'<'+(_0x4ae4bf===null?'null':typeof _0x4ae4bf)+'>';}function a124_0x3cf9(_0x238c9e,_0x42c430){_0x238c9e=_0x238c9e-0xcc;const _0x57c7fe=a124_0x57c7();let _0x3cf948=_0x57c7fe[_0x238c9e];return _0x3cf948;}async function execute(_0x4dc26d){const _0x3c1f4b=a124_0x3cf9,_0x3f65f1=GIT_COMMIT!==_0x3c1f4b(0xe4)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME['slice'](0x0,0xa)+')':VERSION,_0xbf2278=buildConfigFromFlags({}),_0xba1871=getCookie();let _0x45e00a;try{await initGlobalEnvironment(_0xbf2278);}catch(_0x3967e4){_0x45e00a=_0x3967e4 instanceof Error?_0x3967e4:new Error(String(_0x3967e4));}console['log'](),console['log'](a124_0x543b53[_0x3c1f4b(0xfd)](CLI_BIN_NAME+_0x3c1f4b(0x129))),console[_0x3c1f4b(0xde)](a124_0x543b53['gray']('─'[_0x3c1f4b(0xe2)](0x32))),console[_0x3c1f4b(0xde)](_0x3c1f4b(0xd6)+_0x3f65f1),console[_0x3c1f4b(0xde)](_0x3c1f4b(0x109)+process[_0x3c1f4b(0x13a)]),console[_0x3c1f4b(0xde)](_0x3c1f4b(0x117)+process[_0x3c1f4b(0x143)]+'\x20'+process[_0x3c1f4b(0xd2)]);const _0x516baa=inspectBuiltinSkill();console['log'](),console['log'](a124_0x543b53[_0x3c1f4b(0xfd)](_0x3c1f4b(0x15c))),console[_0x3c1f4b(0xde)](a124_0x543b53[_0x3c1f4b(0x154)](_0x3c1f4b(0x112)[_0x3c1f4b(0xe2)](0x1e)));const _0x1d754c=_0x516baa[_0x3c1f4b(0xef)]===_0x3c1f4b(0x14a)?a124_0x543b53['green']('✓\x20'+_0x516baa['state']):a124_0x543b53[_0x3c1f4b(0x11e)]('✗\x20'+_0x516baa[_0x3c1f4b(0xef)]);console['log'](_0x3c1f4b(0xf6)+_0x1d754c),console[_0x3c1f4b(0xde)](_0x3c1f4b(0xe6)+_0x516baa[_0x3c1f4b(0x14f)]),console['log'](_0x3c1f4b(0x119)+(_0x516baa[_0x3c1f4b(0xf9)]||a124_0x543b53[_0x3c1f4b(0x154)](_0x3c1f4b(0x125)))),console['log']('\x20\x20Installed\x20Path:\x20\x20'+(_0x516baa['installedPath']||a124_0x543b53['gray'](_0x3c1f4b(0xce))));if(_0x516baa['reason'])console[_0x3c1f4b(0xde)](_0x3c1f4b(0xf0)+_0x516baa[_0x3c1f4b(0xe7)]);_0x516baa['state']!==_0x3c1f4b(0x14a)&&console[_0x3c1f4b(0xde)](_0x3c1f4b(0x15b)+_0x516baa[_0x3c1f4b(0xe9)]);console[_0x3c1f4b(0xde)](),console['log'](a124_0x543b53['bold']('\x20\x20Config\x20Files')),console['log'](a124_0x543b53['gray'](_0x3c1f4b(0x112)[_0x3c1f4b(0xe2)](0x1e)));const _0x639cfc=getGlobalConfigPath(),_0x2fb1bd=getProjectConfigPath();console[_0x3c1f4b(0xde)](_0x3c1f4b(0x151)+(_0x639cfc||a124_0x543b53[_0x3c1f4b(0x154)](_0x3c1f4b(0xce)))),console['log'](_0x3c1f4b(0x124)+(_0x2fb1bd||a124_0x543b53[_0x3c1f4b(0x154)](_0x3c1f4b(0xce)))),console['log'](),console['log'](a124_0x543b53[_0x3c1f4b(0xfd)](_0x3c1f4b(0x149))),console[_0x3c1f4b(0xde)](a124_0x543b53[_0x3c1f4b(0x154)](_0x3c1f4b(0x112)['repeat'](0x1e)));const _0x17c4d5=(_0x52dbcb,_0x143fd0)=>{const _0x29e4c2=_0x3c1f4b;if(!_0x143fd0){console[_0x29e4c2(0xde)]('\x20\x20'+_0x52dbcb[_0x29e4c2(0x118)](0x11)+'\x20'+a124_0x543b53['gray'](_0x29e4c2(0x13f)));return;}const _0x353a8e=inspectCliConfigJsonFile(_0x143fd0);if(_0x353a8e['status']==='ok')console[_0x29e4c2(0xde)]('\x20\x20'+_0x52dbcb[_0x29e4c2(0x118)](0x11)+'\x20'+a124_0x543b53[_0x29e4c2(0x10d)](_0x29e4c2(0xd4)));else{if(_0x353a8e[_0x29e4c2(0x10e)]===_0x29e4c2(0x10f))console[_0x29e4c2(0xde)]('\x20\x20'+_0x52dbcb['padEnd'](0x11)+'\x20'+a124_0x543b53[_0x29e4c2(0xf7)](_0x29e4c2(0xec)));else _0x353a8e[_0x29e4c2(0x10e)]==='missing'?console[_0x29e4c2(0xde)]('\x20\x20'+_0x52dbcb[_0x29e4c2(0x118)](0x11)+'\x20'+a124_0x543b53[_0x29e4c2(0x154)]('(missing)')):(console[_0x29e4c2(0xde)]('\x20\x20'+_0x52dbcb[_0x29e4c2(0x118)](0x11)+'\x20'+a124_0x543b53[_0x29e4c2(0x11e)]('✗\x20Invalid\x20JSON')),console['log']('\x20\x20'+''[_0x29e4c2(0x118)](0x11)+'\x20'+a124_0x543b53[_0x29e4c2(0x11e)](_0x353a8e['message'])));}};_0x17c4d5(_0x3c1f4b(0x130),_0x639cfc),_0x17c4d5(_0x3c1f4b(0x131),_0x2fb1bd);const _0x349726=loadRawConfigLayers(),_0x27def3=[{'label':'Project','value':_0x349726[_0x3c1f4b(0x116)]['region'],'present':Object['prototype']['hasOwnProperty'][_0x3c1f4b(0x138)](_0x349726['projectConfig'],_0x3c1f4b(0x132)),'repairCommand':CLI_BIN_NAME+_0x3c1f4b(0xcf)},{'label':'Global','value':_0x349726['globalConfig'][_0x3c1f4b(0x132)],'present':Object[_0x3c1f4b(0x14c)]['hasOwnProperty']['call'](_0x349726[_0x3c1f4b(0xfc)],_0x3c1f4b(0x132)),'repairCommand':CLI_BIN_NAME+_0x3c1f4b(0xff)}][_0x3c1f4b(0x10a)](_0x5a5644=>_0x5a5644[_0x3c1f4b(0x11a)]&&isInvalidLovrabetRegion(_0x5a5644[_0x3c1f4b(0xe0)]));for(const [_0x49169a,_0xabf6d8]of[[_0x3c1f4b(0x131),_0x349726[_0x3c1f4b(0x116)]],[_0x3c1f4b(0x130),_0x349726[_0x3c1f4b(0xfc)]]]){const _0x51d13e=_0xabf6d8[_0x3c1f4b(0x13d)]&&typeof _0xabf6d8[_0x3c1f4b(0x13d)]==='object'?_0xabf6d8['apps']:{};for(const [_0x884686,_0x53dfb8]of Object[_0x3c1f4b(0x12e)](_0x51d13e)){if(!_0x53dfb8||typeof _0x53dfb8!==_0x3c1f4b(0xdc)||!Object[_0x3c1f4b(0x14c)]['hasOwnProperty'][_0x3c1f4b(0x138)](_0x53dfb8,_0x3c1f4b(0x132)))continue;isInvalidLovrabetRegion(_0x53dfb8[_0x3c1f4b(0x132)])&&_0x27def3[_0x3c1f4b(0x11d)]({'label':_0x49169a+_0x3c1f4b(0xf1)+_0x884686+'\x22','value':_0x53dfb8[_0x3c1f4b(0x132)],'present':!![],'repairCommand':_0x3c1f4b(0xdf)+_0x884686+_0x3c1f4b(0xcc)+_0x49169a['toLowerCase']()+_0x3c1f4b(0xd8)});}}if(_0x27def3['length']>0x0){console[_0x3c1f4b(0xde)](),console['log'](a124_0x543b53[_0x3c1f4b(0xfd)](_0x3c1f4b(0x137))),console[_0x3c1f4b(0xde)](a124_0x543b53[_0x3c1f4b(0x154)](_0x3c1f4b(0x112)[_0x3c1f4b(0xe2)](0x1e)));for(const _0x54c531 of _0x27def3){console[_0x3c1f4b(0xde)]('\x20\x20'+_0x54c531[_0x3c1f4b(0x106)][_0x3c1f4b(0x118)](0x11)+'\x20'+a124_0x543b53[_0x3c1f4b(0x11e)](_0x3c1f4b(0xf5)+describeRegionValue(_0x54c531['value']))),console[_0x3c1f4b(0xde)]('\x20\x20'+(_0x3c1f4b(0xf4)+_0x54c531[_0x3c1f4b(0x106)][_0x3c1f4b(0x11c)]()+':')[_0x3c1f4b(0x118)](0x10)+'\x20'+_0x54c531[_0x3c1f4b(0xe9)]);}}const _0x19fb9a=[Object['prototype']['hasOwnProperty'][_0x3c1f4b(0x138)](_0x349726[_0x3c1f4b(0xfc)],_0x3c1f4b(0x122))?'global':null,Object[_0x3c1f4b(0x14c)][_0x3c1f4b(0x126)][_0x3c1f4b(0x138)](_0x349726['projectConfig'],_0x3c1f4b(0x122))?_0x3c1f4b(0x13b):null][_0x3c1f4b(0x10a)](Boolean);_0x19fb9a[_0x3c1f4b(0x120)]>0x0&&(console['log']('\x20\x20Legacy\x20inherit:\x20\x20\x20'+a124_0x543b53[_0x3c1f4b(0xf7)](_0x3c1f4b(0xeb)+_0x19fb9a[_0x3c1f4b(0xf2)](_0x3c1f4b(0x11f))+_0x3c1f4b(0xd8))),_0x19fb9a[_0x3c1f4b(0x159)]('project')&&console['log'](_0x3c1f4b(0x10b)+CLI_BIN_NAME+'\x20config\x20delete\x20inherit'),_0x19fb9a[_0x3c1f4b(0x159)](_0x3c1f4b(0x11b))&&console[_0x3c1f4b(0xde)](_0x3c1f4b(0x110)+CLI_BIN_NAME+_0x3c1f4b(0x134)));const _0x38d6ad=isInvalidLovrabetRegion(_0xbf2278[_0x3c1f4b(0x146)]??_0xbf2278['raw']?.[_0x3c1f4b(0x132)]);_0x45e00a&&!_0x38d6ad&&(console[_0x3c1f4b(0xde)](),console['log'](a124_0x543b53['bold'](_0x3c1f4b(0x107))),console[_0x3c1f4b(0xde)](a124_0x543b53['gray'](_0x3c1f4b(0x112)[_0x3c1f4b(0xe2)](0x1e))),console['log'](_0x3c1f4b(0x10c)+a124_0x543b53[_0x3c1f4b(0x11e)]('✗\x20Invalid')),console[_0x3c1f4b(0xde)]('\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x45e00a[_0x3c1f4b(0x147)]),Object[_0x3c1f4b(0x14c)][_0x3c1f4b(0x126)]['call'](_0x349726['projectConfig'],_0x3c1f4b(0xea))&&console[_0x3c1f4b(0xde)](_0x3c1f4b(0x155)+CLI_BIN_NAME+_0x3c1f4b(0x12b)),Object[_0x3c1f4b(0x14c)][_0x3c1f4b(0x126)][_0x3c1f4b(0x138)](_0x349726[_0x3c1f4b(0xfc)],_0x3c1f4b(0xea))&&console['log'](_0x3c1f4b(0x104)+CLI_BIN_NAME+_0x3c1f4b(0x140)));console[_0x3c1f4b(0xde)](),console[_0x3c1f4b(0xde)](a124_0x543b53[_0x3c1f4b(0xfd)](_0x3c1f4b(0xd9))),console[_0x3c1f4b(0xde)](a124_0x543b53[_0x3c1f4b(0x154)](_0x3c1f4b(0x112)[_0x3c1f4b(0xe2)](0x1e))),console['log'](_0x3c1f4b(0xee)+(_0xbf2278['appCode']||a124_0x543b53[_0x3c1f4b(0x11e)]('(not\x20set)')));const _0x5ebfd4=_0x38d6ad?a124_0x543b53[_0x3c1f4b(0x11e)](describeRegionValue(_0xbf2278[_0x3c1f4b(0x146)]??_0xbf2278[_0x3c1f4b(0xcd)]?.['region'])+_0x3c1f4b(0x157)):(_0xbf2278[_0x3c1f4b(0x132)]??DEFAULT_LOVRABET_REGION)+'\x20('+(_0xbf2278[_0x3c1f4b(0x135)]??_0x3c1f4b(0x12f))+')';console[_0x3c1f4b(0xde)](_0x3c1f4b(0xfb)+_0x5ebfd4),console[_0x3c1f4b(0xde)](_0x3c1f4b(0xe1)+_0xbf2278[_0x3c1f4b(0x153)]),console[_0x3c1f4b(0xde)]('\x20\x20app\x20locale:\x20\x20\x20\x20\x20\x20'+_0xbf2278['locale']),console[_0x3c1f4b(0xde)](_0x3c1f4b(0x113)+_0xbf2278[_0x3c1f4b(0x108)]),console[_0x3c1f4b(0xde)](_0x3c1f4b(0xe8)+(_0xbf2278[_0x3c1f4b(0x100)]||a124_0x543b53['gray']('(none)'))),console[_0x3c1f4b(0xde)](_0x3c1f4b(0x15a)+(_0xbf2278[_0x3c1f4b(0x121)]||a124_0x543b53['gray'](_0x3c1f4b(0x101)))),console[_0x3c1f4b(0xde)](_0x3c1f4b(0x14e)+(_0xbf2278[_0x3c1f4b(0x139)]||a124_0x543b53[_0x3c1f4b(0x154)](_0x3c1f4b(0x101)))),console[_0x3c1f4b(0xde)](_0x3c1f4b(0xfe)+(_0xbf2278[_0x3c1f4b(0x115)]||a124_0x543b53[_0x3c1f4b(0x154)](_0x3c1f4b(0x12d)+DEFAULT_CONFIG_VALUES[_0x3c1f4b(0x115)]+')'))),console[_0x3c1f4b(0xde)](_0x3c1f4b(0x158)+(_0xbf2278['pageSize']??a124_0x543b53[_0x3c1f4b(0x154)](_0x3c1f4b(0x12c)))),console[_0x3c1f4b(0xde)](_0x3c1f4b(0x14d)+_0xbf2278[_0x3c1f4b(0x144)]),console['log']('\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0xbf2278['verbose']),console['log']('\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0xbf2278[_0x3c1f4b(0xd3)]?a124_0x543b53[_0x3c1f4b(0x10d)](_0x3c1f4b(0x12a)+_0xbf2278['cookie'][_0x3c1f4b(0x120)]+')'):_0xba1871?a124_0x543b53[_0x3c1f4b(0x10d)](_0x3c1f4b(0x141)+_0xba1871[_0x3c1f4b(0x120)]+')'):a124_0x543b53[_0x3c1f4b(0x154)]('(none)')));const _0x4d396a=Object['keys'](_0xbf2278[_0x3c1f4b(0x13d)]);if(_0x4d396a[_0x3c1f4b(0x120)]>0x0){console[_0x3c1f4b(0xde)](),console[_0x3c1f4b(0xde)](a124_0x543b53['bold'](_0x3c1f4b(0x123))),console['log'](a124_0x543b53[_0x3c1f4b(0x154)](_0x3c1f4b(0x112)[_0x3c1f4b(0xe2)](0x1e)));for(const _0x15f97a of _0x4d396a){const _0x123a76=_0xbf2278[_0x3c1f4b(0x13d)][_0x15f97a],_0x5b6a0d=_0x15f97a===_0xbf2278[_0x3c1f4b(0x100)],_0x5ba470=_0x15f97a===_0xbf2278[_0x3c1f4b(0x121)],_0x513b69=_0x5ba470?a124_0x543b53[_0x3c1f4b(0x10d)](_0x3c1f4b(0x13c)):'',_0x2dde51=_0x5b6a0d?_0x3c1f4b(0xed):'';console[_0x3c1f4b(0xde)]('\x20\x20'+_0x15f97a+_0x2dde51+_0x513b69),console['log'](_0x3c1f4b(0xe5)+_0x123a76[_0x3c1f4b(0x145)]);const _0x24b393=_0x349726['projectConfig']['apps']&&typeof _0x349726[_0x3c1f4b(0x116)][_0x3c1f4b(0x13d)]===_0x3c1f4b(0xdc)?_0x349726[_0x3c1f4b(0x116)][_0x3c1f4b(0x13d)]:{},_0x5e155c=Object[_0x3c1f4b(0x14c)][_0x3c1f4b(0x126)][_0x3c1f4b(0x138)](_0x24b393,_0x15f97a),_0x5cc84c=isInvalidLovrabetRegion(_0x123a76[_0x3c1f4b(0x132)])?{'region':_0xbf2278[_0x3c1f4b(0x132)]??DEFAULT_LOVRABET_REGION}:resolveEffectiveRegion({'appRegion':_0x123a76[_0x3c1f4b(0x132)],'projectRegion':_0x5e155c?_0x349726[_0x3c1f4b(0x116)][_0x3c1f4b(0x132)]:undefined,'globalRegion':_0x349726[_0x3c1f4b(0xfc)]['region'],'mergedRegion':_0xbf2278[_0x3c1f4b(0xcd)][_0x3c1f4b(0x132)],'appName':_0x15f97a}),_0x75391e=buildAppDoctorFields(_0x123a76,{'region':_0x5cc84c['region'],'env':_0xbf2278[_0x3c1f4b(0x153)],'apiDir':_0xbf2278['raw']['apiDir']||DEFAULT_CONFIG_VALUES[_0x3c1f4b(0x108)],'cookie':_0xbf2278[_0x3c1f4b(0xd3)]||_0xba1871||undefined,'accessKey':_0xbf2278['accessKey']});console[_0x3c1f4b(0xde)]('\x20\x20\x20\x20region:\x20\x20\x20\x20\x20'+_0x75391e[_0x3c1f4b(0x132)][_0x3c1f4b(0xe0)]+'\x20\x20'+a124_0x543b53['gray']('('+_0x75391e[_0x3c1f4b(0x132)][_0x3c1f4b(0xdb)]+')')),console[_0x3c1f4b(0xde)](_0x3c1f4b(0x105)+_0x75391e[_0x3c1f4b(0x153)][_0x3c1f4b(0xe0)]+'\x20\x20'+a124_0x543b53[_0x3c1f4b(0x154)]('('+_0x75391e[_0x3c1f4b(0x153)][_0x3c1f4b(0xdb)]+')')),console['log'](_0x3c1f4b(0x103)+_0x75391e[_0x3c1f4b(0x108)]['value']+'\x20\x20'+a124_0x543b53[_0x3c1f4b(0x154)]('('+_0x75391e[_0x3c1f4b(0x108)][_0x3c1f4b(0xdb)]+')'));const _0x4b637d=_0x75391e['cookie'][_0x3c1f4b(0xe0)]?a124_0x543b53['green'](_0x3c1f4b(0x12a)+_0x75391e[_0x3c1f4b(0xd3)][_0x3c1f4b(0xe0)][_0x3c1f4b(0x120)]+')'):a124_0x543b53[_0x3c1f4b(0x154)](_0x3c1f4b(0x101));console[_0x3c1f4b(0xde)]('\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20'+_0x4b637d+'\x20\x20'+a124_0x543b53[_0x3c1f4b(0x154)]('('+_0x75391e[_0x3c1f4b(0xd3)]['source']+')'));const _0x292c5a=_0x75391e['accessKey'][_0x3c1f4b(0xe0)]?a124_0x543b53[_0x3c1f4b(0x10d)](_0x3c1f4b(0x12a)+_0x75391e[_0x3c1f4b(0x133)][_0x3c1f4b(0xe0)][_0x3c1f4b(0x120)]+')'):a124_0x543b53[_0x3c1f4b(0x154)](_0x3c1f4b(0x101));console[_0x3c1f4b(0xde)](_0x3c1f4b(0xe3)+_0x292c5a+'\x20\x20'+a124_0x543b53[_0x3c1f4b(0x154)]('('+_0x75391e[_0x3c1f4b(0x133)]['source']+')'));}}console[_0x3c1f4b(0xde)](),console[_0x3c1f4b(0xde)](a124_0x543b53[_0x3c1f4b(0xfd)]('\x20\x20API\x20Endpoints')),console[_0x3c1f4b(0xde)](a124_0x543b53[_0x3c1f4b(0x154)](_0x3c1f4b(0x112)['repeat'](0x1e)));_0x45e00a?console['log']('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a124_0x543b53[_0x3c1f4b(0x11e)](_0x3c1f4b(0xd7))):(console[_0x3c1f4b(0xde)](_0x3c1f4b(0xfb)+getActiveRegion()),console[_0x3c1f4b(0xde)](_0x3c1f4b(0xf8)+getApiDomain()),console[_0x3c1f4b(0xde)](_0x3c1f4b(0xfa)+getUserDomain()),console['log']('\x20\x20runtimeDomain:\x20\x20\x20'+getRuntimeDomain()),console[_0x3c1f4b(0xde)](_0x3c1f4b(0x128)+getSkillDomain()),console[_0x3c1f4b(0xde)](_0x3c1f4b(0xf3)+getKbDomain()),console[_0x3c1f4b(0xde)]('\x20\x20kbServiceDomain:\x20'+(getKbServiceDomain()??_0x3c1f4b(0x142))),console['log']('\x20\x20appDomain:\x20\x20\x20\x20\x20\x20\x20'+getAppDomain()));console['log'](),console['log'](a124_0x543b53['bold'](_0x3c1f4b(0x111))),console[_0x3c1f4b(0xde)](a124_0x543b53[_0x3c1f4b(0x154)]('\x20\x20─'[_0x3c1f4b(0xe2)](0x1e)));if(_0x45e00a)console['log'](_0x3c1f4b(0x10c)+a124_0x543b53[_0x3c1f4b(0xf7)]('Not\x20checked\x20until\x20routing\x20configuration\x20is\x20repaired'));else{if(_0xba1871){const _0x2967bc=await getIsSessionValid();console[_0x3c1f4b(0xde)](_0x3c1f4b(0x10c)+(_0x2967bc?a124_0x543b53[_0x3c1f4b(0x10d)](_0x3c1f4b(0xd1)):a124_0x543b53[_0x3c1f4b(0x11e)](_0x3c1f4b(0x150))));}else console[_0x3c1f4b(0xde)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a124_0x543b53[_0x3c1f4b(0x11e)]('✗\x20Not\x20logged\x20in'));}return console[_0x3c1f4b(0xde)](),{'ok':!![]};}function a124_0x57c7(){const _0x5a4038=['bold','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20config\x20delete\x20region\x20--global','defaultApp','(none)','658588LFFhWL','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','\x20\x20Repair\x20global:\x20\x20\x20','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','label','\x20\x20Routing\x20Configuration','apiDir','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','filter','\x20\x20Repair\x20project:\x20\x20\x20','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','green','status','empty','\x20\x20Repair\x20global:\x20\x20\x20\x20','\x20\x20Auth','\x20\x20─','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','442744MKJRNF','format','projectConfig','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','padEnd','\x20\x20Skill\x20Version:\x20\x20\x20','present','global','toLowerCase','push','red','\x20+\x20','length','currentApp','inherit','\x20\x20Apps','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','(unknown)','hasOwnProperty','stringify','\x20\x20skillDomain:\x20\x20\x20\x20\x20','\x20doctor','(set,\x20length=','\x20config\x20delete\x20routing','(default)','(default:\x20','entries','default','Global','Project','region','accessKey','\x20config\x20delete\x20inherit\x20--global','regionSource','3gPhYqY','\x20\x20Country/Region\x20Configuration','call','explicitAppName','version','project','\x20←\x20current','apps','1522087AycUMp','(no\x20file)','\x20config\x20delete\x20routing\x20--global','(set\x20via\x20file,\x20length=','not\x20configured','platform','riskLevel','appcode','regionConfiguredValue','message','string','\x20\x20Config\x20JSON','current','117827sfsTcI','prototype','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','\x20\x20explicitAppName:\x20','packageVersion','✗\x20Expired','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','439182CUITyA','env','gray','\x20\x20Repair\x20project:\x20\x20','read','\x20(invalid)','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','includes','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Built-in\x20Skill','.region\x20to\x20cn\x20or\x20id\x20in\x20','raw','(not\x20found)','\x20config\x20delete\x20region','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','✓\x20Valid','arch','cookie','✓\x20Valid\x20JSON','305636balJeF','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','Unavailable\x20until\x20routing\x20configuration\x20is\x20repaired','\x20config','\x20\x20Merged\x20Config','doctor','source','object','1155670EVoQhn','log','Set\x20apps.','value','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','repeat','\x20\x20\x20\x20accessKey:\x20\x20','unknown','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','\x20\x20Package\x20Version:\x20','reason','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','repairCommand','routing','ignored\x20in\x20','⚠\x20Empty\x20(treated\x20as\x20{})','\x20(default)','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','state','\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20app\x20\x22','join','\x20\x20kbDomain:\x20\x20\x20\x20\x20\x20\x20\x20','Repair\x20','✗\x20Invalid\x20','\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','yellow','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','skillVersion','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','globalConfig'];a124_0x57c7=function(){return _0x5a4038;};return a124_0x57c7();}export const doctorDefinition={'service':a124_0x565ddb(0xda),'command':'check','description':a124_0x565ddb(0xd0),'risk':a124_0x565ddb(0x156),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
1
+ function a124_0x3ce1(_0x4dcb1f,_0x59e7a2){_0x4dcb1f=_0x4dcb1f-0xbc;const _0x34f1f3=a124_0x34f1();let _0x3ce130=_0x34f1f3[_0x4dcb1f];return _0x3ce130;}const a124_0x4c6cd5=a124_0x3ce1;(function(_0x516f9c,_0x37c693){const _0x3ce779=a124_0x3ce1,_0x2d9b0f=_0x516f9c();while(!![]){try{const _0x108ed5=-parseInt(_0x3ce779(0x100))/0x1*(-parseInt(_0x3ce779(0x10e))/0x2)+-parseInt(_0x3ce779(0x120))/0x3*(parseInt(_0x3ce779(0x131))/0x4)+parseInt(_0x3ce779(0xf8))/0x5+parseInt(_0x3ce779(0x14a))/0x6*(parseInt(_0x3ce779(0x13b))/0x7)+parseInt(_0x3ce779(0x138))/0x8*(parseInt(_0x3ce779(0xe9))/0x9)+-parseInt(_0x3ce779(0xc1))/0xa*(parseInt(_0x3ce779(0xf5))/0xb)+-parseInt(_0x3ce779(0xea))/0xc;if(_0x108ed5===_0x37c693)break;else _0x2d9b0f['push'](_0x2d9b0f['shift']());}catch(_0x49488b){_0x2d9b0f['push'](_0x2d9b0f['shift']());}}}(a124_0x34f1,0x302c3));import a124_0x52028e 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';function a124_0x34f1(){const _0x5d5aa8=['(not\x20set)','prototype','\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','routing','defaultApp','check','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','\x20\x20Merged\x20Config','slice','\x20config\x20delete\x20region','\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','apiDir','Set\x20apps.','doctor','(no\x20file)','project','appCode','push','call','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','gray','\x20\x20Skill\x20Version:\x20\x20\x20','region','explicitAppName','33390DacNkD','714660zluzER','current','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','present','\x20\x20kbDomain:\x20\x20\x20\x20\x20\x20\x20\x20','\x20+\x20','join','Project','reason','Global','\x20\x20Repair\x20global:\x20\x20\x20','913pytgtU','repairCommand','\x20\x20\x20\x20region:\x20\x20\x20\x20\x20','1317105yTXmsT','(missing)','message','\x20\x20skillDomain:\x20\x20\x20\x20\x20','cookie','missing','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','\x20(invalid)','82AaxcaB','padEnd','(unknown)','length','currentApp','value','yellow','string','✗\x20Expired','\x20\x20Config\x20JSON','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','default','✓\x20Valid','5512QvujrL','apps','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','version','(set,\x20length=','packageVersion','\x20\x20Repair\x20project:\x20\x20\x20','pageSize','repeat','Unavailable\x20until\x20routing\x20configuration\x20is\x20repaired','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','stringify','⚠\x20Empty\x20(treated\x20as\x20{})','read','\x20\x20appDomain:\x20\x20\x20\x20\x20\x20\x20','\x20config\x20delete\x20inherit\x20--global','source','\x20\x20explicitAppName:\x20','21YffIju','projectConfig','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(not\x20found)','arch','globalConfig','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','status','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Legacy\x20inherit:\x20\x20\x20','\x20\x20Installed\x20Path:\x20\x20','raw','toLowerCase','unknown','\x20\x20Config\x20Files','\x20\x20Package\x20Version:\x20','134592IvALdx','\x20\x20app\x20locale:\x20\x20\x20\x20\x20\x20','\x20\x20Repair\x20global:\x20\x20\x20\x20','object','bold','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','Not\x20checked\x20until\x20routing\x20configuration\x20is\x20repaired','688pdBTQn','\x20config\x20delete\x20routing\x20--global','\x20\x20runtimeDomain:\x20\x20\x20','411327yxcAQv','\x20\x20Routing\x20Configuration','\x20\x20API\x20Endpoints','(none)','includes','filter','not\x20configured','accessKey','✗\x20Not\x20logged\x20in','.region\x20to\x20cn\x20or\x20id\x20in\x20','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','\x20←\x20current','\x20\x20Repair\x20project:\x20\x20','empty','\x20\x20kbServiceDomain:\x20','6jHCYlK','inherit','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','regionConfiguredValue','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20accessKey:\x20\x20','\x20\x20─','\x20\x20Built-in\x20Skill','env','state','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','✗\x20Invalid\x20JSON','installedPath','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','45160LdsLPL','log','locale','\x20\x20Apps','null','\x20config\x20delete\x20region\x20--global','(set\x20via\x20file,\x20length=','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','(default)','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','green','hasOwnProperty','global','\x20(default)','label','red'];a124_0x34f1=function(){return _0x5d5aa8;};return a124_0x34f1();}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(_0x3a12d2){const _0x21705b=a124_0x3ce1;return typeof _0x3a12d2===_0x21705b(0x107)?JSON[_0x21705b(0x119)](_0x3a12d2):'<'+(_0x3a12d2===null?_0x21705b(0xc5):typeof _0x3a12d2)+'>';}async function execute(_0x3bc333){const _0x2db2a8=a124_0x3ce1,_0x4a90a8=GIT_COMMIT!==_0x2db2a8(0x12e)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x2db2a8(0xd9)](0x0,0xa)+')':VERSION,_0x2cdfd4=buildConfigFromFlags({}),_0x42d6d6=getCookie();let _0x2dcfa7;try{await initGlobalEnvironment(_0x2cdfd4);}catch(_0x36f6ef){_0x2dcfa7=_0x36f6ef instanceof Error?_0x36f6ef:new Error(String(_0x36f6ef));}console[_0x2db2a8(0xc2)](),console[_0x2db2a8(0xc2)](a124_0x52028e[_0x2db2a8(0x135)](CLI_BIN_NAME+'\x20doctor')),console[_0x2db2a8(0xc2)](a124_0x52028e[_0x2db2a8(0xe5)]('─'['repeat'](0x32))),console[_0x2db2a8(0xc2)](_0x2db2a8(0xec)+_0x4a90a8),console['log'](_0x2db2a8(0xe4)+process[_0x2db2a8(0x111)]),console[_0x2db2a8(0xc2)](_0x2db2a8(0x129)+process['platform']+'\x20'+process[_0x2db2a8(0x124)]);const _0x5c4655=inspectBuiltinSkill();console[_0x2db2a8(0xc2)](),console[_0x2db2a8(0xc2)](a124_0x52028e[_0x2db2a8(0x135)](_0x2db2a8(0x151))),console[_0x2db2a8(0xc2)](a124_0x52028e['gray']('\x20\x20─'[_0x2db2a8(0x116)](0x1e)));const _0x1887e5=_0x5c4655['state']===_0x2db2a8(0xeb)?a124_0x52028e[_0x2db2a8(0xcb)]('✓\x20'+_0x5c4655[_0x2db2a8(0xbc)]):a124_0x52028e[_0x2db2a8(0xd0)]('✗\x20'+_0x5c4655[_0x2db2a8(0xbc)]);console[_0x2db2a8(0xc2)]('\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x1887e5),console[_0x2db2a8(0xc2)](_0x2db2a8(0x130)+_0x5c4655[_0x2db2a8(0x113)]),console[_0x2db2a8(0xc2)](_0x2db2a8(0xe6)+(_0x5c4655['skillVersion']||a124_0x52028e[_0x2db2a8(0xe5)](_0x2db2a8(0x102)))),console[_0x2db2a8(0xc2)](_0x2db2a8(0x12b)+(_0x5c4655[_0x2db2a8(0xbf)]||a124_0x52028e[_0x2db2a8(0xe5)](_0x2db2a8(0x123))));if(_0x5c4655[_0x2db2a8(0xf2)])console[_0x2db2a8(0xc2)](_0x2db2a8(0xdb)+_0x5c4655[_0x2db2a8(0xf2)]);_0x5c4655[_0x2db2a8(0xbc)]!==_0x2db2a8(0xeb)&&console[_0x2db2a8(0xc2)](_0x2db2a8(0xd3)+_0x5c4655[_0x2db2a8(0xf6)]);console[_0x2db2a8(0xc2)](),console[_0x2db2a8(0xc2)](a124_0x52028e[_0x2db2a8(0x135)](_0x2db2a8(0x12f))),console['log'](a124_0x52028e[_0x2db2a8(0xe5)](_0x2db2a8(0x150)[_0x2db2a8(0x116)](0x1e)));const _0x526297=getGlobalConfigPath(),_0x4c0f95=getProjectConfigPath();console[_0x2db2a8(0xc2)]('\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x526297||a124_0x52028e[_0x2db2a8(0xe5)](_0x2db2a8(0x123)))),console['log'](_0x2db2a8(0xca)+(_0x4c0f95||a124_0x52028e[_0x2db2a8(0xe5)](_0x2db2a8(0x123)))),console[_0x2db2a8(0xc2)](),console[_0x2db2a8(0xc2)](a124_0x52028e[_0x2db2a8(0x135)](_0x2db2a8(0x109))),console[_0x2db2a8(0xc2)](a124_0x52028e['gray'](_0x2db2a8(0x150)[_0x2db2a8(0x116)](0x1e)));const _0xa253ef=(_0x1c68fd,_0x58afe0)=>{const _0x51a74f=_0x2db2a8;if(!_0x58afe0){console[_0x51a74f(0xc2)]('\x20\x20'+_0x1c68fd[_0x51a74f(0x101)](0x11)+'\x20'+a124_0x52028e[_0x51a74f(0xe5)](_0x51a74f(0xdf)));return;}const _0x1c6e30=inspectCliConfigJsonFile(_0x58afe0);if(_0x1c6e30[_0x51a74f(0x127)]==='ok')console[_0x51a74f(0xc2)]('\x20\x20'+_0x1c68fd['padEnd'](0x11)+'\x20'+a124_0x52028e[_0x51a74f(0xcb)]('✓\x20Valid\x20JSON'));else{if(_0x1c6e30[_0x51a74f(0x127)]===_0x51a74f(0x148))console[_0x51a74f(0xc2)]('\x20\x20'+_0x1c68fd['padEnd'](0x11)+'\x20'+a124_0x52028e[_0x51a74f(0x106)](_0x51a74f(0x11a)));else _0x1c6e30['status']===_0x51a74f(0xfd)?console['log']('\x20\x20'+_0x1c68fd['padEnd'](0x11)+'\x20'+a124_0x52028e['gray'](_0x51a74f(0xf9))):(console['log']('\x20\x20'+_0x1c68fd['padEnd'](0x11)+'\x20'+a124_0x52028e['red'](_0x51a74f(0xbe))),console[_0x51a74f(0xc2)]('\x20\x20'+''[_0x51a74f(0x101)](0x11)+'\x20'+a124_0x52028e[_0x51a74f(0xd0)](_0x1c6e30[_0x51a74f(0xfa)])));}};_0xa253ef('Global',_0x526297),_0xa253ef(_0x2db2a8(0xf1),_0x4c0f95);const _0x339f8f=loadRawConfigLayers(),_0x237e86=[{'label':_0x2db2a8(0xf1),'value':_0x339f8f[_0x2db2a8(0x121)]['region'],'present':Object[_0x2db2a8(0xd2)]['hasOwnProperty']['call'](_0x339f8f[_0x2db2a8(0x121)],'region'),'repairCommand':CLI_BIN_NAME+_0x2db2a8(0xda)},{'label':_0x2db2a8(0xf3),'value':_0x339f8f[_0x2db2a8(0x125)][_0x2db2a8(0xe7)],'present':Object['prototype'][_0x2db2a8(0xcc)][_0x2db2a8(0xe3)](_0x339f8f['globalConfig'],_0x2db2a8(0xe7)),'repairCommand':CLI_BIN_NAME+_0x2db2a8(0xc6)}][_0x2db2a8(0x140)](_0x1efbe9=>_0x1efbe9[_0x2db2a8(0xed)]&&isInvalidLovrabetRegion(_0x1efbe9[_0x2db2a8(0x105)]));for(const [_0x5b77,_0x14286b]of[[_0x2db2a8(0xf1),_0x339f8f[_0x2db2a8(0x121)]],[_0x2db2a8(0xf3),_0x339f8f[_0x2db2a8(0x125)]]]){const _0x16bad1=_0x14286b[_0x2db2a8(0x10f)]&&typeof _0x14286b[_0x2db2a8(0x10f)]==='object'?_0x14286b[_0x2db2a8(0x10f)]:{};for(const [_0x263497,_0x2e9f56]of Object['entries'](_0x16bad1)){if(!_0x2e9f56||typeof _0x2e9f56!==_0x2db2a8(0x134)||!Object[_0x2db2a8(0xd2)]['hasOwnProperty']['call'](_0x2e9f56,_0x2db2a8(0xe7)))continue;isInvalidLovrabetRegion(_0x2e9f56[_0x2db2a8(0xe7)])&&_0x237e86[_0x2db2a8(0xe2)]({'label':_0x5b77+'\x20app\x20\x22'+_0x263497+'\x22','value':_0x2e9f56[_0x2db2a8(0xe7)],'present':!![],'repairCommand':_0x2db2a8(0xdd)+_0x263497+_0x2db2a8(0x144)+_0x5b77[_0x2db2a8(0x12d)]()+'\x20config'});}}if(_0x237e86[_0x2db2a8(0x103)]>0x0){console['log'](),console['log'](a124_0x52028e[_0x2db2a8(0x135)]('\x20\x20Country/Region\x20Configuration')),console[_0x2db2a8(0xc2)](a124_0x52028e[_0x2db2a8(0xe5)](_0x2db2a8(0x150)[_0x2db2a8(0x116)](0x1e)));for(const _0x59a42e of _0x237e86){console[_0x2db2a8(0xc2)]('\x20\x20'+_0x59a42e['label'][_0x2db2a8(0x101)](0x11)+'\x20'+a124_0x52028e[_0x2db2a8(0xd0)]('✗\x20Invalid\x20'+describeRegionValue(_0x59a42e[_0x2db2a8(0x105)]))),console[_0x2db2a8(0xc2)]('\x20\x20'+('Repair\x20'+_0x59a42e[_0x2db2a8(0xcf)]['toLowerCase']()+':')[_0x2db2a8(0x101)](0x10)+'\x20'+_0x59a42e[_0x2db2a8(0xf6)]);}}const _0x3bd0f6=[Object[_0x2db2a8(0xd2)][_0x2db2a8(0xcc)][_0x2db2a8(0xe3)](_0x339f8f[_0x2db2a8(0x125)],_0x2db2a8(0x14b))?_0x2db2a8(0xcd):null,Object[_0x2db2a8(0xd2)][_0x2db2a8(0xcc)][_0x2db2a8(0xe3)](_0x339f8f[_0x2db2a8(0x121)],_0x2db2a8(0x14b))?'project':null]['filter'](Boolean);_0x3bd0f6[_0x2db2a8(0x103)]>0x0&&(console['log'](_0x2db2a8(0x12a)+a124_0x52028e['yellow']('ignored\x20in\x20'+_0x3bd0f6[_0x2db2a8(0xf0)](_0x2db2a8(0xef))+'\x20config')),_0x3bd0f6[_0x2db2a8(0x13f)](_0x2db2a8(0xe0))&&console[_0x2db2a8(0xc2)](_0x2db2a8(0x114)+CLI_BIN_NAME+'\x20config\x20delete\x20inherit'),_0x3bd0f6[_0x2db2a8(0x13f)](_0x2db2a8(0xcd))&&console['log'](_0x2db2a8(0x133)+CLI_BIN_NAME+_0x2db2a8(0x11d)));const _0x303556=isInvalidLovrabetRegion(_0x2cdfd4[_0x2db2a8(0x14d)]??_0x2cdfd4[_0x2db2a8(0x12c)]?.['region']);_0x2dcfa7&&!_0x303556&&(console['log'](),console[_0x2db2a8(0xc2)](a124_0x52028e[_0x2db2a8(0x135)](_0x2db2a8(0x13c))),console['log'](a124_0x52028e[_0x2db2a8(0xe5)](_0x2db2a8(0x150)['repeat'](0x1e))),console[_0x2db2a8(0xc2)](_0x2db2a8(0x110)+a124_0x52028e[_0x2db2a8(0xd0)]('✗\x20Invalid')),console['log']('\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x2dcfa7[_0x2db2a8(0xfa)]),Object[_0x2db2a8(0xd2)][_0x2db2a8(0xcc)][_0x2db2a8(0xe3)](_0x339f8f['projectConfig'],_0x2db2a8(0xd4))&&console[_0x2db2a8(0xc2)](_0x2db2a8(0x147)+CLI_BIN_NAME+'\x20config\x20delete\x20routing'),Object[_0x2db2a8(0xd2)][_0x2db2a8(0xcc)][_0x2db2a8(0xe3)](_0x339f8f[_0x2db2a8(0x125)],_0x2db2a8(0xd4))&&console[_0x2db2a8(0xc2)](_0x2db2a8(0xf4)+CLI_BIN_NAME+_0x2db2a8(0x139)));console[_0x2db2a8(0xc2)](),console[_0x2db2a8(0xc2)](a124_0x52028e['bold'](_0x2db2a8(0xd8))),console[_0x2db2a8(0xc2)](a124_0x52028e[_0x2db2a8(0xe5)](_0x2db2a8(0x150)[_0x2db2a8(0x116)](0x1e))),console['log'](_0x2db2a8(0xc0)+(_0x2cdfd4[_0x2db2a8(0xe1)]||a124_0x52028e[_0x2db2a8(0xd0)](_0x2db2a8(0xd1))));const _0x3d8a4d=_0x303556?a124_0x52028e[_0x2db2a8(0xd0)](describeRegionValue(_0x2cdfd4[_0x2db2a8(0x14d)]??_0x2cdfd4[_0x2db2a8(0x12c)]?.['region'])+_0x2db2a8(0xff)):(_0x2cdfd4[_0x2db2a8(0xe7)]??DEFAULT_LOVRABET_REGION)+'\x20('+(_0x2cdfd4['regionSource']??_0x2db2a8(0x10c))+')';console['log'](_0x2db2a8(0x10b)+_0x3d8a4d),console[_0x2db2a8(0xc2)](_0x2db2a8(0x122)+_0x2cdfd4[_0x2db2a8(0x152)]),console[_0x2db2a8(0xc2)](_0x2db2a8(0x132)+_0x2cdfd4[_0x2db2a8(0xc3)]),console[_0x2db2a8(0xc2)](_0x2db2a8(0x118)+_0x2cdfd4[_0x2db2a8(0xdc)]),console['log'](_0x2db2a8(0x145)+(_0x2cdfd4[_0x2db2a8(0xd5)]||a124_0x52028e[_0x2db2a8(0xe5)](_0x2db2a8(0x13e)))),console['log'](_0x2db2a8(0xbd)+(_0x2cdfd4['currentApp']||a124_0x52028e['gray'](_0x2db2a8(0x13e)))),console[_0x2db2a8(0xc2)](_0x2db2a8(0x11f)+(_0x2cdfd4[_0x2db2a8(0xe8)]||a124_0x52028e[_0x2db2a8(0xe5)](_0x2db2a8(0x13e)))),console[_0x2db2a8(0xc2)](_0x2db2a8(0x128)+(_0x2cdfd4['format']||a124_0x52028e[_0x2db2a8(0xe5)]('(default:\x20'+DEFAULT_CONFIG_VALUES['format']+')'))),console[_0x2db2a8(0xc2)](_0x2db2a8(0xfe)+(_0x2cdfd4[_0x2db2a8(0x115)]??a124_0x52028e[_0x2db2a8(0xe5)](_0x2db2a8(0xc9)))),console['log'](_0x2db2a8(0x136)+_0x2cdfd4['riskLevel']),console[_0x2db2a8(0xc2)](_0x2db2a8(0x14c)+_0x2cdfd4['verbose']),console[_0x2db2a8(0xc2)](_0x2db2a8(0x10a)+(_0x2cdfd4[_0x2db2a8(0xfc)]?a124_0x52028e[_0x2db2a8(0xcb)](_0x2db2a8(0x112)+_0x2cdfd4[_0x2db2a8(0xfc)][_0x2db2a8(0x103)]+')'):_0x42d6d6?a124_0x52028e[_0x2db2a8(0xcb)](_0x2db2a8(0xc7)+_0x42d6d6['length']+')'):a124_0x52028e[_0x2db2a8(0xe5)](_0x2db2a8(0x13e))));const _0xfb4ce6=Object['keys'](_0x2cdfd4['apps']);if(_0xfb4ce6[_0x2db2a8(0x103)]>0x0){console[_0x2db2a8(0xc2)](),console['log'](a124_0x52028e['bold'](_0x2db2a8(0xc4))),console['log'](a124_0x52028e[_0x2db2a8(0xe5)]('\x20\x20─'[_0x2db2a8(0x116)](0x1e)));for(const _0x284163 of _0xfb4ce6){const _0x30b692=_0x2cdfd4[_0x2db2a8(0x10f)][_0x284163],_0x2a70f9=_0x284163===_0x2cdfd4[_0x2db2a8(0xd5)],_0x32f915=_0x284163===_0x2cdfd4[_0x2db2a8(0x104)],_0x1238ce=_0x32f915?a124_0x52028e[_0x2db2a8(0xcb)](_0x2db2a8(0x146)):'',_0x19acd8=_0x2a70f9?_0x2db2a8(0xce):'';console[_0x2db2a8(0xc2)]('\x20\x20'+_0x284163+_0x19acd8+_0x1238ce),console[_0x2db2a8(0xc2)](_0x2db2a8(0x126)+_0x30b692['appcode']);const _0x12e6cd=_0x339f8f[_0x2db2a8(0x121)][_0x2db2a8(0x10f)]&&typeof _0x339f8f[_0x2db2a8(0x121)][_0x2db2a8(0x10f)]==='object'?_0x339f8f[_0x2db2a8(0x121)]['apps']:{},_0x20fe4d=Object['prototype']['hasOwnProperty'][_0x2db2a8(0xe3)](_0x12e6cd,_0x284163),_0x473ec7=isInvalidLovrabetRegion(_0x30b692['region'])?{'region':_0x2cdfd4[_0x2db2a8(0xe7)]??DEFAULT_LOVRABET_REGION}:resolveEffectiveRegion({'appRegion':_0x30b692[_0x2db2a8(0xe7)],'projectRegion':_0x20fe4d?_0x339f8f[_0x2db2a8(0x121)][_0x2db2a8(0xe7)]:undefined,'globalRegion':_0x339f8f[_0x2db2a8(0x125)][_0x2db2a8(0xe7)],'mergedRegion':_0x2cdfd4[_0x2db2a8(0x12c)][_0x2db2a8(0xe7)],'appName':_0x284163}),_0x544f13=buildAppDoctorFields(_0x30b692,{'region':_0x473ec7['region'],'env':_0x2cdfd4['env'],'apiDir':_0x2cdfd4['raw'][_0x2db2a8(0xdc)]||DEFAULT_CONFIG_VALUES['apiDir'],'cookie':_0x2cdfd4['cookie']||_0x42d6d6||undefined,'accessKey':_0x2cdfd4[_0x2db2a8(0x142)]});console[_0x2db2a8(0xc2)](_0x2db2a8(0xf7)+_0x544f13[_0x2db2a8(0xe7)][_0x2db2a8(0x105)]+'\x20\x20'+a124_0x52028e[_0x2db2a8(0xe5)]('('+_0x544f13['region']['source']+')')),console[_0x2db2a8(0xc2)](_0x2db2a8(0xc8)+_0x544f13[_0x2db2a8(0x152)][_0x2db2a8(0x105)]+'\x20\x20'+a124_0x52028e[_0x2db2a8(0xe5)]('('+_0x544f13[_0x2db2a8(0x152)][_0x2db2a8(0x11e)]+')')),console[_0x2db2a8(0xc2)]('\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20'+_0x544f13[_0x2db2a8(0xdc)][_0x2db2a8(0x105)]+'\x20\x20'+a124_0x52028e['gray']('('+_0x544f13['apiDir'][_0x2db2a8(0x11e)]+')'));const _0x1f56ba=_0x544f13['cookie'][_0x2db2a8(0x105)]?a124_0x52028e[_0x2db2a8(0xcb)](_0x2db2a8(0x112)+_0x544f13['cookie'][_0x2db2a8(0x105)][_0x2db2a8(0x103)]+')'):a124_0x52028e['gray'](_0x2db2a8(0x13e));console[_0x2db2a8(0xc2)]('\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20'+_0x1f56ba+'\x20\x20'+a124_0x52028e[_0x2db2a8(0xe5)]('('+_0x544f13[_0x2db2a8(0xfc)][_0x2db2a8(0x11e)]+')'));const _0x5ffecc=_0x544f13[_0x2db2a8(0x142)][_0x2db2a8(0x105)]?a124_0x52028e[_0x2db2a8(0xcb)](_0x2db2a8(0x112)+_0x544f13[_0x2db2a8(0x142)][_0x2db2a8(0x105)][_0x2db2a8(0x103)]+')'):a124_0x52028e[_0x2db2a8(0xe5)](_0x2db2a8(0x13e));console[_0x2db2a8(0xc2)](_0x2db2a8(0x14f)+_0x5ffecc+'\x20\x20'+a124_0x52028e[_0x2db2a8(0xe5)]('('+_0x544f13[_0x2db2a8(0x142)][_0x2db2a8(0x11e)]+')'));}}console[_0x2db2a8(0xc2)](),console['log'](a124_0x52028e[_0x2db2a8(0x135)](_0x2db2a8(0x13d))),console[_0x2db2a8(0xc2)](a124_0x52028e[_0x2db2a8(0xe5)](_0x2db2a8(0x150)[_0x2db2a8(0x116)](0x1e)));_0x2dcfa7?console['log'](_0x2db2a8(0x110)+a124_0x52028e[_0x2db2a8(0xd0)](_0x2db2a8(0x117))):(console[_0x2db2a8(0xc2)](_0x2db2a8(0x10b)+getActiveRegion()),console[_0x2db2a8(0xc2)]('\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20'+getApiDomain()),console['log'](_0x2db2a8(0x14e)+getUserDomain()),console[_0x2db2a8(0xc2)](_0x2db2a8(0x13a)+getRuntimeDomain()),console[_0x2db2a8(0xc2)](_0x2db2a8(0xfb)+getSkillDomain()),console[_0x2db2a8(0xc2)](_0x2db2a8(0xee)+getKbDomain()),console[_0x2db2a8(0xc2)](_0x2db2a8(0x149)+(getKbServiceDomain()??_0x2db2a8(0x141))),console[_0x2db2a8(0xc2)](_0x2db2a8(0x11c)+getAppDomain()));console[_0x2db2a8(0xc2)](),console[_0x2db2a8(0xc2)](a124_0x52028e['bold']('\x20\x20Auth')),console['log'](a124_0x52028e['gray'](_0x2db2a8(0x150)[_0x2db2a8(0x116)](0x1e)));if(_0x2dcfa7)console[_0x2db2a8(0xc2)](_0x2db2a8(0x110)+a124_0x52028e[_0x2db2a8(0x106)](_0x2db2a8(0x137)));else{if(_0x42d6d6){const _0x5ef8da=await getIsSessionValid();console['log'](_0x2db2a8(0x110)+(_0x5ef8da?a124_0x52028e[_0x2db2a8(0xcb)](_0x2db2a8(0x10d)):a124_0x52028e[_0x2db2a8(0xd0)](_0x2db2a8(0x108))));}else console[_0x2db2a8(0xc2)](_0x2db2a8(0x110)+a124_0x52028e['red'](_0x2db2a8(0x143)));}return console[_0x2db2a8(0xc2)](),{'ok':!![]};}export const doctorDefinition={'service':a124_0x4c6cd5(0xde),'command':a124_0x4c6cd5(0xd6),'description':a124_0x4c6cd5(0xd7),'risk':a124_0x4c6cd5(0x11b),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
@@ -1 +1 @@
1
- const a125_0x507a67=a125_0x4d86;(function(_0x574f0d,_0x26a882){const _0x5ed255=a125_0x4d86,_0x1fcd76=_0x574f0d();while(!![]){try{const _0x10b4bf=parseInt(_0x5ed255(0x160))/0x1*(-parseInt(_0x5ed255(0x145))/0x2)+-parseInt(_0x5ed255(0x165))/0x3*(-parseInt(_0x5ed255(0x147))/0x4)+-parseInt(_0x5ed255(0x148))/0x5*(parseInt(_0x5ed255(0x159))/0x6)+-parseInt(_0x5ed255(0x14d))/0x7*(-parseInt(_0x5ed255(0x152))/0x8)+-parseInt(_0x5ed255(0x14f))/0x9*(parseInt(_0x5ed255(0x153))/0xa)+parseInt(_0x5ed255(0x15d))/0xb+parseInt(_0x5ed255(0x144))/0xc*(-parseInt(_0x5ed255(0x146))/0xd);if(_0x10b4bf===_0x26a882)break;else _0x1fcd76['push'](_0x1fcd76['shift']());}catch(_0x4f9a39){_0x1fcd76['push'](_0x1fcd76['shift']());}}}(a125_0x2fc9,0xc3ac6));import{requireDevelopmentUploadFile}from'../../commands/common/local-file.js';import{queryDevelopmentFileUrl,uploadDevelopmentFile}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a125_0x4d86(_0x1b9062,_0x14fa89){_0x1b9062=_0x1b9062-0x142;const _0x2fc977=a125_0x2fc9();let _0x4d86dd=_0x2fc977[_0x1b9062];return _0x4d86dd;}const FILE_FLAG={'name':'file','type':a125_0x507a67(0x150),'required':!![],'description':a125_0x507a67(0x14b)},FILEPATH_FLAG={'name':a125_0x507a67(0x157),'type':a125_0x507a67(0x150),'required':!![],'description':a125_0x507a67(0x151)},DOWNLOAD_FLAG={'name':a125_0x507a67(0x156),'type':a125_0x507a67(0x143),'description':'Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL'},LONG_TERM_FLAG={'name':'long-term','type':a125_0x507a67(0x143),'description':'Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML'};function requireFilePath(_0x1f9c8f){const _0x88bdd6=a125_0x507a67,_0x293855=_0x1f9c8f[_0x88bdd6(0x163)]();if(!_0x293855)throw CliErrors['validation']('filePath\x20is\x20required.');return _0x293855;}const fileUpload={'service':a125_0x507a67(0x15e),'command':a125_0x507a67(0x155),'description':a125_0x507a67(0x14c),'risk':'read','flags':[FILE_FLAG],async 'dryRun'(_0x8189ee){const _0x161b10=a125_0x507a67,_0x3c4611=requireDevelopmentUploadFile(_0x8189ee['str']('file'),'File');return{'method':'POST','url':_0x161b10(0x14e),'body':{'appCode':_0x8189ee['appCode'],'multipart':{'file':_0x3c4611}},'description':_0x161b10(0x149)+_0x3c4611['path']+_0x161b10(0x15f)+_0x8189ee[_0x161b10(0x14a)]};},async 'execute'(_0x27df95){const _0x4397c7=a125_0x507a67,_0x4f2d51=requireDevelopmentUploadFile(_0x27df95[_0x4397c7(0x142)](_0x4397c7(0x15e)),'File'),_0x22387d=await uploadDevelopmentFile(_0x27df95[_0x4397c7(0x14a)],_0x4f2d51[_0x4397c7(0x158)]);return{'ok':!![],'data':_0x22387d,'message':_0x22387d[_0x4397c7(0x162)]?_0x4397c7(0x15b)+_0x22387d[_0x4397c7(0x162)]+_0x4397c7(0x15a):_0x4397c7(0x161)};}},fileQueryUrl={'service':a125_0x507a67(0x15e),'command':'query-url','description':a125_0x507a67(0x164),'risk':a125_0x507a67(0x154),'flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0x259655){const _0x236bc7=a125_0x507a67,_0x299ac8=requireFilePath(_0x259655[_0x236bc7(0x142)](_0x236bc7(0x157))),_0x3149f7=await queryDevelopmentFileUrl(_0x299ac8,{'download':_0x259655['bool'](_0x236bc7(0x156)),'longTerm':_0x259655[_0x236bc7(0x15c)]('long-term')});return{'ok':!![],'data':_0x3149f7};}};function a125_0x2fc9(){const _0x404e06=['10236sPThni','19262AtLlSo','4511xldvov','32fkZHka','25EdyUpx','Preview:\x20upload\x20','appCode','Path\x20to\x20the\x20local\x20file\x20to\x20upload','Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','112zVCGxI','/smartapi/common/uploadFile','506457MlqMQX','string','Development\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data','743528gdXTfF','140UpCMKW','read','upload','download','filepath','path','1586514sSrtVE','.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','Uploaded\x20file:\x20','bool','11660121fmLMjW','file','\x20to\x20development\x20app\x20','87LWEfzy','Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','filePath','trim','Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20or\x20immediate\x20access','561831UEytnS','str','boolean'];a125_0x2fc9=function(){return _0x404e06;};return a125_0x2fc9();}export const fileDefinitions=[fileUpload,fileQueryUrl];
1
+ const a125_0x10d7e8=a125_0x1ba6;(function(_0x2b6b13,_0x4792ad){const _0x3dc590=a125_0x1ba6,_0xa9fb35=_0x2b6b13();while(!![]){try{const _0x51321a=-parseInt(_0x3dc590(0x142))/0x1*(parseInt(_0x3dc590(0x144))/0x2)+parseInt(_0x3dc590(0x160))/0x3*(-parseInt(_0x3dc590(0x14b))/0x4)+parseInt(_0x3dc590(0x156))/0x5+parseInt(_0x3dc590(0x161))/0x6+parseInt(_0x3dc590(0x145))/0x7+-parseInt(_0x3dc590(0x159))/0x8*(parseInt(_0x3dc590(0x15d))/0x9)+parseInt(_0x3dc590(0x152))/0xa;if(_0x51321a===_0x4792ad)break;else _0xa9fb35['push'](_0xa9fb35['shift']());}catch(_0xdc47e0){_0xa9fb35['push'](_0xa9fb35['shift']());}}}(a125_0x1d4e,0xb1161));import{requireDevelopmentUploadFile}from'../../commands/common/local-file.js';function a125_0x1ba6(_0x133942,_0x20beee){_0x133942=_0x133942-0x13c;const _0x1d4e6b=a125_0x1d4e();let _0x1ba644=_0x1d4e6b[_0x133942];return _0x1ba644;}import{queryDevelopmentFileUrl,uploadDevelopmentFile}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const FILE_FLAG={'name':a125_0x10d7e8(0x15e),'type':'string','required':!![],'description':'Path\x20to\x20the\x20local\x20file\x20to\x20upload'},FILEPATH_FLAG={'name':a125_0x10d7e8(0x157),'type':a125_0x10d7e8(0x155),'required':!![],'description':a125_0x10d7e8(0x148)},DOWNLOAD_FLAG={'name':a125_0x10d7e8(0x14c),'type':a125_0x10d7e8(0x143),'description':'Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL'},LONG_TERM_FLAG={'name':a125_0x10d7e8(0x14d),'type':a125_0x10d7e8(0x143),'description':a125_0x10d7e8(0x151)};function requireFilePath(_0x1f5d8e){const _0xd18783=a125_0x10d7e8,_0x483dbe=_0x1f5d8e[_0xd18783(0x15b)]();if(!_0x483dbe)throw CliErrors[_0xd18783(0x13f)](_0xd18783(0x154));return _0x483dbe;}const fileUpload={'service':a125_0x10d7e8(0x15e),'command':a125_0x10d7e8(0x141),'description':a125_0x10d7e8(0x15f),'risk':a125_0x10d7e8(0x150),'flags':[FILE_FLAG],async 'dryRun'(_0x539296){const _0x47d335=a125_0x10d7e8,_0x13366a=requireDevelopmentUploadFile(_0x539296['str'](_0x47d335(0x15e)),_0x47d335(0x15a));return{'method':_0x47d335(0x15c),'url':_0x47d335(0x13e),'body':{'appCode':_0x539296[_0x47d335(0x14e)],'multipart':{'file':_0x13366a}},'description':_0x47d335(0x14a)+_0x13366a[_0x47d335(0x140)]+_0x47d335(0x158)+_0x539296[_0x47d335(0x14e)]};},async 'execute'(_0x11b26c){const _0x7d0c11=a125_0x10d7e8,_0xc66c4b=requireDevelopmentUploadFile(_0x11b26c['str'](_0x7d0c11(0x15e)),'File'),_0x19549c=await uploadDevelopmentFile(_0x11b26c['appCode'],_0xc66c4b[_0x7d0c11(0x140)]);return{'ok':!![],'data':_0x19549c,'message':_0x19549c[_0x7d0c11(0x146)]?_0x7d0c11(0x153)+_0x19549c[_0x7d0c11(0x146)]+'.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.':_0x7d0c11(0x13c)};}},fileQueryUrl={'service':a125_0x10d7e8(0x15e),'command':a125_0x10d7e8(0x14f),'description':a125_0x10d7e8(0x13d),'risk':a125_0x10d7e8(0x150),'flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0x1c33d9){const _0x1d7bf2=a125_0x10d7e8,_0x3911bd=requireFilePath(_0x1c33d9[_0x1d7bf2(0x149)](_0x1d7bf2(0x157))),_0x4a0728=await queryDevelopmentFileUrl(_0x3911bd,{'download':_0x1c33d9[_0x1d7bf2(0x147)](_0x1d7bf2(0x14c)),'longTerm':_0x1c33d9['bool'](_0x1d7bf2(0x14d))});return{'ok':!![],'data':_0x4a0728};}};export const fileDefinitions=[fileUpload,fileQueryUrl];function a125_0x1d4e(){const _0x42c2b4=['3776445VCukhL','file','Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','7500MtMycq','4615032lHRVfU','Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20or\x20immediate\x20access','/smartapi/common/uploadFile','validation','path','upload','49XzRAli','boolean','30186HDuTxv','8773520IVhojC','filePath','bool','Development\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data','str','Preview:\x20upload\x20','320pqBcZI','download','long-term','appCode','query-url','read','Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML','6973640aAodPZ','Uploaded\x20file:\x20','filePath\x20is\x20required.','string','1019105fYQJxY','filepath','\x20to\x20development\x20app\x20','24XpnHdZ','File','trim','POST'];a125_0x1d4e=function(){return _0x42c2b4;};return a125_0x1d4e();}
@@ -1 +1 @@
1
- const a126_0x328bdb=a126_0x4a64;(function(_0x1bcf0b,_0x4a186a){const _0x2296ac=a126_0x4a64,_0x1d70b2=_0x1bcf0b();while(!![]){try{const _0x8c5ab2=-parseInt(_0x2296ac(0x177))/0x1+-parseInt(_0x2296ac(0x16b))/0x2*(-parseInt(_0x2296ac(0x16d))/0x3)+-parseInt(_0x2296ac(0x170))/0x4+-parseInt(_0x2296ac(0x168))/0x5*(parseInt(_0x2296ac(0x16f))/0x6)+parseInt(_0x2296ac(0x176))/0x7+parseInt(_0x2296ac(0x16a))/0x8+parseInt(_0x2296ac(0x173))/0x9;if(_0x8c5ab2===_0x4a186a)break;else _0x1d70b2['push'](_0x1d70b2['shift']());}catch(_0x332fde){_0x1d70b2['push'](_0x1d70b2['shift']());}}}(a126_0x139a,0x42f75));function a126_0x139a(){const _0x4664a3=['381907dOLXiY','appCode','POST','flow','Create\x20a\x20draft\x20flow\x20definition\x20from\x20a\x20local\x20FlowConfig\x20file','614335zvLHLJ','create','245072XAxZyv','6wZvltQ','flowName','244131MyHvLp','.\x20Flow\x20URL:\x20','18iDCneK','102548NQlIIH','\x20(id=','write','6929892GOzBqC','Created\x20flow\x20','datasetCode','39795axOzjG'];a126_0x139a=function(){return _0x4664a3;};return a126_0x139a();}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';function a126_0x4a64(_0x2b2a27,_0x53f25a){_0x2b2a27=_0x2b2a27-0x168;const _0x139a5b=a126_0x139a();let _0x4a6439=_0x139a5b[_0x2b2a27];return _0x4a6439;}export const flowCreate={'service':a126_0x328bdb(0x17a),'command':a126_0x328bdb(0x169),'description':a126_0x328bdb(0x17b),'risk':a126_0x328bdb(0x172),'flags':[FLOW_FILE_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x3ec07a){readFlowFilePath(_0x3ec07a);},async 'dryRun'(_0x229361){const _0x2cbc6f=a126_0x328bdb,{request:_0x2dd072,warnings:_0x36c797}=await prepareFlowWrite(readFlowFilePath(_0x229361),_0x229361['appCode']);return asDryRunResult({'operation':_0x2cbc6f(0x169),'selector':{'appCode':_0x229361['appCode'],'flowName':_0x2dd072[_0x2cbc6f(0x16c)],..._0x2dd072['datasetCode']?{'datasetCode':_0x2dd072[_0x2cbc6f(0x175)]}:{}},'before':null,'after':_0x2dd072,'request':_0x2dd072,'dryRun':!![],'backend':{'method':_0x2cbc6f(0x179),'path':FLOW_PATHS[_0x2cbc6f(0x169)]},'warnings':_0x36c797},{'method':_0x2cbc6f(0x179),'url':FLOW_PATHS[_0x2cbc6f(0x169)]});},async 'execute'(_0x4d13db){const _0x2d54f9=a126_0x328bdb,{request:_0x5a9cc3,warnings:_0x5bac77}=await prepareFlowWrite(readFlowFilePath(_0x4d13db),_0x4d13db[_0x2d54f9(0x178)]);await confirmFlowWrite(_0x4d13db,_0x2d54f9(0x169),_0x5a9cc3);const _0x2515d7=await createFlowDefinition(_0x5a9cc3),_0x3a550f=buildFlowUrl(_0x4d13db[_0x2d54f9(0x178)],_0x2515d7['id']),_0x433cdd=''+(_0x2515d7[_0x2d54f9(0x16c)]||_0x5a9cc3[_0x2d54f9(0x16c)])+(_0x2515d7['id']?_0x2d54f9(0x171)+_0x2515d7['id']+')':'');return{'ok':!![],'data':{'operation':_0x2d54f9(0x169),'selector':flowSelector(_0x4d13db[_0x2d54f9(0x178)],_0x2515d7['id'],_0x2515d7),'before':null,'after':_0x2515d7,'flowUrl':_0x3a550f,'dryRun':![],'backend':{'method':_0x2d54f9(0x179),'path':FLOW_PATHS[_0x2d54f9(0x169)]},'warnings':_0x5bac77},'message':_0x2d54f9(0x174)+_0x433cdd+_0x2d54f9(0x16e)+_0x3a550f};}};
1
+ const a126_0x2b02f1=a126_0x6845;(function(_0x40f7c3,_0xcb019b){const _0x56f474=a126_0x6845,_0x56b24a=_0x40f7c3();while(!![]){try{const _0x166f8c=parseInt(_0x56f474(0x81))/0x1*(-parseInt(_0x56f474(0x83))/0x2)+-parseInt(_0x56f474(0x79))/0x3+-parseInt(_0x56f474(0x82))/0x4+parseInt(_0x56f474(0x84))/0x5+-parseInt(_0x56f474(0x80))/0x6*(-parseInt(_0x56f474(0x87))/0x7)+parseInt(_0x56f474(0x7e))/0x8+-parseInt(_0x56f474(0x76))/0x9;if(_0x166f8c===_0xcb019b)break;else _0x56b24a['push'](_0x56b24a['shift']());}catch(_0x417fbf){_0x56b24a['push'](_0x56b24a['shift']());}}}(a126_0x1799,0x8cb57));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a126_0x1799(){const _0x370305=['8148304iXIlpq','.\x20Flow\x20URL:\x20','10554yDUJrN','1OYzmGL','4444352KGnbEp','161870eSSzwX','2587945oXwBLa','appCode','POST','3633DgSmGm','datasetCode','5968449XHLMxc','Create\x20a\x20draft\x20flow\x20definition\x20from\x20a\x20local\x20FlowConfig\x20file','Created\x20flow\x20','52563nKfhQl','create','\x20(id=','write','flowName'];a126_0x1799=function(){return _0x370305;};return a126_0x1799();}import{asDryRunResult}from'../../commands/common/dry-run.js';function a126_0x6845(_0x3c2c54,_0x5c25be){_0x3c2c54=_0x3c2c54-0x75;const _0x1799fa=a126_0x1799();let _0x684513=_0x1799fa[_0x3c2c54];return _0x684513;}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':'flow','command':a126_0x2b02f1(0x7a),'description':a126_0x2b02f1(0x77),'risk':a126_0x2b02f1(0x7c),'flags':[FLOW_FILE_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x4fda6b){readFlowFilePath(_0x4fda6b);},async 'dryRun'(_0x44a385){const _0x305ed5=a126_0x2b02f1,{request:_0x1bf6f4,warnings:_0x5e4269}=await prepareFlowWrite(readFlowFilePath(_0x44a385),_0x44a385['appCode']);return asDryRunResult({'operation':_0x305ed5(0x7a),'selector':{'appCode':_0x44a385[_0x305ed5(0x85)],'flowName':_0x1bf6f4[_0x305ed5(0x7d)],..._0x1bf6f4[_0x305ed5(0x75)]?{'datasetCode':_0x1bf6f4[_0x305ed5(0x75)]}:{}},'before':null,'after':_0x1bf6f4,'request':_0x1bf6f4,'dryRun':!![],'backend':{'method':'POST','path':FLOW_PATHS[_0x305ed5(0x7a)]},'warnings':_0x5e4269},{'method':_0x305ed5(0x86),'url':FLOW_PATHS[_0x305ed5(0x7a)]});},async 'execute'(_0x4926de){const _0x3313a2=a126_0x2b02f1,{request:_0x4f52f1,warnings:_0x26b534}=await prepareFlowWrite(readFlowFilePath(_0x4926de),_0x4926de[_0x3313a2(0x85)]);await confirmFlowWrite(_0x4926de,_0x3313a2(0x7a),_0x4f52f1);const _0x175567=await createFlowDefinition(_0x4f52f1),_0x4dbb53=buildFlowUrl(_0x4926de[_0x3313a2(0x85)],_0x175567['id']),_0x18664b=''+(_0x175567[_0x3313a2(0x7d)]||_0x4f52f1[_0x3313a2(0x7d)])+(_0x175567['id']?_0x3313a2(0x7b)+_0x175567['id']+')':'');return{'ok':!![],'data':{'operation':_0x3313a2(0x7a),'selector':flowSelector(_0x4926de[_0x3313a2(0x85)],_0x175567['id'],_0x175567),'before':null,'after':_0x175567,'flowUrl':_0x4dbb53,'dryRun':![],'backend':{'method':'POST','path':FLOW_PATHS[_0x3313a2(0x7a)]},'warnings':_0x26b534},'message':_0x3313a2(0x78)+_0x18664b+_0x3313a2(0x7f)+_0x4dbb53};}};
@@ -1 +1 @@
1
- const a127_0xde5caf=a127_0x3cb8;(function(_0x3d0f3b,_0x335586){const _0x1b3257=a127_0x3cb8,_0x2cf7e0=_0x3d0f3b();while(!![]){try{const _0x5bf7ba=parseInt(_0x1b3257(0x1c8))/0x1*(-parseInt(_0x1b3257(0x1c0))/0x2)+parseInt(_0x1b3257(0x1c9))/0x3*(parseInt(_0x1b3257(0x1cf))/0x4)+parseInt(_0x1b3257(0x1b4))/0x5+-parseInt(_0x1b3257(0x1be))/0x6*(-parseInt(_0x1b3257(0x1d5))/0x7)+-parseInt(_0x1b3257(0x1d1))/0x8+parseInt(_0x1b3257(0x1bc))/0x9+-parseInt(_0x1b3257(0x1d2))/0xa*(parseInt(_0x1b3257(0x1c1))/0xb);if(_0x5bf7ba===_0x335586)break;else _0x2cf7e0['push'](_0x2cf7e0['shift']());}catch(_0x10e6c8){_0x2cf7e0['push'](_0x2cf7e0['shift']());}}}(a127_0x28ff,0xde6c2));import{mkdir,stat}from'node:fs/promises';import{dirname,resolve}from'node:path';function a127_0x3cb8(_0xf240a3,_0x2b58b4){_0xf240a3=_0xf240a3-0x1b4;const _0x28ff0d=a127_0x28ff();let _0x3cb8fc=_0x28ff0d[_0xf240a3];return _0x3cb8fc;}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{getFlowDefinition}from'../../core/api-client.js';import{writeNormalizedFlowConfig}from'../../core/flow-config.js';import{CliErrors}from'../../errors.js';import{FLOW_ID_FLAG,flowDefinitionToConfig,readFlowId}from'../../commands/flow/shared.js';export const flowDetail={'service':a127_0xde5caf(0x1d7),'command':a127_0xde5caf(0x1c3),'description':a127_0xde5caf(0x1c6),'risk':a127_0xde5caf(0x1b7),'flags':[FLOW_ID_FLAG,{'name':a127_0xde5caf(0x1b8),'type':a127_0xde5caf(0x1d3),'description':a127_0xde5caf(0x1b9)},{'name':'force','type':a127_0xde5caf(0x1ba),'description':a127_0xde5caf(0x1cb)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x102a2b){readFlowId(_0x102a2b);},async 'execute'(_0x1ef820){const _0x51f83a=a127_0xde5caf,_0x31d01d=readFlowId(_0x1ef820),_0x4a1dbc=_0x1ef820[_0x51f83a(0x1bb)](_0x51f83a(0x1b8))[_0x51f83a(0x1ce)](),_0x5325a9=_0x4a1dbc?resolve(_0x4a1dbc):undefined;if(_0x5325a9&&!_0x1ef820['bool']('force')&&await fileExists(_0x5325a9))throw CliErrors[_0x51f83a(0x1b5)](_0x51f83a(0x1d8)+_0x5325a9,_0x51f83a(0x1b6));const _0x43a36f=await getFlowDefinition(_0x1ef820[_0x51f83a(0x1bf)],_0x31d01d);let _0x434ff6;if(_0x5325a9){const _0x6c3ef=flowDefinitionToConfig(_0x43a36f);await mkdir(dirname(_0x5325a9),{'recursive':!![]});try{await writeNormalizedFlowConfig(_0x5325a9,_0x6c3ef[_0x51f83a(0x1c5)],{'overwrite':_0x1ef820['bool']('force')});}catch(_0x297fd1){if(isAlreadyExistsError(_0x297fd1))throw CliErrors[_0x51f83a(0x1b5)]('FlowConfig\x20output\x20already\x20exists:\x20'+_0x5325a9,'Pass\x20--force\x20to\x20overwrite\x20it.');throw _0x297fd1;}_0x434ff6={'path':_0x5325a9,'warnings':_0x6c3ef[_0x51f83a(0x1d6)]};}return{'ok':!![],'data':{'flow':_0x43a36f,..._0x434ff6?{'output':_0x434ff6}:{}},'message':_0x434ff6?_0x51f83a(0x1bd)+(_0x43a36f['flowName']||_0x43a36f[_0x51f83a(0x1cc)]||_0x31d01d)+_0x51f83a(0x1c2)+_0x434ff6[_0x51f83a(0x1d4)]:_0x51f83a(0x1c4)+(_0x43a36f[_0x51f83a(0x1d0)]||_0x43a36f['flowCode']||_0x31d01d)};}};function a127_0x28ff(){const _0x40907a=['trim','8yaNpvi','flowName','2936128yDeKck','10VCNyhK','string','path','4585YYqoQP','warnings','flow','FlowConfig\x20output\x20already\x20exists:\x20','2450195YziumS','validation','Pass\x20--force\x20to\x20overwrite\x20it.','read','output','Write\x20a\x20portable\x20normalized\x20FlowConfig\x20JSON\x20file','boolean','str','12140172OurlaT','Wrote\x20FlowConfig\x20for\x20','15102FmiBKU','appCode','22zifnpA','24290453aGocNl','\x20to\x20','detail','Flow\x20','config','Get\x20one\x20design-time\x20flow\x20definition','EEXIST','24755zhVChB','406506RUMqNw','ENOENT','Overwrite\x20an\x20existing\x20output\x20file','flowCode','code'];a127_0x28ff=function(){return _0x40907a;};return a127_0x28ff();}async function fileExists(_0x55193f){try{return await stat(_0x55193f),!![];}catch(_0x439c51){return!isNotFoundError(_0x439c51);}}function isNotFoundError(_0x1ca39c){const _0x28e9bc=a127_0xde5caf;return _0x1ca39c?.[_0x28e9bc(0x1cd)]===_0x28e9bc(0x1ca);}function isAlreadyExistsError(_0x3c705b){const _0x2b08d0=a127_0xde5caf;return _0x3c705b?.[_0x2b08d0(0x1cd)]===_0x2b08d0(0x1c7);}
1
+ const a127_0x34740b=a127_0x4231;(function(_0x4a174b,_0x26bcb4){const _0x25f320=a127_0x4231,_0x367511=_0x4a174b();while(!![]){try{const _0x3944b5=-parseInt(_0x25f320(0x192))/0x1+-parseInt(_0x25f320(0x187))/0x2+parseInt(_0x25f320(0x18e))/0x3*(parseInt(_0x25f320(0x198))/0x4)+parseInt(_0x25f320(0x194))/0x5+-parseInt(_0x25f320(0x19a))/0x6+-parseInt(_0x25f320(0x197))/0x7+parseInt(_0x25f320(0x18f))/0x8;if(_0x3944b5===_0x26bcb4)break;else _0x367511['push'](_0x367511['shift']());}catch(_0x5898c0){_0x367511['push'](_0x367511['shift']());}}}(a127_0x1699,0x6cdd3));import{mkdir,stat}from'node:fs/promises';import{dirname,resolve}from'node:path';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{getFlowDefinition}from'../../core/api-client.js';import{writeNormalizedFlowConfig}from'../../core/flow-config.js';import{CliErrors}from'../../errors.js';import{FLOW_ID_FLAG,flowDefinitionToConfig,readFlowId}from'../../commands/flow/shared.js';export const flowDetail={'service':a127_0x34740b(0x19d),'command':a127_0x34740b(0x19b),'description':'Get\x20one\x20design-time\x20flow\x20definition','risk':a127_0x34740b(0x183),'flags':[FLOW_ID_FLAG,{'name':a127_0x34740b(0x190),'type':a127_0x34740b(0x18c),'description':a127_0x34740b(0x195)},{'name':'force','type':a127_0x34740b(0x196),'description':'Overwrite\x20an\x20existing\x20output\x20file'},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x1f7d2a){readFlowId(_0x1f7d2a);},async 'execute'(_0x4dca30){const _0x543b59=a127_0x34740b,_0x3c1773=readFlowId(_0x4dca30),_0x1bebc4=_0x4dca30[_0x543b59(0x18b)]('output')[_0x543b59(0x189)](),_0x588515=_0x1bebc4?resolve(_0x1bebc4):undefined;if(_0x588515&&!_0x4dca30[_0x543b59(0x181)](_0x543b59(0x19e))&&await fileExists(_0x588515))throw CliErrors[_0x543b59(0x186)](_0x543b59(0x18a)+_0x588515,_0x543b59(0x191));const _0x5cc33f=await getFlowDefinition(_0x4dca30[_0x543b59(0x188)],_0x3c1773);let _0x19d013;if(_0x588515){const _0x1d103a=flowDefinitionToConfig(_0x5cc33f);await mkdir(dirname(_0x588515),{'recursive':!![]});try{await writeNormalizedFlowConfig(_0x588515,_0x1d103a['config'],{'overwrite':_0x4dca30[_0x543b59(0x181)](_0x543b59(0x19e))});}catch(_0x104a82){if(isAlreadyExistsError(_0x104a82))throw CliErrors[_0x543b59(0x186)](_0x543b59(0x18a)+_0x588515,_0x543b59(0x191));throw _0x104a82;}_0x19d013={'path':_0x588515,'warnings':_0x1d103a[_0x543b59(0x19c)]};}return{'ok':!![],'data':{'flow':_0x5cc33f,..._0x19d013?{'output':_0x19d013}:{}},'message':_0x19d013?_0x543b59(0x185)+(_0x5cc33f[_0x543b59(0x182)]||_0x5cc33f[_0x543b59(0x19f)]||_0x3c1773)+'\x20to\x20'+_0x19d013[_0x543b59(0x18d)]:'Flow\x20'+(_0x5cc33f[_0x543b59(0x182)]||_0x5cc33f[_0x543b59(0x19f)]||_0x3c1773)};}};async function fileExists(_0x2a0700){try{return await stat(_0x2a0700),!![];}catch(_0x5a6dba){return!isNotFoundError(_0x5a6dba);}}function isNotFoundError(_0x1ae37a){const _0x362aa4=a127_0x34740b;return _0x1ae37a?.[_0x362aa4(0x184)]===_0x362aa4(0x199);}function isAlreadyExistsError(_0x12a045){const _0xf084aa=a127_0x34740b;return _0x12a045?.[_0xf084aa(0x184)]===_0xf084aa(0x193);}function a127_0x4231(_0x5af6e5,_0x120ecc){_0x5af6e5=_0x5af6e5-0x181;const _0x169919=a127_0x1699();let _0x4231c2=_0x169919[_0x5af6e5];return _0x4231c2;}function a127_0x1699(){const _0x3f5ac6=['4625166ggicBZ','28DNppcJ','ENOENT','2381616AmVxbp','detail','warnings','flow','force','flowCode','bool','flowName','read','code','Wrote\x20FlowConfig\x20for\x20','validation','608784lvRkRy','appCode','trim','FlowConfig\x20output\x20already\x20exists:\x20','str','string','path','21039ruMunE','13900368DHvliO','output','Pass\x20--force\x20to\x20overwrite\x20it.','367910KOZRRK','EEXIST','1946230bFlzzf','Write\x20a\x20portable\x20normalized\x20FlowConfig\x20JSON\x20file','boolean'];a127_0x1699=function(){return _0x3f5ac6;};return a127_0x1699();}
@@ -1 +1 @@
1
- (function(_0xde0898,_0x1a0931){const _0x4b9bfa=a128_0x4277,_0x176b9d=_0xde0898();while(!![]){try{const _0x5bec10=parseInt(_0x4b9bfa(0x183))/0x1+parseInt(_0x4b9bfa(0x186))/0x2+parseInt(_0x4b9bfa(0x17e))/0x3*(-parseInt(_0x4b9bfa(0x17f))/0x4)+parseInt(_0x4b9bfa(0x180))/0x5*(parseInt(_0x4b9bfa(0x17d))/0x6)+parseInt(_0x4b9bfa(0x185))/0x7*(parseInt(_0x4b9bfa(0x187))/0x8)+parseInt(_0x4b9bfa(0x188))/0x9*(-parseInt(_0x4b9bfa(0x182))/0xa)+parseInt(_0x4b9bfa(0x184))/0xb*(-parseInt(_0x4b9bfa(0x181))/0xc);if(_0x5bec10===_0x1a0931)break;else _0x176b9d['push'](_0x176b9d['shift']());}catch(_0x262db6){_0x176b9d['push'](_0x176b9d['shift']());}}}(a128_0x19ea,0xb8a8a));import{flowValidate}from'../../commands/flow/validate.js';import{flowPageList}from'../../commands/flow/page-list.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';function a128_0x4277(_0x434305,_0x23af5b){_0x434305=_0x434305-0x17d;const _0x19ea08=a128_0x19ea();let _0x42771c=_0x19ea08[_0x434305];return _0x42771c;}import{flowRuntimeRoleList}from'../../commands/flow/runtime-role-list.js';function a128_0x19ea(){const _0x1badd9=['6xBOcCc','18054jLonTW','200BVLNeC','4967965OXDKWy','94176HOyblj','10zPScrE','588641zAeOYt','121bbKlqq','315yyThQh','1200900PnPmUb','70232kLtZVF','12907341LAezIZ'];a128_0x19ea=function(){return _0x1badd9;};return a128_0x19ea();}import{flowRuntimeUserSearch}from'../../commands/flow/runtime-user-search.js';import{flowRuntimeRoleUserList}from'../../commands/flow/runtime-role-user-list.js';export const flowDefinitions=[flowValidate,flowList,flowPageList,flowDetail,flowCreate,flowUpdate,flowPublish,flowRuntimeRoleList,flowRuntimeUserSearch,flowRuntimeRoleUserList];
1
+ (function(_0x85fe9b,_0x314b77){const _0x13f612=a128_0x3085,_0x5ed131=_0x85fe9b();while(!![]){try{const _0xd02729=parseInt(_0x13f612(0xff))/0x1*(parseInt(_0x13f612(0xfc))/0x2)+parseInt(_0x13f612(0xfe))/0x3*(-parseInt(_0x13f612(0x107))/0x4)+-parseInt(_0x13f612(0x100))/0x5*(-parseInt(_0x13f612(0xfd))/0x6)+-parseInt(_0x13f612(0x101))/0x7*(-parseInt(_0x13f612(0x104))/0x8)+-parseInt(_0x13f612(0x103))/0x9*(parseInt(_0x13f612(0x106))/0xa)+parseInt(_0x13f612(0x102))/0xb*(-parseInt(_0x13f612(0x105))/0xc)+parseInt(_0x13f612(0xfb))/0xd;if(_0xd02729===_0x314b77)break;else _0x5ed131['push'](_0x5ed131['shift']());}catch(_0x4f5f0e){_0x5ed131['push'](_0x5ed131['shift']());}}}(a128_0x1ba7,0x658b6));import{flowValidate}from'../../commands/flow/validate.js';import{flowPageList}from'../../commands/flow/page-list.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';function a128_0x1ba7(){const _0x2481b1=['6APJGrs','847764Gcbfik','61593INVVta','1977530kydxpm','314713iOiTXB','11gDrCNw','200853eoiRmz','16ePlrJE','9749604jDyPnt','130rcXASo','4wMqIiu','12299560NVWwpL','12GmODmI'];a128_0x1ba7=function(){return _0x2481b1;};return a128_0x1ba7();}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 a128_0x3085(_0x1b9b26,_0xf73652){_0x1b9b26=_0x1b9b26-0xfb;const _0x1ba74d=a128_0x1ba7();let _0x308582=_0x1ba74d[_0x1b9b26];return _0x308582;}export const flowDefinitions=[flowValidate,flowList,flowPageList,flowDetail,flowCreate,flowUpdate,flowPublish,flowRuntimeRoleList,flowRuntimeUserSearch,flowRuntimeRoleUserList];
@@ -1 +1 @@
1
- function a129_0x4be4(){const _0x5214c9=['411272rSrEGH','68710IASaPK','number','string','Page\x20size','Filter\x20by\x20flow\x20name','num','1394294kHGkRS','16839VOfaUY','2390cfejsk','validation','Page\x20number\x20(1-based)','Filter\x20by\x20flow\x20type','Filter\x20by\x20flow\x20status','trim','str','--page-size\x20must\x20be\x20a\x20positive\x20integer.','page','draft','length','flow-name','2173KDgWef','4yRkPNx','flow','List\x20design-time\x20flow\x20definitions\x20for\x20the\x20current\x20app','flow-type','flow-status','published','flow-code','259244fNjGLk','21UQSFXG','174cmrFxB','list','Found\x20','page-size','Filter\x20by\x20dataset\x20code','read','Filter\x20by\x20exact\x20server-generated\x20flow\x20code','372504JVZxJJ','appCode','dataset-code'];a129_0x4be4=function(){return _0x5214c9;};return a129_0x4be4();}const a129_0x563fbd=a129_0x40c3;function a129_0x40c3(_0x1a709b,_0xda371b){_0x1a709b=_0x1a709b-0x198;const _0x4be4b0=a129_0x4be4();let _0x40c39a=_0x4be4b0[_0x1a709b];return _0x40c39a;}(function(_0x41885e,_0x563c59){const _0x4f9f4f=a129_0x40c3,_0x4764e1=_0x41885e();while(!![]){try{const _0x52c963=parseInt(_0x4f9f4f(0x1b0))/0x1*(parseInt(_0x4f9f4f(0x1b1))/0x2)+parseInt(_0x4f9f4f(0x198))/0x3+parseInt(_0x4f9f4f(0x1b8))/0x4+-parseInt(_0x4f9f4f(0x19c))/0x5*(parseInt(_0x4f9f4f(0x1ba))/0x6)+parseInt(_0x4f9f4f(0x1b9))/0x7*(parseInt(_0x4f9f4f(0x19b))/0x8)+-parseInt(_0x4f9f4f(0x1a3))/0x9*(-parseInt(_0x4f9f4f(0x1a4))/0xa)+-parseInt(_0x4f9f4f(0x1a2))/0xb;if(_0x52c963===_0x563c59)break;else _0x4764e1['push'](_0x4764e1['shift']());}catch(_0x42218f){_0x4764e1['push'](_0x4764e1['shift']());}}}(a129_0x4be4,0x41c89));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{listFlowDefinitions}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const FLOW_STATUSES=[a129_0x563fbd(0x1ad),a129_0x563fbd(0x1b6)];export const flowList={'service':a129_0x563fbd(0x1b2),'command':a129_0x563fbd(0x1bb),'description':a129_0x563fbd(0x1b3),'risk':a129_0x563fbd(0x1bf),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a129_0x563fbd(0x1b7),'type':a129_0x563fbd(0x19e),'description':a129_0x563fbd(0x1c0)},{'name':'flow-name','type':a129_0x563fbd(0x19e),'description':a129_0x563fbd(0x1a0)},{'name':'flow-status','type':a129_0x563fbd(0x19e),'description':a129_0x563fbd(0x1a8),'enum':FLOW_STATUSES},{'name':a129_0x563fbd(0x19a),'type':a129_0x563fbd(0x19e),'description':a129_0x563fbd(0x1be)},{'name':a129_0x563fbd(0x1b4),'type':'string','description':a129_0x563fbd(0x1a7)},{'name':a129_0x563fbd(0x1ac),'type':a129_0x563fbd(0x19d),'description':a129_0x563fbd(0x1a6),'default':0x1},{'name':a129_0x563fbd(0x1bd),'type':a129_0x563fbd(0x19d),'description':a129_0x563fbd(0x19f),'default':0x14}],async 'validate'(_0x3cfe31){const _0x55ad06=a129_0x563fbd,_0x5aaea1=_0x3cfe31['num'](_0x55ad06(0x1ac),0x1),_0x453b43=_0x3cfe31[_0x55ad06(0x1a1)](_0x55ad06(0x1bd),0x14);if(!Number['isSafeInteger'](_0x5aaea1)||_0x5aaea1<0x1)throw CliErrors[_0x55ad06(0x1a5)]('--page\x20must\x20be\x20a\x20positive\x20integer.');if(!Number['isSafeInteger'](_0x453b43)||_0x453b43<0x1)throw CliErrors[_0x55ad06(0x1a5)](_0x55ad06(0x1ab));},async 'execute'(_0x380346){const _0x1dda3e=a129_0x563fbd,{items:_0x1abf37,paging:_0x2da218}=await listFlowDefinitions(_0x380346['appCode'],{'flowCode':optionalString(_0x380346['str']('flow-code')),'flowName':optionalString(_0x380346['str'](_0x1dda3e(0x1af))),'flowStatus':optionalString(_0x380346['str'](_0x1dda3e(0x1b5))),'datasetCode':optionalString(_0x380346['str']('dataset-code')),'flowType':optionalString(_0x380346[_0x1dda3e(0x1aa)](_0x1dda3e(0x1b4))),'pageNum':_0x380346[_0x1dda3e(0x1a1)](_0x1dda3e(0x1ac),0x1),'pageSize':_0x380346[_0x1dda3e(0x1a1)]('page-size',0x14)});return{'ok':!![],'data':{'appCode':_0x380346[_0x1dda3e(0x199)],'flows':_0x1abf37,'paging':_0x2da218},'message':_0x1dda3e(0x1bc)+_0x1abf37[_0x1dda3e(0x1ae)]+'\x20flow\x20definition(s)'};}};function optionalString(_0x46f319){const _0x5a1c57=a129_0x563fbd,_0x5daa74=_0x46f319[_0x5a1c57(0x1a9)]();return _0x5daa74||undefined;}
1
+ const a129_0x49b5fa=a129_0x5730;(function(_0x376882,_0x382197){const _0xe3dc81=a129_0x5730,_0x44bb32=_0x376882();while(!![]){try{const _0x4c4841=-parseInt(_0xe3dc81(0x1c0))/0x1*(parseInt(_0xe3dc81(0x1a1))/0x2)+parseInt(_0xe3dc81(0x1b2))/0x3*(-parseInt(_0xe3dc81(0x1b1))/0x4)+-parseInt(_0xe3dc81(0x1a7))/0x5*(parseInt(_0xe3dc81(0x1b8))/0x6)+-parseInt(_0xe3dc81(0x1b5))/0x7+parseInt(_0xe3dc81(0x1aa))/0x8*(parseInt(_0xe3dc81(0x1ae))/0x9)+parseInt(_0xe3dc81(0x1ac))/0xa+-parseInt(_0xe3dc81(0x1a0))/0xb*(-parseInt(_0xe3dc81(0x1bc))/0xc);if(_0x4c4841===_0x382197)break;else _0x44bb32['push'](_0x44bb32['shift']());}catch(_0x1f217f){_0x44bb32['push'](_0x44bb32['shift']());}}}(a129_0x5e46,0x80f48));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{listFlowDefinitions}from'../../core/api-client.js';function a129_0x5730(_0x1722e2,_0x492788){_0x1722e2=_0x1722e2-0x19c;const _0x5e4628=a129_0x5e46();let _0x573027=_0x5e4628[_0x1722e2];return _0x573027;}import{CliErrors}from'../../errors.js';const FLOW_STATUSES=[a129_0x49b5fa(0x1ab),a129_0x49b5fa(0x1a8)];export const flowList={'service':a129_0x49b5fa(0x1b7),'command':a129_0x49b5fa(0x1be),'description':a129_0x49b5fa(0x1c2),'risk':a129_0x49b5fa(0x1b4),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a129_0x49b5fa(0x19d),'type':a129_0x49b5fa(0x1a9),'description':'Filter\x20by\x20exact\x20server-generated\x20flow\x20code'},{'name':'flow-name','type':a129_0x49b5fa(0x1a9),'description':a129_0x49b5fa(0x1bb)},{'name':a129_0x49b5fa(0x19c),'type':a129_0x49b5fa(0x1a9),'description':a129_0x49b5fa(0x1b9),'enum':FLOW_STATUSES},{'name':a129_0x49b5fa(0x1c1),'type':a129_0x49b5fa(0x1a9),'description':a129_0x49b5fa(0x1a5)},{'name':a129_0x49b5fa(0x1a6),'type':a129_0x49b5fa(0x1a9),'description':a129_0x49b5fa(0x1a2)},{'name':'page','type':a129_0x49b5fa(0x1a3),'description':'Page\x20number\x20(1-based)','default':0x1},{'name':a129_0x49b5fa(0x1bd),'type':a129_0x49b5fa(0x1a3),'description':a129_0x49b5fa(0x1ba),'default':0x14}],async 'validate'(_0x9f40a2){const _0x3d0dec=a129_0x49b5fa,_0x57570f=_0x9f40a2[_0x3d0dec(0x1a4)](_0x3d0dec(0x19e),0x1),_0xf34ce1=_0x9f40a2[_0x3d0dec(0x1a4)](_0x3d0dec(0x1bd),0x14);if(!Number[_0x3d0dec(0x1b6)](_0x57570f)||_0x57570f<0x1)throw CliErrors[_0x3d0dec(0x19f)](_0x3d0dec(0x1af));if(!Number[_0x3d0dec(0x1b6)](_0xf34ce1)||_0xf34ce1<0x1)throw CliErrors[_0x3d0dec(0x19f)]('--page-size\x20must\x20be\x20a\x20positive\x20integer.');},async 'execute'(_0x1ee841){const _0x59b8be=a129_0x49b5fa,{items:_0x3369fd,paging:_0x1bfd8e}=await listFlowDefinitions(_0x1ee841[_0x59b8be(0x1b0)],{'flowCode':optionalString(_0x1ee841['str']('flow-code')),'flowName':optionalString(_0x1ee841['str']('flow-name')),'flowStatus':optionalString(_0x1ee841[_0x59b8be(0x1ad)]('flow-status')),'datasetCode':optionalString(_0x1ee841[_0x59b8be(0x1ad)]('dataset-code')),'flowType':optionalString(_0x1ee841[_0x59b8be(0x1ad)](_0x59b8be(0x1a6))),'pageNum':_0x1ee841[_0x59b8be(0x1a4)](_0x59b8be(0x19e),0x1),'pageSize':_0x1ee841['num']('page-size',0x14)});return{'ok':!![],'data':{'appCode':_0x1ee841[_0x59b8be(0x1b0)],'flows':_0x3369fd,'paging':_0x1bfd8e},'message':_0x59b8be(0x1bf)+_0x3369fd['length']+'\x20flow\x20definition(s)'};}};function a129_0x5e46(){const _0x21e42d=['draft','7055970IRSqvc','str','90fbYjTP','--page\x20must\x20be\x20a\x20positive\x20integer.','appCode','112900OVzKBm','75trNjWx','trim','read','6225345MsZAcu','isSafeInteger','flow','72ZHoHkc','Filter\x20by\x20flow\x20status','Page\x20size','Filter\x20by\x20flow\x20name','12RhjRXX','page-size','list','Found\x20','9cbzgkx','dataset-code','List\x20design-time\x20flow\x20definitions\x20for\x20the\x20current\x20app','flow-status','flow-code','page','validation','22962115bgIZQz','191420kGLIbd','Filter\x20by\x20flow\x20type','number','num','Filter\x20by\x20dataset\x20code','flow-type','314555PBIQPl','published','string','757136HDvoUu'];a129_0x5e46=function(){return _0x21e42d;};return a129_0x5e46();}function optionalString(_0x5081c7){const _0xd6837d=a129_0x49b5fa,_0x5c14e8=_0x5081c7[_0xd6837d(0x1b3)]();return _0x5c14e8||undefined;}
@@ -1 +1 @@
1
- const a130_0x560cc8=a130_0x1713;(function(_0x3e0847,_0x56a26e){const _0x147377=a130_0x1713,_0x2f316f=_0x3e0847();while(!![]){try{const _0x257341=-parseInt(_0x147377(0x1a3))/0x1+-parseInt(_0x147377(0x197))/0x2+-parseInt(_0x147377(0x191))/0x3*(parseInt(_0x147377(0x18d))/0x4)+parseInt(_0x147377(0x1a2))/0x5+parseInt(_0x147377(0x18a))/0x6+-parseInt(_0x147377(0x19e))/0x7+parseInt(_0x147377(0x18b))/0x8*(parseInt(_0x147377(0x1a1))/0x9);if(_0x257341===_0x56a26e)break;else _0x2f316f['push'](_0x2f316f['shift']());}catch(_0x5e5d24){_0x2f316f['push'](_0x2f316f['shift']());}}}(a130_0x2345,0xc4df6));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{listFlowBindingPages}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a130_0x2345(){const _0xab2935=['validation','\x20must\x20be\x20a\x20positive\x20integer.','flow','length','flag','6677111fiMMMF','number','page','7824501dMmaeI','7309605ZzTwvf','187521hXMEyW','isSafeInteger','Page\x20size','Existing\x20FORM_FLOW\x20definition\x20id\x20(not\x20flow\x20code)','2632812zZDYOm','24QfVUGZ','read','652Nvpkai','string','Found\x20','num','23487avttXX','str','page-size','page-list','\x20form\x20page(s)','name','2569958jmLgFE','appCode'];a130_0x2345=function(){return _0xab2935;};return a130_0x2345();}function a130_0x1713(_0xffe7b5,_0x1d4468){_0xffe7b5=_0xffe7b5-0x18a;const _0x23457d=a130_0x2345();let _0x17136d=_0x23457d[_0xffe7b5];return _0x17136d;}export const flowPageList={'service':a130_0x560cc8(0x19b),'command':a130_0x560cc8(0x194),'description':'List\x20CREATE\x20pages\x20for\x20form-flow\x20binding;\x20--id\x20excludes\x20other\x20flows\x27\x20bindings','risk':a130_0x560cc8(0x18c),'flags':[APPCODE_FLAG_OPTIONAL,{'name':'id','type':a130_0x560cc8(0x19f),'description':a130_0x560cc8(0x1a6)},{'name':'name','type':a130_0x560cc8(0x18e),'description':'Filter\x20by\x20page\x20name'},{'name':a130_0x560cc8(0x1a0),'type':a130_0x560cc8(0x19f),'default':0x1,'description':'Page\x20number\x20(1-based)'},{'name':a130_0x560cc8(0x193),'type':a130_0x560cc8(0x19f),'default':0x14,'description':a130_0x560cc8(0x1a5)}],async 'validate'(_0x3d9f77){const _0x1dc3ee=a130_0x560cc8;for(const [_0x2db961,_0x1fa9e2]of[['page',_0x3d9f77[_0x1dc3ee(0x190)](_0x1dc3ee(0x1a0),0x1)],[_0x1dc3ee(0x193),_0x3d9f77[_0x1dc3ee(0x190)](_0x1dc3ee(0x193),0x14)],..._0x3d9f77[_0x1dc3ee(0x19d)]('id')!==undefined?[['id',_0x3d9f77[_0x1dc3ee(0x190)]('id')]]:[]]){if(!Number[_0x1dc3ee(0x1a4)](_0x1fa9e2)||_0x1fa9e2<=0x0)throw CliErrors[_0x1dc3ee(0x199)]('--'+_0x2db961+_0x1dc3ee(0x19a));}},async 'execute'(_0x8dead6){const _0x839593=a130_0x560cc8,_0x5b9e1d=_0x8dead6[_0x839593(0x19d)]('id')===undefined?undefined:_0x8dead6[_0x839593(0x190)]('id'),{items:_0x35f614,paging:_0x28a8ac}=await listFlowBindingPages(_0x8dead6[_0x839593(0x198)],{'currentFlowId':_0x5b9e1d,'name':_0x8dead6[_0x839593(0x192)](_0x839593(0x196))['trim']()||undefined,'currentPage':_0x8dead6[_0x839593(0x190)](_0x839593(0x1a0),0x1),'pageSize':_0x8dead6['num']('page-size',0x14)});return{'ok':!![],'data':{'appCode':_0x8dead6[_0x839593(0x198)],'currentFlowId':_0x5b9e1d,'pages':_0x35f614,'paging':_0x28a8ac,'availabilityChecked':_0x5b9e1d!==undefined},'message':_0x839593(0x18f)+_0x35f614[_0x839593(0x19c)]+_0x839593(0x195)};}};
1
+ const a130_0x6193c3=a130_0xf3ca;(function(_0x39060c,_0x4cd1d1){const _0x3d5e95=a130_0xf3ca,_0x1106ac=_0x39060c();while(!![]){try{const _0xbd58c9=-parseInt(_0x3d5e95(0x95))/0x1*(parseInt(_0x3d5e95(0x99))/0x2)+-parseInt(_0x3d5e95(0xa7))/0x3*(parseInt(_0x3d5e95(0xa3))/0x4)+parseInt(_0x3d5e95(0x8d))/0x5+parseInt(_0x3d5e95(0x98))/0x6*(-parseInt(_0x3d5e95(0x90))/0x7)+parseInt(_0x3d5e95(0xa1))/0x8*(-parseInt(_0x3d5e95(0x8b))/0x9)+-parseInt(_0x3d5e95(0xa6))/0xa*(-parseInt(_0x3d5e95(0x88))/0xb)+parseInt(_0x3d5e95(0x85))/0xc*(parseInt(_0x3d5e95(0x92))/0xd);if(_0xbd58c9===_0x4cd1d1)break;else _0x1106ac['push'](_0x1106ac['shift']());}catch(_0x43daee){_0x1106ac['push'](_0x1106ac['shift']());}}}(a130_0x196f,0x5a1e4));function a130_0x196f(){const _0x26e8e5=['appCode','1565936IBNFGU','\x20must\x20be\x20a\x20positive\x20integer.','4FSprZW','List\x20CREATE\x20pages\x20for\x20form-flow\x20binding;\x20--id\x20excludes\x20other\x20flows\x27\x20bindings','read','50esznBw','534639GQPemQ','Existing\x20FORM_FLOW\x20definition\x20id\x20(not\x20flow\x20code)','71184vAGWOG','length','num','1351427hwxHKZ','validation','page-size','9gjiZWO','str','995930loBoVG','page-list','Filter\x20by\x20page\x20name','588042wQWZDm','Page\x20number\x20(1-based)','1157kxlKiu','name','trim','2HBKgWG','\x20form\x20page(s)','isSafeInteger','12DEvoxo','430328ypQHqY','Page\x20size','page','string','flag','Found\x20','number'];a130_0x196f=function(){return _0x26e8e5;};return a130_0x196f();}function a130_0xf3ca(_0x5c2308,_0x1414ef){_0x5c2308=_0x5c2308-0x84;const _0x196fce=a130_0x196f();let _0xf3ca80=_0x196fce[_0x5c2308];return _0xf3ca80;}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{listFlowBindingPages}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';export const flowPageList={'service':'flow','command':a130_0x6193c3(0x8e),'description':a130_0x6193c3(0xa4),'risk':a130_0x6193c3(0xa5),'flags':[APPCODE_FLAG_OPTIONAL,{'name':'id','type':a130_0x6193c3(0x9f),'description':a130_0x6193c3(0x84)},{'name':a130_0x6193c3(0x93),'type':a130_0x6193c3(0x9c),'description':a130_0x6193c3(0x8f)},{'name':'page','type':'number','default':0x1,'description':a130_0x6193c3(0x91)},{'name':'page-size','type':'number','default':0x14,'description':a130_0x6193c3(0x9a)}],async 'validate'(_0x22128a){const _0x2ed19b=a130_0x6193c3;for(const [_0x490794,_0x4d7140]of[[_0x2ed19b(0x9b),_0x22128a['num'](_0x2ed19b(0x9b),0x1)],['page-size',_0x22128a[_0x2ed19b(0x87)](_0x2ed19b(0x8a),0x14)],..._0x22128a[_0x2ed19b(0x9d)]('id')!==undefined?[['id',_0x22128a[_0x2ed19b(0x87)]('id')]]:[]]){if(!Number[_0x2ed19b(0x97)](_0x4d7140)||_0x4d7140<=0x0)throw CliErrors[_0x2ed19b(0x89)]('--'+_0x490794+_0x2ed19b(0xa2));}},async 'execute'(_0x50e44e){const _0x3572bb=a130_0x6193c3,_0x38028a=_0x50e44e[_0x3572bb(0x9d)]('id')===undefined?undefined:_0x50e44e[_0x3572bb(0x87)]('id'),{items:_0x4431d5,paging:_0x1d563f}=await listFlowBindingPages(_0x50e44e['appCode'],{'currentFlowId':_0x38028a,'name':_0x50e44e[_0x3572bb(0x8c)]('name')[_0x3572bb(0x94)]()||undefined,'currentPage':_0x50e44e['num'](_0x3572bb(0x9b),0x1),'pageSize':_0x50e44e[_0x3572bb(0x87)](_0x3572bb(0x8a),0x14)});return{'ok':!![],'data':{'appCode':_0x50e44e[_0x3572bb(0xa0)],'currentFlowId':_0x38028a,'pages':_0x4431d5,'paging':_0x1d563f,'availabilityChecked':_0x38028a!==undefined},'message':_0x3572bb(0x9e)+_0x4431d5[_0x3572bb(0x86)]+_0x3572bb(0x96)};}};