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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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 a115_0x1f7b(){const _0x3cf597=['[redacted]','includes','hasAvailableDo','9350352qoaXQj','map','length','trim','accesskey','authorization','1XoKEve','keys','code','/data/database','token','7371320mQkSLa','passwd','The\x20configuration\x20was\x20not\x20saved.\x20Verify\x20the\x20host,\x20credentials,\x20database\x20name,\x20network,\x20and\x20allowlist,\x20or\x20explicitly\x20pass\x20--skip-connection-test.','1352370ylkzOm','dbtableConfig','2927439BTJmDe','4twUyXh','tableName','1147405GHcWHy','test','892220JQqRlL','name','/data/er?dbId=','toLowerCase','jdbcurl','connectionstring','password','privatekey','60OOCRoG','apiError','Database\x20connection\x20preflight\x20failed.','6404128ttoTRA'];a115_0x1f7b=function(){return _0x3cf597;};return a115_0x1f7b();}(function(_0x1547e1,_0x27bdb4){const _0x3e3cca=a115_0x55c0,_0x2ded89=_0x1547e1();while(!![]){try{const _0x411401=-parseInt(_0x3e3cca(0x1cf))/0x1*(-parseInt(_0x3e3cca(0x1de))/0x2)+-parseInt(_0x3e3cca(0x1d9))/0x3+parseInt(_0x3e3cca(0x1da))/0x4*(parseInt(_0x3e3cca(0x1d7))/0x5)+parseInt(_0x3e3cca(0x1c2))/0x6*(parseInt(_0x3e3cca(0x1dc))/0x7)+-parseInt(_0x3e3cca(0x1c5))/0x8+parseInt(_0x3e3cca(0x1c9))/0x9+-parseInt(_0x3e3cca(0x1d4))/0xa;if(_0x411401===_0x27bdb4)break;else _0x2ded89['push'](_0x2ded89['shift']());}catch(_0x16e499){_0x2ded89['push'](_0x2ded89['shift']());}}}(a115_0x1f7b,0xd7231));import{testDbLinkConfigConnect}from'../../core/api-client.js';import{getAppBaseUrl}from'../../constant/domain.js';import{CliErrors}from'../../errors.js';function shouldRedactKey(_0x3c9a75){const _0xaecb92=a115_0x55c0,_0xed0652=_0x3c9a75[_0xaecb92(0x1bd)]();if(_0xed0652===_0xaecb92(0x1c0)||_0xed0652===_0xaecb92(0x1d5)||_0xed0652==='dbpassword')return!![];if(_0xed0652['includes']('secret')||_0xed0652['includes'](_0xaecb92(0x1d3))||_0xed0652['includes']('credential'))return!![];if(_0xed0652[_0xaecb92(0x1c7)](_0xaecb92(0x1c1))||_0xed0652[_0xaecb92(0x1c7)](_0xaecb92(0x1cd)))return!![];if(_0xed0652===_0xaecb92(0x1ce)||_0xed0652===_0xaecb92(0x1bf)||_0xed0652===_0xaecb92(0x1be))return!![];return![];}export function sanitizeDbLinkForOutput(_0x545f64){const _0x5f0b25=a115_0x55c0,_0x15e3b1={..._0x545f64};delete _0x15e3b1[_0x5f0b25(0x1c8)];for(const _0x18bd73 of Object[_0x5f0b25(0x1d0)](_0x15e3b1)){if(!shouldRedactKey(_0x18bd73))continue;const _0x3e643f=_0x15e3b1[_0x18bd73];_0x3e643f!=null&&String(_0x3e643f)[_0x5f0b25(0x1cb)]>0x0&&(_0x15e3b1[_0x18bd73]=_0x5f0b25(0x1c6));}return _0x15e3b1;}function a115_0x55c0(_0x2a71b8,_0x176d98){_0x2a71b8=_0x2a71b8-0x1bc;const _0x1f7b60=a115_0x1f7b();let _0x55c043=_0x1f7b60[_0x2a71b8];return _0x55c043;}export function sanitizeDbLinkList(_0x2b8a4e){const _0x4535d8=a115_0x55c0;return _0x2b8a4e[_0x4535d8(0x1ca)](_0x3d7f05=>sanitizeDbLinkForOutput(_0x3d7f05));}export function buildDbDatasetDependency(_0x8fb26e,_0x53dbcd){const _0x54359f=a115_0x55c0,_0x592ee6=_0x53dbcd['filter'](_0x421a04=>Number(_0x421a04['dbtableConfig']?.['dbId'])===Number(_0x8fb26e['id']))[_0x54359f(0x1ca)](_0x24eacc=>({'id':_0x24eacc['id'],'code':_0x24eacc[_0x54359f(0x1d1)],'name':_0x24eacc[_0x54359f(0x1df)],..._0x24eacc[_0x54359f(0x1d8)]?.[_0x54359f(0x1db)]?{'tableName':_0x24eacc[_0x54359f(0x1d8)][_0x54359f(0x1db)]}:{}}));return{'datasetDependency':{'hasDependencies':_0x592ee6[_0x54359f(0x1cb)]>0x0,'activeDatasetCount':_0x592ee6[_0x54359f(0x1cb)]},'datasets':_0x592ee6};}export async function assertDbLinkConnectionPreflight(_0x109bb1){const _0x573b2f=a115_0x55c0,_0xbd89d1=await testDbLinkConfigConnect(_0x109bb1);if(_0xbd89d1!==!![])throw CliErrors[_0x573b2f(0x1c3)](_0x573b2f(0x1c4),_0x573b2f(0x1d6));}const DB_URL_PATTERN=/^[^\s:]+(?::\d+)?$/;export function validateDbUrl(_0x5523e8){const _0x48192d=a115_0x55c0,_0x512205=_0x5523e8[_0x48192d(0x1cc)]();if(!_0x512205)return![];return DB_URL_PATTERN[_0x48192d(0x1dd)](_0x512205);}export function buildDbPageLinks(_0x107f70,_0x49291c){const _0x321fef=a115_0x55c0,_0x520651=_0x107f70?.[_0x321fef(0x1cc)]();if(!_0x520651)return undefined;const _0x1617e4=typeof _0x49291c==='number'?String(_0x49291c):String(_0x49291c??'')['trim']();if(!_0x1617e4)return undefined;const _0x53a31e=Number(_0x1617e4);if(!Number['isFinite'](_0x53a31e)||_0x53a31e<=0x0)return undefined;const _0x55b773=getAppBaseUrl(_0x520651),_0x1144f2=encodeURIComponent(String(_0x53a31e));return{'databasePage':_0x55b773+_0x321fef(0x1d2),'erPage':_0x55b773+_0x321fef(0x1bc)+_0x1144f2};}
1
+ (function(_0x221682,_0x22d302){const _0x39f21f=a115_0x16d6,_0x943d36=_0x221682();while(!![]){try{const _0x68e128=parseInt(_0x39f21f(0xfa))/0x1+-parseInt(_0x39f21f(0x10c))/0x2*(parseInt(_0x39f21f(0xf7))/0x3)+parseInt(_0x39f21f(0x100))/0x4+parseInt(_0x39f21f(0x10d))/0x5*(parseInt(_0x39f21f(0x106))/0x6)+-parseInt(_0x39f21f(0xf1))/0x7*(-parseInt(_0x39f21f(0xfc))/0x8)+-parseInt(_0x39f21f(0xf4))/0x9+parseInt(_0x39f21f(0xf5))/0xa*(-parseInt(_0x39f21f(0x108))/0xb);if(_0x68e128===_0x22d302)break;else _0x943d36['push'](_0x943d36['shift']());}catch(_0x2a267d){_0x943d36['push'](_0x943d36['shift']());}}}(a115_0x1707,0x72729));import{testDbLinkConfigConnect}from'../../core/api-client.js';function a115_0x16d6(_0x1dd5ba,_0x32476b){_0x1dd5ba=_0x1dd5ba-0xef;const _0x1707ad=a115_0x1707();let _0x16d6b8=_0x1707ad[_0x1dd5ba];return _0x16d6b8;}import{getAppBaseUrl}from'../../constant/domain.js';import{CliErrors}from'../../errors.js';function shouldRedactKey(_0x41caf2){const _0x46e359=a115_0x16d6,_0x254b20=_0x41caf2[_0x46e359(0x109)]();if(_0x254b20===_0x46e359(0x111)||_0x254b20===_0x46e359(0x107)||_0x254b20===_0x46e359(0x113))return!![];if(_0x254b20[_0x46e359(0x101)](_0x46e359(0xf6))||_0x254b20[_0x46e359(0x101)](_0x46e359(0x114))||_0x254b20[_0x46e359(0x101)](_0x46e359(0x10a)))return!![];if(_0x254b20[_0x46e359(0x101)](_0x46e359(0x102))||_0x254b20[_0x46e359(0x101)]('accesskey'))return!![];if(_0x254b20==='authorization'||_0x254b20===_0x46e359(0x110)||_0x254b20==='jdbcurl')return!![];return![];}function a115_0x1707(){const _0x21d190=['3431889BXhVZM','10anAsCK','secret','27843WKzgMY','apiError','map','295131yjFcVA','hasAvailableDo','17960XVHmPs','isFinite','/data/er?dbId=','The\x20configuration\x20was\x20not\x20saved.\x20Verify\x20the\x20host,\x20credentials,\x20database\x20name,\x20network,\x20and\x20allowlist,\x20or\x20explicitly\x20pass\x20--skip-connection-test.','1354028hSeOSM','includes','privatekey','Database\x20connection\x20preflight\x20failed.','dbtableConfig','dbId','43488jOLeDl','passwd','8778418VwoErV','toLowerCase','credential','code','74vNgpvN','325VDrxEQ','test','[redacted]','connectionstring','password','number','dbpassword','token','length','trim','2765FcRuLl','keys','tableName'];a115_0x1707=function(){return _0x21d190;};return a115_0x1707();}export function sanitizeDbLinkForOutput(_0x880aab){const _0x24177f=a115_0x16d6,_0x130848={..._0x880aab};delete _0x130848[_0x24177f(0xfb)];for(const _0x5d6ae7 of Object[_0x24177f(0xf2)](_0x130848)){if(!shouldRedactKey(_0x5d6ae7))continue;const _0x1394e7=_0x130848[_0x5d6ae7];_0x1394e7!=null&&String(_0x1394e7)[_0x24177f(0xef)]>0x0&&(_0x130848[_0x5d6ae7]=_0x24177f(0x10f));}return _0x130848;}export function sanitizeDbLinkList(_0x5f3fa3){const _0x3e605e=a115_0x16d6;return _0x5f3fa3[_0x3e605e(0xf9)](_0x5bbbd2=>sanitizeDbLinkForOutput(_0x5bbbd2));}export function buildDbDatasetDependency(_0x56600a,_0xd2d592){const _0x2f05a7=a115_0x16d6,_0x58a754=_0xd2d592['filter'](_0x275541=>Number(_0x275541[_0x2f05a7(0x104)]?.[_0x2f05a7(0x105)])===Number(_0x56600a['id']))['map'](_0x5db48b=>({'id':_0x5db48b['id'],'code':_0x5db48b[_0x2f05a7(0x10b)],'name':_0x5db48b['name'],..._0x5db48b[_0x2f05a7(0x104)]?.[_0x2f05a7(0xf3)]?{'tableName':_0x5db48b[_0x2f05a7(0x104)][_0x2f05a7(0xf3)]}:{}}));return{'datasetDependency':{'hasDependencies':_0x58a754[_0x2f05a7(0xef)]>0x0,'activeDatasetCount':_0x58a754[_0x2f05a7(0xef)]},'datasets':_0x58a754};}export async function assertDbLinkConnectionPreflight(_0x24d552){const _0x3aade9=a115_0x16d6,_0x4ec146=await testDbLinkConfigConnect(_0x24d552);if(_0x4ec146!==!![])throw CliErrors[_0x3aade9(0xf8)](_0x3aade9(0x103),_0x3aade9(0xff));}const DB_URL_PATTERN=/^[^\s:]+(?::\d+)?$/;export function validateDbUrl(_0x238cb6){const _0x4e9e30=a115_0x16d6,_0x2b8313=_0x238cb6[_0x4e9e30(0xf0)]();if(!_0x2b8313)return![];return DB_URL_PATTERN[_0x4e9e30(0x10e)](_0x2b8313);}export function buildDbPageLinks(_0x1d27b1,_0xca99c7){const _0xac6607=a115_0x16d6,_0x29bff8=_0x1d27b1?.[_0xac6607(0xf0)]();if(!_0x29bff8)return undefined;const _0x32a4f1=typeof _0xca99c7===_0xac6607(0x112)?String(_0xca99c7):String(_0xca99c7??'')[_0xac6607(0xf0)]();if(!_0x32a4f1)return undefined;const _0xff28d6=Number(_0x32a4f1);if(!Number[_0xac6607(0xfd)](_0xff28d6)||_0xff28d6<=0x0)return undefined;const _0x188ce0=getAppBaseUrl(_0x29bff8),_0x5c4203=encodeURIComponent(String(_0xff28d6));return{'databasePage':_0x188ce0+'/data/database','erPage':_0x188ce0+_0xac6607(0xfe)+_0x5c4203};}
@@ -1 +1 @@
1
- const a116_0x1917cc=a116_0x27c8;function a116_0xfc7f(){const _0x30609c=['418272vZFTUN','datasetTableCount','length','7755345wPCIoK','validation','DELETED_TABLE','tableName','tableList','NEW_TABLE','size','values','Incomplete\x20db\x20table\x20pagination:\x20collected\x20','\x20of\x20','fromEntries','58959WonzBM','totalCount','set','1098785zHAIxL','map','116osRrQA','ALREADY_ANALYZED','summary','22371360hEVjxw','30fFyqTb','diffType','physicalTableCount','4368300mYrJcW','8AMWGWh','5419379WPLpND','number'];a116_0xfc7f=function(){return _0x30609c;};return a116_0xfc7f();}(function(_0xe60de6,_0x48450f){const _0x3dfa0e=a116_0x27c8,_0x15d009=_0xe60de6();while(!![]){try{const _0x5bebaa=-parseInt(_0x3dfa0e(0x1fd))/0x1+parseInt(_0x3dfa0e(0x1f2))/0x2*(-parseInt(_0x3dfa0e(0x20b))/0x3)+parseInt(_0x3dfa0e(0x1f9))/0x4+-parseInt(_0x3dfa0e(0x20e))/0x5*(parseInt(_0x3dfa0e(0x1f6))/0x6)+-parseInt(_0x3dfa0e(0x1fb))/0x7*(parseInt(_0x3dfa0e(0x1fa))/0x8)+parseInt(_0x3dfa0e(0x200))/0x9+parseInt(_0x3dfa0e(0x1f5))/0xa;if(_0x5bebaa===_0x48450f)break;else _0x15d009['push'](_0x15d009['shift']());}catch(_0x23db7a){_0x15d009['push'](_0x15d009['shift']());}}}(a116_0xfc7f,0xb97ec));import{CliErrors}from'../../errors.js';function a116_0x27c8(_0x45babf,_0x2ae9b3){_0x45babf=_0x45babf-0x1f1;const _0xfc7f46=a116_0xfc7f();let _0x27c8f8=_0xfc7f46[_0x45babf];return _0x27c8f8;}export const DB_TABLE_PAGE_SIZE=0x64;export const DB_TABLE_DIFF_TYPES=[a116_0x1917cc(0x205),'MODIFIED_TABLE',a116_0x1917cc(0x202),a116_0x1917cc(0x1f3)];export function summarizeDbTableDiff(_0x3403ce){const _0x1e8df2=a116_0x1917cc;return Object[_0x1e8df2(0x20a)](DB_TABLE_DIFF_TYPES[_0x1e8df2(0x1f1)](_0x3ca96a=>[_0x3ca96a,_0x3403ce['filter'](_0x3b154f=>_0x3b154f[_0x1e8df2(0x1f7)]===_0x3ca96a)[_0x1e8df2(0x1ff)]]));}export async function getAllDbTableDiff(_0x4a8dcc,_0x4558c4,_0x354bf7,_0x2159dc){const _0x242709=a116_0x1917cc,_0x277997=new Map();let _0x2401a0=0x1,_0x17f56e=null;while(!![]){_0x17f56e=await _0x4a8dcc(_0x4558c4,_0x354bf7,{'pageIndex':_0x2401a0,'pageSize':DB_TABLE_PAGE_SIZE,'tableName':_0x2159dc});const _0x167e99=_0x277997['size'];for(const _0x3b34f3 of _0x17f56e[_0x242709(0x204)]){_0x277997[_0x242709(0x20d)](_0x3b34f3[_0x242709(0x203)],_0x3b34f3);}if(_0x277997[_0x242709(0x206)]>=_0x17f56e[_0x242709(0x20c)])break;if(_0x17f56e['tableList'][_0x242709(0x1ff)]===0x0||_0x277997['size']===_0x167e99)throw CliErrors[_0x242709(0x201)](_0x242709(0x208)+_0x277997[_0x242709(0x206)]+_0x242709(0x209)+_0x17f56e[_0x242709(0x20c)]+'\x20row(s).');_0x2401a0+=0x1;}return{'totalCount':_0x17f56e?.[_0x242709(0x20c)]??0x0,...typeof _0x17f56e?.[_0x242709(0x1f8)]===_0x242709(0x1fc)?{'physicalTableCount':_0x17f56e[_0x242709(0x1f8)]}:{},...typeof _0x17f56e?.[_0x242709(0x1fe)]===_0x242709(0x1fc)?{'datasetTableCount':_0x17f56e['datasetTableCount']}:{},..._0x17f56e?.[_0x242709(0x1f4)]?{'summary':_0x17f56e['summary']}:{},'tableList':[..._0x277997[_0x242709(0x207)]()]};}
1
+ const a116_0x2879e3=a116_0x5dbe;function a116_0x5dbe(_0x301129,_0x1ba132){_0x301129=_0x301129-0x171;const _0x4410f4=a116_0x4410();let _0x5dbee2=_0x4410f4[_0x301129];return _0x5dbee2;}(function(_0x4c9ec0,_0x4e82a6){const _0x5612e3=a116_0x5dbe,_0x5f199a=_0x4c9ec0();while(!![]){try{const _0x39a495=-parseInt(_0x5612e3(0x178))/0x1*(parseInt(_0x5612e3(0x180))/0x2)+parseInt(_0x5612e3(0x183))/0x3*(-parseInt(_0x5612e3(0x187))/0x4)+-parseInt(_0x5612e3(0x192))/0x5*(parseInt(_0x5612e3(0x190))/0x6)+parseInt(_0x5612e3(0x18e))/0x7+parseInt(_0x5612e3(0x176))/0x8*(parseInt(_0x5612e3(0x177))/0x9)+-parseInt(_0x5612e3(0x174))/0xa*(parseInt(_0x5612e3(0x18b))/0xb)+parseInt(_0x5612e3(0x173))/0xc*(parseInt(_0x5612e3(0x193))/0xd);if(_0x39a495===_0x4e82a6)break;else _0x5f199a['push'](_0x5f199a['shift']());}catch(_0x4e7123){_0x5f199a['push'](_0x5f199a['shift']());}}}(a116_0x4410,0xb9cb2));import{CliErrors}from'../../errors.js';export const DB_TABLE_PAGE_SIZE=0x64;export const DB_TABLE_DIFF_TYPES=[a116_0x2879e3(0x175),a116_0x2879e3(0x17f),a116_0x2879e3(0x191),a116_0x2879e3(0x184)];export function summarizeDbTableDiff(_0x14115e){const _0x3f7c5a=a116_0x2879e3;return Object[_0x3f7c5a(0x18f)](DB_TABLE_DIFF_TYPES[_0x3f7c5a(0x186)](_0x14d074=>[_0x14d074,_0x14115e[_0x3f7c5a(0x18a)](_0x2fa15c=>_0x2fa15c[_0x3f7c5a(0x182)]===_0x14d074)[_0x3f7c5a(0x17b)]]));}function a116_0x4410(){const _0x30d379=['size','length','datasetTableCount','summary','physicalTableCount','MODIFIED_TABLE','42HQdemL','values','diffType','141UKWmtj','ALREADY_ANALYZED','Incomplete\x20db\x20table\x20pagination:\x20collected\x20','map','70076rlMtDO','number','set','filter','2959wTPAuP','totalCount','\x20row(s).','6402676IGHXvi','fromEntries','6hnBYqB','DELETED_TABLE','1365230LcOARS','6019IovgLf','tableList','tableName','45000YQTbeC','47130BPUMJF','NEW_TABLE','63032nWbIWI','711rZirGE','7053bpimyI','\x20of\x20'];a116_0x4410=function(){return _0x30d379;};return a116_0x4410();}export async function getAllDbTableDiff(_0x2ecd22,_0x28ad89,_0x2ee4d3,_0xc65393){const _0x59334e=a116_0x2879e3,_0x384651=new Map();let _0xb0b699=0x1,_0x5f022b=null;while(!![]){_0x5f022b=await _0x2ecd22(_0x28ad89,_0x2ee4d3,{'pageIndex':_0xb0b699,'pageSize':DB_TABLE_PAGE_SIZE,'tableName':_0xc65393});const _0x4f525a=_0x384651[_0x59334e(0x17a)];for(const _0x10d9ac of _0x5f022b[_0x59334e(0x171)]){_0x384651[_0x59334e(0x189)](_0x10d9ac[_0x59334e(0x172)],_0x10d9ac);}if(_0x384651[_0x59334e(0x17a)]>=_0x5f022b[_0x59334e(0x18c)])break;if(_0x5f022b['tableList'][_0x59334e(0x17b)]===0x0||_0x384651['size']===_0x4f525a)throw CliErrors['validation'](_0x59334e(0x185)+_0x384651[_0x59334e(0x17a)]+_0x59334e(0x179)+_0x5f022b[_0x59334e(0x18c)]+_0x59334e(0x18d));_0xb0b699+=0x1;}return{'totalCount':_0x5f022b?.[_0x59334e(0x18c)]??0x0,...typeof _0x5f022b?.[_0x59334e(0x17e)]===_0x59334e(0x188)?{'physicalTableCount':_0x5f022b[_0x59334e(0x17e)]}:{},...typeof _0x5f022b?.[_0x59334e(0x17c)]===_0x59334e(0x188)?{'datasetTableCount':_0x5f022b[_0x59334e(0x17c)]}:{},..._0x5f022b?.[_0x59334e(0x17d)]?{'summary':_0x5f022b['summary']}:{},'tableList':[..._0x384651[_0x59334e(0x181)]()]};}
@@ -1 +1 @@
1
- const a117_0x3245f=a117_0x5792;(function(_0x2bea64,_0x40fcba){const _0x4ecf7d=a117_0x5792,_0x4304f6=_0x2bea64();while(!![]){try{const _0x34a2a9=-parseInt(_0x4ecf7d(0xd3))/0x1*(-parseInt(_0x4ecf7d(0xe4))/0x2)+-parseInt(_0x4ecf7d(0xea))/0x3+-parseInt(_0x4ecf7d(0xdf))/0x4*(parseInt(_0x4ecf7d(0xe3))/0x5)+-parseInt(_0x4ecf7d(0xd2))/0x6*(-parseInt(_0x4ecf7d(0xe2))/0x7)+parseInt(_0x4ecf7d(0xe1))/0x8*(parseInt(_0x4ecf7d(0xd9))/0x9)+parseInt(_0x4ecf7d(0xdd))/0xa+-parseInt(_0x4ecf7d(0xde))/0xb*(parseInt(_0x4ecf7d(0xda))/0xc);if(_0x34a2a9===_0x40fcba)break;else _0x4304f6['push'](_0x4304f6['shift']());}catch(_0x48f52b){_0x4304f6['push'](_0x4304f6['shift']());}}}(a117_0x1849,0x6cb68));import{getDbTableComparisonPage}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a117_0x5792(_0x1c437e,_0x189275){_0x1c437e=_0x1c437e-0xd1;const _0x184900=a117_0x1849();let _0x5792fd=_0x184900[_0x1c437e];return _0x5792fd;}function a117_0x1849(){const _0x2f0bce=['summary','tableList','length','table','401823LcQDBr','12yqLsoE','totalCount','Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)','4874680aVtjol','9810537ZTbhyj','4tCqncL','\x20(db\x20link\x20','80aGTCyM','7bcchnr','157065mxULNP','3494mTXSXp','physicalTableCount','number','string','read','\x20table\x20comparison\x20row(s),\x20total\x20','1659270Hxavyg','datasetTableCount','2037498SqXqRV','371glIAPI','str'];a117_0x1849=function(){return _0x2f0bce;};return a117_0x1849();}import{getAllDbTableDiff,summarizeDbTableDiff}from'../../commands/db/table-diff-shared.js';export const dbTables={'service':'db','command':'tables','description':'List\x20all\x20database\x20table\x20comparison\x20rows\x20and\x20analysis\x20states','risk':a117_0x3245f(0xe8),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a117_0x3245f(0xd8),'type':a117_0x3245f(0xe7),'description':a117_0x3245f(0xdc)}],async 'execute'(_0x7e4358){const _0x2abb66=a117_0x3245f,_0x30cbe7=_0x7e4358['num']('id'),_0x4de80f=_0x7e4358[_0x2abb66(0xd4)]('table')||undefined,_0x2364b4=await getAllDbTableDiff(getDbTableComparisonPage,_0x7e4358['appCode'],_0x30cbe7,_0x4de80f),_0x5c9bb4=_0x2364b4[_0x2abb66(0xd6)];return{'ok':!![],'data':{'dbLinkId':_0x30cbe7,'totalCount':_0x2364b4[_0x2abb66(0xdb)],...typeof _0x2364b4[_0x2abb66(0xe5)]===_0x2abb66(0xe6)?{'physicalTableCount':_0x2364b4[_0x2abb66(0xe5)]}:{},...typeof _0x2364b4['datasetTableCount']==='number'?{'datasetTableCount':_0x2364b4[_0x2abb66(0xd1)]}:{},..._0x2364b4[_0x2abb66(0xd5)]?{'summary':_0x2364b4['summary']}:{},'summaryByType':summarizeDbTableDiff(_0x5c9bb4),'tables':_0x5c9bb4},'message':_0x5c9bb4[_0x2abb66(0xd7)]+_0x2abb66(0xe9)+_0x2364b4['totalCount']+_0x2abb66(0xe0)+_0x30cbe7+')'};}};
1
+ const a117_0x3542ae=a117_0x5e19;function a117_0x5e19(_0x4540c4,_0x47713a){_0x4540c4=_0x4540c4-0xbe;const _0x5ceb0f=a117_0x5ceb();let _0x5e1903=_0x5ceb0f[_0x4540c4];return _0x5e1903;}function a117_0x5ceb(){const _0x3c6aad=['datasetTableCount','table','totalCount','407KRbxgX','271833rfLUuY','104530kxPOaa','12105rOKckz','tables','appCode','12nWKtBv','Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)','\x20table\x20comparison\x20row(s),\x20total\x20','num','List\x20all\x20database\x20table\x20comparison\x20rows\x20and\x20analysis\x20states','physicalTableCount','202512KzcZLx','172eThTIF','3992fMDpGX','189mBnVKH','\x20(db\x20link\x20','read','8YvhkQT','length','summary','14486SuXYMu','string','7656493zauuoV','7HZJfaS'];a117_0x5ceb=function(){return _0x3c6aad;};return a117_0x5ceb();}(function(_0x1886f,_0x5c99f3){const _0x644799=a117_0x5e19,_0x2f9fc5=_0x1886f();while(!![]){try{const _0x472a4a=parseInt(_0x644799(0xd0))/0x1*(parseInt(_0x644799(0xd3))/0x2)+parseInt(_0x644799(0xbf))/0x3+-parseInt(_0x644799(0xcb))/0x4*(parseInt(_0x644799(0xc1))/0x5)+-parseInt(_0x644799(0xca))/0x6*(-parseInt(_0x644799(0xd6))/0x7)+parseInt(_0x644799(0xcc))/0x8*(parseInt(_0x644799(0xcd))/0x9)+parseInt(_0x644799(0xc0))/0xa*(-parseInt(_0x644799(0xbe))/0xb)+-parseInt(_0x644799(0xc4))/0xc*(-parseInt(_0x644799(0xd5))/0xd);if(_0x472a4a===_0x5c99f3)break;else _0x2f9fc5['push'](_0x2f9fc5['shift']());}catch(_0xc8d4e5){_0x2f9fc5['push'](_0x2f9fc5['shift']());}}}(a117_0x5ceb,0x47043));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_0x3542ae(0xc2),'description':a117_0x3542ae(0xc8),'risk':a117_0x3542ae(0xcf),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a117_0x3542ae(0xd8),'type':a117_0x3542ae(0xd4),'description':a117_0x3542ae(0xc5)}],async 'execute'(_0xd00d68){const _0x32369a=a117_0x3542ae,_0x5a13ee=_0xd00d68[_0x32369a(0xc7)]('id'),_0x563334=_0xd00d68['str'](_0x32369a(0xd8))||undefined,_0xcccde2=await getAllDbTableDiff(getDbTableComparisonPage,_0xd00d68[_0x32369a(0xc3)],_0x5a13ee,_0x563334),_0x1e8b4c=_0xcccde2['tableList'];return{'ok':!![],'data':{'dbLinkId':_0x5a13ee,'totalCount':_0xcccde2['totalCount'],...typeof _0xcccde2[_0x32369a(0xc9)]==='number'?{'physicalTableCount':_0xcccde2[_0x32369a(0xc9)]}:{},...typeof _0xcccde2[_0x32369a(0xd7)]==='number'?{'datasetTableCount':_0xcccde2[_0x32369a(0xd7)]}:{},..._0xcccde2[_0x32369a(0xd2)]?{'summary':_0xcccde2['summary']}:{},'summaryByType':summarizeDbTableDiff(_0x1e8b4c),'tables':_0x1e8b4c},'message':_0x1e8b4c[_0x32369a(0xd1)]+_0x32369a(0xc6)+_0xcccde2[_0x32369a(0xd9)]+_0x32369a(0xce)+_0x5a13ee+')'};}};
@@ -1 +1 @@
1
- function a118_0x484c(){const _0x193f8e=['length','30580ffSJMS','message','1125324EFQqfv','code','933466lzzkoJ','msg','63ggNFXu','data','success','keys','\x20(see\x20data.result)','4581MxjwVw','Connection\x20check\x20finished\x20for\x20db\x20link\x20','92WsFItr','7259427htDZox','object','3092656bUGXnQ','2letePe','error','slice','read','3757100EdkcED'];a118_0x484c=function(){return _0x193f8e;};return a118_0x484c();}const a118_0x18d814=a118_0xca32;(function(_0x4ca879,_0x4da71d){const _0xcb67b2=a118_0xca32,_0x248981=_0x4ca879();while(!![]){try{const _0x2b6d22=-parseInt(_0xcb67b2(0x1df))/0x1*(-parseInt(_0xcb67b2(0x1ec))/0x2)+-parseInt(_0xcb67b2(0x1e6))/0x3*(parseInt(_0xcb67b2(0x1e8))/0x4)+-parseInt(_0xcb67b2(0x1f0))/0x5+-parseInt(_0xcb67b2(0x1dd))/0x6+parseInt(_0xcb67b2(0x1e9))/0x7+-parseInt(_0xcb67b2(0x1eb))/0x8+parseInt(_0xcb67b2(0x1e1))/0x9*(-parseInt(_0xcb67b2(0x1f2))/0xa);if(_0x2b6d22===_0x4da71d)break;else _0x248981['push'](_0x248981['shift']());}catch(_0x4904eb){_0x248981['push'](_0x248981['shift']());}}}(a118_0x484c,0x8fa9c));function a118_0xca32(_0x3668a7,_0x4f5462){_0x3668a7=_0x3668a7-0x1dd;const _0x484c82=a118_0x484c();let _0xca3260=_0x484c82[_0x3668a7];return _0xca3260;}import{testDbLinkConnect}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function summarizeTestConnectResult(_0x28ca9d){const _0x3f2c9b=a118_0xca32;if(_0x28ca9d===!![]||_0x28ca9d===![])return{'success':_0x28ca9d};if(_0x28ca9d===null||_0x28ca9d===undefined)return{'type':typeof _0x28ca9d};if(typeof _0x28ca9d!==_0x3f2c9b(0x1ea))return{'type':typeof _0x28ca9d};const _0x550d5f=_0x28ca9d,_0x25a3e0=['success',_0x3f2c9b(0x1f3),_0x3f2c9b(0x1de),_0x3f2c9b(0x1ed),_0x3f2c9b(0x1e0),_0x3f2c9b(0x1e2)],_0x16fe1d={};for(const _0x17a61e of _0x25a3e0){if(_0x17a61e in _0x550d5f)_0x16fe1d[_0x17a61e]=_0x550d5f[_0x17a61e];}return Object[_0x3f2c9b(0x1e4)](_0x16fe1d)[_0x3f2c9b(0x1f1)]===0x0&&(_0x16fe1d['keys']=Object[_0x3f2c9b(0x1e4)](_0x550d5f)[_0x3f2c9b(0x1ee)](0x0,0x14)),_0x16fe1d;}export const dbTest={'service':'db','command':'test','description':'Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)','risk':a118_0x18d814(0x1ef),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x4dc98e){const _0xfe6c35=a118_0x18d814,_0x53cea1=_0x4dc98e['num']('id'),_0x2a6b0b=await testDbLinkConnect(_0x53cea1),_0x1eb8e0=_0x2a6b0b===!![]||typeof _0x2a6b0b===_0xfe6c35(0x1ea)&&_0x2a6b0b!==null&&_0x2a6b0b[_0xfe6c35(0x1e3)]===!![],_0x8d6074=summarizeTestConnectResult(_0x2a6b0b);return{'ok':!![],'data':{'id':_0x53cea1,'connected':Boolean(_0x1eb8e0),'result':_0x8d6074},'message':_0x1eb8e0?'Connection\x20OK\x20for\x20db\x20link\x20'+_0x53cea1:_0xfe6c35(0x1e7)+_0x53cea1+_0xfe6c35(0x1e5)};}};
1
+ const a118_0x597bfb=a118_0x34cb;function a118_0x3ba3(){const _0x1c904e=['8508856gZACWU','msg','10oQGbjy','object','Connection\x20OK\x20for\x20db\x20link\x20','error','success','data','72748PEFHWf','slice','\x20(see\x20data.result)','1264863GenLsL','9304929XIuQAw','2rOgCtb','test','11683480PdyWSb','98ItlwyI','Connection\x20check\x20finished\x20for\x20db\x20link\x20','215004WVElgJ','851393rNgQZQ','keys','num','code'];a118_0x3ba3=function(){return _0x1c904e;};return a118_0x3ba3();}(function(_0x404da8,_0x585686){const _0x4a56f0=a118_0x34cb,_0x61b00c=_0x404da8();while(!![]){try{const _0x2f1b55=-parseInt(_0x4a56f0(0x17b))/0x1*(-parseInt(_0x4a56f0(0x175))/0x2)+parseInt(_0x4a56f0(0x173))/0x3+-parseInt(_0x4a56f0(0x187))/0x4*(parseInt(_0x4a56f0(0x181))/0x5)+-parseInt(_0x4a56f0(0x17a))/0x6*(-parseInt(_0x4a56f0(0x178))/0x7)+-parseInt(_0x4a56f0(0x17f))/0x8+parseInt(_0x4a56f0(0x174))/0x9+-parseInt(_0x4a56f0(0x177))/0xa;if(_0x2f1b55===_0x585686)break;else _0x61b00c['push'](_0x61b00c['shift']());}catch(_0x59da2d){_0x61b00c['push'](_0x61b00c['shift']());}}}(a118_0x3ba3,0x83e52));function a118_0x34cb(_0x4de708,_0x9ccbc6){_0x4de708=_0x4de708-0x173;const _0x3ba381=a118_0x3ba3();let _0x34cbf9=_0x3ba381[_0x4de708];return _0x34cbf9;}import{testDbLinkConnect}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function summarizeTestConnectResult(_0x1f8b42){const _0x3216bc=a118_0x34cb;if(_0x1f8b42===!![]||_0x1f8b42===![])return{'success':_0x1f8b42};if(_0x1f8b42===null||_0x1f8b42===undefined)return{'type':typeof _0x1f8b42};if(typeof _0x1f8b42!==_0x3216bc(0x182))return{'type':typeof _0x1f8b42};const _0xd3280f=_0x1f8b42,_0x51f7ac=[_0x3216bc(0x185),'message',_0x3216bc(0x17e),_0x3216bc(0x184),_0x3216bc(0x180),_0x3216bc(0x186)],_0x5a954f={};for(const _0x206382 of _0x51f7ac){if(_0x206382 in _0xd3280f)_0x5a954f[_0x206382]=_0xd3280f[_0x206382];}return Object[_0x3216bc(0x17c)](_0x5a954f)['length']===0x0&&(_0x5a954f['keys']=Object[_0x3216bc(0x17c)](_0xd3280f)[_0x3216bc(0x188)](0x0,0x14)),_0x5a954f;}export const dbTest={'service':'db','command':a118_0x597bfb(0x176),'description':'Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)','risk':'read','requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x2e7afa){const _0x275295=a118_0x597bfb,_0x29ea6a=_0x2e7afa[_0x275295(0x17d)]('id'),_0xe1703=await testDbLinkConnect(_0x29ea6a),_0x14aecc=_0xe1703===!![]||typeof _0xe1703===_0x275295(0x182)&&_0xe1703!==null&&_0xe1703[_0x275295(0x185)]===!![],_0x520419=summarizeTestConnectResult(_0xe1703);return{'ok':!![],'data':{'id':_0x29ea6a,'connected':Boolean(_0x14aecc),'result':_0x520419},'message':_0x14aecc?_0x275295(0x183)+_0x29ea6a:_0x275295(0x179)+_0x29ea6a+_0x275295(0x189)};}};
@@ -1 +1 @@
1
- const a119_0x1907e1=a119_0x5464;function a119_0x5464(_0x43ce75,_0x4ae46f){_0x43ce75=_0x43ce75-0x1e8;const _0x56b8ee=a119_0x56b8();let _0x546499=_0x56b8ee[_0x43ce75];return _0x546499;}(function(_0x5637a0,_0x32086b){const _0x53deb9=a119_0x5464,_0x423214=_0x5637a0();while(!![]){try{const _0x865053=parseInt(_0x53deb9(0x1f7))/0x1*(parseInt(_0x53deb9(0x1ed))/0x2)+-parseInt(_0x53deb9(0x1e8))/0x3+parseInt(_0x53deb9(0x1fe))/0x4+parseInt(_0x53deb9(0x200))/0x5*(parseInt(_0x53deb9(0x204))/0x6)+parseInt(_0x53deb9(0x1fd))/0x7+parseInt(_0x53deb9(0x206))/0x8*(parseInt(_0x53deb9(0x1f6))/0x9)+parseInt(_0x53deb9(0x1e9))/0xa*(-parseInt(_0x53deb9(0x1f3))/0xb);if(_0x865053===_0x32086b)break;else _0x423214['push'](_0x423214['shift']());}catch(_0x27be70){_0x423214['push'](_0x423214['shift']());}}}(a119_0x56b8,0x5bc7d));import{getDbLinkInfo,updateDbLink}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG,SKIP_CONNECTION_TEST_FLAG}from'../../commands/common/flags.js';import{assertDbLinkConnectionPreflight,sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';const MASKED_PASSWORD_VALUES=new Set([a119_0x1907e1(0x202),a119_0x1907e1(0x20f)]);function a119_0x56b8(){const _0x516e1e=['6008qBsQOs','skip-connection-test','Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22','write','username','str','New\x20description','update','Current\x20or\x20replacement\x20password.\x20Required\x20when\x20the\x20stored\x20password\x20is\x20masked','[redacted]','has','665034gtLnfw','2802270uVCkhI','--password\x20must\x20contain\x20the\x20real\x20database\x20password,\x20not\x20a\x20masked\x20value.','trim','New\x20username','1688vNsQKC','Preview\x20the\x20merged\x20database\x20connection\x20update;\x20password\x20redacted','/smartapi/dblink/update','dbname','New\x20host:port','dbUrl','99SHgBvM','The\x20server\x20returned\x20a\x20masked\x20database\x20password.\x20Pass\x20the\x20current\x20or\x20replacement\x20password\x20explicitly\x20with\x20--password\x20to\x20update\x20this\x20connection\x20safely.','string','8019YmcVGt','499lSMHoP','dburl','New\x20connection\x20parameter\x20string','bool','num','dbdesc','3969840pCQGcl','2947204cKCbBx','validation','11195SgNRsD','dbparam','******','Updated\x20db\x20link\x20','1944OBrTWn','password'];a119_0x56b8=function(){return _0x516e1e;};return a119_0x56b8();}function mergeDbLinkUpdate(_0x8d5078,_0x216492){const _0x5cf0c3=a119_0x1907e1,_0xd41122={..._0x8d5078},_0x78dac1=_0x216492[_0x5cf0c3(0x20b)](_0x5cf0c3(0x205));if(_0x78dac1&&MASKED_PASSWORD_VALUES[_0x5cf0c3(0x210)](_0x78dac1))throw CliErrors[_0x5cf0c3(0x1ff)](_0x5cf0c3(0x1ea));if(!_0x78dac1&&MASKED_PASSWORD_VALUES[_0x5cf0c3(0x210)](String(_0x8d5078[_0x5cf0c3(0x205)]??'')))throw CliErrors[_0x5cf0c3(0x1ff)](_0x5cf0c3(0x1f4));const _0x3eb16c=_0x216492[_0x5cf0c3(0x20b)]('dbname');if(_0x3eb16c)_0xd41122['dbName']=_0x3eb16c;const _0x1b0fac=_0x216492[_0x5cf0c3(0x20b)](_0x5cf0c3(0x1f8));if(_0x1b0fac)_0xd41122[_0x5cf0c3(0x1f2)]=_0x1b0fac[_0x5cf0c3(0x1eb)]();const _0x4acccf=_0x216492[_0x5cf0c3(0x20b)](_0x5cf0c3(0x20a));if(_0x4acccf)_0xd41122['username']=_0x4acccf;if(_0x78dac1)_0xd41122[_0x5cf0c3(0x205)]=_0x78dac1;const _0x23d821=_0x216492[_0x5cf0c3(0x20b)](_0x5cf0c3(0x201));if(_0x23d821)_0xd41122['dbParam']=_0x23d821;const _0x541060=_0x216492['str'](_0x5cf0c3(0x1fc));if(_0x541060)_0xd41122['dbDesc']=_0x541060;return _0xd41122;}export const dbUpdate={'service':'db','command':a119_0x1907e1(0x20d),'description':'Update\x20a\x20database\x20connection\x20by\x20merging\x20supplied\x20fields\x20into\x20the\x20current\x20server\x20record.\x20A\x20masked\x20server\x20password\x20requires\x20explicit\x20--password','risk':a119_0x1907e1(0x209),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a119_0x1907e1(0x1f0),'type':a119_0x1907e1(0x1f5),'description':'New\x20database\x20name'},{'name':'dburl','type':a119_0x1907e1(0x1f5),'description':a119_0x1907e1(0x1f1)},{'name':a119_0x1907e1(0x20a),'type':'string','description':a119_0x1907e1(0x1ec)},{'name':'password','type':'string','description':a119_0x1907e1(0x20e)},{'name':a119_0x1907e1(0x201),'type':a119_0x1907e1(0x1f5),'description':a119_0x1907e1(0x1f9)},{'name':a119_0x1907e1(0x1fc),'type':a119_0x1907e1(0x1f5),'description':a119_0x1907e1(0x20c)},SKIP_CONNECTION_TEST_FLAG],async 'validate'(_0x43ffb1){const _0x3cb56c=a119_0x1907e1,_0x544d15=_0x43ffb1[_0x3cb56c(0x20b)]('dburl');if(_0x544d15&&!validateDbUrl(_0x544d15[_0x3cb56c(0x1eb)]()))throw CliErrors[_0x3cb56c(0x1ff)](_0x3cb56c(0x208)+_0x544d15+'\x22');},async 'dryRun'(_0x58e46c){const _0x511e5e=a119_0x1907e1,_0x214201=_0x58e46c[_0x511e5e(0x1fb)]('id'),_0x2b8624=await getDbLinkInfo(_0x214201),_0xd0349b=mergeDbLinkUpdate(_0x2b8624,_0x58e46c),_0x8de048=sanitizeDbLinkForOutput(_0xd0349b);return{'method':'POST','url':_0x511e5e(0x1ef),'body':_0x8de048,'description':_0x511e5e(0x1ee),'connectionPreflight':{'enabled':!_0x58e46c[_0x511e5e(0x1fa)](_0x511e5e(0x207)),'executed':![]}};},async 'execute'(_0x2a46a0){const _0x1565af=a119_0x1907e1,_0x228382=_0x2a46a0[_0x1565af(0x1fb)]('id'),_0x119b2a=await getDbLinkInfo(_0x228382),_0x97dfeb=mergeDbLinkUpdate(_0x119b2a,_0x2a46a0);!_0x2a46a0['bool'](_0x1565af(0x207))&&await assertDbLinkConnectionPreflight(_0x97dfeb);const {id:_0x4acaa0,entity:_0x47b703}=normalizeEntityWithIdResponse(await updateDbLink(_0x97dfeb));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x47b703),'message':_0x1565af(0x203)+(_0x4acaa0??_0x228382)};}};
1
+ const a119_0x296903=a119_0xb80d;(function(_0x3ebe1b,_0x3efab9){const _0x296b93=a119_0xb80d,_0x55aade=_0x3ebe1b();while(!![]){try{const _0x435404=-parseInt(_0x296b93(0x10c))/0x1+-parseInt(_0x296b93(0x103))/0x2*(-parseInt(_0x296b93(0xf0))/0x3)+-parseInt(_0x296b93(0xed))/0x4*(parseInt(_0x296b93(0x106))/0x5)+-parseInt(_0x296b93(0x10f))/0x6*(-parseInt(_0x296b93(0xfd))/0x7)+parseInt(_0x296b93(0xff))/0x8*(parseInt(_0x296b93(0x10d))/0x9)+parseInt(_0x296b93(0xf3))/0xa*(parseInt(_0x296b93(0x101))/0xb)+parseInt(_0x296b93(0xf7))/0xc*(-parseInt(_0x296b93(0xef))/0xd);if(_0x435404===_0x3efab9)break;else _0x55aade['push'](_0x55aade['shift']());}catch(_0x135399){_0x55aade['push'](_0x55aade['shift']());}}}(a119_0xf80b,0x5ade8));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_0xb80d(_0x509004,_0x1df372){_0x509004=_0x509004-0xe5;const _0xf80bda=a119_0xf80b();let _0xb80d20=_0xf80bda[_0x509004];return _0xb80d20;}import{assertDbLinkConnectionPreflight,sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';const MASKED_PASSWORD_VALUES=new Set([a119_0x296903(0x10b),a119_0x296903(0xec)]);function a119_0xf80b(){const _0x502ba2=['POST','str','Current\x20or\x20replacement\x20password.\x20Required\x20when\x20the\x20stored\x20password\x20is\x20masked','password','string','New\x20host:port','[redacted]','99436tUWSDf','New\x20username','1651oXKsNk','93vtYzES','dbname','num','6888590kRIKEi','Preview\x20the\x20merged\x20database\x20connection\x20update;\x20password\x20redacted','Updated\x20db\x20link\x20','Update\x20a\x20database\x20connection\x20by\x20merging\x20supplied\x20fields\x20into\x20the\x20current\x20server\x20record.\x20A\x20masked\x20server\x20password\x20requires\x20explicit\x20--password','27492jXYxcK','New\x20connection\x20parameter\x20string','write','--password\x20must\x20contain\x20the\x20real\x20database\x20password,\x20not\x20a\x20masked\x20value.','trim','dbDesc','892402ybrJOJ','username','8KTCsRE','New\x20description','11nOjHtR','dbparam','19000SbLOYN','skip-connection-test','bool','95mKrTWE','dbParam','dbdesc','has','validation','******','742363BlJfuW','5755590Osjfjj','New\x20database\x20name','12UzQXLC','dburl'];a119_0xf80b=function(){return _0x502ba2;};return a119_0xf80b();}function mergeDbLinkUpdate(_0x3427b6,_0x4c0cf3){const _0x3bbe40=a119_0x296903,_0x1ecdc8={..._0x3427b6},_0x2f037f=_0x4c0cf3['str']('password');if(_0x2f037f&&MASKED_PASSWORD_VALUES[_0x3bbe40(0x109)](_0x2f037f))throw CliErrors[_0x3bbe40(0x10a)](_0x3bbe40(0xfa));if(!_0x2f037f&&MASKED_PASSWORD_VALUES[_0x3bbe40(0x109)](String(_0x3427b6[_0x3bbe40(0xe9)]??'')))throw CliErrors[_0x3bbe40(0x10a)]('The\x20server\x20returned\x20a\x20masked\x20database\x20password.\x20Pass\x20the\x20current\x20or\x20replacement\x20password\x20explicitly\x20with\x20--password\x20to\x20update\x20this\x20connection\x20safely.');const _0x2bcd94=_0x4c0cf3[_0x3bbe40(0xe7)]('dbname');if(_0x2bcd94)_0x1ecdc8['dbName']=_0x2bcd94;const _0x442e0b=_0x4c0cf3['str'](_0x3bbe40(0xe5));if(_0x442e0b)_0x1ecdc8['dbUrl']=_0x442e0b[_0x3bbe40(0xfb)]();const _0x434f9b=_0x4c0cf3['str'](_0x3bbe40(0xfe));if(_0x434f9b)_0x1ecdc8[_0x3bbe40(0xfe)]=_0x434f9b;if(_0x2f037f)_0x1ecdc8[_0x3bbe40(0xe9)]=_0x2f037f;const _0x13bbbd=_0x4c0cf3['str']('dbparam');if(_0x13bbbd)_0x1ecdc8[_0x3bbe40(0x107)]=_0x13bbbd;const _0x2e7bc3=_0x4c0cf3[_0x3bbe40(0xe7)](_0x3bbe40(0x108));if(_0x2e7bc3)_0x1ecdc8[_0x3bbe40(0xfc)]=_0x2e7bc3;return _0x1ecdc8;}export const dbUpdate={'service':'db','command':'update','description':a119_0x296903(0xf6),'risk':a119_0x296903(0xf9),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a119_0x296903(0xf1),'type':a119_0x296903(0xea),'description':a119_0x296903(0x10e)},{'name':a119_0x296903(0xe5),'type':a119_0x296903(0xea),'description':a119_0x296903(0xeb)},{'name':'username','type':a119_0x296903(0xea),'description':a119_0x296903(0xee)},{'name':a119_0x296903(0xe9),'type':a119_0x296903(0xea),'description':a119_0x296903(0xe8)},{'name':a119_0x296903(0x102),'type':a119_0x296903(0xea),'description':a119_0x296903(0xf8)},{'name':a119_0x296903(0x108),'type':a119_0x296903(0xea),'description':a119_0x296903(0x100)},SKIP_CONNECTION_TEST_FLAG],async 'validate'(_0x47bac9){const _0x1512bc=a119_0x296903,_0x59728f=_0x47bac9['str'](_0x1512bc(0xe5));if(_0x59728f&&!validateDbUrl(_0x59728f['trim']()))throw CliErrors[_0x1512bc(0x10a)]('Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22'+_0x59728f+'\x22');},async 'dryRun'(_0x1c8270){const _0x18af66=a119_0x296903,_0x39cf17=_0x1c8270['num']('id'),_0x11c061=await getDbLinkInfo(_0x39cf17),_0x4441f3=mergeDbLinkUpdate(_0x11c061,_0x1c8270),_0x1dc53f=sanitizeDbLinkForOutput(_0x4441f3);return{'method':_0x18af66(0xe6),'url':'/smartapi/dblink/update','body':_0x1dc53f,'description':_0x18af66(0xf4),'connectionPreflight':{'enabled':!_0x1c8270[_0x18af66(0x105)](_0x18af66(0x104)),'executed':![]}};},async 'execute'(_0x59f47c){const _0x168a7c=a119_0x296903,_0x1763a2=_0x59f47c[_0x168a7c(0xf2)]('id'),_0x306d0d=await getDbLinkInfo(_0x1763a2),_0x33c00d=mergeDbLinkUpdate(_0x306d0d,_0x59f47c);!_0x59f47c[_0x168a7c(0x105)](_0x168a7c(0x104))&&await assertDbLinkConnectionPreflight(_0x33c00d);const {id:_0x4accc6,entity:_0xa727db}=normalizeEntityWithIdResponse(await updateDbLink(_0x33c00d));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0xa727db),'message':_0x168a7c(0xf5)+(_0x4accc6??_0x1763a2)};}};
@@ -1 +1 @@
1
- function a120_0x2d9a(_0x56f260,_0x38bfed){_0x56f260=_0x56f260-0x1d6;const _0x24aecc=a120_0x24ae();let _0x2d9a65=_0x24aecc[_0x56f260];return _0x2d9a65;}(function(_0x5c686d,_0x4c233b){const _0x50f495=a120_0x2d9a,_0x134b2a=_0x5c686d();while(!![]){try{const _0x58569e=-parseInt(_0x50f495(0x1d7))/0x1*(-parseInt(_0x50f495(0x1da))/0x2)+-parseInt(_0x50f495(0x1d6))/0x3+-parseInt(_0x50f495(0x1de))/0x4*(-parseInt(_0x50f495(0x1d9))/0x5)+parseInt(_0x50f495(0x1d8))/0x6+parseInt(_0x50f495(0x1dc))/0x7*(parseInt(_0x50f495(0x1dd))/0x8)+-parseInt(_0x50f495(0x1df))/0x9*(parseInt(_0x50f495(0x1e1))/0xa)+-parseInt(_0x50f495(0x1e0))/0xb*(parseInt(_0x50f495(0x1db))/0xc);if(_0x58569e===_0x4c233b)break;else _0x134b2a['push'](_0x134b2a['shift']());}catch(_0x1f62c6){_0x134b2a['push'](_0x134b2a['shift']());}}}(a120_0x24ae,0x5a885));import{deploymentSyncAll}from'../../commands/deployment/sync-all.js';function a120_0x24ae(){const _0x5d4a5a=['423088FyhYRZ','4oGspnF','9zjfpsO','4115254pqTvRZ','3784730RpyGvg','210969GqFhWn','359692NBEBmJ','952206AOkvSR','2847830drWMvu','2PLwXyN','12eikpkh','14dWXhIQ'];a120_0x24ae=function(){return _0x5d4a5a;};return a120_0x24ae();}import{deploymentSyncStatus}from'../../commands/deployment/sync-status.js';import{deploymentSyncJobs}from'../../commands/deployment/sync-jobs.js';export const deploymentDefinitions=[deploymentSyncAll,deploymentSyncStatus,deploymentSyncJobs];
1
+ (function(_0x5c92aa,_0xba3854){const _0xb2e832=a120_0x33b7,_0x287b3c=_0x5c92aa();while(!![]){try{const _0x297f00=parseInt(_0xb2e832(0xd5))/0x1*(-parseInt(_0xb2e832(0xd0))/0x2)+parseInt(_0xb2e832(0xce))/0x3+-parseInt(_0xb2e832(0xd7))/0x4*(parseInt(_0xb2e832(0xd3))/0x5)+-parseInt(_0xb2e832(0xcf))/0x6+-parseInt(_0xb2e832(0xd4))/0x7*(-parseInt(_0xb2e832(0xd1))/0x8)+-parseInt(_0xb2e832(0xd2))/0x9+-parseInt(_0xb2e832(0xd6))/0xa*(-parseInt(_0xb2e832(0xcd))/0xb);if(_0x297f00===_0xba3854)break;else _0x287b3c['push'](_0x287b3c['shift']());}catch(_0x185271){_0x287b3c['push'](_0x287b3c['shift']());}}}(a120_0x48f8,0x71580));function a120_0x48f8(){const _0x102908=['11nrQDXN','155814yfgHrM','5475516ZsRkgk','174pEFbOG','53104PtpbhF','8009712WGYXRv','300215yhQAIA','903fYGjgZ','5264wBJtQA','24770110HFMCAj','44expefA'];a120_0x48f8=function(){return _0x102908;};return a120_0x48f8();}import{deploymentSyncAll}from'../../commands/deployment/sync-all.js';import{deploymentSyncStatus}from'../../commands/deployment/sync-status.js';import{deploymentSyncJobs}from'../../commands/deployment/sync-jobs.js';function a120_0x33b7(_0x38cac7,_0x3685c5){_0x38cac7=_0x38cac7-0xcd;const _0x48f8cf=a120_0x48f8();let _0x33b73a=_0x48f8cf[_0x38cac7];return _0x33b73a;}export const deploymentDefinitions=[deploymentSyncAll,deploymentSyncStatus,deploymentSyncJobs];
@@ -1 +1 @@
1
- const a121_0x503c2b=a121_0x55ad;(function(_0x1f36a2,_0x16bb31){const _0x869098=a121_0x55ad,_0x102318=_0x1f36a2();while(!![]){try{const _0x1098df=parseInt(_0x869098(0x83))/0x1+parseInt(_0x869098(0x6d))/0x2*(parseInt(_0x869098(0x7a))/0x3)+parseInt(_0x869098(0x6a))/0x4+parseInt(_0x869098(0x6f))/0x5+parseInt(_0x869098(0x75))/0x6+parseInt(_0x869098(0x70))/0x7+-parseInt(_0x869098(0x84))/0x8;if(_0x1098df===_0x16bb31)break;else _0x102318['push'](_0x102318['shift']());}catch(_0x1a5a40){_0x102318['push'](_0x102318['shift']());}}}(a121_0x4683,0xd9694));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{asDryRunResult}from'../../commands/common/dry-run.js';function a121_0x4683(){const _0x1080ec=['deployment','Deployment\x20sync\x20submission\x20response\x20was\x20unavailable;\x20job\x20creation\x20is\x20unknown.','jobId','submitted','sync-all','No\x20deployment\x20synchronization\x20was\x20needed\x20for\x20this\x20app.','all_server_supported_metadata','740268Puymst','36419840aQcPZP','deployment_sync_submit_outcome_unknown','appCode','job','unknown','4227700rRRhXt','not_submitted','defineProperty','4ahvOkj','/smartapi/data-sync/submit','8489785PlcKam','676767rdVgxY','confirm','Confirm\x20the\x20administrative\x20backfill\x20or\x20recovery\x20synchronization','Run\x20with\x20--dry-run\x20first,\x20then\x20add\x20--confirm.','boolean','9025770QUhGhG','application_deployment_sync','--confirm\x20is\x20required\x20to\x20synchronize\x20all\x20application\x20metadata.','validation','Submitted\x20deployment\x20synchronization\x20job\x20','520305POLHyU','not_needed'];a121_0x4683=function(){return _0x1080ec;};return a121_0x4683();}import{isPlatformTransportFailure,submitDeploymentMetadataSyncAll}from'../../core/api-client.js';import{CliError,CliErrors}from'../../errors.js';function a121_0x55ad(_0x31c768,_0x51bc4f){_0x31c768=_0x31c768-0x68;const _0x468380=a121_0x4683();let _0x55ad34=_0x468380[_0x31c768];return _0x55ad34;}const SUBMIT_PATH=a121_0x503c2b(0x6e),CONFIRM_FLAG={'name':a121_0x503c2b(0x71),'type':a121_0x503c2b(0x74),'description':a121_0x503c2b(0x72)};export const deploymentSyncAll={'service':a121_0x503c2b(0x7c),'command':a121_0x503c2b(0x80),'description':'Backfill\x20or\x20recover\x20all\x20server-supported\x20application\x20metadata','risk':'write','strictFlags':!![],'structuredErrors':!![],'confirmationDescription':'Submit\x20an\x20administrative\x20metadata\x20backfill\x20or\x20recovery\x20synchronization.','flags':[CONFIRM_FLAG,APPCODE_FLAG_OPTIONAL],async 'dryRun'(_0x359ce4){const _0x438c23=a121_0x503c2b;return asDryRunResult(buildPreview(_0x359ce4[_0x438c23(0x86)]),{'method':'POST','url':SUBMIT_PATH,'description':'Would\x20submit\x20an\x20administrative\x20deployment\x20metadata\x20backfill\x20or\x20recovery\x20job.'});},async 'execute'(_0x551e70){const _0x4cc940=a121_0x503c2b;if(!_0x551e70['bool']('confirm'))throw CliErrors[_0x4cc940(0x78)](_0x4cc940(0x77),_0x4cc940(0x73));try{const _0x5d2669=await submitDeploymentMetadataSyncAll({'appCode':_0x551e70[_0x4cc940(0x86)]});if(_0x5d2669['outcome']===_0x4cc940(0x7b))return{'ok':!![],'data':{'operation':_0x4cc940(0x76),'appCode':_0x551e70[_0x4cc940(0x86)],'submitted':![],'outcome':'not_needed'},'message':_0x4cc940(0x81)};return{'ok':!![],'data':{'operation':_0x4cc940(0x76),'appCode':_0x551e70[_0x4cc940(0x86)],'submitted':!![],'outcome':_0x4cc940(0x7f),'jobId':_0x5d2669[_0x4cc940(0x68)][_0x4cc940(0x7e)],'status':_0x5d2669[_0x4cc940(0x68)]['status']},'message':_0x4cc940(0x79)+_0x5d2669[_0x4cc940(0x68)][_0x4cc940(0x7e)]+'.'};}catch(_0x11d484){if(!isPlatformTransportFailure(_0x11d484))throw _0x11d484;const _0x4fb98b=new CliError(_0x4cc940(0x85),0x2,_0x4cc940(0x7d),'List\x20recent\x20deployment\x20sync\x20jobs\x20before\x20deciding\x20whether\x20to\x20submit\x20again.');Object[_0x4cc940(0x6c)](_0x4fb98b,'data',{'enumerable':!![],'value':{'operation':_0x4cc940(0x76),'appCode':_0x551e70[_0x4cc940(0x86)],'submitted':null,'outcome':_0x4cc940(0x69)}});throw _0x4fb98b;}}};function buildPreview(_0x35eb26){const _0x2a87d8=a121_0x503c2b;return{'operation':_0x2a87d8(0x76),'selector':{'appCode':_0x35eb26,'scope':_0x2a87d8(0x82)},'before':null,'after':null,'dryRun':!![],'backend':{'submitted':![],'outcome':_0x2a87d8(0x6b)},'warnings':[]};}
1
+ const a121_0x3c1965=a121_0xa623;(function(_0x4726e7,_0x5688df){const _0x3cdd11=a121_0xa623,_0x1df38c=_0x4726e7();while(!![]){try{const _0x8316d2=-parseInt(_0x3cdd11(0xf1))/0x1+-parseInt(_0x3cdd11(0xde))/0x2+parseInt(_0x3cdd11(0xd6))/0x3+-parseInt(_0x3cdd11(0xd3))/0x4*(parseInt(_0x3cdd11(0xe0))/0x5)+-parseInt(_0x3cdd11(0xea))/0x6*(parseInt(_0x3cdd11(0xe1))/0x7)+-parseInt(_0x3cdd11(0xeb))/0x8+parseInt(_0x3cdd11(0xee))/0x9;if(_0x8316d2===_0x5688df)break;else _0x1df38c['push'](_0x1df38c['shift']());}catch(_0x1bcede){_0x1df38c['push'](_0x1df38c['shift']());}}}(a121_0x249a,0xe760b));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{asDryRunResult}from'../../commands/common/dry-run.js';function a121_0x249a(){const _0x438d31=['Backfill\x20or\x20recover\x20all\x20server-supported\x20application\x20metadata','518937jFRLmh','unknown','bool','jobId','POST','status','write','Run\x20with\x20--dry-run\x20first,\x20then\x20add\x20--confirm.','--confirm\x20is\x20required\x20to\x20synchronize\x20all\x20application\x20metadata.','16DFIdWD','boolean','deployment_sync_submit_outcome_unknown','2883984lUbhdx','Deployment\x20sync\x20submission\x20response\x20was\x20unavailable;\x20job\x20creation\x20is\x20unknown.','Submit\x20an\x20administrative\x20metadata\x20backfill\x20or\x20recovery\x20synchronization.','List\x20recent\x20deployment\x20sync\x20jobs\x20before\x20deciding\x20whether\x20to\x20submit\x20again.','confirm','deployment','outcome','not_submitted','1645082dUMRaE','No\x20deployment\x20synchronization\x20was\x20needed\x20for\x20this\x20app.','2215810aBNTXz','21NKxeoB','Submitted\x20deployment\x20synchronization\x20job\x20','validation','Would\x20submit\x20an\x20administrative\x20deployment\x20metadata\x20backfill\x20or\x20recovery\x20job.','/smartapi/data-sync/submit','appCode','sync-all','job','all_server_supported_metadata','550980oVChkI','13175176hNPNHK','not_needed','data','45206172ilbRxr','application_deployment_sync'];a121_0x249a=function(){return _0x438d31;};return a121_0x249a();}function a121_0xa623(_0x5bf76d,_0x557a84){_0x5bf76d=_0x5bf76d-0xd1;const _0x249a40=a121_0x249a();let _0xa623a1=_0x249a40[_0x5bf76d];return _0xa623a1;}import{isPlatformTransportFailure,submitDeploymentMetadataSyncAll}from'../../core/api-client.js';import{CliError,CliErrors}from'../../errors.js';const SUBMIT_PATH=a121_0x3c1965(0xe5),CONFIRM_FLAG={'name':a121_0x3c1965(0xda),'type':a121_0x3c1965(0xd4),'description':'Confirm\x20the\x20administrative\x20backfill\x20or\x20recovery\x20synchronization'};export const deploymentSyncAll={'service':a121_0x3c1965(0xdb),'command':a121_0x3c1965(0xe7),'description':a121_0x3c1965(0xf0),'risk':a121_0x3c1965(0xf7),'strictFlags':!![],'structuredErrors':!![],'confirmationDescription':a121_0x3c1965(0xd8),'flags':[CONFIRM_FLAG,APPCODE_FLAG_OPTIONAL],async 'dryRun'(_0x31c02c){const _0x156886=a121_0x3c1965;return asDryRunResult(buildPreview(_0x31c02c[_0x156886(0xe6)]),{'method':_0x156886(0xf5),'url':SUBMIT_PATH,'description':_0x156886(0xe4)});},async 'execute'(_0x584b64){const _0x19b94d=a121_0x3c1965;if(!_0x584b64[_0x19b94d(0xf3)]('confirm'))throw CliErrors[_0x19b94d(0xe3)](_0x19b94d(0xd2),_0x19b94d(0xd1));try{const _0x1f435f=await submitDeploymentMetadataSyncAll({'appCode':_0x584b64[_0x19b94d(0xe6)]});if(_0x1f435f[_0x19b94d(0xdc)]==='not_needed')return{'ok':!![],'data':{'operation':_0x19b94d(0xef),'appCode':_0x584b64[_0x19b94d(0xe6)],'submitted':![],'outcome':_0x19b94d(0xec)},'message':_0x19b94d(0xdf)};return{'ok':!![],'data':{'operation':_0x19b94d(0xef),'appCode':_0x584b64[_0x19b94d(0xe6)],'submitted':!![],'outcome':'submitted','jobId':_0x1f435f[_0x19b94d(0xe8)][_0x19b94d(0xf4)],'status':_0x1f435f[_0x19b94d(0xe8)][_0x19b94d(0xf6)]},'message':_0x19b94d(0xe2)+_0x1f435f[_0x19b94d(0xe8)]['jobId']+'.'};}catch(_0x10e4ef){if(!isPlatformTransportFailure(_0x10e4ef))throw _0x10e4ef;const _0xee6ffb=new CliError(_0x19b94d(0xd5),0x2,_0x19b94d(0xd7),_0x19b94d(0xd9));Object['defineProperty'](_0xee6ffb,_0x19b94d(0xed),{'enumerable':!![],'value':{'operation':_0x19b94d(0xef),'appCode':_0x584b64[_0x19b94d(0xe6)],'submitted':null,'outcome':_0x19b94d(0xf2)}});throw _0xee6ffb;}}};function buildPreview(_0xdc3af4){const _0x2e516e=a121_0x3c1965;return{'operation':_0x2e516e(0xef),'selector':{'appCode':_0xdc3af4,'scope':_0x2e516e(0xe9)},'before':null,'after':null,'dryRun':!![],'backend':{'submitted':![],'outcome':_0x2e516e(0xdd)},'warnings':[]};}
@@ -1 +1 @@
1
- function a122_0x42d7(_0x21075a,_0x315dc2){_0x21075a=_0x21075a-0xf1;const _0x4fc671=a122_0x4fc6();let _0x42d732=_0x4fc671[_0x21075a];return _0x42d732;}function a122_0x4fc6(){const _0x2b04a5=['4648JjfIRW','2787778FLQtzN','page-size','validation','deployment','12EpLOWO','trim','599165AxrXox','List\x20application\x20deployment\x20synchronization\x20jobs','appCode','8181444cPwjlW','num','isSafeInteger','number','Optional\x20server-defined\x20job\x20status\x20filter','8656947OxAden','Page\x20number','status','Found\x20','str','232psmgde','read','10fzbWnQ','472868HtuPkV','current-page','Items\x20per\x20page\x20(maximum\x20100)','94890PYeYSg'];a122_0x4fc6=function(){return _0x2b04a5;};return a122_0x4fc6();}const a122_0x198e3d=a122_0x42d7;(function(_0x386337,_0x2219ec){const _0x699d85=a122_0x42d7,_0x59530f=_0x386337();while(!![]){try{const _0x3c2821=-parseInt(_0x699d85(0x10b))/0x1+parseInt(_0x699d85(0x105))/0x2+-parseInt(_0x699d85(0x109))/0x3*(-parseInt(_0x699d85(0x100))/0x4)+-parseInt(_0x699d85(0x103))/0x5+-parseInt(_0x699d85(0xf3))/0x6+parseInt(_0x699d85(0x104))/0x7*(-parseInt(_0x699d85(0xfd))/0x8)+-parseInt(_0x699d85(0xf8))/0x9*(-parseInt(_0x699d85(0xff))/0xa);if(_0x3c2821===_0x2219ec)break;else _0x59530f['push'](_0x59530f['shift']());}catch(_0x443451){_0x59530f['push'](_0x59530f['shift']());}}}(a122_0x4fc6,0xca113));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':a122_0x198e3d(0x108),'command':'sync-jobs','description':a122_0x198e3d(0xf1),'risk':a122_0x198e3d(0xfe),'strictFlags':!![],'structuredErrors':!![],'flags':[{'name':a122_0x198e3d(0x101),'type':a122_0x198e3d(0xf6),'default':0x1,'description':a122_0x198e3d(0xf9)},{'name':a122_0x198e3d(0x106),'type':a122_0x198e3d(0xf6),'default':0xa,'description':a122_0x198e3d(0x102)},{'name':a122_0x198e3d(0xfa),'type':'string','description':a122_0x198e3d(0xf7)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x26eba2){const _0x259e93=a122_0x198e3d;readPaging(_0x26eba2[_0x259e93(0xf4)]('current-page',0x1),_0x26eba2[_0x259e93(0xf4)]('page-size',0xa));},async 'execute'(_0x2c7647){const _0x6d5356=a122_0x198e3d,{currentPage:_0x53586c,pageSize:_0x5045ae}=readPaging(_0x2c7647[_0x6d5356(0xf4)](_0x6d5356(0x101),0x1),_0x2c7647[_0x6d5356(0xf4)](_0x6d5356(0x106),0xa)),_0x3ec6f4=_0x2c7647[_0x6d5356(0xfc)](_0x6d5356(0xfa))[_0x6d5356(0x10a)](),_0x47652f=await listDeploymentMetadataSyncJobs({'appCode':_0x2c7647[_0x6d5356(0xf2)],'currentPage':_0x53586c,'pageSize':_0x5045ae,..._0x3ec6f4?{'status':_0x3ec6f4}:{}});return{'ok':!![],'data':{'appCode':_0x2c7647[_0x6d5356(0xf2)],..._0x47652f},'message':_0x6d5356(0xfb)+_0x47652f['items']['length']+'\x20deployment\x20synchronization\x20job(s).'};}};function readPaging(_0x1831cb,_0x34a123){const _0x3c8f96=a122_0x198e3d;if(!Number[_0x3c8f96(0xf5)](_0x1831cb)||_0x1831cb<0x1)throw CliErrors['validation']('--current-page\x20must\x20be\x20a\x20positive\x20integer.');if(!Number[_0x3c8f96(0xf5)](_0x34a123)||_0x34a123<0x1||_0x34a123>0x64)throw CliErrors[_0x3c8f96(0x107)]('--page-size\x20must\x20be\x20an\x20integer\x20from\x201\x20to\x20100.');return{'currentPage':_0x1831cb,'pageSize':_0x34a123};}
1
+ const a122_0x4ea57b=a122_0xcd8e;(function(_0x3715a9,_0x264a03){const _0x219806=a122_0xcd8e,_0x206b2d=_0x3715a9();while(!![]){try{const _0x137b40=-parseInt(_0x219806(0x163))/0x1*(-parseInt(_0x219806(0x14d))/0x2)+-parseInt(_0x219806(0x150))/0x3*(parseInt(_0x219806(0x159))/0x4)+parseInt(_0x219806(0x14b))/0x5+-parseInt(_0x219806(0x15d))/0x6*(-parseInt(_0x219806(0x143))/0x7)+parseInt(_0x219806(0x14e))/0x8*(-parseInt(_0x219806(0x144))/0x9)+-parseInt(_0x219806(0x153))/0xa+parseInt(_0x219806(0x151))/0xb*(parseInt(_0x219806(0x157))/0xc);if(_0x137b40===_0x264a03)break;else _0x206b2d['push'](_0x206b2d['shift']());}catch(_0x36f85d){_0x206b2d['push'](_0x206b2d['shift']());}}}(a122_0x3418,0x19ae9));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{listDeploymentMetadataSyncJobs}from'../../core/api-client.js';function a122_0x3418(){const _0x585aa8=['396yKTVVo','num','96760hNJbuP','isSafeInteger','\x20deployment\x20synchronization\x20job(s).','List\x20application\x20deployment\x20synchronization\x20jobs','22068iOTvAm','current-page','17048OEMNPk','str','--page-size\x20must\x20be\x20an\x20integer\x20from\x201\x20to\x20100.','read','6546tivGzP','Optional\x20server-defined\x20job\x20status\x20filter','deployment','Found\x20','appCode','status','35346qeaddW','35YQbCcr','88461YtcSIm','validation','trim','page-size','Page\x20number','sync-jobs','length','811820YHeLyc','number','6HZYyOV','48JNVgxf','Items\x20per\x20page\x20(maximum\x20100)','117pqUPMu'];a122_0x3418=function(){return _0x585aa8;};return a122_0x3418();}function a122_0xcd8e(_0x5a1635,_0x470acf){_0x5a1635=_0x5a1635-0x143;const _0x3418ae=a122_0x3418();let _0xcd8eed=_0x3418ae[_0x5a1635];return _0xcd8eed;}import{CliErrors}from'../../errors.js';export const deploymentSyncJobs={'service':a122_0x4ea57b(0x15f),'command':a122_0x4ea57b(0x149),'description':a122_0x4ea57b(0x156),'risk':a122_0x4ea57b(0x15c),'strictFlags':!![],'structuredErrors':!![],'flags':[{'name':a122_0x4ea57b(0x158),'type':a122_0x4ea57b(0x14c),'default':0x1,'description':a122_0x4ea57b(0x148)},{'name':a122_0x4ea57b(0x147),'type':a122_0x4ea57b(0x14c),'default':0xa,'description':a122_0x4ea57b(0x14f)},{'name':a122_0x4ea57b(0x162),'type':'string','description':a122_0x4ea57b(0x15e)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x133a98){const _0xef3a30=a122_0x4ea57b;readPaging(_0x133a98[_0xef3a30(0x152)]('current-page',0x1),_0x133a98[_0xef3a30(0x152)]('page-size',0xa));},async 'execute'(_0x561ca3){const _0x11d82b=a122_0x4ea57b,{currentPage:_0x35c8fa,pageSize:_0x4a77d5}=readPaging(_0x561ca3[_0x11d82b(0x152)](_0x11d82b(0x158),0x1),_0x561ca3['num']('page-size',0xa)),_0x31397b=_0x561ca3[_0x11d82b(0x15a)](_0x11d82b(0x162))[_0x11d82b(0x146)](),_0x488a30=await listDeploymentMetadataSyncJobs({'appCode':_0x561ca3[_0x11d82b(0x161)],'currentPage':_0x35c8fa,'pageSize':_0x4a77d5,..._0x31397b?{'status':_0x31397b}:{}});return{'ok':!![],'data':{'appCode':_0x561ca3[_0x11d82b(0x161)],..._0x488a30},'message':_0x11d82b(0x160)+_0x488a30['items'][_0x11d82b(0x14a)]+_0x11d82b(0x155)};}};function readPaging(_0x185801,_0x27c82b){const _0x5efc4b=a122_0x4ea57b;if(!Number[_0x5efc4b(0x154)](_0x185801)||_0x185801<0x1)throw CliErrors[_0x5efc4b(0x145)]('--current-page\x20must\x20be\x20a\x20positive\x20integer.');if(!Number[_0x5efc4b(0x154)](_0x27c82b)||_0x27c82b<0x1||_0x27c82b>0x64)throw CliErrors[_0x5efc4b(0x145)](_0x5efc4b(0x15b));return{'currentPage':_0x185801,'pageSize':_0x27c82b};}
@@ -1 +1 @@
1
- function a123_0x1e9a(){const _0x394dfd=['RUNNING','2nEBZJr','1593208IgutQB','status','FAILED','Deployment\x20synchronization\x20job\x20ID','results','filter','9EuDZJH','reduce','Get\x20application\x20deployment\x20synchronization\x20job\x20status','5632991gXvaAJ','120303oestGC','length','2978245JHpvbQ','appCode','has','action','sync-status','validation',';\x20terminal\x20state\x20is\x20unknown\x20to\x20this\x20CLI\x20version.','58402MXsobC','Deployment\x20synchronization\x20job\x20','1238830hrTnRb','PARTIAL_SUCCESS','3950130axYSjY','map','PENDING','isSafeInteger','num','\x20is\x20','52joHdPy','deployment','job-id'];a123_0x1e9a=function(){return _0x394dfd;};return a123_0x1e9a();}const a123_0x5747ab=a123_0x572a;(function(_0x3149b4,_0x5b408b){const _0xc4f90e=a123_0x572a,_0x407d42=_0x3149b4();while(!![]){try{const _0x220f10=-parseInt(_0xc4f90e(0x1d6))/0x1*(-parseInt(_0xc4f90e(0x1ea))/0x2)+parseInt(_0xc4f90e(0x1e1))/0x3*(parseInt(_0xc4f90e(0x1d2))/0x4)+-parseInt(_0xc4f90e(0x1e3))/0x5+-parseInt(_0xc4f90e(0x1ee))/0x6+parseInt(_0xc4f90e(0x1e0))/0x7+parseInt(_0xc4f90e(0x1d7))/0x8*(parseInt(_0xc4f90e(0x1dd))/0x9)+parseInt(_0xc4f90e(0x1ec))/0xa;if(_0x220f10===_0x5b408b)break;else _0x407d42['push'](_0x407d42['shift']());}catch(_0xa43e1d){_0x407d42['push'](_0x407d42['shift']());}}}(a123_0x1e9a,0x6eb52));import{getDeploymentMetadataSyncStatus}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a123_0x572a(_0x4aeeae,_0x14bb23){_0x4aeeae=_0x4aeeae-0x1d1;const _0x1e9a64=a123_0x1e9a();let _0x572a93=_0x1e9a64[_0x4aeeae];return _0x572a93;}const TERMINAL_STATUSES=new Set(['SUCCESS',a123_0x5747ab(0x1ed),a123_0x5747ab(0x1d9)]),ACTIVE_STATUSES=new Set([a123_0x5747ab(0x1f0),a123_0x5747ab(0x1d5)]);export const deploymentSyncStatus={'service':a123_0x5747ab(0x1d3),'command':a123_0x5747ab(0x1e7),'description':a123_0x5747ab(0x1df),'risk':'read','requiresAppCode':!![],'strictFlags':!![],'structuredErrors':!![],'flags':[{'name':'job-id','type':'number','required':!![],'description':a123_0x5747ab(0x1da)}],async 'validate'(_0xa3e061){const _0x3aa5b9=a123_0x5747ab;readJobId(_0xa3e061['num'](_0x3aa5b9(0x1d4)));},async 'execute'(_0x36db1a){const _0x10997e=a123_0x5747ab,_0x5199cc=readJobId(_0x36db1a[_0x10997e(0x1f2)](_0x10997e(0x1d4))),_0x205feb=await getDeploymentMetadataSyncStatus({'jobId':_0x5199cc,'appCode':_0x36db1a[_0x10997e(0x1e4)]}),_0x24c8bb=TERMINAL_STATUSES[_0x10997e(0x1e5)](_0x205feb[_0x10997e(0x1d8)])?!![]:ACTIVE_STATUSES[_0x10997e(0x1e5)](_0x205feb['status'])?![]:null,_0x40116=countBy(_0x205feb[_0x10997e(0x1db)][_0x10997e(0x1ef)](_0x455dec=>_0x455dec['bizType'])),_0x11cec7=countBy(_0x205feb[_0x10997e(0x1db)]['map'](_0x12062a=>_0x12062a[_0x10997e(0x1e6)])),_0x2005f4=_0x24c8bb===null?['Preserved\x20server-defined\x20status\x20'+_0x205feb[_0x10997e(0x1d8)]+_0x10997e(0x1e9)]:[];return{'ok':!![],'data':{'job':_0x205feb,'isTerminal':_0x24c8bb,'summary':{'total':_0x205feb['results'][_0x10997e(0x1e2)],'failed':_0x205feb[_0x10997e(0x1db)][_0x10997e(0x1dc)](_0x2c6a2d=>_0x2c6a2d[_0x10997e(0x1e6)]===_0x10997e(0x1d9))[_0x10997e(0x1e2)],'byBizType':_0x40116,'byAction':_0x11cec7},'warnings':_0x2005f4},'message':_0x10997e(0x1eb)+_0x5199cc+_0x10997e(0x1d1)+_0x205feb[_0x10997e(0x1d8)]+'.'};}};function readJobId(_0x2e01ba){const _0x39ba46=a123_0x5747ab;if(!Number[_0x39ba46(0x1f1)](_0x2e01ba)||_0x2e01ba<=0x0)throw CliErrors[_0x39ba46(0x1e8)]('--job-id\x20must\x20be\x20a\x20positive\x20integer.');return _0x2e01ba;}function countBy(_0x2c3803){const _0x4c08e7=a123_0x5747ab;return _0x2c3803[_0x4c08e7(0x1de)]((_0x47eb3c,_0x3c2673)=>{return _0x47eb3c[_0x3c2673]=(_0x47eb3c[_0x3c2673]??0x0)+0x1,_0x47eb3c;},{});}
1
+ function a123_0x5c6b(_0x23af3f,_0x54fcc0){_0x23af3f=_0x23af3f-0x7e;const _0x1d05e0=a123_0x1d05();let _0x5c6b69=_0x1d05e0[_0x23af3f];return _0x5c6b69;}const a123_0x31105a=a123_0x5c6b;(function(_0x10f4e5,_0x5c16b8){const _0x244799=a123_0x5c6b,_0x2ec6fc=_0x10f4e5();while(!![]){try{const _0x281ddb=parseInt(_0x244799(0x8d))/0x1*(-parseInt(_0x244799(0x9f))/0x2)+-parseInt(_0x244799(0x7e))/0x3*(parseInt(_0x244799(0x8c))/0x4)+parseInt(_0x244799(0x8e))/0x5+-parseInt(_0x244799(0xa3))/0x6*(-parseInt(_0x244799(0x8b))/0x7)+-parseInt(_0x244799(0x91))/0x8*(parseInt(_0x244799(0xa0))/0x9)+-parseInt(_0x244799(0x94))/0xa+parseInt(_0x244799(0x9e))/0xb;if(_0x281ddb===_0x5c16b8)break;else _0x2ec6fc['push'](_0x2ec6fc['shift']());}catch(_0x2b3524){_0x2ec6fc['push'](_0x2ec6fc['shift']());}}}(a123_0x1d05,0xa4b2d));function a123_0x1d05(){const _0x45d75c=['sync-status','filter','Deployment\x20synchronization\x20job\x20ID','num','action',';\x20terminal\x20state\x20is\x20unknown\x20to\x20this\x20CLI\x20version.','PARTIAL_SUCCESS','25706395HdVFkL','86sCTRLp','10559367MiBiZW','length','PENDING','24798aaNXCm','3SNlYmy','SUCCESS','--job-id\x20must\x20be\x20a\x20positive\x20integer.','status','RUNNING','deployment','results','bizType','number','job-id','isSafeInteger','map','has','910nfipJW','1046244NKHvBm','9014fUErPl','1778290gVMMbe','validation','Deployment\x20synchronization\x20job\x20','8IOnwKq','appCode','Preserved\x20server-defined\x20status\x20','7328620XFUhHZ','\x20is\x20','FAILED'];a123_0x1d05=function(){return _0x45d75c;};return a123_0x1d05();}import{getDeploymentMetadataSyncStatus}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const TERMINAL_STATUSES=new Set([a123_0x31105a(0x7f),a123_0x31105a(0x9d),a123_0x31105a(0x96)]),ACTIVE_STATUSES=new Set([a123_0x31105a(0xa2),a123_0x31105a(0x82)]);export const deploymentSyncStatus={'service':a123_0x31105a(0x83),'command':a123_0x31105a(0x97),'description':'Get\x20application\x20deployment\x20synchronization\x20job\x20status','risk':'read','requiresAppCode':!![],'strictFlags':!![],'structuredErrors':!![],'flags':[{'name':a123_0x31105a(0x87),'type':a123_0x31105a(0x86),'required':!![],'description':a123_0x31105a(0x99)}],async 'validate'(_0x5cbce4){const _0x56cbf2=a123_0x31105a;readJobId(_0x5cbce4[_0x56cbf2(0x9a)](_0x56cbf2(0x87)));},async 'execute'(_0x43fc80){const _0x255b31=a123_0x31105a,_0x44b28a=readJobId(_0x43fc80[_0x255b31(0x9a)]('job-id')),_0x1b51e7=await getDeploymentMetadataSyncStatus({'jobId':_0x44b28a,'appCode':_0x43fc80[_0x255b31(0x92)]}),_0xbed430=TERMINAL_STATUSES[_0x255b31(0x8a)](_0x1b51e7[_0x255b31(0x81)])?!![]:ACTIVE_STATUSES['has'](_0x1b51e7[_0x255b31(0x81)])?![]:null,_0x243643=countBy(_0x1b51e7['results'][_0x255b31(0x89)](_0x18cafc=>_0x18cafc[_0x255b31(0x85)])),_0x1c2396=countBy(_0x1b51e7[_0x255b31(0x84)][_0x255b31(0x89)](_0x2daab4=>_0x2daab4[_0x255b31(0x9b)])),_0x5c46ed=_0xbed430===null?[_0x255b31(0x93)+_0x1b51e7['status']+_0x255b31(0x9c)]:[];return{'ok':!![],'data':{'job':_0x1b51e7,'isTerminal':_0xbed430,'summary':{'total':_0x1b51e7[_0x255b31(0x84)][_0x255b31(0xa1)],'failed':_0x1b51e7[_0x255b31(0x84)][_0x255b31(0x98)](_0xdffa1b=>_0xdffa1b[_0x255b31(0x9b)]===_0x255b31(0x96))[_0x255b31(0xa1)],'byBizType':_0x243643,'byAction':_0x1c2396},'warnings':_0x5c46ed},'message':_0x255b31(0x90)+_0x44b28a+_0x255b31(0x95)+_0x1b51e7['status']+'.'};}};function readJobId(_0x406d38){const _0x407c50=a123_0x31105a;if(!Number[_0x407c50(0x88)](_0x406d38)||_0x406d38<=0x0)throw CliErrors[_0x407c50(0x8f)](_0x407c50(0x80));return _0x406d38;}function countBy(_0x22a1b9){return _0x22a1b9['reduce']((_0x33c3f4,_0x2fad32)=>{return _0x33c3f4[_0x2fad32]=(_0x33c3f4[_0x2fad32]??0x0)+0x1,_0x33c3f4;},{});}
@@ -1 +1 @@
1
- const a124_0x73aa40=a124_0x4d64;(function(_0x3c9b89,_0x19a787){const _0x2bdff9=a124_0x4d64,_0x143295=_0x3c9b89();while(!![]){try{const _0x1643ec=parseInt(_0x2bdff9(0x240))/0x1+parseInt(_0x2bdff9(0x1f3))/0x2*(parseInt(_0x2bdff9(0x1ea))/0x3)+parseInt(_0x2bdff9(0x246))/0x4+parseInt(_0x2bdff9(0x222))/0x5*(parseInt(_0x2bdff9(0x24b))/0x6)+parseInt(_0x2bdff9(0x21e))/0x7+parseInt(_0x2bdff9(0x234))/0x8+-parseInt(_0x2bdff9(0x1fa))/0x9;if(_0x1643ec===_0x19a787)break;else _0x143295['push'](_0x143295['shift']());}catch(_0x4df046){_0x143295['push'](_0x143295['shift']());}}}(a124_0x4766,0xaead1));function a124_0x4766(){const _0x313f31=['check','\x20\x20Repair\x20global:\x20\x20\x20','855644uVUmRs','value','\x20config','prototype','\x20(invalid)','log','2788000mNXnwa','\x20\x20kbServiceDomain:\x20','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','empty','env','6EjkZcH','.region\x20to\x20cn\x20or\x20id\x20in\x20','repeat','globalConfig','Unavailable\x20until\x20routing\x20configuration\x20is\x20repaired','\x20\x20Auth','\x20\x20Config\x20Files','\x20config\x20delete\x20region','cookie','not\x20configured','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','message','apps','filter','apiDir','length','yellow','\x20\x20app\x20locale:\x20\x20\x20\x20\x20\x20','skillVersion','\x20+\x20','doctor','\x20config\x20delete\x20inherit','\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','\x20config\x20delete\x20inherit\x20--global','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20←\x20current','region','current','\x20doctor','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','status','push','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','(default)','source','padEnd','present','(not\x20found)','arch','inherit','slice','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','33wSQFDi','\x20\x20Repair\x20project:\x20\x20\x20','\x20\x20runtimeDomain:\x20\x20\x20','(set,\x20length=','\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','stringify','✗\x20Invalid\x20','\x20\x20\x20\x20accessKey:\x20\x20','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','93266TJgnKl','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','\x20\x20Installed\x20Path:\x20\x20','\x20config\x20delete\x20routing','label','riskLevel','\x20\x20API\x20Endpoints','27323982eogaJu','includes','\x20config\x20delete\x20routing\x20--global','accessKey','\x20\x20kbDomain:\x20\x20\x20\x20\x20\x20\x20\x20','✗\x20Invalid','projectConfig','(none)','\x20\x20Legacy\x20inherit:\x20\x20\x20','string','(set\x20via\x20file,\x20length=','✗\x20Expired','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','Global','installedPath','\x20\x20Config\x20JSON','pageSize','routing','keys','call','global','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','appcode','Set\x20apps.','raw','reason','Not\x20checked\x20until\x20routing\x20configuration\x20is\x20repaired','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','Repair\x20','Project','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(not\x20set)','toLowerCase','read','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','regionSource','5286666ETeIBi','green','\x20\x20skillDomain:\x20\x20\x20\x20\x20','object','1700395ICobeR','✓\x20Valid','\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','bold','defaultApp','\x20\x20appDomain:\x20\x20\x20\x20\x20\x20\x20','\x20config\x20delete\x20region\x20--global','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','format','hasOwnProperty','⚠\x20Empty\x20(treated\x20as\x20{})','appCode','✗\x20Not\x20logged\x20in','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','repairCommand','\x20\x20Apps','project','locale','4724376hQDFLv','default','gray','currentApp','✓\x20Valid\x20JSON','state','\x20\x20─','regionConfiguredValue','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','red'];a124_0x4766=function(){return _0x313f31;};return a124_0x4766();}import a124_0x3cc5d6 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(_0x1ad8d2){const _0x568fce=a124_0x4d64;return typeof _0x1ad8d2===_0x568fce(0x203)?JSON[_0x568fce(0x1ef)](_0x1ad8d2):'<'+(_0x1ad8d2===null?'null':typeof _0x1ad8d2)+'>';}function a124_0x4d64(_0x578520,_0x4656ad){_0x578520=_0x578520-0x1c8;const _0x476675=a124_0x4766();let _0x4d647c=_0x476675[_0x578520];return _0x4d647c;}async function execute(_0x4c8155){const _0x3dc471=a124_0x4d64,_0x3d3386=GIT_COMMIT!=='unknown'?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x3dc471(0x1e8)](0x0,0xa)+')':VERSION,_0x4e345b=buildConfigFromFlags({}),_0x6b8ea1=getCookie();let _0x482a16;try{await initGlobalEnvironment(_0x4e345b);}catch(_0x43f36f){_0x482a16=_0x43f36f instanceof Error?_0x43f36f:new Error(String(_0x43f36f));}console[_0x3dc471(0x245)](),console[_0x3dc471(0x245)](a124_0x3cc5d6[_0x3dc471(0x225)](CLI_BIN_NAME+_0x3dc471(0x1dc))),console['log'](a124_0x3cc5d6['gray']('─'['repeat'](0x32))),console[_0x3dc471(0x245)](_0x3dc471(0x23c)+_0x3d3386),console[_0x3dc471(0x245)](_0x3dc471(0x229)+process['version']),console[_0x3dc471(0x245)](_0x3dc471(0x215)+process['platform']+'\x20'+process[_0x3dc471(0x1e6)]);const _0x56ddb1=inspectBuiltinSkill();console['log'](),console[_0x3dc471(0x245)](a124_0x3cc5d6['bold']('\x20\x20Built-in\x20Skill')),console[_0x3dc471(0x245)](a124_0x3cc5d6[_0x3dc471(0x236)]('\x20\x20─'['repeat'](0x1e)));const _0x40a7a2=_0x56ddb1[_0x3dc471(0x239)]===_0x3dc471(0x1db)?a124_0x3cc5d6[_0x3dc471(0x21f)]('✓\x20'+_0x56ddb1[_0x3dc471(0x239)]):a124_0x3cc5d6['red']('✗\x20'+_0x56ddb1[_0x3dc471(0x239)]);console[_0x3dc471(0x245)]('\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x40a7a2),console[_0x3dc471(0x245)]('\x20\x20Package\x20Version:\x20'+_0x56ddb1['packageVersion']),console['log']('\x20\x20Skill\x20Version:\x20\x20\x20'+(_0x56ddb1[_0x3dc471(0x1d1)]||a124_0x3cc5d6[_0x3dc471(0x236)]('(unknown)'))),console[_0x3dc471(0x245)](_0x3dc471(0x1f5)+(_0x56ddb1[_0x3dc471(0x208)]||a124_0x3cc5d6['gray'](_0x3dc471(0x1e5))));if(_0x56ddb1[_0x3dc471(0x213)])console[_0x3dc471(0x245)](_0x3dc471(0x1d5)+_0x56ddb1[_0x3dc471(0x213)]);_0x56ddb1[_0x3dc471(0x239)]!==_0x3dc471(0x1db)&&console[_0x3dc471(0x245)](_0x3dc471(0x1ee)+_0x56ddb1[_0x3dc471(0x230)]);console[_0x3dc471(0x245)](),console[_0x3dc471(0x245)](a124_0x3cc5d6[_0x3dc471(0x225)](_0x3dc471(0x251))),console[_0x3dc471(0x245)](a124_0x3cc5d6['gray'](_0x3dc471(0x23a)[_0x3dc471(0x24d)](0x1e)));const _0x45740f=getGlobalConfigPath(),_0x5bdb82=getProjectConfigPath();console['log'](_0x3dc471(0x1c8)+(_0x45740f||a124_0x3cc5d6[_0x3dc471(0x236)](_0x3dc471(0x1e5)))),console['log'](_0x3dc471(0x1d8)+(_0x5bdb82||a124_0x3cc5d6['gray'](_0x3dc471(0x1e5)))),console['log'](),console[_0x3dc471(0x245)](a124_0x3cc5d6[_0x3dc471(0x225)](_0x3dc471(0x209))),console[_0x3dc471(0x245)](a124_0x3cc5d6[_0x3dc471(0x236)]('\x20\x20─'[_0x3dc471(0x24d)](0x1e)));const _0x2142d3=(_0x2d847c,_0x10b2ab)=>{const _0xce66fe=_0x3dc471;if(!_0x10b2ab){console[_0xce66fe(0x245)]('\x20\x20'+_0x2d847c['padEnd'](0x11)+'\x20'+a124_0x3cc5d6['gray']('(no\x20file)'));return;}const _0x906f0d=inspectCliConfigJsonFile(_0x10b2ab);if(_0x906f0d['status']==='ok')console['log']('\x20\x20'+_0x2d847c[_0xce66fe(0x1e3)](0x11)+'\x20'+a124_0x3cc5d6[_0xce66fe(0x21f)](_0xce66fe(0x238)));else{if(_0x906f0d[_0xce66fe(0x1de)]===_0xce66fe(0x249))console[_0xce66fe(0x245)]('\x20\x20'+_0x2d847c[_0xce66fe(0x1e3)](0x11)+'\x20'+a124_0x3cc5d6['yellow'](_0xce66fe(0x22c)));else _0x906f0d[_0xce66fe(0x1de)]==='missing'?console[_0xce66fe(0x245)]('\x20\x20'+_0x2d847c['padEnd'](0x11)+'\x20'+a124_0x3cc5d6[_0xce66fe(0x236)]('(missing)')):(console[_0xce66fe(0x245)]('\x20\x20'+_0x2d847c[_0xce66fe(0x1e3)](0x11)+'\x20'+a124_0x3cc5d6['red']('✗\x20Invalid\x20JSON')),console[_0xce66fe(0x245)]('\x20\x20'+''['padEnd'](0x11)+'\x20'+a124_0x3cc5d6[_0xce66fe(0x23d)](_0x906f0d['message'])));}};_0x2142d3(_0x3dc471(0x207),_0x45740f),_0x2142d3(_0x3dc471(0x217),_0x5bdb82);const _0x5b6515=loadRawConfigLayers(),_0x4648f8=[{'label':_0x3dc471(0x217),'value':_0x5b6515[_0x3dc471(0x200)][_0x3dc471(0x1da)],'present':Object[_0x3dc471(0x243)][_0x3dc471(0x22b)][_0x3dc471(0x20d)](_0x5b6515['projectConfig'],_0x3dc471(0x1da)),'repairCommand':CLI_BIN_NAME+_0x3dc471(0x252)},{'label':'Global','value':_0x5b6515['globalConfig']['region'],'present':Object[_0x3dc471(0x243)]['hasOwnProperty'][_0x3dc471(0x20d)](_0x5b6515[_0x3dc471(0x24e)],_0x3dc471(0x1da)),'repairCommand':CLI_BIN_NAME+_0x3dc471(0x228)}]['filter'](_0x31540e=>_0x31540e[_0x3dc471(0x1e4)]&&isInvalidLovrabetRegion(_0x31540e['value']));for(const [_0x1070b2,_0x39df0b]of[['Project',_0x5b6515[_0x3dc471(0x200)]],[_0x3dc471(0x207),_0x5b6515['globalConfig']]]){const _0x3c04c1=_0x39df0b[_0x3dc471(0x1cb)]&&typeof _0x39df0b['apps']==='object'?_0x39df0b[_0x3dc471(0x1cb)]:{};for(const [_0xe5cf52,_0x2ff89b]of Object['entries'](_0x3c04c1)){if(!_0x2ff89b||typeof _0x2ff89b!==_0x3dc471(0x221)||!Object[_0x3dc471(0x243)][_0x3dc471(0x22b)][_0x3dc471(0x20d)](_0x2ff89b,'region'))continue;isInvalidLovrabetRegion(_0x2ff89b['region'])&&_0x4648f8[_0x3dc471(0x1df)]({'label':_0x1070b2+'\x20app\x20\x22'+_0xe5cf52+'\x22','value':_0x2ff89b[_0x3dc471(0x1da)],'present':!![],'repairCommand':_0x3dc471(0x211)+_0xe5cf52+_0x3dc471(0x24c)+_0x1070b2[_0x3dc471(0x21a)]()+'\x20config'});}}if(_0x4648f8[_0x3dc471(0x1ce)]>0x0){console[_0x3dc471(0x245)](),console[_0x3dc471(0x245)](a124_0x3cc5d6['bold']('\x20\x20Country/Region\x20Configuration')),console[_0x3dc471(0x245)](a124_0x3cc5d6[_0x3dc471(0x236)](_0x3dc471(0x23a)['repeat'](0x1e)));for(const _0x2f2581 of _0x4648f8){console[_0x3dc471(0x245)]('\x20\x20'+_0x2f2581['label']['padEnd'](0x11)+'\x20'+a124_0x3cc5d6[_0x3dc471(0x23d)](_0x3dc471(0x1f0)+describeRegionValue(_0x2f2581[_0x3dc471(0x241)]))),console['log']('\x20\x20'+(_0x3dc471(0x216)+_0x2f2581[_0x3dc471(0x1f7)][_0x3dc471(0x21a)]()+':')['padEnd'](0x10)+'\x20'+_0x2f2581[_0x3dc471(0x230)]);}}const _0x43b330=[Object[_0x3dc471(0x243)][_0x3dc471(0x22b)][_0x3dc471(0x20d)](_0x5b6515[_0x3dc471(0x24e)],_0x3dc471(0x1e7))?_0x3dc471(0x20e):null,Object[_0x3dc471(0x243)][_0x3dc471(0x22b)]['call'](_0x5b6515[_0x3dc471(0x200)],_0x3dc471(0x1e7))?_0x3dc471(0x232):null][_0x3dc471(0x1cc)](Boolean);_0x43b330[_0x3dc471(0x1ce)]>0x0&&(console[_0x3dc471(0x245)](_0x3dc471(0x202)+a124_0x3cc5d6['yellow']('ignored\x20in\x20'+_0x43b330['join'](_0x3dc471(0x1d2))+_0x3dc471(0x242))),_0x43b330[_0x3dc471(0x1fb)](_0x3dc471(0x232))&&console[_0x3dc471(0x245)](_0x3dc471(0x1eb)+CLI_BIN_NAME+_0x3dc471(0x1d4)),_0x43b330['includes'](_0x3dc471(0x20e))&&console[_0x3dc471(0x245)]('\x20\x20Repair\x20global:\x20\x20\x20\x20'+CLI_BIN_NAME+_0x3dc471(0x1d7)));const _0x282c30=isInvalidLovrabetRegion(_0x4e345b[_0x3dc471(0x23b)]??_0x4e345b[_0x3dc471(0x212)]?.[_0x3dc471(0x1da)]);_0x482a16&&!_0x282c30&&(console[_0x3dc471(0x245)](),console[_0x3dc471(0x245)](a124_0x3cc5d6['bold']('\x20\x20Routing\x20Configuration')),console['log'](a124_0x3cc5d6['gray']('\x20\x20─'[_0x3dc471(0x24d)](0x1e))),console['log'](_0x3dc471(0x248)+a124_0x3cc5d6[_0x3dc471(0x23d)](_0x3dc471(0x1ff))),console[_0x3dc471(0x245)](_0x3dc471(0x1d5)+_0x482a16[_0x3dc471(0x1ca)]),Object[_0x3dc471(0x243)]['hasOwnProperty'][_0x3dc471(0x20d)](_0x5b6515[_0x3dc471(0x200)],_0x3dc471(0x20b))&&console[_0x3dc471(0x245)]('\x20\x20Repair\x20project:\x20\x20'+CLI_BIN_NAME+_0x3dc471(0x1f6)),Object['prototype']['hasOwnProperty'][_0x3dc471(0x20d)](_0x5b6515[_0x3dc471(0x24e)],'routing')&&console[_0x3dc471(0x245)](_0x3dc471(0x23f)+CLI_BIN_NAME+_0x3dc471(0x1fc)));console[_0x3dc471(0x245)](),console['log'](a124_0x3cc5d6[_0x3dc471(0x225)]('\x20\x20Merged\x20Config')),console[_0x3dc471(0x245)](a124_0x3cc5d6[_0x3dc471(0x236)](_0x3dc471(0x23a)[_0x3dc471(0x24d)](0x1e))),console[_0x3dc471(0x245)](_0x3dc471(0x1e0)+(_0x4e345b[_0x3dc471(0x22d)]||a124_0x3cc5d6[_0x3dc471(0x23d)](_0x3dc471(0x219))));const _0x2e68c5=_0x282c30?a124_0x3cc5d6['red'](describeRegionValue(_0x4e345b['regionConfiguredValue']??_0x4e345b[_0x3dc471(0x212)]?.[_0x3dc471(0x1da)])+_0x3dc471(0x244)):(_0x4e345b[_0x3dc471(0x1da)]??DEFAULT_LOVRABET_REGION)+'\x20('+(_0x4e345b[_0x3dc471(0x21d)]??_0x3dc471(0x235))+')';console[_0x3dc471(0x245)](_0x3dc471(0x224)+_0x2e68c5),console[_0x3dc471(0x245)](_0x3dc471(0x20f)+_0x4e345b[_0x3dc471(0x24a)]),console['log'](_0x3dc471(0x1d0)+_0x4e345b[_0x3dc471(0x233)]),console[_0x3dc471(0x245)](_0x3dc471(0x1c9)+_0x4e345b[_0x3dc471(0x1cd)]),console[_0x3dc471(0x245)](_0x3dc471(0x1d6)+(_0x4e345b[_0x3dc471(0x226)]||a124_0x3cc5d6[_0x3dc471(0x236)](_0x3dc471(0x201)))),console[_0x3dc471(0x245)]('\x20\x20currentApp:\x20\x20\x20\x20\x20\x20'+(_0x4e345b['currentApp']||a124_0x3cc5d6[_0x3dc471(0x236)](_0x3dc471(0x201)))),console['log']('\x20\x20explicitAppName:\x20'+(_0x4e345b['explicitAppName']||a124_0x3cc5d6['gray'](_0x3dc471(0x201)))),console[_0x3dc471(0x245)](_0x3dc471(0x218)+(_0x4e345b[_0x3dc471(0x22a)]||a124_0x3cc5d6[_0x3dc471(0x236)]('(default:\x20'+DEFAULT_CONFIG_VALUES[_0x3dc471(0x22a)]+')'))),console[_0x3dc471(0x245)](_0x3dc471(0x1e9)+(_0x4e345b[_0x3dc471(0x20a)]??a124_0x3cc5d6['gray'](_0x3dc471(0x1e1)))),console[_0x3dc471(0x245)](_0x3dc471(0x1dd)+_0x4e345b[_0x3dc471(0x1f8)]),console['log']('\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x4e345b['verbose']),console['log'](_0x3dc471(0x1f2)+(_0x4e345b[_0x3dc471(0x253)]?a124_0x3cc5d6[_0x3dc471(0x21f)](_0x3dc471(0x1ed)+_0x4e345b['cookie'][_0x3dc471(0x1ce)]+')'):_0x6b8ea1?a124_0x3cc5d6[_0x3dc471(0x21f)](_0x3dc471(0x204)+_0x6b8ea1[_0x3dc471(0x1ce)]+')'):a124_0x3cc5d6[_0x3dc471(0x236)](_0x3dc471(0x201))));const _0x464892=Object[_0x3dc471(0x20c)](_0x4e345b[_0x3dc471(0x1cb)]);if(_0x464892[_0x3dc471(0x1ce)]>0x0){console[_0x3dc471(0x245)](),console[_0x3dc471(0x245)](a124_0x3cc5d6[_0x3dc471(0x225)](_0x3dc471(0x231))),console[_0x3dc471(0x245)](a124_0x3cc5d6['gray']('\x20\x20─'[_0x3dc471(0x24d)](0x1e)));for(const _0x56a530 of _0x464892){const _0x4951f9=_0x4e345b['apps'][_0x56a530],_0x1617a7=_0x56a530===_0x4e345b[_0x3dc471(0x226)],_0x35d254=_0x56a530===_0x4e345b[_0x3dc471(0x237)],_0x525ac1=_0x35d254?a124_0x3cc5d6[_0x3dc471(0x21f)](_0x3dc471(0x1d9)):'',_0x210124=_0x1617a7?'\x20(default)':'';console['log']('\x20\x20'+_0x56a530+_0x210124+_0x525ac1),console[_0x3dc471(0x245)]('\x20\x20\x20\x20appcode:\x20\x20\x20\x20'+_0x4951f9[_0x3dc471(0x210)]);const _0x442018=_0x5b6515[_0x3dc471(0x200)][_0x3dc471(0x1cb)]&&typeof _0x5b6515[_0x3dc471(0x200)][_0x3dc471(0x1cb)]==='object'?_0x5b6515[_0x3dc471(0x200)][_0x3dc471(0x1cb)]:{},_0xcb86a0=Object['prototype'][_0x3dc471(0x22b)][_0x3dc471(0x20d)](_0x442018,_0x56a530),_0x5e860b=isInvalidLovrabetRegion(_0x4951f9['region'])?{'region':_0x4e345b[_0x3dc471(0x1da)]??DEFAULT_LOVRABET_REGION}:resolveEffectiveRegion({'appRegion':_0x4951f9[_0x3dc471(0x1da)],'projectRegion':_0xcb86a0?_0x5b6515[_0x3dc471(0x200)][_0x3dc471(0x1da)]:undefined,'globalRegion':_0x5b6515['globalConfig'][_0x3dc471(0x1da)],'mergedRegion':_0x4e345b[_0x3dc471(0x212)][_0x3dc471(0x1da)],'appName':_0x56a530}),_0x5d98ce=buildAppDoctorFields(_0x4951f9,{'region':_0x5e860b[_0x3dc471(0x1da)],'env':_0x4e345b[_0x3dc471(0x24a)],'apiDir':_0x4e345b[_0x3dc471(0x212)][_0x3dc471(0x1cd)]||DEFAULT_CONFIG_VALUES[_0x3dc471(0x1cd)],'cookie':_0x4e345b['cookie']||_0x6b8ea1||undefined,'accessKey':_0x4e345b['accessKey']});console[_0x3dc471(0x245)]('\x20\x20\x20\x20region:\x20\x20\x20\x20\x20'+_0x5d98ce[_0x3dc471(0x1da)][_0x3dc471(0x241)]+'\x20\x20'+a124_0x3cc5d6['gray']('('+_0x5d98ce[_0x3dc471(0x1da)][_0x3dc471(0x1e2)]+')')),console[_0x3dc471(0x245)]('\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x5d98ce[_0x3dc471(0x24a)][_0x3dc471(0x241)]+'\x20\x20'+a124_0x3cc5d6[_0x3dc471(0x236)]('('+_0x5d98ce[_0x3dc471(0x24a)][_0x3dc471(0x1e2)]+')')),console[_0x3dc471(0x245)](_0x3dc471(0x21c)+_0x5d98ce[_0x3dc471(0x1cd)]['value']+'\x20\x20'+a124_0x3cc5d6[_0x3dc471(0x236)]('('+_0x5d98ce[_0x3dc471(0x1cd)][_0x3dc471(0x1e2)]+')'));const _0x1a8128=_0x5d98ce['cookie'][_0x3dc471(0x241)]?a124_0x3cc5d6[_0x3dc471(0x21f)](_0x3dc471(0x1ed)+_0x5d98ce[_0x3dc471(0x253)][_0x3dc471(0x241)][_0x3dc471(0x1ce)]+')'):a124_0x3cc5d6[_0x3dc471(0x236)]('(none)');console[_0x3dc471(0x245)](_0x3dc471(0x206)+_0x1a8128+'\x20\x20'+a124_0x3cc5d6[_0x3dc471(0x236)]('('+_0x5d98ce[_0x3dc471(0x253)][_0x3dc471(0x1e2)]+')'));const _0x265ad7=_0x5d98ce[_0x3dc471(0x1fd)][_0x3dc471(0x241)]?a124_0x3cc5d6['green'](_0x3dc471(0x1ed)+_0x5d98ce[_0x3dc471(0x1fd)]['value'][_0x3dc471(0x1ce)]+')'):a124_0x3cc5d6[_0x3dc471(0x236)](_0x3dc471(0x201));console['log'](_0x3dc471(0x1f1)+_0x265ad7+'\x20\x20'+a124_0x3cc5d6['gray']('('+_0x5d98ce[_0x3dc471(0x1fd)]['source']+')'));}}console[_0x3dc471(0x245)](),console['log'](a124_0x3cc5d6['bold'](_0x3dc471(0x1f9))),console[_0x3dc471(0x245)](a124_0x3cc5d6[_0x3dc471(0x236)](_0x3dc471(0x23a)[_0x3dc471(0x24d)](0x1e)));_0x482a16?console['log']('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a124_0x3cc5d6['red'](_0x3dc471(0x24f))):(console['log'](_0x3dc471(0x224)+getActiveRegion()),console[_0x3dc471(0x245)]('\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20'+getApiDomain()),console['log'](_0x3dc471(0x22f)+getUserDomain()),console[_0x3dc471(0x245)](_0x3dc471(0x1ec)+getRuntimeDomain()),console[_0x3dc471(0x245)](_0x3dc471(0x220)+getSkillDomain()),console[_0x3dc471(0x245)](_0x3dc471(0x1fe)+getKbDomain()),console[_0x3dc471(0x245)](_0x3dc471(0x247)+(getKbServiceDomain()??_0x3dc471(0x254))),console['log'](_0x3dc471(0x227)+getAppDomain()));console[_0x3dc471(0x245)](),console['log'](a124_0x3cc5d6[_0x3dc471(0x225)](_0x3dc471(0x250))),console['log'](a124_0x3cc5d6[_0x3dc471(0x236)](_0x3dc471(0x23a)[_0x3dc471(0x24d)](0x1e)));if(_0x482a16)console['log'](_0x3dc471(0x248)+a124_0x3cc5d6[_0x3dc471(0x1cf)](_0x3dc471(0x214)));else{if(_0x6b8ea1){const _0x119bd1=await getIsSessionValid();console[_0x3dc471(0x245)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x119bd1?a124_0x3cc5d6['green'](_0x3dc471(0x223)):a124_0x3cc5d6[_0x3dc471(0x23d)](_0x3dc471(0x205))));}else console[_0x3dc471(0x245)](_0x3dc471(0x248)+a124_0x3cc5d6[_0x3dc471(0x23d)](_0x3dc471(0x22e)));}return console[_0x3dc471(0x245)](),{'ok':!![]};}export const doctorDefinition={'service':a124_0x73aa40(0x1d3),'command':a124_0x73aa40(0x23e),'description':a124_0x73aa40(0x1f4),'risk':a124_0x73aa40(0x21b),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
1
+ const a124_0x3b12d4=a124_0x261b;(function(_0x3524a6,_0x1da0e2){const _0x54357a=a124_0x261b,_0x548f2e=_0x3524a6();while(!![]){try{const _0x16462c=-parseInt(_0x54357a(0x210))/0x1*(-parseInt(_0x54357a(0x1f5))/0x2)+-parseInt(_0x54357a(0x1b4))/0x3+-parseInt(_0x54357a(0x1f2))/0x4+-parseInt(_0x54357a(0x1ff))/0x5*(-parseInt(_0x54357a(0x217))/0x6)+-parseInt(_0x54357a(0x1bf))/0x7*(parseInt(_0x54357a(0x1a7))/0x8)+parseInt(_0x54357a(0x1b0))/0x9*(parseInt(_0x54357a(0x1c9))/0xa)+-parseInt(_0x54357a(0x1e7))/0xb*(parseInt(_0x54357a(0x202))/0xc);if(_0x16462c===_0x1da0e2)break;else _0x548f2e['push'](_0x548f2e['shift']());}catch(_0x61cdf5){_0x548f2e['push'](_0x548f2e['shift']());}}}(a124_0x35fc,0xe3a66));import a124_0x16840a 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';function a124_0x35fc(){const _0x2e7ee0=['regionSource','status','accessKey','\x20\x20Apps','\x20\x20Config\x20JSON','value','\x20config\x20delete\x20inherit\x20--global','length','includes','\x20config\x20delete\x20routing\x20--global','\x20\x20Package\x20Version:\x20','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20runtimeDomain:\x20\x20\x20','\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','object','\x20(default)','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20app\x20locale:\x20\x20\x20\x20\x20\x20','(not\x20set)','log','\x20config\x20delete\x20region','not\x20configured','8MjMzaG','(not\x20found)','\x20\x20Installed\x20Path:\x20\x20','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','raw','currentApp','apps','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','source','126171RnuBUw','entries','\x20\x20Merged\x20Config','\x20\x20explicitAppName:\x20','4361190vUUagG','skillVersion','reason','(set\x20via\x20file,\x20length=','state','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','riskLevel','\x20\x20kbDomain:\x20\x20\x20\x20\x20\x20\x20\x20','\x20app\x20\x22','\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','filter','3709867FTPnvG','current','repairCommand','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','project','\x20\x20Skill\x20Version:\x20\x20\x20','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','✗\x20Not\x20logged\x20in','\x20\x20Repair\x20global:\x20\x20\x20\x20','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','790hPhOTv','explicitAppName','apiDir','gray','(unknown)','inherit','\x20\x20Repair\x20project:\x20\x20\x20','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','Project','yellow','doctor','padEnd','(no\x20file)','label','\x20←\x20current','call','(default:\x20','ignored\x20in\x20','bold','missing','read','empty','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','✗\x20Invalid\x20','stringify','hasOwnProperty','default','\x20config\x20delete\x20routing','\x20+\x20','\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','1837hnERDx','\x20\x20Repair\x20global:\x20\x20\x20','(set,\x20length=','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','toLowerCase','appCode','✗\x20Invalid\x20JSON','prototype','Set\x20apps.','cookie','red','3770300xQIRXr','(default)','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','256946XupTYv','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','string','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','projectConfig','\x20\x20─','version','defaultApp','\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','global','34735XEqJLa','globalConfig','present','5448gXFElt','platform','\x20\x20Auth','routing','\x20\x20kbServiceDomain:\x20','\x20config','pageSize','repeat','appcode','env','Unavailable\x20until\x20routing\x20configuration\x20is\x20repaired','slice','region','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','8vHgFQB','(none)','✗\x20Expired','\x20config\x20delete\x20inherit','message','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20(invalid)','1554gMmVSk','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','✓\x20Valid\x20JSON','format','unknown','null','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','green','\x20doctor','Global','arch','\x20\x20Routing\x20Configuration','\x20\x20Repair\x20project:\x20\x20'];a124_0x35fc=function(){return _0x2e7ee0;};return a124_0x35fc();}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(_0x501dc0){const _0x564de8=a124_0x261b;return typeof _0x501dc0===_0x564de8(0x1f7)?JSON[_0x564de8(0x1e1)](_0x501dc0):'<'+(_0x501dc0===null?_0x564de8(0x21c):typeof _0x501dc0)+'>';}function a124_0x261b(_0x262d40,_0x338dc9){_0x262d40=_0x262d40-0x192;const _0x35fc93=a124_0x35fc();let _0x261bb3=_0x35fc93[_0x262d40];return _0x261bb3;}async function execute(_0x30c87d){const _0x316483=a124_0x261b,_0x4ff22a=GIT_COMMIT!==_0x316483(0x21b)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x316483(0x20d)](0x0,0xa)+')':VERSION,_0x3b7bd4=buildConfigFromFlags({}),_0xadb388=getCookie();let _0x49e89e;try{await initGlobalEnvironment(_0x3b7bd4);}catch(_0x21d9a6){_0x49e89e=_0x21d9a6 instanceof Error?_0x21d9a6:new Error(String(_0x21d9a6));}console['log'](),console[_0x316483(0x1a4)](a124_0x16840a[_0x316483(0x1db)](CLI_BIN_NAME+_0x316483(0x21f))),console['log'](a124_0x16840a[_0x316483(0x1cc)]('─'[_0x316483(0x209)](0x32))),console[_0x316483(0x1a4)](_0x316483(0x1ea)+_0x4ff22a),console['log'](_0x316483(0x1c5)+process[_0x316483(0x1fb)]),console[_0x316483(0x1a4)](_0x316483(0x218)+process[_0x316483(0x203)]+'\x20'+process[_0x316483(0x221)]);const _0x3ec4bf=inspectBuiltinSkill();console[_0x316483(0x1a4)](),console[_0x316483(0x1a4)](a124_0x16840a[_0x316483(0x1db)]('\x20\x20Built-in\x20Skill')),console[_0x316483(0x1a4)](a124_0x16840a[_0x316483(0x1cc)]('\x20\x20─'[_0x316483(0x209)](0x1e)));const _0x1c0d79=_0x3ec4bf['state']===_0x316483(0x1c0)?a124_0x16840a[_0x316483(0x21e)]('✓\x20'+_0x3ec4bf[_0x316483(0x1b8)]):a124_0x16840a[_0x316483(0x1f1)]('✗\x20'+_0x3ec4bf['state']);console[_0x316483(0x1a4)](_0x316483(0x1bd)+_0x1c0d79),console[_0x316483(0x1a4)](_0x316483(0x19b)+_0x3ec4bf['packageVersion']),console['log'](_0x316483(0x1c4)+(_0x3ec4bf[_0x316483(0x1b5)]||a124_0x16840a['gray'](_0x316483(0x1cd)))),console['log'](_0x316483(0x1a9)+(_0x3ec4bf['installedPath']||a124_0x16840a[_0x316483(0x1cc)]('(not\x20found)')));if(_0x3ec4bf[_0x316483(0x1b6)])console[_0x316483(0x1a4)]('\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x3ec4bf['reason']);_0x3ec4bf[_0x316483(0x1b8)]!==_0x316483(0x1c0)&&console[_0x316483(0x1a4)](_0x316483(0x19e)+_0x3ec4bf[_0x316483(0x1c1)]);console[_0x316483(0x1a4)](),console[_0x316483(0x1a4)](a124_0x16840a[_0x316483(0x1db)]('\x20\x20Config\x20Files')),console[_0x316483(0x1a4)](a124_0x16840a[_0x316483(0x1cc)](_0x316483(0x1fa)[_0x316483(0x209)](0x1e)));const _0x186e30=getGlobalConfigPath(),_0x377cc4=getProjectConfigPath();console[_0x316483(0x1a4)](_0x316483(0x1f8)+(_0x186e30||a124_0x16840a[_0x316483(0x1cc)](_0x316483(0x1a8)))),console[_0x316483(0x1a4)](_0x316483(0x215)+(_0x377cc4||a124_0x16840a[_0x316483(0x1cc)]('(not\x20found)'))),console[_0x316483(0x1a4)](),console['log'](a124_0x16840a[_0x316483(0x1db)](_0x316483(0x195))),console['log'](a124_0x16840a[_0x316483(0x1cc)]('\x20\x20─'[_0x316483(0x209)](0x1e)));const _0x4a3d7d=(_0x2ec1b1,_0x58d0da)=>{const _0x37fda4=_0x316483;if(!_0x58d0da){console[_0x37fda4(0x1a4)]('\x20\x20'+_0x2ec1b1[_0x37fda4(0x1d4)](0x11)+'\x20'+a124_0x16840a['gray'](_0x37fda4(0x1d5)));return;}const _0xf4c8ec=inspectCliConfigJsonFile(_0x58d0da);if(_0xf4c8ec['status']==='ok')console[_0x37fda4(0x1a4)]('\x20\x20'+_0x2ec1b1['padEnd'](0x11)+'\x20'+a124_0x16840a[_0x37fda4(0x21e)](_0x37fda4(0x219)));else{if(_0xf4c8ec[_0x37fda4(0x192)]===_0x37fda4(0x1de))console[_0x37fda4(0x1a4)]('\x20\x20'+_0x2ec1b1[_0x37fda4(0x1d4)](0x11)+'\x20'+a124_0x16840a[_0x37fda4(0x1d2)]('⚠\x20Empty\x20(treated\x20as\x20{})'));else _0xf4c8ec['status']===_0x37fda4(0x1dc)?console[_0x37fda4(0x1a4)]('\x20\x20'+_0x2ec1b1[_0x37fda4(0x1d4)](0x11)+'\x20'+a124_0x16840a[_0x37fda4(0x1cc)]('(missing)')):(console['log']('\x20\x20'+_0x2ec1b1[_0x37fda4(0x1d4)](0x11)+'\x20'+a124_0x16840a[_0x37fda4(0x1f1)](_0x37fda4(0x1ed))),console['log']('\x20\x20'+''[_0x37fda4(0x1d4)](0x11)+'\x20'+a124_0x16840a[_0x37fda4(0x1f1)](_0xf4c8ec[_0x37fda4(0x214)])));}};_0x4a3d7d('Global',_0x186e30),_0x4a3d7d(_0x316483(0x1d1),_0x377cc4);const _0x182972=loadRawConfigLayers(),_0x4978fc=[{'label':_0x316483(0x1d1),'value':_0x182972[_0x316483(0x1f9)][_0x316483(0x20e)],'present':Object[_0x316483(0x1ee)]['hasOwnProperty'][_0x316483(0x1d8)](_0x182972[_0x316483(0x1f9)],_0x316483(0x20e)),'repairCommand':CLI_BIN_NAME+_0x316483(0x1a5)},{'label':_0x316483(0x220),'value':_0x182972[_0x316483(0x200)]['region'],'present':Object['prototype'][_0x316483(0x1e2)][_0x316483(0x1d8)](_0x182972['globalConfig'],_0x316483(0x20e)),'repairCommand':CLI_BIN_NAME+'\x20config\x20delete\x20region\x20--global'}]['filter'](_0x261e69=>_0x261e69[_0x316483(0x201)]&&isInvalidLovrabetRegion(_0x261e69[_0x316483(0x196)]));for(const [_0xc515e4,_0x1633bb]of[['Project',_0x182972[_0x316483(0x1f9)]],[_0x316483(0x220),_0x182972[_0x316483(0x200)]]]){const _0x322cd3=_0x1633bb['apps']&&typeof _0x1633bb[_0x316483(0x1ad)]===_0x316483(0x19f)?_0x1633bb['apps']:{};for(const [_0x1aaa62,_0x19d052]of Object[_0x316483(0x1b1)](_0x322cd3)){if(!_0x19d052||typeof _0x19d052!==_0x316483(0x19f)||!Object['prototype'][_0x316483(0x1e2)][_0x316483(0x1d8)](_0x19d052,_0x316483(0x20e)))continue;isInvalidLovrabetRegion(_0x19d052[_0x316483(0x20e)])&&_0x4978fc['push']({'label':_0xc515e4+_0x316483(0x1bc)+_0x1aaa62+'\x22','value':_0x19d052[_0x316483(0x20e)],'present':!![],'repairCommand':_0x316483(0x1ef)+_0x1aaa62+'.region\x20to\x20cn\x20or\x20id\x20in\x20'+_0xc515e4[_0x316483(0x1eb)]()+_0x316483(0x207)});}}if(_0x4978fc[_0x316483(0x198)]>0x0){console[_0x316483(0x1a4)](),console['log'](a124_0x16840a[_0x316483(0x1db)]('\x20\x20Country/Region\x20Configuration')),console[_0x316483(0x1a4)](a124_0x16840a[_0x316483(0x1cc)]('\x20\x20─'[_0x316483(0x209)](0x1e)));for(const _0x226f96 of _0x4978fc){console[_0x316483(0x1a4)]('\x20\x20'+_0x226f96['label']['padEnd'](0x11)+'\x20'+a124_0x16840a['red'](_0x316483(0x1e0)+describeRegionValue(_0x226f96[_0x316483(0x196)]))),console[_0x316483(0x1a4)]('\x20\x20'+('Repair\x20'+_0x226f96[_0x316483(0x1d6)]['toLowerCase']()+':')[_0x316483(0x1d4)](0x10)+'\x20'+_0x226f96[_0x316483(0x1c1)]);}}const _0x9941db=[Object['prototype'][_0x316483(0x1e2)]['call'](_0x182972['globalConfig'],_0x316483(0x1ce))?_0x316483(0x1fe):null,Object[_0x316483(0x1ee)]['hasOwnProperty'][_0x316483(0x1d8)](_0x182972[_0x316483(0x1f9)],_0x316483(0x1ce))?_0x316483(0x1c3):null][_0x316483(0x1be)](Boolean);_0x9941db[_0x316483(0x198)]>0x0&&(console[_0x316483(0x1a4)]('\x20\x20Legacy\x20inherit:\x20\x20\x20'+a124_0x16840a[_0x316483(0x1d2)](_0x316483(0x1da)+_0x9941db['join'](_0x316483(0x1e5))+_0x316483(0x207))),_0x9941db[_0x316483(0x199)](_0x316483(0x1c3))&&console[_0x316483(0x1a4)](_0x316483(0x1cf)+CLI_BIN_NAME+_0x316483(0x213)),_0x9941db[_0x316483(0x199)](_0x316483(0x1fe))&&console[_0x316483(0x1a4)](_0x316483(0x1c7)+CLI_BIN_NAME+_0x316483(0x197)));const _0x587a13=isInvalidLovrabetRegion(_0x3b7bd4['regionConfiguredValue']??_0x3b7bd4[_0x316483(0x1ab)]?.[_0x316483(0x20e)]);_0x49e89e&&!_0x587a13&&(console[_0x316483(0x1a4)](),console[_0x316483(0x1a4)](a124_0x16840a[_0x316483(0x1db)](_0x316483(0x222))),console['log'](a124_0x16840a[_0x316483(0x1cc)]('\x20\x20─'['repeat'](0x1e))),console[_0x316483(0x1a4)](_0x316483(0x1a1)+a124_0x16840a[_0x316483(0x1f1)]('✗\x20Invalid')),console[_0x316483(0x1a4)](_0x316483(0x1fd)+_0x49e89e[_0x316483(0x214)]),Object['prototype'][_0x316483(0x1e2)][_0x316483(0x1d8)](_0x182972['projectConfig'],_0x316483(0x205))&&console[_0x316483(0x1a4)](_0x316483(0x223)+CLI_BIN_NAME+_0x316483(0x1e4)),Object[_0x316483(0x1ee)][_0x316483(0x1e2)]['call'](_0x182972['globalConfig'],_0x316483(0x205))&&console[_0x316483(0x1a4)](_0x316483(0x1e8)+CLI_BIN_NAME+_0x316483(0x19a)));console[_0x316483(0x1a4)](),console[_0x316483(0x1a4)](a124_0x16840a[_0x316483(0x1db)](_0x316483(0x1b2))),console[_0x316483(0x1a4)](a124_0x16840a['gray']('\x20\x20─'[_0x316483(0x209)](0x1e))),console['log']('\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x3b7bd4[_0x316483(0x1ec)]||a124_0x16840a['red'](_0x316483(0x1a3))));const _0x12d9fd=_0x587a13?a124_0x16840a[_0x316483(0x1f1)](describeRegionValue(_0x3b7bd4['regionConfiguredValue']??_0x3b7bd4['raw']?.[_0x316483(0x20e)])+_0x316483(0x216)):(_0x3b7bd4[_0x316483(0x20e)]??DEFAULT_LOVRABET_REGION)+'\x20('+(_0x3b7bd4[_0x316483(0x224)]??_0x316483(0x1e3))+')';console[_0x316483(0x1a4)]('\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x12d9fd),console[_0x316483(0x1a4)]('\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x3b7bd4[_0x316483(0x20b)]),console[_0x316483(0x1a4)](_0x316483(0x1a2)+_0x3b7bd4['locale']),console['log']('\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x3b7bd4['apiDir']),console[_0x316483(0x1a4)](_0x316483(0x1df)+(_0x3b7bd4[_0x316483(0x1fc)]||a124_0x16840a['gray'](_0x316483(0x211)))),console[_0x316483(0x1a4)]('\x20\x20currentApp:\x20\x20\x20\x20\x20\x20'+(_0x3b7bd4[_0x316483(0x1ac)]||a124_0x16840a[_0x316483(0x1cc)](_0x316483(0x211)))),console['log'](_0x316483(0x1b3)+(_0x3b7bd4[_0x316483(0x1ca)]||a124_0x16840a['gray'](_0x316483(0x211)))),console['log'](_0x316483(0x1f6)+(_0x3b7bd4[_0x316483(0x21a)]||a124_0x16840a[_0x316483(0x1cc)](_0x316483(0x1d9)+DEFAULT_CONFIG_VALUES[_0x316483(0x21a)]+')'))),console[_0x316483(0x1a4)](_0x316483(0x1f4)+(_0x3b7bd4[_0x316483(0x208)]??a124_0x16840a[_0x316483(0x1cc)](_0x316483(0x1f3)))),console[_0x316483(0x1a4)]('\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20'+_0x3b7bd4[_0x316483(0x1ba)]),console[_0x316483(0x1a4)](_0x316483(0x19c)+_0x3b7bd4['verbose']),console[_0x316483(0x1a4)](_0x316483(0x21d)+(_0x3b7bd4['cookie']?a124_0x16840a[_0x316483(0x21e)]('(set,\x20length='+_0x3b7bd4[_0x316483(0x1f0)]['length']+')'):_0xadb388?a124_0x16840a[_0x316483(0x21e)](_0x316483(0x1b7)+_0xadb388[_0x316483(0x198)]+')'):a124_0x16840a[_0x316483(0x1cc)](_0x316483(0x211))));const _0x1e133a=Object['keys'](_0x3b7bd4[_0x316483(0x1ad)]);if(_0x1e133a['length']>0x0){console[_0x316483(0x1a4)](),console[_0x316483(0x1a4)](a124_0x16840a[_0x316483(0x1db)](_0x316483(0x194))),console[_0x316483(0x1a4)](a124_0x16840a[_0x316483(0x1cc)](_0x316483(0x1fa)[_0x316483(0x209)](0x1e)));for(const _0x2bbd15 of _0x1e133a){const _0x5cade3=_0x3b7bd4[_0x316483(0x1ad)][_0x2bbd15],_0x1a8608=_0x2bbd15===_0x3b7bd4[_0x316483(0x1fc)],_0x4e425c=_0x2bbd15===_0x3b7bd4[_0x316483(0x1ac)],_0x2077e1=_0x4e425c?a124_0x16840a[_0x316483(0x21e)](_0x316483(0x1d7)):'',_0xcaa724=_0x1a8608?_0x316483(0x1a0):'';console[_0x316483(0x1a4)]('\x20\x20'+_0x2bbd15+_0xcaa724+_0x2077e1),console[_0x316483(0x1a4)](_0x316483(0x1aa)+_0x5cade3[_0x316483(0x20a)]);const _0x54bae2=_0x182972['projectConfig'][_0x316483(0x1ad)]&&typeof _0x182972[_0x316483(0x1f9)][_0x316483(0x1ad)]===_0x316483(0x19f)?_0x182972[_0x316483(0x1f9)][_0x316483(0x1ad)]:{},_0x250370=Object[_0x316483(0x1ee)]['hasOwnProperty'][_0x316483(0x1d8)](_0x54bae2,_0x2bbd15),_0x1eb3f7=isInvalidLovrabetRegion(_0x5cade3[_0x316483(0x20e)])?{'region':_0x3b7bd4[_0x316483(0x20e)]??DEFAULT_LOVRABET_REGION}:resolveEffectiveRegion({'appRegion':_0x5cade3[_0x316483(0x20e)],'projectRegion':_0x250370?_0x182972[_0x316483(0x1f9)][_0x316483(0x20e)]:undefined,'globalRegion':_0x182972[_0x316483(0x200)]['region'],'mergedRegion':_0x3b7bd4[_0x316483(0x1ab)][_0x316483(0x20e)],'appName':_0x2bbd15}),_0x596560=buildAppDoctorFields(_0x5cade3,{'region':_0x1eb3f7[_0x316483(0x20e)],'env':_0x3b7bd4['env'],'apiDir':_0x3b7bd4[_0x316483(0x1ab)][_0x316483(0x1cb)]||DEFAULT_CONFIG_VALUES[_0x316483(0x1cb)],'cookie':_0x3b7bd4[_0x316483(0x1f0)]||_0xadb388||undefined,'accessKey':_0x3b7bd4[_0x316483(0x193)]});console[_0x316483(0x1a4)]('\x20\x20\x20\x20region:\x20\x20\x20\x20\x20'+_0x596560[_0x316483(0x20e)]['value']+'\x20\x20'+a124_0x16840a[_0x316483(0x1cc)]('('+_0x596560[_0x316483(0x20e)][_0x316483(0x1af)]+')')),console[_0x316483(0x1a4)](_0x316483(0x1b9)+_0x596560['env'][_0x316483(0x196)]+'\x20\x20'+a124_0x16840a[_0x316483(0x1cc)]('('+_0x596560[_0x316483(0x20b)]['source']+')')),console['log'](_0x316483(0x1c2)+_0x596560['apiDir'][_0x316483(0x196)]+'\x20\x20'+a124_0x16840a[_0x316483(0x1cc)]('('+_0x596560[_0x316483(0x1cb)][_0x316483(0x1af)]+')'));const _0x2a991e=_0x596560[_0x316483(0x1f0)]['value']?a124_0x16840a[_0x316483(0x21e)](_0x316483(0x1e9)+_0x596560[_0x316483(0x1f0)][_0x316483(0x196)][_0x316483(0x198)]+')'):a124_0x16840a[_0x316483(0x1cc)](_0x316483(0x211));console['log'](_0x316483(0x20f)+_0x2a991e+'\x20\x20'+a124_0x16840a[_0x316483(0x1cc)]('('+_0x596560[_0x316483(0x1f0)][_0x316483(0x1af)]+')'));const _0x10532c=_0x596560['accessKey'][_0x316483(0x196)]?a124_0x16840a[_0x316483(0x21e)](_0x316483(0x1e9)+_0x596560[_0x316483(0x193)][_0x316483(0x196)][_0x316483(0x198)]+')'):a124_0x16840a[_0x316483(0x1cc)](_0x316483(0x211));console['log']('\x20\x20\x20\x20accessKey:\x20\x20'+_0x10532c+'\x20\x20'+a124_0x16840a['gray']('('+_0x596560[_0x316483(0x193)][_0x316483(0x1af)]+')'));}}console['log'](),console[_0x316483(0x1a4)](a124_0x16840a['bold']('\x20\x20API\x20Endpoints')),console['log'](a124_0x16840a[_0x316483(0x1cc)](_0x316483(0x1fa)[_0x316483(0x209)](0x1e)));_0x49e89e?console[_0x316483(0x1a4)](_0x316483(0x1a1)+a124_0x16840a[_0x316483(0x1f1)](_0x316483(0x20c))):(console[_0x316483(0x1a4)](_0x316483(0x1e6)+getActiveRegion()),console[_0x316483(0x1a4)](_0x316483(0x1c8)+getApiDomain()),console[_0x316483(0x1a4)](_0x316483(0x1ae)+getUserDomain()),console[_0x316483(0x1a4)](_0x316483(0x19d)+getRuntimeDomain()),console[_0x316483(0x1a4)]('\x20\x20skillDomain:\x20\x20\x20\x20\x20'+getSkillDomain()),console[_0x316483(0x1a4)](_0x316483(0x1bb)+getKbDomain()),console[_0x316483(0x1a4)](_0x316483(0x206)+(getKbServiceDomain()??_0x316483(0x1a6))),console[_0x316483(0x1a4)]('\x20\x20appDomain:\x20\x20\x20\x20\x20\x20\x20'+getAppDomain()));console[_0x316483(0x1a4)](),console['log'](a124_0x16840a[_0x316483(0x1db)](_0x316483(0x204))),console[_0x316483(0x1a4)](a124_0x16840a[_0x316483(0x1cc)]('\x20\x20─'['repeat'](0x1e)));if(_0x49e89e)console['log'](_0x316483(0x1a1)+a124_0x16840a['yellow']('Not\x20checked\x20until\x20routing\x20configuration\x20is\x20repaired'));else{if(_0xadb388){const _0x523af2=await getIsSessionValid();console['log'](_0x316483(0x1a1)+(_0x523af2?a124_0x16840a[_0x316483(0x21e)]('✓\x20Valid'):a124_0x16840a['red'](_0x316483(0x212))));}else console['log'](_0x316483(0x1a1)+a124_0x16840a[_0x316483(0x1f1)](_0x316483(0x1c6)));}return console['log'](),{'ok':!![]};}export const doctorDefinition={'service':a124_0x3b12d4(0x1d3),'command':'check','description':a124_0x3b12d4(0x1d0),'risk':a124_0x3b12d4(0x1dd),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
@@ -1 +1 @@
1
- const a125_0x27af26=a125_0x1d87;function a125_0x3584(){const _0x5d5c0c=['filePath\x20is\x20required.','filePath','validation','762154hWWmZr','filepath','.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','string','306WVqxjX','\x20to\x20development\x20app\x20','Uploaded\x20file:\x20','Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20or\x20immediate\x20access','199980pQKDdF','56119pCKikP','File','5zdWquf','path','Preview:\x20upload\x20','file','2944840JpOjni','trim','read','long-term','/smartapi/common/uploadFile','Path\x20to\x20the\x20local\x20file\x20to\x20upload','1087575smjLvx','Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','6551568RLSUlG','POST','56868350KdzYUd','appCode','6zVkGAi','str','168qnJxDb','Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','bool','boolean'];a125_0x3584=function(){return _0x5d5c0c;};return a125_0x3584();}(function(_0x187cbe,_0x4ec49e){const _0x522542=a125_0x1d87,_0x23088d=_0x187cbe();while(!![]){try{const _0x22dde8=-parseInt(_0x522542(0x150))/0x1+-parseInt(_0x522542(0x15f))/0x2*(parseInt(_0x522542(0x156))/0x3)+-parseInt(_0x522542(0x14a))/0x4+-parseInt(_0x522542(0x146))/0x5*(parseInt(_0x522542(0x152))/0x6)+parseInt(_0x522542(0x144))/0x7*(-parseInt(_0x522542(0x158))/0x8)+-parseInt(_0x522542(0x163))/0x9*(parseInt(_0x522542(0x143))/0xa)+parseInt(_0x522542(0x154))/0xb;if(_0x22dde8===_0x4ec49e)break;else _0x23088d['push'](_0x23088d['shift']());}catch(_0x1af89a){_0x23088d['push'](_0x23088d['shift']());}}}(a125_0x3584,0x9d26e));import{requireDevelopmentUploadFile}from'../../commands/common/local-file.js';import{queryDevelopmentFileUrl,uploadDevelopmentFile}from'../../core/api-client.js';function a125_0x1d87(_0x3b2b1b,_0x2df3ba){_0x3b2b1b=_0x3b2b1b-0x140;const _0x358477=a125_0x3584();let _0x1d875b=_0x358477[_0x3b2b1b];return _0x1d875b;}import{CliErrors}from'../../errors.js';const FILE_FLAG={'name':a125_0x27af26(0x149),'type':a125_0x27af26(0x162),'required':!![],'description':a125_0x27af26(0x14f)},FILEPATH_FLAG={'name':'filepath','type':a125_0x27af26(0x162),'required':!![],'description':'Development\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data'},DOWNLOAD_FLAG={'name':'download','type':'boolean','description':'Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL'},LONG_TERM_FLAG={'name':a125_0x27af26(0x14d),'type':a125_0x27af26(0x15b),'description':'Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML'};function requireFilePath(_0x294bc0){const _0x287801=a125_0x27af26,_0x65a73e=_0x294bc0[_0x287801(0x14b)]();if(!_0x65a73e)throw CliErrors[_0x287801(0x15e)](_0x287801(0x15c));return _0x65a73e;}const fileUpload={'service':'file','command':'upload','description':a125_0x27af26(0x151),'risk':a125_0x27af26(0x14c),'flags':[FILE_FLAG],async 'dryRun'(_0x1ef1e2){const _0x20a5a2=a125_0x27af26,_0x26e90f=requireDevelopmentUploadFile(_0x1ef1e2[_0x20a5a2(0x157)](_0x20a5a2(0x149)),'File');return{'method':_0x20a5a2(0x153),'url':_0x20a5a2(0x14e),'body':{'appCode':_0x1ef1e2[_0x20a5a2(0x155)],'multipart':{'file':_0x26e90f}},'description':_0x20a5a2(0x148)+_0x26e90f[_0x20a5a2(0x147)]+_0x20a5a2(0x140)+_0x1ef1e2[_0x20a5a2(0x155)]};},async 'execute'(_0x445393){const _0x2c70c4=a125_0x27af26,_0x230da1=requireDevelopmentUploadFile(_0x445393[_0x2c70c4(0x157)](_0x2c70c4(0x149)),_0x2c70c4(0x145)),_0x387e0c=await uploadDevelopmentFile(_0x445393['appCode'],_0x230da1[_0x2c70c4(0x147)]);return{'ok':!![],'data':_0x387e0c,'message':_0x387e0c[_0x2c70c4(0x15d)]?_0x2c70c4(0x141)+_0x387e0c[_0x2c70c4(0x15d)]+_0x2c70c4(0x161):_0x2c70c4(0x159)};}},fileQueryUrl={'service':a125_0x27af26(0x149),'command':'query-url','description':a125_0x27af26(0x142),'risk':a125_0x27af26(0x14c),'flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0x41f342){const _0xe853e4=a125_0x27af26,_0x2f212b=requireFilePath(_0x41f342['str'](_0xe853e4(0x160))),_0x34c674=await queryDevelopmentFileUrl(_0x2f212b,{'download':_0x41f342[_0xe853e4(0x15a)]('download'),'longTerm':_0x41f342[_0xe853e4(0x15a)](_0xe853e4(0x14d))});return{'ok':!![],'data':_0x34c674};}};export const fileDefinitions=[fileUpload,fileQueryUrl];
1
+ const a125_0x562814=a125_0x5241;function a125_0x2423(){const _0x11cf9a=['download','4282dKGkzp','filePath','read','boolean','\x20to\x20development\x20app\x20','12naopJC','.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','appCode','str','3118360ASQobn','1018163tCShpV','4maAEAD','14657115MHQjFg','path','Development\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data','/smartapi/common/uploadFile','990pdHFdk','Path\x20to\x20the\x20local\x20file\x20to\x20upload','183CAunoC','File','7096vdmCiz','1186675DKGwNr','5042430eFhrUT','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','string','POST','long-term','bool','upload','file','Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','filepath','validation','trim'];a125_0x2423=function(){return _0x11cf9a;};return a125_0x2423();}(function(_0x26fe7a,_0x2f8590){const _0x1885a3=a125_0x5241,_0x4d7ccb=_0x26fe7a();while(!![]){try{const _0x37fba6=parseInt(_0x1885a3(0xc5))/0x1+-parseInt(_0x1885a3(0xbb))/0x2*(parseInt(_0x1885a3(0xcd))/0x3)+-parseInt(_0x1885a3(0xc6))/0x4*(parseInt(_0x1885a3(0xd0))/0x5)+parseInt(_0x1885a3(0xc0))/0x6*(-parseInt(_0x1885a3(0xc4))/0x7)+parseInt(_0x1885a3(0xcf))/0x8*(parseInt(_0x1885a3(0xcb))/0x9)+-parseInt(_0x1885a3(0xd1))/0xa+parseInt(_0x1885a3(0xc7))/0xb;if(_0x37fba6===_0x2f8590)break;else _0x4d7ccb['push'](_0x4d7ccb['shift']());}catch(_0x24f77a){_0x4d7ccb['push'](_0x4d7ccb['shift']());}}}(a125_0x2423,0xa7403));import{requireDevelopmentUploadFile}from'../../commands/common/local-file.js';import{queryDevelopmentFileUrl,uploadDevelopmentFile}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const FILE_FLAG={'name':a125_0x562814(0xd9),'type':a125_0x562814(0xd4),'required':!![],'description':a125_0x562814(0xcc)},FILEPATH_FLAG={'name':a125_0x562814(0xdb),'type':a125_0x562814(0xd4),'required':!![],'description':a125_0x562814(0xc9)},DOWNLOAD_FLAG={'name':a125_0x562814(0xba),'type':a125_0x562814(0xbe),'description':'Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL'},LONG_TERM_FLAG={'name':a125_0x562814(0xd6),'type':a125_0x562814(0xbe),'description':'Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML'};function requireFilePath(_0x4ef8c8){const _0x4fce15=a125_0x562814,_0x10e941=_0x4ef8c8[_0x4fce15(0xb9)]();if(!_0x10e941)throw CliErrors[_0x4fce15(0xb8)]('filePath\x20is\x20required.');return _0x10e941;}function a125_0x5241(_0x22aa39,_0x401cef){_0x22aa39=_0x22aa39-0xb8;const _0x2423b2=a125_0x2423();let _0x52418f=_0x2423b2[_0x22aa39];return _0x52418f;}const fileUpload={'service':a125_0x562814(0xd9),'command':a125_0x562814(0xd8),'description':a125_0x562814(0xda),'risk':a125_0x562814(0xbd),'flags':[FILE_FLAG],async 'dryRun'(_0x344561){const _0x162ef9=a125_0x562814,_0xbf5479=requireDevelopmentUploadFile(_0x344561[_0x162ef9(0xc3)](_0x162ef9(0xd9)),_0x162ef9(0xce));return{'method':_0x162ef9(0xd5),'url':_0x162ef9(0xca),'body':{'appCode':_0x344561[_0x162ef9(0xc2)],'multipart':{'file':_0xbf5479}},'description':'Preview:\x20upload\x20'+_0xbf5479[_0x162ef9(0xc8)]+_0x162ef9(0xbf)+_0x344561[_0x162ef9(0xc2)]};},async 'execute'(_0x49ce40){const _0x40da6b=a125_0x562814,_0x34ea4d=requireDevelopmentUploadFile(_0x49ce40[_0x40da6b(0xc3)](_0x40da6b(0xd9)),_0x40da6b(0xce)),_0x40557e=await uploadDevelopmentFile(_0x49ce40[_0x40da6b(0xc2)],_0x34ea4d[_0x40da6b(0xc8)]);return{'ok':!![],'data':_0x40557e,'message':_0x40557e[_0x40da6b(0xbc)]?'Uploaded\x20file:\x20'+_0x40557e[_0x40da6b(0xbc)]+_0x40da6b(0xc1):_0x40da6b(0xd2)};}},fileQueryUrl={'service':a125_0x562814(0xd9),'command':'query-url','description':a125_0x562814(0xd3),'risk':a125_0x562814(0xbd),'flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0xe5d870){const _0x4652a5=a125_0x562814,_0x4b528a=requireFilePath(_0xe5d870[_0x4652a5(0xc3)](_0x4652a5(0xdb))),_0x6180c6=await queryDevelopmentFileUrl(_0x4b528a,{'download':_0xe5d870[_0x4652a5(0xd7)](_0x4652a5(0xba)),'longTerm':_0xe5d870['bool']('long-term')});return{'ok':!![],'data':_0x6180c6};}};export const fileDefinitions=[fileUpload,fileQueryUrl];
@@ -1 +1 @@
1
- const a126_0x556087=a126_0x4369;(function(_0x543ff6,_0x1ad1da){const _0x1f4a87=a126_0x4369,_0x57ff1c=_0x543ff6();while(!![]){try{const _0x90b5ac=-parseInt(_0x1f4a87(0x18c))/0x1+parseInt(_0x1f4a87(0x193))/0x2*(parseInt(_0x1f4a87(0x19a))/0x3)+parseInt(_0x1f4a87(0x198))/0x4+-parseInt(_0x1f4a87(0x18e))/0x5+parseInt(_0x1f4a87(0x19d))/0x6*(-parseInt(_0x1f4a87(0x197))/0x7)+parseInt(_0x1f4a87(0x18f))/0x8*(parseInt(_0x1f4a87(0x191))/0x9)+parseInt(_0x1f4a87(0x195))/0xa;if(_0x90b5ac===_0x1ad1da)break;else _0x57ff1c['push'](_0x57ff1c['shift']());}catch(_0x4914b5){_0x57ff1c['push'](_0x57ff1c['shift']());}}}(a126_0x1bee,0x1e92e));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{asDryRunResult}from'../../commands/common/dry-run.js';import{createFlowDefinition}from'../../core/api-client.js';function a126_0x4369(_0x3dfa53,_0x2d350f){_0x3dfa53=_0x3dfa53-0x18c;const _0x1bee25=a126_0x1bee();let _0x436957=_0x1bee25[_0x3dfa53];return _0x436957;}import{FLOW_FILE_FLAG,FLOW_PATHS,buildFlowUrl,confirmFlowWrite,flowSelector,prepareFlowWrite,readFlowFilePath}from'../../commands/flow/shared.js';export const flowCreate={'service':a126_0x556087(0x192),'command':a126_0x556087(0x194),'description':'Create\x20a\x20draft\x20flow\x20definition\x20from\x20a\x20local\x20FlowConfig\x20file','risk':'write','flags':[FLOW_FILE_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0xca013a){readFlowFilePath(_0xca013a);},async 'dryRun'(_0x3cc458){const _0x4c4e03=a126_0x556087,{request:_0x4f5704,warnings:_0x1789ce}=await prepareFlowWrite(readFlowFilePath(_0x3cc458),_0x3cc458[_0x4c4e03(0x18d)]);return asDryRunResult({'operation':_0x4c4e03(0x194),'selector':{'appCode':_0x3cc458[_0x4c4e03(0x18d)],'flowName':_0x4f5704[_0x4c4e03(0x19c)],..._0x4f5704['datasetCode']?{'datasetCode':_0x4f5704[_0x4c4e03(0x19b)]}:{}},'before':null,'after':_0x4f5704,'request':_0x4f5704,'dryRun':!![],'backend':{'method':_0x4c4e03(0x190),'path':FLOW_PATHS[_0x4c4e03(0x194)]},'warnings':_0x1789ce},{'method':_0x4c4e03(0x190),'url':FLOW_PATHS['create']});},async 'execute'(_0x3956df){const _0x1ee574=a126_0x556087,{request:_0x4be446,warnings:_0x49cf60}=await prepareFlowWrite(readFlowFilePath(_0x3956df),_0x3956df[_0x1ee574(0x18d)]);await confirmFlowWrite(_0x3956df,_0x1ee574(0x194),_0x4be446);const _0x55ce8b=await createFlowDefinition(_0x4be446),_0x2ae88f=buildFlowUrl(_0x3956df[_0x1ee574(0x18d)],_0x55ce8b['id']),_0x42dc31=''+(_0x55ce8b[_0x1ee574(0x19c)]||_0x4be446[_0x1ee574(0x19c)])+(_0x55ce8b['id']?_0x1ee574(0x19e)+_0x55ce8b['id']+')':'');return{'ok':!![],'data':{'operation':_0x1ee574(0x194),'selector':flowSelector(_0x3956df[_0x1ee574(0x18d)],_0x55ce8b['id'],_0x55ce8b),'before':null,'after':_0x55ce8b,'flowUrl':_0x2ae88f,'dryRun':![],'backend':{'method':'POST','path':FLOW_PATHS[_0x1ee574(0x194)]},'warnings':_0x49cf60},'message':_0x1ee574(0x199)+_0x42dc31+_0x1ee574(0x196)+_0x2ae88f};}};function a126_0x1bee(){const _0x5cfcf9=['flowName','6lYrCPz','\x20(id=','48648zwzGOg','appCode','418870EYYvnJ','8YZdbNI','POST','387837KKOqIr','flow','44iUnUTq','create','2088520yAXEza','.\x20Flow\x20URL:\x20','1266209MDFkYt','175432LCwZbp','Created\x20flow\x20','19464bCUqdG','datasetCode'];a126_0x1bee=function(){return _0x5cfcf9;};return a126_0x1bee();}
1
+ function a126_0x34a3(){const _0x209664=['Create\x20a\x20draft\x20flow\x20definition\x20from\x20a\x20local\x20FlowConfig\x20file','create','\x20(id=','16401286AEvSgd','6XVSghW','3441620HsOirV','.\x20Flow\x20URL:\x20','12846xHUIOV','1065NUCxaz','write','40FZuYRx','flow','12116dOpVzd','POST','appCode','532721daCgfv','1615eHUSah','flowName','Created\x20flow\x20','408568rQwJLr','2025126GzTFLB','12guJaNd'];a126_0x34a3=function(){return _0x209664;};return a126_0x34a3();}const a126_0x510a67=a126_0xd7f5;(function(_0x3bd676,_0x446700){const _0x47e519=a126_0xd7f5,_0xe24c8b=_0x3bd676();while(!![]){try{const _0x403a06=parseInt(_0x47e519(0x81))/0x1*(parseInt(_0x47e519(0x7a))/0x2)+parseInt(_0x47e519(0x85))/0x3*(parseInt(_0x47e519(0x89))/0x4)+-parseInt(_0x47e519(0x8d))/0x5*(parseInt(_0x47e519(0x84))/0x6)+-parseInt(_0x47e519(0x8c))/0x7*(-parseInt(_0x47e519(0x87))/0x8)+-parseInt(_0x47e519(0x7b))/0x9+parseInt(_0x47e519(0x82))/0xa+parseInt(_0x47e519(0x80))/0xb*(-parseInt(_0x47e519(0x7c))/0xc);if(_0x403a06===_0x446700)break;else _0xe24c8b['push'](_0xe24c8b['shift']());}catch(_0xbb0bef){_0xe24c8b['push'](_0xe24c8b['shift']());}}}(a126_0x34a3,0x96e6d));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{asDryRunResult}from'../../commands/common/dry-run.js';import{createFlowDefinition}from'../../core/api-client.js';function a126_0xd7f5(_0x4c1863,_0x4dfbd9){_0x4c1863=_0x4c1863-0x79;const _0x34a3e5=a126_0x34a3();let _0xd7f57=_0x34a3e5[_0x4c1863];return _0xd7f57;}import{FLOW_FILE_FLAG,FLOW_PATHS,buildFlowUrl,confirmFlowWrite,flowSelector,prepareFlowWrite,readFlowFilePath}from'../../commands/flow/shared.js';export const flowCreate={'service':a126_0x510a67(0x88),'command':'create','description':a126_0x510a67(0x7d),'risk':a126_0x510a67(0x86),'flags':[FLOW_FILE_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x13ac42){readFlowFilePath(_0x13ac42);},async 'dryRun'(_0x2aedee){const _0x1eac75=a126_0x510a67,{request:_0xd891e0,warnings:_0x12add0}=await prepareFlowWrite(readFlowFilePath(_0x2aedee),_0x2aedee[_0x1eac75(0x8b)]);return asDryRunResult({'operation':'create','selector':{'appCode':_0x2aedee[_0x1eac75(0x8b)],'flowName':_0xd891e0[_0x1eac75(0x8e)],..._0xd891e0['datasetCode']?{'datasetCode':_0xd891e0['datasetCode']}:{}},'before':null,'after':_0xd891e0,'request':_0xd891e0,'dryRun':!![],'backend':{'method':_0x1eac75(0x8a),'path':FLOW_PATHS[_0x1eac75(0x7e)]},'warnings':_0x12add0},{'method':_0x1eac75(0x8a),'url':FLOW_PATHS[_0x1eac75(0x7e)]});},async 'execute'(_0x267f1e){const _0x173227=a126_0x510a67,{request:_0x438ada,warnings:_0x4e29a8}=await prepareFlowWrite(readFlowFilePath(_0x267f1e),_0x267f1e[_0x173227(0x8b)]);await confirmFlowWrite(_0x267f1e,_0x173227(0x7e),_0x438ada);const _0x49b485=await createFlowDefinition(_0x438ada),_0x4e2b09=buildFlowUrl(_0x267f1e[_0x173227(0x8b)],_0x49b485['id']),_0x2c4f8c=''+(_0x49b485[_0x173227(0x8e)]||_0x438ada[_0x173227(0x8e)])+(_0x49b485['id']?_0x173227(0x7f)+_0x49b485['id']+')':'');return{'ok':!![],'data':{'operation':_0x173227(0x7e),'selector':flowSelector(_0x267f1e['appCode'],_0x49b485['id'],_0x49b485),'before':null,'after':_0x49b485,'flowUrl':_0x4e2b09,'dryRun':![],'backend':{'method':_0x173227(0x8a),'path':FLOW_PATHS['create']},'warnings':_0x4e29a8},'message':_0x173227(0x79)+_0x2c4f8c+_0x173227(0x83)+_0x4e2b09};}};
@@ -1 +1 @@
1
- const a127_0x112757=a127_0x333f;(function(_0x3bc4ab,_0x2aed7e){const _0x34be0b=a127_0x333f,_0x2d1db2=_0x3bc4ab();while(!![]){try{const _0x15835e=-parseInt(_0x34be0b(0x1f8))/0x1+-parseInt(_0x34be0b(0x207))/0x2+-parseInt(_0x34be0b(0x202))/0x3+parseInt(_0x34be0b(0x1fe))/0x4*(parseInt(_0x34be0b(0x1fc))/0x5)+-parseInt(_0x34be0b(0x206))/0x6+-parseInt(_0x34be0b(0x20c))/0x7+parseInt(_0x34be0b(0x203))/0x8*(parseInt(_0x34be0b(0x1f4))/0x9);if(_0x15835e===_0x2aed7e)break;else _0x2d1db2['push'](_0x2d1db2['shift']());}catch(_0x407b8){_0x2d1db2['push'](_0x2d1db2['shift']());}}}(a127_0x75bf,0x78f0f));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';function a127_0x75bf(){const _0x444cc6=['Pass\x20--force\x20to\x20overwrite\x20it.','flowName','str','force','6219emAcTP','path','config','read','345026clraXt','boolean','Wrote\x20FlowConfig\x20for\x20','Overwrite\x20an\x20existing\x20output\x20file','894845ajeRHu','detail','4vDiCSw','code','flow','Get\x20one\x20design-time\x20flow\x20definition','931818QIosio','25504drOQcC','output','validation','5814516mOkWaI','307464xUXUGZ','bool','string','Write\x20a\x20portable\x20normalized\x20FlowConfig\x20JSON\x20file','FlowConfig\x20output\x20already\x20exists:\x20','756364tghuKu','flowCode','warnings'];a127_0x75bf=function(){return _0x444cc6;};return a127_0x75bf();}import{FLOW_ID_FLAG,flowDefinitionToConfig,readFlowId}from'../../commands/flow/shared.js';export const flowDetail={'service':a127_0x112757(0x200),'command':a127_0x112757(0x1fd),'description':a127_0x112757(0x201),'risk':a127_0x112757(0x1f7),'flags':[FLOW_ID_FLAG,{'name':'output','type':a127_0x112757(0x209),'description':a127_0x112757(0x20a)},{'name':'force','type':a127_0x112757(0x1f9),'description':a127_0x112757(0x1fb)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x172717){readFlowId(_0x172717);},async 'execute'(_0x591687){const _0x12a51c=a127_0x112757,_0x189b06=readFlowId(_0x591687),_0x289832=_0x591687[_0x12a51c(0x1f2)](_0x12a51c(0x204))['trim'](),_0x3e4b0b=_0x289832?resolve(_0x289832):undefined;if(_0x3e4b0b&&!_0x591687[_0x12a51c(0x208)](_0x12a51c(0x1f3))&&await fileExists(_0x3e4b0b))throw CliErrors[_0x12a51c(0x205)](_0x12a51c(0x20b)+_0x3e4b0b,_0x12a51c(0x20f));const _0x4e595c=await getFlowDefinition(_0x591687['appCode'],_0x189b06);let _0xd15bdd;if(_0x3e4b0b){const _0x23e48e=flowDefinitionToConfig(_0x4e595c);await mkdir(dirname(_0x3e4b0b),{'recursive':!![]});try{await writeNormalizedFlowConfig(_0x3e4b0b,_0x23e48e[_0x12a51c(0x1f6)],{'overwrite':_0x591687[_0x12a51c(0x208)](_0x12a51c(0x1f3))});}catch(_0x2996e2){if(isAlreadyExistsError(_0x2996e2))throw CliErrors[_0x12a51c(0x205)](_0x12a51c(0x20b)+_0x3e4b0b,_0x12a51c(0x20f));throw _0x2996e2;}_0xd15bdd={'path':_0x3e4b0b,'warnings':_0x23e48e[_0x12a51c(0x20e)]};}return{'ok':!![],'data':{'flow':_0x4e595c,..._0xd15bdd?{'output':_0xd15bdd}:{}},'message':_0xd15bdd?_0x12a51c(0x1fa)+(_0x4e595c[_0x12a51c(0x1f1)]||_0x4e595c[_0x12a51c(0x20d)]||_0x189b06)+'\x20to\x20'+_0xd15bdd[_0x12a51c(0x1f5)]:'Flow\x20'+(_0x4e595c[_0x12a51c(0x1f1)]||_0x4e595c[_0x12a51c(0x20d)]||_0x189b06)};}};async function fileExists(_0x58cab6){try{return await stat(_0x58cab6),!![];}catch(_0x4f2bed){return!isNotFoundError(_0x4f2bed);}}function isNotFoundError(_0x41e85d){const _0x394ee7=a127_0x112757;return _0x41e85d?.[_0x394ee7(0x1ff)]==='ENOENT';}function a127_0x333f(_0x32f4ed,_0x107ffc){_0x32f4ed=_0x32f4ed-0x1f1;const _0x75bfd9=a127_0x75bf();let _0x333f3d=_0x75bfd9[_0x32f4ed];return _0x333f3d;}function isAlreadyExistsError(_0x509efc){const _0x566ffc=a127_0x112757;return _0x509efc?.[_0x566ffc(0x1ff)]==='EEXIST';}
1
+ const a127_0x28c747=a127_0x212c;(function(_0x3f1fe4,_0x5a4236){const _0x4ddd60=a127_0x212c,_0x4109b6=_0x3f1fe4();while(!![]){try{const _0x27a94e=-parseInt(_0x4ddd60(0x1ab))/0x1+-parseInt(_0x4ddd60(0x19b))/0x2+parseInt(_0x4ddd60(0x1a9))/0x3+-parseInt(_0x4ddd60(0x1a1))/0x4*(parseInt(_0x4ddd60(0x1a3))/0x5)+-parseInt(_0x4ddd60(0x1ad))/0x6+-parseInt(_0x4ddd60(0x192))/0x7*(-parseInt(_0x4ddd60(0x1a4))/0x8)+-parseInt(_0x4ddd60(0x19a))/0x9*(-parseInt(_0x4ddd60(0x197))/0xa);if(_0x27a94e===_0x5a4236)break;else _0x4109b6['push'](_0x4109b6['shift']());}catch(_0x204900){_0x4109b6['push'](_0x4109b6['shift']());}}}(a127_0x1077,0x28fd2));function a127_0x1077(){const _0xf280e0=['Wrote\x20FlowConfig\x20for\x20','50xPhTEi','407080VksnLg','ENOENT','Write\x20a\x20portable\x20normalized\x20FlowConfig\x20JSON\x20file','Flow\x20','path','240177KReFow','boolean','232155KSHQRr','code','1089780wUdJoo','str','Overwrite\x20an\x20existing\x20output\x20file','validation','output','flow','28fLevPM','EEXIST','bool','\x20to\x20','detail','10OAZxsv','appCode','force','4388382xyLrow','288184CbdgRH','flowName','config','FlowConfig\x20output\x20already\x20exists:\x20','flowCode','read','18172KyEDCy'];a127_0x1077=function(){return _0xf280e0;};return a127_0x1077();}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_0x28c747(0x191),'command':a127_0x28c747(0x196),'description':'Get\x20one\x20design-time\x20flow\x20definition','risk':a127_0x28c747(0x1a0),'flags':[FLOW_ID_FLAG,{'name':a127_0x28c747(0x190),'type':'string','description':a127_0x28c747(0x1a6)},{'name':a127_0x28c747(0x199),'type':a127_0x28c747(0x1aa),'description':a127_0x28c747(0x1af)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x5c175c){readFlowId(_0x5c175c);},async 'execute'(_0x509d93){const _0x1b3839=a127_0x28c747,_0x1f58ce=readFlowId(_0x509d93),_0x3da79c=_0x509d93[_0x1b3839(0x1ae)](_0x1b3839(0x190))['trim'](),_0x4beb84=_0x3da79c?resolve(_0x3da79c):undefined;if(_0x4beb84&&!_0x509d93[_0x1b3839(0x194)](_0x1b3839(0x199))&&await fileExists(_0x4beb84))throw CliErrors[_0x1b3839(0x1b0)](_0x1b3839(0x19e)+_0x4beb84,'Pass\x20--force\x20to\x20overwrite\x20it.');const _0xb2f4fb=await getFlowDefinition(_0x509d93[_0x1b3839(0x198)],_0x1f58ce);let _0x1fddec;if(_0x4beb84){const _0x5ebc1e=flowDefinitionToConfig(_0xb2f4fb);await mkdir(dirname(_0x4beb84),{'recursive':!![]});try{await writeNormalizedFlowConfig(_0x4beb84,_0x5ebc1e[_0x1b3839(0x19d)],{'overwrite':_0x509d93[_0x1b3839(0x194)](_0x1b3839(0x199))});}catch(_0x161c74){if(isAlreadyExistsError(_0x161c74))throw CliErrors[_0x1b3839(0x1b0)](_0x1b3839(0x19e)+_0x4beb84,'Pass\x20--force\x20to\x20overwrite\x20it.');throw _0x161c74;}_0x1fddec={'path':_0x4beb84,'warnings':_0x5ebc1e['warnings']};}return{'ok':!![],'data':{'flow':_0xb2f4fb,..._0x1fddec?{'output':_0x1fddec}:{}},'message':_0x1fddec?_0x1b3839(0x1a2)+(_0xb2f4fb[_0x1b3839(0x19c)]||_0xb2f4fb[_0x1b3839(0x19f)]||_0x1f58ce)+_0x1b3839(0x195)+_0x1fddec[_0x1b3839(0x1a8)]:_0x1b3839(0x1a7)+(_0xb2f4fb[_0x1b3839(0x19c)]||_0xb2f4fb['flowCode']||_0x1f58ce)};}};function a127_0x212c(_0x5d0af6,_0x1944e6){_0x5d0af6=_0x5d0af6-0x190;const _0x107744=a127_0x1077();let _0x212ce2=_0x107744[_0x5d0af6];return _0x212ce2;}async function fileExists(_0x1397b9){try{return await stat(_0x1397b9),!![];}catch(_0x1fa349){return!isNotFoundError(_0x1fa349);}}function isNotFoundError(_0x43ef84){const _0x429417=a127_0x28c747;return _0x43ef84?.[_0x429417(0x1ac)]===_0x429417(0x1a5);}function isAlreadyExistsError(_0x31cf20){const _0x215ea1=a127_0x28c747;return _0x31cf20?.[_0x215ea1(0x1ac)]===_0x215ea1(0x193);}
@@ -1 +1 @@
1
- function a128_0x1a05(){const _0x561c8e=['2268470YqQOxm','5TDIEgt','6NpjPtV','288964gHIuSb','2318046aMXMbO','143374lTFRrz','408568TfjZVk','809772IqjaoL','2AApUNa','17899607icPdMs','108AzGYOO'];a128_0x1a05=function(){return _0x561c8e;};return a128_0x1a05();}(function(_0x160445,_0x18e662){const _0x10a53b=a128_0x4a1d,_0xd58d59=_0x160445();while(!![]){try{const _0x313369=parseInt(_0x10a53b(0xad))/0x1*(parseInt(_0x10a53b(0xb2))/0x2)+-parseInt(_0x10a53b(0xac))/0x3*(-parseInt(_0x10a53b(0xb1))/0x4)+-parseInt(_0x10a53b(0xb6))/0x5*(-parseInt(_0x10a53b(0xae))/0x6)+parseInt(_0x10a53b(0xaf))/0x7+-parseInt(_0x10a53b(0xb0))/0x8*(-parseInt(_0x10a53b(0xb4))/0x9)+parseInt(_0x10a53b(0xb5))/0xa+-parseInt(_0x10a53b(0xb3))/0xb;if(_0x313369===_0x18e662)break;else _0xd58d59['push'](_0xd58d59['shift']());}catch(_0x3e2456){_0xd58d59['push'](_0xd58d59['shift']());}}}(a128_0x1a05,0x4c72f));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';function a128_0x4a1d(_0x581afc,_0x26ab35){_0x581afc=_0x581afc-0xac;const _0x1a050a=a128_0x1a05();let _0x4a1d81=_0x1a050a[_0x581afc];return _0x4a1d81;}import{flowCreate}from'../../commands/flow/create.js';import{flowUpdate}from'../../commands/flow/update.js';import{flowPublish}from'../../commands/flow/publish.js';import{flowRuntimeRoleList}from'../../commands/flow/runtime-role-list.js';import{flowRuntimeUserSearch}from'../../commands/flow/runtime-user-search.js';import{flowRuntimeRoleUserList}from'../../commands/flow/runtime-role-user-list.js';export const flowDefinitions=[flowValidate,flowList,flowPageList,flowDetail,flowCreate,flowUpdate,flowPublish,flowRuntimeRoleList,flowRuntimeUserSearch,flowRuntimeRoleUserList];
1
+ (function(_0x4e2100,_0x5b15a7){const _0x22ac9d=a128_0x1cb4,_0x498c97=_0x4e2100();while(!![]){try{const _0x1ed9fc=parseInt(_0x22ac9d(0x75))/0x1*(parseInt(_0x22ac9d(0x72))/0x2)+parseInt(_0x22ac9d(0x74))/0x3+parseInt(_0x22ac9d(0x7a))/0x4*(-parseInt(_0x22ac9d(0x73))/0x5)+parseInt(_0x22ac9d(0x7d))/0x6*(-parseInt(_0x22ac9d(0x78))/0x7)+-parseInt(_0x22ac9d(0x76))/0x8*(-parseInt(_0x22ac9d(0x79))/0x9)+parseInt(_0x22ac9d(0x7c))/0xa*(parseInt(_0x22ac9d(0x7b))/0xb)+parseInt(_0x22ac9d(0x77))/0xc*(-parseInt(_0x22ac9d(0x7e))/0xd);if(_0x1ed9fc===_0x5b15a7)break;else _0x498c97['push'](_0x498c97['shift']());}catch(_0x3903ff){_0x498c97['push'](_0x498c97['shift']());}}}(a128_0x2fde,0xe4372));import{flowValidate}from'../../commands/flow/validate.js';function a128_0x2fde(){const _0x1d28ea=['2106272WGAAtI','2354052NfOMgW','5327cqGZHx','36PIBewr','4uhhKtf','19796106CntkYY','10MteFBs','6234jIcJGE','234FwlaNN','24LlcloA','4154650CaIvBN','4645629QdPCKt','140511PdIdJj'];a128_0x2fde=function(){return _0x1d28ea;};return a128_0x2fde();}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';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_0x1cb4(_0x411161,_0x2c12c0){_0x411161=_0x411161-0x72;const _0x2fde67=a128_0x2fde();let _0x1cb497=_0x2fde67[_0x411161];return _0x1cb497;}export const flowDefinitions=[flowValidate,flowList,flowPageList,flowDetail,flowCreate,flowUpdate,flowPublish,flowRuntimeRoleList,flowRuntimeUserSearch,flowRuntimeRoleUserList];
@@ -1 +1 @@
1
- const a129_0x485425=a129_0x45e6;(function(_0xbaa515,_0x31da83){const _0xa81418=a129_0x45e6,_0x325db4=_0xbaa515();while(!![]){try{const _0x3cb059=-parseInt(_0xa81418(0x87))/0x1*(-parseInt(_0xa81418(0x94))/0x2)+parseInt(_0xa81418(0x98))/0x3*(parseInt(_0xa81418(0xa1))/0x4)+-parseInt(_0xa81418(0x9a))/0x5*(-parseInt(_0xa81418(0x8f))/0x6)+-parseInt(_0xa81418(0x8a))/0x7*(parseInt(_0xa81418(0x92))/0x8)+-parseInt(_0xa81418(0x90))/0x9+-parseInt(_0xa81418(0x8b))/0xa+parseInt(_0xa81418(0x82))/0xb;if(_0x3cb059===_0x31da83)break;else _0x325db4['push'](_0x325db4['shift']());}catch(_0x601126){_0x325db4['push'](_0x325db4['shift']());}}}(a129_0x4ab6,0xbd9f6));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{listFlowDefinitions}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a129_0x4ab6(){const _0x223302=['published','--page\x20must\x20be\x20a\x20positive\x20integer.','8KLobmw','draft','page-size','flow-code','flow-type','isSafeInteger','Filter\x20by\x20flow\x20status','7352994xAjHwU','Filter\x20by\x20flow\x20type','appCode','flow','length','757TYQtiN','flow-name','validation','107023cNCoDF','12423440ocAZcm','list','Page\x20number\x20(1-based)','read','85524uXcjCU','10363932ycOkNs','flow-status','200pEHFBV','num','2722vKVdHU','string','dataset-code','--page-size\x20must\x20be\x20a\x20positive\x20integer.','621639OPoMqo','Filter\x20by\x20exact\x20server-generated\x20flow\x20code','505kICWhP','Found\x20','str','number','page'];a129_0x4ab6=function(){return _0x223302;};return a129_0x4ab6();}function a129_0x45e6(_0x496d23,_0x4f9f79){_0x496d23=_0x496d23-0x82;const _0x4ab6a0=a129_0x4ab6();let _0x45e68c=_0x4ab6a0[_0x496d23];return _0x45e68c;}const FLOW_STATUSES=[a129_0x485425(0xa2),a129_0x485425(0x9f)];export const flowList={'service':a129_0x485425(0x85),'command':a129_0x485425(0x8c),'description':'List\x20design-time\x20flow\x20definitions\x20for\x20the\x20current\x20app','risk':a129_0x485425(0x8e),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a129_0x485425(0xa4),'type':'string','description':a129_0x485425(0x99)},{'name':a129_0x485425(0x88),'type':a129_0x485425(0x95),'description':'Filter\x20by\x20flow\x20name'},{'name':a129_0x485425(0x91),'type':a129_0x485425(0x95),'description':a129_0x485425(0xa7),'enum':FLOW_STATUSES},{'name':a129_0x485425(0x96),'type':a129_0x485425(0x95),'description':'Filter\x20by\x20dataset\x20code'},{'name':'flow-type','type':a129_0x485425(0x95),'description':a129_0x485425(0x83)},{'name':'page','type':a129_0x485425(0x9d),'description':a129_0x485425(0x8d),'default':0x1},{'name':a129_0x485425(0xa3),'type':a129_0x485425(0x9d),'description':'Page\x20size','default':0x14}],async 'validate'(_0x54b23f){const _0xc1cb5e=a129_0x485425,_0xfae235=_0x54b23f[_0xc1cb5e(0x93)](_0xc1cb5e(0x9e),0x1),_0x1cdf90=_0x54b23f[_0xc1cb5e(0x93)](_0xc1cb5e(0xa3),0x14);if(!Number[_0xc1cb5e(0xa6)](_0xfae235)||_0xfae235<0x1)throw CliErrors[_0xc1cb5e(0x89)](_0xc1cb5e(0xa0));if(!Number[_0xc1cb5e(0xa6)](_0x1cdf90)||_0x1cdf90<0x1)throw CliErrors[_0xc1cb5e(0x89)](_0xc1cb5e(0x97));},async 'execute'(_0x4c09b4){const _0x1efb52=a129_0x485425,{items:_0x7a8956,paging:_0x4fa02d}=await listFlowDefinitions(_0x4c09b4[_0x1efb52(0x84)],{'flowCode':optionalString(_0x4c09b4[_0x1efb52(0x9c)]('flow-code')),'flowName':optionalString(_0x4c09b4[_0x1efb52(0x9c)](_0x1efb52(0x88))),'flowStatus':optionalString(_0x4c09b4[_0x1efb52(0x9c)]('flow-status')),'datasetCode':optionalString(_0x4c09b4['str'](_0x1efb52(0x96))),'flowType':optionalString(_0x4c09b4[_0x1efb52(0x9c)](_0x1efb52(0xa5))),'pageNum':_0x4c09b4[_0x1efb52(0x93)](_0x1efb52(0x9e),0x1),'pageSize':_0x4c09b4[_0x1efb52(0x93)](_0x1efb52(0xa3),0x14)});return{'ok':!![],'data':{'appCode':_0x4c09b4['appCode'],'flows':_0x7a8956,'paging':_0x4fa02d},'message':_0x1efb52(0x9b)+_0x7a8956[_0x1efb52(0x86)]+'\x20flow\x20definition(s)'};}};function optionalString(_0x2815f5){const _0x55f3a9=_0x2815f5['trim']();return _0x55f3a9||undefined;}
1
+ const a129_0x42e4a1=a129_0x1985;function a129_0x1c0c(){const _0x4a5eea=['4079298HNEMdc','2574114ZcMzcj','Filter\x20by\x20flow\x20name','Found\x20','appCode','string','length','Filter\x20by\x20flow\x20type','flow-type','number','\x20flow\x20definition(s)','1151736dTBAZk','56yYqxTj','flow-status','2256260mIqeJW','--page\x20must\x20be\x20a\x20positive\x20integer.','9474390qxBtot','flow-name','list','page','published','draft','page-size','49nybODC','428515dwFNxX','num','--page-size\x20must\x20be\x20a\x20positive\x20integer.','validation','1176306svKNeR','flow-code','dataset-code','str','Page\x20size','Filter\x20by\x20exact\x20server-generated\x20flow\x20code','List\x20design-time\x20flow\x20definitions\x20for\x20the\x20current\x20app'];a129_0x1c0c=function(){return _0x4a5eea;};return a129_0x1c0c();}(function(_0x43f1ab,_0x3ca390){const _0x58d8dc=a129_0x1985,_0x1826a7=_0x43f1ab();while(!![]){try{const _0x29d828=-parseInt(_0x58d8dc(0x18b))/0x1+parseInt(_0x58d8dc(0x1a0))/0x2+-parseInt(_0x58d8dc(0x193))/0x3+parseInt(_0x58d8dc(0x19e))/0x4*(-parseInt(_0x58d8dc(0x187))/0x5)+parseInt(_0x58d8dc(0x192))/0x6+-parseInt(_0x58d8dc(0x186))/0x7*(-parseInt(_0x58d8dc(0x19d))/0x8)+parseInt(_0x58d8dc(0x1a2))/0x9;if(_0x29d828===_0x3ca390)break;else _0x1826a7['push'](_0x1826a7['shift']());}catch(_0x492383){_0x1826a7['push'](_0x1826a7['shift']());}}}(a129_0x1c0c,0x9adc2));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{listFlowDefinitions}from'../../core/api-client.js';function a129_0x1985(_0x27adeb,_0x100c0f){_0x27adeb=_0x27adeb-0x185;const _0x1c0c4c=a129_0x1c0c();let _0x1985ee=_0x1c0c4c[_0x27adeb];return _0x1985ee;}import{CliErrors}from'../../errors.js';const FLOW_STATUSES=[a129_0x42e4a1(0x1a7),a129_0x42e4a1(0x1a6)];export const flowList={'service':'flow','command':a129_0x42e4a1(0x1a4),'description':a129_0x42e4a1(0x191),'risk':'read','flags':[APPCODE_FLAG_OPTIONAL,{'name':a129_0x42e4a1(0x18c),'type':a129_0x42e4a1(0x197),'description':a129_0x42e4a1(0x190)},{'name':a129_0x42e4a1(0x1a3),'type':a129_0x42e4a1(0x197),'description':a129_0x42e4a1(0x194)},{'name':a129_0x42e4a1(0x19f),'type':a129_0x42e4a1(0x197),'description':'Filter\x20by\x20flow\x20status','enum':FLOW_STATUSES},{'name':a129_0x42e4a1(0x18d),'type':a129_0x42e4a1(0x197),'description':'Filter\x20by\x20dataset\x20code'},{'name':'flow-type','type':a129_0x42e4a1(0x197),'description':a129_0x42e4a1(0x199)},{'name':'page','type':a129_0x42e4a1(0x19b),'description':'Page\x20number\x20(1-based)','default':0x1},{'name':a129_0x42e4a1(0x185),'type':a129_0x42e4a1(0x19b),'description':a129_0x42e4a1(0x18f),'default':0x14}],async 'validate'(_0x18ee3d){const _0x59b899=a129_0x42e4a1,_0x50e4cc=_0x18ee3d['num']('page',0x1),_0x5af38a=_0x18ee3d[_0x59b899(0x188)](_0x59b899(0x185),0x14);if(!Number['isSafeInteger'](_0x50e4cc)||_0x50e4cc<0x1)throw CliErrors['validation'](_0x59b899(0x1a1));if(!Number['isSafeInteger'](_0x5af38a)||_0x5af38a<0x1)throw CliErrors[_0x59b899(0x18a)](_0x59b899(0x189));},async 'execute'(_0x2f3976){const _0x4712d6=a129_0x42e4a1,{items:_0x4291b9,paging:_0x53b1ca}=await listFlowDefinitions(_0x2f3976[_0x4712d6(0x196)],{'flowCode':optionalString(_0x2f3976[_0x4712d6(0x18e)](_0x4712d6(0x18c))),'flowName':optionalString(_0x2f3976[_0x4712d6(0x18e)](_0x4712d6(0x1a3))),'flowStatus':optionalString(_0x2f3976[_0x4712d6(0x18e)](_0x4712d6(0x19f))),'datasetCode':optionalString(_0x2f3976[_0x4712d6(0x18e)](_0x4712d6(0x18d))),'flowType':optionalString(_0x2f3976[_0x4712d6(0x18e)](_0x4712d6(0x19a))),'pageNum':_0x2f3976[_0x4712d6(0x188)](_0x4712d6(0x1a5),0x1),'pageSize':_0x2f3976[_0x4712d6(0x188)](_0x4712d6(0x185),0x14)});return{'ok':!![],'data':{'appCode':_0x2f3976[_0x4712d6(0x196)],'flows':_0x4291b9,'paging':_0x53b1ca},'message':_0x4712d6(0x195)+_0x4291b9[_0x4712d6(0x198)]+_0x4712d6(0x19c)};}};function optionalString(_0x4f6566){const _0x515dd4=_0x4f6566['trim']();return _0x515dd4||undefined;}
@@ -1 +1 @@
1
- function a130_0x5fe0(){const _0x194ce8=['List\x20CREATE\x20pages\x20for\x20form-flow\x20binding;\x20--id\x20excludes\x20other\x20flows\x27\x20bindings','page-list','330984AgjXup','Filter\x20by\x20page\x20name','isSafeInteger','19599150ivSsJu','310wcAUqF','name','1637720wimZCv','page-size','Found\x20','69fKprFV','1284750nwAylb','9604217lVpLaZ','flow','page','156656VaHWCY','\x20must\x20be\x20a\x20positive\x20integer.','8wINKKI','str','119160cgsvwn','number','\x20form\x20page(s)','flag','appCode','length','string','validation','num'];a130_0x5fe0=function(){return _0x194ce8;};return a130_0x5fe0();}const a130_0x52cae2=a130_0x524f;(function(_0x52f18e,_0x1e297b){const _0x148af7=a130_0x524f,_0x59fa1d=_0x52f18e();while(!![]){try{const _0xcf41c9=parseInt(_0x148af7(0x1af))/0x1+-parseInt(_0x148af7(0x1ab))/0x2+-parseInt(_0x148af7(0x1ae))/0x3*(-parseInt(_0x148af7(0x1b3))/0x4)+-parseInt(_0x148af7(0x1a9))/0x5*(parseInt(_0x148af7(0x1b7))/0x6)+-parseInt(_0x148af7(0x1b0))/0x7*(parseInt(_0x148af7(0x1b5))/0x8)+-parseInt(_0x148af7(0x1c2))/0x9+parseInt(_0x148af7(0x1c5))/0xa;if(_0xcf41c9===_0x1e297b)break;else _0x59fa1d['push'](_0x59fa1d['shift']());}catch(_0x18b942){_0x59fa1d['push'](_0x59fa1d['shift']());}}}(a130_0x5fe0,0xa7972));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{listFlowBindingPages}from'../../core/api-client.js';function a130_0x524f(_0x4082ff,_0x32a8f7){_0x4082ff=_0x4082ff-0x1a9;const _0x5fe030=a130_0x5fe0();let _0x524fe9=_0x5fe030[_0x4082ff];return _0x524fe9;}import{CliErrors}from'../../errors.js';export const flowPageList={'service':a130_0x52cae2(0x1b1),'command':a130_0x52cae2(0x1c1),'description':a130_0x52cae2(0x1c0),'risk':'read','flags':[APPCODE_FLAG_OPTIONAL,{'name':'id','type':'number','description':'Existing\x20FORM_FLOW\x20definition\x20id\x20(not\x20flow\x20code)'},{'name':a130_0x52cae2(0x1aa),'type':a130_0x52cae2(0x1bd),'description':a130_0x52cae2(0x1c3)},{'name':a130_0x52cae2(0x1b2),'type':'number','default':0x1,'description':'Page\x20number\x20(1-based)'},{'name':a130_0x52cae2(0x1ac),'type':a130_0x52cae2(0x1b8),'default':0x14,'description':'Page\x20size'}],async 'validate'(_0x32e882){const _0x2ee62a=a130_0x52cae2;for(const [_0x430f96,_0x326c10]of[['page',_0x32e882[_0x2ee62a(0x1bf)](_0x2ee62a(0x1b2),0x1)],[_0x2ee62a(0x1ac),_0x32e882['num'](_0x2ee62a(0x1ac),0x14)],..._0x32e882[_0x2ee62a(0x1ba)]('id')!==undefined?[['id',_0x32e882[_0x2ee62a(0x1bf)]('id')]]:[]]){if(!Number[_0x2ee62a(0x1c4)](_0x326c10)||_0x326c10<=0x0)throw CliErrors[_0x2ee62a(0x1be)]('--'+_0x430f96+_0x2ee62a(0x1b4));}},async 'execute'(_0x23681e){const _0x46734e=a130_0x52cae2,_0x21cdae=_0x23681e[_0x46734e(0x1ba)]('id')===undefined?undefined:_0x23681e['num']('id'),{items:_0x2dbcf5,paging:_0xb86ddf}=await listFlowBindingPages(_0x23681e[_0x46734e(0x1bb)],{'currentFlowId':_0x21cdae,'name':_0x23681e[_0x46734e(0x1b6)]('name')['trim']()||undefined,'currentPage':_0x23681e[_0x46734e(0x1bf)](_0x46734e(0x1b2),0x1),'pageSize':_0x23681e[_0x46734e(0x1bf)](_0x46734e(0x1ac),0x14)});return{'ok':!![],'data':{'appCode':_0x23681e[_0x46734e(0x1bb)],'currentFlowId':_0x21cdae,'pages':_0x2dbcf5,'paging':_0xb86ddf,'availabilityChecked':_0x21cdae!==undefined},'message':_0x46734e(0x1ad)+_0x2dbcf5[_0x46734e(0x1bc)]+_0x46734e(0x1b9)};}};
1
+ const a130_0x2b75ca=a130_0x3a7f;(function(_0x2278f4,_0x1e3b76){const _0x5103ed=a130_0x3a7f,_0x562ac2=_0x2278f4();while(!![]){try{const _0x23856f=parseInt(_0x5103ed(0xd0))/0x1+-parseInt(_0x5103ed(0xc6))/0x2+-parseInt(_0x5103ed(0xcc))/0x3+-parseInt(_0x5103ed(0xc2))/0x4+-parseInt(_0x5103ed(0xcb))/0x5+-parseInt(_0x5103ed(0xca))/0x6*(-parseInt(_0x5103ed(0xba))/0x7)+parseInt(_0x5103ed(0xd2))/0x8;if(_0x23856f===_0x1e3b76)break;else _0x562ac2['push'](_0x562ac2['shift']());}catch(_0x5519e1){_0x562ac2['push'](_0x562ac2['shift']());}}}(a130_0x1be5,0x9591a));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a130_0x1be5(){const _0x1eed1c=['Page\x20size','542712gdiGKA','page-size','read','flow','18LwgrVL','5381580eqhxuk','1226559wbQPdX','num','number','length','164706mTaqnS','string','17795928HFHLDI','526939qiGOny','flag','page-list','trim','\x20must\x20be\x20a\x20positive\x20integer.','Filter\x20by\x20page\x20name','page','appCode','983476tfZVPt','Page\x20number\x20(1-based)','name'];a130_0x1be5=function(){return _0x1eed1c;};return a130_0x1be5();}import{listFlowBindingPages}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a130_0x3a7f(_0xa9350f,_0x545f2f){_0xa9350f=_0xa9350f-0xba;const _0x1be5c7=a130_0x1be5();let _0x3a7f98=_0x1be5c7[_0xa9350f];return _0x3a7f98;}export const flowPageList={'service':a130_0x2b75ca(0xc9),'command':a130_0x2b75ca(0xbc),'description':'List\x20CREATE\x20pages\x20for\x20form-flow\x20binding;\x20--id\x20excludes\x20other\x20flows\x27\x20bindings','risk':a130_0x2b75ca(0xc8),'flags':[APPCODE_FLAG_OPTIONAL,{'name':'id','type':a130_0x2b75ca(0xce),'description':'Existing\x20FORM_FLOW\x20definition\x20id\x20(not\x20flow\x20code)'},{'name':a130_0x2b75ca(0xc4),'type':a130_0x2b75ca(0xd1),'description':a130_0x2b75ca(0xbf)},{'name':a130_0x2b75ca(0xc0),'type':a130_0x2b75ca(0xce),'default':0x1,'description':a130_0x2b75ca(0xc3)},{'name':a130_0x2b75ca(0xc7),'type':a130_0x2b75ca(0xce),'default':0x14,'description':a130_0x2b75ca(0xc5)}],async 'validate'(_0x5b466f){const _0x1bc9fd=a130_0x2b75ca;for(const [_0x405b85,_0x4fc06f]of[[_0x1bc9fd(0xc0),_0x5b466f[_0x1bc9fd(0xcd)](_0x1bc9fd(0xc0),0x1)],[_0x1bc9fd(0xc7),_0x5b466f[_0x1bc9fd(0xcd)](_0x1bc9fd(0xc7),0x14)],..._0x5b466f['flag']('id')!==undefined?[['id',_0x5b466f[_0x1bc9fd(0xcd)]('id')]]:[]]){if(!Number['isSafeInteger'](_0x4fc06f)||_0x4fc06f<=0x0)throw CliErrors['validation']('--'+_0x405b85+_0x1bc9fd(0xbe));}},async 'execute'(_0x3c54f1){const _0xb77c84=a130_0x2b75ca,_0x2716c1=_0x3c54f1[_0xb77c84(0xbb)]('id')===undefined?undefined:_0x3c54f1['num']('id'),{items:_0x3ae5b5,paging:_0x31989e}=await listFlowBindingPages(_0x3c54f1[_0xb77c84(0xc1)],{'currentFlowId':_0x2716c1,'name':_0x3c54f1['str'](_0xb77c84(0xc4))[_0xb77c84(0xbd)]()||undefined,'currentPage':_0x3c54f1[_0xb77c84(0xcd)]('page',0x1),'pageSize':_0x3c54f1[_0xb77c84(0xcd)](_0xb77c84(0xc7),0x14)});return{'ok':!![],'data':{'appCode':_0x3c54f1['appCode'],'currentFlowId':_0x2716c1,'pages':_0x3ae5b5,'paging':_0x31989e,'availabilityChecked':_0x2716c1!==undefined},'message':'Found\x20'+_0x3ae5b5[_0xb77c84(0xcf)]+'\x20form\x20page(s)'};}};