@lovrabet/rabetbase-cli 2.5.6 → 2.5.7

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 (395) 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.d.ts +2 -0
  132. package/lib/commands/flow/page-list.js +1 -0
  133. package/lib/commands/flow/publish.js +1 -1
  134. package/lib/commands/flow/runtime-resources-shared.d.ts +1 -1
  135. package/lib/commands/flow/runtime-resources-shared.js +1 -1
  136. package/lib/commands/flow/runtime-role-list.js +1 -1
  137. package/lib/commands/flow/runtime-role-user-list.js +1 -1
  138. package/lib/commands/flow/runtime-user-search.js +1 -1
  139. package/lib/commands/flow/shared.d.ts +6 -2
  140. package/lib/commands/flow/shared.js +1 -1
  141. package/lib/commands/flow/update.js +1 -1
  142. package/lib/commands/flow/validate.js +1 -1
  143. package/lib/commands/instant-api-policy/current.js +1 -1
  144. package/lib/commands/instant-api-policy/index.js +1 -1
  145. package/lib/commands/instant-api-policy/init.js +1 -1
  146. package/lib/commands/instant-api-policy/publish.js +1 -1
  147. package/lib/commands/instant-api-policy/pull.js +1 -1
  148. package/lib/commands/instant-api-policy/revision.js +1 -1
  149. package/lib/commands/instant-api-policy/revisions.js +1 -1
  150. package/lib/commands/instant-api-policy/rollback.js +1 -1
  151. package/lib/commands/instant-api-policy/shared.js +1 -1
  152. package/lib/commands/instant-api-policy/validate.js +1 -1
  153. package/lib/commands/issue/index.js +1 -1
  154. package/lib/commands/issue/nudge.js +1 -1
  155. package/lib/commands/issue/report.js +1 -1
  156. package/lib/commands/issue/shared.js +1 -1
  157. package/lib/commands/kb/create.js +1 -1
  158. package/lib/commands/kb/delete.js +1 -1
  159. package/lib/commands/kb/detail.js +1 -1
  160. package/lib/commands/kb/index.js +1 -1
  161. package/lib/commands/kb/list.js +1 -1
  162. package/lib/commands/kb/search.js +1 -1
  163. package/lib/commands/kb/shared.js +1 -1
  164. package/lib/commands/kb/update.js +1 -1
  165. package/lib/commands/logs/index.js +1 -1
  166. package/lib/commands/menu/asset-update.js +1 -1
  167. package/lib/commands/menu/delete.js +1 -1
  168. package/lib/commands/menu/external-link-create.js +1 -1
  169. package/lib/commands/menu/external-link-update.js +1 -1
  170. package/lib/commands/menu/group-create.js +1 -1
  171. package/lib/commands/menu/group-update.js +1 -1
  172. package/lib/commands/menu/index.js +1 -1
  173. package/lib/commands/menu/list.js +1 -1
  174. package/lib/commands/menu/move.js +1 -1
  175. package/lib/commands/menu/regroup-start.js +1 -1
  176. package/lib/commands/menu/rename.js +1 -1
  177. package/lib/commands/menu/shared/compare-table.js +1 -1
  178. package/lib/commands/menu/shared/delete-plan.js +1 -1
  179. package/lib/commands/menu/shared/facts.js +1 -1
  180. package/lib/commands/menu/shared/index.js +1 -1
  181. package/lib/commands/menu/shared/inquirer.js +1 -1
  182. package/lib/commands/menu/shared/local-pages.js +1 -1
  183. package/lib/commands/menu/shared/logic.js +1 -1
  184. package/lib/commands/menu/shared/mutations.js +1 -1
  185. package/lib/commands/menu/shared/path.js +1 -1
  186. package/lib/commands/menu/shared/service.js +1 -1
  187. package/lib/commands/menu/shared/subapp-assets.js +1 -1
  188. package/lib/commands/menu/shared/sync-core.js +1 -1
  189. package/lib/commands/menu/shared/update-core.js +1 -1
  190. package/lib/commands/menu/shared/valid-url.js +1 -1
  191. package/lib/commands/menu/subapp-assets-status.js +1 -1
  192. package/lib/commands/menu/subapp-assets-update.js +1 -1
  193. package/lib/commands/menu/sync.js +1 -1
  194. package/lib/commands/menu/visibility-update.js +1 -1
  195. package/lib/commands/notification/config-create.js +1 -1
  196. package/lib/commands/notification/config-delete.js +1 -1
  197. package/lib/commands/notification/config-list.js +1 -1
  198. package/lib/commands/notification/config-update.js +1 -1
  199. package/lib/commands/notification/index.js +1 -1
  200. package/lib/commands/notification/shared.js +1 -1
  201. package/lib/commands/ocr/index.js +1 -1
  202. package/lib/commands/page/create.js +1 -1
  203. package/lib/commands/page/custom/detail.js +1 -1
  204. package/lib/commands/page/custom/list.js +1 -1
  205. package/lib/commands/page/custom/publish.js +1 -1
  206. package/lib/commands/page/custom/shared.js +1 -1
  207. package/lib/commands/page/custom/syntax.js +1 -1
  208. package/lib/commands/page/custom/update.js +1 -1
  209. package/lib/commands/page/data-list-status.js +1 -1
  210. package/lib/commands/page/generate-start.js +1 -1
  211. package/lib/commands/page/generate-status.js +1 -1
  212. package/lib/commands/page/index.js +1 -1
  213. package/lib/commands/page/pull.js +1 -1
  214. package/lib/commands/page/push.js +1 -1
  215. package/lib/commands/page/relation-audit.js +1 -1
  216. package/lib/commands/page/restore.js +1 -1
  217. package/lib/commands/page/shared.js +1 -1
  218. package/lib/commands/page/sync.js +1 -1
  219. package/lib/commands/project/api-architecture-upgrade.js +1 -1
  220. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  221. package/lib/commands/project/create/format-elapsed.js +1 -1
  222. package/lib/commands/project/create/main.js +1 -1
  223. package/lib/commands/project/create/materialize-project-template.js +1 -1
  224. package/lib/commands/project/create/project-name.js +1 -1
  225. package/lib/commands/project/create/project-template-archive.js +1 -1
  226. package/lib/commands/project/create/project-template-path.js +1 -1
  227. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  228. package/lib/commands/project/create/use-format-code.js +1 -1
  229. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  230. package/lib/commands/project/domain-routing-sync.js +1 -1
  231. package/lib/commands/project/index.js +1 -1
  232. package/lib/commands/project/upgrade.js +1 -1
  233. package/lib/commands/registry.js +1 -1
  234. package/lib/commands/role/delete.js +1 -1
  235. package/lib/commands/role/detail.js +1 -1
  236. package/lib/commands/role/index.js +1 -1
  237. package/lib/commands/role/list.js +1 -1
  238. package/lib/commands/role/shared.js +1 -1
  239. package/lib/commands/role/update.js +1 -1
  240. package/lib/commands/role/user-add.js +1 -1
  241. package/lib/commands/role/user-remove.js +1 -1
  242. package/lib/commands/role/user-resolve.js +1 -1
  243. package/lib/commands/rule/get.js +1 -1
  244. package/lib/commands/rule/index.js +1 -1
  245. package/lib/commands/rule/list.js +1 -1
  246. package/lib/commands/rule/set.js +1 -1
  247. package/lib/commands/rule/shared.js +1 -1
  248. package/lib/commands/run/index.js +1 -1
  249. package/lib/commands/schema.js +1 -1
  250. package/lib/commands/sql/create.js +1 -1
  251. package/lib/commands/sql/delete.js +1 -1
  252. package/lib/commands/sql/detail.js +1 -1
  253. package/lib/commands/sql/exec.js +1 -1
  254. package/lib/commands/sql/index.js +1 -1
  255. package/lib/commands/sql/list.js +1 -1
  256. package/lib/commands/sql/pull.js +1 -1
  257. package/lib/commands/sql/push.js +1 -1
  258. package/lib/commands/sql/shared.js +1 -1
  259. package/lib/commands/sql/status.js +1 -1
  260. package/lib/commands/sql/validate.js +1 -1
  261. package/lib/commands/task/index.js +1 -1
  262. package/lib/commands/task/status.js +1 -1
  263. package/lib/commands/tenant/index.js +1 -1
  264. package/lib/commands/tenant/members-list.js +1 -1
  265. package/lib/commands/tenant/shared.js +1 -1
  266. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  267. package/lib/commands/user-account/feishu-bind.js +1 -1
  268. package/lib/commands/user-account/index.js +1 -1
  269. package/lib/commands/workspace/add.js +1 -1
  270. package/lib/commands/workspace/index.js +1 -1
  271. package/lib/commands/workspace/remove.js +1 -1
  272. package/lib/config/domain-config.js +1 -1
  273. package/lib/config/project-domain-routing.js +1 -1
  274. package/lib/config/region-config.js +1 -1
  275. package/lib/config/schema.js +1 -1
  276. package/lib/constant/cdn.js +1 -1
  277. package/lib/constant/cli.js +1 -1
  278. package/lib/constant/defaults.js +1 -1
  279. package/lib/constant/domain.js +1 -1
  280. package/lib/constant/env.js +1 -1
  281. package/lib/constant/output.js +1 -1
  282. package/lib/constant/paths.js +1 -1
  283. package/lib/constant/region.js +1 -1
  284. package/lib/constant/risk.js +1 -1
  285. package/lib/constant/routing-profile.js +1 -1
  286. package/lib/context/app-resolver.js +1 -1
  287. package/lib/context/auth-resolver.js +1 -1
  288. package/lib/context/config-loader.js +1 -1
  289. package/lib/context.js +1 -1
  290. package/lib/core/alias-resolver.js +1 -1
  291. package/lib/core/api-client.d.ts +26 -6
  292. package/lib/core/api-client.js +1 -1
  293. package/lib/core/bff/config.js +1 -1
  294. package/lib/core/bff/file-system.js +1 -1
  295. package/lib/core/bff/hash.js +1 -1
  296. package/lib/core/bff/hook-directory.js +1 -1
  297. package/lib/core/bff/lock.js +1 -1
  298. package/lib/core/bff/utils.js +1 -1
  299. package/lib/core/cross-db-analysis.js +1 -1
  300. package/lib/core/cross-db-relation.js +1 -1
  301. package/lib/core/db-resolver.js +1 -1
  302. package/lib/core/flow-config.d.ts +12 -0
  303. package/lib/core/flow-config.js +1 -1
  304. package/lib/core/instant-api-policy/config.js +1 -1
  305. package/lib/core/kb-search-client.js +1 -1
  306. package/lib/core/page/file-system.js +1 -1
  307. package/lib/core/page/hash.js +1 -1
  308. package/lib/core/page/lock.js +1 -1
  309. package/lib/core/page/lr-smart-jsx.js +1 -1
  310. package/lib/core/sql-index-auditor.js +1 -1
  311. package/lib/core/sql-sync/config.js +1 -1
  312. package/lib/core/sql-sync/file-system.js +1 -1
  313. package/lib/core/sql-sync/hash.js +1 -1
  314. package/lib/core/sql-sync/lock.js +1 -1
  315. package/lib/core/sql-sync/utils.js +1 -1
  316. package/lib/core/sql-validator.js +1 -1
  317. package/lib/errors.js +1 -1
  318. package/lib/framework/build-all-flags.js +1 -1
  319. package/lib/framework/error-output.js +1 -1
  320. package/lib/framework/explicit-yes.js +1 -1
  321. package/lib/framework/flags.js +1 -1
  322. package/lib/framework/help.js +1 -1
  323. package/lib/framework/index.js +1 -1
  324. package/lib/framework/output.js +1 -1
  325. package/lib/framework/response.js +1 -1
  326. package/lib/framework/runner-alias.js +1 -1
  327. package/lib/framework/runner.js +1 -1
  328. package/lib/framework/schema-export.js +1 -1
  329. package/lib/framework/supported-flags.js +1 -1
  330. package/lib/framework/types.js +1 -1
  331. package/lib/generated/build-info.d.ts +4 -4
  332. package/lib/generated/build-info.js +1 -1
  333. package/lib/generated/official-routing.js +1 -1
  334. package/lib/generated/routing-contract.js +1 -1
  335. package/lib/help.js +1 -1
  336. package/lib/postinstall.js +1 -1
  337. package/lib/runtime/confirmation.js +1 -1
  338. package/lib/runtime/event.js +1 -1
  339. package/lib/runtime/index.js +1 -1
  340. package/lib/runtime/queue.js +1 -1
  341. package/lib/runtime/resolve.js +1 -1
  342. package/lib/services/dataset-design/checkpoint.js +1 -1
  343. package/lib/services/dataset-design/commands.js +1 -1
  344. package/lib/services/dataset-design/contract.js +1 -1
  345. package/lib/skills/builtin-skill.js +1 -1
  346. package/lib/skills/main.js +1 -1
  347. package/lib/skills/npx-skills-add.js +1 -1
  348. package/lib/skills/skill-presence.js +1 -1
  349. package/lib/telemetry/cli-command-trace.js +1 -1
  350. package/lib/telemetry/cli-help-trace.js +1 -1
  351. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  352. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  353. package/lib/telemetry/send-cli-trace-log.js +1 -1
  354. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  355. package/lib/utils/ai_config.js +1 -1
  356. package/lib/utils/apply-jq-filter.js +1 -1
  357. package/lib/utils/cdn-config.js +1 -1
  358. package/lib/utils/check-sdk-version.js +1 -1
  359. package/lib/utils/cli-version-check.js +1 -1
  360. package/lib/utils/cli-version-policy.js +1 -1
  361. package/lib/utils/config.js +1 -1
  362. package/lib/utils/entity-with-id.js +1 -1
  363. package/lib/utils/file-utils.js +1 -1
  364. package/lib/utils/guides-cdn.js +1 -1
  365. package/lib/utils/http-client.js +1 -1
  366. package/lib/utils/is-non-interactive.js +1 -1
  367. package/lib/utils/logger.js +1 -1
  368. package/lib/utils/params.js +1 -1
  369. package/lib/utils/platform.js +1 -1
  370. package/lib/utils/sleep.js +1 -1
  371. package/lib/utils/template-replacer.js +1 -1
  372. package/lib/utils/update-notice.js +1 -1
  373. package/lib/utils/version.js +1 -1
  374. package/lib/utils/with-active-cookie.js +1 -1
  375. package/lib/utils/write-cli-side-channel.js +1 -1
  376. package/package.json +1 -1
  377. package/skills/rabetbase/SKILL.md +8 -4
  378. package/skills/rabetbase/guides/approval-flow-development-workflow.md +52 -13
  379. package/skills/rabetbase/guides/backend-function.md +26 -4
  380. package/skills/rabetbase/guides/bff-creation-workflow.md +9 -0
  381. package/skills/rabetbase/guides/cross-database-bff.md +1 -0
  382. package/skills/rabetbase/guides/custom-page-flow-sdk.md +2 -0
  383. package/skills/rabetbase/guides/data-api-guidelines.md +2 -0
  384. package/skills/rabetbase/guides/flow-config-examples.md +75 -0
  385. package/skills/rabetbase/guides/form-flow-start.md +61 -0
  386. package/skills/rabetbase/guides/typescript-sdk.md +1 -1
  387. package/skills/rabetbase/knowledge/approval-flow/config-json-schema.md +18 -4
  388. package/skills/rabetbase/references/rabetbase-codegen-sdk.md +5 -4
  389. package/skills/rabetbase/references/rabetbase-flow-commands.md +21 -2
  390. package/skills/rabetbase/references/rabetbase-flow-resources.md +21 -3
  391. package/skills/rabetbase/references/rabetbase-flow-runtime-boundary.md +6 -2
  392. package/skills/rabetbase/references/rabetbase-kb.md +4 -1
  393. package/skills/rabetbase-dataset-generation/SKILL.md +1 -1
  394. package/skills/rabetbase-page-generation/SKILL.md +1 -1
  395. package/skills/rabetbase.manifest.json +5 -3
@@ -1 +1 @@
1
- (function(_0x31d449,_0x4f6ed6){const _0x428848=a115_0x55b3,_0x4ddc0c=_0x31d449();while(!![]){try{const _0x1a81e8=parseInt(_0x428848(0x1d0))/0x1+-parseInt(_0x428848(0x1b7))/0x2+parseInt(_0x428848(0x1b4))/0x3*(parseInt(_0x428848(0x1cd))/0x4)+-parseInt(_0x428848(0x1ba))/0x5*(parseInt(_0x428848(0x1d1))/0x6)+-parseInt(_0x428848(0x1b8))/0x7+parseInt(_0x428848(0x1ca))/0x8*(parseInt(_0x428848(0x1d2))/0x9)+-parseInt(_0x428848(0x1c5))/0xa;if(_0x1a81e8===_0x4f6ed6)break;else _0x4ddc0c['push'](_0x4ddc0c['shift']());}catch(_0x4ea153){_0x4ddc0c['push'](_0x4ddc0c['shift']());}}}(a115_0x1f46,0x719b6));function a115_0x1f46(){const _0x4ed21f=['150584FfEmyj','privatekey','10JWRDuj','dbtableConfig','dbId','trim','number','connectionstring','jdbcurl','name','authorization','hasAvailableDo','token','5994200afyxbE','keys','apiError','passwd','/data/er?dbId=','325120nBWWYA','includes','secret','760StGbAL','toLowerCase','Database\x20connection\x20preflight\x20failed.','725445lWtyxd','194154jjErWA','54ZFvLqd','length','[redacted]','tableName','The\x20configuration\x20was\x20not\x20saved.\x20Verify\x20the\x20host,\x20credentials,\x20database\x20name,\x20network,\x20and\x20allowlist,\x20or\x20explicitly\x20pass\x20--skip-connection-test.','map','11967yRSRmT','accesskey','isFinite','1152422SHNbms'];a115_0x1f46=function(){return _0x4ed21f;};return a115_0x1f46();}import{testDbLinkConfigConnect}from'../../core/api-client.js';import{getAppBaseUrl}from'../../constant/domain.js';import{CliErrors}from'../../errors.js';function shouldRedactKey(_0x29e77e){const _0x314c86=a115_0x55b3,_0x5716bc=_0x29e77e[_0x314c86(0x1ce)]();if(_0x5716bc==='password'||_0x5716bc===_0x314c86(0x1c8)||_0x5716bc==='dbpassword')return!![];if(_0x5716bc[_0x314c86(0x1cb)](_0x314c86(0x1cc))||_0x5716bc[_0x314c86(0x1cb)](_0x314c86(0x1c4))||_0x5716bc[_0x314c86(0x1cb)]('credential'))return!![];if(_0x5716bc['includes'](_0x314c86(0x1b9))||_0x5716bc[_0x314c86(0x1cb)](_0x314c86(0x1b5)))return!![];if(_0x5716bc===_0x314c86(0x1c2)||_0x5716bc===_0x314c86(0x1bf)||_0x5716bc===_0x314c86(0x1c0))return!![];return![];}export function sanitizeDbLinkForOutput(_0x5add3a){const _0x310384=a115_0x55b3,_0x34bbe1={..._0x5add3a};delete _0x34bbe1[_0x310384(0x1c3)];for(const _0x53d53e of Object[_0x310384(0x1c6)](_0x34bbe1)){if(!shouldRedactKey(_0x53d53e))continue;const _0x449870=_0x34bbe1[_0x53d53e];_0x449870!=null&&String(_0x449870)['length']>0x0&&(_0x34bbe1[_0x53d53e]=_0x310384(0x1b0));}return _0x34bbe1;}export function sanitizeDbLinkList(_0x559b35){return _0x559b35['map'](_0x1a1ecf=>sanitizeDbLinkForOutput(_0x1a1ecf));}function a115_0x55b3(_0x37f9f5,_0x2dec27){_0x37f9f5=_0x37f9f5-0x1b0;const _0x1f4667=a115_0x1f46();let _0x55b333=_0x1f4667[_0x37f9f5];return _0x55b333;}export function buildDbDatasetDependency(_0x1da66d,_0x100e57){const _0x293aec=a115_0x55b3,_0x3ada2d=_0x100e57['filter'](_0x22e462=>Number(_0x22e462[_0x293aec(0x1bb)]?.[_0x293aec(0x1bc)])===Number(_0x1da66d['id']))[_0x293aec(0x1b3)](_0x49dbe8=>({'id':_0x49dbe8['id'],'code':_0x49dbe8['code'],'name':_0x49dbe8[_0x293aec(0x1c1)],..._0x49dbe8['dbtableConfig']?.['tableName']?{'tableName':_0x49dbe8[_0x293aec(0x1bb)][_0x293aec(0x1b1)]}:{}}));return{'datasetDependency':{'hasDependencies':_0x3ada2d[_0x293aec(0x1d3)]>0x0,'activeDatasetCount':_0x3ada2d[_0x293aec(0x1d3)]},'datasets':_0x3ada2d};}export async function assertDbLinkConnectionPreflight(_0x12e043){const _0xbe40bb=a115_0x55b3,_0x209073=await testDbLinkConfigConnect(_0x12e043);if(_0x209073!==!![])throw CliErrors[_0xbe40bb(0x1c7)](_0xbe40bb(0x1cf),_0xbe40bb(0x1b2));}const DB_URL_PATTERN=/^[^\s:]+(?::\d+)?$/;export function validateDbUrl(_0x194894){const _0x2b2482=a115_0x55b3,_0x34ffd5=_0x194894[_0x2b2482(0x1bd)]();if(!_0x34ffd5)return![];return DB_URL_PATTERN['test'](_0x34ffd5);}export function buildDbPageLinks(_0x1e26d8,_0xa85613){const _0x4e5cca=a115_0x55b3,_0x4a0bde=_0x1e26d8?.[_0x4e5cca(0x1bd)]();if(!_0x4a0bde)return undefined;const _0x26b249=typeof _0xa85613===_0x4e5cca(0x1be)?String(_0xa85613):String(_0xa85613??'')[_0x4e5cca(0x1bd)]();if(!_0x26b249)return undefined;const _0x124065=Number(_0x26b249);if(!Number[_0x4e5cca(0x1b6)](_0x124065)||_0x124065<=0x0)return undefined;const _0x2543a7=getAppBaseUrl(_0x4a0bde),_0x42e56a=encodeURIComponent(String(_0x124065));return{'databasePage':_0x2543a7+'/data/database','erPage':_0x2543a7+_0x4e5cca(0x1c9)+_0x42e56a};}
1
+ (function(_0x1843a4,_0x2c9e09){const _0x12e402=a115_0x21e8,_0x5cd56b=_0x1843a4();while(!![]){try{const _0x5b4f11=parseInt(_0x12e402(0x87))/0x1+parseInt(_0x12e402(0x83))/0x2*(-parseInt(_0x12e402(0x94))/0x3)+-parseInt(_0x12e402(0x92))/0x4+parseInt(_0x12e402(0x88))/0x5+parseInt(_0x12e402(0x85))/0x6*(parseInt(_0x12e402(0x9c))/0x7)+parseInt(_0x12e402(0x89))/0x8+parseInt(_0x12e402(0x98))/0x9*(-parseInt(_0x12e402(0x86))/0xa);if(_0x5b4f11===_0x2c9e09)break;else _0x5cd56b['push'](_0x5cd56b['shift']());}catch(_0x3d709f){_0x5cd56b['push'](_0x5cd56b['shift']());}}}(a115_0xe18d,0xb126d));import{testDbLinkConfigConnect}from'../../core/api-client.js';import{getAppBaseUrl}from'../../constant/domain.js';import{CliErrors}from'../../errors.js';function a115_0x21e8(_0x28494c,_0x26f40c){_0x28494c=_0x28494c-0x82;const _0xe18da=a115_0xe18d();let _0x21e855=_0xe18da[_0x28494c];return _0x21e855;}function a115_0xe18d(){const _0x5a06c1=['tableName','token','3434956EFkNkU','passwd','6YNFaJf','jdbcurl','dbId','length','1150182eghhPS','accesskey','keys','toLowerCase','126VDxpyM','includes','connectionstring','isFinite','The\x20configuration\x20was\x20not\x20saved.\x20Verify\x20the\x20host,\x20credentials,\x20database\x20name,\x20network,\x20and\x20allowlist,\x20or\x20explicitly\x20pass\x20--skip-connection-test.','test','name','/data/database','password','authorization','code','map','172394tFYRNt','dbtableConfig','271326xCqHVP','90IDgYWv','648177WlBkdG','3695080macihV','5646056vOnsoT','trim','credential','Database\x20connection\x20preflight\x20failed.','dbpassword','[redacted]','/data/er?dbId='];a115_0xe18d=function(){return _0x5a06c1;};return a115_0xe18d();}function shouldRedactKey(_0x537df9){const _0x7ae32f=a115_0x21e8,_0x14e455=_0x537df9[_0x7ae32f(0x9b)]();if(_0x14e455===_0x7ae32f(0xa4)||_0x14e455===_0x7ae32f(0x93)||_0x14e455===_0x7ae32f(0x8d))return!![];if(_0x14e455[_0x7ae32f(0x9d)]('secret')||_0x14e455[_0x7ae32f(0x9d)](_0x7ae32f(0x91))||_0x14e455[_0x7ae32f(0x9d)](_0x7ae32f(0x8b)))return!![];if(_0x14e455[_0x7ae32f(0x9d)]('privatekey')||_0x14e455[_0x7ae32f(0x9d)](_0x7ae32f(0x99)))return!![];if(_0x14e455===_0x7ae32f(0xa5)||_0x14e455===_0x7ae32f(0x9e)||_0x14e455===_0x7ae32f(0x95))return!![];return![];}export function sanitizeDbLinkForOutput(_0x1c705f){const _0x423789=a115_0x21e8,_0x136759={..._0x1c705f};delete _0x136759['hasAvailableDo'];for(const _0x31fff2 of Object[_0x423789(0x9a)](_0x136759)){if(!shouldRedactKey(_0x31fff2))continue;const _0x25946b=_0x136759[_0x31fff2];_0x25946b!=null&&String(_0x25946b)[_0x423789(0x97)]>0x0&&(_0x136759[_0x31fff2]=_0x423789(0x8e));}return _0x136759;}export function sanitizeDbLinkList(_0x388b8e){const _0x1af151=a115_0x21e8;return _0x388b8e[_0x1af151(0x82)](_0x5e4108=>sanitizeDbLinkForOutput(_0x5e4108));}export function buildDbDatasetDependency(_0x31ebff,_0x27f4af){const _0x201802=a115_0x21e8,_0x146037=_0x27f4af['filter'](_0x395b1c=>Number(_0x395b1c[_0x201802(0x84)]?.[_0x201802(0x96)])===Number(_0x31ebff['id']))['map'](_0x8d1b08=>({'id':_0x8d1b08['id'],'code':_0x8d1b08[_0x201802(0xa6)],'name':_0x8d1b08[_0x201802(0xa2)],..._0x8d1b08[_0x201802(0x84)]?.[_0x201802(0x90)]?{'tableName':_0x8d1b08[_0x201802(0x84)]['tableName']}:{}}));return{'datasetDependency':{'hasDependencies':_0x146037[_0x201802(0x97)]>0x0,'activeDatasetCount':_0x146037[_0x201802(0x97)]},'datasets':_0x146037};}export async function assertDbLinkConnectionPreflight(_0x1d6818){const _0x294455=a115_0x21e8,_0x334c63=await testDbLinkConfigConnect(_0x1d6818);if(_0x334c63!==!![])throw CliErrors['apiError'](_0x294455(0x8c),_0x294455(0xa0));}const DB_URL_PATTERN=/^[^\s:]+(?::\d+)?$/;export function validateDbUrl(_0x569857){const _0xf4d3f6=a115_0x21e8,_0x1b06e5=_0x569857[_0xf4d3f6(0x8a)]();if(!_0x1b06e5)return![];return DB_URL_PATTERN[_0xf4d3f6(0xa1)](_0x1b06e5);}export function buildDbPageLinks(_0x6178e7,_0x53bdfe){const _0x387491=a115_0x21e8,_0xc1471d=_0x6178e7?.['trim']();if(!_0xc1471d)return undefined;const _0x56f4e4=typeof _0x53bdfe==='number'?String(_0x53bdfe):String(_0x53bdfe??'')[_0x387491(0x8a)]();if(!_0x56f4e4)return undefined;const _0x2ec999=Number(_0x56f4e4);if(!Number[_0x387491(0x9f)](_0x2ec999)||_0x2ec999<=0x0)return undefined;const _0x17c048=getAppBaseUrl(_0xc1471d),_0x4122de=encodeURIComponent(String(_0x2ec999));return{'databasePage':_0x17c048+_0x387491(0xa3),'erPage':_0x17c048+_0x387491(0x8f)+_0x4122de};}
@@ -1 +1 @@
1
- const a116_0x21f770=a116_0x3f3c;(function(_0x5a6f64,_0xece144){const _0x31e456=a116_0x3f3c,_0x1d2ee5=_0x5a6f64();while(!![]){try{const _0x45554f=parseInt(_0x31e456(0x18c))/0x1+parseInt(_0x31e456(0x19b))/0x2*(parseInt(_0x31e456(0x18a))/0x3)+-parseInt(_0x31e456(0x19f))/0x4+parseInt(_0x31e456(0x18e))/0x5*(-parseInt(_0x31e456(0x19d))/0x6)+-parseInt(_0x31e456(0x198))/0x7+-parseInt(_0x31e456(0x191))/0x8*(-parseInt(_0x31e456(0x189))/0x9)+parseInt(_0x31e456(0x196))/0xa*(parseInt(_0x31e456(0x1a2))/0xb);if(_0x45554f===_0xece144)break;else _0x1d2ee5['push'](_0x1d2ee5['shift']());}catch(_0x148907){_0x1d2ee5['push'](_0x1d2ee5['shift']());}}}(a116_0x59c9,0xe02bb));import{CliErrors}from'../../errors.js';export const DB_TABLE_PAGE_SIZE=0x64;function a116_0x3f3c(_0x2fa3e0,_0x413de6){_0x2fa3e0=_0x2fa3e0-0x189;const _0x59c9c4=a116_0x59c9();let _0x3f3c8e=_0x59c9c4[_0x2fa3e0];return _0x3f3c8e;}export const DB_TABLE_DIFF_TYPES=['NEW_TABLE',a116_0x21f770(0x19a),a116_0x21f770(0x1a6),a116_0x21f770(0x19e)];function a116_0x59c9(){const _0x1307e7=['5151464szErrM','totalCount','size','22qfZLMw','number','filter','summary','DELETED_TABLE','12658167IbsoHq','69UjArqz','validation','1318214foBPOs','Incomplete\x20db\x20table\x20pagination:\x20collected\x20','8513145LnsvvG','length','physicalTableCount','8TajlPb','tableList','tableName','\x20row(s).','diffType','9700760ngePAH','\x20of\x20','10290840AArQMG','map','MODIFIED_TABLE','62086vyfqfg','datasetTableCount','6BMtyre','ALREADY_ANALYZED'];a116_0x59c9=function(){return _0x1307e7;};return a116_0x59c9();}export function summarizeDbTableDiff(_0x3ef1bb){const _0x572520=a116_0x21f770;return Object['fromEntries'](DB_TABLE_DIFF_TYPES[_0x572520(0x199)](_0x4a23bb=>[_0x4a23bb,_0x3ef1bb[_0x572520(0x1a4)](_0x51f1a3=>_0x51f1a3[_0x572520(0x195)]===_0x4a23bb)[_0x572520(0x18f)]]));}export async function getAllDbTableDiff(_0x5f32b4,_0x445320,_0x27ab57,_0x3d34c2){const _0x2b0e28=a116_0x21f770,_0xa1200e=new Map();let _0x2f4e7a=0x1,_0x2607a4=null;while(!![]){_0x2607a4=await _0x5f32b4(_0x445320,_0x27ab57,{'pageIndex':_0x2f4e7a,'pageSize':DB_TABLE_PAGE_SIZE,'tableName':_0x3d34c2});const _0x12f2fc=_0xa1200e['size'];for(const _0x53b1f2 of _0x2607a4[_0x2b0e28(0x192)]){_0xa1200e['set'](_0x53b1f2[_0x2b0e28(0x193)],_0x53b1f2);}if(_0xa1200e[_0x2b0e28(0x1a1)]>=_0x2607a4[_0x2b0e28(0x1a0)])break;if(_0x2607a4[_0x2b0e28(0x192)][_0x2b0e28(0x18f)]===0x0||_0xa1200e[_0x2b0e28(0x1a1)]===_0x12f2fc)throw CliErrors[_0x2b0e28(0x18b)](_0x2b0e28(0x18d)+_0xa1200e[_0x2b0e28(0x1a1)]+_0x2b0e28(0x197)+_0x2607a4[_0x2b0e28(0x1a0)]+_0x2b0e28(0x194));_0x2f4e7a+=0x1;}return{'totalCount':_0x2607a4?.[_0x2b0e28(0x1a0)]??0x0,...typeof _0x2607a4?.['physicalTableCount']===_0x2b0e28(0x1a3)?{'physicalTableCount':_0x2607a4[_0x2b0e28(0x190)]}:{},...typeof _0x2607a4?.[_0x2b0e28(0x19c)]===_0x2b0e28(0x1a3)?{'datasetTableCount':_0x2607a4[_0x2b0e28(0x19c)]}:{},..._0x2607a4?.[_0x2b0e28(0x1a5)]?{'summary':_0x2607a4[_0x2b0e28(0x1a5)]}:{},'tableList':[..._0xa1200e['values']()]};}
1
+ const a116_0x1f5f2e=a116_0xc887;(function(_0x3ad364,_0x5190e5){const _0x921593=a116_0xc887,_0x11d84d=_0x3ad364();while(!![]){try{const _0x35eab2=-parseInt(_0x921593(0x18b))/0x1+-parseInt(_0x921593(0x188))/0x2+parseInt(_0x921593(0x18e))/0x3+parseInt(_0x921593(0x182))/0x4*(-parseInt(_0x921593(0x18a))/0x5)+parseInt(_0x921593(0x18c))/0x6*(-parseInt(_0x921593(0x189))/0x7)+-parseInt(_0x921593(0x184))/0x8+parseInt(_0x921593(0x185))/0x9*(parseInt(_0x921593(0x17d))/0xa);if(_0x35eab2===_0x5190e5)break;else _0x11d84d['push'](_0x11d84d['shift']());}catch(_0x459568){_0x11d84d['push'](_0x11d84d['shift']());}}}(a116_0x36bd,0x2a019));import{CliErrors}from'../../errors.js';function a116_0xc887(_0x341f9c,_0x1ebc0e){_0x341f9c=_0x341f9c-0x172;const _0x36bd15=a116_0x36bd();let _0xc8875a=_0x36bd15[_0x341f9c];return _0xc8875a;}export const DB_TABLE_PAGE_SIZE=0x64;export const DB_TABLE_DIFF_TYPES=[a116_0x1f5f2e(0x177),a116_0x1f5f2e(0x190),a116_0x1f5f2e(0x183),a116_0x1f5f2e(0x17c)];function a116_0x36bd(){const _0x2322e2=['length','318468aiJDdn','16289XKYhOl','99670OJNMPJ','265461rbFQAq','366PmmZAX','fromEntries','109008MeaNxe','values','MODIFIED_TABLE','tableName','summary','size','Incomplete\x20db\x20table\x20pagination:\x20collected\x20','map','NEW_TABLE','datasetTableCount','\x20of\x20','filter','number','ALREADY_ANALYZED','110qDNgLf','physicalTableCount','set','tableList','totalCount','68NukVEJ','DELETED_TABLE','776048nCoJyj','931293aMHjyC','validation'];a116_0x36bd=function(){return _0x2322e2;};return a116_0x36bd();}export function summarizeDbTableDiff(_0x30650c){const _0x3b508e=a116_0x1f5f2e;return Object[_0x3b508e(0x18d)](DB_TABLE_DIFF_TYPES[_0x3b508e(0x176)](_0x4eddc0=>[_0x4eddc0,_0x30650c[_0x3b508e(0x17a)](_0x3052aa=>_0x3052aa['diffType']===_0x4eddc0)[_0x3b508e(0x187)]]));}export async function getAllDbTableDiff(_0x36743b,_0x4de4d9,_0x524062,_0x80e8b9){const _0x74257a=a116_0x1f5f2e,_0x2c6437=new Map();let _0x246489=0x1,_0x5d8a2b=null;while(!![]){_0x5d8a2b=await _0x36743b(_0x4de4d9,_0x524062,{'pageIndex':_0x246489,'pageSize':DB_TABLE_PAGE_SIZE,'tableName':_0x80e8b9});const _0x399977=_0x2c6437[_0x74257a(0x174)];for(const _0x1a8080 of _0x5d8a2b[_0x74257a(0x180)]){_0x2c6437[_0x74257a(0x17f)](_0x1a8080[_0x74257a(0x172)],_0x1a8080);}if(_0x2c6437[_0x74257a(0x174)]>=_0x5d8a2b['totalCount'])break;if(_0x5d8a2b[_0x74257a(0x180)][_0x74257a(0x187)]===0x0||_0x2c6437[_0x74257a(0x174)]===_0x399977)throw CliErrors[_0x74257a(0x186)](_0x74257a(0x175)+_0x2c6437['size']+_0x74257a(0x179)+_0x5d8a2b['totalCount']+'\x20row(s).');_0x246489+=0x1;}return{'totalCount':_0x5d8a2b?.[_0x74257a(0x181)]??0x0,...typeof _0x5d8a2b?.[_0x74257a(0x17e)]===_0x74257a(0x17b)?{'physicalTableCount':_0x5d8a2b[_0x74257a(0x17e)]}:{},...typeof _0x5d8a2b?.[_0x74257a(0x178)]===_0x74257a(0x17b)?{'datasetTableCount':_0x5d8a2b['datasetTableCount']}:{},..._0x5d8a2b?.[_0x74257a(0x173)]?{'summary':_0x5d8a2b[_0x74257a(0x173)]}:{},'tableList':[..._0x2c6437[_0x74257a(0x18f)]()]};}
@@ -1 +1 @@
1
- const a117_0x1a565e=a117_0x29dc;(function(_0x1f3ec1,_0x5852aa){const _0xa08a5=a117_0x29dc,_0xce518f=_0x1f3ec1();while(!![]){try{const _0x315621=parseInt(_0xa08a5(0xcf))/0x1+-parseInt(_0xa08a5(0xbe))/0x2*(-parseInt(_0xa08a5(0xd1))/0x3)+parseInt(_0xa08a5(0xc3))/0x4+-parseInt(_0xa08a5(0xd0))/0x5+parseInt(_0xa08a5(0xc4))/0x6*(parseInt(_0xa08a5(0xd3))/0x7)+-parseInt(_0xa08a5(0xd2))/0x8*(-parseInt(_0xa08a5(0xc5))/0x9)+parseInt(_0xa08a5(0xd4))/0xa*(-parseInt(_0xa08a5(0xc8))/0xb);if(_0x315621===_0x5852aa)break;else _0xce518f['push'](_0xce518f['shift']());}catch(_0x443163){_0xce518f['push'](_0xce518f['shift']());}}}(a117_0x562f,0xb847a));import{getDbTableComparisonPage}from'../../core/api-client.js';function a117_0x29dc(_0x4addf8,_0x3f1f71){_0x4addf8=_0x4addf8-0xbe;const _0x562fe8=a117_0x562f();let _0x29dcc1=_0x562fe8[_0x4addf8];return _0x29dcc1;}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_0x1a565e(0xca),'description':'List\x20all\x20database\x20table\x20comparison\x20rows\x20and\x20analysis\x20states','risk':a117_0x1a565e(0xcb),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a117_0x1a565e(0xc9),'type':a117_0x1a565e(0xcc),'description':'Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)'}],async 'execute'(_0x207b03){const _0x26df1e=a117_0x1a565e,_0x191a96=_0x207b03[_0x26df1e(0xc7)]('id'),_0x439bc7=_0x207b03[_0x26df1e(0xc6)](_0x26df1e(0xc9))||undefined,_0x31e281=await getAllDbTableDiff(getDbTableComparisonPage,_0x207b03['appCode'],_0x191a96,_0x439bc7),_0x240954=_0x31e281['tableList'];return{'ok':!![],'data':{'dbLinkId':_0x191a96,'totalCount':_0x31e281[_0x26df1e(0xc0)],...typeof _0x31e281['physicalTableCount']==='number'?{'physicalTableCount':_0x31e281[_0x26df1e(0xbf)]}:{},...typeof _0x31e281[_0x26df1e(0xc2)]==='number'?{'datasetTableCount':_0x31e281[_0x26df1e(0xc2)]}:{},..._0x31e281[_0x26df1e(0xce)]?{'summary':_0x31e281[_0x26df1e(0xce)]}:{},'summaryByType':summarizeDbTableDiff(_0x240954),'tables':_0x240954},'message':_0x240954['length']+_0x26df1e(0xc1)+_0x31e281[_0x26df1e(0xc0)]+_0x26df1e(0xcd)+_0x191a96+')'};}};function a117_0x562f(){const _0x15f642=['summary','1402501wZKbcD','5848640KHlweK','286401XWRIEg','1228904nHebCQ','330155jjlYQn','10RvVCCs','10tzOnBD','physicalTableCount','totalCount','\x20table\x20comparison\x20row(s),\x20total\x20','datasetTableCount','1742620TfbuFu','90hfKMsi','9mDfpUU','str','num','13772451JGFFbF','table','tables','read','string','\x20(db\x20link\x20'];a117_0x562f=function(){return _0x15f642;};return a117_0x562f();}
1
+ function a117_0x3630(){const _0x34e707=['120RMFfKb','119273RgOlTg','str','1433312BFumfp','num','appCode','tableList','70yJknNa','List\x20all\x20database\x20table\x20comparison\x20rows\x20and\x20analysis\x20states','355860ELPNyD','Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)','\x20(db\x20link\x20','read','number','109842eKvKUz','totalCount','datasetTableCount','12Rjtliv','table','168113nDgFnj','string','10yLSlMn','length','\x20table\x20comparison\x20row(s),\x20total\x20','physicalTableCount','140164iMRHSM','1127AxVnmV','summary'];a117_0x3630=function(){return _0x34e707;};return a117_0x3630();}const a117_0x269dc2=a117_0x48ec;(function(_0x466202,_0x131e85){const _0x14177c=a117_0x48ec,_0x4e6345=_0x466202();while(!![]){try{const _0x586e28=-parseInt(_0x14177c(0x14f))/0x1*(parseInt(_0x14177c(0x13c))/0x2)+parseInt(_0x14177c(0x146))/0x3*(parseInt(_0x14177c(0x14e))/0x4)+-parseInt(_0x14177c(0x14a))/0x5*(parseInt(_0x14177c(0x143))/0x6)+parseInt(_0x14177c(0x152))/0x7+parseInt(_0x14177c(0x154))/0x8+parseInt(_0x14177c(0x13e))/0x9+parseInt(_0x14177c(0x151))/0xa*(-parseInt(_0x14177c(0x148))/0xb);if(_0x586e28===_0x131e85)break;else _0x4e6345['push'](_0x4e6345['shift']());}catch(_0x19f79b){_0x4e6345['push'](_0x4e6345['shift']());}}}(a117_0x3630,0x1c6e4));import{getDbTableComparisonPage}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a117_0x48ec(_0x5c1539,_0x2b4da1){_0x5c1539=_0x5c1539-0x13a;const _0x36308f=a117_0x3630();let _0x48ec8b=_0x36308f[_0x5c1539];return _0x48ec8b;}import{getAllDbTableDiff,summarizeDbTableDiff}from'../../commands/db/table-diff-shared.js';export const dbTables={'service':'db','command':'tables','description':a117_0x269dc2(0x13d),'risk':a117_0x269dc2(0x141),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a117_0x269dc2(0x147),'type':a117_0x269dc2(0x149),'description':a117_0x269dc2(0x13f)}],async 'execute'(_0x36b441){const _0x585c21=a117_0x269dc2,_0x14f63d=_0x36b441[_0x585c21(0x155)]('id'),_0x351169=_0x36b441[_0x585c21(0x153)]('table')||undefined,_0x465e17=await getAllDbTableDiff(getDbTableComparisonPage,_0x36b441[_0x585c21(0x13a)],_0x14f63d,_0x351169),_0x91ff35=_0x465e17[_0x585c21(0x13b)];return{'ok':!![],'data':{'dbLinkId':_0x14f63d,'totalCount':_0x465e17[_0x585c21(0x144)],...typeof _0x465e17['physicalTableCount']===_0x585c21(0x142)?{'physicalTableCount':_0x465e17[_0x585c21(0x14d)]}:{},...typeof _0x465e17[_0x585c21(0x145)]==='number'?{'datasetTableCount':_0x465e17[_0x585c21(0x145)]}:{},..._0x465e17[_0x585c21(0x150)]?{'summary':_0x465e17[_0x585c21(0x150)]}:{},'summaryByType':summarizeDbTableDiff(_0x91ff35),'tables':_0x91ff35},'message':_0x91ff35[_0x585c21(0x14b)]+_0x585c21(0x14c)+_0x465e17['totalCount']+_0x585c21(0x140)+_0x14f63d+')'};}};
@@ -1 +1 @@
1
- const a118_0x2729f7=a118_0x5af1;(function(_0x17de7a,_0x13bb1d){const _0x10e706=a118_0x5af1,_0xef839f=_0x17de7a();while(!![]){try{const _0x19a554=-parseInt(_0x10e706(0x77))/0x1*(parseInt(_0x10e706(0x8a))/0x2)+-parseInt(_0x10e706(0x80))/0x3+parseInt(_0x10e706(0x83))/0x4+-parseInt(_0x10e706(0x8d))/0x5*(parseInt(_0x10e706(0x8c))/0x6)+-parseInt(_0x10e706(0x79))/0x7*(parseInt(_0x10e706(0x7d))/0x8)+parseInt(_0x10e706(0x85))/0x9+parseInt(_0x10e706(0x7e))/0xa;if(_0x19a554===_0x13bb1d)break;else _0xef839f['push'](_0xef839f['shift']());}catch(_0x2ad617){_0xef839f['push'](_0xef839f['shift']());}}}(a118_0x1386,0x979df));import{testDbLinkConnect}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a118_0x5af1(_0x3a161b,_0x3b218e){_0x3a161b=_0x3a161b-0x76;const _0x138677=a118_0x1386();let _0x5af1ce=_0x138677[_0x3a161b];return _0x5af1ce;}function a118_0x1386(){const _0x29ce50=['read','3528760GExazW','num','10428084fSdfpL','\x20(see\x20data.result)','success','object','message','10eXUhgu','keys','3481242AzYBby','5aLklSV','Connection\x20OK\x20for\x20db\x20link\x20','69695nsFfOc','error','14GfyjKU','length','slice','Connection\x20check\x20finished\x20for\x20db\x20link\x20','3400856okNbaf','9555100OazVDg','Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)','1789371AElgef','data'];a118_0x1386=function(){return _0x29ce50;};return a118_0x1386();}function summarizeTestConnectResult(_0xfaab9a){const _0x559b63=a118_0x5af1;if(_0xfaab9a===!![]||_0xfaab9a===![])return{'success':_0xfaab9a};if(_0xfaab9a===null||_0xfaab9a===undefined)return{'type':typeof _0xfaab9a};if(typeof _0xfaab9a!==_0x559b63(0x88))return{'type':typeof _0xfaab9a};const _0x6fc945=_0xfaab9a,_0x823625=[_0x559b63(0x87),_0x559b63(0x89),'code',_0x559b63(0x78),'msg',_0x559b63(0x81)],_0x1d899c={};for(const _0x5719a5 of _0x823625){if(_0x5719a5 in _0x6fc945)_0x1d899c[_0x5719a5]=_0x6fc945[_0x5719a5];}return Object[_0x559b63(0x8b)](_0x1d899c)[_0x559b63(0x7a)]===0x0&&(_0x1d899c[_0x559b63(0x8b)]=Object[_0x559b63(0x8b)](_0x6fc945)[_0x559b63(0x7b)](0x0,0x14)),_0x1d899c;}export const dbTest={'service':'db','command':'test','description':a118_0x2729f7(0x7f),'risk':a118_0x2729f7(0x82),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0xed7bc9){const _0x4e11f1=a118_0x2729f7,_0x5cff6b=_0xed7bc9[_0x4e11f1(0x84)]('id'),_0x53065d=await testDbLinkConnect(_0x5cff6b),_0x367e34=_0x53065d===!![]||typeof _0x53065d===_0x4e11f1(0x88)&&_0x53065d!==null&&_0x53065d['success']===!![],_0x318f30=summarizeTestConnectResult(_0x53065d);return{'ok':!![],'data':{'id':_0x5cff6b,'connected':Boolean(_0x367e34),'result':_0x318f30},'message':_0x367e34?_0x4e11f1(0x76)+_0x5cff6b:_0x4e11f1(0x7c)+_0x5cff6b+_0x4e11f1(0x86)};}};
1
+ function a118_0x5e5e(_0x3f7e5e,_0x32a74e){_0x3f7e5e=_0x3f7e5e-0xe2;const _0xbe60a0=a118_0xbe60();let _0x5e5e14=_0xbe60a0[_0x3f7e5e];return _0x5e5e14;}const a118_0x1c57fb=a118_0x5e5e;(function(_0x1db405,_0x208924){const _0x2bde63=a118_0x5e5e,_0x473142=_0x1db405();while(!![]){try{const _0xab11f6=parseInt(_0x2bde63(0xe6))/0x1*(parseInt(_0x2bde63(0xe2))/0x2)+-parseInt(_0x2bde63(0xef))/0x3+-parseInt(_0x2bde63(0xed))/0x4+-parseInt(_0x2bde63(0xf9))/0x5+-parseInt(_0x2bde63(0xf0))/0x6*(-parseInt(_0x2bde63(0xea))/0x7)+-parseInt(_0x2bde63(0xf4))/0x8+-parseInt(_0x2bde63(0xf7))/0x9*(-parseInt(_0x2bde63(0xf6))/0xa);if(_0xab11f6===_0x208924)break;else _0x473142['push'](_0x473142['shift']());}catch(_0x305f73){_0x473142['push'](_0x473142['shift']());}}}(a118_0xbe60,0x5a9e6));import{testDbLinkConnect}from'../../core/api-client.js';function a118_0xbe60(){const _0x5d61d6=['slice','test','1443480UigLeX','\x20(see\x20data.result)','190oBvyyg','446373lrQHTC','object','3010390gqGeRF','error','Connection\x20OK\x20for\x20db\x20link\x20','152ayWQVN','read','code','length','8830kzwwTc','message','num','success','28dTlTJk','data','Connection\x20check\x20finished\x20for\x20db\x20link\x20','1742304LsSalc','keys','1801332eTgDqz','864426IAGSMW','msg'];a118_0xbe60=function(){return _0x5d61d6;};return a118_0xbe60();}import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function summarizeTestConnectResult(_0x47ff6a){const _0xf8bb4e=a118_0x5e5e;if(_0x47ff6a===!![]||_0x47ff6a===![])return{'success':_0x47ff6a};if(_0x47ff6a===null||_0x47ff6a===undefined)return{'type':typeof _0x47ff6a};if(typeof _0x47ff6a!==_0xf8bb4e(0xf8))return{'type':typeof _0x47ff6a};const _0x51ff06=_0x47ff6a,_0x570cd8=['success',_0xf8bb4e(0xe7),_0xf8bb4e(0xe4),_0xf8bb4e(0xfa),_0xf8bb4e(0xf1),_0xf8bb4e(0xeb)],_0xb4fb3c={};for(const _0x5a6bc3 of _0x570cd8){if(_0x5a6bc3 in _0x51ff06)_0xb4fb3c[_0x5a6bc3]=_0x51ff06[_0x5a6bc3];}return Object['keys'](_0xb4fb3c)[_0xf8bb4e(0xe5)]===0x0&&(_0xb4fb3c[_0xf8bb4e(0xee)]=Object['keys'](_0x51ff06)[_0xf8bb4e(0xf2)](0x0,0x14)),_0xb4fb3c;}export const dbTest={'service':'db','command':a118_0x1c57fb(0xf3),'description':'Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)','risk':a118_0x1c57fb(0xe3),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x1606ef){const _0x2403bb=a118_0x1c57fb,_0x8d4962=_0x1606ef[_0x2403bb(0xe8)]('id'),_0x4479b6=await testDbLinkConnect(_0x8d4962),_0x230468=_0x4479b6===!![]||typeof _0x4479b6===_0x2403bb(0xf8)&&_0x4479b6!==null&&_0x4479b6[_0x2403bb(0xe9)]===!![],_0x563016=summarizeTestConnectResult(_0x4479b6);return{'ok':!![],'data':{'id':_0x8d4962,'connected':Boolean(_0x230468),'result':_0x563016},'message':_0x230468?_0x2403bb(0xfb)+_0x8d4962:_0x2403bb(0xec)+_0x8d4962+_0x2403bb(0xf5)};}};
@@ -1 +1 @@
1
- const a119_0x24b20e=a119_0x44ee;(function(_0x7bc6ea,_0x465a2c){const _0x32378a=a119_0x44ee,_0x51410b=_0x7bc6ea();while(!![]){try{const _0x281eeb=-parseInt(_0x32378a(0xd8))/0x1+-parseInt(_0x32378a(0xde))/0x2+parseInt(_0x32378a(0xd7))/0x3*(-parseInt(_0x32378a(0xf2))/0x4)+-parseInt(_0x32378a(0xee))/0x5*(parseInt(_0x32378a(0xdb))/0x6)+-parseInt(_0x32378a(0xf0))/0x7*(-parseInt(_0x32378a(0xd6))/0x8)+-parseInt(_0x32378a(0xe7))/0x9*(parseInt(_0x32378a(0xe3))/0xa)+parseInt(_0x32378a(0xe6))/0xb;if(_0x281eeb===_0x465a2c)break;else _0x51410b['push'](_0x51410b['shift']());}catch(_0xf6534d){_0x51410b['push'](_0x51410b['shift']());}}}(a119_0x5672,0xb458c));function a119_0x5672(){const _0x14fe2e=['update','num','726696zZWrnd','validation','POST','username','Current\x20or\x20replacement\x20password.\x20Required\x20when\x20the\x20stored\x20password\x20is\x20masked','30370gAYDjp','dburl','New\x20host:port','49643616dTBzmn','4167nomGOP','dbDesc','New\x20description','dbparam','has','dbname','[redacted]','20YEYlJs','dbName','98pvUmBf','******','500OANwfm','str','The\x20server\x20returned\x20a\x20masked\x20database\x20password.\x20Pass\x20the\x20current\x20or\x20replacement\x20password\x20explicitly\x20with\x20--password\x20to\x20update\x20this\x20connection\x20safely.','Update\x20a\x20database\x20connection\x20by\x20merging\x20supplied\x20fields\x20into\x20the\x20current\x20server\x20record.\x20A\x20masked\x20server\x20password\x20requires\x20explicit\x20--password','write','bool','string','dbdesc','New\x20username','skip-connection-test','--password\x20must\x20contain\x20the\x20real\x20database\x20password,\x20not\x20a\x20masked\x20value.','/smartapi/dblink/update','176576MMJSzg','13887MrJbXC','1122404exoQlO','trim','password','919284ARhKfX'];a119_0x5672=function(){return _0x14fe2e;};return a119_0x5672();}import{getDbLinkInfo,updateDbLink}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG,SKIP_CONNECTION_TEST_FLAG}from'../../commands/common/flags.js';import{assertDbLinkConnectionPreflight,sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';function a119_0x44ee(_0x3c6581,_0x554560){_0x3c6581=_0x3c6581-0xd5;const _0x5672b8=a119_0x5672();let _0x44eea7=_0x5672b8[_0x3c6581];return _0x44eea7;}const MASKED_PASSWORD_VALUES=new Set([a119_0x24b20e(0xf1),a119_0x24b20e(0xed)]);function mergeDbLinkUpdate(_0x27bf5d,_0x581ed3){const _0x5aa622=a119_0x24b20e,_0x48514a={..._0x27bf5d},_0x106c17=_0x581ed3[_0x5aa622(0xf3)]('password');if(_0x106c17&&MASKED_PASSWORD_VALUES[_0x5aa622(0xeb)](_0x106c17))throw CliErrors[_0x5aa622(0xdf)](_0x5aa622(0xfc));if(!_0x106c17&&MASKED_PASSWORD_VALUES[_0x5aa622(0xeb)](String(_0x27bf5d['password']??'')))throw CliErrors[_0x5aa622(0xdf)](_0x5aa622(0xf4));const _0x323158=_0x581ed3[_0x5aa622(0xf3)]('dbname');if(_0x323158)_0x48514a[_0x5aa622(0xef)]=_0x323158;const _0x53f484=_0x581ed3[_0x5aa622(0xf3)](_0x5aa622(0xe4));if(_0x53f484)_0x48514a['dbUrl']=_0x53f484[_0x5aa622(0xd9)]();const _0x5c18c=_0x581ed3[_0x5aa622(0xf3)](_0x5aa622(0xe1));if(_0x5c18c)_0x48514a['username']=_0x5c18c;if(_0x106c17)_0x48514a[_0x5aa622(0xda)]=_0x106c17;const _0x26d917=_0x581ed3[_0x5aa622(0xf3)](_0x5aa622(0xea));if(_0x26d917)_0x48514a['dbParam']=_0x26d917;const _0x1ebce3=_0x581ed3[_0x5aa622(0xf3)](_0x5aa622(0xf9));if(_0x1ebce3)_0x48514a[_0x5aa622(0xe8)]=_0x1ebce3;return _0x48514a;}export const dbUpdate={'service':'db','command':a119_0x24b20e(0xdc),'description':a119_0x24b20e(0xf5),'risk':a119_0x24b20e(0xf6),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a119_0x24b20e(0xec),'type':'string','description':'New\x20database\x20name'},{'name':a119_0x24b20e(0xe4),'type':a119_0x24b20e(0xf8),'description':a119_0x24b20e(0xe5)},{'name':a119_0x24b20e(0xe1),'type':'string','description':a119_0x24b20e(0xfa)},{'name':a119_0x24b20e(0xda),'type':a119_0x24b20e(0xf8),'description':a119_0x24b20e(0xe2)},{'name':'dbparam','type':a119_0x24b20e(0xf8),'description':'New\x20connection\x20parameter\x20string'},{'name':a119_0x24b20e(0xf9),'type':a119_0x24b20e(0xf8),'description':a119_0x24b20e(0xe9)},SKIP_CONNECTION_TEST_FLAG],async 'validate'(_0x4f5331){const _0x2b4aed=a119_0x24b20e,_0x2996dc=_0x4f5331[_0x2b4aed(0xf3)](_0x2b4aed(0xe4));if(_0x2996dc&&!validateDbUrl(_0x2996dc['trim']()))throw CliErrors['validation']('Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22'+_0x2996dc+'\x22');},async 'dryRun'(_0x304639){const _0x4fe4be=a119_0x24b20e,_0x693ff4=_0x304639[_0x4fe4be(0xdd)]('id'),_0x59d0af=await getDbLinkInfo(_0x693ff4),_0x6dac39=mergeDbLinkUpdate(_0x59d0af,_0x304639),_0x1807aa=sanitizeDbLinkForOutput(_0x6dac39);return{'method':_0x4fe4be(0xe0),'url':_0x4fe4be(0xd5),'body':_0x1807aa,'description':'Preview\x20the\x20merged\x20database\x20connection\x20update;\x20password\x20redacted','connectionPreflight':{'enabled':!_0x304639[_0x4fe4be(0xf7)]('skip-connection-test'),'executed':![]}};},async 'execute'(_0x27dba6){const _0x4b4550=a119_0x24b20e,_0x242f8f=_0x27dba6[_0x4b4550(0xdd)]('id'),_0x8ab6d9=await getDbLinkInfo(_0x242f8f),_0x5a2720=mergeDbLinkUpdate(_0x8ab6d9,_0x27dba6);!_0x27dba6[_0x4b4550(0xf7)](_0x4b4550(0xfb))&&await assertDbLinkConnectionPreflight(_0x5a2720);const {id:_0x374e9d,entity:_0x47d9b4}=normalizeEntityWithIdResponse(await updateDbLink(_0x5a2720));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x47d9b4),'message':'Updated\x20db\x20link\x20'+(_0x374e9d??_0x242f8f)};}};
1
+ const a119_0x1c7e64=a119_0x3b31;function a119_0x3b31(_0x4bc255,_0x32cda1){_0x4bc255=_0x4bc255-0x1ee;const _0x3c0032=a119_0x3c00();let _0x3b3194=_0x3c0032[_0x4bc255];return _0x3b3194;}function a119_0x3c00(){const _0x248404=['validation','has','num','POST','str','2jJRIke','3658296QqoAIR','trim','Preview\x20the\x20merged\x20database\x20connection\x20update;\x20password\x20redacted','[redacted]','Current\x20or\x20replacement\x20password.\x20Required\x20when\x20the\x20stored\x20password\x20is\x20masked','367013lEOJxH','New\x20description','New\x20username','dbName','517191FelRsL','2334tiCpRD','update','573872PGIYHP','Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22','dbParam','6531723iKYvrB','string','Update\x20a\x20database\x20connection\x20by\x20merging\x20supplied\x20fields\x20into\x20the\x20current\x20server\x20record.\x20A\x20masked\x20server\x20password\x20requires\x20explicit\x20--password','dbdesc','username','2950213alcauK','skip-connection-test','New\x20database\x20name','bool','******','The\x20server\x20returned\x20a\x20masked\x20database\x20password.\x20Pass\x20the\x20current\x20or\x20replacement\x20password\x20explicitly\x20with\x20--password\x20to\x20update\x20this\x20connection\x20safely.','dburl','dbparam','New\x20connection\x20parameter\x20string','dbname','2945HsYSzj','password','dbDesc','--password\x20must\x20contain\x20the\x20real\x20database\x20password,\x20not\x20a\x20masked\x20value.'];a119_0x3c00=function(){return _0x248404;};return a119_0x3c00();}(function(_0x1d96d7,_0x26d715){const _0x10b2ee=a119_0x3b31,_0x1a1e7f=_0x1d96d7();while(!![]){try{const _0x2517a4=-parseInt(_0x10b2ee(0x212))/0x1*(parseInt(_0x10b2ee(0x20c))/0x2)+parseInt(_0x10b2ee(0x1ee))/0x3+parseInt(_0x10b2ee(0x1f1))/0x4+parseInt(_0x10b2ee(0x203))/0x5*(parseInt(_0x10b2ee(0x1ef))/0x6)+parseInt(_0x10b2ee(0x1f9))/0x7+parseInt(_0x10b2ee(0x20d))/0x8+-parseInt(_0x10b2ee(0x1f4))/0x9;if(_0x2517a4===_0x26d715)break;else _0x1a1e7f['push'](_0x1a1e7f['shift']());}catch(_0x52ea5d){_0x1a1e7f['push'](_0x1a1e7f['shift']());}}}(a119_0x3c00,0x50cdc));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_0x1c7e64(0x1fd),a119_0x1c7e64(0x210)]);function mergeDbLinkUpdate(_0x85b70a,_0x1a1c69){const _0x48b789=a119_0x1c7e64,_0x1e3bda={..._0x85b70a},_0x46d1da=_0x1a1c69[_0x48b789(0x20b)](_0x48b789(0x204));if(_0x46d1da&&MASKED_PASSWORD_VALUES[_0x48b789(0x208)](_0x46d1da))throw CliErrors[_0x48b789(0x207)](_0x48b789(0x206));if(!_0x46d1da&&MASKED_PASSWORD_VALUES[_0x48b789(0x208)](String(_0x85b70a[_0x48b789(0x204)]??'')))throw CliErrors[_0x48b789(0x207)](_0x48b789(0x1fe));const _0x5d2fc8=_0x1a1c69[_0x48b789(0x20b)](_0x48b789(0x202));if(_0x5d2fc8)_0x1e3bda[_0x48b789(0x215)]=_0x5d2fc8;const _0x2cd460=_0x1a1c69[_0x48b789(0x20b)]('dburl');if(_0x2cd460)_0x1e3bda['dbUrl']=_0x2cd460[_0x48b789(0x20e)]();const _0x277a30=_0x1a1c69[_0x48b789(0x20b)](_0x48b789(0x1f8));if(_0x277a30)_0x1e3bda['username']=_0x277a30;if(_0x46d1da)_0x1e3bda[_0x48b789(0x204)]=_0x46d1da;const _0x1754ad=_0x1a1c69[_0x48b789(0x20b)](_0x48b789(0x200));if(_0x1754ad)_0x1e3bda[_0x48b789(0x1f3)]=_0x1754ad;const _0x31666b=_0x1a1c69[_0x48b789(0x20b)](_0x48b789(0x1f7));if(_0x31666b)_0x1e3bda[_0x48b789(0x205)]=_0x31666b;return _0x1e3bda;}export const dbUpdate={'service':'db','command':a119_0x1c7e64(0x1f0),'description':a119_0x1c7e64(0x1f6),'risk':'write','flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a119_0x1c7e64(0x202),'type':a119_0x1c7e64(0x1f5),'description':a119_0x1c7e64(0x1fb)},{'name':a119_0x1c7e64(0x1ff),'type':'string','description':'New\x20host:port'},{'name':a119_0x1c7e64(0x1f8),'type':a119_0x1c7e64(0x1f5),'description':a119_0x1c7e64(0x214)},{'name':'password','type':'string','description':a119_0x1c7e64(0x211)},{'name':'dbparam','type':a119_0x1c7e64(0x1f5),'description':a119_0x1c7e64(0x201)},{'name':a119_0x1c7e64(0x1f7),'type':a119_0x1c7e64(0x1f5),'description':a119_0x1c7e64(0x213)},SKIP_CONNECTION_TEST_FLAG],async 'validate'(_0x247c09){const _0x309aa2=a119_0x1c7e64,_0x35f699=_0x247c09['str'](_0x309aa2(0x1ff));if(_0x35f699&&!validateDbUrl(_0x35f699[_0x309aa2(0x20e)]()))throw CliErrors['validation'](_0x309aa2(0x1f2)+_0x35f699+'\x22');},async 'dryRun'(_0xd3e27c){const _0xc478cd=a119_0x1c7e64,_0x5d2163=_0xd3e27c['num']('id'),_0x7cc4f3=await getDbLinkInfo(_0x5d2163),_0x514745=mergeDbLinkUpdate(_0x7cc4f3,_0xd3e27c),_0x4b1559=sanitizeDbLinkForOutput(_0x514745);return{'method':_0xc478cd(0x20a),'url':'/smartapi/dblink/update','body':_0x4b1559,'description':_0xc478cd(0x20f),'connectionPreflight':{'enabled':!_0xd3e27c[_0xc478cd(0x1fc)](_0xc478cd(0x1fa)),'executed':![]}};},async 'execute'(_0x57a3c0){const _0x20ba34=a119_0x1c7e64,_0x142412=_0x57a3c0[_0x20ba34(0x209)]('id'),_0x58d584=await getDbLinkInfo(_0x142412),_0x3c1e01=mergeDbLinkUpdate(_0x58d584,_0x57a3c0);!_0x57a3c0['bool']('skip-connection-test')&&await assertDbLinkConnectionPreflight(_0x3c1e01);const {id:_0x5a9faf,entity:_0x492622}=normalizeEntityWithIdResponse(await updateDbLink(_0x3c1e01));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x492622),'message':'Updated\x20db\x20link\x20'+(_0x5a9faf??_0x142412)};}};
@@ -1 +1 @@
1
- (function(_0x576d1f,_0x43e510){const _0x32b019=a120_0x4904,_0x2db801=_0x576d1f();while(!![]){try{const _0x3b986d=-parseInt(_0x32b019(0x86))/0x1*(parseInt(_0x32b019(0x82))/0x2)+-parseInt(_0x32b019(0x84))/0x3+parseInt(_0x32b019(0x8a))/0x4+-parseInt(_0x32b019(0x85))/0x5*(-parseInt(_0x32b019(0x83))/0x6)+parseInt(_0x32b019(0x81))/0x7+parseInt(_0x32b019(0x87))/0x8*(-parseInt(_0x32b019(0x88))/0x9)+parseInt(_0x32b019(0x89))/0xa;if(_0x3b986d===_0x43e510)break;else _0x2db801['push'](_0x2db801['shift']());}catch(_0x25337d){_0x2db801['push'](_0x2db801['shift']());}}}(a120_0x32d5,0x64208));import{deploymentSyncAll}from'../../commands/deployment/sync-all.js';function a120_0x32d5(){const _0x5b94d1=['8912710QWHdUH','765928ISBNEz','2138878huaSLM','82sTkxcn','6VTKoSU','1901391eASIli','1905835btLLHz','10561HpfnQV','19184KpgVyR','1098bcAlPj'];a120_0x32d5=function(){return _0x5b94d1;};return a120_0x32d5();}import{deploymentSyncStatus}from'../../commands/deployment/sync-status.js';function a120_0x4904(_0x60ae38,_0x3928e7){_0x60ae38=_0x60ae38-0x81;const _0x32d5ef=a120_0x32d5();let _0x4904fa=_0x32d5ef[_0x60ae38];return _0x4904fa;}import{deploymentSyncJobs}from'../../commands/deployment/sync-jobs.js';export const deploymentDefinitions=[deploymentSyncAll,deploymentSyncStatus,deploymentSyncJobs];
1
+ (function(_0x579c95,_0xdb2b5b){const _0x3bbd39=a120_0x4df3,_0x94062a=_0x579c95();while(!![]){try{const _0x3b3619=-parseInt(_0x3bbd39(0x18b))/0x1+-parseInt(_0x3bbd39(0x18c))/0x2*(parseInt(_0x3bbd39(0x18f))/0x3)+parseInt(_0x3bbd39(0x190))/0x4+parseInt(_0x3bbd39(0x18a))/0x5*(parseInt(_0x3bbd39(0x189))/0x6)+-parseInt(_0x3bbd39(0x191))/0x7+parseInt(_0x3bbd39(0x188))/0x8+-parseInt(_0x3bbd39(0x18d))/0x9*(-parseInt(_0x3bbd39(0x18e))/0xa);if(_0x3b3619===_0xdb2b5b)break;else _0x94062a['push'](_0x94062a['shift']());}catch(_0x443f6c){_0x94062a['push'](_0x94062a['shift']());}}}(a120_0x1644,0x54560));function a120_0x1644(){const _0x6372c=['3287584CjnQbA','5508TnNZGU','955vbtOHB','92022iitZAY','2tGREjC','126KaqSCe','464620xFHHyb','1642452BGOQgW','1495864ETBqgK','4380418bzwZYp'];a120_0x1644=function(){return _0x6372c;};return a120_0x1644();}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_0x4df3(_0x122c3d,_0x1294a6){_0x122c3d=_0x122c3d-0x188;const _0x1644d4=a120_0x1644();let _0x4df379=_0x1644d4[_0x122c3d];return _0x4df379;}export const deploymentDefinitions=[deploymentSyncAll,deploymentSyncStatus,deploymentSyncJobs];
@@ -1 +1 @@
1
- const a121_0x4cc3a6=a121_0x5a29;function a121_0x4e17(){const _0x144eec=['outcome','job','Run\x20with\x20--dry-run\x20first,\x20then\x20add\x20--confirm.','confirm','Deployment\x20sync\x20submission\x20response\x20was\x20unavailable;\x20job\x20creation\x20is\x20unknown.','6WccARt','Backfill\x20or\x20recover\x20all\x20server-supported\x20application\x20metadata','3942384XCcaca','status','5350uqESyA','List\x20recent\x20deployment\x20sync\x20jobs\x20before\x20deciding\x20whether\x20to\x20submit\x20again.','9LDAWGB','unknown','--confirm\x20is\x20required\x20to\x20synchronize\x20all\x20application\x20metadata.','/smartapi/data-sync/submit','3398345trfTae','jobId','validation','Submitted\x20deployment\x20synchronization\x20job\x20','Submit\x20an\x20administrative\x20metadata\x20backfill\x20or\x20recovery\x20synchronization.','write','2603208okRAye','32845986KZJKuj','deployment','not_submitted','Confirm\x20the\x20administrative\x20backfill\x20or\x20recovery\x20synchronization','appCode','POST','application_deployment_sync','not_needed','1653591nGWmEa','defineProperty','No\x20deployment\x20synchronization\x20was\x20needed\x20for\x20this\x20app.','2350348siYyGs'];a121_0x4e17=function(){return _0x144eec;};return a121_0x4e17();}(function(_0x15ae4c,_0x513a56){const _0x10ff91=a121_0x5a29,_0x2e1ca4=_0x15ae4c();while(!![]){try{const _0xeb0887=parseInt(_0x10ff91(0xd8))/0x1*(-parseInt(_0x10ff91(0xd6))/0x2)+-parseInt(_0x10ff91(0xeb))/0x3+-parseInt(_0x10ff91(0xd4))/0x4+-parseInt(_0x10ff91(0xdc))/0x5*(parseInt(_0x10ff91(0xd2))/0x6)+-parseInt(_0x10ff91(0xcc))/0x7+-parseInt(_0x10ff91(0xe2))/0x8+parseInt(_0x10ff91(0xe3))/0x9;if(_0xeb0887===_0x513a56)break;else _0x2e1ca4['push'](_0x2e1ca4['shift']());}catch(_0x58f47c){_0x2e1ca4['push'](_0x2e1ca4['shift']());}}}(a121_0x4e17,0xb694c));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{asDryRunResult}from'../../commands/common/dry-run.js';import{isPlatformTransportFailure,submitDeploymentMetadataSyncAll}from'../../core/api-client.js';import{CliError,CliErrors}from'../../errors.js';function a121_0x5a29(_0x266dad,_0x21ca4f){_0x266dad=_0x266dad-0xcc;const _0x4e17a7=a121_0x4e17();let _0x5a298f=_0x4e17a7[_0x266dad];return _0x5a298f;}const SUBMIT_PATH=a121_0x4cc3a6(0xdb),CONFIRM_FLAG={'name':'confirm','type':'boolean','description':a121_0x4cc3a6(0xe6)};export const deploymentSyncAll={'service':a121_0x4cc3a6(0xe4),'command':'sync-all','description':a121_0x4cc3a6(0xd3),'risk':a121_0x4cc3a6(0xe1),'strictFlags':!![],'structuredErrors':!![],'confirmationDescription':a121_0x4cc3a6(0xe0),'flags':[CONFIRM_FLAG,APPCODE_FLAG_OPTIONAL],async 'dryRun'(_0x5d6daa){const _0x4fef00=a121_0x4cc3a6;return asDryRunResult(buildPreview(_0x5d6daa[_0x4fef00(0xe7)]),{'method':_0x4fef00(0xe8),'url':SUBMIT_PATH,'description':'Would\x20submit\x20an\x20administrative\x20deployment\x20metadata\x20backfill\x20or\x20recovery\x20job.'});},async 'execute'(_0x4940ab){const _0x9f4022=a121_0x4cc3a6;if(!_0x4940ab['bool'](_0x9f4022(0xd0)))throw CliErrors[_0x9f4022(0xde)](_0x9f4022(0xda),_0x9f4022(0xcf));try{const _0x3e8b08=await submitDeploymentMetadataSyncAll({'appCode':_0x4940ab[_0x9f4022(0xe7)]});if(_0x3e8b08[_0x9f4022(0xcd)]===_0x9f4022(0xea))return{'ok':!![],'data':{'operation':_0x9f4022(0xe9),'appCode':_0x4940ab[_0x9f4022(0xe7)],'submitted':![],'outcome':_0x9f4022(0xea)},'message':_0x9f4022(0xed)};return{'ok':!![],'data':{'operation':_0x9f4022(0xe9),'appCode':_0x4940ab[_0x9f4022(0xe7)],'submitted':!![],'outcome':'submitted','jobId':_0x3e8b08[_0x9f4022(0xce)][_0x9f4022(0xdd)],'status':_0x3e8b08[_0x9f4022(0xce)][_0x9f4022(0xd5)]},'message':_0x9f4022(0xdf)+_0x3e8b08[_0x9f4022(0xce)][_0x9f4022(0xdd)]+'.'};}catch(_0x398187){if(!isPlatformTransportFailure(_0x398187))throw _0x398187;const _0x476988=new CliError('deployment_sync_submit_outcome_unknown',0x2,_0x9f4022(0xd1),_0x9f4022(0xd7));Object[_0x9f4022(0xec)](_0x476988,'data',{'enumerable':!![],'value':{'operation':_0x9f4022(0xe9),'appCode':_0x4940ab['appCode'],'submitted':null,'outcome':_0x9f4022(0xd9)}});throw _0x476988;}}};function buildPreview(_0x37d49b){const _0x1464ef=a121_0x4cc3a6;return{'operation':_0x1464ef(0xe9),'selector':{'appCode':_0x37d49b,'scope':'all_server_supported_metadata'},'before':null,'after':null,'dryRun':!![],'backend':{'submitted':![],'outcome':_0x1464ef(0xe5)},'warnings':[]};}
1
+ function a121_0x3a54(_0x3d541f,_0x25b3e6){_0x3d541f=_0x3d541f-0x16f;const _0x15b7f6=a121_0x15b7();let _0x3a543b=_0x15b7f6[_0x3d541f];return _0x3a543b;}function a121_0x15b7(){const _0x57b800=['List\x20recent\x20deployment\x20sync\x20jobs\x20before\x20deciding\x20whether\x20to\x20submit\x20again.','292280GRnqDV','validation','unknown','deployment','outcome','application_deployment_sync','boolean','Backfill\x20or\x20recover\x20all\x20server-supported\x20application\x20metadata','6MaqBen','1662960GLFvtC','Deployment\x20sync\x20submission\x20response\x20was\x20unavailable;\x20job\x20creation\x20is\x20unknown.','Confirm\x20the\x20administrative\x20backfill\x20or\x20recovery\x20synchronization','No\x20deployment\x20synchronization\x20was\x20needed\x20for\x20this\x20app.','appCode','--confirm\x20is\x20required\x20to\x20synchronize\x20all\x20application\x20metadata.','submitted','defineProperty','4501690RfoooR','6002570QGAaxf','not_submitted','status','data','Would\x20submit\x20an\x20administrative\x20deployment\x20metadata\x20backfill\x20or\x20recovery\x20job.','Submitted\x20deployment\x20synchronization\x20job\x20','deployment_sync_submit_outcome_unknown','3019920fXgGUz','Run\x20with\x20--dry-run\x20first,\x20then\x20add\x20--confirm.','808490iZhQot','confirm','not_needed','12910600FjeWin','job','POST'];a121_0x15b7=function(){return _0x57b800;};return a121_0x15b7();}const a121_0x23cf25=a121_0x3a54;(function(_0x38c2ee,_0x3b5460){const _0x2d18ef=a121_0x3a54,_0x3e3575=_0x38c2ee();while(!![]){try{const _0x2a458c=parseInt(_0x2d18ef(0x182))/0x1+-parseInt(_0x2d18ef(0x189))/0x2+parseInt(_0x2d18ef(0x170))/0x3+-parseInt(_0x2d18ef(0x180))/0x4+parseInt(_0x2d18ef(0x178))/0x5+parseInt(_0x2d18ef(0x16f))/0x6*(parseInt(_0x2d18ef(0x179))/0x7)+-parseInt(_0x2d18ef(0x185))/0x8;if(_0x2a458c===_0x3b5460)break;else _0x3e3575['push'](_0x3e3575['shift']());}catch(_0x1a5906){_0x3e3575['push'](_0x3e3575['shift']());}}}(a121_0x15b7,0x93e11));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{asDryRunResult}from'../../commands/common/dry-run.js';import{isPlatformTransportFailure,submitDeploymentMetadataSyncAll}from'../../core/api-client.js';import{CliError,CliErrors}from'../../errors.js';const SUBMIT_PATH='/smartapi/data-sync/submit',CONFIRM_FLAG={'name':a121_0x23cf25(0x183),'type':a121_0x23cf25(0x18f),'description':a121_0x23cf25(0x172)};export const deploymentSyncAll={'service':a121_0x23cf25(0x18c),'command':'sync-all','description':a121_0x23cf25(0x190),'risk':'write','strictFlags':!![],'structuredErrors':!![],'confirmationDescription':'Submit\x20an\x20administrative\x20metadata\x20backfill\x20or\x20recovery\x20synchronization.','flags':[CONFIRM_FLAG,APPCODE_FLAG_OPTIONAL],async 'dryRun'(_0x125b20){const _0x49c5c3=a121_0x23cf25;return asDryRunResult(buildPreview(_0x125b20[_0x49c5c3(0x174)]),{'method':_0x49c5c3(0x187),'url':SUBMIT_PATH,'description':_0x49c5c3(0x17d)});},async 'execute'(_0x2d5620){const _0x54a490=a121_0x23cf25;if(!_0x2d5620['bool'](_0x54a490(0x183)))throw CliErrors[_0x54a490(0x18a)](_0x54a490(0x175),_0x54a490(0x181));try{const _0x517c8b=await submitDeploymentMetadataSyncAll({'appCode':_0x2d5620['appCode']});if(_0x517c8b[_0x54a490(0x18d)]==='not_needed')return{'ok':!![],'data':{'operation':'application_deployment_sync','appCode':_0x2d5620['appCode'],'submitted':![],'outcome':_0x54a490(0x184)},'message':_0x54a490(0x173)};return{'ok':!![],'data':{'operation':_0x54a490(0x18e),'appCode':_0x2d5620['appCode'],'submitted':!![],'outcome':_0x54a490(0x176),'jobId':_0x517c8b[_0x54a490(0x186)]['jobId'],'status':_0x517c8b[_0x54a490(0x186)][_0x54a490(0x17b)]},'message':_0x54a490(0x17e)+_0x517c8b[_0x54a490(0x186)]['jobId']+'.'};}catch(_0x373132){if(!isPlatformTransportFailure(_0x373132))throw _0x373132;const _0x79ffca=new CliError(_0x54a490(0x17f),0x2,_0x54a490(0x171),_0x54a490(0x188));Object[_0x54a490(0x177)](_0x79ffca,_0x54a490(0x17c),{'enumerable':!![],'value':{'operation':_0x54a490(0x18e),'appCode':_0x2d5620[_0x54a490(0x174)],'submitted':null,'outcome':_0x54a490(0x18b)}});throw _0x79ffca;}}};function buildPreview(_0x4d210b){const _0x5eca27=a121_0x23cf25;return{'operation':_0x5eca27(0x18e),'selector':{'appCode':_0x4d210b,'scope':'all_server_supported_metadata'},'before':null,'after':null,'dryRun':!![],'backend':{'submitted':![],'outcome':_0x5eca27(0x17a)},'warnings':[]};}
@@ -1 +1 @@
1
- const a122_0x2f33c2=a122_0x2cb2;function a122_0x2cb2(_0x7e4518,_0x1e3b93){_0x7e4518=_0x7e4518-0x136;const _0x3118ff=a122_0x3118();let _0x2cb201=_0x3118ff[_0x7e4518];return _0x2cb201;}(function(_0x407087,_0x3d5f66){const _0x2a4abd=a122_0x2cb2,_0x1409c9=_0x407087();while(!![]){try{const _0x5a8f1f=parseInt(_0x2a4abd(0x155))/0x1*(parseInt(_0x2a4abd(0x146))/0x2)+-parseInt(_0x2a4abd(0x150))/0x3*(-parseInt(_0x2a4abd(0x143))/0x4)+parseInt(_0x2a4abd(0x14d))/0x5+-parseInt(_0x2a4abd(0x13c))/0x6*(-parseInt(_0x2a4abd(0x13f))/0x7)+-parseInt(_0x2a4abd(0x144))/0x8*(-parseInt(_0x2a4abd(0x145))/0x9)+parseInt(_0x2a4abd(0x147))/0xa+-parseInt(_0x2a4abd(0x14a))/0xb;if(_0x5a8f1f===_0x3d5f66)break;else _0x1409c9['push'](_0x1409c9['shift']());}catch(_0x382661){_0x1409c9['push'](_0x1409c9['shift']());}}}(a122_0x3118,0x2f4ec));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{listDeploymentMetadataSyncJobs}from'../../core/api-client.js';function a122_0x3118(){const _0x4dd1e8=['num','str','--page-size\x20must\x20be\x20an\x20integer\x20from\x201\x20to\x20100.','16WPkbEg','264zYflnK','60093gBthvU','112134DQvYoS','3773470gsnExY','List\x20application\x20deployment\x20synchronization\x20jobs','length','14143811RbcqRf','appCode','string','1727355TyFCPh','Found\x20','validation','267594jbznEW','sync-jobs','\x20deployment\x20synchronization\x20job(s).','page-size','status','2uQvpqh','--current-page\x20must\x20be\x20a\x20positive\x20integer.','number','trim','items','Items\x20per\x20page\x20(maximum\x20100)','read','Page\x20number','4218IkqFRZ','current-page','isSafeInteger','672FMOLXI'];a122_0x3118=function(){return _0x4dd1e8;};return a122_0x3118();}import{CliErrors}from'../../errors.js';export const deploymentSyncJobs={'service':'deployment','command':a122_0x2f33c2(0x151),'description':a122_0x2f33c2(0x148),'risk':a122_0x2f33c2(0x13a),'strictFlags':!![],'structuredErrors':!![],'flags':[{'name':'current-page','type':a122_0x2f33c2(0x136),'default':0x1,'description':a122_0x2f33c2(0x13b)},{'name':a122_0x2f33c2(0x153),'type':a122_0x2f33c2(0x136),'default':0xa,'description':a122_0x2f33c2(0x139)},{'name':'status','type':a122_0x2f33c2(0x14c),'description':'Optional\x20server-defined\x20job\x20status\x20filter'},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x386d8f){const _0x2df2c7=a122_0x2f33c2;readPaging(_0x386d8f['num'](_0x2df2c7(0x13d),0x1),_0x386d8f[_0x2df2c7(0x140)](_0x2df2c7(0x153),0xa));},async 'execute'(_0x41c34b){const _0xb0967f=a122_0x2f33c2,{currentPage:_0x442c4e,pageSize:_0x31ea33}=readPaging(_0x41c34b[_0xb0967f(0x140)](_0xb0967f(0x13d),0x1),_0x41c34b['num'](_0xb0967f(0x153),0xa)),_0x53ea74=_0x41c34b[_0xb0967f(0x141)](_0xb0967f(0x154))[_0xb0967f(0x137)](),_0x3480a4=await listDeploymentMetadataSyncJobs({'appCode':_0x41c34b['appCode'],'currentPage':_0x442c4e,'pageSize':_0x31ea33,..._0x53ea74?{'status':_0x53ea74}:{}});return{'ok':!![],'data':{'appCode':_0x41c34b[_0xb0967f(0x14b)],..._0x3480a4},'message':_0xb0967f(0x14e)+_0x3480a4[_0xb0967f(0x138)][_0xb0967f(0x149)]+_0xb0967f(0x152)};}};function readPaging(_0x46bfef,_0x4254d6){const _0x2cdf18=a122_0x2f33c2;if(!Number[_0x2cdf18(0x13e)](_0x46bfef)||_0x46bfef<0x1)throw CliErrors['validation'](_0x2cdf18(0x156));if(!Number['isSafeInteger'](_0x4254d6)||_0x4254d6<0x1||_0x4254d6>0x64)throw CliErrors[_0x2cdf18(0x14f)](_0x2cdf18(0x142));return{'currentPage':_0x46bfef,'pageSize':_0x4254d6};}
1
+ const a122_0x47b5ee=a122_0x1bf6;(function(_0x188812,_0x34b100){const _0x5e3cbd=a122_0x1bf6,_0x5eb102=_0x188812();while(!![]){try{const _0x197713=-parseInt(_0x5e3cbd(0x17b))/0x1+-parseInt(_0x5e3cbd(0x180))/0x2+-parseInt(_0x5e3cbd(0x16b))/0x3*(parseInt(_0x5e3cbd(0x183))/0x4)+parseInt(_0x5e3cbd(0x177))/0x5*(-parseInt(_0x5e3cbd(0x17a))/0x6)+-parseInt(_0x5e3cbd(0x17d))/0x7+-parseInt(_0x5e3cbd(0x181))/0x8+parseInt(_0x5e3cbd(0x186))/0x9*(parseInt(_0x5e3cbd(0x16a))/0xa);if(_0x197713===_0x34b100)break;else _0x5eb102['push'](_0x5eb102['shift']());}catch(_0xe7c8b7){_0x5eb102['push'](_0x5eb102['shift']());}}}(a122_0x3801,0xc2b79));function a122_0x1bf6(_0x11233b,_0x21b739){_0x11233b=_0x11233b-0x169;const _0x38014a=a122_0x3801();let _0x1bf649=_0x38014a[_0x11233b];return _0x1bf649;}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_0x47b5ee(0x174),'command':a122_0x47b5ee(0x184),'description':a122_0x47b5ee(0x17f),'risk':'read','strictFlags':!![],'structuredErrors':!![],'flags':[{'name':a122_0x47b5ee(0x17c),'type':a122_0x47b5ee(0x179),'default':0x1,'description':a122_0x47b5ee(0x17e)},{'name':a122_0x47b5ee(0x16c),'type':'number','default':0xa,'description':a122_0x47b5ee(0x170)},{'name':'status','type':a122_0x47b5ee(0x172),'description':a122_0x47b5ee(0x171)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x41d784){const _0xf28ecb=a122_0x47b5ee;readPaging(_0x41d784['num'](_0xf28ecb(0x17c),0x1),_0x41d784[_0xf28ecb(0x173)]('page-size',0xa));},async 'execute'(_0x5b96d3){const _0x52a2b5=a122_0x47b5ee,{currentPage:_0x1b9e8c,pageSize:_0x202b3}=readPaging(_0x5b96d3[_0x52a2b5(0x173)]('current-page',0x1),_0x5b96d3['num']('page-size',0xa)),_0x280819=_0x5b96d3['str'](_0x52a2b5(0x182))[_0x52a2b5(0x16e)](),_0x21df1f=await listDeploymentMetadataSyncJobs({'appCode':_0x5b96d3[_0x52a2b5(0x169)],'currentPage':_0x1b9e8c,'pageSize':_0x202b3,..._0x280819?{'status':_0x280819}:{}});return{'ok':!![],'data':{'appCode':_0x5b96d3['appCode'],..._0x21df1f},'message':_0x52a2b5(0x187)+_0x21df1f[_0x52a2b5(0x178)]['length']+_0x52a2b5(0x175)};}};function a122_0x3801(){const _0x2fc34d=['page-size','--page-size\x20must\x20be\x20an\x20integer\x20from\x201\x20to\x20100.','trim','isSafeInteger','Items\x20per\x20page\x20(maximum\x20100)','Optional\x20server-defined\x20job\x20status\x20filter','string','num','deployment','\x20deployment\x20synchronization\x20job(s).','--current-page\x20must\x20be\x20a\x20positive\x20integer.','5ghnnzV','items','number','2166636NOPsQf','1274799xIbpab','current-page','1610840TEtwUB','Page\x20number','List\x20application\x20deployment\x20synchronization\x20jobs','908796SSqdEt','5944792Cbjyjm','status','68948UTYEVY','sync-jobs','validation','2126232OPUwJJ','Found\x20','appCode','170JqiuUk','27vjjdGV'];a122_0x3801=function(){return _0x2fc34d;};return a122_0x3801();}function readPaging(_0x1ab4d4,_0x2263c2){const _0x278cd2=a122_0x47b5ee;if(!Number[_0x278cd2(0x16f)](_0x1ab4d4)||_0x1ab4d4<0x1)throw CliErrors[_0x278cd2(0x185)](_0x278cd2(0x176));if(!Number[_0x278cd2(0x16f)](_0x2263c2)||_0x2263c2<0x1||_0x2263c2>0x64)throw CliErrors[_0x278cd2(0x185)](_0x278cd2(0x16d));return{'currentPage':_0x1ab4d4,'pageSize':_0x2263c2};}
@@ -1 +1 @@
1
- const a123_0x1e01bf=a123_0x2a9b;(function(_0x3e2f73,_0x3f6585){const _0x59e206=a123_0x2a9b,_0x2665c9=_0x3e2f73();while(!![]){try{const _0x45de97=parseInt(_0x59e206(0x161))/0x1*(parseInt(_0x59e206(0x16b))/0x2)+parseInt(_0x59e206(0x15e))/0x3+parseInt(_0x59e206(0x159))/0x4+parseInt(_0x59e206(0x148))/0x5*(-parseInt(_0x59e206(0x163))/0x6)+-parseInt(_0x59e206(0x155))/0x7+-parseInt(_0x59e206(0x150))/0x8+-parseInt(_0x59e206(0x15a))/0x9;if(_0x45de97===_0x3f6585)break;else _0x2665c9['push'](_0x2665c9['shift']());}catch(_0x5ada06){_0x2665c9['push'](_0x2665c9['shift']());}}}(a123_0x42c7,0xa8d90));function a123_0x2a9b(_0x405e4a,_0x463c26){_0x405e4a=_0x405e4a-0x147;const _0x42c71a=a123_0x42c7();let _0x2a9b78=_0x42c71a[_0x405e4a];return _0x2a9b78;}import{getDeploymentMetadataSyncStatus}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const TERMINAL_STATUSES=new Set([a123_0x1e01bf(0x147),a123_0x1e01bf(0x169),a123_0x1e01bf(0x14c)]),ACTIVE_STATUSES=new Set([a123_0x1e01bf(0x15d),a123_0x1e01bf(0x156)]);export const deploymentSyncStatus={'service':a123_0x1e01bf(0x165),'command':a123_0x1e01bf(0x14d),'description':a123_0x1e01bf(0x15c),'risk':a123_0x1e01bf(0x158),'requiresAppCode':!![],'strictFlags':!![],'structuredErrors':!![],'flags':[{'name':'job-id','type':a123_0x1e01bf(0x160),'required':!![],'description':a123_0x1e01bf(0x14a)}],async 'validate'(_0x1ca35e){const _0x5c8a00=a123_0x1e01bf;readJobId(_0x1ca35e[_0x5c8a00(0x162)](_0x5c8a00(0x14f)));},async 'execute'(_0x43c543){const _0x55379a=a123_0x1e01bf,_0xecf764=readJobId(_0x43c543[_0x55379a(0x162)](_0x55379a(0x14f))),_0x755ee4=await getDeploymentMetadataSyncStatus({'jobId':_0xecf764,'appCode':_0x43c543[_0x55379a(0x153)]}),_0x5a4afe=TERMINAL_STATUSES[_0x55379a(0x15f)](_0x755ee4[_0x55379a(0x16a)])?!![]:ACTIVE_STATUSES[_0x55379a(0x15f)](_0x755ee4[_0x55379a(0x16a)])?![]:null,_0x409d01=countBy(_0x755ee4[_0x55379a(0x167)]['map'](_0xa44518=>_0xa44518[_0x55379a(0x154)])),_0x2b1136=countBy(_0x755ee4[_0x55379a(0x167)]['map'](_0x395a53=>_0x395a53[_0x55379a(0x152)])),_0xae8d05=_0x5a4afe===null?[_0x55379a(0x166)+_0x755ee4[_0x55379a(0x16a)]+_0x55379a(0x14b)]:[];return{'ok':!![],'data':{'job':_0x755ee4,'isTerminal':_0x5a4afe,'summary':{'total':_0x755ee4[_0x55379a(0x167)][_0x55379a(0x14e)],'failed':_0x755ee4[_0x55379a(0x167)][_0x55379a(0x164)](_0x3ca9ad=>_0x3ca9ad[_0x55379a(0x152)]===_0x55379a(0x14c))[_0x55379a(0x14e)],'byBizType':_0x409d01,'byAction':_0x2b1136},'warnings':_0xae8d05},'message':_0x55379a(0x15b)+_0xecf764+_0x55379a(0x157)+_0x755ee4[_0x55379a(0x16a)]+'.'};}};function a123_0x42c7(){const _0x4a9373=['reduce','PARTIAL_SUCCESS','status','422iOipQl','SUCCESS','534685hOtslc','isSafeInteger','Deployment\x20synchronization\x20job\x20ID',';\x20terminal\x20state\x20is\x20unknown\x20to\x20this\x20CLI\x20version.','FAILED','sync-status','length','job-id','1068392VTQLij','--job-id\x20must\x20be\x20a\x20positive\x20integer.','action','appCode','bizType','5180007fUezEV','RUNNING','\x20is\x20','read','2452244YhNFKZ','4132620oiDRRi','Deployment\x20synchronization\x20job\x20','Get\x20application\x20deployment\x20synchronization\x20job\x20status','PENDING','2405583ITSKax','has','number','3395moBPDx','num','6KKNkzV','filter','deployment','Preserved\x20server-defined\x20status\x20','results'];a123_0x42c7=function(){return _0x4a9373;};return a123_0x42c7();}function readJobId(_0x33ed7f){const _0x3b5a43=a123_0x1e01bf;if(!Number[_0x3b5a43(0x149)](_0x33ed7f)||_0x33ed7f<=0x0)throw CliErrors['validation'](_0x3b5a43(0x151));return _0x33ed7f;}function countBy(_0xc81943){const _0x313bbd=a123_0x1e01bf;return _0xc81943[_0x313bbd(0x168)]((_0x4cff6c,_0x28a71d)=>{return _0x4cff6c[_0x28a71d]=(_0x4cff6c[_0x28a71d]??0x0)+0x1,_0x4cff6c;},{});}
1
+ const a123_0x46356e=a123_0x3867;(function(_0x2a7035,_0xfae380){const _0x4c6ef0=a123_0x3867,_0x2e449e=_0x2a7035();while(!![]){try{const _0x2df059=-parseInt(_0x4c6ef0(0x147))/0x1*(-parseInt(_0x4c6ef0(0x149))/0x2)+parseInt(_0x4c6ef0(0x12d))/0x3*(-parseInt(_0x4c6ef0(0x145))/0x4)+-parseInt(_0x4c6ef0(0x148))/0x5*(-parseInt(_0x4c6ef0(0x13c))/0x6)+parseInt(_0x4c6ef0(0x13a))/0x7*(parseInt(_0x4c6ef0(0x14a))/0x8)+parseInt(_0x4c6ef0(0x151))/0x9*(parseInt(_0x4c6ef0(0x136))/0xa)+-parseInt(_0x4c6ef0(0x13f))/0xb*(parseInt(_0x4c6ef0(0x132))/0xc)+parseInt(_0x4c6ef0(0x14f))/0xd*(-parseInt(_0x4c6ef0(0x138))/0xe);if(_0x2df059===_0xfae380)break;else _0x2e449e['push'](_0x2e449e['shift']());}catch(_0x3eb3c5){_0x2e449e['push'](_0x2e449e['shift']());}}}(a123_0x1832,0x25f14));import{getDeploymentMetadataSyncStatus}from'../../core/api-client.js';function a123_0x3867(_0x26e695,_0x505f29){_0x26e695=_0x26e695-0x12a;const _0x18322a=a123_0x1832();let _0x38674c=_0x18322a[_0x26e695];return _0x38674c;}import{CliErrors}from'../../errors.js';const TERMINAL_STATUSES=new Set([a123_0x46356e(0x12a),'PARTIAL_SUCCESS',a123_0x46356e(0x12b)]),ACTIVE_STATUSES=new Set([a123_0x46356e(0x14b),'RUNNING']);export const deploymentSyncStatus={'service':a123_0x46356e(0x12c),'command':a123_0x46356e(0x140),'description':a123_0x46356e(0x12f),'risk':a123_0x46356e(0x13e),'requiresAppCode':!![],'strictFlags':!![],'structuredErrors':!![],'flags':[{'name':a123_0x46356e(0x150),'type':a123_0x46356e(0x14e),'required':!![],'description':a123_0x46356e(0x137)}],async 'validate'(_0x4bc8d0){const _0x9097b3=a123_0x46356e;readJobId(_0x4bc8d0[_0x9097b3(0x14d)](_0x9097b3(0x150)));},async 'execute'(_0x2a65e5){const _0x3d81eb=a123_0x46356e,_0x4f765d=readJobId(_0x2a65e5[_0x3d81eb(0x14d)]('job-id')),_0x3a12fd=await getDeploymentMetadataSyncStatus({'jobId':_0x4f765d,'appCode':_0x2a65e5[_0x3d81eb(0x152)]}),_0x48495d=TERMINAL_STATUSES[_0x3d81eb(0x12e)](_0x3a12fd[_0x3d81eb(0x133)])?!![]:ACTIVE_STATUSES[_0x3d81eb(0x12e)](_0x3a12fd[_0x3d81eb(0x133)])?![]:null,_0x3ecb70=countBy(_0x3a12fd[_0x3d81eb(0x142)][_0x3d81eb(0x146)](_0x1cfa07=>_0x1cfa07['bizType'])),_0x29e9d5=countBy(_0x3a12fd[_0x3d81eb(0x142)]['map'](_0xc20e92=>_0xc20e92[_0x3d81eb(0x13b)])),_0x1fca5e=_0x48495d===null?[_0x3d81eb(0x135)+_0x3a12fd[_0x3d81eb(0x133)]+_0x3d81eb(0x130)]:[];return{'ok':!![],'data':{'job':_0x3a12fd,'isTerminal':_0x48495d,'summary':{'total':_0x3a12fd[_0x3d81eb(0x142)][_0x3d81eb(0x131)],'failed':_0x3a12fd[_0x3d81eb(0x142)][_0x3d81eb(0x14c)](_0x55bb71=>_0x55bb71[_0x3d81eb(0x13b)]===_0x3d81eb(0x12b))['length'],'byBizType':_0x3ecb70,'byAction':_0x29e9d5},'warnings':_0x1fca5e},'message':_0x3d81eb(0x134)+_0x4f765d+_0x3d81eb(0x144)+_0x3a12fd['status']+'.'};}};function a123_0x1832(){const _0x1cf71b=['Preserved\x20server-defined\x20status\x20','40NKeDXt','Deployment\x20synchronization\x20job\x20ID','14QojPHH','isSafeInteger','90552jRwCwW','action','1606050kRcWJJ','--job-id\x20must\x20be\x20a\x20positive\x20integer.','read','22frpdgz','sync-status','validation','results','reduce','\x20is\x20','32lwpoiN','map','12312zmZetX','5OdoUke','18YLmmXo','176NSQDOK','PENDING','filter','num','number','8258809givMPI','job-id','664182IsmZUh','appCode','SUCCESS','FAILED','deployment','23091voLOJv','has','Get\x20application\x20deployment\x20synchronization\x20job\x20status',';\x20terminal\x20state\x20is\x20unknown\x20to\x20this\x20CLI\x20version.','length','635916OBjyun','status','Deployment\x20synchronization\x20job\x20'];a123_0x1832=function(){return _0x1cf71b;};return a123_0x1832();}function readJobId(_0x1a2495){const _0x460201=a123_0x46356e;if(!Number[_0x460201(0x139)](_0x1a2495)||_0x1a2495<=0x0)throw CliErrors[_0x460201(0x141)](_0x460201(0x13d));return _0x1a2495;}function countBy(_0x262b72){const _0x17a8e1=a123_0x46356e;return _0x262b72[_0x17a8e1(0x143)]((_0x4c811b,_0x53b484)=>{return _0x4c811b[_0x53b484]=(_0x4c811b[_0x53b484]??0x0)+0x1,_0x4c811b;},{});}
@@ -1 +1 @@
1
- const a124_0xbee04=a124_0x4549;(function(_0x5bb196,_0x40f2a7){const _0x209d10=a124_0x4549,_0x492f7a=_0x5bb196();while(!![]){try{const _0x4c8c63=-parseInt(_0x209d10(0xbb))/0x1*(-parseInt(_0x209d10(0xc0))/0x2)+parseInt(_0x209d10(0x136))/0x3+parseInt(_0x209d10(0xf9))/0x4*(-parseInt(_0x209d10(0x12a))/0x5)+-parseInt(_0x209d10(0xe2))/0x6+-parseInt(_0x209d10(0xe1))/0x7+-parseInt(_0x209d10(0x117))/0x8+parseInt(_0x209d10(0xe7))/0x9*(parseInt(_0x209d10(0x133))/0xa);if(_0x4c8c63===_0x40f2a7)break;else _0x492f7a['push'](_0x492f7a['shift']());}catch(_0x2558ca){_0x492f7a['push'](_0x492f7a['shift']());}}}(a124_0x67a2,0xe247a));import a124_0x4353d5 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';function a124_0x4549(_0xfb9f42,_0x304339){_0xfb9f42=_0xfb9f42-0xb7;const _0x67a22f=a124_0x67a2();let _0x4549fa=_0x67a22f[_0xfb9f42];return _0x4549fa;}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(_0x316132){const _0x450609=a124_0x4549;return typeof _0x316132===_0x450609(0x137)?JSON['stringify'](_0x316132):'<'+(_0x316132===null?'null':typeof _0x316132)+'>';}async function execute(_0x16fd9e){const _0x271470=a124_0x4549,_0x17a73b=GIT_COMMIT!==_0x271470(0xd3)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME['slice'](0x0,0xa)+')':VERSION,_0x1bd11a=buildConfigFromFlags({}),_0x40bb5a=getCookie();let _0x430010;try{await initGlobalEnvironment(_0x1bd11a);}catch(_0x190d9f){_0x430010=_0x190d9f instanceof Error?_0x190d9f:new Error(String(_0x190d9f));}console[_0x271470(0xbc)](),console[_0x271470(0xbc)](a124_0x4353d5[_0x271470(0x131)](CLI_BIN_NAME+_0x271470(0xe3))),console[_0x271470(0xbc)](a124_0x4353d5['gray']('─'['repeat'](0x32))),console[_0x271470(0xbc)](_0x271470(0xd0)+_0x17a73b),console[_0x271470(0xbc)](_0x271470(0xef)+process[_0x271470(0xc4)]),console[_0x271470(0xbc)](_0x271470(0xd9)+process[_0x271470(0x130)]+'\x20'+process['arch']);const _0x3f3961=inspectBuiltinSkill();console[_0x271470(0xbc)](),console['log'](a124_0x4353d5['bold'](_0x271470(0xb7))),console[_0x271470(0xbc)](a124_0x4353d5[_0x271470(0x106)](_0x271470(0xe9)[_0x271470(0xfe)](0x1e)));const _0x1675d0=_0x3f3961[_0x271470(0xc6)]===_0x271470(0x139)?a124_0x4353d5[_0x271470(0xf8)]('✓\x20'+_0x3f3961['state']):a124_0x4353d5[_0x271470(0x108)]('✗\x20'+_0x3f3961[_0x271470(0xc6)]);console[_0x271470(0xbc)](_0x271470(0xce)+_0x1675d0),console[_0x271470(0xbc)](_0x271470(0xd4)+_0x3f3961['packageVersion']),console['log']('\x20\x20Skill\x20Version:\x20\x20\x20'+(_0x3f3961[_0x271470(0x12f)]||a124_0x4353d5['gray'](_0x271470(0xe4)))),console[_0x271470(0xbc)](_0x271470(0x149)+(_0x3f3961[_0x271470(0x10b)]||a124_0x4353d5[_0x271470(0x106)]('(not\x20found)')));if(_0x3f3961[_0x271470(0xf0)])console['log'](_0x271470(0xd1)+_0x3f3961[_0x271470(0xf0)]);_0x3f3961['state']!==_0x271470(0x139)&&console[_0x271470(0xbc)](_0x271470(0x14a)+_0x3f3961[_0x271470(0xba)]);console['log'](),console[_0x271470(0xbc)](a124_0x4353d5[_0x271470(0x131)](_0x271470(0x132))),console['log'](a124_0x4353d5['gray']('\x20\x20─'[_0x271470(0xfe)](0x1e)));const _0x383ad4=getGlobalConfigPath(),_0x30dec9=getProjectConfigPath();console[_0x271470(0xbc)](_0x271470(0xff)+(_0x383ad4||a124_0x4353d5['gray'](_0x271470(0x102)))),console[_0x271470(0xbc)](_0x271470(0xeb)+(_0x30dec9||a124_0x4353d5[_0x271470(0x106)]('(not\x20found)'))),console[_0x271470(0xbc)](),console[_0x271470(0xbc)](a124_0x4353d5[_0x271470(0x131)](_0x271470(0xf5))),console[_0x271470(0xbc)](a124_0x4353d5['gray'](_0x271470(0xe9)[_0x271470(0xfe)](0x1e)));const _0x1a345a=(_0x44d444,_0x248d91)=>{const _0x39498b=_0x271470;if(!_0x248d91){console[_0x39498b(0xbc)]('\x20\x20'+_0x44d444[_0x39498b(0xf3)](0x11)+'\x20'+a124_0x4353d5['gray'](_0x39498b(0x138)));return;}const _0x127440=inspectCliConfigJsonFile(_0x248d91);if(_0x127440[_0x39498b(0x14c)]==='ok')console['log']('\x20\x20'+_0x44d444[_0x39498b(0xf3)](0x11)+'\x20'+a124_0x4353d5[_0x39498b(0xf8)](_0x39498b(0x121)));else{if(_0x127440[_0x39498b(0x14c)]===_0x39498b(0x114))console[_0x39498b(0xbc)]('\x20\x20'+_0x44d444[_0x39498b(0xf3)](0x11)+'\x20'+a124_0x4353d5[_0x39498b(0x12c)]('⚠\x20Empty\x20(treated\x20as\x20{})'));else _0x127440[_0x39498b(0x14c)]===_0x39498b(0x11b)?console[_0x39498b(0xbc)]('\x20\x20'+_0x44d444[_0x39498b(0xf3)](0x11)+'\x20'+a124_0x4353d5[_0x39498b(0x106)](_0x39498b(0x148))):(console['log']('\x20\x20'+_0x44d444[_0x39498b(0xf3)](0x11)+'\x20'+a124_0x4353d5[_0x39498b(0x108)](_0x39498b(0xfa))),console['log']('\x20\x20'+''[_0x39498b(0xf3)](0x11)+'\x20'+a124_0x4353d5[_0x39498b(0x108)](_0x127440['message'])));}};_0x1a345a('Global',_0x383ad4),_0x1a345a('Project',_0x30dec9);const _0x168a46=loadRawConfigLayers(),_0x129cf5=[{'label':_0x271470(0xea),'value':_0x168a46[_0x271470(0x127)][_0x271470(0xc7)],'present':Object[_0x271470(0x10c)][_0x271470(0xdf)][_0x271470(0xbd)](_0x168a46[_0x271470(0x127)],_0x271470(0xc7)),'repairCommand':CLI_BIN_NAME+_0x271470(0x107)},{'label':_0x271470(0x10f),'value':_0x168a46['globalConfig'][_0x271470(0xc7)],'present':Object[_0x271470(0x10c)]['hasOwnProperty'][_0x271470(0xbd)](_0x168a46[_0x271470(0xcf)],_0x271470(0xc7)),'repairCommand':CLI_BIN_NAME+_0x271470(0xdd)}][_0x271470(0x116)](_0x3b4162=>_0x3b4162[_0x271470(0xd7)]&&isInvalidLovrabetRegion(_0x3b4162[_0x271470(0xcd)]));for(const [_0x14dbc9,_0x1877c8]of[[_0x271470(0xea),_0x168a46[_0x271470(0x127)]],[_0x271470(0x10f),_0x168a46[_0x271470(0xcf)]]]){const _0x5c391e=_0x1877c8[_0x271470(0x145)]&&typeof _0x1877c8[_0x271470(0x145)]===_0x271470(0x126)?_0x1877c8['apps']:{};for(const [_0x68c3ea,_0x1c3811]of Object['entries'](_0x5c391e)){if(!_0x1c3811||typeof _0x1c3811!==_0x271470(0x126)||!Object['prototype'][_0x271470(0xdf)]['call'](_0x1c3811,'region'))continue;isInvalidLovrabetRegion(_0x1c3811[_0x271470(0xc7)])&&_0x129cf5[_0x271470(0xfc)]({'label':_0x14dbc9+_0x271470(0x129)+_0x68c3ea+'\x22','value':_0x1c3811[_0x271470(0xc7)],'present':!![],'repairCommand':_0x271470(0x142)+_0x68c3ea+_0x271470(0x11c)+_0x14dbc9['toLowerCase']()+_0x271470(0x10d)});}}if(_0x129cf5['length']>0x0){console['log'](),console[_0x271470(0xbc)](a124_0x4353d5['bold'](_0x271470(0x11a))),console[_0x271470(0xbc)](a124_0x4353d5[_0x271470(0x106)](_0x271470(0xe9)[_0x271470(0xfe)](0x1e)));for(const _0xd7b445 of _0x129cf5){console[_0x271470(0xbc)]('\x20\x20'+_0xd7b445[_0x271470(0xf4)][_0x271470(0xf3)](0x11)+'\x20'+a124_0x4353d5[_0x271470(0x108)](_0x271470(0x147)+describeRegionValue(_0xd7b445[_0x271470(0xcd)]))),console['log']('\x20\x20'+(_0x271470(0xf7)+_0xd7b445[_0x271470(0xf4)]['toLowerCase']()+':')[_0x271470(0xf3)](0x10)+'\x20'+_0xd7b445['repairCommand']);}}const _0xfc1fed=[Object[_0x271470(0x10c)]['hasOwnProperty'][_0x271470(0xbd)](_0x168a46[_0x271470(0xcf)],'inherit')?_0x271470(0x122):null,Object['prototype']['hasOwnProperty'][_0x271470(0xbd)](_0x168a46[_0x271470(0x127)],_0x271470(0x112))?_0x271470(0x13e):null]['filter'](Boolean);_0xfc1fed[_0x271470(0xfd)]>0x0&&(console[_0x271470(0xbc)](_0x271470(0xf6)+a124_0x4353d5[_0x271470(0x12c)](_0x271470(0xe5)+_0xfc1fed['join']('\x20+\x20')+'\x20config')),_0xfc1fed[_0x271470(0xbf)](_0x271470(0x13e))&&console[_0x271470(0xbc)](_0x271470(0x12b)+CLI_BIN_NAME+_0x271470(0x115)),_0xfc1fed[_0x271470(0xbf)](_0x271470(0x122))&&console['log'](_0x271470(0xc1)+CLI_BIN_NAME+_0x271470(0xbe)));const _0x465dd6=isInvalidLovrabetRegion(_0x1bd11a[_0x271470(0x12e)]??_0x1bd11a[_0x271470(0xfb)]?.[_0x271470(0xc7)]);_0x430010&&!_0x465dd6&&(console['log'](),console[_0x271470(0xbc)](a124_0x4353d5[_0x271470(0x131)](_0x271470(0xd8))),console[_0x271470(0xbc)](a124_0x4353d5[_0x271470(0x106)](_0x271470(0xe9)[_0x271470(0xfe)](0x1e))),console[_0x271470(0xbc)](_0x271470(0x105)+a124_0x4353d5['red']('✗\x20Invalid')),console[_0x271470(0xbc)](_0x271470(0xd1)+_0x430010[_0x271470(0x12d)]),Object[_0x271470(0x10c)][_0x271470(0xdf)]['call'](_0x168a46[_0x271470(0x127)],_0x271470(0x146))&&console[_0x271470(0xbc)](_0x271470(0x110)+CLI_BIN_NAME+_0x271470(0x144)),Object[_0x271470(0x10c)][_0x271470(0xdf)]['call'](_0x168a46[_0x271470(0xcf)],_0x271470(0x146))&&console[_0x271470(0xbc)](_0x271470(0x134)+CLI_BIN_NAME+_0x271470(0x14b)));console[_0x271470(0xbc)](),console[_0x271470(0xbc)](a124_0x4353d5[_0x271470(0x131)](_0x271470(0x13c))),console[_0x271470(0xbc)](a124_0x4353d5[_0x271470(0x106)](_0x271470(0xe9)[_0x271470(0xfe)](0x1e))),console['log'](_0x271470(0xcb)+(_0x1bd11a[_0x271470(0x13d)]||a124_0x4353d5[_0x271470(0x108)](_0x271470(0x13f))));const _0x4f65bf=_0x465dd6?a124_0x4353d5[_0x271470(0x108)](describeRegionValue(_0x1bd11a[_0x271470(0x12e)]??_0x1bd11a[_0x271470(0xfb)]?.[_0x271470(0xc7)])+_0x271470(0xc2)):(_0x1bd11a[_0x271470(0xc7)]??DEFAULT_LOVRABET_REGION)+'\x20('+(_0x1bd11a['regionSource']??_0x271470(0x100))+')';console[_0x271470(0xbc)]('\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x4f65bf),console[_0x271470(0xbc)](_0x271470(0xc9)+_0x1bd11a['env']),console[_0x271470(0xbc)](_0x271470(0xb8)+_0x1bd11a[_0x271470(0x11e)]),console[_0x271470(0xbc)](_0x271470(0x109)+_0x1bd11a[_0x271470(0x13a)]),console[_0x271470(0xbc)]('\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20'+(_0x1bd11a[_0x271470(0x128)]||a124_0x4353d5['gray'](_0x271470(0x119)))),console[_0x271470(0xbc)](_0x271470(0xd2)+(_0x1bd11a['currentApp']||a124_0x4353d5[_0x271470(0x106)](_0x271470(0x119)))),console[_0x271470(0xbc)](_0x271470(0x140)+(_0x1bd11a[_0x271470(0x10a)]||a124_0x4353d5['gray'](_0x271470(0x119)))),console[_0x271470(0xbc)]('\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x1bd11a['format']||a124_0x4353d5[_0x271470(0x106)](_0x271470(0xde)+DEFAULT_CONFIG_VALUES[_0x271470(0x125)]+')'))),console[_0x271470(0xbc)](_0x271470(0xc8)+(_0x1bd11a[_0x271470(0xdb)]??a124_0x4353d5[_0x271470(0x106)](_0x271470(0x10e)))),console['log'](_0x271470(0xed)+_0x1bd11a[_0x271470(0x143)]),console[_0x271470(0xbc)]('\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x1bd11a[_0x271470(0xc5)]),console['log'](_0x271470(0xe6)+(_0x1bd11a[_0x271470(0xf1)]?a124_0x4353d5['green'](_0x271470(0x11f)+_0x1bd11a[_0x271470(0xf1)][_0x271470(0xfd)]+')'):_0x40bb5a?a124_0x4353d5[_0x271470(0xf8)](_0x271470(0x120)+_0x40bb5a[_0x271470(0xfd)]+')'):a124_0x4353d5[_0x271470(0x106)]('(none)')));const _0x2d9d67=Object['keys'](_0x1bd11a['apps']);if(_0x2d9d67['length']>0x0){console[_0x271470(0xbc)](),console['log'](a124_0x4353d5[_0x271470(0x131)](_0x271470(0xf2))),console[_0x271470(0xbc)](a124_0x4353d5[_0x271470(0x106)](_0x271470(0xe9)['repeat'](0x1e)));for(const _0x33ed0a of _0x2d9d67){const _0xcdbba=_0x1bd11a[_0x271470(0x145)][_0x33ed0a],_0x251808=_0x33ed0a===_0x1bd11a[_0x271470(0x128)],_0x5808ea=_0x33ed0a===_0x1bd11a['currentApp'],_0x91f7d8=_0x5808ea?a124_0x4353d5['green'](_0x271470(0xcc)):'',_0x45c442=_0x251808?'\x20(default)':'';console[_0x271470(0xbc)]('\x20\x20'+_0x33ed0a+_0x45c442+_0x91f7d8),console['log']('\x20\x20\x20\x20appcode:\x20\x20\x20\x20'+_0xcdbba[_0x271470(0xe8)]);const _0x17fcbc=_0x168a46[_0x271470(0x127)]['apps']&&typeof _0x168a46['projectConfig'][_0x271470(0x145)]===_0x271470(0x126)?_0x168a46['projectConfig'][_0x271470(0x145)]:{},_0x583f07=Object[_0x271470(0x10c)]['hasOwnProperty']['call'](_0x17fcbc,_0x33ed0a),_0x1601a6=isInvalidLovrabetRegion(_0xcdbba[_0x271470(0xc7)])?{'region':_0x1bd11a['region']??DEFAULT_LOVRABET_REGION}:resolveEffectiveRegion({'appRegion':_0xcdbba['region'],'projectRegion':_0x583f07?_0x168a46[_0x271470(0x127)][_0x271470(0xc7)]:undefined,'globalRegion':_0x168a46['globalConfig']['region'],'mergedRegion':_0x1bd11a[_0x271470(0xfb)][_0x271470(0xc7)],'appName':_0x33ed0a}),_0x255865=buildAppDoctorFields(_0xcdbba,{'region':_0x1601a6[_0x271470(0xc7)],'env':_0x1bd11a[_0x271470(0x104)],'apiDir':_0x1bd11a[_0x271470(0xfb)][_0x271470(0x13a)]||DEFAULT_CONFIG_VALUES[_0x271470(0x13a)],'cookie':_0x1bd11a[_0x271470(0xf1)]||_0x40bb5a||undefined,'accessKey':_0x1bd11a['accessKey']});console[_0x271470(0xbc)](_0x271470(0xec)+_0x255865[_0x271470(0xc7)][_0x271470(0xcd)]+'\x20\x20'+a124_0x4353d5['gray']('('+_0x255865[_0x271470(0xc7)][_0x271470(0x141)]+')')),console[_0x271470(0xbc)](_0x271470(0x103)+_0x255865[_0x271470(0x104)][_0x271470(0xcd)]+'\x20\x20'+a124_0x4353d5[_0x271470(0x106)]('('+_0x255865[_0x271470(0x104)][_0x271470(0x141)]+')')),console[_0x271470(0xbc)](_0x271470(0x13b)+_0x255865[_0x271470(0x13a)][_0x271470(0xcd)]+'\x20\x20'+a124_0x4353d5[_0x271470(0x106)]('('+_0x255865['apiDir'][_0x271470(0x141)]+')'));const _0x18f265=_0x255865[_0x271470(0xf1)][_0x271470(0xcd)]?a124_0x4353d5[_0x271470(0xf8)](_0x271470(0x11f)+_0x255865[_0x271470(0xf1)]['value'][_0x271470(0xfd)]+')'):a124_0x4353d5[_0x271470(0x106)](_0x271470(0x119));console[_0x271470(0xbc)](_0x271470(0xe0)+_0x18f265+'\x20\x20'+a124_0x4353d5[_0x271470(0x106)]('('+_0x255865[_0x271470(0xf1)][_0x271470(0x141)]+')'));const _0x13caee=_0x255865['accessKey'][_0x271470(0xcd)]?a124_0x4353d5[_0x271470(0xf8)](_0x271470(0x11f)+_0x255865['accessKey'][_0x271470(0xcd)][_0x271470(0xfd)]+')'):a124_0x4353d5[_0x271470(0x106)]('(none)');console[_0x271470(0xbc)]('\x20\x20\x20\x20accessKey:\x20\x20'+_0x13caee+'\x20\x20'+a124_0x4353d5[_0x271470(0x106)]('('+_0x255865[_0x271470(0x11d)][_0x271470(0x141)]+')'));}}console[_0x271470(0xbc)](),console['log'](a124_0x4353d5['bold'](_0x271470(0x113))),console['log'](a124_0x4353d5[_0x271470(0x106)]('\x20\x20─'[_0x271470(0xfe)](0x1e)));_0x430010?console[_0x271470(0xbc)](_0x271470(0x105)+a124_0x4353d5[_0x271470(0x108)](_0x271470(0xc3))):(console[_0x271470(0xbc)](_0x271470(0x101)+getActiveRegion()),console[_0x271470(0xbc)]('\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20'+getApiDomain()),console[_0x271470(0xbc)](_0x271470(0x118)+getUserDomain()),console[_0x271470(0xbc)](_0x271470(0xda)+getRuntimeDomain()),console[_0x271470(0xbc)](_0x271470(0xd5)+getSkillDomain()),console[_0x271470(0xbc)](_0x271470(0x124)+getKbDomain()),console[_0x271470(0xbc)]('\x20\x20kbServiceDomain:\x20'+(getKbServiceDomain()??_0x271470(0x123))),console[_0x271470(0xbc)](_0x271470(0xd6)+getAppDomain()));console[_0x271470(0xbc)](),console['log'](a124_0x4353d5[_0x271470(0x131)]('\x20\x20Auth')),console['log'](a124_0x4353d5[_0x271470(0x106)](_0x271470(0xe9)['repeat'](0x1e)));if(_0x430010)console['log'](_0x271470(0x105)+a124_0x4353d5[_0x271470(0x12c)](_0x271470(0xdc)));else{if(_0x40bb5a){const _0x483cd9=await getIsSessionValid();console['log'](_0x271470(0x105)+(_0x483cd9?a124_0x4353d5[_0x271470(0xf8)]('✓\x20Valid'):a124_0x4353d5[_0x271470(0x108)](_0x271470(0xee))));}else console[_0x271470(0xbc)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a124_0x4353d5[_0x271470(0x108)](_0x271470(0x135)));}return console[_0x271470(0xbc)](),{'ok':!![]};}export const doctorDefinition={'service':a124_0xbee04(0xb9),'command':a124_0xbee04(0x111),'description':'Diagnose\x20CLI\x20configuration\x20and\x20connectivity','risk':a124_0xbee04(0xca),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};function a124_0x67a2(){const _0x1fcf0a=['repeat','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','default','\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(not\x20found)','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','env','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','gray','\x20config\x20delete\x20region','red','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','explicitAppName','installedPath','prototype','\x20config','(default)','Global','\x20\x20Repair\x20project:\x20\x20','check','inherit','\x20\x20API\x20Endpoints','empty','\x20config\x20delete\x20inherit','filter','9554896UiSQvW','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','(none)','\x20\x20Country/Region\x20Configuration','missing','.region\x20to\x20cn\x20or\x20id\x20in\x20','accessKey','locale','(set,\x20length=','(set\x20via\x20file,\x20length=','✓\x20Valid\x20JSON','global','not\x20configured','\x20\x20kbDomain:\x20\x20\x20\x20\x20\x20\x20\x20','format','object','projectConfig','defaultApp','\x20app\x20\x22','251105vlqjZF','\x20\x20Repair\x20project:\x20\x20\x20','yellow','message','regionConfiguredValue','skillVersion','platform','bold','\x20\x20Config\x20Files','1380zSOzxU','\x20\x20Repair\x20global:\x20\x20\x20','✗\x20Not\x20logged\x20in','3966165tKBtfm','string','(no\x20file)','current','apiDir','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','\x20\x20Merged\x20Config','appCode','project','(not\x20set)','\x20\x20explicitAppName:\x20','source','Set\x20apps.','riskLevel','\x20config\x20delete\x20routing','apps','routing','✗\x20Invalid\x20','(missing)','\x20\x20Installed\x20Path:\x20\x20','\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20config\x20delete\x20routing\x20--global','status','\x20\x20Built-in\x20Skill','\x20\x20app\x20locale:\x20\x20\x20\x20\x20\x20','doctor','repairCommand','1LDKtMt','log','call','\x20config\x20delete\x20inherit\x20--global','includes','978254jysbBK','\x20\x20Repair\x20global:\x20\x20\x20\x20','\x20(invalid)','Unavailable\x20until\x20routing\x20configuration\x20is\x20repaired','version','verbose','state','region','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','read','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20←\x20current','value','\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','globalConfig','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','unknown','\x20\x20Package\x20Version:\x20','\x20\x20skillDomain:\x20\x20\x20\x20\x20','\x20\x20appDomain:\x20\x20\x20\x20\x20\x20\x20','present','\x20\x20Routing\x20Configuration','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20runtimeDomain:\x20\x20\x20','pageSize','Not\x20checked\x20until\x20routing\x20configuration\x20is\x20repaired','\x20config\x20delete\x20region\x20--global','(default:\x20','hasOwnProperty','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','3796849BtCOxs','4018656HeFrmm','\x20doctor','(unknown)','ignored\x20in\x20','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','200808CzvNVy','appcode','\x20\x20─','Project','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20region:\x20\x20\x20\x20\x20','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','✗\x20Expired','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','reason','cookie','\x20\x20Apps','padEnd','label','\x20\x20Config\x20JSON','\x20\x20Legacy\x20inherit:\x20\x20\x20','Repair\x20','green','124bxFynb','✗\x20Invalid\x20JSON','raw','push','length'];a124_0x67a2=function(){return _0x1fcf0a;};return a124_0x67a2();}
1
+ const a124_0x375dde=a124_0x3a61;(function(_0x2b5509,_0x326378){const _0x29013b=a124_0x3a61,_0x166e34=_0x2b5509();while(!![]){try{const _0x3bafdf=parseInt(_0x29013b(0x146))/0x1*(-parseInt(_0x29013b(0x126))/0x2)+parseInt(_0x29013b(0x156))/0x3*(-parseInt(_0x29013b(0x177))/0x4)+parseInt(_0x29013b(0x12c))/0x5*(-parseInt(_0x29013b(0x142))/0x6)+parseInt(_0x29013b(0x121))/0x7+-parseInt(_0x29013b(0x134))/0x8*(parseInt(_0x29013b(0x153))/0x9)+-parseInt(_0x29013b(0x176))/0xa+parseInt(_0x29013b(0x15d))/0xb;if(_0x3bafdf===_0x326378)break;else _0x166e34['push'](_0x166e34['shift']());}catch(_0xf6dd76){_0x166e34['push'](_0x166e34['shift']());}}}(a124_0x38d3,0x682ae));import a124_0x1d70e0 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';function a124_0x38d3(){const _0x31a549=['✗\x20Invalid','\x20\x20runtimeDomain:\x20\x20\x20','✗\x20Not\x20logged\x20in','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','\x20\x20kbServiceDomain:\x20','status','doctor','red','installedPath','inherit','\x20←\x20current','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','padEnd','\x20\x20Country/Region\x20Configuration','label','appcode','\x20\x20─','version','Global','message','✓\x20Valid\x20JSON','check','\x20\x20Config\x20Files','green','env','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','global','\x20\x20Package\x20Version:\x20','\x20\x20Merged\x20Config','object','not\x20configured','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','format','routing','hasOwnProperty','\x20\x20Repair\x20project:\x20\x20\x20','regionConfiguredValue','(set,\x20length=','prototype','empty','4617389mnvByX','explicitAppName','\x20\x20Legacy\x20inherit:\x20\x20\x20','reason','stringify','392684PrFJvF','project','\x20\x20kbDomain:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Repair\x20project:\x20\x20','missing','filter','15QmMcxN','(none)','\x20\x20Skill\x20Version:\x20\x20\x20','current','length','includes','defaultApp','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','3214816dPJLjf','log','push','raw','state','platform','yellow','\x20(invalid)','\x20\x20Apps','slice','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','apiDir','\x20doctor','\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','14424bqTlQt','cookie','Project','\x20\x20\x20\x20region:\x20\x20\x20\x20\x20','1mmROpe','repeat','\x20\x20Repair\x20global:\x20\x20\x20','Repair\x20','\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','regionSource','.region\x20to\x20cn\x20or\x20id\x20in\x20','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','\x20\x20explicitAppName:\x20','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','present','\x20config\x20delete\x20region\x20--global','9cTWnaB','verbose','✗\x20Expired','631887xLgLRI','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','globalConfig','null','apps','ignored\x20in\x20','source','9141055xKNcAO','region','(not\x20set)','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','✗\x20Invalid\x20','repairCommand','bold','arch','gray','join','default','currentApp','\x20config\x20delete\x20routing','(not\x20found)','\x20app\x20\x22','(no\x20file)','\x20\x20Built-in\x20Skill','projectConfig','toLowerCase','\x20\x20app\x20locale:\x20\x20\x20\x20\x20\x20','(unknown)','\x20\x20Config\x20JSON','\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','372980vkYiyG','8RhLvOV','value','\x20\x20Repair\x20global:\x20\x20\x20\x20','\x20\x20\x20\x20accessKey:\x20\x20','accessKey','call','\x20\x20Auth','(missing)','skillVersion','\x20(default)','entries','\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','✗\x20Invalid\x20JSON','\x20\x20Installed\x20Path:\x20\x20','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20'];a124_0x38d3=function(){return _0x31a549;};return a124_0x38d3();}import{getActiveRegion,getApiDomain,getAppDomain,getKbDomain,getKbServiceDomain,getSkillDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags,initGlobalEnvironment,inspectCliConfigJsonFile,loadRawConfigLayers}from'../context.js';function a124_0x3a61(_0x40c312,_0x2f4b27){_0x40c312=_0x40c312-0xef;const _0x38d321=a124_0x38d3();let _0x3a61df=_0x38d321[_0x40c312];return _0x3a61df;}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(_0x3d1cc0){const _0x595662=a124_0x3a61;return typeof _0x3d1cc0==='string'?JSON[_0x595662(0x125)](_0x3d1cc0):'<'+(_0x3d1cc0===null?_0x595662(0x159):typeof _0x3d1cc0)+'>';}async function execute(_0x4c3768){const _0x164318=a124_0x3a61,_0x60008b=GIT_COMMIT!=='unknown'?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x164318(0x13d)](0x0,0xa)+')':VERSION,_0x31d517=buildConfigFromFlags({}),_0x2f58d1=getCookie();let _0x4a08ec;try{await initGlobalEnvironment(_0x31d517);}catch(_0x545283){_0x4a08ec=_0x545283 instanceof Error?_0x545283:new Error(String(_0x545283));}console[_0x164318(0x135)](),console[_0x164318(0x135)](a124_0x1d70e0[_0x164318(0x163)](CLI_BIN_NAME+_0x164318(0x140))),console[_0x164318(0x135)](a124_0x1d70e0['gray']('─'[_0x164318(0x147)](0x32))),console['log'](_0x164318(0x14d)+_0x60008b),console[_0x164318(0x135)](_0x164318(0x150)+process[_0x164318(0x10a)]),console[_0x164318(0x135)](_0x164318(0xf7)+process[_0x164318(0x139)]+'\x20'+process[_0x164318(0x164)]);const _0x5abefd=inspectBuiltinSkill();console[_0x164318(0x135)](),console[_0x164318(0x135)](a124_0x1d70e0['bold'](_0x164318(0x16d))),console['log'](a124_0x1d70e0[_0x164318(0x165)](_0x164318(0x109)[_0x164318(0x147)](0x1e)));const _0xa03291=_0x5abefd[_0x164318(0x138)]===_0x164318(0x12f)?a124_0x1d70e0[_0x164318(0x110)]('✓\x20'+_0x5abefd[_0x164318(0x138)]):a124_0x1d70e0[_0x164318(0x100)]('✗\x20'+_0x5abefd[_0x164318(0x138)]);console['log'](_0x164318(0x141)+_0xa03291),console[_0x164318(0x135)](_0x164318(0x114)+_0x5abefd['packageVersion']),console[_0x164318(0x135)](_0x164318(0x12e)+(_0x5abefd[_0x164318(0xf1)]||a124_0x1d70e0[_0x164318(0x165)](_0x164318(0x171)))),console[_0x164318(0x135)](_0x164318(0xf6)+(_0x5abefd[_0x164318(0x101)]||a124_0x1d70e0[_0x164318(0x165)]('(not\x20found)')));if(_0x5abefd[_0x164318(0x124)])console[_0x164318(0x135)](_0x164318(0xf4)+_0x5abefd[_0x164318(0x124)]);_0x5abefd['state']!==_0x164318(0x12f)&&console[_0x164318(0x135)](_0x164318(0x14a)+_0x5abefd[_0x164318(0x162)]);console[_0x164318(0x135)](),console[_0x164318(0x135)](a124_0x1d70e0['bold'](_0x164318(0x10f))),console[_0x164318(0x135)](a124_0x1d70e0['gray']('\x20\x20─'[_0x164318(0x147)](0x1e)));const _0x3dae5c=getGlobalConfigPath(),_0x51cad9=getProjectConfigPath();console[_0x164318(0x135)]('\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x3dae5c||a124_0x1d70e0[_0x164318(0x165)](_0x164318(0x16a)))),console['log']('\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x51cad9||a124_0x1d70e0['gray']('(not\x20found)'))),console['log'](),console[_0x164318(0x135)](a124_0x1d70e0[_0x164318(0x163)](_0x164318(0x172))),console[_0x164318(0x135)](a124_0x1d70e0[_0x164318(0x165)](_0x164318(0x109)[_0x164318(0x147)](0x1e)));const _0x21c20b=(_0x1c854d,_0x5bcf87)=>{const _0x476278=_0x164318;if(!_0x5bcf87){console['log']('\x20\x20'+_0x1c854d[_0x476278(0x105)](0x11)+'\x20'+a124_0x1d70e0[_0x476278(0x165)](_0x476278(0x16c)));return;}const _0x573cb2=inspectCliConfigJsonFile(_0x5bcf87);if(_0x573cb2[_0x476278(0xfe)]==='ok')console['log']('\x20\x20'+_0x1c854d['padEnd'](0x11)+'\x20'+a124_0x1d70e0[_0x476278(0x110)](_0x476278(0x10d)));else{if(_0x573cb2[_0x476278(0xfe)]===_0x476278(0x120))console[_0x476278(0x135)]('\x20\x20'+_0x1c854d[_0x476278(0x105)](0x11)+'\x20'+a124_0x1d70e0['yellow']('⚠\x20Empty\x20(treated\x20as\x20{})'));else _0x573cb2['status']===_0x476278(0x12a)?console[_0x476278(0x135)]('\x20\x20'+_0x1c854d[_0x476278(0x105)](0x11)+'\x20'+a124_0x1d70e0['gray'](_0x476278(0xf0))):(console[_0x476278(0x135)]('\x20\x20'+_0x1c854d[_0x476278(0x105)](0x11)+'\x20'+a124_0x1d70e0['red'](_0x476278(0xf5))),console['log']('\x20\x20'+''[_0x476278(0x105)](0x11)+'\x20'+a124_0x1d70e0[_0x476278(0x100)](_0x573cb2[_0x476278(0x10c)])));}};_0x21c20b(_0x164318(0x10b),_0x3dae5c),_0x21c20b(_0x164318(0x144),_0x51cad9);const _0x46ed30=loadRawConfigLayers(),_0x326338=[{'label':_0x164318(0x144),'value':_0x46ed30[_0x164318(0x16e)][_0x164318(0x15e)],'present':Object[_0x164318(0x11f)][_0x164318(0x11b)]['call'](_0x46ed30[_0x164318(0x16e)],_0x164318(0x15e)),'repairCommand':CLI_BIN_NAME+'\x20config\x20delete\x20region'},{'label':_0x164318(0x10b),'value':_0x46ed30[_0x164318(0x158)][_0x164318(0x15e)],'present':Object[_0x164318(0x11f)]['hasOwnProperty']['call'](_0x46ed30[_0x164318(0x158)],_0x164318(0x15e)),'repairCommand':CLI_BIN_NAME+_0x164318(0x152)}][_0x164318(0x12b)](_0x31ee83=>_0x31ee83[_0x164318(0x151)]&&isInvalidLovrabetRegion(_0x31ee83[_0x164318(0x178)]));for(const [_0x28e48e,_0x34a780]of[[_0x164318(0x144),_0x46ed30[_0x164318(0x16e)]],[_0x164318(0x10b),_0x46ed30[_0x164318(0x158)]]]){const _0x3ee995=_0x34a780[_0x164318(0x15a)]&&typeof _0x34a780[_0x164318(0x15a)]===_0x164318(0x116)?_0x34a780['apps']:{};for(const [_0x535a20,_0x54d4d4]of Object[_0x164318(0xf3)](_0x3ee995)){if(!_0x54d4d4||typeof _0x54d4d4!==_0x164318(0x116)||!Object[_0x164318(0x11f)]['hasOwnProperty']['call'](_0x54d4d4,_0x164318(0x15e)))continue;isInvalidLovrabetRegion(_0x54d4d4[_0x164318(0x15e)])&&_0x326338[_0x164318(0x136)]({'label':_0x28e48e+_0x164318(0x16b)+_0x535a20+'\x22','value':_0x54d4d4[_0x164318(0x15e)],'present':!![],'repairCommand':'Set\x20apps.'+_0x535a20+_0x164318(0x14c)+_0x28e48e[_0x164318(0x16f)]()+'\x20config'});}}if(_0x326338[_0x164318(0x130)]>0x0){console['log'](),console[_0x164318(0x135)](a124_0x1d70e0['bold'](_0x164318(0x106))),console[_0x164318(0x135)](a124_0x1d70e0[_0x164318(0x165)](_0x164318(0x109)['repeat'](0x1e)));for(const _0x24dcc1 of _0x326338){console[_0x164318(0x135)]('\x20\x20'+_0x24dcc1[_0x164318(0x107)]['padEnd'](0x11)+'\x20'+a124_0x1d70e0['red'](_0x164318(0x161)+describeRegionValue(_0x24dcc1[_0x164318(0x178)]))),console['log']('\x20\x20'+(_0x164318(0x149)+_0x24dcc1[_0x164318(0x107)][_0x164318(0x16f)]()+':')['padEnd'](0x10)+'\x20'+_0x24dcc1[_0x164318(0x162)]);}}const _0x5bbad6=[Object[_0x164318(0x11f)]['hasOwnProperty']['call'](_0x46ed30[_0x164318(0x158)],_0x164318(0x102))?_0x164318(0x113):null,Object['prototype'][_0x164318(0x11b)][_0x164318(0x17c)](_0x46ed30['projectConfig'],_0x164318(0x102))?_0x164318(0x127):null][_0x164318(0x12b)](Boolean);_0x5bbad6['length']>0x0&&(console['log'](_0x164318(0x123)+a124_0x1d70e0['yellow'](_0x164318(0x15b)+_0x5bbad6[_0x164318(0x166)]('\x20+\x20')+'\x20config')),_0x5bbad6[_0x164318(0x131)](_0x164318(0x127))&&console[_0x164318(0x135)](_0x164318(0x11c)+CLI_BIN_NAME+'\x20config\x20delete\x20inherit'),_0x5bbad6['includes'](_0x164318(0x113))&&console[_0x164318(0x135)](_0x164318(0x179)+CLI_BIN_NAME+'\x20config\x20delete\x20inherit\x20--global'));const _0x1d932f=isInvalidLovrabetRegion(_0x31d517[_0x164318(0x11d)]??_0x31d517[_0x164318(0x137)]?.[_0x164318(0x15e)]);_0x4a08ec&&!_0x1d932f&&(console[_0x164318(0x135)](),console[_0x164318(0x135)](a124_0x1d70e0['bold']('\x20\x20Routing\x20Configuration')),console[_0x164318(0x135)](a124_0x1d70e0[_0x164318(0x165)](_0x164318(0x109)[_0x164318(0x147)](0x1e))),console[_0x164318(0x135)](_0x164318(0x13e)+a124_0x1d70e0[_0x164318(0x100)](_0x164318(0xf8))),console['log'](_0x164318(0xf4)+_0x4a08ec[_0x164318(0x10c)]),Object[_0x164318(0x11f)][_0x164318(0x11b)]['call'](_0x46ed30[_0x164318(0x16e)],'routing')&&console['log'](_0x164318(0x129)+CLI_BIN_NAME+_0x164318(0x169)),Object[_0x164318(0x11f)]['hasOwnProperty'][_0x164318(0x17c)](_0x46ed30['globalConfig'],_0x164318(0x11a))&&console[_0x164318(0x135)](_0x164318(0x148)+CLI_BIN_NAME+'\x20config\x20delete\x20routing\x20--global'));console[_0x164318(0x135)](),console[_0x164318(0x135)](a124_0x1d70e0[_0x164318(0x163)](_0x164318(0x115))),console[_0x164318(0x135)](a124_0x1d70e0['gray'](_0x164318(0x109)[_0x164318(0x147)](0x1e))),console[_0x164318(0x135)](_0x164318(0x157)+(_0x31d517['appCode']||a124_0x1d70e0[_0x164318(0x100)](_0x164318(0x15f))));const _0x459406=_0x1d932f?a124_0x1d70e0['red'](describeRegionValue(_0x31d517[_0x164318(0x11d)]??_0x31d517[_0x164318(0x137)]?.[_0x164318(0x15e)])+_0x164318(0x13b)):(_0x31d517[_0x164318(0x15e)]??DEFAULT_LOVRABET_REGION)+'\x20('+(_0x31d517[_0x164318(0x14b)]??_0x164318(0x167))+')';console[_0x164318(0x135)](_0x164318(0x173)+_0x459406),console[_0x164318(0x135)](_0x164318(0x160)+_0x31d517[_0x164318(0x111)]),console[_0x164318(0x135)](_0x164318(0x170)+_0x31d517['locale']),console['log']('\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x31d517[_0x164318(0x13f)]),console['log']('\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20'+(_0x31d517[_0x164318(0x132)]||a124_0x1d70e0[_0x164318(0x165)](_0x164318(0x12d)))),console[_0x164318(0x135)](_0x164318(0x133)+(_0x31d517[_0x164318(0x168)]||a124_0x1d70e0[_0x164318(0x165)](_0x164318(0x12d)))),console['log'](_0x164318(0x14e)+(_0x31d517[_0x164318(0x122)]||a124_0x1d70e0[_0x164318(0x165)](_0x164318(0x12d)))),console[_0x164318(0x135)]('\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x31d517[_0x164318(0x119)]||a124_0x1d70e0['gray']('(default:\x20'+DEFAULT_CONFIG_VALUES['format']+')'))),console[_0x164318(0x135)](_0x164318(0x174)+(_0x31d517['pageSize']??a124_0x1d70e0[_0x164318(0x165)]('(default)'))),console[_0x164318(0x135)](_0x164318(0x112)+_0x31d517['riskLevel']),console[_0x164318(0x135)]('\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x31d517[_0x164318(0x154)]),console[_0x164318(0x135)](_0x164318(0x104)+(_0x31d517[_0x164318(0x143)]?a124_0x1d70e0[_0x164318(0x110)](_0x164318(0x11e)+_0x31d517['cookie'][_0x164318(0x130)]+')'):_0x2f58d1?a124_0x1d70e0[_0x164318(0x110)]('(set\x20via\x20file,\x20length='+_0x2f58d1['length']+')'):a124_0x1d70e0['gray'](_0x164318(0x12d))));const _0x19bdec=Object['keys'](_0x31d517[_0x164318(0x15a)]);if(_0x19bdec[_0x164318(0x130)]>0x0){console[_0x164318(0x135)](),console[_0x164318(0x135)](a124_0x1d70e0[_0x164318(0x163)](_0x164318(0x13c))),console[_0x164318(0x135)](a124_0x1d70e0[_0x164318(0x165)]('\x20\x20─'[_0x164318(0x147)](0x1e)));for(const _0x45c8af of _0x19bdec){const _0x279a0b=_0x31d517[_0x164318(0x15a)][_0x45c8af],_0x557c3a=_0x45c8af===_0x31d517[_0x164318(0x132)],_0x5ca09d=_0x45c8af===_0x31d517[_0x164318(0x168)],_0x7ab0b9=_0x5ca09d?a124_0x1d70e0[_0x164318(0x110)](_0x164318(0x103)):'',_0x23498a=_0x557c3a?_0x164318(0xf2):'';console[_0x164318(0x135)]('\x20\x20'+_0x45c8af+_0x23498a+_0x7ab0b9),console[_0x164318(0x135)](_0x164318(0xfc)+_0x279a0b[_0x164318(0x108)]);const _0x22fcfc=_0x46ed30[_0x164318(0x16e)]['apps']&&typeof _0x46ed30[_0x164318(0x16e)]['apps']===_0x164318(0x116)?_0x46ed30[_0x164318(0x16e)][_0x164318(0x15a)]:{},_0x1f635a=Object[_0x164318(0x11f)]['hasOwnProperty'][_0x164318(0x17c)](_0x22fcfc,_0x45c8af),_0x428d7d=isInvalidLovrabetRegion(_0x279a0b[_0x164318(0x15e)])?{'region':_0x31d517[_0x164318(0x15e)]??DEFAULT_LOVRABET_REGION}:resolveEffectiveRegion({'appRegion':_0x279a0b[_0x164318(0x15e)],'projectRegion':_0x1f635a?_0x46ed30[_0x164318(0x16e)]['region']:undefined,'globalRegion':_0x46ed30[_0x164318(0x158)]['region'],'mergedRegion':_0x31d517[_0x164318(0x137)][_0x164318(0x15e)],'appName':_0x45c8af}),_0x1259c7=buildAppDoctorFields(_0x279a0b,{'region':_0x428d7d[_0x164318(0x15e)],'env':_0x31d517[_0x164318(0x111)],'apiDir':_0x31d517['raw'][_0x164318(0x13f)]||DEFAULT_CONFIG_VALUES[_0x164318(0x13f)],'cookie':_0x31d517['cookie']||_0x2f58d1||undefined,'accessKey':_0x31d517[_0x164318(0x17b)]});console[_0x164318(0x135)](_0x164318(0x145)+_0x1259c7[_0x164318(0x15e)][_0x164318(0x178)]+'\x20\x20'+a124_0x1d70e0[_0x164318(0x165)]('('+_0x1259c7['region']['source']+')')),console[_0x164318(0x135)]('\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x1259c7['env'][_0x164318(0x178)]+'\x20\x20'+a124_0x1d70e0[_0x164318(0x165)]('('+_0x1259c7['env'][_0x164318(0x15c)]+')')),console[_0x164318(0x135)](_0x164318(0x175)+_0x1259c7[_0x164318(0x13f)][_0x164318(0x178)]+'\x20\x20'+a124_0x1d70e0[_0x164318(0x165)]('('+_0x1259c7[_0x164318(0x13f)][_0x164318(0x15c)]+')'));const _0x688855=_0x1259c7[_0x164318(0x143)][_0x164318(0x178)]?a124_0x1d70e0[_0x164318(0x110)](_0x164318(0x11e)+_0x1259c7[_0x164318(0x143)][_0x164318(0x178)][_0x164318(0x130)]+')'):a124_0x1d70e0[_0x164318(0x165)](_0x164318(0x12d));console['log'](_0x164318(0xfb)+_0x688855+'\x20\x20'+a124_0x1d70e0[_0x164318(0x165)]('('+_0x1259c7[_0x164318(0x143)]['source']+')'));const _0x4132cb=_0x1259c7[_0x164318(0x17b)]['value']?a124_0x1d70e0['green'](_0x164318(0x11e)+_0x1259c7[_0x164318(0x17b)][_0x164318(0x178)][_0x164318(0x130)]+')'):a124_0x1d70e0[_0x164318(0x165)]('(none)');console[_0x164318(0x135)](_0x164318(0x17a)+_0x4132cb+'\x20\x20'+a124_0x1d70e0['gray']('('+_0x1259c7[_0x164318(0x17b)][_0x164318(0x15c)]+')'));}}console[_0x164318(0x135)](),console[_0x164318(0x135)](a124_0x1d70e0[_0x164318(0x163)]('\x20\x20API\x20Endpoints')),console['log'](a124_0x1d70e0['gray'](_0x164318(0x109)[_0x164318(0x147)](0x1e)));_0x4a08ec?console[_0x164318(0x135)](_0x164318(0x13e)+a124_0x1d70e0[_0x164318(0x100)]('Unavailable\x20until\x20routing\x20configuration\x20is\x20repaired')):(console[_0x164318(0x135)](_0x164318(0x173)+getActiveRegion()),console[_0x164318(0x135)](_0x164318(0x14f)+getApiDomain()),console[_0x164318(0x135)](_0x164318(0x118)+getUserDomain()),console[_0x164318(0x135)](_0x164318(0xf9)+getRuntimeDomain()),console[_0x164318(0x135)]('\x20\x20skillDomain:\x20\x20\x20\x20\x20'+getSkillDomain()),console['log'](_0x164318(0x128)+getKbDomain()),console[_0x164318(0x135)](_0x164318(0xfd)+(getKbServiceDomain()??_0x164318(0x117))),console['log']('\x20\x20appDomain:\x20\x20\x20\x20\x20\x20\x20'+getAppDomain()));console[_0x164318(0x135)](),console[_0x164318(0x135)](a124_0x1d70e0[_0x164318(0x163)](_0x164318(0xef))),console['log'](a124_0x1d70e0[_0x164318(0x165)]('\x20\x20─'[_0x164318(0x147)](0x1e)));if(_0x4a08ec)console[_0x164318(0x135)](_0x164318(0x13e)+a124_0x1d70e0[_0x164318(0x13a)]('Not\x20checked\x20until\x20routing\x20configuration\x20is\x20repaired'));else{if(_0x2f58d1){const _0x369ce3=await getIsSessionValid();console[_0x164318(0x135)](_0x164318(0x13e)+(_0x369ce3?a124_0x1d70e0[_0x164318(0x110)]('✓\x20Valid'):a124_0x1d70e0[_0x164318(0x100)](_0x164318(0x155))));}else console['log'](_0x164318(0x13e)+a124_0x1d70e0[_0x164318(0x100)](_0x164318(0xfa)));}return console[_0x164318(0x135)](),{'ok':!![]};}export const doctorDefinition={'service':a124_0x375dde(0xff),'command':a124_0x375dde(0x10e),'description':'Diagnose\x20CLI\x20configuration\x20and\x20connectivity','risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
@@ -1 +1 @@
1
- const a125_0x39391e=a125_0x2c7a;(function(_0x294bae,_0x44670d){const _0x45dc41=a125_0x2c7a,_0x8b03f2=_0x294bae();while(!![]){try{const _0x55516b=-parseInt(_0x45dc41(0x185))/0x1+parseInt(_0x45dc41(0x17b))/0x2*(-parseInt(_0x45dc41(0x182))/0x3)+-parseInt(_0x45dc41(0x17e))/0x4+-parseInt(_0x45dc41(0x183))/0x5*(parseInt(_0x45dc41(0x186))/0x6)+-parseInt(_0x45dc41(0x18c))/0x7+-parseInt(_0x45dc41(0x18e))/0x8+parseInt(_0x45dc41(0x190))/0x9;if(_0x55516b===_0x44670d)break;else _0x8b03f2['push'](_0x8b03f2['shift']());}catch(_0x5c1bc5){_0x8b03f2['push'](_0x8b03f2['shift']());}}}(a125_0x4a2c,0x1ed28));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_0x39391e(0x192),'type':a125_0x39391e(0x179),'required':!![],'description':a125_0x39391e(0x187)},FILEPATH_FLAG={'name':a125_0x39391e(0x195),'type':a125_0x39391e(0x179),'required':!![],'description':'Development\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data'},DOWNLOAD_FLAG={'name':'download','type':a125_0x39391e(0x18d),'description':a125_0x39391e(0x193)},LONG_TERM_FLAG={'name':a125_0x39391e(0x189),'type':a125_0x39391e(0x18d),'description':a125_0x39391e(0x18f)};function requireFilePath(_0x3e5fce){const _0x53e21d=a125_0x39391e,_0x30bac1=_0x3e5fce[_0x53e21d(0x174)]();if(!_0x30bac1)throw CliErrors[_0x53e21d(0x176)](_0x53e21d(0x184));return _0x30bac1;}function a125_0x4a2c(){const _0x4abfd3=['57219cfjNGR','5mRPRsB','filePath\x20is\x20required.','193848VvzFXB','1329132OlpJXZ','Path\x20to\x20the\x20local\x20file\x20to\x20upload','File','long-term','bool','/smartapi/common/uploadFile','311017BKClvj','boolean','74272LrXTgj','Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML','6388983JAwOQt','Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20or\x20immediate\x20access','file','Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL','query-url','filepath','appCode','trim','Uploaded\x20file:\x20','validation','filePath','str','string','\x20to\x20development\x20app\x20','6OZGABF','Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','path','229340uQuOOc','read','Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.'];a125_0x4a2c=function(){return _0x4abfd3;};return a125_0x4a2c();}const fileUpload={'service':a125_0x39391e(0x192),'command':'upload','description':a125_0x39391e(0x17c),'risk':a125_0x39391e(0x17f),'flags':[FILE_FLAG],async 'dryRun'(_0x103981){const _0x2bd200=a125_0x39391e,_0x31d81a=requireDevelopmentUploadFile(_0x103981['str'](_0x2bd200(0x192)),'File');return{'method':'POST','url':_0x2bd200(0x18b),'body':{'appCode':_0x103981[_0x2bd200(0x173)],'multipart':{'file':_0x31d81a}},'description':'Preview:\x20upload\x20'+_0x31d81a[_0x2bd200(0x17d)]+_0x2bd200(0x17a)+_0x103981[_0x2bd200(0x173)]};},async 'execute'(_0x3c87c3){const _0x20f0ed=a125_0x39391e,_0x1f2563=requireDevelopmentUploadFile(_0x3c87c3[_0x20f0ed(0x178)](_0x20f0ed(0x192)),_0x20f0ed(0x188)),_0x8554cc=await uploadDevelopmentFile(_0x3c87c3[_0x20f0ed(0x173)],_0x1f2563[_0x20f0ed(0x17d)]);return{'ok':!![],'data':_0x8554cc,'message':_0x8554cc[_0x20f0ed(0x177)]?_0x20f0ed(0x175)+_0x8554cc[_0x20f0ed(0x177)]+_0x20f0ed(0x181):_0x20f0ed(0x180)};}},fileQueryUrl={'service':a125_0x39391e(0x192),'command':a125_0x39391e(0x194),'description':a125_0x39391e(0x191),'risk':a125_0x39391e(0x17f),'flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0x18850f){const _0x28b4d3=a125_0x39391e,_0x47b08e=requireFilePath(_0x18850f[_0x28b4d3(0x178)](_0x28b4d3(0x195))),_0x8ffd3b=await queryDevelopmentFileUrl(_0x47b08e,{'download':_0x18850f[_0x28b4d3(0x18a)]('download'),'longTerm':_0x18850f[_0x28b4d3(0x18a)](_0x28b4d3(0x189))});return{'ok':!![],'data':_0x8ffd3b};}};function a125_0x2c7a(_0x5b4970,_0x576cf6){_0x5b4970=_0x5b4970-0x173;const _0x4a2cfb=a125_0x4a2c();let _0x2c7a0a=_0x4a2cfb[_0x5b4970];return _0x2c7a0a;}export const fileDefinitions=[fileUpload,fileQueryUrl];
1
+ const a125_0x2c4d9a=a125_0xd314;(function(_0x171ef0,_0x5a8846){const _0x51b03f=a125_0xd314,_0x5b8830=_0x171ef0();while(!![]){try{const _0x10cb1c=parseInt(_0x51b03f(0x10c))/0x1+parseInt(_0x51b03f(0x11c))/0x2*(-parseInt(_0x51b03f(0x11d))/0x3)+-parseInt(_0x51b03f(0x117))/0x4+parseInt(_0x51b03f(0x10b))/0x5+parseInt(_0x51b03f(0x114))/0x6*(-parseInt(_0x51b03f(0x127))/0x7)+-parseInt(_0x51b03f(0x12a))/0x8+parseInt(_0x51b03f(0x12d))/0x9;if(_0x10cb1c===_0x5a8846)break;else _0x5b8830['push'](_0x5b8830['shift']());}catch(_0x30f5b9){_0x5b8830['push'](_0x5b8830['shift']());}}}(a125_0x4c47,0x2ef98));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':'file','type':a125_0x2c4d9a(0x115),'required':!![],'description':a125_0x2c4d9a(0x123)},FILEPATH_FLAG={'name':'filepath','type':'string','required':!![],'description':'Development\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data'},DOWNLOAD_FLAG={'name':a125_0x2c4d9a(0x119),'type':'boolean','description':a125_0x2c4d9a(0x110)},LONG_TERM_FLAG={'name':a125_0x2c4d9a(0x113),'type':a125_0x2c4d9a(0x120),'description':'Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML'};function requireFilePath(_0x39f100){const _0x4650a1=a125_0x2c4d9a,_0x30472b=_0x39f100['trim']();if(!_0x30472b)throw CliErrors[_0x4650a1(0x129)](_0x4650a1(0x11a));return _0x30472b;}function a125_0x4c47(){const _0x1f44ca=['POST','download','filePath\x20is\x20required.','File','64058bwfVRP','9Uzpbsj','file','/smartapi/common/uploadFile','boolean','query-url','Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','Path\x20to\x20the\x20local\x20file\x20to\x20upload','bool','upload','filepath','7hVBRNQ','Uploaded\x20file:\x20','validation','1062136CaRoDN','.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','str','5094855ORqPAu','path','551500OFjggy','328643gYWdsc','\x20to\x20development\x20app\x20','read','Preview:\x20upload\x20','Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL','Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','appCode','long-term','1799646MrdlDL','string','filePath','1135340wCMleW'];a125_0x4c47=function(){return _0x1f44ca;};return a125_0x4c47();}const fileUpload={'service':a125_0x2c4d9a(0x11e),'command':a125_0x2c4d9a(0x125),'description':a125_0x2c4d9a(0x122),'risk':a125_0x2c4d9a(0x10e),'flags':[FILE_FLAG],async 'dryRun'(_0x26ab4d){const _0x3962b8=a125_0x2c4d9a,_0x3605e6=requireDevelopmentUploadFile(_0x26ab4d['str'](_0x3962b8(0x11e)),'File');return{'method':_0x3962b8(0x118),'url':_0x3962b8(0x11f),'body':{'appCode':_0x26ab4d[_0x3962b8(0x112)],'multipart':{'file':_0x3605e6}},'description':_0x3962b8(0x10f)+_0x3605e6[_0x3962b8(0x12e)]+_0x3962b8(0x10d)+_0x26ab4d[_0x3962b8(0x112)]};},async 'execute'(_0x2f0eda){const _0x3532f=a125_0x2c4d9a,_0x2008a1=requireDevelopmentUploadFile(_0x2f0eda[_0x3532f(0x12c)](_0x3532f(0x11e)),_0x3532f(0x11b)),_0x929ef4=await uploadDevelopmentFile(_0x2f0eda[_0x3532f(0x112)],_0x2008a1[_0x3532f(0x12e)]);return{'ok':!![],'data':_0x929ef4,'message':_0x929ef4[_0x3532f(0x116)]?_0x3532f(0x128)+_0x929ef4[_0x3532f(0x116)]+_0x3532f(0x12b):_0x3532f(0x111)};}},fileQueryUrl={'service':'file','command':a125_0x2c4d9a(0x121),'description':'Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20or\x20immediate\x20access','risk':a125_0x2c4d9a(0x10e),'flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0x27ac2f){const _0x272721=a125_0x2c4d9a,_0x5e397c=requireFilePath(_0x27ac2f['str'](_0x272721(0x126))),_0x1f0d84=await queryDevelopmentFileUrl(_0x5e397c,{'download':_0x27ac2f[_0x272721(0x124)](_0x272721(0x119)),'longTerm':_0x27ac2f[_0x272721(0x124)](_0x272721(0x113))});return{'ok':!![],'data':_0x1f0d84};}};function a125_0xd314(_0x37efe8,_0x5d6e67){_0x37efe8=_0x37efe8-0x10b;const _0x4c4745=a125_0x4c47();let _0xd314bf=_0x4c4745[_0x37efe8];return _0xd314bf;}export const fileDefinitions=[fileUpload,fileQueryUrl];
@@ -1 +1 @@
1
- const a126_0x56fadf=a126_0x4527;(function(_0x3ab640,_0x43852b){const _0x56e909=a126_0x4527,_0x34d21f=_0x3ab640();while(!![]){try{const _0x4fa3bd=-parseInt(_0x56e909(0x1f2))/0x1+-parseInt(_0x56e909(0x1f8))/0x2+parseInt(_0x56e909(0x1f6))/0x3*(-parseInt(_0x56e909(0x1f1))/0x4)+parseInt(_0x56e909(0x201))/0x5+parseInt(_0x56e909(0x202))/0x6*(-parseInt(_0x56e909(0x1fd))/0x7)+parseInt(_0x56e909(0x1f7))/0x8+-parseInt(_0x56e909(0x1f0))/0x9*(-parseInt(_0x56e909(0x1fe))/0xa);if(_0x4fa3bd===_0x43852b)break;else _0x34d21f['push'](_0x34d21f['shift']());}catch(_0x4b553f){_0x34d21f['push'](_0x34d21f['shift']());}}}(a126_0x52ef,0x434b0));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{asDryRunResult}from'../../commands/common/dry-run.js';function a126_0x52ef(){const _0x65bf45=['flowName','appCode','datasetCode','465852PmTREy','3507736SjVHNY','393922sXcJBf','flow','POST','Created\x20flow\x20','\x20(id=','2791922EKWGoV','323180YmFgLQ','Create\x20a\x20draft\x20flow\x20definition\x20from\x20a\x20local\x20FlowConfig\x20file','create','1167290gJRVux','6KUWObc','.\x20Flow\x20URL:\x20','207GfEtHQ','8cYrBWO','233232DLpnUu'];a126_0x52ef=function(){return _0x65bf45;};return a126_0x52ef();}import{createFlowDefinition}from'../../core/api-client.js';function a126_0x4527(_0xa3cda3,_0x250740){_0xa3cda3=_0xa3cda3-0x1f0;const _0x52efd2=a126_0x52ef();let _0x45276d=_0x52efd2[_0xa3cda3];return _0x45276d;}import{FLOW_FILE_FLAG,FLOW_PATHS,buildFlowUrl,confirmFlowWrite,flowSelector,prepareFlowWrite,readFlowFilePath}from'../../commands/flow/shared.js';export const flowCreate={'service':a126_0x56fadf(0x1f9),'command':a126_0x56fadf(0x200),'description':a126_0x56fadf(0x1ff),'risk':'write','flags':[FLOW_FILE_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x23c532){readFlowFilePath(_0x23c532);},async 'dryRun'(_0x583e88){const _0x46a434=a126_0x56fadf,{request:_0x1de969,warnings:_0x15115f}=await prepareFlowWrite(readFlowFilePath(_0x583e88),_0x583e88[_0x46a434(0x1f4)]);return asDryRunResult({'operation':_0x46a434(0x200),'selector':{'appCode':_0x583e88[_0x46a434(0x1f4)],'flowName':_0x1de969[_0x46a434(0x1f3)],..._0x1de969['datasetCode']?{'datasetCode':_0x1de969[_0x46a434(0x1f5)]}:{}},'before':null,'after':_0x1de969,'request':_0x1de969,'dryRun':!![],'backend':{'method':_0x46a434(0x1fa),'path':FLOW_PATHS[_0x46a434(0x200)]},'warnings':_0x15115f},{'method':_0x46a434(0x1fa),'url':FLOW_PATHS[_0x46a434(0x200)]});},async 'execute'(_0xc05850){const _0x589526=a126_0x56fadf,{request:_0x334dd8,warnings:_0x139fbe}=await prepareFlowWrite(readFlowFilePath(_0xc05850),_0xc05850['appCode']);await confirmFlowWrite(_0xc05850,_0x589526(0x200),_0x334dd8);const _0xa131b4=await createFlowDefinition(_0x334dd8),_0x411bc9=buildFlowUrl(_0xc05850[_0x589526(0x1f4)],_0xa131b4['id']),_0x260301=''+(_0xa131b4['flowName']||_0x334dd8[_0x589526(0x1f3)])+(_0xa131b4['id']?_0x589526(0x1fc)+_0xa131b4['id']+')':'');return{'ok':!![],'data':{'operation':_0x589526(0x200),'selector':flowSelector(_0xc05850[_0x589526(0x1f4)],_0xa131b4['id'],_0xa131b4),'before':null,'after':_0xa131b4,'flowUrl':_0x411bc9,'dryRun':![],'backend':{'method':_0x589526(0x1fa),'path':FLOW_PATHS['create']},'warnings':_0x139fbe},'message':_0x589526(0x1fb)+_0x260301+_0x589526(0x203)+_0x411bc9};}};
1
+ const a126_0x3e6088=a126_0x3909;(function(_0x156c5e,_0x195f48){const _0x261376=a126_0x3909,_0x2cc430=_0x156c5e();while(!![]){try{const _0x217db8=parseInt(_0x261376(0x78))/0x1+parseInt(_0x261376(0x6d))/0x2+-parseInt(_0x261376(0x79))/0x3*(-parseInt(_0x261376(0x7c))/0x4)+parseInt(_0x261376(0x7e))/0x5+-parseInt(_0x261376(0x6e))/0x6*(parseInt(_0x261376(0x71))/0x7)+-parseInt(_0x261376(0x7d))/0x8*(parseInt(_0x261376(0x70))/0x9)+-parseInt(_0x261376(0x74))/0xa;if(_0x217db8===_0x195f48)break;else _0x2cc430['push'](_0x2cc430['shift']());}catch(_0x3a8031){_0x2cc430['push'](_0x2cc430['shift']());}}}(a126_0x97f2,0xcc138));function a126_0x97f2(){const _0x40736e=['88258RzuZCG','393fAPdeo','create','write','24772fhsnnt','495624PMslQW','6572675YaXctr','POST','1781558GTGbZM','257940yHlbFY','appCode','9qghyDo','77BJZuam','\x20(id=','.\x20Flow\x20URL:\x20','17341160XqWeOF','Created\x20flow\x20','datasetCode','flowName'];a126_0x97f2=function(){return _0x40736e;};return a126_0x97f2();}function a126_0x3909(_0x1854e1,_0x596e6d){_0x1854e1=_0x1854e1-0x6c;const _0x97f2a=a126_0x97f2();let _0x39091b=_0x97f2a[_0x1854e1];return _0x39091b;}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{asDryRunResult}from'../../commands/common/dry-run.js';import{createFlowDefinition}from'../../core/api-client.js';import{FLOW_FILE_FLAG,FLOW_PATHS,buildFlowUrl,confirmFlowWrite,flowSelector,prepareFlowWrite,readFlowFilePath}from'../../commands/flow/shared.js';export const flowCreate={'service':'flow','command':a126_0x3e6088(0x7a),'description':'Create\x20a\x20draft\x20flow\x20definition\x20from\x20a\x20local\x20FlowConfig\x20file','risk':a126_0x3e6088(0x7b),'flags':[FLOW_FILE_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x52bb65){readFlowFilePath(_0x52bb65);},async 'dryRun'(_0x203ea2){const _0x1a409d=a126_0x3e6088,{request:_0x5cf2a3,warnings:_0x3dbfb5}=await prepareFlowWrite(readFlowFilePath(_0x203ea2),_0x203ea2[_0x1a409d(0x6f)]);return asDryRunResult({'operation':_0x1a409d(0x7a),'selector':{'appCode':_0x203ea2[_0x1a409d(0x6f)],'flowName':_0x5cf2a3[_0x1a409d(0x77)],..._0x5cf2a3[_0x1a409d(0x76)]?{'datasetCode':_0x5cf2a3[_0x1a409d(0x76)]}:{}},'before':null,'after':_0x5cf2a3,'request':_0x5cf2a3,'dryRun':!![],'backend':{'method':_0x1a409d(0x6c),'path':FLOW_PATHS[_0x1a409d(0x7a)]},'warnings':_0x3dbfb5},{'method':_0x1a409d(0x6c),'url':FLOW_PATHS[_0x1a409d(0x7a)]});},async 'execute'(_0x3e58ab){const _0xe43a1c=a126_0x3e6088,{request:_0x155cda,warnings:_0x51afbd}=await prepareFlowWrite(readFlowFilePath(_0x3e58ab),_0x3e58ab[_0xe43a1c(0x6f)]);await confirmFlowWrite(_0x3e58ab,'create',_0x155cda);const _0x21e963=await createFlowDefinition(_0x155cda),_0x99615d=buildFlowUrl(_0x3e58ab[_0xe43a1c(0x6f)],_0x21e963['id']),_0x370816=''+(_0x21e963[_0xe43a1c(0x77)]||_0x155cda[_0xe43a1c(0x77)])+(_0x21e963['id']?_0xe43a1c(0x72)+_0x21e963['id']+')':'');return{'ok':!![],'data':{'operation':_0xe43a1c(0x7a),'selector':flowSelector(_0x3e58ab[_0xe43a1c(0x6f)],_0x21e963['id'],_0x21e963),'before':null,'after':_0x21e963,'flowUrl':_0x99615d,'dryRun':![],'backend':{'method':_0xe43a1c(0x6c),'path':FLOW_PATHS['create']},'warnings':_0x51afbd},'message':_0xe43a1c(0x75)+_0x370816+_0xe43a1c(0x73)+_0x99615d};}};
@@ -1 +1 @@
1
- const a127_0x2fd43e=a127_0x5d9d;(function(_0x32f863,_0x2d15ca){const _0x4eccb9=a127_0x5d9d,_0x529f87=_0x32f863();while(!![]){try{const _0x46194c=-parseInt(_0x4eccb9(0xfd))/0x1+parseInt(_0x4eccb9(0x100))/0x2+parseInt(_0x4eccb9(0xf4))/0x3+parseInt(_0x4eccb9(0x114))/0x4*(-parseInt(_0x4eccb9(0xf9))/0x5)+parseInt(_0x4eccb9(0x112))/0x6*(-parseInt(_0x4eccb9(0xff))/0x7)+-parseInt(_0x4eccb9(0xfb))/0x8+parseInt(_0x4eccb9(0x115))/0x9;if(_0x46194c===_0x2d15ca)break;else _0x529f87['push'](_0x529f87['shift']());}catch(_0x4cb4da){_0x529f87['push'](_0x529f87['shift']());}}}(a127_0x1745,0x6c689));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_0x1745(){const _0x275608=['code','detail','validation','boolean','path','\x20to\x20','trim','flowName','Pass\x20--force\x20to\x20overwrite\x20it.','force','string','FlowConfig\x20output\x20already\x20exists:\x20','flowCode','ENOENT','Flow\x20','19914LfWisF','read','1116484hYIKAC','14157963xobljj','377937ETipZg','warnings','Get\x20one\x20design-time\x20flow\x20definition','bool','flow','10eFcNxf','output','573152xNFldv','Wrote\x20FlowConfig\x20for\x20','261334KTtClZ','EEXIST','1512mNRatA','706158gffTjA','Write\x20a\x20portable\x20normalized\x20FlowConfig\x20JSON\x20file','config'];a127_0x1745=function(){return _0x275608;};return a127_0x1745();}import{FLOW_ID_FLAG,flowDefinitionToConfig,readFlowId}from'../../commands/flow/shared.js';export const flowDetail={'service':a127_0x2fd43e(0xf8),'command':a127_0x2fd43e(0x104),'description':a127_0x2fd43e(0xf6),'risk':a127_0x2fd43e(0x113),'flags':[FLOW_ID_FLAG,{'name':a127_0x2fd43e(0xfa),'type':a127_0x2fd43e(0x10d),'description':a127_0x2fd43e(0x101)},{'name':'force','type':a127_0x2fd43e(0x106),'description':'Overwrite\x20an\x20existing\x20output\x20file'},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x421c49){readFlowId(_0x421c49);},async 'execute'(_0x168311){const _0x29e457=a127_0x2fd43e,_0x242dd0=readFlowId(_0x168311),_0xb64b91=_0x168311['str'](_0x29e457(0xfa))[_0x29e457(0x109)](),_0x5bf979=_0xb64b91?resolve(_0xb64b91):undefined;if(_0x5bf979&&!_0x168311['bool']('force')&&await fileExists(_0x5bf979))throw CliErrors['validation'](_0x29e457(0x10e)+_0x5bf979,_0x29e457(0x10b));const _0x2050ff=await getFlowDefinition(_0x168311['appCode'],_0x242dd0);let _0x35e7c7;if(_0x5bf979){const _0x512bf6=flowDefinitionToConfig(_0x2050ff);await mkdir(dirname(_0x5bf979),{'recursive':!![]});try{await writeNormalizedFlowConfig(_0x5bf979,_0x512bf6[_0x29e457(0x102)],{'overwrite':_0x168311[_0x29e457(0xf7)](_0x29e457(0x10c))});}catch(_0x484a45){if(isAlreadyExistsError(_0x484a45))throw CliErrors[_0x29e457(0x105)](_0x29e457(0x10e)+_0x5bf979,_0x29e457(0x10b));throw _0x484a45;}_0x35e7c7={'path':_0x5bf979,'warnings':_0x512bf6[_0x29e457(0xf5)]};}return{'ok':!![],'data':{'flow':_0x2050ff,..._0x35e7c7?{'output':_0x35e7c7}:{}},'message':_0x35e7c7?_0x29e457(0xfc)+(_0x2050ff[_0x29e457(0x10a)]||_0x2050ff[_0x29e457(0x10f)]||_0x242dd0)+_0x29e457(0x108)+_0x35e7c7[_0x29e457(0x107)]:_0x29e457(0x111)+(_0x2050ff['flowName']||_0x2050ff['flowCode']||_0x242dd0)};}};function a127_0x5d9d(_0x2e0e03,_0x3ccb02){_0x2e0e03=_0x2e0e03-0xf4;const _0x1745a3=a127_0x1745();let _0x5d9d54=_0x1745a3[_0x2e0e03];return _0x5d9d54;}async function fileExists(_0x2e3816){try{return await stat(_0x2e3816),!![];}catch(_0xcde6a5){return!isNotFoundError(_0xcde6a5);}}function isNotFoundError(_0xc8de9f){const _0x5eecba=a127_0x2fd43e;return _0xc8de9f?.['code']===_0x5eecba(0x110);}function isAlreadyExistsError(_0x1d5c99){const _0x47b907=a127_0x2fd43e;return _0x1d5c99?.[_0x47b907(0x103)]===_0x47b907(0xfe);}
1
+ function a127_0x4627(){const _0x50f436=['Pass\x20--force\x20to\x20overwrite\x20it.','bool','trim','flowCode','Write\x20a\x20portable\x20normalized\x20FlowConfig\x20JSON\x20file','appCode','Get\x20one\x20design-time\x20flow\x20definition','code','str','force','Overwrite\x20an\x20existing\x20output\x20file','flow','17773400xoAOnE','warnings','7375140RWBNKQ','2idUVKX','FlowConfig\x20output\x20already\x20exists:\x20','768161keEyDE','EEXIST','flowName','252VPSMCP','output','\x20to\x20','3934152YITawT','config','string','11312LyRCaw','path','14hDKVTF','4561845GSeDwb','6040992FASrOg'];a127_0x4627=function(){return _0x50f436;};return a127_0x4627();}const a127_0x509bff=a127_0x17e3;function a127_0x17e3(_0x2ec36d,_0x1bb2b7){_0x2ec36d=_0x2ec36d-0xcf;const _0x462725=a127_0x4627();let _0x17e39e=_0x462725[_0x2ec36d];return _0x17e39e;}(function(_0x11a6d5,_0x45dbda){const _0x4fb16e=a127_0x17e3,_0x36318a=_0x11a6d5();while(!![]){try{const _0x1e5219=-parseInt(_0x4fb16e(0xdd))/0x1*(parseInt(_0x4fb16e(0xdb))/0x2)+-parseInt(_0x4fb16e(0xe0))/0x3*(parseInt(_0x4fb16e(0xe6))/0x4)+-parseInt(_0x4fb16e(0xe9))/0x5+parseInt(_0x4fb16e(0xea))/0x6+-parseInt(_0x4fb16e(0xe8))/0x7*(parseInt(_0x4fb16e(0xe3))/0x8)+parseInt(_0x4fb16e(0xda))/0x9+parseInt(_0x4fb16e(0xd8))/0xa;if(_0x1e5219===_0x45dbda)break;else _0x36318a['push'](_0x36318a['shift']());}catch(_0x4ea34d){_0x36318a['push'](_0x36318a['shift']());}}}(a127_0x4627,0xab63c));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_0x509bff(0xd7),'command':'detail','description':a127_0x509bff(0xd2),'risk':'read','flags':[FLOW_ID_FLAG,{'name':'output','type':a127_0x509bff(0xe5),'description':a127_0x509bff(0xd0)},{'name':a127_0x509bff(0xd5),'type':'boolean','description':a127_0x509bff(0xd6)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x5e97cb){readFlowId(_0x5e97cb);},async 'execute'(_0x3a3dc7){const _0xed2e98=a127_0x509bff,_0x3f4bd9=readFlowId(_0x3a3dc7),_0x31d8e2=_0x3a3dc7[_0xed2e98(0xd4)](_0xed2e98(0xe1))[_0xed2e98(0xed)](),_0x5ca750=_0x31d8e2?resolve(_0x31d8e2):undefined;if(_0x5ca750&&!_0x3a3dc7[_0xed2e98(0xec)](_0xed2e98(0xd5))&&await fileExists(_0x5ca750))throw CliErrors['validation']('FlowConfig\x20output\x20already\x20exists:\x20'+_0x5ca750,_0xed2e98(0xeb));const _0x576e25=await getFlowDefinition(_0x3a3dc7[_0xed2e98(0xd1)],_0x3f4bd9);let _0x2ac3df;if(_0x5ca750){const _0x38760a=flowDefinitionToConfig(_0x576e25);await mkdir(dirname(_0x5ca750),{'recursive':!![]});try{await writeNormalizedFlowConfig(_0x5ca750,_0x38760a[_0xed2e98(0xe4)],{'overwrite':_0x3a3dc7[_0xed2e98(0xec)](_0xed2e98(0xd5))});}catch(_0x30d853){if(isAlreadyExistsError(_0x30d853))throw CliErrors['validation'](_0xed2e98(0xdc)+_0x5ca750,_0xed2e98(0xeb));throw _0x30d853;}_0x2ac3df={'path':_0x5ca750,'warnings':_0x38760a[_0xed2e98(0xd9)]};}return{'ok':!![],'data':{'flow':_0x576e25,..._0x2ac3df?{'output':_0x2ac3df}:{}},'message':_0x2ac3df?'Wrote\x20FlowConfig\x20for\x20'+(_0x576e25[_0xed2e98(0xdf)]||_0x576e25['flowCode']||_0x3f4bd9)+_0xed2e98(0xe2)+_0x2ac3df[_0xed2e98(0xe7)]:'Flow\x20'+(_0x576e25[_0xed2e98(0xdf)]||_0x576e25[_0xed2e98(0xcf)]||_0x3f4bd9)};}};async function fileExists(_0x5195d1){try{return await stat(_0x5195d1),!![];}catch(_0x235c5a){return!isNotFoundError(_0x235c5a);}}function isNotFoundError(_0x2f9648){const _0x13e5e8=a127_0x509bff;return _0x2f9648?.[_0x13e5e8(0xd3)]==='ENOENT';}function isAlreadyExistsError(_0x161830){const _0xd2f10f=a127_0x509bff;return _0x161830?.[_0xd2f10f(0xd3)]===_0xd2f10f(0xde);}
@@ -1 +1 @@
1
- (function(_0x34bbfc,_0x153058){const _0x595474=a128_0x13b1,_0x36db93=_0x34bbfc();while(!![]){try{const _0x48eee2=parseInt(_0x595474(0x125))/0x1+parseInt(_0x595474(0x124))/0x2+-parseInt(_0x595474(0x128))/0x3*(-parseInt(_0x595474(0x12b))/0x4)+parseInt(_0x595474(0x12a))/0x5*(-parseInt(_0x595474(0x123))/0x6)+-parseInt(_0x595474(0x12d))/0x7*(-parseInt(_0x595474(0x127))/0x8)+parseInt(_0x595474(0x12c))/0x9*(-parseInt(_0x595474(0x126))/0xa)+-parseInt(_0x595474(0x129))/0xb;if(_0x48eee2===_0x153058)break;else _0x36db93['push'](_0x36db93['shift']());}catch(_0x94f22e){_0x36db93['push'](_0x36db93['shift']());}}}(a128_0x2c0b,0xdd701));import{flowValidate}from'../../commands/flow/validate.js';import{flowList}from'../../commands/flow/list.js';function a128_0x2c0b(){const _0x160579=['827446ftachl','558740RUCwzX','487130ikXYXs','24qdOGWG','39642fWEutz','8674171bbAqhc','10JlolXy','164YObvpz','18HtaUjT','1428917tjcskY','1000902dStxXM'];a128_0x2c0b=function(){return _0x160579;};return a128_0x2c0b();}function a128_0x13b1(_0x23aa61,_0x5aac5e){_0x23aa61=_0x23aa61-0x123;const _0x2c0bea=a128_0x2c0b();let _0x13b188=_0x2c0bea[_0x23aa61];return _0x13b188;}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';export const flowDefinitions=[flowValidate,flowList,flowDetail,flowCreate,flowUpdate,flowPublish,flowRuntimeRoleList,flowRuntimeUserSearch,flowRuntimeRoleUserList];
1
+ function a128_0x29a6(_0x53d48a,_0x553598){_0x53d48a=_0x53d48a-0xc6;const _0x32cb8a=a128_0x32cb();let _0x29a631=_0x32cb8a[_0x53d48a];return _0x29a631;}(function(_0x554f5d,_0x1ed9a9){const _0x51c387=a128_0x29a6,_0x75ddda=_0x554f5d();while(!![]){try{const _0x1c6b4b=parseInt(_0x51c387(0xcd))/0x1+-parseInt(_0x51c387(0xca))/0x2+-parseInt(_0x51c387(0xc8))/0x3+parseInt(_0x51c387(0xc7))/0x4+parseInt(_0x51c387(0xc6))/0x5*(parseInt(_0x51c387(0xce))/0x6)+parseInt(_0x51c387(0xcc))/0x7*(-parseInt(_0x51c387(0xc9))/0x8)+parseInt(_0x51c387(0xcb))/0x9;if(_0x1c6b4b===_0x1ed9a9)break;else _0x75ddda['push'](_0x75ddda['shift']());}catch(_0x2e7f70){_0x75ddda['push'](_0x75ddda['shift']());}}}(a128_0x32cb,0x222fc));import{flowValidate}from'../../commands/flow/validate.js';import{flowPageList}from'../../commands/flow/page-list.js';import{flowList}from'../../commands/flow/list.js';import{flowDetail}from'../../commands/flow/detail.js';import{flowCreate}from'../../commands/flow/create.js';import{flowUpdate}from'../../commands/flow/update.js';import{flowPublish}from'../../commands/flow/publish.js';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_0x32cb(){const _0xb350e1=['2336lWKizh','311498bfFMSx','2062719AEMYvl','4998UKItiX','8748aLzsXU','538548ZUcSEN','15pNadXc','55580QzGuXI','50529ryMFXt'];a128_0x32cb=function(){return _0xb350e1;};return a128_0x32cb();}export const flowDefinitions=[flowValidate,flowList,flowPageList,flowDetail,flowCreate,flowUpdate,flowPublish,flowRuntimeRoleList,flowRuntimeUserSearch,flowRuntimeRoleUserList];
@@ -1 +1 @@
1
- const a129_0x1c11e6=a129_0x53e4;(function(_0x339e9b,_0x583aaf){const _0x97199d=a129_0x53e4,_0x525253=_0x339e9b();while(!![]){try{const _0xea36d7=-parseInt(_0x97199d(0x1e4))/0x1+-parseInt(_0x97199d(0x1ed))/0x2+-parseInt(_0x97199d(0x1e2))/0x3*(parseInt(_0x97199d(0x1f5))/0x4)+parseInt(_0x97199d(0x1e0))/0x5*(parseInt(_0x97199d(0x1e5))/0x6)+parseInt(_0x97199d(0x1e6))/0x7*(parseInt(_0x97199d(0x1ef))/0x8)+parseInt(_0x97199d(0x1e7))/0x9+-parseInt(_0x97199d(0x1db))/0xa*(-parseInt(_0x97199d(0x1ec))/0xb);if(_0xea36d7===_0x583aaf)break;else _0x525253['push'](_0x525253['shift']());}catch(_0x1c623a){_0x525253['push'](_0x525253['shift']());}}}(a129_0x561c,0x23c71));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{listFlowDefinitions}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const FLOW_STATUSES=['draft',a129_0x1c11e6(0x1f7)];export const flowList={'service':'flow','command':a129_0x1c11e6(0x1da),'description':a129_0x1c11e6(0x1ee),'risk':a129_0x1c11e6(0x1d6),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a129_0x1c11e6(0x1f4),'type':a129_0x1c11e6(0x1e1),'description':a129_0x1c11e6(0x1e3)},{'name':a129_0x1c11e6(0x1eb),'type':a129_0x1c11e6(0x1e1),'description':'Filter\x20by\x20flow\x20name'},{'name':'flow-status','type':a129_0x1c11e6(0x1e1),'description':a129_0x1c11e6(0x1f9),'enum':FLOW_STATUSES},{'name':a129_0x1c11e6(0x1e9),'type':a129_0x1c11e6(0x1e1),'description':a129_0x1c11e6(0x1d7)},{'name':a129_0x1c11e6(0x1dc),'type':a129_0x1c11e6(0x1e1),'description':'Filter\x20by\x20flow\x20type'},{'name':'page','type':'number','description':a129_0x1c11e6(0x1d8),'default':0x1},{'name':a129_0x1c11e6(0x1d5),'type':'number','description':'Page\x20size','default':0x14}],async 'validate'(_0x3e2df9){const _0x394ac0=a129_0x1c11e6,_0x29c00f=_0x3e2df9[_0x394ac0(0x1d9)](_0x394ac0(0x1f2),0x1),_0x4579fe=_0x3e2df9[_0x394ac0(0x1d9)]('page-size',0x14);if(!Number[_0x394ac0(0x1f3)](_0x29c00f)||_0x29c00f<0x1)throw CliErrors[_0x394ac0(0x1f8)](_0x394ac0(0x1f6));if(!Number[_0x394ac0(0x1f3)](_0x4579fe)||_0x4579fe<0x1)throw CliErrors['validation'](_0x394ac0(0x1f0));},async 'execute'(_0x1e7406){const _0x44f0fc=a129_0x1c11e6,{items:_0x378145,paging:_0x355141}=await listFlowDefinitions(_0x1e7406[_0x44f0fc(0x1dd)],{'flowCode':optionalString(_0x1e7406[_0x44f0fc(0x1f1)](_0x44f0fc(0x1f4))),'flowName':optionalString(_0x1e7406[_0x44f0fc(0x1f1)](_0x44f0fc(0x1eb))),'flowStatus':optionalString(_0x1e7406[_0x44f0fc(0x1f1)](_0x44f0fc(0x1e8))),'datasetCode':optionalString(_0x1e7406['str'](_0x44f0fc(0x1e9))),'flowType':optionalString(_0x1e7406[_0x44f0fc(0x1f1)](_0x44f0fc(0x1dc))),'pageNum':_0x1e7406['num'](_0x44f0fc(0x1f2),0x1),'pageSize':_0x1e7406['num'](_0x44f0fc(0x1d5),0x14)});return{'ok':!![],'data':{'appCode':_0x1e7406[_0x44f0fc(0x1dd)],'flows':_0x378145,'paging':_0x355141},'message':_0x44f0fc(0x1df)+_0x378145[_0x44f0fc(0x1de)]+_0x44f0fc(0x1ea)};}};function a129_0x53e4(_0x38cef7,_0x3ff4ed){_0x38cef7=_0x38cef7-0x1d5;const _0x561cb9=a129_0x561c();let _0x53e46c=_0x561cb9[_0x38cef7];return _0x53e46c;}function a129_0x561c(){const _0x1184c1=['page-size','read','Filter\x20by\x20dataset\x20code','Page\x20number\x20(1-based)','num','list','680CfENAA','flow-type','appCode','length','Found\x20','15BYPeGH','string','770871JGvQHP','Filter\x20by\x20exact\x20server-generated\x20flow\x20code','278723kWtFID','384708yjHjaI','1653757bDbLCf','1480887YYpyBs','flow-status','dataset-code','\x20flow\x20definition(s)','flow-name','38478tdJjwX','297574WwJcZA','List\x20design-time\x20flow\x20definitions\x20for\x20the\x20current\x20app','8KfKhRo','--page-size\x20must\x20be\x20a\x20positive\x20integer.','str','page','isSafeInteger','flow-code','4TitdLT','--page\x20must\x20be\x20a\x20positive\x20integer.','published','validation','Filter\x20by\x20flow\x20status'];a129_0x561c=function(){return _0x1184c1;};return a129_0x561c();}function optionalString(_0x111dd0){const _0x1f47e9=_0x111dd0['trim']();return _0x1f47e9||undefined;}
1
+ function a129_0x813b(_0x15c2df,_0x323460){_0x15c2df=_0x15c2df-0x1b4;const _0x3f5632=a129_0x3f56();let _0x813bb2=_0x3f5632[_0x15c2df];return _0x813bb2;}const a129_0x3bedea=a129_0x813b;(function(_0x3866af,_0x3b29f6){const _0x34b8c0=a129_0x813b,_0xa9c253=_0x3866af();while(!![]){try{const _0x17af75=-parseInt(_0x34b8c0(0x1ce))/0x1*(parseInt(_0x34b8c0(0x1b6))/0x2)+parseInt(_0x34b8c0(0x1cc))/0x3*(parseInt(_0x34b8c0(0x1c4))/0x4)+-parseInt(_0x34b8c0(0x1cb))/0x5*(parseInt(_0x34b8c0(0x1d1))/0x6)+parseInt(_0x34b8c0(0x1d8))/0x7+parseInt(_0x34b8c0(0x1c2))/0x8*(-parseInt(_0x34b8c0(0x1ba))/0x9)+-parseInt(_0x34b8c0(0x1c1))/0xa*(parseInt(_0x34b8c0(0x1d3))/0xb)+parseInt(_0x34b8c0(0x1c7))/0xc;if(_0x17af75===_0x3b29f6)break;else _0xa9c253['push'](_0xa9c253['shift']());}catch(_0x93cff2){_0xa9c253['push'](_0xa9c253['shift']());}}}(a129_0x3f56,0xc285a));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{listFlowDefinitions}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a129_0x3f56(){const _0x37d817=['1207135mpGuJy','75453CsrLeJ','published','1nvrlFo','trim','Filter\x20by\x20flow\x20name','12SepGWw','num','47905fDVKtw','length','draft','dataset-code','flow-type','10612399ebplCm','isSafeInteger','list','Filter\x20by\x20flow\x20status','658702weZUQe','--page\x20must\x20be\x20a\x20positive\x20integer.','page-size','page','785781zRJdct','Found\x20','validation','--page-size\x20must\x20be\x20a\x20positive\x20integer.','flow-code','Filter\x20by\x20exact\x20server-generated\x20flow\x20code','number','1110Zvfkti','120QuYfPv','flow-name','100gYTOsl','Page\x20size','str','15086100kyGlwA','read','Filter\x20by\x20flow\x20type','string'];a129_0x3f56=function(){return _0x37d817;};return a129_0x3f56();}const FLOW_STATUSES=[a129_0x3bedea(0x1d5),a129_0x3bedea(0x1cd)];export const flowList={'service':'flow','command':a129_0x3bedea(0x1b4),'description':'List\x20design-time\x20flow\x20definitions\x20for\x20the\x20current\x20app','risk':a129_0x3bedea(0x1c8),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a129_0x3bedea(0x1be),'type':a129_0x3bedea(0x1ca),'description':a129_0x3bedea(0x1bf)},{'name':a129_0x3bedea(0x1c3),'type':'string','description':a129_0x3bedea(0x1d0)},{'name':'flow-status','type':'string','description':a129_0x3bedea(0x1b5),'enum':FLOW_STATUSES},{'name':a129_0x3bedea(0x1d6),'type':a129_0x3bedea(0x1ca),'description':'Filter\x20by\x20dataset\x20code'},{'name':a129_0x3bedea(0x1d7),'type':'string','description':a129_0x3bedea(0x1c9)},{'name':'page','type':a129_0x3bedea(0x1c0),'description':'Page\x20number\x20(1-based)','default':0x1},{'name':a129_0x3bedea(0x1b8),'type':a129_0x3bedea(0x1c0),'description':a129_0x3bedea(0x1c5),'default':0x14}],async 'validate'(_0x291482){const _0x207216=a129_0x3bedea,_0x33769b=_0x291482[_0x207216(0x1d2)](_0x207216(0x1b9),0x1),_0x5de5b3=_0x291482['num'](_0x207216(0x1b8),0x14);if(!Number[_0x207216(0x1d9)](_0x33769b)||_0x33769b<0x1)throw CliErrors[_0x207216(0x1bc)](_0x207216(0x1b7));if(!Number[_0x207216(0x1d9)](_0x5de5b3)||_0x5de5b3<0x1)throw CliErrors[_0x207216(0x1bc)](_0x207216(0x1bd));},async 'execute'(_0x326920){const _0x225a6f=a129_0x3bedea,{items:_0x329979,paging:_0x32206d}=await listFlowDefinitions(_0x326920['appCode'],{'flowCode':optionalString(_0x326920['str'](_0x225a6f(0x1be))),'flowName':optionalString(_0x326920[_0x225a6f(0x1c6)]('flow-name')),'flowStatus':optionalString(_0x326920[_0x225a6f(0x1c6)]('flow-status')),'datasetCode':optionalString(_0x326920['str'](_0x225a6f(0x1d6))),'flowType':optionalString(_0x326920[_0x225a6f(0x1c6)](_0x225a6f(0x1d7))),'pageNum':_0x326920[_0x225a6f(0x1d2)](_0x225a6f(0x1b9),0x1),'pageSize':_0x326920['num'](_0x225a6f(0x1b8),0x14)});return{'ok':!![],'data':{'appCode':_0x326920['appCode'],'flows':_0x329979,'paging':_0x32206d},'message':_0x225a6f(0x1bb)+_0x329979[_0x225a6f(0x1d4)]+'\x20flow\x20definition(s)'};}};function optionalString(_0x2e12fb){const _0x410b0=a129_0x3bedea,_0x22d5fe=_0x2e12fb[_0x410b0(0x1cf)]();return _0x22d5fe||undefined;}
@@ -0,0 +1,2 @@
1
+ import type { CommandDefinition } from "../../framework/types.js";
2
+ export declare const flowPageList: CommandDefinition;
@@ -0,0 +1 @@
1
+ const a130_0x2f06ee=a130_0x3447;(function(_0x2675ee,_0x2f358b){const _0x5cd1fc=a130_0x3447,_0x472821=_0x2675ee();while(!![]){try{const _0x1fa2bd=-parseInt(_0x5cd1fc(0x102))/0x1*(-parseInt(_0x5cd1fc(0x11c))/0x2)+parseInt(_0x5cd1fc(0x10c))/0x3*(-parseInt(_0x5cd1fc(0x113))/0x4)+parseInt(_0x5cd1fc(0x103))/0x5*(-parseInt(_0x5cd1fc(0x11a))/0x6)+-parseInt(_0x5cd1fc(0x100))/0x7+-parseInt(_0x5cd1fc(0x104))/0x8*(-parseInt(_0x5cd1fc(0x121))/0x9)+parseInt(_0x5cd1fc(0x108))/0xa*(-parseInt(_0x5cd1fc(0x109))/0xb)+parseInt(_0x5cd1fc(0x11b))/0xc;if(_0x1fa2bd===_0x2f358b)break;else _0x472821['push'](_0x472821['shift']());}catch(_0x50ec61){_0x472821['push'](_0x472821['shift']());}}}(a130_0x4178,0x4ed89));function a130_0x4178(){const _0x5a0b07=['num','10UWOPmj','1677929WDPGni','string','isSafeInteger','9jNxens','List\x20CREATE\x20pages\x20for\x20form-flow\x20binding;\x20--id\x20excludes\x20other\x20flows\x27\x20bindings','length','Found\x20','read','page-size','flag','858364chmzBf','appCode','Filter\x20by\x20page\x20name','flow','name','validation','number','42yoUKdQ','12865488jVfOve','97030BtuZJP','page','trim','\x20form\x20page(s)','Page\x20number\x20(1-based)','9NgEdtX','3102624JVmiCv','page-list','3FMHXhB','20945DqKpDC','2993208kGVSxV','\x20must\x20be\x20a\x20positive\x20integer.','Existing\x20FORM_FLOW\x20definition\x20id\x20(not\x20flow\x20code)'];a130_0x4178=function(){return _0x5a0b07;};return a130_0x4178();}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a130_0x3447(_0x8292fe,_0x12b7fd){_0x8292fe=_0x8292fe-0x100;const _0x41780f=a130_0x4178();let _0x34470e=_0x41780f[_0x8292fe];return _0x34470e;}import{listFlowBindingPages}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';export const flowPageList={'service':a130_0x2f06ee(0x116),'command':a130_0x2f06ee(0x101),'description':a130_0x2f06ee(0x10d),'risk':a130_0x2f06ee(0x110),'flags':[APPCODE_FLAG_OPTIONAL,{'name':'id','type':a130_0x2f06ee(0x119),'description':a130_0x2f06ee(0x106)},{'name':a130_0x2f06ee(0x117),'type':a130_0x2f06ee(0x10a),'description':a130_0x2f06ee(0x115)},{'name':a130_0x2f06ee(0x11d),'type':a130_0x2f06ee(0x119),'default':0x1,'description':a130_0x2f06ee(0x120)},{'name':a130_0x2f06ee(0x111),'type':a130_0x2f06ee(0x119),'default':0x14,'description':'Page\x20size'}],async 'validate'(_0x1eaea4){const _0x4164e2=a130_0x2f06ee;for(const [_0x224c53,_0x33da29]of[[_0x4164e2(0x11d),_0x1eaea4[_0x4164e2(0x107)](_0x4164e2(0x11d),0x1)],['page-size',_0x1eaea4['num']('page-size',0x14)],..._0x1eaea4[_0x4164e2(0x112)]('id')!==undefined?[['id',_0x1eaea4['num']('id')]]:[]]){if(!Number[_0x4164e2(0x10b)](_0x33da29)||_0x33da29<=0x0)throw CliErrors[_0x4164e2(0x118)]('--'+_0x224c53+_0x4164e2(0x105));}},async 'execute'(_0x20d482){const _0x38d6f4=a130_0x2f06ee,_0x46615c=_0x20d482[_0x38d6f4(0x112)]('id')===undefined?undefined:_0x20d482['num']('id'),{items:_0x15295c,paging:_0xe39143}=await listFlowBindingPages(_0x20d482[_0x38d6f4(0x114)],{'currentFlowId':_0x46615c,'name':_0x20d482['str'](_0x38d6f4(0x117))[_0x38d6f4(0x11e)]()||undefined,'currentPage':_0x20d482[_0x38d6f4(0x107)](_0x38d6f4(0x11d),0x1),'pageSize':_0x20d482[_0x38d6f4(0x107)](_0x38d6f4(0x111),0x14)});return{'ok':!![],'data':{'appCode':_0x20d482[_0x38d6f4(0x114)],'currentFlowId':_0x46615c,'pages':_0x15295c,'paging':_0xe39143,'availabilityChecked':_0x46615c!==undefined},'message':_0x38d6f4(0x10f)+_0x15295c[_0x38d6f4(0x10e)]+_0x38d6f4(0x11f)};}};