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

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 (381) hide show
  1. package/README.md +7 -0
  2. package/lib/api/api-doc.js +1 -1
  3. package/lib/api/api-group.js +1 -1
  4. package/lib/api/fetch-model-list.js +1 -1
  5. package/lib/api/generate-api-file.js +1 -1
  6. package/lib/api/generate-sdk-config-file.js +1 -1
  7. package/lib/api/legacy-api-file.js +1 -1
  8. package/lib/api/model-registry-file.js +1 -1
  9. package/lib/api/model-registry-scaffold.js +1 -1
  10. package/lib/api/model-source.js +1 -1
  11. package/lib/auth/auth-server-ui.js +1 -1
  12. package/lib/auth/auth-server.js +1 -1
  13. package/lib/auth/constant.js +1 -1
  14. package/lib/auth/get-cookie.js +1 -1
  15. package/lib/auth/get-session-user.js +1 -1
  16. package/lib/auth/is-session-valid.js +1 -1
  17. package/lib/auth/login-success-html.js +1 -1
  18. package/lib/auth/logout.js +1 -1
  19. package/lib/cli-flags.js +1 -1
  20. package/lib/cli.js +1 -1
  21. package/lib/commands/api/generate.js +1 -1
  22. package/lib/commands/api/index.js +1 -1
  23. package/lib/commands/api/list.js +1 -1
  24. package/lib/commands/api/pull.js +1 -1
  25. package/lib/commands/api/shared.js +1 -1
  26. package/lib/commands/app/detail.js +1 -1
  27. package/lib/commands/app/index.js +1 -1
  28. package/lib/commands/app/list.js +1 -1
  29. package/lib/commands/app/members-list.js +1 -1
  30. package/lib/commands/app/remote-directory.js +1 -1
  31. package/lib/commands/app/shared.js +1 -1
  32. package/lib/commands/app-config/delete.js +1 -1
  33. package/lib/commands/app-config/get.js +1 -1
  34. package/lib/commands/app-config/index.js +1 -1
  35. package/lib/commands/app-config/list.js +1 -1
  36. package/lib/commands/app-config/set.js +1 -1
  37. package/lib/commands/app-config/shared.js +1 -1
  38. package/lib/commands/auth/index.js +1 -1
  39. package/lib/commands/bff/create.js +1 -1
  40. package/lib/commands/bff/delete.js +1 -1
  41. package/lib/commands/bff/detail.js +1 -1
  42. package/lib/commands/bff/index.js +1 -1
  43. package/lib/commands/bff/list.js +1 -1
  44. package/lib/commands/bff/logs.js +1 -1
  45. package/lib/commands/bff/pull.js +1 -1
  46. package/lib/commands/bff/push.js +1 -1
  47. package/lib/commands/bff/status.js +1 -1
  48. package/lib/commands/cli-skill/index.js +1 -1
  49. package/lib/commands/cli-update.js +1 -1
  50. package/lib/commands/codegen/index.js +1 -1
  51. package/lib/commands/codegen/sdk.js +1 -1
  52. package/lib/commands/codegen/sql.js +1 -1
  53. package/lib/commands/common/app-registry.js +1 -1
  54. package/lib/commands/common/app-selector.js +1 -1
  55. package/lib/commands/common/async-task.js +1 -1
  56. package/lib/commands/common/dry-run.js +1 -1
  57. package/lib/commands/common/flags.js +1 -1
  58. package/lib/commands/common/local-file.js +1 -1
  59. package/lib/commands/common/validate.js +1 -1
  60. package/lib/commands/config/delete.js +1 -1
  61. package/lib/commands/config/get.js +1 -1
  62. package/lib/commands/config/index.js +1 -1
  63. package/lib/commands/config/init.js +1 -1
  64. package/lib/commands/config/list.js +1 -1
  65. package/lib/commands/config/set.js +1 -1
  66. package/lib/commands/config/shared.js +1 -1
  67. package/lib/commands/dataset/batch-design.js +1 -1
  68. package/lib/commands/dataset/business-group-update.js +1 -1
  69. package/lib/commands/dataset/business-groups.js +1 -1
  70. package/lib/commands/dataset/capability.js +1 -1
  71. package/lib/commands/dataset/cross-relation-create.js +1 -1
  72. package/lib/commands/dataset/cross-relation-delete.js +1 -1
  73. package/lib/commands/dataset/cross-relation-list.js +1 -1
  74. package/lib/commands/dataset/cross-relation-shared.js +1 -1
  75. package/lib/commands/dataset/cross-relation-update.js +1 -1
  76. package/lib/commands/dataset/delete.js +1 -1
  77. package/lib/commands/dataset/design-context.js +1 -1
  78. package/lib/commands/dataset/design-start.js +1 -1
  79. package/lib/commands/dataset/design-status.js +1 -1
  80. package/lib/commands/dataset/design-sync-retry.js +1 -1
  81. package/lib/commands/dataset/design-sync-status.js +1 -1
  82. package/lib/commands/dataset/design-validate.js +1 -1
  83. package/lib/commands/dataset/detail.js +1 -1
  84. package/lib/commands/dataset/extend-update.js +1 -1
  85. package/lib/commands/dataset/field-restore.js +1 -1
  86. package/lib/commands/dataset/field-update.js +1 -1
  87. package/lib/commands/dataset/generate.js +1 -1
  88. package/lib/commands/dataset/index.js +1 -1
  89. package/lib/commands/dataset/list.js +1 -1
  90. package/lib/commands/dataset/operations.js +1 -1
  91. package/lib/commands/dataset/relation-audit.js +1 -1
  92. package/lib/commands/dataset/relation-create.js +1 -1
  93. package/lib/commands/dataset/relation-delete.js +1 -1
  94. package/lib/commands/dataset/relation-shared.js +1 -1
  95. package/lib/commands/dataset/relation-update.js +1 -1
  96. package/lib/commands/dataset/relations.js +1 -1
  97. package/lib/commands/dataset/rename.js +1 -1
  98. package/lib/commands/dataset/restore.js +1 -1
  99. package/lib/commands/dataset/user-deleted-field-list.js +1 -1
  100. package/lib/commands/db/analysis-batching.js +1 -1
  101. package/lib/commands/db/analyze-batch-plan.js +1 -1
  102. package/lib/commands/db/analyze-cancel.js +1 -1
  103. package/lib/commands/db/analyze-start.js +1 -1
  104. package/lib/commands/db/analyze-status.js +1 -1
  105. package/lib/commands/db/create.js +1 -1
  106. package/lib/commands/db/cross-db-analysis-shared.js +1 -1
  107. package/lib/commands/db/cross-db-analyze-latest.js +1 -1
  108. package/lib/commands/db/cross-db-analyze-start.js +1 -1
  109. package/lib/commands/db/cross-db-analyze-status.js +1 -1
  110. package/lib/commands/db/delete.js +1 -1
  111. package/lib/commands/db/detail.js +1 -1
  112. package/lib/commands/db/diff-refresh-start.js +1 -1
  113. package/lib/commands/db/diff-refresh-status.js +1 -1
  114. package/lib/commands/db/diff.js +1 -1
  115. package/lib/commands/db/index.js +1 -1
  116. package/lib/commands/db/list.js +1 -1
  117. package/lib/commands/db/shared.js +1 -1
  118. package/lib/commands/db/table-diff-shared.js +1 -1
  119. package/lib/commands/db/tables.js +1 -1
  120. package/lib/commands/db/test.js +1 -1
  121. package/lib/commands/db/update.js +1 -1
  122. package/lib/commands/deployment/index.js +1 -1
  123. package/lib/commands/deployment/sync-all.js +1 -1
  124. package/lib/commands/deployment/sync-jobs.js +1 -1
  125. package/lib/commands/deployment/sync-status.js +1 -1
  126. package/lib/commands/doctor.js +1 -1
  127. package/lib/commands/file/index.js +1 -1
  128. package/lib/commands/flow/create.js +1 -1
  129. package/lib/commands/flow/detail.js +1 -1
  130. package/lib/commands/flow/index.js +1 -1
  131. package/lib/commands/flow/list.js +1 -1
  132. package/lib/commands/flow/page-list.js +1 -1
  133. package/lib/commands/flow/publish.js +1 -1
  134. package/lib/commands/flow/runtime-resources-shared.js +1 -1
  135. package/lib/commands/flow/runtime-role-list.js +1 -1
  136. package/lib/commands/flow/runtime-role-user-list.js +1 -1
  137. package/lib/commands/flow/runtime-user-search.js +1 -1
  138. package/lib/commands/flow/shared.js +1 -1
  139. package/lib/commands/flow/update.js +1 -1
  140. package/lib/commands/flow/validate.js +1 -1
  141. package/lib/commands/instant-api-policy/current.js +1 -1
  142. package/lib/commands/instant-api-policy/index.js +1 -1
  143. package/lib/commands/instant-api-policy/init.js +1 -1
  144. package/lib/commands/instant-api-policy/publish.js +1 -1
  145. package/lib/commands/instant-api-policy/pull.js +1 -1
  146. package/lib/commands/instant-api-policy/revision.js +1 -1
  147. package/lib/commands/instant-api-policy/revisions.js +1 -1
  148. package/lib/commands/instant-api-policy/rollback.js +1 -1
  149. package/lib/commands/instant-api-policy/shared.js +1 -1
  150. package/lib/commands/instant-api-policy/validate.js +1 -1
  151. package/lib/commands/issue/index.js +1 -1
  152. package/lib/commands/issue/nudge.js +1 -1
  153. package/lib/commands/issue/report.js +1 -1
  154. package/lib/commands/issue/shared.js +1 -1
  155. package/lib/commands/kb/create.js +1 -1
  156. package/lib/commands/kb/delete.js +1 -1
  157. package/lib/commands/kb/detail.js +1 -1
  158. package/lib/commands/kb/index.js +1 -1
  159. package/lib/commands/kb/list.js +1 -1
  160. package/lib/commands/kb/search.js +1 -1
  161. package/lib/commands/kb/shared.js +1 -1
  162. package/lib/commands/kb/update.js +1 -1
  163. package/lib/commands/logs/index.js +1 -1
  164. package/lib/commands/menu/asset-update.js +1 -1
  165. package/lib/commands/menu/delete.js +1 -1
  166. package/lib/commands/menu/external-link-create.js +1 -1
  167. package/lib/commands/menu/external-link-update.js +1 -1
  168. package/lib/commands/menu/group-create.js +1 -1
  169. package/lib/commands/menu/group-update.js +1 -1
  170. package/lib/commands/menu/index.js +1 -1
  171. package/lib/commands/menu/list.js +1 -1
  172. package/lib/commands/menu/move.js +1 -1
  173. package/lib/commands/menu/regroup-start.js +1 -1
  174. package/lib/commands/menu/rename.js +1 -1
  175. package/lib/commands/menu/shared/compare-table.js +1 -1
  176. package/lib/commands/menu/shared/delete-plan.js +1 -1
  177. package/lib/commands/menu/shared/facts.js +1 -1
  178. package/lib/commands/menu/shared/index.js +1 -1
  179. package/lib/commands/menu/shared/inquirer.js +1 -1
  180. package/lib/commands/menu/shared/local-pages.js +1 -1
  181. package/lib/commands/menu/shared/logic.js +1 -1
  182. package/lib/commands/menu/shared/mutations.js +1 -1
  183. package/lib/commands/menu/shared/path.js +1 -1
  184. package/lib/commands/menu/shared/service.js +1 -1
  185. package/lib/commands/menu/shared/subapp-assets.js +1 -1
  186. package/lib/commands/menu/shared/sync-core.js +1 -1
  187. package/lib/commands/menu/shared/update-core.js +1 -1
  188. package/lib/commands/menu/shared/valid-url.js +1 -1
  189. package/lib/commands/menu/subapp-assets-status.js +1 -1
  190. package/lib/commands/menu/subapp-assets-update.js +1 -1
  191. package/lib/commands/menu/sync.js +1 -1
  192. package/lib/commands/menu/visibility-update.js +1 -1
  193. package/lib/commands/notification/config-create.js +1 -1
  194. package/lib/commands/notification/config-delete.js +1 -1
  195. package/lib/commands/notification/config-list.js +1 -1
  196. package/lib/commands/notification/config-update.js +1 -1
  197. package/lib/commands/notification/index.js +1 -1
  198. package/lib/commands/notification/shared.js +1 -1
  199. package/lib/commands/ocr/index.js +1 -1
  200. package/lib/commands/page/create.js +1 -1
  201. package/lib/commands/page/custom/detail.js +1 -1
  202. package/lib/commands/page/custom/list.js +1 -1
  203. package/lib/commands/page/custom/publish.js +1 -1
  204. package/lib/commands/page/custom/shared.js +1 -1
  205. package/lib/commands/page/custom/syntax.js +1 -1
  206. package/lib/commands/page/custom/update.js +1 -1
  207. package/lib/commands/page/data-list-status.js +1 -1
  208. package/lib/commands/page/generate-start.js +1 -1
  209. package/lib/commands/page/generate-status.js +1 -1
  210. package/lib/commands/page/index.js +1 -1
  211. package/lib/commands/page/pull.js +1 -1
  212. package/lib/commands/page/push.js +1 -1
  213. package/lib/commands/page/relation-audit.js +1 -1
  214. package/lib/commands/page/restore.js +1 -1
  215. package/lib/commands/page/shared.js +1 -1
  216. package/lib/commands/page/sync.js +1 -1
  217. package/lib/commands/project/api-architecture-upgrade.js +1 -1
  218. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  219. package/lib/commands/project/create/format-elapsed.js +1 -1
  220. package/lib/commands/project/create/main.js +1 -1
  221. package/lib/commands/project/create/materialize-project-template.js +1 -1
  222. package/lib/commands/project/create/project-name.js +1 -1
  223. package/lib/commands/project/create/project-template-archive.js +1 -1
  224. package/lib/commands/project/create/project-template-path.js +1 -1
  225. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  226. package/lib/commands/project/create/use-format-code.js +1 -1
  227. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  228. package/lib/commands/project/domain-routing-sync.js +1 -1
  229. package/lib/commands/project/index.js +1 -1
  230. package/lib/commands/project/upgrade.js +1 -1
  231. package/lib/commands/registry.js +1 -1
  232. package/lib/commands/role/delete.js +1 -1
  233. package/lib/commands/role/detail.js +1 -1
  234. package/lib/commands/role/index.js +1 -1
  235. package/lib/commands/role/list.js +1 -1
  236. package/lib/commands/role/shared.js +1 -1
  237. package/lib/commands/role/update.js +1 -1
  238. package/lib/commands/role/user-add.js +1 -1
  239. package/lib/commands/role/user-remove.js +1 -1
  240. package/lib/commands/role/user-resolve.js +1 -1
  241. package/lib/commands/rule/get.js +1 -1
  242. package/lib/commands/rule/index.js +1 -1
  243. package/lib/commands/rule/list.js +1 -1
  244. package/lib/commands/rule/set.js +1 -1
  245. package/lib/commands/rule/shared.js +1 -1
  246. package/lib/commands/run/index.js +1 -1
  247. package/lib/commands/schema.js +1 -1
  248. package/lib/commands/sql/create.js +1 -1
  249. package/lib/commands/sql/delete.js +1 -1
  250. package/lib/commands/sql/detail.js +1 -1
  251. package/lib/commands/sql/exec.js +1 -1
  252. package/lib/commands/sql/index.js +1 -1
  253. package/lib/commands/sql/list.js +1 -1
  254. package/lib/commands/sql/pull.js +1 -1
  255. package/lib/commands/sql/push.js +1 -1
  256. package/lib/commands/sql/shared.js +1 -1
  257. package/lib/commands/sql/status.js +1 -1
  258. package/lib/commands/sql/validate.js +1 -1
  259. package/lib/commands/task/index.js +1 -1
  260. package/lib/commands/task/status.js +1 -1
  261. package/lib/commands/tenant/index.js +1 -1
  262. package/lib/commands/tenant/members-list.js +1 -1
  263. package/lib/commands/tenant/shared.js +1 -1
  264. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  265. package/lib/commands/user-account/feishu-bind.js +1 -1
  266. package/lib/commands/user-account/index.js +1 -1
  267. package/lib/commands/workspace/add.js +1 -1
  268. package/lib/commands/workspace/index.js +1 -1
  269. package/lib/commands/workspace/remove.js +1 -1
  270. package/lib/config/domain-config.js +1 -1
  271. package/lib/config/project-domain-routing.js +1 -1
  272. package/lib/config/region-config.js +1 -1
  273. package/lib/config/schema.js +1 -1
  274. package/lib/constant/cdn.js +1 -1
  275. package/lib/constant/cli.js +1 -1
  276. package/lib/constant/defaults.js +1 -1
  277. package/lib/constant/domain.d.ts +1 -1
  278. package/lib/constant/domain.js +1 -1
  279. package/lib/constant/env.js +1 -1
  280. package/lib/constant/output.js +1 -1
  281. package/lib/constant/paths.js +1 -1
  282. package/lib/constant/region.js +1 -1
  283. package/lib/constant/risk.js +1 -1
  284. package/lib/constant/routing-profile.js +1 -1
  285. package/lib/context/app-resolver.js +1 -1
  286. package/lib/context/auth-resolver.js +1 -1
  287. package/lib/context/config-loader.js +1 -1
  288. package/lib/context.js +1 -1
  289. package/lib/core/alias-resolver.js +1 -1
  290. package/lib/core/api-client.d.ts +2 -2
  291. package/lib/core/api-client.js +1 -1
  292. package/lib/core/bff/config.js +1 -1
  293. package/lib/core/bff/file-system.js +1 -1
  294. package/lib/core/bff/hash.js +1 -1
  295. package/lib/core/bff/hook-directory.js +1 -1
  296. package/lib/core/bff/lock.js +1 -1
  297. package/lib/core/bff/utils.js +1 -1
  298. package/lib/core/cross-db-analysis.js +1 -1
  299. package/lib/core/cross-db-relation.js +1 -1
  300. package/lib/core/db-resolver.js +1 -1
  301. package/lib/core/flow-config.js +1 -1
  302. package/lib/core/instant-api-policy/config.js +1 -1
  303. package/lib/core/kb-management-client.d.ts +19 -0
  304. package/lib/core/kb-management-client.js +1 -0
  305. package/lib/core/kb-search-client.js +1 -1
  306. package/lib/core/page/file-system.js +1 -1
  307. package/lib/core/page/hash.js +1 -1
  308. package/lib/core/page/lock.js +1 -1
  309. package/lib/core/page/lr-smart-jsx.js +1 -1
  310. package/lib/core/sql-index-auditor.js +1 -1
  311. package/lib/core/sql-sync/config.js +1 -1
  312. package/lib/core/sql-sync/file-system.js +1 -1
  313. package/lib/core/sql-sync/hash.js +1 -1
  314. package/lib/core/sql-sync/lock.js +1 -1
  315. package/lib/core/sql-sync/utils.js +1 -1
  316. package/lib/core/sql-validator.js +1 -1
  317. package/lib/errors.js +1 -1
  318. package/lib/framework/build-all-flags.js +1 -1
  319. package/lib/framework/error-output.js +1 -1
  320. package/lib/framework/explicit-yes.js +1 -1
  321. package/lib/framework/flags.js +1 -1
  322. package/lib/framework/help.js +1 -1
  323. package/lib/framework/index.js +1 -1
  324. package/lib/framework/output.js +1 -1
  325. package/lib/framework/response.js +1 -1
  326. package/lib/framework/runner-alias.js +1 -1
  327. package/lib/framework/runner.js +1 -1
  328. package/lib/framework/schema-export.js +1 -1
  329. package/lib/framework/supported-flags.js +1 -1
  330. package/lib/framework/types.js +1 -1
  331. package/lib/generated/build-info.d.ts +4 -4
  332. package/lib/generated/build-info.js +1 -1
  333. package/lib/generated/official-routing.js +1 -1
  334. package/lib/generated/routing-contract.js +1 -1
  335. package/lib/help.js +1 -1
  336. package/lib/postinstall.js +1 -1
  337. package/lib/runtime/confirmation.js +1 -1
  338. package/lib/runtime/event.js +1 -1
  339. package/lib/runtime/index.js +1 -1
  340. package/lib/runtime/queue.js +1 -1
  341. package/lib/runtime/resolve.js +1 -1
  342. package/lib/services/dataset-design/checkpoint.js +1 -1
  343. package/lib/services/dataset-design/commands.js +1 -1
  344. package/lib/services/dataset-design/contract.js +1 -1
  345. package/lib/skills/builtin-skill.js +1 -1
  346. package/lib/skills/main.js +1 -1
  347. package/lib/skills/npx-skills-add.js +1 -1
  348. package/lib/skills/skill-presence.js +1 -1
  349. package/lib/telemetry/cli-command-trace.js +1 -1
  350. package/lib/telemetry/cli-help-trace.js +1 -1
  351. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  352. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  353. package/lib/telemetry/send-cli-trace-log.js +1 -1
  354. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  355. package/lib/utils/ai_config.js +1 -1
  356. package/lib/utils/apply-jq-filter.js +1 -1
  357. package/lib/utils/cdn-config.js +1 -1
  358. package/lib/utils/check-sdk-version.js +1 -1
  359. package/lib/utils/cli-version-check.js +1 -1
  360. package/lib/utils/cli-version-policy.js +1 -1
  361. package/lib/utils/config.js +1 -1
  362. package/lib/utils/entity-with-id.js +1 -1
  363. package/lib/utils/file-utils.js +1 -1
  364. package/lib/utils/guides-cdn.js +1 -1
  365. package/lib/utils/http-client.js +1 -1
  366. package/lib/utils/is-non-interactive.js +1 -1
  367. package/lib/utils/logger.js +1 -1
  368. package/lib/utils/params.js +1 -1
  369. package/lib/utils/platform.js +1 -1
  370. package/lib/utils/sleep.js +1 -1
  371. package/lib/utils/template-replacer.js +1 -1
  372. package/lib/utils/update-notice.js +1 -1
  373. package/lib/utils/version.js +1 -1
  374. package/lib/utils/with-active-cookie.js +1 -1
  375. package/lib/utils/write-cli-side-channel.js +1 -1
  376. package/package.json +1 -1
  377. package/skills/rabetbase/SKILL.md +2 -2
  378. package/skills/rabetbase/references/rabetbase-kb.md +7 -6
  379. package/skills/rabetbase-dataset-generation/SKILL.md +1 -1
  380. package/skills/rabetbase-page-generation/SKILL.md +1 -1
  381. package/skills/rabetbase.manifest.json +3 -3
@@ -1 +1 @@
1
- const a188_0x379125=a188_0x1339;(function(_0x47d423,_0xa9dfdf){const _0x34d6a5=a188_0x1339,_0x29bba8=_0x47d423();while(!![]){try{const _0x5d2b78=parseInt(_0x34d6a5(0x1c6))/0x1+parseInt(_0x34d6a5(0x1c2))/0x2*(parseInt(_0x34d6a5(0x1ca))/0x3)+-parseInt(_0x34d6a5(0x1c7))/0x4+parseInt(_0x34d6a5(0x1cb))/0x5+parseInt(_0x34d6a5(0x1cf))/0x6+parseInt(_0x34d6a5(0x1bf))/0x7*(-parseInt(_0x34d6a5(0x1c3))/0x8)+parseInt(_0x34d6a5(0x1cc))/0x9*(-parseInt(_0x34d6a5(0x1c9))/0xa);if(_0x5d2b78===_0xa9dfdf)break;else _0x29bba8['push'](_0x29bba8['shift']());}catch(_0x5d39d1){_0x29bba8['push'](_0x29bba8['shift']());}}}(a188_0x30e5,0xacc42));function a188_0x1339(_0x16ef5c,_0x9fcca7){_0x16ef5c=_0x16ef5c-0x1be;const _0x30e5f9=a188_0x30e5();let _0x133960=_0x30e5f9[_0x16ef5c];return _0x133960;}import{getSmartAppRecord}from'../../core/api-client.js';function a188_0x30e5(){const _0x364f40=['Inspected\x20','148230XQyBPS','757209ZfQYaB','4161160WVHcuZ','612XbiiaU','\x20menu(s)\x20for\x20','cookie','2965068KquPyW','all','\x20in\x20menu\x20host\x20','4053ftWInX','boundMenus','Inspect\x20shared\x20frontend\x20subapp\x20resources\x20and\x20menu\x20fallbacks\x20in\x20the\x20selected\x20menu\x20host','6papbtN','12568rZpJMC','menu','read','556502GHtLUR','59592qqUldo'];a188_0x30e5=function(){return _0x364f40;};return a188_0x30e5();}import{getOnlineMenuList}from'../../commands/menu/shared/service.js';import{buildSubappAssetsStatus,getSubappSelector,SUBAPP_ASSET_SELECTOR_FLAGS}from'../../commands/menu/shared/subapp-assets.js';export const menuSubappAssetsStatus={'service':a188_0x379125(0x1c4),'command':'subapp-assets-status','description':a188_0x379125(0x1c1),'risk':a188_0x379125(0x1c5),'strictFlags':!![],'flags':SUBAPP_ASSET_SELECTOR_FLAGS,async 'validate'(_0x4f96e3){getSubappSelector(_0x4f96e3);},async 'execute'(_0x335d23){const _0x4c3795=a188_0x379125,{appCode:_0x16dd71,appName:_0x42ad0f}=getSubappSelector(_0x335d23),[_0x5d316d,_0x51b0b8]=await Promise[_0x4c3795(0x1d0)]([getSmartAppRecord(_0x16dd71,_0x335d23[_0x4c3795(0x1ce)]),getOnlineMenuList(_0x16dd71,_0x335d23[_0x4c3795(0x1ce)])]),_0xfaa50={'appCode':_0x16dd71,...buildSubappAssetsStatus(_0x5d316d,_0x51b0b8,_0x42ad0f)};return{'ok':!![],'data':_0xfaa50,'message':_0x4c3795(0x1c8)+_0xfaa50[_0x4c3795(0x1c0)]+_0x4c3795(0x1cd)+_0x42ad0f+_0x4c3795(0x1be)+_0x16dd71+'.'};}};
1
+ const a188_0x4a783e=a188_0x1977;(function(_0x1230ae,_0x11c585){const _0x3aeb05=a188_0x1977,_0x1f5677=_0x1230ae();while(!![]){try{const _0x115d4f=-parseInt(_0x3aeb05(0x17a))/0x1*(parseInt(_0x3aeb05(0x173))/0x2)+-parseInt(_0x3aeb05(0x180))/0x3+-parseInt(_0x3aeb05(0x178))/0x4+-parseInt(_0x3aeb05(0x183))/0x5+parseInt(_0x3aeb05(0x179))/0x6+parseInt(_0x3aeb05(0x172))/0x7*(parseInt(_0x3aeb05(0x177))/0x8)+parseInt(_0x3aeb05(0x182))/0x9*(parseInt(_0x3aeb05(0x17b))/0xa);if(_0x115d4f===_0x11c585)break;else _0x1f5677['push'](_0x1f5677['shift']());}catch(_0x78d4ea){_0x1f5677['push'](_0x1f5677['shift']());}}}(a188_0x4ed7,0x2e74d));import{getSmartAppRecord}from'../../core/api-client.js';function a188_0x1977(_0x21e70a,_0x527bdc){_0x21e70a=_0x21e70a-0x172;const _0x4ed703=a188_0x4ed7();let _0x197718=_0x4ed703[_0x21e70a];return _0x197718;}import{getOnlineMenuList}from'../../commands/menu/shared/service.js';import{buildSubappAssetsStatus,getSubappSelector,SUBAPP_ASSET_SELECTOR_FLAGS}from'../../commands/menu/shared/subapp-assets.js';export const menuSubappAssetsStatus={'service':a188_0x4a783e(0x181),'command':a188_0x4a783e(0x176),'description':a188_0x4a783e(0x174),'risk':a188_0x4a783e(0x17f),'strictFlags':!![],'flags':SUBAPP_ASSET_SELECTOR_FLAGS,async 'validate'(_0x535d57){getSubappSelector(_0x535d57);},async 'execute'(_0x3394ed){const _0x460e68=a188_0x4a783e,{appCode:_0x164d05,appName:_0x1a3da0}=getSubappSelector(_0x3394ed),[_0x131a5e,_0x195480]=await Promise[_0x460e68(0x17e)]([getSmartAppRecord(_0x164d05,_0x3394ed[_0x460e68(0x175)]),getOnlineMenuList(_0x164d05,_0x3394ed[_0x460e68(0x175)])]),_0x4a69c6={'appCode':_0x164d05,...buildSubappAssetsStatus(_0x131a5e,_0x195480,_0x1a3da0)};return{'ok':!![],'data':_0x4a69c6,'message':_0x460e68(0x17c)+_0x4a69c6[_0x460e68(0x17d)]+_0x460e68(0x185)+_0x1a3da0+_0x460e68(0x184)+_0x164d05+'.'};}};function a188_0x4ed7(){const _0x96ef98=['89878BsrIcU','1706460vxiTNG','Inspected\x20','boundMenus','all','read','508671oKkSyZ','menu','9kzIwGH','633120FyIyKQ','\x20in\x20menu\x20host\x20','\x20menu(s)\x20for\x20','4179BCxBad','4jaJupb','Inspect\x20shared\x20frontend\x20subapp\x20resources\x20and\x20menu\x20fallbacks\x20in\x20the\x20selected\x20menu\x20host','cookie','subapp-assets-status','4712oIztaA','844308tiLAsB','2130120rsRCcE'];a188_0x4ed7=function(){return _0x96ef98;};return a188_0x4ed7();}
@@ -1 +1 @@
1
- const a189_0x70f018=a189_0x3ec5;function a189_0x3ec5(_0xb3587d,_0x2a7145){_0xb3587d=_0xb3587d-0xe8;const _0xc3e29a=a189_0xc3e2();let _0x3ec524=_0xc3e29a[_0xb3587d];return _0x3ec524;}(function(_0x46fa46,_0x4c2108){const _0x58fa20=a189_0x3ec5,_0x492c55=_0x46fa46();while(!![]){try{const _0x32c783=parseInt(_0x58fa20(0x10c))/0x1+-parseInt(_0x58fa20(0xf6))/0x2+-parseInt(_0x58fa20(0x139))/0x3+parseInt(_0x58fa20(0x12b))/0x4*(parseInt(_0x58fa20(0x102))/0x5)+parseInt(_0x58fa20(0x134))/0x6*(-parseInt(_0x58fa20(0x105))/0x7)+parseInt(_0x58fa20(0xfc))/0x8*(-parseInt(_0x58fa20(0x100))/0x9)+parseInt(_0x58fa20(0xe9))/0xa*(parseInt(_0x58fa20(0xf4))/0xb);if(_0x32c783===_0x4c2108)break;else _0x492c55['push'](_0x492c55['shift']());}catch(_0x33e7b4){_0x492c55['push'](_0x492c55['shift']());}}}(a189_0xc3e2,0xa1243));import{createHash}from'node:crypto';import{isDeepStrictEqual}from'node:util';import{getSmartAppRecord,updateSmartAppRecord}from'../../core/api-client.js';function a189_0xc3e2(){const _0x2a443a=['Unknown\x20app.extend\x20fields:\x20','tenantColumn','\x20contains\x20invalid\x20JSON.','cookie','--expected-hash\x20from\x20a\x20dry-run\x20is\x20required.','6OToCKa','unchanged','JSON\x20array\x20of\x20HTTPS\x20resource\x20URLs','nextExtend','At\x20least\x20one\x20resource\x20URL\x20is\x20required.','2428392colIlE','Existing\x20subapp.resources\x20must\x20be\x20an\x20array\x20of\x20URLs.','258740ktoGzH','expectedHash','--resources\x20must\x20be\x20a\x20JSON\x20array\x20of\x20HTTPS\x20URLs.','write',';\x20found\x20','filter','Preview\x20fingerprint\x20binding\x20the\x20host,\x20subapp,\x20resource\x20URLs\x20and\x20current\x20config;\x20required\x20for\x20writes','validation','Management\x20app\x20assets\x20already\x20match;\x20independent\x20deployment\x20not\x20verified.','extend','POST','1639pgXRRv','size','2295786RxByOo','isSafeInteger','appPublishStatus','app.extend.assets','\x20must\x20be\x20a\x20JSON\x20object.','menu','920JjUlUJ','keys','parse','string','101115uwqPvi','verified\x20app.extend','913335DKezHl','skinColor','sha256','6265847WiIUum','App\x20ID\x20or\x20publish\x20status\x20is\x20missing;\x20refusing\x20a\x20generic\x20app\x20update.','Shared\x20assets\x20already\x20match\x20the\x20requested\x20URLs.','object','assets','trim','test','401311capyac','str','\x20in\x20menu\x20host\x20','Update\x20one\x20frontend\x20subapp\x20resource\x20URL\x20set\x20in\x20the\x20selected\x20menu\x20host','some','has','directDbEnabled','map','subapp-assets-update','App\x20assets\x20or\x20update\x20target\x20changed\x20since\x20preview;\x20the\x20fingerprint\x20does\x20not\x20match.\x20Run\x20a\x20new\x20dry-run.','digest','before','appCode','not\x20HTTPS','hex','expected-hash','length','entries',';\x20independent\x20deployment\x20not\x20verified.','https:','app.extend','directDbId','resources[','resources','isArray','join','enableAutoSync','stringify','enableOpenApi','Existing\x20subapp.resources\x20must\x20be\x20a\x20JSON\x20string.',']\x20must\x20be\x20a\x20URL\x20string.','12GdznFf','Existing\x20subapp.resources\x20contains\x20invalid\x20JSON.','protocol','enableSample'];a189_0xc3e2=function(){return _0x2a443a;};return a189_0xc3e2();}import{CliErrors}from'../../errors.js';import{getSubappSelector,SUBAPP_ASSET_SELECTOR_FLAGS}from'../../commands/menu/shared/subapp-assets.js';const KNOWN_EXTEND_KEYS=new Set([a189_0x70f018(0x103),a189_0x70f018(0x128),'accessKey','assets',a189_0x70f018(0x130),a189_0x70f018(0x12e),'vipDeploy',a189_0x70f018(0x126),a189_0x70f018(0x121),a189_0x70f018(0x112)]);function parseObject(_0x5cc129,_0x7be5a3){const _0x43eebf=a189_0x70f018;let _0x56591d=_0x5cc129;if(typeof _0x5cc129===_0x43eebf(0xff))try{_0x56591d=JSON[_0x43eebf(0xfe)](_0x5cc129);}catch{throw CliErrors[_0x43eebf(0xf0)](_0x7be5a3+_0x43eebf(0x131));}if(!_0x56591d||typeof _0x56591d!==_0x43eebf(0x108)||Array['isArray'](_0x56591d))throw CliErrors[_0x43eebf(0xf0)](_0x7be5a3+_0x43eebf(0xfa));return _0x56591d;}function parseArray(_0x11b663,_0x625442){const _0x4e1f57=a189_0x70f018;let _0x3f0ee8;try{_0x3f0ee8=JSON['parse'](_0x11b663);}catch{throw CliErrors[_0x4e1f57(0xf0)](_0x625442+_0x4e1f57(0x131));}if(!Array[_0x4e1f57(0x124)](_0x3f0ee8))throw CliErrors['validation'](_0x625442+'\x20must\x20be\x20a\x20JSON\x20array.');return _0x3f0ee8[_0x4e1f57(0x113)]((_0x13370f,_0x3d5ad2)=>parseObject(_0x13370f,_0x625442+'['+_0x3d5ad2+']'));}function validateResources(_0x38cac5){const _0x3f606e=a189_0x70f018;if(_0x38cac5[_0x3f606e(0x11c)]===0x0)throw CliErrors[_0x3f606e(0xf0)](_0x3f606e(0x138));for(const [_0x285530,_0x34e662]of _0x38cac5[_0x3f606e(0x11d)]()){if(typeof _0x34e662!==_0x3f606e(0xff))throw CliErrors[_0x3f606e(0xf0)](_0x3f606e(0x122)+_0x285530+_0x3f606e(0x12a));try{if(new URL(_0x34e662)[_0x3f606e(0x12d)]!==_0x3f606e(0x11f))throw new Error(_0x3f606e(0x119));}catch{throw CliErrors[_0x3f606e(0xf0)](_0x3f606e(0x122)+_0x285530+']\x20must\x20be\x20an\x20absolute\x20HTTPS\x20URL.');}}if(new Set(_0x38cac5)[_0x3f606e(0xf5)]!==_0x38cac5['length']||!_0x38cac5[_0x3f606e(0x110)](_0x6fbea8=>/\.m?js(?:[?#]|$)/i[_0x3f606e(0x10b)](_0x6fbea8)))throw CliErrors[_0x3f606e(0xf0)]('Resources\x20need\x20one\x20JS\x20entry\x20and\x20no\x20duplicate\x20URLs.');return _0x38cac5;}function prepare(_0x378334,_0x6f4e52,_0x66288b){const _0x11bc69=a189_0x70f018;if(!Number[_0x11bc69(0xf7)](_0x378334['id'])||(_0x378334['id']??0x0)<=0x0||typeof _0x378334[_0x11bc69(0xf8)]!==_0x11bc69(0xff)||!_0x378334['appPublishStatus'])throw CliErrors[_0x11bc69(0xf0)](_0x11bc69(0x106));const _0x355c8c=parseObject(_0x378334[_0x11bc69(0xf2)],_0x11bc69(0x120)),_0x518359=Object[_0x11bc69(0xfd)](_0x355c8c)[_0x11bc69(0xee)](_0x42273f=>!KNOWN_EXTEND_KEYS[_0x11bc69(0x111)](_0x42273f));if(_0x518359[_0x11bc69(0x11c)])throw CliErrors[_0x11bc69(0xf0)](_0x11bc69(0x12f)+_0x518359[_0x11bc69(0x125)](',\x20')+'.\x20Refusing\x20update.');if(typeof _0x355c8c['assets']!==_0x11bc69(0xff))throw CliErrors[_0x11bc69(0xf0)]('app.extend.assets\x20must\x20be\x20a\x20JSON\x20string;\x20refusing\x20update.');const _0x59cb97=parseArray(_0x355c8c[_0x11bc69(0x109)],_0x11bc69(0xf9)),_0x59f3b1=_0x59cb97[_0x11bc69(0xee)](_0x3f006b=>_0x3f006b['appName']===_0x6f4e52);if(_0x59f3b1[_0x11bc69(0x11c)]!==0x1)throw CliErrors[_0x11bc69(0xf0)]('Expected\x20exactly\x20one\x20existing\x20subapp\x20entry\x20for\x20'+_0x6f4e52+_0x11bc69(0xed)+_0x59f3b1['length']+'.');const _0x7730a=_0x59f3b1[0x0];if(typeof _0x7730a[_0x11bc69(0x123)]!==_0x11bc69(0xff))throw CliErrors[_0x11bc69(0xf0)](_0x11bc69(0x129));let _0x5ca7ed;try{_0x5ca7ed=JSON[_0x11bc69(0xfe)](_0x7730a[_0x11bc69(0x123)]);}catch{throw CliErrors[_0x11bc69(0xf0)](_0x11bc69(0x12c));}if(!Array[_0x11bc69(0x124)](_0x5ca7ed)||_0x5ca7ed['some'](_0x4e95bf=>typeof _0x4e95bf!==_0x11bc69(0xff)))throw CliErrors['validation'](_0x11bc69(0xe8));const _0x5ded60=_0x59cb97[_0x11bc69(0x113)](_0x5346d8=>_0x5346d8===_0x7730a?{..._0x5346d8,'resources':JSON[_0x11bc69(0x127)](_0x66288b)}:_0x5346d8),_0x4fc079={..._0x355c8c,'assets':JSON[_0x11bc69(0x127)](_0x5ded60)},_0x5379d1=createHash(_0x11bc69(0x104))['update'](JSON[_0x11bc69(0x127)]({'appCode':_0x378334[_0x11bc69(0x118)],'id':_0x378334['id'],'appPublishStatus':_0x378334[_0x11bc69(0xf8)],'extend':_0x355c8c,'appName':_0x6f4e52,'resources':_0x66288b}))[_0x11bc69(0x116)](_0x11bc69(0x11a));return{'before':_0x5ca7ed,'nextExtend':_0x4fc079,'expectedHash':_0x5379d1,'unchanged':isDeepStrictEqual(_0x5ca7ed,_0x66288b)};}function flags(_0x25db51){const _0x266da2=a189_0x70f018,{appCode:_0x3954ce,appName:_0x23147f}=getSubappSelector(_0x25db51),_0x65da3e=_0x25db51[_0x266da2(0x10d)](_0x266da2(0x123))[_0x266da2(0x10a)]();if(!_0x65da3e)throw CliErrors['validation']('--resources\x20is\x20required.');let _0x40cd1f;try{_0x40cd1f=JSON[_0x266da2(0xfe)](_0x65da3e);}catch{throw CliErrors[_0x266da2(0xf0)]('--resources\x20must\x20be\x20a\x20JSON\x20array\x20of\x20HTTPS\x20URLs.');}if(!Array[_0x266da2(0x124)](_0x40cd1f))throw CliErrors[_0x266da2(0xf0)](_0x266da2(0xeb));return{'appCode':_0x3954ce,'appName':_0x23147f,'resources':validateResources(_0x40cd1f)};}export const menuSubappAssetsUpdate={'service':a189_0x70f018(0xfb),'command':a189_0x70f018(0x114),'description':a189_0x70f018(0x10f),'risk':a189_0x70f018(0xec),'strictFlags':!![],'flags':[...SUBAPP_ASSET_SELECTOR_FLAGS,{'name':a189_0x70f018(0x123),'type':a189_0x70f018(0xff),'required':!![],'description':a189_0x70f018(0x136)},{'name':'expected-hash','type':a189_0x70f018(0xff),'description':a189_0x70f018(0xef)}],async 'validate'(_0x19bb80){flags(_0x19bb80);},async 'dryRun'(_0x384e36){const _0x30fdc4=a189_0x70f018,{appCode:_0x362b21,appName:_0x33a738,resources:_0x342e1c}=flags(_0x384e36),_0x19c24d=await getSmartAppRecord(_0x362b21,_0x384e36[_0x30fdc4(0x132)]),_0x32ffd6=prepare(_0x19c24d,_0x33a738,_0x342e1c);return{'method':_0x30fdc4(0xf3),'url':'/smartapi/app/update','body':{'preview':{'appCode':_0x362b21,'appName':_0x33a738,'before':_0x32ffd6[_0x30fdc4(0x117)],'after':_0x342e1c,'expectedHash':_0x32ffd6[_0x30fdc4(0xea)],'unchanged':_0x32ffd6[_0x30fdc4(0x135)],'remoteContentVerified':![],'independentDeploymentVerified':![]}},'description':_0x32ffd6[_0x30fdc4(0x135)]?_0x30fdc4(0x107):'Would\x20update\x20shared\x20assets\x20for\x20'+_0x33a738+'.'};},async 'execute'(_0x186b04){const _0x13905a=a189_0x70f018,{appCode:_0x23ad2b,appName:_0x21366f,resources:_0x59a189}=flags(_0x186b04),_0x48caf6=_0x186b04['str'](_0x13905a(0x11b))[_0x13905a(0x10a)]();if(!/^[a-f0-9]{64}$/i[_0x13905a(0x10b)](_0x48caf6))throw CliErrors['validation'](_0x13905a(0x133));const _0x6cb390=await getSmartAppRecord(_0x23ad2b,_0x186b04[_0x13905a(0x132)]),_0x2fa9b3=prepare(_0x6cb390,_0x21366f,_0x59a189);if(_0x48caf6!==_0x2fa9b3[_0x13905a(0xea)])throw CliErrors[_0x13905a(0xf0)](_0x13905a(0x115));if(_0x2fa9b3['unchanged'])return{'ok':!![],'data':{'appCode':_0x23ad2b,'appName':_0x21366f,'updated':![],'managementConfirmed':!![],'independentDeploymentVerified':![],'remoteContentVerified':![]},'message':_0x13905a(0xf1)};await updateSmartAppRecord({'id':_0x6cb390['id'],'appCode':_0x23ad2b,'appPublishStatus':_0x6cb390[_0x13905a(0xf8)],'extend':_0x2fa9b3[_0x13905a(0x137)]},_0x186b04[_0x13905a(0x132)]);const _0x4cd250=await getSmartAppRecord(_0x23ad2b,_0x186b04['cookie']),_0x108924=parseObject(_0x4cd250[_0x13905a(0xf2)],_0x13905a(0x101));if(_0x4cd250['id']!==_0x6cb390['id']||_0x4cd250[_0x13905a(0xf8)]!==_0x6cb390['appPublishStatus']||!isDeepStrictEqual(_0x108924,_0x2fa9b3[_0x13905a(0x137)]))throw CliErrors['apiError']('App\x20asset\x20update\x20verification\x20failed;\x20inspect\x20the\x20app\x20before\x20retrying.');return{'ok':!![],'data':{'appCode':_0x23ad2b,'appName':_0x21366f,'updated':!![],'resources':_0x59a189,'managementConfirmed':!![],'independentDeploymentVerified':![],'remoteContentVerified':![]},'message':'Updated\x20shared\x20resources\x20for\x20'+_0x21366f+_0x13905a(0x10e)+_0x23ad2b+_0x13905a(0x11e)};}};
1
+ const a189_0xfb56cf=a189_0x1ef3;(function(_0x399cd1,_0x593083){const _0x14f13b=a189_0x1ef3,_0x28f7b3=_0x399cd1();while(!![]){try{const _0x28e6a2=parseInt(_0x14f13b(0x180))/0x1*(-parseInt(_0x14f13b(0x18b))/0x2)+-parseInt(_0x14f13b(0x17a))/0x3+parseInt(_0x14f13b(0x1a5))/0x4*(parseInt(_0x14f13b(0x1ab))/0x5)+parseInt(_0x14f13b(0x190))/0x6+-parseInt(_0x14f13b(0x1a1))/0x7*(-parseInt(_0x14f13b(0x16f))/0x8)+parseInt(_0x14f13b(0x158))/0x9*(parseInt(_0x14f13b(0x15d))/0xa)+parseInt(_0x14f13b(0x198))/0xb*(-parseInt(_0x14f13b(0x195))/0xc);if(_0x28e6a2===_0x593083)break;else _0x28f7b3['push'](_0x28f7b3['shift']());}catch(_0x2aff8c){_0x28f7b3['push'](_0x28f7b3['shift']());}}}(a189_0x4c10,0xd3d81));import{createHash}from'node:crypto';import{isDeepStrictEqual}from'node:util';import{getSmartAppRecord,updateSmartAppRecord}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a189_0x4c10(){const _0x158c6c=['7483CMDGdh','length','digest','--resources\x20is\x20required.','5872xmsLtb','protocol','appCode','App\x20assets\x20or\x20update\x20target\x20changed\x20since\x20preview;\x20the\x20fingerprint\x20does\x20not\x20match.\x20Run\x20a\x20new\x20dry-run.','enableOpenApi','expectedHash','4050GvdsdG','Existing\x20subapp.resources\x20must\x20be\x20an\x20array\x20of\x20URLs.','6642FGqOdM','directDbEnabled','filter','\x20must\x20be\x20a\x20JSON\x20array.','isArray','21030PMdWtC','join','appName','tenantColumn','update','apiError','has','Expected\x20exactly\x20one\x20existing\x20subapp\x20entry\x20for\x20','validation','stringify','At\x20least\x20one\x20resource\x20URL\x20is\x20required.','Updated\x20shared\x20resources\x20for\x20','keys','.\x20Refusing\x20update.','Resources\x20need\x20one\x20JS\x20entry\x20and\x20no\x20duplicate\x20URLs.',']\x20must\x20be\x20an\x20absolute\x20HTTPS\x20URL.','object','enableAutoSync','9392eXxFxS','Preview\x20fingerprint\x20binding\x20the\x20host,\x20subapp,\x20resource\x20URLs\x20and\x20current\x20config;\x20required\x20for\x20writes',';\x20found\x20','some','resources','Existing\x20subapp.resources\x20must\x20be\x20a\x20JSON\x20string.','subapp-assets-update','not\x20HTTPS','parse','map','string','2813118PSNIrO','Unknown\x20app.extend\x20fields:\x20','resources[','app.extend.assets\x20must\x20be\x20a\x20JSON\x20string;\x20refusing\x20update.','Would\x20update\x20shared\x20assets\x20for\x20','directDbId','5qUxmUW',']\x20must\x20be\x20a\x20URL\x20string.','App\x20ID\x20or\x20publish\x20status\x20is\x20missing;\x20refusing\x20a\x20generic\x20app\x20update.','skinColor','app.extend.assets','assets','expected-hash','menu','trim','before','Shared\x20assets\x20already\x20match\x20the\x20requested\x20URLs.','129566CMqhFb','str','enableSample','Existing\x20subapp.resources\x20contains\x20invalid\x20JSON.','\x20in\x20menu\x20host\x20','4674708jiuiDV','\x20contains\x20invalid\x20JSON.','isSafeInteger','entries','unchanged','12nvnsnp','--expected-hash\x20from\x20a\x20dry-run\x20is\x20required.','/smartapi/app/update','29104724uIyJjZ','appPublishStatus','accessKey','Management\x20app\x20assets\x20already\x20match;\x20independent\x20deployment\x20not\x20verified.','nextExtend','write','cookie','--resources\x20must\x20be\x20a\x20JSON\x20array\x20of\x20HTTPS\x20URLs.','JSON\x20array\x20of\x20HTTPS\x20resource\x20URLs'];a189_0x4c10=function(){return _0x158c6c;};return a189_0x4c10();}import{getSubappSelector,SUBAPP_ASSET_SELECTOR_FLAGS}from'../../commands/menu/shared/subapp-assets.js';const KNOWN_EXTEND_KEYS=new Set([a189_0xfb56cf(0x183),a189_0xfb56cf(0x1a9),a189_0xfb56cf(0x19a),a189_0xfb56cf(0x185),a189_0xfb56cf(0x160),a189_0xfb56cf(0x18d),'vipDeploy',a189_0xfb56cf(0x16e),a189_0xfb56cf(0x17f),a189_0xfb56cf(0x159)]);function parseObject(_0x30b550,_0x1b2cc5){const _0x13ae65=a189_0xfb56cf;let _0x501b89=_0x30b550;if(typeof _0x30b550===_0x13ae65(0x179))try{_0x501b89=JSON[_0x13ae65(0x177)](_0x30b550);}catch{throw CliErrors[_0x13ae65(0x165)](_0x1b2cc5+_0x13ae65(0x191));}if(!_0x501b89||typeof _0x501b89!==_0x13ae65(0x16d)||Array[_0x13ae65(0x15c)](_0x501b89))throw CliErrors[_0x13ae65(0x165)](_0x1b2cc5+'\x20must\x20be\x20a\x20JSON\x20object.');return _0x501b89;}function a189_0x1ef3(_0x5a6ebf,_0x44184e){_0x5a6ebf=_0x5a6ebf-0x157;const _0x4c1048=a189_0x4c10();let _0x1ef3b3=_0x4c1048[_0x5a6ebf];return _0x1ef3b3;}function parseArray(_0x100b31,_0x3caa96){const _0x2ab074=a189_0xfb56cf;let _0x4a1dcd;try{_0x4a1dcd=JSON[_0x2ab074(0x177)](_0x100b31);}catch{throw CliErrors[_0x2ab074(0x165)](_0x3caa96+_0x2ab074(0x191));}if(!Array[_0x2ab074(0x15c)](_0x4a1dcd))throw CliErrors[_0x2ab074(0x165)](_0x3caa96+_0x2ab074(0x15b));return _0x4a1dcd['map']((_0x257c44,_0x373571)=>parseObject(_0x257c44,_0x3caa96+'['+_0x373571+']'));}function validateResources(_0x3bf77c){const _0x471a24=a189_0xfb56cf;if(_0x3bf77c[_0x471a24(0x1a2)]===0x0)throw CliErrors['validation'](_0x471a24(0x167));for(const [_0x56a5ef,_0x27ee5b]of _0x3bf77c[_0x471a24(0x193)]()){if(typeof _0x27ee5b!==_0x471a24(0x179))throw CliErrors[_0x471a24(0x165)](_0x471a24(0x17c)+_0x56a5ef+_0x471a24(0x181));try{if(new URL(_0x27ee5b)[_0x471a24(0x1a6)]!=='https:')throw new Error(_0x471a24(0x176));}catch{throw CliErrors[_0x471a24(0x165)](_0x471a24(0x17c)+_0x56a5ef+_0x471a24(0x16c));}}if(new Set(_0x3bf77c)['size']!==_0x3bf77c[_0x471a24(0x1a2)]||!_0x3bf77c[_0x471a24(0x172)](_0x4b43ca=>/\.m?js(?:[?#]|$)/i['test'](_0x4b43ca)))throw CliErrors[_0x471a24(0x165)](_0x471a24(0x16b));return _0x3bf77c;}function prepare(_0x7a9831,_0x594ee0,_0x5c0ce6){const _0x59edd1=a189_0xfb56cf;if(!Number[_0x59edd1(0x192)](_0x7a9831['id'])||(_0x7a9831['id']??0x0)<=0x0||typeof _0x7a9831[_0x59edd1(0x199)]!=='string'||!_0x7a9831[_0x59edd1(0x199)])throw CliErrors[_0x59edd1(0x165)](_0x59edd1(0x182));const _0x5251af=parseObject(_0x7a9831['extend'],'app.extend'),_0x2e0de2=Object[_0x59edd1(0x169)](_0x5251af)[_0x59edd1(0x15a)](_0x5eae0d=>!KNOWN_EXTEND_KEYS[_0x59edd1(0x163)](_0x5eae0d));if(_0x2e0de2[_0x59edd1(0x1a2)])throw CliErrors[_0x59edd1(0x165)](_0x59edd1(0x17b)+_0x2e0de2[_0x59edd1(0x15e)](',\x20')+_0x59edd1(0x16a));if(typeof _0x5251af[_0x59edd1(0x185)]!==_0x59edd1(0x179))throw CliErrors[_0x59edd1(0x165)](_0x59edd1(0x17d));const _0x31959c=parseArray(_0x5251af[_0x59edd1(0x185)],_0x59edd1(0x184)),_0x1a7054=_0x31959c[_0x59edd1(0x15a)](_0x3c2dcc=>_0x3c2dcc[_0x59edd1(0x15f)]===_0x594ee0);if(_0x1a7054[_0x59edd1(0x1a2)]!==0x1)throw CliErrors[_0x59edd1(0x165)](_0x59edd1(0x164)+_0x594ee0+_0x59edd1(0x171)+_0x1a7054[_0x59edd1(0x1a2)]+'.');const _0x52acde=_0x1a7054[0x0];if(typeof _0x52acde['resources']!=='string')throw CliErrors[_0x59edd1(0x165)](_0x59edd1(0x174));let _0x337134;try{_0x337134=JSON['parse'](_0x52acde[_0x59edd1(0x173)]);}catch{throw CliErrors['validation'](_0x59edd1(0x18e));}if(!Array[_0x59edd1(0x15c)](_0x337134)||_0x337134['some'](_0x254c95=>typeof _0x254c95!==_0x59edd1(0x179)))throw CliErrors[_0x59edd1(0x165)](_0x59edd1(0x157));const _0x5893a6=_0x31959c[_0x59edd1(0x178)](_0x14cf54=>_0x14cf54===_0x52acde?{..._0x14cf54,'resources':JSON[_0x59edd1(0x166)](_0x5c0ce6)}:_0x14cf54),_0x111546={..._0x5251af,'assets':JSON[_0x59edd1(0x166)](_0x5893a6)},_0x1579e2=createHash('sha256')[_0x59edd1(0x161)](JSON[_0x59edd1(0x166)]({'appCode':_0x7a9831[_0x59edd1(0x1a7)],'id':_0x7a9831['id'],'appPublishStatus':_0x7a9831[_0x59edd1(0x199)],'extend':_0x5251af,'appName':_0x594ee0,'resources':_0x5c0ce6}))[_0x59edd1(0x1a3)]('hex');return{'before':_0x337134,'nextExtend':_0x111546,'expectedHash':_0x1579e2,'unchanged':isDeepStrictEqual(_0x337134,_0x5c0ce6)};}function flags(_0x4316be){const _0x20759e=a189_0xfb56cf,{appCode:_0x1ba1b7,appName:_0x3c303a}=getSubappSelector(_0x4316be),_0x214c68=_0x4316be[_0x20759e(0x18c)](_0x20759e(0x173))['trim']();if(!_0x214c68)throw CliErrors[_0x20759e(0x165)](_0x20759e(0x1a4));let _0x29930f;try{_0x29930f=JSON[_0x20759e(0x177)](_0x214c68);}catch{throw CliErrors[_0x20759e(0x165)](_0x20759e(0x19f));}if(!Array[_0x20759e(0x15c)](_0x29930f))throw CliErrors['validation'](_0x20759e(0x19f));return{'appCode':_0x1ba1b7,'appName':_0x3c303a,'resources':validateResources(_0x29930f)};}export const menuSubappAssetsUpdate={'service':a189_0xfb56cf(0x187),'command':a189_0xfb56cf(0x175),'description':'Update\x20one\x20frontend\x20subapp\x20resource\x20URL\x20set\x20in\x20the\x20selected\x20menu\x20host','risk':a189_0xfb56cf(0x19d),'strictFlags':!![],'flags':[...SUBAPP_ASSET_SELECTOR_FLAGS,{'name':a189_0xfb56cf(0x173),'type':'string','required':!![],'description':a189_0xfb56cf(0x1a0)},{'name':a189_0xfb56cf(0x186),'type':'string','description':a189_0xfb56cf(0x170)}],async 'validate'(_0x35968f){flags(_0x35968f);},async 'dryRun'(_0x2c664c){const _0x368ece=a189_0xfb56cf,{appCode:_0x584b6b,appName:_0x394137,resources:_0x54bb56}=flags(_0x2c664c),_0x107084=await getSmartAppRecord(_0x584b6b,_0x2c664c[_0x368ece(0x19e)]),_0x3be4d0=prepare(_0x107084,_0x394137,_0x54bb56);return{'method':'POST','url':_0x368ece(0x197),'body':{'preview':{'appCode':_0x584b6b,'appName':_0x394137,'before':_0x3be4d0[_0x368ece(0x189)],'after':_0x54bb56,'expectedHash':_0x3be4d0[_0x368ece(0x1aa)],'unchanged':_0x3be4d0[_0x368ece(0x194)],'remoteContentVerified':![],'independentDeploymentVerified':![]}},'description':_0x3be4d0[_0x368ece(0x194)]?_0x368ece(0x18a):_0x368ece(0x17e)+_0x394137+'.'};},async 'execute'(_0x357146){const _0xa9642e=a189_0xfb56cf,{appCode:_0x3c124e,appName:_0x4761b5,resources:_0x4f42c}=flags(_0x357146),_0x21ac84=_0x357146[_0xa9642e(0x18c)]('expected-hash')[_0xa9642e(0x188)]();if(!/^[a-f0-9]{64}$/i['test'](_0x21ac84))throw CliErrors['validation'](_0xa9642e(0x196));const _0x4fe9c0=await getSmartAppRecord(_0x3c124e,_0x357146[_0xa9642e(0x19e)]),_0xc72dc5=prepare(_0x4fe9c0,_0x4761b5,_0x4f42c);if(_0x21ac84!==_0xc72dc5[_0xa9642e(0x1aa)])throw CliErrors['validation'](_0xa9642e(0x1a8));if(_0xc72dc5[_0xa9642e(0x194)])return{'ok':!![],'data':{'appCode':_0x3c124e,'appName':_0x4761b5,'updated':![],'managementConfirmed':!![],'independentDeploymentVerified':![],'remoteContentVerified':![]},'message':_0xa9642e(0x19b)};await updateSmartAppRecord({'id':_0x4fe9c0['id'],'appCode':_0x3c124e,'appPublishStatus':_0x4fe9c0[_0xa9642e(0x199)],'extend':_0xc72dc5[_0xa9642e(0x19c)]},_0x357146[_0xa9642e(0x19e)]);const _0x518153=await getSmartAppRecord(_0x3c124e,_0x357146[_0xa9642e(0x19e)]),_0x42b875=parseObject(_0x518153['extend'],'verified\x20app.extend');if(_0x518153['id']!==_0x4fe9c0['id']||_0x518153[_0xa9642e(0x199)]!==_0x4fe9c0[_0xa9642e(0x199)]||!isDeepStrictEqual(_0x42b875,_0xc72dc5[_0xa9642e(0x19c)]))throw CliErrors[_0xa9642e(0x162)]('App\x20asset\x20update\x20verification\x20failed;\x20inspect\x20the\x20app\x20before\x20retrying.');return{'ok':!![],'data':{'appCode':_0x3c124e,'appName':_0x4761b5,'updated':!![],'resources':_0x4f42c,'managementConfirmed':!![],'independentDeploymentVerified':![],'remoteContentVerified':![]},'message':_0xa9642e(0x168)+_0x4761b5+_0xa9642e(0x18f)+_0x3c124e+';\x20independent\x20deployment\x20not\x20verified.'};}};
@@ -1 +1 @@
1
- const a190_0x10fc10=a190_0x33c3;(function(_0xfcc665,_0x3c6b7b){const _0x53dfac=a190_0x33c3,_0x390f75=_0xfcc665();while(!![]){try{const _0x5175f4=parseInt(_0x53dfac(0x14f))/0x1*(-parseInt(_0x53dfac(0x161))/0x2)+-parseInt(_0x53dfac(0x179))/0x3*(parseInt(_0x53dfac(0x166))/0x4)+parseInt(_0x53dfac(0x150))/0x5*(parseInt(_0x53dfac(0x164))/0x6)+-parseInt(_0x53dfac(0x139))/0x7*(-parseInt(_0x53dfac(0x149))/0x8)+parseInt(_0x53dfac(0x13c))/0x9*(parseInt(_0x53dfac(0x162))/0xa)+parseInt(_0x53dfac(0x140))/0xb*(parseInt(_0x53dfac(0x154))/0xc)+-parseInt(_0x53dfac(0x12b))/0xd;if(_0x5175f4===_0x3c6b7b)break;else _0x390f75['push'](_0x390f75['shift']());}catch(_0x24c78d){_0x390f75['push'](_0x390f75['shift']());}}}(a190_0x5904,0x67814));import a190_0xeb6fed from'chalk';import{buildCompareRows,doCreateMenus,fetchMenuData}from'../../commands/menu/shared/logic.js';import{renderCompareTable,renderSyncSummary}from'../../commands/menu/shared/compare-table.js';import{selectPages,askJsUrl,askCssUrl,askConfirm,startSpinner,stopSpinner,isInteractive,requireInteractive}from'../../commands/menu/shared/inquirer.js';import{CliErrors}from'../../errors.js';import{writeCliSideChannelLine}from'../../utils/write-cli-side-channel.js';import{parseMenuSyncParams,resolvePage,runMenuSyncCore}from'../../commands/menu/shared/sync-core.js';function a190_0x5904(){const _0x1d423f=['onlineMenuList','76024HgZRSe','Confirm\x20non-interactive\x20sync;\x20without\x20--paths,\x20create\x20all\x20missing\x20local\x20pages','gray','appcode','\x20menu(s)\x20created','map','\x20\x20Cancelled.','boolean','sync','Exact\x20comma-separated\x20local\x20page\x20paths\x20to\x20sync','\x20page(s)','filter','Failed\x20to\x20fetch\x20online\x20menu\x20list','flag','\x20menu(s)','Menu\x20creation\x20failed','trim','\x20\x20Create\x20','Register\x20local\x20pages\x20as\x20platform\x20menus','111qjMKnA','Menu\x20sync\x20skipped','appCode','4968405WVhIrR','Fetching\x20online\x20menu\x20list...','message','rawFlags','appName','\x20\x20Continue\x20with\x20creation?','write','selectedAppName','Creating\x20','No\x20local\x20microfrontend\x20menus\x20would\x20be\x20created.','onlinePaths','Created\x20','jsUrl','menu','35TGbYdM','menu\x20sync\x20requires\x20a\x20project\x20context\x20or\x20explicit\x20--appcode.\x20','Tip:\x20For\x20frontend\x20subapps,\x20prefer\x20Agent-planned\x20menu\x20groups\x20and\x20shared\x20resources.\x20This\x20manual\x20sync\x20workflow\x20remains\x20available\x20as\x20a\x20fallback.','74331kDlJme','Would\x20create\x20','✓\x20All\x20local\x20pages\x20are\x20already\x20on\x20platform','paths','11rHOsDo','\x20\x20!\x20No\x20local\x20pages\x20found,\x20please\x20create\x20pages\x20first','Menu\x20sync\x20completed:\x20','\x20failed.','\x20menu(s)\x20with\x20JS:\x20','length','str','Prefer\x20appName\x20for\x20shared\x20subapp\x20resources\x20and\x20parentId\x20for\x20planned\x20groups.\x20','failed','909064HBtuSd','Preview\x20with\x20--dry-run,\x20then\x20reuse\x20the\x20same\x20--paths\x20and\x20--params\x20with\x20--yes.','targetPages','\x20local\x20microfrontend\x20menu(s).','string','\x20\x20✓\x20Selected:\x20','1bRSoSt','5dRzzeA','menu\x20sync\x20--paths\x20requires\x20--yes\x20for\x20execution.','cookie','cssUrl','3137976WUoqCx','\x20menu(s)...','skipped','cyan','validation','params','Run\x20inside\x20a\x20directory\x20with\x20.rabetbase.json,\x20or\x20pass\x20--appcode\x20<code>.','Non-interactive\x20menu\x20sync\x20requires\x20--yes.','created','Online\x20menu\x20list\x20fetched','JSON:\x20{\x22appName\x22:\x22store-app\x22,\x22parentId\x22:42,\x22visible\x22:false};\x20jsUrl\x20and\x20cssUrl\x20remain\x20available\x20for\x20individual\x20menu\x20resources.','POST','yes','1095922rGjXvZ','530nLqSli','split','4739604LMukKk'];a190_0x5904=function(){return _0x1d423f;};return a190_0x5904();}import{getLocalPages}from'../../commands/menu/shared/local-pages.js';import{isInProject}from'../../context.js';import{assertSharedResourcesConfigured}from'../../commands/menu/shared/subapp-assets.js';export const menuSync={'service':a190_0x10fc10(0x138),'command':a190_0x10fc10(0x16e),'description':a190_0x10fc10(0x178),'risk':a190_0x10fc10(0x131),'flags':[{'name':a190_0x10fc10(0x159),'type':a190_0x10fc10(0x14d),'description':a190_0x10fc10(0x147)+a190_0x10fc10(0x15e)},{'name':a190_0x10fc10(0x13f),'type':a190_0x10fc10(0x14d),'description':a190_0x10fc10(0x16f)},{'name':'yes','type':a190_0x10fc10(0x16d),'description':a190_0x10fc10(0x167)}],async 'dryRun'(_0x1e7e37){const _0x204988=a190_0x10fc10;ensureRunnableContext(_0x1e7e37[_0x204988(0x12e)],_0x1e7e37[_0x204988(0x132)]);const _0x314071=await runMenuSyncCore(_0x1e7e37[_0x204988(0x17b)],_0x1e7e37[_0x204988(0x152)],parsePaths(_0x1e7e37[_0x204988(0x146)](_0x204988(0x13f))),_0x1e7e37[_0x204988(0x146)](_0x204988(0x159)),{'dryRun':!![]});return{'method':_0x204988(0x15f),'url':'/smartapi/menu/create','body':_0x314071,'description':_0x314071['skipped']?_0x204988(0x134):_0x204988(0x13d)+_0x314071[_0x204988(0x14b)][_0x204988(0x145)]+_0x204988(0x14c)};},async 'execute'(_0x326d4d){const _0x572d10=a190_0x10fc10;ensureRunnableContext(_0x326d4d[_0x572d10(0x12e)],_0x326d4d['selectedAppName']);const _0x56b930=_0x326d4d[_0x572d10(0x173)](_0x572d10(0x160)),_0x34fbf5=_0x326d4d[_0x572d10(0x146)](_0x572d10(0x159)),_0x4bbda9=parsePaths(_0x326d4d[_0x572d10(0x146)](_0x572d10(0x13f))),_0x1e5ca4=parseMenuSyncParams(_0x34fbf5);if(_0x56b930){const _0x461734=await runMenuSyncCore(_0x326d4d[_0x572d10(0x17b)],_0x326d4d['cookie'],_0x4bbda9,_0x34fbf5);if(_0x461734[_0x572d10(0x156)]){const _0x4b9d92=getLocalPages();_0x4b9d92[_0x572d10(0x145)]===0x0?writeCliSideChannelLine('!\x20No\x20local\x20pages\x20found\x20in\x20src/pages'):writeCliSideChannelLine(_0x572d10(0x13e));}else writeCliSideChannelLine('✓\x20Menu\x20sync\x20completed:\x20'+_0x461734[_0x572d10(0x15c)]+_0x572d10(0x16a));return{'ok':!![],'data':_0x461734,'message':_0x461734[_0x572d10(0x156)]?_0x572d10(0x17a):'Menu\x20sync\x20completed:\x20'+_0x461734[_0x572d10(0x15c)]+'\x20created.'};}if(_0x4bbda9[_0x572d10(0x145)]>0x0)throw CliErrors[_0x572d10(0x158)](_0x572d10(0x151),_0x572d10(0x14a));if(!isInteractive()&&_0x34fbf5)throw CliErrors['validation'](_0x572d10(0x15b),_0x572d10(0x14a));requireInteractive(),writeCliSideChannelLine(_0x572d10(0x13b));const _0x277a4d=startSpinner(_0x572d10(0x12c));let _0x3cb28a,_0x218075,_0xc04c7;try{const _0x494808=await fetchMenuData(_0x326d4d[_0x572d10(0x17b)],_0x326d4d['cookie']);_0x3cb28a=_0x494808['localPages'],_0x218075=_0x494808[_0x572d10(0x135)],_0xc04c7=_0x494808[_0x572d10(0x165)],stopSpinner(_0x277a4d,_0x572d10(0x15d),!![]);}catch(_0x22e239){stopSpinner(_0x277a4d,'Failed\x20to\x20fetch\x20online\x20menu\x20list',![]);throw CliErrors[_0x572d10(0x158)](_0x22e239 instanceof Error?_0x22e239[_0x572d10(0x12d)]:_0x572d10(0x172));}if(_0x3cb28a[_0x572d10(0x145)]===0x0)return writeCliSideChannelLine(a190_0xeb6fed['yellow'](_0x572d10(0x141))),{'ok':!![]};const _0x1a37c8=buildCompareRows(_0x3cb28a,_0x218075);writeCliSideChannelLine(renderCompareTable(_0x1a37c8)),writeCliSideChannelLine('');const _0x201717=await selectPages(_0x3cb28a,_0x218075);writeCliSideChannelLine(''),writeCliSideChannelLine(a190_0xeb6fed[_0x572d10(0x157)](_0x572d10(0x14e)+_0x201717[_0x572d10(0x145)]+_0x572d10(0x170)));const _0x2af022=_0x1e5ca4['jsUrl']&&_0x1e5ca4[_0x572d10(0x153)];if(!_0x2af022){writeCliSideChannelLine(renderSyncSummary(_0x201717,_0x218075['size']>0x0));const _0x224925=await askConfirm(_0x572d10(0x130));if(!_0x224925)return writeCliSideChannelLine(a190_0xeb6fed[_0x572d10(0x168)](_0x572d10(0x16c))),{'ok':!![]};}let _0x4f492d=_0x1e5ca4[_0x572d10(0x137)],_0x3a9dc1=_0x1e5ca4[_0x572d10(0x153)];!_0x4f492d&&!_0x1e5ca4[_0x572d10(0x12f)]&&(_0x4f492d=await askJsUrl());!_0x3a9dc1&&!_0x1e5ca4[_0x572d10(0x12f)]&&(_0x3a9dc1=await askCssUrl());const _0x4d4b6f=await askConfirm(_0x1e5ca4[_0x572d10(0x12f)]?_0x572d10(0x177)+_0x201717[_0x572d10(0x145)]+'\x20menu(s)\x20bound\x20to\x20'+_0x1e5ca4['appName']+'?':_0x572d10(0x177)+_0x201717[_0x572d10(0x145)]+_0x572d10(0x144)+_0x4f492d+'\x20and\x20CSS:\x20'+_0x3a9dc1+'?');if(!_0x4d4b6f)return writeCliSideChannelLine(a190_0xeb6fed[_0x572d10(0x168)]('\x20\x20Cancelled.')),{'ok':!![]};const _0x56c377=[_0x4f492d,_0x3a9dc1][_0x572d10(0x171)](_0x10ca18=>Boolean(_0x10ca18));_0x1e5ca4[_0x572d10(0x12f)]&&_0x56c377[_0x572d10(0x145)]===0x0&&await assertSharedResourcesConfigured(_0x326d4d[_0x572d10(0x17b)],_0x326d4d[_0x572d10(0x152)],_0x1e5ca4[_0x572d10(0x12f)]);const _0x174fef=startSpinner(_0x572d10(0x133)+_0x201717[_0x572d10(0x145)]+_0x572d10(0x155));try{const _0x320ca5=_0x201717[_0x572d10(0x16b)](_0x12a641=>resolvePage(_0x12a641,_0x1e5ca4,_0xc04c7)),_0x2b39da=await doCreateMenus(_0x326d4d['appCode'],_0x326d4d['cookie'],_0x320ca5,_0x56c377,_0x1e5ca4['appName']?{'appName':_0x1e5ca4[_0x572d10(0x12f)]}:undefined);return stopSpinner(_0x174fef,_0x572d10(0x136)+_0x2b39da[_0x572d10(0x15c)]+_0x572d10(0x174),!![]),{'ok':!![],'data':_0x2b39da,'message':_0x572d10(0x142)+_0x2b39da[_0x572d10(0x15c)]+'\x20created,\x20'+_0x2b39da[_0x572d10(0x148)]+_0x572d10(0x143)};}catch(_0x4105d7){stopSpinner(_0x174fef,_0x572d10(0x175),![]);throw CliErrors[_0x572d10(0x158)](_0x4105d7 instanceof Error?_0x4105d7[_0x572d10(0x12d)]:'Menu\x20creation\x20failed');}}};function ensureRunnableContext(_0x47130f,_0x3e2d5f){const _0x713c5b=a190_0x10fc10,_0x4b368f=_0x47130f[_0x713c5b(0x169)]?String(_0x47130f[_0x713c5b(0x169)])['trim']():'';if(!isInProject()&&!_0x3e2d5f&&!_0x4b368f)throw CliErrors['validation'](_0x713c5b(0x13a)+_0x713c5b(0x15a));}function a190_0x33c3(_0x2b7594,_0x16dc34){_0x2b7594=_0x2b7594-0x12b;const _0x5904f4=a190_0x5904();let _0x33c305=_0x5904f4[_0x2b7594];return _0x33c305;}function parsePaths(_0xcbd23c){const _0x57babd=a190_0x10fc10;return[...new Set(_0xcbd23c[_0x57babd(0x163)](',')[_0x57babd(0x16b)](_0x10d02b=>_0x10d02b[_0x57babd(0x176)]())[_0x57babd(0x171)](Boolean))];}
1
+ const a190_0x3ca01a=a190_0x57c1;(function(_0x3748f7,_0x484a53){const _0xcb02dd=a190_0x57c1,_0x424e8f=_0x3748f7();while(!![]){try{const _0x23fc0f=-parseInt(_0xcb02dd(0x202))/0x1*(-parseInt(_0xcb02dd(0x1ca))/0x2)+-parseInt(_0xcb02dd(0x1d0))/0x3*(parseInt(_0xcb02dd(0x203))/0x4)+-parseInt(_0xcb02dd(0x1e4))/0x5*(parseInt(_0xcb02dd(0x1ef))/0x6)+parseInt(_0xcb02dd(0x1d7))/0x7+-parseInt(_0xcb02dd(0x1e2))/0x8+parseInt(_0xcb02dd(0x1dd))/0x9*(parseInt(_0xcb02dd(0x1f1))/0xa)+-parseInt(_0xcb02dd(0x1fe))/0xb*(parseInt(_0xcb02dd(0x204))/0xc);if(_0x23fc0f===_0x484a53)break;else _0x424e8f['push'](_0x424e8f['shift']());}catch(_0x2808ae){_0x424e8f['push'](_0x424e8f['shift']());}}}(a190_0xf6b9,0x704f0));import a190_0x47f50b from'chalk';function a190_0xf6b9(){const _0x3e5934=['Created\x20','filter','\x20\x20✓\x20Selected:\x20','length','localPages','979BXaqpB','message','\x20menu(s)...','\x20menu(s)\x20with\x20JS:\x20','90344oUBZcS','1645516AgBqaZ','11940PnPZOA','selectedAppName','Confirm\x20non-interactive\x20sync;\x20without\x20--paths,\x20create\x20all\x20missing\x20local\x20pages','menu','appName','yellow','cookie','boolean','\x20\x20Cancelled.','menu\x20sync\x20requires\x20a\x20project\x20context\x20or\x20explicit\x20--appcode.\x20','string','onlineMenuList','gray','appcode','\x20local\x20microfrontend\x20menu(s).','\x20menu(s)\x20created','8bxuJVP','No\x20local\x20microfrontend\x20menus\x20would\x20be\x20created.','Register\x20local\x20pages\x20as\x20platform\x20menus','sync','Tip:\x20For\x20frontend\x20subapps,\x20prefer\x20Agent-planned\x20menu\x20groups\x20and\x20shared\x20resources.\x20This\x20manual\x20sync\x20workflow\x20remains\x20available\x20as\x20a\x20fallback.','cyan','3dRfblN','Exact\x20comma-separated\x20local\x20page\x20paths\x20to\x20sync','onlinePaths','Preview\x20with\x20--dry-run,\x20then\x20reuse\x20the\x20same\x20--paths\x20and\x20--params\x20with\x20--yes.','flag','str','failed','3254965HooeuC','jsUrl','created','\x20\x20Create\x20','targetPages','\x20failed.','9EGxtAH','Prefer\x20appName\x20for\x20shared\x20subapp\x20resources\x20and\x20parentId\x20for\x20planned\x20groups.\x20','yes','validation','JSON:\x20{\x22appName\x22:\x22store-app\x22,\x22parentId\x22:42,\x22visible\x22:false};\x20jsUrl\x20and\x20cssUrl\x20remain\x20available\x20for\x20individual\x20menu\x20resources.','2815008FGrjgR','Creating\x20','80MGchZH','Menu\x20creation\x20failed','skipped','params','✓\x20Menu\x20sync\x20completed:\x20','Menu\x20sync\x20completed:\x20','trim','\x20page(s)','paths','Run\x20inside\x20a\x20directory\x20with\x20.rabetbase.json,\x20or\x20pass\x20--appcode\x20<code>.','✓\x20All\x20local\x20pages\x20are\x20already\x20on\x20platform','34416lYyxwc','map','5772310JeuybK','Failed\x20to\x20fetch\x20online\x20menu\x20list','menu\x20sync\x20--paths\x20requires\x20--yes\x20for\x20execution.','\x20menu(s)\x20bound\x20to\x20','appCode','Fetching\x20online\x20menu\x20list...','cssUrl','rawFlags'];a190_0xf6b9=function(){return _0x3e5934;};return a190_0xf6b9();}function a190_0x57c1(_0x34bb25,_0x2f9595){_0x34bb25=_0x34bb25-0x1bc;const _0xf6b9b3=a190_0xf6b9();let _0x57c1e0=_0xf6b9b3[_0x34bb25];return _0x57c1e0;}import{buildCompareRows,doCreateMenus,fetchMenuData}from'../../commands/menu/shared/logic.js';import{renderCompareTable,renderSyncSummary}from'../../commands/menu/shared/compare-table.js';import{selectPages,askJsUrl,askCssUrl,askConfirm,startSpinner,stopSpinner,isInteractive,requireInteractive}from'../../commands/menu/shared/inquirer.js';import{CliErrors}from'../../errors.js';import{writeCliSideChannelLine}from'../../utils/write-cli-side-channel.js';import{parseMenuSyncParams,resolvePage,runMenuSyncCore}from'../../commands/menu/shared/sync-core.js';import{getLocalPages}from'../../commands/menu/shared/local-pages.js';import{isInProject}from'../../context.js';import{assertSharedResourcesConfigured}from'../../commands/menu/shared/subapp-assets.js';export const menuSync={'service':a190_0x3ca01a(0x1bd),'command':a190_0x3ca01a(0x1cd),'description':a190_0x3ca01a(0x1cc),'risk':'write','flags':[{'name':a190_0x3ca01a(0x1e7),'type':'string','description':a190_0x3ca01a(0x1de)+a190_0x3ca01a(0x1e1)},{'name':a190_0x3ca01a(0x1ec),'type':a190_0x3ca01a(0x1c4),'description':a190_0x3ca01a(0x1d1)},{'name':a190_0x3ca01a(0x1df),'type':a190_0x3ca01a(0x1c1),'description':a190_0x3ca01a(0x1bc)}],async 'dryRun'(_0x9e7b51){const _0x205bf4=a190_0x3ca01a;ensureRunnableContext(_0x9e7b51['rawFlags'],_0x9e7b51[_0x205bf4(0x205)]);const _0x39e063=await runMenuSyncCore(_0x9e7b51['appCode'],_0x9e7b51['cookie'],parsePaths(_0x9e7b51[_0x205bf4(0x1d5)](_0x205bf4(0x1ec))),_0x9e7b51['str']('params'),{'dryRun':!![]});return{'method':'POST','url':'/smartapi/menu/create','body':_0x39e063,'description':_0x39e063[_0x205bf4(0x1e6)]?_0x205bf4(0x1cb):'Would\x20create\x20'+_0x39e063[_0x205bf4(0x1db)]['length']+_0x205bf4(0x1c8)};},async 'execute'(_0x91ce80){const _0x428c29=a190_0x3ca01a;ensureRunnableContext(_0x91ce80[_0x428c29(0x1f8)],_0x91ce80[_0x428c29(0x205)]);const _0x278246=_0x91ce80[_0x428c29(0x1d4)]('yes'),_0x1010fc=_0x91ce80[_0x428c29(0x1d5)](_0x428c29(0x1e7)),_0x5a0977=parsePaths(_0x91ce80[_0x428c29(0x1d5)]('paths')),_0xe9403d=parseMenuSyncParams(_0x1010fc);if(_0x278246){const _0x27d6a6=await runMenuSyncCore(_0x91ce80[_0x428c29(0x1f5)],_0x91ce80['cookie'],_0x5a0977,_0x1010fc);if(_0x27d6a6['skipped']){const _0x148024=getLocalPages();_0x148024[_0x428c29(0x1fc)]===0x0?writeCliSideChannelLine('!\x20No\x20local\x20pages\x20found\x20in\x20src/pages'):writeCliSideChannelLine(_0x428c29(0x1ee));}else writeCliSideChannelLine(_0x428c29(0x1e8)+_0x27d6a6[_0x428c29(0x1d9)]+_0x428c29(0x1c9));return{'ok':!![],'data':_0x27d6a6,'message':_0x27d6a6['skipped']?'Menu\x20sync\x20skipped':'Menu\x20sync\x20completed:\x20'+_0x27d6a6[_0x428c29(0x1d9)]+'\x20created.'};}if(_0x5a0977[_0x428c29(0x1fc)]>0x0)throw CliErrors['validation'](_0x428c29(0x1f3),_0x428c29(0x1d3));if(!isInteractive()&&_0x1010fc)throw CliErrors[_0x428c29(0x1e0)]('Non-interactive\x20menu\x20sync\x20requires\x20--yes.',_0x428c29(0x1d3));requireInteractive(),writeCliSideChannelLine(_0x428c29(0x1ce));const _0x1025b7=startSpinner(_0x428c29(0x1f6));let _0x372d07,_0x9480af,_0x334ea8;try{const _0xd18165=await fetchMenuData(_0x91ce80[_0x428c29(0x1f5)],_0x91ce80[_0x428c29(0x1c0)]);_0x372d07=_0xd18165[_0x428c29(0x1fd)],_0x9480af=_0xd18165[_0x428c29(0x1d2)],_0x334ea8=_0xd18165[_0x428c29(0x1c5)],stopSpinner(_0x1025b7,'Online\x20menu\x20list\x20fetched',!![]);}catch(_0x1e277b){stopSpinner(_0x1025b7,_0x428c29(0x1f2),![]);throw CliErrors['validation'](_0x1e277b instanceof Error?_0x1e277b[_0x428c29(0x1ff)]:_0x428c29(0x1f2));}if(_0x372d07['length']===0x0)return writeCliSideChannelLine(a190_0x47f50b[_0x428c29(0x1bf)]('\x20\x20!\x20No\x20local\x20pages\x20found,\x20please\x20create\x20pages\x20first')),{'ok':!![]};const _0x5bd618=buildCompareRows(_0x372d07,_0x9480af);writeCliSideChannelLine(renderCompareTable(_0x5bd618)),writeCliSideChannelLine('');const _0x10f2f8=await selectPages(_0x372d07,_0x9480af);writeCliSideChannelLine(''),writeCliSideChannelLine(a190_0x47f50b[_0x428c29(0x1cf)](_0x428c29(0x1fb)+_0x10f2f8[_0x428c29(0x1fc)]+_0x428c29(0x1eb)));const _0x5421fb=_0xe9403d['jsUrl']&&_0xe9403d[_0x428c29(0x1f7)];if(!_0x5421fb){writeCliSideChannelLine(renderSyncSummary(_0x10f2f8,_0x9480af['size']>0x0));const _0x217347=await askConfirm('\x20\x20Continue\x20with\x20creation?');if(!_0x217347)return writeCliSideChannelLine(a190_0x47f50b[_0x428c29(0x1c6)]('\x20\x20Cancelled.')),{'ok':!![]};}let _0x3cae72=_0xe9403d[_0x428c29(0x1d8)],_0x41a93f=_0xe9403d[_0x428c29(0x1f7)];!_0x3cae72&&!_0xe9403d['appName']&&(_0x3cae72=await askJsUrl());!_0x41a93f&&!_0xe9403d['appName']&&(_0x41a93f=await askCssUrl());const _0x415a19=await askConfirm(_0xe9403d[_0x428c29(0x1be)]?_0x428c29(0x1da)+_0x10f2f8[_0x428c29(0x1fc)]+_0x428c29(0x1f4)+_0xe9403d['appName']+'?':_0x428c29(0x1da)+_0x10f2f8[_0x428c29(0x1fc)]+_0x428c29(0x201)+_0x3cae72+'\x20and\x20CSS:\x20'+_0x41a93f+'?');if(!_0x415a19)return writeCliSideChannelLine(a190_0x47f50b[_0x428c29(0x1c6)](_0x428c29(0x1c2))),{'ok':!![]};const _0x53f715=[_0x3cae72,_0x41a93f][_0x428c29(0x1fa)](_0x3efe00=>Boolean(_0x3efe00));_0xe9403d['appName']&&_0x53f715[_0x428c29(0x1fc)]===0x0&&await assertSharedResourcesConfigured(_0x91ce80[_0x428c29(0x1f5)],_0x91ce80[_0x428c29(0x1c0)],_0xe9403d[_0x428c29(0x1be)]);const _0x1d450e=startSpinner(_0x428c29(0x1e3)+_0x10f2f8['length']+_0x428c29(0x200));try{const _0x3f1c47=_0x10f2f8[_0x428c29(0x1f0)](_0x14af47=>resolvePage(_0x14af47,_0xe9403d,_0x334ea8)),_0x375aba=await doCreateMenus(_0x91ce80['appCode'],_0x91ce80[_0x428c29(0x1c0)],_0x3f1c47,_0x53f715,_0xe9403d[_0x428c29(0x1be)]?{'appName':_0xe9403d[_0x428c29(0x1be)]}:undefined);return stopSpinner(_0x1d450e,_0x428c29(0x1f9)+_0x375aba[_0x428c29(0x1d9)]+'\x20menu(s)',!![]),{'ok':!![],'data':_0x375aba,'message':_0x428c29(0x1e9)+_0x375aba[_0x428c29(0x1d9)]+'\x20created,\x20'+_0x375aba[_0x428c29(0x1d6)]+_0x428c29(0x1dc)};}catch(_0x465fc7){stopSpinner(_0x1d450e,_0x428c29(0x1e5),![]);throw CliErrors[_0x428c29(0x1e0)](_0x465fc7 instanceof Error?_0x465fc7[_0x428c29(0x1ff)]:_0x428c29(0x1e5));}}};function ensureRunnableContext(_0x2362f5,_0x540658){const _0x18dc47=a190_0x3ca01a,_0x573eed=_0x2362f5['appcode']?String(_0x2362f5[_0x18dc47(0x1c7)])[_0x18dc47(0x1ea)]():'';if(!isInProject()&&!_0x540658&&!_0x573eed)throw CliErrors[_0x18dc47(0x1e0)](_0x18dc47(0x1c3)+_0x18dc47(0x1ed));}function parsePaths(_0x5b9a85){const _0x1b4f60=a190_0x3ca01a;return[...new Set(_0x5b9a85['split'](',')[_0x1b4f60(0x1f0)](_0xd88efe=>_0xd88efe[_0x1b4f60(0x1ea)]())[_0x1b4f60(0x1fa)](Boolean))];}
@@ -1 +1 @@
1
- const a191_0x3c4aeb=a191_0x4692;(function(_0x14f96a,_0x3d287a){const _0x40d68d=a191_0x4692,_0x5ddb50=_0x14f96a();while(!![]){try{const _0x48e74f=-parseInt(_0x40d68d(0xc6))/0x1+-parseInt(_0x40d68d(0x103))/0x2*(-parseInt(_0x40d68d(0x120))/0x3)+parseInt(_0x40d68d(0xa9))/0x4*(parseInt(_0x40d68d(0xf1))/0x5)+parseInt(_0x40d68d(0xc4))/0x6*(-parseInt(_0x40d68d(0xf0))/0x7)+parseInt(_0x40d68d(0xa3))/0x8+-parseInt(_0x40d68d(0x116))/0x9*(-parseInt(_0x40d68d(0xbd))/0xa)+parseInt(_0x40d68d(0x113))/0xb*(-parseInt(_0x40d68d(0xd5))/0xc);if(_0x48e74f===_0x3d287a)break;else _0x5ddb50['push'](_0x5ddb50['shift']());}catch(_0x306d1f){_0x5ddb50['push'](_0x5ddb50['shift']());}}}(a191_0xd811,0xad939));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{fetchMenuSnapshot}from'../../commands/menu/shared/facts.js';import{asVerificationError,assertVerified,describeMenuErrorCause,fetchMutationSnapshot,hasFlag,isMenuResponseLoss,mapMenuApiError,menuDryRunResult,menuError,menuFailure,mutationResult,recheckMutationSnapshot}from'../../commands/menu/shared/mutations.js';import{updateMenuEntity}from'../../commands/menu/shared/service.js';import{CliErrors}from'../../errors.js';const BACKEND=[{'method':a191_0x3c4aeb(0xe2),'path':a191_0x3c4aeb(0xf8)}];export const menuVisibilityUpdate={'service':a191_0x3c4aeb(0x102),'command':a191_0x3c4aeb(0xfa),'description':a191_0x3c4aeb(0xc5),'risk':'write','structuredErrors':!![],'flags':[{'name':a191_0x3c4aeb(0xfb),'type':a191_0x3c4aeb(0xc2),'description':a191_0x3c4aeb(0xb6)},{'name':a191_0x3c4aeb(0x10f),'type':a191_0x3c4aeb(0xc2),'description':a191_0x3c4aeb(0x11c)},{'name':'visible','type':a191_0x3c4aeb(0xbe),'required':!![],'description':a191_0x3c4aeb(0xfd)},{'name':a191_0x3c4aeb(0xe5),'type':'boolean','description':a191_0x3c4aeb(0xee)},{'name':a191_0x3c4aeb(0xe6),'type':a191_0x3c4aeb(0xb9),'description':a191_0x3c4aeb(0xc9)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x76c1e4){parseInput(_0x76c1e4);},async 'dryRun'(_0x30173d){const _0x380ada=a191_0x3c4aeb,_0x4e9507=await buildPlan(_0x30173d,!![]),_0x528b9d=_0x4e9507['plan'][_0x380ada(0x112)]?.[_0x380ada(0xb4)]??0x0,_0x41577a=_0x4e9507[_0x380ada(0xd3)][_0x380ada(0xf9)][_0x380ada(0xb4)]-_0x528b9d;return menuDryRunResult(_0x4e9507[_0x380ada(0xd3)],{'method':_0x380ada(0xe2),'url':_0x380ada(0xf8),'body':{'updates':_0x4e9507[_0x380ada(0xd3)][_0x380ada(0x112)]?.[_0x380ada(0xce)](_0x3f2a31=>_0x3f2a31[_0x380ada(0xe9)])??[]},'description':_0x380ada(0xc1)+_0x528b9d+'\x20menu(s);\x20skip\x20'+_0x41577a+_0x380ada(0xe0)});},async 'execute'(_0x193ff0){const _0x2856a3=a191_0x3c4aeb,_0x251eb8=await buildPlan(_0x193ff0,![]);await recheckMutationSnapshot(_0x193ff0,_0x251eb8['plan'],_0x2856a3(0x10b));const _0x4aca71=[],_0x12c0c5=[],_0xffaed4=[];for(const _0x32700f of _0x251eb8['plan'][_0x2856a3(0xf9)]){if(_0x32700f[_0x2856a3(0xe4)]['visible']===_0x251eb8[_0x2856a3(0xd3)][_0x2856a3(0xcb)]){_0x4aca71['push']({'id':_0x32700f['id'],'updated':![],'skipped':!![]});continue;}try{await updateMenuEntity(_0x193ff0[_0x2856a3(0xd6)],_0x193ff0[_0x2856a3(0x101)],{'id':_0x32700f['id'],'visible':_0x251eb8[_0x2856a3(0xd3)][_0x2856a3(0xcb)]}),_0x4aca71[_0x2856a3(0xc8)]({'id':_0x32700f['id'],'updated':!![],'skipped':![]});}catch(_0x2a332f){const _0x5055bf=mapMenuApiError(_0x2a332f,_0x2856a3(0xae),_0x32700f['id']);if(isMenuResponseLoss(_0x2a332f)&&_0x5055bf[_0x2856a3(0xf2)]!==_0x2856a3(0xed)){_0xffaed4['push'](_0x32700f['id']);continue;}_0x12c0c5[_0x2856a3(0xc8)]({'id':_0x32700f['id'],'stage':_0x2856a3(0x107),'code':_0x5055bf['code'],'message':_0x5055bf[_0x2856a3(0xff)]});}}let _0x2e12ac;try{_0x2e12ac=await fetchMenuSnapshot(_0x193ff0[_0x2856a3(0xd6)],_0x193ff0[_0x2856a3(0x101)]);}catch(_0x549e53){const _0x189b9a=describeMenuErrorCause(_0x549e53,_0x2856a3(0xe8)),_0x342b1f=_0xffaed4['map'](_0x467244=>({'id':_0x467244,'stage':'update-recovery','code':_0x2856a3(0xc7),'message':_0x2856a3(0x111)+_0x467244+'\x20and\x20final\x20state\x20could\x20not\x20be\x20read.','requestedStateConfirmed':![],'recovered':![]})),_0x21633c={'stage':_0x2856a3(0x11d),'code':_0x2856a3(0xc7),'message':_0x2856a3(0xac),'targetIds':_0x251eb8[_0x2856a3(0xd3)]['targets']['map'](_0x8644dc=>_0x8644dc['id']),'requestedStateConfirmed':![],..._0x189b9a};throw menuFailure(asVerificationError(_0x549e53,_0x2856a3(0xb8)),_0x251eb8['plan'],{'stage':_0x2856a3(0x11d),'succeeded':_0x4aca71,'failedRecords':[..._0x12c0c5,..._0x342b1f,_0x21633c],'warnings':[_0x2856a3(0xf7)],'verification':{'status':'failed','recoveredCount':0x0,'lookupCommand':'rabetbase\x20menu\x20list\x20--format\x20compress'}});}const _0x43b7f4=[];for(const _0xa20d8a of _0x4aca71){const _0x5bea0e=Number(_0xa20d8a['id']),_0x1194e5=_0x251eb8[_0x2856a3(0xd4)]['get'](_0x5bea0e),_0x2c3d0c=_0x2e12ac['byId']['get'](_0x5bea0e);try{verifyVisibilityUpdate(_0x1194e5,_0x2c3d0c,_0x251eb8['plan'][_0x2856a3(0xcb)]);}catch(_0x1eb4a3){const _0x357ff1=asVerificationError(_0x1eb4a3,_0x2856a3(0xab)+_0x5bea0e+'\x20visibility\x20update\x20could\x20not\x20be\x20verified');_0x43b7f4[_0x2856a3(0xc8)]({'id':_0x5bea0e,'stage':_0x2856a3(0x11d),'code':_0x357ff1[_0x2856a3(0xf2)],'message':_0x357ff1[_0x2856a3(0xff)],'requestedStateConfirmed':![]});}}for(const _0x19c703 of _0xffaed4){const _0x2198c6=_0x251eb8['beforeById'][_0x2856a3(0xb2)](_0x19c703),_0x508a75=_0x2e12ac[_0x2856a3(0xca)][_0x2856a3(0xb2)](_0x19c703);try{verifyVisibilityUpdate(_0x2198c6,_0x508a75,_0x251eb8[_0x2856a3(0xd3)][_0x2856a3(0xcb)]),_0x4aca71[_0x2856a3(0xc8)]({'id':_0x19c703,'updated':!![],'skipped':![],'recovered':!![]});}catch(_0x4bda75){const _0x374e18=asVerificationError(_0x4bda75,'Response\x20was\x20lost\x20and\x20menu\x20'+_0x19c703+_0x2856a3(0xbf));_0x43b7f4[_0x2856a3(0xc8)]({'id':_0x19c703,'stage':'update-recovery','code':_0x374e18[_0x2856a3(0xf2)],'message':_0x374e18[_0x2856a3(0xff)],'requestedStateConfirmed':![],'recovered':![]});}}if(_0x43b7f4[_0x2856a3(0xb4)]>0x0){const _0x429939=_0x43b7f4[_0x2856a3(0xce)](_0x39188d=>Number(_0x39188d['id'])),_0x4ae229=_0x4aca71[_0x2856a3(0xaf)](_0x4309d7=>_0x4309d7['recovered']===!![])[_0x2856a3(0xb4)],_0x43a8d2=menuError(_0x2856a3(0xc7),_0x2856a3(0xaa)+_0x429939[_0x2856a3(0xd0)](',\x20')+'.',_0x2856a3(0xdc));throw menuFailure(_0x43a8d2,_0x251eb8[_0x2856a3(0xd3)],{'stage':'verification','succeeded':_0x4aca71,'failedRecords':[..._0x12c0c5,..._0x43b7f4],'warnings':['One\x20or\x20more\x20updates\x20may\x20have\x20changed\x20fields\x20outside\x20visibility;\x20inspect\x20current\x20menu\x20facts\x20before\x20retrying.'],'verification':{'status':_0x2856a3(0xba),..._0x429939[_0x2856a3(0xb4)]===0x1?{'targetId':_0x429939[0x0]}:{'targetIds':_0x429939},'recoveredCount':_0x4ae229,'lookupCommand':'rabetbase\x20menu\x20list\x20--format\x20compress'}});}const _0x2ef58b=_0x4aca71['filter'](_0x5cb23c=>_0x5cb23c[_0x2856a3(0xec)]===!![])['length'],_0x4461ec=_0x4aca71[_0x2856a3(0xb4)]-_0x2ef58b,_0x765a5a={..._0x251eb8['plan'],'succeeded':_0x4aca71,'failed':_0x12c0c5,'warnings':_0x12c0c5[_0x2856a3(0xb4)]>0x0?[..._0x251eb8['plan'][_0x2856a3(0x10d)],_0x2856a3(0x115)]:_0x251eb8['plan'][_0x2856a3(0x10d)],'verification':{'checkedBy':'menu\x20list','snapshotHash':_0x2e12ac[_0x2856a3(0xdd)],'matchesRequestedState':_0x12c0c5[_0x2856a3(0xb4)]===0x0,'recoveredCount':_0xffaed4[_0x2856a3(0xb4)]}};return{'ok':_0x12c0c5['length']===0x0,'data':_0x765a5a,'message':_0x12c0c5[_0x2856a3(0xb4)]===0x0?_0x2856a3(0xfe)+_0x2ef58b+'\x20menu(s);\x20skipped\x20'+_0x4461ec+_0x2856a3(0xe0):_0x2856a3(0x10e)+_0x2ef58b+_0x2856a3(0xcc)+_0x4461ec+'\x20skipped,\x20'+_0x12c0c5['length']+_0x2856a3(0xa8)};}};function parseInput(_0x136105){const _0x1b6ca0=a191_0x3c4aeb,_0x12bd6f=parseMenuIds(_0x136105[_0x1b6ca0(0xf6)](_0x1b6ca0(0xfb))),_0x57a187=parseCsv(_0x136105[_0x1b6ca0(0xf6)](_0x1b6ca0(0x10f)));if(_0x12bd6f[_0x1b6ca0(0xb4)]===0x0&&_0x57a187[_0x1b6ca0(0xb4)]===0x0)throw CliErrors[_0x1b6ca0(0x11e)](_0x1b6ca0(0x108));const _0x20cedd=parseBooleanFlag(_0x136105,_0x1b6ca0(0x110),!![]),_0x388c09=parseBooleanFlag(_0x136105,_0x1b6ca0(0xe5),![]);let _0x17d591;if(hasFlag(_0x136105,_0x1b6ca0(0xe6))){_0x17d591=_0x136105[_0x1b6ca0(0x11f)](_0x1b6ca0(0xe6));if(!Number['isSafeInteger'](_0x17d591)||_0x17d591<0x0)throw CliErrors[_0x1b6ca0(0x11e)](_0x1b6ca0(0xfc));}return{'menuIds':_0x12bd6f,'paths':_0x57a187,'visible':_0x20cedd,'expectVisible':_0x388c09,'expectedCount':_0x17d591};}async function buildPlan(_0x139b70,_0x1abbda){const _0x2a69fd=a191_0x3c4aeb,_0x217f66=parseInput(_0x139b70),_0x1fda34=await fetchMutationSnapshot(_0x139b70,_0x2a69fd(0x10b)),_0x3e2b42=selectTargets(_0x1fda34['menus'],_0x217f66[_0x2a69fd(0xf5)],_0x217f66[_0x2a69fd(0x10f)]);if(_0x217f66['expectedCount']!==undefined&&_0x3e2b42[_0x2a69fd(0xb4)]!==_0x217f66[_0x2a69fd(0xcf)])throw menuError('menu_expected_count_mismatch',_0x2a69fd(0xbb)+_0x3e2b42[_0x2a69fd(0xb4)]+'\x20menu(s),\x20expected\x20'+_0x217f66[_0x2a69fd(0xcf)]+'.',_0x2a69fd(0xde));if(_0x217f66[_0x2a69fd(0xb3)]!==undefined){const _0x53a697=_0x3e2b42[_0x2a69fd(0xaf)](_0x5ad430=>_0x5ad430['visible']!==_0x217f66[_0x2a69fd(0xb3)]);if(_0x53a697[_0x2a69fd(0xb4)]>0x0)throw menuError(_0x2a69fd(0xa5),'Selected\x20menu\x20visibility\x20changed\x20for\x20id(s):\x20'+_0x53a697[_0x2a69fd(0xce)](_0x3647ca=>_0x3647ca['id'])['join'](',\x20')+'.',_0x2a69fd(0xa4));}const _0xde944=_0x3e2b42[_0x2a69fd(0xce)](_0x45876e=>({'id':_0x45876e['id'],'label':_0x45876e['label'],'path':_0x45876e[_0x2a69fd(0xdb)],'before':{'visible':_0x45876e[_0x2a69fd(0x110)]},'after':{'visible':_0x217f66[_0x2a69fd(0x110)]}})),_0x561462=_0xde944[_0x2a69fd(0xaf)](_0x309dee=>_0x309dee[_0x2a69fd(0xe4)]['visible']!==_0x217f66[_0x2a69fd(0x110)])[_0x2a69fd(0xce)](_0x44c1ea=>({'stage':'update-menu-visibility','method':_0x2a69fd(0xe2),'path':'/smartapi/menu/update','body':{'appCode':_0x139b70[_0x2a69fd(0xd6)],'id':_0x44c1ea['id'],'visible':_0x217f66[_0x2a69fd(0x110)]}})),_0x3a23ae=mutationResult({'operation':_0x2a69fd(0xfa),'selector':{'menuIds':_0x217f66[_0x2a69fd(0xf5)],'paths':_0x217f66[_0x2a69fd(0x10f)]},'before':{'menus':_0x3e2b42[_0x2a69fd(0xce)](_0x584d38=>({'id':_0x584d38['id'],'path':_0x584d38[_0x2a69fd(0xdb)],'visible':_0x584d38[_0x2a69fd(0x110)]}))},'after':{'menus':_0x3e2b42['map'](_0x447023=>({'id':_0x447023['id'],'path':_0x447023['path'],'visible':_0x217f66[_0x2a69fd(0x110)]}))},'dryRun':_0x1abbda,'backend':[...BACKEND],'plannedActions':_0x561462,'snapshotHash':_0x1fda34[_0x2a69fd(0xdd)],'warnings':_0x561462['length']===0x0?[_0x2a69fd(0x117)]:[]});return{'plan':{..._0x3a23ae,'requestedVisible':_0x217f66[_0x2a69fd(0x110)],'targets':_0xde944},'beforeById':new Map(_0x3e2b42['map'](_0x436102=>[_0x436102['id'],_0x436102]))};}function selectTargets(_0x42f717,_0x1cf65f,_0x1aba49){const _0x4a65ce=a191_0x3c4aeb,_0x9dab61=new Map(_0x42f717[_0x4a65ce(0xce)](_0x5588ad=>[_0x5588ad['id'],_0x5588ad])),_0x38dba2=new Map(),_0x3e8928=_0x1cf65f[_0x4a65ce(0xaf)](_0x3ce8a0=>!_0x9dab61[_0x4a65ce(0xb0)](_0x3ce8a0));if(_0x3e8928[_0x4a65ce(0xb4)]>0x0)throw menuError(_0x4a65ce(0xcd),_0x4a65ce(0x119)+_0x3e8928[_0x4a65ce(0xd0)](',\x20')+'.',_0x4a65ce(0xe3));for(const _0x4ac679 of _0x1cf65f){_0x38dba2[_0x4a65ce(0xd9)](_0x4ac679,_0x9dab61[_0x4a65ce(0xb2)](_0x4ac679));}for(const _0x286f54 of _0x1aba49){const _0x553ee0=_0x42f717[_0x4a65ce(0xaf)](_0x530b2e=>_0x530b2e[_0x4a65ce(0xdb)]===_0x286f54);if(_0x553ee0[_0x4a65ce(0xb4)]===0x0)throw menuError(_0x4a65ce(0xcd),_0x4a65ce(0xe1)+JSON[_0x4a65ce(0xf4)](_0x286f54)+'.',_0x4a65ce(0xef));if(_0x553ee0[_0x4a65ce(0xb4)]>0x1)throw menuError('menu_selector_ambiguous',_0x4a65ce(0x106)+JSON[_0x4a65ce(0xf4)](_0x286f54)+'.',_0x4a65ce(0xd8)+_0x553ee0[_0x4a65ce(0xce)](_0x2348b9=>_0x2348b9['id'])['join'](',\x20')+'.');const _0x151e6b=_0x553ee0[0x0];_0x38dba2[_0x4a65ce(0xd9)](_0x151e6b['id'],_0x151e6b);}return[..._0x38dba2[_0x4a65ce(0xb7)]()];}function parseMenuIds(_0x4da9b9){const _0x52cb4b=a191_0x3c4aeb,_0x2b128c=parseCsv(_0x4da9b9),_0x36ed02=_0x2b128c[_0x52cb4b(0xce)](Number);if(_0x36ed02[_0x52cb4b(0x11a)](_0x5648df=>!Number[_0x52cb4b(0xa6)](_0x5648df)||_0x5648df<=0x0))throw CliErrors['validation'](_0x52cb4b(0x100));return[...new Set(_0x36ed02)];}function parseCsv(_0x2f04b1){const _0x4e3c50=a191_0x3c4aeb;return[...new Set(_0x2f04b1[_0x4e3c50(0xf3)](',')['map'](_0xf6a508=>_0xf6a508[_0x4e3c50(0xb1)]())[_0x4e3c50(0xaf)](Boolean))];}function a191_0x4692(_0x573f00,_0x349d71){_0x573f00=_0x573f00-0xa3;const _0xd811f5=a191_0xd811();let _0x469253=_0xd811f5[_0x573f00];return _0x469253;}function a191_0xd811(){const _0x23a5c3=['menu_selector_not_found','map','expectedCount','join','flagMissing','datasetCode','plan','beforeById','492GnpbwJ','appCode','depth','Use\x20--menu-ids\x20with\x20one\x20or\x20more\x20of:\x20','set','pageId','path','Inspect\x20current\x20menu\x20facts\x20before\x20retrying\x20any\x20target.','hash','Run\x20the\x20command\x20with\x20--dry-run\x20again\x20and\x20update\x20--expected-count.','true','\x20unchanged\x20menu(s).','Menu\x20path\x20selector\x20not\x20found:\x20','POST','Run\x20`rabetbase\x20menu\x20list\x20--format\x20compress`\x20and\x20use\x20exact\x20current\x20ids.','before','expect-visible','expected-count','sort','verify\x20menu\x20visibility\x20update','body','modelType','childrenIds','updated','menu_permission_denied','Abort\x20unless\x20every\x20selected\x20menu\x20has\x20this\x20visibility','Run\x20`rabetbase\x20menu\x20list\x20--format\x20compress`\x20and\x20use\x20an\x20exact\x20current\x20path.','2726591ecQvVB','35LqyFUx','code','split','stringify','menuIds','str','The\x20update\x20may\x20have\x20taken\x20effect;\x20inspect\x20the\x20latest\x20menu\x20facts\x20before\x20retrying.','/smartapi/menu/update','targets','visibility-update','menu-ids','--expected-count\x20must\x20be\x20a\x20non-negative\x20integer.','Requested\x20menu\x20visibility','Updated\x20visibility\x20for\x20','message','--menu-ids\x20must\x20contain\x20positive\x20safe\x20integers.','cookie','menu','427262vjXvDw','\x20changed\x20unexpectedly.','isArray','Menu\x20path\x20selector\x20matched\x20multiple\x20menus:\x20','update','menu\x20visibility-update\x20requires\x20--menu-ids\x20or\x20--paths.','url','pageType','update\x20menu\x20visibility','rawFlags','warnings','Menu\x20visibility\x20update\x20completed:\x20','paths','visible','Response\x20was\x20lost\x20for\x20menu\x20','plannedActions','173228pPJMrd','type','Failed\x20update\x20requests\x20were\x20not\x20retried;\x20inspect\x20current\x20menu\x20facts\x20before\x20retrying.','5022mLzhup','Every\x20selected\x20menu\x20already\x20has\x20the\x20requested\x20visibility;\x20no\x20write\x20is\x20needed.','datasetId','Menu\x20id\x20selector(s)\x20not\x20found:\x20','some','parentId','Exact\x20comma-separated\x20menu\x20paths\x20to\x20update','verification','validation','num','3MvFVbY','2727488saPStF','Run\x20the\x20command\x20with\x20--dry-run\x20again\x20and\x20update\x20--expect-visible.','menu_state_drift','isSafeInteger','\x20must\x20be\x20true\x20or\x20false.','\x20failed.','666972gqeVko','Menu\x20visibility\x20update\x20could\x20not\x20be\x20verified\x20for\x20id(s):\x20','Menu\x20','Final\x20menu\x20visibility\x20readback\x20failed.','childrenCount','update\x20visibility\x20for','filter','has','trim','get','expectVisible','length','\x20visible\x20did\x20not\x20match\x20the\x20requested\x20state.','Exact\x20comma-separated\x20menu\x20IDs\x20to\x20update','values','Visibility\x20update\x20requests\x20completed\x20but\x20readback\x20could\x20not\x20confirm\x20the\x20requested\x20state','number','failed','Selected\x20','resourcesValid','18510QkMKtY','boolean','\x20visibility\x20could\x20not\x20be\x20verified\x20safely','label','Would\x20update\x20visibility\x20for\x20','string','resources','6wicTPr','Set\x20exact\x20menus\x20visible\x20or\x20hidden\x20without\x20changing\x20their\x20routes\x20or\x20resources','1008476UqtjDl','menu_verification_failed','push','Abort\x20unless\x20the\x20exact\x20number\x20of\x20selected\x20menus\x20matches','byId','requestedVisible','\x20updated,\x20'];a191_0xd811=function(){return _0x23a5c3;};return a191_0xd811();}function parseBooleanFlag(_0x477ead,_0x34ffba,_0x26256d){const _0x1f4045=a191_0x3c4aeb;if(!hasFlag(_0x477ead,_0x34ffba)){if(_0x26256d)throw CliErrors[_0x1f4045(0xd1)](_0x34ffba);return undefined;}const _0x1562b4=_0x477ead[_0x1f4045(0x10c)][_0x34ffba];if(_0x1562b4===!![]||_0x1562b4===![])return _0x1562b4;if(_0x1562b4===_0x1f4045(0xdf))return!![];if(_0x1562b4==='false')return![];throw CliErrors[_0x1f4045(0x11e)]('--'+_0x34ffba+_0x1f4045(0xa7));}function verifyVisibilityUpdate(_0x5bd747,_0x1bf084,_0x1279c7){const _0x29756e=a191_0x3c4aeb;assertVerified(!!_0x1bf084,_0x29756e(0xab)+_0x5bd747['id']+'\x20was\x20not\x20found\x20during\x20visibility\x20verification.'),assertVerified(_0x1bf084[_0x29756e(0x110)]===_0x1279c7,_0x29756e(0xab)+_0x5bd747['id']+_0x29756e(0xb5));const _0x25571b=[['id',_0x1bf084['id'],_0x5bd747['id']],['parentId',_0x1bf084[_0x29756e(0x11b)],_0x5bd747[_0x29756e(0x11b)]],[_0x29756e(0xd7),_0x1bf084['depth'],_0x5bd747[_0x29756e(0xd7)]],[_0x29756e(0xc0),_0x1bf084[_0x29756e(0xc0)],_0x5bd747['label']],[_0x29756e(0xdb),_0x1bf084[_0x29756e(0xdb)],_0x5bd747['path']],[_0x29756e(0x109),_0x1bf084[_0x29756e(0x109)],_0x5bd747['url']],[_0x29756e(0x114),_0x1bf084[_0x29756e(0x114)],_0x5bd747[_0x29756e(0x114)]],[_0x29756e(0xe7),_0x1bf084[_0x29756e(0xe7)],_0x5bd747[_0x29756e(0xe7)]],[_0x29756e(0xc3),_0x1bf084['resources'],_0x5bd747[_0x29756e(0xc3)]],[_0x29756e(0xbc),_0x1bf084[_0x29756e(0xbc)],_0x5bd747[_0x29756e(0xbc)]],[_0x29756e(0xeb),_0x1bf084[_0x29756e(0xeb)],_0x5bd747[_0x29756e(0xeb)]],['childrenCount',_0x1bf084[_0x29756e(0xad)],_0x5bd747[_0x29756e(0xad)]],[_0x29756e(0xda),_0x1bf084[_0x29756e(0xda)],_0x5bd747[_0x29756e(0xda)]],['pageType',_0x1bf084[_0x29756e(0x10a)],_0x5bd747['pageType']],[_0x29756e(0xea),_0x1bf084[_0x29756e(0xea)],_0x5bd747[_0x29756e(0xea)]],[_0x29756e(0x118),_0x1bf084[_0x29756e(0x118)],_0x5bd747[_0x29756e(0x118)]],['datasetCode',_0x1bf084[_0x29756e(0xd2)],_0x5bd747[_0x29756e(0xd2)]]];for(const [_0xdc7e3e,_0x483d2c,_0x3677e9]of _0x25571b){assertVerified(sameValue(_0x483d2c,_0x3677e9),_0x29756e(0xab)+_0x5bd747['id']+'\x20'+_0xdc7e3e+_0x29756e(0x104));}}function sameValue(_0x4f073a,_0x323314){const _0x204659=a191_0x3c4aeb;if(Array[_0x204659(0x105)](_0x4f073a)||Array['isArray'](_0x323314))return JSON[_0x204659(0xf4)](_0x4f073a)===JSON['stringify'](_0x323314);return _0x4f073a===_0x323314;}
1
+ const a191_0x10de07=a191_0x5d3c;(function(_0x1c4f2e,_0x11f921){const _0x4a1440=a191_0x5d3c,_0xe22af6=_0x1c4f2e();while(!![]){try{const _0x38d4a9=-parseInt(_0x4a1440(0x146))/0x1*(parseInt(_0x4a1440(0x141))/0x2)+parseInt(_0x4a1440(0x15f))/0x3+-parseInt(_0x4a1440(0x117))/0x4+-parseInt(_0x4a1440(0x168))/0x5+parseInt(_0x4a1440(0x12e))/0x6*(-parseInt(_0x4a1440(0x17e))/0x7)+-parseInt(_0x4a1440(0x160))/0x8+parseInt(_0x4a1440(0x10e))/0x9*(parseInt(_0x4a1440(0x137))/0xa);if(_0x38d4a9===_0x11f921)break;else _0xe22af6['push'](_0xe22af6['shift']());}catch(_0x50a46e){_0xe22af6['push'](_0xe22af6['shift']());}}}(a191_0x5a35,0xa5262));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{fetchMenuSnapshot}from'../../commands/menu/shared/facts.js';function a191_0x5a35(){const _0x37135c=['9399456gbaLcC','isSafeInteger','visibility-update','Menu\x20path\x20selector\x20not\x20found:\x20','menu_verification_failed','Menu\x20','\x20skipped,\x20','get','5042525uOaBSi','update-recovery','Menu\x20visibility\x20update\x20completed:\x20','boolean','Selected\x20','warnings','cookie','expectedCount','Response\x20was\x20lost\x20and\x20menu\x20','recovered','paths','Requested\x20menu\x20visibility','set','\x20updated,\x20','Run\x20the\x20command\x20with\x20--dry-run\x20again\x20and\x20update\x20--expected-count.','expectVisible','validation','\x20visibility\x20update\x20could\x20not\x20be\x20verified','update-menu-visibility','message','requestedVisible','expect-visible','224eBxXFb','byId','\x20menu(s);\x20skipped\x20','The\x20update\x20may\x20have\x20taken\x20effect;\x20inspect\x20the\x20latest\x20menu\x20facts\x20before\x20retrying.','join','update','menu\x20list','depth','targets','/smartapi/menu/update','flagMissing','rawFlags','menu','values','appCode','45XUiLzD','menu_selector_not_found','menu-ids','verify\x20menu\x20visibility\x20update','Use\x20--menu-ids\x20with\x20one\x20or\x20more\x20of:\x20','code','\x20must\x20be\x20true\x20or\x20false.','Response\x20was\x20lost\x20for\x20menu\x20','Updated\x20visibility\x20for\x20','2560996QrwHdI','Final\x20menu\x20visibility\x20readback\x20failed.','has','menus','type','menuIds','hash','string','length','\x20visible\x20did\x20not\x20match\x20the\x20requested\x20state.','failed','\x20menu(s),\x20expected\x20','--menu-ids\x20must\x20contain\x20positive\x20safe\x20integers.','false','true','childrenIds','update\x20visibility\x20for','Abort\x20unless\x20the\x20exact\x20number\x20of\x20selected\x20menus\x20matches','path','parentId','rabetbase\x20menu\x20list\x20--format\x20compress','update\x20menu\x20visibility','split','150186pKruRM','push','childrenCount','beforeById','num','Menu\x20visibility\x20update\x20could\x20not\x20be\x20verified\x20for\x20id(s):\x20','url','menu_expected_count_mismatch','before','9121550mhUoET','plannedActions','pageId','\x20changed\x20unexpectedly.','sort','menu_selector_ambiguous','Visibility\x20update\x20requests\x20completed\x20but\x20readback\x20could\x20not\x20confirm\x20the\x20requested\x20state','Menu\x20path\x20selector\x20matched\x20multiple\x20menus:\x20','str','\x20failed.','11156AEPfgC','number','stringify','menu_permission_denied','POST','149GnQxwJ','Run\x20`rabetbase\x20menu\x20list\x20--format\x20compress`\x20and\x20use\x20an\x20exact\x20current\x20path.','plan','updated','resources','Menu\x20id\x20selector(s)\x20not\x20found:\x20','pageType','Abort\x20unless\x20every\x20selected\x20menu\x20has\x20this\x20visibility','menu\x20visibility-update\x20requires\x20--menu-ids\x20or\x20--paths.','resourcesValid','menu_state_drift','expected-count','datasetCode','filter','modelType','verification','Would\x20update\x20visibility\x20for\x20','label','trim','\x20was\x20not\x20found\x20during\x20visibility\x20verification.','isArray','datasetId','visible','map','Exact\x20comma-separated\x20menu\x20IDs\x20to\x20update','1714425hoDGWr'];a191_0x5a35=function(){return _0x37135c;};return a191_0x5a35();}import{asVerificationError,assertVerified,describeMenuErrorCause,fetchMutationSnapshot,hasFlag,isMenuResponseLoss,mapMenuApiError,menuDryRunResult,menuError,menuFailure,mutationResult,recheckMutationSnapshot}from'../../commands/menu/shared/mutations.js';import{updateMenuEntity}from'../../commands/menu/shared/service.js';import{CliErrors}from'../../errors.js';const BACKEND=[{'method':a191_0x10de07(0x145),'path':'/smartapi/menu/update'}];export const menuVisibilityUpdate={'service':a191_0x10de07(0x10b),'command':a191_0x10de07(0x162),'description':'Set\x20exact\x20menus\x20visible\x20or\x20hidden\x20without\x20changing\x20their\x20routes\x20or\x20resources','risk':'write','structuredErrors':!![],'flags':[{'name':a191_0x10de07(0x110),'type':a191_0x10de07(0x11e),'description':a191_0x10de07(0x15e)},{'name':'paths','type':a191_0x10de07(0x11e),'description':'Exact\x20comma-separated\x20menu\x20paths\x20to\x20update'},{'name':'visible','type':a191_0x10de07(0x16b),'required':!![],'description':a191_0x10de07(0x173)},{'name':a191_0x10de07(0x17d),'type':'boolean','description':a191_0x10de07(0x14d)},{'name':a191_0x10de07(0x151),'type':a191_0x10de07(0x142),'description':a191_0x10de07(0x128)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x2fe318){parseInput(_0x2fe318);},async 'dryRun'(_0x4a2580){const _0x1aec92=a191_0x10de07,_0x136f2a=await buildPlan(_0x4a2580,!![]),_0x523349=_0x136f2a[_0x1aec92(0x148)]['plannedActions']?.[_0x1aec92(0x11f)]??0x0,_0x48c153=_0x136f2a[_0x1aec92(0x148)][_0x1aec92(0x107)][_0x1aec92(0x11f)]-_0x523349;return menuDryRunResult(_0x136f2a[_0x1aec92(0x148)],{'method':_0x1aec92(0x145),'url':_0x1aec92(0x108),'body':{'updates':_0x136f2a[_0x1aec92(0x148)][_0x1aec92(0x138)]?.[_0x1aec92(0x15d)](_0x5a5121=>_0x5a5121['body'])??[]},'description':_0x1aec92(0x156)+_0x523349+'\x20menu(s);\x20skip\x20'+_0x48c153+'\x20unchanged\x20menu(s).'});},async 'execute'(_0x5aa727){const _0x37a0b9=a191_0x10de07,_0x35a03c=await buildPlan(_0x5aa727,![]);await recheckMutationSnapshot(_0x5aa727,_0x35a03c[_0x37a0b9(0x148)],'update\x20menu\x20visibility');const _0x555c48=[],_0x5d573c=[],_0x223be9=[];for(const _0x463a31 of _0x35a03c[_0x37a0b9(0x148)][_0x37a0b9(0x107)]){if(_0x463a31[_0x37a0b9(0x136)]['visible']===_0x35a03c[_0x37a0b9(0x148)][_0x37a0b9(0x17c)]){_0x555c48[_0x37a0b9(0x12f)]({'id':_0x463a31['id'],'updated':![],'skipped':!![]});continue;}try{await updateMenuEntity(_0x5aa727[_0x37a0b9(0x10d)],_0x5aa727[_0x37a0b9(0x16e)],{'id':_0x463a31['id'],'visible':_0x35a03c[_0x37a0b9(0x148)]['requestedVisible']}),_0x555c48[_0x37a0b9(0x12f)]({'id':_0x463a31['id'],'updated':!![],'skipped':![]});}catch(_0x6ea2b1){const _0x541f8e=mapMenuApiError(_0x6ea2b1,_0x37a0b9(0x127),_0x463a31['id']);if(isMenuResponseLoss(_0x6ea2b1)&&_0x541f8e[_0x37a0b9(0x113)]!==_0x37a0b9(0x144)){_0x223be9[_0x37a0b9(0x12f)](_0x463a31['id']);continue;}_0x5d573c[_0x37a0b9(0x12f)]({'id':_0x463a31['id'],'stage':_0x37a0b9(0x104),'code':_0x541f8e['code'],'message':_0x541f8e['message']});}}let _0x49fdc0;try{_0x49fdc0=await fetchMenuSnapshot(_0x5aa727[_0x37a0b9(0x10d)],_0x5aa727[_0x37a0b9(0x16e)]);}catch(_0x3b79eb){const _0x25c599=describeMenuErrorCause(_0x3b79eb,_0x37a0b9(0x111)),_0x9a8ce9=_0x223be9[_0x37a0b9(0x15d)](_0x563bb1=>({'id':_0x563bb1,'stage':_0x37a0b9(0x169),'code':_0x37a0b9(0x164),'message':_0x37a0b9(0x115)+_0x563bb1+'\x20and\x20final\x20state\x20could\x20not\x20be\x20read.','requestedStateConfirmed':![],'recovered':![]})),_0x190620={'stage':'verification','code':_0x37a0b9(0x164),'message':_0x37a0b9(0x118),'targetIds':_0x35a03c['plan']['targets'][_0x37a0b9(0x15d)](_0x52eb1f=>_0x52eb1f['id']),'requestedStateConfirmed':![],..._0x25c599};throw menuFailure(asVerificationError(_0x3b79eb,_0x37a0b9(0x13d)),_0x35a03c[_0x37a0b9(0x148)],{'stage':_0x37a0b9(0x155),'succeeded':_0x555c48,'failedRecords':[..._0x5d573c,..._0x9a8ce9,_0x190620],'warnings':[_0x37a0b9(0x181)],'verification':{'status':_0x37a0b9(0x121),'recoveredCount':0x0,'lookupCommand':_0x37a0b9(0x12b)}});}const _0x372524=[];for(const _0x43d25a of _0x555c48){const _0x7bd1c4=Number(_0x43d25a['id']),_0x1315fb=_0x35a03c['beforeById']['get'](_0x7bd1c4),_0x27c999=_0x49fdc0[_0x37a0b9(0x17f)][_0x37a0b9(0x167)](_0x7bd1c4);try{verifyVisibilityUpdate(_0x1315fb,_0x27c999,_0x35a03c['plan'][_0x37a0b9(0x17c)]);}catch(_0x4497b7){const _0x29b51f=asVerificationError(_0x4497b7,_0x37a0b9(0x165)+_0x7bd1c4+_0x37a0b9(0x179));_0x372524[_0x37a0b9(0x12f)]({'id':_0x7bd1c4,'stage':_0x37a0b9(0x155),'code':_0x29b51f['code'],'message':_0x29b51f[_0x37a0b9(0x17b)],'requestedStateConfirmed':![]});}}for(const _0x48c050 of _0x223be9){const _0x252922=_0x35a03c[_0x37a0b9(0x131)][_0x37a0b9(0x167)](_0x48c050),_0x59bae0=_0x49fdc0[_0x37a0b9(0x17f)][_0x37a0b9(0x167)](_0x48c050);try{verifyVisibilityUpdate(_0x252922,_0x59bae0,_0x35a03c[_0x37a0b9(0x148)]['requestedVisible']),_0x555c48[_0x37a0b9(0x12f)]({'id':_0x48c050,'updated':!![],'skipped':![],'recovered':!![]});}catch(_0x4699f7){const _0x169f0c=asVerificationError(_0x4699f7,_0x37a0b9(0x170)+_0x48c050+'\x20visibility\x20could\x20not\x20be\x20verified\x20safely');_0x372524[_0x37a0b9(0x12f)]({'id':_0x48c050,'stage':_0x37a0b9(0x169),'code':_0x169f0c['code'],'message':_0x169f0c[_0x37a0b9(0x17b)],'requestedStateConfirmed':![],'recovered':![]});}}if(_0x372524['length']>0x0){const _0x41f3b2=_0x372524[_0x37a0b9(0x15d)](_0x405ea8=>Number(_0x405ea8['id'])),_0x3bbd4d=_0x555c48['filter'](_0x4f2448=>_0x4f2448[_0x37a0b9(0x171)]===!![])[_0x37a0b9(0x11f)],_0x162f9d=menuError(_0x37a0b9(0x164),_0x37a0b9(0x133)+_0x41f3b2['join'](',\x20')+'.','Inspect\x20current\x20menu\x20facts\x20before\x20retrying\x20any\x20target.');throw menuFailure(_0x162f9d,_0x35a03c[_0x37a0b9(0x148)],{'stage':_0x37a0b9(0x155),'succeeded':_0x555c48,'failedRecords':[..._0x5d573c,..._0x372524],'warnings':['One\x20or\x20more\x20updates\x20may\x20have\x20changed\x20fields\x20outside\x20visibility;\x20inspect\x20current\x20menu\x20facts\x20before\x20retrying.'],'verification':{'status':_0x37a0b9(0x121),..._0x41f3b2[_0x37a0b9(0x11f)]===0x1?{'targetId':_0x41f3b2[0x0]}:{'targetIds':_0x41f3b2},'recoveredCount':_0x3bbd4d,'lookupCommand':_0x37a0b9(0x12b)}});}const _0x4e5b0f=_0x555c48[_0x37a0b9(0x153)](_0x4b4e76=>_0x4b4e76[_0x37a0b9(0x149)]===!![])[_0x37a0b9(0x11f)],_0x2a5a9e=_0x555c48[_0x37a0b9(0x11f)]-_0x4e5b0f,_0x491b8d={..._0x35a03c['plan'],'succeeded':_0x555c48,'failed':_0x5d573c,'warnings':_0x5d573c[_0x37a0b9(0x11f)]>0x0?[..._0x35a03c[_0x37a0b9(0x148)][_0x37a0b9(0x16d)],'Failed\x20update\x20requests\x20were\x20not\x20retried;\x20inspect\x20current\x20menu\x20facts\x20before\x20retrying.']:_0x35a03c['plan'][_0x37a0b9(0x16d)],'verification':{'checkedBy':_0x37a0b9(0x105),'snapshotHash':_0x49fdc0[_0x37a0b9(0x11d)],'matchesRequestedState':_0x5d573c[_0x37a0b9(0x11f)]===0x0,'recoveredCount':_0x223be9[_0x37a0b9(0x11f)]}};return{'ok':_0x5d573c[_0x37a0b9(0x11f)]===0x0,'data':_0x491b8d,'message':_0x5d573c[_0x37a0b9(0x11f)]===0x0?_0x37a0b9(0x116)+_0x4e5b0f+_0x37a0b9(0x180)+_0x2a5a9e+'\x20unchanged\x20menu(s).':_0x37a0b9(0x16a)+_0x4e5b0f+_0x37a0b9(0x175)+_0x2a5a9e+_0x37a0b9(0x166)+_0x5d573c[_0x37a0b9(0x11f)]+_0x37a0b9(0x140)};}};function parseInput(_0x39ec8f){const _0x339647=a191_0x10de07,_0x2d39d9=parseMenuIds(_0x39ec8f[_0x339647(0x13f)](_0x339647(0x110))),_0x557bf4=parseCsv(_0x39ec8f[_0x339647(0x13f)](_0x339647(0x172)));if(_0x2d39d9['length']===0x0&&_0x557bf4[_0x339647(0x11f)]===0x0)throw CliErrors[_0x339647(0x178)](_0x339647(0x14e));const _0x9fa5f0=parseBooleanFlag(_0x39ec8f,_0x339647(0x15c),!![]),_0x1c5709=parseBooleanFlag(_0x39ec8f,_0x339647(0x17d),![]);let _0x3a48d8;if(hasFlag(_0x39ec8f,_0x339647(0x151))){_0x3a48d8=_0x39ec8f[_0x339647(0x132)](_0x339647(0x151));if(!Number[_0x339647(0x161)](_0x3a48d8)||_0x3a48d8<0x0)throw CliErrors[_0x339647(0x178)]('--expected-count\x20must\x20be\x20a\x20non-negative\x20integer.');}return{'menuIds':_0x2d39d9,'paths':_0x557bf4,'visible':_0x9fa5f0,'expectVisible':_0x1c5709,'expectedCount':_0x3a48d8};}async function buildPlan(_0xeba4d9,_0x1ed861){const _0x549c91=a191_0x10de07,_0x268216=parseInput(_0xeba4d9),_0x4a23f4=await fetchMutationSnapshot(_0xeba4d9,_0x549c91(0x12c)),_0x3b7c67=selectTargets(_0x4a23f4[_0x549c91(0x11a)],_0x268216['menuIds'],_0x268216[_0x549c91(0x172)]);if(_0x268216['expectedCount']!==undefined&&_0x3b7c67[_0x549c91(0x11f)]!==_0x268216['expectedCount'])throw menuError(_0x549c91(0x135),_0x549c91(0x16c)+_0x3b7c67[_0x549c91(0x11f)]+_0x549c91(0x122)+_0x268216[_0x549c91(0x16f)]+'.',_0x549c91(0x176));if(_0x268216[_0x549c91(0x177)]!==undefined){const _0x56d3e8=_0x3b7c67[_0x549c91(0x153)](_0x4dbb8e=>_0x4dbb8e[_0x549c91(0x15c)]!==_0x268216[_0x549c91(0x177)]);if(_0x56d3e8[_0x549c91(0x11f)]>0x0)throw menuError(_0x549c91(0x150),'Selected\x20menu\x20visibility\x20changed\x20for\x20id(s):\x20'+_0x56d3e8['map'](_0x3d0f6f=>_0x3d0f6f['id'])[_0x549c91(0x103)](',\x20')+'.','Run\x20the\x20command\x20with\x20--dry-run\x20again\x20and\x20update\x20--expect-visible.');}const _0x30907b=_0x3b7c67[_0x549c91(0x15d)](_0x121bda=>({'id':_0x121bda['id'],'label':_0x121bda['label'],'path':_0x121bda[_0x549c91(0x129)],'before':{'visible':_0x121bda['visible']},'after':{'visible':_0x268216[_0x549c91(0x15c)]}})),_0x2be6d4=_0x30907b[_0x549c91(0x153)](_0x13938d=>_0x13938d[_0x549c91(0x136)][_0x549c91(0x15c)]!==_0x268216[_0x549c91(0x15c)])[_0x549c91(0x15d)](_0x169015=>({'stage':_0x549c91(0x17a),'method':_0x549c91(0x145),'path':'/smartapi/menu/update','body':{'appCode':_0xeba4d9['appCode'],'id':_0x169015['id'],'visible':_0x268216[_0x549c91(0x15c)]}})),_0x4d41e2=mutationResult({'operation':_0x549c91(0x162),'selector':{'menuIds':_0x268216[_0x549c91(0x11c)],'paths':_0x268216['paths']},'before':{'menus':_0x3b7c67['map'](_0x55d202=>({'id':_0x55d202['id'],'path':_0x55d202['path'],'visible':_0x55d202['visible']}))},'after':{'menus':_0x3b7c67[_0x549c91(0x15d)](_0x5e1c5a=>({'id':_0x5e1c5a['id'],'path':_0x5e1c5a[_0x549c91(0x129)],'visible':_0x268216[_0x549c91(0x15c)]}))},'dryRun':_0x1ed861,'backend':[...BACKEND],'plannedActions':_0x2be6d4,'snapshotHash':_0x4a23f4[_0x549c91(0x11d)],'warnings':_0x2be6d4[_0x549c91(0x11f)]===0x0?['Every\x20selected\x20menu\x20already\x20has\x20the\x20requested\x20visibility;\x20no\x20write\x20is\x20needed.']:[]});return{'plan':{..._0x4d41e2,'requestedVisible':_0x268216[_0x549c91(0x15c)],'targets':_0x30907b},'beforeById':new Map(_0x3b7c67[_0x549c91(0x15d)](_0x6ae16=>[_0x6ae16['id'],_0x6ae16]))};}function a191_0x5d3c(_0x1f7cb6,_0x5a6efa){_0x1f7cb6=_0x1f7cb6-0x103;const _0x5a35aa=a191_0x5a35();let _0x5d3cef=_0x5a35aa[_0x1f7cb6];return _0x5d3cef;}function selectTargets(_0x47b866,_0x380f62,_0x2db266){const _0x590009=a191_0x10de07,_0xed68cb=new Map(_0x47b866['map'](_0x368a5d=>[_0x368a5d['id'],_0x368a5d])),_0x2d4856=new Map(),_0x2b98bf=_0x380f62[_0x590009(0x153)](_0x4600af=>!_0xed68cb[_0x590009(0x119)](_0x4600af));if(_0x2b98bf[_0x590009(0x11f)]>0x0)throw menuError(_0x590009(0x10f),_0x590009(0x14b)+_0x2b98bf[_0x590009(0x103)](',\x20')+'.','Run\x20`rabetbase\x20menu\x20list\x20--format\x20compress`\x20and\x20use\x20exact\x20current\x20ids.');for(const _0x1651ae of _0x380f62){_0x2d4856[_0x590009(0x174)](_0x1651ae,_0xed68cb[_0x590009(0x167)](_0x1651ae));}for(const _0x6459a0 of _0x2db266){const _0x20c294=_0x47b866[_0x590009(0x153)](_0x241cd6=>_0x241cd6[_0x590009(0x129)]===_0x6459a0);if(_0x20c294['length']===0x0)throw menuError(_0x590009(0x10f),_0x590009(0x163)+JSON[_0x590009(0x143)](_0x6459a0)+'.',_0x590009(0x147));if(_0x20c294['length']>0x1)throw menuError(_0x590009(0x13c),_0x590009(0x13e)+JSON[_0x590009(0x143)](_0x6459a0)+'.',_0x590009(0x112)+_0x20c294[_0x590009(0x15d)](_0x1385d2=>_0x1385d2['id'])[_0x590009(0x103)](',\x20')+'.');const _0x1f16b7=_0x20c294[0x0];_0x2d4856['set'](_0x1f16b7['id'],_0x1f16b7);}return[..._0x2d4856[_0x590009(0x10c)]()];}function parseMenuIds(_0x52363a){const _0x4e850e=a191_0x10de07,_0x37c182=parseCsv(_0x52363a),_0x2282af=_0x37c182[_0x4e850e(0x15d)](Number);if(_0x2282af['some'](_0x1c81d1=>!Number[_0x4e850e(0x161)](_0x1c81d1)||_0x1c81d1<=0x0))throw CliErrors[_0x4e850e(0x178)](_0x4e850e(0x123));return[...new Set(_0x2282af)];}function parseCsv(_0x2bfc1c){const _0xdd7f93=a191_0x10de07;return[...new Set(_0x2bfc1c[_0xdd7f93(0x12d)](',')[_0xdd7f93(0x15d)](_0x594898=>_0x594898[_0xdd7f93(0x158)]())[_0xdd7f93(0x153)](Boolean))];}function parseBooleanFlag(_0x24e803,_0x262690,_0x205537){const _0x4a7500=a191_0x10de07;if(!hasFlag(_0x24e803,_0x262690)){if(_0x205537)throw CliErrors[_0x4a7500(0x109)](_0x262690);return undefined;}const _0x16b050=_0x24e803[_0x4a7500(0x10a)][_0x262690];if(_0x16b050===!![]||_0x16b050===![])return _0x16b050;if(_0x16b050===_0x4a7500(0x125))return!![];if(_0x16b050===_0x4a7500(0x124))return![];throw CliErrors['validation']('--'+_0x262690+_0x4a7500(0x114));}function verifyVisibilityUpdate(_0x1bc08c,_0x220106,_0x119276){const _0x4c0793=a191_0x10de07;assertVerified(!!_0x220106,_0x4c0793(0x165)+_0x1bc08c['id']+_0x4c0793(0x159)),assertVerified(_0x220106[_0x4c0793(0x15c)]===_0x119276,_0x4c0793(0x165)+_0x1bc08c['id']+_0x4c0793(0x120));const _0x177a78=[['id',_0x220106['id'],_0x1bc08c['id']],[_0x4c0793(0x12a),_0x220106['parentId'],_0x1bc08c[_0x4c0793(0x12a)]],[_0x4c0793(0x106),_0x220106[_0x4c0793(0x106)],_0x1bc08c[_0x4c0793(0x106)]],[_0x4c0793(0x157),_0x220106[_0x4c0793(0x157)],_0x1bc08c[_0x4c0793(0x157)]],[_0x4c0793(0x129),_0x220106[_0x4c0793(0x129)],_0x1bc08c[_0x4c0793(0x129)]],[_0x4c0793(0x134),_0x220106[_0x4c0793(0x134)],_0x1bc08c[_0x4c0793(0x134)]],['type',_0x220106[_0x4c0793(0x11b)],_0x1bc08c[_0x4c0793(0x11b)]],['sort',_0x220106[_0x4c0793(0x13b)],_0x1bc08c[_0x4c0793(0x13b)]],[_0x4c0793(0x14a),_0x220106['resources'],_0x1bc08c[_0x4c0793(0x14a)]],['resourcesValid',_0x220106[_0x4c0793(0x14f)],_0x1bc08c[_0x4c0793(0x14f)]],[_0x4c0793(0x126),_0x220106['childrenIds'],_0x1bc08c[_0x4c0793(0x126)]],[_0x4c0793(0x130),_0x220106[_0x4c0793(0x130)],_0x1bc08c[_0x4c0793(0x130)]],[_0x4c0793(0x139),_0x220106['pageId'],_0x1bc08c[_0x4c0793(0x139)]],[_0x4c0793(0x14c),_0x220106[_0x4c0793(0x14c)],_0x1bc08c[_0x4c0793(0x14c)]],[_0x4c0793(0x154),_0x220106[_0x4c0793(0x154)],_0x1bc08c[_0x4c0793(0x154)]],[_0x4c0793(0x15b),_0x220106[_0x4c0793(0x15b)],_0x1bc08c[_0x4c0793(0x15b)]],[_0x4c0793(0x152),_0x220106[_0x4c0793(0x152)],_0x1bc08c['datasetCode']]];for(const [_0x242abe,_0x354dfa,_0x3e9edb]of _0x177a78){assertVerified(sameValue(_0x354dfa,_0x3e9edb),_0x4c0793(0x165)+_0x1bc08c['id']+'\x20'+_0x242abe+_0x4c0793(0x13a));}}function sameValue(_0x3bae96,_0x1cfdf5){const _0x12dc85=a191_0x10de07;if(Array[_0x12dc85(0x15a)](_0x3bae96)||Array[_0x12dc85(0x15a)](_0x1cfdf5))return JSON[_0x12dc85(0x143)](_0x3bae96)===JSON[_0x12dc85(0x143)](_0x1cfdf5);return _0x3bae96===_0x1cfdf5;}
@@ -1 +1 @@
1
- const a192_0x2b4a88=a192_0x2660;(function(_0x4c3cc4,_0x550521){const _0x284b93=a192_0x2660,_0x12c720=_0x4c3cc4();while(!![]){try{const _0x58eedf=-parseInt(_0x284b93(0x117))/0x1+parseInt(_0x284b93(0x120))/0x2*(-parseInt(_0x284b93(0x114))/0x3)+parseInt(_0x284b93(0x127))/0x4+-parseInt(_0x284b93(0x128))/0x5*(parseInt(_0x284b93(0x125))/0x6)+-parseInt(_0x284b93(0x133))/0x7+-parseInt(_0x284b93(0x132))/0x8*(-parseInt(_0x284b93(0x113))/0x9)+parseInt(_0x284b93(0x11d))/0xa*(parseInt(_0x284b93(0x116))/0xb);if(_0x58eedf===_0x550521)break;else _0x12c720['push'](_0x12c720['shift']());}catch(_0x387fb0){_0x12c720['push'](_0x12c720['shift']());}}}(a192_0x3e3f,0xb9e73));function a192_0x2660(_0x41b2c1,_0x3c74e1){_0x41b2c1=_0x41b2c1-0x112;const _0x3e3f1d=a192_0x3e3f();let _0x266016=_0x3e3f1d[_0x41b2c1];return _0x266016;}import{asDryRunResult}from'../../commands/common/dry-run.js';import{createNotificationChannelConfig,getNotificationChannelConfig,isPlatformTransportFailure}from'../../core/api-client.js';import{assertSingleNotificationSource,createMutationInput,DEFAULT_NOTIFICATION_CONNECT_TIMEOUT,DEFAULT_NOTIFICATION_READ_TIMEOUT,normalizeExactNotificationConfig,notificationError,notificationLookupCommand,NOTIFICATION_APP_FLAG,NOTIFICATION_INPUT_FLAGS,projectNotificationConfig,readNotificationDocument,safeApiFailure}from'../../commands/notification/shared.js';const CREATE_PATH=a192_0x2b4a88(0x12f);async function prepareCreate(_0x23cd15){const _0x4945e2=a192_0x2b4a88,_0x1c6798=await readNotificationDocument(_0x23cd15,_0x4945e2(0x12c)),_0x13c42d=createMutationInput(_0x23cd15[_0x4945e2(0x11b)],_0x1c6798);return{'document':_0x1c6798,'input':_0x13c42d,'planned':projectNotificationConfig({'appCode':_0x23cd15[_0x4945e2(0x11b)],'configName':_0x1c6798[_0x4945e2(0x12b)],'channelType':_0x1c6798[_0x4945e2(0x130)],'endpointUrl':_0x1c6798[_0x4945e2(0x12d)],'channelConfig':_0x1c6798[_0x4945e2(0x11a)],'description':_0x1c6798['description'],'connectTimeout':_0x1c6798[_0x4945e2(0x123)]??DEFAULT_NOTIFICATION_CONNECT_TIMEOUT,'readTimeout':_0x1c6798[_0x4945e2(0x129)]??DEFAULT_NOTIFICATION_READ_TIMEOUT})};}export const notificationConfigCreate={'service':'notification','command':'config-create','description':a192_0x2b4a88(0x119),'risk':'write','requiresAppCode':!![],'structuredErrors':!![],'flags':[...NOTIFICATION_INPUT_FLAGS,NOTIFICATION_APP_FLAG],async 'validate'(_0xab8301){assertSingleNotificationSource(_0xab8301);},async 'dryRun'(_0x22a197){const _0x1f7c1c=a192_0x2b4a88,_0x36904f=await prepareCreate(_0x22a197),_0x59f84d=notificationLookupCommand(_0x22a197[_0x1f7c1c(0x11b)],_0x36904f[_0x1f7c1c(0x118)][_0x1f7c1c(0x130)]);return asDryRunResult({'operation':'create','selector':{'appCode':_0x22a197[_0x1f7c1c(0x11b)],'configName':_0x36904f[_0x1f7c1c(0x118)][_0x1f7c1c(0x12b)],'channelType':_0x36904f['document']['channelType']},'before':null,'after':_0x36904f[_0x1f7c1c(0x11c)],'dryRun':!![],'backend':{'method':_0x1f7c1c(0x122),'path':CREATE_PATH},'warnings':[],'verification':{'status':_0x1f7c1c(0x11c),'lookupCommand':_0x59f84d}},{'method':'POST','url':CREATE_PATH});},async 'execute'(_0x58bc78){const _0x53ea61=a192_0x2b4a88,_0x407b02=await prepareCreate(_0x58bc78),_0x2890e9=notificationLookupCommand(_0x58bc78['appCode'],_0x407b02[_0x53ea61(0x118)]['channelType']);let _0x378936;try{_0x378936=await createNotificationChannelConfig(_0x407b02[_0x53ea61(0x131)]);}catch(_0x439a71){if(isPlatformTransportFailure(_0x439a71))throw notificationError('notification_config_create_outcome_unknown',_0x53ea61(0x124),_0x53ea61(0x134)+_0x2890e9+_0x53ea61(0x126));throw safeApiFailure(_0x53ea61(0x12c),_0x53ea61(0x11e),_0x53ea61(0x134)+_0x2890e9+_0x53ea61(0x12e));}if(!Number[_0x53ea61(0x121)](_0x378936)||_0x378936<=0x0)throw notificationError(_0x53ea61(0x115),'Notification\x20config\x20create\x20returned\x20no\x20usable\x20server\x20ID.',_0x53ea61(0x134)+_0x2890e9+_0x53ea61(0x126));let _0x517c5b;try{const _0x1c7442=await getNotificationChannelConfig(_0x378936,_0x58bc78[_0x53ea61(0x11b)]);_0x517c5b=normalizeExactNotificationConfig(_0x1c7442,_0x378936,_0x58bc78[_0x53ea61(0x11b)]);}catch{throw safeApiFailure(_0x53ea61(0x12c),_0x53ea61(0x112),_0x53ea61(0x134)+_0x2890e9+';\x20do\x20not\x20resubmit\x20automatically.');}return{'ok':!![],'data':{'operation':_0x53ea61(0x12c),'selector':{'appCode':_0x517c5b['appCode'],'id':_0x517c5b['id'],'configCode':_0x517c5b[_0x53ea61(0x11f)],'configName':_0x517c5b[_0x53ea61(0x12b)],'channelType':_0x517c5b[_0x53ea61(0x130)]},'before':null,'after':projectNotificationConfig(_0x517c5b),'dryRun':![],'backend':{'method':_0x53ea61(0x122),'path':CREATE_PATH},'warnings':[],'verification':{'status':_0x53ea61(0x12a),'lookupCommand':_0x2890e9}},'message':'Created\x20notification\x20config\x20'+_0x517c5b['id']};}};function a192_0x3e3f(){const _0x34a7a6=['606BMmyMm','notification_config_create_outcome_unknown','154sZURgb','941036yAwnyt','document','Create\x20an\x20app-level\x20notification\x20config\x20from\x20a\x20secure\x20JSON\x20source','channelConfig','appCode','planned','1604330VPrdGj','mutation','configCode','11312szrdhE','isSafeInteger','POST','connectTimeout','Notification\x20config\x20create\x20outcome\x20is\x20unknown\x20because\x20no\x20server\x20ID\x20was\x20received.','143352TkNSKU',';\x20do\x20not\x20resubmit.','3557912mEXJoK','45lZNtBa','readTimeout','verified','configName','create','endpointUrl',';\x20no\x20automatic\x20retry\x20was\x20attempted.','/notification/channel-config/create','channelType','input','180872wOdiFl','4959899uvXStB','Inspect\x20with\x20','verification','252NrOQGA'];a192_0x3e3f=function(){return _0x34a7a6;};return a192_0x3e3f();}
1
+ const a192_0x23765b=a192_0x29f7;(function(_0x1d2799,_0x3b3839){const _0x35f3f4=a192_0x29f7,_0x34d52a=_0x1d2799();while(!![]){try{const _0x2f5c5f=-parseInt(_0x35f3f4(0x179))/0x1+-parseInt(_0x35f3f4(0x166))/0x2+-parseInt(_0x35f3f4(0x16a))/0x3*(parseInt(_0x35f3f4(0x172))/0x4)+-parseInt(_0x35f3f4(0x177))/0x5*(-parseInt(_0x35f3f4(0x17b))/0x6)+-parseInt(_0x35f3f4(0x163))/0x7+parseInt(_0x35f3f4(0x16c))/0x8*(parseInt(_0x35f3f4(0x165))/0x9)+parseInt(_0x35f3f4(0x15e))/0xa;if(_0x2f5c5f===_0x3b3839)break;else _0x34d52a['push'](_0x34d52a['shift']());}catch(_0x2f1dde){_0x34d52a['push'](_0x34d52a['shift']());}}}(a192_0x421a,0x2a525));import{asDryRunResult}from'../../commands/common/dry-run.js';import{createNotificationChannelConfig,getNotificationChannelConfig,isPlatformTransportFailure}from'../../core/api-client.js';import{assertSingleNotificationSource,createMutationInput,DEFAULT_NOTIFICATION_CONNECT_TIMEOUT,DEFAULT_NOTIFICATION_READ_TIMEOUT,normalizeExactNotificationConfig,notificationError,notificationLookupCommand,NOTIFICATION_APP_FLAG,NOTIFICATION_INPUT_FLAGS,projectNotificationConfig,readNotificationDocument,safeApiFailure}from'../../commands/notification/shared.js';const CREATE_PATH=a192_0x23765b(0x16f);async function prepareCreate(_0x7b8577){const _0x9ee4a0=a192_0x23765b,_0x1cd0cc=await readNotificationDocument(_0x7b8577,'create'),_0x207852=createMutationInput(_0x7b8577['appCode'],_0x1cd0cc);return{'document':_0x1cd0cc,'input':_0x207852,'planned':projectNotificationConfig({'appCode':_0x7b8577[_0x9ee4a0(0x176)],'configName':_0x1cd0cc[_0x9ee4a0(0x162)],'channelType':_0x1cd0cc[_0x9ee4a0(0x16e)],'endpointUrl':_0x1cd0cc[_0x9ee4a0(0x168)],'channelConfig':_0x1cd0cc['channelConfig'],'description':_0x1cd0cc['description'],'connectTimeout':_0x1cd0cc[_0x9ee4a0(0x171)]??DEFAULT_NOTIFICATION_CONNECT_TIMEOUT,'readTimeout':_0x1cd0cc['readTimeout']??DEFAULT_NOTIFICATION_READ_TIMEOUT})};}export const notificationConfigCreate={'service':a192_0x23765b(0x167),'command':a192_0x23765b(0x160),'description':a192_0x23765b(0x170),'risk':a192_0x23765b(0x15d),'requiresAppCode':!![],'structuredErrors':!![],'flags':[...NOTIFICATION_INPUT_FLAGS,NOTIFICATION_APP_FLAG],async 'validate'(_0x359319){assertSingleNotificationSource(_0x359319);},async 'dryRun'(_0x3e6b97){const _0xcd3226=a192_0x23765b,_0x4e8af8=await prepareCreate(_0x3e6b97),_0x3d1f8d=notificationLookupCommand(_0x3e6b97[_0xcd3226(0x176)],_0x4e8af8['document']['channelType']);return asDryRunResult({'operation':_0xcd3226(0x169),'selector':{'appCode':_0x3e6b97['appCode'],'configName':_0x4e8af8['document'][_0xcd3226(0x162)],'channelType':_0x4e8af8[_0xcd3226(0x15b)][_0xcd3226(0x16e)]},'before':null,'after':_0x4e8af8[_0xcd3226(0x175)],'dryRun':!![],'backend':{'method':_0xcd3226(0x16b),'path':CREATE_PATH},'warnings':[],'verification':{'status':_0xcd3226(0x175),'lookupCommand':_0x3d1f8d}},{'method':'POST','url':CREATE_PATH});},async 'execute'(_0x543334){const _0x2159a1=a192_0x23765b,_0x4bfa1d=await prepareCreate(_0x543334),_0x1c41f4=notificationLookupCommand(_0x543334[_0x2159a1(0x176)],_0x4bfa1d[_0x2159a1(0x15b)][_0x2159a1(0x16e)]);let _0x417e96;try{_0x417e96=await createNotificationChannelConfig(_0x4bfa1d[_0x2159a1(0x174)]);}catch(_0x3226ab){if(isPlatformTransportFailure(_0x3226ab))throw notificationError(_0x2159a1(0x15a),_0x2159a1(0x178),_0x2159a1(0x173)+_0x1c41f4+';\x20do\x20not\x20resubmit.');throw safeApiFailure(_0x2159a1(0x169),_0x2159a1(0x16d),_0x2159a1(0x173)+_0x1c41f4+_0x2159a1(0x15f));}if(!Number['isSafeInteger'](_0x417e96)||_0x417e96<=0x0)throw notificationError(_0x2159a1(0x15a),'Notification\x20config\x20create\x20returned\x20no\x20usable\x20server\x20ID.','Inspect\x20with\x20'+_0x1c41f4+_0x2159a1(0x15c));let _0x1a7c89;try{const _0x2f9ed6=await getNotificationChannelConfig(_0x417e96,_0x543334[_0x2159a1(0x176)]);_0x1a7c89=normalizeExactNotificationConfig(_0x2f9ed6,_0x417e96,_0x543334[_0x2159a1(0x176)]);}catch{throw safeApiFailure(_0x2159a1(0x169),_0x2159a1(0x17a),'Inspect\x20with\x20'+_0x1c41f4+_0x2159a1(0x164));}return{'ok':!![],'data':{'operation':_0x2159a1(0x169),'selector':{'appCode':_0x1a7c89[_0x2159a1(0x176)],'id':_0x1a7c89['id'],'configCode':_0x1a7c89['configCode'],'configName':_0x1a7c89[_0x2159a1(0x162)],'channelType':_0x1a7c89[_0x2159a1(0x16e)]},'before':null,'after':projectNotificationConfig(_0x1a7c89),'dryRun':![],'backend':{'method':'POST','path':CREATE_PATH},'warnings':[],'verification':{'status':_0x2159a1(0x161),'lookupCommand':_0x1c41f4}},'message':_0x2159a1(0x159)+_0x1a7c89['id']};}};function a192_0x29f7(_0x29505d,_0x3630d1){_0x29505d=_0x29505d-0x159;const _0x421af5=a192_0x421a();let _0x29f72f=_0x421af5[_0x29505d];return _0x29f72f;}function a192_0x421a(){const _0x97c148=['config-create','verified','configName','1854167exqPnA',';\x20do\x20not\x20resubmit\x20automatically.','567441lXPkKV','422500BdmJRY','notification','endpointUrl','create','171489VEQSuL','POST','16zPqeil','mutation','channelType','/notification/channel-config/create','Create\x20an\x20app-level\x20notification\x20config\x20from\x20a\x20secure\x20JSON\x20source','connectTimeout','8vqWCCW','Inspect\x20with\x20','input','planned','appCode','49795OUVVbk','Notification\x20config\x20create\x20outcome\x20is\x20unknown\x20because\x20no\x20server\x20ID\x20was\x20received.','39494CmofvG','verification','30ndzYLb','Created\x20notification\x20config\x20','notification_config_create_outcome_unknown','document',';\x20do\x20not\x20resubmit.','write','6274070FGTxEB',';\x20no\x20automatic\x20retry\x20was\x20attempted.'];a192_0x421a=function(){return _0x97c148;};return a192_0x421a();}
@@ -1 +1 @@
1
- const a193_0x2728c3=a193_0x496a;(function(_0x1d6b85,_0x2e8638){const _0x2214bb=a193_0x496a,_0x5229ea=_0x1d6b85();while(!![]){try{const _0x13885c=parseInt(_0x2214bb(0x12a))/0x1+parseInt(_0x2214bb(0x12e))/0x2+-parseInt(_0x2214bb(0x123))/0x3+-parseInt(_0x2214bb(0x133))/0x4*(parseInt(_0x2214bb(0x122))/0x5)+-parseInt(_0x2214bb(0x120))/0x6+-parseInt(_0x2214bb(0x12f))/0x7*(-parseInt(_0x2214bb(0x117))/0x8)+parseInt(_0x2214bb(0x12b))/0x9;if(_0x13885c===_0x2e8638)break;else _0x5229ea['push'](_0x5229ea['shift']());}catch(_0x3abe7c){_0x5229ea['push'](_0x5229ea['shift']());}}}(a193_0x504c,0xd9aca));import{asDryRunResult}from'../../commands/common/dry-run.js';function a193_0x496a(_0x5bdb53,_0x5948aa){_0x5bdb53=_0x5bdb53-0x117;const _0x504c2d=a193_0x504c();let _0x496ac5=_0x504c2d[_0x5bdb53];return _0x496ac5;}import{deleteNotificationChannelConfig,isPlatformTransportFailure,listNotificationChannelConfigs}from'../../core/api-client.js';import{notificationError,notificationLookupCommand,notificationSelector,NOTIFICATION_APP_FLAG,NOTIFICATION_ID_FLAG,projectNotificationConfig,readNotificationId,requireNotificationExplicitYes,requireExactNotificationConfig,safeApiFailure,validateNotificationDeleteReadback}from'../../commands/notification/shared.js';const DELETE_PATH=a193_0x2728c3(0x119),REFERENCE_WARNING=a193_0x2728c3(0x131);async function prepareDelete(_0xdc260e){const _0x302d39=a193_0x2728c3,_0x3a39d5=readNotificationId(_0xdc260e),_0x524bb2=await requireExactNotificationConfig(_0xdc260e[_0x302d39(0x11e)],_0x3a39d5,_0x302d39(0x135));return{'id':_0x3a39d5,'before':_0x524bb2};}function a193_0x504c(){const _0x59fd77=['channelType','32Ikytrj',';\x20no\x20automatic\x20retry\x20was\x20attempted.','delete','high-risk-write','8yWWQyT','\x20remains\x20present\x20after\x20delete.','/notification/channel-config/delete','planned','config-delete',';\x20do\x20not\x20resubmit\x20automatically.','mutation','appCode','Notification\x20config\x20','746490lFcCCu','POST','269305UGljBW','5055783CtJUHV','Inspect\x20with\x20','Delete\x20response\x20was\x20unavailable;\x20list\x20readback\x20proved\x20ID\x20absence\x20without\x20resubmitting.','Delete\x20an\x20app-level\x20notification\x20config\x20after\x20exact\x20preflight','notification_config_delete_verification_failed','notification','verified','655230eCKaTf','9931617okCIyi','\x20delete\x20could\x20not\x20be\x20verified.','before','632432choPup','7400393QMQOWe','unshift','Deleting\x20this\x20app-level\x20config\x20may\x20make\x20dataset-level\x20channels\x20that\x20reference\x20it\x20unavailable;\x20dataset\x20references\x20were\x20not\x20verified\x20by\x20the\x20CLI.'];a193_0x504c=function(){return _0x59fd77;};return a193_0x504c();}export const notificationConfigDelete={'service':a193_0x2728c3(0x128),'command':a193_0x2728c3(0x11b),'description':a193_0x2728c3(0x126),'risk':a193_0x2728c3(0x136),'requiresAppCode':!![],'structuredErrors':!![],'flags':[NOTIFICATION_ID_FLAG,NOTIFICATION_APP_FLAG],async 'validate'(_0x4028a0){readNotificationId(_0x4028a0),requireNotificationExplicitYes(_0x4028a0);},async 'dryRun'(_0x2c34d6){const _0x533dc3=a193_0x2728c3,_0x197797=await prepareDelete(_0x2c34d6),_0x3e69ae=notificationLookupCommand(_0x2c34d6[_0x533dc3(0x11e)],_0x197797[_0x533dc3(0x12d)]['channelType']);return asDryRunResult({'operation':'delete','selector':notificationSelector(_0x197797[_0x533dc3(0x12d)]),'before':projectNotificationConfig(_0x197797['before']),'after':null,'dryRun':!![],'backend':{'method':_0x533dc3(0x121),'path':DELETE_PATH},'warnings':[REFERENCE_WARNING],'verification':{'status':_0x533dc3(0x11a),'lookupCommand':_0x3e69ae}},{'method':_0x533dc3(0x121),'url':DELETE_PATH});},async 'execute'(_0x2a7f21){const _0x208298=a193_0x2728c3;requireNotificationExplicitYes(_0x2a7f21);const _0x38fc65=await prepareDelete(_0x2a7f21),_0x24f410=notificationLookupCommand(_0x2a7f21[_0x208298(0x11e)],_0x38fc65['before']['channelType']);let _0x4a77b3=![];try{await deleteNotificationChannelConfig(_0x38fc65['id'],_0x2a7f21[_0x208298(0x11e)]);}catch(_0x2f5886){if(!isPlatformTransportFailure(_0x2f5886))throw safeApiFailure(_0x208298(0x135),_0x208298(0x11d),_0x208298(0x124)+_0x24f410+_0x208298(0x134));_0x4a77b3=!![];}let _0x531210;try{_0x531210=await listNotificationChannelConfigs(_0x2a7f21[_0x208298(0x11e)],_0x38fc65[_0x208298(0x12d)][_0x208298(0x132)]),validateNotificationDeleteReadback(_0x531210,_0x2a7f21[_0x208298(0x11e)],_0x38fc65[_0x208298(0x12d)][_0x208298(0x132)]);}catch{throw notificationError(_0x4a77b3?'notification_config_delete_outcome_unknown':'notification_config_delete_verification_unavailable','Notification\x20config\x20'+_0x38fc65['id']+_0x208298(0x12c),'Inspect\x20with\x20'+_0x24f410+_0x208298(0x11c));}if(_0x531210['some'](_0x5ad970=>_0x5ad970['id']===_0x38fc65['id']))throw notificationError(_0x4a77b3?'notification_config_delete_outcome_unknown':_0x208298(0x127),_0x208298(0x11f)+_0x38fc65['id']+_0x208298(0x118),_0x208298(0x124)+_0x24f410+_0x208298(0x11c));const _0x2ae6b1=[REFERENCE_WARNING];return _0x4a77b3&&_0x2ae6b1[_0x208298(0x130)](_0x208298(0x125)),{'ok':!![],'data':{'operation':_0x208298(0x135),'selector':notificationSelector(_0x38fc65[_0x208298(0x12d)]),'before':projectNotificationConfig(_0x38fc65[_0x208298(0x12d)]),'after':null,'dryRun':![],'backend':{'method':_0x208298(0x121),'path':DELETE_PATH},'warnings':_0x2ae6b1,'verification':{'status':_0x208298(0x129),'absenceConfirmed':!![],'recoveredAfterUnknownResponse':_0x4a77b3,'lookupCommand':_0x24f410}},'message':'Deleted\x20notification\x20config\x20'+_0x38fc65['id']};}};
1
+ const a193_0x1de247=a193_0x387f;(function(_0x474e7f,_0x4db15a){const _0x4f01de=a193_0x387f,_0xba42eb=_0x474e7f();while(!![]){try{const _0x495040=parseInt(_0x4f01de(0xc7))/0x1*(-parseInt(_0x4f01de(0xd2))/0x2)+parseInt(_0x4f01de(0xc8))/0x3*(-parseInt(_0x4f01de(0xd8))/0x4)+parseInt(_0x4f01de(0xdd))/0x5*(-parseInt(_0x4f01de(0xca))/0x6)+-parseInt(_0x4f01de(0xd6))/0x7+-parseInt(_0x4f01de(0xcc))/0x8+parseInt(_0x4f01de(0xc3))/0x9*(-parseInt(_0x4f01de(0xc1))/0xa)+-parseInt(_0x4f01de(0xda))/0xb*(-parseInt(_0x4f01de(0xd5))/0xc);if(_0x495040===_0x4db15a)break;else _0xba42eb['push'](_0xba42eb['shift']());}catch(_0x11aa26){_0xba42eb['push'](_0xba42eb['shift']());}}}(a193_0x3b5c,0x2f7df));import{asDryRunResult}from'../../commands/common/dry-run.js';import{deleteNotificationChannelConfig,isPlatformTransportFailure,listNotificationChannelConfigs}from'../../core/api-client.js';function a193_0x3b5c(){const _0x3ad2fd=['mutation','unshift','313998juUvpN','channelType',';\x20no\x20automatic\x20retry\x20was\x20attempted.','4428UpbpTL','2582223EEOCdS','appCode','8732AFeSoa','high-risk-write','46431zWVQQd','\x20delete\x20could\x20not\x20be\x20verified.','Delete\x20an\x20app-level\x20notification\x20config\x20after\x20exact\x20preflight','7505ATiWzc','notification_config_delete_outcome_unknown','Notification\x20config\x20','/notification/channel-config/delete','planned','some','config-delete','notification','10avcITu','verified','686133NRrPzv','POST',';\x20do\x20not\x20resubmit\x20automatically.','delete','1wKgrET','381YxaqGc','Inspect\x20with\x20','996FwbqbF','\x20remains\x20present\x20after\x20delete.','1875920ndeTQZ','notification_config_delete_verification_unavailable','before','Delete\x20response\x20was\x20unavailable;\x20list\x20readback\x20proved\x20ID\x20absence\x20without\x20resubmitting.'];a193_0x3b5c=function(){return _0x3ad2fd;};return a193_0x3b5c();}import{notificationError,notificationLookupCommand,notificationSelector,NOTIFICATION_APP_FLAG,NOTIFICATION_ID_FLAG,projectNotificationConfig,readNotificationId,requireNotificationExplicitYes,requireExactNotificationConfig,safeApiFailure,validateNotificationDeleteReadback}from'../../commands/notification/shared.js';const DELETE_PATH=a193_0x1de247(0xe0),REFERENCE_WARNING='Deleting\x20this\x20app-level\x20config\x20may\x20make\x20dataset-level\x20channels\x20that\x20reference\x20it\x20unavailable;\x20dataset\x20references\x20were\x20not\x20verified\x20by\x20the\x20CLI.';async function prepareDelete(_0x1a97b5){const _0x4a6ead=a193_0x1de247,_0xfea6cd=readNotificationId(_0x1a97b5),_0x34311a=await requireExactNotificationConfig(_0x1a97b5[_0x4a6ead(0xd7)],_0xfea6cd,_0x4a6ead(0xc6));return{'id':_0xfea6cd,'before':_0x34311a};}function a193_0x387f(_0x4650a0,_0x243cdb){_0x4650a0=_0x4650a0-0xbf;const _0x3b5c52=a193_0x3b5c();let _0x387fa7=_0x3b5c52[_0x4650a0];return _0x387fa7;}export const notificationConfigDelete={'service':a193_0x1de247(0xc0),'command':a193_0x1de247(0xbf),'description':a193_0x1de247(0xdc),'risk':a193_0x1de247(0xd9),'requiresAppCode':!![],'structuredErrors':!![],'flags':[NOTIFICATION_ID_FLAG,NOTIFICATION_APP_FLAG],async 'validate'(_0x10d214){readNotificationId(_0x10d214),requireNotificationExplicitYes(_0x10d214);},async 'dryRun'(_0x11fa61){const _0x36c49d=a193_0x1de247,_0x546f6b=await prepareDelete(_0x11fa61),_0x413336=notificationLookupCommand(_0x11fa61[_0x36c49d(0xd7)],_0x546f6b['before'][_0x36c49d(0xd3)]);return asDryRunResult({'operation':'delete','selector':notificationSelector(_0x546f6b[_0x36c49d(0xce)]),'before':projectNotificationConfig(_0x546f6b[_0x36c49d(0xce)]),'after':null,'dryRun':!![],'backend':{'method':_0x36c49d(0xc4),'path':DELETE_PATH},'warnings':[REFERENCE_WARNING],'verification':{'status':_0x36c49d(0xe1),'lookupCommand':_0x413336}},{'method':_0x36c49d(0xc4),'url':DELETE_PATH});},async 'execute'(_0x19dc9a){const _0x501d60=a193_0x1de247;requireNotificationExplicitYes(_0x19dc9a);const _0x5f3c6c=await prepareDelete(_0x19dc9a),_0x44c34f=notificationLookupCommand(_0x19dc9a[_0x501d60(0xd7)],_0x5f3c6c[_0x501d60(0xce)][_0x501d60(0xd3)]);let _0x3d90d5=![];try{await deleteNotificationChannelConfig(_0x5f3c6c['id'],_0x19dc9a[_0x501d60(0xd7)]);}catch(_0x2f418f){if(!isPlatformTransportFailure(_0x2f418f))throw safeApiFailure(_0x501d60(0xc6),_0x501d60(0xd0),'Inspect\x20with\x20'+_0x44c34f+_0x501d60(0xd4));_0x3d90d5=!![];}let _0x2b0d42;try{_0x2b0d42=await listNotificationChannelConfigs(_0x19dc9a['appCode'],_0x5f3c6c[_0x501d60(0xce)][_0x501d60(0xd3)]),validateNotificationDeleteReadback(_0x2b0d42,_0x19dc9a[_0x501d60(0xd7)],_0x5f3c6c[_0x501d60(0xce)][_0x501d60(0xd3)]);}catch{throw notificationError(_0x3d90d5?_0x501d60(0xde):_0x501d60(0xcd),_0x501d60(0xdf)+_0x5f3c6c['id']+_0x501d60(0xdb),_0x501d60(0xc9)+_0x44c34f+_0x501d60(0xc5));}if(_0x2b0d42[_0x501d60(0xe2)](_0x5e9b81=>_0x5e9b81['id']===_0x5f3c6c['id']))throw notificationError(_0x3d90d5?'notification_config_delete_outcome_unknown':'notification_config_delete_verification_failed',_0x501d60(0xdf)+_0x5f3c6c['id']+_0x501d60(0xcb),_0x501d60(0xc9)+_0x44c34f+_0x501d60(0xc5));const _0x4185bf=[REFERENCE_WARNING];return _0x3d90d5&&_0x4185bf[_0x501d60(0xd1)](_0x501d60(0xcf)),{'ok':!![],'data':{'operation':_0x501d60(0xc6),'selector':notificationSelector(_0x5f3c6c[_0x501d60(0xce)]),'before':projectNotificationConfig(_0x5f3c6c[_0x501d60(0xce)]),'after':null,'dryRun':![],'backend':{'method':'POST','path':DELETE_PATH},'warnings':_0x4185bf,'verification':{'status':_0x501d60(0xc2),'absenceConfirmed':!![],'recoveredAfterUnknownResponse':_0x3d90d5,'lookupCommand':_0x44c34f}},'message':'Deleted\x20notification\x20config\x20'+_0x5f3c6c['id']};}};
@@ -1 +1 @@
1
- const a194_0x2a47c1=a194_0x5f66;function a194_0x5f66(_0x294cd5,_0x286e7){_0x294cd5=_0x294cd5-0x135;const _0x21db8e=a194_0x21db();let _0x5f666c=_0x21db8e[_0x294cd5];return _0x5f666c;}(function(_0x1e5861,_0x509e45){const _0x100d84=a194_0x5f66,_0x59b580=_0x1e5861();while(!![]){try{const _0x1b7dd7=parseInt(_0x100d84(0x142))/0x1+-parseInt(_0x100d84(0x148))/0x2+-parseInt(_0x100d84(0x13e))/0x3+-parseInt(_0x100d84(0x138))/0x4*(-parseInt(_0x100d84(0x14f))/0x5)+parseInt(_0x100d84(0x151))/0x6*(-parseInt(_0x100d84(0x14c))/0x7)+-parseInt(_0x100d84(0x147))/0x8*(-parseInt(_0x100d84(0x13b))/0x9)+parseInt(_0x100d84(0x14b))/0xa;if(_0x1b7dd7===_0x509e45)break;else _0x59b580['push'](_0x59b580['shift']());}catch(_0x36b1a6){_0x59b580['push'](_0x59b580['shift']());}}}(a194_0x21db,0x5d651));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{listNotificationChannelConfigs}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a194_0x21db(){const _0x36c78f=['Found\x20','boolean','all','531915LrfYdt','read','List\x20app-level\x20notification\x20configs\x20and\x20their\x20configCode\x20values','type','appCode','8FekqWp','1254360hQzReA','Use\x20--all,\x20or\x20query\x20one\x20explicit\x20--type.','string','2186850ZexaAm','389137DLBmSc','\x20notification\x20config(s)','flat','606835PwuMxo','config-list','6fAzWXG','--all\x20and\x20--type\x20are\x20mutually\x20exclusive.','notification','bool','validation','8aivGpp','Notification\x20channel\x20type','length','4506534NkfvUN','List\x20configs\x20for\x20every\x20supported\x20notification\x20channel\x20type','map','1286232tHFBDa'];a194_0x21db=function(){return _0x36c78f;};return a194_0x21db();}import{NOTIFICATION_CHANNEL_TYPES,projectNotificationListConfig,readNotificationChannelType}from'../../commands/notification/shared.js';export const notificationConfigList={'service':a194_0x2a47c1(0x135),'command':a194_0x2a47c1(0x150),'description':a194_0x2a47c1(0x144),'risk':a194_0x2a47c1(0x143),'flags':[APPCODE_FLAG_OPTIONAL,{'name':'type','type':a194_0x2a47c1(0x14a),'description':a194_0x2a47c1(0x139),'enum':NOTIFICATION_CHANNEL_TYPES},{'name':a194_0x2a47c1(0x141),'type':a194_0x2a47c1(0x140),'default':![],'description':a194_0x2a47c1(0x13c)}],async 'validate'(_0x53e20e){const _0x420bc3=a194_0x2a47c1;if(_0x53e20e[_0x420bc3(0x136)](_0x420bc3(0x141))&&_0x53e20e['str'](_0x420bc3(0x145))['trim']())throw CliErrors[_0x420bc3(0x137)](_0x420bc3(0x152),_0x420bc3(0x149));if(_0x53e20e['bool']('all'))return;readNotificationChannelType(_0x53e20e);},async 'execute'(_0x3b308e){const _0x1e903e=a194_0x2a47c1;if(_0x3b308e[_0x1e903e(0x136)](_0x1e903e(0x141))){const _0x434850=await Promise['all'](NOTIFICATION_CHANNEL_TYPES[_0x1e903e(0x13d)](_0x559dd7=>listNotificationChannelConfigs(_0x3b308e[_0x1e903e(0x146)],_0x559dd7))),_0x46b3e2=_0x434850[_0x1e903e(0x14e)]()['map'](projectNotificationListConfig);return{'ok':!![],'data':{'appCode':_0x3b308e[_0x1e903e(0x146)],'channelTypes':NOTIFICATION_CHANNEL_TYPES,'count':_0x46b3e2[_0x1e903e(0x13a)],'configs':_0x46b3e2},'message':_0x1e903e(0x13f)+_0x46b3e2[_0x1e903e(0x13a)]+'\x20notification\x20config(s)\x20across\x20all\x20channel\x20types'};}const _0x465a74=readNotificationChannelType(_0x3b308e),_0x94726a=await listNotificationChannelConfigs(_0x3b308e[_0x1e903e(0x146)],_0x465a74),_0x31f767=_0x94726a[_0x1e903e(0x13d)](projectNotificationListConfig);return{'ok':!![],'data':{'appCode':_0x3b308e['appCode'],'channelType':_0x465a74,'count':_0x31f767['length'],'configs':_0x31f767},'message':'Found\x20'+_0x31f767[_0x1e903e(0x13a)]+'\x20'+_0x465a74+_0x1e903e(0x14d)};}};
1
+ const a194_0x2665d8=a194_0x49a3;function a194_0x49a3(_0x342abf,_0x72b832){_0x342abf=_0x342abf-0x165;const _0x2fce47=a194_0x2fce();let _0x49a384=_0x2fce47[_0x342abf];return _0x49a384;}(function(_0x1b2f01,_0x295665){const _0x349b66=a194_0x49a3,_0x1acbca=_0x1b2f01();while(!![]){try{const _0x3f65e7=parseInt(_0x349b66(0x178))/0x1*(parseInt(_0x349b66(0x17c))/0x2)+parseInt(_0x349b66(0x17a))/0x3*(-parseInt(_0x349b66(0x16a))/0x4)+parseInt(_0x349b66(0x16b))/0x5*(-parseInt(_0x349b66(0x17e))/0x6)+parseInt(_0x349b66(0x168))/0x7+parseInt(_0x349b66(0x16c))/0x8*(-parseInt(_0x349b66(0x177))/0x9)+-parseInt(_0x349b66(0x167))/0xa+parseInt(_0x349b66(0x170))/0xb;if(_0x3f65e7===_0x295665)break;else _0x1acbca['push'](_0x1acbca['shift']());}catch(_0x2d11f8){_0x1acbca['push'](_0x1acbca['shift']());}}}(a194_0x2fce,0x9dd6e));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{listNotificationChannelConfigs}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a194_0x2fce(){const _0x18a9e2=['trim','all','--all\x20and\x20--type\x20are\x20mutually\x20exclusive.','appCode','length','bool','477boifSn','7KRxZfr','\x20notification\x20config(s)\x20across\x20all\x20channel\x20types','9pCksKF','\x20notification\x20config(s)','185066HrIfoC','List\x20configs\x20for\x20every\x20supported\x20notification\x20channel\x20type','17526WzluKk','Found\x20','map','List\x20app-level\x20notification\x20configs\x20and\x20their\x20configCode\x20values','4809720CMlBKe','6166181kevaNN','type','1020716AuizzH','5ptDdMy','99832WAhKgP','Notification\x20channel\x20type','boolean','Use\x20--all,\x20or\x20query\x20one\x20explicit\x20--type.','11315843CoMhVB'];a194_0x2fce=function(){return _0x18a9e2;};return a194_0x2fce();}import{NOTIFICATION_CHANNEL_TYPES,projectNotificationListConfig,readNotificationChannelType}from'../../commands/notification/shared.js';export const notificationConfigList={'service':'notification','command':'config-list','description':a194_0x2665d8(0x166),'risk':'read','flags':[APPCODE_FLAG_OPTIONAL,{'name':a194_0x2665d8(0x169),'type':'string','description':a194_0x2665d8(0x16d),'enum':NOTIFICATION_CHANNEL_TYPES},{'name':a194_0x2665d8(0x172),'type':a194_0x2665d8(0x16e),'default':![],'description':a194_0x2665d8(0x17d)}],async 'validate'(_0x5e318f){const _0x331ac4=a194_0x2665d8;if(_0x5e318f['bool'](_0x331ac4(0x172))&&_0x5e318f['str'](_0x331ac4(0x169))[_0x331ac4(0x171)]())throw CliErrors['validation'](_0x331ac4(0x173),_0x331ac4(0x16f));if(_0x5e318f[_0x331ac4(0x176)](_0x331ac4(0x172)))return;readNotificationChannelType(_0x5e318f);},async 'execute'(_0x5f5252){const _0x507cfa=a194_0x2665d8;if(_0x5f5252[_0x507cfa(0x176)](_0x507cfa(0x172))){const _0x5e26fb=await Promise[_0x507cfa(0x172)](NOTIFICATION_CHANNEL_TYPES[_0x507cfa(0x165)](_0x409708=>listNotificationChannelConfigs(_0x5f5252[_0x507cfa(0x174)],_0x409708))),_0x345544=_0x5e26fb['flat']()[_0x507cfa(0x165)](projectNotificationListConfig);return{'ok':!![],'data':{'appCode':_0x5f5252[_0x507cfa(0x174)],'channelTypes':NOTIFICATION_CHANNEL_TYPES,'count':_0x345544[_0x507cfa(0x175)],'configs':_0x345544},'message':'Found\x20'+_0x345544[_0x507cfa(0x175)]+_0x507cfa(0x179)};}const _0xfecf2a=readNotificationChannelType(_0x5f5252),_0x1ee54b=await listNotificationChannelConfigs(_0x5f5252['appCode'],_0xfecf2a),_0x3d0d5c=_0x1ee54b[_0x507cfa(0x165)](projectNotificationListConfig);return{'ok':!![],'data':{'appCode':_0x5f5252[_0x507cfa(0x174)],'channelType':_0xfecf2a,'count':_0x3d0d5c[_0x507cfa(0x175)],'configs':_0x3d0d5c},'message':_0x507cfa(0x17f)+_0x3d0d5c[_0x507cfa(0x175)]+'\x20'+_0xfecf2a+_0x507cfa(0x17b)};}};
@@ -1 +1 @@
1
- function a195_0x4e94(){const _0x99d8df=['\x20via\x20','notification_config_update_verification_failed','patch','/notification/channel-config/update','notification_config_update_verification_unavailable','5074GfqeYY','update','provesChange','Updated\x20notification\x20config\x20','491498duFStk','2032KUgJEK','POST','config-update','58qjGBxz','15592QNajmm','planned','Update\x20an\x20app-level\x20notification\x20config\x20from\x20a\x20secure\x20JSON\x20patch','20bObdhL','4311pwDmrS','payload','\x20update\x20could\x20not\x20be\x20verified\x20by\x20exact\x20ID.','591060XIvlPX',';\x20do\x20not\x20resubmit\x20automatically.','notification_config_update_outcome_unknown','Notification\x20config\x20','Inspect\x20ID\x20','verifiedFields','457752TzmdVF','before','channelType','Inspect\x20with\x20--id\x20','511423uOEQCd','115fsLIfI','allMatch','Update\x20response\x20was\x20unavailable;\x20exact-ID\x20readback\x20proved\x20changed\x20safe\x20fields\x20without\x20resubmitting.','mutation','appCode',';\x20no\x20automatic\x20retry\x20was\x20attempted.'];a195_0x4e94=function(){return _0x99d8df;};return a195_0x4e94();}const a195_0x23add6=a195_0x16e6;(function(_0x18930b,_0x5926e3){const _0x3c955e=a195_0x16e6,_0x389a16=_0x18930b();while(!![]){try{const _0x109974=-parseInt(_0x3c955e(0x7e))/0x1*(parseInt(_0x3c955e(0x9c))/0x2)+parseInt(_0x3c955e(0x8c))/0x3+parseInt(_0x3c955e(0x7f))/0x4*(-parseInt(_0x3c955e(0x91))/0x5)+-parseInt(_0x3c955e(0x86))/0x6+parseInt(_0x3c955e(0xa0))/0x7+parseInt(_0x3c955e(0xa1))/0x8*(parseInt(_0x3c955e(0x83))/0x9)+parseInt(_0x3c955e(0x82))/0xa*(parseInt(_0x3c955e(0x90))/0xb);if(_0x109974===_0x5926e3)break;else _0x389a16['push'](_0x389a16['shift']());}catch(_0x13e307){_0x389a16['push'](_0x389a16['shift']());}}}(a195_0x4e94,0x18efc));import{asDryRunResult}from'../../commands/common/dry-run.js';import{getNotificationChannelConfig,isPlatformTransportFailure,updateNotificationChannelConfig}from'../../core/api-client.js';import{assertSingleNotificationSource,mergeUpdateInput,normalizeExactNotificationConfig,notificationError,notificationLookupCommand,notificationSelector,NOTIFICATION_APP_FLAG,NOTIFICATION_ID_FLAG,NOTIFICATION_INPUT_FLAGS,plannedUpdateProjection,projectNotificationConfig,readNotificationDocument,readNotificationId,requestedSafeFieldsMatch,requireNotificationExplicitYes,requireExactNotificationConfig,safeApiFailure}from'../../commands/notification/shared.js';function a195_0x16e6(_0x450a88,_0x127f4a){_0x450a88=_0x450a88-0x7c;const _0x4e940d=a195_0x4e94();let _0x16e6f5=_0x4e940d[_0x450a88];return _0x16e6f5;}const UPDATE_PATH=a195_0x23add6(0x9a);async function prepareUpdate(_0x4cd3d9){const _0x3dc33d=readNotificationId(_0x4cd3d9),_0x42bbac=await readNotificationDocument(_0x4cd3d9,'update'),_0x4fcb6b=await requireExactNotificationConfig(_0x4cd3d9['appCode'],_0x3dc33d,'update');return{'id':_0x3dc33d,'patch':_0x42bbac,'before':_0x4fcb6b,'payload':mergeUpdateInput(_0x4fcb6b,_0x42bbac),'planned':plannedUpdateProjection(_0x4fcb6b,_0x42bbac)};}export const notificationConfigUpdate={'service':'notification','command':a195_0x23add6(0x7d),'description':a195_0x23add6(0x81),'risk':'high-risk-write','requiresAppCode':!![],'structuredErrors':!![],'flags':[NOTIFICATION_ID_FLAG,...NOTIFICATION_INPUT_FLAGS,NOTIFICATION_APP_FLAG],async 'validate'(_0xe4285c){readNotificationId(_0xe4285c),assertSingleNotificationSource(_0xe4285c),requireNotificationExplicitYes(_0xe4285c);},async 'dryRun'(_0x8b8c09){const _0x99df6e=a195_0x23add6,_0x515c16=await prepareUpdate(_0x8b8c09),_0x4f83b6=notificationLookupCommand(_0x8b8c09[_0x99df6e(0x95)],_0x515c16[_0x99df6e(0x8d)]['channelType']);return asDryRunResult({'operation':_0x99df6e(0x9d),'selector':notificationSelector(_0x515c16[_0x99df6e(0x8d)]),'before':projectNotificationConfig(_0x515c16[_0x99df6e(0x8d)]),'after':_0x515c16[_0x99df6e(0x80)],'dryRun':!![],'backend':{'method':'POST','path':UPDATE_PATH},'warnings':[],'verification':{'status':'planned','lookupCommand':_0x4f83b6}},{'method':_0x99df6e(0x7c),'url':UPDATE_PATH});},async 'execute'(_0x3d815d){const _0x48d37b=a195_0x23add6;requireNotificationExplicitYes(_0x3d815d);const _0x53ff58=await prepareUpdate(_0x3d815d),_0x54402e=notificationLookupCommand(_0x3d815d['appCode'],_0x53ff58[_0x48d37b(0x8d)][_0x48d37b(0x8e)]);let _0x195635=![];try{await updateNotificationChannelConfig(_0x53ff58[_0x48d37b(0x84)]);}catch(_0x3b1a9f){if(!isPlatformTransportFailure(_0x3b1a9f))throw safeApiFailure('update',_0x48d37b(0x94),_0x48d37b(0x8a)+_0x53ff58['id']+'\x20with\x20'+_0x54402e+_0x48d37b(0x96));_0x195635=!![];}let _0x36da74;try{const _0x4fb948=await getNotificationChannelConfig(_0x53ff58['id'],_0x3d815d[_0x48d37b(0x95)]);_0x36da74=normalizeExactNotificationConfig(_0x4fb948,_0x53ff58['id'],_0x3d815d[_0x48d37b(0x95)]);}catch{throw notificationError(_0x195635?_0x48d37b(0x88):_0x48d37b(0x9b),_0x48d37b(0x89)+_0x53ff58['id']+_0x48d37b(0x85),_0x48d37b(0x8f)+_0x53ff58['id']+'\x20via\x20'+_0x54402e+_0x48d37b(0x87));}const _0x677d53=requestedSafeFieldsMatch(_0x53ff58[_0x48d37b(0x8d)],_0x36da74,_0x53ff58[_0x48d37b(0x99)]);if(!_0x677d53[_0x48d37b(0x92)]||_0x195635&&!_0x677d53[_0x48d37b(0x9e)])throw notificationError(_0x195635?_0x48d37b(0x88):_0x48d37b(0x98),_0x48d37b(0x89)+_0x53ff58['id']+'\x20readback\x20does\x20not\x20prove\x20the\x20requested\x20update.',_0x48d37b(0x8f)+_0x53ff58['id']+_0x48d37b(0x97)+_0x54402e+_0x48d37b(0x87));const _0x18d1e7=_0x195635?[_0x48d37b(0x93)]:[];return{'ok':!![],'data':{'operation':_0x48d37b(0x9d),'selector':notificationSelector(_0x36da74),'before':projectNotificationConfig(_0x53ff58[_0x48d37b(0x8d)]),'after':projectNotificationConfig(_0x36da74),'dryRun':![],'backend':{'method':_0x48d37b(0x7c),'path':UPDATE_PATH},'warnings':_0x18d1e7,'verification':{'status':'verified','recoveredAfterUnknownResponse':_0x195635,'verifiedFields':_0x677d53[_0x48d37b(0x8b)],'lookupCommand':_0x54402e}},'message':_0x48d37b(0x9f)+_0x36da74['id']};}};
1
+ function a195_0x4f2f(_0x11614c,_0x38ef58){_0x11614c=_0x11614c-0x1d7;const _0x1412cf=a195_0x1412();let _0x4f2fa7=_0x1412cf[_0x11614c];return _0x4f2fa7;}function a195_0x1412(){const _0x466ebb=['18nhqIJx','mutation','238562RbKeQC','\x20via\x20','appCode','5226UpFvQo','Inspect\x20with\x20--id\x20','4243294eynryw',';\x20do\x20not\x20resubmit\x20automatically.','/notification/channel-config/update','payload','POST','Inspect\x20ID\x20','128429yPutyl','verified','Notification\x20config\x20','high-risk-write','planned','2132220MjWypQ','notification_config_update_verification_failed',';\x20no\x20automatic\x20retry\x20was\x20attempted.','notification_config_update_outcome_unknown','before','patch','142327vgKPRE','10pBZfBD','333010UYizNP','verifiedFields','channelType','provesChange','Update\x20an\x20app-level\x20notification\x20config\x20from\x20a\x20secure\x20JSON\x20patch','8CGvyfa','update','notification_config_update_verification_unavailable','allMatch','9kPLRfT','notification','\x20with\x20'];a195_0x1412=function(){return _0x466ebb;};return a195_0x1412();}const a195_0x4d8736=a195_0x4f2f;(function(_0x1561ec,_0x24c254){const _0x7c4fa3=a195_0x4f2f,_0x34f4ea=_0x1561ec();while(!![]){try{const _0x199ed5=-parseInt(_0x7c4fa3(0x1dc))/0x1+-parseInt(_0x7c4fa3(0x1ec))/0x2*(parseInt(_0x7c4fa3(0x1e7))/0x3)+parseInt(_0x7c4fa3(0x1fc))/0x4+-parseInt(_0x7c4fa3(0x1dd))/0x5*(parseInt(_0x7c4fa3(0x1ef))/0x6)+parseInt(_0x7c4fa3(0x1f7))/0x7*(parseInt(_0x7c4fa3(0x1e3))/0x8)+-parseInt(_0x7c4fa3(0x1ea))/0x9*(parseInt(_0x7c4fa3(0x1de))/0xa)+parseInt(_0x7c4fa3(0x1f1))/0xb;if(_0x199ed5===_0x24c254)break;else _0x34f4ea['push'](_0x34f4ea['shift']());}catch(_0x1960a4){_0x34f4ea['push'](_0x34f4ea['shift']());}}}(a195_0x1412,0x5a002));import{asDryRunResult}from'../../commands/common/dry-run.js';import{getNotificationChannelConfig,isPlatformTransportFailure,updateNotificationChannelConfig}from'../../core/api-client.js';import{assertSingleNotificationSource,mergeUpdateInput,normalizeExactNotificationConfig,notificationError,notificationLookupCommand,notificationSelector,NOTIFICATION_APP_FLAG,NOTIFICATION_ID_FLAG,NOTIFICATION_INPUT_FLAGS,plannedUpdateProjection,projectNotificationConfig,readNotificationDocument,readNotificationId,requestedSafeFieldsMatch,requireNotificationExplicitYes,requireExactNotificationConfig,safeApiFailure}from'../../commands/notification/shared.js';const UPDATE_PATH=a195_0x4d8736(0x1f3);async function prepareUpdate(_0x27c91e){const _0x538bd0=a195_0x4d8736,_0x19656e=readNotificationId(_0x27c91e),_0x5cb3fd=await readNotificationDocument(_0x27c91e,_0x538bd0(0x1e4)),_0xc7f24=await requireExactNotificationConfig(_0x27c91e['appCode'],_0x19656e,_0x538bd0(0x1e4));return{'id':_0x19656e,'patch':_0x5cb3fd,'before':_0xc7f24,'payload':mergeUpdateInput(_0xc7f24,_0x5cb3fd),'planned':plannedUpdateProjection(_0xc7f24,_0x5cb3fd)};}export const notificationConfigUpdate={'service':a195_0x4d8736(0x1e8),'command':'config-update','description':a195_0x4d8736(0x1e2),'risk':a195_0x4d8736(0x1fa),'requiresAppCode':!![],'structuredErrors':!![],'flags':[NOTIFICATION_ID_FLAG,...NOTIFICATION_INPUT_FLAGS,NOTIFICATION_APP_FLAG],async 'validate'(_0x5a4863){readNotificationId(_0x5a4863),assertSingleNotificationSource(_0x5a4863),requireNotificationExplicitYes(_0x5a4863);},async 'dryRun'(_0x46e8d8){const _0x1993d9=a195_0x4d8736,_0x54905e=await prepareUpdate(_0x46e8d8),_0x8e5c91=notificationLookupCommand(_0x46e8d8['appCode'],_0x54905e[_0x1993d9(0x1da)][_0x1993d9(0x1e0)]);return asDryRunResult({'operation':'update','selector':notificationSelector(_0x54905e[_0x1993d9(0x1da)]),'before':projectNotificationConfig(_0x54905e[_0x1993d9(0x1da)]),'after':_0x54905e['planned'],'dryRun':!![],'backend':{'method':_0x1993d9(0x1f5),'path':UPDATE_PATH},'warnings':[],'verification':{'status':_0x1993d9(0x1fb),'lookupCommand':_0x8e5c91}},{'method':_0x1993d9(0x1f5),'url':UPDATE_PATH});},async 'execute'(_0x47e54c){const _0x137779=a195_0x4d8736;requireNotificationExplicitYes(_0x47e54c);const _0x282dc9=await prepareUpdate(_0x47e54c),_0x58c27e=notificationLookupCommand(_0x47e54c[_0x137779(0x1ee)],_0x282dc9[_0x137779(0x1da)]['channelType']);let _0x40e7a4=![];try{await updateNotificationChannelConfig(_0x282dc9[_0x137779(0x1f4)]);}catch(_0x596205){if(!isPlatformTransportFailure(_0x596205))throw safeApiFailure('update',_0x137779(0x1eb),_0x137779(0x1f6)+_0x282dc9['id']+_0x137779(0x1e9)+_0x58c27e+_0x137779(0x1d8));_0x40e7a4=!![];}let _0x34a920;try{const _0x1a1773=await getNotificationChannelConfig(_0x282dc9['id'],_0x47e54c[_0x137779(0x1ee)]);_0x34a920=normalizeExactNotificationConfig(_0x1a1773,_0x282dc9['id'],_0x47e54c['appCode']);}catch{throw notificationError(_0x40e7a4?_0x137779(0x1d9):_0x137779(0x1e5),_0x137779(0x1f9)+_0x282dc9['id']+'\x20update\x20could\x20not\x20be\x20verified\x20by\x20exact\x20ID.',_0x137779(0x1f0)+_0x282dc9['id']+_0x137779(0x1ed)+_0x58c27e+_0x137779(0x1f2));}const _0x10621d=requestedSafeFieldsMatch(_0x282dc9['before'],_0x34a920,_0x282dc9[_0x137779(0x1db)]);if(!_0x10621d[_0x137779(0x1e6)]||_0x40e7a4&&!_0x10621d[_0x137779(0x1e1)])throw notificationError(_0x40e7a4?_0x137779(0x1d9):_0x137779(0x1d7),_0x137779(0x1f9)+_0x282dc9['id']+'\x20readback\x20does\x20not\x20prove\x20the\x20requested\x20update.',_0x137779(0x1f0)+_0x282dc9['id']+'\x20via\x20'+_0x58c27e+_0x137779(0x1f2));const _0x253737=_0x40e7a4?['Update\x20response\x20was\x20unavailable;\x20exact-ID\x20readback\x20proved\x20changed\x20safe\x20fields\x20without\x20resubmitting.']:[];return{'ok':!![],'data':{'operation':_0x137779(0x1e4),'selector':notificationSelector(_0x34a920),'before':projectNotificationConfig(_0x282dc9[_0x137779(0x1da)]),'after':projectNotificationConfig(_0x34a920),'dryRun':![],'backend':{'method':_0x137779(0x1f5),'path':UPDATE_PATH},'warnings':_0x253737,'verification':{'status':_0x137779(0x1f8),'recoveredAfterUnknownResponse':_0x40e7a4,'verifiedFields':_0x10621d[_0x137779(0x1df)],'lookupCommand':_0x58c27e}},'message':'Updated\x20notification\x20config\x20'+_0x34a920['id']};}};
@@ -1 +1 @@
1
- (function(_0x5a8fca,_0x54421c){const _0x470154=a196_0x2351,_0x485c2a=_0x5a8fca();while(!![]){try{const _0x1f8a58=parseInt(_0x470154(0xea))/0x1+-parseInt(_0x470154(0xeb))/0x2+parseInt(_0x470154(0xe3))/0x3*(parseInt(_0x470154(0xe5))/0x4)+parseInt(_0x470154(0xe8))/0x5+parseInt(_0x470154(0xec))/0x6*(parseInt(_0x470154(0xe9))/0x7)+-parseInt(_0x470154(0xe2))/0x8*(parseInt(_0x470154(0xe4))/0x9)+-parseInt(_0x470154(0xe6))/0xa*(parseInt(_0x470154(0xe7))/0xb);if(_0x1f8a58===_0x54421c)break;else _0x485c2a['push'](_0x485c2a['shift']());}catch(_0x3a6020){_0x485c2a['push'](_0x485c2a['shift']());}}}(a196_0xcbf6,0x25106));import{notificationConfigList}from'../../commands/notification/config-list.js';function a196_0x2351(_0x403a8c,_0x2f94bf){_0x403a8c=_0x403a8c-0xe2;const _0xcbf62d=a196_0xcbf6();let _0x2351fd=_0xcbf62d[_0x403a8c];return _0x2351fd;}import{notificationConfigCreate}from'../../commands/notification/config-create.js';import{notificationConfigUpdate}from'../../commands/notification/config-update.js';import{notificationConfigDelete}from'../../commands/notification/config-delete.js';export const notificationDefinitions=[notificationConfigList,notificationConfigCreate,notificationConfigUpdate,notificationConfigDelete];function a196_0xcbf6(){const _0x14695a=['503096JsmTrw','44325sMgrFU','1119566vCoZUw','21668dKlDQE','225664jMNsxZ','6enRSOO','154288txpBMp','807723ieVZfS','27cHyKEb','4lCxsll','30rDNjgy'];a196_0xcbf6=function(){return _0x14695a;};return a196_0xcbf6();}
1
+ function a196_0x67b1(){const _0x1a18d5=['2515702varPyi','81NKxnQy','8TdCSfg','6tdIiLb','3322737LTANZk','436120vHJkSZ','1958316huzeEK','658366fbDSWQ','1wjcRdE','463108heRcbN','1415LEIsgP','5214CqlQYU'];a196_0x67b1=function(){return _0x1a18d5;};return a196_0x67b1();}(function(_0x4e8c55,_0x4304ba){const _0x2d31d8=a196_0x31db,_0x30e78a=_0x4e8c55();while(!![]){try{const _0x590cd4=parseInt(_0x2d31d8(0x11e))/0x1*(parseInt(_0x2d31d8(0x129))/0x2)+-parseInt(_0x2d31d8(0x125))/0x3*(parseInt(_0x2d31d8(0x11f))/0x4)+parseInt(_0x2d31d8(0x120))/0x5*(parseInt(_0x2d31d8(0x121))/0x6)+parseInt(_0x2d31d8(0x122))/0x7*(-parseInt(_0x2d31d8(0x124))/0x8)+-parseInt(_0x2d31d8(0x123))/0x9*(-parseInt(_0x2d31d8(0x127))/0xa)+-parseInt(_0x2d31d8(0x126))/0xb+parseInt(_0x2d31d8(0x128))/0xc;if(_0x590cd4===_0x4304ba)break;else _0x30e78a['push'](_0x30e78a['shift']());}catch(_0x57103a){_0x30e78a['push'](_0x30e78a['shift']());}}}(a196_0x67b1,0x3a0ec));import{notificationConfigList}from'../../commands/notification/config-list.js';import{notificationConfigCreate}from'../../commands/notification/config-create.js';import{notificationConfigUpdate}from'../../commands/notification/config-update.js';import{notificationConfigDelete}from'../../commands/notification/config-delete.js';function a196_0x31db(_0x45eb76,_0x409ae9){_0x45eb76=_0x45eb76-0x11e;const _0x67b18d=a196_0x67b1();let _0x31dba5=_0x67b18d[_0x45eb76];return _0x31dba5;}export const notificationDefinitions=[notificationConfigList,notificationConfigCreate,notificationConfigUpdate,notificationConfigDelete];