@lovrabet/rabetbase-cli 2.5.12 → 2.5.13-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 (380) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/api-group.js +1 -1
  3. package/lib/api/fetch-model-list.js +1 -1
  4. package/lib/api/generate-api-file.js +1 -1
  5. package/lib/api/generate-sdk-config-file.js +1 -1
  6. package/lib/api/legacy-api-file.js +1 -1
  7. package/lib/api/model-registry-file.js +1 -1
  8. package/lib/api/model-registry-scaffold.js +1 -1
  9. package/lib/api/model-source.js +1 -1
  10. package/lib/auth/auth-server-ui.js +1 -1
  11. package/lib/auth/auth-server.js +1 -1
  12. package/lib/auth/constant.js +1 -1
  13. package/lib/auth/get-cookie.js +1 -1
  14. package/lib/auth/get-session-user.js +1 -1
  15. package/lib/auth/is-session-valid.js +1 -1
  16. package/lib/auth/login-success-html.js +1 -1
  17. package/lib/auth/logout.js +1 -1
  18. package/lib/cli-flags.js +1 -1
  19. package/lib/cli.js +1 -1
  20. package/lib/commands/api/generate.js +1 -1
  21. package/lib/commands/api/index.js +1 -1
  22. package/lib/commands/api/list.js +1 -1
  23. package/lib/commands/api/pull.js +1 -1
  24. package/lib/commands/api/shared.js +1 -1
  25. package/lib/commands/app/detail.js +1 -1
  26. package/lib/commands/app/index.js +1 -1
  27. package/lib/commands/app/list.js +1 -1
  28. package/lib/commands/app/members-list.js +1 -1
  29. package/lib/commands/app/remote-directory.js +1 -1
  30. package/lib/commands/app/shared.js +1 -1
  31. package/lib/commands/app-config/delete.js +1 -1
  32. package/lib/commands/app-config/get.js +1 -1
  33. package/lib/commands/app-config/index.js +1 -1
  34. package/lib/commands/app-config/list.js +1 -1
  35. package/lib/commands/app-config/set.js +1 -1
  36. package/lib/commands/app-config/shared.js +1 -1
  37. package/lib/commands/auth/index.js +1 -1
  38. package/lib/commands/bff/create.js +1 -1
  39. package/lib/commands/bff/delete.js +1 -1
  40. package/lib/commands/bff/detail.js +1 -1
  41. package/lib/commands/bff/index.js +1 -1
  42. package/lib/commands/bff/list.js +1 -1
  43. package/lib/commands/bff/logs.js +1 -1
  44. package/lib/commands/bff/pull.js +1 -1
  45. package/lib/commands/bff/push.js +1 -1
  46. package/lib/commands/bff/status.js +1 -1
  47. package/lib/commands/cli-skill/index.js +1 -1
  48. package/lib/commands/cli-update.js +1 -1
  49. package/lib/commands/codegen/index.js +1 -1
  50. package/lib/commands/codegen/sdk.js +1 -1
  51. package/lib/commands/codegen/sql.js +1 -1
  52. package/lib/commands/common/app-registry.js +1 -1
  53. package/lib/commands/common/app-selector.js +1 -1
  54. package/lib/commands/common/async-task.js +1 -1
  55. package/lib/commands/common/dry-run.js +1 -1
  56. package/lib/commands/common/flags.js +1 -1
  57. package/lib/commands/common/local-file.js +1 -1
  58. package/lib/commands/common/validate.js +1 -1
  59. package/lib/commands/config/delete.js +1 -1
  60. package/lib/commands/config/get.js +1 -1
  61. package/lib/commands/config/index.js +1 -1
  62. package/lib/commands/config/init.js +1 -1
  63. package/lib/commands/config/list.js +1 -1
  64. package/lib/commands/config/set.js +1 -1
  65. package/lib/commands/config/shared.js +1 -1
  66. package/lib/commands/dataset/batch-design.js +1 -1
  67. package/lib/commands/dataset/business-group-update.js +1 -1
  68. package/lib/commands/dataset/business-groups.js +1 -1
  69. package/lib/commands/dataset/capability.js +1 -1
  70. package/lib/commands/dataset/cross-relation-create.js +1 -1
  71. package/lib/commands/dataset/cross-relation-delete.js +1 -1
  72. package/lib/commands/dataset/cross-relation-list.js +1 -1
  73. package/lib/commands/dataset/cross-relation-shared.js +1 -1
  74. package/lib/commands/dataset/cross-relation-update.js +1 -1
  75. package/lib/commands/dataset/delete.js +1 -1
  76. package/lib/commands/dataset/design-context.js +1 -1
  77. package/lib/commands/dataset/design-start.js +1 -1
  78. package/lib/commands/dataset/design-status.js +1 -1
  79. package/lib/commands/dataset/design-sync-retry.js +1 -1
  80. package/lib/commands/dataset/design-sync-status.js +1 -1
  81. package/lib/commands/dataset/design-validate.js +1 -1
  82. package/lib/commands/dataset/detail.js +1 -1
  83. package/lib/commands/dataset/extend-update.js +1 -1
  84. package/lib/commands/dataset/field-restore.js +1 -1
  85. package/lib/commands/dataset/field-update.js +1 -1
  86. package/lib/commands/dataset/generate.js +1 -1
  87. package/lib/commands/dataset/index.js +1 -1
  88. package/lib/commands/dataset/list.js +1 -1
  89. package/lib/commands/dataset/operations.js +1 -1
  90. package/lib/commands/dataset/relation-audit.js +1 -1
  91. package/lib/commands/dataset/relation-create.js +1 -1
  92. package/lib/commands/dataset/relation-delete.js +1 -1
  93. package/lib/commands/dataset/relation-shared.js +1 -1
  94. package/lib/commands/dataset/relation-update.js +1 -1
  95. package/lib/commands/dataset/relations.js +1 -1
  96. package/lib/commands/dataset/rename.js +1 -1
  97. package/lib/commands/dataset/restore.js +1 -1
  98. package/lib/commands/dataset/user-deleted-field-list.js +1 -1
  99. package/lib/commands/db/analysis-batching.js +1 -1
  100. package/lib/commands/db/analyze-batch-plan.js +1 -1
  101. package/lib/commands/db/analyze-cancel.js +1 -1
  102. package/lib/commands/db/analyze-start.js +1 -1
  103. package/lib/commands/db/analyze-status.js +1 -1
  104. package/lib/commands/db/create.js +1 -1
  105. package/lib/commands/db/cross-db-analysis-shared.js +1 -1
  106. package/lib/commands/db/cross-db-analyze-latest.js +1 -1
  107. package/lib/commands/db/cross-db-analyze-start.js +1 -1
  108. package/lib/commands/db/cross-db-analyze-status.js +1 -1
  109. package/lib/commands/db/delete.js +1 -1
  110. package/lib/commands/db/detail.js +1 -1
  111. package/lib/commands/db/diff-refresh-start.js +1 -1
  112. package/lib/commands/db/diff-refresh-status.js +1 -1
  113. package/lib/commands/db/diff.js +1 -1
  114. package/lib/commands/db/index.js +1 -1
  115. package/lib/commands/db/list.js +1 -1
  116. package/lib/commands/db/shared.js +1 -1
  117. package/lib/commands/db/table-diff-shared.js +1 -1
  118. package/lib/commands/db/tables.js +1 -1
  119. package/lib/commands/db/test.js +1 -1
  120. package/lib/commands/db/update.js +1 -1
  121. package/lib/commands/deployment/index.js +1 -1
  122. package/lib/commands/deployment/sync-all.js +1 -1
  123. package/lib/commands/deployment/sync-jobs.js +1 -1
  124. package/lib/commands/deployment/sync-status.js +1 -1
  125. package/lib/commands/doctor.js +1 -1
  126. package/lib/commands/file/index.js +1 -1
  127. package/lib/commands/flow/create.js +1 -1
  128. package/lib/commands/flow/detail.js +1 -1
  129. package/lib/commands/flow/index.js +1 -1
  130. package/lib/commands/flow/list.js +1 -1
  131. package/lib/commands/flow/page-list.js +1 -1
  132. package/lib/commands/flow/publish.js +1 -1
  133. package/lib/commands/flow/runtime-resources-shared.js +1 -1
  134. package/lib/commands/flow/runtime-role-list.js +1 -1
  135. package/lib/commands/flow/runtime-role-user-list.js +1 -1
  136. package/lib/commands/flow/runtime-user-search.js +1 -1
  137. package/lib/commands/flow/shared.js +1 -1
  138. package/lib/commands/flow/update.js +1 -1
  139. package/lib/commands/flow/validate.js +1 -1
  140. package/lib/commands/instant-api-policy/current.js +1 -1
  141. package/lib/commands/instant-api-policy/index.js +1 -1
  142. package/lib/commands/instant-api-policy/init.js +1 -1
  143. package/lib/commands/instant-api-policy/publish.js +1 -1
  144. package/lib/commands/instant-api-policy/pull.js +1 -1
  145. package/lib/commands/instant-api-policy/revision.js +1 -1
  146. package/lib/commands/instant-api-policy/revisions.js +1 -1
  147. package/lib/commands/instant-api-policy/rollback.js +1 -1
  148. package/lib/commands/instant-api-policy/shared.js +1 -1
  149. package/lib/commands/instant-api-policy/validate.js +1 -1
  150. package/lib/commands/issue/context.js +1 -1
  151. package/lib/commands/issue/index.js +1 -1
  152. package/lib/commands/issue/nudge.js +1 -1
  153. package/lib/commands/issue/report.js +1 -1
  154. package/lib/commands/kb/create.js +1 -1
  155. package/lib/commands/kb/delete.js +1 -1
  156. package/lib/commands/kb/detail.js +1 -1
  157. package/lib/commands/kb/index.js +1 -1
  158. package/lib/commands/kb/list.js +1 -1
  159. package/lib/commands/kb/search.js +1 -1
  160. package/lib/commands/kb/shared.js +1 -1
  161. package/lib/commands/kb/update.js +1 -1
  162. package/lib/commands/logs/index.js +1 -1
  163. package/lib/commands/menu/asset-update.js +1 -1
  164. package/lib/commands/menu/delete.js +1 -1
  165. package/lib/commands/menu/external-link-create.js +1 -1
  166. package/lib/commands/menu/external-link-update.js +1 -1
  167. package/lib/commands/menu/group-create.js +1 -1
  168. package/lib/commands/menu/group-update.js +1 -1
  169. package/lib/commands/menu/index.js +1 -1
  170. package/lib/commands/menu/list.js +1 -1
  171. package/lib/commands/menu/move.js +1 -1
  172. package/lib/commands/menu/regroup-start.js +1 -1
  173. package/lib/commands/menu/rename.js +1 -1
  174. package/lib/commands/menu/shared/compare-table.js +1 -1
  175. package/lib/commands/menu/shared/delete-plan.js +1 -1
  176. package/lib/commands/menu/shared/facts.js +1 -1
  177. package/lib/commands/menu/shared/index.js +1 -1
  178. package/lib/commands/menu/shared/inquirer.js +1 -1
  179. package/lib/commands/menu/shared/local-pages.js +1 -1
  180. package/lib/commands/menu/shared/logic.js +1 -1
  181. package/lib/commands/menu/shared/mutations.js +1 -1
  182. package/lib/commands/menu/shared/path.js +1 -1
  183. package/lib/commands/menu/shared/service.js +1 -1
  184. package/lib/commands/menu/shared/subapp-assets.js +1 -1
  185. package/lib/commands/menu/shared/sync-core.js +1 -1
  186. package/lib/commands/menu/shared/update-core.js +1 -1
  187. package/lib/commands/menu/shared/valid-url.js +1 -1
  188. package/lib/commands/menu/subapp-assets-status.js +1 -1
  189. package/lib/commands/menu/subapp-assets-update.js +1 -1
  190. package/lib/commands/menu/sync.js +1 -1
  191. package/lib/commands/menu/visibility-update.js +1 -1
  192. package/lib/commands/notification/config-create.js +1 -1
  193. package/lib/commands/notification/config-delete.js +1 -1
  194. package/lib/commands/notification/config-list.js +1 -1
  195. package/lib/commands/notification/config-update.js +1 -1
  196. package/lib/commands/notification/index.js +1 -1
  197. package/lib/commands/notification/shared.js +1 -1
  198. package/lib/commands/ocr/index.js +1 -1
  199. package/lib/commands/page/create.js +1 -1
  200. package/lib/commands/page/custom/detail.js +1 -1
  201. package/lib/commands/page/custom/list.js +1 -1
  202. package/lib/commands/page/custom/publish.js +1 -1
  203. package/lib/commands/page/custom/shared.js +1 -1
  204. package/lib/commands/page/custom/syntax.js +1 -1
  205. package/lib/commands/page/custom/update.js +1 -1
  206. package/lib/commands/page/data-list-status.js +1 -1
  207. package/lib/commands/page/generate-start.js +1 -1
  208. package/lib/commands/page/generate-status.js +1 -1
  209. package/lib/commands/page/index.js +1 -1
  210. package/lib/commands/page/pull.js +1 -1
  211. package/lib/commands/page/push.js +1 -1
  212. package/lib/commands/page/relation-audit.js +1 -1
  213. package/lib/commands/page/restore.js +1 -1
  214. package/lib/commands/page/shared.js +1 -1
  215. package/lib/commands/page/sync.js +1 -1
  216. package/lib/commands/project/api-architecture-upgrade.js +1 -1
  217. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  218. package/lib/commands/project/create/format-elapsed.js +1 -1
  219. package/lib/commands/project/create/main.js +1 -1
  220. package/lib/commands/project/create/materialize-project-template.js +1 -1
  221. package/lib/commands/project/create/project-name.js +1 -1
  222. package/lib/commands/project/create/project-template-archive.js +1 -1
  223. package/lib/commands/project/create/project-template-path.js +1 -1
  224. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  225. package/lib/commands/project/create/use-format-code.js +1 -1
  226. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  227. package/lib/commands/project/domain-routing-sync.js +1 -1
  228. package/lib/commands/project/index.js +1 -1
  229. package/lib/commands/project/upgrade.js +1 -1
  230. package/lib/commands/registry.js +1 -1
  231. package/lib/commands/role/delete.js +1 -1
  232. package/lib/commands/role/detail.js +1 -1
  233. package/lib/commands/role/index.js +1 -1
  234. package/lib/commands/role/list.js +1 -1
  235. package/lib/commands/role/shared.js +1 -1
  236. package/lib/commands/role/update.js +1 -1
  237. package/lib/commands/role/user-add.js +1 -1
  238. package/lib/commands/role/user-remove.js +1 -1
  239. package/lib/commands/role/user-resolve.js +1 -1
  240. package/lib/commands/rule/get.js +1 -1
  241. package/lib/commands/rule/index.js +1 -1
  242. package/lib/commands/rule/list.js +1 -1
  243. package/lib/commands/rule/set.js +1 -1
  244. package/lib/commands/rule/shared.js +1 -1
  245. package/lib/commands/run/index.js +1 -1
  246. package/lib/commands/schema.js +1 -1
  247. package/lib/commands/sql/create.js +1 -1
  248. package/lib/commands/sql/delete.js +1 -1
  249. package/lib/commands/sql/detail.js +1 -1
  250. package/lib/commands/sql/exec.js +1 -1
  251. package/lib/commands/sql/index.js +1 -1
  252. package/lib/commands/sql/list.js +1 -1
  253. package/lib/commands/sql/pull.js +1 -1
  254. package/lib/commands/sql/push.js +1 -1
  255. package/lib/commands/sql/shared.js +1 -1
  256. package/lib/commands/sql/status.js +1 -1
  257. package/lib/commands/sql/validate.js +1 -1
  258. package/lib/commands/task/index.js +1 -1
  259. package/lib/commands/task/status.js +1 -1
  260. package/lib/commands/tenant/index.js +1 -1
  261. package/lib/commands/tenant/members-list.js +1 -1
  262. package/lib/commands/tenant/shared.js +1 -1
  263. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  264. package/lib/commands/user-account/feishu-bind.js +1 -1
  265. package/lib/commands/user-account/index.js +1 -1
  266. package/lib/commands/workspace/add.js +1 -1
  267. package/lib/commands/workspace/index.js +1 -1
  268. package/lib/commands/workspace/remove.js +1 -1
  269. package/lib/config/domain-config.js +1 -1
  270. package/lib/config/project-domain-routing.js +1 -1
  271. package/lib/config/region-config.js +1 -1
  272. package/lib/config/schema.js +1 -1
  273. package/lib/constant/cdn.js +1 -1
  274. package/lib/constant/cli.js +1 -1
  275. package/lib/constant/defaults.js +1 -1
  276. package/lib/constant/domain.js +1 -1
  277. package/lib/constant/env.js +1 -1
  278. package/lib/constant/output.js +1 -1
  279. package/lib/constant/paths.js +1 -1
  280. package/lib/constant/region.js +1 -1
  281. package/lib/constant/risk.js +1 -1
  282. package/lib/constant/routing-profile.js +1 -1
  283. package/lib/context/app-resolver.js +1 -1
  284. package/lib/context/auth-resolver.js +1 -1
  285. package/lib/context/config-loader.js +1 -1
  286. package/lib/context.js +1 -1
  287. package/lib/core/alias-resolver.js +1 -1
  288. package/lib/core/api-client.js +1 -1
  289. package/lib/core/bff/config.js +1 -1
  290. package/lib/core/bff/file-system.js +1 -1
  291. package/lib/core/bff/hash.js +1 -1
  292. package/lib/core/bff/hook-directory.js +1 -1
  293. package/lib/core/bff/lock.js +1 -1
  294. package/lib/core/bff/utils.js +1 -1
  295. package/lib/core/cross-db-analysis.js +1 -1
  296. package/lib/core/cross-db-relation.js +1 -1
  297. package/lib/core/db-resolver.js +1 -1
  298. package/lib/core/flow-config.js +1 -1
  299. package/lib/core/instant-api-policy/config.js +1 -1
  300. package/lib/core/instant-api-policy/endpoints.js +1 -1
  301. package/lib/core/kb-management-client.js +1 -1
  302. package/lib/core/kb-search-client.js +1 -1
  303. package/lib/core/page/file-system.js +1 -1
  304. package/lib/core/page/hash.js +1 -1
  305. package/lib/core/page/lock.js +1 -1
  306. package/lib/core/page/lr-smart-jsx.js +1 -1
  307. package/lib/core/sql-index-auditor.js +1 -1
  308. package/lib/core/sql-sync/config.js +1 -1
  309. package/lib/core/sql-sync/file-system.js +1 -1
  310. package/lib/core/sql-sync/hash.js +1 -1
  311. package/lib/core/sql-sync/lock.js +1 -1
  312. package/lib/core/sql-sync/utils.js +1 -1
  313. package/lib/core/sql-validator.js +1 -1
  314. package/lib/errors.js +1 -1
  315. package/lib/framework/build-all-flags.js +1 -1
  316. package/lib/framework/error-output.js +1 -1
  317. package/lib/framework/explicit-yes.js +1 -1
  318. package/lib/framework/flags.js +1 -1
  319. package/lib/framework/help.js +1 -1
  320. package/lib/framework/index.js +1 -1
  321. package/lib/framework/output.js +1 -1
  322. package/lib/framework/response.js +1 -1
  323. package/lib/framework/runner-alias.js +1 -1
  324. package/lib/framework/runner.js +1 -1
  325. package/lib/framework/schema-export.js +1 -1
  326. package/lib/framework/supported-flags.js +1 -1
  327. package/lib/framework/types.js +1 -1
  328. package/lib/generated/build-info.d.ts +4 -4
  329. package/lib/generated/build-info.js +1 -1
  330. package/lib/generated/official-routing.js +1 -1
  331. package/lib/generated/routing-contract.js +1 -1
  332. package/lib/help.js +1 -1
  333. package/lib/postinstall.js +1 -1
  334. package/lib/runtime/confirmation.js +1 -1
  335. package/lib/runtime/event.js +1 -1
  336. package/lib/runtime/index.js +1 -1
  337. package/lib/runtime/queue.js +1 -1
  338. package/lib/runtime/resolve.js +1 -1
  339. package/lib/services/dataset-design/checkpoint.js +1 -1
  340. package/lib/services/dataset-design/commands.js +1 -1
  341. package/lib/services/dataset-design/contract.js +1 -1
  342. package/lib/skills/builtin-skill.js +1 -1
  343. package/lib/skills/main.js +1 -1
  344. package/lib/skills/npx-skills-add.js +1 -1
  345. package/lib/skills/skill-presence.js +1 -1
  346. package/lib/telemetry/cli-command-trace.js +1 -1
  347. package/lib/telemetry/cli-help-trace.js +1 -1
  348. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  349. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  350. package/lib/telemetry/send-cli-trace-log.js +1 -1
  351. package/lib/utils/ai_config.js +1 -1
  352. package/lib/utils/apply-jq-filter.js +1 -1
  353. package/lib/utils/cdn-config.js +1 -1
  354. package/lib/utils/check-sdk-version.js +1 -1
  355. package/lib/utils/cli-version-check.js +1 -1
  356. package/lib/utils/cli-version-policy.js +1 -1
  357. package/lib/utils/config.js +1 -1
  358. package/lib/utils/entity-with-id.js +1 -1
  359. package/lib/utils/file-utils.js +1 -1
  360. package/lib/utils/guides-cdn.js +1 -1
  361. package/lib/utils/http-client.js +1 -1
  362. package/lib/utils/is-non-interactive.js +1 -1
  363. package/lib/utils/logger.js +1 -1
  364. package/lib/utils/params.js +1 -1
  365. package/lib/utils/platform.js +1 -1
  366. package/lib/utils/sleep.js +1 -1
  367. package/lib/utils/template-replacer.js +1 -1
  368. package/lib/utils/update-notice.js +1 -1
  369. package/lib/utils/version.js +1 -1
  370. package/lib/utils/with-active-cookie.js +1 -1
  371. package/lib/utils/write-cli-side-channel.js +1 -1
  372. package/package.json +1 -1
  373. package/skills/rabetbase/SKILL.md +1 -1
  374. package/skills/rabetbase/guides/custom-page-workflow.md +32 -2
  375. package/skills/rabetbase/knowledge/custom-page/generation-standards.md +106 -6
  376. package/skills/rabetbase-dataset-generation/SKILL.md +1 -1
  377. package/skills/rabetbase-page-generation/SKILL.md +1 -1
  378. package/skills/rabetbase.manifest.json +3 -3
  379. package/templates/custom-pages/blank.json +1 -1
  380. package/templates/custom-pages/dashboard.json +1 -1
@@ -1 +1 @@
1
- const a112_0x3bb591=a112_0x31c8;(function(_0x3846e7,_0x2148d3){const _0x4eb84d=a112_0x31c8,_0x51732d=_0x3846e7();while(!![]){try{const _0x2a3157=parseInt(_0x4eb84d(0xf1))/0x1+parseInt(_0x4eb84d(0xe4))/0x2*(-parseInt(_0x4eb84d(0xee))/0x3)+parseInt(_0x4eb84d(0xf3))/0x4+parseInt(_0x4eb84d(0xe1))/0x5+-parseInt(_0x4eb84d(0xd2))/0x6*(-parseInt(_0x4eb84d(0xe9))/0x7)+-parseInt(_0x4eb84d(0xea))/0x8*(parseInt(_0x4eb84d(0xd5))/0x9)+-parseInt(_0x4eb84d(0xdf))/0xa;if(_0x2a3157===_0x2148d3)break;else _0x51732d['push'](_0x51732d['shift']());}catch(_0x4b26c5){_0x51732d['push'](_0x51732d['shift']());}}}(a112_0xd452,0xf2196));import{getDbTableDiff}from'../../core/api-client.js';function a112_0x31c8(_0x4cd25b,_0x5a6f70){_0x4cd25b=_0x4cd25b-0xcf;const _0xd45281=a112_0xd452();let _0x31c82e=_0xd45281[_0x4cd25b];return _0x31c82e;}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_0x3bb591(0xec),'description':a112_0x3bb591(0xe5),'risk':'read','flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a112_0x3bb591(0xf6),'type':'string','description':a112_0x3bb591(0xda)},{'name':a112_0x3bb591(0xeb),'type':a112_0x3bb591(0xf0),'description':'Page\x20index\x20(1-based)','default':0x1},{'name':a112_0x3bb591(0xd7),'type':a112_0x3bb591(0xf0),'description':'Page\x20size','default':0x14},{'name':a112_0x3bb591(0xd8),'type':a112_0x3bb591(0xcf),'description':'Fetch\x20and\x20aggregate\x20every\x20page\x20(overrides\x20--page\x20and\x20--pagesize)'}],async 'execute'(_0x49071f){const _0x3c785b=a112_0x3bb591,_0x2aa8b4=_0x49071f['num']('id'),_0x750117=_0x49071f[_0x3c785b(0xef)](_0x3c785b(0xd8)),_0x4fc010=_0x750117?0x1:_0x49071f[_0x3c785b(0xf5)]('page',0x1)||0x1,_0x545b63=_0x750117?DB_TABLE_PAGE_SIZE:_0x49071f[_0x3c785b(0xf5)](_0x3c785b(0xd7),0x14)||0x14,_0x5aa036=_0x49071f[_0x3c785b(0xe3)](_0x3c785b(0xf6))||undefined,_0x22b6c8=_0x750117?await getAllDbTableDiff(getDbTableDiff,_0x49071f[_0x3c785b(0xd1)],_0x2aa8b4,_0x5aa036):await getDbTableDiff(_0x49071f['appCode'],_0x2aa8b4,{'pageIndex':_0x4fc010,'pageSize':_0x545b63,'tableName':_0x5aa036}),_0x4c0c4e=_0x22b6c8[_0x3c785b(0xd4)],_0x28312a=summarizeDbTableDiff(_0x4c0c4e),_0x1cf3dd=_0x4c0c4e['filter'](_0x5f2dff=>_0x5f2dff['diffType']===_0x3c785b(0xd9)||_0x5f2dff['diffType']===_0x3c785b(0xdb))['map'](_0x596c43=>_0x596c43[_0x3c785b(0xdc)]),_0x14aa98=_0x4c0c4e['filter'](_0x3edb89=>_0x3edb89['diffType']===_0x3c785b(0xed))[_0x3c785b(0xd3)](_0x26f5a4=>_0x26f5a4[_0x3c785b(0xdc)]),_0x2378e1=_0x4c0c4e['filter'](_0x2c5d21=>_0x2c5d21[_0x3c785b(0xf2)]===_0x3c785b(0xdb))[_0x3c785b(0xd3)](_0x2e4f4e=>({'tableName':_0x2e4f4e[_0x3c785b(0xdc)],'addedColumns':_0x2e4f4e[_0x3c785b(0xdd)]?.[_0x3c785b(0xe0)]??[],'deletedColumns':_0x2e4f4e[_0x3c785b(0xdd)]?.[_0x3c785b(0xd6)]??[],'modifiedColumns':_0x2e4f4e['fieldDiff']?.[_0x3c785b(0xe8)]??[]}));return{'ok':!![],'data':{'dbLinkId':_0x2aa8b4,'page':_0x4fc010,'pageSize':_0x545b63,'totalCount':_0x22b6c8[_0x3c785b(0xde)],...typeof _0x22b6c8[_0x3c785b(0xe2)]==='number'?{'physicalTableCount':_0x22b6c8[_0x3c785b(0xe2)]}:{},...typeof _0x22b6c8[_0x3c785b(0xe6)]===_0x3c785b(0xf0)?{'datasetTableCount':_0x22b6c8[_0x3c785b(0xe6)]}:{},..._0x22b6c8[_0x3c785b(0xf4)]?{'summary':_0x22b6c8[_0x3c785b(0xf4)]}:{},'summaryByType':_0x28312a,'toAnalyzeTables':_0x1cf3dd,'deletedTables':_0x14aa98,'modifiedFieldDiffs':_0x2378e1,'tables':_0x4c0c4e},'message':_0x4c0c4e['length']+_0x3c785b(0xe7)+_0x22b6c8[_0x3c785b(0xde)]+_0x3c785b(0xd0)+_0x2aa8b4+')'};}};function a112_0xd452(){const _0xfeb8fd=['table','boolean','\x20(db\x20link\x20','appCode','11922ssMprc','map','tableList','378qntGNW','deletedColumns','pagesize','all','NEW_TABLE','Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)','MODIFIED_TABLE','tableName','fieldDiff','totalCount','37919580UnPAra','addedColumns','9826010gxwALA','physicalTableCount','str','283012NosNwm','Compare\x20datasets\x20with\x20physical\x20database\x20tables\x20and\x20show\x20schema\x20drift','datasetTableCount','\x20changed\x20table\x20row(s),\x20total\x20','modifiedColumns','4102pBiXwc','82712DyfJeS','page','diff','DELETED_TABLE','9rnAvBM','bool','number','1953028bmyLis','diffType','2238960nzpDYn','summary','num'];a112_0xd452=function(){return _0xfeb8fd;};return a112_0xd452();}
1
+ const a112_0x3b1b8d=a112_0x3fff;function a112_0x3fda(){const _0xffafaf=['NEW_TABLE','bool','171537EzCbCs','933072zIPHST','5550808bVbRYR','totalCount','datasetTableCount','diff','2743044iYFhaF','num','summary','Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)','Page\x20index\x20(1-based)','7tEbPrp','\x20changed\x20table\x20row(s),\x20total\x20','Compare\x20datasets\x20with\x20physical\x20database\x20tables\x20and\x20show\x20schema\x20drift','physicalTableCount','tableName','boolean','deletedColumns','3583575FhbGgL','filter','string','map','all','number','appCode','diffType','Page\x20size','25838900KpWywG','modifiedColumns','table','682141MTNAKY','page','2FaewVX','20GaXyQo','pagesize','tableList','DELETED_TABLE','\x20(db\x20link\x20','fieldDiff'];a112_0x3fda=function(){return _0xffafaf;};return a112_0x3fda();}function a112_0x3fff(_0x15a585,_0x2a3111){_0x15a585=_0x15a585-0x171;const _0x3fda9b=a112_0x3fda();let _0x3fffa1=_0x3fda9b[_0x15a585];return _0x3fffa1;}(function(_0x36004,_0x5632a4){const _0x203b9d=a112_0x3fff,_0x5f22b4=_0x36004();while(!![]){try{const _0x409af7=parseInt(_0x203b9d(0x181))/0x1+parseInt(_0x203b9d(0x183))/0x2*(-parseInt(_0x203b9d(0x18c))/0x3)+parseInt(_0x203b9d(0x192))/0x4+-parseInt(_0x203b9d(0x184))/0x5*(-parseInt(_0x203b9d(0x18d))/0x6)+-parseInt(_0x203b9d(0x197))/0x7*(-parseInt(_0x203b9d(0x18e))/0x8)+parseInt(_0x203b9d(0x175))/0x9+-parseInt(_0x203b9d(0x17e))/0xa;if(_0x409af7===_0x5632a4)break;else _0x5f22b4['push'](_0x5f22b4['shift']());}catch(_0x773c77){_0x5f22b4['push'](_0x5f22b4['shift']());}}}(a112_0x3fda,0x6ba4b));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_0x3b1b8d(0x191),'description':a112_0x3b1b8d(0x199),'risk':'read','flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a112_0x3b1b8d(0x180),'type':a112_0x3b1b8d(0x177),'description':a112_0x3b1b8d(0x195)},{'name':'page','type':a112_0x3b1b8d(0x17a),'description':a112_0x3b1b8d(0x196),'default':0x1},{'name':a112_0x3b1b8d(0x185),'type':'number','description':a112_0x3b1b8d(0x17d),'default':0x14},{'name':a112_0x3b1b8d(0x179),'type':a112_0x3b1b8d(0x173),'description':'Fetch\x20and\x20aggregate\x20every\x20page\x20(overrides\x20--page\x20and\x20--pagesize)'}],async 'execute'(_0x1641ac){const _0x2a7259=a112_0x3b1b8d,_0x413122=_0x1641ac['num']('id'),_0x42a9ff=_0x1641ac[_0x2a7259(0x18b)]('all'),_0x4d334f=_0x42a9ff?0x1:_0x1641ac[_0x2a7259(0x193)](_0x2a7259(0x182),0x1)||0x1,_0xf37e72=_0x42a9ff?DB_TABLE_PAGE_SIZE:_0x1641ac[_0x2a7259(0x193)](_0x2a7259(0x185),0x14)||0x14,_0xa2fa3b=_0x1641ac['str']('table')||undefined,_0x273a86=_0x42a9ff?await getAllDbTableDiff(getDbTableDiff,_0x1641ac[_0x2a7259(0x17b)],_0x413122,_0xa2fa3b):await getDbTableDiff(_0x1641ac[_0x2a7259(0x17b)],_0x413122,{'pageIndex':_0x4d334f,'pageSize':_0xf37e72,'tableName':_0xa2fa3b}),_0x4e47a9=_0x273a86[_0x2a7259(0x186)],_0x30ef1e=summarizeDbTableDiff(_0x4e47a9),_0x4e0909=_0x4e47a9[_0x2a7259(0x176)](_0x49f511=>_0x49f511[_0x2a7259(0x17c)]===_0x2a7259(0x18a)||_0x49f511['diffType']==='MODIFIED_TABLE')[_0x2a7259(0x178)](_0x185d02=>_0x185d02[_0x2a7259(0x172)]),_0x4d932e=_0x4e47a9[_0x2a7259(0x176)](_0x1cc32e=>_0x1cc32e['diffType']===_0x2a7259(0x187))[_0x2a7259(0x178)](_0x1f7f9b=>_0x1f7f9b[_0x2a7259(0x172)]),_0x27defd=_0x4e47a9[_0x2a7259(0x176)](_0x289e42=>_0x289e42[_0x2a7259(0x17c)]==='MODIFIED_TABLE')[_0x2a7259(0x178)](_0x1b3524=>({'tableName':_0x1b3524['tableName'],'addedColumns':_0x1b3524[_0x2a7259(0x189)]?.['addedColumns']??[],'deletedColumns':_0x1b3524[_0x2a7259(0x189)]?.[_0x2a7259(0x174)]??[],'modifiedColumns':_0x1b3524[_0x2a7259(0x189)]?.[_0x2a7259(0x17f)]??[]}));return{'ok':!![],'data':{'dbLinkId':_0x413122,'page':_0x4d334f,'pageSize':_0xf37e72,'totalCount':_0x273a86[_0x2a7259(0x18f)],...typeof _0x273a86['physicalTableCount']===_0x2a7259(0x17a)?{'physicalTableCount':_0x273a86[_0x2a7259(0x171)]}:{},...typeof _0x273a86[_0x2a7259(0x190)]==='number'?{'datasetTableCount':_0x273a86[_0x2a7259(0x190)]}:{},..._0x273a86[_0x2a7259(0x194)]?{'summary':_0x273a86[_0x2a7259(0x194)]}:{},'summaryByType':_0x30ef1e,'toAnalyzeTables':_0x4e0909,'deletedTables':_0x4d932e,'modifiedFieldDiffs':_0x27defd,'tables':_0x4e47a9},'message':_0x4e47a9['length']+_0x2a7259(0x198)+_0x273a86[_0x2a7259(0x18f)]+_0x2a7259(0x188)+_0x413122+')'};}};
@@ -1 +1 @@
1
- (function(_0x3a5c19,_0x197fa9){const _0x102207=a113_0x9ccd,_0x51e32d=_0x3a5c19();while(!![]){try{const _0x22332a=parseInt(_0x102207(0x101))/0x1+parseInt(_0x102207(0x100))/0x2*(parseInt(_0x102207(0xfc))/0x3)+parseInt(_0x102207(0x103))/0x4+parseInt(_0x102207(0xfe))/0x5*(-parseInt(_0x102207(0xfd))/0x6)+-parseInt(_0x102207(0xff))/0x7+-parseInt(_0x102207(0xfb))/0x8+parseInt(_0x102207(0x102))/0x9;if(_0x22332a===_0x197fa9)break;else _0x51e32d['push'](_0x51e32d['shift']());}catch(_0x199bfe){_0x51e32d['push'](_0x51e32d['shift']());}}}(a113_0x2840,0x237c2));import{dbList}from'../../commands/db/list.js';function a113_0x9ccd(_0x335d68,_0x363206){_0x335d68=_0x335d68-0xfb;const _0x28400e=a113_0x2840();let _0x9ccd93=_0x28400e[_0x335d68];return _0x9ccd93;}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';function a113_0x2840(){const _0x10e364=['3597JOUnWx','109194yunuEA','45wiYnva','1984836hFqiNm','412jZqvXd','91375GoBnUj','2422161PpboKZ','531200cNrbOI','1180904EmcCNz'];a113_0x2840=function(){return _0x10e364;};return a113_0x2840();}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';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(_0x5b8fc1,_0x31d1ff){const _0x512e8d=a113_0x5708,_0x264a31=_0x5b8fc1();while(!![]){try{const _0x3152f1=-parseInt(_0x512e8d(0x1b8))/0x1*(-parseInt(_0x512e8d(0x1b3))/0x2)+parseInt(_0x512e8d(0x1af))/0x3+-parseInt(_0x512e8d(0x1b4))/0x4*(-parseInt(_0x512e8d(0x1b5))/0x5)+parseInt(_0x512e8d(0x1b9))/0x6*(-parseInt(_0x512e8d(0x1b1))/0x7)+-parseInt(_0x512e8d(0x1b6))/0x8*(parseInt(_0x512e8d(0x1b0))/0x9)+-parseInt(_0x512e8d(0x1b2))/0xa*(parseInt(_0x512e8d(0x1b7))/0xb)+-parseInt(_0x512e8d(0x1ae))/0xc;if(_0x3152f1===_0x31d1ff)break;else _0x264a31['push'](_0x264a31['shift']());}catch(_0x581c6d){_0x264a31['push'](_0x264a31['shift']());}}}(a113_0x3fd7,0xbcdf3));function a113_0x3fd7(){const _0x3cc36c=['847qxTFxO','20FGhQWR','209172LswvmS','2933896Pdlvdq','10ShnDie','184egtlhI','1475683mskTsG','1wzbJlB','29178YSKczp','13699716qsOvHs','3797676ClMwmy','25605sdYWja'];a113_0x3fd7=function(){return _0x3cc36c;};return a113_0x3fd7();}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';function a113_0x5708(_0x21daf4,_0x204543){_0x21daf4=_0x21daf4-0x1ae;const _0x3fd7bd=a113_0x3fd7();let _0x5708f9=_0x3fd7bd[_0x21daf4];return _0x5708f9;}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';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_0x4d782a=a114_0x4524;(function(_0x5ddb09,_0x171ad1){const _0xd24582=a114_0x4524,_0x56a12f=_0x5ddb09();while(!![]){try{const _0xf93eab=parseInt(_0xd24582(0x19f))/0x1*(-parseInt(_0xd24582(0x194))/0x2)+parseInt(_0xd24582(0x1a2))/0x3*(parseInt(_0xd24582(0x193))/0x4)+parseInt(_0xd24582(0x19e))/0x5+parseInt(_0xd24582(0x198))/0x6*(parseInt(_0xd24582(0x1a1))/0x7)+parseInt(_0xd24582(0x1a8))/0x8+-parseInt(_0xd24582(0x1a6))/0x9+parseInt(_0xd24582(0x1ac))/0xa*(parseInt(_0xd24582(0x196))/0xb);if(_0xf93eab===_0x171ad1)break;else _0x56a12f['push'](_0x56a12f['shift']());}catch(_0x2544ea){_0x56a12f['push'](_0x56a12f['shift']());}}}(a114_0x28fe,0x650f1));import{listDatasets,listDbLinks}from'../../core/api-client.js';function a114_0x4524(_0x2fe81d,_0x13c6f6){_0x2fe81d=_0x2fe81d-0x192;const _0x28feb7=a114_0x28fe();let _0x4524ef=_0x28feb7[_0x2fe81d];return _0x4524ef;}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{buildDbDatasetDependency,sanitizeDbLinkForOutput}from'../../commands/db/shared.js';function a114_0x28fe(){const _0x18fb39=['Page\x20size','all','Found\x20','10SUiLlj','read','num','24bWqiKp','16pGEzXI','Server\x20omitted\x20paging\x20metadata;\x20totalCount\x20is\x20unknown\x20—\x20rowsOnPage\x20is\x20this\x20page\x20only','1584484PoFFtE','list','186246GXPbQi','Page\x20index\x20(1-based)','number','pagesize','appCode','\x20database\x20connection(s)','1133675xkCwHI','56218JEaael','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','35nYKaHm','275697QzGFwS','length','datasetDependency','page','3170151rpJruF','DB_TABLE','1108336HMHxov'];a114_0x28fe=function(){return _0x18fb39;};return a114_0x28fe();}export const dbList={'service':'db','command':a114_0x4d782a(0x197),'description':a114_0x4d782a(0x1a0),'risk':a114_0x4d782a(0x1ad),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a114_0x4d782a(0x1a5),'type':a114_0x4d782a(0x19a),'description':a114_0x4d782a(0x199),'default':0x1},{'name':a114_0x4d782a(0x19b),'type':a114_0x4d782a(0x19a),'description':a114_0x4d782a(0x1a9),'default':0x64}],async 'execute'(_0x18348b){const _0x591e02=a114_0x4d782a,_0x415fb9=_0x18348b[_0x591e02(0x192)](_0x591e02(0x1a5),0x1)||0x1,_0x8294d8=_0x18348b[_0x591e02(0x192)](_0x591e02(0x19b),0x64)||0x64,[{items:_0x43554c,paging:_0x4702b0},_0x7a83c]=await Promise[_0x591e02(0x1aa)]([listDbLinks(_0x18348b['appCode'],{'currentPage':_0x415fb9,'pageSize':_0x8294d8}),listDatasets(_0x18348b[_0x591e02(0x19c)],{'source':_0x591e02(0x1a7)})]),_0x578a59=_0x43554c['map'](_0x86adf2=>({...sanitizeDbLinkForOutput(_0x86adf2),'datasetDependency':buildDbDatasetDependency(_0x86adf2,_0x7a83c)[_0x591e02(0x1a4)]})),_0x35fdbb=_0x4702b0?_0x4702b0:{'currentPage':_0x415fb9,'pageSize':_0x8294d8,'rowsOnPage':_0x578a59['length'],'totalCount':null,'note':_0x591e02(0x195)};return{'ok':!![],'data':{'connections':_0x578a59,'paging':_0x35fdbb},'message':_0x591e02(0x1ab)+_0x578a59[_0x591e02(0x1a3)]+_0x591e02(0x19d)};}};
1
+ const a114_0x58dd72=a114_0x4565;(function(_0x1bd416,_0x18d82f){const _0x1c081d=a114_0x4565,_0x5b1e1f=_0x1bd416();while(!![]){try{const _0x484076=parseInt(_0x1c081d(0x196))/0x1+parseInt(_0x1c081d(0x18a))/0x2*(-parseInt(_0x1c081d(0x18d))/0x3)+parseInt(_0x1c081d(0x193))/0x4+parseInt(_0x1c081d(0x188))/0x5*(-parseInt(_0x1c081d(0x189))/0x6)+parseInt(_0x1c081d(0x185))/0x7+-parseInt(_0x1c081d(0x187))/0x8*(parseInt(_0x1c081d(0x197))/0x9)+-parseInt(_0x1c081d(0x198))/0xa*(-parseInt(_0x1c081d(0x18c))/0xb);if(_0x484076===_0x18d82f)break;else _0x5b1e1f['push'](_0x5b1e1f['shift']());}catch(_0x2a7e1b){_0x5b1e1f['push'](_0x5b1e1f['shift']());}}}(a114_0x51d2,0x8e2e5));function a114_0x4565(_0x270c55,_0x1492fc){_0x270c55=_0x270c55-0x17f;const _0x51d201=a114_0x51d2();let _0x4565d5=_0x51d201[_0x270c55];return _0x4565d5;}import{listDatasets,listDbLinks}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a114_0x51d2(){const _0x262701=['\x20database\x20connection(s)','121vLrXRF','3kYAwrv','all','read','Page\x20size','pagesize','num','4184064rqizjx','map','Server\x20omitted\x20paging\x20metadata;\x20totalCount\x20is\x20unknown\x20—\x20rowsOnPage\x20is\x20this\x20page\x20only','215782HjQHad','18jZnaXi','494770tgWNaB','Found\x20','list','Page\x20index\x20(1-based)','DB_TABLE','number','page','2145626YreQGP','appCode','2341688RtRPEQ','65605rZbzro','234hxGKMh','866098mVXJsG'];a114_0x51d2=function(){return _0x262701;};return a114_0x51d2();}import{buildDbDatasetDependency,sanitizeDbLinkForOutput}from'../../commands/db/shared.js';export const dbList={'service':'db','command':a114_0x58dd72(0x180),'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_0x58dd72(0x18f),'flags':[APPCODE_FLAG_OPTIONAL,{'name':'page','type':a114_0x58dd72(0x183),'description':a114_0x58dd72(0x181),'default':0x1},{'name':a114_0x58dd72(0x191),'type':a114_0x58dd72(0x183),'description':a114_0x58dd72(0x190),'default':0x64}],async 'execute'(_0x543797){const _0x265a86=a114_0x58dd72,_0x3a0471=_0x543797[_0x265a86(0x192)](_0x265a86(0x184),0x1)||0x1,_0x42b5fc=_0x543797[_0x265a86(0x192)](_0x265a86(0x191),0x64)||0x64,[{items:_0x239aea,paging:_0x342708},_0x5edeb3]=await Promise[_0x265a86(0x18e)]([listDbLinks(_0x543797['appCode'],{'currentPage':_0x3a0471,'pageSize':_0x42b5fc}),listDatasets(_0x543797[_0x265a86(0x186)],{'source':_0x265a86(0x182)})]),_0x5aa5e1=_0x239aea[_0x265a86(0x194)](_0x36c2d2=>({...sanitizeDbLinkForOutput(_0x36c2d2),'datasetDependency':buildDbDatasetDependency(_0x36c2d2,_0x5edeb3)['datasetDependency']})),_0x48a23f=_0x342708?_0x342708:{'currentPage':_0x3a0471,'pageSize':_0x42b5fc,'rowsOnPage':_0x5aa5e1['length'],'totalCount':null,'note':_0x265a86(0x195)};return{'ok':!![],'data':{'connections':_0x5aa5e1,'paging':_0x48a23f},'message':_0x265a86(0x17f)+_0x5aa5e1['length']+_0x265a86(0x18b)};}};
@@ -1 +1 @@
1
- (function(_0xbf9fb6,_0xfdf4d5){const _0x18be48=a115_0x5b3e,_0x1fdb1d=_0xbf9fb6();while(!![]){try{const _0x2fe7e5=-parseInt(_0x18be48(0x17c))/0x1+-parseInt(_0x18be48(0x182))/0x2+parseInt(_0x18be48(0x17a))/0x3+parseInt(_0x18be48(0x184))/0x4*(-parseInt(_0x18be48(0x194))/0x5)+parseInt(_0x18be48(0x180))/0x6*(-parseInt(_0x18be48(0x198))/0x7)+parseInt(_0x18be48(0x179))/0x8+parseInt(_0x18be48(0x18a))/0x9;if(_0x2fe7e5===_0xfdf4d5)break;else _0x1fdb1d['push'](_0x1fdb1d['shift']());}catch(_0x57b076){_0x1fdb1d['push'](_0x1fdb1d['shift']());}}}(a115_0x23e1,0xa381c));import{testDbLinkConfigConnect}from'../../core/api-client.js';import{getAppBaseUrl}from'../../constant/domain.js';import{CliErrors}from'../../errors.js';function shouldRedactKey(_0x34116c){const _0x3b81b3=a115_0x5b3e,_0x51089b=_0x34116c[_0x3b81b3(0x187)]();if(_0x51089b===_0x3b81b3(0x181)||_0x51089b===_0x3b81b3(0x192)||_0x51089b==='dbpassword')return!![];if(_0x51089b[_0x3b81b3(0x17f)]('secret')||_0x51089b[_0x3b81b3(0x17f)](_0x3b81b3(0x17e))||_0x51089b[_0x3b81b3(0x17f)](_0x3b81b3(0x195)))return!![];if(_0x51089b['includes']('privatekey')||_0x51089b['includes'](_0x3b81b3(0x18b)))return!![];if(_0x51089b===_0x3b81b3(0x185)||_0x51089b===_0x3b81b3(0x186)||_0x51089b==='jdbcurl')return!![];return![];}export function sanitizeDbLinkForOutput(_0x3a742f){const _0x4443b9=a115_0x5b3e,_0x5eb08f={..._0x3a742f};delete _0x5eb08f[_0x4443b9(0x18f)];for(const _0x2bd078 of Object[_0x4443b9(0x18c)](_0x5eb08f)){if(!shouldRedactKey(_0x2bd078))continue;const _0x2b1f8a=_0x5eb08f[_0x2bd078];_0x2b1f8a!=null&&String(_0x2b1f8a)[_0x4443b9(0x18d)]>0x0&&(_0x5eb08f[_0x2bd078]=_0x4443b9(0x18e));}return _0x5eb08f;}export function sanitizeDbLinkList(_0x5634d3){const _0xdf8af9=a115_0x5b3e;return _0x5634d3[_0xdf8af9(0x188)](_0x56c5b5=>sanitizeDbLinkForOutput(_0x56c5b5));}function a115_0x23e1(){const _0x36e69f=['11616mdgUTU','password','2075344mUadBi','tableName','28aKYoov','authorization','connectionstring','toLowerCase','map','trim','23926446kgJeCN','accesskey','keys','length','[redacted]','hasAvailableDo','dbtableConfig','isFinite','passwd','dbId','838785RTbxoV','credential','test','The\x20configuration\x20was\x20not\x20saved.\x20Verify\x20the\x20host,\x20credentials,\x20database\x20name,\x20network,\x20and\x20allowlist,\x20or\x20explicitly\x20pass\x20--skip-connection-test.','2786sacfIS','8003304SACjIt','1364667nzkVCT','name','461573zUhcUj','number','token','includes'];a115_0x23e1=function(){return _0x36e69f;};return a115_0x23e1();}export function buildDbDatasetDependency(_0x5c99a1,_0x31272b){const _0x3540e0=a115_0x5b3e,_0x570976=_0x31272b['filter'](_0x76afb0=>Number(_0x76afb0[_0x3540e0(0x190)]?.[_0x3540e0(0x193)])===Number(_0x5c99a1['id']))[_0x3540e0(0x188)](_0x3a4741=>({'id':_0x3a4741['id'],'code':_0x3a4741['code'],'name':_0x3a4741[_0x3540e0(0x17b)],..._0x3a4741[_0x3540e0(0x190)]?.['tableName']?{'tableName':_0x3a4741[_0x3540e0(0x190)][_0x3540e0(0x183)]}:{}}));return{'datasetDependency':{'hasDependencies':_0x570976[_0x3540e0(0x18d)]>0x0,'activeDatasetCount':_0x570976[_0x3540e0(0x18d)]},'datasets':_0x570976};}function a115_0x5b3e(_0x365020,_0x2353d7){_0x365020=_0x365020-0x179;const _0x23e125=a115_0x23e1();let _0x5b3ec3=_0x23e125[_0x365020];return _0x5b3ec3;}export async function assertDbLinkConnectionPreflight(_0x23ad08){const _0x23b8d6=a115_0x5b3e,_0x110a68=await testDbLinkConfigConnect(_0x23ad08);if(_0x110a68!==!![])throw CliErrors['apiError']('Database\x20connection\x20preflight\x20failed.',_0x23b8d6(0x197));}const DB_URL_PATTERN=/^[^\s:]+(?::\d+)?$/;export function validateDbUrl(_0x2d48f1){const _0x5a9a52=a115_0x5b3e,_0x74c095=_0x2d48f1[_0x5a9a52(0x189)]();if(!_0x74c095)return![];return DB_URL_PATTERN[_0x5a9a52(0x196)](_0x74c095);}export function buildDbPageLinks(_0x28a32c,_0x88c807){const _0x3638ed=a115_0x5b3e,_0x4d3c76=_0x28a32c?.[_0x3638ed(0x189)]();if(!_0x4d3c76)return undefined;const _0x1a798f=typeof _0x88c807===_0x3638ed(0x17d)?String(_0x88c807):String(_0x88c807??'')[_0x3638ed(0x189)]();if(!_0x1a798f)return undefined;const _0x652a42=Number(_0x1a798f);if(!Number[_0x3638ed(0x191)](_0x652a42)||_0x652a42<=0x0)return undefined;const _0x152dc7=getAppBaseUrl(_0x4d3c76),_0x4ac7a2=encodeURIComponent(String(_0x652a42));return{'databasePage':_0x152dc7+'/data/database','erPage':_0x152dc7+'/data/er?dbId='+_0x4ac7a2};}
1
+ (function(_0x5a0a38,_0x39ec73){const _0x1d60a7=a115_0xa9ce,_0xe0fa63=_0x5a0a38();while(!![]){try{const _0x3f761=-parseInt(_0x1d60a7(0x1f4))/0x1*(-parseInt(_0x1d60a7(0x1e2))/0x2)+parseInt(_0x1d60a7(0x1de))/0x3*(-parseInt(_0x1d60a7(0x1eb))/0x4)+-parseInt(_0x1d60a7(0x1fb))/0x5+parseInt(_0x1d60a7(0x1df))/0x6*(-parseInt(_0x1d60a7(0x1f6))/0x7)+-parseInt(_0x1d60a7(0x1fd))/0x8*(-parseInt(_0x1d60a7(0x1f9))/0x9)+parseInt(_0x1d60a7(0x1e5))/0xa+-parseInt(_0x1d60a7(0x203))/0xb*(-parseInt(_0x1d60a7(0x1f3))/0xc);if(_0x3f761===_0x39ec73)break;else _0xe0fa63['push'](_0xe0fa63['shift']());}catch(_0x137dae){_0xe0fa63['push'](_0xe0fa63['shift']());}}}(a115_0x3c80,0x2a97e));import{testDbLinkConfigConnect}from'../../core/api-client.js';function a115_0xa9ce(_0x250ece,_0x2d4fc0){_0x250ece=_0x250ece-0x1dc;const _0x3c80b9=a115_0x3c80();let _0xa9ced=_0x3c80b9[_0x250ece];return _0xa9ced;}import{getAppBaseUrl}from'../../constant/domain.js';import{CliErrors}from'../../errors.js';function shouldRedactKey(_0x880b){const _0x4493bf=a115_0xa9ce,_0x467225=_0x880b[_0x4493bf(0x1fe)]();if(_0x467225===_0x4493bf(0x201)||_0x467225===_0x4493bf(0x1ee)||_0x467225===_0x4493bf(0x1e4))return!![];if(_0x467225[_0x4493bf(0x1ec)](_0x4493bf(0x1ef))||_0x467225[_0x4493bf(0x1ec)](_0x4493bf(0x1ff))||_0x467225['includes'](_0x4493bf(0x204)))return!![];if(_0x467225[_0x4493bf(0x1ec)](_0x4493bf(0x1fa))||_0x467225[_0x4493bf(0x1ec)](_0x4493bf(0x1e8)))return!![];if(_0x467225===_0x4493bf(0x1e6)||_0x467225===_0x4493bf(0x1e7)||_0x467225===_0x4493bf(0x1e0))return!![];return![];}export function sanitizeDbLinkForOutput(_0x401f87){const _0x131192=a115_0xa9ce,_0x14e5c1={..._0x401f87};delete _0x14e5c1[_0x131192(0x1fc)];for(const _0x36927b of Object['keys'](_0x14e5c1)){if(!shouldRedactKey(_0x36927b))continue;const _0x35441a=_0x14e5c1[_0x36927b];_0x35441a!=null&&String(_0x35441a)[_0x131192(0x1dd)]>0x0&&(_0x14e5c1[_0x36927b]='[redacted]');}return _0x14e5c1;}export function sanitizeDbLinkList(_0x5e0d1f){const _0x3011ac=a115_0xa9ce;return _0x5e0d1f[_0x3011ac(0x1f1)](_0x494319=>sanitizeDbLinkForOutput(_0x494319));}export function buildDbDatasetDependency(_0x158456,_0x5dd882){const _0x254d63=a115_0xa9ce,_0x4aafc1=_0x5dd882[_0x254d63(0x1e3)](_0x5c85c8=>Number(_0x5c85c8[_0x254d63(0x1f2)]?.[_0x254d63(0x1e1)])===Number(_0x158456['id']))[_0x254d63(0x1f1)](_0x2d8d3f=>({'id':_0x2d8d3f['id'],'code':_0x2d8d3f[_0x254d63(0x1ed)],'name':_0x2d8d3f[_0x254d63(0x1f7)],..._0x2d8d3f[_0x254d63(0x1f2)]?.[_0x254d63(0x1e9)]?{'tableName':_0x2d8d3f['dbtableConfig'][_0x254d63(0x1e9)]}:{}}));return{'datasetDependency':{'hasDependencies':_0x4aafc1[_0x254d63(0x1dd)]>0x0,'activeDatasetCount':_0x4aafc1['length']},'datasets':_0x4aafc1};}export async function assertDbLinkConnectionPreflight(_0x16adf9){const _0x74585a=a115_0xa9ce,_0xd95572=await testDbLinkConfigConnect(_0x16adf9);if(_0xd95572!==!![])throw CliErrors['apiError']('Database\x20connection\x20preflight\x20failed.',_0x74585a(0x200));}function a115_0x3c80(){const _0x200d4f=['jdbcurl','dbId','494116szsrMB','filter','dbpassword','2228260WLInVK','authorization','connectionstring','accesskey','tableName','number','3448lmmAyu','includes','code','passwd','secret','trim','map','dbtableConfig','1699140CpgaNR','1iLNoxx','/data/database','911407HnsPhA','name','isFinite','9NQWIIu','privatekey','932605zweLxq','hasAvailableDo','355088GLecUi','toLowerCase','token','The\x20configuration\x20was\x20not\x20saved.\x20Verify\x20the\x20host,\x20credentials,\x20database\x20name,\x20network,\x20and\x20allowlist,\x20or\x20explicitly\x20pass\x20--skip-connection-test.','password','test','11LRsjQQ','credential','/data/er?dbId=','length','120sSjrUv','12HmgtIc'];a115_0x3c80=function(){return _0x200d4f;};return a115_0x3c80();}const DB_URL_PATTERN=/^[^\s:]+(?::\d+)?$/;export function validateDbUrl(_0x22de1a){const _0x34a2ba=a115_0xa9ce,_0x3e16d3=_0x22de1a[_0x34a2ba(0x1f0)]();if(!_0x3e16d3)return![];return DB_URL_PATTERN[_0x34a2ba(0x202)](_0x3e16d3);}export function buildDbPageLinks(_0x43f3b0,_0x33bb39){const _0x12f4bd=a115_0xa9ce,_0x54b228=_0x43f3b0?.[_0x12f4bd(0x1f0)]();if(!_0x54b228)return undefined;const _0x3a6952=typeof _0x33bb39===_0x12f4bd(0x1ea)?String(_0x33bb39):String(_0x33bb39??'')[_0x12f4bd(0x1f0)]();if(!_0x3a6952)return undefined;const _0x3cfb35=Number(_0x3a6952);if(!Number[_0x12f4bd(0x1f8)](_0x3cfb35)||_0x3cfb35<=0x0)return undefined;const _0x58bafa=getAppBaseUrl(_0x54b228),_0x1157a=encodeURIComponent(String(_0x3cfb35));return{'databasePage':_0x58bafa+_0x12f4bd(0x1f5),'erPage':_0x58bafa+_0x12f4bd(0x1dc)+_0x1157a};}
@@ -1 +1 @@
1
- const a116_0x42f584=a116_0x1a95;(function(_0x49824c,_0x147db4){const _0x40a480=a116_0x1a95,_0x33c3e7=_0x49824c();while(!![]){try{const _0x437075=-parseInt(_0x40a480(0x13c))/0x1+parseInt(_0x40a480(0x12a))/0x2*(-parseInt(_0x40a480(0x12e))/0x3)+parseInt(_0x40a480(0x123))/0x4+parseInt(_0x40a480(0x130))/0x5*(-parseInt(_0x40a480(0x124))/0x6)+parseInt(_0x40a480(0x135))/0x7*(-parseInt(_0x40a480(0x138))/0x8)+-parseInt(_0x40a480(0x122))/0x9+parseInt(_0x40a480(0x126))/0xa*(parseInt(_0x40a480(0x13d))/0xb);if(_0x437075===_0x147db4)break;else _0x33c3e7['push'](_0x33c3e7['shift']());}catch(_0x35b40f){_0x33c3e7['push'](_0x33c3e7['shift']());}}}(a116_0x35ab,0xbbc2d));import{CliErrors}from'../../errors.js';function a116_0x1a95(_0x60ca6e,_0x53156c){_0x60ca6e=_0x60ca6e-0x120;const _0x35ab4c=a116_0x35ab();let _0x1a95f7=_0x35ab4c[_0x60ca6e];return _0x1a95f7;}export const DB_TABLE_PAGE_SIZE=0x64;function a116_0x35ab(){const _0x3e1f3e=['NEW_TABLE','fromEntries','\x20row(s).','11821302hSCoMF','1420992MRzeAd','308568xcbeuY','DELETED_TABLE','50EkDxOL','MODIFIED_TABLE','length','ALREADY_ANALYZED','569510ibQVxX','tableList','filter','map','3ZZIPDF','size','10AIddSy','diffType','tableName','totalCount','summary','10521336ZEGdJJ','datasetTableCount','\x20of\x20','8eSrEEh','number','Incomplete\x20db\x20table\x20pagination:\x20collected\x20','physicalTableCount','236272MABsZJ','8479306MSecBK','validation'];a116_0x35ab=function(){return _0x3e1f3e;};return a116_0x35ab();}export const DB_TABLE_DIFF_TYPES=[a116_0x42f584(0x13f),a116_0x42f584(0x127),a116_0x42f584(0x125),a116_0x42f584(0x129)];export function summarizeDbTableDiff(_0x4e2580){const _0x51fe6e=a116_0x42f584;return Object[_0x51fe6e(0x120)](DB_TABLE_DIFF_TYPES[_0x51fe6e(0x12d)](_0x4456f0=>[_0x4456f0,_0x4e2580[_0x51fe6e(0x12c)](_0x3b87df=>_0x3b87df[_0x51fe6e(0x131)]===_0x4456f0)[_0x51fe6e(0x128)]]));}export async function getAllDbTableDiff(_0x35202c,_0x13ec0c,_0x10d6b8,_0x32bcef){const _0x1a446a=a116_0x42f584,_0x5728de=new Map();let _0x45ec60=0x1,_0x2ecc20=null;while(!![]){_0x2ecc20=await _0x35202c(_0x13ec0c,_0x10d6b8,{'pageIndex':_0x45ec60,'pageSize':DB_TABLE_PAGE_SIZE,'tableName':_0x32bcef});const _0x2e9a6a=_0x5728de[_0x1a446a(0x12f)];for(const _0x58842e of _0x2ecc20[_0x1a446a(0x12b)]){_0x5728de['set'](_0x58842e[_0x1a446a(0x132)],_0x58842e);}if(_0x5728de[_0x1a446a(0x12f)]>=_0x2ecc20['totalCount'])break;if(_0x2ecc20['tableList'][_0x1a446a(0x128)]===0x0||_0x5728de[_0x1a446a(0x12f)]===_0x2e9a6a)throw CliErrors[_0x1a446a(0x13e)](_0x1a446a(0x13a)+_0x5728de['size']+_0x1a446a(0x137)+_0x2ecc20[_0x1a446a(0x133)]+_0x1a446a(0x121));_0x45ec60+=0x1;}return{'totalCount':_0x2ecc20?.['totalCount']??0x0,...typeof _0x2ecc20?.['physicalTableCount']===_0x1a446a(0x139)?{'physicalTableCount':_0x2ecc20[_0x1a446a(0x13b)]}:{},...typeof _0x2ecc20?.[_0x1a446a(0x136)]===_0x1a446a(0x139)?{'datasetTableCount':_0x2ecc20[_0x1a446a(0x136)]}:{},..._0x2ecc20?.[_0x1a446a(0x134)]?{'summary':_0x2ecc20[_0x1a446a(0x134)]}:{},'tableList':[..._0x5728de['values']()]};}
1
+ const a116_0x176066=a116_0x1ef3;function a116_0x1ef3(_0x5aac71,_0x1889dc){_0x5aac71=_0x5aac71-0x1dc;const _0x66b80c=a116_0x66b8();let _0x1ef3a4=_0x66b80c[_0x5aac71];return _0x1ef3a4;}(function(_0x27242c,_0x32f233){const _0x2a4560=a116_0x1ef3,_0x3ceb0b=_0x27242c();while(!![]){try{const _0x546cdc=parseInt(_0x2a4560(0x1e9))/0x1+-parseInt(_0x2a4560(0x1e0))/0x2*(-parseInt(_0x2a4560(0x1e6))/0x3)+-parseInt(_0x2a4560(0x1ea))/0x4*(-parseInt(_0x2a4560(0x1f8))/0x5)+-parseInt(_0x2a4560(0x1f1))/0x6+parseInt(_0x2a4560(0x1de))/0x7+parseInt(_0x2a4560(0x1ef))/0x8*(parseInt(_0x2a4560(0x1e4))/0x9)+parseInt(_0x2a4560(0x1e7))/0xa*(-parseInt(_0x2a4560(0x1dd))/0xb);if(_0x546cdc===_0x32f233)break;else _0x3ceb0b['push'](_0x3ceb0b['shift']());}catch(_0x47ed4c){_0x3ceb0b['push'](_0x3ceb0b['shift']());}}}(a116_0x66b8,0xe0669));import{CliErrors}from'../../errors.js';export const DB_TABLE_PAGE_SIZE=0x64;export const DB_TABLE_DIFF_TYPES=[a116_0x176066(0x1f4),a116_0x176066(0x1f3),a116_0x176066(0x1ec),a116_0x176066(0x1e3)];export function summarizeDbTableDiff(_0xb8ef61){const _0x364383=a116_0x176066;return Object[_0x364383(0x1e8)](DB_TABLE_DIFF_TYPES[_0x364383(0x1e2)](_0xbbab22=>[_0xbbab22,_0xb8ef61[_0x364383(0x1ee)](_0x4a3416=>_0x4a3416[_0x364383(0x1f6)]===_0xbbab22)['length']]));}function a116_0x66b8(){const _0x6d3430=['ALREADY_ANALYZED','424224seLsUo','datasetTableCount','4038162DKZAur','890VkrEPe','fromEntries','1050272wqQjfm','2448064uBehRQ','physicalTableCount','DELETED_TABLE','size','filter','32WhuXzG','validation','982008SYEVfV','number','MODIFIED_TABLE','NEW_TABLE','\x20of\x20','diffType','totalCount','10wRaVsL','tableList','511753BspSjs','9901206gkRPZo','Incomplete\x20db\x20table\x20pagination:\x20collected\x20','2MltPHF','length','map'];a116_0x66b8=function(){return _0x6d3430;};return a116_0x66b8();}export async function getAllDbTableDiff(_0x11e431,_0x3273ca,_0x333c31,_0x3e5c27){const _0x11fb9e=a116_0x176066,_0x5ace0a=new Map();let _0x50a6b4=0x1,_0x2edd83=null;while(!![]){_0x2edd83=await _0x11e431(_0x3273ca,_0x333c31,{'pageIndex':_0x50a6b4,'pageSize':DB_TABLE_PAGE_SIZE,'tableName':_0x3e5c27});const _0x470273=_0x5ace0a[_0x11fb9e(0x1ed)];for(const _0x104374 of _0x2edd83[_0x11fb9e(0x1dc)]){_0x5ace0a['set'](_0x104374['tableName'],_0x104374);}if(_0x5ace0a['size']>=_0x2edd83['totalCount'])break;if(_0x2edd83[_0x11fb9e(0x1dc)][_0x11fb9e(0x1e1)]===0x0||_0x5ace0a['size']===_0x470273)throw CliErrors[_0x11fb9e(0x1f0)](_0x11fb9e(0x1df)+_0x5ace0a[_0x11fb9e(0x1ed)]+_0x11fb9e(0x1f5)+_0x2edd83[_0x11fb9e(0x1f7)]+'\x20row(s).');_0x50a6b4+=0x1;}return{'totalCount':_0x2edd83?.[_0x11fb9e(0x1f7)]??0x0,...typeof _0x2edd83?.[_0x11fb9e(0x1eb)]===_0x11fb9e(0x1f2)?{'physicalTableCount':_0x2edd83[_0x11fb9e(0x1eb)]}:{},...typeof _0x2edd83?.[_0x11fb9e(0x1e5)]==='number'?{'datasetTableCount':_0x2edd83['datasetTableCount']}:{},..._0x2edd83?.['summary']?{'summary':_0x2edd83['summary']}:{},'tableList':[..._0x5ace0a['values']()]};}
@@ -1 +1 @@
1
- const a117_0xe350ec=a117_0x4f50;function a117_0x4f50(_0x294377,_0x3a48ee){_0x294377=_0x294377-0xf0;const _0x3adfbf=a117_0x3adf();let _0x4f50d3=_0x3adfbf[_0x294377];return _0x4f50d3;}(function(_0x18e849,_0x460228){const _0xfe50a6=a117_0x4f50,_0xd6ab6=_0x18e849();while(!![]){try{const _0x824dcd=-parseInt(_0xfe50a6(0x100))/0x1+-parseInt(_0xfe50a6(0x101))/0x2+parseInt(_0xfe50a6(0x102))/0x3+parseInt(_0xfe50a6(0xf9))/0x4+parseInt(_0xfe50a6(0xf1))/0x5*(parseInt(_0xfe50a6(0xf2))/0x6)+-parseInt(_0xfe50a6(0x108))/0x7*(-parseInt(_0xfe50a6(0xf5))/0x8)+parseInt(_0xfe50a6(0x107))/0x9*(parseInt(_0xfe50a6(0xfd))/0xa);if(_0x824dcd===_0x460228)break;else _0xd6ab6['push'](_0xd6ab6['shift']());}catch(_0xbf2c21){_0xd6ab6['push'](_0xd6ab6['shift']());}}}(a117_0x3adf,0xcf908));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_0x3adf(){const _0x3f191b=['tableList','48CpGbVa','\x20(db\x20link\x20','datasetTableCount','appCode','3864248npIlgP','summary','table','tables','5129030ujyJyH','number','string','1573790bckePS','2155362rbTRLH','2804811SEPPyM','Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)','\x20table\x20comparison\x20row(s),\x20total\x20','physicalTableCount','totalCount','9Ehvywg','19516WYGDbW','read','num','5355125atWGfZ','6bdRpYC','length'];a117_0x3adf=function(){return _0x3f191b;};return a117_0x3adf();}export const dbTables={'service':'db','command':a117_0xe350ec(0xfc),'description':'List\x20all\x20database\x20table\x20comparison\x20rows\x20and\x20analysis\x20states','risk':a117_0xe350ec(0x109),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a117_0xe350ec(0xfb),'type':a117_0xe350ec(0xff),'description':a117_0xe350ec(0x103)}],async 'execute'(_0x40e21b){const _0x11be4e=a117_0xe350ec,_0x40b53e=_0x40e21b[_0x11be4e(0xf0)]('id'),_0x548080=_0x40e21b['str']('table')||undefined,_0xe78223=await getAllDbTableDiff(getDbTableComparisonPage,_0x40e21b[_0x11be4e(0xf8)],_0x40b53e,_0x548080),_0x4a99ed=_0xe78223[_0x11be4e(0xf4)];return{'ok':!![],'data':{'dbLinkId':_0x40b53e,'totalCount':_0xe78223[_0x11be4e(0x106)],...typeof _0xe78223[_0x11be4e(0x105)]==='number'?{'physicalTableCount':_0xe78223[_0x11be4e(0x105)]}:{},...typeof _0xe78223['datasetTableCount']===_0x11be4e(0xfe)?{'datasetTableCount':_0xe78223[_0x11be4e(0xf7)]}:{},..._0xe78223[_0x11be4e(0xfa)]?{'summary':_0xe78223['summary']}:{},'summaryByType':summarizeDbTableDiff(_0x4a99ed),'tables':_0x4a99ed},'message':_0x4a99ed[_0x11be4e(0xf3)]+_0x11be4e(0x104)+_0xe78223[_0x11be4e(0x106)]+_0x11be4e(0xf6)+_0x40b53e+')'};}};
1
+ const a117_0x5467e6=a117_0x327a;(function(_0x5a5a57,_0x82126){const _0x3faed6=a117_0x327a,_0x197726=_0x5a5a57();while(!![]){try{const _0xcbc3c5=parseInt(_0x3faed6(0x10d))/0x1*(-parseInt(_0x3faed6(0xf4))/0x2)+-parseInt(_0x3faed6(0x102))/0x3*(parseInt(_0x3faed6(0xf8))/0x4)+-parseInt(_0x3faed6(0xfa))/0x5*(-parseInt(_0x3faed6(0xf5))/0x6)+parseInt(_0x3faed6(0xf6))/0x7*(-parseInt(_0x3faed6(0x101))/0x8)+-parseInt(_0x3faed6(0x103))/0x9*(parseInt(_0x3faed6(0xfc))/0xa)+-parseInt(_0x3faed6(0x105))/0xb*(-parseInt(_0x3faed6(0x10f))/0xc)+-parseInt(_0x3faed6(0x106))/0xd*(-parseInt(_0x3faed6(0xff))/0xe);if(_0xcbc3c5===_0x82126)break;else _0x197726['push'](_0x197726['shift']());}catch(_0x45fd3f){_0x197726['push'](_0x197726['shift']());}}}(a117_0x9281,0xeadbc));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_0x327a(_0x299676,_0x162843){_0x299676=_0x299676-0xf3;const _0x92812d=a117_0x9281();let _0x327a23=_0x92812d[_0x299676];return _0x327a23;}export const dbTables={'service':'db','command':a117_0x5467e6(0xf9),'description':a117_0x5467e6(0xf3),'risk':a117_0x5467e6(0x10b),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a117_0x5467e6(0x109),'type':'string','description':'Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)'}],async 'execute'(_0x4fd684){const _0x459cda=a117_0x5467e6,_0x1298bd=_0x4fd684[_0x459cda(0xf7)]('id'),_0xf2b7a8=_0x4fd684['str'](_0x459cda(0x109))||undefined,_0x14faa0=await getAllDbTableDiff(getDbTableComparisonPage,_0x4fd684[_0x459cda(0xfe)],_0x1298bd,_0xf2b7a8),_0x531b61=_0x14faa0[_0x459cda(0x104)];return{'ok':!![],'data':{'dbLinkId':_0x1298bd,'totalCount':_0x14faa0[_0x459cda(0x108)],...typeof _0x14faa0[_0x459cda(0xfb)]===_0x459cda(0x10e)?{'physicalTableCount':_0x14faa0[_0x459cda(0xfb)]}:{},...typeof _0x14faa0[_0x459cda(0xfd)]===_0x459cda(0x10e)?{'datasetTableCount':_0x14faa0[_0x459cda(0xfd)]}:{},..._0x14faa0['summary']?{'summary':_0x14faa0[_0x459cda(0x10c)]}:{},'summaryByType':summarizeDbTableDiff(_0x531b61),'tables':_0x531b61},'message':_0x531b61[_0x459cda(0x10a)]+_0x459cda(0x100)+_0x14faa0[_0x459cda(0x108)]+_0x459cda(0x107)+_0x1298bd+')'};}};function a117_0x9281(){const _0x1aa9ca=['4440wOXzFU','1246AVgEKZ','num','15316BcXbqz','tables','8870INEhgT','physicalTableCount','40QuLJFX','datasetTableCount','appCode','28utDghQ','\x20table\x20comparison\x20row(s),\x20total\x20','51336XSjfAY','150GtRuqo','4260087yBnfSC','tableList','62645yYqkcD','21173685buyMBt','\x20(db\x20link\x20','totalCount','table','length','read','summary','1161437IvqNll','number','1644CgkvSx','List\x20all\x20database\x20table\x20comparison\x20rows\x20and\x20analysis\x20states','2MTruwp'];a117_0x9281=function(){return _0x1aa9ca;};return a117_0x9281();}
@@ -1 +1 @@
1
- const a118_0x15bff6=a118_0x21f1;(function(_0x13aef8,_0x1a85e6){const _0x1d8fab=a118_0x21f1,_0x4ec649=_0x13aef8();while(!![]){try{const _0x35138c=parseInt(_0x1d8fab(0x99))/0x1+parseInt(_0x1d8fab(0x97))/0x2*(-parseInt(_0x1d8fab(0x9c))/0x3)+-parseInt(_0x1d8fab(0x98))/0x4*(-parseInt(_0x1d8fab(0xa1))/0x5)+-parseInt(_0x1d8fab(0xa3))/0x6+parseInt(_0x1d8fab(0x8f))/0x7+parseInt(_0x1d8fab(0x9f))/0x8+parseInt(_0x1d8fab(0x94))/0x9*(-parseInt(_0x1d8fab(0xa5))/0xa);if(_0x35138c===_0x1a85e6)break;else _0x4ec649['push'](_0x4ec649['shift']());}catch(_0x3f79cc){_0x4ec649['push'](_0x4ec649['shift']());}}}(a118_0x2118,0x791fe));import{testDbLinkConnect}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function summarizeTestConnectResult(_0x540398){const _0x325e37=a118_0x21f1;if(_0x540398===!![]||_0x540398===![])return{'success':_0x540398};if(_0x540398===null||_0x540398===undefined)return{'type':typeof _0x540398};if(typeof _0x540398!=='object')return{'type':typeof _0x540398};const _0x2ad04b=_0x540398,_0x1ee747=[_0x325e37(0x9d),_0x325e37(0x9e),'code','error',_0x325e37(0x95),_0x325e37(0x92)],_0x17ab4e={};for(const _0x59a428 of _0x1ee747){if(_0x59a428 in _0x2ad04b)_0x17ab4e[_0x59a428]=_0x2ad04b[_0x59a428];}return Object['keys'](_0x17ab4e)[_0x325e37(0x96)]===0x0&&(_0x17ab4e['keys']=Object['keys'](_0x2ad04b)[_0x325e37(0xa4)](0x0,0x14)),_0x17ab4e;}function a118_0x21f1(_0x102a39,_0x57a58f){_0x102a39=_0x102a39-0x8e;const _0x211801=a118_0x2118();let _0x21f1c8=_0x211801[_0x102a39];return _0x21f1c8;}function a118_0x2118(){const _0x80294d=['slice','10YiLdRD','object','3470299uIEiVF','Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)','Connection\x20check\x20finished\x20for\x20db\x20link\x20','data','\x20(see\x20data.result)','11193327fNcrQn','msg','length','388492nKfJEx','436MFFqoE','875929OfYTCT','num','Connection\x20OK\x20for\x20db\x20link\x20','9xzLyMq','success','message','6911536BTBTbX','read','9120CmfiAp','test','671262xfmhEL'];a118_0x2118=function(){return _0x80294d;};return a118_0x2118();}export const dbTest={'service':'db','command':a118_0x15bff6(0xa2),'description':a118_0x15bff6(0x90),'risk':a118_0x15bff6(0xa0),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x2d0411){const _0x59fe89=a118_0x15bff6,_0x1458b8=_0x2d0411[_0x59fe89(0x9a)]('id'),_0x518a3c=await testDbLinkConnect(_0x1458b8),_0x386094=_0x518a3c===!![]||typeof _0x518a3c===_0x59fe89(0x8e)&&_0x518a3c!==null&&_0x518a3c[_0x59fe89(0x9d)]===!![],_0x25554a=summarizeTestConnectResult(_0x518a3c);return{'ok':!![],'data':{'id':_0x1458b8,'connected':Boolean(_0x386094),'result':_0x25554a},'message':_0x386094?_0x59fe89(0x9b)+_0x1458b8:_0x59fe89(0x91)+_0x1458b8+_0x59fe89(0x93)};}};
1
+ const a118_0x5e94de=a118_0x48ca;(function(_0x49521e,_0x3c3d87){const _0x150e1d=a118_0x48ca,_0x339d31=_0x49521e();while(!![]){try{const _0x2d22d6=parseInt(_0x150e1d(0x13f))/0x1+parseInt(_0x150e1d(0x137))/0x2+-parseInt(_0x150e1d(0x13d))/0x3+-parseInt(_0x150e1d(0x140))/0x4+-parseInt(_0x150e1d(0x133))/0x5+-parseInt(_0x150e1d(0x12f))/0x6+-parseInt(_0x150e1d(0x13a))/0x7*(-parseInt(_0x150e1d(0x13c))/0x8);if(_0x2d22d6===_0x3c3d87)break;else _0x339d31['push'](_0x339d31['shift']());}catch(_0x5300d3){_0x339d31['push'](_0x339d31['shift']());}}}(a118_0x3c27,0x33c23));import{testDbLinkConnect}from'../../core/api-client.js';function a118_0x48ca(_0x4af486,_0x438a55){_0x4af486=_0x4af486-0x12d;const _0x3c2796=a118_0x3c27();let _0x48ca01=_0x3c2796[_0x4af486];return _0x48ca01;}import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a118_0x3c27(){const _0x3a00a1=['success','keys','1179600agZQPg','num','Connection\x20OK\x20for\x20db\x20link\x20','Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)','93088myvlNA','length','\x20(see\x20data.result)','798gaHFmS','msg','48104snRMHA','430572qAhNti','data','173179fcccbc','1181344NWKbtC','test','object','Connection\x20check\x20finished\x20for\x20db\x20link\x20','110532JfhhFI','read'];a118_0x3c27=function(){return _0x3a00a1;};return a118_0x3c27();}function summarizeTestConnectResult(_0x175ef3){const _0x3d0374=a118_0x48ca;if(_0x175ef3===!![]||_0x175ef3===![])return{'success':_0x175ef3};if(_0x175ef3===null||_0x175ef3===undefined)return{'type':typeof _0x175ef3};if(typeof _0x175ef3!==_0x3d0374(0x12d))return{'type':typeof _0x175ef3};const _0x3ad9dc=_0x175ef3,_0x346517=[_0x3d0374(0x131),'message','code','error',_0x3d0374(0x13b),_0x3d0374(0x13e)],_0x344d2b={};for(const _0x397cef of _0x346517){if(_0x397cef in _0x3ad9dc)_0x344d2b[_0x397cef]=_0x3ad9dc[_0x397cef];}return Object[_0x3d0374(0x132)](_0x344d2b)[_0x3d0374(0x138)]===0x0&&(_0x344d2b[_0x3d0374(0x132)]=Object['keys'](_0x3ad9dc)['slice'](0x0,0x14)),_0x344d2b;}export const dbTest={'service':'db','command':a118_0x5e94de(0x141),'description':a118_0x5e94de(0x136),'risk':a118_0x5e94de(0x130),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x6eb2da){const _0x12b5eb=a118_0x5e94de,_0x5ec0e9=_0x6eb2da[_0x12b5eb(0x134)]('id'),_0x2af250=await testDbLinkConnect(_0x5ec0e9),_0x34bcc4=_0x2af250===!![]||typeof _0x2af250===_0x12b5eb(0x12d)&&_0x2af250!==null&&_0x2af250[_0x12b5eb(0x131)]===!![],_0x357c8b=summarizeTestConnectResult(_0x2af250);return{'ok':!![],'data':{'id':_0x5ec0e9,'connected':Boolean(_0x34bcc4),'result':_0x357c8b},'message':_0x34bcc4?_0x12b5eb(0x135)+_0x5ec0e9:_0x12b5eb(0x12e)+_0x5ec0e9+_0x12b5eb(0x139)};}};
@@ -1 +1 @@
1
- function a119_0x521f(){const _0x4720dc=['New\x20database\x20name','New\x20username','9457657FDPRDd','Current\x20or\x20replacement\x20password.\x20Required\x20when\x20the\x20stored\x20password\x20is\x20masked','dbdesc','validation','The\x20server\x20returned\x20a\x20masked\x20database\x20password.\x20Pass\x20the\x20current\x20or\x20replacement\x20password\x20explicitly\x20with\x20--password\x20to\x20update\x20this\x20connection\x20safely.','/smartapi/dblink/update','198brpdxW','dbname','has','skip-connection-test','267584CWJkEb','username','Updated\x20db\x20link\x20','password','--password\x20must\x20contain\x20the\x20real\x20database\x20password,\x20not\x20a\x20masked\x20value.','36OJWpXA','dbparam','615110IvOpwO','******','New\x20host:port','[redacted]','write','update','string','80UkJvRw','265oeejEq','num','16708UiGFPm','dburl','113111CwEhpd','1182TAZcbm','dbDesc','88151BqYTGB','Update\x20a\x20database\x20connection\x20by\x20merging\x20supplied\x20fields\x20into\x20the\x20current\x20server\x20record.\x20A\x20masked\x20server\x20password\x20requires\x20explicit\x20--password','New\x20connection\x20parameter\x20string','str','New\x20description','bool'];a119_0x521f=function(){return _0x4720dc;};return a119_0x521f();}const a119_0x4acfed=a119_0xea3a;function a119_0xea3a(_0x1742a8,_0x22b168){_0x1742a8=_0x1742a8-0x12c;const _0x521f9e=a119_0x521f();let _0xea3ad0=_0x521f9e[_0x1742a8];return _0xea3ad0;}(function(_0x4f4c7d,_0x2c3ed6){const _0x49bdf1=a119_0xea3a,_0x48da8a=_0x4f4c7d();while(!![]){try{const _0x3b1733=-parseInt(_0x49bdf1(0x12f))/0x1+-parseInt(_0x49bdf1(0x144))/0x2+-parseInt(_0x49bdf1(0x140))/0x3*(parseInt(_0x49bdf1(0x12d))/0x4)+parseInt(_0x49bdf1(0x153))/0x5*(parseInt(_0x49bdf1(0x130))/0x6)+parseInt(_0x49bdf1(0x132))/0x7*(parseInt(_0x49bdf1(0x152))/0x8)+-parseInt(_0x49bdf1(0x149))/0x9*(parseInt(_0x49bdf1(0x14b))/0xa)+parseInt(_0x49bdf1(0x13a))/0xb;if(_0x3b1733===_0x2c3ed6)break;else _0x48da8a['push'](_0x48da8a['shift']());}catch(_0x110fab){_0x48da8a['push'](_0x48da8a['shift']());}}}(a119_0x521f,0x378c9));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_0x4acfed(0x14c),a119_0x4acfed(0x14e)]);function mergeDbLinkUpdate(_0x4b8ada,_0x4e793c){const _0x474630=a119_0x4acfed,_0x350318={..._0x4b8ada},_0x1e3a22=_0x4e793c['str'](_0x474630(0x147));if(_0x1e3a22&&MASKED_PASSWORD_VALUES[_0x474630(0x142)](_0x1e3a22))throw CliErrors[_0x474630(0x13d)](_0x474630(0x148));if(!_0x1e3a22&&MASKED_PASSWORD_VALUES['has'](String(_0x4b8ada['password']??'')))throw CliErrors[_0x474630(0x13d)](_0x474630(0x13e));const _0x22c322=_0x4e793c[_0x474630(0x135)](_0x474630(0x141));if(_0x22c322)_0x350318['dbName']=_0x22c322;const _0x907d5c=_0x4e793c['str'](_0x474630(0x12e));if(_0x907d5c)_0x350318['dbUrl']=_0x907d5c['trim']();const _0x1a81ff=_0x4e793c[_0x474630(0x135)](_0x474630(0x145));if(_0x1a81ff)_0x350318['username']=_0x1a81ff;if(_0x1e3a22)_0x350318[_0x474630(0x147)]=_0x1e3a22;const _0x3ecc5d=_0x4e793c[_0x474630(0x135)](_0x474630(0x14a));if(_0x3ecc5d)_0x350318['dbParam']=_0x3ecc5d;const _0xfca57=_0x4e793c[_0x474630(0x135)]('dbdesc');if(_0xfca57)_0x350318[_0x474630(0x131)]=_0xfca57;return _0x350318;}export const dbUpdate={'service':'db','command':a119_0x4acfed(0x150),'description':a119_0x4acfed(0x133),'risk':a119_0x4acfed(0x14f),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a119_0x4acfed(0x141),'type':'string','description':a119_0x4acfed(0x138)},{'name':'dburl','type':a119_0x4acfed(0x151),'description':a119_0x4acfed(0x14d)},{'name':a119_0x4acfed(0x145),'type':a119_0x4acfed(0x151),'description':a119_0x4acfed(0x139)},{'name':a119_0x4acfed(0x147),'type':'string','description':a119_0x4acfed(0x13b)},{'name':a119_0x4acfed(0x14a),'type':a119_0x4acfed(0x151),'description':a119_0x4acfed(0x134)},{'name':a119_0x4acfed(0x13c),'type':'string','description':a119_0x4acfed(0x136)},SKIP_CONNECTION_TEST_FLAG],async 'validate'(_0x3be04a){const _0xf3cf9=a119_0x4acfed,_0x232a31=_0x3be04a[_0xf3cf9(0x135)](_0xf3cf9(0x12e));if(_0x232a31&&!validateDbUrl(_0x232a31['trim']()))throw CliErrors[_0xf3cf9(0x13d)]('Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22'+_0x232a31+'\x22');},async 'dryRun'(_0x199453){const _0x1bd5de=a119_0x4acfed,_0x37a9b0=_0x199453[_0x1bd5de(0x12c)]('id'),_0x577d00=await getDbLinkInfo(_0x37a9b0),_0x30e894=mergeDbLinkUpdate(_0x577d00,_0x199453),_0x41cf1d=sanitizeDbLinkForOutput(_0x30e894);return{'method':'POST','url':_0x1bd5de(0x13f),'body':_0x41cf1d,'description':'Preview\x20the\x20merged\x20database\x20connection\x20update;\x20password\x20redacted','connectionPreflight':{'enabled':!_0x199453[_0x1bd5de(0x137)]('skip-connection-test'),'executed':![]}};},async 'execute'(_0x38ec7e){const _0x4d9932=a119_0x4acfed,_0x167ecc=_0x38ec7e['num']('id'),_0x3e9118=await getDbLinkInfo(_0x167ecc),_0x2b2413=mergeDbLinkUpdate(_0x3e9118,_0x38ec7e);!_0x38ec7e['bool'](_0x4d9932(0x143))&&await assertDbLinkConnectionPreflight(_0x2b2413);const {id:_0x4e544f,entity:_0x41b47f}=normalizeEntityWithIdResponse(await updateDbLink(_0x2b2413));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x41b47f),'message':_0x4d9932(0x146)+(_0x4e544f??_0x167ecc)};}};
1
+ const a119_0x2e00cc=a119_0x57a1;function a119_0xcc48(){const _0x1af724=['5PGjJpI','POST','69654JjxOET','dbName','dburl','password','Preview\x20the\x20merged\x20database\x20connection\x20update;\x20password\x20redacted','dbparam','New\x20username','315606pNHPkz','******','1451928UuiDSe','has','trim','bool','20053pMWWEg','Update\x20a\x20database\x20connection\x20by\x20merging\x20supplied\x20fields\x20into\x20the\x20current\x20server\x20record.\x20A\x20masked\x20server\x20password\x20requires\x20explicit\x20--password','New\x20connection\x20parameter\x20string','75246iusmpM','skip-connection-test','dbDesc','--password\x20must\x20contain\x20the\x20real\x20database\x20password,\x20not\x20a\x20masked\x20value.','dbdesc','610LFtLut','122269CgOKcH','dbParam','str','New\x20host:port','9WTWNmN','227132ZOJzqC','Updated\x20db\x20link\x20','Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22','1MPtjJw','[redacted]','write','Current\x20or\x20replacement\x20password.\x20Required\x20when\x20the\x20stored\x20password\x20is\x20masked','The\x20server\x20returned\x20a\x20masked\x20database\x20password.\x20Pass\x20the\x20current\x20or\x20replacement\x20password\x20explicitly\x20with\x20--password\x20to\x20update\x20this\x20connection\x20safely.','New\x20database\x20name','dbname','username','validation','num','string'];a119_0xcc48=function(){return _0x1af724;};return a119_0xcc48();}(function(_0x353130,_0x34f22){const _0x149771=a119_0x57a1,_0x5d4f0f=_0x353130();while(!![]){try{const _0x52e36e=-parseInt(_0x149771(0x88))/0x1*(-parseInt(_0x149771(0x7a))/0x2)+parseInt(_0x149771(0x95))/0x3+parseInt(_0x149771(0x85))/0x4*(parseInt(_0x149771(0x93))/0x5)+-parseInt(_0x149771(0x71))/0x6+-parseInt(_0x149771(0x80))/0x7+-parseInt(_0x149771(0x73))/0x8*(-parseInt(_0x149771(0x84))/0x9)+parseInt(_0x149771(0x7f))/0xa*(-parseInt(_0x149771(0x77))/0xb);if(_0x52e36e===_0x34f22)break;else _0x5d4f0f['push'](_0x5d4f0f['shift']());}catch(_0x1d86c2){_0x5d4f0f['push'](_0x5d4f0f['shift']());}}}(a119_0xcc48,0x1cc54));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_0x2e00cc(0x72),a119_0x2e00cc(0x89)]);function a119_0x57a1(_0x72b0da,_0x30d4ff){_0x72b0da=_0x72b0da-0x6c;const _0xcc4837=a119_0xcc48();let _0x57a1b0=_0xcc4837[_0x72b0da];return _0x57a1b0;}function mergeDbLinkUpdate(_0x872f20,_0x387b4c){const _0x126e6e=a119_0x2e00cc,_0x81eb6c={..._0x872f20},_0x44b0df=_0x387b4c[_0x126e6e(0x82)](_0x126e6e(0x6d));if(_0x44b0df&&MASKED_PASSWORD_VALUES[_0x126e6e(0x74)](_0x44b0df))throw CliErrors[_0x126e6e(0x90)](_0x126e6e(0x7d));if(!_0x44b0df&&MASKED_PASSWORD_VALUES[_0x126e6e(0x74)](String(_0x872f20[_0x126e6e(0x6d)]??'')))throw CliErrors[_0x126e6e(0x90)](_0x126e6e(0x8c));const _0x555552=_0x387b4c[_0x126e6e(0x82)]('dbname');if(_0x555552)_0x81eb6c[_0x126e6e(0x96)]=_0x555552;const _0x6a942d=_0x387b4c[_0x126e6e(0x82)]('dburl');if(_0x6a942d)_0x81eb6c['dbUrl']=_0x6a942d[_0x126e6e(0x75)]();const _0x4b5fe4=_0x387b4c[_0x126e6e(0x82)](_0x126e6e(0x8f));if(_0x4b5fe4)_0x81eb6c[_0x126e6e(0x8f)]=_0x4b5fe4;if(_0x44b0df)_0x81eb6c['password']=_0x44b0df;const _0x16c2a1=_0x387b4c[_0x126e6e(0x82)]('dbparam');if(_0x16c2a1)_0x81eb6c[_0x126e6e(0x81)]=_0x16c2a1;const _0x4f96dc=_0x387b4c['str'](_0x126e6e(0x7e));if(_0x4f96dc)_0x81eb6c[_0x126e6e(0x7c)]=_0x4f96dc;return _0x81eb6c;}export const dbUpdate={'service':'db','command':'update','description':a119_0x2e00cc(0x78),'risk':a119_0x2e00cc(0x8a),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a119_0x2e00cc(0x8e),'type':a119_0x2e00cc(0x92),'description':a119_0x2e00cc(0x8d)},{'name':a119_0x2e00cc(0x6c),'type':a119_0x2e00cc(0x92),'description':a119_0x2e00cc(0x83)},{'name':a119_0x2e00cc(0x8f),'type':a119_0x2e00cc(0x92),'description':a119_0x2e00cc(0x70)},{'name':a119_0x2e00cc(0x6d),'type':'string','description':a119_0x2e00cc(0x8b)},{'name':a119_0x2e00cc(0x6f),'type':a119_0x2e00cc(0x92),'description':a119_0x2e00cc(0x79)},{'name':a119_0x2e00cc(0x7e),'type':a119_0x2e00cc(0x92),'description':'New\x20description'},SKIP_CONNECTION_TEST_FLAG],async 'validate'(_0x345f9e){const _0x29b47c=a119_0x2e00cc,_0x2b65cf=_0x345f9e['str'](_0x29b47c(0x6c));if(_0x2b65cf&&!validateDbUrl(_0x2b65cf[_0x29b47c(0x75)]()))throw CliErrors[_0x29b47c(0x90)](_0x29b47c(0x87)+_0x2b65cf+'\x22');},async 'dryRun'(_0x2ad161){const _0x497fec=a119_0x2e00cc,_0x13a96c=_0x2ad161[_0x497fec(0x91)]('id'),_0x4cf5f5=await getDbLinkInfo(_0x13a96c),_0x53ed04=mergeDbLinkUpdate(_0x4cf5f5,_0x2ad161),_0x3d555c=sanitizeDbLinkForOutput(_0x53ed04);return{'method':_0x497fec(0x94),'url':'/smartapi/dblink/update','body':_0x3d555c,'description':_0x497fec(0x6e),'connectionPreflight':{'enabled':!_0x2ad161[_0x497fec(0x76)]('skip-connection-test'),'executed':![]}};},async 'execute'(_0x4d0439){const _0x404a69=a119_0x2e00cc,_0x567747=_0x4d0439[_0x404a69(0x91)]('id'),_0x44ee7a=await getDbLinkInfo(_0x567747),_0x140d59=mergeDbLinkUpdate(_0x44ee7a,_0x4d0439);!_0x4d0439[_0x404a69(0x76)](_0x404a69(0x7b))&&await assertDbLinkConnectionPreflight(_0x140d59);const {id:_0x347f8e,entity:_0x5136a0}=normalizeEntityWithIdResponse(await updateDbLink(_0x140d59));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x5136a0),'message':_0x404a69(0x86)+(_0x347f8e??_0x567747)};}};
@@ -1 +1 @@
1
- function a120_0x1804(_0x428419,_0x4bc2cc){_0x428419=_0x428419-0xc7;const _0x46a21d=a120_0x46a2();let _0x1804ab=_0x46a21d[_0x428419];return _0x1804ab;}(function(_0x3e5111,_0x385660){const _0x387e2f=a120_0x1804,_0x579c17=_0x3e5111();while(!![]){try{const _0x221ca3=parseInt(_0x387e2f(0xd2))/0x1*(-parseInt(_0x387e2f(0xc7))/0x2)+parseInt(_0x387e2f(0xcb))/0x3*(-parseInt(_0x387e2f(0xca))/0x4)+-parseInt(_0x387e2f(0xd1))/0x5*(-parseInt(_0x387e2f(0xce))/0x6)+parseInt(_0x387e2f(0xcc))/0x7+-parseInt(_0x387e2f(0xcd))/0x8*(parseInt(_0x387e2f(0xd0))/0x9)+-parseInt(_0x387e2f(0xd3))/0xa*(-parseInt(_0x387e2f(0xc8))/0xb)+parseInt(_0x387e2f(0xcf))/0xc*(parseInt(_0x387e2f(0xc9))/0xd);if(_0x221ca3===_0x385660)break;else _0x579c17['push'](_0x579c17['shift']());}catch(_0x251232){_0x579c17['push'](_0x579c17['shift']());}}}(a120_0x46a2,0x87e81));import{deploymentSyncAll}from'../../commands/deployment/sync-all.js';import{deploymentSyncStatus}from'../../commands/deployment/sync-status.js';function a120_0x46a2(){const _0x4a4eaf=['12MIbKDr','4811742hKfNQV','1830455ABimnB','2RgtRlt','959190iwfFOp','159372yIVwIg','44HJeHgk','13044681dEBerx','6636luXphS','1113iIPaoI','790776PENjFA','8ykkjaQ','6UhZSKU'];a120_0x46a2=function(){return _0x4a4eaf;};return a120_0x46a2();}import{deploymentSyncJobs}from'../../commands/deployment/sync-jobs.js';export const deploymentDefinitions=[deploymentSyncAll,deploymentSyncStatus,deploymentSyncJobs];
1
+ (function(_0x3ffa78,_0x1ef8cc){const _0x5af945=a120_0xc303,_0x2a2a14=_0x3ffa78();while(!![]){try{const _0x25eef4=-parseInt(_0x5af945(0x1c2))/0x1+-parseInt(_0x5af945(0x1bc))/0x2*(parseInt(_0x5af945(0x1c3))/0x3)+-parseInt(_0x5af945(0x1be))/0x4*(-parseInt(_0x5af945(0x1bf))/0x5)+-parseInt(_0x5af945(0x1ba))/0x6*(-parseInt(_0x5af945(0x1c0))/0x7)+parseInt(_0x5af945(0x1bd))/0x8+-parseInt(_0x5af945(0x1c1))/0x9+parseInt(_0x5af945(0x1bb))/0xa;if(_0x25eef4===_0x1ef8cc)break;else _0x2a2a14['push'](_0x2a2a14['shift']());}catch(_0x61cc28){_0x2a2a14['push'](_0x2a2a14['shift']());}}}(a120_0x4931,0x5d165));import{deploymentSyncAll}from'../../commands/deployment/sync-all.js';function a120_0xc303(_0x51e417,_0x550b9f){_0x51e417=_0x51e417-0x1ba;const _0x4931a8=a120_0x4931();let _0xc303c0=_0x4931a8[_0x51e417];return _0xc303c0;}import{deploymentSyncStatus}from'../../commands/deployment/sync-status.js';import{deploymentSyncJobs}from'../../commands/deployment/sync-jobs.js';function a120_0x4931(){const _0x979d32=['13394540NokFkh','10kPCIdC','405144ldymSA','4OVIxAZ','1343845uNxurU','16996aBUbHg','5611509oGlJkH','265733MrQqAr','423849ydMUhB','786IbSLhZ'];a120_0x4931=function(){return _0x979d32;};return a120_0x4931();}export const deploymentDefinitions=[deploymentSyncAll,deploymentSyncStatus,deploymentSyncJobs];
@@ -1 +1 @@
1
- function a121_0x47f4(_0x9b11a8,_0x3a79bb){_0x9b11a8=_0x9b11a8-0xa4;const _0x5cbd68=a121_0x5cbd();let _0x47f424=_0x5cbd68[_0x9b11a8];return _0x47f424;}const a121_0x5c3712=a121_0x47f4;(function(_0x7655fa,_0x9dd4f5){const _0x36c60a=a121_0x47f4,_0x5b9750=_0x7655fa();while(!![]){try{const _0x2156f1=-parseInt(_0x36c60a(0xb4))/0x1+-parseInt(_0x36c60a(0xb6))/0x2*(-parseInt(_0x36c60a(0xb2))/0x3)+-parseInt(_0x36c60a(0xc4))/0x4*(-parseInt(_0x36c60a(0xb1))/0x5)+parseInt(_0x36c60a(0xbb))/0x6+-parseInt(_0x36c60a(0xc9))/0x7+-parseInt(_0x36c60a(0xab))/0x8*(-parseInt(_0x36c60a(0xb0))/0x9)+parseInt(_0x36c60a(0xc6))/0xa*(-parseInt(_0x36c60a(0xc3))/0xb);if(_0x2156f1===_0x9dd4f5)break;else _0x5b9750['push'](_0x5b9750['shift']());}catch(_0xa73a02){_0x5b9750['push'](_0x5b9750['shift']());}}}(a121_0x5cbd,0xb9f97));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{asDryRunResult}from'../../commands/common/dry-run.js';import{isPlatformTransportFailure,submitDeploymentMetadataSyncAll}from'../../core/api-client.js';function a121_0x5cbd(){const _0x1a8d54=['sync-all','POST','data','Submit\x20an\x20administrative\x20metadata\x20backfill\x20or\x20recovery\x20synchronization.','defineProperty','not_submitted','No\x20deployment\x20synchronization\x20was\x20needed\x20for\x20this\x20app.','10378951CUWEwc','192yIZSAW','--confirm\x20is\x20required\x20to\x20synchronize\x20all\x20application\x20metadata.','10zbrsmr','not_needed','validation','3709811IhhqTu','status','List\x20recent\x20deployment\x20sync\x20jobs\x20before\x20deciding\x20whether\x20to\x20submit\x20again.','deployment','Confirm\x20the\x20administrative\x20backfill\x20or\x20recovery\x20synchronization','application_deployment_sync','write','Deployment\x20sync\x20submission\x20response\x20was\x20unavailable;\x20job\x20creation\x20is\x20unknown.','deployment_sync_submit_outcome_unknown','16KiTtSf','/smartapi/data-sync/submit','submitted','Would\x20submit\x20an\x20administrative\x20deployment\x20metadata\x20backfill\x20or\x20recovery\x20job.','Submitted\x20deployment\x20synchronization\x20job\x20','3916980RwtQZY','131360AzfUGO','13458pBowPj','outcome','33417QSibak','job','50uwUqBx','all_server_supported_metadata','appCode','boolean','Backfill\x20or\x20recover\x20all\x20server-supported\x20application\x20metadata','150216RUsCvR'];a121_0x5cbd=function(){return _0x1a8d54;};return a121_0x5cbd();}import{CliError,CliErrors}from'../../errors.js';const SUBMIT_PATH=a121_0x5c3712(0xac),CONFIRM_FLAG={'name':'confirm','type':a121_0x5c3712(0xb9),'description':a121_0x5c3712(0xa6)};export const deploymentSyncAll={'service':a121_0x5c3712(0xa5),'command':a121_0x5c3712(0xbc),'description':a121_0x5c3712(0xba),'risk':a121_0x5c3712(0xa8),'strictFlags':!![],'structuredErrors':!![],'confirmationDescription':a121_0x5c3712(0xbf),'flags':[CONFIRM_FLAG,APPCODE_FLAG_OPTIONAL],async 'dryRun'(_0x1523c1){const _0x1b86dc=a121_0x5c3712;return asDryRunResult(buildPreview(_0x1523c1[_0x1b86dc(0xb8)]),{'method':_0x1b86dc(0xbd),'url':SUBMIT_PATH,'description':_0x1b86dc(0xae)});},async 'execute'(_0x25fca3){const _0x15f1e6=a121_0x5c3712;if(!_0x25fca3['bool']('confirm'))throw CliErrors[_0x15f1e6(0xc8)](_0x15f1e6(0xc5),'Run\x20with\x20--dry-run\x20first,\x20then\x20add\x20--confirm.');try{const _0x28e607=await submitDeploymentMetadataSyncAll({'appCode':_0x25fca3[_0x15f1e6(0xb8)]});if(_0x28e607[_0x15f1e6(0xb3)]===_0x15f1e6(0xc7))return{'ok':!![],'data':{'operation':_0x15f1e6(0xa7),'appCode':_0x25fca3['appCode'],'submitted':![],'outcome':_0x15f1e6(0xc7)},'message':_0x15f1e6(0xc2)};return{'ok':!![],'data':{'operation':_0x15f1e6(0xa7),'appCode':_0x25fca3[_0x15f1e6(0xb8)],'submitted':!![],'outcome':_0x15f1e6(0xad),'jobId':_0x28e607['job']['jobId'],'status':_0x28e607['job'][_0x15f1e6(0xca)]},'message':_0x15f1e6(0xaf)+_0x28e607[_0x15f1e6(0xb5)]['jobId']+'.'};}catch(_0xcb5d08){if(!isPlatformTransportFailure(_0xcb5d08))throw _0xcb5d08;const _0x2e9c14=new CliError(_0x15f1e6(0xaa),0x2,_0x15f1e6(0xa9),_0x15f1e6(0xa4));Object[_0x15f1e6(0xc0)](_0x2e9c14,_0x15f1e6(0xbe),{'enumerable':!![],'value':{'operation':'application_deployment_sync','appCode':_0x25fca3[_0x15f1e6(0xb8)],'submitted':null,'outcome':'unknown'}});throw _0x2e9c14;}}};function buildPreview(_0x1af506){const _0xeccf24=a121_0x5c3712;return{'operation':'application_deployment_sync','selector':{'appCode':_0x1af506,'scope':_0xeccf24(0xb7)},'before':null,'after':null,'dryRun':!![],'backend':{'submitted':![],'outcome':_0xeccf24(0xc1)},'warnings':[]};}
1
+ const a121_0x4fdd1b=a121_0x52f5;(function(_0x38049f,_0x55577f){const _0x561d13=a121_0x52f5,_0x3867aa=_0x38049f();while(!![]){try{const _0x207aad=-parseInt(_0x561d13(0x1c8))/0x1+-parseInt(_0x561d13(0x1b6))/0x2+-parseInt(_0x561d13(0x1c7))/0x3+-parseInt(_0x561d13(0x1ac))/0x4*(-parseInt(_0x561d13(0x1b1))/0x5)+parseInt(_0x561d13(0x1bd))/0x6+parseInt(_0x561d13(0x1ba))/0x7*(parseInt(_0x561d13(0x1c5))/0x8)+parseInt(_0x561d13(0x1c0))/0x9;if(_0x207aad===_0x55577f)break;else _0x3867aa['push'](_0x3867aa['shift']());}catch(_0x380127){_0x3867aa['push'](_0x3867aa['shift']());}}}(a121_0xa95e,0x706f7));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a121_0xa95e(){const _0x21e6b1=['3017480IBGiNd','Would\x20submit\x20an\x20administrative\x20deployment\x20metadata\x20backfill\x20or\x20recovery\x20job.','application_deployment_sync','all_server_supported_metadata','appCode','1542656zWvAol','status','deployment_sync_submit_outcome_unknown','POST','1277759ansLUl','List\x20recent\x20deployment\x20sync\x20jobs\x20before\x20deciding\x20whether\x20to\x20submit\x20again.','jobId','3362220heawBS','bool','Submit\x20an\x20administrative\x20metadata\x20backfill\x20or\x20recovery\x20synchronization.','3299904HrvRhq','deployment','/smartapi/data-sync/submit','Backfill\x20or\x20recover\x20all\x20server-supported\x20application\x20metadata','--confirm\x20is\x20required\x20to\x20synchronize\x20all\x20application\x20metadata.','40ZzTxNL','job','1812192csGUxW','607280uwaiPr','unknown','Run\x20with\x20--dry-run\x20first,\x20then\x20add\x20--confirm.','4uogXFP','Confirm\x20the\x20administrative\x20backfill\x20or\x20recovery\x20synchronization','confirm','submitted','defineProperty'];a121_0xa95e=function(){return _0x21e6b1;};return a121_0xa95e();}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_0x4fdd1b(0x1c2),CONFIRM_FLAG={'name':a121_0x4fdd1b(0x1ae),'type':'boolean','description':a121_0x4fdd1b(0x1ad)};export const deploymentSyncAll={'service':a121_0x4fdd1b(0x1c1),'command':'sync-all','description':a121_0x4fdd1b(0x1c3),'risk':'write','strictFlags':!![],'structuredErrors':!![],'confirmationDescription':a121_0x4fdd1b(0x1bf),'flags':[CONFIRM_FLAG,APPCODE_FLAG_OPTIONAL],async 'dryRun'(_0x122620){const _0x170e5b=a121_0x4fdd1b;return asDryRunResult(buildPreview(_0x122620[_0x170e5b(0x1b5)]),{'method':_0x170e5b(0x1b9),'url':SUBMIT_PATH,'description':_0x170e5b(0x1b2)});},async 'execute'(_0x5654f5){const _0x3894e8=a121_0x4fdd1b;if(!_0x5654f5[_0x3894e8(0x1be)]('confirm'))throw CliErrors['validation'](_0x3894e8(0x1c4),_0x3894e8(0x1ca));try{const _0x5bd75e=await submitDeploymentMetadataSyncAll({'appCode':_0x5654f5[_0x3894e8(0x1b5)]});if(_0x5bd75e['outcome']==='not_needed')return{'ok':!![],'data':{'operation':'application_deployment_sync','appCode':_0x5654f5[_0x3894e8(0x1b5)],'submitted':![],'outcome':'not_needed'},'message':'No\x20deployment\x20synchronization\x20was\x20needed\x20for\x20this\x20app.'};return{'ok':!![],'data':{'operation':_0x3894e8(0x1b3),'appCode':_0x5654f5[_0x3894e8(0x1b5)],'submitted':!![],'outcome':_0x3894e8(0x1af),'jobId':_0x5bd75e[_0x3894e8(0x1c6)][_0x3894e8(0x1bc)],'status':_0x5bd75e[_0x3894e8(0x1c6)][_0x3894e8(0x1b7)]},'message':'Submitted\x20deployment\x20synchronization\x20job\x20'+_0x5bd75e[_0x3894e8(0x1c6)][_0x3894e8(0x1bc)]+'.'};}catch(_0x8bd5a9){if(!isPlatformTransportFailure(_0x8bd5a9))throw _0x8bd5a9;const _0x195a3b=new CliError(_0x3894e8(0x1b8),0x2,'Deployment\x20sync\x20submission\x20response\x20was\x20unavailable;\x20job\x20creation\x20is\x20unknown.',_0x3894e8(0x1bb));Object[_0x3894e8(0x1b0)](_0x195a3b,'data',{'enumerable':!![],'value':{'operation':_0x3894e8(0x1b3),'appCode':_0x5654f5[_0x3894e8(0x1b5)],'submitted':null,'outcome':_0x3894e8(0x1c9)}});throw _0x195a3b;}}};function a121_0x52f5(_0x3dfb2d,_0x2d6ddb){_0x3dfb2d=_0x3dfb2d-0x1ac;const _0xa95ef=a121_0xa95e();let _0x52f518=_0xa95ef[_0x3dfb2d];return _0x52f518;}function buildPreview(_0x200bbd){const _0x28aa42=a121_0x4fdd1b;return{'operation':'application_deployment_sync','selector':{'appCode':_0x200bbd,'scope':_0x28aa42(0x1b4)},'before':null,'after':null,'dryRun':!![],'backend':{'submitted':![],'outcome':'not_submitted'},'warnings':[]};}
@@ -1 +1 @@
1
- const a122_0x46698=a122_0x5ea3;function a122_0x5ea3(_0x180972,_0x1d94d3){_0x180972=_0x180972-0x90;const _0x59836b=a122_0x5983();let _0x5ea31c=_0x59836b[_0x180972];return _0x5ea31c;}(function(_0x354bab,_0x4accf1){const _0x26a3a1=a122_0x5ea3,_0x1dd3a1=_0x354bab();while(!![]){try{const _0x277634=-parseInt(_0x26a3a1(0x90))/0x1*(parseInt(_0x26a3a1(0xad))/0x2)+-parseInt(_0x26a3a1(0xa0))/0x3*(-parseInt(_0x26a3a1(0xa5))/0x4)+parseInt(_0x26a3a1(0x9c))/0x5+parseInt(_0x26a3a1(0xa2))/0x6*(-parseInt(_0x26a3a1(0x96))/0x7)+parseInt(_0x26a3a1(0xa4))/0x8*(parseInt(_0x26a3a1(0x99))/0x9)+parseInt(_0x26a3a1(0x98))/0xa+-parseInt(_0x26a3a1(0xae))/0xb;if(_0x277634===_0x4accf1)break;else _0x1dd3a1['push'](_0x1dd3a1['shift']());}catch(_0x150e12){_0x1dd3a1['push'](_0x1dd3a1['shift']());}}}(a122_0x5983,0x80277));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{listDeploymentMetadataSyncJobs}from'../../core/api-client.js';function a122_0x5983(){const _0x638714=['3412850VZZZVq','deployment','length','current-page','9FfLPAM','\x20deployment\x20synchronization\x20job(s).','62724tgQysK','number','16NpkkPd','389716xsqSVh','str','page-size','Page\x20number','Optional\x20server-defined\x20job\x20status\x20filter','List\x20application\x20deployment\x20synchronization\x20jobs','Items\x20per\x20page\x20(maximum\x20100)','isSafeInteger','4nhKRsA','16486459oVBJov','40438FSZrXO','validation','Found\x20','sync-jobs','--current-page\x20must\x20be\x20a\x20positive\x20integer.','status','301zPyBub','items','5796190UIpHRa','4498245DRUwug','num','appCode'];a122_0x5983=function(){return _0x638714;};return a122_0x5983();}import{CliErrors}from'../../errors.js';export const deploymentSyncJobs={'service':a122_0x46698(0x9d),'command':a122_0x46698(0x93),'description':a122_0x46698(0xaa),'risk':'read','strictFlags':!![],'structuredErrors':!![],'flags':[{'name':a122_0x46698(0x9f),'type':a122_0x46698(0xa3),'default':0x1,'description':a122_0x46698(0xa8)},{'name':'page-size','type':a122_0x46698(0xa3),'default':0xa,'description':a122_0x46698(0xab)},{'name':a122_0x46698(0x95),'type':'string','description':a122_0x46698(0xa9)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x2182cf){const _0x30a2b6=a122_0x46698;readPaging(_0x2182cf[_0x30a2b6(0x9a)](_0x30a2b6(0x9f),0x1),_0x2182cf[_0x30a2b6(0x9a)]('page-size',0xa));},async 'execute'(_0x52d32c){const _0x5533a2=a122_0x46698,{currentPage:_0x281066,pageSize:_0x1ec7dd}=readPaging(_0x52d32c[_0x5533a2(0x9a)]('current-page',0x1),_0x52d32c['num'](_0x5533a2(0xa7),0xa)),_0x12d751=_0x52d32c[_0x5533a2(0xa6)]('status')['trim'](),_0x17fcd5=await listDeploymentMetadataSyncJobs({'appCode':_0x52d32c[_0x5533a2(0x9b)],'currentPage':_0x281066,'pageSize':_0x1ec7dd,..._0x12d751?{'status':_0x12d751}:{}});return{'ok':!![],'data':{'appCode':_0x52d32c[_0x5533a2(0x9b)],..._0x17fcd5},'message':_0x5533a2(0x92)+_0x17fcd5[_0x5533a2(0x97)][_0x5533a2(0x9e)]+_0x5533a2(0xa1)};}};function readPaging(_0x2db5fb,_0x2dacc7){const _0x3afbe6=a122_0x46698;if(!Number[_0x3afbe6(0xac)](_0x2db5fb)||_0x2db5fb<0x1)throw CliErrors[_0x3afbe6(0x91)](_0x3afbe6(0x94));if(!Number['isSafeInteger'](_0x2dacc7)||_0x2dacc7<0x1||_0x2dacc7>0x64)throw CliErrors[_0x3afbe6(0x91)]('--page-size\x20must\x20be\x20an\x20integer\x20from\x201\x20to\x20100.');return{'currentPage':_0x2db5fb,'pageSize':_0x2dacc7};}
1
+ const a122_0x4bb7d2=a122_0x4bc2;function a122_0x4bc2(_0x368416,_0x14d9d3){_0x368416=_0x368416-0x9e;const _0x40c2f7=a122_0x40c2();let _0x4bc2f6=_0x40c2f7[_0x368416];return _0x4bc2f6;}(function(_0xf12555,_0x5c19d7){const _0x27dcf5=a122_0x4bc2,_0x50f1c4=_0xf12555();while(!![]){try{const _0x3a12dc=-parseInt(_0x27dcf5(0xad))/0x1*(-parseInt(_0x27dcf5(0xb8))/0x2)+-parseInt(_0x27dcf5(0xb0))/0x3*(-parseInt(_0x27dcf5(0xbb))/0x4)+parseInt(_0x27dcf5(0xab))/0x5*(parseInt(_0x27dcf5(0xa4))/0x6)+parseInt(_0x27dcf5(0xb7))/0x7+parseInt(_0x27dcf5(0xb6))/0x8*(-parseInt(_0x27dcf5(0xb1))/0x9)+-parseInt(_0x27dcf5(0xa3))/0xa*(parseInt(_0x27dcf5(0xa7))/0xb)+-parseInt(_0x27dcf5(0xb2))/0xc*(parseInt(_0x27dcf5(0xa1))/0xd);if(_0x3a12dc===_0x5c19d7)break;else _0x50f1c4['push'](_0x50f1c4['shift']());}catch(_0x4b03d9){_0x50f1c4['push'](_0x50f1c4['shift']());}}}(a122_0x40c2,0xe9e9a));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a122_0x40c2(){const _0x4eb930=['num','43615jGmfvY','appCode','11715490tBtWhZ','12drBLlm','isSafeInteger','deployment','11PWyNDh','--current-page\x20must\x20be\x20a\x20positive\x20integer.','current-page','Found\x20','4168925AfCNmo','validation','1908248ACDsQy','str','sync-jobs','42JLrUuu','270UgciHs','10776sRKdBj','Page\x20number','number','string','309528wMfJHO','9784537jkZFuY','2TrmQkl','page-size','List\x20application\x20deployment\x20synchronization\x20jobs','379876iUqijT','trim','status','Items\x20per\x20page\x20(maximum\x20100)','\x20deployment\x20synchronization\x20job(s).','--page-size\x20must\x20be\x20an\x20integer\x20from\x201\x20to\x20100.'];a122_0x40c2=function(){return _0x4eb930;};return a122_0x40c2();}import{listDeploymentMetadataSyncJobs}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';export const deploymentSyncJobs={'service':a122_0x4bb7d2(0xa6),'command':a122_0x4bb7d2(0xaf),'description':a122_0x4bb7d2(0xba),'risk':'read','strictFlags':!![],'structuredErrors':!![],'flags':[{'name':a122_0x4bb7d2(0xa9),'type':'number','default':0x1,'description':a122_0x4bb7d2(0xb3)},{'name':a122_0x4bb7d2(0xb9),'type':a122_0x4bb7d2(0xb4),'default':0xa,'description':a122_0x4bb7d2(0xbe)},{'name':a122_0x4bb7d2(0xbd),'type':a122_0x4bb7d2(0xb5),'description':'Optional\x20server-defined\x20job\x20status\x20filter'},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x1deb9b){const _0xc34316=a122_0x4bb7d2;readPaging(_0x1deb9b[_0xc34316(0xa0)](_0xc34316(0xa9),0x1),_0x1deb9b[_0xc34316(0xa0)](_0xc34316(0xb9),0xa));},async 'execute'(_0x1fcebe){const _0x3e0a9e=a122_0x4bb7d2,{currentPage:_0x571285,pageSize:_0x1a03bf}=readPaging(_0x1fcebe['num'](_0x3e0a9e(0xa9),0x1),_0x1fcebe[_0x3e0a9e(0xa0)]('page-size',0xa)),_0x1cbb57=_0x1fcebe[_0x3e0a9e(0xae)](_0x3e0a9e(0xbd))[_0x3e0a9e(0xbc)](),_0xeb14ca=await listDeploymentMetadataSyncJobs({'appCode':_0x1fcebe['appCode'],'currentPage':_0x571285,'pageSize':_0x1a03bf,..._0x1cbb57?{'status':_0x1cbb57}:{}});return{'ok':!![],'data':{'appCode':_0x1fcebe[_0x3e0a9e(0xa2)],..._0xeb14ca},'message':_0x3e0a9e(0xaa)+_0xeb14ca['items']['length']+_0x3e0a9e(0x9e)};}};function readPaging(_0x2902bd,_0x1988c2){const _0x4f075e=a122_0x4bb7d2;if(!Number[_0x4f075e(0xa5)](_0x2902bd)||_0x2902bd<0x1)throw CliErrors[_0x4f075e(0xac)](_0x4f075e(0xa8));if(!Number[_0x4f075e(0xa5)](_0x1988c2)||_0x1988c2<0x1||_0x1988c2>0x64)throw CliErrors[_0x4f075e(0xac)](_0x4f075e(0x9f));return{'currentPage':_0x2902bd,'pageSize':_0x1988c2};}
@@ -1 +1 @@
1
- const a123_0x1ea5a3=a123_0x47b9;(function(_0xe25c64,_0x4fd446){const _0x3ca8c9=a123_0x47b9,_0x295b87=_0xe25c64();while(!![]){try{const _0x3ab9b6=parseInt(_0x3ca8c9(0x1d6))/0x1+parseInt(_0x3ca8c9(0x1ce))/0x2*(parseInt(_0x3ca8c9(0x1c5))/0x3)+parseInt(_0x3ca8c9(0x1dd))/0x4*(parseInt(_0x3ca8c9(0x1bf))/0x5)+-parseInt(_0x3ca8c9(0x1bb))/0x6*(parseInt(_0x3ca8c9(0x1d8))/0x7)+parseInt(_0x3ca8c9(0x1bd))/0x8*(-parseInt(_0x3ca8c9(0x1d0))/0x9)+-parseInt(_0x3ca8c9(0x1cb))/0xa*(-parseInt(_0x3ca8c9(0x1d4))/0xb)+-parseInt(_0x3ca8c9(0x1c2))/0xc*(-parseInt(_0x3ca8c9(0x1b5))/0xd);if(_0x3ab9b6===_0x4fd446)break;else _0x295b87['push'](_0x295b87['shift']());}catch(_0x5895a5){_0x295b87['push'](_0x295b87['shift']());}}}(a123_0x5678,0x922ec));import{getDeploymentMetadataSyncStatus}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a123_0x47b9(_0x255824,_0x182c63){_0x255824=_0x255824-0x1b5;const _0x567812=a123_0x5678();let _0x47b94f=_0x567812[_0x255824];return _0x47b94f;}function a123_0x5678(){const _0x340855=['39672AfYEzg','FAILED','\x20is\x20','--job-id\x20must\x20be\x20a\x20positive\x20integer.','Deployment\x20synchronization\x20job\x20','has','80BXmjtl','read','PENDING','6isPgzL','Get\x20application\x20deployment\x20synchronization\x20job\x20status','27OttQGE','deployment','number','job-id','1390642FlQEJy','isSafeInteger','743589lAeqdn','bizType','7011074rFugra','Deployment\x20synchronization\x20job\x20ID','Preserved\x20server-defined\x20status\x20','reduce','RUNNING','9676cKcGRY','13LJxhTw','appCode','filter','status','map','SUCCESS','6FBrBWB','action','2708040AerFMQ','num','865rXyFTD','length','sync-status','4832844XENNEF',';\x20terminal\x20state\x20is\x20unknown\x20to\x20this\x20CLI\x20version.','results'];a123_0x5678=function(){return _0x340855;};return a123_0x5678();}const TERMINAL_STATUSES=new Set([a123_0x1ea5a3(0x1ba),'PARTIAL_SUCCESS',a123_0x1ea5a3(0x1c6)]),ACTIVE_STATUSES=new Set([a123_0x1ea5a3(0x1cd),a123_0x1ea5a3(0x1dc)]);export const deploymentSyncStatus={'service':a123_0x1ea5a3(0x1d1),'command':a123_0x1ea5a3(0x1c1),'description':a123_0x1ea5a3(0x1cf),'risk':a123_0x1ea5a3(0x1cc),'requiresAppCode':!![],'strictFlags':!![],'structuredErrors':!![],'flags':[{'name':a123_0x1ea5a3(0x1d3),'type':a123_0x1ea5a3(0x1d2),'required':!![],'description':a123_0x1ea5a3(0x1d9)}],async 'validate'(_0x258fcc){const _0x2c58cc=a123_0x1ea5a3;readJobId(_0x258fcc[_0x2c58cc(0x1be)]('job-id'));},async 'execute'(_0x2255df){const _0x4c6272=a123_0x1ea5a3,_0x4d29c1=readJobId(_0x2255df['num']('job-id')),_0x7e5ff9=await getDeploymentMetadataSyncStatus({'jobId':_0x4d29c1,'appCode':_0x2255df[_0x4c6272(0x1b6)]}),_0xbc5ceb=TERMINAL_STATUSES[_0x4c6272(0x1ca)](_0x7e5ff9[_0x4c6272(0x1b8)])?!![]:ACTIVE_STATUSES[_0x4c6272(0x1ca)](_0x7e5ff9[_0x4c6272(0x1b8)])?![]:null,_0x5ca037=countBy(_0x7e5ff9[_0x4c6272(0x1c4)][_0x4c6272(0x1b9)](_0x2b8a90=>_0x2b8a90[_0x4c6272(0x1d7)])),_0x16b899=countBy(_0x7e5ff9[_0x4c6272(0x1c4)][_0x4c6272(0x1b9)](_0x2c64d3=>_0x2c64d3[_0x4c6272(0x1bc)])),_0x2434ab=_0xbc5ceb===null?[_0x4c6272(0x1da)+_0x7e5ff9[_0x4c6272(0x1b8)]+_0x4c6272(0x1c3)]:[];return{'ok':!![],'data':{'job':_0x7e5ff9,'isTerminal':_0xbc5ceb,'summary':{'total':_0x7e5ff9[_0x4c6272(0x1c4)][_0x4c6272(0x1c0)],'failed':_0x7e5ff9[_0x4c6272(0x1c4)][_0x4c6272(0x1b7)](_0x1c618c=>_0x1c618c[_0x4c6272(0x1bc)]==='FAILED')[_0x4c6272(0x1c0)],'byBizType':_0x5ca037,'byAction':_0x16b899},'warnings':_0x2434ab},'message':_0x4c6272(0x1c9)+_0x4d29c1+_0x4c6272(0x1c7)+_0x7e5ff9[_0x4c6272(0x1b8)]+'.'};}};function readJobId(_0xbceb68){const _0x190a7b=a123_0x1ea5a3;if(!Number[_0x190a7b(0x1d5)](_0xbceb68)||_0xbceb68<=0x0)throw CliErrors['validation'](_0x190a7b(0x1c8));return _0xbceb68;}function countBy(_0xaaa91b){const _0x2ba1cc=a123_0x1ea5a3;return _0xaaa91b[_0x2ba1cc(0x1db)]((_0x3c6a3e,_0x5b9ffb)=>{return _0x3c6a3e[_0x5b9ffb]=(_0x3c6a3e[_0x5b9ffb]??0x0)+0x1,_0x3c6a3e;},{});}
1
+ const a123_0x40ab11=a123_0x32af;(function(_0x311871,_0x37fb60){const _0x59d0f7=a123_0x32af,_0x49212f=_0x311871();while(!![]){try{const _0x12f38a=-parseInt(_0x59d0f7(0xbe))/0x1*(-parseInt(_0x59d0f7(0xc1))/0x2)+parseInt(_0x59d0f7(0xc9))/0x3*(parseInt(_0x59d0f7(0xd3))/0x4)+-parseInt(_0x59d0f7(0xc3))/0x5+parseInt(_0x59d0f7(0xb9))/0x6+parseInt(_0x59d0f7(0xd0))/0x7*(parseInt(_0x59d0f7(0xb3))/0x8)+-parseInt(_0x59d0f7(0xcf))/0x9*(-parseInt(_0x59d0f7(0xc0))/0xa)+-parseInt(_0x59d0f7(0xd6))/0xb;if(_0x12f38a===_0x37fb60)break;else _0x49212f['push'](_0x49212f['shift']());}catch(_0x2dcdf0){_0x49212f['push'](_0x49212f['shift']());}}}(a123_0x203d,0xa295b));function a123_0x32af(_0x575191,_0x218df3){_0x575191=_0x575191-0xb1;const _0x203d07=a123_0x203d();let _0x32af79=_0x203d07[_0x575191];return _0x32af79;}import{getDeploymentMetadataSyncStatus}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const TERMINAL_STATUSES=new Set([a123_0x40ab11(0xbd),a123_0x40ab11(0xb7),a123_0x40ab11(0xcc)]),ACTIVE_STATUSES=new Set(['PENDING',a123_0x40ab11(0xbf)]);export const deploymentSyncStatus={'service':'deployment','command':'sync-status','description':a123_0x40ab11(0xc4),'risk':a123_0x40ab11(0xc8),'requiresAppCode':!![],'strictFlags':!![],'structuredErrors':!![],'flags':[{'name':a123_0x40ab11(0xb2),'type':a123_0x40ab11(0xd1),'required':!![],'description':a123_0x40ab11(0xd5)}],async 'validate'(_0x2e3502){const _0x503893=a123_0x40ab11;readJobId(_0x2e3502[_0x503893(0xce)]('job-id'));},async 'execute'(_0x313599){const _0x206864=a123_0x40ab11,_0x3c9586=readJobId(_0x313599[_0x206864(0xce)](_0x206864(0xb2))),_0x15babd=await getDeploymentMetadataSyncStatus({'jobId':_0x3c9586,'appCode':_0x313599[_0x206864(0xcb)]}),_0x309826=TERMINAL_STATUSES['has'](_0x15babd[_0x206864(0xc2)])?!![]:ACTIVE_STATUSES[_0x206864(0xbb)](_0x15babd['status'])?![]:null,_0x3bf823=countBy(_0x15babd[_0x206864(0xc6)][_0x206864(0xb6)](_0x206b4d=>_0x206b4d[_0x206864(0xc7)])),_0x5289f4=countBy(_0x15babd['results']['map'](_0x347fd1=>_0x347fd1['action'])),_0x14aeaf=_0x309826===null?[_0x206864(0xb4)+_0x15babd[_0x206864(0xc2)]+_0x206864(0xb1)]:[];return{'ok':!![],'data':{'job':_0x15babd,'isTerminal':_0x309826,'summary':{'total':_0x15babd['results'][_0x206864(0xba)],'failed':_0x15babd[_0x206864(0xc6)][_0x206864(0xb8)](_0x151fa1=>_0x151fa1[_0x206864(0xc5)]===_0x206864(0xcc))[_0x206864(0xba)],'byBizType':_0x3bf823,'byAction':_0x5289f4},'warnings':_0x14aeaf},'message':_0x206864(0xb5)+_0x3c9586+_0x206864(0xcd)+_0x15babd[_0x206864(0xc2)]+'.'};}};function readJobId(_0x26d566){const _0x55ec54=a123_0x40ab11;if(!Number[_0x55ec54(0xbc)](_0x26d566)||_0x26d566<=0x0)throw CliErrors[_0x55ec54(0xd4)](_0x55ec54(0xca));return _0x26d566;}function a123_0x203d(){const _0x187f31=['appCode','FAILED','\x20is\x20','num','442521IEwqpJ','77bLctCz','number','reduce','39388EMrYKF','validation','Deployment\x20synchronization\x20job\x20ID','24170861JkjVTT',';\x20terminal\x20state\x20is\x20unknown\x20to\x20this\x20CLI\x20version.','job-id','188792XIdahD','Preserved\x20server-defined\x20status\x20','Deployment\x20synchronization\x20job\x20','map','PARTIAL_SUCCESS','filter','5971140ZLhjxj','length','has','isSafeInteger','SUCCESS','7vztCiS','RUNNING','110TjjJSQ','185782SNtOOh','status','3181030PfgZGS','Get\x20application\x20deployment\x20synchronization\x20job\x20status','action','results','bizType','read','321ZVlasU','--job-id\x20must\x20be\x20a\x20positive\x20integer.'];a123_0x203d=function(){return _0x187f31;};return a123_0x203d();}function countBy(_0x433865){const _0x1acf93=a123_0x40ab11;return _0x433865[_0x1acf93(0xd2)]((_0x4dac90,_0x2a4f24)=>{return _0x4dac90[_0x2a4f24]=(_0x4dac90[_0x2a4f24]??0x0)+0x1,_0x4dac90;},{});}
@@ -1 +1 @@
1
- const a124_0x5bbcd=a124_0x50e0;(function(_0x253d6d,_0x54f9b9){const _0x19785f=a124_0x50e0,_0x1f819d=_0x253d6d();while(!![]){try{const _0x5b4ea9=-parseInt(_0x19785f(0x147))/0x1*(parseInt(_0x19785f(0x15b))/0x2)+-parseInt(_0x19785f(0x156))/0x3+parseInt(_0x19785f(0x169))/0x4+-parseInt(_0x19785f(0xfa))/0x5*(parseInt(_0x19785f(0x111))/0x6)+-parseInt(_0x19785f(0xe9))/0x7+parseInt(_0x19785f(0x149))/0x8+-parseInt(_0x19785f(0xdd))/0x9*(-parseInt(_0x19785f(0x132))/0xa);if(_0x5b4ea9===_0x54f9b9)break;else _0x1f819d['push'](_0x1f819d['shift']());}catch(_0x155671){_0x1f819d['push'](_0x1f819d['shift']());}}}(a124_0x4921,0xc552b));import a124_0x95744c from'chalk';function a124_0x50e0(_0x4420a8,_0x239ae6){_0x4420a8=_0x4420a8-0xdd;const _0x492104=a124_0x4921();let _0x50e029=_0x492104[_0x4420a8];return _0x50e029;}import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';import{getActiveRegion,getApiDomain,getAppDomain,getKbDomain,getKbServiceDomain,getSkillDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags,initGlobalEnvironment,inspectCliConfigJsonFile,loadRawConfigLayers}from'../context.js';import{getIsSessionValid}from'../auth/is-session-valid.js';import{getCookie}from'../auth/get-cookie.js';function a124_0x4921(){const _0x5e27a0=['entries','format','call','\x20config\x20delete\x20inherit\x20--global','\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','apiDir','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Installed\x20Path:\x20\x20','\x20\x20runtimeDomain:\x20\x20\x20','Project','2572692StUqBm','raw','projectConfig','default','join','616nNVVQs','\x20\x20app\x20locale:\x20\x20\x20\x20\x20\x20','\x20\x20kbServiceDomain:\x20','null','doctor','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','\x20\x20Config\x20Files','string','Repair\x20','\x20\x20─','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(set,\x20length=','env','hasOwnProperty','269440OHcUih','\x20\x20\x20\x20accessKey:\x20\x20','\x20\x20Config\x20JSON','(not\x20set)','8892NJfwiv','missing','includes','(unknown)','global','\x20\x20explicitAppName:\x20','\x20\x20Legacy\x20inherit:\x20\x20\x20','packageVersion','globalConfig','explicitAppName','apps','not\x20configured','7897365kDKiwz','skillVersion','\x20\x20Apps','Set\x20apps.','state','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20(invalid)','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','log','\x20\x20Repair\x20global:\x20\x20\x20','\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','locale','gray','object','✗\x20Invalid\x20JSON','\x20config','push','46335FeWKTZ','\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','region','prototype','\x20\x20appDomain:\x20\x20\x20\x20\x20\x20\x20','repairCommand','status','(not\x20found)','repeat','platform','bold','\x20config\x20delete\x20routing','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Repair\x20global:\x20\x20\x20\x20','Not\x20checked\x20until\x20routing\x20configuration\x20is\x20repaired','slice','read','source','\x20\x20Built-in\x20Skill','value','reason','\x20config\x20delete\x20region\x20--global','\x20\x20Package\x20Version:\x20','636HvTBuO','cookie','\x20\x20skillDomain:\x20\x20\x20\x20\x20','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','✓\x20Valid','\x20\x20kbDomain:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','filter','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','pageSize','\x20\x20\x20\x20region:\x20\x20\x20\x20\x20','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','green','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','Unavailable\x20until\x20routing\x20configuration\x20is\x20repaired','\x20\x20Routing\x20Configuration','\x20(default)','stringify','yellow','length','defaultApp','empty','unknown','\x20\x20Auth','padEnd','(none)','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','currentApp','appcode','routing','accessKey','30830AOFfmR','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Merged\x20Config','arch','(default:\x20','✓\x20Valid\x20JSON','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','regionConfiguredValue','\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','regionSource','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(default)','message','current','\x20app\x20\x22','✗\x20Not\x20logged\x20in','Global','(set\x20via\x20file,\x20length=','✗\x20Invalid','red','1695onnSuv','label','9479936JaykPT','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20'];a124_0x4921=function(){return _0x5e27a0;};return a124_0x4921();}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(_0x1d8165){const _0x23c88a=a124_0x50e0;return typeof _0x1d8165===_0x23c88a(0x162)?JSON[_0x23c88a(0x124)](_0x1d8165):'<'+(_0x1d8165===null?_0x23c88a(0x15e):typeof _0x1d8165)+'>';}async function execute(_0x244c73){const _0x39c1d8=a124_0x50e0,_0x441c4b=GIT_COMMIT!==_0x39c1d8(0x129)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x39c1d8(0x109)](0x0,0xa)+')':VERSION,_0x4d1bfc=buildConfigFromFlags({}),_0x6bdf95=getCookie();let _0x313843;try{await initGlobalEnvironment(_0x4d1bfc);}catch(_0x3e7622){_0x313843=_0x3e7622 instanceof Error?_0x3e7622:new Error(String(_0x3e7622));}console['log'](),console[_0x39c1d8(0xf1)](a124_0x95744c['bold'](CLI_BIN_NAME+'\x20doctor')),console['log'](a124_0x95744c[_0x39c1d8(0xf5)]('─'['repeat'](0x32))),console['log'](_0x39c1d8(0x120)+_0x441c4b),console['log'](_0x39c1d8(0x13d)+process['version']),console[_0x39c1d8(0xf1)]('\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20'+process[_0x39c1d8(0x103)]+'\x20'+process[_0x39c1d8(0x135)]);const _0x15bb3a=inspectBuiltinSkill();console[_0x39c1d8(0xf1)](),console[_0x39c1d8(0xf1)](a124_0x95744c['bold'](_0x39c1d8(0x10c))),console[_0x39c1d8(0xf1)](a124_0x95744c[_0x39c1d8(0xf5)](_0x39c1d8(0x164)['repeat'](0x1e)));const _0x344590=_0x15bb3a['state']==='current'?a124_0x95744c[_0x39c1d8(0x11f)]('✓\x20'+_0x15bb3a['state']):a124_0x95744c[_0x39c1d8(0x146)]('✗\x20'+_0x15bb3a[_0x39c1d8(0xed)]);console[_0x39c1d8(0xf1)](_0x39c1d8(0x13b)+_0x344590),console['log'](_0x39c1d8(0x110)+_0x15bb3a[_0x39c1d8(0xe4)]),console['log']('\x20\x20Skill\x20Version:\x20\x20\x20'+(_0x15bb3a[_0x39c1d8(0xea)]||a124_0x95744c[_0x39c1d8(0xf5)](_0x39c1d8(0xe0)))),console['log'](_0x39c1d8(0x153)+(_0x15bb3a['installedPath']||a124_0x95744c[_0x39c1d8(0xf5)](_0x39c1d8(0x101))));if(_0x15bb3a[_0x39c1d8(0x10e)])console['log'](_0x39c1d8(0xfb)+_0x15bb3a[_0x39c1d8(0x10e)]);_0x15bb3a[_0x39c1d8(0xed)]!==_0x39c1d8(0x140)&&console[_0x39c1d8(0xf1)](_0x39c1d8(0xf3)+_0x15bb3a[_0x39c1d8(0xff)]);console[_0x39c1d8(0xf1)](),console[_0x39c1d8(0xf1)](a124_0x95744c[_0x39c1d8(0x104)](_0x39c1d8(0x161))),console[_0x39c1d8(0xf1)](a124_0x95744c['gray'](_0x39c1d8(0x164)[_0x39c1d8(0x102)](0x1e)));const _0x22a905=getGlobalConfigPath(),_0x366e6b=getProjectConfigPath();console[_0x39c1d8(0xf1)](_0x39c1d8(0x106)+(_0x22a905||a124_0x95744c['gray'](_0x39c1d8(0x101)))),console['log'](_0x39c1d8(0x133)+(_0x366e6b||a124_0x95744c[_0x39c1d8(0xf5)](_0x39c1d8(0x101)))),console['log'](),console[_0x39c1d8(0xf1)](a124_0x95744c[_0x39c1d8(0x104)](_0x39c1d8(0x16b))),console[_0x39c1d8(0xf1)](a124_0x95744c[_0x39c1d8(0xf5)](_0x39c1d8(0x164)['repeat'](0x1e)));const _0x5089e0=(_0x3db805,_0x57362b)=>{const _0x58e0b7=_0x39c1d8;if(!_0x57362b){console[_0x58e0b7(0xf1)]('\x20\x20'+_0x3db805[_0x58e0b7(0x12b)](0x11)+'\x20'+a124_0x95744c[_0x58e0b7(0xf5)]('(no\x20file)'));return;}const _0x3d82e2=inspectCliConfigJsonFile(_0x57362b);if(_0x3d82e2[_0x58e0b7(0x100)]==='ok')console[_0x58e0b7(0xf1)]('\x20\x20'+_0x3db805['padEnd'](0x11)+'\x20'+a124_0x95744c[_0x58e0b7(0x11f)](_0x58e0b7(0x137)));else{if(_0x3d82e2[_0x58e0b7(0x100)]===_0x58e0b7(0x128))console['log']('\x20\x20'+_0x3db805[_0x58e0b7(0x12b)](0x11)+'\x20'+a124_0x95744c[_0x58e0b7(0x125)]('⚠\x20Empty\x20(treated\x20as\x20{})'));else _0x3d82e2[_0x58e0b7(0x100)]===_0x58e0b7(0xde)?console['log']('\x20\x20'+_0x3db805['padEnd'](0x11)+'\x20'+a124_0x95744c[_0x58e0b7(0xf5)]('(missing)')):(console[_0x58e0b7(0xf1)]('\x20\x20'+_0x3db805[_0x58e0b7(0x12b)](0x11)+'\x20'+a124_0x95744c[_0x58e0b7(0x146)](_0x58e0b7(0xf7))),console['log']('\x20\x20'+''['padEnd'](0x11)+'\x20'+a124_0x95744c['red'](_0x3d82e2[_0x58e0b7(0x13f)])));}};_0x5089e0(_0x39c1d8(0x143),_0x22a905),_0x5089e0(_0x39c1d8(0x155),_0x366e6b);const _0x1e8a90=loadRawConfigLayers(),_0x40f9c2=[{'label':_0x39c1d8(0x155),'value':_0x1e8a90[_0x39c1d8(0x158)][_0x39c1d8(0xfc)],'present':Object['prototype']['hasOwnProperty']['call'](_0x1e8a90['projectConfig'],'region'),'repairCommand':CLI_BIN_NAME+'\x20config\x20delete\x20region'},{'label':_0x39c1d8(0x143),'value':_0x1e8a90[_0x39c1d8(0xe5)][_0x39c1d8(0xfc)],'present':Object[_0x39c1d8(0xfd)][_0x39c1d8(0x168)][_0x39c1d8(0x14e)](_0x1e8a90[_0x39c1d8(0xe5)],_0x39c1d8(0xfc)),'repairCommand':CLI_BIN_NAME+_0x39c1d8(0x10f)}][_0x39c1d8(0x11a)](_0x542968=>_0x542968['present']&&isInvalidLovrabetRegion(_0x542968[_0x39c1d8(0x10d)]));for(const [_0x2eb9db,_0x1348c8]of[[_0x39c1d8(0x155),_0x1e8a90['projectConfig']],[_0x39c1d8(0x143),_0x1e8a90['globalConfig']]]){const _0x1afd83=_0x1348c8[_0x39c1d8(0xe7)]&&typeof _0x1348c8[_0x39c1d8(0xe7)]===_0x39c1d8(0xf6)?_0x1348c8[_0x39c1d8(0xe7)]:{};for(const [_0x3b84eb,_0x3a8f36]of Object[_0x39c1d8(0x14c)](_0x1afd83)){if(!_0x3a8f36||typeof _0x3a8f36!==_0x39c1d8(0xf6)||!Object['prototype']['hasOwnProperty'][_0x39c1d8(0x14e)](_0x3a8f36,_0x39c1d8(0xfc)))continue;isInvalidLovrabetRegion(_0x3a8f36['region'])&&_0x40f9c2[_0x39c1d8(0xf9)]({'label':_0x2eb9db+_0x39c1d8(0x141)+_0x3b84eb+'\x22','value':_0x3a8f36[_0x39c1d8(0xfc)],'present':!![],'repairCommand':_0x39c1d8(0xec)+_0x3b84eb+'.region\x20to\x20cn\x20or\x20id\x20in\x20'+_0x2eb9db['toLowerCase']()+_0x39c1d8(0xf8)});}}if(_0x40f9c2[_0x39c1d8(0x126)]>0x0){console[_0x39c1d8(0xf1)](),console[_0x39c1d8(0xf1)](a124_0x95744c[_0x39c1d8(0x104)]('\x20\x20Country/Region\x20Configuration')),console[_0x39c1d8(0xf1)](a124_0x95744c[_0x39c1d8(0xf5)](_0x39c1d8(0x164)[_0x39c1d8(0x102)](0x1e)));for(const _0x86a8f8 of _0x40f9c2){console['log']('\x20\x20'+_0x86a8f8['label'][_0x39c1d8(0x12b)](0x11)+'\x20'+a124_0x95744c[_0x39c1d8(0x146)]('✗\x20Invalid\x20'+describeRegionValue(_0x86a8f8['value']))),console[_0x39c1d8(0xf1)]('\x20\x20'+(_0x39c1d8(0x163)+_0x86a8f8[_0x39c1d8(0x148)]['toLowerCase']()+':')[_0x39c1d8(0x12b)](0x10)+'\x20'+_0x86a8f8[_0x39c1d8(0xff)]);}}const _0x210240=[Object[_0x39c1d8(0xfd)][_0x39c1d8(0x168)]['call'](_0x1e8a90[_0x39c1d8(0xe5)],'inherit')?_0x39c1d8(0xe1):null,Object[_0x39c1d8(0xfd)]['hasOwnProperty'][_0x39c1d8(0x14e)](_0x1e8a90[_0x39c1d8(0x158)],'inherit')?'project':null][_0x39c1d8(0x11a)](Boolean);_0x210240[_0x39c1d8(0x126)]>0x0&&(console['log'](_0x39c1d8(0xe3)+a124_0x95744c['yellow']('ignored\x20in\x20'+_0x210240[_0x39c1d8(0x15a)]('\x20+\x20')+_0x39c1d8(0xf8))),_0x210240[_0x39c1d8(0xdf)]('project')&&console['log']('\x20\x20Repair\x20project:\x20\x20\x20'+CLI_BIN_NAME+'\x20config\x20delete\x20inherit'),_0x210240[_0x39c1d8(0xdf)](_0x39c1d8(0xe1))&&console[_0x39c1d8(0xf1)](_0x39c1d8(0x107)+CLI_BIN_NAME+_0x39c1d8(0x14f)));const _0x31429e=isInvalidLovrabetRegion(_0x4d1bfc[_0x39c1d8(0x13a)]??_0x4d1bfc[_0x39c1d8(0x157)]?.[_0x39c1d8(0xfc)]);_0x313843&&!_0x31429e&&(console[_0x39c1d8(0xf1)](),console['log'](a124_0x95744c[_0x39c1d8(0x104)](_0x39c1d8(0x122))),console['log'](a124_0x95744c[_0x39c1d8(0xf5)](_0x39c1d8(0x164)[_0x39c1d8(0x102)](0x1e))),console[_0x39c1d8(0xf1)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a124_0x95744c[_0x39c1d8(0x146)](_0x39c1d8(0x145))),console[_0x39c1d8(0xf1)](_0x39c1d8(0xfb)+_0x313843[_0x39c1d8(0x13f)]),Object['prototype'][_0x39c1d8(0x168)][_0x39c1d8(0x14e)](_0x1e8a90[_0x39c1d8(0x158)],_0x39c1d8(0x130))&&console[_0x39c1d8(0xf1)]('\x20\x20Repair\x20project:\x20\x20'+CLI_BIN_NAME+_0x39c1d8(0x105)),Object[_0x39c1d8(0xfd)][_0x39c1d8(0x168)][_0x39c1d8(0x14e)](_0x1e8a90[_0x39c1d8(0xe5)],_0x39c1d8(0x130))&&console[_0x39c1d8(0xf1)](_0x39c1d8(0xf2)+CLI_BIN_NAME+'\x20config\x20delete\x20routing\x20--global'));console[_0x39c1d8(0xf1)](),console[_0x39c1d8(0xf1)](a124_0x95744c[_0x39c1d8(0x104)](_0x39c1d8(0x134))),console['log'](a124_0x95744c[_0x39c1d8(0xf5)]('\x20\x20─'[_0x39c1d8(0x102)](0x1e))),console[_0x39c1d8(0xf1)](_0x39c1d8(0x11e)+(_0x4d1bfc['appCode']||a124_0x95744c[_0x39c1d8(0x146)](_0x39c1d8(0x16c))));const _0x4c6377=_0x31429e?a124_0x95744c[_0x39c1d8(0x146)](describeRegionValue(_0x4d1bfc[_0x39c1d8(0x13a)]??_0x4d1bfc[_0x39c1d8(0x157)]?.[_0x39c1d8(0xfc)])+_0x39c1d8(0xef)):(_0x4d1bfc[_0x39c1d8(0xfc)]??DEFAULT_LOVRABET_REGION)+'\x20('+(_0x4d1bfc[_0x39c1d8(0x13c)]??_0x39c1d8(0x159))+')';console['log'](_0x39c1d8(0x150)+_0x4c6377),console[_0x39c1d8(0xf1)](_0x39c1d8(0x165)+_0x4d1bfc[_0x39c1d8(0x167)]),console[_0x39c1d8(0xf1)](_0x39c1d8(0x15c)+_0x4d1bfc[_0x39c1d8(0xf4)]),console[_0x39c1d8(0xf1)](_0x39c1d8(0xee)+_0x4d1bfc[_0x39c1d8(0x151)]),console[_0x39c1d8(0xf1)]('\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20'+(_0x4d1bfc[_0x39c1d8(0x127)]||a124_0x95744c[_0x39c1d8(0xf5)](_0x39c1d8(0x12c)))),console[_0x39c1d8(0xf1)](_0x39c1d8(0x115)+(_0x4d1bfc[_0x39c1d8(0x12e)]||a124_0x95744c[_0x39c1d8(0xf5)]('(none)'))),console[_0x39c1d8(0xf1)](_0x39c1d8(0xe2)+(_0x4d1bfc[_0x39c1d8(0xe6)]||a124_0x95744c[_0x39c1d8(0xf5)](_0x39c1d8(0x12c)))),console[_0x39c1d8(0xf1)](_0x39c1d8(0x116)+(_0x4d1bfc[_0x39c1d8(0x14d)]||a124_0x95744c[_0x39c1d8(0xf5)](_0x39c1d8(0x136)+DEFAULT_CONFIG_VALUES[_0x39c1d8(0x14d)]+')'))),console[_0x39c1d8(0xf1)](_0x39c1d8(0x14a)+(_0x4d1bfc[_0x39c1d8(0x11c)]??a124_0x95744c[_0x39c1d8(0xf5)](_0x39c1d8(0x13e)))),console['log'](_0x39c1d8(0x160)+_0x4d1bfc['riskLevel']),console['log'](_0x39c1d8(0x114)+_0x4d1bfc['verbose']),console[_0x39c1d8(0xf1)](_0x39c1d8(0x152)+(_0x4d1bfc[_0x39c1d8(0x112)]?a124_0x95744c['green'](_0x39c1d8(0x166)+_0x4d1bfc[_0x39c1d8(0x112)][_0x39c1d8(0x126)]+')'):_0x6bdf95?a124_0x95744c[_0x39c1d8(0x11f)](_0x39c1d8(0x144)+_0x6bdf95[_0x39c1d8(0x126)]+')'):a124_0x95744c[_0x39c1d8(0xf5)](_0x39c1d8(0x12c))));const _0x459d26=Object['keys'](_0x4d1bfc[_0x39c1d8(0xe7)]);if(_0x459d26['length']>0x0){console[_0x39c1d8(0xf1)](),console[_0x39c1d8(0xf1)](a124_0x95744c[_0x39c1d8(0x104)](_0x39c1d8(0xeb))),console[_0x39c1d8(0xf1)](a124_0x95744c[_0x39c1d8(0xf5)](_0x39c1d8(0x164)[_0x39c1d8(0x102)](0x1e)));for(const _0x40ea8a of _0x459d26){const _0x29ca94=_0x4d1bfc['apps'][_0x40ea8a],_0xf25469=_0x40ea8a===_0x4d1bfc[_0x39c1d8(0x127)],_0x1a17e1=_0x40ea8a===_0x4d1bfc[_0x39c1d8(0x12e)],_0x5b3718=_0x1a17e1?a124_0x95744c[_0x39c1d8(0x11f)]('\x20←\x20current'):'',_0x3e09cb=_0xf25469?_0x39c1d8(0x123):'';console[_0x39c1d8(0xf1)]('\x20\x20'+_0x40ea8a+_0x3e09cb+_0x5b3718),console[_0x39c1d8(0xf1)](_0x39c1d8(0x11b)+_0x29ca94[_0x39c1d8(0x12f)]);const _0x320b63=_0x1e8a90[_0x39c1d8(0x158)][_0x39c1d8(0xe7)]&&typeof _0x1e8a90[_0x39c1d8(0x158)]['apps']===_0x39c1d8(0xf6)?_0x1e8a90['projectConfig'][_0x39c1d8(0xe7)]:{},_0x595e6c=Object[_0x39c1d8(0xfd)][_0x39c1d8(0x168)]['call'](_0x320b63,_0x40ea8a),_0x11a340=isInvalidLovrabetRegion(_0x29ca94['region'])?{'region':_0x4d1bfc[_0x39c1d8(0xfc)]??DEFAULT_LOVRABET_REGION}:resolveEffectiveRegion({'appRegion':_0x29ca94[_0x39c1d8(0xfc)],'projectRegion':_0x595e6c?_0x1e8a90[_0x39c1d8(0x158)][_0x39c1d8(0xfc)]:undefined,'globalRegion':_0x1e8a90['globalConfig'][_0x39c1d8(0xfc)],'mergedRegion':_0x4d1bfc[_0x39c1d8(0x157)][_0x39c1d8(0xfc)],'appName':_0x40ea8a}),_0x5c0031=buildAppDoctorFields(_0x29ca94,{'region':_0x11a340['region'],'env':_0x4d1bfc[_0x39c1d8(0x167)],'apiDir':_0x4d1bfc['raw'][_0x39c1d8(0x151)]||DEFAULT_CONFIG_VALUES[_0x39c1d8(0x151)],'cookie':_0x4d1bfc[_0x39c1d8(0x112)]||_0x6bdf95||undefined,'accessKey':_0x4d1bfc[_0x39c1d8(0x131)]});console['log'](_0x39c1d8(0x11d)+_0x5c0031['region'][_0x39c1d8(0x10d)]+'\x20\x20'+a124_0x95744c[_0x39c1d8(0xf5)]('('+_0x5c0031[_0x39c1d8(0xfc)][_0x39c1d8(0x10b)]+')')),console[_0x39c1d8(0xf1)](_0x39c1d8(0xf0)+_0x5c0031[_0x39c1d8(0x167)][_0x39c1d8(0x10d)]+'\x20\x20'+a124_0x95744c[_0x39c1d8(0xf5)]('('+_0x5c0031[_0x39c1d8(0x167)]['source']+')')),console[_0x39c1d8(0xf1)](_0x39c1d8(0x139)+_0x5c0031[_0x39c1d8(0x151)][_0x39c1d8(0x10d)]+'\x20\x20'+a124_0x95744c[_0x39c1d8(0xf5)]('('+_0x5c0031[_0x39c1d8(0x151)]['source']+')'));const _0x550ffb=_0x5c0031['cookie'][_0x39c1d8(0x10d)]?a124_0x95744c['green'](_0x39c1d8(0x166)+_0x5c0031[_0x39c1d8(0x112)][_0x39c1d8(0x10d)][_0x39c1d8(0x126)]+')'):a124_0x95744c[_0x39c1d8(0xf5)](_0x39c1d8(0x12c));console[_0x39c1d8(0xf1)](_0x39c1d8(0x119)+_0x550ffb+'\x20\x20'+a124_0x95744c[_0x39c1d8(0xf5)]('('+_0x5c0031[_0x39c1d8(0x112)][_0x39c1d8(0x10b)]+')'));const _0x292604=_0x5c0031[_0x39c1d8(0x131)][_0x39c1d8(0x10d)]?a124_0x95744c[_0x39c1d8(0x11f)]('(set,\x20length='+_0x5c0031[_0x39c1d8(0x131)]['value'][_0x39c1d8(0x126)]+')'):a124_0x95744c[_0x39c1d8(0xf5)](_0x39c1d8(0x12c));console['log'](_0x39c1d8(0x16a)+_0x292604+'\x20\x20'+a124_0x95744c[_0x39c1d8(0xf5)]('('+_0x5c0031[_0x39c1d8(0x131)][_0x39c1d8(0x10b)]+')'));}}console[_0x39c1d8(0xf1)](),console['log'](a124_0x95744c[_0x39c1d8(0x104)]('\x20\x20API\x20Endpoints')),console['log'](a124_0x95744c[_0x39c1d8(0xf5)](_0x39c1d8(0x164)[_0x39c1d8(0x102)](0x1e)));_0x313843?console['log'](_0x39c1d8(0x12d)+a124_0x95744c[_0x39c1d8(0x146)](_0x39c1d8(0x121))):(console[_0x39c1d8(0xf1)](_0x39c1d8(0x150)+getActiveRegion()),console['log'](_0x39c1d8(0x14b)+getApiDomain()),console[_0x39c1d8(0xf1)]('\x20\x20userDomain:\x20\x20\x20\x20\x20\x20'+getUserDomain()),console[_0x39c1d8(0xf1)](_0x39c1d8(0x154)+getRuntimeDomain()),console[_0x39c1d8(0xf1)](_0x39c1d8(0x113)+getSkillDomain()),console[_0x39c1d8(0xf1)](_0x39c1d8(0x118)+getKbDomain()),console[_0x39c1d8(0xf1)](_0x39c1d8(0x15d)+(getKbServiceDomain()??_0x39c1d8(0xe8))),console['log'](_0x39c1d8(0xfe)+getAppDomain()));console[_0x39c1d8(0xf1)](),console[_0x39c1d8(0xf1)](a124_0x95744c[_0x39c1d8(0x104)](_0x39c1d8(0x12a))),console[_0x39c1d8(0xf1)](a124_0x95744c[_0x39c1d8(0xf5)](_0x39c1d8(0x164)[_0x39c1d8(0x102)](0x1e)));if(_0x313843)console['log'](_0x39c1d8(0x12d)+a124_0x95744c['yellow'](_0x39c1d8(0x108)));else{if(_0x6bdf95){const _0x322baa=await getIsSessionValid();console[_0x39c1d8(0xf1)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x322baa?a124_0x95744c[_0x39c1d8(0x11f)](_0x39c1d8(0x117)):a124_0x95744c[_0x39c1d8(0x146)]('✗\x20Expired')));}else console[_0x39c1d8(0xf1)](_0x39c1d8(0x12d)+a124_0x95744c['red'](_0x39c1d8(0x142)));}return console[_0x39c1d8(0xf1)](),{'ok':!![]};}export const doctorDefinition={'service':a124_0x5bbcd(0x15f),'command':'check','description':a124_0x5bbcd(0x138),'risk':a124_0x5bbcd(0x10a),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
1
+ const a124_0x193295=a124_0x3d61;(function(_0xafbd90,_0x41f889){const _0x12aa3a=a124_0x3d61,_0x59847e=_0xafbd90();while(!![]){try{const _0x3f910c=parseInt(_0x12aa3a(0x1ca))/0x1*(parseInt(_0x12aa3a(0x1cd))/0x2)+parseInt(_0x12aa3a(0x1eb))/0x3+-parseInt(_0x12aa3a(0x236))/0x4+parseInt(_0x12aa3a(0x1d8))/0x5*(-parseInt(_0x12aa3a(0x215))/0x6)+-parseInt(_0x12aa3a(0x23a))/0x7+-parseInt(_0x12aa3a(0x1dc))/0x8+-parseInt(_0x12aa3a(0x22f))/0x9*(-parseInt(_0x12aa3a(0x21f))/0xa);if(_0x3f910c===_0x41f889)break;else _0x59847e['push'](_0x59847e['shift']());}catch(_0x3181a7){_0x59847e['push'](_0x59847e['shift']());}}}(a124_0x3704,0x7ef71));import a124_0x352d0f 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_0x3d61(_0x4229d0,_0x924d9e){_0x4229d0=_0x4229d0-0x1c0;const _0x3704d9=a124_0x3704();let _0x3d6119=_0x3704d9[_0x4229d0];return _0x3d6119;}import{inspectBuiltinSkill}from'../skills/builtin-skill.js';import{DEFAULT_LOVRABET_REGION,isInvalidLovrabetRegion}from'../constant/region.js';function a124_0x3704(){const _0x4fea33=['\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Country/Region\x20Configuration','\x20\x20Routing\x20Configuration','pageSize','Global','toLowerCase','✗\x20Invalid\x20','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','defaultApp','bold','(unknown)','green','\x20\x20Merged\x20Config','appcode','default','check','Set\x20apps.','entries','doctor','\x20\x20kbDomain:\x20\x20\x20\x20\x20\x20\x20\x20','locale','keys','stringify','yellow','39351mdyYxK','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','currentApp','18uJfGno','(not\x20set)','\x20\x20\x20\x20accessKey:\x20\x20','status','(set,\x20length=','\x20\x20runtimeDomain:\x20\x20\x20','padEnd','env','explicitAppName','\x20\x20─','Unavailable\x20until\x20routing\x20configuration\x20is\x20repaired','4725lOcYxl','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','riskLevel','✗\x20Invalid','1992112Deyxtm','\x20\x20appDomain:\x20\x20\x20\x20\x20\x20\x20','globalConfig','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Legacy\x20inherit:\x20\x20\x20','apps','\x20\x20Package\x20Version:\x20','object','\x20\x20\x20\x20region:\x20\x20\x20\x20\x20','state','\x20config','raw','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20(default)','repeat','1561095NlGEnh','\x20←\x20current','projectConfig','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','source','(none)','arch','length','current','accessKey','prototype','✓\x20Valid\x20JSON','✗\x20Invalid\x20JSON','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','\x20\x20Apps','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','present','appCode','hasOwnProperty','reason','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','routing','\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','unknown','Project','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','cookie','\x20config\x20delete\x20inherit','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','call','gray','\x20\x20Skill\x20Version:\x20\x20\x20','.region\x20to\x20cn\x20or\x20id\x20in\x20','(missing)','\x20doctor','includes','✗\x20Not\x20logged\x20in','\x20app\x20\x22','\x20\x20app\x20locale:\x20\x20\x20\x20\x20\x20','\x20\x20kbServiceDomain:\x20','\x20\x20Installed\x20Path:\x20\x20','\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','3342aFBuBt','filter','slice','regionConfiguredValue','\x20\x20Repair\x20project:\x20\x20','format','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','skillVersion','push','log','18549460XbCsUJ','Repair\x20','ignored\x20in\x20','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','Not\x20checked\x20until\x20routing\x20configuration\x20is\x20repaired','apiDir','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','region','\x20\x20explicitAppName:\x20','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','red','(not\x20found)','(default:\x20','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','inherit','\x20\x20Repair\x20project:\x20\x20\x20','9HwFzSU','platform','\x20\x20Repair\x20global:\x20\x20\x20','\x20config\x20delete\x20routing\x20--global','\x20\x20Repair\x20global:\x20\x20\x20\x20','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20+\x20','2167884MMaSPA','\x20\x20skillDomain:\x20\x20\x20\x20\x20','value','label','6244497qzWfHa','global','\x20\x20API\x20Endpoints','installedPath','(no\x20file)','\x20(invalid)','null','\x20\x20Auth','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','missing','project'];a124_0x3704=function(){return _0x4fea33;};return a124_0x3704();}function describeRegionValue(_0x3d0e4b){const _0xec4090=a124_0x3d61;return typeof _0x3d0e4b==='string'?JSON[_0xec4090(0x1c8)](_0x3d0e4b):'<'+(_0x3d0e4b===null?_0xec4090(0x240):typeof _0x3d0e4b)+'>';}async function execute(_0x5daafe){const _0x8605f8=a124_0x3d61,_0x292ea1=GIT_COMMIT!==_0x8605f8(0x202)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x8605f8(0x217)](0x0,0xa)+')':VERSION,_0x4625b8=buildConfigFromFlags({}),_0x6382e7=getCookie();let _0x2d0a6a;try{await initGlobalEnvironment(_0x4625b8);}catch(_0x5454fc){_0x2d0a6a=_0x5454fc instanceof Error?_0x5454fc:new Error(String(_0x5454fc));}console[_0x8605f8(0x21e)](),console['log'](a124_0x352d0f[_0x8605f8(0x24f)](CLI_BIN_NAME+_0x8605f8(0x20d))),console[_0x8605f8(0x21e)](a124_0x352d0f[_0x8605f8(0x209)]('─'['repeat'](0x32))),console[_0x8605f8(0x21e)](_0x8605f8(0x207)+_0x292ea1),console[_0x8605f8(0x21e)]('\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+process['version']),console['log'](_0x8605f8(0x21b)+process[_0x8605f8(0x230)]+'\x20'+process[_0x8605f8(0x1f1)]);const _0x514cad=inspectBuiltinSkill();console[_0x8605f8(0x21e)](),console['log'](a124_0x352d0f[_0x8605f8(0x24f)]('\x20\x20Built-in\x20Skill')),console[_0x8605f8(0x21e)](a124_0x352d0f['gray'](_0x8605f8(0x1d6)['repeat'](0x1e)));const _0x2b14e6=_0x514cad['state']===_0x8605f8(0x1f3)?a124_0x352d0f[_0x8605f8(0x251)]('✓\x20'+_0x514cad['state']):a124_0x352d0f[_0x8605f8(0x229)]('✗\x20'+_0x514cad['state']);console['log'](_0x8605f8(0x246)+_0x2b14e6),console[_0x8605f8(0x21e)](_0x8605f8(0x1e2)+_0x514cad['packageVersion']),console[_0x8605f8(0x21e)](_0x8605f8(0x20a)+(_0x514cad[_0x8605f8(0x21c)]||a124_0x352d0f[_0x8605f8(0x209)](_0x8605f8(0x250)))),console[_0x8605f8(0x21e)](_0x8605f8(0x213)+(_0x514cad[_0x8605f8(0x23d)]||a124_0x352d0f['gray'](_0x8605f8(0x22a))));if(_0x514cad[_0x8605f8(0x1fe)])console[_0x8605f8(0x21e)]('\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x514cad['reason']);_0x514cad[_0x8605f8(0x1e5)]!=='current'&&console[_0x8605f8(0x21e)]('\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x514cad['repairCommand']);console[_0x8605f8(0x21e)](),console[_0x8605f8(0x21e)](a124_0x352d0f[_0x8605f8(0x24f)]('\x20\x20Config\x20Files')),console['log'](a124_0x352d0f[_0x8605f8(0x209)](_0x8605f8(0x1d6)[_0x8605f8(0x1ea)](0x1e)));const _0x2b095f=getGlobalConfigPath(),_0x19247d=getProjectConfigPath();console['log'](_0x8605f8(0x234)+(_0x2b095f||a124_0x352d0f[_0x8605f8(0x209)](_0x8605f8(0x22a)))),console[_0x8605f8(0x21e)](_0x8605f8(0x1df)+(_0x19247d||a124_0x352d0f[_0x8605f8(0x209)](_0x8605f8(0x22a)))),console['log'](),console[_0x8605f8(0x21e)](a124_0x352d0f[_0x8605f8(0x24f)]('\x20\x20Config\x20JSON')),console[_0x8605f8(0x21e)](a124_0x352d0f['gray'](_0x8605f8(0x1d6)[_0x8605f8(0x1ea)](0x1e)));const _0x4d26df=(_0x1ce29a,_0x329daf)=>{const _0x4ac6ae=_0x8605f8;if(!_0x329daf){console['log']('\x20\x20'+_0x1ce29a['padEnd'](0x11)+'\x20'+a124_0x352d0f[_0x4ac6ae(0x209)](_0x4ac6ae(0x23e)));return;}const _0x10bf59=inspectCliConfigJsonFile(_0x329daf);if(_0x10bf59[_0x4ac6ae(0x1d0)]==='ok')console['log']('\x20\x20'+_0x1ce29a[_0x4ac6ae(0x1d3)](0x11)+'\x20'+a124_0x352d0f[_0x4ac6ae(0x251)](_0x4ac6ae(0x1f6)));else{if(_0x10bf59['status']==='empty')console[_0x4ac6ae(0x21e)]('\x20\x20'+_0x1ce29a['padEnd'](0x11)+'\x20'+a124_0x352d0f[_0x4ac6ae(0x1c9)]('⚠\x20Empty\x20(treated\x20as\x20{})'));else _0x10bf59[_0x4ac6ae(0x1d0)]===_0x4ac6ae(0x244)?console[_0x4ac6ae(0x21e)]('\x20\x20'+_0x1ce29a['padEnd'](0x11)+'\x20'+a124_0x352d0f['gray'](_0x4ac6ae(0x20c))):(console[_0x4ac6ae(0x21e)]('\x20\x20'+_0x1ce29a[_0x4ac6ae(0x1d3)](0x11)+'\x20'+a124_0x352d0f[_0x4ac6ae(0x229)](_0x4ac6ae(0x1f7))),console[_0x4ac6ae(0x21e)]('\x20\x20'+''[_0x4ac6ae(0x1d3)](0x11)+'\x20'+a124_0x352d0f[_0x4ac6ae(0x229)](_0x10bf59['message'])));}};_0x4d26df('Global',_0x2b095f),_0x4d26df('Project',_0x19247d);const _0x523817=loadRawConfigLayers(),_0x5908cf=[{'label':_0x8605f8(0x203),'value':_0x523817[_0x8605f8(0x1ed)][_0x8605f8(0x226)],'present':Object['prototype'][_0x8605f8(0x1fd)]['call'](_0x523817[_0x8605f8(0x1ed)],_0x8605f8(0x226)),'repairCommand':CLI_BIN_NAME+'\x20config\x20delete\x20region'},{'label':'Global','value':_0x523817[_0x8605f8(0x1de)][_0x8605f8(0x226)],'present':Object[_0x8605f8(0x1f5)][_0x8605f8(0x1fd)]['call'](_0x523817[_0x8605f8(0x1de)],_0x8605f8(0x226)),'repairCommand':CLI_BIN_NAME+'\x20config\x20delete\x20region\x20--global'}][_0x8605f8(0x216)](_0xbc6316=>_0xbc6316[_0x8605f8(0x1fb)]&&isInvalidLovrabetRegion(_0xbc6316['value']));for(const [_0x1b318b,_0x251cee]of[[_0x8605f8(0x203),_0x523817[_0x8605f8(0x1ed)]],[_0x8605f8(0x24a),_0x523817[_0x8605f8(0x1de)]]]){const _0x16e5dc=_0x251cee[_0x8605f8(0x1e1)]&&typeof _0x251cee[_0x8605f8(0x1e1)]===_0x8605f8(0x1e3)?_0x251cee[_0x8605f8(0x1e1)]:{};for(const [_0x2bbba7,_0x489410]of Object[_0x8605f8(0x1c3)](_0x16e5dc)){if(!_0x489410||typeof _0x489410!==_0x8605f8(0x1e3)||!Object[_0x8605f8(0x1f5)]['hasOwnProperty'][_0x8605f8(0x208)](_0x489410,'region'))continue;isInvalidLovrabetRegion(_0x489410[_0x8605f8(0x226)])&&_0x5908cf[_0x8605f8(0x21d)]({'label':_0x1b318b+_0x8605f8(0x210)+_0x2bbba7+'\x22','value':_0x489410[_0x8605f8(0x226)],'present':!![],'repairCommand':_0x8605f8(0x1c2)+_0x2bbba7+_0x8605f8(0x20b)+_0x1b318b['toLowerCase']()+_0x8605f8(0x1e6)});}}if(_0x5908cf[_0x8605f8(0x1f2)]>0x0){console[_0x8605f8(0x21e)](),console[_0x8605f8(0x21e)](a124_0x352d0f[_0x8605f8(0x24f)](_0x8605f8(0x247))),console[_0x8605f8(0x21e)](a124_0x352d0f[_0x8605f8(0x209)](_0x8605f8(0x1d6)[_0x8605f8(0x1ea)](0x1e)));for(const _0x4947f9 of _0x5908cf){console[_0x8605f8(0x21e)]('\x20\x20'+_0x4947f9[_0x8605f8(0x239)][_0x8605f8(0x1d3)](0x11)+'\x20'+a124_0x352d0f[_0x8605f8(0x229)](_0x8605f8(0x24c)+describeRegionValue(_0x4947f9['value']))),console[_0x8605f8(0x21e)]('\x20\x20'+(_0x8605f8(0x220)+_0x4947f9[_0x8605f8(0x239)][_0x8605f8(0x24b)]()+':')[_0x8605f8(0x1d3)](0x10)+'\x20'+_0x4947f9['repairCommand']);}}const _0x520e1c=[Object[_0x8605f8(0x1f5)][_0x8605f8(0x1fd)][_0x8605f8(0x208)](_0x523817[_0x8605f8(0x1de)],_0x8605f8(0x22d))?_0x8605f8(0x23b):null,Object['prototype'][_0x8605f8(0x1fd)][_0x8605f8(0x208)](_0x523817[_0x8605f8(0x1ed)],'inherit')?_0x8605f8(0x245):null][_0x8605f8(0x216)](Boolean);_0x520e1c[_0x8605f8(0x1f2)]>0x0&&(console['log'](_0x8605f8(0x1e0)+a124_0x352d0f[_0x8605f8(0x1c9)](_0x8605f8(0x221)+_0x520e1c['join'](_0x8605f8(0x235))+_0x8605f8(0x1e6))),_0x520e1c[_0x8605f8(0x20e)](_0x8605f8(0x245))&&console[_0x8605f8(0x21e)](_0x8605f8(0x22e)+CLI_BIN_NAME+_0x8605f8(0x206)),_0x520e1c[_0x8605f8(0x20e)](_0x8605f8(0x23b))&&console[_0x8605f8(0x21e)](_0x8605f8(0x233)+CLI_BIN_NAME+'\x20config\x20delete\x20inherit\x20--global'));const _0x24480a=isInvalidLovrabetRegion(_0x4625b8['regionConfiguredValue']??_0x4625b8[_0x8605f8(0x1e7)]?.[_0x8605f8(0x226)]);_0x2d0a6a&&!_0x24480a&&(console[_0x8605f8(0x21e)](),console[_0x8605f8(0x21e)](a124_0x352d0f[_0x8605f8(0x24f)](_0x8605f8(0x248))),console[_0x8605f8(0x21e)](a124_0x352d0f[_0x8605f8(0x209)](_0x8605f8(0x1d6)['repeat'](0x1e))),console['log'](_0x8605f8(0x243)+a124_0x352d0f[_0x8605f8(0x229)](_0x8605f8(0x1db))),console[_0x8605f8(0x21e)](_0x8605f8(0x214)+_0x2d0a6a['message']),Object[_0x8605f8(0x1f5)][_0x8605f8(0x1fd)][_0x8605f8(0x208)](_0x523817[_0x8605f8(0x1ed)],_0x8605f8(0x200))&&console[_0x8605f8(0x21e)](_0x8605f8(0x219)+CLI_BIN_NAME+'\x20config\x20delete\x20routing'),Object[_0x8605f8(0x1f5)]['hasOwnProperty'][_0x8605f8(0x208)](_0x523817[_0x8605f8(0x1de)],_0x8605f8(0x200))&&console['log'](_0x8605f8(0x231)+CLI_BIN_NAME+_0x8605f8(0x232)));console[_0x8605f8(0x21e)](),console[_0x8605f8(0x21e)](a124_0x352d0f[_0x8605f8(0x24f)](_0x8605f8(0x252))),console[_0x8605f8(0x21e)](a124_0x352d0f['gray']('\x20\x20─'['repeat'](0x1e))),console[_0x8605f8(0x21e)](_0x8605f8(0x1ff)+(_0x4625b8[_0x8605f8(0x1fc)]||a124_0x352d0f[_0x8605f8(0x229)](_0x8605f8(0x1ce))));const _0x4c8aff=_0x24480a?a124_0x352d0f[_0x8605f8(0x229)](describeRegionValue(_0x4625b8[_0x8605f8(0x218)]??_0x4625b8[_0x8605f8(0x1e7)]?.[_0x8605f8(0x226)])+_0x8605f8(0x23f)):(_0x4625b8[_0x8605f8(0x226)]??DEFAULT_LOVRABET_REGION)+'\x20('+(_0x4625b8['regionSource']??_0x8605f8(0x1c0))+')';console['log'](_0x8605f8(0x201)+_0x4c8aff),console[_0x8605f8(0x21e)](_0x8605f8(0x22c)+_0x4625b8['env']),console[_0x8605f8(0x21e)](_0x8605f8(0x211)+_0x4625b8[_0x8605f8(0x1c6)]),console[_0x8605f8(0x21e)](_0x8605f8(0x24d)+_0x4625b8[_0x8605f8(0x224)]),console[_0x8605f8(0x21e)](_0x8605f8(0x204)+(_0x4625b8['defaultApp']||a124_0x352d0f[_0x8605f8(0x209)](_0x8605f8(0x1f0)))),console['log']('\x20\x20currentApp:\x20\x20\x20\x20\x20\x20'+(_0x4625b8[_0x8605f8(0x1cc)]||a124_0x352d0f[_0x8605f8(0x209)](_0x8605f8(0x1f0)))),console[_0x8605f8(0x21e)](_0x8605f8(0x227)+(_0x4625b8[_0x8605f8(0x1d5)]||a124_0x352d0f['gray'](_0x8605f8(0x1f0)))),console[_0x8605f8(0x21e)](_0x8605f8(0x1d9)+(_0x4625b8['format']||a124_0x352d0f[_0x8605f8(0x209)](_0x8605f8(0x22b)+DEFAULT_CONFIG_VALUES[_0x8605f8(0x21a)]+')'))),console[_0x8605f8(0x21e)](_0x8605f8(0x1fa)+(_0x4625b8[_0x8605f8(0x249)]??a124_0x352d0f[_0x8605f8(0x209)]('(default)'))),console['log']('\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20'+_0x4625b8[_0x8605f8(0x1da)]),console[_0x8605f8(0x21e)]('\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x4625b8['verbose']),console[_0x8605f8(0x21e)](_0x8605f8(0x1e8)+(_0x4625b8['cookie']?a124_0x352d0f[_0x8605f8(0x251)]('(set,\x20length='+_0x4625b8[_0x8605f8(0x205)]['length']+')'):_0x6382e7?a124_0x352d0f[_0x8605f8(0x251)]('(set\x20via\x20file,\x20length='+_0x6382e7[_0x8605f8(0x1f2)]+')'):a124_0x352d0f[_0x8605f8(0x209)](_0x8605f8(0x1f0))));const _0x1ce85f=Object[_0x8605f8(0x1c7)](_0x4625b8['apps']);if(_0x1ce85f[_0x8605f8(0x1f2)]>0x0){console[_0x8605f8(0x21e)](),console[_0x8605f8(0x21e)](a124_0x352d0f['bold'](_0x8605f8(0x1f9))),console['log'](a124_0x352d0f[_0x8605f8(0x209)](_0x8605f8(0x1d6)[_0x8605f8(0x1ea)](0x1e)));for(const _0xa7fd42 of _0x1ce85f){const _0xa22fec=_0x4625b8[_0x8605f8(0x1e1)][_0xa7fd42],_0x2554bf=_0xa7fd42===_0x4625b8[_0x8605f8(0x24e)],_0x1fd9ab=_0xa7fd42===_0x4625b8[_0x8605f8(0x1cc)],_0x199b1a=_0x1fd9ab?a124_0x352d0f[_0x8605f8(0x251)](_0x8605f8(0x1ec)):'',_0x484912=_0x2554bf?_0x8605f8(0x1e9):'';console[_0x8605f8(0x21e)]('\x20\x20'+_0xa7fd42+_0x484912+_0x199b1a),console['log'](_0x8605f8(0x222)+_0xa22fec[_0x8605f8(0x253)]);const _0x348123=_0x523817[_0x8605f8(0x1ed)][_0x8605f8(0x1e1)]&&typeof _0x523817[_0x8605f8(0x1ed)]['apps']===_0x8605f8(0x1e3)?_0x523817[_0x8605f8(0x1ed)][_0x8605f8(0x1e1)]:{},_0x53c678=Object['prototype'][_0x8605f8(0x1fd)][_0x8605f8(0x208)](_0x348123,_0xa7fd42),_0x301f81=isInvalidLovrabetRegion(_0xa22fec[_0x8605f8(0x226)])?{'region':_0x4625b8[_0x8605f8(0x226)]??DEFAULT_LOVRABET_REGION}:resolveEffectiveRegion({'appRegion':_0xa22fec[_0x8605f8(0x226)],'projectRegion':_0x53c678?_0x523817['projectConfig']['region']:undefined,'globalRegion':_0x523817[_0x8605f8(0x1de)][_0x8605f8(0x226)],'mergedRegion':_0x4625b8[_0x8605f8(0x1e7)]['region'],'appName':_0xa7fd42}),_0x58bd8f=buildAppDoctorFields(_0xa22fec,{'region':_0x301f81['region'],'env':_0x4625b8[_0x8605f8(0x1d4)],'apiDir':_0x4625b8[_0x8605f8(0x1e7)]['apiDir']||DEFAULT_CONFIG_VALUES['apiDir'],'cookie':_0x4625b8[_0x8605f8(0x205)]||_0x6382e7||undefined,'accessKey':_0x4625b8[_0x8605f8(0x1f4)]});console[_0x8605f8(0x21e)](_0x8605f8(0x1e4)+_0x58bd8f[_0x8605f8(0x226)][_0x8605f8(0x238)]+'\x20\x20'+a124_0x352d0f[_0x8605f8(0x209)]('('+_0x58bd8f[_0x8605f8(0x226)][_0x8605f8(0x1ef)]+')')),console[_0x8605f8(0x21e)](_0x8605f8(0x225)+_0x58bd8f['env'][_0x8605f8(0x238)]+'\x20\x20'+a124_0x352d0f[_0x8605f8(0x209)]('('+_0x58bd8f[_0x8605f8(0x1d4)][_0x8605f8(0x1ef)]+')')),console[_0x8605f8(0x21e)](_0x8605f8(0x228)+_0x58bd8f[_0x8605f8(0x224)][_0x8605f8(0x238)]+'\x20\x20'+a124_0x352d0f['gray']('('+_0x58bd8f[_0x8605f8(0x224)][_0x8605f8(0x1ef)]+')'));const _0x23b6a2=_0x58bd8f[_0x8605f8(0x205)][_0x8605f8(0x238)]?a124_0x352d0f['green'](_0x8605f8(0x1d1)+_0x58bd8f[_0x8605f8(0x205)][_0x8605f8(0x238)]['length']+')'):a124_0x352d0f[_0x8605f8(0x209)](_0x8605f8(0x1f0));console[_0x8605f8(0x21e)](_0x8605f8(0x1ee)+_0x23b6a2+'\x20\x20'+a124_0x352d0f[_0x8605f8(0x209)]('('+_0x58bd8f[_0x8605f8(0x205)][_0x8605f8(0x1ef)]+')'));const _0x16ae67=_0x58bd8f[_0x8605f8(0x1f4)]['value']?a124_0x352d0f[_0x8605f8(0x251)](_0x8605f8(0x1d1)+_0x58bd8f[_0x8605f8(0x1f4)][_0x8605f8(0x238)][_0x8605f8(0x1f2)]+')'):a124_0x352d0f['gray'](_0x8605f8(0x1f0));console[_0x8605f8(0x21e)](_0x8605f8(0x1cf)+_0x16ae67+'\x20\x20'+a124_0x352d0f[_0x8605f8(0x209)]('('+_0x58bd8f[_0x8605f8(0x1f4)][_0x8605f8(0x1ef)]+')'));}}console[_0x8605f8(0x21e)](),console[_0x8605f8(0x21e)](a124_0x352d0f[_0x8605f8(0x24f)](_0x8605f8(0x23c))),console[_0x8605f8(0x21e)](a124_0x352d0f['gray'](_0x8605f8(0x1d6)[_0x8605f8(0x1ea)](0x1e)));_0x2d0a6a?console[_0x8605f8(0x21e)](_0x8605f8(0x243)+a124_0x352d0f[_0x8605f8(0x229)](_0x8605f8(0x1d7))):(console[_0x8605f8(0x21e)]('\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+getActiveRegion()),console[_0x8605f8(0x21e)](_0x8605f8(0x1cb)+getApiDomain()),console[_0x8605f8(0x21e)](_0x8605f8(0x242)+getUserDomain()),console[_0x8605f8(0x21e)](_0x8605f8(0x1d2)+getRuntimeDomain()),console[_0x8605f8(0x21e)](_0x8605f8(0x237)+getSkillDomain()),console['log'](_0x8605f8(0x1c5)+getKbDomain()),console[_0x8605f8(0x21e)](_0x8605f8(0x212)+(getKbServiceDomain()??'not\x20configured')),console[_0x8605f8(0x21e)](_0x8605f8(0x1dd)+getAppDomain()));console[_0x8605f8(0x21e)](),console[_0x8605f8(0x21e)](a124_0x352d0f[_0x8605f8(0x24f)](_0x8605f8(0x241))),console[_0x8605f8(0x21e)](a124_0x352d0f[_0x8605f8(0x209)](_0x8605f8(0x1d6)[_0x8605f8(0x1ea)](0x1e)));if(_0x2d0a6a)console['log'](_0x8605f8(0x243)+a124_0x352d0f[_0x8605f8(0x1c9)](_0x8605f8(0x223)));else{if(_0x6382e7){const _0x172a33=await getIsSessionValid();console[_0x8605f8(0x21e)](_0x8605f8(0x243)+(_0x172a33?a124_0x352d0f[_0x8605f8(0x251)]('✓\x20Valid'):a124_0x352d0f[_0x8605f8(0x229)]('✗\x20Expired')));}else console[_0x8605f8(0x21e)](_0x8605f8(0x243)+a124_0x352d0f[_0x8605f8(0x229)](_0x8605f8(0x20f)));}return console[_0x8605f8(0x21e)](),{'ok':!![]};}export const doctorDefinition={'service':a124_0x193295(0x1c4),'command':a124_0x193295(0x1c1),'description':a124_0x193295(0x1f8),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
@@ -1 +1 @@
1
- const a125_0x198b3a=a125_0x1d42;(function(_0x5ca663,_0x24f1a1){const _0x23c949=a125_0x1d42,_0x51c6d2=_0x5ca663();while(!![]){try{const _0x5c9f73=-parseInt(_0x23c949(0x1a6))/0x1+parseInt(_0x23c949(0x1a3))/0x2+-parseInt(_0x23c949(0x1a9))/0x3*(parseInt(_0x23c949(0x1a1))/0x4)+parseInt(_0x23c949(0x1a0))/0x5+-parseInt(_0x23c949(0x198))/0x6*(-parseInt(_0x23c949(0x1ac))/0x7)+parseInt(_0x23c949(0x1b3))/0x8*(-parseInt(_0x23c949(0x19b))/0x9)+parseInt(_0x23c949(0x1b1))/0xa;if(_0x5c9f73===_0x24f1a1)break;else _0x51c6d2['push'](_0x51c6d2['shift']());}catch(_0x3a4788){_0x51c6d2['push'](_0x51c6d2['shift']());}}}(a125_0x3f50,0xd0123));import{requireDevelopmentUploadFile}from'../../commands/common/local-file.js';import{queryDevelopmentFileUrl,uploadDevelopmentFile}from'../../core/api-client.js';function a125_0x1d42(_0x557f27,_0x199c17){_0x557f27=_0x557f27-0x193;const _0x3f5017=a125_0x3f50();let _0x1d4244=_0x3f5017[_0x557f27];return _0x1d4244;}import{CliErrors}from'../../errors.js';const FILE_FLAG={'name':a125_0x198b3a(0x193),'type':a125_0x198b3a(0x19e),'required':!![],'description':a125_0x198b3a(0x1a5)},FILEPATH_FLAG={'name':a125_0x198b3a(0x1aa),'type':'string','required':!![],'description':'Development\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data'},DOWNLOAD_FLAG={'name':a125_0x198b3a(0x1ae),'type':a125_0x198b3a(0x195),'description':'Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL'},LONG_TERM_FLAG={'name':a125_0x198b3a(0x19c),'type':a125_0x198b3a(0x195),'description':a125_0x198b3a(0x1a7)};function requireFilePath(_0x3b2ef0){const _0x53752b=a125_0x198b3a,_0x1ae6dc=_0x3b2ef0['trim']();if(!_0x1ae6dc)throw CliErrors[_0x53752b(0x1ab)]('filePath\x20is\x20required.');return _0x1ae6dc;}const fileUpload={'service':'file','command':a125_0x198b3a(0x1ad),'description':a125_0x198b3a(0x1b4),'risk':'read','flags':[FILE_FLAG],async 'dryRun'(_0x273969){const _0x5c8d08=a125_0x198b3a,_0x5f2ceb=requireDevelopmentUploadFile(_0x273969[_0x5c8d08(0x1af)](_0x5c8d08(0x193)),'File');return{'method':'POST','url':_0x5c8d08(0x1a8),'body':{'appCode':_0x273969[_0x5c8d08(0x197)],'multipart':{'file':_0x5f2ceb}},'description':_0x5c8d08(0x196)+_0x5f2ceb[_0x5c8d08(0x194)]+_0x5c8d08(0x19a)+_0x273969[_0x5c8d08(0x197)]};},async 'execute'(_0x3e17f4){const _0x439774=a125_0x198b3a,_0xf3ea1a=requireDevelopmentUploadFile(_0x3e17f4[_0x439774(0x1af)]('file'),_0x439774(0x199)),_0x21a5da=await uploadDevelopmentFile(_0x3e17f4[_0x439774(0x197)],_0xf3ea1a[_0x439774(0x194)]);return{'ok':!![],'data':_0x21a5da,'message':_0x21a5da[_0x439774(0x1b0)]?'Uploaded\x20file:\x20'+_0x21a5da[_0x439774(0x1b0)]+_0x439774(0x1b2):'Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.'};}},fileQueryUrl={'service':a125_0x198b3a(0x193),'command':a125_0x198b3a(0x19d),'description':a125_0x198b3a(0x1a2),'risk':a125_0x198b3a(0x1a4),'flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0x44cd31){const _0x5ce3a6=a125_0x198b3a,_0x1eb860=requireFilePath(_0x44cd31[_0x5ce3a6(0x1af)](_0x5ce3a6(0x1aa))),_0x22764d=await queryDevelopmentFileUrl(_0x1eb860,{'download':_0x44cd31[_0x5ce3a6(0x19f)](_0x5ce3a6(0x1ae)),'longTerm':_0x44cd31[_0x5ce3a6(0x19f)](_0x5ce3a6(0x19c))});return{'ok':!![],'data':_0x22764d};}};function a125_0x3f50(){const _0x3f88f2=['File','\x20to\x20development\x20app\x20','9PozaQl','long-term','query-url','string','bool','2444385sywRUr','945044WuLoSN','Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20or\x20immediate\x20access','1829278fAGEpg','read','Path\x20to\x20the\x20local\x20file\x20to\x20upload','1425249PxFnuQ','Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML','/smartapi/common/uploadFile','12SwqWxa','filepath','validation','14IMLXVd','upload','download','str','filePath','30485920hlsayX','.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','13302096CyjTgc','Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','file','path','boolean','Preview:\x20upload\x20','appCode','1299618izxMyv'];a125_0x3f50=function(){return _0x3f88f2;};return a125_0x3f50();}export const fileDefinitions=[fileUpload,fileQueryUrl];
1
+ function a125_0xc500(_0x46524f,_0x2f8629){_0x46524f=_0x46524f-0x16a;const _0x19eec7=a125_0x19ee();let _0xc50024=_0x19eec7[_0x46524f];return _0xc50024;}const a125_0x2df328=a125_0xc500;function a125_0x19ee(){const _0x145771=['6JAqSQi','233388ZbwUSB','filePath','query-url','12074PMEWJC','str','1892oBjpuw','Development\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data','/smartapi/common/uploadFile','Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL','44250BQTYnj','Preview:\x20upload\x20','12208224ThrMQM','Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML','3193715XBIrpx','File','file','filepath','\x20to\x20development\x20app\x20','boolean','string','Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','bool','path','81MskHkH','long-term','Uploaded\x20file:\x20','Path\x20to\x20the\x20local\x20file\x20to\x20upload','filePath\x20is\x20required.','read','appCode','download','4259331ujGuGY','1178010eIxVJw','73lQofHL'];a125_0x19ee=function(){return _0x145771;};return a125_0x19ee();}(function(_0x15b2ec,_0x1bd3c5){const _0x402c93=a125_0xc500,_0x1d0505=_0x15b2ec();while(!![]){try{const _0x35f754=parseInt(_0x402c93(0x189))/0x1*(parseInt(_0x402c93(0x16b))/0x2)+parseInt(_0x402c93(0x17f))/0x3*(-parseInt(_0x402c93(0x18b))/0x4)+parseInt(_0x402c93(0x188))/0x5+parseInt(_0x402c93(0x18a))/0x6*(parseInt(_0x402c93(0x175))/0x7)+parseInt(_0x402c93(0x173))/0x8+parseInt(_0x402c93(0x187))/0x9+parseInt(_0x402c93(0x171))/0xa*(-parseInt(_0x402c93(0x16d))/0xb);if(_0x35f754===_0x1bd3c5)break;else _0x1d0505['push'](_0x1d0505['shift']());}catch(_0x7e590){_0x1d0505['push'](_0x1d0505['shift']());}}}(a125_0x19ee,0xc22e6));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':'file','type':a125_0x2df328(0x17b),'required':!![],'description':a125_0x2df328(0x182)},FILEPATH_FLAG={'name':a125_0x2df328(0x178),'type':a125_0x2df328(0x17b),'required':!![],'description':a125_0x2df328(0x16e)},DOWNLOAD_FLAG={'name':a125_0x2df328(0x186),'type':a125_0x2df328(0x17a),'description':a125_0x2df328(0x170)},LONG_TERM_FLAG={'name':'long-term','type':a125_0x2df328(0x17a),'description':a125_0x2df328(0x174)};function requireFilePath(_0x5cb15e){const _0x4b21b5=a125_0x2df328,_0x49f44=_0x5cb15e['trim']();if(!_0x49f44)throw CliErrors['validation'](_0x4b21b5(0x183));return _0x49f44;}const fileUpload={'service':a125_0x2df328(0x177),'command':'upload','description':a125_0x2df328(0x17c),'risk':a125_0x2df328(0x184),'flags':[FILE_FLAG],async 'dryRun'(_0x39e2f5){const _0x4cd29e=a125_0x2df328,_0x20648f=requireDevelopmentUploadFile(_0x39e2f5[_0x4cd29e(0x16c)]('file'),_0x4cd29e(0x176));return{'method':'POST','url':_0x4cd29e(0x16f),'body':{'appCode':_0x39e2f5[_0x4cd29e(0x185)],'multipart':{'file':_0x20648f}},'description':_0x4cd29e(0x172)+_0x20648f['path']+_0x4cd29e(0x179)+_0x39e2f5[_0x4cd29e(0x185)]};},async 'execute'(_0x4a57bd){const _0x5de438=a125_0x2df328,_0x2b0db5=requireDevelopmentUploadFile(_0x4a57bd[_0x5de438(0x16c)](_0x5de438(0x177)),_0x5de438(0x176)),_0x3132cc=await uploadDevelopmentFile(_0x4a57bd[_0x5de438(0x185)],_0x2b0db5[_0x5de438(0x17e)]);return{'ok':!![],'data':_0x3132cc,'message':_0x3132cc[_0x5de438(0x18c)]?_0x5de438(0x181)+_0x3132cc[_0x5de438(0x18c)]+'.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.':'Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.'};}},fileQueryUrl={'service':'file','command':a125_0x2df328(0x16a),'description':'Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20or\x20immediate\x20access','risk':a125_0x2df328(0x184),'flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0x24af4c){const _0x2f9772=a125_0x2df328,_0x15e340=requireFilePath(_0x24af4c['str']('filepath')),_0x118912=await queryDevelopmentFileUrl(_0x15e340,{'download':_0x24af4c[_0x2f9772(0x17d)]('download'),'longTerm':_0x24af4c[_0x2f9772(0x17d)](_0x2f9772(0x180))});return{'ok':!![],'data':_0x118912};}};export const fileDefinitions=[fileUpload,fileQueryUrl];
@@ -1 +1 @@
1
- const a126_0x38dd93=a126_0x56f8;(function(_0x141c6b,_0x34f4a8){const _0x1e3e39=a126_0x56f8,_0x5b8b3b=_0x141c6b();while(!![]){try{const _0x475837=parseInt(_0x1e3e39(0x1d7))/0x1+parseInt(_0x1e3e39(0x1e1))/0x2*(parseInt(_0x1e3e39(0x1dd))/0x3)+-parseInt(_0x1e3e39(0x1de))/0x4+parseInt(_0x1e3e39(0x1d8))/0x5+-parseInt(_0x1e3e39(0x1e0))/0x6+-parseInt(_0x1e3e39(0x1e5))/0x7+parseInt(_0x1e3e39(0x1e7))/0x8*(parseInt(_0x1e3e39(0x1df))/0x9);if(_0x475837===_0x34f4a8)break;else _0x5b8b3b['push'](_0x5b8b3b['shift']());}catch(_0x49e8ba){_0x5b8b3b['push'](_0x5b8b3b['shift']());}}}(a126_0x535b,0x306bc));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{asDryRunResult}from'../../commands/common/dry-run.js';function a126_0x535b(){const _0x402633=['.\x20Flow\x20URL:\x20','create','Create\x20a\x20draft\x20flow\x20definition\x20from\x20a\x20local\x20FlowConfig\x20file','datasetCode','90prIgjL','51352OYwqfx','2432655VNPAuh','1484082OHzyyS','464aaOoVL','write','appCode','Created\x20flow\x20','1789620BsaYpF','flowName','8ioKpzr','flow','POST','331143pFRhhw','528895wnBjEc'];a126_0x535b=function(){return _0x402633;};return a126_0x535b();}import{createFlowDefinition}from'../../core/api-client.js';import{FLOW_FILE_FLAG,FLOW_PATHS,buildFlowUrl,confirmFlowWrite,flowSelector,prepareFlowWrite,readFlowFilePath}from'../../commands/flow/shared.js';function a126_0x56f8(_0x1a645b,_0x3907ad){_0x1a645b=_0x1a645b-0x1d5;const _0x535bec=a126_0x535b();let _0x56f84b=_0x535bec[_0x1a645b];return _0x56f84b;}export const flowCreate={'service':a126_0x38dd93(0x1d5),'command':a126_0x38dd93(0x1da),'description':a126_0x38dd93(0x1db),'risk':a126_0x38dd93(0x1e2),'flags':[FLOW_FILE_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x1566bc){readFlowFilePath(_0x1566bc);},async 'dryRun'(_0x384ada){const _0x3423bc=a126_0x38dd93,{request:_0x347ce1,warnings:_0x29c30b}=await prepareFlowWrite(readFlowFilePath(_0x384ada),_0x384ada[_0x3423bc(0x1e3)]);return asDryRunResult({'operation':_0x3423bc(0x1da),'selector':{'appCode':_0x384ada[_0x3423bc(0x1e3)],'flowName':_0x347ce1[_0x3423bc(0x1e6)],..._0x347ce1[_0x3423bc(0x1dc)]?{'datasetCode':_0x347ce1[_0x3423bc(0x1dc)]}:{}},'before':null,'after':_0x347ce1,'request':_0x347ce1,'dryRun':!![],'backend':{'method':_0x3423bc(0x1d6),'path':FLOW_PATHS[_0x3423bc(0x1da)]},'warnings':_0x29c30b},{'method':'POST','url':FLOW_PATHS['create']});},async 'execute'(_0x18ae0f){const _0x4e3eb9=a126_0x38dd93,{request:_0x23ad73,warnings:_0x1a0eda}=await prepareFlowWrite(readFlowFilePath(_0x18ae0f),_0x18ae0f[_0x4e3eb9(0x1e3)]);await confirmFlowWrite(_0x18ae0f,_0x4e3eb9(0x1da),_0x23ad73);const _0x44e3eb=await createFlowDefinition(_0x23ad73),_0x1a0cad=buildFlowUrl(_0x18ae0f[_0x4e3eb9(0x1e3)],_0x44e3eb['id']),_0x339bd6=''+(_0x44e3eb[_0x4e3eb9(0x1e6)]||_0x23ad73[_0x4e3eb9(0x1e6)])+(_0x44e3eb['id']?'\x20(id='+_0x44e3eb['id']+')':'');return{'ok':!![],'data':{'operation':_0x4e3eb9(0x1da),'selector':flowSelector(_0x18ae0f[_0x4e3eb9(0x1e3)],_0x44e3eb['id'],_0x44e3eb),'before':null,'after':_0x44e3eb,'flowUrl':_0x1a0cad,'dryRun':![],'backend':{'method':_0x4e3eb9(0x1d6),'path':FLOW_PATHS[_0x4e3eb9(0x1da)]},'warnings':_0x1a0eda},'message':_0x4e3eb9(0x1e4)+_0x339bd6+_0x4e3eb9(0x1d9)+_0x1a0cad};}};
1
+ const a126_0xc98ce9=a126_0x5553;function a126_0x5553(_0x553e36,_0x509680){_0x553e36=_0x553e36-0x10c;const _0x8f6de0=a126_0x8f6d();let _0x5553d4=_0x8f6de0[_0x553e36];return _0x5553d4;}(function(_0x4cf85b,_0xd7178a){const _0x1c9952=a126_0x5553,_0x522462=_0x4cf85b();while(!![]){try{const _0x1d422e=parseInt(_0x1c9952(0x115))/0x1*(parseInt(_0x1c9952(0x119))/0x2)+parseInt(_0x1c9952(0x114))/0x3+-parseInt(_0x1c9952(0x11a))/0x4+-parseInt(_0x1c9952(0x10f))/0x5+parseInt(_0x1c9952(0x117))/0x6*(-parseInt(_0x1c9952(0x11b))/0x7)+parseInt(_0x1c9952(0x11c))/0x8*(-parseInt(_0x1c9952(0x11e))/0x9)+-parseInt(_0x1c9952(0x111))/0xa*(-parseInt(_0x1c9952(0x116))/0xb);if(_0x1d422e===_0xd7178a)break;else _0x522462['push'](_0x522462['shift']());}catch(_0x40f84a){_0x522462['push'](_0x522462['shift']());}}}(a126_0x8f6d,0xb6da6));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a126_0x8f6d(){const _0x1cee5d=['306117ykgeOC','appCode','Created\x20flow\x20','create','POST','3644115CVnpPv','\x20(id=','22204330WaVmwV','flow','flowName','629250bBJrPL','214823fPbNfn','11uYQLUQ','3768mORfwu','Create\x20a\x20draft\x20flow\x20definition\x20from\x20a\x20local\x20FlowConfig\x20file','10piGXym','5133708oTEwgC','2975pzQAyA','112dAyWMz','datasetCode'];a126_0x8f6d=function(){return _0x1cee5d;};return a126_0x8f6d();}import{asDryRunResult}from'../../commands/common/dry-run.js';import{createFlowDefinition}from'../../core/api-client.js';import{FLOW_FILE_FLAG,FLOW_PATHS,buildFlowUrl,confirmFlowWrite,flowSelector,prepareFlowWrite,readFlowFilePath}from'../../commands/flow/shared.js';export const flowCreate={'service':a126_0xc98ce9(0x112),'command':a126_0xc98ce9(0x10d),'description':a126_0xc98ce9(0x118),'risk':'write','flags':[FLOW_FILE_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x511992){readFlowFilePath(_0x511992);},async 'dryRun'(_0x470cef){const _0x434fcc=a126_0xc98ce9,{request:_0x30fc16,warnings:_0x2764ec}=await prepareFlowWrite(readFlowFilePath(_0x470cef),_0x470cef[_0x434fcc(0x11f)]);return asDryRunResult({'operation':_0x434fcc(0x10d),'selector':{'appCode':_0x470cef['appCode'],'flowName':_0x30fc16['flowName'],..._0x30fc16[_0x434fcc(0x11d)]?{'datasetCode':_0x30fc16[_0x434fcc(0x11d)]}:{}},'before':null,'after':_0x30fc16,'request':_0x30fc16,'dryRun':!![],'backend':{'method':_0x434fcc(0x10e),'path':FLOW_PATHS[_0x434fcc(0x10d)]},'warnings':_0x2764ec},{'method':'POST','url':FLOW_PATHS[_0x434fcc(0x10d)]});},async 'execute'(_0x4c6628){const _0x315632=a126_0xc98ce9,{request:_0x2de601,warnings:_0x363925}=await prepareFlowWrite(readFlowFilePath(_0x4c6628),_0x4c6628[_0x315632(0x11f)]);await confirmFlowWrite(_0x4c6628,_0x315632(0x10d),_0x2de601);const _0x5db2cf=await createFlowDefinition(_0x2de601),_0x3a08c3=buildFlowUrl(_0x4c6628[_0x315632(0x11f)],_0x5db2cf['id']),_0xbcc5ab=''+(_0x5db2cf[_0x315632(0x113)]||_0x2de601[_0x315632(0x113)])+(_0x5db2cf['id']?_0x315632(0x110)+_0x5db2cf['id']+')':'');return{'ok':!![],'data':{'operation':_0x315632(0x10d),'selector':flowSelector(_0x4c6628['appCode'],_0x5db2cf['id'],_0x5db2cf),'before':null,'after':_0x5db2cf,'flowUrl':_0x3a08c3,'dryRun':![],'backend':{'method':_0x315632(0x10e),'path':FLOW_PATHS[_0x315632(0x10d)]},'warnings':_0x363925},'message':_0x315632(0x10c)+_0xbcc5ab+'.\x20Flow\x20URL:\x20'+_0x3a08c3};}};
@@ -1 +1 @@
1
- function a127_0x427f(){const _0x4a7e7b=['code','946260ubxrnM','path','2762RXbhMp','appCode','37595yHEqps','648823pueWwa','Overwrite\x20an\x20existing\x20output\x20file','flowName','Wrote\x20FlowConfig\x20for\x20','36rjoSWh','4efiikf','str','warnings','force','Write\x20a\x20portable\x20normalized\x20FlowConfig\x20JSON\x20file','425920TTxZCs','trim','string','249279BxoTLh','2780280RCwAbQ','validation','flowCode','config','bool','read','36jTWgcv','22UiQnna','79gRjhBG','FlowConfig\x20output\x20already\x20exists:\x20','ENOENT','Pass\x20--force\x20to\x20overwrite\x20it.'];a127_0x427f=function(){return _0x4a7e7b;};return a127_0x427f();}const a127_0x31337c=a127_0x2105;(function(_0x20f03f,_0x27e09f){const _0x5caba3=a127_0x2105,_0x4087b1=_0x20f03f();while(!![]){try{const _0x41121d=parseInt(_0x5caba3(0x119))/0x1*(-parseInt(_0x5caba3(0x120))/0x2)+-parseInt(_0x5caba3(0x110))/0x3*(parseInt(_0x5caba3(0x128))/0x4)+-parseInt(_0x5caba3(0x122))/0x5*(parseInt(_0x5caba3(0x117))/0x6)+parseInt(_0x5caba3(0x123))/0x7+parseInt(_0x5caba3(0x10d))/0x8*(parseInt(_0x5caba3(0x127))/0x9)+-parseInt(_0x5caba3(0x11e))/0xa*(parseInt(_0x5caba3(0x118))/0xb)+parseInt(_0x5caba3(0x111))/0xc;if(_0x41121d===_0x27e09f)break;else _0x4087b1['push'](_0x4087b1['shift']());}catch(_0x111c97){_0x4087b1['push'](_0x4087b1['shift']());}}}(a127_0x427f,0x1b0bd));import{mkdir,stat}from'node:fs/promises';import{dirname,resolve}from'node:path';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a127_0x2105(_0x5b7773,_0x47c96c){_0x5b7773=_0x5b7773-0x10a;const _0x427f92=a127_0x427f();let _0x21056a=_0x427f92[_0x5b7773];return _0x21056a;}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':'flow','command':'detail','description':'Get\x20one\x20design-time\x20flow\x20definition','risk':a127_0x31337c(0x116),'flags':[FLOW_ID_FLAG,{'name':'output','type':a127_0x31337c(0x10f),'description':a127_0x31337c(0x10c)},{'name':a127_0x31337c(0x10b),'type':'boolean','description':a127_0x31337c(0x124)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x5307ee){readFlowId(_0x5307ee);},async 'execute'(_0x3623a3){const _0x23f85d=a127_0x31337c,_0x59b42f=readFlowId(_0x3623a3),_0x273def=_0x3623a3[_0x23f85d(0x129)]('output')[_0x23f85d(0x10e)](),_0x1a3ed3=_0x273def?resolve(_0x273def):undefined;if(_0x1a3ed3&&!_0x3623a3[_0x23f85d(0x115)](_0x23f85d(0x10b))&&await fileExists(_0x1a3ed3))throw CliErrors[_0x23f85d(0x112)](_0x23f85d(0x11a)+_0x1a3ed3,'Pass\x20--force\x20to\x20overwrite\x20it.');const _0x32e776=await getFlowDefinition(_0x3623a3[_0x23f85d(0x121)],_0x59b42f);let _0x15497c;if(_0x1a3ed3){const _0x42eec6=flowDefinitionToConfig(_0x32e776);await mkdir(dirname(_0x1a3ed3),{'recursive':!![]});try{await writeNormalizedFlowConfig(_0x1a3ed3,_0x42eec6[_0x23f85d(0x114)],{'overwrite':_0x3623a3[_0x23f85d(0x115)](_0x23f85d(0x10b))});}catch(_0x197391){if(isAlreadyExistsError(_0x197391))throw CliErrors[_0x23f85d(0x112)](_0x23f85d(0x11a)+_0x1a3ed3,_0x23f85d(0x11c));throw _0x197391;}_0x15497c={'path':_0x1a3ed3,'warnings':_0x42eec6[_0x23f85d(0x10a)]};}return{'ok':!![],'data':{'flow':_0x32e776,..._0x15497c?{'output':_0x15497c}:{}},'message':_0x15497c?_0x23f85d(0x126)+(_0x32e776[_0x23f85d(0x125)]||_0x32e776[_0x23f85d(0x113)]||_0x59b42f)+'\x20to\x20'+_0x15497c[_0x23f85d(0x11f)]:'Flow\x20'+(_0x32e776['flowName']||_0x32e776[_0x23f85d(0x113)]||_0x59b42f)};}};async function fileExists(_0x2bda9d){try{return await stat(_0x2bda9d),!![];}catch(_0x4710bf){return!isNotFoundError(_0x4710bf);}}function isNotFoundError(_0x1d256e){const _0x2930ce=a127_0x31337c;return _0x1d256e?.[_0x2930ce(0x11d)]===_0x2930ce(0x11b);}function isAlreadyExistsError(_0x3201c){const _0x480765=a127_0x31337c;return _0x3201c?.[_0x480765(0x11d)]==='EEXIST';}
1
+ const a127_0x3862de=a127_0x3a2e;(function(_0x3e439a,_0x29b4a4){const _0x4a1a92=a127_0x3a2e,_0x17dfa9=_0x3e439a();while(!![]){try{const _0xdc46f9=-parseInt(_0x4a1a92(0x1c4))/0x1*(-parseInt(_0x4a1a92(0x1d2))/0x2)+-parseInt(_0x4a1a92(0x1b8))/0x3*(-parseInt(_0x4a1a92(0x1c1))/0x4)+-parseInt(_0x4a1a92(0x1bb))/0x5+-parseInt(_0x4a1a92(0x1c0))/0x6+-parseInt(_0x4a1a92(0x1ca))/0x7*(parseInt(_0x4a1a92(0x1c3))/0x8)+-parseInt(_0x4a1a92(0x1c8))/0x9+parseInt(_0x4a1a92(0x1b5))/0xa*(parseInt(_0x4a1a92(0x1c6))/0xb);if(_0xdc46f9===_0x29b4a4)break;else _0x17dfa9['push'](_0x17dfa9['shift']());}catch(_0x371807){_0x17dfa9['push'](_0x17dfa9['shift']());}}}(a127_0xd5ee,0x7440c));import{mkdir,stat}from'node:fs/promises';import{dirname,resolve}from'node:path';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a127_0x3a2e(_0x1caf00,_0x1ddab3){_0x1caf00=_0x1caf00-0x1b5;const _0xd5ee26=a127_0xd5ee();let _0x3a2efb=_0xd5ee26[_0x1caf00];return _0x3a2efb;}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_0x3862de(0x1d0),'command':a127_0x3862de(0x1cd),'description':a127_0x3862de(0x1d3),'risk':a127_0x3862de(0x1d1),'flags':[FLOW_ID_FLAG,{'name':'output','type':'string','description':a127_0x3862de(0x1b7)},{'name':a127_0x3862de(0x1ba),'type':a127_0x3862de(0x1b9),'description':a127_0x3862de(0x1c7)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x3c2af3){readFlowId(_0x3c2af3);},async 'execute'(_0x731e9){const _0x54d55d=a127_0x3862de,_0x2b8858=readFlowId(_0x731e9),_0x3117d4=_0x731e9[_0x54d55d(0x1bc)](_0x54d55d(0x1cc))['trim'](),_0x361d57=_0x3117d4?resolve(_0x3117d4):undefined;if(_0x361d57&&!_0x731e9['bool'](_0x54d55d(0x1ba))&&await fileExists(_0x361d57))throw CliErrors[_0x54d55d(0x1c9)](_0x54d55d(0x1d5)+_0x361d57,_0x54d55d(0x1b6));const _0x25b564=await getFlowDefinition(_0x731e9[_0x54d55d(0x1c5)],_0x2b8858);let _0x30bc87;if(_0x361d57){const _0xd85faf=flowDefinitionToConfig(_0x25b564);await mkdir(dirname(_0x361d57),{'recursive':!![]});try{await writeNormalizedFlowConfig(_0x361d57,_0xd85faf['config'],{'overwrite':_0x731e9[_0x54d55d(0x1c2)](_0x54d55d(0x1ba))});}catch(_0x1f3cdd){if(isAlreadyExistsError(_0x1f3cdd))throw CliErrors['validation'](_0x54d55d(0x1d5)+_0x361d57,'Pass\x20--force\x20to\x20overwrite\x20it.');throw _0x1f3cdd;}_0x30bc87={'path':_0x361d57,'warnings':_0xd85faf['warnings']};}return{'ok':!![],'data':{'flow':_0x25b564,..._0x30bc87?{'output':_0x30bc87}:{}},'message':_0x30bc87?_0x54d55d(0x1ce)+(_0x25b564[_0x54d55d(0x1bf)]||_0x25b564[_0x54d55d(0x1cf)]||_0x2b8858)+_0x54d55d(0x1bd)+_0x30bc87[_0x54d55d(0x1d4)]:'Flow\x20'+(_0x25b564[_0x54d55d(0x1bf)]||_0x25b564[_0x54d55d(0x1cf)]||_0x2b8858)};}};async function fileExists(_0x15f666){try{return await stat(_0x15f666),!![];}catch(_0xf4dbe7){return!isNotFoundError(_0xf4dbe7);}}function a127_0xd5ee(){const _0x3af959=['240JvWWfZ','Pass\x20--force\x20to\x20overwrite\x20it.','Write\x20a\x20portable\x20normalized\x20FlowConfig\x20JSON\x20file','3jsvZqW','boolean','force','3066935vBZsCC','str','\x20to\x20','code','flowName','959190WPnbuf','481688pkMzRz','bool','3184ohYNDv','52816qTYuZc','appCode','909381xCdUiS','Overwrite\x20an\x20existing\x20output\x20file','8072154dTEroC','validation','8554WUTHdW','ENOENT','output','detail','Wrote\x20FlowConfig\x20for\x20','flowCode','flow','read','20UQnSkw','Get\x20one\x20design-time\x20flow\x20definition','path','FlowConfig\x20output\x20already\x20exists:\x20'];a127_0xd5ee=function(){return _0x3af959;};return a127_0xd5ee();}function isNotFoundError(_0x4e515a){const _0x20e93e=a127_0x3862de;return _0x4e515a?.[_0x20e93e(0x1be)]===_0x20e93e(0x1cb);}function isAlreadyExistsError(_0x540d63){const _0x1fa579=a127_0x3862de;return _0x540d63?.[_0x1fa579(0x1be)]==='EEXIST';}