@lovrabet/rabetbase-cli 2.5.3-beta.1 → 2.5.3-beta.3

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 (419) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/api-group.d.ts +22 -0
  3. package/lib/api/api-group.js +1 -0
  4. package/lib/api/fetch-model-list.js +1 -1
  5. package/lib/api/generate-api-file.d.ts +18 -2
  6. package/lib/api/generate-api-file.js +1 -1
  7. package/lib/api/generate-sdk-config-file.js +1 -1
  8. package/lib/api/legacy-api-file.d.ts +11 -0
  9. package/lib/api/legacy-api-file.js +1 -0
  10. package/lib/api/model-registry-file.d.ts +36 -0
  11. package/lib/api/model-registry-file.js +1 -0
  12. package/lib/api/model-registry-scaffold.d.ts +7 -0
  13. package/lib/api/model-registry-scaffold.js +1 -0
  14. package/lib/api/model-source.d.ts +6 -0
  15. package/lib/api/model-source.js +1 -0
  16. package/lib/auth/auth-server-ui.js +1 -1
  17. package/lib/auth/auth-server.js +1 -1
  18. package/lib/auth/constant.js +1 -1
  19. package/lib/auth/get-cookie.js +1 -1
  20. package/lib/auth/get-session-user.js +1 -1
  21. package/lib/auth/is-session-valid.js +1 -1
  22. package/lib/auth/login-success-html.js +1 -1
  23. package/lib/auth/logout.js +1 -1
  24. package/lib/cli-flags.js +1 -1
  25. package/lib/cli.js +1 -1
  26. package/lib/commands/api/generate.js +1 -1
  27. package/lib/commands/api/index.js +1 -1
  28. package/lib/commands/api/list.js +1 -1
  29. package/lib/commands/api/pull.js +1 -1
  30. package/lib/commands/api/shared.js +1 -1
  31. package/lib/commands/app/index.js +1 -1
  32. package/lib/commands/app/list.js +1 -1
  33. package/lib/commands/app/members-list.js +1 -1
  34. package/lib/commands/app/remote-directory.js +1 -1
  35. package/lib/commands/app/shared.js +1 -1
  36. package/lib/commands/app-config/delete.js +1 -1
  37. package/lib/commands/app-config/get.js +1 -1
  38. package/lib/commands/app-config/index.js +1 -1
  39. package/lib/commands/app-config/list.js +1 -1
  40. package/lib/commands/app-config/set.js +1 -1
  41. package/lib/commands/app-config/shared.js +1 -1
  42. package/lib/commands/auth/index.js +1 -1
  43. package/lib/commands/bff/create.js +1 -1
  44. package/lib/commands/bff/delete.js +1 -1
  45. package/lib/commands/bff/detail.js +1 -1
  46. package/lib/commands/bff/index.js +1 -1
  47. package/lib/commands/bff/list.js +1 -1
  48. package/lib/commands/bff/logs.d.ts +7 -0
  49. package/lib/commands/bff/logs.js +1 -0
  50. package/lib/commands/bff/pull.js +1 -1
  51. package/lib/commands/bff/push.js +1 -1
  52. package/lib/commands/bff/status.js +1 -1
  53. package/lib/commands/cli-skill/index.js +1 -1
  54. package/lib/commands/cli-update.js +1 -1
  55. package/lib/commands/codegen/index.js +1 -1
  56. package/lib/commands/codegen/sdk.js +1 -1
  57. package/lib/commands/codegen/sql.js +1 -1
  58. package/lib/commands/common/app-registry.js +1 -1
  59. package/lib/commands/common/app-selector.js +1 -1
  60. package/lib/commands/common/async-task.js +1 -1
  61. package/lib/commands/common/dry-run.js +1 -1
  62. package/lib/commands/common/flags.d.ts +7 -0
  63. package/lib/commands/common/flags.js +1 -1
  64. package/lib/commands/common/local-file.js +1 -1
  65. package/lib/commands/common/validate.js +1 -1
  66. package/lib/commands/config/delete.js +1 -1
  67. package/lib/commands/config/get.js +1 -1
  68. package/lib/commands/config/index.js +1 -1
  69. package/lib/commands/config/init.js +1 -1
  70. package/lib/commands/config/list.js +1 -1
  71. package/lib/commands/config/set.js +1 -1
  72. package/lib/commands/config/shared.js +1 -1
  73. package/lib/commands/dataset/batch-design.d.ts +21 -0
  74. package/lib/commands/dataset/batch-design.js +1 -0
  75. package/lib/commands/dataset/business-group-update.js +1 -1
  76. package/lib/commands/dataset/business-groups.js +1 -1
  77. package/lib/commands/dataset/capability.js +1 -1
  78. package/lib/commands/dataset/cross-relation-create.d.ts +2 -0
  79. package/lib/commands/dataset/cross-relation-create.js +1 -0
  80. package/lib/commands/dataset/cross-relation-delete.d.ts +2 -0
  81. package/lib/commands/dataset/cross-relation-delete.js +1 -0
  82. package/lib/commands/dataset/cross-relation-list.d.ts +2 -0
  83. package/lib/commands/dataset/cross-relation-list.js +1 -0
  84. package/lib/commands/dataset/cross-relation-shared.d.ts +190 -0
  85. package/lib/commands/dataset/cross-relation-shared.js +1 -0
  86. package/lib/commands/dataset/cross-relation-update.d.ts +2 -0
  87. package/lib/commands/dataset/cross-relation-update.js +1 -0
  88. package/lib/commands/dataset/delete.js +1 -1
  89. package/lib/commands/dataset/detail.js +1 -1
  90. package/lib/commands/dataset/extend-update.js +1 -1
  91. package/lib/commands/dataset/field-restore.js +1 -1
  92. package/lib/commands/dataset/field-update.js +1 -1
  93. package/lib/commands/dataset/generate.js +1 -1
  94. package/lib/commands/dataset/index.js +1 -1
  95. package/lib/commands/dataset/list.js +1 -1
  96. package/lib/commands/dataset/operations.js +1 -1
  97. package/lib/commands/dataset/relation-audit.js +1 -1
  98. package/lib/commands/dataset/relation-create.js +1 -1
  99. package/lib/commands/dataset/relation-delete.js +1 -1
  100. package/lib/commands/dataset/relation-shared.js +1 -1
  101. package/lib/commands/dataset/relation-update.js +1 -1
  102. package/lib/commands/dataset/relations.js +1 -1
  103. package/lib/commands/dataset/rename.js +1 -1
  104. package/lib/commands/dataset/restore.js +1 -1
  105. package/lib/commands/dataset/user-deleted-field-list.js +1 -1
  106. package/lib/commands/db/analysis-batching.js +1 -1
  107. package/lib/commands/db/analyze-batch-plan.js +1 -1
  108. package/lib/commands/db/analyze-cancel.js +1 -1
  109. package/lib/commands/db/analyze-start.js +1 -1
  110. package/lib/commands/db/analyze-status.js +1 -1
  111. package/lib/commands/db/create.js +1 -1
  112. package/lib/commands/db/delete.js +1 -1
  113. package/lib/commands/db/detail.js +1 -1
  114. package/lib/commands/db/diff-refresh-start.js +1 -1
  115. package/lib/commands/db/diff-refresh-status.js +1 -1
  116. package/lib/commands/db/diff.js +1 -1
  117. package/lib/commands/db/index.js +1 -1
  118. package/lib/commands/db/list.js +1 -1
  119. package/lib/commands/db/shared.js +1 -1
  120. package/lib/commands/db/table-diff-shared.js +1 -1
  121. package/lib/commands/db/tables.js +1 -1
  122. package/lib/commands/db/test.js +1 -1
  123. package/lib/commands/db/update.js +1 -1
  124. package/lib/commands/deployment/index.js +1 -1
  125. package/lib/commands/deployment/sync-all.js +1 -1
  126. package/lib/commands/deployment/sync-jobs.js +1 -1
  127. package/lib/commands/deployment/sync-status.js +1 -1
  128. package/lib/commands/doctor.js +1 -1
  129. package/lib/commands/file/index.js +1 -1
  130. package/lib/commands/flow/create.d.ts +2 -0
  131. package/lib/commands/flow/create.js +1 -0
  132. package/lib/commands/flow/detail.d.ts +2 -0
  133. package/lib/commands/flow/detail.js +1 -0
  134. package/lib/commands/flow/index.d.ts +3 -0
  135. package/lib/commands/flow/index.js +1 -0
  136. package/lib/commands/flow/list.d.ts +2 -0
  137. package/lib/commands/flow/list.js +1 -0
  138. package/lib/commands/flow/publish.d.ts +2 -0
  139. package/lib/commands/flow/publish.js +1 -0
  140. package/lib/commands/flow/runtime-resources-shared.d.ts +40 -0
  141. package/lib/commands/flow/runtime-resources-shared.js +1 -0
  142. package/lib/commands/flow/runtime-role-list.d.ts +2 -0
  143. package/lib/commands/flow/runtime-role-list.js +1 -0
  144. package/lib/commands/flow/runtime-role-user-list.d.ts +2 -0
  145. package/lib/commands/flow/runtime-role-user-list.js +1 -0
  146. package/lib/commands/flow/runtime-user-search.d.ts +2 -0
  147. package/lib/commands/flow/runtime-user-search.js +1 -0
  148. package/lib/commands/flow/shared.d.ts +41 -0
  149. package/lib/commands/flow/shared.js +1 -0
  150. package/lib/commands/flow/update.d.ts +2 -0
  151. package/lib/commands/flow/update.js +1 -0
  152. package/lib/commands/flow/validate.d.ts +3 -0
  153. package/lib/commands/flow/validate.js +1 -0
  154. package/lib/commands/instant-api-policy/current.js +1 -1
  155. package/lib/commands/instant-api-policy/index.js +1 -1
  156. package/lib/commands/instant-api-policy/init.js +1 -1
  157. package/lib/commands/instant-api-policy/publish.js +1 -1
  158. package/lib/commands/instant-api-policy/pull.js +1 -1
  159. package/lib/commands/instant-api-policy/revision.js +1 -1
  160. package/lib/commands/instant-api-policy/revisions.js +1 -1
  161. package/lib/commands/instant-api-policy/rollback.js +1 -1
  162. package/lib/commands/instant-api-policy/shared.js +1 -1
  163. package/lib/commands/instant-api-policy/validate.js +1 -1
  164. package/lib/commands/issue/index.js +1 -1
  165. package/lib/commands/issue/nudge.js +1 -1
  166. package/lib/commands/issue/report.js +1 -1
  167. package/lib/commands/issue/shared.js +1 -1
  168. package/lib/commands/kb/create.js +1 -1
  169. package/lib/commands/kb/delete.js +1 -1
  170. package/lib/commands/kb/detail.js +1 -1
  171. package/lib/commands/kb/index.js +1 -1
  172. package/lib/commands/kb/list.js +1 -1
  173. package/lib/commands/kb/search.js +1 -1
  174. package/lib/commands/kb/shared.js +1 -1
  175. package/lib/commands/kb/update.js +1 -1
  176. package/lib/commands/logs/index.js +1 -1
  177. package/lib/commands/menu/asset-update.js +1 -1
  178. package/lib/commands/menu/delete.js +1 -1
  179. package/lib/commands/menu/external-link-create.js +1 -1
  180. package/lib/commands/menu/external-link-update.js +1 -1
  181. package/lib/commands/menu/group-create.js +1 -1
  182. package/lib/commands/menu/group-update.js +1 -1
  183. package/lib/commands/menu/index.js +1 -1
  184. package/lib/commands/menu/list.js +1 -1
  185. package/lib/commands/menu/move.js +1 -1
  186. package/lib/commands/menu/regroup-start.js +1 -1
  187. package/lib/commands/menu/rename.js +1 -1
  188. package/lib/commands/menu/shared/compare-table.js +1 -1
  189. package/lib/commands/menu/shared/delete-plan.js +1 -1
  190. package/lib/commands/menu/shared/facts.js +1 -1
  191. package/lib/commands/menu/shared/index.js +1 -1
  192. package/lib/commands/menu/shared/inquirer.js +1 -1
  193. package/lib/commands/menu/shared/local-pages.js +1 -1
  194. package/lib/commands/menu/shared/logic.js +1 -1
  195. package/lib/commands/menu/shared/mutations.js +1 -1
  196. package/lib/commands/menu/shared/service.js +1 -1
  197. package/lib/commands/menu/shared/sync-core.js +1 -1
  198. package/lib/commands/menu/shared/update-core.js +1 -1
  199. package/lib/commands/menu/shared/valid-url.js +1 -1
  200. package/lib/commands/menu/sync.js +1 -1
  201. package/lib/commands/menu/visibility-update.js +1 -1
  202. package/lib/commands/notification/config-create.js +1 -1
  203. package/lib/commands/notification/config-delete.js +1 -1
  204. package/lib/commands/notification/config-list.js +1 -1
  205. package/lib/commands/notification/config-update.js +1 -1
  206. package/lib/commands/notification/index.js +1 -1
  207. package/lib/commands/notification/shared.js +1 -1
  208. package/lib/commands/ocr/index.js +1 -1
  209. package/lib/commands/page/create.js +1 -1
  210. package/lib/commands/page/custom/detail.js +1 -1
  211. package/lib/commands/page/custom/list.js +1 -1
  212. package/lib/commands/page/custom/publish.js +1 -1
  213. package/lib/commands/page/custom/shared.js +1 -1
  214. package/lib/commands/page/custom/syntax.js +1 -1
  215. package/lib/commands/page/custom/update.js +1 -1
  216. package/lib/commands/page/data-list-status.js +1 -1
  217. package/lib/commands/page/generate-start.js +1 -1
  218. package/lib/commands/page/generate-status.js +1 -1
  219. package/lib/commands/page/index.js +1 -1
  220. package/lib/commands/page/pull.js +1 -1
  221. package/lib/commands/page/push.js +1 -1
  222. package/lib/commands/page/relation-audit.js +1 -1
  223. package/lib/commands/page/restore.js +1 -1
  224. package/lib/commands/page/shared.js +1 -1
  225. package/lib/commands/page/sync.js +1 -1
  226. package/lib/commands/project/api-architecture-upgrade.d.ts +28 -0
  227. package/lib/commands/project/api-architecture-upgrade.js +1 -0
  228. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  229. package/lib/commands/project/create/format-elapsed.js +1 -1
  230. package/lib/commands/project/create/main.js +1 -1
  231. package/lib/commands/project/create/materialize-project-template.js +1 -1
  232. package/lib/commands/project/create/project-name.js +1 -1
  233. package/lib/commands/project/create/project-template-archive.js +1 -1
  234. package/lib/commands/project/create/project-template-path.js +1 -1
  235. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  236. package/lib/commands/project/create/use-format-code.js +1 -1
  237. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  238. package/lib/commands/project/domain-routing-sync.js +1 -1
  239. package/lib/commands/project/index.js +1 -1
  240. package/lib/commands/project/upgrade.d.ts +30 -1
  241. package/lib/commands/project/upgrade.js +1 -1
  242. package/lib/commands/registry.js +1 -1
  243. package/lib/commands/role/delete.js +1 -1
  244. package/lib/commands/role/detail.js +1 -1
  245. package/lib/commands/role/index.js +1 -1
  246. package/lib/commands/role/list.js +1 -1
  247. package/lib/commands/role/shared.js +1 -1
  248. package/lib/commands/role/update.js +1 -1
  249. package/lib/commands/role/user-add.js +1 -1
  250. package/lib/commands/role/user-remove.js +1 -1
  251. package/lib/commands/role/user-resolve.js +1 -1
  252. package/lib/commands/rule/get.js +1 -1
  253. package/lib/commands/rule/index.js +1 -1
  254. package/lib/commands/rule/list.js +1 -1
  255. package/lib/commands/rule/set.js +1 -1
  256. package/lib/commands/rule/shared.js +1 -1
  257. package/lib/commands/run/index.js +1 -1
  258. package/lib/commands/schema.js +1 -1
  259. package/lib/commands/sql/create.js +1 -1
  260. package/lib/commands/sql/delete.js +1 -1
  261. package/lib/commands/sql/detail.js +1 -1
  262. package/lib/commands/sql/exec.js +1 -1
  263. package/lib/commands/sql/index.js +1 -1
  264. package/lib/commands/sql/list.js +1 -1
  265. package/lib/commands/sql/pull.js +1 -1
  266. package/lib/commands/sql/push.js +1 -1
  267. package/lib/commands/sql/shared.js +1 -1
  268. package/lib/commands/sql/status.js +1 -1
  269. package/lib/commands/sql/validate.js +1 -1
  270. package/lib/commands/task/index.js +1 -1
  271. package/lib/commands/task/status.js +1 -1
  272. package/lib/commands/tenant/index.js +1 -1
  273. package/lib/commands/tenant/members-list.js +1 -1
  274. package/lib/commands/tenant/shared.js +1 -1
  275. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  276. package/lib/commands/user-account/index.js +1 -1
  277. package/lib/commands/workspace/add.js +1 -1
  278. package/lib/commands/workspace/index.js +1 -1
  279. package/lib/commands/workspace/remove.js +1 -1
  280. package/lib/config/domain-config.js +1 -1
  281. package/lib/config/project-domain-routing.js +1 -1
  282. package/lib/config/region-config.js +1 -1
  283. package/lib/config/schema.js +1 -1
  284. package/lib/constant/cdn.js +1 -1
  285. package/lib/constant/cli.js +1 -1
  286. package/lib/constant/defaults.js +1 -1
  287. package/lib/constant/domain.js +1 -1
  288. package/lib/constant/env.js +1 -1
  289. package/lib/constant/output.js +1 -1
  290. package/lib/constant/paths.js +1 -1
  291. package/lib/constant/region.js +1 -1
  292. package/lib/constant/risk.js +1 -1
  293. package/lib/constant/routing-profile.js +1 -1
  294. package/lib/context/app-resolver.d.ts +2 -0
  295. package/lib/context/app-resolver.js +1 -1
  296. package/lib/context/auth-resolver.js +1 -1
  297. package/lib/context/config-loader.js +1 -1
  298. package/lib/context.d.ts +2 -1
  299. package/lib/context.js +1 -1
  300. package/lib/core/alias-resolver.d.ts +13 -17
  301. package/lib/core/alias-resolver.js +1 -1
  302. package/lib/core/api-client.d.ts +176 -1
  303. package/lib/core/api-client.js +1 -1
  304. package/lib/core/bff/config.js +1 -1
  305. package/lib/core/bff/file-system.js +1 -1
  306. package/lib/core/bff/hash.js +1 -1
  307. package/lib/core/bff/hook-directory.d.ts +55 -0
  308. package/lib/core/bff/hook-directory.js +1 -0
  309. package/lib/core/bff/lock.js +1 -1
  310. package/lib/core/bff/types.d.ts +15 -0
  311. package/lib/core/bff/utils.js +1 -1
  312. package/lib/core/cross-db-relation.d.ts +41 -0
  313. package/lib/core/cross-db-relation.js +1 -0
  314. package/lib/core/db-resolver.js +1 -1
  315. package/lib/core/flow-config.d.ts +628 -0
  316. package/lib/core/flow-config.js +1 -0
  317. package/lib/core/instant-api-policy/config.js +1 -1
  318. package/lib/core/kb-search-client.js +1 -1
  319. package/lib/core/page/file-system.js +1 -1
  320. package/lib/core/page/hash.js +1 -1
  321. package/lib/core/page/lock.js +1 -1
  322. package/lib/core/page/lr-smart-jsx.js +1 -1
  323. package/lib/core/sql-index-auditor.js +1 -1
  324. package/lib/core/sql-sync/config.js +1 -1
  325. package/lib/core/sql-sync/file-system.js +1 -1
  326. package/lib/core/sql-sync/hash.js +1 -1
  327. package/lib/core/sql-sync/lock.js +1 -1
  328. package/lib/core/sql-sync/utils.js +1 -1
  329. package/lib/core/sql-validator.js +1 -1
  330. package/lib/errors.js +1 -1
  331. package/lib/framework/build-all-flags.js +1 -1
  332. package/lib/framework/error-output.js +1 -1
  333. package/lib/framework/explicit-yes.js +1 -1
  334. package/lib/framework/flags.js +1 -1
  335. package/lib/framework/help.js +1 -1
  336. package/lib/framework/index.js +1 -1
  337. package/lib/framework/output.js +1 -1
  338. package/lib/framework/response.js +1 -1
  339. package/lib/framework/runner-alias.d.ts +1 -1
  340. package/lib/framework/runner-alias.js +1 -1
  341. package/lib/framework/runner.js +1 -1
  342. package/lib/framework/schema-export.js +1 -1
  343. package/lib/framework/supported-flags.js +1 -1
  344. package/lib/framework/types.js +1 -1
  345. package/lib/generated/build-info.d.ts +4 -4
  346. package/lib/generated/build-info.js +1 -1
  347. package/lib/generated/official-routing.js +1 -1
  348. package/lib/generated/routing-contract.js +1 -1
  349. package/lib/help.js +1 -1
  350. package/lib/postinstall.js +1 -1
  351. package/lib/runtime/confirmation.js +1 -1
  352. package/lib/runtime/event.js +1 -1
  353. package/lib/runtime/index.js +1 -1
  354. package/lib/runtime/queue.js +1 -1
  355. package/lib/runtime/resolve.js +1 -1
  356. package/lib/skills/builtin-skill.js +1 -1
  357. package/lib/skills/main.js +1 -1
  358. package/lib/skills/npx-skills-add.d.ts +0 -10
  359. package/lib/skills/npx-skills-add.js +1 -1
  360. package/lib/skills/skill-presence.js +1 -1
  361. package/lib/telemetry/cli-command-trace.js +1 -1
  362. package/lib/telemetry/cli-help-trace.js +1 -1
  363. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  364. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  365. package/lib/telemetry/send-cli-trace-log.js +1 -1
  366. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  367. package/lib/types/index.d.ts +11 -1
  368. package/lib/utils/ai_config.js +1 -1
  369. package/lib/utils/apply-jq-filter.js +1 -1
  370. package/lib/utils/cdn-config.js +1 -1
  371. package/lib/utils/check-sdk-version.js +1 -1
  372. package/lib/utils/cli-version-check.js +1 -1
  373. package/lib/utils/cli-version-policy.d.ts +12 -0
  374. package/lib/utils/cli-version-policy.js +1 -1
  375. package/lib/utils/config.js +1 -1
  376. package/lib/utils/entity-with-id.js +1 -1
  377. package/lib/utils/file-utils.js +1 -1
  378. package/lib/utils/guides-cdn.js +1 -1
  379. package/lib/utils/http-client.js +1 -1
  380. package/lib/utils/is-non-interactive.js +1 -1
  381. package/lib/utils/logger.js +1 -1
  382. package/lib/utils/params.js +1 -1
  383. package/lib/utils/platform.js +1 -1
  384. package/lib/utils/sleep.js +1 -1
  385. package/lib/utils/template-replacer.js +1 -1
  386. package/lib/utils/update-notice.js +1 -1
  387. package/lib/utils/version.js +1 -1
  388. package/lib/utils/with-active-cookie.js +1 -1
  389. package/lib/utils/write-cli-side-channel.js +1 -1
  390. package/package.json +4 -1
  391. package/skills/rabetbase/SKILL.md +31 -9
  392. package/skills/rabetbase/guides/approval-flow-development-workflow.md +137 -0
  393. package/skills/rabetbase/guides/backend-function.md +19 -9
  394. package/skills/rabetbase/guides/bff-creation-workflow.md +10 -1
  395. package/skills/rabetbase/guides/conflict-detection.md +2 -0
  396. package/skills/rabetbase/guides/sdk-client-generation.md +112 -60
  397. package/skills/rabetbase/guides/typescript-sdk.md +9 -0
  398. package/skills/rabetbase/knowledge/approval-flow/config-json-schema.md +290 -0
  399. package/skills/rabetbase/references/rabetbase-api-pull.md +30 -19
  400. package/skills/rabetbase/references/rabetbase-app-list.md +1 -1
  401. package/skills/rabetbase/references/rabetbase-bff-create.md +1 -1
  402. package/skills/rabetbase/references/rabetbase-bff-logs.md +47 -0
  403. package/skills/rabetbase/references/rabetbase-bff-pull.md +7 -3
  404. package/skills/rabetbase/references/rabetbase-bff-push.md +10 -2
  405. package/skills/rabetbase/references/rabetbase-config.md +2 -1
  406. package/skills/rabetbase/references/rabetbase-dataset-cross-relations.md +60 -0
  407. package/skills/rabetbase/references/rabetbase-dataset-generate.md +52 -2
  408. package/skills/rabetbase/references/rabetbase-flow-commands.md +86 -0
  409. package/skills/rabetbase/references/rabetbase-flow-resources.md +83 -0
  410. package/skills/rabetbase/references/rabetbase-flow-runtime-boundary.md +25 -0
  411. package/skills/rabetbase/references/rabetbase-instant-api-policy.md +103 -11
  412. package/skills/rabetbase/references/rabetbase-notification-config-list.md +17 -0
  413. package/skills/rabetbase/references/rabetbase-project-create.md +3 -3
  414. package/skills/rabetbase/references/rabetbase-project-upgrade.md +24 -13
  415. package/skills/rabetbase.manifest.json +10 -3
  416. package/templates/README.md +16 -4
  417. package/templates/generate-api/model-runtime.ts.tpl +101 -0
  418. package/templates/generate-api/profile-api.ts.tpl +21 -0
  419. package/templates/generate-api/profile-client.ts.tpl +14 -0
@@ -1 +1 @@
1
- const a100_0x12c08c=a100_0x2b8b;function a100_0x4789(){const _0x547709=['6073580knFtwR','64060IHTLEa','isSafeInteger','634074vXdwwg','Get\x20application\x20deployment\x20synchronization\x20job\x20status',';\x20terminal\x20state\x20is\x20unknown\x20to\x20this\x20CLI\x20version.','Deployment\x20synchronization\x20job\x20ID','20351969JEkzHO','664QZiHtn','validation','action','87ovDHWi','number','30GmFCTL','145TIWLKe','results','job-id','appCode','deployment','has','12RqsLXh','length','RUNNING','status','filter','PARTIAL_SUCCESS','FAILED','Deployment\x20synchronization\x20job\x20','SUCCESS','13238klWJfF','Preserved\x20server-defined\x20status\x20','791CjWizo','num','map','PENDING','read','73404UDIieb'];a100_0x4789=function(){return _0x547709;};return a100_0x4789();}(function(_0x417343,_0x365fe9){const _0x4bf44b=a100_0x2b8b,_0x51176d=_0x417343();while(!![]){try{const _0x449ecf=parseInt(_0x4bf44b(0x9b))/0x1+parseInt(_0x4bf44b(0x90))/0x2*(-parseInt(_0x4bf44b(0xa3))/0x3)+-parseInt(_0x4bf44b(0x99))/0x4*(-parseInt(_0x4bf44b(0xa6))/0x5)+-parseInt(_0x4bf44b(0xa5))/0x6*(parseInt(_0x4bf44b(0x92))/0x7)+-parseInt(_0x4bf44b(0xa0))/0x8*(-parseInt(_0x4bf44b(0x97))/0x9)+parseInt(_0x4bf44b(0x98))/0xa+parseInt(_0x4bf44b(0x9f))/0xb*(-parseInt(_0x4bf44b(0xac))/0xc);if(_0x449ecf===_0x365fe9)break;else _0x51176d['push'](_0x51176d['shift']());}catch(_0x40ad99){_0x51176d['push'](_0x51176d['shift']());}}}(a100_0x4789,0x53098));function a100_0x2b8b(_0x2c1519,_0x49af9c){_0x2c1519=_0x2c1519-0x8e;const _0x4789a9=a100_0x4789();let _0x2b8b84=_0x4789a9[_0x2c1519];return _0x2b8b84;}import{getDeploymentMetadataSyncStatus}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const TERMINAL_STATUSES=new Set([a100_0x12c08c(0x8f),a100_0x12c08c(0xb1),'FAILED']),ACTIVE_STATUSES=new Set([a100_0x12c08c(0x95),a100_0x12c08c(0xae)]);export const deploymentSyncStatus={'service':a100_0x12c08c(0xaa),'command':'sync-status','description':a100_0x12c08c(0x9c),'risk':a100_0x12c08c(0x96),'requiresAppCode':!![],'strictFlags':!![],'structuredErrors':!![],'flags':[{'name':a100_0x12c08c(0xa8),'type':a100_0x12c08c(0xa4),'required':!![],'description':a100_0x12c08c(0x9e)}],async 'validate'(_0x497c2b){const _0x359043=a100_0x12c08c;readJobId(_0x497c2b[_0x359043(0x93)]('job-id'));},async 'execute'(_0x31a2ec){const _0x3010f1=a100_0x12c08c,_0x2d1bb2=readJobId(_0x31a2ec[_0x3010f1(0x93)](_0x3010f1(0xa8))),_0x11d775=await getDeploymentMetadataSyncStatus({'jobId':_0x2d1bb2,'appCode':_0x31a2ec[_0x3010f1(0xa9)]}),_0xcea99f=TERMINAL_STATUSES[_0x3010f1(0xab)](_0x11d775[_0x3010f1(0xaf)])?!![]:ACTIVE_STATUSES[_0x3010f1(0xab)](_0x11d775[_0x3010f1(0xaf)])?![]:null,_0x2b7f98=countBy(_0x11d775['results'][_0x3010f1(0x94)](_0x170d41=>_0x170d41['bizType'])),_0x3337f5=countBy(_0x11d775[_0x3010f1(0xa7)]['map'](_0x3b6f69=>_0x3b6f69[_0x3010f1(0xa2)])),_0x3f2d7a=_0xcea99f===null?[_0x3010f1(0x91)+_0x11d775[_0x3010f1(0xaf)]+_0x3010f1(0x9d)]:[];return{'ok':!![],'data':{'job':_0x11d775,'isTerminal':_0xcea99f,'summary':{'total':_0x11d775[_0x3010f1(0xa7)][_0x3010f1(0xad)],'failed':_0x11d775[_0x3010f1(0xa7)][_0x3010f1(0xb0)](_0x263177=>_0x263177[_0x3010f1(0xa2)]===_0x3010f1(0xb2))['length'],'byBizType':_0x2b7f98,'byAction':_0x3337f5},'warnings':_0x3f2d7a},'message':_0x3010f1(0x8e)+_0x2d1bb2+'\x20is\x20'+_0x11d775[_0x3010f1(0xaf)]+'.'};}};function readJobId(_0x5d3386){const _0x1e7593=a100_0x12c08c;if(!Number[_0x1e7593(0x9a)](_0x5d3386)||_0x5d3386<=0x0)throw CliErrors[_0x1e7593(0xa1)]('--job-id\x20must\x20be\x20a\x20positive\x20integer.');return _0x5d3386;}function countBy(_0x217c02){return _0x217c02['reduce']((_0x5b3207,_0x18cb69)=>{return _0x5b3207[_0x18cb69]=(_0x5b3207[_0x18cb69]??0x0)+0x1,_0x5b3207;},{});}
1
+ const a112_0x516777=a112_0x4aeb;(function(_0x12e6c4,_0x51b52d){const _0x372fce=a112_0x4aeb,_0x671a7c=_0x12e6c4();while(!![]){try{const _0x4ce84d=-parseInt(_0x372fce(0x177))/0x1+parseInt(_0x372fce(0x18c))/0x2+parseInt(_0x372fce(0x178))/0x3*(-parseInt(_0x372fce(0x180))/0x4)+parseInt(_0x372fce(0x18e))/0x5+parseInt(_0x372fce(0x190))/0x6*(-parseInt(_0x372fce(0x17b))/0x7)+parseInt(_0x372fce(0x186))/0x8*(parseInt(_0x372fce(0x183))/0x9)+-parseInt(_0x372fce(0x185))/0xa;if(_0x4ce84d===_0x51b52d)break;else _0x671a7c['push'](_0x671a7c['shift']());}catch(_0x26fb7e){_0x671a7c['push'](_0x671a7c['shift']());}}}(a112_0x2772,0x6680f));import{getDeploymentMetadataSyncStatus}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a112_0x4aeb(_0x169812,_0x184006){_0x169812=_0x169812-0x177;const _0x2772d6=a112_0x2772();let _0x4aebf6=_0x2772d6[_0x169812];return _0x4aebf6;}const TERMINAL_STATUSES=new Set(['SUCCESS',a112_0x516777(0x18a),a112_0x516777(0x191)]),ACTIVE_STATUSES=new Set([a112_0x516777(0x184),a112_0x516777(0x194)]);export const deploymentSyncStatus={'service':a112_0x516777(0x195),'command':'sync-status','description':a112_0x516777(0x181),'risk':a112_0x516777(0x189),'requiresAppCode':!![],'strictFlags':!![],'structuredErrors':!![],'flags':[{'name':a112_0x516777(0x192),'type':a112_0x516777(0x18b),'required':!![],'description':a112_0x516777(0x197)}],async 'validate'(_0x2abe52){const _0x2b46dd=a112_0x516777;readJobId(_0x2abe52[_0x2b46dd(0x196)]('job-id'));},async 'execute'(_0x5a62bf){const _0x14164b=a112_0x516777,_0x17c946=readJobId(_0x5a62bf[_0x14164b(0x196)]('job-id')),_0x3c438b=await getDeploymentMetadataSyncStatus({'jobId':_0x17c946,'appCode':_0x5a62bf[_0x14164b(0x17e)]}),_0x317bcd=TERMINAL_STATUSES[_0x14164b(0x179)](_0x3c438b[_0x14164b(0x18f)])?!![]:ACTIVE_STATUSES[_0x14164b(0x179)](_0x3c438b[_0x14164b(0x18f)])?![]:null,_0x44cf4b=countBy(_0x3c438b[_0x14164b(0x198)][_0x14164b(0x17c)](_0x3f629f=>_0x3f629f[_0x14164b(0x17d)])),_0x4e7fb6=countBy(_0x3c438b[_0x14164b(0x198)]['map'](_0x4e1297=>_0x4e1297[_0x14164b(0x17a)])),_0x2c932e=_0x317bcd===null?['Preserved\x20server-defined\x20status\x20'+_0x3c438b['status']+';\x20terminal\x20state\x20is\x20unknown\x20to\x20this\x20CLI\x20version.']:[];return{'ok':!![],'data':{'job':_0x3c438b,'isTerminal':_0x317bcd,'summary':{'total':_0x3c438b['results'][_0x14164b(0x188)],'failed':_0x3c438b[_0x14164b(0x198)][_0x14164b(0x199)](_0x4e0d8d=>_0x4e0d8d['action']==='FAILED')[_0x14164b(0x188)],'byBizType':_0x44cf4b,'byAction':_0x4e7fb6},'warnings':_0x2c932e},'message':_0x14164b(0x182)+_0x17c946+'\x20is\x20'+_0x3c438b['status']+'.'};}};function readJobId(_0x38e5ef){const _0x30ddfc=a112_0x516777;if(!Number[_0x30ddfc(0x193)](_0x38e5ef)||_0x38e5ef<=0x0)throw CliErrors[_0x30ddfc(0x17f)](_0x30ddfc(0x18d));return _0x38e5ef;}function a112_0x2772(){const _0x11f273=['3272185TCmClv','status','164994EFdKEv','FAILED','job-id','isSafeInteger','RUNNING','deployment','num','Deployment\x20synchronization\x20job\x20ID','results','filter','15849LxxdWn','237687TBRJht','has','action','49YbFXaL','map','bizType','appCode','validation','36LDUlSu','Get\x20application\x20deployment\x20synchronization\x20job\x20status','Deployment\x20synchronization\x20job\x20','27kRJORL','PENDING','282320efVnMJ','545384HeRvUA','reduce','length','read','PARTIAL_SUCCESS','number','1021068RSdpkC','--job-id\x20must\x20be\x20a\x20positive\x20integer.'];a112_0x2772=function(){return _0x11f273;};return a112_0x2772();}function countBy(_0x158c3c){const _0x5374c2=a112_0x516777;return _0x158c3c[_0x5374c2(0x187)]((_0x17e252,_0xe30263)=>{return _0x17e252[_0xe30263]=(_0x17e252[_0xe30263]??0x0)+0x1,_0x17e252;},{});}
@@ -1 +1 @@
1
- const a101_0x19c08b=a101_0x326c;(function(_0x402426,_0x24ce42){const _0x5e793a=a101_0x326c,_0x1e0b77=_0x402426();while(!![]){try{const _0x8e9197=-parseInt(_0x5e793a(0x19a))/0x1+parseInt(_0x5e793a(0x16a))/0x2+parseInt(_0x5e793a(0x14a))/0x3*(parseInt(_0x5e793a(0x1be))/0x4)+parseInt(_0x5e793a(0x154))/0x5*(-parseInt(_0x5e793a(0x1a4))/0x6)+-parseInt(_0x5e793a(0x1bf))/0x7+parseInt(_0x5e793a(0x1c9))/0x8*(-parseInt(_0x5e793a(0x1c7))/0x9)+parseInt(_0x5e793a(0x1c3))/0xa;if(_0x8e9197===_0x24ce42)break;else _0x1e0b77['push'](_0x1e0b77['shift']());}catch(_0x250c03){_0x1e0b77['push'](_0x1e0b77['shift']());}}}(a101_0xc891,0xe6b9e));import a101_0x3b993b 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';import{buildAppDoctorFields}from'../config/schema.js';import{resolveEffectiveRegion}from'../config/region-config.js';function a101_0xc891(){const _0x198c5e=['\x20\x20runtimeDomain:\x20\x20\x20','✗\x20Not\x20logged\x20in','unknown','Global','\x20config\x20delete\x20routing\x20--global','(unknown)','length','\x20(default)','join','\x20\x20Repair\x20global:\x20\x20\x20','1711203AnwrtE','current','log','cookie','label','inherit','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Skill\x20Version:\x20\x20\x20','pageSize','project','13038FCxCwh','✗\x20Invalid\x20','bold','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','\x20config\x20delete\x20region\x20--global','(not\x20set)','projectConfig','message','Unavailable\x20until\x20routing\x20configuration\x20is\x20repaired','filter','entries','Project','\x20+\x20','arch','globalConfig','✓\x20Valid\x20JSON','check','object','routing','\x20\x20Installed\x20Path:\x20\x20','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','skillVersion','push','\x20config\x20delete\x20routing','\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','read','424gACwNW','622069LQyfII','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','11271090LnTnJw','repeat','\x20\x20appDomain:\x20\x20\x20\x20\x20\x20\x20','regionConfiguredValue','54gpjxAB','\x20config\x20delete\x20inherit','198200LisvXD','Not\x20checked\x20until\x20routing\x20configuration\x20is\x20repaired','state','global','appCode','green','yellow','prototype','\x20\x20API\x20Endpoints','\x20\x20Config\x20JSON','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Repair\x20','\x20\x20Repair\x20global:\x20\x20\x20\x20','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','(no\x20file)','\x20app\x20\x22','includes','format','keys','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','\x20\x20explicitAppName:\x20','19080nhkkBw','slice','raw','hasOwnProperty','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20region:\x20\x20\x20\x20\x20','Set\x20apps.','region','gray','1080vASdRu','\x20\x20kbDomain:\x20\x20\x20\x20\x20\x20\x20\x20','(none)','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(default)','\x20\x20Merged\x20Config','(default:\x20','defaultApp','default','empty','\x20\x20─','accessKey','\x20config\x20delete\x20region','apiDir','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','repairCommand','padEnd','call','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','installedPath','(missing)','3123746vMhWpN','stringify','ignored\x20in\x20','env','red','\x20←\x20current','✗\x20Invalid','\x20\x20\x20\x20accessKey:\x20\x20','\x20\x20app\x20locale:\x20\x20\x20\x20\x20\x20','\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Routing\x20Configuration','explicitAppName','\x20\x20Apps','\x20config','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','null','status','\x20\x20Repair\x20project:\x20\x20\x20','version','.region\x20to\x20cn\x20or\x20id\x20in\x20','string','appcode','present','(set,\x20length=','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','reason','toLowerCase','\x20\x20Legacy\x20inherit:\x20\x20\x20','(not\x20found)','value','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','source','doctor','\x20\x20Config\x20Files','\x20\x20Repair\x20project:\x20\x20','apps','\x20(invalid)','currentApp'];a101_0xc891=function(){return _0x198c5e;};return a101_0xc891();}function a101_0x326c(_0x3d5c78,_0x4c429b){_0x3d5c78=_0x3d5c78-0x144;const _0xc891c=a101_0xc891();let _0x326cda=_0xc891c[_0x3d5c78];return _0x326cda;}import{inspectBuiltinSkill}from'../skills/builtin-skill.js';import{DEFAULT_LOVRABET_REGION,isInvalidLovrabetRegion}from'../constant/region.js';function describeRegionValue(_0x2ac5a7){const _0x436f71=a101_0x326c;return typeof _0x2ac5a7===_0x436f71(0x17e)?JSON[_0x436f71(0x16b)](_0x2ac5a7):'<'+(_0x2ac5a7===null?_0x436f71(0x179):typeof _0x2ac5a7)+'>';}async function execute(_0x5a1bf6){const _0x37776c=a101_0x326c,_0x54b2e2=GIT_COMMIT!==_0x37776c(0x192)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x37776c(0x14b)](0x0,0xa)+')':VERSION,_0x554564=buildConfigFromFlags({}),_0x59438e=getCookie();let _0x4f16df;try{await initGlobalEnvironment(_0x554564);}catch(_0x2631fd){_0x4f16df=_0x2631fd instanceof Error?_0x2631fd:new Error(String(_0x2631fd));}console[_0x37776c(0x19c)](),console[_0x37776c(0x19c)](a101_0x3b993b[_0x37776c(0x1a6)](CLI_BIN_NAME+'\x20doctor')),console[_0x37776c(0x19c)](a101_0x3b993b[_0x37776c(0x153)]('─'[_0x37776c(0x1c4)](0x32))),console['log'](_0x37776c(0x178)+_0x54b2e2),console['log'](_0x37776c(0x167)+process[_0x37776c(0x17c)]),console[_0x37776c(0x19c)](_0x37776c(0x162)+process['platform']+'\x20'+process[_0x37776c(0x1b1)]);const _0x3c4a65=inspectBuiltinSkill();console[_0x37776c(0x19c)](),console[_0x37776c(0x19c)](a101_0x3b993b[_0x37776c(0x1a6)]('\x20\x20Built-in\x20Skill')),console[_0x37776c(0x19c)](a101_0x3b993b['gray'](_0x37776c(0x15e)['repeat'](0x1e)));const _0x4b2133=_0x3c4a65['state']===_0x37776c(0x19b)?a101_0x3b993b[_0x37776c(0x1ce)]('✓\x20'+_0x3c4a65[_0x37776c(0x1cb)]):a101_0x3b993b[_0x37776c(0x16e)]('✗\x20'+_0x3c4a65[_0x37776c(0x1cb)]);console[_0x37776c(0x19c)]('\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x4b2133),console[_0x37776c(0x19c)]('\x20\x20Package\x20Version:\x20'+_0x3c4a65['packageVersion']),console[_0x37776c(0x19c)](_0x37776c(0x1a1)+(_0x3c4a65[_0x37776c(0x1b9)]||a101_0x3b993b[_0x37776c(0x153)](_0x37776c(0x195)))),console[_0x37776c(0x19c)](_0x37776c(0x1b7)+(_0x3c4a65[_0x37776c(0x168)]||a101_0x3b993b[_0x37776c(0x153)](_0x37776c(0x186))));if(_0x3c4a65[_0x37776c(0x183)])console[_0x37776c(0x19c)](_0x37776c(0x1bc)+_0x3c4a65[_0x37776c(0x183)]);_0x3c4a65['state']!==_0x37776c(0x19b)&&console[_0x37776c(0x19c)](_0x37776c(0x173)+_0x3c4a65[_0x37776c(0x164)]);console[_0x37776c(0x19c)](),console[_0x37776c(0x19c)](a101_0x3b993b['bold'](_0x37776c(0x18b))),console[_0x37776c(0x19c)](a101_0x3b993b[_0x37776c(0x153)](_0x37776c(0x15e)[_0x37776c(0x1c4)](0x1e)));const _0x55978b=getGlobalConfigPath(),_0x1dd723=getProjectConfigPath();console['log'](_0x37776c(0x157)+(_0x55978b||a101_0x3b993b[_0x37776c(0x153)](_0x37776c(0x186)))),console[_0x37776c(0x19c)](_0x37776c(0x14f)+(_0x1dd723||a101_0x3b993b[_0x37776c(0x153)]('(not\x20found)'))),console['log'](),console['log'](a101_0x3b993b[_0x37776c(0x1a6)](_0x37776c(0x1d2))),console[_0x37776c(0x19c)](a101_0x3b993b[_0x37776c(0x153)](_0x37776c(0x15e)['repeat'](0x1e)));const _0x1b96db=(_0x2edfc9,_0x29532d)=>{const _0x2a86d2=_0x37776c;if(!_0x29532d){console[_0x2a86d2(0x19c)]('\x20\x20'+_0x2edfc9[_0x2a86d2(0x165)](0x11)+'\x20'+a101_0x3b993b[_0x2a86d2(0x153)](_0x2a86d2(0x1d7)));return;}const _0x4d823f=inspectCliConfigJsonFile(_0x29532d);if(_0x4d823f[_0x2a86d2(0x17a)]==='ok')console[_0x2a86d2(0x19c)]('\x20\x20'+_0x2edfc9[_0x2a86d2(0x165)](0x11)+'\x20'+a101_0x3b993b[_0x2a86d2(0x1ce)](_0x2a86d2(0x1b3)));else{if(_0x4d823f[_0x2a86d2(0x17a)]===_0x2a86d2(0x15d))console[_0x2a86d2(0x19c)]('\x20\x20'+_0x2edfc9[_0x2a86d2(0x165)](0x11)+'\x20'+a101_0x3b993b[_0x2a86d2(0x1cf)]('⚠\x20Empty\x20(treated\x20as\x20{})'));else _0x4d823f[_0x2a86d2(0x17a)]==='missing'?console[_0x2a86d2(0x19c)]('\x20\x20'+_0x2edfc9[_0x2a86d2(0x165)](0x11)+'\x20'+a101_0x3b993b[_0x2a86d2(0x153)](_0x2a86d2(0x169))):(console['log']('\x20\x20'+_0x2edfc9[_0x2a86d2(0x165)](0x11)+'\x20'+a101_0x3b993b[_0x2a86d2(0x16e)]('✗\x20Invalid\x20JSON')),console[_0x2a86d2(0x19c)]('\x20\x20'+''[_0x2a86d2(0x165)](0x11)+'\x20'+a101_0x3b993b['red'](_0x4d823f[_0x2a86d2(0x1ab)])));}};_0x1b96db(_0x37776c(0x193),_0x55978b),_0x1b96db(_0x37776c(0x1af),_0x1dd723);const _0x314f76=loadRawConfigLayers(),_0x47cc9a=[{'label':'Project','value':_0x314f76[_0x37776c(0x1aa)]['region'],'present':Object['prototype'][_0x37776c(0x14d)][_0x37776c(0x166)](_0x314f76[_0x37776c(0x1aa)],_0x37776c(0x152)),'repairCommand':CLI_BIN_NAME+_0x37776c(0x160)},{'label':_0x37776c(0x193),'value':_0x314f76[_0x37776c(0x1b2)]['region'],'present':Object[_0x37776c(0x1d0)][_0x37776c(0x14d)][_0x37776c(0x166)](_0x314f76['globalConfig'],_0x37776c(0x152)),'repairCommand':CLI_BIN_NAME+_0x37776c(0x1a8)}][_0x37776c(0x1ad)](_0x59826f=>_0x59826f[_0x37776c(0x180)]&&isInvalidLovrabetRegion(_0x59826f[_0x37776c(0x187)]));for(const [_0x147567,_0x17117c]of[['Project',_0x314f76[_0x37776c(0x1aa)]],[_0x37776c(0x193),_0x314f76[_0x37776c(0x1b2)]]]){const _0x215436=_0x17117c[_0x37776c(0x18d)]&&typeof _0x17117c[_0x37776c(0x18d)]===_0x37776c(0x1b5)?_0x17117c['apps']:{};for(const [_0x49b2a8,_0x23a9c1]of Object[_0x37776c(0x1ae)](_0x215436)){if(!_0x23a9c1||typeof _0x23a9c1!==_0x37776c(0x1b5)||!Object[_0x37776c(0x1d0)][_0x37776c(0x14d)][_0x37776c(0x166)](_0x23a9c1,'region'))continue;isInvalidLovrabetRegion(_0x23a9c1[_0x37776c(0x152)])&&_0x47cc9a[_0x37776c(0x1ba)]({'label':_0x147567+_0x37776c(0x144)+_0x49b2a8+'\x22','value':_0x23a9c1[_0x37776c(0x152)],'present':!![],'repairCommand':_0x37776c(0x151)+_0x49b2a8+_0x37776c(0x17d)+_0x147567['toLowerCase']()+_0x37776c(0x177)});}}if(_0x47cc9a['length']>0x0){console['log'](),console['log'](a101_0x3b993b[_0x37776c(0x1a6)]('\x20\x20Country/Region\x20Configuration')),console[_0x37776c(0x19c)](a101_0x3b993b[_0x37776c(0x153)](_0x37776c(0x15e)[_0x37776c(0x1c4)](0x1e)));for(const _0x5b869e of _0x47cc9a){console['log']('\x20\x20'+_0x5b869e['label'][_0x37776c(0x165)](0x11)+'\x20'+a101_0x3b993b[_0x37776c(0x16e)](_0x37776c(0x1a5)+describeRegionValue(_0x5b869e[_0x37776c(0x187)]))),console[_0x37776c(0x19c)]('\x20\x20'+(_0x37776c(0x1d4)+_0x5b869e[_0x37776c(0x19e)][_0x37776c(0x184)]()+':')['padEnd'](0x10)+'\x20'+_0x5b869e[_0x37776c(0x164)]);}}const _0x5e7f75=[Object['prototype'][_0x37776c(0x14d)][_0x37776c(0x166)](_0x314f76[_0x37776c(0x1b2)],_0x37776c(0x19f))?_0x37776c(0x1cc):null,Object[_0x37776c(0x1d0)][_0x37776c(0x14d)][_0x37776c(0x166)](_0x314f76[_0x37776c(0x1aa)],'inherit')?_0x37776c(0x1a3):null][_0x37776c(0x1ad)](Boolean);_0x5e7f75[_0x37776c(0x196)]>0x0&&(console[_0x37776c(0x19c)](_0x37776c(0x185)+a101_0x3b993b[_0x37776c(0x1cf)](_0x37776c(0x16c)+_0x5e7f75[_0x37776c(0x198)](_0x37776c(0x1b0))+_0x37776c(0x177))),_0x5e7f75[_0x37776c(0x145)](_0x37776c(0x1a3))&&console[_0x37776c(0x19c)](_0x37776c(0x17b)+CLI_BIN_NAME+_0x37776c(0x1c8)),_0x5e7f75[_0x37776c(0x145)]('global')&&console[_0x37776c(0x19c)](_0x37776c(0x1d5)+CLI_BIN_NAME+'\x20config\x20delete\x20inherit\x20--global'));const _0x7207a0=isInvalidLovrabetRegion(_0x554564[_0x37776c(0x1c6)]??_0x554564[_0x37776c(0x14c)]?.[_0x37776c(0x152)]);_0x4f16df&&!_0x7207a0&&(console[_0x37776c(0x19c)](),console[_0x37776c(0x19c)](a101_0x3b993b[_0x37776c(0x1a6)](_0x37776c(0x174))),console[_0x37776c(0x19c)](a101_0x3b993b[_0x37776c(0x153)](_0x37776c(0x15e)[_0x37776c(0x1c4)](0x1e))),console['log']('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a101_0x3b993b[_0x37776c(0x16e)](_0x37776c(0x170))),console[_0x37776c(0x19c)](_0x37776c(0x1bc)+_0x4f16df[_0x37776c(0x1ab)]),Object[_0x37776c(0x1d0)]['hasOwnProperty'][_0x37776c(0x166)](_0x314f76[_0x37776c(0x1aa)],_0x37776c(0x1b6))&&console[_0x37776c(0x19c)](_0x37776c(0x18c)+CLI_BIN_NAME+_0x37776c(0x1bb)),Object[_0x37776c(0x1d0)][_0x37776c(0x14d)][_0x37776c(0x166)](_0x314f76[_0x37776c(0x1b2)],_0x37776c(0x1b6))&&console[_0x37776c(0x19c)](_0x37776c(0x199)+CLI_BIN_NAME+_0x37776c(0x194)));console['log'](),console['log'](a101_0x3b993b[_0x37776c(0x1a6)](_0x37776c(0x159))),console[_0x37776c(0x19c)](a101_0x3b993b[_0x37776c(0x153)](_0x37776c(0x15e)[_0x37776c(0x1c4)](0x1e))),console[_0x37776c(0x19c)](_0x37776c(0x1d6)+(_0x554564[_0x37776c(0x1cd)]||a101_0x3b993b[_0x37776c(0x16e)](_0x37776c(0x1a9))));const _0x4559df=_0x7207a0?a101_0x3b993b[_0x37776c(0x16e)](describeRegionValue(_0x554564['regionConfiguredValue']??_0x554564[_0x37776c(0x14c)]?.[_0x37776c(0x152)])+_0x37776c(0x18e)):(_0x554564[_0x37776c(0x152)]??DEFAULT_LOVRABET_REGION)+'\x20('+(_0x554564['regionSource']??_0x37776c(0x15c))+')';console[_0x37776c(0x19c)](_0x37776c(0x1c1)+_0x4559df),console[_0x37776c(0x19c)](_0x37776c(0x188)+_0x554564['env']),console[_0x37776c(0x19c)](_0x37776c(0x172)+_0x554564['locale']),console[_0x37776c(0x19c)](_0x37776c(0x1a0)+_0x554564[_0x37776c(0x161)]),console[_0x37776c(0x19c)](_0x37776c(0x14e)+(_0x554564[_0x37776c(0x15b)]||a101_0x3b993b[_0x37776c(0x153)](_0x37776c(0x156)))),console[_0x37776c(0x19c)]('\x20\x20currentApp:\x20\x20\x20\x20\x20\x20'+(_0x554564['currentApp']||a101_0x3b993b[_0x37776c(0x153)](_0x37776c(0x156)))),console[_0x37776c(0x19c)](_0x37776c(0x149)+(_0x554564[_0x37776c(0x175)]||a101_0x3b993b[_0x37776c(0x153)]('(none)'))),console['log'](_0x37776c(0x1d3)+(_0x554564[_0x37776c(0x146)]||a101_0x3b993b['gray'](_0x37776c(0x15a)+DEFAULT_CONFIG_VALUES[_0x37776c(0x146)]+')'))),console['log'](_0x37776c(0x1c2)+(_0x554564[_0x37776c(0x1a2)]??a101_0x3b993b['gray'](_0x37776c(0x158)))),console[_0x37776c(0x19c)](_0x37776c(0x1b8)+_0x554564['riskLevel']),console['log'](_0x37776c(0x163)+_0x554564['verbose']),console[_0x37776c(0x19c)]('\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x554564['cookie']?a101_0x3b993b[_0x37776c(0x1ce)](_0x37776c(0x181)+_0x554564[_0x37776c(0x19d)]['length']+')'):_0x59438e?a101_0x3b993b[_0x37776c(0x1ce)]('(set\x20via\x20file,\x20length='+_0x59438e[_0x37776c(0x196)]+')'):a101_0x3b993b['gray'](_0x37776c(0x156))));const _0x5b6612=Object[_0x37776c(0x147)](_0x554564[_0x37776c(0x18d)]);if(_0x5b6612[_0x37776c(0x196)]>0x0){console['log'](),console[_0x37776c(0x19c)](a101_0x3b993b[_0x37776c(0x1a6)](_0x37776c(0x176))),console['log'](a101_0x3b993b[_0x37776c(0x153)](_0x37776c(0x15e)[_0x37776c(0x1c4)](0x1e)));for(const _0x453491 of _0x5b6612){const _0x8798ec=_0x554564[_0x37776c(0x18d)][_0x453491],_0x27c9c6=_0x453491===_0x554564['defaultApp'],_0x436f8c=_0x453491===_0x554564[_0x37776c(0x18f)],_0x6af971=_0x436f8c?a101_0x3b993b[_0x37776c(0x1ce)](_0x37776c(0x16f)):'',_0x54d243=_0x27c9c6?_0x37776c(0x197):'';console[_0x37776c(0x19c)]('\x20\x20'+_0x453491+_0x54d243+_0x6af971),console[_0x37776c(0x19c)](_0x37776c(0x148)+_0x8798ec[_0x37776c(0x17f)]);const _0x4102ce=_0x314f76[_0x37776c(0x1aa)][_0x37776c(0x18d)]&&typeof _0x314f76['projectConfig'][_0x37776c(0x18d)]===_0x37776c(0x1b5)?_0x314f76['projectConfig'][_0x37776c(0x18d)]:{},_0x13d0d1=Object[_0x37776c(0x1d0)][_0x37776c(0x14d)][_0x37776c(0x166)](_0x4102ce,_0x453491),_0x15974a=isInvalidLovrabetRegion(_0x8798ec['region'])?{'region':_0x554564['region']??DEFAULT_LOVRABET_REGION}:resolveEffectiveRegion({'appRegion':_0x8798ec[_0x37776c(0x152)],'projectRegion':_0x13d0d1?_0x314f76['projectConfig'][_0x37776c(0x152)]:undefined,'globalRegion':_0x314f76[_0x37776c(0x1b2)]['region'],'mergedRegion':_0x554564[_0x37776c(0x14c)][_0x37776c(0x152)],'appName':_0x453491}),_0x214da0=buildAppDoctorFields(_0x8798ec,{'region':_0x15974a[_0x37776c(0x152)],'env':_0x554564[_0x37776c(0x16d)],'apiDir':_0x554564['raw'][_0x37776c(0x161)]||DEFAULT_CONFIG_VALUES['apiDir'],'cookie':_0x554564[_0x37776c(0x19d)]||_0x59438e||undefined,'accessKey':_0x554564[_0x37776c(0x15f)]});console[_0x37776c(0x19c)](_0x37776c(0x150)+_0x214da0['region'][_0x37776c(0x187)]+'\x20\x20'+a101_0x3b993b[_0x37776c(0x153)]('('+_0x214da0['region'][_0x37776c(0x189)]+')')),console[_0x37776c(0x19c)](_0x37776c(0x1a7)+_0x214da0[_0x37776c(0x16d)][_0x37776c(0x187)]+'\x20\x20'+a101_0x3b993b[_0x37776c(0x153)]('('+_0x214da0[_0x37776c(0x16d)][_0x37776c(0x189)]+')')),console['log']('\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20'+_0x214da0[_0x37776c(0x161)][_0x37776c(0x187)]+'\x20\x20'+a101_0x3b993b[_0x37776c(0x153)]('('+_0x214da0[_0x37776c(0x161)][_0x37776c(0x189)]+')'));const _0x18abed=_0x214da0[_0x37776c(0x19d)][_0x37776c(0x187)]?a101_0x3b993b[_0x37776c(0x1ce)](_0x37776c(0x181)+_0x214da0['cookie']['value'][_0x37776c(0x196)]+')'):a101_0x3b993b[_0x37776c(0x153)](_0x37776c(0x156));console[_0x37776c(0x19c)]('\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20'+_0x18abed+'\x20\x20'+a101_0x3b993b[_0x37776c(0x153)]('('+_0x214da0['cookie'][_0x37776c(0x189)]+')'));const _0x157074=_0x214da0[_0x37776c(0x15f)][_0x37776c(0x187)]?a101_0x3b993b[_0x37776c(0x1ce)]('(set,\x20length='+_0x214da0[_0x37776c(0x15f)][_0x37776c(0x187)][_0x37776c(0x196)]+')'):a101_0x3b993b[_0x37776c(0x153)]('(none)');console[_0x37776c(0x19c)](_0x37776c(0x171)+_0x157074+'\x20\x20'+a101_0x3b993b[_0x37776c(0x153)]('('+_0x214da0[_0x37776c(0x15f)][_0x37776c(0x189)]+')'));}}console[_0x37776c(0x19c)](),console[_0x37776c(0x19c)](a101_0x3b993b['bold'](_0x37776c(0x1d1))),console[_0x37776c(0x19c)](a101_0x3b993b[_0x37776c(0x153)](_0x37776c(0x15e)[_0x37776c(0x1c4)](0x1e)));_0x4f16df?console[_0x37776c(0x19c)](_0x37776c(0x182)+a101_0x3b993b[_0x37776c(0x16e)](_0x37776c(0x1ac))):(console[_0x37776c(0x19c)](_0x37776c(0x1c1)+getActiveRegion()),console[_0x37776c(0x19c)]('\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20'+getApiDomain()),console[_0x37776c(0x19c)]('\x20\x20userDomain:\x20\x20\x20\x20\x20\x20'+getUserDomain()),console[_0x37776c(0x19c)](_0x37776c(0x190)+getRuntimeDomain()),console['log']('\x20\x20skillDomain:\x20\x20\x20\x20\x20'+getSkillDomain()),console['log'](_0x37776c(0x155)+getKbDomain()),console[_0x37776c(0x19c)](_0x37776c(0x1c5)+getAppDomain()));console[_0x37776c(0x19c)](),console['log'](a101_0x3b993b[_0x37776c(0x1a6)]('\x20\x20Auth')),console[_0x37776c(0x19c)](a101_0x3b993b[_0x37776c(0x153)]('\x20\x20─'[_0x37776c(0x1c4)](0x1e)));if(_0x4f16df)console['log'](_0x37776c(0x182)+a101_0x3b993b['yellow'](_0x37776c(0x1ca)));else{if(_0x59438e){const _0x2a00c5=await getIsSessionValid();console['log'](_0x37776c(0x182)+(_0x2a00c5?a101_0x3b993b[_0x37776c(0x1ce)]('✓\x20Valid'):a101_0x3b993b[_0x37776c(0x16e)]('✗\x20Expired')));}else console[_0x37776c(0x19c)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a101_0x3b993b[_0x37776c(0x16e)](_0x37776c(0x191)));}return console[_0x37776c(0x19c)](),{'ok':!![]};}export const doctorDefinition={'service':a101_0x19c08b(0x18a),'command':a101_0x19c08b(0x1b4),'description':a101_0x19c08b(0x1c0),'risk':a101_0x19c08b(0x1bd),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
1
+ const a113_0x423171=a113_0x20c4;(function(_0x3d71b4,_0x24b8ba){const _0x14a4d4=a113_0x20c4,_0x111cf4=_0x3d71b4();while(!![]){try{const _0xa1f823=parseInt(_0x14a4d4(0x241))/0x1+parseInt(_0x14a4d4(0x1f2))/0x2+parseInt(_0x14a4d4(0x1ff))/0x3+-parseInt(_0x14a4d4(0x208))/0x4*(parseInt(_0x14a4d4(0x230))/0x5)+-parseInt(_0x14a4d4(0x228))/0x6+-parseInt(_0x14a4d4(0x233))/0x7*(parseInt(_0x14a4d4(0x1de))/0x8)+-parseInt(_0x14a4d4(0x24b))/0x9*(-parseInt(_0x14a4d4(0x258))/0xa);if(_0xa1f823===_0x24b8ba)break;else _0x111cf4['push'](_0x111cf4['shift']());}catch(_0x4db5be){_0x111cf4['push'](_0x111cf4['shift']());}}}(a113_0x380d,0xc4da1));function a113_0x20c4(_0x1e9cd0,_0x3cdb44){_0x1e9cd0=_0x1e9cd0-0x1d7;const _0x380d5d=a113_0x380d();let _0x20c4fa=_0x380d5d[_0x1e9cd0];return _0x20c4fa;}import a113_0x5e7fd9 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';function a113_0x380d(){const _0x16d478=['\x20←\x20current','includes','accessKey','Repair\x20','49328QIdvTF','\x20app\x20\x22','\x20\x20Installed\x20Path:\x20\x20','gray','\x20\x20app\x20locale:\x20\x20\x20\x20\x20\x20','label','inherit','prototype','apps','present','global','green','\x20\x20API\x20Endpoints','\x20\x20Repair\x20global:\x20\x20\x20\x20','length','verbose','\x20\x20Apps','\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','bold','\x20\x20─','repeat','hasOwnProperty','\x20\x20Repair\x20project:\x20\x20','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','push','current','appcode','padEnd','check','filter','apiDir','Global','2706018VDvvil','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20config\x20delete\x20region','\x20\x20kbDomain:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Package\x20Version:\x20','toLowerCase','platform','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','135ZYSfUV','yellow','string','14056GkKvJg','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','message','entries','(not\x20set)','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','Unavailable\x20until\x20routing\x20configuration\x20is\x20repaired','defaultApp','\x20config','\x20\x20explicitAppName:\x20','✓\x20Valid','log','regionSource','format','659426TrpCPl','(default:\x20','Project','object','raw','state','null','\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','skillVersion','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','4230ToLpXN','\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','project','\x20\x20\x20\x20accessKey:\x20\x20','\x20\x20skillDomain:\x20\x20\x20\x20\x20','Not\x20checked\x20until\x20routing\x20configuration\x20is\x20repaired','join','Set\x20apps.','empty','(set,\x20length=','\x20\x20Country/Region\x20Configuration','\x20config\x20delete\x20routing','\x20config\x20delete\x20region\x20--global','4690fuTBXN','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','default','currentApp','\x20\x20Routing\x20Configuration','\x20config\x20delete\x20inherit','cookie','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','value','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','source','projectConfig','\x20\x20Built-in\x20Skill','explicitAppName','region','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','slice','packageVersion','5480nJTcET','(default)','(none)','\x20config\x20delete\x20inherit\x20--global','riskLevel','unknown','read','status','\x20+\x20','\x20\x20Skill\x20Version:\x20\x20\x20','⚠\x20Empty\x20(treated\x20as\x20{})','installedPath','✗\x20Expired','doctor','\x20\x20Repair\x20project:\x20\x20\x20','appCode','\x20doctor','reason','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','2184550vDPVUb','\x20(default)','call','pageSize','repairCommand','globalConfig','(not\x20found)','✗\x20Invalid','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','(missing)','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','routing','\x20config\x20delete\x20routing\x20--global','2980863fdfBmd','env','red','\x20\x20Merged\x20Config','.region\x20to\x20cn\x20or\x20id\x20in\x20'];a113_0x380d=function(){return _0x16d478;};return a113_0x380d();}import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags,initGlobalEnvironment,inspectCliConfigJsonFile,loadRawConfigLayers}from'../context.js';import{getIsSessionValid}from'../auth/is-session-valid.js';import{getCookie}from'../auth/get-cookie.js';import{buildAppDoctorFields}from'../config/schema.js';import{resolveEffectiveRegion}from'../config/region-config.js';import{inspectBuiltinSkill}from'../skills/builtin-skill.js';import{DEFAULT_LOVRABET_REGION,isInvalidLovrabetRegion}from'../constant/region.js';function describeRegionValue(_0x25c3e3){const _0x32d4b7=a113_0x20c4;return typeof _0x25c3e3===_0x32d4b7(0x232)?JSON['stringify'](_0x25c3e3):'<'+(_0x25c3e3===null?_0x32d4b7(0x247):typeof _0x25c3e3)+'>';}async function execute(_0x44bc63){const _0x4f370f=a113_0x20c4,_0x56b4a4=GIT_COMMIT!==_0x4f370f(0x1e3)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x4f370f(0x1dc)](0x0,0xa)+')':VERSION,_0x5f36de=buildConfigFromFlags({}),_0x26c32b=getCookie();let _0x24c8b6;try{await initGlobalEnvironment(_0x5f36de);}catch(_0x59822d){_0x24c8b6=_0x59822d instanceof Error?_0x59822d:new Error(String(_0x59822d));}console[_0x4f370f(0x23e)](),console[_0x4f370f(0x23e)](a113_0x5e7fd9[_0x4f370f(0x21a)](CLI_BIN_NAME+_0x4f370f(0x1ee))),console[_0x4f370f(0x23e)](a113_0x5e7fd9['gray']('─'[_0x4f370f(0x21c)](0x32))),console[_0x4f370f(0x23e)](_0x4f370f(0x25f)+_0x56b4a4),console['log']('\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+process['version']),console[_0x4f370f(0x23e)](_0x4f370f(0x1d9)+process[_0x4f370f(0x22e)]+'\x20'+process['arch']);const _0x2585ab=inspectBuiltinSkill();console[_0x4f370f(0x23e)](),console[_0x4f370f(0x23e)](a113_0x5e7fd9['bold'](_0x4f370f(0x264))),console[_0x4f370f(0x23e)](a113_0x5e7fd9[_0x4f370f(0x20b)](_0x4f370f(0x21b)['repeat'](0x1e)));const _0x570351=_0x2585ab['state']===_0x4f370f(0x221)?a113_0x5e7fd9['green']('✓\x20'+_0x2585ab[_0x4f370f(0x246)]):a113_0x5e7fd9[_0x4f370f(0x201)]('✗\x20'+_0x2585ab[_0x4f370f(0x246)]);console['log']('\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x570351),console[_0x4f370f(0x23e)](_0x4f370f(0x22c)+_0x2585ab[_0x4f370f(0x1dd)]),console[_0x4f370f(0x23e)](_0x4f370f(0x1e7)+(_0x2585ab[_0x4f370f(0x249)]||a113_0x5e7fd9['gray']('(unknown)'))),console[_0x4f370f(0x23e)](_0x4f370f(0x20a)+(_0x2585ab[_0x4f370f(0x1e9)]||a113_0x5e7fd9[_0x4f370f(0x20b)](_0x4f370f(0x1f8))));if(_0x2585ab[_0x4f370f(0x1ef)])console[_0x4f370f(0x23e)]('\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x2585ab[_0x4f370f(0x1ef)]);_0x2585ab[_0x4f370f(0x246)]!==_0x4f370f(0x221)&&console[_0x4f370f(0x23e)](_0x4f370f(0x24c)+_0x2585ab[_0x4f370f(0x1f6)]);console[_0x4f370f(0x23e)](),console[_0x4f370f(0x23e)](a113_0x5e7fd9['bold']('\x20\x20Config\x20Files')),console['log'](a113_0x5e7fd9['gray'](_0x4f370f(0x21b)[_0x4f370f(0x21c)](0x1e)));const _0x15a6bc=getGlobalConfigPath(),_0x11872b=getProjectConfigPath();console[_0x4f370f(0x23e)]('\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x15a6bc||a113_0x5e7fd9[_0x4f370f(0x20b)]('(not\x20found)'))),console[_0x4f370f(0x23e)](_0x4f370f(0x229)+(_0x11872b||a113_0x5e7fd9[_0x4f370f(0x20b)](_0x4f370f(0x1f8)))),console['log'](),console['log'](a113_0x5e7fd9[_0x4f370f(0x21a)]('\x20\x20Config\x20JSON')),console[_0x4f370f(0x23e)](a113_0x5e7fd9[_0x4f370f(0x20b)](_0x4f370f(0x21b)[_0x4f370f(0x21c)](0x1e)));const _0x5da47b=(_0x37e6ad,_0x1c0389)=>{const _0x2bdd47=_0x4f370f;if(!_0x1c0389){console[_0x2bdd47(0x23e)]('\x20\x20'+_0x37e6ad[_0x2bdd47(0x223)](0x11)+'\x20'+a113_0x5e7fd9[_0x2bdd47(0x20b)]('(no\x20file)'));return;}const _0xd3fd2c=inspectCliConfigJsonFile(_0x1c0389);if(_0xd3fd2c[_0x2bdd47(0x1e5)]==='ok')console[_0x2bdd47(0x23e)]('\x20\x20'+_0x37e6ad[_0x2bdd47(0x223)](0x11)+'\x20'+a113_0x5e7fd9[_0x2bdd47(0x213)]('✓\x20Valid\x20JSON'));else{if(_0xd3fd2c['status']===_0x2bdd47(0x253))console['log']('\x20\x20'+_0x37e6ad['padEnd'](0x11)+'\x20'+a113_0x5e7fd9[_0x2bdd47(0x231)](_0x2bdd47(0x1e8)));else _0xd3fd2c[_0x2bdd47(0x1e5)]==='missing'?console[_0x2bdd47(0x23e)]('\x20\x20'+_0x37e6ad['padEnd'](0x11)+'\x20'+a113_0x5e7fd9[_0x2bdd47(0x20b)](_0x2bdd47(0x1fb))):(console[_0x2bdd47(0x23e)]('\x20\x20'+_0x37e6ad[_0x2bdd47(0x223)](0x11)+'\x20'+a113_0x5e7fd9['red']('✗\x20Invalid\x20JSON')),console[_0x2bdd47(0x23e)]('\x20\x20'+''[_0x2bdd47(0x223)](0x11)+'\x20'+a113_0x5e7fd9['red'](_0xd3fd2c[_0x2bdd47(0x235)])));}};_0x5da47b(_0x4f370f(0x227),_0x15a6bc),_0x5da47b(_0x4f370f(0x243),_0x11872b);const _0x418747=loadRawConfigLayers(),_0x32cc2e=[{'label':_0x4f370f(0x243),'value':_0x418747[_0x4f370f(0x263)][_0x4f370f(0x1d8)],'present':Object[_0x4f370f(0x20f)][_0x4f370f(0x21d)][_0x4f370f(0x1f4)](_0x418747[_0x4f370f(0x263)],_0x4f370f(0x1d8)),'repairCommand':CLI_BIN_NAME+_0x4f370f(0x22a)},{'label':_0x4f370f(0x227),'value':_0x418747['globalConfig']['region'],'present':Object['prototype']['hasOwnProperty'][_0x4f370f(0x1f4)](_0x418747[_0x4f370f(0x1f7)],'region'),'repairCommand':CLI_BIN_NAME+_0x4f370f(0x257)}][_0x4f370f(0x225)](_0x523880=>_0x523880[_0x4f370f(0x211)]&&isInvalidLovrabetRegion(_0x523880['value']));for(const [_0x10b619,_0x344c1d]of[[_0x4f370f(0x243),_0x418747[_0x4f370f(0x263)]],[_0x4f370f(0x227),_0x418747[_0x4f370f(0x1f7)]]]){const _0x4054b9=_0x344c1d[_0x4f370f(0x210)]&&typeof _0x344c1d[_0x4f370f(0x210)]===_0x4f370f(0x244)?_0x344c1d['apps']:{};for(const [_0x974285,_0x1f4ab6]of Object[_0x4f370f(0x236)](_0x4054b9)){if(!_0x1f4ab6||typeof _0x1f4ab6!=='object'||!Object[_0x4f370f(0x20f)][_0x4f370f(0x21d)][_0x4f370f(0x1f4)](_0x1f4ab6,'region'))continue;isInvalidLovrabetRegion(_0x1f4ab6[_0x4f370f(0x1d8)])&&_0x32cc2e[_0x4f370f(0x220)]({'label':_0x10b619+_0x4f370f(0x209)+_0x974285+'\x22','value':_0x1f4ab6['region'],'present':!![],'repairCommand':_0x4f370f(0x252)+_0x974285+_0x4f370f(0x203)+_0x10b619[_0x4f370f(0x22d)]()+_0x4f370f(0x23b)});}}if(_0x32cc2e[_0x4f370f(0x216)]>0x0){console[_0x4f370f(0x23e)](),console[_0x4f370f(0x23e)](a113_0x5e7fd9[_0x4f370f(0x21a)](_0x4f370f(0x255))),console[_0x4f370f(0x23e)](a113_0x5e7fd9[_0x4f370f(0x20b)](_0x4f370f(0x21b)[_0x4f370f(0x21c)](0x1e)));for(const _0x44863d of _0x32cc2e){console[_0x4f370f(0x23e)]('\x20\x20'+_0x44863d['label']['padEnd'](0x11)+'\x20'+a113_0x5e7fd9[_0x4f370f(0x201)]('✗\x20Invalid\x20'+describeRegionValue(_0x44863d[_0x4f370f(0x260)]))),console[_0x4f370f(0x23e)]('\x20\x20'+(_0x4f370f(0x207)+_0x44863d[_0x4f370f(0x20d)][_0x4f370f(0x22d)]()+':')[_0x4f370f(0x223)](0x10)+'\x20'+_0x44863d['repairCommand']);}}const _0xe8732b=[Object[_0x4f370f(0x20f)][_0x4f370f(0x21d)][_0x4f370f(0x1f4)](_0x418747['globalConfig'],_0x4f370f(0x20e))?'global':null,Object[_0x4f370f(0x20f)][_0x4f370f(0x21d)]['call'](_0x418747['projectConfig'],_0x4f370f(0x20e))?_0x4f370f(0x24d):null][_0x4f370f(0x225)](Boolean);_0xe8732b[_0x4f370f(0x216)]>0x0&&(console[_0x4f370f(0x23e)]('\x20\x20Legacy\x20inherit:\x20\x20\x20'+a113_0x5e7fd9[_0x4f370f(0x231)]('ignored\x20in\x20'+_0xe8732b[_0x4f370f(0x251)](_0x4f370f(0x1e6))+_0x4f370f(0x23b))),_0xe8732b[_0x4f370f(0x205)](_0x4f370f(0x24d))&&console['log'](_0x4f370f(0x1ec)+CLI_BIN_NAME+_0x4f370f(0x25d)),_0xe8732b[_0x4f370f(0x205)](_0x4f370f(0x212))&&console[_0x4f370f(0x23e)](_0x4f370f(0x215)+CLI_BIN_NAME+_0x4f370f(0x1e1)));const _0x5649db=isInvalidLovrabetRegion(_0x5f36de['regionConfiguredValue']??_0x5f36de['raw']?.[_0x4f370f(0x1d8)]);_0x24c8b6&&!_0x5649db&&(console['log'](),console['log'](a113_0x5e7fd9['bold'](_0x4f370f(0x25c))),console[_0x4f370f(0x23e)](a113_0x5e7fd9['gray'](_0x4f370f(0x21b)[_0x4f370f(0x21c)](0x1e))),console[_0x4f370f(0x23e)](_0x4f370f(0x1da)+a113_0x5e7fd9[_0x4f370f(0x201)](_0x4f370f(0x1f9))),console[_0x4f370f(0x23e)](_0x4f370f(0x219)+_0x24c8b6[_0x4f370f(0x235)]),Object['prototype'][_0x4f370f(0x21d)]['call'](_0x418747[_0x4f370f(0x263)],'routing')&&console['log'](_0x4f370f(0x21e)+CLI_BIN_NAME+_0x4f370f(0x256)),Object['prototype'][_0x4f370f(0x21d)]['call'](_0x418747[_0x4f370f(0x1f7)],_0x4f370f(0x1fd))&&console[_0x4f370f(0x23e)]('\x20\x20Repair\x20global:\x20\x20\x20'+CLI_BIN_NAME+_0x4f370f(0x1fe)));console[_0x4f370f(0x23e)](),console[_0x4f370f(0x23e)](a113_0x5e7fd9['bold'](_0x4f370f(0x202))),console['log'](a113_0x5e7fd9[_0x4f370f(0x20b)](_0x4f370f(0x21b)[_0x4f370f(0x21c)](0x1e))),console[_0x4f370f(0x23e)]('\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x5f36de[_0x4f370f(0x1ed)]||a113_0x5e7fd9[_0x4f370f(0x201)](_0x4f370f(0x237))));const _0x466ce5=_0x5649db?a113_0x5e7fd9[_0x4f370f(0x201)](describeRegionValue(_0x5f36de['regionConfiguredValue']??_0x5f36de[_0x4f370f(0x245)]?.[_0x4f370f(0x1d8)])+'\x20(invalid)'):(_0x5f36de[_0x4f370f(0x1d8)]??DEFAULT_LOVRABET_REGION)+'\x20('+(_0x5f36de[_0x4f370f(0x23f)]??_0x4f370f(0x25a))+')';console[_0x4f370f(0x23e)](_0x4f370f(0x248)+_0x466ce5),console['log'](_0x4f370f(0x259)+_0x5f36de[_0x4f370f(0x200)]),console[_0x4f370f(0x23e)](_0x4f370f(0x20c)+_0x5f36de['locale']),console['log']('\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x5f36de[_0x4f370f(0x226)]),console[_0x4f370f(0x23e)](_0x4f370f(0x1db)+(_0x5f36de[_0x4f370f(0x23a)]||a113_0x5e7fd9[_0x4f370f(0x20b)](_0x4f370f(0x1e0)))),console[_0x4f370f(0x23e)]('\x20\x20currentApp:\x20\x20\x20\x20\x20\x20'+(_0x5f36de[_0x4f370f(0x25b)]||a113_0x5e7fd9[_0x4f370f(0x20b)](_0x4f370f(0x1e0)))),console[_0x4f370f(0x23e)](_0x4f370f(0x23c)+(_0x5f36de[_0x4f370f(0x1d7)]||a113_0x5e7fd9['gray'](_0x4f370f(0x1e0)))),console[_0x4f370f(0x23e)](_0x4f370f(0x1f1)+(_0x5f36de[_0x4f370f(0x240)]||a113_0x5e7fd9[_0x4f370f(0x20b)](_0x4f370f(0x242)+DEFAULT_CONFIG_VALUES[_0x4f370f(0x240)]+')'))),console[_0x4f370f(0x23e)](_0x4f370f(0x22f)+(_0x5f36de[_0x4f370f(0x1f5)]??a113_0x5e7fd9[_0x4f370f(0x20b)](_0x4f370f(0x1df)))),console['log'](_0x4f370f(0x1fa)+_0x5f36de[_0x4f370f(0x1e2)]),console[_0x4f370f(0x23e)](_0x4f370f(0x1fc)+_0x5f36de[_0x4f370f(0x217)]),console[_0x4f370f(0x23e)]('\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x5f36de[_0x4f370f(0x25e)]?a113_0x5e7fd9[_0x4f370f(0x213)]('(set,\x20length='+_0x5f36de[_0x4f370f(0x25e)][_0x4f370f(0x216)]+')'):_0x26c32b?a113_0x5e7fd9[_0x4f370f(0x213)]('(set\x20via\x20file,\x20length='+_0x26c32b[_0x4f370f(0x216)]+')'):a113_0x5e7fd9['gray'](_0x4f370f(0x1e0))));const _0x436da5=Object['keys'](_0x5f36de[_0x4f370f(0x210)]);if(_0x436da5[_0x4f370f(0x216)]>0x0){console[_0x4f370f(0x23e)](),console[_0x4f370f(0x23e)](a113_0x5e7fd9['bold'](_0x4f370f(0x218))),console[_0x4f370f(0x23e)](a113_0x5e7fd9[_0x4f370f(0x20b)](_0x4f370f(0x21b)[_0x4f370f(0x21c)](0x1e)));for(const _0x2a28f2 of _0x436da5){const _0x3396b4=_0x5f36de[_0x4f370f(0x210)][_0x2a28f2],_0x1a9560=_0x2a28f2===_0x5f36de[_0x4f370f(0x23a)],_0x215805=_0x2a28f2===_0x5f36de[_0x4f370f(0x25b)],_0x1c775e=_0x215805?a113_0x5e7fd9[_0x4f370f(0x213)](_0x4f370f(0x204)):'',_0x2002c8=_0x1a9560?_0x4f370f(0x1f3):'';console[_0x4f370f(0x23e)]('\x20\x20'+_0x2a28f2+_0x2002c8+_0x1c775e),console[_0x4f370f(0x23e)](_0x4f370f(0x238)+_0x3396b4[_0x4f370f(0x222)]);const _0x256254=_0x418747['projectConfig'][_0x4f370f(0x210)]&&typeof _0x418747[_0x4f370f(0x263)]['apps']===_0x4f370f(0x244)?_0x418747[_0x4f370f(0x263)][_0x4f370f(0x210)]:{},_0x1ec24c=Object['prototype'][_0x4f370f(0x21d)]['call'](_0x256254,_0x2a28f2),_0x7c3b88=isInvalidLovrabetRegion(_0x3396b4['region'])?{'region':_0x5f36de[_0x4f370f(0x1d8)]??DEFAULT_LOVRABET_REGION}:resolveEffectiveRegion({'appRegion':_0x3396b4[_0x4f370f(0x1d8)],'projectRegion':_0x1ec24c?_0x418747[_0x4f370f(0x263)][_0x4f370f(0x1d8)]:undefined,'globalRegion':_0x418747[_0x4f370f(0x1f7)][_0x4f370f(0x1d8)],'mergedRegion':_0x5f36de['raw']['region'],'appName':_0x2a28f2}),_0x19f1b5=buildAppDoctorFields(_0x3396b4,{'region':_0x7c3b88[_0x4f370f(0x1d8)],'env':_0x5f36de[_0x4f370f(0x200)],'apiDir':_0x5f36de[_0x4f370f(0x245)][_0x4f370f(0x226)]||DEFAULT_CONFIG_VALUES[_0x4f370f(0x226)],'cookie':_0x5f36de[_0x4f370f(0x25e)]||_0x26c32b||undefined,'accessKey':_0x5f36de[_0x4f370f(0x206)]});console[_0x4f370f(0x23e)]('\x20\x20\x20\x20region:\x20\x20\x20\x20\x20'+_0x19f1b5[_0x4f370f(0x1d8)][_0x4f370f(0x260)]+'\x20\x20'+a113_0x5e7fd9[_0x4f370f(0x20b)]('('+_0x19f1b5[_0x4f370f(0x1d8)][_0x4f370f(0x262)]+')')),console[_0x4f370f(0x23e)]('\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x19f1b5[_0x4f370f(0x200)][_0x4f370f(0x260)]+'\x20\x20'+a113_0x5e7fd9[_0x4f370f(0x20b)]('('+_0x19f1b5['env']['source']+')')),console[_0x4f370f(0x23e)](_0x4f370f(0x24a)+_0x19f1b5[_0x4f370f(0x226)][_0x4f370f(0x260)]+'\x20\x20'+a113_0x5e7fd9[_0x4f370f(0x20b)]('('+_0x19f1b5[_0x4f370f(0x226)]['source']+')'));const _0x2c152c=_0x19f1b5[_0x4f370f(0x25e)][_0x4f370f(0x260)]?a113_0x5e7fd9[_0x4f370f(0x213)](_0x4f370f(0x254)+_0x19f1b5['cookie']['value'][_0x4f370f(0x216)]+')'):a113_0x5e7fd9[_0x4f370f(0x20b)](_0x4f370f(0x1e0));console[_0x4f370f(0x23e)](_0x4f370f(0x261)+_0x2c152c+'\x20\x20'+a113_0x5e7fd9[_0x4f370f(0x20b)]('('+_0x19f1b5[_0x4f370f(0x25e)]['source']+')'));const _0x5b4cbb=_0x19f1b5[_0x4f370f(0x206)]['value']?a113_0x5e7fd9['green'](_0x4f370f(0x254)+_0x19f1b5[_0x4f370f(0x206)][_0x4f370f(0x260)][_0x4f370f(0x216)]+')'):a113_0x5e7fd9[_0x4f370f(0x20b)]('(none)');console['log'](_0x4f370f(0x24e)+_0x5b4cbb+'\x20\x20'+a113_0x5e7fd9[_0x4f370f(0x20b)]('('+_0x19f1b5[_0x4f370f(0x206)][_0x4f370f(0x262)]+')'));}}console[_0x4f370f(0x23e)](),console[_0x4f370f(0x23e)](a113_0x5e7fd9[_0x4f370f(0x21a)](_0x4f370f(0x214))),console[_0x4f370f(0x23e)](a113_0x5e7fd9['gray']('\x20\x20─'[_0x4f370f(0x21c)](0x1e)));_0x24c8b6?console['log'](_0x4f370f(0x1da)+a113_0x5e7fd9[_0x4f370f(0x201)](_0x4f370f(0x239))):(console[_0x4f370f(0x23e)](_0x4f370f(0x248)+getActiveRegion()),console[_0x4f370f(0x23e)](_0x4f370f(0x21f)+getApiDomain()),console['log'](_0x4f370f(0x1f0)+getUserDomain()),console['log']('\x20\x20runtimeDomain:\x20\x20\x20'+getRuntimeDomain()),console['log'](_0x4f370f(0x24f)+getSkillDomain()),console[_0x4f370f(0x23e)](_0x4f370f(0x22b)+getKbDomain()),console[_0x4f370f(0x23e)]('\x20\x20appDomain:\x20\x20\x20\x20\x20\x20\x20'+getAppDomain()));console[_0x4f370f(0x23e)](),console['log'](a113_0x5e7fd9[_0x4f370f(0x21a)]('\x20\x20Auth')),console[_0x4f370f(0x23e)](a113_0x5e7fd9['gray'](_0x4f370f(0x21b)[_0x4f370f(0x21c)](0x1e)));if(_0x24c8b6)console['log'](_0x4f370f(0x1da)+a113_0x5e7fd9[_0x4f370f(0x231)](_0x4f370f(0x250)));else{if(_0x26c32b){const _0x58cb08=await getIsSessionValid();console[_0x4f370f(0x23e)](_0x4f370f(0x1da)+(_0x58cb08?a113_0x5e7fd9[_0x4f370f(0x213)](_0x4f370f(0x23d)):a113_0x5e7fd9[_0x4f370f(0x201)](_0x4f370f(0x1ea))));}else console[_0x4f370f(0x23e)](_0x4f370f(0x1da)+a113_0x5e7fd9['red']('✗\x20Not\x20logged\x20in'));}return console[_0x4f370f(0x23e)](),{'ok':!![]};}export const doctorDefinition={'service':a113_0x423171(0x1eb),'command':a113_0x423171(0x224),'description':a113_0x423171(0x234),'risk':a113_0x423171(0x1e4),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
@@ -1 +1 @@
1
- const a102_0x333262=a102_0x5d74;(function(_0x9cfcc1,_0x58b662){const _0x2c539f=a102_0x5d74,_0x4b0790=_0x9cfcc1();while(!![]){try{const _0x30f205=-parseInt(_0x2c539f(0x1c7))/0x1+-parseInt(_0x2c539f(0x1bd))/0x2*(-parseInt(_0x2c539f(0x1be))/0x3)+-parseInt(_0x2c539f(0x1c1))/0x4+parseInt(_0x2c539f(0x1c0))/0x5*(parseInt(_0x2c539f(0x1ce))/0x6)+-parseInt(_0x2c539f(0x1b3))/0x7*(-parseInt(_0x2c539f(0x1d1))/0x8)+-parseInt(_0x2c539f(0x1cc))/0x9*(parseInt(_0x2c539f(0x1b4))/0xa)+parseInt(_0x2c539f(0x1b6))/0xb;if(_0x30f205===_0x58b662)break;else _0x4b0790['push'](_0x4b0790['shift']());}catch(_0x3ce701){_0x4b0790['push'](_0x4b0790['shift']());}}}(a102_0x3122,0xc02f9));import{requireDevelopmentUploadFile}from'../../commands/common/local-file.js';function a102_0x5d74(_0x432218,_0x30680e){_0x432218=_0x432218-0x1b2;const _0x3122d8=a102_0x3122();let _0x5d743c=_0x3122d8[_0x432218];return _0x5d743c;}function a102_0x3122(){const _0x51e1fc=['Development\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data','bool','boolean','File','274043uEduzf','9910oeOmSX','Preview:\x20upload\x20','13147376CuewFY','appCode','query-url','download','POST','/smartapi/common/uploadFile','Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','2jtRJAD','3273141HXQFNx','.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','5mKNRYR','3387184BKtfaZ','filepath','filePath','string','str','Uploaded\x20file:\x20','1184913ctyOHs','path','\x20to\x20development\x20app\x20','read','upload','8334dIyjSj','Path\x20to\x20the\x20local\x20file\x20to\x20upload','1420116sYnJIt','Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML','file','248ITzQDY','Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','long-term'];a102_0x3122=function(){return _0x51e1fc;};return a102_0x3122();}import{queryDevelopmentFileUrl,uploadDevelopmentFile}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const FILE_FLAG={'name':'file','type':a102_0x333262(0x1c4),'required':!![],'description':a102_0x333262(0x1cd)},FILEPATH_FLAG={'name':a102_0x333262(0x1c2),'type':a102_0x333262(0x1c4),'required':!![],'description':a102_0x333262(0x1d4)},DOWNLOAD_FLAG={'name':a102_0x333262(0x1b9),'type':a102_0x333262(0x1d6),'description':'Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL'},LONG_TERM_FLAG={'name':'long-term','type':'boolean','description':a102_0x333262(0x1cf)};function requireFilePath(_0x53a151){const _0x59a1aa=_0x53a151['trim']();if(!_0x59a1aa)throw CliErrors['validation']('filePath\x20is\x20required.');return _0x59a1aa;}const fileUpload={'service':a102_0x333262(0x1d0),'command':a102_0x333262(0x1cb),'description':a102_0x333262(0x1bc),'risk':a102_0x333262(0x1ca),'flags':[FILE_FLAG],async 'dryRun'(_0x4be1d4){const _0x3c321a=a102_0x333262,_0x2aff65=requireDevelopmentUploadFile(_0x4be1d4[_0x3c321a(0x1c5)](_0x3c321a(0x1d0)),_0x3c321a(0x1b2));return{'method':_0x3c321a(0x1ba),'url':_0x3c321a(0x1bb),'body':{'appCode':_0x4be1d4[_0x3c321a(0x1b7)],'multipart':{'file':_0x2aff65}},'description':_0x3c321a(0x1b5)+_0x2aff65[_0x3c321a(0x1c8)]+_0x3c321a(0x1c9)+_0x4be1d4['appCode']};},async 'execute'(_0x2fc2bc){const _0x506773=a102_0x333262,_0x58f34b=requireDevelopmentUploadFile(_0x2fc2bc[_0x506773(0x1c5)](_0x506773(0x1d0)),_0x506773(0x1b2)),_0xf0ab29=await uploadDevelopmentFile(_0x2fc2bc[_0x506773(0x1b7)],_0x58f34b[_0x506773(0x1c8)]);return{'ok':!![],'data':_0xf0ab29,'message':_0xf0ab29[_0x506773(0x1c3)]?_0x506773(0x1c6)+_0xf0ab29[_0x506773(0x1c3)]+_0x506773(0x1bf):_0x506773(0x1d2)};}},fileQueryUrl={'service':a102_0x333262(0x1d0),'command':a102_0x333262(0x1b8),'description':'Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20or\x20immediate\x20access','risk':a102_0x333262(0x1ca),'flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0x296a91){const _0x3d3eea=a102_0x333262,_0x149243=requireFilePath(_0x296a91[_0x3d3eea(0x1c5)](_0x3d3eea(0x1c2))),_0x4d3c9c=await queryDevelopmentFileUrl(_0x149243,{'download':_0x296a91[_0x3d3eea(0x1d5)]('download'),'longTerm':_0x296a91[_0x3d3eea(0x1d5)](_0x3d3eea(0x1d3))});return{'ok':!![],'data':_0x4d3c9c};}};export const fileDefinitions=[fileUpload,fileQueryUrl];
1
+ const a114_0x10fcd6=a114_0x58a1;(function(_0x163df2,_0x11b5ad){const _0x265acc=a114_0x58a1,_0x5e49c0=_0x163df2();while(!![]){try{const _0x113793=parseInt(_0x265acc(0x1d0))/0x1*(parseInt(_0x265acc(0x1db))/0x2)+parseInt(_0x265acc(0x1e3))/0x3+parseInt(_0x265acc(0x1df))/0x4*(parseInt(_0x265acc(0x1cd))/0x5)+parseInt(_0x265acc(0x1d4))/0x6+parseInt(_0x265acc(0x1c8))/0x7*(parseInt(_0x265acc(0x1d9))/0x8)+parseInt(_0x265acc(0x1da))/0x9+-parseInt(_0x265acc(0x1c4))/0xa;if(_0x113793===_0x11b5ad)break;else _0x5e49c0['push'](_0x5e49c0['shift']());}catch(_0x5c76d2){_0x5e49c0['push'](_0x5e49c0['shift']());}}}(a114_0x5bc0,0xe8ebf));import{requireDevelopmentUploadFile}from'../../commands/common/local-file.js';import{queryDevelopmentFileUrl,uploadDevelopmentFile}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a114_0x58a1(_0x18c749,_0x34b2f9){_0x18c749=_0x18c749-0x1c4;const _0x5bc0fd=a114_0x5bc0();let _0x58a1cb=_0x5bc0fd[_0x18c749];return _0x58a1cb;}const FILE_FLAG={'name':a114_0x10fcd6(0x1c7),'type':a114_0x10fcd6(0x1d6),'required':!![],'description':'Path\x20to\x20the\x20local\x20file\x20to\x20upload'},FILEPATH_FLAG={'name':a114_0x10fcd6(0x1e1),'type':a114_0x10fcd6(0x1d6),'required':!![],'description':a114_0x10fcd6(0x1cf)},DOWNLOAD_FLAG={'name':a114_0x10fcd6(0x1ca),'type':a114_0x10fcd6(0x1c6),'description':'Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL'},LONG_TERM_FLAG={'name':a114_0x10fcd6(0x1d8),'type':a114_0x10fcd6(0x1c6),'description':'Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML'};function requireFilePath(_0x89aea){const _0x75a88b=a114_0x10fcd6,_0x32c439=_0x89aea['trim']();if(!_0x32c439)throw CliErrors[_0x75a88b(0x1d7)](_0x75a88b(0x1d1));return _0x32c439;}function a114_0x5bc0(){const _0x3d3e3b=['Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20or\x20immediate\x20access','boolean','file','7aJUwlU','bool','download','read','Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','50BNDHZr','Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','Development\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data','3PtwMcQ','filePath\x20is\x20required.','appCode','str','9289542JoKULG','upload','string','validation','long-term','10406248xjAMdt','17043777AXxPFV','510568wPQQfV','.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','Preview:\x20upload\x20','path','688108Bvgrzv','POST','filepath','File','4409049zFHuOk','Uploaded\x20file:\x20','77445490NCrJue'];a114_0x5bc0=function(){return _0x3d3e3b;};return a114_0x5bc0();}const fileUpload={'service':a114_0x10fcd6(0x1c7),'command':a114_0x10fcd6(0x1d5),'description':a114_0x10fcd6(0x1cc),'risk':'read','flags':[FILE_FLAG],async 'dryRun'(_0x5b0917){const _0x243d7e=a114_0x10fcd6,_0x2e1627=requireDevelopmentUploadFile(_0x5b0917[_0x243d7e(0x1d3)](_0x243d7e(0x1c7)),_0x243d7e(0x1e2));return{'method':_0x243d7e(0x1e0),'url':'/smartapi/common/uploadFile','body':{'appCode':_0x5b0917[_0x243d7e(0x1d2)],'multipart':{'file':_0x2e1627}},'description':_0x243d7e(0x1dd)+_0x2e1627[_0x243d7e(0x1de)]+'\x20to\x20development\x20app\x20'+_0x5b0917[_0x243d7e(0x1d2)]};},async 'execute'(_0xb2c1a8){const _0x29b773=a114_0x10fcd6,_0x4aba87=requireDevelopmentUploadFile(_0xb2c1a8['str'](_0x29b773(0x1c7)),_0x29b773(0x1e2)),_0x512f68=await uploadDevelopmentFile(_0xb2c1a8[_0x29b773(0x1d2)],_0x4aba87[_0x29b773(0x1de)]);return{'ok':!![],'data':_0x512f68,'message':_0x512f68['filePath']?_0x29b773(0x1e4)+_0x512f68['filePath']+_0x29b773(0x1dc):_0x29b773(0x1ce)};}},fileQueryUrl={'service':a114_0x10fcd6(0x1c7),'command':'query-url','description':a114_0x10fcd6(0x1c5),'risk':a114_0x10fcd6(0x1cb),'flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0x22012f){const _0x475121=a114_0x10fcd6,_0x56fd77=requireFilePath(_0x22012f[_0x475121(0x1d3)](_0x475121(0x1e1))),_0x56fd10=await queryDevelopmentFileUrl(_0x56fd77,{'download':_0x22012f[_0x475121(0x1c9)](_0x475121(0x1ca)),'longTerm':_0x22012f[_0x475121(0x1c9)](_0x475121(0x1d8))});return{'ok':!![],'data':_0x56fd10};}};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 a115_0x5e5d(_0x2847d9,_0x1d3f36){_0x2847d9=_0x2847d9-0x167;const _0x46f759=a115_0x46f7();let _0x5e5d29=_0x46f759[_0x2847d9];return _0x5e5d29;}const a115_0x4286b5=a115_0x5e5d;(function(_0x454333,_0xa0e4){const _0x59098b=a115_0x5e5d,_0x3b3b52=_0x454333();while(!![]){try{const _0xf58d9d=-parseInt(_0x59098b(0x167))/0x1*(-parseInt(_0x59098b(0x171))/0x2)+-parseInt(_0x59098b(0x16e))/0x3+parseInt(_0x59098b(0x176))/0x4*(-parseInt(_0x59098b(0x169))/0x5)+-parseInt(_0x59098b(0x173))/0x6+-parseInt(_0x59098b(0x170))/0x7*(-parseInt(_0x59098b(0x16d))/0x8)+-parseInt(_0x59098b(0x178))/0x9+parseInt(_0x59098b(0x179))/0xa*(parseInt(_0x59098b(0x17a))/0xb);if(_0xf58d9d===_0xa0e4)break;else _0x3b3b52['push'](_0x3b3b52['shift']());}catch(_0x66db96){_0x3b3b52['push'](_0x3b3b52['shift']());}}}(a115_0x46f7,0x362d4));function a115_0x46f7(){const _0x3ce7c8=['create','862644DIoPhZ','flowName','POST','2908VGeRfT','appCode','234819sXXMmm','18520IdqCsX','3399IZavZT','4IrwsCE','Create\x20a\x20draft\x20flow\x20definition\x20from\x20a\x20local\x20FlowConfig\x20file','605kiFZxt','datasetCode','Created\x20flow\x20','write','333232hdtRJI','1322874edvuQW','\x20(id=','49AsCGuh','28426iiFpLM'];a115_0x46f7=function(){return _0x3ce7c8;};return a115_0x46f7();}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{asDryRunResult}from'../../commands/common/dry-run.js';import{createFlowDefinition}from'../../core/api-client.js';import{FLOW_FILE_FLAG,FLOW_PATHS,confirmFlowWrite,flowSelector,prepareFlowWrite,readFlowFilePath}from'../../commands/flow/shared.js';export const flowCreate={'service':'flow','command':a115_0x4286b5(0x172),'description':a115_0x4286b5(0x168),'risk':a115_0x4286b5(0x16c),'flags':[FLOW_FILE_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x26f2f1){readFlowFilePath(_0x26f2f1);},async 'dryRun'(_0x461557){const _0x1053d8=a115_0x4286b5,{request:_0x543b25,warnings:_0x5157cb}=await prepareFlowWrite(readFlowFilePath(_0x461557),_0x461557['appCode']);return asDryRunResult({'operation':_0x1053d8(0x172),'selector':{'appCode':_0x461557[_0x1053d8(0x177)],'flowName':_0x543b25[_0x1053d8(0x174)],..._0x543b25[_0x1053d8(0x16a)]?{'datasetCode':_0x543b25[_0x1053d8(0x16a)]}:{}},'before':null,'after':_0x543b25,'request':_0x543b25,'dryRun':!![],'backend':{'method':_0x1053d8(0x175),'path':FLOW_PATHS[_0x1053d8(0x172)]},'warnings':_0x5157cb},{'method':'POST','url':FLOW_PATHS[_0x1053d8(0x172)]});},async 'execute'(_0x14652a){const _0x23d627=a115_0x4286b5,{request:_0x332abc,warnings:_0xa87dd6}=await prepareFlowWrite(readFlowFilePath(_0x14652a),_0x14652a[_0x23d627(0x177)]);await confirmFlowWrite(_0x14652a,'create',_0x332abc);const _0x358bfb=await createFlowDefinition(_0x332abc);return{'ok':!![],'data':{'operation':_0x23d627(0x172),'selector':flowSelector(_0x14652a['appCode'],_0x358bfb['id'],_0x358bfb),'before':null,'after':_0x358bfb,'dryRun':![],'backend':{'method':_0x23d627(0x175),'path':FLOW_PATHS[_0x23d627(0x172)]},'warnings':_0xa87dd6},'message':_0x23d627(0x16b)+(_0x358bfb['flowName']||_0x332abc[_0x23d627(0x174)])+(_0x358bfb['id']?_0x23d627(0x16f)+_0x358bfb['id']+')':'')};}};
@@ -0,0 +1,2 @@
1
+ import type { CommandDefinition } from "../../framework/types.js";
2
+ export declare const flowDetail: CommandDefinition;
@@ -0,0 +1 @@
1
+ function a116_0x1fe2(_0x441430,_0x64f9ac){_0x441430=_0x441430-0x1c9;const _0x4762c5=a116_0x4762();let _0x1fe2f2=_0x4762c5[_0x441430];return _0x1fe2f2;}const a116_0x2bc2fb=a116_0x1fe2;(function(_0x4cd6e2,_0x2de712){const _0x26be78=a116_0x1fe2,_0x2e0359=_0x4cd6e2();while(!![]){try{const _0x1feac9=-parseInt(_0x26be78(0x1dd))/0x1*(parseInt(_0x26be78(0x1cf))/0x2)+-parseInt(_0x26be78(0x1e0))/0x3+-parseInt(_0x26be78(0x1d8))/0x4+-parseInt(_0x26be78(0x1e5))/0x5+parseInt(_0x26be78(0x1e7))/0x6*(parseInt(_0x26be78(0x1d2))/0x7)+-parseInt(_0x26be78(0x1d3))/0x8*(-parseInt(_0x26be78(0x1c9))/0x9)+-parseInt(_0x26be78(0x1de))/0xa*(-parseInt(_0x26be78(0x1db))/0xb);if(_0x1feac9===_0x2de712)break;else _0x2e0359['push'](_0x2e0359['shift']());}catch(_0x466ced){_0x2e0359['push'](_0x2e0359['shift']());}}}(a116_0x4762,0x54224));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';function a116_0x4762(){const _0xc8f562=['207AsaGHd','\x20to\x20','Flow\x20','warnings','FlowConfig\x20output\x20already\x20exists:\x20','Get\x20one\x20design-time\x20flow\x20definition','6CzAerO','config','validation','959yrYZud','149992WQRTGV','Wrote\x20FlowConfig\x20for\x20','Pass\x20--force\x20to\x20overwrite\x20it.','path','code','763384NBvXNo','boolean','flowCode','11fqjgTO','ENOENT','178417kprGvq','12876790dPpWXS','str','1008762AGSLTV','EEXIST','output','flow','appCode','1901530itAojj','Write\x20a\x20portable\x20normalized\x20FlowConfig\x20JSON\x20file','2994roxdUR','flowName'];a116_0x4762=function(){return _0xc8f562;};return a116_0x4762();}import{CliErrors}from'../../errors.js';import{FLOW_ID_FLAG,flowDefinitionToConfig,readFlowId}from'../../commands/flow/shared.js';export const flowDetail={'service':a116_0x2bc2fb(0x1e3),'command':'detail','description':a116_0x2bc2fb(0x1ce),'risk':'read','flags':[FLOW_ID_FLAG,{'name':a116_0x2bc2fb(0x1e2),'type':'string','description':a116_0x2bc2fb(0x1e6)},{'name':'force','type':a116_0x2bc2fb(0x1d9),'description':'Overwrite\x20an\x20existing\x20output\x20file'},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x25820a){readFlowId(_0x25820a);},async 'execute'(_0xda3f23){const _0x244047=a116_0x2bc2fb,_0x5f4b80=readFlowId(_0xda3f23),_0x139331=_0xda3f23[_0x244047(0x1df)](_0x244047(0x1e2))['trim'](),_0x40b52a=_0x139331?resolve(_0x139331):undefined;if(_0x40b52a&&!_0xda3f23['bool']('force')&&await fileExists(_0x40b52a))throw CliErrors[_0x244047(0x1d1)](_0x244047(0x1cd)+_0x40b52a,_0x244047(0x1d5));const _0x102756=await getFlowDefinition(_0xda3f23[_0x244047(0x1e4)],_0x5f4b80);let _0x55f5b3;if(_0x40b52a){const _0x4e7ead=flowDefinitionToConfig(_0x102756);await mkdir(dirname(_0x40b52a),{'recursive':!![]});try{await writeNormalizedFlowConfig(_0x40b52a,_0x4e7ead[_0x244047(0x1d0)],{'overwrite':_0xda3f23['bool']('force')});}catch(_0xb46456){if(isAlreadyExistsError(_0xb46456))throw CliErrors[_0x244047(0x1d1)](_0x244047(0x1cd)+_0x40b52a,_0x244047(0x1d5));throw _0xb46456;}_0x55f5b3={'path':_0x40b52a,'warnings':_0x4e7ead[_0x244047(0x1cc)]};}return{'ok':!![],'data':{'flow':_0x102756,..._0x55f5b3?{'output':_0x55f5b3}:{}},'message':_0x55f5b3?_0x244047(0x1d4)+(_0x102756[_0x244047(0x1e8)]||_0x102756['flowCode']||_0x5f4b80)+_0x244047(0x1ca)+_0x55f5b3[_0x244047(0x1d6)]:_0x244047(0x1cb)+(_0x102756[_0x244047(0x1e8)]||_0x102756[_0x244047(0x1da)]||_0x5f4b80)};}};async function fileExists(_0x480ae9){try{return await stat(_0x480ae9),!![];}catch(_0x18da75){return!isNotFoundError(_0x18da75);}}function isNotFoundError(_0x502ecd){const _0x13c3c9=a116_0x2bc2fb;return _0x502ecd?.[_0x13c3c9(0x1d7)]===_0x13c3c9(0x1dc);}function isAlreadyExistsError(_0xa3084f){const _0x489708=a116_0x2bc2fb;return _0xa3084f?.[_0x489708(0x1d7)]===_0x489708(0x1e1);}
@@ -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(_0x403a6e,_0x16acc0){const _0x44b782=a117_0x473f,_0x21c7c9=_0x403a6e();while(!![]){try{const _0x10e317=parseInt(_0x44b782(0x183))/0x1*(-parseInt(_0x44b782(0x17f))/0x2)+-parseInt(_0x44b782(0x17c))/0x3+-parseInt(_0x44b782(0x182))/0x4*(-parseInt(_0x44b782(0x184))/0x5)+-parseInt(_0x44b782(0x17d))/0x6+parseInt(_0x44b782(0x181))/0x7+parseInt(_0x44b782(0x185))/0x8+parseInt(_0x44b782(0x180))/0x9*(parseInt(_0x44b782(0x17e))/0xa);if(_0x10e317===_0x16acc0)break;else _0x21c7c9['push'](_0x21c7c9['shift']());}catch(_0x2fcda2){_0x21c7c9['push'](_0x21c7c9['shift']());}}}(a117_0x131e,0xc8334));import{flowValidate}from'../../commands/flow/validate.js';function a117_0x473f(_0x36505b,_0x114b2e){_0x36505b=_0x36505b-0x17c;const _0x131e0c=a117_0x131e();let _0x473f69=_0x131e0c[_0x36505b];return _0x473f69;}import{flowList}from'../../commands/flow/list.js';import{flowDetail}from'../../commands/flow/detail.js';import{flowCreate}from'../../commands/flow/create.js';import{flowUpdate}from'../../commands/flow/update.js';import{flowPublish}from'../../commands/flow/publish.js';import{flowRuntimeRoleList}from'../../commands/flow/runtime-role-list.js';function a117_0x131e(){const _0x241385=['519976DRWWVF','639sizeNX','10539767tpTfrQ','4QHYBET','6PXNAwk','5146975kMoxCW','11517936JmvtNU','2554776SvnNKi','5287386uStTtu','19430DnRYUg'];a117_0x131e=function(){return _0x241385;};return a117_0x131e();}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 a118_0x4869ce=a118_0x5c49;(function(_0x5c0cce,_0x141c5e){const _0x7e26d2=a118_0x5c49,_0x4538d7=_0x5c0cce();while(!![]){try{const _0x3da1ea=parseInt(_0x7e26d2(0xcb))/0x1*(parseInt(_0x7e26d2(0xe9))/0x2)+parseInt(_0x7e26d2(0xe4))/0x3+-parseInt(_0x7e26d2(0xef))/0x4*(parseInt(_0x7e26d2(0xc9))/0x5)+parseInt(_0x7e26d2(0xee))/0x6*(-parseInt(_0x7e26d2(0xe7))/0x7)+-parseInt(_0x7e26d2(0xda))/0x8*(parseInt(_0x7e26d2(0xdd))/0x9)+parseInt(_0x7e26d2(0xea))/0xa*(-parseInt(_0x7e26d2(0xd5))/0xb)+parseInt(_0x7e26d2(0xdf))/0xc;if(_0x3da1ea===_0x141c5e)break;else _0x4538d7['push'](_0x4538d7['shift']());}catch(_0xe9e3f3){_0x4538d7['push'](_0x4538d7['shift']());}}}(a118_0x56d4,0xa2dae));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a118_0x56d4(){const _0x2c9469=['Filter\x20by\x20flow\x20status','7981808esWDvu','page-size','Filter\x20by\x20flow\x20type','9PjnzhO','List\x20design-time\x20flow\x20definitions\x20for\x20the\x20current\x20app','16140912oYvCBZ','published','Page\x20number\x20(1-based)','number','Filter\x20by\x20flow\x20name','2339292uAPwaC','dataset-code','--page-size\x20must\x20be\x20a\x20positive\x20integer.','70gvDMcE','appCode','1292828apwakk','80QjbsPu','validation','Found\x20','flow','545022fCnuEl','1382284qVboHL','str','flow-type','list','10KKlAiH','Filter\x20by\x20exact\x20server-generated\x20flow\x20code','2BTfUmR','isSafeInteger','flow-code','Page\x20size','\x20flow\x20definition(s)','read','page','num','flow-name','--page\x20must\x20be\x20a\x20positive\x20integer.','210892SWpUCb','flow-status','string','length'];a118_0x56d4=function(){return _0x2c9469;};return a118_0x56d4();}import{listFlowDefinitions}from'../../core/api-client.js';function a118_0x5c49(_0x6a9ce5,_0x30b6a4){_0x6a9ce5=_0x6a9ce5-0xc6;const _0x56d4db=a118_0x56d4();let _0x5c49ce=_0x56d4db[_0x6a9ce5];return _0x5c49ce;}import{CliErrors}from'../../errors.js';const FLOW_STATUSES=['draft',a118_0x4869ce(0xe0)];export const flowList={'service':a118_0x4869ce(0xed),'command':a118_0x4869ce(0xc8),'description':a118_0x4869ce(0xde),'risk':a118_0x4869ce(0xd0),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a118_0x4869ce(0xcd),'type':a118_0x4869ce(0xd7),'description':a118_0x4869ce(0xca)},{'name':a118_0x4869ce(0xd3),'type':'string','description':a118_0x4869ce(0xe3)},{'name':'flow-status','type':a118_0x4869ce(0xd7),'description':a118_0x4869ce(0xd9),'enum':FLOW_STATUSES},{'name':'dataset-code','type':a118_0x4869ce(0xd7),'description':'Filter\x20by\x20dataset\x20code'},{'name':a118_0x4869ce(0xc7),'type':'string','description':a118_0x4869ce(0xdc)},{'name':'page','type':a118_0x4869ce(0xe2),'description':a118_0x4869ce(0xe1),'default':0x1},{'name':a118_0x4869ce(0xdb),'type':'number','description':a118_0x4869ce(0xce),'default':0x14}],async 'validate'(_0x21378d){const _0x27ba6f=a118_0x4869ce,_0x4c4952=_0x21378d[_0x27ba6f(0xd2)]('page',0x1),_0x1ab2f7=_0x21378d[_0x27ba6f(0xd2)](_0x27ba6f(0xdb),0x14);if(!Number[_0x27ba6f(0xcc)](_0x4c4952)||_0x4c4952<0x1)throw CliErrors[_0x27ba6f(0xeb)](_0x27ba6f(0xd4));if(!Number[_0x27ba6f(0xcc)](_0x1ab2f7)||_0x1ab2f7<0x1)throw CliErrors[_0x27ba6f(0xeb)](_0x27ba6f(0xe6));},async 'execute'(_0x425880){const _0x247b89=a118_0x4869ce,{items:_0x17ede6,paging:_0x5d623e}=await listFlowDefinitions(_0x425880[_0x247b89(0xe8)],{'flowCode':optionalString(_0x425880[_0x247b89(0xc6)](_0x247b89(0xcd))),'flowName':optionalString(_0x425880[_0x247b89(0xc6)](_0x247b89(0xd3))),'flowStatus':optionalString(_0x425880[_0x247b89(0xc6)](_0x247b89(0xd6))),'datasetCode':optionalString(_0x425880[_0x247b89(0xc6)](_0x247b89(0xe5))),'flowType':optionalString(_0x425880['str']('flow-type')),'pageNum':_0x425880[_0x247b89(0xd2)](_0x247b89(0xd1),0x1),'pageSize':_0x425880[_0x247b89(0xd2)]('page-size',0x14)});return{'ok':!![],'data':{'appCode':_0x425880[_0x247b89(0xe8)],'flows':_0x17ede6,'paging':_0x5d623e},'message':_0x247b89(0xec)+_0x17ede6[_0x247b89(0xd8)]+_0x247b89(0xcf)};}};function optionalString(_0x3d815e){const _0x5e9048=_0x3d815e['trim']();return _0x5e9048||undefined;}
@@ -0,0 +1,2 @@
1
+ import type { CommandDefinition } from "../../framework/types.js";
2
+ export declare const flowPublish: CommandDefinition;
@@ -0,0 +1 @@
1
+ function a119_0x375a(_0x540bb2,_0x4b7c76){_0x540bb2=_0x540bb2-0x16f;const _0x324bd2=a119_0x324b();let _0x375a22=_0x324bd2[_0x540bb2];return _0x375a22;}function a119_0x324b(){const _0x4528e1=['147006lOIBet','7ZUJJpC','POST','flow','3eFCGet','Publish\x20the\x20current\x20flow\x20definition\x20draft','flowCode','Published\x20flow\x20','flowName','published','600GqwtMs','51733LsELrN','964304akjZCN','591408YZaipS','494732jauvXq','2438450wHNzSm','publish','1429893CNjWrz','1Fdpedd','5BoofKY','appCode'];a119_0x324b=function(){return _0x4528e1;};return a119_0x324b();}const a119_0x598f6f=a119_0x375a;(function(_0x2781ea,_0x3a1f82){const _0x20f776=a119_0x375a,_0x3fd874=_0x2781ea();while(!![]){try{const _0x4d23d3=-parseInt(_0x20f776(0x171))/0x1*(-parseInt(_0x20f776(0x174))/0x2)+parseInt(_0x20f776(0x178))/0x3*(-parseInt(_0x20f776(0x182))/0x4)+parseInt(_0x20f776(0x172))/0x5*(-parseInt(_0x20f776(0x181))/0x6)+-parseInt(_0x20f776(0x175))/0x7*(-parseInt(_0x20f776(0x180))/0x8)+parseInt(_0x20f776(0x170))/0x9+-parseInt(_0x20f776(0x183))/0xa+-parseInt(_0x20f776(0x17f))/0xb*(-parseInt(_0x20f776(0x17e))/0xc);if(_0x4d23d3===_0x3a1f82)break;else _0x3fd874['push'](_0x3fd874['shift']());}catch(_0x48e998){_0x3fd874['push'](_0x3fd874['shift']());}}}(a119_0x324b,0x1dc74));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':a119_0x598f6f(0x177),'command':'publish','description':a119_0x598f6f(0x179),'risk':'high-risk-write','flags':[FLOW_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x518f5d){readFlowId(_0x518f5d);},async 'dryRun'(_0x1dfc10){const _0x1e4e6c=a119_0x598f6f,_0x5acb72=readFlowId(_0x1dfc10);return buildFlowIdDryRun(_0x1e4e6c(0x16f),FLOW_PATHS[_0x1e4e6c(0x16f)],_0x1dfc10['appCode'],_0x5acb72,{'id':_0x5acb72,'flowStatus':_0x1e4e6c(0x17d)});},async 'execute'(_0x4e6cd2){const _0x5cfbc7=a119_0x598f6f,_0xdb442f=readFlowId(_0x4e6cd2),_0xa0515d=await publishFlowDefinition(_0x4e6cd2[_0x5cfbc7(0x173)],_0xdb442f);return{'ok':!![],'data':{'operation':_0x5cfbc7(0x16f),'selector':flowSelector(_0x4e6cd2[_0x5cfbc7(0x173)],_0xdb442f,_0xa0515d),'before':null,'after':_0xa0515d,'dryRun':![],'backend':{'method':_0x5cfbc7(0x176),'path':FLOW_PATHS[_0x5cfbc7(0x16f)]},'warnings':[]},'message':_0x5cfbc7(0x17b)+(_0xa0515d[_0x5cfbc7(0x17c)]||_0xa0515d[_0x5cfbc7(0x17a)]||_0xdb442f)};}};
@@ -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 a120_0x4f0e74=a120_0x495d;(function(_0x39b103,_0xc10d1e){const _0x4cb07c=a120_0x495d,_0x3738df=_0x39b103();while(!![]){try{const _0x20ef70=-parseInt(_0x4cb07c(0x1b5))/0x1+-parseInt(_0x4cb07c(0x1c5))/0x2*(parseInt(_0x4cb07c(0x1be))/0x3)+-parseInt(_0x4cb07c(0x19c))/0x4+parseInt(_0x4cb07c(0x1ac))/0x5+parseInt(_0x4cb07c(0x1ab))/0x6+parseInt(_0x4cb07c(0x1b7))/0x7+-parseInt(_0x4cb07c(0x1b6))/0x8*(-parseInt(_0x4cb07c(0x1bc))/0x9);if(_0x20ef70===_0xc10d1e)break;else _0x3738df['push'](_0x3738df['shift']());}catch(_0x113a08){_0x3738df['push'](_0x3738df['shift']());}}}(a120_0x1501,0x1a393));import{CliErrors}from'../../errors.js';export const FLOW_RUNTIME_PAGE_FLAG={'name':a120_0x4f0e74(0x1a5),'type':a120_0x4f0e74(0x19d),'description':a120_0x4f0e74(0x1c3),'default':0x1};export const FLOW_RUNTIME_PAGE_SIZE_FLAG={'name':a120_0x4f0e74(0x19e),'type':a120_0x4f0e74(0x19d),'description':a120_0x4f0e74(0x1a3),'default':0x14};function a120_0x495d(_0x5e763f,_0x4018e3){_0x5e763f=_0x5e763f-0x19a;const _0x15017e=a120_0x1501();let _0x495d91=_0x15017e[_0x5e763f];return _0x495d91;}export const FLOW_RUNTIME_ROLE_REF_FLAG={'name':a120_0x4f0e74(0x1b3),'type':'string','required':!![],'description':a120_0x4f0e74(0x1bb)};export function readRuntimePagination(_0x28e7f3){const _0x2a26b3=a120_0x4f0e74,_0x1d727e=_0x28e7f3[_0x2a26b3(0x1a2)](_0x2a26b3(0x1a5),0x1),_0x49399d=_0x28e7f3[_0x2a26b3(0x1a2)]('page-size',0x14);if(!Number[_0x2a26b3(0x1a0)](_0x1d727e)||_0x1d727e<0x1)throw CliErrors[_0x2a26b3(0x1ae)](_0x2a26b3(0x1c2));if(!Number['isSafeInteger'](_0x49399d)||_0x49399d<0x1||_0x49399d>0x64)throw CliErrors[_0x2a26b3(0x1ae)](_0x2a26b3(0x1a6));return{'page':_0x1d727e,'pageSize':_0x49399d};}export function paginateRuntimeItems(_0x49384a,_0x344a52,_0x5b65a6){const _0x1d663a=a120_0x4f0e74,_0x2fc163=(_0x344a52-0x1)*_0x5b65a6;return{'items':_0x49384a[_0x1d663a(0x1a1)](_0x2fc163,_0x2fc163+_0x5b65a6),'paging':{'currentPage':_0x344a52,'pageSize':_0x5b65a6,'totalCount':_0x49384a[_0x1d663a(0x1a7)]}};}export function projectRuntimeRole(_0x5363c1){const _0x558722=a120_0x4f0e74;return{'id':_0x5363c1['id'],'roleName':_0x5363c1['roleName']??null,'roleType':_0x5363c1[_0x558722(0x1b4)]??null,'remark':_0x5363c1[_0x558722(0x1bd)]??null,'userCount':_0x5363c1[_0x558722(0x19b)]??0x0,'permitCount':_0x5363c1['permitCount']??0x0};}function a120_0x1501(){const _0x2f7df9=['remark','843zRwHGh','\x22\x20not\x20found\x20in\x20app\x20','join','test','--page\x20must\x20be\x20a\x20positive\x20integer.','Page\x20index\x20(1-based)','nickName','400MoMxhm','filter','userCount','289320QPtwuG','number','page-size','trim','isSafeInteger','slice','num','Page\x20size\x20(1-100)','Runtime\x20role\x20name\x20\x22','page','--page-size\x20must\x20be\x20an\x20integer\x20between\x201\x20and\x20100.','length','userId','username','string','483330aGLmpb','362995FATiAV','code','validation','displayName','nickname','Disambiguate\x20with\x20--role\x20<id>.','roleName','role','roleType','18487CRQxLo','3624YZarCK','445725IjeCNY','map','Run\x20`flow\x20runtime-role-list`\x20to\x20see\x20runtime\x20roles.','Pass\x20--role\x20<id|name>.','Runtime\x20role\x20id\x20or\x20exact\x20role\x20name','747cYfwBv'];a120_0x1501=function(){return _0x2f7df9;};return a120_0x1501();}export function projectRuntimeUser(_0x36f947){const _0x2705e5=a120_0x4f0e74,_0x566a97=normalizeRuntimeUserId(_0x36f947[_0x2705e5(0x1ad)]);if(!_0x566a97)return null;return{'userId':_0x566a97,'username':_0x36f947['userName']??null,'nickname':_0x36f947[_0x2705e5(0x1c4)]??null,'displayName':_0x36f947[_0x2705e5(0x1af)]??null,'email':_0x36f947['email']??null,'status':_0x36f947['status']??null};}export function projectRuntimeRoleMember(_0x2cde7b){const _0x3a0542=a120_0x4f0e74,_0x36bc98=normalizeRuntimeUserId(_0x2cde7b[_0x3a0542(0x1a8)]);if(!_0x36bc98)return null;return{'userId':_0x36bc98,'username':_0x2cde7b[_0x3a0542(0x1a9)]??null,'nickname':_0x2cde7b[_0x3a0542(0x1b0)]??null};}export function readRuntimeRoleRef(_0x508793){const _0xe05e05=a120_0x4f0e74,_0x39764d=_0x508793['str'](_0xe05e05(0x1b3))[_0xe05e05(0x19f)]();if(!_0x39764d)throw CliErrors['flagMissing'](_0xe05e05(0x1b3),_0xe05e05(0x1ba));return _0x39764d;}export function resolveRuntimeRoleGroup(_0x475ea8,_0x540de6,_0x161ea5){const _0xc7c5fa=a120_0x4f0e74,_0x454bbd=/^\d+$/[_0xc7c5fa(0x1c1)](_0x540de6)?_0x161ea5['filter'](_0x30bd61=>_0x30bd61['id']===Number(_0x540de6)):_0x161ea5[_0xc7c5fa(0x19a)](_0x507ab9=>_0x507ab9[_0xc7c5fa(0x1b2)]===_0x540de6);if(_0x454bbd[_0xc7c5fa(0x1a7)]===0x0)throw CliErrors[_0xc7c5fa(0x1ae)]('Runtime\x20role\x20\x22'+_0x540de6+_0xc7c5fa(0x1bf)+_0x475ea8+'.',_0xc7c5fa(0x1b9));if(_0x454bbd[_0xc7c5fa(0x1a7)]>0x1){const _0x4d905b=_0x454bbd[_0xc7c5fa(0x1b8)](_0x301ae6=>_0x301ae6['id'])[_0xc7c5fa(0x1c0)](',\x20');throw CliErrors['validation'](_0xc7c5fa(0x1a4)+_0x540de6+'\x22\x20is\x20ambiguous\x20(ids:\x20'+_0x4d905b+').',_0xc7c5fa(0x1b1));}return _0x454bbd[0x0];}function normalizeRuntimeUserId(_0x2edaf2){const _0x42fcd4=a120_0x4f0e74;if(typeof _0x2edaf2!==_0x42fcd4(0x1aa)&&typeof _0x2edaf2!=='number')return null;const _0x22a77e=String(_0x2edaf2)[_0x42fcd4(0x19f)]();return _0x22a77e||null;}
@@ -0,0 +1,2 @@
1
+ import type { CommandDefinition } from "../../framework/types.js";
2
+ export declare const flowRuntimeRoleList: CommandDefinition;
@@ -0,0 +1 @@
1
+ const a121_0x25d0a2=a121_0x33dd;(function(_0x2923dc,_0x5b1f50){const _0x3f32b3=a121_0x33dd,_0x3da28b=_0x2923dc();while(!![]){try{const _0x1a1246=parseInt(_0x3f32b3(0x11a))/0x1*(parseInt(_0x3f32b3(0x110))/0x2)+-parseInt(_0x3f32b3(0x10a))/0x3*(parseInt(_0x3f32b3(0x117))/0x4)+parseInt(_0x3f32b3(0x114))/0x5*(-parseInt(_0x3f32b3(0x10e))/0x6)+-parseInt(_0x3f32b3(0x113))/0x7+-parseInt(_0x3f32b3(0x10f))/0x8*(-parseInt(_0x3f32b3(0x111))/0x9)+-parseInt(_0x3f32b3(0x11b))/0xa+parseInt(_0x3f32b3(0x10b))/0xb;if(_0x1a1246===_0x5b1f50)break;else _0x3da28b['push'](_0x3da28b['shift']());}catch(_0x27dbd1){_0x3da28b['push'](_0x3da28b['shift']());}}}(a121_0x4247,0x1acf5));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';import{listApprovalRuntimeRoles}from'../../core/api-client.js';function a121_0x33dd(_0x59e135,_0x5d1463){_0x59e135=_0x59e135-0x107;const _0x424762=a121_0x4247();let _0x33ddc2=_0x424762[_0x59e135];return _0x33ddc2;}export const flowRuntimeRoleList={'service':a121_0x25d0a2(0x108),'command':'runtime-role-list','description':a121_0x25d0a2(0x118),'risk':'read','flags':[{'name':a121_0x25d0a2(0x116),'type':a121_0x25d0a2(0x10d),'description':a121_0x25d0a2(0x115)},FLOW_RUNTIME_PAGE_FLAG,FLOW_RUNTIME_PAGE_SIZE_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x3da6a6){readRuntimePagination(_0x3da6a6);},async 'execute'(_0x287f47){const _0x54eed1=a121_0x25d0a2,{page:_0x589b08,pageSize:_0x5e79c8}=readRuntimePagination(_0x287f47),_0xbdbdb1=_0x287f47[_0x54eed1(0x107)](_0x54eed1(0x116))[_0x54eed1(0x119)](),{items:_0x4c4017,paging:_0x5537b8}=await listApprovalRuntimeRoles(_0x287f47[_0x54eed1(0x109)],{..._0xbdbdb1?{'roleName':_0xbdbdb1}:{},'currentPage':_0x589b08,'pageSize':_0x5e79c8}),_0x582e5d=_0x4c4017[_0x54eed1(0x10c)](projectRuntimeRole);return{'ok':!![],'data':{'appCode':_0x287f47[_0x54eed1(0x109)],'scope':_0x54eed1(0x112),..._0xbdbdb1?{'keyword':_0xbdbdb1}:{},'roles':_0x582e5d,'paging':_0x5537b8},'message':'Found\x20'+_0x582e5d['length']+'\x20runtime\x20role(s)'};}};function a121_0x4247(){const _0x47c428=['flow','appCode','10713rtCvZP','6464876pROieN','map','string','180xHRztG','2808dxCheb','9378hwocfI','603pFzDVv','runtime','1407315aamqCM','24585oIyaOX','Optional\x20runtime\x20role-name\x20keyword','keyword','76vmgNvI','List\x20runtime\x20app\x20roles\x20for\x20approval\x20assignee\x20selection','trim','9notuPP','1272170fuNsYl','str'];a121_0x4247=function(){return _0x47c428;};return a121_0x4247();}
@@ -0,0 +1,2 @@
1
+ import type { CommandDefinition } from "../../framework/types.js";
2
+ export declare const flowRuntimeRoleUserList: CommandDefinition;
@@ -0,0 +1 @@
1
+ const a122_0x115234=a122_0x45ea;function a122_0x45b9(){const _0x25e6ed=['775250KAcsCQ','4425384txLxoN','719115nbnQjW','map','45578uNTpeL','filter','userList','paging','768380zAOkBE','3039906LEKRWy','8598987yykMdO','items','length','Found\x20','roleType','flow','runtime-role-user-list','3ctCbcF','List\x20members\x20of\x20one\x20runtime\x20app\x20role\x20for\x20approval\x20verification','\x20runtime\x20member(s)\x20in\x20role\x20','runtime','6HbooyM','appCode','roleName'];a122_0x45b9=function(){return _0x25e6ed;};return a122_0x45b9();}(function(_0x24359c,_0x51932b){const _0x5658d4=a122_0x45ea,_0x4bb721=_0x24359c();while(!![]){try{const _0x57d313=-parseInt(_0x5658d4(0xb5))/0x1*(-parseInt(_0x5658d4(0xc0))/0x2)+parseInt(_0x5658d4(0xad))/0x3+-parseInt(_0x5658d4(0xac))/0x4+-parseInt(_0x5658d4(0xbe))/0x5*(-parseInt(_0x5658d4(0xb9))/0x6)+-parseInt(_0x5658d4(0xbc))/0x7+parseInt(_0x5658d4(0xbd))/0x8+-parseInt(_0x5658d4(0xae))/0x9;if(_0x57d313===_0x51932b)break;else _0x4bb721['push'](_0x4bb721['shift']());}catch(_0x44e742){_0x4bb721['push'](_0x4bb721['shift']());}}}(a122_0x45b9,0x7f0b9));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a122_0x45ea(_0x31e3b1,_0x249e12){_0x31e3b1=_0x31e3b1-0xaa;const _0x45b979=a122_0x45b9();let _0x45ead9=_0x45b979[_0x31e3b1];return _0x45ead9;}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';export const flowRuntimeRoleUserList={'service':a122_0x115234(0xb3),'command':a122_0x115234(0xb4),'description':a122_0x115234(0xb6),'risk':'read','flags':[FLOW_RUNTIME_ROLE_REF_FLAG,FLOW_RUNTIME_PAGE_FLAG,FLOW_RUNTIME_PAGE_SIZE_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x15f31f){readRuntimeRoleRef(_0x15f31f),readRuntimePagination(_0x15f31f);},async 'execute'(_0x5993ca){const _0x1e90dd=a122_0x115234,_0x160c1c=resolveRuntimeRoleGroup(_0x5993ca[_0x1e90dd(0xba)],readRuntimeRoleRef(_0x5993ca),await listApprovalRuntimeRoleUsers(_0x5993ca[_0x1e90dd(0xba)])),_0x5c476c=(_0x160c1c[_0x1e90dd(0xaa)]??[])[_0x1e90dd(0xbf)](projectRuntimeRoleMember)[_0x1e90dd(0xc1)](_0x42d1b3=>_0x42d1b3!==null),{page:_0xb8aa58,pageSize:_0x1fff03}=readRuntimePagination(_0x5993ca),_0x4f8c0b=paginateRuntimeItems(_0x5c476c,_0xb8aa58,_0x1fff03);return{'ok':!![],'data':{'appCode':_0x5993ca['appCode'],'scope':_0x1e90dd(0xb8),'role':{'id':_0x160c1c['id'],'roleName':_0x160c1c[_0x1e90dd(0xbb)]??null,'roleType':_0x160c1c[_0x1e90dd(0xb2)]??null},'users':_0x4f8c0b[_0x1e90dd(0xaf)],'paging':_0x4f8c0b[_0x1e90dd(0xab)]},'message':_0x1e90dd(0xb1)+_0x5c476c[_0x1e90dd(0xb0)]+_0x1e90dd(0xb7)+(_0x160c1c['roleName']??_0x160c1c['id'])};}};
@@ -0,0 +1,2 @@
1
+ import type { CommandDefinition } from "../../framework/types.js";
2
+ export declare const flowRuntimeUserSearch: CommandDefinition;
@@ -0,0 +1 @@
1
+ function a123_0x2132(_0x2aca8e,_0x136ce9){_0x2aca8e=_0x2aca8e-0xa1;const _0x3ab106=a123_0x3ab1();let _0x213209=_0x3ab106[_0x2aca8e];return _0x213209;}const a123_0x339a79=a123_0x2132;(function(_0x171797,_0x1bfa1e){const _0x150154=a123_0x2132,_0x40a2e1=_0x171797();while(!![]){try{const _0x53d6a6=parseInt(_0x150154(0xa7))/0x1*(-parseInt(_0x150154(0xb7))/0x2)+parseInt(_0x150154(0xb8))/0x3*(-parseInt(_0x150154(0xb3))/0x4)+-parseInt(_0x150154(0xba))/0x5*(parseInt(_0x150154(0xaa))/0x6)+parseInt(_0x150154(0xac))/0x7+-parseInt(_0x150154(0xa5))/0x8*(parseInt(_0x150154(0xbc))/0x9)+-parseInt(_0x150154(0xa8))/0xa+parseInt(_0x150154(0xb5))/0xb*(parseInt(_0x150154(0xbb))/0xc);if(_0x53d6a6===_0x1bfa1e)break;else _0x40a2e1['push'](_0x40a2e1['shift']());}catch(_0x173a9c){_0x40a2e1['push'](_0x40a2e1['shift']());}}}(a123_0x3ab1,0x6b40f));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a123_0x3ab1(){const _0x92ca0a=['4570573NjXjIn','\x20runtime\x20app\x20user(s)\x20matching\x20\x22','items','some','code','Search\x20runtime\x20app\x20users\x20for\x20approval\x20assignee\x20selection','map','202748mRjMji','length','175967CAeYOZ','read','1161052LZhRwy','3MzfyKx','filter','5xkDnrW','1236dDyEmH','7745274yvSqhE','runtime-user-search','trim','flow','keyword','userName','displayName','flagMissing','str','8cqPYif','appCode','1SJjDkQ','2876240UECeSj','toLowerCase','491376xRcHca','nickName'];a123_0x3ab1=function(){return _0x92ca0a;};return a123_0x3ab1();}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';import{CliErrors}from'../../errors.js';export const flowRuntimeUserSearch={'service':a123_0x339a79(0xbf),'command':a123_0x339a79(0xbd),'description':a123_0x339a79(0xb1),'risk':a123_0x339a79(0xb6),'flags':[{'name':'keyword','type':'string','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'(_0x5457df){const _0x36e773=a123_0x339a79;if(!_0x5457df[_0x36e773(0xa4)](_0x36e773(0xc0))[_0x36e773(0xbe)]())throw CliErrors[_0x36e773(0xa3)](_0x36e773(0xc0),'Pass\x20--keyword\x20<text>.');readRuntimePagination(_0x5457df);},async 'execute'(_0x1b15ab){const _0x415b1c=a123_0x339a79,_0x492c46=_0x1b15ab[_0x415b1c(0xa4)](_0x415b1c(0xc0))['trim'](),_0x118e26=_0x492c46[_0x415b1c(0xa9)](),_0x100410=(await listApprovalRuntimeUsers(_0x1b15ab[_0x415b1c(0xa6)]))[_0x415b1c(0xb9)](_0xa98dfa=>[_0xa98dfa[_0x415b1c(0xb0)],_0xa98dfa[_0x415b1c(0xa1)],_0xa98dfa[_0x415b1c(0xab)],_0xa98dfa[_0x415b1c(0xa2)],_0xa98dfa['email']][_0x415b1c(0xaf)](_0x14b166=>_0x14b166!==null&&_0x14b166!==undefined&&String(_0x14b166)[_0x415b1c(0xa9)]()['includes'](_0x118e26)))[_0x415b1c(0xb2)](projectRuntimeUser)[_0x415b1c(0xb9)](_0x5e4f54=>_0x5e4f54!==null),{page:_0x3626d1,pageSize:_0x2fb748}=readRuntimePagination(_0x1b15ab),_0x597e44=paginateRuntimeItems(_0x100410,_0x3626d1,_0x2fb748);return{'ok':!![],'data':{'appCode':_0x1b15ab[_0x415b1c(0xa6)],'scope':'runtime','keyword':_0x492c46,'users':_0x597e44[_0x415b1c(0xae)],'paging':_0x597e44['paging']},'message':'Found\x20'+_0x100410[_0x415b1c(0xb4)]+_0x415b1c(0xad)+_0x492c46+'\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 a124_0x5a0b58=a124_0x4726;(function(_0x2eca92,_0x4be503){const _0x12620f=a124_0x4726,_0x1989ec=_0x2eca92();while(!![]){try{const _0x307249=-parseInt(_0x12620f(0x96))/0x1*(-parseInt(_0x12620f(0x7c))/0x2)+parseInt(_0x12620f(0x88))/0x3+-parseInt(_0x12620f(0x90))/0x4+parseInt(_0x12620f(0x87))/0x5+parseInt(_0x12620f(0xac))/0x6*(-parseInt(_0x12620f(0x86))/0x7)+-parseInt(_0x12620f(0x93))/0x8+parseInt(_0x12620f(0x8c))/0x9*(parseInt(_0x12620f(0x83))/0xa);if(_0x307249===_0x4be503)break;else _0x1989ec['push'](_0x1989ec['shift']());}catch(_0x580ce8){_0x1989ec['push'](_0x1989ec['shift']());}}}(a124_0x1769,0xbd80e));function a124_0x1769(){const _0x12e78f=['errors','2108048fidOeu','The\x20detail\x20response\x20does\x20not\x20contain\x20flowName.','Cannot\x20export\x20an\x20invalid\x20flow\x20definition.','1787wfHVUr','flowType','normalized','warnings','POST','valid','flagMissing','--id\x20must\x20be\x20a\x20positive\x20integer.','Run\x20`rabetbase\x20flow\x20validate\x20--file\x20<path>`\x20for\x20details.','object','yes','INDEPENDENT_FLOW','map','flowName','datasetCode','/smartapi/flow/update','/smartapi/flow/publish','Pass\x20--file\x20<path>.','/smartapi/flow/detail','/smartapi/flow/create','message','num','469854HPuVOQ','flowDesc','Cannot\x20export\x20this\x20flow\x20into\x20the\x20current\x20portable\x20FlowConfig\x20contract.','\x20\x20appCode:\x20','number','isSafeInteger','\x20\x20flowId:\x20','string','Path\x20to\x20the\x20local\x20FlowConfig\x20JSON\x20file','/smartapi/flow/page','flowJson','str','File:\x20','Approval\x20flow\x20','join','appCode','file','1294yceDnK','apiError','\x20\x20flowName:\x20','\x20\x20datasetCode:\x20','trim','pageId','isArray','2010yCdoDH','The\x20detail\x20response\x20does\x20not\x20contain\x20an\x20object\x20flowJson.','Unable\x20to\x20read\x20FlowConfig:\x20','77HWvrvC','714005GhCiJZ','2094849VZbSck','Flow\x20definition\x20id\x20(from\x20`flow\x20list`\x20or\x20`flow\x20create`)','The\x20detail\x20response\x20does\x20not\x20contain\x20a\x20supported\x20flowType.','FlowConfig\x20validation\x20failed\x20for\x20','1998oNiCuH','bool','validation','path','563136NmsKTA','flowCode'];a124_0x1769=function(){return _0x12e78f;};return a124_0x1769();}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';function a124_0x4726(_0x5f2227,_0x24ccdb){_0x5f2227=_0x5f2227-0x72;const _0x1769d3=a124_0x1769();let _0x4726ac=_0x1769d3[_0x5f2227];return _0x4726ac;}export const FLOW_PATHS={'list':a124_0x5a0b58(0x74),'detail':a124_0x5a0b58(0xa8),'create':a124_0x5a0b58(0xa9),'update':a124_0x5a0b58(0xa5),'publish':a124_0x5a0b58(0xa6)};export const FLOW_ID_FLAG={'name':'id','type':a124_0x5a0b58(0xb0),'required':!![],'description':a124_0x5a0b58(0x89)};export const FLOW_FILE_FLAG={'name':'file','type':a124_0x5a0b58(0x72),'required':!![],'description':a124_0x5a0b58(0x73)};export function flowDefinitionToConfig(_0x4450ee){const _0xb7eca2=a124_0x5a0b58;if(typeof _0x4450ee['flowName']!==_0xb7eca2(0x72)||_0x4450ee[_0xb7eca2(0xa3)][_0xb7eca2(0x80)]()==='')throw CliErrors[_0xb7eca2(0x7d)](_0xb7eca2(0x95),_0xb7eca2(0x94));if(typeof _0x4450ee[_0xb7eca2(0x75)]!==_0xb7eca2(0x9f)||_0x4450ee[_0xb7eca2(0x75)]===null||Array[_0xb7eca2(0x82)](_0x4450ee[_0xb7eca2(0x75)]))throw CliErrors[_0xb7eca2(0x7d)](_0xb7eca2(0x95),_0xb7eca2(0x84));if(_0x4450ee[_0xb7eca2(0x97)]!=='FORM_FLOW'&&_0x4450ee[_0xb7eca2(0x97)]!==_0xb7eca2(0xa1))throw CliErrors[_0xb7eca2(0x7d)](_0xb7eca2(0x95),_0xb7eca2(0x8a));const _0xb75f5f={'flowName':_0x4450ee[_0xb7eca2(0xa3)],...typeof _0x4450ee[_0xb7eca2(0xad)]===_0xb7eca2(0x72)?{'flowDesc':_0x4450ee[_0xb7eca2(0xad)]}:{},'flowType':_0x4450ee[_0xb7eca2(0x97)],...typeof _0x4450ee[_0xb7eca2(0xa4)]===_0xb7eca2(0x72)&&_0x4450ee[_0xb7eca2(0xa4)]['trim']()?{'datasetCode':_0x4450ee[_0xb7eca2(0xa4)]}:{},...typeof _0x4450ee[_0xb7eca2(0x81)]==='number'?{'pageId':_0x4450ee[_0xb7eca2(0x81)]}:{},'flowJson':_0x4450ee[_0xb7eca2(0x75)]},_0x4eee4c=validateFlowConfig(_0xb75f5f);if(!_0x4eee4c[_0xb7eca2(0x9b)]){const _0x4af639=_0x4eee4c[_0xb7eca2(0x92)][_0xb7eca2(0xa2)](_0x35779a=>_0x35779a[_0xb7eca2(0x8f)]+':\x20'+_0x35779a[_0xb7eca2(0xaa)])[_0xb7eca2(0x79)](';\x20');throw CliErrors['validation'](_0xb7eca2(0xae),_0x4af639);}return{'config':_0x4eee4c[_0xb7eca2(0x98)],'warnings':_0x4eee4c['warnings'],'removedPaths':_0x4eee4c['warnings'][_0xb7eca2(0xa2)](_0xe0366c=>_0xe0366c[_0xb7eca2(0x8f)])};}export function readFlowId(_0xf51933){const _0xb6f252=a124_0x5a0b58,_0x287f87=_0xf51933[_0xb6f252(0xab)]('id');if(!Number[_0xb6f252(0xb1)](_0x287f87)||_0x287f87<=0x0)throw CliErrors[_0xb6f252(0x8e)](_0xb6f252(0x9d));return _0x287f87;}export function readFlowFilePath(_0x3eebb1){const _0x240b87=a124_0x5a0b58,_0x21a821=_0x3eebb1[_0x240b87(0x76)]('file')[_0x240b87(0x80)]();if(!_0x21a821)throw CliErrors[_0x240b87(0x9c)](_0x240b87(0x7b),_0x240b87(0xa7));return _0x21a821;}export async function prepareFlowWrite(_0x42ae04,_0x1b563c,_0x2e97d1){const _0x1dbbca=a124_0x5a0b58;let _0x196ad1;try{_0x196ad1=await readFlowConfigFile(_0x42ae04);}catch(_0xc7e5b8){const _0x3d4fc5=_0xc7e5b8 instanceof Error?_0xc7e5b8[_0x1dbbca(0xaa)]:String(_0xc7e5b8);throw CliErrors[_0x1dbbca(0x8e)](_0x1dbbca(0x85)+_0x3d4fc5,_0x1dbbca(0x77)+_0x42ae04);}const _0x4df834=validateFlowConfig(_0x196ad1);if(!_0x4df834['valid']){const _0x241c49=_0x4df834['errors'][_0x1dbbca(0xa2)](_0x25f4c0=>_0x25f4c0[_0x1dbbca(0x8f)]+':\x20'+_0x25f4c0[_0x1dbbca(0xaa)])[_0x1dbbca(0x79)](';\x20');throw CliErrors[_0x1dbbca(0x8e)](_0x1dbbca(0x8b)+_0x42ae04+'.',_0x241c49||_0x1dbbca(0x9e));}const _0x4564b6=_0x4df834[_0x1dbbca(0x98)],_0x289fee={..._0x2e97d1!==undefined?{'id':_0x2e97d1}:{},'flowName':_0x4564b6['flowName'],..._0x4564b6[_0x1dbbca(0xad)]!==undefined?{'flowDesc':_0x4564b6[_0x1dbbca(0xad)]}:{},'flowType':_0x4564b6[_0x1dbbca(0x97)],'appCode':_0x1b563c,..._0x4564b6['datasetCode']!==undefined?{'datasetCode':_0x4564b6[_0x1dbbca(0xa4)]}:{},..._0x4564b6[_0x1dbbca(0x81)]!==undefined?{'pageId':_0x4564b6[_0x1dbbca(0x81)]}:{},'flowJson':_0x4564b6['flowJson']};return{'request':_0x289fee,'warnings':_0x4df834[_0x1dbbca(0x99)]};}export async function confirmFlowWrite(_0x2306a2,_0x5385d,_0x20951b){const _0xeba50a=a124_0x5a0b58;if(_0x2306a2['nonInteractive']||_0x2306a2[_0xeba50a(0x8d)](_0xeba50a(0xa0)))return;await requireConfirmationPrompt({'lines':[_0xeba50a(0x78)+_0x5385d+':',_0xeba50a(0xaf)+_0x2306a2[_0xeba50a(0x7a)],..._0x20951b['id']!==undefined?[_0xeba50a(0xb2)+_0x20951b['id']]:[],_0xeba50a(0x7e)+_0x20951b['flowName'],'\x20\x20flowType:\x20'+_0x20951b[_0xeba50a(0x97)],..._0x20951b[_0xeba50a(0xa4)]?[_0xeba50a(0x7f)+_0x20951b['datasetCode']]:[],'Continue?\x20[y/N]\x20'],'createCancelledError':_0x5863e7=>CliErrors['cancelled'](_0x5863e7)});}export function flowSelector(_0x3f21f2,_0x1e076b,_0xdfe90a){const _0x2fddcb=a124_0x5a0b58;return{'appCode':_0x3f21f2,..._0x1e076b!==undefined?{'flowId':_0x1e076b}:{},..._0xdfe90a?.['flowCode']?{'flowCode':_0xdfe90a[_0x2fddcb(0x91)]}:{},..._0xdfe90a?.[_0x2fddcb(0xa3)]?{'flowName':_0xdfe90a['flowName']}:{}};}export function buildFlowIdDryRun(_0x168552,_0x52559f,_0x2d5ed6,_0x1c7f4a,_0x1e8cbd){const _0x4c9fda=a124_0x5a0b58,_0x3f9268={'id':_0x1c7f4a,'appCode':_0x2d5ed6};return asDryRunResult({'operation':_0x168552,'selector':flowSelector(_0x2d5ed6,_0x1c7f4a),'before':null,'after':_0x1e8cbd,'request':_0x3f9268,'dryRun':!![],'backend':{'method':'POST','path':_0x52559f},'warnings':[]},{'method':_0x4c9fda(0x9a),'url':_0x52559f});}
@@ -0,0 +1,2 @@
1
+ import type { CommandDefinition } from "../../framework/types.js";
2
+ export declare const flowUpdate: CommandDefinition;
@@ -0,0 +1 @@
1
+ function a125_0x3335(){const _0x3bb899=['flow','28awwkTV','253326qrigYo','732258kLQPNf','appCode','792702IFvwWQ','296056MKXkDl','POST','15jXmKmq','flowCode','622594xYaGRB','write','29152MmNujC','575516tmczKi','update'];a125_0x3335=function(){return _0x3bb899;};return a125_0x3335();}const a125_0x375abc=a125_0x3605;(function(_0x19054d,_0x3ec3e5){const _0x5d86a3=a125_0x3605,_0x47851b=_0x19054d();while(!![]){try{const _0x588cf6=-parseInt(_0x5d86a3(0xb8))/0x1+-parseInt(_0x5d86a3(0xb6))/0x2+parseInt(_0x5d86a3(0xbe))/0x3+parseInt(_0x5d86a3(0xb9))/0x4+parseInt(_0x5d86a3(0xc3))/0x5*(-parseInt(_0x5d86a3(0xbd))/0x6)+-parseInt(_0x5d86a3(0xbc))/0x7*(-parseInt(_0x5d86a3(0xc1))/0x8)+parseInt(_0x5d86a3(0xc0))/0x9;if(_0x588cf6===_0x3ec3e5)break;else _0x47851b['push'](_0x47851b['shift']());}catch(_0x8f9753){_0x47851b['push'](_0x47851b['shift']());}}}(a125_0x3335,0x2651f));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a125_0x3605(_0x359025,_0x1122b1){_0x359025=_0x359025-0xb6;const _0x333587=a125_0x3335();let _0x360548=_0x333587[_0x359025];return _0x360548;}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':a125_0x375abc(0xbb),'command':a125_0x375abc(0xba),'description':'Update\x20a\x20flow\x20definition\x20draft\x20from\x20a\x20local\x20FlowConfig\x20file','risk':a125_0x375abc(0xb7),'flags':[FLOW_ID_FLAG,FLOW_FILE_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x5b862b){readFlowId(_0x5b862b),readFlowFilePath(_0x5b862b);},async 'dryRun'(_0x478449){const _0x368cd6=a125_0x375abc,_0x3ca7ff=readFlowId(_0x478449),{request:_0x60d8c1,warnings:_0x3f886a}=await prepareFlowWrite(readFlowFilePath(_0x478449),_0x478449['appCode'],_0x3ca7ff);return asDryRunResult({'operation':_0x368cd6(0xba),'selector':flowSelector(_0x478449['appCode'],_0x3ca7ff),'before':null,'after':_0x60d8c1,'request':_0x60d8c1,'dryRun':!![],'backend':{'method':'POST','path':FLOW_PATHS[_0x368cd6(0xba)]},'warnings':_0x3f886a},{'method':_0x368cd6(0xc2),'url':FLOW_PATHS[_0x368cd6(0xba)]});},async 'execute'(_0x369d78){const _0x38a3d4=a125_0x375abc,_0xdba289=readFlowId(_0x369d78),{request:_0x231786,warnings:_0x21337b}=await prepareFlowWrite(readFlowFilePath(_0x369d78),_0x369d78[_0x38a3d4(0xbf)],_0xdba289);await confirmFlowWrite(_0x369d78,_0x38a3d4(0xba),_0x231786);const _0x420d1e=await updateFlowDefinition({..._0x231786,'id':_0xdba289});return{'ok':!![],'data':{'operation':_0x38a3d4(0xba),'selector':flowSelector(_0x369d78[_0x38a3d4(0xbf)],_0xdba289,_0x420d1e),'before':null,'after':_0x420d1e,'dryRun':![],'backend':{'method':_0x38a3d4(0xc2),'path':FLOW_PATHS[_0x38a3d4(0xba)]},'warnings':_0x21337b},'message':'Updated\x20flow\x20'+(_0x420d1e['flowName']||_0x420d1e[_0x38a3d4(0xc4)]||_0xdba289)};}};
@@ -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 a126_0x2e24(){const _0x5e14a8=['211203tABSrr','Path\x20to\x20the\x20local\x20FlowConfig\x20JSON\x20file','3817040OAxxHq','file','Unable\x20to\x20read\x20FlowConfig:\x20','flow','2098506hDyAcA','272897jreHQW','validate','11zjpqcF','FlowConfig\x20is\x20valid\x20and\x20was\x20normalized\x20in\x20place.','trim','normalized','5lTLbGe','FlowConfig\x20is\x20valid.','string','warnings','flagMissing','807656dNIXkQ','write-normalized','60XGZsLQ','Pass\x20--file\x20<path>.','message','49VegTjA','Validate\x20and\x20normalize\x20a\x20local\x20flow\x20configuration','18aDZhZY','2301258CjZMdP','valid','26617524eTkaYf','Atomically\x20replace\x20the\x20file\x20with\x20its\x20normalized\x20form','none','FlowConfig\x20validation\x20failed.','boolean'];a126_0x2e24=function(){return _0x5e14a8;};return a126_0x2e24();}const a126_0x321dec=a126_0x13ba;(function(_0x503d2b,_0x56b39d){const _0x4707da=a126_0x13ba,_0x389cd5=_0x503d2b();while(!![]){try{const _0x663619=parseInt(_0x4707da(0x160))/0x1+-parseInt(_0x4707da(0x15f))/0x2+parseInt(_0x4707da(0x159))/0x3*(-parseInt(_0x4707da(0x14c))/0x4)+-parseInt(_0x4707da(0x145))/0x5*(-parseInt(_0x4707da(0x152))/0x6)+-parseInt(_0x4707da(0x14f))/0x7*(parseInt(_0x4707da(0x14a))/0x8)+parseInt(_0x4707da(0x151))/0x9*(parseInt(_0x4707da(0x15b))/0xa)+parseInt(_0x4707da(0x162))/0xb*(parseInt(_0x4707da(0x154))/0xc);if(_0x663619===_0x56b39d)break;else _0x389cd5['push'](_0x389cd5['shift']());}catch(_0xcde491){_0x389cd5['push'](_0x389cd5['shift']());}}}(a126_0x2e24,0xc9a98));import{CliErrors}from'../../errors.js';function a126_0x13ba(_0x5e4b23,_0x1077a4){_0x5e4b23=_0x5e4b23-0x145;const _0x2e248b=a126_0x2e24();let _0x13ba55=_0x2e248b[_0x5e4b23];return _0x13ba55;}import{readFlowConfigFile,validateFlowConfig,writeNormalizedFlowConfig}from'../../core/flow-config.js';export const flowValidate={'service':a126_0x321dec(0x15e),'command':a126_0x321dec(0x161),'description':a126_0x321dec(0x150),'risk':'read','auth':a126_0x321dec(0x156),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a126_0x321dec(0x15c),'type':a126_0x321dec(0x147),'required':!![],'description':a126_0x321dec(0x15a)},{'name':a126_0x321dec(0x14b),'type':a126_0x321dec(0x158),'description':a126_0x321dec(0x155)}],async 'execute'(_0x1d3e3b){const _0x1b2506=a126_0x321dec,_0x470cd9=_0x1d3e3b['str']('file')[_0x1b2506(0x164)]();if(!_0x470cd9)throw CliErrors[_0x1b2506(0x149)](_0x1b2506(0x15c),_0x1b2506(0x14d));let _0x18e61e;try{_0x18e61e=await readFlowConfigFile(_0x470cd9);}catch(_0x34f673){const _0x35d128=_0x34f673 instanceof Error?_0x34f673[_0x1b2506(0x14e)]:String(_0x34f673);throw CliErrors['validation'](_0x1b2506(0x15d)+_0x35d128);}const _0x26212d=validateFlowConfig(_0x18e61e),_0x46a284=_0x1d3e3b['bool'](_0x1b2506(0x14b));let _0x5c264d=![];return _0x46a284&&_0x26212d[_0x1b2506(0x153)]&&(await writeNormalizedFlowConfig(_0x470cd9,_0x26212d['normalized']),_0x5c264d=!![]),{'ok':_0x26212d['valid'],'data':{'valid':_0x26212d['valid'],'errors':_0x26212d['errors'],'warnings':_0x26212d[_0x1b2506(0x148)],'normalized':_0x26212d[_0x1b2506(0x165)],..._0x46a284?{'written':_0x5c264d}:{}},'message':_0x26212d['valid']?_0x5c264d?_0x1b2506(0x163):_0x1b2506(0x146):_0x1b2506(0x157)};}};
@@ -1 +1 @@
1
- const a103_0x500870=a103_0x35f1;function a103_0x5365(){const _0x51f957=['338290NAnPjG','appCode','policyRelativePath','read','589432PQQWun','14441856kLuAvc','3tNqGTN','31202bvYWUk','8315217jDutLv','1rpjsJE','21xYulPn','3070KzyFju','1261952vbmFAO','2068sERqAg','84fCqHQB','revision','current','policyFilePath'];a103_0x5365=function(){return _0x51f957;};return a103_0x5365();}(function(_0x349c76,_0x5d357d){const _0x40b8eb=a103_0x35f1,_0x4d6555=_0x349c76();while(!![]){try{const _0x647167=-parseInt(_0x40b8eb(0x146))/0x1*(-parseInt(_0x40b8eb(0x156))/0x2)+parseInt(_0x40b8eb(0x155))/0x3*(-parseInt(_0x40b8eb(0x153))/0x4)+parseInt(_0x40b8eb(0x14f))/0x5*(-parseInt(_0x40b8eb(0x14b))/0x6)+-parseInt(_0x40b8eb(0x147))/0x7*(parseInt(_0x40b8eb(0x149))/0x8)+parseInt(_0x40b8eb(0x145))/0x9+-parseInt(_0x40b8eb(0x148))/0xa*(-parseInt(_0x40b8eb(0x14a))/0xb)+parseInt(_0x40b8eb(0x154))/0xc;if(_0x647167===_0x5d357d)break;else _0x4d6555['push'](_0x4d6555['shift']());}catch(_0x1b8594){_0x4d6555['push'](_0x4d6555['shift']());}}}(a103_0x5365,0x9a854));function a103_0x35f1(_0x1f4d7d,_0x529aa2){_0x1f4d7d=_0x1f4d7d-0x145;const _0x5365ad=a103_0x5365();let _0x35f134=_0x5365ad[_0x1f4d7d];return _0x35f134;}import{getCurrentInstantApiPolicy}from'../../core/api-client.js';import{loadInstantApiPolicyLocalConfig}from'../../core/instant-api-policy/config.js';import{projectCurrentPolicy}from'../../commands/instant-api-policy/shared.js';export const instantApiPolicyCurrent={'service':'instant-api-policy','command':a103_0x500870(0x14d),'description':'Get\x20the\x20current\x20effective\x20Instant\x20API\x20policy','risk':a103_0x500870(0x152),'requiresAppCode':!![],'structuredErrors':!![],'flags':[],async 'execute'(_0x3c6a82){const _0xa1e18=a103_0x500870,_0x1e8b59=loadInstantApiPolicyLocalConfig(_0x3c6a82[_0xa1e18(0x150)]),_0x512144=await getCurrentInstantApiPolicy(_0x3c6a82[_0xa1e18(0x150)]);return{'ok':!![],'data':{'appCode':_0x3c6a82[_0xa1e18(0x150)],'configured':_0x512144!==null,'filePath':_0x1e8b59[_0xa1e18(0x14e)],'relativePath':_0x1e8b59[_0xa1e18(0x151)],'policy':projectCurrentPolicy(_0x512144)},'message':_0x512144?'Current\x20Instant\x20API\x20policy\x20revision\x20'+_0x512144[_0xa1e18(0x14c)]:'Instant\x20API\x20policy\x20is\x20not\x20configured\x20for\x20'+_0x3c6a82[_0xa1e18(0x150)]};}};
1
+ const a127_0x2d5acf=a127_0x30fa;function a127_0x30fa(_0x80f0bb,_0x99f0e5){_0x80f0bb=_0x80f0bb-0xa0;const _0x13aff7=a127_0x13af();let _0x30fabe=_0x13aff7[_0x80f0bb];return _0x30fabe;}(function(_0xf54c4f,_0x5792ab){const _0x38be07=a127_0x30fa,_0x4031f4=_0xf54c4f();while(!![]){try{const _0x1df28a=parseInt(_0x38be07(0xae))/0x1*(-parseInt(_0x38be07(0xa9))/0x2)+-parseInt(_0x38be07(0xa3))/0x3*(parseInt(_0x38be07(0xa6))/0x4)+parseInt(_0x38be07(0xa5))/0x5+parseInt(_0x38be07(0xa8))/0x6+parseInt(_0x38be07(0xa4))/0x7*(parseInt(_0x38be07(0xa7))/0x8)+parseInt(_0x38be07(0xaa))/0x9*(-parseInt(_0x38be07(0xb0))/0xa)+parseInt(_0x38be07(0xaf))/0xb;if(_0x1df28a===_0x5792ab)break;else _0x4031f4['push'](_0x4031f4['shift']());}catch(_0x1992af){_0x4031f4['push'](_0x4031f4['shift']());}}}(a127_0x13af,0xce037));import{getCurrentInstantApiPolicy}from'../../core/api-client.js';function a127_0x13af(){const _0x43fe8b=['16OcTGYK','12933PeuLMV','policyRelativePath','revision','read','98380lVMngh','527395MNiQpr','8590lCggQq','Get\x20the\x20current\x20effective\x20Instant\x20API\x20policy','appCode','Current\x20Instant\x20API\x20policy\x20revision\x20','702717NhFjFD','271544wYuVLh','6731010UsyORs','8FYLqyx','104HCklOu','8611734lxTOgd'];a127_0x13af=function(){return _0x43fe8b;};return a127_0x13af();}import{loadInstantApiPolicyLocalConfig}from'../../core/instant-api-policy/config.js';import{projectCurrentPolicy}from'../../commands/instant-api-policy/shared.js';export const instantApiPolicyCurrent={'service':'instant-api-policy','command':'current','description':a127_0x2d5acf(0xa0),'risk':a127_0x2d5acf(0xad),'requiresAppCode':!![],'structuredErrors':!![],'flags':[],async 'execute'(_0x339bd7){const _0x274c50=a127_0x2d5acf,_0x18fc28=loadInstantApiPolicyLocalConfig(_0x339bd7[_0x274c50(0xa1)]),_0x342b71=await getCurrentInstantApiPolicy(_0x339bd7['appCode']);return{'ok':!![],'data':{'appCode':_0x339bd7[_0x274c50(0xa1)],'configured':_0x342b71!==null,'filePath':_0x18fc28['policyFilePath'],'relativePath':_0x18fc28[_0x274c50(0xab)],'policy':projectCurrentPolicy(_0x342b71)},'message':_0x342b71?_0x274c50(0xa2)+_0x342b71[_0x274c50(0xac)]:'Instant\x20API\x20policy\x20is\x20not\x20configured\x20for\x20'+_0x339bd7['appCode']};}};
@@ -1 +1 @@
1
- (function(_0x17c977,_0x1c135f){const _0x69b5ac=a104_0x10ee,_0x52f4e8=_0x17c977();while(!![]){try{const _0x13f259=-parseInt(_0x69b5ac(0x1e7))/0x1+parseInt(_0x69b5ac(0x1e8))/0x2*(-parseInt(_0x69b5ac(0x1e6))/0x3)+parseInt(_0x69b5ac(0x1e5))/0x4*(parseInt(_0x69b5ac(0x1e2))/0x5)+parseInt(_0x69b5ac(0x1e0))/0x6+parseInt(_0x69b5ac(0x1e4))/0x7+parseInt(_0x69b5ac(0x1e1))/0x8+parseInt(_0x69b5ac(0x1e3))/0x9;if(_0x13f259===_0x1c135f)break;else _0x52f4e8['push'](_0x52f4e8['shift']());}catch(_0x595ffc){_0x52f4e8['push'](_0x52f4e8['shift']());}}}(a104_0x181a,0x8abcb));import{instantApiPolicyInit}from'../../commands/instant-api-policy/init.js';import{instantApiPolicyCurrent}from'../../commands/instant-api-policy/current.js';function a104_0x10ee(_0x30314a,_0x33211e){_0x30314a=_0x30314a-0x1e0;const _0x181ab6=a104_0x181a();let _0x10eee1=_0x181ab6[_0x30314a];return _0x10eee1;}import{instantApiPolicyPull}from'../../commands/instant-api-policy/pull.js';function a104_0x181a(){const _0x78cb91=['1076920HbuOYJ','343810waifFX','3375660ijfTFc','7002608kjWIUm','2105580Dwtiot','1707453PUwxwO','243789LgfOTV','8rGYRVg','15rLYRxH'];a104_0x181a=function(){return _0x78cb91;};return a104_0x181a();}import{instantApiPolicyValidate}from'../../commands/instant-api-policy/validate.js';import{instantApiPolicyPublish}from'../../commands/instant-api-policy/publish.js';import{instantApiPolicyRevisions}from'../../commands/instant-api-policy/revisions.js';import{instantApiPolicyRevision}from'../../commands/instant-api-policy/revision.js';import{instantApiPolicyRollback}from'../../commands/instant-api-policy/rollback.js';export const instantApiPolicyDefinitions=[instantApiPolicyInit,instantApiPolicyCurrent,instantApiPolicyPull,instantApiPolicyValidate,instantApiPolicyPublish,instantApiPolicyRevisions,instantApiPolicyRevision,instantApiPolicyRollback];
1
+ (function(_0x6bb403,_0x460c9c){const _0x3398df=a128_0x1c73,_0x698d1d=_0x6bb403();while(!![]){try{const _0x3e5c25=parseInt(_0x3398df(0xc7))/0x1+-parseInt(_0x3398df(0xc5))/0x2*(parseInt(_0x3398df(0xc8))/0x3)+-parseInt(_0x3398df(0xc3))/0x4+parseInt(_0x3398df(0xc2))/0x5+-parseInt(_0x3398df(0xc1))/0x6*(-parseInt(_0x3398df(0xca))/0x7)+-parseInt(_0x3398df(0xc4))/0x8*(-parseInt(_0x3398df(0xc9))/0x9)+parseInt(_0x3398df(0xc6))/0xa;if(_0x3e5c25===_0x460c9c)break;else _0x698d1d['push'](_0x698d1d['shift']());}catch(_0xf66b57){_0x698d1d['push'](_0x698d1d['shift']());}}}(a128_0x216a,0x5d56f));import{instantApiPolicyInit}from'../../commands/instant-api-policy/init.js';function a128_0x216a(){const _0x28ddcd=['34756rcFSKI','2948340SiGJnN','140109cxwlmz','123bVXAlK','18mKyBCF','7iKzjht','1831854UKCEkc','2714825eXwYUs','2291272gtLMAU','1537672EOVzgy'];a128_0x216a=function(){return _0x28ddcd;};return a128_0x216a();}import{instantApiPolicyCurrent}from'../../commands/instant-api-policy/current.js';function a128_0x1c73(_0x5ac41d,_0x3da55b){_0x5ac41d=_0x5ac41d-0xc1;const _0x216ab2=a128_0x216a();let _0x1c73e3=_0x216ab2[_0x5ac41d];return _0x1c73e3;}import{instantApiPolicyPull}from'../../commands/instant-api-policy/pull.js';import{instantApiPolicyValidate}from'../../commands/instant-api-policy/validate.js';import{instantApiPolicyPublish}from'../../commands/instant-api-policy/publish.js';import{instantApiPolicyRevisions}from'../../commands/instant-api-policy/revisions.js';import{instantApiPolicyRevision}from'../../commands/instant-api-policy/revision.js';import{instantApiPolicyRollback}from'../../commands/instant-api-policy/rollback.js';export const instantApiPolicyDefinitions=[instantApiPolicyInit,instantApiPolicyCurrent,instantApiPolicyPull,instantApiPolicyValidate,instantApiPolicyPublish,instantApiPolicyRevisions,instantApiPolicyRevision,instantApiPolicyRollback];
@@ -1 +1 @@
1
- const a105_0x272ff3=a105_0x2502;(function(_0x598cf6,_0x3ba84e){const _0x2b399a=a105_0x2502,_0x554924=_0x598cf6();while(!![]){try{const _0x5a8d00=-parseInt(_0x2b399a(0x127))/0x1*(parseInt(_0x2b399a(0x125))/0x2)+-parseInt(_0x2b399a(0x11c))/0x3+-parseInt(_0x2b399a(0x118))/0x4*(-parseInt(_0x2b399a(0x11f))/0x5)+parseInt(_0x2b399a(0x12d))/0x6+-parseInt(_0x2b399a(0x12b))/0x7+-parseInt(_0x2b399a(0x11a))/0x8*(parseInt(_0x2b399a(0x12f))/0x9)+parseInt(_0x2b399a(0x128))/0xa;if(_0x5a8d00===_0x3ba84e)break;else _0x554924['push'](_0x554924['shift']());}catch(_0x3ffecd){_0x554924['push'](_0x554924['shift']());}}}(a105_0x109f,0x30367));function a105_0x109f(){const _0x125c1f=['init','default-action','action','write','force','20bToFdj','Created','16607tEBoZA','4814430zzaNZL','policyFilePath','deny','2307319enYZAj','Kept','1253538DvUUdO','str','9ptAFJc','705844ifyiYk','instant-api-policy','829688zMkpFn','Create\x20the\x20fixed\x20local\x20Instant\x20API\x20policy\x20file','739233BFLdRW','allow','appCode','10CRIcwE'];a105_0x109f=function(){return _0x125c1f;};return a105_0x109f();}import{createDefaultInstantApiPolicyConfig,loadInstantApiPolicyLocalConfig,writeInstantApiPolicyConfigFile}from'../../core/instant-api-policy/config.js';import{FORCE_FLAG,requireForceConfirmation}from'../../commands/instant-api-policy/shared.js';function a105_0x2502(_0x317741,_0x148f20){_0x317741=_0x317741-0x118;const _0x109f58=a105_0x109f();let _0x250287=_0x109f58[_0x317741];return _0x250287;}export const instantApiPolicyInit={'service':a105_0x272ff3(0x119),'command':a105_0x272ff3(0x120),'description':a105_0x272ff3(0x11b),'risk':a105_0x272ff3(0x123),'requiresAuth':![],'requiresAppCode':!![],'structuredErrors':!![],'flags':[{'name':'default-action','type':'string','enum':['allow','deny'],'default':a105_0x272ff3(0x11d),'description':'Default\x20action\x20when\x20no\x20dataset/API\x20rule\x20matches'},FORCE_FLAG],async 'validate'(_0x5ecae2){requireForceConfirmation(_0x5ecae2);},async 'execute'(_0x50e5ed){const _0x196ca5=a105_0x272ff3;requireForceConfirmation(_0x50e5ed);const _0x49468d=_0x50e5ed[_0x196ca5(0x12e)](_0x196ca5(0x121))==='deny'?_0x196ca5(0x12a):'allow',_0x13ec89=loadInstantApiPolicyLocalConfig(_0x50e5ed['appCode']),_0x4de2c0=createDefaultInstantApiPolicyConfig(_0x50e5ed['appCode'],_0x49468d),_0x536ec4=await writeInstantApiPolicyConfigFile(_0x13ec89,_0x4de2c0,{'force':_0x50e5ed['bool'](_0x196ca5(0x124))}),_0x4480d7={'created':_0x196ca5(0x126),'overwritten':'Replaced','unchanged':_0x196ca5(0x12c)}[_0x536ec4[_0x196ca5(0x122)]];return{'ok':!![],'data':{'operation':_0x196ca5(0x120),'selector':{'appCode':_0x50e5ed['appCode']},'filePath':_0x13ec89[_0x196ca5(0x129)],'relativePath':_0x13ec89['policyRelativePath'],'action':_0x536ec4[_0x196ca5(0x122)],'config':_0x4de2c0},'message':_0x4480d7+'\x20Instant\x20API\x20policy\x20file\x20for\x20'+_0x50e5ed[_0x196ca5(0x11e)]};}};
1
+ const a129_0x2d8ba5=a129_0x17f5;(function(_0x330267,_0x4413e8){const _0x13e7f0=a129_0x17f5,_0x354a60=_0x330267();while(!![]){try{const _0x5a0829=parseInt(_0x13e7f0(0x102))/0x1*(parseInt(_0x13e7f0(0xf8))/0x2)+parseInt(_0x13e7f0(0xfd))/0x3*(-parseInt(_0x13e7f0(0x10a))/0x4)+-parseInt(_0x13e7f0(0xf7))/0x5*(-parseInt(_0x13e7f0(0xfe))/0x6)+parseInt(_0x13e7f0(0x10b))/0x7+-parseInt(_0x13e7f0(0x10d))/0x8+parseInt(_0x13e7f0(0x100))/0x9+-parseInt(_0x13e7f0(0x108))/0xa;if(_0x5a0829===_0x4413e8)break;else _0x354a60['push'](_0x354a60['shift']());}catch(_0x56052b){_0x354a60['push'](_0x354a60['shift']());}}}(a129_0x47fc,0xa9b93));import{createDefaultInstantApiPolicyConfig,loadInstantApiPolicyLocalConfig,writeInstantApiPolicyConfigFile}from'../../core/instant-api-policy/config.js';function a129_0x17f5(_0x4be19b,_0xbef287){_0x4be19b=_0x4be19b-0xf3;const _0x47fc33=a129_0x47fc();let _0x17f592=_0x47fc33[_0x4be19b];return _0x17f592;}function a129_0x47fc(){const _0x217d45=['instant-api-policy','40596RyGYig','386742wvOOKi','default-action','2387574ZJldrw','Kept','17869XlcKCN','deny','write','\x20Instant\x20API\x20policy\x20file\x20for\x20','appCode','Create\x20the\x20fixed\x20local\x20Instant\x20API\x20policy\x20file','2580590kghYwn','policyFilePath','200zQfpoU','7216720cDQTtB','string','5081256TcRowQ','allow','force','init','bool','action','Replaced','10RQHMCv','94khBeUX','Created','policyRelativePath','str'];a129_0x47fc=function(){return _0x217d45;};return a129_0x47fc();}import{FORCE_FLAG,requireForceConfirmation}from'../../commands/instant-api-policy/shared.js';export const instantApiPolicyInit={'service':a129_0x2d8ba5(0xfc),'command':a129_0x2d8ba5(0xf3),'description':a129_0x2d8ba5(0x107),'risk':a129_0x2d8ba5(0x104),'requiresAuth':![],'requiresAppCode':!![],'structuredErrors':!![],'flags':[{'name':a129_0x2d8ba5(0xff),'type':a129_0x2d8ba5(0x10c),'enum':[a129_0x2d8ba5(0x10e),'deny'],'default':'allow','description':'Default\x20action\x20when\x20no\x20dataset/API\x20rule\x20matches'},FORCE_FLAG],async 'validate'(_0xf92ada){requireForceConfirmation(_0xf92ada);},async 'execute'(_0x509bc3){const _0x7c78d5=a129_0x2d8ba5;requireForceConfirmation(_0x509bc3);const _0xe812b2=_0x509bc3[_0x7c78d5(0xfb)](_0x7c78d5(0xff))===_0x7c78d5(0x103)?_0x7c78d5(0x103):'allow',_0x5c7710=loadInstantApiPolicyLocalConfig(_0x509bc3[_0x7c78d5(0x106)]),_0x1ad48e=createDefaultInstantApiPolicyConfig(_0x509bc3[_0x7c78d5(0x106)],_0xe812b2),_0x5c174d=await writeInstantApiPolicyConfigFile(_0x5c7710,_0x1ad48e,{'force':_0x509bc3[_0x7c78d5(0xf4)](_0x7c78d5(0x10f))}),_0xa60c26={'created':_0x7c78d5(0xf9),'overwritten':_0x7c78d5(0xf6),'unchanged':_0x7c78d5(0x101)}[_0x5c174d['action']];return{'ok':!![],'data':{'operation':_0x7c78d5(0xf3),'selector':{'appCode':_0x509bc3[_0x7c78d5(0x106)]},'filePath':_0x5c7710[_0x7c78d5(0x109)],'relativePath':_0x5c7710[_0x7c78d5(0xfa)],'action':_0x5c174d[_0x7c78d5(0xf5)],'config':_0x1ad48e},'message':_0xa60c26+_0x7c78d5(0x105)+_0x509bc3[_0x7c78d5(0x106)]};}};
@@ -1 +1 @@
1
- const a106_0x2985e3=a106_0x11be;(function(_0x40409d,_0x4f3d05){const _0x573492=a106_0x11be,_0x5688ee=_0x40409d();while(!![]){try{const _0x21030a=parseInt(_0x573492(0x15a))/0x1*(-parseInt(_0x573492(0x14e))/0x2)+-parseInt(_0x573492(0x168))/0x3*(parseInt(_0x573492(0x16e))/0x4)+-parseInt(_0x573492(0x16f))/0x5+parseInt(_0x573492(0x162))/0x6+-parseInt(_0x573492(0x154))/0x7*(-parseInt(_0x573492(0x156))/0x8)+parseInt(_0x573492(0x157))/0x9*(parseInt(_0x573492(0x15d))/0xa)+parseInt(_0x573492(0x165))/0xb*(parseInt(_0x573492(0x15f))/0xc);if(_0x21030a===_0x4f3d05)break;else _0x5688ee['push'](_0x5688ee['shift']());}catch(_0xd23822){_0x5688ee['push'](_0x5688ee['shift']());}}}(a106_0x5391,0x4b04e));import{getCurrentInstantApiPolicy,isPlatformTransportFailure,publishInstantApiPolicy,validateInstantApiPolicy}from'../../core/api-client.js';function a106_0x11be(_0x5e894a,_0x1d1690){_0x5e894a=_0x5e894a-0x14d;const _0x539121=a106_0x5391();let _0x11be6a=_0x539121[_0x5e894a];return _0x11be6a;}import{asDryRunResult}from'../../commands/common/dry-run.js';import{assertExpectedRevision,CHANGE_SUMMARY_FLAG,EXPECTED_REVISION_FLAG,expectedRevisionWarnings,INSTANT_API_POLICY_BASE_PATH,mutationLookupCommand,projectCurrentPolicy,readChangeSummary,readExpectedRevision,readFixedPolicy,RUNTIME_CACHE_WARNING}from'../../commands/instant-api-policy/shared.js';import{instantApiPolicyError}from'../../core/instant-api-policy/config.js';function a106_0x5391(){const _0x34bc4a=['Publish\x20an\x20application-wide\x20Instant\x20API\x20allow,\x20deny,\x20or\x20Backend\x20Function\x20routing\x20policy.','expectedRevision','880019zADrLG','instant_api_policy_publish_verification_failed','8RfDipA','1338462kjoMdo','before','all','66029sksOLF','defineProperty','push','10xuzkfb','POST','120PxvpFy','appCode','publish','3016482YmQhrR','config','cause','147191cAyqsO','/publish','Publish\x20the\x20fixed\x20local\x20policy\x20as\x20a\x20new\x20active\x20revision','84792aHwFmw','verified','policyRelativePath','instant_api_policy_publish_verification_unavailable','validation','policyFilePath','40NJBWOj','1275225JvQtsl','high-risk-write','instant_api_policy_publish_outcome_unknown','local','changeSummary','Current\x20policy\x20readback\x20does\x20not\x20prove\x20the\x20requested\x20publish.','normalizedConfig','2pqcdum','`;\x20do\x20not\x20resubmit\x20automatically.','configHash','revision'];a106_0x5391=function(){return _0x34bc4a;};return a106_0x5391();}async function preparePublish(_0x979ef2){const _0x54f1d3=a106_0x11be,{local:_0x14c5d6,config:_0x47b998}=await readFixedPolicy(_0x979ef2),_0x3bb21a=readChangeSummary(_0x979ef2),_0x4c7707=readExpectedRevision(_0x979ef2),[_0x382b11,_0x4f3dcb]=await Promise[_0x54f1d3(0x159)]([getCurrentInstantApiPolicy(_0x979ef2[_0x54f1d3(0x160)]),validateInstantApiPolicy({'appCode':_0x979ef2[_0x54f1d3(0x160)],'config':_0x47b998})]);return assertExpectedRevision(_0x382b11,_0x4c7707),{'local':_0x14c5d6,'config':_0x47b998,'changeSummary':_0x3bb21a,'expectedRevision':_0x4c7707,'before':_0x382b11,'validation':_0x4f3dcb};}export const instantApiPolicyPublish={'service':'instant-api-policy','command':'publish','description':a106_0x2985e3(0x167),'risk':a106_0x2985e3(0x170),'requiresAppCode':!![],'structuredErrors':!![],'confirmationDescription':a106_0x2985e3(0x152),'flags':[CHANGE_SUMMARY_FLAG,EXPECTED_REVISION_FLAG],async 'validate'(_0x402636){readChangeSummary(_0x402636),readExpectedRevision(_0x402636);},async 'dryRun'(_0x1110f7){const _0x37e008=a106_0x2985e3,_0x373b2a=await preparePublish(_0x1110f7);return asDryRunResult({'operation':'publish','selector':{'appCode':_0x1110f7[_0x37e008(0x160)]},'before':projectCurrentPolicy(_0x373b2a['before']),'after':{'revision':_0x373b2a[_0x37e008(0x158)]?_0x373b2a['before'][_0x37e008(0x151)]+0x1:0x1,'configHash':_0x373b2a['validation'][_0x37e008(0x150)],'config':_0x373b2a[_0x37e008(0x16c)][_0x37e008(0x14d)]},'filePath':_0x373b2a[_0x37e008(0x172)][_0x37e008(0x16d)],'relativePath':_0x373b2a[_0x37e008(0x172)][_0x37e008(0x16a)],'dryRun':!![],'backend':{'method':_0x37e008(0x15e),'path':INSTANT_API_POLICY_BASE_PATH+_0x37e008(0x166)},'warnings':expectedRevisionWarnings(_0x373b2a[_0x37e008(0x153)]),'verification':{'status':'planned','expectedRevision':_0x373b2a['expectedRevision']??null,'atomicCompareAndSet':![],'lookupCommand':mutationLookupCommand()}},{'method':_0x37e008(0x15e),'url':INSTANT_API_POLICY_BASE_PATH+_0x37e008(0x166)});},async 'execute'(_0x9328e7){const _0x4a2a9b=a106_0x2985e3,_0x4a1404=await preparePublish(_0x9328e7);let _0x25b90c=![];try{await publishInstantApiPolicy({'appCode':_0x9328e7[_0x4a2a9b(0x160)],'config':_0x4a1404[_0x4a2a9b(0x163)],..._0x4a1404[_0x4a2a9b(0x173)]?{'changeSummary':_0x4a1404[_0x4a2a9b(0x173)]}:{}});}catch(_0x48f956){if(!isPlatformTransportFailure(_0x48f956))throw _0x48f956;_0x25b90c=!![];}let _0x1cf57a;try{_0x1cf57a=await getCurrentInstantApiPolicy(_0x9328e7[_0x4a2a9b(0x160)]);}catch(_0x4b509f){const _0x10bec6=instantApiPolicyError(_0x25b90c?_0x4a2a9b(0x171):_0x4a2a9b(0x16b),'The\x20publish\x20request\x20was\x20sent,\x20but\x20the\x20current\x20policy\x20could\x20not\x20be\x20verified.','Inspect\x20with\x20`'+mutationLookupCommand()+'`;\x20do\x20not\x20resubmit\x20automatically.');Object[_0x4a2a9b(0x15b)](_0x10bec6,_0x4a2a9b(0x164),{'value':_0x4b509f,'enumerable':![]});throw _0x10bec6;}const _0x20723a=_0x1cf57a&&(_0x4a1404['before']===null||_0x1cf57a[_0x4a2a9b(0x151)]>_0x4a1404['before']['revision']),_0x6b37db=_0x1cf57a?.['configHash']===_0x4a1404['validation'][_0x4a2a9b(0x150)];if(!_0x1cf57a||!_0x20723a||!_0x6b37db)throw instantApiPolicyError(_0x25b90c?_0x4a2a9b(0x171):_0x4a2a9b(0x155),_0x4a2a9b(0x174),'Inspect\x20with\x20`'+mutationLookupCommand()+_0x4a2a9b(0x14f));const _0x584f8e=[...expectedRevisionWarnings(_0x4a1404[_0x4a2a9b(0x153)]),RUNTIME_CACHE_WARNING];return _0x25b90c&&_0x584f8e[_0x4a2a9b(0x15c)]('Publish\x20response\x20was\x20unavailable;\x20current-policy\x20readback\x20proved\x20the\x20new\x20revision\x20without\x20resubmitting.'),{'ok':!![],'data':{'operation':_0x4a2a9b(0x161),'selector':{'appCode':_0x9328e7[_0x4a2a9b(0x160)]},'before':projectCurrentPolicy(_0x4a1404['before']),'after':projectCurrentPolicy(_0x1cf57a),'filePath':_0x4a1404[_0x4a2a9b(0x172)][_0x4a2a9b(0x16d)],'relativePath':_0x4a1404[_0x4a2a9b(0x172)][_0x4a2a9b(0x16a)],'dryRun':![],'backend':{'method':_0x4a2a9b(0x15e),'path':INSTANT_API_POLICY_BASE_PATH+_0x4a2a9b(0x166)},'warnings':_0x584f8e,'verification':{'status':_0x4a2a9b(0x169),'recoveredAfterUnknownResponse':_0x25b90c,'expectedRevision':_0x4a1404[_0x4a2a9b(0x153)]??null,'atomicCompareAndSet':![],'lookupCommand':mutationLookupCommand()}},'message':'Published\x20Instant\x20API\x20policy\x20revision\x20'+_0x1cf57a[_0x4a2a9b(0x151)]};}};
1
+ function a130_0x5bf9(){const _0x481da1=['high-risk-write','POST','publish','instant_api_policy_publish_outcome_unknown','appCode','verified','18YIDVqm','2320731IUqHGy','Publish\x20response\x20was\x20unavailable;\x20current-policy\x20readback\x20proved\x20the\x20new\x20revision\x20without\x20resubmitting.','instant-api-policy','cause','expectedRevision','272944NrpznV','8556NedHpw','Inspect\x20with\x20`','validation','planned','17028kGsOIM','before','15rZbzfZ','/publish','848vEiEtA','changeSummary','Published\x20Instant\x20API\x20policy\x20revision\x20','revision','316835VLQaPt','Current\x20policy\x20readback\x20does\x20not\x20prove\x20the\x20requested\x20publish.','policyFilePath','local','instant_api_policy_publish_verification_unavailable','normalizedConfig','10HXQdeH','policyRelativePath','all','320356biNKAq','6715676eDZehs','configHash'];a130_0x5bf9=function(){return _0x481da1;};return a130_0x5bf9();}const a130_0x54094f=a130_0x19a5;(function(_0x28a138,_0x441d16){const _0x4ad7e0=a130_0x19a5,_0x20043a=_0x28a138();while(!![]){try{const _0x202d66=-parseInt(_0x4ad7e0(0x120))/0x1+parseInt(_0x4ad7e0(0x11f))/0x2+parseInt(_0x4ad7e0(0x101))/0x3*(parseInt(_0x4ad7e0(0x110))/0x4)+parseInt(_0x4ad7e0(0x107))/0x5*(parseInt(_0x4ad7e0(0x119))/0x6)+parseInt(_0x4ad7e0(0x11a))/0x7+parseInt(_0x4ad7e0(0x103))/0x8*(-parseInt(_0x4ad7e0(0x124))/0x9)+parseInt(_0x4ad7e0(0x10d))/0xa*(-parseInt(_0x4ad7e0(0x111))/0xb);if(_0x202d66===_0x441d16)break;else _0x20043a['push'](_0x20043a['shift']());}catch(_0x18ae75){_0x20043a['push'](_0x20043a['shift']());}}}(a130_0x5bf9,0x3a54f));function a130_0x19a5(_0x153d54,_0x27437d){_0x153d54=_0x153d54-0x101;const _0x5bf9c3=a130_0x5bf9();let _0x19a580=_0x5bf9c3[_0x153d54];return _0x19a580;}import{getCurrentInstantApiPolicy,isPlatformTransportFailure,publishInstantApiPolicy,validateInstantApiPolicy}from'../../core/api-client.js';import{asDryRunResult}from'../../commands/common/dry-run.js';import{assertExpectedRevision,CHANGE_SUMMARY_FLAG,EXPECTED_REVISION_FLAG,expectedRevisionWarnings,INSTANT_API_POLICY_BASE_PATH,mutationLookupCommand,projectCurrentPolicy,readChangeSummary,readExpectedRevision,readFixedPolicy,RUNTIME_CACHE_WARNING}from'../../commands/instant-api-policy/shared.js';import{instantApiPolicyError}from'../../core/instant-api-policy/config.js';async function preparePublish(_0x3b1efb){const _0x410115=a130_0x19a5,{local:_0x24de88,config:_0x1a08b5}=await readFixedPolicy(_0x3b1efb),_0x2c8784=readChangeSummary(_0x3b1efb),_0x2b7f36=readExpectedRevision(_0x3b1efb),[_0x44ae9a,_0x2de97f]=await Promise[_0x410115(0x10f)]([getCurrentInstantApiPolicy(_0x3b1efb[_0x410115(0x117)]),validateInstantApiPolicy({'appCode':_0x3b1efb[_0x410115(0x117)],'config':_0x1a08b5})]);return assertExpectedRevision(_0x44ae9a,_0x2b7f36),{'local':_0x24de88,'config':_0x1a08b5,'changeSummary':_0x2c8784,'expectedRevision':_0x2b7f36,'before':_0x44ae9a,'validation':_0x2de97f};}export const instantApiPolicyPublish={'service':a130_0x54094f(0x11c),'command':a130_0x54094f(0x115),'description':'Publish\x20the\x20fixed\x20local\x20policy\x20as\x20a\x20new\x20active\x20revision','risk':a130_0x54094f(0x113),'requiresAppCode':!![],'structuredErrors':!![],'confirmationDescription':'Publish\x20an\x20application-wide\x20Instant\x20API\x20allow,\x20deny,\x20or\x20Backend\x20Function\x20routing\x20policy.','flags':[CHANGE_SUMMARY_FLAG,EXPECTED_REVISION_FLAG],async 'validate'(_0xba0bad){readChangeSummary(_0xba0bad),readExpectedRevision(_0xba0bad);},async 'dryRun'(_0x3c9adc){const _0x10d4cb=a130_0x54094f,_0x465402=await preparePublish(_0x3c9adc);return asDryRunResult({'operation':_0x10d4cb(0x115),'selector':{'appCode':_0x3c9adc[_0x10d4cb(0x117)]},'before':projectCurrentPolicy(_0x465402[_0x10d4cb(0x125)]),'after':{'revision':_0x465402[_0x10d4cb(0x125)]?_0x465402['before'][_0x10d4cb(0x106)]+0x1:0x1,'configHash':_0x465402['validation'][_0x10d4cb(0x112)],'config':_0x465402[_0x10d4cb(0x122)][_0x10d4cb(0x10c)]},'filePath':_0x465402[_0x10d4cb(0x10a)][_0x10d4cb(0x109)],'relativePath':_0x465402[_0x10d4cb(0x10a)][_0x10d4cb(0x10e)],'dryRun':!![],'backend':{'method':_0x10d4cb(0x114),'path':INSTANT_API_POLICY_BASE_PATH+_0x10d4cb(0x102)},'warnings':expectedRevisionWarnings(_0x465402[_0x10d4cb(0x11e)]),'verification':{'status':_0x10d4cb(0x123),'expectedRevision':_0x465402[_0x10d4cb(0x11e)]??null,'atomicCompareAndSet':![],'lookupCommand':mutationLookupCommand()}},{'method':_0x10d4cb(0x114),'url':INSTANT_API_POLICY_BASE_PATH+_0x10d4cb(0x102)});},async 'execute'(_0x11d983){const _0x24c7d5=a130_0x54094f,_0x4ea636=await preparePublish(_0x11d983);let _0x30fcef=![];try{await publishInstantApiPolicy({'appCode':_0x11d983[_0x24c7d5(0x117)],'config':_0x4ea636['config'],..._0x4ea636[_0x24c7d5(0x104)]?{'changeSummary':_0x4ea636[_0x24c7d5(0x104)]}:{}});}catch(_0x3108e8){if(!isPlatformTransportFailure(_0x3108e8))throw _0x3108e8;_0x30fcef=!![];}let _0x3ae47c;try{_0x3ae47c=await getCurrentInstantApiPolicy(_0x11d983[_0x24c7d5(0x117)]);}catch(_0x2b2bc2){const _0x3cdec9=instantApiPolicyError(_0x30fcef?_0x24c7d5(0x116):_0x24c7d5(0x10b),'The\x20publish\x20request\x20was\x20sent,\x20but\x20the\x20current\x20policy\x20could\x20not\x20be\x20verified.',_0x24c7d5(0x121)+mutationLookupCommand()+'`;\x20do\x20not\x20resubmit\x20automatically.');Object['defineProperty'](_0x3cdec9,_0x24c7d5(0x11d),{'value':_0x2b2bc2,'enumerable':![]});throw _0x3cdec9;}const _0x4b5629=_0x3ae47c&&(_0x4ea636[_0x24c7d5(0x125)]===null||_0x3ae47c[_0x24c7d5(0x106)]>_0x4ea636['before'][_0x24c7d5(0x106)]),_0x219b68=_0x3ae47c?.['configHash']===_0x4ea636[_0x24c7d5(0x122)][_0x24c7d5(0x112)];if(!_0x3ae47c||!_0x4b5629||!_0x219b68)throw instantApiPolicyError(_0x30fcef?_0x24c7d5(0x116):'instant_api_policy_publish_verification_failed',_0x24c7d5(0x108),_0x24c7d5(0x121)+mutationLookupCommand()+'`;\x20do\x20not\x20resubmit\x20automatically.');const _0x3ce859=[...expectedRevisionWarnings(_0x4ea636[_0x24c7d5(0x11e)]),RUNTIME_CACHE_WARNING];return _0x30fcef&&_0x3ce859['push'](_0x24c7d5(0x11b)),{'ok':!![],'data':{'operation':_0x24c7d5(0x115),'selector':{'appCode':_0x11d983[_0x24c7d5(0x117)]},'before':projectCurrentPolicy(_0x4ea636[_0x24c7d5(0x125)]),'after':projectCurrentPolicy(_0x3ae47c),'filePath':_0x4ea636[_0x24c7d5(0x10a)]['policyFilePath'],'relativePath':_0x4ea636[_0x24c7d5(0x10a)][_0x24c7d5(0x10e)],'dryRun':![],'backend':{'method':_0x24c7d5(0x114),'path':INSTANT_API_POLICY_BASE_PATH+_0x24c7d5(0x102)},'warnings':_0x3ce859,'verification':{'status':_0x24c7d5(0x118),'recoveredAfterUnknownResponse':_0x30fcef,'expectedRevision':_0x4ea636[_0x24c7d5(0x11e)]??null,'atomicCompareAndSet':![],'lookupCommand':mutationLookupCommand()}},'message':_0x24c7d5(0x105)+_0x3ae47c[_0x24c7d5(0x106)]};}};