@lovrabet/rabetbase-cli 2.5.6 → 2.5.7-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (395) 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.d.ts +2 -0
  132. package/lib/commands/flow/page-list.js +1 -0
  133. package/lib/commands/flow/publish.js +1 -1
  134. package/lib/commands/flow/runtime-resources-shared.d.ts +1 -1
  135. package/lib/commands/flow/runtime-resources-shared.js +1 -1
  136. package/lib/commands/flow/runtime-role-list.js +1 -1
  137. package/lib/commands/flow/runtime-role-user-list.js +1 -1
  138. package/lib/commands/flow/runtime-user-search.js +1 -1
  139. package/lib/commands/flow/shared.d.ts +6 -2
  140. package/lib/commands/flow/shared.js +1 -1
  141. package/lib/commands/flow/update.js +1 -1
  142. package/lib/commands/flow/validate.js +1 -1
  143. package/lib/commands/instant-api-policy/current.js +1 -1
  144. package/lib/commands/instant-api-policy/index.js +1 -1
  145. package/lib/commands/instant-api-policy/init.js +1 -1
  146. package/lib/commands/instant-api-policy/publish.js +1 -1
  147. package/lib/commands/instant-api-policy/pull.js +1 -1
  148. package/lib/commands/instant-api-policy/revision.js +1 -1
  149. package/lib/commands/instant-api-policy/revisions.js +1 -1
  150. package/lib/commands/instant-api-policy/rollback.js +1 -1
  151. package/lib/commands/instant-api-policy/shared.js +1 -1
  152. package/lib/commands/instant-api-policy/validate.js +1 -1
  153. package/lib/commands/issue/index.js +1 -1
  154. package/lib/commands/issue/nudge.js +1 -1
  155. package/lib/commands/issue/report.js +1 -1
  156. package/lib/commands/issue/shared.js +1 -1
  157. package/lib/commands/kb/create.js +1 -1
  158. package/lib/commands/kb/delete.js +1 -1
  159. package/lib/commands/kb/detail.js +1 -1
  160. package/lib/commands/kb/index.js +1 -1
  161. package/lib/commands/kb/list.js +1 -1
  162. package/lib/commands/kb/search.js +1 -1
  163. package/lib/commands/kb/shared.js +1 -1
  164. package/lib/commands/kb/update.js +1 -1
  165. package/lib/commands/logs/index.js +1 -1
  166. package/lib/commands/menu/asset-update.js +1 -1
  167. package/lib/commands/menu/delete.js +1 -1
  168. package/lib/commands/menu/external-link-create.js +1 -1
  169. package/lib/commands/menu/external-link-update.js +1 -1
  170. package/lib/commands/menu/group-create.js +1 -1
  171. package/lib/commands/menu/group-update.js +1 -1
  172. package/lib/commands/menu/index.js +1 -1
  173. package/lib/commands/menu/list.js +1 -1
  174. package/lib/commands/menu/move.js +1 -1
  175. package/lib/commands/menu/regroup-start.js +1 -1
  176. package/lib/commands/menu/rename.js +1 -1
  177. package/lib/commands/menu/shared/compare-table.js +1 -1
  178. package/lib/commands/menu/shared/delete-plan.js +1 -1
  179. package/lib/commands/menu/shared/facts.js +1 -1
  180. package/lib/commands/menu/shared/index.js +1 -1
  181. package/lib/commands/menu/shared/inquirer.js +1 -1
  182. package/lib/commands/menu/shared/local-pages.js +1 -1
  183. package/lib/commands/menu/shared/logic.js +1 -1
  184. package/lib/commands/menu/shared/mutations.js +1 -1
  185. package/lib/commands/menu/shared/path.js +1 -1
  186. package/lib/commands/menu/shared/service.js +1 -1
  187. package/lib/commands/menu/shared/subapp-assets.js +1 -1
  188. package/lib/commands/menu/shared/sync-core.js +1 -1
  189. package/lib/commands/menu/shared/update-core.js +1 -1
  190. package/lib/commands/menu/shared/valid-url.js +1 -1
  191. package/lib/commands/menu/subapp-assets-status.js +1 -1
  192. package/lib/commands/menu/subapp-assets-update.js +1 -1
  193. package/lib/commands/menu/sync.js +1 -1
  194. package/lib/commands/menu/visibility-update.js +1 -1
  195. package/lib/commands/notification/config-create.js +1 -1
  196. package/lib/commands/notification/config-delete.js +1 -1
  197. package/lib/commands/notification/config-list.js +1 -1
  198. package/lib/commands/notification/config-update.js +1 -1
  199. package/lib/commands/notification/index.js +1 -1
  200. package/lib/commands/notification/shared.js +1 -1
  201. package/lib/commands/ocr/index.js +1 -1
  202. package/lib/commands/page/create.js +1 -1
  203. package/lib/commands/page/custom/detail.js +1 -1
  204. package/lib/commands/page/custom/list.js +1 -1
  205. package/lib/commands/page/custom/publish.js +1 -1
  206. package/lib/commands/page/custom/shared.js +1 -1
  207. package/lib/commands/page/custom/syntax.js +1 -1
  208. package/lib/commands/page/custom/update.js +1 -1
  209. package/lib/commands/page/data-list-status.js +1 -1
  210. package/lib/commands/page/generate-start.js +1 -1
  211. package/lib/commands/page/generate-status.js +1 -1
  212. package/lib/commands/page/index.js +1 -1
  213. package/lib/commands/page/pull.js +1 -1
  214. package/lib/commands/page/push.js +1 -1
  215. package/lib/commands/page/relation-audit.js +1 -1
  216. package/lib/commands/page/restore.js +1 -1
  217. package/lib/commands/page/shared.js +1 -1
  218. package/lib/commands/page/sync.js +1 -1
  219. package/lib/commands/project/api-architecture-upgrade.js +1 -1
  220. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  221. package/lib/commands/project/create/format-elapsed.js +1 -1
  222. package/lib/commands/project/create/main.js +1 -1
  223. package/lib/commands/project/create/materialize-project-template.js +1 -1
  224. package/lib/commands/project/create/project-name.js +1 -1
  225. package/lib/commands/project/create/project-template-archive.js +1 -1
  226. package/lib/commands/project/create/project-template-path.js +1 -1
  227. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  228. package/lib/commands/project/create/use-format-code.js +1 -1
  229. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  230. package/lib/commands/project/domain-routing-sync.js +1 -1
  231. package/lib/commands/project/index.js +1 -1
  232. package/lib/commands/project/upgrade.js +1 -1
  233. package/lib/commands/registry.js +1 -1
  234. package/lib/commands/role/delete.js +1 -1
  235. package/lib/commands/role/detail.js +1 -1
  236. package/lib/commands/role/index.js +1 -1
  237. package/lib/commands/role/list.js +1 -1
  238. package/lib/commands/role/shared.js +1 -1
  239. package/lib/commands/role/update.js +1 -1
  240. package/lib/commands/role/user-add.js +1 -1
  241. package/lib/commands/role/user-remove.js +1 -1
  242. package/lib/commands/role/user-resolve.js +1 -1
  243. package/lib/commands/rule/get.js +1 -1
  244. package/lib/commands/rule/index.js +1 -1
  245. package/lib/commands/rule/list.js +1 -1
  246. package/lib/commands/rule/set.js +1 -1
  247. package/lib/commands/rule/shared.js +1 -1
  248. package/lib/commands/run/index.js +1 -1
  249. package/lib/commands/schema.js +1 -1
  250. package/lib/commands/sql/create.js +1 -1
  251. package/lib/commands/sql/delete.js +1 -1
  252. package/lib/commands/sql/detail.js +1 -1
  253. package/lib/commands/sql/exec.js +1 -1
  254. package/lib/commands/sql/index.js +1 -1
  255. package/lib/commands/sql/list.js +1 -1
  256. package/lib/commands/sql/pull.js +1 -1
  257. package/lib/commands/sql/push.js +1 -1
  258. package/lib/commands/sql/shared.js +1 -1
  259. package/lib/commands/sql/status.js +1 -1
  260. package/lib/commands/sql/validate.js +1 -1
  261. package/lib/commands/task/index.js +1 -1
  262. package/lib/commands/task/status.js +1 -1
  263. package/lib/commands/tenant/index.js +1 -1
  264. package/lib/commands/tenant/members-list.js +1 -1
  265. package/lib/commands/tenant/shared.js +1 -1
  266. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  267. package/lib/commands/user-account/feishu-bind.js +1 -1
  268. package/lib/commands/user-account/index.js +1 -1
  269. package/lib/commands/workspace/add.js +1 -1
  270. package/lib/commands/workspace/index.js +1 -1
  271. package/lib/commands/workspace/remove.js +1 -1
  272. package/lib/config/domain-config.js +1 -1
  273. package/lib/config/project-domain-routing.js +1 -1
  274. package/lib/config/region-config.js +1 -1
  275. package/lib/config/schema.js +1 -1
  276. package/lib/constant/cdn.js +1 -1
  277. package/lib/constant/cli.js +1 -1
  278. package/lib/constant/defaults.js +1 -1
  279. package/lib/constant/domain.js +1 -1
  280. package/lib/constant/env.js +1 -1
  281. package/lib/constant/output.js +1 -1
  282. package/lib/constant/paths.js +1 -1
  283. package/lib/constant/region.js +1 -1
  284. package/lib/constant/risk.js +1 -1
  285. package/lib/constant/routing-profile.js +1 -1
  286. package/lib/context/app-resolver.js +1 -1
  287. package/lib/context/auth-resolver.js +1 -1
  288. package/lib/context/config-loader.js +1 -1
  289. package/lib/context.js +1 -1
  290. package/lib/core/alias-resolver.js +1 -1
  291. package/lib/core/api-client.d.ts +26 -6
  292. package/lib/core/api-client.js +1 -1
  293. package/lib/core/bff/config.js +1 -1
  294. package/lib/core/bff/file-system.js +1 -1
  295. package/lib/core/bff/hash.js +1 -1
  296. package/lib/core/bff/hook-directory.js +1 -1
  297. package/lib/core/bff/lock.js +1 -1
  298. package/lib/core/bff/utils.js +1 -1
  299. package/lib/core/cross-db-analysis.js +1 -1
  300. package/lib/core/cross-db-relation.js +1 -1
  301. package/lib/core/db-resolver.js +1 -1
  302. package/lib/core/flow-config.d.ts +12 -0
  303. package/lib/core/flow-config.js +1 -1
  304. package/lib/core/instant-api-policy/config.js +1 -1
  305. package/lib/core/kb-search-client.js +1 -1
  306. package/lib/core/page/file-system.js +1 -1
  307. package/lib/core/page/hash.js +1 -1
  308. package/lib/core/page/lock.js +1 -1
  309. package/lib/core/page/lr-smart-jsx.js +1 -1
  310. package/lib/core/sql-index-auditor.js +1 -1
  311. package/lib/core/sql-sync/config.js +1 -1
  312. package/lib/core/sql-sync/file-system.js +1 -1
  313. package/lib/core/sql-sync/hash.js +1 -1
  314. package/lib/core/sql-sync/lock.js +1 -1
  315. package/lib/core/sql-sync/utils.js +1 -1
  316. package/lib/core/sql-validator.js +1 -1
  317. package/lib/errors.js +1 -1
  318. package/lib/framework/build-all-flags.js +1 -1
  319. package/lib/framework/error-output.js +1 -1
  320. package/lib/framework/explicit-yes.js +1 -1
  321. package/lib/framework/flags.js +1 -1
  322. package/lib/framework/help.js +1 -1
  323. package/lib/framework/index.js +1 -1
  324. package/lib/framework/output.js +1 -1
  325. package/lib/framework/response.js +1 -1
  326. package/lib/framework/runner-alias.js +1 -1
  327. package/lib/framework/runner.js +1 -1
  328. package/lib/framework/schema-export.js +1 -1
  329. package/lib/framework/supported-flags.js +1 -1
  330. package/lib/framework/types.js +1 -1
  331. package/lib/generated/build-info.d.ts +4 -4
  332. package/lib/generated/build-info.js +1 -1
  333. package/lib/generated/official-routing.js +1 -1
  334. package/lib/generated/routing-contract.js +1 -1
  335. package/lib/help.js +1 -1
  336. package/lib/postinstall.js +1 -1
  337. package/lib/runtime/confirmation.js +1 -1
  338. package/lib/runtime/event.js +1 -1
  339. package/lib/runtime/index.js +1 -1
  340. package/lib/runtime/queue.js +1 -1
  341. package/lib/runtime/resolve.js +1 -1
  342. package/lib/services/dataset-design/checkpoint.js +1 -1
  343. package/lib/services/dataset-design/commands.js +1 -1
  344. package/lib/services/dataset-design/contract.js +1 -1
  345. package/lib/skills/builtin-skill.js +1 -1
  346. package/lib/skills/main.js +1 -1
  347. package/lib/skills/npx-skills-add.js +1 -1
  348. package/lib/skills/skill-presence.js +1 -1
  349. package/lib/telemetry/cli-command-trace.js +1 -1
  350. package/lib/telemetry/cli-help-trace.js +1 -1
  351. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  352. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  353. package/lib/telemetry/send-cli-trace-log.js +1 -1
  354. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  355. package/lib/utils/ai_config.js +1 -1
  356. package/lib/utils/apply-jq-filter.js +1 -1
  357. package/lib/utils/cdn-config.js +1 -1
  358. package/lib/utils/check-sdk-version.js +1 -1
  359. package/lib/utils/cli-version-check.js +1 -1
  360. package/lib/utils/cli-version-policy.js +1 -1
  361. package/lib/utils/config.js +1 -1
  362. package/lib/utils/entity-with-id.js +1 -1
  363. package/lib/utils/file-utils.js +1 -1
  364. package/lib/utils/guides-cdn.js +1 -1
  365. package/lib/utils/http-client.js +1 -1
  366. package/lib/utils/is-non-interactive.js +1 -1
  367. package/lib/utils/logger.js +1 -1
  368. package/lib/utils/params.js +1 -1
  369. package/lib/utils/platform.js +1 -1
  370. package/lib/utils/sleep.js +1 -1
  371. package/lib/utils/template-replacer.js +1 -1
  372. package/lib/utils/update-notice.js +1 -1
  373. package/lib/utils/version.js +1 -1
  374. package/lib/utils/with-active-cookie.js +1 -1
  375. package/lib/utils/write-cli-side-channel.js +1 -1
  376. package/package.json +1 -1
  377. package/skills/rabetbase/SKILL.md +8 -4
  378. package/skills/rabetbase/guides/approval-flow-development-workflow.md +52 -13
  379. package/skills/rabetbase/guides/backend-function.md +26 -4
  380. package/skills/rabetbase/guides/bff-creation-workflow.md +9 -0
  381. package/skills/rabetbase/guides/cross-database-bff.md +1 -0
  382. package/skills/rabetbase/guides/custom-page-flow-sdk.md +2 -0
  383. package/skills/rabetbase/guides/data-api-guidelines.md +2 -0
  384. package/skills/rabetbase/guides/flow-config-examples.md +75 -0
  385. package/skills/rabetbase/guides/form-flow-start.md +61 -0
  386. package/skills/rabetbase/guides/typescript-sdk.md +1 -1
  387. package/skills/rabetbase/knowledge/approval-flow/config-json-schema.md +18 -4
  388. package/skills/rabetbase/references/rabetbase-codegen-sdk.md +5 -4
  389. package/skills/rabetbase/references/rabetbase-flow-commands.md +21 -2
  390. package/skills/rabetbase/references/rabetbase-flow-resources.md +21 -3
  391. package/skills/rabetbase/references/rabetbase-flow-runtime-boundary.md +6 -2
  392. package/skills/rabetbase/references/rabetbase-kb.md +4 -1
  393. package/skills/rabetbase-dataset-generation/SKILL.md +1 -1
  394. package/skills/rabetbase-page-generation/SKILL.md +1 -1
  395. package/skills/rabetbase.manifest.json +5 -3
@@ -1 +1 @@
1
- const a112_0x2104d2=a112_0x179f;(function(_0x5dbbd4,_0x26b718){const _0x155b2b=a112_0x179f,_0x2fe382=_0x5dbbd4();while(!![]){try{const _0x38fd49=-parseInt(_0x155b2b(0x1ee))/0x1*(parseInt(_0x155b2b(0x1ed))/0x2)+-parseInt(_0x155b2b(0x1c5))/0x3*(-parseInt(_0x155b2b(0x1d2))/0x4)+-parseInt(_0x155b2b(0x1e2))/0x5*(parseInt(_0x155b2b(0x1ea))/0x6)+parseInt(_0x155b2b(0x1d8))/0x7+parseInt(_0x155b2b(0x1d9))/0x8+parseInt(_0x155b2b(0x1e8))/0x9*(parseInt(_0x155b2b(0x1e6))/0xa)+-parseInt(_0x155b2b(0x1dc))/0xb;if(_0x38fd49===_0x26b718)break;else _0x2fe382['push'](_0x2fe382['shift']());}catch(_0x1ae625){_0x2fe382['push'](_0x2fe382['shift']());}}}(a112_0x5781,0xb43e5));import{getDbTableDiff}from'../../core/api-client.js';function a112_0x179f(_0x364537,_0x405a54){_0x364537=_0x364537-0x1c5;const _0x578120=a112_0x5781();let _0x179f00=_0x578120[_0x364537];return _0x179f00;}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_0x2104d2(0x1c9),'description':a112_0x2104d2(0x1d5),'risk':'read','flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a112_0x2104d2(0x1d4),'type':'string','description':a112_0x2104d2(0x1c8)},{'name':a112_0x2104d2(0x1d6),'type':a112_0x2104d2(0x1cc),'description':a112_0x2104d2(0x1ca),'default':0x1},{'name':a112_0x2104d2(0x1e3),'type':'number','description':'Page\x20size','default':0x14},{'name':a112_0x2104d2(0x1e9),'type':a112_0x2104d2(0x1df),'description':a112_0x2104d2(0x1cd)}],async 'execute'(_0xf7b7ca){const _0x50337c=a112_0x2104d2,_0x40ee90=_0xf7b7ca['num']('id'),_0x31d79a=_0xf7b7ca[_0x50337c(0x1da)]('all'),_0x2970bd=_0x31d79a?0x1:_0xf7b7ca[_0x50337c(0x1cf)](_0x50337c(0x1d6),0x1)||0x1,_0x1cdb7f=_0x31d79a?DB_TABLE_PAGE_SIZE:_0xf7b7ca[_0x50337c(0x1cf)](_0x50337c(0x1e3),0x14)||0x14,_0x33a29a=_0xf7b7ca[_0x50337c(0x1c6)](_0x50337c(0x1d4))||undefined,_0x24fd63=_0x31d79a?await getAllDbTableDiff(getDbTableDiff,_0xf7b7ca[_0x50337c(0x1d0)],_0x40ee90,_0x33a29a):await getDbTableDiff(_0xf7b7ca['appCode'],_0x40ee90,{'pageIndex':_0x2970bd,'pageSize':_0x1cdb7f,'tableName':_0x33a29a}),_0x3ec506=_0x24fd63[_0x50337c(0x1ce)],_0x502bdf=summarizeDbTableDiff(_0x3ec506),_0x3b6821=_0x3ec506[_0x50337c(0x1e0)](_0x4b7c26=>_0x4b7c26[_0x50337c(0x1dd)]===_0x50337c(0x1e5)||_0x4b7c26['diffType']==='MODIFIED_TABLE')[_0x50337c(0x1e7)](_0x50a6d8=>_0x50a6d8[_0x50337c(0x1c7)]),_0x1169b2=_0x3ec506[_0x50337c(0x1e0)](_0x1fcb2d=>_0x1fcb2d['diffType']===_0x50337c(0x1d1))['map'](_0x4e9c27=>_0x4e9c27[_0x50337c(0x1c7)]),_0x153bfe=_0x3ec506[_0x50337c(0x1e0)](_0x3a8fec=>_0x3a8fec[_0x50337c(0x1dd)]==='MODIFIED_TABLE')[_0x50337c(0x1e7)](_0x1a5542=>({'tableName':_0x1a5542['tableName'],'addedColumns':_0x1a5542[_0x50337c(0x1cb)]?.[_0x50337c(0x1e1)]??[],'deletedColumns':_0x1a5542[_0x50337c(0x1cb)]?.[_0x50337c(0x1d7)]??[],'modifiedColumns':_0x1a5542[_0x50337c(0x1cb)]?.['modifiedColumns']??[]}));return{'ok':!![],'data':{'dbLinkId':_0x40ee90,'page':_0x2970bd,'pageSize':_0x1cdb7f,'totalCount':_0x24fd63[_0x50337c(0x1d3)],...typeof _0x24fd63[_0x50337c(0x1de)]===_0x50337c(0x1cc)?{'physicalTableCount':_0x24fd63[_0x50337c(0x1de)]}:{},...typeof _0x24fd63[_0x50337c(0x1ec)]==='number'?{'datasetTableCount':_0x24fd63[_0x50337c(0x1ec)]}:{},..._0x24fd63['summary']?{'summary':_0x24fd63[_0x50337c(0x1e4)]}:{},'summaryByType':_0x502bdf,'toAnalyzeTables':_0x3b6821,'deletedTables':_0x1169b2,'modifiedFieldDiffs':_0x153bfe,'tables':_0x3ec506},'message':_0x3ec506[_0x50337c(0x1db)]+'\x20changed\x20table\x20row(s),\x20total\x20'+_0x24fd63['totalCount']+_0x50337c(0x1eb)+_0x40ee90+')'};}};function a112_0x5781(){const _0x4c8c8c=['length','13991329ibxLPM','diffType','physicalTableCount','boolean','filter','addedColumns','704190hTllkl','pagesize','summary','NEW_TABLE','150230QJzlhc','map','9IqDZnS','all','30XiHyBR','\x20(db\x20link\x20','datasetTableCount','91346DmTyLx','3ayChhB','3695811juOZuQ','str','tableName','Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)','diff','Page\x20index\x20(1-based)','fieldDiff','number','Fetch\x20and\x20aggregate\x20every\x20page\x20(overrides\x20--page\x20and\x20--pagesize)','tableList','num','appCode','DELETED_TABLE','4kKWLsW','totalCount','table','Compare\x20datasets\x20with\x20physical\x20database\x20tables\x20and\x20show\x20schema\x20drift','page','deletedColumns','6690705hClfXw','5189200wzIFEP','bool'];a112_0x5781=function(){return _0x4c8c8c;};return a112_0x5781();}
1
+ const a112_0x854f3a=a112_0x2d58;(function(_0x55eba8,_0x5897d4){const _0x22a6ce=a112_0x2d58,_0x948220=_0x55eba8();while(!![]){try{const _0x3c881a=parseInt(_0x22a6ce(0x109))/0x1*(parseInt(_0x22a6ce(0x11b))/0x2)+-parseInt(_0x22a6ce(0x12c))/0x3*(parseInt(_0x22a6ce(0x133))/0x4)+-parseInt(_0x22a6ce(0x10b))/0x5*(-parseInt(_0x22a6ce(0x112))/0x6)+-parseInt(_0x22a6ce(0x120))/0x7+parseInt(_0x22a6ce(0x126))/0x8+-parseInt(_0x22a6ce(0x130))/0x9*(parseInt(_0x22a6ce(0x119))/0xa)+-parseInt(_0x22a6ce(0x11e))/0xb*(-parseInt(_0x22a6ce(0x107))/0xc);if(_0x3c881a===_0x5897d4)break;else _0x948220['push'](_0x948220['shift']());}catch(_0x520be6){_0x948220['push'](_0x948220['shift']());}}}(a112_0x2594,0xd61f9));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_0x854f3a(0x124),'description':a112_0x854f3a(0x10c),'risk':a112_0x854f3a(0x129),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a112_0x854f3a(0x116),'type':a112_0x854f3a(0x114),'description':'Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)'},{'name':a112_0x854f3a(0x115),'type':a112_0x854f3a(0x111),'description':a112_0x854f3a(0x12f),'default':0x1},{'name':a112_0x854f3a(0x11d),'type':a112_0x854f3a(0x111),'description':a112_0x854f3a(0x131),'default':0x14},{'name':'all','type':a112_0x854f3a(0x118),'description':a112_0x854f3a(0x132)}],async 'execute'(_0x514392){const _0x9d9528=a112_0x854f3a,_0x497d98=_0x514392['num']('id'),_0x1b9a9f=_0x514392[_0x9d9528(0x127)](_0x9d9528(0x10f)),_0x3cf8e0=_0x1b9a9f?0x1:_0x514392[_0x9d9528(0x125)](_0x9d9528(0x115),0x1)||0x1,_0x467a6a=_0x1b9a9f?DB_TABLE_PAGE_SIZE:_0x514392[_0x9d9528(0x125)](_0x9d9528(0x11d),0x14)||0x14,_0x764479=_0x514392['str'](_0x9d9528(0x116))||undefined,_0x27243b=_0x1b9a9f?await getAllDbTableDiff(getDbTableDiff,_0x514392[_0x9d9528(0x12a)],_0x497d98,_0x764479):await getDbTableDiff(_0x514392[_0x9d9528(0x12a)],_0x497d98,{'pageIndex':_0x3cf8e0,'pageSize':_0x467a6a,'tableName':_0x764479}),_0x3d427f=_0x27243b[_0x9d9528(0x110)],_0xbdc63c=summarizeDbTableDiff(_0x3d427f),_0x3b3326=_0x3d427f['filter'](_0x4da656=>_0x4da656[_0x9d9528(0x12d)]===_0x9d9528(0x10a)||_0x4da656[_0x9d9528(0x12d)]===_0x9d9528(0x11c))[_0x9d9528(0x108)](_0x41b234=>_0x41b234[_0x9d9528(0x10d)]),_0x43ac3a=_0x3d427f[_0x9d9528(0x12b)](_0x13d66e=>_0x13d66e[_0x9d9528(0x12d)]===_0x9d9528(0x122))[_0x9d9528(0x108)](_0x4c331a=>_0x4c331a['tableName']),_0x103828=_0x3d427f['filter'](_0x3932e7=>_0x3932e7[_0x9d9528(0x12d)]==='MODIFIED_TABLE')[_0x9d9528(0x108)](_0x3bd9c9=>({'tableName':_0x3bd9c9['tableName'],'addedColumns':_0x3bd9c9['fieldDiff']?.[_0x9d9528(0x113)]??[],'deletedColumns':_0x3bd9c9[_0x9d9528(0x123)]?.[_0x9d9528(0x11f)]??[],'modifiedColumns':_0x3bd9c9['fieldDiff']?.['modifiedColumns']??[]}));return{'ok':!![],'data':{'dbLinkId':_0x497d98,'page':_0x3cf8e0,'pageSize':_0x467a6a,'totalCount':_0x27243b[_0x9d9528(0x12e)],...typeof _0x27243b[_0x9d9528(0x121)]===_0x9d9528(0x111)?{'physicalTableCount':_0x27243b[_0x9d9528(0x121)]}:{},...typeof _0x27243b[_0x9d9528(0x128)]==='number'?{'datasetTableCount':_0x27243b[_0x9d9528(0x128)]}:{},..._0x27243b[_0x9d9528(0x10e)]?{'summary':_0x27243b[_0x9d9528(0x10e)]}:{},'summaryByType':_0xbdc63c,'toAnalyzeTables':_0x3b3326,'deletedTables':_0x43ac3a,'modifiedFieldDiffs':_0x103828,'tables':_0x3d427f},'message':_0x3d427f[_0x9d9528(0x11a)]+_0x9d9528(0x134)+_0x27243b[_0x9d9528(0x12e)]+_0x9d9528(0x117)+_0x497d98+')'};}};function a112_0x2d58(_0x38e426,_0x14f9ea){_0x38e426=_0x38e426-0x107;const _0x25941c=a112_0x2594();let _0x2d58a6=_0x25941c[_0x38e426];return _0x2d58a6;}function a112_0x2594(){const _0x47b19f=['531Haibuq','NEW_TABLE','762925fsngnn','Compare\x20datasets\x20with\x20physical\x20database\x20tables\x20and\x20show\x20schema\x20drift','tableName','summary','all','tableList','number','30TIaQgR','addedColumns','string','page','table','\x20(db\x20link\x20','boolean','49990VRQgDA','length','2290EqKucG','MODIFIED_TABLE','pagesize','289267CcvWOZ','deletedColumns','6502412gDdzJu','physicalTableCount','DELETED_TABLE','fieldDiff','diff','num','3240960YDrWlh','bool','datasetTableCount','read','appCode','filter','3858evXtgi','diffType','totalCount','Page\x20index\x20(1-based)','1746coOckv','Page\x20size','Fetch\x20and\x20aggregate\x20every\x20page\x20(overrides\x20--page\x20and\x20--pagesize)','244JUePvn','\x20changed\x20table\x20row(s),\x20total\x20','492bqbGQd','map'];a112_0x2594=function(){return _0x47b19f;};return a112_0x2594();}
@@ -1 +1 @@
1
- (function(_0x10ba0a,_0x328175){const _0x7e55ae=a113_0x22c1,_0x5d27b=_0x10ba0a();while(!![]){try{const _0x43bf19=-parseInt(_0x7e55ae(0x1bc))/0x1+-parseInt(_0x7e55ae(0x1ba))/0x2+parseInt(_0x7e55ae(0x1bb))/0x3+parseInt(_0x7e55ae(0x1bd))/0x4*(parseInt(_0x7e55ae(0x1b9))/0x5)+-parseInt(_0x7e55ae(0x1b4))/0x6*(parseInt(_0x7e55ae(0x1b8))/0x7)+parseInt(_0x7e55ae(0x1b5))/0x8*(parseInt(_0x7e55ae(0x1b7))/0x9)+parseInt(_0x7e55ae(0x1be))/0xa*(parseInt(_0x7e55ae(0x1b6))/0xb);if(_0x43bf19===_0x328175)break;else _0x5d27b['push'](_0x5d27b['shift']());}catch(_0x494a01){_0x5d27b['push'](_0x5d27b['shift']());}}}(a113_0x44b3,0x9b63a));function a113_0x22c1(_0x4c88e5,_0x2fcbc5){_0x4c88e5=_0x4c88e5-0x1b4;const _0x44b328=a113_0x44b3();let _0x22c14f=_0x44b328[_0x4c88e5];return _0x22c14f;}import{dbList}from'../../commands/db/list.js';import{dbDetail}from'../../commands/db/detail.js';import{dbCreate}from'../../commands/db/create.js';import{dbUpdate}from'../../commands/db/update.js';import{dbDelete}from'../../commands/db/delete.js';import{dbTest}from'../../commands/db/test.js';import{dbAnalyzeBatchPlan}from'../../commands/db/analyze-batch-plan.js';import{dbAnalyzeStart}from'../../commands/db/analyze-start.js';import{dbAnalyzeCancel}from'../../commands/db/analyze-cancel.js';import{dbAnalyzeStatus}from'../../commands/db/analyze-status.js';import{dbCrossAnalyzeStart}from'../../commands/db/cross-db-analyze-start.js';function a113_0x44b3(){const _0x3b2e89=['1809mmTbMg','1533PlaQmh','50ecOHgz','433246urYAdi','1850541btPFaj','1003039LCwXIp','102644pxLKZm','5973890gVYkIY','22722uGqRAu','48344mnVsjW','11bBnlRx'];a113_0x44b3=function(){return _0x3b2e89;};return a113_0x44b3();}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(_0x377c34,_0x4829a7){const _0x5eddd5=a113_0x4836,_0x5665b1=_0x377c34();while(!![]){try{const _0x507f65=-parseInt(_0x5eddd5(0xc5))/0x1+parseInt(_0x5eddd5(0xc9))/0x2*(parseInt(_0x5eddd5(0xc3))/0x3)+parseInt(_0x5eddd5(0xc4))/0x4+-parseInt(_0x5eddd5(0xbf))/0x5*(-parseInt(_0x5eddd5(0xc8))/0x6)+parseInt(_0x5eddd5(0xc0))/0x7+parseInt(_0x5eddd5(0xc1))/0x8*(-parseInt(_0x5eddd5(0xc7))/0x9)+parseInt(_0x5eddd5(0xc2))/0xa*(-parseInt(_0x5eddd5(0xc6))/0xb);if(_0x507f65===_0x4829a7)break;else _0x5665b1['push'](_0x5665b1['shift']());}catch(_0x523540){_0x5665b1['push'](_0x5665b1['shift']());}}}(a113_0x225a,0x22040));import{dbList}from'../../commands/db/list.js';import{dbDetail}from'../../commands/db/detail.js';import{dbCreate}from'../../commands/db/create.js';import{dbUpdate}from'../../commands/db/update.js';import{dbDelete}from'../../commands/db/delete.js';import{dbTest}from'../../commands/db/test.js';import{dbAnalyzeBatchPlan}from'../../commands/db/analyze-batch-plan.js';import{dbAnalyzeStart}from'../../commands/db/analyze-start.js';import{dbAnalyzeCancel}from'../../commands/db/analyze-cancel.js';import{dbAnalyzeStatus}from'../../commands/db/analyze-status.js';function a113_0x4836(_0x13d219,_0x5be8a3){_0x13d219=_0x13d219-0xbf;const _0x225a71=a113_0x225a();let _0x4836f3=_0x225a71[_0x13d219];return _0x4836f3;}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];function a113_0x225a(){const _0x25e7c1=['3ecXvGm','984648BCmCGH','154388RayKWo','11pTiBtj','93609NyZidL','1410DMkdhx','19102osMiFT','4550HYOqQW','1506533mBVfpQ','168gDcFGG','1726450QThrPN'];a113_0x225a=function(){return _0x25e7c1;};return a113_0x225a();}
@@ -1 +1 @@
1
- function a114_0x23cb(){const _0x5c6f7a=['22265EYTWdF','num','length','number','Found\x20','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','DB_TABLE','28FIPUCp','Page\x20index\x20(1-based)','Page\x20size','pagesize','8342873IWXTcl','datasetDependency','\x20database\x20connection(s)','11297224OJXgtg','5HqbEYx','page','23070VplvAh','1146572SoLSKL','all','8948586dmRfQV','map','25881624jFqmsA','appCode','list'];a114_0x23cb=function(){return _0x5c6f7a;};return a114_0x23cb();}const a114_0x10ee16=a114_0x1ff6;(function(_0xbbdde1,_0x341537){const _0x352018=a114_0x1ff6,_0xc09aca=_0xbbdde1();while(!![]){try{const _0x4735dd=parseInt(_0x352018(0xfc))/0x1+parseInt(_0x352018(0xea))/0x2*(-parseInt(_0x352018(0xf4))/0x3)+-parseInt(_0x352018(0xf5))/0x4*(parseInt(_0x352018(0xf2))/0x5)+-parseInt(_0x352018(0xf7))/0x6+parseInt(_0x352018(0xee))/0x7+-parseInt(_0x352018(0xf1))/0x8+parseInt(_0x352018(0xf9))/0x9;if(_0x4735dd===_0x341537)break;else _0xc09aca['push'](_0xc09aca['shift']());}catch(_0x36149d){_0xc09aca['push'](_0xc09aca['shift']());}}}(a114_0x23cb,0xc1591));import{listDatasets,listDbLinks}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a114_0x1ff6(_0xe639b7,_0x335fd6){_0xe639b7=_0xe639b7-0xe6;const _0x23cbea=a114_0x23cb();let _0x1ff69c=_0x23cbea[_0xe639b7];return _0x1ff69c;}import{buildDbDatasetDependency,sanitizeDbLinkForOutput}from'../../commands/db/shared.js';export const dbList={'service':'db','command':a114_0x10ee16(0xfb),'description':a114_0x10ee16(0xe8),'risk':'read','flags':[APPCODE_FLAG_OPTIONAL,{'name':'page','type':'number','description':a114_0x10ee16(0xeb),'default':0x1},{'name':a114_0x10ee16(0xed),'type':a114_0x10ee16(0xe6),'description':a114_0x10ee16(0xec),'default':0x64}],async 'execute'(_0x48c122){const _0x58e373=a114_0x10ee16,_0x18f3f0=_0x48c122[_0x58e373(0xfd)](_0x58e373(0xf3),0x1)||0x1,_0x3d22f2=_0x48c122[_0x58e373(0xfd)](_0x58e373(0xed),0x64)||0x64,[{items:_0x34f966,paging:_0x34c0cd},_0xde5b20]=await Promise[_0x58e373(0xf6)]([listDbLinks(_0x48c122[_0x58e373(0xfa)],{'currentPage':_0x18f3f0,'pageSize':_0x3d22f2}),listDatasets(_0x48c122['appCode'],{'source':_0x58e373(0xe9)})]),_0x1cf193=_0x34f966[_0x58e373(0xf8)](_0x2d5c4b=>({...sanitizeDbLinkForOutput(_0x2d5c4b),'datasetDependency':buildDbDatasetDependency(_0x2d5c4b,_0xde5b20)[_0x58e373(0xef)]})),_0x2c8af8=_0x34c0cd?_0x34c0cd:{'currentPage':_0x18f3f0,'pageSize':_0x3d22f2,'rowsOnPage':_0x1cf193['length'],'totalCount':null,'note':'Server\x20omitted\x20paging\x20metadata;\x20totalCount\x20is\x20unknown\x20—\x20rowsOnPage\x20is\x20this\x20page\x20only'};return{'ok':!![],'data':{'connections':_0x1cf193,'paging':_0x2c8af8},'message':_0x58e373(0xe7)+_0x1cf193[_0x58e373(0xfe)]+_0x58e373(0xf0)};}};
1
+ const a114_0x2a7880=a114_0x3020;(function(_0x578d5b,_0x5f0d04){const _0xca5b49=a114_0x3020,_0x105d51=_0x578d5b();while(!![]){try{const _0x1ff958=-parseInt(_0xca5b49(0x1a2))/0x1*(parseInt(_0xca5b49(0x19d))/0x2)+-parseInt(_0xca5b49(0x1a0))/0x3*(-parseInt(_0xca5b49(0x198))/0x4)+parseInt(_0xca5b49(0x1a1))/0x5+-parseInt(_0xca5b49(0x1aa))/0x6*(parseInt(_0xca5b49(0x1a6))/0x7)+-parseInt(_0xca5b49(0x1a3))/0x8+parseInt(_0xca5b49(0x1a8))/0x9*(-parseInt(_0xca5b49(0x19b))/0xa)+parseInt(_0xca5b49(0x19a))/0xb*(parseInt(_0xca5b49(0x192))/0xc);if(_0x1ff958===_0x5f0d04)break;else _0x105d51['push'](_0x105d51['shift']());}catch(_0xce03aa){_0x105d51['push'](_0x105d51['shift']());}}}(a114_0x4095,0x58016));import{listDatasets,listDbLinks}from'../../core/api-client.js';function a114_0x3020(_0x5dd1cb,_0x38b0d9){_0x5dd1cb=_0x5dd1cb-0x191;const _0x4095a7=a114_0x4095();let _0x3020ea=_0x4095a7[_0x5dd1cb];return _0x3020ea;}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{buildDbDatasetDependency,sanitizeDbLinkForOutput}from'../../commands/db/shared.js';function a114_0x4095(){const _0x30c96f=['page','num','6209NtjYOt','read','4068BEKCrG','Page\x20size','1542RZMdnT','datasetDependency','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','12JOrjnd','all','Server\x20omitted\x20paging\x20metadata;\x20totalCount\x20is\x20unknown\x20—\x20rowsOnPage\x20is\x20this\x20page\x20only','number','\x20database\x20connection(s)','length','44TqAZba','appCode','253781MLiXrs','360BIfLcA','map','2ldMhio','DB_TABLE','Page\x20index\x20(1-based)','75531NrbndB','2366985KalydQ','47898YRApMY','966528RMrWmp'];a114_0x4095=function(){return _0x30c96f;};return a114_0x4095();}export const dbList={'service':'db','command':'list','description':a114_0x2a7880(0x191),'risk':a114_0x2a7880(0x1a7),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a114_0x2a7880(0x1a4),'type':a114_0x2a7880(0x195),'description':a114_0x2a7880(0x19f),'default':0x1},{'name':'pagesize','type':a114_0x2a7880(0x195),'description':a114_0x2a7880(0x1a9),'default':0x64}],async 'execute'(_0x450003){const _0x17194b=a114_0x2a7880,_0x395b00=_0x450003[_0x17194b(0x1a5)]('page',0x1)||0x1,_0x2b899d=_0x450003[_0x17194b(0x1a5)]('pagesize',0x64)||0x64,[{items:_0x591e64,paging:_0x2d240f},_0x2e61e2]=await Promise[_0x17194b(0x193)]([listDbLinks(_0x450003[_0x17194b(0x199)],{'currentPage':_0x395b00,'pageSize':_0x2b899d}),listDatasets(_0x450003[_0x17194b(0x199)],{'source':_0x17194b(0x19e)})]),_0xb3843c=_0x591e64[_0x17194b(0x19c)](_0xfbb389=>({...sanitizeDbLinkForOutput(_0xfbb389),'datasetDependency':buildDbDatasetDependency(_0xfbb389,_0x2e61e2)[_0x17194b(0x1ab)]})),_0x41d182=_0x2d240f?_0x2d240f:{'currentPage':_0x395b00,'pageSize':_0x2b899d,'rowsOnPage':_0xb3843c[_0x17194b(0x197)],'totalCount':null,'note':_0x17194b(0x194)};return{'ok':!![],'data':{'connections':_0xb3843c,'paging':_0x41d182},'message':'Found\x20'+_0xb3843c[_0x17194b(0x197)]+_0x17194b(0x196)};}};
@@ -1 +1 @@
1
- (function(_0x31d449,_0x4f6ed6){const _0x428848=a115_0x55b3,_0x4ddc0c=_0x31d449();while(!![]){try{const _0x1a81e8=parseInt(_0x428848(0x1d0))/0x1+-parseInt(_0x428848(0x1b7))/0x2+parseInt(_0x428848(0x1b4))/0x3*(parseInt(_0x428848(0x1cd))/0x4)+-parseInt(_0x428848(0x1ba))/0x5*(parseInt(_0x428848(0x1d1))/0x6)+-parseInt(_0x428848(0x1b8))/0x7+parseInt(_0x428848(0x1ca))/0x8*(parseInt(_0x428848(0x1d2))/0x9)+-parseInt(_0x428848(0x1c5))/0xa;if(_0x1a81e8===_0x4f6ed6)break;else _0x4ddc0c['push'](_0x4ddc0c['shift']());}catch(_0x4ea153){_0x4ddc0c['push'](_0x4ddc0c['shift']());}}}(a115_0x1f46,0x719b6));function a115_0x1f46(){const _0x4ed21f=['150584FfEmyj','privatekey','10JWRDuj','dbtableConfig','dbId','trim','number','connectionstring','jdbcurl','name','authorization','hasAvailableDo','token','5994200afyxbE','keys','apiError','passwd','/data/er?dbId=','325120nBWWYA','includes','secret','760StGbAL','toLowerCase','Database\x20connection\x20preflight\x20failed.','725445lWtyxd','194154jjErWA','54ZFvLqd','length','[redacted]','tableName','The\x20configuration\x20was\x20not\x20saved.\x20Verify\x20the\x20host,\x20credentials,\x20database\x20name,\x20network,\x20and\x20allowlist,\x20or\x20explicitly\x20pass\x20--skip-connection-test.','map','11967yRSRmT','accesskey','isFinite','1152422SHNbms'];a115_0x1f46=function(){return _0x4ed21f;};return a115_0x1f46();}import{testDbLinkConfigConnect}from'../../core/api-client.js';import{getAppBaseUrl}from'../../constant/domain.js';import{CliErrors}from'../../errors.js';function shouldRedactKey(_0x29e77e){const _0x314c86=a115_0x55b3,_0x5716bc=_0x29e77e[_0x314c86(0x1ce)]();if(_0x5716bc==='password'||_0x5716bc===_0x314c86(0x1c8)||_0x5716bc==='dbpassword')return!![];if(_0x5716bc[_0x314c86(0x1cb)](_0x314c86(0x1cc))||_0x5716bc[_0x314c86(0x1cb)](_0x314c86(0x1c4))||_0x5716bc[_0x314c86(0x1cb)]('credential'))return!![];if(_0x5716bc['includes'](_0x314c86(0x1b9))||_0x5716bc[_0x314c86(0x1cb)](_0x314c86(0x1b5)))return!![];if(_0x5716bc===_0x314c86(0x1c2)||_0x5716bc===_0x314c86(0x1bf)||_0x5716bc===_0x314c86(0x1c0))return!![];return![];}export function sanitizeDbLinkForOutput(_0x5add3a){const _0x310384=a115_0x55b3,_0x34bbe1={..._0x5add3a};delete _0x34bbe1[_0x310384(0x1c3)];for(const _0x53d53e of Object[_0x310384(0x1c6)](_0x34bbe1)){if(!shouldRedactKey(_0x53d53e))continue;const _0x449870=_0x34bbe1[_0x53d53e];_0x449870!=null&&String(_0x449870)['length']>0x0&&(_0x34bbe1[_0x53d53e]=_0x310384(0x1b0));}return _0x34bbe1;}export function sanitizeDbLinkList(_0x559b35){return _0x559b35['map'](_0x1a1ecf=>sanitizeDbLinkForOutput(_0x1a1ecf));}function a115_0x55b3(_0x37f9f5,_0x2dec27){_0x37f9f5=_0x37f9f5-0x1b0;const _0x1f4667=a115_0x1f46();let _0x55b333=_0x1f4667[_0x37f9f5];return _0x55b333;}export function buildDbDatasetDependency(_0x1da66d,_0x100e57){const _0x293aec=a115_0x55b3,_0x3ada2d=_0x100e57['filter'](_0x22e462=>Number(_0x22e462[_0x293aec(0x1bb)]?.[_0x293aec(0x1bc)])===Number(_0x1da66d['id']))[_0x293aec(0x1b3)](_0x49dbe8=>({'id':_0x49dbe8['id'],'code':_0x49dbe8['code'],'name':_0x49dbe8[_0x293aec(0x1c1)],..._0x49dbe8['dbtableConfig']?.['tableName']?{'tableName':_0x49dbe8[_0x293aec(0x1bb)][_0x293aec(0x1b1)]}:{}}));return{'datasetDependency':{'hasDependencies':_0x3ada2d[_0x293aec(0x1d3)]>0x0,'activeDatasetCount':_0x3ada2d[_0x293aec(0x1d3)]},'datasets':_0x3ada2d};}export async function assertDbLinkConnectionPreflight(_0x12e043){const _0xbe40bb=a115_0x55b3,_0x209073=await testDbLinkConfigConnect(_0x12e043);if(_0x209073!==!![])throw CliErrors[_0xbe40bb(0x1c7)](_0xbe40bb(0x1cf),_0xbe40bb(0x1b2));}const DB_URL_PATTERN=/^[^\s:]+(?::\d+)?$/;export function validateDbUrl(_0x194894){const _0x2b2482=a115_0x55b3,_0x34ffd5=_0x194894[_0x2b2482(0x1bd)]();if(!_0x34ffd5)return![];return DB_URL_PATTERN['test'](_0x34ffd5);}export function buildDbPageLinks(_0x1e26d8,_0xa85613){const _0x4e5cca=a115_0x55b3,_0x4a0bde=_0x1e26d8?.[_0x4e5cca(0x1bd)]();if(!_0x4a0bde)return undefined;const _0x26b249=typeof _0xa85613===_0x4e5cca(0x1be)?String(_0xa85613):String(_0xa85613??'')[_0x4e5cca(0x1bd)]();if(!_0x26b249)return undefined;const _0x124065=Number(_0x26b249);if(!Number[_0x4e5cca(0x1b6)](_0x124065)||_0x124065<=0x0)return undefined;const _0x2543a7=getAppBaseUrl(_0x4a0bde),_0x42e56a=encodeURIComponent(String(_0x124065));return{'databasePage':_0x2543a7+'/data/database','erPage':_0x2543a7+_0x4e5cca(0x1c9)+_0x42e56a};}
1
+ (function(_0x40fc38,_0x343cd3){const _0x2caf23=a115_0x11a8,_0x973664=_0x40fc38();while(!![]){try{const _0x18c831=parseInt(_0x2caf23(0x1d7))/0x1+-parseInt(_0x2caf23(0x1cc))/0x2+-parseInt(_0x2caf23(0x1e2))/0x3+parseInt(_0x2caf23(0x1d4))/0x4+-parseInt(_0x2caf23(0x1cd))/0x5*(parseInt(_0x2caf23(0x1ea))/0x6)+parseInt(_0x2caf23(0x1dd))/0x7+-parseInt(_0x2caf23(0x1e1))/0x8*(-parseInt(_0x2caf23(0x1d1))/0x9);if(_0x18c831===_0x343cd3)break;else _0x973664['push'](_0x973664['shift']());}catch(_0x5ae9ac){_0x973664['push'](_0x973664['shift']());}}}(a115_0xec8f,0xc783d));import{testDbLinkConfigConnect}from'../../core/api-client.js';import{getAppBaseUrl}from'../../constant/domain.js';import{CliErrors}from'../../errors.js';function shouldRedactKey(_0xebd2fe){const _0x5bf2d6=a115_0x11a8,_0x2a59a9=_0xebd2fe[_0x5bf2d6(0x1df)]();if(_0x2a59a9===_0x5bf2d6(0x1e3)||_0x2a59a9===_0x5bf2d6(0x1ec)||_0x2a59a9==='dbpassword')return!![];if(_0x2a59a9[_0x5bf2d6(0x1d0)](_0x5bf2d6(0x1cb))||_0x2a59a9[_0x5bf2d6(0x1d0)](_0x5bf2d6(0x1e6))||_0x2a59a9[_0x5bf2d6(0x1d0)](_0x5bf2d6(0x1e7)))return!![];if(_0x2a59a9[_0x5bf2d6(0x1d0)](_0x5bf2d6(0x1d9))||_0x2a59a9[_0x5bf2d6(0x1d0)](_0x5bf2d6(0x1e5)))return!![];if(_0x2a59a9===_0x5bf2d6(0x1d3)||_0x2a59a9===_0x5bf2d6(0x1e8)||_0x2a59a9===_0x5bf2d6(0x1d6))return!![];return![];}export function sanitizeDbLinkForOutput(_0x4bafee){const _0x1d0d16={..._0x4bafee};delete _0x1d0d16['hasAvailableDo'];for(const _0x4e3e30 of Object['keys'](_0x1d0d16)){if(!shouldRedactKey(_0x4e3e30))continue;const _0x793a18=_0x1d0d16[_0x4e3e30];_0x793a18!=null&&String(_0x793a18)['length']>0x0&&(_0x1d0d16[_0x4e3e30]='[redacted]');}return _0x1d0d16;}export function sanitizeDbLinkList(_0x4c22c0){const _0x182218=a115_0x11a8;return _0x4c22c0[_0x182218(0x1dc)](_0x4dbb90=>sanitizeDbLinkForOutput(_0x4dbb90));}export function buildDbDatasetDependency(_0x5f069b,_0x375dfb){const _0x533213=a115_0x11a8,_0x52fa6d=_0x375dfb['filter'](_0x2f9a3b=>Number(_0x2f9a3b[_0x533213(0x1ce)]?.[_0x533213(0x1eb)])===Number(_0x5f069b['id']))['map'](_0x1c290a=>({'id':_0x1c290a['id'],'code':_0x1c290a[_0x533213(0x1d5)],'name':_0x1c290a['name'],..._0x1c290a[_0x533213(0x1ce)]?.[_0x533213(0x1e9)]?{'tableName':_0x1c290a[_0x533213(0x1ce)]['tableName']}:{}}));return{'datasetDependency':{'hasDependencies':_0x52fa6d['length']>0x0,'activeDatasetCount':_0x52fa6d[_0x533213(0x1e0)]},'datasets':_0x52fa6d};}export async function assertDbLinkConnectionPreflight(_0x4eb1af){const _0x4f75eb=a115_0x11a8,_0x216e44=await testDbLinkConfigConnect(_0x4eb1af);if(_0x216e44!==!![])throw CliErrors[_0x4f75eb(0x1db)]('Database\x20connection\x20preflight\x20failed.',_0x4f75eb(0x1da));}const DB_URL_PATTERN=/^[^\s:]+(?::\d+)?$/;function a115_0x11a8(_0x40f996,_0x2eacd0){_0x40f996=_0x40f996-0x1cb;const _0xec8f07=a115_0xec8f();let _0x11a843=_0xec8f07[_0x40f996];return _0x11a843;}export function validateDbUrl(_0x5765f6){const _0x545b10=a115_0x11a8,_0x2c5b43=_0x5765f6[_0x545b10(0x1e4)]();if(!_0x2c5b43)return![];return DB_URL_PATTERN[_0x545b10(0x1cf)](_0x2c5b43);}function a115_0xec8f(){const _0x49565f=['length','24680HMQJgs','3301059yEFqWc','password','trim','accesskey','token','credential','connectionstring','tableName','181662Lmcaok','dbId','passwd','/data/er?dbId=','secret','3207550uvjDZw','245AVOHtD','dbtableConfig','test','includes','11079wLhZCF','number','authorization','2769280BPmuAe','code','jdbcurl','261260ZhxOve','/data/database','privatekey','The\x20configuration\x20was\x20not\x20saved.\x20Verify\x20the\x20host,\x20credentials,\x20database\x20name,\x20network,\x20and\x20allowlist,\x20or\x20explicitly\x20pass\x20--skip-connection-test.','apiError','map','1775893QYPHuj','isFinite','toLowerCase'];a115_0xec8f=function(){return _0x49565f;};return a115_0xec8f();}export function buildDbPageLinks(_0x41b155,_0x497c32){const _0x4e6339=a115_0x11a8,_0x2a0a62=_0x41b155?.[_0x4e6339(0x1e4)]();if(!_0x2a0a62)return undefined;const _0x875b61=typeof _0x497c32===_0x4e6339(0x1d2)?String(_0x497c32):String(_0x497c32??'')[_0x4e6339(0x1e4)]();if(!_0x875b61)return undefined;const _0x603af7=Number(_0x875b61);if(!Number[_0x4e6339(0x1de)](_0x603af7)||_0x603af7<=0x0)return undefined;const _0x24301a=getAppBaseUrl(_0x2a0a62),_0x5771bc=encodeURIComponent(String(_0x603af7));return{'databasePage':_0x24301a+_0x4e6339(0x1d8),'erPage':_0x24301a+_0x4e6339(0x1ed)+_0x5771bc};}
@@ -1 +1 @@
1
- const a116_0x21f770=a116_0x3f3c;(function(_0x5a6f64,_0xece144){const _0x31e456=a116_0x3f3c,_0x1d2ee5=_0x5a6f64();while(!![]){try{const _0x45554f=parseInt(_0x31e456(0x18c))/0x1+parseInt(_0x31e456(0x19b))/0x2*(parseInt(_0x31e456(0x18a))/0x3)+-parseInt(_0x31e456(0x19f))/0x4+parseInt(_0x31e456(0x18e))/0x5*(-parseInt(_0x31e456(0x19d))/0x6)+-parseInt(_0x31e456(0x198))/0x7+-parseInt(_0x31e456(0x191))/0x8*(-parseInt(_0x31e456(0x189))/0x9)+parseInt(_0x31e456(0x196))/0xa*(parseInt(_0x31e456(0x1a2))/0xb);if(_0x45554f===_0xece144)break;else _0x1d2ee5['push'](_0x1d2ee5['shift']());}catch(_0x148907){_0x1d2ee5['push'](_0x1d2ee5['shift']());}}}(a116_0x59c9,0xe02bb));import{CliErrors}from'../../errors.js';export const DB_TABLE_PAGE_SIZE=0x64;function a116_0x3f3c(_0x2fa3e0,_0x413de6){_0x2fa3e0=_0x2fa3e0-0x189;const _0x59c9c4=a116_0x59c9();let _0x3f3c8e=_0x59c9c4[_0x2fa3e0];return _0x3f3c8e;}export const DB_TABLE_DIFF_TYPES=['NEW_TABLE',a116_0x21f770(0x19a),a116_0x21f770(0x1a6),a116_0x21f770(0x19e)];function a116_0x59c9(){const _0x1307e7=['5151464szErrM','totalCount','size','22qfZLMw','number','filter','summary','DELETED_TABLE','12658167IbsoHq','69UjArqz','validation','1318214foBPOs','Incomplete\x20db\x20table\x20pagination:\x20collected\x20','8513145LnsvvG','length','physicalTableCount','8TajlPb','tableList','tableName','\x20row(s).','diffType','9700760ngePAH','\x20of\x20','10290840AArQMG','map','MODIFIED_TABLE','62086vyfqfg','datasetTableCount','6BMtyre','ALREADY_ANALYZED'];a116_0x59c9=function(){return _0x1307e7;};return a116_0x59c9();}export function summarizeDbTableDiff(_0x3ef1bb){const _0x572520=a116_0x21f770;return Object['fromEntries'](DB_TABLE_DIFF_TYPES[_0x572520(0x199)](_0x4a23bb=>[_0x4a23bb,_0x3ef1bb[_0x572520(0x1a4)](_0x51f1a3=>_0x51f1a3[_0x572520(0x195)]===_0x4a23bb)[_0x572520(0x18f)]]));}export async function getAllDbTableDiff(_0x5f32b4,_0x445320,_0x27ab57,_0x3d34c2){const _0x2b0e28=a116_0x21f770,_0xa1200e=new Map();let _0x2f4e7a=0x1,_0x2607a4=null;while(!![]){_0x2607a4=await _0x5f32b4(_0x445320,_0x27ab57,{'pageIndex':_0x2f4e7a,'pageSize':DB_TABLE_PAGE_SIZE,'tableName':_0x3d34c2});const _0x12f2fc=_0xa1200e['size'];for(const _0x53b1f2 of _0x2607a4[_0x2b0e28(0x192)]){_0xa1200e['set'](_0x53b1f2[_0x2b0e28(0x193)],_0x53b1f2);}if(_0xa1200e[_0x2b0e28(0x1a1)]>=_0x2607a4[_0x2b0e28(0x1a0)])break;if(_0x2607a4[_0x2b0e28(0x192)][_0x2b0e28(0x18f)]===0x0||_0xa1200e[_0x2b0e28(0x1a1)]===_0x12f2fc)throw CliErrors[_0x2b0e28(0x18b)](_0x2b0e28(0x18d)+_0xa1200e[_0x2b0e28(0x1a1)]+_0x2b0e28(0x197)+_0x2607a4[_0x2b0e28(0x1a0)]+_0x2b0e28(0x194));_0x2f4e7a+=0x1;}return{'totalCount':_0x2607a4?.[_0x2b0e28(0x1a0)]??0x0,...typeof _0x2607a4?.['physicalTableCount']===_0x2b0e28(0x1a3)?{'physicalTableCount':_0x2607a4[_0x2b0e28(0x190)]}:{},...typeof _0x2607a4?.[_0x2b0e28(0x19c)]===_0x2b0e28(0x1a3)?{'datasetTableCount':_0x2607a4[_0x2b0e28(0x19c)]}:{},..._0x2607a4?.[_0x2b0e28(0x1a5)]?{'summary':_0x2607a4[_0x2b0e28(0x1a5)]}:{},'tableList':[..._0xa1200e['values']()]};}
1
+ const a116_0x2c48d9=a116_0x312c;(function(_0x3b702b,_0x76f5f2){const _0x13ec4f=a116_0x312c,_0x2dcd7a=_0x3b702b();while(!![]){try{const _0x3de098=-parseInt(_0x13ec4f(0xc0))/0x1*(parseInt(_0x13ec4f(0xcd))/0x2)+-parseInt(_0x13ec4f(0xc8))/0x3+-parseInt(_0x13ec4f(0xc7))/0x4+parseInt(_0x13ec4f(0xbf))/0x5+-parseInt(_0x13ec4f(0xc5))/0x6+-parseInt(_0x13ec4f(0xc2))/0x7*(-parseInt(_0x13ec4f(0xbd))/0x8)+-parseInt(_0x13ec4f(0xd2))/0x9*(-parseInt(_0x13ec4f(0xd5))/0xa);if(_0x3de098===_0x76f5f2)break;else _0x2dcd7a['push'](_0x2dcd7a['shift']());}catch(_0x1fe2b6){_0x2dcd7a['push'](_0x2dcd7a['shift']());}}}(a116_0x45c7,0xe8f7f));import{CliErrors}from'../../errors.js';export const DB_TABLE_PAGE_SIZE=0x64;export const DB_TABLE_DIFF_TYPES=[a116_0x2c48d9(0xce),a116_0x2c48d9(0xc6),a116_0x2c48d9(0xd3),'ALREADY_ANALYZED'];export function summarizeDbTableDiff(_0x1dbab4){const _0x2eb0af=a116_0x2c48d9;return Object[_0x2eb0af(0xd4)](DB_TABLE_DIFF_TYPES['map'](_0x390e39=>[_0x390e39,_0x1dbab4[_0x2eb0af(0xc1)](_0x39601f=>_0x39601f['diffType']===_0x390e39)[_0x2eb0af(0xc4)]]));}function a116_0x312c(_0x1d366a,_0x437cad){_0x1d366a=_0x1d366a-0xbb;const _0x45c750=a116_0x45c7();let _0x312c24=_0x45c750[_0x1d366a];return _0x312c24;}function a116_0x45c7(){const _0x40eca8=['tableName','number','size','36EQCLQy','DELETED_TABLE','fromEntries','7907260HCKWMU','physicalTableCount','tableList','576088Vfmajt','totalCount','1258800bbhCGh','136201nLltmW','filter','175umYGEQ','summary','length','9755328txnNeP','MODIFIED_TABLE','1783092qzmIvP','3298293QJdOag','validation','values','datasetTableCount','\x20of\x20','16ffsqvk','NEW_TABLE'];a116_0x45c7=function(){return _0x40eca8;};return a116_0x45c7();}export async function getAllDbTableDiff(_0x309909,_0x1295a2,_0x370cbd,_0x182074){const _0x15a46a=a116_0x2c48d9,_0x42947c=new Map();let _0x5b3b4e=0x1,_0xdba27=null;while(!![]){_0xdba27=await _0x309909(_0x1295a2,_0x370cbd,{'pageIndex':_0x5b3b4e,'pageSize':DB_TABLE_PAGE_SIZE,'tableName':_0x182074});const _0x2ea5dd=_0x42947c[_0x15a46a(0xd1)];for(const _0x1291db of _0xdba27[_0x15a46a(0xbc)]){_0x42947c['set'](_0x1291db[_0x15a46a(0xcf)],_0x1291db);}if(_0x42947c[_0x15a46a(0xd1)]>=_0xdba27[_0x15a46a(0xbe)])break;if(_0xdba27[_0x15a46a(0xbc)][_0x15a46a(0xc4)]===0x0||_0x42947c[_0x15a46a(0xd1)]===_0x2ea5dd)throw CliErrors[_0x15a46a(0xc9)]('Incomplete\x20db\x20table\x20pagination:\x20collected\x20'+_0x42947c['size']+_0x15a46a(0xcc)+_0xdba27[_0x15a46a(0xbe)]+'\x20row(s).');_0x5b3b4e+=0x1;}return{'totalCount':_0xdba27?.['totalCount']??0x0,...typeof _0xdba27?.[_0x15a46a(0xbb)]===_0x15a46a(0xd0)?{'physicalTableCount':_0xdba27[_0x15a46a(0xbb)]}:{},...typeof _0xdba27?.[_0x15a46a(0xcb)]===_0x15a46a(0xd0)?{'datasetTableCount':_0xdba27[_0x15a46a(0xcb)]}:{},..._0xdba27?.[_0x15a46a(0xc3)]?{'summary':_0xdba27['summary']}:{},'tableList':[..._0x42947c[_0x15a46a(0xca)]()]};}
@@ -1 +1 @@
1
- const a117_0x1a565e=a117_0x29dc;(function(_0x1f3ec1,_0x5852aa){const _0xa08a5=a117_0x29dc,_0xce518f=_0x1f3ec1();while(!![]){try{const _0x315621=parseInt(_0xa08a5(0xcf))/0x1+-parseInt(_0xa08a5(0xbe))/0x2*(-parseInt(_0xa08a5(0xd1))/0x3)+parseInt(_0xa08a5(0xc3))/0x4+-parseInt(_0xa08a5(0xd0))/0x5+parseInt(_0xa08a5(0xc4))/0x6*(parseInt(_0xa08a5(0xd3))/0x7)+-parseInt(_0xa08a5(0xd2))/0x8*(-parseInt(_0xa08a5(0xc5))/0x9)+parseInt(_0xa08a5(0xd4))/0xa*(-parseInt(_0xa08a5(0xc8))/0xb);if(_0x315621===_0x5852aa)break;else _0xce518f['push'](_0xce518f['shift']());}catch(_0x443163){_0xce518f['push'](_0xce518f['shift']());}}}(a117_0x562f,0xb847a));import{getDbTableComparisonPage}from'../../core/api-client.js';function a117_0x29dc(_0x4addf8,_0x3f1f71){_0x4addf8=_0x4addf8-0xbe;const _0x562fe8=a117_0x562f();let _0x29dcc1=_0x562fe8[_0x4addf8];return _0x29dcc1;}import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{getAllDbTableDiff,summarizeDbTableDiff}from'../../commands/db/table-diff-shared.js';export const dbTables={'service':'db','command':a117_0x1a565e(0xca),'description':'List\x20all\x20database\x20table\x20comparison\x20rows\x20and\x20analysis\x20states','risk':a117_0x1a565e(0xcb),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a117_0x1a565e(0xc9),'type':a117_0x1a565e(0xcc),'description':'Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)'}],async 'execute'(_0x207b03){const _0x26df1e=a117_0x1a565e,_0x191a96=_0x207b03[_0x26df1e(0xc7)]('id'),_0x439bc7=_0x207b03[_0x26df1e(0xc6)](_0x26df1e(0xc9))||undefined,_0x31e281=await getAllDbTableDiff(getDbTableComparisonPage,_0x207b03['appCode'],_0x191a96,_0x439bc7),_0x240954=_0x31e281['tableList'];return{'ok':!![],'data':{'dbLinkId':_0x191a96,'totalCount':_0x31e281[_0x26df1e(0xc0)],...typeof _0x31e281['physicalTableCount']==='number'?{'physicalTableCount':_0x31e281[_0x26df1e(0xbf)]}:{},...typeof _0x31e281[_0x26df1e(0xc2)]==='number'?{'datasetTableCount':_0x31e281[_0x26df1e(0xc2)]}:{},..._0x31e281[_0x26df1e(0xce)]?{'summary':_0x31e281[_0x26df1e(0xce)]}:{},'summaryByType':summarizeDbTableDiff(_0x240954),'tables':_0x240954},'message':_0x240954['length']+_0x26df1e(0xc1)+_0x31e281[_0x26df1e(0xc0)]+_0x26df1e(0xcd)+_0x191a96+')'};}};function a117_0x562f(){const _0x15f642=['summary','1402501wZKbcD','5848640KHlweK','286401XWRIEg','1228904nHebCQ','330155jjlYQn','10RvVCCs','10tzOnBD','physicalTableCount','totalCount','\x20table\x20comparison\x20row(s),\x20total\x20','datasetTableCount','1742620TfbuFu','90hfKMsi','9mDfpUU','str','num','13772451JGFFbF','table','tables','read','string','\x20(db\x20link\x20'];a117_0x562f=function(){return _0x15f642;};return a117_0x562f();}
1
+ function a117_0x45c7(_0x8f6ead,_0x2e6f3a){_0x8f6ead=_0x8f6ead-0x17e;const _0x501f7f=a117_0x501f();let _0x45c724=_0x501f7f[_0x8f6ead];return _0x45c724;}const a117_0xcb4b13=a117_0x45c7;(function(_0x3e2b81,_0x2c1b3e){const _0x364c71=a117_0x45c7,_0x2c18f3=_0x3e2b81();while(!![]){try{const _0x43f943=-parseInt(_0x364c71(0x185))/0x1*(parseInt(_0x364c71(0x194))/0x2)+-parseInt(_0x364c71(0x183))/0x3+-parseInt(_0x364c71(0x184))/0x4*(parseInt(_0x364c71(0x18a))/0x5)+-parseInt(_0x364c71(0x17f))/0x6+parseInt(_0x364c71(0x190))/0x7+parseInt(_0x364c71(0x181))/0x8+parseInt(_0x364c71(0x180))/0x9;if(_0x43f943===_0x2c1b3e)break;else _0x2c18f3['push'](_0x2c18f3['shift']());}catch(_0x265459){_0x2c18f3['push'](_0x2c18f3['shift']());}}}(a117_0x501f,0x6e202));import{getDbTableComparisonPage}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{getAllDbTableDiff,summarizeDbTableDiff}from'../../commands/db/table-diff-shared.js';export const dbTables={'service':'db','command':a117_0xcb4b13(0x192),'description':a117_0xcb4b13(0x188),'risk':'read','flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a117_0xcb4b13(0x18e),'type':a117_0xcb4b13(0x18d),'description':a117_0xcb4b13(0x17e)}],async 'execute'(_0x412c87){const _0xbf958c=a117_0xcb4b13,_0x3c681e=_0x412c87[_0xbf958c(0x186)]('id'),_0x3ed984=_0x412c87[_0xbf958c(0x18f)](_0xbf958c(0x18e))||undefined,_0xae4d36=await getAllDbTableDiff(getDbTableComparisonPage,_0x412c87['appCode'],_0x3c681e,_0x3ed984),_0x301d45=_0xae4d36[_0xbf958c(0x187)];return{'ok':!![],'data':{'dbLinkId':_0x3c681e,'totalCount':_0xae4d36[_0xbf958c(0x191)],...typeof _0xae4d36['physicalTableCount']===_0xbf958c(0x18c)?{'physicalTableCount':_0xae4d36['physicalTableCount']}:{},...typeof _0xae4d36[_0xbf958c(0x193)]===_0xbf958c(0x18c)?{'datasetTableCount':_0xae4d36['datasetTableCount']}:{},..._0xae4d36[_0xbf958c(0x189)]?{'summary':_0xae4d36[_0xbf958c(0x189)]}:{},'summaryByType':summarizeDbTableDiff(_0x301d45),'tables':_0x301d45},'message':_0x301d45['length']+_0xbf958c(0x182)+_0xae4d36[_0xbf958c(0x191)]+_0xbf958c(0x18b)+_0x3c681e+')'};}};function a117_0x501f(){const _0x1dde88=['tables','datasetTableCount','2nSowWF','Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)','1764912cgooJW','2524743PoQoCr','5021064OWqFUL','\x20table\x20comparison\x20row(s),\x20total\x20','6348wjufBT','204veYHYH','366599rAGyxu','num','tableList','List\x20all\x20database\x20table\x20comparison\x20rows\x20and\x20analysis\x20states','summary','50870WhJHWQ','\x20(db\x20link\x20','number','string','table','str','5072585ATettI','totalCount'];a117_0x501f=function(){return _0x1dde88;};return a117_0x501f();}
@@ -1 +1 @@
1
- const a118_0x2729f7=a118_0x5af1;(function(_0x17de7a,_0x13bb1d){const _0x10e706=a118_0x5af1,_0xef839f=_0x17de7a();while(!![]){try{const _0x19a554=-parseInt(_0x10e706(0x77))/0x1*(parseInt(_0x10e706(0x8a))/0x2)+-parseInt(_0x10e706(0x80))/0x3+parseInt(_0x10e706(0x83))/0x4+-parseInt(_0x10e706(0x8d))/0x5*(parseInt(_0x10e706(0x8c))/0x6)+-parseInt(_0x10e706(0x79))/0x7*(parseInt(_0x10e706(0x7d))/0x8)+parseInt(_0x10e706(0x85))/0x9+parseInt(_0x10e706(0x7e))/0xa;if(_0x19a554===_0x13bb1d)break;else _0xef839f['push'](_0xef839f['shift']());}catch(_0x2ad617){_0xef839f['push'](_0xef839f['shift']());}}}(a118_0x1386,0x979df));import{testDbLinkConnect}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a118_0x5af1(_0x3a161b,_0x3b218e){_0x3a161b=_0x3a161b-0x76;const _0x138677=a118_0x1386();let _0x5af1ce=_0x138677[_0x3a161b];return _0x5af1ce;}function a118_0x1386(){const _0x29ce50=['read','3528760GExazW','num','10428084fSdfpL','\x20(see\x20data.result)','success','object','message','10eXUhgu','keys','3481242AzYBby','5aLklSV','Connection\x20OK\x20for\x20db\x20link\x20','69695nsFfOc','error','14GfyjKU','length','slice','Connection\x20check\x20finished\x20for\x20db\x20link\x20','3400856okNbaf','9555100OazVDg','Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)','1789371AElgef','data'];a118_0x1386=function(){return _0x29ce50;};return a118_0x1386();}function summarizeTestConnectResult(_0xfaab9a){const _0x559b63=a118_0x5af1;if(_0xfaab9a===!![]||_0xfaab9a===![])return{'success':_0xfaab9a};if(_0xfaab9a===null||_0xfaab9a===undefined)return{'type':typeof _0xfaab9a};if(typeof _0xfaab9a!==_0x559b63(0x88))return{'type':typeof _0xfaab9a};const _0x6fc945=_0xfaab9a,_0x823625=[_0x559b63(0x87),_0x559b63(0x89),'code',_0x559b63(0x78),'msg',_0x559b63(0x81)],_0x1d899c={};for(const _0x5719a5 of _0x823625){if(_0x5719a5 in _0x6fc945)_0x1d899c[_0x5719a5]=_0x6fc945[_0x5719a5];}return Object[_0x559b63(0x8b)](_0x1d899c)[_0x559b63(0x7a)]===0x0&&(_0x1d899c[_0x559b63(0x8b)]=Object[_0x559b63(0x8b)](_0x6fc945)[_0x559b63(0x7b)](0x0,0x14)),_0x1d899c;}export const dbTest={'service':'db','command':'test','description':a118_0x2729f7(0x7f),'risk':a118_0x2729f7(0x82),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0xed7bc9){const _0x4e11f1=a118_0x2729f7,_0x5cff6b=_0xed7bc9[_0x4e11f1(0x84)]('id'),_0x53065d=await testDbLinkConnect(_0x5cff6b),_0x367e34=_0x53065d===!![]||typeof _0x53065d===_0x4e11f1(0x88)&&_0x53065d!==null&&_0x53065d['success']===!![],_0x318f30=summarizeTestConnectResult(_0x53065d);return{'ok':!![],'data':{'id':_0x5cff6b,'connected':Boolean(_0x367e34),'result':_0x318f30},'message':_0x367e34?_0x4e11f1(0x76)+_0x5cff6b:_0x4e11f1(0x7c)+_0x5cff6b+_0x4e11f1(0x86)};}};
1
+ const a118_0xe0893c=a118_0x3d79;(function(_0x428ad1,_0x52ad81){const _0x10c32b=a118_0x3d79,_0x1f8713=_0x428ad1();while(!![]){try{const _0x2cceae=-parseInt(_0x10c32b(0x9e))/0x1*(parseInt(_0x10c32b(0xab))/0x2)+parseInt(_0x10c32b(0x9a))/0x3*(parseInt(_0x10c32b(0xa1))/0x4)+parseInt(_0x10c32b(0xb2))/0x5*(parseInt(_0x10c32b(0xb1))/0x6)+parseInt(_0x10c32b(0xac))/0x7+parseInt(_0x10c32b(0xa0))/0x8+-parseInt(_0x10c32b(0xa6))/0x9*(parseInt(_0x10c32b(0xaa))/0xa)+parseInt(_0x10c32b(0xa3))/0xb*(-parseInt(_0x10c32b(0x9f))/0xc);if(_0x2cceae===_0x52ad81)break;else _0x1f8713['push'](_0x1f8713['shift']());}catch(_0x24e63d){_0x1f8713['push'](_0x1f8713['shift']());}}}(a118_0x326b,0xe6535));function a118_0x326b(){const _0x1a2ad4=['Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)','10EedqHu','124878fcSowH','4361476STCufS','object','slice','num','\x20(see\x20data.result)','622938BODqKw','10KQkFmB','219BVFpeO','data','msg','code','26NtpSfE','5388iUkeXl','13975784EzcUUA','62588RCuuUt','keys','4323izSniK','message','Connection\x20OK\x20for\x20db\x20link\x20','8789706wqIuTB','success','read'];a118_0x326b=function(){return _0x1a2ad4;};return a118_0x326b();}import{testDbLinkConnect}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function summarizeTestConnectResult(_0x9e4f1e){const _0x156e8e=a118_0x3d79;if(_0x9e4f1e===!![]||_0x9e4f1e===![])return{'success':_0x9e4f1e};if(_0x9e4f1e===null||_0x9e4f1e===undefined)return{'type':typeof _0x9e4f1e};if(typeof _0x9e4f1e!==_0x156e8e(0xad))return{'type':typeof _0x9e4f1e};const _0x15dfcf=_0x9e4f1e,_0x54f130=['success',_0x156e8e(0xa4),_0x156e8e(0x9d),'error',_0x156e8e(0x9c),_0x156e8e(0x9b)],_0x2fc907={};for(const _0x19089d of _0x54f130){if(_0x19089d in _0x15dfcf)_0x2fc907[_0x19089d]=_0x15dfcf[_0x19089d];}return Object[_0x156e8e(0xa2)](_0x2fc907)['length']===0x0&&(_0x2fc907[_0x156e8e(0xa2)]=Object[_0x156e8e(0xa2)](_0x15dfcf)[_0x156e8e(0xae)](0x0,0x14)),_0x2fc907;}function a118_0x3d79(_0x18f2f2,_0x493295){_0x18f2f2=_0x18f2f2-0x9a;const _0x326ba3=a118_0x326b();let _0x3d79f1=_0x326ba3[_0x18f2f2];return _0x3d79f1;}export const dbTest={'service':'db','command':'test','description':a118_0xe0893c(0xa9),'risk':a118_0xe0893c(0xa8),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0xaa88a3){const _0x529cfd=a118_0xe0893c,_0x2843de=_0xaa88a3[_0x529cfd(0xaf)]('id'),_0xd4d760=await testDbLinkConnect(_0x2843de),_0x1a2f93=_0xd4d760===!![]||typeof _0xd4d760==='object'&&_0xd4d760!==null&&_0xd4d760[_0x529cfd(0xa7)]===!![],_0x32563f=summarizeTestConnectResult(_0xd4d760);return{'ok':!![],'data':{'id':_0x2843de,'connected':Boolean(_0x1a2f93),'result':_0x32563f},'message':_0x1a2f93?_0x529cfd(0xa5)+_0x2843de:'Connection\x20check\x20finished\x20for\x20db\x20link\x20'+_0x2843de+_0x529cfd(0xb0)};}};
@@ -1 +1 @@
1
- const a119_0x24b20e=a119_0x44ee;(function(_0x7bc6ea,_0x465a2c){const _0x32378a=a119_0x44ee,_0x51410b=_0x7bc6ea();while(!![]){try{const _0x281eeb=-parseInt(_0x32378a(0xd8))/0x1+-parseInt(_0x32378a(0xde))/0x2+parseInt(_0x32378a(0xd7))/0x3*(-parseInt(_0x32378a(0xf2))/0x4)+-parseInt(_0x32378a(0xee))/0x5*(parseInt(_0x32378a(0xdb))/0x6)+-parseInt(_0x32378a(0xf0))/0x7*(-parseInt(_0x32378a(0xd6))/0x8)+-parseInt(_0x32378a(0xe7))/0x9*(parseInt(_0x32378a(0xe3))/0xa)+parseInt(_0x32378a(0xe6))/0xb;if(_0x281eeb===_0x465a2c)break;else _0x51410b['push'](_0x51410b['shift']());}catch(_0xf6534d){_0x51410b['push'](_0x51410b['shift']());}}}(a119_0x5672,0xb458c));function a119_0x5672(){const _0x14fe2e=['update','num','726696zZWrnd','validation','POST','username','Current\x20or\x20replacement\x20password.\x20Required\x20when\x20the\x20stored\x20password\x20is\x20masked','30370gAYDjp','dburl','New\x20host:port','49643616dTBzmn','4167nomGOP','dbDesc','New\x20description','dbparam','has','dbname','[redacted]','20YEYlJs','dbName','98pvUmBf','******','500OANwfm','str','The\x20server\x20returned\x20a\x20masked\x20database\x20password.\x20Pass\x20the\x20current\x20or\x20replacement\x20password\x20explicitly\x20with\x20--password\x20to\x20update\x20this\x20connection\x20safely.','Update\x20a\x20database\x20connection\x20by\x20merging\x20supplied\x20fields\x20into\x20the\x20current\x20server\x20record.\x20A\x20masked\x20server\x20password\x20requires\x20explicit\x20--password','write','bool','string','dbdesc','New\x20username','skip-connection-test','--password\x20must\x20contain\x20the\x20real\x20database\x20password,\x20not\x20a\x20masked\x20value.','/smartapi/dblink/update','176576MMJSzg','13887MrJbXC','1122404exoQlO','trim','password','919284ARhKfX'];a119_0x5672=function(){return _0x14fe2e;};return a119_0x5672();}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';function a119_0x44ee(_0x3c6581,_0x554560){_0x3c6581=_0x3c6581-0xd5;const _0x5672b8=a119_0x5672();let _0x44eea7=_0x5672b8[_0x3c6581];return _0x44eea7;}const MASKED_PASSWORD_VALUES=new Set([a119_0x24b20e(0xf1),a119_0x24b20e(0xed)]);function mergeDbLinkUpdate(_0x27bf5d,_0x581ed3){const _0x5aa622=a119_0x24b20e,_0x48514a={..._0x27bf5d},_0x106c17=_0x581ed3[_0x5aa622(0xf3)]('password');if(_0x106c17&&MASKED_PASSWORD_VALUES[_0x5aa622(0xeb)](_0x106c17))throw CliErrors[_0x5aa622(0xdf)](_0x5aa622(0xfc));if(!_0x106c17&&MASKED_PASSWORD_VALUES[_0x5aa622(0xeb)](String(_0x27bf5d['password']??'')))throw CliErrors[_0x5aa622(0xdf)](_0x5aa622(0xf4));const _0x323158=_0x581ed3[_0x5aa622(0xf3)]('dbname');if(_0x323158)_0x48514a[_0x5aa622(0xef)]=_0x323158;const _0x53f484=_0x581ed3[_0x5aa622(0xf3)](_0x5aa622(0xe4));if(_0x53f484)_0x48514a['dbUrl']=_0x53f484[_0x5aa622(0xd9)]();const _0x5c18c=_0x581ed3[_0x5aa622(0xf3)](_0x5aa622(0xe1));if(_0x5c18c)_0x48514a['username']=_0x5c18c;if(_0x106c17)_0x48514a[_0x5aa622(0xda)]=_0x106c17;const _0x26d917=_0x581ed3[_0x5aa622(0xf3)](_0x5aa622(0xea));if(_0x26d917)_0x48514a['dbParam']=_0x26d917;const _0x1ebce3=_0x581ed3[_0x5aa622(0xf3)](_0x5aa622(0xf9));if(_0x1ebce3)_0x48514a[_0x5aa622(0xe8)]=_0x1ebce3;return _0x48514a;}export const dbUpdate={'service':'db','command':a119_0x24b20e(0xdc),'description':a119_0x24b20e(0xf5),'risk':a119_0x24b20e(0xf6),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a119_0x24b20e(0xec),'type':'string','description':'New\x20database\x20name'},{'name':a119_0x24b20e(0xe4),'type':a119_0x24b20e(0xf8),'description':a119_0x24b20e(0xe5)},{'name':a119_0x24b20e(0xe1),'type':'string','description':a119_0x24b20e(0xfa)},{'name':a119_0x24b20e(0xda),'type':a119_0x24b20e(0xf8),'description':a119_0x24b20e(0xe2)},{'name':'dbparam','type':a119_0x24b20e(0xf8),'description':'New\x20connection\x20parameter\x20string'},{'name':a119_0x24b20e(0xf9),'type':a119_0x24b20e(0xf8),'description':a119_0x24b20e(0xe9)},SKIP_CONNECTION_TEST_FLAG],async 'validate'(_0x4f5331){const _0x2b4aed=a119_0x24b20e,_0x2996dc=_0x4f5331[_0x2b4aed(0xf3)](_0x2b4aed(0xe4));if(_0x2996dc&&!validateDbUrl(_0x2996dc['trim']()))throw CliErrors['validation']('Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22'+_0x2996dc+'\x22');},async 'dryRun'(_0x304639){const _0x4fe4be=a119_0x24b20e,_0x693ff4=_0x304639[_0x4fe4be(0xdd)]('id'),_0x59d0af=await getDbLinkInfo(_0x693ff4),_0x6dac39=mergeDbLinkUpdate(_0x59d0af,_0x304639),_0x1807aa=sanitizeDbLinkForOutput(_0x6dac39);return{'method':_0x4fe4be(0xe0),'url':_0x4fe4be(0xd5),'body':_0x1807aa,'description':'Preview\x20the\x20merged\x20database\x20connection\x20update;\x20password\x20redacted','connectionPreflight':{'enabled':!_0x304639[_0x4fe4be(0xf7)]('skip-connection-test'),'executed':![]}};},async 'execute'(_0x27dba6){const _0x4b4550=a119_0x24b20e,_0x242f8f=_0x27dba6[_0x4b4550(0xdd)]('id'),_0x8ab6d9=await getDbLinkInfo(_0x242f8f),_0x5a2720=mergeDbLinkUpdate(_0x8ab6d9,_0x27dba6);!_0x27dba6[_0x4b4550(0xf7)](_0x4b4550(0xfb))&&await assertDbLinkConnectionPreflight(_0x5a2720);const {id:_0x374e9d,entity:_0x47d9b4}=normalizeEntityWithIdResponse(await updateDbLink(_0x5a2720));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x47d9b4),'message':'Updated\x20db\x20link\x20'+(_0x374e9d??_0x242f8f)};}};
1
+ const a119_0x1782fd=a119_0x525a;(function(_0x160439,_0x215be3){const _0x313537=a119_0x525a,_0x4c3511=_0x160439();while(!![]){try{const _0xdb34ba=parseInt(_0x313537(0x1fb))/0x1*(parseInt(_0x313537(0x20c))/0x2)+-parseInt(_0x313537(0x1f6))/0x3+-parseInt(_0x313537(0x1f9))/0x4+-parseInt(_0x313537(0x1ed))/0x5+-parseInt(_0x313537(0x20a))/0x6+parseInt(_0x313537(0x1ef))/0x7*(parseInt(_0x313537(0x1e9))/0x8)+parseInt(_0x313537(0x1f4))/0x9*(parseInt(_0x313537(0x1f5))/0xa);if(_0xdb34ba===_0x215be3)break;else _0x4c3511['push'](_0x4c3511['shift']());}catch(_0x4569f8){_0x4c3511['push'](_0x4c3511['shift']());}}}(a119_0x4647,0x89a8e));function a119_0x525a(_0x31a863,_0x1442cb){_0x31a863=_0x31a863-0x1e4;const _0x46473c=a119_0x4647();let _0x525a6d=_0x46473c[_0x31a863];return _0x525a6d;}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_0x1782fd(0x200)]);function a119_0x4647(){const _0x36aa33=['string','dbparam','9tLSvOM','17501790TOgjcl','2573874sCreAY','New\x20description','dbname','3809784HGtWAo','Updated\x20db\x20link\x20','307165cjtOGf','dbDesc','Current\x20or\x20replacement\x20password.\x20Required\x20when\x20the\x20stored\x20password\x20is\x20masked','dbUrl','--password\x20must\x20contain\x20the\x20real\x20database\x20password,\x20not\x20a\x20masked\x20value.','[redacted]','New\x20host:port','has','The\x20server\x20returned\x20a\x20masked\x20database\x20password.\x20Pass\x20the\x20current\x20or\x20replacement\x20password\x20explicitly\x20with\x20--password\x20to\x20update\x20this\x20connection\x20safely.','num','dbName','str','dbdesc','password','trim','1668258OipusS','dbParam','6WFkJQo','Preview\x20the\x20merged\x20database\x20connection\x20update;\x20password\x20redacted','bool','validation','POST','/smartapi/dblink/update','219160tuOMtT','skip-connection-test','Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22','New\x20username','507790HCPpym','username','21KWnRvS','dburl','update'];a119_0x4647=function(){return _0x36aa33;};return a119_0x4647();}function mergeDbLinkUpdate(_0x558231,_0x23301e){const _0x57a1a5=a119_0x1782fd,_0x1c2a86={..._0x558231},_0x299114=_0x23301e['str'](_0x57a1a5(0x208));if(_0x299114&&MASKED_PASSWORD_VALUES[_0x57a1a5(0x202)](_0x299114))throw CliErrors['validation'](_0x57a1a5(0x1ff));if(!_0x299114&&MASKED_PASSWORD_VALUES['has'](String(_0x558231[_0x57a1a5(0x208)]??'')))throw CliErrors['validation'](_0x57a1a5(0x203));const _0x5774bb=_0x23301e[_0x57a1a5(0x206)]('dbname');if(_0x5774bb)_0x1c2a86[_0x57a1a5(0x205)]=_0x5774bb;const _0x237763=_0x23301e[_0x57a1a5(0x206)]('dburl');if(_0x237763)_0x1c2a86[_0x57a1a5(0x1fe)]=_0x237763[_0x57a1a5(0x209)]();const _0x689763=_0x23301e[_0x57a1a5(0x206)](_0x57a1a5(0x1ee));if(_0x689763)_0x1c2a86[_0x57a1a5(0x1ee)]=_0x689763;if(_0x299114)_0x1c2a86[_0x57a1a5(0x208)]=_0x299114;const _0xd4568a=_0x23301e[_0x57a1a5(0x206)]('dbparam');if(_0xd4568a)_0x1c2a86[_0x57a1a5(0x20b)]=_0xd4568a;const _0x12d23d=_0x23301e[_0x57a1a5(0x206)](_0x57a1a5(0x207));if(_0x12d23d)_0x1c2a86[_0x57a1a5(0x1fc)]=_0x12d23d;return _0x1c2a86;}export const dbUpdate={'service':'db','command':a119_0x1782fd(0x1f1),'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':a119_0x1782fd(0x1f8),'type':a119_0x1782fd(0x1f2),'description':'New\x20database\x20name'},{'name':a119_0x1782fd(0x1f0),'type':a119_0x1782fd(0x1f2),'description':a119_0x1782fd(0x201)},{'name':'username','type':'string','description':a119_0x1782fd(0x1ec)},{'name':'password','type':'string','description':a119_0x1782fd(0x1fd)},{'name':a119_0x1782fd(0x1f3),'type':a119_0x1782fd(0x1f2),'description':'New\x20connection\x20parameter\x20string'},{'name':a119_0x1782fd(0x207),'type':a119_0x1782fd(0x1f2),'description':a119_0x1782fd(0x1f7)},SKIP_CONNECTION_TEST_FLAG],async 'validate'(_0x14457b){const _0x1f9ced=a119_0x1782fd,_0x4be621=_0x14457b[_0x1f9ced(0x206)]('dburl');if(_0x4be621&&!validateDbUrl(_0x4be621[_0x1f9ced(0x209)]()))throw CliErrors[_0x1f9ced(0x1e6)](_0x1f9ced(0x1eb)+_0x4be621+'\x22');},async 'dryRun'(_0x3883b1){const _0xf23590=a119_0x1782fd,_0x546dd3=_0x3883b1[_0xf23590(0x204)]('id'),_0x2357b6=await getDbLinkInfo(_0x546dd3),_0x2c0554=mergeDbLinkUpdate(_0x2357b6,_0x3883b1),_0x35706f=sanitizeDbLinkForOutput(_0x2c0554);return{'method':_0xf23590(0x1e7),'url':_0xf23590(0x1e8),'body':_0x35706f,'description':_0xf23590(0x1e4),'connectionPreflight':{'enabled':!_0x3883b1[_0xf23590(0x1e5)](_0xf23590(0x1ea)),'executed':![]}};},async 'execute'(_0x3d3a5d){const _0x2b6b6e=a119_0x1782fd,_0x5815fc=_0x3d3a5d[_0x2b6b6e(0x204)]('id'),_0x545e1d=await getDbLinkInfo(_0x5815fc),_0x3cb420=mergeDbLinkUpdate(_0x545e1d,_0x3d3a5d);!_0x3d3a5d[_0x2b6b6e(0x1e5)]('skip-connection-test')&&await assertDbLinkConnectionPreflight(_0x3cb420);const {id:_0x9d88e5,entity:_0x4915b0}=normalizeEntityWithIdResponse(await updateDbLink(_0x3cb420));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x4915b0),'message':_0x2b6b6e(0x1fa)+(_0x9d88e5??_0x5815fc)};}};
@@ -1 +1 @@
1
- (function(_0x576d1f,_0x43e510){const _0x32b019=a120_0x4904,_0x2db801=_0x576d1f();while(!![]){try{const _0x3b986d=-parseInt(_0x32b019(0x86))/0x1*(parseInt(_0x32b019(0x82))/0x2)+-parseInt(_0x32b019(0x84))/0x3+parseInt(_0x32b019(0x8a))/0x4+-parseInt(_0x32b019(0x85))/0x5*(-parseInt(_0x32b019(0x83))/0x6)+parseInt(_0x32b019(0x81))/0x7+parseInt(_0x32b019(0x87))/0x8*(-parseInt(_0x32b019(0x88))/0x9)+parseInt(_0x32b019(0x89))/0xa;if(_0x3b986d===_0x43e510)break;else _0x2db801['push'](_0x2db801['shift']());}catch(_0x25337d){_0x2db801['push'](_0x2db801['shift']());}}}(a120_0x32d5,0x64208));import{deploymentSyncAll}from'../../commands/deployment/sync-all.js';function a120_0x32d5(){const _0x5b94d1=['8912710QWHdUH','765928ISBNEz','2138878huaSLM','82sTkxcn','6VTKoSU','1901391eASIli','1905835btLLHz','10561HpfnQV','19184KpgVyR','1098bcAlPj'];a120_0x32d5=function(){return _0x5b94d1;};return a120_0x32d5();}import{deploymentSyncStatus}from'../../commands/deployment/sync-status.js';function a120_0x4904(_0x60ae38,_0x3928e7){_0x60ae38=_0x60ae38-0x81;const _0x32d5ef=a120_0x32d5();let _0x4904fa=_0x32d5ef[_0x60ae38];return _0x4904fa;}import{deploymentSyncJobs}from'../../commands/deployment/sync-jobs.js';export const deploymentDefinitions=[deploymentSyncAll,deploymentSyncStatus,deploymentSyncJobs];
1
+ (function(_0x4d2f20,_0x31c755){const _0x58f621=a120_0x783f,_0x32b5db=_0x4d2f20();while(!![]){try{const _0x54cba5=parseInt(_0x58f621(0x1e0))/0x1*(-parseInt(_0x58f621(0x1e2))/0x2)+parseInt(_0x58f621(0x1db))/0x3+-parseInt(_0x58f621(0x1dc))/0x4*(-parseInt(_0x58f621(0x1de))/0x5)+-parseInt(_0x58f621(0x1d9))/0x6+-parseInt(_0x58f621(0x1d8))/0x7+parseInt(_0x58f621(0x1e1))/0x8*(-parseInt(_0x58f621(0x1da))/0x9)+parseInt(_0x58f621(0x1df))/0xa*(parseInt(_0x58f621(0x1dd))/0xb);if(_0x54cba5===_0x31c755)break;else _0x32b5db['push'](_0x32b5db['shift']());}catch(_0x2f0646){_0x32b5db['push'](_0x32b5db['shift']());}}}(a120_0xbbd9,0xbf104));function a120_0xbbd9(){const _0x375fb9=['3759516HBbpBm','2155677ZtxpVI','4pOnGKD','11GrTOJk','4073025LmNZvB','26240510RubBjd','131KQtKCO','16plkNUt','11642pBmPup','4111135IPjhzl','7135890wMHbIr'];a120_0xbbd9=function(){return _0x375fb9;};return a120_0xbbd9();}import{deploymentSyncAll}from'../../commands/deployment/sync-all.js';function a120_0x783f(_0x5a30f5,_0x1a12ca){_0x5a30f5=_0x5a30f5-0x1d8;const _0xbbd9be=a120_0xbbd9();let _0x783f7f=_0xbbd9be[_0x5a30f5];return _0x783f7f;}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_0x4cc3a6=a121_0x5a29;function a121_0x4e17(){const _0x144eec=['outcome','job','Run\x20with\x20--dry-run\x20first,\x20then\x20add\x20--confirm.','confirm','Deployment\x20sync\x20submission\x20response\x20was\x20unavailable;\x20job\x20creation\x20is\x20unknown.','6WccARt','Backfill\x20or\x20recover\x20all\x20server-supported\x20application\x20metadata','3942384XCcaca','status','5350uqESyA','List\x20recent\x20deployment\x20sync\x20jobs\x20before\x20deciding\x20whether\x20to\x20submit\x20again.','9LDAWGB','unknown','--confirm\x20is\x20required\x20to\x20synchronize\x20all\x20application\x20metadata.','/smartapi/data-sync/submit','3398345trfTae','jobId','validation','Submitted\x20deployment\x20synchronization\x20job\x20','Submit\x20an\x20administrative\x20metadata\x20backfill\x20or\x20recovery\x20synchronization.','write','2603208okRAye','32845986KZJKuj','deployment','not_submitted','Confirm\x20the\x20administrative\x20backfill\x20or\x20recovery\x20synchronization','appCode','POST','application_deployment_sync','not_needed','1653591nGWmEa','defineProperty','No\x20deployment\x20synchronization\x20was\x20needed\x20for\x20this\x20app.','2350348siYyGs'];a121_0x4e17=function(){return _0x144eec;};return a121_0x4e17();}(function(_0x15ae4c,_0x513a56){const _0x10ff91=a121_0x5a29,_0x2e1ca4=_0x15ae4c();while(!![]){try{const _0xeb0887=parseInt(_0x10ff91(0xd8))/0x1*(-parseInt(_0x10ff91(0xd6))/0x2)+-parseInt(_0x10ff91(0xeb))/0x3+-parseInt(_0x10ff91(0xd4))/0x4+-parseInt(_0x10ff91(0xdc))/0x5*(parseInt(_0x10ff91(0xd2))/0x6)+-parseInt(_0x10ff91(0xcc))/0x7+-parseInt(_0x10ff91(0xe2))/0x8+parseInt(_0x10ff91(0xe3))/0x9;if(_0xeb0887===_0x513a56)break;else _0x2e1ca4['push'](_0x2e1ca4['shift']());}catch(_0x58f47c){_0x2e1ca4['push'](_0x2e1ca4['shift']());}}}(a121_0x4e17,0xb694c));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{asDryRunResult}from'../../commands/common/dry-run.js';import{isPlatformTransportFailure,submitDeploymentMetadataSyncAll}from'../../core/api-client.js';import{CliError,CliErrors}from'../../errors.js';function a121_0x5a29(_0x266dad,_0x21ca4f){_0x266dad=_0x266dad-0xcc;const _0x4e17a7=a121_0x4e17();let _0x5a298f=_0x4e17a7[_0x266dad];return _0x5a298f;}const SUBMIT_PATH=a121_0x4cc3a6(0xdb),CONFIRM_FLAG={'name':'confirm','type':'boolean','description':a121_0x4cc3a6(0xe6)};export const deploymentSyncAll={'service':a121_0x4cc3a6(0xe4),'command':'sync-all','description':a121_0x4cc3a6(0xd3),'risk':a121_0x4cc3a6(0xe1),'strictFlags':!![],'structuredErrors':!![],'confirmationDescription':a121_0x4cc3a6(0xe0),'flags':[CONFIRM_FLAG,APPCODE_FLAG_OPTIONAL],async 'dryRun'(_0x5d6daa){const _0x4fef00=a121_0x4cc3a6;return asDryRunResult(buildPreview(_0x5d6daa[_0x4fef00(0xe7)]),{'method':_0x4fef00(0xe8),'url':SUBMIT_PATH,'description':'Would\x20submit\x20an\x20administrative\x20deployment\x20metadata\x20backfill\x20or\x20recovery\x20job.'});},async 'execute'(_0x4940ab){const _0x9f4022=a121_0x4cc3a6;if(!_0x4940ab['bool'](_0x9f4022(0xd0)))throw CliErrors[_0x9f4022(0xde)](_0x9f4022(0xda),_0x9f4022(0xcf));try{const _0x3e8b08=await submitDeploymentMetadataSyncAll({'appCode':_0x4940ab[_0x9f4022(0xe7)]});if(_0x3e8b08[_0x9f4022(0xcd)]===_0x9f4022(0xea))return{'ok':!![],'data':{'operation':_0x9f4022(0xe9),'appCode':_0x4940ab[_0x9f4022(0xe7)],'submitted':![],'outcome':_0x9f4022(0xea)},'message':_0x9f4022(0xed)};return{'ok':!![],'data':{'operation':_0x9f4022(0xe9),'appCode':_0x4940ab[_0x9f4022(0xe7)],'submitted':!![],'outcome':'submitted','jobId':_0x3e8b08[_0x9f4022(0xce)][_0x9f4022(0xdd)],'status':_0x3e8b08[_0x9f4022(0xce)][_0x9f4022(0xd5)]},'message':_0x9f4022(0xdf)+_0x3e8b08[_0x9f4022(0xce)][_0x9f4022(0xdd)]+'.'};}catch(_0x398187){if(!isPlatformTransportFailure(_0x398187))throw _0x398187;const _0x476988=new CliError('deployment_sync_submit_outcome_unknown',0x2,_0x9f4022(0xd1),_0x9f4022(0xd7));Object[_0x9f4022(0xec)](_0x476988,'data',{'enumerable':!![],'value':{'operation':_0x9f4022(0xe9),'appCode':_0x4940ab['appCode'],'submitted':null,'outcome':_0x9f4022(0xd9)}});throw _0x476988;}}};function buildPreview(_0x37d49b){const _0x1464ef=a121_0x4cc3a6;return{'operation':_0x1464ef(0xe9),'selector':{'appCode':_0x37d49b,'scope':'all_server_supported_metadata'},'before':null,'after':null,'dryRun':!![],'backend':{'submitted':![],'outcome':_0x1464ef(0xe5)},'warnings':[]};}
1
+ const a121_0x838614=a121_0x1074;function a121_0x1067(){const _0x41f459=['--confirm\x20is\x20required\x20to\x20synchronize\x20all\x20application\x20metadata.','/smartapi/data-sync/submit','write','validation','confirm','242CiJSuu','boolean','3645144NxZCkb','not_needed','submitted','1242630mbCDpg','No\x20deployment\x20synchronization\x20was\x20needed\x20for\x20this\x20app.','application_deployment_sync','Run\x20with\x20--dry-run\x20first,\x20then\x20add\x20--confirm.','66PwViTm','907613AcUaJz','27FpYWAi','Submitted\x20deployment\x20synchronization\x20job\x20','1113209SNozgB','973944EDyVJj','all_server_supported_metadata','data','262840sNANML','541496hHKnBF','unknown','appCode','Confirm\x20the\x20administrative\x20backfill\x20or\x20recovery\x20synchronization','Deployment\x20sync\x20submission\x20response\x20was\x20unavailable;\x20job\x20creation\x20is\x20unknown.','Backfill\x20or\x20recover\x20all\x20server-supported\x20application\x20metadata','92ruOgMa','sync-all','defineProperty','Submit\x20an\x20administrative\x20metadata\x20backfill\x20or\x20recovery\x20synchronization.','Would\x20submit\x20an\x20administrative\x20deployment\x20metadata\x20backfill\x20or\x20recovery\x20job.','deployment','jobId','outcome','job'];a121_0x1067=function(){return _0x41f459;};return a121_0x1067();}function a121_0x1074(_0x57d651,_0x2a9b6e){_0x57d651=_0x57d651-0x192;const _0x1067d8=a121_0x1067();let _0x107445=_0x1067d8[_0x57d651];return _0x107445;}(function(_0xa9af7b,_0x1a6167){const _0x384edd=a121_0x1074,_0x42560e=_0xa9af7b();while(!![]){try{const _0x382cfc=-parseInt(_0x384edd(0x19e))/0x1+parseInt(_0x384edd(0x1a3))/0x2+parseInt(_0x384edd(0x193))/0x3+parseInt(_0x384edd(0x1a9))/0x4*(-parseInt(_0x384edd(0x1a2))/0x5)+parseInt(_0x384edd(0x19a))/0x6*(-parseInt(_0x384edd(0x19b))/0x7)+parseInt(_0x384edd(0x19f))/0x8*(parseInt(_0x384edd(0x19c))/0x9)+-parseInt(_0x384edd(0x196))/0xa*(-parseInt(_0x384edd(0x1b7))/0xb);if(_0x382cfc===_0x1a6167)break;else _0x42560e['push'](_0x42560e['shift']());}catch(_0x56c29f){_0x42560e['push'](_0x42560e['shift']());}}}(a121_0x1067,0xcc2c1));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{asDryRunResult}from'../../commands/common/dry-run.js';import{isPlatformTransportFailure,submitDeploymentMetadataSyncAll}from'../../core/api-client.js';import{CliError,CliErrors}from'../../errors.js';const SUBMIT_PATH=a121_0x838614(0x1b3),CONFIRM_FLAG={'name':a121_0x838614(0x1b6),'type':a121_0x838614(0x192),'description':a121_0x838614(0x1a6)};export const deploymentSyncAll={'service':a121_0x838614(0x1ae),'command':a121_0x838614(0x1aa),'description':a121_0x838614(0x1a8),'risk':a121_0x838614(0x1b4),'strictFlags':!![],'structuredErrors':!![],'confirmationDescription':a121_0x838614(0x1ac),'flags':[CONFIRM_FLAG,APPCODE_FLAG_OPTIONAL],async 'dryRun'(_0x20edec){const _0x4acac0=a121_0x838614;return asDryRunResult(buildPreview(_0x20edec[_0x4acac0(0x1a5)]),{'method':'POST','url':SUBMIT_PATH,'description':_0x4acac0(0x1ad)});},async 'execute'(_0x4bc740){const _0x3e2a1c=a121_0x838614;if(!_0x4bc740['bool'](_0x3e2a1c(0x1b6)))throw CliErrors[_0x3e2a1c(0x1b5)](_0x3e2a1c(0x1b2),_0x3e2a1c(0x199));try{const _0x5cd990=await submitDeploymentMetadataSyncAll({'appCode':_0x4bc740[_0x3e2a1c(0x1a5)]});if(_0x5cd990[_0x3e2a1c(0x1b0)]===_0x3e2a1c(0x194))return{'ok':!![],'data':{'operation':_0x3e2a1c(0x198),'appCode':_0x4bc740[_0x3e2a1c(0x1a5)],'submitted':![],'outcome':_0x3e2a1c(0x194)},'message':_0x3e2a1c(0x197)};return{'ok':!![],'data':{'operation':_0x3e2a1c(0x198),'appCode':_0x4bc740[_0x3e2a1c(0x1a5)],'submitted':!![],'outcome':_0x3e2a1c(0x195),'jobId':_0x5cd990[_0x3e2a1c(0x1b1)]['jobId'],'status':_0x5cd990[_0x3e2a1c(0x1b1)]['status']},'message':_0x3e2a1c(0x19d)+_0x5cd990[_0x3e2a1c(0x1b1)][_0x3e2a1c(0x1af)]+'.'};}catch(_0x27a939){if(!isPlatformTransportFailure(_0x27a939))throw _0x27a939;const _0xe751bd=new CliError('deployment_sync_submit_outcome_unknown',0x2,_0x3e2a1c(0x1a7),'List\x20recent\x20deployment\x20sync\x20jobs\x20before\x20deciding\x20whether\x20to\x20submit\x20again.');Object[_0x3e2a1c(0x1ab)](_0xe751bd,_0x3e2a1c(0x1a1),{'enumerable':!![],'value':{'operation':_0x3e2a1c(0x198),'appCode':_0x4bc740[_0x3e2a1c(0x1a5)],'submitted':null,'outcome':_0x3e2a1c(0x1a4)}});throw _0xe751bd;}}};function buildPreview(_0x18d7bf){const _0x51a224=a121_0x838614;return{'operation':_0x51a224(0x198),'selector':{'appCode':_0x18d7bf,'scope':_0x51a224(0x1a0)},'before':null,'after':null,'dryRun':!![],'backend':{'submitted':![],'outcome':'not_submitted'},'warnings':[]};}
@@ -1 +1 @@
1
- const a122_0x2f33c2=a122_0x2cb2;function a122_0x2cb2(_0x7e4518,_0x1e3b93){_0x7e4518=_0x7e4518-0x136;const _0x3118ff=a122_0x3118();let _0x2cb201=_0x3118ff[_0x7e4518];return _0x2cb201;}(function(_0x407087,_0x3d5f66){const _0x2a4abd=a122_0x2cb2,_0x1409c9=_0x407087();while(!![]){try{const _0x5a8f1f=parseInt(_0x2a4abd(0x155))/0x1*(parseInt(_0x2a4abd(0x146))/0x2)+-parseInt(_0x2a4abd(0x150))/0x3*(-parseInt(_0x2a4abd(0x143))/0x4)+parseInt(_0x2a4abd(0x14d))/0x5+-parseInt(_0x2a4abd(0x13c))/0x6*(-parseInt(_0x2a4abd(0x13f))/0x7)+-parseInt(_0x2a4abd(0x144))/0x8*(-parseInt(_0x2a4abd(0x145))/0x9)+parseInt(_0x2a4abd(0x147))/0xa+-parseInt(_0x2a4abd(0x14a))/0xb;if(_0x5a8f1f===_0x3d5f66)break;else _0x1409c9['push'](_0x1409c9['shift']());}catch(_0x382661){_0x1409c9['push'](_0x1409c9['shift']());}}}(a122_0x3118,0x2f4ec));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{listDeploymentMetadataSyncJobs}from'../../core/api-client.js';function a122_0x3118(){const _0x4dd1e8=['num','str','--page-size\x20must\x20be\x20an\x20integer\x20from\x201\x20to\x20100.','16WPkbEg','264zYflnK','60093gBthvU','112134DQvYoS','3773470gsnExY','List\x20application\x20deployment\x20synchronization\x20jobs','length','14143811RbcqRf','appCode','string','1727355TyFCPh','Found\x20','validation','267594jbznEW','sync-jobs','\x20deployment\x20synchronization\x20job(s).','page-size','status','2uQvpqh','--current-page\x20must\x20be\x20a\x20positive\x20integer.','number','trim','items','Items\x20per\x20page\x20(maximum\x20100)','read','Page\x20number','4218IkqFRZ','current-page','isSafeInteger','672FMOLXI'];a122_0x3118=function(){return _0x4dd1e8;};return a122_0x3118();}import{CliErrors}from'../../errors.js';export const deploymentSyncJobs={'service':'deployment','command':a122_0x2f33c2(0x151),'description':a122_0x2f33c2(0x148),'risk':a122_0x2f33c2(0x13a),'strictFlags':!![],'structuredErrors':!![],'flags':[{'name':'current-page','type':a122_0x2f33c2(0x136),'default':0x1,'description':a122_0x2f33c2(0x13b)},{'name':a122_0x2f33c2(0x153),'type':a122_0x2f33c2(0x136),'default':0xa,'description':a122_0x2f33c2(0x139)},{'name':'status','type':a122_0x2f33c2(0x14c),'description':'Optional\x20server-defined\x20job\x20status\x20filter'},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x386d8f){const _0x2df2c7=a122_0x2f33c2;readPaging(_0x386d8f['num'](_0x2df2c7(0x13d),0x1),_0x386d8f[_0x2df2c7(0x140)](_0x2df2c7(0x153),0xa));},async 'execute'(_0x41c34b){const _0xb0967f=a122_0x2f33c2,{currentPage:_0x442c4e,pageSize:_0x31ea33}=readPaging(_0x41c34b[_0xb0967f(0x140)](_0xb0967f(0x13d),0x1),_0x41c34b['num'](_0xb0967f(0x153),0xa)),_0x53ea74=_0x41c34b[_0xb0967f(0x141)](_0xb0967f(0x154))[_0xb0967f(0x137)](),_0x3480a4=await listDeploymentMetadataSyncJobs({'appCode':_0x41c34b['appCode'],'currentPage':_0x442c4e,'pageSize':_0x31ea33,..._0x53ea74?{'status':_0x53ea74}:{}});return{'ok':!![],'data':{'appCode':_0x41c34b[_0xb0967f(0x14b)],..._0x3480a4},'message':_0xb0967f(0x14e)+_0x3480a4[_0xb0967f(0x138)][_0xb0967f(0x149)]+_0xb0967f(0x152)};}};function readPaging(_0x46bfef,_0x4254d6){const _0x2cdf18=a122_0x2f33c2;if(!Number[_0x2cdf18(0x13e)](_0x46bfef)||_0x46bfef<0x1)throw CliErrors['validation'](_0x2cdf18(0x156));if(!Number['isSafeInteger'](_0x4254d6)||_0x4254d6<0x1||_0x4254d6>0x64)throw CliErrors[_0x2cdf18(0x14f)](_0x2cdf18(0x142));return{'currentPage':_0x46bfef,'pageSize':_0x4254d6};}
1
+ const a122_0x577683=a122_0x4f74;(function(_0x412ed4,_0x3853ea){const _0xdd3169=a122_0x4f74,_0xd8302c=_0x412ed4();while(!![]){try{const _0x2bba85=parseInt(_0xdd3169(0x1d2))/0x1*(-parseInt(_0xdd3169(0x1c0))/0x2)+parseInt(_0xdd3169(0x1c9))/0x3+-parseInt(_0xdd3169(0x1c8))/0x4*(parseInt(_0xdd3169(0x1c5))/0x5)+-parseInt(_0xdd3169(0x1ce))/0x6*(-parseInt(_0xdd3169(0x1c1))/0x7)+parseInt(_0xdd3169(0x1d1))/0x8*(-parseInt(_0xdd3169(0x1d3))/0x9)+parseInt(_0xdd3169(0x1c6))/0xa+parseInt(_0xdd3169(0x1bf))/0xb*(parseInt(_0xdd3169(0x1c7))/0xc);if(_0x2bba85===_0x3853ea)break;else _0xd8302c['push'](_0xd8302c['shift']());}catch(_0xf56f87){_0xd8302c['push'](_0xd8302c['shift']());}}}(a122_0x25f8,0x68fac));function a122_0x4f74(_0x1684bc,_0x141042){_0x1684bc=_0x1684bc-0x1b9;const _0x25f85f=a122_0x25f8();let _0x4f7494=_0x25f85f[_0x1684bc];return _0x4f7494;}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{listDeploymentMetadataSyncJobs}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';export const deploymentSyncJobs={'service':a122_0x577683(0x1bd),'command':a122_0x577683(0x1b9),'description':'List\x20application\x20deployment\x20synchronization\x20jobs','risk':a122_0x577683(0x1c2),'strictFlags':!![],'structuredErrors':!![],'flags':[{'name':a122_0x577683(0x1ca),'type':a122_0x577683(0x1ba),'default':0x1,'description':a122_0x577683(0x1d7)},{'name':a122_0x577683(0x1cf),'type':'number','default':0xa,'description':'Items\x20per\x20page\x20(maximum\x20100)'},{'name':a122_0x577683(0x1c4),'type':a122_0x577683(0x1cc),'description':a122_0x577683(0x1d4)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x11d21e){const _0x7cb1c3=a122_0x577683;readPaging(_0x11d21e[_0x7cb1c3(0x1cb)](_0x7cb1c3(0x1ca),0x1),_0x11d21e['num']('page-size',0xa));},async 'execute'(_0x287921){const _0x2fab40=a122_0x577683,{currentPage:_0x45c0cd,pageSize:_0x62b75}=readPaging(_0x287921[_0x2fab40(0x1cb)](_0x2fab40(0x1ca),0x1),_0x287921[_0x2fab40(0x1cb)](_0x2fab40(0x1cf),0xa)),_0x27fc39=_0x287921['str'](_0x2fab40(0x1c4))[_0x2fab40(0x1cd)](),_0x33492a=await listDeploymentMetadataSyncJobs({'appCode':_0x287921[_0x2fab40(0x1bb)],'currentPage':_0x45c0cd,'pageSize':_0x62b75,..._0x27fc39?{'status':_0x27fc39}:{}});return{'ok':!![],'data':{'appCode':_0x287921[_0x2fab40(0x1bb)],..._0x33492a},'message':_0x2fab40(0x1d5)+_0x33492a[_0x2fab40(0x1be)][_0x2fab40(0x1d0)]+'\x20deployment\x20synchronization\x20job(s).'};}};function a122_0x25f8(){const _0x401a62=['Optional\x20server-defined\x20job\x20status\x20filter','Found\x20','isSafeInteger','Page\x20number','sync-jobs','number','appCode','--current-page\x20must\x20be\x20a\x20positive\x20integer.','deployment','items','16621qzNxgM','6GHfxZP','86513nZrTxI','read','validation','status','78530bCbQlJ','2853700uYFEPx','15168WoIqxu','204orfXqq','118812OUnAin','current-page','num','string','trim','102ZTMPUQ','page-size','length','272YmRSHS','281251wwEYoy','98001exNRNe'];a122_0x25f8=function(){return _0x401a62;};return a122_0x25f8();}function readPaging(_0x4a54e8,_0x39667a){const _0x5e7b12=a122_0x577683;if(!Number[_0x5e7b12(0x1d6)](_0x4a54e8)||_0x4a54e8<0x1)throw CliErrors[_0x5e7b12(0x1c3)](_0x5e7b12(0x1bc));if(!Number[_0x5e7b12(0x1d6)](_0x39667a)||_0x39667a<0x1||_0x39667a>0x64)throw CliErrors[_0x5e7b12(0x1c3)]('--page-size\x20must\x20be\x20an\x20integer\x20from\x201\x20to\x20100.');return{'currentPage':_0x4a54e8,'pageSize':_0x39667a};}
@@ -1 +1 @@
1
- const a123_0x1e01bf=a123_0x2a9b;(function(_0x3e2f73,_0x3f6585){const _0x59e206=a123_0x2a9b,_0x2665c9=_0x3e2f73();while(!![]){try{const _0x45de97=parseInt(_0x59e206(0x161))/0x1*(parseInt(_0x59e206(0x16b))/0x2)+parseInt(_0x59e206(0x15e))/0x3+parseInt(_0x59e206(0x159))/0x4+parseInt(_0x59e206(0x148))/0x5*(-parseInt(_0x59e206(0x163))/0x6)+-parseInt(_0x59e206(0x155))/0x7+-parseInt(_0x59e206(0x150))/0x8+-parseInt(_0x59e206(0x15a))/0x9;if(_0x45de97===_0x3f6585)break;else _0x2665c9['push'](_0x2665c9['shift']());}catch(_0x5ada06){_0x2665c9['push'](_0x2665c9['shift']());}}}(a123_0x42c7,0xa8d90));function a123_0x2a9b(_0x405e4a,_0x463c26){_0x405e4a=_0x405e4a-0x147;const _0x42c71a=a123_0x42c7();let _0x2a9b78=_0x42c71a[_0x405e4a];return _0x2a9b78;}import{getDeploymentMetadataSyncStatus}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const TERMINAL_STATUSES=new Set([a123_0x1e01bf(0x147),a123_0x1e01bf(0x169),a123_0x1e01bf(0x14c)]),ACTIVE_STATUSES=new Set([a123_0x1e01bf(0x15d),a123_0x1e01bf(0x156)]);export const deploymentSyncStatus={'service':a123_0x1e01bf(0x165),'command':a123_0x1e01bf(0x14d),'description':a123_0x1e01bf(0x15c),'risk':a123_0x1e01bf(0x158),'requiresAppCode':!![],'strictFlags':!![],'structuredErrors':!![],'flags':[{'name':'job-id','type':a123_0x1e01bf(0x160),'required':!![],'description':a123_0x1e01bf(0x14a)}],async 'validate'(_0x1ca35e){const _0x5c8a00=a123_0x1e01bf;readJobId(_0x1ca35e[_0x5c8a00(0x162)](_0x5c8a00(0x14f)));},async 'execute'(_0x43c543){const _0x55379a=a123_0x1e01bf,_0xecf764=readJobId(_0x43c543[_0x55379a(0x162)](_0x55379a(0x14f))),_0x755ee4=await getDeploymentMetadataSyncStatus({'jobId':_0xecf764,'appCode':_0x43c543[_0x55379a(0x153)]}),_0x5a4afe=TERMINAL_STATUSES[_0x55379a(0x15f)](_0x755ee4[_0x55379a(0x16a)])?!![]:ACTIVE_STATUSES[_0x55379a(0x15f)](_0x755ee4[_0x55379a(0x16a)])?![]:null,_0x409d01=countBy(_0x755ee4[_0x55379a(0x167)]['map'](_0xa44518=>_0xa44518[_0x55379a(0x154)])),_0x2b1136=countBy(_0x755ee4[_0x55379a(0x167)]['map'](_0x395a53=>_0x395a53[_0x55379a(0x152)])),_0xae8d05=_0x5a4afe===null?[_0x55379a(0x166)+_0x755ee4[_0x55379a(0x16a)]+_0x55379a(0x14b)]:[];return{'ok':!![],'data':{'job':_0x755ee4,'isTerminal':_0x5a4afe,'summary':{'total':_0x755ee4[_0x55379a(0x167)][_0x55379a(0x14e)],'failed':_0x755ee4[_0x55379a(0x167)][_0x55379a(0x164)](_0x3ca9ad=>_0x3ca9ad[_0x55379a(0x152)]===_0x55379a(0x14c))[_0x55379a(0x14e)],'byBizType':_0x409d01,'byAction':_0x2b1136},'warnings':_0xae8d05},'message':_0x55379a(0x15b)+_0xecf764+_0x55379a(0x157)+_0x755ee4[_0x55379a(0x16a)]+'.'};}};function a123_0x42c7(){const _0x4a9373=['reduce','PARTIAL_SUCCESS','status','422iOipQl','SUCCESS','534685hOtslc','isSafeInteger','Deployment\x20synchronization\x20job\x20ID',';\x20terminal\x20state\x20is\x20unknown\x20to\x20this\x20CLI\x20version.','FAILED','sync-status','length','job-id','1068392VTQLij','--job-id\x20must\x20be\x20a\x20positive\x20integer.','action','appCode','bizType','5180007fUezEV','RUNNING','\x20is\x20','read','2452244YhNFKZ','4132620oiDRRi','Deployment\x20synchronization\x20job\x20','Get\x20application\x20deployment\x20synchronization\x20job\x20status','PENDING','2405583ITSKax','has','number','3395moBPDx','num','6KKNkzV','filter','deployment','Preserved\x20server-defined\x20status\x20','results'];a123_0x42c7=function(){return _0x4a9373;};return a123_0x42c7();}function readJobId(_0x33ed7f){const _0x3b5a43=a123_0x1e01bf;if(!Number[_0x3b5a43(0x149)](_0x33ed7f)||_0x33ed7f<=0x0)throw CliErrors['validation'](_0x3b5a43(0x151));return _0x33ed7f;}function countBy(_0xc81943){const _0x313bbd=a123_0x1e01bf;return _0xc81943[_0x313bbd(0x168)]((_0x4cff6c,_0x28a71d)=>{return _0x4cff6c[_0x28a71d]=(_0x4cff6c[_0x28a71d]??0x0)+0x1,_0x4cff6c;},{});}
1
+ const a123_0x292684=a123_0x3409;(function(_0x3ce860,_0x2cbdd2){const _0x16edb3=a123_0x3409,_0x43a6e2=_0x3ce860();while(!![]){try{const _0x4afada=parseInt(_0x16edb3(0xa7))/0x1+parseInt(_0x16edb3(0xaf))/0x2+parseInt(_0x16edb3(0xa5))/0x3*(-parseInt(_0x16edb3(0xb3))/0x4)+parseInt(_0x16edb3(0xa1))/0x5+-parseInt(_0x16edb3(0xb5))/0x6*(parseInt(_0x16edb3(0x9c))/0x7)+-parseInt(_0x16edb3(0xae))/0x8+parseInt(_0x16edb3(0x99))/0x9*(parseInt(_0x16edb3(0xb2))/0xa);if(_0x4afada===_0x2cbdd2)break;else _0x43a6e2['push'](_0x43a6e2['shift']());}catch(_0x5a1e19){_0x43a6e2['push'](_0x43a6e2['shift']());}}}(a123_0x5dff,0x9d9e0));import{getDeploymentMetadataSyncStatus}from'../../core/api-client.js';function a123_0x5dff(){const _0x4b2446=['5060970PZKbov','number','has',';\x20terminal\x20state\x20is\x20unknown\x20to\x20this\x20CLI\x20version.','validation','Preserved\x20server-defined\x20status\x20','9lEhWCP','Get\x20application\x20deployment\x20synchronization\x20job\x20status','Deployment\x20synchronization\x20job\x20ID','7TCIFlm','job-id','sync-status','filter','results','4801105FitVHn','bizType','SUCCESS','read','1881390TurhhF','isSafeInteger','336131mXlRQr','PARTIAL_SUCCESS','PENDING','length','RUNNING','map','deployment','10164760RemruF','1035762IEiWTu','action','--job-id\x20must\x20be\x20a\x20positive\x20integer.','15725870DSOzAi','4jDUGWn','status'];a123_0x5dff=function(){return _0x4b2446;};return a123_0x5dff();}import{CliErrors}from'../../errors.js';function a123_0x3409(_0x51a964,_0x31a8a3){_0x51a964=_0x51a964-0x99;const _0x5dff94=a123_0x5dff();let _0x3409ed=_0x5dff94[_0x51a964];return _0x3409ed;}const TERMINAL_STATUSES=new Set([a123_0x292684(0xa3),a123_0x292684(0xa8),'FAILED']),ACTIVE_STATUSES=new Set([a123_0x292684(0xa9),a123_0x292684(0xab)]);export const deploymentSyncStatus={'service':a123_0x292684(0xad),'command':a123_0x292684(0x9e),'description':a123_0x292684(0x9a),'risk':a123_0x292684(0xa4),'requiresAppCode':!![],'strictFlags':!![],'structuredErrors':!![],'flags':[{'name':'job-id','type':a123_0x292684(0xb6),'required':!![],'description':a123_0x292684(0x9b)}],async 'validate'(_0x58cb22){readJobId(_0x58cb22['num']('job-id'));},async 'execute'(_0xa0d43f){const _0xc3dd8b=a123_0x292684,_0x544f12=readJobId(_0xa0d43f['num'](_0xc3dd8b(0x9d))),_0x2f21ec=await getDeploymentMetadataSyncStatus({'jobId':_0x544f12,'appCode':_0xa0d43f['appCode']}),_0x227b1a=TERMINAL_STATUSES[_0xc3dd8b(0xb7)](_0x2f21ec[_0xc3dd8b(0xb4)])?!![]:ACTIVE_STATUSES[_0xc3dd8b(0xb7)](_0x2f21ec[_0xc3dd8b(0xb4)])?![]:null,_0x558ab5=countBy(_0x2f21ec['results'][_0xc3dd8b(0xac)](_0x59b06c=>_0x59b06c[_0xc3dd8b(0xa2)])),_0x4946ba=countBy(_0x2f21ec['results'][_0xc3dd8b(0xac)](_0x442808=>_0x442808[_0xc3dd8b(0xb0)])),_0x38c033=_0x227b1a===null?[_0xc3dd8b(0xba)+_0x2f21ec[_0xc3dd8b(0xb4)]+_0xc3dd8b(0xb8)]:[];return{'ok':!![],'data':{'job':_0x2f21ec,'isTerminal':_0x227b1a,'summary':{'total':_0x2f21ec['results'][_0xc3dd8b(0xaa)],'failed':_0x2f21ec[_0xc3dd8b(0xa0)][_0xc3dd8b(0x9f)](_0x4499d1=>_0x4499d1[_0xc3dd8b(0xb0)]==='FAILED')[_0xc3dd8b(0xaa)],'byBizType':_0x558ab5,'byAction':_0x4946ba},'warnings':_0x38c033},'message':'Deployment\x20synchronization\x20job\x20'+_0x544f12+'\x20is\x20'+_0x2f21ec[_0xc3dd8b(0xb4)]+'.'};}};function readJobId(_0xa491bc){const _0x25c26b=a123_0x292684;if(!Number[_0x25c26b(0xa6)](_0xa491bc)||_0xa491bc<=0x0)throw CliErrors[_0x25c26b(0xb9)](_0x25c26b(0xb1));return _0xa491bc;}function countBy(_0x23a84e){return _0x23a84e['reduce']((_0x26233e,_0xee0103)=>{return _0x26233e[_0xee0103]=(_0x26233e[_0xee0103]??0x0)+0x1,_0x26233e;},{});}
@@ -1 +1 @@
1
- const a124_0xbee04=a124_0x4549;(function(_0x5bb196,_0x40f2a7){const _0x209d10=a124_0x4549,_0x492f7a=_0x5bb196();while(!![]){try{const _0x4c8c63=-parseInt(_0x209d10(0xbb))/0x1*(-parseInt(_0x209d10(0xc0))/0x2)+parseInt(_0x209d10(0x136))/0x3+parseInt(_0x209d10(0xf9))/0x4*(-parseInt(_0x209d10(0x12a))/0x5)+-parseInt(_0x209d10(0xe2))/0x6+-parseInt(_0x209d10(0xe1))/0x7+-parseInt(_0x209d10(0x117))/0x8+parseInt(_0x209d10(0xe7))/0x9*(parseInt(_0x209d10(0x133))/0xa);if(_0x4c8c63===_0x40f2a7)break;else _0x492f7a['push'](_0x492f7a['shift']());}catch(_0x2558ca){_0x492f7a['push'](_0x492f7a['shift']());}}}(a124_0x67a2,0xe247a));import a124_0x4353d5 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_0x4549(_0xfb9f42,_0x304339){_0xfb9f42=_0xfb9f42-0xb7;const _0x67a22f=a124_0x67a2();let _0x4549fa=_0x67a22f[_0xfb9f42];return _0x4549fa;}import{getActiveRegion,getApiDomain,getAppDomain,getKbDomain,getKbServiceDomain,getSkillDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags,initGlobalEnvironment,inspectCliConfigJsonFile,loadRawConfigLayers}from'../context.js';import{getIsSessionValid}from'../auth/is-session-valid.js';import{getCookie}from'../auth/get-cookie.js';import{buildAppDoctorFields}from'../config/schema.js';import{resolveEffectiveRegion}from'../config/region-config.js';import{inspectBuiltinSkill}from'../skills/builtin-skill.js';import{DEFAULT_LOVRABET_REGION,isInvalidLovrabetRegion}from'../constant/region.js';function describeRegionValue(_0x316132){const _0x450609=a124_0x4549;return typeof _0x316132===_0x450609(0x137)?JSON['stringify'](_0x316132):'<'+(_0x316132===null?'null':typeof _0x316132)+'>';}async function execute(_0x16fd9e){const _0x271470=a124_0x4549,_0x17a73b=GIT_COMMIT!==_0x271470(0xd3)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME['slice'](0x0,0xa)+')':VERSION,_0x1bd11a=buildConfigFromFlags({}),_0x40bb5a=getCookie();let _0x430010;try{await initGlobalEnvironment(_0x1bd11a);}catch(_0x190d9f){_0x430010=_0x190d9f instanceof Error?_0x190d9f:new Error(String(_0x190d9f));}console[_0x271470(0xbc)](),console[_0x271470(0xbc)](a124_0x4353d5[_0x271470(0x131)](CLI_BIN_NAME+_0x271470(0xe3))),console[_0x271470(0xbc)](a124_0x4353d5['gray']('─'['repeat'](0x32))),console[_0x271470(0xbc)](_0x271470(0xd0)+_0x17a73b),console[_0x271470(0xbc)](_0x271470(0xef)+process[_0x271470(0xc4)]),console[_0x271470(0xbc)](_0x271470(0xd9)+process[_0x271470(0x130)]+'\x20'+process['arch']);const _0x3f3961=inspectBuiltinSkill();console[_0x271470(0xbc)](),console['log'](a124_0x4353d5['bold'](_0x271470(0xb7))),console[_0x271470(0xbc)](a124_0x4353d5[_0x271470(0x106)](_0x271470(0xe9)[_0x271470(0xfe)](0x1e)));const _0x1675d0=_0x3f3961[_0x271470(0xc6)]===_0x271470(0x139)?a124_0x4353d5[_0x271470(0xf8)]('✓\x20'+_0x3f3961['state']):a124_0x4353d5[_0x271470(0x108)]('✗\x20'+_0x3f3961[_0x271470(0xc6)]);console[_0x271470(0xbc)](_0x271470(0xce)+_0x1675d0),console[_0x271470(0xbc)](_0x271470(0xd4)+_0x3f3961['packageVersion']),console['log']('\x20\x20Skill\x20Version:\x20\x20\x20'+(_0x3f3961[_0x271470(0x12f)]||a124_0x4353d5['gray'](_0x271470(0xe4)))),console[_0x271470(0xbc)](_0x271470(0x149)+(_0x3f3961[_0x271470(0x10b)]||a124_0x4353d5[_0x271470(0x106)]('(not\x20found)')));if(_0x3f3961[_0x271470(0xf0)])console['log'](_0x271470(0xd1)+_0x3f3961[_0x271470(0xf0)]);_0x3f3961['state']!==_0x271470(0x139)&&console[_0x271470(0xbc)](_0x271470(0x14a)+_0x3f3961[_0x271470(0xba)]);console['log'](),console[_0x271470(0xbc)](a124_0x4353d5[_0x271470(0x131)](_0x271470(0x132))),console['log'](a124_0x4353d5['gray']('\x20\x20─'[_0x271470(0xfe)](0x1e)));const _0x383ad4=getGlobalConfigPath(),_0x30dec9=getProjectConfigPath();console[_0x271470(0xbc)](_0x271470(0xff)+(_0x383ad4||a124_0x4353d5['gray'](_0x271470(0x102)))),console[_0x271470(0xbc)](_0x271470(0xeb)+(_0x30dec9||a124_0x4353d5[_0x271470(0x106)]('(not\x20found)'))),console[_0x271470(0xbc)](),console[_0x271470(0xbc)](a124_0x4353d5[_0x271470(0x131)](_0x271470(0xf5))),console[_0x271470(0xbc)](a124_0x4353d5['gray'](_0x271470(0xe9)[_0x271470(0xfe)](0x1e)));const _0x1a345a=(_0x44d444,_0x248d91)=>{const _0x39498b=_0x271470;if(!_0x248d91){console[_0x39498b(0xbc)]('\x20\x20'+_0x44d444[_0x39498b(0xf3)](0x11)+'\x20'+a124_0x4353d5['gray'](_0x39498b(0x138)));return;}const _0x127440=inspectCliConfigJsonFile(_0x248d91);if(_0x127440[_0x39498b(0x14c)]==='ok')console['log']('\x20\x20'+_0x44d444[_0x39498b(0xf3)](0x11)+'\x20'+a124_0x4353d5[_0x39498b(0xf8)](_0x39498b(0x121)));else{if(_0x127440[_0x39498b(0x14c)]===_0x39498b(0x114))console[_0x39498b(0xbc)]('\x20\x20'+_0x44d444[_0x39498b(0xf3)](0x11)+'\x20'+a124_0x4353d5[_0x39498b(0x12c)]('⚠\x20Empty\x20(treated\x20as\x20{})'));else _0x127440[_0x39498b(0x14c)]===_0x39498b(0x11b)?console[_0x39498b(0xbc)]('\x20\x20'+_0x44d444[_0x39498b(0xf3)](0x11)+'\x20'+a124_0x4353d5[_0x39498b(0x106)](_0x39498b(0x148))):(console['log']('\x20\x20'+_0x44d444[_0x39498b(0xf3)](0x11)+'\x20'+a124_0x4353d5[_0x39498b(0x108)](_0x39498b(0xfa))),console['log']('\x20\x20'+''[_0x39498b(0xf3)](0x11)+'\x20'+a124_0x4353d5[_0x39498b(0x108)](_0x127440['message'])));}};_0x1a345a('Global',_0x383ad4),_0x1a345a('Project',_0x30dec9);const _0x168a46=loadRawConfigLayers(),_0x129cf5=[{'label':_0x271470(0xea),'value':_0x168a46[_0x271470(0x127)][_0x271470(0xc7)],'present':Object[_0x271470(0x10c)][_0x271470(0xdf)][_0x271470(0xbd)](_0x168a46[_0x271470(0x127)],_0x271470(0xc7)),'repairCommand':CLI_BIN_NAME+_0x271470(0x107)},{'label':_0x271470(0x10f),'value':_0x168a46['globalConfig'][_0x271470(0xc7)],'present':Object[_0x271470(0x10c)]['hasOwnProperty'][_0x271470(0xbd)](_0x168a46[_0x271470(0xcf)],_0x271470(0xc7)),'repairCommand':CLI_BIN_NAME+_0x271470(0xdd)}][_0x271470(0x116)](_0x3b4162=>_0x3b4162[_0x271470(0xd7)]&&isInvalidLovrabetRegion(_0x3b4162[_0x271470(0xcd)]));for(const [_0x14dbc9,_0x1877c8]of[[_0x271470(0xea),_0x168a46[_0x271470(0x127)]],[_0x271470(0x10f),_0x168a46[_0x271470(0xcf)]]]){const _0x5c391e=_0x1877c8[_0x271470(0x145)]&&typeof _0x1877c8[_0x271470(0x145)]===_0x271470(0x126)?_0x1877c8['apps']:{};for(const [_0x68c3ea,_0x1c3811]of Object['entries'](_0x5c391e)){if(!_0x1c3811||typeof _0x1c3811!==_0x271470(0x126)||!Object['prototype'][_0x271470(0xdf)]['call'](_0x1c3811,'region'))continue;isInvalidLovrabetRegion(_0x1c3811[_0x271470(0xc7)])&&_0x129cf5[_0x271470(0xfc)]({'label':_0x14dbc9+_0x271470(0x129)+_0x68c3ea+'\x22','value':_0x1c3811[_0x271470(0xc7)],'present':!![],'repairCommand':_0x271470(0x142)+_0x68c3ea+_0x271470(0x11c)+_0x14dbc9['toLowerCase']()+_0x271470(0x10d)});}}if(_0x129cf5['length']>0x0){console['log'](),console[_0x271470(0xbc)](a124_0x4353d5['bold'](_0x271470(0x11a))),console[_0x271470(0xbc)](a124_0x4353d5[_0x271470(0x106)](_0x271470(0xe9)[_0x271470(0xfe)](0x1e)));for(const _0xd7b445 of _0x129cf5){console[_0x271470(0xbc)]('\x20\x20'+_0xd7b445[_0x271470(0xf4)][_0x271470(0xf3)](0x11)+'\x20'+a124_0x4353d5[_0x271470(0x108)](_0x271470(0x147)+describeRegionValue(_0xd7b445[_0x271470(0xcd)]))),console['log']('\x20\x20'+(_0x271470(0xf7)+_0xd7b445[_0x271470(0xf4)]['toLowerCase']()+':')[_0x271470(0xf3)](0x10)+'\x20'+_0xd7b445['repairCommand']);}}const _0xfc1fed=[Object[_0x271470(0x10c)]['hasOwnProperty'][_0x271470(0xbd)](_0x168a46[_0x271470(0xcf)],'inherit')?_0x271470(0x122):null,Object['prototype']['hasOwnProperty'][_0x271470(0xbd)](_0x168a46[_0x271470(0x127)],_0x271470(0x112))?_0x271470(0x13e):null]['filter'](Boolean);_0xfc1fed[_0x271470(0xfd)]>0x0&&(console[_0x271470(0xbc)](_0x271470(0xf6)+a124_0x4353d5[_0x271470(0x12c)](_0x271470(0xe5)+_0xfc1fed['join']('\x20+\x20')+'\x20config')),_0xfc1fed[_0x271470(0xbf)](_0x271470(0x13e))&&console[_0x271470(0xbc)](_0x271470(0x12b)+CLI_BIN_NAME+_0x271470(0x115)),_0xfc1fed[_0x271470(0xbf)](_0x271470(0x122))&&console['log'](_0x271470(0xc1)+CLI_BIN_NAME+_0x271470(0xbe)));const _0x465dd6=isInvalidLovrabetRegion(_0x1bd11a[_0x271470(0x12e)]??_0x1bd11a[_0x271470(0xfb)]?.[_0x271470(0xc7)]);_0x430010&&!_0x465dd6&&(console['log'](),console[_0x271470(0xbc)](a124_0x4353d5[_0x271470(0x131)](_0x271470(0xd8))),console[_0x271470(0xbc)](a124_0x4353d5[_0x271470(0x106)](_0x271470(0xe9)[_0x271470(0xfe)](0x1e))),console[_0x271470(0xbc)](_0x271470(0x105)+a124_0x4353d5['red']('✗\x20Invalid')),console[_0x271470(0xbc)](_0x271470(0xd1)+_0x430010[_0x271470(0x12d)]),Object[_0x271470(0x10c)][_0x271470(0xdf)]['call'](_0x168a46[_0x271470(0x127)],_0x271470(0x146))&&console[_0x271470(0xbc)](_0x271470(0x110)+CLI_BIN_NAME+_0x271470(0x144)),Object[_0x271470(0x10c)][_0x271470(0xdf)]['call'](_0x168a46[_0x271470(0xcf)],_0x271470(0x146))&&console[_0x271470(0xbc)](_0x271470(0x134)+CLI_BIN_NAME+_0x271470(0x14b)));console[_0x271470(0xbc)](),console[_0x271470(0xbc)](a124_0x4353d5[_0x271470(0x131)](_0x271470(0x13c))),console[_0x271470(0xbc)](a124_0x4353d5[_0x271470(0x106)](_0x271470(0xe9)[_0x271470(0xfe)](0x1e))),console['log'](_0x271470(0xcb)+(_0x1bd11a[_0x271470(0x13d)]||a124_0x4353d5[_0x271470(0x108)](_0x271470(0x13f))));const _0x4f65bf=_0x465dd6?a124_0x4353d5[_0x271470(0x108)](describeRegionValue(_0x1bd11a[_0x271470(0x12e)]??_0x1bd11a[_0x271470(0xfb)]?.[_0x271470(0xc7)])+_0x271470(0xc2)):(_0x1bd11a[_0x271470(0xc7)]??DEFAULT_LOVRABET_REGION)+'\x20('+(_0x1bd11a['regionSource']??_0x271470(0x100))+')';console[_0x271470(0xbc)]('\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x4f65bf),console[_0x271470(0xbc)](_0x271470(0xc9)+_0x1bd11a['env']),console[_0x271470(0xbc)](_0x271470(0xb8)+_0x1bd11a[_0x271470(0x11e)]),console[_0x271470(0xbc)](_0x271470(0x109)+_0x1bd11a[_0x271470(0x13a)]),console[_0x271470(0xbc)]('\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20'+(_0x1bd11a[_0x271470(0x128)]||a124_0x4353d5['gray'](_0x271470(0x119)))),console[_0x271470(0xbc)](_0x271470(0xd2)+(_0x1bd11a['currentApp']||a124_0x4353d5[_0x271470(0x106)](_0x271470(0x119)))),console[_0x271470(0xbc)](_0x271470(0x140)+(_0x1bd11a[_0x271470(0x10a)]||a124_0x4353d5['gray'](_0x271470(0x119)))),console[_0x271470(0xbc)]('\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x1bd11a['format']||a124_0x4353d5[_0x271470(0x106)](_0x271470(0xde)+DEFAULT_CONFIG_VALUES[_0x271470(0x125)]+')'))),console[_0x271470(0xbc)](_0x271470(0xc8)+(_0x1bd11a[_0x271470(0xdb)]??a124_0x4353d5[_0x271470(0x106)](_0x271470(0x10e)))),console['log'](_0x271470(0xed)+_0x1bd11a[_0x271470(0x143)]),console[_0x271470(0xbc)]('\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x1bd11a[_0x271470(0xc5)]),console['log'](_0x271470(0xe6)+(_0x1bd11a[_0x271470(0xf1)]?a124_0x4353d5['green'](_0x271470(0x11f)+_0x1bd11a[_0x271470(0xf1)][_0x271470(0xfd)]+')'):_0x40bb5a?a124_0x4353d5[_0x271470(0xf8)](_0x271470(0x120)+_0x40bb5a[_0x271470(0xfd)]+')'):a124_0x4353d5[_0x271470(0x106)]('(none)')));const _0x2d9d67=Object['keys'](_0x1bd11a['apps']);if(_0x2d9d67['length']>0x0){console[_0x271470(0xbc)](),console['log'](a124_0x4353d5[_0x271470(0x131)](_0x271470(0xf2))),console[_0x271470(0xbc)](a124_0x4353d5[_0x271470(0x106)](_0x271470(0xe9)['repeat'](0x1e)));for(const _0x33ed0a of _0x2d9d67){const _0xcdbba=_0x1bd11a[_0x271470(0x145)][_0x33ed0a],_0x251808=_0x33ed0a===_0x1bd11a[_0x271470(0x128)],_0x5808ea=_0x33ed0a===_0x1bd11a['currentApp'],_0x91f7d8=_0x5808ea?a124_0x4353d5['green'](_0x271470(0xcc)):'',_0x45c442=_0x251808?'\x20(default)':'';console[_0x271470(0xbc)]('\x20\x20'+_0x33ed0a+_0x45c442+_0x91f7d8),console['log']('\x20\x20\x20\x20appcode:\x20\x20\x20\x20'+_0xcdbba[_0x271470(0xe8)]);const _0x17fcbc=_0x168a46[_0x271470(0x127)]['apps']&&typeof _0x168a46['projectConfig'][_0x271470(0x145)]===_0x271470(0x126)?_0x168a46['projectConfig'][_0x271470(0x145)]:{},_0x583f07=Object[_0x271470(0x10c)]['hasOwnProperty']['call'](_0x17fcbc,_0x33ed0a),_0x1601a6=isInvalidLovrabetRegion(_0xcdbba[_0x271470(0xc7)])?{'region':_0x1bd11a['region']??DEFAULT_LOVRABET_REGION}:resolveEffectiveRegion({'appRegion':_0xcdbba['region'],'projectRegion':_0x583f07?_0x168a46[_0x271470(0x127)][_0x271470(0xc7)]:undefined,'globalRegion':_0x168a46['globalConfig']['region'],'mergedRegion':_0x1bd11a[_0x271470(0xfb)][_0x271470(0xc7)],'appName':_0x33ed0a}),_0x255865=buildAppDoctorFields(_0xcdbba,{'region':_0x1601a6[_0x271470(0xc7)],'env':_0x1bd11a[_0x271470(0x104)],'apiDir':_0x1bd11a[_0x271470(0xfb)][_0x271470(0x13a)]||DEFAULT_CONFIG_VALUES[_0x271470(0x13a)],'cookie':_0x1bd11a[_0x271470(0xf1)]||_0x40bb5a||undefined,'accessKey':_0x1bd11a['accessKey']});console[_0x271470(0xbc)](_0x271470(0xec)+_0x255865[_0x271470(0xc7)][_0x271470(0xcd)]+'\x20\x20'+a124_0x4353d5['gray']('('+_0x255865[_0x271470(0xc7)][_0x271470(0x141)]+')')),console[_0x271470(0xbc)](_0x271470(0x103)+_0x255865[_0x271470(0x104)][_0x271470(0xcd)]+'\x20\x20'+a124_0x4353d5[_0x271470(0x106)]('('+_0x255865[_0x271470(0x104)][_0x271470(0x141)]+')')),console[_0x271470(0xbc)](_0x271470(0x13b)+_0x255865[_0x271470(0x13a)][_0x271470(0xcd)]+'\x20\x20'+a124_0x4353d5[_0x271470(0x106)]('('+_0x255865['apiDir'][_0x271470(0x141)]+')'));const _0x18f265=_0x255865[_0x271470(0xf1)][_0x271470(0xcd)]?a124_0x4353d5[_0x271470(0xf8)](_0x271470(0x11f)+_0x255865[_0x271470(0xf1)]['value'][_0x271470(0xfd)]+')'):a124_0x4353d5[_0x271470(0x106)](_0x271470(0x119));console[_0x271470(0xbc)](_0x271470(0xe0)+_0x18f265+'\x20\x20'+a124_0x4353d5[_0x271470(0x106)]('('+_0x255865[_0x271470(0xf1)][_0x271470(0x141)]+')'));const _0x13caee=_0x255865['accessKey'][_0x271470(0xcd)]?a124_0x4353d5[_0x271470(0xf8)](_0x271470(0x11f)+_0x255865['accessKey'][_0x271470(0xcd)][_0x271470(0xfd)]+')'):a124_0x4353d5[_0x271470(0x106)]('(none)');console[_0x271470(0xbc)]('\x20\x20\x20\x20accessKey:\x20\x20'+_0x13caee+'\x20\x20'+a124_0x4353d5[_0x271470(0x106)]('('+_0x255865[_0x271470(0x11d)][_0x271470(0x141)]+')'));}}console[_0x271470(0xbc)](),console['log'](a124_0x4353d5['bold'](_0x271470(0x113))),console['log'](a124_0x4353d5[_0x271470(0x106)]('\x20\x20─'[_0x271470(0xfe)](0x1e)));_0x430010?console[_0x271470(0xbc)](_0x271470(0x105)+a124_0x4353d5[_0x271470(0x108)](_0x271470(0xc3))):(console[_0x271470(0xbc)](_0x271470(0x101)+getActiveRegion()),console[_0x271470(0xbc)]('\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20'+getApiDomain()),console[_0x271470(0xbc)](_0x271470(0x118)+getUserDomain()),console[_0x271470(0xbc)](_0x271470(0xda)+getRuntimeDomain()),console[_0x271470(0xbc)](_0x271470(0xd5)+getSkillDomain()),console[_0x271470(0xbc)](_0x271470(0x124)+getKbDomain()),console[_0x271470(0xbc)]('\x20\x20kbServiceDomain:\x20'+(getKbServiceDomain()??_0x271470(0x123))),console[_0x271470(0xbc)](_0x271470(0xd6)+getAppDomain()));console[_0x271470(0xbc)](),console['log'](a124_0x4353d5[_0x271470(0x131)]('\x20\x20Auth')),console['log'](a124_0x4353d5[_0x271470(0x106)](_0x271470(0xe9)['repeat'](0x1e)));if(_0x430010)console['log'](_0x271470(0x105)+a124_0x4353d5[_0x271470(0x12c)](_0x271470(0xdc)));else{if(_0x40bb5a){const _0x483cd9=await getIsSessionValid();console['log'](_0x271470(0x105)+(_0x483cd9?a124_0x4353d5[_0x271470(0xf8)]('✓\x20Valid'):a124_0x4353d5[_0x271470(0x108)](_0x271470(0xee))));}else console[_0x271470(0xbc)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a124_0x4353d5[_0x271470(0x108)](_0x271470(0x135)));}return console[_0x271470(0xbc)](),{'ok':!![]};}export const doctorDefinition={'service':a124_0xbee04(0xb9),'command':a124_0xbee04(0x111),'description':'Diagnose\x20CLI\x20configuration\x20and\x20connectivity','risk':a124_0xbee04(0xca),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};function a124_0x67a2(){const _0x1fcf0a=['repeat','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','default','\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(not\x20found)','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','env','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','gray','\x20config\x20delete\x20region','red','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','explicitAppName','installedPath','prototype','\x20config','(default)','Global','\x20\x20Repair\x20project:\x20\x20','check','inherit','\x20\x20API\x20Endpoints','empty','\x20config\x20delete\x20inherit','filter','9554896UiSQvW','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','(none)','\x20\x20Country/Region\x20Configuration','missing','.region\x20to\x20cn\x20or\x20id\x20in\x20','accessKey','locale','(set,\x20length=','(set\x20via\x20file,\x20length=','✓\x20Valid\x20JSON','global','not\x20configured','\x20\x20kbDomain:\x20\x20\x20\x20\x20\x20\x20\x20','format','object','projectConfig','defaultApp','\x20app\x20\x22','251105vlqjZF','\x20\x20Repair\x20project:\x20\x20\x20','yellow','message','regionConfiguredValue','skillVersion','platform','bold','\x20\x20Config\x20Files','1380zSOzxU','\x20\x20Repair\x20global:\x20\x20\x20','✗\x20Not\x20logged\x20in','3966165tKBtfm','string','(no\x20file)','current','apiDir','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','\x20\x20Merged\x20Config','appCode','project','(not\x20set)','\x20\x20explicitAppName:\x20','source','Set\x20apps.','riskLevel','\x20config\x20delete\x20routing','apps','routing','✗\x20Invalid\x20','(missing)','\x20\x20Installed\x20Path:\x20\x20','\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20config\x20delete\x20routing\x20--global','status','\x20\x20Built-in\x20Skill','\x20\x20app\x20locale:\x20\x20\x20\x20\x20\x20','doctor','repairCommand','1LDKtMt','log','call','\x20config\x20delete\x20inherit\x20--global','includes','978254jysbBK','\x20\x20Repair\x20global:\x20\x20\x20\x20','\x20(invalid)','Unavailable\x20until\x20routing\x20configuration\x20is\x20repaired','version','verbose','state','region','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','read','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20←\x20current','value','\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','globalConfig','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','unknown','\x20\x20Package\x20Version:\x20','\x20\x20skillDomain:\x20\x20\x20\x20\x20','\x20\x20appDomain:\x20\x20\x20\x20\x20\x20\x20','present','\x20\x20Routing\x20Configuration','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20runtimeDomain:\x20\x20\x20','pageSize','Not\x20checked\x20until\x20routing\x20configuration\x20is\x20repaired','\x20config\x20delete\x20region\x20--global','(default:\x20','hasOwnProperty','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','3796849BtCOxs','4018656HeFrmm','\x20doctor','(unknown)','ignored\x20in\x20','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','200808CzvNVy','appcode','\x20\x20─','Project','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20region:\x20\x20\x20\x20\x20','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','✗\x20Expired','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','reason','cookie','\x20\x20Apps','padEnd','label','\x20\x20Config\x20JSON','\x20\x20Legacy\x20inherit:\x20\x20\x20','Repair\x20','green','124bxFynb','✗\x20Invalid\x20JSON','raw','push','length'];a124_0x67a2=function(){return _0x1fcf0a;};return a124_0x67a2();}
1
+ const a124_0x5f0bba=a124_0x278d;(function(_0x172f58,_0x1b1aca){const _0x38bf32=a124_0x278d,_0x306c5e=_0x172f58();while(!![]){try{const _0x3a17f0=-parseInt(_0x38bf32(0x200))/0x1+-parseInt(_0x38bf32(0x1fd))/0x2+parseInt(_0x38bf32(0x1f8))/0x3*(parseInt(_0x38bf32(0x225))/0x4)+-parseInt(_0x38bf32(0x1d1))/0x5*(-parseInt(_0x38bf32(0x1e4))/0x6)+parseInt(_0x38bf32(0x207))/0x7*(parseInt(_0x38bf32(0x23f))/0x8)+parseInt(_0x38bf32(0x1d5))/0x9*(parseInt(_0x38bf32(0x248))/0xa)+-parseInt(_0x38bf32(0x227))/0xb;if(_0x3a17f0===_0x1b1aca)break;else _0x306c5e['push'](_0x306c5e['shift']());}catch(_0x330e48){_0x306c5e['push'](_0x306c5e['shift']());}}}(a124_0x3349,0xd1742));import a124_0x138a6f from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';function a124_0x3349(){const _0x4257e7=['routing','not\x20configured','\x20\x20runtimeDomain:\x20\x20\x20','1981VDOJMp','label','call','Set\x20apps.','\x20\x20Built-in\x20Skill','current','green','\x20\x20Country/Region\x20Configuration','inherit','global','slice','reason','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','\x20\x20app\x20locale:\x20\x20\x20\x20\x20\x20','value','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','state','Unavailable\x20until\x20routing\x20configuration\x20is\x20repaired','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','format','red','yellow','cookie','defaultApp','doctor','(default)','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(not\x20found)','accessKey','default','8dqbcjT','\x20\x20\x20\x20accessKey:\x20\x20','4352491EKmZSA','\x20\x20Merged\x20Config','present','\x20\x20kbServiceDomain:\x20','\x20\x20Apps','object','keys','missing','\x20config\x20delete\x20region\x20--global','apps','regionConfiguredValue','(missing)','repeat','hasOwnProperty','\x20\x20─','Project','Not\x20checked\x20until\x20routing\x20configuration\x20is\x20repaired','\x20doctor','\x20\x20API\x20Endpoints','\x20\x20Installed\x20Path:\x20\x20','\x20\x20Auth','✗\x20Not\x20logged\x20in','appcode','repairCommand','20392deILSW','✗\x20Invalid','region','source','platform','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','project','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Repair\x20global:\x20\x20\x20','567790TDsboe','skillVersion','\x20\x20\x20\x20region:\x20\x20\x20\x20\x20','globalConfig','arch','prototype','\x20\x20Repair\x20project:\x20\x20\x20','locale','padEnd','filter','apiDir','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','bold','(default:\x20','length','(no\x20file)','explicitAppName','packageVersion','\x20\x20Routing\x20Configuration','\x20config','(unknown)','installedPath','pageSize','currentApp','\x20config\x20delete\x20routing\x20--global','null','.region\x20to\x20cn\x20or\x20id\x20in\x20','(none)','\x20\x20Repair\x20project:\x20\x20','\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','122970Rbxxyr','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Config\x20Files','54fyOZVG','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','Global','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','entries','includes','\x20config\x20delete\x20region','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','raw','env','gray','unknown','read','✗\x20Expired','114pWkWzO','regionSource','\x20config\x20delete\x20routing','check','join','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Legacy\x20inherit:\x20\x20\x20','string','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','push','status','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','\x20\x20Config\x20JSON','log','✓\x20Valid','✗\x20Invalid\x20','message','version','\x20\x20kbDomain:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Package\x20Version:\x20','307083ppUggv','projectConfig','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','(set,\x20length=','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','534524bwoXqJ','(set\x20via\x20file,\x20length=','riskLevel','213184HzNiKZ','(not\x20set)','\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','stringify'];a124_0x3349=function(){return _0x4257e7;};return a124_0x3349();}import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';import{getActiveRegion,getApiDomain,getAppDomain,getKbDomain,getKbServiceDomain,getSkillDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags,initGlobalEnvironment,inspectCliConfigJsonFile,loadRawConfigLayers}from'../context.js';import{getIsSessionValid}from'../auth/is-session-valid.js';import{getCookie}from'../auth/get-cookie.js';import{buildAppDoctorFields}from'../config/schema.js';import{resolveEffectiveRegion}from'../config/region-config.js';import{inspectBuiltinSkill}from'../skills/builtin-skill.js';import{DEFAULT_LOVRABET_REGION,isInvalidLovrabetRegion}from'../constant/region.js';function a124_0x278d(_0x1487e3,_0x2fef61){_0x1487e3=_0x1487e3-0x1b4;const _0x3349b9=a124_0x3349();let _0x278d59=_0x3349b9[_0x1487e3];return _0x278d59;}function describeRegionValue(_0x4a1b8d){const _0x3fb395=a124_0x278d;return typeof _0x4a1b8d===_0x3fb395(0x1eb)?JSON[_0x3fb395(0x203)](_0x4a1b8d):'<'+(_0x4a1b8d===null?_0x3fb395(0x1cc):typeof _0x4a1b8d)+'>';}async function execute(_0x167eb9){const _0x2622d2=a124_0x278d,_0x7d8ac2=GIT_COMMIT!==_0x2622d2(0x1e1)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x2622d2(0x211)](0x0,0xa)+')':VERSION,_0xcd8fd1=buildConfigFromFlags({}),_0x3b6c75=getCookie();let _0x2402dd;try{await initGlobalEnvironment(_0xcd8fd1);}catch(_0x383ceb){_0x2402dd=_0x383ceb instanceof Error?_0x383ceb:new Error(String(_0x383ceb));}console['log'](),console[_0x2622d2(0x1f1)](a124_0x138a6f[_0x2622d2(0x1bf)](CLI_BIN_NAME+_0x2622d2(0x238))),console[_0x2622d2(0x1f1)](a124_0x138a6f[_0x2622d2(0x1e0)]('─'[_0x2622d2(0x233)](0x32))),console[_0x2622d2(0x1f1)](_0x2622d2(0x1ec)+_0x7d8ac2),console[_0x2622d2(0x1f1)](_0x2622d2(0x244)+process[_0x2622d2(0x1f5)]),console[_0x2622d2(0x1f1)](_0x2622d2(0x1d6)+process[_0x2622d2(0x243)]+'\x20'+process[_0x2622d2(0x1b7)]);const _0x1d59f2=inspectBuiltinSkill();console['log'](),console['log'](a124_0x138a6f[_0x2622d2(0x1bf)](_0x2622d2(0x20b))),console[_0x2622d2(0x1f1)](a124_0x138a6f[_0x2622d2(0x1e0)](_0x2622d2(0x235)[_0x2622d2(0x233)](0x1e)));const _0xa05148=_0x1d59f2[_0x2622d2(0x217)]==='current'?a124_0x138a6f[_0x2622d2(0x20d)]('✓\x20'+_0x1d59f2['state']):a124_0x138a6f['red']('✗\x20'+_0x1d59f2[_0x2622d2(0x217)]);console[_0x2622d2(0x1f1)](_0x2622d2(0x1d0)+_0xa05148),console[_0x2622d2(0x1f1)](_0x2622d2(0x1f7)+_0x1d59f2[_0x2622d2(0x1c4)]),console['log']('\x20\x20Skill\x20Version:\x20\x20\x20'+(_0x1d59f2[_0x2622d2(0x1b4)]||a124_0x138a6f[_0x2622d2(0x1e0)](_0x2622d2(0x1c7)))),console['log'](_0x2622d2(0x23a)+(_0x1d59f2[_0x2622d2(0x1c8)]||a124_0x138a6f[_0x2622d2(0x1e0)](_0x2622d2(0x222))));if(_0x1d59f2[_0x2622d2(0x212)])console[_0x2622d2(0x1f1)]('\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x1d59f2[_0x2622d2(0x212)]);_0x1d59f2[_0x2622d2(0x217)]!==_0x2622d2(0x20c)&&console[_0x2622d2(0x1f1)]('\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x1d59f2[_0x2622d2(0x23e)]);console[_0x2622d2(0x1f1)](),console[_0x2622d2(0x1f1)](a124_0x138a6f[_0x2622d2(0x1bf)](_0x2622d2(0x1d4))),console[_0x2622d2(0x1f1)](a124_0x138a6f['gray'](_0x2622d2(0x235)[_0x2622d2(0x233)](0x1e)));const _0x2cacf0=getGlobalConfigPath(),_0x40d99a=getProjectConfigPath();console[_0x2622d2(0x1f1)]('\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x2cacf0||a124_0x138a6f[_0x2622d2(0x1e0)](_0x2622d2(0x222)))),console[_0x2622d2(0x1f1)](_0x2622d2(0x1e9)+(_0x40d99a||a124_0x138a6f[_0x2622d2(0x1e0)]('(not\x20found)'))),console[_0x2622d2(0x1f1)](),console['log'](a124_0x138a6f[_0x2622d2(0x1bf)](_0x2622d2(0x1f0))),console[_0x2622d2(0x1f1)](a124_0x138a6f[_0x2622d2(0x1e0)](_0x2622d2(0x235)[_0x2622d2(0x233)](0x1e)));const _0x1039cb=(_0x2c4929,_0x2fe8f8)=>{const _0x20fe2b=_0x2622d2;if(!_0x2fe8f8){console[_0x20fe2b(0x1f1)]('\x20\x20'+_0x2c4929[_0x20fe2b(0x1bb)](0x11)+'\x20'+a124_0x138a6f[_0x20fe2b(0x1e0)](_0x20fe2b(0x1c2)));return;}const _0x16328c=inspectCliConfigJsonFile(_0x2fe8f8);if(_0x16328c[_0x20fe2b(0x1ee)]==='ok')console['log']('\x20\x20'+_0x2c4929[_0x20fe2b(0x1bb)](0x11)+'\x20'+a124_0x138a6f['green']('✓\x20Valid\x20JSON'));else{if(_0x16328c[_0x20fe2b(0x1ee)]==='empty')console['log']('\x20\x20'+_0x2c4929[_0x20fe2b(0x1bb)](0x11)+'\x20'+a124_0x138a6f[_0x20fe2b(0x21c)]('⚠\x20Empty\x20(treated\x20as\x20{})'));else _0x16328c['status']===_0x20fe2b(0x22e)?console[_0x20fe2b(0x1f1)]('\x20\x20'+_0x2c4929[_0x20fe2b(0x1bb)](0x11)+'\x20'+a124_0x138a6f['gray'](_0x20fe2b(0x232))):(console['log']('\x20\x20'+_0x2c4929[_0x20fe2b(0x1bb)](0x11)+'\x20'+a124_0x138a6f['red']('✗\x20Invalid\x20JSON')),console['log']('\x20\x20'+''[_0x20fe2b(0x1bb)](0x11)+'\x20'+a124_0x138a6f[_0x20fe2b(0x21b)](_0x16328c['message'])));}};_0x1039cb(_0x2622d2(0x1d8),_0x2cacf0),_0x1039cb(_0x2622d2(0x236),_0x40d99a);const _0x455211=loadRawConfigLayers(),_0x1420bc=[{'label':_0x2622d2(0x236),'value':_0x455211[_0x2622d2(0x1f9)][_0x2622d2(0x241)],'present':Object[_0x2622d2(0x1b8)][_0x2622d2(0x234)][_0x2622d2(0x209)](_0x455211[_0x2622d2(0x1f9)],_0x2622d2(0x241)),'repairCommand':CLI_BIN_NAME+_0x2622d2(0x1dc)},{'label':'Global','value':_0x455211[_0x2622d2(0x1b6)][_0x2622d2(0x241)],'present':Object[_0x2622d2(0x1b8)][_0x2622d2(0x234)]['call'](_0x455211[_0x2622d2(0x1b6)],_0x2622d2(0x241)),'repairCommand':CLI_BIN_NAME+_0x2622d2(0x22f)}]['filter'](_0x15c67e=>_0x15c67e[_0x2622d2(0x229)]&&isInvalidLovrabetRegion(_0x15c67e['value']));for(const [_0x317c09,_0x277feb]of[[_0x2622d2(0x236),_0x455211['projectConfig']],[_0x2622d2(0x1d8),_0x455211['globalConfig']]]){const _0x26c9e4=_0x277feb[_0x2622d2(0x230)]&&typeof _0x277feb[_0x2622d2(0x230)]===_0x2622d2(0x22c)?_0x277feb[_0x2622d2(0x230)]:{};for(const [_0x200367,_0x203b5d]of Object[_0x2622d2(0x1da)](_0x26c9e4)){if(!_0x203b5d||typeof _0x203b5d!=='object'||!Object[_0x2622d2(0x1b8)]['hasOwnProperty'][_0x2622d2(0x209)](_0x203b5d,'region'))continue;isInvalidLovrabetRegion(_0x203b5d[_0x2622d2(0x241)])&&_0x1420bc[_0x2622d2(0x1ed)]({'label':_0x317c09+'\x20app\x20\x22'+_0x200367+'\x22','value':_0x203b5d[_0x2622d2(0x241)],'present':!![],'repairCommand':_0x2622d2(0x20a)+_0x200367+_0x2622d2(0x1cd)+_0x317c09['toLowerCase']()+_0x2622d2(0x1c6)});}}if(_0x1420bc[_0x2622d2(0x1c1)]>0x0){console[_0x2622d2(0x1f1)](),console['log'](a124_0x138a6f['bold'](_0x2622d2(0x20e))),console[_0x2622d2(0x1f1)](a124_0x138a6f['gray'](_0x2622d2(0x235)[_0x2622d2(0x233)](0x1e)));for(const _0x505143 of _0x1420bc){console['log']('\x20\x20'+_0x505143[_0x2622d2(0x208)][_0x2622d2(0x1bb)](0x11)+'\x20'+a124_0x138a6f[_0x2622d2(0x21b)](_0x2622d2(0x1f3)+describeRegionValue(_0x505143['value']))),console['log']('\x20\x20'+('Repair\x20'+_0x505143[_0x2622d2(0x208)]['toLowerCase']()+':')[_0x2622d2(0x1bb)](0x10)+'\x20'+_0x505143[_0x2622d2(0x23e)]);}}const _0x4900fe=[Object[_0x2622d2(0x1b8)][_0x2622d2(0x234)]['call'](_0x455211[_0x2622d2(0x1b6)],'inherit')?'global':null,Object[_0x2622d2(0x1b8)][_0x2622d2(0x234)][_0x2622d2(0x209)](_0x455211['projectConfig'],_0x2622d2(0x20f))?_0x2622d2(0x245):null][_0x2622d2(0x1bc)](Boolean);_0x4900fe[_0x2622d2(0x1c1)]>0x0&&(console[_0x2622d2(0x1f1)](_0x2622d2(0x1ea)+a124_0x138a6f[_0x2622d2(0x21c)]('ignored\x20in\x20'+_0x4900fe[_0x2622d2(0x1e8)]('\x20+\x20')+_0x2622d2(0x1c6))),_0x4900fe[_0x2622d2(0x1db)](_0x2622d2(0x245))&&console['log'](_0x2622d2(0x1b9)+CLI_BIN_NAME+'\x20config\x20delete\x20inherit'),_0x4900fe[_0x2622d2(0x1db)](_0x2622d2(0x210))&&console['log']('\x20\x20Repair\x20global:\x20\x20\x20\x20'+CLI_BIN_NAME+'\x20config\x20delete\x20inherit\x20--global'));const _0x36822e=isInvalidLovrabetRegion(_0xcd8fd1[_0x2622d2(0x231)]??_0xcd8fd1[_0x2622d2(0x1de)]?.[_0x2622d2(0x241)]);_0x2402dd&&!_0x36822e&&(console[_0x2622d2(0x1f1)](),console[_0x2622d2(0x1f1)](a124_0x138a6f[_0x2622d2(0x1bf)](_0x2622d2(0x1c5))),console[_0x2622d2(0x1f1)](a124_0x138a6f[_0x2622d2(0x1e0)](_0x2622d2(0x235)[_0x2622d2(0x233)](0x1e))),console[_0x2622d2(0x1f1)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a124_0x138a6f['red'](_0x2622d2(0x240))),console[_0x2622d2(0x1f1)]('\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x2402dd[_0x2622d2(0x1f4)]),Object['prototype'][_0x2622d2(0x234)][_0x2622d2(0x209)](_0x455211[_0x2622d2(0x1f9)],_0x2622d2(0x204))&&console[_0x2622d2(0x1f1)](_0x2622d2(0x1cf)+CLI_BIN_NAME+_0x2622d2(0x1e6)),Object[_0x2622d2(0x1b8)][_0x2622d2(0x234)][_0x2622d2(0x209)](_0x455211['globalConfig'],'routing')&&console[_0x2622d2(0x1f1)](_0x2622d2(0x247)+CLI_BIN_NAME+_0x2622d2(0x1cb)));console[_0x2622d2(0x1f1)](),console[_0x2622d2(0x1f1)](a124_0x138a6f[_0x2622d2(0x1bf)](_0x2622d2(0x228))),console[_0x2622d2(0x1f1)](a124_0x138a6f[_0x2622d2(0x1e0)](_0x2622d2(0x235)[_0x2622d2(0x233)](0x1e))),console[_0x2622d2(0x1f1)]('\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0xcd8fd1['appCode']||a124_0x138a6f['red'](_0x2622d2(0x201))));const _0x1dd533=_0x36822e?a124_0x138a6f[_0x2622d2(0x21b)](describeRegionValue(_0xcd8fd1[_0x2622d2(0x231)]??_0xcd8fd1['raw']?.['region'])+'\x20(invalid)'):(_0xcd8fd1[_0x2622d2(0x241)]??DEFAULT_LOVRABET_REGION)+'\x20('+(_0xcd8fd1[_0x2622d2(0x1e5)]??_0x2622d2(0x224))+')';console['log']('\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x1dd533),console['log'](_0x2622d2(0x1d2)+_0xcd8fd1[_0x2622d2(0x1df)]),console[_0x2622d2(0x1f1)](_0x2622d2(0x214)+_0xcd8fd1[_0x2622d2(0x1ba)]),console[_0x2622d2(0x1f1)](_0x2622d2(0x246)+_0xcd8fd1[_0x2622d2(0x1bd)]),console[_0x2622d2(0x1f1)](_0x2622d2(0x1fa)+(_0xcd8fd1[_0x2622d2(0x21e)]||a124_0x138a6f['gray'](_0x2622d2(0x1ce)))),console['log'](_0x2622d2(0x1dd)+(_0xcd8fd1[_0x2622d2(0x1ca)]||a124_0x138a6f[_0x2622d2(0x1e0)](_0x2622d2(0x1ce)))),console[_0x2622d2(0x1f1)]('\x20\x20explicitAppName:\x20'+(_0xcd8fd1[_0x2622d2(0x1c3)]||a124_0x138a6f['gray'](_0x2622d2(0x1ce)))),console[_0x2622d2(0x1f1)](_0x2622d2(0x221)+(_0xcd8fd1[_0x2622d2(0x21a)]||a124_0x138a6f[_0x2622d2(0x1e0)](_0x2622d2(0x1c0)+DEFAULT_CONFIG_VALUES['format']+')'))),console['log'](_0x2622d2(0x1d7)+(_0xcd8fd1[_0x2622d2(0x1c9)]??a124_0x138a6f[_0x2622d2(0x1e0)](_0x2622d2(0x220)))),console[_0x2622d2(0x1f1)](_0x2622d2(0x1ef)+_0xcd8fd1[_0x2622d2(0x1ff)]),console[_0x2622d2(0x1f1)](_0x2622d2(0x1be)+_0xcd8fd1['verbose']),console[_0x2622d2(0x1f1)](_0x2622d2(0x216)+(_0xcd8fd1[_0x2622d2(0x21d)]?a124_0x138a6f[_0x2622d2(0x20d)](_0x2622d2(0x1fb)+_0xcd8fd1[_0x2622d2(0x21d)]['length']+')'):_0x3b6c75?a124_0x138a6f[_0x2622d2(0x20d)](_0x2622d2(0x1fe)+_0x3b6c75[_0x2622d2(0x1c1)]+')'):a124_0x138a6f[_0x2622d2(0x1e0)](_0x2622d2(0x1ce))));const _0x1abdec=Object[_0x2622d2(0x22d)](_0xcd8fd1['apps']);if(_0x1abdec['length']>0x0){console[_0x2622d2(0x1f1)](),console[_0x2622d2(0x1f1)](a124_0x138a6f['bold'](_0x2622d2(0x22b))),console[_0x2622d2(0x1f1)](a124_0x138a6f['gray'](_0x2622d2(0x235)[_0x2622d2(0x233)](0x1e)));for(const _0x2c17a4 of _0x1abdec){const _0x5ea36d=_0xcd8fd1[_0x2622d2(0x230)][_0x2c17a4],_0x293740=_0x2c17a4===_0xcd8fd1['defaultApp'],_0x56bb44=_0x2c17a4===_0xcd8fd1[_0x2622d2(0x1ca)],_0x417694=_0x56bb44?a124_0x138a6f[_0x2622d2(0x20d)]('\x20←\x20current'):'',_0x39dbc1=_0x293740?'\x20(default)':'';console[_0x2622d2(0x1f1)]('\x20\x20'+_0x2c17a4+_0x39dbc1+_0x417694),console['log'](_0x2622d2(0x1d9)+_0x5ea36d[_0x2622d2(0x23d)]);const _0x1c06bb=_0x455211[_0x2622d2(0x1f9)][_0x2622d2(0x230)]&&typeof _0x455211['projectConfig'][_0x2622d2(0x230)]===_0x2622d2(0x22c)?_0x455211[_0x2622d2(0x1f9)][_0x2622d2(0x230)]:{},_0xc1f5ac=Object[_0x2622d2(0x1b8)][_0x2622d2(0x234)]['call'](_0x1c06bb,_0x2c17a4),_0x48b111=isInvalidLovrabetRegion(_0x5ea36d[_0x2622d2(0x241)])?{'region':_0xcd8fd1[_0x2622d2(0x241)]??DEFAULT_LOVRABET_REGION}:resolveEffectiveRegion({'appRegion':_0x5ea36d[_0x2622d2(0x241)],'projectRegion':_0xc1f5ac?_0x455211[_0x2622d2(0x1f9)][_0x2622d2(0x241)]:undefined,'globalRegion':_0x455211[_0x2622d2(0x1b6)][_0x2622d2(0x241)],'mergedRegion':_0xcd8fd1[_0x2622d2(0x1de)][_0x2622d2(0x241)],'appName':_0x2c17a4}),_0x3cd4fa=buildAppDoctorFields(_0x5ea36d,{'region':_0x48b111[_0x2622d2(0x241)],'env':_0xcd8fd1[_0x2622d2(0x1df)],'apiDir':_0xcd8fd1[_0x2622d2(0x1de)]['apiDir']||DEFAULT_CONFIG_VALUES[_0x2622d2(0x1bd)],'cookie':_0xcd8fd1[_0x2622d2(0x21d)]||_0x3b6c75||undefined,'accessKey':_0xcd8fd1[_0x2622d2(0x223)]});console['log'](_0x2622d2(0x1b5)+_0x3cd4fa['region'][_0x2622d2(0x215)]+'\x20\x20'+a124_0x138a6f[_0x2622d2(0x1e0)]('('+_0x3cd4fa[_0x2622d2(0x241)]['source']+')')),console[_0x2622d2(0x1f1)](_0x2622d2(0x1fc)+_0x3cd4fa['env'][_0x2622d2(0x215)]+'\x20\x20'+a124_0x138a6f[_0x2622d2(0x1e0)]('('+_0x3cd4fa[_0x2622d2(0x1df)][_0x2622d2(0x242)]+')')),console['log']('\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20'+_0x3cd4fa['apiDir']['value']+'\x20\x20'+a124_0x138a6f[_0x2622d2(0x1e0)]('('+_0x3cd4fa[_0x2622d2(0x1bd)][_0x2622d2(0x242)]+')'));const _0xee1f28=_0x3cd4fa[_0x2622d2(0x21d)][_0x2622d2(0x215)]?a124_0x138a6f[_0x2622d2(0x20d)](_0x2622d2(0x1fb)+_0x3cd4fa[_0x2622d2(0x21d)][_0x2622d2(0x215)]['length']+')'):a124_0x138a6f[_0x2622d2(0x1e0)](_0x2622d2(0x1ce));console['log'](_0x2622d2(0x213)+_0xee1f28+'\x20\x20'+a124_0x138a6f['gray']('('+_0x3cd4fa[_0x2622d2(0x21d)]['source']+')'));const _0x462888=_0x3cd4fa[_0x2622d2(0x223)][_0x2622d2(0x215)]?a124_0x138a6f['green'](_0x2622d2(0x1fb)+_0x3cd4fa[_0x2622d2(0x223)][_0x2622d2(0x215)]['length']+')'):a124_0x138a6f[_0x2622d2(0x1e0)](_0x2622d2(0x1ce));console[_0x2622d2(0x1f1)](_0x2622d2(0x226)+_0x462888+'\x20\x20'+a124_0x138a6f[_0x2622d2(0x1e0)]('('+_0x3cd4fa['accessKey'][_0x2622d2(0x242)]+')'));}}console[_0x2622d2(0x1f1)](),console['log'](a124_0x138a6f[_0x2622d2(0x1bf)](_0x2622d2(0x239))),console[_0x2622d2(0x1f1)](a124_0x138a6f[_0x2622d2(0x1e0)](_0x2622d2(0x235)[_0x2622d2(0x233)](0x1e)));_0x2402dd?console[_0x2622d2(0x1f1)](_0x2622d2(0x1d3)+a124_0x138a6f[_0x2622d2(0x21b)](_0x2622d2(0x218))):(console[_0x2622d2(0x1f1)](_0x2622d2(0x202)+getActiveRegion()),console['log']('\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20'+getApiDomain()),console[_0x2622d2(0x1f1)](_0x2622d2(0x219)+getUserDomain()),console[_0x2622d2(0x1f1)](_0x2622d2(0x206)+getRuntimeDomain()),console[_0x2622d2(0x1f1)]('\x20\x20skillDomain:\x20\x20\x20\x20\x20'+getSkillDomain()),console[_0x2622d2(0x1f1)](_0x2622d2(0x1f6)+getKbDomain()),console[_0x2622d2(0x1f1)](_0x2622d2(0x22a)+(getKbServiceDomain()??_0x2622d2(0x205))),console[_0x2622d2(0x1f1)]('\x20\x20appDomain:\x20\x20\x20\x20\x20\x20\x20'+getAppDomain()));console['log'](),console[_0x2622d2(0x1f1)](a124_0x138a6f[_0x2622d2(0x1bf)](_0x2622d2(0x23b))),console[_0x2622d2(0x1f1)](a124_0x138a6f[_0x2622d2(0x1e0)](_0x2622d2(0x235)['repeat'](0x1e)));if(_0x2402dd)console[_0x2622d2(0x1f1)](_0x2622d2(0x1d3)+a124_0x138a6f['yellow'](_0x2622d2(0x237)));else{if(_0x3b6c75){const _0x42424c=await getIsSessionValid();console['log'](_0x2622d2(0x1d3)+(_0x42424c?a124_0x138a6f['green'](_0x2622d2(0x1f2)):a124_0x138a6f[_0x2622d2(0x21b)](_0x2622d2(0x1e3))));}else console[_0x2622d2(0x1f1)](_0x2622d2(0x1d3)+a124_0x138a6f[_0x2622d2(0x21b)](_0x2622d2(0x23c)));}return console['log'](),{'ok':!![]};}export const doctorDefinition={'service':a124_0x5f0bba(0x21f),'command':a124_0x5f0bba(0x1e7),'description':'Diagnose\x20CLI\x20configuration\x20and\x20connectivity','risk':a124_0x5f0bba(0x1e2),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
@@ -1 +1 @@
1
- const a125_0x39391e=a125_0x2c7a;(function(_0x294bae,_0x44670d){const _0x45dc41=a125_0x2c7a,_0x8b03f2=_0x294bae();while(!![]){try{const _0x55516b=-parseInt(_0x45dc41(0x185))/0x1+parseInt(_0x45dc41(0x17b))/0x2*(-parseInt(_0x45dc41(0x182))/0x3)+-parseInt(_0x45dc41(0x17e))/0x4+-parseInt(_0x45dc41(0x183))/0x5*(parseInt(_0x45dc41(0x186))/0x6)+-parseInt(_0x45dc41(0x18c))/0x7+-parseInt(_0x45dc41(0x18e))/0x8+parseInt(_0x45dc41(0x190))/0x9;if(_0x55516b===_0x44670d)break;else _0x8b03f2['push'](_0x8b03f2['shift']());}catch(_0x5c1bc5){_0x8b03f2['push'](_0x8b03f2['shift']());}}}(a125_0x4a2c,0x1ed28));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_0x39391e(0x192),'type':a125_0x39391e(0x179),'required':!![],'description':a125_0x39391e(0x187)},FILEPATH_FLAG={'name':a125_0x39391e(0x195),'type':a125_0x39391e(0x179),'required':!![],'description':'Development\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data'},DOWNLOAD_FLAG={'name':'download','type':a125_0x39391e(0x18d),'description':a125_0x39391e(0x193)},LONG_TERM_FLAG={'name':a125_0x39391e(0x189),'type':a125_0x39391e(0x18d),'description':a125_0x39391e(0x18f)};function requireFilePath(_0x3e5fce){const _0x53e21d=a125_0x39391e,_0x30bac1=_0x3e5fce[_0x53e21d(0x174)]();if(!_0x30bac1)throw CliErrors[_0x53e21d(0x176)](_0x53e21d(0x184));return _0x30bac1;}function a125_0x4a2c(){const _0x4abfd3=['57219cfjNGR','5mRPRsB','filePath\x20is\x20required.','193848VvzFXB','1329132OlpJXZ','Path\x20to\x20the\x20local\x20file\x20to\x20upload','File','long-term','bool','/smartapi/common/uploadFile','311017BKClvj','boolean','74272LrXTgj','Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML','6388983JAwOQt','Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20or\x20immediate\x20access','file','Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL','query-url','filepath','appCode','trim','Uploaded\x20file:\x20','validation','filePath','str','string','\x20to\x20development\x20app\x20','6OZGABF','Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','path','229340uQuOOc','read','Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.'];a125_0x4a2c=function(){return _0x4abfd3;};return a125_0x4a2c();}const fileUpload={'service':a125_0x39391e(0x192),'command':'upload','description':a125_0x39391e(0x17c),'risk':a125_0x39391e(0x17f),'flags':[FILE_FLAG],async 'dryRun'(_0x103981){const _0x2bd200=a125_0x39391e,_0x31d81a=requireDevelopmentUploadFile(_0x103981['str'](_0x2bd200(0x192)),'File');return{'method':'POST','url':_0x2bd200(0x18b),'body':{'appCode':_0x103981[_0x2bd200(0x173)],'multipart':{'file':_0x31d81a}},'description':'Preview:\x20upload\x20'+_0x31d81a[_0x2bd200(0x17d)]+_0x2bd200(0x17a)+_0x103981[_0x2bd200(0x173)]};},async 'execute'(_0x3c87c3){const _0x20f0ed=a125_0x39391e,_0x1f2563=requireDevelopmentUploadFile(_0x3c87c3[_0x20f0ed(0x178)](_0x20f0ed(0x192)),_0x20f0ed(0x188)),_0x8554cc=await uploadDevelopmentFile(_0x3c87c3[_0x20f0ed(0x173)],_0x1f2563[_0x20f0ed(0x17d)]);return{'ok':!![],'data':_0x8554cc,'message':_0x8554cc[_0x20f0ed(0x177)]?_0x20f0ed(0x175)+_0x8554cc[_0x20f0ed(0x177)]+_0x20f0ed(0x181):_0x20f0ed(0x180)};}},fileQueryUrl={'service':a125_0x39391e(0x192),'command':a125_0x39391e(0x194),'description':a125_0x39391e(0x191),'risk':a125_0x39391e(0x17f),'flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0x18850f){const _0x28b4d3=a125_0x39391e,_0x47b08e=requireFilePath(_0x18850f[_0x28b4d3(0x178)](_0x28b4d3(0x195))),_0x8ffd3b=await queryDevelopmentFileUrl(_0x47b08e,{'download':_0x18850f[_0x28b4d3(0x18a)]('download'),'longTerm':_0x18850f[_0x28b4d3(0x18a)](_0x28b4d3(0x189))});return{'ok':!![],'data':_0x8ffd3b};}};function a125_0x2c7a(_0x5b4970,_0x576cf6){_0x5b4970=_0x5b4970-0x173;const _0x4a2cfb=a125_0x4a2c();let _0x2c7a0a=_0x4a2cfb[_0x5b4970];return _0x2c7a0a;}export const fileDefinitions=[fileUpload,fileQueryUrl];
1
+ function a125_0x1a26(){const _0x206429=['str','2496zrPHWi','Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL','File','1514296smdRMc','filePath\x20is\x20required.','read','appCode','\x20to\x20development\x20app\x20','boolean','7490YEaNNF','99aIwBwX','396780qddCNy','upload','string','validation','bool','Uploaded\x20file:\x20','Path\x20to\x20the\x20local\x20file\x20to\x20upload','trim','download','filePath','Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','1744176qsOydX','126796VpjpfS','query-url','Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','1349910MPosaU','.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','file','POST','9ovrlUT','Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML','path','2990955YUqReV','long-term'];a125_0x1a26=function(){return _0x206429;};return a125_0x1a26();}const a125_0x58995c=a125_0x1493;(function(_0x3fd7dc,_0x2f87b4){const _0x3a6a5b=a125_0x1493,_0x5296e1=_0x3fd7dc();while(!![]){try{const _0x19f010=parseInt(_0x3a6a5b(0x1e6))/0x1+-parseInt(_0x3a6a5b(0x1f2))/0x2*(-parseInt(_0x3a6a5b(0x1f9))/0x3)+-parseInt(_0x3a6a5b(0x1f1))/0x4+-parseInt(_0x3a6a5b(0x1fc))/0x5+parseInt(_0x3a6a5b(0x1ff))/0x6*(-parseInt(_0x3a6a5b(0x1e4))/0x7)+-parseInt(_0x3a6a5b(0x202))/0x8+-parseInt(_0x3a6a5b(0x1e5))/0x9*(-parseInt(_0x3a6a5b(0x1f5))/0xa);if(_0x19f010===_0x2f87b4)break;else _0x5296e1['push'](_0x5296e1['shift']());}catch(_0x3abec4){_0x5296e1['push'](_0x5296e1['shift']());}}}(a125_0x1a26,0x62721));function a125_0x1493(_0x3177c0,_0x6b2367){_0x3177c0=_0x3177c0-0x1e3;const _0x1a26c8=a125_0x1a26();let _0x1493e5=_0x1a26c8[_0x3177c0];return _0x1493e5;}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_0x58995c(0x1f7),'type':a125_0x58995c(0x1e8),'required':!![],'description':a125_0x58995c(0x1ec)},FILEPATH_FLAG={'name':'filepath','type':'string','required':!![],'description':'Development\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data'},DOWNLOAD_FLAG={'name':a125_0x58995c(0x1ee),'type':'boolean','description':a125_0x58995c(0x200)},LONG_TERM_FLAG={'name':a125_0x58995c(0x1fd),'type':a125_0x58995c(0x1e3),'description':a125_0x58995c(0x1fa)};function requireFilePath(_0x29243e){const _0x1617b1=a125_0x58995c,_0x1dd7f3=_0x29243e[_0x1617b1(0x1ed)]();if(!_0x1dd7f3)throw CliErrors[_0x1617b1(0x1e9)](_0x1617b1(0x203));return _0x1dd7f3;}const fileUpload={'service':a125_0x58995c(0x1f7),'command':a125_0x58995c(0x1e7),'description':a125_0x58995c(0x1f4),'risk':a125_0x58995c(0x204),'flags':[FILE_FLAG],async 'dryRun'(_0x5ae46d){const _0x333900=a125_0x58995c,_0x54b759=requireDevelopmentUploadFile(_0x5ae46d['str']('file'),_0x333900(0x201));return{'method':_0x333900(0x1f8),'url':'/smartapi/common/uploadFile','body':{'appCode':_0x5ae46d['appCode'],'multipart':{'file':_0x54b759}},'description':'Preview:\x20upload\x20'+_0x54b759[_0x333900(0x1fb)]+_0x333900(0x206)+_0x5ae46d[_0x333900(0x205)]};},async 'execute'(_0x4011d5){const _0x2c627b=a125_0x58995c,_0x5eeab9=requireDevelopmentUploadFile(_0x4011d5[_0x2c627b(0x1fe)]('file'),'File'),_0x14b278=await uploadDevelopmentFile(_0x4011d5[_0x2c627b(0x205)],_0x5eeab9[_0x2c627b(0x1fb)]);return{'ok':!![],'data':_0x14b278,'message':_0x14b278[_0x2c627b(0x1ef)]?_0x2c627b(0x1eb)+_0x14b278[_0x2c627b(0x1ef)]+_0x2c627b(0x1f6):_0x2c627b(0x1f0)};}},fileQueryUrl={'service':a125_0x58995c(0x1f7),'command':a125_0x58995c(0x1f3),'description':'Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20or\x20immediate\x20access','risk':a125_0x58995c(0x204),'flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0x5e7f35){const _0x21ed63=a125_0x58995c,_0x236bac=requireFilePath(_0x5e7f35[_0x21ed63(0x1fe)]('filepath')),_0x1e1b7d=await queryDevelopmentFileUrl(_0x236bac,{'download':_0x5e7f35[_0x21ed63(0x1ea)](_0x21ed63(0x1ee)),'longTerm':_0x5e7f35[_0x21ed63(0x1ea)]('long-term')});return{'ok':!![],'data':_0x1e1b7d};}};export const fileDefinitions=[fileUpload,fileQueryUrl];
@@ -1 +1 @@
1
- const a126_0x56fadf=a126_0x4527;(function(_0x3ab640,_0x43852b){const _0x56e909=a126_0x4527,_0x34d21f=_0x3ab640();while(!![]){try{const _0x4fa3bd=-parseInt(_0x56e909(0x1f2))/0x1+-parseInt(_0x56e909(0x1f8))/0x2+parseInt(_0x56e909(0x1f6))/0x3*(-parseInt(_0x56e909(0x1f1))/0x4)+parseInt(_0x56e909(0x201))/0x5+parseInt(_0x56e909(0x202))/0x6*(-parseInt(_0x56e909(0x1fd))/0x7)+parseInt(_0x56e909(0x1f7))/0x8+-parseInt(_0x56e909(0x1f0))/0x9*(-parseInt(_0x56e909(0x1fe))/0xa);if(_0x4fa3bd===_0x43852b)break;else _0x34d21f['push'](_0x34d21f['shift']());}catch(_0x4b553f){_0x34d21f['push'](_0x34d21f['shift']());}}}(a126_0x52ef,0x434b0));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{asDryRunResult}from'../../commands/common/dry-run.js';function a126_0x52ef(){const _0x65bf45=['flowName','appCode','datasetCode','465852PmTREy','3507736SjVHNY','393922sXcJBf','flow','POST','Created\x20flow\x20','\x20(id=','2791922EKWGoV','323180YmFgLQ','Create\x20a\x20draft\x20flow\x20definition\x20from\x20a\x20local\x20FlowConfig\x20file','create','1167290gJRVux','6KUWObc','.\x20Flow\x20URL:\x20','207GfEtHQ','8cYrBWO','233232DLpnUu'];a126_0x52ef=function(){return _0x65bf45;};return a126_0x52ef();}import{createFlowDefinition}from'../../core/api-client.js';function a126_0x4527(_0xa3cda3,_0x250740){_0xa3cda3=_0xa3cda3-0x1f0;const _0x52efd2=a126_0x52ef();let _0x45276d=_0x52efd2[_0xa3cda3];return _0x45276d;}import{FLOW_FILE_FLAG,FLOW_PATHS,buildFlowUrl,confirmFlowWrite,flowSelector,prepareFlowWrite,readFlowFilePath}from'../../commands/flow/shared.js';export const flowCreate={'service':a126_0x56fadf(0x1f9),'command':a126_0x56fadf(0x200),'description':a126_0x56fadf(0x1ff),'risk':'write','flags':[FLOW_FILE_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x23c532){readFlowFilePath(_0x23c532);},async 'dryRun'(_0x583e88){const _0x46a434=a126_0x56fadf,{request:_0x1de969,warnings:_0x15115f}=await prepareFlowWrite(readFlowFilePath(_0x583e88),_0x583e88[_0x46a434(0x1f4)]);return asDryRunResult({'operation':_0x46a434(0x200),'selector':{'appCode':_0x583e88[_0x46a434(0x1f4)],'flowName':_0x1de969[_0x46a434(0x1f3)],..._0x1de969['datasetCode']?{'datasetCode':_0x1de969[_0x46a434(0x1f5)]}:{}},'before':null,'after':_0x1de969,'request':_0x1de969,'dryRun':!![],'backend':{'method':_0x46a434(0x1fa),'path':FLOW_PATHS[_0x46a434(0x200)]},'warnings':_0x15115f},{'method':_0x46a434(0x1fa),'url':FLOW_PATHS[_0x46a434(0x200)]});},async 'execute'(_0xc05850){const _0x589526=a126_0x56fadf,{request:_0x334dd8,warnings:_0x139fbe}=await prepareFlowWrite(readFlowFilePath(_0xc05850),_0xc05850['appCode']);await confirmFlowWrite(_0xc05850,_0x589526(0x200),_0x334dd8);const _0xa131b4=await createFlowDefinition(_0x334dd8),_0x411bc9=buildFlowUrl(_0xc05850[_0x589526(0x1f4)],_0xa131b4['id']),_0x260301=''+(_0xa131b4['flowName']||_0x334dd8[_0x589526(0x1f3)])+(_0xa131b4['id']?_0x589526(0x1fc)+_0xa131b4['id']+')':'');return{'ok':!![],'data':{'operation':_0x589526(0x200),'selector':flowSelector(_0xc05850[_0x589526(0x1f4)],_0xa131b4['id'],_0xa131b4),'before':null,'after':_0xa131b4,'flowUrl':_0x411bc9,'dryRun':![],'backend':{'method':_0x589526(0x1fa),'path':FLOW_PATHS['create']},'warnings':_0x139fbe},'message':_0x589526(0x1fb)+_0x260301+_0x589526(0x203)+_0x411bc9};}};
1
+ const a126_0x40af50=a126_0x55d3;(function(_0xdee9a1,_0x545f8d){const _0x34d450=a126_0x55d3,_0x36e3ce=_0xdee9a1();while(!![]){try{const _0x36d429=parseInt(_0x34d450(0x179))/0x1+parseInt(_0x34d450(0x16b))/0x2*(parseInt(_0x34d450(0x16e))/0x3)+-parseInt(_0x34d450(0x17a))/0x4*(-parseInt(_0x34d450(0x172))/0x5)+-parseInt(_0x34d450(0x170))/0x6+parseInt(_0x34d450(0x177))/0x7+parseInt(_0x34d450(0x171))/0x8+-parseInt(_0x34d450(0x17b))/0x9;if(_0x36d429===_0x545f8d)break;else _0x36e3ce['push'](_0x36e3ce['shift']());}catch(_0x30419b){_0x36e3ce['push'](_0x36e3ce['shift']());}}}(a126_0x4e25,0x5c773));function a126_0x4e25(){const _0xa95ffd=['3xaaJxr','appCode','709860JpBdVP','4843672dpWfBx','45ftgxLy','POST','create','datasetCode','flowName','2481717exwSbj','.\x20Flow\x20URL:\x20','377134BFtQyo','163428azgbPC','12901509EmBLdS','451426YPHjQz','flow','Created\x20flow\x20'];a126_0x4e25=function(){return _0xa95ffd;};return a126_0x4e25();}function a126_0x55d3(_0x1845ec,_0xef803e){_0x1845ec=_0x1845ec-0x16b;const _0x4e2556=a126_0x4e25();let _0x55d32c=_0x4e2556[_0x1845ec];return _0x55d32c;}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';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_0x40af50(0x16c),'command':a126_0x40af50(0x174),'description':'Create\x20a\x20draft\x20flow\x20definition\x20from\x20a\x20local\x20FlowConfig\x20file','risk':'write','flags':[FLOW_FILE_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x45dfff){readFlowFilePath(_0x45dfff);},async 'dryRun'(_0x48e28b){const _0x620e3f=a126_0x40af50,{request:_0x3bcb09,warnings:_0x599d50}=await prepareFlowWrite(readFlowFilePath(_0x48e28b),_0x48e28b['appCode']);return asDryRunResult({'operation':_0x620e3f(0x174),'selector':{'appCode':_0x48e28b[_0x620e3f(0x16f)],'flowName':_0x3bcb09[_0x620e3f(0x176)],..._0x3bcb09['datasetCode']?{'datasetCode':_0x3bcb09[_0x620e3f(0x175)]}:{}},'before':null,'after':_0x3bcb09,'request':_0x3bcb09,'dryRun':!![],'backend':{'method':_0x620e3f(0x173),'path':FLOW_PATHS[_0x620e3f(0x174)]},'warnings':_0x599d50},{'method':'POST','url':FLOW_PATHS['create']});},async 'execute'(_0x5adbe4){const _0x50d4fc=a126_0x40af50,{request:_0x16fcfc,warnings:_0x1151af}=await prepareFlowWrite(readFlowFilePath(_0x5adbe4),_0x5adbe4['appCode']);await confirmFlowWrite(_0x5adbe4,_0x50d4fc(0x174),_0x16fcfc);const _0x33018f=await createFlowDefinition(_0x16fcfc),_0x1973c0=buildFlowUrl(_0x5adbe4[_0x50d4fc(0x16f)],_0x33018f['id']),_0x5db4ab=''+(_0x33018f[_0x50d4fc(0x176)]||_0x16fcfc[_0x50d4fc(0x176)])+(_0x33018f['id']?'\x20(id='+_0x33018f['id']+')':'');return{'ok':!![],'data':{'operation':_0x50d4fc(0x174),'selector':flowSelector(_0x5adbe4[_0x50d4fc(0x16f)],_0x33018f['id'],_0x33018f),'before':null,'after':_0x33018f,'flowUrl':_0x1973c0,'dryRun':![],'backend':{'method':_0x50d4fc(0x173),'path':FLOW_PATHS[_0x50d4fc(0x174)]},'warnings':_0x1151af},'message':_0x50d4fc(0x16d)+_0x5db4ab+_0x50d4fc(0x178)+_0x1973c0};}};
@@ -1 +1 @@
1
- const a127_0x2fd43e=a127_0x5d9d;(function(_0x32f863,_0x2d15ca){const _0x4eccb9=a127_0x5d9d,_0x529f87=_0x32f863();while(!![]){try{const _0x46194c=-parseInt(_0x4eccb9(0xfd))/0x1+parseInt(_0x4eccb9(0x100))/0x2+parseInt(_0x4eccb9(0xf4))/0x3+parseInt(_0x4eccb9(0x114))/0x4*(-parseInt(_0x4eccb9(0xf9))/0x5)+parseInt(_0x4eccb9(0x112))/0x6*(-parseInt(_0x4eccb9(0xff))/0x7)+-parseInt(_0x4eccb9(0xfb))/0x8+parseInt(_0x4eccb9(0x115))/0x9;if(_0x46194c===_0x2d15ca)break;else _0x529f87['push'](_0x529f87['shift']());}catch(_0x4cb4da){_0x529f87['push'](_0x529f87['shift']());}}}(a127_0x1745,0x6c689));import{mkdir,stat}from'node:fs/promises';import{dirname,resolve}from'node:path';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{getFlowDefinition}from'../../core/api-client.js';import{writeNormalizedFlowConfig}from'../../core/flow-config.js';import{CliErrors}from'../../errors.js';function a127_0x1745(){const _0x275608=['code','detail','validation','boolean','path','\x20to\x20','trim','flowName','Pass\x20--force\x20to\x20overwrite\x20it.','force','string','FlowConfig\x20output\x20already\x20exists:\x20','flowCode','ENOENT','Flow\x20','19914LfWisF','read','1116484hYIKAC','14157963xobljj','377937ETipZg','warnings','Get\x20one\x20design-time\x20flow\x20definition','bool','flow','10eFcNxf','output','573152xNFldv','Wrote\x20FlowConfig\x20for\x20','261334KTtClZ','EEXIST','1512mNRatA','706158gffTjA','Write\x20a\x20portable\x20normalized\x20FlowConfig\x20JSON\x20file','config'];a127_0x1745=function(){return _0x275608;};return a127_0x1745();}import{FLOW_ID_FLAG,flowDefinitionToConfig,readFlowId}from'../../commands/flow/shared.js';export const flowDetail={'service':a127_0x2fd43e(0xf8),'command':a127_0x2fd43e(0x104),'description':a127_0x2fd43e(0xf6),'risk':a127_0x2fd43e(0x113),'flags':[FLOW_ID_FLAG,{'name':a127_0x2fd43e(0xfa),'type':a127_0x2fd43e(0x10d),'description':a127_0x2fd43e(0x101)},{'name':'force','type':a127_0x2fd43e(0x106),'description':'Overwrite\x20an\x20existing\x20output\x20file'},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x421c49){readFlowId(_0x421c49);},async 'execute'(_0x168311){const _0x29e457=a127_0x2fd43e,_0x242dd0=readFlowId(_0x168311),_0xb64b91=_0x168311['str'](_0x29e457(0xfa))[_0x29e457(0x109)](),_0x5bf979=_0xb64b91?resolve(_0xb64b91):undefined;if(_0x5bf979&&!_0x168311['bool']('force')&&await fileExists(_0x5bf979))throw CliErrors['validation'](_0x29e457(0x10e)+_0x5bf979,_0x29e457(0x10b));const _0x2050ff=await getFlowDefinition(_0x168311['appCode'],_0x242dd0);let _0x35e7c7;if(_0x5bf979){const _0x512bf6=flowDefinitionToConfig(_0x2050ff);await mkdir(dirname(_0x5bf979),{'recursive':!![]});try{await writeNormalizedFlowConfig(_0x5bf979,_0x512bf6[_0x29e457(0x102)],{'overwrite':_0x168311[_0x29e457(0xf7)](_0x29e457(0x10c))});}catch(_0x484a45){if(isAlreadyExistsError(_0x484a45))throw CliErrors[_0x29e457(0x105)](_0x29e457(0x10e)+_0x5bf979,_0x29e457(0x10b));throw _0x484a45;}_0x35e7c7={'path':_0x5bf979,'warnings':_0x512bf6[_0x29e457(0xf5)]};}return{'ok':!![],'data':{'flow':_0x2050ff,..._0x35e7c7?{'output':_0x35e7c7}:{}},'message':_0x35e7c7?_0x29e457(0xfc)+(_0x2050ff[_0x29e457(0x10a)]||_0x2050ff[_0x29e457(0x10f)]||_0x242dd0)+_0x29e457(0x108)+_0x35e7c7[_0x29e457(0x107)]:_0x29e457(0x111)+(_0x2050ff['flowName']||_0x2050ff['flowCode']||_0x242dd0)};}};function a127_0x5d9d(_0x2e0e03,_0x3ccb02){_0x2e0e03=_0x2e0e03-0xf4;const _0x1745a3=a127_0x1745();let _0x5d9d54=_0x1745a3[_0x2e0e03];return _0x5d9d54;}async function fileExists(_0x2e3816){try{return await stat(_0x2e3816),!![];}catch(_0xcde6a5){return!isNotFoundError(_0xcde6a5);}}function isNotFoundError(_0xc8de9f){const _0x5eecba=a127_0x2fd43e;return _0xc8de9f?.['code']===_0x5eecba(0x110);}function isAlreadyExistsError(_0x1d5c99){const _0x47b907=a127_0x2fd43e;return _0x1d5c99?.[_0x47b907(0x103)]===_0x47b907(0xfe);}
1
+ function a127_0x5b6c(){const _0x4fbdf0=['645885rwrayk','62598kTKlvu','output','2752132XOOPWX','validation','3083495YXmZkd','bool','flowName','Flow\x20','Wrote\x20FlowConfig\x20for\x20','warnings','read','ENOENT','262840IBvyIZ','code','Write\x20a\x20portable\x20normalized\x20FlowConfig\x20JSON\x20file','path','appCode','flowCode','trim','boolean','14pxFEUo','2001900IEqfee','9yoGvUC','6741uDslhd','\x20to\x20','168oMPmrX','FlowConfig\x20output\x20already\x20exists:\x20','flow','EEXIST','force','Get\x20one\x20design-time\x20flow\x20definition'];a127_0x5b6c=function(){return _0x4fbdf0;};return a127_0x5b6c();}const a127_0x553aaf=a127_0x4794;(function(_0x5b021f,_0x255fd6){const _0x484458=a127_0x4794,_0x46e171=_0x5b021f();while(!![]){try{const _0xad86f=parseInt(_0x484458(0xb2))/0x1+-parseInt(_0x484458(0xac))/0x2*(parseInt(_0x484458(0xaa))/0x3)+parseInt(_0x484458(0xb5))/0x4+-parseInt(_0x484458(0xb7))/0x5+parseInt(_0x484458(0xb3))/0x6*(parseInt(_0x484458(0xc7))/0x7)+-parseInt(_0x484458(0xbf))/0x8*(-parseInt(_0x484458(0xc9))/0x9)+-parseInt(_0x484458(0xc8))/0xa;if(_0xad86f===_0x255fd6)break;else _0x46e171['push'](_0x46e171['shift']());}catch(_0x10569d){_0x46e171['push'](_0x46e171['shift']());}}}(a127_0x5b6c,0x5d432));import{mkdir,stat}from'node:fs/promises';import{dirname,resolve}from'node:path';function a127_0x4794(_0x2dff1b,_0xd3a0cb){_0x2dff1b=_0x2dff1b-0xaa;const _0x5b6c20=a127_0x5b6c();let _0x4794ca=_0x5b6c20[_0x2dff1b];return _0x4794ca;}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{getFlowDefinition}from'../../core/api-client.js';import{writeNormalizedFlowConfig}from'../../core/flow-config.js';import{CliErrors}from'../../errors.js';import{FLOW_ID_FLAG,flowDefinitionToConfig,readFlowId}from'../../commands/flow/shared.js';export const flowDetail={'service':a127_0x553aaf(0xae),'command':'detail','description':a127_0x553aaf(0xb1),'risk':a127_0x553aaf(0xbd),'flags':[FLOW_ID_FLAG,{'name':a127_0x553aaf(0xb4),'type':'string','description':a127_0x553aaf(0xc1)},{'name':a127_0x553aaf(0xb0),'type':a127_0x553aaf(0xc6),'description':'Overwrite\x20an\x20existing\x20output\x20file'},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x1cf8e6){readFlowId(_0x1cf8e6);},async 'execute'(_0x47fa38){const _0x43f56e=a127_0x553aaf,_0x889a51=readFlowId(_0x47fa38),_0x46e8ae=_0x47fa38['str'](_0x43f56e(0xb4))[_0x43f56e(0xc5)](),_0x392d33=_0x46e8ae?resolve(_0x46e8ae):undefined;if(_0x392d33&&!_0x47fa38['bool'](_0x43f56e(0xb0))&&await fileExists(_0x392d33))throw CliErrors['validation'](_0x43f56e(0xad)+_0x392d33,'Pass\x20--force\x20to\x20overwrite\x20it.');const _0x4b176d=await getFlowDefinition(_0x47fa38[_0x43f56e(0xc3)],_0x889a51);let _0xcd5172;if(_0x392d33){const _0x133b42=flowDefinitionToConfig(_0x4b176d);await mkdir(dirname(_0x392d33),{'recursive':!![]});try{await writeNormalizedFlowConfig(_0x392d33,_0x133b42['config'],{'overwrite':_0x47fa38[_0x43f56e(0xb8)]('force')});}catch(_0x2ea46f){if(isAlreadyExistsError(_0x2ea46f))throw CliErrors[_0x43f56e(0xb6)](_0x43f56e(0xad)+_0x392d33,'Pass\x20--force\x20to\x20overwrite\x20it.');throw _0x2ea46f;}_0xcd5172={'path':_0x392d33,'warnings':_0x133b42[_0x43f56e(0xbc)]};}return{'ok':!![],'data':{'flow':_0x4b176d,..._0xcd5172?{'output':_0xcd5172}:{}},'message':_0xcd5172?_0x43f56e(0xbb)+(_0x4b176d[_0x43f56e(0xb9)]||_0x4b176d[_0x43f56e(0xc4)]||_0x889a51)+_0x43f56e(0xab)+_0xcd5172[_0x43f56e(0xc2)]:_0x43f56e(0xba)+(_0x4b176d[_0x43f56e(0xb9)]||_0x4b176d['flowCode']||_0x889a51)};}};async function fileExists(_0x530f1d){try{return await stat(_0x530f1d),!![];}catch(_0x223dda){return!isNotFoundError(_0x223dda);}}function isNotFoundError(_0x6eb15f){const _0x40821c=a127_0x553aaf;return _0x6eb15f?.[_0x40821c(0xc0)]===_0x40821c(0xbe);}function isAlreadyExistsError(_0x497e4b){const _0x1dc384=a127_0x553aaf;return _0x497e4b?.['code']===_0x1dc384(0xaf);}