@lovrabet/rabetbase-cli 2.5.1 → 2.5.2-beta.1

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 (319) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/api/generate-sdk-config-file.js +1 -1
  5. package/lib/auth/auth-server-ui.js +1 -1
  6. package/lib/auth/auth-server.js +1 -1
  7. package/lib/auth/constant.js +1 -1
  8. package/lib/auth/get-cookie.js +1 -1
  9. package/lib/auth/get-session-user.js +1 -1
  10. package/lib/auth/is-session-valid.js +1 -1
  11. package/lib/auth/login-success-html.js +1 -1
  12. package/lib/auth/logout.js +1 -1
  13. package/lib/cli-flags.js +1 -1
  14. package/lib/cli.js +1 -1
  15. package/lib/commands/api/generate.js +1 -1
  16. package/lib/commands/api/index.js +1 -1
  17. package/lib/commands/api/list.js +1 -1
  18. package/lib/commands/api/pull.js +1 -1
  19. package/lib/commands/api/shared.js +1 -1
  20. package/lib/commands/app/index.js +1 -1
  21. package/lib/commands/app/list.js +1 -1
  22. package/lib/commands/app/members-list.js +1 -1
  23. package/lib/commands/app/remote-directory.js +1 -1
  24. package/lib/commands/app/shared.js +1 -1
  25. package/lib/commands/app-config/delete.js +1 -1
  26. package/lib/commands/app-config/get.js +1 -1
  27. package/lib/commands/app-config/index.js +1 -1
  28. package/lib/commands/app-config/list.js +1 -1
  29. package/lib/commands/app-config/set.js +1 -1
  30. package/lib/commands/app-config/shared.js +1 -1
  31. package/lib/commands/auth/index.js +1 -1
  32. package/lib/commands/bff/create.js +1 -1
  33. package/lib/commands/bff/delete.js +1 -1
  34. package/lib/commands/bff/detail.js +1 -1
  35. package/lib/commands/bff/index.js +1 -1
  36. package/lib/commands/bff/list.js +1 -1
  37. package/lib/commands/bff/pull.js +1 -1
  38. package/lib/commands/bff/push.js +1 -1
  39. package/lib/commands/bff/status.js +1 -1
  40. package/lib/commands/cli-skill/index.js +1 -1
  41. package/lib/commands/cli-update.js +1 -1
  42. package/lib/commands/codegen/index.js +1 -1
  43. package/lib/commands/codegen/sdk.js +1 -1
  44. package/lib/commands/codegen/sql.js +1 -1
  45. package/lib/commands/common/app-registry.js +1 -1
  46. package/lib/commands/common/app-selector.js +1 -1
  47. package/lib/commands/common/async-task.js +1 -1
  48. package/lib/commands/common/dry-run.js +1 -1
  49. package/lib/commands/common/flags.js +1 -1
  50. package/lib/commands/common/local-file.js +1 -1
  51. package/lib/commands/common/validate.js +1 -1
  52. package/lib/commands/config/delete.js +1 -1
  53. package/lib/commands/config/get.js +1 -1
  54. package/lib/commands/config/index.js +1 -1
  55. package/lib/commands/config/init.js +1 -1
  56. package/lib/commands/config/list.js +1 -1
  57. package/lib/commands/config/set.js +1 -1
  58. package/lib/commands/config/shared.js +1 -1
  59. package/lib/commands/dataset/business-group-update.js +1 -1
  60. package/lib/commands/dataset/business-groups.js +1 -1
  61. package/lib/commands/dataset/capability.js +1 -1
  62. package/lib/commands/dataset/delete.js +1 -1
  63. package/lib/commands/dataset/detail.js +1 -1
  64. package/lib/commands/dataset/extend-update.js +1 -1
  65. package/lib/commands/dataset/field-restore.js +1 -1
  66. package/lib/commands/dataset/field-update.js +1 -1
  67. package/lib/commands/dataset/generate.js +1 -1
  68. package/lib/commands/dataset/index.js +1 -1
  69. package/lib/commands/dataset/list.js +1 -1
  70. package/lib/commands/dataset/operations.js +1 -1
  71. package/lib/commands/dataset/relation-audit.js +1 -1
  72. package/lib/commands/dataset/relation-create.js +1 -1
  73. package/lib/commands/dataset/relation-delete.js +1 -1
  74. package/lib/commands/dataset/relation-shared.js +1 -1
  75. package/lib/commands/dataset/relation-update.js +1 -1
  76. package/lib/commands/dataset/relations.js +1 -1
  77. package/lib/commands/dataset/rename.js +1 -1
  78. package/lib/commands/dataset/restore.js +1 -1
  79. package/lib/commands/dataset/user-deleted-field-list.js +1 -1
  80. package/lib/commands/db/analysis-batching.js +1 -1
  81. package/lib/commands/db/analyze-batch-plan.js +1 -1
  82. package/lib/commands/db/analyze-cancel.js +1 -1
  83. package/lib/commands/db/analyze-start.js +1 -1
  84. package/lib/commands/db/analyze-status.js +1 -1
  85. package/lib/commands/db/create.js +1 -1
  86. package/lib/commands/db/delete.js +1 -1
  87. package/lib/commands/db/detail.js +1 -1
  88. package/lib/commands/db/diff-refresh-start.js +1 -1
  89. package/lib/commands/db/diff-refresh-status.js +1 -1
  90. package/lib/commands/db/diff.js +1 -1
  91. package/lib/commands/db/index.js +1 -1
  92. package/lib/commands/db/list.js +1 -1
  93. package/lib/commands/db/shared.js +1 -1
  94. package/lib/commands/db/table-diff-shared.js +1 -1
  95. package/lib/commands/db/tables.js +1 -1
  96. package/lib/commands/db/test.js +1 -1
  97. package/lib/commands/db/update.js +1 -1
  98. package/lib/commands/deployment/auto-sync.d.ts +3 -11
  99. package/lib/commands/deployment/auto-sync.js +1 -1
  100. package/lib/commands/deployment/index.js +1 -1
  101. package/lib/commands/deployment/sync.js +1 -1
  102. package/lib/commands/doctor.js +1 -1
  103. package/lib/commands/file/index.js +1 -1
  104. package/lib/commands/issue/index.js +1 -1
  105. package/lib/commands/issue/nudge.js +1 -1
  106. package/lib/commands/issue/report.js +1 -1
  107. package/lib/commands/issue/shared.js +1 -1
  108. package/lib/commands/kb/create.js +1 -1
  109. package/lib/commands/kb/delete.js +1 -1
  110. package/lib/commands/kb/detail.js +1 -1
  111. package/lib/commands/kb/index.js +1 -1
  112. package/lib/commands/kb/list.js +1 -1
  113. package/lib/commands/kb/search.js +1 -1
  114. package/lib/commands/kb/shared.js +1 -1
  115. package/lib/commands/kb/update.js +1 -1
  116. package/lib/commands/logs/index.js +1 -1
  117. package/lib/commands/menu/asset-update.js +1 -1
  118. package/lib/commands/menu/delete.js +1 -1
  119. package/lib/commands/menu/external-link-create.js +1 -1
  120. package/lib/commands/menu/external-link-update.js +1 -1
  121. package/lib/commands/menu/group-create.js +1 -1
  122. package/lib/commands/menu/group-update.js +1 -1
  123. package/lib/commands/menu/index.js +1 -1
  124. package/lib/commands/menu/list.js +1 -1
  125. package/lib/commands/menu/move.js +1 -1
  126. package/lib/commands/menu/regroup-start.js +1 -1
  127. package/lib/commands/menu/rename.js +1 -1
  128. package/lib/commands/menu/shared/compare-table.js +1 -1
  129. package/lib/commands/menu/shared/delete-plan.js +1 -1
  130. package/lib/commands/menu/shared/facts.js +1 -1
  131. package/lib/commands/menu/shared/index.js +1 -1
  132. package/lib/commands/menu/shared/inquirer.js +1 -1
  133. package/lib/commands/menu/shared/local-pages.js +1 -1
  134. package/lib/commands/menu/shared/logic.js +1 -1
  135. package/lib/commands/menu/shared/mutations.js +1 -1
  136. package/lib/commands/menu/shared/service.js +1 -1
  137. package/lib/commands/menu/shared/sync-core.js +1 -1
  138. package/lib/commands/menu/shared/update-core.js +1 -1
  139. package/lib/commands/menu/shared/valid-url.js +1 -1
  140. package/lib/commands/menu/sync.js +1 -1
  141. package/lib/commands/menu/visibility-update.js +1 -1
  142. package/lib/commands/notification/config-create.js +1 -1
  143. package/lib/commands/notification/config-delete.js +1 -1
  144. package/lib/commands/notification/config-list.js +1 -1
  145. package/lib/commands/notification/config-update.js +1 -1
  146. package/lib/commands/notification/index.js +1 -1
  147. package/lib/commands/notification/shared.js +1 -1
  148. package/lib/commands/ocr/index.js +1 -1
  149. package/lib/commands/page/create.js +1 -1
  150. package/lib/commands/page/custom/detail.js +1 -1
  151. package/lib/commands/page/custom/list.js +1 -1
  152. package/lib/commands/page/custom/publish.js +1 -1
  153. package/lib/commands/page/custom/shared.js +1 -1
  154. package/lib/commands/page/custom/syntax.js +1 -1
  155. package/lib/commands/page/custom/template.js +1 -1
  156. package/lib/commands/page/custom/update.js +1 -1
  157. package/lib/commands/page/data-list-status.js +1 -1
  158. package/lib/commands/page/generate-start.js +1 -1
  159. package/lib/commands/page/generate-status.js +1 -1
  160. package/lib/commands/page/index.js +1 -1
  161. package/lib/commands/page/pull.js +1 -1
  162. package/lib/commands/page/push.js +1 -1
  163. package/lib/commands/page/relation-audit.js +1 -1
  164. package/lib/commands/page/restore.js +1 -1
  165. package/lib/commands/page/shared.js +1 -1
  166. package/lib/commands/page/sync.js +1 -1
  167. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  168. package/lib/commands/project/create/format-elapsed.js +1 -1
  169. package/lib/commands/project/create/main.js +1 -1
  170. package/lib/commands/project/create/materialize-project-template.js +1 -1
  171. package/lib/commands/project/create/project-name.js +1 -1
  172. package/lib/commands/project/create/project-template-archive.js +1 -1
  173. package/lib/commands/project/create/project-template-path.js +1 -1
  174. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  175. package/lib/commands/project/create/use-format-code.js +1 -1
  176. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  177. package/lib/commands/project/domain-routing-sync.js +1 -1
  178. package/lib/commands/project/index.js +1 -1
  179. package/lib/commands/project/upgrade.js +1 -1
  180. package/lib/commands/registry.js +1 -1
  181. package/lib/commands/role/delete.js +1 -1
  182. package/lib/commands/role/detail.js +1 -1
  183. package/lib/commands/role/index.js +1 -1
  184. package/lib/commands/role/list.js +1 -1
  185. package/lib/commands/role/shared.js +1 -1
  186. package/lib/commands/role/update.js +1 -1
  187. package/lib/commands/role/user-add.js +1 -1
  188. package/lib/commands/role/user-remove.js +1 -1
  189. package/lib/commands/role/user-resolve.js +1 -1
  190. package/lib/commands/rule/get.js +1 -1
  191. package/lib/commands/rule/index.js +1 -1
  192. package/lib/commands/rule/list.js +1 -1
  193. package/lib/commands/rule/set.js +1 -1
  194. package/lib/commands/rule/shared.js +1 -1
  195. package/lib/commands/run/index.js +1 -1
  196. package/lib/commands/schema.js +1 -1
  197. package/lib/commands/sql/create.js +1 -1
  198. package/lib/commands/sql/delete.js +1 -1
  199. package/lib/commands/sql/detail.js +1 -1
  200. package/lib/commands/sql/exec.js +1 -1
  201. package/lib/commands/sql/index.js +1 -1
  202. package/lib/commands/sql/list.js +1 -1
  203. package/lib/commands/sql/pull.js +1 -1
  204. package/lib/commands/sql/push.js +1 -1
  205. package/lib/commands/sql/shared.js +1 -1
  206. package/lib/commands/sql/status.js +1 -1
  207. package/lib/commands/sql/validate.js +1 -1
  208. package/lib/commands/task/index.js +1 -1
  209. package/lib/commands/task/status.js +1 -1
  210. package/lib/commands/tenant/index.js +1 -1
  211. package/lib/commands/tenant/members-list.js +1 -1
  212. package/lib/commands/tenant/shared.js +1 -1
  213. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  214. package/lib/commands/user-account/index.js +1 -1
  215. package/lib/commands/workspace/add.js +1 -1
  216. package/lib/commands/workspace/index.js +1 -1
  217. package/lib/commands/workspace/remove.js +1 -1
  218. package/lib/config/domain-config.js +1 -1
  219. package/lib/config/project-domain-routing.js +1 -1
  220. package/lib/config/schema.js +1 -1
  221. package/lib/constant/cdn.js +1 -1
  222. package/lib/constant/cli.js +1 -1
  223. package/lib/constant/defaults.js +1 -1
  224. package/lib/constant/domain.js +1 -1
  225. package/lib/constant/env.js +1 -1
  226. package/lib/constant/output.js +1 -1
  227. package/lib/constant/paths.js +1 -1
  228. package/lib/constant/region.js +1 -1
  229. package/lib/constant/risk.js +1 -1
  230. package/lib/constant/routing-profile.js +1 -1
  231. package/lib/context/app-resolver.d.ts +0 -2
  232. package/lib/context/app-resolver.js +1 -1
  233. package/lib/context/auth-resolver.js +1 -1
  234. package/lib/context/config-loader.js +1 -1
  235. package/lib/context.js +1 -1
  236. package/lib/core/alias-resolver.js +1 -1
  237. package/lib/core/api-client.d.ts +0 -2
  238. package/lib/core/api-client.js +1 -1
  239. package/lib/core/bff/config.js +1 -1
  240. package/lib/core/bff/file-system.js +1 -1
  241. package/lib/core/bff/hash.js +1 -1
  242. package/lib/core/bff/lock.js +1 -1
  243. package/lib/core/bff/utils.js +1 -1
  244. package/lib/core/db-resolver.js +1 -1
  245. package/lib/core/kb-search-client.js +1 -1
  246. package/lib/core/page/file-system.js +1 -1
  247. package/lib/core/page/hash.js +1 -1
  248. package/lib/core/page/lock.js +1 -1
  249. package/lib/core/sql-index-auditor.js +1 -1
  250. package/lib/core/sql-sync/config.js +1 -1
  251. package/lib/core/sql-sync/file-system.js +1 -1
  252. package/lib/core/sql-sync/hash.js +1 -1
  253. package/lib/core/sql-sync/lock.js +1 -1
  254. package/lib/core/sql-sync/utils.js +1 -1
  255. package/lib/core/sql-validator.js +1 -1
  256. package/lib/errors.js +1 -1
  257. package/lib/framework/build-all-flags.js +1 -1
  258. package/lib/framework/error-output.js +1 -1
  259. package/lib/framework/explicit-yes.js +1 -1
  260. package/lib/framework/flags.js +1 -1
  261. package/lib/framework/help.js +1 -1
  262. package/lib/framework/index.js +1 -1
  263. package/lib/framework/output.js +1 -1
  264. package/lib/framework/response.js +1 -1
  265. package/lib/framework/runner-alias.js +1 -1
  266. package/lib/framework/runner.js +1 -1
  267. package/lib/framework/schema-export.js +1 -1
  268. package/lib/framework/supported-flags.d.ts +2 -0
  269. package/lib/framework/supported-flags.js +1 -0
  270. package/lib/framework/types.d.ts +2 -4
  271. package/lib/framework/types.js +1 -1
  272. package/lib/generated/build-info.d.ts +4 -4
  273. package/lib/generated/build-info.js +1 -1
  274. package/lib/generated/official-routing.js +1 -1
  275. package/lib/generated/routing-contract.js +1 -1
  276. package/lib/help.js +1 -1
  277. package/lib/postinstall.js +1 -1
  278. package/lib/runtime/confirmation.js +1 -1
  279. package/lib/runtime/event.js +1 -1
  280. package/lib/runtime/index.js +1 -1
  281. package/lib/runtime/queue.js +1 -1
  282. package/lib/runtime/resolve.js +1 -1
  283. package/lib/skills/builtin-skill.js +1 -1
  284. package/lib/skills/main.js +1 -1
  285. package/lib/skills/npx-skills-add.js +1 -1
  286. package/lib/skills/skill-presence.js +1 -1
  287. package/lib/telemetry/cli-command-trace.js +1 -1
  288. package/lib/telemetry/cli-help-trace.js +1 -1
  289. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  290. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  291. package/lib/telemetry/send-cli-trace-log.js +1 -1
  292. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  293. package/lib/utils/ai_config.js +1 -1
  294. package/lib/utils/apply-jq-filter.js +1 -1
  295. package/lib/utils/cdn-config.js +1 -1
  296. package/lib/utils/check-sdk-version.js +1 -1
  297. package/lib/utils/cli-version-check.js +1 -1
  298. package/lib/utils/cli-version-policy.js +1 -1
  299. package/lib/utils/config.js +1 -1
  300. package/lib/utils/entity-with-id.js +1 -1
  301. package/lib/utils/file-utils.js +1 -1
  302. package/lib/utils/guides-cdn.js +1 -1
  303. package/lib/utils/http-client.js +1 -1
  304. package/lib/utils/is-non-interactive.js +1 -1
  305. package/lib/utils/logger.js +1 -1
  306. package/lib/utils/params.js +1 -1
  307. package/lib/utils/platform.js +1 -1
  308. package/lib/utils/sleep.js +1 -1
  309. package/lib/utils/template-replacer.js +1 -1
  310. package/lib/utils/update-notice.js +1 -1
  311. package/lib/utils/version.js +1 -1
  312. package/lib/utils/with-active-cookie.js +1 -1
  313. package/lib/utils/write-cli-side-channel.js +1 -1
  314. package/package.json +1 -1
  315. package/skills/rabetbase/SKILL.md +3 -3
  316. package/skills/rabetbase/references/rabetbase-deployment-sync.md +16 -44
  317. package/skills/rabetbase.manifest.json +3 -3
  318. package/lib/config/deployment-sync.d.ts +0 -10
  319. package/lib/config/deployment-sync.js +0 -1
@@ -1 +1 @@
1
- function a83_0x13e1(_0x177bdd,_0x3470b7){_0x177bdd=_0x177bdd-0x7f;const _0x23aa74=a83_0x23aa();let _0x13e175=_0x23aa74[_0x177bdd];return _0x13e175;}const a83_0x149ad4=a83_0x13e1;(function(_0x4b7eb2,_0x286125){const _0x3ca858=a83_0x13e1,_0x5171bc=_0x4b7eb2();while(!![]){try{const _0x8431a0=parseInt(_0x3ca858(0xac))/0x1*(parseInt(_0x3ca858(0x8e))/0x2)+parseInt(_0x3ca858(0x83))/0x3*(parseInt(_0x3ca858(0xa2))/0x4)+-parseInt(_0x3ca858(0x89))/0x5*(parseInt(_0x3ca858(0x81))/0x6)+-parseInt(_0x3ca858(0x85))/0x7*(-parseInt(_0x3ca858(0x88))/0x8)+parseInt(_0x3ca858(0x96))/0x9*(parseInt(_0x3ca858(0x90))/0xa)+parseInt(_0x3ca858(0x82))/0xb*(parseInt(_0x3ca858(0x8c))/0xc)+-parseInt(_0x3ca858(0xab))/0xd;if(_0x8431a0===_0x286125)break;else _0x5171bc['push'](_0x5171bc['shift']());}catch(_0xc635e){_0x5171bc['push'](_0x5171bc['shift']());}}}(a83_0x23aa,0x5f2c5));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([a83_0x149ad4(0xa9),a83_0x149ad4(0x84),'FAILED',a83_0x149ad4(0x92)]);export const dbAnalyzeStatus={'service':'db','command':a83_0x149ad4(0xa1),'description':a83_0x149ad4(0x9e),'risk':a83_0x149ad4(0xa0),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':'plan','type':'string','required':!![],'description':'Analysis\x20plan\x20/\x20trace\x20id\x20(from\x20analyze-start\x20or\x20db\x20list\x20latestAnalysisTraceId)'}],async 'execute'(_0x4997b7){const _0x10348d=a83_0x149ad4,_0x387705=_0x4997b7['num']('id'),_0x320aea=_0x4997b7['str'](_0x10348d(0x9d)),_0x52eb26=await getDbAnalysisStatus(_0x320aea),_0x3e3343=TERMINAL_STATUSES['has'](_0x52eb26[_0x10348d(0xa7)]??''),{parsedJobContext:_0xffb31c,jobContextParseWarning:_0x4268e2}=parseJobContext(_0x52eb26[_0x10348d(0xa5)]),{requestedAnalysis:_0x2924b4,requestedAnalysisParseWarning:_0x57ab4e}=parseRequestedAnalysis(_0x52eb26['inputParams']),_0x3f7cbb=readAccumulatedErrorTypeCounts(_0xffb31c),_0x227607=calculateAttemptElapsedMs(_0x52eb26,_0x3e3343),_0x2cc245=calculateElapsedFromStart(_0x52eb26['firstStartTime'],_0x52eb26['endTime'],_0x3e3343),_0x29679d=detectMultipleAttempts(_0x52eb26),_0x2cbe22=buildDbPageLinks(_0x4997b7['appCode'],_0x387705);return{'ok':!![],'data':{'dbLinkId':_0x387705,'planId':_0x320aea,'status':_0x52eb26,'requestedAnalysis':_0x2924b4,'requestedAnalysisParseWarning':_0x57ab4e,'parsedJobContext':_0xffb31c,'accumulatedErrorTypeCounts':_0x3f7cbb,'accumulatedErrorTypeCountsAdvisory':_0x3f7cbb?_0x10348d(0x95):_0x10348d(0x87),'isTerminal':_0x3e3343,'isRetrying':_0x52eb26['status']===_0x10348d(0x9f),'attemptElapsedMs':_0x227607,'totalElapsedMs':_0x2cc245,'hasMultipleAttempts':_0x29679d,'jobContextParseWarning':_0x4268e2,..._0x2cbe22?{'links':_0x2cbe22}:{}},'message':_0x10348d(0xaa)+_0x320aea};}};function a83_0x23aa(){const _0x3b9203=['every','12984ZAEPvl','length','55882vqlhjt','firstStartTime','340GxlYkD','Original\x20analysis\x20request\x20scope\x20is\x20unavailable\x20because\x20inputParams\x20is\x20missing.','CANCELLED','startTime','string','Server-provided\x20accumulated\x20failure\x20counts\x20are\x20reference\x20only;\x20do\x20not\x20use\x20them\x20for\x20automatic\x20decisions\x20until\x20the\x20server\x20contract\x20is\x20verified.','188721zcVjHp','number','object','TARGETED','parse','isFinite','isArray','plan','Fetch\x20schema\x20analysis\x20job\x20status\x20by\x20plan\x20/\x20trace\x20id','RETRYING','read','analyze-status','884924Ovzxia','tableNames','FULL','jobContext','inputParams\x20does\x20not\x20contain\x20a\x20valid\x20analysis\x20request\x20object.','status','keys','SUCCESS','Analysis\x20status\x20for\x20','19354556lqptxl','18YfAKOW','trim','inputParams\x20is\x20not\x20an\x20object','endTime','3532488mzeESb','4686OnNYNY','6htRpEv','PARTIAL_SUCCESS','2436777ObgByk','isNaN','Server-provided\x20accumulated\x20failure\x20counts\x20are\x20unavailable;\x20use\x20task\x20status\x20for\x20lifecycle\x20and\x20db\x20diff\x20for\x20convergence.','8kMzIrT','5WHgKiQ','costTimeMs'];a83_0x23aa=function(){return _0x3b9203;};return a83_0x23aa();}function parseRequestedAnalysis(_0x1ffe88){const _0x12439d=a83_0x149ad4,_0xe97a71={'mode':'UNKNOWN','tableCount':null,'tableNames':null};if(!_0x1ffe88?.['trim']())return{'requestedAnalysis':_0xe97a71,'requestedAnalysisParseWarning':_0x12439d(0x91)};try{const _0x23e8a7=JSON['parse'](_0x1ffe88);if(!_0x23e8a7||typeof _0x23e8a7!==_0x12439d(0x98)||Array[_0x12439d(0x9c)](_0x23e8a7))throw new Error(_0x12439d(0x7f));const _0xd3ffd3=_0x23e8a7[_0x12439d(0xa3)];if(_0xd3ffd3===undefined||_0xd3ffd3===null)return{'requestedAnalysis':{'mode':_0x12439d(0xa4),'tableCount':null,'tableNames':null},'requestedAnalysisParseWarning':null};if(Array[_0x12439d(0x9c)](_0xd3ffd3)&&_0xd3ffd3[_0x12439d(0x8b)](_0x1be007=>typeof _0x1be007===_0x12439d(0x94)))return{'requestedAnalysis':{'mode':_0xd3ffd3[_0x12439d(0x8d)]>0x0?_0x12439d(0x99):_0x12439d(0xa4),'tableCount':_0xd3ffd3[_0x12439d(0x8d)],'tableNames':_0xd3ffd3},'requestedAnalysisParseWarning':null};}catch{}return{'requestedAnalysis':_0xe97a71,'requestedAnalysisParseWarning':_0x12439d(0xa6)};}function readAccumulatedErrorTypeCounts(_0x59100f){const _0x38acab=a83_0x149ad4,_0x527ca3=_0x59100f?.['accumulatedErrorTypeCounts'];if(!_0x527ca3||typeof _0x527ca3!==_0x38acab(0x98)||Array[_0x38acab(0x9c)](_0x527ca3))return null;if(Object[_0x38acab(0xa8)](_0x527ca3)[_0x38acab(0x8d)]===0x0)return null;return _0x527ca3;}function parseJobContext(_0x4d88eb){const _0x3ac267=a83_0x149ad4;if(!_0x4d88eb?.['trim']())return{'parsedJobContext':null,'jobContextParseWarning':null};try{const _0x11fb43=JSON[_0x3ac267(0x9a)](_0x4d88eb);if(_0x11fb43&&typeof _0x11fb43===_0x3ac267(0x98)&&!Array[_0x3ac267(0x9c)](_0x11fb43))return{'parsedJobContext':_0x11fb43,'jobContextParseWarning':null};}catch{}return{'parsedJobContext':null,'jobContextParseWarning':'jobContext\x20is\x20not\x20a\x20valid\x20JSON\x20object.'};}function calculateAttemptElapsedMs(_0x484b34,_0x32381b){const _0x146163=a83_0x149ad4;if(typeof _0x484b34[_0x146163(0x8a)]===_0x146163(0x97)&&Number[_0x146163(0x9b)](_0x484b34['costTimeMs'])&&_0x484b34[_0x146163(0x8a)]>=0x0)return _0x484b34[_0x146163(0x8a)];return calculateElapsedFromStart(_0x484b34[_0x146163(0x93)],_0x484b34[_0x146163(0x80)],_0x32381b);}function calculateElapsedFromStart(_0x455912,_0x2220d2,_0x7aa8a6){const _0xc3f67f=toTimestamp(_0x455912);if(_0xc3f67f===null)return null;const _0x55688f=toTimestamp(_0x2220d2),_0x3ea691=_0x55688f??(_0x7aa8a6?null:Date['now']());if(_0x3ea691===null||_0x3ea691<_0xc3f67f)return null;return _0x3ea691-_0xc3f67f;}function detectMultipleAttempts(_0x195e9c){const _0x7decc4=a83_0x149ad4,_0xb8827e=toTimestamp(_0x195e9c[_0x7decc4(0x8f)]),_0x56d37c=toTimestamp(_0x195e9c['startTime']);return _0xb8827e!==null&&_0x56d37c!==null&&_0xb8827e!==_0x56d37c;}function toTimestamp(_0x51320f){const _0x524b19=a83_0x149ad4;if(typeof _0x51320f===_0x524b19(0x97))return Number['isFinite'](_0x51320f)?_0x51320f:null;if(typeof _0x51320f!==_0x524b19(0x94)||_0x51320f[_0x524b19(0xad)]()==='')return null;const _0x5ed5c0=Number(_0x51320f);if(Number['isFinite'](_0x5ed5c0))return _0x5ed5c0;const _0x43c5dd=Date[_0x524b19(0x9a)](_0x51320f);return Number[_0x524b19(0x86)](_0x43c5dd)?null:_0x43c5dd;}
1
+ const a83_0x11cec5=a83_0x25d6;(function(_0x4b4ff0,_0x35ba4e){const _0x10aa8b=a83_0x25d6,_0x5e9aba=_0x4b4ff0();while(!![]){try{const _0x11e478=parseInt(_0x10aa8b(0x182))/0x1+-parseInt(_0x10aa8b(0x198))/0x2+-parseInt(_0x10aa8b(0x1a0))/0x3*(parseInt(_0x10aa8b(0x179))/0x4)+parseInt(_0x10aa8b(0x19d))/0x5+-parseInt(_0x10aa8b(0x18f))/0x6*(parseInt(_0x10aa8b(0x187))/0x7)+-parseInt(_0x10aa8b(0x195))/0x8*(parseInt(_0x10aa8b(0x199))/0x9)+-parseInt(_0x10aa8b(0x19b))/0xa*(parseInt(_0x10aa8b(0x189))/0xb);if(_0x11e478===_0x35ba4e)break;else _0x5e9aba['push'](_0x5e9aba['shift']());}catch(_0x30968d){_0x5e9aba['push'](_0x5e9aba['shift']());}}}(a83_0x1964,0x1d024));import{getDbAnalysisStatus}from'../../core/api-client.js';function a83_0x25d6(_0x2cdc02,_0x18a94a){_0x2cdc02=_0x2cdc02-0x178;const _0x1964a5=a83_0x1964();let _0x25d640=_0x1964a5[_0x2cdc02];return _0x25d640;}import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{buildDbPageLinks}from'../../commands/db/shared.js';const TERMINAL_STATUSES=new Set(['SUCCESS',a83_0x11cec5(0x17d),a83_0x11cec5(0x180),a83_0x11cec5(0x181)]);export const dbAnalyzeStatus={'service':'db','command':'analyze-status','description':'Fetch\x20schema\x20analysis\x20job\x20status\x20by\x20plan\x20/\x20trace\x20id','risk':'read','requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':a83_0x11cec5(0x185),'type':a83_0x11cec5(0x188),'required':!![],'description':a83_0x11cec5(0x17b)}],async 'execute'(_0x2f9145){const _0x3fc0b1=a83_0x11cec5,_0x74f445=_0x2f9145[_0x3fc0b1(0x196)]('id'),_0x41cd9e=_0x2f9145[_0x3fc0b1(0x191)]('plan'),_0x2c16cd=await getDbAnalysisStatus(_0x41cd9e),_0x1d9feb=TERMINAL_STATUSES[_0x3fc0b1(0x192)](_0x2c16cd['status']??''),{parsedJobContext:_0x58e4e2,jobContextParseWarning:_0x21710d}=parseJobContext(_0x2c16cd[_0x3fc0b1(0x18c)]),{requestedAnalysis:_0x438fef,requestedAnalysisParseWarning:_0x4fb2dd}=parseRequestedAnalysis(_0x2c16cd['inputParams']),_0xeccffc=readAccumulatedErrorTypeCounts(_0x58e4e2),_0x341c75=calculateAttemptElapsedMs(_0x2c16cd,_0x1d9feb),_0x41a734=calculateElapsedFromStart(_0x2c16cd[_0x3fc0b1(0x18e)],_0x2c16cd[_0x3fc0b1(0x1a2)],_0x1d9feb),_0x2e0891=detectMultipleAttempts(_0x2c16cd),_0x5e2f27=buildDbPageLinks(_0x2f9145[_0x3fc0b1(0x197)],_0x74f445);return{'ok':!![],'data':{'dbLinkId':_0x74f445,'planId':_0x41cd9e,'status':_0x2c16cd,'requestedAnalysis':_0x438fef,'requestedAnalysisParseWarning':_0x4fb2dd,'parsedJobContext':_0x58e4e2,'accumulatedErrorTypeCounts':_0xeccffc,'accumulatedErrorTypeCountsAdvisory':_0xeccffc?_0x3fc0b1(0x193):_0x3fc0b1(0x17a),'isTerminal':_0x1d9feb,'isRetrying':_0x2c16cd[_0x3fc0b1(0x184)]==='RETRYING','attemptElapsedMs':_0x341c75,'totalElapsedMs':_0x41a734,'hasMultipleAttempts':_0x2e0891,'jobContextParseWarning':_0x21710d,..._0x5e2f27?{'links':_0x5e2f27}:{}},'message':'Analysis\x20status\x20for\x20'+_0x41cd9e};}};function parseRequestedAnalysis(_0x418c0d){const _0x3ec2ca=a83_0x11cec5,_0x672584={'mode':_0x3ec2ca(0x17f),'tableCount':null,'tableNames':null};if(!_0x418c0d?.[_0x3ec2ca(0x18d)]())return{'requestedAnalysis':_0x672584,'requestedAnalysisParseWarning':'Original\x20analysis\x20request\x20scope\x20is\x20unavailable\x20because\x20inputParams\x20is\x20missing.'};try{const _0x488608=JSON[_0x3ec2ca(0x183)](_0x418c0d);if(!_0x488608||typeof _0x488608!=='object'||Array['isArray'](_0x488608))throw new Error(_0x3ec2ca(0x19a));const _0x15b38c=_0x488608[_0x3ec2ca(0x19e)];if(_0x15b38c===undefined||_0x15b38c===null)return{'requestedAnalysis':{'mode':_0x3ec2ca(0x1a1),'tableCount':null,'tableNames':null},'requestedAnalysisParseWarning':null};if(Array[_0x3ec2ca(0x18b)](_0x15b38c)&&_0x15b38c['every'](_0x261aab=>typeof _0x261aab===_0x3ec2ca(0x188)))return{'requestedAnalysis':{'mode':_0x15b38c[_0x3ec2ca(0x194)]>0x0?_0x3ec2ca(0x18a):_0x3ec2ca(0x1a1),'tableCount':_0x15b38c[_0x3ec2ca(0x194)],'tableNames':_0x15b38c},'requestedAnalysisParseWarning':null};}catch{}return{'requestedAnalysis':_0x672584,'requestedAnalysisParseWarning':'inputParams\x20does\x20not\x20contain\x20a\x20valid\x20analysis\x20request\x20object.'};}function readAccumulatedErrorTypeCounts(_0x373fe6){const _0xca0d92=a83_0x11cec5,_0x2c266e=_0x373fe6?.['accumulatedErrorTypeCounts'];if(!_0x2c266e||typeof _0x2c266e!==_0xca0d92(0x17c)||Array[_0xca0d92(0x18b)](_0x2c266e))return null;if(Object['keys'](_0x2c266e)[_0xca0d92(0x194)]===0x0)return null;return _0x2c266e;}function a83_0x1964(){const _0x2d1100=['str','has','Server-provided\x20accumulated\x20failure\x20counts\x20are\x20reference\x20only;\x20do\x20not\x20use\x20them\x20for\x20automatic\x20decisions\x20until\x20the\x20server\x20contract\x20is\x20verified.','length','26128EfvGBH','num','appCode','183180NhCshe','99TKtYzt','inputParams\x20is\x20not\x20an\x20object','553940qliavI','jobContext\x20is\x20not\x20a\x20valid\x20JSON\x20object.','890215dfkmgD','tableNames','isFinite','120BrcZJk','FULL','endTime','costTimeMs','2032IoZgDB','Server-provided\x20accumulated\x20failure\x20counts\x20are\x20unavailable;\x20use\x20task\x20status\x20for\x20lifecycle\x20and\x20db\x20diff\x20for\x20convergence.','Analysis\x20plan\x20/\x20trace\x20id\x20(from\x20analyze-start\x20or\x20db\x20list\x20latestAnalysisTraceId)','object','PARTIAL_SUCCESS','now','UNKNOWN','FAILED','CANCELLED','229378OrhmqW','parse','status','plan','number','77lOZnMa','string','11CxwgxY','TARGETED','isArray','jobContext','trim','firstStartTime','46566oroDMd','startTime'];a83_0x1964=function(){return _0x2d1100;};return a83_0x1964();}function parseJobContext(_0x3bdced){const _0x388957=a83_0x11cec5;if(!_0x3bdced?.['trim']())return{'parsedJobContext':null,'jobContextParseWarning':null};try{const _0x996d21=JSON['parse'](_0x3bdced);if(_0x996d21&&typeof _0x996d21==='object'&&!Array[_0x388957(0x18b)](_0x996d21))return{'parsedJobContext':_0x996d21,'jobContextParseWarning':null};}catch{}return{'parsedJobContext':null,'jobContextParseWarning':_0x388957(0x19c)};}function calculateAttemptElapsedMs(_0x5e2c2c,_0x19448f){const _0x5db08f=a83_0x11cec5;if(typeof _0x5e2c2c[_0x5db08f(0x178)]==='number'&&Number[_0x5db08f(0x19f)](_0x5e2c2c[_0x5db08f(0x178)])&&_0x5e2c2c['costTimeMs']>=0x0)return _0x5e2c2c[_0x5db08f(0x178)];return calculateElapsedFromStart(_0x5e2c2c[_0x5db08f(0x190)],_0x5e2c2c[_0x5db08f(0x1a2)],_0x19448f);}function calculateElapsedFromStart(_0x144cd7,_0x59edc0,_0x2f0075){const _0xf94bbc=a83_0x11cec5,_0x5c76fa=toTimestamp(_0x144cd7);if(_0x5c76fa===null)return null;const _0x5d7899=toTimestamp(_0x59edc0),_0x475800=_0x5d7899??(_0x2f0075?null:Date[_0xf94bbc(0x17e)]());if(_0x475800===null||_0x475800<_0x5c76fa)return null;return _0x475800-_0x5c76fa;}function detectMultipleAttempts(_0x115e3e){const _0x689d7a=a83_0x11cec5,_0x31f8cb=toTimestamp(_0x115e3e[_0x689d7a(0x18e)]),_0x3e840d=toTimestamp(_0x115e3e[_0x689d7a(0x190)]);return _0x31f8cb!==null&&_0x3e840d!==null&&_0x31f8cb!==_0x3e840d;}function toTimestamp(_0x525139){const _0x9880e8=a83_0x11cec5;if(typeof _0x525139===_0x9880e8(0x186))return Number['isFinite'](_0x525139)?_0x525139:null;if(typeof _0x525139!==_0x9880e8(0x188)||_0x525139[_0x9880e8(0x18d)]()==='')return null;const _0xc5b8ce=Number(_0x525139);if(Number[_0x9880e8(0x19f)](_0xc5b8ce))return _0xc5b8ce;const _0x5f12f6=Date[_0x9880e8(0x183)](_0x525139);return Number['isNaN'](_0x5f12f6)?null:_0x5f12f6;}
@@ -1 +1 @@
1
- function a84_0x228d(){const _0x5cb6e9=['skip-connection-test','1470VSEpeB','str','Logical\x20database\x20/\x20schema\x20name\x20on\x20the\x20server','string','dbname','POST','dburl','12DgmDjf','appCode','Check\x20firewall\x20allowlist\x20and\x20connection\x20string\x20format.','8.0','110REQLuy','\x20and\x20started\x20analysis','After\x20create,\x20start\x20schema\x20analysis','969222DdJtXl','Extra\x20JDBC-style\x20connection\x20parameters\x20string','3738iRURmu','576198yvRjsj','Invalid\x20--dburl:\x20expected\x20host:port\x20(e.g.\x20db.example.com:3306),\x20got\x20\x22','dbdesc','validation','2252712PDBohK','Host\x20and\x20port:\x20host:port','databasePage','Human-readable\x20description','dbtype','dbversion',';\x20schema\x20analysis\x20failed\x20to\x20start\x20—\x20see\x20data.analysisStartWarning','Create\x20dblink','trim','No\x20follow-up\x20analysis','password','605151CbXgEZ','Server\x20version\x20string\x20(default:\x208.0\x20when\x20omitted)','username','Created\x20db\x20link\x20','join','94882vcAoxv','bool','planId','dbparam','write','boolean','144UBBBcR','autostart','message','5yTTZOp','32843646YCJIaG'];a84_0x228d=function(){return _0x5cb6e9;};return a84_0x228d();}const a84_0x11e7a4=a84_0x79e8;(function(_0x21a86e,_0x4a791b){const _0x35bcff=a84_0x79e8,_0x489975=_0x21a86e();while(!![]){try{const _0x3d9314=-parseInt(_0x35bcff(0x12d))/0x1*(parseInt(_0x35bcff(0x124))/0x2)+-parseInt(_0x35bcff(0x10d))/0x3+-parseInt(_0x35bcff(0x114))/0x4+-parseInt(_0x35bcff(0x130))/0x5*(parseInt(_0x35bcff(0x10f))/0x6)+parseInt(_0x35bcff(0x110))/0x7*(-parseInt(_0x35bcff(0x12a))/0x8)+parseInt(_0x35bcff(0x11f))/0x9*(parseInt(_0x35bcff(0x10a))/0xa)+-parseInt(_0x35bcff(0x12e))/0xb*(-parseInt(_0x35bcff(0x137))/0xc);if(_0x3d9314===_0x4a791b)break;else _0x489975['push'](_0x489975['shift']());}catch(_0x3c3735){_0x489975['push'](_0x489975['shift']());}}}(a84_0x228d,0xe4cb8));import{createDbLink,startDbAnalysis}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a84_0x79e8(_0x188312,_0x44c329){_0x188312=_0x188312-0x109;const _0x228d86=a84_0x228d();let _0x79e85b=_0x228d86[_0x188312];return _0x79e85b;}import{APPCODE_FLAG_OPTIONAL,DB_TYPE_FLAG,SKIP_CONNECTION_TEST_FLAG}from'../../commands/common/flags.js';import{buildDbPageLinks,assertDbLinkConnectionPreflight,sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';export const dbCreate={'service':'db','command':'create','description':'Create\x20a\x20new\x20database\x20connection\x20(dblink).\x20Optionally\x20auto-start\x20schema\x20analysis\x20after\x20creation','risk':a84_0x11e7a4(0x128),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a84_0x11e7a4(0x134),'type':a84_0x11e7a4(0x133),'required':!![],'description':a84_0x11e7a4(0x132)},DB_TYPE_FLAG,{'name':a84_0x11e7a4(0x119),'type':'string','description':a84_0x11e7a4(0x120),'default':a84_0x11e7a4(0x109)},{'name':a84_0x11e7a4(0x136),'type':a84_0x11e7a4(0x133),'required':!![],'description':a84_0x11e7a4(0x115)},{'name':a84_0x11e7a4(0x121),'type':a84_0x11e7a4(0x133),'required':!![],'description':'Database\x20username'},{'name':a84_0x11e7a4(0x11e),'type':a84_0x11e7a4(0x133),'required':!![],'description':'Database\x20password'},{'name':a84_0x11e7a4(0x127),'type':a84_0x11e7a4(0x133),'description':a84_0x11e7a4(0x10e)},{'name':a84_0x11e7a4(0x112),'type':a84_0x11e7a4(0x133),'description':a84_0x11e7a4(0x117)},{'name':a84_0x11e7a4(0x12b),'type':a84_0x11e7a4(0x129),'description':a84_0x11e7a4(0x10c),'default':![]},SKIP_CONNECTION_TEST_FLAG],async 'validate'(_0x2bd76f){const _0x520326=a84_0x11e7a4,_0x1c3fb4=_0x2bd76f['str'](_0x520326(0x136))[_0x520326(0x11c)]();if(!validateDbUrl(_0x1c3fb4))throw CliErrors[_0x520326(0x113)](_0x520326(0x111)+_0x1c3fb4+'\x22',_0x520326(0x139));},async 'dryRun'(_0x120c99){const _0x26e27b=a84_0x11e7a4,_0x539273={'appCode':_0x120c99['appCode'],'dbName':_0x120c99['str'](_0x26e27b(0x134)),'dbType':_0x120c99[_0x26e27b(0x131)](_0x26e27b(0x118)),'dbVersion':_0x120c99['str'](_0x26e27b(0x119))||_0x26e27b(0x109),'dbUrl':_0x120c99[_0x26e27b(0x131)]('dburl')['trim'](),'username':_0x120c99['str'](_0x26e27b(0x121)),'password':'[redacted]',..._0x120c99[_0x26e27b(0x131)](_0x26e27b(0x127))?{'dbParam':_0x120c99[_0x26e27b(0x131)](_0x26e27b(0x127))}:{},..._0x120c99[_0x26e27b(0x131)]('dbdesc')?{'dbDesc':_0x120c99['str']('dbdesc')}:{}};return{'method':_0x26e27b(0x135),'url':'/smartapi/dblink/create','body':_0x539273,'description':[_0x26e27b(0x11b),_0x120c99[_0x26e27b(0x125)]('autostart')?'Then\x20POST\x20start\x20analysis\x20for\x20returned\x20id':_0x26e27b(0x11d)][_0x26e27b(0x123)]('\x0a'),'connectionPreflight':{'enabled':!_0x120c99[_0x26e27b(0x125)](_0x26e27b(0x12f)),'executed':![]}};},async 'execute'(_0x41d13f){const _0xaa3a5b=a84_0x11e7a4,_0x438084={'appCode':_0x41d13f['appCode'],'dbName':_0x41d13f[_0xaa3a5b(0x131)](_0xaa3a5b(0x134)),'dbType':_0x41d13f['str'](_0xaa3a5b(0x118)),'dbVersion':_0x41d13f[_0xaa3a5b(0x131)](_0xaa3a5b(0x119))||_0xaa3a5b(0x109),'dbUrl':_0x41d13f[_0xaa3a5b(0x131)]('dburl')[_0xaa3a5b(0x11c)](),'username':_0x41d13f[_0xaa3a5b(0x131)](_0xaa3a5b(0x121)),'password':_0x41d13f[_0xaa3a5b(0x131)](_0xaa3a5b(0x11e)),..._0x41d13f[_0xaa3a5b(0x131)](_0xaa3a5b(0x127))?{'dbParam':_0x41d13f[_0xaa3a5b(0x131)]('dbparam')}:{},..._0x41d13f['str'](_0xaa3a5b(0x112))?{'dbDesc':_0x41d13f['str'](_0xaa3a5b(0x112))}:{}};!_0x41d13f[_0xaa3a5b(0x125)]('skip-connection-test')&&await assertDbLinkConnectionPreflight(_0x438084);const {id:_0x9ad038,entity:_0x56bacc}=normalizeEntityWithIdResponse(await createDbLink(_0x438084));if(!_0x9ad038)return{'ok':![],'message':'Create\x20returned\x20no\x20id\x20—\x20check\x20API\x20response','data':sanitizeDbLinkForOutput(_0x56bacc)};let _0x2d14da,_0x5f4c90;if(_0x41d13f['bool'](_0xaa3a5b(0x12b)))try{_0x2d14da=(await startDbAnalysis(_0x9ad038))[_0xaa3a5b(0x126)];}catch(_0x4ab455){_0x5f4c90=_0x4ab455 instanceof Error?_0x4ab455[_0xaa3a5b(0x12c)]:String(_0x4ab455);}const _0x1c54ae=buildDbPageLinks(_0x41d13f[_0xaa3a5b(0x138)],_0x9ad038),_0x1cab3a={'connection':sanitizeDbLinkForOutput(_0x56bacc),..._0x1c54ae?{'links':{'databasePage':_0x1c54ae[_0xaa3a5b(0x116)]}}:{},..._0x2d14da?{'analysisPlanId':_0x2d14da}:{},..._0x5f4c90?{'analysisStartWarning':_0x5f4c90}:{}};let _0x3167c7;return _0x41d13f['bool'](_0xaa3a5b(0x12b))?_0x5f4c90?_0x3167c7=_0xaa3a5b(0x122)+_0x9ad038+_0xaa3a5b(0x11a):_0x3167c7=_0xaa3a5b(0x122)+_0x9ad038+_0xaa3a5b(0x10b):_0x3167c7='Created\x20db\x20link\x20'+_0x9ad038,{'ok':!![],'data':_0x1cab3a,'message':_0x3167c7};}};
1
+ function a84_0x476f(){const _0x423d8c=['Invalid\x20--dburl:\x20expected\x20host:port\x20(e.g.\x20db.example.com:3306),\x20got\x20\x22','planId','8.0','12735294oifNPF','Created\x20db\x20link\x20','Extra\x20JDBC-style\x20connection\x20parameters\x20string','appCode','Server\x20version\x20string\x20(default:\x208.0\x20when\x20omitted)','Database\x20username','4166481LPVPNI','skip-connection-test','12tYtjKt','username','POST','8jhaGcR','Logical\x20database\x20/\x20schema\x20name\x20on\x20the\x20server','Check\x20firewall\x20allowlist\x20and\x20connection\x20string\x20format.','950CRsgwe','16WsAQEv','dbname','message',';\x20schema\x20analysis\x20failed\x20to\x20start\x20—\x20see\x20data.analysisStartWarning','write','dbdesc','autostart','Host\x20and\x20port:\x20host:port','Then\x20POST\x20start\x20analysis\x20for\x20returned\x20id','1432QyjKEe','Create\x20a\x20new\x20database\x20connection\x20(dblink).\x20Optionally\x20auto-start\x20schema\x20analysis\x20after\x20creation','validation','After\x20create,\x20start\x20schema\x20analysis','dbversion','Create\x20returned\x20no\x20id\x20—\x20check\x20API\x20response','dburl','No\x20follow-up\x20analysis','163338AHxZtE','boolean','str','create','Create\x20dblink','414CiMAqX','string','bool','\x20and\x20started\x20analysis','password','Human-readable\x20description','7234310HPjgZb','dbparam','10214793GARNTO','trim','[redacted]','1912310MdTUIz'];a84_0x476f=function(){return _0x423d8c;};return a84_0x476f();}const a84_0x1d663f=a84_0x4b59;(function(_0x2af1bb,_0x5ca153){const _0xc240ab=a84_0x4b59,_0x7d5b14=_0x2af1bb();while(!![]){try{const _0x10bd10=parseInt(_0xc240ab(0x150))/0x1*(parseInt(_0xc240ab(0x15a))/0x2)+-parseInt(_0xc240ab(0x148))/0x3+parseInt(_0xc240ab(0x151))/0x4*(parseInt(_0xc240ab(0x172))/0x5)+-parseInt(_0xc240ab(0x167))/0x6*(-parseInt(_0xc240ab(0x162))/0x7)+parseInt(_0xc240ab(0x14d))/0x8*(-parseInt(_0xc240ab(0x16f))/0x9)+parseInt(_0xc240ab(0x16d))/0xa+parseInt(_0xc240ab(0x142))/0xb*(-parseInt(_0xc240ab(0x14a))/0xc);if(_0x10bd10===_0x5ca153)break;else _0x7d5b14['push'](_0x7d5b14['shift']());}catch(_0x7e3bc3){_0x7d5b14['push'](_0x7d5b14['shift']());}}}(a84_0x476f,0xd270f));function a84_0x4b59(_0x53e7c1,_0x22df33){_0x53e7c1=_0x53e7c1-0x141;const _0x476f66=a84_0x476f();let _0x4b59c5=_0x476f66[_0x53e7c1];return _0x4b59c5;}import{createDbLink,startDbAnalysis}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,DB_TYPE_FLAG,SKIP_CONNECTION_TEST_FLAG}from'../../commands/common/flags.js';import{buildDbPageLinks,assertDbLinkConnectionPreflight,sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';export const dbCreate={'service':'db','command':a84_0x1d663f(0x165),'description':a84_0x1d663f(0x15b),'risk':a84_0x1d663f(0x155),'flags':[APPCODE_FLAG_OPTIONAL,{'name':'dbname','type':a84_0x1d663f(0x168),'required':!![],'description':a84_0x1d663f(0x14e)},DB_TYPE_FLAG,{'name':a84_0x1d663f(0x15e),'type':a84_0x1d663f(0x168),'description':a84_0x1d663f(0x146),'default':'8.0'},{'name':a84_0x1d663f(0x160),'type':a84_0x1d663f(0x168),'required':!![],'description':a84_0x1d663f(0x158)},{'name':a84_0x1d663f(0x14b),'type':a84_0x1d663f(0x168),'required':!![],'description':a84_0x1d663f(0x147)},{'name':a84_0x1d663f(0x16b),'type':a84_0x1d663f(0x168),'required':!![],'description':'Database\x20password'},{'name':'dbparam','type':a84_0x1d663f(0x168),'description':a84_0x1d663f(0x144)},{'name':'dbdesc','type':'string','description':a84_0x1d663f(0x16c)},{'name':a84_0x1d663f(0x157),'type':a84_0x1d663f(0x163),'description':a84_0x1d663f(0x15d),'default':![]},SKIP_CONNECTION_TEST_FLAG],async 'validate'(_0x4d57b9){const _0x212c3a=a84_0x1d663f,_0x400756=_0x4d57b9[_0x212c3a(0x164)]('dburl')['trim']();if(!validateDbUrl(_0x400756))throw CliErrors[_0x212c3a(0x15c)](_0x212c3a(0x173)+_0x400756+'\x22',_0x212c3a(0x14f));},async 'dryRun'(_0x4b671e){const _0x14c9ac=a84_0x1d663f,_0x63413={'appCode':_0x4b671e[_0x14c9ac(0x145)],'dbName':_0x4b671e['str']('dbname'),'dbType':_0x4b671e[_0x14c9ac(0x164)]('dbtype'),'dbVersion':_0x4b671e[_0x14c9ac(0x164)](_0x14c9ac(0x15e))||_0x14c9ac(0x141),'dbUrl':_0x4b671e[_0x14c9ac(0x164)](_0x14c9ac(0x160))[_0x14c9ac(0x170)](),'username':_0x4b671e[_0x14c9ac(0x164)](_0x14c9ac(0x14b)),'password':_0x14c9ac(0x171),..._0x4b671e['str'](_0x14c9ac(0x16e))?{'dbParam':_0x4b671e[_0x14c9ac(0x164)](_0x14c9ac(0x16e))}:{},..._0x4b671e['str']('dbdesc')?{'dbDesc':_0x4b671e[_0x14c9ac(0x164)](_0x14c9ac(0x156))}:{}};return{'method':_0x14c9ac(0x14c),'url':'/smartapi/dblink/create','body':_0x63413,'description':[_0x14c9ac(0x166),_0x4b671e[_0x14c9ac(0x169)](_0x14c9ac(0x157))?_0x14c9ac(0x159):_0x14c9ac(0x161)]['join']('\x0a'),'connectionPreflight':{'enabled':!_0x4b671e[_0x14c9ac(0x169)](_0x14c9ac(0x149)),'executed':![]}};},async 'execute'(_0x465c78){const _0x3bb348=a84_0x1d663f,_0x5ac841={'appCode':_0x465c78[_0x3bb348(0x145)],'dbName':_0x465c78[_0x3bb348(0x164)](_0x3bb348(0x152)),'dbType':_0x465c78[_0x3bb348(0x164)]('dbtype'),'dbVersion':_0x465c78[_0x3bb348(0x164)]('dbversion')||_0x3bb348(0x141),'dbUrl':_0x465c78[_0x3bb348(0x164)](_0x3bb348(0x160))['trim'](),'username':_0x465c78[_0x3bb348(0x164)](_0x3bb348(0x14b)),'password':_0x465c78['str'](_0x3bb348(0x16b)),..._0x465c78['str'](_0x3bb348(0x16e))?{'dbParam':_0x465c78[_0x3bb348(0x164)]('dbparam')}:{},..._0x465c78[_0x3bb348(0x164)]('dbdesc')?{'dbDesc':_0x465c78['str']('dbdesc')}:{}};!_0x465c78[_0x3bb348(0x169)]('skip-connection-test')&&await assertDbLinkConnectionPreflight(_0x5ac841);const {id:_0x322b3c,entity:_0x50ff03}=normalizeEntityWithIdResponse(await createDbLink(_0x5ac841));if(!_0x322b3c)return{'ok':![],'message':_0x3bb348(0x15f),'data':sanitizeDbLinkForOutput(_0x50ff03)};let _0x6b0015,_0x58e690;if(_0x465c78['bool'](_0x3bb348(0x157)))try{_0x6b0015=(await startDbAnalysis(_0x322b3c))[_0x3bb348(0x174)];}catch(_0x5e7dd0){_0x58e690=_0x5e7dd0 instanceof Error?_0x5e7dd0[_0x3bb348(0x153)]:String(_0x5e7dd0);}const _0x105c5f=buildDbPageLinks(_0x465c78[_0x3bb348(0x145)],_0x322b3c),_0x301d83={'connection':sanitizeDbLinkForOutput(_0x50ff03),..._0x105c5f?{'links':{'databasePage':_0x105c5f['databasePage']}}:{},..._0x6b0015?{'analysisPlanId':_0x6b0015}:{},..._0x58e690?{'analysisStartWarning':_0x58e690}:{}};let _0x4ee863;return _0x465c78[_0x3bb348(0x169)]('autostart')?_0x58e690?_0x4ee863='Created\x20db\x20link\x20'+_0x322b3c+_0x3bb348(0x154):_0x4ee863='Created\x20db\x20link\x20'+_0x322b3c+_0x3bb348(0x16a):_0x4ee863=_0x3bb348(0x143)+_0x322b3c,{'ok':!![],'data':_0x301d83,'message':_0x4ee863};}};
@@ -1 +1 @@
1
- const a85_0xc2b92e=a85_0x2b48;function a85_0x5d62(){const _0x3c6326=['\x20still\x20has\x20','activeDatasetCount','expected-dataset-count','551856npNJjH','validation','2WnwsIh','Delete\x20or\x20migrate\x20the\x20listed\x20DB_TABLE\x20Datasets\x20first.\x20There\x20is\x20no\x20force\x20bypass.','341fHcrQZ','boolean','114037anIYLj','delete','432582jisBOa','number','795820bmmkDQ','45sjGqmS','Deletion\x20is\x20blocked\x20by\x20','Abort\x20unless\x20the\x20active\x20DB_TABLE\x20Dataset\x20count\x20equals\x20this\x20value','--confirm\x20is\x20required\x20to\x20delete\x20a\x20database\x20connection.','confirm','15WoQHWs','354770NtObwO','712VEQREz','bool','/smartapi/dblink/delete','flag','--expected-dataset-count\x20must\x20be\x20a\x20non-negative\x20integer.','Deleted\x20db\x20link\x20','2591793VeXpUT','all','Confirm\x20deletion\x20after\x20reviewing\x20the\x20active\x20Dataset\x20count','\x20active\x20Dataset(s);\x20deletion\x20is\x20blocked.','Would\x20logically\x20delete\x20this\x20dependency-free\x20database\x20connection\x20after\x20--confirm.','Logically\x20delete\x20a\x20database\x20connection\x20(dblink)','datasetDependency','9277680uDlnmr','num'];a85_0x5d62=function(){return _0x3c6326;};return a85_0x5d62();}(function(_0x283714,_0x2caa8e){const _0xab2c9d=a85_0x2b48,_0x290668=_0x283714();while(!![]){try{const _0xe8bf5f=-parseInt(_0xab2c9d(0xa9))/0x1+-parseInt(_0xab2c9d(0xa3))/0x2*(parseInt(_0xab2c9d(0x95))/0x3)+-parseInt(_0xab2c9d(0xab))/0x4*(-parseInt(_0xab2c9d(0xb1))/0x5)+-parseInt(_0xab2c9d(0x9c))/0x6+-parseInt(_0xab2c9d(0xa7))/0x7*(-parseInt(_0xab2c9d(0xb3))/0x8)+-parseInt(_0xab2c9d(0xac))/0x9*(-parseInt(_0xab2c9d(0xb2))/0xa)+parseInt(_0xab2c9d(0xa5))/0xb*(parseInt(_0xab2c9d(0xa1))/0xc);if(_0xe8bf5f===_0x2caa8e)break;else _0x290668['push'](_0x290668['shift']());}catch(_0x5f4f7f){_0x290668['push'](_0x290668['shift']());}}}(a85_0x5d62,0xc5048));import{deleteDbLink,getDbLinkInfo,listDatasets}from'../../core/api-client.js';function a85_0x2b48(_0x302468,_0x29c2ac){_0x302468=_0x302468-0x90;const _0x5d6213=a85_0x5d62();let _0x2b48b7=_0x5d6213[_0x302468];return _0x2b48b7;}import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{buildDbDatasetDependency,sanitizeDbLinkForOutput}from'../../commands/db/shared.js';const CONFIRM_FLAG={'name':'confirm','type':a85_0xc2b92e(0xa6),'description':a85_0xc2b92e(0x97)},EXPECTED_DATASET_COUNT_FLAG={'name':a85_0xc2b92e(0xa0),'type':a85_0xc2b92e(0xaa),'description':a85_0xc2b92e(0xae)};export const dbDelete={'service':'db','command':a85_0xc2b92e(0xa8),'description':a85_0xc2b92e(0x9a),'risk':'high-risk-write','flags':[DBLINK_ID_FLAG,CONFIRM_FLAG,EXPECTED_DATASET_COUNT_FLAG,APPCODE_FLAG_OPTIONAL],async 'dryRun'(_0x58033c){const _0x1b6289=a85_0xc2b92e,_0x2c2839=await loadDeleteImpact(_0x58033c);return assertExpectedDatasetCount(_0x58033c,_0x2c2839[_0x1b6289(0x9b)][_0x1b6289(0x9f)]),{'method':'POST','url':_0x1b6289(0x91),'body':{'id':_0x2c2839['id']},'description':_0x2c2839['datasetDependency'][_0x1b6289(0x9f)]>0x0?_0x1b6289(0xad)+_0x2c2839[_0x1b6289(0x9b)][_0x1b6289(0x9f)]+'\x20active\x20DB_TABLE\x20Dataset(s).':_0x1b6289(0x99),..._0x2c2839};},async 'execute'(_0x10950){const _0x1eb406=a85_0xc2b92e;if(!_0x10950[_0x1eb406(0x90)](_0x1eb406(0xb0)))throw CliErrors['validation'](_0x1eb406(0xaf),'Run\x20with\x20--dry-run\x20first\x20and\x20verify\x20the\x20active\x20Dataset\x20count.');const _0x5cf852=_0x10950[_0x1eb406(0x9d)]('id'),_0x1eeea1=await loadDeleteImpact(_0x10950),_0x554bf5=_0x1eeea1[_0x1eb406(0x9b)][_0x1eb406(0x9f)];assertExpectedDatasetCount(_0x10950,_0x554bf5);if(_0x554bf5>0x0)throw CliErrors[_0x1eb406(0xa2)]('Database\x20connection\x20'+_0x5cf852+_0x1eb406(0x9e)+_0x554bf5+_0x1eb406(0x98),_0x1eb406(0xa4));return await deleteDbLink(_0x5cf852),{'ok':!![],'data':{'id':_0x5cf852,'deleted':!![],'activeDatasetCount':_0x554bf5},'message':_0x1eb406(0x94)+_0x5cf852};}};async function loadDeleteImpact(_0x4f00b4){const _0x3b1dbc=a85_0xc2b92e,_0x5e7499=_0x4f00b4['num']('id'),[_0x550153,_0x2422d0]=await Promise[_0x3b1dbc(0x96)]([getDbLinkInfo(_0x5e7499),listDatasets(_0x4f00b4['appCode'],{'source':'DB_TABLE'})]),_0x2e7c65=buildDbDatasetDependency(_0x550153,_0x2422d0);return{'id':_0x5e7499,'connection':sanitizeDbLinkForOutput(_0x550153),'datasetDependency':_0x2e7c65[_0x3b1dbc(0x9b)],'activeDatasetCount':_0x2e7c65['datasetDependency'][_0x3b1dbc(0x9f)],'datasets':_0x2e7c65['datasets']};}function assertExpectedDatasetCount(_0x3fc9fe,_0x58cc32){const _0x2c2a83=a85_0xc2b92e,_0x3923e7=_0x3fc9fe[_0x2c2a83(0x92)](_0x2c2a83(0xa0));if(_0x3923e7===undefined||_0x3923e7==='')return;const _0x59f9a8=_0x3fc9fe[_0x2c2a83(0x9d)](_0x2c2a83(0xa0));if(!Number['isInteger'](_0x59f9a8)||_0x59f9a8<0x0)throw CliErrors[_0x2c2a83(0xa2)](_0x2c2a83(0x93));if(_0x59f9a8!==_0x58cc32)throw CliErrors['validation']('Expected\x20'+_0x59f9a8+'\x20active\x20Dataset(s),\x20but\x20found\x20'+_0x58cc32+'.','Run\x20--dry-run\x20again\x20and\x20review\x20the\x20current\x20dependencies.');}
1
+ const a85_0x50ef83=a85_0x9bfc;(function(_0x2782cb,_0x57e079){const _0x9d64c9=a85_0x9bfc,_0x290d7d=_0x2782cb();while(!![]){try{const _0x4d52f7=-parseInt(_0x9d64c9(0x177))/0x1+-parseInt(_0x9d64c9(0x179))/0x2+-parseInt(_0x9d64c9(0x18f))/0x3+-parseInt(_0x9d64c9(0x176))/0x4+parseInt(_0x9d64c9(0x17e))/0x5+parseInt(_0x9d64c9(0x197))/0x6*(-parseInt(_0x9d64c9(0x182))/0x7)+-parseInt(_0x9d64c9(0x194))/0x8*(-parseInt(_0x9d64c9(0x196))/0x9);if(_0x4d52f7===_0x57e079)break;else _0x290d7d['push'](_0x290d7d['shift']());}catch(_0x585c50){_0x290d7d['push'](_0x290d7d['shift']());}}}(a85_0x5580,0xd44c6));import{deleteDbLink,getDbLinkInfo,listDatasets}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{buildDbDatasetDependency,sanitizeDbLinkForOutput}from'../../commands/db/shared.js';function a85_0x5580(){const _0x3795ca=['all','datasetDependency','isInteger','\x20active\x20Dataset(s),\x20but\x20found\x20','POST','3549123VAvwuI','expected-dataset-count','DB_TABLE','Would\x20logically\x20delete\x20this\x20dependency-free\x20database\x20connection\x20after\x20--confirm.','bool','11622856XepIuc','confirm','27dGFNLt','582itWYNd','\x20still\x20has\x20','Database\x20connection\x20','validation','2860476NpyypR','1706082nAwPkV','Deletion\x20is\x20blocked\x20by\x20','1244364sIgzeu','num','datasets','high-risk-write','appCode','7440550jMPsTb','\x20active\x20Dataset(s);\x20deletion\x20is\x20blocked.','boolean','Run\x20with\x20--dry-run\x20first\x20and\x20verify\x20the\x20active\x20Dataset\x20count.','54173GsvUVr','Confirm\x20deletion\x20after\x20reviewing\x20the\x20active\x20Dataset\x20count','--expected-dataset-count\x20must\x20be\x20a\x20non-negative\x20integer.','Abort\x20unless\x20the\x20active\x20DB_TABLE\x20Dataset\x20count\x20equals\x20this\x20value','\x20active\x20DB_TABLE\x20Dataset(s).','Logically\x20delete\x20a\x20database\x20connection\x20(dblink)','activeDatasetCount','Run\x20--dry-run\x20again\x20and\x20review\x20the\x20current\x20dependencies.'];a85_0x5580=function(){return _0x3795ca;};return a85_0x5580();}const CONFIRM_FLAG={'name':a85_0x50ef83(0x195),'type':a85_0x50ef83(0x180),'description':a85_0x50ef83(0x183)},EXPECTED_DATASET_COUNT_FLAG={'name':a85_0x50ef83(0x190),'type':'number','description':a85_0x50ef83(0x185)};export const dbDelete={'service':'db','command':'delete','description':a85_0x50ef83(0x187),'risk':a85_0x50ef83(0x17c),'flags':[DBLINK_ID_FLAG,CONFIRM_FLAG,EXPECTED_DATASET_COUNT_FLAG,APPCODE_FLAG_OPTIONAL],async 'dryRun'(_0x4229ca){const _0x198b31=a85_0x50ef83,_0x2b23d2=await loadDeleteImpact(_0x4229ca);return assertExpectedDatasetCount(_0x4229ca,_0x2b23d2[_0x198b31(0x18b)][_0x198b31(0x188)]),{'method':_0x198b31(0x18e),'url':'/smartapi/dblink/delete','body':{'id':_0x2b23d2['id']},'description':_0x2b23d2[_0x198b31(0x18b)][_0x198b31(0x188)]>0x0?_0x198b31(0x178)+_0x2b23d2['datasetDependency']['activeDatasetCount']+_0x198b31(0x186):_0x198b31(0x192),..._0x2b23d2};},async 'execute'(_0x56e260){const _0x2bb0ba=a85_0x50ef83;if(!_0x56e260[_0x2bb0ba(0x193)]('confirm'))throw CliErrors[_0x2bb0ba(0x175)]('--confirm\x20is\x20required\x20to\x20delete\x20a\x20database\x20connection.',_0x2bb0ba(0x181));const _0x2d6467=_0x56e260[_0x2bb0ba(0x17a)]('id'),_0x1f93e7=await loadDeleteImpact(_0x56e260),_0xfd83b4=_0x1f93e7[_0x2bb0ba(0x18b)]['activeDatasetCount'];assertExpectedDatasetCount(_0x56e260,_0xfd83b4);if(_0xfd83b4>0x0)throw CliErrors[_0x2bb0ba(0x175)](_0x2bb0ba(0x174)+_0x2d6467+_0x2bb0ba(0x198)+_0xfd83b4+_0x2bb0ba(0x17f),'Delete\x20or\x20migrate\x20the\x20listed\x20DB_TABLE\x20Datasets\x20first.\x20There\x20is\x20no\x20force\x20bypass.');return await deleteDbLink(_0x2d6467),{'ok':!![],'data':{'id':_0x2d6467,'deleted':!![],'activeDatasetCount':_0xfd83b4},'message':'Deleted\x20db\x20link\x20'+_0x2d6467};}};async function loadDeleteImpact(_0x4b573f){const _0x4f3b60=a85_0x50ef83,_0x1124c8=_0x4b573f[_0x4f3b60(0x17a)]('id'),[_0x26248e,_0xbd5b5d]=await Promise[_0x4f3b60(0x18a)]([getDbLinkInfo(_0x1124c8),listDatasets(_0x4b573f[_0x4f3b60(0x17d)],{'source':_0x4f3b60(0x191)})]),_0x97b3d4=buildDbDatasetDependency(_0x26248e,_0xbd5b5d);return{'id':_0x1124c8,'connection':sanitizeDbLinkForOutput(_0x26248e),'datasetDependency':_0x97b3d4[_0x4f3b60(0x18b)],'activeDatasetCount':_0x97b3d4[_0x4f3b60(0x18b)][_0x4f3b60(0x188)],'datasets':_0x97b3d4[_0x4f3b60(0x17b)]};}function a85_0x9bfc(_0x2ca2a1,_0x3bcf26){_0x2ca2a1=_0x2ca2a1-0x174;const _0x558091=a85_0x5580();let _0x9bfc1f=_0x558091[_0x2ca2a1];return _0x9bfc1f;}function assertExpectedDatasetCount(_0x9231e9,_0x18daf8){const _0xd2a6ce=a85_0x50ef83,_0x2277d7=_0x9231e9['flag'](_0xd2a6ce(0x190));if(_0x2277d7===undefined||_0x2277d7==='')return;const _0x58ad2c=_0x9231e9[_0xd2a6ce(0x17a)](_0xd2a6ce(0x190));if(!Number[_0xd2a6ce(0x18c)](_0x58ad2c)||_0x58ad2c<0x0)throw CliErrors['validation'](_0xd2a6ce(0x184));if(_0x58ad2c!==_0x18daf8)throw CliErrors[_0xd2a6ce(0x175)]('Expected\x20'+_0x58ad2c+_0xd2a6ce(0x18d)+_0x18daf8+'.',_0xd2a6ce(0x189));}
@@ -1 +1 @@
1
- const a86_0x44167d=a86_0x1a01;(function(_0x88b346,_0x3c318a){const _0x4bafc6=a86_0x1a01,_0x19ca21=_0x88b346();while(!![]){try{const _0x6c83c2=-parseInt(_0x4bafc6(0x160))/0x1+parseInt(_0x4bafc6(0x165))/0x2*(-parseInt(_0x4bafc6(0x157))/0x3)+-parseInt(_0x4bafc6(0x15a))/0x4+-parseInt(_0x4bafc6(0x164))/0x5*(parseInt(_0x4bafc6(0x159))/0x6)+-parseInt(_0x4bafc6(0x15d))/0x7+parseInt(_0x4bafc6(0x166))/0x8*(parseInt(_0x4bafc6(0x162))/0x9)+parseInt(_0x4bafc6(0x167))/0xa;if(_0x6c83c2===_0x3c318a)break;else _0x19ca21['push'](_0x19ca21['shift']());}catch(_0x30d3a1){_0x19ca21['push'](_0x19ca21['shift']());}}}(a86_0x2051,0xf30c7));import{getDbLinkInfo,listDatasets}from'../../core/api-client.js';function a86_0x1a01(_0x28358b,_0x1a3373){_0x28358b=_0x28358b-0x157;const _0x205130=a86_0x2051();let _0x1a0123=_0x205130[_0x28358b];return _0x1a0123;}import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a86_0x2051(){const _0x3c75df=['11705646mUTdQF','6740172Eecbsk','dbName','DB_TABLE','1037974tLngPI','detail','db\x20link\x20','342116XcPaRB','appCode','9lUkLsW','num','5qnrzjJ','200822jsRoKH','8569832OWGWIJ','45527350iqnPzG','15bWEMDq','datasetDependency'];a86_0x2051=function(){return _0x3c75df;};return a86_0x2051();}import{buildDbDatasetDependency,sanitizeDbLinkForOutput}from'../../commands/db/shared.js';export const dbDetail={'service':'db','command':a86_0x44167d(0x15e),'description':'Get\x20one\x20database\x20connection\x20by\x20id\x20(metadata\x20+\x20analysis\x20fields;\x20password\x20redacted)','risk':'read','requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x483819){const _0x223538=a86_0x44167d,_0x46479b=_0x483819[_0x223538(0x163)]('id'),_0x29ab0e=await getDbLinkInfo(_0x46479b),_0xf9f597=await listDatasets(_0x29ab0e[_0x223538(0x161)]||_0x483819[_0x223538(0x161)],{'source':_0x223538(0x15c)}),_0x3a1c47=buildDbDatasetDependency(_0x29ab0e,_0xf9f597);return{'ok':!![],'data':{...sanitizeDbLinkForOutput(_0x29ab0e),'datasetDependency':_0x3a1c47[_0x223538(0x158)]},'message':_0x223538(0x15f)+_0x46479b+':\x20'+_0x29ab0e[_0x223538(0x15b)]};}};
1
+ function a86_0x2324(){const _0x37b16f=['89032fqMVer','Get\x20one\x20database\x20connection\x20by\x20id\x20(metadata\x20+\x20analysis\x20fields;\x20password\x20redacted)','192108hNmuyk','2207970qHVBRj','29915UWJVJs','appCode','3qphlxH','num','db\x20link\x20','datasetDependency','10fMpFna','14ytxQcI','151860BIgksJ','156SksBlv','DB_TABLE','2KqwziJ','36AiWcpB','353782TvxHaF','detail','8041202IIqHgf'];a86_0x2324=function(){return _0x37b16f;};return a86_0x2324();}const a86_0x284fa6=a86_0x328f;(function(_0x4bf367,_0x1817f3){const _0x1399af=a86_0x328f,_0x5dbee5=_0x4bf367();while(!![]){try{const _0x35a033=parseInt(_0x1399af(0xf4))/0x1*(parseInt(_0x1399af(0xed))/0x2)+parseInt(_0x1399af(0xf8))/0x3*(parseInt(_0x1399af(0xea))/0x4)+-parseInt(_0x1399af(0xf6))/0x5*(-parseInt(_0x1399af(0xeb))/0x6)+-parseInt(_0x1399af(0xe9))/0x7*(-parseInt(_0x1399af(0xf2))/0x8)+-parseInt(_0x1399af(0xf5))/0x9*(-parseInt(_0x1399af(0xe8))/0xa)+-parseInt(_0x1399af(0xef))/0xb*(-parseInt(_0x1399af(0xee))/0xc)+-parseInt(_0x1399af(0xf1))/0xd;if(_0x35a033===_0x1817f3)break;else _0x5dbee5['push'](_0x5dbee5['shift']());}catch(_0x4c62c0){_0x5dbee5['push'](_0x5dbee5['shift']());}}}(a86_0x2324,0x2004f));function a86_0x328f(_0x45a793,_0x41ca7d){_0x45a793=_0x45a793-0xe6;const _0x23247d=a86_0x2324();let _0x328fb3=_0x23247d[_0x45a793];return _0x328fb3;}import{getDbLinkInfo,listDatasets}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{buildDbDatasetDependency,sanitizeDbLinkForOutput}from'../../commands/db/shared.js';export const dbDetail={'service':'db','command':a86_0x284fa6(0xf0),'description':a86_0x284fa6(0xf3),'risk':'read','requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x1eb316){const _0x49bc8b=a86_0x284fa6,_0x51d526=_0x1eb316[_0x49bc8b(0xf9)]('id'),_0x2fd0e1=await getDbLinkInfo(_0x51d526),_0x3f9a46=await listDatasets(_0x2fd0e1[_0x49bc8b(0xf7)]||_0x1eb316['appCode'],{'source':_0x49bc8b(0xec)}),_0x2fab93=buildDbDatasetDependency(_0x2fd0e1,_0x3f9a46);return{'ok':!![],'data':{...sanitizeDbLinkForOutput(_0x2fd0e1),'datasetDependency':_0x2fab93[_0x49bc8b(0xe7)]},'message':_0x49bc8b(0xe6)+_0x51d526+':\x20'+_0x2fd0e1['dbName']};}};
@@ -1 +1 @@
1
- const a87_0x1b8537=a87_0x33cb;(function(_0x2cfc10,_0x2b29f8){const _0x2735d5=a87_0x33cb,_0x267e3a=_0x2cfc10();while(!![]){try{const _0x288814=parseInt(_0x2735d5(0x1d3))/0x1+parseInt(_0x2735d5(0x1ce))/0x2*(-parseInt(_0x2735d5(0x1d5))/0x3)+-parseInt(_0x2735d5(0x1c3))/0x4*(-parseInt(_0x2735d5(0x1d6))/0x5)+-parseInt(_0x2735d5(0x1c2))/0x6*(-parseInt(_0x2735d5(0x1d1))/0x7)+-parseInt(_0x2735d5(0x1d4))/0x8*(-parseInt(_0x2735d5(0x1c8))/0x9)+parseInt(_0x2735d5(0x1c6))/0xa*(parseInt(_0x2735d5(0x1d2))/0xb)+-parseInt(_0x2735d5(0x1c4))/0xc;if(_0x288814===_0x2b29f8)break;else _0x267e3a['push'](_0x267e3a['shift']());}catch(_0x5a117e){_0x267e3a['push'](_0x267e3a['shift']());}}}(a87_0x3bf6,0x86aa7));function a87_0x3bf6(){const _0x3a30d9=['76CxmBaf','28902456YUhfRu','status','4270FOGKVT','write','4286376mcoovP','trim','Table-diff\x20refresh\x20started\x20without\x20a\x20traceId;\x20the\x20request\x20outcome\x20is\x20unknown.\x20Do\x20not\x20submit\x20another\x20refresh\x20automatically.','validation','Started\x20table-diff\x20refresh\x20for\x20db\x20link\x20','num','131986skSFcT','Start\x20an\x20asynchronous\x20refresh\x20of\x20the\x20database\x20table-diff\x20result','diff-refresh-start','105ZsJMOw','16797WxqmKh','820237RWWWaJ','16uZMbYR','3WsPlli','44035zUzUOI','\x20--plan\x20','\x20--format\x20compress','173598LXauaX'];a87_0x3bf6=function(){return _0x3a30d9;};return a87_0x3bf6();}import{startDbTableDiffRefresh}from'../../core/api-client.js';function a87_0x33cb(_0x41e2c0,_0x4d3726){_0x41e2c0=_0x41e2c0-0x1c2;const _0x3bf61b=a87_0x3bf6();let _0x33cb02=_0x3bf61b[_0x41e2c0];return _0x33cb02;}import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{CliErrors}from'../../errors.js';export const dbDiffRefreshStart={'service':'db','command':a87_0x1b8537(0x1d0),'description':a87_0x1b8537(0x1cf),'risk':a87_0x1b8537(0x1c7),'flags':[DBLINK_ID_FLAG],async 'execute'(_0x57616b){const _0x39dcaa=a87_0x1b8537,_0x525e7a=_0x57616b[_0x39dcaa(0x1cd)]('id'),_0x40fbbc=await startDbTableDiffRefresh(_0x57616b['appCode'],_0x525e7a),_0x153229=_0x40fbbc['traceId']?.[_0x39dcaa(0x1c9)]();if(!_0x153229)throw CliErrors[_0x39dcaa(0x1cb)](_0x39dcaa(0x1ca));return{'ok':!![],'data':{'dbLinkId':_0x525e7a,'traceId':_0x153229,'status':_0x40fbbc[_0x39dcaa(0x1c5)]??null,'query':{'command':CLI_BIN_NAME+'\x20db\x20diff-refresh-status\x20--id\x20'+_0x525e7a+_0x39dcaa(0x1d7)+_0x153229+_0x39dcaa(0x1d8)}},'message':_0x39dcaa(0x1cc)+_0x525e7a};}};
1
+ const a87_0x947fe3=a87_0x6637;(function(_0x2b8d6c,_0x322e2e){const _0x1494a5=a87_0x6637,_0x22f808=_0x2b8d6c();while(!![]){try{const _0x3397de=-parseInt(_0x1494a5(0x166))/0x1*(parseInt(_0x1494a5(0x16e))/0x2)+-parseInt(_0x1494a5(0x175))/0x3*(parseInt(_0x1494a5(0x167))/0x4)+parseInt(_0x1494a5(0x163))/0x5+-parseInt(_0x1494a5(0x169))/0x6*(parseInt(_0x1494a5(0x16b))/0x7)+parseInt(_0x1494a5(0x170))/0x8*(-parseInt(_0x1494a5(0x171))/0x9)+parseInt(_0x1494a5(0x16d))/0xa*(parseInt(_0x1494a5(0x15f))/0xb)+parseInt(_0x1494a5(0x162))/0xc;if(_0x3397de===_0x322e2e)break;else _0x22f808['push'](_0x22f808['shift']());}catch(_0x451257){_0x22f808['push'](_0x22f808['shift']());}}}(a87_0x5bbd,0xab6e7));function a87_0x6637(_0x25a4d3,_0x1c7f65){_0x25a4d3=_0x25a4d3-0x15f;const _0x5bbd2a=a87_0x5bbd();let _0x66375a=_0x5bbd2a[_0x25a4d3];return _0x66375a;}function a87_0x5bbd(){const _0xe355da=['1518kcqPci','traceId','8246EpHDVw','diff-refresh-start','600rtDnsY','600956zMtwXZ','\x20db\x20diff-refresh-status\x20--id\x20','4561264QkAZTz','9fvObgl','num','appCode','Started\x20table-diff\x20refresh\x20for\x20db\x20link\x20','3awroFy','81191wfiRFs','trim','status','29726280SRyGyW','2689940HGauwY','\x20--plan\x20','write','4KAWriP','2743004MmqvTH','validation'];a87_0x5bbd=function(){return _0xe355da;};return a87_0x5bbd();}import{startDbTableDiffRefresh}from'../../core/api-client.js';import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{CliErrors}from'../../errors.js';export const dbDiffRefreshStart={'service':'db','command':a87_0x947fe3(0x16c),'description':'Start\x20an\x20asynchronous\x20refresh\x20of\x20the\x20database\x20table-diff\x20result','risk':a87_0x947fe3(0x165),'flags':[DBLINK_ID_FLAG],async 'execute'(_0x5a6753){const _0x1b97a4=a87_0x947fe3,_0x2111c4=_0x5a6753[_0x1b97a4(0x172)]('id'),_0xb8e749=await startDbTableDiffRefresh(_0x5a6753[_0x1b97a4(0x173)],_0x2111c4),_0x128737=_0xb8e749[_0x1b97a4(0x16a)]?.[_0x1b97a4(0x160)]();if(!_0x128737)throw CliErrors[_0x1b97a4(0x168)]('Table-diff\x20refresh\x20started\x20without\x20a\x20traceId;\x20the\x20request\x20outcome\x20is\x20unknown.\x20Do\x20not\x20submit\x20another\x20refresh\x20automatically.');return{'ok':!![],'data':{'dbLinkId':_0x2111c4,'traceId':_0x128737,'status':_0xb8e749[_0x1b97a4(0x161)]??null,'query':{'command':CLI_BIN_NAME+_0x1b97a4(0x16f)+_0x2111c4+_0x1b97a4(0x164)+_0x128737+'\x20--format\x20compress'}},'message':_0x1b97a4(0x174)+_0x2111c4};}};
@@ -1 +1 @@
1
- const a88_0x7d23=a88_0x2c66;(function(_0x1f5669,_0x233be7){const _0x4ee585=a88_0x2c66,_0x438b75=_0x1f5669();while(!![]){try{const _0x2a683c=parseInt(_0x4ee585(0x18f))/0x1*(-parseInt(_0x4ee585(0x18e))/0x2)+-parseInt(_0x4ee585(0x184))/0x3*(-parseInt(_0x4ee585(0x183))/0x4)+-parseInt(_0x4ee585(0x192))/0x5+parseInt(_0x4ee585(0x190))/0x6+parseInt(_0x4ee585(0x188))/0x7+parseInt(_0x4ee585(0x191))/0x8+parseInt(_0x4ee585(0x187))/0x9*(-parseInt(_0x4ee585(0x185))/0xa);if(_0x2a683c===_0x233be7)break;else _0x438b75['push'](_0x438b75['shift']());}catch(_0xa8246d){_0x438b75['push'](_0x438b75['shift']());}}}(a88_0x34cf,0x74680));import{getDbAnalysisStatus}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{CLI_BIN_NAME}from'../../constant/cli.js';function a88_0x2c66(_0x2106b0,_0x2d98a1){_0x2106b0=_0x2106b0-0x177;const _0x34cfc9=a88_0x34cf();let _0x2c660d=_0x34cfc9[_0x2106b0];return _0x2c660d;}const TERMINAL_STATUSES=new Set(['SUCCESS',a88_0x7d23(0x180),a88_0x7d23(0x178)]),RUNNING_STATUSES=new Set([a88_0x7d23(0x186),'RUNNING',a88_0x7d23(0x18c)]);function a88_0x34cf(){const _0x2d9016=['280NSUXUE','PENDING','52695eNyIFY','3414509qmllHG','plan','UNKNOWN','Table-diff\x20refresh\x20status\x20for\x20','RETRYING','\x20db\x20diff-refresh-status\x20--id\x20','34ilLgIH','38029zQZgxw','1338942GUEmEE','6006464riahVW','1243020JEUPlP','Table-diff\x20refresh\x20trace\x20id\x20from\x20diff-refresh-start','status','CANCELLED','num','SUCCESS','read','has','\x20--format\x20compress','str','\x20--plan\x20','FAILED','string','Fetch\x20table-diff\x20refresh\x20status\x20by\x20plan\x20/\x20trace\x20id','59268GnFWXE','15VQXhQQ'];a88_0x34cf=function(){return _0x2d9016;};return a88_0x34cf();}export const dbDiffRefreshStatus={'service':'db','command':'diff-refresh-status','description':a88_0x7d23(0x182),'risk':a88_0x7d23(0x17b),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a88_0x7d23(0x189),'type':a88_0x7d23(0x181),'required':!![],'description':a88_0x7d23(0x193)}],async 'execute'(_0x55bbb8){const _0x2ab7b7=a88_0x7d23,_0x3f32ba=_0x55bbb8[_0x2ab7b7(0x179)]('id'),_0x5622dd=_0x55bbb8[_0x2ab7b7(0x17e)](_0x2ab7b7(0x189)),_0x2d61e0=await getDbAnalysisStatus(_0x5622dd),_0x5ec011=_0x2d61e0[_0x2ab7b7(0x177)]??null,_0x554c4d=TERMINAL_STATUSES['has'](_0x5ec011??''),_0x114426=_0x5ec011===_0x2ab7b7(0x17a),_0x1c2bbf=_0x554c4d||RUNNING_STATUSES[_0x2ab7b7(0x17c)](_0x5ec011??'');return{'ok':!![],'data':{'dbLinkId':_0x3f32ba,'planId':_0x5622dd,'status':_0x2d61e0,'knownStatus':_0x1c2bbf,'isTerminal':_0x554c4d,'isSuccessful':_0x114426,'query':_0x1c2bbf&&!_0x554c4d?{'command':CLI_BIN_NAME+_0x2ab7b7(0x18d)+_0x3f32ba+_0x2ab7b7(0x17f)+_0x5622dd+_0x2ab7b7(0x17d)}:null},'message':_0x2ab7b7(0x18b)+_0x5622dd+':\x20'+(_0x5ec011??_0x2ab7b7(0x18a))};}};
1
+ const a88_0x1bcc2b=a88_0x41e5;function a88_0x5057(){const _0x586ef9=['SUCCESS','28329660liPdIe','RETRYING','plan','diff-refresh-status','408DYUyXy','3xDryyW','3569965yKswyW','RUNNING','60FopXwA','Fetch\x20table-diff\x20refresh\x20status\x20by\x20plan\x20/\x20trace\x20id','status','191150nDcUNL','str','has','Table-diff\x20refresh\x20trace\x20id\x20from\x20diff-refresh-start','read','21371OWEkLK','756306RCuQIA','232182qwaToC','\x20db\x20diff-refresh-status\x20--id\x20','CANCELLED','1934388nJPaSW','FAILED'];a88_0x5057=function(){return _0x586ef9;};return a88_0x5057();}function a88_0x41e5(_0x52ed4a,_0x495313){_0x52ed4a=_0x52ed4a-0xf5;const _0x505724=a88_0x5057();let _0x41e5c3=_0x505724[_0x52ed4a];return _0x41e5c3;}(function(_0x476094,_0x254eb3){const _0x1c1059=a88_0x41e5,_0x322d89=_0x476094();while(!![]){try{const _0x1a4c53=-parseInt(_0x1c1059(0xf5))/0x1*(parseInt(_0x1c1059(0x105))/0x2)+parseInt(_0x1c1059(0x102))/0x3*(parseInt(_0x1c1059(0xfa))/0x4)+-parseInt(_0x1c1059(0x108))/0x5+parseInt(_0x1c1059(0xf6))/0x6+-parseInt(_0x1c1059(0x103))/0x7+-parseInt(_0x1c1059(0x101))/0x8*(parseInt(_0x1c1059(0xf7))/0x9)+parseInt(_0x1c1059(0xfd))/0xa;if(_0x1a4c53===_0x254eb3)break;else _0x322d89['push'](_0x322d89['shift']());}catch(_0x211d98){_0x322d89['push'](_0x322d89['shift']());}}}(a88_0x5057,0xe4e59));import{getDbAnalysisStatus}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{CLI_BIN_NAME}from'../../constant/cli.js';const TERMINAL_STATUSES=new Set(['SUCCESS',a88_0x1bcc2b(0xfb),a88_0x1bcc2b(0xf9)]),RUNNING_STATUSES=new Set(['PENDING',a88_0x1bcc2b(0x104),a88_0x1bcc2b(0xfe)]);export const dbDiffRefreshStatus={'service':'db','command':a88_0x1bcc2b(0x100),'description':a88_0x1bcc2b(0x106),'risk':a88_0x1bcc2b(0x10c),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a88_0x1bcc2b(0xff),'type':'string','required':!![],'description':a88_0x1bcc2b(0x10b)}],async 'execute'(_0x310398){const _0x2e02fd=a88_0x1bcc2b,_0x1121b4=_0x310398['num']('id'),_0x5cea6e=_0x310398[_0x2e02fd(0x109)]('plan'),_0x4b159c=await getDbAnalysisStatus(_0x5cea6e),_0x314e50=_0x4b159c[_0x2e02fd(0x107)]??null,_0x387cae=TERMINAL_STATUSES[_0x2e02fd(0x10a)](_0x314e50??''),_0x3062f3=_0x314e50===_0x2e02fd(0xfc),_0x5ec1dc=_0x387cae||RUNNING_STATUSES[_0x2e02fd(0x10a)](_0x314e50??'');return{'ok':!![],'data':{'dbLinkId':_0x1121b4,'planId':_0x5cea6e,'status':_0x4b159c,'knownStatus':_0x5ec1dc,'isTerminal':_0x387cae,'isSuccessful':_0x3062f3,'query':_0x5ec1dc&&!_0x387cae?{'command':CLI_BIN_NAME+_0x2e02fd(0xf8)+_0x1121b4+'\x20--plan\x20'+_0x5cea6e+'\x20--format\x20compress'}:null},'message':'Table-diff\x20refresh\x20status\x20for\x20'+_0x5cea6e+':\x20'+(_0x314e50??'UNKNOWN')};}};
@@ -1 +1 @@
1
- const a89_0x248222=a89_0x134f;(function(_0x22cdcf,_0x46c960){const _0x28d4d1=a89_0x134f,_0xdf6447=_0x22cdcf();while(!![]){try{const _0x25c0e2=parseInt(_0x28d4d1(0x136))/0x1*(-parseInt(_0x28d4d1(0x128))/0x2)+-parseInt(_0x28d4d1(0x13d))/0x3+-parseInt(_0x28d4d1(0x121))/0x4+parseInt(_0x28d4d1(0x142))/0x5*(-parseInt(_0x28d4d1(0x130))/0x6)+-parseInt(_0x28d4d1(0x13e))/0x7+parseInt(_0x28d4d1(0x143))/0x8*(parseInt(_0x28d4d1(0x12a))/0x9)+parseInt(_0x28d4d1(0x140))/0xa;if(_0x25c0e2===_0x46c960)break;else _0xdf6447['push'](_0xdf6447['shift']());}catch(_0x540a8f){_0xdf6447['push'](_0xdf6447['shift']());}}}(a89_0x4cd2,0x84475));import{getDbTableDiff}from'../../core/api-client.js';function a89_0x4cd2(){const _0x439d6d=['13790620DVcXaM','summary','10ChFxLL','57224shXYtN','num','length','DELETED_TABLE','read','map','physicalTableCount','2696020QVbche','diff','fieldDiff','MODIFIED_TABLE','deletedColumns','page','tableName','4OYXuAr','Fetch\x20and\x20aggregate\x20every\x20page\x20(overrides\x20--page\x20and\x20--pagesize)','1179xpgSGi','table','\x20(db\x20link\x20','str','all','boolean','740730iXtrZy','tableList','string','appCode','Page\x20size','totalCount','153997qowOqr','diffType','pagesize','bool','NEW_TABLE','filter','number','192102gXXKSf','3369443DBGjsY','datasetTableCount'];a89_0x4cd2=function(){return _0x439d6d;};return a89_0x4cd2();}function a89_0x134f(_0x217c49,_0x4f895e){_0x217c49=_0x217c49-0x11c;const _0x4cd2b5=a89_0x4cd2();let _0x134fe3=_0x4cd2b5[_0x217c49];return _0x134fe3;}import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{DB_TABLE_PAGE_SIZE,getAllDbTableDiff,summarizeDbTableDiff}from'../../commands/db/table-diff-shared.js';export const dbDiff={'service':'db','command':a89_0x248222(0x122),'description':'Compare\x20datasets\x20with\x20physical\x20database\x20tables\x20and\x20show\x20schema\x20drift','risk':a89_0x248222(0x11e),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a89_0x248222(0x12b),'type':a89_0x248222(0x132),'description':'Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)'},{'name':'page','type':a89_0x248222(0x13c),'description':'Page\x20index\x20(1-based)','default':0x1},{'name':a89_0x248222(0x138),'type':a89_0x248222(0x13c),'description':a89_0x248222(0x134),'default':0x14},{'name':a89_0x248222(0x12e),'type':a89_0x248222(0x12f),'description':a89_0x248222(0x129)}],async 'execute'(_0x30efc5){const _0x19e1af=a89_0x248222,_0x267d24=_0x30efc5[_0x19e1af(0x144)]('id'),_0x4b9b37=_0x30efc5[_0x19e1af(0x139)](_0x19e1af(0x12e)),_0x31cf20=_0x4b9b37?0x1:_0x30efc5['num'](_0x19e1af(0x126),0x1)||0x1,_0x14c9a5=_0x4b9b37?DB_TABLE_PAGE_SIZE:_0x30efc5[_0x19e1af(0x144)]('pagesize',0x14)||0x14,_0x53b8f9=_0x30efc5[_0x19e1af(0x12d)](_0x19e1af(0x12b))||undefined,_0x491901=_0x4b9b37?await getAllDbTableDiff(getDbTableDiff,_0x30efc5[_0x19e1af(0x133)],_0x267d24,_0x53b8f9):await getDbTableDiff(_0x30efc5[_0x19e1af(0x133)],_0x267d24,{'pageIndex':_0x31cf20,'pageSize':_0x14c9a5,'tableName':_0x53b8f9}),_0x342d55=_0x491901[_0x19e1af(0x131)],_0x5680ad=summarizeDbTableDiff(_0x342d55),_0x454d8c=_0x342d55[_0x19e1af(0x13b)](_0x2e8bc5=>_0x2e8bc5[_0x19e1af(0x137)]===_0x19e1af(0x13a)||_0x2e8bc5[_0x19e1af(0x137)]===_0x19e1af(0x124))[_0x19e1af(0x11f)](_0x3f6a2b=>_0x3f6a2b[_0x19e1af(0x127)]),_0x5c3292=_0x342d55[_0x19e1af(0x13b)](_0x413124=>_0x413124['diffType']===_0x19e1af(0x11d))[_0x19e1af(0x11f)](_0x2948ea=>_0x2948ea[_0x19e1af(0x127)]),_0x539139=_0x342d55[_0x19e1af(0x13b)](_0x332fce=>_0x332fce[_0x19e1af(0x137)]===_0x19e1af(0x124))[_0x19e1af(0x11f)](_0x235557=>({'tableName':_0x235557[_0x19e1af(0x127)],'addedColumns':_0x235557[_0x19e1af(0x123)]?.['addedColumns']??[],'deletedColumns':_0x235557['fieldDiff']?.[_0x19e1af(0x125)]??[],'modifiedColumns':_0x235557['fieldDiff']?.['modifiedColumns']??[]}));return{'ok':!![],'data':{'dbLinkId':_0x267d24,'page':_0x31cf20,'pageSize':_0x14c9a5,'totalCount':_0x491901[_0x19e1af(0x135)],...typeof _0x491901[_0x19e1af(0x120)]===_0x19e1af(0x13c)?{'physicalTableCount':_0x491901[_0x19e1af(0x120)]}:{},...typeof _0x491901[_0x19e1af(0x13f)]===_0x19e1af(0x13c)?{'datasetTableCount':_0x491901[_0x19e1af(0x13f)]}:{},..._0x491901[_0x19e1af(0x141)]?{'summary':_0x491901[_0x19e1af(0x141)]}:{},'summaryByType':_0x5680ad,'toAnalyzeTables':_0x454d8c,'deletedTables':_0x5c3292,'modifiedFieldDiffs':_0x539139,'tables':_0x342d55},'message':_0x342d55[_0x19e1af(0x11c)]+'\x20changed\x20table\x20row(s),\x20total\x20'+_0x491901[_0x19e1af(0x135)]+_0x19e1af(0x12c)+_0x267d24+')'};}};
1
+ const a89_0x241722=a89_0xcd61;(function(_0x54ecd4,_0x48ef17){const _0x58fb85=a89_0xcd61,_0x2bfe9f=_0x54ecd4();while(!![]){try{const _0x46512f=parseInt(_0x58fb85(0x1c8))/0x1*(parseInt(_0x58fb85(0x1d6))/0x2)+-parseInt(_0x58fb85(0x1c3))/0x3*(-parseInt(_0x58fb85(0x1e4))/0x4)+parseInt(_0x58fb85(0x1ca))/0x5+-parseInt(_0x58fb85(0x1d7))/0x6*(parseInt(_0x58fb85(0x1cc))/0x7)+parseInt(_0x58fb85(0x1d8))/0x8*(-parseInt(_0x58fb85(0x1e9))/0x9)+parseInt(_0x58fb85(0x1c5))/0xa*(parseInt(_0x58fb85(0x1e1))/0xb)+-parseInt(_0x58fb85(0x1e7))/0xc;if(_0x46512f===_0x48ef17)break;else _0x2bfe9f['push'](_0x2bfe9f['shift']());}catch(_0x3074d3){_0x2bfe9f['push'](_0x2bfe9f['shift']());}}}(a89_0x4cec,0xaf01b));import{getDbTableDiff}from'../../core/api-client.js';function a89_0xcd61(_0x352bde,_0x27b522){_0x352bde=_0x352bde-0x1bf;const _0x4cec40=a89_0x4cec();let _0xcd6159=_0x4cec40[_0x352bde];return _0xcd6159;}import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{DB_TABLE_PAGE_SIZE,getAllDbTableDiff,summarizeDbTableDiff}from'../../commands/db/table-diff-shared.js';function a89_0x4cec(){const _0x27ebf4=['136rrMTQh','tableList','read','24668760raxLst','summary','630tfeHnY','filter','diff','deletedColumns','page','83301ksczVZ','Fetch\x20and\x20aggregate\x20every\x20page\x20(overrides\x20--page\x20and\x20--pagesize)','82060NOXyxD','all','diffType','72907lZFaWQ','map','3618520RPtBFl','\x20changed\x20table\x20row(s),\x20total\x20','1715357CipRkK','\x20(db\x20link\x20','tableName','Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)','num','Page\x20size','string','number','length','pagesize','32cWgUIW','18GiuzDw','22448HGCAMc','Compare\x20datasets\x20with\x20physical\x20database\x20tables\x20and\x20show\x20schema\x20drift','modifiedColumns','physicalTableCount','datasetTableCount','boolean','appCode','table','MODIFIED_TABLE','1166nMWfpn','fieldDiff','DELETED_TABLE'];a89_0x4cec=function(){return _0x27ebf4;};return a89_0x4cec();}export const dbDiff={'service':'db','command':a89_0x241722(0x1c0),'description':a89_0x241722(0x1d9),'risk':a89_0x241722(0x1e6),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':'table','type':a89_0x241722(0x1d2),'description':a89_0x241722(0x1cf)},{'name':'page','type':a89_0x241722(0x1d3),'description':'Page\x20index\x20(1-based)','default':0x1},{'name':a89_0x241722(0x1d5),'type':'number','description':a89_0x241722(0x1d1),'default':0x14},{'name':a89_0x241722(0x1c6),'type':a89_0x241722(0x1dd),'description':a89_0x241722(0x1c4)}],async 'execute'(_0x58f157){const _0xbb15f9=a89_0x241722,_0x5b7500=_0x58f157[_0xbb15f9(0x1d0)]('id'),_0x1d09b6=_0x58f157['bool']('all'),_0x248700=_0x1d09b6?0x1:_0x58f157[_0xbb15f9(0x1d0)](_0xbb15f9(0x1c2),0x1)||0x1,_0x2a3c2e=_0x1d09b6?DB_TABLE_PAGE_SIZE:_0x58f157[_0xbb15f9(0x1d0)](_0xbb15f9(0x1d5),0x14)||0x14,_0x4e8006=_0x58f157['str'](_0xbb15f9(0x1df))||undefined,_0x29eee1=_0x1d09b6?await getAllDbTableDiff(getDbTableDiff,_0x58f157[_0xbb15f9(0x1de)],_0x5b7500,_0x4e8006):await getDbTableDiff(_0x58f157[_0xbb15f9(0x1de)],_0x5b7500,{'pageIndex':_0x248700,'pageSize':_0x2a3c2e,'tableName':_0x4e8006}),_0x305534=_0x29eee1[_0xbb15f9(0x1e5)],_0x151fbf=summarizeDbTableDiff(_0x305534),_0xe7cbfd=_0x305534['filter'](_0x16fd96=>_0x16fd96[_0xbb15f9(0x1c7)]==='NEW_TABLE'||_0x16fd96[_0xbb15f9(0x1c7)]===_0xbb15f9(0x1e0))['map'](_0x2060a3=>_0x2060a3[_0xbb15f9(0x1ce)]),_0x425465=_0x305534[_0xbb15f9(0x1bf)](_0x1cc486=>_0x1cc486[_0xbb15f9(0x1c7)]===_0xbb15f9(0x1e3))[_0xbb15f9(0x1c9)](_0x552fc7=>_0x552fc7[_0xbb15f9(0x1ce)]),_0x3f8eaa=_0x305534[_0xbb15f9(0x1bf)](_0x2c6a1a=>_0x2c6a1a[_0xbb15f9(0x1c7)]===_0xbb15f9(0x1e0))[_0xbb15f9(0x1c9)](_0x47bf0d=>({'tableName':_0x47bf0d[_0xbb15f9(0x1ce)],'addedColumns':_0x47bf0d[_0xbb15f9(0x1e2)]?.['addedColumns']??[],'deletedColumns':_0x47bf0d[_0xbb15f9(0x1e2)]?.[_0xbb15f9(0x1c1)]??[],'modifiedColumns':_0x47bf0d[_0xbb15f9(0x1e2)]?.[_0xbb15f9(0x1da)]??[]}));return{'ok':!![],'data':{'dbLinkId':_0x5b7500,'page':_0x248700,'pageSize':_0x2a3c2e,'totalCount':_0x29eee1['totalCount'],...typeof _0x29eee1['physicalTableCount']===_0xbb15f9(0x1d3)?{'physicalTableCount':_0x29eee1[_0xbb15f9(0x1db)]}:{},...typeof _0x29eee1['datasetTableCount']===_0xbb15f9(0x1d3)?{'datasetTableCount':_0x29eee1[_0xbb15f9(0x1dc)]}:{},..._0x29eee1[_0xbb15f9(0x1e8)]?{'summary':_0x29eee1[_0xbb15f9(0x1e8)]}:{},'summaryByType':_0x151fbf,'toAnalyzeTables':_0xe7cbfd,'deletedTables':_0x425465,'modifiedFieldDiffs':_0x3f8eaa,'tables':_0x305534},'message':_0x305534[_0xbb15f9(0x1d4)]+_0xbb15f9(0x1cb)+_0x29eee1['totalCount']+_0xbb15f9(0x1cd)+_0x5b7500+')'};}};
@@ -1 +1 @@
1
- function a90_0x4f1c(_0x14f3a8,_0x535846){_0x14f3a8=_0x14f3a8-0x1a1;const _0x157984=a90_0x1579();let _0x4f1cce=_0x157984[_0x14f3a8];return _0x4f1cce;}(function(_0x239a3b,_0x4cab13){const _0x41c0d8=a90_0x4f1c,_0x488930=_0x239a3b();while(!![]){try{const _0x290b9b=-parseInt(_0x41c0d8(0x1a3))/0x1+-parseInt(_0x41c0d8(0x1a9))/0x2+parseInt(_0x41c0d8(0x1ab))/0x3+parseInt(_0x41c0d8(0x1a4))/0x4*(-parseInt(_0x41c0d8(0x1a7))/0x5)+-parseInt(_0x41c0d8(0x1aa))/0x6*(-parseInt(_0x41c0d8(0x1a1))/0x7)+-parseInt(_0x41c0d8(0x1a5))/0x8*(parseInt(_0x41c0d8(0x1a6))/0x9)+parseInt(_0x41c0d8(0x1a8))/0xa*(parseInt(_0x41c0d8(0x1a2))/0xb);if(_0x290b9b===_0x4cab13)break;else _0x488930['push'](_0x488930['shift']());}catch(_0x29e400){_0x488930['push'](_0x488930['shift']());}}}(a90_0x1579,0x3bfc7));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';import{dbDiffRefreshStart}from'../../commands/db/diff-refresh-start.js';import{dbDiffRefreshStatus}from'../../commands/db/diff-refresh-status.js';export const dbDefinitions=[dbList,dbDetail,dbCreate,dbUpdate,dbDelete,dbTest,dbAnalyzeBatchPlan,dbAnalyzeStart,dbAnalyzeCancel,dbAnalyzeStatus,dbTables,dbDiff,dbDiffRefreshStart,dbDiffRefreshStatus];function a90_0x1579(){const _0x1915d2=['1380OGUCKn','2580RJYZbR','722484CARCLx','102yfXaEc','1177374PVfpxY','41783kgsWRx','17765yCstfk','59049gGHdcZ','756fpOGLq','1539544mlHTFv','9HeUwXr'];a90_0x1579=function(){return _0x1915d2;};return a90_0x1579();}
1
+ (function(_0x561d66,_0x63ce3e){const _0x3672ff=a90_0x2209,_0x39a1b3=_0x561d66();while(!![]){try{const _0x29ec64=parseInt(_0x3672ff(0x1d5))/0x1*(parseInt(_0x3672ff(0x1ce))/0x2)+-parseInt(_0x3672ff(0x1d0))/0x3+-parseInt(_0x3672ff(0x1cf))/0x4*(-parseInt(_0x3672ff(0x1d1))/0x5)+-parseInt(_0x3672ff(0x1d3))/0x6+parseInt(_0x3672ff(0x1d2))/0x7*(-parseInt(_0x3672ff(0x1d6))/0x8)+-parseInt(_0x3672ff(0x1d4))/0x9*(parseInt(_0x3672ff(0x1d7))/0xa)+-parseInt(_0x3672ff(0x1cc))/0xb*(-parseInt(_0x3672ff(0x1cd))/0xc);if(_0x29ec64===_0x63ce3e)break;else _0x39a1b3['push'](_0x39a1b3['shift']());}catch(_0x50f14b){_0x39a1b3['push'](_0x39a1b3['shift']());}}}(a90_0xac67,0xa9739));import{dbList}from'../../commands/db/list.js';import{dbDetail}from'../../commands/db/detail.js';function a90_0xac67(){const _0x15b0d4=['4136805mlAaaS','145Dypsob','13951TPXoAy','2790144IejXpA','9YshZkl','109WFmkwn','2864RpFcge','5787510WKsdsz','3515347XmEPpv','72bxgJKa','22362CurgQc','95736ZSKuxj'];a90_0xac67=function(){return _0x15b0d4;};return a90_0xac67();}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';function a90_0x2209(_0x1a41f6,_0x4c2f32){_0x1a41f6=_0x1a41f6-0x1cc;const _0xac6750=a90_0xac67();let _0x22092d=_0xac6750[_0x1a41f6];return _0x22092d;}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';import{dbDiffRefreshStart}from'../../commands/db/diff-refresh-start.js';import{dbDiffRefreshStatus}from'../../commands/db/diff-refresh-status.js';export const dbDefinitions=[dbList,dbDetail,dbCreate,dbUpdate,dbDelete,dbTest,dbAnalyzeBatchPlan,dbAnalyzeStart,dbAnalyzeCancel,dbAnalyzeStatus,dbTables,dbDiff,dbDiffRefreshStart,dbDiffRefreshStatus];
@@ -1 +1 @@
1
- const a91_0x414fbf=a91_0x6add;(function(_0x2e3ced,_0x24c052){const _0x5eb10d=a91_0x6add,_0x7ae283=_0x2e3ced();while(!![]){try{const _0x11cd4e=-parseInt(_0x5eb10d(0xac))/0x1+-parseInt(_0x5eb10d(0xa4))/0x2*(parseInt(_0x5eb10d(0xb3))/0x3)+-parseInt(_0x5eb10d(0x9f))/0x4*(-parseInt(_0x5eb10d(0xb6))/0x5)+parseInt(_0x5eb10d(0xb2))/0x6+-parseInt(_0x5eb10d(0xb0))/0x7+-parseInt(_0x5eb10d(0xb4))/0x8+parseInt(_0x5eb10d(0xb5))/0x9;if(_0x11cd4e===_0x24c052)break;else _0x7ae283['push'](_0x7ae283['shift']());}catch(_0x140ffe){_0x7ae283['push'](_0x7ae283['shift']());}}}(a91_0xcb8b,0x96cc7));import{listDatasets,listDbLinks}from'../../core/api-client.js';function a91_0x6add(_0x75d18f,_0x19e06d){_0x75d18f=_0x75d18f-0x9f;const _0xcb8bc=a91_0xcb8b();let _0x6add03=_0xcb8bc[_0x75d18f];return _0x6add03;}function a91_0xcb8b(){const _0x2e37c3=['DB_TABLE','1233431qICpTV','Page\x20index\x20(1-based)','datasetDependency','list','4228763MKVMND','length','237318rDAyiT','2685wrfeSs','4804648RRMHAX','35474805wdQLkP','197020ZySPzp','4BvomzZ','map','appCode','num','read','2156rSblZw','page','all','\x20database\x20connection(s)','Page\x20size','number','pagesize'];a91_0xcb8b=function(){return _0x2e37c3;};return a91_0xcb8b();}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{buildDbDatasetDependency,sanitizeDbLinkForOutput}from'../../commands/db/shared.js';export const dbList={'service':'db','command':a91_0x414fbf(0xaf),'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':a91_0x414fbf(0xa3),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a91_0x414fbf(0xa5),'type':a91_0x414fbf(0xa9),'description':a91_0x414fbf(0xad),'default':0x1},{'name':a91_0x414fbf(0xaa),'type':a91_0x414fbf(0xa9),'description':a91_0x414fbf(0xa8),'default':0x64}],async 'execute'(_0x3a7a43){const _0x17d62d=a91_0x414fbf,_0x21899b=_0x3a7a43[_0x17d62d(0xa2)](_0x17d62d(0xa5),0x1)||0x1,_0x6fc319=_0x3a7a43[_0x17d62d(0xa2)]('pagesize',0x64)||0x64,[{items:_0x5c4991,paging:_0x418dae},_0x484ea6]=await Promise[_0x17d62d(0xa6)]([listDbLinks(_0x3a7a43['appCode'],{'currentPage':_0x21899b,'pageSize':_0x6fc319}),listDatasets(_0x3a7a43[_0x17d62d(0xa1)],{'source':_0x17d62d(0xab)})]),_0x2f1a51=_0x5c4991[_0x17d62d(0xa0)](_0x3e12fb=>({...sanitizeDbLinkForOutput(_0x3e12fb),'datasetDependency':buildDbDatasetDependency(_0x3e12fb,_0x484ea6)[_0x17d62d(0xae)]})),_0x3709f3=_0x418dae?_0x418dae:{'currentPage':_0x21899b,'pageSize':_0x6fc319,'rowsOnPage':_0x2f1a51[_0x17d62d(0xb1)],'totalCount':null,'note':'Server\x20omitted\x20paging\x20metadata;\x20totalCount\x20is\x20unknown\x20—\x20rowsOnPage\x20is\x20this\x20page\x20only'};return{'ok':!![],'data':{'connections':_0x2f1a51,'paging':_0x3709f3},'message':'Found\x20'+_0x2f1a51[_0x17d62d(0xb1)]+_0x17d62d(0xa7)};}};
1
+ const a91_0xa2e786=a91_0x27d6;(function(_0x5b03b6,_0x58dc2b){const _0x2b21c0=a91_0x27d6,_0xd48a72=_0x5b03b6();while(!![]){try{const _0x24d218=parseInt(_0x2b21c0(0xaf))/0x1*(parseInt(_0x2b21c0(0xbb))/0x2)+parseInt(_0x2b21c0(0xb0))/0x3+-parseInt(_0x2b21c0(0xa3))/0x4+-parseInt(_0x2b21c0(0xa2))/0x5*(parseInt(_0x2b21c0(0xae))/0x6)+parseInt(_0x2b21c0(0xb6))/0x7*(parseInt(_0x2b21c0(0xac))/0x8)+parseInt(_0x2b21c0(0xa8))/0x9+-parseInt(_0x2b21c0(0xa9))/0xa*(parseInt(_0x2b21c0(0xb9))/0xb);if(_0x24d218===_0x58dc2b)break;else _0xd48a72['push'](_0xd48a72['shift']());}catch(_0x406737){_0xd48a72['push'](_0xd48a72['shift']());}}}(a91_0x1f6c,0xec923));function a91_0x27d6(_0x58408f,_0x56643b){_0x58408f=_0x58408f-0xa2;const _0x1f6c64=a91_0x1f6c();let _0x27d6af=_0x1f6c64[_0x58408f];return _0x27d6af;}import{listDatasets,listDbLinks}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{buildDbDatasetDependency,sanitizeDbLinkForOutput}from'../../commands/db/shared.js';export const dbList={'service':'db','command':a91_0xa2e786(0xb8),'description':a91_0xa2e786(0xa5),'risk':a91_0xa2e786(0xb2),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a91_0xa2e786(0xaa),'type':a91_0xa2e786(0xba),'description':a91_0xa2e786(0xb1),'default':0x1},{'name':a91_0xa2e786(0xb4),'type':a91_0xa2e786(0xba),'description':a91_0xa2e786(0xb3),'default':0x64}],async 'execute'(_0x5ae473){const _0x17be57=a91_0xa2e786,_0x412299=_0x5ae473[_0x17be57(0xa6)](_0x17be57(0xaa),0x1)||0x1,_0x37ccc1=_0x5ae473['num']('pagesize',0x64)||0x64,[{items:_0x12542b,paging:_0x2e483b},_0x4baa66]=await Promise['all']([listDbLinks(_0x5ae473[_0x17be57(0xab)],{'currentPage':_0x412299,'pageSize':_0x37ccc1}),listDatasets(_0x5ae473[_0x17be57(0xab)],{'source':'DB_TABLE'})]),_0x55bae4=_0x12542b[_0x17be57(0xa7)](_0x11f0b6=>({...sanitizeDbLinkForOutput(_0x11f0b6),'datasetDependency':buildDbDatasetDependency(_0x11f0b6,_0x4baa66)[_0x17be57(0xa4)]})),_0x34ccbe=_0x2e483b?_0x2e483b:{'currentPage':_0x412299,'pageSize':_0x37ccc1,'rowsOnPage':_0x55bae4[_0x17be57(0xb5)],'totalCount':null,'note':_0x17be57(0xad)};return{'ok':!![],'data':{'connections':_0x55bae4,'paging':_0x34ccbe},'message':'Found\x20'+_0x55bae4[_0x17be57(0xb5)]+_0x17be57(0xb7)};}};function a91_0x1f6c(){const _0x23b63c=['13687ZdvDIx','1513125txxlQp','Page\x20index\x20(1-based)','read','Page\x20size','pagesize','length','182833XoZuLd','\x20database\x20connection(s)','list','11oOiLBd','number','118NAftTq','3949805vOkumA','4280472QFusWM','datasetDependency','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','num','map','5864076lAMXHa','224440IQXTEe','page','appCode','272QfHEde','Server\x20omitted\x20paging\x20metadata;\x20totalCount\x20is\x20unknown\x20—\x20rowsOnPage\x20is\x20this\x20page\x20only','6rWjsDY'];a91_0x1f6c=function(){return _0x23b63c;};return a91_0x1f6c();}
@@ -1 +1 @@
1
- (function(_0x5c35fe,_0x8e788e){const _0x25477d=a92_0x32cb,_0x5e1f7b=_0x5c35fe();while(!![]){try{const _0x2851c2=parseInt(_0x25477d(0x1a9))/0x1+-parseInt(_0x25477d(0x19c))/0x2+-parseInt(_0x25477d(0x1ac))/0x3*(-parseInt(_0x25477d(0x1a4))/0x4)+parseInt(_0x25477d(0x19e))/0x5*(parseInt(_0x25477d(0x1b1))/0x6)+parseInt(_0x25477d(0x1a0))/0x7+parseInt(_0x25477d(0x199))/0x8+parseInt(_0x25477d(0x1aa))/0x9*(-parseInt(_0x25477d(0x1b7))/0xa);if(_0x2851c2===_0x8e788e)break;else _0x5e1f7b['push'](_0x5e1f7b['shift']());}catch(_0x2fee24){_0x5e1f7b['push'](_0x5e1f7b['shift']());}}}(a92_0x5668,0xc9413));function a92_0x32cb(_0x253bd6,_0x37be1a){_0x253bd6=_0x253bd6-0x197;const _0x5668a5=a92_0x5668();let _0x32cbc7=_0x5668a5[_0x253bd6];return _0x32cbc7;}import{testDbLinkConfigConnect}from'../../core/api-client.js';import{getAppBaseUrl}from'../../constant/domain.js';import{CliErrors}from'../../errors.js';function a92_0x5668(){const _0x290004=['isFinite','Database\x20connection\x20preflight\x20failed.','filter','6171528LQGiqh','The\x20configuration\x20was\x20not\x20saved.\x20Verify\x20the\x20host,\x20credentials,\x20database\x20name,\x20network,\x20and\x20allowlist,\x20or\x20explicitly\x20pass\x20--skip-connection-test.','test','134816umSgFa','hasAvailableDo','16330cDrIUX','credential','2067009fYMnlO','toLowerCase','dbpassword','apiError','688468XigBoe','authorization','accesskey','keys','length','101398KleqEu','30155886bcwMkF','dbtableConfig','27tfCYrq','map','/data/database','jdbcurl','includes','2802boiZCG','privatekey','dbId','number','[redacted]','passwd','10LMGedv','connectionstring','token','/data/er?dbId=','trim'];a92_0x5668=function(){return _0x290004;};return a92_0x5668();}function shouldRedactKey(_0x9438e7){const _0x16a6c5=a92_0x32cb,_0x4c654d=_0x9438e7[_0x16a6c5(0x1a1)]();if(_0x4c654d==='password'||_0x4c654d===_0x16a6c5(0x1b6)||_0x4c654d===_0x16a6c5(0x1a2))return!![];if(_0x4c654d[_0x16a6c5(0x1b0)]('secret')||_0x4c654d[_0x16a6c5(0x1b0)](_0x16a6c5(0x1b9))||_0x4c654d['includes'](_0x16a6c5(0x19f)))return!![];if(_0x4c654d['includes'](_0x16a6c5(0x1b2))||_0x4c654d[_0x16a6c5(0x1b0)](_0x16a6c5(0x1a6)))return!![];if(_0x4c654d===_0x16a6c5(0x1a5)||_0x4c654d===_0x16a6c5(0x1b8)||_0x4c654d===_0x16a6c5(0x1af))return!![];return![];}export function sanitizeDbLinkForOutput(_0x38c57c){const _0x5212af=a92_0x32cb,_0x8f685e={..._0x38c57c};delete _0x8f685e[_0x5212af(0x19d)];for(const _0xa457f7 of Object[_0x5212af(0x1a7)](_0x8f685e)){if(!shouldRedactKey(_0xa457f7))continue;const _0x8cc855=_0x8f685e[_0xa457f7];_0x8cc855!=null&&String(_0x8cc855)[_0x5212af(0x1a8)]>0x0&&(_0x8f685e[_0xa457f7]=_0x5212af(0x1b5));}return _0x8f685e;}export function sanitizeDbLinkList(_0x42c3e){return _0x42c3e['map'](_0x327a48=>sanitizeDbLinkForOutput(_0x327a48));}export function buildDbDatasetDependency(_0x31d7b4,_0x3e13e4){const _0x4d5dfc=a92_0x32cb,_0x82b81=_0x3e13e4[_0x4d5dfc(0x198)](_0x324e38=>Number(_0x324e38[_0x4d5dfc(0x1ab)]?.[_0x4d5dfc(0x1b3)])===Number(_0x31d7b4['id']))[_0x4d5dfc(0x1ad)](_0x4336fc=>({'id':_0x4336fc['id'],'code':_0x4336fc['code'],'name':_0x4336fc['name'],..._0x4336fc['dbtableConfig']?.['tableName']?{'tableName':_0x4336fc[_0x4d5dfc(0x1ab)]['tableName']}:{}}));return{'datasetDependency':{'hasDependencies':_0x82b81[_0x4d5dfc(0x1a8)]>0x0,'activeDatasetCount':_0x82b81[_0x4d5dfc(0x1a8)]},'datasets':_0x82b81};}export async function assertDbLinkConnectionPreflight(_0x377751){const _0x370f02=a92_0x32cb,_0x1d16c8=await testDbLinkConfigConnect(_0x377751);if(_0x1d16c8!==!![])throw CliErrors[_0x370f02(0x1a3)](_0x370f02(0x197),_0x370f02(0x19a));}const DB_URL_PATTERN=/^[^\s:]+(?::\d+)?$/;export function validateDbUrl(_0x1771b1){const _0xbadfd4=a92_0x32cb,_0x331ad7=_0x1771b1[_0xbadfd4(0x1bb)]();if(!_0x331ad7)return![];return DB_URL_PATTERN[_0xbadfd4(0x19b)](_0x331ad7);}export function buildDbPageLinks(_0x1ef959,_0xaa4688){const _0x4f9c2e=a92_0x32cb,_0x18198b=_0x1ef959?.['trim']();if(!_0x18198b)return undefined;const _0x10c282=typeof _0xaa4688===_0x4f9c2e(0x1b4)?String(_0xaa4688):String(_0xaa4688??'')[_0x4f9c2e(0x1bb)]();if(!_0x10c282)return undefined;const _0x38b5ca=Number(_0x10c282);if(!Number[_0x4f9c2e(0x1bc)](_0x38b5ca)||_0x38b5ca<=0x0)return undefined;const _0x5f4eea=getAppBaseUrl(_0x18198b),_0xfeaccb=encodeURIComponent(String(_0x38b5ca));return{'databasePage':_0x5f4eea+_0x4f9c2e(0x1ae),'erPage':_0x5f4eea+_0x4f9c2e(0x1ba)+_0xfeaccb};}
1
+ (function(_0x1e6234,_0x57568e){const _0x254134=a92_0x4659,_0x34f768=_0x1e6234();while(!![]){try{const _0x722fa4=parseInt(_0x254134(0x184))/0x1*(-parseInt(_0x254134(0x17e))/0x2)+parseInt(_0x254134(0x181))/0x3+-parseInt(_0x254134(0x19c))/0x4*(parseInt(_0x254134(0x18f))/0x5)+-parseInt(_0x254134(0x17b))/0x6+-parseInt(_0x254134(0x19d))/0x7*(parseInt(_0x254134(0x18b))/0x8)+parseInt(_0x254134(0x197))/0x9+parseInt(_0x254134(0x191))/0xa;if(_0x722fa4===_0x57568e)break;else _0x34f768['push'](_0x34f768['shift']());}catch(_0x184009){_0x34f768['push'](_0x34f768['shift']());}}}(a92_0x4229,0xa193a));function a92_0x4659(_0x213b9f,_0x839249){_0x213b9f=_0x213b9f-0x178;const _0x422958=a92_0x4229();let _0x465903=_0x422958[_0x213b9f];return _0x465903;}import{testDbLinkConfigConnect}from'../../core/api-client.js';function a92_0x4229(){const _0xbd0f85=['name','1377968RaDcEn','7MzPKnB','length','secret','apiError','4806894vvgQyW','trim','authorization','38838gBGMzK','jdbcurl','accesskey','817215pQPFOj','isFinite','The\x20configuration\x20was\x20not\x20saved.\x20Verify\x20the\x20host,\x20credentials,\x20database\x20name,\x20network,\x20and\x20allowlist,\x20or\x20explicitly\x20pass\x20--skip-connection-test.','3mxxvkA','hasAvailableDo','password','toLowerCase','filter','test','Database\x20connection\x20preflight\x20failed.','2394488sxmdyF','connectionstring','keys','/data/database','5XhYcNc','[redacted]','14136690qIutgG','includes','passwd','credential','dbId','map','4310577KpMZgC','privatekey','dbtableConfig','token'];a92_0x4229=function(){return _0xbd0f85;};return a92_0x4229();}import{getAppBaseUrl}from'../../constant/domain.js';import{CliErrors}from'../../errors.js';function shouldRedactKey(_0x4ef137){const _0x29e3ad=a92_0x4659,_0x39c048=_0x4ef137[_0x29e3ad(0x187)]();if(_0x39c048===_0x29e3ad(0x186)||_0x39c048===_0x29e3ad(0x193)||_0x39c048==='dbpassword')return!![];if(_0x39c048[_0x29e3ad(0x192)](_0x29e3ad(0x179))||_0x39c048[_0x29e3ad(0x192)](_0x29e3ad(0x19a))||_0x39c048[_0x29e3ad(0x192)](_0x29e3ad(0x194)))return!![];if(_0x39c048[_0x29e3ad(0x192)](_0x29e3ad(0x198))||_0x39c048[_0x29e3ad(0x192)](_0x29e3ad(0x180)))return!![];if(_0x39c048===_0x29e3ad(0x17d)||_0x39c048===_0x29e3ad(0x18c)||_0x39c048===_0x29e3ad(0x17f))return!![];return![];}export function sanitizeDbLinkForOutput(_0x1e1c1f){const _0x2782d9=a92_0x4659,_0x60d0c4={..._0x1e1c1f};delete _0x60d0c4[_0x2782d9(0x185)];for(const _0x1862a7 of Object[_0x2782d9(0x18d)](_0x60d0c4)){if(!shouldRedactKey(_0x1862a7))continue;const _0x122d46=_0x60d0c4[_0x1862a7];_0x122d46!=null&&String(_0x122d46)[_0x2782d9(0x178)]>0x0&&(_0x60d0c4[_0x1862a7]=_0x2782d9(0x190));}return _0x60d0c4;}export function sanitizeDbLinkList(_0x686bdf){const _0x53d853=a92_0x4659;return _0x686bdf[_0x53d853(0x196)](_0x27dfb4=>sanitizeDbLinkForOutput(_0x27dfb4));}export function buildDbDatasetDependency(_0x13dbaa,_0x1e02c1){const _0x3170e4=a92_0x4659,_0xdd7dce=_0x1e02c1[_0x3170e4(0x188)](_0x3835c5=>Number(_0x3835c5[_0x3170e4(0x199)]?.[_0x3170e4(0x195)])===Number(_0x13dbaa['id']))[_0x3170e4(0x196)](_0x4d2c85=>({'id':_0x4d2c85['id'],'code':_0x4d2c85['code'],'name':_0x4d2c85[_0x3170e4(0x19b)],..._0x4d2c85[_0x3170e4(0x199)]?.['tableName']?{'tableName':_0x4d2c85[_0x3170e4(0x199)]['tableName']}:{}}));return{'datasetDependency':{'hasDependencies':_0xdd7dce[_0x3170e4(0x178)]>0x0,'activeDatasetCount':_0xdd7dce['length']},'datasets':_0xdd7dce};}export async function assertDbLinkConnectionPreflight(_0x33da61){const _0x3f5aac=a92_0x4659,_0x3e9979=await testDbLinkConfigConnect(_0x33da61);if(_0x3e9979!==!![])throw CliErrors[_0x3f5aac(0x17a)](_0x3f5aac(0x18a),_0x3f5aac(0x183));}const DB_URL_PATTERN=/^[^\s:]+(?::\d+)?$/;export function validateDbUrl(_0x3bb9a6){const _0x3748d1=a92_0x4659,_0x512d68=_0x3bb9a6[_0x3748d1(0x17c)]();if(!_0x512d68)return![];return DB_URL_PATTERN[_0x3748d1(0x189)](_0x512d68);}export function buildDbPageLinks(_0x3dbdd0,_0x2c19c5){const _0xeb34df=a92_0x4659,_0x51b630=_0x3dbdd0?.[_0xeb34df(0x17c)]();if(!_0x51b630)return undefined;const _0x12cf22=typeof _0x2c19c5==='number'?String(_0x2c19c5):String(_0x2c19c5??'')[_0xeb34df(0x17c)]();if(!_0x12cf22)return undefined;const _0x4d71d3=Number(_0x12cf22);if(!Number[_0xeb34df(0x182)](_0x4d71d3)||_0x4d71d3<=0x0)return undefined;const _0x18984d=getAppBaseUrl(_0x51b630),_0x111944=encodeURIComponent(String(_0x4d71d3));return{'databasePage':_0x18984d+_0xeb34df(0x18e),'erPage':_0x18984d+'/data/er?dbId='+_0x111944};}
@@ -1 +1 @@
1
- const a93_0x5add0e=a93_0x2c99;(function(_0x2adf9a,_0x530cb8){const _0x10651c=a93_0x2c99,_0x1299a4=_0x2adf9a();while(!![]){try{const _0xc6d480=-parseInt(_0x10651c(0xa5))/0x1*(-parseInt(_0x10651c(0xaf))/0x2)+-parseInt(_0x10651c(0x99))/0x3*(parseInt(_0x10651c(0xad))/0x4)+-parseInt(_0x10651c(0xa2))/0x5+parseInt(_0x10651c(0x9f))/0x6+parseInt(_0x10651c(0xa1))/0x7*(-parseInt(_0x10651c(0x9c))/0x8)+-parseInt(_0x10651c(0xae))/0x9+parseInt(_0x10651c(0xaa))/0xa*(parseInt(_0x10651c(0xa3))/0xb);if(_0xc6d480===_0x530cb8)break;else _0x1299a4['push'](_0x1299a4['shift']());}catch(_0x4c9be4){_0x1299a4['push'](_0x1299a4['shift']());}}}(a93_0x4b05,0xec4a7));import{CliErrors}from'../../errors.js';function a93_0x2c99(_0x29121a,_0x1fc49d){_0x29121a=_0x29121a-0x96;const _0x4b0581=a93_0x4b05();let _0x2c99f5=_0x4b0581[_0x29121a];return _0x2c99f5;}export const DB_TABLE_PAGE_SIZE=0x64;export const DB_TABLE_DIFF_TYPES=[a93_0x5add0e(0x98),'MODIFIED_TABLE',a93_0x5add0e(0x9e),'ALREADY_ANALYZED'];function a93_0x4b05(){const _0x112e36=['size','250eanyZq','summary','totalCount','4FkyXwG','13365243FTbLkS','248316CVXCnv','filter','tableName','set','NEW_TABLE','517137LrOyvt','number','Incomplete\x20db\x20table\x20pagination:\x20collected\x20','15146272Kiisfz','physicalTableCount','DELETED_TABLE','2140938hYmHxK','tableList','7pdfPQh','3894030BUsmbf','1354386avuvde','datasetTableCount','15RgvisE','diffType','\x20of\x20','validation'];a93_0x4b05=function(){return _0x112e36;};return a93_0x4b05();}export function summarizeDbTableDiff(_0x475c31){const _0x29ecfb=a93_0x5add0e;return Object['fromEntries'](DB_TABLE_DIFF_TYPES['map'](_0x2288cd=>[_0x2288cd,_0x475c31[_0x29ecfb(0xb0)](_0x301a64=>_0x301a64[_0x29ecfb(0xa6)]===_0x2288cd)['length']]));}export async function getAllDbTableDiff(_0x2635f5,_0x4b4d42,_0x50fb4a,_0x28c788){const _0x14af2b=a93_0x5add0e,_0x3a7b5b=new Map();let _0x334b51=0x1,_0x562060=null;while(!![]){_0x562060=await _0x2635f5(_0x4b4d42,_0x50fb4a,{'pageIndex':_0x334b51,'pageSize':DB_TABLE_PAGE_SIZE,'tableName':_0x28c788});const _0x11336b=_0x3a7b5b[_0x14af2b(0xa9)];for(const _0x40d87b of _0x562060[_0x14af2b(0xa0)]){_0x3a7b5b[_0x14af2b(0x97)](_0x40d87b[_0x14af2b(0x96)],_0x40d87b);}if(_0x3a7b5b['size']>=_0x562060[_0x14af2b(0xac)])break;if(_0x562060[_0x14af2b(0xa0)]['length']===0x0||_0x3a7b5b[_0x14af2b(0xa9)]===_0x11336b)throw CliErrors[_0x14af2b(0xa8)](_0x14af2b(0x9b)+_0x3a7b5b[_0x14af2b(0xa9)]+_0x14af2b(0xa7)+_0x562060[_0x14af2b(0xac)]+'\x20row(s).');_0x334b51+=0x1;}return{'totalCount':_0x562060?.[_0x14af2b(0xac)]??0x0,...typeof _0x562060?.[_0x14af2b(0x9d)]===_0x14af2b(0x9a)?{'physicalTableCount':_0x562060[_0x14af2b(0x9d)]}:{},...typeof _0x562060?.[_0x14af2b(0xa4)]===_0x14af2b(0x9a)?{'datasetTableCount':_0x562060[_0x14af2b(0xa4)]}:{},..._0x562060?.[_0x14af2b(0xab)]?{'summary':_0x562060[_0x14af2b(0xab)]}:{},'tableList':[..._0x3a7b5b['values']()]};}
1
+ const a93_0x5c9243=a93_0x4ea6;(function(_0x54728c,_0x29087e){const _0x388a58=a93_0x4ea6,_0x3bd328=_0x54728c();while(!![]){try{const _0x1fc798=-parseInt(_0x388a58(0xce))/0x1*(-parseInt(_0x388a58(0xcf))/0x2)+-parseInt(_0x388a58(0xca))/0x3*(parseInt(_0x388a58(0xc9))/0x4)+-parseInt(_0x388a58(0xd3))/0x5*(parseInt(_0x388a58(0xd5))/0x6)+parseInt(_0x388a58(0xdb))/0x7+-parseInt(_0x388a58(0xd7))/0x8+parseInt(_0x388a58(0xd8))/0x9*(parseInt(_0x388a58(0xdc))/0xa)+parseInt(_0x388a58(0xdd))/0xb*(parseInt(_0x388a58(0xcb))/0xc);if(_0x1fc798===_0x29087e)break;else _0x3bd328['push'](_0x3bd328['shift']());}catch(_0x24ca2c){_0x3bd328['push'](_0x3bd328['shift']());}}}(a93_0x2730,0x3d5c4));function a93_0x4ea6(_0x283afd,_0x3abe25){_0x283afd=_0x283afd-0xc9;const _0x2730b9=a93_0x2730();let _0x4ea65c=_0x2730b9[_0x283afd];return _0x4ea65c;}import{CliErrors}from'../../errors.js';export const DB_TABLE_PAGE_SIZE=0x64;export const DB_TABLE_DIFF_TYPES=['NEW_TABLE',a93_0x5c9243(0xd0),a93_0x5c9243(0xda),'ALREADY_ANALYZED'];export function summarizeDbTableDiff(_0x2f50f7){const _0x23398b=a93_0x5c9243;return Object[_0x23398b(0xd4)](DB_TABLE_DIFF_TYPES[_0x23398b(0xd6)](_0xd24a0e=>[_0xd24a0e,_0x2f50f7['filter'](_0x4489ff=>_0x4489ff['diffType']===_0xd24a0e)['length']]));}function a93_0x2730(){const _0x3c3cba=['129724MeEYpm','120zOCSFH','187xdsdUt','number','size','length','validation','\x20of\x20','4qpsCmW','1205319LDYIWP','359388KLPwgp','tableList','physicalTableCount','1wkUhBH','904258bTgNak','MODIFIED_TABLE','\x20row(s).','totalCount','5SqtQYh','fromEntries','2773266ipWGob','map','324816irvByY','132093XIGlUn','datasetTableCount','DELETED_TABLE'];a93_0x2730=function(){return _0x3c3cba;};return a93_0x2730();}export async function getAllDbTableDiff(_0x4f27c4,_0x43c9dc,_0x1a962c,_0x21bd77){const _0x785383=a93_0x5c9243,_0x1f35d5=new Map();let _0x523431=0x1,_0xfb0dde=null;while(!![]){_0xfb0dde=await _0x4f27c4(_0x43c9dc,_0x1a962c,{'pageIndex':_0x523431,'pageSize':DB_TABLE_PAGE_SIZE,'tableName':_0x21bd77});const _0x514744=_0x1f35d5[_0x785383(0xdf)];for(const _0x4bfd2c of _0xfb0dde['tableList']){_0x1f35d5['set'](_0x4bfd2c['tableName'],_0x4bfd2c);}if(_0x1f35d5[_0x785383(0xdf)]>=_0xfb0dde[_0x785383(0xd2)])break;if(_0xfb0dde[_0x785383(0xcc)][_0x785383(0xe0)]===0x0||_0x1f35d5[_0x785383(0xdf)]===_0x514744)throw CliErrors[_0x785383(0xe1)]('Incomplete\x20db\x20table\x20pagination:\x20collected\x20'+_0x1f35d5[_0x785383(0xdf)]+_0x785383(0xe2)+_0xfb0dde[_0x785383(0xd2)]+_0x785383(0xd1));_0x523431+=0x1;}return{'totalCount':_0xfb0dde?.[_0x785383(0xd2)]??0x0,...typeof _0xfb0dde?.[_0x785383(0xcd)]===_0x785383(0xde)?{'physicalTableCount':_0xfb0dde[_0x785383(0xcd)]}:{},...typeof _0xfb0dde?.[_0x785383(0xd9)]==='number'?{'datasetTableCount':_0xfb0dde[_0x785383(0xd9)]}:{},..._0xfb0dde?.['summary']?{'summary':_0xfb0dde['summary']}:{},'tableList':[..._0x1f35d5['values']()]};}
@@ -1 +1 @@
1
- function a94_0x5210(_0x2e4c5e,_0xa024f2){_0x2e4c5e=_0x2e4c5e-0x69;const _0x4bd57d=a94_0x4bd5();let _0x521059=_0x4bd57d[_0x2e4c5e];return _0x521059;}const a94_0x432cbe=a94_0x5210;(function(_0x4d8605,_0x229087){const _0x4d2272=a94_0x5210,_0x2112d5=_0x4d8605();while(!![]){try{const _0x253f87=parseInt(_0x4d2272(0x78))/0x1+parseInt(_0x4d2272(0x7d))/0x2*(parseInt(_0x4d2272(0x80))/0x3)+parseInt(_0x4d2272(0x6d))/0x4*(-parseInt(_0x4d2272(0x75))/0x5)+-parseInt(_0x4d2272(0x74))/0x6*(parseInt(_0x4d2272(0x79))/0x7)+-parseInt(_0x4d2272(0x73))/0x8*(parseInt(_0x4d2272(0x7f))/0x9)+-parseInt(_0x4d2272(0x6e))/0xa+-parseInt(_0x4d2272(0x7c))/0xb*(-parseInt(_0x4d2272(0x77))/0xc);if(_0x253f87===_0x229087)break;else _0x2112d5['push'](_0x2112d5['shift']());}catch(_0x31cb00){_0x2112d5['push'](_0x2112d5['shift']());}}}(a94_0x4bd5,0x2ed16));import{getDbTableComparisonPage}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{getAllDbTableDiff,summarizeDbTableDiff}from'../../commands/db/table-diff-shared.js';export const dbTables={'service':'db','command':'tables','description':a94_0x432cbe(0x72),'risk':'read','flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a94_0x432cbe(0x7b),'type':a94_0x432cbe(0x71),'description':a94_0x432cbe(0x82)}],async 'execute'(_0x29bbbd){const _0x55d62e=a94_0x432cbe,_0x424e32=_0x29bbbd[_0x55d62e(0x81)]('id'),_0x65ecf5=_0x29bbbd[_0x55d62e(0x7a)]('table')||undefined,_0x3d42c7=await getAllDbTableDiff(getDbTableComparisonPage,_0x29bbbd[_0x55d62e(0x6a)],_0x424e32,_0x65ecf5),_0x14330a=_0x3d42c7[_0x55d62e(0x76)];return{'ok':!![],'data':{'dbLinkId':_0x424e32,'totalCount':_0x3d42c7[_0x55d62e(0x6b)],...typeof _0x3d42c7[_0x55d62e(0x6f)]===_0x55d62e(0x7e)?{'physicalTableCount':_0x3d42c7[_0x55d62e(0x6f)]}:{},...typeof _0x3d42c7[_0x55d62e(0x70)]===_0x55d62e(0x7e)?{'datasetTableCount':_0x3d42c7[_0x55d62e(0x70)]}:{},..._0x3d42c7[_0x55d62e(0x69)]?{'summary':_0x3d42c7[_0x55d62e(0x69)]}:{},'summaryByType':summarizeDbTableDiff(_0x14330a),'tables':_0x14330a},'message':_0x14330a['length']+'\x20table\x20comparison\x20row(s),\x20total\x20'+_0x3d42c7['totalCount']+_0x55d62e(0x6c)+_0x424e32+')'};}};function a94_0x4bd5(){const _0x360d81=['num','Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)','summary','appCode','totalCount','\x20(db\x20link\x20','339524MMAaoJ','1131520NiNdzJ','physicalTableCount','datasetTableCount','string','List\x20all\x20database\x20table\x20comparison\x20rows\x20and\x20analysis\x20states','16syHbqn','6ttThRH','10CCMfgg','tableList','36FqrQia','92628pjLBeq','1048201AgcEAk','str','table','2288605elAffA','2UazdyI','number','430308JBUsRT','9762PQepJY'];a94_0x4bd5=function(){return _0x360d81;};return a94_0x4bd5();}
1
+ function a94_0x14a8(_0x45af9f,_0x922c82){_0x45af9f=_0x45af9f-0x1b9;const _0x4149f1=a94_0x4149();let _0x14a897=_0x4149f1[_0x45af9f];return _0x14a897;}function a94_0x4149(){const _0x1329ba=['num','totalCount','1772ohDMOG','Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)','11551056xggLDs','length','read','1185171nhEmaT','5665VBlnwY','physicalTableCount','150tBltxh','number','15824460kcJHIh','summary','90LJVWzR','\x20table\x20comparison\x20row(s),\x20total\x20','1311610OmxUkq','12ByJoEX','2671291bWqCPn','table','40332CkkPqI','datasetTableCount','tables','appCode','11bifqjf','List\x20all\x20database\x20table\x20comparison\x20rows\x20and\x20analysis\x20states'];a94_0x4149=function(){return _0x1329ba;};return a94_0x4149();}const a94_0x4a0573=a94_0x14a8;(function(_0x38ea7c,_0x2ef6f9){const _0x8a7f8c=a94_0x14a8,_0x13edbd=_0x38ea7c();while(!![]){try{const _0x44ce8d=parseInt(_0x8a7f8c(0x1b9))/0x1+-parseInt(_0x8a7f8c(0x1bc))/0x2*(-parseInt(_0x8a7f8c(0x1c6))/0x3)+-parseInt(_0x8a7f8c(0x1ce))/0x4*(-parseInt(_0x8a7f8c(0x1ba))/0x5)+-parseInt(_0x8a7f8c(0x1c3))/0x6*(parseInt(_0x8a7f8c(0x1c4))/0x7)+parseInt(_0x8a7f8c(0x1d0))/0x8+parseInt(_0x8a7f8c(0x1c0))/0x9*(-parseInt(_0x8a7f8c(0x1c2))/0xa)+-parseInt(_0x8a7f8c(0x1ca))/0xb*(parseInt(_0x8a7f8c(0x1be))/0xc);if(_0x44ce8d===_0x2ef6f9)break;else _0x13edbd['push'](_0x13edbd['shift']());}catch(_0x4ac114){_0x13edbd['push'](_0x13edbd['shift']());}}}(a94_0x4149,0xb6103));import{getDbTableComparisonPage}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{getAllDbTableDiff,summarizeDbTableDiff}from'../../commands/db/table-diff-shared.js';export const dbTables={'service':'db','command':a94_0x4a0573(0x1c8),'description':a94_0x4a0573(0x1cb),'risk':a94_0x4a0573(0x1d2),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a94_0x4a0573(0x1c5),'type':'string','description':a94_0x4a0573(0x1cf)}],async 'execute'(_0x3485d2){const _0x42be52=a94_0x4a0573,_0x4d97a0=_0x3485d2[_0x42be52(0x1cc)]('id'),_0x2224c8=_0x3485d2['str'](_0x42be52(0x1c5))||undefined,_0x82a04a=await getAllDbTableDiff(getDbTableComparisonPage,_0x3485d2[_0x42be52(0x1c9)],_0x4d97a0,_0x2224c8),_0x1177db=_0x82a04a['tableList'];return{'ok':!![],'data':{'dbLinkId':_0x4d97a0,'totalCount':_0x82a04a['totalCount'],...typeof _0x82a04a[_0x42be52(0x1bb)]===_0x42be52(0x1bd)?{'physicalTableCount':_0x82a04a[_0x42be52(0x1bb)]}:{},...typeof _0x82a04a['datasetTableCount']===_0x42be52(0x1bd)?{'datasetTableCount':_0x82a04a[_0x42be52(0x1c7)]}:{},..._0x82a04a[_0x42be52(0x1bf)]?{'summary':_0x82a04a[_0x42be52(0x1bf)]}:{},'summaryByType':summarizeDbTableDiff(_0x1177db),'tables':_0x1177db},'message':_0x1177db[_0x42be52(0x1d1)]+_0x42be52(0x1c1)+_0x82a04a[_0x42be52(0x1cd)]+'\x20(db\x20link\x20'+_0x4d97a0+')'};}};
@@ -1 +1 @@
1
- function a95_0x33f8(_0xdffcc6,_0x4614a1){_0xdffcc6=_0xdffcc6-0x14d;const _0x2b7192=a95_0x2b71();let _0x33f8f9=_0x2b7192[_0xdffcc6];return _0x33f8f9;}const a95_0x415f02=a95_0x33f8;(function(_0x45c705,_0x46238a){const _0x529156=a95_0x33f8,_0x14d442=_0x45c705();while(!![]){try{const _0x149bdc=-parseInt(_0x529156(0x15e))/0x1*(-parseInt(_0x529156(0x162))/0x2)+parseInt(_0x529156(0x160))/0x3*(-parseInt(_0x529156(0x158))/0x4)+-parseInt(_0x529156(0x154))/0x5+parseInt(_0x529156(0x157))/0x6*(-parseInt(_0x529156(0x161))/0x7)+-parseInt(_0x529156(0x14e))/0x8+parseInt(_0x529156(0x15f))/0x9*(parseInt(_0x529156(0x152))/0xa)+parseInt(_0x529156(0x156))/0xb;if(_0x149bdc===_0x46238a)break;else _0x14d442['push'](_0x14d442['shift']());}catch(_0x287ae2){_0x14d442['push'](_0x14d442['shift']());}}}(a95_0x2b71,0x9424b));import{testDbLinkConnect}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a95_0x2b71(){const _0x168b8a=['read','msg','1010733DehdGs','711oktCXa','3TWCkYW','1099YfuMpq','2pcwlpO','success','object','9620640jSoWew','Connection\x20check\x20finished\x20for\x20db\x20link\x20','data','keys','150460yEqMAG','Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)','5447860vIpRDq','test','24416832mxopGI','34674XLHEDQ','2451316TIauSp','length','\x20(see\x20data.result)','code'];a95_0x2b71=function(){return _0x168b8a;};return a95_0x2b71();}function summarizeTestConnectResult(_0x4e5a7d){const _0x174e50=a95_0x33f8;if(_0x4e5a7d===!![]||_0x4e5a7d===![])return{'success':_0x4e5a7d};if(_0x4e5a7d===null||_0x4e5a7d===undefined)return{'type':typeof _0x4e5a7d};if(typeof _0x4e5a7d!==_0x174e50(0x14d))return{'type':typeof _0x4e5a7d};const _0x475155=_0x4e5a7d,_0x36cd23=[_0x174e50(0x163),'message',_0x174e50(0x15b),'error',_0x174e50(0x15d),_0x174e50(0x150)],_0x5e4f3b={};for(const _0x5a2737 of _0x36cd23){if(_0x5a2737 in _0x475155)_0x5e4f3b[_0x5a2737]=_0x475155[_0x5a2737];}return Object[_0x174e50(0x151)](_0x5e4f3b)[_0x174e50(0x159)]===0x0&&(_0x5e4f3b['keys']=Object[_0x174e50(0x151)](_0x475155)['slice'](0x0,0x14)),_0x5e4f3b;}export const dbTest={'service':'db','command':a95_0x415f02(0x155),'description':a95_0x415f02(0x153),'risk':a95_0x415f02(0x15c),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0xf2a7d0){const _0x3173ea=a95_0x415f02,_0x446c11=_0xf2a7d0['num']('id'),_0x2d475b=await testDbLinkConnect(_0x446c11),_0x1ad3ab=_0x2d475b===!![]||typeof _0x2d475b===_0x3173ea(0x14d)&&_0x2d475b!==null&&_0x2d475b[_0x3173ea(0x163)]===!![],_0x2e96f7=summarizeTestConnectResult(_0x2d475b);return{'ok':!![],'data':{'id':_0x446c11,'connected':Boolean(_0x1ad3ab),'result':_0x2e96f7},'message':_0x1ad3ab?'Connection\x20OK\x20for\x20db\x20link\x20'+_0x446c11:_0x3173ea(0x14f)+_0x446c11+_0x3173ea(0x15a)};}};
1
+ const a95_0x5bf85f=a95_0x59e3;(function(_0x10f4c8,_0x5e6120){const _0x3b1644=a95_0x59e3,_0x51d51d=_0x10f4c8();while(!![]){try{const _0x4f3b73=-parseInt(_0x3b1644(0x1f3))/0x1*(-parseInt(_0x3b1644(0x1e7))/0x2)+-parseInt(_0x3b1644(0x1f9))/0x3+parseInt(_0x3b1644(0x1fa))/0x4*(-parseInt(_0x3b1644(0x1fc))/0x5)+-parseInt(_0x3b1644(0x1ef))/0x6*(-parseInt(_0x3b1644(0x1f0))/0x7)+parseInt(_0x3b1644(0x1f5))/0x8+parseInt(_0x3b1644(0x1ea))/0x9+parseInt(_0x3b1644(0x1f2))/0xa*(-parseInt(_0x3b1644(0x1f4))/0xb);if(_0x4f3b73===_0x5e6120)break;else _0x51d51d['push'](_0x51d51d['shift']());}catch(_0x26d0c0){_0x51d51d['push'](_0x51d51d['shift']());}}}(a95_0x598e,0x81b3a));import{testDbLinkConnect}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a95_0x598e(){const _0x449c66=['Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)','1014yIKKnw','object','slice','4449123OQxZnW','\x20(see\x20data.result)','error','success','num','468uoHdYq','21203LdoofO','msg','10594820vCytyE','329dQLCgo','11jopYYc','8317400KfIKlQ','message','length','keys','194268SZjRaZ','388GJtLZa','test','14515eBeyel'];a95_0x598e=function(){return _0x449c66;};return a95_0x598e();}function a95_0x59e3(_0x38d744,_0x44f400){_0x38d744=_0x38d744-0x1e6;const _0x598e1b=a95_0x598e();let _0x59e3fe=_0x598e1b[_0x38d744];return _0x59e3fe;}function summarizeTestConnectResult(_0x5418ab){const _0x319ef6=a95_0x59e3;if(_0x5418ab===!![]||_0x5418ab===![])return{'success':_0x5418ab};if(_0x5418ab===null||_0x5418ab===undefined)return{'type':typeof _0x5418ab};if(typeof _0x5418ab!=='object')return{'type':typeof _0x5418ab};const _0x41218c=_0x5418ab,_0x4fdf12=[_0x319ef6(0x1ed),_0x319ef6(0x1f6),'code',_0x319ef6(0x1ec),_0x319ef6(0x1f1),'data'],_0x230ba5={};for(const _0x2edb82 of _0x4fdf12){if(_0x2edb82 in _0x41218c)_0x230ba5[_0x2edb82]=_0x41218c[_0x2edb82];}return Object[_0x319ef6(0x1f8)](_0x230ba5)[_0x319ef6(0x1f7)]===0x0&&(_0x230ba5[_0x319ef6(0x1f8)]=Object[_0x319ef6(0x1f8)](_0x41218c)[_0x319ef6(0x1e9)](0x0,0x14)),_0x230ba5;}export const dbTest={'service':'db','command':a95_0x5bf85f(0x1fb),'description':a95_0x5bf85f(0x1e6),'risk':'read','requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x465dce){const _0x52f28b=a95_0x5bf85f,_0x39cd11=_0x465dce[_0x52f28b(0x1ee)]('id'),_0x545c60=await testDbLinkConnect(_0x39cd11),_0x44855e=_0x545c60===!![]||typeof _0x545c60===_0x52f28b(0x1e8)&&_0x545c60!==null&&_0x545c60[_0x52f28b(0x1ed)]===!![],_0x4afe81=summarizeTestConnectResult(_0x545c60);return{'ok':!![],'data':{'id':_0x39cd11,'connected':Boolean(_0x44855e),'result':_0x4afe81},'message':_0x44855e?'Connection\x20OK\x20for\x20db\x20link\x20'+_0x39cd11:'Connection\x20check\x20finished\x20for\x20db\x20link\x20'+_0x39cd11+_0x52f28b(0x1eb)};}};
@@ -1 +1 @@
1
- const a96_0x3c4d61=a96_0x1970;(function(_0x61268b,_0x501f4b){const _0x3d6d19=a96_0x1970,_0x224b02=_0x61268b();while(!![]){try{const _0x478829=-parseInt(_0x3d6d19(0x17a))/0x1*(parseInt(_0x3d6d19(0x16b))/0x2)+-parseInt(_0x3d6d19(0x15d))/0x3*(parseInt(_0x3d6d19(0x15b))/0x4)+parseInt(_0x3d6d19(0x156))/0x5*(-parseInt(_0x3d6d19(0x161))/0x6)+-parseInt(_0x3d6d19(0x166))/0x7+-parseInt(_0x3d6d19(0x179))/0x8+-parseInt(_0x3d6d19(0x168))/0x9*(-parseInt(_0x3d6d19(0x154))/0xa)+parseInt(_0x3d6d19(0x170))/0xb;if(_0x478829===_0x501f4b)break;else _0x224b02['push'](_0x224b02['shift']());}catch(_0x89b501){_0x224b02['push'](_0x224b02['shift']());}}}(a96_0x5ea2,0x80150));import{getDbLinkInfo,updateDbLink}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a96_0x1970(_0x57b0c4,_0x20ca05){_0x57b0c4=_0x57b0c4-0x153;const _0x5ea276=a96_0x5ea2();let _0x1970d1=_0x5ea276[_0x57b0c4];return _0x1970d1;}import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG,SKIP_CONNECTION_TEST_FLAG}from'../../commands/common/flags.js';import{assertDbLinkConnectionPreflight,sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';const MASKED_PASSWORD_VALUES=new Set([a96_0x3c4d61(0x16f),a96_0x3c4d61(0x16a)]);function mergeDbLinkUpdate(_0x18e7df,_0x266f95){const _0x31b44e=a96_0x3c4d61,_0x5f1c0c={..._0x18e7df},_0x2312ea=_0x266f95[_0x31b44e(0x15e)](_0x31b44e(0x175));if(_0x2312ea&&MASKED_PASSWORD_VALUES[_0x31b44e(0x160)](_0x2312ea))throw CliErrors[_0x31b44e(0x172)]('--password\x20must\x20contain\x20the\x20real\x20database\x20password,\x20not\x20a\x20masked\x20value.');if(!_0x2312ea&&MASKED_PASSWORD_VALUES[_0x31b44e(0x160)](String(_0x18e7df['password']??'')))throw CliErrors['validation'](_0x31b44e(0x167));const _0x31d0d4=_0x266f95['str'](_0x31b44e(0x174));if(_0x31d0d4)_0x5f1c0c['dbName']=_0x31d0d4;const _0x3f4b6d=_0x266f95[_0x31b44e(0x15e)]('dburl');if(_0x3f4b6d)_0x5f1c0c['dbUrl']=_0x3f4b6d[_0x31b44e(0x15f)]();const _0x5c0926=_0x266f95[_0x31b44e(0x15e)]('username');if(_0x5c0926)_0x5f1c0c[_0x31b44e(0x157)]=_0x5c0926;if(_0x2312ea)_0x5f1c0c[_0x31b44e(0x175)]=_0x2312ea;const _0x2599a9=_0x266f95[_0x31b44e(0x15e)](_0x31b44e(0x15a));if(_0x2599a9)_0x5f1c0c[_0x31b44e(0x16d)]=_0x2599a9;const _0x480853=_0x266f95[_0x31b44e(0x15e)](_0x31b44e(0x163));if(_0x480853)_0x5f1c0c[_0x31b44e(0x164)]=_0x480853;return _0x5f1c0c;}function a96_0x5ea2(){const _0x3abfd3=['10041ZFRULr','str','trim','has','2333298aFAVGZ','New\x20username','dbdesc','dbDesc','New\x20connection\x20parameter\x20string','4943218YMqjhn','The\x20server\x20returned\x20a\x20masked\x20database\x20password.\x20Pass\x20the\x20current\x20or\x20replacement\x20password\x20explicitly\x20with\x20--password\x20to\x20update\x20this\x20connection\x20safely.','45VNEYcg','num','[redacted]','130NvanEm','Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22','dbParam','skip-connection-test','******','34239645vBAUiU','POST','validation','New\x20host:port','dbname','password','dburl','Preview\x20the\x20merged\x20database\x20connection\x20update;\x20password\x20redacted','New\x20description','6812776CDPFFv','5197dOChuI','Updated\x20db\x20link\x20','string','1106440MjOjID','Update\x20a\x20database\x20connection\x20by\x20merging\x20supplied\x20fields\x20into\x20the\x20current\x20server\x20record.\x20A\x20masked\x20server\x20password\x20requires\x20explicit\x20--password','5FQgLHs','username','/smartapi/dblink/update','Current\x20or\x20replacement\x20password.\x20Required\x20when\x20the\x20stored\x20password\x20is\x20masked','dbparam','1024wrpoUj','bool'];a96_0x5ea2=function(){return _0x3abfd3;};return a96_0x5ea2();}export const dbUpdate={'service':'db','command':'update','description':a96_0x3c4d61(0x155),'risk':'write','flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':'dbname','type':a96_0x3c4d61(0x153),'description':'New\x20database\x20name'},{'name':a96_0x3c4d61(0x176),'type':a96_0x3c4d61(0x153),'description':a96_0x3c4d61(0x173)},{'name':a96_0x3c4d61(0x157),'type':'string','description':a96_0x3c4d61(0x162)},{'name':a96_0x3c4d61(0x175),'type':a96_0x3c4d61(0x153),'description':a96_0x3c4d61(0x159)},{'name':a96_0x3c4d61(0x15a),'type':'string','description':a96_0x3c4d61(0x165)},{'name':'dbdesc','type':a96_0x3c4d61(0x153),'description':a96_0x3c4d61(0x178)},SKIP_CONNECTION_TEST_FLAG],async 'validate'(_0x2dab30){const _0x6cace6=a96_0x3c4d61,_0x4137c0=_0x2dab30['str'](_0x6cace6(0x176));if(_0x4137c0&&!validateDbUrl(_0x4137c0[_0x6cace6(0x15f)]()))throw CliErrors['validation'](_0x6cace6(0x16c)+_0x4137c0+'\x22');},async 'dryRun'(_0x33db5f){const _0x196fa3=a96_0x3c4d61,_0x1693f4=_0x33db5f[_0x196fa3(0x169)]('id'),_0x2eb031=await getDbLinkInfo(_0x1693f4),_0x3db375=mergeDbLinkUpdate(_0x2eb031,_0x33db5f),_0x4e3549=sanitizeDbLinkForOutput(_0x3db375);return{'method':_0x196fa3(0x171),'url':_0x196fa3(0x158),'body':_0x4e3549,'description':_0x196fa3(0x177),'connectionPreflight':{'enabled':!_0x33db5f[_0x196fa3(0x15c)](_0x196fa3(0x16e)),'executed':![]}};},async 'execute'(_0x51a2a1){const _0x128ab3=a96_0x3c4d61,_0x247cd4=_0x51a2a1['num']('id'),_0x3ce8e1=await getDbLinkInfo(_0x247cd4),_0x452ddc=mergeDbLinkUpdate(_0x3ce8e1,_0x51a2a1);!_0x51a2a1['bool'](_0x128ab3(0x16e))&&await assertDbLinkConnectionPreflight(_0x452ddc);const {id:_0x11a3d6,entity:_0x2b3b06}=normalizeEntityWithIdResponse(await updateDbLink(_0x452ddc));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x2b3b06),'message':_0x128ab3(0x17b)+(_0x11a3d6??_0x247cd4)};}};
1
+ function a96_0x504e(){const _0x14eb5a=['password','The\x20server\x20returned\x20a\x20masked\x20database\x20password.\x20Pass\x20the\x20current\x20or\x20replacement\x20password\x20explicitly\x20with\x20--password\x20to\x20update\x20this\x20connection\x20safely.','Current\x20or\x20replacement\x20password.\x20Required\x20when\x20the\x20stored\x20password\x20is\x20masked','238105BMyJcX','dbUrl','skip-connection-test','username','784215kNZsBA','******','--password\x20must\x20contain\x20the\x20real\x20database\x20password,\x20not\x20a\x20masked\x20value.','str','167084eSRQSi','num','10594XEZYjg','New\x20description','Preview\x20the\x20merged\x20database\x20connection\x20update;\x20password\x20redacted','/smartapi/dblink/update','New\x20connection\x20parameter\x20string','POST','Updated\x20db\x20link\x20','14BYABds','dbName','dbname','dburl','string','3108336lKzfSq','dbParam','351HAgyWG','[redacted]','348932QucAsk','New\x20database\x20name','trim','validation','978168uAvlhV','dbparam','Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22','dbDesc'];a96_0x504e=function(){return _0x14eb5a;};return a96_0x504e();}function a96_0x1d66(_0x957659,_0x1451aa){_0x957659=_0x957659-0xbe;const _0x504efb=a96_0x504e();let _0x1d66e4=_0x504efb[_0x957659];return _0x1d66e4;}const a96_0x1aba5a=a96_0x1d66;(function(_0x3afdc0,_0x58fee5){const _0x40ba4a=a96_0x1d66,_0x266472=_0x3afdc0();while(!![]){try{const _0x59e92e=parseInt(_0x40ba4a(0xdf))/0x1+parseInt(_0x40ba4a(0xcf))/0x2*(parseInt(_0x40ba4a(0xdd))/0x3)+parseInt(_0x40ba4a(0xcd))/0x4+-parseInt(_0x40ba4a(0xc5))/0x5+parseInt(_0x40ba4a(0xbe))/0x6*(parseInt(_0x40ba4a(0xd6))/0x7)+-parseInt(_0x40ba4a(0xdb))/0x8+parseInt(_0x40ba4a(0xc9))/0x9;if(_0x59e92e===_0x58fee5)break;else _0x266472['push'](_0x266472['shift']());}catch(_0x38f0b0){_0x266472['push'](_0x266472['shift']());}}}(a96_0x504e,0xf1158));import{getDbLinkInfo,updateDbLink}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG,SKIP_CONNECTION_TEST_FLAG}from'../../commands/common/flags.js';import{assertDbLinkConnectionPreflight,sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';const MASKED_PASSWORD_VALUES=new Set([a96_0x1aba5a(0xca),a96_0x1aba5a(0xde)]);function mergeDbLinkUpdate(_0x986ae5,_0xf4b81b){const _0x1a46e0=a96_0x1aba5a,_0x4e9020={..._0x986ae5},_0x40ea55=_0xf4b81b[_0x1a46e0(0xcc)](_0x1a46e0(0xc2));if(_0x40ea55&&MASKED_PASSWORD_VALUES['has'](_0x40ea55))throw CliErrors[_0x1a46e0(0xe2)](_0x1a46e0(0xcb));if(!_0x40ea55&&MASKED_PASSWORD_VALUES['has'](String(_0x986ae5[_0x1a46e0(0xc2)]??'')))throw CliErrors[_0x1a46e0(0xe2)](_0x1a46e0(0xc3));const _0x156509=_0xf4b81b['str'](_0x1a46e0(0xd8));if(_0x156509)_0x4e9020[_0x1a46e0(0xd7)]=_0x156509;const _0x2e403a=_0xf4b81b[_0x1a46e0(0xcc)](_0x1a46e0(0xd9));if(_0x2e403a)_0x4e9020[_0x1a46e0(0xc6)]=_0x2e403a['trim']();const _0x5dc02d=_0xf4b81b[_0x1a46e0(0xcc)]('username');if(_0x5dc02d)_0x4e9020[_0x1a46e0(0xc8)]=_0x5dc02d;if(_0x40ea55)_0x4e9020[_0x1a46e0(0xc2)]=_0x40ea55;const _0x26ef80=_0xf4b81b[_0x1a46e0(0xcc)](_0x1a46e0(0xbf));if(_0x26ef80)_0x4e9020[_0x1a46e0(0xdc)]=_0x26ef80;const _0x5b374d=_0xf4b81b['str']('dbdesc');if(_0x5b374d)_0x4e9020[_0x1a46e0(0xc1)]=_0x5b374d;return _0x4e9020;}export const dbUpdate={'service':'db','command':'update','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':a96_0x1aba5a(0xd8),'type':a96_0x1aba5a(0xda),'description':a96_0x1aba5a(0xe0)},{'name':a96_0x1aba5a(0xd9),'type':a96_0x1aba5a(0xda),'description':'New\x20host:port'},{'name':a96_0x1aba5a(0xc8),'type':'string','description':'New\x20username'},{'name':a96_0x1aba5a(0xc2),'type':a96_0x1aba5a(0xda),'description':a96_0x1aba5a(0xc4)},{'name':a96_0x1aba5a(0xbf),'type':a96_0x1aba5a(0xda),'description':a96_0x1aba5a(0xd3)},{'name':'dbdesc','type':a96_0x1aba5a(0xda),'description':a96_0x1aba5a(0xd0)},SKIP_CONNECTION_TEST_FLAG],async 'validate'(_0x2fba6b){const _0x400144=a96_0x1aba5a,_0x1aeeaf=_0x2fba6b[_0x400144(0xcc)](_0x400144(0xd9));if(_0x1aeeaf&&!validateDbUrl(_0x1aeeaf[_0x400144(0xe1)]()))throw CliErrors['validation'](_0x400144(0xc0)+_0x1aeeaf+'\x22');},async 'dryRun'(_0x4704d3){const _0x42c652=a96_0x1aba5a,_0x1d30f6=_0x4704d3[_0x42c652(0xce)]('id'),_0x49fbc6=await getDbLinkInfo(_0x1d30f6),_0x5a4142=mergeDbLinkUpdate(_0x49fbc6,_0x4704d3),_0x2bfb96=sanitizeDbLinkForOutput(_0x5a4142);return{'method':_0x42c652(0xd4),'url':_0x42c652(0xd2),'body':_0x2bfb96,'description':_0x42c652(0xd1),'connectionPreflight':{'enabled':!_0x4704d3['bool'](_0x42c652(0xc7)),'executed':![]}};},async 'execute'(_0x1640b7){const _0x9024f3=a96_0x1aba5a,_0x328ce1=_0x1640b7[_0x9024f3(0xce)]('id'),_0x4f0e48=await getDbLinkInfo(_0x328ce1),_0x4ba856=mergeDbLinkUpdate(_0x4f0e48,_0x1640b7);!_0x1640b7['bool'](_0x9024f3(0xc7))&&await assertDbLinkConnectionPreflight(_0x4ba856);const {id:_0x245cc1,entity:_0x862854}=normalizeEntityWithIdResponse(await updateDbLink(_0x4ba856));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x862854),'message':_0x9024f3(0xd5)+(_0x245cc1??_0x328ce1)};}};
@@ -1,28 +1,20 @@
1
1
  import { type DeploymentSyncItem, type DeploymentSyncType } from "../../core/api-client.js";
2
2
  import type { RuntimeContext } from "../../framework/types.js";
3
- export type AutomaticDeploymentSyncStatus = "not_configured" | "not_needed" | "skipped_primary_failed" | "succeeded" | "partial_failure" | "failed" | "outcome_unknown";
3
+ export type AutomaticDeploymentSyncStatus = "not_needed" | "skipped_primary_failed" | "succeeded" | "partial_failure" | "failed" | "outcome_unknown";
4
4
  export interface AutomaticDeploymentSyncResult {
5
- configured: boolean;
6
5
  attempted: boolean;
7
6
  status: AutomaticDeploymentSyncStatus;
8
7
  bizType: DeploymentSyncType;
9
8
  bizCodes: string[];
10
- dbLinkId?: number;
11
- targetEnv?: "dev" | "test" | "pre";
12
9
  items?: DeploymentSyncItem[];
13
10
  recoveryCommand?: string;
14
11
  error?: string;
15
12
  }
16
13
  export interface AutomaticDeploymentSyncPreview {
17
- configured: boolean;
18
- wouldAttempt: boolean;
19
- status: "not_configured" | "not_needed" | "would_sync";
14
+ status: "not_needed" | "would_sync";
20
15
  bizType: DeploymentSyncType;
21
16
  bizCodes: string[];
22
- dbLinkId?: number;
23
- targetEnv?: "dev" | "test" | "pre";
24
17
  }
25
- export declare function validateAutomaticDeploymentSync(ctx: RuntimeContext): void;
26
- export declare function buildAutomaticDeploymentSyncPreview(ctx: RuntimeContext, bizType: DeploymentSyncType, rawCodes: string[]): AutomaticDeploymentSyncPreview;
18
+ export declare function buildAutomaticDeploymentSyncPreview(bizType: DeploymentSyncType, rawCodes: string[]): AutomaticDeploymentSyncPreview;
27
19
  export declare function runAutomaticDeploymentSync(ctx: RuntimeContext, bizType: DeploymentSyncType, rawCodes: string[], primarySucceeded: boolean): Promise<AutomaticDeploymentSyncResult>;
28
20
  export declare function automaticDeploymentSyncSucceeded(result: AutomaticDeploymentSyncResult): boolean;
@@ -1 +1 @@
1
- (function(_0x30f04b,_0x1614b8){const _0x339e7c=a97_0x419c,_0x323d78=_0x30f04b();while(!![]){try{const _0x8653e5=-parseInt(_0x339e7c(0xa8))/0x1+parseInt(_0x339e7c(0x95))/0x2+-parseInt(_0x339e7c(0xb9))/0x3+-parseInt(_0x339e7c(0x9b))/0x4+parseInt(_0x339e7c(0xb1))/0x5*(parseInt(_0x339e7c(0xa5))/0x6)+-parseInt(_0x339e7c(0xa3))/0x7*(parseInt(_0x339e7c(0xb4))/0x8)+-parseInt(_0x339e7c(0xc1))/0x9*(-parseInt(_0x339e7c(0x9c))/0xa);if(_0x8653e5===_0x1614b8)break;else _0x323d78['push'](_0x323d78['shift']());}catch(_0x4a784a){_0x323d78['push'](_0x323d78['shift']());}}}(a97_0x1c0e,0x33f4d));import{CLI_BIN_NAME}from'../../constant/cli.js';import{isPlatformTransportFailure,syncDeploymentMetadata}from'../../core/api-client.js';function a97_0x419c(_0x1b7a38,_0x4c6319){_0x1b7a38=_0x1b7a38-0x95;const _0x1c0ef0=a97_0x1c0e();let _0x419cfe=_0x1c0ef0[_0x1b7a38];return _0x419cfe;}function a97_0x1c0e(){const _0x166839=['status','not_needed','would_sync','--confirm','failed','800OiLGQA','length','partial_failure','400iPkgNa','message','dbLinkId','test','defaultApp','90036IDiMLc','not_configured','--appcode','map','apps','configured','outcome_unknown','values','1422uqHtHd','replace','filter','456036aJEAPH','Automatic\x20deployment\x20sync\x20supports\x20at\x20most\x20','succeeded','has','deploymentSync','mergedCli','1327212RSQPbE','21940cXYbwI','sync','find','targetEnv','currentApp','action','appCode','10563PnnLmj','selectedAppName','5826lskbtt','join','--codes','79952uhwqEU','appcode','FAILED','some'];a97_0x1c0e=function(){return _0x166839;};return a97_0x1c0e();}import{validateDeploymentSyncProfile}from'../../config/deployment-sync.js';const MAX_SYNC_CODES=0x64;export function validateAutomaticDeploymentSync(_0x1ebc80){const _0x525a47=resolveRawDeploymentSyncProfile(_0x1ebc80);if(_0x525a47!==undefined)validateDeploymentSyncProfile(_0x525a47);}export function buildAutomaticDeploymentSyncPreview(_0x230279,_0xdabcaf,_0x1f020d){const _0x206e6b=a97_0x419c,_0x4828de=resolveRawDeploymentSyncProfile(_0x230279),_0x3a00cd=normalizeCodes(_0x1f020d);if(_0x4828de===undefined)return{'configured':![],'wouldAttempt':![],'status':_0x206e6b(0xba),'bizType':_0xdabcaf,'bizCodes':_0x3a00cd};const _0x1199e5=validateDeploymentSyncProfile(_0x4828de),_0x3b75ef=_0x3a00cd[_0x206e6b(0xb2)]>0x0;return{'configured':!![],'wouldAttempt':_0x3b75ef,'status':_0x3b75ef?_0x206e6b(0xae):'not_needed','bizType':_0xdabcaf,'bizCodes':_0x3a00cd,'dbLinkId':_0x1199e5[_0x206e6b(0xb6)],'targetEnv':_0x1199e5[_0x206e6b(0x9f)]};}export async function runAutomaticDeploymentSync(_0x14b444,_0x37cefa,_0x269899,_0x39611d){const _0x537a68=a97_0x419c,_0x19cb5c=resolveRawDeploymentSyncProfile(_0x14b444),_0x3cfcdb=normalizeCodes(_0x269899);if(_0x19cb5c===undefined)return{'configured':![],'attempted':![],'status':'not_configured','bizType':_0x37cefa,'bizCodes':_0x3cfcdb};const _0x1b038e=validateDeploymentSyncProfile(_0x19cb5c),_0x2028ce={'configured':!![],'bizType':_0x37cefa,'bizCodes':_0x3cfcdb,'dbLinkId':_0x1b038e[_0x537a68(0xb6)],'targetEnv':_0x1b038e[_0x537a68(0x9f)]};if(!_0x39611d)return{..._0x2028ce,'attempted':![],'status':'skipped_primary_failed'};if(_0x3cfcdb['length']===0x0)return{..._0x2028ce,'attempted':![],'status':_0x537a68(0xad)};if(_0x3cfcdb[_0x537a68(0xb2)]>MAX_SYNC_CODES)return{..._0x2028ce,'attempted':![],'status':'failed','error':_0x537a68(0x96)+MAX_SYNC_CODES+'\x20codes;\x20run\x20deployment\x20sync\x20manually\x20in\x20batches.'};try{const {items:_0x5e87a1}=await syncDeploymentMetadata({'appCode':_0x14b444[_0x537a68(0xa2)],'dbLinkId':_0x1b038e[_0x537a68(0xb6)],'env':_0x1b038e[_0x537a68(0x9f)],'bizType':_0x37cefa,'bizCodes':_0x3cfcdb}),_0x49082f=_0x5e87a1[_0x537a68(0xab)](_0x3242c1=>_0x3242c1['action']===_0x537a68(0xaa)),_0xcd704a=new Set(_0x5e87a1['filter'](_0x544906=>_0x544906[_0x537a68(0xa1)]===_0x537a68(0xaa))[_0x537a68(0xbc)](_0x6bb1dc=>_0x6bb1dc['bizCode'])),_0x3d6dce=_0x3cfcdb['filter'](_0x410969=>_0xcd704a[_0x537a68(0x98)](_0x410969));return{..._0x2028ce,'attempted':!![],'status':_0x49082f?_0x537a68(0xb3):'succeeded','items':_0x5e87a1,..._0x49082f&&_0x3d6dce[_0x537a68(0xb2)]>0x0?{'recoveryCommand':buildRecoveryCommand(_0x14b444[_0x537a68(0xa2)],_0x1b038e[_0x537a68(0xb6)],_0x1b038e['targetEnv'],_0x37cefa,_0x3d6dce)}:{}};}catch(_0x4819c7){return{..._0x2028ce,'attempted':!![],'status':isPlatformTransportFailure(_0x4819c7)?_0x537a68(0xbf):_0x537a68(0xb0),'recoveryCommand':buildRecoveryCommand(_0x14b444[_0x537a68(0xa2)],_0x1b038e[_0x537a68(0xb6)],_0x1b038e[_0x537a68(0x9f)],_0x37cefa,_0x3cfcdb),'error':_0x4819c7 instanceof Error?_0x4819c7[_0x537a68(0xb5)]:String(_0x4819c7)};}}function normalizeCodes(_0x4c2e5){const _0x18f4e3=a97_0x419c;return[...new Set(_0x4c2e5[_0x18f4e3(0xbc)](_0x4213d5=>_0x4213d5['trim']())[_0x18f4e3(0xc3)](Boolean))];}export function automaticDeploymentSyncSucceeded(_0x10878f){const _0x1ddd89=a97_0x419c;return!_0x10878f[_0x1ddd89(0xbe)]||_0x10878f[_0x1ddd89(0xac)]===_0x1ddd89(0xad)||_0x10878f['status']==='skipped_primary_failed'||_0x10878f[_0x1ddd89(0xac)]===_0x1ddd89(0x97);}function resolveRawDeploymentSyncProfile(_0x343708){const _0x5cc045=a97_0x419c,_0x5e1c96=_0x343708[_0x5cc045(0x9a)]?.[_0x5cc045(0xbd)]??{},_0x3a4f8c=_0x343708[_0x5cc045(0xa4)]||_0x343708[_0x5cc045(0x9a)]?.[_0x5cc045(0xa0)]||_0x343708[_0x5cc045(0x9a)]?.[_0x5cc045(0xb8)];if(_0x3a4f8c&&_0x5e1c96[_0x3a4f8c]?.['appcode']===_0x343708[_0x5cc045(0xa2)])return _0x5e1c96[_0x3a4f8c]?.[_0x5cc045(0x99)];const _0x46e764=Object[_0x5cc045(0xc0)](_0x5e1c96)[_0x5cc045(0x9e)](_0xac6945=>_0xac6945?.[_0x5cc045(0xa9)]===_0x343708['appCode']);return _0x46e764?.[_0x5cc045(0x99)];}function buildRecoveryCommand(_0x341da5,_0x1dbe56,_0x2ff707,_0x42a1a3,_0x34f632){const _0x1d5a62=a97_0x419c;return[CLI_BIN_NAME,'deployment',_0x1d5a62(0x9d),_0x1d5a62(0xbb),shellArg(_0x341da5),'--db-id',String(_0x1dbe56),'--target-env',shellArg(_0x2ff707),'--type',shellArg(_0x42a1a3),_0x1d5a62(0xa7),shellArg(_0x34f632[_0x1d5a62(0xa6)](',')),_0x1d5a62(0xaf)]['join']('\x20');}function shellArg(_0x561e72){const _0x3fd0a2=a97_0x419c;return/^[A-Za-z0-9._:/,-]+$/[_0x3fd0a2(0xb7)](_0x561e72)?_0x561e72:'\x27'+_0x561e72[_0x3fd0a2(0xc2)](/'/g,'\x27\x5c\x27\x27')+'\x27';}
1
+ function a97_0x4311(_0x3e51ed,_0x5bc841){_0x3e51ed=_0x3e51ed-0x146;const _0x5e747d=a97_0x5e74();let _0x4311ff=_0x5e747d[_0x3e51ed];return _0x4311ff;}(function(_0x246f36,_0x1abd24){const _0x247a15=a97_0x4311,_0x59c8a7=_0x246f36();while(!![]){try{const _0x4f7324=-parseInt(_0x247a15(0x146))/0x1*(parseInt(_0x247a15(0x147))/0x2)+-parseInt(_0x247a15(0x15d))/0x3*(-parseInt(_0x247a15(0x14f))/0x4)+-parseInt(_0x247a15(0x162))/0x5+parseInt(_0x247a15(0x15b))/0x6+parseInt(_0x247a15(0x157))/0x7*(-parseInt(_0x247a15(0x151))/0x8)+-parseInt(_0x247a15(0x14a))/0x9+parseInt(_0x247a15(0x156))/0xa;if(_0x4f7324===_0x1abd24)break;else _0x59c8a7['push'](_0x59c8a7['shift']());}catch(_0x14dcae){_0x59c8a7['push'](_0x59c8a7['shift']());}}}(a97_0x5e74,0xa7f76));function a97_0x5e74(){const _0x5c20be=['580206mwevhj','trim','363dkcnWo','message','succeeded','\x20codes;\x20run\x20deployment\x20sync\x20manually\x20in\x20batches.','skipped_primary_failed','5920420AKySgW','appCode','--confirm','failed','join','outcome_unknown','1kexyJb','2268092VtniNo','FAILED','replace','3399480uhvkSB','status','--type','action','--codes','25252XjouOp','map','8EiUkWt','partial_failure','test','has','\x27\x5c\x27\x27','28585890wiXgfc','2347261tuCaHb','not_needed','filter','length'];a97_0x5e74=function(){return _0x5c20be;};return a97_0x5e74();}import{CLI_BIN_NAME}from'../../constant/cli.js';import{isPlatformTransportFailure,syncDeploymentMetadata}from'../../core/api-client.js';const MAX_SYNC_CODES=0x64;export function buildAutomaticDeploymentSyncPreview(_0x484b2e,_0x300daa){const _0x19ee8a=a97_0x4311,_0x2a42aa=normalizeCodes(_0x300daa);if(_0x2a42aa['length']===0x0)return{'status':_0x19ee8a(0x158),'bizType':_0x484b2e,'bizCodes':_0x2a42aa};return{'status':'would_sync','bizType':_0x484b2e,'bizCodes':_0x2a42aa};}export async function runAutomaticDeploymentSync(_0x564766,_0x49301a,_0x116f43,_0x52e8c2){const _0x27e5d8=a97_0x4311,_0x4e6fba=normalizeCodes(_0x116f43);if(!_0x52e8c2)return{'attempted':![],'status':'skipped_primary_failed','bizType':_0x49301a,'bizCodes':_0x4e6fba};if(_0x4e6fba[_0x27e5d8(0x15a)]===0x0)return{'attempted':![],'status':_0x27e5d8(0x158),'bizType':_0x49301a,'bizCodes':_0x4e6fba};const _0x1b3290={'bizType':_0x49301a,'bizCodes':_0x4e6fba};if(_0x4e6fba[_0x27e5d8(0x15a)]>MAX_SYNC_CODES)return{..._0x1b3290,'attempted':![],'status':_0x27e5d8(0x165),'error':'Automatic\x20deployment\x20sync\x20supports\x20at\x20most\x20'+MAX_SYNC_CODES+_0x27e5d8(0x160)};try{const {items:_0x385e2e}=await syncDeploymentMetadata({'appCode':_0x564766['appCode'],'bizType':_0x49301a,'bizCodes':_0x4e6fba}),_0x389e5c=_0x385e2e['some'](_0x324642=>_0x324642[_0x27e5d8(0x14d)]===_0x27e5d8(0x148)),_0xbef163=new Set(_0x385e2e[_0x27e5d8(0x159)](_0x78edde=>_0x78edde['action']===_0x27e5d8(0x148))[_0x27e5d8(0x150)](_0x2cf1c4=>_0x2cf1c4['bizCode'])),_0x1f7a48=_0x4e6fba['filter'](_0x15ead8=>_0xbef163[_0x27e5d8(0x154)](_0x15ead8));return{..._0x1b3290,'attempted':!![],'status':_0x389e5c?_0x27e5d8(0x152):_0x27e5d8(0x15f),'items':_0x385e2e,..._0x389e5c&&_0x1f7a48[_0x27e5d8(0x15a)]>0x0?{'recoveryCommand':buildRecoveryCommand(_0x564766['appCode'],_0x49301a,_0x1f7a48)}:{}};}catch(_0x47a03d){return{..._0x1b3290,'attempted':!![],'status':isPlatformTransportFailure(_0x47a03d)?_0x27e5d8(0x167):_0x27e5d8(0x165),'recoveryCommand':buildRecoveryCommand(_0x564766[_0x27e5d8(0x163)],_0x49301a,_0x4e6fba),'error':_0x47a03d instanceof Error?_0x47a03d[_0x27e5d8(0x15e)]:String(_0x47a03d)};}}function normalizeCodes(_0x6b3325){const _0x4fa5bd=a97_0x4311;return[...new Set(_0x6b3325[_0x4fa5bd(0x150)](_0x2b863b=>_0x2b863b[_0x4fa5bd(0x15c)]())[_0x4fa5bd(0x159)](Boolean))];}export function automaticDeploymentSyncSucceeded(_0x49479f){const _0x24736e=a97_0x4311;return _0x49479f['status']===_0x24736e(0x158)||_0x49479f[_0x24736e(0x14b)]===_0x24736e(0x161)||_0x49479f[_0x24736e(0x14b)]===_0x24736e(0x15f);}function buildRecoveryCommand(_0x518ef0,_0x53b84e,_0x248418){const _0x4d632a=a97_0x4311;return[CLI_BIN_NAME,'deployment','sync','--appcode',shellArg(_0x518ef0),_0x4d632a(0x14c),shellArg(_0x53b84e),_0x4d632a(0x14e),shellArg(_0x248418[_0x4d632a(0x166)](',')),_0x4d632a(0x164)]['join']('\x20');}function shellArg(_0x487c30){const _0x2fcc58=a97_0x4311;return/^[A-Za-z0-9._:/,-]+$/[_0x2fcc58(0x153)](_0x487c30)?_0x487c30:'\x27'+_0x487c30[_0x2fcc58(0x149)](/'/g,_0x2fcc58(0x155))+'\x27';}
@@ -1 +1 @@
1
- (function(_0x2f67e9,_0x19ee5a){const _0xa36a2d=a98_0x1d69,_0x3d420f=_0x2f67e9();while(!![]){try{const _0x29d194=parseInt(_0xa36a2d(0x197))/0x1*(parseInt(_0xa36a2d(0x194))/0x2)+-parseInt(_0xa36a2d(0x191))/0x3+-parseInt(_0xa36a2d(0x192))/0x4+parseInt(_0xa36a2d(0x195))/0x5*(-parseInt(_0xa36a2d(0x190))/0x6)+parseInt(_0xa36a2d(0x18f))/0x7+-parseInt(_0xa36a2d(0x193))/0x8*(parseInt(_0xa36a2d(0x198))/0x9)+parseInt(_0xa36a2d(0x199))/0xa*(parseInt(_0xa36a2d(0x196))/0xb);if(_0x29d194===_0x19ee5a)break;else _0x3d420f['push'](_0x3d420f['shift']());}catch(_0xb6c8dd){_0x3d420f['push'](_0x3d420f['shift']());}}}(a98_0x54a0,0x91116));function a98_0x1d69(_0x555f85,_0x217291){_0x555f85=_0x555f85-0x18f;const _0x54a03e=a98_0x54a0();let _0x1d691d=_0x54a03e[_0x555f85];return _0x1d691d;}function a98_0x54a0(){const _0x35427e=['875184KgPBle','830076FUzpPK','4543120UUuzrz','304oCmHCx','68kgKsbg','10aSZSXU','11SgEEdf','53cxzIVo','259911SqSJCc','24695810cvdEVI','6470919RuyUyq'];a98_0x54a0=function(){return _0x35427e;};return a98_0x54a0();}import{deploymentSync}from'../../commands/deployment/sync.js';export const deploymentDefinitions=[deploymentSync];
1
+ function a98_0x1d81(){const _0x1c58a6=['4113ULkRsI','2540188qtSGWY','599517UUjVbu','21768NYGBhF','6FOKydt','1361512JwCqGE','462902TCwZDv','2970888kBxWhJ','3042395THkZjB'];a98_0x1d81=function(){return _0x1c58a6;};return a98_0x1d81();}function a98_0x5f48(_0x13321c,_0x13b00e){_0x13321c=_0x13321c-0x96;const _0x1d8159=a98_0x1d81();let _0x5f48bd=_0x1d8159[_0x13321c];return _0x5f48bd;}(function(_0x2c73df,_0x476480){const _0x2cf5b5=a98_0x5f48,_0x557592=_0x2c73df();while(!![]){try{const _0x11d211=-parseInt(_0x2cf5b5(0x97))/0x1+parseInt(_0x2cf5b5(0x9b))/0x2+parseInt(_0x2cf5b5(0x9c))/0x3+-parseInt(_0x2cf5b5(0x9a))/0x4+-parseInt(_0x2cf5b5(0x9d))/0x5*(parseInt(_0x2cf5b5(0x99))/0x6)+-parseInt(_0x2cf5b5(0x96))/0x7+parseInt(_0x2cf5b5(0x98))/0x8*(parseInt(_0x2cf5b5(0x9e))/0x9);if(_0x11d211===_0x476480)break;else _0x557592['push'](_0x557592['shift']());}catch(_0x44b8a3){_0x557592['push'](_0x557592['shift']());}}}(a98_0x1d81,0x87402));import{deploymentSync}from'../../commands/deployment/sync.js';export const deploymentDefinitions=[deploymentSync];