@lovrabet/rabetbase-cli 2.5.13-beta.1 → 2.5.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (376) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/api-group.js +1 -1
  3. package/lib/api/fetch-model-list.js +1 -1
  4. package/lib/api/generate-api-file.js +1 -1
  5. package/lib/api/generate-sdk-config-file.js +1 -1
  6. package/lib/api/legacy-api-file.js +1 -1
  7. package/lib/api/model-registry-file.js +1 -1
  8. package/lib/api/model-registry-scaffold.js +1 -1
  9. package/lib/api/model-source.js +1 -1
  10. package/lib/auth/auth-server-ui.js +1 -1
  11. package/lib/auth/auth-server.js +1 -1
  12. package/lib/auth/constant.js +1 -1
  13. package/lib/auth/get-cookie.js +1 -1
  14. package/lib/auth/get-session-user.js +1 -1
  15. package/lib/auth/is-session-valid.js +1 -1
  16. package/lib/auth/login-success-html.js +1 -1
  17. package/lib/auth/logout.js +1 -1
  18. package/lib/cli-flags.js +1 -1
  19. package/lib/cli.js +1 -1
  20. package/lib/commands/api/generate.js +1 -1
  21. package/lib/commands/api/index.js +1 -1
  22. package/lib/commands/api/list.js +1 -1
  23. package/lib/commands/api/pull.js +1 -1
  24. package/lib/commands/api/shared.js +1 -1
  25. package/lib/commands/app/detail.js +1 -1
  26. package/lib/commands/app/index.js +1 -1
  27. package/lib/commands/app/list.js +1 -1
  28. package/lib/commands/app/members-list.js +1 -1
  29. package/lib/commands/app/remote-directory.js +1 -1
  30. package/lib/commands/app/shared.js +1 -1
  31. package/lib/commands/app-config/delete.js +1 -1
  32. package/lib/commands/app-config/get.js +1 -1
  33. package/lib/commands/app-config/index.js +1 -1
  34. package/lib/commands/app-config/list.js +1 -1
  35. package/lib/commands/app-config/set.js +1 -1
  36. package/lib/commands/app-config/shared.js +1 -1
  37. package/lib/commands/auth/index.js +1 -1
  38. package/lib/commands/bff/create.js +1 -1
  39. package/lib/commands/bff/delete.js +1 -1
  40. package/lib/commands/bff/detail.js +1 -1
  41. package/lib/commands/bff/index.js +1 -1
  42. package/lib/commands/bff/list.js +1 -1
  43. package/lib/commands/bff/logs.js +1 -1
  44. package/lib/commands/bff/pull.js +1 -1
  45. package/lib/commands/bff/push.js +1 -1
  46. package/lib/commands/bff/status.js +1 -1
  47. package/lib/commands/cli-skill/index.js +1 -1
  48. package/lib/commands/cli-update.js +1 -1
  49. package/lib/commands/codegen/index.js +1 -1
  50. package/lib/commands/codegen/sdk.js +1 -1
  51. package/lib/commands/codegen/sql.js +1 -1
  52. package/lib/commands/common/app-registry.js +1 -1
  53. package/lib/commands/common/app-selector.js +1 -1
  54. package/lib/commands/common/async-task.js +1 -1
  55. package/lib/commands/common/dry-run.js +1 -1
  56. package/lib/commands/common/flags.js +1 -1
  57. package/lib/commands/common/local-file.js +1 -1
  58. package/lib/commands/common/validate.js +1 -1
  59. package/lib/commands/config/delete.js +1 -1
  60. package/lib/commands/config/get.js +1 -1
  61. package/lib/commands/config/index.js +1 -1
  62. package/lib/commands/config/init.js +1 -1
  63. package/lib/commands/config/list.js +1 -1
  64. package/lib/commands/config/set.js +1 -1
  65. package/lib/commands/config/shared.js +1 -1
  66. package/lib/commands/dataset/batch-design.js +1 -1
  67. package/lib/commands/dataset/business-group-update.js +1 -1
  68. package/lib/commands/dataset/business-groups.js +1 -1
  69. package/lib/commands/dataset/capability.js +1 -1
  70. package/lib/commands/dataset/cross-relation-create.js +1 -1
  71. package/lib/commands/dataset/cross-relation-delete.js +1 -1
  72. package/lib/commands/dataset/cross-relation-list.js +1 -1
  73. package/lib/commands/dataset/cross-relation-shared.js +1 -1
  74. package/lib/commands/dataset/cross-relation-update.js +1 -1
  75. package/lib/commands/dataset/delete.js +1 -1
  76. package/lib/commands/dataset/design-context.js +1 -1
  77. package/lib/commands/dataset/design-start.js +1 -1
  78. package/lib/commands/dataset/design-status.js +1 -1
  79. package/lib/commands/dataset/design-sync-retry.js +1 -1
  80. package/lib/commands/dataset/design-sync-status.js +1 -1
  81. package/lib/commands/dataset/design-validate.js +1 -1
  82. package/lib/commands/dataset/detail.js +1 -1
  83. package/lib/commands/dataset/extend-update.js +1 -1
  84. package/lib/commands/dataset/field-restore.js +1 -1
  85. package/lib/commands/dataset/field-update.js +1 -1
  86. package/lib/commands/dataset/generate.js +1 -1
  87. package/lib/commands/dataset/index.js +1 -1
  88. package/lib/commands/dataset/list.js +1 -1
  89. package/lib/commands/dataset/operations.js +1 -1
  90. package/lib/commands/dataset/relation-audit.js +1 -1
  91. package/lib/commands/dataset/relation-create.js +1 -1
  92. package/lib/commands/dataset/relation-delete.js +1 -1
  93. package/lib/commands/dataset/relation-shared.js +1 -1
  94. package/lib/commands/dataset/relation-update.js +1 -1
  95. package/lib/commands/dataset/relations.js +1 -1
  96. package/lib/commands/dataset/rename.js +1 -1
  97. package/lib/commands/dataset/restore.js +1 -1
  98. package/lib/commands/dataset/user-deleted-field-list.js +1 -1
  99. package/lib/commands/db/analysis-batching.js +1 -1
  100. package/lib/commands/db/analyze-batch-plan.js +1 -1
  101. package/lib/commands/db/analyze-cancel.js +1 -1
  102. package/lib/commands/db/analyze-start.js +1 -1
  103. package/lib/commands/db/analyze-status.js +1 -1
  104. package/lib/commands/db/create.js +1 -1
  105. package/lib/commands/db/cross-db-analysis-shared.js +1 -1
  106. package/lib/commands/db/cross-db-analyze-latest.js +1 -1
  107. package/lib/commands/db/cross-db-analyze-start.js +1 -1
  108. package/lib/commands/db/cross-db-analyze-status.js +1 -1
  109. package/lib/commands/db/delete.js +1 -1
  110. package/lib/commands/db/detail.js +1 -1
  111. package/lib/commands/db/diff-refresh-start.js +1 -1
  112. package/lib/commands/db/diff-refresh-status.js +1 -1
  113. package/lib/commands/db/diff.js +1 -1
  114. package/lib/commands/db/index.js +1 -1
  115. package/lib/commands/db/list.js +1 -1
  116. package/lib/commands/db/shared.js +1 -1
  117. package/lib/commands/db/table-diff-shared.js +1 -1
  118. package/lib/commands/db/tables.js +1 -1
  119. package/lib/commands/db/test.js +1 -1
  120. package/lib/commands/db/update.js +1 -1
  121. package/lib/commands/deployment/index.js +1 -1
  122. package/lib/commands/deployment/sync-all.js +1 -1
  123. package/lib/commands/deployment/sync-jobs.js +1 -1
  124. package/lib/commands/deployment/sync-status.js +1 -1
  125. package/lib/commands/doctor.js +1 -1
  126. package/lib/commands/file/index.js +1 -1
  127. package/lib/commands/flow/create.js +1 -1
  128. package/lib/commands/flow/detail.js +1 -1
  129. package/lib/commands/flow/index.js +1 -1
  130. package/lib/commands/flow/list.js +1 -1
  131. package/lib/commands/flow/page-list.js +1 -1
  132. package/lib/commands/flow/publish.js +1 -1
  133. package/lib/commands/flow/runtime-resources-shared.js +1 -1
  134. package/lib/commands/flow/runtime-role-list.js +1 -1
  135. package/lib/commands/flow/runtime-role-user-list.js +1 -1
  136. package/lib/commands/flow/runtime-user-search.js +1 -1
  137. package/lib/commands/flow/shared.js +1 -1
  138. package/lib/commands/flow/update.js +1 -1
  139. package/lib/commands/flow/validate.js +1 -1
  140. package/lib/commands/instant-api-policy/current.js +1 -1
  141. package/lib/commands/instant-api-policy/index.js +1 -1
  142. package/lib/commands/instant-api-policy/init.js +1 -1
  143. package/lib/commands/instant-api-policy/publish.js +1 -1
  144. package/lib/commands/instant-api-policy/pull.js +1 -1
  145. package/lib/commands/instant-api-policy/revision.js +1 -1
  146. package/lib/commands/instant-api-policy/revisions.js +1 -1
  147. package/lib/commands/instant-api-policy/rollback.js +1 -1
  148. package/lib/commands/instant-api-policy/shared.js +1 -1
  149. package/lib/commands/instant-api-policy/validate.js +1 -1
  150. package/lib/commands/issue/context.js +1 -1
  151. package/lib/commands/issue/index.js +1 -1
  152. package/lib/commands/issue/nudge.js +1 -1
  153. package/lib/commands/issue/report.js +1 -1
  154. package/lib/commands/kb/create.js +1 -1
  155. package/lib/commands/kb/delete.js +1 -1
  156. package/lib/commands/kb/detail.js +1 -1
  157. package/lib/commands/kb/index.js +1 -1
  158. package/lib/commands/kb/list.js +1 -1
  159. package/lib/commands/kb/search.js +1 -1
  160. package/lib/commands/kb/shared.js +1 -1
  161. package/lib/commands/kb/update.js +1 -1
  162. package/lib/commands/logs/index.js +1 -1
  163. package/lib/commands/menu/asset-update.js +1 -1
  164. package/lib/commands/menu/delete.js +1 -1
  165. package/lib/commands/menu/external-link-create.js +1 -1
  166. package/lib/commands/menu/external-link-update.js +1 -1
  167. package/lib/commands/menu/group-create.js +1 -1
  168. package/lib/commands/menu/group-update.js +1 -1
  169. package/lib/commands/menu/index.js +1 -1
  170. package/lib/commands/menu/list.js +1 -1
  171. package/lib/commands/menu/move.js +1 -1
  172. package/lib/commands/menu/regroup-start.js +1 -1
  173. package/lib/commands/menu/rename.js +1 -1
  174. package/lib/commands/menu/shared/compare-table.js +1 -1
  175. package/lib/commands/menu/shared/delete-plan.js +1 -1
  176. package/lib/commands/menu/shared/facts.js +1 -1
  177. package/lib/commands/menu/shared/index.js +1 -1
  178. package/lib/commands/menu/shared/inquirer.js +1 -1
  179. package/lib/commands/menu/shared/local-pages.js +1 -1
  180. package/lib/commands/menu/shared/logic.js +1 -1
  181. package/lib/commands/menu/shared/mutations.js +1 -1
  182. package/lib/commands/menu/shared/path.js +1 -1
  183. package/lib/commands/menu/shared/service.js +1 -1
  184. package/lib/commands/menu/shared/subapp-assets.js +1 -1
  185. package/lib/commands/menu/shared/sync-core.js +1 -1
  186. package/lib/commands/menu/shared/update-core.js +1 -1
  187. package/lib/commands/menu/shared/valid-url.js +1 -1
  188. package/lib/commands/menu/subapp-assets-status.js +1 -1
  189. package/lib/commands/menu/subapp-assets-update.js +1 -1
  190. package/lib/commands/menu/sync.js +1 -1
  191. package/lib/commands/menu/visibility-update.js +1 -1
  192. package/lib/commands/notification/config-create.js +1 -1
  193. package/lib/commands/notification/config-delete.js +1 -1
  194. package/lib/commands/notification/config-list.js +1 -1
  195. package/lib/commands/notification/config-update.js +1 -1
  196. package/lib/commands/notification/index.js +1 -1
  197. package/lib/commands/notification/shared.js +1 -1
  198. package/lib/commands/ocr/index.js +1 -1
  199. package/lib/commands/page/create.js +1 -1
  200. package/lib/commands/page/custom/detail.js +1 -1
  201. package/lib/commands/page/custom/list.js +1 -1
  202. package/lib/commands/page/custom/publish.js +1 -1
  203. package/lib/commands/page/custom/shared.js +1 -1
  204. package/lib/commands/page/custom/syntax.js +1 -1
  205. package/lib/commands/page/custom/update.js +1 -1
  206. package/lib/commands/page/data-list-status.js +1 -1
  207. package/lib/commands/page/generate-start.js +1 -1
  208. package/lib/commands/page/generate-status.js +1 -1
  209. package/lib/commands/page/index.js +1 -1
  210. package/lib/commands/page/pull.js +1 -1
  211. package/lib/commands/page/push.js +1 -1
  212. package/lib/commands/page/relation-audit.js +1 -1
  213. package/lib/commands/page/restore.js +1 -1
  214. package/lib/commands/page/shared.js +1 -1
  215. package/lib/commands/page/sync.js +1 -1
  216. package/lib/commands/project/api-architecture-upgrade.js +1 -1
  217. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  218. package/lib/commands/project/create/format-elapsed.js +1 -1
  219. package/lib/commands/project/create/main.js +1 -1
  220. package/lib/commands/project/create/materialize-project-template.js +1 -1
  221. package/lib/commands/project/create/project-name.js +1 -1
  222. package/lib/commands/project/create/project-template-archive.js +1 -1
  223. package/lib/commands/project/create/project-template-path.js +1 -1
  224. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  225. package/lib/commands/project/create/use-format-code.js +1 -1
  226. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  227. package/lib/commands/project/domain-routing-sync.js +1 -1
  228. package/lib/commands/project/index.js +1 -1
  229. package/lib/commands/project/upgrade.js +1 -1
  230. package/lib/commands/registry.js +1 -1
  231. package/lib/commands/role/delete.js +1 -1
  232. package/lib/commands/role/detail.js +1 -1
  233. package/lib/commands/role/index.js +1 -1
  234. package/lib/commands/role/list.js +1 -1
  235. package/lib/commands/role/shared.js +1 -1
  236. package/lib/commands/role/update.js +1 -1
  237. package/lib/commands/role/user-add.js +1 -1
  238. package/lib/commands/role/user-remove.js +1 -1
  239. package/lib/commands/role/user-resolve.js +1 -1
  240. package/lib/commands/rule/get.js +1 -1
  241. package/lib/commands/rule/index.js +1 -1
  242. package/lib/commands/rule/list.js +1 -1
  243. package/lib/commands/rule/set.js +1 -1
  244. package/lib/commands/rule/shared.js +1 -1
  245. package/lib/commands/run/index.js +1 -1
  246. package/lib/commands/schema.js +1 -1
  247. package/lib/commands/sql/create.js +1 -1
  248. package/lib/commands/sql/delete.js +1 -1
  249. package/lib/commands/sql/detail.js +1 -1
  250. package/lib/commands/sql/exec.js +1 -1
  251. package/lib/commands/sql/index.js +1 -1
  252. package/lib/commands/sql/list.js +1 -1
  253. package/lib/commands/sql/pull.js +1 -1
  254. package/lib/commands/sql/push.js +1 -1
  255. package/lib/commands/sql/shared.js +1 -1
  256. package/lib/commands/sql/status.js +1 -1
  257. package/lib/commands/sql/validate.js +1 -1
  258. package/lib/commands/task/index.js +1 -1
  259. package/lib/commands/task/status.js +1 -1
  260. package/lib/commands/tenant/index.js +1 -1
  261. package/lib/commands/tenant/members-list.js +1 -1
  262. package/lib/commands/tenant/shared.js +1 -1
  263. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  264. package/lib/commands/user-account/feishu-bind.js +1 -1
  265. package/lib/commands/user-account/index.js +1 -1
  266. package/lib/commands/workspace/add.js +1 -1
  267. package/lib/commands/workspace/index.js +1 -1
  268. package/lib/commands/workspace/remove.js +1 -1
  269. package/lib/config/domain-config.js +1 -1
  270. package/lib/config/project-domain-routing.js +1 -1
  271. package/lib/config/region-config.js +1 -1
  272. package/lib/config/schema.js +1 -1
  273. package/lib/constant/cdn.js +1 -1
  274. package/lib/constant/cli.js +1 -1
  275. package/lib/constant/defaults.js +1 -1
  276. package/lib/constant/domain.js +1 -1
  277. package/lib/constant/env.js +1 -1
  278. package/lib/constant/output.js +1 -1
  279. package/lib/constant/paths.js +1 -1
  280. package/lib/constant/region.js +1 -1
  281. package/lib/constant/risk.js +1 -1
  282. package/lib/constant/routing-profile.js +1 -1
  283. package/lib/context/app-resolver.js +1 -1
  284. package/lib/context/auth-resolver.js +1 -1
  285. package/lib/context/config-loader.js +1 -1
  286. package/lib/context.js +1 -1
  287. package/lib/core/alias-resolver.js +1 -1
  288. package/lib/core/api-client.js +1 -1
  289. package/lib/core/bff/config.js +1 -1
  290. package/lib/core/bff/file-system.js +1 -1
  291. package/lib/core/bff/hash.js +1 -1
  292. package/lib/core/bff/hook-directory.js +1 -1
  293. package/lib/core/bff/lock.js +1 -1
  294. package/lib/core/bff/utils.js +1 -1
  295. package/lib/core/cross-db-analysis.js +1 -1
  296. package/lib/core/cross-db-relation.js +1 -1
  297. package/lib/core/db-resolver.js +1 -1
  298. package/lib/core/flow-config.js +1 -1
  299. package/lib/core/instant-api-policy/config.js +1 -1
  300. package/lib/core/instant-api-policy/endpoints.js +1 -1
  301. package/lib/core/kb-management-client.js +1 -1
  302. package/lib/core/kb-search-client.js +1 -1
  303. package/lib/core/page/file-system.js +1 -1
  304. package/lib/core/page/hash.js +1 -1
  305. package/lib/core/page/lock.js +1 -1
  306. package/lib/core/page/lr-smart-jsx.js +1 -1
  307. package/lib/core/sql-index-auditor.js +1 -1
  308. package/lib/core/sql-sync/config.js +1 -1
  309. package/lib/core/sql-sync/file-system.js +1 -1
  310. package/lib/core/sql-sync/hash.js +1 -1
  311. package/lib/core/sql-sync/lock.js +1 -1
  312. package/lib/core/sql-sync/utils.js +1 -1
  313. package/lib/core/sql-validator.js +1 -1
  314. package/lib/errors.js +1 -1
  315. package/lib/framework/build-all-flags.js +1 -1
  316. package/lib/framework/error-output.js +1 -1
  317. package/lib/framework/explicit-yes.js +1 -1
  318. package/lib/framework/flags.js +1 -1
  319. package/lib/framework/help.js +1 -1
  320. package/lib/framework/index.js +1 -1
  321. package/lib/framework/output.js +1 -1
  322. package/lib/framework/response.js +1 -1
  323. package/lib/framework/runner-alias.js +1 -1
  324. package/lib/framework/runner.js +1 -1
  325. package/lib/framework/schema-export.js +1 -1
  326. package/lib/framework/supported-flags.js +1 -1
  327. package/lib/framework/types.js +1 -1
  328. package/lib/generated/build-info.d.ts +4 -4
  329. package/lib/generated/build-info.js +1 -1
  330. package/lib/generated/official-routing.js +1 -1
  331. package/lib/generated/routing-contract.js +1 -1
  332. package/lib/help.js +1 -1
  333. package/lib/postinstall.js +1 -1
  334. package/lib/runtime/confirmation.js +1 -1
  335. package/lib/runtime/event.js +1 -1
  336. package/lib/runtime/index.js +1 -1
  337. package/lib/runtime/queue.js +1 -1
  338. package/lib/runtime/resolve.js +1 -1
  339. package/lib/services/dataset-design/checkpoint.js +1 -1
  340. package/lib/services/dataset-design/commands.js +1 -1
  341. package/lib/services/dataset-design/contract.js +1 -1
  342. package/lib/skills/builtin-skill.js +1 -1
  343. package/lib/skills/main.js +1 -1
  344. package/lib/skills/npx-skills-add.js +1 -1
  345. package/lib/skills/skill-presence.js +1 -1
  346. package/lib/telemetry/cli-command-trace.js +1 -1
  347. package/lib/telemetry/cli-help-trace.js +1 -1
  348. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  349. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  350. package/lib/telemetry/send-cli-trace-log.js +1 -1
  351. package/lib/utils/ai_config.js +1 -1
  352. package/lib/utils/apply-jq-filter.js +1 -1
  353. package/lib/utils/cdn-config.js +1 -1
  354. package/lib/utils/check-sdk-version.js +1 -1
  355. package/lib/utils/cli-version-check.js +1 -1
  356. package/lib/utils/cli-version-policy.js +1 -1
  357. package/lib/utils/config.js +1 -1
  358. package/lib/utils/entity-with-id.js +1 -1
  359. package/lib/utils/file-utils.js +1 -1
  360. package/lib/utils/guides-cdn.js +1 -1
  361. package/lib/utils/http-client.js +1 -1
  362. package/lib/utils/is-non-interactive.js +1 -1
  363. package/lib/utils/logger.js +1 -1
  364. package/lib/utils/params.js +1 -1
  365. package/lib/utils/platform.js +1 -1
  366. package/lib/utils/sleep.js +1 -1
  367. package/lib/utils/template-replacer.js +1 -1
  368. package/lib/utils/update-notice.js +1 -1
  369. package/lib/utils/version.js +1 -1
  370. package/lib/utils/with-active-cookie.js +1 -1
  371. package/lib/utils/write-cli-side-channel.js +1 -1
  372. package/package.json +1 -1
  373. package/skills/rabetbase/SKILL.md +1 -1
  374. package/skills/rabetbase-dataset-generation/SKILL.md +1 -1
  375. package/skills/rabetbase-page-generation/SKILL.md +1 -1
  376. package/skills/rabetbase.manifest.json +3 -3
@@ -1 +1 @@
1
- const a112_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
+ const a112_0x2629fc=a112_0x2d20;(function(_0xb6fbc6,_0x690fb5){const _0x1d6181=a112_0x2d20,_0xe8abfb=_0xb6fbc6();while(!![]){try{const _0x1767a8=parseInt(_0x1d6181(0x1af))/0x1+parseInt(_0x1d6181(0x1a9))/0x2*(parseInt(_0x1d6181(0x1a6))/0x3)+-parseInt(_0x1d6181(0x193))/0x4+parseInt(_0x1d6181(0x18d))/0x5+parseInt(_0x1d6181(0x18c))/0x6+-parseInt(_0x1d6181(0x1ac))/0x7+-parseInt(_0x1d6181(0x19b))/0x8*(parseInt(_0x1d6181(0x195))/0x9);if(_0x1767a8===_0x690fb5)break;else _0xe8abfb['push'](_0xe8abfb['shift']());}catch(_0x522692){_0xe8abfb['push'](_0xe8abfb['shift']());}}}(a112_0x1265,0x85d7b));import{getDbTableDiff}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a112_0x1265(){const _0x2183e1=['2025GyNmXD','boolean','datasetTableCount','length','tableName','number','23272lHNrDn','string','Compare\x20datasets\x20with\x20physical\x20database\x20tables\x20and\x20show\x20schema\x20drift','summary','addedColumns','str','num','Fetch\x20and\x20aggregate\x20every\x20page\x20(overrides\x20--page\x20and\x20--pagesize)','MODIFIED_TABLE','appCode','fieldDiff','1675911VpoIbb','bool','read','2oPwzqJ','DELETED_TABLE','all','6197912bAZtVz','physicalTableCount','table','172072EQhqNz','diffType','\x20changed\x20table\x20row(s),\x20total\x20','5939658bxLsXC','2328025NUpYEi','Page\x20index\x20(1-based)','modifiedColumns','deletedColumns','page','map','392388ODnFpx','filter'];a112_0x1265=function(){return _0x2183e1;};return a112_0x1265();}function a112_0x2d20(_0x4cce54,_0x510e15){_0x4cce54=_0x4cce54-0x18c;const _0x12654d=a112_0x1265();let _0x2d200f=_0x12654d[_0x4cce54];return _0x2d200f;}import{DB_TABLE_PAGE_SIZE,getAllDbTableDiff,summarizeDbTableDiff}from'../../commands/db/table-diff-shared.js';export const dbDiff={'service':'db','command':'diff','description':a112_0x2629fc(0x19d),'risk':a112_0x2629fc(0x1a8),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':'table','type':a112_0x2629fc(0x19c),'description':'Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)'},{'name':a112_0x2629fc(0x191),'type':a112_0x2629fc(0x19a),'description':a112_0x2629fc(0x18e),'default':0x1},{'name':'pagesize','type':'number','description':'Page\x20size','default':0x14},{'name':a112_0x2629fc(0x1ab),'type':a112_0x2629fc(0x196),'description':a112_0x2629fc(0x1a2)}],async 'execute'(_0x1fc28e){const _0xaf2c81=a112_0x2629fc,_0x194870=_0x1fc28e[_0xaf2c81(0x1a1)]('id'),_0x5a655b=_0x1fc28e[_0xaf2c81(0x1a7)]('all'),_0x221478=_0x5a655b?0x1:_0x1fc28e[_0xaf2c81(0x1a1)](_0xaf2c81(0x191),0x1)||0x1,_0x384044=_0x5a655b?DB_TABLE_PAGE_SIZE:_0x1fc28e['num']('pagesize',0x14)||0x14,_0x14a380=_0x1fc28e[_0xaf2c81(0x1a0)](_0xaf2c81(0x1ae))||undefined,_0x50d6cc=_0x5a655b?await getAllDbTableDiff(getDbTableDiff,_0x1fc28e[_0xaf2c81(0x1a4)],_0x194870,_0x14a380):await getDbTableDiff(_0x1fc28e['appCode'],_0x194870,{'pageIndex':_0x221478,'pageSize':_0x384044,'tableName':_0x14a380}),_0x241117=_0x50d6cc['tableList'],_0x92b2d=summarizeDbTableDiff(_0x241117),_0x59ca70=_0x241117[_0xaf2c81(0x194)](_0x475164=>_0x475164[_0xaf2c81(0x1b0)]==='NEW_TABLE'||_0x475164[_0xaf2c81(0x1b0)]===_0xaf2c81(0x1a3))['map'](_0x5254a8=>_0x5254a8[_0xaf2c81(0x199)]),_0x3165fb=_0x241117[_0xaf2c81(0x194)](_0x4c0b3c=>_0x4c0b3c[_0xaf2c81(0x1b0)]===_0xaf2c81(0x1aa))[_0xaf2c81(0x192)](_0xc9054a=>_0xc9054a[_0xaf2c81(0x199)]),_0x346fc5=_0x241117[_0xaf2c81(0x194)](_0x1bf259=>_0x1bf259['diffType']==='MODIFIED_TABLE')[_0xaf2c81(0x192)](_0x365a4b=>({'tableName':_0x365a4b[_0xaf2c81(0x199)],'addedColumns':_0x365a4b[_0xaf2c81(0x1a5)]?.[_0xaf2c81(0x19f)]??[],'deletedColumns':_0x365a4b[_0xaf2c81(0x1a5)]?.[_0xaf2c81(0x190)]??[],'modifiedColumns':_0x365a4b[_0xaf2c81(0x1a5)]?.[_0xaf2c81(0x18f)]??[]}));return{'ok':!![],'data':{'dbLinkId':_0x194870,'page':_0x221478,'pageSize':_0x384044,'totalCount':_0x50d6cc['totalCount'],...typeof _0x50d6cc[_0xaf2c81(0x1ad)]===_0xaf2c81(0x19a)?{'physicalTableCount':_0x50d6cc['physicalTableCount']}:{},...typeof _0x50d6cc[_0xaf2c81(0x197)]===_0xaf2c81(0x19a)?{'datasetTableCount':_0x50d6cc[_0xaf2c81(0x197)]}:{},..._0x50d6cc[_0xaf2c81(0x19e)]?{'summary':_0x50d6cc[_0xaf2c81(0x19e)]}:{},'summaryByType':_0x92b2d,'toAnalyzeTables':_0x59ca70,'deletedTables':_0x3165fb,'modifiedFieldDiffs':_0x346fc5,'tables':_0x241117},'message':_0x241117[_0xaf2c81(0x198)]+_0xaf2c81(0x1b1)+_0x50d6cc['totalCount']+'\x20(db\x20link\x20'+_0x194870+')'};}};
@@ -1 +1 @@
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
+ (function(_0x1f27c1,_0x5c6220){const _0x4eb31c=a113_0x83f1,_0x5a726a=_0x1f27c1();while(!![]){try{const _0x1e5303=parseInt(_0x4eb31c(0x73))/0x1+parseInt(_0x4eb31c(0x77))/0x2*(-parseInt(_0x4eb31c(0x6f))/0x3)+parseInt(_0x4eb31c(0x70))/0x4+-parseInt(_0x4eb31c(0x75))/0x5+parseInt(_0x4eb31c(0x74))/0x6*(parseInt(_0x4eb31c(0x72))/0x7)+parseInt(_0x4eb31c(0x6e))/0x8+parseInt(_0x4eb31c(0x76))/0x9*(parseInt(_0x4eb31c(0x71))/0xa);if(_0x1e5303===_0x5c6220)break;else _0x5a726a['push'](_0x5a726a['shift']());}catch(_0x10bfd1){_0x5a726a['push'](_0x5a726a['shift']());}}}(a113_0x325d,0x2bee2));import{dbList}from'../../commands/db/list.js';function a113_0x325d(){const _0x5aab40=['689337eCmjRf','457288vSbihj','505664zwzLaq','3rqkGsO','470416XBVXIr','10fJyOBB','42uSEpEk','161366KuTZeG','146346PdEGzp','782675JudQTZ'];a113_0x325d=function(){return _0x5aab40;};return a113_0x325d();}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_0x83f1(_0x364d66,_0x2449a2){_0x364d66=_0x364d66-0x6e;const _0x325d87=a113_0x325d();let _0x83f1bd=_0x325d87[_0x364d66];return _0x83f1bd;}import{dbTest}from'../../commands/db/test.js';import{dbAnalyzeBatchPlan}from'../../commands/db/analyze-batch-plan.js';import{dbAnalyzeStart}from'../../commands/db/analyze-start.js';import{dbAnalyzeCancel}from'../../commands/db/analyze-cancel.js';import{dbAnalyzeStatus}from'../../commands/db/analyze-status.js';import{dbCrossAnalyzeStart}from'../../commands/db/cross-db-analyze-start.js';import{dbCrossAnalyzeStatus}from'../../commands/db/cross-db-analyze-status.js';import{dbCrossAnalyzeLatest}from'../../commands/db/cross-db-analyze-latest.js';import{dbTables}from'../../commands/db/tables.js';import{dbDiff}from'../../commands/db/diff.js';import{dbDiffRefreshStart}from'../../commands/db/diff-refresh-start.js';import{dbDiffRefreshStatus}from'../../commands/db/diff-refresh-status.js';export const dbDefinitions=[dbList,dbDetail,dbCreate,dbUpdate,dbDelete,dbTest,dbAnalyzeBatchPlan,dbAnalyzeStart,dbAnalyzeCancel,dbAnalyzeStatus,dbCrossAnalyzeStart,dbCrossAnalyzeStatus,dbCrossAnalyzeLatest,dbTables,dbDiff,dbDiffRefreshStart,dbDiffRefreshStatus];
@@ -1 +1 @@
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
+ const a114_0x180539=a114_0x2a3f;function a114_0x2a3f(_0x4ea2e6,_0x567e34){_0x4ea2e6=_0x4ea2e6-0xdb;const _0x4673b1=a114_0x4673();let _0x2a3f59=_0x4673b1[_0x4ea2e6];return _0x2a3f59;}(function(_0x31b21d,_0x532f1c){const _0x4497e8=a114_0x2a3f,_0x4ae614=_0x31b21d();while(!![]){try{const _0xa8f52b=-parseInt(_0x4497e8(0xe0))/0x1+-parseInt(_0x4497e8(0xe2))/0x2+parseInt(_0x4497e8(0xdc))/0x3+-parseInt(_0x4497e8(0xe6))/0x4+-parseInt(_0x4497e8(0xef))/0x5*(-parseInt(_0x4497e8(0xed))/0x6)+parseInt(_0x4497e8(0xdf))/0x7*(-parseInt(_0x4497e8(0xea))/0x8)+parseInt(_0x4497e8(0xeb))/0x9;if(_0xa8f52b===_0x532f1c)break;else _0x4ae614['push'](_0x4ae614['shift']());}catch(_0x5ee510){_0x4ae614['push'](_0x4ae614['shift']());}}}(a114_0x4673,0x9ae13));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_0x180539(0xde),'description':a114_0x180539(0xe9),'risk':a114_0x180539(0xe7),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a114_0x180539(0xe8),'type':a114_0x180539(0xdd),'description':a114_0x180539(0xe3),'default':0x1},{'name':a114_0x180539(0xe5),'type':'number','description':a114_0x180539(0xe4),'default':0x64}],async 'execute'(_0x27c9ee){const _0x36c245=a114_0x180539,_0x3fc40c=_0x27c9ee[_0x36c245(0xf0)]('page',0x1)||0x1,_0x4a1cc0=_0x27c9ee[_0x36c245(0xf0)](_0x36c245(0xe5),0x64)||0x64,[{items:_0x356d5a,paging:_0x4bd01b},_0x1d56a0]=await Promise['all']([listDbLinks(_0x27c9ee[_0x36c245(0xee)],{'currentPage':_0x3fc40c,'pageSize':_0x4a1cc0}),listDatasets(_0x27c9ee[_0x36c245(0xee)],{'source':_0x36c245(0xf1)})]),_0x22db4b=_0x356d5a['map'](_0x18a2b7=>({...sanitizeDbLinkForOutput(_0x18a2b7),'datasetDependency':buildDbDatasetDependency(_0x18a2b7,_0x1d56a0)['datasetDependency']})),_0x148047=_0x4bd01b?_0x4bd01b:{'currentPage':_0x3fc40c,'pageSize':_0x4a1cc0,'rowsOnPage':_0x22db4b[_0x36c245(0xe1)],'totalCount':null,'note':'Server\x20omitted\x20paging\x20metadata;\x20totalCount\x20is\x20unknown\x20—\x20rowsOnPage\x20is\x20this\x20page\x20only'};return{'ok':!![],'data':{'connections':_0x22db4b,'paging':_0x148047},'message':_0x36c245(0xec)+_0x22db4b[_0x36c245(0xe1)]+_0x36c245(0xdb)};}};function a114_0x4673(){const _0x34d364=['1705532EIoGPk','read','page','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','263864yNRLIv','28227717esJhIU','Found\x20','17634ujxtkd','appCode','545cAnWPN','num','DB_TABLE','\x20database\x20connection(s)','2029341gJpQmE','number','list','182qapMZo','1262157IFOnNn','length','1905452AurFwL','Page\x20index\x20(1-based)','Page\x20size','pagesize'];a114_0x4673=function(){return _0x34d364;};return a114_0x4673();}
@@ -1 +1 @@
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
+ function a115_0x301c(_0x28d2ee,_0x5a1817){_0x28d2ee=_0x28d2ee-0xe9;const _0x478844=a115_0x4788();let _0x301c8d=_0x478844[_0x28d2ee];return _0x301c8d;}(function(_0x40afe4,_0x19a258){const _0x488919=a115_0x301c,_0x50c3b0=_0x40afe4();while(!![]){try{const _0x577855=parseInt(_0x488919(0xee))/0x1+parseInt(_0x488919(0xfb))/0x2+-parseInt(_0x488919(0xfd))/0x3*(-parseInt(_0x488919(0xfc))/0x4)+parseInt(_0x488919(0xf4))/0x5+parseInt(_0x488919(0xf2))/0x6+parseInt(_0x488919(0xf7))/0x7+-parseInt(_0x488919(0xf3))/0x8*(parseInt(_0x488919(0xfe))/0x9);if(_0x577855===_0x19a258)break;else _0x50c3b0['push'](_0x50c3b0['shift']());}catch(_0x156787){_0x50c3b0['push'](_0x50c3b0['shift']());}}}(a115_0x4788,0x2ae84));import{testDbLinkConfigConnect}from'../../core/api-client.js';function a115_0x4788(){const _0x269bc5=['dbId','tableName','234032FJtBXz','36mlHmdD','48684vCMVOB','3256542WUqfmC','jdbcurl','/data/database','The\x20configuration\x20was\x20not\x20saved.\x20Verify\x20the\x20host,\x20credentials,\x20database\x20name,\x20network,\x20and\x20allowlist,\x20or\x20explicitly\x20pass\x20--skip-connection-test.','dbtableConfig','isFinite','passwd','trim','apiError','accesskey','password','Database\x20connection\x20preflight\x20failed.','secret','includes','hasAvailableDo','dbpassword','connectionstring','name','/data/er?dbId=','number','81492bgeypL','map','test','[redacted]','297636JIwByk','16NADCJq','965240tDCRoN','filter','length','2185470mnUXtW','privatekey'];a115_0x4788=function(){return _0x269bc5;};return a115_0x4788();}import{getAppBaseUrl}from'../../constant/domain.js';import{CliErrors}from'../../errors.js';function shouldRedactKey(_0x27427c){const _0x484d9c=a115_0x301c,_0x201cb7=_0x27427c['toLowerCase']();if(_0x201cb7===_0x484d9c(0x108)||_0x201cb7===_0x484d9c(0x104)||_0x201cb7===_0x484d9c(0xe9))return!![];if(_0x201cb7[_0x484d9c(0x10b)](_0x484d9c(0x10a))||_0x201cb7['includes']('token')||_0x201cb7['includes']('credential'))return!![];if(_0x201cb7[_0x484d9c(0x10b)](_0x484d9c(0xf8))||_0x201cb7[_0x484d9c(0x10b)](_0x484d9c(0x107)))return!![];if(_0x201cb7==='authorization'||_0x201cb7===_0x484d9c(0xea)||_0x201cb7===_0x484d9c(0xff))return!![];return![];}export function sanitizeDbLinkForOutput(_0x37fcd0){const _0x4e0c16=a115_0x301c,_0x2425a1={..._0x37fcd0};delete _0x2425a1[_0x4e0c16(0x10c)];for(const _0x45ffb3 of Object['keys'](_0x2425a1)){if(!shouldRedactKey(_0x45ffb3))continue;const _0x30958a=_0x2425a1[_0x45ffb3];_0x30958a!=null&&String(_0x30958a)[_0x4e0c16(0xf6)]>0x0&&(_0x2425a1[_0x45ffb3]=_0x4e0c16(0xf1));}return _0x2425a1;}export function sanitizeDbLinkList(_0x4d8274){const _0x22529b=a115_0x301c;return _0x4d8274[_0x22529b(0xef)](_0x4f3e54=>sanitizeDbLinkForOutput(_0x4f3e54));}export function buildDbDatasetDependency(_0x51aaef,_0x3c3c9d){const _0x33c7ec=a115_0x301c,_0x3191c6=_0x3c3c9d[_0x33c7ec(0xf5)](_0xafeb4b=>Number(_0xafeb4b[_0x33c7ec(0x102)]?.[_0x33c7ec(0xf9)])===Number(_0x51aaef['id']))[_0x33c7ec(0xef)](_0x58db6f=>({'id':_0x58db6f['id'],'code':_0x58db6f['code'],'name':_0x58db6f[_0x33c7ec(0xeb)],..._0x58db6f['dbtableConfig']?.[_0x33c7ec(0xfa)]?{'tableName':_0x58db6f[_0x33c7ec(0x102)][_0x33c7ec(0xfa)]}:{}}));return{'datasetDependency':{'hasDependencies':_0x3191c6['length']>0x0,'activeDatasetCount':_0x3191c6[_0x33c7ec(0xf6)]},'datasets':_0x3191c6};}export async function assertDbLinkConnectionPreflight(_0x35374c){const _0x564f48=a115_0x301c,_0x452822=await testDbLinkConfigConnect(_0x35374c);if(_0x452822!==!![])throw CliErrors[_0x564f48(0x106)](_0x564f48(0x109),_0x564f48(0x101));}const DB_URL_PATTERN=/^[^\s:]+(?::\d+)?$/;export function validateDbUrl(_0x35f7f1){const _0x168f29=a115_0x301c,_0x383213=_0x35f7f1['trim']();if(!_0x383213)return![];return DB_URL_PATTERN[_0x168f29(0xf0)](_0x383213);}export function buildDbPageLinks(_0x5d8947,_0x57e428){const _0x53f7f5=a115_0x301c,_0x7951fd=_0x5d8947?.[_0x53f7f5(0x105)]();if(!_0x7951fd)return undefined;const _0x3ce09d=typeof _0x57e428===_0x53f7f5(0xed)?String(_0x57e428):String(_0x57e428??'')[_0x53f7f5(0x105)]();if(!_0x3ce09d)return undefined;const _0x574b17=Number(_0x3ce09d);if(!Number[_0x53f7f5(0x103)](_0x574b17)||_0x574b17<=0x0)return undefined;const _0x4febe8=getAppBaseUrl(_0x7951fd),_0x181832=encodeURIComponent(String(_0x574b17));return{'databasePage':_0x4febe8+_0x53f7f5(0x100),'erPage':_0x4febe8+_0x53f7f5(0xec)+_0x181832};}
@@ -1 +1 @@
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
+ function a116_0x21cd(_0x12fefe,_0x3851e9){_0x12fefe=_0x12fefe-0x154;const _0x1f37b5=a116_0x1f37();let _0x21cdb7=_0x1f37b5[_0x12fefe];return _0x21cdb7;}const a116_0x38b235=a116_0x21cd;(function(_0x318278,_0x3b118e){const _0x40cc93=a116_0x21cd,_0x22de90=_0x318278();while(!![]){try{const _0x340e0e=-parseInt(_0x40cc93(0x167))/0x1*(parseInt(_0x40cc93(0x16d))/0x2)+-parseInt(_0x40cc93(0x16e))/0x3+-parseInt(_0x40cc93(0x166))/0x4*(parseInt(_0x40cc93(0x155))/0x5)+parseInt(_0x40cc93(0x161))/0x6*(-parseInt(_0x40cc93(0x15c))/0x7)+-parseInt(_0x40cc93(0x169))/0x8+parseInt(_0x40cc93(0x160))/0x9+parseInt(_0x40cc93(0x165))/0xa*(parseInt(_0x40cc93(0x156))/0xb);if(_0x340e0e===_0x3b118e)break;else _0x22de90['push'](_0x22de90['shift']());}catch(_0x27ca30){_0x22de90['push'](_0x22de90['shift']());}}}(a116_0x1f37,0xbe74a));import{CliErrors}from'../../errors.js';export const DB_TABLE_PAGE_SIZE=0x64;export const DB_TABLE_DIFF_TYPES=['NEW_TABLE','MODIFIED_TABLE','DELETED_TABLE',a116_0x38b235(0x16a)];export function summarizeDbTableDiff(_0x36f105){const _0x2d70b5=a116_0x38b235;return Object[_0x2d70b5(0x159)](DB_TABLE_DIFF_TYPES[_0x2d70b5(0x154)](_0x3ad6ec=>[_0x3ad6ec,_0x36f105[_0x2d70b5(0x15a)](_0x237bd4=>_0x237bd4['diffType']===_0x3ad6ec)[_0x2d70b5(0x15d)]]));}function a116_0x1f37(){const _0x1dd90a=['4019700VBJYxa','values','tableList','map','10TglfVx','1672OJqSYw','summary','number','fromEntries','filter','size','7hfjXss','length','totalCount','\x20of\x20','4354029jACruy','7365264SdLkyh','\x20row(s).','physicalTableCount','validation','296070yiTroQ','357044nymFrG','39554BGdtJI','Incomplete\x20db\x20table\x20pagination:\x20collected\x20','9448760DozbOW','ALREADY_ANALYZED','datasetTableCount','set','14OXFovn'];a116_0x1f37=function(){return _0x1dd90a;};return a116_0x1f37();}export async function getAllDbTableDiff(_0x282a48,_0x15e560,_0x371977,_0x358466){const _0xa5e850=a116_0x38b235,_0x24294b=new Map();let _0x5c99e7=0x1,_0x593b65=null;while(!![]){_0x593b65=await _0x282a48(_0x15e560,_0x371977,{'pageIndex':_0x5c99e7,'pageSize':DB_TABLE_PAGE_SIZE,'tableName':_0x358466});const _0x4d30a7=_0x24294b[_0xa5e850(0x15b)];for(const _0x80b2a1 of _0x593b65[_0xa5e850(0x170)]){_0x24294b[_0xa5e850(0x16c)](_0x80b2a1['tableName'],_0x80b2a1);}if(_0x24294b[_0xa5e850(0x15b)]>=_0x593b65[_0xa5e850(0x15e)])break;if(_0x593b65[_0xa5e850(0x170)]['length']===0x0||_0x24294b['size']===_0x4d30a7)throw CliErrors[_0xa5e850(0x164)](_0xa5e850(0x168)+_0x24294b[_0xa5e850(0x15b)]+_0xa5e850(0x15f)+_0x593b65[_0xa5e850(0x15e)]+_0xa5e850(0x162));_0x5c99e7+=0x1;}return{'totalCount':_0x593b65?.[_0xa5e850(0x15e)]??0x0,...typeof _0x593b65?.[_0xa5e850(0x163)]===_0xa5e850(0x158)?{'physicalTableCount':_0x593b65[_0xa5e850(0x163)]}:{},...typeof _0x593b65?.['datasetTableCount']===_0xa5e850(0x158)?{'datasetTableCount':_0x593b65[_0xa5e850(0x16b)]}:{},..._0x593b65?.[_0xa5e850(0x157)]?{'summary':_0x593b65[_0xa5e850(0x157)]}:{},'tableList':[..._0x24294b[_0xa5e850(0x16f)]()]};}
@@ -1 +1 @@
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
+ function a117_0x1500(_0x56b948,_0x450e9e){_0x56b948=_0x56b948-0xaf;const _0x328a96=a117_0x328a();let _0x1500a6=_0x328a96[_0x56b948];return _0x1500a6;}const a117_0x4ce380=a117_0x1500;(function(_0x511c64,_0x5cebcb){const _0x22a7a3=a117_0x1500,_0x1b5a9e=_0x511c64();while(!![]){try{const _0x3d30fe=parseInt(_0x22a7a3(0xc6))/0x1*(parseInt(_0x22a7a3(0xc8))/0x2)+parseInt(_0x22a7a3(0xc2))/0x3+parseInt(_0x22a7a3(0xb0))/0x4+parseInt(_0x22a7a3(0xaf))/0x5*(-parseInt(_0x22a7a3(0xc3))/0x6)+parseInt(_0x22a7a3(0xb6))/0x7+parseInt(_0x22a7a3(0xc5))/0x8*(parseInt(_0x22a7a3(0xc9))/0x9)+parseInt(_0x22a7a3(0xb2))/0xa*(-parseInt(_0x22a7a3(0xb9))/0xb);if(_0x3d30fe===_0x5cebcb)break;else _0x1b5a9e['push'](_0x1b5a9e['shift']());}catch(_0x480a6b){_0x1b5a9e['push'](_0x1b5a9e['shift']());}}}(a117_0x328a,0x428ad));import{getDbTableComparisonPage}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a117_0x328a(){const _0x59a0e3=['2185pOrDjH','187888czbyBl','datasetTableCount','94580Fofrps','physicalTableCount','str','table','2344825RFMpFh','summary','\x20table\x20comparison\x20row(s),\x20total\x20','913sldDqh','tableList','read','tables','Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)','length','\x20(db\x20link\x20','string','totalCount','993612ytDJdn','2592IphGJW','num','24DRFOao','272693TltboF','appCode','2zBslSM','781533BWsVID'];a117_0x328a=function(){return _0x59a0e3;};return a117_0x328a();}import{getAllDbTableDiff,summarizeDbTableDiff}from'../../commands/db/table-diff-shared.js';export const dbTables={'service':'db','command':a117_0x4ce380(0xbc),'description':'List\x20all\x20database\x20table\x20comparison\x20rows\x20and\x20analysis\x20states','risk':a117_0x4ce380(0xbb),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a117_0x4ce380(0xb5),'type':a117_0x4ce380(0xc0),'description':a117_0x4ce380(0xbd)}],async 'execute'(_0x5788c9){const _0x3aec62=a117_0x4ce380,_0x5415b3=_0x5788c9[_0x3aec62(0xc4)]('id'),_0x26c095=_0x5788c9[_0x3aec62(0xb4)](_0x3aec62(0xb5))||undefined,_0x38c314=await getAllDbTableDiff(getDbTableComparisonPage,_0x5788c9[_0x3aec62(0xc7)],_0x5415b3,_0x26c095),_0x8f7b50=_0x38c314[_0x3aec62(0xba)];return{'ok':!![],'data':{'dbLinkId':_0x5415b3,'totalCount':_0x38c314[_0x3aec62(0xc1)],...typeof _0x38c314[_0x3aec62(0xb3)]==='number'?{'physicalTableCount':_0x38c314[_0x3aec62(0xb3)]}:{},...typeof _0x38c314[_0x3aec62(0xb1)]==='number'?{'datasetTableCount':_0x38c314[_0x3aec62(0xb1)]}:{},..._0x38c314[_0x3aec62(0xb7)]?{'summary':_0x38c314[_0x3aec62(0xb7)]}:{},'summaryByType':summarizeDbTableDiff(_0x8f7b50),'tables':_0x8f7b50},'message':_0x8f7b50[_0x3aec62(0xbe)]+_0x3aec62(0xb8)+_0x38c314['totalCount']+_0x3aec62(0xbf)+_0x5415b3+')'};}};
@@ -1 +1 @@
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
+ const a118_0x44827e=a118_0x2429;(function(_0x306af8,_0x519324){const _0x22d756=a118_0x2429,_0x5eaed9=_0x306af8();while(!![]){try{const _0x1fed8c=-parseInt(_0x22d756(0x17f))/0x1+-parseInt(_0x22d756(0x18f))/0x2*(-parseInt(_0x22d756(0x17e))/0x3)+parseInt(_0x22d756(0x18c))/0x4+-parseInt(_0x22d756(0x18b))/0x5*(parseInt(_0x22d756(0x17b))/0x6)+-parseInt(_0x22d756(0x181))/0x7*(parseInt(_0x22d756(0x191))/0x8)+parseInt(_0x22d756(0x182))/0x9+parseInt(_0x22d756(0x18e))/0xa*(parseInt(_0x22d756(0x17a))/0xb);if(_0x1fed8c===_0x519324)break;else _0x5eaed9['push'](_0x5eaed9['shift']());}catch(_0x22af17){_0x5eaed9['push'](_0x5eaed9['shift']());}}}(a118_0x2021,0x4c5e1));import{testDbLinkConnect}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a118_0x2021(){const _0x517f9e=['2794580ZKdGMn','2035636ndeqEc','Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)','110ChGinG','10LgimdI','success','333176HyiqbS','1182599YDfNPR','6jgXtIp','keys','message','116799gaFnjn','594627MDNgar','read','84euaRXa','719415dxFCqT','object','code','slice','Connection\x20check\x20finished\x20for\x20db\x20link\x20','num','error','test','msg'];a118_0x2021=function(){return _0x517f9e;};return a118_0x2021();}function summarizeTestConnectResult(_0x179f0e){const _0x90851e=a118_0x2429;if(_0x179f0e===!![]||_0x179f0e===![])return{'success':_0x179f0e};if(_0x179f0e===null||_0x179f0e===undefined)return{'type':typeof _0x179f0e};if(typeof _0x179f0e!==_0x90851e(0x183))return{'type':typeof _0x179f0e};const _0x38f4bf=_0x179f0e,_0x3e5fda=[_0x90851e(0x190),_0x90851e(0x17d),_0x90851e(0x184),_0x90851e(0x188),_0x90851e(0x18a),'data'],_0x6107e1={};for(const _0x559542 of _0x3e5fda){if(_0x559542 in _0x38f4bf)_0x6107e1[_0x559542]=_0x38f4bf[_0x559542];}return Object[_0x90851e(0x17c)](_0x6107e1)['length']===0x0&&(_0x6107e1[_0x90851e(0x17c)]=Object[_0x90851e(0x17c)](_0x38f4bf)[_0x90851e(0x185)](0x0,0x14)),_0x6107e1;}function a118_0x2429(_0x1bc2a0,_0x110092){_0x1bc2a0=_0x1bc2a0-0x17a;const _0x202172=a118_0x2021();let _0x24299d=_0x202172[_0x1bc2a0];return _0x24299d;}export const dbTest={'service':'db','command':a118_0x44827e(0x189),'description':a118_0x44827e(0x18d),'risk':a118_0x44827e(0x180),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x1ea517){const _0x4fc7c2=a118_0x44827e,_0xd314db=_0x1ea517[_0x4fc7c2(0x187)]('id'),_0x5b3d0d=await testDbLinkConnect(_0xd314db),_0x169334=_0x5b3d0d===!![]||typeof _0x5b3d0d==='object'&&_0x5b3d0d!==null&&_0x5b3d0d[_0x4fc7c2(0x190)]===!![],_0x41ea59=summarizeTestConnectResult(_0x5b3d0d);return{'ok':!![],'data':{'id':_0xd314db,'connected':Boolean(_0x169334),'result':_0x41ea59},'message':_0x169334?'Connection\x20OK\x20for\x20db\x20link\x20'+_0xd314db:_0x4fc7c2(0x186)+_0xd314db+'\x20(see\x20data.result)'};}};
@@ -1 +1 @@
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
+ const a119_0x3a4a6b=a119_0x99e8;(function(_0x3aee51,_0x183fa3){const _0x23de0c=a119_0x99e8,_0x24c511=_0x3aee51();while(!![]){try{const _0x9a545e=parseInt(_0x23de0c(0x8c))/0x1+-parseInt(_0x23de0c(0x74))/0x2+parseInt(_0x23de0c(0x8a))/0x3*(-parseInt(_0x23de0c(0x88))/0x4)+parseInt(_0x23de0c(0x94))/0x5+-parseInt(_0x23de0c(0x84))/0x6+parseInt(_0x23de0c(0x77))/0x7+-parseInt(_0x23de0c(0x7c))/0x8*(parseInt(_0x23de0c(0x79))/0x9);if(_0x9a545e===_0x183fa3)break;else _0x24c511['push'](_0x24c511['shift']());}catch(_0x210c39){_0x24c511['push'](_0x24c511['shift']());}}}(a119_0x1124,0xa6662));function a119_0x99e8(_0x3179d3,_0x53c81d){_0x3179d3=_0x3179d3-0x74;const _0x1124fc=a119_0x1124();let _0x99e82a=_0x1124fc[_0x3179d3];return _0x99e82a;}import{getDbLinkInfo,updateDbLink}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG,SKIP_CONNECTION_TEST_FLAG}from'../../commands/common/flags.js';function a119_0x1124(){const _0x1abf15=['dbname','--password\x20must\x20contain\x20the\x20real\x20database\x20password,\x20not\x20a\x20masked\x20value.','dbdesc','dbparam','has','Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22','3784056lrgEVU','validation','dbUrl','str','88GpMLDk','[redacted]','171813RvtEdZ','Updated\x20db\x20link\x20','1231853dvQuRZ','bool','num','username','skip-connection-test','******','string','trim','4500595ADpNKQ','Preview\x20the\x20merged\x20database\x20connection\x20update;\x20password\x20redacted','Current\x20or\x20replacement\x20password.\x20Required\x20when\x20the\x20stored\x20password\x20is\x20masked','360788jgIqAt','POST','password','8744309JvyISS','New\x20username','1885671nfHPvg','New\x20connection\x20parameter\x20string','dbParam','24RQfcSA','dburl'];a119_0x1124=function(){return _0x1abf15;};return a119_0x1124();}import{assertDbLinkConnectionPreflight,sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';const MASKED_PASSWORD_VALUES=new Set([a119_0x3a4a6b(0x91),a119_0x3a4a6b(0x89)]);function mergeDbLinkUpdate(_0x3eb664,_0x78b07a){const _0x1ad813=a119_0x3a4a6b,_0x2f8185={..._0x3eb664},_0x5f5bef=_0x78b07a['str'](_0x1ad813(0x76));if(_0x5f5bef&&MASKED_PASSWORD_VALUES[_0x1ad813(0x82)](_0x5f5bef))throw CliErrors['validation'](_0x1ad813(0x7f));if(!_0x5f5bef&&MASKED_PASSWORD_VALUES[_0x1ad813(0x82)](String(_0x3eb664['password']??'')))throw CliErrors[_0x1ad813(0x85)]('The\x20server\x20returned\x20a\x20masked\x20database\x20password.\x20Pass\x20the\x20current\x20or\x20replacement\x20password\x20explicitly\x20with\x20--password\x20to\x20update\x20this\x20connection\x20safely.');const _0x3066e8=_0x78b07a['str'](_0x1ad813(0x7e));if(_0x3066e8)_0x2f8185['dbName']=_0x3066e8;const _0x3dff40=_0x78b07a[_0x1ad813(0x87)](_0x1ad813(0x7d));if(_0x3dff40)_0x2f8185[_0x1ad813(0x86)]=_0x3dff40[_0x1ad813(0x93)]();const _0xce3dfd=_0x78b07a['str']('username');if(_0xce3dfd)_0x2f8185['username']=_0xce3dfd;if(_0x5f5bef)_0x2f8185[_0x1ad813(0x76)]=_0x5f5bef;const _0x36f309=_0x78b07a[_0x1ad813(0x87)]('dbparam');if(_0x36f309)_0x2f8185[_0x1ad813(0x7b)]=_0x36f309;const _0xed92d3=_0x78b07a['str'](_0x1ad813(0x80));if(_0xed92d3)_0x2f8185['dbDesc']=_0xed92d3;return _0x2f8185;}export const dbUpdate={'service':'db','command':'update','description':'Update\x20a\x20database\x20connection\x20by\x20merging\x20supplied\x20fields\x20into\x20the\x20current\x20server\x20record.\x20A\x20masked\x20server\x20password\x20requires\x20explicit\x20--password','risk':'write','flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':'dbname','type':a119_0x3a4a6b(0x92),'description':'New\x20database\x20name'},{'name':a119_0x3a4a6b(0x7d),'type':a119_0x3a4a6b(0x92),'description':'New\x20host:port'},{'name':a119_0x3a4a6b(0x8f),'type':a119_0x3a4a6b(0x92),'description':a119_0x3a4a6b(0x78)},{'name':a119_0x3a4a6b(0x76),'type':a119_0x3a4a6b(0x92),'description':a119_0x3a4a6b(0x96)},{'name':a119_0x3a4a6b(0x81),'type':a119_0x3a4a6b(0x92),'description':a119_0x3a4a6b(0x7a)},{'name':a119_0x3a4a6b(0x80),'type':'string','description':'New\x20description'},SKIP_CONNECTION_TEST_FLAG],async 'validate'(_0x36cd3a){const _0x18f843=a119_0x3a4a6b,_0xc21360=_0x36cd3a[_0x18f843(0x87)]('dburl');if(_0xc21360&&!validateDbUrl(_0xc21360[_0x18f843(0x93)]()))throw CliErrors[_0x18f843(0x85)](_0x18f843(0x83)+_0xc21360+'\x22');},async 'dryRun'(_0x210f40){const _0x52ff16=a119_0x3a4a6b,_0x2b6551=_0x210f40[_0x52ff16(0x8e)]('id'),_0x3cd117=await getDbLinkInfo(_0x2b6551),_0x3bf19a=mergeDbLinkUpdate(_0x3cd117,_0x210f40),_0x2993e3=sanitizeDbLinkForOutput(_0x3bf19a);return{'method':_0x52ff16(0x75),'url':'/smartapi/dblink/update','body':_0x2993e3,'description':_0x52ff16(0x95),'connectionPreflight':{'enabled':!_0x210f40['bool'](_0x52ff16(0x90)),'executed':![]}};},async 'execute'(_0xbdcbc1){const _0x22f9b5=a119_0x3a4a6b,_0x4b5ad8=_0xbdcbc1['num']('id'),_0x1aea53=await getDbLinkInfo(_0x4b5ad8),_0x4e2854=mergeDbLinkUpdate(_0x1aea53,_0xbdcbc1);!_0xbdcbc1[_0x22f9b5(0x8d)](_0x22f9b5(0x90))&&await assertDbLinkConnectionPreflight(_0x4e2854);const {id:_0x4d7701,entity:_0x2e8658}=normalizeEntityWithIdResponse(await updateDbLink(_0x4e2854));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x2e8658),'message':_0x22f9b5(0x8b)+(_0x4d7701??_0x4b5ad8)};}};
@@ -1 +1 @@
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
+ (function(_0x5143d2,_0xd89eb4){const _0x481d40=a120_0x3e3f,_0x59f621=_0x5143d2();while(!![]){try{const _0x6da2a3=-parseInt(_0x481d40(0x1c6))/0x1*(parseInt(_0x481d40(0x1ce))/0x2)+-parseInt(_0x481d40(0x1d0))/0x3*(parseInt(_0x481d40(0x1c9))/0x4)+parseInt(_0x481d40(0x1cc))/0x5*(parseInt(_0x481d40(0x1c7))/0x6)+-parseInt(_0x481d40(0x1c8))/0x7*(parseInt(_0x481d40(0x1cd))/0x8)+-parseInt(_0x481d40(0x1c4))/0x9*(-parseInt(_0x481d40(0x1c5))/0xa)+-parseInt(_0x481d40(0x1cb))/0xb*(-parseInt(_0x481d40(0x1ca))/0xc)+parseInt(_0x481d40(0x1cf))/0xd;if(_0x6da2a3===_0xd89eb4)break;else _0x59f621['push'](_0x59f621['shift']());}catch(_0x4b271f){_0x59f621['push'](_0x59f621['shift']());}}}(a120_0x1da9,0x3eafb));function a120_0x3e3f(_0x182cef,_0x203490){_0x182cef=_0x182cef-0x1c4;const _0x1da94c=a120_0x1da9();let _0x3e3f11=_0x1da94c[_0x182cef];return _0x3e3f11;}function a120_0x1da9(){const _0x223ef1=['7FEiLNX','1577492GfwlII','2136dKBJVL','9636LXCNuJ','5BHnJfA','2682184hevHqq','817454OWuqPk','11733280LHulPU','3VbMVbT','387IVwKnP','67640YeIwmt','1jczBNE','274776Pwzmbr'];a120_0x1da9=function(){return _0x223ef1;};return a120_0x1da9();}import{deploymentSyncAll}from'../../commands/deployment/sync-all.js';import{deploymentSyncStatus}from'../../commands/deployment/sync-status.js';import{deploymentSyncJobs}from'../../commands/deployment/sync-jobs.js';export const deploymentDefinitions=[deploymentSyncAll,deploymentSyncStatus,deploymentSyncJobs];
@@ -1 +1 @@
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
+ function a121_0x39f9(){const _0x12987d=['7530882yENGag','Would\x20submit\x20an\x20administrative\x20deployment\x20metadata\x20backfill\x20or\x20recovery\x20job.','job','4LsKVuP','1027444OxkYRP','List\x20recent\x20deployment\x20sync\x20jobs\x20before\x20deciding\x20whether\x20to\x20submit\x20again.','all_server_supported_metadata','/smartapi/data-sync/submit','10672605LSuiVA','Submitted\x20deployment\x20synchronization\x20job\x20','jobId','validation','not_submitted','appCode','boolean','1665996oFqYdM','No\x20deployment\x20synchronization\x20was\x20needed\x20for\x20this\x20app.','status','data','2193801XJVbiA','bool','defineProperty','application_deployment_sync','write','7ylKNHn','5118400iVVseE','sync-all','8eRKcdk','not_needed','deployment','35725030xgTipQ','confirm'];a121_0x39f9=function(){return _0x12987d;};return a121_0x39f9();}const a121_0x4c6a83=a121_0x5430;(function(_0x2f861d,_0x4edc3b){const _0x9ec06f=a121_0x5430,_0x309b79=_0x2f861d();while(!![]){try{const _0x212f5e=-parseInt(_0x9ec06f(0xf9))/0x1+parseInt(_0x9ec06f(0x104))/0x2+parseInt(_0x9ec06f(0xe8))/0x3*(parseInt(_0x9ec06f(0xf8))/0x4)+-parseInt(_0x9ec06f(0xee))/0x5+-parseInt(_0x9ec06f(0xf5))/0x6*(parseInt(_0x9ec06f(0xed))/0x7)+parseInt(_0x9ec06f(0xf0))/0x8*(-parseInt(_0x9ec06f(0xfd))/0x9)+parseInt(_0x9ec06f(0xf3))/0xa;if(_0x212f5e===_0x4edc3b)break;else _0x309b79['push'](_0x309b79['shift']());}catch(_0x5d60ec){_0x309b79['push'](_0x309b79['shift']());}}}(a121_0x39f9,0x9d62c));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{asDryRunResult}from'../../commands/common/dry-run.js';import{isPlatformTransportFailure,submitDeploymentMetadataSyncAll}from'../../core/api-client.js';function a121_0x5430(_0xf55d29,_0x32f7a5){_0xf55d29=_0xf55d29-0xe6;const _0x39f9cc=a121_0x39f9();let _0x5430b2=_0x39f9cc[_0xf55d29];return _0x5430b2;}import{CliError,CliErrors}from'../../errors.js';const SUBMIT_PATH=a121_0x4c6a83(0xfc),CONFIRM_FLAG={'name':a121_0x4c6a83(0xf4),'type':a121_0x4c6a83(0x103),'description':'Confirm\x20the\x20administrative\x20backfill\x20or\x20recovery\x20synchronization'};export const deploymentSyncAll={'service':a121_0x4c6a83(0xf2),'command':a121_0x4c6a83(0xef),'description':'Backfill\x20or\x20recover\x20all\x20server-supported\x20application\x20metadata','risk':a121_0x4c6a83(0xec),'strictFlags':!![],'structuredErrors':!![],'confirmationDescription':'Submit\x20an\x20administrative\x20metadata\x20backfill\x20or\x20recovery\x20synchronization.','flags':[CONFIRM_FLAG,APPCODE_FLAG_OPTIONAL],async 'dryRun'(_0x2b85b1){const _0x5d189e=a121_0x4c6a83;return asDryRunResult(buildPreview(_0x2b85b1[_0x5d189e(0x102)]),{'method':'POST','url':SUBMIT_PATH,'description':_0x5d189e(0xf6)});},async 'execute'(_0x19346a){const _0x34ace0=a121_0x4c6a83;if(!_0x19346a[_0x34ace0(0xe9)](_0x34ace0(0xf4)))throw CliErrors[_0x34ace0(0x100)]('--confirm\x20is\x20required\x20to\x20synchronize\x20all\x20application\x20metadata.','Run\x20with\x20--dry-run\x20first,\x20then\x20add\x20--confirm.');try{const _0x558576=await submitDeploymentMetadataSyncAll({'appCode':_0x19346a[_0x34ace0(0x102)]});if(_0x558576['outcome']===_0x34ace0(0xf1))return{'ok':!![],'data':{'operation':_0x34ace0(0xeb),'appCode':_0x19346a[_0x34ace0(0x102)],'submitted':![],'outcome':_0x34ace0(0xf1)},'message':_0x34ace0(0x105)};return{'ok':!![],'data':{'operation':_0x34ace0(0xeb),'appCode':_0x19346a['appCode'],'submitted':!![],'outcome':'submitted','jobId':_0x558576[_0x34ace0(0xf7)][_0x34ace0(0xff)],'status':_0x558576[_0x34ace0(0xf7)][_0x34ace0(0xe6)]},'message':_0x34ace0(0xfe)+_0x558576[_0x34ace0(0xf7)][_0x34ace0(0xff)]+'.'};}catch(_0xc506c9){if(!isPlatformTransportFailure(_0xc506c9))throw _0xc506c9;const _0x45c5b2=new CliError('deployment_sync_submit_outcome_unknown',0x2,'Deployment\x20sync\x20submission\x20response\x20was\x20unavailable;\x20job\x20creation\x20is\x20unknown.',_0x34ace0(0xfa));Object[_0x34ace0(0xea)](_0x45c5b2,_0x34ace0(0xe7),{'enumerable':!![],'value':{'operation':_0x34ace0(0xeb),'appCode':_0x19346a['appCode'],'submitted':null,'outcome':'unknown'}});throw _0x45c5b2;}}};function buildPreview(_0x220f7c){const _0x36ad74=a121_0x4c6a83;return{'operation':_0x36ad74(0xeb),'selector':{'appCode':_0x220f7c,'scope':_0x36ad74(0xfb)},'before':null,'after':null,'dryRun':!![],'backend':{'submitted':![],'outcome':_0x36ad74(0x101)},'warnings':[]};}
@@ -1 +1 @@
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
+ const a122_0x53e98d=a122_0x4f28;(function(_0x5dae8b,_0x4f6cab){const _0x59e0c6=a122_0x4f28,_0x4a1529=_0x5dae8b();while(!![]){try{const _0x1f4741=-parseInt(_0x59e0c6(0xc5))/0x1+-parseInt(_0x59e0c6(0xd4))/0x2+parseInt(_0x59e0c6(0xd5))/0x3+-parseInt(_0x59e0c6(0xd3))/0x4*(-parseInt(_0x59e0c6(0xce))/0x5)+parseInt(_0x59e0c6(0xc8))/0x6+parseInt(_0x59e0c6(0xc0))/0x7*(-parseInt(_0x59e0c6(0xbc))/0x8)+parseInt(_0x59e0c6(0xc7))/0x9*(parseInt(_0x59e0c6(0xc2))/0xa);if(_0x1f4741===_0x4f6cab)break;else _0x4a1529['push'](_0x4a1529['shift']());}catch(_0x26c97d){_0x4a1529['push'](_0x4a1529['shift']());}}}(a122_0x1761,0x695e9));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{listDeploymentMetadataSyncJobs}from'../../core/api-client.js';function a122_0x1761(){const _0x54ebd1=['read','number','deployment','Optional\x20server-defined\x20job\x20status\x20filter','6715ZpveKa','Items\x20per\x20page\x20(maximum\x20100)','length','string','isSafeInteger','196mhdZqw','1377180adBHTk','335628eWfCTh','trim','sync-jobs','str','List\x20application\x20deployment\x20synchronization\x20jobs','current-page','\x20deployment\x20synchronization\x20job(s).','1376744sFtCPV','Found\x20','validation','items','21aWapNr','page-size','50FeaDxS','--page-size\x20must\x20be\x20an\x20integer\x20from\x201\x20to\x20100.','--current-page\x20must\x20be\x20a\x20positive\x20integer.','840346bPbamR','num','2626461DTegrp','5039880gYNAbb','appCode'];a122_0x1761=function(){return _0x54ebd1;};return a122_0x1761();}import{CliErrors}from'../../errors.js';export const deploymentSyncJobs={'service':a122_0x53e98d(0xcc),'command':a122_0x53e98d(0xd7),'description':a122_0x53e98d(0xd9),'risk':a122_0x53e98d(0xca),'strictFlags':!![],'structuredErrors':!![],'flags':[{'name':a122_0x53e98d(0xba),'type':a122_0x53e98d(0xcb),'default':0x1,'description':'Page\x20number'},{'name':'page-size','type':a122_0x53e98d(0xcb),'default':0xa,'description':a122_0x53e98d(0xcf)},{'name':'status','type':a122_0x53e98d(0xd1),'description':a122_0x53e98d(0xcd)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x5a8968){const _0x17eef7=a122_0x53e98d;readPaging(_0x5a8968[_0x17eef7(0xc6)](_0x17eef7(0xba),0x1),_0x5a8968[_0x17eef7(0xc6)]('page-size',0xa));},async 'execute'(_0x5ae7c6){const _0x1d3800=a122_0x53e98d,{currentPage:_0x4aa174,pageSize:_0x64ff5c}=readPaging(_0x5ae7c6[_0x1d3800(0xc6)](_0x1d3800(0xba),0x1),_0x5ae7c6[_0x1d3800(0xc6)](_0x1d3800(0xc1),0xa)),_0x5cf650=_0x5ae7c6[_0x1d3800(0xd8)]('status')[_0x1d3800(0xd6)](),_0x182049=await listDeploymentMetadataSyncJobs({'appCode':_0x5ae7c6['appCode'],'currentPage':_0x4aa174,'pageSize':_0x64ff5c,..._0x5cf650?{'status':_0x5cf650}:{}});return{'ok':!![],'data':{'appCode':_0x5ae7c6[_0x1d3800(0xc9)],..._0x182049},'message':_0x1d3800(0xbd)+_0x182049[_0x1d3800(0xbf)][_0x1d3800(0xd0)]+_0x1d3800(0xbb)};}};function a122_0x4f28(_0x5b482b,_0x429179){_0x5b482b=_0x5b482b-0xba;const _0x1761eb=a122_0x1761();let _0x4f2831=_0x1761eb[_0x5b482b];return _0x4f2831;}function readPaging(_0x3a4714,_0x350e92){const _0x391841=a122_0x53e98d;if(!Number[_0x391841(0xd2)](_0x3a4714)||_0x3a4714<0x1)throw CliErrors[_0x391841(0xbe)](_0x391841(0xc4));if(!Number[_0x391841(0xd2)](_0x350e92)||_0x350e92<0x1||_0x350e92>0x64)throw CliErrors[_0x391841(0xbe)](_0x391841(0xc3));return{'currentPage':_0x3a4714,'pageSize':_0x350e92};}
@@ -1 +1 @@
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
+ const a123_0x6d7919=a123_0x13d9;(function(_0x7b641c,_0x566e9e){const _0x1c626a=a123_0x13d9,_0x5c8f37=_0x7b641c();while(!![]){try{const _0x4a9e31=-parseInt(_0x1c626a(0x1d0))/0x1*(parseInt(_0x1c626a(0x1c5))/0x2)+-parseInt(_0x1c626a(0x1de))/0x3*(-parseInt(_0x1c626a(0x1dc))/0x4)+-parseInt(_0x1c626a(0x1c8))/0x5+parseInt(_0x1c626a(0x1df))/0x6+parseInt(_0x1c626a(0x1d7))/0x7*(-parseInt(_0x1c626a(0x1c6))/0x8)+-parseInt(_0x1c626a(0x1cc))/0x9*(-parseInt(_0x1c626a(0x1dd))/0xa)+-parseInt(_0x1c626a(0x1d3))/0xb*(parseInt(_0x1c626a(0x1e0))/0xc);if(_0x4a9e31===_0x566e9e)break;else _0x5c8f37['push'](_0x5c8f37['shift']());}catch(_0x1c2a06){_0x5c8f37['push'](_0x5c8f37['shift']());}}}(a123_0xaf0a,0xf2a40));import{getDeploymentMetadataSyncStatus}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const TERMINAL_STATUSES=new Set(['SUCCESS',a123_0x6d7919(0x1ce),a123_0x6d7919(0x1d6)]),ACTIVE_STATUSES=new Set([a123_0x6d7919(0x1d4),'RUNNING']);export const deploymentSyncStatus={'service':a123_0x6d7919(0x1d1),'command':'sync-status','description':'Get\x20application\x20deployment\x20synchronization\x20job\x20status','risk':a123_0x6d7919(0x1c7),'requiresAppCode':!![],'strictFlags':!![],'structuredErrors':!![],'flags':[{'name':'job-id','type':a123_0x6d7919(0x1db),'required':!![],'description':'Deployment\x20synchronization\x20job\x20ID'}],async 'validate'(_0x38c49c){const _0x5de8dd=a123_0x6d7919;readJobId(_0x38c49c[_0x5de8dd(0x1d8)](_0x5de8dd(0x1d2)));},async 'execute'(_0x4bbf43){const _0x3e2c19=a123_0x6d7919,_0xde2ab0=readJobId(_0x4bbf43[_0x3e2c19(0x1d8)](_0x3e2c19(0x1d2))),_0x5551d4=await getDeploymentMetadataSyncStatus({'jobId':_0xde2ab0,'appCode':_0x4bbf43[_0x3e2c19(0x1cf)]}),_0x25e0c0=TERMINAL_STATUSES[_0x3e2c19(0x1da)](_0x5551d4[_0x3e2c19(0x1c0)])?!![]:ACTIVE_STATUSES[_0x3e2c19(0x1da)](_0x5551d4['status'])?![]:null,_0xfcafd0=countBy(_0x5551d4['results'][_0x3e2c19(0x1cd)](_0x29d4fc=>_0x29d4fc['bizType'])),_0x29d071=countBy(_0x5551d4[_0x3e2c19(0x1e2)][_0x3e2c19(0x1cd)](_0x375eff=>_0x375eff[_0x3e2c19(0x1c2)])),_0x147579=_0x25e0c0===null?[_0x3e2c19(0x1c3)+_0x5551d4[_0x3e2c19(0x1c0)]+_0x3e2c19(0x1c4)]:[];return{'ok':!![],'data':{'job':_0x5551d4,'isTerminal':_0x25e0c0,'summary':{'total':_0x5551d4[_0x3e2c19(0x1e2)]['length'],'failed':_0x5551d4[_0x3e2c19(0x1e2)]['filter'](_0x2a759c=>_0x2a759c[_0x3e2c19(0x1c2)]==='FAILED')[_0x3e2c19(0x1cb)],'byBizType':_0xfcafd0,'byAction':_0x29d071},'warnings':_0x147579},'message':_0x3e2c19(0x1d9)+_0xde2ab0+_0x3e2c19(0x1d5)+_0x5551d4[_0x3e2c19(0x1c0)]+'.'};}};function readJobId(_0x399ae1){const _0x905cdf=a123_0x6d7919;if(!Number[_0x905cdf(0x1ca)](_0x399ae1)||_0x399ae1<=0x0)throw CliErrors[_0x905cdf(0x1e1)](_0x905cdf(0x1c1));return _0x399ae1;}function a123_0x13d9(_0x1785f6,_0x11da27){_0x1785f6=_0x1785f6-0x1c0;const _0xaf0a4d=a123_0xaf0a();let _0x13d981=_0xaf0a4d[_0x1785f6];return _0x13d981;}function a123_0xaf0a(){const _0x1c1690=['6400590nDUJjm','reduce','isSafeInteger','length','6732rVAbqo','map','PARTIAL_SUCCESS','appCode','395qnlHHR','deployment','job-id','6923158RbAJel','PENDING','\x20is\x20','FAILED','2585863oVCKeM','num','Deployment\x20synchronization\x20job\x20','has','number','6319308FtjuVc','23440JRgNgt','3txxmcl','7800870gpCRZk','24EykNdg','validation','results','status','--job-id\x20must\x20be\x20a\x20positive\x20integer.','action','Preserved\x20server-defined\x20status\x20',';\x20terminal\x20state\x20is\x20unknown\x20to\x20this\x20CLI\x20version.','3702cBleGc','8smscHh','read'];a123_0xaf0a=function(){return _0x1c1690;};return a123_0xaf0a();}function countBy(_0x5dbead){const _0x2e5f93=a123_0x6d7919;return _0x5dbead[_0x2e5f93(0x1c9)]((_0x413b34,_0x42e9ef)=>{return _0x413b34[_0x42e9ef]=(_0x413b34[_0x42e9ef]??0x0)+0x1,_0x413b34;},{});}
@@ -1 +1 @@
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
+ const a124_0x122c58=a124_0x1210;(function(_0x4401ea,_0x531503){const _0x2a9f99=a124_0x1210,_0x3f884f=_0x4401ea();while(!![]){try{const _0x5acced=parseInt(_0x2a9f99(0x16d))/0x1+-parseInt(_0x2a9f99(0x152))/0x2+-parseInt(_0x2a9f99(0x16e))/0x3*(-parseInt(_0x2a9f99(0x156))/0x4)+parseInt(_0x2a9f99(0x118))/0x5*(parseInt(_0x2a9f99(0x135))/0x6)+-parseInt(_0x2a9f99(0x169))/0x7*(parseInt(_0x2a9f99(0x11d))/0x8)+-parseInt(_0x2a9f99(0x163))/0x9+-parseInt(_0x2a9f99(0x11c))/0xa*(-parseInt(_0x2a9f99(0x145))/0xb);if(_0x5acced===_0x531503)break;else _0x3f884f['push'](_0x3f884f['shift']());}catch(_0x17be36){_0x3f884f['push'](_0x3f884f['shift']());}}}(a124_0x3cc8,0x727df));import a124_0x1e0b6b 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';function a124_0x1210(_0x15672c,_0x1d45ec){_0x15672c=_0x15672c-0xfb;const _0x3cc876=a124_0x3cc8();let _0x121066=_0x3cc876[_0x15672c];return _0x121066;}import{getActiveRegion,getApiDomain,getAppDomain,getKbDomain,getKbServiceDomain,getSkillDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags,initGlobalEnvironment,inspectCliConfigJsonFile,loadRawConfigLayers}from'../context.js';function a124_0x3cc8(){const _0x801057=['padEnd','\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','packageVersion','\x20doctor','3048ohvIqS','red','✗\x20Expired','missing','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','repeat','✗\x20Invalid','\x20\x20Auth','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20skillDomain:\x20\x20\x20\x20\x20','\x20\x20Repair\x20project:\x20\x20\x20','(none)','Not\x20checked\x20until\x20routing\x20configuration\x20is\x20repaired','entries','yellow','66QfkasC','apps','green','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','current','env','\x20config\x20delete\x20routing\x20--global','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','prototype','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','call','(set,\x20length=','routing','1581800TDBayO','(default:\x20','\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20appDomain:\x20\x20\x20\x20\x20\x20\x20','116TkGYvi','\x20app\x20\x22','empty','gray','\x20\x20Skill\x20Version:\x20\x20\x20','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','riskLevel','skillVersion','format','\x20config','message','label','\x20\x20Legacy\x20inherit:\x20\x20\x20','7261011asQmfC','appCode','unknown','projectConfig','slice','\x20\x20API\x20Endpoints','21bjPPCu','\x20\x20Config\x20Files','regionConfiguredValue','\x20\x20Package\x20Version:\x20','669572LHugkT','20031NXgcZt','\x20\x20\x20\x20region:\x20\x20\x20\x20\x20','cookie','stringify','\x20(invalid)','raw','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','installedPath','appcode','Repair\x20','bold','source','locale','\x20config\x20delete\x20region','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','apiDir','Global','reason','\x20\x20runtimeDomain:\x20\x20\x20','value','object','⚠\x20Empty\x20(treated\x20as\x20{})','present','status','read','\x20config\x20delete\x20inherit','arch','(no\x20file)','globalConfig','ignored\x20in\x20','\x20\x20explicitAppName:\x20','toLowerCase','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20accessKey:\x20\x20','.region\x20to\x20cn\x20or\x20id\x20in\x20','✓\x20Valid','platform','accessKey','\x20\x20kbDomain:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Built-in\x20Skill','(not\x20found)','keys','\x20\x20Repair\x20project:\x20\x20','global','\x20config\x20delete\x20region\x20--global','\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(set\x20via\x20file,\x20length=','repairCommand','(unknown)','\x20\x20kbServiceDomain:\x20','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','(missing)','includes','\x20\x20Repair\x20global:\x20\x20\x20\x20','state','(not\x20set)','project','\x20\x20Installed\x20Path:\x20\x20','pageSize','\x20config\x20delete\x20routing','Project','Unavailable\x20until\x20routing\x20configuration\x20is\x20repaired','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','8735zYPqAy','region','\x20\x20Repair\x20global:\x20\x20\x20','log','1700670EyhxjH','1878520AMPRIO','string','Set\x20apps.','inherit','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','doctor','explicitAppName','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','\x20\x20─','✗\x20Invalid\x20','hasOwnProperty','\x20\x20Config\x20JSON','length','defaultApp','verbose','push','filter','\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20+\x20'];a124_0x3cc8=function(){return _0x801057;};return a124_0x3cc8();}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(_0x1a0321){const _0x393f8b=a124_0x1210;return typeof _0x1a0321===_0x393f8b(0x11e)?JSON[_0x393f8b(0x171)](_0x1a0321):'<'+(_0x1a0321===null?'null':typeof _0x1a0321)+'>';}async function execute(_0x5540c1){const _0x39ae39=a124_0x1210,_0x38a92c=GIT_COMMIT!==_0x39ae39(0x165)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x39ae39(0x167)](0x0,0xa)+')':VERSION,_0x5ea386=buildConfigFromFlags({}),_0x41be03=getCookie();let _0x4a132f;try{await initGlobalEnvironment(_0x5ea386);}catch(_0x59fab9){_0x4a132f=_0x59fab9 instanceof Error?_0x59fab9:new Error(String(_0x59fab9));}console[_0x39ae39(0x11b)](),console[_0x39ae39(0x11b)](a124_0x1e0b6b[_0x39ae39(0x178)](CLI_BIN_NAME+_0x39ae39(0x134))),console[_0x39ae39(0x11b)](a124_0x1e0b6b[_0x39ae39(0x159)]('─'[_0x39ae39(0x13b)](0x32))),console[_0x39ae39(0x11b)](_0x39ae39(0x14c)+_0x38a92c),console[_0x39ae39(0x11b)](_0x39ae39(0x13e)+process['version']),console['log'](_0x39ae39(0x18f)+process[_0x39ae39(0xfd)]+'\x20'+process[_0x39ae39(0x188)]);const _0x2acf66=inspectBuiltinSkill();console[_0x39ae39(0x11b)](),console[_0x39ae39(0x11b)](a124_0x1e0b6b[_0x39ae39(0x178)](_0x39ae39(0x100))),console['log'](a124_0x1e0b6b[_0x39ae39(0x159)](_0x39ae39(0x126)['repeat'](0x1e)));const _0x103883=_0x2acf66[_0x39ae39(0x10f)]==='current'?a124_0x1e0b6b['green']('✓\x20'+_0x2acf66[_0x39ae39(0x10f)]):a124_0x1e0b6b['red']('✗\x20'+_0x2acf66[_0x39ae39(0x10f)]);console['log'](_0x39ae39(0x132)+_0x103883),console[_0x39ae39(0x11b)](_0x39ae39(0x16c)+_0x2acf66[_0x39ae39(0x133)]),console[_0x39ae39(0x11b)](_0x39ae39(0x15a)+(_0x2acf66[_0x39ae39(0x15d)]||a124_0x1e0b6b[_0x39ae39(0x159)](_0x39ae39(0x109)))),console[_0x39ae39(0x11b)](_0x39ae39(0x112)+(_0x2acf66[_0x39ae39(0x175)]||a124_0x1e0b6b[_0x39ae39(0x159)](_0x39ae39(0x101))));if(_0x2acf66['reason'])console['log'](_0x39ae39(0x154)+_0x2acf66[_0x39ae39(0x17f)]);_0x2acf66[_0x39ae39(0x10f)]!==_0x39ae39(0x149)&&console[_0x39ae39(0x11b)](_0x39ae39(0x12f)+_0x2acf66[_0x39ae39(0x108)]);console[_0x39ae39(0x11b)](),console['log'](a124_0x1e0b6b[_0x39ae39(0x178)](_0x39ae39(0x16a))),console[_0x39ae39(0x11b)](a124_0x1e0b6b[_0x39ae39(0x159)](_0x39ae39(0x126)['repeat'](0x1e)));const _0x20e40b=getGlobalConfigPath(),_0x805553=getProjectConfigPath();console[_0x39ae39(0x11b)]('\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x20e40b||a124_0x1e0b6b[_0x39ae39(0x159)]('(not\x20found)'))),console[_0x39ae39(0x11b)](_0x39ae39(0x139)+(_0x805553||a124_0x1e0b6b[_0x39ae39(0x159)](_0x39ae39(0x101)))),console[_0x39ae39(0x11b)](),console[_0x39ae39(0x11b)](a124_0x1e0b6b[_0x39ae39(0x178)](_0x39ae39(0x129))),console['log'](a124_0x1e0b6b[_0x39ae39(0x159)](_0x39ae39(0x126)[_0x39ae39(0x13b)](0x1e)));const _0xc2363a=(_0x12efad,_0x5d4ab6)=>{const _0x3c9e1f=_0x39ae39;if(!_0x5d4ab6){console[_0x3c9e1f(0x11b)]('\x20\x20'+_0x12efad['padEnd'](0x11)+'\x20'+a124_0x1e0b6b[_0x3c9e1f(0x159)](_0x3c9e1f(0x189)));return;}const _0xe878da=inspectCliConfigJsonFile(_0x5d4ab6);if(_0xe878da[_0x3c9e1f(0x185)]==='ok')console['log']('\x20\x20'+_0x12efad[_0x3c9e1f(0x131)](0x11)+'\x20'+a124_0x1e0b6b['green']('✓\x20Valid\x20JSON'));else{if(_0xe878da['status']===_0x3c9e1f(0x158))console['log']('\x20\x20'+_0x12efad[_0x3c9e1f(0x131)](0x11)+'\x20'+a124_0x1e0b6b[_0x3c9e1f(0x144)](_0x3c9e1f(0x183)));else _0xe878da[_0x3c9e1f(0x185)]===_0x3c9e1f(0x138)?console[_0x3c9e1f(0x11b)]('\x20\x20'+_0x12efad[_0x3c9e1f(0x131)](0x11)+'\x20'+a124_0x1e0b6b[_0x3c9e1f(0x159)](_0x3c9e1f(0x10c))):(console['log']('\x20\x20'+_0x12efad[_0x3c9e1f(0x131)](0x11)+'\x20'+a124_0x1e0b6b[_0x3c9e1f(0x136)]('✗\x20Invalid\x20JSON')),console['log']('\x20\x20'+''[_0x3c9e1f(0x131)](0x11)+'\x20'+a124_0x1e0b6b['red'](_0xe878da[_0x3c9e1f(0x160)])));}};_0xc2363a(_0x39ae39(0x17e),_0x20e40b),_0xc2363a(_0x39ae39(0x115),_0x805553);const _0x4a5acb=loadRawConfigLayers(),_0x30f83c=[{'label':'Project','value':_0x4a5acb['projectConfig'][_0x39ae39(0x119)],'present':Object[_0x39ae39(0x14d)][_0x39ae39(0x128)][_0x39ae39(0x14f)](_0x4a5acb[_0x39ae39(0x166)],_0x39ae39(0x119)),'repairCommand':CLI_BIN_NAME+_0x39ae39(0x17b)},{'label':_0x39ae39(0x17e),'value':_0x4a5acb[_0x39ae39(0x18a)][_0x39ae39(0x119)],'present':Object['prototype']['hasOwnProperty'][_0x39ae39(0x14f)](_0x4a5acb[_0x39ae39(0x18a)],_0x39ae39(0x119)),'repairCommand':CLI_BIN_NAME+_0x39ae39(0x105)}][_0x39ae39(0x12e)](_0x59217b=>_0x59217b[_0x39ae39(0x184)]&&isInvalidLovrabetRegion(_0x59217b[_0x39ae39(0x181)]));for(const [_0x4d6311,_0x384226]of[[_0x39ae39(0x115),_0x4a5acb[_0x39ae39(0x166)]],[_0x39ae39(0x17e),_0x4a5acb['globalConfig']]]){const _0x2b7fb4=_0x384226[_0x39ae39(0x146)]&&typeof _0x384226[_0x39ae39(0x146)]===_0x39ae39(0x182)?_0x384226[_0x39ae39(0x146)]:{};for(const [_0x446f05,_0x511f30]of Object[_0x39ae39(0x143)](_0x2b7fb4)){if(!_0x511f30||typeof _0x511f30!==_0x39ae39(0x182)||!Object[_0x39ae39(0x14d)][_0x39ae39(0x128)][_0x39ae39(0x14f)](_0x511f30,_0x39ae39(0x119)))continue;isInvalidLovrabetRegion(_0x511f30[_0x39ae39(0x119)])&&_0x30f83c[_0x39ae39(0x12d)]({'label':_0x4d6311+_0x39ae39(0x157)+_0x446f05+'\x22','value':_0x511f30['region'],'present':!![],'repairCommand':_0x39ae39(0x11f)+_0x446f05+_0x39ae39(0xfb)+_0x4d6311['toLowerCase']()+'\x20config'});}}if(_0x30f83c[_0x39ae39(0x12a)]>0x0){console[_0x39ae39(0x11b)](),console[_0x39ae39(0x11b)](a124_0x1e0b6b[_0x39ae39(0x178)]('\x20\x20Country/Region\x20Configuration')),console[_0x39ae39(0x11b)](a124_0x1e0b6b[_0x39ae39(0x159)](_0x39ae39(0x126)[_0x39ae39(0x13b)](0x1e)));for(const _0x1365d9 of _0x30f83c){console['log']('\x20\x20'+_0x1365d9[_0x39ae39(0x161)][_0x39ae39(0x131)](0x11)+'\x20'+a124_0x1e0b6b[_0x39ae39(0x136)](_0x39ae39(0x127)+describeRegionValue(_0x1365d9['value']))),console['log']('\x20\x20'+(_0x39ae39(0x177)+_0x1365d9['label'][_0x39ae39(0x18d)]()+':')[_0x39ae39(0x131)](0x10)+'\x20'+_0x1365d9['repairCommand']);}}const _0x1bd26a=[Object[_0x39ae39(0x14d)][_0x39ae39(0x128)]['call'](_0x4a5acb[_0x39ae39(0x18a)],_0x39ae39(0x120))?_0x39ae39(0x104):null,Object['prototype']['hasOwnProperty'][_0x39ae39(0x14f)](_0x4a5acb['projectConfig'],_0x39ae39(0x120))?_0x39ae39(0x111):null][_0x39ae39(0x12e)](Boolean);_0x1bd26a[_0x39ae39(0x12a)]>0x0&&(console[_0x39ae39(0x11b)](_0x39ae39(0x162)+a124_0x1e0b6b['yellow'](_0x39ae39(0x18b)+_0x1bd26a['join'](_0x39ae39(0x130))+_0x39ae39(0x15f))),_0x1bd26a['includes'](_0x39ae39(0x111))&&console[_0x39ae39(0x11b)](_0x39ae39(0x140)+CLI_BIN_NAME+_0x39ae39(0x187)),_0x1bd26a[_0x39ae39(0x10d)](_0x39ae39(0x104))&&console[_0x39ae39(0x11b)](_0x39ae39(0x10e)+CLI_BIN_NAME+'\x20config\x20delete\x20inherit\x20--global'));const _0x173f8d=isInvalidLovrabetRegion(_0x5ea386[_0x39ae39(0x16b)]??_0x5ea386[_0x39ae39(0x173)]?.[_0x39ae39(0x119)]);_0x4a132f&&!_0x173f8d&&(console['log'](),console[_0x39ae39(0x11b)](a124_0x1e0b6b[_0x39ae39(0x178)]('\x20\x20Routing\x20Configuration')),console[_0x39ae39(0x11b)](a124_0x1e0b6b['gray'](_0x39ae39(0x126)[_0x39ae39(0x13b)](0x1e))),console[_0x39ae39(0x11b)](_0x39ae39(0x13a)+a124_0x1e0b6b[_0x39ae39(0x136)](_0x39ae39(0x13c))),console[_0x39ae39(0x11b)](_0x39ae39(0x154)+_0x4a132f[_0x39ae39(0x160)]),Object[_0x39ae39(0x14d)]['hasOwnProperty'][_0x39ae39(0x14f)](_0x4a5acb[_0x39ae39(0x166)],_0x39ae39(0x151))&&console[_0x39ae39(0x11b)](_0x39ae39(0x103)+CLI_BIN_NAME+_0x39ae39(0x114)),Object[_0x39ae39(0x14d)][_0x39ae39(0x128)][_0x39ae39(0x14f)](_0x4a5acb[_0x39ae39(0x18a)],'routing')&&console[_0x39ae39(0x11b)](_0x39ae39(0x11a)+CLI_BIN_NAME+_0x39ae39(0x14b)));console['log'](),console[_0x39ae39(0x11b)](a124_0x1e0b6b[_0x39ae39(0x178)]('\x20\x20Merged\x20Config')),console[_0x39ae39(0x11b)](a124_0x1e0b6b[_0x39ae39(0x159)]('\x20\x20─'['repeat'](0x1e))),console[_0x39ae39(0x11b)](_0x39ae39(0x117)+(_0x5ea386[_0x39ae39(0x164)]||a124_0x1e0b6b[_0x39ae39(0x136)](_0x39ae39(0x110))));const _0xe1a76c=_0x173f8d?a124_0x1e0b6b['red'](describeRegionValue(_0x5ea386[_0x39ae39(0x16b)]??_0x5ea386[_0x39ae39(0x173)]?.[_0x39ae39(0x119)])+_0x39ae39(0x172)):(_0x5ea386[_0x39ae39(0x119)]??DEFAULT_LOVRABET_REGION)+'\x20('+(_0x5ea386['regionSource']??'default')+')';console[_0x39ae39(0x11b)](_0x39ae39(0x106)+_0xe1a76c),console['log']('\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x5ea386[_0x39ae39(0x14a)]),console['log']('\x20\x20app\x20locale:\x20\x20\x20\x20\x20\x20'+_0x5ea386[_0x39ae39(0x17a)]),console[_0x39ae39(0x11b)]('\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x5ea386[_0x39ae39(0x17d)]),console['log'](_0x39ae39(0x190)+(_0x5ea386[_0x39ae39(0x12b)]||a124_0x1e0b6b['gray'](_0x39ae39(0x141)))),console['log'](_0x39ae39(0x17c)+(_0x5ea386['currentApp']||a124_0x1e0b6b[_0x39ae39(0x159)](_0x39ae39(0x141)))),console[_0x39ae39(0x11b)](_0x39ae39(0x18c)+(_0x5ea386[_0x39ae39(0x123)]||a124_0x1e0b6b['gray'](_0x39ae39(0x141)))),console['log'](_0x39ae39(0x15b)+(_0x5ea386[_0x39ae39(0x15e)]||a124_0x1e0b6b['gray'](_0x39ae39(0x153)+DEFAULT_CONFIG_VALUES[_0x39ae39(0x15e)]+')'))),console[_0x39ae39(0x11b)](_0x39ae39(0x18e)+(_0x5ea386[_0x39ae39(0x113)]??a124_0x1e0b6b[_0x39ae39(0x159)]('(default)'))),console[_0x39ae39(0x11b)](_0x39ae39(0x121)+_0x5ea386[_0x39ae39(0x15c)]),console[_0x39ae39(0x11b)](_0x39ae39(0x10b)+_0x5ea386[_0x39ae39(0x12c)]),console[_0x39ae39(0x11b)](_0x39ae39(0x14e)+(_0x5ea386[_0x39ae39(0x170)]?a124_0x1e0b6b[_0x39ae39(0x147)](_0x39ae39(0x150)+_0x5ea386[_0x39ae39(0x170)][_0x39ae39(0x12a)]+')'):_0x41be03?a124_0x1e0b6b[_0x39ae39(0x147)](_0x39ae39(0x107)+_0x41be03['length']+')'):a124_0x1e0b6b[_0x39ae39(0x159)](_0x39ae39(0x141))));const _0x4ca3a4=Object[_0x39ae39(0x102)](_0x5ea386[_0x39ae39(0x146)]);if(_0x4ca3a4['length']>0x0){console[_0x39ae39(0x11b)](),console[_0x39ae39(0x11b)](a124_0x1e0b6b[_0x39ae39(0x178)]('\x20\x20Apps')),console[_0x39ae39(0x11b)](a124_0x1e0b6b['gray']('\x20\x20─'['repeat'](0x1e)));for(const _0x9630d5 of _0x4ca3a4){const _0x319848=_0x5ea386[_0x39ae39(0x146)][_0x9630d5],_0x136656=_0x9630d5===_0x5ea386[_0x39ae39(0x12b)],_0x2c3d6b=_0x9630d5===_0x5ea386['currentApp'],_0x2b0004=_0x2c3d6b?a124_0x1e0b6b[_0x39ae39(0x147)]('\x20←\x20current'):'',_0x18434f=_0x136656?'\x20(default)':'';console[_0x39ae39(0x11b)]('\x20\x20'+_0x9630d5+_0x18434f+_0x2b0004),console[_0x39ae39(0x11b)](_0x39ae39(0x148)+_0x319848[_0x39ae39(0x176)]);const _0x5b08b1=_0x4a5acb['projectConfig'][_0x39ae39(0x146)]&&typeof _0x4a5acb[_0x39ae39(0x166)]['apps']===_0x39ae39(0x182)?_0x4a5acb[_0x39ae39(0x166)]['apps']:{},_0x55d7d2=Object[_0x39ae39(0x14d)][_0x39ae39(0x128)][_0x39ae39(0x14f)](_0x5b08b1,_0x9630d5),_0x56c236=isInvalidLovrabetRegion(_0x319848[_0x39ae39(0x119)])?{'region':_0x5ea386[_0x39ae39(0x119)]??DEFAULT_LOVRABET_REGION}:resolveEffectiveRegion({'appRegion':_0x319848['region'],'projectRegion':_0x55d7d2?_0x4a5acb[_0x39ae39(0x166)]['region']:undefined,'globalRegion':_0x4a5acb['globalConfig'][_0x39ae39(0x119)],'mergedRegion':_0x5ea386[_0x39ae39(0x173)]['region'],'appName':_0x9630d5}),_0x4b129e=buildAppDoctorFields(_0x319848,{'region':_0x56c236[_0x39ae39(0x119)],'env':_0x5ea386[_0x39ae39(0x14a)],'apiDir':_0x5ea386[_0x39ae39(0x173)][_0x39ae39(0x17d)]||DEFAULT_CONFIG_VALUES['apiDir'],'cookie':_0x5ea386[_0x39ae39(0x170)]||_0x41be03||undefined,'accessKey':_0x5ea386['accessKey']});console[_0x39ae39(0x11b)](_0x39ae39(0x16f)+_0x4b129e[_0x39ae39(0x119)][_0x39ae39(0x181)]+'\x20\x20'+a124_0x1e0b6b['gray']('('+_0x4b129e[_0x39ae39(0x119)][_0x39ae39(0x179)]+')')),console['log'](_0x39ae39(0x174)+_0x4b129e[_0x39ae39(0x14a)][_0x39ae39(0x181)]+'\x20\x20'+a124_0x1e0b6b[_0x39ae39(0x159)]('('+_0x4b129e['env'][_0x39ae39(0x179)]+')')),console['log']('\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20'+_0x4b129e[_0x39ae39(0x17d)][_0x39ae39(0x181)]+'\x20\x20'+a124_0x1e0b6b[_0x39ae39(0x159)]('('+_0x4b129e[_0x39ae39(0x17d)][_0x39ae39(0x179)]+')'));const _0x1e173b=_0x4b129e[_0x39ae39(0x170)][_0x39ae39(0x181)]?a124_0x1e0b6b[_0x39ae39(0x147)]('(set,\x20length='+_0x4b129e[_0x39ae39(0x170)][_0x39ae39(0x181)]['length']+')'):a124_0x1e0b6b[_0x39ae39(0x159)](_0x39ae39(0x141));console[_0x39ae39(0x11b)](_0x39ae39(0x124)+_0x1e173b+'\x20\x20'+a124_0x1e0b6b['gray']('('+_0x4b129e[_0x39ae39(0x170)][_0x39ae39(0x179)]+')'));const _0x2938f9=_0x4b129e[_0x39ae39(0xfe)][_0x39ae39(0x181)]?a124_0x1e0b6b[_0x39ae39(0x147)](_0x39ae39(0x150)+_0x4b129e[_0x39ae39(0xfe)][_0x39ae39(0x181)][_0x39ae39(0x12a)]+')'):a124_0x1e0b6b['gray'](_0x39ae39(0x141));console[_0x39ae39(0x11b)](_0x39ae39(0x191)+_0x2938f9+'\x20\x20'+a124_0x1e0b6b[_0x39ae39(0x159)]('('+_0x4b129e['accessKey']['source']+')'));}}console[_0x39ae39(0x11b)](),console['log'](a124_0x1e0b6b[_0x39ae39(0x178)](_0x39ae39(0x168))),console['log'](a124_0x1e0b6b[_0x39ae39(0x159)](_0x39ae39(0x126)[_0x39ae39(0x13b)](0x1e)));_0x4a132f?console[_0x39ae39(0x11b)](_0x39ae39(0x13a)+a124_0x1e0b6b[_0x39ae39(0x136)](_0x39ae39(0x116))):(console[_0x39ae39(0x11b)](_0x39ae39(0x106)+getActiveRegion()),console[_0x39ae39(0x11b)](_0x39ae39(0x125)+getApiDomain()),console[_0x39ae39(0x11b)]('\x20\x20userDomain:\x20\x20\x20\x20\x20\x20'+getUserDomain()),console[_0x39ae39(0x11b)](_0x39ae39(0x180)+getRuntimeDomain()),console[_0x39ae39(0x11b)](_0x39ae39(0x13f)+getSkillDomain()),console[_0x39ae39(0x11b)](_0x39ae39(0xff)+getKbDomain()),console[_0x39ae39(0x11b)](_0x39ae39(0x10a)+(getKbServiceDomain()??'not\x20configured')),console['log'](_0x39ae39(0x155)+getAppDomain()));console[_0x39ae39(0x11b)](),console['log'](a124_0x1e0b6b[_0x39ae39(0x178)](_0x39ae39(0x13d))),console[_0x39ae39(0x11b)](a124_0x1e0b6b[_0x39ae39(0x159)]('\x20\x20─'[_0x39ae39(0x13b)](0x1e)));if(_0x4a132f)console['log']('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a124_0x1e0b6b[_0x39ae39(0x144)](_0x39ae39(0x142)));else{if(_0x41be03){const _0x55bedc=await getIsSessionValid();console['log'](_0x39ae39(0x13a)+(_0x55bedc?a124_0x1e0b6b['green'](_0x39ae39(0xfc)):a124_0x1e0b6b[_0x39ae39(0x136)](_0x39ae39(0x137))));}else console['log'](_0x39ae39(0x13a)+a124_0x1e0b6b[_0x39ae39(0x136)]('✗\x20Not\x20logged\x20in'));}return console['log'](),{'ok':!![]};}export const doctorDefinition={'service':a124_0x122c58(0x122),'command':'check','description':'Diagnose\x20CLI\x20configuration\x20and\x20connectivity','risk':a124_0x122c58(0x186),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
@@ -1 +1 @@
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
+ const a125_0x455adc=a125_0x1fbd;(function(_0x227ce5,_0x31b5e8){const _0x263afe=a125_0x1fbd,_0x2334a7=_0x227ce5();while(!![]){try{const _0x1af32a=parseInt(_0x263afe(0xe2))/0x1+-parseInt(_0x263afe(0xdc))/0x2+-parseInt(_0x263afe(0xde))/0x3+-parseInt(_0x263afe(0xda))/0x4+-parseInt(_0x263afe(0xd8))/0x5*(-parseInt(_0x263afe(0xf8))/0x6)+parseInt(_0x263afe(0xdd))/0x7+parseInt(_0x263afe(0xf2))/0x8*(-parseInt(_0x263afe(0xd7))/0x9);if(_0x1af32a===_0x31b5e8)break;else _0x2334a7['push'](_0x2334a7['shift']());}catch(_0x48831b){_0x2334a7['push'](_0x2334a7['shift']());}}}(a125_0x7323,0x198b1));function a125_0x1fbd(_0x2c6e78,_0x288e4b){_0x2c6e78=_0x2c6e78-0xd6;const _0x73238a=a125_0x7323();let _0x1fbd09=_0x73238a[_0x2c6e78];return _0x1fbd09;}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_0x455adc(0xe1),'type':a125_0x455adc(0xe4),'required':!![],'description':a125_0x455adc(0xf0)},FILEPATH_FLAG={'name':a125_0x455adc(0xf5),'type':'string','required':!![],'description':a125_0x455adc(0xe3)},DOWNLOAD_FLAG={'name':a125_0x455adc(0xec),'type':a125_0x455adc(0xd6),'description':'Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL'},LONG_TERM_FLAG={'name':a125_0x455adc(0xe6),'type':a125_0x455adc(0xd6),'description':a125_0x455adc(0xf3)};function requireFilePath(_0x4d745b){const _0x5205cc=a125_0x455adc,_0x3ebb76=_0x4d745b['trim']();if(!_0x3ebb76)throw CliErrors[_0x5205cc(0xf4)](_0x5205cc(0xdb));return _0x3ebb76;}const fileUpload={'service':a125_0x455adc(0xe1),'command':a125_0x455adc(0xee),'description':a125_0x455adc(0xf9),'risk':a125_0x455adc(0xfa),'flags':[FILE_FLAG],async 'dryRun'(_0xe932f7){const _0x253e55=a125_0x455adc,_0x1e0d87=requireDevelopmentUploadFile(_0xe932f7[_0x253e55(0xe5)](_0x253e55(0xe1)),_0x253e55(0xea));return{'method':_0x253e55(0xe0),'url':_0x253e55(0xe9),'body':{'appCode':_0xe932f7[_0x253e55(0xe7)],'multipart':{'file':_0x1e0d87}},'description':_0x253e55(0xef)+_0x1e0d87['path']+_0x253e55(0xed)+_0xe932f7[_0x253e55(0xe7)]};},async 'execute'(_0x37aadc){const _0x2b79d8=a125_0x455adc,_0x50c916=requireDevelopmentUploadFile(_0x37aadc[_0x2b79d8(0xe5)](_0x2b79d8(0xe1)),_0x2b79d8(0xea)),_0x26860d=await uploadDevelopmentFile(_0x37aadc[_0x2b79d8(0xe7)],_0x50c916[_0x2b79d8(0xe8)]);return{'ok':!![],'data':_0x26860d,'message':_0x26860d[_0x2b79d8(0xd9)]?_0x2b79d8(0xf7)+_0x26860d[_0x2b79d8(0xd9)]+_0x2b79d8(0xf6):_0x2b79d8(0xdf)};}},fileQueryUrl={'service':a125_0x455adc(0xe1),'command':a125_0x455adc(0xeb),'description':'Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20or\x20immediate\x20access','risk':a125_0x455adc(0xfa),'flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0x1cbe3e){const _0x374549=a125_0x455adc,_0x4348e2=requireFilePath(_0x1cbe3e[_0x374549(0xe5)]('filepath')),_0x4d63c7=await queryDevelopmentFileUrl(_0x4348e2,{'download':_0x1cbe3e['bool'](_0x374549(0xec)),'longTerm':_0x1cbe3e[_0x374549(0xf1)](_0x374549(0xe6))});return{'ok':!![],'data':_0x4d63c7};}};export const fileDefinitions=[fileUpload,fileQueryUrl];function a125_0x7323(){const _0x2300c0=['Preview:\x20upload\x20','Path\x20to\x20the\x20local\x20file\x20to\x20upload','bool','58184XVchRf','Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML','validation','filepath','.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','Uploaded\x20file:\x20','23802TEtDOu','Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','read','boolean','9iYeTxt','220MRALkp','filePath','368812MyBpMN','filePath\x20is\x20required.','11050yTGIMi','159621AeeqoG','50745rPJzru','Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','POST','file','29190xLNOiR','Development\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data','string','str','long-term','appCode','path','/smartapi/common/uploadFile','File','query-url','download','\x20to\x20development\x20app\x20','upload'];a125_0x7323=function(){return _0x2300c0;};return a125_0x7323();}
@@ -1 +1 @@
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
+ const a126_0x263037=a126_0x51cf;(function(_0x4c6ef6,_0x3a5203){const _0x70f873=a126_0x51cf,_0x50fa91=_0x4c6ef6();while(!![]){try{const _0x4b2085=parseInt(_0x70f873(0x13b))/0x1+parseInt(_0x70f873(0x143))/0x2*(-parseInt(_0x70f873(0x136))/0x3)+-parseInt(_0x70f873(0x144))/0x4+-parseInt(_0x70f873(0x13f))/0x5*(parseInt(_0x70f873(0x141))/0x6)+-parseInt(_0x70f873(0x139))/0x7*(parseInt(_0x70f873(0x13a))/0x8)+-parseInt(_0x70f873(0x145))/0x9+-parseInt(_0x70f873(0x13d))/0xa*(-parseInt(_0x70f873(0x13e))/0xb);if(_0x4b2085===_0x3a5203)break;else _0x50fa91['push'](_0x50fa91['shift']());}catch(_0x48f875){_0x50fa91['push'](_0x50fa91['shift']());}}}(a126_0x412c,0xc0e00));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{asDryRunResult}from'../../commands/common/dry-run.js';import{createFlowDefinition}from'../../core/api-client.js';function a126_0x51cf(_0x593df2,_0x33ae5f){_0x593df2=_0x593df2-0x135;const _0x412c17=a126_0x412c();let _0x51cf6e=_0x412c17[_0x593df2];return _0x51cf6e;}import{FLOW_FILE_FLAG,FLOW_PATHS,buildFlowUrl,confirmFlowWrite,flowSelector,prepareFlowWrite,readFlowFilePath}from'../../commands/flow/shared.js';export const flowCreate={'service':a126_0x263037(0x147),'command':a126_0x263037(0x137),'description':'Create\x20a\x20draft\x20flow\x20definition\x20from\x20a\x20local\x20FlowConfig\x20file','risk':a126_0x263037(0x135),'flags':[FLOW_FILE_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x47fdee){readFlowFilePath(_0x47fdee);},async 'dryRun'(_0x11813e){const _0x2fb620=a126_0x263037,{request:_0x110e3d,warnings:_0x4fb786}=await prepareFlowWrite(readFlowFilePath(_0x11813e),_0x11813e[_0x2fb620(0x148)]);return asDryRunResult({'operation':'create','selector':{'appCode':_0x11813e['appCode'],'flowName':_0x110e3d[_0x2fb620(0x146)],..._0x110e3d[_0x2fb620(0x13c)]?{'datasetCode':_0x110e3d[_0x2fb620(0x13c)]}:{}},'before':null,'after':_0x110e3d,'request':_0x110e3d,'dryRun':!![],'backend':{'method':_0x2fb620(0x138),'path':FLOW_PATHS[_0x2fb620(0x137)]},'warnings':_0x4fb786},{'method':_0x2fb620(0x138),'url':FLOW_PATHS[_0x2fb620(0x137)]});},async 'execute'(_0x10f76c){const _0x24d6d7=a126_0x263037,{request:_0x271684,warnings:_0x51b3cd}=await prepareFlowWrite(readFlowFilePath(_0x10f76c),_0x10f76c['appCode']);await confirmFlowWrite(_0x10f76c,_0x24d6d7(0x137),_0x271684);const _0x5b90d3=await createFlowDefinition(_0x271684),_0x29501b=buildFlowUrl(_0x10f76c[_0x24d6d7(0x148)],_0x5b90d3['id']),_0x13c913=''+(_0x5b90d3[_0x24d6d7(0x146)]||_0x271684[_0x24d6d7(0x146)])+(_0x5b90d3['id']?_0x24d6d7(0x142)+_0x5b90d3['id']+')':'');return{'ok':!![],'data':{'operation':_0x24d6d7(0x137),'selector':flowSelector(_0x10f76c[_0x24d6d7(0x148)],_0x5b90d3['id'],_0x5b90d3),'before':null,'after':_0x5b90d3,'flowUrl':_0x29501b,'dryRun':![],'backend':{'method':_0x24d6d7(0x138),'path':FLOW_PATHS[_0x24d6d7(0x137)]},'warnings':_0x51b3cd},'message':'Created\x20flow\x20'+_0x13c913+_0x24d6d7(0x140)+_0x29501b};}};function a126_0x412c(){const _0x40514a=['388138kciEsi','datasetCode','10vxBOsu','43504505fXEWbF','3176485MuwcOj','.\x20Flow\x20URL:\x20','12RSiclU','\x20(id=','866fpRjfE','27996ZutZdi','9123498UhRKhP','flowName','flow','appCode','write','8304sulJdW','create','POST','3031lZjVYq','1168RgnWVO'];a126_0x412c=function(){return _0x40514a;};return a126_0x412c();}
@@ -1 +1 @@
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';}
1
+ const a127_0x13ed7e=a127_0x792d;(function(_0x274250,_0x4c6134){const _0x5b95d5=a127_0x792d,_0x3af751=_0x274250();while(!![]){try{const _0x1b9f29=-parseInt(_0x5b95d5(0x146))/0x1*(parseInt(_0x5b95d5(0x131))/0x2)+parseInt(_0x5b95d5(0x139))/0x3+parseInt(_0x5b95d5(0x133))/0x4*(parseInt(_0x5b95d5(0x130))/0x5)+parseInt(_0x5b95d5(0x147))/0x6*(-parseInt(_0x5b95d5(0x141))/0x7)+-parseInt(_0x5b95d5(0x143))/0x8*(-parseInt(_0x5b95d5(0x148))/0x9)+-parseInt(_0x5b95d5(0x12a))/0xa*(-parseInt(_0x5b95d5(0x13d))/0xb)+-parseInt(_0x5b95d5(0x136))/0xc*(-parseInt(_0x5b95d5(0x142))/0xd);if(_0x1b9f29===_0x4c6134)break;else _0x3af751['push'](_0x3af751['shift']());}catch(_0x21ee8a){_0x3af751['push'](_0x3af751['shift']());}}}(a127_0x512c,0xb7998));import{mkdir,stat}from'node:fs/promises';import{dirname,resolve}from'node:path';function a127_0x512c(){const _0x57e7fb=['Get\x20one\x20design-time\x20flow\x20definition','2520iAurKa','flowCode','FlowConfig\x20output\x20already\x20exists:\x20','1078608rSZCOb','Pass\x20--force\x20to\x20overwrite\x20it.','boolean','2057514TryReh','read','path','Overwrite\x20an\x20existing\x20output\x20file','33ZQpWwE','appCode','\x20to\x20','trim','343RFaOzq','65KXHsnp','24irhWsp','output','config','29IpLgDz','98574hGmjUf','137601clIPvT','code','str','bool','force','4170630iGFizu','ENOENT','warnings','flowName','Wrote\x20FlowConfig\x20for\x20','Flow\x20','2985nxFwtQ','86302kEtyai'];a127_0x512c=function(){return _0x57e7fb;};return a127_0x512c();}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':'flow','command':'detail','description':a127_0x13ed7e(0x132),'risk':a127_0x13ed7e(0x13a),'flags':[FLOW_ID_FLAG,{'name':a127_0x13ed7e(0x144),'type':'string','description':'Write\x20a\x20portable\x20normalized\x20FlowConfig\x20JSON\x20file'},{'name':a127_0x13ed7e(0x129),'type':a127_0x13ed7e(0x138),'description':a127_0x13ed7e(0x13c)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x222b59){readFlowId(_0x222b59);},async 'execute'(_0x85c89b){const _0x26ac95=a127_0x13ed7e,_0x4cc0e4=readFlowId(_0x85c89b),_0x13ce05=_0x85c89b[_0x26ac95(0x127)](_0x26ac95(0x144))[_0x26ac95(0x140)](),_0x4b6841=_0x13ce05?resolve(_0x13ce05):undefined;if(_0x4b6841&&!_0x85c89b[_0x26ac95(0x128)]('force')&&await fileExists(_0x4b6841))throw CliErrors['validation'](_0x26ac95(0x135)+_0x4b6841,_0x26ac95(0x137));const _0x441998=await getFlowDefinition(_0x85c89b[_0x26ac95(0x13e)],_0x4cc0e4);let _0x360b2a;if(_0x4b6841){const _0x41726c=flowDefinitionToConfig(_0x441998);await mkdir(dirname(_0x4b6841),{'recursive':!![]});try{await writeNormalizedFlowConfig(_0x4b6841,_0x41726c[_0x26ac95(0x145)],{'overwrite':_0x85c89b[_0x26ac95(0x128)]('force')});}catch(_0x37e757){if(isAlreadyExistsError(_0x37e757))throw CliErrors['validation'](_0x26ac95(0x135)+_0x4b6841,_0x26ac95(0x137));throw _0x37e757;}_0x360b2a={'path':_0x4b6841,'warnings':_0x41726c[_0x26ac95(0x12c)]};}return{'ok':!![],'data':{'flow':_0x441998,..._0x360b2a?{'output':_0x360b2a}:{}},'message':_0x360b2a?_0x26ac95(0x12e)+(_0x441998[_0x26ac95(0x12d)]||_0x441998['flowCode']||_0x4cc0e4)+_0x26ac95(0x13f)+_0x360b2a[_0x26ac95(0x13b)]:_0x26ac95(0x12f)+(_0x441998[_0x26ac95(0x12d)]||_0x441998[_0x26ac95(0x134)]||_0x4cc0e4)};}};function a127_0x792d(_0x327d23,_0x314c3d){_0x327d23=_0x327d23-0x126;const _0x512c7c=a127_0x512c();let _0x792dee=_0x512c7c[_0x327d23];return _0x792dee;}async function fileExists(_0x22d0d8){try{return await stat(_0x22d0d8),!![];}catch(_0x25319e){return!isNotFoundError(_0x25319e);}}function isNotFoundError(_0x84eb35){const _0x434bb0=a127_0x13ed7e;return _0x84eb35?.[_0x434bb0(0x126)]===_0x434bb0(0x12b);}function isAlreadyExistsError(_0x29c88b){const _0x58dd8b=a127_0x13ed7e;return _0x29c88b?.[_0x58dd8b(0x126)]==='EEXIST';}