@lovrabet/rabetbase-cli 2.5.9 → 2.5.10-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (377) hide show
  1. package/README.md +1 -1
  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.js +1 -1
  16. package/lib/auth/is-session-valid.js +1 -1
  17. package/lib/auth/login-success-html.js +1 -1
  18. package/lib/auth/logout.js +1 -1
  19. package/lib/cli-flags.js +1 -1
  20. package/lib/cli.js +1 -1
  21. package/lib/commands/api/generate.js +1 -1
  22. package/lib/commands/api/index.js +1 -1
  23. package/lib/commands/api/list.js +1 -1
  24. package/lib/commands/api/pull.js +1 -1
  25. package/lib/commands/api/shared.js +1 -1
  26. package/lib/commands/app/detail.js +1 -1
  27. package/lib/commands/app/index.js +1 -1
  28. package/lib/commands/app/list.js +1 -1
  29. package/lib/commands/app/members-list.js +1 -1
  30. package/lib/commands/app/remote-directory.js +1 -1
  31. package/lib/commands/app/shared.js +1 -1
  32. package/lib/commands/app-config/delete.js +1 -1
  33. package/lib/commands/app-config/get.js +1 -1
  34. package/lib/commands/app-config/index.js +1 -1
  35. package/lib/commands/app-config/list.js +1 -1
  36. package/lib/commands/app-config/set.js +1 -1
  37. package/lib/commands/app-config/shared.js +1 -1
  38. package/lib/commands/auth/index.js +1 -1
  39. package/lib/commands/bff/create.js +1 -1
  40. package/lib/commands/bff/delete.js +1 -1
  41. package/lib/commands/bff/detail.js +1 -1
  42. package/lib/commands/bff/index.js +1 -1
  43. package/lib/commands/bff/list.js +1 -1
  44. package/lib/commands/bff/logs.js +1 -1
  45. package/lib/commands/bff/pull.js +1 -1
  46. package/lib/commands/bff/push.js +1 -1
  47. package/lib/commands/bff/status.js +1 -1
  48. package/lib/commands/cli-skill/index.js +1 -1
  49. package/lib/commands/cli-update.js +1 -1
  50. package/lib/commands/codegen/index.js +1 -1
  51. package/lib/commands/codegen/sdk.js +1 -1
  52. package/lib/commands/codegen/sql.js +1 -1
  53. package/lib/commands/common/app-registry.js +1 -1
  54. package/lib/commands/common/app-selector.js +1 -1
  55. package/lib/commands/common/async-task.js +1 -1
  56. package/lib/commands/common/dry-run.js +1 -1
  57. package/lib/commands/common/flags.js +1 -1
  58. package/lib/commands/common/local-file.js +1 -1
  59. package/lib/commands/common/validate.js +1 -1
  60. package/lib/commands/config/delete.js +1 -1
  61. package/lib/commands/config/get.js +1 -1
  62. package/lib/commands/config/index.js +1 -1
  63. package/lib/commands/config/init.js +1 -1
  64. package/lib/commands/config/list.js +1 -1
  65. package/lib/commands/config/set.js +1 -1
  66. package/lib/commands/config/shared.js +1 -1
  67. package/lib/commands/dataset/batch-design.js +1 -1
  68. package/lib/commands/dataset/business-group-update.js +1 -1
  69. package/lib/commands/dataset/business-groups.js +1 -1
  70. package/lib/commands/dataset/capability.js +1 -1
  71. package/lib/commands/dataset/cross-relation-create.js +1 -1
  72. package/lib/commands/dataset/cross-relation-delete.js +1 -1
  73. package/lib/commands/dataset/cross-relation-list.js +1 -1
  74. package/lib/commands/dataset/cross-relation-shared.js +1 -1
  75. package/lib/commands/dataset/cross-relation-update.js +1 -1
  76. package/lib/commands/dataset/delete.js +1 -1
  77. package/lib/commands/dataset/design-context.js +1 -1
  78. package/lib/commands/dataset/design-start.js +1 -1
  79. package/lib/commands/dataset/design-status.js +1 -1
  80. package/lib/commands/dataset/design-sync-retry.js +1 -1
  81. package/lib/commands/dataset/design-sync-status.js +1 -1
  82. package/lib/commands/dataset/design-validate.js +1 -1
  83. package/lib/commands/dataset/detail.js +1 -1
  84. package/lib/commands/dataset/extend-update.js +1 -1
  85. package/lib/commands/dataset/field-restore.js +1 -1
  86. package/lib/commands/dataset/field-update.js +1 -1
  87. package/lib/commands/dataset/generate.js +1 -1
  88. package/lib/commands/dataset/index.js +1 -1
  89. package/lib/commands/dataset/list.js +1 -1
  90. package/lib/commands/dataset/operations.js +1 -1
  91. package/lib/commands/dataset/relation-audit.js +1 -1
  92. package/lib/commands/dataset/relation-create.js +1 -1
  93. package/lib/commands/dataset/relation-delete.js +1 -1
  94. package/lib/commands/dataset/relation-shared.js +1 -1
  95. package/lib/commands/dataset/relation-update.js +1 -1
  96. package/lib/commands/dataset/relations.js +1 -1
  97. package/lib/commands/dataset/rename.js +1 -1
  98. package/lib/commands/dataset/restore.js +1 -1
  99. package/lib/commands/dataset/user-deleted-field-list.js +1 -1
  100. package/lib/commands/db/analysis-batching.js +1 -1
  101. package/lib/commands/db/analyze-batch-plan.js +1 -1
  102. package/lib/commands/db/analyze-cancel.js +1 -1
  103. package/lib/commands/db/analyze-start.js +1 -1
  104. package/lib/commands/db/analyze-status.js +1 -1
  105. package/lib/commands/db/create.js +1 -1
  106. package/lib/commands/db/cross-db-analysis-shared.js +1 -1
  107. package/lib/commands/db/cross-db-analyze-latest.js +1 -1
  108. package/lib/commands/db/cross-db-analyze-start.js +1 -1
  109. package/lib/commands/db/cross-db-analyze-status.js +1 -1
  110. package/lib/commands/db/delete.js +1 -1
  111. package/lib/commands/db/detail.js +1 -1
  112. package/lib/commands/db/diff-refresh-start.js +1 -1
  113. package/lib/commands/db/diff-refresh-status.js +1 -1
  114. package/lib/commands/db/diff.js +1 -1
  115. package/lib/commands/db/index.js +1 -1
  116. package/lib/commands/db/list.js +1 -1
  117. package/lib/commands/db/shared.js +1 -1
  118. package/lib/commands/db/table-diff-shared.js +1 -1
  119. package/lib/commands/db/tables.js +1 -1
  120. package/lib/commands/db/test.js +1 -1
  121. package/lib/commands/db/update.js +1 -1
  122. package/lib/commands/deployment/index.js +1 -1
  123. package/lib/commands/deployment/sync-all.js +1 -1
  124. package/lib/commands/deployment/sync-jobs.js +1 -1
  125. package/lib/commands/deployment/sync-status.js +1 -1
  126. package/lib/commands/doctor.js +1 -1
  127. package/lib/commands/file/index.js +1 -1
  128. package/lib/commands/flow/create.js +1 -1
  129. package/lib/commands/flow/detail.js +1 -1
  130. package/lib/commands/flow/index.js +1 -1
  131. package/lib/commands/flow/list.js +1 -1
  132. package/lib/commands/flow/page-list.js +1 -1
  133. package/lib/commands/flow/publish.js +1 -1
  134. package/lib/commands/flow/runtime-resources-shared.js +1 -1
  135. package/lib/commands/flow/runtime-role-list.js +1 -1
  136. package/lib/commands/flow/runtime-role-user-list.js +1 -1
  137. package/lib/commands/flow/runtime-user-search.js +1 -1
  138. package/lib/commands/flow/shared.js +1 -1
  139. package/lib/commands/flow/update.js +1 -1
  140. package/lib/commands/flow/validate.js +1 -1
  141. package/lib/commands/instant-api-policy/current.js +1 -1
  142. package/lib/commands/instant-api-policy/index.js +1 -1
  143. package/lib/commands/instant-api-policy/init.js +1 -1
  144. package/lib/commands/instant-api-policy/publish.js +1 -1
  145. package/lib/commands/instant-api-policy/pull.js +1 -1
  146. package/lib/commands/instant-api-policy/revision.js +1 -1
  147. package/lib/commands/instant-api-policy/revisions.js +1 -1
  148. package/lib/commands/instant-api-policy/rollback.js +1 -1
  149. package/lib/commands/instant-api-policy/shared.js +1 -1
  150. package/lib/commands/instant-api-policy/validate.js +1 -1
  151. package/lib/commands/issue/index.js +1 -1
  152. package/lib/commands/issue/nudge.js +1 -1
  153. package/lib/commands/issue/report.js +1 -1
  154. package/lib/commands/issue/shared.js +1 -1
  155. package/lib/commands/kb/create.js +1 -1
  156. package/lib/commands/kb/delete.js +1 -1
  157. package/lib/commands/kb/detail.js +1 -1
  158. package/lib/commands/kb/index.js +1 -1
  159. package/lib/commands/kb/list.js +1 -1
  160. package/lib/commands/kb/search.js +1 -1
  161. package/lib/commands/kb/shared.js +1 -1
  162. package/lib/commands/kb/update.js +1 -1
  163. package/lib/commands/logs/index.js +1 -1
  164. package/lib/commands/menu/asset-update.js +1 -1
  165. package/lib/commands/menu/delete.js +1 -1
  166. package/lib/commands/menu/external-link-create.js +1 -1
  167. package/lib/commands/menu/external-link-update.js +1 -1
  168. package/lib/commands/menu/group-create.js +1 -1
  169. package/lib/commands/menu/group-update.js +1 -1
  170. package/lib/commands/menu/index.js +1 -1
  171. package/lib/commands/menu/list.js +1 -1
  172. package/lib/commands/menu/move.js +1 -1
  173. package/lib/commands/menu/regroup-start.js +1 -1
  174. package/lib/commands/menu/rename.js +1 -1
  175. package/lib/commands/menu/shared/compare-table.js +1 -1
  176. package/lib/commands/menu/shared/delete-plan.js +1 -1
  177. package/lib/commands/menu/shared/facts.js +1 -1
  178. package/lib/commands/menu/shared/index.js +1 -1
  179. package/lib/commands/menu/shared/inquirer.js +1 -1
  180. package/lib/commands/menu/shared/local-pages.js +1 -1
  181. package/lib/commands/menu/shared/logic.js +1 -1
  182. package/lib/commands/menu/shared/mutations.js +1 -1
  183. package/lib/commands/menu/shared/path.js +1 -1
  184. package/lib/commands/menu/shared/service.js +1 -1
  185. package/lib/commands/menu/shared/subapp-assets.js +1 -1
  186. package/lib/commands/menu/shared/sync-core.js +1 -1
  187. package/lib/commands/menu/shared/update-core.js +1 -1
  188. package/lib/commands/menu/shared/valid-url.js +1 -1
  189. package/lib/commands/menu/subapp-assets-status.js +1 -1
  190. package/lib/commands/menu/subapp-assets-update.js +1 -1
  191. package/lib/commands/menu/sync.js +1 -1
  192. package/lib/commands/menu/visibility-update.js +1 -1
  193. package/lib/commands/notification/config-create.js +1 -1
  194. package/lib/commands/notification/config-delete.js +1 -1
  195. package/lib/commands/notification/config-list.js +1 -1
  196. package/lib/commands/notification/config-update.js +1 -1
  197. package/lib/commands/notification/index.js +1 -1
  198. package/lib/commands/notification/shared.js +1 -1
  199. package/lib/commands/ocr/index.js +1 -1
  200. package/lib/commands/page/create.js +1 -1
  201. package/lib/commands/page/custom/detail.js +1 -1
  202. package/lib/commands/page/custom/list.js +1 -1
  203. package/lib/commands/page/custom/publish.js +1 -1
  204. package/lib/commands/page/custom/shared.js +1 -1
  205. package/lib/commands/page/custom/syntax.js +1 -1
  206. package/lib/commands/page/custom/update.js +1 -1
  207. package/lib/commands/page/data-list-status.js +1 -1
  208. package/lib/commands/page/generate-start.js +1 -1
  209. package/lib/commands/page/generate-status.js +1 -1
  210. package/lib/commands/page/index.js +1 -1
  211. package/lib/commands/page/pull.js +1 -1
  212. package/lib/commands/page/push.js +1 -1
  213. package/lib/commands/page/relation-audit.js +1 -1
  214. package/lib/commands/page/restore.js +1 -1
  215. package/lib/commands/page/shared.js +1 -1
  216. package/lib/commands/page/sync.js +1 -1
  217. package/lib/commands/project/api-architecture-upgrade.js +1 -1
  218. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  219. package/lib/commands/project/create/format-elapsed.js +1 -1
  220. package/lib/commands/project/create/main.js +1 -1
  221. package/lib/commands/project/create/materialize-project-template.js +1 -1
  222. package/lib/commands/project/create/project-name.js +1 -1
  223. package/lib/commands/project/create/project-template-archive.js +1 -1
  224. package/lib/commands/project/create/project-template-path.js +1 -1
  225. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  226. package/lib/commands/project/create/use-format-code.js +1 -1
  227. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  228. package/lib/commands/project/domain-routing-sync.js +1 -1
  229. package/lib/commands/project/index.js +1 -1
  230. package/lib/commands/project/upgrade.js +1 -1
  231. package/lib/commands/registry.js +1 -1
  232. package/lib/commands/role/delete.js +1 -1
  233. package/lib/commands/role/detail.js +1 -1
  234. package/lib/commands/role/index.js +1 -1
  235. package/lib/commands/role/list.js +1 -1
  236. package/lib/commands/role/shared.js +1 -1
  237. package/lib/commands/role/update.js +1 -1
  238. package/lib/commands/role/user-add.js +1 -1
  239. package/lib/commands/role/user-remove.js +1 -1
  240. package/lib/commands/role/user-resolve.js +1 -1
  241. package/lib/commands/rule/get.js +1 -1
  242. package/lib/commands/rule/index.js +1 -1
  243. package/lib/commands/rule/list.js +1 -1
  244. package/lib/commands/rule/set.js +1 -1
  245. package/lib/commands/rule/shared.js +1 -1
  246. package/lib/commands/run/index.js +1 -1
  247. package/lib/commands/schema.js +1 -1
  248. package/lib/commands/sql/create.js +1 -1
  249. package/lib/commands/sql/delete.js +1 -1
  250. package/lib/commands/sql/detail.js +1 -1
  251. package/lib/commands/sql/exec.js +1 -1
  252. package/lib/commands/sql/index.js +1 -1
  253. package/lib/commands/sql/list.js +1 -1
  254. package/lib/commands/sql/pull.js +1 -1
  255. package/lib/commands/sql/push.js +1 -1
  256. package/lib/commands/sql/shared.js +1 -1
  257. package/lib/commands/sql/status.js +1 -1
  258. package/lib/commands/sql/validate.js +1 -1
  259. package/lib/commands/task/index.js +1 -1
  260. package/lib/commands/task/status.js +1 -1
  261. package/lib/commands/tenant/index.js +1 -1
  262. package/lib/commands/tenant/members-list.js +1 -1
  263. package/lib/commands/tenant/shared.js +1 -1
  264. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  265. package/lib/commands/user-account/feishu-bind.js +1 -1
  266. package/lib/commands/user-account/index.js +1 -1
  267. package/lib/commands/workspace/add.js +1 -1
  268. package/lib/commands/workspace/index.js +1 -1
  269. package/lib/commands/workspace/remove.js +1 -1
  270. package/lib/config/domain-config.js +1 -1
  271. package/lib/config/project-domain-routing.js +1 -1
  272. package/lib/config/region-config.js +1 -1
  273. package/lib/config/schema.js +1 -1
  274. package/lib/constant/cdn.js +1 -1
  275. package/lib/constant/cli.js +1 -1
  276. package/lib/constant/defaults.js +1 -1
  277. package/lib/constant/domain.js +1 -1
  278. package/lib/constant/env.js +1 -1
  279. package/lib/constant/output.js +1 -1
  280. package/lib/constant/paths.js +1 -1
  281. package/lib/constant/region.js +1 -1
  282. package/lib/constant/risk.js +1 -1
  283. package/lib/constant/routing-profile.js +1 -1
  284. package/lib/context/app-resolver.js +1 -1
  285. package/lib/context/auth-resolver.js +1 -1
  286. package/lib/context/config-loader.js +1 -1
  287. package/lib/context.js +1 -1
  288. package/lib/core/alias-resolver.js +1 -1
  289. package/lib/core/api-client.js +1 -1
  290. package/lib/core/bff/config.js +1 -1
  291. package/lib/core/bff/file-system.js +1 -1
  292. package/lib/core/bff/hash.js +1 -1
  293. package/lib/core/bff/hook-directory.js +1 -1
  294. package/lib/core/bff/lock.js +1 -1
  295. package/lib/core/bff/utils.js +1 -1
  296. package/lib/core/cross-db-analysis.js +1 -1
  297. package/lib/core/cross-db-relation.js +1 -1
  298. package/lib/core/db-resolver.js +1 -1
  299. package/lib/core/flow-config.js +1 -1
  300. package/lib/core/instant-api-policy/config.js +1 -1
  301. package/lib/core/kb-management-client.js +1 -1
  302. package/lib/core/kb-search-client.js +1 -1
  303. package/lib/core/page/file-system.js +1 -1
  304. package/lib/core/page/hash.js +1 -1
  305. package/lib/core/page/lock.js +1 -1
  306. package/lib/core/page/lr-smart-jsx.js +1 -1
  307. package/lib/core/sql-index-auditor.js +1 -1
  308. package/lib/core/sql-sync/config.js +1 -1
  309. package/lib/core/sql-sync/file-system.js +1 -1
  310. package/lib/core/sql-sync/hash.js +1 -1
  311. package/lib/core/sql-sync/lock.js +1 -1
  312. package/lib/core/sql-sync/utils.js +1 -1
  313. package/lib/core/sql-validator.js +1 -1
  314. package/lib/errors.js +1 -1
  315. package/lib/framework/build-all-flags.js +1 -1
  316. package/lib/framework/error-output.js +1 -1
  317. package/lib/framework/explicit-yes.js +1 -1
  318. package/lib/framework/flags.js +1 -1
  319. package/lib/framework/help.js +1 -1
  320. package/lib/framework/index.js +1 -1
  321. package/lib/framework/output.js +1 -1
  322. package/lib/framework/response.js +1 -1
  323. package/lib/framework/runner-alias.js +1 -1
  324. package/lib/framework/runner.js +1 -1
  325. package/lib/framework/schema-export.js +1 -1
  326. package/lib/framework/supported-flags.js +1 -1
  327. package/lib/framework/types.js +1 -1
  328. package/lib/generated/build-info.d.ts +4 -4
  329. package/lib/generated/build-info.js +1 -1
  330. package/lib/generated/official-routing.js +1 -1
  331. package/lib/generated/routing-contract.js +1 -1
  332. package/lib/help.js +1 -1
  333. package/lib/postinstall.js +1 -1
  334. package/lib/runtime/confirmation.js +1 -1
  335. package/lib/runtime/event.js +1 -1
  336. package/lib/runtime/index.js +1 -1
  337. package/lib/runtime/queue.js +1 -1
  338. package/lib/runtime/resolve.js +1 -1
  339. package/lib/services/dataset-design/checkpoint.js +1 -1
  340. package/lib/services/dataset-design/commands.js +1 -1
  341. package/lib/services/dataset-design/contract.js +1 -1
  342. package/lib/skills/builtin-skill.js +1 -1
  343. package/lib/skills/main.js +1 -1
  344. package/lib/skills/npx-skills-add.js +1 -1
  345. package/lib/skills/skill-presence.js +1 -1
  346. package/lib/telemetry/cli-command-trace.js +1 -1
  347. package/lib/telemetry/cli-help-trace.js +1 -1
  348. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  349. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  350. package/lib/telemetry/send-cli-trace-log.js +1 -1
  351. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  352. package/lib/utils/ai_config.js +1 -1
  353. package/lib/utils/apply-jq-filter.js +1 -1
  354. package/lib/utils/cdn-config.js +1 -1
  355. package/lib/utils/check-sdk-version.js +1 -1
  356. package/lib/utils/cli-version-check.js +1 -1
  357. package/lib/utils/cli-version-policy.js +1 -1
  358. package/lib/utils/config.js +1 -1
  359. package/lib/utils/entity-with-id.js +1 -1
  360. package/lib/utils/file-utils.js +1 -1
  361. package/lib/utils/guides-cdn.js +1 -1
  362. package/lib/utils/http-client.js +1 -1
  363. package/lib/utils/is-non-interactive.js +1 -1
  364. package/lib/utils/logger.js +1 -1
  365. package/lib/utils/params.js +1 -1
  366. package/lib/utils/platform.js +1 -1
  367. package/lib/utils/sleep.js +1 -1
  368. package/lib/utils/template-replacer.js +1 -1
  369. package/lib/utils/update-notice.js +1 -1
  370. package/lib/utils/version.js +1 -1
  371. package/lib/utils/with-active-cookie.js +1 -1
  372. package/lib/utils/write-cli-side-channel.js +1 -1
  373. package/package.json +2 -2
  374. package/skills/rabetbase/SKILL.md +2 -2
  375. package/skills/rabetbase-dataset-generation/SKILL.md +2 -2
  376. package/skills/rabetbase-page-generation/SKILL.md +2 -2
  377. package/skills/rabetbase.manifest.json +3 -3
@@ -1 +1 @@
1
- const a112_0x53c48e=a112_0x3fb8;(function(_0x26ab6e,_0x2e921d){const _0x2b2af2=a112_0x3fb8,_0x18ecfb=_0x26ab6e();while(!![]){try{const _0x3ffa63=parseInt(_0x2b2af2(0x166))/0x1+parseInt(_0x2b2af2(0x158))/0x2+parseInt(_0x2b2af2(0x157))/0x3+parseInt(_0x2b2af2(0x15b))/0x4*(-parseInt(_0x2b2af2(0x163))/0x5)+parseInt(_0x2b2af2(0x152))/0x6*(parseInt(_0x2b2af2(0x167))/0x7)+-parseInt(_0x2b2af2(0x159))/0x8*(parseInt(_0x2b2af2(0x148))/0x9)+parseInt(_0x2b2af2(0x165))/0xa*(-parseInt(_0x2b2af2(0x160))/0xb);if(_0x3ffa63===_0x2e921d)break;else _0x18ecfb['push'](_0x18ecfb['shift']());}catch(_0xf70462){_0x18ecfb['push'](_0x18ecfb['shift']());}}}(a112_0x5a09,0xea2d5));function a112_0x3fb8(_0x28672e,_0x523160){_0x28672e=_0x28672e-0x143;const _0x5a092a=a112_0x5a09();let _0x3fb8e1=_0x5a092a[_0x28672e];return _0x3fb8e1;}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_0x5a09(){const _0x4aff8e=['Compare\x20datasets\x20with\x20physical\x20database\x20tables\x20and\x20show\x20schema\x20drift','physicalTableCount','fieldDiff','6SAOson','\x20(db\x20link\x20','NEW_TABLE','num','DELETED_TABLE','4861215dwbOyj','2068794ndzBid','3064gSiZni','appCode','13564lRSvsN','modifiedColumns','tableName','\x20changed\x20table\x20row(s),\x20total\x20','number','209WfaTwA','table','Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)','1945yaqINr','length','1304670YXNRei','1641874yKiIfd','7295834SdqeTY','all','diffType','Fetch\x20and\x20aggregate\x20every\x20page\x20(overrides\x20--page\x20and\x20--pagesize)','filter','datasetTableCount','read','addedColumns','totalCount','summary','13671NfXcOy','page','string','tableList','map','boolean','MODIFIED_TABLE'];a112_0x5a09=function(){return _0x4aff8e;};return a112_0x5a09();}export const dbDiff={'service':'db','command':'diff','description':a112_0x53c48e(0x14f),'risk':a112_0x53c48e(0x144),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a112_0x53c48e(0x161),'type':a112_0x53c48e(0x14a),'description':a112_0x53c48e(0x162)},{'name':a112_0x53c48e(0x149),'type':a112_0x53c48e(0x15f),'description':'Page\x20index\x20(1-based)','default':0x1},{'name':'pagesize','type':a112_0x53c48e(0x15f),'description':'Page\x20size','default':0x14},{'name':a112_0x53c48e(0x168),'type':a112_0x53c48e(0x14d),'description':a112_0x53c48e(0x16a)}],async 'execute'(_0x5d1365){const _0x598f4b=a112_0x53c48e,_0xb067e2=_0x5d1365[_0x598f4b(0x155)]('id'),_0x511fbc=_0x5d1365['bool'](_0x598f4b(0x168)),_0xfffed9=_0x511fbc?0x1:_0x5d1365[_0x598f4b(0x155)]('page',0x1)||0x1,_0x3ead9b=_0x511fbc?DB_TABLE_PAGE_SIZE:_0x5d1365['num']('pagesize',0x14)||0x14,_0x58e035=_0x5d1365['str'](_0x598f4b(0x161))||undefined,_0xd2c0e3=_0x511fbc?await getAllDbTableDiff(getDbTableDiff,_0x5d1365[_0x598f4b(0x15a)],_0xb067e2,_0x58e035):await getDbTableDiff(_0x5d1365[_0x598f4b(0x15a)],_0xb067e2,{'pageIndex':_0xfffed9,'pageSize':_0x3ead9b,'tableName':_0x58e035}),_0x1ce593=_0xd2c0e3[_0x598f4b(0x14b)],_0x1329fb=summarizeDbTableDiff(_0x1ce593),_0x2f5814=_0x1ce593[_0x598f4b(0x16b)](_0x12071a=>_0x12071a[_0x598f4b(0x169)]===_0x598f4b(0x154)||_0x12071a['diffType']==='MODIFIED_TABLE')[_0x598f4b(0x14c)](_0xd02829=>_0xd02829[_0x598f4b(0x15d)]),_0x586600=_0x1ce593['filter'](_0x18e105=>_0x18e105[_0x598f4b(0x169)]===_0x598f4b(0x156))[_0x598f4b(0x14c)](_0x357984=>_0x357984[_0x598f4b(0x15d)]),_0x54e31b=_0x1ce593['filter'](_0x3cbeeb=>_0x3cbeeb[_0x598f4b(0x169)]===_0x598f4b(0x14e))[_0x598f4b(0x14c)](_0x1b10de=>({'tableName':_0x1b10de[_0x598f4b(0x15d)],'addedColumns':_0x1b10de['fieldDiff']?.[_0x598f4b(0x145)]??[],'deletedColumns':_0x1b10de[_0x598f4b(0x151)]?.['deletedColumns']??[],'modifiedColumns':_0x1b10de['fieldDiff']?.[_0x598f4b(0x15c)]??[]}));return{'ok':!![],'data':{'dbLinkId':_0xb067e2,'page':_0xfffed9,'pageSize':_0x3ead9b,'totalCount':_0xd2c0e3['totalCount'],...typeof _0xd2c0e3[_0x598f4b(0x150)]===_0x598f4b(0x15f)?{'physicalTableCount':_0xd2c0e3[_0x598f4b(0x150)]}:{},...typeof _0xd2c0e3[_0x598f4b(0x143)]==='number'?{'datasetTableCount':_0xd2c0e3[_0x598f4b(0x143)]}:{},..._0xd2c0e3[_0x598f4b(0x147)]?{'summary':_0xd2c0e3[_0x598f4b(0x147)]}:{},'summaryByType':_0x1329fb,'toAnalyzeTables':_0x2f5814,'deletedTables':_0x586600,'modifiedFieldDiffs':_0x54e31b,'tables':_0x1ce593},'message':_0x1ce593[_0x598f4b(0x164)]+_0x598f4b(0x15e)+_0xd2c0e3[_0x598f4b(0x146)]+_0x598f4b(0x153)+_0xb067e2+')'};}};
1
+ const a112_0x3f4e23=a112_0xe5f5;function a112_0x33c7(){const _0x2cc76e=['boolean','8039034fnHscC','str','number','216tuOhIb','pagesize','read','2584464nzdnkC','tableList','3615TyOOmg','fieldDiff','227738nJtOky','summary','filter','string','NEW_TABLE','page','Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)','deletedColumns','18fSPRyk','402130ceKfFH','20564kXnMBm','modifiedColumns','8730939gaSNFG','addedColumns','diff','appCode','datasetTableCount','diffType','totalCount','num','tableName','bool','DELETED_TABLE','\x20(db\x20link\x20','map','Page\x20size','5300obaFYb','all','table','Page\x20index\x20(1-based)','length','Compare\x20datasets\x20with\x20physical\x20database\x20tables\x20and\x20show\x20schema\x20drift'];a112_0x33c7=function(){return _0x2cc76e;};return a112_0x33c7();}(function(_0x4834a5,_0x523665){const _0x3d250e=a112_0xe5f5,_0x4b0f60=_0x4834a5();while(!![]){try{const _0x53aac3=-parseInt(_0x3d250e(0xf2))/0x1+-parseInt(_0x3d250e(0x113))/0x2*(parseInt(_0x3d250e(0xf0))/0x3)+-parseInt(_0x3d250e(0x102))/0x4*(-parseInt(_0x3d250e(0x111))/0x5)+parseInt(_0x3d250e(0x109))/0x6+-parseInt(_0x3d250e(0xf4))/0x7+-parseInt(_0x3d250e(0x10f))/0x8+-parseInt(_0x3d250e(0x10c))/0x9*(-parseInt(_0x3d250e(0xf1))/0xa);if(_0x53aac3===_0x523665)break;else _0x4b0f60['push'](_0x4b0f60['shift']());}catch(_0x493f92){_0x4b0f60['push'](_0x4b0f60['shift']());}}}(a112_0x33c7,0xf168d));function a112_0xe5f5(_0xdbea2d,_0x17a149){_0xdbea2d=_0xdbea2d-0xea;const _0x33c721=a112_0x33c7();let _0xe5f5e5=_0x33c721[_0xdbea2d];return _0xe5f5e5;}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';export const dbDiff={'service':'db','command':a112_0x3f4e23(0xf6),'description':a112_0x3f4e23(0x107),'risk':a112_0x3f4e23(0x10e),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':'table','type':a112_0x3f4e23(0xeb),'description':a112_0x3f4e23(0xee)},{'name':a112_0x3f4e23(0xed),'type':a112_0x3f4e23(0x10b),'description':a112_0x3f4e23(0x105),'default':0x1},{'name':a112_0x3f4e23(0x10d),'type':'number','description':a112_0x3f4e23(0x101),'default':0x14},{'name':a112_0x3f4e23(0x103),'type':a112_0x3f4e23(0x108),'description':'Fetch\x20and\x20aggregate\x20every\x20page\x20(overrides\x20--page\x20and\x20--pagesize)'}],async 'execute'(_0x9903cf){const _0x20d2c0=a112_0x3f4e23,_0x306912=_0x9903cf['num']('id'),_0x37d339=_0x9903cf[_0x20d2c0(0xfd)]('all'),_0x286e4f=_0x37d339?0x1:_0x9903cf[_0x20d2c0(0xfb)](_0x20d2c0(0xed),0x1)||0x1,_0x345ff7=_0x37d339?DB_TABLE_PAGE_SIZE:_0x9903cf[_0x20d2c0(0xfb)](_0x20d2c0(0x10d),0x14)||0x14,_0x592437=_0x9903cf[_0x20d2c0(0x10a)](_0x20d2c0(0x104))||undefined,_0xe8c828=_0x37d339?await getAllDbTableDiff(getDbTableDiff,_0x9903cf[_0x20d2c0(0xf7)],_0x306912,_0x592437):await getDbTableDiff(_0x9903cf[_0x20d2c0(0xf7)],_0x306912,{'pageIndex':_0x286e4f,'pageSize':_0x345ff7,'tableName':_0x592437}),_0x273a91=_0xe8c828[_0x20d2c0(0x110)],_0xe41f94=summarizeDbTableDiff(_0x273a91),_0xabb06d=_0x273a91[_0x20d2c0(0xea)](_0x556f05=>_0x556f05[_0x20d2c0(0xf9)]===_0x20d2c0(0xec)||_0x556f05['diffType']==='MODIFIED_TABLE')[_0x20d2c0(0x100)](_0x2d8a48=>_0x2d8a48['tableName']),_0x20a9c5=_0x273a91[_0x20d2c0(0xea)](_0x129f67=>_0x129f67['diffType']===_0x20d2c0(0xfe))['map'](_0x283b92=>_0x283b92[_0x20d2c0(0xfc)]),_0x294a33=_0x273a91[_0x20d2c0(0xea)](_0x5e1931=>_0x5e1931['diffType']==='MODIFIED_TABLE')[_0x20d2c0(0x100)](_0x561670=>({'tableName':_0x561670[_0x20d2c0(0xfc)],'addedColumns':_0x561670[_0x20d2c0(0x112)]?.[_0x20d2c0(0xf5)]??[],'deletedColumns':_0x561670[_0x20d2c0(0x112)]?.[_0x20d2c0(0xef)]??[],'modifiedColumns':_0x561670[_0x20d2c0(0x112)]?.[_0x20d2c0(0xf3)]??[]}));return{'ok':!![],'data':{'dbLinkId':_0x306912,'page':_0x286e4f,'pageSize':_0x345ff7,'totalCount':_0xe8c828[_0x20d2c0(0xfa)],...typeof _0xe8c828['physicalTableCount']===_0x20d2c0(0x10b)?{'physicalTableCount':_0xe8c828['physicalTableCount']}:{},...typeof _0xe8c828['datasetTableCount']==='number'?{'datasetTableCount':_0xe8c828[_0x20d2c0(0xf8)]}:{},..._0xe8c828[_0x20d2c0(0x114)]?{'summary':_0xe8c828['summary']}:{},'summaryByType':_0xe41f94,'toAnalyzeTables':_0xabb06d,'deletedTables':_0x20a9c5,'modifiedFieldDiffs':_0x294a33,'tables':_0x273a91},'message':_0x273a91[_0x20d2c0(0x106)]+'\x20changed\x20table\x20row(s),\x20total\x20'+_0xe8c828[_0x20d2c0(0xfa)]+_0x20d2c0(0xff)+_0x306912+')'};}};
@@ -1 +1 @@
1
- (function(_0x29fe95,_0x2ce95e){const _0x1f8c19=a113_0x53a6,_0x2a267d=_0x29fe95();while(!![]){try{const _0x46dbd0=-parseInt(_0x1f8c19(0x15b))/0x1*(parseInt(_0x1f8c19(0x156))/0x2)+-parseInt(_0x1f8c19(0x15d))/0x3+parseInt(_0x1f8c19(0x158))/0x4+parseInt(_0x1f8c19(0x15c))/0x5+parseInt(_0x1f8c19(0x157))/0x6+parseInt(_0x1f8c19(0x15e))/0x7*(parseInt(_0x1f8c19(0x159))/0x8)+parseInt(_0x1f8c19(0x15a))/0x9*(-parseInt(_0x1f8c19(0x15f))/0xa);if(_0x46dbd0===_0x2ce95e)break;else _0x2a267d['push'](_0x2a267d['shift']());}catch(_0x16ce65){_0x2a267d['push'](_0x2a267d['shift']());}}}(a113_0x9fe1,0x6e0d8));function a113_0x53a6(_0x859eb0,_0x22991a){_0x859eb0=_0x859eb0-0x156;const _0x9fe1d1=a113_0x9fe1();let _0x53a6bc=_0x9fe1d1[_0x859eb0];return _0x53a6bc;}import{dbList}from'../../commands/db/list.js';import{dbDetail}from'../../commands/db/detail.js';import{dbCreate}from'../../commands/db/create.js';import{dbUpdate}from'../../commands/db/update.js';import{dbDelete}from'../../commands/db/delete.js';import{dbTest}from'../../commands/db/test.js';import{dbAnalyzeBatchPlan}from'../../commands/db/analyze-batch-plan.js';import{dbAnalyzeStart}from'../../commands/db/analyze-start.js';import{dbAnalyzeCancel}from'../../commands/db/analyze-cancel.js';import{dbAnalyzeStatus}from'../../commands/db/analyze-status.js';import{dbCrossAnalyzeStart}from'../../commands/db/cross-db-analyze-start.js';import{dbCrossAnalyzeStatus}from'../../commands/db/cross-db-analyze-status.js';import{dbCrossAnalyzeLatest}from'../../commands/db/cross-db-analyze-latest.js';import{dbTables}from'../../commands/db/tables.js';function a113_0x9fe1(){const _0x547446=['20060irNROX','254222AkAuGt','379596VcqpHW','2372040wQNyyt','1626216xvIBXF','4842BbGdtg','5JwREJW','4230080CJFwHg','449523buohpS','28cfvaKR'];a113_0x9fe1=function(){return _0x547446;};return a113_0x9fe1();}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(_0x1dbf55,_0xb189c){const _0x4f53a1=a113_0x214e,_0x1a8742=_0x1dbf55();while(!![]){try{const _0x484f12=parseInt(_0x4f53a1(0x7a))/0x1+parseInt(_0x4f53a1(0x7f))/0x2*(parseInt(_0x4f53a1(0x82))/0x3)+parseInt(_0x4f53a1(0x7d))/0x4*(-parseInt(_0x4f53a1(0x78))/0x5)+parseInt(_0x4f53a1(0x79))/0x6+parseInt(_0x4f53a1(0x81))/0x7*(-parseInt(_0x4f53a1(0x7e))/0x8)+-parseInt(_0x4f53a1(0x7c))/0x9+parseInt(_0x4f53a1(0x80))/0xa*(parseInt(_0x4f53a1(0x7b))/0xb);if(_0x484f12===_0xb189c)break;else _0x1a8742['push'](_0x1a8742['shift']());}catch(_0x3068fe){_0x1a8742['push'](_0x1a8742['shift']());}}}(a113_0xe822,0xa3df4));import{dbList}from'../../commands/db/list.js';import{dbDetail}from'../../commands/db/detail.js';function a113_0xe822(){const _0x5442fe=['5961490KXTgim','7sxMGJT','2862498VKWDXU','4386630cOyERX','6311358PoNvCI','454932YwaHgm','11YsBoBm','5247081xLjCsJ','4tzABIo','7404680orcXjW','2WLamQP'];a113_0xe822=function(){return _0x5442fe;};return a113_0xe822();}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_0x214e(_0x2b7719,_0x39ea03){_0x2b7719=_0x2b7719-0x78;const _0xe822a6=a113_0xe822();let _0x214e5e=_0xe822a6[_0x2b7719];return _0x214e5e;}import{dbAnalyzeCancel}from'../../commands/db/analyze-cancel.js';import{dbAnalyzeStatus}from'../../commands/db/analyze-status.js';import{dbCrossAnalyzeStart}from'../../commands/db/cross-db-analyze-start.js';import{dbCrossAnalyzeStatus}from'../../commands/db/cross-db-analyze-status.js';import{dbCrossAnalyzeLatest}from'../../commands/db/cross-db-analyze-latest.js';import{dbTables}from'../../commands/db/tables.js';import{dbDiff}from'../../commands/db/diff.js';import{dbDiffRefreshStart}from'../../commands/db/diff-refresh-start.js';import{dbDiffRefreshStatus}from'../../commands/db/diff-refresh-status.js';export const dbDefinitions=[dbList,dbDetail,dbCreate,dbUpdate,dbDelete,dbTest,dbAnalyzeBatchPlan,dbAnalyzeStart,dbAnalyzeCancel,dbAnalyzeStatus,dbCrossAnalyzeStart,dbCrossAnalyzeStatus,dbCrossAnalyzeLatest,dbTables,dbDiff,dbDiffRefreshStart,dbDiffRefreshStatus];
@@ -1 +1 @@
1
- const a114_0xf1b078=a114_0x4c81;(function(_0x48bc76,_0x3cc31c){const _0x379a2d=a114_0x4c81,_0x512cad=_0x48bc76();while(!![]){try{const _0x1feead=-parseInt(_0x379a2d(0x13b))/0x1*(parseInt(_0x379a2d(0x129))/0x2)+-parseInt(_0x379a2d(0x133))/0x3*(parseInt(_0x379a2d(0x12b))/0x4)+parseInt(_0x379a2d(0x12a))/0x5+parseInt(_0x379a2d(0x12e))/0x6+parseInt(_0x379a2d(0x12c))/0x7+-parseInt(_0x379a2d(0x13a))/0x8+-parseInt(_0x379a2d(0x137))/0x9;if(_0x1feead===_0x3cc31c)break;else _0x512cad['push'](_0x512cad['shift']());}catch(_0x481ce8){_0x512cad['push'](_0x512cad['shift']());}}}(a114_0x3e04,0xc07b5));import{listDatasets,listDbLinks}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{buildDbDatasetDependency,sanitizeDbLinkForOutput}from'../../commands/db/shared.js';function a114_0x4c81(_0xf1a3b0,_0x2c1b74){_0xf1a3b0=_0xf1a3b0-0x127;const _0x3e04cb=a114_0x3e04();let _0x4c8108=_0x3e04cb[_0xf1a3b0];return _0x4c8108;}export const dbList={'service':'db','command':a114_0xf1b078(0x139),'description':'List\x20database\x20connections\x20(dblinks)\x20for\x20the\x20current\x20app\x20with\x20analysis\x20status\x20—\x20for\x20AI\x20to\x20pick\x20ids\x20before\x20db\x20detail\x20/\x20analyze\x20/\x20tables','risk':a114_0xf1b078(0x12d),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a114_0xf1b078(0x128),'type':a114_0xf1b078(0x127),'description':a114_0xf1b078(0x136),'default':0x1},{'name':a114_0xf1b078(0x138),'type':a114_0xf1b078(0x127),'description':'Page\x20size','default':0x64}],async 'execute'(_0x49b95d){const _0x31e00d=a114_0xf1b078,_0x1d92b4=_0x49b95d[_0x31e00d(0x131)](_0x31e00d(0x128),0x1)||0x1,_0x42bc0c=_0x49b95d[_0x31e00d(0x131)](_0x31e00d(0x138),0x64)||0x64,[{items:_0x2aa401,paging:_0xc423ae},_0x10e547]=await Promise['all']([listDbLinks(_0x49b95d['appCode'],{'currentPage':_0x1d92b4,'pageSize':_0x42bc0c}),listDatasets(_0x49b95d['appCode'],{'source':_0x31e00d(0x130)})]),_0xaebed3=_0x2aa401[_0x31e00d(0x134)](_0xe6283c=>({...sanitizeDbLinkForOutput(_0xe6283c),'datasetDependency':buildDbDatasetDependency(_0xe6283c,_0x10e547)['datasetDependency']})),_0x251c42=_0xc423ae?_0xc423ae:{'currentPage':_0x1d92b4,'pageSize':_0x42bc0c,'rowsOnPage':_0xaebed3['length'],'totalCount':null,'note':_0x31e00d(0x12f)};return{'ok':!![],'data':{'connections':_0xaebed3,'paging':_0x251c42},'message':'Found\x20'+_0xaebed3[_0x31e00d(0x132)]+_0x31e00d(0x135)};}};function a114_0x3e04(){const _0x5e90b9=['5592916KebpCE','read','8908896IgetaD','Server\x20omitted\x20paging\x20metadata;\x20totalCount\x20is\x20unknown\x20—\x20rowsOnPage\x20is\x20this\x20page\x20only','DB_TABLE','num','length','9mNAWVX','map','\x20database\x20connection(s)','Page\x20index\x20(1-based)','1788084ZJQBUk','pagesize','list','7146256QrMOnp','283211DDQTRn','number','page','6CSxeje','3591805dZuKEj','362892PgAafC'];a114_0x3e04=function(){return _0x5e90b9;};return a114_0x3e04();}
1
+ const a114_0x38a997=a114_0x29ad;function a114_0x29ad(_0x59e4ab,_0x33b754){_0x59e4ab=_0x59e4ab-0x1f1;const _0x192a01=a114_0x192a();let _0x29adc0=_0x192a01[_0x59e4ab];return _0x29adc0;}(function(_0x55d524,_0x39e73f){const _0x4d4750=a114_0x29ad,_0x39bc0d=_0x55d524();while(!![]){try{const _0x172148=-parseInt(_0x4d4750(0x206))/0x1+parseInt(_0x4d4750(0x1f1))/0x2+parseInt(_0x4d4750(0x1f9))/0x3+parseInt(_0x4d4750(0x201))/0x4*(parseInt(_0x4d4750(0x1f6))/0x5)+-parseInt(_0x4d4750(0x1fe))/0x6*(parseInt(_0x4d4750(0x1f3))/0x7)+parseInt(_0x4d4750(0x1f8))/0x8+-parseInt(_0x4d4750(0x1fa))/0x9;if(_0x172148===_0x39e73f)break;else _0x39bc0d['push'](_0x39bc0d['shift']());}catch(_0x8769f9){_0x39bc0d['push'](_0x39bc0d['shift']());}}}(a114_0x192a,0x22d35));import{listDatasets,listDbLinks}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a114_0x192a(){const _0x4e39ef=['read','20EoGUPi','appCode','DB_TABLE','Server\x20omitted\x20paging\x20metadata;\x20totalCount\x20is\x20unknown\x20—\x20rowsOnPage\x20is\x20this\x20page\x20only','page','189500BDWjZg','96184EDsHoG','length','854apUWFN','number','num','280065TegetR','pagesize','799224sAskjx','63858MlDOaz','1040535iqAKbG','list','Found\x20','map','78hlUPAB','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'];a114_0x192a=function(){return _0x4e39ef;};return a114_0x192a();}import{buildDbDatasetDependency,sanitizeDbLinkForOutput}from'../../commands/db/shared.js';export const dbList={'service':'db','command':a114_0x38a997(0x1fb),'description':a114_0x38a997(0x1ff),'risk':a114_0x38a997(0x200),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a114_0x38a997(0x205),'type':'number','description':'Page\x20index\x20(1-based)','default':0x1},{'name':'pagesize','type':a114_0x38a997(0x1f4),'description':'Page\x20size','default':0x64}],async 'execute'(_0x11737d){const _0x19cdb1=a114_0x38a997,_0x2737b6=_0x11737d[_0x19cdb1(0x1f5)](_0x19cdb1(0x205),0x1)||0x1,_0x546234=_0x11737d[_0x19cdb1(0x1f5)](_0x19cdb1(0x1f7),0x64)||0x64,[{items:_0x3891c5,paging:_0xae6cfd},_0x3ccea9]=await Promise['all']([listDbLinks(_0x11737d['appCode'],{'currentPage':_0x2737b6,'pageSize':_0x546234}),listDatasets(_0x11737d[_0x19cdb1(0x202)],{'source':_0x19cdb1(0x203)})]),_0x1b2f9e=_0x3891c5[_0x19cdb1(0x1fd)](_0x2b6a5b=>({...sanitizeDbLinkForOutput(_0x2b6a5b),'datasetDependency':buildDbDatasetDependency(_0x2b6a5b,_0x3ccea9)['datasetDependency']})),_0x254c13=_0xae6cfd?_0xae6cfd:{'currentPage':_0x2737b6,'pageSize':_0x546234,'rowsOnPage':_0x1b2f9e[_0x19cdb1(0x1f2)],'totalCount':null,'note':_0x19cdb1(0x204)};return{'ok':!![],'data':{'connections':_0x1b2f9e,'paging':_0x254c13},'message':_0x19cdb1(0x1fc)+_0x1b2f9e[_0x19cdb1(0x1f2)]+'\x20database\x20connection(s)'};}};
@@ -1 +1 @@
1
- (function(_0x543587,_0x145ce3){const _0x48b23d=a115_0x5c71,_0x7cf45e=_0x543587();while(!![]){try{const _0xa25faa=-parseInt(_0x48b23d(0x16f))/0x1+-parseInt(_0x48b23d(0x15e))/0x2+-parseInt(_0x48b23d(0x161))/0x3*(parseInt(_0x48b23d(0x165))/0x4)+-parseInt(_0x48b23d(0x168))/0x5+-parseInt(_0x48b23d(0x159))/0x6*(parseInt(_0x48b23d(0x16e))/0x7)+-parseInt(_0x48b23d(0x15d))/0x8*(-parseInt(_0x48b23d(0x15b))/0x9)+parseInt(_0x48b23d(0x179))/0xa;if(_0xa25faa===_0x145ce3)break;else _0x7cf45e['push'](_0x7cf45e['shift']());}catch(_0x168a8f){_0x7cf45e['push'](_0x7cf45e['shift']());}}}(a115_0x1835,0x78bdf));import{testDbLinkConfigConnect}from'../../core/api-client.js';import{getAppBaseUrl}from'../../constant/domain.js';import{CliErrors}from'../../errors.js';function shouldRedactKey(_0x940e27){const _0x3e9504=a115_0x5c71,_0x2cef08=_0x940e27[_0x3e9504(0x16b)]();if(_0x2cef08===_0x3e9504(0x157)||_0x2cef08==='passwd'||_0x2cef08===_0x3e9504(0x15f))return!![];if(_0x2cef08['includes'](_0x3e9504(0x178))||_0x2cef08['includes']('token')||_0x2cef08[_0x3e9504(0x160)]('credential'))return!![];if(_0x2cef08[_0x3e9504(0x160)](_0x3e9504(0x171))||_0x2cef08[_0x3e9504(0x160)](_0x3e9504(0x177)))return!![];if(_0x2cef08===_0x3e9504(0x164)||_0x2cef08===_0x3e9504(0x176)||_0x2cef08===_0x3e9504(0x16a))return!![];return![];}export function sanitizeDbLinkForOutput(_0x11cc0e){const _0x31ea7d=a115_0x5c71,_0x212b45={..._0x11cc0e};delete _0x212b45[_0x31ea7d(0x174)];for(const _0x2a59a7 of Object[_0x31ea7d(0x156)](_0x212b45)){if(!shouldRedactKey(_0x2a59a7))continue;const _0x33fd19=_0x212b45[_0x2a59a7];_0x33fd19!=null&&String(_0x33fd19)[_0x31ea7d(0x169)]>0x0&&(_0x212b45[_0x2a59a7]=_0x31ea7d(0x172));}return _0x212b45;}export function sanitizeDbLinkList(_0x541b60){const _0x128671=a115_0x5c71;return _0x541b60[_0x128671(0x170)](_0x1df953=>sanitizeDbLinkForOutput(_0x1df953));}function a115_0x1835(){const _0x141069=['accesskey','secret','16076590HJxnSt','Database\x20connection\x20preflight\x20failed.','keys','password','trim','42CzyfEM','isFinite','9xErkhD','The\x20configuration\x20was\x20not\x20saved.\x20Verify\x20the\x20host,\x20credentials,\x20database\x20name,\x20network,\x20and\x20allowlist,\x20or\x20explicitly\x20pass\x20--skip-connection-test.','7448352GDvbuw','1703090NErxQa','dbpassword','includes','1898049AkTknM','filter','test','authorization','4efpcMA','apiError','dbtableConfig','13585MdSkLD','length','jdbcurl','toLowerCase','/data/er?dbId=','number','54439pszNeN','502760DgjDot','map','privatekey','[redacted]','/data/database','hasAvailableDo','tableName','connectionstring'];a115_0x1835=function(){return _0x141069;};return a115_0x1835();}function a115_0x5c71(_0x2f2018,_0x525568){_0x2f2018=_0x2f2018-0x155;const _0x1835f9=a115_0x1835();let _0x5c7188=_0x1835f9[_0x2f2018];return _0x5c7188;}export function buildDbDatasetDependency(_0xb76846,_0x52c5ee){const _0x324843=a115_0x5c71,_0x516195=_0x52c5ee[_0x324843(0x162)](_0x74e4ab=>Number(_0x74e4ab['dbtableConfig']?.['dbId'])===Number(_0xb76846['id']))[_0x324843(0x170)](_0xcc14=>({'id':_0xcc14['id'],'code':_0xcc14['code'],'name':_0xcc14['name'],..._0xcc14[_0x324843(0x167)]?.[_0x324843(0x175)]?{'tableName':_0xcc14['dbtableConfig'][_0x324843(0x175)]}:{}}));return{'datasetDependency':{'hasDependencies':_0x516195[_0x324843(0x169)]>0x0,'activeDatasetCount':_0x516195[_0x324843(0x169)]},'datasets':_0x516195};}export async function assertDbLinkConnectionPreflight(_0x2287b6){const _0x5b3a1a=a115_0x5c71,_0x2b431a=await testDbLinkConfigConnect(_0x2287b6);if(_0x2b431a!==!![])throw CliErrors[_0x5b3a1a(0x166)](_0x5b3a1a(0x155),_0x5b3a1a(0x15c));}const DB_URL_PATTERN=/^[^\s:]+(?::\d+)?$/;export function validateDbUrl(_0x505ca5){const _0x5192fd=a115_0x5c71,_0x4b29a5=_0x505ca5[_0x5192fd(0x158)]();if(!_0x4b29a5)return![];return DB_URL_PATTERN[_0x5192fd(0x163)](_0x4b29a5);}export function buildDbPageLinks(_0x281819,_0x286c71){const _0x272088=a115_0x5c71,_0x3561dc=_0x281819?.[_0x272088(0x158)]();if(!_0x3561dc)return undefined;const _0x45bed2=typeof _0x286c71===_0x272088(0x16d)?String(_0x286c71):String(_0x286c71??'')[_0x272088(0x158)]();if(!_0x45bed2)return undefined;const _0x57302e=Number(_0x45bed2);if(!Number[_0x272088(0x15a)](_0x57302e)||_0x57302e<=0x0)return undefined;const _0x20c521=getAppBaseUrl(_0x3561dc),_0xe075f=encodeURIComponent(String(_0x57302e));return{'databasePage':_0x20c521+_0x272088(0x173),'erPage':_0x20c521+_0x272088(0x16c)+_0xe075f};}
1
+ (function(_0x528263,_0x3e031f){const _0x561d4a=a115_0x350d,_0x3bb9ec=_0x528263();while(!![]){try{const _0x4ffc53=parseInt(_0x561d4a(0x1b8))/0x1*(-parseInt(_0x561d4a(0x198))/0x2)+-parseInt(_0x561d4a(0x197))/0x3+-parseInt(_0x561d4a(0x1a3))/0x4+parseInt(_0x561d4a(0x19e))/0x5+parseInt(_0x561d4a(0x1a6))/0x6*(-parseInt(_0x561d4a(0x195))/0x7)+parseInt(_0x561d4a(0x1a0))/0x8+parseInt(_0x561d4a(0x1a8))/0x9;if(_0x4ffc53===_0x3e031f)break;else _0x3bb9ec['push'](_0x3bb9ec['shift']());}catch(_0x541e96){_0x3bb9ec['push'](_0x3bb9ec['shift']());}}}(a115_0x4303,0xd8010));import{testDbLinkConfigConnect}from'../../core/api-client.js';function a115_0x350d(_0xc4cc4a,_0x48256f){_0xc4cc4a=_0xc4cc4a-0x194;const _0x43036c=a115_0x4303();let _0x350dc5=_0x43036c[_0xc4cc4a];return _0x350dc5;}import{getAppBaseUrl}from'../../constant/domain.js';import{CliErrors}from'../../errors.js';function shouldRedactKey(_0x21a38c){const _0x1e5e22=a115_0x350d,_0x5565f0=_0x21a38c[_0x1e5e22(0x1a4)]();if(_0x5565f0===_0x1e5e22(0x19b)||_0x5565f0===_0x1e5e22(0x1ab)||_0x5565f0===_0x1e5e22(0x1ac))return!![];if(_0x5565f0[_0x1e5e22(0x19c)](_0x1e5e22(0x19f))||_0x5565f0[_0x1e5e22(0x19c)](_0x1e5e22(0x196))||_0x5565f0['includes'](_0x1e5e22(0x1b9)))return!![];if(_0x5565f0[_0x1e5e22(0x19c)](_0x1e5e22(0x19a))||_0x5565f0[_0x1e5e22(0x19c)](_0x1e5e22(0x1a2)))return!![];if(_0x5565f0===_0x1e5e22(0x1b6)||_0x5565f0===_0x1e5e22(0x199)||_0x5565f0===_0x1e5e22(0x1a1))return!![];return![];}export function sanitizeDbLinkForOutput(_0x512501){const _0x4eac05=a115_0x350d,_0x3d1231={..._0x512501};delete _0x3d1231[_0x4eac05(0x1a9)];for(const _0x2619c2 of Object[_0x4eac05(0x194)](_0x3d1231)){if(!shouldRedactKey(_0x2619c2))continue;const _0x5c600d=_0x3d1231[_0x2619c2];_0x5c600d!=null&&String(_0x5c600d)[_0x4eac05(0x1b3)]>0x0&&(_0x3d1231[_0x2619c2]='[redacted]');}return _0x3d1231;}export function sanitizeDbLinkList(_0x49d185){const _0x17a655=a115_0x350d;return _0x49d185[_0x17a655(0x1b1)](_0x3b9a59=>sanitizeDbLinkForOutput(_0x3b9a59));}export function buildDbDatasetDependency(_0x2cd723,_0x228bf9){const _0x2d853e=a115_0x350d,_0x562845=_0x228bf9[_0x2d853e(0x1b7)](_0x3dadf9=>Number(_0x3dadf9[_0x2d853e(0x1ad)]?.['dbId'])===Number(_0x2cd723['id']))[_0x2d853e(0x1b1)](_0x2dbda2=>({'id':_0x2dbda2['id'],'code':_0x2dbda2[_0x2d853e(0x1aa)],'name':_0x2dbda2[_0x2d853e(0x1b5)],..._0x2dbda2['dbtableConfig']?.[_0x2d853e(0x1b2)]?{'tableName':_0x2dbda2[_0x2d853e(0x1ad)][_0x2d853e(0x1b2)]}:{}}));return{'datasetDependency':{'hasDependencies':_0x562845[_0x2d853e(0x1b3)]>0x0,'activeDatasetCount':_0x562845[_0x2d853e(0x1b3)]},'datasets':_0x562845};}export async function assertDbLinkConnectionPreflight(_0x44f180){const _0x22fa19=a115_0x350d,_0x4a02ec=await testDbLinkConfigConnect(_0x44f180);if(_0x4a02ec!==!![])throw CliErrors[_0x22fa19(0x1ae)](_0x22fa19(0x1a5),_0x22fa19(0x1af));}const DB_URL_PATTERN=/^[^\s:]+(?::\d+)?$/;export function validateDbUrl(_0x978fa1){const _0x3854b8=_0x978fa1['trim']();if(!_0x3854b8)return![];return DB_URL_PATTERN['test'](_0x3854b8);}export function buildDbPageLinks(_0x405e47,_0x103f82){const _0x9ad563=a115_0x350d,_0x4007cf=_0x405e47?.[_0x9ad563(0x1a7)]();if(!_0x4007cf)return undefined;const _0x2ab5ed=typeof _0x103f82===_0x9ad563(0x1b0)?String(_0x103f82):String(_0x103f82??'')['trim']();if(!_0x2ab5ed)return undefined;const _0x22550c=Number(_0x2ab5ed);if(!Number[_0x9ad563(0x1b4)](_0x22550c)||_0x22550c<=0x0)return undefined;const _0x862aad=getAppBaseUrl(_0x4007cf),_0x50b687=encodeURIComponent(String(_0x22550c));return{'databasePage':_0x862aad+'/data/database','erPage':_0x862aad+_0x9ad563(0x19d)+_0x50b687};}function a115_0x4303(){const _0x2b7089=['privatekey','password','includes','/data/er?dbId=','3764925wbnMVr','secret','9832432Jiibeo','jdbcurl','accesskey','6137420YyQXzv','toLowerCase','Database\x20connection\x20preflight\x20failed.','17004dcxoBo','trim','37291914aiSokN','hasAvailableDo','code','passwd','dbpassword','dbtableConfig','apiError','The\x20configuration\x20was\x20not\x20saved.\x20Verify\x20the\x20host,\x20credentials,\x20database\x20name,\x20network,\x20and\x20allowlist,\x20or\x20explicitly\x20pass\x20--skip-connection-test.','number','map','tableName','length','isFinite','name','authorization','filter','27809TFhdCQ','credential','keys','3150ucJixR','token','3706173FEjdLK','86LEAOwG','connectionstring'];a115_0x4303=function(){return _0x2b7089;};return a115_0x4303();}
@@ -1 +1 @@
1
- function a116_0x32e3(){const _0x461873=['4395960FMIoed','814092EkSJZI','length','number','3453793jlGtgG','54ElJVDE','\x20row(s).','1022664rWOzmR','size','tableList','430cGrmeJ','map','validation','6cLkxcI','filter','totalCount','datasetTableCount','summary','516PAskfo','physicalTableCount','values','380039kQMlQQ','\x20of\x20','ALREADY_ANALYZED','4872OMlkBY','NEW_TABLE','set','368970ptHvMt','fromEntries'];a116_0x32e3=function(){return _0x461873;};return a116_0x32e3();}const a116_0xc57531=a116_0x5239;(function(_0x4f46ef,_0x35e9b7){const _0x5ab08d=a116_0x5239,_0x263436=_0x4f46ef();while(!![]){try{const _0x96858f=parseInt(_0x5ab08d(0x20a))/0x1+-parseInt(_0x5ab08d(0x20d))/0x2+-parseInt(_0x5ab08d(0x207))/0x3*(parseInt(_0x5ab08d(0x201))/0x4)+parseInt(_0x5ab08d(0x20c))/0x5*(-parseInt(_0x5ab08d(0x1fc))/0x6)+-parseInt(_0x5ab08d(0x1f3))/0x7+parseInt(_0x5ab08d(0x1f6))/0x8*(parseInt(_0x5ab08d(0x1f4))/0x9)+parseInt(_0x5ab08d(0x1f9))/0xa*(parseInt(_0x5ab08d(0x204))/0xb);if(_0x96858f===_0x35e9b7)break;else _0x263436['push'](_0x263436['shift']());}catch(_0x19a555){_0x263436['push'](_0x263436['shift']());}}}(a116_0x32e3,0x9a67a));import{CliErrors}from'../../errors.js';export const DB_TABLE_PAGE_SIZE=0x64;function a116_0x5239(_0x3102de,_0x1c831f){_0x3102de=_0x3102de-0x1f3;const _0x32e350=a116_0x32e3();let _0x52392e=_0x32e350[_0x3102de];return _0x52392e;}export const DB_TABLE_DIFF_TYPES=[a116_0xc57531(0x208),'MODIFIED_TABLE','DELETED_TABLE',a116_0xc57531(0x206)];export function summarizeDbTableDiff(_0x528b2f){const _0x2c21e6=a116_0xc57531;return Object[_0x2c21e6(0x20b)](DB_TABLE_DIFF_TYPES[_0x2c21e6(0x1fa)](_0x28c35f=>[_0x28c35f,_0x528b2f[_0x2c21e6(0x1fd)](_0x551f9f=>_0x551f9f['diffType']===_0x28c35f)['length']]));}export async function getAllDbTableDiff(_0x4b680d,_0x575502,_0x4fc231,_0x4d013a){const _0x321393=a116_0xc57531,_0x1d2de9=new Map();let _0x1493b2=0x1,_0x5a2afa=null;while(!![]){_0x5a2afa=await _0x4b680d(_0x575502,_0x4fc231,{'pageIndex':_0x1493b2,'pageSize':DB_TABLE_PAGE_SIZE,'tableName':_0x4d013a});const _0x21e231=_0x1d2de9[_0x321393(0x1f7)];for(const _0x32f3ec of _0x5a2afa[_0x321393(0x1f8)]){_0x1d2de9[_0x321393(0x209)](_0x32f3ec['tableName'],_0x32f3ec);}if(_0x1d2de9[_0x321393(0x1f7)]>=_0x5a2afa[_0x321393(0x1fe)])break;if(_0x5a2afa['tableList'][_0x321393(0x20e)]===0x0||_0x1d2de9[_0x321393(0x1f7)]===_0x21e231)throw CliErrors[_0x321393(0x1fb)]('Incomplete\x20db\x20table\x20pagination:\x20collected\x20'+_0x1d2de9[_0x321393(0x1f7)]+_0x321393(0x205)+_0x5a2afa[_0x321393(0x1fe)]+_0x321393(0x1f5));_0x1493b2+=0x1;}return{'totalCount':_0x5a2afa?.[_0x321393(0x1fe)]??0x0,...typeof _0x5a2afa?.[_0x321393(0x202)]===_0x321393(0x20f)?{'physicalTableCount':_0x5a2afa[_0x321393(0x202)]}:{},...typeof _0x5a2afa?.[_0x321393(0x1ff)]===_0x321393(0x20f)?{'datasetTableCount':_0x5a2afa[_0x321393(0x1ff)]}:{},..._0x5a2afa?.['summary']?{'summary':_0x5a2afa[_0x321393(0x200)]}:{},'tableList':[..._0x1d2de9[_0x321393(0x203)]()]};}
1
+ const a116_0x21dc81=a116_0x1f96;(function(_0x11c0c9,_0x36b930){const _0x2b8546=a116_0x1f96,_0x5da548=_0x11c0c9();while(!![]){try{const _0x383cad=parseInt(_0x2b8546(0x94))/0x1+parseInt(_0x2b8546(0x8e))/0x2*(parseInt(_0x2b8546(0x88))/0x3)+-parseInt(_0x2b8546(0x87))/0x4+-parseInt(_0x2b8546(0x91))/0x5+parseInt(_0x2b8546(0x97))/0x6*(parseInt(_0x2b8546(0x83))/0x7)+-parseInt(_0x2b8546(0x85))/0x8+parseInt(_0x2b8546(0x84))/0x9*(-parseInt(_0x2b8546(0x81))/0xa);if(_0x383cad===_0x36b930)break;else _0x5da548['push'](_0x5da548['shift']());}catch(_0x32fb00){_0x5da548['push'](_0x5da548['shift']());}}}(a116_0x5a64,0x9d6c0));import{CliErrors}from'../../errors.js';function a116_0x5a64(){const _0x1b939e=['physicalTableCount','\x20row(s).','number','validation','8jsSoFL','summary','tableList','2358275LHVive','length','Incomplete\x20db\x20table\x20pagination:\x20collected\x20','1096815tYhKkN','map','diffType','301386ujxbBc','NEW_TABLE','totalCount','datasetTableCount','1633290ciuhvx','MODIFIED_TABLE','105sHimTY','9ZlBvfA','4578104BGqerc','tableName','2336916igaLfE','439497XiFQOI','size'];a116_0x5a64=function(){return _0x1b939e;};return a116_0x5a64();}export const DB_TABLE_PAGE_SIZE=0x64;export const DB_TABLE_DIFF_TYPES=[a116_0x21dc81(0x98),a116_0x21dc81(0x82),'DELETED_TABLE','ALREADY_ANALYZED'];export function summarizeDbTableDiff(_0x5064db){const _0x3a12be=a116_0x21dc81;return Object['fromEntries'](DB_TABLE_DIFF_TYPES[_0x3a12be(0x95)](_0x3e0709=>[_0x3e0709,_0x5064db['filter'](_0x58bd12=>_0x58bd12[_0x3a12be(0x96)]===_0x3e0709)[_0x3a12be(0x92)]]));}function a116_0x1f96(_0x4b368c,_0x5708d2){_0x4b368c=_0x4b368c-0x7f;const _0x5a6464=a116_0x5a64();let _0x1f963c=_0x5a6464[_0x4b368c];return _0x1f963c;}export async function getAllDbTableDiff(_0x1bbdf1,_0x37e561,_0x4bdab0,_0x392e59){const _0x131060=a116_0x21dc81,_0x1b3d17=new Map();let _0x3e9734=0x1,_0x52b853=null;while(!![]){_0x52b853=await _0x1bbdf1(_0x37e561,_0x4bdab0,{'pageIndex':_0x3e9734,'pageSize':DB_TABLE_PAGE_SIZE,'tableName':_0x392e59});const _0x489dc1=_0x1b3d17[_0x131060(0x89)];for(const _0x1dbf2d of _0x52b853[_0x131060(0x90)]){_0x1b3d17['set'](_0x1dbf2d[_0x131060(0x86)],_0x1dbf2d);}if(_0x1b3d17[_0x131060(0x89)]>=_0x52b853[_0x131060(0x7f)])break;if(_0x52b853[_0x131060(0x90)][_0x131060(0x92)]===0x0||_0x1b3d17[_0x131060(0x89)]===_0x489dc1)throw CliErrors[_0x131060(0x8d)](_0x131060(0x93)+_0x1b3d17['size']+'\x20of\x20'+_0x52b853[_0x131060(0x7f)]+_0x131060(0x8b));_0x3e9734+=0x1;}return{'totalCount':_0x52b853?.[_0x131060(0x7f)]??0x0,...typeof _0x52b853?.[_0x131060(0x8a)]===_0x131060(0x8c)?{'physicalTableCount':_0x52b853[_0x131060(0x8a)]}:{},...typeof _0x52b853?.[_0x131060(0x80)]===_0x131060(0x8c)?{'datasetTableCount':_0x52b853['datasetTableCount']}:{},..._0x52b853?.[_0x131060(0x8f)]?{'summary':_0x52b853[_0x131060(0x8f)]}:{},'tableList':[..._0x1b3d17['values']()]};}
@@ -1 +1 @@
1
- const a117_0x2ddc5f=a117_0x3f20;(function(_0x449f85,_0x189d83){const _0xfcf346=a117_0x3f20,_0x5596f5=_0x449f85();while(!![]){try{const _0x5156b1=parseInt(_0xfcf346(0x1f1))/0x1+parseInt(_0xfcf346(0x201))/0x2+parseInt(_0xfcf346(0x205))/0x3*(-parseInt(_0xfcf346(0x1fc))/0x4)+-parseInt(_0xfcf346(0x1f5))/0x5+parseInt(_0xfcf346(0x200))/0x6+-parseInt(_0xfcf346(0x1ed))/0x7+-parseInt(_0xfcf346(0x204))/0x8*(-parseInt(_0xfcf346(0x1fe))/0x9);if(_0x5156b1===_0x189d83)break;else _0x5596f5['push'](_0x5596f5['shift']());}catch(_0x4a52b1){_0x5596f5['push'](_0x5596f5['shift']());}}}(a117_0x1842,0x7d885));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';function a117_0x3f20(_0x29def6,_0x2fbc81){_0x29def6=_0x29def6-0x1ed;const _0x184297=a117_0x1842();let _0x3f209a=_0x184297[_0x29def6];return _0x3f209a;}function a117_0x1842(){const _0xc3f91c=['string','598635sSbluu','datasetTableCount','length','totalCount','summary','num','read','23936psSXUK','table','9bzXMsL','appCode','3755682znMWjA','707602tiRCpg','List\x20all\x20database\x20table\x20comparison\x20rows\x20and\x20analysis\x20states','number','3613312euJJqm','342ivPSsu','6367921Lytcjz','\x20table\x20comparison\x20row(s),\x20total\x20','Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)','physicalTableCount','794375COjIam','tables','\x20(db\x20link\x20'];a117_0x1842=function(){return _0xc3f91c;};return a117_0x1842();}export const dbTables={'service':'db','command':a117_0x2ddc5f(0x1f2),'description':a117_0x2ddc5f(0x202),'risk':a117_0x2ddc5f(0x1fb),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a117_0x2ddc5f(0x1fd),'type':a117_0x2ddc5f(0x1f4),'description':a117_0x2ddc5f(0x1ef)}],async 'execute'(_0x1a252d){const _0x4891d1=a117_0x2ddc5f,_0x2b0f70=_0x1a252d[_0x4891d1(0x1fa)]('id'),_0x4b60c2=_0x1a252d['str'](_0x4891d1(0x1fd))||undefined,_0x1798b6=await getAllDbTableDiff(getDbTableComparisonPage,_0x1a252d[_0x4891d1(0x1ff)],_0x2b0f70,_0x4b60c2),_0x3aaa44=_0x1798b6['tableList'];return{'ok':!![],'data':{'dbLinkId':_0x2b0f70,'totalCount':_0x1798b6[_0x4891d1(0x1f8)],...typeof _0x1798b6[_0x4891d1(0x1f0)]==='number'?{'physicalTableCount':_0x1798b6[_0x4891d1(0x1f0)]}:{},...typeof _0x1798b6[_0x4891d1(0x1f6)]===_0x4891d1(0x203)?{'datasetTableCount':_0x1798b6['datasetTableCount']}:{},..._0x1798b6['summary']?{'summary':_0x1798b6[_0x4891d1(0x1f9)]}:{},'summaryByType':summarizeDbTableDiff(_0x3aaa44),'tables':_0x3aaa44},'message':_0x3aaa44[_0x4891d1(0x1f7)]+_0x4891d1(0x1ee)+_0x1798b6[_0x4891d1(0x1f8)]+_0x4891d1(0x1f3)+_0x2b0f70+')'};}};
1
+ const a117_0x28d5a1=a117_0x4c76;(function(_0x4beaef,_0x2e163d){const _0xf9d600=a117_0x4c76,_0x5ecb93=_0x4beaef();while(!![]){try{const _0x4fd1e4=parseInt(_0xf9d600(0xc0))/0x1*(parseInt(_0xf9d600(0xba))/0x2)+-parseInt(_0xf9d600(0xbd))/0x3+parseInt(_0xf9d600(0xb4))/0x4+-parseInt(_0xf9d600(0xae))/0x5+-parseInt(_0xf9d600(0xb2))/0x6+-parseInt(_0xf9d600(0xb9))/0x7+parseInt(_0xf9d600(0xb5))/0x8;if(_0x4fd1e4===_0x2e163d)break;else _0x5ecb93['push'](_0x5ecb93['shift']());}catch(_0x3c5126){_0x5ecb93['push'](_0x5ecb93['shift']());}}}(a117_0x429e,0x9df01));import{getDbTableComparisonPage}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a117_0x4c76(_0x42c46a,_0x5f5370){_0x42c46a=_0x42c46a-0xab;const _0x429e97=a117_0x429e();let _0x4c7637=_0x429e97[_0x42c46a];return _0x4c7637;}import{getAllDbTableDiff,summarizeDbTableDiff}from'../../commands/db/table-diff-shared.js';export const dbTables={'service':'db','command':a117_0x28d5a1(0xb3),'description':a117_0x28d5a1(0xb1),'risk':a117_0x28d5a1(0xbc),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':'table','type':a117_0x28d5a1(0xaf),'description':'Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)'}],async 'execute'(_0x5745f6){const _0x440da6=a117_0x28d5a1,_0x480e46=_0x5745f6['num']('id'),_0x595295=_0x5745f6['str'](_0x440da6(0xb0))||undefined,_0x268036=await getAllDbTableDiff(getDbTableComparisonPage,_0x5745f6['appCode'],_0x480e46,_0x595295),_0x5b7cc4=_0x268036[_0x440da6(0xac)];return{'ok':!![],'data':{'dbLinkId':_0x480e46,'totalCount':_0x268036[_0x440da6(0xb6)],...typeof _0x268036[_0x440da6(0xad)]===_0x440da6(0xbb)?{'physicalTableCount':_0x268036[_0x440da6(0xad)]}:{},...typeof _0x268036['datasetTableCount']===_0x440da6(0xbb)?{'datasetTableCount':_0x268036[_0x440da6(0xbf)]}:{},..._0x268036[_0x440da6(0xbe)]?{'summary':_0x268036['summary']}:{},'summaryByType':summarizeDbTableDiff(_0x5b7cc4),'tables':_0x5b7cc4},'message':_0x5b7cc4[_0x440da6(0xb7)]+_0x440da6(0xb8)+_0x268036['totalCount']+_0x440da6(0xab)+_0x480e46+')'};}};function a117_0x429e(){const _0x8ae76e=['9555784TcZhxw','totalCount','length','\x20table\x20comparison\x20row(s),\x20total\x20','7444577ZQzgtN','1106pFLrwM','number','read','1501359koARrP','summary','datasetTableCount','1415zeYXiV','\x20(db\x20link\x20','tableList','physicalTableCount','558135slrkxV','string','table','List\x20all\x20database\x20table\x20comparison\x20rows\x20and\x20analysis\x20states','525714FZgIPb','tables','1732620nLJDSL'];a117_0x429e=function(){return _0x8ae76e;};return a117_0x429e();}
@@ -1 +1 @@
1
- const a118_0x103837=a118_0x1e0e;(function(_0x460e04,_0x3114e1){const _0x314138=a118_0x1e0e,_0x357695=_0x460e04();while(!![]){try{const _0xf2850b=-parseInt(_0x314138(0x16f))/0x1*(-parseInt(_0x314138(0x170))/0x2)+parseInt(_0x314138(0x16d))/0x3*(parseInt(_0x314138(0x16b))/0x4)+parseInt(_0x314138(0x176))/0x5+parseInt(_0x314138(0x168))/0x6+-parseInt(_0x314138(0x17a))/0x7+-parseInt(_0x314138(0x165))/0x8+-parseInt(_0x314138(0x172))/0x9;if(_0xf2850b===_0x3114e1)break;else _0x357695['push'](_0x357695['shift']());}catch(_0x51226e){_0x357695['push'](_0x357695['shift']());}}}(a118_0x263d,0x3d70d));import{testDbLinkConnect}from'../../core/api-client.js';function a118_0x1e0e(_0x53e35c,_0x59820b){_0x53e35c=_0x53e35c-0x164;const _0x263d74=a118_0x263d();let _0x1e0eb3=_0x263d74[_0x53e35c];return _0x1e0eb3;}import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function summarizeTestConnectResult(_0x2df4d8){const _0x498eef=a118_0x1e0e;if(_0x2df4d8===!![]||_0x2df4d8===![])return{'success':_0x2df4d8};if(_0x2df4d8===null||_0x2df4d8===undefined)return{'type':typeof _0x2df4d8};if(typeof _0x2df4d8!==_0x498eef(0x164))return{'type':typeof _0x2df4d8};const _0x1d204b=_0x2df4d8,_0x1d95ec=[_0x498eef(0x169),_0x498eef(0x171),_0x498eef(0x178),_0x498eef(0x16e),_0x498eef(0x173),'data'],_0x3e722e={};for(const _0x3b4fbe of _0x1d95ec){if(_0x3b4fbe in _0x1d204b)_0x3e722e[_0x3b4fbe]=_0x1d204b[_0x3b4fbe];}return Object[_0x498eef(0x16c)](_0x3e722e)[_0x498eef(0x174)]===0x0&&(_0x3e722e[_0x498eef(0x16c)]=Object[_0x498eef(0x16c)](_0x1d204b)[_0x498eef(0x167)](0x0,0x14)),_0x3e722e;}function a118_0x263d(){const _0x2a6a2e=['1686880ffHgac','num','slice','2648628buQhmn','success','test','217052nsqUVa','keys','3ixsDxp','error','3SRUhsu','222146gqZImG','message','999279UwlIQT','msg','length','Connection\x20check\x20finished\x20for\x20db\x20link\x20','605780wATiRa','Connection\x20OK\x20for\x20db\x20link\x20','code','read','2635668olNArE','object'];a118_0x263d=function(){return _0x2a6a2e;};return a118_0x263d();}export const dbTest={'service':'db','command':a118_0x103837(0x16a),'description':'Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)','risk':a118_0x103837(0x179),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x49fa2e){const _0x5eed07=a118_0x103837,_0x52cb03=_0x49fa2e[_0x5eed07(0x166)]('id'),_0x5cc6cf=await testDbLinkConnect(_0x52cb03),_0x4a30a8=_0x5cc6cf===!![]||typeof _0x5cc6cf==='object'&&_0x5cc6cf!==null&&_0x5cc6cf['success']===!![],_0x3697bd=summarizeTestConnectResult(_0x5cc6cf);return{'ok':!![],'data':{'id':_0x52cb03,'connected':Boolean(_0x4a30a8),'result':_0x3697bd},'message':_0x4a30a8?_0x5eed07(0x177)+_0x52cb03:_0x5eed07(0x175)+_0x52cb03+'\x20(see\x20data.result)'};}};
1
+ const a118_0x5f3d73=a118_0x3ca8;function a118_0x8387(){const _0x140494=['length','Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)','\x20(see\x20data.result)','read','509630CLKEPr','message','966XvPmZl','Connection\x20check\x20finished\x20for\x20db\x20link\x20','5GdwxUN','188764eazDnC','slice','Connection\x20OK\x20for\x20db\x20link\x20','21464vEnjFa','test','error','32306crtVEI','1809102FMULMi','code','success','keys','object','16491728UVHUAq','810304EMbKTM','48yRkJGh','63EbRsEC'];a118_0x8387=function(){return _0x140494;};return a118_0x8387();}(function(_0x507a19,_0x2cfda6){const _0x338413=a118_0x3ca8,_0x45c2fd=_0x507a19();while(!![]){try{const _0x3a0aec=-parseInt(_0x338413(0x111))/0x1+-parseInt(_0x338413(0x117))/0x2*(-parseInt(_0x338413(0x11f))/0x3)+-parseInt(_0x338413(0x11e))/0x4+parseInt(_0x338413(0x110))/0x5*(-parseInt(_0x338413(0x118))/0x6)+-parseInt(_0x338413(0x10e))/0x7*(parseInt(_0x338413(0x114))/0x8)+-parseInt(_0x338413(0x120))/0x9*(parseInt(_0x338413(0x10c))/0xa)+parseInt(_0x338413(0x11d))/0xb;if(_0x3a0aec===_0x2cfda6)break;else _0x45c2fd['push'](_0x45c2fd['shift']());}catch(_0x113f81){_0x45c2fd['push'](_0x45c2fd['shift']());}}}(a118_0x8387,0x527b4));function a118_0x3ca8(_0x3eb99a,_0x113a27){_0x3eb99a=_0x3eb99a-0x10a;const _0x8387a3=a118_0x8387();let _0x3ca8e8=_0x8387a3[_0x3eb99a];return _0x3ca8e8;}import{testDbLinkConnect}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function summarizeTestConnectResult(_0x308ff2){const _0x591efa=a118_0x3ca8;if(_0x308ff2===!![]||_0x308ff2===![])return{'success':_0x308ff2};if(_0x308ff2===null||_0x308ff2===undefined)return{'type':typeof _0x308ff2};if(typeof _0x308ff2!==_0x591efa(0x11c))return{'type':typeof _0x308ff2};const _0x50e1a3=_0x308ff2,_0x5bff26=[_0x591efa(0x11a),_0x591efa(0x10d),_0x591efa(0x119),_0x591efa(0x116),'msg','data'],_0x29859c={};for(const _0x542d31 of _0x5bff26){if(_0x542d31 in _0x50e1a3)_0x29859c[_0x542d31]=_0x50e1a3[_0x542d31];}return Object[_0x591efa(0x11b)](_0x29859c)[_0x591efa(0x121)]===0x0&&(_0x29859c[_0x591efa(0x11b)]=Object[_0x591efa(0x11b)](_0x50e1a3)[_0x591efa(0x112)](0x0,0x14)),_0x29859c;}export const dbTest={'service':'db','command':a118_0x5f3d73(0x115),'description':a118_0x5f3d73(0x122),'risk':a118_0x5f3d73(0x10b),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x628eae){const _0x1cbe20=a118_0x5f3d73,_0x2690f4=_0x628eae['num']('id'),_0x7f6767=await testDbLinkConnect(_0x2690f4),_0xcfba5e=_0x7f6767===!![]||typeof _0x7f6767==='object'&&_0x7f6767!==null&&_0x7f6767[_0x1cbe20(0x11a)]===!![],_0x5a28e6=summarizeTestConnectResult(_0x7f6767);return{'ok':!![],'data':{'id':_0x2690f4,'connected':Boolean(_0xcfba5e),'result':_0x5a28e6},'message':_0xcfba5e?_0x1cbe20(0x113)+_0x2690f4:_0x1cbe20(0x10f)+_0x2690f4+_0x1cbe20(0x10a)};}};
@@ -1 +1 @@
1
- const a119_0x5dddfc=a119_0x1939;function a119_0x105b(){const _0x2de3ec=['POST','num','trim','New\x20connection\x20parameter\x20string','dburl','Update\x20a\x20database\x20connection\x20by\x20merging\x20supplied\x20fields\x20into\x20the\x20current\x20server\x20record.\x20A\x20masked\x20server\x20password\x20requires\x20explicit\x20--password','str','update','New\x20host:port','4923895aQFdZq','Preview\x20the\x20merged\x20database\x20connection\x20update;\x20password\x20redacted','skip-connection-test','dbUrl','dbName','415779gDBtiX','dbParam','username','Updated\x20db\x20link\x20','has','Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22','write','252878GtMpNt','/smartapi/dblink/update','New\x20description','14PVrnhM','[redacted]','486108VwNAYO','6537312jMYPbH','bool','string','dbdesc','The\x20server\x20returned\x20a\x20masked\x20database\x20password.\x20Pass\x20the\x20current\x20or\x20replacement\x20password\x20explicitly\x20with\x20--password\x20to\x20update\x20this\x20connection\x20safely.','dbparam','password','Current\x20or\x20replacement\x20password.\x20Required\x20when\x20the\x20stored\x20password\x20is\x20masked','37314UxOcKy','dbname','5361508QoXgKw','validation','dbDesc','******'];a119_0x105b=function(){return _0x2de3ec;};return a119_0x105b();}function a119_0x1939(_0x51901d,_0x584db4){_0x51901d=_0x51901d-0x123;const _0x105b65=a119_0x105b();let _0x1939b7=_0x105b65[_0x51901d];return _0x1939b7;}(function(_0x2de6cb,_0x48e8a0){const _0x3a8b90=a119_0x1939,_0x9a87ab=_0x2de6cb();while(!![]){try{const _0x355769=parseInt(_0x3a8b90(0x132))/0x1+parseInt(_0x3a8b90(0x135))/0x2*(parseInt(_0x3a8b90(0x12b))/0x3)+parseInt(_0x3a8b90(0x142))/0x4+-parseInt(_0x3a8b90(0x126))/0x5+-parseInt(_0x3a8b90(0x140))/0x6+-parseInt(_0x3a8b90(0x137))/0x7+-parseInt(_0x3a8b90(0x138))/0x8;if(_0x355769===_0x48e8a0)break;else _0x9a87ab['push'](_0x9a87ab['shift']());}catch(_0x42b66e){_0x9a87ab['push'](_0x9a87ab['shift']());}}}(a119_0x105b,0xa76e8));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_0x5dddfc(0x145),a119_0x5dddfc(0x136)]);function mergeDbLinkUpdate(_0x5db82f,_0x3a141d){const _0x69c97a=a119_0x5dddfc,_0x1bf4b3={..._0x5db82f},_0x1b2951=_0x3a141d[_0x69c97a(0x123)]('password');if(_0x1b2951&&MASKED_PASSWORD_VALUES[_0x69c97a(0x12f)](_0x1b2951))throw CliErrors[_0x69c97a(0x143)]('--password\x20must\x20contain\x20the\x20real\x20database\x20password,\x20not\x20a\x20masked\x20value.');if(!_0x1b2951&&MASKED_PASSWORD_VALUES['has'](String(_0x5db82f[_0x69c97a(0x13e)]??'')))throw CliErrors[_0x69c97a(0x143)](_0x69c97a(0x13c));const _0x1c8798=_0x3a141d[_0x69c97a(0x123)](_0x69c97a(0x141));if(_0x1c8798)_0x1bf4b3[_0x69c97a(0x12a)]=_0x1c8798;const _0x3b654b=_0x3a141d[_0x69c97a(0x123)](_0x69c97a(0x14a));if(_0x3b654b)_0x1bf4b3[_0x69c97a(0x129)]=_0x3b654b[_0x69c97a(0x148)]();const _0x374a94=_0x3a141d[_0x69c97a(0x123)](_0x69c97a(0x12d));if(_0x374a94)_0x1bf4b3[_0x69c97a(0x12d)]=_0x374a94;if(_0x1b2951)_0x1bf4b3[_0x69c97a(0x13e)]=_0x1b2951;const _0xb1891a=_0x3a141d[_0x69c97a(0x123)](_0x69c97a(0x13d));if(_0xb1891a)_0x1bf4b3[_0x69c97a(0x12c)]=_0xb1891a;const _0x2549fe=_0x3a141d['str'](_0x69c97a(0x13b));if(_0x2549fe)_0x1bf4b3[_0x69c97a(0x144)]=_0x2549fe;return _0x1bf4b3;}export const dbUpdate={'service':'db','command':a119_0x5dddfc(0x124),'description':a119_0x5dddfc(0x14b),'risk':a119_0x5dddfc(0x131),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a119_0x5dddfc(0x141),'type':a119_0x5dddfc(0x13a),'description':'New\x20database\x20name'},{'name':a119_0x5dddfc(0x14a),'type':a119_0x5dddfc(0x13a),'description':a119_0x5dddfc(0x125)},{'name':'username','type':a119_0x5dddfc(0x13a),'description':'New\x20username'},{'name':a119_0x5dddfc(0x13e),'type':a119_0x5dddfc(0x13a),'description':a119_0x5dddfc(0x13f)},{'name':a119_0x5dddfc(0x13d),'type':a119_0x5dddfc(0x13a),'description':a119_0x5dddfc(0x149)},{'name':'dbdesc','type':a119_0x5dddfc(0x13a),'description':a119_0x5dddfc(0x134)},SKIP_CONNECTION_TEST_FLAG],async 'validate'(_0x1a0a6e){const _0x429ea9=a119_0x5dddfc,_0x40e520=_0x1a0a6e[_0x429ea9(0x123)](_0x429ea9(0x14a));if(_0x40e520&&!validateDbUrl(_0x40e520['trim']()))throw CliErrors[_0x429ea9(0x143)](_0x429ea9(0x130)+_0x40e520+'\x22');},async 'dryRun'(_0x4c08e8){const _0x4dde5b=a119_0x5dddfc,_0x290278=_0x4c08e8['num']('id'),_0x5481a5=await getDbLinkInfo(_0x290278),_0x5cf4e4=mergeDbLinkUpdate(_0x5481a5,_0x4c08e8),_0x1ec245=sanitizeDbLinkForOutput(_0x5cf4e4);return{'method':_0x4dde5b(0x146),'url':_0x4dde5b(0x133),'body':_0x1ec245,'description':_0x4dde5b(0x127),'connectionPreflight':{'enabled':!_0x4c08e8[_0x4dde5b(0x139)]('skip-connection-test'),'executed':![]}};},async 'execute'(_0xc3f992){const _0x20f605=a119_0x5dddfc,_0x111d06=_0xc3f992[_0x20f605(0x147)]('id'),_0x41dc40=await getDbLinkInfo(_0x111d06),_0x500fdd=mergeDbLinkUpdate(_0x41dc40,_0xc3f992);!_0xc3f992[_0x20f605(0x139)](_0x20f605(0x128))&&await assertDbLinkConnectionPreflight(_0x500fdd);const {id:_0x1f3497,entity:_0x3ad197}=normalizeEntityWithIdResponse(await updateDbLink(_0x500fdd));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x3ad197),'message':_0x20f605(0x12e)+(_0x1f3497??_0x111d06)};}};
1
+ function a119_0x4164(){const _0x45fb34=['******','3474261dAQJjc','validation','2664830lMXgWi','New\x20host:port','dbName','username','update','New\x20connection\x20parameter\x20string','--password\x20must\x20contain\x20the\x20real\x20database\x20password,\x20not\x20a\x20masked\x20value.','dbdesc','trim','skip-connection-test','write','string','dburl','password','Update\x20a\x20database\x20connection\x20by\x20merging\x20supplied\x20fields\x20into\x20the\x20current\x20server\x20record.\x20A\x20masked\x20server\x20password\x20requires\x20explicit\x20--password','Preview\x20the\x20merged\x20database\x20connection\x20update;\x20password\x20redacted','dbname','New\x20username','num','New\x20description','str','50WKBUOF','321188euhTPu','bool','Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22','3085448ETwcMF','[redacted]','New\x20database\x20name','Updated\x20db\x20link\x20','The\x20server\x20returned\x20a\x20masked\x20database\x20password.\x20Pass\x20the\x20current\x20or\x20replacement\x20password\x20explicitly\x20with\x20--password\x20to\x20update\x20this\x20connection\x20safely.','POST','/smartapi/dblink/update','1824030jnkdNA','2wAkVQU','dbparam','213383eLDSvd','1111470kwImXw','5QKjaTJ'];a119_0x4164=function(){return _0x45fb34;};return a119_0x4164();}const a119_0x12e030=a119_0x3634;(function(_0x39007a,_0xcee005){const _0x2d7bd1=a119_0x3634,_0x318e07=_0x39007a();while(!![]){try{const _0x301d17=parseInt(_0x2d7bd1(0x130))/0x1*(-parseInt(_0x2d7bd1(0x12e))/0x2)+-parseInt(_0x2d7bd1(0x131))/0x3+parseInt(_0x2d7bd1(0x123))/0x4*(-parseInt(_0x2d7bd1(0x132))/0x5)+-parseInt(_0x2d7bd1(0x12d))/0x6+-parseInt(_0x2d7bd1(0x136))/0x7+-parseInt(_0x2d7bd1(0x126))/0x8+parseInt(_0x2d7bd1(0x134))/0x9*(parseInt(_0x2d7bd1(0x122))/0xa);if(_0x301d17===_0xcee005)break;else _0x318e07['push'](_0x318e07['shift']());}catch(_0x1e0c9a){_0x318e07['push'](_0x318e07['shift']());}}}(a119_0x4164,0x2fc0f));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_0x3634(_0x1a739d,_0x599d18){_0x1a739d=_0x1a739d-0x10f;const _0x41642a=a119_0x4164();let _0x363451=_0x41642a[_0x1a739d];return _0x363451;}import{assertDbLinkConnectionPreflight,sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';const MASKED_PASSWORD_VALUES=new Set([a119_0x12e030(0x133),a119_0x12e030(0x127)]);function mergeDbLinkUpdate(_0x5c0518,_0x106dba){const _0x351ad6=a119_0x12e030,_0x5037e0={..._0x5c0518},_0x3c8991=_0x106dba['str'](_0x351ad6(0x11a));if(_0x3c8991&&MASKED_PASSWORD_VALUES['has'](_0x3c8991))throw CliErrors[_0x351ad6(0x135)](_0x351ad6(0x113));if(!_0x3c8991&&MASKED_PASSWORD_VALUES['has'](String(_0x5c0518[_0x351ad6(0x11a)]??'')))throw CliErrors['validation'](_0x351ad6(0x12a));const _0x2c0873=_0x106dba[_0x351ad6(0x121)](_0x351ad6(0x11d));if(_0x2c0873)_0x5037e0[_0x351ad6(0x10f)]=_0x2c0873;const _0x1c7a3e=_0x106dba['str'](_0x351ad6(0x119));if(_0x1c7a3e)_0x5037e0['dbUrl']=_0x1c7a3e['trim']();const _0x7e9b62=_0x106dba[_0x351ad6(0x121)]('username');if(_0x7e9b62)_0x5037e0[_0x351ad6(0x110)]=_0x7e9b62;if(_0x3c8991)_0x5037e0[_0x351ad6(0x11a)]=_0x3c8991;const _0x4ee166=_0x106dba['str'](_0x351ad6(0x12f));if(_0x4ee166)_0x5037e0['dbParam']=_0x4ee166;const _0x137fb7=_0x106dba[_0x351ad6(0x121)](_0x351ad6(0x114));if(_0x137fb7)_0x5037e0['dbDesc']=_0x137fb7;return _0x5037e0;}export const dbUpdate={'service':'db','command':a119_0x12e030(0x111),'description':a119_0x12e030(0x11b),'risk':a119_0x12e030(0x117),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':'dbname','type':a119_0x12e030(0x118),'description':a119_0x12e030(0x128)},{'name':a119_0x12e030(0x119),'type':a119_0x12e030(0x118),'description':a119_0x12e030(0x137)},{'name':a119_0x12e030(0x110),'type':a119_0x12e030(0x118),'description':a119_0x12e030(0x11e)},{'name':a119_0x12e030(0x11a),'type':a119_0x12e030(0x118),'description':'Current\x20or\x20replacement\x20password.\x20Required\x20when\x20the\x20stored\x20password\x20is\x20masked'},{'name':a119_0x12e030(0x12f),'type':a119_0x12e030(0x118),'description':a119_0x12e030(0x112)},{'name':a119_0x12e030(0x114),'type':a119_0x12e030(0x118),'description':a119_0x12e030(0x120)},SKIP_CONNECTION_TEST_FLAG],async 'validate'(_0x518b55){const _0x117555=a119_0x12e030,_0x572440=_0x518b55[_0x117555(0x121)](_0x117555(0x119));if(_0x572440&&!validateDbUrl(_0x572440[_0x117555(0x115)]()))throw CliErrors[_0x117555(0x135)](_0x117555(0x125)+_0x572440+'\x22');},async 'dryRun'(_0x35b473){const _0x775140=a119_0x12e030,_0x25b64a=_0x35b473[_0x775140(0x11f)]('id'),_0x2e38ad=await getDbLinkInfo(_0x25b64a),_0x3fdeb4=mergeDbLinkUpdate(_0x2e38ad,_0x35b473),_0x5c13b1=sanitizeDbLinkForOutput(_0x3fdeb4);return{'method':_0x775140(0x12b),'url':_0x775140(0x12c),'body':_0x5c13b1,'description':_0x775140(0x11c),'connectionPreflight':{'enabled':!_0x35b473[_0x775140(0x124)](_0x775140(0x116)),'executed':![]}};},async 'execute'(_0x574e14){const _0x5c6cde=a119_0x12e030,_0x25d564=_0x574e14[_0x5c6cde(0x11f)]('id'),_0x52b6b5=await getDbLinkInfo(_0x25d564),_0x256db8=mergeDbLinkUpdate(_0x52b6b5,_0x574e14);!_0x574e14[_0x5c6cde(0x124)](_0x5c6cde(0x116))&&await assertDbLinkConnectionPreflight(_0x256db8);const {id:_0x54f5ce,entity:_0x4e312b}=normalizeEntityWithIdResponse(await updateDbLink(_0x256db8));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x4e312b),'message':_0x5c6cde(0x129)+(_0x54f5ce??_0x25d564)};}};
@@ -1 +1 @@
1
- function a120_0x1241(_0x6c666e,_0x80a797){_0x6c666e=_0x6c666e-0x1dd;const _0x5b796d=a120_0x5b79();let _0x124179=_0x5b796d[_0x6c666e];return _0x124179;}(function(_0x53b15c,_0xb74aff){const _0x27eb08=a120_0x1241,_0x5b81ff=_0x53b15c();while(!![]){try{const _0x117982=-parseInt(_0x27eb08(0x1e3))/0x1+parseInt(_0x27eb08(0x1dd))/0x2*(parseInt(_0x27eb08(0x1e0))/0x3)+parseInt(_0x27eb08(0x1df))/0x4+parseInt(_0x27eb08(0x1e2))/0x5+-parseInt(_0x27eb08(0x1e4))/0x6+-parseInt(_0x27eb08(0x1e6))/0x7*(parseInt(_0x27eb08(0x1e1))/0x8)+parseInt(_0x27eb08(0x1de))/0x9*(parseInt(_0x27eb08(0x1e5))/0xa);if(_0x117982===_0xb74aff)break;else _0x5b81ff['push'](_0x5b81ff['shift']());}catch(_0x5c04bf){_0x5b81ff['push'](_0x5b81ff['shift']());}}}(a120_0x5b79,0xbad85));import{deploymentSyncAll}from'../../commands/deployment/sync-all.js';import{deploymentSyncStatus}from'../../commands/deployment/sync-status.js';function a120_0x5b79(){const _0x52c5d3=['474UbjCmD','20712dKPhTL','197540WVbsjA','535417vBLZrk','8568162HpWhGR','2870AtNwjE','77ohiHOo','14684wNkLSG','7173BBUrbi','5315828lHrOXi'];a120_0x5b79=function(){return _0x52c5d3;};return a120_0x5b79();}import{deploymentSyncJobs}from'../../commands/deployment/sync-jobs.js';export const deploymentDefinitions=[deploymentSyncAll,deploymentSyncStatus,deploymentSyncJobs];
1
+ function a120_0x5731(_0x1bff8e,_0x48438e){_0x1bff8e=_0x1bff8e-0x1b8;const _0x31efc5=a120_0x31ef();let _0x5731f6=_0x31efc5[_0x1bff8e];return _0x5731f6;}(function(_0x1d5a8e,_0x4d5522){const _0x56e128=a120_0x5731,_0x1913f6=_0x1d5a8e();while(!![]){try{const _0x17902c=parseInt(_0x56e128(0x1bf))/0x1*(-parseInt(_0x56e128(0x1c5))/0x2)+parseInt(_0x56e128(0x1b8))/0x3*(-parseInt(_0x56e128(0x1c0))/0x4)+parseInt(_0x56e128(0x1bc))/0x5*(-parseInt(_0x56e128(0x1ba))/0x6)+-parseInt(_0x56e128(0x1c1))/0x7*(parseInt(_0x56e128(0x1be))/0x8)+-parseInt(_0x56e128(0x1c2))/0x9*(-parseInt(_0x56e128(0x1c3))/0xa)+-parseInt(_0x56e128(0x1c4))/0xb*(parseInt(_0x56e128(0x1bd))/0xc)+-parseInt(_0x56e128(0x1bb))/0xd*(-parseInt(_0x56e128(0x1b9))/0xe);if(_0x17902c===_0x4d5522)break;else _0x1913f6['push'](_0x1913f6['shift']());}catch(_0x249de4){_0x1913f6['push'](_0x1913f6['shift']());}}}(a120_0x31ef,0x1e129));import{deploymentSyncAll}from'../../commands/deployment/sync-all.js';import{deploymentSyncStatus}from'../../commands/deployment/sync-status.js';import{deploymentSyncJobs}from'../../commands/deployment/sync-jobs.js';export const deploymentDefinitions=[deploymentSyncAll,deploymentSyncStatus,deploymentSyncJobs];function a120_0x31ef(){const _0x2e637e=['764195cKKzcy','2660964BYsQOA','2384mdtNgY','3469EzWfsC','348564HpYSor','3717Roupek','327213FEPFMq','10eRmMWx','11raOtQm','18hlJzro','3MMGeaX','28ubYCVK','6CXWutG','4797039Gaxxnk'];a120_0x31ef=function(){return _0x2e637e;};return a120_0x31ef();}
@@ -1 +1 @@
1
- const a121_0x4e6285=a121_0x1823;(function(_0x45e34a,_0x41ddc3){const _0x434619=a121_0x1823,_0x3e3901=_0x45e34a();while(!![]){try{const _0x5547c2=parseInt(_0x434619(0x175))/0x1*(-parseInt(_0x434619(0x15b))/0x2)+parseInt(_0x434619(0x162))/0x3+parseInt(_0x434619(0x16c))/0x4+parseInt(_0x434619(0x164))/0x5+-parseInt(_0x434619(0x166))/0x6+-parseInt(_0x434619(0x15d))/0x7*(parseInt(_0x434619(0x168))/0x8)+parseInt(_0x434619(0x16f))/0x9*(parseInt(_0x434619(0x169))/0xa);if(_0x5547c2===_0x41ddc3)break;else _0x3e3901['push'](_0x3e3901['shift']());}catch(_0x6d978f){_0x3e3901['push'](_0x3e3901['shift']());}}}(a121_0x576b,0x1e75a));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{asDryRunResult}from'../../commands/common/dry-run.js';import{isPlatformTransportFailure,submitDeploymentMetadataSyncAll}from'../../core/api-client.js';import{CliError,CliErrors}from'../../errors.js';const SUBMIT_PATH='/smartapi/data-sync/submit',CONFIRM_FLAG={'name':a121_0x4e6285(0x160),'type':'boolean','description':a121_0x4e6285(0x165)};function a121_0x1823(_0x51d285,_0x4597a1){_0x51d285=_0x51d285-0x15b;const _0x576bc2=a121_0x576b();let _0x182381=_0x576bc2[_0x51d285];return _0x182381;}function a121_0x576b(){const _0x4ba2e7=['job','POST','Deployment\x20sync\x20submission\x20response\x20was\x20unavailable;\x20job\x20creation\x20is\x20unknown.','56HZMIVY','Run\x20with\x20--dry-run\x20first,\x20then\x20add\x20--confirm.','1472338rcUcYw','unknown','defineProperty','confirm','Submitted\x20deployment\x20synchronization\x20job\x20','494922BzIslt','not_needed','475805ltvDDM','Confirm\x20the\x20administrative\x20backfill\x20or\x20recovery\x20synchronization','1319208COKGmH','status','8dftyVt','75710RXsbIn','No\x20deployment\x20synchronization\x20was\x20needed\x20for\x20this\x20app.','submitted','859840LKgRGV','deployment_sync_submit_outcome_unknown','appCode','171SQUSsF','deployment','jobId','application_deployment_sync','Would\x20submit\x20an\x20administrative\x20deployment\x20metadata\x20backfill\x20or\x20recovery\x20job.','bool','2285cPbqUr'];a121_0x576b=function(){return _0x4ba2e7;};return a121_0x576b();}export const deploymentSyncAll={'service':a121_0x4e6285(0x170),'command':'sync-all','description':'Backfill\x20or\x20recover\x20all\x20server-supported\x20application\x20metadata','risk':'write','strictFlags':!![],'structuredErrors':!![],'confirmationDescription':'Submit\x20an\x20administrative\x20metadata\x20backfill\x20or\x20recovery\x20synchronization.','flags':[CONFIRM_FLAG,APPCODE_FLAG_OPTIONAL],async 'dryRun'(_0x3cb52f){const _0x417bc2=a121_0x4e6285;return asDryRunResult(buildPreview(_0x3cb52f[_0x417bc2(0x16e)]),{'method':_0x417bc2(0x177),'url':SUBMIT_PATH,'description':_0x417bc2(0x173)});},async 'execute'(_0x20eb76){const _0x131d4f=a121_0x4e6285;if(!_0x20eb76[_0x131d4f(0x174)](_0x131d4f(0x160)))throw CliErrors['validation']('--confirm\x20is\x20required\x20to\x20synchronize\x20all\x20application\x20metadata.',_0x131d4f(0x15c));try{const _0x2ef94e=await submitDeploymentMetadataSyncAll({'appCode':_0x20eb76[_0x131d4f(0x16e)]});if(_0x2ef94e['outcome']===_0x131d4f(0x163))return{'ok':!![],'data':{'operation':'application_deployment_sync','appCode':_0x20eb76[_0x131d4f(0x16e)],'submitted':![],'outcome':_0x131d4f(0x163)},'message':_0x131d4f(0x16a)};return{'ok':!![],'data':{'operation':_0x131d4f(0x172),'appCode':_0x20eb76[_0x131d4f(0x16e)],'submitted':!![],'outcome':_0x131d4f(0x16b),'jobId':_0x2ef94e[_0x131d4f(0x176)][_0x131d4f(0x171)],'status':_0x2ef94e[_0x131d4f(0x176)][_0x131d4f(0x167)]},'message':_0x131d4f(0x161)+_0x2ef94e[_0x131d4f(0x176)][_0x131d4f(0x171)]+'.'};}catch(_0x491261){if(!isPlatformTransportFailure(_0x491261))throw _0x491261;const _0x5c6dda=new CliError(_0x131d4f(0x16d),0x2,_0x131d4f(0x178),'List\x20recent\x20deployment\x20sync\x20jobs\x20before\x20deciding\x20whether\x20to\x20submit\x20again.');Object[_0x131d4f(0x15f)](_0x5c6dda,'data',{'enumerable':!![],'value':{'operation':_0x131d4f(0x172),'appCode':_0x20eb76[_0x131d4f(0x16e)],'submitted':null,'outcome':_0x131d4f(0x15e)}});throw _0x5c6dda;}}};function buildPreview(_0x149333){const _0x5e9021=a121_0x4e6285;return{'operation':_0x5e9021(0x172),'selector':{'appCode':_0x149333,'scope':'all_server_supported_metadata'},'before':null,'after':null,'dryRun':!![],'backend':{'submitted':![],'outcome':'not_submitted'},'warnings':[]};}
1
+ const a121_0x17c5e3=a121_0x2293;(function(_0x3e04e4,_0x85450d){const _0x3c5516=a121_0x2293,_0x40e403=_0x3e04e4();while(!![]){try{const _0x4a695c=parseInt(_0x3c5516(0x10a))/0x1*(-parseInt(_0x3c5516(0x104))/0x2)+parseInt(_0x3c5516(0x113))/0x3+parseInt(_0x3c5516(0x10f))/0x4*(parseInt(_0x3c5516(0x111))/0x5)+-parseInt(_0x3c5516(0x11d))/0x6+-parseInt(_0x3c5516(0x11e))/0x7*(-parseInt(_0x3c5516(0x10d))/0x8)+parseInt(_0x3c5516(0x10c))/0x9+parseInt(_0x3c5516(0x101))/0xa;if(_0x4a695c===_0x85450d)break;else _0x40e403['push'](_0x40e403['shift']());}catch(_0x2181cf){_0x40e403['push'](_0x40e403['shift']());}}}(a121_0xf35e,0x816de));function a121_0x2293(_0x1f9945,_0x3a3265){_0x1f9945=_0x1f9945-0x101;const _0xf35e2a=a121_0xf35e();let _0x229314=_0xf35e2a[_0x1f9945];return _0x229314;}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_0x17c5e3(0x105),CONFIRM_FLAG={'name':a121_0x17c5e3(0x122),'type':a121_0x17c5e3(0x107),'description':a121_0x17c5e3(0x124)};export const deploymentSyncAll={'service':a121_0x17c5e3(0x120),'command':a121_0x17c5e3(0x11a),'description':a121_0x17c5e3(0x10b),'risk':a121_0x17c5e3(0x109),'strictFlags':!![],'structuredErrors':!![],'confirmationDescription':'Submit\x20an\x20administrative\x20metadata\x20backfill\x20or\x20recovery\x20synchronization.','flags':[CONFIRM_FLAG,APPCODE_FLAG_OPTIONAL],async 'dryRun'(_0x1e3a09){const _0x36c5fb=a121_0x17c5e3;return asDryRunResult(buildPreview(_0x1e3a09['appCode']),{'method':_0x36c5fb(0x106),'url':SUBMIT_PATH,'description':_0x36c5fb(0x121)});},async 'execute'(_0x561460){const _0x2a2d7e=a121_0x17c5e3;if(!_0x561460['bool'](_0x2a2d7e(0x122)))throw CliErrors[_0x2a2d7e(0x116)](_0x2a2d7e(0x11f),_0x2a2d7e(0x118));try{const _0x1ae4eb=await submitDeploymentMetadataSyncAll({'appCode':_0x561460[_0x2a2d7e(0x11b)]});if(_0x1ae4eb[_0x2a2d7e(0x108)]===_0x2a2d7e(0x117))return{'ok':!![],'data':{'operation':_0x2a2d7e(0x112),'appCode':_0x561460[_0x2a2d7e(0x11b)],'submitted':![],'outcome':_0x2a2d7e(0x117)},'message':'No\x20deployment\x20synchronization\x20was\x20needed\x20for\x20this\x20app.'};return{'ok':!![],'data':{'operation':_0x2a2d7e(0x112),'appCode':_0x561460[_0x2a2d7e(0x11b)],'submitted':!![],'outcome':'submitted','jobId':_0x1ae4eb[_0x2a2d7e(0x103)][_0x2a2d7e(0x115)],'status':_0x1ae4eb[_0x2a2d7e(0x103)][_0x2a2d7e(0x11c)]},'message':'Submitted\x20deployment\x20synchronization\x20job\x20'+_0x1ae4eb[_0x2a2d7e(0x103)][_0x2a2d7e(0x115)]+'.'};}catch(_0x12fe96){if(!isPlatformTransportFailure(_0x12fe96))throw _0x12fe96;const _0xccf166=new CliError(_0x2a2d7e(0x10e),0x2,_0x2a2d7e(0x119),_0x2a2d7e(0x123));Object[_0x2a2d7e(0x114)](_0xccf166,'data',{'enumerable':!![],'value':{'operation':'application_deployment_sync','appCode':_0x561460[_0x2a2d7e(0x11b)],'submitted':null,'outcome':'unknown'}});throw _0xccf166;}}};function buildPreview(_0x46f595){const _0xb2fae2=a121_0x17c5e3;return{'operation':'application_deployment_sync','selector':{'appCode':_0x46f595,'scope':_0xb2fae2(0x110)},'before':null,'after':null,'dryRun':!![],'backend':{'submitted':![],'outcome':_0xb2fae2(0x102)},'warnings':[]};}function a121_0xf35e(){const _0x15f671=['Deployment\x20sync\x20submission\x20response\x20was\x20unavailable;\x20job\x20creation\x20is\x20unknown.','sync-all','appCode','status','5278746ylKdzQ','85309KKHJvw','--confirm\x20is\x20required\x20to\x20synchronize\x20all\x20application\x20metadata.','deployment','Would\x20submit\x20an\x20administrative\x20deployment\x20metadata\x20backfill\x20or\x20recovery\x20job.','confirm','List\x20recent\x20deployment\x20sync\x20jobs\x20before\x20deciding\x20whether\x20to\x20submit\x20again.','Confirm\x20the\x20administrative\x20backfill\x20or\x20recovery\x20synchronization','1453900jtghuv','not_submitted','job','6jCMSUZ','/smartapi/data-sync/submit','POST','boolean','outcome','write','253871ULErYg','Backfill\x20or\x20recover\x20all\x20server-supported\x20application\x20metadata','7550784NBADRo','48XjqoWt','deployment_sync_submit_outcome_unknown','2804pFERhw','all_server_supported_metadata','7525WNzRrF','application_deployment_sync','177159VUQuwW','defineProperty','jobId','validation','not_needed','Run\x20with\x20--dry-run\x20first,\x20then\x20add\x20--confirm.'];a121_0xf35e=function(){return _0x15f671;};return a121_0xf35e();}
@@ -1 +1 @@
1
- const a122_0x2b0748=a122_0x12cc;function a122_0x12cc(_0x802e7a,_0x4c0571){_0x802e7a=_0x802e7a-0xe6;const _0x5cff10=a122_0x5cff();let _0x12cc26=_0x5cff10[_0x802e7a];return _0x12cc26;}function a122_0x5cff(){const _0x4d1974=['deployment','string','1068410LvhNdR','Page\x20number','List\x20application\x20deployment\x20synchronization\x20jobs','\x20deployment\x20synchronization\x20job(s).','45awZGKl','appCode','items','num','status','--current-page\x20must\x20be\x20a\x20positive\x20integer.','number','33834420jWgBQQ','page-size','Items\x20per\x20page\x20(maximum\x20100)','58475dYnVcY','length','validation','isSafeInteger','2816456AkcQjM','744OIWZKp','6935005qUWqqW','trim','36357oQIaRg','Found\x20','current-page','Optional\x20server-defined\x20job\x20status\x20filter','str','1416394anRqvB','32KsmPJt'];a122_0x5cff=function(){return _0x4d1974;};return a122_0x5cff();}(function(_0x334458,_0x5b9806){const _0x36694b=a122_0x12cc,_0x43a230=_0x334458();while(!![]){try{const _0xa06d96=parseInt(_0x36694b(0x102))/0x1+parseInt(_0x36694b(0xe7))/0x2+-parseInt(_0x36694b(0xfd))/0x3*(-parseInt(_0x36694b(0x103))/0x4)+-parseInt(_0x36694b(0xf5))/0x5*(-parseInt(_0x36694b(0xfa))/0x6)+-parseInt(_0x36694b(0xfb))/0x7+-parseInt(_0x36694b(0xf9))/0x8*(-parseInt(_0x36694b(0xeb))/0x9)+-parseInt(_0x36694b(0xf2))/0xa;if(_0xa06d96===_0x5b9806)break;else _0x43a230['push'](_0x43a230['shift']());}catch(_0x27f7bf){_0x43a230['push'](_0x43a230['shift']());}}}(a122_0x5cff,0xd7c93));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_0x2b0748(0x104),'command':'sync-jobs','description':a122_0x2b0748(0xe9),'risk':'read','strictFlags':!![],'structuredErrors':!![],'flags':[{'name':'current-page','type':a122_0x2b0748(0xf1),'default':0x1,'description':a122_0x2b0748(0xe8)},{'name':a122_0x2b0748(0xf3),'type':a122_0x2b0748(0xf1),'default':0xa,'description':a122_0x2b0748(0xf4)},{'name':a122_0x2b0748(0xef),'type':a122_0x2b0748(0xe6),'description':a122_0x2b0748(0x100)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x3b6ce0){const _0x4d438e=a122_0x2b0748;readPaging(_0x3b6ce0[_0x4d438e(0xee)]('current-page',0x1),_0x3b6ce0['num'](_0x4d438e(0xf3),0xa));},async 'execute'(_0x3ac8a3){const _0x1bacdc=a122_0x2b0748,{currentPage:_0x250e9f,pageSize:_0x599a91}=readPaging(_0x3ac8a3['num'](_0x1bacdc(0xff),0x1),_0x3ac8a3[_0x1bacdc(0xee)](_0x1bacdc(0xf3),0xa)),_0x50ba3a=_0x3ac8a3[_0x1bacdc(0x101)](_0x1bacdc(0xef))[_0x1bacdc(0xfc)](),_0xf527c5=await listDeploymentMetadataSyncJobs({'appCode':_0x3ac8a3[_0x1bacdc(0xec)],'currentPage':_0x250e9f,'pageSize':_0x599a91,..._0x50ba3a?{'status':_0x50ba3a}:{}});return{'ok':!![],'data':{'appCode':_0x3ac8a3['appCode'],..._0xf527c5},'message':_0x1bacdc(0xfe)+_0xf527c5[_0x1bacdc(0xed)][_0x1bacdc(0xf6)]+_0x1bacdc(0xea)};}};function readPaging(_0x377dcc,_0x6ebf64){const _0x4af295=a122_0x2b0748;if(!Number[_0x4af295(0xf8)](_0x377dcc)||_0x377dcc<0x1)throw CliErrors[_0x4af295(0xf7)](_0x4af295(0xf0));if(!Number[_0x4af295(0xf8)](_0x6ebf64)||_0x6ebf64<0x1||_0x6ebf64>0x64)throw CliErrors[_0x4af295(0xf7)]('--page-size\x20must\x20be\x20an\x20integer\x20from\x201\x20to\x20100.');return{'currentPage':_0x377dcc,'pageSize':_0x6ebf64};}
1
+ function a122_0x8317(_0x197be1,_0x25d24f){_0x197be1=_0x197be1-0xcc;const _0x5710a4=a122_0x5710();let _0x831748=_0x5710a4[_0x197be1];return _0x831748;}const a122_0x24be49=a122_0x8317;(function(_0x192f85,_0x3256e5){const _0x2c12df=a122_0x8317,_0x3e12dd=_0x192f85();while(!![]){try{const _0x476a27=parseInt(_0x2c12df(0xdb))/0x1*(-parseInt(_0x2c12df(0xe3))/0x2)+parseInt(_0x2c12df(0xe7))/0x3+parseInt(_0x2c12df(0xe5))/0x4+parseInt(_0x2c12df(0xcc))/0x5+parseInt(_0x2c12df(0xe6))/0x6+parseInt(_0x2c12df(0xdd))/0x7*(-parseInt(_0x2c12df(0xdf))/0x8)+-parseInt(_0x2c12df(0xd3))/0x9;if(_0x476a27===_0x3256e5)break;else _0x3e12dd['push'](_0x3e12dd['shift']());}catch(_0x430492){_0x3e12dd['push'](_0x3e12dd['shift']());}}}(a122_0x5710,0x8e4af));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{listDeploymentMetadataSyncJobs}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a122_0x5710(){const _0x480b2d=['num','sync-jobs','98106lfLhVH','List\x20application\x20deployment\x20synchronization\x20jobs','2200572QneoJQ','6970044TLtqdq','3210702ELxnAV','4115585NbQGOn','current-page','Found\x20','items','status','Optional\x20server-defined\x20job\x20status\x20filter','trim','7777377SpsBgT','length','--page-size\x20must\x20be\x20an\x20integer\x20from\x201\x20to\x20100.','page-size','--current-page\x20must\x20be\x20a\x20positive\x20integer.','isSafeInteger','Items\x20per\x20page\x20(maximum\x20100)','validation','23qUqjTi','appCode','1441951zZdNAH','number','40ZGPDoa','Page\x20number'];a122_0x5710=function(){return _0x480b2d;};return a122_0x5710();}export const deploymentSyncJobs={'service':'deployment','command':a122_0x24be49(0xe2),'description':a122_0x24be49(0xe4),'risk':'read','strictFlags':!![],'structuredErrors':!![],'flags':[{'name':a122_0x24be49(0xcd),'type':a122_0x24be49(0xde),'default':0x1,'description':a122_0x24be49(0xe0)},{'name':a122_0x24be49(0xd6),'type':a122_0x24be49(0xde),'default':0xa,'description':a122_0x24be49(0xd9)},{'name':a122_0x24be49(0xd0),'type':'string','description':a122_0x24be49(0xd1)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x4c94dd){const _0x44d763=a122_0x24be49;readPaging(_0x4c94dd['num'](_0x44d763(0xcd),0x1),_0x4c94dd['num'](_0x44d763(0xd6),0xa));},async 'execute'(_0x571388){const _0x118821=a122_0x24be49,{currentPage:_0x50ff1e,pageSize:_0x1f3119}=readPaging(_0x571388['num'](_0x118821(0xcd),0x1),_0x571388[_0x118821(0xe1)](_0x118821(0xd6),0xa)),_0x48629c=_0x571388['str'](_0x118821(0xd0))[_0x118821(0xd2)](),_0x1336d1=await listDeploymentMetadataSyncJobs({'appCode':_0x571388['appCode'],'currentPage':_0x50ff1e,'pageSize':_0x1f3119,..._0x48629c?{'status':_0x48629c}:{}});return{'ok':!![],'data':{'appCode':_0x571388[_0x118821(0xdc)],..._0x1336d1},'message':_0x118821(0xce)+_0x1336d1[_0x118821(0xcf)][_0x118821(0xd4)]+'\x20deployment\x20synchronization\x20job(s).'};}};function readPaging(_0x44543d,_0x11f9b4){const _0x6dd07b=a122_0x24be49;if(!Number['isSafeInteger'](_0x44543d)||_0x44543d<0x1)throw CliErrors[_0x6dd07b(0xda)](_0x6dd07b(0xd7));if(!Number[_0x6dd07b(0xd8)](_0x11f9b4)||_0x11f9b4<0x1||_0x11f9b4>0x64)throw CliErrors[_0x6dd07b(0xda)](_0x6dd07b(0xd5));return{'currentPage':_0x44543d,'pageSize':_0x11f9b4};}
@@ -1 +1 @@
1
- const a123_0x1da861=a123_0x4368;function a123_0x4368(_0x32e7ca,_0x44ec80){_0x32e7ca=_0x32e7ca-0x1dd;const _0x183506=a123_0x1835();let _0x43685f=_0x183506[_0x32e7ca];return _0x43685f;}function a123_0x1835(){const _0x485435=['length','10451529EtJbRi','validation','results','Get\x20application\x20deployment\x20synchronization\x20job\x20status','map','--job-id\x20must\x20be\x20a\x20positive\x20integer.','20mYPXPy','status','deployment','3744kMiiob','number','1335IgDXqB','8963234GZaIiq','read','\x20is\x20','PENDING','401081UOqKgn','num','Deployment\x20synchronization\x20job\x20','bizType','filter','101988zzMkaa','job-id',';\x20terminal\x20state\x20is\x20unknown\x20to\x20this\x20CLI\x20version.','reduce','3162950DiBqYA','240lwDPwI','appCode','action','1234045gksGNu','FAILED','Deployment\x20synchronization\x20job\x20ID','RUNNING','6rscYyI'];a123_0x1835=function(){return _0x485435;};return a123_0x1835();}(function(_0x365ac9,_0x369936){const _0x78e3da=a123_0x4368,_0x22a01e=_0x365ac9();while(!![]){try{const _0x1b549c=-parseInt(_0x78e3da(0x1e5))/0x1+parseInt(_0x78e3da(0x1ee))/0x2+-parseInt(_0x78e3da(0x1e0))/0x3*(-parseInt(_0x78e3da(0x1de))/0x4)+parseInt(_0x78e3da(0x1f2))/0x5*(parseInt(_0x78e3da(0x1f6))/0x6)+parseInt(_0x78e3da(0x1e1))/0x7+parseInt(_0x78e3da(0x1ef))/0x8*(-parseInt(_0x78e3da(0x1ea))/0x9)+-parseInt(_0x78e3da(0x1fe))/0xa*(parseInt(_0x78e3da(0x1f8))/0xb);if(_0x1b549c===_0x369936)break;else _0x22a01e['push'](_0x22a01e['shift']());}catch(_0x545f23){_0x22a01e['push'](_0x22a01e['shift']());}}}(a123_0x1835,0xd7ceb));import{getDeploymentMetadataSyncStatus}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const TERMINAL_STATUSES=new Set(['SUCCESS','PARTIAL_SUCCESS',a123_0x1da861(0x1f3)]),ACTIVE_STATUSES=new Set([a123_0x1da861(0x1e4),a123_0x1da861(0x1f5)]);export const deploymentSyncStatus={'service':a123_0x1da861(0x1dd),'command':'sync-status','description':a123_0x1da861(0x1fb),'risk':a123_0x1da861(0x1e2),'requiresAppCode':!![],'strictFlags':!![],'structuredErrors':!![],'flags':[{'name':'job-id','type':a123_0x1da861(0x1df),'required':!![],'description':a123_0x1da861(0x1f4)}],async 'validate'(_0x18750b){const _0x26cd62=a123_0x1da861;readJobId(_0x18750b[_0x26cd62(0x1e6)](_0x26cd62(0x1eb)));},async 'execute'(_0x596d89){const _0x1bb02f=a123_0x1da861,_0x2e391a=readJobId(_0x596d89[_0x1bb02f(0x1e6)]('job-id')),_0xfde7d8=await getDeploymentMetadataSyncStatus({'jobId':_0x2e391a,'appCode':_0x596d89[_0x1bb02f(0x1f0)]}),_0x272d5f=TERMINAL_STATUSES['has'](_0xfde7d8[_0x1bb02f(0x1ff)])?!![]:ACTIVE_STATUSES['has'](_0xfde7d8[_0x1bb02f(0x1ff)])?![]:null,_0x290299=countBy(_0xfde7d8[_0x1bb02f(0x1fa)][_0x1bb02f(0x1fc)](_0x47e881=>_0x47e881[_0x1bb02f(0x1e8)])),_0x3963c7=countBy(_0xfde7d8[_0x1bb02f(0x1fa)][_0x1bb02f(0x1fc)](_0x50683f=>_0x50683f[_0x1bb02f(0x1f1)])),_0x4487df=_0x272d5f===null?['Preserved\x20server-defined\x20status\x20'+_0xfde7d8[_0x1bb02f(0x1ff)]+_0x1bb02f(0x1ec)]:[];return{'ok':!![],'data':{'job':_0xfde7d8,'isTerminal':_0x272d5f,'summary':{'total':_0xfde7d8['results'][_0x1bb02f(0x1f7)],'failed':_0xfde7d8[_0x1bb02f(0x1fa)][_0x1bb02f(0x1e9)](_0x67a82f=>_0x67a82f[_0x1bb02f(0x1f1)]===_0x1bb02f(0x1f3))[_0x1bb02f(0x1f7)],'byBizType':_0x290299,'byAction':_0x3963c7},'warnings':_0x4487df},'message':_0x1bb02f(0x1e7)+_0x2e391a+_0x1bb02f(0x1e3)+_0xfde7d8['status']+'.'};}};function readJobId(_0x508d32){const _0x13bfb2=a123_0x1da861;if(!Number['isSafeInteger'](_0x508d32)||_0x508d32<=0x0)throw CliErrors[_0x13bfb2(0x1f9)](_0x13bfb2(0x1fd));return _0x508d32;}function countBy(_0x139f1a){const _0xb6d601=a123_0x1da861;return _0x139f1a[_0xb6d601(0x1ed)]((_0x470d8f,_0x49f247)=>{return _0x470d8f[_0x49f247]=(_0x470d8f[_0x49f247]??0x0)+0x1,_0x470d8f;},{});}
1
+ const a123_0x1734f7=a123_0x3689;(function(_0x119454,_0x634f1c){const _0x19d456=a123_0x3689,_0x4e9643=_0x119454();while(!![]){try{const _0x1e84e7=-parseInt(_0x19d456(0x17e))/0x1*(-parseInt(_0x19d456(0x180))/0x2)+-parseInt(_0x19d456(0x196))/0x3+parseInt(_0x19d456(0x188))/0x4*(-parseInt(_0x19d456(0x19e))/0x5)+-parseInt(_0x19d456(0x1a1))/0x6+parseInt(_0x19d456(0x18c))/0x7+-parseInt(_0x19d456(0x19d))/0x8+-parseInt(_0x19d456(0x17f))/0x9*(-parseInt(_0x19d456(0x199))/0xa);if(_0x1e84e7===_0x634f1c)break;else _0x4e9643['push'](_0x4e9643['shift']());}catch(_0x36dae0){_0x4e9643['push'](_0x4e9643['shift']());}}}(a123_0xce3e,0x8e6a5));import{getDeploymentMetadataSyncStatus}from'../../core/api-client.js';function a123_0xce3e(){const _0x40f907=['1534986SbYvJd',';\x20terminal\x20state\x20is\x20unknown\x20to\x20this\x20CLI\x20version.','read','3337580KmJhWd','validation','results','isSafeInteger','8261976ZgTxRB','10TWgkep','RUNNING','Preserved\x20server-defined\x20status\x20','859140Ohtupj','filter','FAILED','299WRxJuB','45bsfvPi','3126AIuDfl','\x20is\x20','num','job-id','appCode','--job-id\x20must\x20be\x20a\x20positive\x20integer.','reduce','PENDING','22360FAJjuw','Get\x20application\x20deployment\x20synchronization\x20job\x20status','has','map','1021895aoxcir','PARTIAL_SUCCESS','Deployment\x20synchronization\x20job\x20ID','action','sync-status','length','SUCCESS','deployment','status','number'];a123_0xce3e=function(){return _0x40f907;};return a123_0xce3e();}import{CliErrors}from'../../errors.js';function a123_0x3689(_0x44b769,_0x2c7b01){_0x44b769=_0x44b769-0x17c;const _0xce3e95=a123_0xce3e();let _0x368910=_0xce3e95[_0x44b769];return _0x368910;}const TERMINAL_STATUSES=new Set([a123_0x1734f7(0x192),a123_0x1734f7(0x18d),a123_0x1734f7(0x17d)]),ACTIVE_STATUSES=new Set([a123_0x1734f7(0x187),a123_0x1734f7(0x19f)]);export const deploymentSyncStatus={'service':a123_0x1734f7(0x193),'command':a123_0x1734f7(0x190),'description':a123_0x1734f7(0x189),'risk':a123_0x1734f7(0x198),'requiresAppCode':!![],'strictFlags':!![],'structuredErrors':!![],'flags':[{'name':a123_0x1734f7(0x183),'type':a123_0x1734f7(0x195),'required':!![],'description':a123_0x1734f7(0x18e)}],async 'validate'(_0x380978){const _0x2732b8=a123_0x1734f7;readJobId(_0x380978[_0x2732b8(0x182)](_0x2732b8(0x183)));},async 'execute'(_0x19c69f){const _0x353934=a123_0x1734f7,_0x3a9efe=readJobId(_0x19c69f[_0x353934(0x182)](_0x353934(0x183))),_0x4219a6=await getDeploymentMetadataSyncStatus({'jobId':_0x3a9efe,'appCode':_0x19c69f[_0x353934(0x184)]}),_0x2c51fb=TERMINAL_STATUSES['has'](_0x4219a6[_0x353934(0x194)])?!![]:ACTIVE_STATUSES[_0x353934(0x18a)](_0x4219a6['status'])?![]:null,_0x14a62f=countBy(_0x4219a6[_0x353934(0x19b)][_0x353934(0x18b)](_0x162bdf=>_0x162bdf['bizType'])),_0x2d4ba6=countBy(_0x4219a6[_0x353934(0x19b)][_0x353934(0x18b)](_0x4b6453=>_0x4b6453[_0x353934(0x18f)])),_0x10095e=_0x2c51fb===null?[_0x353934(0x1a0)+_0x4219a6[_0x353934(0x194)]+_0x353934(0x197)]:[];return{'ok':!![],'data':{'job':_0x4219a6,'isTerminal':_0x2c51fb,'summary':{'total':_0x4219a6[_0x353934(0x19b)]['length'],'failed':_0x4219a6[_0x353934(0x19b)][_0x353934(0x17c)](_0x4eef9f=>_0x4eef9f[_0x353934(0x18f)]===_0x353934(0x17d))[_0x353934(0x191)],'byBizType':_0x14a62f,'byAction':_0x2d4ba6},'warnings':_0x10095e},'message':'Deployment\x20synchronization\x20job\x20'+_0x3a9efe+_0x353934(0x181)+_0x4219a6['status']+'.'};}};function readJobId(_0x99e90f){const _0x4098d8=a123_0x1734f7;if(!Number[_0x4098d8(0x19c)](_0x99e90f)||_0x99e90f<=0x0)throw CliErrors[_0x4098d8(0x19a)](_0x4098d8(0x185));return _0x99e90f;}function countBy(_0xf5b1ce){const _0x2b0695=a123_0x1734f7;return _0xf5b1ce[_0x2b0695(0x186)]((_0xc6e540,_0x587a4d)=>{return _0xc6e540[_0x587a4d]=(_0xc6e540[_0x587a4d]??0x0)+0x1,_0xc6e540;},{});}
@@ -1 +1 @@
1
- function a124_0x3113(_0x3abda2,_0x4d88e6){_0x3abda2=_0x3abda2-0x16b;const _0x2f6453=a124_0x2f64();let _0x311362=_0x2f6453[_0x3abda2];return _0x311362;}function a124_0x2f64(){const _0x4ff510=['bold','check','unknown','(missing)','installedPath','✓\x20Valid','skillVersion','(no\x20file)','⚠\x20Empty\x20(treated\x20as\x20{})','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','riskLevel','format','globalConfig','reason','1854591jgsuQq','\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','1114397gsRoEm','\x20\x20Built-in\x20Skill','value','regionConfiguredValue','repeat','includes','(default:\x20','empty','\x20\x20Merged\x20Config','version','Set\x20apps.','read','green','toLowerCase','7QaPdwb','raw','entries','\x20\x20Repair\x20project:\x20\x20\x20','Global','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','currentApp','\x20(default)','repairCommand','padEnd','18jxtVeu','\x20config','prototype','message','state','9285800EUohHB','length','\x20\x20\x20\x20region:\x20\x20\x20\x20\x20','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','\x20doctor','(default)','\x20\x20Repair\x20global:\x20\x20\x20\x20','\x20config\x20delete\x20routing','yellow','\x20\x20runtimeDomain:\x20\x20\x20','\x20\x20Config\x20JSON','string','16618380ORvVSc','doctor','packageVersion','missing','\x20app\x20\x22','join','✗\x20Not\x20logged\x20in','defaultApp','(not\x20set)','\x20\x20\x20\x20accessKey:\x20\x20','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','filter','default','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','✓\x20Valid\x20JSON','\x20\x20kbDomain:\x20\x20\x20\x20\x20\x20\x20\x20','object','\x20config\x20delete\x20region\x20--global','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','appcode','pageSize','current','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','explicitAppName','\x20\x20Repair\x20global:\x20\x20\x20','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','\x20\x20kbServiceDomain:\x20','projectConfig','✗\x20Invalid\x20JSON','\x20\x20─','regionSource','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','499656ppXfxy','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','(not\x20found)','global','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','call','(set,\x20length=','project','2yxDtvI','status','\x20\x20Apps','\x20\x20Auth','region','inherit','log','✗\x20Expired','apps','routing','apiDir','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','null','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20config\x20delete\x20inherit\x20--global','Project','Repair\x20','platform','\x20\x20API\x20Endpoints','hasOwnProperty','\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Not\x20checked\x20until\x20routing\x20configuration\x20is\x20repaired','red','\x20\x20explicitAppName:\x20','(set\x20via\x20file,\x20length=','\x20\x20Legacy\x20inherit:\x20\x20\x20','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','\x20\x20Country/Region\x20Configuration','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','\x20config\x20delete\x20region','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','label','cookie','6191156PJxlLH','\x20config\x20delete\x20inherit','\x20\x20Package\x20Version:\x20','accessKey','\x20\x20Repair\x20project:\x20\x20','\x20\x20Routing\x20Configuration','present','stringify','(none)','env','8012508tNqcKG','source','\x20(invalid)','gray'];a124_0x2f64=function(){return _0x4ff510;};return a124_0x2f64();}const a124_0x54239e=a124_0x3113;(function(_0x26a1b3,_0x29f68c){const _0x56fe19=a124_0x3113,_0x113943=_0x26a1b3();while(!![]){try{const _0xa51470=-parseInt(_0x56fe19(0x1a4))/0x1+-parseInt(_0x56fe19(0x1f6))/0x2*(-parseInt(_0x56fe19(0x1a2))/0x3)+parseInt(_0x56fe19(0x186))/0x4+parseInt(_0x56fe19(0x1c1))/0x5+parseInt(_0x56fe19(0x190))/0x6+-parseInt(_0x56fe19(0x1b2))/0x7*(-parseInt(_0x56fe19(0x1ed))/0x8)+parseInt(_0x56fe19(0x1bc))/0x9*(-parseInt(_0x56fe19(0x1cd))/0xa);if(_0xa51470===_0x29f68c)break;else _0x113943['push'](_0x113943['shift']());}catch(_0x10a9e3){_0x113943['push'](_0x113943['shift']());}}}(a124_0x2f64,0xeffa4));import a124_0x414120 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(_0x12d98d){const _0x106681=a124_0x3113;return typeof _0x12d98d===_0x106681(0x1cc)?JSON[_0x106681(0x18d)](_0x12d98d):'<'+(_0x12d98d===null?_0x106681(0x16e):typeof _0x12d98d)+'>';}async function execute(_0x371eb9){const _0xf557d3=a124_0x3113,_0x38c22d=GIT_COMMIT!==_0xf557d3(0x196)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME['slice'](0x0,0xa)+')':VERSION,_0x57b2fc=buildConfigFromFlags({}),_0x772920=getCookie();let _0x404681;try{await initGlobalEnvironment(_0x57b2fc);}catch(_0x9e2360){_0x404681=_0x9e2360 instanceof Error?_0x9e2360:new Error(String(_0x9e2360));}console[_0xf557d3(0x1fc)](),console[_0xf557d3(0x1fc)](a124_0x414120[_0xf557d3(0x194)](CLI_BIN_NAME+_0xf557d3(0x1c5))),console[_0xf557d3(0x1fc)](a124_0x414120[_0xf557d3(0x193)]('─'[_0xf557d3(0x1a8)](0x32))),console['log'](_0xf557d3(0x1c4)+_0x38c22d),console['log'](_0xf557d3(0x17e)+process[_0xf557d3(0x1ad)]),console['log'](_0xf557d3(0x1da)+process[_0xf557d3(0x173)]+'\x20'+process['arch']);const _0x4adb9d=inspectBuiltinSkill();console[_0xf557d3(0x1fc)](),console[_0xf557d3(0x1fc)](a124_0x414120[_0xf557d3(0x194)](_0xf557d3(0x1a5))),console[_0xf557d3(0x1fc)](a124_0x414120[_0xf557d3(0x193)](_0xf557d3(0x1ea)[_0xf557d3(0x1a8)](0x1e)));const _0x22fdb5=_0x4adb9d[_0xf557d3(0x1c0)]==='current'?a124_0x414120['green']('✓\x20'+_0x4adb9d[_0xf557d3(0x1c0)]):a124_0x414120[_0xf557d3(0x178)]('✗\x20'+_0x4adb9d[_0xf557d3(0x1c0)]);console['log'](_0xf557d3(0x176)+_0x22fdb5),console[_0xf557d3(0x1fc)](_0xf557d3(0x188)+_0x4adb9d[_0xf557d3(0x1cf)]),console[_0xf557d3(0x1fc)]('\x20\x20Skill\x20Version:\x20\x20\x20'+(_0x4adb9d[_0xf557d3(0x19a)]||a124_0x414120[_0xf557d3(0x193)]('(unknown)'))),console['log']('\x20\x20Installed\x20Path:\x20\x20'+(_0x4adb9d[_0xf557d3(0x198)]||a124_0x414120[_0xf557d3(0x193)](_0xf557d3(0x1ef))));if(_0x4adb9d[_0xf557d3(0x1a1)])console[_0xf557d3(0x1fc)](_0xf557d3(0x1a3)+_0x4adb9d[_0xf557d3(0x1a1)]);_0x4adb9d[_0xf557d3(0x1c0)]!==_0xf557d3(0x1e2)&&console[_0xf557d3(0x1fc)]('\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x4adb9d[_0xf557d3(0x1ba)]);console[_0xf557d3(0x1fc)](),console[_0xf557d3(0x1fc)](a124_0x414120[_0xf557d3(0x194)]('\x20\x20Config\x20Files')),console[_0xf557d3(0x1fc)](a124_0x414120[_0xf557d3(0x193)]('\x20\x20─'[_0xf557d3(0x1a8)](0x1e)));const _0x3c41d4=getGlobalConfigPath(),_0x4ba200=getProjectConfigPath();console[_0xf557d3(0x1fc)]('\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x3c41d4||a124_0x414120['gray'](_0xf557d3(0x1ef)))),console[_0xf557d3(0x1fc)](_0xf557d3(0x1ee)+(_0x4ba200||a124_0x414120[_0xf557d3(0x193)](_0xf557d3(0x1ef)))),console[_0xf557d3(0x1fc)](),console[_0xf557d3(0x1fc)](a124_0x414120[_0xf557d3(0x194)](_0xf557d3(0x1cb))),console[_0xf557d3(0x1fc)](a124_0x414120[_0xf557d3(0x193)](_0xf557d3(0x1ea)[_0xf557d3(0x1a8)](0x1e)));const _0x3e9be6=(_0x4d13a7,_0xe5b565)=>{const _0x2ae41d=_0xf557d3;if(!_0xe5b565){console[_0x2ae41d(0x1fc)]('\x20\x20'+_0x4d13a7['padEnd'](0x11)+'\x20'+a124_0x414120[_0x2ae41d(0x193)](_0x2ae41d(0x19b)));return;}const _0x399984=inspectCliConfigJsonFile(_0xe5b565);if(_0x399984[_0x2ae41d(0x1f7)]==='ok')console['log']('\x20\x20'+_0x4d13a7[_0x2ae41d(0x1bb)](0x11)+'\x20'+a124_0x414120[_0x2ae41d(0x1b0)](_0x2ae41d(0x1db)));else{if(_0x399984['status']===_0x2ae41d(0x1ab))console[_0x2ae41d(0x1fc)]('\x20\x20'+_0x4d13a7[_0x2ae41d(0x1bb)](0x11)+'\x20'+a124_0x414120[_0x2ae41d(0x1c9)](_0x2ae41d(0x19c)));else _0x399984[_0x2ae41d(0x1f7)]===_0x2ae41d(0x1d0)?console[_0x2ae41d(0x1fc)]('\x20\x20'+_0x4d13a7[_0x2ae41d(0x1bb)](0x11)+'\x20'+a124_0x414120['gray'](_0x2ae41d(0x197))):(console[_0x2ae41d(0x1fc)]('\x20\x20'+_0x4d13a7['padEnd'](0x11)+'\x20'+a124_0x414120[_0x2ae41d(0x178)](_0x2ae41d(0x1e9))),console['log']('\x20\x20'+''[_0x2ae41d(0x1bb)](0x11)+'\x20'+a124_0x414120['red'](_0x399984[_0x2ae41d(0x1bf)])));}};_0x3e9be6('Global',_0x3c41d4),_0x3e9be6('Project',_0x4ba200);const _0x147845=loadRawConfigLayers(),_0x4419d7=[{'label':'Project','value':_0x147845[_0xf557d3(0x1e8)]['region'],'present':Object[_0xf557d3(0x1be)][_0xf557d3(0x175)][_0xf557d3(0x1f3)](_0x147845[_0xf557d3(0x1e8)],_0xf557d3(0x1fa)),'repairCommand':CLI_BIN_NAME+_0xf557d3(0x180)},{'label':_0xf557d3(0x1b6),'value':_0x147845[_0xf557d3(0x1a0)][_0xf557d3(0x1fa)],'present':Object[_0xf557d3(0x1be)][_0xf557d3(0x175)]['call'](_0x147845[_0xf557d3(0x1a0)],'region'),'repairCommand':CLI_BIN_NAME+_0xf557d3(0x1de)}][_0xf557d3(0x1d8)](_0x4561f4=>_0x4561f4[_0xf557d3(0x18c)]&&isInvalidLovrabetRegion(_0x4561f4['value']));for(const [_0x30e8e3,_0x23c3e3]of[[_0xf557d3(0x171),_0x147845[_0xf557d3(0x1e8)]],[_0xf557d3(0x1b6),_0x147845[_0xf557d3(0x1a0)]]]){const _0x476922=_0x23c3e3[_0xf557d3(0x1fe)]&&typeof _0x23c3e3['apps']===_0xf557d3(0x1dd)?_0x23c3e3[_0xf557d3(0x1fe)]:{};for(const [_0x40f9ae,_0x1d8153]of Object[_0xf557d3(0x1b4)](_0x476922)){if(!_0x1d8153||typeof _0x1d8153!==_0xf557d3(0x1dd)||!Object[_0xf557d3(0x1be)][_0xf557d3(0x175)][_0xf557d3(0x1f3)](_0x1d8153,'region'))continue;isInvalidLovrabetRegion(_0x1d8153[_0xf557d3(0x1fa)])&&_0x4419d7['push']({'label':_0x30e8e3+_0xf557d3(0x1d1)+_0x40f9ae+'\x22','value':_0x1d8153[_0xf557d3(0x1fa)],'present':!![],'repairCommand':_0xf557d3(0x1ae)+_0x40f9ae+'.region\x20to\x20cn\x20or\x20id\x20in\x20'+_0x30e8e3[_0xf557d3(0x1b1)]()+'\x20config'});}}if(_0x4419d7[_0xf557d3(0x1c2)]>0x0){console[_0xf557d3(0x1fc)](),console[_0xf557d3(0x1fc)](a124_0x414120['bold'](_0xf557d3(0x17d))),console['log'](a124_0x414120[_0xf557d3(0x193)](_0xf557d3(0x1ea)[_0xf557d3(0x1a8)](0x1e)));for(const _0x4d2f27 of _0x4419d7){console[_0xf557d3(0x1fc)]('\x20\x20'+_0x4d2f27[_0xf557d3(0x184)][_0xf557d3(0x1bb)](0x11)+'\x20'+a124_0x414120['red']('✗\x20Invalid\x20'+describeRegionValue(_0x4d2f27['value']))),console[_0xf557d3(0x1fc)]('\x20\x20'+(_0xf557d3(0x172)+_0x4d2f27[_0xf557d3(0x184)][_0xf557d3(0x1b1)]()+':')[_0xf557d3(0x1bb)](0x10)+'\x20'+_0x4d2f27[_0xf557d3(0x1ba)]);}}const _0x4dc868=[Object[_0xf557d3(0x1be)][_0xf557d3(0x175)][_0xf557d3(0x1f3)](_0x147845[_0xf557d3(0x1a0)],_0xf557d3(0x1fb))?_0xf557d3(0x1f0):null,Object['prototype'][_0xf557d3(0x175)][_0xf557d3(0x1f3)](_0x147845[_0xf557d3(0x1e8)],_0xf557d3(0x1fb))?_0xf557d3(0x1f5):null][_0xf557d3(0x1d8)](Boolean);_0x4dc868[_0xf557d3(0x1c2)]>0x0&&(console[_0xf557d3(0x1fc)](_0xf557d3(0x17b)+a124_0x414120[_0xf557d3(0x1c9)]('ignored\x20in\x20'+_0x4dc868[_0xf557d3(0x1d2)]('\x20+\x20')+_0xf557d3(0x1bd))),_0x4dc868[_0xf557d3(0x1a9)]('project')&&console['log'](_0xf557d3(0x1b5)+CLI_BIN_NAME+_0xf557d3(0x187)),_0x4dc868['includes'](_0xf557d3(0x1f0))&&console['log'](_0xf557d3(0x1c7)+CLI_BIN_NAME+_0xf557d3(0x170)));const _0x7385c7=isInvalidLovrabetRegion(_0x57b2fc['regionConfiguredValue']??_0x57b2fc['raw']?.[_0xf557d3(0x1fa)]);_0x404681&&!_0x7385c7&&(console[_0xf557d3(0x1fc)](),console[_0xf557d3(0x1fc)](a124_0x414120[_0xf557d3(0x194)](_0xf557d3(0x18b))),console[_0xf557d3(0x1fc)](a124_0x414120[_0xf557d3(0x193)](_0xf557d3(0x1ea)[_0xf557d3(0x1a8)](0x1e))),console[_0xf557d3(0x1fc)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a124_0x414120[_0xf557d3(0x178)]('✗\x20Invalid')),console[_0xf557d3(0x1fc)](_0xf557d3(0x1a3)+_0x404681[_0xf557d3(0x1bf)]),Object[_0xf557d3(0x1be)][_0xf557d3(0x175)][_0xf557d3(0x1f3)](_0x147845[_0xf557d3(0x1e8)],_0xf557d3(0x16b))&&console['log'](_0xf557d3(0x18a)+CLI_BIN_NAME+_0xf557d3(0x1c8)),Object['prototype'][_0xf557d3(0x175)][_0xf557d3(0x1f3)](_0x147845['globalConfig'],_0xf557d3(0x16b))&&console['log'](_0xf557d3(0x1e5)+CLI_BIN_NAME+'\x20config\x20delete\x20routing\x20--global'));console[_0xf557d3(0x1fc)](),console[_0xf557d3(0x1fc)](a124_0x414120[_0xf557d3(0x194)](_0xf557d3(0x1ac))),console[_0xf557d3(0x1fc)](a124_0x414120[_0xf557d3(0x193)](_0xf557d3(0x1ea)[_0xf557d3(0x1a8)](0x1e))),console[_0xf557d3(0x1fc)](_0xf557d3(0x1d7)+(_0x57b2fc['appCode']||a124_0x414120['red'](_0xf557d3(0x1d5))));const _0x68b8b1=_0x7385c7?a124_0x414120[_0xf557d3(0x178)](describeRegionValue(_0x57b2fc[_0xf557d3(0x1a7)]??_0x57b2fc[_0xf557d3(0x1b3)]?.[_0xf557d3(0x1fa)])+_0xf557d3(0x192)):(_0x57b2fc[_0xf557d3(0x1fa)]??DEFAULT_LOVRABET_REGION)+'\x20('+(_0x57b2fc[_0xf557d3(0x1eb)]??_0xf557d3(0x1d9))+')';console[_0xf557d3(0x1fc)](_0xf557d3(0x1f2)+_0x68b8b1),console[_0xf557d3(0x1fc)](_0xf557d3(0x183)+_0x57b2fc[_0xf557d3(0x18f)]),console[_0xf557d3(0x1fc)]('\x20\x20app\x20locale:\x20\x20\x20\x20\x20\x20'+_0x57b2fc['locale']),console[_0xf557d3(0x1fc)](_0xf557d3(0x1ec)+_0x57b2fc[_0xf557d3(0x16c)]),console['log']('\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20'+(_0x57b2fc[_0xf557d3(0x1d4)]||a124_0x414120[_0xf557d3(0x193)](_0xf557d3(0x18e)))),console['log'](_0xf557d3(0x17f)+(_0x57b2fc[_0xf557d3(0x1b8)]||a124_0x414120['gray'](_0xf557d3(0x18e)))),console[_0xf557d3(0x1fc)](_0xf557d3(0x179)+(_0x57b2fc[_0xf557d3(0x1e4)]||a124_0x414120[_0xf557d3(0x193)]('(none)'))),console[_0xf557d3(0x1fc)](_0xf557d3(0x19d)+(_0x57b2fc['format']||a124_0x414120[_0xf557d3(0x193)](_0xf557d3(0x1aa)+DEFAULT_CONFIG_VALUES[_0xf557d3(0x19f)]+')'))),console[_0xf557d3(0x1fc)](_0xf557d3(0x1e3)+(_0x57b2fc[_0xf557d3(0x1e1)]??a124_0x414120[_0xf557d3(0x193)](_0xf557d3(0x1c6)))),console['log']('\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20'+_0x57b2fc[_0xf557d3(0x19e)]),console[_0xf557d3(0x1fc)](_0xf557d3(0x16f)+_0x57b2fc['verbose']),console[_0xf557d3(0x1fc)](_0xf557d3(0x182)+(_0x57b2fc[_0xf557d3(0x185)]?a124_0x414120[_0xf557d3(0x1b0)](_0xf557d3(0x1f4)+_0x57b2fc[_0xf557d3(0x185)][_0xf557d3(0x1c2)]+')'):_0x772920?a124_0x414120[_0xf557d3(0x1b0)](_0xf557d3(0x17a)+_0x772920[_0xf557d3(0x1c2)]+')'):a124_0x414120['gray'](_0xf557d3(0x18e))));const _0x34a029=Object['keys'](_0x57b2fc[_0xf557d3(0x1fe)]);if(_0x34a029[_0xf557d3(0x1c2)]>0x0){console[_0xf557d3(0x1fc)](),console[_0xf557d3(0x1fc)](a124_0x414120[_0xf557d3(0x194)](_0xf557d3(0x1f8))),console[_0xf557d3(0x1fc)](a124_0x414120['gray'](_0xf557d3(0x1ea)['repeat'](0x1e)));for(const _0x62591a of _0x34a029){const _0x507a07=_0x57b2fc[_0xf557d3(0x1fe)][_0x62591a],_0x20a0b9=_0x62591a===_0x57b2fc[_0xf557d3(0x1d4)],_0x26c952=_0x62591a===_0x57b2fc['currentApp'],_0x27bc9c=_0x26c952?a124_0x414120[_0xf557d3(0x1b0)]('\x20←\x20current'):'',_0x220d4a=_0x20a0b9?_0xf557d3(0x1b9):'';console['log']('\x20\x20'+_0x62591a+_0x220d4a+_0x27bc9c),console['log'](_0xf557d3(0x181)+_0x507a07[_0xf557d3(0x1e0)]);const _0x3d4bb6=_0x147845[_0xf557d3(0x1e8)]['apps']&&typeof _0x147845[_0xf557d3(0x1e8)][_0xf557d3(0x1fe)]==='object'?_0x147845[_0xf557d3(0x1e8)][_0xf557d3(0x1fe)]:{},_0x127161=Object[_0xf557d3(0x1be)][_0xf557d3(0x175)][_0xf557d3(0x1f3)](_0x3d4bb6,_0x62591a),_0x33d4ea=isInvalidLovrabetRegion(_0x507a07['region'])?{'region':_0x57b2fc[_0xf557d3(0x1fa)]??DEFAULT_LOVRABET_REGION}:resolveEffectiveRegion({'appRegion':_0x507a07[_0xf557d3(0x1fa)],'projectRegion':_0x127161?_0x147845[_0xf557d3(0x1e8)]['region']:undefined,'globalRegion':_0x147845['globalConfig'][_0xf557d3(0x1fa)],'mergedRegion':_0x57b2fc[_0xf557d3(0x1b3)][_0xf557d3(0x1fa)],'appName':_0x62591a}),_0x1fa008=buildAppDoctorFields(_0x507a07,{'region':_0x33d4ea[_0xf557d3(0x1fa)],'env':_0x57b2fc[_0xf557d3(0x18f)],'apiDir':_0x57b2fc[_0xf557d3(0x1b3)][_0xf557d3(0x16c)]||DEFAULT_CONFIG_VALUES['apiDir'],'cookie':_0x57b2fc['cookie']||_0x772920||undefined,'accessKey':_0x57b2fc[_0xf557d3(0x189)]});console[_0xf557d3(0x1fc)](_0xf557d3(0x1c3)+_0x1fa008[_0xf557d3(0x1fa)][_0xf557d3(0x1a6)]+'\x20\x20'+a124_0x414120[_0xf557d3(0x193)]('('+_0x1fa008[_0xf557d3(0x1fa)]['source']+')')),console[_0xf557d3(0x1fc)](_0xf557d3(0x16d)+_0x1fa008[_0xf557d3(0x18f)]['value']+'\x20\x20'+a124_0x414120['gray']('('+_0x1fa008[_0xf557d3(0x18f)][_0xf557d3(0x191)]+')')),console['log'](_0xf557d3(0x17c)+_0x1fa008[_0xf557d3(0x16c)][_0xf557d3(0x1a6)]+'\x20\x20'+a124_0x414120[_0xf557d3(0x193)]('('+_0x1fa008[_0xf557d3(0x16c)][_0xf557d3(0x191)]+')'));const _0x3c7b2e=_0x1fa008[_0xf557d3(0x185)]['value']?a124_0x414120['green'](_0xf557d3(0x1f4)+_0x1fa008[_0xf557d3(0x185)][_0xf557d3(0x1a6)][_0xf557d3(0x1c2)]+')'):a124_0x414120['gray'](_0xf557d3(0x18e));console['log']('\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20'+_0x3c7b2e+'\x20\x20'+a124_0x414120[_0xf557d3(0x193)]('('+_0x1fa008[_0xf557d3(0x185)]['source']+')'));const _0x17bad3=_0x1fa008[_0xf557d3(0x189)][_0xf557d3(0x1a6)]?a124_0x414120[_0xf557d3(0x1b0)](_0xf557d3(0x1f4)+_0x1fa008[_0xf557d3(0x189)][_0xf557d3(0x1a6)][_0xf557d3(0x1c2)]+')'):a124_0x414120[_0xf557d3(0x193)](_0xf557d3(0x18e));console[_0xf557d3(0x1fc)](_0xf557d3(0x1d6)+_0x17bad3+'\x20\x20'+a124_0x414120[_0xf557d3(0x193)]('('+_0x1fa008[_0xf557d3(0x189)]['source']+')'));}}console[_0xf557d3(0x1fc)](),console['log'](a124_0x414120['bold'](_0xf557d3(0x174))),console[_0xf557d3(0x1fc)](a124_0x414120[_0xf557d3(0x193)]('\x20\x20─'[_0xf557d3(0x1a8)](0x1e)));_0x404681?console[_0xf557d3(0x1fc)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a124_0x414120['red']('Unavailable\x20until\x20routing\x20configuration\x20is\x20repaired')):(console['log']('\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+getActiveRegion()),console[_0xf557d3(0x1fc)](_0xf557d3(0x1e6)+getApiDomain()),console['log'](_0xf557d3(0x1b7)+getUserDomain()),console['log'](_0xf557d3(0x1ca)+getRuntimeDomain()),console[_0xf557d3(0x1fc)]('\x20\x20skillDomain:\x20\x20\x20\x20\x20'+getSkillDomain()),console['log'](_0xf557d3(0x1dc)+getKbDomain()),console[_0xf557d3(0x1fc)](_0xf557d3(0x1e7)+(getKbServiceDomain()??'not\x20configured')),console[_0xf557d3(0x1fc)]('\x20\x20appDomain:\x20\x20\x20\x20\x20\x20\x20'+getAppDomain()));console[_0xf557d3(0x1fc)](),console[_0xf557d3(0x1fc)](a124_0x414120['bold'](_0xf557d3(0x1f9))),console[_0xf557d3(0x1fc)](a124_0x414120['gray'](_0xf557d3(0x1ea)['repeat'](0x1e)));if(_0x404681)console[_0xf557d3(0x1fc)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a124_0x414120[_0xf557d3(0x1c9)](_0xf557d3(0x177)));else{if(_0x772920){const _0x7c1af0=await getIsSessionValid();console['log']('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x7c1af0?a124_0x414120[_0xf557d3(0x1b0)](_0xf557d3(0x199)):a124_0x414120[_0xf557d3(0x178)](_0xf557d3(0x1fd))));}else console[_0xf557d3(0x1fc)](_0xf557d3(0x1f1)+a124_0x414120[_0xf557d3(0x178)](_0xf557d3(0x1d3)));}return console[_0xf557d3(0x1fc)](),{'ok':!![]};}export const doctorDefinition={'service':a124_0x54239e(0x1ce),'command':a124_0x54239e(0x195),'description':a124_0x54239e(0x1df),'risk':a124_0x54239e(0x1af),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
1
+ const a124_0x24ea5b=a124_0x27ea;(function(_0xde0c58,_0x4add10){const _0x2838d5=a124_0x27ea,_0x442b8a=_0xde0c58();while(!![]){try{const _0x357ae6=parseInt(_0x2838d5(0x174))/0x1*(-parseInt(_0x2838d5(0x17b))/0x2)+parseInt(_0x2838d5(0x146))/0x3*(-parseInt(_0x2838d5(0x18b))/0x4)+parseInt(_0x2838d5(0x161))/0x5+parseInt(_0x2838d5(0x156))/0x6+-parseInt(_0x2838d5(0x115))/0x7+-parseInt(_0x2838d5(0x137))/0x8*(-parseInt(_0x2838d5(0x153))/0x9)+-parseInt(_0x2838d5(0x118))/0xa*(-parseInt(_0x2838d5(0x16d))/0xb);if(_0x357ae6===_0x4add10)break;else _0x442b8a['push'](_0x442b8a['shift']());}catch(_0x3652b3){_0x442b8a['push'](_0x442b8a['shift']());}}}(a124_0x38a3,0x7117b));import a124_0x3807e8 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';function a124_0x27ea(_0x26b1b4,_0x34df6d){_0x26b1b4=_0x26b1b4-0xfb;const _0x38a39b=a124_0x38a3();let _0x27ea19=_0x38a39b[_0x26b1b4];return _0x27ea19;}import{inspectBuiltinSkill}from'../skills/builtin-skill.js';import{DEFAULT_LOVRABET_REGION,isInvalidLovrabetRegion}from'../constant/region.js';function describeRegionValue(_0x1f8860){const _0x2fe3a8=a124_0x27ea;return typeof _0x1f8860==='string'?JSON[_0x2fe3a8(0x17f)](_0x1f8860):'<'+(_0x1f8860===null?_0x2fe3a8(0x18a):typeof _0x1f8860)+'>';}async function execute(_0x31b515){const _0x16c969=a124_0x27ea,_0x5827e2=GIT_COMMIT!=='unknown'?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x16c969(0x13e)](0x0,0xa)+')':VERSION,_0x1f5cd3=buildConfigFromFlags({}),_0x10e299=getCookie();let _0x1038cc;try{await initGlobalEnvironment(_0x1f5cd3);}catch(_0x21d485){_0x1038cc=_0x21d485 instanceof Error?_0x21d485:new Error(String(_0x21d485));}console[_0x16c969(0x133)](),console[_0x16c969(0x133)](a124_0x3807e8[_0x16c969(0x149)](CLI_BIN_NAME+_0x16c969(0x162))),console[_0x16c969(0x133)](a124_0x3807e8['gray']('─'[_0x16c969(0x10a)](0x32))),console[_0x16c969(0x133)](_0x16c969(0x185)+_0x5827e2),console[_0x16c969(0x133)](_0x16c969(0x166)+process[_0x16c969(0x14e)]),console[_0x16c969(0x133)]('\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20'+process['platform']+'\x20'+process[_0x16c969(0x113)]);const _0x1a0cb0=inspectBuiltinSkill();console['log'](),console['log'](a124_0x3807e8['bold'](_0x16c969(0x111))),console[_0x16c969(0x133)](a124_0x3807e8[_0x16c969(0x120)](_0x16c969(0x104)['repeat'](0x1e)));const _0x5c995b=_0x1a0cb0['state']===_0x16c969(0x123)?a124_0x3807e8[_0x16c969(0x13c)]('✓\x20'+_0x1a0cb0[_0x16c969(0x157)]):a124_0x3807e8['red']('✗\x20'+_0x1a0cb0['state']);console[_0x16c969(0x133)](_0x16c969(0x11f)+_0x5c995b),console[_0x16c969(0x133)]('\x20\x20Package\x20Version:\x20'+_0x1a0cb0[_0x16c969(0x188)]),console[_0x16c969(0x133)](_0x16c969(0x139)+(_0x1a0cb0[_0x16c969(0x180)]||a124_0x3807e8[_0x16c969(0x120)](_0x16c969(0x16f)))),console[_0x16c969(0x133)]('\x20\x20Installed\x20Path:\x20\x20'+(_0x1a0cb0[_0x16c969(0x181)]||a124_0x3807e8['gray'](_0x16c969(0x13b))));if(_0x1a0cb0[_0x16c969(0x13d)])console[_0x16c969(0x133)](_0x16c969(0x175)+_0x1a0cb0['reason']);_0x1a0cb0['state']!==_0x16c969(0x123)&&console[_0x16c969(0x133)]('\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x1a0cb0[_0x16c969(0x170)]);console[_0x16c969(0x133)](),console[_0x16c969(0x133)](a124_0x3807e8['bold']('\x20\x20Config\x20Files')),console['log'](a124_0x3807e8[_0x16c969(0x120)]('\x20\x20─'[_0x16c969(0x10a)](0x1e)));const _0x137e37=getGlobalConfigPath(),_0x59f8ea=getProjectConfigPath();console[_0x16c969(0x133)](_0x16c969(0x171)+(_0x137e37||a124_0x3807e8[_0x16c969(0x120)](_0x16c969(0x13b)))),console[_0x16c969(0x133)]('\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x59f8ea||a124_0x3807e8[_0x16c969(0x120)](_0x16c969(0x13b)))),console[_0x16c969(0x133)](),console[_0x16c969(0x133)](a124_0x3807e8[_0x16c969(0x149)](_0x16c969(0x132))),console[_0x16c969(0x133)](a124_0x3807e8[_0x16c969(0x120)]('\x20\x20─'[_0x16c969(0x10a)](0x1e)));const _0x329908=(_0x4a73ae,_0x40bb62)=>{const _0xbfb5c2=_0x16c969;if(!_0x40bb62){console[_0xbfb5c2(0x133)]('\x20\x20'+_0x4a73ae[_0xbfb5c2(0x176)](0x11)+'\x20'+a124_0x3807e8[_0xbfb5c2(0x120)](_0xbfb5c2(0x130)));return;}const _0x3e88ed=inspectCliConfigJsonFile(_0x40bb62);if(_0x3e88ed[_0xbfb5c2(0x126)]==='ok')console[_0xbfb5c2(0x133)]('\x20\x20'+_0x4a73ae['padEnd'](0x11)+'\x20'+a124_0x3807e8['green']('✓\x20Valid\x20JSON'));else{if(_0x3e88ed[_0xbfb5c2(0x126)]===_0xbfb5c2(0x136))console['log']('\x20\x20'+_0x4a73ae[_0xbfb5c2(0x176)](0x11)+'\x20'+a124_0x3807e8['yellow'](_0xbfb5c2(0xfd)));else _0x3e88ed['status']===_0xbfb5c2(0x127)?console[_0xbfb5c2(0x133)]('\x20\x20'+_0x4a73ae[_0xbfb5c2(0x176)](0x11)+'\x20'+a124_0x3807e8['gray'](_0xbfb5c2(0x16c))):(console[_0xbfb5c2(0x133)]('\x20\x20'+_0x4a73ae['padEnd'](0x11)+'\x20'+a124_0x3807e8['red'](_0xbfb5c2(0x163))),console[_0xbfb5c2(0x133)]('\x20\x20'+''[_0xbfb5c2(0x176)](0x11)+'\x20'+a124_0x3807e8[_0xbfb5c2(0x167)](_0x3e88ed[_0xbfb5c2(0x187)])));}};_0x329908(_0x16c969(0x16a),_0x137e37),_0x329908(_0x16c969(0x189),_0x59f8ea);const _0x5b31d0=loadRawConfigLayers(),_0x49e9c6=[{'label':_0x16c969(0x189),'value':_0x5b31d0[_0x16c969(0x151)]['region'],'present':Object[_0x16c969(0x142)][_0x16c969(0x105)][_0x16c969(0x154)](_0x5b31d0[_0x16c969(0x151)],'region'),'repairCommand':CLI_BIN_NAME+_0x16c969(0xff)},{'label':_0x16c969(0x16a),'value':_0x5b31d0[_0x16c969(0x14a)][_0x16c969(0x159)],'present':Object['prototype'][_0x16c969(0x105)][_0x16c969(0x154)](_0x5b31d0[_0x16c969(0x14a)],_0x16c969(0x159)),'repairCommand':CLI_BIN_NAME+_0x16c969(0x124)}][_0x16c969(0x100)](_0x143bb6=>_0x143bb6['present']&&isInvalidLovrabetRegion(_0x143bb6[_0x16c969(0x178)]));for(const [_0x283f7b,_0x3af0de]of[[_0x16c969(0x189),_0x5b31d0[_0x16c969(0x151)]],['Global',_0x5b31d0[_0x16c969(0x14a)]]]){const _0x4720f1=_0x3af0de[_0x16c969(0x101)]&&typeof _0x3af0de[_0x16c969(0x101)]==='object'?_0x3af0de[_0x16c969(0x101)]:{};for(const [_0x341430,_0x5db254]of Object['entries'](_0x4720f1)){if(!_0x5db254||typeof _0x5db254!==_0x16c969(0x160)||!Object[_0x16c969(0x142)]['hasOwnProperty'][_0x16c969(0x154)](_0x5db254,_0x16c969(0x159)))continue;isInvalidLovrabetRegion(_0x5db254[_0x16c969(0x159)])&&_0x49e9c6['push']({'label':_0x283f7b+_0x16c969(0x13f)+_0x341430+'\x22','value':_0x5db254[_0x16c969(0x159)],'present':!![],'repairCommand':_0x16c969(0x122)+_0x341430+_0x16c969(0x17e)+_0x283f7b['toLowerCase']()+_0x16c969(0x148)});}}if(_0x49e9c6[_0x16c969(0x168)]>0x0){console[_0x16c969(0x133)](),console[_0x16c969(0x133)](a124_0x3807e8[_0x16c969(0x149)](_0x16c969(0x182))),console[_0x16c969(0x133)](a124_0x3807e8[_0x16c969(0x120)](_0x16c969(0x104)[_0x16c969(0x10a)](0x1e)));for(const _0x2176fb of _0x49e9c6){console[_0x16c969(0x133)]('\x20\x20'+_0x2176fb[_0x16c969(0x11e)]['padEnd'](0x11)+'\x20'+a124_0x3807e8[_0x16c969(0x167)](_0x16c969(0x14d)+describeRegionValue(_0x2176fb[_0x16c969(0x178)]))),console[_0x16c969(0x133)]('\x20\x20'+(_0x16c969(0x12f)+_0x2176fb[_0x16c969(0x11e)]['toLowerCase']()+':')[_0x16c969(0x176)](0x10)+'\x20'+_0x2176fb[_0x16c969(0x170)]);}}const _0x22a9ac=[Object[_0x16c969(0x142)][_0x16c969(0x105)][_0x16c969(0x154)](_0x5b31d0[_0x16c969(0x14a)],'inherit')?_0x16c969(0x10b):null,Object['prototype'][_0x16c969(0x105)][_0x16c969(0x154)](_0x5b31d0[_0x16c969(0x151)],_0x16c969(0x128))?_0x16c969(0x15e):null][_0x16c969(0x100)](Boolean);_0x22a9ac[_0x16c969(0x168)]>0x0&&(console[_0x16c969(0x133)](_0x16c969(0x109)+a124_0x3807e8[_0x16c969(0x179)](_0x16c969(0x11b)+_0x22a9ac[_0x16c969(0x12c)](_0x16c969(0x10c))+'\x20config')),_0x22a9ac['includes'](_0x16c969(0x15e))&&console[_0x16c969(0x133)](_0x16c969(0x165)+CLI_BIN_NAME+'\x20config\x20delete\x20inherit'),_0x22a9ac[_0x16c969(0x186)](_0x16c969(0x10b))&&console[_0x16c969(0x133)](_0x16c969(0xfb)+CLI_BIN_NAME+_0x16c969(0x11d)));const _0x58cece=isInvalidLovrabetRegion(_0x1f5cd3[_0x16c969(0x13a)]??_0x1f5cd3[_0x16c969(0x112)]?.['region']);_0x1038cc&&!_0x58cece&&(console[_0x16c969(0x133)](),console['log'](a124_0x3807e8['bold'](_0x16c969(0xfe))),console[_0x16c969(0x133)](a124_0x3807e8['gray'](_0x16c969(0x104)[_0x16c969(0x10a)](0x1e))),console[_0x16c969(0x133)](_0x16c969(0x117)+a124_0x3807e8[_0x16c969(0x167)](_0x16c969(0x14f))),console[_0x16c969(0x133)](_0x16c969(0x175)+_0x1038cc[_0x16c969(0x187)]),Object[_0x16c969(0x142)][_0x16c969(0x105)][_0x16c969(0x154)](_0x5b31d0[_0x16c969(0x151)],_0x16c969(0x177))&&console[_0x16c969(0x133)](_0x16c969(0x145)+CLI_BIN_NAME+_0x16c969(0x140)),Object['prototype'][_0x16c969(0x105)][_0x16c969(0x154)](_0x5b31d0[_0x16c969(0x14a)],_0x16c969(0x177))&&console[_0x16c969(0x133)](_0x16c969(0x164)+CLI_BIN_NAME+_0x16c969(0x134)));console[_0x16c969(0x133)](),console['log'](a124_0x3807e8[_0x16c969(0x149)](_0x16c969(0x108))),console[_0x16c969(0x133)](a124_0x3807e8['gray']('\x20\x20─'['repeat'](0x1e))),console[_0x16c969(0x133)](_0x16c969(0x14c)+(_0x1f5cd3['appCode']||a124_0x3807e8[_0x16c969(0x167)]('(not\x20set)')));const _0x43d60e=_0x58cece?a124_0x3807e8[_0x16c969(0x167)](describeRegionValue(_0x1f5cd3['regionConfiguredValue']??_0x1f5cd3[_0x16c969(0x112)]?.['region'])+'\x20(invalid)'):(_0x1f5cd3[_0x16c969(0x159)]??DEFAULT_LOVRABET_REGION)+'\x20('+(_0x1f5cd3[_0x16c969(0x103)]??'default')+')';console['log'](_0x16c969(0x129)+_0x43d60e),console['log'](_0x16c969(0x18c)+_0x1f5cd3[_0x16c969(0x125)]),console[_0x16c969(0x133)](_0x16c969(0x102)+_0x1f5cd3[_0x16c969(0x143)]),console[_0x16c969(0x133)](_0x16c969(0x158)+_0x1f5cd3[_0x16c969(0x169)]),console[_0x16c969(0x133)](_0x16c969(0x173)+(_0x1f5cd3['defaultApp']||a124_0x3807e8[_0x16c969(0x120)]('(none)'))),console[_0x16c969(0x133)](_0x16c969(0x183)+(_0x1f5cd3[_0x16c969(0x10d)]||a124_0x3807e8['gray'](_0x16c969(0x17a)))),console[_0x16c969(0x133)](_0x16c969(0x11c)+(_0x1f5cd3[_0x16c969(0x17d)]||a124_0x3807e8[_0x16c969(0x120)]('(none)'))),console[_0x16c969(0x133)](_0x16c969(0x18d)+(_0x1f5cd3[_0x16c969(0x116)]||a124_0x3807e8[_0x16c969(0x120)](_0x16c969(0x12e)+DEFAULT_CONFIG_VALUES[_0x16c969(0x116)]+')'))),console[_0x16c969(0x133)]('\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x1f5cd3[_0x16c969(0x144)]??a124_0x3807e8[_0x16c969(0x120)](_0x16c969(0x12a)))),console[_0x16c969(0x133)]('\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20'+_0x1f5cd3[_0x16c969(0x110)]),console[_0x16c969(0x133)]('\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x1f5cd3[_0x16c969(0x131)]),console['log'](_0x16c969(0x16b)+(_0x1f5cd3[_0x16c969(0x114)]?a124_0x3807e8[_0x16c969(0x13c)]('(set,\x20length='+_0x1f5cd3['cookie']['length']+')'):_0x10e299?a124_0x3807e8[_0x16c969(0x13c)](_0x16c969(0x135)+_0x10e299['length']+')'):a124_0x3807e8[_0x16c969(0x120)]('(none)')));const _0x10905e=Object[_0x16c969(0x121)](_0x1f5cd3[_0x16c969(0x101)]);if(_0x10905e[_0x16c969(0x168)]>0x0){console[_0x16c969(0x133)](),console[_0x16c969(0x133)](a124_0x3807e8[_0x16c969(0x149)](_0x16c969(0x150))),console['log'](a124_0x3807e8[_0x16c969(0x120)](_0x16c969(0x104)[_0x16c969(0x10a)](0x1e)));for(const _0x186cd4 of _0x10905e){const _0x5be6db=_0x1f5cd3[_0x16c969(0x101)][_0x186cd4],_0x329a56=_0x186cd4===_0x1f5cd3[_0x16c969(0x119)],_0x42f440=_0x186cd4===_0x1f5cd3[_0x16c969(0x10d)],_0x38770a=_0x42f440?a124_0x3807e8['green'](_0x16c969(0x18e)):'',_0x254878=_0x329a56?_0x16c969(0x12d):'';console[_0x16c969(0x133)]('\x20\x20'+_0x186cd4+_0x254878+_0x38770a),console[_0x16c969(0x133)]('\x20\x20\x20\x20appcode:\x20\x20\x20\x20'+_0x5be6db[_0x16c969(0x18f)]);const _0x1c0db4=_0x5b31d0[_0x16c969(0x151)][_0x16c969(0x101)]&&typeof _0x5b31d0[_0x16c969(0x151)][_0x16c969(0x101)]===_0x16c969(0x160)?_0x5b31d0[_0x16c969(0x151)][_0x16c969(0x101)]:{},_0x486b0a=Object[_0x16c969(0x142)][_0x16c969(0x105)][_0x16c969(0x154)](_0x1c0db4,_0x186cd4),_0x271ba1=isInvalidLovrabetRegion(_0x5be6db[_0x16c969(0x159)])?{'region':_0x1f5cd3[_0x16c969(0x159)]??DEFAULT_LOVRABET_REGION}:resolveEffectiveRegion({'appRegion':_0x5be6db[_0x16c969(0x159)],'projectRegion':_0x486b0a?_0x5b31d0[_0x16c969(0x151)][_0x16c969(0x159)]:undefined,'globalRegion':_0x5b31d0['globalConfig'][_0x16c969(0x159)],'mergedRegion':_0x1f5cd3[_0x16c969(0x112)][_0x16c969(0x159)],'appName':_0x186cd4}),_0x4708ba=buildAppDoctorFields(_0x5be6db,{'region':_0x271ba1[_0x16c969(0x159)],'env':_0x1f5cd3['env'],'apiDir':_0x1f5cd3[_0x16c969(0x112)][_0x16c969(0x169)]||DEFAULT_CONFIG_VALUES[_0x16c969(0x169)],'cookie':_0x1f5cd3[_0x16c969(0x114)]||_0x10e299||undefined,'accessKey':_0x1f5cd3['accessKey']});console['log'](_0x16c969(0x10e)+_0x4708ba[_0x16c969(0x159)][_0x16c969(0x178)]+'\x20\x20'+a124_0x3807e8[_0x16c969(0x120)]('('+_0x4708ba[_0x16c969(0x159)][_0x16c969(0x138)]+')')),console['log']('\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x4708ba[_0x16c969(0x125)]['value']+'\x20\x20'+a124_0x3807e8[_0x16c969(0x120)]('('+_0x4708ba['env'][_0x16c969(0x138)]+')')),console[_0x16c969(0x133)](_0x16c969(0x184)+_0x4708ba[_0x16c969(0x169)][_0x16c969(0x178)]+'\x20\x20'+a124_0x3807e8[_0x16c969(0x120)]('('+_0x4708ba['apiDir']['source']+')'));const _0x15b06c=_0x4708ba[_0x16c969(0x114)][_0x16c969(0x178)]?a124_0x3807e8[_0x16c969(0x13c)](_0x16c969(0x11a)+_0x4708ba[_0x16c969(0x114)]['value'][_0x16c969(0x168)]+')'):a124_0x3807e8['gray'](_0x16c969(0x17a));console[_0x16c969(0x133)]('\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20'+_0x15b06c+'\x20\x20'+a124_0x3807e8[_0x16c969(0x120)]('('+_0x4708ba['cookie'][_0x16c969(0x138)]+')'));const _0x4ac131=_0x4708ba[_0x16c969(0x14b)][_0x16c969(0x178)]?a124_0x3807e8[_0x16c969(0x13c)](_0x16c969(0x11a)+_0x4708ba[_0x16c969(0x14b)][_0x16c969(0x178)][_0x16c969(0x168)]+')'):a124_0x3807e8['gray'](_0x16c969(0x17a));console[_0x16c969(0x133)](_0x16c969(0x12b)+_0x4ac131+'\x20\x20'+a124_0x3807e8['gray']('('+_0x4708ba[_0x16c969(0x14b)][_0x16c969(0x138)]+')'));}}console[_0x16c969(0x133)](),console[_0x16c969(0x133)](a124_0x3807e8[_0x16c969(0x149)](_0x16c969(0x16e))),console['log'](a124_0x3807e8['gray'](_0x16c969(0x104)[_0x16c969(0x10a)](0x1e)));_0x1038cc?console[_0x16c969(0x133)](_0x16c969(0x117)+a124_0x3807e8['red'](_0x16c969(0x10f))):(console[_0x16c969(0x133)](_0x16c969(0x129)+getActiveRegion()),console[_0x16c969(0x133)](_0x16c969(0x15c)+getApiDomain()),console[_0x16c969(0x133)](_0x16c969(0x141)+getUserDomain()),console[_0x16c969(0x133)](_0x16c969(0x15f)+getRuntimeDomain()),console['log']('\x20\x20skillDomain:\x20\x20\x20\x20\x20'+getSkillDomain()),console[_0x16c969(0x133)]('\x20\x20kbDomain:\x20\x20\x20\x20\x20\x20\x20\x20'+getKbDomain()),console[_0x16c969(0x133)](_0x16c969(0x15b)+(getKbServiceDomain()??_0x16c969(0x15d))),console['log'](_0x16c969(0x172)+getAppDomain()));console[_0x16c969(0x133)](),console[_0x16c969(0x133)](a124_0x3807e8[_0x16c969(0x149)]('\x20\x20Auth')),console[_0x16c969(0x133)](a124_0x3807e8[_0x16c969(0x120)](_0x16c969(0x104)['repeat'](0x1e)));if(_0x1038cc)console[_0x16c969(0x133)](_0x16c969(0x117)+a124_0x3807e8[_0x16c969(0x179)](_0x16c969(0x155)));else{if(_0x10e299){const _0x2dc77f=await getIsSessionValid();console[_0x16c969(0x133)](_0x16c969(0x117)+(_0x2dc77f?a124_0x3807e8[_0x16c969(0x13c)](_0x16c969(0x147)):a124_0x3807e8['red'](_0x16c969(0x17c))));}else console[_0x16c969(0x133)](_0x16c969(0x117)+a124_0x3807e8['red'](_0x16c969(0x106)));}return console['log'](),{'ok':!![]};}function a124_0x38a3(){const _0x522a8b=['object','4097905CHgFSP','\x20doctor','✗\x20Invalid\x20JSON','\x20\x20Repair\x20global:\x20\x20\x20','\x20\x20Repair\x20project:\x20\x20\x20','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','red','length','apiDir','Global','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(missing)','3854741BVXycW','\x20\x20API\x20Endpoints','(unknown)','repairCommand','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20appDomain:\x20\x20\x20\x20\x20\x20\x20','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','10FcAwyC','\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','padEnd','routing','value','yellow','(none)','171290GqMSYS','✗\x20Expired','explicitAppName','.region\x20to\x20cn\x20or\x20id\x20in\x20','stringify','skillVersion','installedPath','\x20\x20Country/Region\x20Configuration','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','includes','message','packageVersion','Project','null','76EpaKqF','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20←\x20current','appcode','\x20\x20Repair\x20global:\x20\x20\x20\x20','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','⚠\x20Empty\x20(treated\x20as\x20{})','\x20\x20Routing\x20Configuration','\x20config\x20delete\x20region','filter','apps','\x20\x20app\x20locale:\x20\x20\x20\x20\x20\x20','regionSource','\x20\x20─','hasOwnProperty','✗\x20Not\x20logged\x20in','check','\x20\x20Merged\x20Config','\x20\x20Legacy\x20inherit:\x20\x20\x20','repeat','global','\x20+\x20','currentApp','\x20\x20\x20\x20region:\x20\x20\x20\x20\x20','Unavailable\x20until\x20routing\x20configuration\x20is\x20repaired','riskLevel','\x20\x20Built-in\x20Skill','raw','arch','cookie','4333203EnKybT','format','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','10GUXoAf','defaultApp','(set,\x20length=','ignored\x20in\x20','\x20\x20explicitAppName:\x20','\x20config\x20delete\x20inherit\x20--global','label','\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','gray','keys','Set\x20apps.','current','\x20config\x20delete\x20region\x20--global','env','status','missing','inherit','\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(default)','\x20\x20\x20\x20accessKey:\x20\x20','join','\x20(default)','(default:\x20','Repair\x20','(no\x20file)','verbose','\x20\x20Config\x20JSON','log','\x20config\x20delete\x20routing\x20--global','(set\x20via\x20file,\x20length=','empty','64xiGEQI','source','\x20\x20Skill\x20Version:\x20\x20\x20','regionConfiguredValue','(not\x20found)','green','reason','slice','\x20app\x20\x22','\x20config\x20delete\x20routing','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','prototype','locale','pageSize','\x20\x20Repair\x20project:\x20\x20','67323WJqczo','✓\x20Valid','\x20config','bold','globalConfig','accessKey','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','✗\x20Invalid\x20','version','✗\x20Invalid','\x20\x20Apps','projectConfig','doctor','872622ZIgpcV','call','Not\x20checked\x20until\x20routing\x20configuration\x20is\x20repaired','2516454OWvTdZ','state','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','region','read','\x20\x20kbServiceDomain:\x20','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','not\x20configured','project','\x20\x20runtimeDomain:\x20\x20\x20'];a124_0x38a3=function(){return _0x522a8b;};return a124_0x38a3();}export const doctorDefinition={'service':a124_0x24ea5b(0x152),'command':a124_0x24ea5b(0x107),'description':a124_0x24ea5b(0xfc),'risk':a124_0x24ea5b(0x15a),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
@@ -1 +1 @@
1
- const a125_0x5bd937=a125_0x3f2c;(function(_0x2553a4,_0x31073d){const _0x25b006=a125_0x3f2c,_0x2a4a13=_0x2553a4();while(!![]){try{const _0xab57c=parseInt(_0x25b006(0xfd))/0x1+-parseInt(_0x25b006(0x101))/0x2*(-parseInt(_0x25b006(0x110))/0x3)+parseInt(_0x25b006(0x11d))/0x4*(-parseInt(_0x25b006(0x10c))/0x5)+parseInt(_0x25b006(0x116))/0x6+parseInt(_0x25b006(0xfa))/0x7*(-parseInt(_0x25b006(0xfc))/0x8)+parseInt(_0x25b006(0x111))/0x9+parseInt(_0x25b006(0x118))/0xa*(-parseInt(_0x25b006(0x11b))/0xb);if(_0xab57c===_0x31073d)break;else _0x2a4a13['push'](_0x2a4a13['shift']());}catch(_0x2ae4c3){_0x2a4a13['push'](_0x2a4a13['shift']());}}}(a125_0x954f,0xde570));function a125_0x954f(){const _0xc2e405=['458775LCpslP','Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','str','long-term','802SIBlaC','Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL','file','Path\x20to\x20the\x20local\x20file\x20to\x20upload','Uploaded\x20file:\x20','/smartapi/common/uploadFile','read','path','validation','string','appCode','40AhOusI','Preview:\x20upload\x20','POST','filePath','5991BXELLO','10672875wkEfGZ','Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','bool','File','query-url','8577396hSmuOu','filepath','354490mUpwBb','download','Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20or\x20immediate\x20access','341WgfzQW','boolean','518664vooMOX','14qpwLTh','trim','3312248YgmrXZ'];a125_0x954f=function(){return _0xc2e405;};return a125_0x954f();}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_0x5bd937(0x103),'type':a125_0x5bd937(0x10a),'required':!![],'description':a125_0x5bd937(0x104)},FILEPATH_FLAG={'name':'filepath','type':a125_0x5bd937(0x10a),'required':!![],'description':'Development\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data'},DOWNLOAD_FLAG={'name':a125_0x5bd937(0x119),'type':a125_0x5bd937(0x11c),'description':a125_0x5bd937(0x102)},LONG_TERM_FLAG={'name':a125_0x5bd937(0x100),'type':a125_0x5bd937(0x11c),'description':'Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML'};function requireFilePath(_0x1ac0aa){const _0x3676e6=a125_0x5bd937,_0x403759=_0x1ac0aa[_0x3676e6(0xfb)]();if(!_0x403759)throw CliErrors[_0x3676e6(0x109)]('filePath\x20is\x20required.');return _0x403759;}function a125_0x3f2c(_0x41dd3e,_0x226077){_0x41dd3e=_0x41dd3e-0xfa;const _0x954fba=a125_0x954f();let _0x3f2cc3=_0x954fba[_0x41dd3e];return _0x3f2cc3;}const fileUpload={'service':a125_0x5bd937(0x103),'command':'upload','description':a125_0x5bd937(0xfe),'risk':a125_0x5bd937(0x107),'flags':[FILE_FLAG],async 'dryRun'(_0x4b846e){const _0x384d1f=a125_0x5bd937,_0x80113f=requireDevelopmentUploadFile(_0x4b846e[_0x384d1f(0xff)](_0x384d1f(0x103)),_0x384d1f(0x114));return{'method':_0x384d1f(0x10e),'url':_0x384d1f(0x106),'body':{'appCode':_0x4b846e[_0x384d1f(0x10b)],'multipart':{'file':_0x80113f}},'description':_0x384d1f(0x10d)+_0x80113f[_0x384d1f(0x108)]+'\x20to\x20development\x20app\x20'+_0x4b846e[_0x384d1f(0x10b)]};},async 'execute'(_0x142bd4){const _0x4c6d5e=a125_0x5bd937,_0x419e0c=requireDevelopmentUploadFile(_0x142bd4[_0x4c6d5e(0xff)]('file'),_0x4c6d5e(0x114)),_0x400fb6=await uploadDevelopmentFile(_0x142bd4[_0x4c6d5e(0x10b)],_0x419e0c[_0x4c6d5e(0x108)]);return{'ok':!![],'data':_0x400fb6,'message':_0x400fb6[_0x4c6d5e(0x10f)]?_0x4c6d5e(0x105)+_0x400fb6[_0x4c6d5e(0x10f)]+'.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.':_0x4c6d5e(0x112)};}},fileQueryUrl={'service':a125_0x5bd937(0x103),'command':a125_0x5bd937(0x115),'description':a125_0x5bd937(0x11a),'risk':a125_0x5bd937(0x107),'flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0x55fe87){const _0x132e66=a125_0x5bd937,_0x127881=requireFilePath(_0x55fe87[_0x132e66(0xff)](_0x132e66(0x117))),_0x1b97cb=await queryDevelopmentFileUrl(_0x127881,{'download':_0x55fe87[_0x132e66(0x113)](_0x132e66(0x119)),'longTerm':_0x55fe87[_0x132e66(0x113)]('long-term')});return{'ok':!![],'data':_0x1b97cb};}};export const fileDefinitions=[fileUpload,fileQueryUrl];
1
+ const a125_0x1229d8=a125_0xeb81;(function(_0x41f8f1,_0x4c5a10){const _0x51ca97=a125_0xeb81,_0x4d391d=_0x41f8f1();while(!![]){try{const _0x4eead7=-parseInt(_0x51ca97(0x1fa))/0x1*(parseInt(_0x51ca97(0x1f9))/0x2)+parseInt(_0x51ca97(0x214))/0x3*(parseInt(_0x51ca97(0x209))/0x4)+parseInt(_0x51ca97(0x20a))/0x5+parseInt(_0x51ca97(0x203))/0x6+parseInt(_0x51ca97(0x208))/0x7*(parseInt(_0x51ca97(0x1f8))/0x8)+-parseInt(_0x51ca97(0x213))/0x9*(-parseInt(_0x51ca97(0x1ff))/0xa)+parseInt(_0x51ca97(0x1f6))/0xb*(-parseInt(_0x51ca97(0x20f))/0xc);if(_0x4eead7===_0x4c5a10)break;else _0x4d391d['push'](_0x4d391d['shift']());}catch(_0x50b57f){_0x4d391d['push'](_0x4d391d['shift']());}}}(a125_0x27b8,0xb94a9));function a125_0xeb81(_0x1a3d16,_0x3b36c3){_0x1a3d16=_0x1a3d16-0x1f4;const _0x27b85c=a125_0x27b8();let _0xeb8160=_0x27b85c[_0x1a3d16];return _0xeb8160;}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_0x1229d8(0x200),'type':'string','required':!![],'description':a125_0x1229d8(0x204)},FILEPATH_FLAG={'name':a125_0x1229d8(0x1f7),'type':a125_0x1229d8(0x1fd),'required':!![],'description':a125_0x1229d8(0x211)},DOWNLOAD_FLAG={'name':'download','type':a125_0x1229d8(0x20e),'description':'Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL'},LONG_TERM_FLAG={'name':a125_0x1229d8(0x21a),'type':a125_0x1229d8(0x20e),'description':a125_0x1229d8(0x206)};function requireFilePath(_0x4cb90e){const _0x1a8040=a125_0x1229d8,_0x795623=_0x4cb90e[_0x1a8040(0x215)]();if(!_0x795623)throw CliErrors['validation'](_0x1a8040(0x1f5));return _0x795623;}function a125_0x27b8(){const _0x48c5a5=['416znyIkq','1578826apIkuP','1oRomVv','query-url','read','string','\x20to\x20development\x20app\x20','80ogNEdP','file','File','str','7730178KhFQzY','Path\x20to\x20the\x20local\x20file\x20to\x20upload','.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML','bool','51751EpCNND','632aaWZXe','6099955iztRnV','download','Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20or\x20immediate\x20access','boolean','24lWyber','appCode','Development\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data','upload','938916GWVmMP','12261UloUXy','trim','/smartapi/common/uploadFile','filePath','Preview:\x20upload\x20','path','long-term','Uploaded\x20file:\x20','filePath\x20is\x20required.','15536191ouwszu','filepath'];a125_0x27b8=function(){return _0x48c5a5;};return a125_0x27b8();}const fileUpload={'service':a125_0x1229d8(0x200),'command':a125_0x1229d8(0x212),'description':a125_0x1229d8(0x20c),'risk':a125_0x1229d8(0x1fc),'flags':[FILE_FLAG],async 'dryRun'(_0x26519c){const _0x3a7192=a125_0x1229d8,_0x1763f7=requireDevelopmentUploadFile(_0x26519c[_0x3a7192(0x202)](_0x3a7192(0x200)),'File');return{'method':'POST','url':_0x3a7192(0x216),'body':{'appCode':_0x26519c[_0x3a7192(0x210)],'multipart':{'file':_0x1763f7}},'description':_0x3a7192(0x218)+_0x1763f7[_0x3a7192(0x219)]+_0x3a7192(0x1fe)+_0x26519c[_0x3a7192(0x210)]};},async 'execute'(_0x2d8167){const _0x44d73b=a125_0x1229d8,_0x4ac3b3=requireDevelopmentUploadFile(_0x2d8167[_0x44d73b(0x202)]('file'),_0x44d73b(0x201)),_0xc8e896=await uploadDevelopmentFile(_0x2d8167[_0x44d73b(0x210)],_0x4ac3b3['path']);return{'ok':!![],'data':_0xc8e896,'message':_0xc8e896[_0x44d73b(0x217)]?_0x44d73b(0x1f4)+_0xc8e896['filePath']+_0x44d73b(0x205):'Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.'};}},fileQueryUrl={'service':a125_0x1229d8(0x200),'command':a125_0x1229d8(0x1fb),'description':a125_0x1229d8(0x20d),'risk':a125_0x1229d8(0x1fc),'flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0x37b974){const _0x248387=a125_0x1229d8,_0x1ebf51=requireFilePath(_0x37b974[_0x248387(0x202)](_0x248387(0x1f7))),_0x54c567=await queryDevelopmentFileUrl(_0x1ebf51,{'download':_0x37b974[_0x248387(0x207)](_0x248387(0x20b)),'longTerm':_0x37b974['bool']('long-term')});return{'ok':!![],'data':_0x54c567};}};export const fileDefinitions=[fileUpload,fileQueryUrl];
@@ -1 +1 @@
1
- const a126_0x45479f=a126_0xa5e9;(function(_0x14ebf9,_0x2fce20){const _0xbfac53=a126_0xa5e9,_0x385a24=_0x14ebf9();while(!![]){try{const _0x9938c9=parseInt(_0xbfac53(0xb9))/0x1+-parseInt(_0xbfac53(0xba))/0x2*(parseInt(_0xbfac53(0xae))/0x3)+-parseInt(_0xbfac53(0xb2))/0x4+-parseInt(_0xbfac53(0xb0))/0x5*(parseInt(_0xbfac53(0xbb))/0x6)+-parseInt(_0xbfac53(0xaf))/0x7+parseInt(_0xbfac53(0xad))/0x8*(parseInt(_0xbfac53(0xbc))/0x9)+parseInt(_0xbfac53(0xac))/0xa;if(_0x9938c9===_0x2fce20)break;else _0x385a24['push'](_0x385a24['shift']());}catch(_0x166e3f){_0x385a24['push'](_0x385a24['shift']());}}}(a126_0x5de9,0x8a38a));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{asDryRunResult}from'../../commands/common/dry-run.js';function a126_0xa5e9(_0x113cdf,_0x22875a){_0x113cdf=_0x113cdf-0xac;const _0x5de90e=a126_0x5de9();let _0xa5e994=_0x5de90e[_0x113cdf];return _0xa5e994;}function a126_0x5de9(){const _0x3f1063=['flowName','374208pQTzgY','562268wDyjuw','45960LIgeBD','90RXoZky','create','.\x20Flow\x20URL:\x20','9222730LlgtJc','812992YFzJHN','3IxLJBz','3367686gnRLNY','125VcvvEF','Create\x20a\x20draft\x20flow\x20definition\x20from\x20a\x20local\x20FlowConfig\x20file','3171340AANriv','flow','POST','write','appCode','datasetCode'];a126_0x5de9=function(){return _0x3f1063;};return a126_0x5de9();}import{createFlowDefinition}from'../../core/api-client.js';import{FLOW_FILE_FLAG,FLOW_PATHS,buildFlowUrl,confirmFlowWrite,flowSelector,prepareFlowWrite,readFlowFilePath}from'../../commands/flow/shared.js';export const flowCreate={'service':a126_0x45479f(0xb3),'command':a126_0x45479f(0xbd),'description':a126_0x45479f(0xb1),'risk':a126_0x45479f(0xb5),'flags':[FLOW_FILE_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x3385cf){readFlowFilePath(_0x3385cf);},async 'dryRun'(_0x31296d){const _0x42fa7d=a126_0x45479f,{request:_0x11cd2c,warnings:_0x3d6a13}=await prepareFlowWrite(readFlowFilePath(_0x31296d),_0x31296d['appCode']);return asDryRunResult({'operation':_0x42fa7d(0xbd),'selector':{'appCode':_0x31296d[_0x42fa7d(0xb6)],'flowName':_0x11cd2c[_0x42fa7d(0xb8)],..._0x11cd2c[_0x42fa7d(0xb7)]?{'datasetCode':_0x11cd2c['datasetCode']}:{}},'before':null,'after':_0x11cd2c,'request':_0x11cd2c,'dryRun':!![],'backend':{'method':_0x42fa7d(0xb4),'path':FLOW_PATHS[_0x42fa7d(0xbd)]},'warnings':_0x3d6a13},{'method':_0x42fa7d(0xb4),'url':FLOW_PATHS[_0x42fa7d(0xbd)]});},async 'execute'(_0xc55fc3){const _0x11f487=a126_0x45479f,{request:_0x1faccd,warnings:_0xf70f66}=await prepareFlowWrite(readFlowFilePath(_0xc55fc3),_0xc55fc3['appCode']);await confirmFlowWrite(_0xc55fc3,_0x11f487(0xbd),_0x1faccd);const _0x28e964=await createFlowDefinition(_0x1faccd),_0x506f71=buildFlowUrl(_0xc55fc3[_0x11f487(0xb6)],_0x28e964['id']),_0x203098=''+(_0x28e964[_0x11f487(0xb8)]||_0x1faccd[_0x11f487(0xb8)])+(_0x28e964['id']?'\x20(id='+_0x28e964['id']+')':'');return{'ok':!![],'data':{'operation':_0x11f487(0xbd),'selector':flowSelector(_0xc55fc3['appCode'],_0x28e964['id'],_0x28e964),'before':null,'after':_0x28e964,'flowUrl':_0x506f71,'dryRun':![],'backend':{'method':'POST','path':FLOW_PATHS['create']},'warnings':_0xf70f66},'message':'Created\x20flow\x20'+_0x203098+_0x11f487(0xbe)+_0x506f71};}};
1
+ const a126_0x3b952a=a126_0x4b3d;(function(_0x26a54f,_0x51b931){const _0x568e37=a126_0x4b3d,_0x5c6707=_0x26a54f();while(!![]){try{const _0x12a6d6=-parseInt(_0x568e37(0xa6))/0x1*(-parseInt(_0x568e37(0xb3))/0x2)+-parseInt(_0x568e37(0xb8))/0x3*(-parseInt(_0x568e37(0xae))/0x4)+-parseInt(_0x568e37(0xa5))/0x5+parseInt(_0x568e37(0xa8))/0x6*(parseInt(_0x568e37(0xaa))/0x7)+parseInt(_0x568e37(0xad))/0x8*(parseInt(_0x568e37(0xb0))/0x9)+-parseInt(_0x568e37(0xac))/0xa+-parseInt(_0x568e37(0xb2))/0xb;if(_0x12a6d6===_0x51b931)break;else _0x5c6707['push'](_0x5c6707['shift']());}catch(_0x37c213){_0x5c6707['push'](_0x5c6707['shift']());}}}(a126_0x4c47,0xb78e9));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_0x4b3d(_0x36254c,_0x51a2c3){_0x36254c=_0x36254c-0xa4;const _0x4c4714=a126_0x4c47();let _0x4b3d73=_0x4c4714[_0x36254c];return _0x4b3d73;}import{FLOW_FILE_FLAG,FLOW_PATHS,buildFlowUrl,confirmFlowWrite,flowSelector,prepareFlowWrite,readFlowFilePath}from'../../commands/flow/shared.js';function a126_0x4c47(){const _0x2dce8a=['2960785vfMNUF','2391EfPAsx','datasetCode','30epjKsc','\x20(id=','2058917iBMZBE','POST','14575710sGjPvb','5514952bJsJFe','944ibdJlS','.\x20Flow\x20URL:\x20','9GmDutS','Created\x20flow\x20','15521198ukpYny','538hGDSHx','flow','flowName','create','appCode','17916wMNJBK','write'];a126_0x4c47=function(){return _0x2dce8a;};return a126_0x4c47();}export const flowCreate={'service':a126_0x3b952a(0xb4),'command':a126_0x3b952a(0xb6),'description':'Create\x20a\x20draft\x20flow\x20definition\x20from\x20a\x20local\x20FlowConfig\x20file','risk':a126_0x3b952a(0xa4),'flags':[FLOW_FILE_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x366276){readFlowFilePath(_0x366276);},async 'dryRun'(_0x521ac4){const _0x182dc9=a126_0x3b952a,{request:_0x239910,warnings:_0x203cce}=await prepareFlowWrite(readFlowFilePath(_0x521ac4),_0x521ac4[_0x182dc9(0xb7)]);return asDryRunResult({'operation':_0x182dc9(0xb6),'selector':{'appCode':_0x521ac4[_0x182dc9(0xb7)],'flowName':_0x239910['flowName'],..._0x239910[_0x182dc9(0xa7)]?{'datasetCode':_0x239910['datasetCode']}:{}},'before':null,'after':_0x239910,'request':_0x239910,'dryRun':!![],'backend':{'method':_0x182dc9(0xab),'path':FLOW_PATHS[_0x182dc9(0xb6)]},'warnings':_0x203cce},{'method':_0x182dc9(0xab),'url':FLOW_PATHS[_0x182dc9(0xb6)]});},async 'execute'(_0x108d7a){const _0x376aea=a126_0x3b952a,{request:_0x20c7c5,warnings:_0x5b358a}=await prepareFlowWrite(readFlowFilePath(_0x108d7a),_0x108d7a[_0x376aea(0xb7)]);await confirmFlowWrite(_0x108d7a,_0x376aea(0xb6),_0x20c7c5);const _0x54b779=await createFlowDefinition(_0x20c7c5),_0x50c37a=buildFlowUrl(_0x108d7a[_0x376aea(0xb7)],_0x54b779['id']),_0x56d07c=''+(_0x54b779[_0x376aea(0xb5)]||_0x20c7c5['flowName'])+(_0x54b779['id']?_0x376aea(0xa9)+_0x54b779['id']+')':'');return{'ok':!![],'data':{'operation':_0x376aea(0xb6),'selector':flowSelector(_0x108d7a[_0x376aea(0xb7)],_0x54b779['id'],_0x54b779),'before':null,'after':_0x54b779,'flowUrl':_0x50c37a,'dryRun':![],'backend':{'method':_0x376aea(0xab),'path':FLOW_PATHS[_0x376aea(0xb6)]},'warnings':_0x5b358a},'message':_0x376aea(0xb1)+_0x56d07c+_0x376aea(0xaf)+_0x50c37a};}};
@@ -1 +1 @@
1
- function a127_0x5889(){const _0x2549ae=['Overwrite\x20an\x20existing\x20output\x20file','600825CtOlDj','code','output','trim','\x20to\x20','warnings','bool','Wrote\x20FlowConfig\x20for\x20','string','Flow\x20','str','ENOENT','212852wGoWNi','1413576dCeEUp','FlowConfig\x20output\x20already\x20exists:\x20','flowCode','flow','2QsuTFC','Pass\x20--force\x20to\x20overwrite\x20it.','262870dyBqbI','force','path','EEXIST','detail','validation','7MjLWzM','read','316791utUxvh','203208sFaujw','Get\x20one\x20design-time\x20flow\x20definition','Write\x20a\x20portable\x20normalized\x20FlowConfig\x20JSON\x20file','flowName','126GbqPop','1629438CCnoFG'];a127_0x5889=function(){return _0x2549ae;};return a127_0x5889();}const a127_0x4d014f=a127_0x281f;(function(_0x41ddc7,_0x584d84){const _0x5bd01a=a127_0x281f,_0x20b9f0=_0x41ddc7();while(!![]){try{const _0x218456=parseInt(_0x5bd01a(0x1d0))/0x1*(-parseInt(_0x5bd01a(0x1cb))/0x2)+parseInt(_0x5bd01a(0x1b7))/0x3+-parseInt(_0x5bd01a(0x1b8))/0x4+-parseInt(_0x5bd01a(0x1bf))/0x5+parseInt(_0x5bd01a(0x1bd))/0x6*(parseInt(_0x5bd01a(0x1b5))/0x7)+-parseInt(_0x5bd01a(0x1cc))/0x8+parseInt(_0x5bd01a(0x1bc))/0x9*(parseInt(_0x5bd01a(0x1af))/0xa);if(_0x218456===_0x584d84)break;else _0x20b9f0['push'](_0x20b9f0['shift']());}catch(_0x181475){_0x20b9f0['push'](_0x20b9f0['shift']());}}}(a127_0x5889,0x2d160));import{mkdir,stat}from'node:fs/promises';import{dirname,resolve}from'node:path';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{getFlowDefinition}from'../../core/api-client.js';function a127_0x281f(_0x42e4c1,_0x4b68af){_0x42e4c1=_0x42e4c1-0x1ae;const _0x5889bc=a127_0x5889();let _0x281f83=_0x5889bc[_0x42e4c1];return _0x281f83;}import{writeNormalizedFlowConfig}from'../../core/flow-config.js';import{CliErrors}from'../../errors.js';import{FLOW_ID_FLAG,flowDefinitionToConfig,readFlowId}from'../../commands/flow/shared.js';export const flowDetail={'service':a127_0x4d014f(0x1cf),'command':a127_0x4d014f(0x1b3),'description':a127_0x4d014f(0x1b9),'risk':a127_0x4d014f(0x1b6),'flags':[FLOW_ID_FLAG,{'name':a127_0x4d014f(0x1c1),'type':a127_0x4d014f(0x1c7),'description':a127_0x4d014f(0x1ba)},{'name':a127_0x4d014f(0x1b0),'type':'boolean','description':a127_0x4d014f(0x1be)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x4c9603){readFlowId(_0x4c9603);},async 'execute'(_0x1558cb){const _0x135c2c=a127_0x4d014f,_0x2fc5d5=readFlowId(_0x1558cb),_0x5c8df4=_0x1558cb[_0x135c2c(0x1c9)](_0x135c2c(0x1c1))[_0x135c2c(0x1c2)](),_0x3b6170=_0x5c8df4?resolve(_0x5c8df4):undefined;if(_0x3b6170&&!_0x1558cb['bool'](_0x135c2c(0x1b0))&&await fileExists(_0x3b6170))throw CliErrors[_0x135c2c(0x1b4)](_0x135c2c(0x1cd)+_0x3b6170,'Pass\x20--force\x20to\x20overwrite\x20it.');const _0x3c33bf=await getFlowDefinition(_0x1558cb['appCode'],_0x2fc5d5);let _0x2e27f9;if(_0x3b6170){const _0xd10b1d=flowDefinitionToConfig(_0x3c33bf);await mkdir(dirname(_0x3b6170),{'recursive':!![]});try{await writeNormalizedFlowConfig(_0x3b6170,_0xd10b1d['config'],{'overwrite':_0x1558cb[_0x135c2c(0x1c5)](_0x135c2c(0x1b0))});}catch(_0x32bc68){if(isAlreadyExistsError(_0x32bc68))throw CliErrors[_0x135c2c(0x1b4)]('FlowConfig\x20output\x20already\x20exists:\x20'+_0x3b6170,_0x135c2c(0x1ae));throw _0x32bc68;}_0x2e27f9={'path':_0x3b6170,'warnings':_0xd10b1d[_0x135c2c(0x1c4)]};}return{'ok':!![],'data':{'flow':_0x3c33bf,..._0x2e27f9?{'output':_0x2e27f9}:{}},'message':_0x2e27f9?_0x135c2c(0x1c6)+(_0x3c33bf[_0x135c2c(0x1bb)]||_0x3c33bf[_0x135c2c(0x1ce)]||_0x2fc5d5)+_0x135c2c(0x1c3)+_0x2e27f9[_0x135c2c(0x1b1)]:_0x135c2c(0x1c8)+(_0x3c33bf['flowName']||_0x3c33bf[_0x135c2c(0x1ce)]||_0x2fc5d5)};}};async function fileExists(_0x503ccd){try{return await stat(_0x503ccd),!![];}catch(_0x2e35c0){return!isNotFoundError(_0x2e35c0);}}function isNotFoundError(_0x419c4f){const _0x3105ba=a127_0x4d014f;return _0x419c4f?.[_0x3105ba(0x1c0)]===_0x3105ba(0x1ca);}function isAlreadyExistsError(_0x16cb8a){const _0x5b83b0=a127_0x4d014f;return _0x16cb8a?.[_0x5b83b0(0x1c0)]===_0x5b83b0(0x1b2);}
1
+ function a127_0x3acb(){const _0x1af836=['appCode','flowCode','9VthvYF','Get\x20one\x20design-time\x20flow\x20definition','flow','126064paWYBm','4099485cOgNhk','154220FJUBzY','read','FlowConfig\x20output\x20already\x20exists:\x20','\x20to\x20','config','15CZyXgd','1430496WnfveI','warnings','Write\x20a\x20portable\x20normalized\x20FlowConfig\x20JSON\x20file','code','1670qtYIyc','flowName','660396TexFia','bool','1481470Sgjodd','str','force','Pass\x20--force\x20to\x20overwrite\x20it.','ENOENT','474QsPVFs','path','trim','validation','string','output','64372HwHOpO'];a127_0x3acb=function(){return _0x1af836;};return a127_0x3acb();}const a127_0x442485=a127_0x36ad;(function(_0x14b846,_0x3a12c4){const _0x1467d2=a127_0x36ad,_0x2ab66a=_0x14b846();while(!![]){try{const _0x1f74ac=-parseInt(_0x1467d2(0x1e2))/0x1+parseInt(_0x1467d2(0x1e0))/0x2+parseInt(_0x1467d2(0x1d3))/0x3+-parseInt(_0x1467d2(0x1da))/0x4*(parseInt(_0x1467d2(0x1d9))/0x5)+parseInt(_0x1467d2(0x1e7))/0x6*(-parseInt(_0x1467d2(0x1cc))/0x7)+parseInt(_0x1467d2(0x1d2))/0x8*(-parseInt(_0x1467d2(0x1cf))/0x9)+parseInt(_0x1467d2(0x1de))/0xa*(parseInt(_0x1467d2(0x1d4))/0xb);if(_0x1f74ac===_0x3a12c4)break;else _0x2ab66a['push'](_0x2ab66a['shift']());}catch(_0x26ec62){_0x2ab66a['push'](_0x2ab66a['shift']());}}}(a127_0x3acb,0xb5049));import{mkdir,stat}from'node:fs/promises';import{dirname,resolve}from'node:path';function a127_0x36ad(_0x30457a,_0x1328b6){_0x30457a=_0x30457a-0x1c7;const _0x3acbb7=a127_0x3acb();let _0x36adfe=_0x3acbb7[_0x30457a];return _0x36adfe;}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{getFlowDefinition}from'../../core/api-client.js';import{writeNormalizedFlowConfig}from'../../core/flow-config.js';import{CliErrors}from'../../errors.js';import{FLOW_ID_FLAG,flowDefinitionToConfig,readFlowId}from'../../commands/flow/shared.js';export const flowDetail={'service':a127_0x442485(0x1d1),'command':'detail','description':a127_0x442485(0x1d0),'risk':a127_0x442485(0x1d5),'flags':[FLOW_ID_FLAG,{'name':a127_0x442485(0x1cb),'type':a127_0x442485(0x1ca),'description':a127_0x442485(0x1dc)},{'name':a127_0x442485(0x1e4),'type':'boolean','description':'Overwrite\x20an\x20existing\x20output\x20file'},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x54f984){readFlowId(_0x54f984);},async 'execute'(_0x393d62){const _0x2d6764=a127_0x442485,_0x4c6864=readFlowId(_0x393d62),_0x561aa4=_0x393d62[_0x2d6764(0x1e3)](_0x2d6764(0x1cb))[_0x2d6764(0x1c8)](),_0x4ba495=_0x561aa4?resolve(_0x561aa4):undefined;if(_0x4ba495&&!_0x393d62[_0x2d6764(0x1e1)](_0x2d6764(0x1e4))&&await fileExists(_0x4ba495))throw CliErrors['validation'](_0x2d6764(0x1d6)+_0x4ba495,_0x2d6764(0x1e5));const _0x33e772=await getFlowDefinition(_0x393d62[_0x2d6764(0x1cd)],_0x4c6864);let _0x3a25d6;if(_0x4ba495){const _0x12be87=flowDefinitionToConfig(_0x33e772);await mkdir(dirname(_0x4ba495),{'recursive':!![]});try{await writeNormalizedFlowConfig(_0x4ba495,_0x12be87[_0x2d6764(0x1d8)],{'overwrite':_0x393d62[_0x2d6764(0x1e1)](_0x2d6764(0x1e4))});}catch(_0x547436){if(isAlreadyExistsError(_0x547436))throw CliErrors[_0x2d6764(0x1c9)](_0x2d6764(0x1d6)+_0x4ba495,_0x2d6764(0x1e5));throw _0x547436;}_0x3a25d6={'path':_0x4ba495,'warnings':_0x12be87[_0x2d6764(0x1db)]};}return{'ok':!![],'data':{'flow':_0x33e772,..._0x3a25d6?{'output':_0x3a25d6}:{}},'message':_0x3a25d6?'Wrote\x20FlowConfig\x20for\x20'+(_0x33e772[_0x2d6764(0x1df)]||_0x33e772[_0x2d6764(0x1ce)]||_0x4c6864)+_0x2d6764(0x1d7)+_0x3a25d6[_0x2d6764(0x1c7)]:'Flow\x20'+(_0x33e772['flowName']||_0x33e772[_0x2d6764(0x1ce)]||_0x4c6864)};}};async function fileExists(_0x30dc6e){try{return await stat(_0x30dc6e),!![];}catch(_0x27ec48){return!isNotFoundError(_0x27ec48);}}function isNotFoundError(_0x4710f6){const _0x394e7e=a127_0x442485;return _0x4710f6?.[_0x394e7e(0x1dd)]===_0x394e7e(0x1e6);}function isAlreadyExistsError(_0x4d4ec3){const _0x2e3d76=a127_0x442485;return _0x4d4ec3?.[_0x2e3d76(0x1dd)]==='EEXIST';}