@lovrabet/rabetbase-cli 2.5.2 → 2.5.3-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (395) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.d.ts +1 -1
  4. package/lib/api/generate-api-file.js +1 -1
  5. package/lib/api/generate-sdk-config-file.d.ts +2 -1
  6. package/lib/api/generate-sdk-config-file.js +1 -1
  7. package/lib/auth/auth-server-ui.js +1 -1
  8. package/lib/auth/auth-server.js +1 -1
  9. package/lib/auth/constant.js +1 -1
  10. package/lib/auth/get-cookie.js +1 -1
  11. package/lib/auth/get-session-user.js +1 -1
  12. package/lib/auth/is-session-valid.js +1 -1
  13. package/lib/auth/login-success-html.js +1 -1
  14. package/lib/auth/logout.js +1 -1
  15. package/lib/cli-flags.js +1 -1
  16. package/lib/cli.js +1 -1
  17. package/lib/commands/api/generate.js +1 -1
  18. package/lib/commands/api/index.js +1 -1
  19. package/lib/commands/api/list.js +1 -1
  20. package/lib/commands/api/pull.js +1 -1
  21. package/lib/commands/api/shared.js +1 -1
  22. package/lib/commands/app/index.js +1 -1
  23. package/lib/commands/app/list.js +1 -1
  24. package/lib/commands/app/members-list.js +1 -1
  25. package/lib/commands/app/remote-directory.js +1 -1
  26. package/lib/commands/app/shared.js +1 -1
  27. package/lib/commands/app-config/delete.js +1 -1
  28. package/lib/commands/app-config/get.js +1 -1
  29. package/lib/commands/app-config/index.js +1 -1
  30. package/lib/commands/app-config/list.js +1 -1
  31. package/lib/commands/app-config/set.js +1 -1
  32. package/lib/commands/app-config/shared.js +1 -1
  33. package/lib/commands/auth/index.js +1 -1
  34. package/lib/commands/bff/create.js +1 -1
  35. package/lib/commands/bff/delete.js +1 -1
  36. package/lib/commands/bff/detail.js +1 -1
  37. package/lib/commands/bff/index.js +1 -1
  38. package/lib/commands/bff/list.js +1 -1
  39. package/lib/commands/bff/logs.d.ts +7 -0
  40. package/lib/commands/bff/logs.js +1 -0
  41. package/lib/commands/bff/pull.js +1 -1
  42. package/lib/commands/bff/push.js +1 -1
  43. package/lib/commands/bff/status.js +1 -1
  44. package/lib/commands/cli-skill/index.js +1 -1
  45. package/lib/commands/cli-update.js +1 -1
  46. package/lib/commands/codegen/index.js +1 -1
  47. package/lib/commands/codegen/sdk.js +1 -1
  48. package/lib/commands/codegen/sql.js +1 -1
  49. package/lib/commands/common/app-registry.js +1 -1
  50. package/lib/commands/common/app-selector.js +1 -1
  51. package/lib/commands/common/async-task.js +1 -1
  52. package/lib/commands/common/dry-run.js +1 -1
  53. package/lib/commands/common/flags.js +1 -1
  54. package/lib/commands/common/local-file.js +1 -1
  55. package/lib/commands/common/validate.js +1 -1
  56. package/lib/commands/config/delete.js +1 -1
  57. package/lib/commands/config/get.js +1 -1
  58. package/lib/commands/config/index.js +1 -1
  59. package/lib/commands/config/init.js +1 -1
  60. package/lib/commands/config/list.js +1 -1
  61. package/lib/commands/config/set.js +1 -1
  62. package/lib/commands/config/shared.js +1 -1
  63. package/lib/commands/dataset/batch-design.d.ts +21 -0
  64. package/lib/commands/dataset/batch-design.js +1 -0
  65. package/lib/commands/dataset/business-group-update.js +1 -1
  66. package/lib/commands/dataset/business-groups.js +1 -1
  67. package/lib/commands/dataset/capability.js +1 -1
  68. package/lib/commands/dataset/delete.js +1 -1
  69. package/lib/commands/dataset/detail.js +1 -1
  70. package/lib/commands/dataset/extend-update.js +1 -1
  71. package/lib/commands/dataset/field-restore.js +1 -1
  72. package/lib/commands/dataset/field-update.js +1 -1
  73. package/lib/commands/dataset/generate.js +1 -1
  74. package/lib/commands/dataset/index.js +1 -1
  75. package/lib/commands/dataset/list.js +1 -1
  76. package/lib/commands/dataset/operations.js +1 -1
  77. package/lib/commands/dataset/relation-audit.js +1 -1
  78. package/lib/commands/dataset/relation-create.js +1 -1
  79. package/lib/commands/dataset/relation-delete.js +1 -1
  80. package/lib/commands/dataset/relation-shared.js +1 -1
  81. package/lib/commands/dataset/relation-update.js +1 -1
  82. package/lib/commands/dataset/relations.js +1 -1
  83. package/lib/commands/dataset/rename.js +1 -1
  84. package/lib/commands/dataset/restore.js +1 -1
  85. package/lib/commands/dataset/user-deleted-field-list.js +1 -1
  86. package/lib/commands/db/analysis-batching.js +1 -1
  87. package/lib/commands/db/analyze-batch-plan.js +1 -1
  88. package/lib/commands/db/analyze-cancel.js +1 -1
  89. package/lib/commands/db/analyze-start.js +1 -1
  90. package/lib/commands/db/analyze-status.js +1 -1
  91. package/lib/commands/db/create.js +1 -1
  92. package/lib/commands/db/delete.js +1 -1
  93. package/lib/commands/db/detail.js +1 -1
  94. package/lib/commands/db/diff-refresh-start.js +1 -1
  95. package/lib/commands/db/diff-refresh-status.js +1 -1
  96. package/lib/commands/db/diff.js +1 -1
  97. package/lib/commands/db/index.js +1 -1
  98. package/lib/commands/db/list.js +1 -1
  99. package/lib/commands/db/shared.js +1 -1
  100. package/lib/commands/db/table-diff-shared.js +1 -1
  101. package/lib/commands/db/tables.js +1 -1
  102. package/lib/commands/db/test.js +1 -1
  103. package/lib/commands/db/update.js +1 -1
  104. package/lib/commands/deployment/index.js +1 -1
  105. package/lib/commands/deployment/sync-all.js +1 -1
  106. package/lib/commands/deployment/sync-jobs.js +1 -1
  107. package/lib/commands/deployment/sync-status.js +1 -1
  108. package/lib/commands/doctor.js +1 -1
  109. package/lib/commands/file/index.js +1 -1
  110. package/lib/commands/flow/create.d.ts +2 -0
  111. package/lib/commands/flow/create.js +1 -0
  112. package/lib/commands/flow/detail.d.ts +2 -0
  113. package/lib/commands/flow/detail.js +1 -0
  114. package/lib/commands/flow/index.d.ts +3 -0
  115. package/lib/commands/flow/index.js +1 -0
  116. package/lib/commands/flow/list.d.ts +2 -0
  117. package/lib/commands/flow/list.js +1 -0
  118. package/lib/commands/flow/publish.d.ts +2 -0
  119. package/lib/commands/flow/publish.js +1 -0
  120. package/lib/commands/flow/runtime-resources-shared.d.ts +40 -0
  121. package/lib/commands/flow/runtime-resources-shared.js +1 -0
  122. package/lib/commands/flow/runtime-role-list.d.ts +2 -0
  123. package/lib/commands/flow/runtime-role-list.js +1 -0
  124. package/lib/commands/flow/runtime-role-user-list.d.ts +2 -0
  125. package/lib/commands/flow/runtime-role-user-list.js +1 -0
  126. package/lib/commands/flow/runtime-user-search.d.ts +2 -0
  127. package/lib/commands/flow/runtime-user-search.js +1 -0
  128. package/lib/commands/flow/shared.d.ts +41 -0
  129. package/lib/commands/flow/shared.js +1 -0
  130. package/lib/commands/flow/update.d.ts +2 -0
  131. package/lib/commands/flow/update.js +1 -0
  132. package/lib/commands/flow/validate.d.ts +3 -0
  133. package/lib/commands/flow/validate.js +1 -0
  134. package/lib/commands/instant-api-policy/current.js +1 -1
  135. package/lib/commands/instant-api-policy/index.js +1 -1
  136. package/lib/commands/instant-api-policy/init.js +1 -1
  137. package/lib/commands/instant-api-policy/publish.js +1 -1
  138. package/lib/commands/instant-api-policy/pull.js +1 -1
  139. package/lib/commands/instant-api-policy/revision.js +1 -1
  140. package/lib/commands/instant-api-policy/revisions.js +1 -1
  141. package/lib/commands/instant-api-policy/rollback.js +1 -1
  142. package/lib/commands/instant-api-policy/shared.js +1 -1
  143. package/lib/commands/instant-api-policy/validate.js +1 -1
  144. package/lib/commands/issue/index.js +1 -1
  145. package/lib/commands/issue/nudge.js +1 -1
  146. package/lib/commands/issue/report.js +1 -1
  147. package/lib/commands/issue/shared.js +1 -1
  148. package/lib/commands/kb/create.js +1 -1
  149. package/lib/commands/kb/delete.js +1 -1
  150. package/lib/commands/kb/detail.js +1 -1
  151. package/lib/commands/kb/index.js +1 -1
  152. package/lib/commands/kb/list.js +1 -1
  153. package/lib/commands/kb/search.js +1 -1
  154. package/lib/commands/kb/shared.js +1 -1
  155. package/lib/commands/kb/update.js +1 -1
  156. package/lib/commands/logs/index.js +1 -1
  157. package/lib/commands/menu/asset-update.js +1 -1
  158. package/lib/commands/menu/delete.js +1 -1
  159. package/lib/commands/menu/external-link-create.js +1 -1
  160. package/lib/commands/menu/external-link-update.js +1 -1
  161. package/lib/commands/menu/group-create.js +1 -1
  162. package/lib/commands/menu/group-update.js +1 -1
  163. package/lib/commands/menu/index.js +1 -1
  164. package/lib/commands/menu/list.js +1 -1
  165. package/lib/commands/menu/move.js +1 -1
  166. package/lib/commands/menu/regroup-start.js +1 -1
  167. package/lib/commands/menu/rename.js +1 -1
  168. package/lib/commands/menu/shared/compare-table.js +1 -1
  169. package/lib/commands/menu/shared/delete-plan.js +1 -1
  170. package/lib/commands/menu/shared/facts.js +1 -1
  171. package/lib/commands/menu/shared/index.js +1 -1
  172. package/lib/commands/menu/shared/inquirer.js +1 -1
  173. package/lib/commands/menu/shared/local-pages.js +1 -1
  174. package/lib/commands/menu/shared/logic.js +1 -1
  175. package/lib/commands/menu/shared/mutations.js +1 -1
  176. package/lib/commands/menu/shared/service.js +1 -1
  177. package/lib/commands/menu/shared/sync-core.js +1 -1
  178. package/lib/commands/menu/shared/update-core.js +1 -1
  179. package/lib/commands/menu/shared/valid-url.js +1 -1
  180. package/lib/commands/menu/sync.js +1 -1
  181. package/lib/commands/menu/visibility-update.js +1 -1
  182. package/lib/commands/notification/config-create.js +1 -1
  183. package/lib/commands/notification/config-delete.js +1 -1
  184. package/lib/commands/notification/config-list.js +1 -1
  185. package/lib/commands/notification/config-update.js +1 -1
  186. package/lib/commands/notification/index.js +1 -1
  187. package/lib/commands/notification/shared.js +1 -1
  188. package/lib/commands/ocr/index.js +1 -1
  189. package/lib/commands/page/create.js +1 -1
  190. package/lib/commands/page/custom/detail.js +1 -1
  191. package/lib/commands/page/custom/list.js +1 -1
  192. package/lib/commands/page/custom/publish.js +1 -1
  193. package/lib/commands/page/custom/shared.js +1 -1
  194. package/lib/commands/page/custom/syntax.js +1 -1
  195. package/lib/commands/page/custom/update.js +1 -1
  196. package/lib/commands/page/data-list-status.js +1 -1
  197. package/lib/commands/page/generate-start.js +1 -1
  198. package/lib/commands/page/generate-status.js +1 -1
  199. package/lib/commands/page/index.js +1 -1
  200. package/lib/commands/page/pull.js +1 -1
  201. package/lib/commands/page/push.js +1 -1
  202. package/lib/commands/page/relation-audit.js +1 -1
  203. package/lib/commands/page/restore.js +1 -1
  204. package/lib/commands/page/shared.js +1 -1
  205. package/lib/commands/page/sync.js +1 -1
  206. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  207. package/lib/commands/project/create/format-elapsed.js +1 -1
  208. package/lib/commands/project/create/main.js +1 -1
  209. package/lib/commands/project/create/materialize-project-template.js +1 -1
  210. package/lib/commands/project/create/project-name.js +1 -1
  211. package/lib/commands/project/create/project-template-archive.js +1 -1
  212. package/lib/commands/project/create/project-template-path.js +1 -1
  213. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  214. package/lib/commands/project/create/use-format-code.js +1 -1
  215. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  216. package/lib/commands/project/domain-routing-sync.js +1 -1
  217. package/lib/commands/project/index.js +1 -1
  218. package/lib/commands/project/upgrade.js +1 -1
  219. package/lib/commands/registry.js +1 -1
  220. package/lib/commands/role/delete.js +1 -1
  221. package/lib/commands/role/detail.js +1 -1
  222. package/lib/commands/role/index.js +1 -1
  223. package/lib/commands/role/list.js +1 -1
  224. package/lib/commands/role/shared.js +1 -1
  225. package/lib/commands/role/update.js +1 -1
  226. package/lib/commands/role/user-add.js +1 -1
  227. package/lib/commands/role/user-remove.js +1 -1
  228. package/lib/commands/role/user-resolve.js +1 -1
  229. package/lib/commands/rule/get.js +1 -1
  230. package/lib/commands/rule/index.js +1 -1
  231. package/lib/commands/rule/list.js +1 -1
  232. package/lib/commands/rule/set.js +1 -1
  233. package/lib/commands/rule/shared.js +1 -1
  234. package/lib/commands/run/index.js +1 -1
  235. package/lib/commands/schema.js +1 -1
  236. package/lib/commands/sql/create.js +1 -1
  237. package/lib/commands/sql/delete.js +1 -1
  238. package/lib/commands/sql/detail.js +1 -1
  239. package/lib/commands/sql/exec.js +1 -1
  240. package/lib/commands/sql/index.js +1 -1
  241. package/lib/commands/sql/list.js +1 -1
  242. package/lib/commands/sql/pull.js +1 -1
  243. package/lib/commands/sql/push.js +1 -1
  244. package/lib/commands/sql/shared.js +1 -1
  245. package/lib/commands/sql/status.js +1 -1
  246. package/lib/commands/sql/validate.js +1 -1
  247. package/lib/commands/task/index.js +1 -1
  248. package/lib/commands/task/status.js +1 -1
  249. package/lib/commands/tenant/index.js +1 -1
  250. package/lib/commands/tenant/members-list.js +1 -1
  251. package/lib/commands/tenant/shared.js +1 -1
  252. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  253. package/lib/commands/user-account/index.js +1 -1
  254. package/lib/commands/workspace/add.js +1 -1
  255. package/lib/commands/workspace/index.js +1 -1
  256. package/lib/commands/workspace/remove.js +1 -1
  257. package/lib/config/domain-config.js +1 -1
  258. package/lib/config/project-domain-routing.js +1 -1
  259. package/lib/config/region-config.d.ts +23 -0
  260. package/lib/config/region-config.js +1 -0
  261. package/lib/config/schema.d.ts +15 -0
  262. package/lib/config/schema.js +1 -1
  263. package/lib/constant/cdn.js +1 -1
  264. package/lib/constant/cli.js +1 -1
  265. package/lib/constant/defaults.js +1 -1
  266. package/lib/constant/domain.js +1 -1
  267. package/lib/constant/env.js +1 -1
  268. package/lib/constant/output.js +1 -1
  269. package/lib/constant/paths.js +1 -1
  270. package/lib/constant/region.js +1 -1
  271. package/lib/constant/risk.js +1 -1
  272. package/lib/constant/routing-profile.js +1 -1
  273. package/lib/context/app-resolver.d.ts +6 -0
  274. package/lib/context/app-resolver.js +1 -1
  275. package/lib/context/auth-resolver.js +1 -1
  276. package/lib/context/config-loader.js +1 -1
  277. package/lib/context.d.ts +13 -0
  278. package/lib/context.js +1 -1
  279. package/lib/core/alias-resolver.js +1 -1
  280. package/lib/core/api-client.d.ts +172 -1
  281. package/lib/core/api-client.js +1 -1
  282. package/lib/core/bff/config.js +1 -1
  283. package/lib/core/bff/file-system.js +1 -1
  284. package/lib/core/bff/hash.js +1 -1
  285. package/lib/core/bff/hook-directory.d.ts +55 -0
  286. package/lib/core/bff/hook-directory.js +1 -0
  287. package/lib/core/bff/lock.js +1 -1
  288. package/lib/core/bff/types.d.ts +15 -0
  289. package/lib/core/bff/utils.js +1 -1
  290. package/lib/core/db-resolver.js +1 -1
  291. package/lib/core/flow-config.d.ts +628 -0
  292. package/lib/core/flow-config.js +1 -0
  293. package/lib/core/instant-api-policy/config.js +1 -1
  294. package/lib/core/kb-search-client.js +1 -1
  295. package/lib/core/page/file-system.js +1 -1
  296. package/lib/core/page/hash.js +1 -1
  297. package/lib/core/page/lock.js +1 -1
  298. package/lib/core/page/lr-smart-jsx.d.ts +6 -0
  299. package/lib/core/page/lr-smart-jsx.js +1 -0
  300. package/lib/core/sql-index-auditor.js +1 -1
  301. package/lib/core/sql-sync/config.js +1 -1
  302. package/lib/core/sql-sync/file-system.js +1 -1
  303. package/lib/core/sql-sync/hash.js +1 -1
  304. package/lib/core/sql-sync/lock.js +1 -1
  305. package/lib/core/sql-sync/utils.js +1 -1
  306. package/lib/core/sql-validator.js +1 -1
  307. package/lib/errors.js +1 -1
  308. package/lib/framework/build-all-flags.js +1 -1
  309. package/lib/framework/error-output.js +1 -1
  310. package/lib/framework/explicit-yes.js +1 -1
  311. package/lib/framework/flags.js +1 -1
  312. package/lib/framework/help.js +1 -1
  313. package/lib/framework/index.js +1 -1
  314. package/lib/framework/output.js +1 -1
  315. package/lib/framework/response.js +1 -1
  316. package/lib/framework/runner-alias.js +1 -1
  317. package/lib/framework/runner.js +1 -1
  318. package/lib/framework/schema-export.js +1 -1
  319. package/lib/framework/supported-flags.js +1 -1
  320. package/lib/framework/types.js +1 -1
  321. package/lib/generated/build-info.d.ts +4 -4
  322. package/lib/generated/build-info.js +1 -1
  323. package/lib/generated/official-routing.js +1 -1
  324. package/lib/generated/routing-contract.js +1 -1
  325. package/lib/help.js +1 -1
  326. package/lib/postinstall.js +1 -1
  327. package/lib/runtime/confirmation.js +1 -1
  328. package/lib/runtime/event.js +1 -1
  329. package/lib/runtime/index.js +1 -1
  330. package/lib/runtime/queue.js +1 -1
  331. package/lib/runtime/resolve.js +1 -1
  332. package/lib/skills/builtin-skill.js +1 -1
  333. package/lib/skills/main.js +1 -1
  334. package/lib/skills/npx-skills-add.js +1 -1
  335. package/lib/skills/skill-presence.js +1 -1
  336. package/lib/telemetry/cli-command-trace.js +1 -1
  337. package/lib/telemetry/cli-help-trace.js +1 -1
  338. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  339. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  340. package/lib/telemetry/send-cli-trace-log.js +1 -1
  341. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  342. package/lib/types/index.d.ts +1 -1
  343. package/lib/utils/ai_config.js +1 -1
  344. package/lib/utils/apply-jq-filter.js +1 -1
  345. package/lib/utils/cdn-config.js +1 -1
  346. package/lib/utils/check-sdk-version.js +1 -1
  347. package/lib/utils/cli-version-check.js +1 -1
  348. package/lib/utils/cli-version-policy.js +1 -1
  349. package/lib/utils/config.d.ts +2 -8
  350. package/lib/utils/config.js +1 -1
  351. package/lib/utils/entity-with-id.js +1 -1
  352. package/lib/utils/file-utils.js +1 -1
  353. package/lib/utils/guides-cdn.js +1 -1
  354. package/lib/utils/http-client.js +1 -1
  355. package/lib/utils/is-non-interactive.js +1 -1
  356. package/lib/utils/logger.js +1 -1
  357. package/lib/utils/params.js +1 -1
  358. package/lib/utils/platform.js +1 -1
  359. package/lib/utils/sleep.js +1 -1
  360. package/lib/utils/template-replacer.d.ts +2 -1
  361. package/lib/utils/template-replacer.js +1 -1
  362. package/lib/utils/update-notice.js +1 -1
  363. package/lib/utils/version.js +1 -1
  364. package/lib/utils/with-active-cookie.js +1 -1
  365. package/lib/utils/write-cli-side-channel.js +1 -1
  366. package/package.json +1 -1
  367. package/skills/rabetbase/SKILL.md +27 -8
  368. package/skills/rabetbase/guides/approval-flow-development-workflow.md +137 -0
  369. package/skills/rabetbase/guides/backend-function.md +19 -9
  370. package/skills/rabetbase/guides/bff-creation-workflow.md +10 -1
  371. package/skills/rabetbase/guides/conflict-detection.md +2 -0
  372. package/skills/rabetbase/guides/page-development-workflow.md +3 -0
  373. package/skills/rabetbase/guides/sdk-client-generation.md +6 -5
  374. package/skills/rabetbase/knowledge/approval-flow/config-json-schema.md +290 -0
  375. package/skills/rabetbase/knowledge/page-schema/LrSmartJsx.md +11 -3
  376. package/skills/rabetbase/references/rabetbase-api-pull.md +5 -4
  377. package/skills/rabetbase/references/rabetbase-app-list.md +3 -0
  378. package/skills/rabetbase/references/rabetbase-bff-create.md +1 -1
  379. package/skills/rabetbase/references/rabetbase-bff-list.md +1 -1
  380. package/skills/rabetbase/references/rabetbase-bff-logs.md +47 -0
  381. package/skills/rabetbase/references/rabetbase-bff-pull.md +9 -3
  382. package/skills/rabetbase/references/rabetbase-bff-push.md +10 -2
  383. package/skills/rabetbase/references/rabetbase-bff-status.md +2 -0
  384. package/skills/rabetbase/references/rabetbase-config.md +10 -9
  385. package/skills/rabetbase/references/rabetbase-dataset-generate.md +52 -2
  386. package/skills/rabetbase/references/rabetbase-doctor.md +2 -2
  387. package/skills/rabetbase/references/rabetbase-flow-commands.md +86 -0
  388. package/skills/rabetbase/references/rabetbase-flow-resources.md +83 -0
  389. package/skills/rabetbase/references/rabetbase-flow-runtime-boundary.md +25 -0
  390. package/skills/rabetbase/references/rabetbase-instant-api-policy.md +103 -11
  391. package/skills/rabetbase/references/rabetbase-notification-config-list.md +17 -0
  392. package/skills/rabetbase/references/rabetbase-page-push.md +5 -1
  393. package/skills/rabetbase/references/rabetbase-workspace.md +4 -2
  394. package/skills/rabetbase.manifest.json +9 -3
  395. package/templates/generate-api/client.ts.tpl +1 -1
@@ -1 +1 @@
1
- const a96_0x59094d=a96_0xfc94;function a96_0xfc94(_0x44ce3c,_0x175805){_0x44ce3c=_0x44ce3c-0x1e3;const _0x53eebe=a96_0x53ee();let _0xfc9474=_0x53eebe[_0x44ce3c];return _0xfc9474;}(function(_0x1a373b,_0x123f96){const _0x554611=a96_0xfc94,_0x1acd36=_0x1a373b();while(!![]){try{const _0x4bd6d7=-parseInt(_0x554611(0x204))/0x1+parseInt(_0x554611(0x1fb))/0x2+-parseInt(_0x554611(0x1e5))/0x3+-parseInt(_0x554611(0x203))/0x4*(parseInt(_0x554611(0x1e6))/0x5)+parseInt(_0x554611(0x1fe))/0x6+-parseInt(_0x554611(0x205))/0x7+parseInt(_0x554611(0x1ef))/0x8;if(_0x4bd6d7===_0x123f96)break;else _0x1acd36['push'](_0x1acd36['shift']());}catch(_0x23ce85){_0x1acd36['push'](_0x1acd36['shift']());}}}(a96_0x53ee,0xd584b));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(['******',a96_0x59094d(0x1ed)]);function a96_0x53ee(){const _0x1ebef2=['/smartapi/dblink/update','1690323rBJGmE','415ZBFfHw','The\x20server\x20returned\x20a\x20masked\x20database\x20password.\x20Pass\x20the\x20current\x20or\x20replacement\x20password\x20explicitly\x20with\x20--password\x20to\x20update\x20this\x20connection\x20safely.','dbDesc','dbname','New\x20host:port','has','str','[redacted]','dbparam','9686720xqeFHk','num','Preview\x20the\x20merged\x20database\x20connection\x20update;\x20password\x20redacted','write','username','dburl','update','Updated\x20db\x20link\x20','bool','skip-connection-test','POST','validation','2162080HLABjk','New\x20username','Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22','3722886HsQJOe','dbParam','dbdesc','New\x20description','dbName','40464DvwVwz','604188zvGLCa','213731Kifvls','--password\x20must\x20contain\x20the\x20real\x20database\x20password,\x20not\x20a\x20masked\x20value.','New\x20database\x20name','trim','Current\x20or\x20replacement\x20password.\x20Required\x20when\x20the\x20stored\x20password\x20is\x20masked','password','string'];a96_0x53ee=function(){return _0x1ebef2;};return a96_0x53ee();}function mergeDbLinkUpdate(_0x18a203,_0xf40ffe){const _0x2de217=a96_0x59094d,_0x509c5e={..._0x18a203},_0x37ba9f=_0xf40ffe['str'](_0x2de217(0x20a));if(_0x37ba9f&&MASKED_PASSWORD_VALUES[_0x2de217(0x1eb)](_0x37ba9f))throw CliErrors[_0x2de217(0x1fa)](_0x2de217(0x206));if(!_0x37ba9f&&MASKED_PASSWORD_VALUES[_0x2de217(0x1eb)](String(_0x18a203[_0x2de217(0x20a)]??'')))throw CliErrors['validation'](_0x2de217(0x1e7));const _0x126bc3=_0xf40ffe[_0x2de217(0x1ec)](_0x2de217(0x1e9));if(_0x126bc3)_0x509c5e[_0x2de217(0x202)]=_0x126bc3;const _0x2a1c2a=_0xf40ffe[_0x2de217(0x1ec)](_0x2de217(0x1f4));if(_0x2a1c2a)_0x509c5e['dbUrl']=_0x2a1c2a['trim']();const _0x201651=_0xf40ffe[_0x2de217(0x1ec)]('username');if(_0x201651)_0x509c5e[_0x2de217(0x1f3)]=_0x201651;if(_0x37ba9f)_0x509c5e[_0x2de217(0x20a)]=_0x37ba9f;const _0x4d7dff=_0xf40ffe['str'](_0x2de217(0x1ee));if(_0x4d7dff)_0x509c5e[_0x2de217(0x1ff)]=_0x4d7dff;const _0x5edcb5=_0xf40ffe[_0x2de217(0x1ec)](_0x2de217(0x200));if(_0x5edcb5)_0x509c5e[_0x2de217(0x1e8)]=_0x5edcb5;return _0x509c5e;}export const dbUpdate={'service':'db','command':a96_0x59094d(0x1f5),'description':'Update\x20a\x20database\x20connection\x20by\x20merging\x20supplied\x20fields\x20into\x20the\x20current\x20server\x20record.\x20A\x20masked\x20server\x20password\x20requires\x20explicit\x20--password','risk':a96_0x59094d(0x1f2),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a96_0x59094d(0x1e9),'type':a96_0x59094d(0x1e3),'description':a96_0x59094d(0x207)},{'name':a96_0x59094d(0x1f4),'type':'string','description':a96_0x59094d(0x1ea)},{'name':'username','type':'string','description':a96_0x59094d(0x1fc)},{'name':a96_0x59094d(0x20a),'type':'string','description':a96_0x59094d(0x209)},{'name':a96_0x59094d(0x1ee),'type':a96_0x59094d(0x1e3),'description':'New\x20connection\x20parameter\x20string'},{'name':a96_0x59094d(0x200),'type':a96_0x59094d(0x1e3),'description':a96_0x59094d(0x201)},SKIP_CONNECTION_TEST_FLAG],async 'validate'(_0x1eb08a){const _0x1f75e4=a96_0x59094d,_0x20a318=_0x1eb08a[_0x1f75e4(0x1ec)]('dburl');if(_0x20a318&&!validateDbUrl(_0x20a318[_0x1f75e4(0x208)]()))throw CliErrors['validation'](_0x1f75e4(0x1fd)+_0x20a318+'\x22');},async 'dryRun'(_0x324827){const _0x398ef9=a96_0x59094d,_0x47967c=_0x324827[_0x398ef9(0x1f0)]('id'),_0x453174=await getDbLinkInfo(_0x47967c),_0x374cf5=mergeDbLinkUpdate(_0x453174,_0x324827),_0x5d0bf0=sanitizeDbLinkForOutput(_0x374cf5);return{'method':_0x398ef9(0x1f9),'url':_0x398ef9(0x1e4),'body':_0x5d0bf0,'description':_0x398ef9(0x1f1),'connectionPreflight':{'enabled':!_0x324827[_0x398ef9(0x1f7)](_0x398ef9(0x1f8)),'executed':![]}};},async 'execute'(_0x333f7e){const _0xd56b8b=a96_0x59094d,_0x4dbdc3=_0x333f7e['num']('id'),_0x33826c=await getDbLinkInfo(_0x4dbdc3),_0x12bc5d=mergeDbLinkUpdate(_0x33826c,_0x333f7e);!_0x333f7e[_0xd56b8b(0x1f7)](_0xd56b8b(0x1f8))&&await assertDbLinkConnectionPreflight(_0x12bc5d);const {id:_0x85b6de,entity:_0x3b9786}=normalizeEntityWithIdResponse(await updateDbLink(_0x12bc5d));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x3b9786),'message':_0xd56b8b(0x1f6)+(_0x85b6de??_0x4dbdc3)};}};
1
+ function a98_0xb9c9(_0x35bfb8,_0xce6ba3){_0x35bfb8=_0x35bfb8-0xd8;const _0x57df11=a98_0x57df();let _0xb9c9a1=_0x57df11[_0x35bfb8];return _0xb9c9a1;}function a98_0x57df(){const _0x755210=['New\x20description','347295oZGiUe','dbname','New\x20username','trim','The\x20server\x20returned\x20a\x20masked\x20database\x20password.\x20Pass\x20the\x20current\x20or\x20replacement\x20password\x20explicitly\x20with\x20--password\x20to\x20update\x20this\x20connection\x20safely.','2644675svtpFh','num','str','dbdesc','write','425858BcSaVt','validation','28IaAaJN','New\x20database\x20name','password','414XBMIEt','8164020wRkpMX','skip-connection-test','New\x20connection\x20parameter\x20string','11138600UMFlcT','dburl','update','bool','Current\x20or\x20replacement\x20password.\x20Required\x20when\x20the\x20stored\x20password\x20is\x20masked','New\x20host:port','104592ZrInvJ','username','dbDesc','******','/smartapi/dblink/update','9086yojdRA','string','2796abawyt','has','dbName','--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','2rpxHNE','Preview\x20the\x20merged\x20database\x20connection\x20update;\x20password\x20redacted'];a98_0x57df=function(){return _0x755210;};return a98_0x57df();}const a98_0x5843a6=a98_0xb9c9;(function(_0x219d54,_0x4d37f8){const _0x15a121=a98_0xb9c9,_0x48599b=_0x219d54();while(!![]){try{const _0x10441f=parseInt(_0x15a121(0xff))/0x1*(parseInt(_0x15a121(0xe4))/0x2)+-parseInt(_0x15a121(0xda))/0x3*(-parseInt(_0x15a121(0xe6))/0x4)+-parseInt(_0x15a121(0xdf))/0x5+parseInt(_0x15a121(0xfa))/0x6*(-parseInt(_0x15a121(0xf8))/0x7)+parseInt(_0x15a121(0xf3))/0x8*(parseInt(_0x15a121(0xe9))/0x9)+parseInt(_0x15a121(0xea))/0xa+-parseInt(_0x15a121(0xed))/0xb;if(_0x10441f===_0x4d37f8)break;else _0x48599b['push'](_0x48599b['shift']());}catch(_0x53773e){_0x48599b['push'](_0x48599b['shift']());}}}(a98_0x57df,0x7bee0));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([a98_0x5843a6(0xf6),'[redacted]']);function mergeDbLinkUpdate(_0x982aef,_0x1922ed){const _0x252354=a98_0x5843a6,_0x1c8c9f={..._0x982aef},_0x32c36a=_0x1922ed[_0x252354(0xe1)](_0x252354(0xe8));if(_0x32c36a&&MASKED_PASSWORD_VALUES[_0x252354(0xfb)](_0x32c36a))throw CliErrors[_0x252354(0xe5)](_0x252354(0xfd));if(!_0x32c36a&&MASKED_PASSWORD_VALUES[_0x252354(0xfb)](String(_0x982aef[_0x252354(0xe8)]??'')))throw CliErrors[_0x252354(0xe5)](_0x252354(0xde));const _0x90a2b=_0x1922ed[_0x252354(0xe1)](_0x252354(0xdb));if(_0x90a2b)_0x1c8c9f[_0x252354(0xfc)]=_0x90a2b;const _0x451af2=_0x1922ed[_0x252354(0xe1)](_0x252354(0xee));if(_0x451af2)_0x1c8c9f['dbUrl']=_0x451af2[_0x252354(0xdd)]();const _0x3c44c3=_0x1922ed[_0x252354(0xe1)](_0x252354(0xf4));if(_0x3c44c3)_0x1c8c9f[_0x252354(0xf4)]=_0x3c44c3;if(_0x32c36a)_0x1c8c9f[_0x252354(0xe8)]=_0x32c36a;const _0x5b3c25=_0x1922ed[_0x252354(0xe1)]('dbparam');if(_0x5b3c25)_0x1c8c9f['dbParam']=_0x5b3c25;const _0x25a62c=_0x1922ed['str']('dbdesc');if(_0x25a62c)_0x1c8c9f[_0x252354(0xf5)]=_0x25a62c;return _0x1c8c9f;}export const dbUpdate={'service':'db','command':a98_0x5843a6(0xef),'description':a98_0x5843a6(0xfe),'risk':a98_0x5843a6(0xe3),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a98_0x5843a6(0xdb),'type':a98_0x5843a6(0xf9),'description':a98_0x5843a6(0xe7)},{'name':a98_0x5843a6(0xee),'type':'string','description':a98_0x5843a6(0xf2)},{'name':a98_0x5843a6(0xf4),'type':'string','description':a98_0x5843a6(0xdc)},{'name':a98_0x5843a6(0xe8),'type':a98_0x5843a6(0xf9),'description':a98_0x5843a6(0xf1)},{'name':'dbparam','type':a98_0x5843a6(0xf9),'description':a98_0x5843a6(0xec)},{'name':a98_0x5843a6(0xe2),'type':'string','description':a98_0x5843a6(0xd9)},SKIP_CONNECTION_TEST_FLAG],async 'validate'(_0x4e366f){const _0x4e085c=a98_0x5843a6,_0x1dccfe=_0x4e366f[_0x4e085c(0xe1)]('dburl');if(_0x1dccfe&&!validateDbUrl(_0x1dccfe['trim']()))throw CliErrors[_0x4e085c(0xe5)]('Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22'+_0x1dccfe+'\x22');},async 'dryRun'(_0x3154f8){const _0x14641b=a98_0x5843a6,_0x5114e8=_0x3154f8[_0x14641b(0xe0)]('id'),_0x214a67=await getDbLinkInfo(_0x5114e8),_0x526ab5=mergeDbLinkUpdate(_0x214a67,_0x3154f8),_0x36c4c8=sanitizeDbLinkForOutput(_0x526ab5);return{'method':'POST','url':_0x14641b(0xf7),'body':_0x36c4c8,'description':_0x14641b(0xd8),'connectionPreflight':{'enabled':!_0x3154f8[_0x14641b(0xf0)](_0x14641b(0xeb)),'executed':![]}};},async 'execute'(_0xfcce77){const _0x5e25f6=_0xfcce77['num']('id'),_0x53e6c6=await getDbLinkInfo(_0x5e25f6),_0x20d136=mergeDbLinkUpdate(_0x53e6c6,_0xfcce77);!_0xfcce77['bool']('skip-connection-test')&&await assertDbLinkConnectionPreflight(_0x20d136);const {id:_0x281ca2,entity:_0x37206d}=normalizeEntityWithIdResponse(await updateDbLink(_0x20d136));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x37206d),'message':'Updated\x20db\x20link\x20'+(_0x281ca2??_0x5e25f6)};}};
@@ -1 +1 @@
1
- (function(_0x18a827,_0x5ab39b){const _0x5a4b24=a97_0x8732,_0x2ddb18=_0x18a827();while(!![]){try{const _0x2959a3=parseInt(_0x5a4b24(0x128))/0x1*(-parseInt(_0x5a4b24(0x12d))/0x2)+-parseInt(_0x5a4b24(0x125))/0x3*(parseInt(_0x5a4b24(0x127))/0x4)+-parseInt(_0x5a4b24(0x129))/0x5+-parseInt(_0x5a4b24(0x124))/0x6*(-parseInt(_0x5a4b24(0x12a))/0x7)+-parseInt(_0x5a4b24(0x12b))/0x8+parseInt(_0x5a4b24(0x12c))/0x9+parseInt(_0x5a4b24(0x126))/0xa;if(_0x2959a3===_0x5ab39b)break;else _0x2ddb18['push'](_0x2ddb18['shift']());}catch(_0x3d5242){_0x2ddb18['push'](_0x2ddb18['shift']());}}}(a97_0x957d,0x32a66));import{deploymentSyncAll}from'../../commands/deployment/sync-all.js';import{deploymentSyncStatus}from'../../commands/deployment/sync-status.js';function a97_0x8732(_0x508e58,_0xa0f78){_0x508e58=_0x508e58-0x124;const _0x957da1=a97_0x957d();let _0x873275=_0x957da1[_0x508e58];return _0x873275;}import{deploymentSyncJobs}from'../../commands/deployment/sync-jobs.js';export const deploymentDefinitions=[deploymentSyncAll,deploymentSyncStatus,deploymentSyncJobs];function a97_0x957d(){const _0x504ef3=['49dOjfuu','3057632ddMrFe','87003RLlhJb','6078wjPcAN','143610vBfrMZ','10698xjniby','9999890SAxrFc','100jjZQnM','85sMFlyX','1200350MFYDTD'];a97_0x957d=function(){return _0x504ef3;};return a97_0x957d();}
1
+ (function(_0x4ce408,_0x5f017e){const _0xb402a0=a99_0x5c83,_0xc258bb=_0x4ce408();while(!![]){try{const _0x188269=parseInt(_0xb402a0(0x1c3))/0x1*(parseInt(_0xb402a0(0x1c2))/0x2)+-parseInt(_0xb402a0(0x1c8))/0x3+-parseInt(_0xb402a0(0x1c0))/0x4+parseInt(_0xb402a0(0x1c1))/0x5+parseInt(_0xb402a0(0x1bf))/0x6*(parseInt(_0xb402a0(0x1c6))/0x7)+-parseInt(_0xb402a0(0x1c4))/0x8+parseInt(_0xb402a0(0x1c5))/0x9*(parseInt(_0xb402a0(0x1c7))/0xa);if(_0x188269===_0x5f017e)break;else _0xc258bb['push'](_0xc258bb['shift']());}catch(_0x10837d){_0xc258bb['push'](_0xc258bb['shift']());}}}(a99_0x3c48,0xbf03e));import{deploymentSyncAll}from'../../commands/deployment/sync-all.js';function a99_0x5c83(_0x4bc754,_0x10a30f){_0x4bc754=_0x4bc754-0x1bf;const _0x3c482a=a99_0x3c48();let _0x5c8366=_0x3c482a[_0x4bc754];return _0x5c8366;}import{deploymentSyncStatus}from'../../commands/deployment/sync-status.js';import{deploymentSyncJobs}from'../../commands/deployment/sync-jobs.js';export const deploymentDefinitions=[deploymentSyncAll,deploymentSyncStatus,deploymentSyncJobs];function a99_0x3c48(){const _0x55f2b6=['1153556MphXSN','2tULWHp','2730712fVEKch','693729GkydSx','91427BwqMYL','30jcGLHl','2995575ZJhCCY','606kkFtUu','4134888LyqXUF','2260120PofamS'];a99_0x3c48=function(){return _0x55f2b6;};return a99_0x3c48();}
@@ -1 +1 @@
1
- const a98_0x4d351c=a98_0x2833;(function(_0x11a5ea,_0x590395){const _0x110b06=a98_0x2833,_0x167655=_0x11a5ea();while(!![]){try{const _0xc75092=parseInt(_0x110b06(0x8d))/0x1*(-parseInt(_0x110b06(0x8e))/0x2)+-parseInt(_0x110b06(0x94))/0x3*(-parseInt(_0x110b06(0x8a))/0x4)+parseInt(_0x110b06(0x86))/0x5*(-parseInt(_0x110b06(0x96))/0x6)+parseInt(_0x110b06(0x90))/0x7*(parseInt(_0x110b06(0x7a))/0x8)+-parseInt(_0x110b06(0x97))/0x9*(-parseInt(_0x110b06(0x7f))/0xa)+parseInt(_0x110b06(0x7b))/0xb*(parseInt(_0x110b06(0x7c))/0xc)+parseInt(_0x110b06(0x89))/0xd*(parseInt(_0x110b06(0xa1))/0xe);if(_0xc75092===_0x590395)break;else _0x167655['push'](_0x167655['shift']());}catch(_0x320899){_0x167655['push'](_0x167655['shift']());}}}(a98_0x461c,0xd6753));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=a98_0x4d351c(0xa0),CONFIRM_FLAG={'name':'confirm','type':a98_0x4d351c(0x7d),'description':a98_0x4d351c(0x85)};export const deploymentSyncAll={'service':a98_0x4d351c(0x9a),'command':'sync-all','description':a98_0x4d351c(0x9f),'risk':a98_0x4d351c(0x8c),'strictFlags':!![],'structuredErrors':!![],'confirmationDescription':a98_0x4d351c(0x88),'flags':[CONFIRM_FLAG,APPCODE_FLAG_OPTIONAL],async 'dryRun'(_0x21e192){const _0x54d8b0=a98_0x4d351c;return asDryRunResult(buildPreview(_0x21e192['appCode']),{'method':_0x54d8b0(0x93),'url':SUBMIT_PATH,'description':_0x54d8b0(0x98)});},async 'execute'(_0x4ce9af){const _0x3404f4=a98_0x4d351c;if(!_0x4ce9af['bool'](_0x3404f4(0x9d)))throw CliErrors[_0x3404f4(0x87)](_0x3404f4(0x7e),'Run\x20with\x20--dry-run\x20first,\x20then\x20add\x20--confirm.');try{const _0x5623cc=await submitDeploymentMetadataSyncAll({'appCode':_0x4ce9af[_0x3404f4(0x9e)]});if(_0x5623cc[_0x3404f4(0x82)]===_0x3404f4(0x92))return{'ok':!![],'data':{'operation':'application_deployment_sync','appCode':_0x4ce9af['appCode'],'submitted':![],'outcome':_0x3404f4(0x92)},'message':_0x3404f4(0x91)};return{'ok':!![],'data':{'operation':_0x3404f4(0x8b),'appCode':_0x4ce9af['appCode'],'submitted':!![],'outcome':_0x3404f4(0x8f),'jobId':_0x5623cc[_0x3404f4(0x9c)][_0x3404f4(0x95)],'status':_0x5623cc[_0x3404f4(0x9c)][_0x3404f4(0x80)]},'message':_0x3404f4(0x81)+_0x5623cc[_0x3404f4(0x9c)][_0x3404f4(0x95)]+'.'};}catch(_0x19660c){if(!isPlatformTransportFailure(_0x19660c))throw _0x19660c;const _0x44e6f7=new CliError('deployment_sync_submit_outcome_unknown',0x2,_0x3404f4(0x9b),_0x3404f4(0x79));Object[_0x3404f4(0x99)](_0x44e6f7,_0x3404f4(0x83),{'enumerable':!![],'value':{'operation':_0x3404f4(0x8b),'appCode':_0x4ce9af[_0x3404f4(0x9e)],'submitted':null,'outcome':_0x3404f4(0x84)}});throw _0x44e6f7;}}};function a98_0x2833(_0x5f31fa,_0x24b1d5){_0x5f31fa=_0x5f31fa-0x78;const _0x461c60=a98_0x461c();let _0x2833c2=_0x461c60[_0x5f31fa];return _0x2833c2;}function a98_0x461c(){const _0x467d7e=['11McaDxi','19936668fUjDsV','boolean','--confirm\x20is\x20required\x20to\x20synchronize\x20all\x20application\x20metadata.','89720HDCZyX','status','Submitted\x20deployment\x20synchronization\x20job\x20','outcome','data','unknown','Confirm\x20the\x20administrative\x20backfill\x20or\x20recovery\x20synchronization','5122555VwxDPQ','validation','Submit\x20an\x20administrative\x20metadata\x20backfill\x20or\x20recovery\x20synchronization.','978458KaeiFT','949536WalxaK','application_deployment_sync','write','1664987ansOqU','2OwzaHO','submitted','1804586PPWbXj','No\x20deployment\x20synchronization\x20was\x20needed\x20for\x20this\x20app.','not_needed','POST','9GVpZjP','jobId','6dLigUg','864YWIKed','Would\x20submit\x20an\x20administrative\x20deployment\x20metadata\x20backfill\x20or\x20recovery\x20job.','defineProperty','deployment','Deployment\x20sync\x20submission\x20response\x20was\x20unavailable;\x20job\x20creation\x20is\x20unknown.','job','confirm','appCode','Backfill\x20or\x20recover\x20all\x20server-supported\x20application\x20metadata','/smartapi/data-sync/submit','14PQbpKe','not_submitted','List\x20recent\x20deployment\x20sync\x20jobs\x20before\x20deciding\x20whether\x20to\x20submit\x20again.','8kcHzwO'];a98_0x461c=function(){return _0x467d7e;};return a98_0x461c();}function buildPreview(_0x57d849){const _0x5c1182=a98_0x4d351c;return{'operation':_0x5c1182(0x8b),'selector':{'appCode':_0x57d849,'scope':'all_server_supported_metadata'},'before':null,'after':null,'dryRun':!![],'backend':{'submitted':![],'outcome':_0x5c1182(0x78)},'warnings':[]};}
1
+ const a100_0x284557=a100_0x2814;(function(_0x524cb7,_0x289447){const _0x35612f=a100_0x2814,_0xa642ab=_0x524cb7();while(!![]){try{const _0x245b8f=-parseInt(_0x35612f(0x1cf))/0x1+-parseInt(_0x35612f(0x1cc))/0x2*(-parseInt(_0x35612f(0x1b3))/0x3)+-parseInt(_0x35612f(0x1cb))/0x4*(parseInt(_0x35612f(0x1bb))/0x5)+parseInt(_0x35612f(0x1b8))/0x6*(parseInt(_0x35612f(0x1d0))/0x7)+-parseInt(_0x35612f(0x1be))/0x8*(-parseInt(_0x35612f(0x1bf))/0x9)+-parseInt(_0x35612f(0x1b1))/0xa+-parseInt(_0x35612f(0x1c2))/0xb;if(_0x245b8f===_0x289447)break;else _0xa642ab['push'](_0xa642ab['shift']());}catch(_0x30e09f){_0xa642ab['push'](_0xa642ab['shift']());}}}(a100_0x4a81,0xa6588));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{asDryRunResult}from'../../commands/common/dry-run.js';import{isPlatformTransportFailure,submitDeploymentMetadataSyncAll}from'../../core/api-client.js';function a100_0x4a81(){const _0x50d2e4=['8620UyCdWN','status','Submit\x20an\x20administrative\x20metadata\x20backfill\x20or\x20recovery\x20synchronization.','8RvLGGs','6591771OCkcXB','unknown','appCode','2450162MWNeMo','List\x20recent\x20deployment\x20sync\x20jobs\x20before\x20deciding\x20whether\x20to\x20submit\x20again.','job','confirm','bool','deployment_sync_submit_outcome_unknown','Submitted\x20deployment\x20synchronization\x20job\x20','jobId','Backfill\x20or\x20recover\x20all\x20server-supported\x20application\x20metadata','2152SWNkcD','886NqTVHY','defineProperty','submitted','276511yYxEjv','1855ZvrqVv','not_submitted','deployment','4305930oyPaaq','Deployment\x20sync\x20submission\x20response\x20was\x20unavailable;\x20job\x20creation\x20is\x20unknown.','6276ZdxAFl','validation','Confirm\x20the\x20administrative\x20backfill\x20or\x20recovery\x20synchronization','not_needed','data','19914fEvUqh','outcome','application_deployment_sync'];a100_0x4a81=function(){return _0x50d2e4;};return a100_0x4a81();}import{CliError,CliErrors}from'../../errors.js';function a100_0x2814(_0x15ac01,_0x3a96f0){_0x15ac01=_0x15ac01-0x1af;const _0x4a8145=a100_0x4a81();let _0x281498=_0x4a8145[_0x15ac01];return _0x281498;}const SUBMIT_PATH='/smartapi/data-sync/submit',CONFIRM_FLAG={'name':a100_0x284557(0x1c5),'type':'boolean','description':a100_0x284557(0x1b5)};export const deploymentSyncAll={'service':a100_0x284557(0x1b0),'command':'sync-all','description':a100_0x284557(0x1ca),'risk':'write','strictFlags':!![],'structuredErrors':!![],'confirmationDescription':a100_0x284557(0x1bd),'flags':[CONFIRM_FLAG,APPCODE_FLAG_OPTIONAL],async 'dryRun'(_0x331fac){const _0xe39b02=a100_0x284557;return asDryRunResult(buildPreview(_0x331fac[_0xe39b02(0x1c1)]),{'method':'POST','url':SUBMIT_PATH,'description':'Would\x20submit\x20an\x20administrative\x20deployment\x20metadata\x20backfill\x20or\x20recovery\x20job.'});},async 'execute'(_0x20ab14){const _0x5e8c61=a100_0x284557;if(!_0x20ab14[_0x5e8c61(0x1c6)](_0x5e8c61(0x1c5)))throw CliErrors[_0x5e8c61(0x1b4)]('--confirm\x20is\x20required\x20to\x20synchronize\x20all\x20application\x20metadata.','Run\x20with\x20--dry-run\x20first,\x20then\x20add\x20--confirm.');try{const _0x3e9c71=await submitDeploymentMetadataSyncAll({'appCode':_0x20ab14[_0x5e8c61(0x1c1)]});if(_0x3e9c71[_0x5e8c61(0x1b9)]===_0x5e8c61(0x1b6))return{'ok':!![],'data':{'operation':_0x5e8c61(0x1ba),'appCode':_0x20ab14[_0x5e8c61(0x1c1)],'submitted':![],'outcome':_0x5e8c61(0x1b6)},'message':'No\x20deployment\x20synchronization\x20was\x20needed\x20for\x20this\x20app.'};return{'ok':!![],'data':{'operation':_0x5e8c61(0x1ba),'appCode':_0x20ab14['appCode'],'submitted':!![],'outcome':_0x5e8c61(0x1ce),'jobId':_0x3e9c71['job'][_0x5e8c61(0x1c9)],'status':_0x3e9c71['job'][_0x5e8c61(0x1bc)]},'message':_0x5e8c61(0x1c8)+_0x3e9c71[_0x5e8c61(0x1c4)]['jobId']+'.'};}catch(_0x1dd0de){if(!isPlatformTransportFailure(_0x1dd0de))throw _0x1dd0de;const _0x51e160=new CliError(_0x5e8c61(0x1c7),0x2,_0x5e8c61(0x1b2),_0x5e8c61(0x1c3));Object[_0x5e8c61(0x1cd)](_0x51e160,_0x5e8c61(0x1b7),{'enumerable':!![],'value':{'operation':_0x5e8c61(0x1ba),'appCode':_0x20ab14[_0x5e8c61(0x1c1)],'submitted':null,'outcome':_0x5e8c61(0x1c0)}});throw _0x51e160;}}};function buildPreview(_0x5c448f){const _0x5a17ad=a100_0x284557;return{'operation':_0x5a17ad(0x1ba),'selector':{'appCode':_0x5c448f,'scope':'all_server_supported_metadata'},'before':null,'after':null,'dryRun':!![],'backend':{'submitted':![],'outcome':_0x5a17ad(0x1af)},'warnings':[]};}
@@ -1 +1 @@
1
- const a99_0xaac412=a99_0xe693;function a99_0xe693(_0x396e4e,_0xafd538){_0x396e4e=_0x396e4e-0xf6;const _0x21a48b=a99_0x21a4();let _0xe69374=_0x21a48b[_0x396e4e];return _0xe69374;}(function(_0xc46fae,_0x46eabf){const _0x212f6d=a99_0xe693,_0x2eca19=_0xc46fae();while(!![]){try{const _0x4d6e0d=parseInt(_0x212f6d(0x107))/0x1*(parseInt(_0x212f6d(0x10d))/0x2)+parseInt(_0x212f6d(0x114))/0x3+-parseInt(_0x212f6d(0xf6))/0x4+-parseInt(_0x212f6d(0x10f))/0x5+-parseInt(_0x212f6d(0x109))/0x6*(-parseInt(_0x212f6d(0x108))/0x7)+parseInt(_0x212f6d(0xfa))/0x8+-parseInt(_0x212f6d(0x10c))/0x9*(parseInt(_0x212f6d(0xf8))/0xa);if(_0x4d6e0d===_0x46eabf)break;else _0x2eca19['push'](_0x2eca19['shift']());}catch(_0x29c41d){_0x2eca19['push'](_0x2eca19['shift']());}}}(a99_0x21a4,0xdf9e9));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a99_0x21a4(){const _0x1665e2=['--current-page\x20must\x20be\x20a\x20positive\x20integer.','8751325ZNmqdx','sync-jobs','trim','number','str','3825945uetibD','1755512CDVCqN','Page\x20number','20EPqceh','Optional\x20server-defined\x20job\x20status\x20filter','11472864DchwtR','num','current-page','validation','\x20deployment\x20synchronization\x20job(s).','status','isSafeInteger','items','length','deployment','appCode','--page-size\x20must\x20be\x20an\x20integer\x20from\x201\x20to\x20100.','List\x20application\x20deployment\x20synchronization\x20jobs','1SqgoBj','7LFOxBL','241896RuLFcl','page-size','Items\x20per\x20page\x20(maximum\x20100)','4528863OugPPL','2723526mQTGYi'];a99_0x21a4=function(){return _0x1665e2;};return a99_0x21a4();}import{listDeploymentMetadataSyncJobs}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';export const deploymentSyncJobs={'service':a99_0xaac412(0x103),'command':a99_0xaac412(0x110),'description':a99_0xaac412(0x106),'risk':'read','strictFlags':!![],'structuredErrors':!![],'flags':[{'name':a99_0xaac412(0xfc),'type':a99_0xaac412(0x112),'default':0x1,'description':a99_0xaac412(0xf7)},{'name':a99_0xaac412(0x10a),'type':'number','default':0xa,'description':a99_0xaac412(0x10b)},{'name':a99_0xaac412(0xff),'type':'string','description':a99_0xaac412(0xf9)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x449de5){const _0xa9d21a=a99_0xaac412;readPaging(_0x449de5[_0xa9d21a(0xfb)]('current-page',0x1),_0x449de5[_0xa9d21a(0xfb)](_0xa9d21a(0x10a),0xa));},async 'execute'(_0x3a4ac7){const _0x187a64=a99_0xaac412,{currentPage:_0x59aa26,pageSize:_0x57678e}=readPaging(_0x3a4ac7[_0x187a64(0xfb)]('current-page',0x1),_0x3a4ac7['num']('page-size',0xa)),_0x28c2c4=_0x3a4ac7[_0x187a64(0x113)](_0x187a64(0xff))[_0x187a64(0x111)](),_0x29387b=await listDeploymentMetadataSyncJobs({'appCode':_0x3a4ac7[_0x187a64(0x104)],'currentPage':_0x59aa26,'pageSize':_0x57678e,..._0x28c2c4?{'status':_0x28c2c4}:{}});return{'ok':!![],'data':{'appCode':_0x3a4ac7['appCode'],..._0x29387b},'message':'Found\x20'+_0x29387b[_0x187a64(0x101)][_0x187a64(0x102)]+_0x187a64(0xfe)};}};function readPaging(_0x247757,_0x48963e){const _0x50f5c7=a99_0xaac412;if(!Number[_0x50f5c7(0x100)](_0x247757)||_0x247757<0x1)throw CliErrors[_0x50f5c7(0xfd)](_0x50f5c7(0x10e));if(!Number[_0x50f5c7(0x100)](_0x48963e)||_0x48963e<0x1||_0x48963e>0x64)throw CliErrors[_0x50f5c7(0xfd)](_0x50f5c7(0x105));return{'currentPage':_0x247757,'pageSize':_0x48963e};}
1
+ const a101_0x4e1b7d=a101_0xd3ae;(function(_0x16c352,_0x1f4506){const _0x2bc0e2=a101_0xd3ae,_0x56520a=_0x16c352();while(!![]){try{const _0x7ac5f4=-parseInt(_0x2bc0e2(0x1db))/0x1*(-parseInt(_0x2bc0e2(0x1cb))/0x2)+parseInt(_0x2bc0e2(0x1d8))/0x3+parseInt(_0x2bc0e2(0x1e7))/0x4*(parseInt(_0x2bc0e2(0x1e5))/0x5)+parseInt(_0x2bc0e2(0x1e1))/0x6*(parseInt(_0x2bc0e2(0x1d5))/0x7)+-parseInt(_0x2bc0e2(0x1dc))/0x8*(parseInt(_0x2bc0e2(0x1d7))/0x9)+parseInt(_0x2bc0e2(0x1ce))/0xa*(-parseInt(_0x2bc0e2(0x1d3))/0xb)+parseInt(_0x2bc0e2(0x1d0))/0xc;if(_0x7ac5f4===_0x1f4506)break;else _0x56520a['push'](_0x56520a['shift']());}catch(_0x7857){_0x56520a['push'](_0x56520a['shift']());}}}(a101_0x4f0e,0x26675));function a101_0xd3ae(_0x5b9c09,_0x499c66){_0x5b9c09=_0x5b9c09-0x1c8;const _0x4f0ede=a101_0x4f0e();let _0xd3ae4b=_0x4f0ede[_0x5b9c09];return _0xd3ae4b;}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{listDeploymentMetadataSyncJobs}from'../../core/api-client.js';function a101_0x4f0e(){const _0x57ee7c=['--current-page\x20must\x20be\x20a\x20positive\x20integer.','684AZMhSA','188904pKxxDa','str','items','5iilHXD','152KNampX','Optional\x20server-defined\x20job\x20status\x20filter','validation','Page\x20number','sync-jobs','284652LCOkvs','page-size','read','status','272145BeiCkp','isSafeInteger','8dvNfvg','--page-size\x20must\x20be\x20an\x20integer\x20from\x201\x20to\x20100.','num','current-page','2392vokSjc','string','appCode','850100UwRcpL','trim','1693020DKcQKL','deployment','number','33OJARVl','Items\x20per\x20page\x20(maximum\x20100)','14ZkNJhg'];a101_0x4f0e=function(){return _0x57ee7c;};return a101_0x4f0e();}import{CliErrors}from'../../errors.js';export const deploymentSyncJobs={'service':a101_0x4e1b7d(0x1d1),'command':a101_0x4e1b7d(0x1e0),'description':'List\x20application\x20deployment\x20synchronization\x20jobs','risk':a101_0x4e1b7d(0x1e3),'strictFlags':!![],'structuredErrors':!![],'flags':[{'name':a101_0x4e1b7d(0x1ca),'type':'number','default':0x1,'description':a101_0x4e1b7d(0x1df)},{'name':a101_0x4e1b7d(0x1e2),'type':a101_0x4e1b7d(0x1d2),'default':0xa,'description':a101_0x4e1b7d(0x1d4)},{'name':a101_0x4e1b7d(0x1e4),'type':a101_0x4e1b7d(0x1cc),'description':a101_0x4e1b7d(0x1dd)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x5ec956){const _0x155d1f=a101_0x4e1b7d;readPaging(_0x5ec956[_0x155d1f(0x1c9)](_0x155d1f(0x1ca),0x1),_0x5ec956['num'](_0x155d1f(0x1e2),0xa));},async 'execute'(_0x1f50c4){const _0x15df29=a101_0x4e1b7d,{currentPage:_0x57cac5,pageSize:_0x15b05d}=readPaging(_0x1f50c4['num']('current-page',0x1),_0x1f50c4['num']('page-size',0xa)),_0x3aee04=_0x1f50c4[_0x15df29(0x1d9)](_0x15df29(0x1e4))[_0x15df29(0x1cf)](),_0x3890a5=await listDeploymentMetadataSyncJobs({'appCode':_0x1f50c4['appCode'],'currentPage':_0x57cac5,'pageSize':_0x15b05d,..._0x3aee04?{'status':_0x3aee04}:{}});return{'ok':!![],'data':{'appCode':_0x1f50c4[_0x15df29(0x1cd)],..._0x3890a5},'message':'Found\x20'+_0x3890a5[_0x15df29(0x1da)]['length']+'\x20deployment\x20synchronization\x20job(s).'};}};function readPaging(_0x14831b,_0x98f9f4){const _0x5ebb69=a101_0x4e1b7d;if(!Number[_0x5ebb69(0x1e6)](_0x14831b)||_0x14831b<0x1)throw CliErrors[_0x5ebb69(0x1de)](_0x5ebb69(0x1d6));if(!Number[_0x5ebb69(0x1e6)](_0x98f9f4)||_0x98f9f4<0x1||_0x98f9f4>0x64)throw CliErrors[_0x5ebb69(0x1de)](_0x5ebb69(0x1c8));return{'currentPage':_0x14831b,'pageSize':_0x98f9f4};}
@@ -1 +1 @@
1
- function a100_0x5ec4(){const _0x5f7cf4=['24136tSwYig','132gIWwvA','Preserved\x20server-defined\x20status\x20','num','number','66489OFXIdO','892638ogAoSc','sync-status','PENDING','filter','Get\x20application\x20deployment\x20synchronization\x20job\x20status','Deployment\x20synchronization\x20job\x20','read','\x20is\x20','RUNNING','action','reduce','229403WAMphG','map','appCode','--job-id\x20must\x20be\x20a\x20positive\x20integer.','status','bizType','job-id','8SdaEtH','has','validation','FAILED','results','808310BLmcfm','59000fgDDfl','46420VIdmCb','SUCCESS','8EfGhLi','length'];a100_0x5ec4=function(){return _0x5f7cf4;};return a100_0x5ec4();}function a100_0x16e8(_0x4fce4e,_0x415d0c){_0x4fce4e=_0x4fce4e-0x93;const _0x5ec455=a100_0x5ec4();let _0x16e890=_0x5ec455[_0x4fce4e];return _0x16e890;}const a100_0x41aa2f=a100_0x16e8;(function(_0x376cb4,_0x41e0e9){const _0x70cf36=a100_0x16e8,_0x4dde18=_0x376cb4();while(!![]){try{const _0x275e50=-parseInt(_0x70cf36(0x9b))/0x1+parseInt(_0x70cf36(0xa2))/0x2*(parseInt(_0x70cf36(0xb2))/0x3)+parseInt(_0x70cf36(0xa9))/0x4+-parseInt(_0x70cf36(0xa8))/0x5+-parseInt(_0x70cf36(0xae))/0x6*(-parseInt(_0x70cf36(0xad))/0x7)+-parseInt(_0x70cf36(0xab))/0x8*(-parseInt(_0x70cf36(0xb3))/0x9)+parseInt(_0x70cf36(0xa7))/0xa;if(_0x275e50===_0x41e0e9)break;else _0x4dde18['push'](_0x4dde18['shift']());}catch(_0x6e2377){_0x4dde18['push'](_0x4dde18['shift']());}}}(a100_0x5ec4,0x1c0eb));import{getDeploymentMetadataSyncStatus}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const TERMINAL_STATUSES=new Set([a100_0x41aa2f(0xaa),'PARTIAL_SUCCESS',a100_0x41aa2f(0xa5)]),ACTIVE_STATUSES=new Set([a100_0x41aa2f(0xb5),a100_0x41aa2f(0x98)]);export const deploymentSyncStatus={'service':'deployment','command':a100_0x41aa2f(0xb4),'description':a100_0x41aa2f(0x94),'risk':a100_0x41aa2f(0x96),'requiresAppCode':!![],'strictFlags':!![],'structuredErrors':!![],'flags':[{'name':'job-id','type':a100_0x41aa2f(0xb1),'required':!![],'description':'Deployment\x20synchronization\x20job\x20ID'}],async 'validate'(_0x2e6bf6){const _0x36f310=a100_0x41aa2f;readJobId(_0x2e6bf6[_0x36f310(0xb0)](_0x36f310(0xa1)));},async 'execute'(_0x131777){const _0x2f5e7d=a100_0x41aa2f,_0x240058=readJobId(_0x131777[_0x2f5e7d(0xb0)](_0x2f5e7d(0xa1))),_0x47c6f1=await getDeploymentMetadataSyncStatus({'jobId':_0x240058,'appCode':_0x131777[_0x2f5e7d(0x9d)]}),_0x11c722=TERMINAL_STATUSES[_0x2f5e7d(0xa3)](_0x47c6f1[_0x2f5e7d(0x9f)])?!![]:ACTIVE_STATUSES['has'](_0x47c6f1[_0x2f5e7d(0x9f)])?![]:null,_0x3e5408=countBy(_0x47c6f1[_0x2f5e7d(0xa6)][_0x2f5e7d(0x9c)](_0x468e56=>_0x468e56[_0x2f5e7d(0xa0)])),_0x1f4311=countBy(_0x47c6f1['results'][_0x2f5e7d(0x9c)](_0x4db2c8=>_0x4db2c8['action'])),_0x51c0f8=_0x11c722===null?[_0x2f5e7d(0xaf)+_0x47c6f1[_0x2f5e7d(0x9f)]+';\x20terminal\x20state\x20is\x20unknown\x20to\x20this\x20CLI\x20version.']:[];return{'ok':!![],'data':{'job':_0x47c6f1,'isTerminal':_0x11c722,'summary':{'total':_0x47c6f1[_0x2f5e7d(0xa6)][_0x2f5e7d(0xac)],'failed':_0x47c6f1[_0x2f5e7d(0xa6)][_0x2f5e7d(0x93)](_0x209fa8=>_0x209fa8[_0x2f5e7d(0x99)]==='FAILED')[_0x2f5e7d(0xac)],'byBizType':_0x3e5408,'byAction':_0x1f4311},'warnings':_0x51c0f8},'message':_0x2f5e7d(0x95)+_0x240058+_0x2f5e7d(0x97)+_0x47c6f1[_0x2f5e7d(0x9f)]+'.'};}};function readJobId(_0x11b313){const _0x5f9eb8=a100_0x41aa2f;if(!Number['isSafeInteger'](_0x11b313)||_0x11b313<=0x0)throw CliErrors[_0x5f9eb8(0xa4)](_0x5f9eb8(0x9e));return _0x11b313;}function countBy(_0xadb3f4){const _0x4ed2b9=a100_0x41aa2f;return _0xadb3f4[_0x4ed2b9(0x9a)]((_0x48183c,_0x9cf414)=>{return _0x48183c[_0x9cf414]=(_0x48183c[_0x9cf414]??0x0)+0x1,_0x48183c;},{});}
1
+ const a102_0x1503a9=a102_0x5208;(function(_0x2e1751,_0x13fbc1){const _0x474717=a102_0x5208,_0x1b7eeb=_0x2e1751();while(!![]){try{const _0x261014=-parseInt(_0x474717(0x1a7))/0x1+parseInt(_0x474717(0x1c7))/0x2*(-parseInt(_0x474717(0x1a5))/0x3)+-parseInt(_0x474717(0x1b4))/0x4*(-parseInt(_0x474717(0x1c1))/0x5)+parseInt(_0x474717(0x1a4))/0x6*(parseInt(_0x474717(0x1b8))/0x7)+parseInt(_0x474717(0x1c0))/0x8+-parseInt(_0x474717(0x1b2))/0x9+parseInt(_0x474717(0x1c2))/0xa;if(_0x261014===_0x13fbc1)break;else _0x1b7eeb['push'](_0x1b7eeb['shift']());}catch(_0x1e93fd){_0x1b7eeb['push'](_0x1b7eeb['shift']());}}}(a102_0x426d,0x639ca));import{getDeploymentMetadataSyncStatus}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const TERMINAL_STATUSES=new Set([a102_0x1503a9(0x1b7),a102_0x1503a9(0x1bc),a102_0x1503a9(0x1ba)]),ACTIVE_STATUSES=new Set([a102_0x1503a9(0x1b6),a102_0x1503a9(0x1c5)]);export const deploymentSyncStatus={'service':a102_0x1503a9(0x1b0),'command':a102_0x1503a9(0x1c6),'description':a102_0x1503a9(0x1a8),'risk':'read','requiresAppCode':!![],'strictFlags':!![],'structuredErrors':!![],'flags':[{'name':'job-id','type':a102_0x1503a9(0x1ae),'required':!![],'description':a102_0x1503a9(0x1ac)}],async 'validate'(_0x38f08c){const _0x131f0b=a102_0x1503a9;readJobId(_0x38f08c['num'](_0x131f0b(0x1c3)));},async 'execute'(_0x2d4f5f){const _0x5688f1=a102_0x1503a9,_0x325a08=readJobId(_0x2d4f5f[_0x5688f1(0x1b9)](_0x5688f1(0x1c3))),_0x4d2071=await getDeploymentMetadataSyncStatus({'jobId':_0x325a08,'appCode':_0x2d4f5f[_0x5688f1(0x1b5)]}),_0x2ab57b=TERMINAL_STATUSES[_0x5688f1(0x1bb)](_0x4d2071['status'])?!![]:ACTIVE_STATUSES[_0x5688f1(0x1bb)](_0x4d2071[_0x5688f1(0x1af)])?![]:null,_0x42dc16=countBy(_0x4d2071[_0x5688f1(0x1b3)][_0x5688f1(0x1ab)](_0xd9e9f4=>_0xd9e9f4[_0x5688f1(0x1bd)])),_0x11e101=countBy(_0x4d2071['results'][_0x5688f1(0x1ab)](_0x348d9c=>_0x348d9c[_0x5688f1(0x1a6)])),_0x2dafe2=_0x2ab57b===null?[_0x5688f1(0x1aa)+_0x4d2071[_0x5688f1(0x1af)]+';\x20terminal\x20state\x20is\x20unknown\x20to\x20this\x20CLI\x20version.']:[];return{'ok':!![],'data':{'job':_0x4d2071,'isTerminal':_0x2ab57b,'summary':{'total':_0x4d2071[_0x5688f1(0x1b3)]['length'],'failed':_0x4d2071[_0x5688f1(0x1b3)][_0x5688f1(0x1bf)](_0x3a4533=>_0x3a4533[_0x5688f1(0x1a6)]===_0x5688f1(0x1ba))['length'],'byBizType':_0x42dc16,'byAction':_0x11e101},'warnings':_0x2dafe2},'message':_0x5688f1(0x1b1)+_0x325a08+_0x5688f1(0x1c4)+_0x4d2071[_0x5688f1(0x1af)]+'.'};}};function readJobId(_0x569c17){const _0xcd96f8=a102_0x1503a9;if(!Number[_0xcd96f8(0x1a9)](_0x569c17)||_0x569c17<=0x0)throw CliErrors[_0xcd96f8(0x1ad)]('--job-id\x20must\x20be\x20a\x20positive\x20integer.');return _0x569c17;}function a102_0x426d(){const _0x48ad60=['Deployment\x20synchronization\x20job\x20','630027hbDZIE','results','58724Qroxzx','appCode','PENDING','SUCCESS','3346NNqjHn','num','FAILED','has','PARTIAL_SUCCESS','bizType','reduce','filter','4938992jbkldK','180fVANrU','2989880NXAkgf','job-id','\x20is\x20','RUNNING','sync-status','21602GjFDsY','4302eqRfRF','147PcIoWD','action','780342aGltHc','Get\x20application\x20deployment\x20synchronization\x20job\x20status','isSafeInteger','Preserved\x20server-defined\x20status\x20','map','Deployment\x20synchronization\x20job\x20ID','validation','number','status','deployment'];a102_0x426d=function(){return _0x48ad60;};return a102_0x426d();}function a102_0x5208(_0x23ff2f,_0x498da9){_0x23ff2f=_0x23ff2f-0x1a4;const _0x426d2e=a102_0x426d();let _0x52088a=_0x426d2e[_0x23ff2f];return _0x52088a;}function countBy(_0x3400b7){const _0x4c3e57=a102_0x1503a9;return _0x3400b7[_0x4c3e57(0x1be)]((_0x4b6a4c,_0x3b4a9f)=>{return _0x4b6a4c[_0x3b4a9f]=(_0x4b6a4c[_0x3b4a9f]??0x0)+0x1,_0x4b6a4c;},{});}
@@ -1 +1 @@
1
- const a101_0xbd7762=a101_0x2e51;(function(_0x59e703,_0x3c407d){const _0x102ebf=a101_0x2e51,_0x119112=_0x59e703();while(!![]){try{const _0x2baae2=-parseInt(_0x102ebf(0xd7))/0x1+-parseInt(_0x102ebf(0xd2))/0x2*(-parseInt(_0x102ebf(0xde))/0x3)+parseInt(_0x102ebf(0xfb))/0x4+-parseInt(_0x102ebf(0xe5))/0x5+parseInt(_0x102ebf(0x13b))/0x6+-parseInt(_0x102ebf(0x144))/0x7+-parseInt(_0x102ebf(0xff))/0x8*(-parseInt(_0x102ebf(0x133))/0x9);if(_0x2baae2===_0x3c407d)break;else _0x119112['push'](_0x119112['shift']());}catch(_0x3ecd96){_0x119112['push'](_0x119112['shift']());}}}(a101_0x2230,0x7a8d2));import a101_0x30fbc7 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,getSkillDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags,initGlobalEnvironment,inspectCliConfigJsonFile,loadRawConfigLayers}from'../context.js';import{getIsSessionValid}from'../auth/is-session-valid.js';import{getCookie}from'../auth/get-cookie.js';function a101_0x2230(){const _0x262126=['\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','✗\x20Not\x20logged\x20in','\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','projectConfig','\x20\x20Config\x20Files','accessKey','464DTMKDj','Project','region','verbose','cookie','525001MNKlHV','length','(not\x20set)','\x20\x20app\x20locale:\x20\x20\x20\x20\x20\x20','\x20\x20─','yellow','green','2457WftCoI','call','red','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20config','\x20\x20API\x20Endpoints','locale','3309955EFYfLH','✓\x20Valid','\x20config\x20delete\x20routing','check','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','current','apiDir','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Package\x20Version:\x20','raw','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(missing)','arch','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','global','project','\x20config\x20delete\x20region\x20--global','apps','skillVersion','reason','source','state','3638132lZAzfZ','\x20\x20Apps','value','(unknown)','40zAFqmp','env','\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','toLowerCase','\x20+\x20','gray','\x20\x20Repair\x20global:\x20\x20\x20\x20','\x20\x20runtimeDomain:\x20\x20\x20','Global','\x20\x20Repair\x20project:\x20\x20','format','present','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','packageVersion','installedPath','repeat','(set,\x20length=','join','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(none)','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20accessKey:\x20\x20','Repair\x20','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','⚠\x20Empty\x20(treated\x20as\x20{})','routing','repairCommand','\x20\x20Country/Region\x20Configuration','null','stringify','bold','\x20config\x20delete\x20inherit\x20--global','\x20\x20appDomain:\x20\x20\x20\x20\x20\x20\x20','✗\x20Invalid\x20JSON','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Config\x20JSON','message','\x20config\x20delete\x20routing\x20--global','platform','\x20\x20Built-in\x20Skill','hasOwnProperty','currentApp','\x20\x20Merged\x20Config','(not\x20found)','unknown','\x20\x20Repair\x20project:\x20\x20\x20','globalConfig','status','Unavailable\x20until\x20routing\x20configuration\x20is\x20repaired','\x20\x20Repair\x20global:\x20\x20\x20','✗\x20Invalid\x20','1757484oNBNmr','explicitAppName','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','missing','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Auth','prototype','label','1530126CfEIsU','log','inherit','\x20\x20Installed\x20Path:\x20\x20','ignored\x20in\x20','appCode','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','keys','\x20\x20explicitAppName:\x20','4493860HpeKFo','✗\x20Expired','✓\x20Valid\x20JSON','read','\x20←\x20current','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20config\x20delete\x20region','padEnd'];a101_0x2230=function(){return _0x262126;};return a101_0x2230();}import{buildAppDoctorFields}from'../config/schema.js';import{inspectBuiltinSkill}from'../skills/builtin-skill.js';import{isInvalidLovrabetRegion}from'../constant/region.js';function describeRegionValue(_0x59058a){const _0x49f022=a101_0x2e51;return typeof _0x59058a==='string'?JSON[_0x49f022(0x11d)](_0x59058a):'<'+(_0x59058a===null?_0x49f022(0x11c):typeof _0x59058a)+'>';}function a101_0x2e51(_0x400cba,_0x173b87){_0x400cba=_0x400cba-0xcc;const _0x223069=a101_0x2230();let _0x2e511e=_0x223069[_0x400cba];return _0x2e511e;}async function execute(_0x2539e8){const _0x1deb24=a101_0x2e51,_0x2cf2a0=GIT_COMMIT!==_0x1deb24(0x12c)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME['slice'](0x0,0xa)+')':VERSION,_0x1d7d8b=buildConfigFromFlags({}),_0xfaca2f=getCookie();let _0x43ff59;try{await initGlobalEnvironment(_0x1d7d8b);}catch(_0x272807){_0x43ff59=_0x272807 instanceof Error?_0x272807:new Error(String(_0x272807));}console['log'](),console[_0x1deb24(0x13c)](a101_0x30fbc7[_0x1deb24(0x11e)](CLI_BIN_NAME+'\x20doctor')),console[_0x1deb24(0x13c)](a101_0x30fbc7['gray']('─'[_0x1deb24(0x10e)](0x32))),console[_0x1deb24(0x13c)](_0x1deb24(0xf2)+_0x2cf2a0),console[_0x1deb24(0x13c)](_0x1deb24(0x10b)+process['version']),console[_0x1deb24(0x13c)](_0x1deb24(0x137)+process[_0x1deb24(0x126)]+'\x20'+process[_0x1deb24(0xf1)]);const _0x2b93fe=inspectBuiltinSkill();console[_0x1deb24(0x13c)](),console[_0x1deb24(0x13c)](a101_0x30fbc7[_0x1deb24(0x11e)](_0x1deb24(0x127))),console[_0x1deb24(0x13c)](a101_0x30fbc7['gray'](_0x1deb24(0xdb)[_0x1deb24(0x10e)](0x1e)));const _0x37de43=_0x2b93fe[_0x1deb24(0xfa)]===_0x1deb24(0xea)?a101_0x30fbc7[_0x1deb24(0xdd)]('✓\x20'+_0x2b93fe['state']):a101_0x30fbc7[_0x1deb24(0xe0)]('✗\x20'+_0x2b93fe[_0x1deb24(0xfa)]);console[_0x1deb24(0x13c)](_0x1deb24(0xcd)+_0x37de43),console[_0x1deb24(0x13c)](_0x1deb24(0xed)+_0x2b93fe[_0x1deb24(0x10c)]),console[_0x1deb24(0x13c)]('\x20\x20Skill\x20Version:\x20\x20\x20'+(_0x2b93fe[_0x1deb24(0xf7)]||a101_0x30fbc7[_0x1deb24(0x104)](_0x1deb24(0xfe)))),console[_0x1deb24(0x13c)](_0x1deb24(0x13e)+(_0x2b93fe[_0x1deb24(0x10d)]||a101_0x30fbc7[_0x1deb24(0x104)]('(not\x20found)')));if(_0x2b93fe[_0x1deb24(0xf8)])console['log'](_0x1deb24(0x101)+_0x2b93fe[_0x1deb24(0xf8)]);_0x2b93fe[_0x1deb24(0xfa)]!=='current'&&console['log'](_0x1deb24(0x14c)+_0x2b93fe['repairCommand']);console['log'](),console[_0x1deb24(0x13c)](a101_0x30fbc7['bold'](_0x1deb24(0xd0))),console[_0x1deb24(0x13c)](a101_0x30fbc7[_0x1deb24(0x104)]('\x20\x20─'[_0x1deb24(0x10e)](0x1e)));const _0x2e3c9f=getGlobalConfigPath(),_0x366469=getProjectConfigPath();console[_0x1deb24(0x13c)](_0x1deb24(0xef)+(_0x2e3c9f||a101_0x30fbc7[_0x1deb24(0x104)](_0x1deb24(0x12b)))),console[_0x1deb24(0x13c)](_0x1deb24(0xe9)+(_0x366469||a101_0x30fbc7[_0x1deb24(0x104)](_0x1deb24(0x12b)))),console[_0x1deb24(0x13c)](),console['log'](a101_0x30fbc7[_0x1deb24(0x11e)](_0x1deb24(0x123))),console[_0x1deb24(0x13c)](a101_0x30fbc7[_0x1deb24(0x104)](_0x1deb24(0xdb)['repeat'](0x1e)));const _0x55ac4d=(_0x231ebf,_0x48cc66)=>{const _0x390356=_0x1deb24;if(!_0x48cc66){console['log']('\x20\x20'+_0x231ebf[_0x390356(0x14b)](0x11)+'\x20'+a101_0x30fbc7[_0x390356(0x104)]('(no\x20file)'));return;}const _0xba03e3=inspectCliConfigJsonFile(_0x48cc66);if(_0xba03e3[_0x390356(0x12f)]==='ok')console[_0x390356(0x13c)]('\x20\x20'+_0x231ebf[_0x390356(0x14b)](0x11)+'\x20'+a101_0x30fbc7[_0x390356(0xdd)](_0x390356(0x146)));else{if(_0xba03e3[_0x390356(0x12f)]==='empty')console[_0x390356(0x13c)]('\x20\x20'+_0x231ebf['padEnd'](0x11)+'\x20'+a101_0x30fbc7[_0x390356(0xdc)](_0x390356(0x118)));else _0xba03e3[_0x390356(0x12f)]===_0x390356(0x136)?console['log']('\x20\x20'+_0x231ebf[_0x390356(0x14b)](0x11)+'\x20'+a101_0x30fbc7[_0x390356(0x104)](_0x390356(0xf0))):(console[_0x390356(0x13c)]('\x20\x20'+_0x231ebf[_0x390356(0x14b)](0x11)+'\x20'+a101_0x30fbc7['red'](_0x390356(0x121))),console[_0x390356(0x13c)]('\x20\x20'+''[_0x390356(0x14b)](0x11)+'\x20'+a101_0x30fbc7[_0x390356(0xe0)](_0xba03e3[_0x390356(0x124)])));}};_0x55ac4d(_0x1deb24(0x107),_0x2e3c9f),_0x55ac4d(_0x1deb24(0xd3),_0x366469);const _0xf3540d=loadRawConfigLayers(),_0x2f3ed7=[{'label':'Project','value':_0xf3540d[_0x1deb24(0xcf)][_0x1deb24(0xd4)],'present':Object[_0x1deb24(0x139)][_0x1deb24(0x128)][_0x1deb24(0xdf)](_0xf3540d[_0x1deb24(0xcf)],'region'),'repairCommand':CLI_BIN_NAME+_0x1deb24(0x14a)},{'label':'Global','value':_0xf3540d[_0x1deb24(0x12e)][_0x1deb24(0xd4)],'present':Object[_0x1deb24(0x139)][_0x1deb24(0x128)]['call'](_0xf3540d['globalConfig'],_0x1deb24(0xd4)),'repairCommand':CLI_BIN_NAME+_0x1deb24(0xf5)}]['filter'](_0x55dd26=>_0x55dd26[_0x1deb24(0x10a)]&&isInvalidLovrabetRegion(_0x55dd26[_0x1deb24(0xfd)]));if(_0x2f3ed7[_0x1deb24(0xd8)]>0x0){console['log'](),console['log'](a101_0x30fbc7[_0x1deb24(0x11e)](_0x1deb24(0x11b))),console[_0x1deb24(0x13c)](a101_0x30fbc7['gray'](_0x1deb24(0xdb)[_0x1deb24(0x10e)](0x1e)));for(const _0x1c4da1 of _0x2f3ed7){console['log']('\x20\x20'+_0x1c4da1[_0x1deb24(0x13a)][_0x1deb24(0x14b)](0x11)+'\x20'+a101_0x30fbc7[_0x1deb24(0xe0)](_0x1deb24(0x132)+describeRegionValue(_0x1c4da1[_0x1deb24(0xfd)]))),console['log']('\x20\x20'+(_0x1deb24(0x116)+_0x1c4da1[_0x1deb24(0x13a)][_0x1deb24(0x102)]()+':')[_0x1deb24(0x14b)](0x10)+'\x20'+_0x1c4da1[_0x1deb24(0x11a)]);}}const _0x4da9e0=[Object[_0x1deb24(0x139)][_0x1deb24(0x128)][_0x1deb24(0xdf)](_0xf3540d[_0x1deb24(0x12e)],_0x1deb24(0x13d))?'global':null,Object[_0x1deb24(0x139)][_0x1deb24(0x128)][_0x1deb24(0xdf)](_0xf3540d[_0x1deb24(0xcf)],'inherit')?_0x1deb24(0xf4):null]['filter'](Boolean);_0x4da9e0[_0x1deb24(0xd8)]>0x0&&(console[_0x1deb24(0x13c)]('\x20\x20Legacy\x20inherit:\x20\x20\x20'+a101_0x30fbc7[_0x1deb24(0xdc)](_0x1deb24(0x13f)+_0x4da9e0[_0x1deb24(0x110)](_0x1deb24(0x103))+_0x1deb24(0xe2))),_0x4da9e0['includes'](_0x1deb24(0xf4))&&console[_0x1deb24(0x13c)](_0x1deb24(0x12d)+CLI_BIN_NAME+'\x20config\x20delete\x20inherit'),_0x4da9e0['includes'](_0x1deb24(0xf3))&&console['log'](_0x1deb24(0x105)+CLI_BIN_NAME+_0x1deb24(0x11f)));const _0x22a5a1=isInvalidLovrabetRegion(_0x1d7d8b[_0x1deb24(0xee)]?.[_0x1deb24(0xd4)]);_0x43ff59&&!_0x22a5a1&&(console['log'](),console[_0x1deb24(0x13c)](a101_0x30fbc7[_0x1deb24(0x11e)]('\x20\x20Routing\x20Configuration')),console[_0x1deb24(0x13c)](a101_0x30fbc7[_0x1deb24(0x104)](_0x1deb24(0xdb)[_0x1deb24(0x10e)](0x1e))),console[_0x1deb24(0x13c)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a101_0x30fbc7['red']('✗\x20Invalid')),console[_0x1deb24(0x13c)](_0x1deb24(0x101)+_0x43ff59[_0x1deb24(0x124)]),Object[_0x1deb24(0x139)][_0x1deb24(0x128)][_0x1deb24(0xdf)](_0xf3540d[_0x1deb24(0xcf)],_0x1deb24(0x119))&&console[_0x1deb24(0x13c)](_0x1deb24(0x108)+CLI_BIN_NAME+_0x1deb24(0xe7)),Object['prototype']['hasOwnProperty'][_0x1deb24(0xdf)](_0xf3540d[_0x1deb24(0x12e)],_0x1deb24(0x119))&&console[_0x1deb24(0x13c)](_0x1deb24(0x131)+CLI_BIN_NAME+_0x1deb24(0x125)));console[_0x1deb24(0x13c)](),console[_0x1deb24(0x13c)](a101_0x30fbc7[_0x1deb24(0x11e)](_0x1deb24(0x12a))),console[_0x1deb24(0x13c)](a101_0x30fbc7[_0x1deb24(0x104)](_0x1deb24(0xdb)['repeat'](0x1e))),console[_0x1deb24(0x13c)](_0x1deb24(0x122)+(_0x1d7d8b[_0x1deb24(0x140)]||a101_0x30fbc7[_0x1deb24(0xe0)](_0x1deb24(0xd9)))),console['log'](_0x1deb24(0xe1)+_0x1d7d8b[_0x1deb24(0x100)]),console[_0x1deb24(0x13c)](_0x1deb24(0xda)+_0x1d7d8b[_0x1deb24(0xe4)]),console[_0x1deb24(0x13c)]('\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x1d7d8b['apiDir']),console[_0x1deb24(0x13c)](_0x1deb24(0x141)+(_0x1d7d8b['defaultApp']||a101_0x30fbc7[_0x1deb24(0x104)](_0x1deb24(0x113)))),console[_0x1deb24(0x13c)]('\x20\x20currentApp:\x20\x20\x20\x20\x20\x20'+(_0x1d7d8b['currentApp']||a101_0x30fbc7[_0x1deb24(0x104)](_0x1deb24(0x113)))),console[_0x1deb24(0x13c)](_0x1deb24(0x143)+(_0x1d7d8b[_0x1deb24(0x134)]||a101_0x30fbc7['gray'](_0x1deb24(0x113)))),console['log'](_0x1deb24(0x149)+(_0x1d7d8b['format']||a101_0x30fbc7[_0x1deb24(0x104)]('(default:\x20'+DEFAULT_CONFIG_VALUES[_0x1deb24(0x109)]+')'))),console[_0x1deb24(0x13c)](_0x1deb24(0x117)+(_0x1d7d8b['pageSize']??a101_0x30fbc7[_0x1deb24(0x104)]('(default)'))),console[_0x1deb24(0x13c)](_0x1deb24(0x111)+_0x1d7d8b['riskLevel']),console[_0x1deb24(0x13c)](_0x1deb24(0x135)+_0x1d7d8b[_0x1deb24(0xd5)]),console[_0x1deb24(0x13c)](_0x1deb24(0xec)+(_0x1d7d8b[_0x1deb24(0xd6)]?a101_0x30fbc7['green'](_0x1deb24(0x10f)+_0x1d7d8b[_0x1deb24(0xd6)]['length']+')'):_0xfaca2f?a101_0x30fbc7['green']('(set\x20via\x20file,\x20length='+_0xfaca2f[_0x1deb24(0xd8)]+')'):a101_0x30fbc7[_0x1deb24(0x104)]('(none)')));const _0x3fdf87=Object[_0x1deb24(0x142)](_0x1d7d8b['apps']);if(_0x3fdf87[_0x1deb24(0xd8)]>0x0){console[_0x1deb24(0x13c)](),console['log'](a101_0x30fbc7[_0x1deb24(0x11e)](_0x1deb24(0xfc))),console[_0x1deb24(0x13c)](a101_0x30fbc7[_0x1deb24(0x104)](_0x1deb24(0xdb)['repeat'](0x1e)));for(const _0x317d1d of _0x3fdf87){const _0x594a52=_0x1d7d8b[_0x1deb24(0xf6)][_0x317d1d],_0x31e9a7=_0x317d1d===_0x1d7d8b['defaultApp'],_0x1701ab=_0x317d1d===_0x1d7d8b[_0x1deb24(0x129)],_0x419287=_0x1701ab?a101_0x30fbc7['green'](_0x1deb24(0x148)):'',_0x3012da=_0x31e9a7?'\x20(default)':'';console[_0x1deb24(0x13c)]('\x20\x20'+_0x317d1d+_0x3012da+_0x419287),console[_0x1deb24(0x13c)](_0x1deb24(0xce)+_0x594a52['appcode']);const _0x4c9f60=buildAppDoctorFields(_0x594a52,{'env':_0x1d7d8b[_0x1deb24(0x100)],'apiDir':_0x1d7d8b[_0x1deb24(0xee)][_0x1deb24(0xeb)]||DEFAULT_CONFIG_VALUES['apiDir'],'cookie':_0x1d7d8b['cookie']||_0xfaca2f||undefined,'accessKey':_0x1d7d8b['accessKey']});console[_0x1deb24(0x13c)]('\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x4c9f60[_0x1deb24(0x100)]['value']+'\x20\x20'+a101_0x30fbc7[_0x1deb24(0x104)]('('+_0x4c9f60['env'][_0x1deb24(0xf9)]+')')),console[_0x1deb24(0x13c)]('\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20'+_0x4c9f60[_0x1deb24(0xeb)][_0x1deb24(0xfd)]+'\x20\x20'+a101_0x30fbc7[_0x1deb24(0x104)]('('+_0x4c9f60[_0x1deb24(0xeb)][_0x1deb24(0xf9)]+')'));const _0x33e9c7=_0x4c9f60['cookie'][_0x1deb24(0xfd)]?a101_0x30fbc7[_0x1deb24(0xdd)]('(set,\x20length='+_0x4c9f60[_0x1deb24(0xd6)]['value']['length']+')'):a101_0x30fbc7['gray'](_0x1deb24(0x113));console[_0x1deb24(0x13c)]('\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20'+_0x33e9c7+'\x20\x20'+a101_0x30fbc7[_0x1deb24(0x104)]('('+_0x4c9f60[_0x1deb24(0xd6)][_0x1deb24(0xf9)]+')'));const _0x318d08=_0x4c9f60['accessKey']['value']?a101_0x30fbc7[_0x1deb24(0xdd)](_0x1deb24(0x10f)+_0x4c9f60[_0x1deb24(0xd1)]['value'][_0x1deb24(0xd8)]+')'):a101_0x30fbc7[_0x1deb24(0x104)](_0x1deb24(0x113));console[_0x1deb24(0x13c)](_0x1deb24(0x115)+_0x318d08+'\x20\x20'+a101_0x30fbc7['gray']('('+_0x4c9f60[_0x1deb24(0xd1)][_0x1deb24(0xf9)]+')'));}}console[_0x1deb24(0x13c)](),console[_0x1deb24(0x13c)](a101_0x30fbc7['bold'](_0x1deb24(0xe3))),console[_0x1deb24(0x13c)](a101_0x30fbc7[_0x1deb24(0x104)](_0x1deb24(0xdb)['repeat'](0x1e)));_0x43ff59?console['log'](_0x1deb24(0x112)+a101_0x30fbc7[_0x1deb24(0xe0)](_0x1deb24(0x130))):(console[_0x1deb24(0x13c)]('\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+getActiveRegion()),console[_0x1deb24(0x13c)]('\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20'+getApiDomain()),console['log'](_0x1deb24(0x114)+getUserDomain()),console[_0x1deb24(0x13c)](_0x1deb24(0x106)+getRuntimeDomain()),console[_0x1deb24(0x13c)]('\x20\x20skillDomain:\x20\x20\x20\x20\x20'+getSkillDomain()),console['log']('\x20\x20kbDomain:\x20\x20\x20\x20\x20\x20\x20\x20'+getKbDomain()),console['log'](_0x1deb24(0x120)+getAppDomain()));console[_0x1deb24(0x13c)](),console[_0x1deb24(0x13c)](a101_0x30fbc7['bold'](_0x1deb24(0x138))),console['log'](a101_0x30fbc7['gray']('\x20\x20─'[_0x1deb24(0x10e)](0x1e)));if(_0x43ff59)console['log']('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a101_0x30fbc7[_0x1deb24(0xdc)]('Not\x20checked\x20until\x20routing\x20configuration\x20is\x20repaired'));else{if(_0xfaca2f){const _0x352454=await getIsSessionValid();console[_0x1deb24(0x13c)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x352454?a101_0x30fbc7[_0x1deb24(0xdd)](_0x1deb24(0xe6)):a101_0x30fbc7[_0x1deb24(0xe0)](_0x1deb24(0x145))));}else console[_0x1deb24(0x13c)](_0x1deb24(0x112)+a101_0x30fbc7['red'](_0x1deb24(0xcc)));}return console[_0x1deb24(0x13c)](),{'ok':!![]};}export const doctorDefinition={'service':'doctor','command':a101_0xbd7762(0xe8),'description':'Diagnose\x20CLI\x20configuration\x20and\x20connectivity','risk':a101_0xbd7762(0x147),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
1
+ const a103_0x517102=a103_0x35f9;(function(_0x49451b,_0x483568){const _0x306c44=a103_0x35f9,_0x13533d=_0x49451b();while(!![]){try{const _0x7cb3f4=-parseInt(_0x306c44(0x1e0))/0x1+parseInt(_0x306c44(0x1d5))/0x2+-parseInt(_0x306c44(0x1bb))/0x3*(parseInt(_0x306c44(0x205))/0x4)+parseInt(_0x306c44(0x18c))/0x5*(parseInt(_0x306c44(0x1fa))/0x6)+-parseInt(_0x306c44(0x20d))/0x7+-parseInt(_0x306c44(0x1fd))/0x8+parseInt(_0x306c44(0x1cf))/0x9;if(_0x7cb3f4===_0x483568)break;else _0x13533d['push'](_0x13533d['shift']());}catch(_0x348692){_0x13533d['push'](_0x13533d['shift']());}}}(a103_0x412e,0xd4fdc));import a103_0x2d1d31 from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';function a103_0x35f9(_0x1c7893,_0x44f446){_0x1c7893=_0x1c7893-0x181;const _0x412e85=a103_0x412e();let _0x35f90b=_0x412e85[_0x1c7893];return _0x35f90b;}import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';import{getActiveRegion,getApiDomain,getAppDomain,getKbDomain,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';function a103_0x412e(){const _0x395439=['inherit','1019975QvnWnr','project','\x20\x20skillDomain:\x20\x20\x20\x20\x20','repeat','bold','Not\x20checked\x20until\x20routing\x20configuration\x20is\x20repaired','\x20\x20Auth','\x20\x20Apps','Repair\x20','reason','region','toLowerCase','(set\x20via\x20file,\x20length=','(unknown)','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','(set,\x20length=','join','\x20app\x20\x22','(none)','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','env','(not\x20set)','\x20\x20explicitAppName:\x20','message','red','pageSize','803646gHQHtm','appcode','check','841448WtleiH','\x20config\x20delete\x20region','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','source','projectConfig','platform','regionConfiguredValue','unknown','228sVmOkV','\x20\x20appDomain:\x20\x20\x20\x20\x20\x20\x20','explicitAppName','version','\x20\x20API\x20Endpoints','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','✗\x20Expired','\x20\x20Repair\x20project:\x20\x20\x20','6418013JiKEdT','missing','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','arch','\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','currentApp','\x20\x20Repair\x20project:\x20\x20','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','\x20\x20Repair\x20global:\x20\x20\x20\x20','\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','read','ignored\x20in\x20','5AtZYUc','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Config\x20JSON','Unavailable\x20until\x20routing\x20configuration\x20is\x20repaired','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','apiDir','apps','\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Global','global','green','✓\x20Valid','prototype','\x20doctor','label','object','(not\x20found)','cookie','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','raw','Set\x20apps.','\x20\x20Package\x20Version:\x20','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','✗\x20Not\x20logged\x20in','hasOwnProperty','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','(default)','\x20\x20Merged\x20Config','accessKey','format','state','value','\x20config\x20delete\x20inherit','✗\x20Invalid\x20JSON','yellow','gray','filter','routing','\x20\x20\x20\x20region:\x20\x20\x20\x20\x20','\x20\x20Repair\x20global:\x20\x20\x20','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','\x20\x20Built-in\x20Skill','installedPath','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','includes','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','71166KeVNvy','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','\x20\x20runtimeDomain:\x20\x20\x20','length','\x20\x20app\x20locale:\x20\x20\x20\x20\x20\x20','\x20\x20Routing\x20Configuration','push','riskLevel','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Legacy\x20inherit:\x20\x20\x20','call','(no\x20file)','\x20\x20Config\x20Files','\x20config\x20delete\x20routing\x20--global','\x20config','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','globalConfig','empty','✗\x20Invalid','keys','34119738nZRycC','\x20config\x20delete\x20routing','slice','log','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','\x20\x20kbDomain:\x20\x20\x20\x20\x20\x20\x20\x20','683116pZGSNK','locale','defaultApp','\x20\x20─','\x20+\x20','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','packageVersion','Project','padEnd','\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'];a103_0x412e=function(){return _0x395439;};return a103_0x412e();}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(_0x26b0d1){return typeof _0x26b0d1==='string'?JSON['stringify'](_0x26b0d1):'<'+(_0x26b0d1===null?'null':typeof _0x26b0d1)+'>';}async function execute(_0x2b0a8a){const _0x2221f4=a103_0x35f9,_0x569a22=GIT_COMMIT!==_0x2221f4(0x204)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x2221f4(0x1d1)](0x0,0xa)+')':VERSION,_0xe2b283=buildConfigFromFlags({}),_0x2c85c7=getCookie();let _0x103541;try{await initGlobalEnvironment(_0xe2b283);}catch(_0x531295){_0x103541=_0x531295 instanceof Error?_0x531295:new Error(String(_0x531295));}console[_0x2221f4(0x1d2)](),console['log'](a103_0x2d1d31[_0x2221f4(0x1e4)](CLI_BIN_NAME+_0x2221f4(0x19a))),console['log'](a103_0x2d1d31[_0x2221f4(0x1b0)]('─'[_0x2221f4(0x1e3)](0x32))),console[_0x2221f4(0x1d2)](_0x2221f4(0x182)+_0x569a22),console[_0x2221f4(0x1d2)](_0x2221f4(0x1a3)+process[_0x2221f4(0x208)]),console[_0x2221f4(0x1d2)]('\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20'+process[_0x2221f4(0x202)]+'\x20'+process[_0x2221f4(0x183)]);const _0x3b81cc=inspectBuiltinSkill();console[_0x2221f4(0x1d2)](),console[_0x2221f4(0x1d2)](a103_0x2d1d31[_0x2221f4(0x1e4)](_0x2221f4(0x1b6))),console[_0x2221f4(0x1d2)](a103_0x2d1d31['gray'](_0x2221f4(0x1d8)[_0x2221f4(0x1e3)](0x1e)));const _0x4ff3db=_0x3b81cc[_0x2221f4(0x1ab)]==='current'?a103_0x2d1d31['green']('✓\x20'+_0x3b81cc[_0x2221f4(0x1ab)]):a103_0x2d1d31[_0x2221f4(0x1f8)]('✗\x20'+_0x3b81cc[_0x2221f4(0x1ab)]);console[_0x2221f4(0x1d2)](_0x2221f4(0x194)+_0x4ff3db),console[_0x2221f4(0x1d2)](_0x2221f4(0x1a2)+_0x3b81cc[_0x2221f4(0x1db)]),console[_0x2221f4(0x1d2)]('\x20\x20Skill\x20Version:\x20\x20\x20'+(_0x3b81cc['skillVersion']||a103_0x2d1d31[_0x2221f4(0x1b0)](_0x2221f4(0x1ed)))),console['log']('\x20\x20Installed\x20Path:\x20\x20'+(_0x3b81cc[_0x2221f4(0x1b7)]||a103_0x2d1d31[_0x2221f4(0x1b0)](_0x2221f4(0x19d))));if(_0x3b81cc['reason'])console['log']('\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x3b81cc[_0x2221f4(0x1e9)]);_0x3b81cc[_0x2221f4(0x1ab)]!=='current'&&console[_0x2221f4(0x1d2)](_0x2221f4(0x184)+_0x3b81cc['repairCommand']);console[_0x2221f4(0x1d2)](),console['log'](a103_0x2d1d31[_0x2221f4(0x1e4)](_0x2221f4(0x1c7))),console[_0x2221f4(0x1d2)](a103_0x2d1d31[_0x2221f4(0x1b0)](_0x2221f4(0x1d8)[_0x2221f4(0x1e3)](0x1e)));const _0x1c4405=getGlobalConfigPath(),_0x12d6ac=getProjectConfigPath();console['log'](_0x2221f4(0x1ba)+(_0x1c4405||a103_0x2d1d31[_0x2221f4(0x1b0)](_0x2221f4(0x19d)))),console[_0x2221f4(0x1d2)](_0x2221f4(0x1c3)+(_0x12d6ac||a103_0x2d1d31['gray'](_0x2221f4(0x19d)))),console[_0x2221f4(0x1d2)](),console[_0x2221f4(0x1d2)](a103_0x2d1d31['bold'](_0x2221f4(0x18f))),console[_0x2221f4(0x1d2)](a103_0x2d1d31[_0x2221f4(0x1b0)](_0x2221f4(0x1d8)[_0x2221f4(0x1e3)](0x1e)));const _0x2061a2=(_0xe567e5,_0x286bd9)=>{const _0x1f631c=_0x2221f4;if(!_0x286bd9){console[_0x1f631c(0x1d2)]('\x20\x20'+_0xe567e5[_0x1f631c(0x1dd)](0x11)+'\x20'+a103_0x2d1d31[_0x1f631c(0x1b0)](_0x1f631c(0x1c6)));return;}const _0x49aa4d=inspectCliConfigJsonFile(_0x286bd9);if(_0x49aa4d['status']==='ok')console[_0x1f631c(0x1d2)]('\x20\x20'+_0xe567e5[_0x1f631c(0x1dd)](0x11)+'\x20'+a103_0x2d1d31['green']('✓\x20Valid\x20JSON'));else{if(_0x49aa4d['status']===_0x1f631c(0x1cc))console['log']('\x20\x20'+_0xe567e5[_0x1f631c(0x1dd)](0x11)+'\x20'+a103_0x2d1d31['yellow']('⚠\x20Empty\x20(treated\x20as\x20{})'));else _0x49aa4d['status']===_0x1f631c(0x181)?console[_0x1f631c(0x1d2)]('\x20\x20'+_0xe567e5[_0x1f631c(0x1dd)](0x11)+'\x20'+a103_0x2d1d31[_0x1f631c(0x1b0)]('(missing)')):(console['log']('\x20\x20'+_0xe567e5['padEnd'](0x11)+'\x20'+a103_0x2d1d31['red'](_0x1f631c(0x1ae))),console[_0x1f631c(0x1d2)]('\x20\x20'+''[_0x1f631c(0x1dd)](0x11)+'\x20'+a103_0x2d1d31[_0x1f631c(0x1f8)](_0x49aa4d['message'])));}};_0x2061a2(_0x2221f4(0x195),_0x1c4405),_0x2061a2(_0x2221f4(0x1dc),_0x12d6ac);const _0x44c915=loadRawConfigLayers(),_0xeeee8a=[{'label':_0x2221f4(0x1dc),'value':_0x44c915['projectConfig']['region'],'present':Object['prototype'][_0x2221f4(0x1a5)][_0x2221f4(0x1c5)](_0x44c915[_0x2221f4(0x201)],'region'),'repairCommand':CLI_BIN_NAME+_0x2221f4(0x1fe)},{'label':_0x2221f4(0x195),'value':_0x44c915['globalConfig']['region'],'present':Object[_0x2221f4(0x199)][_0x2221f4(0x1a5)][_0x2221f4(0x1c5)](_0x44c915[_0x2221f4(0x1cb)],'region'),'repairCommand':CLI_BIN_NAME+'\x20config\x20delete\x20region\x20--global'}][_0x2221f4(0x1b1)](_0x2ed67d=>_0x2ed67d['present']&&isInvalidLovrabetRegion(_0x2ed67d[_0x2221f4(0x1ac)]));for(const [_0x46a882,_0x14b4fb]of[['Project',_0x44c915[_0x2221f4(0x201)]],[_0x2221f4(0x195),_0x44c915[_0x2221f4(0x1cb)]]]){const _0x4b5d55=_0x14b4fb[_0x2221f4(0x193)]&&typeof _0x14b4fb[_0x2221f4(0x193)]==='object'?_0x14b4fb[_0x2221f4(0x193)]:{};for(const [_0x5dc942,_0x213296]of Object['entries'](_0x4b5d55)){if(!_0x213296||typeof _0x213296!==_0x2221f4(0x19c)||!Object['prototype'][_0x2221f4(0x1a5)][_0x2221f4(0x1c5)](_0x213296,_0x2221f4(0x1ea)))continue;isInvalidLovrabetRegion(_0x213296['region'])&&_0xeeee8a[_0x2221f4(0x1c1)]({'label':_0x46a882+_0x2221f4(0x1f1)+_0x5dc942+'\x22','value':_0x213296[_0x2221f4(0x1ea)],'present':!![],'repairCommand':_0x2221f4(0x1a1)+_0x5dc942+'.region\x20to\x20cn\x20or\x20id\x20in\x20'+_0x46a882[_0x2221f4(0x1eb)]()+_0x2221f4(0x1c9)});}}if(_0xeeee8a['length']>0x0){console[_0x2221f4(0x1d2)](),console[_0x2221f4(0x1d2)](a103_0x2d1d31[_0x2221f4(0x1e4)]('\x20\x20Country/Region\x20Configuration')),console[_0x2221f4(0x1d2)](a103_0x2d1d31[_0x2221f4(0x1b0)](_0x2221f4(0x1d8)[_0x2221f4(0x1e3)](0x1e)));for(const _0x46d957 of _0xeeee8a){console[_0x2221f4(0x1d2)]('\x20\x20'+_0x46d957[_0x2221f4(0x19b)]['padEnd'](0x11)+'\x20'+a103_0x2d1d31[_0x2221f4(0x1f8)]('✗\x20Invalid\x20'+describeRegionValue(_0x46d957['value']))),console[_0x2221f4(0x1d2)]('\x20\x20'+(_0x2221f4(0x1e8)+_0x46d957[_0x2221f4(0x19b)][_0x2221f4(0x1eb)]()+':')[_0x2221f4(0x1dd)](0x10)+'\x20'+_0x46d957['repairCommand']);}}const _0x5a3530=[Object['prototype'][_0x2221f4(0x1a5)][_0x2221f4(0x1c5)](_0x44c915[_0x2221f4(0x1cb)],_0x2221f4(0x1df))?_0x2221f4(0x196):null,Object['prototype'][_0x2221f4(0x1a5)][_0x2221f4(0x1c5)](_0x44c915[_0x2221f4(0x201)],_0x2221f4(0x1df))?_0x2221f4(0x1e1):null][_0x2221f4(0x1b1)](Boolean);_0x5a3530['length']>0x0&&(console[_0x2221f4(0x1d2)](_0x2221f4(0x1c4)+a103_0x2d1d31[_0x2221f4(0x1af)](_0x2221f4(0x18b)+_0x5a3530[_0x2221f4(0x1f0)](_0x2221f4(0x1d9))+_0x2221f4(0x1c9))),_0x5a3530[_0x2221f4(0x1b9)](_0x2221f4(0x1e1))&&console[_0x2221f4(0x1d2)](_0x2221f4(0x20c)+CLI_BIN_NAME+_0x2221f4(0x1ad)),_0x5a3530[_0x2221f4(0x1b9)](_0x2221f4(0x196))&&console['log'](_0x2221f4(0x188)+CLI_BIN_NAME+'\x20config\x20delete\x20inherit\x20--global'));const _0x3dd910=isInvalidLovrabetRegion(_0xe2b283['regionConfiguredValue']??_0xe2b283[_0x2221f4(0x1a0)]?.['region']);_0x103541&&!_0x3dd910&&(console[_0x2221f4(0x1d2)](),console[_0x2221f4(0x1d2)](a103_0x2d1d31['bold'](_0x2221f4(0x1c0))),console[_0x2221f4(0x1d2)](a103_0x2d1d31[_0x2221f4(0x1b0)]('\x20\x20─'[_0x2221f4(0x1e3)](0x1e))),console[_0x2221f4(0x1d2)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a103_0x2d1d31[_0x2221f4(0x1f8)](_0x2221f4(0x1cd))),console[_0x2221f4(0x1d2)](_0x2221f4(0x1de)+_0x103541[_0x2221f4(0x1f7)]),Object[_0x2221f4(0x199)][_0x2221f4(0x1a5)][_0x2221f4(0x1c5)](_0x44c915['projectConfig'],'routing')&&console['log'](_0x2221f4(0x186)+CLI_BIN_NAME+_0x2221f4(0x1d0)),Object['prototype'][_0x2221f4(0x1a5)][_0x2221f4(0x1c5)](_0x44c915['globalConfig'],_0x2221f4(0x1b2))&&console[_0x2221f4(0x1d2)](_0x2221f4(0x1b4)+CLI_BIN_NAME+_0x2221f4(0x1c8)));console[_0x2221f4(0x1d2)](),console['log'](a103_0x2d1d31[_0x2221f4(0x1e4)](_0x2221f4(0x1a8))),console[_0x2221f4(0x1d2)](a103_0x2d1d31[_0x2221f4(0x1b0)]('\x20\x20─'[_0x2221f4(0x1e3)](0x1e))),console[_0x2221f4(0x1d2)]('\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0xe2b283['appCode']||a103_0x2d1d31['red'](_0x2221f4(0x1f5))));const _0x375264=_0x3dd910?a103_0x2d1d31[_0x2221f4(0x1f8)](describeRegionValue(_0xe2b283[_0x2221f4(0x203)]??_0xe2b283[_0x2221f4(0x1a0)]?.[_0x2221f4(0x1ea)])+'\x20(invalid)'):(_0xe2b283['region']??DEFAULT_LOVRABET_REGION)+'\x20('+(_0xe2b283['regionSource']??'default')+')';console[_0x2221f4(0x1d2)](_0x2221f4(0x189)+_0x375264),console[_0x2221f4(0x1d2)](_0x2221f4(0x1da)+_0xe2b283['env']),console[_0x2221f4(0x1d2)](_0x2221f4(0x1bf)+_0xe2b283[_0x2221f4(0x1d6)]),console['log'](_0x2221f4(0x1ca)+_0xe2b283[_0x2221f4(0x192)]),console[_0x2221f4(0x1d2)](_0x2221f4(0x191)+(_0xe2b283[_0x2221f4(0x1d7)]||a103_0x2d1d31[_0x2221f4(0x1b0)]('(none)'))),console[_0x2221f4(0x1d2)](_0x2221f4(0x1d3)+(_0xe2b283[_0x2221f4(0x185)]||a103_0x2d1d31[_0x2221f4(0x1b0)](_0x2221f4(0x1f2)))),console[_0x2221f4(0x1d2)](_0x2221f4(0x1f6)+(_0xe2b283[_0x2221f4(0x207)]||a103_0x2d1d31['gray'](_0x2221f4(0x1f2)))),console[_0x2221f4(0x1d2)](_0x2221f4(0x18e)+(_0xe2b283[_0x2221f4(0x1aa)]||a103_0x2d1d31[_0x2221f4(0x1b0)]('(default:\x20'+DEFAULT_CONFIG_VALUES['format']+')'))),console['log'](_0x2221f4(0x1a6)+(_0xe2b283[_0x2221f4(0x1f9)]??a103_0x2d1d31[_0x2221f4(0x1b0)](_0x2221f4(0x1a7)))),console[_0x2221f4(0x1d2)](_0x2221f4(0x1ff)+_0xe2b283[_0x2221f4(0x1c2)]),console['log'](_0x2221f4(0x1b8)+_0xe2b283['verbose']),console['log'](_0x2221f4(0x1f3)+(_0xe2b283[_0x2221f4(0x19e)]?a103_0x2d1d31[_0x2221f4(0x197)](_0x2221f4(0x1ef)+_0xe2b283[_0x2221f4(0x19e)][_0x2221f4(0x1be)]+')'):_0x2c85c7?a103_0x2d1d31[_0x2221f4(0x197)](_0x2221f4(0x1ec)+_0x2c85c7['length']+')'):a103_0x2d1d31['gray'](_0x2221f4(0x1f2))));const _0x45b01c=Object[_0x2221f4(0x1ce)](_0xe2b283['apps']);if(_0x45b01c[_0x2221f4(0x1be)]>0x0){console[_0x2221f4(0x1d2)](),console[_0x2221f4(0x1d2)](a103_0x2d1d31['bold'](_0x2221f4(0x1e7))),console['log'](a103_0x2d1d31[_0x2221f4(0x1b0)](_0x2221f4(0x1d8)[_0x2221f4(0x1e3)](0x1e)));for(const _0x2627ef of _0x45b01c){const _0x89fc64=_0xe2b283['apps'][_0x2627ef],_0x34a0a9=_0x2627ef===_0xe2b283[_0x2221f4(0x1d7)],_0x359038=_0x2627ef===_0xe2b283[_0x2221f4(0x185)],_0x5b5878=_0x359038?a103_0x2d1d31[_0x2221f4(0x197)]('\x20←\x20current'):'',_0x31dddd=_0x34a0a9?'\x20(default)':'';console[_0x2221f4(0x1d2)]('\x20\x20'+_0x2627ef+_0x31dddd+_0x5b5878),console['log'](_0x2221f4(0x1ee)+_0x89fc64[_0x2221f4(0x1fb)]);const _0x1690b9=_0x44c915['projectConfig'][_0x2221f4(0x193)]&&typeof _0x44c915[_0x2221f4(0x201)][_0x2221f4(0x193)]==='object'?_0x44c915[_0x2221f4(0x201)]['apps']:{},_0x3f9c58=Object[_0x2221f4(0x199)][_0x2221f4(0x1a5)]['call'](_0x1690b9,_0x2627ef),_0x32d52a=isInvalidLovrabetRegion(_0x89fc64[_0x2221f4(0x1ea)])?{'region':_0xe2b283['region']??DEFAULT_LOVRABET_REGION}:resolveEffectiveRegion({'appRegion':_0x89fc64[_0x2221f4(0x1ea)],'projectRegion':_0x3f9c58?_0x44c915[_0x2221f4(0x201)][_0x2221f4(0x1ea)]:undefined,'globalRegion':_0x44c915['globalConfig']['region'],'mergedRegion':_0xe2b283['raw'][_0x2221f4(0x1ea)],'appName':_0x2627ef}),_0x3b8caf=buildAppDoctorFields(_0x89fc64,{'region':_0x32d52a[_0x2221f4(0x1ea)],'env':_0xe2b283['env'],'apiDir':_0xe2b283[_0x2221f4(0x1a0)][_0x2221f4(0x192)]||DEFAULT_CONFIG_VALUES['apiDir'],'cookie':_0xe2b283[_0x2221f4(0x19e)]||_0x2c85c7||undefined,'accessKey':_0xe2b283[_0x2221f4(0x1a9)]});console[_0x2221f4(0x1d2)](_0x2221f4(0x1b3)+_0x3b8caf[_0x2221f4(0x1ea)][_0x2221f4(0x1ac)]+'\x20\x20'+a103_0x2d1d31[_0x2221f4(0x1b0)]('('+_0x3b8caf[_0x2221f4(0x1ea)]['source']+')')),console[_0x2221f4(0x1d2)]('\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x3b8caf[_0x2221f4(0x1f4)][_0x2221f4(0x1ac)]+'\x20\x20'+a103_0x2d1d31[_0x2221f4(0x1b0)]('('+_0x3b8caf[_0x2221f4(0x1f4)][_0x2221f4(0x200)]+')')),console[_0x2221f4(0x1d2)](_0x2221f4(0x18d)+_0x3b8caf['apiDir']['value']+'\x20\x20'+a103_0x2d1d31['gray']('('+_0x3b8caf['apiDir'][_0x2221f4(0x200)]+')'));const _0x594602=_0x3b8caf['cookie'][_0x2221f4(0x1ac)]?a103_0x2d1d31[_0x2221f4(0x197)](_0x2221f4(0x1ef)+_0x3b8caf['cookie'][_0x2221f4(0x1ac)][_0x2221f4(0x1be)]+')'):a103_0x2d1d31[_0x2221f4(0x1b0)](_0x2221f4(0x1f2));console[_0x2221f4(0x1d2)](_0x2221f4(0x19f)+_0x594602+'\x20\x20'+a103_0x2d1d31[_0x2221f4(0x1b0)]('('+_0x3b8caf['cookie']['source']+')'));const _0x12e18c=_0x3b8caf[_0x2221f4(0x1a9)]['value']?a103_0x2d1d31['green'](_0x2221f4(0x1ef)+_0x3b8caf[_0x2221f4(0x1a9)][_0x2221f4(0x1ac)][_0x2221f4(0x1be)]+')'):a103_0x2d1d31[_0x2221f4(0x1b0)](_0x2221f4(0x1f2));console['log']('\x20\x20\x20\x20accessKey:\x20\x20'+_0x12e18c+'\x20\x20'+a103_0x2d1d31['gray']('('+_0x3b8caf[_0x2221f4(0x1a9)][_0x2221f4(0x200)]+')'));}}console['log'](),console[_0x2221f4(0x1d2)](a103_0x2d1d31[_0x2221f4(0x1e4)](_0x2221f4(0x209))),console[_0x2221f4(0x1d2)](a103_0x2d1d31['gray'](_0x2221f4(0x1d8)[_0x2221f4(0x1e3)](0x1e)));_0x103541?console[_0x2221f4(0x1d2)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a103_0x2d1d31['red'](_0x2221f4(0x190))):(console[_0x2221f4(0x1d2)]('\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+getActiveRegion()),console[_0x2221f4(0x1d2)](_0x2221f4(0x187)+getApiDomain()),console['log'](_0x2221f4(0x1b5)+getUserDomain()),console[_0x2221f4(0x1d2)](_0x2221f4(0x1bd)+getRuntimeDomain()),console[_0x2221f4(0x1d2)](_0x2221f4(0x1e2)+getSkillDomain()),console[_0x2221f4(0x1d2)](_0x2221f4(0x1d4)+getKbDomain()),console['log'](_0x2221f4(0x206)+getAppDomain()));console[_0x2221f4(0x1d2)](),console['log'](a103_0x2d1d31[_0x2221f4(0x1e4)](_0x2221f4(0x1e6))),console[_0x2221f4(0x1d2)](a103_0x2d1d31['gray'](_0x2221f4(0x1d8)['repeat'](0x1e)));if(_0x103541)console[_0x2221f4(0x1d2)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a103_0x2d1d31['yellow'](_0x2221f4(0x1e5)));else{if(_0x2c85c7){const _0x9a93f7=await getIsSessionValid();console[_0x2221f4(0x1d2)](_0x2221f4(0x20a)+(_0x9a93f7?a103_0x2d1d31['green'](_0x2221f4(0x198)):a103_0x2d1d31[_0x2221f4(0x1f8)](_0x2221f4(0x20b))));}else console[_0x2221f4(0x1d2)](_0x2221f4(0x20a)+a103_0x2d1d31[_0x2221f4(0x1f8)](_0x2221f4(0x1a4)));}return console[_0x2221f4(0x1d2)](),{'ok':!![]};}export const doctorDefinition={'service':'doctor','command':a103_0x517102(0x1fc),'description':a103_0x517102(0x1bc),'risk':a103_0x517102(0x18a),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
@@ -1 +1 @@
1
- const a102_0x4a773c=a102_0x5734;(function(_0x4df352,_0x413cc7){const _0x3e4496=a102_0x5734,_0x179574=_0x4df352();while(!![]){try{const _0xd13c79=parseInt(_0x3e4496(0x150))/0x1*(-parseInt(_0x3e4496(0x143))/0x2)+-parseInt(_0x3e4496(0x15c))/0x3*(parseInt(_0x3e4496(0x154))/0x4)+parseInt(_0x3e4496(0x147))/0x5*(parseInt(_0x3e4496(0x157))/0x6)+parseInt(_0x3e4496(0x14e))/0x7*(parseInt(_0x3e4496(0x159))/0x8)+parseInt(_0x3e4496(0x156))/0x9+parseInt(_0x3e4496(0x14a))/0xa*(parseInt(_0x3e4496(0x14c))/0xb)+-parseInt(_0x3e4496(0x158))/0xc;if(_0xd13c79===_0x413cc7)break;else _0x179574['push'](_0x179574['shift']());}catch(_0x3c58e9){_0x179574['push'](_0x179574['shift']());}}}(a102_0x2ff0,0x2db84));import{requireDevelopmentUploadFile}from'../../commands/common/local-file.js';import{queryDevelopmentFileUrl,uploadDevelopmentFile}from'../../core/api-client.js';function a102_0x2ff0(){const _0x1318d4=['filepath','Uploaded\x20file:\x20','672366GRQZvr','read','Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20or\x20immediate\x20access','string','5XnIsQr','File','Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL','50zKMUQb','appCode','232133yMJTUL','Path\x20to\x20the\x20local\x20file\x20to\x20upload','553574tXVXNr','trim','1okjDHz','/smartapi/common/uploadFile','upload','\x20to\x20development\x20app\x20','9428wXNSgo','Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','1066698kanXdV','740334dUEfUT','649800wCfcNd','24pHqSGq','long-term','filePath\x20is\x20required.','9soIZwK','str','.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','query-url','Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML','Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','boolean','bool','file','path','filePath','download'];a102_0x2ff0=function(){return _0x1318d4;};return a102_0x2ff0();}import{CliErrors}from'../../errors.js';function a102_0x5734(_0xf4dc5f,_0x5f52c0){_0xf4dc5f=_0xf4dc5f-0x139;const _0x2ff07c=a102_0x2ff0();let _0x573416=_0x2ff07c[_0xf4dc5f];return _0x573416;}const FILE_FLAG={'name':a102_0x4a773c(0x13d),'type':a102_0x4a773c(0x146),'required':!![],'description':a102_0x4a773c(0x14d)},FILEPATH_FLAG={'name':a102_0x4a773c(0x141),'type':a102_0x4a773c(0x146),'required':!![],'description':'Development\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data'},DOWNLOAD_FLAG={'name':a102_0x4a773c(0x140),'type':a102_0x4a773c(0x13b),'description':a102_0x4a773c(0x149)},LONG_TERM_FLAG={'name':a102_0x4a773c(0x15a),'type':a102_0x4a773c(0x13b),'description':a102_0x4a773c(0x139)};function requireFilePath(_0x74e2f4){const _0xae3509=a102_0x4a773c,_0x26e962=_0x74e2f4[_0xae3509(0x14f)]();if(!_0x26e962)throw CliErrors['validation'](_0xae3509(0x15b));return _0x26e962;}const fileUpload={'service':a102_0x4a773c(0x13d),'command':a102_0x4a773c(0x152),'description':a102_0x4a773c(0x13a),'risk':a102_0x4a773c(0x144),'flags':[FILE_FLAG],async 'dryRun'(_0x21e0e3){const _0x1851b1=a102_0x4a773c,_0x3bdd2e=requireDevelopmentUploadFile(_0x21e0e3['str'](_0x1851b1(0x13d)),_0x1851b1(0x148));return{'method':'POST','url':_0x1851b1(0x151),'body':{'appCode':_0x21e0e3['appCode'],'multipart':{'file':_0x3bdd2e}},'description':'Preview:\x20upload\x20'+_0x3bdd2e['path']+_0x1851b1(0x153)+_0x21e0e3[_0x1851b1(0x14b)]};},async 'execute'(_0x4b58d9){const _0x292da4=a102_0x4a773c,_0x4b6dbc=requireDevelopmentUploadFile(_0x4b58d9['str'](_0x292da4(0x13d)),_0x292da4(0x148)),_0x2ce6ea=await uploadDevelopmentFile(_0x4b58d9['appCode'],_0x4b6dbc[_0x292da4(0x13e)]);return{'ok':!![],'data':_0x2ce6ea,'message':_0x2ce6ea[_0x292da4(0x13f)]?_0x292da4(0x142)+_0x2ce6ea['filePath']+_0x292da4(0x15e):_0x292da4(0x155)};}},fileQueryUrl={'service':a102_0x4a773c(0x13d),'command':a102_0x4a773c(0x15f),'description':a102_0x4a773c(0x145),'risk':a102_0x4a773c(0x144),'flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0x56a103){const _0x2946ea=a102_0x4a773c,_0x41293f=requireFilePath(_0x56a103[_0x2946ea(0x15d)](_0x2946ea(0x141))),_0x113f8d=await queryDevelopmentFileUrl(_0x41293f,{'download':_0x56a103[_0x2946ea(0x13c)]('download'),'longTerm':_0x56a103['bool'](_0x2946ea(0x15a))});return{'ok':!![],'data':_0x113f8d};}};export const fileDefinitions=[fileUpload,fileQueryUrl];
1
+ const a104_0x2fb4b1=a104_0x1766;(function(_0xb37ea2,_0x481687){const _0x542230=a104_0x1766,_0x5aba7c=_0xb37ea2();while(!![]){try{const _0x368be0=-parseInt(_0x542230(0x9c))/0x1+parseInt(_0x542230(0x98))/0x2*(parseInt(_0x542230(0x86))/0x3)+parseInt(_0x542230(0xac))/0x4*(parseInt(_0x542230(0x9f))/0x5)+-parseInt(_0x542230(0x99))/0x6*(parseInt(_0x542230(0x94))/0x7)+-parseInt(_0x542230(0x92))/0x8+parseInt(_0x542230(0xaa))/0x9*(-parseInt(_0x542230(0xae))/0xa)+parseInt(_0x542230(0x95))/0xb;if(_0x368be0===_0x481687)break;else _0x5aba7c['push'](_0x5aba7c['shift']());}catch(_0x479e67){_0x5aba7c['push'](_0x5aba7c['shift']());}}}(a104_0x2b2e,0x57d84));function a104_0x2b2e(){const _0x3939c7=['trim','4482HECOdD','path','1220pgPNIG','str','1810JnuanF','43908uakrLy','Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML','Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','long-term','filePath','Development\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data','/smartapi/common/uploadFile','appCode','Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20or\x20immediate\x20access','download','.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','\x20to\x20development\x20app\x20','883696akApgu','bool','7WPFvxN','1830389pIRUZO','string','filepath','30TFIsnh','1116366jrMOIi','File','filePath\x20is\x20required.','1196lHkWZj','Path\x20to\x20the\x20local\x20file\x20to\x20upload','Uploaded\x20file:\x20','5930XDtWeR','boolean','file','Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL','read','Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','POST','Preview:\x20upload\x20','upload','query-url'];a104_0x2b2e=function(){return _0x3939c7;};return a104_0x2b2e();}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':a104_0x2fb4b1(0xa1),'type':a104_0x2fb4b1(0x96),'required':!![],'description':a104_0x2fb4b1(0x9d)},FILEPATH_FLAG={'name':a104_0x2fb4b1(0x97),'type':a104_0x2fb4b1(0x96),'required':!![],'description':a104_0x2fb4b1(0x8b)},DOWNLOAD_FLAG={'name':a104_0x2fb4b1(0x8f),'type':a104_0x2fb4b1(0xa0),'description':a104_0x2fb4b1(0xa2)},LONG_TERM_FLAG={'name':'long-term','type':a104_0x2fb4b1(0xa0),'description':a104_0x2fb4b1(0x87)};function a104_0x1766(_0x2a3c16,_0x4bda13){_0x2a3c16=_0x2a3c16-0x86;const _0x2b2e15=a104_0x2b2e();let _0x1766aa=_0x2b2e15[_0x2a3c16];return _0x1766aa;}function requireFilePath(_0x818677){const _0x555086=a104_0x2fb4b1,_0x14a8e8=_0x818677[_0x555086(0xa9)]();if(!_0x14a8e8)throw CliErrors['validation'](_0x555086(0x9b));return _0x14a8e8;}const fileUpload={'service':a104_0x2fb4b1(0xa1),'command':a104_0x2fb4b1(0xa7),'description':a104_0x2fb4b1(0x88),'risk':a104_0x2fb4b1(0xa3),'flags':[FILE_FLAG],async 'dryRun'(_0x550bbc){const _0x1cfa33=a104_0x2fb4b1,_0x329dc8=requireDevelopmentUploadFile(_0x550bbc[_0x1cfa33(0xad)]('file'),_0x1cfa33(0x9a));return{'method':_0x1cfa33(0xa5),'url':_0x1cfa33(0x8c),'body':{'appCode':_0x550bbc[_0x1cfa33(0x8d)],'multipart':{'file':_0x329dc8}},'description':_0x1cfa33(0xa6)+_0x329dc8[_0x1cfa33(0xab)]+_0x1cfa33(0x91)+_0x550bbc[_0x1cfa33(0x8d)]};},async 'execute'(_0xe9aab4){const _0x2d921e=a104_0x2fb4b1,_0x29db2a=requireDevelopmentUploadFile(_0xe9aab4[_0x2d921e(0xad)](_0x2d921e(0xa1)),_0x2d921e(0x9a)),_0x26a261=await uploadDevelopmentFile(_0xe9aab4['appCode'],_0x29db2a[_0x2d921e(0xab)]);return{'ok':!![],'data':_0x26a261,'message':_0x26a261[_0x2d921e(0x8a)]?_0x2d921e(0x9e)+_0x26a261[_0x2d921e(0x8a)]+_0x2d921e(0x90):_0x2d921e(0xa4)};}},fileQueryUrl={'service':a104_0x2fb4b1(0xa1),'command':a104_0x2fb4b1(0xa8),'description':a104_0x2fb4b1(0x8e),'risk':'read','flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0x39a45e){const _0x2ab27a=a104_0x2fb4b1,_0x15559f=requireFilePath(_0x39a45e['str']('filepath')),_0x4cce23=await queryDevelopmentFileUrl(_0x15559f,{'download':_0x39a45e[_0x2ab27a(0x93)]('download'),'longTerm':_0x39a45e['bool'](_0x2ab27a(0x89))});return{'ok':!![],'data':_0x4cce23};}};export const fileDefinitions=[fileUpload,fileQueryUrl];
@@ -0,0 +1,2 @@
1
+ import type { CommandDefinition } from "../../framework/types.js";
2
+ export declare const flowCreate: CommandDefinition;
@@ -0,0 +1 @@
1
+ function a105_0xfd1c(_0xf5177c,_0x44e7a0){_0xf5177c=_0xf5177c-0x10c;const _0x54b8cb=a105_0x54b8();let _0xfd1c92=_0x54b8cb[_0xf5177c];return _0xfd1c92;}const a105_0x35c534=a105_0xfd1c;(function(_0x1bdeb7,_0x466bfa){const _0x164b44=a105_0xfd1c,_0x2b6dae=_0x1bdeb7();while(!![]){try{const _0x315e39=-parseInt(_0x164b44(0x112))/0x1*(parseInt(_0x164b44(0x10e))/0x2)+parseInt(_0x164b44(0x113))/0x3*(-parseInt(_0x164b44(0x110))/0x4)+-parseInt(_0x164b44(0x115))/0x5+-parseInt(_0x164b44(0x11b))/0x6*(-parseInt(_0x164b44(0x10c))/0x7)+parseInt(_0x164b44(0x10f))/0x8+parseInt(_0x164b44(0x11d))/0x9*(-parseInt(_0x164b44(0x117))/0xa)+parseInt(_0x164b44(0x119))/0xb*(parseInt(_0x164b44(0x11f))/0xc);if(_0x315e39===_0x466bfa)break;else _0x2b6dae['push'](_0x2b6dae['shift']());}catch(_0x2e64d7){_0x2b6dae['push'](_0x2b6dae['shift']());}}}(a105_0x54b8,0x48ba9));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a105_0x54b8(){const _0xec180a=['\x20(id=','6564inVdww','98qOHfvJ','POST','6416fomHvM','2366816wITxZn','12656EynmZx','write','163TAhWMf','9AAgrII','datasetCode','1601270ejXFWb','create','490PIqNHo','flow','19888xhOZqb','appCode','58728SZEzKQ','flowName','49833QbITEZ'];a105_0x54b8=function(){return _0xec180a;};return a105_0x54b8();}import{asDryRunResult}from'../../commands/common/dry-run.js';import{createFlowDefinition}from'../../core/api-client.js';import{FLOW_FILE_FLAG,FLOW_PATHS,confirmFlowWrite,flowSelector,prepareFlowWrite,readFlowFilePath}from'../../commands/flow/shared.js';export const flowCreate={'service':a105_0x35c534(0x118),'command':a105_0x35c534(0x116),'description':'Create\x20a\x20draft\x20flow\x20definition\x20from\x20a\x20local\x20FlowConfig\x20file','risk':a105_0x35c534(0x111),'flags':[FLOW_FILE_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x3bfc87){readFlowFilePath(_0x3bfc87);},async 'dryRun'(_0x40173e){const _0x1473e7=a105_0x35c534,{request:_0x191a98,warnings:_0x20c5fa}=await prepareFlowWrite(readFlowFilePath(_0x40173e),_0x40173e['appCode']);return asDryRunResult({'operation':_0x1473e7(0x116),'selector':{'appCode':_0x40173e[_0x1473e7(0x11a)],'flowName':_0x191a98[_0x1473e7(0x11c)],..._0x191a98['datasetCode']?{'datasetCode':_0x191a98[_0x1473e7(0x114)]}:{}},'before':null,'after':_0x191a98,'request':_0x191a98,'dryRun':!![],'backend':{'method':'POST','path':FLOW_PATHS['create']},'warnings':_0x20c5fa},{'method':_0x1473e7(0x10d),'url':FLOW_PATHS[_0x1473e7(0x116)]});},async 'execute'(_0x1a9b57){const _0x2a8072=a105_0x35c534,{request:_0xa08499,warnings:_0x4f6030}=await prepareFlowWrite(readFlowFilePath(_0x1a9b57),_0x1a9b57['appCode']);await confirmFlowWrite(_0x1a9b57,_0x2a8072(0x116),_0xa08499);const _0x378518=await createFlowDefinition(_0xa08499);return{'ok':!![],'data':{'operation':_0x2a8072(0x116),'selector':flowSelector(_0x1a9b57[_0x2a8072(0x11a)],_0x378518['id'],_0x378518),'before':null,'after':_0x378518,'dryRun':![],'backend':{'method':_0x2a8072(0x10d),'path':FLOW_PATHS[_0x2a8072(0x116)]},'warnings':_0x4f6030},'message':'Created\x20flow\x20'+(_0x378518[_0x2a8072(0x11c)]||_0xa08499[_0x2a8072(0x11c)])+(_0x378518['id']?_0x2a8072(0x11e)+_0x378518['id']+')':'')};}};
@@ -0,0 +1,2 @@
1
+ import type { CommandDefinition } from "../../framework/types.js";
2
+ export declare const flowDetail: CommandDefinition;
@@ -0,0 +1 @@
1
+ const a106_0x13aacf=a106_0x3090;function a106_0x20d9(){const _0xcaf50c=['Get\x20one\x20design-time\x20flow\x20definition','FlowConfig\x20output\x20already\x20exists:\x20','boolean','validation','output','appCode','flowName','Flow\x20','1386oRLeCJ','4339328GLAIEf','Pass\x20--force\x20to\x20overwrite\x20it.','191394NfYwEJ','code','10120JRYVRZ','path','force','read','2061nzWAjy','147708qFSkfC','string','Overwrite\x20an\x20existing\x20output\x20file','95krHGOX','768260eFvFiz','2126BiDfls','bool','ENOENT','930spcmVP','flowCode','flow','40408MdBiGu','detail'];a106_0x20d9=function(){return _0xcaf50c;};return a106_0x20d9();}(function(_0x3205d2,_0x13168b){const _0x28e763=a106_0x3090,_0xfc711a=_0x3205d2();while(!![]){try{const _0x4bb111=parseInt(_0x28e763(0xcb))/0x1+-parseInt(_0x28e763(0xcc))/0x2*(parseInt(_0x28e763(0xc6))/0x3)+parseInt(_0x28e763(0xe1))/0x4+-parseInt(_0x28e763(0xca))/0x5*(parseInt(_0x28e763(0xdf))/0x6)+parseInt(_0x28e763(0xdd))/0x7+parseInt(_0x28e763(0xd2))/0x8*(-parseInt(_0x28e763(0xdc))/0x9)+-parseInt(_0x28e763(0xcf))/0xa*(-parseInt(_0x28e763(0xc7))/0xb);if(_0x4bb111===_0x13168b)break;else _0xfc711a['push'](_0xfc711a['shift']());}catch(_0xe3053a){_0xfc711a['push'](_0xfc711a['shift']());}}}(a106_0x20d9,0x803e2));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';import{FLOW_ID_FLAG,flowDefinitionToConfig,readFlowId}from'../../commands/flow/shared.js';export const flowDetail={'service':a106_0x13aacf(0xd1),'command':a106_0x13aacf(0xd3),'description':a106_0x13aacf(0xd4),'risk':a106_0x13aacf(0xc5),'flags':[FLOW_ID_FLAG,{'name':a106_0x13aacf(0xd8),'type':a106_0x13aacf(0xc8),'description':'Write\x20a\x20portable\x20normalized\x20FlowConfig\x20JSON\x20file'},{'name':a106_0x13aacf(0xc4),'type':a106_0x13aacf(0xd6),'description':a106_0x13aacf(0xc9)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x4b2316){readFlowId(_0x4b2316);},async 'execute'(_0x36d3bd){const _0x24882e=a106_0x13aacf,_0x2cfadc=readFlowId(_0x36d3bd),_0x48acf1=_0x36d3bd['str'](_0x24882e(0xd8))['trim'](),_0x419629=_0x48acf1?resolve(_0x48acf1):undefined;if(_0x419629&&!_0x36d3bd[_0x24882e(0xcd)](_0x24882e(0xc4))&&await fileExists(_0x419629))throw CliErrors[_0x24882e(0xd7)](_0x24882e(0xd5)+_0x419629,_0x24882e(0xde));const _0x42abfd=await getFlowDefinition(_0x36d3bd[_0x24882e(0xd9)],_0x2cfadc);let _0x2f1516;if(_0x419629){const _0x194604=flowDefinitionToConfig(_0x42abfd);await mkdir(dirname(_0x419629),{'recursive':!![]});try{await writeNormalizedFlowConfig(_0x419629,_0x194604['config'],{'overwrite':_0x36d3bd[_0x24882e(0xcd)](_0x24882e(0xc4))});}catch(_0x7d7efb){if(isAlreadyExistsError(_0x7d7efb))throw CliErrors[_0x24882e(0xd7)](_0x24882e(0xd5)+_0x419629,_0x24882e(0xde));throw _0x7d7efb;}_0x2f1516={'path':_0x419629,'warnings':_0x194604['warnings']};}return{'ok':!![],'data':{'flow':_0x42abfd,..._0x2f1516?{'output':_0x2f1516}:{}},'message':_0x2f1516?'Wrote\x20FlowConfig\x20for\x20'+(_0x42abfd['flowName']||_0x42abfd[_0x24882e(0xd0)]||_0x2cfadc)+'\x20to\x20'+_0x2f1516[_0x24882e(0xe2)]:_0x24882e(0xdb)+(_0x42abfd[_0x24882e(0xda)]||_0x42abfd['flowCode']||_0x2cfadc)};}};function a106_0x3090(_0x2c9694,_0x311483){_0x2c9694=_0x2c9694-0xc4;const _0x20d9f0=a106_0x20d9();let _0x3090b7=_0x20d9f0[_0x2c9694];return _0x3090b7;}async function fileExists(_0x28349d){try{return await stat(_0x28349d),!![];}catch(_0x157973){return!isNotFoundError(_0x157973);}}function isNotFoundError(_0xd74ec8){const _0x3782ca=a106_0x13aacf;return _0xd74ec8?.[_0x3782ca(0xe0)]===_0x3782ca(0xce);}function isAlreadyExistsError(_0x6981cb){const _0x15b56a=a106_0x13aacf;return _0x6981cb?.[_0x15b56a(0xe0)]==='EEXIST';}
@@ -0,0 +1,3 @@
1
+ import type { CommandDefinition } from "../../framework/types.js";
2
+ /** Approval-flow definitions plus read-only runtime assignee resources. */
3
+ export declare const flowDefinitions: CommandDefinition[];
@@ -0,0 +1 @@
1
+ (function(_0x65356f,_0x4818da){const _0x20b186=a107_0xfcbe,_0x3bf599=_0x65356f();while(!![]){try{const _0x35b975=-parseInt(_0x20b186(0xbf))/0x1+parseInt(_0x20b186(0xbb))/0x2+-parseInt(_0x20b186(0xbe))/0x3*(parseInt(_0x20b186(0xc1))/0x4)+parseInt(_0x20b186(0xba))/0x5+-parseInt(_0x20b186(0xb9))/0x6*(-parseInt(_0x20b186(0xbd))/0x7)+parseInt(_0x20b186(0xbc))/0x8+-parseInt(_0x20b186(0xc0))/0x9;if(_0x35b975===_0x4818da)break;else _0x3bf599['push'](_0x3bf599['shift']());}catch(_0x42044a){_0x3bf599['push'](_0x3bf599['shift']());}}}(a107_0x2a00,0xb6747));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';function a107_0x2a00(){const _0x3056d3=['3799380dREPkY','1694558PSFiaz','11620912kBUfou','4141459bWBfZW','78153AaNvTd','1213550NDvMHE','3491739LBRrhJ','200jaFlKd','6ibxebL'];a107_0x2a00=function(){return _0x3056d3;};return a107_0x2a00();}import{flowRuntimeRoleList}from'../../commands/flow/runtime-role-list.js';function a107_0xfcbe(_0x32fb64,_0x38d37c){_0x32fb64=_0x32fb64-0xb9;const _0x2a00fb=a107_0x2a00();let _0xfcbe7d=_0x2a00fb[_0x32fb64];return _0xfcbe7d;}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];
@@ -0,0 +1,2 @@
1
+ import type { CommandDefinition } from "../../framework/types.js";
2
+ export declare const flowList: CommandDefinition;
@@ -0,0 +1 @@
1
+ const a108_0x282b88=a108_0x5295;(function(_0x2b5739,_0x16d13a){const _0xee2ed6=a108_0x5295,_0x1aad8b=_0x2b5739();while(!![]){try{const _0x1086a7=-parseInt(_0xee2ed6(0x1a5))/0x1+parseInt(_0xee2ed6(0x19a))/0x2*(-parseInt(_0xee2ed6(0x1b5))/0x3)+-parseInt(_0xee2ed6(0x1a3))/0x4*(parseInt(_0xee2ed6(0x1a2))/0x5)+parseInt(_0xee2ed6(0x1a6))/0x6+parseInt(_0xee2ed6(0x1b1))/0x7+-parseInt(_0xee2ed6(0x1a1))/0x8*(parseInt(_0xee2ed6(0x195))/0x9)+parseInt(_0xee2ed6(0x1b9))/0xa;if(_0x1086a7===_0x16d13a)break;else _0x1aad8b['push'](_0x1aad8b['shift']());}catch(_0x453820){_0x1aad8b['push'](_0x1aad8b['shift']());}}}(a108_0x56ba,0x61e71));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{listFlowDefinitions}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a108_0x5295(_0x584fab,_0x157044){_0x584fab=_0x584fab-0x194;const _0x56ba4e=a108_0x56ba();let _0x529572=_0x56ba4e[_0x584fab];return _0x529572;}const FLOW_STATUSES=[a108_0x282b88(0x1b7),'published'];export const flowList={'service':a108_0x282b88(0x1b8),'command':'list','description':a108_0x282b88(0x197),'risk':a108_0x282b88(0x198),'flags':[APPCODE_FLAG_OPTIONAL,{'name':'flow-code','type':a108_0x282b88(0x19e),'description':a108_0x282b88(0x1af)},{'name':a108_0x282b88(0x1b4),'type':a108_0x282b88(0x19e),'description':a108_0x282b88(0x19c)},{'name':a108_0x282b88(0x1ae),'type':a108_0x282b88(0x19e),'description':a108_0x282b88(0x1b3),'enum':FLOW_STATUSES},{'name':a108_0x282b88(0x1a8),'type':a108_0x282b88(0x19e),'description':a108_0x282b88(0x1aa)},{'name':'flow-type','type':a108_0x282b88(0x19e),'description':'Filter\x20by\x20flow\x20type'},{'name':'page','type':'number','description':a108_0x282b88(0x19f),'default':0x1},{'name':a108_0x282b88(0x1a7),'type':a108_0x282b88(0x1a4),'description':a108_0x282b88(0x1a0),'default':0x14}],async 'validate'(_0x5d4bd3){const _0x5be4c4=a108_0x282b88,_0x44d766=_0x5d4bd3['num'](_0x5be4c4(0x19d),0x1),_0x10d3a5=_0x5d4bd3[_0x5be4c4(0x196)]('page-size',0x14);if(!Number[_0x5be4c4(0x1ac)](_0x44d766)||_0x44d766<0x1)throw CliErrors['validation'](_0x5be4c4(0x199));if(!Number[_0x5be4c4(0x1ac)](_0x10d3a5)||_0x10d3a5<0x1)throw CliErrors[_0x5be4c4(0x194)](_0x5be4c4(0x1b2));},async 'execute'(_0x139f61){const _0x471ce0=a108_0x282b88,{items:_0x138cfc,paging:_0x3995c0}=await listFlowDefinitions(_0x139f61[_0x471ce0(0x1b6)],{'flowCode':optionalString(_0x139f61['str'](_0x471ce0(0x1b0))),'flowName':optionalString(_0x139f61[_0x471ce0(0x19b)]('flow-name')),'flowStatus':optionalString(_0x139f61[_0x471ce0(0x19b)](_0x471ce0(0x1ae))),'datasetCode':optionalString(_0x139f61[_0x471ce0(0x19b)](_0x471ce0(0x1a8))),'flowType':optionalString(_0x139f61[_0x471ce0(0x19b)](_0x471ce0(0x1a9))),'pageNum':_0x139f61['num'](_0x471ce0(0x19d),0x1),'pageSize':_0x139f61[_0x471ce0(0x196)]('page-size',0x14)});return{'ok':!![],'data':{'appCode':_0x139f61[_0x471ce0(0x1b6)],'flows':_0x138cfc,'paging':_0x3995c0},'message':'Found\x20'+_0x138cfc[_0x471ce0(0x1ad)]+_0x471ce0(0x1ab)};}};function optionalString(_0x135c25){const _0x136318=_0x135c25['trim']();return _0x136318||undefined;}function a108_0x56ba(){const _0x40497f=['page-size','dataset-code','flow-type','Filter\x20by\x20dataset\x20code','\x20flow\x20definition(s)','isSafeInteger','length','flow-status','Filter\x20by\x20exact\x20server-generated\x20flow\x20code','flow-code','2079028SipXhW','--page-size\x20must\x20be\x20a\x20positive\x20integer.','Filter\x20by\x20flow\x20status','flow-name','837mLyWDp','appCode','draft','flow','11344850kTUXfY','validation','18ioZhjs','num','List\x20design-time\x20flow\x20definitions\x20for\x20the\x20current\x20app','read','--page\x20must\x20be\x20a\x20positive\x20integer.','1998ztUwXd','str','Filter\x20by\x20flow\x20name','page','string','Page\x20number\x20(1-based)','Page\x20size','1587304QdUAPb','495VrgZgB','1092pSKCvc','number','784974IpZHLY','2742408LfCdrh'];a108_0x56ba=function(){return _0x40497f;};return a108_0x56ba();}
@@ -0,0 +1,2 @@
1
+ import type { CommandDefinition } from "../../framework/types.js";
2
+ export declare const flowPublish: CommandDefinition;
@@ -0,0 +1 @@
1
+ function a109_0x4b49(_0x5855a8,_0x44e2a0){_0x5855a8=_0x5855a8-0x107;const _0x2aa191=a109_0x2aa1();let _0x4b493a=_0x2aa191[_0x5855a8];return _0x4b493a;}const a109_0xa0293b=a109_0x4b49;function a109_0x2aa1(){const _0x3d0b3a=['524054VqNWns','Publish\x20the\x20current\x20flow\x20definition\x20draft','4301766cqaiTM','1191930OUPCfo','24PtnboI','374835GFrilp','publish','3571504NDZbaN','high-risk-write','flowName','429610zfedbY','Published\x20flow\x20','flow','3819576OBoWKj','appCode'];a109_0x2aa1=function(){return _0x3d0b3a;};return a109_0x2aa1();}(function(_0x3d60f5,_0x201977){const _0x206cfe=a109_0x4b49,_0x53e072=_0x3d60f5();while(!![]){try{const _0x123a29=parseInt(_0x206cfe(0x111))/0x1+-parseInt(_0x206cfe(0x114))/0x2+parseInt(_0x206cfe(0x107))/0x3+parseInt(_0x206cfe(0x115))/0x4*(-parseInt(_0x206cfe(0x10c))/0x5)+parseInt(_0x206cfe(0x10f))/0x6+parseInt(_0x206cfe(0x113))/0x7+-parseInt(_0x206cfe(0x109))/0x8;if(_0x123a29===_0x201977)break;else _0x53e072['push'](_0x53e072['shift']());}catch(_0x148f2f){_0x53e072['push'](_0x53e072['shift']());}}}(a109_0x2aa1,0x538b6));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{publishFlowDefinition}from'../../core/api-client.js';import{FLOW_ID_FLAG,FLOW_PATHS,buildFlowIdDryRun,flowSelector,readFlowId}from'../../commands/flow/shared.js';export const flowPublish={'service':a109_0xa0293b(0x10e),'command':'publish','description':a109_0xa0293b(0x112),'risk':a109_0xa0293b(0x10a),'flags':[FLOW_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x116ba3){readFlowId(_0x116ba3);},async 'dryRun'(_0x1a732a){const _0x32b536=a109_0xa0293b,_0x31f1de=readFlowId(_0x1a732a);return buildFlowIdDryRun('publish',FLOW_PATHS[_0x32b536(0x108)],_0x1a732a[_0x32b536(0x110)],_0x31f1de,{'id':_0x31f1de,'flowStatus':'published'});},async 'execute'(_0x14108c){const _0x2261e2=a109_0xa0293b,_0x4c79d7=readFlowId(_0x14108c),_0x36417b=await publishFlowDefinition(_0x14108c[_0x2261e2(0x110)],_0x4c79d7);return{'ok':!![],'data':{'operation':_0x2261e2(0x108),'selector':flowSelector(_0x14108c['appCode'],_0x4c79d7,_0x36417b),'before':null,'after':_0x36417b,'dryRun':![],'backend':{'method':'POST','path':FLOW_PATHS[_0x2261e2(0x108)]},'warnings':[]},'message':_0x2261e2(0x10d)+(_0x36417b[_0x2261e2(0x10b)]||_0x36417b['flowCode']||_0x4c79d7)};}};
@@ -0,0 +1,40 @@
1
+ import type { ApprovalRuntimeRole, ApprovalRuntimeRoleMember, ApprovalRuntimeRoleUsers, ApprovalRuntimeUser } from "../../core/api-client.js";
2
+ import type { FlagDef, RuntimeContext } from "../../framework/types.js";
3
+ export declare const FLOW_RUNTIME_PAGE_FLAG: FlagDef;
4
+ export declare const FLOW_RUNTIME_PAGE_SIZE_FLAG: FlagDef;
5
+ export declare const FLOW_RUNTIME_ROLE_REF_FLAG: FlagDef;
6
+ export declare function readRuntimePagination(ctx: RuntimeContext): {
7
+ page: number;
8
+ pageSize: number;
9
+ };
10
+ export declare function paginateRuntimeItems<T>(items: T[], page: number, pageSize: number): {
11
+ items: T[];
12
+ paging: {
13
+ currentPage: number;
14
+ pageSize: number;
15
+ totalCount: number;
16
+ };
17
+ };
18
+ export declare function projectRuntimeRole(role: ApprovalRuntimeRole): {
19
+ id: number;
20
+ roleName: string | null;
21
+ roleType: string | null;
22
+ remark: string | null;
23
+ userCount: number;
24
+ permitCount: number;
25
+ };
26
+ export declare function projectRuntimeUser(user: ApprovalRuntimeUser): {
27
+ userId: string;
28
+ username: string | null;
29
+ nickname: string | null;
30
+ displayName: string | null;
31
+ email: string | null;
32
+ status: string | null;
33
+ } | null;
34
+ export declare function projectRuntimeRoleMember(user: ApprovalRuntimeRoleMember): {
35
+ userId: string;
36
+ username: string | null;
37
+ nickname: string | null;
38
+ } | null;
39
+ export declare function readRuntimeRoleRef(ctx: RuntimeContext): string;
40
+ export declare function resolveRuntimeRoleGroup(appCode: string, ref: string, groups: ApprovalRuntimeRoleUsers[]): ApprovalRuntimeRoleUsers;
@@ -0,0 +1 @@
1
+ const a110_0x487f99=a110_0x376c;(function(_0x284b86,_0x23815a){const _0x2e3b39=a110_0x376c,_0xd7707f=_0x284b86();while(!![]){try{const _0x1c2bc5=parseInt(_0x2e3b39(0x1a5))/0x1*(-parseInt(_0x2e3b39(0x1a0))/0x2)+parseInt(_0x2e3b39(0x1a4))/0x3+-parseInt(_0x2e3b39(0x19e))/0x4+-parseInt(_0x2e3b39(0x19c))/0x5+parseInt(_0x2e3b39(0x1aa))/0x6+-parseInt(_0x2e3b39(0x1af))/0x7*(-parseInt(_0x2e3b39(0x199))/0x8)+-parseInt(_0x2e3b39(0x19a))/0x9*(parseInt(_0x2e3b39(0x1a2))/0xa);if(_0x1c2bc5===_0x23815a)break;else _0xd7707f['push'](_0xd7707f['shift']());}catch(_0x4e6a40){_0xd7707f['push'](_0xd7707f['shift']());}}}(a110_0x53a9,0x25014));import{CliErrors}from'../../errors.js';export const FLOW_RUNTIME_PAGE_FLAG={'name':'page','type':a110_0x487f99(0x1b2),'description':a110_0x487f99(0x192),'default':0x1};function a110_0x376c(_0x5e9351,_0x37d2ff){_0x5e9351=_0x5e9351-0x18d;const _0x53a9a1=a110_0x53a9();let _0x376c89=_0x53a9a1[_0x5e9351];return _0x376c89;}function a110_0x53a9(){const _0x5b24cd=['roleName','869682uPioqw','remark','nickName','Page\x20size\x20(1-100)','roleType','47915CpgPtM','userName','Runtime\x20role\x20id\x20or\x20exact\x20role\x20name','number','map','userCount','string','page-size','--page\x20must\x20be\x20a\x20positive\x20integer.','isSafeInteger','page','Runtime\x20role\x20\x22','Page\x20index\x20(1-based)','email','test','username','permitCount','role','userId','240CYEnIs','9tiVidw','length','64440kpkODg','trim','223176RpIPLU','validation','1286rchFRH','Run\x20`flow\x20runtime-role-list`\x20to\x20see\x20runtime\x20roles.','1030300xbcplk','--page-size\x20must\x20be\x20an\x20integer\x20between\x201\x20and\x20100.','156228BQedgJ','123ycDVao','\x22\x20is\x20ambiguous\x20(ids:\x20','status','code'];a110_0x53a9=function(){return _0x5b24cd;};return a110_0x53a9();}export const FLOW_RUNTIME_PAGE_SIZE_FLAG={'name':a110_0x487f99(0x18d),'type':a110_0x487f99(0x1b2),'description':a110_0x487f99(0x1ad),'default':0x14};export const FLOW_RUNTIME_ROLE_REF_FLAG={'name':'role','type':a110_0x487f99(0x1b5),'required':!![],'description':a110_0x487f99(0x1b1)};export function readRuntimePagination(_0xa1a381){const _0x42037a=a110_0x487f99,_0x1d3f1c=_0xa1a381['num'](_0x42037a(0x190),0x1),_0x338ca2=_0xa1a381['num'](_0x42037a(0x18d),0x14);if(!Number['isSafeInteger'](_0x1d3f1c)||_0x1d3f1c<0x1)throw CliErrors[_0x42037a(0x19f)](_0x42037a(0x18e));if(!Number[_0x42037a(0x18f)](_0x338ca2)||_0x338ca2<0x1||_0x338ca2>0x64)throw CliErrors[_0x42037a(0x19f)](_0x42037a(0x1a3));return{'page':_0x1d3f1c,'pageSize':_0x338ca2};}export function paginateRuntimeItems(_0x2518c7,_0x3c3364,_0x420478){const _0x543c56=a110_0x487f99,_0x41069c=(_0x3c3364-0x1)*_0x420478;return{'items':_0x2518c7['slice'](_0x41069c,_0x41069c+_0x420478),'paging':{'currentPage':_0x3c3364,'pageSize':_0x420478,'totalCount':_0x2518c7[_0x543c56(0x19b)]}};}export function projectRuntimeRole(_0x182f83){const _0xc8bfc9=a110_0x487f99;return{'id':_0x182f83['id'],'roleName':_0x182f83['roleName']??null,'roleType':_0x182f83[_0xc8bfc9(0x1ae)]??null,'remark':_0x182f83[_0xc8bfc9(0x1ab)]??null,'userCount':_0x182f83[_0xc8bfc9(0x1b4)]??0x0,'permitCount':_0x182f83[_0xc8bfc9(0x196)]??0x0};}export function projectRuntimeUser(_0x3a6cef){const _0x25aedc=a110_0x487f99,_0x564120=normalizeRuntimeUserId(_0x3a6cef[_0x25aedc(0x1a8)]);if(!_0x564120)return null;return{'userId':_0x564120,'username':_0x3a6cef[_0x25aedc(0x1b0)]??null,'nickname':_0x3a6cef[_0x25aedc(0x1ac)]??null,'displayName':_0x3a6cef['displayName']??null,'email':_0x3a6cef[_0x25aedc(0x193)]??null,'status':_0x3a6cef[_0x25aedc(0x1a7)]??null};}export function projectRuntimeRoleMember(_0x2d6ba2){const _0x1ef2a0=a110_0x487f99,_0xd75818=normalizeRuntimeUserId(_0x2d6ba2[_0x1ef2a0(0x198)]);if(!_0xd75818)return null;return{'userId':_0xd75818,'username':_0x2d6ba2[_0x1ef2a0(0x195)]??null,'nickname':_0x2d6ba2['nickname']??null};}export function readRuntimeRoleRef(_0xae34e0){const _0xecf91f=a110_0x487f99,_0x1613c3=_0xae34e0['str'](_0xecf91f(0x197))[_0xecf91f(0x19d)]();if(!_0x1613c3)throw CliErrors['flagMissing'](_0xecf91f(0x197),'Pass\x20--role\x20<id|name>.');return _0x1613c3;}export function resolveRuntimeRoleGroup(_0x467b12,_0x27409c,_0x17a5ed){const _0x14ac5a=a110_0x487f99,_0x67c9f4=/^\d+$/[_0x14ac5a(0x194)](_0x27409c)?_0x17a5ed['filter'](_0x2b19a4=>_0x2b19a4['id']===Number(_0x27409c)):_0x17a5ed['filter'](_0x49b734=>_0x49b734[_0x14ac5a(0x1a9)]===_0x27409c);if(_0x67c9f4[_0x14ac5a(0x19b)]===0x0)throw CliErrors['validation'](_0x14ac5a(0x191)+_0x27409c+'\x22\x20not\x20found\x20in\x20app\x20'+_0x467b12+'.',_0x14ac5a(0x1a1));if(_0x67c9f4[_0x14ac5a(0x19b)]>0x1){const _0x1bd5c3=_0x67c9f4[_0x14ac5a(0x1b3)](_0x239693=>_0x239693['id'])['join'](',\x20');throw CliErrors['validation']('Runtime\x20role\x20name\x20\x22'+_0x27409c+_0x14ac5a(0x1a6)+_0x1bd5c3+').','Disambiguate\x20with\x20--role\x20<id>.');}return _0x67c9f4[0x0];}function normalizeRuntimeUserId(_0x2f8a73){const _0x384ab6=a110_0x487f99;if(typeof _0x2f8a73!==_0x384ab6(0x1b5)&&typeof _0x2f8a73!==_0x384ab6(0x1b2))return null;const _0x5691ea=String(_0x2f8a73)[_0x384ab6(0x19d)]();return _0x5691ea||null;}
@@ -0,0 +1,2 @@
1
+ import type { CommandDefinition } from "../../framework/types.js";
2
+ export declare const flowRuntimeRoleList: CommandDefinition;
@@ -0,0 +1 @@
1
+ function a111_0x3ca4(){const _0x3863f4=['10222jKfRlf','Found\x20','runtime','20690GKPhmF','keyword','252108znflDY','4xxnicp','563610FebTTq','List\x20runtime\x20app\x20roles\x20for\x20approval\x20assignee\x20selection','7AfsZPc','\x20runtime\x20role(s)','length','appCode','15vcAMNg','flow','311390PSpJfO','24WGEbqu','runtime-role-list','read','str','693077uZXvxP','371484lfWCez'];a111_0x3ca4=function(){return _0x3863f4;};return a111_0x3ca4();}const a111_0x72b662=a111_0x2093;(function(_0x5d270c,_0x57e775){const _0x427ad8=a111_0x2093,_0x275e4b=_0x5d270c();while(!![]){try{const _0x4b80af=parseInt(_0x427ad8(0x84))/0x1*(parseInt(_0x427ad8(0x8d))/0x2)+-parseInt(_0x427ad8(0x8c))/0x3+parseInt(_0x427ad8(0x7d))/0x4*(-parseInt(_0x427ad8(0x86))/0x5)+parseInt(_0x427ad8(0x7e))/0x6*(parseInt(_0x427ad8(0x80))/0x7)+-parseInt(_0x427ad8(0x87))/0x8*(-parseInt(_0x427ad8(0x92))/0x9)+-parseInt(_0x427ad8(0x90))/0xa+parseInt(_0x427ad8(0x8b))/0xb;if(_0x4b80af===_0x57e775)break;else _0x275e4b['push'](_0x275e4b['shift']());}catch(_0x3d6244){_0x275e4b['push'](_0x275e4b['shift']());}}}(a111_0x3ca4,0x1f9bc));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{FLOW_RUNTIME_PAGE_FLAG,FLOW_RUNTIME_PAGE_SIZE_FLAG,projectRuntimeRole,readRuntimePagination}from'../../commands/flow/runtime-resources-shared.js';function a111_0x2093(_0x59d25b,_0xb4b5){_0x59d25b=_0x59d25b-0x7d;const _0x3ca4b2=a111_0x3ca4();let _0x209359=_0x3ca4b2[_0x59d25b];return _0x209359;}import{listApprovalRuntimeRoles}from'../../core/api-client.js';export const flowRuntimeRoleList={'service':a111_0x72b662(0x85),'command':a111_0x72b662(0x88),'description':a111_0x72b662(0x7f),'risk':a111_0x72b662(0x89),'flags':[{'name':a111_0x72b662(0x91),'type':'string','description':'Optional\x20runtime\x20role-name\x20keyword'},FLOW_RUNTIME_PAGE_FLAG,FLOW_RUNTIME_PAGE_SIZE_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x340bf3){readRuntimePagination(_0x340bf3);},async 'execute'(_0x2cd9b9){const _0x518cfe=a111_0x72b662,{page:_0x4b90f8,pageSize:_0x3b1e4e}=readRuntimePagination(_0x2cd9b9),_0x5a93a4=_0x2cd9b9[_0x518cfe(0x8a)](_0x518cfe(0x91))['trim'](),{items:_0x25d671,paging:_0x281fa9}=await listApprovalRuntimeRoles(_0x2cd9b9[_0x518cfe(0x83)],{..._0x5a93a4?{'roleName':_0x5a93a4}:{},'currentPage':_0x4b90f8,'pageSize':_0x3b1e4e}),_0x22b037=_0x25d671['map'](projectRuntimeRole);return{'ok':!![],'data':{'appCode':_0x2cd9b9[_0x518cfe(0x83)],'scope':_0x518cfe(0x8f),..._0x5a93a4?{'keyword':_0x5a93a4}:{},'roles':_0x22b037,'paging':_0x281fa9},'message':_0x518cfe(0x8e)+_0x22b037[_0x518cfe(0x82)]+_0x518cfe(0x81)};}};
@@ -0,0 +1,2 @@
1
+ import type { CommandDefinition } from "../../framework/types.js";
2
+ export declare const flowRuntimeRoleUserList: CommandDefinition;
@@ -0,0 +1 @@
1
+ const a112_0xcf8f6b=a112_0x3860;(function(_0x71eb9c,_0x3312eb){const _0x4df28e=a112_0x3860,_0x40787e=_0x71eb9c();while(!![]){try{const _0x8efede=-parseInt(_0x4df28e(0xa3))/0x1*(parseInt(_0x4df28e(0x96))/0x2)+-parseInt(_0x4df28e(0x9e))/0x3*(-parseInt(_0x4df28e(0x9a))/0x4)+parseInt(_0x4df28e(0xa6))/0x5+-parseInt(_0x4df28e(0x9d))/0x6+parseInt(_0x4df28e(0x9c))/0x7*(parseInt(_0x4df28e(0x93))/0x8)+parseInt(_0x4df28e(0x98))/0x9+parseInt(_0x4df28e(0x9f))/0xa*(-parseInt(_0x4df28e(0x95))/0xb);if(_0x8efede===_0x3312eb)break;else _0x40787e['push'](_0x40787e['shift']());}catch(_0x40ac0e){_0x40787e['push'](_0x40787e['shift']());}}}(a112_0x985b,0x278d4));function a112_0x985b(){const _0x708d5d=['2drpXnM','items','2581317NKsGGF','map','16OZKjFq','runtime','7EHaxSZ','19344aXaOzq','130278kQjQZp','230cHpPZG','runtime-role-user-list','appCode','length','84062XiVwHo','flow','Found\x20','404610iGghvY','paging','filter','userList','\x20runtime\x20member(s)\x20in\x20role\x20','560072yZzIpL','roleName','173206mvboIm'];a112_0x985b=function(){return _0x708d5d;};return a112_0x985b();}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{FLOW_RUNTIME_PAGE_FLAG,FLOW_RUNTIME_PAGE_SIZE_FLAG,FLOW_RUNTIME_ROLE_REF_FLAG,paginateRuntimeItems,projectRuntimeRoleMember,readRuntimePagination,readRuntimeRoleRef,resolveRuntimeRoleGroup}from'../../commands/flow/runtime-resources-shared.js';import{listApprovalRuntimeRoleUsers}from'../../core/api-client.js';function a112_0x3860(_0x21573a,_0x312cb8){_0x21573a=_0x21573a-0x8f;const _0x985bfa=a112_0x985b();let _0x386033=_0x985bfa[_0x21573a];return _0x386033;}export const flowRuntimeRoleUserList={'service':a112_0xcf8f6b(0xa4),'command':a112_0xcf8f6b(0xa0),'description':'List\x20members\x20of\x20one\x20runtime\x20app\x20role\x20for\x20approval\x20verification','risk':'read','flags':[FLOW_RUNTIME_ROLE_REF_FLAG,FLOW_RUNTIME_PAGE_FLAG,FLOW_RUNTIME_PAGE_SIZE_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x13bec8){readRuntimeRoleRef(_0x13bec8),readRuntimePagination(_0x13bec8);},async 'execute'(_0x1f3fc2){const _0x532427=a112_0xcf8f6b,_0x4a68c4=resolveRuntimeRoleGroup(_0x1f3fc2[_0x532427(0xa1)],readRuntimeRoleRef(_0x1f3fc2),await listApprovalRuntimeRoleUsers(_0x1f3fc2['appCode'])),_0x3c6eb9=(_0x4a68c4[_0x532427(0x91)]??[])[_0x532427(0x99)](projectRuntimeRoleMember)[_0x532427(0x90)](_0x3a4cf7=>_0x3a4cf7!==null),{page:_0x3e6285,pageSize:_0x2df532}=readRuntimePagination(_0x1f3fc2),_0x5683ee=paginateRuntimeItems(_0x3c6eb9,_0x3e6285,_0x2df532);return{'ok':!![],'data':{'appCode':_0x1f3fc2[_0x532427(0xa1)],'scope':_0x532427(0x9b),'role':{'id':_0x4a68c4['id'],'roleName':_0x4a68c4[_0x532427(0x94)]??null,'roleType':_0x4a68c4['roleType']??null},'users':_0x5683ee[_0x532427(0x97)],'paging':_0x5683ee[_0x532427(0x8f)]},'message':_0x532427(0xa5)+_0x3c6eb9[_0x532427(0xa2)]+_0x532427(0x92)+(_0x4a68c4[_0x532427(0x94)]??_0x4a68c4['id'])};}};
@@ -0,0 +1,2 @@
1
+ import type { CommandDefinition } from "../../framework/types.js";
2
+ export declare const flowRuntimeUserSearch: CommandDefinition;
@@ -0,0 +1 @@
1
+ const a113_0x3ab77a=a113_0x58f8;(function(_0x2deb90,_0x26e76f){const _0x4e2bbc=a113_0x58f8,_0x2a2032=_0x2deb90();while(!![]){try{const _0x57bc28=-parseInt(_0x4e2bbc(0x1fd))/0x1+parseInt(_0x4e2bbc(0x1f3))/0x2*(-parseInt(_0x4e2bbc(0x207))/0x3)+parseInt(_0x4e2bbc(0x1f8))/0x4*(-parseInt(_0x4e2bbc(0x1f9))/0x5)+parseInt(_0x4e2bbc(0x1fe))/0x6*(parseInt(_0x4e2bbc(0x1ff))/0x7)+-parseInt(_0x4e2bbc(0x206))/0x8+parseInt(_0x4e2bbc(0x209))/0x9+parseInt(_0x4e2bbc(0x1f2))/0xa*(parseInt(_0x4e2bbc(0x1ed))/0xb);if(_0x57bc28===_0x26e76f)break;else _0x2a2032['push'](_0x2a2032['shift']());}catch(_0x25764d){_0x2a2032['push'](_0x2a2032['shift']());}}}(a113_0x2a99,0x9a1eb));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a113_0x2a99(){const _0xfafd76=['Found\x20','5150976ZJXlmT','1713330OgvoXd','map','3594645EQvTNd','paging','userName','1936UhDfbs','runtime','string','filter','read','234820QWBKLk','4YaOUBG','flagMissing','includes','length','runtime-user-search','1608cGXqfI','13060yULmxD','items','toLowerCase','email','1077451KfzJig','30eQnPPa','17647AEmJyX','str','keyword','nickName','trim','appCode'];a113_0x2a99=function(){return _0xfafd76;};return a113_0x2a99();}import{FLOW_RUNTIME_PAGE_FLAG,FLOW_RUNTIME_PAGE_SIZE_FLAG,paginateRuntimeItems,projectRuntimeUser,readRuntimePagination}from'../../commands/flow/runtime-resources-shared.js';import{listApprovalRuntimeUsers}from'../../core/api-client.js';function a113_0x58f8(_0x4b33db,_0x144725){_0x4b33db=_0x4b33db-0x1ed;const _0x2a99a3=a113_0x2a99();let _0x58f896=_0x2a99a3[_0x4b33db];return _0x58f896;}import{CliErrors}from'../../errors.js';export const flowRuntimeUserSearch={'service':'flow','command':a113_0x3ab77a(0x1f7),'description':'Search\x20runtime\x20app\x20users\x20for\x20approval\x20assignee\x20selection','risk':a113_0x3ab77a(0x1f1),'flags':[{'name':a113_0x3ab77a(0x201),'type':a113_0x3ab77a(0x1ef),'required':!![],'description':'User\x20id,\x20username,\x20nickname,\x20display\x20name,\x20or\x20email\x20keyword'},FLOW_RUNTIME_PAGE_FLAG,FLOW_RUNTIME_PAGE_SIZE_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x477b8c){const _0x537385=a113_0x3ab77a;if(!_0x477b8c[_0x537385(0x200)](_0x537385(0x201))[_0x537385(0x203)]())throw CliErrors[_0x537385(0x1f4)]('keyword','Pass\x20--keyword\x20<text>.');readRuntimePagination(_0x477b8c);},async 'execute'(_0x3d3ef2){const _0x54c835=a113_0x3ab77a,_0x49bd21=_0x3d3ef2[_0x54c835(0x200)](_0x54c835(0x201))['trim'](),_0x3dcf4f=_0x49bd21['toLowerCase'](),_0x55006d=(await listApprovalRuntimeUsers(_0x3d3ef2[_0x54c835(0x204)]))[_0x54c835(0x1f0)](_0x45f9dd=>[_0x45f9dd['code'],_0x45f9dd[_0x54c835(0x20b)],_0x45f9dd[_0x54c835(0x202)],_0x45f9dd['displayName'],_0x45f9dd[_0x54c835(0x1fc)]]['some'](_0x43ff15=>_0x43ff15!==null&&_0x43ff15!==undefined&&String(_0x43ff15)[_0x54c835(0x1fb)]()[_0x54c835(0x1f5)](_0x3dcf4f)))[_0x54c835(0x208)](projectRuntimeUser)[_0x54c835(0x1f0)](_0xd9a96e=>_0xd9a96e!==null),{page:_0x7f31d0,pageSize:_0x555c5e}=readRuntimePagination(_0x3d3ef2),_0x2344f8=paginateRuntimeItems(_0x55006d,_0x7f31d0,_0x555c5e);return{'ok':!![],'data':{'appCode':_0x3d3ef2[_0x54c835(0x204)],'scope':_0x54c835(0x1ee),'keyword':_0x49bd21,'users':_0x2344f8[_0x54c835(0x1fa)],'paging':_0x2344f8[_0x54c835(0x20a)]},'message':_0x54c835(0x205)+_0x55006d[_0x54c835(0x1f6)]+'\x20runtime\x20app\x20user(s)\x20matching\x20\x22'+_0x49bd21+'\x22'};}};
@@ -0,0 +1,41 @@
1
+ import type { FlowDefinition, FlowDefinitionWriteRequest } from "../../core/api-client.js";
2
+ import { type FlowConfigWarning, type NormalizedFlowConfig } from "../../core/flow-config.js";
3
+ import type { FlagDef, RuntimeContext } from "../../framework/types.js";
4
+ export declare const FLOW_PATHS: {
5
+ readonly list: "/smartapi/flow/page";
6
+ readonly detail: "/smartapi/flow/detail";
7
+ readonly create: "/smartapi/flow/create";
8
+ readonly update: "/smartapi/flow/update";
9
+ readonly publish: "/smartapi/flow/publish";
10
+ };
11
+ export declare const FLOW_ID_FLAG: FlagDef;
12
+ export declare const FLOW_FILE_FLAG: FlagDef;
13
+ export interface PreparedFlowWrite {
14
+ request: FlowDefinitionWriteRequest;
15
+ warnings: FlowConfigWarning[];
16
+ }
17
+ /** Project a remote definition into the portable local FlowConfig contract. */
18
+ export declare function flowDefinitionToConfig(flow: FlowDefinition): NormalizedFlowConfig;
19
+ export declare function readFlowId(ctx: RuntimeContext): number;
20
+ export declare function readFlowFilePath(ctx: RuntimeContext): string;
21
+ /** Read, normalize, validate, and map a local manifest to FlowDefRequest. */
22
+ export declare function prepareFlowWrite(filePath: string, appCode: string, id?: number): Promise<PreparedFlowWrite>;
23
+ /** Confirm a draft create/update with a concise, non-sensitive target summary. */
24
+ export declare function confirmFlowWrite(ctx: RuntimeContext, operation: "create" | "update", request: FlowDefinitionWriteRequest): Promise<void>;
25
+ export declare function flowSelector(appCode: string, id?: number, flow?: FlowDefinition): Record<string, unknown>;
26
+ export declare function buildFlowIdDryRun(operation: "publish", path: string, appCode: string, id: number, after: Record<string, unknown>): import("@lovrabet/cli-framework").DryRunResult & {
27
+ operation: "publish";
28
+ selector: Record<string, unknown>;
29
+ before: null;
30
+ after: Record<string, unknown>;
31
+ request: {
32
+ id: number;
33
+ appCode: string;
34
+ };
35
+ dryRun: boolean;
36
+ backend: {
37
+ method: "POST";
38
+ path: string;
39
+ };
40
+ warnings: string[];
41
+ };
@@ -0,0 +1 @@
1
+ const a114_0x300241=a114_0x303b;(function(_0x23f5dd,_0x4e3aba){const _0x549f50=a114_0x303b,_0x4085f5=_0x23f5dd();while(!![]){try{const _0x2b9aa2=parseInt(_0x549f50(0x132))/0x1+-parseInt(_0x549f50(0x13d))/0x2*(parseInt(_0x549f50(0x136))/0x3)+-parseInt(_0x549f50(0x153))/0x4*(-parseInt(_0x549f50(0x15a))/0x5)+-parseInt(_0x549f50(0x12f))/0x6*(parseInt(_0x549f50(0x15d))/0x7)+-parseInt(_0x549f50(0x13a))/0x8+parseInt(_0x549f50(0x129))/0x9+-parseInt(_0x549f50(0x122))/0xa*(parseInt(_0x549f50(0x15b))/0xb);if(_0x2b9aa2===_0x4e3aba)break;else _0x4085f5['push'](_0x4085f5['shift']());}catch(_0x205292){_0x4085f5['push'](_0x4085f5['shift']());}}}(a114_0x1de6,0xa5112));import{asDryRunResult}from'../../commands/common/dry-run.js';import{readFlowConfigFile,validateFlowConfig}from'../../core/flow-config.js';import{CliErrors}from'../../errors.js';import{requireConfirmationPrompt}from'@lovrabet/cli-framework';export const FLOW_PATHS={'list':a114_0x300241(0x13b),'detail':a114_0x300241(0x14d),'create':a114_0x300241(0x140),'update':a114_0x300241(0x14f),'publish':a114_0x300241(0x12a)};export const FLOW_ID_FLAG={'name':'id','type':'number','required':!![],'description':'Flow\x20definition\x20id\x20(from\x20`flow\x20list`\x20or\x20`flow\x20create`)'};function a114_0x1de6(){const _0x998c1=['path','flowDesc','108UnPLwf','isSafeInteger','number','839296DGNvVC','Run\x20`rabetbase\x20flow\x20validate\x20--file\x20<path>`\x20for\x20details.','isArray','errors','98727vELjwy','join','INDEPENDENT_FLOW','validation','4228240eKaSIq','/smartapi/flow/page','\x20\x20flowId:\x20','22hYyUva','--id\x20must\x20be\x20a\x20positive\x20integer.','Continue?\x20[y/N]\x20','/smartapi/flow/create','File:\x20','pageId','valid','flowJson','datasetCode','The\x20detail\x20response\x20does\x20not\x20contain\x20a\x20supported\x20flowType.','file','Path\x20to\x20the\x20local\x20FlowConfig\x20JSON\x20file','Unable\x20to\x20read\x20FlowConfig:\x20','\x20\x20flowName:\x20','flowName','FlowConfig\x20validation\x20failed\x20for\x20','/smartapi/flow/detail','Cannot\x20export\x20an\x20invalid\x20flow\x20definition.','/smartapi/flow/update','nonInteractive','warnings','The\x20detail\x20response\x20does\x20not\x20contain\x20flowName.','196bLeCDO','message','str','cancelled','trim','object','apiError','117010rZyFvJ','286vRVagE','appCode','57813rYAaAd','normalized','Approval\x20flow\x20','num','381890xfRYNZ','\x20\x20datasetCode:\x20','map','\x20\x20flowType:\x20','bool','string','POST','6500025IoQrVB','/smartapi/flow/publish','flowCode','flowType'];a114_0x1de6=function(){return _0x998c1;};return a114_0x1de6();}export const FLOW_FILE_FLAG={'name':a114_0x300241(0x147),'type':'string','required':!![],'description':a114_0x300241(0x148)};export function flowDefinitionToConfig(_0x438411){const _0x21cdd2=a114_0x300241;if(typeof _0x438411[_0x21cdd2(0x14b)]!==_0x21cdd2(0x127)||_0x438411['flowName'][_0x21cdd2(0x157)]()==='')throw CliErrors[_0x21cdd2(0x159)](_0x21cdd2(0x14e),_0x21cdd2(0x152));if(typeof _0x438411[_0x21cdd2(0x144)]!==_0x21cdd2(0x158)||_0x438411[_0x21cdd2(0x144)]===null||Array[_0x21cdd2(0x134)](_0x438411[_0x21cdd2(0x144)]))throw CliErrors[_0x21cdd2(0x159)](_0x21cdd2(0x14e),'The\x20detail\x20response\x20does\x20not\x20contain\x20an\x20object\x20flowJson.');if(_0x438411[_0x21cdd2(0x12c)]!=='FORM_FLOW'&&_0x438411[_0x21cdd2(0x12c)]!==_0x21cdd2(0x138))throw CliErrors[_0x21cdd2(0x159)](_0x21cdd2(0x14e),_0x21cdd2(0x146));const _0x108880={'flowName':_0x438411[_0x21cdd2(0x14b)],...typeof _0x438411['flowDesc']===_0x21cdd2(0x127)?{'flowDesc':_0x438411[_0x21cdd2(0x12e)]}:{},'flowType':_0x438411[_0x21cdd2(0x12c)],...typeof _0x438411['datasetCode']===_0x21cdd2(0x127)&&_0x438411[_0x21cdd2(0x145)][_0x21cdd2(0x157)]()?{'datasetCode':_0x438411['datasetCode']}:{},...typeof _0x438411[_0x21cdd2(0x142)]===_0x21cdd2(0x131)?{'pageId':_0x438411[_0x21cdd2(0x142)]}:{},'flowJson':_0x438411[_0x21cdd2(0x144)]},_0x3a9f38=validateFlowConfig(_0x108880);if(!_0x3a9f38[_0x21cdd2(0x143)]){const _0x54f696=_0x3a9f38[_0x21cdd2(0x135)][_0x21cdd2(0x124)](_0x4e5742=>_0x4e5742['path']+':\x20'+_0x4e5742[_0x21cdd2(0x154)])[_0x21cdd2(0x137)](';\x20');throw CliErrors['validation']('Cannot\x20export\x20this\x20flow\x20into\x20the\x20current\x20portable\x20FlowConfig\x20contract.',_0x54f696);}return{'config':_0x3a9f38[_0x21cdd2(0x15e)],'warnings':_0x3a9f38[_0x21cdd2(0x151)],'removedPaths':_0x3a9f38['warnings'][_0x21cdd2(0x124)](_0x423197=>_0x423197[_0x21cdd2(0x12d)])};}function a114_0x303b(_0x1612be,_0x2b486d){_0x1612be=_0x1612be-0x120;const _0x1de646=a114_0x1de6();let _0x303bf9=_0x1de646[_0x1612be];return _0x303bf9;}export function readFlowId(_0x4dd610){const _0x2ab35b=a114_0x300241,_0xf90dd0=_0x4dd610[_0x2ab35b(0x121)]('id');if(!Number[_0x2ab35b(0x130)](_0xf90dd0)||_0xf90dd0<=0x0)throw CliErrors[_0x2ab35b(0x139)](_0x2ab35b(0x13e));return _0xf90dd0;}export function readFlowFilePath(_0x3222d3){const _0x471400=a114_0x300241,_0x4f414c=_0x3222d3[_0x471400(0x155)](_0x471400(0x147))[_0x471400(0x157)]();if(!_0x4f414c)throw CliErrors['flagMissing'](_0x471400(0x147),'Pass\x20--file\x20<path>.');return _0x4f414c;}export async function prepareFlowWrite(_0x547089,_0x3fb631,_0x2534f5){const _0x57e771=a114_0x300241;let _0x5aeb37;try{_0x5aeb37=await readFlowConfigFile(_0x547089);}catch(_0xb6068f){const _0x47aa41=_0xb6068f instanceof Error?_0xb6068f['message']:String(_0xb6068f);throw CliErrors[_0x57e771(0x139)](_0x57e771(0x149)+_0x47aa41,_0x57e771(0x141)+_0x547089);}const _0x11185b=validateFlowConfig(_0x5aeb37);if(!_0x11185b[_0x57e771(0x143)]){const _0x3f079f=_0x11185b[_0x57e771(0x135)][_0x57e771(0x124)](_0x2cc190=>_0x2cc190[_0x57e771(0x12d)]+':\x20'+_0x2cc190[_0x57e771(0x154)])[_0x57e771(0x137)](';\x20');throw CliErrors[_0x57e771(0x139)](_0x57e771(0x14c)+_0x547089+'.',_0x3f079f||_0x57e771(0x133));}const _0x271853=_0x11185b[_0x57e771(0x15e)],_0x30af7d={..._0x2534f5!==undefined?{'id':_0x2534f5}:{},'flowName':_0x271853[_0x57e771(0x14b)],..._0x271853[_0x57e771(0x12e)]!==undefined?{'flowDesc':_0x271853[_0x57e771(0x12e)]}:{},'flowType':_0x271853[_0x57e771(0x12c)],'appCode':_0x3fb631,..._0x271853[_0x57e771(0x145)]!==undefined?{'datasetCode':_0x271853[_0x57e771(0x145)]}:{},..._0x271853[_0x57e771(0x142)]!==undefined?{'pageId':_0x271853['pageId']}:{},'flowJson':_0x271853[_0x57e771(0x144)]};return{'request':_0x30af7d,'warnings':_0x11185b['warnings']};}export async function confirmFlowWrite(_0x165018,_0x43b480,_0x543d85){const _0x514e16=a114_0x300241;if(_0x165018[_0x514e16(0x150)]||_0x165018[_0x514e16(0x126)]('yes'))return;await requireConfirmationPrompt({'lines':[_0x514e16(0x120)+_0x43b480+':','\x20\x20appCode:\x20'+_0x165018[_0x514e16(0x15c)],..._0x543d85['id']!==undefined?[_0x514e16(0x13c)+_0x543d85['id']]:[],_0x514e16(0x14a)+_0x543d85[_0x514e16(0x14b)],_0x514e16(0x125)+_0x543d85[_0x514e16(0x12c)],..._0x543d85['datasetCode']?[_0x514e16(0x123)+_0x543d85[_0x514e16(0x145)]]:[],_0x514e16(0x13f)],'createCancelledError':_0x1aeb0d=>CliErrors[_0x514e16(0x156)](_0x1aeb0d)});}export function flowSelector(_0x57a562,_0xe9dad7,_0x459441){const _0xd21a31=a114_0x300241;return{'appCode':_0x57a562,..._0xe9dad7!==undefined?{'flowId':_0xe9dad7}:{},..._0x459441?.[_0xd21a31(0x12b)]?{'flowCode':_0x459441[_0xd21a31(0x12b)]}:{},..._0x459441?.[_0xd21a31(0x14b)]?{'flowName':_0x459441[_0xd21a31(0x14b)]}:{}};}export function buildFlowIdDryRun(_0x170aa9,_0x4f8355,_0x4e2b6,_0x11cc65,_0x2236d6){const _0x1351b0=a114_0x300241,_0x758675={'id':_0x11cc65,'appCode':_0x4e2b6};return asDryRunResult({'operation':_0x170aa9,'selector':flowSelector(_0x4e2b6,_0x11cc65),'before':null,'after':_0x2236d6,'request':_0x758675,'dryRun':!![],'backend':{'method':_0x1351b0(0x128),'path':_0x4f8355},'warnings':[]},{'method':_0x1351b0(0x128),'url':_0x4f8355});}
@@ -0,0 +1,2 @@
1
+ import type { CommandDefinition } from "../../framework/types.js";
2
+ export declare const flowUpdate: CommandDefinition;
@@ -0,0 +1 @@
1
+ const a115_0x2daf80=a115_0x2ebb;(function(_0x294619,_0x428c40){const _0x467b5a=a115_0x2ebb,_0x43cf81=_0x294619();while(!![]){try{const _0x2a84bb=-parseInt(_0x467b5a(0x18b))/0x1+-parseInt(_0x467b5a(0x18f))/0x2+-parseInt(_0x467b5a(0x194))/0x3+parseInt(_0x467b5a(0x18e))/0x4*(-parseInt(_0x467b5a(0x187))/0x5)+-parseInt(_0x467b5a(0x189))/0x6+parseInt(_0x467b5a(0x190))/0x7*(-parseInt(_0x467b5a(0x185))/0x8)+parseInt(_0x467b5a(0x186))/0x9;if(_0x2a84bb===_0x428c40)break;else _0x43cf81['push'](_0x43cf81['shift']());}catch(_0x229488){_0x43cf81['push'](_0x43cf81['shift']());}}}(a115_0xf6bf,0x3d2bd));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a115_0x2ebb(_0x31ccb0,_0xe115af){_0x31ccb0=_0x31ccb0-0x183;const _0xf6bff2=a115_0xf6bf();let _0x2ebb37=_0xf6bff2[_0x31ccb0];return _0x2ebb37;}function a115_0xf6bf(){const _0x19f26=['302664mkPOIT','542174kZMQWU','42XxfBoK','write','update','flowName','528489uKDHVo','flowCode','Update\x20a\x20flow\x20definition\x20draft\x20from\x20a\x20local\x20FlowConfig\x20file','96168yuqmcn','15675894FozEFa','20ytRnZw','POST','2188920boCWMW','flow','304349hGPTxY','Updated\x20flow\x20','appCode'];a115_0xf6bf=function(){return _0x19f26;};return a115_0xf6bf();}import{asDryRunResult}from'../../commands/common/dry-run.js';import{updateFlowDefinition}from'../../core/api-client.js';import{FLOW_FILE_FLAG,FLOW_ID_FLAG,FLOW_PATHS,confirmFlowWrite,flowSelector,prepareFlowWrite,readFlowFilePath,readFlowId}from'../../commands/flow/shared.js';export const flowUpdate={'service':a115_0x2daf80(0x18a),'command':a115_0x2daf80(0x192),'description':a115_0x2daf80(0x184),'risk':a115_0x2daf80(0x191),'flags':[FLOW_ID_FLAG,FLOW_FILE_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x32bf3a){readFlowId(_0x32bf3a),readFlowFilePath(_0x32bf3a);},async 'dryRun'(_0x2ce0bf){const _0x26bb0b=a115_0x2daf80,_0x7b3e24=readFlowId(_0x2ce0bf),{request:_0x597fe9,warnings:_0x573321}=await prepareFlowWrite(readFlowFilePath(_0x2ce0bf),_0x2ce0bf[_0x26bb0b(0x18d)],_0x7b3e24);return asDryRunResult({'operation':'update','selector':flowSelector(_0x2ce0bf[_0x26bb0b(0x18d)],_0x7b3e24),'before':null,'after':_0x597fe9,'request':_0x597fe9,'dryRun':!![],'backend':{'method':_0x26bb0b(0x188),'path':FLOW_PATHS['update']},'warnings':_0x573321},{'method':_0x26bb0b(0x188),'url':FLOW_PATHS['update']});},async 'execute'(_0x9a6639){const _0x57436a=a115_0x2daf80,_0x337d87=readFlowId(_0x9a6639),{request:_0x2694a4,warnings:_0x194c07}=await prepareFlowWrite(readFlowFilePath(_0x9a6639),_0x9a6639[_0x57436a(0x18d)],_0x337d87);await confirmFlowWrite(_0x9a6639,_0x57436a(0x192),_0x2694a4);const _0x431597=await updateFlowDefinition({..._0x2694a4,'id':_0x337d87});return{'ok':!![],'data':{'operation':'update','selector':flowSelector(_0x9a6639[_0x57436a(0x18d)],_0x337d87,_0x431597),'before':null,'after':_0x431597,'dryRun':![],'backend':{'method':_0x57436a(0x188),'path':FLOW_PATHS['update']},'warnings':_0x194c07},'message':_0x57436a(0x18c)+(_0x431597[_0x57436a(0x193)]||_0x431597[_0x57436a(0x183)]||_0x337d87)};}};
@@ -0,0 +1,3 @@
1
+ import type { CommandDefinition } from "../../framework/types.js";
2
+ /** Validate and optionally atomically normalize a local approval-flow file. */
3
+ export declare const flowValidate: CommandDefinition;
@@ -0,0 +1 @@
1
+ function a116_0x13c5(){const _0x1089ae=['errors','boolean','120OsVnwu','FlowConfig\x20is\x20valid.','warnings','FlowConfig\x20validation\x20failed.','FlowConfig\x20is\x20valid\x20and\x20was\x20normalized\x20in\x20place.','valid','Validate\x20and\x20normalize\x20a\x20local\x20flow\x20configuration','write-normalized','file','759878upwySd','flagMissing','string','262096rPpzgR','2xLqFXP','3vjRniy','message','65JIZMhu','213214ayDexo','893028oaLUik','trim','Atomically\x20replace\x20the\x20file\x20with\x20its\x20normalized\x20form','20HwAZqa','normalized','15FLjrEZ','46026ZRPrbA','none','flow','2090297NoDFmj','748482JSfvbm','Path\x20to\x20the\x20local\x20FlowConfig\x20JSON\x20file','str'];a116_0x13c5=function(){return _0x1089ae;};return a116_0x13c5();}const a116_0x22c8ce=a116_0x4613;(function(_0x2e8950,_0x50e080){const _0x4fb49b=a116_0x4613,_0xa2030a=_0x2e8950();while(!![]){try{const _0x5a7b1d=-parseInt(_0x4fb49b(0x1e0))/0x1*(parseInt(_0x4fb49b(0x1e4))/0x2)+parseInt(_0x4fb49b(0x1e1))/0x3*(parseInt(_0x4fb49b(0x1df))/0x4)+parseInt(_0x4fb49b(0x1c9))/0x5*(parseInt(_0x4fb49b(0x1ce))/0x6)+-parseInt(_0x4fb49b(0x1dc))/0x7+-parseInt(_0x4fb49b(0x1d3))/0x8*(-parseInt(_0x4fb49b(0x1ca))/0x9)+parseInt(_0x4fb49b(0x1c7))/0xa*(parseInt(_0x4fb49b(0x1cd))/0xb)+-parseInt(_0x4fb49b(0x1e5))/0xc*(parseInt(_0x4fb49b(0x1e3))/0xd);if(_0x5a7b1d===_0x50e080)break;else _0xa2030a['push'](_0xa2030a['shift']());}catch(_0x251992){_0xa2030a['push'](_0xa2030a['shift']());}}}(a116_0x13c5,0x317aa));function a116_0x4613(_0x5e4b94,_0xd6b09f){_0x5e4b94=_0x5e4b94-0x1c7;const _0x13c566=a116_0x13c5();let _0x46131b=_0x13c566[_0x5e4b94];return _0x46131b;}import{CliErrors}from'../../errors.js';import{readFlowConfigFile,validateFlowConfig,writeNormalizedFlowConfig}from'../../core/flow-config.js';export const flowValidate={'service':a116_0x22c8ce(0x1cc),'command':'validate','description':a116_0x22c8ce(0x1d9),'risk':'read','auth':a116_0x22c8ce(0x1cb),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a116_0x22c8ce(0x1db),'type':a116_0x22c8ce(0x1de),'required':!![],'description':a116_0x22c8ce(0x1cf)},{'name':a116_0x22c8ce(0x1da),'type':a116_0x22c8ce(0x1d2),'description':a116_0x22c8ce(0x1e7)}],async 'execute'(_0x3da0ca){const _0x3a924a=a116_0x22c8ce,_0x252dde=_0x3da0ca[_0x3a924a(0x1d0)](_0x3a924a(0x1db))[_0x3a924a(0x1e6)]();if(!_0x252dde)throw CliErrors[_0x3a924a(0x1dd)](_0x3a924a(0x1db),'Pass\x20--file\x20<path>.');let _0x9d8870;try{_0x9d8870=await readFlowConfigFile(_0x252dde);}catch(_0x90266b){const _0x3de518=_0x90266b instanceof Error?_0x90266b[_0x3a924a(0x1e2)]:String(_0x90266b);throw CliErrors['validation']('Unable\x20to\x20read\x20FlowConfig:\x20'+_0x3de518);}const _0x528818=validateFlowConfig(_0x9d8870),_0x7e9d6a=_0x3da0ca['bool'](_0x3a924a(0x1da));let _0x10a0a8=![];return _0x7e9d6a&&_0x528818[_0x3a924a(0x1d8)]&&(await writeNormalizedFlowConfig(_0x252dde,_0x528818['normalized']),_0x10a0a8=!![]),{'ok':_0x528818['valid'],'data':{'valid':_0x528818[_0x3a924a(0x1d8)],'errors':_0x528818[_0x3a924a(0x1d1)],'warnings':_0x528818[_0x3a924a(0x1d5)],'normalized':_0x528818[_0x3a924a(0x1c8)],..._0x7e9d6a?{'written':_0x10a0a8}:{}},'message':_0x528818[_0x3a924a(0x1d8)]?_0x10a0a8?_0x3a924a(0x1d7):_0x3a924a(0x1d4):_0x3a924a(0x1d6)};}};