@lovrabet/rabetbase-cli 2.5.6-beta.1 → 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 (408) hide show
  1. package/README.md +15 -1
  2. package/lib/api/api-doc.js +1 -1
  3. package/lib/api/api-group.js +1 -1
  4. package/lib/api/fetch-model-list.js +1 -1
  5. package/lib/api/generate-api-file.js +1 -1
  6. package/lib/api/generate-sdk-config-file.js +1 -1
  7. package/lib/api/legacy-api-file.js +1 -1
  8. package/lib/api/model-registry-file.js +1 -1
  9. package/lib/api/model-registry-scaffold.js +1 -1
  10. package/lib/api/model-source.js +1 -1
  11. package/lib/auth/auth-server-ui.js +1 -1
  12. package/lib/auth/auth-server.js +1 -1
  13. package/lib/auth/constant.js +1 -1
  14. package/lib/auth/get-cookie.js +1 -1
  15. package/lib/auth/get-session-user.js +1 -1
  16. package/lib/auth/is-session-valid.js +1 -1
  17. package/lib/auth/login-success-html.js +1 -1
  18. package/lib/auth/logout.js +1 -1
  19. package/lib/cli-flags.js +1 -1
  20. package/lib/cli.js +1 -1
  21. package/lib/commands/api/generate.js +1 -1
  22. package/lib/commands/api/index.js +1 -1
  23. package/lib/commands/api/list.js +1 -1
  24. package/lib/commands/api/pull.js +1 -1
  25. package/lib/commands/api/shared.js +1 -1
  26. package/lib/commands/app/detail.js +1 -1
  27. package/lib/commands/app/index.js +1 -1
  28. package/lib/commands/app/list.js +1 -1
  29. package/lib/commands/app/members-list.js +1 -1
  30. package/lib/commands/app/remote-directory.js +1 -1
  31. package/lib/commands/app/shared.js +1 -1
  32. package/lib/commands/app-config/delete.js +1 -1
  33. package/lib/commands/app-config/get.js +1 -1
  34. package/lib/commands/app-config/index.js +1 -1
  35. package/lib/commands/app-config/list.js +1 -1
  36. package/lib/commands/app-config/set.js +1 -1
  37. package/lib/commands/app-config/shared.js +1 -1
  38. package/lib/commands/auth/index.js +1 -1
  39. package/lib/commands/bff/create.js +1 -1
  40. package/lib/commands/bff/delete.js +1 -1
  41. package/lib/commands/bff/detail.js +1 -1
  42. package/lib/commands/bff/index.js +1 -1
  43. package/lib/commands/bff/list.js +1 -1
  44. package/lib/commands/bff/logs.js +1 -1
  45. package/lib/commands/bff/pull.js +1 -1
  46. package/lib/commands/bff/push.js +1 -1
  47. package/lib/commands/bff/status.js +1 -1
  48. package/lib/commands/cli-skill/index.js +1 -1
  49. package/lib/commands/cli-update.js +1 -1
  50. package/lib/commands/codegen/index.js +1 -1
  51. package/lib/commands/codegen/sdk.js +1 -1
  52. package/lib/commands/codegen/sql.js +1 -1
  53. package/lib/commands/common/app-registry.js +1 -1
  54. package/lib/commands/common/app-selector.js +1 -1
  55. package/lib/commands/common/async-task.js +1 -1
  56. package/lib/commands/common/dry-run.js +1 -1
  57. package/lib/commands/common/flags.js +1 -1
  58. package/lib/commands/common/local-file.js +1 -1
  59. package/lib/commands/common/validate.js +1 -1
  60. package/lib/commands/config/delete.js +1 -1
  61. package/lib/commands/config/get.js +1 -1
  62. package/lib/commands/config/index.js +1 -1
  63. package/lib/commands/config/init.js +1 -1
  64. package/lib/commands/config/list.js +1 -1
  65. package/lib/commands/config/set.js +1 -1
  66. package/lib/commands/config/shared.js +1 -1
  67. package/lib/commands/dataset/batch-design.js +1 -1
  68. package/lib/commands/dataset/business-group-update.js +1 -1
  69. package/lib/commands/dataset/business-groups.js +1 -1
  70. package/lib/commands/dataset/capability.js +1 -1
  71. package/lib/commands/dataset/cross-relation-create.js +1 -1
  72. package/lib/commands/dataset/cross-relation-delete.js +1 -1
  73. package/lib/commands/dataset/cross-relation-list.js +1 -1
  74. package/lib/commands/dataset/cross-relation-shared.js +1 -1
  75. package/lib/commands/dataset/cross-relation-update.js +1 -1
  76. package/lib/commands/dataset/delete.js +1 -1
  77. package/lib/commands/dataset/design-context.d.ts +1 -0
  78. package/lib/commands/dataset/design-context.js +1 -0
  79. package/lib/commands/dataset/design-start.d.ts +1 -0
  80. package/lib/commands/dataset/design-start.js +1 -0
  81. package/lib/commands/dataset/design-status.d.ts +1 -0
  82. package/lib/commands/dataset/design-status.js +1 -0
  83. package/lib/commands/dataset/design-sync-retry.d.ts +1 -0
  84. package/lib/commands/dataset/design-sync-retry.js +1 -0
  85. package/lib/commands/dataset/design-sync-status.d.ts +1 -0
  86. package/lib/commands/dataset/design-sync-status.js +1 -0
  87. package/lib/commands/dataset/design-validate.d.ts +1 -0
  88. package/lib/commands/dataset/design-validate.js +1 -0
  89. package/lib/commands/dataset/detail.js +1 -1
  90. package/lib/commands/dataset/extend-update.js +1 -1
  91. package/lib/commands/dataset/field-restore.js +1 -1
  92. package/lib/commands/dataset/field-update.js +1 -1
  93. package/lib/commands/dataset/generate.js +1 -1
  94. package/lib/commands/dataset/index.js +1 -1
  95. package/lib/commands/dataset/list.js +1 -1
  96. package/lib/commands/dataset/operations.js +1 -1
  97. package/lib/commands/dataset/relation-audit.js +1 -1
  98. package/lib/commands/dataset/relation-create.js +1 -1
  99. package/lib/commands/dataset/relation-delete.js +1 -1
  100. package/lib/commands/dataset/relation-shared.js +1 -1
  101. package/lib/commands/dataset/relation-update.js +1 -1
  102. package/lib/commands/dataset/relations.js +1 -1
  103. package/lib/commands/dataset/rename.js +1 -1
  104. package/lib/commands/dataset/restore.js +1 -1
  105. package/lib/commands/dataset/user-deleted-field-list.js +1 -1
  106. package/lib/commands/db/analysis-batching.js +1 -1
  107. package/lib/commands/db/analyze-batch-plan.js +1 -1
  108. package/lib/commands/db/analyze-cancel.js +1 -1
  109. package/lib/commands/db/analyze-start.js +1 -1
  110. package/lib/commands/db/analyze-status.js +1 -1
  111. package/lib/commands/db/create.js +1 -1
  112. package/lib/commands/db/cross-db-analysis-shared.js +1 -1
  113. package/lib/commands/db/cross-db-analyze-latest.js +1 -1
  114. package/lib/commands/db/cross-db-analyze-start.js +1 -1
  115. package/lib/commands/db/cross-db-analyze-status.js +1 -1
  116. package/lib/commands/db/delete.js +1 -1
  117. package/lib/commands/db/detail.js +1 -1
  118. package/lib/commands/db/diff-refresh-start.js +1 -1
  119. package/lib/commands/db/diff-refresh-status.js +1 -1
  120. package/lib/commands/db/diff.js +1 -1
  121. package/lib/commands/db/index.js +1 -1
  122. package/lib/commands/db/list.js +1 -1
  123. package/lib/commands/db/shared.js +1 -1
  124. package/lib/commands/db/table-diff-shared.js +1 -1
  125. package/lib/commands/db/tables.js +1 -1
  126. package/lib/commands/db/test.js +1 -1
  127. package/lib/commands/db/update.js +1 -1
  128. package/lib/commands/deployment/index.js +1 -1
  129. package/lib/commands/deployment/sync-all.js +1 -1
  130. package/lib/commands/deployment/sync-jobs.js +1 -1
  131. package/lib/commands/deployment/sync-status.js +1 -1
  132. package/lib/commands/doctor.js +1 -1
  133. package/lib/commands/file/index.js +1 -1
  134. package/lib/commands/flow/create.js +1 -1
  135. package/lib/commands/flow/detail.js +1 -1
  136. package/lib/commands/flow/index.js +1 -1
  137. package/lib/commands/flow/list.js +1 -1
  138. package/lib/commands/flow/page-list.d.ts +2 -0
  139. package/lib/commands/flow/page-list.js +1 -0
  140. package/lib/commands/flow/publish.js +1 -1
  141. package/lib/commands/flow/runtime-resources-shared.d.ts +1 -1
  142. package/lib/commands/flow/runtime-resources-shared.js +1 -1
  143. package/lib/commands/flow/runtime-role-list.js +1 -1
  144. package/lib/commands/flow/runtime-role-user-list.js +1 -1
  145. package/lib/commands/flow/runtime-user-search.js +1 -1
  146. package/lib/commands/flow/shared.d.ts +6 -2
  147. package/lib/commands/flow/shared.js +1 -1
  148. package/lib/commands/flow/update.js +1 -1
  149. package/lib/commands/flow/validate.js +1 -1
  150. package/lib/commands/instant-api-policy/current.js +1 -1
  151. package/lib/commands/instant-api-policy/index.js +1 -1
  152. package/lib/commands/instant-api-policy/init.js +1 -1
  153. package/lib/commands/instant-api-policy/publish.js +1 -1
  154. package/lib/commands/instant-api-policy/pull.js +1 -1
  155. package/lib/commands/instant-api-policy/revision.js +1 -1
  156. package/lib/commands/instant-api-policy/revisions.js +1 -1
  157. package/lib/commands/instant-api-policy/rollback.js +1 -1
  158. package/lib/commands/instant-api-policy/shared.js +1 -1
  159. package/lib/commands/instant-api-policy/validate.js +1 -1
  160. package/lib/commands/issue/index.js +1 -1
  161. package/lib/commands/issue/nudge.js +1 -1
  162. package/lib/commands/issue/report.js +1 -1
  163. package/lib/commands/issue/shared.js +1 -1
  164. package/lib/commands/kb/create.js +1 -1
  165. package/lib/commands/kb/delete.js +1 -1
  166. package/lib/commands/kb/detail.js +1 -1
  167. package/lib/commands/kb/index.js +1 -1
  168. package/lib/commands/kb/list.js +1 -1
  169. package/lib/commands/kb/search.js +1 -1
  170. package/lib/commands/kb/shared.js +1 -1
  171. package/lib/commands/kb/update.js +1 -1
  172. package/lib/commands/logs/index.js +1 -1
  173. package/lib/commands/menu/asset-update.js +1 -1
  174. package/lib/commands/menu/delete.js +1 -1
  175. package/lib/commands/menu/external-link-create.js +1 -1
  176. package/lib/commands/menu/external-link-update.js +1 -1
  177. package/lib/commands/menu/group-create.js +1 -1
  178. package/lib/commands/menu/group-update.js +1 -1
  179. package/lib/commands/menu/index.js +1 -1
  180. package/lib/commands/menu/list.js +1 -1
  181. package/lib/commands/menu/move.js +1 -1
  182. package/lib/commands/menu/regroup-start.js +1 -1
  183. package/lib/commands/menu/rename.js +1 -1
  184. package/lib/commands/menu/shared/compare-table.js +1 -1
  185. package/lib/commands/menu/shared/delete-plan.js +1 -1
  186. package/lib/commands/menu/shared/facts.js +1 -1
  187. package/lib/commands/menu/shared/index.js +1 -1
  188. package/lib/commands/menu/shared/inquirer.js +1 -1
  189. package/lib/commands/menu/shared/local-pages.js +1 -1
  190. package/lib/commands/menu/shared/logic.js +1 -1
  191. package/lib/commands/menu/shared/mutations.js +1 -1
  192. package/lib/commands/menu/shared/path.js +1 -1
  193. package/lib/commands/menu/shared/service.js +1 -1
  194. package/lib/commands/menu/shared/subapp-assets.js +1 -1
  195. package/lib/commands/menu/shared/sync-core.js +1 -1
  196. package/lib/commands/menu/shared/update-core.js +1 -1
  197. package/lib/commands/menu/shared/valid-url.js +1 -1
  198. package/lib/commands/menu/subapp-assets-status.js +1 -1
  199. package/lib/commands/menu/subapp-assets-update.js +1 -1
  200. package/lib/commands/menu/sync.js +1 -1
  201. package/lib/commands/menu/visibility-update.js +1 -1
  202. package/lib/commands/notification/config-create.js +1 -1
  203. package/lib/commands/notification/config-delete.js +1 -1
  204. package/lib/commands/notification/config-list.js +1 -1
  205. package/lib/commands/notification/config-update.js +1 -1
  206. package/lib/commands/notification/index.js +1 -1
  207. package/lib/commands/notification/shared.js +1 -1
  208. package/lib/commands/ocr/index.js +1 -1
  209. package/lib/commands/page/create.js +1 -1
  210. package/lib/commands/page/custom/detail.js +1 -1
  211. package/lib/commands/page/custom/list.js +1 -1
  212. package/lib/commands/page/custom/publish.js +1 -1
  213. package/lib/commands/page/custom/shared.js +1 -1
  214. package/lib/commands/page/custom/syntax.js +1 -1
  215. package/lib/commands/page/custom/update.js +1 -1
  216. package/lib/commands/page/data-list-status.js +1 -1
  217. package/lib/commands/page/generate-start.js +1 -1
  218. package/lib/commands/page/generate-status.js +1 -1
  219. package/lib/commands/page/index.js +1 -1
  220. package/lib/commands/page/pull.js +1 -1
  221. package/lib/commands/page/push.js +1 -1
  222. package/lib/commands/page/relation-audit.js +1 -1
  223. package/lib/commands/page/restore.js +1 -1
  224. package/lib/commands/page/shared.js +1 -1
  225. package/lib/commands/page/sync.js +1 -1
  226. package/lib/commands/project/api-architecture-upgrade.js +1 -1
  227. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  228. package/lib/commands/project/create/format-elapsed.js +1 -1
  229. package/lib/commands/project/create/main.js +1 -1
  230. package/lib/commands/project/create/materialize-project-template.js +1 -1
  231. package/lib/commands/project/create/project-name.js +1 -1
  232. package/lib/commands/project/create/project-template-archive.js +1 -1
  233. package/lib/commands/project/create/project-template-path.js +1 -1
  234. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  235. package/lib/commands/project/create/use-format-code.js +1 -1
  236. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  237. package/lib/commands/project/domain-routing-sync.js +1 -1
  238. package/lib/commands/project/index.js +1 -1
  239. package/lib/commands/project/upgrade.js +1 -1
  240. package/lib/commands/registry.js +1 -1
  241. package/lib/commands/role/delete.js +1 -1
  242. package/lib/commands/role/detail.js +1 -1
  243. package/lib/commands/role/index.js +1 -1
  244. package/lib/commands/role/list.js +1 -1
  245. package/lib/commands/role/shared.js +1 -1
  246. package/lib/commands/role/update.js +1 -1
  247. package/lib/commands/role/user-add.js +1 -1
  248. package/lib/commands/role/user-remove.js +1 -1
  249. package/lib/commands/role/user-resolve.js +1 -1
  250. package/lib/commands/rule/get.js +1 -1
  251. package/lib/commands/rule/index.js +1 -1
  252. package/lib/commands/rule/list.js +1 -1
  253. package/lib/commands/rule/set.js +1 -1
  254. package/lib/commands/rule/shared.js +1 -1
  255. package/lib/commands/run/index.js +1 -1
  256. package/lib/commands/schema.js +1 -1
  257. package/lib/commands/sql/create.js +1 -1
  258. package/lib/commands/sql/delete.js +1 -1
  259. package/lib/commands/sql/detail.js +1 -1
  260. package/lib/commands/sql/exec.js +1 -1
  261. package/lib/commands/sql/index.js +1 -1
  262. package/lib/commands/sql/list.js +1 -1
  263. package/lib/commands/sql/pull.js +1 -1
  264. package/lib/commands/sql/push.js +1 -1
  265. package/lib/commands/sql/shared.js +1 -1
  266. package/lib/commands/sql/status.js +1 -1
  267. package/lib/commands/sql/validate.js +1 -1
  268. package/lib/commands/task/index.js +1 -1
  269. package/lib/commands/task/status.js +1 -1
  270. package/lib/commands/tenant/index.js +1 -1
  271. package/lib/commands/tenant/members-list.js +1 -1
  272. package/lib/commands/tenant/shared.js +1 -1
  273. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  274. package/lib/commands/user-account/feishu-bind.js +1 -1
  275. package/lib/commands/user-account/index.js +1 -1
  276. package/lib/commands/workspace/add.js +1 -1
  277. package/lib/commands/workspace/index.js +1 -1
  278. package/lib/commands/workspace/remove.js +1 -1
  279. package/lib/config/domain-config.js +1 -1
  280. package/lib/config/project-domain-routing.js +1 -1
  281. package/lib/config/region-config.js +1 -1
  282. package/lib/config/schema.js +1 -1
  283. package/lib/constant/cdn.js +1 -1
  284. package/lib/constant/cli.js +1 -1
  285. package/lib/constant/defaults.js +1 -1
  286. package/lib/constant/domain.js +1 -1
  287. package/lib/constant/env.js +1 -1
  288. package/lib/constant/output.js +1 -1
  289. package/lib/constant/paths.js +1 -1
  290. package/lib/constant/region.js +1 -1
  291. package/lib/constant/risk.js +1 -1
  292. package/lib/constant/routing-profile.js +1 -1
  293. package/lib/context/app-resolver.js +1 -1
  294. package/lib/context/auth-resolver.js +1 -1
  295. package/lib/context/config-loader.js +1 -1
  296. package/lib/context.js +1 -1
  297. package/lib/core/alias-resolver.js +1 -1
  298. package/lib/core/api-client.d.ts +37 -6
  299. package/lib/core/api-client.js +1 -1
  300. package/lib/core/bff/config.js +1 -1
  301. package/lib/core/bff/file-system.js +1 -1
  302. package/lib/core/bff/hash.js +1 -1
  303. package/lib/core/bff/hook-directory.js +1 -1
  304. package/lib/core/bff/lock.js +1 -1
  305. package/lib/core/bff/utils.js +1 -1
  306. package/lib/core/cross-db-analysis.js +1 -1
  307. package/lib/core/cross-db-relation.js +1 -1
  308. package/lib/core/db-resolver.js +1 -1
  309. package/lib/core/flow-config.d.ts +12 -0
  310. package/lib/core/flow-config.js +1 -1
  311. package/lib/core/instant-api-policy/config.js +1 -1
  312. package/lib/core/kb-search-client.js +1 -1
  313. package/lib/core/page/file-system.js +1 -1
  314. package/lib/core/page/hash.js +1 -1
  315. package/lib/core/page/lock.js +1 -1
  316. package/lib/core/page/lr-smart-jsx.js +1 -1
  317. package/lib/core/sql-index-auditor.js +1 -1
  318. package/lib/core/sql-sync/config.js +1 -1
  319. package/lib/core/sql-sync/file-system.js +1 -1
  320. package/lib/core/sql-sync/hash.js +1 -1
  321. package/lib/core/sql-sync/lock.js +1 -1
  322. package/lib/core/sql-sync/utils.js +1 -1
  323. package/lib/core/sql-validator.js +1 -1
  324. package/lib/errors.js +1 -1
  325. package/lib/framework/build-all-flags.js +1 -1
  326. package/lib/framework/error-output.js +1 -1
  327. package/lib/framework/explicit-yes.js +1 -1
  328. package/lib/framework/flags.js +1 -1
  329. package/lib/framework/help.js +1 -1
  330. package/lib/framework/index.js +1 -1
  331. package/lib/framework/output.js +1 -1
  332. package/lib/framework/response.js +1 -1
  333. package/lib/framework/runner-alias.js +1 -1
  334. package/lib/framework/runner.js +1 -1
  335. package/lib/framework/schema-export.js +1 -1
  336. package/lib/framework/supported-flags.js +1 -1
  337. package/lib/framework/types.js +1 -1
  338. package/lib/generated/build-info.d.ts +4 -4
  339. package/lib/generated/build-info.js +1 -1
  340. package/lib/generated/official-routing.js +1 -1
  341. package/lib/generated/routing-contract.js +1 -1
  342. package/lib/help.js +1 -1
  343. package/lib/postinstall.js +1 -1
  344. package/lib/runtime/confirmation.js +1 -1
  345. package/lib/runtime/event.js +1 -1
  346. package/lib/runtime/index.js +1 -1
  347. package/lib/runtime/queue.js +1 -1
  348. package/lib/runtime/resolve.js +1 -1
  349. package/lib/services/dataset-design/checkpoint.d.ts +17 -0
  350. package/lib/services/dataset-design/checkpoint.js +1 -0
  351. package/lib/services/dataset-design/commands.d.ts +6 -0
  352. package/lib/services/dataset-design/commands.js +1 -0
  353. package/lib/services/dataset-design/contract.d.ts +7 -0
  354. package/lib/services/dataset-design/contract.js +1 -0
  355. package/lib/skills/builtin-skill.js +1 -1
  356. package/lib/skills/main.js +1 -1
  357. package/lib/skills/npx-skills-add.js +1 -1
  358. package/lib/skills/skill-presence.js +1 -1
  359. package/lib/telemetry/cli-command-trace.js +1 -1
  360. package/lib/telemetry/cli-help-trace.js +1 -1
  361. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  362. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  363. package/lib/telemetry/send-cli-trace-log.js +1 -1
  364. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  365. package/lib/utils/ai_config.js +1 -1
  366. package/lib/utils/apply-jq-filter.js +1 -1
  367. package/lib/utils/cdn-config.js +1 -1
  368. package/lib/utils/check-sdk-version.js +1 -1
  369. package/lib/utils/cli-version-check.js +1 -1
  370. package/lib/utils/cli-version-policy.js +1 -1
  371. package/lib/utils/config.js +1 -1
  372. package/lib/utils/entity-with-id.js +1 -1
  373. package/lib/utils/file-utils.js +1 -1
  374. package/lib/utils/guides-cdn.js +1 -1
  375. package/lib/utils/http-client.js +1 -1
  376. package/lib/utils/is-non-interactive.js +1 -1
  377. package/lib/utils/logger.js +1 -1
  378. package/lib/utils/params.js +1 -1
  379. package/lib/utils/platform.js +1 -1
  380. package/lib/utils/sleep.js +1 -1
  381. package/lib/utils/template-replacer.js +1 -1
  382. package/lib/utils/update-notice.js +1 -1
  383. package/lib/utils/version.js +1 -1
  384. package/lib/utils/with-active-cookie.js +1 -1
  385. package/lib/utils/write-cli-side-channel.js +1 -1
  386. package/package.json +3 -2
  387. package/skills/rabetbase/SKILL.md +11 -7
  388. package/skills/rabetbase/guides/approval-flow-development-workflow.md +52 -13
  389. package/skills/rabetbase/guides/backend-function.md +26 -4
  390. package/skills/rabetbase/guides/bff-creation-workflow.md +9 -0
  391. package/skills/rabetbase/guides/cross-database-bff.md +1 -0
  392. package/skills/rabetbase/guides/custom-page-flow-sdk.md +2 -0
  393. package/skills/rabetbase/guides/data-api-guidelines.md +2 -0
  394. package/skills/rabetbase/guides/flow-config-examples.md +75 -0
  395. package/skills/rabetbase/guides/form-flow-start.md +61 -0
  396. package/skills/rabetbase/guides/typescript-sdk.md +1 -1
  397. package/skills/rabetbase/knowledge/approval-flow/config-json-schema.md +18 -4
  398. package/skills/rabetbase/references/rabetbase-codegen-sdk.md +5 -4
  399. package/skills/rabetbase/references/rabetbase-dataset-design.md +25 -0
  400. package/skills/rabetbase/references/rabetbase-dataset-generate.md +2 -255
  401. package/skills/rabetbase/references/rabetbase-flow-commands.md +21 -2
  402. package/skills/rabetbase/references/rabetbase-flow-resources.md +21 -3
  403. package/skills/rabetbase/references/rabetbase-flow-runtime-boundary.md +6 -2
  404. package/skills/rabetbase/references/rabetbase-kb.md +4 -1
  405. package/skills/rabetbase-dataset-generation/SKILL.md +45 -0
  406. package/skills/rabetbase-dataset-generation/references/workflow.md +60 -0
  407. package/skills/rabetbase-page-generation/SKILL.md +1 -1
  408. package/skills/rabetbase.manifest.json +6 -3
@@ -1 +1 @@
1
- (function(_0x1e4cc4,_0x3eda42){const _0x1cb986=a109_0x267a,_0x561b26=_0x1e4cc4();while(!![]){try{const _0x4b3b03=parseInt(_0x1cb986(0x9a))/0x1+-parseInt(_0x1cb986(0x82))/0x2*(-parseInt(_0x1cb986(0x91))/0x3)+parseInt(_0x1cb986(0x9d))/0x4+parseInt(_0x1cb986(0x90))/0x5+parseInt(_0x1cb986(0x83))/0x6+parseInt(_0x1cb986(0x93))/0x7*(-parseInt(_0x1cb986(0x8e))/0x8)+-parseInt(_0x1cb986(0xa4))/0x9*(parseInt(_0x1cb986(0xa0))/0xa);if(_0x4b3b03===_0x3eda42)break;else _0x561b26['push'](_0x561b26['shift']());}catch(_0x4a7313){_0x561b26['push'](_0x561b26['shift']());}}}(a109_0x3830,0x686c7));import{testDbLinkConfigConnect}from'../../core/api-client.js';import{getAppBaseUrl}from'../../constant/domain.js';import{CliErrors}from'../../errors.js';function shouldRedactKey(_0x46c023){const _0x4969aa=a109_0x267a,_0x344d8f=_0x46c023[_0x4969aa(0xa6)]();if(_0x344d8f===_0x4969aa(0x99)||_0x344d8f===_0x4969aa(0x8a)||_0x344d8f===_0x4969aa(0x89))return!![];if(_0x344d8f[_0x4969aa(0xa3)]('secret')||_0x344d8f[_0x4969aa(0xa3)](_0x4969aa(0x96))||_0x344d8f[_0x4969aa(0xa3)](_0x4969aa(0x92)))return!![];if(_0x344d8f[_0x4969aa(0xa3)](_0x4969aa(0x87))||_0x344d8f['includes'](_0x4969aa(0x86)))return!![];if(_0x344d8f===_0x4969aa(0xa5)||_0x344d8f===_0x4969aa(0x9f)||_0x344d8f===_0x4969aa(0x9b))return!![];return![];}export function sanitizeDbLinkForOutput(_0x2f816d){const _0x1b14b0=a109_0x267a,_0x49ab11={..._0x2f816d};delete _0x49ab11[_0x1b14b0(0x8d)];for(const _0x529736 of Object['keys'](_0x49ab11)){if(!shouldRedactKey(_0x529736))continue;const _0x1e5b22=_0x49ab11[_0x529736];_0x1e5b22!=null&&String(_0x1e5b22)['length']>0x0&&(_0x49ab11[_0x529736]=_0x1b14b0(0xa2));}return _0x49ab11;}export function sanitizeDbLinkList(_0x367f05){const _0x15b2db=a109_0x267a;return _0x367f05[_0x15b2db(0x8b)](_0xa7f47a=>sanitizeDbLinkForOutput(_0xa7f47a));}export function buildDbDatasetDependency(_0xdd9aa6,_0x2f7aae){const _0x438c23=a109_0x267a,_0x7f5ca=_0x2f7aae[_0x438c23(0xa1)](_0x43ebb0=>Number(_0x43ebb0[_0x438c23(0x9c)]?.['dbId'])===Number(_0xdd9aa6['id']))[_0x438c23(0x8b)](_0x37bd16=>({'id':_0x37bd16['id'],'code':_0x37bd16[_0x438c23(0x97)],'name':_0x37bd16[_0x438c23(0x9e)],..._0x37bd16[_0x438c23(0x9c)]?.[_0x438c23(0x88)]?{'tableName':_0x37bd16[_0x438c23(0x9c)][_0x438c23(0x88)]}:{}}));return{'datasetDependency':{'hasDependencies':_0x7f5ca[_0x438c23(0x98)]>0x0,'activeDatasetCount':_0x7f5ca[_0x438c23(0x98)]},'datasets':_0x7f5ca};}export async function assertDbLinkConnectionPreflight(_0xbee9f7){const _0x121d28=a109_0x267a,_0x298a03=await testDbLinkConfigConnect(_0xbee9f7);if(_0x298a03!==!![])throw CliErrors[_0x121d28(0x8f)]('Database\x20connection\x20preflight\x20failed.',_0x121d28(0x94));}const DB_URL_PATTERN=/^[^\s:]+(?::\d+)?$/;function a109_0x267a(_0xa058d0,_0x38245f){_0xa058d0=_0xa058d0-0x81;const _0x3830d3=a109_0x3830();let _0x267aec=_0x3830d3[_0xa058d0];return _0x267aec;}export function validateDbUrl(_0x5526f8){const _0x542261=a109_0x267a,_0x1e0fe1=_0x5526f8[_0x542261(0x8c)]();if(!_0x1e0fe1)return![];return DB_URL_PATTERN[_0x542261(0x84)](_0x1e0fe1);}export function buildDbPageLinks(_0x11f38e,_0x4d80e8){const _0x570385=a109_0x267a,_0x5ec34b=_0x11f38e?.[_0x570385(0x8c)]();if(!_0x5ec34b)return undefined;const _0x5db99c=typeof _0x4d80e8===_0x570385(0x85)?String(_0x4d80e8):String(_0x4d80e8??'')[_0x570385(0x8c)]();if(!_0x5db99c)return undefined;const _0x53138d=Number(_0x5db99c);if(!Number[_0x570385(0x95)](_0x53138d)||_0x53138d<=0x0)return undefined;const _0x4b4586=getAppBaseUrl(_0x5ec34b),_0x158050=encodeURIComponent(String(_0x53138d));return{'databasePage':_0x4b4586+_0x570385(0x81),'erPage':_0x4b4586+'/data/er?dbId='+_0x158050};}function a109_0x3830(){const _0x1898e0=['The\x20configuration\x20was\x20not\x20saved.\x20Verify\x20the\x20host,\x20credentials,\x20database\x20name,\x20network,\x20and\x20allowlist,\x20or\x20explicitly\x20pass\x20--skip-connection-test.','isFinite','token','code','length','password','801974nflXzQ','jdbcurl','dbtableConfig','3071664rERGLX','name','connectionstring','3906820tvJqmL','filter','[redacted]','includes','36wOuSdA','authorization','toLowerCase','/data/database','216438RYcTpi','935928fPPGul','test','number','accesskey','privatekey','tableName','dbpassword','passwd','map','trim','hasAvailableDo','29816rmGUsz','apiError','1395345irljff','9xIVFdR','credential','637nLypNc'];a109_0x3830=function(){return _0x1898e0;};return a109_0x3830();}
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 a110_0x4cdac4=a110_0x3df4;(function(_0x3dc7dd,_0x3283e8){const _0x5e885c=a110_0x3df4,_0x3b1be5=_0x3dc7dd();while(!![]){try{const _0x4540a4=parseInt(_0x5e885c(0x1fc))/0x1*(-parseInt(_0x5e885c(0x1ff))/0x2)+parseInt(_0x5e885c(0x1ee))/0x3+parseInt(_0x5e885c(0x1ef))/0x4*(parseInt(_0x5e885c(0x1fe))/0x5)+-parseInt(_0x5e885c(0x1f5))/0x6+parseInt(_0x5e885c(0x1f2))/0x7+-parseInt(_0x5e885c(0x1f1))/0x8*(parseInt(_0x5e885c(0x1ed))/0x9)+parseInt(_0x5e885c(0x1fb))/0xa;if(_0x4540a4===_0x3283e8)break;else _0x3b1be5['push'](_0x3b1be5['shift']());}catch(_0x1e4eaf){_0x3b1be5['push'](_0x3b1be5['shift']());}}}(a110_0xc9a6,0x43b39));function a110_0xc9a6(){const _0x4536ae=['totalCount','3458872eEEreH','2800182zzdtDt','length','\x20row(s).','2249934CBleaX','summary','tableList','set','physicalTableCount','ALREADY_ANALYZED','6073070PZxfww','355762fjBvSt','MODIFIED_TABLE','117815loqOur','2snYfWK','datasetTableCount','DELETED_TABLE','Incomplete\x20db\x20table\x20pagination:\x20collected\x20','NEW_TABLE','validation','size','filter','9Zerayh','309600sRtktC','56EexfmP'];a110_0xc9a6=function(){return _0x4536ae;};return a110_0xc9a6();}import{CliErrors}from'../../errors.js';export const DB_TABLE_PAGE_SIZE=0x64;export const DB_TABLE_DIFF_TYPES=[a110_0x4cdac4(0x1e9),a110_0x4cdac4(0x1fd),a110_0x4cdac4(0x201),a110_0x4cdac4(0x1fa)];export function summarizeDbTableDiff(_0x22882a){const _0x2bcb9b=a110_0x4cdac4;return Object['fromEntries'](DB_TABLE_DIFF_TYPES['map'](_0x246411=>[_0x246411,_0x22882a[_0x2bcb9b(0x1ec)](_0x713c01=>_0x713c01['diffType']===_0x246411)[_0x2bcb9b(0x1f3)]]));}function a110_0x3df4(_0x5874eb,_0x4c76fc){_0x5874eb=_0x5874eb-0x1e9;const _0xc9a6f9=a110_0xc9a6();let _0x3df40c=_0xc9a6f9[_0x5874eb];return _0x3df40c;}export async function getAllDbTableDiff(_0x28f67a,_0x3028c4,_0x3232bb,_0x27d79c){const _0x42a952=a110_0x4cdac4,_0x182687=new Map();let _0x53430d=0x1,_0x51e37e=null;while(!![]){_0x51e37e=await _0x28f67a(_0x3028c4,_0x3232bb,{'pageIndex':_0x53430d,'pageSize':DB_TABLE_PAGE_SIZE,'tableName':_0x27d79c});const _0x2e1b5f=_0x182687['size'];for(const _0x5c74d7 of _0x51e37e[_0x42a952(0x1f7)]){_0x182687[_0x42a952(0x1f8)](_0x5c74d7['tableName'],_0x5c74d7);}if(_0x182687[_0x42a952(0x1eb)]>=_0x51e37e['totalCount'])break;if(_0x51e37e[_0x42a952(0x1f7)][_0x42a952(0x1f3)]===0x0||_0x182687[_0x42a952(0x1eb)]===_0x2e1b5f)throw CliErrors[_0x42a952(0x1ea)](_0x42a952(0x202)+_0x182687[_0x42a952(0x1eb)]+'\x20of\x20'+_0x51e37e['totalCount']+_0x42a952(0x1f4));_0x53430d+=0x1;}return{'totalCount':_0x51e37e?.[_0x42a952(0x1f0)]??0x0,...typeof _0x51e37e?.[_0x42a952(0x1f9)]==='number'?{'physicalTableCount':_0x51e37e[_0x42a952(0x1f9)]}:{},...typeof _0x51e37e?.[_0x42a952(0x200)]==='number'?{'datasetTableCount':_0x51e37e[_0x42a952(0x200)]}:{},..._0x51e37e?.[_0x42a952(0x1f6)]?{'summary':_0x51e37e[_0x42a952(0x1f6)]}:{},'tableList':[..._0x182687['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 a111_0xf37538=a111_0x1ce0;(function(_0x42c3d3,_0x3f68ce){const _0x145d56=a111_0x1ce0,_0x497662=_0x42c3d3();while(!![]){try{const _0x58e304=-parseInt(_0x145d56(0x16d))/0x1*(parseInt(_0x145d56(0x176))/0x2)+parseInt(_0x145d56(0x16c))/0x3+-parseInt(_0x145d56(0x16f))/0x4*(-parseInt(_0x145d56(0x178))/0x5)+parseInt(_0x145d56(0x168))/0x6*(parseInt(_0x145d56(0x165))/0x7)+parseInt(_0x145d56(0x166))/0x8+-parseInt(_0x145d56(0x179))/0x9*(parseInt(_0x145d56(0x177))/0xa)+-parseInt(_0x145d56(0x175))/0xb;if(_0x58e304===_0x3f68ce)break;else _0x497662['push'](_0x497662['shift']());}catch(_0x25a249){_0x497662['push'](_0x497662['shift']());}}}(a111_0x54fd,0xa3a52));function a111_0x1ce0(_0x24d27e,_0x113465){_0x24d27e=_0x24d27e-0x161;const _0x54fdb3=a111_0x54fd();let _0x1ce08a=_0x54fdb3[_0x24d27e];return _0x1ce08a;}function a111_0x54fd(){const _0x31e8d4=['read','table','totalCount','42cHuUOX','791192IveMoD','datasetTableCount','841692Kxalzn','physicalTableCount','str','tableList','2426124xEiZIU','4XroWKa','length','4WnGqig','\x20table\x20comparison\x20row(s),\x20total\x20','number','string','\x20(db\x20link\x20','List\x20all\x20database\x20table\x20comparison\x20rows\x20and\x20analysis\x20states','5255195kNWXtw','89566skCDNl','33790XzKlEF','1335920STOoYh','1836QeaItD','num','summary'];a111_0x54fd=function(){return _0x31e8d4;};return a111_0x54fd();}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':'tables','description':a111_0xf37538(0x174),'risk':a111_0xf37538(0x162),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':'table','type':a111_0xf37538(0x172),'description':'Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)'}],async 'execute'(_0x18d852){const _0x424985=a111_0xf37538,_0x6e22e9=_0x18d852[_0x424985(0x17a)]('id'),_0x4a4c53=_0x18d852[_0x424985(0x16a)](_0x424985(0x163))||undefined,_0x15e1b5=await getAllDbTableDiff(getDbTableComparisonPage,_0x18d852['appCode'],_0x6e22e9,_0x4a4c53),_0x40b674=_0x15e1b5[_0x424985(0x16b)];return{'ok':!![],'data':{'dbLinkId':_0x6e22e9,'totalCount':_0x15e1b5[_0x424985(0x164)],...typeof _0x15e1b5[_0x424985(0x169)]===_0x424985(0x171)?{'physicalTableCount':_0x15e1b5[_0x424985(0x169)]}:{},...typeof _0x15e1b5[_0x424985(0x167)]==='number'?{'datasetTableCount':_0x15e1b5[_0x424985(0x167)]}:{},..._0x15e1b5[_0x424985(0x161)]?{'summary':_0x15e1b5[_0x424985(0x161)]}:{},'summaryByType':summarizeDbTableDiff(_0x40b674),'tables':_0x40b674},'message':_0x40b674[_0x424985(0x16e)]+_0x424985(0x170)+_0x15e1b5[_0x424985(0x164)]+_0x424985(0x173)+_0x6e22e9+')'};}};
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 a112_0x3387b0=a112_0x4e89;function a112_0x28ee(){const _0x3df19a=['6shnudK','88308dFQxee','3FGWppL','error','length','object','\x20(see\x20data.result)','Connection\x20check\x20finished\x20for\x20db\x20link\x20','Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)','message','msg','read','36phDPVS','test','7400244gDmLep','1898180AIUCyW','data','511553oHvBXf','keys','43184Bmytdd','15LhQKij','slice','282621eiBzrM','216088qOQVHw','code','11lOdcqL','success'];a112_0x28ee=function(){return _0x3df19a;};return a112_0x28ee();}(function(_0xf36f1d,_0x45950e){const _0x229523=a112_0x4e89,_0x5a2af1=_0xf36f1d();while(!![]){try{const _0x2ec77c=-parseInt(_0x229523(0x178))/0x1*(parseInt(_0x229523(0x177))/0x2)+-parseInt(_0x229523(0x18c))/0x3+parseInt(_0x229523(0x189))/0x4*(-parseInt(_0x229523(0x18a))/0x5)+parseInt(_0x229523(0x176))/0x6*(parseInt(_0x229523(0x187))/0x7)+-parseInt(_0x229523(0x18d))/0x8*(parseInt(_0x229523(0x182))/0x9)+-parseInt(_0x229523(0x185))/0xa*(parseInt(_0x229523(0x174))/0xb)+parseInt(_0x229523(0x184))/0xc;if(_0x2ec77c===_0x45950e)break;else _0x5a2af1['push'](_0x5a2af1['shift']());}catch(_0x25d627){_0x5a2af1['push'](_0x5a2af1['shift']());}}}(a112_0x28ee,0x206ef));import{testDbLinkConnect}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function summarizeTestConnectResult(_0x5cb431){const _0x5ee9d8=a112_0x4e89;if(_0x5cb431===!![]||_0x5cb431===![])return{'success':_0x5cb431};if(_0x5cb431===null||_0x5cb431===undefined)return{'type':typeof _0x5cb431};if(typeof _0x5cb431!==_0x5ee9d8(0x17b))return{'type':typeof _0x5cb431};const _0x40e73b=_0x5cb431,_0x3fe8bb=['success',_0x5ee9d8(0x17f),_0x5ee9d8(0x18e),_0x5ee9d8(0x179),_0x5ee9d8(0x180),_0x5ee9d8(0x186)],_0x42be25={};for(const _0x8672c6 of _0x3fe8bb){if(_0x8672c6 in _0x40e73b)_0x42be25[_0x8672c6]=_0x40e73b[_0x8672c6];}return Object['keys'](_0x42be25)[_0x5ee9d8(0x17a)]===0x0&&(_0x42be25['keys']=Object[_0x5ee9d8(0x188)](_0x40e73b)[_0x5ee9d8(0x18b)](0x0,0x14)),_0x42be25;}function a112_0x4e89(_0x460f85,_0x20e133){_0x460f85=_0x460f85-0x174;const _0x28ee6c=a112_0x28ee();let _0x4e890d=_0x28ee6c[_0x460f85];return _0x4e890d;}export const dbTest={'service':'db','command':a112_0x3387b0(0x183),'description':a112_0x3387b0(0x17e),'risk':a112_0x3387b0(0x181),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x177bd4){const _0x38696d=a112_0x3387b0,_0x11da49=_0x177bd4['num']('id'),_0x37e538=await testDbLinkConnect(_0x11da49),_0x7168d9=_0x37e538===!![]||typeof _0x37e538===_0x38696d(0x17b)&&_0x37e538!==null&&_0x37e538[_0x38696d(0x175)]===!![],_0x47197d=summarizeTestConnectResult(_0x37e538);return{'ok':!![],'data':{'id':_0x11da49,'connected':Boolean(_0x7168d9),'result':_0x47197d},'message':_0x7168d9?'Connection\x20OK\x20for\x20db\x20link\x20'+_0x11da49:_0x38696d(0x17d)+_0x11da49+_0x38696d(0x17c)};}};
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 a113_0x5936af=a113_0x573b;function a113_0x573b(_0x23e990,_0x52ca21){_0x23e990=_0x23e990-0x1c2;const _0x8bb72=a113_0x8bb7();let _0x573bf3=_0x8bb72[_0x23e990];return _0x573bf3;}(function(_0x57d267,_0x2595f7){const _0x121b96=a113_0x573b,_0x327502=_0x57d267();while(!![]){try{const _0x447b83=-parseInt(_0x121b96(0x1d1))/0x1+-parseInt(_0x121b96(0x1e4))/0x2+-parseInt(_0x121b96(0x1e1))/0x3+-parseInt(_0x121b96(0x1d5))/0x4+-parseInt(_0x121b96(0x1c6))/0x5*(parseInt(_0x121b96(0x1c8))/0x6)+-parseInt(_0x121b96(0x1c2))/0x7*(parseInt(_0x121b96(0x1c9))/0x8)+parseInt(_0x121b96(0x1df))/0x9*(parseInt(_0x121b96(0x1e9))/0xa);if(_0x447b83===_0x2595f7)break;else _0x327502['push'](_0x327502['shift']());}catch(_0x2a0fbe){_0x327502['push'](_0x327502['shift']());}}}(a113_0x8bb7,0x6dfa6));import{getDbLinkInfo,updateDbLink}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG,SKIP_CONNECTION_TEST_FLAG}from'../../commands/common/flags.js';import{assertDbLinkConnectionPreflight,sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';function a113_0x8bb7(){const _0x237ec1=['32335670nYehxk','--password\x20must\x20contain\x20the\x20real\x20database\x20password,\x20not\x20a\x20masked\x20value.','Update\x20a\x20database\x20connection\x20by\x20merging\x20supplied\x20fields\x20into\x20the\x20current\x20server\x20record.\x20A\x20masked\x20server\x20password\x20requires\x20explicit\x20--password','/smartapi/dblink/update','dburl','7NbTQok','New\x20username','******','dbUrl','40315Vkrvmw','POST','318hmKwtQ','1934728VPvTuR','dbDesc','trim','Updated\x20db\x20link\x20','update','username','dbParam','str','342783LOkjNp','New\x20description','validation','num','2876160UdpDKQ','dbparam','password','Preview\x20the\x20merged\x20database\x20connection\x20update;\x20password\x20redacted','Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22','The\x20server\x20returned\x20a\x20masked\x20database\x20password.\x20Pass\x20the\x20current\x20or\x20replacement\x20password\x20explicitly\x20with\x20--password\x20to\x20update\x20this\x20connection\x20safely.','dbdesc','write','New\x20host:port','dbname','9TAWNMz','Current\x20or\x20replacement\x20password.\x20Required\x20when\x20the\x20stored\x20password\x20is\x20masked','1936362EhXKqb','string','New\x20connection\x20parameter\x20string','813280ZQthHe','bool','skip-connection-test','has','dbName'];a113_0x8bb7=function(){return _0x237ec1;};return a113_0x8bb7();}import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';const MASKED_PASSWORD_VALUES=new Set([a113_0x5936af(0x1c4),'[redacted]']);function mergeDbLinkUpdate(_0x176cc4,_0x4a2494){const _0x1e3ab7=a113_0x5936af,_0x300c89={..._0x176cc4},_0x23868=_0x4a2494[_0x1e3ab7(0x1d0)](_0x1e3ab7(0x1d7));if(_0x23868&&MASKED_PASSWORD_VALUES['has'](_0x23868))throw CliErrors['validation'](_0x1e3ab7(0x1ea));if(!_0x23868&&MASKED_PASSWORD_VALUES[_0x1e3ab7(0x1e7)](String(_0x176cc4[_0x1e3ab7(0x1d7)]??'')))throw CliErrors[_0x1e3ab7(0x1d3)](_0x1e3ab7(0x1da));const _0x409b7b=_0x4a2494[_0x1e3ab7(0x1d0)](_0x1e3ab7(0x1de));if(_0x409b7b)_0x300c89[_0x1e3ab7(0x1e8)]=_0x409b7b;const _0x4e3f31=_0x4a2494[_0x1e3ab7(0x1d0)](_0x1e3ab7(0x1ed));if(_0x4e3f31)_0x300c89[_0x1e3ab7(0x1c5)]=_0x4e3f31[_0x1e3ab7(0x1cb)]();const _0x3ce1a2=_0x4a2494[_0x1e3ab7(0x1d0)](_0x1e3ab7(0x1ce));if(_0x3ce1a2)_0x300c89[_0x1e3ab7(0x1ce)]=_0x3ce1a2;if(_0x23868)_0x300c89[_0x1e3ab7(0x1d7)]=_0x23868;const _0x2a9ae8=_0x4a2494[_0x1e3ab7(0x1d0)](_0x1e3ab7(0x1d6));if(_0x2a9ae8)_0x300c89[_0x1e3ab7(0x1cf)]=_0x2a9ae8;const _0x2c226b=_0x4a2494[_0x1e3ab7(0x1d0)](_0x1e3ab7(0x1db));if(_0x2c226b)_0x300c89[_0x1e3ab7(0x1ca)]=_0x2c226b;return _0x300c89;}export const dbUpdate={'service':'db','command':a113_0x5936af(0x1cd),'description':a113_0x5936af(0x1eb),'risk':a113_0x5936af(0x1dc),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':'dbname','type':a113_0x5936af(0x1e2),'description':'New\x20database\x20name'},{'name':a113_0x5936af(0x1ed),'type':a113_0x5936af(0x1e2),'description':a113_0x5936af(0x1dd)},{'name':a113_0x5936af(0x1ce),'type':a113_0x5936af(0x1e2),'description':a113_0x5936af(0x1c3)},{'name':a113_0x5936af(0x1d7),'type':'string','description':a113_0x5936af(0x1e0)},{'name':a113_0x5936af(0x1d6),'type':'string','description':a113_0x5936af(0x1e3)},{'name':a113_0x5936af(0x1db),'type':a113_0x5936af(0x1e2),'description':a113_0x5936af(0x1d2)},SKIP_CONNECTION_TEST_FLAG],async 'validate'(_0x254159){const _0x10b3a4=a113_0x5936af,_0x2e3de8=_0x254159[_0x10b3a4(0x1d0)](_0x10b3a4(0x1ed));if(_0x2e3de8&&!validateDbUrl(_0x2e3de8['trim']()))throw CliErrors[_0x10b3a4(0x1d3)](_0x10b3a4(0x1d9)+_0x2e3de8+'\x22');},async 'dryRun'(_0x3dd1d9){const _0x16732d=a113_0x5936af,_0x24c521=_0x3dd1d9['num']('id'),_0x549397=await getDbLinkInfo(_0x24c521),_0x2a2cc2=mergeDbLinkUpdate(_0x549397,_0x3dd1d9),_0x2bb876=sanitizeDbLinkForOutput(_0x2a2cc2);return{'method':_0x16732d(0x1c7),'url':_0x16732d(0x1ec),'body':_0x2bb876,'description':_0x16732d(0x1d8),'connectionPreflight':{'enabled':!_0x3dd1d9[_0x16732d(0x1e5)]('skip-connection-test'),'executed':![]}};},async 'execute'(_0x2222d8){const _0x1ffe92=a113_0x5936af,_0xfc05ff=_0x2222d8[_0x1ffe92(0x1d4)]('id'),_0x3e941c=await getDbLinkInfo(_0xfc05ff),_0x54ecbf=mergeDbLinkUpdate(_0x3e941c,_0x2222d8);!_0x2222d8[_0x1ffe92(0x1e5)](_0x1ffe92(0x1e6))&&await assertDbLinkConnectionPreflight(_0x54ecbf);const {id:_0x24e1cf,entity:_0x3c5fd0}=normalizeEntityWithIdResponse(await updateDbLink(_0x54ecbf));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x3c5fd0),'message':_0x1ffe92(0x1cc)+(_0x24e1cf??_0xfc05ff)};}};
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(_0x194bae,_0x498f31){const _0x138d97=a114_0x1390,_0x24706f=_0x194bae();while(!![]){try{const _0x16c8ab=-parseInt(_0x138d97(0x83))/0x1*(parseInt(_0x138d97(0x84))/0x2)+-parseInt(_0x138d97(0x89))/0x3+parseInt(_0x138d97(0x8c))/0x4*(-parseInt(_0x138d97(0x88))/0x5)+-parseInt(_0x138d97(0x8b))/0x6*(parseInt(_0x138d97(0x86))/0x7)+parseInt(_0x138d97(0x85))/0x8*(-parseInt(_0x138d97(0x87))/0x9)+-parseInt(_0x138d97(0x8a))/0xa+parseInt(_0x138d97(0x8d))/0xb;if(_0x16c8ab===_0x498f31)break;else _0x24706f['push'](_0x24706f['shift']());}catch(_0x49d020){_0x24706f['push'](_0x24706f['shift']());}}}(a114_0x6b6c,0xdae20));import{deploymentSyncAll}from'../../commands/deployment/sync-all.js';function a114_0x1390(_0x1dbda2,_0x4f28ec){_0x1dbda2=_0x1dbda2-0x83;const _0x6b6c4b=a114_0x6b6c();let _0x139093=_0x6b6c4b[_0x1dbda2];return _0x139093;}function a114_0x6b6c(){const _0x540122=['607032ROLRrF','10052540wdUCZb','4531476YwLhwE','69364PagLIP','84188874vlLmhl','1515007sZWEJS','2lkxwxc','32XTArKQ','14ikrCNt','2674431JfQWGF','385EztflU'];a114_0x6b6c=function(){return _0x540122;};return a114_0x6b6c();}import{deploymentSyncStatus}from'../../commands/deployment/sync-status.js';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 a115_0x152a46=a115_0x5480;(function(_0x95055b,_0x418b2b){const _0x46decf=a115_0x5480,_0x4f26f0=_0x95055b();while(!![]){try{const _0x5c8e92=-parseInt(_0x46decf(0x8b))/0x1+-parseInt(_0x46decf(0x90))/0x2+-parseInt(_0x46decf(0x95))/0x3+-parseInt(_0x46decf(0x8e))/0x4+-parseInt(_0x46decf(0x7d))/0x5+parseInt(_0x46decf(0x97))/0x6+parseInt(_0x46decf(0x86))/0x7*(parseInt(_0x46decf(0x98))/0x8);if(_0x5c8e92===_0x418b2b)break;else _0x4f26f0['push'](_0x4f26f0['shift']());}catch(_0x4587de){_0x4f26f0['push'](_0x4f26f0['shift']());}}}(a115_0x1500,0xcadc0));function a115_0x5480(_0x4f9dc5,_0x4c99f7){_0x4f9dc5=_0x4f9dc5-0x79;const _0x1500f4=a115_0x1500();let _0x5480fd=_0x1500f4[_0x4f9dc5];return _0x5480fd;}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 a115_0x1500(){const _0x11eff=['sync-all','POST','Would\x20submit\x20an\x20administrative\x20deployment\x20metadata\x20backfill\x20or\x20recovery\x20job.','No\x20deployment\x20synchronization\x20was\x20needed\x20for\x20this\x20app.','Confirm\x20the\x20administrative\x20backfill\x20or\x20recovery\x20synchronization','not_needed','unknown','job','196qNJDvP','not_submitted','data','List\x20recent\x20deployment\x20sync\x20jobs\x20before\x20deciding\x20whether\x20to\x20submit\x20again.','jobId','432135ycMNyf','--confirm\x20is\x20required\x20to\x20synchronize\x20all\x20application\x20metadata.','Deployment\x20sync\x20submission\x20response\x20was\x20unavailable;\x20job\x20creation\x20is\x20unknown.','4488172WzPjgb','defineProperty','546852IRGRJe','Run\x20with\x20--dry-run\x20first,\x20then\x20add\x20--confirm.','write','application_deployment_sync','appCode','4377648gRNHjz','all_server_supported_metadata','5776074lmFvhw','981328ulhrQV','Submit\x20an\x20administrative\x20metadata\x20backfill\x20or\x20recovery\x20synchronization.','Backfill\x20or\x20recover\x20all\x20server-supported\x20application\x20metadata','Submitted\x20deployment\x20synchronization\x20job\x20','boolean','/smartapi/data-sync/submit','deployment','1397975TyENGa'];a115_0x1500=function(){return _0x11eff;};return a115_0x1500();}const SUBMIT_PATH=a115_0x152a46(0x7b),CONFIRM_FLAG={'name':'confirm','type':a115_0x152a46(0x7a),'description':a115_0x152a46(0x82)};export const deploymentSyncAll={'service':a115_0x152a46(0x7c),'command':a115_0x152a46(0x7e),'description':a115_0x152a46(0x9a),'risk':a115_0x152a46(0x92),'strictFlags':!![],'structuredErrors':!![],'confirmationDescription':a115_0x152a46(0x99),'flags':[CONFIRM_FLAG,APPCODE_FLAG_OPTIONAL],async 'dryRun'(_0x5e0f1e){const _0x19e72b=a115_0x152a46;return asDryRunResult(buildPreview(_0x5e0f1e['appCode']),{'method':_0x19e72b(0x7f),'url':SUBMIT_PATH,'description':_0x19e72b(0x80)});},async 'execute'(_0x5acf39){const _0x25001f=a115_0x152a46;if(!_0x5acf39['bool']('confirm'))throw CliErrors['validation'](_0x25001f(0x8c),_0x25001f(0x91));try{const _0x4a101a=await submitDeploymentMetadataSyncAll({'appCode':_0x5acf39[_0x25001f(0x94)]});if(_0x4a101a['outcome']===_0x25001f(0x83))return{'ok':!![],'data':{'operation':_0x25001f(0x93),'appCode':_0x5acf39[_0x25001f(0x94)],'submitted':![],'outcome':'not_needed'},'message':_0x25001f(0x81)};return{'ok':!![],'data':{'operation':'application_deployment_sync','appCode':_0x5acf39[_0x25001f(0x94)],'submitted':!![],'outcome':'submitted','jobId':_0x4a101a[_0x25001f(0x85)][_0x25001f(0x8a)],'status':_0x4a101a[_0x25001f(0x85)]['status']},'message':_0x25001f(0x79)+_0x4a101a[_0x25001f(0x85)][_0x25001f(0x8a)]+'.'};}catch(_0x98401c){if(!isPlatformTransportFailure(_0x98401c))throw _0x98401c;const _0x391f84=new CliError('deployment_sync_submit_outcome_unknown',0x2,_0x25001f(0x8d),_0x25001f(0x89));Object[_0x25001f(0x8f)](_0x391f84,_0x25001f(0x88),{'enumerable':!![],'value':{'operation':_0x25001f(0x93),'appCode':_0x5acf39['appCode'],'submitted':null,'outcome':_0x25001f(0x84)}});throw _0x391f84;}}};function buildPreview(_0xc09638){const _0xb4e472=a115_0x152a46;return{'operation':'application_deployment_sync','selector':{'appCode':_0xc09638,'scope':_0xb4e472(0x96)},'before':null,'after':null,'dryRun':!![],'backend':{'submitted':![],'outcome':_0xb4e472(0x87)},'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
- function a116_0x3161(_0x44fa7d,_0x36088e){_0x44fa7d=_0x44fa7d-0x1de;const _0x25ada8=a116_0x25ad();let _0x316161=_0x25ada8[_0x44fa7d];return _0x316161;}const a116_0x53061e=a116_0x3161;(function(_0x432872,_0xa244b0){const _0xe6e4e0=a116_0x3161,_0xd7d363=_0x432872();while(!![]){try{const _0xf5d76b=-parseInt(_0xe6e4e0(0x1f2))/0x1*(parseInt(_0xe6e4e0(0x1fc))/0x2)+-parseInt(_0xe6e4e0(0x1fa))/0x3*(parseInt(_0xe6e4e0(0x1eb))/0x4)+-parseInt(_0xe6e4e0(0x1ed))/0x5*(-parseInt(_0xe6e4e0(0x1f4))/0x6)+parseInt(_0xe6e4e0(0x1f6))/0x7*(-parseInt(_0xe6e4e0(0x1fd))/0x8)+-parseInt(_0xe6e4e0(0x1f8))/0x9*(parseInt(_0xe6e4e0(0x1ee))/0xa)+parseInt(_0xe6e4e0(0x1e6))/0xb+parseInt(_0xe6e4e0(0x1e2))/0xc*(parseInt(_0xe6e4e0(0x1e0))/0xd);if(_0xf5d76b===_0xa244b0)break;else _0xd7d363['push'](_0xd7d363['shift']());}catch(_0x3ff153){_0xd7d363['push'](_0xd7d363['shift']());}}}(a116_0x25ad,0x63f63));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{listDeploymentMetadataSyncJobs}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a116_0x25ad(){const _0x3a4483=['35uzdMDn','99410SSVbne','items','Found\x20','read','93ZdbFvT','number','559842iOpQXw','current-page','91763OFRxyu','string','36NIcPKr','str','15QKcxNZ','Page\x20number','966RJqViL','56aygFBG','validation','Items\x20per\x20page\x20(maximum\x20100)','List\x20application\x20deployment\x20synchronization\x20jobs','page-size','1001dQaCXr','trim','8136luwuCl','\x20deployment\x20synchronization\x20job(s).','status','appCode','5624564MhZXaz','--current-page\x20must\x20be\x20a\x20positive\x20integer.','num','isSafeInteger','Optional\x20server-defined\x20job\x20status\x20filter','504632cAhvAk','deployment'];a116_0x25ad=function(){return _0x3a4483;};return a116_0x25ad();}export const deploymentSyncJobs={'service':a116_0x53061e(0x1ec),'command':'sync-jobs','description':a116_0x53061e(0x1de),'risk':a116_0x53061e(0x1f1),'strictFlags':!![],'structuredErrors':!![],'flags':[{'name':a116_0x53061e(0x1f5),'type':a116_0x53061e(0x1f3),'default':0x1,'description':a116_0x53061e(0x1fb)},{'name':'page-size','type':'number','default':0xa,'description':a116_0x53061e(0x1ff)},{'name':'status','type':a116_0x53061e(0x1f7),'description':a116_0x53061e(0x1ea)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x4e9f2c){const _0x1c0385=a116_0x53061e;readPaging(_0x4e9f2c[_0x1c0385(0x1e8)]('current-page',0x1),_0x4e9f2c[_0x1c0385(0x1e8)]('page-size',0xa));},async 'execute'(_0x4930f3){const _0x24c8b5=a116_0x53061e,{currentPage:_0x32cf0c,pageSize:_0x219d3b}=readPaging(_0x4930f3[_0x24c8b5(0x1e8)](_0x24c8b5(0x1f5),0x1),_0x4930f3['num'](_0x24c8b5(0x1df),0xa)),_0x5152cd=_0x4930f3[_0x24c8b5(0x1f9)](_0x24c8b5(0x1e4))[_0x24c8b5(0x1e1)](),_0x490838=await listDeploymentMetadataSyncJobs({'appCode':_0x4930f3['appCode'],'currentPage':_0x32cf0c,'pageSize':_0x219d3b,..._0x5152cd?{'status':_0x5152cd}:{}});return{'ok':!![],'data':{'appCode':_0x4930f3[_0x24c8b5(0x1e5)],..._0x490838},'message':_0x24c8b5(0x1f0)+_0x490838[_0x24c8b5(0x1ef)]['length']+_0x24c8b5(0x1e3)};}};function readPaging(_0x36a641,_0x392ea2){const _0x2af88d=a116_0x53061e;if(!Number[_0x2af88d(0x1e9)](_0x36a641)||_0x36a641<0x1)throw CliErrors['validation'](_0x2af88d(0x1e7));if(!Number[_0x2af88d(0x1e9)](_0x392ea2)||_0x392ea2<0x1||_0x392ea2>0x64)throw CliErrors[_0x2af88d(0x1fe)]('--page-size\x20must\x20be\x20an\x20integer\x20from\x201\x20to\x20100.');return{'currentPage':_0x36a641,'pageSize':_0x392ea2};}
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
- function a117_0x17c9(_0x1ebfe8,_0x5b4d53){_0x1ebfe8=_0x1ebfe8-0x9d;const _0x548564=a117_0x5485();let _0x17c993=_0x548564[_0x1ebfe8];return _0x17c993;}const a117_0x164f13=a117_0x17c9;(function(_0xcab8cb,_0x3b061a){const _0x394aac=a117_0x17c9,_0x344608=_0xcab8cb();while(!![]){try{const _0x54d721=-parseInt(_0x394aac(0xba))/0x1+-parseInt(_0x394aac(0xa6))/0x2*(-parseInt(_0x394aac(0xb1))/0x3)+parseInt(_0x394aac(0xc1))/0x4+parseInt(_0x394aac(0xbd))/0x5*(parseInt(_0x394aac(0xb0))/0x6)+-parseInt(_0x394aac(0xad))/0x7*(parseInt(_0x394aac(0xa3))/0x8)+parseInt(_0x394aac(0xc2))/0x9*(parseInt(_0x394aac(0xb8))/0xa)+-parseInt(_0x394aac(0xab))/0xb;if(_0x54d721===_0x3b061a)break;else _0x344608['push'](_0x344608['shift']());}catch(_0x9b67cd){_0x344608['push'](_0x344608['shift']());}}}(a117_0x5485,0x6d16b));import{getDeploymentMetadataSyncStatus}from'../../core/api-client.js';function a117_0x5485(){const _0x5a8405=[';\x20terminal\x20state\x20is\x20unknown\x20to\x20this\x20CLI\x20version.','1589BjGscR','\x20is\x20','map','66gWPFlt','2296086HJKFlB','PARTIAL_SUCCESS','read','SUCCESS','Get\x20application\x20deployment\x20synchronization\x20job\x20status','--job-id\x20must\x20be\x20a\x20positive\x20integer.','Preserved\x20server-defined\x20status\x20','30gyJHJS','validation','846973JCtdjC','Deployment\x20synchronization\x20job\x20','num','183615TBynIL','number','reduce','length','1270636OtqYjz','1090098PCqiTB','bizType','Deployment\x20synchronization\x20job\x20ID','results','FAILED','RUNNING','appCode','2616nnWGwN','isSafeInteger','has','2AGwvzf','deployment','action','status','job-id','5305421WinkFp'];a117_0x5485=function(){return _0x5a8405;};return a117_0x5485();}import{CliErrors}from'../../errors.js';const TERMINAL_STATUSES=new Set([a117_0x164f13(0xb4),a117_0x164f13(0xb2),a117_0x164f13(0xa0)]),ACTIVE_STATUSES=new Set(['PENDING',a117_0x164f13(0xa1)]);export const deploymentSyncStatus={'service':a117_0x164f13(0xa7),'command':'sync-status','description':a117_0x164f13(0xb5),'risk':a117_0x164f13(0xb3),'requiresAppCode':!![],'strictFlags':!![],'structuredErrors':!![],'flags':[{'name':a117_0x164f13(0xaa),'type':a117_0x164f13(0xbe),'required':!![],'description':a117_0x164f13(0x9e)}],async 'validate'(_0x815cb8){const _0x57ca8d=a117_0x164f13;readJobId(_0x815cb8['num'](_0x57ca8d(0xaa)));},async 'execute'(_0x446702){const _0x33e63b=a117_0x164f13,_0x1397f2=readJobId(_0x446702[_0x33e63b(0xbc)](_0x33e63b(0xaa))),_0x32b29d=await getDeploymentMetadataSyncStatus({'jobId':_0x1397f2,'appCode':_0x446702[_0x33e63b(0xa2)]}),_0x34474a=TERMINAL_STATUSES[_0x33e63b(0xa5)](_0x32b29d[_0x33e63b(0xa9)])?!![]:ACTIVE_STATUSES[_0x33e63b(0xa5)](_0x32b29d[_0x33e63b(0xa9)])?![]:null,_0x5760a9=countBy(_0x32b29d[_0x33e63b(0x9f)]['map'](_0xa8d7c0=>_0xa8d7c0[_0x33e63b(0x9d)])),_0x177fff=countBy(_0x32b29d[_0x33e63b(0x9f)][_0x33e63b(0xaf)](_0xfe7657=>_0xfe7657[_0x33e63b(0xa8)])),_0x451c0e=_0x34474a===null?[_0x33e63b(0xb7)+_0x32b29d['status']+_0x33e63b(0xac)]:[];return{'ok':!![],'data':{'job':_0x32b29d,'isTerminal':_0x34474a,'summary':{'total':_0x32b29d[_0x33e63b(0x9f)][_0x33e63b(0xc0)],'failed':_0x32b29d[_0x33e63b(0x9f)]['filter'](_0x26a122=>_0x26a122[_0x33e63b(0xa8)]==='FAILED')['length'],'byBizType':_0x5760a9,'byAction':_0x177fff},'warnings':_0x451c0e},'message':_0x33e63b(0xbb)+_0x1397f2+_0x33e63b(0xae)+_0x32b29d[_0x33e63b(0xa9)]+'.'};}};function readJobId(_0x1dbee4){const _0x41b6b2=a117_0x164f13;if(!Number[_0x41b6b2(0xa4)](_0x1dbee4)||_0x1dbee4<=0x0)throw CliErrors[_0x41b6b2(0xb9)](_0x41b6b2(0xb6));return _0x1dbee4;}function countBy(_0x42c40b){const _0x2b0f82=a117_0x164f13;return _0x42c40b[_0x2b0f82(0xbf)]((_0x193520,_0x1ba9ad)=>{return _0x193520[_0x1ba9ad]=(_0x193520[_0x1ba9ad]??0x0)+0x1,_0x193520;},{});}
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 a118_0xb5be17=a118_0x2ddc;(function(_0x2f4d3d,_0x2feb01){const _0x3a8176=a118_0x2ddc,_0x45c009=_0x2f4d3d();while(!![]){try{const _0x19a9b9=parseInt(_0x3a8176(0xc5))/0x1*(parseInt(_0x3a8176(0x128))/0x2)+parseInt(_0x3a8176(0xcb))/0x3+-parseInt(_0x3a8176(0x104))/0x4+parseInt(_0x3a8176(0x112))/0x5+parseInt(_0x3a8176(0xf1))/0x6+parseInt(_0x3a8176(0x134))/0x7+parseInt(_0x3a8176(0x116))/0x8*(-parseInt(_0x3a8176(0xf8))/0x9);if(_0x19a9b9===_0x2feb01)break;else _0x45c009['push'](_0x45c009['shift']());}catch(_0x2bac51){_0x45c009['push'](_0x45c009['shift']());}}}(a118_0x1fd9,0x424e6));import a118_0xab1d9d from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';import{getActiveRegion,getApiDomain,getAppDomain,getKbDomain,getKbServiceDomain,getSkillDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags,initGlobalEnvironment,inspectCliConfigJsonFile,loadRawConfigLayers}from'../context.js';function a118_0x1fd9(){const _0x452da4=['(missing)','red','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','projectConfig','push','riskLevel','2350240zaTfrT','\x20config\x20delete\x20region\x20--global','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','bold','15944RijLrM','(none)','length','not\x20configured','(default:\x20','missing','Global','yellow','(default)','globalConfig','stringify','apiDir','Repair\x20','\x20app\x20\x22','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','appCode','toLowerCase','message','2esblbI','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','(set\x20via\x20file,\x20length=','present','Set\x20apps.','log','read','repairCommand','\x20\x20Auth','keys','113344csJafM','includes','env','✗\x20Invalid\x20JSON','✗\x20Invalid\x20','entries','padEnd','verbose','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','green','currentApp','filter','\x20\x20explicitAppName:\x20','current','Project','regionConfiguredValue','\x20config\x20delete\x20inherit\x20--global','✓\x20Valid\x20JSON','join','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','format','accessKey','prototype','string','\x20config','region','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','raw','arch','\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','project','✓\x20Valid','(set,\x20length=','51691cOQPer','\x20\x20Routing\x20Configuration','routing','\x20\x20kbDomain:\x20\x20\x20\x20\x20\x20\x20\x20','(not\x20found)','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','1012584RwDHrk','cookie','\x20config\x20delete\x20region','✗\x20Invalid','explicitAppName','\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20←\x20current','version','(unknown)','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','✗\x20Not\x20logged\x20in','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Country/Region\x20Configuration','\x20doctor','\x20config\x20delete\x20routing\x20--global','repeat','Unavailable\x20until\x20routing\x20configuration\x20is\x20repaired','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Legacy\x20inherit:\x20\x20\x20','ignored\x20in\x20','\x20\x20Repair\x20global:\x20\x20\x20','regionSource','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','doctor','value','Not\x20checked\x20until\x20routing\x20configuration\x20is\x20repaired','.region\x20to\x20cn\x20or\x20id\x20in\x20','\x20\x20─','\x20\x20Apps','✗\x20Expired','\x20(invalid)','\x20\x20kbServiceDomain:\x20','null','gray','hasOwnProperty','630576vkpCAs','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','call','installedPath','object','\x20(default)','defaultApp','1098ZSHcpm','apps','inherit','source','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20appDomain:\x20\x20\x20\x20\x20\x20\x20','\x20\x20Repair\x20global:\x20\x20\x20\x20','label','\x20\x20Repair\x20project:\x20\x20\x20','status','default','\x20\x20Repair\x20project:\x20\x20','1863276xqYMZc','state','\x20\x20Built-in\x20Skill','⚠\x20Empty\x20(treated\x20as\x20{})','packageVersion','slice','global','\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'];a118_0x1fd9=function(){return _0x452da4;};return a118_0x1fd9();}import{getIsSessionValid}from'../auth/is-session-valid.js';function a118_0x2ddc(_0x4bf8b4,_0x37195f){_0x4bf8b4=_0x4bf8b4-0xb3;const _0x1fd96e=a118_0x1fd9();let _0x2ddc2f=_0x1fd96e[_0x4bf8b4];return _0x2ddc2f;}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(_0x5318f5){const _0x5a33af=a118_0x2ddc;return typeof _0x5318f5===_0x5a33af(0xbb)?JSON[_0x5a33af(0x120)](_0x5318f5):'<'+(_0x5318f5===null?_0x5a33af(0xee):typeof _0x5318f5)+'>';}async function execute(_0x176c01){const _0x1896f0=a118_0x2ddc,_0x1cd62e=GIT_COMMIT!=='unknown'?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x1896f0(0x109)](0x0,0xa)+')':VERSION,_0x3f0735=buildConfigFromFlags({}),_0x4ad5a4=getCookie();let _0x79315b;try{await initGlobalEnvironment(_0x3f0735);}catch(_0x536914){_0x79315b=_0x536914 instanceof Error?_0x536914:new Error(String(_0x536914));}console[_0x1896f0(0x12f)](),console[_0x1896f0(0x12f)](a118_0xab1d9d[_0x1896f0(0x115)](CLI_BIN_NAME+_0x1896f0(0xd9))),console[_0x1896f0(0x12f)](a118_0xab1d9d[_0x1896f0(0xef)]('─'[_0x1896f0(0xdb)](0x32))),console[_0x1896f0(0x12f)](_0x1896f0(0x124)+_0x1cd62e),console[_0x1896f0(0x12f)](_0x1896f0(0xf2)+process[_0x1896f0(0xd2)]),console[_0x1896f0(0x12f)]('\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20'+process['platform']+'\x20'+process[_0x1896f0(0xc0)]);const _0x517a70=inspectBuiltinSkill();console[_0x1896f0(0x12f)](),console[_0x1896f0(0x12f)](a118_0xab1d9d['bold'](_0x1896f0(0x106))),console['log'](a118_0xab1d9d[_0x1896f0(0xef)]('\x20\x20─'[_0x1896f0(0xdb)](0x1e)));const _0x11a6b4=_0x517a70['state']===_0x1896f0(0x141)?a118_0xab1d9d[_0x1896f0(0x13d)]('✓\x20'+_0x517a70[_0x1896f0(0x105)]):a118_0xab1d9d['red']('✗\x20'+_0x517a70[_0x1896f0(0x105)]);console[_0x1896f0(0x12f)]('\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x11a6b4),console[_0x1896f0(0x12f)]('\x20\x20Package\x20Version:\x20'+_0x517a70[_0x1896f0(0x108)]),console[_0x1896f0(0x12f)]('\x20\x20Skill\x20Version:\x20\x20\x20'+(_0x517a70['skillVersion']||a118_0xab1d9d[_0x1896f0(0xef)](_0x1896f0(0xd3)))),console['log']('\x20\x20Installed\x20Path:\x20\x20'+(_0x517a70[_0x1896f0(0xf4)]||a118_0xab1d9d['gray'](_0x1896f0(0xc9))));if(_0x517a70['reason'])console[_0x1896f0(0x12f)](_0x1896f0(0xd0)+_0x517a70['reason']);_0x517a70['state']!==_0x1896f0(0x141)&&console[_0x1896f0(0x12f)](_0x1896f0(0x10b)+_0x517a70[_0x1896f0(0x131)]);console[_0x1896f0(0x12f)](),console[_0x1896f0(0x12f)](a118_0xab1d9d[_0x1896f0(0x115)]('\x20\x20Config\x20Files')),console['log'](a118_0xab1d9d['gray'](_0x1896f0(0xe9)['repeat'](0x1e)));const _0x240c25=getGlobalConfigPath(),_0x240086=getProjectConfigPath();console[_0x1896f0(0x12f)](_0x1896f0(0xdd)+(_0x240c25||a118_0xab1d9d[_0x1896f0(0xef)](_0x1896f0(0xc9)))),console[_0x1896f0(0x12f)](_0x1896f0(0xd6)+(_0x240086||a118_0xab1d9d['gray'](_0x1896f0(0xc9)))),console[_0x1896f0(0x12f)](),console[_0x1896f0(0x12f)](a118_0xab1d9d['bold']('\x20\x20Config\x20JSON')),console[_0x1896f0(0x12f)](a118_0xab1d9d[_0x1896f0(0xef)](_0x1896f0(0xe9)[_0x1896f0(0xdb)](0x1e)));const _0x3cc754=(_0x56947f,_0xf34efe)=>{const _0x555fe1=_0x1896f0;if(!_0xf34efe){console[_0x555fe1(0x12f)]('\x20\x20'+_0x56947f['padEnd'](0x11)+'\x20'+a118_0xab1d9d[_0x555fe1(0xef)]('(no\x20file)'));return;}const _0x1fa0a9=inspectCliConfigJsonFile(_0xf34efe);if(_0x1fa0a9[_0x555fe1(0x101)]==='ok')console[_0x555fe1(0x12f)]('\x20\x20'+_0x56947f[_0x555fe1(0x13a)](0x11)+'\x20'+a118_0xab1d9d[_0x555fe1(0x13d)](_0x555fe1(0xb5)));else{if(_0x1fa0a9[_0x555fe1(0x101)]==='empty')console[_0x555fe1(0x12f)]('\x20\x20'+_0x56947f[_0x555fe1(0x13a)](0x11)+'\x20'+a118_0xab1d9d[_0x555fe1(0x11d)](_0x555fe1(0x107)));else _0x1fa0a9['status']===_0x555fe1(0x11b)?console[_0x555fe1(0x12f)]('\x20\x20'+_0x56947f['padEnd'](0x11)+'\x20'+a118_0xab1d9d[_0x555fe1(0xef)](_0x555fe1(0x10c))):(console['log']('\x20\x20'+_0x56947f['padEnd'](0x11)+'\x20'+a118_0xab1d9d[_0x555fe1(0x10d)](_0x555fe1(0x137))),console['log']('\x20\x20'+''[_0x555fe1(0x13a)](0x11)+'\x20'+a118_0xab1d9d[_0x555fe1(0x10d)](_0x1fa0a9['message'])));}};_0x3cc754(_0x1896f0(0x11c),_0x240c25),_0x3cc754(_0x1896f0(0x142),_0x240086);const _0x55c1cb=loadRawConfigLayers(),_0x2ef571=[{'label':_0x1896f0(0x142),'value':_0x55c1cb[_0x1896f0(0x10f)][_0x1896f0(0xbd)],'present':Object[_0x1896f0(0xba)]['hasOwnProperty'][_0x1896f0(0xf3)](_0x55c1cb[_0x1896f0(0x10f)],_0x1896f0(0xbd)),'repairCommand':CLI_BIN_NAME+_0x1896f0(0xcd)},{'label':_0x1896f0(0x11c),'value':_0x55c1cb[_0x1896f0(0x11f)][_0x1896f0(0xbd)],'present':Object['prototype'][_0x1896f0(0xf0)][_0x1896f0(0xf3)](_0x55c1cb['globalConfig'],_0x1896f0(0xbd)),'repairCommand':CLI_BIN_NAME+_0x1896f0(0x113)}][_0x1896f0(0x13f)](_0x20a2a2=>_0x20a2a2[_0x1896f0(0x12d)]&&isInvalidLovrabetRegion(_0x20a2a2[_0x1896f0(0xe6)]));for(const [_0x5129f2,_0x1d3893]of[[_0x1896f0(0x142),_0x55c1cb['projectConfig']],[_0x1896f0(0x11c),_0x55c1cb[_0x1896f0(0x11f)]]]){const _0x2fc9f4=_0x1d3893['apps']&&typeof _0x1d3893[_0x1896f0(0xf9)]===_0x1896f0(0xf5)?_0x1d3893[_0x1896f0(0xf9)]:{};for(const [_0xda799,_0x220d11]of Object[_0x1896f0(0x139)](_0x2fc9f4)){if(!_0x220d11||typeof _0x220d11!==_0x1896f0(0xf5)||!Object['prototype'][_0x1896f0(0xf0)][_0x1896f0(0xf3)](_0x220d11,_0x1896f0(0xbd)))continue;isInvalidLovrabetRegion(_0x220d11[_0x1896f0(0xbd)])&&_0x2ef571[_0x1896f0(0x110)]({'label':_0x5129f2+_0x1896f0(0x123)+_0xda799+'\x22','value':_0x220d11['region'],'present':!![],'repairCommand':_0x1896f0(0x12e)+_0xda799+_0x1896f0(0xe8)+_0x5129f2['toLowerCase']()+'\x20config'});}}if(_0x2ef571[_0x1896f0(0x118)]>0x0){console[_0x1896f0(0x12f)](),console['log'](a118_0xab1d9d[_0x1896f0(0x115)](_0x1896f0(0xd8))),console[_0x1896f0(0x12f)](a118_0xab1d9d[_0x1896f0(0xef)]('\x20\x20─'[_0x1896f0(0xdb)](0x1e)));for(const _0x54ba87 of _0x2ef571){console[_0x1896f0(0x12f)]('\x20\x20'+_0x54ba87['label'][_0x1896f0(0x13a)](0x11)+'\x20'+a118_0xab1d9d[_0x1896f0(0x10d)](_0x1896f0(0x138)+describeRegionValue(_0x54ba87[_0x1896f0(0xe6)]))),console[_0x1896f0(0x12f)]('\x20\x20'+(_0x1896f0(0x122)+_0x54ba87[_0x1896f0(0xff)][_0x1896f0(0x126)]()+':')[_0x1896f0(0x13a)](0x10)+'\x20'+_0x54ba87[_0x1896f0(0x131)]);}}const _0x50d3dc=[Object[_0x1896f0(0xba)][_0x1896f0(0xf0)][_0x1896f0(0xf3)](_0x55c1cb[_0x1896f0(0x11f)],'inherit')?'global':null,Object['prototype']['hasOwnProperty'][_0x1896f0(0xf3)](_0x55c1cb[_0x1896f0(0x10f)],_0x1896f0(0xfa))?_0x1896f0(0xc2):null][_0x1896f0(0x13f)](Boolean);_0x50d3dc[_0x1896f0(0x118)]>0x0&&(console['log'](_0x1896f0(0xde)+a118_0xab1d9d[_0x1896f0(0x11d)](_0x1896f0(0xdf)+_0x50d3dc[_0x1896f0(0xb6)]('\x20+\x20')+_0x1896f0(0xbc))),_0x50d3dc['includes'](_0x1896f0(0xc2))&&console[_0x1896f0(0x12f)](_0x1896f0(0x100)+CLI_BIN_NAME+'\x20config\x20delete\x20inherit'),_0x50d3dc[_0x1896f0(0x135)](_0x1896f0(0x10a))&&console[_0x1896f0(0x12f)](_0x1896f0(0xfe)+CLI_BIN_NAME+_0x1896f0(0xb4)));const _0xdff64c=isInvalidLovrabetRegion(_0x3f0735[_0x1896f0(0xb3)]??_0x3f0735[_0x1896f0(0xbf)]?.[_0x1896f0(0xbd)]);_0x79315b&&!_0xdff64c&&(console[_0x1896f0(0x12f)](),console[_0x1896f0(0x12f)](a118_0xab1d9d[_0x1896f0(0x115)](_0x1896f0(0xc6))),console[_0x1896f0(0x12f)](a118_0xab1d9d['gray'](_0x1896f0(0xe9)[_0x1896f0(0xdb)](0x1e))),console[_0x1896f0(0x12f)](_0x1896f0(0xfc)+a118_0xab1d9d['red'](_0x1896f0(0xce))),console[_0x1896f0(0x12f)](_0x1896f0(0xd0)+_0x79315b[_0x1896f0(0x127)]),Object['prototype'][_0x1896f0(0xf0)][_0x1896f0(0xf3)](_0x55c1cb['projectConfig'],_0x1896f0(0xc7))&&console[_0x1896f0(0x12f)](_0x1896f0(0x103)+CLI_BIN_NAME+'\x20config\x20delete\x20routing'),Object[_0x1896f0(0xba)][_0x1896f0(0xf0)][_0x1896f0(0xf3)](_0x55c1cb[_0x1896f0(0x11f)],_0x1896f0(0xc7))&&console[_0x1896f0(0x12f)](_0x1896f0(0xe0)+CLI_BIN_NAME+_0x1896f0(0xda)));console[_0x1896f0(0x12f)](),console['log'](a118_0xab1d9d[_0x1896f0(0x115)]('\x20\x20Merged\x20Config')),console[_0x1896f0(0x12f)](a118_0xab1d9d[_0x1896f0(0xef)](_0x1896f0(0xe9)[_0x1896f0(0xdb)](0x1e))),console[_0x1896f0(0x12f)](_0x1896f0(0x10e)+(_0x3f0735[_0x1896f0(0x125)]||a118_0xab1d9d[_0x1896f0(0x10d)]('(not\x20set)')));const _0x59443f=_0xdff64c?a118_0xab1d9d[_0x1896f0(0x10d)](describeRegionValue(_0x3f0735['regionConfiguredValue']??_0x3f0735[_0x1896f0(0xbf)]?.[_0x1896f0(0xbd)])+_0x1896f0(0xec)):(_0x3f0735['region']??DEFAULT_LOVRABET_REGION)+'\x20('+(_0x3f0735[_0x1896f0(0xe1)]??_0x1896f0(0x102))+')';console['log'](_0x1896f0(0xc1)+_0x59443f),console[_0x1896f0(0x12f)](_0x1896f0(0xe2)+_0x3f0735[_0x1896f0(0x136)]),console[_0x1896f0(0x12f)]('\x20\x20app\x20locale:\x20\x20\x20\x20\x20\x20'+_0x3f0735['locale']),console['log'](_0x1896f0(0xca)+_0x3f0735[_0x1896f0(0x121)]),console['log'](_0x1896f0(0x13c)+(_0x3f0735[_0x1896f0(0xf7)]||a118_0xab1d9d[_0x1896f0(0xef)](_0x1896f0(0x117)))),console[_0x1896f0(0x12f)]('\x20\x20currentApp:\x20\x20\x20\x20\x20\x20'+(_0x3f0735[_0x1896f0(0x13e)]||a118_0xab1d9d[_0x1896f0(0xef)]('(none)'))),console[_0x1896f0(0x12f)](_0x1896f0(0x140)+(_0x3f0735[_0x1896f0(0xcf)]||a118_0xab1d9d[_0x1896f0(0xef)]('(none)'))),console[_0x1896f0(0x12f)](_0x1896f0(0xe3)+(_0x3f0735[_0x1896f0(0xb8)]||a118_0xab1d9d['gray'](_0x1896f0(0x11a)+DEFAULT_CONFIG_VALUES[_0x1896f0(0xb8)]+')'))),console['log'](_0x1896f0(0xd7)+(_0x3f0735['pageSize']??a118_0xab1d9d[_0x1896f0(0xef)](_0x1896f0(0x11e)))),console['log'](_0x1896f0(0xb7)+_0x3f0735[_0x1896f0(0x111)]),console[_0x1896f0(0x12f)](_0x1896f0(0x114)+_0x3f0735[_0x1896f0(0x13b)]),console[_0x1896f0(0x12f)](_0x1896f0(0xe4)+(_0x3f0735[_0x1896f0(0xcc)]?a118_0xab1d9d[_0x1896f0(0x13d)]('(set,\x20length='+_0x3f0735['cookie'][_0x1896f0(0x118)]+')'):_0x4ad5a4?a118_0xab1d9d['green'](_0x1896f0(0x12c)+_0x4ad5a4[_0x1896f0(0x118)]+')'):a118_0xab1d9d[_0x1896f0(0xef)](_0x1896f0(0x117))));const _0x535528=Object[_0x1896f0(0x133)](_0x3f0735['apps']);if(_0x535528[_0x1896f0(0x118)]>0x0){console[_0x1896f0(0x12f)](),console[_0x1896f0(0x12f)](a118_0xab1d9d['bold'](_0x1896f0(0xea))),console[_0x1896f0(0x12f)](a118_0xab1d9d[_0x1896f0(0xef)](_0x1896f0(0xe9)[_0x1896f0(0xdb)](0x1e)));for(const _0x3242bc of _0x535528){const _0x42dd85=_0x3f0735['apps'][_0x3242bc],_0x5323e6=_0x3242bc===_0x3f0735[_0x1896f0(0xf7)],_0x4cda3f=_0x3242bc===_0x3f0735[_0x1896f0(0x13e)],_0x5eb928=_0x4cda3f?a118_0xab1d9d[_0x1896f0(0x13d)](_0x1896f0(0xd1)):'',_0x2b9b5c=_0x5323e6?_0x1896f0(0xf6):'';console[_0x1896f0(0x12f)]('\x20\x20'+_0x3242bc+_0x2b9b5c+_0x5eb928),console[_0x1896f0(0x12f)]('\x20\x20\x20\x20appcode:\x20\x20\x20\x20'+_0x42dd85['appcode']);const _0x293c69=_0x55c1cb[_0x1896f0(0x10f)][_0x1896f0(0xf9)]&&typeof _0x55c1cb[_0x1896f0(0x10f)][_0x1896f0(0xf9)]===_0x1896f0(0xf5)?_0x55c1cb[_0x1896f0(0x10f)][_0x1896f0(0xf9)]:{},_0x409989=Object[_0x1896f0(0xba)][_0x1896f0(0xf0)][_0x1896f0(0xf3)](_0x293c69,_0x3242bc),_0x1b7f5d=isInvalidLovrabetRegion(_0x42dd85['region'])?{'region':_0x3f0735[_0x1896f0(0xbd)]??DEFAULT_LOVRABET_REGION}:resolveEffectiveRegion({'appRegion':_0x42dd85[_0x1896f0(0xbd)],'projectRegion':_0x409989?_0x55c1cb['projectConfig'][_0x1896f0(0xbd)]:undefined,'globalRegion':_0x55c1cb[_0x1896f0(0x11f)]['region'],'mergedRegion':_0x3f0735[_0x1896f0(0xbf)]['region'],'appName':_0x3242bc}),_0x5bbe23=buildAppDoctorFields(_0x42dd85,{'region':_0x1b7f5d['region'],'env':_0x3f0735[_0x1896f0(0x136)],'apiDir':_0x3f0735[_0x1896f0(0xbf)][_0x1896f0(0x121)]||DEFAULT_CONFIG_VALUES[_0x1896f0(0x121)],'cookie':_0x3f0735[_0x1896f0(0xcc)]||_0x4ad5a4||undefined,'accessKey':_0x3f0735[_0x1896f0(0xb9)]});console[_0x1896f0(0x12f)]('\x20\x20\x20\x20region:\x20\x20\x20\x20\x20'+_0x5bbe23[_0x1896f0(0xbd)][_0x1896f0(0xe6)]+'\x20\x20'+a118_0xab1d9d[_0x1896f0(0xef)]('('+_0x5bbe23[_0x1896f0(0xbd)][_0x1896f0(0xfb)]+')')),console[_0x1896f0(0x12f)]('\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x5bbe23[_0x1896f0(0x136)]['value']+'\x20\x20'+a118_0xab1d9d[_0x1896f0(0xef)]('('+_0x5bbe23['env'][_0x1896f0(0xfb)]+')')),console[_0x1896f0(0x12f)](_0x1896f0(0xd4)+_0x5bbe23['apiDir'][_0x1896f0(0xe6)]+'\x20\x20'+a118_0xab1d9d[_0x1896f0(0xef)]('('+_0x5bbe23[_0x1896f0(0x121)][_0x1896f0(0xfb)]+')'));const _0x4e556e=_0x5bbe23[_0x1896f0(0xcc)][_0x1896f0(0xe6)]?a118_0xab1d9d[_0x1896f0(0x13d)](_0x1896f0(0xc4)+_0x5bbe23[_0x1896f0(0xcc)][_0x1896f0(0xe6)][_0x1896f0(0x118)]+')'):a118_0xab1d9d[_0x1896f0(0xef)](_0x1896f0(0x117));console[_0x1896f0(0x12f)](_0x1896f0(0x12a)+_0x4e556e+'\x20\x20'+a118_0xab1d9d[_0x1896f0(0xef)]('('+_0x5bbe23['cookie']['source']+')'));const _0x2b6046=_0x5bbe23['accessKey'][_0x1896f0(0xe6)]?a118_0xab1d9d[_0x1896f0(0x13d)](_0x1896f0(0xc4)+_0x5bbe23[_0x1896f0(0xb9)]['value'][_0x1896f0(0x118)]+')'):a118_0xab1d9d[_0x1896f0(0xef)](_0x1896f0(0x117));console['log']('\x20\x20\x20\x20accessKey:\x20\x20'+_0x2b6046+'\x20\x20'+a118_0xab1d9d[_0x1896f0(0xef)]('('+_0x5bbe23[_0x1896f0(0xb9)]['source']+')'));}}console[_0x1896f0(0x12f)](),console[_0x1896f0(0x12f)](a118_0xab1d9d[_0x1896f0(0x115)]('\x20\x20API\x20Endpoints')),console[_0x1896f0(0x12f)](a118_0xab1d9d[_0x1896f0(0xef)](_0x1896f0(0xe9)['repeat'](0x1e)));_0x79315b?console[_0x1896f0(0x12f)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a118_0xab1d9d['red'](_0x1896f0(0xdc))):(console[_0x1896f0(0x12f)](_0x1896f0(0xc1)+getActiveRegion()),console[_0x1896f0(0x12f)](_0x1896f0(0x129)+getApiDomain()),console[_0x1896f0(0x12f)](_0x1896f0(0xbe)+getUserDomain()),console[_0x1896f0(0x12f)]('\x20\x20runtimeDomain:\x20\x20\x20'+getRuntimeDomain()),console[_0x1896f0(0x12f)]('\x20\x20skillDomain:\x20\x20\x20\x20\x20'+getSkillDomain()),console[_0x1896f0(0x12f)](_0x1896f0(0xc8)+getKbDomain()),console[_0x1896f0(0x12f)](_0x1896f0(0xed)+(getKbServiceDomain()??_0x1896f0(0x119))),console[_0x1896f0(0x12f)](_0x1896f0(0xfd)+getAppDomain()));console[_0x1896f0(0x12f)](),console[_0x1896f0(0x12f)](a118_0xab1d9d[_0x1896f0(0x115)](_0x1896f0(0x132))),console['log'](a118_0xab1d9d[_0x1896f0(0xef)](_0x1896f0(0xe9)['repeat'](0x1e)));if(_0x79315b)console[_0x1896f0(0x12f)](_0x1896f0(0xfc)+a118_0xab1d9d[_0x1896f0(0x11d)](_0x1896f0(0xe7)));else{if(_0x4ad5a4){const _0xc1f572=await getIsSessionValid();console[_0x1896f0(0x12f)](_0x1896f0(0xfc)+(_0xc1f572?a118_0xab1d9d[_0x1896f0(0x13d)](_0x1896f0(0xc3)):a118_0xab1d9d[_0x1896f0(0x10d)](_0x1896f0(0xeb))));}else console[_0x1896f0(0x12f)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a118_0xab1d9d[_0x1896f0(0x10d)](_0x1896f0(0xd5)));}return console[_0x1896f0(0x12f)](),{'ok':!![]};}export const doctorDefinition={'service':a118_0xb5be17(0xe5),'command':'check','description':a118_0xb5be17(0x12b),'risk':a118_0xb5be17(0x130),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
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 a119_0x4e4e63=a119_0x16d2;function a119_0x3aab(){const _0x584de3=['Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','read','str','validation','1819341xiODpP','bool','15579hoWlBl','long-term','33jslKol','file','download','boolean','Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL','upload','Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML','trim','POST','string','Preview:\x20upload\x20','1149306aaVlIp','Path\x20to\x20the\x20local\x20file\x20to\x20upload','filepath','28xTXXyT','3770988NcdyEI','\x20to\x20development\x20app\x20','filePath','367750QGFRkv','1416Bctvjn','Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','5pzldJj','path','appCode','2666690dWrZCZ','filePath\x20is\x20required.','1963860vDQIFL','8eFpbEv','Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20or\x20immediate\x20access'];a119_0x3aab=function(){return _0x584de3;};return a119_0x3aab();}(function(_0x231292,_0x3df3a4){const _0xa0d4f6=a119_0x16d2,_0x14b05b=_0x231292();while(!![]){try{const _0x48559c=-parseInt(_0xa0d4f6(0x135))/0x1*(parseInt(_0xa0d4f6(0x132))/0x2)+-parseInt(_0xa0d4f6(0x141))/0x3+parseInt(_0xa0d4f6(0x13b))/0x4*(parseInt(_0xa0d4f6(0x13a))/0x5)+-parseInt(_0xa0d4f6(0x150))/0x6*(-parseInt(_0xa0d4f6(0x153))/0x7)+-parseInt(_0xa0d4f6(0x133))/0x8*(-parseInt(_0xa0d4f6(0x143))/0x9)+parseInt(_0xa0d4f6(0x138))/0xa*(parseInt(_0xa0d4f6(0x145))/0xb)+-parseInt(_0xa0d4f6(0x154))/0xc;if(_0x48559c===_0x3df3a4)break;else _0x14b05b['push'](_0x14b05b['shift']());}catch(_0x195a39){_0x14b05b['push'](_0x14b05b['shift']());}}}(a119_0x3aab,0xc7b97));import{requireDevelopmentUploadFile}from'../../commands/common/local-file.js';import{queryDevelopmentFileUrl,uploadDevelopmentFile}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a119_0x16d2(_0x36dbf0,_0x1ce129){_0x36dbf0=_0x36dbf0-0x131;const _0x3aab2c=a119_0x3aab();let _0x16d2aa=_0x3aab2c[_0x36dbf0];return _0x16d2aa;}const FILE_FLAG={'name':a119_0x4e4e63(0x146),'type':a119_0x4e4e63(0x14e),'required':!![],'description':a119_0x4e4e63(0x151)},FILEPATH_FLAG={'name':'filepath','type':a119_0x4e4e63(0x14e),'required':!![],'description':'Development\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data'},DOWNLOAD_FLAG={'name':'download','type':a119_0x4e4e63(0x148),'description':a119_0x4e4e63(0x149)},LONG_TERM_FLAG={'name':a119_0x4e4e63(0x144),'type':a119_0x4e4e63(0x148),'description':a119_0x4e4e63(0x14b)};function requireFilePath(_0x5c68af){const _0x2e8f58=a119_0x4e4e63,_0x2910b4=_0x5c68af[_0x2e8f58(0x14c)]();if(!_0x2910b4)throw CliErrors[_0x2e8f58(0x140)](_0x2e8f58(0x139));return _0x2910b4;}const fileUpload={'service':a119_0x4e4e63(0x146),'command':a119_0x4e4e63(0x14a),'description':a119_0x4e4e63(0x134),'risk':'read','flags':[FILE_FLAG],async 'dryRun'(_0x293fc0){const _0x2b830c=a119_0x4e4e63,_0x170862=requireDevelopmentUploadFile(_0x293fc0[_0x2b830c(0x13f)](_0x2b830c(0x146)),'File');return{'method':_0x2b830c(0x14d),'url':'/smartapi/common/uploadFile','body':{'appCode':_0x293fc0['appCode'],'multipart':{'file':_0x170862}},'description':_0x2b830c(0x14f)+_0x170862[_0x2b830c(0x136)]+_0x2b830c(0x155)+_0x293fc0[_0x2b830c(0x137)]};},async 'execute'(_0x38a393){const _0x11e5e8=a119_0x4e4e63,_0x11e0a7=requireDevelopmentUploadFile(_0x38a393[_0x11e5e8(0x13f)](_0x11e5e8(0x146)),'File'),_0x30095d=await uploadDevelopmentFile(_0x38a393[_0x11e5e8(0x137)],_0x11e0a7[_0x11e5e8(0x136)]);return{'ok':!![],'data':_0x30095d,'message':_0x30095d[_0x11e5e8(0x131)]?'Uploaded\x20file:\x20'+_0x30095d[_0x11e5e8(0x131)]+'.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.':_0x11e5e8(0x13d)};}},fileQueryUrl={'service':a119_0x4e4e63(0x146),'command':'query-url','description':a119_0x4e4e63(0x13c),'risk':a119_0x4e4e63(0x13e),'flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0x38fc0f){const _0x4c7ce5=a119_0x4e4e63,_0x4da6bb=requireFilePath(_0x38fc0f[_0x4c7ce5(0x13f)](_0x4c7ce5(0x152))),_0x42dd3c=await queryDevelopmentFileUrl(_0x4da6bb,{'download':_0x38fc0f[_0x4c7ce5(0x142)](_0x4c7ce5(0x147)),'longTerm':_0x38fc0f[_0x4c7ce5(0x142)]('long-term')});return{'ok':!![],'data':_0x42dd3c};}};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
- function a120_0x3fcd(_0x1df82c,_0x4f980e){_0x1df82c=_0x1df82c-0x174;const _0x45a18d=a120_0x45a1();let _0x3fcdaa=_0x45a18d[_0x1df82c];return _0x3fcdaa;}const a120_0xf01183=a120_0x3fcd;(function(_0x34d748,_0x2ca12e){const _0x5a1d9d=a120_0x3fcd,_0x4f4479=_0x34d748();while(!![]){try{const _0x13bec7=parseInt(_0x5a1d9d(0x17a))/0x1*(-parseInt(_0x5a1d9d(0x175))/0x2)+-parseInt(_0x5a1d9d(0x184))/0x3*(parseInt(_0x5a1d9d(0x186))/0x4)+parseInt(_0x5a1d9d(0x179))/0x5+parseInt(_0x5a1d9d(0x17c))/0x6*(parseInt(_0x5a1d9d(0x17b))/0x7)+parseInt(_0x5a1d9d(0x17f))/0x8+parseInt(_0x5a1d9d(0x183))/0x9+-parseInt(_0x5a1d9d(0x176))/0xa;if(_0x13bec7===_0x2ca12e)break;else _0x4f4479['push'](_0x4f4479['shift']());}catch(_0x289fe4){_0x4f4479['push'](_0x4f4479['shift']());}}}(a120_0x45a1,0xa9b16));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';function a120_0x45a1(){const _0x38b454=['datasetCode','6658410kTPhMc','589wiJzzl','91JCIRoR','50898fTZFqk','flowName','appCode','9707816wXzqKY','\x20(id=','write','Created\x20flow\x20','7385733gKxqhm','723mBHeSo','create','1304MyHrGr','Create\x20a\x20draft\x20flow\x20definition\x20from\x20a\x20local\x20FlowConfig\x20file','1026FGFoHT','24002900sPmHMC','POST'];a120_0x45a1=function(){return _0x38b454;};return a120_0x45a1();}export const flowCreate={'service':'flow','command':a120_0xf01183(0x185),'description':a120_0xf01183(0x174),'risk':a120_0xf01183(0x181),'flags':[FLOW_FILE_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x1f5be9){readFlowFilePath(_0x1f5be9);},async 'dryRun'(_0xa8de64){const _0x2310b3=a120_0xf01183,{request:_0x55d433,warnings:_0x78add0}=await prepareFlowWrite(readFlowFilePath(_0xa8de64),_0xa8de64[_0x2310b3(0x17e)]);return asDryRunResult({'operation':_0x2310b3(0x185),'selector':{'appCode':_0xa8de64[_0x2310b3(0x17e)],'flowName':_0x55d433[_0x2310b3(0x17d)],..._0x55d433[_0x2310b3(0x178)]?{'datasetCode':_0x55d433['datasetCode']}:{}},'before':null,'after':_0x55d433,'request':_0x55d433,'dryRun':!![],'backend':{'method':_0x2310b3(0x177),'path':FLOW_PATHS[_0x2310b3(0x185)]},'warnings':_0x78add0},{'method':'POST','url':FLOW_PATHS[_0x2310b3(0x185)]});},async 'execute'(_0x4bd6c8){const _0x5f01a9=a120_0xf01183,{request:_0x5b1428,warnings:_0x46f347}=await prepareFlowWrite(readFlowFilePath(_0x4bd6c8),_0x4bd6c8[_0x5f01a9(0x17e)]);await confirmFlowWrite(_0x4bd6c8,'create',_0x5b1428);const _0x520d05=await createFlowDefinition(_0x5b1428),_0x2d244d=buildFlowUrl(_0x4bd6c8['appCode'],_0x520d05['id']),_0x492586=''+(_0x520d05[_0x5f01a9(0x17d)]||_0x5b1428[_0x5f01a9(0x17d)])+(_0x520d05['id']?_0x5f01a9(0x180)+_0x520d05['id']+')':'');return{'ok':!![],'data':{'operation':_0x5f01a9(0x185),'selector':flowSelector(_0x4bd6c8[_0x5f01a9(0x17e)],_0x520d05['id'],_0x520d05),'before':null,'after':_0x520d05,'flowUrl':_0x2d244d,'dryRun':![],'backend':{'method':'POST','path':FLOW_PATHS[_0x5f01a9(0x185)]},'warnings':_0x46f347},'message':_0x5f01a9(0x182)+_0x492586+'.\x20Flow\x20URL:\x20'+_0x2d244d};}};
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
- function a121_0x5503(){const _0x5a199d=['validation','258820iTHgXi','boolean','detail','Pass\x20--force\x20to\x20overwrite\x20it.','13317606hQAkPL','flowName','str','EEXIST','string','242004DfAuDJ','1661736PFpESz','Flow\x20','FlowConfig\x20output\x20already\x20exists:\x20','read','force','appCode','\x20to\x20','flowCode','code','4530624iMdJyT','Overwrite\x20an\x20existing\x20output\x20file','bool','path','flow','1132CIvivy','701535aOSFpO','6ebMeWz','ENOENT','201vgHZwm','config','output','Write\x20a\x20portable\x20normalized\x20FlowConfig\x20JSON\x20file'];a121_0x5503=function(){return _0x5a199d;};return a121_0x5503();}const a121_0x497fd3=a121_0x4cbf;(function(_0x5d35b2,_0x344c6f){const _0x42146b=a121_0x4cbf,_0x1457d0=_0x5d35b2();while(!![]){try{const _0x5c4858=parseInt(_0x42146b(0x110))/0x1+-parseInt(_0x42146b(0x11a))/0x2+parseInt(_0x42146b(0x10b))/0x3*(parseInt(_0x42146b(0x107))/0x4)+-parseInt(_0x42146b(0x108))/0x5*(-parseInt(_0x42146b(0x109))/0x6)+-parseInt(_0x42146b(0x119))/0x7+-parseInt(_0x42146b(0x102))/0x8+parseInt(_0x42146b(0x114))/0x9;if(_0x5c4858===_0x344c6f)break;else _0x1457d0['push'](_0x1457d0['shift']());}catch(_0x4ba451){_0x1457d0['push'](_0x1457d0['shift']());}}}(a121_0x5503,0x71c86));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 a121_0x4cbf(_0x1af0e0,_0x54a90f){_0x1af0e0=_0x1af0e0-0xfe;const _0x5503f3=a121_0x5503();let _0x4cbfbf=_0x5503f3[_0x1af0e0];return _0x4cbfbf;}import{FLOW_ID_FLAG,flowDefinitionToConfig,readFlowId}from'../../commands/flow/shared.js';export const flowDetail={'service':a121_0x497fd3(0x106),'command':a121_0x497fd3(0x112),'description':'Get\x20one\x20design-time\x20flow\x20definition','risk':a121_0x497fd3(0x11d),'flags':[FLOW_ID_FLAG,{'name':'output','type':a121_0x497fd3(0x118),'description':a121_0x497fd3(0x10e)},{'name':a121_0x497fd3(0x11e),'type':a121_0x497fd3(0x111),'description':a121_0x497fd3(0x103)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0xae6a0a){readFlowId(_0xae6a0a);},async 'execute'(_0x67d7b6){const _0x13c985=a121_0x497fd3,_0x8ba6a5=readFlowId(_0x67d7b6),_0x3575fb=_0x67d7b6[_0x13c985(0x116)](_0x13c985(0x10d))['trim'](),_0x3655f9=_0x3575fb?resolve(_0x3575fb):undefined;if(_0x3655f9&&!_0x67d7b6[_0x13c985(0x104)](_0x13c985(0x11e))&&await fileExists(_0x3655f9))throw CliErrors[_0x13c985(0x10f)](_0x13c985(0x11c)+_0x3655f9,'Pass\x20--force\x20to\x20overwrite\x20it.');const _0x1968b3=await getFlowDefinition(_0x67d7b6[_0x13c985(0xfe)],_0x8ba6a5);let _0x322964;if(_0x3655f9){const _0x58ea6c=flowDefinitionToConfig(_0x1968b3);await mkdir(dirname(_0x3655f9),{'recursive':!![]});try{await writeNormalizedFlowConfig(_0x3655f9,_0x58ea6c[_0x13c985(0x10c)],{'overwrite':_0x67d7b6[_0x13c985(0x104)](_0x13c985(0x11e))});}catch(_0x1e3447){if(isAlreadyExistsError(_0x1e3447))throw CliErrors['validation']('FlowConfig\x20output\x20already\x20exists:\x20'+_0x3655f9,_0x13c985(0x113));throw _0x1e3447;}_0x322964={'path':_0x3655f9,'warnings':_0x58ea6c['warnings']};}return{'ok':!![],'data':{'flow':_0x1968b3,..._0x322964?{'output':_0x322964}:{}},'message':_0x322964?'Wrote\x20FlowConfig\x20for\x20'+(_0x1968b3[_0x13c985(0x115)]||_0x1968b3[_0x13c985(0x100)]||_0x8ba6a5)+_0x13c985(0xff)+_0x322964[_0x13c985(0x105)]:_0x13c985(0x11b)+(_0x1968b3['flowName']||_0x1968b3[_0x13c985(0x100)]||_0x8ba6a5)};}};async function fileExists(_0x2abfc7){try{return await stat(_0x2abfc7),!![];}catch(_0x327d37){return!isNotFoundError(_0x327d37);}}function isNotFoundError(_0x89b0f4){const _0x4f7e7f=a121_0x497fd3;return _0x89b0f4?.[_0x4f7e7f(0x101)]===_0x4f7e7f(0x10a);}function isAlreadyExistsError(_0x4c47b8){const _0x30daad=a121_0x497fd3;return _0x4c47b8?.['code']===_0x30daad(0x117);}
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);}
@@ -1 +1 @@
1
- (function(_0x137db7,_0x56f73e){const _0x9b349c=a122_0x41c4,_0x16c427=_0x137db7();while(!![]){try{const _0x36a887=-parseInt(_0x9b349c(0x16b))/0x1*(parseInt(_0x9b349c(0x170))/0x2)+parseInt(_0x9b349c(0x16a))/0x3+parseInt(_0x9b349c(0x16f))/0x4*(parseInt(_0x9b349c(0x16e))/0x5)+parseInt(_0x9b349c(0x172))/0x6+parseInt(_0x9b349c(0x168))/0x7*(parseInt(_0x9b349c(0x171))/0x8)+parseInt(_0x9b349c(0x16d))/0x9+-parseInt(_0x9b349c(0x169))/0xa*(parseInt(_0x9b349c(0x16c))/0xb);if(_0x36a887===_0x56f73e)break;else _0x16c427['push'](_0x16c427['shift']());}catch(_0x13d026){_0x16c427['push'](_0x16c427['shift']());}}}(a122_0x19dd,0x8752e));function a122_0x41c4(_0x456ff4,_0x11a019){_0x456ff4=_0x456ff4-0x168;const _0x19dd79=a122_0x19dd();let _0x41c4d4=_0x19dd79[_0x456ff4];return _0x41c4d4;}import{flowValidate}from'../../commands/flow/validate.js';import{flowList}from'../../commands/flow/list.js';import{flowDetail}from'../../commands/flow/detail.js';import{flowCreate}from'../../commands/flow/create.js';import{flowUpdate}from'../../commands/flow/update.js';import{flowPublish}from'../../commands/flow/publish.js';import{flowRuntimeRoleList}from'../../commands/flow/runtime-role-list.js';function a122_0x19dd(){const _0x164a41=['945657UykdlI','1924775DrDBvw','4ONomlm','493858bEHdGT','6052456DZxBQo','5675370MbPjsB','7qybUQL','10MFsRWG','3088827yylxLw','4TjyqjU','18480957Squaat'];a122_0x19dd=function(){return _0x164a41;};return a122_0x19dd();}import{flowRuntimeUserSearch}from'../../commands/flow/runtime-user-search.js';import{flowRuntimeRoleUserList}from'../../commands/flow/runtime-role-user-list.js';export const flowDefinitions=[flowValidate,flowList,flowDetail,flowCreate,flowUpdate,flowPublish,flowRuntimeRoleList,flowRuntimeUserSearch,flowRuntimeRoleUserList];
1
+ function a128_0xfade(){const _0xf49c1=['3237784LhwiZg','2974428SpJIWQ','53513qykpQh','7yRgdNi','2622399QlNSDn','2235096wBWWuk','539136ZmDWnP','3301720FOVeBw','4eCPWfJ'];a128_0xfade=function(){return _0xf49c1;};return a128_0xfade();}(function(_0x4f62dc,_0x3c15b3){const _0x5dd7fe=a128_0x4336,_0x21e124=_0x4f62dc();while(!![]){try{const _0x383433=-parseInt(_0x5dd7fe(0x8c))/0x1*(-parseInt(_0x5dd7fe(0x89))/0x2)+parseInt(_0x5dd7fe(0x8e))/0x3+parseInt(_0x5dd7fe(0x87))/0x4+-parseInt(_0x5dd7fe(0x88))/0x5+parseInt(_0x5dd7fe(0x8b))/0x6+parseInt(_0x5dd7fe(0x8d))/0x7*(-parseInt(_0x5dd7fe(0x8a))/0x8)+parseInt(_0x5dd7fe(0x8f))/0x9;if(_0x383433===_0x3c15b3)break;else _0x21e124['push'](_0x21e124['shift']());}catch(_0x5e14c7){_0x21e124['push'](_0x21e124['shift']());}}}(a128_0xfade,0xc214e));import{flowValidate}from'../../commands/flow/validate.js';import{flowPageList}from'../../commands/flow/page-list.js';import{flowList}from'../../commands/flow/list.js';import{flowDetail}from'../../commands/flow/detail.js';import{flowCreate}from'../../commands/flow/create.js';import{flowUpdate}from'../../commands/flow/update.js';import{flowPublish}from'../../commands/flow/publish.js';function a128_0x4336(_0x5a4bd2,_0x56ff59){_0x5a4bd2=_0x5a4bd2-0x87;const _0xfaded6=a128_0xfade();let _0x4336a7=_0xfaded6[_0x5a4bd2];return _0x4336a7;}import{flowRuntimeRoleList}from'../../commands/flow/runtime-role-list.js';import{flowRuntimeUserSearch}from'../../commands/flow/runtime-user-search.js';import{flowRuntimeRoleUserList}from'../../commands/flow/runtime-role-user-list.js';export const flowDefinitions=[flowValidate,flowList,flowPageList,flowDetail,flowCreate,flowUpdate,flowPublish,flowRuntimeRoleList,flowRuntimeUserSearch,flowRuntimeRoleUserList];
@@ -1 +1 @@
1
- const a123_0x495f23=a123_0x5a7d;(function(_0x3f4e3b,_0x1aad00){const _0x1a443a=a123_0x5a7d,_0x1a787d=_0x3f4e3b();while(!![]){try{const _0x32dcec=parseInt(_0x1a443a(0x13f))/0x1*(parseInt(_0x1a443a(0x15a))/0x2)+parseInt(_0x1a443a(0x14c))/0x3*(-parseInt(_0x1a443a(0x150))/0x4)+parseInt(_0x1a443a(0x160))/0x5*(-parseInt(_0x1a443a(0x159))/0x6)+-parseInt(_0x1a443a(0x14f))/0x7*(parseInt(_0x1a443a(0x14b))/0x8)+-parseInt(_0x1a443a(0x157))/0x9*(-parseInt(_0x1a443a(0x149))/0xa)+-parseInt(_0x1a443a(0x146))/0xb+parseInt(_0x1a443a(0x151))/0xc;if(_0x32dcec===_0x1aad00)break;else _0x1a787d['push'](_0x1a787d['shift']());}catch(_0x4d16e4){_0x1a787d['push'](_0x1a787d['shift']());}}}(a123_0x280d,0x30b04));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a123_0x5a7d(_0x5c397f,_0x38a008){_0x5c397f=_0x5c397f-0x13d;const _0x280df7=a123_0x280d();let _0x5a7dfd=_0x280df7[_0x5c397f];return _0x5a7dfd;}import{listFlowDefinitions}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const FLOW_STATUSES=['draft',a123_0x495f23(0x165)];export const flowList={'service':a123_0x495f23(0x142),'command':a123_0x495f23(0x15e),'description':a123_0x495f23(0x143),'risk':a123_0x495f23(0x158),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a123_0x495f23(0x15d),'type':a123_0x495f23(0x147),'description':a123_0x495f23(0x164)},{'name':a123_0x495f23(0x153),'type':a123_0x495f23(0x147),'description':a123_0x495f23(0x154)},{'name':a123_0x495f23(0x145),'type':a123_0x495f23(0x147),'description':a123_0x495f23(0x15c),'enum':FLOW_STATUSES},{'name':'dataset-code','type':a123_0x495f23(0x147),'description':'Filter\x20by\x20dataset\x20code'},{'name':a123_0x495f23(0x144),'type':a123_0x495f23(0x147),'description':a123_0x495f23(0x140)},{'name':'page','type':a123_0x495f23(0x15f),'description':'Page\x20number\x20(1-based)','default':0x1},{'name':a123_0x495f23(0x141),'type':'number','description':a123_0x495f23(0x13d),'default':0x14}],async 'validate'(_0x3dd385){const _0x4c224a=a123_0x495f23,_0xdaaa7c=_0x3dd385[_0x4c224a(0x156)](_0x4c224a(0x148),0x1),_0x377257=_0x3dd385['num'](_0x4c224a(0x141),0x14);if(!Number[_0x4c224a(0x13e)](_0xdaaa7c)||_0xdaaa7c<0x1)throw CliErrors[_0x4c224a(0x161)](_0x4c224a(0x14e));if(!Number[_0x4c224a(0x13e)](_0x377257)||_0x377257<0x1)throw CliErrors[_0x4c224a(0x161)](_0x4c224a(0x152));},async 'execute'(_0x492860){const _0x36d7a5=a123_0x495f23,{items:_0x894ae1,paging:_0x10c97d}=await listFlowDefinitions(_0x492860[_0x36d7a5(0x15b)],{'flowCode':optionalString(_0x492860[_0x36d7a5(0x163)]('flow-code')),'flowName':optionalString(_0x492860['str'](_0x36d7a5(0x153))),'flowStatus':optionalString(_0x492860[_0x36d7a5(0x163)](_0x36d7a5(0x145))),'datasetCode':optionalString(_0x492860['str'](_0x36d7a5(0x14a))),'flowType':optionalString(_0x492860[_0x36d7a5(0x163)](_0x36d7a5(0x144))),'pageNum':_0x492860['num'](_0x36d7a5(0x148),0x1),'pageSize':_0x492860['num'](_0x36d7a5(0x141),0x14)});return{'ok':!![],'data':{'appCode':_0x492860['appCode'],'flows':_0x894ae1,'paging':_0x10c97d},'message':_0x36d7a5(0x155)+_0x894ae1[_0x36d7a5(0x14d)]+'\x20flow\x20definition(s)'};}};function optionalString(_0x22c1dc){const _0xf87ffa=a123_0x495f23,_0x3be7bc=_0x22c1dc[_0xf87ffa(0x162)]();return _0x3be7bc||undefined;}function a123_0x280d(){const _0x36c83c=['published','Page\x20size','isSafeInteger','17981YjiAEu','Filter\x20by\x20flow\x20type','page-size','flow','List\x20design-time\x20flow\x20definitions\x20for\x20the\x20current\x20app','flow-type','flow-status','1414182PtHFIG','string','page','23890qNDQLR','dataset-code','2099536Fjgucv','7533wNvlTi','length','--page\x20must\x20be\x20a\x20positive\x20integer.','7eSffih','108JBvWUn','8785464hsxMFE','--page-size\x20must\x20be\x20a\x20positive\x20integer.','flow-name','Filter\x20by\x20flow\x20name','Found\x20','num','873keRiNx','read','647214rGxxQK','2qKuXIi','appCode','Filter\x20by\x20flow\x20status','flow-code','list','number','15wDBKhE','validation','trim','str','Filter\x20by\x20exact\x20server-generated\x20flow\x20code'];a123_0x280d=function(){return _0x36c83c;};return a123_0x280d();}
1
+ const a129_0x4467c1=a129_0x1563;(function(_0x4a3b5c,_0x4949b4){const _0x556759=a129_0x1563,_0xf11cfb=_0x4a3b5c();while(!![]){try{const _0x4fb800=-parseInt(_0x556759(0xac))/0x1+-parseInt(_0x556759(0xb8))/0x2*(parseInt(_0x556759(0xc3))/0x3)+parseInt(_0x556759(0xcf))/0x4+parseInt(_0x556759(0xb4))/0x5*(parseInt(_0x556759(0xd0))/0x6)+-parseInt(_0x556759(0xb3))/0x7*(-parseInt(_0x556759(0xbb))/0x8)+parseInt(_0x556759(0xb9))/0x9*(-parseInt(_0x556759(0xc7))/0xa)+parseInt(_0x556759(0xb6))/0xb;if(_0x4fb800===_0x4949b4)break;else _0xf11cfb['push'](_0xf11cfb['shift']());}catch(_0x393d3a){_0xf11cfb['push'](_0xf11cfb['shift']());}}}(a129_0x5108,0x5bc56));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{listFlowDefinitions}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const FLOW_STATUSES=[a129_0x4467c1(0xc0),'published'];function a129_0x5108(){const _0x1d5720=['40WCfmsg','Filter\x20by\x20exact\x20server-generated\x20flow\x20code','length','Found\x20','read','page-size','isSafeInteger','flow-name','303212rVkXNx','30exGtcm','page','\x20flow\x20definition(s)','563790almXYE','Filter\x20by\x20flow\x20name','appCode','flow','flow-type','num','number','378oeaUOY','458530heiJDt','flow-code','15359982Bozpaz','List\x20design-time\x20flow\x20definitions\x20for\x20the\x20current\x20app','6OpgkQV','1472094YyslnY','str','48752rWxGws','Filter\x20by\x20dataset\x20code','Page\x20number\x20(1-based)','Filter\x20by\x20flow\x20status','flow-status','draft','validation','string','665823MhXScC','trim','dataset-code','Page\x20size'];a129_0x5108=function(){return _0x1d5720;};return a129_0x5108();}function a129_0x1563(_0x465c41,_0x5864a2){_0x465c41=_0x465c41-0xaa;const _0x51082f=a129_0x5108();let _0x15635c=_0x51082f[_0x465c41];return _0x15635c;}export const flowList={'service':a129_0x4467c1(0xaf),'command':'list','description':a129_0x4467c1(0xb7),'risk':a129_0x4467c1(0xcb),'flags':[APPCODE_FLAG_OPTIONAL,{'name':'flow-code','type':a129_0x4467c1(0xc2),'description':a129_0x4467c1(0xc8)},{'name':'flow-name','type':'string','description':a129_0x4467c1(0xad)},{'name':a129_0x4467c1(0xbf),'type':a129_0x4467c1(0xc2),'description':a129_0x4467c1(0xbe),'enum':FLOW_STATUSES},{'name':'dataset-code','type':'string','description':a129_0x4467c1(0xbc)},{'name':a129_0x4467c1(0xb0),'type':a129_0x4467c1(0xc2),'description':'Filter\x20by\x20flow\x20type'},{'name':a129_0x4467c1(0xaa),'type':a129_0x4467c1(0xb2),'description':a129_0x4467c1(0xbd),'default':0x1},{'name':a129_0x4467c1(0xcc),'type':a129_0x4467c1(0xb2),'description':a129_0x4467c1(0xc6),'default':0x14}],async 'validate'(_0x80256b){const _0x357d71=a129_0x4467c1,_0x43b9db=_0x80256b[_0x357d71(0xb1)](_0x357d71(0xaa),0x1),_0x40d575=_0x80256b['num'](_0x357d71(0xcc),0x14);if(!Number[_0x357d71(0xcd)](_0x43b9db)||_0x43b9db<0x1)throw CliErrors[_0x357d71(0xc1)]('--page\x20must\x20be\x20a\x20positive\x20integer.');if(!Number[_0x357d71(0xcd)](_0x40d575)||_0x40d575<0x1)throw CliErrors[_0x357d71(0xc1)]('--page-size\x20must\x20be\x20a\x20positive\x20integer.');},async 'execute'(_0x24553c){const _0x38afa8=a129_0x4467c1,{items:_0x112f95,paging:_0x4cd4a5}=await listFlowDefinitions(_0x24553c[_0x38afa8(0xae)],{'flowCode':optionalString(_0x24553c[_0x38afa8(0xba)](_0x38afa8(0xb5))),'flowName':optionalString(_0x24553c[_0x38afa8(0xba)](_0x38afa8(0xce))),'flowStatus':optionalString(_0x24553c['str']('flow-status')),'datasetCode':optionalString(_0x24553c[_0x38afa8(0xba)](_0x38afa8(0xc5))),'flowType':optionalString(_0x24553c[_0x38afa8(0xba)](_0x38afa8(0xb0))),'pageNum':_0x24553c[_0x38afa8(0xb1)](_0x38afa8(0xaa),0x1),'pageSize':_0x24553c[_0x38afa8(0xb1)](_0x38afa8(0xcc),0x14)});return{'ok':!![],'data':{'appCode':_0x24553c[_0x38afa8(0xae)],'flows':_0x112f95,'paging':_0x4cd4a5},'message':_0x38afa8(0xca)+_0x112f95[_0x38afa8(0xc9)]+_0x38afa8(0xab)};}};function optionalString(_0x23c37d){const _0x169834=a129_0x4467c1,_0x7e9b8=_0x23c37d[_0x169834(0xc4)]();return _0x7e9b8||undefined;}
@@ -0,0 +1,2 @@
1
+ import type { CommandDefinition } from "../../framework/types.js";
2
+ export declare const flowPageList: CommandDefinition;
@@ -0,0 +1 @@
1
+ const a130_0x1ddc18=a130_0xff4b;(function(_0x35f855,_0x552c1a){const _0x2bef9e=a130_0xff4b,_0x599ae5=_0x35f855();while(!![]){try{const _0x11f7c4=-parseInt(_0x2bef9e(0x1a4))/0x1*(parseInt(_0x2bef9e(0x1b4))/0x2)+-parseInt(_0x2bef9e(0x1b1))/0x3+parseInt(_0x2bef9e(0x1b3))/0x4+parseInt(_0x2bef9e(0x1b0))/0x5+parseInt(_0x2bef9e(0x1b7))/0x6*(-parseInt(_0x2bef9e(0x19e))/0x7)+-parseInt(_0x2bef9e(0x1a2))/0x8*(-parseInt(_0x2bef9e(0x1b5))/0x9)+parseInt(_0x2bef9e(0x1a7))/0xa;if(_0x11f7c4===_0x552c1a)break;else _0x599ae5['push'](_0x599ae5['shift']());}catch(_0x1d1320){_0x599ae5['push'](_0x599ae5['shift']());}}}(a130_0x1c5d,0x68730));function a130_0xff4b(_0x44e2e5,_0x15a455){_0x44e2e5=_0x44e2e5-0x19e;const _0x1c5d15=a130_0x1c5d();let _0xff4b48=_0x1c5d15[_0x44e2e5];return _0xff4b48;}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{listFlowBindingPages}from'../../core/api-client.js';function a130_0x1c5d(){const _0x5eb081=['page-size','Existing\x20FORM_FLOW\x20definition\x20id\x20(not\x20flow\x20code)','2781960CIIMlt','2444061JfhZdb','trim','2198568UZzLeq','6866bPllql','18yYxBVy','str','84SNmsEF','read','Page\x20size','flag','\x20must\x20be\x20a\x20positive\x20integer.','149009axligS','string','Found\x20','page-list','863416zJUwCX','name','238AIlhEx','length','Filter\x20by\x20page\x20name','10356950ACdaPX','num','page','validation','appCode','List\x20CREATE\x20pages\x20for\x20form-flow\x20binding;\x20--id\x20excludes\x20other\x20flows\x27\x20bindings','number'];a130_0x1c5d=function(){return _0x5eb081;};return a130_0x1c5d();}import{CliErrors}from'../../errors.js';export const flowPageList={'service':'flow','command':a130_0x1ddc18(0x1a1),'description':a130_0x1ddc18(0x1ac),'risk':a130_0x1ddc18(0x1b8),'flags':[APPCODE_FLAG_OPTIONAL,{'name':'id','type':a130_0x1ddc18(0x1ad),'description':a130_0x1ddc18(0x1af)},{'name':a130_0x1ddc18(0x1a3),'type':a130_0x1ddc18(0x19f),'description':a130_0x1ddc18(0x1a6)},{'name':a130_0x1ddc18(0x1a9),'type':a130_0x1ddc18(0x1ad),'default':0x1,'description':'Page\x20number\x20(1-based)'},{'name':'page-size','type':a130_0x1ddc18(0x1ad),'default':0x14,'description':a130_0x1ddc18(0x1b9)}],async 'validate'(_0x195bb6){const _0x393bbb=a130_0x1ddc18;for(const [_0x3e584f,_0x367575]of[['page',_0x195bb6[_0x393bbb(0x1a8)](_0x393bbb(0x1a9),0x1)],[_0x393bbb(0x1ae),_0x195bb6['num'](_0x393bbb(0x1ae),0x14)],..._0x195bb6[_0x393bbb(0x1ba)]('id')!==undefined?[['id',_0x195bb6[_0x393bbb(0x1a8)]('id')]]:[]]){if(!Number['isSafeInteger'](_0x367575)||_0x367575<=0x0)throw CliErrors[_0x393bbb(0x1aa)]('--'+_0x3e584f+_0x393bbb(0x1bb));}},async 'execute'(_0x240971){const _0x17e1ad=a130_0x1ddc18,_0x3768d1=_0x240971[_0x17e1ad(0x1ba)]('id')===undefined?undefined:_0x240971[_0x17e1ad(0x1a8)]('id'),{items:_0x4caf1b,paging:_0xaba98a}=await listFlowBindingPages(_0x240971[_0x17e1ad(0x1ab)],{'currentFlowId':_0x3768d1,'name':_0x240971[_0x17e1ad(0x1b6)](_0x17e1ad(0x1a3))[_0x17e1ad(0x1b2)]()||undefined,'currentPage':_0x240971[_0x17e1ad(0x1a8)](_0x17e1ad(0x1a9),0x1),'pageSize':_0x240971[_0x17e1ad(0x1a8)](_0x17e1ad(0x1ae),0x14)});return{'ok':!![],'data':{'appCode':_0x240971[_0x17e1ad(0x1ab)],'currentFlowId':_0x3768d1,'pages':_0x4caf1b,'paging':_0xaba98a,'availabilityChecked':_0x3768d1!==undefined},'message':_0x17e1ad(0x1a0)+_0x4caf1b[_0x17e1ad(0x1a5)]+'\x20form\x20page(s)'};}};
@@ -1 +1 @@
1
- const a124_0x25f912=a124_0xc736;function a124_0x4896(){const _0x876975=['Publish\x20the\x20current\x20flow\x20definition\x20draft','8ndBpLc','27qBIOTb','6DJGsfF','appCode','.\x20Flow\x20URL:\x20','publish','540pyjVmE','228655DVHvCM','38852IAhnzZ','10180NxMIOy','flowCode','93400kKDIaK','242127uCOHOq','1234779RfMGdi','1641110QGLZJg','POST'];a124_0x4896=function(){return _0x876975;};return a124_0x4896();}function a124_0xc736(_0x3d97c5,_0x46dae4){_0x3d97c5=_0x3d97c5-0x150;const _0x4896dd=a124_0x4896();let _0xc7364a=_0x4896dd[_0x3d97c5];return _0xc7364a;}(function(_0x5970e2,_0x327650){const _0x5d5352=a124_0xc736,_0x5093c8=_0x5970e2();while(!![]){try{const _0x1d6c75=-parseInt(_0x5d5352(0x152))/0x1+parseInt(_0x5d5352(0x156))/0x2+-parseInt(_0x5d5352(0x15d))/0x3*(parseInt(_0x5d5352(0x154))/0x4)+parseInt(_0x5d5352(0x159))/0x5+parseInt(_0x5d5352(0x15e))/0x6*(-parseInt(_0x5d5352(0x158))/0x7)+parseInt(_0x5d5352(0x15c))/0x8*(parseInt(_0x5d5352(0x157))/0x9)+-parseInt(_0x5d5352(0x151))/0xa*(-parseInt(_0x5d5352(0x153))/0xb);if(_0x1d6c75===_0x327650)break;else _0x5093c8['push'](_0x5093c8['shift']());}catch(_0x339414){_0x5093c8['push'](_0x5093c8['shift']());}}}(a124_0x4896,0x282f4));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{publishFlowDefinition}from'../../core/api-client.js';import{FLOW_ID_FLAG,FLOW_PATHS,buildFlowUrl,buildFlowIdDryRun,flowSelector,readFlowId}from'../../commands/flow/shared.js';export const flowPublish={'service':'flow','command':a124_0x25f912(0x150),'description':a124_0x25f912(0x15b),'risk':'write','flags':[FLOW_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x3ca8a5){readFlowId(_0x3ca8a5);},async 'dryRun'(_0x194cb5){const _0x2e43e8=a124_0x25f912,_0x9e8735=readFlowId(_0x194cb5);return buildFlowIdDryRun(_0x2e43e8(0x150),FLOW_PATHS[_0x2e43e8(0x150)],_0x194cb5[_0x2e43e8(0x15f)],_0x9e8735,{'id':_0x9e8735,'flowStatus':'published'});},async 'execute'(_0x280a0c){const _0x3c7add=a124_0x25f912,_0x47e38b=readFlowId(_0x280a0c),_0x39572f=await publishFlowDefinition(_0x280a0c['appCode'],_0x47e38b),_0x3d38b1=buildFlowUrl(_0x280a0c[_0x3c7add(0x15f)],_0x47e38b);return{'ok':!![],'data':{'operation':_0x3c7add(0x150),'selector':flowSelector(_0x280a0c['appCode'],_0x47e38b,_0x39572f),'before':null,'after':_0x39572f,'flowUrl':_0x3d38b1,'dryRun':![],'backend':{'method':_0x3c7add(0x15a),'path':FLOW_PATHS[_0x3c7add(0x150)]},'warnings':[]},'message':'Published\x20flow\x20'+(_0x39572f['flowName']||_0x39572f[_0x3c7add(0x155)]||_0x47e38b)+_0x3c7add(0x160)+_0x3d38b1};}};
1
+ const a131_0x10dc7e=a131_0x2a00;(function(_0x4a5739,_0x3c1d49){const _0x3c581c=a131_0x2a00,_0x2ec26f=_0x4a5739();while(!![]){try{const _0x1f7dd7=-parseInt(_0x3c581c(0x15f))/0x1+parseInt(_0x3c581c(0x161))/0x2+-parseInt(_0x3c581c(0x164))/0x3*(parseInt(_0x3c581c(0x15e))/0x4)+-parseInt(_0x3c581c(0x165))/0x5*(-parseInt(_0x3c581c(0x162))/0x6)+parseInt(_0x3c581c(0x160))/0x7+parseInt(_0x3c581c(0x15a))/0x8*(parseInt(_0x3c581c(0x157))/0x9)+-parseInt(_0x3c581c(0x166))/0xa;if(_0x1f7dd7===_0x3c1d49)break;else _0x2ec26f['push'](_0x2ec26f['shift']());}catch(_0x3bd352){_0x2ec26f['push'](_0x2ec26f['shift']());}}}(a131_0x5a8c,0x74913));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{publishFlowDefinition}from'../../core/api-client.js';import{FLOW_ID_FLAG,FLOW_PATHS,buildFlowUrl,buildFlowIdDryRun,flowSelector,readFlowId}from'../../commands/flow/shared.js';function a131_0x2a00(_0x508157,_0x5a182d){_0x508157=_0x508157-0x156;const _0x5a8c87=a131_0x5a8c();let _0x2a005c=_0x5a8c87[_0x508157];return _0x2a005c;}export const flowPublish={'service':a131_0x10dc7e(0x163),'command':a131_0x10dc7e(0x15b),'description':a131_0x10dc7e(0x159),'risk':'write','flags':[FLOW_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x58242f){readFlowId(_0x58242f);},async 'dryRun'(_0x2d918b){const _0x312408=a131_0x10dc7e,_0xa9209b=readFlowId(_0x2d918b);return buildFlowIdDryRun(_0x312408(0x15b),FLOW_PATHS[_0x312408(0x15b)],_0x2d918b[_0x312408(0x15d)],_0xa9209b,{'id':_0xa9209b,'flowStatus':'published'});},async 'execute'(_0x2c89a8){const _0x3709f4=a131_0x10dc7e,_0xbac8e5=readFlowId(_0x2c89a8),_0x5bd6eb=await publishFlowDefinition(_0x2c89a8['appCode'],_0xbac8e5),_0xe8b95e=buildFlowUrl(_0x2c89a8[_0x3709f4(0x15d)],_0xbac8e5);return{'ok':!![],'data':{'operation':_0x3709f4(0x15b),'selector':flowSelector(_0x2c89a8[_0x3709f4(0x15d)],_0xbac8e5,_0x5bd6eb),'before':null,'after':_0x5bd6eb,'flowUrl':_0xe8b95e,'dryRun':![],'backend':{'method':_0x3709f4(0x15c),'path':FLOW_PATHS[_0x3709f4(0x15b)]},'warnings':[]},'message':_0x3709f4(0x156)+(_0x5bd6eb['flowName']||_0x5bd6eb[_0x3709f4(0x167)]||_0xbac8e5)+_0x3709f4(0x158)+_0xe8b95e};}};function a131_0x5a8c(){const _0xf40965=['2647107EYmcRH','.\x20Flow\x20URL:\x20','Publish\x20the\x20current\x20flow\x20definition\x20draft','16CrjUSz','publish','POST','appCode','668ipiFLn','407278UuaTrq','5058487FwFJfu','1557316zzBOjn','18216oWaeDq','flow','16347QKNzCW','540MvHJRQ','6227130dRAWFb','flowCode','Published\x20flow\x20'];a131_0x5a8c=function(){return _0xf40965;};return a131_0x5a8c();}