@lovrabet/rabetbase-cli 2.3.16-beta.4 → 2.3.16-beta.5

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 (560) hide show
  1. package/lib/api/api-doc.d.ts +9 -0
  2. package/lib/api/api-doc.js +1 -1
  3. package/lib/api/fetch-model-list.d.ts +2 -0
  4. package/lib/api/fetch-model-list.js +1 -1
  5. package/lib/api/generate-api-file.d.ts +8 -0
  6. package/lib/api/generate-api-file.js +1 -1
  7. package/lib/auth/auth-server-ui.d.ts +13 -0
  8. package/lib/auth/auth-server-ui.js +1 -1
  9. package/lib/auth/auth-server.d.ts +25 -0
  10. package/lib/auth/auth-server.js +1 -1
  11. package/lib/auth/constant.d.ts +2 -0
  12. package/lib/auth/constant.js +1 -1
  13. package/lib/auth/get-cookie.d.ts +1 -0
  14. package/lib/auth/get-cookie.js +1 -1
  15. package/lib/auth/get-session-user.d.ts +51 -0
  16. package/lib/auth/get-session-user.js +1 -1
  17. package/lib/auth/is-session-valid.d.ts +1 -0
  18. package/lib/auth/is-session-valid.js +1 -1
  19. package/lib/auth/login-success-html.d.ts +5 -0
  20. package/lib/auth/login-success-html.js +1 -1
  21. package/lib/auth/logout.d.ts +1 -0
  22. package/lib/auth/logout.js +1 -1
  23. package/lib/cli-flags.d.ts +12 -0
  24. package/lib/cli-flags.js +1 -1
  25. package/lib/cli.d.ts +2 -0
  26. package/lib/cli.js +1 -1
  27. package/lib/commands/api/generate.d.ts +2 -0
  28. package/lib/commands/api/generate.js +1 -1
  29. package/lib/commands/api/index.d.ts +2 -0
  30. package/lib/commands/api/index.js +1 -1
  31. package/lib/commands/api/list.d.ts +2 -0
  32. package/lib/commands/api/list.js +1 -1
  33. package/lib/commands/api/pull.d.ts +2 -0
  34. package/lib/commands/api/pull.js +1 -1
  35. package/lib/commands/api/shared.d.ts +18 -0
  36. package/lib/commands/api/shared.js +1 -1
  37. package/lib/commands/app/index.d.ts +5 -0
  38. package/lib/commands/app/index.js +1 -1
  39. package/lib/commands/app/list.d.ts +10 -0
  40. package/lib/commands/app/list.js +1 -1
  41. package/lib/commands/app/members-list.d.ts +2 -0
  42. package/lib/commands/app/members-list.js +1 -1
  43. package/lib/commands/app/remote-directory.d.ts +11 -0
  44. package/lib/commands/app/remote-directory.js +1 -1
  45. package/lib/commands/app/shared.d.ts +46 -0
  46. package/lib/commands/app/shared.js +1 -1
  47. package/lib/commands/app-config/delete.d.ts +2 -0
  48. package/lib/commands/app-config/delete.js +1 -1
  49. package/lib/commands/app-config/get.d.ts +2 -0
  50. package/lib/commands/app-config/get.js +1 -1
  51. package/lib/commands/app-config/index.d.ts +2 -0
  52. package/lib/commands/app-config/index.js +1 -1
  53. package/lib/commands/app-config/list.d.ts +2 -0
  54. package/lib/commands/app-config/list.js +1 -1
  55. package/lib/commands/app-config/set.d.ts +2 -0
  56. package/lib/commands/app-config/set.js +1 -1
  57. package/lib/commands/app-config/shared.d.ts +105 -0
  58. package/lib/commands/app-config/shared.js +1 -1
  59. package/lib/commands/auth/index.d.ts +2 -0
  60. package/lib/commands/auth/index.js +1 -1
  61. package/lib/commands/bff/create.d.ts +4 -0
  62. package/lib/commands/bff/create.js +1 -1
  63. package/lib/commands/bff/delete.d.ts +2 -0
  64. package/lib/commands/bff/delete.js +1 -1
  65. package/lib/commands/bff/detail.d.ts +2 -0
  66. package/lib/commands/bff/detail.js +1 -1
  67. package/lib/commands/bff/index.d.ts +5 -0
  68. package/lib/commands/bff/index.js +1 -1
  69. package/lib/commands/bff/list.d.ts +2 -0
  70. package/lib/commands/bff/list.js +1 -1
  71. package/lib/commands/bff/pull.d.ts +2 -0
  72. package/lib/commands/bff/pull.js +1 -1
  73. package/lib/commands/bff/push.d.ts +2 -0
  74. package/lib/commands/bff/push.js +1 -1
  75. package/lib/commands/bff/status.d.ts +2 -0
  76. package/lib/commands/bff/status.js +1 -1
  77. package/lib/commands/cli-skill/index.d.ts +8 -0
  78. package/lib/commands/cli-skill/index.js +1 -1
  79. package/lib/commands/cli-update.d.ts +2 -0
  80. package/lib/commands/cli-update.js +1 -1
  81. package/lib/commands/codegen/index.d.ts +2 -0
  82. package/lib/commands/codegen/index.js +1 -1
  83. package/lib/commands/codegen/sdk.d.ts +2 -0
  84. package/lib/commands/codegen/sdk.js +1 -1
  85. package/lib/commands/codegen/sql.d.ts +2 -0
  86. package/lib/commands/codegen/sql.js +1 -1
  87. package/lib/commands/common/app-registry.d.ts +17 -0
  88. package/lib/commands/common/app-registry.js +1 -1
  89. package/lib/commands/common/app-selector.d.ts +17 -0
  90. package/lib/commands/common/app-selector.js +1 -1
  91. package/lib/commands/common/async-task.d.ts +11 -0
  92. package/lib/commands/common/async-task.js +1 -1
  93. package/lib/commands/common/dry-run.d.ts +12 -0
  94. package/lib/commands/common/dry-run.js +1 -1
  95. package/lib/commands/common/flags.d.ts +26 -0
  96. package/lib/commands/common/flags.js +1 -1
  97. package/lib/commands/common/local-file.d.ts +6 -0
  98. package/lib/commands/common/local-file.js +1 -1
  99. package/lib/commands/common/validate.d.ts +13 -0
  100. package/lib/commands/common/validate.js +1 -1
  101. package/lib/commands/config/get.d.ts +5 -0
  102. package/lib/commands/config/get.js +1 -1
  103. package/lib/commands/config/index.d.ts +5 -0
  104. package/lib/commands/config/index.js +1 -1
  105. package/lib/commands/config/list.d.ts +5 -0
  106. package/lib/commands/config/list.js +1 -1
  107. package/lib/commands/config/set.d.ts +5 -0
  108. package/lib/commands/config/set.js +1 -1
  109. package/lib/commands/config/shared.d.ts +16 -0
  110. package/lib/commands/config/shared.js +1 -1
  111. package/lib/commands/data/filter.d.ts +7 -0
  112. package/lib/commands/data/filter.js +1 -1
  113. package/lib/commands/data/getOne.d.ts +7 -0
  114. package/lib/commands/data/getOne.js +1 -1
  115. package/lib/commands/data/index.d.ts +8 -0
  116. package/lib/commands/data/index.js +1 -1
  117. package/lib/commands/data/shared.d.ts +33 -0
  118. package/lib/commands/data/shared.js +1 -1
  119. package/lib/commands/dataset/business-group-update.d.ts +18 -0
  120. package/lib/commands/dataset/business-group-update.js +1 -1
  121. package/lib/commands/dataset/capability.d.ts +11 -0
  122. package/lib/commands/dataset/capability.js +1 -1
  123. package/lib/commands/dataset/delete.d.ts +2 -0
  124. package/lib/commands/dataset/delete.js +1 -1
  125. package/lib/commands/dataset/detail.d.ts +2 -0
  126. package/lib/commands/dataset/detail.js +1 -1
  127. package/lib/commands/dataset/extend-update.d.ts +26 -0
  128. package/lib/commands/dataset/extend-update.js +1 -1
  129. package/lib/commands/dataset/field-update.d.ts +27 -0
  130. package/lib/commands/dataset/field-update.js +1 -1
  131. package/lib/commands/dataset/generate.d.ts +3 -0
  132. package/lib/commands/dataset/generate.js +1 -1
  133. package/lib/commands/dataset/index.d.ts +2 -0
  134. package/lib/commands/dataset/index.js +1 -1
  135. package/lib/commands/dataset/list.d.ts +2 -0
  136. package/lib/commands/dataset/list.js +1 -1
  137. package/lib/commands/dataset/operations.d.ts +2 -0
  138. package/lib/commands/dataset/operations.js +1 -1
  139. package/lib/commands/dataset/relation-audit.d.ts +2 -0
  140. package/lib/commands/dataset/relation-audit.js +1 -1
  141. package/lib/commands/dataset/relation-create.d.ts +2 -0
  142. package/lib/commands/dataset/relation-create.js +1 -1
  143. package/lib/commands/dataset/relation-delete.d.ts +2 -0
  144. package/lib/commands/dataset/relation-delete.js +1 -1
  145. package/lib/commands/dataset/relation-shared.d.ts +128 -0
  146. package/lib/commands/dataset/relation-shared.js +1 -1
  147. package/lib/commands/dataset/relation-update.d.ts +2 -0
  148. package/lib/commands/dataset/relation-update.js +1 -1
  149. package/lib/commands/dataset/relations.d.ts +53 -0
  150. package/lib/commands/dataset/relations.js +1 -1
  151. package/lib/commands/dataset/rename.d.ts +17 -0
  152. package/lib/commands/dataset/rename.js +1 -1
  153. package/lib/commands/dataset/restore.d.ts +2 -0
  154. package/lib/commands/dataset/restore.js +1 -1
  155. package/lib/commands/db/analysis-batching.d.ts +30 -0
  156. package/lib/commands/db/analysis-batching.js +1 -1
  157. package/lib/commands/db/analyze-batch-plan.d.ts +2 -0
  158. package/lib/commands/db/analyze-batch-plan.js +1 -1
  159. package/lib/commands/db/analyze-cancel.d.ts +2 -0
  160. package/lib/commands/db/analyze-cancel.js +1 -1
  161. package/lib/commands/db/analyze-start.d.ts +2 -0
  162. package/lib/commands/db/analyze-start.js +1 -1
  163. package/lib/commands/db/analyze-status.d.ts +2 -0
  164. package/lib/commands/db/analyze-status.js +1 -1
  165. package/lib/commands/db/create.d.ts +2 -0
  166. package/lib/commands/db/create.js +1 -1
  167. package/lib/commands/db/delete.d.ts +2 -0
  168. package/lib/commands/db/delete.js +1 -1
  169. package/lib/commands/db/detail.d.ts +2 -0
  170. package/lib/commands/db/detail.js +1 -1
  171. package/lib/commands/db/diff.d.ts +2 -0
  172. package/lib/commands/db/diff.js +1 -1
  173. package/lib/commands/db/index.d.ts +5 -0
  174. package/lib/commands/db/index.js +1 -1
  175. package/lib/commands/db/list.d.ts +2 -0
  176. package/lib/commands/db/list.js +1 -1
  177. package/lib/commands/db/shared.d.ts +15 -0
  178. package/lib/commands/db/shared.js +1 -1
  179. package/lib/commands/db/tables.d.ts +2 -0
  180. package/lib/commands/db/tables.js +1 -1
  181. package/lib/commands/db/test.d.ts +2 -0
  182. package/lib/commands/db/test.js +1 -1
  183. package/lib/commands/db/update.d.ts +2 -0
  184. package/lib/commands/db/update.js +1 -1
  185. package/lib/commands/doctor.d.ts +2 -0
  186. package/lib/commands/doctor.js +1 -1
  187. package/lib/commands/file/index.d.ts +2 -0
  188. package/lib/commands/file/index.js +1 -1
  189. package/lib/commands/init/index.d.ts +11 -0
  190. package/lib/commands/init/index.js +1 -1
  191. package/lib/commands/issue/index.d.ts +2 -0
  192. package/lib/commands/issue/index.js +1 -1
  193. package/lib/commands/issue/nudge.d.ts +23 -0
  194. package/lib/commands/issue/nudge.js +1 -1
  195. package/lib/commands/issue/report.d.ts +2 -0
  196. package/lib/commands/issue/report.js +1 -1
  197. package/lib/commands/issue/shared.d.ts +32 -0
  198. package/lib/commands/issue/shared.js +1 -1
  199. package/lib/commands/kb/create.d.ts +2 -0
  200. package/lib/commands/kb/create.js +1 -1
  201. package/lib/commands/kb/delete.d.ts +2 -0
  202. package/lib/commands/kb/delete.js +1 -1
  203. package/lib/commands/kb/detail.d.ts +2 -0
  204. package/lib/commands/kb/detail.js +1 -1
  205. package/lib/commands/kb/index.d.ts +2 -0
  206. package/lib/commands/kb/index.js +1 -1
  207. package/lib/commands/kb/list.d.ts +2 -0
  208. package/lib/commands/kb/list.js +1 -1
  209. package/lib/commands/kb/shared.d.ts +33 -0
  210. package/lib/commands/kb/shared.js +1 -1
  211. package/lib/commands/kb/update.d.ts +2 -0
  212. package/lib/commands/kb/update.js +1 -1
  213. package/lib/commands/logs/index.d.ts +5 -0
  214. package/lib/commands/logs/index.js +1 -1
  215. package/lib/commands/menu/asset-update.d.ts +2 -0
  216. package/lib/commands/menu/asset-update.js +1 -1
  217. package/lib/commands/menu/delete.d.ts +2 -0
  218. package/lib/commands/menu/delete.js +1 -1
  219. package/lib/commands/menu/external-link-create.d.ts +3 -0
  220. package/lib/commands/menu/external-link-create.js +1 -1
  221. package/lib/commands/menu/external-link-update.d.ts +2 -0
  222. package/lib/commands/menu/external-link-update.js +1 -1
  223. package/lib/commands/menu/group-create.d.ts +2 -0
  224. package/lib/commands/menu/group-create.js +1 -1
  225. package/lib/commands/menu/group-update.d.ts +2 -0
  226. package/lib/commands/menu/group-update.js +1 -1
  227. package/lib/commands/menu/index.d.ts +17 -0
  228. package/lib/commands/menu/index.js +1 -1
  229. package/lib/commands/menu/list.d.ts +2 -0
  230. package/lib/commands/menu/list.js +1 -1
  231. package/lib/commands/menu/move.d.ts +2 -0
  232. package/lib/commands/menu/move.js +1 -1
  233. package/lib/commands/menu/regroup-start.d.ts +2 -0
  234. package/lib/commands/menu/regroup-start.js +1 -1
  235. package/lib/commands/menu/rename.d.ts +2 -0
  236. package/lib/commands/menu/rename.js +1 -1
  237. package/lib/commands/menu/shared/compare-table.d.ts +27 -0
  238. package/lib/commands/menu/shared/compare-table.js +1 -1
  239. package/lib/commands/menu/shared/delete-plan.d.ts +51 -0
  240. package/lib/commands/menu/shared/delete-plan.js +1 -1
  241. package/lib/commands/menu/shared/facts.d.ts +12 -0
  242. package/lib/commands/menu/shared/facts.js +1 -1
  243. package/lib/commands/menu/shared/index.d.ts +12 -0
  244. package/lib/commands/menu/shared/index.js +1 -1
  245. package/lib/commands/menu/shared/inquirer.d.ts +10 -0
  246. package/lib/commands/menu/shared/inquirer.js +1 -1
  247. package/lib/commands/menu/shared/local-pages.d.ts +12 -0
  248. package/lib/commands/menu/shared/local-pages.js +1 -1
  249. package/lib/commands/menu/shared/logic.d.ts +28 -0
  250. package/lib/commands/menu/shared/logic.js +1 -1
  251. package/lib/commands/menu/shared/mutations.d.ts +69 -0
  252. package/lib/commands/menu/shared/mutations.js +1 -1
  253. package/lib/commands/menu/shared/service.d.ts +17 -0
  254. package/lib/commands/menu/shared/service.js +1 -1
  255. package/lib/commands/menu/shared/sync-core.d.ts +7 -0
  256. package/lib/commands/menu/shared/sync-core.js +1 -1
  257. package/lib/commands/menu/shared/types.d.ts +162 -0
  258. package/lib/commands/menu/shared/update-core.d.ts +11 -0
  259. package/lib/commands/menu/shared/update-core.js +1 -1
  260. package/lib/commands/menu/shared/valid-url.d.ts +6 -0
  261. package/lib/commands/menu/shared/valid-url.js +1 -1
  262. package/lib/commands/menu/sync.d.ts +2 -0
  263. package/lib/commands/menu/sync.js +1 -1
  264. package/lib/commands/notification/config-list.d.ts +2 -0
  265. package/lib/commands/notification/config-list.js +1 -1
  266. package/lib/commands/notification/index.d.ts +2 -0
  267. package/lib/commands/notification/index.js +1 -1
  268. package/lib/commands/ocr/index.d.ts +2 -0
  269. package/lib/commands/ocr/index.js +1 -1
  270. package/lib/commands/page/generate-start.d.ts +2 -0
  271. package/lib/commands/page/generate-start.js +1 -1
  272. package/lib/commands/page/generate-status.d.ts +2 -0
  273. package/lib/commands/page/generate-status.js +1 -1
  274. package/lib/commands/page/index.d.ts +2 -0
  275. package/lib/commands/page/index.js +1 -1
  276. package/lib/commands/page/pull.d.ts +2 -0
  277. package/lib/commands/page/pull.js +1 -1
  278. package/lib/commands/page/push.d.ts +2 -0
  279. package/lib/commands/page/push.js +1 -1
  280. package/lib/commands/page/relation-audit.d.ts +2 -0
  281. package/lib/commands/page/relation-audit.js +1 -1
  282. package/lib/commands/page/restore.d.ts +2 -0
  283. package/lib/commands/page/restore.js +1 -1
  284. package/lib/commands/page/shared.d.ts +105 -0
  285. package/lib/commands/page/shared.js +1 -1
  286. package/lib/commands/page/standard-page-status.d.ts +2 -0
  287. package/lib/commands/page/standard-page-status.js +1 -1
  288. package/lib/commands/page/sync.d.ts +2 -0
  289. package/lib/commands/page/sync.js +1 -1
  290. package/lib/commands/permit/index.d.ts +2 -0
  291. package/lib/commands/permit/index.js +1 -1
  292. package/lib/commands/permit/page-get.d.ts +2 -0
  293. package/lib/commands/permit/page-get.js +1 -1
  294. package/lib/commands/permit/page-set.d.ts +2 -0
  295. package/lib/commands/permit/page-set.js +1 -1
  296. package/lib/commands/permit/role-apis-set.d.ts +2 -0
  297. package/lib/commands/permit/role-apis-set.js +1 -1
  298. package/lib/commands/permit/role-menus-set.d.ts +2 -0
  299. package/lib/commands/permit/role-menus-set.js +1 -1
  300. package/lib/commands/permit/role-menus.d.ts +2 -0
  301. package/lib/commands/permit/role-menus.js +1 -1
  302. package/lib/commands/permit/shared.d.ts +74 -0
  303. package/lib/commands/permit/shared.js +1 -1
  304. package/lib/commands/project/create/enhanced-guided-create.d.ts +7 -0
  305. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  306. package/lib/commands/project/create/format-elapsed.d.ts +1 -0
  307. package/lib/commands/project/create/format-elapsed.js +1 -1
  308. package/lib/commands/project/create/main.d.ts +6 -0
  309. package/lib/commands/project/create/main.js +1 -1
  310. package/lib/commands/project/create/non-interactive.d.ts +9 -0
  311. package/lib/commands/project/create/non-interactive.js +1 -1
  312. package/lib/commands/project/create/project-template-path.d.ts +4 -0
  313. package/lib/commands/project/create/project-template-path.js +1 -1
  314. package/lib/commands/project/create/use-copy-project-template.d.ts +1 -0
  315. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  316. package/lib/commands/project/create/use-format-code.d.ts +1 -0
  317. package/lib/commands/project/create/use-format-code.js +1 -1
  318. package/lib/commands/project/create/use-install-dependencies.d.ts +1 -0
  319. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  320. package/lib/commands/project/index.d.ts +2 -0
  321. package/lib/commands/project/index.js +1 -1
  322. package/lib/commands/project/upgrade.d.ts +1 -0
  323. package/lib/commands/project/upgrade.js +1 -1
  324. package/lib/commands/registry.d.ts +66 -0
  325. package/lib/commands/registry.js +1 -1
  326. package/lib/commands/role/create.d.ts +2 -0
  327. package/lib/commands/role/create.js +1 -1
  328. package/lib/commands/role/delete.d.ts +2 -0
  329. package/lib/commands/role/delete.js +1 -1
  330. package/lib/commands/role/detail.d.ts +2 -0
  331. package/lib/commands/role/detail.js +1 -1
  332. package/lib/commands/role/index.d.ts +2 -0
  333. package/lib/commands/role/index.js +1 -1
  334. package/lib/commands/role/list.d.ts +2 -0
  335. package/lib/commands/role/list.js +1 -1
  336. package/lib/commands/role/shared.d.ts +107 -0
  337. package/lib/commands/role/shared.js +1 -1
  338. package/lib/commands/role/update.d.ts +2 -0
  339. package/lib/commands/role/update.js +1 -1
  340. package/lib/commands/role/user-add.d.ts +2 -0
  341. package/lib/commands/role/user-add.js +1 -1
  342. package/lib/commands/role/user-remove.d.ts +2 -0
  343. package/lib/commands/role/user-remove.js +1 -1
  344. package/lib/commands/role/user-resolve.d.ts +2 -0
  345. package/lib/commands/role/user-resolve.js +1 -1
  346. package/lib/commands/run/index.d.ts +2 -0
  347. package/lib/commands/run/index.js +1 -1
  348. package/lib/commands/schema.d.ts +5 -0
  349. package/lib/commands/schema.js +1 -1
  350. package/lib/commands/sql/create.d.ts +10 -0
  351. package/lib/commands/sql/create.js +1 -1
  352. package/lib/commands/sql/delete.d.ts +5 -0
  353. package/lib/commands/sql/delete.js +1 -1
  354. package/lib/commands/sql/detail.d.ts +2 -0
  355. package/lib/commands/sql/detail.js +1 -1
  356. package/lib/commands/sql/exec.d.ts +2 -0
  357. package/lib/commands/sql/exec.js +1 -1
  358. package/lib/commands/sql/index.d.ts +5 -0
  359. package/lib/commands/sql/index.js +1 -1
  360. package/lib/commands/sql/list.d.ts +2 -0
  361. package/lib/commands/sql/list.js +1 -1
  362. package/lib/commands/sql/pull.d.ts +5 -0
  363. package/lib/commands/sql/pull.js +1 -1
  364. package/lib/commands/sql/push.d.ts +5 -0
  365. package/lib/commands/sql/push.js +1 -1
  366. package/lib/commands/sql/shared.d.ts +23 -0
  367. package/lib/commands/sql/shared.js +1 -1
  368. package/lib/commands/sql/status.d.ts +5 -0
  369. package/lib/commands/sql/status.js +1 -1
  370. package/lib/commands/sql/validate.d.ts +2 -0
  371. package/lib/commands/sql/validate.js +1 -1
  372. package/lib/commands/task/index.d.ts +2 -0
  373. package/lib/commands/task/index.js +1 -1
  374. package/lib/commands/task/status.d.ts +2 -0
  375. package/lib/commands/task/status.js +1 -1
  376. package/lib/commands/tenant/index.d.ts +2 -0
  377. package/lib/commands/tenant/index.js +1 -1
  378. package/lib/commands/tenant/members-list.d.ts +2 -0
  379. package/lib/commands/tenant/members-list.js +1 -1
  380. package/lib/commands/tenant/shared.d.ts +10 -0
  381. package/lib/commands/tenant/shared.js +1 -1
  382. package/lib/commands/workspace/add.d.ts +6 -0
  383. package/lib/commands/workspace/add.js +1 -1
  384. package/lib/commands/workspace/index.d.ts +11 -0
  385. package/lib/commands/workspace/index.js +1 -1
  386. package/lib/commands/workspace/remove.d.ts +6 -0
  387. package/lib/commands/workspace/remove.js +1 -1
  388. package/lib/config/schema.d.ts +50 -0
  389. package/lib/config/schema.js +1 -1
  390. package/lib/constant/cdn.d.ts +1 -0
  391. package/lib/constant/cdn.js +1 -1
  392. package/lib/constant/cli.d.ts +34 -0
  393. package/lib/constant/cli.js +1 -1
  394. package/lib/constant/defaults.d.ts +10 -0
  395. package/lib/constant/defaults.js +1 -1
  396. package/lib/constant/domain.d.ts +14 -0
  397. package/lib/constant/domain.js +1 -1
  398. package/lib/constant/env.d.ts +11 -0
  399. package/lib/constant/env.js +1 -1
  400. package/lib/constant/output.d.ts +1 -0
  401. package/lib/constant/output.js +1 -1
  402. package/lib/constant/paths.d.ts +5 -0
  403. package/lib/constant/paths.js +1 -1
  404. package/lib/constant/risk.d.ts +1 -0
  405. package/lib/constant/risk.js +1 -1
  406. package/lib/context/app-resolver.d.ts +36 -0
  407. package/lib/context/app-resolver.js +1 -1
  408. package/lib/context/auth-resolver.d.ts +5 -0
  409. package/lib/context/auth-resolver.js +1 -1
  410. package/lib/context/config-loader.d.ts +61 -0
  411. package/lib/context/config-loader.js +1 -1
  412. package/lib/context.d.ts +102 -0
  413. package/lib/context.js +1 -1
  414. package/lib/core/alias-resolver.d.ts +31 -0
  415. package/lib/core/alias-resolver.js +1 -1
  416. package/lib/core/api-client.d.ts +1018 -0
  417. package/lib/core/api-client.js +1 -1
  418. package/lib/core/bff/config.d.ts +8 -0
  419. package/lib/core/bff/config.js +1 -1
  420. package/lib/core/bff/file-system.d.ts +28 -0
  421. package/lib/core/bff/file-system.js +1 -1
  422. package/lib/core/bff/hash.d.ts +7 -0
  423. package/lib/core/bff/hash.js +1 -1
  424. package/lib/core/bff/lock.d.ts +25 -0
  425. package/lib/core/bff/lock.js +1 -1
  426. package/lib/core/bff/types.d.ts +92 -0
  427. package/lib/core/bff/utils.d.ts +25 -0
  428. package/lib/core/bff/utils.js +1 -1
  429. package/lib/core/db-resolver.d.ts +43 -0
  430. package/lib/core/db-resolver.js +1 -1
  431. package/lib/core/page/file-system.d.ts +6 -0
  432. package/lib/core/page/file-system.js +1 -1
  433. package/lib/core/page/hash.d.ts +4 -0
  434. package/lib/core/page/hash.js +1 -1
  435. package/lib/core/page/lock.d.ts +8 -0
  436. package/lib/core/page/lock.js +1 -1
  437. package/lib/core/page/types.d.ts +22 -0
  438. package/lib/core/sql-index-auditor.d.ts +33 -0
  439. package/lib/core/sql-index-auditor.js +1 -1
  440. package/lib/core/sql-sync/config.d.ts +7 -0
  441. package/lib/core/sql-sync/config.js +1 -1
  442. package/lib/core/sql-sync/file-system.d.ts +7 -0
  443. package/lib/core/sql-sync/file-system.js +1 -1
  444. package/lib/core/sql-sync/hash.d.ts +5 -0
  445. package/lib/core/sql-sync/hash.js +1 -1
  446. package/lib/core/sql-sync/lock.d.ts +14 -0
  447. package/lib/core/sql-sync/lock.js +1 -1
  448. package/lib/core/sql-sync/types.d.ts +43 -0
  449. package/lib/core/sql-sync/utils.d.ts +10 -0
  450. package/lib/core/sql-sync/utils.js +1 -1
  451. package/lib/core/sql-validator.d.ts +34 -0
  452. package/lib/core/sql-validator.js +1 -1
  453. package/lib/errors.d.ts +3 -0
  454. package/lib/errors.js +1 -1
  455. package/lib/framework/build-all-flags.d.ts +2 -0
  456. package/lib/framework/build-all-flags.js +1 -1
  457. package/lib/framework/error-output.d.ts +9 -0
  458. package/lib/framework/error-output.js +1 -1
  459. package/lib/framework/explicit-yes.d.ts +3 -0
  460. package/lib/framework/explicit-yes.js +1 -1
  461. package/lib/framework/flags.d.ts +3 -0
  462. package/lib/framework/flags.js +1 -1
  463. package/lib/framework/help.d.ts +4 -0
  464. package/lib/framework/help.js +1 -1
  465. package/lib/framework/index.d.ts +11 -0
  466. package/lib/framework/index.js +1 -1
  467. package/lib/framework/output.d.ts +15 -0
  468. package/lib/framework/output.js +1 -1
  469. package/lib/framework/response.d.ts +2 -0
  470. package/lib/framework/response.js +1 -1
  471. package/lib/framework/runner-alias.d.ts +14 -0
  472. package/lib/framework/runner-alias.js +1 -1
  473. package/lib/framework/runner.d.ts +36 -0
  474. package/lib/framework/runner.js +1 -1
  475. package/lib/framework/schema-export.d.ts +3 -0
  476. package/lib/framework/schema-export.js +1 -1
  477. package/lib/framework/types.d.ts +63 -0
  478. package/lib/framework/types.js +1 -1
  479. package/lib/generated/build-info.d.ts +4 -0
  480. package/lib/generated/build-info.js +1 -1
  481. package/lib/help.d.ts +1 -0
  482. package/lib/help.js +1 -1
  483. package/lib/runtime/confirmation.d.ts +4 -0
  484. package/lib/runtime/confirmation.js +1 -0
  485. package/lib/runtime/event.d.ts +5 -0
  486. package/lib/runtime/event.js +1 -0
  487. package/lib/runtime/index.d.ts +7 -0
  488. package/lib/runtime/index.js +1 -0
  489. package/lib/runtime/queue.d.ts +5 -0
  490. package/lib/runtime/queue.js +1 -0
  491. package/lib/runtime/resolve.d.ts +8 -0
  492. package/lib/runtime/resolve.js +1 -0
  493. package/lib/runtime/types.d.ts +50 -0
  494. package/lib/runtime/types.js +1 -0
  495. package/lib/skills/main.d.ts +41 -0
  496. package/lib/skills/main.js +1 -1
  497. package/lib/skills/npx-skills-add.d.ts +99 -0
  498. package/lib/skills/npx-skills-add.js +1 -1
  499. package/lib/skills/skill-presence.d.ts +44 -0
  500. package/lib/skills/skill-presence.js +1 -1
  501. package/lib/telemetry/cli-command-trace.d.ts +12 -0
  502. package/lib/telemetry/cli-command-trace.js +1 -1
  503. package/lib/telemetry/cli-help-trace.d.ts +8 -0
  504. package/lib/telemetry/cli-help-trace.js +1 -1
  505. package/lib/telemetry/ensure-cli-otel-config.d.ts +6 -0
  506. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  507. package/lib/telemetry/register-otel-exit-shutdown.d.ts +3 -0
  508. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  509. package/lib/telemetry/send-cli-trace-log.d.ts +17 -0
  510. package/lib/telemetry/send-cli-trace-log.js +1 -1
  511. package/lib/telemetry/send-platform-issue-collect-log.d.ts +26 -0
  512. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  513. package/lib/types/index.d.ts +93 -0
  514. package/lib/utils/ai_config.d.ts +47 -0
  515. package/lib/utils/ai_config.js +1 -1
  516. package/lib/utils/apply-jq-filter.d.ts +1 -0
  517. package/lib/utils/apply-jq-filter.js +1 -1
  518. package/lib/utils/cdn-config.d.ts +42 -0
  519. package/lib/utils/cdn-config.js +1 -1
  520. package/lib/utils/check-sdk-version.d.ts +23 -0
  521. package/lib/utils/check-sdk-version.js +1 -1
  522. package/lib/utils/cli-version-check.d.ts +37 -0
  523. package/lib/utils/cli-version-check.js +1 -1
  524. package/lib/utils/cli-version-policy.d.ts +9 -0
  525. package/lib/utils/cli-version-policy.js +1 -1
  526. package/lib/utils/config.d.ts +42 -0
  527. package/lib/utils/config.js +1 -1
  528. package/lib/utils/copy-directory.d.ts +1 -0
  529. package/lib/utils/copy-directory.js +1 -1
  530. package/lib/utils/entity-with-id.d.ts +30 -0
  531. package/lib/utils/entity-with-id.js +1 -1
  532. package/lib/utils/file-utils.d.ts +25 -0
  533. package/lib/utils/file-utils.js +1 -1
  534. package/lib/utils/guides-cdn.d.ts +80 -0
  535. package/lib/utils/guides-cdn.js +1 -1
  536. package/lib/utils/http-client.d.ts +30 -0
  537. package/lib/utils/http-client.js +1 -1
  538. package/lib/utils/is-non-interactive.d.ts +7 -0
  539. package/lib/utils/is-non-interactive.js +1 -1
  540. package/lib/utils/logger.d.ts +62 -0
  541. package/lib/utils/logger.js +1 -1
  542. package/lib/utils/params.d.ts +15 -0
  543. package/lib/utils/params.js +1 -1
  544. package/lib/utils/platform.d.ts +21 -0
  545. package/lib/utils/platform.js +1 -1
  546. package/lib/utils/rules-cdn.d.ts +38 -0
  547. package/lib/utils/rules-cdn.js +1 -1
  548. package/lib/utils/sleep.d.ts +1 -0
  549. package/lib/utils/sleep.js +1 -1
  550. package/lib/utils/template-replacer.d.ts +55 -0
  551. package/lib/utils/template-replacer.js +1 -1
  552. package/lib/utils/update-notice.d.ts +10 -0
  553. package/lib/utils/update-notice.js +1 -1
  554. package/lib/utils/version.d.ts +1 -0
  555. package/lib/utils/version.js +1 -1
  556. package/lib/utils/with-active-cookie.d.ts +1 -0
  557. package/lib/utils/with-active-cookie.js +1 -1
  558. package/lib/utils/write-cli-side-channel.d.ts +6 -0
  559. package/lib/utils/write-cli-side-channel.js +1 -1
  560. package/package.json +9 -1
@@ -1 +1 @@
1
- function a77_0x4d05(){const _0x22d614=['validation','utf8','At\x20least\x20one\x20table\x20name\x20is\x20required\x20for\x20database\x20analysis\x20planning.','142429qmvvYy','239700ENrzQh','87MbmjUP','18532AAvquU','\x22\x20cannot\x20fit\x20in\x20one\x20database\x20analysis\x20batch:\x20','1541875jPYmNF','trim','19100MDJrbo','heuristic','5264168vzZzlj','\x20bytes,\x20limit\x20','add','length','push','split','600006OIijyR','byteLength','\x20bytes.'];a77_0x4d05=function(){return _0x22d614;};return a77_0x4d05();}(function(_0x14b58a,_0x46e92a){const _0xdf2bb2=a77_0x91a6,_0x26d19c=_0x14b58a();while(!![]){try{const _0x2867a1=-parseInt(_0xdf2bb2(0x72))/0x1+-parseInt(_0xdf2bb2(0x78))/0x2+-parseInt(_0xdf2bb2(0x73))/0x3*(-parseInt(_0xdf2bb2(0x74))/0x4)+-parseInt(_0xdf2bb2(0x76))/0x5+-parseInt(_0xdf2bb2(0x6b))/0x6+parseInt(_0xdf2bb2(0x71))/0x7+parseInt(_0xdf2bb2(0x7a))/0x8;if(_0x2867a1===_0x46e92a)break;else _0x26d19c['push'](_0x26d19c['shift']());}catch(_0x1a3b6a){_0x26d19c['push'](_0x26d19c['shift']());}}}(a77_0x4d05,0x25ddb));import{CliErrors}from'../../errors.js';function a77_0x91a6(_0x2e0e71,_0x2b1911){_0x2e0e71=_0x2e0e71-0x6a;const _0x4d053f=a77_0x4d05();let _0x91a62=_0x4d053f[_0x2e0e71];return _0x91a62;}export const DB_ANALYSIS_MAX_TABLES_PER_BATCH=0xa;export const DB_ANALYSIS_BATCH_TARGET_BYTES=0x3c0;export const DB_ANALYSIS_SERVER_INPUT_LIMIT_BYTES=0x400;export const DB_ANALYSIS_ESTIMATED_SECONDS_PER_TABLE=0x3c;export function normalizeAnalysisTableNames(_0x377dca){const _0x5a1a2f=a77_0x91a6,_0x126d71=new Set(),_0x202eda=[];for(const _0x48e5d9 of _0x377dca[_0x5a1a2f(0x6a)](',')){const _0x5935f5=_0x48e5d9[_0x5a1a2f(0x77)]();if(!_0x5935f5||_0x126d71['has'](_0x5935f5))continue;_0x126d71[_0x5a1a2f(0x7c)](_0x5935f5),_0x202eda['push'](_0x5935f5);}return _0x202eda;}export function measureAnalysisInputParamsBytes(_0x1ccbe4,_0x4a7aef){const _0x440379=a77_0x91a6;return Buffer[_0x440379(0x6c)](JSON['stringify']({'dbLinkId':_0x1ccbe4,'tableNames':_0x4a7aef}),_0x440379(0x6f));}export function buildAnalysisBatchPlan(_0x8e3070,_0x668f81){const _0x7740b7=a77_0x91a6;if(_0x668f81['length']===0x0)throw CliErrors[_0x7740b7(0x6e)](_0x7740b7(0x70));const _0x250018=[];let _0x5e35a1=[];for(const _0x2bf3f8 of _0x668f81){const _0x516ad2=[..._0x5e35a1,_0x2bf3f8],_0x5e16d8=_0x516ad2[_0x7740b7(0x7d)]>DB_ANALYSIS_MAX_TABLES_PER_BATCH||measureAnalysisInputParamsBytes(_0x8e3070,_0x516ad2)>DB_ANALYSIS_BATCH_TARGET_BYTES;_0x5e16d8&&_0x5e35a1[_0x7740b7(0x7d)]>0x0?(_0x250018[_0x7740b7(0x7e)](_0x5e35a1),_0x5e35a1=[_0x2bf3f8]):_0x5e35a1=_0x516ad2;const _0x351d4a=measureAnalysisInputParamsBytes(_0x8e3070,_0x5e35a1);if(_0x351d4a>DB_ANALYSIS_BATCH_TARGET_BYTES)throw CliErrors[_0x7740b7(0x6e)]('Table\x20\x22'+_0x2bf3f8+_0x7740b7(0x75)+_0x351d4a+_0x7740b7(0x7b)+DB_ANALYSIS_BATCH_TARGET_BYTES+_0x7740b7(0x6d));}_0x5e35a1[_0x7740b7(0x7d)]>0x0&&_0x250018[_0x7740b7(0x7e)](_0x5e35a1);const _0x23e4b1=_0x250018['map']((_0x194370,_0x3f3b1e)=>({'index':_0x3f3b1e+0x1,'tableCount':_0x194370[_0x7740b7(0x7d)],'inputParamsBytes':measureAnalysisInputParamsBytes(_0x8e3070,_0x194370),'estimatedDurationSeconds':_0x194370['length']*DB_ANALYSIS_ESTIMATED_SECONDS_PER_TABLE,'tableNames':_0x194370})),_0x13cb95=_0x668f81[_0x7740b7(0x7d)]*DB_ANALYSIS_ESTIMATED_SECONDS_PER_TABLE;return{'dbLinkId':_0x8e3070,'tableCount':_0x668f81[_0x7740b7(0x7d)],'batchCount':_0x23e4b1[_0x7740b7(0x7d)],'maxTablesPerBatch':DB_ANALYSIS_MAX_TABLES_PER_BATCH,'maxSerializedBytesPerBatch':DB_ANALYSIS_BATCH_TARGET_BYTES,'serverInputParamsLimitBytes':DB_ANALYSIS_SERVER_INPUT_LIMIT_BYTES,'planningEstimate':{'basis':_0x7740b7(0x79),'assumedSecondsPerTable':DB_ANALYSIS_ESTIMATED_SECONDS_PER_TABLE,'estimatedTotalSeconds':_0x13cb95,'estimatedTotalMinutes':Math['ceil'](_0x13cb95/0x3c)},'batches':_0x23e4b1};}
1
+ (function(_0x19cb1,_0x580350){const _0x195af8=a77_0x8098,_0x1b26c9=_0x19cb1();while(!![]){try{const _0x49b76f=-parseInt(_0x195af8(0x1f4))/0x1+-parseInt(_0x195af8(0x1fa))/0x2+-parseInt(_0x195af8(0x1f8))/0x3+-parseInt(_0x195af8(0x202))/0x4+-parseInt(_0x195af8(0x201))/0x5*(-parseInt(_0x195af8(0x1fb))/0x6)+parseInt(_0x195af8(0x1f1))/0x7+parseInt(_0x195af8(0x1f9))/0x8;if(_0x49b76f===_0x580350)break;else _0x1b26c9['push'](_0x1b26c9['shift']());}catch(_0x4eedc6){_0x1b26c9['push'](_0x1b26c9['shift']());}}}(a77_0x14b4,0x36454));import{CliErrors}from'../../errors.js';export const DB_ANALYSIS_MAX_TABLES_PER_BATCH=0xa;function a77_0x8098(_0xf5f316,_0x368a1a){_0xf5f316=_0xf5f316-0x1f1;const _0x14b4d5=a77_0x14b4();let _0x8098ee=_0x14b4d5[_0xf5f316];return _0x8098ee;}function a77_0x14b4(){const _0x421913=['split','At\x20least\x20one\x20table\x20name\x20is\x20required\x20for\x20database\x20analysis\x20planning.','2072959xRamoO','push','\x20bytes,\x20limit\x20','52891iexwke','heuristic','add','Table\x20\x22','1183950OwAfjy','5948232pSAGng','790830usmPYK','18GfUDeo','\x22\x20cannot\x20fit\x20in\x20one\x20database\x20analysis\x20batch:\x20','map','ceil','stringify','validation','210765usmPQN','403508rEKJVS','length','\x20bytes.','trim'];a77_0x14b4=function(){return _0x421913;};return a77_0x14b4();}export const DB_ANALYSIS_BATCH_TARGET_BYTES=0x3c0;export const DB_ANALYSIS_SERVER_INPUT_LIMIT_BYTES=0x400;export const DB_ANALYSIS_ESTIMATED_SECONDS_PER_TABLE=0x3c;export function normalizeAnalysisTableNames(_0x135633){const _0x292af3=a77_0x8098,_0x2eb09a=new Set(),_0x17d076=[];for(const _0x3413a3 of _0x135633[_0x292af3(0x206)](',')){const _0x4ff40f=_0x3413a3[_0x292af3(0x205)]();if(!_0x4ff40f||_0x2eb09a['has'](_0x4ff40f))continue;_0x2eb09a[_0x292af3(0x1f6)](_0x4ff40f),_0x17d076['push'](_0x4ff40f);}return _0x17d076;}export function measureAnalysisInputParamsBytes(_0x4a73db,_0x211267){const _0x5b610a=a77_0x8098;return Buffer['byteLength'](JSON[_0x5b610a(0x1ff)]({'dbLinkId':_0x4a73db,'tableNames':_0x211267}),'utf8');}export function buildAnalysisBatchPlan(_0x11022b,_0x5ce462){const _0x4f4ded=a77_0x8098;if(_0x5ce462[_0x4f4ded(0x203)]===0x0)throw CliErrors[_0x4f4ded(0x200)](_0x4f4ded(0x207));const _0x545e4e=[];let _0x1c2d82=[];for(const _0xafe46b of _0x5ce462){const _0x400508=[..._0x1c2d82,_0xafe46b],_0x18c814=_0x400508[_0x4f4ded(0x203)]>DB_ANALYSIS_MAX_TABLES_PER_BATCH||measureAnalysisInputParamsBytes(_0x11022b,_0x400508)>DB_ANALYSIS_BATCH_TARGET_BYTES;_0x18c814&&_0x1c2d82[_0x4f4ded(0x203)]>0x0?(_0x545e4e[_0x4f4ded(0x1f2)](_0x1c2d82),_0x1c2d82=[_0xafe46b]):_0x1c2d82=_0x400508;const _0xfb02ed=measureAnalysisInputParamsBytes(_0x11022b,_0x1c2d82);if(_0xfb02ed>DB_ANALYSIS_BATCH_TARGET_BYTES)throw CliErrors[_0x4f4ded(0x200)](_0x4f4ded(0x1f7)+_0xafe46b+_0x4f4ded(0x1fc)+_0xfb02ed+_0x4f4ded(0x1f3)+DB_ANALYSIS_BATCH_TARGET_BYTES+_0x4f4ded(0x204));}_0x1c2d82[_0x4f4ded(0x203)]>0x0&&_0x545e4e[_0x4f4ded(0x1f2)](_0x1c2d82);const _0x4a86aa=_0x545e4e[_0x4f4ded(0x1fd)]((_0x2919eb,_0x2bea24)=>({'index':_0x2bea24+0x1,'tableCount':_0x2919eb[_0x4f4ded(0x203)],'inputParamsBytes':measureAnalysisInputParamsBytes(_0x11022b,_0x2919eb),'estimatedDurationSeconds':_0x2919eb[_0x4f4ded(0x203)]*DB_ANALYSIS_ESTIMATED_SECONDS_PER_TABLE,'tableNames':_0x2919eb})),_0x26d4a0=_0x5ce462[_0x4f4ded(0x203)]*DB_ANALYSIS_ESTIMATED_SECONDS_PER_TABLE;return{'dbLinkId':_0x11022b,'tableCount':_0x5ce462[_0x4f4ded(0x203)],'batchCount':_0x4a86aa[_0x4f4ded(0x203)],'maxTablesPerBatch':DB_ANALYSIS_MAX_TABLES_PER_BATCH,'maxSerializedBytesPerBatch':DB_ANALYSIS_BATCH_TARGET_BYTES,'serverInputParamsLimitBytes':DB_ANALYSIS_SERVER_INPUT_LIMIT_BYTES,'planningEstimate':{'basis':_0x4f4ded(0x1f5),'assumedSecondsPerTable':DB_ANALYSIS_ESTIMATED_SECONDS_PER_TABLE,'estimatedTotalSeconds':_0x26d4a0,'estimatedTotalMinutes':Math[_0x4f4ded(0x1fe)](_0x26d4a0/0x3c)},'batches':_0x4a86aa};}
@@ -0,0 +1,2 @@
1
+ import type { CommandDefinition } from "../../framework/types.js";
2
+ export declare const dbAnalyzeBatchPlan: CommandDefinition;
@@ -1 +1 @@
1
- const a78_0x3d81a7=a78_0xa9db;(function(_0x202037,_0x5818ec){const _0x20c8de=a78_0xa9db,_0x34b2fd=_0x202037();while(!![]){try{const _0x2cae8d=-parseInt(_0x20c8de(0x9b))/0x1+parseInt(_0x20c8de(0xac))/0x2+-parseInt(_0x20c8de(0x99))/0x3*(-parseInt(_0x20c8de(0x97))/0x4)+parseInt(_0x20c8de(0x9d))/0x5+-parseInt(_0x20c8de(0xa5))/0x6*(parseInt(_0x20c8de(0xa2))/0x7)+parseInt(_0x20c8de(0x9e))/0x8*(-parseInt(_0x20c8de(0xab))/0x9)+parseInt(_0x20c8de(0xa8))/0xa*(-parseInt(_0x20c8de(0xa9))/0xb);if(_0x2cae8d===_0x5818ec)break;else _0x34b2fd['push'](_0x34b2fd['shift']());}catch(_0x274707){_0x34b2fd['push'](_0x34b2fd['shift']());}}}(a78_0x2c6e,0x90af5));import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a78_0x2c6e(){const _0x21a0d3=['\x20seconds\x20per\x20table;\x20no\x20server\x20task\x20or\x20planId\x20was\x20created','163681odTmow','tableCount','batchCount','24eWTjly','\x20serial\x20batch(es)\x20for\x20db\x20link\x20','\x20minute(s)\x20at\x20','24230vGkDDj','649rFtOyF','estimatedTotalMinutes','1053567sYrUJx','1761266NeIkpP','Comma-separated\x20table\x20names\x20to\x20split\x20into\x20safe\x20serial\x20batches','380BgwUxg','read','11859UXoVvW','analyze-batch-plan','1044302FYFeNv','num','4842205RciTCC','24KikKlb','Preview\x20deterministic\x20local\x20batches\x20and\x20heuristic\x20duration\x20estimates\x20without\x20creating\x20a\x20server\x20task\x20or\x20planId','planningEstimate'];a78_0x2c6e=function(){return _0x21a0d3;};return a78_0x2c6e();}function a78_0xa9db(_0x408051,_0x18697f){_0x408051=_0x408051-0x97;const _0x2c6e4a=a78_0x2c6e();let _0xa9dbb=_0x2c6e4a[_0x408051];return _0xa9dbb;}import{buildAnalysisBatchPlan,normalizeAnalysisTableNames}from'../../commands/db/analysis-batching.js';export const dbAnalyzeBatchPlan={'service':'db','command':a78_0x3d81a7(0x9a),'description':a78_0x3d81a7(0x9f),'risk':a78_0x3d81a7(0x98),'requiresAuth':![],'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':'tables','type':'string','required':!![],'description':a78_0x3d81a7(0xad)}],async 'execute'(_0x203745){const _0x1e49ba=a78_0x3d81a7,_0x1912ea=_0x203745[_0x1e49ba(0x9c)]('id'),_0x143084=normalizeAnalysisTableNames(_0x203745['str']('tables')),_0x5eac52=buildAnalysisBatchPlan(_0x1912ea,_0x143084);return{'ok':!![],'data':_0x5eac52,'message':'Prepared\x20local\x20batch\x20plan\x20for\x20'+_0x5eac52[_0x1e49ba(0xa3)]+'\x20table(s)\x20in\x20'+_0x5eac52[_0x1e49ba(0xa4)]+_0x1e49ba(0xa6)+_0x1912ea+';\x20estimated\x20about\x20'+_0x5eac52[_0x1e49ba(0xa0)][_0x1e49ba(0xaa)]+_0x1e49ba(0xa7)+_0x5eac52[_0x1e49ba(0xa0)]['assumedSecondsPerTable']+_0x1e49ba(0xa1)};}};
1
+ const a78_0x26847c=a78_0x2a23;(function(_0x453c2b,_0x1a7823){const _0x5c1a4b=a78_0x2a23,_0x262da4=_0x453c2b();while(!![]){try{const _0x24b533=parseInt(_0x5c1a4b(0x93))/0x1+parseInt(_0x5c1a4b(0x90))/0x2*(-parseInt(_0x5c1a4b(0x8f))/0x3)+-parseInt(_0x5c1a4b(0xa0))/0x4*(-parseInt(_0x5c1a4b(0x99))/0x5)+parseInt(_0x5c1a4b(0x98))/0x6+parseInt(_0x5c1a4b(0x89))/0x7*(parseInt(_0x5c1a4b(0xa1))/0x8)+parseInt(_0x5c1a4b(0x96))/0x9+-parseInt(_0x5c1a4b(0xa5))/0xa*(parseInt(_0x5c1a4b(0xa3))/0xb);if(_0x24b533===_0x1a7823)break;else _0x262da4['push'](_0x262da4['shift']());}catch(_0x248e31){_0x262da4['push'](_0x262da4['shift']());}}}(a78_0x5792,0xe1436));import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a78_0x2a23(_0x1b0df8,_0x1e28d3){_0x1b0df8=_0x1b0df8-0x89;const _0x57922f=a78_0x5792();let _0x2a2386=_0x57922f[_0x1b0df8];return _0x2a2386;}import{buildAnalysisBatchPlan,normalizeAnalysisTableNames}from'../../commands/db/analysis-batching.js';function a78_0x5792(){const _0x40670c=['estimatedTotalMinutes','batchCount','15749919jrmtDu','planningEstimate','4470300mcXskn','475QnrcEH','read','analyze-batch-plan','Preview\x20deterministic\x20local\x20batches\x20and\x20heuristic\x20duration\x20estimates\x20without\x20creating\x20a\x20server\x20task\x20or\x20planId','num','\x20table(s)\x20in\x20','tables','32396TDLOUq','159304WvXcXq','str','11sVVRen','\x20serial\x20batch(es)\x20for\x20db\x20link\x20','27627050cAmKyb','294rbYWDY',';\x20estimated\x20about\x20','tableCount','\x20seconds\x20per\x20table;\x20no\x20server\x20task\x20or\x20planId\x20was\x20created','\x20minute(s)\x20at\x20','assumedSecondsPerTable','3HwCjCX','1579064lOPAlP','Comma-separated\x20table\x20names\x20to\x20split\x20into\x20safe\x20serial\x20batches','Prepared\x20local\x20batch\x20plan\x20for\x20','374123KdlZDp'];a78_0x5792=function(){return _0x40670c;};return a78_0x5792();}export const dbAnalyzeBatchPlan={'service':'db','command':a78_0x26847c(0x9b),'description':a78_0x26847c(0x9c),'risk':a78_0x26847c(0x9a),'requiresAuth':![],'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':a78_0x26847c(0x9f),'type':'string','required':!![],'description':a78_0x26847c(0x91)}],async 'execute'(_0xf210ca){const _0x15503d=a78_0x26847c,_0x355c98=_0xf210ca[_0x15503d(0x9d)]('id'),_0x386a61=normalizeAnalysisTableNames(_0xf210ca[_0x15503d(0xa2)](_0x15503d(0x9f))),_0x5c1278=buildAnalysisBatchPlan(_0x355c98,_0x386a61);return{'ok':!![],'data':_0x5c1278,'message':_0x15503d(0x92)+_0x5c1278[_0x15503d(0x8b)]+_0x15503d(0x9e)+_0x5c1278[_0x15503d(0x95)]+_0x15503d(0xa4)+_0x355c98+_0x15503d(0x8a)+_0x5c1278[_0x15503d(0x97)][_0x15503d(0x94)]+_0x15503d(0x8d)+_0x5c1278['planningEstimate'][_0x15503d(0x8e)]+_0x15503d(0x8c)};}};
@@ -0,0 +1,2 @@
1
+ import type { CommandDefinition } from "../../framework/types.js";
2
+ export declare const dbAnalyzeCancel: CommandDefinition;
@@ -1 +1 @@
1
- const a79_0x5eb160=a79_0x408f;(function(_0x57058d,_0x294399){const _0x4434ae=a79_0x408f,_0xf71b43=_0x57058d();while(!![]){try{const _0x2f650d=parseInt(_0x4434ae(0x1ac))/0x1*(parseInt(_0x4434ae(0x1ab))/0x2)+-parseInt(_0x4434ae(0x19e))/0x3*(parseInt(_0x4434ae(0x1a8))/0x4)+parseInt(_0x4434ae(0x1a1))/0x5+-parseInt(_0x4434ae(0x1a5))/0x6+-parseInt(_0x4434ae(0x1a3))/0x7+parseInt(_0x4434ae(0x1a0))/0x8+parseInt(_0x4434ae(0x1a2))/0x9*(parseInt(_0x4434ae(0x1ae))/0xa);if(_0x2f650d===_0x294399)break;else _0xf71b43['push'](_0xf71b43['shift']());}catch(_0x54b1e5){_0xf71b43['push'](_0xf71b43['shift']());}}}(a79_0x8586,0xc9568));import{cancelDbAnalysis}from'../../core/api-client.js';function a79_0x408f(_0x8ac4e9,_0x156895){_0x8ac4e9=_0x8ac4e9-0x19e;const _0x858655=a79_0x8586();let _0x408f44=_0x858655[_0x8ac4e9];return _0x408f44;}function a79_0x8586(){const _0x408a67=['analyze-cancel','plan','4DyfJBb','107323TIvnzB','write','110wcuQnk','188289iHlRhw','Existing\x20analysis\x20plan\x20/\x20trace\x20id\x20to\x20cancel','639504mfzJZp','2541755CGnOmI','1669374RHlOqD','11006079iDSSTu','Cancel\x20an\x20existing\x20schema\x20analysis\x20by\x20explicit\x20plan\x20/\x20trace\x20id','1171512LxYTae','string','Cancel\x20requested\x20for\x20plan\x20','16IFhsMn'];a79_0x8586=function(){return _0x408a67;};return a79_0x8586();}import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';export const dbAnalyzeCancel={'service':'db','command':a79_0x5eb160(0x1a9),'description':a79_0x5eb160(0x1a4),'risk':a79_0x5eb160(0x1ad),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':a79_0x5eb160(0x1aa),'type':a79_0x5eb160(0x1a6),'required':!![],'description':a79_0x5eb160(0x19f)}],async 'execute'(_0x26fe81){const _0xfeaf5d=a79_0x5eb160,_0x3a384d=_0x26fe81['num']('id'),_0xb7cd5d=_0x26fe81['str'](_0xfeaf5d(0x1aa));return await cancelDbAnalysis(_0xb7cd5d),{'ok':!![],'data':{'dbLinkId':_0x3a384d,'planId':_0xb7cd5d},'message':_0xfeaf5d(0x1a7)+_0xb7cd5d};}};
1
+ const a79_0x49663d=a79_0x5cb2;(function(_0x1002da,_0xee32ee){const _0x5b5611=a79_0x5cb2,_0x1d0f40=_0x1002da();while(!![]){try{const _0x19912a=parseInt(_0x5b5611(0x128))/0x1+parseInt(_0x5b5611(0x134))/0x2+parseInt(_0x5b5611(0x12e))/0x3*(-parseInt(_0x5b5611(0x127))/0x4)+-parseInt(_0x5b5611(0x132))/0x5+-parseInt(_0x5b5611(0x130))/0x6+-parseInt(_0x5b5611(0x12d))/0x7*(-parseInt(_0x5b5611(0x126))/0x8)+-parseInt(_0x5b5611(0x133))/0x9*(-parseInt(_0x5b5611(0x12f))/0xa);if(_0x19912a===_0xee32ee)break;else _0x1d0f40['push'](_0x1d0f40['shift']());}catch(_0x1bddf3){_0x1d0f40['push'](_0x1d0f40['shift']());}}}(a79_0x7840,0x779d6));import{cancelDbAnalysis}from'../../core/api-client.js';function a79_0x5cb2(_0x2797fa,_0x566854){_0x2797fa=_0x2797fa-0x126;const _0x78404e=a79_0x7840();let _0x5cb228=_0x78404e[_0x2797fa];return _0x5cb228;}import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a79_0x7840(){const _0x53cc88=['write','1057GcygaG','1975611JzDOsi','10VgWKKm','4028706FTHitb','Existing\x20analysis\x20plan\x20/\x20trace\x20id\x20to\x20cancel','3994080DqAenT','15000264sctIzV','1576528MPvfgM','3528GtIOcS','4VdrJNO','97195jylVHZ','num','plan','Cancel\x20an\x20existing\x20schema\x20analysis\x20by\x20explicit\x20plan\x20/\x20trace\x20id'];a79_0x7840=function(){return _0x53cc88;};return a79_0x7840();}export const dbAnalyzeCancel={'service':'db','command':'analyze-cancel','description':a79_0x49663d(0x12b),'risk':a79_0x49663d(0x12c),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':a79_0x49663d(0x12a),'type':'string','required':!![],'description':a79_0x49663d(0x131)}],async 'execute'(_0x5d2f48){const _0x273500=a79_0x49663d,_0x1d4a7f=_0x5d2f48[_0x273500(0x129)]('id'),_0x2fbe9e=_0x5d2f48['str'](_0x273500(0x12a));return await cancelDbAnalysis(_0x2fbe9e),{'ok':!![],'data':{'dbLinkId':_0x1d4a7f,'planId':_0x2fbe9e},'message':'Cancel\x20requested\x20for\x20plan\x20'+_0x2fbe9e};}};
@@ -0,0 +1,2 @@
1
+ import type { CommandDefinition } from "../../framework/types.js";
2
+ export declare const dbAnalyzeStart: CommandDefinition;
@@ -1 +1 @@
1
- const a80_0x2433a5=a80_0xa1bc;(function(_0x322275,_0x3cdadd){const _0x988695=a80_0xa1bc,_0x40ca3c=_0x322275();while(!![]){try{const _0xb8415d=-parseInt(_0x988695(0x201))/0x1+parseInt(_0x988695(0x1ec))/0x2*(parseInt(_0x988695(0x1eb))/0x3)+-parseInt(_0x988695(0x1ef))/0x4+-parseInt(_0x988695(0x1f1))/0x5+parseInt(_0x988695(0x1f4))/0x6*(parseInt(_0x988695(0x1fe))/0x7)+parseInt(_0x988695(0x205))/0x8+parseInt(_0x988695(0x1fb))/0x9*(parseInt(_0x988695(0x1ee))/0xa);if(_0xb8415d===_0x3cdadd)break;else _0x40ca3c['push'](_0x40ca3c['shift']());}catch(_0xc866f5){_0x40ca3c['push'](_0x40ca3c['shift']());}}}(a80_0x2fa3,0x8dbd2));import{startDbAnalysis}from'../../core/api-client.js';import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{buildDbPageLinks}from'../../commands/db/shared.js';function a80_0xa1bc(_0x29f2f6,_0x312a56){_0x29f2f6=_0x29f2f6-0x1eb;const _0x2fa351=a80_0x2fa3();let _0xa1bcc4=_0x2fa351[_0x29f2f6];return _0xa1bcc4;}function a80_0x2fa3(){const _0x1e5d5f=['1614940pZDQTg','string','4675605vTuOVl','\x20bytes.\x20Run\x20`','\x20db\x20analyze-batch-plan\x20--id\x20','5862Xdpufk','analyze-start','At\x20least\x20one\x20table\x20name\x20is\x20required\x20when\x20--tables\x20is\x20provided.','str','flag','\x20table(s),\x20','\x20bytes,\x20limit\x20','1665DFidzp','num','appCode','56bvvkrq','Comma-separated\x20table\x20names\x20for\x20incremental\x20analysis\x20(omit\x20for\x20full\x20analysis)','Targeted\x20database\x20analysis\x20payload\x20is\x20too\x20large:\x20','26831LFvMGH','length','Started\x20analysis\x20for\x20db\x20link\x20','write','2216368UMHWUf','tables','6kktNAh','761362KEcRZj','Start\x20schema\x20analysis\x20(full\x20or\x20incremental\x20table\x20list).\x20Returns\x20planId\x20for\x20analyze-status','48650fLVaiZ'];a80_0x2fa3=function(){return _0x1e5d5f;};return a80_0x2fa3();}import{DB_ANALYSIS_SERVER_INPUT_LIMIT_BYTES,measureAnalysisInputParamsBytes,normalizeAnalysisTableNames}from'../../commands/db/analysis-batching.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{CliErrors}from'../../errors.js';export const dbAnalyzeStart={'service':'db','command':a80_0x2433a5(0x1f5),'description':a80_0x2433a5(0x1ed),'risk':a80_0x2433a5(0x204),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':a80_0x2433a5(0x206),'type':a80_0x2433a5(0x1f0),'description':a80_0x2433a5(0x1ff)}],async 'execute'(_0x6c8ef0){const _0x2a82c5=a80_0x2433a5,_0x574a83=_0x6c8ef0[_0x2a82c5(0x1fc)]('id'),_0x35d15b=_0x6c8ef0[_0x2a82c5(0x1f7)]('tables'),_0x119bc0=_0x6c8ef0[_0x2a82c5(0x1f8)](_0x2a82c5(0x206))!==undefined,_0x5b274a=_0x119bc0?normalizeAnalysisTableNames(_0x35d15b):undefined;if(_0x5b274a&&_0x5b274a[_0x2a82c5(0x202)]===0x0)throw CliErrors['validation'](_0x2a82c5(0x1f6));if(_0x5b274a&&_0x5b274a[_0x2a82c5(0x202)]>0x0){const _0x55159c=measureAnalysisInputParamsBytes(_0x574a83,_0x5b274a);if(_0x55159c>DB_ANALYSIS_SERVER_INPUT_LIMIT_BYTES)throw CliErrors['validation'](_0x2a82c5(0x200)+_0x5b274a['length']+_0x2a82c5(0x1f9)+_0x55159c+_0x2a82c5(0x1fa)+DB_ANALYSIS_SERVER_INPUT_LIMIT_BYTES+_0x2a82c5(0x1f2)+CLI_BIN_NAME+_0x2a82c5(0x1f3)+_0x574a83+'\x20--tables\x20<tables>`\x20and\x20start\x20each\x20batch\x20serially.');}const {planId:_0x3261e8,estimatedMinutes:_0x35bf37,estimatedDurationDesc:_0x17702f}=await startDbAnalysis(_0x574a83,_0x5b274a),_0x5ab673=buildDbPageLinks(_0x6c8ef0[_0x2a82c5(0x1fd)],_0x574a83);return{'ok':!![],'data':{'dbLinkId':_0x574a83,'planId':_0x3261e8,'tableNames':_0x5b274a??[],'serverEstimate':{'estimatedMinutes':_0x35bf37,'estimatedDurationDesc':_0x17702f},..._0x5ab673?{'links':_0x5ab673}:{}},'message':_0x2a82c5(0x203)+_0x574a83};}};
1
+ const a80_0x4a67d9=a80_0x2568;function a80_0x5bbe(){const _0x22214e=['10465903ugMTiT','length','str','tables','Comma-separated\x20table\x20names\x20for\x20incremental\x20analysis\x20(omit\x20for\x20full\x20analysis)','183249UCoTnm','write','\x20db\x20analyze-batch-plan\x20--id\x20','analyze-start','2XcPJAR','964144JntFAV','3187645BhWrez','\x20bytes.\x20Run\x20`','string','3700947fQFpTp','Targeted\x20database\x20analysis\x20payload\x20is\x20too\x20large:\x20','Started\x20analysis\x20for\x20db\x20link\x20','Start\x20schema\x20analysis\x20(full\x20or\x20incremental\x20table\x20list).\x20Returns\x20planId\x20for\x20analyze-status','1552704SCtkjV','validation','flag','At\x20least\x20one\x20table\x20name\x20is\x20required\x20when\x20--tables\x20is\x20provided.','4qGXrfD','862407YioFQZ'];a80_0x5bbe=function(){return _0x22214e;};return a80_0x5bbe();}(function(_0x477bc7,_0x4e28db){const _0x816cc7=a80_0x2568,_0x3784d9=_0x477bc7();while(!![]){try{const _0x31015e=parseInt(_0x816cc7(0x17a))/0x1*(-parseInt(_0x816cc7(0x17e))/0x2)+-parseInt(_0x816cc7(0x16b))/0x3+-parseInt(_0x816cc7(0x173))/0x4*(-parseInt(_0x816cc7(0x168))/0x5)+parseInt(_0x816cc7(0x16f))/0x6+parseInt(_0x816cc7(0x175))/0x7+-parseInt(_0x816cc7(0x17f))/0x8+parseInt(_0x816cc7(0x174))/0x9;if(_0x31015e===_0x4e28db)break;else _0x3784d9['push'](_0x3784d9['shift']());}catch(_0x1e929d){_0x3784d9['push'](_0x3784d9['shift']());}}}(a80_0x5bbe,0xe7e59));import{startDbAnalysis}from'../../core/api-client.js';import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{buildDbPageLinks}from'../../commands/db/shared.js';import{DB_ANALYSIS_SERVER_INPUT_LIMIT_BYTES,measureAnalysisInputParamsBytes,normalizeAnalysisTableNames}from'../../commands/db/analysis-batching.js';import{CLI_BIN_NAME}from'../../constant/cli.js';function a80_0x2568(_0x593cc7,_0x23d627){_0x593cc7=_0x593cc7-0x168;const _0x5bbe6a=a80_0x5bbe();let _0x256838=_0x5bbe6a[_0x593cc7];return _0x256838;}import{CliErrors}from'../../errors.js';export const dbAnalyzeStart={'service':'db','command':a80_0x4a67d9(0x17d),'description':a80_0x4a67d9(0x16e),'risk':a80_0x4a67d9(0x17b),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':a80_0x4a67d9(0x178),'type':a80_0x4a67d9(0x16a),'description':a80_0x4a67d9(0x179)}],async 'execute'(_0x3778f0){const _0x7bfa35=a80_0x4a67d9,_0xd46102=_0x3778f0['num']('id'),_0x55862e=_0x3778f0[_0x7bfa35(0x177)](_0x7bfa35(0x178)),_0x437331=_0x3778f0[_0x7bfa35(0x171)](_0x7bfa35(0x178))!==undefined,_0x2d25fa=_0x437331?normalizeAnalysisTableNames(_0x55862e):undefined;if(_0x2d25fa&&_0x2d25fa[_0x7bfa35(0x176)]===0x0)throw CliErrors[_0x7bfa35(0x170)](_0x7bfa35(0x172));if(_0x2d25fa&&_0x2d25fa[_0x7bfa35(0x176)]>0x0){const _0x3c2dc0=measureAnalysisInputParamsBytes(_0xd46102,_0x2d25fa);if(_0x3c2dc0>DB_ANALYSIS_SERVER_INPUT_LIMIT_BYTES)throw CliErrors[_0x7bfa35(0x170)](_0x7bfa35(0x16c)+_0x2d25fa[_0x7bfa35(0x176)]+'\x20table(s),\x20'+_0x3c2dc0+'\x20bytes,\x20limit\x20'+DB_ANALYSIS_SERVER_INPUT_LIMIT_BYTES+_0x7bfa35(0x169)+CLI_BIN_NAME+_0x7bfa35(0x17c)+_0xd46102+'\x20--tables\x20<tables>`\x20and\x20start\x20each\x20batch\x20serially.');}const {planId:_0x39e7a5,estimatedMinutes:_0x4ef24a,estimatedDurationDesc:_0x1495f3}=await startDbAnalysis(_0xd46102,_0x2d25fa),_0x1c32ce=buildDbPageLinks(_0x3778f0['appCode'],_0xd46102);return{'ok':!![],'data':{'dbLinkId':_0xd46102,'planId':_0x39e7a5,'tableNames':_0x2d25fa??[],'serverEstimate':{'estimatedMinutes':_0x4ef24a,'estimatedDurationDesc':_0x1495f3},..._0x1c32ce?{'links':_0x1c32ce}:{}},'message':_0x7bfa35(0x16d)+_0xd46102};}};
@@ -0,0 +1,2 @@
1
+ import type { CommandDefinition } from "../../framework/types.js";
2
+ export declare const dbAnalyzeStatus: CommandDefinition;
@@ -1 +1 @@
1
- const a81_0x2aef31=a81_0x1575;(function(_0x23801a,_0x473b30){const _0x200fe3=a81_0x1575,_0x54b39e=_0x23801a();while(!![]){try{const _0x2d9569=-parseInt(_0x200fe3(0x19c))/0x1*(parseInt(_0x200fe3(0x1a5))/0x2)+-parseInt(_0x200fe3(0x194))/0x3*(-parseInt(_0x200fe3(0x1ae))/0x4)+-parseInt(_0x200fe3(0x1b3))/0x5*(-parseInt(_0x200fe3(0x1ac))/0x6)+-parseInt(_0x200fe3(0x1a2))/0x7+parseInt(_0x200fe3(0x1b0))/0x8+-parseInt(_0x200fe3(0x19e))/0x9+parseInt(_0x200fe3(0x1a6))/0xa;if(_0x2d9569===_0x473b30)break;else _0x54b39e['push'](_0x54b39e['shift']());}catch(_0x5d692c){_0x54b39e['push'](_0x54b39e['shift']());}}}(a81_0xadc0,0xe8e5a));import{getDbAnalysisStatus}from'../../core/api-client.js';import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{buildDbPageLinks}from'../../commands/db/shared.js';const TERMINAL_STATUSES=new Set(['SUCCESS',a81_0x2aef31(0x19b),'FAILED',a81_0x2aef31(0x193)]);export const dbAnalyzeStatus={'service':'db','command':'analyze-status','description':a81_0x2aef31(0x1a7),'risk':a81_0x2aef31(0x198),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':a81_0x2aef31(0x1a0),'type':'string','required':!![],'description':a81_0x2aef31(0x19a)}],async 'execute'(_0x4d2941){const _0x5bcf42=a81_0x2aef31,_0x2b9ef7=_0x4d2941['num']('id'),_0x41cb5e=_0x4d2941[_0x5bcf42(0x1a3)]('plan'),_0x54098e=await getDbAnalysisStatus(_0x41cb5e),_0x54a0f0=TERMINAL_STATUSES['has'](_0x54098e[_0x5bcf42(0x1a4)]??''),{parsedJobContext:_0x37e90d,jobContextParseWarning:_0xe8804b}=parseJobContext(_0x54098e[_0x5bcf42(0x18f)]),{requestedAnalysis:_0x316734,requestedAnalysisParseWarning:_0x421481}=parseRequestedAnalysis(_0x54098e[_0x5bcf42(0x18b)]),_0x1fb6dc=readAccumulatedErrorTypeCounts(_0x37e90d),_0x3f877c=calculateAttemptElapsedMs(_0x54098e,_0x54a0f0),_0x5023c6=calculateElapsedFromStart(_0x54098e[_0x5bcf42(0x18e)],_0x54098e[_0x5bcf42(0x191)],_0x54a0f0),_0x58e17d=detectMultipleAttempts(_0x54098e),_0x1f408f=buildDbPageLinks(_0x4d2941[_0x5bcf42(0x18d)],_0x2b9ef7);return{'ok':!![],'data':{'dbLinkId':_0x2b9ef7,'planId':_0x41cb5e,'status':_0x54098e,'requestedAnalysis':_0x316734,'requestedAnalysisParseWarning':_0x421481,'parsedJobContext':_0x37e90d,'accumulatedErrorTypeCounts':_0x1fb6dc,'accumulatedErrorTypeCountsAdvisory':_0x1fb6dc?_0x5bcf42(0x199):_0x5bcf42(0x1b2),'isTerminal':_0x54a0f0,'isRetrying':_0x54098e['status']==='RETRYING','attemptElapsedMs':_0x3f877c,'totalElapsedMs':_0x5023c6,'hasMultipleAttempts':_0x58e17d,'jobContextParseWarning':_0xe8804b,..._0x1f408f?{'links':_0x1f408f}:{}},'message':'Analysis\x20status\x20for\x20'+_0x41cb5e};}};function parseRequestedAnalysis(_0x39d3cd){const _0x3359d9=a81_0x2aef31,_0x44658b={'mode':_0x3359d9(0x1af),'tableCount':null,'tableNames':null};if(!_0x39d3cd?.[_0x3359d9(0x1aa)]())return{'requestedAnalysis':_0x44658b,'requestedAnalysisParseWarning':_0x3359d9(0x1b4)};try{const _0x4386c5=JSON[_0x3359d9(0x196)](_0x39d3cd);if(!_0x4386c5||typeof _0x4386c5!==_0x3359d9(0x1ad)||Array['isArray'](_0x4386c5))throw new Error(_0x3359d9(0x1b1));const _0x2fd3b1=_0x4386c5[_0x3359d9(0x1ab)];if(_0x2fd3b1===undefined||_0x2fd3b1===null)return{'requestedAnalysis':{'mode':'FULL','tableCount':null,'tableNames':null},'requestedAnalysisParseWarning':null};if(Array['isArray'](_0x2fd3b1)&&_0x2fd3b1[_0x3359d9(0x19f)](_0xd7a85f=>typeof _0xd7a85f==='string'))return{'requestedAnalysis':{'mode':_0x2fd3b1[_0x3359d9(0x19d)]>0x0?'TARGETED':'FULL','tableCount':_0x2fd3b1[_0x3359d9(0x19d)],'tableNames':_0x2fd3b1},'requestedAnalysisParseWarning':null};}catch{}return{'requestedAnalysis':_0x44658b,'requestedAnalysisParseWarning':_0x3359d9(0x190)};}function readAccumulatedErrorTypeCounts(_0x4930d2){const _0xb9ce7a=a81_0x2aef31,_0x587a93=_0x4930d2?.[_0xb9ce7a(0x197)];if(!_0x587a93||typeof _0x587a93!==_0xb9ce7a(0x1ad)||Array['isArray'](_0x587a93))return null;if(Object[_0xb9ce7a(0x1b6)](_0x587a93)[_0xb9ce7a(0x19d)]===0x0)return null;return _0x587a93;}function a81_0xadc0(){const _0x44075e=['21961360NOlThc','Fetch\x20schema\x20analysis\x20job\x20status\x20by\x20plan\x20/\x20trace\x20id','string','jobContext\x20is\x20not\x20a\x20valid\x20JSON\x20object.','trim','tableNames','5463132fIUqeN','object','1108MVETzc','UNKNOWN','101912bxEVKv','inputParams\x20is\x20not\x20an\x20object','Server-provided\x20accumulated\x20failure\x20counts\x20are\x20unavailable;\x20use\x20task\x20status\x20for\x20lifecycle\x20and\x20db\x20diff\x20for\x20convergence.','5GNCVkj','Original\x20analysis\x20request\x20scope\x20is\x20unavailable\x20because\x20inputParams\x20is\x20missing.','isFinite','keys','inputParams','now','appCode','firstStartTime','jobContext','inputParams\x20does\x20not\x20contain\x20a\x20valid\x20analysis\x20request\x20object.','endTime','costTimeMs','CANCELLED','258cTIPXK','isNaN','parse','accumulatedErrorTypeCounts','read','Server-provided\x20accumulated\x20failure\x20counts\x20are\x20reference\x20only;\x20do\x20not\x20use\x20them\x20for\x20automatic\x20decisions\x20until\x20the\x20server\x20contract\x20is\x20verified.','Analysis\x20plan\x20/\x20trace\x20id\x20(from\x20analyze-start\x20or\x20db\x20list\x20latestAnalysisTraceId)','PARTIAL_SUCCESS','7QARrtw','length','242622RVsacO','every','plan','startTime','8352988XgSqnq','str','status','276866tilynu'];a81_0xadc0=function(){return _0x44075e;};return a81_0xadc0();}function parseJobContext(_0xaded11){const _0x1206eb=a81_0x2aef31;if(!_0xaded11?.[_0x1206eb(0x1aa)]())return{'parsedJobContext':null,'jobContextParseWarning':null};try{const _0x542f65=JSON[_0x1206eb(0x196)](_0xaded11);if(_0x542f65&&typeof _0x542f65===_0x1206eb(0x1ad)&&!Array['isArray'](_0x542f65))return{'parsedJobContext':_0x542f65,'jobContextParseWarning':null};}catch{}return{'parsedJobContext':null,'jobContextParseWarning':_0x1206eb(0x1a9)};}function a81_0x1575(_0x2e5c52,_0x18f824){_0x2e5c52=_0x2e5c52-0x18b;const _0xadc00c=a81_0xadc0();let _0x1575d5=_0xadc00c[_0x2e5c52];return _0x1575d5;}function calculateAttemptElapsedMs(_0x1937c0,_0x2242d6){const _0x597880=a81_0x2aef31;if(typeof _0x1937c0[_0x597880(0x192)]==='number'&&Number[_0x597880(0x1b5)](_0x1937c0['costTimeMs'])&&_0x1937c0['costTimeMs']>=0x0)return _0x1937c0[_0x597880(0x192)];return calculateElapsedFromStart(_0x1937c0[_0x597880(0x1a1)],_0x1937c0['endTime'],_0x2242d6);}function calculateElapsedFromStart(_0x4a6ee2,_0x35f6f1,_0x2991ba){const _0x21373e=a81_0x2aef31,_0x263431=toTimestamp(_0x4a6ee2);if(_0x263431===null)return null;const _0x2e7e84=toTimestamp(_0x35f6f1),_0x52ece7=_0x2e7e84??(_0x2991ba?null:Date[_0x21373e(0x18c)]());if(_0x52ece7===null||_0x52ece7<_0x263431)return null;return _0x52ece7-_0x263431;}function detectMultipleAttempts(_0x32133a){const _0x2dc175=a81_0x2aef31,_0x1f69f2=toTimestamp(_0x32133a['firstStartTime']),_0x319a17=toTimestamp(_0x32133a[_0x2dc175(0x1a1)]);return _0x1f69f2!==null&&_0x319a17!==null&&_0x1f69f2!==_0x319a17;}function toTimestamp(_0x4c153a){const _0x1ca851=a81_0x2aef31;if(typeof _0x4c153a==='number')return Number[_0x1ca851(0x1b5)](_0x4c153a)?_0x4c153a:null;if(typeof _0x4c153a!==_0x1ca851(0x1a8)||_0x4c153a[_0x1ca851(0x1aa)]()==='')return null;const _0x42c64a=Number(_0x4c153a);if(Number[_0x1ca851(0x1b5)](_0x42c64a))return _0x42c64a;const _0x2ca516=Date[_0x1ca851(0x196)](_0x4c153a);return Number[_0x1ca851(0x195)](_0x2ca516)?null:_0x2ca516;}
1
+ const a81_0x14f2ec=a81_0x3f60;(function(_0xbd1992,_0x146f43){const _0x52ddd2=a81_0x3f60,_0x4cfdf3=_0xbd1992();while(!![]){try{const _0x6fab4a=parseInt(_0x52ddd2(0x1f4))/0x1+parseInt(_0x52ddd2(0x1ee))/0x2+parseInt(_0x52ddd2(0x20a))/0x3*(-parseInt(_0x52ddd2(0x202))/0x4)+parseInt(_0x52ddd2(0x20b))/0x5+parseInt(_0x52ddd2(0x1fe))/0x6+-parseInt(_0x52ddd2(0x1f6))/0x7*(-parseInt(_0x52ddd2(0x204))/0x8)+parseInt(_0x52ddd2(0x1e7))/0x9*(-parseInt(_0x52ddd2(0x1ea))/0xa);if(_0x6fab4a===_0x146f43)break;else _0x4cfdf3['push'](_0x4cfdf3['shift']());}catch(_0x5473a4){_0x4cfdf3['push'](_0x4cfdf3['shift']());}}}(a81_0x3ca0,0x6b876));import{getDbAnalysisStatus}from'../../core/api-client.js';import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{buildDbPageLinks}from'../../commands/db/shared.js';const TERMINAL_STATUSES=new Set([a81_0x14f2ec(0x1e5),a81_0x14f2ec(0x1f0),a81_0x14f2ec(0x1ed),a81_0x14f2ec(0x20f)]);export const dbAnalyzeStatus={'service':'db','command':a81_0x14f2ec(0x1eb),'description':a81_0x14f2ec(0x1f8),'risk':a81_0x14f2ec(0x207),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':a81_0x14f2ec(0x1e2),'type':a81_0x14f2ec(0x1f2),'required':!![],'description':a81_0x14f2ec(0x1ec)}],async 'execute'(_0x37c6f4){const _0x3543b6=a81_0x14f2ec,_0x2404a8=_0x37c6f4['num']('id'),_0x5e7fc3=_0x37c6f4['str'](_0x3543b6(0x1e2)),_0x586639=await getDbAnalysisStatus(_0x5e7fc3),_0x405711=TERMINAL_STATUSES[_0x3543b6(0x1e6)](_0x586639[_0x3543b6(0x20c)]??''),{parsedJobContext:_0x51d8b6,jobContextParseWarning:_0x451460}=parseJobContext(_0x586639[_0x3543b6(0x1f9)]),{requestedAnalysis:_0x185d7e,requestedAnalysisParseWarning:_0x1b095f}=parseRequestedAnalysis(_0x586639['inputParams']),_0x2d46b1=readAccumulatedErrorTypeCounts(_0x51d8b6),_0x260505=calculateAttemptElapsedMs(_0x586639,_0x405711),_0x4f3ace=calculateElapsedFromStart(_0x586639[_0x3543b6(0x1fc)],_0x586639[_0x3543b6(0x20d)],_0x405711),_0x369aa1=detectMultipleAttempts(_0x586639),_0x4b6d94=buildDbPageLinks(_0x37c6f4[_0x3543b6(0x200)],_0x2404a8);return{'ok':!![],'data':{'dbLinkId':_0x2404a8,'planId':_0x5e7fc3,'status':_0x586639,'requestedAnalysis':_0x185d7e,'requestedAnalysisParseWarning':_0x1b095f,'parsedJobContext':_0x51d8b6,'accumulatedErrorTypeCounts':_0x2d46b1,'accumulatedErrorTypeCountsAdvisory':_0x2d46b1?'Server-provided\x20accumulated\x20failure\x20counts\x20are\x20reference\x20only;\x20do\x20not\x20use\x20them\x20for\x20automatic\x20decisions\x20until\x20the\x20server\x20contract\x20is\x20verified.':_0x3543b6(0x201),'isTerminal':_0x405711,'isRetrying':_0x586639[_0x3543b6(0x20c)]===_0x3543b6(0x1e4),'attemptElapsedMs':_0x260505,'totalElapsedMs':_0x4f3ace,'hasMultipleAttempts':_0x369aa1,'jobContextParseWarning':_0x451460,..._0x4b6d94?{'links':_0x4b6d94}:{}},'message':'Analysis\x20status\x20for\x20'+_0x5e7fc3};}};function parseRequestedAnalysis(_0x1be0ac){const _0x1acc34=a81_0x14f2ec,_0x5dd22d={'mode':_0x1acc34(0x1e3),'tableCount':null,'tableNames':null};if(!_0x1be0ac?.[_0x1acc34(0x1fd)]())return{'requestedAnalysis':_0x5dd22d,'requestedAnalysisParseWarning':_0x1acc34(0x209)};try{const _0x3ae1fc=JSON['parse'](_0x1be0ac);if(!_0x3ae1fc||typeof _0x3ae1fc!==_0x1acc34(0x1fb)||Array['isArray'](_0x3ae1fc))throw new Error(_0x1acc34(0x1f5));const _0x373ada=_0x3ae1fc[_0x1acc34(0x1f3)];if(_0x373ada===undefined||_0x373ada===null)return{'requestedAnalysis':{'mode':_0x1acc34(0x1f1),'tableCount':null,'tableNames':null},'requestedAnalysisParseWarning':null};if(Array[_0x1acc34(0x210)](_0x373ada)&&_0x373ada[_0x1acc34(0x1ef)](_0x58f5d8=>typeof _0x58f5d8==='string'))return{'requestedAnalysis':{'mode':_0x373ada[_0x1acc34(0x1fa)]>0x0?_0x1acc34(0x205):'FULL','tableCount':_0x373ada[_0x1acc34(0x1fa)],'tableNames':_0x373ada},'requestedAnalysisParseWarning':null};}catch{}return{'requestedAnalysis':_0x5dd22d,'requestedAnalysisParseWarning':_0x1acc34(0x20e)};}function a81_0x3ca0(){const _0x5ae9f8=['firstStartTime','trim','3238938YVWtxu','number','appCode','Server-provided\x20accumulated\x20failure\x20counts\x20are\x20unavailable;\x20use\x20task\x20status\x20for\x20lifecycle\x20and\x20db\x20diff\x20for\x20convergence.','36YjwBbS','now','1674920XjOTRF','TARGETED','keys','read','isFinite','Original\x20analysis\x20request\x20scope\x20is\x20unavailable\x20because\x20inputParams\x20is\x20missing.','243375vwACRw','1046485bzzORc','status','endTime','inputParams\x20does\x20not\x20contain\x20a\x20valid\x20analysis\x20request\x20object.','CANCELLED','isArray','parse','jobContext\x20is\x20not\x20a\x20valid\x20JSON\x20object.','plan','UNKNOWN','RETRYING','SUCCESS','has','54mzrJCQ','isNaN','costTimeMs','130170sFRSYk','analyze-status','Analysis\x20plan\x20/\x20trace\x20id\x20(from\x20analyze-start\x20or\x20db\x20list\x20latestAnalysisTraceId)','FAILED','95168QcXtfC','every','PARTIAL_SUCCESS','FULL','string','tableNames','242596HgYXBb','inputParams\x20is\x20not\x20an\x20object','7TOIDSL','accumulatedErrorTypeCounts','Fetch\x20schema\x20analysis\x20job\x20status\x20by\x20plan\x20/\x20trace\x20id','jobContext','length','object'];a81_0x3ca0=function(){return _0x5ae9f8;};return a81_0x3ca0();}function readAccumulatedErrorTypeCounts(_0x1c50bb){const _0x4ac73d=a81_0x14f2ec,_0x3a143f=_0x1c50bb?.[_0x4ac73d(0x1f7)];if(!_0x3a143f||typeof _0x3a143f!==_0x4ac73d(0x1fb)||Array[_0x4ac73d(0x210)](_0x3a143f))return null;if(Object[_0x4ac73d(0x206)](_0x3a143f)[_0x4ac73d(0x1fa)]===0x0)return null;return _0x3a143f;}function parseJobContext(_0x423f99){const _0x4a04ab=a81_0x14f2ec;if(!_0x423f99?.['trim']())return{'parsedJobContext':null,'jobContextParseWarning':null};try{const _0x457b87=JSON[_0x4a04ab(0x211)](_0x423f99);if(_0x457b87&&typeof _0x457b87===_0x4a04ab(0x1fb)&&!Array[_0x4a04ab(0x210)](_0x457b87))return{'parsedJobContext':_0x457b87,'jobContextParseWarning':null};}catch{}return{'parsedJobContext':null,'jobContextParseWarning':_0x4a04ab(0x212)};}function calculateAttemptElapsedMs(_0x5614e0,_0x54de2b){const _0x525154=a81_0x14f2ec;if(typeof _0x5614e0[_0x525154(0x1e9)]==='number'&&Number[_0x525154(0x208)](_0x5614e0['costTimeMs'])&&_0x5614e0[_0x525154(0x1e9)]>=0x0)return _0x5614e0[_0x525154(0x1e9)];return calculateElapsedFromStart(_0x5614e0['startTime'],_0x5614e0[_0x525154(0x20d)],_0x54de2b);}function a81_0x3f60(_0x1f441b,_0x7fe5fd){_0x1f441b=_0x1f441b-0x1e2;const _0x3ca01b=a81_0x3ca0();let _0x3f6012=_0x3ca01b[_0x1f441b];return _0x3f6012;}function calculateElapsedFromStart(_0x21434d,_0x3f748e,_0x557902){const _0xce87b7=a81_0x14f2ec,_0x1d52cc=toTimestamp(_0x21434d);if(_0x1d52cc===null)return null;const _0x6068fe=toTimestamp(_0x3f748e),_0x5bbfb1=_0x6068fe??(_0x557902?null:Date[_0xce87b7(0x203)]());if(_0x5bbfb1===null||_0x5bbfb1<_0x1d52cc)return null;return _0x5bbfb1-_0x1d52cc;}function detectMultipleAttempts(_0x2b2e88){const _0x2391aa=a81_0x14f2ec,_0x5675db=toTimestamp(_0x2b2e88[_0x2391aa(0x1fc)]),_0x418547=toTimestamp(_0x2b2e88['startTime']);return _0x5675db!==null&&_0x418547!==null&&_0x5675db!==_0x418547;}function toTimestamp(_0x4c128d){const _0x10bad3=a81_0x14f2ec;if(typeof _0x4c128d===_0x10bad3(0x1ff))return Number[_0x10bad3(0x208)](_0x4c128d)?_0x4c128d:null;if(typeof _0x4c128d!==_0x10bad3(0x1f2)||_0x4c128d[_0x10bad3(0x1fd)]()==='')return null;const _0x546319=Number(_0x4c128d);if(Number[_0x10bad3(0x208)](_0x546319))return _0x546319;const _0x40da79=Date[_0x10bad3(0x211)](_0x4c128d);return Number[_0x10bad3(0x1e8)](_0x40da79)?null:_0x40da79;}
@@ -0,0 +1,2 @@
1
+ import type { CommandDefinition } from "../../framework/types.js";
2
+ export declare const dbCreate: CommandDefinition;
@@ -1 +1 @@
1
- const a82_0x2c13a7=a82_0x2761;(function(_0x418187,_0xa90421){const _0x41afa6=a82_0x2761,_0x1c811d=_0x418187();while(!![]){try{const _0x4c8a2b=-parseInt(_0x41afa6(0xbc))/0x1*(-parseInt(_0x41afa6(0xa6))/0x2)+-parseInt(_0x41afa6(0xa1))/0x3+-parseInt(_0x41afa6(0xae))/0x4+-parseInt(_0x41afa6(0xba))/0x5*(-parseInt(_0x41afa6(0x9a))/0x6)+parseInt(_0x41afa6(0xb2))/0x7+parseInt(_0x41afa6(0xbb))/0x8*(-parseInt(_0x41afa6(0xb6))/0x9)+parseInt(_0x41afa6(0x99))/0xa*(parseInt(_0x41afa6(0xab))/0xb);if(_0x4c8a2b===_0xa90421)break;else _0x1c811d['push'](_0x1c811d['shift']());}catch(_0x155ce4){_0x1c811d['push'](_0x1c811d['shift']());}}}(a82_0x2f74,0x4867b));import{createDbLink,startDbAnalysis}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,DB_TYPE_FLAG}from'../../commands/common/flags.js';function a82_0x2761(_0x32bd46,_0x15376e){_0x32bd46=_0x32bd46-0x95;const _0x2f74fd=a82_0x2f74();let _0x27615e=_0x2f74fd[_0x32bd46];return _0x27615e;}import{buildDbPageLinks,sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';function a82_0x2f74(){const _0x2fa002=['Database\x20username','dbtype','Human-readable\x20description','2308320CbTmLl','Check\x20firewall\x20allowlist\x20and\x20connection\x20string\x20format.','Server\x20version\x20string\x20(default:\x208.0\x20when\x20omitted)','Invalid\x20--dburl:\x20expected\x20host:port\x20(e.g.\x20db.example.com:3306),\x20got\x20\x22','342905FyZLvx','16tjQzqq','58868wbbDCG','[redacted]','/smartapi/dblink/create','autostart','message','dbname','dbdesc','appCode','dburl','join','Create\x20returned\x20no\x20id\x20—\x20check\x20API\x20response','4850LmrOiC','24KtMods','Extra\x20JDBC-style\x20connection\x20parameters\x20string','str','trim','Logical\x20database\x20/\x20schema\x20name\x20on\x20the\x20server','dbversion','databasePage','423297RbNdWe','Create\x20dblink','create','bool','dbparam','2oNunnT','After\x20create,\x20start\x20schema\x20analysis','validation','POST','username','4213OloZaF','Created\x20db\x20link\x20','8.0','277796vjvDza','string','password','Then\x20POST\x20start\x20analysis\x20for\x20returned\x20id','3507924TTChLx'];a82_0x2f74=function(){return _0x2fa002;};return a82_0x2f74();}import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';export const dbCreate={'service':'db','command':a82_0x2c13a7(0xa3),'description':'Create\x20a\x20new\x20database\x20connection\x20(dblink).\x20Optionally\x20auto-start\x20schema\x20analysis\x20after\x20creation','risk':'write','flags':[APPCODE_FLAG_OPTIONAL,{'name':'dbname','type':'string','required':!![],'description':a82_0x2c13a7(0x9e)},DB_TYPE_FLAG,{'name':'dbversion','type':'string','description':a82_0x2c13a7(0xb8),'default':a82_0x2c13a7(0xad)},{'name':a82_0x2c13a7(0x96),'type':a82_0x2c13a7(0xaf),'required':!![],'description':'Host\x20and\x20port:\x20host:port'},{'name':a82_0x2c13a7(0xaa),'type':'string','required':!![],'description':a82_0x2c13a7(0xb3)},{'name':a82_0x2c13a7(0xb0),'type':a82_0x2c13a7(0xaf),'required':!![],'description':'Database\x20password'},{'name':a82_0x2c13a7(0xa5),'type':a82_0x2c13a7(0xaf),'description':a82_0x2c13a7(0x9b)},{'name':a82_0x2c13a7(0xc2),'type':a82_0x2c13a7(0xaf),'description':a82_0x2c13a7(0xb5)},{'name':a82_0x2c13a7(0xbf),'type':'boolean','description':a82_0x2c13a7(0xa7),'default':![]}],async 'validate'(_0x53ac5f){const _0x6f7b00=a82_0x2c13a7,_0xf965ef=_0x53ac5f['str'](_0x6f7b00(0x96))[_0x6f7b00(0x9d)]();if(!validateDbUrl(_0xf965ef))throw CliErrors[_0x6f7b00(0xa8)](_0x6f7b00(0xb9)+_0xf965ef+'\x22',_0x6f7b00(0xb7));},async 'dryRun'(_0x2211dd){const _0x3f101d=a82_0x2c13a7,_0x1f9c79={'appCode':_0x2211dd[_0x3f101d(0x95)],'dbName':_0x2211dd['str'](_0x3f101d(0xc1)),'dbType':_0x2211dd['str']('dbtype'),'dbVersion':_0x2211dd['str'](_0x3f101d(0x9f))||_0x3f101d(0xad),'dbUrl':_0x2211dd[_0x3f101d(0x9c)](_0x3f101d(0x96))[_0x3f101d(0x9d)](),'username':_0x2211dd[_0x3f101d(0x9c)](_0x3f101d(0xaa)),'password':_0x3f101d(0xbd),..._0x2211dd[_0x3f101d(0x9c)](_0x3f101d(0xa5))?{'dbParam':_0x2211dd[_0x3f101d(0x9c)](_0x3f101d(0xa5))}:{},..._0x2211dd[_0x3f101d(0x9c)]('dbdesc')?{'dbDesc':_0x2211dd['str']('dbdesc')}:{}};return{'method':_0x3f101d(0xa9),'url':_0x3f101d(0xbe),'body':_0x1f9c79,'description':[_0x3f101d(0xa2),_0x2211dd[_0x3f101d(0xa4)]('autostart')?_0x3f101d(0xb1):'No\x20follow-up\x20analysis'][_0x3f101d(0x97)]('\x0a')};},async 'execute'(_0x27c319){const _0x267046=a82_0x2c13a7,_0x21fdbd={'appCode':_0x27c319['appCode'],'dbName':_0x27c319[_0x267046(0x9c)](_0x267046(0xc1)),'dbType':_0x27c319['str'](_0x267046(0xb4)),'dbVersion':_0x27c319[_0x267046(0x9c)](_0x267046(0x9f))||_0x267046(0xad),'dbUrl':_0x27c319[_0x267046(0x9c)](_0x267046(0x96))[_0x267046(0x9d)](),'username':_0x27c319[_0x267046(0x9c)](_0x267046(0xaa)),'password':_0x27c319['str'](_0x267046(0xb0)),..._0x27c319['str'](_0x267046(0xa5))?{'dbParam':_0x27c319[_0x267046(0x9c)](_0x267046(0xa5))}:{},..._0x27c319['str'](_0x267046(0xc2))?{'dbDesc':_0x27c319[_0x267046(0x9c)](_0x267046(0xc2))}:{}},{id:_0x3db452,entity:_0x5973b0}=normalizeEntityWithIdResponse(await createDbLink(_0x21fdbd));if(!_0x3db452)return{'ok':![],'message':_0x267046(0x98),'data':sanitizeDbLinkForOutput(_0x5973b0)};let _0x6c2af4,_0x1790a1;if(_0x27c319['bool'](_0x267046(0xbf)))try{_0x6c2af4=(await startDbAnalysis(_0x3db452))['planId'];}catch(_0xf88609){_0x1790a1=_0xf88609 instanceof Error?_0xf88609[_0x267046(0xc0)]:String(_0xf88609);}const _0x3116a1=buildDbPageLinks(_0x27c319[_0x267046(0x95)],_0x3db452),_0x70e391={'connection':sanitizeDbLinkForOutput(_0x5973b0),..._0x3116a1?{'links':{'databasePage':_0x3116a1[_0x267046(0xa0)]}}:{},..._0x6c2af4?{'analysisPlanId':_0x6c2af4}:{},..._0x1790a1?{'analysisStartWarning':_0x1790a1}:{}};let _0x3ca0d2;return _0x27c319[_0x267046(0xa4)](_0x267046(0xbf))?_0x1790a1?_0x3ca0d2=_0x267046(0xac)+_0x3db452+';\x20schema\x20analysis\x20failed\x20to\x20start\x20—\x20see\x20data.analysisStartWarning':_0x3ca0d2='Created\x20db\x20link\x20'+_0x3db452+'\x20and\x20started\x20analysis':_0x3ca0d2='Created\x20db\x20link\x20'+_0x3db452,{'ok':!![],'data':_0x70e391,'message':_0x3ca0d2};}};
1
+ const a82_0x350575=a82_0x2bac;(function(_0x5304f7,_0x1969c3){const _0x499c60=a82_0x2bac,_0x532854=_0x5304f7();while(!![]){try{const _0xd5e5fc=-parseInt(_0x499c60(0xe9))/0x1*(parseInt(_0x499c60(0xe2))/0x2)+parseInt(_0x499c60(0xef))/0x3+parseInt(_0x499c60(0xec))/0x4+parseInt(_0x499c60(0xfd))/0x5*(-parseInt(_0x499c60(0xe7))/0x6)+parseInt(_0x499c60(0xf5))/0x7+parseInt(_0x499c60(0xfc))/0x8*(-parseInt(_0x499c60(0xf2))/0x9)+parseInt(_0x499c60(0xd5))/0xa;if(_0xd5e5fc===_0x1969c3)break;else _0x532854['push'](_0x532854['shift']());}catch(_0x11b0ed){_0x532854['push'](_0x532854['shift']());}}}(a82_0x4006,0x289ab));import{createDbLink,startDbAnalysis}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,DB_TYPE_FLAG}from'../../commands/common/flags.js';import{buildDbPageLinks,sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';function a82_0x2bac(_0x445e24,_0xf5e93f){_0x445e24=_0x445e24-0xd2;const _0x400697=a82_0x4006();let _0x2bacba=_0x400697[_0x445e24];return _0x2bacba;}function a82_0x4006(){const _0x38fe0e=['169452diYeae','Check\x20firewall\x20allowlist\x20and\x20connection\x20string\x20format.','Server\x20version\x20string\x20(default:\x208.0\x20when\x20omitted)','25128AwSYgo','[redacted]','password','728259nonVWB','str','POST','8.0','planId','Invalid\x20--dburl:\x20expected\x20host:port\x20(e.g.\x20db.example.com:3306),\x20got\x20\x22','username','584HEDyLJ','5EwUGwo','message','\x20and\x20started\x20analysis','dburl','string','Human-readable\x20description','dbdesc','3954650kRKrBB','No\x20follow-up\x20analysis','autostart','dbname','validation','Database\x20username','join','trim',';\x20schema\x20analysis\x20failed\x20to\x20start\x20—\x20see\x20data.analysisStartWarning','/smartapi/dblink/create','Create\x20returned\x20no\x20id\x20—\x20check\x20API\x20response','Created\x20db\x20link\x20','databasePage','54986KBDeWk','appCode','dbtype','bool','dbversion','1907994ZdRzIP','write','6HABJEX','dbparam','Database\x20password','1188408okCHJL','Then\x20POST\x20start\x20analysis\x20for\x20returned\x20id','Extra\x20JDBC-style\x20connection\x20parameters\x20string'];a82_0x4006=function(){return _0x38fe0e;};return a82_0x4006();}export const dbCreate={'service':'db','command':'create','description':'Create\x20a\x20new\x20database\x20connection\x20(dblink).\x20Optionally\x20auto-start\x20schema\x20analysis\x20after\x20creation','risk':a82_0x350575(0xe8),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a82_0x350575(0xd8),'type':a82_0x350575(0xd2),'required':!![],'description':'Logical\x20database\x20/\x20schema\x20name\x20on\x20the\x20server'},DB_TYPE_FLAG,{'name':a82_0x350575(0xe6),'type':a82_0x350575(0xd2),'description':a82_0x350575(0xf1),'default':'8.0'},{'name':a82_0x350575(0x100),'type':a82_0x350575(0xd2),'required':!![],'description':'Host\x20and\x20port:\x20host:port'},{'name':'username','type':a82_0x350575(0xd2),'required':!![],'description':a82_0x350575(0xda)},{'name':a82_0x350575(0xf4),'type':a82_0x350575(0xd2),'required':!![],'description':a82_0x350575(0xeb)},{'name':a82_0x350575(0xea),'type':a82_0x350575(0xd2),'description':a82_0x350575(0xee)},{'name':a82_0x350575(0xd4),'type':a82_0x350575(0xd2),'description':a82_0x350575(0xd3)},{'name':a82_0x350575(0xd7),'type':'boolean','description':'After\x20create,\x20start\x20schema\x20analysis','default':![]}],async 'validate'(_0x56b839){const _0x237289=a82_0x350575,_0x44b5c=_0x56b839['str'](_0x237289(0x100))[_0x237289(0xdc)]();if(!validateDbUrl(_0x44b5c))throw CliErrors[_0x237289(0xd9)](_0x237289(0xfa)+_0x44b5c+'\x22',_0x237289(0xf0));},async 'dryRun'(_0x42844c){const _0x18f091=a82_0x350575,_0x31f631={'appCode':_0x42844c[_0x18f091(0xe3)],'dbName':_0x42844c['str'](_0x18f091(0xd8)),'dbType':_0x42844c[_0x18f091(0xf6)]('dbtype'),'dbVersion':_0x42844c[_0x18f091(0xf6)](_0x18f091(0xe6))||'8.0','dbUrl':_0x42844c[_0x18f091(0xf6)](_0x18f091(0x100))[_0x18f091(0xdc)](),'username':_0x42844c[_0x18f091(0xf6)]('username'),'password':_0x18f091(0xf3),..._0x42844c[_0x18f091(0xf6)](_0x18f091(0xea))?{'dbParam':_0x42844c[_0x18f091(0xf6)]('dbparam')}:{},..._0x42844c[_0x18f091(0xf6)](_0x18f091(0xd4))?{'dbDesc':_0x42844c['str'](_0x18f091(0xd4))}:{}};return{'method':_0x18f091(0xf7),'url':_0x18f091(0xde),'body':_0x31f631,'description':['Create\x20dblink',_0x42844c[_0x18f091(0xe5)](_0x18f091(0xd7))?_0x18f091(0xed):_0x18f091(0xd6)][_0x18f091(0xdb)]('\x0a')};},async 'execute'(_0x56d6db){const _0x16a866=a82_0x350575,_0x44bd6f={'appCode':_0x56d6db[_0x16a866(0xe3)],'dbName':_0x56d6db[_0x16a866(0xf6)](_0x16a866(0xd8)),'dbType':_0x56d6db['str'](_0x16a866(0xe4)),'dbVersion':_0x56d6db[_0x16a866(0xf6)](_0x16a866(0xe6))||_0x16a866(0xf8),'dbUrl':_0x56d6db[_0x16a866(0xf6)](_0x16a866(0x100))[_0x16a866(0xdc)](),'username':_0x56d6db['str'](_0x16a866(0xfb)),'password':_0x56d6db[_0x16a866(0xf6)]('password'),..._0x56d6db['str']('dbparam')?{'dbParam':_0x56d6db[_0x16a866(0xf6)](_0x16a866(0xea))}:{},..._0x56d6db['str']('dbdesc')?{'dbDesc':_0x56d6db[_0x16a866(0xf6)](_0x16a866(0xd4))}:{}},{id:_0x1e1114,entity:_0x1ad442}=normalizeEntityWithIdResponse(await createDbLink(_0x44bd6f));if(!_0x1e1114)return{'ok':![],'message':_0x16a866(0xdf),'data':sanitizeDbLinkForOutput(_0x1ad442)};let _0x2d5577,_0x3b0524;if(_0x56d6db[_0x16a866(0xe5)](_0x16a866(0xd7)))try{_0x2d5577=(await startDbAnalysis(_0x1e1114))[_0x16a866(0xf9)];}catch(_0x54dff9){_0x3b0524=_0x54dff9 instanceof Error?_0x54dff9[_0x16a866(0xfe)]:String(_0x54dff9);}const _0x49f48e=buildDbPageLinks(_0x56d6db[_0x16a866(0xe3)],_0x1e1114),_0x4d92e7={'connection':sanitizeDbLinkForOutput(_0x1ad442),..._0x49f48e?{'links':{'databasePage':_0x49f48e[_0x16a866(0xe1)]}}:{},..._0x2d5577?{'analysisPlanId':_0x2d5577}:{},..._0x3b0524?{'analysisStartWarning':_0x3b0524}:{}};let _0x24a68d;return _0x56d6db['bool'](_0x16a866(0xd7))?_0x3b0524?_0x24a68d=_0x16a866(0xe0)+_0x1e1114+_0x16a866(0xdd):_0x24a68d=_0x16a866(0xe0)+_0x1e1114+_0x16a866(0xff):_0x24a68d='Created\x20db\x20link\x20'+_0x1e1114,{'ok':!![],'data':_0x4d92e7,'message':_0x24a68d};}};
@@ -0,0 +1,2 @@
1
+ import type { CommandDefinition } from "../../framework/types.js";
2
+ export declare const dbDelete: CommandDefinition;
@@ -1 +1 @@
1
- function a83_0x4887(){const _0x503529=['25Bigwbf','7LCaLgk','13430870aHbDlI','1sfqGrn','16049196cECwnz','10193080jhbNid','high-risk-write','10520172IctnnS','1530668TzZSeL','11TafxQM','2480966cUeCfN','Deleted\x20db\x20link\x20','2793615vJqOef'];a83_0x4887=function(){return _0x503529;};return a83_0x4887();}const a83_0x3cb0cb=a83_0x3cca;(function(_0x48ba5a,_0x592ce4){const _0x21f045=a83_0x3cca,_0x531222=_0x48ba5a();while(!![]){try{const _0x109820=parseInt(_0x21f045(0x1df))/0x1*(parseInt(_0x21f045(0x1e6))/0x2)+-parseInt(_0x21f045(0x1e8))/0x3+-parseInt(_0x21f045(0x1e4))/0x4*(parseInt(_0x21f045(0x1e9))/0x5)+parseInt(_0x21f045(0x1e3))/0x6+-parseInt(_0x21f045(0x1dd))/0x7*(-parseInt(_0x21f045(0x1e1))/0x8)+-parseInt(_0x21f045(0x1e0))/0x9+-parseInt(_0x21f045(0x1de))/0xa*(-parseInt(_0x21f045(0x1e5))/0xb);if(_0x109820===_0x592ce4)break;else _0x531222['push'](_0x531222['shift']());}catch(_0x1234f0){_0x531222['push'](_0x531222['shift']());}}}(a83_0x4887,0xf00f3));import{deleteDbLink}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a83_0x3cca(_0x4b7438,_0xb21128){_0x4b7438=_0x4b7438-0x1dd;const _0x48874e=a83_0x4887();let _0x3cca90=_0x48874e[_0x4b7438];return _0x3cca90;}export const dbDelete={'service':'db','command':'delete','description':'Logically\x20delete\x20a\x20database\x20connection\x20(dblink)','risk':a83_0x3cb0cb(0x1e2),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x2a7a28){const _0x3010eb=a83_0x3cb0cb,_0x14f858=_0x2a7a28['num']('id');return await deleteDbLink(_0x14f858),{'ok':!![],'data':{'id':_0x14f858,'deleted':!![]},'message':_0x3010eb(0x1e7)+_0x14f858};}};
1
+ const a83_0x4a8461=a83_0xb11b;(function(_0x4ff941,_0x5b9884){const _0x5bd3ca=a83_0xb11b,_0x20cc2c=_0x4ff941();while(!![]){try{const _0x306e9c=parseInt(_0x5bd3ca(0xb3))/0x1+-parseInt(_0x5bd3ca(0xb2))/0x2+-parseInt(_0x5bd3ca(0xb1))/0x3*(-parseInt(_0x5bd3ca(0xb5))/0x4)+-parseInt(_0x5bd3ca(0xbc))/0x5*(parseInt(_0x5bd3ca(0xbb))/0x6)+-parseInt(_0x5bd3ca(0xb9))/0x7+parseInt(_0x5bd3ca(0xb4))/0x8*(-parseInt(_0x5bd3ca(0xaf))/0x9)+-parseInt(_0x5bd3ca(0xb7))/0xa*(-parseInt(_0x5bd3ca(0xbd))/0xb);if(_0x306e9c===_0x5b9884)break;else _0x20cc2c['push'](_0x20cc2c['shift']());}catch(_0x2afef6){_0x20cc2c['push'](_0x20cc2c['shift']());}}}(a83_0x20ab,0xc2019));function a83_0xb11b(_0x25554c,_0x48c5ed){_0x25554c=_0x25554c-0xaf;const _0x20ab74=a83_0x20ab();let _0xb11bdd=_0x20ab74[_0x25554c];return _0xb11bdd;}import{deleteDbLink}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a83_0x20ab(){const _0x8691ab=['Deleted\x20db\x20link\x20','10jMKRas','delete','1662808ceoRak','high-risk-write','6jDOYMZ','7715735hmvDVb','27304761Rdyxlc','27SPhKbj','Logically\x20delete\x20a\x20database\x20connection\x20(dblink)','62133Uhskxf','104360DkbcIK','93737qWqxlC','2458360ZTRigg','188BrcrFj'];a83_0x20ab=function(){return _0x8691ab;};return a83_0x20ab();}export const dbDelete={'service':'db','command':a83_0x4a8461(0xb8),'description':a83_0x4a8461(0xb0),'risk':a83_0x4a8461(0xba),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x373e1c){const _0x77e1d9=a83_0x4a8461,_0xf35aa2=_0x373e1c['num']('id');return await deleteDbLink(_0xf35aa2),{'ok':!![],'data':{'id':_0xf35aa2,'deleted':!![]},'message':_0x77e1d9(0xb6)+_0xf35aa2};}};
@@ -0,0 +1,2 @@
1
+ import type { CommandDefinition } from "../../framework/types.js";
2
+ export declare const dbDetail: CommandDefinition;
@@ -1 +1 @@
1
- const a84_0x139137=a84_0x1d60;(function(_0xa21d48,_0x3e2d11){const _0xcb26fb=a84_0x1d60,_0x4641e5=_0xa21d48();while(!![]){try{const _0x2facb9=parseInt(_0xcb26fb(0x12f))/0x1+-parseInt(_0xcb26fb(0x12e))/0x2*(parseInt(_0xcb26fb(0x12d))/0x3)+-parseInt(_0xcb26fb(0x130))/0x4+parseInt(_0xcb26fb(0x12a))/0x5*(parseInt(_0xcb26fb(0x12c))/0x6)+parseInt(_0xcb26fb(0x133))/0x7+parseInt(_0xcb26fb(0x132))/0x8+parseInt(_0xcb26fb(0x137))/0x9*(-parseInt(_0xcb26fb(0x131))/0xa);if(_0x2facb9===_0x3e2d11)break;else _0x4641e5['push'](_0x4641e5['shift']());}catch(_0xb0b34d){_0x4641e5['push'](_0x4641e5['shift']());}}}(a84_0x2e3b,0x4677c));function a84_0x1d60(_0x358577,_0x53935d){_0x358577=_0x358577-0x12a;const _0x2e3b1e=a84_0x2e3b();let _0x1d6056=_0x2e3b1e[_0x358577];return _0x1d6056;}import{getDbLinkInfo}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{sanitizeDbLinkForOutput}from'../../commands/db/shared.js';function a84_0x2e3b(){const _0x1d60de=['db\x20link\x20','30YqMdbW','3ZCUamn','1054890AIAWhb','212544ChtTFV','1349960tlzWKZ','29270BnofCZ','3838776McpZtc','2147901HIIvdi','read','num','dbName','801QYPpfz','detail','414840myAvGI'];a84_0x2e3b=function(){return _0x1d60de;};return a84_0x2e3b();}export const dbDetail={'service':'db','command':a84_0x139137(0x138),'description':'Get\x20one\x20database\x20connection\x20by\x20id\x20(metadata\x20+\x20analysis\x20fields;\x20password\x20redacted)','risk':a84_0x139137(0x134),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x4912a4){const _0x5eabe3=a84_0x139137,_0x301d24=_0x4912a4[_0x5eabe3(0x135)]('id'),_0x2a1e04=await getDbLinkInfo(_0x301d24);return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x2a1e04),'message':_0x5eabe3(0x12b)+_0x301d24+':\x20'+_0x2a1e04[_0x5eabe3(0x136)]};}};
1
+ function a84_0x57bb(){const _0x26aef9=['18ONfcwC','2277541nkhhnH','dbName','4EHKOAR','read','45256GBwiJD','1967241NzVLqL','711Aqrijh','4686745WWrCLd','142951VyONXu','1845206iPghsN','4302590iDXiBT','db\x20link\x20','detail'];a84_0x57bb=function(){return _0x26aef9;};return a84_0x57bb();}const a84_0x197f41=a84_0x4565;(function(_0x4daa63,_0x3c523b){const _0x373b96=a84_0x4565,_0x1be463=_0x4daa63();while(!![]){try{const _0x1a7d28=-parseInt(_0x373b96(0x163))/0x1+parseInt(_0x373b96(0x156))/0x2+-parseInt(_0x373b96(0x160))/0x3*(-parseInt(_0x373b96(0x15d))/0x4)+-parseInt(_0x373b96(0x162))/0x5+parseInt(_0x373b96(0x15a))/0x6*(parseInt(_0x373b96(0x15b))/0x7)+-parseInt(_0x373b96(0x15f))/0x8*(parseInt(_0x373b96(0x161))/0x9)+-parseInt(_0x373b96(0x157))/0xa;if(_0x1a7d28===_0x3c523b)break;else _0x1be463['push'](_0x1be463['shift']());}catch(_0x192fe3){_0x1be463['push'](_0x1be463['shift']());}}}(a84_0x57bb,0x91bf1));import{getDbLinkInfo}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a84_0x4565(_0x91db96,_0x55971b){_0x91db96=_0x91db96-0x156;const _0x57bba7=a84_0x57bb();let _0x4565d3=_0x57bba7[_0x91db96];return _0x4565d3;}import{sanitizeDbLinkForOutput}from'../../commands/db/shared.js';export const dbDetail={'service':'db','command':a84_0x197f41(0x159),'description':'Get\x20one\x20database\x20connection\x20by\x20id\x20(metadata\x20+\x20analysis\x20fields;\x20password\x20redacted)','risk':a84_0x197f41(0x15e),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x449b86){const _0x265ce9=a84_0x197f41,_0x5d3c5e=_0x449b86['num']('id'),_0x10d671=await getDbLinkInfo(_0x5d3c5e);return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x10d671),'message':_0x265ce9(0x158)+_0x5d3c5e+':\x20'+_0x10d671[_0x265ce9(0x15c)]};}};
@@ -0,0 +1,2 @@
1
+ import type { CommandDefinition } from "../../framework/types.js";
2
+ export declare const dbDiff: CommandDefinition;
@@ -1 +1 @@
1
- const a85_0xb60c0f=a85_0x2748;(function(_0x21a504,_0x15e78d){const _0x338665=a85_0x2748,_0x1a2899=_0x21a504();while(!![]){try{const _0x42d018=parseInt(_0x338665(0x83))/0x1+parseInt(_0x338665(0x70))/0x2*(-parseInt(_0x338665(0x65))/0x3)+parseInt(_0x338665(0x7b))/0x4+parseInt(_0x338665(0x84))/0x5+parseInt(_0x338665(0x6f))/0x6*(-parseInt(_0x338665(0x69))/0x7)+-parseInt(_0x338665(0x86))/0x8+parseInt(_0x338665(0x81))/0x9*(-parseInt(_0x338665(0x96))/0xa);if(_0x42d018===_0x15e78d)break;else _0x1a2899['push'](_0x1a2899['shift']());}catch(_0xb8cc24){_0x1a2899['push'](_0x1a2899['shift']());}}}(a85_0x88bd,0xa254f));import{getDbTableDiff}from'../../core/api-client.js';function a85_0x88bd(){const _0x48ee21=['summary','fromEntries','tableName','size','4653952KxGJOa','boolean','\x20of\x20','length','diffType','table','9QFQCxy','appCode','767281QJpeNo','1592735eViCBE','values','429624XqaWxe','NEW_TABLE','totalCount','map','num','fieldDiff','deletedColumns','diff','datasetTableCount','tableList','pagesize','str','bool','Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)','ALREADY_ANALYZED','changed-only','5865180MWpGIG','filter','Page\x20index\x20(1-based)','183fZYvwD','\x20row(s).','validation','number','272713hmcAGj','Fetch\x20and\x20aggregate\x20every\x20page\x20(overrides\x20--page\x20and\x20--pagesize)','\x20row(s),\x20total\x20','addedColumns','modifiedColumns','all','102IyxGzF','9242tzHBun','Exclude\x20ALREADY_ANALYZED\x20rows\x20while\x20keeping\x20deleted\x20tables','MODIFIED_TABLE','physicalTableCount','read','string','DELETED_TABLE'];a85_0x88bd=function(){return _0x48ee21;};return a85_0x88bd();}import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{CliErrors}from'../../errors.js';function a85_0x2748(_0x19e95c,_0x7e70e7){_0x19e95c=_0x19e95c-0x64;const _0x88bd9f=a85_0x88bd();let _0x2748c9=_0x88bd9f[_0x19e95c];return _0x2748c9;}const ALL_PAGE_SIZE=0x64,DIFF_TYPES=[a85_0xb60c0f(0x87),'MODIFIED_TABLE',a85_0xb60c0f(0x76),a85_0xb60c0f(0x94)];export const dbDiff={'service':'db','command':a85_0xb60c0f(0x8d),'description':'Compare\x20datasets\x20with\x20physical\x20database\x20tables\x20and\x20show\x20schema\x20drift','risk':a85_0xb60c0f(0x74),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a85_0xb60c0f(0x80),'type':a85_0xb60c0f(0x75),'description':a85_0xb60c0f(0x93)},{'name':'page','type':a85_0xb60c0f(0x68),'description':a85_0xb60c0f(0x64),'default':0x1},{'name':a85_0xb60c0f(0x90),'type':a85_0xb60c0f(0x68),'description':'Page\x20size','default':0x14},{'name':a85_0xb60c0f(0x6e),'type':a85_0xb60c0f(0x7c),'description':a85_0xb60c0f(0x6a)},{'name':'changed-only','type':a85_0xb60c0f(0x7c),'description':a85_0xb60c0f(0x71)}],async 'execute'(_0x40c98f){const _0x9b28ad=a85_0xb60c0f,_0x112630=_0x40c98f[_0x9b28ad(0x8a)]('id'),_0xf8e4d6=_0x40c98f[_0x9b28ad(0x92)]('all'),_0xde198a=_0x40c98f[_0x9b28ad(0x92)](_0x9b28ad(0x95)),_0x281eed=_0xf8e4d6?0x1:_0x40c98f[_0x9b28ad(0x8a)]('page',0x1)||0x1,_0x148986=_0xf8e4d6?ALL_PAGE_SIZE:_0x40c98f[_0x9b28ad(0x8a)](_0x9b28ad(0x90),0x14)||0x14,_0x417c3f=_0x40c98f[_0x9b28ad(0x91)](_0x9b28ad(0x80))||undefined,_0x2d9c91=_0xf8e4d6?await getAllDbTableDiff(_0x40c98f[_0x9b28ad(0x82)],_0x112630,_0x417c3f):await getDbTableDiff(_0x40c98f['appCode'],_0x112630,{'pageIndex':_0x281eed,'pageSize':_0x148986,'tableName':_0x417c3f}),_0x41f33f=_0x2d9c91['tableList'],_0x132460=_0xde198a?_0x41f33f['filter'](_0x5e710c=>_0x5e710c['diffType']!==_0x9b28ad(0x94)):_0x41f33f,_0x526573=Object[_0x9b28ad(0x78)](DIFF_TYPES[_0x9b28ad(0x89)](_0x42f4b1=>[_0x42f4b1,_0x41f33f['filter'](_0x1a9db4=>_0x1a9db4[_0x9b28ad(0x7f)]===_0x42f4b1)[_0x9b28ad(0x7e)]])),_0xe2ab4c=_0x41f33f['filter'](_0x21e731=>_0x21e731[_0x9b28ad(0x7f)]===_0x9b28ad(0x87)||_0x21e731[_0x9b28ad(0x7f)]===_0x9b28ad(0x72))['map'](_0x333682=>_0x333682[_0x9b28ad(0x79)]),_0x4bc299=_0x41f33f[_0x9b28ad(0x97)](_0x21cc43=>_0x21cc43[_0x9b28ad(0x7f)]===_0x9b28ad(0x76))[_0x9b28ad(0x89)](_0x1ce0b4=>_0x1ce0b4[_0x9b28ad(0x79)]),_0x13f3cb=_0x41f33f['filter'](_0x434825=>_0x434825[_0x9b28ad(0x7f)]===_0x9b28ad(0x72))[_0x9b28ad(0x89)](_0x37ab24=>({'tableName':_0x37ab24[_0x9b28ad(0x79)],'addedColumns':_0x37ab24[_0x9b28ad(0x8b)]?.[_0x9b28ad(0x6c)]??[],'deletedColumns':_0x37ab24[_0x9b28ad(0x8b)]?.[_0x9b28ad(0x8c)]??[],'modifiedColumns':_0x37ab24[_0x9b28ad(0x8b)]?.[_0x9b28ad(0x6d)]??[]}));return{'ok':!![],'data':{'dbLinkId':_0x112630,'page':_0x281eed,'pageSize':_0x148986,'totalCount':_0x2d9c91[_0x9b28ad(0x88)],'physicalTableCount':_0x2d9c91[_0x9b28ad(0x73)],'datasetTableCount':_0x2d9c91[_0x9b28ad(0x8e)],..._0x2d9c91['summary']?{'summary':_0x2d9c91[_0x9b28ad(0x77)]}:{},'summaryByType':_0x526573,'toAnalyzeTables':_0xe2ab4c,'deletedTables':_0x4bc299,'modifiedFieldDiffs':_0x13f3cb,'tables':_0x132460,'tableList':_0x132460},'message':_0x132460[_0x9b28ad(0x7e)]+_0x9b28ad(0x6b)+_0x2d9c91[_0x9b28ad(0x88)]+'\x20(db\x20link\x20'+_0x112630+')'};}};async function getAllDbTableDiff(_0x5000aa,_0x5c2c78,_0x19e299){const _0x5d7d6f=a85_0xb60c0f,_0x21251e=new Map();let _0xffac78=0x1,_0x517548=null;while(!![]){_0x517548=await getDbTableDiff(_0x5000aa,_0x5c2c78,{'pageIndex':_0xffac78,'pageSize':ALL_PAGE_SIZE,'tableName':_0x19e299});const _0x46b0c0=_0x21251e[_0x5d7d6f(0x7a)];for(const _0x18284a of _0x517548['tableList']){_0x21251e['set'](_0x18284a['tableName'],_0x18284a);}if(_0x21251e[_0x5d7d6f(0x7a)]>=_0x517548[_0x5d7d6f(0x88)])break;if(_0x517548[_0x5d7d6f(0x8f)][_0x5d7d6f(0x7e)]===0x0||_0x21251e['size']===_0x46b0c0)throw CliErrors[_0x5d7d6f(0x67)]('Incomplete\x20db\x20diff\x20pagination:\x20collected\x20'+_0x21251e['size']+_0x5d7d6f(0x7d)+_0x517548[_0x5d7d6f(0x88)]+_0x5d7d6f(0x66));_0xffac78+=0x1;}return{'totalCount':_0x517548?.['totalCount']??0x0,'physicalTableCount':_0x517548?.['physicalTableCount']??0x0,'datasetTableCount':_0x517548?.[_0x5d7d6f(0x8e)]??0x0,..._0x517548?.[_0x5d7d6f(0x77)]?{'summary':_0x517548[_0x5d7d6f(0x77)]}:{},'tableList':[..._0x21251e[_0x5d7d6f(0x85)]()]};}
1
+ const a85_0xc60330=a85_0x1922;(function(_0x1521b4,_0x2456f0){const _0x4039f5=a85_0x1922,_0x18d478=_0x1521b4();while(!![]){try{const _0x1384dc=parseInt(_0x4039f5(0x11e))/0x1+parseInt(_0x4039f5(0x118))/0x2+parseInt(_0x4039f5(0x133))/0x3*(-parseInt(_0x4039f5(0x117))/0x4)+parseInt(_0x4039f5(0x104))/0x5*(-parseInt(_0x4039f5(0x129))/0x6)+-parseInt(_0x4039f5(0x111))/0x7*(parseInt(_0x4039f5(0x131))/0x8)+-parseInt(_0x4039f5(0x10d))/0x9*(parseInt(_0x4039f5(0x12c))/0xa)+-parseInt(_0x4039f5(0x11a))/0xb*(-parseInt(_0x4039f5(0x120))/0xc);if(_0x1384dc===_0x2456f0)break;else _0x18d478['push'](_0x18d478['shift']());}catch(_0x4cc54a){_0x18d478['push'](_0x18d478['shift']());}}}(a85_0x1fbb,0xb774f));import{getDbTableDiff}from'../../core/api-client.js';function a85_0x1922(_0x3edd95,_0xc0c75){_0x3edd95=_0x3edd95-0x102;const _0x1fbb37=a85_0x1fbb();let _0x19222e=_0x1fbb37[_0x3edd95];return _0x19222e;}import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{CliErrors}from'../../errors.js';const ALL_PAGE_SIZE=0x64,DIFF_TYPES=[a85_0xc60330(0x119),a85_0xc60330(0x106),a85_0xc60330(0x130),a85_0xc60330(0x132)];function a85_0x1fbb(){const _0x621787=['all','Page\x20size','length','filter','1097304LBbbBA','2421002kiPsCR','NEW_TABLE','1419HaycMJ','diff','Compare\x20datasets\x20with\x20physical\x20database\x20tables\x20and\x20show\x20schema\x20drift','appCode','70260AYNyFc','Page\x20index\x20(1-based)','290856evhlKp','fieldDiff','num','addedColumns','physicalTableCount','string','number','bool','pagesize','6knLyDV','diffType','Fetch\x20and\x20aggregate\x20every\x20page\x20(overrides\x20--page\x20and\x20--pagesize)','11547480CYjfPI','modifiedColumns','\x20(db\x20link\x20','Exclude\x20ALREADY_ANALYZED\x20rows\x20while\x20keeping\x20deleted\x20tables','DELETED_TABLE','16rvPOqa','ALREADY_ANALYZED','15PipYNj','validation','map','page','6210tjbmnE','tableList','MODIFIED_TABLE','\x20row(s),\x20total\x20','table','size','\x20of\x20','tableName','totalCount','9DAgLea','read','summary','changed-only','3949414clVZvd','set'];a85_0x1fbb=function(){return _0x621787;};return a85_0x1fbb();}export const dbDiff={'service':'db','command':a85_0xc60330(0x11b),'description':a85_0xc60330(0x11c),'risk':a85_0xc60330(0x10e),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a85_0xc60330(0x108),'type':a85_0xc60330(0x125),'description':'Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)'},{'name':a85_0xc60330(0x103),'type':a85_0xc60330(0x126),'description':a85_0xc60330(0x11f),'default':0x1},{'name':a85_0xc60330(0x128),'type':'number','description':a85_0xc60330(0x114),'default':0x14},{'name':a85_0xc60330(0x113),'type':'boolean','description':a85_0xc60330(0x12b)},{'name':a85_0xc60330(0x110),'type':'boolean','description':a85_0xc60330(0x12f)}],async 'execute'(_0x32320c){const _0x52060c=a85_0xc60330,_0x2c5e36=_0x32320c[_0x52060c(0x122)]('id'),_0x20cb1f=_0x32320c['bool']('all'),_0x14ce99=_0x32320c[_0x52060c(0x127)](_0x52060c(0x110)),_0xb14317=_0x20cb1f?0x1:_0x32320c[_0x52060c(0x122)]('page',0x1)||0x1,_0x50830b=_0x20cb1f?ALL_PAGE_SIZE:_0x32320c['num'](_0x52060c(0x128),0x14)||0x14,_0x3a3758=_0x32320c['str']('table')||undefined,_0x38853f=_0x20cb1f?await getAllDbTableDiff(_0x32320c[_0x52060c(0x11d)],_0x2c5e36,_0x3a3758):await getDbTableDiff(_0x32320c[_0x52060c(0x11d)],_0x2c5e36,{'pageIndex':_0xb14317,'pageSize':_0x50830b,'tableName':_0x3a3758}),_0x37a6bc=_0x38853f['tableList'],_0x598ba8=_0x14ce99?_0x37a6bc[_0x52060c(0x116)](_0x252f5d=>_0x252f5d[_0x52060c(0x12a)]!==_0x52060c(0x132)):_0x37a6bc,_0x4967b3=Object['fromEntries'](DIFF_TYPES[_0x52060c(0x102)](_0x1d7c8a=>[_0x1d7c8a,_0x37a6bc[_0x52060c(0x116)](_0x4395de=>_0x4395de['diffType']===_0x1d7c8a)['length']])),_0xb01eac=_0x37a6bc[_0x52060c(0x116)](_0x2002b5=>_0x2002b5['diffType']===_0x52060c(0x119)||_0x2002b5[_0x52060c(0x12a)]===_0x52060c(0x106))['map'](_0x43de64=>_0x43de64[_0x52060c(0x10b)]),_0x4ea541=_0x37a6bc[_0x52060c(0x116)](_0x3c4c1c=>_0x3c4c1c[_0x52060c(0x12a)]===_0x52060c(0x130))['map'](_0x372167=>_0x372167[_0x52060c(0x10b)]),_0x2fef02=_0x37a6bc[_0x52060c(0x116)](_0x2f1826=>_0x2f1826[_0x52060c(0x12a)]==='MODIFIED_TABLE')['map'](_0x12293d=>({'tableName':_0x12293d[_0x52060c(0x10b)],'addedColumns':_0x12293d[_0x52060c(0x121)]?.[_0x52060c(0x123)]??[],'deletedColumns':_0x12293d[_0x52060c(0x121)]?.['deletedColumns']??[],'modifiedColumns':_0x12293d[_0x52060c(0x121)]?.[_0x52060c(0x12d)]??[]}));return{'ok':!![],'data':{'dbLinkId':_0x2c5e36,'page':_0xb14317,'pageSize':_0x50830b,'totalCount':_0x38853f[_0x52060c(0x10c)],'physicalTableCount':_0x38853f[_0x52060c(0x124)],'datasetTableCount':_0x38853f['datasetTableCount'],..._0x38853f[_0x52060c(0x10f)]?{'summary':_0x38853f['summary']}:{},'summaryByType':_0x4967b3,'toAnalyzeTables':_0xb01eac,'deletedTables':_0x4ea541,'modifiedFieldDiffs':_0x2fef02,'tables':_0x598ba8,'tableList':_0x598ba8},'message':_0x598ba8[_0x52060c(0x115)]+_0x52060c(0x107)+_0x38853f[_0x52060c(0x10c)]+_0x52060c(0x12e)+_0x2c5e36+')'};}};async function getAllDbTableDiff(_0x5eece9,_0x51bed4,_0x40c0a6){const _0x496b05=a85_0xc60330,_0x36f280=new Map();let _0x4f0416=0x1,_0x230e90=null;while(!![]){_0x230e90=await getDbTableDiff(_0x5eece9,_0x51bed4,{'pageIndex':_0x4f0416,'pageSize':ALL_PAGE_SIZE,'tableName':_0x40c0a6});const _0x250435=_0x36f280[_0x496b05(0x109)];for(const _0x475801 of _0x230e90[_0x496b05(0x105)]){_0x36f280[_0x496b05(0x112)](_0x475801['tableName'],_0x475801);}if(_0x36f280[_0x496b05(0x109)]>=_0x230e90[_0x496b05(0x10c)])break;if(_0x230e90[_0x496b05(0x105)][_0x496b05(0x115)]===0x0||_0x36f280[_0x496b05(0x109)]===_0x250435)throw CliErrors[_0x496b05(0x134)]('Incomplete\x20db\x20diff\x20pagination:\x20collected\x20'+_0x36f280['size']+_0x496b05(0x10a)+_0x230e90['totalCount']+'\x20row(s).');_0x4f0416+=0x1;}return{'totalCount':_0x230e90?.['totalCount']??0x0,'physicalTableCount':_0x230e90?.['physicalTableCount']??0x0,'datasetTableCount':_0x230e90?.['datasetTableCount']??0x0,..._0x230e90?.[_0x496b05(0x10f)]?{'summary':_0x230e90[_0x496b05(0x10f)]}:{},'tableList':[..._0x36f280['values']()]};}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * db 命令组 — 数据库连接(dblink)与分析任务,对齐研发态 smartapi/dblink、db-analysis
3
+ */
4
+ import type { CommandDefinition } from "../../framework/types.js";
5
+ export declare const dbDefinitions: CommandDefinition[];
@@ -1 +1 @@
1
- (function(_0x29cc62,_0x3e9584){const _0x42f883=a86_0x55f8,_0x42bef2=_0x29cc62();while(!![]){try{const _0x5a221e=parseInt(_0x42f883(0x134))/0x1*(-parseInt(_0x42f883(0x130))/0x2)+-parseInt(_0x42f883(0x138))/0x3+parseInt(_0x42f883(0x13a))/0x4*(-parseInt(_0x42f883(0x135))/0x5)+parseInt(_0x42f883(0x133))/0x6*(-parseInt(_0x42f883(0x137))/0x7)+parseInt(_0x42f883(0x13b))/0x8*(-parseInt(_0x42f883(0x131))/0x9)+-parseInt(_0x42f883(0x132))/0xa+-parseInt(_0x42f883(0x139))/0xb*(-parseInt(_0x42f883(0x136))/0xc);if(_0x5a221e===_0x3e9584)break;else _0x42bef2['push'](_0x42bef2['shift']());}catch(_0x46253c){_0x42bef2['push'](_0x42bef2['shift']());}}}(a86_0x257b,0x4c457));function a86_0x55f8(_0x1915fa,_0x9fcdeb){_0x1915fa=_0x1915fa-0x130;const _0x257b8b=a86_0x257b();let _0x55f811=_0x257b8b[_0x1915fa];return _0x55f811;}import{dbList}from'../../commands/db/list.js';import{dbDetail}from'../../commands/db/detail.js';function a86_0x257b(){const _0x508de2=['12026jOmzVN','335610dgmrPm','22732457Shazvh','1827860qkRrnP','15432ucODpP','13532WgGJXJ','2331QuXxef','1562060jAeWud','786yxlOMU','45sclDkc','5DcfxUn','12hFNxzb'];a86_0x257b=function(){return _0x508de2;};return a86_0x257b();}import{dbCreate}from'../../commands/db/create.js';import{dbUpdate}from'../../commands/db/update.js';import{dbDelete}from'../../commands/db/delete.js';import{dbTest}from'../../commands/db/test.js';import{dbAnalyzeBatchPlan}from'../../commands/db/analyze-batch-plan.js';import{dbAnalyzeStart}from'../../commands/db/analyze-start.js';import{dbAnalyzeCancel}from'../../commands/db/analyze-cancel.js';import{dbAnalyzeStatus}from'../../commands/db/analyze-status.js';import{dbTables}from'../../commands/db/tables.js';import{dbDiff}from'../../commands/db/diff.js';export const dbDefinitions=[dbList,dbDetail,dbCreate,dbUpdate,dbDelete,dbTest,dbAnalyzeBatchPlan,dbAnalyzeStart,dbAnalyzeCancel,dbAnalyzeStatus,dbTables,dbDiff];
1
+ function a86_0xc1af(_0x1addf4,_0x558ad3){_0x1addf4=_0x1addf4-0x167;const _0x1bab8d=a86_0x1bab();let _0xc1afc5=_0x1bab8d[_0x1addf4];return _0xc1afc5;}function a86_0x1bab(){const _0xc977e4=['3733025KvIJHA','1464522eNJBeZ','4ZOKywY','526499ckqKPC','577228ISIbKS','5222952XbHgev','315dbAaDE','5396951XhdfbQ','53768SntWMc'];a86_0x1bab=function(){return _0xc977e4;};return a86_0x1bab();}(function(_0x39358a,_0x367903){const _0xb526e5=a86_0xc1af,_0x34d558=_0x39358a();while(!![]){try{const _0x558e23=-parseInt(_0xb526e5(0x168))/0x1*(-parseInt(_0xb526e5(0x167))/0x2)+parseInt(_0xb526e5(0x16f))/0x3+parseInt(_0xb526e5(0x169))/0x4+-parseInt(_0xb526e5(0x16e))/0x5+-parseInt(_0xb526e5(0x16a))/0x6+parseInt(_0xb526e5(0x16c))/0x7+-parseInt(_0xb526e5(0x16d))/0x8*(parseInt(_0xb526e5(0x16b))/0x9);if(_0x558e23===_0x367903)break;else _0x34d558['push'](_0x34d558['shift']());}catch(_0x53f046){_0x34d558['push'](_0x34d558['shift']());}}}(a86_0x1bab,0x937ec));import{dbList}from'../../commands/db/list.js';import{dbDetail}from'../../commands/db/detail.js';import{dbCreate}from'../../commands/db/create.js';import{dbUpdate}from'../../commands/db/update.js';import{dbDelete}from'../../commands/db/delete.js';import{dbTest}from'../../commands/db/test.js';import{dbAnalyzeBatchPlan}from'../../commands/db/analyze-batch-plan.js';import{dbAnalyzeStart}from'../../commands/db/analyze-start.js';import{dbAnalyzeCancel}from'../../commands/db/analyze-cancel.js';import{dbAnalyzeStatus}from'../../commands/db/analyze-status.js';import{dbTables}from'../../commands/db/tables.js';import{dbDiff}from'../../commands/db/diff.js';export const dbDefinitions=[dbList,dbDetail,dbCreate,dbUpdate,dbDelete,dbTest,dbAnalyzeBatchPlan,dbAnalyzeStart,dbAnalyzeCancel,dbAnalyzeStatus,dbTables,dbDiff];
@@ -0,0 +1,2 @@
1
+ import type { CommandDefinition } from "../../framework/types.js";
2
+ export declare const dbList: CommandDefinition;
@@ -1 +1 @@
1
- function a87_0x448c(_0x928946,_0x4e12a2){_0x928946=_0x928946-0x1ae;const _0x5e214d=a87_0x5e21();let _0x448cf5=_0x5e214d[_0x928946];return _0x448cf5;}const a87_0x5eda5d=a87_0x448c;(function(_0x397b71,_0x15357e){const _0x2dfb30=a87_0x448c,_0x46ba6d=_0x397b71();while(!![]){try{const _0xacae5=-parseInt(_0x2dfb30(0x1b6))/0x1*(parseInt(_0x2dfb30(0x1b8))/0x2)+-parseInt(_0x2dfb30(0x1b7))/0x3*(parseInt(_0x2dfb30(0x1bb))/0x4)+-parseInt(_0x2dfb30(0x1c2))/0x5*(-parseInt(_0x2dfb30(0x1b2))/0x6)+parseInt(_0x2dfb30(0x1c1))/0x7*(parseInt(_0x2dfb30(0x1b3))/0x8)+parseInt(_0x2dfb30(0x1ba))/0x9+-parseInt(_0x2dfb30(0x1bf))/0xa+-parseInt(_0x2dfb30(0x1be))/0xb*(parseInt(_0x2dfb30(0x1ae))/0xc);if(_0xacae5===_0x15357e)break;else _0x46ba6d['push'](_0x46ba6d['shift']());}catch(_0x26b348){_0x46ba6d['push'](_0x46ba6d['shift']());}}}(a87_0x5e21,0x18c93));import{listDbLinks}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{sanitizeDbLinkList}from'../../commands/db/shared.js';export const dbList={'service':'db','command':a87_0x5eda5d(0x1c3),'description':'List\x20database\x20connections\x20(dblinks)\x20for\x20the\x20current\x20app\x20with\x20analysis\x20status\x20—\x20for\x20AI\x20to\x20pick\x20ids\x20before\x20db\x20detail\x20/\x20analyze\x20/\x20tables','risk':a87_0x5eda5d(0x1b5),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a87_0x5eda5d(0x1b9),'type':a87_0x5eda5d(0x1b0),'description':a87_0x5eda5d(0x1b1),'default':0x1},{'name':a87_0x5eda5d(0x1bd),'type':a87_0x5eda5d(0x1b0),'description':'Page\x20size','default':0x64}],async 'execute'(_0x1945f4){const _0x290962=a87_0x5eda5d,_0x466749=_0x1945f4['num'](_0x290962(0x1b9),0x1)||0x1,_0x1ddb06=_0x1945f4[_0x290962(0x1c0)]('pagesize',0x64)||0x64,{items:_0x30179b,paging:_0x2c130f}=await listDbLinks(_0x1945f4['appCode'],{'currentPage':_0x466749,'pageSize':_0x1ddb06}),_0x11ea54=sanitizeDbLinkList(_0x30179b),_0x498541=_0x2c130f?_0x2c130f:{'currentPage':_0x466749,'pageSize':_0x1ddb06,'rowsOnPage':_0x11ea54[_0x290962(0x1b4)],'totalCount':null,'note':_0x290962(0x1af)};return{'ok':!![],'data':{'connections':_0x11ea54,'paging':_0x498541},'message':'Found\x20'+_0x11ea54[_0x290962(0x1b4)]+_0x290962(0x1bc)};}};function a87_0x5e21(){const _0x5a59c8=['length','read','1FSypyy','21ZUzHdL','77230jpwWYq','page','499527hvRste','3056omtAYb','\x20database\x20connection(s)','pagesize','453013zaunRh','1039340lTsTaG','num','7qFLONI','2115STynnF','list','36eNNIHv','Server\x20omitted\x20paging\x20metadata;\x20totalCount\x20is\x20unknown\x20—\x20rowsOnPage\x20is\x20this\x20page\x20only','number','Page\x20index\x20(1-based)','1896WxlKBD','1470384VwBbit'];a87_0x5e21=function(){return _0x5a59c8;};return a87_0x5e21();}
1
+ const a87_0x5a0a34=a87_0x51ff;(function(_0x34ded6,_0x44c4bf){const _0x449dca=a87_0x51ff,_0x391ba2=_0x34ded6();while(!![]){try{const _0x8c5eee=parseInt(_0x449dca(0xf3))/0x1*(-parseInt(_0x449dca(0xee))/0x2)+parseInt(_0x449dca(0xea))/0x3*(-parseInt(_0x449dca(0xfb))/0x4)+parseInt(_0x449dca(0xf8))/0x5+parseInt(_0x449dca(0xec))/0x6+-parseInt(_0x449dca(0xfe))/0x7*(-parseInt(_0x449dca(0xed))/0x8)+parseInt(_0x449dca(0xfa))/0x9+parseInt(_0x449dca(0xf5))/0xa*(-parseInt(_0x449dca(0xef))/0xb);if(_0x8c5eee===_0x44c4bf)break;else _0x391ba2['push'](_0x391ba2['shift']());}catch(_0x3e80e1){_0x391ba2['push'](_0x391ba2['shift']());}}}(a87_0xec84,0x4de81));import{listDbLinks}from'../../core/api-client.js';function a87_0x51ff(_0x2f3ed0,_0x4af48a){_0x2f3ed0=_0x2f3ed0-0xe9;const _0xec845b=a87_0xec84();let _0x51ff65=_0xec845b[_0x2f3ed0];return _0x51ff65;}function a87_0xec84(){const _0x15b87e=['appCode','461106kNERmM','3555368PDaMaP','2wRKfTl','8640874rZrkzK','Server\x20omitted\x20paging\x20metadata;\x20totalCount\x20is\x20unknown\x20—\x20rowsOnPage\x20is\x20this\x20page\x20only','pagesize','read','60244iYUlVn','page','10nOlnRP','Found\x20','Page\x20size','2358220PslLVC','number','3533976pKnLPv','10636qeBcDX','\x20database\x20connection(s)','Page\x20index\x20(1-based)','7BMdiXl','length','num','249dJGeLv'];a87_0xec84=function(){return _0x15b87e;};return a87_0xec84();}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{sanitizeDbLinkList}from'../../commands/db/shared.js';export const dbList={'service':'db','command':'list','description':'List\x20database\x20connections\x20(dblinks)\x20for\x20the\x20current\x20app\x20with\x20analysis\x20status\x20—\x20for\x20AI\x20to\x20pick\x20ids\x20before\x20db\x20detail\x20/\x20analyze\x20/\x20tables','risk':a87_0x5a0a34(0xf2),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a87_0x5a0a34(0xf4),'type':a87_0x5a0a34(0xf9),'description':a87_0x5a0a34(0xfd),'default':0x1},{'name':a87_0x5a0a34(0xf1),'type':'number','description':a87_0x5a0a34(0xf7),'default':0x64}],async 'execute'(_0x2e820c){const _0x2504ce=a87_0x5a0a34,_0x40d809=_0x2e820c[_0x2504ce(0xe9)](_0x2504ce(0xf4),0x1)||0x1,_0x38bcc6=_0x2e820c[_0x2504ce(0xe9)]('pagesize',0x64)||0x64,{items:_0x4b3dce,paging:_0x322ecf}=await listDbLinks(_0x2e820c[_0x2504ce(0xeb)],{'currentPage':_0x40d809,'pageSize':_0x38bcc6}),_0x5924f7=sanitizeDbLinkList(_0x4b3dce),_0x39796f=_0x322ecf?_0x322ecf:{'currentPage':_0x40d809,'pageSize':_0x38bcc6,'rowsOnPage':_0x5924f7[_0x2504ce(0xff)],'totalCount':null,'note':_0x2504ce(0xf0)};return{'ok':!![],'data':{'connections':_0x5924f7,'paging':_0x39796f},'message':_0x2504ce(0xf6)+_0x5924f7[_0x2504ce(0xff)]+_0x2504ce(0xfc)};}};
@@ -0,0 +1,15 @@
1
+ /**
2
+ * db 子命令共享:输出脱敏(凭据类字段不落盘到 AI 可读 JSON)。
3
+ */
4
+ import type { DbLinkInfo } from "../../core/api-client.js";
5
+ /**
6
+ * 单条连接信息脱敏后返回(避免把明文凭据回传给 agent)。
7
+ */
8
+ export declare function sanitizeDbLinkForOutput(link: DbLinkInfo | Record<string, unknown>): Record<string, unknown>;
9
+ export declare function sanitizeDbLinkList(items: DbLinkInfo[]): Record<string, unknown>[];
10
+ export declare function validateDbUrl(dbUrl: string): boolean;
11
+ export interface DbPageLinks {
12
+ databasePage: string;
13
+ erPage: string;
14
+ }
15
+ export declare function buildDbPageLinks(appCode: string | undefined, dbLinkId: number | string | undefined): DbPageLinks | undefined;
@@ -1 +1 @@
1
- (function(_0x59c2da,_0x5c17f9){const _0x3a5632=a88_0x5295,_0x568264=_0x59c2da();while(!![]){try{const _0x38c518=-parseInt(_0x3a5632(0xb4))/0x1+parseInt(_0x3a5632(0xc7))/0x2*(-parseInt(_0x3a5632(0xba))/0x3)+parseInt(_0x3a5632(0xbf))/0x4+parseInt(_0x3a5632(0xc2))/0x5*(-parseInt(_0x3a5632(0xc6))/0x6)+-parseInt(_0x3a5632(0xc4))/0x7+-parseInt(_0x3a5632(0xb7))/0x8*(-parseInt(_0x3a5632(0xc8))/0x9)+parseInt(_0x3a5632(0xc3))/0xa*(parseInt(_0x3a5632(0xbe))/0xb);if(_0x38c518===_0x5c17f9)break;else _0x568264['push'](_0x568264['shift']());}catch(_0x4afbe1){_0x568264['push'](_0x568264['shift']());}}}(a88_0x33f7,0x1df6a));import{getAppBaseUrl}from'../../constant/domain.js';function shouldRedactKey(_0x4a6e55){const _0x5ea53f=a88_0x5295,_0x42eef9=_0x4a6e55[_0x5ea53f(0xca)]();if(_0x42eef9==='password'||_0x42eef9===_0x5ea53f(0xcb)||_0x42eef9==='dbpassword')return!![];if(_0x42eef9['includes'](_0x5ea53f(0xc1))||_0x42eef9['includes'](_0x5ea53f(0xbc))||_0x42eef9['includes'](_0x5ea53f(0xb6)))return!![];if(_0x42eef9[_0x5ea53f(0xc9)](_0x5ea53f(0xbb))||_0x42eef9[_0x5ea53f(0xc9)](_0x5ea53f(0xcc)))return!![];if(_0x42eef9===_0x5ea53f(0xb9)||_0x42eef9===_0x5ea53f(0xce)||_0x42eef9===_0x5ea53f(0xbd))return!![];return![];}function a88_0x5295(_0xb262f0,_0x4447a1){_0xb262f0=_0xb262f0-0xb4;const _0x33f701=a88_0x33f7();let _0x5295cc=_0x33f701[_0xb262f0];return _0x5295cc;}export function sanitizeDbLinkForOutput(_0x49dc59){const _0x48a23a=a88_0x5295,_0x45a106={..._0x49dc59};for(const _0x5bf1b5 of Object['keys'](_0x45a106)){if(!shouldRedactKey(_0x5bf1b5))continue;const _0x44b832=_0x45a106[_0x5bf1b5];_0x44b832!=null&&String(_0x44b832)[_0x48a23a(0xc0)]>0x0&&(_0x45a106[_0x5bf1b5]=_0x48a23a(0xb5));}return _0x45a106;}function a88_0x33f7(){const _0x363cd8=['connectionstring','234333jabPGq','[redacted]','credential','608bjiWlq','trim','authorization','313797kKToxm','privatekey','token','jdbcurl','2575562gUkwmv','91144RmGJbx','length','secret','8565BRmgDW','20YDSLRw','990682kNYYSQ','map','420vcmeIP','2uhfGVm','27477MZLzLa','includes','toLowerCase','passwd','accesskey','test'];a88_0x33f7=function(){return _0x363cd8;};return a88_0x33f7();}export function sanitizeDbLinkList(_0x21070c){const _0x5ce4fd=a88_0x5295;return _0x21070c[_0x5ce4fd(0xc5)](_0x30119=>sanitizeDbLinkForOutput(_0x30119));}const DB_URL_PATTERN=/^[^\s:]+(?::\d+)?$/;export function validateDbUrl(_0x15f121){const _0x410ab7=a88_0x5295,_0x545c32=_0x15f121[_0x410ab7(0xb8)]();if(!_0x545c32)return![];return DB_URL_PATTERN[_0x410ab7(0xcd)](_0x545c32);}export function buildDbPageLinks(_0x1373d2,_0x2bed4e){const _0x495b9=a88_0x5295,_0x452a26=_0x1373d2?.[_0x495b9(0xb8)]();if(!_0x452a26)return undefined;const _0x420f67=typeof _0x2bed4e==='number'?String(_0x2bed4e):String(_0x2bed4e??'')[_0x495b9(0xb8)]();if(!_0x420f67)return undefined;const _0x7fdf93=Number(_0x420f67);if(!Number['isFinite'](_0x7fdf93)||_0x7fdf93<=0x0)return undefined;const _0x27c75b=getAppBaseUrl(_0x452a26),_0x404118=encodeURIComponent(String(_0x7fdf93));return{'databasePage':_0x27c75b+'/data/database','erPage':_0x27c75b+'/data/er?dbId='+_0x404118};}
1
+ (function(_0x419b34,_0x5f44ff){const _0x317947=a88_0x2d86,_0x43f1da=_0x419b34();while(!![]){try{const _0x534aae=parseInt(_0x317947(0xfe))/0x1*(-parseInt(_0x317947(0xff))/0x2)+parseInt(_0x317947(0x104))/0x3+parseInt(_0x317947(0x100))/0x4+parseInt(_0x317947(0x10c))/0x5+-parseInt(_0x317947(0x10e))/0x6+-parseInt(_0x317947(0x106))/0x7+parseInt(_0x317947(0x116))/0x8;if(_0x534aae===_0x5f44ff)break;else _0x43f1da['push'](_0x43f1da['shift']());}catch(_0x51a3c2){_0x43f1da['push'](_0x43f1da['shift']());}}}(a88_0x2282,0xd1ffd));import{getAppBaseUrl}from'../../constant/domain.js';function shouldRedactKey(_0xfadcf6){const _0x476317=a88_0x2d86,_0x4a4592=_0xfadcf6['toLowerCase']();if(_0x4a4592===_0x476317(0x110)||_0x4a4592==='passwd'||_0x4a4592===_0x476317(0x112))return!![];if(_0x4a4592[_0x476317(0x10b)](_0x476317(0x102))||_0x4a4592['includes'](_0x476317(0x115))||_0x4a4592[_0x476317(0x10b)](_0x476317(0x108)))return!![];if(_0x4a4592[_0x476317(0x10b)](_0x476317(0x10d))||_0x4a4592[_0x476317(0x10b)](_0x476317(0x107)))return!![];if(_0x4a4592===_0x476317(0x103)||_0x4a4592===_0x476317(0x10f)||_0x4a4592===_0x476317(0x101))return!![];return![];}export function sanitizeDbLinkForOutput(_0x43defd){const _0x452726=a88_0x2d86,_0x18603e={..._0x43defd};for(const _0xc8bec of Object[_0x452726(0x109)](_0x18603e)){if(!shouldRedactKey(_0xc8bec))continue;const _0x1bc89a=_0x18603e[_0xc8bec];_0x1bc89a!=null&&String(_0x1bc89a)[_0x452726(0x113)]>0x0&&(_0x18603e[_0xc8bec]='[redacted]');}return _0x18603e;}export function sanitizeDbLinkList(_0x471ac5){const _0xa663ad=a88_0x2d86;return _0x471ac5[_0xa663ad(0x105)](_0x101601=>sanitizeDbLinkForOutput(_0x101601));}function a88_0x2d86(_0x3847df,_0x57d6b7){_0x3847df=_0x3847df-0xfd;const _0x22829a=a88_0x2282();let _0x2d8635=_0x22829a[_0x3847df];return _0x2d8635;}function a88_0x2282(){const _0x3e4916=['7000985TUkDiV','privatekey','6721236RZPTpt','connectionstring','password','isFinite','dbpassword','length','/data/er?dbId=','token','2693432ZWLVSn','trim','1IhAXyf','409158zTXOUd','4741100FcSQcx','jdbcurl','secret','authorization','1163922KOmFUL','map','7876281uFnWAf','accesskey','credential','keys','/data/database','includes'];a88_0x2282=function(){return _0x3e4916;};return a88_0x2282();}const DB_URL_PATTERN=/^[^\s:]+(?::\d+)?$/;export function validateDbUrl(_0x2b4cbf){const _0xa590d2=a88_0x2d86,_0x4d73be=_0x2b4cbf[_0xa590d2(0xfd)]();if(!_0x4d73be)return![];return DB_URL_PATTERN['test'](_0x4d73be);}export function buildDbPageLinks(_0x38281a,_0xbed914){const _0x17d9a7=a88_0x2d86,_0x5715b9=_0x38281a?.[_0x17d9a7(0xfd)]();if(!_0x5715b9)return undefined;const _0x58f756=typeof _0xbed914==='number'?String(_0xbed914):String(_0xbed914??'')[_0x17d9a7(0xfd)]();if(!_0x58f756)return undefined;const _0x4dc650=Number(_0x58f756);if(!Number[_0x17d9a7(0x111)](_0x4dc650)||_0x4dc650<=0x0)return undefined;const _0xf40651=getAppBaseUrl(_0x5715b9),_0x4ce018=encodeURIComponent(String(_0x4dc650));return{'databasePage':_0xf40651+_0x17d9a7(0x10a),'erPage':_0xf40651+_0x17d9a7(0x114)+_0x4ce018};}
@@ -0,0 +1,2 @@
1
+ import type { CommandDefinition } from "../../framework/types.js";
2
+ export declare const dbTables: CommandDefinition;
@@ -1 +1 @@
1
- const a89_0x3c2ee9=a89_0x565d;(function(_0x598d4c,_0x556b80){const _0x22f3fa=a89_0x565d,_0x24419e=_0x598d4c();while(!![]){try{const _0x445bbe=-parseInt(_0x22f3fa(0x9c))/0x1*(-parseInt(_0x22f3fa(0x9b))/0x2)+parseInt(_0x22f3fa(0x96))/0x3*(-parseInt(_0x22f3fa(0x9a))/0x4)+parseInt(_0x22f3fa(0x99))/0x5*(parseInt(_0x22f3fa(0xa0))/0x6)+parseInt(_0x22f3fa(0x95))/0x7+parseInt(_0x22f3fa(0x9e))/0x8+parseInt(_0x22f3fa(0xa1))/0x9+-parseInt(_0x22f3fa(0x9d))/0xa;if(_0x445bbe===_0x556b80)break;else _0x24419e['push'](_0x24419e['shift']());}catch(_0x4f2fa1){_0x24419e['push'](_0x24419e['shift']());}}}(a89_0x2d4e,0x98233));function a89_0x565d(_0x1c0a1d,_0x1e843a){_0x1c0a1d=_0x1c0a1d-0x94;const _0x2d4e13=a89_0x2d4e();let _0x565d06=_0x2d4e13[_0x1c0a1d];return _0x565d06;}import{getDbAllTableList}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a89_0x2d4e(){const _0x4fde66=['3344634HyGbzG','read','length','num','appCode','1759436boOoHN','3ozcNns','\x20table(s)\x20on\x20db\x20link\x20','tables','2268295OWVzAL','1403596FQnniu','72266XUNxKc','23Hbbgys','24438910gyljwg','8452752OAhMxr','List\x20physical\x20tables\x20for\x20a\x20database\x20connection\x20(tags\x20show\x20analysis\x20state\x20vs\x20schema\x20drift)','12KIHSGx'];a89_0x2d4e=function(){return _0x4fde66;};return a89_0x2d4e();}export const dbTables={'service':'db','command':a89_0x3c2ee9(0x98),'description':a89_0x3c2ee9(0x9f),'risk':a89_0x3c2ee9(0xa2),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x3193d1){const _0x4d06cd=a89_0x3c2ee9,_0xb079e6=_0x3193d1[_0x4d06cd(0xa4)]('id'),_0x322598=await getDbAllTableList(_0x3193d1[_0x4d06cd(0x94)],_0xb079e6);return{'ok':!![],'data':{'dbLinkId':_0xb079e6,'total':_0x322598[_0x4d06cd(0xa3)],'tables':_0x322598},'message':_0x322598[_0x4d06cd(0xa3)]+_0x4d06cd(0x97)+_0xb079e6};}};
1
+ function a89_0x360a(_0x40eac2,_0x3de827){_0x40eac2=_0x40eac2-0xc1;const _0x3644c4=a89_0x3644();let _0x360abf=_0x3644c4[_0x40eac2];return _0x360abf;}const a89_0xfca363=a89_0x360a;(function(_0x51f11a,_0x2514b1){const _0x1fa774=a89_0x360a,_0x3ae1a7=_0x51f11a();while(!![]){try{const _0x280fac=parseInt(_0x1fa774(0xc1))/0x1*(-parseInt(_0x1fa774(0xcc))/0x2)+parseInt(_0x1fa774(0xca))/0x3+parseInt(_0x1fa774(0xc6))/0x4*(-parseInt(_0x1fa774(0xc8))/0x5)+parseInt(_0x1fa774(0xc2))/0x6*(parseInt(_0x1fa774(0xc9))/0x7)+-parseInt(_0x1fa774(0xc5))/0x8*(parseInt(_0x1fa774(0xcb))/0x9)+parseInt(_0x1fa774(0xcf))/0xa*(parseInt(_0x1fa774(0xc4))/0xb)+-parseInt(_0x1fa774(0xcd))/0xc;if(_0x280fac===_0x2514b1)break;else _0x3ae1a7['push'](_0x3ae1a7['shift']());}catch(_0x572a25){_0x3ae1a7['push'](_0x3ae1a7['shift']());}}}(a89_0x3644,0xadaa0));import{getDbAllTableList}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a89_0x3644(){const _0x490c99=['22772NvPdKA','read','565frZDNh','2899869foklOY','3405591cliZlf','9dZoCBX','96752fgIkrV','5643132esRtGg','length','180110MOcGIj','num','\x20table(s)\x20on\x20db\x20link\x20','11BWdGRE','18UTqJeu','List\x20physical\x20tables\x20for\x20a\x20database\x20connection\x20(tags\x20show\x20analysis\x20state\x20vs\x20schema\x20drift)','22PkMlGH','455888egHFag'];a89_0x3644=function(){return _0x490c99;};return a89_0x3644();}export const dbTables={'service':'db','command':'tables','description':a89_0xfca363(0xc3),'risk':a89_0xfca363(0xc7),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x1ea67f){const _0x278feb=a89_0xfca363,_0x492842=_0x1ea67f[_0x278feb(0xd0)]('id'),_0xd81e85=await getDbAllTableList(_0x1ea67f['appCode'],_0x492842);return{'ok':!![],'data':{'dbLinkId':_0x492842,'total':_0xd81e85[_0x278feb(0xce)],'tables':_0xd81e85},'message':_0xd81e85['length']+_0x278feb(0xd1)+_0x492842};}};
@@ -0,0 +1,2 @@
1
+ import type { CommandDefinition } from "../../framework/types.js";
2
+ export declare const dbTest: CommandDefinition;
@@ -1 +1 @@
1
- function a90_0x3a1c(){const _0x1d656c=['2519736LcAiic','slice','38790mInDEg','Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)','\x20(see\x20data.result)','Connection\x20OK\x20for\x20db\x20link\x20','313323TwZRya','test','read','object','msg','24626ZiLqUK','num','136XyJDLX','keys','length','376336RARbTL','22rDdSxx','1737045IuICIm','14vkdNmW','success','21VClEka','code','3891890rygfIS'];a90_0x3a1c=function(){return _0x1d656c;};return a90_0x3a1c();}const a90_0x5d8ee3=a90_0x56c8;(function(_0x3eeef7,_0x350fe2){const _0x3e0e14=a90_0x56c8,_0x429390=_0x3eeef7();while(!![]){try{const _0x534cdf=parseInt(_0x3e0e14(0x105))/0x1*(-parseInt(_0x3e0e14(0xfb))/0x2)+parseInt(_0x3e0e14(0x10e))/0x3+-parseInt(_0x3e0e14(0xfd))/0x4*(parseInt(_0x3e0e14(0x10a))/0x5)+-parseInt(_0x3e0e14(0x108))/0x6+-parseInt(_0x3e0e14(0x103))/0x7*(-parseInt(_0x3e0e14(0x100))/0x8)+parseInt(_0x3e0e14(0x102))/0x9+parseInt(_0x3e0e14(0x107))/0xa*(parseInt(_0x3e0e14(0x101))/0xb);if(_0x534cdf===_0x350fe2)break;else _0x429390['push'](_0x429390['shift']());}catch(_0x2975ad){_0x429390['push'](_0x429390['shift']());}}}(a90_0x3a1c,0x37917));import{testDbLinkConnect}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a90_0x56c8(_0x87c8f2,_0x188385){_0x87c8f2=_0x87c8f2-0xf7;const _0x3a1c56=a90_0x3a1c();let _0x56c805=_0x3a1c56[_0x87c8f2];return _0x56c805;}function summarizeTestConnectResult(_0x29b3b9){const _0x347ade=a90_0x56c8;if(_0x29b3b9===!![]||_0x29b3b9===![])return{'success':_0x29b3b9};if(_0x29b3b9===null||_0x29b3b9===undefined)return{'type':typeof _0x29b3b9};if(typeof _0x29b3b9!==_0x347ade(0xf9))return{'type':typeof _0x29b3b9};const _0x485da5=_0x29b3b9,_0x4b2cd5=[_0x347ade(0x104),'message',_0x347ade(0x106),'error',_0x347ade(0xfa),'data'],_0x374ec4={};for(const _0x1dbc6c of _0x4b2cd5){if(_0x1dbc6c in _0x485da5)_0x374ec4[_0x1dbc6c]=_0x485da5[_0x1dbc6c];}return Object[_0x347ade(0xfe)](_0x374ec4)[_0x347ade(0xff)]===0x0&&(_0x374ec4['keys']=Object[_0x347ade(0xfe)](_0x485da5)[_0x347ade(0x109)](0x0,0x14)),_0x374ec4;}export const dbTest={'service':'db','command':a90_0x5d8ee3(0xf7),'description':a90_0x5d8ee3(0x10b),'risk':a90_0x5d8ee3(0xf8),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x166d8b){const _0x4b042f=a90_0x5d8ee3,_0x4ae9ef=_0x166d8b[_0x4b042f(0xfc)]('id'),_0x543f12=await testDbLinkConnect(_0x4ae9ef),_0x38c02a=_0x543f12===!![]||typeof _0x543f12===_0x4b042f(0xf9)&&_0x543f12!==null&&_0x543f12[_0x4b042f(0x104)]===!![],_0x513b50=summarizeTestConnectResult(_0x543f12);return{'ok':!![],'data':{'id':_0x4ae9ef,'connected':Boolean(_0x38c02a),'result':_0x513b50},'message':_0x38c02a?_0x4b042f(0x10d)+_0x4ae9ef:'Connection\x20check\x20finished\x20for\x20db\x20link\x20'+_0x4ae9ef+_0x4b042f(0x10c)};}};
1
+ function a90_0x5390(){const _0x569229=['4246620ZWQTxR','16524oMIyPd','length','5972624QINHHO','369594cFqNyJ','Connection\x20check\x20finished\x20for\x20db\x20link\x20','num','code','success','10IbtwOa','Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)','1VEgpzA','1147346DwHdKQ','slice','42OVQBRD','read','error','Connection\x20OK\x20for\x20db\x20link\x20','500Lthfha','keys','12428174HdNjVZ','object','542540HTWqKm'];a90_0x5390=function(){return _0x569229;};return a90_0x5390();}function a90_0x2105(_0x1b4029,_0x362e85){_0x1b4029=_0x1b4029-0x8b;const _0x53905a=a90_0x5390();let _0x21052c=_0x53905a[_0x1b4029];return _0x21052c;}const a90_0xc664cb=a90_0x2105;(function(_0x4d345f,_0x5ba87b){const _0xfcaa91=a90_0x2105,_0x29d927=_0x4d345f();while(!![]){try{const _0x261e78=parseInt(_0xfcaa91(0x9f))/0x1*(-parseInt(_0xfcaa91(0xa0))/0x2)+parseInt(_0xfcaa91(0x95))/0x3*(-parseInt(_0xfcaa91(0x8f))/0x4)+-parseInt(_0xfcaa91(0x93))/0x5*(parseInt(_0xfcaa91(0x8b))/0x6)+parseInt(_0xfcaa91(0x94))/0x7+parseInt(_0xfcaa91(0x97))/0x8+-parseInt(_0xfcaa91(0x98))/0x9+parseInt(_0xfcaa91(0x9d))/0xa*(parseInt(_0xfcaa91(0x91))/0xb);if(_0x261e78===_0x5ba87b)break;else _0x29d927['push'](_0x29d927['shift']());}catch(_0x1eca36){_0x29d927['push'](_0x29d927['shift']());}}}(a90_0x5390,0x669b5));import{testDbLinkConnect}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function summarizeTestConnectResult(_0x36f51a){const _0x23e6fe=a90_0x2105;if(_0x36f51a===!![]||_0x36f51a===![])return{'success':_0x36f51a};if(_0x36f51a===null||_0x36f51a===undefined)return{'type':typeof _0x36f51a};if(typeof _0x36f51a!==_0x23e6fe(0x92))return{'type':typeof _0x36f51a};const _0x23e957=_0x36f51a,_0x3c8271=[_0x23e6fe(0x9c),'message',_0x23e6fe(0x9b),_0x23e6fe(0x8d),'msg','data'],_0x284909={};for(const _0x54563e of _0x3c8271){if(_0x54563e in _0x23e957)_0x284909[_0x54563e]=_0x23e957[_0x54563e];}return Object[_0x23e6fe(0x90)](_0x284909)[_0x23e6fe(0x96)]===0x0&&(_0x284909[_0x23e6fe(0x90)]=Object[_0x23e6fe(0x90)](_0x23e957)[_0x23e6fe(0xa1)](0x0,0x14)),_0x284909;}export const dbTest={'service':'db','command':'test','description':a90_0xc664cb(0x9e),'risk':a90_0xc664cb(0x8c),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0xdb9b4){const _0x314b92=a90_0xc664cb,_0x30a7d0=_0xdb9b4[_0x314b92(0x9a)]('id'),_0x2923cd=await testDbLinkConnect(_0x30a7d0),_0x4bece7=_0x2923cd===!![]||typeof _0x2923cd===_0x314b92(0x92)&&_0x2923cd!==null&&_0x2923cd[_0x314b92(0x9c)]===!![],_0x44beba=summarizeTestConnectResult(_0x2923cd);return{'ok':!![],'data':{'id':_0x30a7d0,'connected':Boolean(_0x4bece7),'result':_0x44beba},'message':_0x4bece7?_0x314b92(0x8e)+_0x30a7d0:_0x314b92(0x99)+_0x30a7d0+'\x20(see\x20data.result)'};}};
@@ -0,0 +1,2 @@
1
+ import type { CommandDefinition } from "../../framework/types.js";
2
+ export declare const dbUpdate: CommandDefinition;
@@ -1 +1 @@
1
- const a91_0x43a212=a91_0x43b7;(function(_0x57252f,_0x1e4f2a){const _0x542880=a91_0x43b7,_0x10d9da=_0x57252f();while(!![]){try{const _0x10fb18=parseInt(_0x542880(0xbe))/0x1+parseInt(_0x542880(0xa0))/0x2*(-parseInt(_0x542880(0xb1))/0x3)+parseInt(_0x542880(0xae))/0x4*(-parseInt(_0x542880(0xb4))/0x5)+parseInt(_0x542880(0xab))/0x6+parseInt(_0x542880(0xad))/0x7+parseInt(_0x542880(0xa2))/0x8+-parseInt(_0x542880(0xa7))/0x9;if(_0x10fb18===_0x1e4f2a)break;else _0x10d9da['push'](_0x10d9da['shift']());}catch(_0x2a83ee){_0x10d9da['push'](_0x10d9da['shift']());}}}(a91_0x1a9c,0xdb01c));import{getDbLinkInfo,updateDbLink}from'../../core/api-client.js';function a91_0x43b7(_0x1acc7d,_0x3eea0a){_0x1acc7d=_0x1acc7d-0x9d;const _0x1a9c77=a91_0x1a9c();let _0x43b7b5=_0x1a9c77[_0x1acc7d];return _0x43b7b5;}function a91_0x1a9c(){const _0x26d8b7=['dbname','dbUrl','has','376626rUPkTP','username','7452952MlxUQM','[redacted]','string','trim','dbDesc','17101827qhiagq','Current\x20or\x20replacement\x20password.\x20Required\x20when\x20the\x20server\x20returns\x20a\x20masked\x20password','validation','New\x20username','4401552yDWtsq','New\x20description','2330342IRQHqS','8FAZntn','Merged\x20server\x20record\x20with\x20CLI\x20overrides;\x20password\x20redacted\x20in\x20preview','POST','3AthEzR','dbParam','password','927755KgwtCn','The\x20server\x20returned\x20a\x20masked\x20database\x20password.\x20Pass\x20the\x20current\x20or\x20replacement\x20password\x20explicitly\x20with\x20--password\x20to\x20update\x20this\x20connection\x20safely.','str','dbparam','Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22','num','New\x20host:port','dbdesc','update','dburl','1358553Ozrpki','dbName','New\x20database\x20name'];a91_0x1a9c=function(){return _0x26d8b7;};return a91_0x1a9c();}import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';const MASKED_PASSWORD_VALUES=new Set(['******',a91_0x43a212(0xa3)]);function mergeDbLinkUpdate(_0x39d32a,_0x1306a2){const _0x54091f=a91_0x43a212,_0x53b35c={..._0x39d32a},_0x300a6c=_0x1306a2[_0x54091f(0xb6)]('password');if(_0x300a6c&&MASKED_PASSWORD_VALUES[_0x54091f(0x9f)](_0x300a6c))throw CliErrors[_0x54091f(0xa9)]('--password\x20must\x20contain\x20the\x20real\x20database\x20password,\x20not\x20a\x20masked\x20value.');if(!_0x300a6c&&MASKED_PASSWORD_VALUES[_0x54091f(0x9f)](String(_0x39d32a[_0x54091f(0xb3)]??'')))throw CliErrors[_0x54091f(0xa9)](_0x54091f(0xb5));const _0x3686ef=_0x1306a2[_0x54091f(0xb6)](_0x54091f(0x9d));if(_0x3686ef)_0x53b35c[_0x54091f(0xbf)]=_0x3686ef;const _0x4aeaea=_0x1306a2[_0x54091f(0xb6)](_0x54091f(0xbd));if(_0x4aeaea)_0x53b35c[_0x54091f(0x9e)]=_0x4aeaea[_0x54091f(0xa5)]();const _0x37cf0e=_0x1306a2[_0x54091f(0xb6)](_0x54091f(0xa1));if(_0x37cf0e)_0x53b35c[_0x54091f(0xa1)]=_0x37cf0e;if(_0x300a6c)_0x53b35c[_0x54091f(0xb3)]=_0x300a6c;const _0x437689=_0x1306a2['str'](_0x54091f(0xb7));if(_0x437689)_0x53b35c[_0x54091f(0xb2)]=_0x437689;const _0x46c9ea=_0x1306a2['str'](_0x54091f(0xbb));if(_0x46c9ea)_0x53b35c[_0x54091f(0xa6)]=_0x46c9ea;return _0x53b35c;}export const dbUpdate={'service':'db','command':a91_0x43a212(0xbc),'description':'Update\x20a\x20database\x20connection\x20by\x20merging\x20supplied\x20fields\x20into\x20the\x20current\x20server\x20record.\x20A\x20masked\x20server\x20password\x20requires\x20explicit\x20--password','risk':'write','flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a91_0x43a212(0x9d),'type':a91_0x43a212(0xa4),'description':a91_0x43a212(0xc0)},{'name':a91_0x43a212(0xbd),'type':a91_0x43a212(0xa4),'description':a91_0x43a212(0xba)},{'name':a91_0x43a212(0xa1),'type':a91_0x43a212(0xa4),'description':a91_0x43a212(0xaa)},{'name':a91_0x43a212(0xb3),'type':a91_0x43a212(0xa4),'description':a91_0x43a212(0xa8)},{'name':a91_0x43a212(0xb7),'type':a91_0x43a212(0xa4),'description':'New\x20connection\x20parameter\x20string'},{'name':a91_0x43a212(0xbb),'type':a91_0x43a212(0xa4),'description':a91_0x43a212(0xac)}],async 'validate'(_0x2ca29a){const _0x1c984d=a91_0x43a212,_0x45d849=_0x2ca29a[_0x1c984d(0xb6)]('dburl');if(_0x45d849&&!validateDbUrl(_0x45d849[_0x1c984d(0xa5)]()))throw CliErrors[_0x1c984d(0xa9)](_0x1c984d(0xb8)+_0x45d849+'\x22');},async 'dryRun'(_0x729790){const _0x2bc713=a91_0x43a212,_0xb50a10=_0x729790[_0x2bc713(0xb9)]('id'),_0x366381=await getDbLinkInfo(_0xb50a10),_0x1be5fe=mergeDbLinkUpdate(_0x366381,_0x729790),_0x241f1a=sanitizeDbLinkForOutput(_0x1be5fe);return{'method':_0x2bc713(0xb0),'url':'/smartapi/dblink/update','body':_0x241f1a,'description':_0x2bc713(0xaf)};},async 'execute'(_0x5de987){const _0x247224=_0x5de987['num']('id'),_0x3879ce=await getDbLinkInfo(_0x247224),_0x3f5841=mergeDbLinkUpdate(_0x3879ce,_0x5de987),{id:_0x2f13f6,entity:_0x471357}=normalizeEntityWithIdResponse(await updateDbLink(_0x3f5841));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x471357),'message':'Updated\x20db\x20link\x20'+(_0x2f13f6??_0x247224)};}};
1
+ const a91_0x240564=a91_0x18cb;(function(_0x17b35a,_0xbb42fd){const _0x1b6376=a91_0x18cb,_0x1dac86=_0x17b35a();while(!![]){try{const _0x66836b=parseInt(_0x1b6376(0x12e))/0x1*(parseInt(_0x1b6376(0x129))/0x2)+parseInt(_0x1b6376(0x146))/0x3*(parseInt(_0x1b6376(0x12a))/0x4)+parseInt(_0x1b6376(0x13a))/0x5+-parseInt(_0x1b6376(0x125))/0x6*(parseInt(_0x1b6376(0x143))/0x7)+-parseInt(_0x1b6376(0x142))/0x8*(parseInt(_0x1b6376(0x139))/0x9)+-parseInt(_0x1b6376(0x12f))/0xa+parseInt(_0x1b6376(0x149))/0xb*(parseInt(_0x1b6376(0x127))/0xc);if(_0x66836b===_0xbb42fd)break;else _0x1dac86['push'](_0x1dac86['shift']());}catch(_0x19a184){_0x1dac86['push'](_0x1dac86['shift']());}}}(a91_0x2f35,0x29b79));import{getDbLinkInfo,updateDbLink}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';function a91_0x18cb(_0x1d8b50,_0x411f2b){_0x1d8b50=_0x1d8b50-0x124;const _0x2f3543=a91_0x2f35();let _0x18cb0f=_0x2f3543[_0x1d8b50];return _0x18cb0f;}import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';const MASKED_PASSWORD_VALUES=new Set([a91_0x240564(0x135),'[redacted]']);function mergeDbLinkUpdate(_0x54d229,_0x37b706){const _0x3fcdbd=a91_0x240564,_0x4d8e09={..._0x54d229},_0x2bd982=_0x37b706[_0x3fcdbd(0x133)]('password');if(_0x2bd982&&MASKED_PASSWORD_VALUES[_0x3fcdbd(0x145)](_0x2bd982))throw CliErrors['validation'](_0x3fcdbd(0x12b));if(!_0x2bd982&&MASKED_PASSWORD_VALUES[_0x3fcdbd(0x145)](String(_0x54d229[_0x3fcdbd(0x144)]??'')))throw CliErrors[_0x3fcdbd(0x140)](_0x3fcdbd(0x13d));const _0xd6d867=_0x37b706[_0x3fcdbd(0x133)]('dbname');if(_0xd6d867)_0x4d8e09[_0x3fcdbd(0x12c)]=_0xd6d867;const _0x4e476a=_0x37b706[_0x3fcdbd(0x133)]('dburl');if(_0x4e476a)_0x4d8e09[_0x3fcdbd(0x132)]=_0x4e476a['trim']();const _0x5dc600=_0x37b706['str'](_0x3fcdbd(0x13e));if(_0x5dc600)_0x4d8e09[_0x3fcdbd(0x13e)]=_0x5dc600;if(_0x2bd982)_0x4d8e09['password']=_0x2bd982;const _0x425e29=_0x37b706[_0x3fcdbd(0x133)]('dbparam');if(_0x425e29)_0x4d8e09['dbParam']=_0x425e29;const _0x5a05aa=_0x37b706[_0x3fcdbd(0x133)](_0x3fcdbd(0x148));if(_0x5a05aa)_0x4d8e09[_0x3fcdbd(0x137)]=_0x5a05aa;return _0x4d8e09;}function a91_0x2f35(){const _0x34d622=['New\x20host:port','dbdesc','330mnhWby','New\x20username','trim','1834770GnnWGy','dbparam','157596BMTmkf','write','32jtbNdb','879792mRCFyP','--password\x20must\x20contain\x20the\x20real\x20database\x20password,\x20not\x20a\x20masked\x20value.','dbName','Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22','6481qztEea','2558700gLlNoK','New\x20description','string','dbUrl','str','/smartapi/dblink/update','******','Update\x20a\x20database\x20connection\x20by\x20merging\x20supplied\x20fields\x20into\x20the\x20current\x20server\x20record.\x20A\x20masked\x20server\x20password\x20requires\x20explicit\x20--password','dbDesc','dburl','9bPmpzu','1108625NAAgGs','Current\x20or\x20replacement\x20password.\x20Required\x20when\x20the\x20server\x20returns\x20a\x20masked\x20password','num','The\x20server\x20returned\x20a\x20masked\x20database\x20password.\x20Pass\x20the\x20current\x20or\x20replacement\x20password\x20explicitly\x20with\x20--password\x20to\x20update\x20this\x20connection\x20safely.','username','New\x20connection\x20parameter\x20string','validation','POST','1654568yqSEDm','7hbdLXz','password','has','3hblyqg'];a91_0x2f35=function(){return _0x34d622;};return a91_0x2f35();}export const dbUpdate={'service':'db','command':'update','description':a91_0x240564(0x136),'risk':a91_0x240564(0x128),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':'dbname','type':'string','description':'New\x20database\x20name'},{'name':a91_0x240564(0x138),'type':'string','description':a91_0x240564(0x147)},{'name':a91_0x240564(0x13e),'type':a91_0x240564(0x131),'description':a91_0x240564(0x14a)},{'name':'password','type':'string','description':a91_0x240564(0x13b)},{'name':a91_0x240564(0x126),'type':'string','description':a91_0x240564(0x13f)},{'name':a91_0x240564(0x148),'type':a91_0x240564(0x131),'description':a91_0x240564(0x130)}],async 'validate'(_0x584014){const _0x14bcc2=a91_0x240564,_0x2ecfaf=_0x584014[_0x14bcc2(0x133)]('dburl');if(_0x2ecfaf&&!validateDbUrl(_0x2ecfaf[_0x14bcc2(0x124)]()))throw CliErrors[_0x14bcc2(0x140)](_0x14bcc2(0x12d)+_0x2ecfaf+'\x22');},async 'dryRun'(_0x58b8e0){const _0x50e25d=a91_0x240564,_0x4e2bbe=_0x58b8e0[_0x50e25d(0x13c)]('id'),_0x1ad2d5=await getDbLinkInfo(_0x4e2bbe),_0x3ac5fa=mergeDbLinkUpdate(_0x1ad2d5,_0x58b8e0),_0x53c02d=sanitizeDbLinkForOutput(_0x3ac5fa);return{'method':_0x50e25d(0x141),'url':_0x50e25d(0x134),'body':_0x53c02d,'description':'Merged\x20server\x20record\x20with\x20CLI\x20overrides;\x20password\x20redacted\x20in\x20preview'};},async 'execute'(_0x4ca938){const _0x3c7271=a91_0x240564,_0x30ec05=_0x4ca938[_0x3c7271(0x13c)]('id'),_0x23c9da=await getDbLinkInfo(_0x30ec05),_0x154583=mergeDbLinkUpdate(_0x23c9da,_0x4ca938),{id:_0x5d0c1e,entity:_0xab3e9e}=normalizeEntityWithIdResponse(await updateDbLink(_0x154583));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0xab3e9e),'message':'Updated\x20db\x20link\x20'+(_0x5d0c1e??_0x30ec05)};}};
@@ -0,0 +1,2 @@
1
+ import type { CommandDefinition } from "../framework/types.js";
2
+ export declare const doctorDefinition: CommandDefinition;