@lovrabet/rabetbase-cli 2.5.12-beta.1 → 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
- function a112_0x576f(_0x6a9c63,_0x567b90){_0x6a9c63=_0x6a9c63-0x93;const _0x37f4dd=a112_0x37f4();let _0x576fd1=_0x37f4dd[_0x6a9c63];return _0x576fd1;}const a112_0x327503=a112_0x576f;(function(_0x4420aa,_0x1e4573){const _0x49cca5=a112_0x576f,_0x5b7b0f=_0x4420aa();while(!![]){try{const _0x1441aa=-parseInt(_0x49cca5(0xb7))/0x1+-parseInt(_0x49cca5(0xb6))/0x2+-parseInt(_0x49cca5(0x98))/0x3+parseInt(_0x49cca5(0x9d))/0x4*(parseInt(_0x49cca5(0xbc))/0x5)+parseInt(_0x49cca5(0xb0))/0x6*(parseInt(_0x49cca5(0xaf))/0x7)+-parseInt(_0x49cca5(0x9e))/0x8+-parseInt(_0x49cca5(0xa8))/0x9*(-parseInt(_0x49cca5(0xa0))/0xa);if(_0x1441aa===_0x1e4573)break;else _0x5b7b0f['push'](_0x5b7b0f['shift']());}catch(_0x2adfa0){_0x5b7b0f['push'](_0x5b7b0f['shift']());}}}(a112_0x37f4,0x45209));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_0x327503(0xb4),'description':'Compare\x20datasets\x20with\x20physical\x20database\x20tables\x20and\x20show\x20schema\x20drift','risk':a112_0x327503(0x95),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a112_0x327503(0x9a),'type':'string','description':a112_0x327503(0x9f)},{'name':'page','type':'number','description':a112_0x327503(0x9c),'default':0x1},{'name':'pagesize','type':a112_0x327503(0xb3),'description':a112_0x327503(0xae),'default':0x14},{'name':a112_0x327503(0xbb),'type':a112_0x327503(0xa9),'description':a112_0x327503(0xab)}],async 'execute'(_0xc983d1){const _0x4ad528=a112_0x327503,_0x2875d8=_0xc983d1[_0x4ad528(0xa1)]('id'),_0x315e7f=_0xc983d1[_0x4ad528(0xb2)](_0x4ad528(0xbb)),_0x475e5a=_0x315e7f?0x1:_0xc983d1['num'](_0x4ad528(0xa3),0x1)||0x1,_0x55bb61=_0x315e7f?DB_TABLE_PAGE_SIZE:_0xc983d1[_0x4ad528(0xa1)](_0x4ad528(0x99),0x14)||0x14,_0x59bf35=_0xc983d1[_0x4ad528(0xac)]('table')||undefined,_0x29d12d=_0x315e7f?await getAllDbTableDiff(getDbTableDiff,_0xc983d1[_0x4ad528(0x96)],_0x2875d8,_0x59bf35):await getDbTableDiff(_0xc983d1[_0x4ad528(0x96)],_0x2875d8,{'pageIndex':_0x475e5a,'pageSize':_0x55bb61,'tableName':_0x59bf35}),_0x563ddc=_0x29d12d['tableList'],_0x35fda0=summarizeDbTableDiff(_0x563ddc),_0x5ea07a=_0x563ddc[_0x4ad528(0xba)](_0x59161a=>_0x59161a[_0x4ad528(0xa4)]===_0x4ad528(0x94)||_0x59161a[_0x4ad528(0xa4)]===_0x4ad528(0xb9))[_0x4ad528(0xa6)](_0x53aecd=>_0x53aecd[_0x4ad528(0xb1)]),_0xa2dd62=_0x563ddc[_0x4ad528(0xba)](_0x3cfb92=>_0x3cfb92[_0x4ad528(0xa4)]==='DELETED_TABLE')[_0x4ad528(0xa6)](_0xae7deb=>_0xae7deb[_0x4ad528(0xb1)]),_0x43eb89=_0x563ddc['filter'](_0x181500=>_0x181500[_0x4ad528(0xa4)]===_0x4ad528(0xb9))[_0x4ad528(0xa6)](_0x2efb10=>({'tableName':_0x2efb10[_0x4ad528(0xb1)],'addedColumns':_0x2efb10['fieldDiff']?.[_0x4ad528(0x97)]??[],'deletedColumns':_0x2efb10['fieldDiff']?.[_0x4ad528(0xb5)]??[],'modifiedColumns':_0x2efb10['fieldDiff']?.[_0x4ad528(0xa5)]??[]}));return{'ok':!![],'data':{'dbLinkId':_0x2875d8,'page':_0x475e5a,'pageSize':_0x55bb61,'totalCount':_0x29d12d[_0x4ad528(0x9b)],...typeof _0x29d12d[_0x4ad528(0xa2)]===_0x4ad528(0xb3)?{'physicalTableCount':_0x29d12d[_0x4ad528(0xa2)]}:{},...typeof _0x29d12d[_0x4ad528(0x93)]===_0x4ad528(0xb3)?{'datasetTableCount':_0x29d12d[_0x4ad528(0x93)]}:{},..._0x29d12d[_0x4ad528(0xaa)]?{'summary':_0x29d12d[_0x4ad528(0xaa)]}:{},'summaryByType':_0x35fda0,'toAnalyzeTables':_0x5ea07a,'deletedTables':_0xa2dd62,'modifiedFieldDiffs':_0x43eb89,'tables':_0x563ddc},'message':_0x563ddc[_0x4ad528(0xb8)]+_0x4ad528(0xa7)+_0x29d12d[_0x4ad528(0x9b)]+_0x4ad528(0xad)+_0x2875d8+')'};}};function a112_0x37f4(){const _0x21699c=['modifiedColumns','map','\x20changed\x20table\x20row(s),\x20total\x20','27oAHXOn','boolean','summary','Fetch\x20and\x20aggregate\x20every\x20page\x20(overrides\x20--page\x20and\x20--pagesize)','str','\x20(db\x20link\x20','Page\x20size','3098354CNDnwY','6xkfiIb','tableName','bool','number','diff','deletedColumns','300470wFlmNI','404476mFUAjX','length','MODIFIED_TABLE','filter','all','5fxRYXK','datasetTableCount','NEW_TABLE','read','appCode','addedColumns','1496370cqLkJp','pagesize','table','totalCount','Page\x20index\x20(1-based)','1819308oeAIQn','69120VKhkFL','Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)','1492790LjHunO','num','physicalTableCount','page','diffType'];a112_0x37f4=function(){return _0x21699c;};return a112_0x37f4();}
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(_0x347417,_0x56982a){const _0x297462=a113_0x2edf,_0xa64219=_0x347417();while(!![]){try{const _0x1f5059=parseInt(_0x297462(0x128))/0x1+parseInt(_0x297462(0x120))/0x2+parseInt(_0x297462(0x124))/0x3*(-parseInt(_0x297462(0x126))/0x4)+-parseInt(_0x297462(0x127))/0x5*(-parseInt(_0x297462(0x122))/0x6)+parseInt(_0x297462(0x125))/0x7*(parseInt(_0x297462(0x11f))/0x8)+parseInt(_0x297462(0x121))/0x9+-parseInt(_0x297462(0x123))/0xa;if(_0x1f5059===_0x56982a)break;else _0xa64219['push'](_0xa64219['shift']());}catch(_0x21f7d7){_0xa64219['push'](_0xa64219['shift']());}}}(a113_0x565e,0x4e027));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';function a113_0x565e(){const _0x4e5f6b=['581eZoOex','4ZyOWpG','40300QSzCum','153636dzfwpn','54536PIrpgw','388324SCYewz','2581155BrkpUY','132jdlwec','4523880LtRkRl','1817427mHoCfc'];a113_0x565e=function(){return _0x4e5f6b;};return a113_0x565e();}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';function a113_0x2edf(_0x400e3a,_0x19df37){_0x400e3a=_0x400e3a-0x11f;const _0x565ea9=a113_0x565e();let _0x2edfb9=_0x565ea9[_0x400e3a];return _0x2edfb9;}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
- function a114_0x27b3(){const _0x1478fd=['340208YATJJF','DB_TABLE','504aAAwfG','Page\x20index\x20(1-based)','length','\x20database\x20connection(s)','read','list','Server\x20omitted\x20paging\x20metadata;\x20totalCount\x20is\x20unknown\x20—\x20rowsOnPage\x20is\x20this\x20page\x20only','all','288967fRBmjU','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','10205883GsjXQF','762XzcjEy','394892UzRvvl','Found\x20','15NlQacO','80oZAzib','1259796qXaEqC','map','appCode','840952XCiKLM','page','pagesize','1689ltTtiB','num','Page\x20size','10OCqUOD'];a114_0x27b3=function(){return _0x1478fd;};return a114_0x27b3();}const a114_0xdbbf62=a114_0x2d1b;(function(_0x119049,_0x1a8198){const _0x122b88=a114_0x2d1b,_0xcc335d=_0x119049();while(!![]){try{const _0x579464=parseInt(_0x122b88(0xd0))/0x1+parseInt(_0x122b88(0xc8))/0x2*(parseInt(_0x122b88(0xd3))/0x3)+-parseInt(_0x122b88(0xc9))/0x4+-parseInt(_0x122b88(0xcb))/0x5*(parseInt(_0x122b88(0xcd))/0x6)+-parseInt(_0x122b88(0xc5))/0x7*(-parseInt(_0x122b88(0xcc))/0x8)+-parseInt(_0x122b88(0xc7))/0x9*(-parseInt(_0x122b88(0xd6))/0xa)+parseInt(_0x122b88(0xd7))/0xb*(-parseInt(_0x122b88(0xd9))/0xc);if(_0x579464===_0x1a8198)break;else _0xcc335d['push'](_0xcc335d['shift']());}catch(_0x5ca450){_0xcc335d['push'](_0xcc335d['shift']());}}}(a114_0x27b3,0x8c4bf));function a114_0x2d1b(_0x333802,_0x582a15){_0x333802=_0x333802-0xbe;const _0x27b37d=a114_0x27b3();let _0x2d1b5b=_0x27b37d[_0x333802];return _0x2d1b5b;}import{listDatasets,listDbLinks}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{buildDbDatasetDependency,sanitizeDbLinkForOutput}from'../../commands/db/shared.js';export const dbList={'service':'db','command':a114_0xdbbf62(0xc2),'description':a114_0xdbbf62(0xc6),'risk':a114_0xdbbf62(0xc1),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a114_0xdbbf62(0xd1),'type':'number','description':a114_0xdbbf62(0xbe),'default':0x1},{'name':a114_0xdbbf62(0xd2),'type':'number','description':a114_0xdbbf62(0xd5),'default':0x64}],async 'execute'(_0x26e6da){const _0x414d3a=a114_0xdbbf62,_0x12a50d=_0x26e6da[_0x414d3a(0xd4)](_0x414d3a(0xd1),0x1)||0x1,_0x9f58f7=_0x26e6da['num']('pagesize',0x64)||0x64,[{items:_0x5c4e72,paging:_0x2c95ac},_0x2511b7]=await Promise[_0x414d3a(0xc4)]([listDbLinks(_0x26e6da[_0x414d3a(0xcf)],{'currentPage':_0x12a50d,'pageSize':_0x9f58f7}),listDatasets(_0x26e6da[_0x414d3a(0xcf)],{'source':_0x414d3a(0xd8)})]),_0x4ae8d3=_0x5c4e72[_0x414d3a(0xce)](_0x1c95f0=>({...sanitizeDbLinkForOutput(_0x1c95f0),'datasetDependency':buildDbDatasetDependency(_0x1c95f0,_0x2511b7)['datasetDependency']})),_0x560e9c=_0x2c95ac?_0x2c95ac:{'currentPage':_0x12a50d,'pageSize':_0x9f58f7,'rowsOnPage':_0x4ae8d3[_0x414d3a(0xbf)],'totalCount':null,'note':_0x414d3a(0xc3)};return{'ok':!![],'data':{'connections':_0x4ae8d3,'paging':_0x560e9c},'message':_0x414d3a(0xca)+_0x4ae8d3['length']+_0x414d3a(0xc0)};}};
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(_0x2f7592,_0x14e310){const _0x1453a5=a115_0x57be,_0x4868a9=_0x2f7592();while(!![]){try{const _0x91201f=parseInt(_0x1453a5(0x1ae))/0x1*(parseInt(_0x1453a5(0x1a5))/0x2)+-parseInt(_0x1453a5(0x1ad))/0x3+-parseInt(_0x1453a5(0x1ac))/0x4*(parseInt(_0x1453a5(0x1b3))/0x5)+-parseInt(_0x1453a5(0x198))/0x6*(-parseInt(_0x1453a5(0x193))/0x7)+-parseInt(_0x1453a5(0x1b2))/0x8*(parseInt(_0x1453a5(0x1a7))/0x9)+parseInt(_0x1453a5(0x19e))/0xa*(parseInt(_0x1453a5(0x19d))/0xb)+-parseInt(_0x1453a5(0x1a0))/0xc*(-parseInt(_0x1453a5(0x1a1))/0xd);if(_0x91201f===_0x14e310)break;else _0x4868a9['push'](_0x4868a9['shift']());}catch(_0x296a38){_0x4868a9['push'](_0x4868a9['shift']());}}}(a115_0x5a47,0xe8d3f));import{testDbLinkConfigConnect}from'../../core/api-client.js';import{getAppBaseUrl}from'../../constant/domain.js';import{CliErrors}from'../../errors.js';function shouldRedactKey(_0x5435b9){const _0x484276=a115_0x57be,_0x4051ee=_0x5435b9[_0x484276(0x1aa)]();if(_0x4051ee===_0x484276(0x1a2)||_0x4051ee==='passwd'||_0x4051ee===_0x484276(0x197))return!![];if(_0x4051ee['includes']('secret')||_0x4051ee['includes']('token')||_0x4051ee['includes']('credential'))return!![];if(_0x4051ee['includes']('privatekey')||_0x4051ee[_0x484276(0x19f)](_0x484276(0x191)))return!![];if(_0x4051ee==='authorization'||_0x4051ee===_0x484276(0x18d)||_0x4051ee===_0x484276(0x199))return!![];return![];}export function sanitizeDbLinkForOutput(_0x37518d){const _0x478e7d=a115_0x57be,_0x3901ed={..._0x37518d};delete _0x3901ed[_0x478e7d(0x1a9)];for(const _0x432d26 of Object[_0x478e7d(0x196)](_0x3901ed)){if(!shouldRedactKey(_0x432d26))continue;const _0x1a4740=_0x3901ed[_0x432d26];_0x1a4740!=null&&String(_0x1a4740)['length']>0x0&&(_0x3901ed[_0x432d26]=_0x478e7d(0x19c));}return _0x3901ed;}export function sanitizeDbLinkList(_0x55d56c){const _0x4bc070=a115_0x57be;return _0x55d56c[_0x4bc070(0x194)](_0x48a2ac=>sanitizeDbLinkForOutput(_0x48a2ac));}export function buildDbDatasetDependency(_0x339766,_0x2a10f5){const _0x448961=a115_0x57be,_0x3bc690=_0x2a10f5[_0x448961(0x192)](_0x23c0d9=>Number(_0x23c0d9[_0x448961(0x1a8)]?.[_0x448961(0x1a4)])===Number(_0x339766['id']))[_0x448961(0x194)](_0x5e15ca=>({'id':_0x5e15ca['id'],'code':_0x5e15ca[_0x448961(0x1a6)],'name':_0x5e15ca[_0x448961(0x190)],..._0x5e15ca[_0x448961(0x1a8)]?.[_0x448961(0x195)]?{'tableName':_0x5e15ca[_0x448961(0x1a8)][_0x448961(0x195)]}:{}}));return{'datasetDependency':{'hasDependencies':_0x3bc690[_0x448961(0x1b0)]>0x0,'activeDatasetCount':_0x3bc690[_0x448961(0x1b0)]},'datasets':_0x3bc690};}function a115_0x5a47(){const _0xf476f4=['filter','4461653sEKypV','map','tableName','keys','dbpassword','6ZpIDiB','jdbcurl','The\x20configuration\x20was\x20not\x20saved.\x20Verify\x20the\x20host,\x20credentials,\x20database\x20name,\x20network,\x20and\x20allowlist,\x20or\x20explicitly\x20pass\x20--skip-connection-test.','number','[redacted]','4860438rwLJAG','10KQoYzF','includes','9672teSYiH','12454rNAzlV','password','test','dbId','794GKHAfd','code','6593751BUemMU','dbtableConfig','hasAvailableDo','toLowerCase','trim','5900764SgAHpo','1076640JAqpoh','4204GOEYZd','/data/database','length','isFinite','8yiNBiL','5oTHEdQ','connectionstring','Database\x20connection\x20preflight\x20failed.','/data/er?dbId=','name','accesskey'];a115_0x5a47=function(){return _0xf476f4;};return a115_0x5a47();}export async function assertDbLinkConnectionPreflight(_0x12acea){const _0x55dcf8=a115_0x57be,_0x4e00a0=await testDbLinkConfigConnect(_0x12acea);if(_0x4e00a0!==!![])throw CliErrors['apiError'](_0x55dcf8(0x18e),_0x55dcf8(0x19a));}const DB_URL_PATTERN=/^[^\s:]+(?::\d+)?$/;function a115_0x57be(_0x414978,_0x4e6503){_0x414978=_0x414978-0x18d;const _0x5a47f5=a115_0x5a47();let _0x57bece=_0x5a47f5[_0x414978];return _0x57bece;}export function validateDbUrl(_0x1c94fb){const _0x8a72d1=a115_0x57be,_0x1a5f06=_0x1c94fb['trim']();if(!_0x1a5f06)return![];return DB_URL_PATTERN[_0x8a72d1(0x1a3)](_0x1a5f06);}export function buildDbPageLinks(_0x363370,_0x51235b){const _0x19c7d5=a115_0x57be,_0x1c53fd=_0x363370?.[_0x19c7d5(0x1ab)]();if(!_0x1c53fd)return undefined;const _0x509780=typeof _0x51235b===_0x19c7d5(0x19b)?String(_0x51235b):String(_0x51235b??'')[_0x19c7d5(0x1ab)]();if(!_0x509780)return undefined;const _0x447b76=Number(_0x509780);if(!Number[_0x19c7d5(0x1b1)](_0x447b76)||_0x447b76<=0x0)return undefined;const _0x4e21a4=getAppBaseUrl(_0x1c53fd),_0x1bb6a5=encodeURIComponent(String(_0x447b76));return{'databasePage':_0x4e21a4+_0x19c7d5(0x1af),'erPage':_0x4e21a4+_0x19c7d5(0x18f)+_0x1bb6a5};}
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_0x49c239=a116_0x1593;function a116_0x575f(){const _0x477530=['48vOACps','length','DELETED_TABLE','tableList','set','validation','8139MPQNMT','325PGEyXB','10QsRghh','804jHXuyp','ALREADY_ANALYZED','fromEntries','summary','size','\x20row(s).','2818101CNPtbX','totalCount','897072vffILu','14RjsZEH','physicalTableCount','map','1572cHUZmz','137930UWmArv','datasetTableCount','3851703xRtzNp','Incomplete\x20db\x20table\x20pagination:\x20collected\x20','\x20of\x20','2196rZQKIp','number','12OAJoFa','filter'];a116_0x575f=function(){return _0x477530;};return a116_0x575f();}(function(_0x3a4d93,_0x25b32f){const _0x3a38af=a116_0x1593,_0x48fad4=_0x3a4d93();while(!![]){try{const _0x3e90de=-parseInt(_0x3a38af(0xff))/0x1*(-parseInt(_0x3a38af(0xf9))/0x2)+-parseInt(_0x3a38af(0xf5))/0x3*(-parseInt(_0x3a38af(0x102))/0x4)+parseInt(_0x3a38af(0xf0))/0x5*(-parseInt(_0x3a38af(0xf7))/0x6)+-parseInt(_0x3a38af(0xec))/0x7*(-parseInt(_0x3a38af(0xeb))/0x8)+parseInt(_0x3a38af(0xf2))/0x9*(-parseInt(_0x3a38af(0x101))/0xa)+parseInt(_0x3a38af(0xe9))/0xb+parseInt(_0x3a38af(0xef))/0xc*(parseInt(_0x3a38af(0x100))/0xd);if(_0x3e90de===_0x25b32f)break;else _0x48fad4['push'](_0x48fad4['shift']());}catch(_0x38a471){_0x48fad4['push'](_0x48fad4['shift']());}}}(a116_0x575f,0x53c17));import{CliErrors}from'../../errors.js';export const DB_TABLE_PAGE_SIZE=0x64;function a116_0x1593(_0x3aa32a,_0x2c9382){_0x3aa32a=_0x3aa32a-0xe6;const _0x575fa0=a116_0x575f();let _0x1593f8=_0x575fa0[_0x3aa32a];return _0x1593f8;}export const DB_TABLE_DIFF_TYPES=['NEW_TABLE','MODIFIED_TABLE',a116_0x49c239(0xfb),a116_0x49c239(0x103)];export function summarizeDbTableDiff(_0x3092be){const _0x598b72=a116_0x49c239;return Object[_0x598b72(0x104)](DB_TABLE_DIFF_TYPES[_0x598b72(0xee)](_0x40e751=>[_0x40e751,_0x3092be[_0x598b72(0xf8)](_0x15746c=>_0x15746c['diffType']===_0x40e751)[_0x598b72(0xfa)]]));}export async function getAllDbTableDiff(_0x232b5e,_0x1930ab,_0x780456,_0xf9f882){const _0x3b4816=a116_0x49c239,_0x308579=new Map();let _0x3e0906=0x1,_0x1f1c85=null;while(!![]){_0x1f1c85=await _0x232b5e(_0x1930ab,_0x780456,{'pageIndex':_0x3e0906,'pageSize':DB_TABLE_PAGE_SIZE,'tableName':_0xf9f882});const _0x579fd3=_0x308579[_0x3b4816(0xe7)];for(const _0x1bcf7e of _0x1f1c85[_0x3b4816(0xfc)]){_0x308579[_0x3b4816(0xfd)](_0x1bcf7e['tableName'],_0x1bcf7e);}if(_0x308579[_0x3b4816(0xe7)]>=_0x1f1c85['totalCount'])break;if(_0x1f1c85[_0x3b4816(0xfc)]['length']===0x0||_0x308579[_0x3b4816(0xe7)]===_0x579fd3)throw CliErrors[_0x3b4816(0xfe)](_0x3b4816(0xf3)+_0x308579['size']+_0x3b4816(0xf4)+_0x1f1c85['totalCount']+_0x3b4816(0xe8));_0x3e0906+=0x1;}return{'totalCount':_0x1f1c85?.[_0x3b4816(0xea)]??0x0,...typeof _0x1f1c85?.[_0x3b4816(0xed)]===_0x3b4816(0xf6)?{'physicalTableCount':_0x1f1c85['physicalTableCount']}:{},...typeof _0x1f1c85?.[_0x3b4816(0xf1)]===_0x3b4816(0xf6)?{'datasetTableCount':_0x1f1c85[_0x3b4816(0xf1)]}:{},..._0x1f1c85?.[_0x3b4816(0xe6)]?{'summary':_0x1f1c85[_0x3b4816(0xe6)]}:{},'tableList':[..._0x308579['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_0x35fbb5=a117_0x37fc;(function(_0x463aba,_0x1081e6){const _0x5aad46=a117_0x37fc,_0x9f2fa6=_0x463aba();while(!![]){try{const _0x1b95eb=-parseInt(_0x5aad46(0x174))/0x1+parseInt(_0x5aad46(0x188))/0x2*(-parseInt(_0x5aad46(0x176))/0x3)+parseInt(_0x5aad46(0x186))/0x4*(-parseInt(_0x5aad46(0x17c))/0x5)+-parseInt(_0x5aad46(0x18a))/0x6+parseInt(_0x5aad46(0x17e))/0x7*(-parseInt(_0x5aad46(0x17a))/0x8)+-parseInt(_0x5aad46(0x184))/0x9+-parseInt(_0x5aad46(0x187))/0xa*(-parseInt(_0x5aad46(0x18c))/0xb);if(_0x1b95eb===_0x1081e6)break;else _0x9f2fa6['push'](_0x9f2fa6['shift']());}catch(_0x325a53){_0x9f2fa6['push'](_0x9f2fa6['shift']());}}}(a117_0x4ef4,0x93dcd));function a117_0x4ef4(){const _0x17e666=['525AXtYck','length','21MweDsq','totalCount','summary','Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)','List\x20all\x20database\x20table\x20comparison\x20rows\x20and\x20analysis\x20states','table','801054ywZitp','string','8204eQsxeu','258520uSReHB','4itcYpm','appCode','6531744IGyOZR','number','1177WYrtPQ','547393IaQMoo','physicalTableCount','69468noQdGx','str','tableList','read','463544BWRgYE','datasetTableCount'];a117_0x4ef4=function(){return _0x17e666;};return a117_0x4ef4();}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_0x37fc(_0x1fca2e,_0x2e385a){_0x1fca2e=_0x1fca2e-0x174;const _0x4ef4bf=a117_0x4ef4();let _0x37fc97=_0x4ef4bf[_0x1fca2e];return _0x37fc97;}export const dbTables={'service':'db','command':'tables','description':a117_0x35fbb5(0x182),'risk':a117_0x35fbb5(0x179),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a117_0x35fbb5(0x183),'type':a117_0x35fbb5(0x185),'description':a117_0x35fbb5(0x181)}],async 'execute'(_0x45916b){const _0x35ba91=a117_0x35fbb5,_0x16d940=_0x45916b['num']('id'),_0x3a15c6=_0x45916b[_0x35ba91(0x177)](_0x35ba91(0x183))||undefined,_0x102242=await getAllDbTableDiff(getDbTableComparisonPage,_0x45916b[_0x35ba91(0x189)],_0x16d940,_0x3a15c6),_0x476022=_0x102242[_0x35ba91(0x178)];return{'ok':!![],'data':{'dbLinkId':_0x16d940,'totalCount':_0x102242[_0x35ba91(0x17f)],...typeof _0x102242[_0x35ba91(0x175)]===_0x35ba91(0x18b)?{'physicalTableCount':_0x102242[_0x35ba91(0x175)]}:{},...typeof _0x102242[_0x35ba91(0x17b)]===_0x35ba91(0x18b)?{'datasetTableCount':_0x102242[_0x35ba91(0x17b)]}:{},..._0x102242['summary']?{'summary':_0x102242[_0x35ba91(0x180)]}:{},'summaryByType':summarizeDbTableDiff(_0x476022),'tables':_0x476022},'message':_0x476022[_0x35ba91(0x17d)]+'\x20table\x20comparison\x20row(s),\x20total\x20'+_0x102242[_0x35ba91(0x17f)]+'\x20(db\x20link\x20'+_0x16d940+')'};}};
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_0x3244c9=a118_0x5b12;function a118_0x5b12(_0x588cd3,_0x47616e){_0x588cd3=_0x588cd3-0x85;const _0x2b5dbd=a118_0x2b5d();let _0x5b12cf=_0x2b5dbd[_0x588cd3];return _0x5b12cf;}(function(_0x2ea5cf,_0x58aec7){const _0x5e64cd=a118_0x5b12,_0x2ae38=_0x2ea5cf();while(!![]){try{const _0x2e02d2=parseInt(_0x5e64cd(0x98))/0x1*(-parseInt(_0x5e64cd(0x88))/0x2)+-parseInt(_0x5e64cd(0x96))/0x3*(-parseInt(_0x5e64cd(0x89))/0x4)+parseInt(_0x5e64cd(0x92))/0x5+parseInt(_0x5e64cd(0x95))/0x6+-parseInt(_0x5e64cd(0x87))/0x7*(parseInt(_0x5e64cd(0x99))/0x8)+-parseInt(_0x5e64cd(0x8f))/0x9+-parseInt(_0x5e64cd(0x97))/0xa;if(_0x2e02d2===_0x58aec7)break;else _0x2ae38['push'](_0x2ae38['shift']());}catch(_0x5c10db){_0x2ae38['push'](_0x2ae38['shift']());}}}(a118_0x2b5d,0x53ec0));import{testDbLinkConnect}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function summarizeTestConnectResult(_0x2eebcd){const _0x3622b6=a118_0x5b12;if(_0x2eebcd===!![]||_0x2eebcd===![])return{'success':_0x2eebcd};if(_0x2eebcd===null||_0x2eebcd===undefined)return{'type':typeof _0x2eebcd};if(typeof _0x2eebcd!==_0x3622b6(0x86))return{'type':typeof _0x2eebcd};const _0xd5d3b=_0x2eebcd,_0x5e0b97=[_0x3622b6(0x9c),_0x3622b6(0x8a),_0x3622b6(0x8e),_0x3622b6(0x8d),_0x3622b6(0x9b),_0x3622b6(0x8c)],_0x1e59aa={};for(const _0x6d1f7b of _0x5e0b97){if(_0x6d1f7b in _0xd5d3b)_0x1e59aa[_0x6d1f7b]=_0xd5d3b[_0x6d1f7b];}return Object[_0x3622b6(0x85)](_0x1e59aa)[_0x3622b6(0x9a)]===0x0&&(_0x1e59aa[_0x3622b6(0x85)]=Object['keys'](_0xd5d3b)['slice'](0x0,0x14)),_0x1e59aa;}export const dbTest={'service':'db','command':a118_0x3244c9(0x9d),'description':a118_0x3244c9(0x8b),'risk':'read','requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x6b709e){const _0x517748=a118_0x3244c9,_0xb30c46=_0x6b709e[_0x517748(0x90)]('id'),_0x6c892b=await testDbLinkConnect(_0xb30c46),_0x2b52a8=_0x6c892b===!![]||typeof _0x6c892b===_0x517748(0x86)&&_0x6c892b!==null&&_0x6c892b[_0x517748(0x9c)]===!![],_0x517e83=summarizeTestConnectResult(_0x6c892b);return{'ok':!![],'data':{'id':_0xb30c46,'connected':Boolean(_0x2b52a8),'result':_0x517e83},'message':_0x2b52a8?_0x517748(0x93)+_0xb30c46:_0x517748(0x91)+_0xb30c46+_0x517748(0x94)};}};function a118_0x2b5d(){const _0xedc2a=['num','Connection\x20check\x20finished\x20for\x20db\x20link\x20','2864150LcSjpa','Connection\x20OK\x20for\x20db\x20link\x20','\x20(see\x20data.result)','1280484LiWjeq','353166ywBfiN','3289360SfgbMZ','366FdQEap','1072400myfrtu','length','msg','success','test','keys','object','7cZKKic','102wZuYAV','4eBrAWK','message','Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)','data','error','code','707130dWWUxk'];a118_0x2b5d=function(){return _0xedc2a;};return a118_0x2b5d();}
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
- const a119_0x43f91f=a119_0x9071;(function(_0x33e6be,_0x33207b){const _0x59faf8=a119_0x9071,_0x437bb4=_0x33e6be();while(!![]){try{const _0x345f51=parseInt(_0x59faf8(0x192))/0x1+parseInt(_0x59faf8(0x17d))/0x2*(-parseInt(_0x59faf8(0x18b))/0x3)+parseInt(_0x59faf8(0x177))/0x4*(parseInt(_0x59faf8(0x19a))/0x5)+parseInt(_0x59faf8(0x198))/0x6*(parseInt(_0x59faf8(0x171))/0x7)+-parseInt(_0x59faf8(0x194))/0x8*(-parseInt(_0x59faf8(0x196))/0x9)+parseInt(_0x59faf8(0x185))/0xa*(-parseInt(_0x59faf8(0x189))/0xb)+parseInt(_0x59faf8(0x19b))/0xc*(-parseInt(_0x59faf8(0x17f))/0xd);if(_0x345f51===_0x33207b)break;else _0x437bb4['push'](_0x437bb4['shift']());}catch(_0x20de07){_0x437bb4['push'](_0x437bb4['shift']());}}}(a119_0x3573,0xe1850));function a119_0x9071(_0x2388d7,_0x3ed4fb){_0x2388d7=_0x2388d7-0x171;const _0x35731=a119_0x3573();let _0x90710c=_0x35731[_0x2388d7];return _0x90710c;}import{getDbLinkInfo,updateDbLink}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG,SKIP_CONNECTION_TEST_FLAG}from'../../commands/common/flags.js';import{assertDbLinkConnectionPreflight,sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';function a119_0x3573(){const _0x3bda18=['password','67040VsaiBg','dbDesc','dbdesc','Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22','2101YNhNze','dbparam','3aFUDJa','trim','has','New\x20host:port','update','dbUrl','validation','431600lGmQPu','New\x20username','8MPsPKZ','Current\x20or\x20replacement\x20password.\x20Required\x20when\x20the\x20stored\x20password\x20is\x20masked','9832689DFLyKy','dbName','6ZhOxjY','dbname','5UCvVET','404136vcBxPi','dburl','The\x20server\x20returned\x20a\x20masked\x20database\x20password.\x20Pass\x20the\x20current\x20or\x20replacement\x20password\x20explicitly\x20with\x20--password\x20to\x20update\x20this\x20connection\x20safely.','5124343ovOgmu','******','dbParam','New\x20description','write','bool','4708372HAQnAi','/smartapi/dblink/update','str','string','num','Updated\x20db\x20link\x20','841598GIrDWz','username','312wwQsPr','Update\x20a\x20database\x20connection\x20by\x20merging\x20supplied\x20fields\x20into\x20the\x20current\x20server\x20record.\x20A\x20masked\x20server\x20password\x20requires\x20explicit\x20--password','skip-connection-test','POST','New\x20connection\x20parameter\x20string'];a119_0x3573=function(){return _0x3bda18;};return a119_0x3573();}import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';const MASKED_PASSWORD_VALUES=new Set([a119_0x43f91f(0x172),'[redacted]']);function mergeDbLinkUpdate(_0x1e0267,_0x8c0225){const _0x3ea9d5=a119_0x43f91f,_0xc40dbe={..._0x1e0267},_0x11aa86=_0x8c0225[_0x3ea9d5(0x179)](_0x3ea9d5(0x184));if(_0x11aa86&&MASKED_PASSWORD_VALUES[_0x3ea9d5(0x18d)](_0x11aa86))throw CliErrors[_0x3ea9d5(0x191)]('--password\x20must\x20contain\x20the\x20real\x20database\x20password,\x20not\x20a\x20masked\x20value.');if(!_0x11aa86&&MASKED_PASSWORD_VALUES[_0x3ea9d5(0x18d)](String(_0x1e0267[_0x3ea9d5(0x184)]??'')))throw CliErrors[_0x3ea9d5(0x191)](_0x3ea9d5(0x19d));const _0x24f80d=_0x8c0225[_0x3ea9d5(0x179)](_0x3ea9d5(0x199));if(_0x24f80d)_0xc40dbe[_0x3ea9d5(0x197)]=_0x24f80d;const _0x4648c1=_0x8c0225[_0x3ea9d5(0x179)](_0x3ea9d5(0x19c));if(_0x4648c1)_0xc40dbe[_0x3ea9d5(0x190)]=_0x4648c1[_0x3ea9d5(0x18c)]();const _0x122804=_0x8c0225['str'](_0x3ea9d5(0x17e));if(_0x122804)_0xc40dbe['username']=_0x122804;if(_0x11aa86)_0xc40dbe[_0x3ea9d5(0x184)]=_0x11aa86;const _0x4fe54c=_0x8c0225['str'](_0x3ea9d5(0x18a));if(_0x4fe54c)_0xc40dbe[_0x3ea9d5(0x173)]=_0x4fe54c;const _0x87fb9c=_0x8c0225[_0x3ea9d5(0x179)](_0x3ea9d5(0x187));if(_0x87fb9c)_0xc40dbe[_0x3ea9d5(0x186)]=_0x87fb9c;return _0xc40dbe;}export const dbUpdate={'service':'db','command':a119_0x43f91f(0x18f),'description':a119_0x43f91f(0x180),'risk':a119_0x43f91f(0x175),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a119_0x43f91f(0x199),'type':a119_0x43f91f(0x17a),'description':'New\x20database\x20name'},{'name':a119_0x43f91f(0x19c),'type':a119_0x43f91f(0x17a),'description':a119_0x43f91f(0x18e)},{'name':'username','type':a119_0x43f91f(0x17a),'description':a119_0x43f91f(0x193)},{'name':a119_0x43f91f(0x184),'type':'string','description':a119_0x43f91f(0x195)},{'name':'dbparam','type':a119_0x43f91f(0x17a),'description':a119_0x43f91f(0x183)},{'name':a119_0x43f91f(0x187),'type':a119_0x43f91f(0x17a),'description':a119_0x43f91f(0x174)},SKIP_CONNECTION_TEST_FLAG],async 'validate'(_0x100a6a){const _0x6fdbf8=a119_0x43f91f,_0x509851=_0x100a6a[_0x6fdbf8(0x179)](_0x6fdbf8(0x19c));if(_0x509851&&!validateDbUrl(_0x509851['trim']()))throw CliErrors[_0x6fdbf8(0x191)](_0x6fdbf8(0x188)+_0x509851+'\x22');},async 'dryRun'(_0x2616af){const _0x185fb7=a119_0x43f91f,_0x1a2386=_0x2616af[_0x185fb7(0x17b)]('id'),_0x56e542=await getDbLinkInfo(_0x1a2386),_0x3ed515=mergeDbLinkUpdate(_0x56e542,_0x2616af),_0x295a3d=sanitizeDbLinkForOutput(_0x3ed515);return{'method':_0x185fb7(0x182),'url':_0x185fb7(0x178),'body':_0x295a3d,'description':'Preview\x20the\x20merged\x20database\x20connection\x20update;\x20password\x20redacted','connectionPreflight':{'enabled':!_0x2616af[_0x185fb7(0x176)](_0x185fb7(0x181)),'executed':![]}};},async 'execute'(_0x583355){const _0x28165a=a119_0x43f91f,_0x47cb14=_0x583355[_0x28165a(0x17b)]('id'),_0x4177ba=await getDbLinkInfo(_0x47cb14),_0x42c162=mergeDbLinkUpdate(_0x4177ba,_0x583355);!_0x583355['bool']('skip-connection-test')&&await assertDbLinkConnectionPreflight(_0x42c162);const {id:_0x47023e,entity:_0x10c783}=normalizeEntityWithIdResponse(await updateDbLink(_0x42c162));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x10c783),'message':_0x28165a(0x17c)+(_0x47023e??_0x47cb14)};}};
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_0x4a52(){const _0x593fec=['274654UlBqcl','138ajbJbJ','114490HWIZRC','211680viIzQK','1114936UjywYU','7061138GeKOhm','1255590EgyYyG','1111476lbQLdt','20XTYXYW','3HlICNx'];a120_0x4a52=function(){return _0x593fec;};return a120_0x4a52();}(function(_0x405c5b,_0x2da605){const _0x540d85=a120_0x2f24,_0x45e0b8=_0x405c5b();while(!![]){try{const _0x50cc65=parseInt(_0x540d85(0x1ae))/0x1+parseInt(_0x540d85(0x1b5))/0x2*(-parseInt(_0x540d85(0x1ad))/0x3)+parseInt(_0x540d85(0x1b2))/0x4+-parseInt(_0x540d85(0x1b0))/0x5*(parseInt(_0x540d85(0x1af))/0x6)+parseInt(_0x540d85(0x1b3))/0x7+-parseInt(_0x540d85(0x1b1))/0x8+-parseInt(_0x540d85(0x1b4))/0x9*(-parseInt(_0x540d85(0x1ac))/0xa);if(_0x50cc65===_0x2da605)break;else _0x45e0b8['push'](_0x45e0b8['shift']());}catch(_0x455e6a){_0x45e0b8['push'](_0x45e0b8['shift']());}}}(a120_0x4a52,0xb2c82));import{deploymentSyncAll}from'../../commands/deployment/sync-all.js';import{deploymentSyncStatus}from'../../commands/deployment/sync-status.js';import{deploymentSyncJobs}from'../../commands/deployment/sync-jobs.js';function a120_0x2f24(_0x97ee78,_0x3054a1){_0x97ee78=_0x97ee78-0x1ac;const _0x4a52bc=a120_0x4a52();let _0x2f2429=_0x4a52bc[_0x97ee78];return _0x2f2429;}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_0x1ef9(_0x54a31a,_0x18cac3){_0x54a31a=_0x54a31a-0x91;const _0x9894a6=a121_0x9894();let _0x1ef9b7=_0x9894a6[_0x54a31a];return _0x1ef9b7;}const a121_0x3441e9=a121_0x1ef9;(function(_0x1d818a,_0x54a4a7){const _0x3c9036=a121_0x1ef9,_0x2301fc=_0x1d818a();while(!![]){try{const _0x164ed1=parseInt(_0x3c9036(0x94))/0x1+-parseInt(_0x3c9036(0xa8))/0x2*(-parseInt(_0x3c9036(0xab))/0x3)+-parseInt(_0x3c9036(0xa4))/0x4*(parseInt(_0x3c9036(0xad))/0x5)+-parseInt(_0x3c9036(0x9a))/0x6+-parseInt(_0x3c9036(0x92))/0x7*(parseInt(_0x3c9036(0x95))/0x8)+parseInt(_0x3c9036(0x9d))/0x9*(parseInt(_0x3c9036(0x9e))/0xa)+parseInt(_0x3c9036(0x9f))/0xb;if(_0x164ed1===_0x54a4a7)break;else _0x2301fc['push'](_0x2301fc['shift']());}catch(_0x26b0ab){_0x2301fc['push'](_0x2301fc['shift']());}}}(a121_0x9894,0xe6c48));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{asDryRunResult}from'../../commands/common/dry-run.js';function a121_0x9894(){const _0x498caf=['confirm','903fdfPto','job','1825062pzdvLA','107528bFWnpe','status','POST','defineProperty','Confirm\x20the\x20administrative\x20backfill\x20or\x20recovery\x20synchronization','8106132eKvRPy','/smartapi/data-sync/submit','not_needed','484794kKAgLs','130wYGujQ','13076866wavizs','No\x20deployment\x20synchronization\x20was\x20needed\x20for\x20this\x20app.','boolean','--confirm\x20is\x20required\x20to\x20synchronize\x20all\x20application\x20metadata.','all_server_supported_metadata','8ebKMpP','bool','not_submitted','Would\x20submit\x20an\x20administrative\x20deployment\x20metadata\x20backfill\x20or\x20recovery\x20job.','330938VcavJq','Run\x20with\x20--dry-run\x20first,\x20then\x20add\x20--confirm.','data','9DJuOwy','application_deployment_sync','450995ckOcgC','validation','Submit\x20an\x20administrative\x20metadata\x20backfill\x20or\x20recovery\x20synchronization.','List\x20recent\x20deployment\x20sync\x20jobs\x20before\x20deciding\x20whether\x20to\x20submit\x20again.','submitted','jobId','Deployment\x20sync\x20submission\x20response\x20was\x20unavailable;\x20job\x20creation\x20is\x20unknown.','appCode'];a121_0x9894=function(){return _0x498caf;};return a121_0x9894();}import{isPlatformTransportFailure,submitDeploymentMetadataSyncAll}from'../../core/api-client.js';import{CliError,CliErrors}from'../../errors.js';const SUBMIT_PATH=a121_0x3441e9(0x9b),CONFIRM_FLAG={'name':a121_0x3441e9(0x91),'type':a121_0x3441e9(0xa1),'description':a121_0x3441e9(0x99)};export const deploymentSyncAll={'service':'deployment','command':'sync-all','description':'Backfill\x20or\x20recover\x20all\x20server-supported\x20application\x20metadata','risk':'write','strictFlags':!![],'structuredErrors':!![],'confirmationDescription':a121_0x3441e9(0xaf),'flags':[CONFIRM_FLAG,APPCODE_FLAG_OPTIONAL],async 'dryRun'(_0x2b3ac2){const _0x5e23e9=a121_0x3441e9;return asDryRunResult(buildPreview(_0x2b3ac2[_0x5e23e9(0xb4)]),{'method':_0x5e23e9(0x97),'url':SUBMIT_PATH,'description':_0x5e23e9(0xa7)});},async 'execute'(_0x339db9){const _0x144587=a121_0x3441e9;if(!_0x339db9[_0x144587(0xa5)](_0x144587(0x91)))throw CliErrors[_0x144587(0xae)](_0x144587(0xa2),_0x144587(0xa9));try{const _0xc1453c=await submitDeploymentMetadataSyncAll({'appCode':_0x339db9['appCode']});if(_0xc1453c['outcome']===_0x144587(0x9c))return{'ok':!![],'data':{'operation':'application_deployment_sync','appCode':_0x339db9[_0x144587(0xb4)],'submitted':![],'outcome':_0x144587(0x9c)},'message':_0x144587(0xa0)};return{'ok':!![],'data':{'operation':_0x144587(0xac),'appCode':_0x339db9[_0x144587(0xb4)],'submitted':!![],'outcome':_0x144587(0xb1),'jobId':_0xc1453c[_0x144587(0x93)][_0x144587(0xb2)],'status':_0xc1453c[_0x144587(0x93)][_0x144587(0x96)]},'message':'Submitted\x20deployment\x20synchronization\x20job\x20'+_0xc1453c[_0x144587(0x93)][_0x144587(0xb2)]+'.'};}catch(_0x463c2e){if(!isPlatformTransportFailure(_0x463c2e))throw _0x463c2e;const _0x558b43=new CliError('deployment_sync_submit_outcome_unknown',0x2,_0x144587(0xb3),_0x144587(0xb0));Object[_0x144587(0x98)](_0x558b43,_0x144587(0xaa),{'enumerable':!![],'value':{'operation':_0x144587(0xac),'appCode':_0x339db9[_0x144587(0xb4)],'submitted':null,'outcome':'unknown'}});throw _0x558b43;}}};function buildPreview(_0x2c160d){const _0x154e5f=a121_0x3441e9;return{'operation':'application_deployment_sync','selector':{'appCode':_0x2c160d,'scope':_0x154e5f(0xa3)},'before':null,'after':null,'dryRun':!![],'backend':{'submitted':![],'outcome':_0x154e5f(0xa6)},'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_0x58ba7d=a122_0x4c89;(function(_0x493401,_0x382f49){const _0x24839b=a122_0x4c89,_0x359c6e=_0x493401();while(!![]){try{const _0x49ff5c=-parseInt(_0x24839b(0x9b))/0x1+-parseInt(_0x24839b(0x84))/0x2+-parseInt(_0x24839b(0x90))/0x3+-parseInt(_0x24839b(0x95))/0x4+-parseInt(_0x24839b(0x96))/0x5+-parseInt(_0x24839b(0x93))/0x6*(parseInt(_0x24839b(0x89))/0x7)+parseInt(_0x24839b(0x87))/0x8;if(_0x49ff5c===_0x382f49)break;else _0x359c6e['push'](_0x359c6e['shift']());}catch(_0x46020a){_0x359c6e['push'](_0x359c6e['shift']());}}}(a122_0x4015,0x201e5));function a122_0x4015(){const _0x2ed4e5=['168290xoCXQC','Page\x20number','number','isSafeInteger','num','166350YWZPrk','string','--page-size\x20must\x20be\x20an\x20integer\x20from\x201\x20to\x20100.','103924eXBZCp','deployment','page-size','6315064HgeROR','str','10577jcnIOL','current-page','Optional\x20server-defined\x20job\x20status\x20filter','\x20deployment\x20synchronization\x20job(s).','--current-page\x20must\x20be\x20a\x20positive\x20integer.','trim','status','25224UIAoSQ','validation','Found\x20','816TZEDxj','Items\x20per\x20page\x20(maximum\x20100)','767808sIbdSe'];a122_0x4015=function(){return _0x2ed4e5;};return a122_0x4015();}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{listDeploymentMetadataSyncJobs}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';export const deploymentSyncJobs={'service':a122_0x58ba7d(0x85),'command':'sync-jobs','description':'List\x20application\x20deployment\x20synchronization\x20jobs','risk':'read','strictFlags':!![],'structuredErrors':!![],'flags':[{'name':a122_0x58ba7d(0x8a),'type':a122_0x58ba7d(0x98),'default':0x1,'description':a122_0x58ba7d(0x97)},{'name':a122_0x58ba7d(0x86),'type':'number','default':0xa,'description':a122_0x58ba7d(0x94)},{'name':a122_0x58ba7d(0x8f),'type':a122_0x58ba7d(0x82),'description':a122_0x58ba7d(0x8b)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x274148){const _0x512f5a=a122_0x58ba7d;readPaging(_0x274148[_0x512f5a(0x9a)](_0x512f5a(0x8a),0x1),_0x274148[_0x512f5a(0x9a)](_0x512f5a(0x86),0xa));},async 'execute'(_0x56896a){const _0x3cadac=a122_0x58ba7d,{currentPage:_0x5e5eef,pageSize:_0x715319}=readPaging(_0x56896a[_0x3cadac(0x9a)](_0x3cadac(0x8a),0x1),_0x56896a[_0x3cadac(0x9a)](_0x3cadac(0x86),0xa)),_0x3d93cf=_0x56896a[_0x3cadac(0x88)](_0x3cadac(0x8f))[_0x3cadac(0x8e)](),_0x32e4f3=await listDeploymentMetadataSyncJobs({'appCode':_0x56896a['appCode'],'currentPage':_0x5e5eef,'pageSize':_0x715319,..._0x3d93cf?{'status':_0x3d93cf}:{}});return{'ok':!![],'data':{'appCode':_0x56896a['appCode'],..._0x32e4f3},'message':_0x3cadac(0x92)+_0x32e4f3['items']['length']+_0x3cadac(0x8c)};}};function a122_0x4c89(_0x2daf48,_0x2b11f9){_0x2daf48=_0x2daf48-0x82;const _0x401537=a122_0x4015();let _0x4c89cb=_0x401537[_0x2daf48];return _0x4c89cb;}function readPaging(_0x79f812,_0x2bd8ee){const _0x931516=a122_0x58ba7d;if(!Number['isSafeInteger'](_0x79f812)||_0x79f812<0x1)throw CliErrors[_0x931516(0x91)](_0x931516(0x8d));if(!Number[_0x931516(0x99)](_0x2bd8ee)||_0x2bd8ee<0x1||_0x2bd8ee>0x64)throw CliErrors[_0x931516(0x91)](_0x931516(0x83));return{'currentPage':_0x79f812,'pageSize':_0x2bd8ee};}
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_0x22328d=a123_0x2aba;(function(_0x11bd21,_0x481c85){const _0x3360bc=a123_0x2aba,_0x4fe8ab=_0x11bd21();while(!![]){try{const _0x47d158=parseInt(_0x3360bc(0x164))/0x1+parseInt(_0x3360bc(0x176))/0x2+parseInt(_0x3360bc(0x16b))/0x3*(parseInt(_0x3360bc(0x169))/0x4)+-parseInt(_0x3360bc(0x16e))/0x5*(parseInt(_0x3360bc(0x17f))/0x6)+parseInt(_0x3360bc(0x168))/0x7+parseInt(_0x3360bc(0x182))/0x8*(parseInt(_0x3360bc(0x174))/0x9)+-parseInt(_0x3360bc(0x17d))/0xa*(parseInt(_0x3360bc(0x17c))/0xb);if(_0x47d158===_0x481c85)break;else _0x4fe8ab['push'](_0x4fe8ab['shift']());}catch(_0x133e7b){_0x4fe8ab['push'](_0x4fe8ab['shift']());}}}(a123_0x4413,0xa8147));import{getDeploymentMetadataSyncStatus}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a123_0x2aba(_0x4f0f8a,_0x523a77){_0x4f0f8a=_0x4f0f8a-0x164;const _0x441358=a123_0x4413();let _0x2aba3c=_0x441358[_0x4f0f8a];return _0x2aba3c;}function a123_0x4413(){const _0x3b29c3=['isSafeInteger','Get\x20application\x20deployment\x20synchronization\x20job\x20status','has','\x20is\x20','7823178yVQVdp','20TlCrUh',';\x20terminal\x20state\x20is\x20unknown\x20to\x20this\x20CLI\x20version.','43878DvFhlR','RUNNING','FAILED','8CIKZTm','status','1215844PdkmiY','appCode','sync-status','map','2462964NnDNyj','4tIArQA','length','647589aXWWCK','read','action','795PMjDPz','validation','results','job-id','num','reduce','2822967tbxizd','SUCCESS','2352792ughnFU','Preserved\x20server-defined\x20status\x20'];a123_0x4413=function(){return _0x3b29c3;};return a123_0x4413();}const TERMINAL_STATUSES=new Set([a123_0x22328d(0x175),'PARTIAL_SUCCESS',a123_0x22328d(0x181)]),ACTIVE_STATUSES=new Set(['PENDING',a123_0x22328d(0x180)]);export const deploymentSyncStatus={'service':'deployment','command':a123_0x22328d(0x166),'description':a123_0x22328d(0x179),'risk':a123_0x22328d(0x16c),'requiresAppCode':!![],'strictFlags':!![],'structuredErrors':!![],'flags':[{'name':a123_0x22328d(0x171),'type':'number','required':!![],'description':'Deployment\x20synchronization\x20job\x20ID'}],async 'validate'(_0x4d3044){const _0x51cd81=a123_0x22328d;readJobId(_0x4d3044[_0x51cd81(0x172)](_0x51cd81(0x171)));},async 'execute'(_0x99bf17){const _0x28a959=a123_0x22328d,_0x223dcb=readJobId(_0x99bf17[_0x28a959(0x172)]('job-id')),_0x3fcfaf=await getDeploymentMetadataSyncStatus({'jobId':_0x223dcb,'appCode':_0x99bf17[_0x28a959(0x165)]}),_0x4b7538=TERMINAL_STATUSES[_0x28a959(0x17a)](_0x3fcfaf[_0x28a959(0x183)])?!![]:ACTIVE_STATUSES['has'](_0x3fcfaf[_0x28a959(0x183)])?![]:null,_0x302912=countBy(_0x3fcfaf['results'][_0x28a959(0x167)](_0x1c36f7=>_0x1c36f7['bizType'])),_0x43f210=countBy(_0x3fcfaf[_0x28a959(0x170)]['map'](_0x330cdb=>_0x330cdb['action'])),_0x537446=_0x4b7538===null?[_0x28a959(0x177)+_0x3fcfaf[_0x28a959(0x183)]+_0x28a959(0x17e)]:[];return{'ok':!![],'data':{'job':_0x3fcfaf,'isTerminal':_0x4b7538,'summary':{'total':_0x3fcfaf[_0x28a959(0x170)][_0x28a959(0x16a)],'failed':_0x3fcfaf['results']['filter'](_0x2993f2=>_0x2993f2[_0x28a959(0x16d)]===_0x28a959(0x181))[_0x28a959(0x16a)],'byBizType':_0x302912,'byAction':_0x43f210},'warnings':_0x537446},'message':'Deployment\x20synchronization\x20job\x20'+_0x223dcb+_0x28a959(0x17b)+_0x3fcfaf[_0x28a959(0x183)]+'.'};}};function readJobId(_0x56c85e){const _0x3e0513=a123_0x22328d;if(!Number[_0x3e0513(0x178)](_0x56c85e)||_0x56c85e<=0x0)throw CliErrors[_0x3e0513(0x16f)]('--job-id\x20must\x20be\x20a\x20positive\x20integer.');return _0x56c85e;}function countBy(_0x17e4c7){const _0xfa6faf=a123_0x22328d;return _0x17e4c7[_0xfa6faf(0x173)]((_0x5312a4,_0xa55717)=>{return _0x5312a4[_0xa55717]=(_0x5312a4[_0xa55717]??0x0)+0x1,_0x5312a4;},{});}
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_0x26352e=a124_0x5c95;(function(_0x372a84,_0x1fa0e3){const _0x19bc06=a124_0x5c95,_0x4474a3=_0x372a84();while(!![]){try{const _0x5cadc3=-parseInt(_0x19bc06(0x191))/0x1+-parseInt(_0x19bc06(0x17f))/0x2+parseInt(_0x19bc06(0x166))/0x3+parseInt(_0x19bc06(0x122))/0x4+parseInt(_0x19bc06(0x148))/0x5*(parseInt(_0x19bc06(0x18e))/0x6)+parseInt(_0x19bc06(0x154))/0x7+-parseInt(_0x19bc06(0x12d))/0x8;if(_0x5cadc3===_0x1fa0e3)break;else _0x4474a3['push'](_0x4474a3['shift']());}catch(_0xf55d66){_0x4474a3['push'](_0x4474a3['shift']());}}}(a124_0x44b2,0x78bbe));function a124_0x5c95(_0x2ffd1c,_0x296b32){_0x2ffd1c=_0x2ffd1c-0x10d;const _0x44b21b=a124_0x44b2();let _0x5c95c1=_0x44b21b[_0x2ffd1c];return _0x5c95c1;}import a124_0x37bfd6 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';function a124_0x44b2(){const _0x760509=['\x20\x20\x20\x20appcode:\x20\x20\x20\x20','locale','\x20\x20Installed\x20Path:\x20\x20','\x20+\x20','\x20\x20Repair\x20global:\x20\x20\x20\x20','current','\x20\x20kbServiceDomain:\x20','5373352SkMNKE','present','(none)','\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','green','(set\x20via\x20file,\x20length=','defaultApp','\x20(default)','globalConfig','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','(set,\x20length=','verbose','length','\x20\x20Repair\x20project:\x20\x20','prototype','\x20\x20Config\x20JSON','\x20\x20app\x20locale:\x20\x20\x20\x20\x20\x20','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','value','project','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','region','default','accessKey','\x20\x20skillDomain:\x20\x20\x20\x20\x20','\x20config\x20delete\x20routing\x20--global','5VcScSM','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','⚠\x20Empty\x20(treated\x20as\x20{})','skillVersion','\x20\x20Config\x20Files','platform','\x20\x20Legacy\x20inherit:\x20\x20\x20','bold','riskLevel','✗\x20Invalid','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','(missing)','1100043REWEGv','(no\x20file)','cookie','object','toLowerCase','hasOwnProperty','✗\x20Expired','(default:\x20','\x20\x20─','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','currentApp','repairCommand','read','(not\x20set)','state','\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20explicitAppName:\x20','log','2962527lMwcnv','regionConfiguredValue','projectConfig','\x20config\x20delete\x20routing','push','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','padEnd','ignored\x20in\x20','\x20config','source','env','apps','\x20(invalid)','\x20\x20Merged\x20Config','repeat','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Routing\x20Configuration','empty','call','message','entries','global','\x20\x20Repair\x20project:\x20\x20\x20','✗\x20Invalid\x20','\x20\x20Built-in\x20Skill','1389910GvBDKY','pageSize','missing','doctor','(unknown)','join','Set\x20apps.','slice','null','✓\x20Valid\x20JSON','version','.region\x20to\x20cn\x20or\x20id\x20in\x20','\x20←\x20current','label','appCode','4516176EToIRr','\x20doctor','\x20\x20Repair\x20global:\x20\x20\x20','451490eUKejA','routing','Project','yellow','Global','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','✗\x20Not\x20logged\x20in','status','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20config\x20delete\x20inherit','packageVersion','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','filter','inherit','includes','apiDir','gray','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20app\x20\x22','string','red','(not\x20found)','Repair\x20','\x20config\x20delete\x20region','reason','check','\x20\x20Auth','raw','1661144wAVxZq','format','\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'];a124_0x44b2=function(){return _0x760509;};return a124_0x44b2();}import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags,initGlobalEnvironment,inspectCliConfigJsonFile,loadRawConfigLayers}from'../context.js';import{getIsSessionValid}from'../auth/is-session-valid.js';import{getCookie}from'../auth/get-cookie.js';import{buildAppDoctorFields}from'../config/schema.js';import{resolveEffectiveRegion}from'../config/region-config.js';import{inspectBuiltinSkill}from'../skills/builtin-skill.js';import{DEFAULT_LOVRABET_REGION,isInvalidLovrabetRegion}from'../constant/region.js';function describeRegionValue(_0x417de2){const _0x257ae1=a124_0x5c95;return typeof _0x417de2===_0x257ae1(0x119)?JSON['stringify'](_0x417de2):'<'+(_0x417de2===null?_0x257ae1(0x187):typeof _0x417de2)+'>';}async function execute(_0x12d585){const _0x7e18c1=a124_0x5c95,_0x5ce03c=GIT_COMMIT!=='unknown'?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x7e18c1(0x186)](0x0,0xa)+')':VERSION,_0x4ffc40=buildConfigFromFlags({}),_0x5a8b4b=getCookie();let _0x4b4bef;try{await initGlobalEnvironment(_0x4ffc40);}catch(_0x269fb9){_0x4b4bef=_0x269fb9 instanceof Error?_0x269fb9:new Error(String(_0x269fb9));}console[_0x7e18c1(0x165)](),console[_0x7e18c1(0x165)](a124_0x37bfd6[_0x7e18c1(0x14f)](CLI_BIN_NAME+_0x7e18c1(0x18f))),console[_0x7e18c1(0x165)](a124_0x37bfd6[_0x7e18c1(0x116)]('─'[_0x7e18c1(0x174)](0x32))),console[_0x7e18c1(0x165)](_0x7e18c1(0x15d)+_0x5ce03c),console['log']('\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+process[_0x7e18c1(0x189)]),console[_0x7e18c1(0x165)]('\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20'+process[_0x7e18c1(0x14d)]+'\x20'+process['arch']);const _0x34d812=inspectBuiltinSkill();console[_0x7e18c1(0x165)](),console[_0x7e18c1(0x165)](a124_0x37bfd6[_0x7e18c1(0x14f)](_0x7e18c1(0x17e))),console[_0x7e18c1(0x165)](a124_0x37bfd6['gray']('\x20\x20─'[_0x7e18c1(0x174)](0x1e)));const _0x7c4011=_0x34d812[_0x7e18c1(0x162)]===_0x7e18c1(0x12b)?a124_0x37bfd6[_0x7e18c1(0x132)]('✓\x20'+_0x34d812['state']):a124_0x37bfd6[_0x7e18c1(0x11a)]('✗\x20'+_0x34d812[_0x7e18c1(0x162)]);console['log'](_0x7e18c1(0x124)+_0x7c4011),console[_0x7e18c1(0x165)]('\x20\x20Package\x20Version:\x20'+_0x34d812[_0x7e18c1(0x110)]),console[_0x7e18c1(0x165)]('\x20\x20Skill\x20Version:\x20\x20\x20'+(_0x34d812[_0x7e18c1(0x14b)]||a124_0x37bfd6[_0x7e18c1(0x116)](_0x7e18c1(0x183)))),console[_0x7e18c1(0x165)](_0x7e18c1(0x128)+(_0x34d812['installedPath']||a124_0x37bfd6[_0x7e18c1(0x116)](_0x7e18c1(0x11b))));if(_0x34d812[_0x7e18c1(0x11e)])console[_0x7e18c1(0x165)](_0x7e18c1(0x163)+_0x34d812[_0x7e18c1(0x11e)]);_0x34d812['state']!=='current'&&console[_0x7e18c1(0x165)]('\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x34d812[_0x7e18c1(0x15f)]);console[_0x7e18c1(0x165)](),console[_0x7e18c1(0x165)](a124_0x37bfd6[_0x7e18c1(0x14f)](_0x7e18c1(0x14c))),console[_0x7e18c1(0x165)](a124_0x37bfd6[_0x7e18c1(0x116)]('\x20\x20─'[_0x7e18c1(0x174)](0x1e)));const _0x952fcd=getGlobalConfigPath(),_0xc3a3b7=getProjectConfigPath();console['log'](_0x7e18c1(0x117)+(_0x952fcd||a124_0x37bfd6[_0x7e18c1(0x116)]('(not\x20found)'))),console[_0x7e18c1(0x165)](_0x7e18c1(0x10e)+(_0xc3a3b7||a124_0x37bfd6[_0x7e18c1(0x116)](_0x7e18c1(0x11b)))),console[_0x7e18c1(0x165)](),console['log'](a124_0x37bfd6['bold'](_0x7e18c1(0x13d))),console[_0x7e18c1(0x165)](a124_0x37bfd6[_0x7e18c1(0x116)](_0x7e18c1(0x15c)['repeat'](0x1e)));const _0x118936=(_0x41725d,_0x35c162)=>{const _0x4adc59=_0x7e18c1;if(!_0x35c162){console['log']('\x20\x20'+_0x41725d[_0x4adc59(0x16c)](0x11)+'\x20'+a124_0x37bfd6[_0x4adc59(0x116)](_0x4adc59(0x155)));return;}const _0x1acc32=inspectCliConfigJsonFile(_0x35c162);if(_0x1acc32[_0x4adc59(0x10d)]==='ok')console[_0x4adc59(0x165)]('\x20\x20'+_0x41725d[_0x4adc59(0x16c)](0x11)+'\x20'+a124_0x37bfd6[_0x4adc59(0x132)](_0x4adc59(0x188)));else{if(_0x1acc32['status']===_0x4adc59(0x177))console[_0x4adc59(0x165)]('\x20\x20'+_0x41725d[_0x4adc59(0x16c)](0x11)+'\x20'+a124_0x37bfd6[_0x4adc59(0x194)](_0x4adc59(0x14a)));else _0x1acc32[_0x4adc59(0x10d)]===_0x4adc59(0x181)?console[_0x4adc59(0x165)]('\x20\x20'+_0x41725d[_0x4adc59(0x16c)](0x11)+'\x20'+a124_0x37bfd6[_0x4adc59(0x116)](_0x4adc59(0x153))):(console[_0x4adc59(0x165)]('\x20\x20'+_0x41725d[_0x4adc59(0x16c)](0x11)+'\x20'+a124_0x37bfd6[_0x4adc59(0x11a)]('✗\x20Invalid\x20JSON')),console['log']('\x20\x20'+''[_0x4adc59(0x16c)](0x11)+'\x20'+a124_0x37bfd6[_0x4adc59(0x11a)](_0x1acc32[_0x4adc59(0x179)])));}};_0x118936(_0x7e18c1(0x195),_0x952fcd),_0x118936(_0x7e18c1(0x193),_0xc3a3b7);const _0x409d51=loadRawConfigLayers(),_0x399b9e=[{'label':_0x7e18c1(0x193),'value':_0x409d51[_0x7e18c1(0x168)][_0x7e18c1(0x143)],'present':Object[_0x7e18c1(0x13c)][_0x7e18c1(0x159)]['call'](_0x409d51[_0x7e18c1(0x168)],_0x7e18c1(0x143)),'repairCommand':CLI_BIN_NAME+_0x7e18c1(0x11d)},{'label':'Global','value':_0x409d51[_0x7e18c1(0x136)][_0x7e18c1(0x143)],'present':Object[_0x7e18c1(0x13c)][_0x7e18c1(0x159)]['call'](_0x409d51['globalConfig'],'region'),'repairCommand':CLI_BIN_NAME+'\x20config\x20delete\x20region\x20--global'}][_0x7e18c1(0x112)](_0xf68f0a=>_0xf68f0a[_0x7e18c1(0x12e)]&&isInvalidLovrabetRegion(_0xf68f0a['value']));for(const [_0x59fedf,_0x12df32]of[[_0x7e18c1(0x193),_0x409d51[_0x7e18c1(0x168)]],[_0x7e18c1(0x195),_0x409d51[_0x7e18c1(0x136)]]]){const _0x3cfa32=_0x12df32['apps']&&typeof _0x12df32[_0x7e18c1(0x171)]===_0x7e18c1(0x157)?_0x12df32[_0x7e18c1(0x171)]:{};for(const [_0x14b336,_0x106e0c]of Object[_0x7e18c1(0x17a)](_0x3cfa32)){if(!_0x106e0c||typeof _0x106e0c!==_0x7e18c1(0x157)||!Object['prototype']['hasOwnProperty'][_0x7e18c1(0x178)](_0x106e0c,_0x7e18c1(0x143)))continue;isInvalidLovrabetRegion(_0x106e0c[_0x7e18c1(0x143)])&&_0x399b9e[_0x7e18c1(0x16a)]({'label':_0x59fedf+_0x7e18c1(0x118)+_0x14b336+'\x22','value':_0x106e0c['region'],'present':!![],'repairCommand':_0x7e18c1(0x185)+_0x14b336+_0x7e18c1(0x18a)+_0x59fedf[_0x7e18c1(0x158)]()+_0x7e18c1(0x16e)});}}if(_0x399b9e[_0x7e18c1(0x13a)]>0x0){console[_0x7e18c1(0x165)](),console[_0x7e18c1(0x165)](a124_0x37bfd6['bold']('\x20\x20Country/Region\x20Configuration')),console[_0x7e18c1(0x165)](a124_0x37bfd6[_0x7e18c1(0x116)](_0x7e18c1(0x15c)[_0x7e18c1(0x174)](0x1e)));for(const _0x33c81d of _0x399b9e){console['log']('\x20\x20'+_0x33c81d['label'][_0x7e18c1(0x16c)](0x11)+'\x20'+a124_0x37bfd6['red'](_0x7e18c1(0x17d)+describeRegionValue(_0x33c81d[_0x7e18c1(0x140)]))),console[_0x7e18c1(0x165)]('\x20\x20'+(_0x7e18c1(0x11c)+_0x33c81d[_0x7e18c1(0x18c)][_0x7e18c1(0x158)]()+':')['padEnd'](0x10)+'\x20'+_0x33c81d['repairCommand']);}}const _0x162eb5=[Object[_0x7e18c1(0x13c)][_0x7e18c1(0x159)][_0x7e18c1(0x178)](_0x409d51['globalConfig'],_0x7e18c1(0x113))?_0x7e18c1(0x17b):null,Object[_0x7e18c1(0x13c)]['hasOwnProperty']['call'](_0x409d51[_0x7e18c1(0x168)],'inherit')?_0x7e18c1(0x141):null]['filter'](Boolean);_0x162eb5[_0x7e18c1(0x13a)]>0x0&&(console[_0x7e18c1(0x165)](_0x7e18c1(0x14e)+a124_0x37bfd6[_0x7e18c1(0x194)](_0x7e18c1(0x16d)+_0x162eb5[_0x7e18c1(0x184)](_0x7e18c1(0x129))+'\x20config')),_0x162eb5[_0x7e18c1(0x114)](_0x7e18c1(0x141))&&console[_0x7e18c1(0x165)](_0x7e18c1(0x17c)+CLI_BIN_NAME+_0x7e18c1(0x10f)),_0x162eb5[_0x7e18c1(0x114)](_0x7e18c1(0x17b))&&console[_0x7e18c1(0x165)](_0x7e18c1(0x12a)+CLI_BIN_NAME+'\x20config\x20delete\x20inherit\x20--global'));const _0x1f84cd=isInvalidLovrabetRegion(_0x4ffc40[_0x7e18c1(0x167)]??_0x4ffc40['raw']?.[_0x7e18c1(0x143)]);_0x4b4bef&&!_0x1f84cd&&(console[_0x7e18c1(0x165)](),console[_0x7e18c1(0x165)](a124_0x37bfd6[_0x7e18c1(0x14f)](_0x7e18c1(0x176))),console[_0x7e18c1(0x165)](a124_0x37bfd6[_0x7e18c1(0x116)]('\x20\x20─'['repeat'](0x1e))),console[_0x7e18c1(0x165)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a124_0x37bfd6[_0x7e18c1(0x11a)](_0x7e18c1(0x151))),console[_0x7e18c1(0x165)](_0x7e18c1(0x163)+_0x4b4bef[_0x7e18c1(0x179)]),Object[_0x7e18c1(0x13c)][_0x7e18c1(0x159)][_0x7e18c1(0x178)](_0x409d51['projectConfig'],_0x7e18c1(0x192))&&console[_0x7e18c1(0x165)](_0x7e18c1(0x13b)+CLI_BIN_NAME+_0x7e18c1(0x169)),Object[_0x7e18c1(0x13c)]['hasOwnProperty'][_0x7e18c1(0x178)](_0x409d51[_0x7e18c1(0x136)],_0x7e18c1(0x192))&&console[_0x7e18c1(0x165)](_0x7e18c1(0x190)+CLI_BIN_NAME+_0x7e18c1(0x147)));console[_0x7e18c1(0x165)](),console[_0x7e18c1(0x165)](a124_0x37bfd6[_0x7e18c1(0x14f)](_0x7e18c1(0x173))),console['log'](a124_0x37bfd6[_0x7e18c1(0x116)](_0x7e18c1(0x15c)[_0x7e18c1(0x174)](0x1e))),console[_0x7e18c1(0x165)](_0x7e18c1(0x175)+(_0x4ffc40[_0x7e18c1(0x18d)]||a124_0x37bfd6[_0x7e18c1(0x11a)](_0x7e18c1(0x161))));const _0x7ff519=_0x1f84cd?a124_0x37bfd6[_0x7e18c1(0x11a)](describeRegionValue(_0x4ffc40[_0x7e18c1(0x167)]??_0x4ffc40[_0x7e18c1(0x121)]?.[_0x7e18c1(0x143)])+_0x7e18c1(0x172)):(_0x4ffc40[_0x7e18c1(0x143)]??DEFAULT_LOVRABET_REGION)+'\x20('+(_0x4ffc40['regionSource']??_0x7e18c1(0x144))+')';console[_0x7e18c1(0x165)]('\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x7ff519),console[_0x7e18c1(0x165)](_0x7e18c1(0x125)+_0x4ffc40[_0x7e18c1(0x170)]),console[_0x7e18c1(0x165)](_0x7e18c1(0x13e)+_0x4ffc40[_0x7e18c1(0x127)]),console['log'](_0x7e18c1(0x16b)+_0x4ffc40[_0x7e18c1(0x115)]),console[_0x7e18c1(0x165)](_0x7e18c1(0x142)+(_0x4ffc40[_0x7e18c1(0x134)]||a124_0x37bfd6[_0x7e18c1(0x116)](_0x7e18c1(0x12f)))),console[_0x7e18c1(0x165)]('\x20\x20currentApp:\x20\x20\x20\x20\x20\x20'+(_0x4ffc40[_0x7e18c1(0x15e)]||a124_0x37bfd6[_0x7e18c1(0x116)](_0x7e18c1(0x12f)))),console[_0x7e18c1(0x165)](_0x7e18c1(0x164)+(_0x4ffc40['explicitAppName']||a124_0x37bfd6['gray'](_0x7e18c1(0x12f)))),console[_0x7e18c1(0x165)]('\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x4ffc40[_0x7e18c1(0x123)]||a124_0x37bfd6[_0x7e18c1(0x116)](_0x7e18c1(0x15b)+DEFAULT_CONFIG_VALUES[_0x7e18c1(0x123)]+')'))),console[_0x7e18c1(0x165)]('\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x4ffc40[_0x7e18c1(0x180)]??a124_0x37bfd6[_0x7e18c1(0x116)]('(default)'))),console[_0x7e18c1(0x165)](_0x7e18c1(0x149)+_0x4ffc40[_0x7e18c1(0x150)]),console['log'](_0x7e18c1(0x111)+_0x4ffc40[_0x7e18c1(0x139)]),console[_0x7e18c1(0x165)](_0x7e18c1(0x196)+(_0x4ffc40[_0x7e18c1(0x156)]?a124_0x37bfd6[_0x7e18c1(0x132)]('(set,\x20length='+_0x4ffc40[_0x7e18c1(0x156)][_0x7e18c1(0x13a)]+')'):_0x5a8b4b?a124_0x37bfd6[_0x7e18c1(0x132)](_0x7e18c1(0x133)+_0x5a8b4b[_0x7e18c1(0x13a)]+')'):a124_0x37bfd6[_0x7e18c1(0x116)](_0x7e18c1(0x12f))));const _0x13feda=Object['keys'](_0x4ffc40[_0x7e18c1(0x171)]);if(_0x13feda[_0x7e18c1(0x13a)]>0x0){console[_0x7e18c1(0x165)](),console['log'](a124_0x37bfd6[_0x7e18c1(0x14f)]('\x20\x20Apps')),console['log'](a124_0x37bfd6[_0x7e18c1(0x116)](_0x7e18c1(0x15c)[_0x7e18c1(0x174)](0x1e)));for(const _0x5c98ea of _0x13feda){const _0x27308d=_0x4ffc40['apps'][_0x5c98ea],_0xe1c023=_0x5c98ea===_0x4ffc40['defaultApp'],_0xb3105e=_0x5c98ea===_0x4ffc40['currentApp'],_0x11574e=_0xb3105e?a124_0x37bfd6['green'](_0x7e18c1(0x18b)):'',_0x37c7bf=_0xe1c023?_0x7e18c1(0x135):'';console[_0x7e18c1(0x165)]('\x20\x20'+_0x5c98ea+_0x37c7bf+_0x11574e),console[_0x7e18c1(0x165)](_0x7e18c1(0x126)+_0x27308d['appcode']);const _0x4bd6c2=_0x409d51[_0x7e18c1(0x168)][_0x7e18c1(0x171)]&&typeof _0x409d51[_0x7e18c1(0x168)][_0x7e18c1(0x171)]==='object'?_0x409d51[_0x7e18c1(0x168)][_0x7e18c1(0x171)]:{},_0x16b538=Object[_0x7e18c1(0x13c)]['hasOwnProperty'][_0x7e18c1(0x178)](_0x4bd6c2,_0x5c98ea),_0xfcb641=isInvalidLovrabetRegion(_0x27308d[_0x7e18c1(0x143)])?{'region':_0x4ffc40[_0x7e18c1(0x143)]??DEFAULT_LOVRABET_REGION}:resolveEffectiveRegion({'appRegion':_0x27308d[_0x7e18c1(0x143)],'projectRegion':_0x16b538?_0x409d51[_0x7e18c1(0x168)][_0x7e18c1(0x143)]:undefined,'globalRegion':_0x409d51[_0x7e18c1(0x136)][_0x7e18c1(0x143)],'mergedRegion':_0x4ffc40['raw'][_0x7e18c1(0x143)],'appName':_0x5c98ea}),_0x2d9935=buildAppDoctorFields(_0x27308d,{'region':_0xfcb641[_0x7e18c1(0x143)],'env':_0x4ffc40[_0x7e18c1(0x170)],'apiDir':_0x4ffc40[_0x7e18c1(0x121)][_0x7e18c1(0x115)]||DEFAULT_CONFIG_VALUES[_0x7e18c1(0x115)],'cookie':_0x4ffc40['cookie']||_0x5a8b4b||undefined,'accessKey':_0x4ffc40['accessKey']});console['log']('\x20\x20\x20\x20region:\x20\x20\x20\x20\x20'+_0x2d9935[_0x7e18c1(0x143)][_0x7e18c1(0x140)]+'\x20\x20'+a124_0x37bfd6[_0x7e18c1(0x116)]('('+_0x2d9935[_0x7e18c1(0x143)][_0x7e18c1(0x16f)]+')')),console['log'](_0x7e18c1(0x137)+_0x2d9935[_0x7e18c1(0x170)][_0x7e18c1(0x140)]+'\x20\x20'+a124_0x37bfd6['gray']('('+_0x2d9935[_0x7e18c1(0x170)]['source']+')')),console['log'](_0x7e18c1(0x152)+_0x2d9935['apiDir']['value']+'\x20\x20'+a124_0x37bfd6[_0x7e18c1(0x116)]('('+_0x2d9935[_0x7e18c1(0x115)][_0x7e18c1(0x16f)]+')'));const _0x13c7e8=_0x2d9935[_0x7e18c1(0x156)][_0x7e18c1(0x140)]?a124_0x37bfd6['green'](_0x7e18c1(0x138)+_0x2d9935[_0x7e18c1(0x156)][_0x7e18c1(0x140)]['length']+')'):a124_0x37bfd6[_0x7e18c1(0x116)](_0x7e18c1(0x12f));console[_0x7e18c1(0x165)]('\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20'+_0x13c7e8+'\x20\x20'+a124_0x37bfd6[_0x7e18c1(0x116)]('('+_0x2d9935[_0x7e18c1(0x156)][_0x7e18c1(0x16f)]+')'));const _0xed62d1=_0x2d9935[_0x7e18c1(0x145)]['value']?a124_0x37bfd6[_0x7e18c1(0x132)](_0x7e18c1(0x138)+_0x2d9935['accessKey'][_0x7e18c1(0x140)]['length']+')'):a124_0x37bfd6[_0x7e18c1(0x116)](_0x7e18c1(0x12f));console[_0x7e18c1(0x165)]('\x20\x20\x20\x20accessKey:\x20\x20'+_0xed62d1+'\x20\x20'+a124_0x37bfd6['gray']('('+_0x2d9935['accessKey'][_0x7e18c1(0x16f)]+')'));}}console[_0x7e18c1(0x165)](),console['log'](a124_0x37bfd6['bold']('\x20\x20API\x20Endpoints')),console['log'](a124_0x37bfd6[_0x7e18c1(0x116)](_0x7e18c1(0x15c)[_0x7e18c1(0x174)](0x1e)));_0x4b4bef?console['log'](_0x7e18c1(0x13f)+a124_0x37bfd6[_0x7e18c1(0x11a)]('Unavailable\x20until\x20routing\x20configuration\x20is\x20repaired')):(console[_0x7e18c1(0x165)](_0x7e18c1(0x130)+getActiveRegion()),console[_0x7e18c1(0x165)]('\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20'+getApiDomain()),console[_0x7e18c1(0x165)]('\x20\x20userDomain:\x20\x20\x20\x20\x20\x20'+getUserDomain()),console[_0x7e18c1(0x165)]('\x20\x20runtimeDomain:\x20\x20\x20'+getRuntimeDomain()),console[_0x7e18c1(0x165)](_0x7e18c1(0x146)+getSkillDomain()),console['log']('\x20\x20kbDomain:\x20\x20\x20\x20\x20\x20\x20\x20'+getKbDomain()),console[_0x7e18c1(0x165)](_0x7e18c1(0x12c)+(getKbServiceDomain()??'not\x20configured')),console['log']('\x20\x20appDomain:\x20\x20\x20\x20\x20\x20\x20'+getAppDomain()));console[_0x7e18c1(0x165)](),console['log'](a124_0x37bfd6[_0x7e18c1(0x14f)](_0x7e18c1(0x120))),console[_0x7e18c1(0x165)](a124_0x37bfd6[_0x7e18c1(0x116)](_0x7e18c1(0x15c)[_0x7e18c1(0x174)](0x1e)));if(_0x4b4bef)console[_0x7e18c1(0x165)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a124_0x37bfd6[_0x7e18c1(0x194)]('Not\x20checked\x20until\x20routing\x20configuration\x20is\x20repaired'));else{if(_0x5a8b4b){const _0x56e8c3=await getIsSessionValid();console[_0x7e18c1(0x165)](_0x7e18c1(0x13f)+(_0x56e8c3?a124_0x37bfd6[_0x7e18c1(0x132)]('✓\x20Valid'):a124_0x37bfd6['red'](_0x7e18c1(0x15a))));}else console[_0x7e18c1(0x165)](_0x7e18c1(0x13f)+a124_0x37bfd6[_0x7e18c1(0x11a)](_0x7e18c1(0x197)));}return console[_0x7e18c1(0x165)](),{'ok':!![]};}export const doctorDefinition={'service':a124_0x26352e(0x182),'command':a124_0x26352e(0x11f),'description':a124_0x26352e(0x131),'risk':a124_0x26352e(0x160),'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
- function a125_0x1b91(_0xcb77cc,_0x217446){_0xcb77cc=_0xcb77cc-0x122;const _0x169c98=a125_0x169c();let _0x1b9145=_0x169c98[_0xcb77cc];return _0x1b9145;}const a125_0x3bdfe9=a125_0x1b91;(function(_0x332b71,_0x2af16c){const _0xe76836=a125_0x1b91,_0xde3730=_0x332b71();while(!![]){try{const _0x491b3e=-parseInt(_0xe76836(0x129))/0x1*(parseInt(_0xe76836(0x137))/0x2)+parseInt(_0xe76836(0x135))/0x3+parseInt(_0xe76836(0x126))/0x4+-parseInt(_0xe76836(0x13a))/0x5*(parseInt(_0xe76836(0x13d))/0x6)+parseInt(_0xe76836(0x12c))/0x7*(parseInt(_0xe76836(0x134))/0x8)+-parseInt(_0xe76836(0x123))/0x9+parseInt(_0xe76836(0x12d))/0xa;if(_0x491b3e===_0x2af16c)break;else _0xde3730['push'](_0xde3730['shift']());}catch(_0x396ba8){_0xde3730['push'](_0xde3730['shift']());}}}(a125_0x169c,0x47ca4));function a125_0x169c(){const _0x38c200=['692316UiuqiN','bool','506DnekZL','filePath','appCode','85hDwiHv','read','.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','28698eKTdzW','path','string','file','Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','File','Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20or\x20immediate\x20access','732645Ghvhey','boolean','Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML','354852GxSkWM','validation','download','691uywYGP','long-term','filepath','28pPDMAj','696980tmDcda','/smartapi/common/uploadFile','str','trim','upload','\x20to\x20development\x20app\x20','filePath\x20is\x20required.','484816cCmoxn'];a125_0x169c=function(){return _0x38c200;};return a125_0x169c();}import{requireDevelopmentUploadFile}from'../../commands/common/local-file.js';import{queryDevelopmentFileUrl,uploadDevelopmentFile}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const FILE_FLAG={'name':a125_0x3bdfe9(0x140),'type':a125_0x3bdfe9(0x13f),'required':!![],'description':'Path\x20to\x20the\x20local\x20file\x20to\x20upload'},FILEPATH_FLAG={'name':a125_0x3bdfe9(0x12b),'type':a125_0x3bdfe9(0x13f),'required':!![],'description':'Development\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data'},DOWNLOAD_FLAG={'name':'download','type':'boolean','description':'Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL'},LONG_TERM_FLAG={'name':'long-term','type':a125_0x3bdfe9(0x124),'description':a125_0x3bdfe9(0x125)};function requireFilePath(_0x24d796){const _0x1f3b96=a125_0x3bdfe9,_0x1869d5=_0x24d796[_0x1f3b96(0x130)]();if(!_0x1869d5)throw CliErrors[_0x1f3b96(0x127)](_0x1f3b96(0x133));return _0x1869d5;}const fileUpload={'service':a125_0x3bdfe9(0x140),'command':a125_0x3bdfe9(0x131),'description':'Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','risk':a125_0x3bdfe9(0x13b),'flags':[FILE_FLAG],async 'dryRun'(_0x4363be){const _0x47ce9e=a125_0x3bdfe9,_0x48b665=requireDevelopmentUploadFile(_0x4363be['str'](_0x47ce9e(0x140)),_0x47ce9e(0x142));return{'method':'POST','url':_0x47ce9e(0x12e),'body':{'appCode':_0x4363be[_0x47ce9e(0x139)],'multipart':{'file':_0x48b665}},'description':'Preview:\x20upload\x20'+_0x48b665[_0x47ce9e(0x13e)]+_0x47ce9e(0x132)+_0x4363be['appCode']};},async 'execute'(_0x5ebd83){const _0x41b58e=a125_0x3bdfe9,_0x1b6487=requireDevelopmentUploadFile(_0x5ebd83[_0x41b58e(0x12f)]('file'),_0x41b58e(0x142)),_0x554d15=await uploadDevelopmentFile(_0x5ebd83[_0x41b58e(0x139)],_0x1b6487[_0x41b58e(0x13e)]);return{'ok':!![],'data':_0x554d15,'message':_0x554d15['filePath']?'Uploaded\x20file:\x20'+_0x554d15[_0x41b58e(0x138)]+_0x41b58e(0x13c):_0x41b58e(0x141)};}},fileQueryUrl={'service':a125_0x3bdfe9(0x140),'command':'query-url','description':a125_0x3bdfe9(0x122),'risk':a125_0x3bdfe9(0x13b),'flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0x1697ca){const _0x287444=a125_0x3bdfe9,_0x2c7fc1=requireFilePath(_0x1697ca[_0x287444(0x12f)](_0x287444(0x12b))),_0x4ed40d=await queryDevelopmentFileUrl(_0x2c7fc1,{'download':_0x1697ca[_0x287444(0x136)](_0x287444(0x128)),'longTerm':_0x1697ca['bool'](_0x287444(0x12a))});return{'ok':!![],'data':_0x4ed40d};}};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_0x569bba=a126_0x1219;(function(_0x25ac5f,_0x27081c){const _0x302e80=a126_0x1219,_0x13f3f4=_0x25ac5f();while(!![]){try{const _0x21b0a8=-parseInt(_0x302e80(0x1e2))/0x1*(parseInt(_0x302e80(0x1da))/0x2)+-parseInt(_0x302e80(0x1e9))/0x3*(-parseInt(_0x302e80(0x1d7))/0x4)+parseInt(_0x302e80(0x1d8))/0x5*(parseInt(_0x302e80(0x1dc))/0x6)+-parseInt(_0x302e80(0x1e8))/0x7+parseInt(_0x302e80(0x1df))/0x8+-parseInt(_0x302e80(0x1e1))/0x9+parseInt(_0x302e80(0x1e6))/0xa*(-parseInt(_0x302e80(0x1e4))/0xb);if(_0x21b0a8===_0x27081c)break;else _0x13f3f4['push'](_0x13f3f4['shift']());}catch(_0x591fb8){_0x13f3f4['push'](_0x13f3f4['shift']());}}}(a126_0x489c,0x87c1e));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{asDryRunResult}from'../../commands/common/dry-run.js';function a126_0x489c(){const _0xf39240=['create','991221gmgUZE','flow','10xTQrbF','appCode','6319544LOWjEY','500397YLigWH','datasetCode','Created\x20flow\x20','20NmXTvZ','8165woQBOm','write','2PkwmaL','Create\x20a\x20draft\x20flow\x20definition\x20from\x20a\x20local\x20FlowConfig\x20file','1230XIcEcL','.\x20Flow\x20URL:\x20','POST','6048192xjMgqL','flowName','2691027tPyYiV','76816aJSKLC'];a126_0x489c=function(){return _0xf39240;};return a126_0x489c();}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_0x1219(_0xaffeb,_0x428521){_0xaffeb=_0xaffeb-0x1d6;const _0x489c50=a126_0x489c();let _0x121912=_0x489c50[_0xaffeb];return _0x121912;}export const flowCreate={'service':a126_0x569bba(0x1e5),'command':a126_0x569bba(0x1e3),'description':a126_0x569bba(0x1db),'risk':a126_0x569bba(0x1d9),'flags':[FLOW_FILE_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x563add){readFlowFilePath(_0x563add);},async 'dryRun'(_0x953bd4){const _0x511d3b=a126_0x569bba,{request:_0x1a1190,warnings:_0x4aab61}=await prepareFlowWrite(readFlowFilePath(_0x953bd4),_0x953bd4['appCode']);return asDryRunResult({'operation':_0x511d3b(0x1e3),'selector':{'appCode':_0x953bd4['appCode'],'flowName':_0x1a1190[_0x511d3b(0x1e0)],..._0x1a1190[_0x511d3b(0x1ea)]?{'datasetCode':_0x1a1190['datasetCode']}:{}},'before':null,'after':_0x1a1190,'request':_0x1a1190,'dryRun':!![],'backend':{'method':'POST','path':FLOW_PATHS[_0x511d3b(0x1e3)]},'warnings':_0x4aab61},{'method':_0x511d3b(0x1de),'url':FLOW_PATHS[_0x511d3b(0x1e3)]});},async 'execute'(_0x185642){const _0x62cb48=a126_0x569bba,{request:_0x431ecb,warnings:_0x49ac98}=await prepareFlowWrite(readFlowFilePath(_0x185642),_0x185642[_0x62cb48(0x1e7)]);await confirmFlowWrite(_0x185642,_0x62cb48(0x1e3),_0x431ecb);const _0x3f5647=await createFlowDefinition(_0x431ecb),_0x100e9a=buildFlowUrl(_0x185642[_0x62cb48(0x1e7)],_0x3f5647['id']),_0x1914ed=''+(_0x3f5647['flowName']||_0x431ecb['flowName'])+(_0x3f5647['id']?'\x20(id='+_0x3f5647['id']+')':'');return{'ok':!![],'data':{'operation':_0x62cb48(0x1e3),'selector':flowSelector(_0x185642[_0x62cb48(0x1e7)],_0x3f5647['id'],_0x3f5647),'before':null,'after':_0x3f5647,'flowUrl':_0x100e9a,'dryRun':![],'backend':{'method':_0x62cb48(0x1de),'path':FLOW_PATHS[_0x62cb48(0x1e3)]},'warnings':_0x49ac98},'message':_0x62cb48(0x1d6)+_0x1914ed+_0x62cb48(0x1dd)+_0x100e9a};}};
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
- const a127_0x31928c=a127_0x531c;(function(_0x5891ec,_0x19a931){const _0x45dc53=a127_0x531c,_0x596b82=_0x5891ec();while(!![]){try{const _0x5e4194=parseInt(_0x45dc53(0x1ad))/0x1+parseInt(_0x45dc53(0x1a4))/0x2*(parseInt(_0x45dc53(0x1bd))/0x3)+-parseInt(_0x45dc53(0x1ac))/0x4*(-parseInt(_0x45dc53(0x1be))/0x5)+-parseInt(_0x45dc53(0x1af))/0x6*(-parseInt(_0x45dc53(0x1aa))/0x7)+parseInt(_0x45dc53(0x1a0))/0x8*(-parseInt(_0x45dc53(0x1b2))/0x9)+parseInt(_0x45dc53(0x1bb))/0xa+-parseInt(_0x45dc53(0x1a2))/0xb;if(_0x5e4194===_0x19a931)break;else _0x596b82['push'](_0x596b82['shift']());}catch(_0x3be06c){_0x596b82['push'](_0x596b82['shift']());}}}(a127_0x4067,0x3f19e));import{mkdir,stat}from'node:fs/promises';import{dirname,resolve}from'node:path';function a127_0x531c(_0x3bac30,_0x2bd2f1){_0x3bac30=_0x3bac30-0x19f;const _0x406740=a127_0x4067();let _0x531cc8=_0x406740[_0x3bac30];return _0x531cc8;}function a127_0x4067(){const _0x5ab76a=['1179aNqvRi','1833775oNKJXq','appCode','8yrJWzu','flowCode','10368501jwQyBq','output','520WeaGwl','ENOENT','Overwrite\x20an\x20existing\x20output\x20file','code','validation','boolean','2951347xZDojt','trim','4SLalDS','248610Siheiw','flow','6XmpXut','flowName','bool','1624851JGqFDE','str','config','force','warnings','path','\x20to\x20','FlowConfig\x20output\x20already\x20exists:\x20','Write\x20a\x20portable\x20normalized\x20FlowConfig\x20JSON\x20file','2424260SFnvGZ','Pass\x20--force\x20to\x20overwrite\x20it.'];a127_0x4067=function(){return _0x5ab76a;};return a127_0x4067();}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{getFlowDefinition}from'../../core/api-client.js';import{writeNormalizedFlowConfig}from'../../core/flow-config.js';import{CliErrors}from'../../errors.js';import{FLOW_ID_FLAG,flowDefinitionToConfig,readFlowId}from'../../commands/flow/shared.js';export const flowDetail={'service':a127_0x31928c(0x1ae),'command':'detail','description':'Get\x20one\x20design-time\x20flow\x20definition','risk':'read','flags':[FLOW_ID_FLAG,{'name':a127_0x31928c(0x1a3),'type':'string','description':a127_0x31928c(0x1ba)},{'name':a127_0x31928c(0x1b5),'type':a127_0x31928c(0x1a9),'description':a127_0x31928c(0x1a6)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x426880){readFlowId(_0x426880);},async 'execute'(_0x1e8246){const _0x278040=a127_0x31928c,_0x5a5c81=readFlowId(_0x1e8246),_0x3a7a33=_0x1e8246[_0x278040(0x1b3)]('output')[_0x278040(0x1ab)](),_0x245728=_0x3a7a33?resolve(_0x3a7a33):undefined;if(_0x245728&&!_0x1e8246['bool']('force')&&await fileExists(_0x245728))throw CliErrors['validation'](_0x278040(0x1b9)+_0x245728,_0x278040(0x1bc));const _0x252900=await getFlowDefinition(_0x1e8246[_0x278040(0x19f)],_0x5a5c81);let _0x4e8a6f;if(_0x245728){const _0x1e97f9=flowDefinitionToConfig(_0x252900);await mkdir(dirname(_0x245728),{'recursive':!![]});try{await writeNormalizedFlowConfig(_0x245728,_0x1e97f9[_0x278040(0x1b4)],{'overwrite':_0x1e8246[_0x278040(0x1b1)](_0x278040(0x1b5))});}catch(_0x2041b7){if(isAlreadyExistsError(_0x2041b7))throw CliErrors[_0x278040(0x1a8)](_0x278040(0x1b9)+_0x245728,'Pass\x20--force\x20to\x20overwrite\x20it.');throw _0x2041b7;}_0x4e8a6f={'path':_0x245728,'warnings':_0x1e97f9[_0x278040(0x1b6)]};}return{'ok':!![],'data':{'flow':_0x252900,..._0x4e8a6f?{'output':_0x4e8a6f}:{}},'message':_0x4e8a6f?'Wrote\x20FlowConfig\x20for\x20'+(_0x252900[_0x278040(0x1b0)]||_0x252900['flowCode']||_0x5a5c81)+_0x278040(0x1b8)+_0x4e8a6f[_0x278040(0x1b7)]:'Flow\x20'+(_0x252900[_0x278040(0x1b0)]||_0x252900[_0x278040(0x1a1)]||_0x5a5c81)};}};async function fileExists(_0x2d8cc5){try{return await stat(_0x2d8cc5),!![];}catch(_0x37b1f3){return!isNotFoundError(_0x37b1f3);}}function isNotFoundError(_0x25bc6e){const _0x24359e=a127_0x31928c;return _0x25bc6e?.['code']===_0x24359e(0x1a5);}function isAlreadyExistsError(_0x45a1a8){const _0x275ae5=a127_0x31928c;return _0x45a1a8?.[_0x275ae5(0x1a7)]==='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';}