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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (384) hide show
  1. package/README.md +10 -0
  2. package/lib/api/api-doc.js +1 -1
  3. package/lib/api/api-group.js +1 -1
  4. package/lib/api/fetch-model-list.js +1 -1
  5. package/lib/api/generate-api-file.js +1 -1
  6. package/lib/api/generate-sdk-config-file.js +1 -1
  7. package/lib/api/legacy-api-file.js +1 -1
  8. package/lib/api/model-registry-file.js +1 -1
  9. package/lib/api/model-registry-scaffold.js +1 -1
  10. package/lib/api/model-source.js +1 -1
  11. package/lib/auth/auth-server-ui.js +1 -1
  12. package/lib/auth/auth-server.js +1 -1
  13. package/lib/auth/constant.js +1 -1
  14. package/lib/auth/get-cookie.js +1 -1
  15. package/lib/auth/get-session-user.d.ts +2 -2
  16. package/lib/auth/get-session-user.js +1 -1
  17. package/lib/auth/is-session-valid.js +1 -1
  18. package/lib/auth/login-success-html.js +1 -1
  19. package/lib/auth/logout.js +1 -1
  20. package/lib/cli-flags.js +1 -1
  21. package/lib/cli.js +1 -1
  22. package/lib/commands/api/generate.js +1 -1
  23. package/lib/commands/api/index.js +1 -1
  24. package/lib/commands/api/list.js +1 -1
  25. package/lib/commands/api/pull.js +1 -1
  26. package/lib/commands/api/shared.js +1 -1
  27. package/lib/commands/app/detail.js +1 -1
  28. package/lib/commands/app/index.js +1 -1
  29. package/lib/commands/app/list.js +1 -1
  30. package/lib/commands/app/members-list.js +1 -1
  31. package/lib/commands/app/remote-directory.js +1 -1
  32. package/lib/commands/app/shared.js +1 -1
  33. package/lib/commands/app-config/delete.js +1 -1
  34. package/lib/commands/app-config/get.js +1 -1
  35. package/lib/commands/app-config/index.js +1 -1
  36. package/lib/commands/app-config/list.js +1 -1
  37. package/lib/commands/app-config/set.js +1 -1
  38. package/lib/commands/app-config/shared.js +1 -1
  39. package/lib/commands/auth/index.js +1 -1
  40. package/lib/commands/bff/create.js +1 -1
  41. package/lib/commands/bff/delete.js +1 -1
  42. package/lib/commands/bff/detail.js +1 -1
  43. package/lib/commands/bff/index.js +1 -1
  44. package/lib/commands/bff/list.js +1 -1
  45. package/lib/commands/bff/logs.js +1 -1
  46. package/lib/commands/bff/pull.js +1 -1
  47. package/lib/commands/bff/push.js +1 -1
  48. package/lib/commands/bff/status.js +1 -1
  49. package/lib/commands/cli-skill/index.js +1 -1
  50. package/lib/commands/cli-update.js +1 -1
  51. package/lib/commands/codegen/index.js +1 -1
  52. package/lib/commands/codegen/sdk.js +1 -1
  53. package/lib/commands/codegen/sql.js +1 -1
  54. package/lib/commands/common/app-registry.js +1 -1
  55. package/lib/commands/common/app-selector.js +1 -1
  56. package/lib/commands/common/async-task.js +1 -1
  57. package/lib/commands/common/dry-run.js +1 -1
  58. package/lib/commands/common/flags.js +1 -1
  59. package/lib/commands/common/local-file.js +1 -1
  60. package/lib/commands/common/validate.js +1 -1
  61. package/lib/commands/config/delete.js +1 -1
  62. package/lib/commands/config/get.js +1 -1
  63. package/lib/commands/config/index.js +1 -1
  64. package/lib/commands/config/init.js +1 -1
  65. package/lib/commands/config/list.js +1 -1
  66. package/lib/commands/config/set.js +1 -1
  67. package/lib/commands/config/shared.js +1 -1
  68. package/lib/commands/dataset/batch-design.js +1 -1
  69. package/lib/commands/dataset/business-group-update.js +1 -1
  70. package/lib/commands/dataset/business-groups.js +1 -1
  71. package/lib/commands/dataset/capability.js +1 -1
  72. package/lib/commands/dataset/cross-relation-create.js +1 -1
  73. package/lib/commands/dataset/cross-relation-delete.js +1 -1
  74. package/lib/commands/dataset/cross-relation-list.js +1 -1
  75. package/lib/commands/dataset/cross-relation-shared.js +1 -1
  76. package/lib/commands/dataset/cross-relation-update.js +1 -1
  77. package/lib/commands/dataset/delete.js +1 -1
  78. package/lib/commands/dataset/design-context.js +1 -1
  79. package/lib/commands/dataset/design-start.js +1 -1
  80. package/lib/commands/dataset/design-status.js +1 -1
  81. package/lib/commands/dataset/design-sync-retry.js +1 -1
  82. package/lib/commands/dataset/design-sync-status.js +1 -1
  83. package/lib/commands/dataset/design-validate.js +1 -1
  84. package/lib/commands/dataset/detail.js +1 -1
  85. package/lib/commands/dataset/extend-update.js +1 -1
  86. package/lib/commands/dataset/field-restore.js +1 -1
  87. package/lib/commands/dataset/field-update.js +1 -1
  88. package/lib/commands/dataset/generate.js +1 -1
  89. package/lib/commands/dataset/index.js +1 -1
  90. package/lib/commands/dataset/list.js +1 -1
  91. package/lib/commands/dataset/operations.js +1 -1
  92. package/lib/commands/dataset/relation-audit.js +1 -1
  93. package/lib/commands/dataset/relation-create.js +1 -1
  94. package/lib/commands/dataset/relation-delete.js +1 -1
  95. package/lib/commands/dataset/relation-shared.js +1 -1
  96. package/lib/commands/dataset/relation-update.js +1 -1
  97. package/lib/commands/dataset/relations.js +1 -1
  98. package/lib/commands/dataset/rename.js +1 -1
  99. package/lib/commands/dataset/restore.js +1 -1
  100. package/lib/commands/dataset/user-deleted-field-list.js +1 -1
  101. package/lib/commands/db/analysis-batching.js +1 -1
  102. package/lib/commands/db/analyze-batch-plan.js +1 -1
  103. package/lib/commands/db/analyze-cancel.js +1 -1
  104. package/lib/commands/db/analyze-start.js +1 -1
  105. package/lib/commands/db/analyze-status.js +1 -1
  106. package/lib/commands/db/create.js +1 -1
  107. package/lib/commands/db/cross-db-analysis-shared.js +1 -1
  108. package/lib/commands/db/cross-db-analyze-latest.js +1 -1
  109. package/lib/commands/db/cross-db-analyze-start.js +1 -1
  110. package/lib/commands/db/cross-db-analyze-status.js +1 -1
  111. package/lib/commands/db/delete.js +1 -1
  112. package/lib/commands/db/detail.js +1 -1
  113. package/lib/commands/db/diff-refresh-start.js +1 -1
  114. package/lib/commands/db/diff-refresh-status.js +1 -1
  115. package/lib/commands/db/diff.js +1 -1
  116. package/lib/commands/db/index.js +1 -1
  117. package/lib/commands/db/list.js +1 -1
  118. package/lib/commands/db/shared.js +1 -1
  119. package/lib/commands/db/table-diff-shared.js +1 -1
  120. package/lib/commands/db/tables.js +1 -1
  121. package/lib/commands/db/test.js +1 -1
  122. package/lib/commands/db/update.js +1 -1
  123. package/lib/commands/deployment/index.js +1 -1
  124. package/lib/commands/deployment/sync-all.js +1 -1
  125. package/lib/commands/deployment/sync-jobs.js +1 -1
  126. package/lib/commands/deployment/sync-status.js +1 -1
  127. package/lib/commands/doctor.js +1 -1
  128. package/lib/commands/file/index.js +1 -1
  129. package/lib/commands/flow/create.js +1 -1
  130. package/lib/commands/flow/detail.js +1 -1
  131. package/lib/commands/flow/index.js +1 -1
  132. package/lib/commands/flow/list.js +1 -1
  133. package/lib/commands/flow/page-list.js +1 -1
  134. package/lib/commands/flow/publish.js +1 -1
  135. package/lib/commands/flow/runtime-resources-shared.js +1 -1
  136. package/lib/commands/flow/runtime-role-list.js +1 -1
  137. package/lib/commands/flow/runtime-role-user-list.js +1 -1
  138. package/lib/commands/flow/runtime-user-search.js +1 -1
  139. package/lib/commands/flow/shared.js +1 -1
  140. package/lib/commands/flow/update.js +1 -1
  141. package/lib/commands/flow/validate.js +1 -1
  142. package/lib/commands/instant-api-policy/current.js +1 -1
  143. package/lib/commands/instant-api-policy/index.js +1 -1
  144. package/lib/commands/instant-api-policy/init.js +1 -1
  145. package/lib/commands/instant-api-policy/publish.js +1 -1
  146. package/lib/commands/instant-api-policy/pull.js +1 -1
  147. package/lib/commands/instant-api-policy/revision.js +1 -1
  148. package/lib/commands/instant-api-policy/revisions.js +1 -1
  149. package/lib/commands/instant-api-policy/rollback.js +1 -1
  150. package/lib/commands/instant-api-policy/shared.js +1 -1
  151. package/lib/commands/instant-api-policy/validate.js +1 -1
  152. package/lib/commands/issue/context.d.ts +3 -0
  153. package/lib/commands/issue/context.js +1 -0
  154. package/lib/commands/issue/index.js +1 -1
  155. package/lib/commands/issue/nudge.js +1 -1
  156. package/lib/commands/issue/report.js +1 -1
  157. package/lib/commands/kb/create.js +1 -1
  158. package/lib/commands/kb/delete.js +1 -1
  159. package/lib/commands/kb/detail.js +1 -1
  160. package/lib/commands/kb/index.js +1 -1
  161. package/lib/commands/kb/list.js +1 -1
  162. package/lib/commands/kb/search.js +1 -1
  163. package/lib/commands/kb/shared.js +1 -1
  164. package/lib/commands/kb/update.js +1 -1
  165. package/lib/commands/logs/index.js +1 -1
  166. package/lib/commands/menu/asset-update.js +1 -1
  167. package/lib/commands/menu/delete.js +1 -1
  168. package/lib/commands/menu/external-link-create.js +1 -1
  169. package/lib/commands/menu/external-link-update.js +1 -1
  170. package/lib/commands/menu/group-create.js +1 -1
  171. package/lib/commands/menu/group-update.js +1 -1
  172. package/lib/commands/menu/index.js +1 -1
  173. package/lib/commands/menu/list.js +1 -1
  174. package/lib/commands/menu/move.js +1 -1
  175. package/lib/commands/menu/regroup-start.js +1 -1
  176. package/lib/commands/menu/rename.js +1 -1
  177. package/lib/commands/menu/shared/compare-table.js +1 -1
  178. package/lib/commands/menu/shared/delete-plan.js +1 -1
  179. package/lib/commands/menu/shared/facts.js +1 -1
  180. package/lib/commands/menu/shared/index.js +1 -1
  181. package/lib/commands/menu/shared/inquirer.js +1 -1
  182. package/lib/commands/menu/shared/local-pages.js +1 -1
  183. package/lib/commands/menu/shared/logic.js +1 -1
  184. package/lib/commands/menu/shared/mutations.js +1 -1
  185. package/lib/commands/menu/shared/path.js +1 -1
  186. package/lib/commands/menu/shared/service.js +1 -1
  187. package/lib/commands/menu/shared/subapp-assets.js +1 -1
  188. package/lib/commands/menu/shared/sync-core.js +1 -1
  189. package/lib/commands/menu/shared/update-core.js +1 -1
  190. package/lib/commands/menu/shared/valid-url.js +1 -1
  191. package/lib/commands/menu/subapp-assets-status.js +1 -1
  192. package/lib/commands/menu/subapp-assets-update.js +1 -1
  193. package/lib/commands/menu/sync.js +1 -1
  194. package/lib/commands/menu/visibility-update.js +1 -1
  195. package/lib/commands/notification/config-create.js +1 -1
  196. package/lib/commands/notification/config-delete.js +1 -1
  197. package/lib/commands/notification/config-list.js +1 -1
  198. package/lib/commands/notification/config-update.js +1 -1
  199. package/lib/commands/notification/index.js +1 -1
  200. package/lib/commands/notification/shared.js +1 -1
  201. package/lib/commands/ocr/index.js +1 -1
  202. package/lib/commands/page/create.js +1 -1
  203. package/lib/commands/page/custom/detail.js +1 -1
  204. package/lib/commands/page/custom/list.js +1 -1
  205. package/lib/commands/page/custom/publish.js +1 -1
  206. package/lib/commands/page/custom/shared.js +1 -1
  207. package/lib/commands/page/custom/syntax.js +1 -1
  208. package/lib/commands/page/custom/update.js +1 -1
  209. package/lib/commands/page/data-list-status.js +1 -1
  210. package/lib/commands/page/generate-start.js +1 -1
  211. package/lib/commands/page/generate-status.js +1 -1
  212. package/lib/commands/page/index.js +1 -1
  213. package/lib/commands/page/pull.js +1 -1
  214. package/lib/commands/page/push.js +1 -1
  215. package/lib/commands/page/relation-audit.js +1 -1
  216. package/lib/commands/page/restore.js +1 -1
  217. package/lib/commands/page/shared.js +1 -1
  218. package/lib/commands/page/sync.js +1 -1
  219. package/lib/commands/project/api-architecture-upgrade.js +1 -1
  220. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  221. package/lib/commands/project/create/format-elapsed.js +1 -1
  222. package/lib/commands/project/create/main.js +1 -1
  223. package/lib/commands/project/create/materialize-project-template.js +1 -1
  224. package/lib/commands/project/create/project-name.js +1 -1
  225. package/lib/commands/project/create/project-template-archive.js +1 -1
  226. package/lib/commands/project/create/project-template-path.js +1 -1
  227. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  228. package/lib/commands/project/create/use-format-code.js +1 -1
  229. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  230. package/lib/commands/project/domain-routing-sync.js +1 -1
  231. package/lib/commands/project/index.js +1 -1
  232. package/lib/commands/project/upgrade.js +1 -1
  233. package/lib/commands/registry.js +1 -1
  234. package/lib/commands/role/delete.js +1 -1
  235. package/lib/commands/role/detail.js +1 -1
  236. package/lib/commands/role/index.js +1 -1
  237. package/lib/commands/role/list.js +1 -1
  238. package/lib/commands/role/shared.js +1 -1
  239. package/lib/commands/role/update.js +1 -1
  240. package/lib/commands/role/user-add.js +1 -1
  241. package/lib/commands/role/user-remove.js +1 -1
  242. package/lib/commands/role/user-resolve.js +1 -1
  243. package/lib/commands/rule/get.js +1 -1
  244. package/lib/commands/rule/index.js +1 -1
  245. package/lib/commands/rule/list.js +1 -1
  246. package/lib/commands/rule/set.js +1 -1
  247. package/lib/commands/rule/shared.js +1 -1
  248. package/lib/commands/run/index.js +1 -1
  249. package/lib/commands/schema.js +1 -1
  250. package/lib/commands/sql/create.js +1 -1
  251. package/lib/commands/sql/delete.js +1 -1
  252. package/lib/commands/sql/detail.js +1 -1
  253. package/lib/commands/sql/exec.js +1 -1
  254. package/lib/commands/sql/index.js +1 -1
  255. package/lib/commands/sql/list.js +1 -1
  256. package/lib/commands/sql/pull.js +1 -1
  257. package/lib/commands/sql/push.js +1 -1
  258. package/lib/commands/sql/shared.js +1 -1
  259. package/lib/commands/sql/status.js +1 -1
  260. package/lib/commands/sql/validate.js +1 -1
  261. package/lib/commands/task/index.js +1 -1
  262. package/lib/commands/task/status.js +1 -1
  263. package/lib/commands/tenant/index.js +1 -1
  264. package/lib/commands/tenant/members-list.js +1 -1
  265. package/lib/commands/tenant/shared.js +1 -1
  266. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  267. package/lib/commands/user-account/feishu-bind.js +1 -1
  268. package/lib/commands/user-account/index.js +1 -1
  269. package/lib/commands/workspace/add.js +1 -1
  270. package/lib/commands/workspace/index.js +1 -1
  271. package/lib/commands/workspace/remove.js +1 -1
  272. package/lib/config/domain-config.js +1 -1
  273. package/lib/config/project-domain-routing.js +1 -1
  274. package/lib/config/region-config.js +1 -1
  275. package/lib/config/schema.js +1 -1
  276. package/lib/constant/cdn.js +1 -1
  277. package/lib/constant/cli.js +1 -1
  278. package/lib/constant/defaults.js +1 -1
  279. package/lib/constant/domain.js +1 -1
  280. package/lib/constant/env.js +1 -1
  281. package/lib/constant/output.js +1 -1
  282. package/lib/constant/paths.js +1 -1
  283. package/lib/constant/region.js +1 -1
  284. package/lib/constant/risk.js +1 -1
  285. package/lib/constant/routing-profile.js +1 -1
  286. package/lib/context/app-resolver.js +1 -1
  287. package/lib/context/auth-resolver.js +1 -1
  288. package/lib/context/config-loader.js +1 -1
  289. package/lib/context.js +1 -1
  290. package/lib/core/alias-resolver.js +1 -1
  291. package/lib/core/api-client.js +1 -1
  292. package/lib/core/bff/config.js +1 -1
  293. package/lib/core/bff/file-system.js +1 -1
  294. package/lib/core/bff/hash.js +1 -1
  295. package/lib/core/bff/hook-directory.js +1 -1
  296. package/lib/core/bff/lock.js +1 -1
  297. package/lib/core/bff/utils.js +1 -1
  298. package/lib/core/cross-db-analysis.js +1 -1
  299. package/lib/core/cross-db-relation.js +1 -1
  300. package/lib/core/db-resolver.js +1 -1
  301. package/lib/core/flow-config.js +1 -1
  302. package/lib/core/instant-api-policy/config.js +1 -1
  303. package/lib/core/instant-api-policy/endpoints.js +1 -1
  304. package/lib/core/kb-management-client.js +1 -1
  305. package/lib/core/kb-search-client.js +1 -1
  306. package/lib/core/page/file-system.js +1 -1
  307. package/lib/core/page/hash.js +1 -1
  308. package/lib/core/page/lock.js +1 -1
  309. package/lib/core/page/lr-smart-jsx.js +1 -1
  310. package/lib/core/sql-index-auditor.js +1 -1
  311. package/lib/core/sql-sync/config.js +1 -1
  312. package/lib/core/sql-sync/file-system.js +1 -1
  313. package/lib/core/sql-sync/hash.js +1 -1
  314. package/lib/core/sql-sync/lock.js +1 -1
  315. package/lib/core/sql-sync/utils.js +1 -1
  316. package/lib/core/sql-validator.js +1 -1
  317. package/lib/errors.js +1 -1
  318. package/lib/framework/build-all-flags.js +1 -1
  319. package/lib/framework/error-output.js +1 -1
  320. package/lib/framework/explicit-yes.js +1 -1
  321. package/lib/framework/flags.js +1 -1
  322. package/lib/framework/help.js +1 -1
  323. package/lib/framework/index.js +1 -1
  324. package/lib/framework/output.js +1 -1
  325. package/lib/framework/response.js +1 -1
  326. package/lib/framework/runner-alias.js +1 -1
  327. package/lib/framework/runner.js +1 -1
  328. package/lib/framework/schema-export.js +1 -1
  329. package/lib/framework/supported-flags.js +1 -1
  330. package/lib/framework/types.js +1 -1
  331. package/lib/generated/build-info.d.ts +4 -4
  332. package/lib/generated/build-info.js +1 -1
  333. package/lib/generated/official-routing.js +1 -1
  334. package/lib/generated/routing-contract.js +1 -1
  335. package/lib/help.js +1 -1
  336. package/lib/postinstall.js +1 -1
  337. package/lib/runtime/confirmation.js +1 -1
  338. package/lib/runtime/event.js +1 -1
  339. package/lib/runtime/index.js +1 -1
  340. package/lib/runtime/queue.js +1 -1
  341. package/lib/runtime/resolve.js +1 -1
  342. package/lib/services/dataset-design/checkpoint.js +1 -1
  343. package/lib/services/dataset-design/commands.js +1 -1
  344. package/lib/services/dataset-design/contract.js +1 -1
  345. package/lib/skills/builtin-skill.js +1 -1
  346. package/lib/skills/main.js +1 -1
  347. package/lib/skills/npx-skills-add.js +1 -1
  348. package/lib/skills/skill-presence.js +1 -1
  349. package/lib/telemetry/cli-command-trace.js +1 -1
  350. package/lib/telemetry/cli-help-trace.js +1 -1
  351. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  352. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  353. package/lib/telemetry/send-cli-trace-log.js +1 -1
  354. package/lib/utils/ai_config.js +1 -1
  355. package/lib/utils/apply-jq-filter.js +1 -1
  356. package/lib/utils/cdn-config.js +1 -1
  357. package/lib/utils/check-sdk-version.js +1 -1
  358. package/lib/utils/cli-version-check.js +1 -1
  359. package/lib/utils/cli-version-policy.js +1 -1
  360. package/lib/utils/config.js +1 -1
  361. package/lib/utils/entity-with-id.js +1 -1
  362. package/lib/utils/file-utils.js +1 -1
  363. package/lib/utils/guides-cdn.js +1 -1
  364. package/lib/utils/http-client.js +1 -1
  365. package/lib/utils/is-non-interactive.js +1 -1
  366. package/lib/utils/logger.js +1 -1
  367. package/lib/utils/params.js +1 -1
  368. package/lib/utils/platform.js +1 -1
  369. package/lib/utils/sleep.js +1 -1
  370. package/lib/utils/template-replacer.js +1 -1
  371. package/lib/utils/update-notice.js +1 -1
  372. package/lib/utils/version.js +1 -1
  373. package/lib/utils/with-active-cookie.js +1 -1
  374. package/lib/utils/write-cli-side-channel.js +1 -1
  375. package/package.json +2 -2
  376. package/skills/rabetbase/SKILL.md +2 -2
  377. package/skills/rabetbase/references/rabetbase-issue-report.md +4 -1
  378. package/skills/rabetbase-dataset-generation/SKILL.md +1 -1
  379. package/skills/rabetbase-page-generation/SKILL.md +1 -1
  380. package/skills/rabetbase.manifest.json +3 -3
  381. package/lib/commands/issue/shared.d.ts +0 -32
  382. package/lib/commands/issue/shared.js +0 -1
  383. package/lib/telemetry/send-platform-issue-collect-log.d.ts +0 -26
  384. package/lib/telemetry/send-platform-issue-collect-log.js +0 -1
@@ -1 +1 @@
1
- const a112_0x567741=a112_0x5b51;(function(_0x3c6a08,_0x56d6a5){const _0x3fc96b=a112_0x5b51,_0x20ac36=_0x3c6a08();while(!![]){try{const _0x13719b=parseInt(_0x3fc96b(0xc9))/0x1+parseInt(_0x3fc96b(0xbb))/0x2+parseInt(_0x3fc96b(0xbc))/0x3+-parseInt(_0x3fc96b(0xcd))/0x4*(parseInt(_0x3fc96b(0xd1))/0x5)+parseInt(_0x3fc96b(0xc5))/0x6*(-parseInt(_0x3fc96b(0xc2))/0x7)+-parseInt(_0x3fc96b(0xcf))/0x8+parseInt(_0x3fc96b(0xc6))/0x9;if(_0x13719b===_0x56d6a5)break;else _0x20ac36['push'](_0x20ac36['shift']());}catch(_0x5c34aa){_0x20ac36['push'](_0x20ac36['shift']());}}}(a112_0x1988,0xe8ec3));import{getDbTableDiff}from'../../core/api-client.js';function a112_0x5b51(_0x2fab43,_0x4d7150){_0x2fab43=_0x2fab43-0xb0;const _0x1988c2=a112_0x1988();let _0x5b5149=_0x1988c2[_0x2fab43];return _0x5b5149;}import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a112_0x1988(){const _0x2007b0=['table','68PQcOcy','appCode','4585216REWNjT','Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)','7965oEpXbb','fieldDiff','datasetTableCount','read','MODIFIED_TABLE','diffType','boolean','all','NEW_TABLE','modifiedColumns','map','Compare\x20datasets\x20with\x20physical\x20database\x20tables\x20and\x20show\x20schema\x20drift','physicalTableCount','Page\x20index\x20(1-based)','594438jjupKl','3149859EVkvHS','page','filter','\x20(db\x20link\x20','pagesize','summary','40747kcCdpw','number','diff','936waEghl','9310473ShwVhm','totalCount','num','80691jncpfl','Page\x20size','DELETED_TABLE'];a112_0x1988=function(){return _0x2007b0;};return a112_0x1988();}import{DB_TABLE_PAGE_SIZE,getAllDbTableDiff,summarizeDbTableDiff}from'../../commands/db/table-diff-shared.js';export const dbDiff={'service':'db','command':a112_0x567741(0xc4),'description':a112_0x567741(0xb8),'risk':a112_0x567741(0xb0),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a112_0x567741(0xcc),'type':'string','description':a112_0x567741(0xd0)},{'name':a112_0x567741(0xbd),'type':a112_0x567741(0xc3),'description':a112_0x567741(0xba),'default':0x1},{'name':'pagesize','type':a112_0x567741(0xc3),'description':a112_0x567741(0xca),'default':0x14},{'name':a112_0x567741(0xb4),'type':a112_0x567741(0xb3),'description':'Fetch\x20and\x20aggregate\x20every\x20page\x20(overrides\x20--page\x20and\x20--pagesize)'}],async 'execute'(_0x3044d3){const _0x374dc6=a112_0x567741,_0x3a1a31=_0x3044d3[_0x374dc6(0xc8)]('id'),_0x12bfa8=_0x3044d3['bool'](_0x374dc6(0xb4)),_0xc1957b=_0x12bfa8?0x1:_0x3044d3['num'](_0x374dc6(0xbd),0x1)||0x1,_0x127677=_0x12bfa8?DB_TABLE_PAGE_SIZE:_0x3044d3[_0x374dc6(0xc8)](_0x374dc6(0xc0),0x14)||0x14,_0x4baef9=_0x3044d3['str'](_0x374dc6(0xcc))||undefined,_0x3f2032=_0x12bfa8?await getAllDbTableDiff(getDbTableDiff,_0x3044d3[_0x374dc6(0xce)],_0x3a1a31,_0x4baef9):await getDbTableDiff(_0x3044d3[_0x374dc6(0xce)],_0x3a1a31,{'pageIndex':_0xc1957b,'pageSize':_0x127677,'tableName':_0x4baef9}),_0x49ce50=_0x3f2032['tableList'],_0x4e1036=summarizeDbTableDiff(_0x49ce50),_0x25cdb1=_0x49ce50[_0x374dc6(0xbe)](_0x2eaf42=>_0x2eaf42[_0x374dc6(0xb2)]===_0x374dc6(0xb5)||_0x2eaf42[_0x374dc6(0xb2)]===_0x374dc6(0xb1))[_0x374dc6(0xb7)](_0x158e96=>_0x158e96['tableName']),_0x389cf9=_0x49ce50[_0x374dc6(0xbe)](_0x32d9d1=>_0x32d9d1[_0x374dc6(0xb2)]===_0x374dc6(0xcb))[_0x374dc6(0xb7)](_0x221833=>_0x221833['tableName']),_0xdbd75=_0x49ce50['filter'](_0x277e85=>_0x277e85[_0x374dc6(0xb2)]===_0x374dc6(0xb1))[_0x374dc6(0xb7)](_0x490b9e=>({'tableName':_0x490b9e['tableName'],'addedColumns':_0x490b9e[_0x374dc6(0xd2)]?.['addedColumns']??[],'deletedColumns':_0x490b9e[_0x374dc6(0xd2)]?.['deletedColumns']??[],'modifiedColumns':_0x490b9e[_0x374dc6(0xd2)]?.[_0x374dc6(0xb6)]??[]}));return{'ok':!![],'data':{'dbLinkId':_0x3a1a31,'page':_0xc1957b,'pageSize':_0x127677,'totalCount':_0x3f2032[_0x374dc6(0xc7)],...typeof _0x3f2032[_0x374dc6(0xb9)]==='number'?{'physicalTableCount':_0x3f2032[_0x374dc6(0xb9)]}:{},...typeof _0x3f2032['datasetTableCount']==='number'?{'datasetTableCount':_0x3f2032[_0x374dc6(0xd3)]}:{},..._0x3f2032[_0x374dc6(0xc1)]?{'summary':_0x3f2032['summary']}:{},'summaryByType':_0x4e1036,'toAnalyzeTables':_0x25cdb1,'deletedTables':_0x389cf9,'modifiedFieldDiffs':_0xdbd75,'tables':_0x49ce50},'message':_0x49ce50['length']+'\x20changed\x20table\x20row(s),\x20total\x20'+_0x3f2032[_0x374dc6(0xc7)]+_0x374dc6(0xbf)+_0x3a1a31+')'};}};
1
+ const a112_0x1605c0=a112_0x351f;(function(_0x1f5a91,_0x455849){const _0x5d2a22=a112_0x351f,_0x4eea7a=_0x1f5a91();while(!![]){try{const _0x2c152a=parseInt(_0x5d2a22(0xd5))/0x1*(parseInt(_0x5d2a22(0xca))/0x2)+-parseInt(_0x5d2a22(0xdf))/0x3*(-parseInt(_0x5d2a22(0xc7))/0x4)+-parseInt(_0x5d2a22(0xcf))/0x5*(-parseInt(_0x5d2a22(0xc3))/0x6)+parseInt(_0x5d2a22(0xe7))/0x7+-parseInt(_0x5d2a22(0xbe))/0x8*(parseInt(_0x5d2a22(0xc6))/0x9)+parseInt(_0x5d2a22(0xd1))/0xa+-parseInt(_0x5d2a22(0xd3))/0xb;if(_0x2c152a===_0x455849)break;else _0x4eea7a['push'](_0x4eea7a['shift']());}catch(_0x3ec6c1){_0x4eea7a['push'](_0x4eea7a['shift']());}}}(a112_0x2df8,0x85a55));function a112_0x2df8(){const _0x3bb8b4=['21250WziPvZ','bool','str','summary','number','36070tFZKwp','Page\x20size','9323840KBwvsT','boolean','14572701GgULvY','Compare\x20datasets\x20with\x20physical\x20database\x20tables\x20and\x20show\x20schema\x20drift','49JnKcRs','deletedColumns','Fetch\x20and\x20aggregate\x20every\x20page\x20(overrides\x20--page\x20and\x20--pagesize)','length','modifiedColumns','read','diffType','datasetTableCount','all','table','72WASYFE','filter','\x20changed\x20table\x20row(s),\x20total\x20','\x20(db\x20link\x20','DELETED_TABLE','appCode','MODIFIED_TABLE','diff','1787828kvZGHF','NEW_TABLE','tableName','pagesize','fieldDiff','map','40uXJxuQ','addedColumns','Page\x20index\x20(1-based)','physicalTableCount','totalCount','240YkKvHp','string','tableList','1501533nbHoKC','118236oUsgzX','num','page'];a112_0x2df8=function(){return _0x3bb8b4;};return a112_0x2df8();}import{getDbTableDiff}from'../../core/api-client.js';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_0x351f(_0x1f108f,_0x31db3b){_0x1f108f=_0x1f108f-0xba;const _0x2df852=a112_0x2df8();let _0x351f3b=_0x2df852[_0x1f108f];return _0x351f3b;}export const dbDiff={'service':'db','command':a112_0x1605c0(0xe6),'description':a112_0x1605c0(0xd4),'risk':a112_0x1605c0(0xda),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a112_0x1605c0(0xde),'type':a112_0x1605c0(0xc4),'description':'Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)'},{'name':a112_0x1605c0(0xc9),'type':a112_0x1605c0(0xce),'description':a112_0x1605c0(0xc0),'default':0x1},{'name':a112_0x1605c0(0xbb),'type':a112_0x1605c0(0xce),'description':a112_0x1605c0(0xd0),'default':0x14},{'name':a112_0x1605c0(0xdd),'type':a112_0x1605c0(0xd2),'description':a112_0x1605c0(0xd7)}],async 'execute'(_0x2c3e1f){const _0x1e9dd3=a112_0x1605c0,_0x41590a=_0x2c3e1f[_0x1e9dd3(0xc8)]('id'),_0x2cb8d7=_0x2c3e1f[_0x1e9dd3(0xcb)](_0x1e9dd3(0xdd)),_0x23ca9a=_0x2cb8d7?0x1:_0x2c3e1f[_0x1e9dd3(0xc8)](_0x1e9dd3(0xc9),0x1)||0x1,_0x8919ce=_0x2cb8d7?DB_TABLE_PAGE_SIZE:_0x2c3e1f[_0x1e9dd3(0xc8)]('pagesize',0x14)||0x14,_0x3b8fc4=_0x2c3e1f[_0x1e9dd3(0xcc)](_0x1e9dd3(0xde))||undefined,_0x143b7b=_0x2cb8d7?await getAllDbTableDiff(getDbTableDiff,_0x2c3e1f[_0x1e9dd3(0xe4)],_0x41590a,_0x3b8fc4):await getDbTableDiff(_0x2c3e1f['appCode'],_0x41590a,{'pageIndex':_0x23ca9a,'pageSize':_0x8919ce,'tableName':_0x3b8fc4}),_0x733895=_0x143b7b[_0x1e9dd3(0xc5)],_0x396aed=summarizeDbTableDiff(_0x733895),_0x2854fe=_0x733895[_0x1e9dd3(0xe0)](_0x33e714=>_0x33e714['diffType']===_0x1e9dd3(0xe8)||_0x33e714[_0x1e9dd3(0xdb)]===_0x1e9dd3(0xe5))[_0x1e9dd3(0xbd)](_0x4c3b6b=>_0x4c3b6b[_0x1e9dd3(0xba)]),_0x46bd9a=_0x733895['filter'](_0x278c85=>_0x278c85[_0x1e9dd3(0xdb)]===_0x1e9dd3(0xe3))[_0x1e9dd3(0xbd)](_0x3f7535=>_0x3f7535[_0x1e9dd3(0xba)]),_0x1f1210=_0x733895[_0x1e9dd3(0xe0)](_0x39ecb4=>_0x39ecb4['diffType']===_0x1e9dd3(0xe5))[_0x1e9dd3(0xbd)](_0x24322a=>({'tableName':_0x24322a['tableName'],'addedColumns':_0x24322a['fieldDiff']?.[_0x1e9dd3(0xbf)]??[],'deletedColumns':_0x24322a[_0x1e9dd3(0xbc)]?.[_0x1e9dd3(0xd6)]??[],'modifiedColumns':_0x24322a[_0x1e9dd3(0xbc)]?.[_0x1e9dd3(0xd9)]??[]}));return{'ok':!![],'data':{'dbLinkId':_0x41590a,'page':_0x23ca9a,'pageSize':_0x8919ce,'totalCount':_0x143b7b[_0x1e9dd3(0xc2)],...typeof _0x143b7b[_0x1e9dd3(0xc1)]===_0x1e9dd3(0xce)?{'physicalTableCount':_0x143b7b['physicalTableCount']}:{},...typeof _0x143b7b[_0x1e9dd3(0xdc)]===_0x1e9dd3(0xce)?{'datasetTableCount':_0x143b7b[_0x1e9dd3(0xdc)]}:{},..._0x143b7b[_0x1e9dd3(0xcd)]?{'summary':_0x143b7b[_0x1e9dd3(0xcd)]}:{},'summaryByType':_0x396aed,'toAnalyzeTables':_0x2854fe,'deletedTables':_0x46bd9a,'modifiedFieldDiffs':_0x1f1210,'tables':_0x733895},'message':_0x733895[_0x1e9dd3(0xd8)]+_0x1e9dd3(0xe1)+_0x143b7b[_0x1e9dd3(0xc2)]+_0x1e9dd3(0xe2)+_0x41590a+')'};}};
@@ -1 +1 @@
1
- (function(_0x5dc869,_0x5c1d9e){const _0x3ff742=a113_0x4c2f,_0xd55d3f=_0x5dc869();while(!![]){try{const _0x87218e=parseInt(_0x3ff742(0x15e))/0x1*(-parseInt(_0x3ff742(0x161))/0x2)+parseInt(_0x3ff742(0x160))/0x3+-parseInt(_0x3ff742(0x165))/0x4*(-parseInt(_0x3ff742(0x15f))/0x5)+-parseInt(_0x3ff742(0x163))/0x6+parseInt(_0x3ff742(0x164))/0x7+-parseInt(_0x3ff742(0x15d))/0x8*(-parseInt(_0x3ff742(0x15c))/0x9)+-parseInt(_0x3ff742(0x162))/0xa;if(_0x87218e===_0x5c1d9e)break;else _0xd55d3f['push'](_0xd55d3f['shift']());}catch(_0x260411){_0xd55d3f['push'](_0xd55d3f['shift']());}}}(a113_0xe882,0x6c361));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_0x4c2f(_0x379846,_0x2d4bf3){_0x379846=_0x379846-0x15c;const _0xe88200=a113_0xe882();let _0x4c2f59=_0xe88200[_0x379846];return _0x4c2f59;}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';function a113_0xe882(){const _0x5809f0=['271EcdHIh','169960KRoRCx','1636473pagzLf','3116iJBAjf','1025130PjmCOg','2923830ciXuYq','1306844MUJRfe','8FBGtDl','18MvYgby','2620408UlvaRs'];a113_0xe882=function(){return _0x5809f0;};return a113_0xe882();}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
+ (function(_0x37c036,_0x27ac74){const _0x5240cc=a113_0x2df8,_0x515bb7=_0x37c036();while(!![]){try{const _0x39882a=-parseInt(_0x5240cc(0x1ca))/0x1*(-parseInt(_0x5240cc(0x1c9))/0x2)+-parseInt(_0x5240cc(0x1cd))/0x3+parseInt(_0x5240cc(0x1ce))/0x4*(parseInt(_0x5240cc(0x1cc))/0x5)+-parseInt(_0x5240cc(0x1cb))/0x6*(-parseInt(_0x5240cc(0x1cf))/0x7)+parseInt(_0x5240cc(0x1c8))/0x8+parseInt(_0x5240cc(0x1d1))/0x9+-parseInt(_0x5240cc(0x1d0))/0xa;if(_0x39882a===_0x27ac74)break;else _0x515bb7['push'](_0x515bb7['shift']());}catch(_0x3ef9ce){_0x515bb7['push'](_0x515bb7['shift']());}}}(a113_0x4656,0x1e559));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';function a113_0x4656(){const _0xc84cef=['436878tDIQLc','1605496hjYPZU','278782QnRkYo','1msLGPm','6312DezcbL','5ERipIu','587715ODnAGZ','581404fGwWbx','1113QrigYx','3810850WOcdNK'];a113_0x4656=function(){return _0xc84cef;};return a113_0x4656();}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';import{dbDiff}from'../../commands/db/diff.js';import{dbDiffRefreshStart}from'../../commands/db/diff-refresh-start.js';function a113_0x2df8(_0x242436,_0xeb2f44){_0x242436=_0x242436-0x1c8;const _0x46566e=a113_0x4656();let _0x2df8f8=_0x46566e[_0x242436];return _0x2df8f8;}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_0x3f53a6=a114_0x56b0;(function(_0x3f94ef,_0x27b695){const _0x336c7e=a114_0x56b0,_0x46136b=_0x3f94ef();while(!![]){try{const _0x347e96=parseInt(_0x336c7e(0x178))/0x1*(-parseInt(_0x336c7e(0x17f))/0x2)+parseInt(_0x336c7e(0x180))/0x3+-parseInt(_0x336c7e(0x18e))/0x4*(-parseInt(_0x336c7e(0x17b))/0x5)+-parseInt(_0x336c7e(0x17e))/0x6+parseInt(_0x336c7e(0x186))/0x7+-parseInt(_0x336c7e(0x187))/0x8+parseInt(_0x336c7e(0x18f))/0x9;if(_0x347e96===_0x27b695)break;else _0x46136b['push'](_0x46136b['shift']());}catch(_0x500ffd){_0x46136b['push'](_0x46136b['shift']());}}}(a114_0x85ad,0x9db0c));import{listDatasets,listDbLinks}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a114_0x85ad(){const _0x5330f6=['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','Found\x20','read','all','Server\x20omitted\x20paging\x20metadata;\x20totalCount\x20is\x20unknown\x20—\x20rowsOnPage\x20is\x20this\x20page\x20only','8925791zfQUJR','5753448WAILTf','DB_TABLE','datasetDependency','list','\x20database\x20connection(s)','appCode','number','44qmuTmi','632727NUyNyH','page','341Roabzb','length','num','249085Wccxvv','pagesize','Page\x20index\x20(1-based)','2011290fcDDFt','3854VWHBxC','1392000tRGMEA'];a114_0x85ad=function(){return _0x5330f6;};return a114_0x85ad();}import{buildDbDatasetDependency,sanitizeDbLinkForOutput}from'../../commands/db/shared.js';function a114_0x56b0(_0x428a89,_0x4cd9e4){_0x428a89=_0x428a89-0x177;const _0x85ad=a114_0x85ad();let _0x56b0ea=_0x85ad[_0x428a89];return _0x56b0ea;}export const dbList={'service':'db','command':a114_0x3f53a6(0x18a),'description':a114_0x3f53a6(0x181),'risk':a114_0x3f53a6(0x183),'flags':[APPCODE_FLAG_OPTIONAL,{'name':'page','type':a114_0x3f53a6(0x18d),'description':a114_0x3f53a6(0x17d),'default':0x1},{'name':a114_0x3f53a6(0x17c),'type':a114_0x3f53a6(0x18d),'description':'Page\x20size','default':0x64}],async 'execute'(_0x369675){const _0x1dbec1=a114_0x3f53a6,_0x592d3a=_0x369675[_0x1dbec1(0x17a)](_0x1dbec1(0x177),0x1)||0x1,_0x1197ac=_0x369675['num'](_0x1dbec1(0x17c),0x64)||0x64,[{items:_0x4c530a,paging:_0x4f1193},_0x38cf0f]=await Promise[_0x1dbec1(0x184)]([listDbLinks(_0x369675[_0x1dbec1(0x18c)],{'currentPage':_0x592d3a,'pageSize':_0x1197ac}),listDatasets(_0x369675['appCode'],{'source':_0x1dbec1(0x188)})]),_0x4346ce=_0x4c530a['map'](_0x57c618=>({...sanitizeDbLinkForOutput(_0x57c618),'datasetDependency':buildDbDatasetDependency(_0x57c618,_0x38cf0f)[_0x1dbec1(0x189)]})),_0x2efc84=_0x4f1193?_0x4f1193:{'currentPage':_0x592d3a,'pageSize':_0x1197ac,'rowsOnPage':_0x4346ce['length'],'totalCount':null,'note':_0x1dbec1(0x185)};return{'ok':!![],'data':{'connections':_0x4346ce,'paging':_0x2efc84},'message':_0x1dbec1(0x182)+_0x4346ce[_0x1dbec1(0x179)]+_0x1dbec1(0x18b)};}};
1
+ function a114_0x5346(){const _0x437aae=['Server\x20omitted\x20paging\x20metadata;\x20totalCount\x20is\x20unknown\x20—\x20rowsOnPage\x20is\x20this\x20page\x20only','all','num','map','length','appCode','Found\x20','page','1032027aMXirm','22876208evWWJq','5992210vEXtMJ','2720480SzURof','read','pagesize','DB_TABLE','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','Page\x20size','\x20database\x20connection(s)','3922135iSGBQQ','2105166gRMQcI','2139926OqPAse','number','6EsaEGP'];a114_0x5346=function(){return _0x437aae;};return a114_0x5346();}const a114_0x4282a8=a114_0x4e59;(function(_0x25642e,_0x2d0a8a){const _0x3f03fc=a114_0x4e59,_0x380cfb=_0x25642e();while(!![]){try{const _0x5bbb94=parseInt(_0x3f03fc(0x1c4))/0x1+parseInt(_0x3f03fc(0x1b9))/0x2+parseInt(_0x3f03fc(0x1b8))/0x3+parseInt(_0x3f03fc(0x1c7))/0x4+-parseInt(_0x3f03fc(0x1b7))/0x5*(-parseInt(_0x3f03fc(0x1bb))/0x6)+-parseInt(_0x3f03fc(0x1c6))/0x7+-parseInt(_0x3f03fc(0x1c5))/0x8;if(_0x5bbb94===_0x2d0a8a)break;else _0x380cfb['push'](_0x380cfb['shift']());}catch(_0x215e60){_0x380cfb['push'](_0x380cfb['shift']());}}}(a114_0x5346,0x86eff));function a114_0x4e59(_0x2f9ed1,_0x32ed01){_0x2f9ed1=_0x2f9ed1-0x1b6;const _0x534635=a114_0x5346();let _0x4e5938=_0x534635[_0x2f9ed1];return _0x4e5938;}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':'list','description':a114_0x4282a8(0x1cb),'risk':a114_0x4282a8(0x1c8),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a114_0x4282a8(0x1c3),'type':a114_0x4282a8(0x1ba),'description':'Page\x20index\x20(1-based)','default':0x1},{'name':a114_0x4282a8(0x1c9),'type':a114_0x4282a8(0x1ba),'description':a114_0x4282a8(0x1cc),'default':0x64}],async 'execute'(_0x40bf35){const _0x4de832=a114_0x4282a8,_0x30b389=_0x40bf35[_0x4de832(0x1be)](_0x4de832(0x1c3),0x1)||0x1,_0x5d1969=_0x40bf35['num'](_0x4de832(0x1c9),0x64)||0x64,[{items:_0x4240a4,paging:_0x2f363d},_0x115e7a]=await Promise[_0x4de832(0x1bd)]([listDbLinks(_0x40bf35[_0x4de832(0x1c1)],{'currentPage':_0x30b389,'pageSize':_0x5d1969}),listDatasets(_0x40bf35[_0x4de832(0x1c1)],{'source':_0x4de832(0x1ca)})]),_0x5aa793=_0x4240a4[_0x4de832(0x1bf)](_0x25deb3=>({...sanitizeDbLinkForOutput(_0x25deb3),'datasetDependency':buildDbDatasetDependency(_0x25deb3,_0x115e7a)['datasetDependency']})),_0xde1eec=_0x2f363d?_0x2f363d:{'currentPage':_0x30b389,'pageSize':_0x5d1969,'rowsOnPage':_0x5aa793[_0x4de832(0x1c0)],'totalCount':null,'note':_0x4de832(0x1bc)};return{'ok':!![],'data':{'connections':_0x5aa793,'paging':_0xde1eec},'message':_0x4de832(0x1c2)+_0x5aa793[_0x4de832(0x1c0)]+_0x4de832(0x1b6)};}};
@@ -1 +1 @@
1
- (function(_0x4d2ffe,_0x49ad07){const _0x2582f5=a115_0x3fe4,_0x150cef=_0x4d2ffe();while(!![]){try{const _0x2823d5=parseInt(_0x2582f5(0x1dc))/0x1+parseInt(_0x2582f5(0x1eb))/0x2*(-parseInt(_0x2582f5(0x1e6))/0x3)+parseInt(_0x2582f5(0x1d3))/0x4+-parseInt(_0x2582f5(0x1e9))/0x5+parseInt(_0x2582f5(0x1de))/0x6+parseInt(_0x2582f5(0x1d2))/0x7+-parseInt(_0x2582f5(0x1f0))/0x8*(-parseInt(_0x2582f5(0x1ef))/0x9);if(_0x2823d5===_0x49ad07)break;else _0x150cef['push'](_0x150cef['shift']());}catch(_0x55c0ac){_0x150cef['push'](_0x150cef['shift']());}}}(a115_0x528e,0xd4bea));import{testDbLinkConfigConnect}from'../../core/api-client.js';function a115_0x528e(){const _0x30c99e=['number','accesskey','36JUDqUj','2317648BBsFTk','code','apiError','tableName','connectionstring','length','toLowerCase','2355360jyovQZ','3664172jdxiVU','credential','/data/er?dbId=','trim','secret','token','/data/database','filter','map','183521DGELUJ','keys','3841986oAFVaF','[redacted]','The\x20configuration\x20was\x20not\x20saved.\x20Verify\x20the\x20host,\x20credentials,\x20database\x20name,\x20network,\x20and\x20allowlist,\x20or\x20explicitly\x20pass\x20--skip-connection-test.','privatekey','test','dbtableConfig','isFinite','includes','669yNhefP','passwd','dbpassword','6512700VXTaYV','hasAvailableDo','9518zUEkvS','dbId'];a115_0x528e=function(){return _0x30c99e;};return a115_0x528e();}import{getAppBaseUrl}from'../../constant/domain.js';import{CliErrors}from'../../errors.js';function shouldRedactKey(_0x43d0e0){const _0x38eecb=a115_0x3fe4,_0x4bb0eb=_0x43d0e0[_0x38eecb(0x1d1)]();if(_0x4bb0eb==='password'||_0x4bb0eb===_0x38eecb(0x1e7)||_0x4bb0eb===_0x38eecb(0x1e8))return!![];if(_0x4bb0eb['includes'](_0x38eecb(0x1d7))||_0x4bb0eb[_0x38eecb(0x1e5)](_0x38eecb(0x1d8))||_0x4bb0eb['includes'](_0x38eecb(0x1d4)))return!![];if(_0x4bb0eb[_0x38eecb(0x1e5)](_0x38eecb(0x1e1))||_0x4bb0eb[_0x38eecb(0x1e5)](_0x38eecb(0x1ee)))return!![];if(_0x4bb0eb==='authorization'||_0x4bb0eb===_0x38eecb(0x1cf)||_0x4bb0eb==='jdbcurl')return!![];return![];}function a115_0x3fe4(_0x2325a3,_0x48481f){_0x2325a3=_0x2325a3-0x1cc;const _0x528ea5=a115_0x528e();let _0x3fe43e=_0x528ea5[_0x2325a3];return _0x3fe43e;}export function sanitizeDbLinkForOutput(_0x753546){const _0x956566=a115_0x3fe4,_0x5e9096={..._0x753546};delete _0x5e9096[_0x956566(0x1ea)];for(const _0x3b3dc1 of Object[_0x956566(0x1dd)](_0x5e9096)){if(!shouldRedactKey(_0x3b3dc1))continue;const _0x1f6867=_0x5e9096[_0x3b3dc1];_0x1f6867!=null&&String(_0x1f6867)[_0x956566(0x1d0)]>0x0&&(_0x5e9096[_0x3b3dc1]=_0x956566(0x1df));}return _0x5e9096;}export function sanitizeDbLinkList(_0x59d8fd){const _0x34c1fa=a115_0x3fe4;return _0x59d8fd[_0x34c1fa(0x1db)](_0x50d27b=>sanitizeDbLinkForOutput(_0x50d27b));}export function buildDbDatasetDependency(_0x414a60,_0x242af8){const _0x42bac9=a115_0x3fe4,_0x330d77=_0x242af8[_0x42bac9(0x1da)](_0x13df20=>Number(_0x13df20[_0x42bac9(0x1e3)]?.[_0x42bac9(0x1ec)])===Number(_0x414a60['id']))[_0x42bac9(0x1db)](_0x4359b9=>({'id':_0x4359b9['id'],'code':_0x4359b9[_0x42bac9(0x1cc)],'name':_0x4359b9['name'],..._0x4359b9[_0x42bac9(0x1e3)]?.['tableName']?{'tableName':_0x4359b9['dbtableConfig'][_0x42bac9(0x1ce)]}:{}}));return{'datasetDependency':{'hasDependencies':_0x330d77[_0x42bac9(0x1d0)]>0x0,'activeDatasetCount':_0x330d77['length']},'datasets':_0x330d77};}export async function assertDbLinkConnectionPreflight(_0x15a011){const _0x5e1919=a115_0x3fe4,_0x341832=await testDbLinkConfigConnect(_0x15a011);if(_0x341832!==!![])throw CliErrors[_0x5e1919(0x1cd)]('Database\x20connection\x20preflight\x20failed.',_0x5e1919(0x1e0));}const DB_URL_PATTERN=/^[^\s:]+(?::\d+)?$/;export function validateDbUrl(_0x4c2580){const _0xdd7ffa=a115_0x3fe4,_0x200f92=_0x4c2580[_0xdd7ffa(0x1d6)]();if(!_0x200f92)return![];return DB_URL_PATTERN[_0xdd7ffa(0x1e2)](_0x200f92);}export function buildDbPageLinks(_0x3a36c1,_0x1a489c){const _0x49509e=a115_0x3fe4,_0xe9058d=_0x3a36c1?.[_0x49509e(0x1d6)]();if(!_0xe9058d)return undefined;const _0xe3a15=typeof _0x1a489c===_0x49509e(0x1ed)?String(_0x1a489c):String(_0x1a489c??'')[_0x49509e(0x1d6)]();if(!_0xe3a15)return undefined;const _0x1ecd10=Number(_0xe3a15);if(!Number[_0x49509e(0x1e4)](_0x1ecd10)||_0x1ecd10<=0x0)return undefined;const _0xd49438=getAppBaseUrl(_0xe9058d),_0x119f98=encodeURIComponent(String(_0x1ecd10));return{'databasePage':_0xd49438+_0x49509e(0x1d9),'erPage':_0xd49438+_0x49509e(0x1d5)+_0x119f98};}
1
+ (function(_0x221682,_0x22d302){const _0x39f21f=a115_0x16d6,_0x943d36=_0x221682();while(!![]){try{const _0x68e128=parseInt(_0x39f21f(0xfa))/0x1+-parseInt(_0x39f21f(0x10c))/0x2*(parseInt(_0x39f21f(0xf7))/0x3)+parseInt(_0x39f21f(0x100))/0x4+parseInt(_0x39f21f(0x10d))/0x5*(parseInt(_0x39f21f(0x106))/0x6)+-parseInt(_0x39f21f(0xf1))/0x7*(-parseInt(_0x39f21f(0xfc))/0x8)+-parseInt(_0x39f21f(0xf4))/0x9+parseInt(_0x39f21f(0xf5))/0xa*(-parseInt(_0x39f21f(0x108))/0xb);if(_0x68e128===_0x22d302)break;else _0x943d36['push'](_0x943d36['shift']());}catch(_0x2a267d){_0x943d36['push'](_0x943d36['shift']());}}}(a115_0x1707,0x72729));import{testDbLinkConfigConnect}from'../../core/api-client.js';function a115_0x16d6(_0x1dd5ba,_0x32476b){_0x1dd5ba=_0x1dd5ba-0xef;const _0x1707ad=a115_0x1707();let _0x16d6b8=_0x1707ad[_0x1dd5ba];return _0x16d6b8;}import{getAppBaseUrl}from'../../constant/domain.js';import{CliErrors}from'../../errors.js';function shouldRedactKey(_0x41caf2){const _0x46e359=a115_0x16d6,_0x254b20=_0x41caf2[_0x46e359(0x109)]();if(_0x254b20===_0x46e359(0x111)||_0x254b20===_0x46e359(0x107)||_0x254b20===_0x46e359(0x113))return!![];if(_0x254b20[_0x46e359(0x101)](_0x46e359(0xf6))||_0x254b20[_0x46e359(0x101)](_0x46e359(0x114))||_0x254b20[_0x46e359(0x101)](_0x46e359(0x10a)))return!![];if(_0x254b20[_0x46e359(0x101)](_0x46e359(0x102))||_0x254b20[_0x46e359(0x101)]('accesskey'))return!![];if(_0x254b20==='authorization'||_0x254b20===_0x46e359(0x110)||_0x254b20==='jdbcurl')return!![];return![];}function a115_0x1707(){const _0x21d190=['3431889BXhVZM','10anAsCK','secret','27843WKzgMY','apiError','map','295131yjFcVA','hasAvailableDo','17960XVHmPs','isFinite','/data/er?dbId=','The\x20configuration\x20was\x20not\x20saved.\x20Verify\x20the\x20host,\x20credentials,\x20database\x20name,\x20network,\x20and\x20allowlist,\x20or\x20explicitly\x20pass\x20--skip-connection-test.','1354028hSeOSM','includes','privatekey','Database\x20connection\x20preflight\x20failed.','dbtableConfig','dbId','43488jOLeDl','passwd','8778418VwoErV','toLowerCase','credential','code','74vNgpvN','325VDrxEQ','test','[redacted]','connectionstring','password','number','dbpassword','token','length','trim','2765FcRuLl','keys','tableName'];a115_0x1707=function(){return _0x21d190;};return a115_0x1707();}export function sanitizeDbLinkForOutput(_0x880aab){const _0x24177f=a115_0x16d6,_0x130848={..._0x880aab};delete _0x130848[_0x24177f(0xfb)];for(const _0x5d6ae7 of Object[_0x24177f(0xf2)](_0x130848)){if(!shouldRedactKey(_0x5d6ae7))continue;const _0x1394e7=_0x130848[_0x5d6ae7];_0x1394e7!=null&&String(_0x1394e7)[_0x24177f(0xef)]>0x0&&(_0x130848[_0x5d6ae7]=_0x24177f(0x10f));}return _0x130848;}export function sanitizeDbLinkList(_0x5f3fa3){const _0x3e605e=a115_0x16d6;return _0x5f3fa3[_0x3e605e(0xf9)](_0x5bbbd2=>sanitizeDbLinkForOutput(_0x5bbbd2));}export function buildDbDatasetDependency(_0x56600a,_0xd2d592){const _0x2f05a7=a115_0x16d6,_0x58a754=_0xd2d592['filter'](_0x275541=>Number(_0x275541[_0x2f05a7(0x104)]?.[_0x2f05a7(0x105)])===Number(_0x56600a['id']))['map'](_0x5db48b=>({'id':_0x5db48b['id'],'code':_0x5db48b[_0x2f05a7(0x10b)],'name':_0x5db48b['name'],..._0x5db48b[_0x2f05a7(0x104)]?.[_0x2f05a7(0xf3)]?{'tableName':_0x5db48b[_0x2f05a7(0x104)][_0x2f05a7(0xf3)]}:{}}));return{'datasetDependency':{'hasDependencies':_0x58a754[_0x2f05a7(0xef)]>0x0,'activeDatasetCount':_0x58a754[_0x2f05a7(0xef)]},'datasets':_0x58a754};}export async function assertDbLinkConnectionPreflight(_0x24d552){const _0x3aade9=a115_0x16d6,_0x4ec146=await testDbLinkConfigConnect(_0x24d552);if(_0x4ec146!==!![])throw CliErrors[_0x3aade9(0xf8)](_0x3aade9(0x103),_0x3aade9(0xff));}const DB_URL_PATTERN=/^[^\s:]+(?::\d+)?$/;export function validateDbUrl(_0x238cb6){const _0x4e9e30=a115_0x16d6,_0x2b8313=_0x238cb6[_0x4e9e30(0xf0)]();if(!_0x2b8313)return![];return DB_URL_PATTERN[_0x4e9e30(0x10e)](_0x2b8313);}export function buildDbPageLinks(_0x1d27b1,_0xca99c7){const _0xac6607=a115_0x16d6,_0x29bff8=_0x1d27b1?.[_0xac6607(0xf0)]();if(!_0x29bff8)return undefined;const _0x32a4f1=typeof _0xca99c7===_0xac6607(0x112)?String(_0xca99c7):String(_0xca99c7??'')[_0xac6607(0xf0)]();if(!_0x32a4f1)return undefined;const _0xff28d6=Number(_0x32a4f1);if(!Number[_0xac6607(0xfd)](_0xff28d6)||_0xff28d6<=0x0)return undefined;const _0x188ce0=getAppBaseUrl(_0x29bff8),_0x5c4203=encodeURIComponent(String(_0xff28d6));return{'databasePage':_0x188ce0+'/data/database','erPage':_0x188ce0+_0xac6607(0xfe)+_0x5c4203};}
@@ -1 +1 @@
1
- const a116_0x480de1=a116_0x11e4;(function(_0x438063,_0x1180ab){const _0x3c8860=a116_0x11e4,_0x35448a=_0x438063();while(!![]){try{const _0x3bd60a=parseInt(_0x3c8860(0x11d))/0x1+-parseInt(_0x3c8860(0x11e))/0x2+parseInt(_0x3c8860(0x12a))/0x3+parseInt(_0x3c8860(0x12c))/0x4*(parseInt(_0x3c8860(0x11f))/0x5)+parseInt(_0x3c8860(0x121))/0x6+parseInt(_0x3c8860(0x130))/0x7*(-parseInt(_0x3c8860(0x129))/0x8)+-parseInt(_0x3c8860(0x12b))/0x9;if(_0x3bd60a===_0x1180ab)break;else _0x35448a['push'](_0x35448a['shift']());}catch(_0x3fbf15){_0x35448a['push'](_0x35448a['shift']());}}}(a116_0x3014,0x48b3f));function a116_0x11e4(_0x2efad3,_0x4a2d72){_0x2efad3=_0x2efad3-0x11d;const _0x30142b=a116_0x3014();let _0x11e426=_0x30142b[_0x2efad3];return _0x11e426;}import{CliErrors}from'../../errors.js';export const DB_TABLE_PAGE_SIZE=0x64;function a116_0x3014(){const _0x545607=['tableName','291000HifqZO','set','values','number','length','DELETED_TABLE','summary','physicalTableCount','56MBciuJ','203448IrbhPo','1012599DSkIex','40nkpMLU','MODIFIED_TABLE','diffType','NEW_TABLE','69244uncFIB','\x20row(s).','size','tableList','datasetTableCount','validation','totalCount','325719efmaDT','1057698BkJlLb','283180SGqZyM'];a116_0x3014=function(){return _0x545607;};return a116_0x3014();}export const DB_TABLE_DIFF_TYPES=[a116_0x480de1(0x12f),a116_0x480de1(0x12d),a116_0x480de1(0x126),'ALREADY_ANALYZED'];export function summarizeDbTableDiff(_0x458ac9){const _0x325d31=a116_0x480de1;return Object['fromEntries'](DB_TABLE_DIFF_TYPES['map'](_0x2ece61=>[_0x2ece61,_0x458ac9['filter'](_0x3906a3=>_0x3906a3[_0x325d31(0x12e)]===_0x2ece61)[_0x325d31(0x125)]]));}export async function getAllDbTableDiff(_0x4dd2c3,_0x339436,_0x487cbc,_0x3bfad8){const _0x382701=a116_0x480de1,_0x4188d2=new Map();let _0x1b0242=0x1,_0x4f5250=null;while(!![]){_0x4f5250=await _0x4dd2c3(_0x339436,_0x487cbc,{'pageIndex':_0x1b0242,'pageSize':DB_TABLE_PAGE_SIZE,'tableName':_0x3bfad8});const _0x14809d=_0x4188d2[_0x382701(0x132)];for(const _0x2d860a of _0x4f5250[_0x382701(0x133)]){_0x4188d2[_0x382701(0x122)](_0x2d860a[_0x382701(0x120)],_0x2d860a);}if(_0x4188d2[_0x382701(0x132)]>=_0x4f5250[_0x382701(0x136)])break;if(_0x4f5250[_0x382701(0x133)][_0x382701(0x125)]===0x0||_0x4188d2['size']===_0x14809d)throw CliErrors[_0x382701(0x135)]('Incomplete\x20db\x20table\x20pagination:\x20collected\x20'+_0x4188d2[_0x382701(0x132)]+'\x20of\x20'+_0x4f5250[_0x382701(0x136)]+_0x382701(0x131));_0x1b0242+=0x1;}return{'totalCount':_0x4f5250?.['totalCount']??0x0,...typeof _0x4f5250?.[_0x382701(0x128)]==='number'?{'physicalTableCount':_0x4f5250[_0x382701(0x128)]}:{},...typeof _0x4f5250?.['datasetTableCount']===_0x382701(0x124)?{'datasetTableCount':_0x4f5250[_0x382701(0x134)]}:{},..._0x4f5250?.[_0x382701(0x127)]?{'summary':_0x4f5250[_0x382701(0x127)]}:{},'tableList':[..._0x4188d2[_0x382701(0x123)]()]};}
1
+ const a116_0x2879e3=a116_0x5dbe;function a116_0x5dbe(_0x301129,_0x1ba132){_0x301129=_0x301129-0x171;const _0x4410f4=a116_0x4410();let _0x5dbee2=_0x4410f4[_0x301129];return _0x5dbee2;}(function(_0x4c9ec0,_0x4e82a6){const _0x5612e3=a116_0x5dbe,_0x5f199a=_0x4c9ec0();while(!![]){try{const _0x39a495=-parseInt(_0x5612e3(0x178))/0x1*(parseInt(_0x5612e3(0x180))/0x2)+parseInt(_0x5612e3(0x183))/0x3*(-parseInt(_0x5612e3(0x187))/0x4)+-parseInt(_0x5612e3(0x192))/0x5*(parseInt(_0x5612e3(0x190))/0x6)+parseInt(_0x5612e3(0x18e))/0x7+parseInt(_0x5612e3(0x176))/0x8*(parseInt(_0x5612e3(0x177))/0x9)+-parseInt(_0x5612e3(0x174))/0xa*(parseInt(_0x5612e3(0x18b))/0xb)+parseInt(_0x5612e3(0x173))/0xc*(parseInt(_0x5612e3(0x193))/0xd);if(_0x39a495===_0x4e82a6)break;else _0x5f199a['push'](_0x5f199a['shift']());}catch(_0x4e7123){_0x5f199a['push'](_0x5f199a['shift']());}}}(a116_0x4410,0xb9cb2));import{CliErrors}from'../../errors.js';export const DB_TABLE_PAGE_SIZE=0x64;export const DB_TABLE_DIFF_TYPES=[a116_0x2879e3(0x175),a116_0x2879e3(0x17f),a116_0x2879e3(0x191),a116_0x2879e3(0x184)];export function summarizeDbTableDiff(_0x14115e){const _0x3f7c5a=a116_0x2879e3;return Object[_0x3f7c5a(0x18f)](DB_TABLE_DIFF_TYPES[_0x3f7c5a(0x186)](_0x14d074=>[_0x14d074,_0x14115e[_0x3f7c5a(0x18a)](_0x2fa15c=>_0x2fa15c[_0x3f7c5a(0x182)]===_0x14d074)[_0x3f7c5a(0x17b)]]));}function a116_0x4410(){const _0x30d379=['size','length','datasetTableCount','summary','physicalTableCount','MODIFIED_TABLE','42HQdemL','values','diffType','141UKWmtj','ALREADY_ANALYZED','Incomplete\x20db\x20table\x20pagination:\x20collected\x20','map','70076rlMtDO','number','set','filter','2959wTPAuP','totalCount','\x20row(s).','6402676IGHXvi','fromEntries','6hnBYqB','DELETED_TABLE','1365230LcOARS','6019IovgLf','tableList','tableName','45000YQTbeC','47130BPUMJF','NEW_TABLE','63032nWbIWI','711rZirGE','7053bpimyI','\x20of\x20'];a116_0x4410=function(){return _0x30d379;};return a116_0x4410();}export async function getAllDbTableDiff(_0x2ecd22,_0x28ad89,_0x2ee4d3,_0xc65393){const _0x59334e=a116_0x2879e3,_0x384651=new Map();let _0xb0b699=0x1,_0x5f022b=null;while(!![]){_0x5f022b=await _0x2ecd22(_0x28ad89,_0x2ee4d3,{'pageIndex':_0xb0b699,'pageSize':DB_TABLE_PAGE_SIZE,'tableName':_0xc65393});const _0x4f525a=_0x384651[_0x59334e(0x17a)];for(const _0x10d9ac of _0x5f022b[_0x59334e(0x171)]){_0x384651[_0x59334e(0x189)](_0x10d9ac[_0x59334e(0x172)],_0x10d9ac);}if(_0x384651[_0x59334e(0x17a)]>=_0x5f022b[_0x59334e(0x18c)])break;if(_0x5f022b['tableList'][_0x59334e(0x17b)]===0x0||_0x384651['size']===_0x4f525a)throw CliErrors['validation'](_0x59334e(0x185)+_0x384651[_0x59334e(0x17a)]+_0x59334e(0x179)+_0x5f022b[_0x59334e(0x18c)]+_0x59334e(0x18d));_0xb0b699+=0x1;}return{'totalCount':_0x5f022b?.[_0x59334e(0x18c)]??0x0,...typeof _0x5f022b?.[_0x59334e(0x17e)]===_0x59334e(0x188)?{'physicalTableCount':_0x5f022b[_0x59334e(0x17e)]}:{},...typeof _0x5f022b?.[_0x59334e(0x17c)]===_0x59334e(0x188)?{'datasetTableCount':_0x5f022b[_0x59334e(0x17c)]}:{},..._0x5f022b?.[_0x59334e(0x17d)]?{'summary':_0x5f022b['summary']}:{},'tableList':[..._0x384651[_0x59334e(0x181)]()]};}
@@ -1 +1 @@
1
- const a117_0x1ccbb3=a117_0x48b9;(function(_0x5d3b1c,_0x5ccb69){const _0xa61738=a117_0x48b9,_0x2df734=_0x5d3b1c();while(!![]){try{const _0x549d3c=-parseInt(_0xa61738(0x123))/0x1+-parseInt(_0xa61738(0x115))/0x2+parseInt(_0xa61738(0x110))/0x3+-parseInt(_0xa61738(0x124))/0x4*(-parseInt(_0xa61738(0x120))/0x5)+parseInt(_0xa61738(0x126))/0x6+parseInt(_0xa61738(0x118))/0x7*(-parseInt(_0xa61738(0x112))/0x8)+parseInt(_0xa61738(0x127))/0x9;if(_0x549d3c===_0x5ccb69)break;else _0x2df734['push'](_0x2df734['shift']());}catch(_0x304eed){_0x2df734['push'](_0x2df734['shift']());}}}(a117_0x2561,0xbb401));function a117_0x48b9(_0x11dd8b,_0x3338a3){_0x11dd8b=_0x11dd8b-0x110;const _0x25613e=a117_0x2561();let _0x48b902=_0x25613e[_0x11dd8b];return _0x48b902;}import{getDbTableComparisonPage}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a117_0x2561(){const _0x4fd278=['1675449pXnpOb','summary','453675iepFWW','number','49424lVCyyy','num','table','792590JNPrhZ','\x20table\x20comparison\x20row(s),\x20total\x20','read','609pPYgww','List\x20all\x20database\x20table\x20comparison\x20rows\x20and\x20analysis\x20states','length','datasetTableCount','tableList','totalCount','tables','str','1566765gNqxjp','\x20(db\x20link\x20','Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)','240726Ufgsig','12SngLWi','physicalTableCount','3984234cRAyJb'];a117_0x2561=function(){return _0x4fd278;};return a117_0x2561();}import{getAllDbTableDiff,summarizeDbTableDiff}from'../../commands/db/table-diff-shared.js';export const dbTables={'service':'db','command':a117_0x1ccbb3(0x11e),'description':a117_0x1ccbb3(0x119),'risk':a117_0x1ccbb3(0x117),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a117_0x1ccbb3(0x114),'type':'string','description':a117_0x1ccbb3(0x122)}],async 'execute'(_0x1fe8e2){const _0x418b25=a117_0x1ccbb3,_0x15eb1e=_0x1fe8e2[_0x418b25(0x113)]('id'),_0x4ff0e5=_0x1fe8e2[_0x418b25(0x11f)](_0x418b25(0x114))||undefined,_0x17fab5=await getAllDbTableDiff(getDbTableComparisonPage,_0x1fe8e2['appCode'],_0x15eb1e,_0x4ff0e5),_0x280d3b=_0x17fab5[_0x418b25(0x11c)];return{'ok':!![],'data':{'dbLinkId':_0x15eb1e,'totalCount':_0x17fab5[_0x418b25(0x11d)],...typeof _0x17fab5[_0x418b25(0x125)]===_0x418b25(0x111)?{'physicalTableCount':_0x17fab5[_0x418b25(0x125)]}:{},...typeof _0x17fab5[_0x418b25(0x11b)]===_0x418b25(0x111)?{'datasetTableCount':_0x17fab5[_0x418b25(0x11b)]}:{},..._0x17fab5[_0x418b25(0x128)]?{'summary':_0x17fab5[_0x418b25(0x128)]}:{},'summaryByType':summarizeDbTableDiff(_0x280d3b),'tables':_0x280d3b},'message':_0x280d3b[_0x418b25(0x11a)]+_0x418b25(0x116)+_0x17fab5['totalCount']+_0x418b25(0x121)+_0x15eb1e+')'};}};
1
+ const a117_0x3542ae=a117_0x5e19;function a117_0x5e19(_0x4540c4,_0x47713a){_0x4540c4=_0x4540c4-0xbe;const _0x5ceb0f=a117_0x5ceb();let _0x5e1903=_0x5ceb0f[_0x4540c4];return _0x5e1903;}function a117_0x5ceb(){const _0x3c6aad=['datasetTableCount','table','totalCount','407KRbxgX','271833rfLUuY','104530kxPOaa','12105rOKckz','tables','appCode','12nWKtBv','Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)','\x20table\x20comparison\x20row(s),\x20total\x20','num','List\x20all\x20database\x20table\x20comparison\x20rows\x20and\x20analysis\x20states','physicalTableCount','202512KzcZLx','172eThTIF','3992fMDpGX','189mBnVKH','\x20(db\x20link\x20','read','8YvhkQT','length','summary','14486SuXYMu','string','7656493zauuoV','7HZJfaS'];a117_0x5ceb=function(){return _0x3c6aad;};return a117_0x5ceb();}(function(_0x1886f,_0x5c99f3){const _0x644799=a117_0x5e19,_0x2f9fc5=_0x1886f();while(!![]){try{const _0x472a4a=parseInt(_0x644799(0xd0))/0x1*(parseInt(_0x644799(0xd3))/0x2)+parseInt(_0x644799(0xbf))/0x3+-parseInt(_0x644799(0xcb))/0x4*(parseInt(_0x644799(0xc1))/0x5)+-parseInt(_0x644799(0xca))/0x6*(-parseInt(_0x644799(0xd6))/0x7)+parseInt(_0x644799(0xcc))/0x8*(parseInt(_0x644799(0xcd))/0x9)+parseInt(_0x644799(0xc0))/0xa*(-parseInt(_0x644799(0xbe))/0xb)+-parseInt(_0x644799(0xc4))/0xc*(-parseInt(_0x644799(0xd5))/0xd);if(_0x472a4a===_0x5c99f3)break;else _0x2f9fc5['push'](_0x2f9fc5['shift']());}catch(_0xc8d4e5){_0x2f9fc5['push'](_0x2f9fc5['shift']());}}}(a117_0x5ceb,0x47043));import{getDbTableComparisonPage}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{getAllDbTableDiff,summarizeDbTableDiff}from'../../commands/db/table-diff-shared.js';export const dbTables={'service':'db','command':a117_0x3542ae(0xc2),'description':a117_0x3542ae(0xc8),'risk':a117_0x3542ae(0xcf),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a117_0x3542ae(0xd8),'type':a117_0x3542ae(0xd4),'description':a117_0x3542ae(0xc5)}],async 'execute'(_0xd00d68){const _0x32369a=a117_0x3542ae,_0x5a13ee=_0xd00d68[_0x32369a(0xc7)]('id'),_0x563334=_0xd00d68['str'](_0x32369a(0xd8))||undefined,_0xcccde2=await getAllDbTableDiff(getDbTableComparisonPage,_0xd00d68[_0x32369a(0xc3)],_0x5a13ee,_0x563334),_0x1e8b4c=_0xcccde2['tableList'];return{'ok':!![],'data':{'dbLinkId':_0x5a13ee,'totalCount':_0xcccde2['totalCount'],...typeof _0xcccde2[_0x32369a(0xc9)]==='number'?{'physicalTableCount':_0xcccde2[_0x32369a(0xc9)]}:{},...typeof _0xcccde2[_0x32369a(0xd7)]==='number'?{'datasetTableCount':_0xcccde2[_0x32369a(0xd7)]}:{},..._0xcccde2[_0x32369a(0xd2)]?{'summary':_0xcccde2['summary']}:{},'summaryByType':summarizeDbTableDiff(_0x1e8b4c),'tables':_0x1e8b4c},'message':_0x1e8b4c[_0x32369a(0xd1)]+_0x32369a(0xc6)+_0xcccde2[_0x32369a(0xd9)]+_0x32369a(0xce)+_0x5a13ee+')'};}};
@@ -1 +1 @@
1
- function a118_0x46e5(_0x34944d,_0x13ca85){_0x34944d=_0x34944d-0x1cb;const _0x2f7112=a118_0x2f71();let _0x46e5a8=_0x2f7112[_0x34944d];return _0x46e5a8;}const a118_0x589fdb=a118_0x46e5;(function(_0x253c10,_0xfef5f4){const _0x4b5d3c=a118_0x46e5,_0x2114a8=_0x253c10();while(!![]){try{const _0x3ba8f1=parseInt(_0x4b5d3c(0x1e2))/0x1+parseInt(_0x4b5d3c(0x1d4))/0x2*(-parseInt(_0x4b5d3c(0x1ce))/0x3)+parseInt(_0x4b5d3c(0x1da))/0x4+-parseInt(_0x4b5d3c(0x1cc))/0x5*(parseInt(_0x4b5d3c(0x1e5))/0x6)+parseInt(_0x4b5d3c(0x1d0))/0x7+-parseInt(_0x4b5d3c(0x1d9))/0x8*(parseInt(_0x4b5d3c(0x1de))/0x9)+parseInt(_0x4b5d3c(0x1e1))/0xa;if(_0x3ba8f1===_0xfef5f4)break;else _0x2114a8['push'](_0x2114a8['shift']());}catch(_0xa41e3f){_0x2114a8['push'](_0x2114a8['shift']());}}}(a118_0x2f71,0x5401e));import{testDbLinkConnect}from'../../core/api-client.js';function a118_0x2f71(){const _0x5889cb=['562ClwXVJ','Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)','Connection\x20check\x20finished\x20for\x20db\x20link\x20','msg','length','769752YHmJMS','1383552syueWJ','keys','Connection\x20OK\x20for\x20db\x20link\x20','data','63YLgKgF','object','slice','6691000lRuWeX','110742tSzjyd','\x20(see\x20data.result)','test','390klRDFL','message','30535sLwCZC','read','3771KJvdjz','num','4494483GlUAcY','code','success','error'];a118_0x2f71=function(){return _0x5889cb;};return a118_0x2f71();}import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function summarizeTestConnectResult(_0x43e590){const _0x53fa85=a118_0x46e5;if(_0x43e590===!![]||_0x43e590===![])return{'success':_0x43e590};if(_0x43e590===null||_0x43e590===undefined)return{'type':typeof _0x43e590};if(typeof _0x43e590!==_0x53fa85(0x1df))return{'type':typeof _0x43e590};const _0x1050d4=_0x43e590,_0x11e793=[_0x53fa85(0x1d2),_0x53fa85(0x1cb),_0x53fa85(0x1d1),_0x53fa85(0x1d3),_0x53fa85(0x1d7),_0x53fa85(0x1dd)],_0x350dcc={};for(const _0x35023e of _0x11e793){if(_0x35023e in _0x1050d4)_0x350dcc[_0x35023e]=_0x1050d4[_0x35023e];}return Object[_0x53fa85(0x1db)](_0x350dcc)[_0x53fa85(0x1d8)]===0x0&&(_0x350dcc[_0x53fa85(0x1db)]=Object[_0x53fa85(0x1db)](_0x1050d4)[_0x53fa85(0x1e0)](0x0,0x14)),_0x350dcc;}export const dbTest={'service':'db','command':a118_0x589fdb(0x1e4),'description':a118_0x589fdb(0x1d5),'risk':a118_0x589fdb(0x1cd),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x278f61){const _0x591658=a118_0x589fdb,_0x5a667c=_0x278f61[_0x591658(0x1cf)]('id'),_0xc2c80c=await testDbLinkConnect(_0x5a667c),_0x5b9d15=_0xc2c80c===!![]||typeof _0xc2c80c===_0x591658(0x1df)&&_0xc2c80c!==null&&_0xc2c80c[_0x591658(0x1d2)]===!![],_0x3ee8d8=summarizeTestConnectResult(_0xc2c80c);return{'ok':!![],'data':{'id':_0x5a667c,'connected':Boolean(_0x5b9d15),'result':_0x3ee8d8},'message':_0x5b9d15?_0x591658(0x1dc)+_0x5a667c:_0x591658(0x1d6)+_0x5a667c+_0x591658(0x1e3)};}};
1
+ const a118_0x597bfb=a118_0x34cb;function a118_0x3ba3(){const _0x1c904e=['8508856gZACWU','msg','10oQGbjy','object','Connection\x20OK\x20for\x20db\x20link\x20','error','success','data','72748PEFHWf','slice','\x20(see\x20data.result)','1264863GenLsL','9304929XIuQAw','2rOgCtb','test','11683480PdyWSb','98ItlwyI','Connection\x20check\x20finished\x20for\x20db\x20link\x20','215004WVElgJ','851393rNgQZQ','keys','num','code'];a118_0x3ba3=function(){return _0x1c904e;};return a118_0x3ba3();}(function(_0x404da8,_0x585686){const _0x4a56f0=a118_0x34cb,_0x61b00c=_0x404da8();while(!![]){try{const _0x2f1b55=-parseInt(_0x4a56f0(0x17b))/0x1*(-parseInt(_0x4a56f0(0x175))/0x2)+parseInt(_0x4a56f0(0x173))/0x3+-parseInt(_0x4a56f0(0x187))/0x4*(parseInt(_0x4a56f0(0x181))/0x5)+-parseInt(_0x4a56f0(0x17a))/0x6*(-parseInt(_0x4a56f0(0x178))/0x7)+-parseInt(_0x4a56f0(0x17f))/0x8+parseInt(_0x4a56f0(0x174))/0x9+-parseInt(_0x4a56f0(0x177))/0xa;if(_0x2f1b55===_0x585686)break;else _0x61b00c['push'](_0x61b00c['shift']());}catch(_0x59da2d){_0x61b00c['push'](_0x61b00c['shift']());}}}(a118_0x3ba3,0x83e52));function a118_0x34cb(_0x4de708,_0x9ccbc6){_0x4de708=_0x4de708-0x173;const _0x3ba381=a118_0x3ba3();let _0x34cbf9=_0x3ba381[_0x4de708];return _0x34cbf9;}import{testDbLinkConnect}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function summarizeTestConnectResult(_0x1f8b42){const _0x3216bc=a118_0x34cb;if(_0x1f8b42===!![]||_0x1f8b42===![])return{'success':_0x1f8b42};if(_0x1f8b42===null||_0x1f8b42===undefined)return{'type':typeof _0x1f8b42};if(typeof _0x1f8b42!==_0x3216bc(0x182))return{'type':typeof _0x1f8b42};const _0xd3280f=_0x1f8b42,_0x51f7ac=[_0x3216bc(0x185),'message',_0x3216bc(0x17e),_0x3216bc(0x184),_0x3216bc(0x180),_0x3216bc(0x186)],_0x5a954f={};for(const _0x206382 of _0x51f7ac){if(_0x206382 in _0xd3280f)_0x5a954f[_0x206382]=_0xd3280f[_0x206382];}return Object[_0x3216bc(0x17c)](_0x5a954f)['length']===0x0&&(_0x5a954f['keys']=Object[_0x3216bc(0x17c)](_0xd3280f)[_0x3216bc(0x188)](0x0,0x14)),_0x5a954f;}export const dbTest={'service':'db','command':a118_0x597bfb(0x176),'description':'Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)','risk':'read','requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x2e7afa){const _0x275295=a118_0x597bfb,_0x29ea6a=_0x2e7afa[_0x275295(0x17d)]('id'),_0xe1703=await testDbLinkConnect(_0x29ea6a),_0x14aecc=_0xe1703===!![]||typeof _0xe1703===_0x275295(0x182)&&_0xe1703!==null&&_0xe1703[_0x275295(0x185)]===!![],_0x520419=summarizeTestConnectResult(_0xe1703);return{'ok':!![],'data':{'id':_0x29ea6a,'connected':Boolean(_0x14aecc),'result':_0x520419},'message':_0x14aecc?_0x275295(0x183)+_0x29ea6a:_0x275295(0x179)+_0x29ea6a+_0x275295(0x189)};}};
@@ -1 +1 @@
1
- const a119_0x2e5af2=a119_0x5320;(function(_0x35fc82,_0x3afc93){const _0xcd76a1=a119_0x5320,_0x34149f=_0x35fc82();while(!![]){try{const _0xc40a5c=parseInt(_0xcd76a1(0x178))/0x1*(parseInt(_0xcd76a1(0x179))/0x2)+parseInt(_0xcd76a1(0x17b))/0x3+parseInt(_0xcd76a1(0x188))/0x4+-parseInt(_0xcd76a1(0x175))/0x5*(-parseInt(_0xcd76a1(0x16f))/0x6)+-parseInt(_0xcd76a1(0x186))/0x7*(-parseInt(_0xcd76a1(0x17c))/0x8)+-parseInt(_0xcd76a1(0x162))/0x9+-parseInt(_0xcd76a1(0x166))/0xa*(parseInt(_0xcd76a1(0x185))/0xb);if(_0xc40a5c===_0x3afc93)break;else _0x34149f['push'](_0x34149f['shift']());}catch(_0x16fd13){_0x34149f['push'](_0x34149f['shift']());}}}(a119_0x59a8,0x189ff));import{getDbLinkInfo,updateDbLink}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG,SKIP_CONNECTION_TEST_FLAG}from'../../commands/common/flags.js';import{assertDbLinkConnectionPreflight,sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';const MASKED_PASSWORD_VALUES=new Set(['******',a119_0x2e5af2(0x167)]);function a119_0x59a8(){const _0x262e14=['password','480768iNgtBt','validation','The\x20server\x20returned\x20a\x20masked\x20database\x20password.\x20Pass\x20the\x20current\x20or\x20replacement\x20password\x20explicitly\x20with\x20--password\x20to\x20update\x20this\x20connection\x20safely.','1048851Whgjyw','dbname','dbParam','Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22','3963260HnEQnd','[redacted]','username','write','New\x20host:port','dbName','skip-connection-test','trim','Update\x20a\x20database\x20connection\x20by\x20merging\x20supplied\x20fields\x20into\x20the\x20current\x20server\x20record.\x20A\x20masked\x20server\x20password\x20requires\x20explicit\x20--password','60xnnsOl','has','New\x20username','dbUrl','dbdesc','str','51410uPFyrF','dbDesc','update','198418CXleHZ','2RYyGjA','dburl','292725WoIYIF','8BZhivC','POST','dbparam','num','New\x20database\x20name','string','Preview\x20the\x20merged\x20database\x20connection\x20update;\x20password\x20redacted','/smartapi/dblink/update','bool','11IaTOxj','663061EyybaR'];a119_0x59a8=function(){return _0x262e14;};return a119_0x59a8();}function a119_0x5320(_0x1ce1ab,_0xae974c){_0x1ce1ab=_0x1ce1ab-0x160;const _0x59a806=a119_0x59a8();let _0x5320d=_0x59a806[_0x1ce1ab];return _0x5320d;}function mergeDbLinkUpdate(_0x5e55a3,_0x3c369b){const _0x16e6cd=a119_0x2e5af2,_0x1754c8={..._0x5e55a3},_0x26a013=_0x3c369b[_0x16e6cd(0x174)]('password');if(_0x26a013&&MASKED_PASSWORD_VALUES[_0x16e6cd(0x170)](_0x26a013))throw CliErrors[_0x16e6cd(0x160)]('--password\x20must\x20contain\x20the\x20real\x20database\x20password,\x20not\x20a\x20masked\x20value.');if(!_0x26a013&&MASKED_PASSWORD_VALUES[_0x16e6cd(0x170)](String(_0x5e55a3[_0x16e6cd(0x187)]??'')))throw CliErrors[_0x16e6cd(0x160)](_0x16e6cd(0x161));const _0x3b7573=_0x3c369b[_0x16e6cd(0x174)](_0x16e6cd(0x163));if(_0x3b7573)_0x1754c8[_0x16e6cd(0x16b)]=_0x3b7573;const _0x160b0d=_0x3c369b[_0x16e6cd(0x174)](_0x16e6cd(0x17a));if(_0x160b0d)_0x1754c8[_0x16e6cd(0x172)]=_0x160b0d[_0x16e6cd(0x16d)]();const _0x543153=_0x3c369b[_0x16e6cd(0x174)]('username');if(_0x543153)_0x1754c8['username']=_0x543153;if(_0x26a013)_0x1754c8[_0x16e6cd(0x187)]=_0x26a013;const _0x534e17=_0x3c369b[_0x16e6cd(0x174)](_0x16e6cd(0x17e));if(_0x534e17)_0x1754c8[_0x16e6cd(0x164)]=_0x534e17;const _0x51400d=_0x3c369b[_0x16e6cd(0x174)]('dbdesc');if(_0x51400d)_0x1754c8[_0x16e6cd(0x176)]=_0x51400d;return _0x1754c8;}export const dbUpdate={'service':'db','command':a119_0x2e5af2(0x177),'description':a119_0x2e5af2(0x16e),'risk':a119_0x2e5af2(0x169),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a119_0x2e5af2(0x163),'type':a119_0x2e5af2(0x181),'description':a119_0x2e5af2(0x180)},{'name':a119_0x2e5af2(0x17a),'type':a119_0x2e5af2(0x181),'description':a119_0x2e5af2(0x16a)},{'name':a119_0x2e5af2(0x168),'type':'string','description':a119_0x2e5af2(0x171)},{'name':'password','type':a119_0x2e5af2(0x181),'description':'Current\x20or\x20replacement\x20password.\x20Required\x20when\x20the\x20stored\x20password\x20is\x20masked'},{'name':a119_0x2e5af2(0x17e),'type':a119_0x2e5af2(0x181),'description':'New\x20connection\x20parameter\x20string'},{'name':a119_0x2e5af2(0x173),'type':a119_0x2e5af2(0x181),'description':'New\x20description'},SKIP_CONNECTION_TEST_FLAG],async 'validate'(_0x5c0a52){const _0x3509f6=a119_0x2e5af2,_0x4179e1=_0x5c0a52[_0x3509f6(0x174)]('dburl');if(_0x4179e1&&!validateDbUrl(_0x4179e1[_0x3509f6(0x16d)]()))throw CliErrors[_0x3509f6(0x160)](_0x3509f6(0x165)+_0x4179e1+'\x22');},async 'dryRun'(_0x1ccbb1){const _0x1e7185=a119_0x2e5af2,_0x44b794=_0x1ccbb1[_0x1e7185(0x17f)]('id'),_0x50138b=await getDbLinkInfo(_0x44b794),_0x131b59=mergeDbLinkUpdate(_0x50138b,_0x1ccbb1),_0x23ca8d=sanitizeDbLinkForOutput(_0x131b59);return{'method':_0x1e7185(0x17d),'url':_0x1e7185(0x183),'body':_0x23ca8d,'description':_0x1e7185(0x182),'connectionPreflight':{'enabled':!_0x1ccbb1[_0x1e7185(0x184)]('skip-connection-test'),'executed':![]}};},async 'execute'(_0x5d03d2){const _0x3f2926=a119_0x2e5af2,_0x2fb72f=_0x5d03d2[_0x3f2926(0x17f)]('id'),_0x9b72e0=await getDbLinkInfo(_0x2fb72f),_0x404dd6=mergeDbLinkUpdate(_0x9b72e0,_0x5d03d2);!_0x5d03d2[_0x3f2926(0x184)](_0x3f2926(0x16c))&&await assertDbLinkConnectionPreflight(_0x404dd6);const {id:_0x590f47,entity:_0x3e9871}=normalizeEntityWithIdResponse(await updateDbLink(_0x404dd6));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x3e9871),'message':'Updated\x20db\x20link\x20'+(_0x590f47??_0x2fb72f)};}};
1
+ const a119_0x296903=a119_0xb80d;(function(_0x3ebe1b,_0x3efab9){const _0x296b93=a119_0xb80d,_0x55aade=_0x3ebe1b();while(!![]){try{const _0x435404=-parseInt(_0x296b93(0x10c))/0x1+-parseInt(_0x296b93(0x103))/0x2*(-parseInt(_0x296b93(0xf0))/0x3)+-parseInt(_0x296b93(0xed))/0x4*(parseInt(_0x296b93(0x106))/0x5)+-parseInt(_0x296b93(0x10f))/0x6*(-parseInt(_0x296b93(0xfd))/0x7)+parseInt(_0x296b93(0xff))/0x8*(parseInt(_0x296b93(0x10d))/0x9)+parseInt(_0x296b93(0xf3))/0xa*(parseInt(_0x296b93(0x101))/0xb)+parseInt(_0x296b93(0xf7))/0xc*(-parseInt(_0x296b93(0xef))/0xd);if(_0x435404===_0x3efab9)break;else _0x55aade['push'](_0x55aade['shift']());}catch(_0x135399){_0x55aade['push'](_0x55aade['shift']());}}}(a119_0xf80b,0x5ade8));import{getDbLinkInfo,updateDbLink}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG,SKIP_CONNECTION_TEST_FLAG}from'../../commands/common/flags.js';function a119_0xb80d(_0x509004,_0x1df372){_0x509004=_0x509004-0xe5;const _0xf80bda=a119_0xf80b();let _0xb80d20=_0xf80bda[_0x509004];return _0xb80d20;}import{assertDbLinkConnectionPreflight,sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';const MASKED_PASSWORD_VALUES=new Set([a119_0x296903(0x10b),a119_0x296903(0xec)]);function a119_0xf80b(){const _0x502ba2=['POST','str','Current\x20or\x20replacement\x20password.\x20Required\x20when\x20the\x20stored\x20password\x20is\x20masked','password','string','New\x20host:port','[redacted]','99436tUWSDf','New\x20username','1651oXKsNk','93vtYzES','dbname','num','6888590kRIKEi','Preview\x20the\x20merged\x20database\x20connection\x20update;\x20password\x20redacted','Updated\x20db\x20link\x20','Update\x20a\x20database\x20connection\x20by\x20merging\x20supplied\x20fields\x20into\x20the\x20current\x20server\x20record.\x20A\x20masked\x20server\x20password\x20requires\x20explicit\x20--password','27492jXYxcK','New\x20connection\x20parameter\x20string','write','--password\x20must\x20contain\x20the\x20real\x20database\x20password,\x20not\x20a\x20masked\x20value.','trim','dbDesc','892402ybrJOJ','username','8KTCsRE','New\x20description','11nOjHtR','dbparam','19000SbLOYN','skip-connection-test','bool','95mKrTWE','dbParam','dbdesc','has','validation','******','742363BlJfuW','5755590Osjfjj','New\x20database\x20name','12UzQXLC','dburl'];a119_0xf80b=function(){return _0x502ba2;};return a119_0xf80b();}function mergeDbLinkUpdate(_0x3427b6,_0x4c0cf3){const _0x3bbe40=a119_0x296903,_0x1ecdc8={..._0x3427b6},_0x2f037f=_0x4c0cf3['str']('password');if(_0x2f037f&&MASKED_PASSWORD_VALUES[_0x3bbe40(0x109)](_0x2f037f))throw CliErrors[_0x3bbe40(0x10a)](_0x3bbe40(0xfa));if(!_0x2f037f&&MASKED_PASSWORD_VALUES[_0x3bbe40(0x109)](String(_0x3427b6[_0x3bbe40(0xe9)]??'')))throw CliErrors[_0x3bbe40(0x10a)]('The\x20server\x20returned\x20a\x20masked\x20database\x20password.\x20Pass\x20the\x20current\x20or\x20replacement\x20password\x20explicitly\x20with\x20--password\x20to\x20update\x20this\x20connection\x20safely.');const _0x2bcd94=_0x4c0cf3[_0x3bbe40(0xe7)]('dbname');if(_0x2bcd94)_0x1ecdc8['dbName']=_0x2bcd94;const _0x442e0b=_0x4c0cf3['str'](_0x3bbe40(0xe5));if(_0x442e0b)_0x1ecdc8['dbUrl']=_0x442e0b[_0x3bbe40(0xfb)]();const _0x434f9b=_0x4c0cf3['str'](_0x3bbe40(0xfe));if(_0x434f9b)_0x1ecdc8[_0x3bbe40(0xfe)]=_0x434f9b;if(_0x2f037f)_0x1ecdc8[_0x3bbe40(0xe9)]=_0x2f037f;const _0x13bbbd=_0x4c0cf3['str']('dbparam');if(_0x13bbbd)_0x1ecdc8[_0x3bbe40(0x107)]=_0x13bbbd;const _0x2e7bc3=_0x4c0cf3[_0x3bbe40(0xe7)](_0x3bbe40(0x108));if(_0x2e7bc3)_0x1ecdc8[_0x3bbe40(0xfc)]=_0x2e7bc3;return _0x1ecdc8;}export const dbUpdate={'service':'db','command':'update','description':a119_0x296903(0xf6),'risk':a119_0x296903(0xf9),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a119_0x296903(0xf1),'type':a119_0x296903(0xea),'description':a119_0x296903(0x10e)},{'name':a119_0x296903(0xe5),'type':a119_0x296903(0xea),'description':a119_0x296903(0xeb)},{'name':'username','type':a119_0x296903(0xea),'description':a119_0x296903(0xee)},{'name':a119_0x296903(0xe9),'type':a119_0x296903(0xea),'description':a119_0x296903(0xe8)},{'name':a119_0x296903(0x102),'type':a119_0x296903(0xea),'description':a119_0x296903(0xf8)},{'name':a119_0x296903(0x108),'type':a119_0x296903(0xea),'description':a119_0x296903(0x100)},SKIP_CONNECTION_TEST_FLAG],async 'validate'(_0x47bac9){const _0x1512bc=a119_0x296903,_0x59728f=_0x47bac9['str'](_0x1512bc(0xe5));if(_0x59728f&&!validateDbUrl(_0x59728f['trim']()))throw CliErrors[_0x1512bc(0x10a)]('Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22'+_0x59728f+'\x22');},async 'dryRun'(_0x1c8270){const _0x18af66=a119_0x296903,_0x39cf17=_0x1c8270['num']('id'),_0x11c061=await getDbLinkInfo(_0x39cf17),_0x4441f3=mergeDbLinkUpdate(_0x11c061,_0x1c8270),_0x1dc53f=sanitizeDbLinkForOutput(_0x4441f3);return{'method':_0x18af66(0xe6),'url':'/smartapi/dblink/update','body':_0x1dc53f,'description':_0x18af66(0xf4),'connectionPreflight':{'enabled':!_0x1c8270[_0x18af66(0x105)](_0x18af66(0x104)),'executed':![]}};},async 'execute'(_0x59f47c){const _0x168a7c=a119_0x296903,_0x1763a2=_0x59f47c[_0x168a7c(0xf2)]('id'),_0x306d0d=await getDbLinkInfo(_0x1763a2),_0x33c00d=mergeDbLinkUpdate(_0x306d0d,_0x59f47c);!_0x59f47c[_0x168a7c(0x105)](_0x168a7c(0x104))&&await assertDbLinkConnectionPreflight(_0x33c00d);const {id:_0x4accc6,entity:_0xa727db}=normalizeEntityWithIdResponse(await updateDbLink(_0x33c00d));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0xa727db),'message':_0x168a7c(0xf5)+(_0x4accc6??_0x1763a2)};}};
@@ -1 +1 @@
1
- (function(_0x55034b,_0x436e65){const _0x21d752=a120_0x2bef,_0x373c53=_0x55034b();while(!![]){try{const _0x4882ff=-parseInt(_0x21d752(0x101))/0x1*(parseInt(_0x21d752(0xfc))/0x2)+parseInt(_0x21d752(0x104))/0x3+parseInt(_0x21d752(0x107))/0x4*(-parseInt(_0x21d752(0xfd))/0x5)+-parseInt(_0x21d752(0x105))/0x6*(parseInt(_0x21d752(0x100))/0x7)+parseInt(_0x21d752(0xfb))/0x8*(parseInt(_0x21d752(0xfe))/0x9)+-parseInt(_0x21d752(0x102))/0xa*(parseInt(_0x21d752(0xff))/0xb)+parseInt(_0x21d752(0x106))/0xc*(parseInt(_0x21d752(0x103))/0xd);if(_0x4882ff===_0x436e65)break;else _0x373c53['push'](_0x373c53['shift']());}catch(_0x40ef3e){_0x373c53['push'](_0x373c53['shift']());}}}(a120_0x29de,0x52f6d));function a120_0x2bef(_0x314f24,_0x2b9b69){_0x314f24=_0x314f24-0xfb;const _0x29de5f=a120_0x29de();let _0x2befcc=_0x29de5f[_0x314f24];return _0x2befcc;}import{deploymentSyncAll}from'../../commands/deployment/sync-all.js';import{deploymentSyncStatus}from'../../commands/deployment/sync-status.js';function a120_0x29de(){const _0x515640=['10DCkKXA','9279JOXnSD','11fymNxD','7SitiaP','59813nfIzgv','4187060UOBSJQ','13xvaDIz','1162986TwpmEo','799692FwfKwi','17194932OfxAbS','1261340FIppIa','1864lfqMPh','18wWONhR'];a120_0x29de=function(){return _0x515640;};return a120_0x29de();}import{deploymentSyncJobs}from'../../commands/deployment/sync-jobs.js';export const deploymentDefinitions=[deploymentSyncAll,deploymentSyncStatus,deploymentSyncJobs];
1
+ (function(_0x5c92aa,_0xba3854){const _0xb2e832=a120_0x33b7,_0x287b3c=_0x5c92aa();while(!![]){try{const _0x297f00=parseInt(_0xb2e832(0xd5))/0x1*(-parseInt(_0xb2e832(0xd0))/0x2)+parseInt(_0xb2e832(0xce))/0x3+-parseInt(_0xb2e832(0xd7))/0x4*(parseInt(_0xb2e832(0xd3))/0x5)+-parseInt(_0xb2e832(0xcf))/0x6+-parseInt(_0xb2e832(0xd4))/0x7*(-parseInt(_0xb2e832(0xd1))/0x8)+-parseInt(_0xb2e832(0xd2))/0x9+-parseInt(_0xb2e832(0xd6))/0xa*(-parseInt(_0xb2e832(0xcd))/0xb);if(_0x297f00===_0xba3854)break;else _0x287b3c['push'](_0x287b3c['shift']());}catch(_0x185271){_0x287b3c['push'](_0x287b3c['shift']());}}}(a120_0x48f8,0x71580));function a120_0x48f8(){const _0x102908=['11nrQDXN','155814yfgHrM','5475516ZsRkgk','174pEFbOG','53104PtpbhF','8009712WGYXRv','300215yhQAIA','903fYGjgZ','5264wBJtQA','24770110HFMCAj','44expefA'];a120_0x48f8=function(){return _0x102908;};return a120_0x48f8();}import{deploymentSyncAll}from'../../commands/deployment/sync-all.js';import{deploymentSyncStatus}from'../../commands/deployment/sync-status.js';import{deploymentSyncJobs}from'../../commands/deployment/sync-jobs.js';function a120_0x33b7(_0x38cac7,_0x3685c5){_0x38cac7=_0x38cac7-0xcd;const _0x48f8cf=a120_0x48f8();let _0x33b73a=_0x48f8cf[_0x38cac7];return _0x33b73a;}export const deploymentDefinitions=[deploymentSyncAll,deploymentSyncStatus,deploymentSyncJobs];
@@ -1 +1 @@
1
- function a121_0x3ccc(){const _0xffec26=['--confirm\x20is\x20required\x20to\x20synchronize\x20all\x20application\x20metadata.','outcome','all_server_supported_metadata','application_deployment_sync','905124niwlZL','job','sync-all','deployment_sync_submit_outcome_unknown','Deployment\x20sync\x20submission\x20response\x20was\x20unavailable;\x20job\x20creation\x20is\x20unknown.','43076PmBOgs','List\x20recent\x20deployment\x20sync\x20jobs\x20before\x20deciding\x20whether\x20to\x20submit\x20again.','POST','6mtMOLp','confirm','4856680BhdMEy','defineProperty','2210635cPoLFb','1698816cmSgvw','submitted','Run\x20with\x20--dry-run\x20first,\x20then\x20add\x20--confirm.','Would\x20submit\x20an\x20administrative\x20deployment\x20metadata\x20backfill\x20or\x20recovery\x20job.','/smartapi/data-sync/submit','not_needed','validation','Confirm\x20the\x20administrative\x20backfill\x20or\x20recovery\x20synchronization','2597147xYznSD','unknown','not_submitted','appCode','1309392GJlNQt','bool','Backfill\x20or\x20recover\x20all\x20server-supported\x20application\x20metadata'];a121_0x3ccc=function(){return _0xffec26;};return a121_0x3ccc();}const a121_0x46df7d=a121_0x3b02;(function(_0x15d8b3,_0x25bffd){const _0xc09091=a121_0x3b02,_0x5998c8=_0x15d8b3();while(!![]){try{const _0x22fede=parseInt(_0xc09091(0x1bf))/0x1+-parseInt(_0xc09091(0x1ba))/0x2+parseInt(_0xc09091(0x1a7))/0x3+-parseInt(_0xc09091(0x1b3))/0x4+parseInt(_0xc09091(0x1a6))/0x5*(-parseInt(_0xc09091(0x1a2))/0x6)+parseInt(_0xc09091(0x1af))/0x7+parseInt(_0xc09091(0x1a4))/0x8;if(_0x22fede===_0x25bffd)break;else _0x5998c8['push'](_0x5998c8['shift']());}catch(_0x550a2a){_0x5998c8['push'](_0x5998c8['shift']());}}}(a121_0x3ccc,0x59369));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{asDryRunResult}from'../../commands/common/dry-run.js';import{isPlatformTransportFailure,submitDeploymentMetadataSyncAll}from'../../core/api-client.js';import{CliError,CliErrors}from'../../errors.js';const SUBMIT_PATH=a121_0x46df7d(0x1ab),CONFIRM_FLAG={'name':a121_0x46df7d(0x1a3),'type':'boolean','description':a121_0x46df7d(0x1ae)};export const deploymentSyncAll={'service':'deployment','command':a121_0x46df7d(0x1bc),'description':a121_0x46df7d(0x1b5),'risk':'write','strictFlags':!![],'structuredErrors':!![],'confirmationDescription':'Submit\x20an\x20administrative\x20metadata\x20backfill\x20or\x20recovery\x20synchronization.','flags':[CONFIRM_FLAG,APPCODE_FLAG_OPTIONAL],async 'dryRun'(_0x3a6b85){const _0xaeb73b=a121_0x46df7d;return asDryRunResult(buildPreview(_0x3a6b85['appCode']),{'method':_0xaeb73b(0x1c1),'url':SUBMIT_PATH,'description':_0xaeb73b(0x1aa)});},async 'execute'(_0x3812cf){const _0x304a2b=a121_0x46df7d;if(!_0x3812cf[_0x304a2b(0x1b4)](_0x304a2b(0x1a3)))throw CliErrors[_0x304a2b(0x1ad)](_0x304a2b(0x1b6),_0x304a2b(0x1a9));try{const _0x3cfafa=await submitDeploymentMetadataSyncAll({'appCode':_0x3812cf['appCode']});if(_0x3cfafa[_0x304a2b(0x1b7)]===_0x304a2b(0x1ac))return{'ok':!![],'data':{'operation':_0x304a2b(0x1b9),'appCode':_0x3812cf['appCode'],'submitted':![],'outcome':_0x304a2b(0x1ac)},'message':'No\x20deployment\x20synchronization\x20was\x20needed\x20for\x20this\x20app.'};return{'ok':!![],'data':{'operation':'application_deployment_sync','appCode':_0x3812cf['appCode'],'submitted':!![],'outcome':_0x304a2b(0x1a8),'jobId':_0x3cfafa[_0x304a2b(0x1bb)]['jobId'],'status':_0x3cfafa[_0x304a2b(0x1bb)]['status']},'message':'Submitted\x20deployment\x20synchronization\x20job\x20'+_0x3cfafa[_0x304a2b(0x1bb)]['jobId']+'.'};}catch(_0x4d1269){if(!isPlatformTransportFailure(_0x4d1269))throw _0x4d1269;const _0x3996a9=new CliError(_0x304a2b(0x1bd),0x2,_0x304a2b(0x1be),_0x304a2b(0x1c0));Object[_0x304a2b(0x1a5)](_0x3996a9,'data',{'enumerable':!![],'value':{'operation':_0x304a2b(0x1b9),'appCode':_0x3812cf[_0x304a2b(0x1b2)],'submitted':null,'outcome':_0x304a2b(0x1b0)}});throw _0x3996a9;}}};function a121_0x3b02(_0x433f9f,_0x1cd58a){_0x433f9f=_0x433f9f-0x1a2;const _0x3ccc29=a121_0x3ccc();let _0x3b0205=_0x3ccc29[_0x433f9f];return _0x3b0205;}function buildPreview(_0x5d213f){const _0x59f672=a121_0x46df7d;return{'operation':_0x59f672(0x1b9),'selector':{'appCode':_0x5d213f,'scope':_0x59f672(0x1b8)},'before':null,'after':null,'dryRun':!![],'backend':{'submitted':![],'outcome':_0x59f672(0x1b1)},'warnings':[]};}
1
+ const a121_0x3c1965=a121_0xa623;(function(_0x4726e7,_0x5688df){const _0x3cdd11=a121_0xa623,_0x1df38c=_0x4726e7();while(!![]){try{const _0x8316d2=-parseInt(_0x3cdd11(0xf1))/0x1+-parseInt(_0x3cdd11(0xde))/0x2+parseInt(_0x3cdd11(0xd6))/0x3+-parseInt(_0x3cdd11(0xd3))/0x4*(parseInt(_0x3cdd11(0xe0))/0x5)+-parseInt(_0x3cdd11(0xea))/0x6*(parseInt(_0x3cdd11(0xe1))/0x7)+-parseInt(_0x3cdd11(0xeb))/0x8+parseInt(_0x3cdd11(0xee))/0x9;if(_0x8316d2===_0x5688df)break;else _0x1df38c['push'](_0x1df38c['shift']());}catch(_0x1bcede){_0x1df38c['push'](_0x1df38c['shift']());}}}(a121_0x249a,0xe760b));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{asDryRunResult}from'../../commands/common/dry-run.js';function a121_0x249a(){const _0x438d31=['Backfill\x20or\x20recover\x20all\x20server-supported\x20application\x20metadata','518937jFRLmh','unknown','bool','jobId','POST','status','write','Run\x20with\x20--dry-run\x20first,\x20then\x20add\x20--confirm.','--confirm\x20is\x20required\x20to\x20synchronize\x20all\x20application\x20metadata.','16DFIdWD','boolean','deployment_sync_submit_outcome_unknown','2883984lUbhdx','Deployment\x20sync\x20submission\x20response\x20was\x20unavailable;\x20job\x20creation\x20is\x20unknown.','Submit\x20an\x20administrative\x20metadata\x20backfill\x20or\x20recovery\x20synchronization.','List\x20recent\x20deployment\x20sync\x20jobs\x20before\x20deciding\x20whether\x20to\x20submit\x20again.','confirm','deployment','outcome','not_submitted','1645082dUMRaE','No\x20deployment\x20synchronization\x20was\x20needed\x20for\x20this\x20app.','2215810aBNTXz','21NKxeoB','Submitted\x20deployment\x20synchronization\x20job\x20','validation','Would\x20submit\x20an\x20administrative\x20deployment\x20metadata\x20backfill\x20or\x20recovery\x20job.','/smartapi/data-sync/submit','appCode','sync-all','job','all_server_supported_metadata','550980oVChkI','13175176hNPNHK','not_needed','data','45206172ilbRxr','application_deployment_sync'];a121_0x249a=function(){return _0x438d31;};return a121_0x249a();}function a121_0xa623(_0x5bf76d,_0x557a84){_0x5bf76d=_0x5bf76d-0xd1;const _0x249a40=a121_0x249a();let _0xa623a1=_0x249a40[_0x5bf76d];return _0xa623a1;}import{isPlatformTransportFailure,submitDeploymentMetadataSyncAll}from'../../core/api-client.js';import{CliError,CliErrors}from'../../errors.js';const SUBMIT_PATH=a121_0x3c1965(0xe5),CONFIRM_FLAG={'name':a121_0x3c1965(0xda),'type':a121_0x3c1965(0xd4),'description':'Confirm\x20the\x20administrative\x20backfill\x20or\x20recovery\x20synchronization'};export const deploymentSyncAll={'service':a121_0x3c1965(0xdb),'command':a121_0x3c1965(0xe7),'description':a121_0x3c1965(0xf0),'risk':a121_0x3c1965(0xf7),'strictFlags':!![],'structuredErrors':!![],'confirmationDescription':a121_0x3c1965(0xd8),'flags':[CONFIRM_FLAG,APPCODE_FLAG_OPTIONAL],async 'dryRun'(_0x31c02c){const _0x156886=a121_0x3c1965;return asDryRunResult(buildPreview(_0x31c02c[_0x156886(0xe6)]),{'method':_0x156886(0xf5),'url':SUBMIT_PATH,'description':_0x156886(0xe4)});},async 'execute'(_0x584b64){const _0x19b94d=a121_0x3c1965;if(!_0x584b64[_0x19b94d(0xf3)]('confirm'))throw CliErrors[_0x19b94d(0xe3)](_0x19b94d(0xd2),_0x19b94d(0xd1));try{const _0x1f435f=await submitDeploymentMetadataSyncAll({'appCode':_0x584b64[_0x19b94d(0xe6)]});if(_0x1f435f[_0x19b94d(0xdc)]==='not_needed')return{'ok':!![],'data':{'operation':_0x19b94d(0xef),'appCode':_0x584b64[_0x19b94d(0xe6)],'submitted':![],'outcome':_0x19b94d(0xec)},'message':_0x19b94d(0xdf)};return{'ok':!![],'data':{'operation':_0x19b94d(0xef),'appCode':_0x584b64[_0x19b94d(0xe6)],'submitted':!![],'outcome':'submitted','jobId':_0x1f435f[_0x19b94d(0xe8)][_0x19b94d(0xf4)],'status':_0x1f435f[_0x19b94d(0xe8)][_0x19b94d(0xf6)]},'message':_0x19b94d(0xe2)+_0x1f435f[_0x19b94d(0xe8)]['jobId']+'.'};}catch(_0x10e4ef){if(!isPlatformTransportFailure(_0x10e4ef))throw _0x10e4ef;const _0xee6ffb=new CliError(_0x19b94d(0xd5),0x2,_0x19b94d(0xd7),_0x19b94d(0xd9));Object['defineProperty'](_0xee6ffb,_0x19b94d(0xed),{'enumerable':!![],'value':{'operation':_0x19b94d(0xef),'appCode':_0x584b64[_0x19b94d(0xe6)],'submitted':null,'outcome':_0x19b94d(0xf2)}});throw _0xee6ffb;}}};function buildPreview(_0xdc3af4){const _0x2e516e=a121_0x3c1965;return{'operation':_0x2e516e(0xef),'selector':{'appCode':_0xdc3af4,'scope':_0x2e516e(0xe9)},'before':null,'after':null,'dryRun':!![],'backend':{'submitted':![],'outcome':_0x2e516e(0xdd)},'warnings':[]};}
@@ -1 +1 @@
1
- const a122_0x3079dc=a122_0x2656;(function(_0x50e6fa,_0x4387fc){const _0xf744c0=a122_0x2656,_0x2a5101=_0x50e6fa();while(!![]){try{const _0x1fc121=-parseInt(_0xf744c0(0x122))/0x1*(-parseInt(_0xf744c0(0x123))/0x2)+-parseInt(_0xf744c0(0x11c))/0x3*(-parseInt(_0xf744c0(0x11a))/0x4)+-parseInt(_0xf744c0(0x127))/0x5+parseInt(_0xf744c0(0x120))/0x6+parseInt(_0xf744c0(0x12a))/0x7*(parseInt(_0xf744c0(0x11b))/0x8)+-parseInt(_0xf744c0(0x12d))/0x9*(-parseInt(_0xf744c0(0x11e))/0xa)+-parseInt(_0xf744c0(0x124))/0xb;if(_0x1fc121===_0x4387fc)break;else _0x2a5101['push'](_0x2a5101['shift']());}catch(_0x53fe30){_0x2a5101['push'](_0x2a5101['shift']());}}}(a122_0x1e67,0xdbc4a));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_0x3079dc(0x129),'command':a122_0x3079dc(0x125),'description':'List\x20application\x20deployment\x20synchronization\x20jobs','risk':a122_0x3079dc(0x119),'strictFlags':!![],'structuredErrors':!![],'flags':[{'name':a122_0x3079dc(0x11d),'type':'number','default':0x1,'description':a122_0x3079dc(0x128)},{'name':'page-size','type':'number','default':0xa,'description':'Items\x20per\x20page\x20(maximum\x20100)'},{'name':a122_0x3079dc(0x121),'type':a122_0x3079dc(0x131),'description':a122_0x3079dc(0x117)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0xcb0175){const _0x31003d=a122_0x3079dc;readPaging(_0xcb0175['num'](_0x31003d(0x11d),0x1),_0xcb0175[_0x31003d(0x11f)](_0x31003d(0x116),0xa));},async 'execute'(_0xc0f62b){const _0x1f8596=a122_0x3079dc,{currentPage:_0x220d28,pageSize:_0x171e58}=readPaging(_0xc0f62b[_0x1f8596(0x11f)](_0x1f8596(0x11d),0x1),_0xc0f62b['num'](_0x1f8596(0x116),0xa)),_0x1846aa=_0xc0f62b[_0x1f8596(0x126)](_0x1f8596(0x121))['trim'](),_0x317c62=await listDeploymentMetadataSyncJobs({'appCode':_0xc0f62b[_0x1f8596(0x12b)],'currentPage':_0x220d28,'pageSize':_0x171e58,..._0x1846aa?{'status':_0x1846aa}:{}});return{'ok':!![],'data':{'appCode':_0xc0f62b['appCode'],..._0x317c62},'message':_0x1f8596(0x130)+_0x317c62['items']['length']+'\x20deployment\x20synchronization\x20job(s).'};}};function readPaging(_0x12b855,_0x2371dd){const _0x4af8ec=a122_0x3079dc;if(!Number[_0x4af8ec(0x12f)](_0x12b855)||_0x12b855<0x1)throw CliErrors['validation'](_0x4af8ec(0x12e));if(!Number[_0x4af8ec(0x12f)](_0x2371dd)||_0x2371dd<0x1||_0x2371dd>0x64)throw CliErrors[_0x4af8ec(0x12c)](_0x4af8ec(0x118));return{'currentPage':_0x12b855,'pageSize':_0x2371dd};}function a122_0x2656(_0x59008f,_0x3530ac){_0x59008f=_0x59008f-0x116;const _0x1e67e8=a122_0x1e67();let _0x26569b=_0x1e67e8[_0x59008f];return _0x26569b;}function a122_0x1e67(){const _0x389d36=['80rFiUuL','num','3998406vqQHCc','status','26XxVwGU','20266fwFVdM','20316582YvIDQa','sync-jobs','str','6921780IBHugZ','Page\x20number','deployment','789019okXWIF','appCode','validation','1585863nrZJUD','--current-page\x20must\x20be\x20a\x20positive\x20integer.','isSafeInteger','Found\x20','string','page-size','Optional\x20server-defined\x20job\x20status\x20filter','--page-size\x20must\x20be\x20an\x20integer\x20from\x201\x20to\x20100.','read','23816fpLctI','120ZxTekt','51tGwpvV','current-page'];a122_0x1e67=function(){return _0x389d36;};return a122_0x1e67();}
1
+ const a122_0x4ea57b=a122_0xcd8e;(function(_0x3715a9,_0x264a03){const _0x219806=a122_0xcd8e,_0x206b2d=_0x3715a9();while(!![]){try{const _0x137b40=-parseInt(_0x219806(0x163))/0x1*(-parseInt(_0x219806(0x14d))/0x2)+-parseInt(_0x219806(0x150))/0x3*(parseInt(_0x219806(0x159))/0x4)+parseInt(_0x219806(0x14b))/0x5+-parseInt(_0x219806(0x15d))/0x6*(-parseInt(_0x219806(0x143))/0x7)+parseInt(_0x219806(0x14e))/0x8*(-parseInt(_0x219806(0x144))/0x9)+-parseInt(_0x219806(0x153))/0xa+parseInt(_0x219806(0x151))/0xb*(parseInt(_0x219806(0x157))/0xc);if(_0x137b40===_0x264a03)break;else _0x206b2d['push'](_0x206b2d['shift']());}catch(_0x36f85d){_0x206b2d['push'](_0x206b2d['shift']());}}}(a122_0x3418,0x19ae9));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{listDeploymentMetadataSyncJobs}from'../../core/api-client.js';function a122_0x3418(){const _0x585aa8=['396yKTVVo','num','96760hNJbuP','isSafeInteger','\x20deployment\x20synchronization\x20job(s).','List\x20application\x20deployment\x20synchronization\x20jobs','22068iOTvAm','current-page','17048OEMNPk','str','--page-size\x20must\x20be\x20an\x20integer\x20from\x201\x20to\x20100.','read','6546tivGzP','Optional\x20server-defined\x20job\x20status\x20filter','deployment','Found\x20','appCode','status','35346qeaddW','35YQbCcr','88461YtcSIm','validation','trim','page-size','Page\x20number','sync-jobs','length','811820YHeLyc','number','6HZYyOV','48JNVgxf','Items\x20per\x20page\x20(maximum\x20100)','117pqUPMu'];a122_0x3418=function(){return _0x585aa8;};return a122_0x3418();}function a122_0xcd8e(_0x5a1635,_0x470acf){_0x5a1635=_0x5a1635-0x143;const _0x3418ae=a122_0x3418();let _0xcd8eed=_0x3418ae[_0x5a1635];return _0xcd8eed;}import{CliErrors}from'../../errors.js';export const deploymentSyncJobs={'service':a122_0x4ea57b(0x15f),'command':a122_0x4ea57b(0x149),'description':a122_0x4ea57b(0x156),'risk':a122_0x4ea57b(0x15c),'strictFlags':!![],'structuredErrors':!![],'flags':[{'name':a122_0x4ea57b(0x158),'type':a122_0x4ea57b(0x14c),'default':0x1,'description':a122_0x4ea57b(0x148)},{'name':a122_0x4ea57b(0x147),'type':a122_0x4ea57b(0x14c),'default':0xa,'description':a122_0x4ea57b(0x14f)},{'name':a122_0x4ea57b(0x162),'type':'string','description':a122_0x4ea57b(0x15e)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x133a98){const _0xef3a30=a122_0x4ea57b;readPaging(_0x133a98[_0xef3a30(0x152)]('current-page',0x1),_0x133a98[_0xef3a30(0x152)]('page-size',0xa));},async 'execute'(_0x561ca3){const _0x11d82b=a122_0x4ea57b,{currentPage:_0x35c8fa,pageSize:_0x4a77d5}=readPaging(_0x561ca3[_0x11d82b(0x152)](_0x11d82b(0x158),0x1),_0x561ca3['num']('page-size',0xa)),_0x31397b=_0x561ca3[_0x11d82b(0x15a)](_0x11d82b(0x162))[_0x11d82b(0x146)](),_0x488a30=await listDeploymentMetadataSyncJobs({'appCode':_0x561ca3[_0x11d82b(0x161)],'currentPage':_0x35c8fa,'pageSize':_0x4a77d5,..._0x31397b?{'status':_0x31397b}:{}});return{'ok':!![],'data':{'appCode':_0x561ca3[_0x11d82b(0x161)],..._0x488a30},'message':_0x11d82b(0x160)+_0x488a30['items'][_0x11d82b(0x14a)]+_0x11d82b(0x155)};}};function readPaging(_0x185801,_0x27c82b){const _0x5efc4b=a122_0x4ea57b;if(!Number[_0x5efc4b(0x154)](_0x185801)||_0x185801<0x1)throw CliErrors[_0x5efc4b(0x145)]('--current-page\x20must\x20be\x20a\x20positive\x20integer.');if(!Number[_0x5efc4b(0x154)](_0x27c82b)||_0x27c82b<0x1||_0x27c82b>0x64)throw CliErrors[_0x5efc4b(0x145)](_0x5efc4b(0x15b));return{'currentPage':_0x185801,'pageSize':_0x27c82b};}
@@ -1 +1 @@
1
- function a123_0x4995(_0x114160,_0x1b3400){_0x114160=_0x114160-0x107;const _0x44a725=a123_0x44a7();let _0x4995de=_0x44a725[_0x114160];return _0x4995de;}const a123_0x398ed7=a123_0x4995;(function(_0x1d495c,_0x148a92){const _0x109c69=a123_0x4995,_0x3a3886=_0x1d495c();while(!![]){try{const _0x109cc6=-parseInt(_0x109c69(0x113))/0x1+-parseInt(_0x109c69(0x122))/0x2+parseInt(_0x109c69(0x10b))/0x3*(-parseInt(_0x109c69(0x10a))/0x4)+-parseInt(_0x109c69(0x120))/0x5*(parseInt(_0x109c69(0x110))/0x6)+parseInt(_0x109c69(0x107))/0x7+parseInt(_0x109c69(0x11b))/0x8+-parseInt(_0x109c69(0x115))/0x9*(-parseInt(_0x109c69(0x129))/0xa);if(_0x109cc6===_0x148a92)break;else _0x3a3886['push'](_0x3a3886['shift']());}catch(_0x3e56ac){_0x3a3886['push'](_0x3a3886['shift']());}}}(a123_0x44a7,0xe73fd));import{getDeploymentMetadataSyncStatus}from'../../core/api-client.js';function a123_0x44a7(){const _0x12a5e7=['bizType','3065508dOFHEI','map','has','validation','filter','Preserved\x20server-defined\x20status\x20','job-id','30XjQVjN','isSafeInteger','status','1927436PNkTCv','\x20is\x20','results','192JNugXC','15696qOyrZu','Get\x20application\x20deployment\x20synchronization\x20job\x20status','SUCCESS','number','num','12yAzEPa','PENDING','RUNNING','834754Etcccd','Deployment\x20synchronization\x20job\x20','12503727RCAfTx','sync-status','length','read',';\x20terminal\x20state\x20is\x20unknown\x20to\x20this\x20CLI\x20version.','FAILED','7439120sDAREL','PARTIAL_SUCCESS','reduce','Deployment\x20synchronization\x20job\x20ID','action','4518265zNtoOF'];a123_0x44a7=function(){return _0x12a5e7;};return a123_0x44a7();}import{CliErrors}from'../../errors.js';const TERMINAL_STATUSES=new Set([a123_0x398ed7(0x10d),a123_0x398ed7(0x11c),a123_0x398ed7(0x11a)]),ACTIVE_STATUSES=new Set([a123_0x398ed7(0x111),a123_0x398ed7(0x112)]);export const deploymentSyncStatus={'service':'deployment','command':a123_0x398ed7(0x116),'description':a123_0x398ed7(0x10c),'risk':a123_0x398ed7(0x118),'requiresAppCode':!![],'strictFlags':!![],'structuredErrors':!![],'flags':[{'name':a123_0x398ed7(0x128),'type':a123_0x398ed7(0x10e),'required':!![],'description':a123_0x398ed7(0x11e)}],async 'validate'(_0x214622){const _0x4b721e=a123_0x398ed7;readJobId(_0x214622[_0x4b721e(0x10f)](_0x4b721e(0x128)));},async 'execute'(_0x280e6a){const _0x4f1308=a123_0x398ed7,_0x4d07ab=readJobId(_0x280e6a[_0x4f1308(0x10f)](_0x4f1308(0x128))),_0x399e3e=await getDeploymentMetadataSyncStatus({'jobId':_0x4d07ab,'appCode':_0x280e6a['appCode']}),_0x1cf138=TERMINAL_STATUSES[_0x4f1308(0x124)](_0x399e3e['status'])?!![]:ACTIVE_STATUSES[_0x4f1308(0x124)](_0x399e3e['status'])?![]:null,_0x2d3eb3=countBy(_0x399e3e[_0x4f1308(0x109)][_0x4f1308(0x123)](_0x362753=>_0x362753[_0x4f1308(0x121)])),_0x32a58c=countBy(_0x399e3e[_0x4f1308(0x109)][_0x4f1308(0x123)](_0x20ddbf=>_0x20ddbf[_0x4f1308(0x11f)])),_0x2dbbc6=_0x1cf138===null?[_0x4f1308(0x127)+_0x399e3e[_0x4f1308(0x12b)]+_0x4f1308(0x119)]:[];return{'ok':!![],'data':{'job':_0x399e3e,'isTerminal':_0x1cf138,'summary':{'total':_0x399e3e[_0x4f1308(0x109)]['length'],'failed':_0x399e3e[_0x4f1308(0x109)][_0x4f1308(0x126)](_0x1a6bb9=>_0x1a6bb9[_0x4f1308(0x11f)]===_0x4f1308(0x11a))[_0x4f1308(0x117)],'byBizType':_0x2d3eb3,'byAction':_0x32a58c},'warnings':_0x2dbbc6},'message':_0x4f1308(0x114)+_0x4d07ab+_0x4f1308(0x108)+_0x399e3e[_0x4f1308(0x12b)]+'.'};}};function readJobId(_0x95faa0){const _0x18869c=a123_0x398ed7;if(!Number[_0x18869c(0x12a)](_0x95faa0)||_0x95faa0<=0x0)throw CliErrors[_0x18869c(0x125)]('--job-id\x20must\x20be\x20a\x20positive\x20integer.');return _0x95faa0;}function countBy(_0x36d42d){const _0x4922c9=a123_0x398ed7;return _0x36d42d[_0x4922c9(0x11d)]((_0x54f631,_0x170b74)=>{return _0x54f631[_0x170b74]=(_0x54f631[_0x170b74]??0x0)+0x1,_0x54f631;},{});}
1
+ function a123_0x5c6b(_0x23af3f,_0x54fcc0){_0x23af3f=_0x23af3f-0x7e;const _0x1d05e0=a123_0x1d05();let _0x5c6b69=_0x1d05e0[_0x23af3f];return _0x5c6b69;}const a123_0x31105a=a123_0x5c6b;(function(_0x10f4e5,_0x5c16b8){const _0x244799=a123_0x5c6b,_0x2ec6fc=_0x10f4e5();while(!![]){try{const _0x281ddb=parseInt(_0x244799(0x8d))/0x1*(-parseInt(_0x244799(0x9f))/0x2)+-parseInt(_0x244799(0x7e))/0x3*(parseInt(_0x244799(0x8c))/0x4)+parseInt(_0x244799(0x8e))/0x5+-parseInt(_0x244799(0xa3))/0x6*(-parseInt(_0x244799(0x8b))/0x7)+-parseInt(_0x244799(0x91))/0x8*(parseInt(_0x244799(0xa0))/0x9)+-parseInt(_0x244799(0x94))/0xa+parseInt(_0x244799(0x9e))/0xb;if(_0x281ddb===_0x5c16b8)break;else _0x2ec6fc['push'](_0x2ec6fc['shift']());}catch(_0x2b3524){_0x2ec6fc['push'](_0x2ec6fc['shift']());}}}(a123_0x1d05,0xa4b2d));function a123_0x1d05(){const _0x45d75c=['sync-status','filter','Deployment\x20synchronization\x20job\x20ID','num','action',';\x20terminal\x20state\x20is\x20unknown\x20to\x20this\x20CLI\x20version.','PARTIAL_SUCCESS','25706395HdVFkL','86sCTRLp','10559367MiBiZW','length','PENDING','24798aaNXCm','3SNlYmy','SUCCESS','--job-id\x20must\x20be\x20a\x20positive\x20integer.','status','RUNNING','deployment','results','bizType','number','job-id','isSafeInteger','map','has','910nfipJW','1046244NKHvBm','9014fUErPl','1778290gVMMbe','validation','Deployment\x20synchronization\x20job\x20','8IOnwKq','appCode','Preserved\x20server-defined\x20status\x20','7328620XFUhHZ','\x20is\x20','FAILED'];a123_0x1d05=function(){return _0x45d75c;};return a123_0x1d05();}import{getDeploymentMetadataSyncStatus}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const TERMINAL_STATUSES=new Set([a123_0x31105a(0x7f),a123_0x31105a(0x9d),a123_0x31105a(0x96)]),ACTIVE_STATUSES=new Set([a123_0x31105a(0xa2),a123_0x31105a(0x82)]);export const deploymentSyncStatus={'service':a123_0x31105a(0x83),'command':a123_0x31105a(0x97),'description':'Get\x20application\x20deployment\x20synchronization\x20job\x20status','risk':'read','requiresAppCode':!![],'strictFlags':!![],'structuredErrors':!![],'flags':[{'name':a123_0x31105a(0x87),'type':a123_0x31105a(0x86),'required':!![],'description':a123_0x31105a(0x99)}],async 'validate'(_0x5cbce4){const _0x56cbf2=a123_0x31105a;readJobId(_0x5cbce4[_0x56cbf2(0x9a)](_0x56cbf2(0x87)));},async 'execute'(_0x43fc80){const _0x255b31=a123_0x31105a,_0x44b28a=readJobId(_0x43fc80[_0x255b31(0x9a)]('job-id')),_0x1b51e7=await getDeploymentMetadataSyncStatus({'jobId':_0x44b28a,'appCode':_0x43fc80[_0x255b31(0x92)]}),_0xbed430=TERMINAL_STATUSES[_0x255b31(0x8a)](_0x1b51e7[_0x255b31(0x81)])?!![]:ACTIVE_STATUSES['has'](_0x1b51e7[_0x255b31(0x81)])?![]:null,_0x243643=countBy(_0x1b51e7['results'][_0x255b31(0x89)](_0x18cafc=>_0x18cafc[_0x255b31(0x85)])),_0x1c2396=countBy(_0x1b51e7[_0x255b31(0x84)][_0x255b31(0x89)](_0x2daab4=>_0x2daab4[_0x255b31(0x9b)])),_0x5c46ed=_0xbed430===null?[_0x255b31(0x93)+_0x1b51e7['status']+_0x255b31(0x9c)]:[];return{'ok':!![],'data':{'job':_0x1b51e7,'isTerminal':_0xbed430,'summary':{'total':_0x1b51e7[_0x255b31(0x84)][_0x255b31(0xa1)],'failed':_0x1b51e7[_0x255b31(0x84)][_0x255b31(0x98)](_0xdffa1b=>_0xdffa1b[_0x255b31(0x9b)]===_0x255b31(0x96))[_0x255b31(0xa1)],'byBizType':_0x243643,'byAction':_0x1c2396},'warnings':_0x5c46ed},'message':_0x255b31(0x90)+_0x44b28a+_0x255b31(0x95)+_0x1b51e7['status']+'.'};}};function readJobId(_0x406d38){const _0x407c50=a123_0x31105a;if(!Number[_0x407c50(0x88)](_0x406d38)||_0x406d38<=0x0)throw CliErrors[_0x407c50(0x8f)](_0x407c50(0x80));return _0x406d38;}function countBy(_0x22a1b9){return _0x22a1b9['reduce']((_0x33c3f4,_0x2fad32)=>{return _0x33c3f4[_0x2fad32]=(_0x33c3f4[_0x2fad32]??0x0)+0x1,_0x33c3f4;},{});}
@@ -1 +1 @@
1
- const a124_0x20a009=a124_0x4d52;function a124_0x4d52(_0x2f9c4f,_0x1edaa8){_0x2f9c4f=_0x2f9c4f-0x11c;const _0x5ddc22=a124_0x5ddc();let _0x4d52e8=_0x5ddc22[_0x2f9c4f];return _0x4d52e8;}(function(_0x3cad0c,_0x4d919b){const _0x5748df=a124_0x4d52,_0x5a23dd=_0x3cad0c();while(!![]){try{const _0x4b8fb6=parseInt(_0x5748df(0x198))/0x1*(parseInt(_0x5748df(0x13f))/0x2)+-parseInt(_0x5748df(0x152))/0x3+parseInt(_0x5748df(0x19e))/0x4*(-parseInt(_0x5748df(0x122))/0x5)+parseInt(_0x5748df(0x18e))/0x6+-parseInt(_0x5748df(0x192))/0x7+parseInt(_0x5748df(0x177))/0x8*(parseInt(_0x5748df(0x183))/0x9)+parseInt(_0x5748df(0x1a3))/0xa*(parseInt(_0x5748df(0x128))/0xb);if(_0x4b8fb6===_0x4d919b)break;else _0x5a23dd['push'](_0x5a23dd['shift']());}catch(_0x4fa648){_0x5a23dd['push'](_0x5a23dd['shift']());}}}(a124_0x5ddc,0x6ccea));import a124_0x34f24d from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';import{getActiveRegion,getApiDomain,getAppDomain,getKbDomain,getKbServiceDomain,getSkillDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags,initGlobalEnvironment,inspectCliConfigJsonFile,loadRawConfigLayers}from'../context.js';import{getIsSessionValid}from'../auth/is-session-valid.js';import{getCookie}from'../auth/get-cookie.js';import{buildAppDoctorFields}from'../config/schema.js';import{resolveEffectiveRegion}from'../config/region-config.js';import{inspectBuiltinSkill}from'../skills/builtin-skill.js';import{DEFAULT_LOVRABET_REGION,isInvalidLovrabetRegion}from'../constant/region.js';function describeRegionValue(_0x4b41cc){const _0x5e788f=a124_0x4d52;return typeof _0x4b41cc===_0x5e788f(0x146)?JSON[_0x5e788f(0x15f)](_0x4b41cc):'<'+(_0x4b41cc===null?'null':typeof _0x4b41cc)+'>';}function a124_0x5ddc(){const _0x42cfc4=['repairCommand','(default)','Global','stringify','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','arch','Project','\x20\x20app\x20locale:\x20\x20\x20\x20\x20\x20','\x20\x20Legacy\x20inherit:\x20\x20\x20','inherit','global','reason','\x20\x20Repair\x20project:\x20\x20','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','region','green','apiDir','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','(default:\x20','\x20config','state','\x20config\x20delete\x20inherit','defaultApp','\x20\x20kbDomain:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Repair\x20project:\x20\x20\x20','apps','8TOYXSx','✗\x20Invalid\x20','label','\x20(invalid)','push','empty','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','projectConfig','✓\x20Valid\x20JSON','filter','\x20config\x20delete\x20region','explicitAppName','4608072tWRBWz','source','appcode','repeat','present','currentApp','\x20←\x20current','\x20\x20API\x20Endpoints','\x20config\x20delete\x20routing','(none)','status','2447088lLdkNv','join','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','prototype','3097311yBWmUl','\x20\x20appDomain:\x20\x20\x20\x20\x20\x20\x20','\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20+\x20','not\x20configured','riskLevel','2TjhePU','accessKey','Repair\x20','log','\x20\x20Config\x20JSON','\x20\x20runtimeDomain:\x20\x20\x20','22844QfAcpP','\x20\x20kbServiceDomain:\x20','\x20\x20Merged\x20Config','pageSize','✗\x20Invalid\x20JSON','50zjNLgz','\x20config\x20delete\x20inherit\x20--global','bold','✗\x20Not\x20logged\x20in','\x20\x20Installed\x20Path:\x20\x20','env','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','✗\x20Invalid','missing','red','padEnd','includes','locale','version','packageVersion','\x20\x20Repair\x20global:\x20\x20\x20\x20','globalConfig','.region\x20to\x20cn\x20or\x20id\x20in\x20','545NkGfsE','\x20\x20Skill\x20Version:\x20\x20\x20','appCode','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','length','regionConfiguredValue','2611059bKHhSG','skillVersion','object','call','current','Unavailable\x20until\x20routing\x20configuration\x20is\x20repaired','Not\x20checked\x20until\x20routing\x20configuration\x20is\x20repaired','message','cookie','\x20app\x20\x22','project','\x20\x20explicitAppName:\x20','\x20\x20Built-in\x20Skill','(unknown)','raw','\x20\x20Country/Region\x20Configuration','\x20doctor','unknown','(set\x20via\x20file,\x20length=','\x20\x20─','gray','hasOwnProperty','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','31672ienIHY','\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(not\x20found)','(set,\x20length=','toLowerCase','\x20\x20\x20\x20region:\x20\x20\x20\x20\x20','\x20(default)','string','ignored\x20in\x20','read','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','✗\x20Expired','(missing)','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Auth','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','routing','regionSource','1883181LvRNhn','\x20\x20Apps','yellow','\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','value','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','\x20\x20Config\x20Files','installedPath','Set\x20apps.','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20'];a124_0x5ddc=function(){return _0x42cfc4;};return a124_0x5ddc();}async function execute(_0x38c1b2){const _0x1d8690=a124_0x4d52,_0x2fc927=GIT_COMMIT!==_0x1d8690(0x139)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME['slice'](0x0,0xa)+')':VERSION,_0x3558b3=buildConfigFromFlags({}),_0x54997d=getCookie();let _0x5ca09d;try{await initGlobalEnvironment(_0x3558b3);}catch(_0x1eaddf){_0x5ca09d=_0x1eaddf instanceof Error?_0x1eaddf:new Error(String(_0x1eaddf));}console[_0x1d8690(0x19b)](),console[_0x1d8690(0x19b)](a124_0x34f24d['bold'](CLI_BIN_NAME+_0x1d8690(0x138))),console['log'](a124_0x34f24d[_0x1d8690(0x13c)]('─'[_0x1d8690(0x186)](0x32))),console[_0x1d8690(0x19b)]('\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20'+_0x2fc927),console[_0x1d8690(0x19b)]('\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+process[_0x1d8690(0x11d)]),console[_0x1d8690(0x19b)](_0x1d8690(0x14f)+process['platform']+'\x20'+process[_0x1d8690(0x162)]);const _0x47b963=inspectBuiltinSkill();console[_0x1d8690(0x19b)](),console['log'](a124_0x34f24d[_0x1d8690(0x1a5)](_0x1d8690(0x134))),console[_0x1d8690(0x19b)](a124_0x34f24d[_0x1d8690(0x13c)](_0x1d8690(0x13b)[_0x1d8690(0x186)](0x1e)));const _0x15a4b6=_0x47b963[_0x1d8690(0x171)]===_0x1d8690(0x12c)?a124_0x34f24d['green']('✓\x20'+_0x47b963[_0x1d8690(0x171)]):a124_0x34f24d[_0x1d8690(0x1ac)]('✗\x20'+_0x47b963[_0x1d8690(0x171)]);console[_0x1d8690(0x19b)]('\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x15a4b6),console[_0x1d8690(0x19b)]('\x20\x20Package\x20Version:\x20'+_0x47b963[_0x1d8690(0x11e)]),console[_0x1d8690(0x19b)](_0x1d8690(0x123)+(_0x47b963[_0x1d8690(0x129)]||a124_0x34f24d[_0x1d8690(0x13c)](_0x1d8690(0x135)))),console[_0x1d8690(0x19b)](_0x1d8690(0x1a7)+(_0x47b963[_0x1d8690(0x159)]||a124_0x34f24d[_0x1d8690(0x13c)]('(not\x20found)')));if(_0x47b963[_0x1d8690(0x168)])console[_0x1d8690(0x19b)](_0x1d8690(0x140)+_0x47b963[_0x1d8690(0x168)]);_0x47b963[_0x1d8690(0x171)]!==_0x1d8690(0x12c)&&console[_0x1d8690(0x19b)](_0x1d8690(0x155)+_0x47b963[_0x1d8690(0x15c)]);console[_0x1d8690(0x19b)](),console[_0x1d8690(0x19b)](a124_0x34f24d[_0x1d8690(0x1a5)](_0x1d8690(0x158))),console[_0x1d8690(0x19b)](a124_0x34f24d['gray'](_0x1d8690(0x13b)['repeat'](0x1e)));const _0x588de6=getGlobalConfigPath(),_0x2cd40c=getProjectConfigPath();console[_0x1d8690(0x19b)](_0x1d8690(0x125)+(_0x588de6||a124_0x34f24d['gray'](_0x1d8690(0x141)))),console[_0x1d8690(0x19b)]('\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x2cd40c||a124_0x34f24d[_0x1d8690(0x13c)](_0x1d8690(0x141)))),console[_0x1d8690(0x19b)](),console[_0x1d8690(0x19b)](a124_0x34f24d['bold'](_0x1d8690(0x19c))),console[_0x1d8690(0x19b)](a124_0x34f24d[_0x1d8690(0x13c)](_0x1d8690(0x13b)['repeat'](0x1e)));const _0x3100cc=(_0x549fbd,_0x4bd2c1)=>{const _0x1fde71=_0x1d8690;if(!_0x4bd2c1){console[_0x1fde71(0x19b)]('\x20\x20'+_0x549fbd[_0x1fde71(0x1ad)](0x11)+'\x20'+a124_0x34f24d[_0x1fde71(0x13c)]('(no\x20file)'));return;}const _0x549d91=inspectCliConfigJsonFile(_0x4bd2c1);if(_0x549d91[_0x1fde71(0x18d)]==='ok')console[_0x1fde71(0x19b)]('\x20\x20'+_0x549fbd['padEnd'](0x11)+'\x20'+a124_0x34f24d[_0x1fde71(0x16c)](_0x1fde71(0x17f)));else{if(_0x549d91['status']===_0x1fde71(0x17c))console['log']('\x20\x20'+_0x549fbd['padEnd'](0x11)+'\x20'+a124_0x34f24d['yellow']('⚠\x20Empty\x20(treated\x20as\x20{})'));else _0x549d91[_0x1fde71(0x18d)]===_0x1fde71(0x1ab)?console[_0x1fde71(0x19b)]('\x20\x20'+_0x549fbd['padEnd'](0x11)+'\x20'+a124_0x34f24d[_0x1fde71(0x13c)](_0x1fde71(0x14b))):(console['log']('\x20\x20'+_0x549fbd[_0x1fde71(0x1ad)](0x11)+'\x20'+a124_0x34f24d[_0x1fde71(0x1ac)](_0x1fde71(0x1a2))),console[_0x1fde71(0x19b)]('\x20\x20'+''[_0x1fde71(0x1ad)](0x11)+'\x20'+a124_0x34f24d['red'](_0x549d91[_0x1fde71(0x12f)])));}};_0x3100cc('Global',_0x588de6),_0x3100cc(_0x1d8690(0x163),_0x2cd40c);const _0x3eca7c=loadRawConfigLayers(),_0x47ee17=[{'label':_0x1d8690(0x163),'value':_0x3eca7c[_0x1d8690(0x17e)][_0x1d8690(0x16b)],'present':Object[_0x1d8690(0x191)][_0x1d8690(0x13d)][_0x1d8690(0x12b)](_0x3eca7c[_0x1d8690(0x17e)],_0x1d8690(0x16b)),'repairCommand':CLI_BIN_NAME+_0x1d8690(0x181)},{'label':_0x1d8690(0x15e),'value':_0x3eca7c[_0x1d8690(0x120)]['region'],'present':Object['prototype']['hasOwnProperty'][_0x1d8690(0x12b)](_0x3eca7c[_0x1d8690(0x120)],'region'),'repairCommand':CLI_BIN_NAME+'\x20config\x20delete\x20region\x20--global'}][_0x1d8690(0x180)](_0x95854d=>_0x95854d[_0x1d8690(0x187)]&&isInvalidLovrabetRegion(_0x95854d[_0x1d8690(0x156)]));for(const [_0x49d61e,_0x19886e]of[[_0x1d8690(0x163),_0x3eca7c[_0x1d8690(0x17e)]],[_0x1d8690(0x15e),_0x3eca7c['globalConfig']]]){const _0x2167ea=_0x19886e['apps']&&typeof _0x19886e[_0x1d8690(0x176)]===_0x1d8690(0x12a)?_0x19886e[_0x1d8690(0x176)]:{};for(const [_0x2836b0,_0x1647ef]of Object['entries'](_0x2167ea)){if(!_0x1647ef||typeof _0x1647ef!==_0x1d8690(0x12a)||!Object[_0x1d8690(0x191)][_0x1d8690(0x13d)][_0x1d8690(0x12b)](_0x1647ef,'region'))continue;isInvalidLovrabetRegion(_0x1647ef[_0x1d8690(0x16b)])&&_0x47ee17[_0x1d8690(0x17b)]({'label':_0x49d61e+_0x1d8690(0x131)+_0x2836b0+'\x22','value':_0x1647ef[_0x1d8690(0x16b)],'present':!![],'repairCommand':_0x1d8690(0x15a)+_0x2836b0+_0x1d8690(0x121)+_0x49d61e[_0x1d8690(0x143)]()+_0x1d8690(0x170)});}}if(_0x47ee17[_0x1d8690(0x126)]>0x0){console[_0x1d8690(0x19b)](),console[_0x1d8690(0x19b)](a124_0x34f24d['bold'](_0x1d8690(0x137))),console['log'](a124_0x34f24d[_0x1d8690(0x13c)](_0x1d8690(0x13b)[_0x1d8690(0x186)](0x1e)));for(const _0x5be250 of _0x47ee17){console[_0x1d8690(0x19b)]('\x20\x20'+_0x5be250[_0x1d8690(0x179)][_0x1d8690(0x1ad)](0x11)+'\x20'+a124_0x34f24d[_0x1d8690(0x1ac)](_0x1d8690(0x178)+describeRegionValue(_0x5be250[_0x1d8690(0x156)]))),console[_0x1d8690(0x19b)]('\x20\x20'+(_0x1d8690(0x19a)+_0x5be250[_0x1d8690(0x179)]['toLowerCase']()+':')[_0x1d8690(0x1ad)](0x10)+'\x20'+_0x5be250[_0x1d8690(0x15c)]);}}const _0x6a63d9=[Object['prototype'][_0x1d8690(0x13d)][_0x1d8690(0x12b)](_0x3eca7c[_0x1d8690(0x120)],_0x1d8690(0x166))?'global':null,Object[_0x1d8690(0x191)]['hasOwnProperty']['call'](_0x3eca7c['projectConfig'],_0x1d8690(0x166))?'project':null][_0x1d8690(0x180)](Boolean);_0x6a63d9[_0x1d8690(0x126)]>0x0&&(console[_0x1d8690(0x19b)](_0x1d8690(0x165)+a124_0x34f24d[_0x1d8690(0x154)](_0x1d8690(0x147)+_0x6a63d9[_0x1d8690(0x18f)](_0x1d8690(0x195))+_0x1d8690(0x170))),_0x6a63d9[_0x1d8690(0x1ae)](_0x1d8690(0x132))&&console['log'](_0x1d8690(0x175)+CLI_BIN_NAME+_0x1d8690(0x172)),_0x6a63d9[_0x1d8690(0x1ae)](_0x1d8690(0x167))&&console[_0x1d8690(0x19b)](_0x1d8690(0x11f)+CLI_BIN_NAME+_0x1d8690(0x1a4)));const _0x50cfb5=isInvalidLovrabetRegion(_0x3558b3[_0x1d8690(0x127)]??_0x3558b3['raw']?.[_0x1d8690(0x16b)]);_0x5ca09d&&!_0x50cfb5&&(console[_0x1d8690(0x19b)](),console[_0x1d8690(0x19b)](a124_0x34f24d[_0x1d8690(0x1a5)]('\x20\x20Routing\x20Configuration')),console['log'](a124_0x34f24d[_0x1d8690(0x13c)](_0x1d8690(0x13b)[_0x1d8690(0x186)](0x1e))),console['log'](_0x1d8690(0x161)+a124_0x34f24d[_0x1d8690(0x1ac)](_0x1d8690(0x1aa))),console[_0x1d8690(0x19b)]('\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x5ca09d['message']),Object[_0x1d8690(0x191)]['hasOwnProperty'][_0x1d8690(0x12b)](_0x3eca7c[_0x1d8690(0x17e)],_0x1d8690(0x150))&&console[_0x1d8690(0x19b)](_0x1d8690(0x169)+CLI_BIN_NAME+_0x1d8690(0x18b)),Object[_0x1d8690(0x191)][_0x1d8690(0x13d)][_0x1d8690(0x12b)](_0x3eca7c[_0x1d8690(0x120)],_0x1d8690(0x150))&&console['log']('\x20\x20Repair\x20global:\x20\x20\x20'+CLI_BIN_NAME+'\x20config\x20delete\x20routing\x20--global'));console[_0x1d8690(0x19b)](),console[_0x1d8690(0x19b)](a124_0x34f24d[_0x1d8690(0x1a5)](_0x1d8690(0x1a0))),console[_0x1d8690(0x19b)](a124_0x34f24d[_0x1d8690(0x13c)](_0x1d8690(0x13b)[_0x1d8690(0x186)](0x1e))),console[_0x1d8690(0x19b)](_0x1d8690(0x160)+(_0x3558b3[_0x1d8690(0x124)]||a124_0x34f24d[_0x1d8690(0x1ac)]('(not\x20set)')));const _0x28c4fc=_0x50cfb5?a124_0x34f24d[_0x1d8690(0x1ac)](describeRegionValue(_0x3558b3[_0x1d8690(0x127)]??_0x3558b3[_0x1d8690(0x136)]?.['region'])+_0x1d8690(0x17a)):(_0x3558b3[_0x1d8690(0x16b)]??DEFAULT_LOVRABET_REGION)+'\x20('+(_0x3558b3[_0x1d8690(0x151)]??'default')+')';console[_0x1d8690(0x19b)](_0x1d8690(0x194)+_0x28c4fc),console['log'](_0x1d8690(0x149)+_0x3558b3[_0x1d8690(0x1a8)]),console[_0x1d8690(0x19b)](_0x1d8690(0x164)+_0x3558b3[_0x1d8690(0x11c)]),console[_0x1d8690(0x19b)](_0x1d8690(0x16a)+_0x3558b3[_0x1d8690(0x16d)]),console[_0x1d8690(0x19b)](_0x1d8690(0x15b)+(_0x3558b3[_0x1d8690(0x173)]||a124_0x34f24d[_0x1d8690(0x13c)](_0x1d8690(0x18c)))),console['log'](_0x1d8690(0x157)+(_0x3558b3['currentApp']||a124_0x34f24d[_0x1d8690(0x13c)]('(none)'))),console['log'](_0x1d8690(0x133)+(_0x3558b3[_0x1d8690(0x182)]||a124_0x34f24d[_0x1d8690(0x13c)](_0x1d8690(0x18c)))),console[_0x1d8690(0x19b)](_0x1d8690(0x14d)+(_0x3558b3['format']||a124_0x34f24d['gray'](_0x1d8690(0x16f)+DEFAULT_CONFIG_VALUES['format']+')'))),console['log']('\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x3558b3[_0x1d8690(0x1a1)]??a124_0x34f24d[_0x1d8690(0x13c)](_0x1d8690(0x15d)))),console[_0x1d8690(0x19b)](_0x1d8690(0x1a9)+_0x3558b3[_0x1d8690(0x197)]),console[_0x1d8690(0x19b)](_0x1d8690(0x13e)+_0x3558b3['verbose']),console['log'](_0x1d8690(0x17d)+(_0x3558b3[_0x1d8690(0x130)]?a124_0x34f24d['green'](_0x1d8690(0x142)+_0x3558b3['cookie']['length']+')'):_0x54997d?a124_0x34f24d[_0x1d8690(0x16c)](_0x1d8690(0x13a)+_0x54997d['length']+')'):a124_0x34f24d[_0x1d8690(0x13c)](_0x1d8690(0x18c))));const _0x373754=Object['keys'](_0x3558b3[_0x1d8690(0x176)]);if(_0x373754[_0x1d8690(0x126)]>0x0){console[_0x1d8690(0x19b)](),console[_0x1d8690(0x19b)](a124_0x34f24d[_0x1d8690(0x1a5)](_0x1d8690(0x153))),console[_0x1d8690(0x19b)](a124_0x34f24d[_0x1d8690(0x13c)]('\x20\x20─'[_0x1d8690(0x186)](0x1e)));for(const _0x72b983 of _0x373754){const _0x13d6e5=_0x3558b3[_0x1d8690(0x176)][_0x72b983],_0x45ee11=_0x72b983===_0x3558b3[_0x1d8690(0x173)],_0x1c5f67=_0x72b983===_0x3558b3[_0x1d8690(0x188)],_0x34a4ed=_0x1c5f67?a124_0x34f24d[_0x1d8690(0x16c)](_0x1d8690(0x189)):'',_0x5128fc=_0x45ee11?_0x1d8690(0x145):'';console[_0x1d8690(0x19b)]('\x20\x20'+_0x72b983+_0x5128fc+_0x34a4ed),console[_0x1d8690(0x19b)](_0x1d8690(0x190)+_0x13d6e5[_0x1d8690(0x185)]);const _0x775607=_0x3eca7c[_0x1d8690(0x17e)][_0x1d8690(0x176)]&&typeof _0x3eca7c[_0x1d8690(0x17e)][_0x1d8690(0x176)]===_0x1d8690(0x12a)?_0x3eca7c['projectConfig'][_0x1d8690(0x176)]:{},_0x145984=Object[_0x1d8690(0x191)]['hasOwnProperty'][_0x1d8690(0x12b)](_0x775607,_0x72b983),_0x1f6188=isInvalidLovrabetRegion(_0x13d6e5['region'])?{'region':_0x3558b3['region']??DEFAULT_LOVRABET_REGION}:resolveEffectiveRegion({'appRegion':_0x13d6e5[_0x1d8690(0x16b)],'projectRegion':_0x145984?_0x3eca7c[_0x1d8690(0x17e)][_0x1d8690(0x16b)]:undefined,'globalRegion':_0x3eca7c[_0x1d8690(0x120)]['region'],'mergedRegion':_0x3558b3['raw'][_0x1d8690(0x16b)],'appName':_0x72b983}),_0x3f1dd1=buildAppDoctorFields(_0x13d6e5,{'region':_0x1f6188['region'],'env':_0x3558b3[_0x1d8690(0x1a8)],'apiDir':_0x3558b3[_0x1d8690(0x136)][_0x1d8690(0x16d)]||DEFAULT_CONFIG_VALUES[_0x1d8690(0x16d)],'cookie':_0x3558b3['cookie']||_0x54997d||undefined,'accessKey':_0x3558b3[_0x1d8690(0x199)]});console['log'](_0x1d8690(0x144)+_0x3f1dd1[_0x1d8690(0x16b)]['value']+'\x20\x20'+a124_0x34f24d[_0x1d8690(0x13c)]('('+_0x3f1dd1['region'][_0x1d8690(0x184)]+')')),console[_0x1d8690(0x19b)](_0x1d8690(0x16e)+_0x3f1dd1['env'][_0x1d8690(0x156)]+'\x20\x20'+a124_0x34f24d[_0x1d8690(0x13c)]('('+_0x3f1dd1[_0x1d8690(0x1a8)][_0x1d8690(0x184)]+')')),console[_0x1d8690(0x19b)](_0x1d8690(0x14c)+_0x3f1dd1['apiDir'][_0x1d8690(0x156)]+'\x20\x20'+a124_0x34f24d['gray']('('+_0x3f1dd1['apiDir'][_0x1d8690(0x184)]+')'));const _0x3a1a3a=_0x3f1dd1[_0x1d8690(0x130)]['value']?a124_0x34f24d['green']('(set,\x20length='+_0x3f1dd1[_0x1d8690(0x130)]['value'][_0x1d8690(0x126)]+')'):a124_0x34f24d[_0x1d8690(0x13c)]('(none)');console['log']('\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20'+_0x3a1a3a+'\x20\x20'+a124_0x34f24d[_0x1d8690(0x13c)]('('+_0x3f1dd1[_0x1d8690(0x130)]['source']+')'));const _0x3422e3=_0x3f1dd1[_0x1d8690(0x199)][_0x1d8690(0x156)]?a124_0x34f24d['green'](_0x1d8690(0x142)+_0x3f1dd1[_0x1d8690(0x199)][_0x1d8690(0x156)]['length']+')'):a124_0x34f24d[_0x1d8690(0x13c)](_0x1d8690(0x18c));console[_0x1d8690(0x19b)]('\x20\x20\x20\x20accessKey:\x20\x20'+_0x3422e3+'\x20\x20'+a124_0x34f24d['gray']('('+_0x3f1dd1[_0x1d8690(0x199)][_0x1d8690(0x184)]+')'));}}console[_0x1d8690(0x19b)](),console[_0x1d8690(0x19b)](a124_0x34f24d[_0x1d8690(0x1a5)](_0x1d8690(0x18a))),console[_0x1d8690(0x19b)](a124_0x34f24d[_0x1d8690(0x13c)](_0x1d8690(0x13b)['repeat'](0x1e)));_0x5ca09d?console[_0x1d8690(0x19b)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a124_0x34f24d[_0x1d8690(0x1ac)](_0x1d8690(0x12d))):(console['log'](_0x1d8690(0x194)+getActiveRegion()),console['log']('\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20'+getApiDomain()),console[_0x1d8690(0x19b)]('\x20\x20userDomain:\x20\x20\x20\x20\x20\x20'+getUserDomain()),console[_0x1d8690(0x19b)](_0x1d8690(0x19d)+getRuntimeDomain()),console['log']('\x20\x20skillDomain:\x20\x20\x20\x20\x20'+getSkillDomain()),console[_0x1d8690(0x19b)](_0x1d8690(0x174)+getKbDomain()),console[_0x1d8690(0x19b)](_0x1d8690(0x19f)+(getKbServiceDomain()??_0x1d8690(0x196))),console[_0x1d8690(0x19b)](_0x1d8690(0x193)+getAppDomain()));console[_0x1d8690(0x19b)](),console[_0x1d8690(0x19b)](a124_0x34f24d[_0x1d8690(0x1a5)](_0x1d8690(0x14e))),console['log'](a124_0x34f24d[_0x1d8690(0x13c)](_0x1d8690(0x13b)['repeat'](0x1e)));if(_0x5ca09d)console[_0x1d8690(0x19b)](_0x1d8690(0x161)+a124_0x34f24d[_0x1d8690(0x154)](_0x1d8690(0x12e)));else{if(_0x54997d){const _0x205e0a=await getIsSessionValid();console[_0x1d8690(0x19b)](_0x1d8690(0x161)+(_0x205e0a?a124_0x34f24d[_0x1d8690(0x16c)]('✓\x20Valid'):a124_0x34f24d['red'](_0x1d8690(0x14a))));}else console[_0x1d8690(0x19b)](_0x1d8690(0x161)+a124_0x34f24d[_0x1d8690(0x1ac)](_0x1d8690(0x1a6)));}return console['log'](),{'ok':!![]};}export const doctorDefinition={'service':'doctor','command':'check','description':'Diagnose\x20CLI\x20configuration\x20and\x20connectivity','risk':a124_0x20a009(0x148),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
1
+ const a124_0x3b12d4=a124_0x261b;(function(_0x3524a6,_0x1da0e2){const _0x54357a=a124_0x261b,_0x548f2e=_0x3524a6();while(!![]){try{const _0x16462c=-parseInt(_0x54357a(0x210))/0x1*(-parseInt(_0x54357a(0x1f5))/0x2)+-parseInt(_0x54357a(0x1b4))/0x3+-parseInt(_0x54357a(0x1f2))/0x4+-parseInt(_0x54357a(0x1ff))/0x5*(-parseInt(_0x54357a(0x217))/0x6)+-parseInt(_0x54357a(0x1bf))/0x7*(parseInt(_0x54357a(0x1a7))/0x8)+parseInt(_0x54357a(0x1b0))/0x9*(parseInt(_0x54357a(0x1c9))/0xa)+-parseInt(_0x54357a(0x1e7))/0xb*(parseInt(_0x54357a(0x202))/0xc);if(_0x16462c===_0x1da0e2)break;else _0x548f2e['push'](_0x548f2e['shift']());}catch(_0x61cdf5){_0x548f2e['push'](_0x548f2e['shift']());}}}(a124_0x35fc,0xe3a66));import a124_0x16840a from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';import{getActiveRegion,getApiDomain,getAppDomain,getKbDomain,getKbServiceDomain,getSkillDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags,initGlobalEnvironment,inspectCliConfigJsonFile,loadRawConfigLayers}from'../context.js';import{getIsSessionValid}from'../auth/is-session-valid.js';import{getCookie}from'../auth/get-cookie.js';function a124_0x35fc(){const _0x2e7ee0=['regionSource','status','accessKey','\x20\x20Apps','\x20\x20Config\x20JSON','value','\x20config\x20delete\x20inherit\x20--global','length','includes','\x20config\x20delete\x20routing\x20--global','\x20\x20Package\x20Version:\x20','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20runtimeDomain:\x20\x20\x20','\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','object','\x20(default)','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20app\x20locale:\x20\x20\x20\x20\x20\x20','(not\x20set)','log','\x20config\x20delete\x20region','not\x20configured','8MjMzaG','(not\x20found)','\x20\x20Installed\x20Path:\x20\x20','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','raw','currentApp','apps','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','source','126171RnuBUw','entries','\x20\x20Merged\x20Config','\x20\x20explicitAppName:\x20','4361190vUUagG','skillVersion','reason','(set\x20via\x20file,\x20length=','state','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','riskLevel','\x20\x20kbDomain:\x20\x20\x20\x20\x20\x20\x20\x20','\x20app\x20\x22','\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','filter','3709867FTPnvG','current','repairCommand','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','project','\x20\x20Skill\x20Version:\x20\x20\x20','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','✗\x20Not\x20logged\x20in','\x20\x20Repair\x20global:\x20\x20\x20\x20','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','790hPhOTv','explicitAppName','apiDir','gray','(unknown)','inherit','\x20\x20Repair\x20project:\x20\x20\x20','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','Project','yellow','doctor','padEnd','(no\x20file)','label','\x20←\x20current','call','(default:\x20','ignored\x20in\x20','bold','missing','read','empty','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','✗\x20Invalid\x20','stringify','hasOwnProperty','default','\x20config\x20delete\x20routing','\x20+\x20','\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','1837hnERDx','\x20\x20Repair\x20global:\x20\x20\x20','(set,\x20length=','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','toLowerCase','appCode','✗\x20Invalid\x20JSON','prototype','Set\x20apps.','cookie','red','3770300xQIRXr','(default)','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','256946XupTYv','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','string','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','projectConfig','\x20\x20─','version','defaultApp','\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','global','34735XEqJLa','globalConfig','present','5448gXFElt','platform','\x20\x20Auth','routing','\x20\x20kbServiceDomain:\x20','\x20config','pageSize','repeat','appcode','env','Unavailable\x20until\x20routing\x20configuration\x20is\x20repaired','slice','region','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','8vHgFQB','(none)','✗\x20Expired','\x20config\x20delete\x20inherit','message','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20(invalid)','1554gMmVSk','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','✓\x20Valid\x20JSON','format','unknown','null','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','green','\x20doctor','Global','arch','\x20\x20Routing\x20Configuration','\x20\x20Repair\x20project:\x20\x20'];a124_0x35fc=function(){return _0x2e7ee0;};return a124_0x35fc();}import{buildAppDoctorFields}from'../config/schema.js';import{resolveEffectiveRegion}from'../config/region-config.js';import{inspectBuiltinSkill}from'../skills/builtin-skill.js';import{DEFAULT_LOVRABET_REGION,isInvalidLovrabetRegion}from'../constant/region.js';function describeRegionValue(_0x501dc0){const _0x564de8=a124_0x261b;return typeof _0x501dc0===_0x564de8(0x1f7)?JSON[_0x564de8(0x1e1)](_0x501dc0):'<'+(_0x501dc0===null?_0x564de8(0x21c):typeof _0x501dc0)+'>';}function a124_0x261b(_0x262d40,_0x338dc9){_0x262d40=_0x262d40-0x192;const _0x35fc93=a124_0x35fc();let _0x261bb3=_0x35fc93[_0x262d40];return _0x261bb3;}async function execute(_0x30c87d){const _0x316483=a124_0x261b,_0x4ff22a=GIT_COMMIT!==_0x316483(0x21b)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x316483(0x20d)](0x0,0xa)+')':VERSION,_0x3b7bd4=buildConfigFromFlags({}),_0xadb388=getCookie();let _0x49e89e;try{await initGlobalEnvironment(_0x3b7bd4);}catch(_0x21d9a6){_0x49e89e=_0x21d9a6 instanceof Error?_0x21d9a6:new Error(String(_0x21d9a6));}console['log'](),console[_0x316483(0x1a4)](a124_0x16840a[_0x316483(0x1db)](CLI_BIN_NAME+_0x316483(0x21f))),console['log'](a124_0x16840a[_0x316483(0x1cc)]('─'[_0x316483(0x209)](0x32))),console[_0x316483(0x1a4)](_0x316483(0x1ea)+_0x4ff22a),console['log'](_0x316483(0x1c5)+process[_0x316483(0x1fb)]),console[_0x316483(0x1a4)](_0x316483(0x218)+process[_0x316483(0x203)]+'\x20'+process[_0x316483(0x221)]);const _0x3ec4bf=inspectBuiltinSkill();console[_0x316483(0x1a4)](),console[_0x316483(0x1a4)](a124_0x16840a[_0x316483(0x1db)]('\x20\x20Built-in\x20Skill')),console[_0x316483(0x1a4)](a124_0x16840a[_0x316483(0x1cc)]('\x20\x20─'[_0x316483(0x209)](0x1e)));const _0x1c0d79=_0x3ec4bf['state']===_0x316483(0x1c0)?a124_0x16840a[_0x316483(0x21e)]('✓\x20'+_0x3ec4bf[_0x316483(0x1b8)]):a124_0x16840a[_0x316483(0x1f1)]('✗\x20'+_0x3ec4bf['state']);console[_0x316483(0x1a4)](_0x316483(0x1bd)+_0x1c0d79),console[_0x316483(0x1a4)](_0x316483(0x19b)+_0x3ec4bf['packageVersion']),console['log'](_0x316483(0x1c4)+(_0x3ec4bf[_0x316483(0x1b5)]||a124_0x16840a['gray'](_0x316483(0x1cd)))),console['log'](_0x316483(0x1a9)+(_0x3ec4bf['installedPath']||a124_0x16840a[_0x316483(0x1cc)]('(not\x20found)')));if(_0x3ec4bf[_0x316483(0x1b6)])console[_0x316483(0x1a4)]('\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x3ec4bf['reason']);_0x3ec4bf[_0x316483(0x1b8)]!==_0x316483(0x1c0)&&console[_0x316483(0x1a4)](_0x316483(0x19e)+_0x3ec4bf[_0x316483(0x1c1)]);console[_0x316483(0x1a4)](),console[_0x316483(0x1a4)](a124_0x16840a[_0x316483(0x1db)]('\x20\x20Config\x20Files')),console[_0x316483(0x1a4)](a124_0x16840a[_0x316483(0x1cc)](_0x316483(0x1fa)[_0x316483(0x209)](0x1e)));const _0x186e30=getGlobalConfigPath(),_0x377cc4=getProjectConfigPath();console[_0x316483(0x1a4)](_0x316483(0x1f8)+(_0x186e30||a124_0x16840a[_0x316483(0x1cc)](_0x316483(0x1a8)))),console[_0x316483(0x1a4)](_0x316483(0x215)+(_0x377cc4||a124_0x16840a[_0x316483(0x1cc)]('(not\x20found)'))),console[_0x316483(0x1a4)](),console['log'](a124_0x16840a[_0x316483(0x1db)](_0x316483(0x195))),console['log'](a124_0x16840a[_0x316483(0x1cc)]('\x20\x20─'[_0x316483(0x209)](0x1e)));const _0x4a3d7d=(_0x2ec1b1,_0x58d0da)=>{const _0x37fda4=_0x316483;if(!_0x58d0da){console[_0x37fda4(0x1a4)]('\x20\x20'+_0x2ec1b1[_0x37fda4(0x1d4)](0x11)+'\x20'+a124_0x16840a['gray'](_0x37fda4(0x1d5)));return;}const _0xf4c8ec=inspectCliConfigJsonFile(_0x58d0da);if(_0xf4c8ec['status']==='ok')console[_0x37fda4(0x1a4)]('\x20\x20'+_0x2ec1b1['padEnd'](0x11)+'\x20'+a124_0x16840a[_0x37fda4(0x21e)](_0x37fda4(0x219)));else{if(_0xf4c8ec[_0x37fda4(0x192)]===_0x37fda4(0x1de))console[_0x37fda4(0x1a4)]('\x20\x20'+_0x2ec1b1[_0x37fda4(0x1d4)](0x11)+'\x20'+a124_0x16840a[_0x37fda4(0x1d2)]('⚠\x20Empty\x20(treated\x20as\x20{})'));else _0xf4c8ec['status']===_0x37fda4(0x1dc)?console[_0x37fda4(0x1a4)]('\x20\x20'+_0x2ec1b1[_0x37fda4(0x1d4)](0x11)+'\x20'+a124_0x16840a[_0x37fda4(0x1cc)]('(missing)')):(console['log']('\x20\x20'+_0x2ec1b1[_0x37fda4(0x1d4)](0x11)+'\x20'+a124_0x16840a[_0x37fda4(0x1f1)](_0x37fda4(0x1ed))),console['log']('\x20\x20'+''[_0x37fda4(0x1d4)](0x11)+'\x20'+a124_0x16840a[_0x37fda4(0x1f1)](_0xf4c8ec[_0x37fda4(0x214)])));}};_0x4a3d7d('Global',_0x186e30),_0x4a3d7d(_0x316483(0x1d1),_0x377cc4);const _0x182972=loadRawConfigLayers(),_0x4978fc=[{'label':_0x316483(0x1d1),'value':_0x182972[_0x316483(0x1f9)][_0x316483(0x20e)],'present':Object[_0x316483(0x1ee)]['hasOwnProperty'][_0x316483(0x1d8)](_0x182972[_0x316483(0x1f9)],_0x316483(0x20e)),'repairCommand':CLI_BIN_NAME+_0x316483(0x1a5)},{'label':_0x316483(0x220),'value':_0x182972[_0x316483(0x200)]['region'],'present':Object['prototype'][_0x316483(0x1e2)][_0x316483(0x1d8)](_0x182972['globalConfig'],_0x316483(0x20e)),'repairCommand':CLI_BIN_NAME+'\x20config\x20delete\x20region\x20--global'}]['filter'](_0x261e69=>_0x261e69[_0x316483(0x201)]&&isInvalidLovrabetRegion(_0x261e69[_0x316483(0x196)]));for(const [_0xc515e4,_0x1633bb]of[['Project',_0x182972[_0x316483(0x1f9)]],[_0x316483(0x220),_0x182972[_0x316483(0x200)]]]){const _0x322cd3=_0x1633bb['apps']&&typeof _0x1633bb[_0x316483(0x1ad)]===_0x316483(0x19f)?_0x1633bb['apps']:{};for(const [_0x1aaa62,_0x19d052]of Object[_0x316483(0x1b1)](_0x322cd3)){if(!_0x19d052||typeof _0x19d052!==_0x316483(0x19f)||!Object['prototype'][_0x316483(0x1e2)][_0x316483(0x1d8)](_0x19d052,_0x316483(0x20e)))continue;isInvalidLovrabetRegion(_0x19d052[_0x316483(0x20e)])&&_0x4978fc['push']({'label':_0xc515e4+_0x316483(0x1bc)+_0x1aaa62+'\x22','value':_0x19d052[_0x316483(0x20e)],'present':!![],'repairCommand':_0x316483(0x1ef)+_0x1aaa62+'.region\x20to\x20cn\x20or\x20id\x20in\x20'+_0xc515e4[_0x316483(0x1eb)]()+_0x316483(0x207)});}}if(_0x4978fc[_0x316483(0x198)]>0x0){console[_0x316483(0x1a4)](),console['log'](a124_0x16840a[_0x316483(0x1db)]('\x20\x20Country/Region\x20Configuration')),console[_0x316483(0x1a4)](a124_0x16840a[_0x316483(0x1cc)]('\x20\x20─'[_0x316483(0x209)](0x1e)));for(const _0x226f96 of _0x4978fc){console[_0x316483(0x1a4)]('\x20\x20'+_0x226f96['label']['padEnd'](0x11)+'\x20'+a124_0x16840a['red'](_0x316483(0x1e0)+describeRegionValue(_0x226f96[_0x316483(0x196)]))),console[_0x316483(0x1a4)]('\x20\x20'+('Repair\x20'+_0x226f96[_0x316483(0x1d6)]['toLowerCase']()+':')[_0x316483(0x1d4)](0x10)+'\x20'+_0x226f96[_0x316483(0x1c1)]);}}const _0x9941db=[Object['prototype'][_0x316483(0x1e2)]['call'](_0x182972['globalConfig'],_0x316483(0x1ce))?_0x316483(0x1fe):null,Object[_0x316483(0x1ee)]['hasOwnProperty'][_0x316483(0x1d8)](_0x182972[_0x316483(0x1f9)],_0x316483(0x1ce))?_0x316483(0x1c3):null][_0x316483(0x1be)](Boolean);_0x9941db[_0x316483(0x198)]>0x0&&(console[_0x316483(0x1a4)]('\x20\x20Legacy\x20inherit:\x20\x20\x20'+a124_0x16840a[_0x316483(0x1d2)](_0x316483(0x1da)+_0x9941db['join'](_0x316483(0x1e5))+_0x316483(0x207))),_0x9941db[_0x316483(0x199)](_0x316483(0x1c3))&&console[_0x316483(0x1a4)](_0x316483(0x1cf)+CLI_BIN_NAME+_0x316483(0x213)),_0x9941db[_0x316483(0x199)](_0x316483(0x1fe))&&console[_0x316483(0x1a4)](_0x316483(0x1c7)+CLI_BIN_NAME+_0x316483(0x197)));const _0x587a13=isInvalidLovrabetRegion(_0x3b7bd4['regionConfiguredValue']??_0x3b7bd4[_0x316483(0x1ab)]?.[_0x316483(0x20e)]);_0x49e89e&&!_0x587a13&&(console[_0x316483(0x1a4)](),console[_0x316483(0x1a4)](a124_0x16840a[_0x316483(0x1db)](_0x316483(0x222))),console['log'](a124_0x16840a[_0x316483(0x1cc)]('\x20\x20─'['repeat'](0x1e))),console[_0x316483(0x1a4)](_0x316483(0x1a1)+a124_0x16840a[_0x316483(0x1f1)]('✗\x20Invalid')),console[_0x316483(0x1a4)](_0x316483(0x1fd)+_0x49e89e[_0x316483(0x214)]),Object['prototype'][_0x316483(0x1e2)][_0x316483(0x1d8)](_0x182972['projectConfig'],_0x316483(0x205))&&console[_0x316483(0x1a4)](_0x316483(0x223)+CLI_BIN_NAME+_0x316483(0x1e4)),Object[_0x316483(0x1ee)][_0x316483(0x1e2)]['call'](_0x182972['globalConfig'],_0x316483(0x205))&&console[_0x316483(0x1a4)](_0x316483(0x1e8)+CLI_BIN_NAME+_0x316483(0x19a)));console[_0x316483(0x1a4)](),console[_0x316483(0x1a4)](a124_0x16840a[_0x316483(0x1db)](_0x316483(0x1b2))),console[_0x316483(0x1a4)](a124_0x16840a['gray']('\x20\x20─'[_0x316483(0x209)](0x1e))),console['log']('\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x3b7bd4[_0x316483(0x1ec)]||a124_0x16840a['red'](_0x316483(0x1a3))));const _0x12d9fd=_0x587a13?a124_0x16840a[_0x316483(0x1f1)](describeRegionValue(_0x3b7bd4['regionConfiguredValue']??_0x3b7bd4['raw']?.[_0x316483(0x20e)])+_0x316483(0x216)):(_0x3b7bd4[_0x316483(0x20e)]??DEFAULT_LOVRABET_REGION)+'\x20('+(_0x3b7bd4[_0x316483(0x224)]??_0x316483(0x1e3))+')';console[_0x316483(0x1a4)]('\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x12d9fd),console[_0x316483(0x1a4)]('\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x3b7bd4[_0x316483(0x20b)]),console[_0x316483(0x1a4)](_0x316483(0x1a2)+_0x3b7bd4['locale']),console['log']('\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x3b7bd4['apiDir']),console[_0x316483(0x1a4)](_0x316483(0x1df)+(_0x3b7bd4[_0x316483(0x1fc)]||a124_0x16840a['gray'](_0x316483(0x211)))),console[_0x316483(0x1a4)]('\x20\x20currentApp:\x20\x20\x20\x20\x20\x20'+(_0x3b7bd4[_0x316483(0x1ac)]||a124_0x16840a[_0x316483(0x1cc)](_0x316483(0x211)))),console['log'](_0x316483(0x1b3)+(_0x3b7bd4[_0x316483(0x1ca)]||a124_0x16840a['gray'](_0x316483(0x211)))),console['log'](_0x316483(0x1f6)+(_0x3b7bd4[_0x316483(0x21a)]||a124_0x16840a[_0x316483(0x1cc)](_0x316483(0x1d9)+DEFAULT_CONFIG_VALUES[_0x316483(0x21a)]+')'))),console[_0x316483(0x1a4)](_0x316483(0x1f4)+(_0x3b7bd4[_0x316483(0x208)]??a124_0x16840a[_0x316483(0x1cc)](_0x316483(0x1f3)))),console[_0x316483(0x1a4)]('\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20'+_0x3b7bd4[_0x316483(0x1ba)]),console[_0x316483(0x1a4)](_0x316483(0x19c)+_0x3b7bd4['verbose']),console[_0x316483(0x1a4)](_0x316483(0x21d)+(_0x3b7bd4['cookie']?a124_0x16840a[_0x316483(0x21e)]('(set,\x20length='+_0x3b7bd4[_0x316483(0x1f0)]['length']+')'):_0xadb388?a124_0x16840a[_0x316483(0x21e)](_0x316483(0x1b7)+_0xadb388[_0x316483(0x198)]+')'):a124_0x16840a[_0x316483(0x1cc)](_0x316483(0x211))));const _0x1e133a=Object['keys'](_0x3b7bd4[_0x316483(0x1ad)]);if(_0x1e133a['length']>0x0){console[_0x316483(0x1a4)](),console[_0x316483(0x1a4)](a124_0x16840a[_0x316483(0x1db)](_0x316483(0x194))),console[_0x316483(0x1a4)](a124_0x16840a[_0x316483(0x1cc)](_0x316483(0x1fa)[_0x316483(0x209)](0x1e)));for(const _0x2bbd15 of _0x1e133a){const _0x5cade3=_0x3b7bd4[_0x316483(0x1ad)][_0x2bbd15],_0x1a8608=_0x2bbd15===_0x3b7bd4[_0x316483(0x1fc)],_0x4e425c=_0x2bbd15===_0x3b7bd4[_0x316483(0x1ac)],_0x2077e1=_0x4e425c?a124_0x16840a[_0x316483(0x21e)](_0x316483(0x1d7)):'',_0xcaa724=_0x1a8608?_0x316483(0x1a0):'';console[_0x316483(0x1a4)]('\x20\x20'+_0x2bbd15+_0xcaa724+_0x2077e1),console[_0x316483(0x1a4)](_0x316483(0x1aa)+_0x5cade3[_0x316483(0x20a)]);const _0x54bae2=_0x182972['projectConfig'][_0x316483(0x1ad)]&&typeof _0x182972[_0x316483(0x1f9)][_0x316483(0x1ad)]===_0x316483(0x19f)?_0x182972[_0x316483(0x1f9)][_0x316483(0x1ad)]:{},_0x250370=Object[_0x316483(0x1ee)]['hasOwnProperty'][_0x316483(0x1d8)](_0x54bae2,_0x2bbd15),_0x1eb3f7=isInvalidLovrabetRegion(_0x5cade3[_0x316483(0x20e)])?{'region':_0x3b7bd4[_0x316483(0x20e)]??DEFAULT_LOVRABET_REGION}:resolveEffectiveRegion({'appRegion':_0x5cade3[_0x316483(0x20e)],'projectRegion':_0x250370?_0x182972[_0x316483(0x1f9)][_0x316483(0x20e)]:undefined,'globalRegion':_0x182972[_0x316483(0x200)]['region'],'mergedRegion':_0x3b7bd4[_0x316483(0x1ab)][_0x316483(0x20e)],'appName':_0x2bbd15}),_0x596560=buildAppDoctorFields(_0x5cade3,{'region':_0x1eb3f7[_0x316483(0x20e)],'env':_0x3b7bd4['env'],'apiDir':_0x3b7bd4[_0x316483(0x1ab)][_0x316483(0x1cb)]||DEFAULT_CONFIG_VALUES[_0x316483(0x1cb)],'cookie':_0x3b7bd4[_0x316483(0x1f0)]||_0xadb388||undefined,'accessKey':_0x3b7bd4[_0x316483(0x193)]});console[_0x316483(0x1a4)]('\x20\x20\x20\x20region:\x20\x20\x20\x20\x20'+_0x596560[_0x316483(0x20e)]['value']+'\x20\x20'+a124_0x16840a[_0x316483(0x1cc)]('('+_0x596560[_0x316483(0x20e)][_0x316483(0x1af)]+')')),console[_0x316483(0x1a4)](_0x316483(0x1b9)+_0x596560['env'][_0x316483(0x196)]+'\x20\x20'+a124_0x16840a[_0x316483(0x1cc)]('('+_0x596560[_0x316483(0x20b)]['source']+')')),console['log'](_0x316483(0x1c2)+_0x596560['apiDir'][_0x316483(0x196)]+'\x20\x20'+a124_0x16840a[_0x316483(0x1cc)]('('+_0x596560[_0x316483(0x1cb)][_0x316483(0x1af)]+')'));const _0x2a991e=_0x596560[_0x316483(0x1f0)]['value']?a124_0x16840a[_0x316483(0x21e)](_0x316483(0x1e9)+_0x596560[_0x316483(0x1f0)][_0x316483(0x196)][_0x316483(0x198)]+')'):a124_0x16840a[_0x316483(0x1cc)](_0x316483(0x211));console['log'](_0x316483(0x20f)+_0x2a991e+'\x20\x20'+a124_0x16840a[_0x316483(0x1cc)]('('+_0x596560[_0x316483(0x1f0)][_0x316483(0x1af)]+')'));const _0x10532c=_0x596560['accessKey'][_0x316483(0x196)]?a124_0x16840a[_0x316483(0x21e)](_0x316483(0x1e9)+_0x596560[_0x316483(0x193)][_0x316483(0x196)][_0x316483(0x198)]+')'):a124_0x16840a[_0x316483(0x1cc)](_0x316483(0x211));console['log']('\x20\x20\x20\x20accessKey:\x20\x20'+_0x10532c+'\x20\x20'+a124_0x16840a['gray']('('+_0x596560[_0x316483(0x193)][_0x316483(0x1af)]+')'));}}console['log'](),console[_0x316483(0x1a4)](a124_0x16840a['bold']('\x20\x20API\x20Endpoints')),console['log'](a124_0x16840a[_0x316483(0x1cc)](_0x316483(0x1fa)[_0x316483(0x209)](0x1e)));_0x49e89e?console[_0x316483(0x1a4)](_0x316483(0x1a1)+a124_0x16840a[_0x316483(0x1f1)](_0x316483(0x20c))):(console[_0x316483(0x1a4)](_0x316483(0x1e6)+getActiveRegion()),console[_0x316483(0x1a4)](_0x316483(0x1c8)+getApiDomain()),console[_0x316483(0x1a4)](_0x316483(0x1ae)+getUserDomain()),console[_0x316483(0x1a4)](_0x316483(0x19d)+getRuntimeDomain()),console[_0x316483(0x1a4)]('\x20\x20skillDomain:\x20\x20\x20\x20\x20'+getSkillDomain()),console[_0x316483(0x1a4)](_0x316483(0x1bb)+getKbDomain()),console[_0x316483(0x1a4)](_0x316483(0x206)+(getKbServiceDomain()??_0x316483(0x1a6))),console[_0x316483(0x1a4)]('\x20\x20appDomain:\x20\x20\x20\x20\x20\x20\x20'+getAppDomain()));console[_0x316483(0x1a4)](),console['log'](a124_0x16840a[_0x316483(0x1db)](_0x316483(0x204))),console[_0x316483(0x1a4)](a124_0x16840a[_0x316483(0x1cc)]('\x20\x20─'['repeat'](0x1e)));if(_0x49e89e)console['log'](_0x316483(0x1a1)+a124_0x16840a['yellow']('Not\x20checked\x20until\x20routing\x20configuration\x20is\x20repaired'));else{if(_0xadb388){const _0x523af2=await getIsSessionValid();console['log'](_0x316483(0x1a1)+(_0x523af2?a124_0x16840a[_0x316483(0x21e)]('✓\x20Valid'):a124_0x16840a['red'](_0x316483(0x212))));}else console['log'](_0x316483(0x1a1)+a124_0x16840a[_0x316483(0x1f1)](_0x316483(0x1c6)));}return console['log'](),{'ok':!![]};}export const doctorDefinition={'service':a124_0x3b12d4(0x1d3),'command':'check','description':a124_0x3b12d4(0x1d0),'risk':a124_0x3b12d4(0x1dd),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
@@ -1 +1 @@
1
- const a125_0x303cd7=a125_0x4a03;function a125_0x4112(){const _0x40dc5c=['Development\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data','download','87921vWTogE','boolean','366695aEwXNv','POST','appCode','filepath','60ewxyWX','Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20or\x20immediate\x20access','upload','filePath\x20is\x20required.','/smartapi/common/uploadFile','4077648JBIiwM','Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML','482867DNLuoU','string','read','str','12pkwLnY','validation','path','file','Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL','bool','long-term','789880NlTdbA','trim','2578878LIVjnb','12913qCpOzH','\x20to\x20development\x20app\x20','56szJyiK','File','Path\x20to\x20the\x20local\x20file\x20to\x20upload','filePath'];a125_0x4112=function(){return _0x40dc5c;};return a125_0x4112();}(function(_0x1cfe94,_0x56a858){const _0x4762dc=a125_0x4a03,_0x7b6a5=_0x1cfe94();while(!![]){try{const _0x52191e=-parseInt(_0x4762dc(0x120))/0x1*(-parseInt(_0x4762dc(0x122))/0x2)+parseInt(_0x4762dc(0x11f))/0x3+-parseInt(_0x4762dc(0x11d))/0x4+parseInt(_0x4762dc(0x12a))/0x5+parseInt(_0x4762dc(0x139))/0x6*(-parseInt(_0x4762dc(0x135))/0x7)+-parseInt(_0x4762dc(0x133))/0x8+parseInt(_0x4762dc(0x128))/0x9*(parseInt(_0x4762dc(0x12e))/0xa);if(_0x52191e===_0x56a858)break;else _0x7b6a5['push'](_0x7b6a5['shift']());}catch(_0xe8c80f){_0x7b6a5['push'](_0x7b6a5['shift']());}}}(a125_0x4112,0x7c065));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_0x303cd7(0x119),'type':a125_0x303cd7(0x136),'required':!![],'description':a125_0x303cd7(0x124)},FILEPATH_FLAG={'name':a125_0x303cd7(0x12d),'type':a125_0x303cd7(0x136),'required':!![],'description':a125_0x303cd7(0x126)},DOWNLOAD_FLAG={'name':a125_0x303cd7(0x127),'type':a125_0x303cd7(0x129),'description':a125_0x303cd7(0x11a)},LONG_TERM_FLAG={'name':a125_0x303cd7(0x11c),'type':'boolean','description':a125_0x303cd7(0x134)};function requireFilePath(_0x1cd21c){const _0x55de64=a125_0x303cd7,_0x4e263e=_0x1cd21c[_0x55de64(0x11e)]();if(!_0x4e263e)throw CliErrors[_0x55de64(0x13a)](_0x55de64(0x131));return _0x4e263e;}function a125_0x4a03(_0x263c60,_0x20758b){_0x263c60=_0x263c60-0x118;const _0x41128c=a125_0x4112();let _0x4a038f=_0x41128c[_0x263c60];return _0x4a038f;}const fileUpload={'service':a125_0x303cd7(0x119),'command':a125_0x303cd7(0x130),'description':'Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','risk':a125_0x303cd7(0x137),'flags':[FILE_FLAG],async 'dryRun'(_0x1c0cdc){const _0x155688=a125_0x303cd7,_0x571fff=requireDevelopmentUploadFile(_0x1c0cdc['str']('file'),_0x155688(0x123));return{'method':_0x155688(0x12b),'url':_0x155688(0x132),'body':{'appCode':_0x1c0cdc['appCode'],'multipart':{'file':_0x571fff}},'description':'Preview:\x20upload\x20'+_0x571fff[_0x155688(0x118)]+_0x155688(0x121)+_0x1c0cdc[_0x155688(0x12c)]};},async 'execute'(_0x5002ea){const _0x1b5acf=a125_0x303cd7,_0x272a10=requireDevelopmentUploadFile(_0x5002ea[_0x1b5acf(0x138)](_0x1b5acf(0x119)),'File'),_0x9e3c78=await uploadDevelopmentFile(_0x5002ea[_0x1b5acf(0x12c)],_0x272a10[_0x1b5acf(0x118)]);return{'ok':!![],'data':_0x9e3c78,'message':_0x9e3c78[_0x1b5acf(0x125)]?'Uploaded\x20file:\x20'+_0x9e3c78[_0x1b5acf(0x125)]+'.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.':'Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.'};}},fileQueryUrl={'service':a125_0x303cd7(0x119),'command':'query-url','description':a125_0x303cd7(0x12f),'risk':'read','flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0x1d56fc){const _0x26a859=a125_0x303cd7,_0x221eb5=requireFilePath(_0x1d56fc[_0x26a859(0x138)](_0x26a859(0x12d))),_0x324aab=await queryDevelopmentFileUrl(_0x221eb5,{'download':_0x1d56fc['bool'](_0x26a859(0x127)),'longTerm':_0x1d56fc[_0x26a859(0x11b)]('long-term')});return{'ok':!![],'data':_0x324aab};}};export const fileDefinitions=[fileUpload,fileQueryUrl];
1
+ const a125_0x562814=a125_0x5241;function a125_0x2423(){const _0x11cf9a=['download','4282dKGkzp','filePath','read','boolean','\x20to\x20development\x20app\x20','12naopJC','.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','appCode','str','3118360ASQobn','1018163tCShpV','4maAEAD','14657115MHQjFg','path','Development\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data','/smartapi/common/uploadFile','990pdHFdk','Path\x20to\x20the\x20local\x20file\x20to\x20upload','183CAunoC','File','7096vdmCiz','1186675DKGwNr','5042430eFhrUT','Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20or\x20immediate\x20access','string','POST','long-term','bool','upload','file','Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','filepath','validation','trim'];a125_0x2423=function(){return _0x11cf9a;};return a125_0x2423();}(function(_0x26fe7a,_0x2f8590){const _0x1885a3=a125_0x5241,_0x4d7ccb=_0x26fe7a();while(!![]){try{const _0x37fba6=parseInt(_0x1885a3(0xc5))/0x1+-parseInt(_0x1885a3(0xbb))/0x2*(parseInt(_0x1885a3(0xcd))/0x3)+-parseInt(_0x1885a3(0xc6))/0x4*(parseInt(_0x1885a3(0xd0))/0x5)+parseInt(_0x1885a3(0xc0))/0x6*(-parseInt(_0x1885a3(0xc4))/0x7)+parseInt(_0x1885a3(0xcf))/0x8*(parseInt(_0x1885a3(0xcb))/0x9)+-parseInt(_0x1885a3(0xd1))/0xa+parseInt(_0x1885a3(0xc7))/0xb;if(_0x37fba6===_0x2f8590)break;else _0x4d7ccb['push'](_0x4d7ccb['shift']());}catch(_0x24f77a){_0x4d7ccb['push'](_0x4d7ccb['shift']());}}}(a125_0x2423,0xa7403));import{requireDevelopmentUploadFile}from'../../commands/common/local-file.js';import{queryDevelopmentFileUrl,uploadDevelopmentFile}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const FILE_FLAG={'name':a125_0x562814(0xd9),'type':a125_0x562814(0xd4),'required':!![],'description':a125_0x562814(0xcc)},FILEPATH_FLAG={'name':a125_0x562814(0xdb),'type':a125_0x562814(0xd4),'required':!![],'description':a125_0x562814(0xc9)},DOWNLOAD_FLAG={'name':a125_0x562814(0xba),'type':a125_0x562814(0xbe),'description':'Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL'},LONG_TERM_FLAG={'name':a125_0x562814(0xd6),'type':a125_0x562814(0xbe),'description':'Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML'};function requireFilePath(_0x4ef8c8){const _0x4fce15=a125_0x562814,_0x10e941=_0x4ef8c8[_0x4fce15(0xb9)]();if(!_0x10e941)throw CliErrors[_0x4fce15(0xb8)]('filePath\x20is\x20required.');return _0x10e941;}function a125_0x5241(_0x22aa39,_0x401cef){_0x22aa39=_0x22aa39-0xb8;const _0x2423b2=a125_0x2423();let _0x52418f=_0x2423b2[_0x22aa39];return _0x52418f;}const fileUpload={'service':a125_0x562814(0xd9),'command':a125_0x562814(0xd8),'description':a125_0x562814(0xda),'risk':a125_0x562814(0xbd),'flags':[FILE_FLAG],async 'dryRun'(_0x344561){const _0x162ef9=a125_0x562814,_0xbf5479=requireDevelopmentUploadFile(_0x344561[_0x162ef9(0xc3)](_0x162ef9(0xd9)),_0x162ef9(0xce));return{'method':_0x162ef9(0xd5),'url':_0x162ef9(0xca),'body':{'appCode':_0x344561[_0x162ef9(0xc2)],'multipart':{'file':_0xbf5479}},'description':'Preview:\x20upload\x20'+_0xbf5479[_0x162ef9(0xc8)]+_0x162ef9(0xbf)+_0x344561[_0x162ef9(0xc2)]};},async 'execute'(_0x49ce40){const _0x40da6b=a125_0x562814,_0x34ea4d=requireDevelopmentUploadFile(_0x49ce40[_0x40da6b(0xc3)](_0x40da6b(0xd9)),_0x40da6b(0xce)),_0x40557e=await uploadDevelopmentFile(_0x49ce40[_0x40da6b(0xc2)],_0x34ea4d[_0x40da6b(0xc8)]);return{'ok':!![],'data':_0x40557e,'message':_0x40557e[_0x40da6b(0xbc)]?'Uploaded\x20file:\x20'+_0x40557e[_0x40da6b(0xbc)]+_0x40da6b(0xc1):_0x40da6b(0xd2)};}},fileQueryUrl={'service':a125_0x562814(0xd9),'command':'query-url','description':a125_0x562814(0xd3),'risk':a125_0x562814(0xbd),'flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0xe5d870){const _0x4652a5=a125_0x562814,_0x4b528a=requireFilePath(_0xe5d870[_0x4652a5(0xc3)](_0x4652a5(0xdb))),_0x6180c6=await queryDevelopmentFileUrl(_0x4b528a,{'download':_0xe5d870[_0x4652a5(0xd7)](_0x4652a5(0xba)),'longTerm':_0xe5d870['bool']('long-term')});return{'ok':!![],'data':_0x6180c6};}};export const fileDefinitions=[fileUpload,fileQueryUrl];
@@ -1 +1 @@
1
- const a126_0x552fca=a126_0x2869;(function(_0x4b3c34,_0x15edaf){const _0x5b693e=a126_0x2869,_0x10993d=_0x4b3c34();while(!![]){try{const _0x5646fb=parseInt(_0x5b693e(0x18e))/0x1*(parseInt(_0x5b693e(0x196))/0x2)+-parseInt(_0x5b693e(0x186))/0x3+parseInt(_0x5b693e(0x194))/0x4*(parseInt(_0x5b693e(0x193))/0x5)+-parseInt(_0x5b693e(0x189))/0x6*(parseInt(_0x5b693e(0x192))/0x7)+parseInt(_0x5b693e(0x18a))/0x8+parseInt(_0x5b693e(0x18f))/0x9+-parseInt(_0x5b693e(0x191))/0xa;if(_0x5646fb===_0x15edaf)break;else _0x10993d['push'](_0x10993d['shift']());}catch(_0x1c0ca2){_0x10993d['push'](_0x10993d['shift']());}}}(a126_0xe450,0x40baa));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a126_0x2869(_0x1328c6,_0x3f7007){_0x1328c6=_0x1328c6-0x184;const _0xe45006=a126_0xe450();let _0x286985=_0xe45006[_0x1328c6];return _0x286985;}import{asDryRunResult}from'../../commands/common/dry-run.js';import{createFlowDefinition}from'../../core/api-client.js';import{FLOW_FILE_FLAG,FLOW_PATHS,buildFlowUrl,confirmFlowWrite,flowSelector,prepareFlowWrite,readFlowFilePath}from'../../commands/flow/shared.js';function a126_0xe450(){const _0x56bff1=['Create\x20a\x20draft\x20flow\x20definition\x20from\x20a\x20local\x20FlowConfig\x20file','write','6mBPVhJ','2984984fIkjHJ','Created\x20flow\x20','.\x20Flow\x20URL:\x20','POST','1WFzUiq','928737nNfgfm','appCode','2440970feKHWi','652799qqLBmd','1210OXgLCW','6424eQdSrO','flowName','278766nSthdf','create','flow','1205601kaWLJn'];a126_0xe450=function(){return _0x56bff1;};return a126_0xe450();}export const flowCreate={'service':a126_0x552fca(0x185),'command':a126_0x552fca(0x184),'description':a126_0x552fca(0x187),'risk':a126_0x552fca(0x188),'flags':[FLOW_FILE_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x38e94f){readFlowFilePath(_0x38e94f);},async 'dryRun'(_0x9793dc){const _0x2f24a4=a126_0x552fca,{request:_0x18c920,warnings:_0x30ee89}=await prepareFlowWrite(readFlowFilePath(_0x9793dc),_0x9793dc[_0x2f24a4(0x190)]);return asDryRunResult({'operation':_0x2f24a4(0x184),'selector':{'appCode':_0x9793dc[_0x2f24a4(0x190)],'flowName':_0x18c920[_0x2f24a4(0x195)],..._0x18c920['datasetCode']?{'datasetCode':_0x18c920['datasetCode']}:{}},'before':null,'after':_0x18c920,'request':_0x18c920,'dryRun':!![],'backend':{'method':'POST','path':FLOW_PATHS['create']},'warnings':_0x30ee89},{'method':_0x2f24a4(0x18d),'url':FLOW_PATHS[_0x2f24a4(0x184)]});},async 'execute'(_0x5d322d){const _0x2ebcb3=a126_0x552fca,{request:_0x87e48f,warnings:_0x3de173}=await prepareFlowWrite(readFlowFilePath(_0x5d322d),_0x5d322d[_0x2ebcb3(0x190)]);await confirmFlowWrite(_0x5d322d,_0x2ebcb3(0x184),_0x87e48f);const _0x55b944=await createFlowDefinition(_0x87e48f),_0x10572c=buildFlowUrl(_0x5d322d[_0x2ebcb3(0x190)],_0x55b944['id']),_0x49d50f=''+(_0x55b944[_0x2ebcb3(0x195)]||_0x87e48f[_0x2ebcb3(0x195)])+(_0x55b944['id']?'\x20(id='+_0x55b944['id']+')':'');return{'ok':!![],'data':{'operation':_0x2ebcb3(0x184),'selector':flowSelector(_0x5d322d[_0x2ebcb3(0x190)],_0x55b944['id'],_0x55b944),'before':null,'after':_0x55b944,'flowUrl':_0x10572c,'dryRun':![],'backend':{'method':_0x2ebcb3(0x18d),'path':FLOW_PATHS[_0x2ebcb3(0x184)]},'warnings':_0x3de173},'message':_0x2ebcb3(0x18b)+_0x49d50f+_0x2ebcb3(0x18c)+_0x10572c};}};
1
+ function a126_0x34a3(){const _0x209664=['Create\x20a\x20draft\x20flow\x20definition\x20from\x20a\x20local\x20FlowConfig\x20file','create','\x20(id=','16401286AEvSgd','6XVSghW','3441620HsOirV','.\x20Flow\x20URL:\x20','12846xHUIOV','1065NUCxaz','write','40FZuYRx','flow','12116dOpVzd','POST','appCode','532721daCgfv','1615eHUSah','flowName','Created\x20flow\x20','408568rQwJLr','2025126GzTFLB','12guJaNd'];a126_0x34a3=function(){return _0x209664;};return a126_0x34a3();}const a126_0x510a67=a126_0xd7f5;(function(_0x3bd676,_0x446700){const _0x47e519=a126_0xd7f5,_0xe24c8b=_0x3bd676();while(!![]){try{const _0x403a06=parseInt(_0x47e519(0x81))/0x1*(parseInt(_0x47e519(0x7a))/0x2)+parseInt(_0x47e519(0x85))/0x3*(parseInt(_0x47e519(0x89))/0x4)+-parseInt(_0x47e519(0x8d))/0x5*(parseInt(_0x47e519(0x84))/0x6)+-parseInt(_0x47e519(0x8c))/0x7*(-parseInt(_0x47e519(0x87))/0x8)+-parseInt(_0x47e519(0x7b))/0x9+parseInt(_0x47e519(0x82))/0xa+parseInt(_0x47e519(0x80))/0xb*(-parseInt(_0x47e519(0x7c))/0xc);if(_0x403a06===_0x446700)break;else _0xe24c8b['push'](_0xe24c8b['shift']());}catch(_0xbb0bef){_0xe24c8b['push'](_0xe24c8b['shift']());}}}(a126_0x34a3,0x96e6d));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{asDryRunResult}from'../../commands/common/dry-run.js';import{createFlowDefinition}from'../../core/api-client.js';function a126_0xd7f5(_0x4c1863,_0x4dfbd9){_0x4c1863=_0x4c1863-0x79;const _0x34a3e5=a126_0x34a3();let _0xd7f57=_0x34a3e5[_0x4c1863];return _0xd7f57;}import{FLOW_FILE_FLAG,FLOW_PATHS,buildFlowUrl,confirmFlowWrite,flowSelector,prepareFlowWrite,readFlowFilePath}from'../../commands/flow/shared.js';export const flowCreate={'service':a126_0x510a67(0x88),'command':'create','description':a126_0x510a67(0x7d),'risk':a126_0x510a67(0x86),'flags':[FLOW_FILE_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x13ac42){readFlowFilePath(_0x13ac42);},async 'dryRun'(_0x2aedee){const _0x1eac75=a126_0x510a67,{request:_0xd891e0,warnings:_0x12add0}=await prepareFlowWrite(readFlowFilePath(_0x2aedee),_0x2aedee[_0x1eac75(0x8b)]);return asDryRunResult({'operation':'create','selector':{'appCode':_0x2aedee[_0x1eac75(0x8b)],'flowName':_0xd891e0[_0x1eac75(0x8e)],..._0xd891e0['datasetCode']?{'datasetCode':_0xd891e0['datasetCode']}:{}},'before':null,'after':_0xd891e0,'request':_0xd891e0,'dryRun':!![],'backend':{'method':_0x1eac75(0x8a),'path':FLOW_PATHS[_0x1eac75(0x7e)]},'warnings':_0x12add0},{'method':_0x1eac75(0x8a),'url':FLOW_PATHS[_0x1eac75(0x7e)]});},async 'execute'(_0x267f1e){const _0x173227=a126_0x510a67,{request:_0x438ada,warnings:_0x4e29a8}=await prepareFlowWrite(readFlowFilePath(_0x267f1e),_0x267f1e[_0x173227(0x8b)]);await confirmFlowWrite(_0x267f1e,_0x173227(0x7e),_0x438ada);const _0x49b485=await createFlowDefinition(_0x438ada),_0x4e2b09=buildFlowUrl(_0x267f1e[_0x173227(0x8b)],_0x49b485['id']),_0x2c4f8c=''+(_0x49b485[_0x173227(0x8e)]||_0x438ada[_0x173227(0x8e)])+(_0x49b485['id']?_0x173227(0x7f)+_0x49b485['id']+')':'');return{'ok':!![],'data':{'operation':_0x173227(0x7e),'selector':flowSelector(_0x267f1e['appCode'],_0x49b485['id'],_0x49b485),'before':null,'after':_0x49b485,'flowUrl':_0x4e2b09,'dryRun':![],'backend':{'method':_0x173227(0x8a),'path':FLOW_PATHS['create']},'warnings':_0x4e29a8},'message':_0x173227(0x79)+_0x2c4f8c+_0x173227(0x83)+_0x4e2b09};}};