@lovrabet/rabetbase-cli 2.5.10-beta.5 → 2.5.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (376) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/api-group.js +1 -1
  3. package/lib/api/fetch-model-list.js +1 -1
  4. package/lib/api/generate-api-file.js +1 -1
  5. package/lib/api/generate-sdk-config-file.js +1 -1
  6. package/lib/api/legacy-api-file.js +1 -1
  7. package/lib/api/model-registry-file.js +1 -1
  8. package/lib/api/model-registry-scaffold.js +1 -1
  9. package/lib/api/model-source.js +1 -1
  10. package/lib/auth/auth-server-ui.js +1 -1
  11. package/lib/auth/auth-server.js +1 -1
  12. package/lib/auth/constant.js +1 -1
  13. package/lib/auth/get-cookie.js +1 -1
  14. package/lib/auth/get-session-user.js +1 -1
  15. package/lib/auth/is-session-valid.js +1 -1
  16. package/lib/auth/login-success-html.js +1 -1
  17. package/lib/auth/logout.js +1 -1
  18. package/lib/cli-flags.js +1 -1
  19. package/lib/cli.js +1 -1
  20. package/lib/commands/api/generate.js +1 -1
  21. package/lib/commands/api/index.js +1 -1
  22. package/lib/commands/api/list.js +1 -1
  23. package/lib/commands/api/pull.js +1 -1
  24. package/lib/commands/api/shared.js +1 -1
  25. package/lib/commands/app/detail.js +1 -1
  26. package/lib/commands/app/index.js +1 -1
  27. package/lib/commands/app/list.js +1 -1
  28. package/lib/commands/app/members-list.js +1 -1
  29. package/lib/commands/app/remote-directory.js +1 -1
  30. package/lib/commands/app/shared.js +1 -1
  31. package/lib/commands/app-config/delete.js +1 -1
  32. package/lib/commands/app-config/get.js +1 -1
  33. package/lib/commands/app-config/index.js +1 -1
  34. package/lib/commands/app-config/list.js +1 -1
  35. package/lib/commands/app-config/set.js +1 -1
  36. package/lib/commands/app-config/shared.js +1 -1
  37. package/lib/commands/auth/index.js +1 -1
  38. package/lib/commands/bff/create.js +1 -1
  39. package/lib/commands/bff/delete.js +1 -1
  40. package/lib/commands/bff/detail.js +1 -1
  41. package/lib/commands/bff/index.js +1 -1
  42. package/lib/commands/bff/list.js +1 -1
  43. package/lib/commands/bff/logs.js +1 -1
  44. package/lib/commands/bff/pull.js +1 -1
  45. package/lib/commands/bff/push.js +1 -1
  46. package/lib/commands/bff/status.js +1 -1
  47. package/lib/commands/cli-skill/index.js +1 -1
  48. package/lib/commands/cli-update.js +1 -1
  49. package/lib/commands/codegen/index.js +1 -1
  50. package/lib/commands/codegen/sdk.js +1 -1
  51. package/lib/commands/codegen/sql.js +1 -1
  52. package/lib/commands/common/app-registry.js +1 -1
  53. package/lib/commands/common/app-selector.js +1 -1
  54. package/lib/commands/common/async-task.js +1 -1
  55. package/lib/commands/common/dry-run.js +1 -1
  56. package/lib/commands/common/flags.js +1 -1
  57. package/lib/commands/common/local-file.js +1 -1
  58. package/lib/commands/common/validate.js +1 -1
  59. package/lib/commands/config/delete.js +1 -1
  60. package/lib/commands/config/get.js +1 -1
  61. package/lib/commands/config/index.js +1 -1
  62. package/lib/commands/config/init.js +1 -1
  63. package/lib/commands/config/list.js +1 -1
  64. package/lib/commands/config/set.js +1 -1
  65. package/lib/commands/config/shared.js +1 -1
  66. package/lib/commands/dataset/batch-design.js +1 -1
  67. package/lib/commands/dataset/business-group-update.js +1 -1
  68. package/lib/commands/dataset/business-groups.js +1 -1
  69. package/lib/commands/dataset/capability.js +1 -1
  70. package/lib/commands/dataset/cross-relation-create.js +1 -1
  71. package/lib/commands/dataset/cross-relation-delete.js +1 -1
  72. package/lib/commands/dataset/cross-relation-list.js +1 -1
  73. package/lib/commands/dataset/cross-relation-shared.js +1 -1
  74. package/lib/commands/dataset/cross-relation-update.js +1 -1
  75. package/lib/commands/dataset/delete.js +1 -1
  76. package/lib/commands/dataset/design-context.js +1 -1
  77. package/lib/commands/dataset/design-start.js +1 -1
  78. package/lib/commands/dataset/design-status.js +1 -1
  79. package/lib/commands/dataset/design-sync-retry.js +1 -1
  80. package/lib/commands/dataset/design-sync-status.js +1 -1
  81. package/lib/commands/dataset/design-validate.js +1 -1
  82. package/lib/commands/dataset/detail.js +1 -1
  83. package/lib/commands/dataset/extend-update.js +1 -1
  84. package/lib/commands/dataset/field-restore.js +1 -1
  85. package/lib/commands/dataset/field-update.js +1 -1
  86. package/lib/commands/dataset/generate.js +1 -1
  87. package/lib/commands/dataset/index.js +1 -1
  88. package/lib/commands/dataset/list.js +1 -1
  89. package/lib/commands/dataset/operations.js +1 -1
  90. package/lib/commands/dataset/relation-audit.js +1 -1
  91. package/lib/commands/dataset/relation-create.js +1 -1
  92. package/lib/commands/dataset/relation-delete.js +1 -1
  93. package/lib/commands/dataset/relation-shared.js +1 -1
  94. package/lib/commands/dataset/relation-update.js +1 -1
  95. package/lib/commands/dataset/relations.js +1 -1
  96. package/lib/commands/dataset/rename.js +1 -1
  97. package/lib/commands/dataset/restore.js +1 -1
  98. package/lib/commands/dataset/user-deleted-field-list.js +1 -1
  99. package/lib/commands/db/analysis-batching.js +1 -1
  100. package/lib/commands/db/analyze-batch-plan.js +1 -1
  101. package/lib/commands/db/analyze-cancel.js +1 -1
  102. package/lib/commands/db/analyze-start.js +1 -1
  103. package/lib/commands/db/analyze-status.js +1 -1
  104. package/lib/commands/db/create.js +1 -1
  105. package/lib/commands/db/cross-db-analysis-shared.js +1 -1
  106. package/lib/commands/db/cross-db-analyze-latest.js +1 -1
  107. package/lib/commands/db/cross-db-analyze-start.js +1 -1
  108. package/lib/commands/db/cross-db-analyze-status.js +1 -1
  109. package/lib/commands/db/delete.js +1 -1
  110. package/lib/commands/db/detail.js +1 -1
  111. package/lib/commands/db/diff-refresh-start.js +1 -1
  112. package/lib/commands/db/diff-refresh-status.js +1 -1
  113. package/lib/commands/db/diff.js +1 -1
  114. package/lib/commands/db/index.js +1 -1
  115. package/lib/commands/db/list.js +1 -1
  116. package/lib/commands/db/shared.js +1 -1
  117. package/lib/commands/db/table-diff-shared.js +1 -1
  118. package/lib/commands/db/tables.js +1 -1
  119. package/lib/commands/db/test.js +1 -1
  120. package/lib/commands/db/update.js +1 -1
  121. package/lib/commands/deployment/index.js +1 -1
  122. package/lib/commands/deployment/sync-all.js +1 -1
  123. package/lib/commands/deployment/sync-jobs.js +1 -1
  124. package/lib/commands/deployment/sync-status.js +1 -1
  125. package/lib/commands/doctor.js +1 -1
  126. package/lib/commands/file/index.js +1 -1
  127. package/lib/commands/flow/create.js +1 -1
  128. package/lib/commands/flow/detail.js +1 -1
  129. package/lib/commands/flow/index.js +1 -1
  130. package/lib/commands/flow/list.js +1 -1
  131. package/lib/commands/flow/page-list.js +1 -1
  132. package/lib/commands/flow/publish.js +1 -1
  133. package/lib/commands/flow/runtime-resources-shared.js +1 -1
  134. package/lib/commands/flow/runtime-role-list.js +1 -1
  135. package/lib/commands/flow/runtime-role-user-list.js +1 -1
  136. package/lib/commands/flow/runtime-user-search.js +1 -1
  137. package/lib/commands/flow/shared.js +1 -1
  138. package/lib/commands/flow/update.js +1 -1
  139. package/lib/commands/flow/validate.js +1 -1
  140. package/lib/commands/instant-api-policy/current.js +1 -1
  141. package/lib/commands/instant-api-policy/index.js +1 -1
  142. package/lib/commands/instant-api-policy/init.js +1 -1
  143. package/lib/commands/instant-api-policy/publish.js +1 -1
  144. package/lib/commands/instant-api-policy/pull.js +1 -1
  145. package/lib/commands/instant-api-policy/revision.js +1 -1
  146. package/lib/commands/instant-api-policy/revisions.js +1 -1
  147. package/lib/commands/instant-api-policy/rollback.js +1 -1
  148. package/lib/commands/instant-api-policy/shared.js +1 -1
  149. package/lib/commands/instant-api-policy/validate.js +1 -1
  150. package/lib/commands/issue/context.js +1 -1
  151. package/lib/commands/issue/index.js +1 -1
  152. package/lib/commands/issue/nudge.js +1 -1
  153. package/lib/commands/issue/report.js +1 -1
  154. package/lib/commands/kb/create.js +1 -1
  155. package/lib/commands/kb/delete.js +1 -1
  156. package/lib/commands/kb/detail.js +1 -1
  157. package/lib/commands/kb/index.js +1 -1
  158. package/lib/commands/kb/list.js +1 -1
  159. package/lib/commands/kb/search.js +1 -1
  160. package/lib/commands/kb/shared.js +1 -1
  161. package/lib/commands/kb/update.js +1 -1
  162. package/lib/commands/logs/index.js +1 -1
  163. package/lib/commands/menu/asset-update.js +1 -1
  164. package/lib/commands/menu/delete.js +1 -1
  165. package/lib/commands/menu/external-link-create.js +1 -1
  166. package/lib/commands/menu/external-link-update.js +1 -1
  167. package/lib/commands/menu/group-create.js +1 -1
  168. package/lib/commands/menu/group-update.js +1 -1
  169. package/lib/commands/menu/index.js +1 -1
  170. package/lib/commands/menu/list.js +1 -1
  171. package/lib/commands/menu/move.js +1 -1
  172. package/lib/commands/menu/regroup-start.js +1 -1
  173. package/lib/commands/menu/rename.js +1 -1
  174. package/lib/commands/menu/shared/compare-table.js +1 -1
  175. package/lib/commands/menu/shared/delete-plan.js +1 -1
  176. package/lib/commands/menu/shared/facts.js +1 -1
  177. package/lib/commands/menu/shared/index.js +1 -1
  178. package/lib/commands/menu/shared/inquirer.js +1 -1
  179. package/lib/commands/menu/shared/local-pages.js +1 -1
  180. package/lib/commands/menu/shared/logic.js +1 -1
  181. package/lib/commands/menu/shared/mutations.js +1 -1
  182. package/lib/commands/menu/shared/path.js +1 -1
  183. package/lib/commands/menu/shared/service.js +1 -1
  184. package/lib/commands/menu/shared/subapp-assets.js +1 -1
  185. package/lib/commands/menu/shared/sync-core.js +1 -1
  186. package/lib/commands/menu/shared/update-core.js +1 -1
  187. package/lib/commands/menu/shared/valid-url.js +1 -1
  188. package/lib/commands/menu/subapp-assets-status.js +1 -1
  189. package/lib/commands/menu/subapp-assets-update.js +1 -1
  190. package/lib/commands/menu/sync.js +1 -1
  191. package/lib/commands/menu/visibility-update.js +1 -1
  192. package/lib/commands/notification/config-create.js +1 -1
  193. package/lib/commands/notification/config-delete.js +1 -1
  194. package/lib/commands/notification/config-list.js +1 -1
  195. package/lib/commands/notification/config-update.js +1 -1
  196. package/lib/commands/notification/index.js +1 -1
  197. package/lib/commands/notification/shared.js +1 -1
  198. package/lib/commands/ocr/index.js +1 -1
  199. package/lib/commands/page/create.js +1 -1
  200. package/lib/commands/page/custom/detail.js +1 -1
  201. package/lib/commands/page/custom/list.js +1 -1
  202. package/lib/commands/page/custom/publish.js +1 -1
  203. package/lib/commands/page/custom/shared.js +1 -1
  204. package/lib/commands/page/custom/syntax.js +1 -1
  205. package/lib/commands/page/custom/update.js +1 -1
  206. package/lib/commands/page/data-list-status.js +1 -1
  207. package/lib/commands/page/generate-start.js +1 -1
  208. package/lib/commands/page/generate-status.js +1 -1
  209. package/lib/commands/page/index.js +1 -1
  210. package/lib/commands/page/pull.js +1 -1
  211. package/lib/commands/page/push.js +1 -1
  212. package/lib/commands/page/relation-audit.js +1 -1
  213. package/lib/commands/page/restore.js +1 -1
  214. package/lib/commands/page/shared.js +1 -1
  215. package/lib/commands/page/sync.js +1 -1
  216. package/lib/commands/project/api-architecture-upgrade.js +1 -1
  217. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  218. package/lib/commands/project/create/format-elapsed.js +1 -1
  219. package/lib/commands/project/create/main.js +1 -1
  220. package/lib/commands/project/create/materialize-project-template.js +1 -1
  221. package/lib/commands/project/create/project-name.js +1 -1
  222. package/lib/commands/project/create/project-template-archive.js +1 -1
  223. package/lib/commands/project/create/project-template-path.js +1 -1
  224. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  225. package/lib/commands/project/create/use-format-code.js +1 -1
  226. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  227. package/lib/commands/project/domain-routing-sync.js +1 -1
  228. package/lib/commands/project/index.js +1 -1
  229. package/lib/commands/project/upgrade.js +1 -1
  230. package/lib/commands/registry.js +1 -1
  231. package/lib/commands/role/delete.js +1 -1
  232. package/lib/commands/role/detail.js +1 -1
  233. package/lib/commands/role/index.js +1 -1
  234. package/lib/commands/role/list.js +1 -1
  235. package/lib/commands/role/shared.js +1 -1
  236. package/lib/commands/role/update.js +1 -1
  237. package/lib/commands/role/user-add.js +1 -1
  238. package/lib/commands/role/user-remove.js +1 -1
  239. package/lib/commands/role/user-resolve.js +1 -1
  240. package/lib/commands/rule/get.js +1 -1
  241. package/lib/commands/rule/index.js +1 -1
  242. package/lib/commands/rule/list.js +1 -1
  243. package/lib/commands/rule/set.js +1 -1
  244. package/lib/commands/rule/shared.js +1 -1
  245. package/lib/commands/run/index.js +1 -1
  246. package/lib/commands/schema.js +1 -1
  247. package/lib/commands/sql/create.js +1 -1
  248. package/lib/commands/sql/delete.js +1 -1
  249. package/lib/commands/sql/detail.js +1 -1
  250. package/lib/commands/sql/exec.js +1 -1
  251. package/lib/commands/sql/index.js +1 -1
  252. package/lib/commands/sql/list.js +1 -1
  253. package/lib/commands/sql/pull.js +1 -1
  254. package/lib/commands/sql/push.js +1 -1
  255. package/lib/commands/sql/shared.js +1 -1
  256. package/lib/commands/sql/status.js +1 -1
  257. package/lib/commands/sql/validate.js +1 -1
  258. package/lib/commands/task/index.js +1 -1
  259. package/lib/commands/task/status.js +1 -1
  260. package/lib/commands/tenant/index.js +1 -1
  261. package/lib/commands/tenant/members-list.js +1 -1
  262. package/lib/commands/tenant/shared.js +1 -1
  263. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  264. package/lib/commands/user-account/feishu-bind.js +1 -1
  265. package/lib/commands/user-account/index.js +1 -1
  266. package/lib/commands/workspace/add.js +1 -1
  267. package/lib/commands/workspace/index.js +1 -1
  268. package/lib/commands/workspace/remove.js +1 -1
  269. package/lib/config/domain-config.js +1 -1
  270. package/lib/config/project-domain-routing.js +1 -1
  271. package/lib/config/region-config.js +1 -1
  272. package/lib/config/schema.js +1 -1
  273. package/lib/constant/cdn.js +1 -1
  274. package/lib/constant/cli.js +1 -1
  275. package/lib/constant/defaults.js +1 -1
  276. package/lib/constant/domain.js +1 -1
  277. package/lib/constant/env.js +1 -1
  278. package/lib/constant/output.js +1 -1
  279. package/lib/constant/paths.js +1 -1
  280. package/lib/constant/region.js +1 -1
  281. package/lib/constant/risk.js +1 -1
  282. package/lib/constant/routing-profile.js +1 -1
  283. package/lib/context/app-resolver.js +1 -1
  284. package/lib/context/auth-resolver.js +1 -1
  285. package/lib/context/config-loader.js +1 -1
  286. package/lib/context.js +1 -1
  287. package/lib/core/alias-resolver.js +1 -1
  288. package/lib/core/api-client.js +1 -1
  289. package/lib/core/bff/config.js +1 -1
  290. package/lib/core/bff/file-system.js +1 -1
  291. package/lib/core/bff/hash.js +1 -1
  292. package/lib/core/bff/hook-directory.js +1 -1
  293. package/lib/core/bff/lock.js +1 -1
  294. package/lib/core/bff/utils.js +1 -1
  295. package/lib/core/cross-db-analysis.js +1 -1
  296. package/lib/core/cross-db-relation.js +1 -1
  297. package/lib/core/db-resolver.js +1 -1
  298. package/lib/core/flow-config.js +1 -1
  299. package/lib/core/instant-api-policy/config.js +1 -1
  300. package/lib/core/instant-api-policy/endpoints.js +1 -1
  301. package/lib/core/kb-management-client.js +1 -1
  302. package/lib/core/kb-search-client.js +1 -1
  303. package/lib/core/page/file-system.js +1 -1
  304. package/lib/core/page/hash.js +1 -1
  305. package/lib/core/page/lock.js +1 -1
  306. package/lib/core/page/lr-smart-jsx.js +1 -1
  307. package/lib/core/sql-index-auditor.js +1 -1
  308. package/lib/core/sql-sync/config.js +1 -1
  309. package/lib/core/sql-sync/file-system.js +1 -1
  310. package/lib/core/sql-sync/hash.js +1 -1
  311. package/lib/core/sql-sync/lock.js +1 -1
  312. package/lib/core/sql-sync/utils.js +1 -1
  313. package/lib/core/sql-validator.js +1 -1
  314. package/lib/errors.js +1 -1
  315. package/lib/framework/build-all-flags.js +1 -1
  316. package/lib/framework/error-output.js +1 -1
  317. package/lib/framework/explicit-yes.js +1 -1
  318. package/lib/framework/flags.js +1 -1
  319. package/lib/framework/help.js +1 -1
  320. package/lib/framework/index.js +1 -1
  321. package/lib/framework/output.js +1 -1
  322. package/lib/framework/response.js +1 -1
  323. package/lib/framework/runner-alias.js +1 -1
  324. package/lib/framework/runner.js +1 -1
  325. package/lib/framework/schema-export.js +1 -1
  326. package/lib/framework/supported-flags.js +1 -1
  327. package/lib/framework/types.js +1 -1
  328. package/lib/generated/build-info.d.ts +4 -4
  329. package/lib/generated/build-info.js +1 -1
  330. package/lib/generated/official-routing.js +1 -1
  331. package/lib/generated/routing-contract.js +1 -1
  332. package/lib/help.js +1 -1
  333. package/lib/postinstall.js +1 -1
  334. package/lib/runtime/confirmation.js +1 -1
  335. package/lib/runtime/event.js +1 -1
  336. package/lib/runtime/index.js +1 -1
  337. package/lib/runtime/queue.js +1 -1
  338. package/lib/runtime/resolve.js +1 -1
  339. package/lib/services/dataset-design/checkpoint.js +1 -1
  340. package/lib/services/dataset-design/commands.js +1 -1
  341. package/lib/services/dataset-design/contract.js +1 -1
  342. package/lib/skills/builtin-skill.js +1 -1
  343. package/lib/skills/main.js +1 -1
  344. package/lib/skills/npx-skills-add.js +1 -1
  345. package/lib/skills/skill-presence.js +1 -1
  346. package/lib/telemetry/cli-command-trace.js +1 -1
  347. package/lib/telemetry/cli-help-trace.js +1 -1
  348. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  349. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  350. package/lib/telemetry/send-cli-trace-log.js +1 -1
  351. package/lib/utils/ai_config.js +1 -1
  352. package/lib/utils/apply-jq-filter.js +1 -1
  353. package/lib/utils/cdn-config.js +1 -1
  354. package/lib/utils/check-sdk-version.js +1 -1
  355. package/lib/utils/cli-version-check.js +1 -1
  356. package/lib/utils/cli-version-policy.js +1 -1
  357. package/lib/utils/config.js +1 -1
  358. package/lib/utils/entity-with-id.js +1 -1
  359. package/lib/utils/file-utils.js +1 -1
  360. package/lib/utils/guides-cdn.js +1 -1
  361. package/lib/utils/http-client.js +1 -1
  362. package/lib/utils/is-non-interactive.js +1 -1
  363. package/lib/utils/logger.js +1 -1
  364. package/lib/utils/params.js +1 -1
  365. package/lib/utils/platform.js +1 -1
  366. package/lib/utils/sleep.js +1 -1
  367. package/lib/utils/template-replacer.js +1 -1
  368. package/lib/utils/update-notice.js +1 -1
  369. package/lib/utils/version.js +1 -1
  370. package/lib/utils/with-active-cookie.js +1 -1
  371. package/lib/utils/write-cli-side-channel.js +1 -1
  372. package/package.json +1 -1
  373. package/skills/rabetbase/SKILL.md +1 -1
  374. package/skills/rabetbase-dataset-generation/SKILL.md +1 -1
  375. package/skills/rabetbase-page-generation/SKILL.md +1 -1
  376. package/skills/rabetbase.manifest.json +3 -3
@@ -1 +1 @@
1
- const a112_0x64b912=a112_0x1212;(function(_0x1682fc,_0x24b3c5){const _0x403351=a112_0x1212,_0x392174=_0x1682fc();while(!![]){try{const _0x355f4e=parseInt(_0x403351(0x126))/0x1+-parseInt(_0x403351(0x135))/0x2+parseInt(_0x403351(0x123))/0x3*(-parseInt(_0x403351(0x145))/0x4)+parseInt(_0x403351(0x121))/0x5*(parseInt(_0x403351(0x138))/0x6)+-parseInt(_0x403351(0x142))/0x7*(-parseInt(_0x403351(0x12d))/0x8)+-parseInt(_0x403351(0x12c))/0x9+parseInt(_0x403351(0x143))/0xa*(parseInt(_0x403351(0x130))/0xb);if(_0x355f4e===_0x24b3c5)break;else _0x392174['push'](_0x392174['shift']());}catch(_0x138b70){_0x392174['push'](_0x392174['shift']());}}}(a112_0x2620,0x82bf7));import{getDbTableDiff}from'../../core/api-client.js';function a112_0x2620(){const _0x69dd1a=['filter','12FHAIQX','fieldDiff','diff','318478IvNfyQ','totalCount','table','datasetTableCount','diffType','Compare\x20datasets\x20with\x20physical\x20database\x20tables\x20and\x20show\x20schema\x20drift','144594PVFSSg','27696haXPpx','num','number','22HCbiJC','deletedColumns','appCode','modifiedColumns','str','1004130hRGzPU','physicalTableCount','boolean','66714rtbhBS','\x20(db\x20link\x20','page','Fetch\x20and\x20aggregate\x20every\x20page\x20(overrides\x20--page\x20and\x20--pagesize)','tableName','tableList','pagesize','all','NEW_TABLE','Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)','1281fxIWyY','3988570QOdOkw','map','918444dEwahT','read','Page\x20size','DELETED_TABLE','MODIFIED_TABLE','summary','\x20changed\x20table\x20row(s),\x20total\x20','100ixJokL'];a112_0x2620=function(){return _0x69dd1a;};return a112_0x2620();}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 a112_0x1212(_0x49dd4a,_0xd45d5f){_0x49dd4a=_0x49dd4a-0x11f;const _0x262007=a112_0x2620();let _0x1212fd=_0x262007[_0x49dd4a];return _0x1212fd;}export const dbDiff={'service':'db','command':a112_0x64b912(0x125),'description':a112_0x64b912(0x12b),'risk':a112_0x64b912(0x146),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a112_0x64b912(0x128),'type':'string','description':a112_0x64b912(0x141)},{'name':a112_0x64b912(0x13a),'type':a112_0x64b912(0x12f),'description':'Page\x20index\x20(1-based)','default':0x1},{'name':a112_0x64b912(0x13e),'type':a112_0x64b912(0x12f),'description':a112_0x64b912(0x147),'default':0x14},{'name':a112_0x64b912(0x13f),'type':a112_0x64b912(0x137),'description':a112_0x64b912(0x13b)}],async 'execute'(_0x496eed){const _0x49e25b=a112_0x64b912,_0x5a5aa9=_0x496eed[_0x49e25b(0x12e)]('id'),_0x28df1e=_0x496eed['bool'](_0x49e25b(0x13f)),_0x5a6233=_0x28df1e?0x1:_0x496eed[_0x49e25b(0x12e)](_0x49e25b(0x13a),0x1)||0x1,_0x1bab4d=_0x28df1e?DB_TABLE_PAGE_SIZE:_0x496eed[_0x49e25b(0x12e)](_0x49e25b(0x13e),0x14)||0x14,_0x31df5d=_0x496eed[_0x49e25b(0x134)](_0x49e25b(0x128))||undefined,_0x3d0e1c=_0x28df1e?await getAllDbTableDiff(getDbTableDiff,_0x496eed[_0x49e25b(0x132)],_0x5a5aa9,_0x31df5d):await getDbTableDiff(_0x496eed[_0x49e25b(0x132)],_0x5a5aa9,{'pageIndex':_0x5a6233,'pageSize':_0x1bab4d,'tableName':_0x31df5d}),_0x116c0f=_0x3d0e1c[_0x49e25b(0x13d)],_0x4c6ba0=summarizeDbTableDiff(_0x116c0f),_0x1eca24=_0x116c0f['filter'](_0x1dfeb2=>_0x1dfeb2[_0x49e25b(0x12a)]===_0x49e25b(0x140)||_0x1dfeb2[_0x49e25b(0x12a)]==='MODIFIED_TABLE')[_0x49e25b(0x144)](_0x2be0b7=>_0x2be0b7[_0x49e25b(0x13c)]),_0x5cdc33=_0x116c0f[_0x49e25b(0x122)](_0x9c0389=>_0x9c0389[_0x49e25b(0x12a)]===_0x49e25b(0x148))[_0x49e25b(0x144)](_0x214d95=>_0x214d95['tableName']),_0x54adb9=_0x116c0f['filter'](_0x5737b0=>_0x5737b0[_0x49e25b(0x12a)]===_0x49e25b(0x149))[_0x49e25b(0x144)](_0x55b5a9=>({'tableName':_0x55b5a9[_0x49e25b(0x13c)],'addedColumns':_0x55b5a9[_0x49e25b(0x124)]?.['addedColumns']??[],'deletedColumns':_0x55b5a9[_0x49e25b(0x124)]?.[_0x49e25b(0x131)]??[],'modifiedColumns':_0x55b5a9[_0x49e25b(0x124)]?.[_0x49e25b(0x133)]??[]}));return{'ok':!![],'data':{'dbLinkId':_0x5a5aa9,'page':_0x5a6233,'pageSize':_0x1bab4d,'totalCount':_0x3d0e1c[_0x49e25b(0x127)],...typeof _0x3d0e1c['physicalTableCount']==='number'?{'physicalTableCount':_0x3d0e1c[_0x49e25b(0x136)]}:{},...typeof _0x3d0e1c[_0x49e25b(0x129)]===_0x49e25b(0x12f)?{'datasetTableCount':_0x3d0e1c[_0x49e25b(0x129)]}:{},..._0x3d0e1c[_0x49e25b(0x11f)]?{'summary':_0x3d0e1c['summary']}:{},'summaryByType':_0x4c6ba0,'toAnalyzeTables':_0x1eca24,'deletedTables':_0x5cdc33,'modifiedFieldDiffs':_0x54adb9,'tables':_0x116c0f},'message':_0x116c0f['length']+_0x49e25b(0x120)+_0x3d0e1c['totalCount']+_0x49e25b(0x139)+_0x5a5aa9+')'};}};
1
+ const a112_0x2bfd88=a112_0x35c4;function a112_0x35c4(_0x84db7,_0x2c078a){_0x84db7=_0x84db7-0x11b;const _0x691014=a112_0x6910();let _0x35c4d7=_0x691014[_0x84db7];return _0x35c4d7;}(function(_0x30aa12,_0x1deab7){const _0x172a5e=a112_0x35c4,_0xa46403=_0x30aa12();while(!![]){try{const _0x13da0a=parseInt(_0x172a5e(0x13f))/0x1+parseInt(_0x172a5e(0x129))/0x2+-parseInt(_0x172a5e(0x13b))/0x3*(parseInt(_0x172a5e(0x11b))/0x4)+parseInt(_0x172a5e(0x131))/0x5+parseInt(_0x172a5e(0x12b))/0x6+parseInt(_0x172a5e(0x124))/0x7*(parseInt(_0x172a5e(0x120))/0x8)+-parseInt(_0x172a5e(0x12a))/0x9*(parseInt(_0x172a5e(0x128))/0xa);if(_0x13da0a===_0x1deab7)break;else _0xa46403['push'](_0xa46403['shift']());}catch(_0x5e0eb5){_0xa46403['push'](_0xa46403['shift']());}}}(a112_0x6910,0xe290c));import{getDbTableDiff}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a112_0x6910(){const _0x4740cd=['Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)','NEW_TABLE','num','2310NPhOZn','2589822cVIVZd','135531mnksqh','1096116OStuHy','addedColumns','summary','filter','MODIFIED_TABLE','length','6094260MhsIUn','page','tableName','deletedColumns','bool','str','table','all','\x20(db\x20link\x20','modifiedColumns','3YnDaqW','fieldDiff','diffType','appCode','678090UgNJxs','370756jHdIQc','diff','number','Fetch\x20and\x20aggregate\x20every\x20page\x20(overrides\x20--page\x20and\x20--pagesize)','map','4936rIBUNR','Compare\x20datasets\x20with\x20physical\x20database\x20tables\x20and\x20show\x20schema\x20drift','datasetTableCount','physicalTableCount','12761bSTgpe'];a112_0x6910=function(){return _0x4740cd;};return a112_0x6910();}import{DB_TABLE_PAGE_SIZE,getAllDbTableDiff,summarizeDbTableDiff}from'../../commands/db/table-diff-shared.js';export const dbDiff={'service':'db','command':a112_0x2bfd88(0x11c),'description':a112_0x2bfd88(0x121),'risk':'read','flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a112_0x2bfd88(0x137),'type':'string','description':a112_0x2bfd88(0x125)},{'name':a112_0x2bfd88(0x132),'type':a112_0x2bfd88(0x11d),'description':'Page\x20index\x20(1-based)','default':0x1},{'name':'pagesize','type':'number','description':'Page\x20size','default':0x14},{'name':'all','type':'boolean','description':a112_0x2bfd88(0x11e)}],async 'execute'(_0x221e59){const _0x208de3=a112_0x2bfd88,_0x1be7f4=_0x221e59['num']('id'),_0x279e0d=_0x221e59[_0x208de3(0x135)](_0x208de3(0x138)),_0x26b88e=_0x279e0d?0x1:_0x221e59['num'](_0x208de3(0x132),0x1)||0x1,_0x416a91=_0x279e0d?DB_TABLE_PAGE_SIZE:_0x221e59[_0x208de3(0x127)]('pagesize',0x14)||0x14,_0x41b46a=_0x221e59[_0x208de3(0x136)](_0x208de3(0x137))||undefined,_0xe76397=_0x279e0d?await getAllDbTableDiff(getDbTableDiff,_0x221e59[_0x208de3(0x13e)],_0x1be7f4,_0x41b46a):await getDbTableDiff(_0x221e59['appCode'],_0x1be7f4,{'pageIndex':_0x26b88e,'pageSize':_0x416a91,'tableName':_0x41b46a}),_0x40613f=_0xe76397['tableList'],_0x10a785=summarizeDbTableDiff(_0x40613f),_0x4b38eb=_0x40613f[_0x208de3(0x12e)](_0x3264b4=>_0x3264b4['diffType']===_0x208de3(0x126)||_0x3264b4[_0x208de3(0x13d)]===_0x208de3(0x12f))[_0x208de3(0x11f)](_0x449518=>_0x449518[_0x208de3(0x133)]),_0x27bed2=_0x40613f[_0x208de3(0x12e)](_0x228ff4=>_0x228ff4[_0x208de3(0x13d)]==='DELETED_TABLE')[_0x208de3(0x11f)](_0x5073e5=>_0x5073e5[_0x208de3(0x133)]),_0x13a093=_0x40613f[_0x208de3(0x12e)](_0x10b13a=>_0x10b13a[_0x208de3(0x13d)]===_0x208de3(0x12f))[_0x208de3(0x11f)](_0x26472f=>({'tableName':_0x26472f[_0x208de3(0x133)],'addedColumns':_0x26472f[_0x208de3(0x13c)]?.[_0x208de3(0x12c)]??[],'deletedColumns':_0x26472f[_0x208de3(0x13c)]?.[_0x208de3(0x134)]??[],'modifiedColumns':_0x26472f[_0x208de3(0x13c)]?.[_0x208de3(0x13a)]??[]}));return{'ok':!![],'data':{'dbLinkId':_0x1be7f4,'page':_0x26b88e,'pageSize':_0x416a91,'totalCount':_0xe76397['totalCount'],...typeof _0xe76397[_0x208de3(0x123)]==='number'?{'physicalTableCount':_0xe76397['physicalTableCount']}:{},...typeof _0xe76397[_0x208de3(0x122)]===_0x208de3(0x11d)?{'datasetTableCount':_0xe76397[_0x208de3(0x122)]}:{},..._0xe76397[_0x208de3(0x12d)]?{'summary':_0xe76397[_0x208de3(0x12d)]}:{},'summaryByType':_0x10a785,'toAnalyzeTables':_0x4b38eb,'deletedTables':_0x27bed2,'modifiedFieldDiffs':_0x13a093,'tables':_0x40613f},'message':_0x40613f[_0x208de3(0x130)]+'\x20changed\x20table\x20row(s),\x20total\x20'+_0xe76397['totalCount']+_0x208de3(0x139)+_0x1be7f4+')'};}};
@@ -1 +1 @@
1
- (function(_0x2f2ab5,_0x541e5a){const _0x2f1645=a113_0x4e13,_0x4bae09=_0x2f2ab5();while(!![]){try{const _0x2387cc=parseInt(_0x2f1645(0x131))/0x1*(-parseInt(_0x2f1645(0x138))/0x2)+parseInt(_0x2f1645(0x136))/0x3*(parseInt(_0x2f1645(0x130))/0x4)+-parseInt(_0x2f1645(0x134))/0x5+-parseInt(_0x2f1645(0x12f))/0x6*(parseInt(_0x2f1645(0x133))/0x7)+-parseInt(_0x2f1645(0x12e))/0x8+-parseInt(_0x2f1645(0x132))/0x9*(parseInt(_0x2f1645(0x135))/0xa)+parseInt(_0x2f1645(0x137))/0xb;if(_0x2387cc===_0x541e5a)break;else _0x4bae09['push'](_0x4bae09['shift']());}catch(_0x28ec80){_0x4bae09['push'](_0x4bae09['shift']());}}}(a113_0x5609,0xd223e));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';function a113_0x4e13(_0x42f11a,_0xa56dd2){_0x42f11a=_0x42f11a-0x12e;const _0x5609b4=a113_0x5609();let _0x4e1359=_0x5609b4[_0x42f11a];return _0x4e1359;}import{dbAnalyzeCancel}from'../../commands/db/analyze-cancel.js';import{dbAnalyzeStatus}from'../../commands/db/analyze-status.js';import{dbCrossAnalyzeStart}from'../../commands/db/cross-db-analyze-start.js';import{dbCrossAnalyzeStatus}from'../../commands/db/cross-db-analyze-status.js';import{dbCrossAnalyzeLatest}from'../../commands/db/cross-db-analyze-latest.js';import{dbTables}from'../../commands/db/tables.js';function a113_0x5609(){const _0x2f31b1=['3598335VDLYWV','49anwhXg','2128770WHVKXb','10hcUuuL','2596617SGdJkk','38126242DWYHcr','18sHxHHg','1211456Edpmqp','961854gVuLnr','4hlqYnj','152407FwEjWH'];a113_0x5609=function(){return _0x2f31b1;};return a113_0x5609();}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,dbCrossAnalyzeStart,dbCrossAnalyzeStatus,dbCrossAnalyzeLatest,dbTables,dbDiff,dbDiffRefreshStart,dbDiffRefreshStatus];
1
+ function a113_0x265a(){const _0x4f028c=['3334345vRhtGx','13613544CyPLyX','604xYVANc','1171EBRCgF','729441tCObmy','32LFmsIu','35pCXDQQ','276906PNLulq','3440950grapTf','48zCegBU','9972qquXSt','33sNvXNC'];a113_0x265a=function(){return _0x4f028c;};return a113_0x265a();}(function(_0x549c70,_0x1f563f){const _0x3a7ab3=a113_0x3761,_0x5bc067=_0x549c70();while(!![]){try{const _0x28e981=parseInt(_0x3a7ab3(0x11c))/0x1*(-parseInt(_0x3a7ab3(0x11b))/0x2)+parseInt(_0x3a7ab3(0x116))/0x3*(-parseInt(_0x3a7ab3(0x117))/0x4)+-parseInt(_0x3a7ab3(0x119))/0x5+parseInt(_0x3a7ab3(0x120))/0x6*(-parseInt(_0x3a7ab3(0x11f))/0x7)+-parseInt(_0x3a7ab3(0x11e))/0x8*(parseInt(_0x3a7ab3(0x11d))/0x9)+-parseInt(_0x3a7ab3(0x121))/0xa*(-parseInt(_0x3a7ab3(0x118))/0xb)+parseInt(_0x3a7ab3(0x11a))/0xc;if(_0x28e981===_0x1f563f)break;else _0x5bc067['push'](_0x5bc067['shift']());}catch(_0x215f5d){_0x5bc067['push'](_0x5bc067['shift']());}}}(a113_0x265a,0x869e5));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{dbCrossAnalyzeStart}from'../../commands/db/cross-db-analyze-start.js';import{dbCrossAnalyzeStatus}from'../../commands/db/cross-db-analyze-status.js';function a113_0x3761(_0x359965,_0x559d32){_0x359965=_0x359965-0x116;const _0x265ae8=a113_0x265a();let _0x3761c5=_0x265ae8[_0x359965];return _0x3761c5;}import{dbCrossAnalyzeLatest}from'../../commands/db/cross-db-analyze-latest.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,dbCrossAnalyzeStart,dbCrossAnalyzeStatus,dbCrossAnalyzeLatest,dbTables,dbDiff,dbDiffRefreshStart,dbDiffRefreshStatus];
@@ -1 +1 @@
1
- const a114_0x4d6970=a114_0x21e6;function a114_0x21e6(_0xcccb5e,_0x1df665){_0xcccb5e=_0xcccb5e-0x163;const _0x2adc94=a114_0x2adc();let _0x21e638=_0x2adc94[_0xcccb5e];return _0x21e638;}(function(_0x237161,_0x4bf1f7){const _0x350cb9=a114_0x21e6,_0x35f93f=_0x237161();while(!![]){try{const _0x4ae847=parseInt(_0x350cb9(0x172))/0x1+-parseInt(_0x350cb9(0x17c))/0x2*(-parseInt(_0x350cb9(0x16a))/0x3)+-parseInt(_0x350cb9(0x178))/0x4*(-parseInt(_0x350cb9(0x168))/0x5)+-parseInt(_0x350cb9(0x166))/0x6+parseInt(_0x350cb9(0x16e))/0x7+parseInt(_0x350cb9(0x177))/0x8*(parseInt(_0x350cb9(0x16c))/0x9)+-parseInt(_0x350cb9(0x16b))/0xa;if(_0x4ae847===_0x4bf1f7)break;else _0x35f93f['push'](_0x35f93f['shift']());}catch(_0x23d077){_0x35f93f['push'](_0x35f93f['shift']());}}}(a114_0x2adc,0xbbc1d));function a114_0x2adc(){const _0x249dd1=['4698400LjNLsD','Page\x20index\x20(1-based)','Page\x20size','datasetDependency','1149445aljZno','pagesize','Server\x20omitted\x20paging\x20metadata;\x20totalCount\x20is\x20unknown\x20—\x20rowsOnPage\x20is\x20this\x20page\x20only','DB_TABLE','page','2616QNnUhb','87660wCkLHP','list','read','num','2yzuPWS','\x20database\x20connection(s)','Found\x20','appCode','4040694dXgFau','number','175mqKbfJ','all','693288ZxMfkr','24851210LIPIMe','30519cEuUcI','length'];a114_0x2adc=function(){return _0x249dd1;};return a114_0x2adc();}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':a114_0x4d6970(0x179),'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':a114_0x4d6970(0x17a),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a114_0x4d6970(0x176),'type':a114_0x4d6970(0x167),'description':a114_0x4d6970(0x16f),'default':0x1},{'name':a114_0x4d6970(0x173),'type':a114_0x4d6970(0x167),'description':a114_0x4d6970(0x170),'default':0x64}],async 'execute'(_0x5a03cc){const _0x1408bb=a114_0x4d6970,_0x7caf35=_0x5a03cc[_0x1408bb(0x17b)](_0x1408bb(0x176),0x1)||0x1,_0x61ef59=_0x5a03cc[_0x1408bb(0x17b)](_0x1408bb(0x173),0x64)||0x64,[{items:_0x4b11bf,paging:_0x7ddd9d},_0x3d7dcd]=await Promise[_0x1408bb(0x169)]([listDbLinks(_0x5a03cc[_0x1408bb(0x165)],{'currentPage':_0x7caf35,'pageSize':_0x61ef59}),listDatasets(_0x5a03cc[_0x1408bb(0x165)],{'source':_0x1408bb(0x175)})]),_0x14f267=_0x4b11bf['map'](_0x439011=>({...sanitizeDbLinkForOutput(_0x439011),'datasetDependency':buildDbDatasetDependency(_0x439011,_0x3d7dcd)[_0x1408bb(0x171)]})),_0x4c08ee=_0x7ddd9d?_0x7ddd9d:{'currentPage':_0x7caf35,'pageSize':_0x61ef59,'rowsOnPage':_0x14f267[_0x1408bb(0x16d)],'totalCount':null,'note':_0x1408bb(0x174)};return{'ok':!![],'data':{'connections':_0x14f267,'paging':_0x4c08ee},'message':_0x1408bb(0x164)+_0x14f267[_0x1408bb(0x16d)]+_0x1408bb(0x163)};}};
1
+ const a114_0x5a79c7=a114_0x2119;function a114_0x2119(_0x58470c,_0x2c9b55){_0x58470c=_0x58470c-0xae;const _0x56d555=a114_0x56d5();let _0x211949=_0x56d555[_0x58470c];return _0x211949;}(function(_0x20eff9,_0x4126f7){const _0x6d8a57=a114_0x2119,_0x4accd7=_0x20eff9();while(!![]){try{const _0x371ae5=parseInt(_0x6d8a57(0xc3))/0x1*(-parseInt(_0x6d8a57(0xb1))/0x2)+-parseInt(_0x6d8a57(0xb7))/0x3*(parseInt(_0x6d8a57(0xb9))/0x4)+parseInt(_0x6d8a57(0xc4))/0x5*(parseInt(_0x6d8a57(0xc5))/0x6)+parseInt(_0x6d8a57(0xb4))/0x7+parseInt(_0x6d8a57(0xb8))/0x8*(parseInt(_0x6d8a57(0xb6))/0x9)+parseInt(_0x6d8a57(0xbd))/0xa*(parseInt(_0x6d8a57(0xba))/0xb)+-parseInt(_0x6d8a57(0xb3))/0xc;if(_0x371ae5===_0x4126f7)break;else _0x4accd7['push'](_0x4accd7['shift']());}catch(_0x4661e4){_0x4accd7['push'](_0x4accd7['shift']());}}}(a114_0x56d5,0x928c8));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';function a114_0x56d5(){const _0x1bb3da=['page','\x20database\x20connection(s)','pagesize','DB_TABLE','30334ExjAHC','1150775UiOKZg','30SyqdBu','read','Page\x20index\x20(1-based)','number','62NffExS','length','3105516YvzPvd','3012919DUudwy','all','7308NgEqjm','36uIwwrq','4696yFVdPY','300552XXzcUL','7075541IpzYCZ','datasetDependency','appCode','10XgfWqj','list'];a114_0x56d5=function(){return _0x1bb3da;};return a114_0x56d5();}export const dbList={'service':'db','command':a114_0x5a79c7(0xbe),'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':a114_0x5a79c7(0xae),'flags':[APPCODE_FLAG_OPTIONAL,{'name':'page','type':a114_0x5a79c7(0xb0),'description':a114_0x5a79c7(0xaf),'default':0x1},{'name':a114_0x5a79c7(0xc1),'type':a114_0x5a79c7(0xb0),'description':'Page\x20size','default':0x64}],async 'execute'(_0x3e7b0a){const _0x185666=a114_0x5a79c7,_0x4b3edc=_0x3e7b0a['num'](_0x185666(0xbf),0x1)||0x1,_0x23fc12=_0x3e7b0a['num'](_0x185666(0xc1),0x64)||0x64,[{items:_0x1962a5,paging:_0x4ed28c},_0x1cb7d8]=await Promise[_0x185666(0xb5)]([listDbLinks(_0x3e7b0a[_0x185666(0xbc)],{'currentPage':_0x4b3edc,'pageSize':_0x23fc12}),listDatasets(_0x3e7b0a[_0x185666(0xbc)],{'source':_0x185666(0xc2)})]),_0x427c40=_0x1962a5['map'](_0xf27e47=>({...sanitizeDbLinkForOutput(_0xf27e47),'datasetDependency':buildDbDatasetDependency(_0xf27e47,_0x1cb7d8)[_0x185666(0xbb)]})),_0x4eaa2b=_0x4ed28c?_0x4ed28c:{'currentPage':_0x4b3edc,'pageSize':_0x23fc12,'rowsOnPage':_0x427c40[_0x185666(0xb2)],'totalCount':null,'note':'Server\x20omitted\x20paging\x20metadata;\x20totalCount\x20is\x20unknown\x20—\x20rowsOnPage\x20is\x20this\x20page\x20only'};return{'ok':!![],'data':{'connections':_0x427c40,'paging':_0x4eaa2b},'message':'Found\x20'+_0x427c40[_0x185666(0xb2)]+_0x185666(0xc0)};}};
@@ -1 +1 @@
1
- (function(_0x26059a,_0x36d2e2){const _0x4cbdbf=a115_0x46e7,_0x35f820=_0x26059a();while(!![]){try{const _0x5c5b24=-parseInt(_0x4cbdbf(0x116))/0x1*(parseInt(_0x4cbdbf(0xfa))/0x2)+parseInt(_0x4cbdbf(0x115))/0x3*(-parseInt(_0x4cbdbf(0x100))/0x4)+-parseInt(_0x4cbdbf(0x11d))/0x5*(parseInt(_0x4cbdbf(0x102))/0x6)+parseInt(_0x4cbdbf(0xff))/0x7*(parseInt(_0x4cbdbf(0x10b))/0x8)+parseInt(_0x4cbdbf(0x117))/0x9*(parseInt(_0x4cbdbf(0x101))/0xa)+-parseInt(_0x4cbdbf(0x110))/0xb*(parseInt(_0x4cbdbf(0xfe))/0xc)+parseInt(_0x4cbdbf(0x11c))/0xd*(parseInt(_0x4cbdbf(0x119))/0xe);if(_0x5c5b24===_0x36d2e2)break;else _0x35f820['push'](_0x35f820['shift']());}catch(_0x37081e){_0x35f820['push'](_0x35f820['shift']());}}}(a115_0x259d,0x1db21));import{testDbLinkConfigConnect}from'../../core/api-client.js';import{getAppBaseUrl}from'../../constant/domain.js';function a115_0x259d(){const _0x646542=['credential','map','hasAvailableDo','passwd','filter','token','tableName','473752UFrLlE','dbId','name','password','dbpassword','11BzStbt','dbtableConfig','number','authorization','secret','6ivnnOt','41863eOGfjV','492984UmxYSE','keys','7734356mWpwwp','toLowerCase','trim','13bEdtKe','11980gLjwyW','privatekey','/data/database','jdbcurl','2oxeeed','length','code','includes','2840364RfKdtE','7FvkMiB','215576ztGDgO','20sQDsQI','534pQjaOd','accesskey'];a115_0x259d=function(){return _0x646542;};return a115_0x259d();}import{CliErrors}from'../../errors.js';function shouldRedactKey(_0x2a487f){const _0x1f28fc=a115_0x46e7,_0x570cf8=_0x2a487f[_0x1f28fc(0x11a)]();if(_0x570cf8===_0x1f28fc(0x10e)||_0x570cf8===_0x1f28fc(0x107)||_0x570cf8===_0x1f28fc(0x10f))return!![];if(_0x570cf8[_0x1f28fc(0xfd)](_0x1f28fc(0x114))||_0x570cf8[_0x1f28fc(0xfd)](_0x1f28fc(0x109))||_0x570cf8['includes'](_0x1f28fc(0x104)))return!![];if(_0x570cf8['includes'](_0x1f28fc(0x11e))||_0x570cf8[_0x1f28fc(0xfd)](_0x1f28fc(0x103)))return!![];if(_0x570cf8===_0x1f28fc(0x113)||_0x570cf8==='connectionstring'||_0x570cf8===_0x1f28fc(0xf9))return!![];return![];}export function sanitizeDbLinkForOutput(_0x14e09f){const _0x30be99=a115_0x46e7,_0x14d863={..._0x14e09f};delete _0x14d863[_0x30be99(0x106)];for(const _0x21e846 of Object[_0x30be99(0x118)](_0x14d863)){if(!shouldRedactKey(_0x21e846))continue;const _0x408de8=_0x14d863[_0x21e846];_0x408de8!=null&&String(_0x408de8)[_0x30be99(0xfb)]>0x0&&(_0x14d863[_0x21e846]='[redacted]');}return _0x14d863;}export function sanitizeDbLinkList(_0x1a2ba9){const _0x29bae5=a115_0x46e7;return _0x1a2ba9[_0x29bae5(0x105)](_0x16c1f0=>sanitizeDbLinkForOutput(_0x16c1f0));}export function buildDbDatasetDependency(_0xa14387,_0x105999){const _0x9379a8=a115_0x46e7,_0x77e8ec=_0x105999[_0x9379a8(0x108)](_0x50d77d=>Number(_0x50d77d[_0x9379a8(0x111)]?.[_0x9379a8(0x10c)])===Number(_0xa14387['id']))['map'](_0x58a3b6=>({'id':_0x58a3b6['id'],'code':_0x58a3b6[_0x9379a8(0xfc)],'name':_0x58a3b6[_0x9379a8(0x10d)],..._0x58a3b6[_0x9379a8(0x111)]?.['tableName']?{'tableName':_0x58a3b6['dbtableConfig'][_0x9379a8(0x10a)]}:{}}));return{'datasetDependency':{'hasDependencies':_0x77e8ec[_0x9379a8(0xfb)]>0x0,'activeDatasetCount':_0x77e8ec['length']},'datasets':_0x77e8ec};}export async function assertDbLinkConnectionPreflight(_0x48f6cb){const _0x12e9f9=await testDbLinkConfigConnect(_0x48f6cb);if(_0x12e9f9!==!![])throw CliErrors['apiError']('Database\x20connection\x20preflight\x20failed.','The\x20configuration\x20was\x20not\x20saved.\x20Verify\x20the\x20host,\x20credentials,\x20database\x20name,\x20network,\x20and\x20allowlist,\x20or\x20explicitly\x20pass\x20--skip-connection-test.');}const DB_URL_PATTERN=/^[^\s:]+(?::\d+)?$/;function a115_0x46e7(_0x43a53e,_0x5455e7){_0x43a53e=_0x43a53e-0xf9;const _0x259de2=a115_0x259d();let _0x46e74d=_0x259de2[_0x43a53e];return _0x46e74d;}export function validateDbUrl(_0x5cda6f){const _0x1916c2=a115_0x46e7,_0x57ad7f=_0x5cda6f[_0x1916c2(0x11b)]();if(!_0x57ad7f)return![];return DB_URL_PATTERN['test'](_0x57ad7f);}export function buildDbPageLinks(_0x325a03,_0x14550b){const _0x1c0e85=a115_0x46e7,_0xe15bb3=_0x325a03?.[_0x1c0e85(0x11b)]();if(!_0xe15bb3)return undefined;const _0x3d253c=typeof _0x14550b===_0x1c0e85(0x112)?String(_0x14550b):String(_0x14550b??'')[_0x1c0e85(0x11b)]();if(!_0x3d253c)return undefined;const _0x337b94=Number(_0x3d253c);if(!Number['isFinite'](_0x337b94)||_0x337b94<=0x0)return undefined;const _0x219c25=getAppBaseUrl(_0xe15bb3),_0x58b9c4=encodeURIComponent(String(_0x337b94));return{'databasePage':_0x219c25+_0x1c0e85(0x11f),'erPage':_0x219c25+'/data/er?dbId='+_0x58b9c4};}
1
+ (function(_0x13d3c9,_0x1a6dbc){const _0x855b93=a115_0x4979,_0x28ea4c=_0x13d3c9();while(!![]){try{const _0x29faca=-parseInt(_0x855b93(0x17d))/0x1+parseInt(_0x855b93(0x193))/0x2*(-parseInt(_0x855b93(0x18e))/0x3)+parseInt(_0x855b93(0x18c))/0x4+parseInt(_0x855b93(0x17a))/0x5*(-parseInt(_0x855b93(0x192))/0x6)+parseInt(_0x855b93(0x18f))/0x7+-parseInt(_0x855b93(0x184))/0x8+-parseInt(_0x855b93(0x17e))/0x9*(-parseInt(_0x855b93(0x18b))/0xa);if(_0x29faca===_0x1a6dbc)break;else _0x28ea4c['push'](_0x28ea4c['shift']());}catch(_0x2ef7dd){_0x28ea4c['push'](_0x28ea4c['shift']());}}}(a115_0x5a19,0x49a39));function a115_0x5a19(){const _0x129aff=['11225637dnZZhs','dbtableConfig','/data/er?dbId=','test','length','toLowerCase','3693496jleXsp','dbpassword','authorization','map','filter','isFinite','name','10qOCQEG','1472728XfIiKi','connectionstring','1178325SjfOsR','996471PVuobT','Database\x20connection\x20preflight\x20failed.','trim','312EVotun','2FyTOrl','includes','code','tableName','The\x20configuration\x20was\x20not\x20saved.\x20Verify\x20the\x20host,\x20credentials,\x20database\x20name,\x20network,\x20and\x20allowlist,\x20or\x20explicitly\x20pass\x20--skip-connection-test.','hasAvailableDo','18885VLXMtc','passwd','/data/database','405337peQYOz'];a115_0x5a19=function(){return _0x129aff;};return a115_0x5a19();}import{testDbLinkConfigConnect}from'../../core/api-client.js';import{getAppBaseUrl}from'../../constant/domain.js';import{CliErrors}from'../../errors.js';function shouldRedactKey(_0x3beed8){const _0x5d6279=a115_0x4979,_0x16198e=_0x3beed8[_0x5d6279(0x183)]();if(_0x16198e==='password'||_0x16198e===_0x5d6279(0x17b)||_0x16198e===_0x5d6279(0x185))return!![];if(_0x16198e['includes']('secret')||_0x16198e[_0x5d6279(0x194)]('token')||_0x16198e[_0x5d6279(0x194)]('credential'))return!![];if(_0x16198e[_0x5d6279(0x194)]('privatekey')||_0x16198e['includes']('accesskey'))return!![];if(_0x16198e===_0x5d6279(0x186)||_0x16198e===_0x5d6279(0x18d)||_0x16198e==='jdbcurl')return!![];return![];}export function sanitizeDbLinkForOutput(_0x1ffb95){const _0xa11749=a115_0x4979,_0x291714={..._0x1ffb95};delete _0x291714[_0xa11749(0x179)];for(const _0x805bff of Object['keys'](_0x291714)){if(!shouldRedactKey(_0x805bff))continue;const _0xf6da36=_0x291714[_0x805bff];_0xf6da36!=null&&String(_0xf6da36)['length']>0x0&&(_0x291714[_0x805bff]='[redacted]');}return _0x291714;}export function sanitizeDbLinkList(_0x1c8c9c){const _0x2d991d=a115_0x4979;return _0x1c8c9c[_0x2d991d(0x187)](_0x575bc0=>sanitizeDbLinkForOutput(_0x575bc0));}export function buildDbDatasetDependency(_0x1e29ce,_0x45b05a){const _0x3f45f0=a115_0x4979,_0x3fbcbb=_0x45b05a[_0x3f45f0(0x188)](_0x1b1d6a=>Number(_0x1b1d6a['dbtableConfig']?.['dbId'])===Number(_0x1e29ce['id']))[_0x3f45f0(0x187)](_0x371148=>({'id':_0x371148['id'],'code':_0x371148[_0x3f45f0(0x195)],'name':_0x371148[_0x3f45f0(0x18a)],..._0x371148[_0x3f45f0(0x17f)]?.[_0x3f45f0(0x196)]?{'tableName':_0x371148[_0x3f45f0(0x17f)][_0x3f45f0(0x196)]}:{}}));return{'datasetDependency':{'hasDependencies':_0x3fbcbb[_0x3f45f0(0x182)]>0x0,'activeDatasetCount':_0x3fbcbb['length']},'datasets':_0x3fbcbb};}function a115_0x4979(_0x10402b,_0x1cbdc1){_0x10402b=_0x10402b-0x178;const _0x5a1973=a115_0x5a19();let _0x497972=_0x5a1973[_0x10402b];return _0x497972;}export async function assertDbLinkConnectionPreflight(_0xef0521){const _0xe3f47=a115_0x4979,_0x2243b6=await testDbLinkConfigConnect(_0xef0521);if(_0x2243b6!==!![])throw CliErrors['apiError'](_0xe3f47(0x190),_0xe3f47(0x178));}const DB_URL_PATTERN=/^[^\s:]+(?::\d+)?$/;export function validateDbUrl(_0x574a45){const _0x1474cf=a115_0x4979,_0xcf85ba=_0x574a45[_0x1474cf(0x191)]();if(!_0xcf85ba)return![];return DB_URL_PATTERN[_0x1474cf(0x181)](_0xcf85ba);}export function buildDbPageLinks(_0x1dcedf,_0x15f3fe){const _0xcfed53=a115_0x4979,_0x4d5f11=_0x1dcedf?.['trim']();if(!_0x4d5f11)return undefined;const _0x2d5a91=typeof _0x15f3fe==='number'?String(_0x15f3fe):String(_0x15f3fe??'')[_0xcfed53(0x191)]();if(!_0x2d5a91)return undefined;const _0x1b3904=Number(_0x2d5a91);if(!Number[_0xcfed53(0x189)](_0x1b3904)||_0x1b3904<=0x0)return undefined;const _0x30c147=getAppBaseUrl(_0x4d5f11),_0x58ddb1=encodeURIComponent(String(_0x1b3904));return{'databasePage':_0x30c147+_0xcfed53(0x17c),'erPage':_0x30c147+_0xcfed53(0x180)+_0x58ddb1};}
@@ -1 +1 @@
1
- function a116_0x1dc7(){const _0x549c4a=['1748934ArzGPU','datasetTableCount','4087533qYTKrO','set','diffType','totalCount','fromEntries','466322LruRNH','4lKBIsz','physicalTableCount','\x20row(s).','185694bamTmO','MODIFIED_TABLE','summary','Incomplete\x20db\x20table\x20pagination:\x20collected\x20','12197240edDCUq','5hZXvSt','40936TySpnF','tableName','validation','DELETED_TABLE','length','\x20of\x20','1683KuUiVq','size','number','8607172WzTBCT','map','values','filter','2UnLPal'];a116_0x1dc7=function(){return _0x549c4a;};return a116_0x1dc7();}const a116_0x19ecbc=a116_0x1683;function a116_0x1683(_0x509040,_0x9d4b26){_0x509040=_0x509040-0x8c;const _0x1dc75d=a116_0x1dc7();let _0x168332=_0x1dc75d[_0x509040];return _0x168332;}(function(_0x56fe60,_0x5a4e4c){const _0x5f55bc=a116_0x1683,_0x444adc=_0x56fe60();while(!![]){try{const _0x2def88=-parseInt(_0x5f55bc(0x9e))/0x1*(-parseInt(_0x5f55bc(0xa6))/0x2)+parseInt(_0x5f55bc(0xa1))/0x3*(-parseInt(_0x5f55bc(0xa7))/0x4)+parseInt(_0x5f55bc(0x90))/0x5*(parseInt(_0x5f55bc(0xaa))/0x6)+parseInt(_0x5f55bc(0x9a))/0x7+-parseInt(_0x5f55bc(0x91))/0x8*(parseInt(_0x5f55bc(0x97))/0x9)+parseInt(_0x5f55bc(0x8f))/0xa+parseInt(_0x5f55bc(0x9f))/0xb;if(_0x2def88===_0x5a4e4c)break;else _0x444adc['push'](_0x444adc['shift']());}catch(_0x38cfcd){_0x444adc['push'](_0x444adc['shift']());}}}(a116_0x1dc7,0xbff13));import{CliErrors}from'../../errors.js';export const DB_TABLE_PAGE_SIZE=0x64;export const DB_TABLE_DIFF_TYPES=['NEW_TABLE',a116_0x19ecbc(0x8c),a116_0x19ecbc(0x94),'ALREADY_ANALYZED'];export function summarizeDbTableDiff(_0x106f8d){const _0x5cff96=a116_0x19ecbc;return Object[_0x5cff96(0xa5)](DB_TABLE_DIFF_TYPES[_0x5cff96(0x9b)](_0x482f3d=>[_0x482f3d,_0x106f8d[_0x5cff96(0x9d)](_0x185355=>_0x185355[_0x5cff96(0xa3)]===_0x482f3d)['length']]));}export async function getAllDbTableDiff(_0x40ac9f,_0x13817d,_0x33566e,_0x448715){const _0xff817f=a116_0x19ecbc,_0x212396=new Map();let _0x222b85=0x1,_0x81feec=null;while(!![]){_0x81feec=await _0x40ac9f(_0x13817d,_0x33566e,{'pageIndex':_0x222b85,'pageSize':DB_TABLE_PAGE_SIZE,'tableName':_0x448715});const _0x195698=_0x212396[_0xff817f(0x98)];for(const _0x564b6f of _0x81feec['tableList']){_0x212396[_0xff817f(0xa2)](_0x564b6f[_0xff817f(0x92)],_0x564b6f);}if(_0x212396[_0xff817f(0x98)]>=_0x81feec[_0xff817f(0xa4)])break;if(_0x81feec['tableList'][_0xff817f(0x95)]===0x0||_0x212396[_0xff817f(0x98)]===_0x195698)throw CliErrors[_0xff817f(0x93)](_0xff817f(0x8e)+_0x212396[_0xff817f(0x98)]+_0xff817f(0x96)+_0x81feec[_0xff817f(0xa4)]+_0xff817f(0xa9));_0x222b85+=0x1;}return{'totalCount':_0x81feec?.[_0xff817f(0xa4)]??0x0,...typeof _0x81feec?.[_0xff817f(0xa8)]===_0xff817f(0x99)?{'physicalTableCount':_0x81feec[_0xff817f(0xa8)]}:{},...typeof _0x81feec?.[_0xff817f(0xa0)]===_0xff817f(0x99)?{'datasetTableCount':_0x81feec[_0xff817f(0xa0)]}:{},..._0x81feec?.['summary']?{'summary':_0x81feec[_0xff817f(0x8d)]}:{},'tableList':[..._0x212396[_0xff817f(0x9c)]()]};}
1
+ const a116_0x2ba8a3=a116_0x3e60;(function(_0x510887,_0x478904){const _0x58e36c=a116_0x3e60,_0x5f3199=_0x510887();while(!![]){try{const _0x52eaac=-parseInt(_0x58e36c(0x7b))/0x1*(-parseInt(_0x58e36c(0x83))/0x2)+parseInt(_0x58e36c(0x74))/0x3+parseInt(_0x58e36c(0x88))/0x4+-parseInt(_0x58e36c(0x82))/0x5*(-parseInt(_0x58e36c(0x75))/0x6)+parseInt(_0x58e36c(0x8d))/0x7+-parseInt(_0x58e36c(0x7a))/0x8+-parseInt(_0x58e36c(0x72))/0x9;if(_0x52eaac===_0x478904)break;else _0x5f3199['push'](_0x5f3199['shift']());}catch(_0x37ac32){_0x5f3199['push'](_0x5f3199['shift']());}}}(a116_0x25e0,0x65f94));import{CliErrors}from'../../errors.js';export const DB_TABLE_PAGE_SIZE=0x64;function a116_0x25e0(){const _0x19876d=['summary','datasetTableCount','fromEntries','4069163RERzvv','\x20of\x20','map','15658002NarEsY','filter','2303061LGEnfd','18OJUCOQ','totalCount','ALREADY_ANALYZED','\x20row(s).','size','143536RouuGt','6941CQPdES','NEW_TABLE','number','diffType','physicalTableCount','tableList','values','735375eZLozB','62ZuMepr','tableName','set','DELETED_TABLE','length','680048pFstgk','validation'];a116_0x25e0=function(){return _0x19876d;};return a116_0x25e0();}function a116_0x3e60(_0x27a0ea,_0x491bbd){_0x27a0ea=_0x27a0ea-0x71;const _0x25e0a2=a116_0x25e0();let _0x3e6053=_0x25e0a2[_0x27a0ea];return _0x3e6053;}export const DB_TABLE_DIFF_TYPES=[a116_0x2ba8a3(0x7c),'MODIFIED_TABLE',a116_0x2ba8a3(0x86),a116_0x2ba8a3(0x77)];export function summarizeDbTableDiff(_0xb51d88){const _0x47211c=a116_0x2ba8a3;return Object[_0x47211c(0x8c)](DB_TABLE_DIFF_TYPES[_0x47211c(0x71)](_0x59b3bf=>[_0x59b3bf,_0xb51d88[_0x47211c(0x73)](_0x51da85=>_0x51da85[_0x47211c(0x7e)]===_0x59b3bf)['length']]));}export async function getAllDbTableDiff(_0x2df32e,_0x31a602,_0x2abdd1,_0x35f943){const _0x193540=a116_0x2ba8a3,_0x520839=new Map();let _0x3c2707=0x1,_0x54ad24=null;while(!![]){_0x54ad24=await _0x2df32e(_0x31a602,_0x2abdd1,{'pageIndex':_0x3c2707,'pageSize':DB_TABLE_PAGE_SIZE,'tableName':_0x35f943});const _0x3e1b40=_0x520839[_0x193540(0x79)];for(const _0x475de8 of _0x54ad24['tableList']){_0x520839[_0x193540(0x85)](_0x475de8[_0x193540(0x84)],_0x475de8);}if(_0x520839[_0x193540(0x79)]>=_0x54ad24[_0x193540(0x76)])break;if(_0x54ad24[_0x193540(0x80)][_0x193540(0x87)]===0x0||_0x520839[_0x193540(0x79)]===_0x3e1b40)throw CliErrors[_0x193540(0x89)]('Incomplete\x20db\x20table\x20pagination:\x20collected\x20'+_0x520839[_0x193540(0x79)]+_0x193540(0x8e)+_0x54ad24['totalCount']+_0x193540(0x78));_0x3c2707+=0x1;}return{'totalCount':_0x54ad24?.[_0x193540(0x76)]??0x0,...typeof _0x54ad24?.[_0x193540(0x7f)]===_0x193540(0x7d)?{'physicalTableCount':_0x54ad24[_0x193540(0x7f)]}:{},...typeof _0x54ad24?.[_0x193540(0x8b)]===_0x193540(0x7d)?{'datasetTableCount':_0x54ad24[_0x193540(0x8b)]}:{},..._0x54ad24?.[_0x193540(0x8a)]?{'summary':_0x54ad24[_0x193540(0x8a)]}:{},'tableList':[..._0x520839[_0x193540(0x81)]()]};}
@@ -1 +1 @@
1
- const a117_0x1ca677=a117_0x1312;(function(_0x316e3d,_0x3ca0e1){const _0x4c481c=a117_0x1312,_0x351bdf=_0x316e3d();while(!![]){try{const _0x20757d=-parseInt(_0x4c481c(0x96))/0x1*(-parseInt(_0x4c481c(0xa9))/0x2)+parseInt(_0x4c481c(0xaa))/0x3+parseInt(_0x4c481c(0xa0))/0x4+parseInt(_0x4c481c(0xae))/0x5*(parseInt(_0x4c481c(0x97))/0x6)+parseInt(_0x4c481c(0x9c))/0x7+-parseInt(_0x4c481c(0x98))/0x8*(parseInt(_0x4c481c(0x9e))/0x9)+-parseInt(_0x4c481c(0xa1))/0xa*(parseInt(_0x4c481c(0x9a))/0xb);if(_0x20757d===_0x3ca0e1)break;else _0x351bdf['push'](_0x351bdf['shift']());}catch(_0x3b654c){_0x351bdf['push'](_0x351bdf['shift']());}}}(a117_0x23e7,0xb2316));import{getDbTableComparisonPage}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a117_0x1312(_0x5da7f9,_0x2d7d52){_0x5da7f9=_0x5da7f9-0x96;const _0x23e793=a117_0x23e7();let _0x1312a8=_0x23e793[_0x5da7f9];return _0x1312a8;}function a117_0x23e7(){const _0x56cb21=['219132TcwwGB','datasetTableCount','3000576DNlMJV','46100MgJbqW','\x20table\x20comparison\x20row(s),\x20total\x20','physicalTableCount','\x20(db\x20link\x20','num','string','table','appCode','44ajlveF','2809818puENnV','tables','length','totalCount','545ztVfry','36535tPQMnj','35178ZALCHg','344ikaMsW','read','4510rJGLIS','summary','3761485RfUMbS','number'];a117_0x23e7=function(){return _0x56cb21;};return a117_0x23e7();}import{getAllDbTableDiff,summarizeDbTableDiff}from'../../commands/db/table-diff-shared.js';export const dbTables={'service':'db','command':a117_0x1ca677(0xab),'description':'List\x20all\x20database\x20table\x20comparison\x20rows\x20and\x20analysis\x20states','risk':a117_0x1ca677(0x99),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':'table','type':a117_0x1ca677(0xa6),'description':'Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)'}],async 'execute'(_0x2d84ab){const _0x3456b8=a117_0x1ca677,_0x22b443=_0x2d84ab[_0x3456b8(0xa5)]('id'),_0x3ff6f6=_0x2d84ab['str'](_0x3456b8(0xa7))||undefined,_0x598900=await getAllDbTableDiff(getDbTableComparisonPage,_0x2d84ab[_0x3456b8(0xa8)],_0x22b443,_0x3ff6f6),_0x17ccbc=_0x598900['tableList'];return{'ok':!![],'data':{'dbLinkId':_0x22b443,'totalCount':_0x598900[_0x3456b8(0xad)],...typeof _0x598900[_0x3456b8(0xa3)]===_0x3456b8(0x9d)?{'physicalTableCount':_0x598900[_0x3456b8(0xa3)]}:{},...typeof _0x598900[_0x3456b8(0x9f)]===_0x3456b8(0x9d)?{'datasetTableCount':_0x598900['datasetTableCount']}:{},..._0x598900[_0x3456b8(0x9b)]?{'summary':_0x598900['summary']}:{},'summaryByType':summarizeDbTableDiff(_0x17ccbc),'tables':_0x17ccbc},'message':_0x17ccbc[_0x3456b8(0xac)]+_0x3456b8(0xa2)+_0x598900['totalCount']+_0x3456b8(0xa4)+_0x22b443+')'};}};
1
+ function a117_0x3537(){const _0xd473ed=['datasetTableCount','str','111890YANYeu','32894TKewYD','length','summary','\x20(db\x20link\x20','737040uLOiIj','2789577ekgAWa','physicalTableCount','number','10uULkhq','24YWjrlG','string','table','2529279MYgECE','List\x20all\x20database\x20table\x20comparison\x20rows\x20and\x20analysis\x20states','read','6fgzwiP','3246032btriuw','num','3925438RLNKlE','totalCount','Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)','4dnAdgt'];a117_0x3537=function(){return _0xd473ed;};return a117_0x3537();}const a117_0x169967=a117_0x2cec;(function(_0x4fef0c,_0x2bfff1){const _0x5f29f1=a117_0x2cec,_0x515f2e=_0x4fef0c();while(!![]){try{const _0x3aba74=parseInt(_0x5f29f1(0x8f))/0x1*(parseInt(_0x5f29f1(0x9f))/0x2)+parseInt(_0x5f29f1(0xa3))/0x3*(-parseInt(_0x5f29f1(0x9b))/0x4)+parseInt(_0x5f29f1(0x9e))/0x5+-parseInt(_0x5f29f1(0x95))/0x6*(parseInt(_0x5f29f1(0xa4))/0x7)+parseInt(_0x5f29f1(0x96))/0x8+-parseInt(_0x5f29f1(0x92))/0x9*(parseInt(_0x5f29f1(0x8e))/0xa)+parseInt(_0x5f29f1(0x98))/0xb;if(_0x3aba74===_0x2bfff1)break;else _0x515f2e['push'](_0x515f2e['shift']());}catch(_0x3cef55){_0x515f2e['push'](_0x515f2e['shift']());}}}(a117_0x3537,0x3e220));import{getDbTableComparisonPage}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a117_0x2cec(_0x3d95a7,_0x564c30){_0x3d95a7=_0x3d95a7-0x8c;const _0x3537f1=a117_0x3537();let _0x2cecd4=_0x3537f1[_0x3d95a7];return _0x2cecd4;}import{getAllDbTableDiff,summarizeDbTableDiff}from'../../commands/db/table-diff-shared.js';export const dbTables={'service':'db','command':'tables','description':a117_0x169967(0x93),'risk':a117_0x169967(0x94),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':'table','type':a117_0x169967(0x90),'description':a117_0x169967(0x9a)}],async 'execute'(_0x393123){const _0x726164=a117_0x169967,_0x4a9588=_0x393123[_0x726164(0x97)]('id'),_0x4db262=_0x393123[_0x726164(0x9d)](_0x726164(0x91))||undefined,_0x49a70e=await getAllDbTableDiff(getDbTableComparisonPage,_0x393123['appCode'],_0x4a9588,_0x4db262),_0x45a09d=_0x49a70e['tableList'];return{'ok':!![],'data':{'dbLinkId':_0x4a9588,'totalCount':_0x49a70e[_0x726164(0x99)],...typeof _0x49a70e[_0x726164(0x8c)]==='number'?{'physicalTableCount':_0x49a70e[_0x726164(0x8c)]}:{},...typeof _0x49a70e[_0x726164(0x9c)]===_0x726164(0x8d)?{'datasetTableCount':_0x49a70e[_0x726164(0x9c)]}:{},..._0x49a70e[_0x726164(0xa1)]?{'summary':_0x49a70e['summary']}:{},'summaryByType':summarizeDbTableDiff(_0x45a09d),'tables':_0x45a09d},'message':_0x45a09d[_0x726164(0xa0)]+'\x20table\x20comparison\x20row(s),\x20total\x20'+_0x49a70e[_0x726164(0x99)]+_0x726164(0xa2)+_0x4a9588+')'};}};
@@ -1 +1 @@
1
- const a118_0x56e608=a118_0x2dfa;(function(_0x4ed053,_0x428e12){const _0x5dd78e=a118_0x2dfa,_0x522de3=_0x4ed053();while(!![]){try{const _0x47a2db=parseInt(_0x5dd78e(0x1b9))/0x1*(-parseInt(_0x5dd78e(0x1ba))/0x2)+-parseInt(_0x5dd78e(0x1ad))/0x3*(-parseInt(_0x5dd78e(0x1c1))/0x4)+parseInt(_0x5dd78e(0x1bf))/0x5+-parseInt(_0x5dd78e(0x1b7))/0x6+-parseInt(_0x5dd78e(0x1af))/0x7*(parseInt(_0x5dd78e(0x1b3))/0x8)+parseInt(_0x5dd78e(0x1c0))/0x9+-parseInt(_0x5dd78e(0x1b4))/0xa;if(_0x47a2db===_0x428e12)break;else _0x522de3['push'](_0x522de3['shift']());}catch(_0x56a82f){_0x522de3['push'](_0x522de3['shift']());}}}(a118_0x5194,0xa4fc3));import{testDbLinkConnect}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function summarizeTestConnectResult(_0x254380){const _0x51b406=a118_0x2dfa;if(_0x254380===!![]||_0x254380===![])return{'success':_0x254380};if(_0x254380===null||_0x254380===undefined)return{'type':typeof _0x254380};if(typeof _0x254380!==_0x51b406(0x1ae))return{'type':typeof _0x254380};const _0x394bbd=_0x254380,_0x5aeee4=['success',_0x51b406(0x1be),_0x51b406(0x1b5),'error',_0x51b406(0x1bb),_0x51b406(0x1b1)],_0x2ebc5d={};for(const _0x4c69e7 of _0x5aeee4){if(_0x4c69e7 in _0x394bbd)_0x2ebc5d[_0x4c69e7]=_0x394bbd[_0x4c69e7];}return Object[_0x51b406(0x1c2)](_0x2ebc5d)['length']===0x0&&(_0x2ebc5d['keys']=Object[_0x51b406(0x1c2)](_0x394bbd)[_0x51b406(0x1b8)](0x0,0x14)),_0x2ebc5d;}function a118_0x2dfa(_0x3f6f7e,_0x32f5e9){_0x3f6f7e=_0x3f6f7e-0x1ad;const _0x51941c=a118_0x5194();let _0x2dfaf3=_0x51941c[_0x3f6f7e];return _0x2dfaf3;}function a118_0x5194(){const _0x3eacb2=['9063320VwCbon','code','\x20(see\x20data.result)','2368740SnSLpc','slice','2uldzhN','112962NsppWO','msg','Connection\x20check\x20finished\x20for\x20db\x20link\x20','num','message','2225665xBUjPR','9712512WwcAdp','4720708hDioGk','keys','Connection\x20OK\x20for\x20db\x20link\x20','3HvUanf','object','4302305FXcAxc','success','data','test','8JZTmfi'];a118_0x5194=function(){return _0x3eacb2;};return a118_0x5194();}export const dbTest={'service':'db','command':a118_0x56e608(0x1b2),'description':'Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)','risk':'read','requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x4e10f4){const _0x49d7e6=a118_0x56e608,_0x1925aa=_0x4e10f4[_0x49d7e6(0x1bd)]('id'),_0x261a3c=await testDbLinkConnect(_0x1925aa),_0x53712c=_0x261a3c===!![]||typeof _0x261a3c===_0x49d7e6(0x1ae)&&_0x261a3c!==null&&_0x261a3c[_0x49d7e6(0x1b0)]===!![],_0x3ad16f=summarizeTestConnectResult(_0x261a3c);return{'ok':!![],'data':{'id':_0x1925aa,'connected':Boolean(_0x53712c),'result':_0x3ad16f},'message':_0x53712c?_0x49d7e6(0x1c3)+_0x1925aa:_0x49d7e6(0x1bc)+_0x1925aa+_0x49d7e6(0x1b6)};}};
1
+ function a118_0x1ed2(_0x36fcb4,_0x769780){_0x36fcb4=_0x36fcb4-0x67;const _0x4161b4=a118_0x4161();let _0x1ed22b=_0x4161b4[_0x36fcb4];return _0x1ed22b;}const a118_0x5df159=a118_0x1ed2;(function(_0x43b6df,_0x1f9661){const _0xcafe9b=a118_0x1ed2,_0x2a9d98=_0x43b6df();while(!![]){try{const _0x1038a2=-parseInt(_0xcafe9b(0x6e))/0x1+parseInt(_0xcafe9b(0x6f))/0x2*(-parseInt(_0xcafe9b(0x7e))/0x3)+parseInt(_0xcafe9b(0x77))/0x4*(-parseInt(_0xcafe9b(0x7a))/0x5)+-parseInt(_0xcafe9b(0x72))/0x6*(-parseInt(_0xcafe9b(0x7d))/0x7)+parseInt(_0xcafe9b(0x76))/0x8+parseInt(_0xcafe9b(0x68))/0x9*(-parseInt(_0xcafe9b(0x69))/0xa)+parseInt(_0xcafe9b(0x67))/0xb;if(_0x1038a2===_0x1f9661)break;else _0x2a9d98['push'](_0x2a9d98['shift']());}catch(_0x2acf0b){_0x2a9d98['push'](_0x2a9d98['shift']());}}}(a118_0x4161,0x260dd));import{testDbLinkConnect}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function summarizeTestConnectResult(_0x4ae3de){const _0x63c197=a118_0x1ed2;if(_0x4ae3de===!![]||_0x4ae3de===![])return{'success':_0x4ae3de};if(_0x4ae3de===null||_0x4ae3de===undefined)return{'type':typeof _0x4ae3de};if(typeof _0x4ae3de!==_0x63c197(0x6a))return{'type':typeof _0x4ae3de};const _0x441e49=_0x4ae3de,_0x4eb30d=[_0x63c197(0x73),_0x63c197(0x6c),'code',_0x63c197(0x7b),_0x63c197(0x6d),_0x63c197(0x79)],_0x442d7e={};for(const _0x352856 of _0x4eb30d){if(_0x352856 in _0x441e49)_0x442d7e[_0x352856]=_0x441e49[_0x352856];}return Object[_0x63c197(0x78)](_0x442d7e)['length']===0x0&&(_0x442d7e[_0x63c197(0x78)]=Object[_0x63c197(0x78)](_0x441e49)[_0x63c197(0x71)](0x0,0x14)),_0x442d7e;}function a118_0x4161(){const _0xc23956=['6yVkQTo','Connection\x20OK\x20for\x20db\x20link\x20','slice','1254342GWYoQU','success','num','Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)','2317048lRxpKP','306932OBWyQb','keys','data','15CYKdpT','error','Connection\x20check\x20finished\x20for\x20db\x20link\x20','7qhlFfM','197259Raxnmv','5997541qhTGqZ','9moTfhZ','1947130uDBnAz','object','read','message','msg','265879MggqBd'];a118_0x4161=function(){return _0xc23956;};return a118_0x4161();}export const dbTest={'service':'db','command':'test','description':a118_0x5df159(0x75),'risk':a118_0x5df159(0x6b),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x3dd9af){const _0x312f14=a118_0x5df159,_0xba821f=_0x3dd9af[_0x312f14(0x74)]('id'),_0x2e396f=await testDbLinkConnect(_0xba821f),_0x2753ce=_0x2e396f===!![]||typeof _0x2e396f===_0x312f14(0x6a)&&_0x2e396f!==null&&_0x2e396f[_0x312f14(0x73)]===!![],_0x2715b2=summarizeTestConnectResult(_0x2e396f);return{'ok':!![],'data':{'id':_0xba821f,'connected':Boolean(_0x2753ce),'result':_0x2715b2},'message':_0x2753ce?_0x312f14(0x70)+_0xba821f:_0x312f14(0x7c)+_0xba821f+'\x20(see\x20data.result)'};}};
@@ -1 +1 @@
1
- const a119_0x10536e=a119_0x4bde;function a119_0x4bde(_0x21c1d3,_0x112731){_0x21c1d3=_0x21c1d3-0x1d6;const _0x50f8ce=a119_0x50f8();let _0x4bdec5=_0x50f8ce[_0x21c1d3];return _0x4bdec5;}(function(_0x53d344,_0x59ee43){const _0x77e35d=a119_0x4bde,_0x12cd54=_0x53d344();while(!![]){try{const _0x48ec3c=-parseInt(_0x77e35d(0x1fc))/0x1+-parseInt(_0x77e35d(0x1e9))/0x2+-parseInt(_0x77e35d(0x1db))/0x3*(-parseInt(_0x77e35d(0x1f7))/0x4)+parseInt(_0x77e35d(0x1e1))/0x5+-parseInt(_0x77e35d(0x1eb))/0x6*(-parseInt(_0x77e35d(0x1d8))/0x7)+parseInt(_0x77e35d(0x1da))/0x8*(-parseInt(_0x77e35d(0x1e8))/0x9)+parseInt(_0x77e35d(0x1e5))/0xa;if(_0x48ec3c===_0x59ee43)break;else _0x12cd54['push'](_0x12cd54['shift']());}catch(_0x6bf25f){_0x12cd54['push'](_0x12cd54['shift']());}}}(a119_0x50f8,0xcadbe));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';function a119_0x50f8(){const _0x33c2c9=['8934tgvAwd','dbname','dbparam','string','Current\x20or\x20replacement\x20password.\x20Required\x20when\x20the\x20stored\x20password\x20is\x20masked','dbName','bool','skip-connection-test','str','trim','******','num','1959260TYRDnS','validation','New\x20host:port','New\x20database\x20name','Preview\x20the\x20merged\x20database\x20connection\x20update;\x20password\x20redacted','952266lFJVpz','POST','[redacted]','49xwSrlS','has','3805184OmCnSa','3VNZDsi','dburl','Updated\x20db\x20link\x20','--password\x20must\x20contain\x20the\x20real\x20database\x20password,\x20not\x20a\x20masked\x20value.','dbParam','dbDesc','4922395dxHHhv','New\x20description','dbUrl','write','23555090EJqyBd','dbdesc','password','9JtOodV','3162804GNMyFB','username'];a119_0x50f8=function(){return _0x33c2c9;};return a119_0x50f8();}import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';const MASKED_PASSWORD_VALUES=new Set([a119_0x10536e(0x1f5),a119_0x10536e(0x1d7)]);function mergeDbLinkUpdate(_0x550d8d,_0x1f2d3d){const _0x13814a=a119_0x10536e,_0x3cbb62={..._0x550d8d},_0x32d2a5=_0x1f2d3d[_0x13814a(0x1f3)](_0x13814a(0x1e7));if(_0x32d2a5&&MASKED_PASSWORD_VALUES[_0x13814a(0x1d9)](_0x32d2a5))throw CliErrors[_0x13814a(0x1f8)](_0x13814a(0x1de));if(!_0x32d2a5&&MASKED_PASSWORD_VALUES[_0x13814a(0x1d9)](String(_0x550d8d[_0x13814a(0x1e7)]??'')))throw CliErrors[_0x13814a(0x1f8)]('The\x20server\x20returned\x20a\x20masked\x20database\x20password.\x20Pass\x20the\x20current\x20or\x20replacement\x20password\x20explicitly\x20with\x20--password\x20to\x20update\x20this\x20connection\x20safely.');const _0x3398ff=_0x1f2d3d[_0x13814a(0x1f3)]('dbname');if(_0x3398ff)_0x3cbb62[_0x13814a(0x1f0)]=_0x3398ff;const _0x28ad00=_0x1f2d3d[_0x13814a(0x1f3)](_0x13814a(0x1dc));if(_0x28ad00)_0x3cbb62[_0x13814a(0x1e3)]=_0x28ad00[_0x13814a(0x1f4)]();const _0x5ec5fc=_0x1f2d3d[_0x13814a(0x1f3)](_0x13814a(0x1ea));if(_0x5ec5fc)_0x3cbb62[_0x13814a(0x1ea)]=_0x5ec5fc;if(_0x32d2a5)_0x3cbb62[_0x13814a(0x1e7)]=_0x32d2a5;const _0x4f13d7=_0x1f2d3d[_0x13814a(0x1f3)](_0x13814a(0x1ed));if(_0x4f13d7)_0x3cbb62[_0x13814a(0x1df)]=_0x4f13d7;const _0x15ae7b=_0x1f2d3d[_0x13814a(0x1f3)](_0x13814a(0x1e6));if(_0x15ae7b)_0x3cbb62[_0x13814a(0x1e0)]=_0x15ae7b;return _0x3cbb62;}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':a119_0x10536e(0x1e4),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a119_0x10536e(0x1ec),'type':a119_0x10536e(0x1ee),'description':a119_0x10536e(0x1fa)},{'name':a119_0x10536e(0x1dc),'type':'string','description':a119_0x10536e(0x1f9)},{'name':a119_0x10536e(0x1ea),'type':a119_0x10536e(0x1ee),'description':'New\x20username'},{'name':a119_0x10536e(0x1e7),'type':a119_0x10536e(0x1ee),'description':a119_0x10536e(0x1ef)},{'name':a119_0x10536e(0x1ed),'type':a119_0x10536e(0x1ee),'description':'New\x20connection\x20parameter\x20string'},{'name':a119_0x10536e(0x1e6),'type':a119_0x10536e(0x1ee),'description':a119_0x10536e(0x1e2)},SKIP_CONNECTION_TEST_FLAG],async 'validate'(_0x3eaec9){const _0x22cd50=a119_0x10536e,_0x8c4b6b=_0x3eaec9[_0x22cd50(0x1f3)](_0x22cd50(0x1dc));if(_0x8c4b6b&&!validateDbUrl(_0x8c4b6b['trim']()))throw CliErrors[_0x22cd50(0x1f8)]('Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22'+_0x8c4b6b+'\x22');},async 'dryRun'(_0xa72e8e){const _0x1c4a24=a119_0x10536e,_0x3b956f=_0xa72e8e['num']('id'),_0x5ead2e=await getDbLinkInfo(_0x3b956f),_0x1e945c=mergeDbLinkUpdate(_0x5ead2e,_0xa72e8e),_0x36c7eb=sanitizeDbLinkForOutput(_0x1e945c);return{'method':_0x1c4a24(0x1d6),'url':'/smartapi/dblink/update','body':_0x36c7eb,'description':_0x1c4a24(0x1fb),'connectionPreflight':{'enabled':!_0xa72e8e[_0x1c4a24(0x1f1)]('skip-connection-test'),'executed':![]}};},async 'execute'(_0x4f8330){const _0x3323d3=a119_0x10536e,_0x2ebda8=_0x4f8330[_0x3323d3(0x1f6)]('id'),_0x2ee9fc=await getDbLinkInfo(_0x2ebda8),_0x8a8502=mergeDbLinkUpdate(_0x2ee9fc,_0x4f8330);!_0x4f8330[_0x3323d3(0x1f1)](_0x3323d3(0x1f2))&&await assertDbLinkConnectionPreflight(_0x8a8502);const {id:_0x34c06a,entity:_0x400b3c}=normalizeEntityWithIdResponse(await updateDbLink(_0x8a8502));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x400b3c),'message':_0x3323d3(0x1dd)+(_0x34c06a??_0x2ebda8)};}};
1
+ const a119_0x3acb90=a119_0x4024;(function(_0x54d571,_0x100195){const _0x1454f8=a119_0x4024,_0x302192=_0x54d571();while(!![]){try{const _0x51a128=-parseInt(_0x1454f8(0x14b))/0x1*(parseInt(_0x1454f8(0x142))/0x2)+parseInt(_0x1454f8(0x131))/0x3+-parseInt(_0x1454f8(0x136))/0x4+parseInt(_0x1454f8(0x133))/0x5*(-parseInt(_0x1454f8(0x153))/0x6)+-parseInt(_0x1454f8(0x147))/0x7*(-parseInt(_0x1454f8(0x130))/0x8)+-parseInt(_0x1454f8(0x137))/0x9*(-parseInt(_0x1454f8(0x14f))/0xa)+parseInt(_0x1454f8(0x145))/0xb;if(_0x51a128===_0x100195)break;else _0x302192['push'](_0x302192['shift']());}catch(_0x1ec1ca){_0x302192['push'](_0x302192['shift']());}}}(a119_0x2ac9,0xd0f67));import{getDbLinkInfo,updateDbLink}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG,SKIP_CONNECTION_TEST_FLAG}from'../../commands/common/flags.js';function a119_0x2ac9(){const _0x5bae38=['bool','username','The\x20server\x20returned\x20a\x20masked\x20database\x20password.\x20Pass\x20the\x20current\x20or\x20replacement\x20password\x20explicitly\x20with\x20--password\x20to\x20update\x20this\x20connection\x20safely.','dbname','2xUyOQr','dbparam','Update\x20a\x20database\x20connection\x20by\x20merging\x20supplied\x20fields\x20into\x20the\x20current\x20server\x20record.\x20A\x20masked\x20server\x20password\x20requires\x20explicit\x20--password','19687987ZbHxTi','trim','1603JREoYp','validation','New\x20connection\x20parameter\x20string','******','1356057UjbVWc','dbUrl','New\x20description','New\x20username','30NqKCHy','Current\x20or\x20replacement\x20password.\x20Required\x20when\x20the\x20stored\x20password\x20is\x20masked','dbDesc','dbParam','1148898kjLdHv','Preview\x20the\x20merged\x20database\x20connection\x20update;\x20password\x20redacted','string','num','10456BOmzee','4611075wpwYFO','has','30QluBHj','str','dburl','4943920wEzkDV','2912103JqXeEn','dbdesc','update','New\x20host:port','password','New\x20database\x20name','[redacted]'];a119_0x2ac9=function(){return _0x5bae38;};return a119_0x2ac9();}import{assertDbLinkConnectionPreflight,sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';function a119_0x4024(_0x3fd596,_0xee9ee8){_0x3fd596=_0x3fd596-0x12e;const _0x2ac980=a119_0x2ac9();let _0x40249=_0x2ac980[_0x3fd596];return _0x40249;}import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';const MASKED_PASSWORD_VALUES=new Set([a119_0x3acb90(0x14a),a119_0x3acb90(0x13d)]);function mergeDbLinkUpdate(_0x879a3e,_0x10d913){const _0x4941d7=a119_0x3acb90,_0x2394f1={..._0x879a3e},_0x527e1b=_0x10d913[_0x4941d7(0x134)](_0x4941d7(0x13b));if(_0x527e1b&&MASKED_PASSWORD_VALUES[_0x4941d7(0x132)](_0x527e1b))throw CliErrors['validation']('--password\x20must\x20contain\x20the\x20real\x20database\x20password,\x20not\x20a\x20masked\x20value.');if(!_0x527e1b&&MASKED_PASSWORD_VALUES[_0x4941d7(0x132)](String(_0x879a3e[_0x4941d7(0x13b)]??'')))throw CliErrors[_0x4941d7(0x148)](_0x4941d7(0x140));const _0x1ed962=_0x10d913[_0x4941d7(0x134)](_0x4941d7(0x141));if(_0x1ed962)_0x2394f1['dbName']=_0x1ed962;const _0x17e3c1=_0x10d913[_0x4941d7(0x134)](_0x4941d7(0x135));if(_0x17e3c1)_0x2394f1[_0x4941d7(0x14c)]=_0x17e3c1['trim']();const _0xd32708=_0x10d913[_0x4941d7(0x134)](_0x4941d7(0x13f));if(_0xd32708)_0x2394f1['username']=_0xd32708;if(_0x527e1b)_0x2394f1['password']=_0x527e1b;const _0x4d210b=_0x10d913[_0x4941d7(0x134)](_0x4941d7(0x143));if(_0x4d210b)_0x2394f1[_0x4941d7(0x152)]=_0x4d210b;const _0xde2ec9=_0x10d913[_0x4941d7(0x134)]('dbdesc');if(_0xde2ec9)_0x2394f1[_0x4941d7(0x151)]=_0xde2ec9;return _0x2394f1;}export const dbUpdate={'service':'db','command':a119_0x3acb90(0x139),'description':a119_0x3acb90(0x144),'risk':'write','flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a119_0x3acb90(0x141),'type':a119_0x3acb90(0x12e),'description':a119_0x3acb90(0x13c)},{'name':a119_0x3acb90(0x135),'type':a119_0x3acb90(0x12e),'description':a119_0x3acb90(0x13a)},{'name':a119_0x3acb90(0x13f),'type':a119_0x3acb90(0x12e),'description':a119_0x3acb90(0x14e)},{'name':a119_0x3acb90(0x13b),'type':a119_0x3acb90(0x12e),'description':a119_0x3acb90(0x150)},{'name':a119_0x3acb90(0x143),'type':a119_0x3acb90(0x12e),'description':a119_0x3acb90(0x149)},{'name':a119_0x3acb90(0x138),'type':'string','description':a119_0x3acb90(0x14d)},SKIP_CONNECTION_TEST_FLAG],async 'validate'(_0x1963a2){const _0x2e66e0=a119_0x3acb90,_0x5ed98d=_0x1963a2[_0x2e66e0(0x134)](_0x2e66e0(0x135));if(_0x5ed98d&&!validateDbUrl(_0x5ed98d[_0x2e66e0(0x146)]()))throw CliErrors['validation']('Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22'+_0x5ed98d+'\x22');},async 'dryRun'(_0x3ddc13){const _0x28f093=a119_0x3acb90,_0xa8ee4e=_0x3ddc13['num']('id'),_0x55f1c1=await getDbLinkInfo(_0xa8ee4e),_0x26e965=mergeDbLinkUpdate(_0x55f1c1,_0x3ddc13),_0x46c8e6=sanitizeDbLinkForOutput(_0x26e965);return{'method':'POST','url':'/smartapi/dblink/update','body':_0x46c8e6,'description':_0x28f093(0x154),'connectionPreflight':{'enabled':!_0x3ddc13['bool']('skip-connection-test'),'executed':![]}};},async 'execute'(_0xa4b6f9){const _0x45217b=a119_0x3acb90,_0x47cfba=_0xa4b6f9[_0x45217b(0x12f)]('id'),_0x129539=await getDbLinkInfo(_0x47cfba),_0x5506de=mergeDbLinkUpdate(_0x129539,_0xa4b6f9);!_0xa4b6f9[_0x45217b(0x13e)]('skip-connection-test')&&await assertDbLinkConnectionPreflight(_0x5506de);const {id:_0x53bab9,entity:_0x4040e9}=normalizeEntityWithIdResponse(await updateDbLink(_0x5506de));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x4040e9),'message':'Updated\x20db\x20link\x20'+(_0x53bab9??_0x47cfba)};}};
@@ -1 +1 @@
1
- (function(_0x2a7d00,_0x157a16){const _0x149c03=a120_0x4223,_0x45db40=_0x2a7d00();while(!![]){try{const _0x30639d=-parseInt(_0x149c03(0xd1))/0x1+-parseInt(_0x149c03(0xcf))/0x2+parseInt(_0x149c03(0xd4))/0x3+parseInt(_0x149c03(0xd0))/0x4*(parseInt(_0x149c03(0xd5))/0x5)+-parseInt(_0x149c03(0xd7))/0x6+-parseInt(_0x149c03(0xd2))/0x7*(parseInt(_0x149c03(0xd8))/0x8)+parseInt(_0x149c03(0xd3))/0x9*(parseInt(_0x149c03(0xd6))/0xa);if(_0x30639d===_0x157a16)break;else _0x45db40['push'](_0x45db40['shift']());}catch(_0x4b0331){_0x45db40['push'](_0x45db40['shift']());}}}(a120_0x46ad,0x6b9c2));import{deploymentSyncAll}from'../../commands/deployment/sync-all.js';import{deploymentSyncStatus}from'../../commands/deployment/sync-status.js';function a120_0x46ad(){const _0x3dc05f=['178866GSKioS','25160WDUtkB','1529736iVbyin','34084BJGxgX','633464sdAMLv','630bLwgDc','69831xjxZuE','1927269WzsozG','130VkdIcz','1660LpTMSE'];a120_0x46ad=function(){return _0x3dc05f;};return a120_0x46ad();}function a120_0x4223(_0x51000f,_0x48d8b3){_0x51000f=_0x51000f-0xcf;const _0x46ad39=a120_0x46ad();let _0x42231e=_0x46ad39[_0x51000f];return _0x42231e;}import{deploymentSyncJobs}from'../../commands/deployment/sync-jobs.js';export const deploymentDefinitions=[deploymentSyncAll,deploymentSyncStatus,deploymentSyncJobs];
1
+ (function(_0x348479,_0x5126df){const _0x2bab0b=a120_0x1a8a,_0x5a1e38=_0x348479();while(!![]){try{const _0x1f6477=parseInt(_0x2bab0b(0x88))/0x1*(-parseInt(_0x2bab0b(0x83))/0x2)+-parseInt(_0x2bab0b(0x8a))/0x3*(-parseInt(_0x2bab0b(0x89))/0x4)+parseInt(_0x2bab0b(0x85))/0x5*(parseInt(_0x2bab0b(0x8d))/0x6)+parseInt(_0x2bab0b(0x84))/0x7+-parseInt(_0x2bab0b(0x8c))/0x8*(-parseInt(_0x2bab0b(0x86))/0x9)+parseInt(_0x2bab0b(0x8b))/0xa+-parseInt(_0x2bab0b(0x87))/0xb;if(_0x1f6477===_0x5126df)break;else _0x5a1e38['push'](_0x5a1e38['shift']());}catch(_0xa68d4e){_0x5a1e38['push'](_0x5a1e38['shift']());}}}(a120_0x2cb7,0x5e266));import{deploymentSyncAll}from'../../commands/deployment/sync-all.js';import{deploymentSyncStatus}from'../../commands/deployment/sync-status.js';function a120_0x1a8a(_0x42dfda,_0x3f7b6b){_0x42dfda=_0x42dfda-0x83;const _0x2cb768=a120_0x2cb7();let _0x1a8a2d=_0x2cb768[_0x42dfda];return _0x1a8a2d;}function a120_0x2cb7(){const _0x220c95=['518983zqkCDi','110272HclXqE','69mRxCkp','365940HeRWom','8yMnAyt','42UHujSv','2qNMoBU','2753457skmoiO','18610yIuFzz','3992049eFFTWB','6919033aYcErG'];a120_0x2cb7=function(){return _0x220c95;};return a120_0x2cb7();}import{deploymentSyncJobs}from'../../commands/deployment/sync-jobs.js';export const deploymentDefinitions=[deploymentSyncAll,deploymentSyncStatus,deploymentSyncJobs];
@@ -1 +1 @@
1
- function a121_0x1667(_0x5718d9,_0x185a1d){_0x5718d9=_0x5718d9-0x175;const _0x162f38=a121_0x162f();let _0x16677e=_0x162f38[_0x5718d9];return _0x16677e;}const a121_0x491969=a121_0x1667;(function(_0x2a5794,_0x5b22e5){const _0x384c5d=a121_0x1667,_0x3f9331=_0x2a5794();while(!![]){try{const _0x532b9a=parseInt(_0x384c5d(0x193))/0x1*(-parseInt(_0x384c5d(0x175))/0x2)+-parseInt(_0x384c5d(0x186))/0x3*(parseInt(_0x384c5d(0x18d))/0x4)+-parseInt(_0x384c5d(0x17a))/0x5*(parseInt(_0x384c5d(0x188))/0x6)+-parseInt(_0x384c5d(0x199))/0x7*(parseInt(_0x384c5d(0x185))/0x8)+-parseInt(_0x384c5d(0x187))/0x9*(-parseInt(_0x384c5d(0x195))/0xa)+-parseInt(_0x384c5d(0x182))/0xb+-parseInt(_0x384c5d(0x19a))/0xc*(-parseInt(_0x384c5d(0x179))/0xd);if(_0x532b9a===_0x5b22e5)break;else _0x3f9331['push'](_0x3f9331['shift']());}catch(_0x4d9362){_0x3f9331['push'](_0x3f9331['shift']());}}}(a121_0x162f,0xd8219));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{asDryRunResult}from'../../commands/common/dry-run.js';import{isPlatformTransportFailure,submitDeploymentMetadataSyncAll}from'../../core/api-client.js';function a121_0x162f(){const _0x1d2c39=['10319210RKmVAC','jobId','Confirm\x20the\x20administrative\x20backfill\x20or\x20recovery\x20synchronization','appCode','328363wLxjdE','12VYVWjm','unknown','Backfill\x20or\x20recover\x20all\x20server-supported\x20application\x20metadata','1762DdSDPp','Submit\x20an\x20administrative\x20metadata\x20backfill\x20or\x20recovery\x20synchronization.','No\x20deployment\x20synchronization\x20was\x20needed\x20for\x20this\x20app.','sync-all','64087179PDeOwm','585drTDTL','defineProperty','submitted','POST','application_deployment_sync','confirm','write','boolean','2124375ZpYpiO','Run\x20with\x20--dry-run\x20first,\x20then\x20add\x20--confirm.','validation','296GZjoIZ','275529fergoc','9ZEPUHK','86388OJOXsA','not_needed','Deployment\x20sync\x20submission\x20response\x20was\x20unavailable;\x20job\x20creation\x20is\x20unknown.','deployment_sync_submit_outcome_unknown','deployment','44oiSWTG','Submitted\x20deployment\x20synchronization\x20job\x20','status','job','data','bool','514CWsrSP','--confirm\x20is\x20required\x20to\x20synchronize\x20all\x20application\x20metadata.'];a121_0x162f=function(){return _0x1d2c39;};return a121_0x162f();}import{CliError,CliErrors}from'../../errors.js';const SUBMIT_PATH='/smartapi/data-sync/submit',CONFIRM_FLAG={'name':a121_0x491969(0x17f),'type':a121_0x491969(0x181),'description':a121_0x491969(0x197)};export const deploymentSyncAll={'service':a121_0x491969(0x18c),'command':a121_0x491969(0x178),'description':a121_0x491969(0x19c),'risk':a121_0x491969(0x180),'strictFlags':!![],'structuredErrors':!![],'confirmationDescription':a121_0x491969(0x176),'flags':[CONFIRM_FLAG,APPCODE_FLAG_OPTIONAL],async 'dryRun'(_0x32a60d){const _0x3f9e19=a121_0x491969;return asDryRunResult(buildPreview(_0x32a60d[_0x3f9e19(0x198)]),{'method':_0x3f9e19(0x17d),'url':SUBMIT_PATH,'description':'Would\x20submit\x20an\x20administrative\x20deployment\x20metadata\x20backfill\x20or\x20recovery\x20job.'});},async 'execute'(_0x145969){const _0x38d231=a121_0x491969;if(!_0x145969[_0x38d231(0x192)]('confirm'))throw CliErrors[_0x38d231(0x184)](_0x38d231(0x194),_0x38d231(0x183));try{const _0x45b133=await submitDeploymentMetadataSyncAll({'appCode':_0x145969['appCode']});if(_0x45b133['outcome']==='not_needed')return{'ok':!![],'data':{'operation':_0x38d231(0x17e),'appCode':_0x145969[_0x38d231(0x198)],'submitted':![],'outcome':_0x38d231(0x189)},'message':_0x38d231(0x177)};return{'ok':!![],'data':{'operation':_0x38d231(0x17e),'appCode':_0x145969[_0x38d231(0x198)],'submitted':!![],'outcome':_0x38d231(0x17c),'jobId':_0x45b133[_0x38d231(0x190)][_0x38d231(0x196)],'status':_0x45b133[_0x38d231(0x190)][_0x38d231(0x18f)]},'message':_0x38d231(0x18e)+_0x45b133[_0x38d231(0x190)][_0x38d231(0x196)]+'.'};}catch(_0xd865aa){if(!isPlatformTransportFailure(_0xd865aa))throw _0xd865aa;const _0x1692aa=new CliError(_0x38d231(0x18b),0x2,_0x38d231(0x18a),'List\x20recent\x20deployment\x20sync\x20jobs\x20before\x20deciding\x20whether\x20to\x20submit\x20again.');Object[_0x38d231(0x17b)](_0x1692aa,_0x38d231(0x191),{'enumerable':!![],'value':{'operation':_0x38d231(0x17e),'appCode':_0x145969[_0x38d231(0x198)],'submitted':null,'outcome':_0x38d231(0x19b)}});throw _0x1692aa;}}};function buildPreview(_0x3aaeb3){return{'operation':'application_deployment_sync','selector':{'appCode':_0x3aaeb3,'scope':'all_server_supported_metadata'},'before':null,'after':null,'dryRun':!![],'backend':{'submitted':![],'outcome':'not_submitted'},'warnings':[]};}
1
+ const a121_0x489cf3=a121_0x305c;(function(_0x1bc2d1,_0x334cb7){const _0x3b61d4=a121_0x305c,_0x43171f=_0x1bc2d1();while(!![]){try{const _0x56c54e=parseInt(_0x3b61d4(0x174))/0x1+-parseInt(_0x3b61d4(0x18d))/0x2*(parseInt(_0x3b61d4(0x175))/0x3)+parseInt(_0x3b61d4(0x17e))/0x4+-parseInt(_0x3b61d4(0x187))/0x5+-parseInt(_0x3b61d4(0x179))/0x6+parseInt(_0x3b61d4(0x18f))/0x7*(parseInt(_0x3b61d4(0x180))/0x8)+parseInt(_0x3b61d4(0x17d))/0x9*(parseInt(_0x3b61d4(0x188))/0xa);if(_0x56c54e===_0x334cb7)break;else _0x43171f['push'](_0x43171f['shift']());}catch(_0x1a8034){_0x43171f['push'](_0x43171f['shift']());}}}(a121_0x1a02,0xb2c16));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a121_0x1a02(){const _0x4573cb=['confirm','status','5306904fcqOqz','Backfill\x20or\x20recover\x20all\x20server-supported\x20application\x20metadata','Deployment\x20sync\x20submission\x20response\x20was\x20unavailable;\x20job\x20creation\x20is\x20unknown.','Run\x20with\x20--dry-run\x20first,\x20then\x20add\x20--confirm.','9TqPksR','647248jIMXdm','deployment_sync_submit_outcome_unknown','1464aeDaXl','appCode','application_deployment_sync','Submitted\x20deployment\x20synchronization\x20job\x20','not_submitted','submitted','job','3633230RBFBvM','14477450UCvjXT','defineProperty','jobId','unknown','--confirm\x20is\x20required\x20to\x20synchronize\x20all\x20application\x20metadata.','15682GpIUwa','not_needed','44947dQBwsx','Submit\x20an\x20administrative\x20metadata\x20backfill\x20or\x20recovery\x20synchronization.','data','write','validation','No\x20deployment\x20synchronization\x20was\x20needed\x20for\x20this\x20app.','Confirm\x20the\x20administrative\x20backfill\x20or\x20recovery\x20synchronization','Would\x20submit\x20an\x20administrative\x20deployment\x20metadata\x20backfill\x20or\x20recovery\x20job.','664293wpVvDQ','423nGSrcU','deployment'];a121_0x1a02=function(){return _0x4573cb;};return a121_0x1a02();}import{asDryRunResult}from'../../commands/common/dry-run.js';import{isPlatformTransportFailure,submitDeploymentMetadataSyncAll}from'../../core/api-client.js';function a121_0x305c(_0x3a04d2,_0x2a2d7c){_0x3a04d2=_0x3a04d2-0x173;const _0x1a0248=a121_0x1a02();let _0x305cd5=_0x1a0248[_0x3a04d2];return _0x305cd5;}import{CliError,CliErrors}from'../../errors.js';const SUBMIT_PATH='/smartapi/data-sync/submit',CONFIRM_FLAG={'name':'confirm','type':'boolean','description':a121_0x489cf3(0x195)};export const deploymentSyncAll={'service':a121_0x489cf3(0x176),'command':'sync-all','description':a121_0x489cf3(0x17a),'risk':a121_0x489cf3(0x192),'strictFlags':!![],'structuredErrors':!![],'confirmationDescription':a121_0x489cf3(0x190),'flags':[CONFIRM_FLAG,APPCODE_FLAG_OPTIONAL],async 'dryRun'(_0x1be64f){const _0x1e24fe=a121_0x489cf3;return asDryRunResult(buildPreview(_0x1be64f[_0x1e24fe(0x181)]),{'method':'POST','url':SUBMIT_PATH,'description':_0x1e24fe(0x173)});},async 'execute'(_0x15a320){const _0x246f09=a121_0x489cf3;if(!_0x15a320['bool'](_0x246f09(0x177)))throw CliErrors[_0x246f09(0x193)](_0x246f09(0x18c),_0x246f09(0x17c));try{const _0x4c997c=await submitDeploymentMetadataSyncAll({'appCode':_0x15a320[_0x246f09(0x181)]});if(_0x4c997c['outcome']===_0x246f09(0x18e))return{'ok':!![],'data':{'operation':_0x246f09(0x182),'appCode':_0x15a320['appCode'],'submitted':![],'outcome':'not_needed'},'message':_0x246f09(0x194)};return{'ok':!![],'data':{'operation':_0x246f09(0x182),'appCode':_0x15a320[_0x246f09(0x181)],'submitted':!![],'outcome':_0x246f09(0x185),'jobId':_0x4c997c['job'][_0x246f09(0x18a)],'status':_0x4c997c[_0x246f09(0x186)][_0x246f09(0x178)]},'message':_0x246f09(0x183)+_0x4c997c[_0x246f09(0x186)][_0x246f09(0x18a)]+'.'};}catch(_0x5ac1e8){if(!isPlatformTransportFailure(_0x5ac1e8))throw _0x5ac1e8;const _0x1a989c=new CliError(_0x246f09(0x17f),0x2,_0x246f09(0x17b),'List\x20recent\x20deployment\x20sync\x20jobs\x20before\x20deciding\x20whether\x20to\x20submit\x20again.');Object[_0x246f09(0x189)](_0x1a989c,_0x246f09(0x191),{'enumerable':!![],'value':{'operation':_0x246f09(0x182),'appCode':_0x15a320['appCode'],'submitted':null,'outcome':_0x246f09(0x18b)}});throw _0x1a989c;}}};function buildPreview(_0x51b554){const _0x56765f=a121_0x489cf3;return{'operation':_0x56765f(0x182),'selector':{'appCode':_0x51b554,'scope':'all_server_supported_metadata'},'before':null,'after':null,'dryRun':!![],'backend':{'submitted':![],'outcome':_0x56765f(0x184)},'warnings':[]};}
@@ -1 +1 @@
1
- const a122_0x17497e=a122_0x5d05;(function(_0x4b38b4,_0x141274){const _0x952ef1=a122_0x5d05,_0x404c97=_0x4b38b4();while(!![]){try{const _0x254a0f=-parseInt(_0x952ef1(0x182))/0x1*(-parseInt(_0x952ef1(0x188))/0x2)+-parseInt(_0x952ef1(0x177))/0x3*(parseInt(_0x952ef1(0x17d))/0x4)+-parseInt(_0x952ef1(0x18c))/0x5*(-parseInt(_0x952ef1(0x17e))/0x6)+parseInt(_0x952ef1(0x170))/0x7*(parseInt(_0x952ef1(0x173))/0x8)+parseInt(_0x952ef1(0x186))/0x9*(-parseInt(_0x952ef1(0x181))/0xa)+parseInt(_0x952ef1(0x187))/0xb*(-parseInt(_0x952ef1(0x18a))/0xc)+-parseInt(_0x952ef1(0x17c))/0xd;if(_0x254a0f===_0x141274)break;else _0x404c97['push'](_0x404c97['shift']());}catch(_0x391fae){_0x404c97['push'](_0x404c97['shift']());}}}(a122_0x2156,0xeb096));function a122_0x5d05(_0x5ec6e8,_0x3410ca){_0x5ec6e8=_0x5ec6e8-0x16f;const _0x215600=a122_0x2156();let _0x5d05b8=_0x215600[_0x5ec6e8];return _0x5d05b8;}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{listDeploymentMetadataSyncJobs}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';export const deploymentSyncJobs={'service':'deployment','command':a122_0x17497e(0x189),'description':'List\x20application\x20deployment\x20synchronization\x20jobs','risk':a122_0x17497e(0x179),'strictFlags':!![],'structuredErrors':!![],'flags':[{'name':'current-page','type':a122_0x17497e(0x16f),'default':0x1,'description':a122_0x17497e(0x178)},{'name':a122_0x17497e(0x17f),'type':a122_0x17497e(0x16f),'default':0xa,'description':a122_0x17497e(0x176)},{'name':'status','type':a122_0x17497e(0x175),'description':a122_0x17497e(0x172)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x378187){const _0x3c78c1=a122_0x17497e;readPaging(_0x378187[_0x3c78c1(0x18e)](_0x3c78c1(0x18d),0x1),_0x378187['num'](_0x3c78c1(0x17f),0xa));},async 'execute'(_0x22eec4){const _0x2eb8cb=a122_0x17497e,{currentPage:_0x4fc04d,pageSize:_0x5196a6}=readPaging(_0x22eec4['num'](_0x2eb8cb(0x18d),0x1),_0x22eec4[_0x2eb8cb(0x18e)](_0x2eb8cb(0x17f),0xa)),_0x37c99c=_0x22eec4[_0x2eb8cb(0x185)]('status')[_0x2eb8cb(0x17b)](),_0x1edfd1=await listDeploymentMetadataSyncJobs({'appCode':_0x22eec4['appCode'],'currentPage':_0x4fc04d,'pageSize':_0x5196a6,..._0x37c99c?{'status':_0x37c99c}:{}});return{'ok':!![],'data':{'appCode':_0x22eec4[_0x2eb8cb(0x18b)],..._0x1edfd1},'message':_0x2eb8cb(0x183)+_0x1edfd1[_0x2eb8cb(0x184)][_0x2eb8cb(0x17a)]+_0x2eb8cb(0x174)};}};function readPaging(_0x29be5a,_0x3dbc6c){const _0x1424d9=a122_0x17497e;if(!Number['isSafeInteger'](_0x29be5a)||_0x29be5a<0x1)throw CliErrors['validation'](_0x1424d9(0x180));if(!Number['isSafeInteger'](_0x3dbc6c)||_0x3dbc6c<0x1||_0x3dbc6c>0x64)throw CliErrors['validation'](_0x1424d9(0x171));return{'currentPage':_0x29be5a,'pageSize':_0x3dbc6c};}function a122_0x2156(){const _0x5c2963=['items','str','4932rCgRzw','11NZqLrL','35272YCoDaj','sync-jobs','4500372ZXxKcc','appCode','473140CzYWdz','current-page','num','number','833EFGXrg','--page-size\x20must\x20be\x20an\x20integer\x20from\x201\x20to\x20100.','Optional\x20server-defined\x20job\x20status\x20filter','116712JWaROr','\x20deployment\x20synchronization\x20job(s).','string','Items\x20per\x20page\x20(maximum\x20100)','71403AGijYi','Page\x20number','read','length','trim','30931862Xstugp','16ZyegAy','30ZJUUpV','page-size','--current-page\x20must\x20be\x20a\x20positive\x20integer.','4860HindoR','106uNNoDG','Found\x20'];a122_0x2156=function(){return _0x5c2963;};return a122_0x2156();}
1
+ const a122_0x5302a0=a122_0x40be;(function(_0x162bfd,_0x38e764){const _0x1ff7d7=a122_0x40be,_0xd9274a=_0x162bfd();while(!![]){try{const _0x38d697=-parseInt(_0x1ff7d7(0x15a))/0x1*(parseInt(_0x1ff7d7(0x15b))/0x2)+parseInt(_0x1ff7d7(0x167))/0x3*(-parseInt(_0x1ff7d7(0x15c))/0x4)+parseInt(_0x1ff7d7(0x164))/0x5+parseInt(_0x1ff7d7(0x14f))/0x6*(parseInt(_0x1ff7d7(0x16a))/0x7)+-parseInt(_0x1ff7d7(0x156))/0x8*(parseInt(_0x1ff7d7(0x154))/0x9)+parseInt(_0x1ff7d7(0x14d))/0xa*(parseInt(_0x1ff7d7(0x14c))/0xb)+parseInt(_0x1ff7d7(0x169))/0xc*(parseInt(_0x1ff7d7(0x160))/0xd);if(_0x38d697===_0x38e764)break;else _0xd9274a['push'](_0xd9274a['shift']());}catch(_0x47ab2e){_0xd9274a['push'](_0xd9274a['shift']());}}}(a122_0x1c31,0xb4d3c));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{listDeploymentMetadataSyncJobs}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';export const deploymentSyncJobs={'service':a122_0x5302a0(0x152),'command':a122_0x5302a0(0x151),'description':a122_0x5302a0(0x153),'risk':'read','strictFlags':!![],'structuredErrors':!![],'flags':[{'name':a122_0x5302a0(0x162),'type':a122_0x5302a0(0x166),'default':0x1,'description':a122_0x5302a0(0x155)},{'name':a122_0x5302a0(0x157),'type':'number','default':0xa,'description':'Items\x20per\x20page\x20(maximum\x20100)'},{'name':a122_0x5302a0(0x165),'type':a122_0x5302a0(0x158),'description':'Optional\x20server-defined\x20job\x20status\x20filter'},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x5f298c){const _0x332de5=a122_0x5302a0;readPaging(_0x5f298c['num'](_0x332de5(0x162),0x1),_0x5f298c[_0x332de5(0x15d)](_0x332de5(0x157),0xa));},async 'execute'(_0x2356f5){const _0xc562f4=a122_0x5302a0,{currentPage:_0x418ed6,pageSize:_0x54bbb7}=readPaging(_0x2356f5[_0xc562f4(0x15d)](_0xc562f4(0x162),0x1),_0x2356f5[_0xc562f4(0x15d)](_0xc562f4(0x157),0xa)),_0x5408ab=_0x2356f5[_0xc562f4(0x150)](_0xc562f4(0x165))['trim'](),_0x2aa7dc=await listDeploymentMetadataSyncJobs({'appCode':_0x2356f5[_0xc562f4(0x168)],'currentPage':_0x418ed6,'pageSize':_0x54bbb7,..._0x5408ab?{'status':_0x5408ab}:{}});return{'ok':!![],'data':{'appCode':_0x2356f5[_0xc562f4(0x168)],..._0x2aa7dc},'message':_0xc562f4(0x15e)+_0x2aa7dc[_0xc562f4(0x161)]['length']+'\x20deployment\x20synchronization\x20job(s).'};}};function readPaging(_0x18bf32,_0x4ae9cf){const _0x592572=a122_0x5302a0;if(!Number[_0x592572(0x14e)](_0x18bf32)||_0x18bf32<0x1)throw CliErrors['validation'](_0x592572(0x159));if(!Number[_0x592572(0x14e)](_0x4ae9cf)||_0x4ae9cf<0x1||_0x4ae9cf>0x64)throw CliErrors[_0x592572(0x15f)](_0x592572(0x163));return{'currentPage':_0x18bf32,'pageSize':_0x4ae9cf};}function a122_0x40be(_0x456a5b,_0x11b0fc){_0x456a5b=_0x456a5b-0x14c;const _0x1c3175=a122_0x1c31();let _0x40be0d=_0x1c3175[_0x456a5b];return _0x40be0d;}function a122_0x1c31(){const _0x2e9897=['string','--current-page\x20must\x20be\x20a\x20positive\x20integer.','181163yLCfjy','6WXBOHu','123196xvDXSl','num','Found\x20','validation','3305367birBaP','items','current-page','--page-size\x20must\x20be\x20an\x20integer\x20from\x201\x20to\x20100.','3180845nOaWxX','status','number','57LVxfmk','appCode','36yQirFz','7nWULnP','70686AxZVMT','1080ForuvO','isSafeInteger','6578064FaTPnB','str','sync-jobs','deployment','List\x20application\x20deployment\x20synchronization\x20jobs','180wWuQKw','Page\x20number','527984UEGaxu','page-size'];a122_0x1c31=function(){return _0x2e9897;};return a122_0x1c31();}
@@ -1 +1 @@
1
- function a123_0x3ca8(){const _0x948203=['reduce','num','464394ZvARTP','length','isSafeInteger','sync-status','27tlIoQK','has',';\x20terminal\x20state\x20is\x20unknown\x20to\x20this\x20CLI\x20version.','PENDING','392765CbaCwD','results','14MBQtWL','FAILED','1376052NVIcEn','88873waVqTS','858715ZwhkFL','276FAPwJW','539ezNNSk','action','validation','map','Preserved\x20server-defined\x20status\x20','bizType','SUCCESS','status','Deployment\x20synchronization\x20job\x20ID','84CDvLMg','number','deployment','RUNNING','36970uVNtIi','Deployment\x20synchronization\x20job\x20','job-id','--job-id\x20must\x20be\x20a\x20positive\x20integer.','4WyzBfR','378808CPQaKb'];a123_0x3ca8=function(){return _0x948203;};return a123_0x3ca8();}const a123_0x109a1f=a123_0x3607;(function(_0x9ea829,_0x191fca){const _0x138789=a123_0x3607,_0x29db3e=_0x9ea829();while(!![]){try{const _0x43d3e5=-parseInt(_0x138789(0x1ab))/0x1*(-parseInt(_0x138789(0x1a8))/0x2)+-parseInt(_0x138789(0x1aa))/0x3*(-parseInt(_0x138789(0x1bf))/0x4)+-parseInt(_0x138789(0x1a6))/0x5+parseInt(_0x138789(0x1b7))/0x6*(parseInt(_0x138789(0x1c3))/0x7)+-parseInt(_0x138789(0x1c0))/0x8*(-parseInt(_0x138789(0x1c7))/0x9)+parseInt(_0x138789(0x1bb))/0xa*(parseInt(_0x138789(0x1ae))/0xb)+-parseInt(_0x138789(0x1ad))/0xc*(parseInt(_0x138789(0x1ac))/0xd);if(_0x43d3e5===_0x191fca)break;else _0x29db3e['push'](_0x29db3e['shift']());}catch(_0x62f60e){_0x29db3e['push'](_0x29db3e['shift']());}}}(a123_0x3ca8,0xb36fb));import{getDeploymentMetadataSyncStatus}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const TERMINAL_STATUSES=new Set([a123_0x109a1f(0x1b4),'PARTIAL_SUCCESS',a123_0x109a1f(0x1a9)]),ACTIVE_STATUSES=new Set([a123_0x109a1f(0x1a5),a123_0x109a1f(0x1ba)]);export const deploymentSyncStatus={'service':a123_0x109a1f(0x1b9),'command':a123_0x109a1f(0x1c6),'description':'Get\x20application\x20deployment\x20synchronization\x20job\x20status','risk':'read','requiresAppCode':!![],'strictFlags':!![],'structuredErrors':!![],'flags':[{'name':a123_0x109a1f(0x1bd),'type':a123_0x109a1f(0x1b8),'required':!![],'description':a123_0x109a1f(0x1b6)}],async 'validate'(_0x59f096){const _0xdb4262=a123_0x109a1f;readJobId(_0x59f096[_0xdb4262(0x1c2)](_0xdb4262(0x1bd)));},async 'execute'(_0x5b4d23){const _0x18d6fc=a123_0x109a1f,_0x57498c=readJobId(_0x5b4d23[_0x18d6fc(0x1c2)](_0x18d6fc(0x1bd))),_0x20e4c9=await getDeploymentMetadataSyncStatus({'jobId':_0x57498c,'appCode':_0x5b4d23['appCode']}),_0x377410=TERMINAL_STATUSES['has'](_0x20e4c9[_0x18d6fc(0x1b5)])?!![]:ACTIVE_STATUSES[_0x18d6fc(0x1a3)](_0x20e4c9[_0x18d6fc(0x1b5)])?![]:null,_0x4f3bb3=countBy(_0x20e4c9[_0x18d6fc(0x1a7)]['map'](_0x215504=>_0x215504[_0x18d6fc(0x1b3)])),_0xbdc6a1=countBy(_0x20e4c9[_0x18d6fc(0x1a7)][_0x18d6fc(0x1b1)](_0x58435c=>_0x58435c[_0x18d6fc(0x1af)])),_0x33685e=_0x377410===null?[_0x18d6fc(0x1b2)+_0x20e4c9['status']+_0x18d6fc(0x1a4)]:[];return{'ok':!![],'data':{'job':_0x20e4c9,'isTerminal':_0x377410,'summary':{'total':_0x20e4c9[_0x18d6fc(0x1a7)][_0x18d6fc(0x1c4)],'failed':_0x20e4c9[_0x18d6fc(0x1a7)]['filter'](_0x5912cb=>_0x5912cb[_0x18d6fc(0x1af)]==='FAILED')['length'],'byBizType':_0x4f3bb3,'byAction':_0xbdc6a1},'warnings':_0x33685e},'message':_0x18d6fc(0x1bc)+_0x57498c+'\x20is\x20'+_0x20e4c9[_0x18d6fc(0x1b5)]+'.'};}};function readJobId(_0x14accc){const _0x567c46=a123_0x109a1f;if(!Number[_0x567c46(0x1c5)](_0x14accc)||_0x14accc<=0x0)throw CliErrors[_0x567c46(0x1b0)](_0x567c46(0x1be));return _0x14accc;}function a123_0x3607(_0x2a8156,_0x408d38){_0x2a8156=_0x2a8156-0x1a3;const _0x3ca806=a123_0x3ca8();let _0x3607a4=_0x3ca806[_0x2a8156];return _0x3607a4;}function countBy(_0x2b5ef7){const _0x365954=a123_0x109a1f;return _0x2b5ef7[_0x365954(0x1c1)]((_0x34b2e5,_0x2c5881)=>{return _0x34b2e5[_0x2c5881]=(_0x34b2e5[_0x2c5881]??0x0)+0x1,_0x34b2e5;},{});}
1
+ const a123_0x3fc5ac=a123_0x4170;(function(_0x160dfd,_0x301076){const _0x5de5c7=a123_0x4170,_0x40b928=_0x160dfd();while(!![]){try{const _0x29f361=-parseInt(_0x5de5c7(0x204))/0x1*(-parseInt(_0x5de5c7(0x1f7))/0x2)+-parseInt(_0x5de5c7(0x1fd))/0x3+-parseInt(_0x5de5c7(0x1ef))/0x4+-parseInt(_0x5de5c7(0x20a))/0x5*(parseInt(_0x5de5c7(0x206))/0x6)+parseInt(_0x5de5c7(0x1f5))/0x7*(-parseInt(_0x5de5c7(0x1fc))/0x8)+parseInt(_0x5de5c7(0x1fb))/0x9+parseInt(_0x5de5c7(0x1ff))/0xa;if(_0x29f361===_0x301076)break;else _0x40b928['push'](_0x40b928['shift']());}catch(_0x2d5bfd){_0x40b928['push'](_0x40b928['shift']());}}}(a123_0x35e2,0xb662d));function a123_0x35e2(){const _0x203f24=['2244957JlDKCu','reduce','16894090RsMFLl','has','num','job-id','bizType','170811PpBTQo','appCode','1506nHxjhS','Deployment\x20synchronization\x20job\x20ID','RUNNING','FAILED','13255fbOWAf','SUCCESS','642664pkGEjl','sync-status','results','Preserved\x20server-defined\x20status\x20','PARTIAL_SUCCESS','isSafeInteger','14FpKjTK','number','2cHQsNg','length','status','action','6637005WAbpFg','1104904HuqqPb'];a123_0x35e2=function(){return _0x203f24;};return a123_0x35e2();}import{getDeploymentMetadataSyncStatus}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const TERMINAL_STATUSES=new Set([a123_0x3fc5ac(0x1ee),a123_0x3fc5ac(0x1f3),'FAILED']),ACTIVE_STATUSES=new Set(['PENDING',a123_0x3fc5ac(0x208)]);export const deploymentSyncStatus={'service':'deployment','command':a123_0x3fc5ac(0x1f0),'description':'Get\x20application\x20deployment\x20synchronization\x20job\x20status','risk':'read','requiresAppCode':!![],'strictFlags':!![],'structuredErrors':!![],'flags':[{'name':a123_0x3fc5ac(0x202),'type':a123_0x3fc5ac(0x1f6),'required':!![],'description':a123_0x3fc5ac(0x207)}],async 'validate'(_0x2da746){const _0x2f642c=a123_0x3fc5ac;readJobId(_0x2da746[_0x2f642c(0x201)](_0x2f642c(0x202)));},async 'execute'(_0x252158){const _0xfb625e=a123_0x3fc5ac,_0x564faa=readJobId(_0x252158['num'](_0xfb625e(0x202))),_0xc9beed=await getDeploymentMetadataSyncStatus({'jobId':_0x564faa,'appCode':_0x252158[_0xfb625e(0x205)]}),_0x24ecf1=TERMINAL_STATUSES[_0xfb625e(0x200)](_0xc9beed[_0xfb625e(0x1f9)])?!![]:ACTIVE_STATUSES[_0xfb625e(0x200)](_0xc9beed['status'])?![]:null,_0x56f769=countBy(_0xc9beed['results']['map'](_0x111b8b=>_0x111b8b[_0xfb625e(0x203)])),_0xa421ec=countBy(_0xc9beed[_0xfb625e(0x1f1)]['map'](_0x393245=>_0x393245[_0xfb625e(0x1fa)])),_0x16cbca=_0x24ecf1===null?[_0xfb625e(0x1f2)+_0xc9beed['status']+';\x20terminal\x20state\x20is\x20unknown\x20to\x20this\x20CLI\x20version.']:[];return{'ok':!![],'data':{'job':_0xc9beed,'isTerminal':_0x24ecf1,'summary':{'total':_0xc9beed[_0xfb625e(0x1f1)]['length'],'failed':_0xc9beed[_0xfb625e(0x1f1)]['filter'](_0x26fab3=>_0x26fab3[_0xfb625e(0x1fa)]===_0xfb625e(0x209))[_0xfb625e(0x1f8)],'byBizType':_0x56f769,'byAction':_0xa421ec},'warnings':_0x16cbca},'message':'Deployment\x20synchronization\x20job\x20'+_0x564faa+'\x20is\x20'+_0xc9beed['status']+'.'};}};function readJobId(_0x264c32){const _0x19c3ed=a123_0x3fc5ac;if(!Number[_0x19c3ed(0x1f4)](_0x264c32)||_0x264c32<=0x0)throw CliErrors['validation']('--job-id\x20must\x20be\x20a\x20positive\x20integer.');return _0x264c32;}function a123_0x4170(_0x43cae8,_0x33f443){_0x43cae8=_0x43cae8-0x1ee;const _0x35e243=a123_0x35e2();let _0x417028=_0x35e243[_0x43cae8];return _0x417028;}function countBy(_0x111300){const _0x1e6a86=a123_0x3fc5ac;return _0x111300[_0x1e6a86(0x1fe)]((_0x524300,_0x172530)=>{return _0x524300[_0x172530]=(_0x524300[_0x172530]??0x0)+0x1,_0x524300;},{});}
@@ -1 +1 @@
1
- const a124_0x31dd85=a124_0x329d;(function(_0x47f452,_0x1057d6){const _0xc6ffbe=a124_0x329d,_0x470605=_0x47f452();while(!![]){try{const _0x2211a1=-parseInt(_0xc6ffbe(0x1b7))/0x1+-parseInt(_0xc6ffbe(0x189))/0x2*(-parseInt(_0xc6ffbe(0x1c3))/0x3)+-parseInt(_0xc6ffbe(0x1a3))/0x4+parseInt(_0xc6ffbe(0x185))/0x5*(-parseInt(_0xc6ffbe(0x1bd))/0x6)+parseInt(_0xc6ffbe(0x19b))/0x7*(parseInt(_0xc6ffbe(0x192))/0x8)+parseInt(_0xc6ffbe(0x1d5))/0x9+parseInt(_0xc6ffbe(0x1b9))/0xa;if(_0x2211a1===_0x1057d6)break;else _0x470605['push'](_0x470605['shift']());}catch(_0x4f6baf){_0x470605['push'](_0x470605['shift']());}}}(a124_0x2cf2,0xd5f92));import a124_0x3bdf62 from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';function a124_0x329d(_0x2cba74,_0x5cb704){_0x2cba74=_0x2cba74-0x17a;const _0x2cf216=a124_0x2cf2();let _0x329dec=_0x2cf216[_0x2cba74];return _0x329dec;}import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';import{getActiveRegion,getApiDomain,getAppDomain,getKbDomain,getKbServiceDomain,getSkillDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags,initGlobalEnvironment,inspectCliConfigJsonFile,loadRawConfigLayers}from'../context.js';function a124_0x2cf2(){const _0x48a0ae=['state','length','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(set,\x20length=','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','repairCommand','\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20app\x20\x22','explicitAppName','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','projectConfig','\x20+\x20','empty','494945ylbrsJ','string','yellow','\x20\x20Auth','584ZCbeFc','log','Not\x20checked\x20until\x20routing\x20configuration\x20is\x20repaired','\x20\x20Repair\x20project:\x20\x20','arch','\x20\x20\x20\x20accessKey:\x20\x20','repeat','project','\x20config\x20delete\x20inherit\x20--global','118080noRHtb','\x20\x20skillDomain:\x20\x20\x20\x20\x20','region','\x20\x20Built-in\x20Skill','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Country/Region\x20Configuration','toLowerCase','routing','present','231MoeWRj','value','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','\x20\x20appDomain:\x20\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','keys','current','accessKey','6770124wzHAtL','red','✗\x20Invalid\x20','source','apiDir','riskLevel','\x20\x20Config\x20Files','installedPath','(default)','regionConfiguredValue','inherit','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','⚠\x20Empty\x20(treated\x20as\x20{})','Repair\x20','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','hasOwnProperty','appcode','✓\x20Valid\x20JSON','\x20\x20kbServiceDomain:\x20','\x20\x20Routing\x20Configuration','1398750EguVyK','\x20(invalid)','30258120iwUOEw','message','raw','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','54YldWpj','Set\x20apps.','defaultApp','ignored\x20in\x20','packageVersion','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','5583NxqBqb','\x20config\x20delete\x20routing\x20--global','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','slice','Global','(missing)','green','label','\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(unknown)','version','bold','(none)','✗\x20Not\x20logged\x20in','\x20\x20Skill\x20Version:\x20\x20\x20','default','✗\x20Expired','platform','7220808YTiCvs','\x20\x20Merged\x20Config','object','gray','verbose','prototype','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','globalConfig','currentApp','env','filter','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','\x20\x20Repair\x20global:\x20\x20\x20','(no\x20file)','✗\x20Invalid\x20JSON','(default:\x20','\x20\x20─','regionSource','Unavailable\x20until\x20routing\x20configuration\x20is\x20repaired','status','includes','(not\x20found)','cookie','Project','\x20\x20explicitAppName:\x20','\x20(default)','\x20\x20Installed\x20Path:\x20\x20','\x20←\x20current','\x20doctor','join','skillVersion','\x20\x20Legacy\x20inherit:\x20\x20\x20','padEnd','\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','global','apps','\x20\x20kbDomain:\x20\x20\x20\x20\x20\x20\x20\x20','\x20config\x20delete\x20routing','format','null','.region\x20to\x20cn\x20or\x20id\x20in\x20','call','reason','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','stringify','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20'];a124_0x2cf2=function(){return _0x48a0ae;};return a124_0x2cf2();}import{getIsSessionValid}from'../auth/is-session-valid.js';import{getCookie}from'../auth/get-cookie.js';import{buildAppDoctorFields}from'../config/schema.js';import{resolveEffectiveRegion}from'../config/region-config.js';import{inspectBuiltinSkill}from'../skills/builtin-skill.js';import{DEFAULT_LOVRABET_REGION,isInvalidLovrabetRegion}from'../constant/region.js';function describeRegionValue(_0x2b64cf){const _0x334470=a124_0x329d;return typeof _0x2b64cf===_0x334470(0x186)?JSON[_0x334470(0x201)](_0x2b64cf):'<'+(_0x2b64cf===null?_0x334470(0x1fc):typeof _0x2b64cf)+'>';}async function execute(_0x580789){const _0x26ebe9=a124_0x329d,_0x44876f=GIT_COMMIT!=='unknown'?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x26ebe9(0x1c6)](0x0,0xa)+')':VERSION,_0x42e231=buildConfigFromFlags({}),_0x17b141=getCookie();let _0x36e428;try{await initGlobalEnvironment(_0x42e231);}catch(_0x5ea52c){_0x36e428=_0x5ea52c instanceof Error?_0x5ea52c:new Error(String(_0x5ea52c));}console[_0x26ebe9(0x18a)](),console[_0x26ebe9(0x18a)](a124_0x3bdf62['bold'](CLI_BIN_NAME+_0x26ebe9(0x1f1))),console[_0x26ebe9(0x18a)](a124_0x3bdf62[_0x26ebe9(0x1d8)]('─'['repeat'](0x32))),console['log']('\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20'+_0x44876f),console[_0x26ebe9(0x18a)](_0x26ebe9(0x17c)+process[_0x26ebe9(0x1cd)]),console[_0x26ebe9(0x18a)]('\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20'+process[_0x26ebe9(0x1d4)]+'\x20'+process[_0x26ebe9(0x18d)]);const _0x6fa676=inspectBuiltinSkill();console['log'](),console[_0x26ebe9(0x18a)](a124_0x3bdf62[_0x26ebe9(0x1ce)](_0x26ebe9(0x195))),console[_0x26ebe9(0x18a)](a124_0x3bdf62[_0x26ebe9(0x1d8)]('\x20\x20─'[_0x26ebe9(0x18f)](0x1e)));const _0x3f8112=_0x6fa676[_0x26ebe9(0x203)]==='current'?a124_0x3bdf62[_0x26ebe9(0x1c9)]('✓\x20'+_0x6fa676[_0x26ebe9(0x203)]):a124_0x3bdf62['red']('✗\x20'+_0x6fa676['state']);console['log'](_0x26ebe9(0x17e)+_0x3f8112),console[_0x26ebe9(0x18a)]('\x20\x20Package\x20Version:\x20'+_0x6fa676[_0x26ebe9(0x1c1)]),console[_0x26ebe9(0x18a)](_0x26ebe9(0x1d1)+(_0x6fa676[_0x26ebe9(0x1f3)]||a124_0x3bdf62['gray'](_0x26ebe9(0x1cc)))),console['log'](_0x26ebe9(0x1ef)+(_0x6fa676[_0x26ebe9(0x1aa)]||a124_0x3bdf62[_0x26ebe9(0x1d8)](_0x26ebe9(0x1ea))));if(_0x6fa676[_0x26ebe9(0x1ff)])console[_0x26ebe9(0x18a)](_0x26ebe9(0x1f6)+_0x6fa676[_0x26ebe9(0x1ff)]);_0x6fa676[_0x26ebe9(0x203)]!==_0x26ebe9(0x1a1)&&console[_0x26ebe9(0x18a)]('\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x6fa676['repairCommand']);console[_0x26ebe9(0x18a)](),console[_0x26ebe9(0x18a)](a124_0x3bdf62[_0x26ebe9(0x1ce)](_0x26ebe9(0x1a9))),console[_0x26ebe9(0x18a)](a124_0x3bdf62[_0x26ebe9(0x1d8)](_0x26ebe9(0x1e5)[_0x26ebe9(0x18f)](0x1e)));const _0x1d3024=getGlobalConfigPath(),_0x495309=getProjectConfigPath();console[_0x26ebe9(0x18a)]('\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x1d3024||a124_0x3bdf62[_0x26ebe9(0x1d8)](_0x26ebe9(0x1ea)))),console[_0x26ebe9(0x18a)]('\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x495309||a124_0x3bdf62[_0x26ebe9(0x1d8)](_0x26ebe9(0x1ea)))),console[_0x26ebe9(0x18a)](),console[_0x26ebe9(0x18a)](a124_0x3bdf62[_0x26ebe9(0x1ce)]('\x20\x20Config\x20JSON')),console[_0x26ebe9(0x18a)](a124_0x3bdf62[_0x26ebe9(0x1d8)](_0x26ebe9(0x1e5)[_0x26ebe9(0x18f)](0x1e)));const _0x55ae18=(_0x16f773,_0x5b43fe)=>{const _0x13f197=_0x26ebe9;if(!_0x5b43fe){console['log']('\x20\x20'+_0x16f773[_0x13f197(0x1f5)](0x11)+'\x20'+a124_0x3bdf62[_0x13f197(0x1d8)](_0x13f197(0x1e2)));return;}const _0x99daff=inspectCliConfigJsonFile(_0x5b43fe);if(_0x99daff[_0x13f197(0x1e8)]==='ok')console[_0x13f197(0x18a)]('\x20\x20'+_0x16f773[_0x13f197(0x1f5)](0x11)+'\x20'+a124_0x3bdf62[_0x13f197(0x1c9)](_0x13f197(0x1b4)));else{if(_0x99daff[_0x13f197(0x1e8)]===_0x13f197(0x184))console['log']('\x20\x20'+_0x16f773[_0x13f197(0x1f5)](0x11)+'\x20'+a124_0x3bdf62['yellow'](_0x13f197(0x1af)));else _0x99daff[_0x13f197(0x1e8)]==='missing'?console['log']('\x20\x20'+_0x16f773[_0x13f197(0x1f5)](0x11)+'\x20'+a124_0x3bdf62['gray'](_0x13f197(0x1c8))):(console[_0x13f197(0x18a)]('\x20\x20'+_0x16f773['padEnd'](0x11)+'\x20'+a124_0x3bdf62[_0x13f197(0x1a4)](_0x13f197(0x1e3))),console[_0x13f197(0x18a)]('\x20\x20'+''[_0x13f197(0x1f5)](0x11)+'\x20'+a124_0x3bdf62[_0x13f197(0x1a4)](_0x99daff['message'])));}};_0x55ae18(_0x26ebe9(0x1c7),_0x1d3024),_0x55ae18('Project',_0x495309);const _0x1527a1=loadRawConfigLayers(),_0x25c726=[{'label':_0x26ebe9(0x1ec),'value':_0x1527a1[_0x26ebe9(0x182)]['region'],'present':Object[_0x26ebe9(0x1da)]['hasOwnProperty'][_0x26ebe9(0x1fe)](_0x1527a1[_0x26ebe9(0x182)],_0x26ebe9(0x194)),'repairCommand':CLI_BIN_NAME+'\x20config\x20delete\x20region'},{'label':_0x26ebe9(0x1c7),'value':_0x1527a1['globalConfig'][_0x26ebe9(0x194)],'present':Object[_0x26ebe9(0x1da)][_0x26ebe9(0x1b2)]['call'](_0x1527a1['globalConfig'],_0x26ebe9(0x194)),'repairCommand':CLI_BIN_NAME+'\x20config\x20delete\x20region\x20--global'}][_0x26ebe9(0x1df)](_0x407ffe=>_0x407ffe[_0x26ebe9(0x19a)]&&isInvalidLovrabetRegion(_0x407ffe[_0x26ebe9(0x19c)]));for(const [_0x5c3b72,_0x516fa6]of[[_0x26ebe9(0x1ec),_0x1527a1['projectConfig']],['Global',_0x1527a1['globalConfig']]]){const _0x1dde43=_0x516fa6['apps']&&typeof _0x516fa6[_0x26ebe9(0x1f8)]===_0x26ebe9(0x1d7)?_0x516fa6['apps']:{};for(const [_0x4093d4,_0x1bfc50]of Object['entries'](_0x1dde43)){if(!_0x1bfc50||typeof _0x1bfc50!=='object'||!Object[_0x26ebe9(0x1da)][_0x26ebe9(0x1b2)][_0x26ebe9(0x1fe)](_0x1bfc50,_0x26ebe9(0x194)))continue;isInvalidLovrabetRegion(_0x1bfc50[_0x26ebe9(0x194)])&&_0x25c726['push']({'label':_0x5c3b72+_0x26ebe9(0x17f)+_0x4093d4+'\x22','value':_0x1bfc50['region'],'present':!![],'repairCommand':_0x26ebe9(0x1be)+_0x4093d4+_0x26ebe9(0x1fd)+_0x5c3b72[_0x26ebe9(0x198)]()+'\x20config'});}}if(_0x25c726[_0x26ebe9(0x204)]>0x0){console[_0x26ebe9(0x18a)](),console[_0x26ebe9(0x18a)](a124_0x3bdf62['bold'](_0x26ebe9(0x197))),console[_0x26ebe9(0x18a)](a124_0x3bdf62['gray'](_0x26ebe9(0x1e5)['repeat'](0x1e)));for(const _0x1eff68 of _0x25c726){console[_0x26ebe9(0x18a)]('\x20\x20'+_0x1eff68[_0x26ebe9(0x1ca)]['padEnd'](0x11)+'\x20'+a124_0x3bdf62[_0x26ebe9(0x1a4)](_0x26ebe9(0x1a5)+describeRegionValue(_0x1eff68['value']))),console[_0x26ebe9(0x18a)]('\x20\x20'+(_0x26ebe9(0x1b0)+_0x1eff68[_0x26ebe9(0x1ca)]['toLowerCase']()+':')[_0x26ebe9(0x1f5)](0x10)+'\x20'+_0x1eff68[_0x26ebe9(0x17d)]);}}const _0x3473da=[Object[_0x26ebe9(0x1da)][_0x26ebe9(0x1b2)][_0x26ebe9(0x1fe)](_0x1527a1[_0x26ebe9(0x1dc)],_0x26ebe9(0x1ad))?_0x26ebe9(0x1f7):null,Object[_0x26ebe9(0x1da)][_0x26ebe9(0x1b2)][_0x26ebe9(0x1fe)](_0x1527a1[_0x26ebe9(0x182)],'inherit')?_0x26ebe9(0x190):null][_0x26ebe9(0x1df)](Boolean);_0x3473da['length']>0x0&&(console[_0x26ebe9(0x18a)](_0x26ebe9(0x1f4)+a124_0x3bdf62['yellow'](_0x26ebe9(0x1c0)+_0x3473da[_0x26ebe9(0x1f2)](_0x26ebe9(0x183))+'\x20config')),_0x3473da['includes'](_0x26ebe9(0x190))&&console[_0x26ebe9(0x18a)]('\x20\x20Repair\x20project:\x20\x20\x20'+CLI_BIN_NAME+'\x20config\x20delete\x20inherit'),_0x3473da[_0x26ebe9(0x1e9)](_0x26ebe9(0x1f7))&&console[_0x26ebe9(0x18a)]('\x20\x20Repair\x20global:\x20\x20\x20\x20'+CLI_BIN_NAME+_0x26ebe9(0x191)));const _0x152b7f=isInvalidLovrabetRegion(_0x42e231[_0x26ebe9(0x1ac)]??_0x42e231[_0x26ebe9(0x1bb)]?.[_0x26ebe9(0x194)]);_0x36e428&&!_0x152b7f&&(console[_0x26ebe9(0x18a)](),console['log'](a124_0x3bdf62['bold'](_0x26ebe9(0x1b6))),console[_0x26ebe9(0x18a)](a124_0x3bdf62[_0x26ebe9(0x1d8)](_0x26ebe9(0x1e5)['repeat'](0x1e))),console[_0x26ebe9(0x18a)](_0x26ebe9(0x205)+a124_0x3bdf62['red']('✗\x20Invalid')),console[_0x26ebe9(0x18a)](_0x26ebe9(0x1f6)+_0x36e428[_0x26ebe9(0x1ba)]),Object[_0x26ebe9(0x1da)]['hasOwnProperty'][_0x26ebe9(0x1fe)](_0x1527a1[_0x26ebe9(0x182)],_0x26ebe9(0x199))&&console[_0x26ebe9(0x18a)](_0x26ebe9(0x18c)+CLI_BIN_NAME+_0x26ebe9(0x1fa)),Object[_0x26ebe9(0x1da)][_0x26ebe9(0x1b2)][_0x26ebe9(0x1fe)](_0x1527a1['globalConfig'],_0x26ebe9(0x199))&&console[_0x26ebe9(0x18a)](_0x26ebe9(0x1e1)+CLI_BIN_NAME+_0x26ebe9(0x1c4)));console[_0x26ebe9(0x18a)](),console[_0x26ebe9(0x18a)](a124_0x3bdf62[_0x26ebe9(0x1ce)](_0x26ebe9(0x1d6))),console[_0x26ebe9(0x18a)](a124_0x3bdf62[_0x26ebe9(0x1d8)](_0x26ebe9(0x1e5)['repeat'](0x1e))),console[_0x26ebe9(0x18a)](_0x26ebe9(0x1db)+(_0x42e231['appCode']||a124_0x3bdf62[_0x26ebe9(0x1a4)]('(not\x20set)')));const _0x5b00f2=_0x152b7f?a124_0x3bdf62[_0x26ebe9(0x1a4)](describeRegionValue(_0x42e231[_0x26ebe9(0x1ac)]??_0x42e231['raw']?.[_0x26ebe9(0x194)])+_0x26ebe9(0x1b8)):(_0x42e231['region']??DEFAULT_LOVRABET_REGION)+'\x20('+(_0x42e231[_0x26ebe9(0x1e6)]??_0x26ebe9(0x1d2))+')';console[_0x26ebe9(0x18a)](_0x26ebe9(0x1cb)+_0x5b00f2),console[_0x26ebe9(0x18a)](_0x26ebe9(0x1b1)+_0x42e231[_0x26ebe9(0x1de)]),console[_0x26ebe9(0x18a)]('\x20\x20app\x20locale:\x20\x20\x20\x20\x20\x20'+_0x42e231['locale']),console[_0x26ebe9(0x18a)](_0x26ebe9(0x181)+_0x42e231['apiDir']),console['log'](_0x26ebe9(0x1c2)+(_0x42e231[_0x26ebe9(0x1bf)]||a124_0x3bdf62[_0x26ebe9(0x1d8)]('(none)'))),console['log']('\x20\x20currentApp:\x20\x20\x20\x20\x20\x20'+(_0x42e231['currentApp']||a124_0x3bdf62[_0x26ebe9(0x1d8)](_0x26ebe9(0x1cf)))),console[_0x26ebe9(0x18a)](_0x26ebe9(0x1ed)+(_0x42e231[_0x26ebe9(0x180)]||a124_0x3bdf62[_0x26ebe9(0x1d8)](_0x26ebe9(0x1cf)))),console[_0x26ebe9(0x18a)](_0x26ebe9(0x1bc)+(_0x42e231[_0x26ebe9(0x1fb)]||a124_0x3bdf62[_0x26ebe9(0x1d8)](_0x26ebe9(0x1e4)+DEFAULT_CONFIG_VALUES[_0x26ebe9(0x1fb)]+')'))),console[_0x26ebe9(0x18a)](_0x26ebe9(0x200)+(_0x42e231['pageSize']??a124_0x3bdf62[_0x26ebe9(0x1d8)](_0x26ebe9(0x1ab)))),console[_0x26ebe9(0x18a)]('\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20'+_0x42e231[_0x26ebe9(0x1a8)]),console[_0x26ebe9(0x18a)]('\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x42e231[_0x26ebe9(0x1d9)]),console['log'](_0x26ebe9(0x196)+(_0x42e231[_0x26ebe9(0x1eb)]?a124_0x3bdf62[_0x26ebe9(0x1c9)](_0x26ebe9(0x17a)+_0x42e231['cookie'][_0x26ebe9(0x204)]+')'):_0x17b141?a124_0x3bdf62[_0x26ebe9(0x1c9)]('(set\x20via\x20file,\x20length='+_0x17b141[_0x26ebe9(0x204)]+')'):a124_0x3bdf62[_0x26ebe9(0x1d8)](_0x26ebe9(0x1cf))));const _0x74c635=Object[_0x26ebe9(0x1a0)](_0x42e231[_0x26ebe9(0x1f8)]);if(_0x74c635['length']>0x0){console[_0x26ebe9(0x18a)](),console[_0x26ebe9(0x18a)](a124_0x3bdf62[_0x26ebe9(0x1ce)]('\x20\x20Apps')),console[_0x26ebe9(0x18a)](a124_0x3bdf62[_0x26ebe9(0x1d8)](_0x26ebe9(0x1e5)['repeat'](0x1e)));for(const _0x3c9a3b of _0x74c635){const _0x14dc4d=_0x42e231[_0x26ebe9(0x1f8)][_0x3c9a3b],_0x80fbcd=_0x3c9a3b===_0x42e231[_0x26ebe9(0x1bf)],_0x5a9797=_0x3c9a3b===_0x42e231[_0x26ebe9(0x1dd)],_0x33653b=_0x5a9797?a124_0x3bdf62[_0x26ebe9(0x1c9)](_0x26ebe9(0x1f0)):'',_0x2b99da=_0x80fbcd?_0x26ebe9(0x1ee):'';console[_0x26ebe9(0x18a)]('\x20\x20'+_0x3c9a3b+_0x2b99da+_0x33653b),console[_0x26ebe9(0x18a)](_0x26ebe9(0x19f)+_0x14dc4d[_0x26ebe9(0x1b3)]);const _0x5de6ea=_0x1527a1['projectConfig'][_0x26ebe9(0x1f8)]&&typeof _0x1527a1[_0x26ebe9(0x182)][_0x26ebe9(0x1f8)]===_0x26ebe9(0x1d7)?_0x1527a1['projectConfig'][_0x26ebe9(0x1f8)]:{},_0x448452=Object[_0x26ebe9(0x1da)][_0x26ebe9(0x1b2)][_0x26ebe9(0x1fe)](_0x5de6ea,_0x3c9a3b),_0x580330=isInvalidLovrabetRegion(_0x14dc4d[_0x26ebe9(0x194)])?{'region':_0x42e231[_0x26ebe9(0x194)]??DEFAULT_LOVRABET_REGION}:resolveEffectiveRegion({'appRegion':_0x14dc4d[_0x26ebe9(0x194)],'projectRegion':_0x448452?_0x1527a1[_0x26ebe9(0x182)]['region']:undefined,'globalRegion':_0x1527a1[_0x26ebe9(0x1dc)]['region'],'mergedRegion':_0x42e231[_0x26ebe9(0x1bb)][_0x26ebe9(0x194)],'appName':_0x3c9a3b}),_0x139153=buildAppDoctorFields(_0x14dc4d,{'region':_0x580330[_0x26ebe9(0x194)],'env':_0x42e231['env'],'apiDir':_0x42e231[_0x26ebe9(0x1bb)][_0x26ebe9(0x1a7)]||DEFAULT_CONFIG_VALUES[_0x26ebe9(0x1a7)],'cookie':_0x42e231[_0x26ebe9(0x1eb)]||_0x17b141||undefined,'accessKey':_0x42e231[_0x26ebe9(0x1a2)]});console[_0x26ebe9(0x18a)]('\x20\x20\x20\x20region:\x20\x20\x20\x20\x20'+_0x139153[_0x26ebe9(0x194)][_0x26ebe9(0x19c)]+'\x20\x20'+a124_0x3bdf62[_0x26ebe9(0x1d8)]('('+_0x139153[_0x26ebe9(0x194)]['source']+')')),console['log'](_0x26ebe9(0x17b)+_0x139153['env'][_0x26ebe9(0x19c)]+'\x20\x20'+a124_0x3bdf62[_0x26ebe9(0x1d8)]('('+_0x139153[_0x26ebe9(0x1de)][_0x26ebe9(0x1a6)]+')')),console[_0x26ebe9(0x18a)](_0x26ebe9(0x1e0)+_0x139153['apiDir'][_0x26ebe9(0x19c)]+'\x20\x20'+a124_0x3bdf62[_0x26ebe9(0x1d8)]('('+_0x139153['apiDir'][_0x26ebe9(0x1a6)]+')'));const _0x1dd0fe=_0x139153['cookie'][_0x26ebe9(0x19c)]?a124_0x3bdf62['green']('(set,\x20length='+_0x139153[_0x26ebe9(0x1eb)]['value'][_0x26ebe9(0x204)]+')'):a124_0x3bdf62[_0x26ebe9(0x1d8)](_0x26ebe9(0x1cf));console[_0x26ebe9(0x18a)](_0x26ebe9(0x1c5)+_0x1dd0fe+'\x20\x20'+a124_0x3bdf62[_0x26ebe9(0x1d8)]('('+_0x139153['cookie'][_0x26ebe9(0x1a6)]+')'));const _0x2d35f1=_0x139153[_0x26ebe9(0x1a2)][_0x26ebe9(0x19c)]?a124_0x3bdf62[_0x26ebe9(0x1c9)]('(set,\x20length='+_0x139153[_0x26ebe9(0x1a2)]['value'][_0x26ebe9(0x204)]+')'):a124_0x3bdf62[_0x26ebe9(0x1d8)]('(none)');console[_0x26ebe9(0x18a)](_0x26ebe9(0x18e)+_0x2d35f1+'\x20\x20'+a124_0x3bdf62['gray']('('+_0x139153[_0x26ebe9(0x1a2)][_0x26ebe9(0x1a6)]+')'));}}console[_0x26ebe9(0x18a)](),console[_0x26ebe9(0x18a)](a124_0x3bdf62['bold']('\x20\x20API\x20Endpoints')),console['log'](a124_0x3bdf62[_0x26ebe9(0x1d8)](_0x26ebe9(0x1e5)['repeat'](0x1e)));_0x36e428?console[_0x26ebe9(0x18a)](_0x26ebe9(0x205)+a124_0x3bdf62[_0x26ebe9(0x1a4)](_0x26ebe9(0x1e7))):(console[_0x26ebe9(0x18a)]('\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+getActiveRegion()),console['log'](_0x26ebe9(0x1ae)+getApiDomain()),console['log'](_0x26ebe9(0x202)+getUserDomain()),console['log']('\x20\x20runtimeDomain:\x20\x20\x20'+getRuntimeDomain()),console[_0x26ebe9(0x18a)](_0x26ebe9(0x193)+getSkillDomain()),console[_0x26ebe9(0x18a)](_0x26ebe9(0x1f9)+getKbDomain()),console[_0x26ebe9(0x18a)](_0x26ebe9(0x1b5)+(getKbServiceDomain()??'not\x20configured')),console[_0x26ebe9(0x18a)](_0x26ebe9(0x19e)+getAppDomain()));console[_0x26ebe9(0x18a)](),console[_0x26ebe9(0x18a)](a124_0x3bdf62[_0x26ebe9(0x1ce)](_0x26ebe9(0x188))),console[_0x26ebe9(0x18a)](a124_0x3bdf62[_0x26ebe9(0x1d8)]('\x20\x20─'[_0x26ebe9(0x18f)](0x1e)));if(_0x36e428)console[_0x26ebe9(0x18a)](_0x26ebe9(0x205)+a124_0x3bdf62[_0x26ebe9(0x187)](_0x26ebe9(0x18b)));else{if(_0x17b141){const _0x53d101=await getIsSessionValid();console['log'](_0x26ebe9(0x205)+(_0x53d101?a124_0x3bdf62[_0x26ebe9(0x1c9)]('✓\x20Valid'):a124_0x3bdf62[_0x26ebe9(0x1a4)](_0x26ebe9(0x1d3))));}else console[_0x26ebe9(0x18a)](_0x26ebe9(0x205)+a124_0x3bdf62[_0x26ebe9(0x1a4)](_0x26ebe9(0x1d0)));}return console[_0x26ebe9(0x18a)](),{'ok':!![]};}export const doctorDefinition={'service':'doctor','command':'check','description':a124_0x31dd85(0x19d),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
1
+ const a124_0x3450bb=a124_0x140d;(function(_0x3c3ca7,_0x52ef01){const _0x29906a=a124_0x140d,_0x324527=_0x3c3ca7();while(!![]){try{const _0x2bec63=parseInt(_0x29906a(0x1ba))/0x1*(parseInt(_0x29906a(0x1cb))/0x2)+parseInt(_0x29906a(0x1cd))/0x3*(parseInt(_0x29906a(0x1a5))/0x4)+-parseInt(_0x29906a(0x1ac))/0x5+-parseInt(_0x29906a(0x15f))/0x6+parseInt(_0x29906a(0x182))/0x7+parseInt(_0x29906a(0x16e))/0x8+parseInt(_0x29906a(0x198))/0x9*(-parseInt(_0x29906a(0x1a7))/0xa);if(_0x2bec63===_0x52ef01)break;else _0x324527['push'](_0x324527['shift']());}catch(_0x2f99d0){_0x324527['push'](_0x324527['shift']());}}}(a124_0x4606,0xcfa1f));import a124_0x3e80ad from'chalk';function a124_0x140d(_0x4abf23,_0x283d8b){_0x4abf23=_0x4abf23-0x152;const _0x460677=a124_0x4606();let _0x140dab=_0x460677[_0x4abf23];return _0x140dab;}function a124_0x4606(){const _0x42fd8c=['\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','repairCommand','Repair\x20','(default:\x20','Project','8319885SIMFqS','\x20\x20Built-in\x20Skill','\x20\x20\x20\x20region:\x20\x20\x20\x20\x20','Set\x20apps.','apps','\x20\x20\x20\x20accessKey:\x20\x20','length','stringify','\x20\x20Country/Region\x20Configuration','skillVersion','format','yellow','✗\x20Invalid','\x20\x20runtimeDomain:\x20\x20\x20','push','defaultApp','doctor','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','\x20\x20kbDomain:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Config\x20JSON','✗\x20Expired','global','567bBSvfs','\x20\x20Routing\x20Configuration','source','\x20←\x20current','\x20config\x20delete\x20region','(set\x20via\x20file,\x20length=','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','version','currentApp','keys','installedPath','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','raw','28dApWnJ','\x20\x20Repair\x20project:\x20\x20','120120EpPCaq','missing','status','repeat','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','114200evKWzG','state','\x20\x20Installed\x20Path:\x20\x20','slice','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','toLowerCase','globalConfig','\x20\x20app\x20locale:\x20\x20\x20\x20\x20\x20','locale','\x20\x20Config\x20Files','value','\x20\x20Auth','log','red','965dnBnZO','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','present','join','inherit','entries','check','\x20\x20appDomain:\x20\x20\x20\x20\x20\x20\x20','region','\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','apiDir','verbose','bold','\x20\x20Apps','padEnd','regionConfiguredValue','(default)','174cMPayl','\x20\x20explicitAppName:\x20','23907ESqYXR','object','✓\x20Valid','\x20\x20─','\x20\x20Package\x20Version:\x20','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','prototype','empty','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','explicitAppName','⚠\x20Empty\x20(treated\x20as\x20{})','(not\x20found)','\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','not\x20configured','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','green','\x20config','project','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','accessKey','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Not\x20checked\x20until\x20routing\x20configuration\x20is\x20repaired','\x20\x20skillDomain:\x20\x20\x20\x20\x20','(set,\x20length=','current','(unknown)','hasOwnProperty','\x20\x20API\x20Endpoints','✗\x20Invalid\x20','default','7019442wtWBTJ','cookie','call','gray','(not\x20set)','Global','message','\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20app\x20\x22','\x20\x20Skill\x20Version:\x20\x20\x20','\x20config\x20delete\x20routing\x20--global','(none)','\x20(invalid)','Unavailable\x20until\x20routing\x20configuration\x20is\x20repaired','label','11773384oLCtGK','(missing)','\x20(default)','projectConfig','env','read','ignored\x20in\x20','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','reason','\x20\x20Repair\x20global:\x20\x20\x20\x20','✓\x20Valid\x20JSON','\x20\x20kbServiceDomain:\x20','regionSource'];a124_0x4606=function(){return _0x42fd8c;};return a124_0x4606();}import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';import{getActiveRegion,getApiDomain,getAppDomain,getKbDomain,getKbServiceDomain,getSkillDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags,initGlobalEnvironment,inspectCliConfigJsonFile,loadRawConfigLayers}from'../context.js';import{getIsSessionValid}from'../auth/is-session-valid.js';import{getCookie}from'../auth/get-cookie.js';import{buildAppDoctorFields}from'../config/schema.js';import{resolveEffectiveRegion}from'../config/region-config.js';import{inspectBuiltinSkill}from'../skills/builtin-skill.js';import{DEFAULT_LOVRABET_REGION,isInvalidLovrabetRegion}from'../constant/region.js';function describeRegionValue(_0x1e80d6){const _0x51247e=a124_0x140d;return typeof _0x1e80d6==='string'?JSON[_0x51247e(0x189)](_0x1e80d6):'<'+(_0x1e80d6===null?'null':typeof _0x1e80d6)+'>';}async function execute(_0x56ccfb){const _0xf759d9=a124_0x140d,_0x59ae44=GIT_COMMIT!=='unknown'?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0xf759d9(0x1af)](0x0,0xa)+')':VERSION,_0x33285=buildConfigFromFlags({}),_0x5a422d=getCookie();let _0x1dcc2b;try{await initGlobalEnvironment(_0x33285);}catch(_0x37c2fd){_0x1dcc2b=_0x37c2fd instanceof Error?_0x37c2fd:new Error(String(_0x37c2fd));}console[_0xf759d9(0x1b8)](),console[_0xf759d9(0x1b8)](a124_0x3e80ad['bold'](CLI_BIN_NAME+'\x20doctor')),console[_0xf759d9(0x1b8)](a124_0x3e80ad[_0xf759d9(0x162)]('─'[_0xf759d9(0x1aa)](0x32))),console[_0xf759d9(0x1b8)]('\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20'+_0x59ae44),console[_0xf759d9(0x1b8)]('\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+process[_0xf759d9(0x19f)]),console[_0xf759d9(0x1b8)]('\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20'+process['platform']+'\x20'+process['arch']);const _0x46e048=inspectBuiltinSkill();console['log'](),console[_0xf759d9(0x1b8)](a124_0x3e80ad[_0xf759d9(0x1c6)](_0xf759d9(0x183))),console[_0xf759d9(0x1b8)](a124_0x3e80ad[_0xf759d9(0x162)](_0xf759d9(0x1d0)['repeat'](0x1e)));const _0x49d7dc=_0x46e048[_0xf759d9(0x1ad)]===_0xf759d9(0x159)?a124_0x3e80ad['green']('✓\x20'+_0x46e048[_0xf759d9(0x1ad)]):a124_0x3e80ad['red']('✗\x20'+_0x46e048[_0xf759d9(0x1ad)]);console['log'](_0xf759d9(0x1da)+_0x49d7dc),console[_0xf759d9(0x1b8)](_0xf759d9(0x1d1)+_0x46e048['packageVersion']),console[_0xf759d9(0x1b8)](_0xf759d9(0x168)+(_0x46e048[_0xf759d9(0x18b)]||a124_0x3e80ad[_0xf759d9(0x162)](_0xf759d9(0x15a)))),console[_0xf759d9(0x1b8)](_0xf759d9(0x1ae)+(_0x46e048[_0xf759d9(0x1a2)]||a124_0x3e80ad[_0xf759d9(0x162)](_0xf759d9(0x1d9))));if(_0x46e048[_0xf759d9(0x178)])console[_0xf759d9(0x1b8)](_0xf759d9(0x166)+_0x46e048[_0xf759d9(0x178)]);_0x46e048['state']!==_0xf759d9(0x159)&&console[_0xf759d9(0x1b8)](_0xf759d9(0x1c3)+_0x46e048[_0xf759d9(0x17e)]);console[_0xf759d9(0x1b8)](),console['log'](a124_0x3e80ad[_0xf759d9(0x1c6)](_0xf759d9(0x1b5))),console[_0xf759d9(0x1b8)](a124_0x3e80ad[_0xf759d9(0x162)](_0xf759d9(0x1d0)[_0xf759d9(0x1aa)](0x1e)));const _0x3ac5b0=getGlobalConfigPath(),_0x47278a=getProjectConfigPath();console[_0xf759d9(0x1b8)](_0xf759d9(0x1d6)+(_0x3ac5b0||a124_0x3e80ad[_0xf759d9(0x162)](_0xf759d9(0x1d9)))),console[_0xf759d9(0x1b8)](_0xf759d9(0x1b0)+(_0x47278a||a124_0x3e80ad[_0xf759d9(0x162)]('(not\x20found)'))),console[_0xf759d9(0x1b8)](),console['log'](a124_0x3e80ad[_0xf759d9(0x1c6)](_0xf759d9(0x195))),console[_0xf759d9(0x1b8)](a124_0x3e80ad['gray'](_0xf759d9(0x1d0)['repeat'](0x1e)));const _0x56f269=(_0x89f332,_0x1c7f0d)=>{const _0x80043c=_0xf759d9;if(!_0x1c7f0d){console['log']('\x20\x20'+_0x89f332[_0x80043c(0x1c8)](0x11)+'\x20'+a124_0x3e80ad[_0x80043c(0x162)]('(no\x20file)'));return;}const _0x2116e0=inspectCliConfigJsonFile(_0x1c7f0d);if(_0x2116e0[_0x80043c(0x1a9)]==='ok')console[_0x80043c(0x1b8)]('\x20\x20'+_0x89f332[_0x80043c(0x1c8)](0x11)+'\x20'+a124_0x3e80ad[_0x80043c(0x1dd)](_0x80043c(0x17a)));else{if(_0x2116e0[_0x80043c(0x1a9)]===_0x80043c(0x1d5))console[_0x80043c(0x1b8)]('\x20\x20'+_0x89f332[_0x80043c(0x1c8)](0x11)+'\x20'+a124_0x3e80ad[_0x80043c(0x18d)](_0x80043c(0x1d8)));else _0x2116e0[_0x80043c(0x1a9)]===_0x80043c(0x1a8)?console['log']('\x20\x20'+_0x89f332['padEnd'](0x11)+'\x20'+a124_0x3e80ad[_0x80043c(0x162)](_0x80043c(0x16f))):(console['log']('\x20\x20'+_0x89f332[_0x80043c(0x1c8)](0x11)+'\x20'+a124_0x3e80ad['red']('✗\x20Invalid\x20JSON')),console[_0x80043c(0x1b8)]('\x20\x20'+''[_0x80043c(0x1c8)](0x11)+'\x20'+a124_0x3e80ad['red'](_0x2116e0['message'])));}};_0x56f269(_0xf759d9(0x164),_0x3ac5b0),_0x56f269(_0xf759d9(0x181),_0x47278a);const _0x27332b=loadRawConfigLayers(),_0x2df194=[{'label':_0xf759d9(0x181),'value':_0x27332b[_0xf759d9(0x171)][_0xf759d9(0x1c2)],'present':Object[_0xf759d9(0x1d4)]['hasOwnProperty'][_0xf759d9(0x161)](_0x27332b[_0xf759d9(0x171)],_0xf759d9(0x1c2)),'repairCommand':CLI_BIN_NAME+_0xf759d9(0x19c)},{'label':'Global','value':_0x27332b[_0xf759d9(0x1b2)][_0xf759d9(0x1c2)],'present':Object['prototype']['hasOwnProperty'][_0xf759d9(0x161)](_0x27332b[_0xf759d9(0x1b2)],'region'),'repairCommand':CLI_BIN_NAME+'\x20config\x20delete\x20region\x20--global'}]['filter'](_0x319b68=>_0x319b68[_0xf759d9(0x1bc)]&&isInvalidLovrabetRegion(_0x319b68[_0xf759d9(0x1b6)]));for(const [_0x2e9742,_0x459edc]of[[_0xf759d9(0x181),_0x27332b[_0xf759d9(0x171)]],[_0xf759d9(0x164),_0x27332b['globalConfig']]]){const _0x557025=_0x459edc['apps']&&typeof _0x459edc[_0xf759d9(0x186)]===_0xf759d9(0x1ce)?_0x459edc['apps']:{};for(const [_0x1879db,_0x4eefaa]of Object[_0xf759d9(0x1bf)](_0x557025)){if(!_0x4eefaa||typeof _0x4eefaa!==_0xf759d9(0x1ce)||!Object[_0xf759d9(0x1d4)][_0xf759d9(0x15b)]['call'](_0x4eefaa,_0xf759d9(0x1c2)))continue;isInvalidLovrabetRegion(_0x4eefaa[_0xf759d9(0x1c2)])&&_0x2df194[_0xf759d9(0x190)]({'label':_0x2e9742+_0xf759d9(0x167)+_0x1879db+'\x22','value':_0x4eefaa[_0xf759d9(0x1c2)],'present':!![],'repairCommand':_0xf759d9(0x185)+_0x1879db+'.region\x20to\x20cn\x20or\x20id\x20in\x20'+_0x2e9742[_0xf759d9(0x1b1)]()+_0xf759d9(0x1de)});}}if(_0x2df194[_0xf759d9(0x188)]>0x0){console[_0xf759d9(0x1b8)](),console[_0xf759d9(0x1b8)](a124_0x3e80ad[_0xf759d9(0x1c6)](_0xf759d9(0x18a))),console[_0xf759d9(0x1b8)](a124_0x3e80ad[_0xf759d9(0x162)](_0xf759d9(0x1d0)[_0xf759d9(0x1aa)](0x1e)));for(const _0x211b6a of _0x2df194){console[_0xf759d9(0x1b8)]('\x20\x20'+_0x211b6a[_0xf759d9(0x16d)]['padEnd'](0x11)+'\x20'+a124_0x3e80ad['red'](_0xf759d9(0x15d)+describeRegionValue(_0x211b6a[_0xf759d9(0x1b6)]))),console['log']('\x20\x20'+(_0xf759d9(0x17f)+_0x211b6a[_0xf759d9(0x16d)]['toLowerCase']()+':')[_0xf759d9(0x1c8)](0x10)+'\x20'+_0x211b6a[_0xf759d9(0x17e)]);}}const _0x183356=[Object['prototype']['hasOwnProperty'][_0xf759d9(0x161)](_0x27332b[_0xf759d9(0x1b2)],_0xf759d9(0x1be))?_0xf759d9(0x197):null,Object[_0xf759d9(0x1d4)][_0xf759d9(0x15b)][_0xf759d9(0x161)](_0x27332b['projectConfig'],'inherit')?_0xf759d9(0x1df):null]['filter'](Boolean);_0x183356[_0xf759d9(0x188)]>0x0&&(console['log']('\x20\x20Legacy\x20inherit:\x20\x20\x20'+a124_0x3e80ad['yellow'](_0xf759d9(0x174)+_0x183356[_0xf759d9(0x1bd)]('\x20+\x20')+_0xf759d9(0x1de))),_0x183356['includes'](_0xf759d9(0x1df))&&console[_0xf759d9(0x1b8)]('\x20\x20Repair\x20project:\x20\x20\x20'+CLI_BIN_NAME+'\x20config\x20delete\x20inherit'),_0x183356['includes'](_0xf759d9(0x197))&&console[_0xf759d9(0x1b8)](_0xf759d9(0x179)+CLI_BIN_NAME+'\x20config\x20delete\x20inherit\x20--global'));const _0x55b19e=isInvalidLovrabetRegion(_0x33285[_0xf759d9(0x1c9)]??_0x33285[_0xf759d9(0x1a4)]?.[_0xf759d9(0x1c2)]);_0x1dcc2b&&!_0x55b19e&&(console[_0xf759d9(0x1b8)](),console[_0xf759d9(0x1b8)](a124_0x3e80ad[_0xf759d9(0x1c6)](_0xf759d9(0x199))),console['log'](a124_0x3e80ad[_0xf759d9(0x162)](_0xf759d9(0x1d0)[_0xf759d9(0x1aa)](0x1e))),console['log'](_0xf759d9(0x17d)+a124_0x3e80ad[_0xf759d9(0x1b9)](_0xf759d9(0x18e))),console[_0xf759d9(0x1b8)](_0xf759d9(0x166)+_0x1dcc2b[_0xf759d9(0x165)]),Object[_0xf759d9(0x1d4)]['hasOwnProperty']['call'](_0x27332b[_0xf759d9(0x171)],'routing')&&console['log'](_0xf759d9(0x1a6)+CLI_BIN_NAME+'\x20config\x20delete\x20routing'),Object[_0xf759d9(0x1d4)]['hasOwnProperty'][_0xf759d9(0x161)](_0x27332b['globalConfig'],'routing')&&console['log']('\x20\x20Repair\x20global:\x20\x20\x20'+CLI_BIN_NAME+_0xf759d9(0x169)));console['log'](),console[_0xf759d9(0x1b8)](a124_0x3e80ad[_0xf759d9(0x1c6)]('\x20\x20Merged\x20Config')),console['log'](a124_0x3e80ad[_0xf759d9(0x162)](_0xf759d9(0x1d0)[_0xf759d9(0x1aa)](0x1e))),console['log'](_0xf759d9(0x19e)+(_0x33285['appCode']||a124_0x3e80ad[_0xf759d9(0x1b9)](_0xf759d9(0x163))));const _0x508d7f=_0x55b19e?a124_0x3e80ad[_0xf759d9(0x1b9)](describeRegionValue(_0x33285[_0xf759d9(0x1c9)]??_0x33285[_0xf759d9(0x1a4)]?.['region'])+_0xf759d9(0x16b)):(_0x33285[_0xf759d9(0x1c2)]??DEFAULT_LOVRABET_REGION)+'\x20('+(_0x33285[_0xf759d9(0x17c)]??_0xf759d9(0x15e))+')';console[_0xf759d9(0x1b8)]('\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x508d7f),console[_0xf759d9(0x1b8)](_0xf759d9(0x1d2)+_0x33285['env']),console['log'](_0xf759d9(0x1b3)+_0x33285[_0xf759d9(0x1b4)]),console[_0xf759d9(0x1b8)](_0xf759d9(0x154)+_0x33285[_0xf759d9(0x1c4)]),console[_0xf759d9(0x1b8)](_0xf759d9(0x193)+(_0x33285[_0xf759d9(0x191)]||a124_0x3e80ad['gray']('(none)'))),console['log'](_0xf759d9(0x1a3)+(_0x33285[_0xf759d9(0x1a0)]||a124_0x3e80ad[_0xf759d9(0x162)]('(none)'))),console[_0xf759d9(0x1b8)](_0xf759d9(0x1cc)+(_0x33285[_0xf759d9(0x1d7)]||a124_0x3e80ad[_0xf759d9(0x162)](_0xf759d9(0x16a)))),console[_0xf759d9(0x1b8)](_0xf759d9(0x155)+(_0x33285[_0xf759d9(0x18c)]||a124_0x3e80ad[_0xf759d9(0x162)](_0xf759d9(0x180)+DEFAULT_CONFIG_VALUES['format']+')'))),console[_0xf759d9(0x1b8)](_0xf759d9(0x1dc)+(_0x33285['pageSize']??a124_0x3e80ad['gray'](_0xf759d9(0x1ca)))),console[_0xf759d9(0x1b8)]('\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20'+_0x33285['riskLevel']),console[_0xf759d9(0x1b8)](_0xf759d9(0x152)+_0x33285[_0xf759d9(0x1c5)]),console[_0xf759d9(0x1b8)](_0xf759d9(0x1ab)+(_0x33285['cookie']?a124_0x3e80ad[_0xf759d9(0x1dd)]('(set,\x20length='+_0x33285['cookie'][_0xf759d9(0x188)]+')'):_0x5a422d?a124_0x3e80ad['green'](_0xf759d9(0x19d)+_0x5a422d[_0xf759d9(0x188)]+')'):a124_0x3e80ad[_0xf759d9(0x162)](_0xf759d9(0x16a))));const _0x284ce4=Object[_0xf759d9(0x1a1)](_0x33285['apps']);if(_0x284ce4[_0xf759d9(0x188)]>0x0){console['log'](),console[_0xf759d9(0x1b8)](a124_0x3e80ad[_0xf759d9(0x1c6)](_0xf759d9(0x1c7))),console[_0xf759d9(0x1b8)](a124_0x3e80ad[_0xf759d9(0x162)](_0xf759d9(0x1d0)[_0xf759d9(0x1aa)](0x1e)));for(const _0x25669f of _0x284ce4){const _0x4cd3bc=_0x33285['apps'][_0x25669f],_0x3578ea=_0x25669f===_0x33285['defaultApp'],_0x45dcfc=_0x25669f===_0x33285[_0xf759d9(0x1a0)],_0x3d279f=_0x45dcfc?a124_0x3e80ad[_0xf759d9(0x1dd)](_0xf759d9(0x19b)):'',_0x16b675=_0x3578ea?_0xf759d9(0x170):'';console[_0xf759d9(0x1b8)]('\x20\x20'+_0x25669f+_0x16b675+_0x3d279f),console[_0xf759d9(0x1b8)](_0xf759d9(0x1bb)+_0x4cd3bc['appcode']);const _0x2ed8e9=_0x27332b[_0xf759d9(0x171)][_0xf759d9(0x186)]&&typeof _0x27332b[_0xf759d9(0x171)][_0xf759d9(0x186)]==='object'?_0x27332b[_0xf759d9(0x171)][_0xf759d9(0x186)]:{},_0x9b234c=Object[_0xf759d9(0x1d4)][_0xf759d9(0x15b)][_0xf759d9(0x161)](_0x2ed8e9,_0x25669f),_0x5d943a=isInvalidLovrabetRegion(_0x4cd3bc['region'])?{'region':_0x33285[_0xf759d9(0x1c2)]??DEFAULT_LOVRABET_REGION}:resolveEffectiveRegion({'appRegion':_0x4cd3bc[_0xf759d9(0x1c2)],'projectRegion':_0x9b234c?_0x27332b[_0xf759d9(0x171)][_0xf759d9(0x1c2)]:undefined,'globalRegion':_0x27332b[_0xf759d9(0x1b2)][_0xf759d9(0x1c2)],'mergedRegion':_0x33285['raw'][_0xf759d9(0x1c2)],'appName':_0x25669f}),_0x2e36b5=buildAppDoctorFields(_0x4cd3bc,{'region':_0x5d943a[_0xf759d9(0x1c2)],'env':_0x33285['env'],'apiDir':_0x33285[_0xf759d9(0x1a4)][_0xf759d9(0x1c4)]||DEFAULT_CONFIG_VALUES[_0xf759d9(0x1c4)],'cookie':_0x33285['cookie']||_0x5a422d||undefined,'accessKey':_0x33285['accessKey']});console[_0xf759d9(0x1b8)](_0xf759d9(0x184)+_0x2e36b5[_0xf759d9(0x1c2)]['value']+'\x20\x20'+a124_0x3e80ad[_0xf759d9(0x162)]('('+_0x2e36b5[_0xf759d9(0x1c2)][_0xf759d9(0x19a)]+')')),console[_0xf759d9(0x1b8)](_0xf759d9(0x175)+_0x2e36b5[_0xf759d9(0x172)][_0xf759d9(0x1b6)]+'\x20\x20'+a124_0x3e80ad[_0xf759d9(0x162)]('('+_0x2e36b5[_0xf759d9(0x172)][_0xf759d9(0x19a)]+')')),console[_0xf759d9(0x1b8)](_0xf759d9(0x176)+_0x2e36b5[_0xf759d9(0x1c4)]['value']+'\x20\x20'+a124_0x3e80ad['gray']('('+_0x2e36b5[_0xf759d9(0x1c4)][_0xf759d9(0x19a)]+')'));const _0x43a59d=_0x2e36b5[_0xf759d9(0x160)][_0xf759d9(0x1b6)]?a124_0x3e80ad['green'](_0xf759d9(0x158)+_0x2e36b5['cookie']['value']['length']+')'):a124_0x3e80ad[_0xf759d9(0x162)](_0xf759d9(0x16a));console[_0xf759d9(0x1b8)](_0xf759d9(0x1d3)+_0x43a59d+'\x20\x20'+a124_0x3e80ad[_0xf759d9(0x162)]('('+_0x2e36b5[_0xf759d9(0x160)][_0xf759d9(0x19a)]+')'));const _0x3c5883=_0x2e36b5[_0xf759d9(0x153)][_0xf759d9(0x1b6)]?a124_0x3e80ad[_0xf759d9(0x1dd)](_0xf759d9(0x158)+_0x2e36b5[_0xf759d9(0x153)][_0xf759d9(0x1b6)][_0xf759d9(0x188)]+')'):a124_0x3e80ad[_0xf759d9(0x162)]('(none)');console[_0xf759d9(0x1b8)](_0xf759d9(0x187)+_0x3c5883+'\x20\x20'+a124_0x3e80ad[_0xf759d9(0x162)]('('+_0x2e36b5[_0xf759d9(0x153)][_0xf759d9(0x19a)]+')'));}}console[_0xf759d9(0x1b8)](),console['log'](a124_0x3e80ad[_0xf759d9(0x1c6)](_0xf759d9(0x15c))),console['log'](a124_0x3e80ad[_0xf759d9(0x162)]('\x20\x20─'[_0xf759d9(0x1aa)](0x1e)));_0x1dcc2b?console[_0xf759d9(0x1b8)](_0xf759d9(0x17d)+a124_0x3e80ad[_0xf759d9(0x1b9)](_0xf759d9(0x16c))):(console[_0xf759d9(0x1b8)](_0xf759d9(0x177)+getActiveRegion()),console[_0xf759d9(0x1b8)]('\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20'+getApiDomain()),console[_0xf759d9(0x1b8)]('\x20\x20userDomain:\x20\x20\x20\x20\x20\x20'+getUserDomain()),console[_0xf759d9(0x1b8)](_0xf759d9(0x18f)+getRuntimeDomain()),console[_0xf759d9(0x1b8)](_0xf759d9(0x157)+getSkillDomain()),console[_0xf759d9(0x1b8)](_0xf759d9(0x194)+getKbDomain()),console[_0xf759d9(0x1b8)](_0xf759d9(0x17b)+(getKbServiceDomain()??_0xf759d9(0x1db))),console['log'](_0xf759d9(0x1c1)+getAppDomain()));console[_0xf759d9(0x1b8)](),console[_0xf759d9(0x1b8)](a124_0x3e80ad[_0xf759d9(0x1c6)](_0xf759d9(0x1b7))),console[_0xf759d9(0x1b8)](a124_0x3e80ad[_0xf759d9(0x162)]('\x20\x20─'[_0xf759d9(0x1aa)](0x1e)));if(_0x1dcc2b)console['log']('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a124_0x3e80ad[_0xf759d9(0x18d)](_0xf759d9(0x156)));else{if(_0x5a422d){const _0x5c6df1=await getIsSessionValid();console[_0xf759d9(0x1b8)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x5c6df1?a124_0x3e80ad['green'](_0xf759d9(0x1cf)):a124_0x3e80ad['red'](_0xf759d9(0x196))));}else console[_0xf759d9(0x1b8)](_0xf759d9(0x17d)+a124_0x3e80ad[_0xf759d9(0x1b9)]('✗\x20Not\x20logged\x20in'));}return console[_0xf759d9(0x1b8)](),{'ok':!![]};}export const doctorDefinition={'service':a124_0x3450bb(0x192),'command':a124_0x3450bb(0x1c0),'description':'Diagnose\x20CLI\x20configuration\x20and\x20connectivity','risk':a124_0x3450bb(0x173),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
@@ -1 +1 @@
1
- const a125_0x4f9613=a125_0x453f;(function(_0x18b5b6,_0x111781){const _0xc27ca9=a125_0x453f,_0x2158bd=_0x18b5b6();while(!![]){try{const _0xfaf44a=parseInt(_0xc27ca9(0xde))/0x1*(parseInt(_0xc27ca9(0xe1))/0x2)+parseInt(_0xc27ca9(0xc2))/0x3*(-parseInt(_0xc27ca9(0xd0))/0x4)+parseInt(_0xc27ca9(0xd4))/0x5+-parseInt(_0xc27ca9(0xdb))/0x6*(-parseInt(_0xc27ca9(0xc4))/0x7)+-parseInt(_0xc27ca9(0xcb))/0x8*(parseInt(_0xc27ca9(0xbd))/0x9)+-parseInt(_0xc27ca9(0xdd))/0xa*(-parseInt(_0xc27ca9(0xc1))/0xb)+-parseInt(_0xc27ca9(0xe0))/0xc*(parseInt(_0xc27ca9(0xcf))/0xd);if(_0xfaf44a===_0x111781)break;else _0x2158bd['push'](_0x2158bd['shift']());}catch(_0x5e530c){_0x2158bd['push'](_0x2158bd['shift']());}}}(a125_0x4ff1,0x375c8));function a125_0x4ff1(){const _0x1462c8=['Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','2694skZWIp','filePath\x20is\x20required.','1951060xXqVoD','2bZwhuB','long-term','377940SGZfbX','424812AIsaPe','Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20or\x20immediate\x20access','path','9oZypgL','Path\x20to\x20the\x20local\x20file\x20to\x20upload','string','appCode','11cPRiJn','27JbCptk','download','3367imWoYg','Development\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data','filepath','POST','trim','validation','bool','1868896cjjcAU','File','Uploaded\x20file:\x20','str','286hxIfIe','28916mKCPIw','read','boolean','.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','1912180GWkhxP','upload','Preview:\x20upload\x20','file','Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL','Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML'];a125_0x4ff1=function(){return _0x1462c8;};return a125_0x4ff1();}function a125_0x453f(_0xe0464,_0x1a74ca){_0xe0464=_0xe0464-0xbc;const _0x4ff19c=a125_0x4ff1();let _0x453f7d=_0x4ff19c[_0xe0464];return _0x453f7d;}import{requireDevelopmentUploadFile}from'../../commands/common/local-file.js';import{queryDevelopmentFileUrl,uploadDevelopmentFile}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const FILE_FLAG={'name':a125_0x4f9613(0xd7),'type':a125_0x4f9613(0xbf),'required':!![],'description':a125_0x4f9613(0xbe)},FILEPATH_FLAG={'name':a125_0x4f9613(0xc6),'type':a125_0x4f9613(0xbf),'required':!![],'description':a125_0x4f9613(0xc5)},DOWNLOAD_FLAG={'name':a125_0x4f9613(0xc3),'type':a125_0x4f9613(0xd2),'description':a125_0x4f9613(0xd8)},LONG_TERM_FLAG={'name':a125_0x4f9613(0xdf),'type':a125_0x4f9613(0xd2),'description':a125_0x4f9613(0xd9)};function requireFilePath(_0x52a571){const _0x172d7c=a125_0x4f9613,_0x3f69ce=_0x52a571[_0x172d7c(0xc8)]();if(!_0x3f69ce)throw CliErrors[_0x172d7c(0xc9)](_0x172d7c(0xdc));return _0x3f69ce;}const fileUpload={'service':a125_0x4f9613(0xd7),'command':a125_0x4f9613(0xd5),'description':'Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','risk':a125_0x4f9613(0xd1),'flags':[FILE_FLAG],async 'dryRun'(_0x52a399){const _0x378c09=a125_0x4f9613,_0x1c2138=requireDevelopmentUploadFile(_0x52a399[_0x378c09(0xce)](_0x378c09(0xd7)),_0x378c09(0xcc));return{'method':_0x378c09(0xc7),'url':'/smartapi/common/uploadFile','body':{'appCode':_0x52a399[_0x378c09(0xc0)],'multipart':{'file':_0x1c2138}},'description':_0x378c09(0xd6)+_0x1c2138['path']+'\x20to\x20development\x20app\x20'+_0x52a399[_0x378c09(0xc0)]};},async 'execute'(_0x3980c1){const _0x2f331b=a125_0x4f9613,_0x45a76e=requireDevelopmentUploadFile(_0x3980c1[_0x2f331b(0xce)](_0x2f331b(0xd7)),_0x2f331b(0xcc)),_0x5b8e77=await uploadDevelopmentFile(_0x3980c1[_0x2f331b(0xc0)],_0x45a76e[_0x2f331b(0xbc)]);return{'ok':!![],'data':_0x5b8e77,'message':_0x5b8e77['filePath']?_0x2f331b(0xcd)+_0x5b8e77['filePath']+_0x2f331b(0xd3):_0x2f331b(0xda)};}},fileQueryUrl={'service':a125_0x4f9613(0xd7),'command':'query-url','description':a125_0x4f9613(0xe2),'risk':a125_0x4f9613(0xd1),'flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0x30485e){const _0x148e78=a125_0x4f9613,_0x26f464=requireFilePath(_0x30485e[_0x148e78(0xce)](_0x148e78(0xc6))),_0x889e2c=await queryDevelopmentFileUrl(_0x26f464,{'download':_0x30485e[_0x148e78(0xca)](_0x148e78(0xc3)),'longTerm':_0x30485e['bool'](_0x148e78(0xdf))});return{'ok':!![],'data':_0x889e2c};}};export const fileDefinitions=[fileUpload,fileQueryUrl];
1
+ const a125_0x450fe5=a125_0x3348;function a125_0x6fdc(){const _0xbb9ea6=['10756140SZqJRy','6855144WFVpxw','file','642WWvAxO','1101NOfVzd','3282885eibrvR','download','30bJmFMh','Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20or\x20immediate\x20access','33FDvqTl','str','boolean','query-url','filePath\x20is\x20required.','File','133kjHNOz','Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','5321780AeoAad','4lXtCwh','628118iybGfs','237684UzetlB','Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL','Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML','Preview:\x20upload\x20','validation','read','string','appCode','filepath','path','Development\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data','Path\x20to\x20the\x20local\x20file\x20to\x20upload','long-term','filePath'];a125_0x6fdc=function(){return _0xbb9ea6;};return a125_0x6fdc();}(function(_0x435edc,_0x1dafac){const _0x369c28=a125_0x3348,_0xc9cdd1=_0x435edc();while(!![]){try{const _0x7f6f56=-parseInt(_0x369c28(0x14c))/0x1+-parseInt(_0x369c28(0x13c))/0x2*(-parseInt(_0x369c28(0x13d))/0x3)+-parseInt(_0x369c28(0x14b))/0x4*(parseInt(_0x369c28(0x14a))/0x5)+parseInt(_0x369c28(0x14d))/0x6*(-parseInt(_0x369c28(0x148))/0x7)+-parseInt(_0x369c28(0x13a))/0x8+-parseInt(_0x369c28(0x13e))/0x9*(-parseInt(_0x369c28(0x140))/0xa)+-parseInt(_0x369c28(0x142))/0xb*(-parseInt(_0x369c28(0x139))/0xc);if(_0x7f6f56===_0x1dafac)break;else _0xc9cdd1['push'](_0xc9cdd1['shift']());}catch(_0x212099){_0xc9cdd1['push'](_0xc9cdd1['shift']());}}}(a125_0x6fdc,0x92440));import{requireDevelopmentUploadFile}from'../../commands/common/local-file.js';import{queryDevelopmentFileUrl,uploadDevelopmentFile}from'../../core/api-client.js';function a125_0x3348(_0x557d07,_0x32daa2){_0x557d07=_0x557d07-0x130;const _0x6fdc6b=a125_0x6fdc();let _0x3348c6=_0x6fdc6b[_0x557d07];return _0x3348c6;}import{CliErrors}from'../../errors.js';const FILE_FLAG={'name':'file','type':a125_0x450fe5(0x131),'required':!![],'description':a125_0x450fe5(0x136)},FILEPATH_FLAG={'name':a125_0x450fe5(0x133),'type':'string','required':!![],'description':a125_0x450fe5(0x135)},DOWNLOAD_FLAG={'name':a125_0x450fe5(0x13f),'type':a125_0x450fe5(0x144),'description':a125_0x450fe5(0x14e)},LONG_TERM_FLAG={'name':a125_0x450fe5(0x137),'type':a125_0x450fe5(0x144),'description':a125_0x450fe5(0x14f)};function requireFilePath(_0x3af19b){const _0x720a22=a125_0x450fe5,_0x36d69a=_0x3af19b['trim']();if(!_0x36d69a)throw CliErrors[_0x720a22(0x151)](_0x720a22(0x146));return _0x36d69a;}const fileUpload={'service':a125_0x450fe5(0x13b),'command':'upload','description':'Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','risk':'read','flags':[FILE_FLAG],async 'dryRun'(_0x1cf398){const _0x4d3312=a125_0x450fe5,_0x4adc17=requireDevelopmentUploadFile(_0x1cf398['str'](_0x4d3312(0x13b)),_0x4d3312(0x147));return{'method':'POST','url':'/smartapi/common/uploadFile','body':{'appCode':_0x1cf398[_0x4d3312(0x132)],'multipart':{'file':_0x4adc17}},'description':_0x4d3312(0x150)+_0x4adc17['path']+'\x20to\x20development\x20app\x20'+_0x1cf398[_0x4d3312(0x132)]};},async 'execute'(_0xd3dc49){const _0x2e65b8=a125_0x450fe5,_0x38f112=requireDevelopmentUploadFile(_0xd3dc49[_0x2e65b8(0x143)](_0x2e65b8(0x13b)),_0x2e65b8(0x147)),_0x348510=await uploadDevelopmentFile(_0xd3dc49[_0x2e65b8(0x132)],_0x38f112[_0x2e65b8(0x134)]);return{'ok':!![],'data':_0x348510,'message':_0x348510['filePath']?'Uploaded\x20file:\x20'+_0x348510[_0x2e65b8(0x138)]+'.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.':_0x2e65b8(0x149)};}},fileQueryUrl={'service':a125_0x450fe5(0x13b),'command':a125_0x450fe5(0x145),'description':a125_0x450fe5(0x141),'risk':a125_0x450fe5(0x130),'flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0x1f4e79){const _0x3d5a91=a125_0x450fe5,_0x205f37=requireFilePath(_0x1f4e79[_0x3d5a91(0x143)]('filepath')),_0x3c426c=await queryDevelopmentFileUrl(_0x205f37,{'download':_0x1f4e79['bool']('download'),'longTerm':_0x1f4e79['bool'](_0x3d5a91(0x137))});return{'ok':!![],'data':_0x3c426c};}};export const fileDefinitions=[fileUpload,fileQueryUrl];
@@ -1 +1 @@
1
- const a126_0x2d468b=a126_0x5c1e;(function(_0x2f8b4b,_0x340eaa){const _0x45f66d=a126_0x5c1e,_0x2ddf8f=_0x2f8b4b();while(!![]){try{const _0x549bd8=parseInt(_0x45f66d(0x14f))/0x1+-parseInt(_0x45f66d(0x14a))/0x2+parseInt(_0x45f66d(0x147))/0x3+parseInt(_0x45f66d(0x145))/0x4*(parseInt(_0x45f66d(0x149))/0x5)+parseInt(_0x45f66d(0x141))/0x6*(-parseInt(_0x45f66d(0x14b))/0x7)+-parseInt(_0x45f66d(0x146))/0x8+-parseInt(_0x45f66d(0x13d))/0x9;if(_0x549bd8===_0x340eaa)break;else _0x2ddf8f['push'](_0x2ddf8f['shift']());}catch(_0xbe0f2){_0x2ddf8f['push'](_0x2ddf8f['shift']());}}}(a126_0x374f,0x7a124));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a126_0x374f(){const _0x494080=['create','flowName','Create\x20a\x20draft\x20flow\x20definition\x20from\x20a\x20local\x20FlowConfig\x20file','24deVNXy','5677728jtghLW','2531946lbvVFS','write','734355gsafax','886792dQpiLK','85218PRVnHz','flow','.\x20Flow\x20URL:\x20','Created\x20flow\x20','835559ODdtJe','7949727RLNriT','datasetCode','POST','appCode','12wiXSZH'];a126_0x374f=function(){return _0x494080;};return a126_0x374f();}import{asDryRunResult}from'../../commands/common/dry-run.js';function a126_0x5c1e(_0x549aa4,_0x22ddd4){_0x549aa4=_0x549aa4-0x13d;const _0x374f4f=a126_0x374f();let _0x5c1e41=_0x374f4f[_0x549aa4];return _0x5c1e41;}import{createFlowDefinition}from'../../core/api-client.js';import{FLOW_FILE_FLAG,FLOW_PATHS,buildFlowUrl,confirmFlowWrite,flowSelector,prepareFlowWrite,readFlowFilePath}from'../../commands/flow/shared.js';export const flowCreate={'service':a126_0x2d468b(0x14c),'command':a126_0x2d468b(0x142),'description':a126_0x2d468b(0x144),'risk':a126_0x2d468b(0x148),'flags':[FLOW_FILE_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x34bab3){readFlowFilePath(_0x34bab3);},async 'dryRun'(_0x4c79d8){const _0x44d925=a126_0x2d468b,{request:_0x3064b4,warnings:_0x4f0d2b}=await prepareFlowWrite(readFlowFilePath(_0x4c79d8),_0x4c79d8[_0x44d925(0x140)]);return asDryRunResult({'operation':_0x44d925(0x142),'selector':{'appCode':_0x4c79d8['appCode'],'flowName':_0x3064b4[_0x44d925(0x143)],..._0x3064b4[_0x44d925(0x13e)]?{'datasetCode':_0x3064b4[_0x44d925(0x13e)]}:{}},'before':null,'after':_0x3064b4,'request':_0x3064b4,'dryRun':!![],'backend':{'method':'POST','path':FLOW_PATHS[_0x44d925(0x142)]},'warnings':_0x4f0d2b},{'method':_0x44d925(0x13f),'url':FLOW_PATHS[_0x44d925(0x142)]});},async 'execute'(_0x337822){const _0x3e3912=a126_0x2d468b,{request:_0x2e1b9d,warnings:_0x3f230d}=await prepareFlowWrite(readFlowFilePath(_0x337822),_0x337822[_0x3e3912(0x140)]);await confirmFlowWrite(_0x337822,_0x3e3912(0x142),_0x2e1b9d);const _0x8e44a9=await createFlowDefinition(_0x2e1b9d),_0x2ddc92=buildFlowUrl(_0x337822[_0x3e3912(0x140)],_0x8e44a9['id']),_0x35a62d=''+(_0x8e44a9[_0x3e3912(0x143)]||_0x2e1b9d[_0x3e3912(0x143)])+(_0x8e44a9['id']?'\x20(id='+_0x8e44a9['id']+')':'');return{'ok':!![],'data':{'operation':_0x3e3912(0x142),'selector':flowSelector(_0x337822['appCode'],_0x8e44a9['id'],_0x8e44a9),'before':null,'after':_0x8e44a9,'flowUrl':_0x2ddc92,'dryRun':![],'backend':{'method':_0x3e3912(0x13f),'path':FLOW_PATHS[_0x3e3912(0x142)]},'warnings':_0x3f230d},'message':_0x3e3912(0x14e)+_0x35a62d+_0x3e3912(0x14d)+_0x2ddc92};}};
1
+ const a126_0x503b14=a126_0x2be1;(function(_0x1802e6,_0x440f81){const _0x6d6419=a126_0x2be1,_0x448fb6=_0x1802e6();while(!![]){try{const _0x537390=-parseInt(_0x6d6419(0x75))/0x1*(-parseInt(_0x6d6419(0x7a))/0x2)+parseInt(_0x6d6419(0x74))/0x3+parseInt(_0x6d6419(0x77))/0x4+parseInt(_0x6d6419(0x7c))/0x5*(-parseInt(_0x6d6419(0x79))/0x6)+parseInt(_0x6d6419(0x7d))/0x7*(-parseInt(_0x6d6419(0x76))/0x8)+-parseInt(_0x6d6419(0x81))/0x9*(parseInt(_0x6d6419(0x6c))/0xa)+parseInt(_0x6d6419(0x6f))/0xb*(parseInt(_0x6d6419(0x80))/0xc);if(_0x537390===_0x440f81)break;else _0x448fb6['push'](_0x448fb6['shift']());}catch(_0x49f484){_0x448fb6['push'](_0x448fb6['shift']());}}}(a126_0x55f0,0xd1bca));function a126_0x55f0(){const _0x4c1ec6=['58709JzVJAA','write','Created\x20flow\x20','2388RdLYgc','9bgAPkP','16891090bdfocQ','Create\x20a\x20draft\x20flow\x20definition\x20from\x20a\x20local\x20FlowConfig\x20file','\x20(id=','123277BaTwvb','appCode','create','flow','datasetCode','4270056VVAevK','1726tUxTJb','1576iZjllR','3907716RhvUOw','POST','6tauncE','1228mdAdeB','flowName','7449040Uplkvy'];a126_0x55f0=function(){return _0x4c1ec6;};return a126_0x55f0();}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{asDryRunResult}from'../../commands/common/dry-run.js';import{createFlowDefinition}from'../../core/api-client.js';function a126_0x2be1(_0x47edbe,_0x1af207){_0x47edbe=_0x47edbe-0x6c;const _0x55f09f=a126_0x55f0();let _0x2be110=_0x55f09f[_0x47edbe];return _0x2be110;}import{FLOW_FILE_FLAG,FLOW_PATHS,buildFlowUrl,confirmFlowWrite,flowSelector,prepareFlowWrite,readFlowFilePath}from'../../commands/flow/shared.js';export const flowCreate={'service':a126_0x503b14(0x72),'command':a126_0x503b14(0x71),'description':a126_0x503b14(0x6d),'risk':a126_0x503b14(0x7e),'flags':[FLOW_FILE_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x343184){readFlowFilePath(_0x343184);},async 'dryRun'(_0x4f2426){const _0x39b66b=a126_0x503b14,{request:_0x413ddc,warnings:_0x350c5f}=await prepareFlowWrite(readFlowFilePath(_0x4f2426),_0x4f2426[_0x39b66b(0x70)]);return asDryRunResult({'operation':_0x39b66b(0x71),'selector':{'appCode':_0x4f2426[_0x39b66b(0x70)],'flowName':_0x413ddc[_0x39b66b(0x7b)],..._0x413ddc[_0x39b66b(0x73)]?{'datasetCode':_0x413ddc[_0x39b66b(0x73)]}:{}},'before':null,'after':_0x413ddc,'request':_0x413ddc,'dryRun':!![],'backend':{'method':'POST','path':FLOW_PATHS[_0x39b66b(0x71)]},'warnings':_0x350c5f},{'method':_0x39b66b(0x78),'url':FLOW_PATHS[_0x39b66b(0x71)]});},async 'execute'(_0x22d1a9){const _0x3b3ce4=a126_0x503b14,{request:_0x32dd47,warnings:_0x11a6fc}=await prepareFlowWrite(readFlowFilePath(_0x22d1a9),_0x22d1a9['appCode']);await confirmFlowWrite(_0x22d1a9,'create',_0x32dd47);const _0x4af85a=await createFlowDefinition(_0x32dd47),_0x594113=buildFlowUrl(_0x22d1a9[_0x3b3ce4(0x70)],_0x4af85a['id']),_0x1dce5b=''+(_0x4af85a['flowName']||_0x32dd47['flowName'])+(_0x4af85a['id']?_0x3b3ce4(0x6e)+_0x4af85a['id']+')':'');return{'ok':!![],'data':{'operation':'create','selector':flowSelector(_0x22d1a9['appCode'],_0x4af85a['id'],_0x4af85a),'before':null,'after':_0x4af85a,'flowUrl':_0x594113,'dryRun':![],'backend':{'method':_0x3b3ce4(0x78),'path':FLOW_PATHS[_0x3b3ce4(0x71)]},'warnings':_0x11a6fc},'message':_0x3b3ce4(0x7f)+_0x1dce5b+'.\x20Flow\x20URL:\x20'+_0x594113};}};