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

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 (376) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/api-group.js +1 -1
  3. package/lib/api/fetch-model-list.js +1 -1
  4. package/lib/api/generate-api-file.js +1 -1
  5. package/lib/api/generate-sdk-config-file.js +1 -1
  6. package/lib/api/legacy-api-file.js +1 -1
  7. package/lib/api/model-registry-file.js +1 -1
  8. package/lib/api/model-registry-scaffold.js +1 -1
  9. package/lib/api/model-source.js +1 -1
  10. package/lib/auth/auth-server-ui.js +1 -1
  11. package/lib/auth/auth-server.js +1 -1
  12. package/lib/auth/constant.js +1 -1
  13. package/lib/auth/get-cookie.js +1 -1
  14. package/lib/auth/get-session-user.js +1 -1
  15. package/lib/auth/is-session-valid.js +1 -1
  16. package/lib/auth/login-success-html.js +1 -1
  17. package/lib/auth/logout.js +1 -1
  18. package/lib/cli-flags.js +1 -1
  19. package/lib/cli.js +1 -1
  20. package/lib/commands/api/generate.js +1 -1
  21. package/lib/commands/api/index.js +1 -1
  22. package/lib/commands/api/list.js +1 -1
  23. package/lib/commands/api/pull.js +1 -1
  24. package/lib/commands/api/shared.js +1 -1
  25. package/lib/commands/app/detail.js +1 -1
  26. package/lib/commands/app/index.js +1 -1
  27. package/lib/commands/app/list.js +1 -1
  28. package/lib/commands/app/members-list.js +1 -1
  29. package/lib/commands/app/remote-directory.js +1 -1
  30. package/lib/commands/app/shared.js +1 -1
  31. package/lib/commands/app-config/delete.js +1 -1
  32. package/lib/commands/app-config/get.js +1 -1
  33. package/lib/commands/app-config/index.js +1 -1
  34. package/lib/commands/app-config/list.js +1 -1
  35. package/lib/commands/app-config/set.js +1 -1
  36. package/lib/commands/app-config/shared.js +1 -1
  37. package/lib/commands/auth/index.js +1 -1
  38. package/lib/commands/bff/create.js +1 -1
  39. package/lib/commands/bff/delete.js +1 -1
  40. package/lib/commands/bff/detail.js +1 -1
  41. package/lib/commands/bff/index.js +1 -1
  42. package/lib/commands/bff/list.js +1 -1
  43. package/lib/commands/bff/logs.js +1 -1
  44. package/lib/commands/bff/pull.js +1 -1
  45. package/lib/commands/bff/push.js +1 -1
  46. package/lib/commands/bff/status.js +1 -1
  47. package/lib/commands/cli-skill/index.js +1 -1
  48. package/lib/commands/cli-update.js +1 -1
  49. package/lib/commands/codegen/index.js +1 -1
  50. package/lib/commands/codegen/sdk.js +1 -1
  51. package/lib/commands/codegen/sql.js +1 -1
  52. package/lib/commands/common/app-registry.js +1 -1
  53. package/lib/commands/common/app-selector.js +1 -1
  54. package/lib/commands/common/async-task.js +1 -1
  55. package/lib/commands/common/dry-run.js +1 -1
  56. package/lib/commands/common/flags.js +1 -1
  57. package/lib/commands/common/local-file.js +1 -1
  58. package/lib/commands/common/validate.js +1 -1
  59. package/lib/commands/config/delete.js +1 -1
  60. package/lib/commands/config/get.js +1 -1
  61. package/lib/commands/config/index.js +1 -1
  62. package/lib/commands/config/init.js +1 -1
  63. package/lib/commands/config/list.js +1 -1
  64. package/lib/commands/config/set.js +1 -1
  65. package/lib/commands/config/shared.js +1 -1
  66. package/lib/commands/dataset/batch-design.js +1 -1
  67. package/lib/commands/dataset/business-group-update.js +1 -1
  68. package/lib/commands/dataset/business-groups.js +1 -1
  69. package/lib/commands/dataset/capability.js +1 -1
  70. package/lib/commands/dataset/cross-relation-create.js +1 -1
  71. package/lib/commands/dataset/cross-relation-delete.js +1 -1
  72. package/lib/commands/dataset/cross-relation-list.js +1 -1
  73. package/lib/commands/dataset/cross-relation-shared.js +1 -1
  74. package/lib/commands/dataset/cross-relation-update.js +1 -1
  75. package/lib/commands/dataset/delete.js +1 -1
  76. package/lib/commands/dataset/design-context.js +1 -1
  77. package/lib/commands/dataset/design-start.js +1 -1
  78. package/lib/commands/dataset/design-status.js +1 -1
  79. package/lib/commands/dataset/design-sync-retry.js +1 -1
  80. package/lib/commands/dataset/design-sync-status.js +1 -1
  81. package/lib/commands/dataset/design-validate.js +1 -1
  82. package/lib/commands/dataset/detail.js +1 -1
  83. package/lib/commands/dataset/extend-update.js +1 -1
  84. package/lib/commands/dataset/field-restore.js +1 -1
  85. package/lib/commands/dataset/field-update.js +1 -1
  86. package/lib/commands/dataset/generate.js +1 -1
  87. package/lib/commands/dataset/index.js +1 -1
  88. package/lib/commands/dataset/list.js +1 -1
  89. package/lib/commands/dataset/operations.js +1 -1
  90. package/lib/commands/dataset/relation-audit.js +1 -1
  91. package/lib/commands/dataset/relation-create.js +1 -1
  92. package/lib/commands/dataset/relation-delete.js +1 -1
  93. package/lib/commands/dataset/relation-shared.js +1 -1
  94. package/lib/commands/dataset/relation-update.js +1 -1
  95. package/lib/commands/dataset/relations.js +1 -1
  96. package/lib/commands/dataset/rename.js +1 -1
  97. package/lib/commands/dataset/restore.js +1 -1
  98. package/lib/commands/dataset/user-deleted-field-list.js +1 -1
  99. package/lib/commands/db/analysis-batching.js +1 -1
  100. package/lib/commands/db/analyze-batch-plan.js +1 -1
  101. package/lib/commands/db/analyze-cancel.js +1 -1
  102. package/lib/commands/db/analyze-start.js +1 -1
  103. package/lib/commands/db/analyze-status.js +1 -1
  104. package/lib/commands/db/create.js +1 -1
  105. package/lib/commands/db/cross-db-analysis-shared.js +1 -1
  106. package/lib/commands/db/cross-db-analyze-latest.js +1 -1
  107. package/lib/commands/db/cross-db-analyze-start.js +1 -1
  108. package/lib/commands/db/cross-db-analyze-status.js +1 -1
  109. package/lib/commands/db/delete.js +1 -1
  110. package/lib/commands/db/detail.js +1 -1
  111. package/lib/commands/db/diff-refresh-start.js +1 -1
  112. package/lib/commands/db/diff-refresh-status.js +1 -1
  113. package/lib/commands/db/diff.js +1 -1
  114. package/lib/commands/db/index.js +1 -1
  115. package/lib/commands/db/list.js +1 -1
  116. package/lib/commands/db/shared.js +1 -1
  117. package/lib/commands/db/table-diff-shared.js +1 -1
  118. package/lib/commands/db/tables.js +1 -1
  119. package/lib/commands/db/test.js +1 -1
  120. package/lib/commands/db/update.js +1 -1
  121. package/lib/commands/deployment/index.js +1 -1
  122. package/lib/commands/deployment/sync-all.js +1 -1
  123. package/lib/commands/deployment/sync-jobs.js +1 -1
  124. package/lib/commands/deployment/sync-status.js +1 -1
  125. package/lib/commands/doctor.js +1 -1
  126. package/lib/commands/file/index.js +1 -1
  127. package/lib/commands/flow/create.js +1 -1
  128. package/lib/commands/flow/detail.js +1 -1
  129. package/lib/commands/flow/index.js +1 -1
  130. package/lib/commands/flow/list.js +1 -1
  131. package/lib/commands/flow/page-list.js +1 -1
  132. package/lib/commands/flow/publish.js +1 -1
  133. package/lib/commands/flow/runtime-resources-shared.js +1 -1
  134. package/lib/commands/flow/runtime-role-list.js +1 -1
  135. package/lib/commands/flow/runtime-role-user-list.js +1 -1
  136. package/lib/commands/flow/runtime-user-search.js +1 -1
  137. package/lib/commands/flow/shared.js +1 -1
  138. package/lib/commands/flow/update.js +1 -1
  139. package/lib/commands/flow/validate.js +1 -1
  140. package/lib/commands/instant-api-policy/current.js +1 -1
  141. package/lib/commands/instant-api-policy/index.js +1 -1
  142. package/lib/commands/instant-api-policy/init.js +1 -1
  143. package/lib/commands/instant-api-policy/publish.js +1 -1
  144. package/lib/commands/instant-api-policy/pull.js +1 -1
  145. package/lib/commands/instant-api-policy/revision.js +1 -1
  146. package/lib/commands/instant-api-policy/revisions.js +1 -1
  147. package/lib/commands/instant-api-policy/rollback.js +1 -1
  148. package/lib/commands/instant-api-policy/shared.js +1 -1
  149. package/lib/commands/instant-api-policy/validate.js +1 -1
  150. package/lib/commands/issue/index.js +1 -1
  151. package/lib/commands/issue/nudge.js +1 -1
  152. package/lib/commands/issue/report.js +1 -1
  153. package/lib/commands/issue/shared.js +1 -1
  154. package/lib/commands/kb/create.js +1 -1
  155. package/lib/commands/kb/delete.js +1 -1
  156. package/lib/commands/kb/detail.js +1 -1
  157. package/lib/commands/kb/index.js +1 -1
  158. package/lib/commands/kb/list.js +1 -1
  159. package/lib/commands/kb/search.js +1 -1
  160. package/lib/commands/kb/shared.js +1 -1
  161. package/lib/commands/kb/update.js +1 -1
  162. package/lib/commands/logs/index.js +1 -1
  163. package/lib/commands/menu/asset-update.js +1 -1
  164. package/lib/commands/menu/delete.js +1 -1
  165. package/lib/commands/menu/external-link-create.js +1 -1
  166. package/lib/commands/menu/external-link-update.js +1 -1
  167. package/lib/commands/menu/group-create.js +1 -1
  168. package/lib/commands/menu/group-update.js +1 -1
  169. package/lib/commands/menu/index.js +1 -1
  170. package/lib/commands/menu/list.js +1 -1
  171. package/lib/commands/menu/move.js +1 -1
  172. package/lib/commands/menu/regroup-start.js +1 -1
  173. package/lib/commands/menu/rename.js +1 -1
  174. package/lib/commands/menu/shared/compare-table.js +1 -1
  175. package/lib/commands/menu/shared/delete-plan.js +1 -1
  176. package/lib/commands/menu/shared/facts.js +1 -1
  177. package/lib/commands/menu/shared/index.js +1 -1
  178. package/lib/commands/menu/shared/inquirer.js +1 -1
  179. package/lib/commands/menu/shared/local-pages.js +1 -1
  180. package/lib/commands/menu/shared/logic.js +1 -1
  181. package/lib/commands/menu/shared/mutations.js +1 -1
  182. package/lib/commands/menu/shared/path.js +1 -1
  183. package/lib/commands/menu/shared/service.js +1 -1
  184. package/lib/commands/menu/shared/subapp-assets.js +1 -1
  185. package/lib/commands/menu/shared/sync-core.js +1 -1
  186. package/lib/commands/menu/shared/update-core.js +1 -1
  187. package/lib/commands/menu/shared/valid-url.js +1 -1
  188. package/lib/commands/menu/subapp-assets-status.js +1 -1
  189. package/lib/commands/menu/subapp-assets-update.js +1 -1
  190. package/lib/commands/menu/sync.js +1 -1
  191. package/lib/commands/menu/visibility-update.js +1 -1
  192. package/lib/commands/notification/config-create.js +1 -1
  193. package/lib/commands/notification/config-delete.js +1 -1
  194. package/lib/commands/notification/config-list.js +1 -1
  195. package/lib/commands/notification/config-update.js +1 -1
  196. package/lib/commands/notification/index.js +1 -1
  197. package/lib/commands/notification/shared.js +1 -1
  198. package/lib/commands/ocr/index.js +1 -1
  199. package/lib/commands/page/create.js +1 -1
  200. package/lib/commands/page/custom/detail.js +1 -1
  201. package/lib/commands/page/custom/list.js +1 -1
  202. package/lib/commands/page/custom/publish.js +1 -1
  203. package/lib/commands/page/custom/shared.js +1 -1
  204. package/lib/commands/page/custom/syntax.js +1 -1
  205. package/lib/commands/page/custom/update.js +1 -1
  206. package/lib/commands/page/data-list-status.js +1 -1
  207. package/lib/commands/page/generate-start.js +1 -1
  208. package/lib/commands/page/generate-status.js +1 -1
  209. package/lib/commands/page/index.js +1 -1
  210. package/lib/commands/page/pull.js +1 -1
  211. package/lib/commands/page/push.js +1 -1
  212. package/lib/commands/page/relation-audit.js +1 -1
  213. package/lib/commands/page/restore.js +1 -1
  214. package/lib/commands/page/shared.js +1 -1
  215. package/lib/commands/page/sync.js +1 -1
  216. package/lib/commands/project/api-architecture-upgrade.js +1 -1
  217. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  218. package/lib/commands/project/create/format-elapsed.js +1 -1
  219. package/lib/commands/project/create/main.js +1 -1
  220. package/lib/commands/project/create/materialize-project-template.js +1 -1
  221. package/lib/commands/project/create/project-name.js +1 -1
  222. package/lib/commands/project/create/project-template-archive.js +1 -1
  223. package/lib/commands/project/create/project-template-path.js +1 -1
  224. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  225. package/lib/commands/project/create/use-format-code.js +1 -1
  226. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  227. package/lib/commands/project/domain-routing-sync.js +1 -1
  228. package/lib/commands/project/index.js +1 -1
  229. package/lib/commands/project/upgrade.js +1 -1
  230. package/lib/commands/registry.js +1 -1
  231. package/lib/commands/role/delete.js +1 -1
  232. package/lib/commands/role/detail.js +1 -1
  233. package/lib/commands/role/index.js +1 -1
  234. package/lib/commands/role/list.js +1 -1
  235. package/lib/commands/role/shared.js +1 -1
  236. package/lib/commands/role/update.js +1 -1
  237. package/lib/commands/role/user-add.js +1 -1
  238. package/lib/commands/role/user-remove.js +1 -1
  239. package/lib/commands/role/user-resolve.js +1 -1
  240. package/lib/commands/rule/get.js +1 -1
  241. package/lib/commands/rule/index.js +1 -1
  242. package/lib/commands/rule/list.js +1 -1
  243. package/lib/commands/rule/set.js +1 -1
  244. package/lib/commands/rule/shared.js +1 -1
  245. package/lib/commands/run/index.js +1 -1
  246. package/lib/commands/schema.js +1 -1
  247. package/lib/commands/sql/create.js +1 -1
  248. package/lib/commands/sql/delete.js +1 -1
  249. package/lib/commands/sql/detail.js +1 -1
  250. package/lib/commands/sql/exec.js +1 -1
  251. package/lib/commands/sql/index.js +1 -1
  252. package/lib/commands/sql/list.js +1 -1
  253. package/lib/commands/sql/pull.js +1 -1
  254. package/lib/commands/sql/push.js +1 -1
  255. package/lib/commands/sql/shared.js +1 -1
  256. package/lib/commands/sql/status.js +1 -1
  257. package/lib/commands/sql/validate.js +1 -1
  258. package/lib/commands/task/index.js +1 -1
  259. package/lib/commands/task/status.js +1 -1
  260. package/lib/commands/tenant/index.js +1 -1
  261. package/lib/commands/tenant/members-list.js +1 -1
  262. package/lib/commands/tenant/shared.js +1 -1
  263. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  264. package/lib/commands/user-account/feishu-bind.js +1 -1
  265. package/lib/commands/user-account/index.js +1 -1
  266. package/lib/commands/workspace/add.js +1 -1
  267. package/lib/commands/workspace/index.js +1 -1
  268. package/lib/commands/workspace/remove.js +1 -1
  269. package/lib/config/domain-config.js +1 -1
  270. package/lib/config/project-domain-routing.js +1 -1
  271. package/lib/config/region-config.js +1 -1
  272. package/lib/config/schema.js +1 -1
  273. package/lib/constant/cdn.js +1 -1
  274. package/lib/constant/cli.js +1 -1
  275. package/lib/constant/defaults.js +1 -1
  276. package/lib/constant/domain.js +1 -1
  277. package/lib/constant/env.js +1 -1
  278. package/lib/constant/output.js +1 -1
  279. package/lib/constant/paths.js +1 -1
  280. package/lib/constant/region.js +1 -1
  281. package/lib/constant/risk.js +1 -1
  282. package/lib/constant/routing-profile.js +1 -1
  283. package/lib/context/app-resolver.js +1 -1
  284. package/lib/context/auth-resolver.js +1 -1
  285. package/lib/context/config-loader.js +1 -1
  286. package/lib/context.js +1 -1
  287. package/lib/core/alias-resolver.js +1 -1
  288. package/lib/core/api-client.js +1 -1
  289. package/lib/core/bff/config.js +1 -1
  290. package/lib/core/bff/file-system.js +1 -1
  291. package/lib/core/bff/hash.js +1 -1
  292. package/lib/core/bff/hook-directory.js +1 -1
  293. package/lib/core/bff/lock.js +1 -1
  294. package/lib/core/bff/utils.js +1 -1
  295. package/lib/core/cross-db-analysis.js +1 -1
  296. package/lib/core/cross-db-relation.js +1 -1
  297. package/lib/core/db-resolver.js +1 -1
  298. package/lib/core/flow-config.js +1 -1
  299. package/lib/core/instant-api-policy/config.js +1 -1
  300. package/lib/core/kb-management-client.js +1 -1
  301. package/lib/core/kb-search-client.js +1 -1
  302. package/lib/core/page/file-system.js +1 -1
  303. package/lib/core/page/hash.js +1 -1
  304. package/lib/core/page/lock.js +1 -1
  305. package/lib/core/page/lr-smart-jsx.js +1 -1
  306. package/lib/core/sql-index-auditor.js +1 -1
  307. package/lib/core/sql-sync/config.js +1 -1
  308. package/lib/core/sql-sync/file-system.js +1 -1
  309. package/lib/core/sql-sync/hash.js +1 -1
  310. package/lib/core/sql-sync/lock.js +1 -1
  311. package/lib/core/sql-sync/utils.js +1 -1
  312. package/lib/core/sql-validator.js +1 -1
  313. package/lib/errors.js +1 -1
  314. package/lib/framework/build-all-flags.js +1 -1
  315. package/lib/framework/error-output.js +1 -1
  316. package/lib/framework/explicit-yes.js +1 -1
  317. package/lib/framework/flags.js +1 -1
  318. package/lib/framework/help.js +1 -1
  319. package/lib/framework/index.js +1 -1
  320. package/lib/framework/output.js +1 -1
  321. package/lib/framework/response.js +1 -1
  322. package/lib/framework/runner-alias.js +1 -1
  323. package/lib/framework/runner.js +1 -1
  324. package/lib/framework/schema-export.js +1 -1
  325. package/lib/framework/supported-flags.js +1 -1
  326. package/lib/framework/types.js +1 -1
  327. package/lib/generated/build-info.d.ts +4 -4
  328. package/lib/generated/build-info.js +1 -1
  329. package/lib/generated/official-routing.js +1 -1
  330. package/lib/generated/routing-contract.js +1 -1
  331. package/lib/help.js +1 -1
  332. package/lib/postinstall.js +1 -1
  333. package/lib/runtime/confirmation.js +1 -1
  334. package/lib/runtime/event.js +1 -1
  335. package/lib/runtime/index.js +1 -1
  336. package/lib/runtime/queue.js +1 -1
  337. package/lib/runtime/resolve.js +1 -1
  338. package/lib/services/dataset-design/checkpoint.js +1 -1
  339. package/lib/services/dataset-design/commands.js +1 -1
  340. package/lib/services/dataset-design/contract.js +1 -1
  341. package/lib/skills/builtin-skill.js +1 -1
  342. package/lib/skills/main.js +1 -1
  343. package/lib/skills/npx-skills-add.js +1 -1
  344. package/lib/skills/skill-presence.js +1 -1
  345. package/lib/telemetry/cli-command-trace.js +1 -1
  346. package/lib/telemetry/cli-help-trace.js +1 -1
  347. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  348. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  349. package/lib/telemetry/send-cli-trace-log.js +1 -1
  350. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  351. package/lib/utils/ai_config.js +1 -1
  352. package/lib/utils/apply-jq-filter.js +1 -1
  353. package/lib/utils/cdn-config.js +1 -1
  354. package/lib/utils/check-sdk-version.js +1 -1
  355. package/lib/utils/cli-version-check.js +1 -1
  356. package/lib/utils/cli-version-policy.js +1 -1
  357. package/lib/utils/config.js +1 -1
  358. package/lib/utils/entity-with-id.js +1 -1
  359. package/lib/utils/file-utils.js +1 -1
  360. package/lib/utils/guides-cdn.js +1 -1
  361. package/lib/utils/http-client.js +1 -1
  362. package/lib/utils/is-non-interactive.js +1 -1
  363. package/lib/utils/logger.js +1 -1
  364. package/lib/utils/params.js +1 -1
  365. package/lib/utils/platform.js +1 -1
  366. package/lib/utils/sleep.js +1 -1
  367. package/lib/utils/template-replacer.js +1 -1
  368. package/lib/utils/update-notice.js +1 -1
  369. package/lib/utils/version.js +1 -1
  370. package/lib/utils/with-active-cookie.js +1 -1
  371. package/lib/utils/write-cli-side-channel.js +1 -1
  372. package/package.json +1 -1
  373. package/skills/rabetbase/SKILL.md +1 -1
  374. package/skills/rabetbase-dataset-generation/SKILL.md +1 -1
  375. package/skills/rabetbase-page-generation/SKILL.md +1 -1
  376. package/skills/rabetbase.manifest.json +3 -3
@@ -1 +1 @@
1
- const a188_0x1e3e4a=a188_0x2378;function a188_0x64fe(){const _0x2f9dbf=['\x20menu(s)\x20for\x20','all','cookie','3075292BBAUVM','\x20in\x20menu\x20host\x20','Inspected\x20','Inspect\x20shared\x20frontend\x20subapp\x20resources\x20and\x20menu\x20fallbacks\x20in\x20the\x20selected\x20menu\x20host','3rFKFkc','138RHOzkc','283260JsclLq','242669pqzJKE','menu','70kIFqud','4076664DCbotk','127676EUjBDK','2789586sBbbji','481282ihUGXc','80YrEcwo'];a188_0x64fe=function(){return _0x2f9dbf;};return a188_0x64fe();}(function(_0x1e86c5,_0x51a99c){const _0x1b20af=a188_0x2378,_0x33f897=_0x1e86c5();while(!![]){try{const _0xeba50f=-parseInt(_0x1b20af(0x15d))/0x1+parseInt(_0x1b20af(0x156))/0x2*(parseInt(_0x1b20af(0x154))/0x3)+parseInt(_0x1b20af(0x15b))/0x4*(-parseInt(_0x1b20af(0x159))/0x5)+parseInt(_0x1b20af(0x155))/0x6*(-parseInt(_0x1b20af(0x157))/0x7)+-parseInt(_0x1b20af(0x15a))/0x8+parseInt(_0x1b20af(0x15c))/0x9+parseInt(_0x1b20af(0x14c))/0xa*(parseInt(_0x1b20af(0x150))/0xb);if(_0xeba50f===_0x51a99c)break;else _0x33f897['push'](_0x33f897['shift']());}catch(_0x5c94b8){_0x33f897['push'](_0x33f897['shift']());}}}(a188_0x64fe,0x6e9e0));import{getSmartAppRecord}from'../../core/api-client.js';import{getOnlineMenuList}from'../../commands/menu/shared/service.js';import{buildSubappAssetsStatus,getSubappSelector,SUBAPP_ASSET_SELECTOR_FLAGS}from'../../commands/menu/shared/subapp-assets.js';function a188_0x2378(_0x1dd1e5,_0x375f00){_0x1dd1e5=_0x1dd1e5-0x14c;const _0x64fe45=a188_0x64fe();let _0x237898=_0x64fe45[_0x1dd1e5];return _0x237898;}export const menuSubappAssetsStatus={'service':a188_0x1e3e4a(0x158),'command':'subapp-assets-status','description':a188_0x1e3e4a(0x153),'risk':'read','strictFlags':!![],'flags':SUBAPP_ASSET_SELECTOR_FLAGS,async 'validate'(_0x95b5f1){getSubappSelector(_0x95b5f1);},async 'execute'(_0x45c98b){const _0x562122=a188_0x1e3e4a,{appCode:_0x4a002b,appName:_0x1e49b7}=getSubappSelector(_0x45c98b),[_0x56a460,_0x10a444]=await Promise[_0x562122(0x14e)]([getSmartAppRecord(_0x4a002b,_0x45c98b[_0x562122(0x14f)]),getOnlineMenuList(_0x4a002b,_0x45c98b[_0x562122(0x14f)])]),_0x11de13={'appCode':_0x4a002b,...buildSubappAssetsStatus(_0x56a460,_0x10a444,_0x1e49b7)};return{'ok':!![],'data':_0x11de13,'message':_0x562122(0x152)+_0x11de13['boundMenus']+_0x562122(0x14d)+_0x1e49b7+_0x562122(0x151)+_0x4a002b+'.'};}};
1
+ function a188_0x31a8(){const _0x4101f6=['boundMenus','1265089AhqvON','105bxzhEV','Inspected\x20','1495400syVaLh','1307XaqafW','1256992mBQCOn','subapp-assets-status','856kxEUwR','\x20in\x20menu\x20host\x20','Inspect\x20shared\x20frontend\x20subapp\x20resources\x20and\x20menu\x20fallbacks\x20in\x20the\x20selected\x20menu\x20host','3aFCJox','2080296BPSbpt','7191nipoca','274JuLpsE','cookie','\x20menu(s)\x20for\x20','22CVpprJ','read','21642RcAEws'];a188_0x31a8=function(){return _0x4101f6;};return a188_0x31a8();}const a188_0x2c5c6b=a188_0x133c;(function(_0x349382,_0x23bb34){const _0x262748=a188_0x133c,_0x3b00fc=_0x349382();while(!![]){try{const _0x5c45c6=parseInt(_0x262748(0x19e))/0x1*(parseInt(_0x262748(0x193))/0x2)+parseInt(_0x262748(0x190))/0x3*(parseInt(_0x262748(0x19f))/0x4)+-parseInt(_0x262748(0x19b))/0x5*(parseInt(_0x262748(0x198))/0x6)+parseInt(_0x262748(0x19a))/0x7+-parseInt(_0x262748(0x1a1))/0x8*(-parseInt(_0x262748(0x192))/0x9)+-parseInt(_0x262748(0x19d))/0xa+-parseInt(_0x262748(0x196))/0xb*(parseInt(_0x262748(0x191))/0xc);if(_0x5c45c6===_0x23bb34)break;else _0x3b00fc['push'](_0x3b00fc['shift']());}catch(_0x3625e3){_0x3b00fc['push'](_0x3b00fc['shift']());}}}(a188_0x31a8,0x2dc84));import{getSmartAppRecord}from'../../core/api-client.js';function a188_0x133c(_0x2d8550,_0x33fd2a){_0x2d8550=_0x2d8550-0x18f;const _0x31a8f9=a188_0x31a8();let _0x133cb6=_0x31a8f9[_0x2d8550];return _0x133cb6;}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':'menu','command':a188_0x2c5c6b(0x1a0),'description':a188_0x2c5c6b(0x18f),'risk':a188_0x2c5c6b(0x197),'strictFlags':!![],'flags':SUBAPP_ASSET_SELECTOR_FLAGS,async 'validate'(_0x4603f2){getSubappSelector(_0x4603f2);},async 'execute'(_0x442196){const _0x1b3595=a188_0x2c5c6b,{appCode:_0x1f313b,appName:_0x5c7e10}=getSubappSelector(_0x442196),[_0x1b8a06,_0x130925]=await Promise['all']([getSmartAppRecord(_0x1f313b,_0x442196[_0x1b3595(0x194)]),getOnlineMenuList(_0x1f313b,_0x442196[_0x1b3595(0x194)])]),_0x12c8ae={'appCode':_0x1f313b,...buildSubappAssetsStatus(_0x1b8a06,_0x130925,_0x5c7e10)};return{'ok':!![],'data':_0x12c8ae,'message':_0x1b3595(0x19c)+_0x12c8ae[_0x1b3595(0x199)]+_0x1b3595(0x195)+_0x5c7e10+_0x1b3595(0x1a2)+_0x1f313b+'.'};}};
@@ -1 +1 @@
1
- const a189_0x5c143e=a189_0x107f;(function(_0x156091,_0x304683){const _0x2bb03e=a189_0x107f,_0xa2f6f6=_0x156091();while(!![]){try{const _0xa9e90f=parseInt(_0x2bb03e(0x10c))/0x1+parseInt(_0x2bb03e(0xce))/0x2+parseInt(_0x2bb03e(0xc3))/0x3+parseInt(_0x2bb03e(0xf4))/0x4+-parseInt(_0x2bb03e(0xdf))/0x5*(parseInt(_0x2bb03e(0xe8))/0x6)+-parseInt(_0x2bb03e(0xe4))/0x7*(parseInt(_0x2bb03e(0x100))/0x8)+-parseInt(_0x2bb03e(0xc1))/0x9;if(_0xa9e90f===_0x304683)break;else _0xa2f6f6['push'](_0xa2f6f6['shift']());}catch(_0x339221){_0xa2f6f6['push'](_0xa2f6f6['shift']());}}}(a189_0x4b02,0x70119));import{createHash}from'node:crypto';import{isDeepStrictEqual}from'node:util';function a189_0x107f(_0x5deed0,_0x2e62bd){_0x5deed0=_0x5deed0-0xbd;const _0x4b02c1=a189_0x4b02();let _0x107ffd=_0x4b02c1[_0x5deed0];return _0x107ffd;}import{getSmartAppRecord,updateSmartAppRecord}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a189_0x4b02(){const _0x365a20=['app.extend.assets','enableAutoSync','assets','string','isSafeInteger','--expected-hash\x20from\x20a\x20dry-run\x20is\x20required.','490PVtDjd','--resources\x20is\x20required.','Management\x20app\x20assets\x20already\x20match;\x20independent\x20deployment\x20not\x20verified.','length','--resources\x20must\x20be\x20a\x20JSON\x20array\x20of\x20HTTPS\x20URLs.','6594yEixXg','enableSample','entries','App\x20asset\x20update\x20verification\x20failed;\x20inspect\x20the\x20app\x20before\x20retrying.','20970cyRChP','\x20must\x20be\x20a\x20JSON\x20array.','/smartapi/app/update','expectedHash','Resources\x20need\x20one\x20JS\x20entry\x20and\x20no\x20duplicate\x20URLs.','\x20contains\x20invalid\x20JSON.','\x20in\x20menu\x20host\x20',';\x20found\x20',';\x20independent\x20deployment\x20not\x20verified.','apiError','parse','stringify','198848bvhYXs','directDbId','.\x20Refusing\x20update.','At\x20least\x20one\x20resource\x20URL\x20is\x20required.','trim','test','App\x20ID\x20or\x20publish\x20status\x20is\x20missing;\x20refusing\x20a\x20generic\x20app\x20update.','appName','str','update','expected-hash','size','6376BneOBy','POST','write','isArray','resources[','Unknown\x20app.extend\x20fields:\x20','Would\x20update\x20shared\x20assets\x20for\x20','app.extend.assets\x20must\x20be\x20a\x20JSON\x20string;\x20refusing\x20update.','Existing\x20subapp.resources\x20must\x20be\x20a\x20JSON\x20string.','Expected\x20exactly\x20one\x20existing\x20subapp\x20entry\x20for\x20',']\x20must\x20be\x20an\x20absolute\x20HTTPS\x20URL.','Updated\x20shared\x20resources\x20for\x20','697658ytymzs','object','nextExtend','filter','appPublishStatus','unchanged','1226736liBwcs','sha256','2197401wDjROY','join',']\x20must\x20be\x20a\x20URL\x20string.','not\x20HTTPS','has','cookie','extend','some','Existing\x20subapp.resources\x20must\x20be\x20an\x20array\x20of\x20URLs.','\x20must\x20be\x20a\x20JSON\x20object.','enableOpenApi','417568QMJIlG','appCode','resources','subapp-assets-update','before','vipDeploy','Existing\x20subapp.resources\x20contains\x20invalid\x20JSON.','validation','menu','https:','map'];a189_0x4b02=function(){return _0x365a20;};return a189_0x4b02();}import{getSubappSelector,SUBAPP_ASSET_SELECTOR_FLAGS}from'../../commands/menu/shared/subapp-assets.js';const KNOWN_EXTEND_KEYS=new Set(['skinColor',a189_0x5c143e(0xcd),'accessKey',a189_0x5c143e(0xdb),'tenantColumn',a189_0x5c143e(0xe5),a189_0x5c143e(0xd3),a189_0x5c143e(0xda),a189_0x5c143e(0xf5),'directDbEnabled']);function parseObject(_0x1ff76f,_0x1a9d38){const _0x5476cc=a189_0x5c143e;let _0x47a87f=_0x1ff76f;if(typeof _0x1ff76f===_0x5476cc(0xdc))try{_0x47a87f=JSON[_0x5476cc(0xf2)](_0x1ff76f);}catch{throw CliErrors['validation'](_0x1a9d38+_0x5476cc(0xed));}if(!_0x47a87f||typeof _0x47a87f!==_0x5476cc(0x10d)||Array[_0x5476cc(0x103)](_0x47a87f))throw CliErrors[_0x5476cc(0xd5)](_0x1a9d38+_0x5476cc(0xcc));return _0x47a87f;}function parseArray(_0x553938,_0x20620c){const _0x4bee16=a189_0x5c143e;let _0xe2748;try{_0xe2748=JSON[_0x4bee16(0xf2)](_0x553938);}catch{throw CliErrors['validation'](_0x20620c+_0x4bee16(0xed));}if(!Array[_0x4bee16(0x103)](_0xe2748))throw CliErrors['validation'](_0x20620c+_0x4bee16(0xe9));return _0xe2748['map']((_0x57f06b,_0x3077de)=>parseObject(_0x57f06b,_0x20620c+'['+_0x3077de+']'));}function validateResources(_0x43c09b){const _0x5a31d7=a189_0x5c143e;if(_0x43c09b[_0x5a31d7(0xe2)]===0x0)throw CliErrors[_0x5a31d7(0xd5)](_0x5a31d7(0xf7));for(const [_0x7d3a1,_0x55f450]of _0x43c09b[_0x5a31d7(0xe6)]()){if(typeof _0x55f450!==_0x5a31d7(0xdc))throw CliErrors[_0x5a31d7(0xd5)](_0x5a31d7(0x104)+_0x7d3a1+_0x5a31d7(0xc5));try{if(new URL(_0x55f450)['protocol']!==_0x5a31d7(0xd7))throw new Error(_0x5a31d7(0xc6));}catch{throw CliErrors[_0x5a31d7(0xd5)](_0x5a31d7(0x104)+_0x7d3a1+_0x5a31d7(0x10a));}}if(new Set(_0x43c09b)[_0x5a31d7(0xff)]!==_0x43c09b['length']||!_0x43c09b['some'](_0x449e60=>/\.m?js(?:[?#]|$)/i[_0x5a31d7(0xf9)](_0x449e60)))throw CliErrors['validation'](_0x5a31d7(0xec));return _0x43c09b;}function prepare(_0x38f8dd,_0x1e1efc,_0x3fe0ad){const _0x41f86f=a189_0x5c143e;if(!Number[_0x41f86f(0xdd)](_0x38f8dd['id'])||(_0x38f8dd['id']??0x0)<=0x0||typeof _0x38f8dd[_0x41f86f(0xbf)]!==_0x41f86f(0xdc)||!_0x38f8dd[_0x41f86f(0xbf)])throw CliErrors['validation'](_0x41f86f(0xfa));const _0x9ff0f5=parseObject(_0x38f8dd[_0x41f86f(0xc9)],'app.extend'),_0x872af8=Object['keys'](_0x9ff0f5)[_0x41f86f(0xbe)](_0x2e71b7=>!KNOWN_EXTEND_KEYS[_0x41f86f(0xc7)](_0x2e71b7));if(_0x872af8[_0x41f86f(0xe2)])throw CliErrors[_0x41f86f(0xd5)](_0x41f86f(0x105)+_0x872af8[_0x41f86f(0xc4)](',\x20')+_0x41f86f(0xf6));if(typeof _0x9ff0f5['assets']!=='string')throw CliErrors[_0x41f86f(0xd5)](_0x41f86f(0x107));const _0x1d39a8=parseArray(_0x9ff0f5[_0x41f86f(0xdb)],_0x41f86f(0xd9)),_0x102a6b=_0x1d39a8[_0x41f86f(0xbe)](_0x49e41b=>_0x49e41b[_0x41f86f(0xfb)]===_0x1e1efc);if(_0x102a6b[_0x41f86f(0xe2)]!==0x1)throw CliErrors['validation'](_0x41f86f(0x109)+_0x1e1efc+_0x41f86f(0xef)+_0x102a6b['length']+'.');const _0x86eda7=_0x102a6b[0x0];if(typeof _0x86eda7[_0x41f86f(0xd0)]!==_0x41f86f(0xdc))throw CliErrors[_0x41f86f(0xd5)](_0x41f86f(0x108));let _0x276233;try{_0x276233=JSON[_0x41f86f(0xf2)](_0x86eda7[_0x41f86f(0xd0)]);}catch{throw CliErrors['validation'](_0x41f86f(0xd4));}if(!Array['isArray'](_0x276233)||_0x276233[_0x41f86f(0xca)](_0x4f1915=>typeof _0x4f1915!=='string'))throw CliErrors[_0x41f86f(0xd5)](_0x41f86f(0xcb));const _0x3cb4cd=_0x1d39a8[_0x41f86f(0xd8)](_0x1942a6=>_0x1942a6===_0x86eda7?{..._0x1942a6,'resources':JSON[_0x41f86f(0xf3)](_0x3fe0ad)}:_0x1942a6),_0x2a65df={..._0x9ff0f5,'assets':JSON[_0x41f86f(0xf3)](_0x3cb4cd)},_0x3afb0b=createHash(_0x41f86f(0xc2))[_0x41f86f(0xfd)](JSON[_0x41f86f(0xf3)]({'appCode':_0x38f8dd[_0x41f86f(0xcf)],'id':_0x38f8dd['id'],'appPublishStatus':_0x38f8dd[_0x41f86f(0xbf)],'extend':_0x9ff0f5,'appName':_0x1e1efc,'resources':_0x3fe0ad}))['digest']('hex');return{'before':_0x276233,'nextExtend':_0x2a65df,'expectedHash':_0x3afb0b,'unchanged':isDeepStrictEqual(_0x276233,_0x3fe0ad)};}function flags(_0x5e57ee){const _0x562618=a189_0x5c143e,{appCode:_0x1aa203,appName:_0x519bf6}=getSubappSelector(_0x5e57ee),_0x49893b=_0x5e57ee[_0x562618(0xfc)](_0x562618(0xd0))[_0x562618(0xf8)]();if(!_0x49893b)throw CliErrors[_0x562618(0xd5)](_0x562618(0xe0));let _0xc53497;try{_0xc53497=JSON[_0x562618(0xf2)](_0x49893b);}catch{throw CliErrors['validation'](_0x562618(0xe3));}if(!Array[_0x562618(0x103)](_0xc53497))throw CliErrors['validation'](_0x562618(0xe3));return{'appCode':_0x1aa203,'appName':_0x519bf6,'resources':validateResources(_0xc53497)};}export const menuSubappAssetsUpdate={'service':a189_0x5c143e(0xd6),'command':a189_0x5c143e(0xd1),'description':'Update\x20one\x20frontend\x20subapp\x20resource\x20URL\x20set\x20in\x20the\x20selected\x20menu\x20host','risk':a189_0x5c143e(0x102),'strictFlags':!![],'flags':[...SUBAPP_ASSET_SELECTOR_FLAGS,{'name':'resources','type':'string','required':!![],'description':'JSON\x20array\x20of\x20HTTPS\x20resource\x20URLs'},{'name':a189_0x5c143e(0xfe),'type':'string','description':'Preview\x20fingerprint\x20binding\x20the\x20host,\x20subapp,\x20resource\x20URLs\x20and\x20current\x20config;\x20required\x20for\x20writes'}],async 'validate'(_0x3f6286){flags(_0x3f6286);},async 'dryRun'(_0x394b59){const _0x488667=a189_0x5c143e,{appCode:_0x441268,appName:_0x33dee8,resources:_0x884014}=flags(_0x394b59),_0x2a5fbc=await getSmartAppRecord(_0x441268,_0x394b59['cookie']),_0x183e42=prepare(_0x2a5fbc,_0x33dee8,_0x884014);return{'method':_0x488667(0x101),'url':_0x488667(0xea),'body':{'preview':{'appCode':_0x441268,'appName':_0x33dee8,'before':_0x183e42[_0x488667(0xd2)],'after':_0x884014,'expectedHash':_0x183e42[_0x488667(0xeb)],'unchanged':_0x183e42[_0x488667(0xc0)],'remoteContentVerified':![],'independentDeploymentVerified':![]}},'description':_0x183e42[_0x488667(0xc0)]?'Shared\x20assets\x20already\x20match\x20the\x20requested\x20URLs.':_0x488667(0x106)+_0x33dee8+'.'};},async 'execute'(_0x50a53d){const _0x527e41=a189_0x5c143e,{appCode:_0x7220ed,appName:_0x8a17c1,resources:_0x5234ef}=flags(_0x50a53d),_0x18f5ad=_0x50a53d[_0x527e41(0xfc)](_0x527e41(0xfe))[_0x527e41(0xf8)]();if(!/^[a-f0-9]{64}$/i[_0x527e41(0xf9)](_0x18f5ad))throw CliErrors['validation'](_0x527e41(0xde));const _0x508b54=await getSmartAppRecord(_0x7220ed,_0x50a53d[_0x527e41(0xc8)]),_0x57ffd8=prepare(_0x508b54,_0x8a17c1,_0x5234ef);if(_0x18f5ad!==_0x57ffd8['expectedHash'])throw CliErrors[_0x527e41(0xd5)]('App\x20assets\x20or\x20update\x20target\x20changed\x20since\x20preview;\x20the\x20fingerprint\x20does\x20not\x20match.\x20Run\x20a\x20new\x20dry-run.');if(_0x57ffd8[_0x527e41(0xc0)])return{'ok':!![],'data':{'appCode':_0x7220ed,'appName':_0x8a17c1,'updated':![],'managementConfirmed':!![],'independentDeploymentVerified':![],'remoteContentVerified':![]},'message':_0x527e41(0xe1)};await updateSmartAppRecord({'id':_0x508b54['id'],'appCode':_0x7220ed,'appPublishStatus':_0x508b54['appPublishStatus'],'extend':_0x57ffd8[_0x527e41(0xbd)]},_0x50a53d[_0x527e41(0xc8)]);const _0x509a94=await getSmartAppRecord(_0x7220ed,_0x50a53d[_0x527e41(0xc8)]),_0x53f264=parseObject(_0x509a94[_0x527e41(0xc9)],'verified\x20app.extend');if(_0x509a94['id']!==_0x508b54['id']||_0x509a94[_0x527e41(0xbf)]!==_0x508b54[_0x527e41(0xbf)]||!isDeepStrictEqual(_0x53f264,_0x57ffd8[_0x527e41(0xbd)]))throw CliErrors[_0x527e41(0xf1)](_0x527e41(0xe7));return{'ok':!![],'data':{'appCode':_0x7220ed,'appName':_0x8a17c1,'updated':!![],'resources':_0x5234ef,'managementConfirmed':!![],'independentDeploymentVerified':![],'remoteContentVerified':![]},'message':_0x527e41(0x10b)+_0x8a17c1+_0x527e41(0xee)+_0x7220ed+_0x527e41(0xf0)};}};
1
+ const a189_0x41ff96=a189_0x2418;function a189_0x2418(_0x3009c4,_0x314dea){_0x3009c4=_0x3009c4-0xc6;const _0x3c5880=a189_0x3c58();let _0x241805=_0x3c5880[_0x3009c4];return _0x241805;}(function(_0x516418,_0x1acd3d){const _0x3260fd=a189_0x2418,_0x28a330=_0x516418();while(!![]){try{const _0x2fd51e=parseInt(_0x3260fd(0x109))/0x1+-parseInt(_0x3260fd(0xca))/0x2*(parseInt(_0x3260fd(0x10b))/0x3)+-parseInt(_0x3260fd(0xf2))/0x4+-parseInt(_0x3260fd(0xd4))/0x5*(parseInt(_0x3260fd(0xd7))/0x6)+parseInt(_0x3260fd(0xdf))/0x7+parseInt(_0x3260fd(0x10d))/0x8*(parseInt(_0x3260fd(0xf3))/0x9)+-parseInt(_0x3260fd(0xf5))/0xa*(-parseInt(_0x3260fd(0x102))/0xb);if(_0x2fd51e===_0x1acd3d)break;else _0x28a330['push'](_0x28a330['shift']());}catch(_0xb1fa82){_0x28a330['push'](_0x28a330['shift']());}}}(a189_0x3c58,0x2824a));import{createHash}from'node:crypto';import{isDeepStrictEqual}from'node:util';import{getSmartAppRecord,updateSmartAppRecord}from'../../core/api-client.js';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_0x41ff96(0xe3),a189_0x41ff96(0xd8),a189_0x41ff96(0xd1),a189_0x41ff96(0xce),a189_0x41ff96(0xd9),a189_0x41ff96(0xe1),a189_0x41ff96(0x113),a189_0x41ff96(0x118),a189_0x41ff96(0xdb),'directDbEnabled']);function parseObject(_0x5c9686,_0x1d8a32){const _0x53c11e=a189_0x41ff96;let _0x11f7df=_0x5c9686;if(typeof _0x5c9686===_0x53c11e(0x111))try{_0x11f7df=JSON[_0x53c11e(0xe6)](_0x5c9686);}catch{throw CliErrors[_0x53c11e(0xfe)](_0x1d8a32+_0x53c11e(0xef));}if(!_0x11f7df||typeof _0x11f7df!==_0x53c11e(0x101)||Array[_0x53c11e(0xde)](_0x11f7df))throw CliErrors['validation'](_0x1d8a32+_0x53c11e(0xf9));return _0x11f7df;}function parseArray(_0x485ad0,_0x4aa441){const _0x93187=a189_0x41ff96;let _0x46e1b0;try{_0x46e1b0=JSON[_0x93187(0xe6)](_0x485ad0);}catch{throw CliErrors[_0x93187(0xfe)](_0x4aa441+_0x93187(0xef));}if(!Array[_0x93187(0xde)](_0x46e1b0))throw CliErrors[_0x93187(0xfe)](_0x4aa441+_0x93187(0x10e));return _0x46e1b0[_0x93187(0xe9)]((_0x40557a,_0x30fa17)=>parseObject(_0x40557a,_0x4aa441+'['+_0x30fa17+']'));}function validateResources(_0x142688){const _0x4f69c2=a189_0x41ff96;if(_0x142688[_0x4f69c2(0xf0)]===0x0)throw CliErrors[_0x4f69c2(0xfe)](_0x4f69c2(0x115));for(const [_0x307ce1,_0x4ae508]of _0x142688[_0x4f69c2(0x112)]()){if(typeof _0x4ae508!=='string')throw CliErrors[_0x4f69c2(0xfe)](_0x4f69c2(0xf1)+_0x307ce1+']\x20must\x20be\x20a\x20URL\x20string.');try{if(new URL(_0x4ae508)[_0x4f69c2(0xee)]!=='https:')throw new Error(_0x4f69c2(0xd6));}catch{throw CliErrors[_0x4f69c2(0xfe)]('resources['+_0x307ce1+']\x20must\x20be\x20an\x20absolute\x20HTTPS\x20URL.');}}if(new Set(_0x142688)[_0x4f69c2(0xf4)]!==_0x142688[_0x4f69c2(0xf0)]||!_0x142688[_0x4f69c2(0x106)](_0x134b7c=>/\.m?js(?:[?#]|$)/i['test'](_0x134b7c)))throw CliErrors['validation'](_0x4f69c2(0xcb));return _0x142688;}function prepare(_0x3bb4ff,_0x360fc9,_0xfdd92c){const _0x5f28c0=a189_0x41ff96;if(!Number['isSafeInteger'](_0x3bb4ff['id'])||(_0x3bb4ff['id']??0x0)<=0x0||typeof _0x3bb4ff[_0x5f28c0(0x114)]!==_0x5f28c0(0x111)||!_0x3bb4ff[_0x5f28c0(0x114)])throw CliErrors['validation']('App\x20ID\x20or\x20publish\x20status\x20is\x20missing;\x20refusing\x20a\x20generic\x20app\x20update.');const _0x8f00f8=parseObject(_0x3bb4ff[_0x5f28c0(0xdc)],_0x5f28c0(0x105)),_0x1cff6f=Object[_0x5f28c0(0x10a)](_0x8f00f8)[_0x5f28c0(0xf6)](_0x216867=>!KNOWN_EXTEND_KEYS[_0x5f28c0(0xeb)](_0x216867));if(_0x1cff6f['length'])throw CliErrors['validation'](_0x5f28c0(0xe0)+_0x1cff6f[_0x5f28c0(0xd5)](',\x20')+_0x5f28c0(0xe7));if(typeof _0x8f00f8[_0x5f28c0(0xce)]!==_0x5f28c0(0x111))throw CliErrors['validation']('app.extend.assets\x20must\x20be\x20a\x20JSON\x20string;\x20refusing\x20update.');const _0x432c56=parseArray(_0x8f00f8[_0x5f28c0(0xce)],_0x5f28c0(0xdd)),_0x2e559a=_0x432c56[_0x5f28c0(0xf6)](_0x5e25f0=>_0x5e25f0['appName']===_0x360fc9);if(_0x2e559a[_0x5f28c0(0xf0)]!==0x1)throw CliErrors[_0x5f28c0(0xfe)](_0x5f28c0(0x116)+_0x360fc9+_0x5f28c0(0xd0)+_0x2e559a[_0x5f28c0(0xf0)]+'.');const _0x2b39ce=_0x2e559a[0x0];if(typeof _0x2b39ce[_0x5f28c0(0xc6)]!=='string')throw CliErrors[_0x5f28c0(0xfe)](_0x5f28c0(0xcd));let _0x576c2d;try{_0x576c2d=JSON[_0x5f28c0(0xe6)](_0x2b39ce[_0x5f28c0(0xc6)]);}catch{throw CliErrors[_0x5f28c0(0xfe)](_0x5f28c0(0xe5));}if(!Array[_0x5f28c0(0xde)](_0x576c2d)||_0x576c2d[_0x5f28c0(0x106)](_0x3759cb=>typeof _0x3759cb!==_0x5f28c0(0x111)))throw CliErrors[_0x5f28c0(0xfe)](_0x5f28c0(0xfc));const _0xeddafd=_0x432c56[_0x5f28c0(0xe9)](_0x4aed43=>_0x4aed43===_0x2b39ce?{..._0x4aed43,'resources':JSON[_0x5f28c0(0x103)](_0xfdd92c)}:_0x4aed43),_0x1d0a4f={..._0x8f00f8,'assets':JSON[_0x5f28c0(0x103)](_0xeddafd)},_0x2c56e0=createHash('sha256')[_0x5f28c0(0xd2)](JSON[_0x5f28c0(0x103)]({'appCode':_0x3bb4ff[_0x5f28c0(0xd3)],'id':_0x3bb4ff['id'],'appPublishStatus':_0x3bb4ff['appPublishStatus'],'extend':_0x8f00f8,'appName':_0x360fc9,'resources':_0xfdd92c}))[_0x5f28c0(0xfb)]('hex');return{'before':_0x576c2d,'nextExtend':_0x1d0a4f,'expectedHash':_0x2c56e0,'unchanged':isDeepStrictEqual(_0x576c2d,_0xfdd92c)};}function a189_0x3c58(){const _0x38fd6b=['--resources\x20must\x20be\x20a\x20JSON\x20array\x20of\x20HTTPS\x20URLs.','verified\x20app.extend','protocol','\x20contains\x20invalid\x20JSON.','length','resources[','939360QbzUyl','225TbZJRp','size','4998710QfQQUx','filter','subapp-assets-update','unchanged','\x20must\x20be\x20a\x20JSON\x20object.','App\x20asset\x20update\x20verification\x20failed;\x20inspect\x20the\x20app\x20before\x20retrying.','digest','Existing\x20subapp.resources\x20must\x20be\x20an\x20array\x20of\x20URLs.','str','validation','menu','expected-hash','object','11LBukhn','stringify','before','app.extend','some','\x20in\x20menu\x20host\x20','--resources\x20is\x20required.','39471OULqjZ','keys','473862uqnlfx',';\x20independent\x20deployment\x20not\x20verified.','36296GSDQJy','\x20must\x20be\x20a\x20JSON\x20array.','Preview\x20fingerprint\x20binding\x20the\x20host,\x20subapp,\x20resource\x20URLs\x20and\x20current\x20config;\x20required\x20for\x20writes','apiError','string','entries','vipDeploy','appPublishStatus','At\x20least\x20one\x20resource\x20URL\x20is\x20required.','Expected\x20exactly\x20one\x20existing\x20subapp\x20entry\x20for\x20','nextExtend','enableAutoSync','resources','trim','Shared\x20assets\x20already\x20match\x20the\x20requested\x20URLs.','test','2dwlwBo','Resources\x20need\x20one\x20JS\x20entry\x20and\x20no\x20duplicate\x20URLs.','Management\x20app\x20assets\x20already\x20match;\x20independent\x20deployment\x20not\x20verified.','Existing\x20subapp.resources\x20must\x20be\x20a\x20JSON\x20string.','assets','Would\x20update\x20shared\x20assets\x20for\x20',';\x20found\x20','accessKey','update','appCode','1190905aPRuEQ','join','not\x20HTTPS','6QKujfj','enableOpenApi','tenantColumn','JSON\x20array\x20of\x20HTTPS\x20resource\x20URLs','directDbId','extend','app.extend.assets','isArray','998438hSnIXg','Unknown\x20app.extend\x20fields:\x20','enableSample','Updated\x20shared\x20resources\x20for\x20','skinColor','cookie','Existing\x20subapp.resources\x20contains\x20invalid\x20JSON.','parse','.\x20Refusing\x20update.','expectedHash','map','Update\x20one\x20frontend\x20subapp\x20resource\x20URL\x20set\x20in\x20the\x20selected\x20menu\x20host','has'];a189_0x3c58=function(){return _0x38fd6b;};return a189_0x3c58();}function flags(_0x35b41a){const _0x38111d=a189_0x41ff96,{appCode:_0x1bc01e,appName:_0xcf6177}=getSubappSelector(_0x35b41a),_0x4fdee6=_0x35b41a[_0x38111d(0xfd)](_0x38111d(0xc6))[_0x38111d(0xc7)]();if(!_0x4fdee6)throw CliErrors[_0x38111d(0xfe)](_0x38111d(0x108));let _0x2b8c3a;try{_0x2b8c3a=JSON[_0x38111d(0xe6)](_0x4fdee6);}catch{throw CliErrors[_0x38111d(0xfe)]('--resources\x20must\x20be\x20a\x20JSON\x20array\x20of\x20HTTPS\x20URLs.');}if(!Array[_0x38111d(0xde)](_0x2b8c3a))throw CliErrors[_0x38111d(0xfe)](_0x38111d(0xec));return{'appCode':_0x1bc01e,'appName':_0xcf6177,'resources':validateResources(_0x2b8c3a)};}export const menuSubappAssetsUpdate={'service':a189_0x41ff96(0xff),'command':a189_0x41ff96(0xf7),'description':a189_0x41ff96(0xea),'risk':'write','strictFlags':!![],'flags':[...SUBAPP_ASSET_SELECTOR_FLAGS,{'name':a189_0x41ff96(0xc6),'type':a189_0x41ff96(0x111),'required':!![],'description':a189_0x41ff96(0xda)},{'name':a189_0x41ff96(0x100),'type':a189_0x41ff96(0x111),'description':a189_0x41ff96(0x10f)}],async 'validate'(_0x89ffdf){flags(_0x89ffdf);},async 'dryRun'(_0xd91626){const _0x587747=a189_0x41ff96,{appCode:_0x41042a,appName:_0xaabb22,resources:_0x3299c0}=flags(_0xd91626),_0x239f7e=await getSmartAppRecord(_0x41042a,_0xd91626[_0x587747(0xe4)]),_0x3102ad=prepare(_0x239f7e,_0xaabb22,_0x3299c0);return{'method':'POST','url':'/smartapi/app/update','body':{'preview':{'appCode':_0x41042a,'appName':_0xaabb22,'before':_0x3102ad[_0x587747(0x104)],'after':_0x3299c0,'expectedHash':_0x3102ad[_0x587747(0xe8)],'unchanged':_0x3102ad['unchanged'],'remoteContentVerified':![],'independentDeploymentVerified':![]}},'description':_0x3102ad['unchanged']?_0x587747(0xc8):_0x587747(0xcf)+_0xaabb22+'.'};},async 'execute'(_0x33b7c5){const _0x2701fc=a189_0x41ff96,{appCode:_0x5ad594,appName:_0xf17923,resources:_0x38880d}=flags(_0x33b7c5),_0x5c94fc=_0x33b7c5[_0x2701fc(0xfd)](_0x2701fc(0x100))[_0x2701fc(0xc7)]();if(!/^[a-f0-9]{64}$/i[_0x2701fc(0xc9)](_0x5c94fc))throw CliErrors[_0x2701fc(0xfe)]('--expected-hash\x20from\x20a\x20dry-run\x20is\x20required.');const _0x397570=await getSmartAppRecord(_0x5ad594,_0x33b7c5[_0x2701fc(0xe4)]),_0x27fbc3=prepare(_0x397570,_0xf17923,_0x38880d);if(_0x5c94fc!==_0x27fbc3[_0x2701fc(0xe8)])throw CliErrors['validation']('App\x20assets\x20or\x20update\x20target\x20changed\x20since\x20preview;\x20the\x20fingerprint\x20does\x20not\x20match.\x20Run\x20a\x20new\x20dry-run.');if(_0x27fbc3[_0x2701fc(0xf8)])return{'ok':!![],'data':{'appCode':_0x5ad594,'appName':_0xf17923,'updated':![],'managementConfirmed':!![],'independentDeploymentVerified':![],'remoteContentVerified':![]},'message':_0x2701fc(0xcc)};await updateSmartAppRecord({'id':_0x397570['id'],'appCode':_0x5ad594,'appPublishStatus':_0x397570[_0x2701fc(0x114)],'extend':_0x27fbc3[_0x2701fc(0x117)]},_0x33b7c5[_0x2701fc(0xe4)]);const _0x4a3743=await getSmartAppRecord(_0x5ad594,_0x33b7c5[_0x2701fc(0xe4)]),_0x11c6b4=parseObject(_0x4a3743[_0x2701fc(0xdc)],_0x2701fc(0xed));if(_0x4a3743['id']!==_0x397570['id']||_0x4a3743['appPublishStatus']!==_0x397570['appPublishStatus']||!isDeepStrictEqual(_0x11c6b4,_0x27fbc3[_0x2701fc(0x117)]))throw CliErrors[_0x2701fc(0x110)](_0x2701fc(0xfa));return{'ok':!![],'data':{'appCode':_0x5ad594,'appName':_0xf17923,'updated':!![],'resources':_0x38880d,'managementConfirmed':!![],'independentDeploymentVerified':![],'remoteContentVerified':![]},'message':_0x2701fc(0xe2)+_0xf17923+_0x2701fc(0x107)+_0x5ad594+_0x2701fc(0x10c)};}};
@@ -1 +1 @@
1
- const a190_0x5b154a=a190_0xcb56;(function(_0x423520,_0x3cc4a3){const _0x4098b7=a190_0xcb56,_0x32c111=_0x423520();while(!![]){try{const _0x26061d=parseInt(_0x4098b7(0xdd))/0x1*(parseInt(_0x4098b7(0xde))/0x2)+parseInt(_0x4098b7(0xcc))/0x3+-parseInt(_0x4098b7(0xf6))/0x4*(parseInt(_0x4098b7(0xce))/0x5)+parseInt(_0x4098b7(0xdf))/0x6*(parseInt(_0x4098b7(0xf9))/0x7)+-parseInt(_0x4098b7(0xd3))/0x8+parseInt(_0x4098b7(0xda))/0x9+-parseInt(_0x4098b7(0x101))/0xa;if(_0x26061d===_0x3cc4a3)break;else _0x32c111['push'](_0x32c111['shift']());}catch(_0xbb03e3){_0x32c111['push'](_0x32c111['shift']());}}}(a190_0x2776,0xddcd8));function a190_0xcb56(_0x29548b,_0xd3b09e){_0x29548b=_0x29548b-0xc6;const _0x27763b=a190_0x2776();let _0xcb5616=_0x27763b[_0x29548b];return _0xcb5616;}import a190_0x131ff2 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';import{getLocalPages}from'../../commands/menu/shared/local-pages.js';function a190_0x2776(){const _0x15628b=['split','POST','Exact\x20comma-separated\x20local\x20page\x20paths\x20to\x20sync','JSON:\x20{\x22appName\x22:\x22store-app\x22,\x22parentId\x22:42,\x22visible\x22:false};\x20jsUrl\x20and\x20cssUrl\x20remain\x20available\x20for\x20individual\x20menu\x20resources.','appCode','yellow','menu','\x20menu(s)\x20created','message','\x20page(s)','rawFlags','Preview\x20with\x20--dry-run,\x20then\x20reuse\x20the\x20same\x20--paths\x20and\x20--params\x20with\x20--yes.','yes','validation','trim','8dWAvtr','gray','string','686TXZYaY','No\x20local\x20microfrontend\x20menus\x20would\x20be\x20created.','\x20local\x20microfrontend\x20menu(s).','length','\x20\x20✓\x20Selected:\x20','str','flag','\x20created.','30209970pXujid','sync','boolean','cookie','paths','Register\x20local\x20pages\x20as\x20platform\x20menus','selectedAppName','Fetching\x20online\x20menu\x20list...','onlineMenuList','map','\x20\x20!\x20No\x20local\x20pages\x20found,\x20please\x20create\x20pages\x20first','Failed\x20to\x20fetch\x20online\x20menu\x20list','Menu\x20creation\x20failed','\x20created,\x20','\x20\x20Cancelled.','4953138gkuWsS','appcode','1277520vacEVC','cyan','Creating\x20','targetPages','write','3569648XCbfSl','menu\x20sync\x20--paths\x20requires\x20--yes\x20for\x20execution.','Confirm\x20non-interactive\x20sync;\x20without\x20--paths,\x20create\x20all\x20missing\x20local\x20pages','Menu\x20sync\x20completed:\x20','/smartapi/menu/create','onlinePaths','✓\x20Menu\x20sync\x20completed:\x20','10245501RorpAQ','Online\x20menu\x20list\x20fetched','\x20\x20Continue\x20with\x20creation?','41273gJDtas','76mElSBx','32382eAEEfJ','skipped','\x20\x20Create\x20','jsUrl','Created\x20','created','params','appName'];a190_0x2776=function(){return _0x15628b;};return a190_0x2776();}import{isInProject}from'../../context.js';import{assertSharedResourcesConfigured}from'../../commands/menu/shared/subapp-assets.js';export const menuSync={'service':a190_0x5b154a(0xed),'command':a190_0x5b154a(0x102),'description':a190_0x5b154a(0x106),'risk':a190_0x5b154a(0xd2),'flags':[{'name':a190_0x5b154a(0xe5),'type':'string','description':'Prefer\x20appName\x20for\x20shared\x20subapp\x20resources\x20and\x20parentId\x20for\x20planned\x20groups.\x20'+a190_0x5b154a(0xea)},{'name':a190_0x5b154a(0x105),'type':a190_0x5b154a(0xf8),'description':a190_0x5b154a(0xe9)},{'name':a190_0x5b154a(0xf3),'type':a190_0x5b154a(0x103),'description':a190_0x5b154a(0xd5)}],async 'dryRun'(_0x569ad8){const _0x529ee0=a190_0x5b154a;ensureRunnableContext(_0x569ad8['rawFlags'],_0x569ad8[_0x529ee0(0x107)]);const _0x3f3d99=await runMenuSyncCore(_0x569ad8[_0x529ee0(0xeb)],_0x569ad8[_0x529ee0(0x104)],parsePaths(_0x569ad8[_0x529ee0(0xfe)](_0x529ee0(0x105))),_0x569ad8[_0x529ee0(0xfe)](_0x529ee0(0xe5)),{'dryRun':!![]});return{'method':_0x529ee0(0xe8),'url':_0x529ee0(0xd7),'body':_0x3f3d99,'description':_0x3f3d99[_0x529ee0(0xe0)]?_0x529ee0(0xfa):'Would\x20create\x20'+_0x3f3d99[_0x529ee0(0xd1)]['length']+_0x529ee0(0xfb)};},async 'execute'(_0x14a549){const _0x2d69f7=a190_0x5b154a;ensureRunnableContext(_0x14a549[_0x2d69f7(0xf1)],_0x14a549[_0x2d69f7(0x107)]);const _0x17610f=_0x14a549[_0x2d69f7(0xff)](_0x2d69f7(0xf3)),_0x1076cd=_0x14a549[_0x2d69f7(0xfe)]('params'),_0x16d0ce=parsePaths(_0x14a549[_0x2d69f7(0xfe)](_0x2d69f7(0x105))),_0x101a1a=parseMenuSyncParams(_0x1076cd);if(_0x17610f){const _0x15761f=await runMenuSyncCore(_0x14a549[_0x2d69f7(0xeb)],_0x14a549['cookie'],_0x16d0ce,_0x1076cd);if(_0x15761f[_0x2d69f7(0xe0)]){const _0x397293=getLocalPages();_0x397293[_0x2d69f7(0xfc)]===0x0?writeCliSideChannelLine('!\x20No\x20local\x20pages\x20found\x20in\x20src/pages'):writeCliSideChannelLine('✓\x20All\x20local\x20pages\x20are\x20already\x20on\x20platform');}else writeCliSideChannelLine(_0x2d69f7(0xd9)+_0x15761f[_0x2d69f7(0xe4)]+_0x2d69f7(0xee));return{'ok':!![],'data':_0x15761f,'message':_0x15761f[_0x2d69f7(0xe0)]?'Menu\x20sync\x20skipped':_0x2d69f7(0xd6)+_0x15761f[_0x2d69f7(0xe4)]+_0x2d69f7(0x100)};}if(_0x16d0ce[_0x2d69f7(0xfc)]>0x0)throw CliErrors[_0x2d69f7(0xf4)](_0x2d69f7(0xd4),_0x2d69f7(0xf2));if(!isInteractive()&&_0x1076cd)throw CliErrors[_0x2d69f7(0xf4)]('Non-interactive\x20menu\x20sync\x20requires\x20--yes.',_0x2d69f7(0xf2));requireInteractive(),writeCliSideChannelLine('Tip:\x20For\x20frontend\x20subapps,\x20prefer\x20Agent-planned\x20menu\x20groups\x20and\x20shared\x20resources.\x20This\x20manual\x20sync\x20workflow\x20remains\x20available\x20as\x20a\x20fallback.');const _0xe3a3ef=startSpinner(_0x2d69f7(0x108));let _0xfd3a2e,_0x22cc9f,_0x1daadb;try{const _0x45ffd6=await fetchMenuData(_0x14a549[_0x2d69f7(0xeb)],_0x14a549[_0x2d69f7(0x104)]);_0xfd3a2e=_0x45ffd6['localPages'],_0x22cc9f=_0x45ffd6[_0x2d69f7(0xd8)],_0x1daadb=_0x45ffd6[_0x2d69f7(0x109)],stopSpinner(_0xe3a3ef,_0x2d69f7(0xdb),!![]);}catch(_0x17b2a3){stopSpinner(_0xe3a3ef,_0x2d69f7(0xc8),![]);throw CliErrors['validation'](_0x17b2a3 instanceof Error?_0x17b2a3[_0x2d69f7(0xef)]:_0x2d69f7(0xc8));}if(_0xfd3a2e[_0x2d69f7(0xfc)]===0x0)return writeCliSideChannelLine(a190_0x131ff2[_0x2d69f7(0xec)](_0x2d69f7(0xc7))),{'ok':!![]};const _0x579925=buildCompareRows(_0xfd3a2e,_0x22cc9f);writeCliSideChannelLine(renderCompareTable(_0x579925)),writeCliSideChannelLine('');const _0x351c9a=await selectPages(_0xfd3a2e,_0x22cc9f);writeCliSideChannelLine(''),writeCliSideChannelLine(a190_0x131ff2[_0x2d69f7(0xcf)](_0x2d69f7(0xfd)+_0x351c9a[_0x2d69f7(0xfc)]+_0x2d69f7(0xf0)));const _0x5df45d=_0x101a1a[_0x2d69f7(0xe2)]&&_0x101a1a['cssUrl'];if(!_0x5df45d){writeCliSideChannelLine(renderSyncSummary(_0x351c9a,_0x22cc9f['size']>0x0));const _0x52fee3=await askConfirm(_0x2d69f7(0xdc));if(!_0x52fee3)return writeCliSideChannelLine(a190_0x131ff2[_0x2d69f7(0xf7)](_0x2d69f7(0xcb))),{'ok':!![]};}let _0x1028f8=_0x101a1a['jsUrl'],_0x5d19da=_0x101a1a['cssUrl'];!_0x1028f8&&!_0x101a1a[_0x2d69f7(0xe6)]&&(_0x1028f8=await askJsUrl());!_0x5d19da&&!_0x101a1a[_0x2d69f7(0xe6)]&&(_0x5d19da=await askCssUrl());const _0x854850=await askConfirm(_0x101a1a['appName']?_0x2d69f7(0xe1)+_0x351c9a[_0x2d69f7(0xfc)]+'\x20menu(s)\x20bound\x20to\x20'+_0x101a1a['appName']+'?':'\x20\x20Create\x20'+_0x351c9a[_0x2d69f7(0xfc)]+'\x20menu(s)\x20with\x20JS:\x20'+_0x1028f8+'\x20and\x20CSS:\x20'+_0x5d19da+'?');if(!_0x854850)return writeCliSideChannelLine(a190_0x131ff2[_0x2d69f7(0xf7)](_0x2d69f7(0xcb))),{'ok':!![]};const _0x702209=[_0x1028f8,_0x5d19da]['filter'](_0x59c1c4=>Boolean(_0x59c1c4));_0x101a1a[_0x2d69f7(0xe6)]&&_0x702209[_0x2d69f7(0xfc)]===0x0&&await assertSharedResourcesConfigured(_0x14a549[_0x2d69f7(0xeb)],_0x14a549[_0x2d69f7(0x104)],_0x101a1a[_0x2d69f7(0xe6)]);const _0xbe85de=startSpinner(_0x2d69f7(0xd0)+_0x351c9a['length']+'\x20menu(s)...');try{const _0x342a75=_0x351c9a[_0x2d69f7(0xc6)](_0x3b6fe9=>resolvePage(_0x3b6fe9,_0x101a1a,_0x1daadb)),_0x53304d=await doCreateMenus(_0x14a549[_0x2d69f7(0xeb)],_0x14a549[_0x2d69f7(0x104)],_0x342a75,_0x702209,_0x101a1a[_0x2d69f7(0xe6)]?{'appName':_0x101a1a['appName']}:undefined);return stopSpinner(_0xbe85de,_0x2d69f7(0xe3)+_0x53304d[_0x2d69f7(0xe4)]+'\x20menu(s)',!![]),{'ok':!![],'data':_0x53304d,'message':_0x2d69f7(0xd6)+_0x53304d[_0x2d69f7(0xe4)]+_0x2d69f7(0xca)+_0x53304d['failed']+'\x20failed.'};}catch(_0x1ae36e){stopSpinner(_0xbe85de,_0x2d69f7(0xc9),![]);throw CliErrors[_0x2d69f7(0xf4)](_0x1ae36e instanceof Error?_0x1ae36e['message']:'Menu\x20creation\x20failed');}}};function ensureRunnableContext(_0xb34f39,_0x5d8f9f){const _0x1b02c9=a190_0x5b154a,_0x5be0ed=_0xb34f39['appcode']?String(_0xb34f39[_0x1b02c9(0xcd)])[_0x1b02c9(0xf5)]():'';if(!isInProject()&&!_0x5d8f9f&&!_0x5be0ed)throw CliErrors[_0x1b02c9(0xf4)]('menu\x20sync\x20requires\x20a\x20project\x20context\x20or\x20explicit\x20--appcode.\x20'+'Run\x20inside\x20a\x20directory\x20with\x20.rabetbase.json,\x20or\x20pass\x20--appcode\x20<code>.');}function parsePaths(_0x15125b){const _0x423250=a190_0x5b154a;return[...new Set(_0x15125b[_0x423250(0xe7)](',')['map'](_0x1b87c4=>_0x1b87c4['trim']())['filter'](Boolean))];}
1
+ const a190_0x14f42e=a190_0x3ae0;(function(_0x40fd80,_0x23e3d1){const _0x530ad4=a190_0x3ae0,_0x79333e=_0x40fd80();while(!![]){try{const _0x10f007=-parseInt(_0x530ad4(0xf0))/0x1*(-parseInt(_0x530ad4(0xed))/0x2)+parseInt(_0x530ad4(0x120))/0x3*(parseInt(_0x530ad4(0xf4))/0x4)+-parseInt(_0x530ad4(0x106))/0x5+-parseInt(_0x530ad4(0x117))/0x6+-parseInt(_0x530ad4(0x116))/0x7+-parseInt(_0x530ad4(0x102))/0x8*(-parseInt(_0x530ad4(0xe5))/0x9)+parseInt(_0x530ad4(0x107))/0xa*(parseInt(_0x530ad4(0x122))/0xb);if(_0x10f007===_0x23e3d1)break;else _0x79333e['push'](_0x79333e['shift']());}catch(_0x1491d5){_0x79333e['push'](_0x79333e['shift']());}}}(a190_0x542b,0xae947));import a190_0x93d940 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';function a190_0x3ae0(_0x1e08d7,_0x356d1a){_0x1e08d7=_0x1e08d7-0xe3;const _0x542be4=a190_0x542b();let _0x3ae0e8=_0x542be4[_0x1e08d7];return _0x3ae0e8;}import{parseMenuSyncParams,resolvePage,runMenuSyncCore}from'../../commands/menu/shared/sync-core.js';import{getLocalPages}from'../../commands/menu/shared/local-pages.js';function a190_0x542b(){const _0x33f8b4=['\x20and\x20CSS:\x20','yes','cookie','12HAuFmr','Fetching\x20online\x20menu\x20list...','\x20menu(s)\x20bound\x20to\x20','207272ROyQrN','Prefer\x20appName\x20for\x20shared\x20subapp\x20resources\x20and\x20parentId\x20for\x20planned\x20groups.\x20','Preview\x20with\x20--dry-run,\x20then\x20reuse\x20the\x20same\x20--paths\x20and\x20--params\x20with\x20--yes.','✓\x20All\x20local\x20pages\x20are\x20already\x20on\x20platform','2888308eQrxvr','paths','filter','cyan','split','skipped','menu','rawFlags','Non-interactive\x20menu\x20sync\x20requires\x20--yes.','Online\x20menu\x20list\x20fetched','Creating\x20','created','size','\x20\x20!\x20No\x20local\x20pages\x20found,\x20please\x20create\x20pages\x20first','8rVIpmt','sync','\x20menu(s)\x20created','map','1815FsoVoo','10GZKgGo','Menu\x20sync\x20skipped','!\x20No\x20local\x20pages\x20found\x20in\x20src/pages','validation','Exact\x20comma-separated\x20local\x20page\x20paths\x20to\x20sync','gray','\x20\x20Continue\x20with\x20creation?','\x20page(s)','str','POST','Confirm\x20non-interactive\x20sync;\x20without\x20--paths,\x20create\x20all\x20missing\x20local\x20pages','appCode','\x20failed.','appcode','Run\x20inside\x20a\x20directory\x20with\x20.rabetbase.json,\x20or\x20pass\x20--appcode\x20<code>.','9440655RySFxG','1392696kgrbqz','Failed\x20to\x20fetch\x20online\x20menu\x20list','flag','length','\x20created,\x20','selectedAppName','Tip:\x20For\x20frontend\x20subapps,\x20prefer\x20Agent-planned\x20menu\x20groups\x20and\x20shared\x20resources.\x20This\x20manual\x20sync\x20workflow\x20remains\x20available\x20as\x20a\x20fallback.','\x20menu(s)','trim','3qYvQQL','Menu\x20sync\x20completed:\x20','3334133HVxmjw','\x20created.','/smartapi/menu/create','Created\x20','\x20\x20Create\x20','jsUrl','menu\x20sync\x20requires\x20a\x20project\x20context\x20or\x20explicit\x20--appcode.\x20','cssUrl','yellow','onlineMenuList','onlinePaths','Menu\x20creation\x20failed','message','\x20\x20Cancelled.','appName','\x20local\x20microfrontend\x20menu(s).','No\x20local\x20microfrontend\x20menus\x20would\x20be\x20created.','failed','✓\x20Menu\x20sync\x20completed:\x20','246699hSbzSc','params','menu\x20sync\x20--paths\x20requires\x20--yes\x20for\x20execution.','targetPages','\x20menu(s)...'];a190_0x542b=function(){return _0x33f8b4;};return a190_0x542b();}import{isInProject}from'../../context.js';import{assertSharedResourcesConfigured}from'../../commands/menu/shared/subapp-assets.js';export const menuSync={'service':a190_0x14f42e(0xfa),'command':a190_0x14f42e(0x103),'description':'Register\x20local\x20pages\x20as\x20platform\x20menus','risk':'write','flags':[{'name':a190_0x14f42e(0xe6),'type':'string','description':a190_0x14f42e(0xf1)+'JSON:\x20{\x22appName\x22:\x22store-app\x22,\x22parentId\x22:42,\x22visible\x22:false};\x20jsUrl\x20and\x20cssUrl\x20remain\x20available\x20for\x20individual\x20menu\x20resources.'},{'name':a190_0x14f42e(0xf5),'type':'string','description':a190_0x14f42e(0x10b)},{'name':'yes','type':'boolean','description':a190_0x14f42e(0x111)}],async 'dryRun'(_0xbd1b90){const _0xca6d4b=a190_0x14f42e;ensureRunnableContext(_0xbd1b90[_0xca6d4b(0xfb)],_0xbd1b90[_0xca6d4b(0x11c)]);const _0x2bdab4=await runMenuSyncCore(_0xbd1b90[_0xca6d4b(0x112)],_0xbd1b90['cookie'],parsePaths(_0xbd1b90[_0xca6d4b(0x10f)](_0xca6d4b(0xf5))),_0xbd1b90['str'](_0xca6d4b(0xe6)),{'dryRun':!![]});return{'method':_0xca6d4b(0x110),'url':_0xca6d4b(0x124),'body':_0x2bdab4,'description':_0x2bdab4[_0xca6d4b(0xf9)]?_0xca6d4b(0x132):'Would\x20create\x20'+_0x2bdab4[_0xca6d4b(0xe8)][_0xca6d4b(0x11a)]+_0xca6d4b(0x131)};},async 'execute'(_0x13665b){const _0x12204c=a190_0x14f42e;ensureRunnableContext(_0x13665b[_0x12204c(0xfb)],_0x13665b[_0x12204c(0x11c)]);const _0x42efe1=_0x13665b[_0x12204c(0x119)](_0x12204c(0xeb)),_0x235af4=_0x13665b[_0x12204c(0x10f)]('params'),_0x5859fd=parsePaths(_0x13665b[_0x12204c(0x10f)](_0x12204c(0xf5))),_0x30b210=parseMenuSyncParams(_0x235af4);if(_0x42efe1){const _0x2553b1=await runMenuSyncCore(_0x13665b[_0x12204c(0x112)],_0x13665b[_0x12204c(0xec)],_0x5859fd,_0x235af4);if(_0x2553b1[_0x12204c(0xf9)]){const _0x4fe871=getLocalPages();_0x4fe871[_0x12204c(0x11a)]===0x0?writeCliSideChannelLine(_0x12204c(0x109)):writeCliSideChannelLine(_0x12204c(0xf3));}else writeCliSideChannelLine(_0x12204c(0xe4)+_0x2553b1['created']+_0x12204c(0x104));return{'ok':!![],'data':_0x2553b1,'message':_0x2553b1['skipped']?_0x12204c(0x108):_0x12204c(0x121)+_0x2553b1[_0x12204c(0xff)]+_0x12204c(0x123)};}if(_0x5859fd['length']>0x0)throw CliErrors['validation'](_0x12204c(0xe7),_0x12204c(0xf2));if(!isInteractive()&&_0x235af4)throw CliErrors['validation'](_0x12204c(0xfc),'Preview\x20with\x20--dry-run,\x20then\x20reuse\x20the\x20same\x20--paths\x20and\x20--params\x20with\x20--yes.');requireInteractive(),writeCliSideChannelLine(_0x12204c(0x11d));const _0x390f6b=startSpinner(_0x12204c(0xee));let _0x5374a0,_0x423601,_0x1c97f1;try{const _0xd4fc84=await fetchMenuData(_0x13665b[_0x12204c(0x112)],_0x13665b[_0x12204c(0xec)]);_0x5374a0=_0xd4fc84['localPages'],_0x423601=_0xd4fc84[_0x12204c(0x12c)],_0x1c97f1=_0xd4fc84[_0x12204c(0x12b)],stopSpinner(_0x390f6b,_0x12204c(0xfd),!![]);}catch(_0x4ac200){stopSpinner(_0x390f6b,_0x12204c(0x118),![]);throw CliErrors[_0x12204c(0x10a)](_0x4ac200 instanceof Error?_0x4ac200[_0x12204c(0x12e)]:_0x12204c(0x118));}if(_0x5374a0[_0x12204c(0x11a)]===0x0)return writeCliSideChannelLine(a190_0x93d940[_0x12204c(0x12a)](_0x12204c(0x101))),{'ok':!![]};const _0x2d7d10=buildCompareRows(_0x5374a0,_0x423601);writeCliSideChannelLine(renderCompareTable(_0x2d7d10)),writeCliSideChannelLine('');const _0x25fa96=await selectPages(_0x5374a0,_0x423601);writeCliSideChannelLine(''),writeCliSideChannelLine(a190_0x93d940[_0x12204c(0xf7)]('\x20\x20✓\x20Selected:\x20'+_0x25fa96[_0x12204c(0x11a)]+_0x12204c(0x10e)));const _0x38195d=_0x30b210['jsUrl']&&_0x30b210[_0x12204c(0x129)];if(!_0x38195d){writeCliSideChannelLine(renderSyncSummary(_0x25fa96,_0x423601[_0x12204c(0x100)]>0x0));const _0x305522=await askConfirm(_0x12204c(0x10d));if(!_0x305522)return writeCliSideChannelLine(a190_0x93d940[_0x12204c(0x10c)](_0x12204c(0x12f))),{'ok':!![]};}let _0x4450fd=_0x30b210[_0x12204c(0x127)],_0x588cce=_0x30b210[_0x12204c(0x129)];!_0x4450fd&&!_0x30b210['appName']&&(_0x4450fd=await askJsUrl());!_0x588cce&&!_0x30b210[_0x12204c(0x130)]&&(_0x588cce=await askCssUrl());const _0x58b33c=await askConfirm(_0x30b210[_0x12204c(0x130)]?'\x20\x20Create\x20'+_0x25fa96[_0x12204c(0x11a)]+_0x12204c(0xef)+_0x30b210[_0x12204c(0x130)]+'?':_0x12204c(0x126)+_0x25fa96[_0x12204c(0x11a)]+'\x20menu(s)\x20with\x20JS:\x20'+_0x4450fd+_0x12204c(0xea)+_0x588cce+'?');if(!_0x58b33c)return writeCliSideChannelLine(a190_0x93d940[_0x12204c(0x10c)](_0x12204c(0x12f))),{'ok':!![]};const _0x16e5c0=[_0x4450fd,_0x588cce]['filter'](_0x1a9ce5=>Boolean(_0x1a9ce5));_0x30b210[_0x12204c(0x130)]&&_0x16e5c0['length']===0x0&&await assertSharedResourcesConfigured(_0x13665b[_0x12204c(0x112)],_0x13665b['cookie'],_0x30b210['appName']);const _0x502842=startSpinner(_0x12204c(0xfe)+_0x25fa96[_0x12204c(0x11a)]+_0x12204c(0xe9));try{const _0x27aa96=_0x25fa96[_0x12204c(0x105)](_0x35311d=>resolvePage(_0x35311d,_0x30b210,_0x1c97f1)),_0x3e8d49=await doCreateMenus(_0x13665b['appCode'],_0x13665b[_0x12204c(0xec)],_0x27aa96,_0x16e5c0,_0x30b210[_0x12204c(0x130)]?{'appName':_0x30b210[_0x12204c(0x130)]}:undefined);return stopSpinner(_0x502842,_0x12204c(0x125)+_0x3e8d49[_0x12204c(0xff)]+_0x12204c(0x11e),!![]),{'ok':!![],'data':_0x3e8d49,'message':'Menu\x20sync\x20completed:\x20'+_0x3e8d49['created']+_0x12204c(0x11b)+_0x3e8d49[_0x12204c(0xe3)]+_0x12204c(0x113)};}catch(_0x3df9e6){stopSpinner(_0x502842,_0x12204c(0x12d),![]);throw CliErrors[_0x12204c(0x10a)](_0x3df9e6 instanceof Error?_0x3df9e6[_0x12204c(0x12e)]:_0x12204c(0x12d));}}};function ensureRunnableContext(_0x56b9ce,_0x4bdad5){const _0x14ec82=a190_0x14f42e,_0x2d8745=_0x56b9ce[_0x14ec82(0x114)]?String(_0x56b9ce[_0x14ec82(0x114)])[_0x14ec82(0x11f)]():'';if(!isInProject()&&!_0x4bdad5&&!_0x2d8745)throw CliErrors['validation'](_0x14ec82(0x128)+_0x14ec82(0x115));}function parsePaths(_0xfc6023){const _0x38e40f=a190_0x14f42e;return[...new Set(_0xfc6023[_0x38e40f(0xf8)](',')[_0x38e40f(0x105)](_0x17abb6=>_0x17abb6[_0x38e40f(0x11f)]())[_0x38e40f(0xf6)](Boolean))];}
@@ -1 +1 @@
1
- const a191_0x190d35=a191_0x161a;(function(_0x531383,_0x33df41){const _0x238f17=a191_0x161a,_0x3bbd67=_0x531383();while(!![]){try{const _0x471982=parseInt(_0x238f17(0x129))/0x1+parseInt(_0x238f17(0x17b))/0x2*(-parseInt(_0x238f17(0x14d))/0x3)+-parseInt(_0x238f17(0x13f))/0x4*(-parseInt(_0x238f17(0x16a))/0x5)+parseInt(_0x238f17(0x128))/0x6*(parseInt(_0x238f17(0x14b))/0x7)+parseInt(_0x238f17(0x178))/0x8+parseInt(_0x238f17(0x143))/0x9*(-parseInt(_0x238f17(0x182))/0xa)+-parseInt(_0x238f17(0x16d))/0xb;if(_0x471982===_0x33df41)break;else _0x3bbd67['push'](_0x3bbd67['shift']());}catch(_0x58bd15){_0x3bbd67['push'](_0x3bbd67['shift']());}}}(a191_0x4114,0x3acca));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';function a191_0x4114(){const _0x5e0997=['childrenCount','label','length','expectedCount','menu_state_drift','\x20must\x20be\x20true\x20or\x20false.','rabetbase\x20menu\x20list\x20--format\x20compress','The\x20update\x20may\x20have\x20taken\x20effect;\x20inspect\x20the\x20latest\x20menu\x20facts\x20before\x20retrying.','menu-ids','validation','type','update-recovery','paths','Menu\x20path\x20selector\x20matched\x20multiple\x20menus:\x20','menu_expected_count_mismatch','Would\x20update\x20visibility\x20for\x20','push','expected-count','some','/smartapi/menu/update','updated','Every\x20selected\x20menu\x20already\x20has\x20the\x20requested\x20visibility;\x20no\x20write\x20is\x20needed.','url','\x20skipped,\x20','rawFlags','\x20visible\x20did\x20not\x20match\x20the\x20requested\x20state.','menu_selector_not_found','565140CgzLaZ','262185NgtYyQ','pageType','warnings','cookie','Menu\x20visibility\x20update\x20completed:\x20','byId','Menu\x20id\x20selector(s)\x20not\x20found:\x20','\x20visibility\x20could\x20not\x20be\x20verified\x20safely','Menu\x20path\x20selector\x20not\x20found:\x20','\x20unchanged\x20menu(s).','update\x20menu\x20visibility','depth','verify\x20menu\x20visibility\x20update','path','update-menu-visibility','Final\x20menu\x20visibility\x20readback\x20failed.','Response\x20was\x20lost\x20and\x20menu\x20','write','code','visible','update\x20visibility\x20for','\x20failed.','12voNrxm','stringify','before','expectVisible','1249137mrtdVu','verification','filter','targets','Selected\x20menu\x20visibility\x20changed\x20for\x20id(s):\x20','\x20changed\x20unexpectedly.','Run\x20the\x20command\x20with\x20--dry-run\x20again\x20and\x20update\x20--expected-count.','join','21McVeCi','Abort\x20unless\x20the\x20exact\x20number\x20of\x20selected\x20menus\x20matches','8097FJrUoE','Selected\x20','Run\x20`rabetbase\x20menu\x20list\x20--format\x20compress`\x20and\x20use\x20exact\x20current\x20ids.','\x20menu(s);\x20skipped\x20','isArray','parentId','menu_verification_failed','map','Set\x20exact\x20menus\x20visible\x20or\x20hidden\x20without\x20changing\x20their\x20routes\x20or\x20resources','has','Exact\x20comma-separated\x20menu\x20paths\x20to\x20update','sort','Run\x20`rabetbase\x20menu\x20list\x20--format\x20compress`\x20and\x20use\x20an\x20exact\x20current\x20path.','datasetCode','number','appCode','visibility-update','--menu-ids\x20must\x20contain\x20positive\x20safe\x20integers.','plannedActions','message','menuIds','datasetId','One\x20or\x20more\x20updates\x20may\x20have\x20changed\x20fields\x20outside\x20visibility;\x20inspect\x20current\x20menu\x20facts\x20before\x20retrying.','plan','Updated\x20visibility\x20for\x20','set','trim','menu','POST','335165iFeheo','Menu\x20','menu\x20list','4590872QNwtHH','boolean','failed','flagMissing','modelType','hash','Exact\x20comma-separated\x20menu\x20IDs\x20to\x20update','childrenIds','\x20was\x20not\x20found\x20during\x20visibility\x20verification.','get','str','3095624enaYVG','num','resources','146gFDgiL','\x20menu(s),\x20expected\x20','expect-visible','menus','Failed\x20update\x20requests\x20were\x20not\x20retried;\x20inspect\x20current\x20menu\x20facts\x20before\x20retrying.','Visibility\x20update\x20requests\x20completed\x20but\x20readback\x20could\x20not\x20confirm\x20the\x20requested\x20state','requestedVisible','20ZkpvSG','pageId','beforeById','resourcesValid'];a191_0x4114=function(){return _0x5e0997;};return a191_0x4114();}import{updateMenuEntity}from'../../commands/menu/shared/service.js';import{CliErrors}from'../../errors.js';const BACKEND=[{'method':a191_0x190d35(0x169),'path':'/smartapi/menu/update'}];export const menuVisibilityUpdate={'service':a191_0x190d35(0x168),'command':a191_0x190d35(0x15d),'description':a191_0x190d35(0x155),'risk':a191_0x190d35(0x13a),'structuredErrors':!![],'flags':[{'name':'menu-ids','type':'string','description':a191_0x190d35(0x173)},{'name':'paths','type':'string','description':a191_0x190d35(0x157)},{'name':a191_0x190d35(0x13c),'type':a191_0x190d35(0x16e),'required':!![],'description':'Requested\x20menu\x20visibility'},{'name':a191_0x190d35(0x17d),'type':a191_0x190d35(0x16e),'description':'Abort\x20unless\x20every\x20selected\x20menu\x20has\x20this\x20visibility'},{'name':'expected-count','type':a191_0x190d35(0x15b),'description':a191_0x190d35(0x14c)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x50071d){parseInput(_0x50071d);},async 'dryRun'(_0x2929cb){const _0x31a1f0=a191_0x190d35,_0x4c753b=await buildPlan(_0x2929cb,!![]),_0x473dc0=_0x4c753b[_0x31a1f0(0x164)][_0x31a1f0(0x15f)]?.[_0x31a1f0(0x188)]??0x0,_0x2d8566=_0x4c753b[_0x31a1f0(0x164)]['targets'][_0x31a1f0(0x188)]-_0x473dc0;return menuDryRunResult(_0x4c753b[_0x31a1f0(0x164)],{'method':_0x31a1f0(0x169),'url':_0x31a1f0(0x199),'body':{'updates':_0x4c753b['plan'][_0x31a1f0(0x15f)]?.['map'](_0x486f01=>_0x486f01['body'])??[]},'description':_0x31a1f0(0x195)+_0x473dc0+'\x20menu(s);\x20skip\x20'+_0x2d8566+_0x31a1f0(0x132)});},async 'execute'(_0x5a8c66){const _0x58a6dd=a191_0x190d35,_0x1fb75b=await buildPlan(_0x5a8c66,![]);await recheckMutationSnapshot(_0x5a8c66,_0x1fb75b['plan'],_0x58a6dd(0x133));const _0x4d748f=[],_0x1936e3=[],_0x5ad471=[];for(const _0x2e6f20 of _0x1fb75b[_0x58a6dd(0x164)][_0x58a6dd(0x146)]){if(_0x2e6f20[_0x58a6dd(0x141)][_0x58a6dd(0x13c)]===_0x1fb75b[_0x58a6dd(0x164)][_0x58a6dd(0x181)]){_0x4d748f[_0x58a6dd(0x196)]({'id':_0x2e6f20['id'],'updated':![],'skipped':!![]});continue;}try{await updateMenuEntity(_0x5a8c66[_0x58a6dd(0x15c)],_0x5a8c66['cookie'],{'id':_0x2e6f20['id'],'visible':_0x1fb75b[_0x58a6dd(0x164)]['requestedVisible']}),_0x4d748f['push']({'id':_0x2e6f20['id'],'updated':!![],'skipped':![]});}catch(_0x5991c0){const _0x5bf9cb=mapMenuApiError(_0x5991c0,_0x58a6dd(0x13d),_0x2e6f20['id']);if(isMenuResponseLoss(_0x5991c0)&&_0x5bf9cb[_0x58a6dd(0x13b)]!=='menu_permission_denied'){_0x5ad471[_0x58a6dd(0x196)](_0x2e6f20['id']);continue;}_0x1936e3[_0x58a6dd(0x196)]({'id':_0x2e6f20['id'],'stage':'update','code':_0x5bf9cb[_0x58a6dd(0x13b)],'message':_0x5bf9cb[_0x58a6dd(0x160)]});}}let _0x34a565;try{_0x34a565=await fetchMenuSnapshot(_0x5a8c66['appCode'],_0x5a8c66[_0x58a6dd(0x12c)]);}catch(_0x1d86ba){const _0x3bc879=describeMenuErrorCause(_0x1d86ba,_0x58a6dd(0x135)),_0x5cdd48=_0x5ad471[_0x58a6dd(0x154)](_0x4e6507=>({'id':_0x4e6507,'stage':'update-recovery','code':_0x58a6dd(0x153),'message':'Response\x20was\x20lost\x20for\x20menu\x20'+_0x4e6507+'\x20and\x20final\x20state\x20could\x20not\x20be\x20read.','requestedStateConfirmed':![],'recovered':![]})),_0x2b507c={'stage':_0x58a6dd(0x144),'code':_0x58a6dd(0x153),'message':_0x58a6dd(0x138),'targetIds':_0x1fb75b[_0x58a6dd(0x164)]['targets'][_0x58a6dd(0x154)](_0x4e5044=>_0x4e5044['id']),'requestedStateConfirmed':![],..._0x3bc879};throw menuFailure(asVerificationError(_0x1d86ba,_0x58a6dd(0x180)),_0x1fb75b[_0x58a6dd(0x164)],{'stage':_0x58a6dd(0x144),'succeeded':_0x4d748f,'failedRecords':[..._0x1936e3,..._0x5cdd48,_0x2b507c],'warnings':[_0x58a6dd(0x18d)],'verification':{'status':_0x58a6dd(0x16f),'recoveredCount':0x0,'lookupCommand':_0x58a6dd(0x18c)}});}const _0x31c1ba=[];for(const _0x39377b of _0x4d748f){const _0xba2a93=Number(_0x39377b['id']),_0x46a8f2=_0x1fb75b[_0x58a6dd(0x184)][_0x58a6dd(0x176)](_0xba2a93),_0x2e841b=_0x34a565[_0x58a6dd(0x12e)]['get'](_0xba2a93);try{verifyVisibilityUpdate(_0x46a8f2,_0x2e841b,_0x1fb75b[_0x58a6dd(0x164)][_0x58a6dd(0x181)]);}catch(_0x3e1308){const _0x4183d3=asVerificationError(_0x3e1308,_0x58a6dd(0x16b)+_0xba2a93+'\x20visibility\x20update\x20could\x20not\x20be\x20verified');_0x31c1ba[_0x58a6dd(0x196)]({'id':_0xba2a93,'stage':_0x58a6dd(0x144),'code':_0x4183d3['code'],'message':_0x4183d3[_0x58a6dd(0x160)],'requestedStateConfirmed':![]});}}for(const _0x1cd2a9 of _0x5ad471){const _0x335fb0=_0x1fb75b[_0x58a6dd(0x184)][_0x58a6dd(0x176)](_0x1cd2a9),_0x274bbf=_0x34a565[_0x58a6dd(0x12e)]['get'](_0x1cd2a9);try{verifyVisibilityUpdate(_0x335fb0,_0x274bbf,_0x1fb75b[_0x58a6dd(0x164)][_0x58a6dd(0x181)]),_0x4d748f[_0x58a6dd(0x196)]({'id':_0x1cd2a9,'updated':!![],'skipped':![],'recovered':!![]});}catch(_0x55442e){const _0x458426=asVerificationError(_0x55442e,_0x58a6dd(0x139)+_0x1cd2a9+_0x58a6dd(0x130));_0x31c1ba['push']({'id':_0x1cd2a9,'stage':_0x58a6dd(0x191),'code':_0x458426[_0x58a6dd(0x13b)],'message':_0x458426['message'],'requestedStateConfirmed':![],'recovered':![]});}}if(_0x31c1ba['length']>0x0){const _0x52ed1c=_0x31c1ba[_0x58a6dd(0x154)](_0x251f12=>Number(_0x251f12['id'])),_0x233c7e=_0x4d748f[_0x58a6dd(0x145)](_0x48f6b0=>_0x48f6b0['recovered']===!![])[_0x58a6dd(0x188)],_0x62f001=menuError(_0x58a6dd(0x153),'Menu\x20visibility\x20update\x20could\x20not\x20be\x20verified\x20for\x20id(s):\x20'+_0x52ed1c['join'](',\x20')+'.','Inspect\x20current\x20menu\x20facts\x20before\x20retrying\x20any\x20target.');throw menuFailure(_0x62f001,_0x1fb75b['plan'],{'stage':_0x58a6dd(0x144),'succeeded':_0x4d748f,'failedRecords':[..._0x1936e3,..._0x31c1ba],'warnings':[_0x58a6dd(0x163)],'verification':{'status':'failed',..._0x52ed1c[_0x58a6dd(0x188)]===0x1?{'targetId':_0x52ed1c[0x0]}:{'targetIds':_0x52ed1c},'recoveredCount':_0x233c7e,'lookupCommand':_0x58a6dd(0x18c)}});}const _0x76af33=_0x4d748f[_0x58a6dd(0x145)](_0x1fad1a=>_0x1fad1a[_0x58a6dd(0x121)]===!![])[_0x58a6dd(0x188)],_0x2c6700=_0x4d748f[_0x58a6dd(0x188)]-_0x76af33,_0x564f22={..._0x1fb75b['plan'],'succeeded':_0x4d748f,'failed':_0x1936e3,'warnings':_0x1936e3[_0x58a6dd(0x188)]>0x0?[..._0x1fb75b[_0x58a6dd(0x164)][_0x58a6dd(0x12b)],_0x58a6dd(0x17f)]:_0x1fb75b[_0x58a6dd(0x164)]['warnings'],'verification':{'checkedBy':_0x58a6dd(0x16c),'snapshotHash':_0x34a565[_0x58a6dd(0x172)],'matchesRequestedState':_0x1936e3[_0x58a6dd(0x188)]===0x0,'recoveredCount':_0x5ad471[_0x58a6dd(0x188)]}};return{'ok':_0x1936e3[_0x58a6dd(0x188)]===0x0,'data':_0x564f22,'message':_0x1936e3['length']===0x0?_0x58a6dd(0x165)+_0x76af33+_0x58a6dd(0x150)+_0x2c6700+'\x20unchanged\x20menu(s).':_0x58a6dd(0x12d)+_0x76af33+'\x20updated,\x20'+_0x2c6700+_0x58a6dd(0x124)+_0x1936e3[_0x58a6dd(0x188)]+_0x58a6dd(0x13e)};}};function a191_0x161a(_0x1986f0,_0x14c4c4){_0x1986f0=_0x1986f0-0x121;const _0x4114a0=a191_0x4114();let _0x161ac9=_0x4114a0[_0x1986f0];return _0x161ac9;}function parseInput(_0x36627b){const _0x89ae6d=a191_0x190d35,_0x4ce574=parseMenuIds(_0x36627b[_0x89ae6d(0x177)](_0x89ae6d(0x18e))),_0x4a1afb=parseCsv(_0x36627b['str'](_0x89ae6d(0x192)));if(_0x4ce574[_0x89ae6d(0x188)]===0x0&&_0x4a1afb[_0x89ae6d(0x188)]===0x0)throw CliErrors['validation']('menu\x20visibility-update\x20requires\x20--menu-ids\x20or\x20--paths.');const _0x53e4b3=parseBooleanFlag(_0x36627b,_0x89ae6d(0x13c),!![]),_0x5925ef=parseBooleanFlag(_0x36627b,'expect-visible',![]);let _0x4d49dd;if(hasFlag(_0x36627b,_0x89ae6d(0x197))){_0x4d49dd=_0x36627b[_0x89ae6d(0x179)](_0x89ae6d(0x197));if(!Number['isSafeInteger'](_0x4d49dd)||_0x4d49dd<0x0)throw CliErrors[_0x89ae6d(0x18f)]('--expected-count\x20must\x20be\x20a\x20non-negative\x20integer.');}return{'menuIds':_0x4ce574,'paths':_0x4a1afb,'visible':_0x53e4b3,'expectVisible':_0x5925ef,'expectedCount':_0x4d49dd};}async function buildPlan(_0x25cc81,_0xe635d){const _0xc77fae=a191_0x190d35,_0x443b46=parseInput(_0x25cc81),_0x4b9c14=await fetchMutationSnapshot(_0x25cc81,_0xc77fae(0x133)),_0x29a617=selectTargets(_0x4b9c14[_0xc77fae(0x17e)],_0x443b46['menuIds'],_0x443b46[_0xc77fae(0x192)]);if(_0x443b46['expectedCount']!==undefined&&_0x29a617[_0xc77fae(0x188)]!==_0x443b46['expectedCount'])throw menuError(_0xc77fae(0x194),_0xc77fae(0x14e)+_0x29a617[_0xc77fae(0x188)]+_0xc77fae(0x17c)+_0x443b46[_0xc77fae(0x189)]+'.',_0xc77fae(0x149));if(_0x443b46[_0xc77fae(0x142)]!==undefined){const _0x54a526=_0x29a617[_0xc77fae(0x145)](_0x2d2d87=>_0x2d2d87[_0xc77fae(0x13c)]!==_0x443b46[_0xc77fae(0x142)]);if(_0x54a526['length']>0x0)throw menuError(_0xc77fae(0x18a),_0xc77fae(0x147)+_0x54a526[_0xc77fae(0x154)](_0x338308=>_0x338308['id'])[_0xc77fae(0x14a)](',\x20')+'.','Run\x20the\x20command\x20with\x20--dry-run\x20again\x20and\x20update\x20--expect-visible.');}const _0xce7a95=_0x29a617[_0xc77fae(0x154)](_0x4153db=>({'id':_0x4153db['id'],'label':_0x4153db['label'],'path':_0x4153db['path'],'before':{'visible':_0x4153db['visible']},'after':{'visible':_0x443b46['visible']}})),_0x2f0473=_0xce7a95['filter'](_0x22be0a=>_0x22be0a[_0xc77fae(0x141)][_0xc77fae(0x13c)]!==_0x443b46[_0xc77fae(0x13c)])['map'](_0xc42811=>({'stage':_0xc77fae(0x137),'method':_0xc77fae(0x169),'path':_0xc77fae(0x199),'body':{'appCode':_0x25cc81[_0xc77fae(0x15c)],'id':_0xc42811['id'],'visible':_0x443b46[_0xc77fae(0x13c)]}})),_0x4d7ae0=mutationResult({'operation':_0xc77fae(0x15d),'selector':{'menuIds':_0x443b46[_0xc77fae(0x161)],'paths':_0x443b46['paths']},'before':{'menus':_0x29a617[_0xc77fae(0x154)](_0x1bb013=>({'id':_0x1bb013['id'],'path':_0x1bb013[_0xc77fae(0x136)],'visible':_0x1bb013[_0xc77fae(0x13c)]}))},'after':{'menus':_0x29a617[_0xc77fae(0x154)](_0x1dda09=>({'id':_0x1dda09['id'],'path':_0x1dda09[_0xc77fae(0x136)],'visible':_0x443b46['visible']}))},'dryRun':_0xe635d,'backend':[...BACKEND],'plannedActions':_0x2f0473,'snapshotHash':_0x4b9c14['hash'],'warnings':_0x2f0473[_0xc77fae(0x188)]===0x0?[_0xc77fae(0x122)]:[]});return{'plan':{..._0x4d7ae0,'requestedVisible':_0x443b46[_0xc77fae(0x13c)],'targets':_0xce7a95},'beforeById':new Map(_0x29a617[_0xc77fae(0x154)](_0x257f38=>[_0x257f38['id'],_0x257f38]))};}function selectTargets(_0x5f4d56,_0x232076,_0x3a0e9a){const _0x152171=a191_0x190d35,_0x55f2bb=new Map(_0x5f4d56[_0x152171(0x154)](_0x51bbc6=>[_0x51bbc6['id'],_0x51bbc6])),_0x25278b=new Map(),_0x113245=_0x232076[_0x152171(0x145)](_0x10eb90=>!_0x55f2bb[_0x152171(0x156)](_0x10eb90));if(_0x113245[_0x152171(0x188)]>0x0)throw menuError(_0x152171(0x127),_0x152171(0x12f)+_0x113245[_0x152171(0x14a)](',\x20')+'.',_0x152171(0x14f));for(const _0x5eee9e of _0x232076){_0x25278b[_0x152171(0x166)](_0x5eee9e,_0x55f2bb[_0x152171(0x176)](_0x5eee9e));}for(const _0x1bc9f0 of _0x3a0e9a){const _0x26c20b=_0x5f4d56[_0x152171(0x145)](_0x3bfb21=>_0x3bfb21[_0x152171(0x136)]===_0x1bc9f0);if(_0x26c20b['length']===0x0)throw menuError('menu_selector_not_found',_0x152171(0x131)+JSON['stringify'](_0x1bc9f0)+'.',_0x152171(0x159));if(_0x26c20b[_0x152171(0x188)]>0x1)throw menuError('menu_selector_ambiguous',_0x152171(0x193)+JSON['stringify'](_0x1bc9f0)+'.','Use\x20--menu-ids\x20with\x20one\x20or\x20more\x20of:\x20'+_0x26c20b[_0x152171(0x154)](_0x2d2f62=>_0x2d2f62['id'])[_0x152171(0x14a)](',\x20')+'.');const _0x659928=_0x26c20b[0x0];_0x25278b[_0x152171(0x166)](_0x659928['id'],_0x659928);}return[..._0x25278b['values']()];}function parseMenuIds(_0xfd8b61){const _0x4ade22=a191_0x190d35,_0x252560=parseCsv(_0xfd8b61),_0x38654b=_0x252560[_0x4ade22(0x154)](Number);if(_0x38654b[_0x4ade22(0x198)](_0x156020=>!Number['isSafeInteger'](_0x156020)||_0x156020<=0x0))throw CliErrors[_0x4ade22(0x18f)](_0x4ade22(0x15e));return[...new Set(_0x38654b)];}function parseCsv(_0x1acc58){const _0x36d646=a191_0x190d35;return[...new Set(_0x1acc58['split'](',')['map'](_0xcbd1db=>_0xcbd1db[_0x36d646(0x167)]())['filter'](Boolean))];}function parseBooleanFlag(_0x2f0d83,_0x3c83ac,_0x35291f){const _0x5609cd=a191_0x190d35;if(!hasFlag(_0x2f0d83,_0x3c83ac)){if(_0x35291f)throw CliErrors[_0x5609cd(0x170)](_0x3c83ac);return undefined;}const _0x16c84b=_0x2f0d83[_0x5609cd(0x125)][_0x3c83ac];if(_0x16c84b===!![]||_0x16c84b===![])return _0x16c84b;if(_0x16c84b==='true')return!![];if(_0x16c84b==='false')return![];throw CliErrors[_0x5609cd(0x18f)]('--'+_0x3c83ac+_0x5609cd(0x18b));}function verifyVisibilityUpdate(_0x5a7097,_0x3c8536,_0x5186a2){const _0x2b325e=a191_0x190d35;assertVerified(!!_0x3c8536,_0x2b325e(0x16b)+_0x5a7097['id']+_0x2b325e(0x175)),assertVerified(_0x3c8536[_0x2b325e(0x13c)]===_0x5186a2,_0x2b325e(0x16b)+_0x5a7097['id']+_0x2b325e(0x126));const _0x10b9d3=[['id',_0x3c8536['id'],_0x5a7097['id']],[_0x2b325e(0x152),_0x3c8536[_0x2b325e(0x152)],_0x5a7097[_0x2b325e(0x152)]],[_0x2b325e(0x134),_0x3c8536[_0x2b325e(0x134)],_0x5a7097[_0x2b325e(0x134)]],['label',_0x3c8536[_0x2b325e(0x187)],_0x5a7097[_0x2b325e(0x187)]],[_0x2b325e(0x136),_0x3c8536['path'],_0x5a7097['path']],['url',_0x3c8536[_0x2b325e(0x123)],_0x5a7097['url']],[_0x2b325e(0x190),_0x3c8536[_0x2b325e(0x190)],_0x5a7097[_0x2b325e(0x190)]],[_0x2b325e(0x158),_0x3c8536[_0x2b325e(0x158)],_0x5a7097[_0x2b325e(0x158)]],[_0x2b325e(0x17a),_0x3c8536[_0x2b325e(0x17a)],_0x5a7097[_0x2b325e(0x17a)]],[_0x2b325e(0x185),_0x3c8536[_0x2b325e(0x185)],_0x5a7097[_0x2b325e(0x185)]],[_0x2b325e(0x174),_0x3c8536[_0x2b325e(0x174)],_0x5a7097[_0x2b325e(0x174)]],[_0x2b325e(0x186),_0x3c8536['childrenCount'],_0x5a7097[_0x2b325e(0x186)]],[_0x2b325e(0x183),_0x3c8536[_0x2b325e(0x183)],_0x5a7097[_0x2b325e(0x183)]],[_0x2b325e(0x12a),_0x3c8536['pageType'],_0x5a7097[_0x2b325e(0x12a)]],[_0x2b325e(0x171),_0x3c8536[_0x2b325e(0x171)],_0x5a7097[_0x2b325e(0x171)]],[_0x2b325e(0x162),_0x3c8536['datasetId'],_0x5a7097[_0x2b325e(0x162)]],[_0x2b325e(0x15a),_0x3c8536[_0x2b325e(0x15a)],_0x5a7097[_0x2b325e(0x15a)]]];for(const [_0x13c2f2,_0x2f4a38,_0x272b71]of _0x10b9d3){assertVerified(sameValue(_0x2f4a38,_0x272b71),_0x2b325e(0x16b)+_0x5a7097['id']+'\x20'+_0x13c2f2+_0x2b325e(0x148));}}function sameValue(_0x56c330,_0x2d56cc){const _0x375e70=a191_0x190d35;if(Array[_0x375e70(0x151)](_0x56c330)||Array['isArray'](_0x2d56cc))return JSON[_0x375e70(0x140)](_0x56c330)===JSON[_0x375e70(0x140)](_0x2d56cc);return _0x56c330===_0x2d56cc;}
1
+ const a191_0x785c83=a191_0x3324;(function(_0x5035e7,_0x365cc4){const _0x41c38f=a191_0x3324,_0x2ffc81=_0x5035e7();while(!![]){try{const _0x5c10b3=-parseInt(_0x41c38f(0x1b0))/0x1*(parseInt(_0x41c38f(0x16a))/0x2)+parseInt(_0x41c38f(0x15e))/0x3+-parseInt(_0x41c38f(0x15c))/0x4+parseInt(_0x41c38f(0x168))/0x5*(parseInt(_0x41c38f(0x17d))/0x6)+-parseInt(_0x41c38f(0x192))/0x7*(parseInt(_0x41c38f(0x170))/0x8)+parseInt(_0x41c38f(0x191))/0x9*(-parseInt(_0x41c38f(0x171))/0xa)+-parseInt(_0x41c38f(0x160))/0xb*(-parseInt(_0x41c38f(0x194))/0xc);if(_0x5c10b3===_0x365cc4)break;else _0x2ffc81['push'](_0x2ffc81['shift']());}catch(_0x26bcc2){_0x2ffc81['push'](_0x2ffc81['shift']());}}}(a191_0xac21,0xee26e));function a191_0xac21(){const _0x3886f8=['493218MkBxuI','map','23257289YjgCYx','boolean','write','expectVisible','targets','Menu\x20id\x20selector(s)\x20not\x20found:\x20','menu_permission_denied','menuIds','5SeJSAt','Response\x20was\x20lost\x20and\x20menu\x20','2dkiZcO','Visibility\x20update\x20requests\x20completed\x20but\x20readback\x20could\x20not\x20confirm\x20the\x20requested\x20state','trim','byId','pageId','Menu\x20path\x20selector\x20not\x20found:\x20','147552FAbMUL','211160bCORAb','update\x20menu\x20visibility','datasetId','resourcesValid','beforeById','expected-count','expectedCount','childrenIds','\x20visibility\x20could\x20not\x20be\x20verified\x20safely','Abort\x20unless\x20every\x20selected\x20menu\x20has\x20this\x20visibility','appCode','The\x20update\x20may\x20have\x20taken\x20effect;\x20inspect\x20the\x20latest\x20menu\x20facts\x20before\x20retrying.','2192952FZdcPn','sort','menus','code','path','verify\x20menu\x20visibility\x20update','\x20skipped,\x20','pageType','menu','\x20changed\x20unexpectedly.','Failed\x20update\x20requests\x20were\x20not\x20retried;\x20inspect\x20current\x20menu\x20facts\x20before\x20retrying.','str','Requested\x20menu\x20visibility','stringify','Updated\x20visibility\x20for\x20','flagMissing','Response\x20was\x20lost\x20for\x20menu\x20','Menu\x20','validation','update-menu-visibility','414BzXwNs','168RgQEgu','parentId','24HHAnqM','verification','Exact\x20comma-separated\x20menu\x20paths\x20to\x20update','\x20visible\x20did\x20not\x20match\x20the\x20requested\x20state.','label','body','num','menu_verification_failed','Menu\x20path\x20selector\x20matched\x20multiple\x20menus:\x20','isArray','visible','menu\x20visibility-update\x20requires\x20--menu-ids\x20or\x20--paths.','menu_selector_not_found','false','expect-visible','updated','isSafeInteger','length','depth','\x20unchanged\x20menu(s).','update-recovery','some','rawFlags','failed','\x20must\x20be\x20true\x20or\x20false.','resources','\x20menu(s);\x20skipped\x20','Selected\x20','457609aIQGKi','join','Menu\x20visibility\x20update\x20could\x20not\x20be\x20verified\x20for\x20id(s):\x20','menu_expected_count_mismatch','plan','number','true','Every\x20selected\x20menu\x20already\x20has\x20the\x20requested\x20visibility;\x20no\x20write\x20is\x20needed.','filter','push','\x20was\x20not\x20found\x20during\x20visibility\x20verification.','Abort\x20unless\x20the\x20exact\x20number\x20of\x20selected\x20menus\x20matches','has','menu_selector_ambiguous','get','modelType','\x20and\x20final\x20state\x20could\x20not\x20be\x20read.','message','POST','hash','type','Inspect\x20current\x20menu\x20facts\x20before\x20retrying\x20any\x20target.','string','cookie','before','url','Would\x20update\x20visibility\x20for\x20','--menu-ids\x20must\x20contain\x20positive\x20safe\x20integers.','requestedVisible','Menu\x20visibility\x20update\x20completed:\x20','values','Run\x20the\x20command\x20with\x20--dry-run\x20again\x20and\x20update\x20--expect-visible.','warnings','visibility-update','Selected\x20menu\x20visibility\x20changed\x20for\x20id(s):\x20','Final\x20menu\x20visibility\x20readback\x20failed.','datasetCode','\x20menu(s);\x20skip\x20','paths','set','/smartapi/menu/update','plannedActions','7645700xCEegR','update'];a191_0xac21=function(){return _0x3886f8;};return a191_0xac21();}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_0x785c83(0x144),'path':a191_0x785c83(0x15a)}];export const menuVisibilityUpdate={'service':a191_0x785c83(0x185),'command':a191_0x785c83(0x153),'description':'Set\x20exact\x20menus\x20visible\x20or\x20hidden\x20without\x20changing\x20their\x20routes\x20or\x20resources','risk':a191_0x785c83(0x162),'structuredErrors':!![],'flags':[{'name':'menu-ids','type':a191_0x785c83(0x148),'description':'Exact\x20comma-separated\x20menu\x20IDs\x20to\x20update'},{'name':a191_0x785c83(0x158),'type':'string','description':a191_0x785c83(0x196)},{'name':a191_0x785c83(0x19e),'type':'boolean','required':!![],'description':a191_0x785c83(0x189)},{'name':a191_0x785c83(0x1a2),'type':a191_0x785c83(0x161),'description':a191_0x785c83(0x17a)},{'name':'expected-count','type':a191_0x785c83(0x1b5),'description':a191_0x785c83(0x1bb)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x5b254e){parseInput(_0x5b254e);},async 'dryRun'(_0x54d03d){const _0x21cd2c=a191_0x785c83,_0x34799e=await buildPlan(_0x54d03d,!![]),_0x57fc7d=_0x34799e[_0x21cd2c(0x1b4)]['plannedActions']?.['length']??0x0,_0x1afc7b=_0x34799e[_0x21cd2c(0x1b4)][_0x21cd2c(0x164)][_0x21cd2c(0x1a5)]-_0x57fc7d;return menuDryRunResult(_0x34799e['plan'],{'method':_0x21cd2c(0x144),'url':'/smartapi/menu/update','body':{'updates':_0x34799e[_0x21cd2c(0x1b4)][_0x21cd2c(0x15b)]?.['map'](_0x3302bd=>_0x3302bd[_0x21cd2c(0x199)])??[]},'description':_0x21cd2c(0x14c)+_0x57fc7d+_0x21cd2c(0x157)+_0x1afc7b+_0x21cd2c(0x1a7)});},async 'execute'(_0x148cc5){const _0xf5345f=a191_0x785c83,_0x4e2de3=await buildPlan(_0x148cc5,![]);await recheckMutationSnapshot(_0x148cc5,_0x4e2de3[_0xf5345f(0x1b4)],_0xf5345f(0x172));const _0x505e98=[],_0x3bf78d=[],_0x1a7b29=[];for(const _0x32b076 of _0x4e2de3[_0xf5345f(0x1b4)][_0xf5345f(0x164)]){if(_0x32b076[_0xf5345f(0x14a)]['visible']===_0x4e2de3[_0xf5345f(0x1b4)][_0xf5345f(0x14e)]){_0x505e98[_0xf5345f(0x1b9)]({'id':_0x32b076['id'],'updated':![],'skipped':!![]});continue;}try{await updateMenuEntity(_0x148cc5[_0xf5345f(0x17b)],_0x148cc5[_0xf5345f(0x149)],{'id':_0x32b076['id'],'visible':_0x4e2de3['plan'][_0xf5345f(0x14e)]}),_0x505e98[_0xf5345f(0x1b9)]({'id':_0x32b076['id'],'updated':!![],'skipped':![]});}catch(_0x7a978e){const _0x17e560=mapMenuApiError(_0x7a978e,'update\x20visibility\x20for',_0x32b076['id']);if(isMenuResponseLoss(_0x7a978e)&&_0x17e560[_0xf5345f(0x180)]!==_0xf5345f(0x166)){_0x1a7b29[_0xf5345f(0x1b9)](_0x32b076['id']);continue;}_0x3bf78d[_0xf5345f(0x1b9)]({'id':_0x32b076['id'],'stage':_0xf5345f(0x15d),'code':_0x17e560[_0xf5345f(0x180)],'message':_0x17e560[_0xf5345f(0x143)]});}}let _0xa52ab7;try{_0xa52ab7=await fetchMenuSnapshot(_0x148cc5[_0xf5345f(0x17b)],_0x148cc5['cookie']);}catch(_0x49ae4e){const _0x3d4e0b=describeMenuErrorCause(_0x49ae4e,_0xf5345f(0x182)),_0x308759=_0x1a7b29[_0xf5345f(0x15f)](_0x59f889=>({'id':_0x59f889,'stage':_0xf5345f(0x1a8),'code':_0xf5345f(0x19b),'message':_0xf5345f(0x18d)+_0x59f889+_0xf5345f(0x142),'requestedStateConfirmed':![],'recovered':![]})),_0x106404={'stage':_0xf5345f(0x195),'code':_0xf5345f(0x19b),'message':_0xf5345f(0x155),'targetIds':_0x4e2de3[_0xf5345f(0x1b4)][_0xf5345f(0x164)][_0xf5345f(0x15f)](_0x5a4b97=>_0x5a4b97['id']),'requestedStateConfirmed':![],..._0x3d4e0b};throw menuFailure(asVerificationError(_0x49ae4e,_0xf5345f(0x16b)),_0x4e2de3[_0xf5345f(0x1b4)],{'stage':_0xf5345f(0x195),'succeeded':_0x505e98,'failedRecords':[..._0x3bf78d,..._0x308759,_0x106404],'warnings':[_0xf5345f(0x17c)],'verification':{'status':_0xf5345f(0x1ab),'recoveredCount':0x0,'lookupCommand':'rabetbase\x20menu\x20list\x20--format\x20compress'}});}const _0x4fac0a=[];for(const _0x39256d of _0x505e98){const _0x22c35b=Number(_0x39256d['id']),_0x31508d=_0x4e2de3[_0xf5345f(0x175)][_0xf5345f(0x140)](_0x22c35b),_0x386242=_0xa52ab7[_0xf5345f(0x16d)][_0xf5345f(0x140)](_0x22c35b);try{verifyVisibilityUpdate(_0x31508d,_0x386242,_0x4e2de3[_0xf5345f(0x1b4)]['requestedVisible']);}catch(_0x4a7230){const _0x151444=asVerificationError(_0x4a7230,'Menu\x20'+_0x22c35b+'\x20visibility\x20update\x20could\x20not\x20be\x20verified');_0x4fac0a[_0xf5345f(0x1b9)]({'id':_0x22c35b,'stage':_0xf5345f(0x195),'code':_0x151444[_0xf5345f(0x180)],'message':_0x151444[_0xf5345f(0x143)],'requestedStateConfirmed':![]});}}for(const _0x2cde9e of _0x1a7b29){const _0xd59d33=_0x4e2de3[_0xf5345f(0x175)]['get'](_0x2cde9e),_0x24b4d0=_0xa52ab7['byId'][_0xf5345f(0x140)](_0x2cde9e);try{verifyVisibilityUpdate(_0xd59d33,_0x24b4d0,_0x4e2de3[_0xf5345f(0x1b4)]['requestedVisible']),_0x505e98[_0xf5345f(0x1b9)]({'id':_0x2cde9e,'updated':!![],'skipped':![],'recovered':!![]});}catch(_0x45eb8c){const _0x2e99f3=asVerificationError(_0x45eb8c,_0xf5345f(0x169)+_0x2cde9e+_0xf5345f(0x179));_0x4fac0a[_0xf5345f(0x1b9)]({'id':_0x2cde9e,'stage':_0xf5345f(0x1a8),'code':_0x2e99f3['code'],'message':_0x2e99f3[_0xf5345f(0x143)],'requestedStateConfirmed':![],'recovered':![]});}}if(_0x4fac0a[_0xf5345f(0x1a5)]>0x0){const _0x4d7aaf=_0x4fac0a[_0xf5345f(0x15f)](_0x541f10=>Number(_0x541f10['id'])),_0x2bfdff=_0x505e98[_0xf5345f(0x1b8)](_0x1d4ba6=>_0x1d4ba6['recovered']===!![])[_0xf5345f(0x1a5)],_0x5312d9=menuError(_0xf5345f(0x19b),_0xf5345f(0x1b2)+_0x4d7aaf['join'](',\x20')+'.',_0xf5345f(0x147));throw menuFailure(_0x5312d9,_0x4e2de3[_0xf5345f(0x1b4)],{'stage':_0xf5345f(0x195),'succeeded':_0x505e98,'failedRecords':[..._0x3bf78d,..._0x4fac0a],'warnings':['One\x20or\x20more\x20updates\x20may\x20have\x20changed\x20fields\x20outside\x20visibility;\x20inspect\x20current\x20menu\x20facts\x20before\x20retrying.'],'verification':{'status':_0xf5345f(0x1ab),..._0x4d7aaf[_0xf5345f(0x1a5)]===0x1?{'targetId':_0x4d7aaf[0x0]}:{'targetIds':_0x4d7aaf},'recoveredCount':_0x2bfdff,'lookupCommand':'rabetbase\x20menu\x20list\x20--format\x20compress'}});}const _0x237c26=_0x505e98[_0xf5345f(0x1b8)](_0x318ef5=>_0x318ef5[_0xf5345f(0x1a3)]===!![])[_0xf5345f(0x1a5)],_0x410f3c=_0x505e98[_0xf5345f(0x1a5)]-_0x237c26,_0x22b7b3={..._0x4e2de3[_0xf5345f(0x1b4)],'succeeded':_0x505e98,'failed':_0x3bf78d,'warnings':_0x3bf78d[_0xf5345f(0x1a5)]>0x0?[..._0x4e2de3['plan'][_0xf5345f(0x152)],_0xf5345f(0x187)]:_0x4e2de3[_0xf5345f(0x1b4)][_0xf5345f(0x152)],'verification':{'checkedBy':'menu\x20list','snapshotHash':_0xa52ab7[_0xf5345f(0x145)],'matchesRequestedState':_0x3bf78d[_0xf5345f(0x1a5)]===0x0,'recoveredCount':_0x1a7b29['length']}};return{'ok':_0x3bf78d[_0xf5345f(0x1a5)]===0x0,'data':_0x22b7b3,'message':_0x3bf78d[_0xf5345f(0x1a5)]===0x0?_0xf5345f(0x18b)+_0x237c26+_0xf5345f(0x1ae)+_0x410f3c+_0xf5345f(0x1a7):_0xf5345f(0x14f)+_0x237c26+'\x20updated,\x20'+_0x410f3c+_0xf5345f(0x183)+_0x3bf78d['length']+'\x20failed.'};}};function parseInput(_0x2b8dc5){const _0x29f55b=a191_0x785c83,_0x2bc630=parseMenuIds(_0x2b8dc5['str']('menu-ids')),_0x22ac09=parseCsv(_0x2b8dc5[_0x29f55b(0x188)](_0x29f55b(0x158)));if(_0x2bc630['length']===0x0&&_0x22ac09[_0x29f55b(0x1a5)]===0x0)throw CliErrors['validation'](_0x29f55b(0x19f));const _0x452967=parseBooleanFlag(_0x2b8dc5,_0x29f55b(0x19e),!![]),_0x5ab2f3=parseBooleanFlag(_0x2b8dc5,'expect-visible',![]);let _0x4bb3ec;if(hasFlag(_0x2b8dc5,'expected-count')){_0x4bb3ec=_0x2b8dc5[_0x29f55b(0x19a)](_0x29f55b(0x176));if(!Number[_0x29f55b(0x1a4)](_0x4bb3ec)||_0x4bb3ec<0x0)throw CliErrors[_0x29f55b(0x18f)]('--expected-count\x20must\x20be\x20a\x20non-negative\x20integer.');}return{'menuIds':_0x2bc630,'paths':_0x22ac09,'visible':_0x452967,'expectVisible':_0x5ab2f3,'expectedCount':_0x4bb3ec};}async function buildPlan(_0xe7d732,_0x45f47e){const _0x169998=a191_0x785c83,_0x9073df=parseInput(_0xe7d732),_0x1199c6=await fetchMutationSnapshot(_0xe7d732,'update\x20menu\x20visibility'),_0x58dca1=selectTargets(_0x1199c6[_0x169998(0x17f)],_0x9073df[_0x169998(0x167)],_0x9073df[_0x169998(0x158)]);if(_0x9073df[_0x169998(0x177)]!==undefined&&_0x58dca1[_0x169998(0x1a5)]!==_0x9073df[_0x169998(0x177)])throw menuError(_0x169998(0x1b3),_0x169998(0x1af)+_0x58dca1['length']+'\x20menu(s),\x20expected\x20'+_0x9073df['expectedCount']+'.','Run\x20the\x20command\x20with\x20--dry-run\x20again\x20and\x20update\x20--expected-count.');if(_0x9073df[_0x169998(0x163)]!==undefined){const _0x2ee501=_0x58dca1[_0x169998(0x1b8)](_0xcc25c7=>_0xcc25c7['visible']!==_0x9073df[_0x169998(0x163)]);if(_0x2ee501[_0x169998(0x1a5)]>0x0)throw menuError('menu_state_drift',_0x169998(0x154)+_0x2ee501['map'](_0x43b147=>_0x43b147['id'])[_0x169998(0x1b1)](',\x20')+'.',_0x169998(0x151));}const _0x3bb2c3=_0x58dca1[_0x169998(0x15f)](_0x32dec1=>({'id':_0x32dec1['id'],'label':_0x32dec1[_0x169998(0x198)],'path':_0x32dec1['path'],'before':{'visible':_0x32dec1[_0x169998(0x19e)]},'after':{'visible':_0x9073df[_0x169998(0x19e)]}})),_0x1144f2=_0x3bb2c3[_0x169998(0x1b8)](_0x59b08f=>_0x59b08f[_0x169998(0x14a)][_0x169998(0x19e)]!==_0x9073df[_0x169998(0x19e)])['map'](_0x3965cf=>({'stage':_0x169998(0x190),'method':_0x169998(0x144),'path':'/smartapi/menu/update','body':{'appCode':_0xe7d732[_0x169998(0x17b)],'id':_0x3965cf['id'],'visible':_0x9073df[_0x169998(0x19e)]}})),_0x3c703f=mutationResult({'operation':_0x169998(0x153),'selector':{'menuIds':_0x9073df[_0x169998(0x167)],'paths':_0x9073df['paths']},'before':{'menus':_0x58dca1[_0x169998(0x15f)](_0x4c9c14=>({'id':_0x4c9c14['id'],'path':_0x4c9c14[_0x169998(0x181)],'visible':_0x4c9c14[_0x169998(0x19e)]}))},'after':{'menus':_0x58dca1[_0x169998(0x15f)](_0x564155=>({'id':_0x564155['id'],'path':_0x564155[_0x169998(0x181)],'visible':_0x9073df[_0x169998(0x19e)]}))},'dryRun':_0x45f47e,'backend':[...BACKEND],'plannedActions':_0x1144f2,'snapshotHash':_0x1199c6[_0x169998(0x145)],'warnings':_0x1144f2['length']===0x0?[_0x169998(0x1b7)]:[]});return{'plan':{..._0x3c703f,'requestedVisible':_0x9073df[_0x169998(0x19e)],'targets':_0x3bb2c3},'beforeById':new Map(_0x58dca1[_0x169998(0x15f)](_0x13732f=>[_0x13732f['id'],_0x13732f]))};}function selectTargets(_0x33f356,_0x1e2278,_0x4ff601){const _0x552d97=a191_0x785c83,_0x35c4fc=new Map(_0x33f356[_0x552d97(0x15f)](_0xbe594c=>[_0xbe594c['id'],_0xbe594c])),_0x154262=new Map(),_0x34db45=_0x1e2278[_0x552d97(0x1b8)](_0x1efd22=>!_0x35c4fc[_0x552d97(0x1bc)](_0x1efd22));if(_0x34db45[_0x552d97(0x1a5)]>0x0)throw menuError(_0x552d97(0x1a0),_0x552d97(0x165)+_0x34db45[_0x552d97(0x1b1)](',\x20')+'.','Run\x20`rabetbase\x20menu\x20list\x20--format\x20compress`\x20and\x20use\x20exact\x20current\x20ids.');for(const _0x4ffc30 of _0x1e2278){_0x154262[_0x552d97(0x159)](_0x4ffc30,_0x35c4fc[_0x552d97(0x140)](_0x4ffc30));}for(const _0x876e6f of _0x4ff601){const _0x48a750=_0x33f356['filter'](_0xe40fe6=>_0xe40fe6[_0x552d97(0x181)]===_0x876e6f);if(_0x48a750['length']===0x0)throw menuError(_0x552d97(0x1a0),_0x552d97(0x16f)+JSON[_0x552d97(0x18a)](_0x876e6f)+'.','Run\x20`rabetbase\x20menu\x20list\x20--format\x20compress`\x20and\x20use\x20an\x20exact\x20current\x20path.');if(_0x48a750[_0x552d97(0x1a5)]>0x1)throw menuError(_0x552d97(0x13f),_0x552d97(0x19c)+JSON[_0x552d97(0x18a)](_0x876e6f)+'.','Use\x20--menu-ids\x20with\x20one\x20or\x20more\x20of:\x20'+_0x48a750['map'](_0x1df89f=>_0x1df89f['id'])[_0x552d97(0x1b1)](',\x20')+'.');const _0x43405d=_0x48a750[0x0];_0x154262['set'](_0x43405d['id'],_0x43405d);}return[..._0x154262[_0x552d97(0x150)]()];}function a191_0x3324(_0x185aaa,_0x479363){_0x185aaa=_0x185aaa-0x13f;const _0xac21e7=a191_0xac21();let _0x3324d4=_0xac21e7[_0x185aaa];return _0x3324d4;}function parseMenuIds(_0x1c1cfb){const _0x98db10=a191_0x785c83,_0x4b9828=parseCsv(_0x1c1cfb),_0x3549b5=_0x4b9828[_0x98db10(0x15f)](Number);if(_0x3549b5[_0x98db10(0x1a9)](_0x52c807=>!Number[_0x98db10(0x1a4)](_0x52c807)||_0x52c807<=0x0))throw CliErrors['validation'](_0x98db10(0x14d));return[...new Set(_0x3549b5)];}function parseCsv(_0x31b253){const _0x360827=a191_0x785c83;return[...new Set(_0x31b253['split'](',')[_0x360827(0x15f)](_0x22303b=>_0x22303b[_0x360827(0x16c)]())[_0x360827(0x1b8)](Boolean))];}function parseBooleanFlag(_0x48c673,_0x3e8030,_0x373c0b){const _0x1db65b=a191_0x785c83;if(!hasFlag(_0x48c673,_0x3e8030)){if(_0x373c0b)throw CliErrors[_0x1db65b(0x18c)](_0x3e8030);return undefined;}const _0xb8d1b1=_0x48c673[_0x1db65b(0x1aa)][_0x3e8030];if(_0xb8d1b1===!![]||_0xb8d1b1===![])return _0xb8d1b1;if(_0xb8d1b1===_0x1db65b(0x1b6))return!![];if(_0xb8d1b1===_0x1db65b(0x1a1))return![];throw CliErrors[_0x1db65b(0x18f)]('--'+_0x3e8030+_0x1db65b(0x1ac));}function verifyVisibilityUpdate(_0x320020,_0x2adf78,_0x505317){const _0x2609ce=a191_0x785c83;assertVerified(!!_0x2adf78,'Menu\x20'+_0x320020['id']+_0x2609ce(0x1ba)),assertVerified(_0x2adf78['visible']===_0x505317,_0x2609ce(0x18e)+_0x320020['id']+_0x2609ce(0x197));const _0x2f7d58=[['id',_0x2adf78['id'],_0x320020['id']],[_0x2609ce(0x193),_0x2adf78[_0x2609ce(0x193)],_0x320020[_0x2609ce(0x193)]],[_0x2609ce(0x1a6),_0x2adf78[_0x2609ce(0x1a6)],_0x320020[_0x2609ce(0x1a6)]],[_0x2609ce(0x198),_0x2adf78[_0x2609ce(0x198)],_0x320020[_0x2609ce(0x198)]],[_0x2609ce(0x181),_0x2adf78['path'],_0x320020[_0x2609ce(0x181)]],[_0x2609ce(0x14b),_0x2adf78['url'],_0x320020['url']],[_0x2609ce(0x146),_0x2adf78[_0x2609ce(0x146)],_0x320020[_0x2609ce(0x146)]],[_0x2609ce(0x17e),_0x2adf78[_0x2609ce(0x17e)],_0x320020[_0x2609ce(0x17e)]],[_0x2609ce(0x1ad),_0x2adf78[_0x2609ce(0x1ad)],_0x320020[_0x2609ce(0x1ad)]],['resourcesValid',_0x2adf78[_0x2609ce(0x174)],_0x320020['resourcesValid']],['childrenIds',_0x2adf78[_0x2609ce(0x178)],_0x320020['childrenIds']],['childrenCount',_0x2adf78['childrenCount'],_0x320020['childrenCount']],[_0x2609ce(0x16e),_0x2adf78[_0x2609ce(0x16e)],_0x320020[_0x2609ce(0x16e)]],[_0x2609ce(0x184),_0x2adf78['pageType'],_0x320020[_0x2609ce(0x184)]],[_0x2609ce(0x141),_0x2adf78['modelType'],_0x320020['modelType']],['datasetId',_0x2adf78['datasetId'],_0x320020[_0x2609ce(0x173)]],[_0x2609ce(0x156),_0x2adf78['datasetCode'],_0x320020['datasetCode']]];for(const [_0x13f6be,_0x54334a,_0x238784]of _0x2f7d58){assertVerified(sameValue(_0x54334a,_0x238784),_0x2609ce(0x18e)+_0x320020['id']+'\x20'+_0x13f6be+_0x2609ce(0x186));}}function sameValue(_0x26adb5,_0x1a9efd){const _0x401e5f=a191_0x785c83;if(Array[_0x401e5f(0x19d)](_0x26adb5)||Array[_0x401e5f(0x19d)](_0x1a9efd))return JSON[_0x401e5f(0x18a)](_0x26adb5)===JSON[_0x401e5f(0x18a)](_0x1a9efd);return _0x26adb5===_0x1a9efd;}
@@ -1 +1 @@
1
- const a192_0x20696f=a192_0x236f;(function(_0x233a30,_0x13e53c){const _0x520544=a192_0x236f,_0x238515=_0x233a30();while(!![]){try{const _0x21c879=-parseInt(_0x520544(0x181))/0x1+parseInt(_0x520544(0x186))/0x2+-parseInt(_0x520544(0x1a2))/0x3*(-parseInt(_0x520544(0x1a5))/0x4)+-parseInt(_0x520544(0x1a3))/0x5*(-parseInt(_0x520544(0x1a6))/0x6)+parseInt(_0x520544(0x194))/0x7+parseInt(_0x520544(0x192))/0x8*(parseInt(_0x520544(0x18d))/0x9)+parseInt(_0x520544(0x1a1))/0xa*(-parseInt(_0x520544(0x19c))/0xb);if(_0x21c879===_0x13e53c)break;else _0x238515['push'](_0x238515['shift']());}catch(_0x35a4f0){_0x238515['push'](_0x238515['shift']());}}}(a192_0x206b,0xb3881));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';function a192_0x206b(){const _0x314514=['connectTimeout','13624666CxOgAJ','channelType',';\x20no\x20automatic\x20retry\x20was\x20attempted.',';\x20do\x20not\x20resubmit\x20automatically.','Inspect\x20with\x20','20bzUKyz','231747vhVqcj','2859365DqHWZZ','config-create','76uLLHor','6Npcvtw','Notification\x20config\x20create\x20returned\x20no\x20usable\x20server\x20ID.','input','696631SXxAMH','/notification/channel-config/create','notification','readTimeout','planned','2492812iYAcOV','verification','configName','endpointUrl','channelConfig','write','Notification\x20config\x20create\x20outcome\x20is\x20unknown\x20because\x20no\x20server\x20ID\x20was\x20received.','1448073XiFncO','verified','Created\x20notification\x20config\x20','POST',';\x20do\x20not\x20resubmit.','8QnuCnH','mutation','3236079uOZcpF','create','description','document','appCode','configCode','notification_config_create_outcome_unknown'];a192_0x206b=function(){return _0x314514;};return a192_0x206b();}const CREATE_PATH=a192_0x20696f(0x182);async function prepareCreate(_0x4e0b75){const _0x517d36=a192_0x20696f,_0x480165=await readNotificationDocument(_0x4e0b75,_0x517d36(0x195)),_0x13250a=createMutationInput(_0x4e0b75[_0x517d36(0x198)],_0x480165);return{'document':_0x480165,'input':_0x13250a,'planned':projectNotificationConfig({'appCode':_0x4e0b75[_0x517d36(0x198)],'configName':_0x480165[_0x517d36(0x188)],'channelType':_0x480165[_0x517d36(0x19d)],'endpointUrl':_0x480165[_0x517d36(0x189)],'channelConfig':_0x480165[_0x517d36(0x18a)],'description':_0x480165[_0x517d36(0x196)],'connectTimeout':_0x480165[_0x517d36(0x19b)]??DEFAULT_NOTIFICATION_CONNECT_TIMEOUT,'readTimeout':_0x480165[_0x517d36(0x184)]??DEFAULT_NOTIFICATION_READ_TIMEOUT})};}function a192_0x236f(_0x1a3d00,_0x3d4ade){_0x1a3d00=_0x1a3d00-0x181;const _0x206bb9=a192_0x206b();let _0x236fb1=_0x206bb9[_0x1a3d00];return _0x236fb1;}export const notificationConfigCreate={'service':a192_0x20696f(0x183),'command':a192_0x20696f(0x1a4),'description':'Create\x20an\x20app-level\x20notification\x20config\x20from\x20a\x20secure\x20JSON\x20source','risk':a192_0x20696f(0x18b),'requiresAppCode':!![],'structuredErrors':!![],'flags':[...NOTIFICATION_INPUT_FLAGS,NOTIFICATION_APP_FLAG],async 'validate'(_0x24d216){assertSingleNotificationSource(_0x24d216);},async 'dryRun'(_0x322f3c){const _0x33dc7f=a192_0x20696f,_0x435230=await prepareCreate(_0x322f3c),_0x10de9b=notificationLookupCommand(_0x322f3c[_0x33dc7f(0x198)],_0x435230['document'][_0x33dc7f(0x19d)]);return asDryRunResult({'operation':_0x33dc7f(0x195),'selector':{'appCode':_0x322f3c[_0x33dc7f(0x198)],'configName':_0x435230[_0x33dc7f(0x197)][_0x33dc7f(0x188)],'channelType':_0x435230['document'][_0x33dc7f(0x19d)]},'before':null,'after':_0x435230[_0x33dc7f(0x185)],'dryRun':!![],'backend':{'method':_0x33dc7f(0x190),'path':CREATE_PATH},'warnings':[],'verification':{'status':_0x33dc7f(0x185),'lookupCommand':_0x10de9b}},{'method':_0x33dc7f(0x190),'url':CREATE_PATH});},async 'execute'(_0x1be3b4){const _0x8eb697=a192_0x20696f,_0x195456=await prepareCreate(_0x1be3b4),_0x282004=notificationLookupCommand(_0x1be3b4[_0x8eb697(0x198)],_0x195456[_0x8eb697(0x197)]['channelType']);let _0x28662b;try{_0x28662b=await createNotificationChannelConfig(_0x195456[_0x8eb697(0x1a8)]);}catch(_0x4a463f){if(isPlatformTransportFailure(_0x4a463f))throw notificationError(_0x8eb697(0x19a),_0x8eb697(0x18c),_0x8eb697(0x1a0)+_0x282004+_0x8eb697(0x191));throw safeApiFailure(_0x8eb697(0x195),_0x8eb697(0x193),_0x8eb697(0x1a0)+_0x282004+_0x8eb697(0x19e));}if(!Number['isSafeInteger'](_0x28662b)||_0x28662b<=0x0)throw notificationError('notification_config_create_outcome_unknown',_0x8eb697(0x1a7),_0x8eb697(0x1a0)+_0x282004+_0x8eb697(0x191));let _0x269b3f;try{const _0x14b2db=await getNotificationChannelConfig(_0x28662b,_0x1be3b4[_0x8eb697(0x198)]);_0x269b3f=normalizeExactNotificationConfig(_0x14b2db,_0x28662b,_0x1be3b4[_0x8eb697(0x198)]);}catch{throw safeApiFailure(_0x8eb697(0x195),_0x8eb697(0x187),_0x8eb697(0x1a0)+_0x282004+_0x8eb697(0x19f));}return{'ok':!![],'data':{'operation':_0x8eb697(0x195),'selector':{'appCode':_0x269b3f[_0x8eb697(0x198)],'id':_0x269b3f['id'],'configCode':_0x269b3f[_0x8eb697(0x199)],'configName':_0x269b3f[_0x8eb697(0x188)],'channelType':_0x269b3f['channelType']},'before':null,'after':projectNotificationConfig(_0x269b3f),'dryRun':![],'backend':{'method':_0x8eb697(0x190),'path':CREATE_PATH},'warnings':[],'verification':{'status':_0x8eb697(0x18e),'lookupCommand':_0x282004}},'message':_0x8eb697(0x18f)+_0x269b3f['id']};}};
1
+ function a192_0x2305(){const _0x12cfb1=['POST','6176569dfaCnS','channelConfig','endpointUrl','description','3020679yfSHFg','write','Notification\x20config\x20create\x20outcome\x20is\x20unknown\x20because\x20no\x20server\x20ID\x20was\x20received.','876KOilpe','62964dIvesv','input','connectTimeout','notification_config_create_outcome_unknown',';\x20no\x20automatic\x20retry\x20was\x20attempted.','mutation','verified','document',';\x20do\x20not\x20resubmit.','Create\x20an\x20app-level\x20notification\x20config\x20from\x20a\x20secure\x20JSON\x20source','10pvYlOB','Notification\x20config\x20create\x20returned\x20no\x20usable\x20server\x20ID.','8UoZODx','24840KBXmcg','1775580uOKzUd','config-create','verification','12418893vRUVGr','planned','Inspect\x20with\x20','configName','Created\x20notification\x20config\x20','appCode','readTimeout','channelType','create','configCode','207836KgIigp'];a192_0x2305=function(){return _0x12cfb1;};return a192_0x2305();}const a192_0x1668a7=a192_0xb400;(function(_0x395b0d,_0x118f77){const _0x5a158b=a192_0xb400,_0x3edd12=_0x395b0d();while(!![]){try{const _0x518cfc=parseInt(_0x5a158b(0xc4))/0x1+parseInt(_0x5a158b(0xa9))/0x2+parseInt(_0x5a158b(0xa5))/0x3+-parseInt(_0x5a158b(0xb7))/0x4+parseInt(_0x5a158b(0xb6))/0x5*(-parseInt(_0x5a158b(0xa8))/0x6)+parseInt(_0x5a158b(0xc6))/0x7*(-parseInt(_0x5a158b(0xb5))/0x8)+-parseInt(_0x5a158b(0xba))/0x9*(-parseInt(_0x5a158b(0xb3))/0xa);if(_0x518cfc===_0x118f77)break;else _0x3edd12['push'](_0x3edd12['shift']());}catch(_0xd11270){_0x3edd12['push'](_0x3edd12['shift']());}}}(a192_0x2305,0x8c422));import{asDryRunResult}from'../../commands/common/dry-run.js';import{createNotificationChannelConfig,getNotificationChannelConfig,isPlatformTransportFailure}from'../../core/api-client.js';function a192_0xb400(_0x30f19a,_0x49c2e8){_0x30f19a=_0x30f19a-0xa4;const _0x230531=a192_0x2305();let _0xb40050=_0x230531[_0x30f19a];return _0xb40050;}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='/notification/channel-config/create';async function prepareCreate(_0x1d1867){const _0x36267e=a192_0xb400,_0x1a5cab=await readNotificationDocument(_0x1d1867,_0x36267e(0xc2)),_0x4d4103=createMutationInput(_0x1d1867[_0x36267e(0xbf)],_0x1a5cab);return{'document':_0x1a5cab,'input':_0x4d4103,'planned':projectNotificationConfig({'appCode':_0x1d1867[_0x36267e(0xbf)],'configName':_0x1a5cab[_0x36267e(0xbd)],'channelType':_0x1a5cab[_0x36267e(0xc1)],'endpointUrl':_0x1a5cab[_0x36267e(0xc8)],'channelConfig':_0x1a5cab[_0x36267e(0xc7)],'description':_0x1a5cab[_0x36267e(0xa4)],'connectTimeout':_0x1a5cab[_0x36267e(0xab)]??DEFAULT_NOTIFICATION_CONNECT_TIMEOUT,'readTimeout':_0x1a5cab[_0x36267e(0xc0)]??DEFAULT_NOTIFICATION_READ_TIMEOUT})};}export const notificationConfigCreate={'service':'notification','command':a192_0x1668a7(0xb8),'description':a192_0x1668a7(0xb2),'risk':a192_0x1668a7(0xa6),'requiresAppCode':!![],'structuredErrors':!![],'flags':[...NOTIFICATION_INPUT_FLAGS,NOTIFICATION_APP_FLAG],async 'validate'(_0x59d6ec){assertSingleNotificationSource(_0x59d6ec);},async 'dryRun'(_0x207828){const _0x4d9d03=a192_0x1668a7,_0x41b770=await prepareCreate(_0x207828),_0xf9aeae=notificationLookupCommand(_0x207828['appCode'],_0x41b770[_0x4d9d03(0xb0)][_0x4d9d03(0xc1)]);return asDryRunResult({'operation':_0x4d9d03(0xc2),'selector':{'appCode':_0x207828['appCode'],'configName':_0x41b770[_0x4d9d03(0xb0)][_0x4d9d03(0xbd)],'channelType':_0x41b770[_0x4d9d03(0xb0)][_0x4d9d03(0xc1)]},'before':null,'after':_0x41b770[_0x4d9d03(0xbb)],'dryRun':!![],'backend':{'method':'POST','path':CREATE_PATH},'warnings':[],'verification':{'status':_0x4d9d03(0xbb),'lookupCommand':_0xf9aeae}},{'method':_0x4d9d03(0xc5),'url':CREATE_PATH});},async 'execute'(_0x281d33){const _0x2b50b0=a192_0x1668a7,_0x125a8d=await prepareCreate(_0x281d33),_0x1ea502=notificationLookupCommand(_0x281d33[_0x2b50b0(0xbf)],_0x125a8d[_0x2b50b0(0xb0)][_0x2b50b0(0xc1)]);let _0x44b35d;try{_0x44b35d=await createNotificationChannelConfig(_0x125a8d[_0x2b50b0(0xaa)]);}catch(_0x3c2c03){if(isPlatformTransportFailure(_0x3c2c03))throw notificationError(_0x2b50b0(0xac),_0x2b50b0(0xa7),_0x2b50b0(0xbc)+_0x1ea502+_0x2b50b0(0xb1));throw safeApiFailure(_0x2b50b0(0xc2),_0x2b50b0(0xae),'Inspect\x20with\x20'+_0x1ea502+_0x2b50b0(0xad));}if(!Number['isSafeInteger'](_0x44b35d)||_0x44b35d<=0x0)throw notificationError(_0x2b50b0(0xac),_0x2b50b0(0xb4),_0x2b50b0(0xbc)+_0x1ea502+_0x2b50b0(0xb1));let _0xf71d6f;try{const _0x58fc0b=await getNotificationChannelConfig(_0x44b35d,_0x281d33[_0x2b50b0(0xbf)]);_0xf71d6f=normalizeExactNotificationConfig(_0x58fc0b,_0x44b35d,_0x281d33[_0x2b50b0(0xbf)]);}catch{throw safeApiFailure(_0x2b50b0(0xc2),_0x2b50b0(0xb9),_0x2b50b0(0xbc)+_0x1ea502+';\x20do\x20not\x20resubmit\x20automatically.');}return{'ok':!![],'data':{'operation':_0x2b50b0(0xc2),'selector':{'appCode':_0xf71d6f[_0x2b50b0(0xbf)],'id':_0xf71d6f['id'],'configCode':_0xf71d6f[_0x2b50b0(0xc3)],'configName':_0xf71d6f[_0x2b50b0(0xbd)],'channelType':_0xf71d6f['channelType']},'before':null,'after':projectNotificationConfig(_0xf71d6f),'dryRun':![],'backend':{'method':_0x2b50b0(0xc5),'path':CREATE_PATH},'warnings':[],'verification':{'status':_0x2b50b0(0xaf),'lookupCommand':_0x1ea502}},'message':_0x2b50b0(0xbe)+_0xf71d6f['id']};}};
@@ -1 +1 @@
1
- const a193_0x5e6fab=a193_0x2352;(function(_0xbf5653,_0x9357c2){const _0x5f296d=a193_0x2352,_0x57c18f=_0xbf5653();while(!![]){try{const _0x506dc3=parseInt(_0x5f296d(0x14e))/0x1+-parseInt(_0x5f296d(0x150))/0x2+-parseInt(_0x5f296d(0x151))/0x3+parseInt(_0x5f296d(0x152))/0x4*(-parseInt(_0x5f296d(0x148))/0x5)+-parseInt(_0x5f296d(0x13c))/0x6+-parseInt(_0x5f296d(0x145))/0x7*(parseInt(_0x5f296d(0x13a))/0x8)+parseInt(_0x5f296d(0x13d))/0x9;if(_0x506dc3===_0x9357c2)break;else _0x57c18f['push'](_0x57c18f['shift']());}catch(_0x4eba1f){_0x57c18f['push'](_0x57c18f['shift']());}}}(a193_0x1b3f,0xaaec9));function a193_0x1b3f(){const _0x4e047a=['notification_config_delete_outcome_unknown','channelType','\x20remains\x20present\x20after\x20delete.','POST','269776cFgnUk','high-risk-write','1800824tznjHG','69051WBRIKF','4QMHcfG','notification','before','Delete\x20response\x20was\x20unavailable;\x20list\x20readback\x20proved\x20ID\x20absence\x20without\x20resubmitting.',';\x20no\x20automatic\x20retry\x20was\x20attempted.','appCode','planned','Deleting\x20this\x20app-level\x20config\x20may\x20make\x20dataset-level\x20channels\x20that\x20reference\x20it\x20unavailable;\x20dataset\x20references\x20were\x20not\x20verified\x20by\x20the\x20CLI.','8GWdUgE','Notification\x20config\x20','2883300USGBUD','27417303cxpAgv',';\x20do\x20not\x20resubmit\x20automatically.','Delete\x20an\x20app-level\x20notification\x20config\x20after\x20exact\x20preflight','mutation','/notification/channel-config/delete','notification_config_delete_verification_unavailable','verified','delete','4934209qDxNZG','unshift','some','2535860sCLPeX','Inspect\x20with\x20'];a193_0x1b3f=function(){return _0x4e047a;};return a193_0x1b3f();}import{asDryRunResult}from'../../commands/common/dry-run.js';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_0x5e6fab(0x141),REFERENCE_WARNING=a193_0x5e6fab(0x139);function a193_0x2352(_0x557548,_0x1a6eb6){_0x557548=_0x557548-0x136;const _0x1b3f2e=a193_0x1b3f();let _0x2352af=_0x1b3f2e[_0x557548];return _0x2352af;}async function prepareDelete(_0x266981){const _0x1a6344=a193_0x5e6fab,_0x3a9c1a=readNotificationId(_0x266981),_0x492e42=await requireExactNotificationConfig(_0x266981[_0x1a6344(0x137)],_0x3a9c1a,_0x1a6344(0x144));return{'id':_0x3a9c1a,'before':_0x492e42};}export const notificationConfigDelete={'service':a193_0x5e6fab(0x153),'command':'config-delete','description':a193_0x5e6fab(0x13f),'risk':a193_0x5e6fab(0x14f),'requiresAppCode':!![],'structuredErrors':!![],'flags':[NOTIFICATION_ID_FLAG,NOTIFICATION_APP_FLAG],async 'validate'(_0x59ef4f){readNotificationId(_0x59ef4f),requireNotificationExplicitYes(_0x59ef4f);},async 'dryRun'(_0xb9125c){const _0x2023da=a193_0x5e6fab,_0x2e55b1=await prepareDelete(_0xb9125c),_0x1bff2b=notificationLookupCommand(_0xb9125c[_0x2023da(0x137)],_0x2e55b1[_0x2023da(0x154)]['channelType']);return asDryRunResult({'operation':_0x2023da(0x144),'selector':notificationSelector(_0x2e55b1[_0x2023da(0x154)]),'before':projectNotificationConfig(_0x2e55b1[_0x2023da(0x154)]),'after':null,'dryRun':!![],'backend':{'method':_0x2023da(0x14d),'path':DELETE_PATH},'warnings':[REFERENCE_WARNING],'verification':{'status':_0x2023da(0x138),'lookupCommand':_0x1bff2b}},{'method':'POST','url':DELETE_PATH});},async 'execute'(_0x4cf9cf){const _0xe6a9e6=a193_0x5e6fab;requireNotificationExplicitYes(_0x4cf9cf);const _0x30cc5e=await prepareDelete(_0x4cf9cf),_0x120e2b=notificationLookupCommand(_0x4cf9cf[_0xe6a9e6(0x137)],_0x30cc5e[_0xe6a9e6(0x154)]['channelType']);let _0x1828ba=![];try{await deleteNotificationChannelConfig(_0x30cc5e['id'],_0x4cf9cf['appCode']);}catch(_0x1159c5){if(!isPlatformTransportFailure(_0x1159c5))throw safeApiFailure(_0xe6a9e6(0x144),_0xe6a9e6(0x140),_0xe6a9e6(0x149)+_0x120e2b+_0xe6a9e6(0x136));_0x1828ba=!![];}let _0x29696b;try{_0x29696b=await listNotificationChannelConfigs(_0x4cf9cf[_0xe6a9e6(0x137)],_0x30cc5e[_0xe6a9e6(0x154)][_0xe6a9e6(0x14b)]),validateNotificationDeleteReadback(_0x29696b,_0x4cf9cf['appCode'],_0x30cc5e[_0xe6a9e6(0x154)]['channelType']);}catch{throw notificationError(_0x1828ba?_0xe6a9e6(0x14a):_0xe6a9e6(0x142),_0xe6a9e6(0x13b)+_0x30cc5e['id']+'\x20delete\x20could\x20not\x20be\x20verified.','Inspect\x20with\x20'+_0x120e2b+_0xe6a9e6(0x13e));}if(_0x29696b[_0xe6a9e6(0x147)](_0x54b56e=>_0x54b56e['id']===_0x30cc5e['id']))throw notificationError(_0x1828ba?_0xe6a9e6(0x14a):'notification_config_delete_verification_failed',_0xe6a9e6(0x13b)+_0x30cc5e['id']+_0xe6a9e6(0x14c),_0xe6a9e6(0x149)+_0x120e2b+_0xe6a9e6(0x13e));const _0x443618=[REFERENCE_WARNING];return _0x1828ba&&_0x443618[_0xe6a9e6(0x146)](_0xe6a9e6(0x155)),{'ok':!![],'data':{'operation':_0xe6a9e6(0x144),'selector':notificationSelector(_0x30cc5e['before']),'before':projectNotificationConfig(_0x30cc5e[_0xe6a9e6(0x154)]),'after':null,'dryRun':![],'backend':{'method':_0xe6a9e6(0x14d),'path':DELETE_PATH},'warnings':_0x443618,'verification':{'status':_0xe6a9e6(0x143),'absenceConfirmed':!![],'recoveredAfterUnknownResponse':_0x1828ba,'lookupCommand':_0x120e2b}},'message':'Deleted\x20notification\x20config\x20'+_0x30cc5e['id']};}};
1
+ const a193_0x3df647=a193_0x54d0;(function(_0x1275f1,_0x59dc75){const _0x4caf36=a193_0x54d0,_0x58feeb=_0x1275f1();while(!![]){try{const _0x3c7684=parseInt(_0x4caf36(0x1e8))/0x1+parseInt(_0x4caf36(0x1da))/0x2*(parseInt(_0x4caf36(0x1d5))/0x3)+-parseInt(_0x4caf36(0x1e2))/0x4+-parseInt(_0x4caf36(0x1d4))/0x5*(-parseInt(_0x4caf36(0x1ef))/0x6)+-parseInt(_0x4caf36(0x1ee))/0x7*(parseInt(_0x4caf36(0x1dd))/0x8)+parseInt(_0x4caf36(0x1d9))/0x9*(parseInt(_0x4caf36(0x1f0))/0xa)+-parseInt(_0x4caf36(0x1e0))/0xb;if(_0x3c7684===_0x59dc75)break;else _0x58feeb['push'](_0x58feeb['shift']());}catch(_0x3d6d97){_0x58feeb['push'](_0x58feeb['shift']());}}}(a193_0x3ebc,0xf15d2));import{asDryRunResult}from'../../commands/common/dry-run.js';function a193_0x3ebc(){const _0x514bf6=[';\x20no\x20automatic\x20retry\x20was\x20attempted.','4304671piexJY','1818ZCkWwE','17636110IaCsvS','verified','POST','/notification/channel-config/delete','Delete\x20response\x20was\x20unavailable;\x20list\x20readback\x20proved\x20ID\x20absence\x20without\x20resubmitting.','notification_config_delete_outcome_unknown','2720McayQK','136443aaiTpi','Deleted\x20notification\x20config\x20','notification','config-delete','9hdTjsC','2PVykJK','Delete\x20an\x20app-level\x20notification\x20config\x20after\x20exact\x20preflight',';\x20do\x20not\x20resubmit\x20automatically.','16wihQfx','Inspect\x20with\x20','notification_config_delete_verification_unavailable','4202770ijEyOo','before','1368668cTIsKN','notification_config_delete_verification_failed','high-risk-write','some','planned','\x20delete\x20could\x20not\x20be\x20verified.','968845gZAOko','\x20remains\x20present\x20after\x20delete.','channelType','delete','appCode'];a193_0x3ebc=function(){return _0x514bf6;};return a193_0x3ebc();}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';function a193_0x54d0(_0x1db138,_0x3aa4e7){_0x1db138=_0x1db138-0x1cf;const _0x3ebccd=a193_0x3ebc();let _0x54d0cd=_0x3ebccd[_0x1db138];return _0x54d0cd;}const DELETE_PATH=a193_0x3df647(0x1d1),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(_0x48234e){const _0x553518=a193_0x3df647,_0x2720c3=readNotificationId(_0x48234e),_0x42a77b=await requireExactNotificationConfig(_0x48234e[_0x553518(0x1ec)],_0x2720c3,'delete');return{'id':_0x2720c3,'before':_0x42a77b};}export const notificationConfigDelete={'service':a193_0x3df647(0x1d7),'command':a193_0x3df647(0x1d8),'description':a193_0x3df647(0x1db),'risk':a193_0x3df647(0x1e4),'requiresAppCode':!![],'structuredErrors':!![],'flags':[NOTIFICATION_ID_FLAG,NOTIFICATION_APP_FLAG],async 'validate'(_0x2c9092){readNotificationId(_0x2c9092),requireNotificationExplicitYes(_0x2c9092);},async 'dryRun'(_0x1d07ed){const _0x4e6994=a193_0x3df647,_0x3fe3f3=await prepareDelete(_0x1d07ed),_0x2dd4df=notificationLookupCommand(_0x1d07ed[_0x4e6994(0x1ec)],_0x3fe3f3[_0x4e6994(0x1e1)]['channelType']);return asDryRunResult({'operation':'delete','selector':notificationSelector(_0x3fe3f3[_0x4e6994(0x1e1)]),'before':projectNotificationConfig(_0x3fe3f3['before']),'after':null,'dryRun':!![],'backend':{'method':_0x4e6994(0x1d0),'path':DELETE_PATH},'warnings':[REFERENCE_WARNING],'verification':{'status':_0x4e6994(0x1e6),'lookupCommand':_0x2dd4df}},{'method':_0x4e6994(0x1d0),'url':DELETE_PATH});},async 'execute'(_0xc435f){const _0x8859dd=a193_0x3df647;requireNotificationExplicitYes(_0xc435f);const _0x2b5415=await prepareDelete(_0xc435f),_0x3e6ec1=notificationLookupCommand(_0xc435f[_0x8859dd(0x1ec)],_0x2b5415[_0x8859dd(0x1e1)]['channelType']);let _0x22ac07=![];try{await deleteNotificationChannelConfig(_0x2b5415['id'],_0xc435f[_0x8859dd(0x1ec)]);}catch(_0x1d4859){if(!isPlatformTransportFailure(_0x1d4859))throw safeApiFailure(_0x8859dd(0x1eb),'mutation',_0x8859dd(0x1de)+_0x3e6ec1+_0x8859dd(0x1ed));_0x22ac07=!![];}let _0x79981c;try{_0x79981c=await listNotificationChannelConfigs(_0xc435f['appCode'],_0x2b5415[_0x8859dd(0x1e1)][_0x8859dd(0x1ea)]),validateNotificationDeleteReadback(_0x79981c,_0xc435f[_0x8859dd(0x1ec)],_0x2b5415[_0x8859dd(0x1e1)][_0x8859dd(0x1ea)]);}catch{throw notificationError(_0x22ac07?'notification_config_delete_outcome_unknown':_0x8859dd(0x1df),'Notification\x20config\x20'+_0x2b5415['id']+_0x8859dd(0x1e7),_0x8859dd(0x1de)+_0x3e6ec1+_0x8859dd(0x1dc));}if(_0x79981c[_0x8859dd(0x1e5)](_0xbb9f40=>_0xbb9f40['id']===_0x2b5415['id']))throw notificationError(_0x22ac07?_0x8859dd(0x1d3):_0x8859dd(0x1e3),'Notification\x20config\x20'+_0x2b5415['id']+_0x8859dd(0x1e9),'Inspect\x20with\x20'+_0x3e6ec1+';\x20do\x20not\x20resubmit\x20automatically.');const _0x401956=[REFERENCE_WARNING];return _0x22ac07&&_0x401956['unshift'](_0x8859dd(0x1d2)),{'ok':!![],'data':{'operation':_0x8859dd(0x1eb),'selector':notificationSelector(_0x2b5415[_0x8859dd(0x1e1)]),'before':projectNotificationConfig(_0x2b5415[_0x8859dd(0x1e1)]),'after':null,'dryRun':![],'backend':{'method':_0x8859dd(0x1d0),'path':DELETE_PATH},'warnings':_0x401956,'verification':{'status':_0x8859dd(0x1cf),'absenceConfirmed':!![],'recoveredAfterUnknownResponse':_0x22ac07,'lookupCommand':_0x3e6ec1}},'message':_0x8859dd(0x1d6)+_0x2b5415['id']};}};
@@ -1 +1 @@
1
- const a194_0x2402b6=a194_0x4190;function a194_0x4190(_0x52cb18,_0x288f13){_0x52cb18=_0x52cb18-0x166;const _0x196a9c=a194_0x196a();let _0x419030=_0x196a9c[_0x52cb18];return _0x419030;}(function(_0x267448,_0x4225b5){const _0x2c595b=a194_0x4190,_0x451022=_0x267448();while(!![]){try{const _0x351035=parseInt(_0x2c595b(0x17e))/0x1*(-parseInt(_0x2c595b(0x17b))/0x2)+parseInt(_0x2c595b(0x172))/0x3*(parseInt(_0x2c595b(0x171))/0x4)+parseInt(_0x2c595b(0x183))/0x5+-parseInt(_0x2c595b(0x181))/0x6*(parseInt(_0x2c595b(0x173))/0x7)+parseInt(_0x2c595b(0x16c))/0x8*(-parseInt(_0x2c595b(0x16f))/0x9)+-parseInt(_0x2c595b(0x177))/0xa+parseInt(_0x2c595b(0x170))/0xb;if(_0x351035===_0x4225b5)break;else _0x451022['push'](_0x451022['shift']());}catch(_0x46edbe){_0x451022['push'](_0x451022['shift']());}}}(a194_0x196a,0x844cc));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{listNotificationChannelConfigs}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{NOTIFICATION_CHANNEL_TYPES,projectNotificationListConfig,readNotificationChannelType}from'../../commands/notification/shared.js';function a194_0x196a(){const _0x38a6d9=['4hGyXYH','1408326eBFJLy','1883wIMqFn','bool','appCode','all','9674720OqOUBK','Use\x20--all,\x20or\x20query\x20one\x20explicit\x20--type.','Notification\x20channel\x20type','map','156802WMpEhx','trim','List\x20app-level\x20notification\x20configs\x20and\x20their\x20configCode\x20values','7xzmIyG','boolean','List\x20configs\x20for\x20every\x20supported\x20notification\x20channel\x20type','678xOqWrt','length','3450325ULonXM','notification','config-list','str','string','\x20notification\x20config(s)\x20across\x20all\x20channel\x20types','type','376048ZounCj','--all\x20and\x20--type\x20are\x20mutually\x20exclusive.','Found\x20','54KYNviG','13322155RDcssP'];a194_0x196a=function(){return _0x38a6d9;};return a194_0x196a();}export const notificationConfigList={'service':a194_0x2402b6(0x166),'command':a194_0x2402b6(0x167),'description':a194_0x2402b6(0x17d),'risk':'read','flags':[APPCODE_FLAG_OPTIONAL,{'name':a194_0x2402b6(0x16b),'type':a194_0x2402b6(0x169),'description':a194_0x2402b6(0x179),'enum':NOTIFICATION_CHANNEL_TYPES},{'name':'all','type':a194_0x2402b6(0x17f),'default':![],'description':a194_0x2402b6(0x180)}],async 'validate'(_0x5d5e11){const _0x39045f=a194_0x2402b6;if(_0x5d5e11[_0x39045f(0x174)]('all')&&_0x5d5e11[_0x39045f(0x168)](_0x39045f(0x16b))[_0x39045f(0x17c)]())throw CliErrors['validation'](_0x39045f(0x16d),_0x39045f(0x178));if(_0x5d5e11[_0x39045f(0x174)](_0x39045f(0x176)))return;readNotificationChannelType(_0x5d5e11);},async 'execute'(_0x2b66cd){const _0x3f5504=a194_0x2402b6;if(_0x2b66cd[_0x3f5504(0x174)]('all')){const _0x40fab4=await Promise[_0x3f5504(0x176)](NOTIFICATION_CHANNEL_TYPES[_0x3f5504(0x17a)](_0x13a24d=>listNotificationChannelConfigs(_0x2b66cd[_0x3f5504(0x175)],_0x13a24d))),_0x303b89=_0x40fab4['flat']()['map'](projectNotificationListConfig);return{'ok':!![],'data':{'appCode':_0x2b66cd[_0x3f5504(0x175)],'channelTypes':NOTIFICATION_CHANNEL_TYPES,'count':_0x303b89[_0x3f5504(0x182)],'configs':_0x303b89},'message':'Found\x20'+_0x303b89[_0x3f5504(0x182)]+_0x3f5504(0x16a)};}const _0x30a243=readNotificationChannelType(_0x2b66cd),_0x10037b=await listNotificationChannelConfigs(_0x2b66cd[_0x3f5504(0x175)],_0x30a243),_0x421dad=_0x10037b[_0x3f5504(0x17a)](projectNotificationListConfig);return{'ok':!![],'data':{'appCode':_0x2b66cd[_0x3f5504(0x175)],'channelType':_0x30a243,'count':_0x421dad[_0x3f5504(0x182)],'configs':_0x421dad},'message':_0x3f5504(0x16e)+_0x421dad['length']+'\x20'+_0x30a243+'\x20notification\x20config(s)'};}};
1
+ function a194_0x372e(_0x644eae,_0x125c7a){_0x644eae=_0x644eae-0x173;const _0x46003c=a194_0x4600();let _0x372e5e=_0x46003c[_0x644eae];return _0x372e5e;}const a194_0x4c469e=a194_0x372e;function a194_0x4600(){const _0x2cda5d=['Use\x20--all,\x20or\x20query\x20one\x20explicit\x20--type.','boolean','string','84707WFZfTI','config-list','notification','List\x20app-level\x20notification\x20configs\x20and\x20their\x20configCode\x20values','type','bool','8344vdgMga','1641576omsCrR','\x20notification\x20config(s)','List\x20configs\x20for\x20every\x20supported\x20notification\x20channel\x20type','length','3498030zBJRMf','map','472IWvKEg','\x20notification\x20config(s)\x20across\x20all\x20channel\x20types','read','--all\x20and\x20--type\x20are\x20mutually\x20exclusive.','11038878ZCpgXo','trim','453FeTjgL','4446492stQina','Found\x20','appCode','all','429114VfZFVg','str'];a194_0x4600=function(){return _0x2cda5d;};return a194_0x4600();}(function(_0xdb14b0,_0x2b39ec){const _0x1d9bb3=a194_0x372e,_0x5967f2=_0xdb14b0();while(!![]){try{const _0x4471bf=-parseInt(_0x1d9bb3(0x17b))/0x1+-parseInt(_0x1d9bb3(0x187))/0x2+parseInt(_0x1d9bb3(0x176))/0x3*(-parseInt(_0x1d9bb3(0x186))/0x4)+-parseInt(_0x1d9bb3(0x18b))/0x5+parseInt(_0x1d9bb3(0x177))/0x6+parseInt(_0x1d9bb3(0x180))/0x7*(parseInt(_0x1d9bb3(0x18d))/0x8)+parseInt(_0x1d9bb3(0x174))/0x9;if(_0x4471bf===_0x2b39ec)break;else _0x5967f2['push'](_0x5967f2['shift']());}catch(_0x285b66){_0x5967f2['push'](_0x5967f2['shift']());}}}(a194_0x4600,0x65d41));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{listNotificationChannelConfigs}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{NOTIFICATION_CHANNEL_TYPES,projectNotificationListConfig,readNotificationChannelType}from'../../commands/notification/shared.js';export const notificationConfigList={'service':a194_0x4c469e(0x182),'command':a194_0x4c469e(0x181),'description':a194_0x4c469e(0x183),'risk':a194_0x4c469e(0x18f),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a194_0x4c469e(0x184),'type':a194_0x4c469e(0x17f),'description':'Notification\x20channel\x20type','enum':NOTIFICATION_CHANNEL_TYPES},{'name':'all','type':a194_0x4c469e(0x17e),'default':![],'description':a194_0x4c469e(0x189)}],async 'validate'(_0x32047f){const _0x527c33=a194_0x4c469e;if(_0x32047f[_0x527c33(0x185)](_0x527c33(0x17a))&&_0x32047f[_0x527c33(0x17c)]('type')[_0x527c33(0x175)]())throw CliErrors['validation'](_0x527c33(0x173),_0x527c33(0x17d));if(_0x32047f[_0x527c33(0x185)](_0x527c33(0x17a)))return;readNotificationChannelType(_0x32047f);},async 'execute'(_0x2a4c0b){const _0x43068c=a194_0x4c469e;if(_0x2a4c0b['bool'](_0x43068c(0x17a))){const _0x1aac67=await Promise['all'](NOTIFICATION_CHANNEL_TYPES[_0x43068c(0x18c)](_0x4dee2e=>listNotificationChannelConfigs(_0x2a4c0b[_0x43068c(0x179)],_0x4dee2e))),_0x59527e=_0x1aac67['flat']()['map'](projectNotificationListConfig);return{'ok':!![],'data':{'appCode':_0x2a4c0b[_0x43068c(0x179)],'channelTypes':NOTIFICATION_CHANNEL_TYPES,'count':_0x59527e[_0x43068c(0x18a)],'configs':_0x59527e},'message':'Found\x20'+_0x59527e[_0x43068c(0x18a)]+_0x43068c(0x18e)};}const _0x5a682f=readNotificationChannelType(_0x2a4c0b),_0x1e13bf=await listNotificationChannelConfigs(_0x2a4c0b[_0x43068c(0x179)],_0x5a682f),_0x5c7632=_0x1e13bf[_0x43068c(0x18c)](projectNotificationListConfig);return{'ok':!![],'data':{'appCode':_0x2a4c0b[_0x43068c(0x179)],'channelType':_0x5a682f,'count':_0x5c7632[_0x43068c(0x18a)],'configs':_0x5c7632},'message':_0x43068c(0x178)+_0x5c7632[_0x43068c(0x18a)]+'\x20'+_0x5a682f+_0x43068c(0x188)};}};
@@ -1 +1 @@
1
- function a195_0x55fd(_0x31850f,_0x52485c){_0x31850f=_0x31850f-0x6c;const _0x4d7bcb=a195_0x4d7b();let _0x55fd0f=_0x4d7bcb[_0x31850f];return _0x55fd0f;}const a195_0x13b8bc=a195_0x55fd;(function(_0x30e301,_0x5892e2){const _0x4053d8=a195_0x55fd,_0x5a3962=_0x30e301();while(!![]){try{const _0x9138e6=-parseInt(_0x4053d8(0x77))/0x1*(parseInt(_0x4053d8(0x71))/0x2)+parseInt(_0x4053d8(0x87))/0x3+-parseInt(_0x4053d8(0x88))/0x4*(-parseInt(_0x4053d8(0x7f))/0x5)+-parseInt(_0x4053d8(0x7c))/0x6*(parseInt(_0x4053d8(0x8b))/0x7)+-parseInt(_0x4053d8(0x6f))/0x8+-parseInt(_0x4053d8(0x6e))/0x9*(parseInt(_0x4053d8(0x76))/0xa)+-parseInt(_0x4053d8(0x72))/0xb*(-parseInt(_0x4053d8(0x73))/0xc);if(_0x9138e6===_0x5892e2)break;else _0x5a3962['push'](_0x5a3962['shift']());}catch(_0x5be1bc){_0x5a3962['push'](_0x5a3962['shift']());}}}(a195_0x4d7b,0x3b068));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_0x13b8bc(0x70);async function prepareUpdate(_0x464f1e){const _0x2be1df=a195_0x13b8bc,_0x39932e=readNotificationId(_0x464f1e),_0x4b6ff5=await readNotificationDocument(_0x464f1e,_0x2be1df(0x6d)),_0x580116=await requireExactNotificationConfig(_0x464f1e[_0x2be1df(0x74)],_0x39932e,_0x2be1df(0x6d));return{'id':_0x39932e,'patch':_0x4b6ff5,'before':_0x580116,'payload':mergeUpdateInput(_0x580116,_0x4b6ff5),'planned':plannedUpdateProjection(_0x580116,_0x4b6ff5)};}export const notificationConfigUpdate={'service':'notification','command':'config-update','description':a195_0x13b8bc(0x91),'risk':a195_0x13b8bc(0x8f),'requiresAppCode':!![],'structuredErrors':!![],'flags':[NOTIFICATION_ID_FLAG,...NOTIFICATION_INPUT_FLAGS,NOTIFICATION_APP_FLAG],async 'validate'(_0x4eb9fc){readNotificationId(_0x4eb9fc),assertSingleNotificationSource(_0x4eb9fc),requireNotificationExplicitYes(_0x4eb9fc);},async 'dryRun'(_0x5766c5){const _0x2fe966=a195_0x13b8bc,_0x2366dd=await prepareUpdate(_0x5766c5),_0x8e1998=notificationLookupCommand(_0x5766c5[_0x2fe966(0x74)],_0x2366dd[_0x2fe966(0x7d)][_0x2fe966(0x7b)]);return asDryRunResult({'operation':'update','selector':notificationSelector(_0x2366dd['before']),'before':projectNotificationConfig(_0x2366dd[_0x2fe966(0x7d)]),'after':_0x2366dd[_0x2fe966(0x8e)],'dryRun':!![],'backend':{'method':_0x2fe966(0x8c),'path':UPDATE_PATH},'warnings':[],'verification':{'status':_0x2fe966(0x8e),'lookupCommand':_0x8e1998}},{'method':_0x2fe966(0x8c),'url':UPDATE_PATH});},async 'execute'(_0xf60063){const _0x29a125=a195_0x13b8bc;requireNotificationExplicitYes(_0xf60063);const _0xc7fc40=await prepareUpdate(_0xf60063),_0x2a8c5b=notificationLookupCommand(_0xf60063[_0x29a125(0x74)],_0xc7fc40[_0x29a125(0x7d)][_0x29a125(0x7b)]);let _0x4ca3f7=![];try{await updateNotificationChannelConfig(_0xc7fc40[_0x29a125(0x79)]);}catch(_0x4afeb4){if(!isPlatformTransportFailure(_0x4afeb4))throw safeApiFailure(_0x29a125(0x6d),_0x29a125(0x78),_0x29a125(0x8a)+_0xc7fc40['id']+_0x29a125(0x8d)+_0x2a8c5b+_0x29a125(0x75));_0x4ca3f7=!![];}let _0x5b92f2;try{const _0x55ee07=await getNotificationChannelConfig(_0xc7fc40['id'],_0xf60063[_0x29a125(0x74)]);_0x5b92f2=normalizeExactNotificationConfig(_0x55ee07,_0xc7fc40['id'],_0xf60063[_0x29a125(0x74)]);}catch{throw notificationError(_0x4ca3f7?_0x29a125(0x82):'notification_config_update_verification_unavailable',_0x29a125(0x80)+_0xc7fc40['id']+_0x29a125(0x83),_0x29a125(0x7e)+_0xc7fc40['id']+_0x29a125(0x81)+_0x2a8c5b+_0x29a125(0x7a));}const _0x577ee3=requestedSafeFieldsMatch(_0xc7fc40[_0x29a125(0x7d)],_0x5b92f2,_0xc7fc40[_0x29a125(0x90)]);if(!_0x577ee3[_0x29a125(0x6c)]||_0x4ca3f7&&!_0x577ee3[_0x29a125(0x92)])throw notificationError(_0x4ca3f7?_0x29a125(0x82):'notification_config_update_verification_failed',_0x29a125(0x80)+_0xc7fc40['id']+_0x29a125(0x89),_0x29a125(0x7e)+_0xc7fc40['id']+_0x29a125(0x81)+_0x2a8c5b+';\x20do\x20not\x20resubmit\x20automatically.');const _0x144f42=_0x4ca3f7?['Update\x20response\x20was\x20unavailable;\x20exact-ID\x20readback\x20proved\x20changed\x20safe\x20fields\x20without\x20resubmitting.']:[];return{'ok':!![],'data':{'operation':_0x29a125(0x6d),'selector':notificationSelector(_0x5b92f2),'before':projectNotificationConfig(_0xc7fc40[_0x29a125(0x7d)]),'after':projectNotificationConfig(_0x5b92f2),'dryRun':![],'backend':{'method':_0x29a125(0x8c),'path':UPDATE_PATH},'warnings':_0x144f42,'verification':{'status':_0x29a125(0x85),'recoveredAfterUnknownResponse':_0x4ca3f7,'verifiedFields':_0x577ee3[_0x29a125(0x84)],'lookupCommand':_0x2a8c5b}},'message':_0x29a125(0x86)+_0x5b92f2['id']};}};function a195_0x4d7b(){const _0x148cc1=['channelType','18tcpmxf','before','Inspect\x20with\x20--id\x20','15LWeJeq','Notification\x20config\x20','\x20via\x20','notification_config_update_outcome_unknown','\x20update\x20could\x20not\x20be\x20verified\x20by\x20exact\x20ID.','verifiedFields','verified','Updated\x20notification\x20config\x20','719664TMoTbH','26936PzUjHZ','\x20readback\x20does\x20not\x20prove\x20the\x20requested\x20update.','Inspect\x20ID\x20','208957JVaewZ','POST','\x20with\x20','planned','high-risk-write','patch','Update\x20an\x20app-level\x20notification\x20config\x20from\x20a\x20secure\x20JSON\x20patch','provesChange','allMatch','update','3861153tUmCbQ','1511960RKnWHP','/notification/channel-config/update','20egNoaT','8969983YJWqmD','12roSdQT','appCode',';\x20no\x20automatic\x20retry\x20was\x20attempted.','10wCheMh','12621NlKyVE','mutation','payload',';\x20do\x20not\x20resubmit\x20automatically.'];a195_0x4d7b=function(){return _0x148cc1;};return a195_0x4d7b();}
1
+ const a195_0x398059=a195_0x6ebc;function a195_0x3ee1(){const _0xc6b99f=['notification_config_update_outcome_unknown','appCode','high-risk-write','verifiedFields','payload','1113375sXpfyQ','allMatch','planned','399606zXskbz','1154692ihJbEB','7479567FQKnbO','49iIXjNf','Update\x20an\x20app-level\x20notification\x20config\x20from\x20a\x20secure\x20JSON\x20patch','Updated\x20notification\x20config\x20','/notification/channel-config/update',';\x20no\x20automatic\x20retry\x20was\x20attempted.','notification_config_update_verification_unavailable','Inspect\x20with\x20--id\x20','1UZIljf','before','patch','update',';\x20do\x20not\x20resubmit\x20automatically.','config-update','Notification\x20config\x20','Update\x20response\x20was\x20unavailable;\x20exact-ID\x20readback\x20proved\x20changed\x20safe\x20fields\x20without\x20resubmitting.','195186FwtvDf','verified','\x20via\x20','\x20with\x20','POST','notification','provesChange','notification_config_update_verification_failed','365074HFJLvT','2504032eJfQeb','channelType'];a195_0x3ee1=function(){return _0xc6b99f;};return a195_0x3ee1();}function a195_0x6ebc(_0x3aee0f,_0x738eae){_0x3aee0f=_0x3aee0f-0x126;const _0x3ee18e=a195_0x3ee1();let _0x6ebc42=_0x3ee18e[_0x3aee0f];return _0x6ebc42;}(function(_0x417a95,_0xcd9ddb){const _0x3fb7df=a195_0x6ebc,_0x26494f=_0x417a95();while(!![]){try{const _0x195de8=parseInt(_0x3fb7df(0x13a))/0x1*(-parseInt(_0x3fb7df(0x14a))/0x2)+parseInt(_0x3fb7df(0x130))/0x3+parseInt(_0x3fb7df(0x131))/0x4+-parseInt(_0x3fb7df(0x12d))/0x5+-parseInt(_0x3fb7df(0x142))/0x6*(parseInt(_0x3fb7df(0x133))/0x7)+-parseInt(_0x3fb7df(0x126))/0x8+parseInt(_0x3fb7df(0x132))/0x9;if(_0x195de8===_0xcd9ddb)break;else _0x26494f['push'](_0x26494f['shift']());}catch(_0x482f32){_0x26494f['push'](_0x26494f['shift']());}}}(a195_0x3ee1,0x4af3d));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_0x398059(0x136);async function prepareUpdate(_0x45c17b){const _0x1a0225=a195_0x398059,_0xe451a6=readNotificationId(_0x45c17b),_0x12a584=await readNotificationDocument(_0x45c17b,_0x1a0225(0x13d)),_0x37f0f8=await requireExactNotificationConfig(_0x45c17b[_0x1a0225(0x129)],_0xe451a6,_0x1a0225(0x13d));return{'id':_0xe451a6,'patch':_0x12a584,'before':_0x37f0f8,'payload':mergeUpdateInput(_0x37f0f8,_0x12a584),'planned':plannedUpdateProjection(_0x37f0f8,_0x12a584)};}export const notificationConfigUpdate={'service':a195_0x398059(0x147),'command':a195_0x398059(0x13f),'description':a195_0x398059(0x134),'risk':a195_0x398059(0x12a),'requiresAppCode':!![],'structuredErrors':!![],'flags':[NOTIFICATION_ID_FLAG,...NOTIFICATION_INPUT_FLAGS,NOTIFICATION_APP_FLAG],async 'validate'(_0x14ef75){readNotificationId(_0x14ef75),assertSingleNotificationSource(_0x14ef75),requireNotificationExplicitYes(_0x14ef75);},async 'dryRun'(_0x17a019){const _0x1af411=a195_0x398059,_0x4097b2=await prepareUpdate(_0x17a019),_0x56982b=notificationLookupCommand(_0x17a019['appCode'],_0x4097b2[_0x1af411(0x13b)][_0x1af411(0x127)]);return asDryRunResult({'operation':_0x1af411(0x13d),'selector':notificationSelector(_0x4097b2[_0x1af411(0x13b)]),'before':projectNotificationConfig(_0x4097b2[_0x1af411(0x13b)]),'after':_0x4097b2[_0x1af411(0x12f)],'dryRun':!![],'backend':{'method':_0x1af411(0x146),'path':UPDATE_PATH},'warnings':[],'verification':{'status':_0x1af411(0x12f),'lookupCommand':_0x56982b}},{'method':_0x1af411(0x146),'url':UPDATE_PATH});},async 'execute'(_0x220de1){const _0x311295=a195_0x398059;requireNotificationExplicitYes(_0x220de1);const _0x246eb7=await prepareUpdate(_0x220de1),_0x430430=notificationLookupCommand(_0x220de1[_0x311295(0x129)],_0x246eb7[_0x311295(0x13b)][_0x311295(0x127)]);let _0x1e800b=![];try{await updateNotificationChannelConfig(_0x246eb7[_0x311295(0x12c)]);}catch(_0xd7ad8e){if(!isPlatformTransportFailure(_0xd7ad8e))throw safeApiFailure(_0x311295(0x13d),'mutation','Inspect\x20ID\x20'+_0x246eb7['id']+_0x311295(0x145)+_0x430430+_0x311295(0x137));_0x1e800b=!![];}let _0x2f3ad7;try{const _0x44768d=await getNotificationChannelConfig(_0x246eb7['id'],_0x220de1[_0x311295(0x129)]);_0x2f3ad7=normalizeExactNotificationConfig(_0x44768d,_0x246eb7['id'],_0x220de1[_0x311295(0x129)]);}catch{throw notificationError(_0x1e800b?_0x311295(0x128):_0x311295(0x138),_0x311295(0x140)+_0x246eb7['id']+'\x20update\x20could\x20not\x20be\x20verified\x20by\x20exact\x20ID.',_0x311295(0x139)+_0x246eb7['id']+'\x20via\x20'+_0x430430+_0x311295(0x13e));}const _0x812f63=requestedSafeFieldsMatch(_0x246eb7[_0x311295(0x13b)],_0x2f3ad7,_0x246eb7[_0x311295(0x13c)]);if(!_0x812f63[_0x311295(0x12e)]||_0x1e800b&&!_0x812f63[_0x311295(0x148)])throw notificationError(_0x1e800b?'notification_config_update_outcome_unknown':_0x311295(0x149),_0x311295(0x140)+_0x246eb7['id']+'\x20readback\x20does\x20not\x20prove\x20the\x20requested\x20update.',_0x311295(0x139)+_0x246eb7['id']+_0x311295(0x144)+_0x430430+_0x311295(0x13e));const _0x547cb9=_0x1e800b?[_0x311295(0x141)]:[];return{'ok':!![],'data':{'operation':_0x311295(0x13d),'selector':notificationSelector(_0x2f3ad7),'before':projectNotificationConfig(_0x246eb7[_0x311295(0x13b)]),'after':projectNotificationConfig(_0x2f3ad7),'dryRun':![],'backend':{'method':_0x311295(0x146),'path':UPDATE_PATH},'warnings':_0x547cb9,'verification':{'status':_0x311295(0x143),'recoveredAfterUnknownResponse':_0x1e800b,'verifiedFields':_0x812f63[_0x311295(0x12b)],'lookupCommand':_0x430430}},'message':_0x311295(0x135)+_0x2f3ad7['id']};}};
@@ -1 +1 @@
1
- (function(_0x159ff1,_0x2a3b08){const _0x81c7ef=a196_0x1c0d,_0x1ae82a=_0x159ff1();while(!![]){try{const _0x3d5b7c=parseInt(_0x81c7ef(0x189))/0x1*(-parseInt(_0x81c7ef(0x18e))/0x2)+parseInt(_0x81c7ef(0x18a))/0x3+-parseInt(_0x81c7ef(0x190))/0x4*(-parseInt(_0x81c7ef(0x187))/0x5)+-parseInt(_0x81c7ef(0x18b))/0x6*(-parseInt(_0x81c7ef(0x188))/0x7)+-parseInt(_0x81c7ef(0x18c))/0x8+parseInt(_0x81c7ef(0x18f))/0x9+parseInt(_0x81c7ef(0x191))/0xa*(-parseInt(_0x81c7ef(0x18d))/0xb);if(_0x3d5b7c===_0x2a3b08)break;else _0x1ae82a['push'](_0x1ae82a['shift']());}catch(_0x2a31c6){_0x1ae82a['push'](_0x1ae82a['shift']());}}}(a196_0xfd6d,0xbe50d));import{notificationConfigList}from'../../commands/notification/config-list.js';import{notificationConfigCreate}from'../../commands/notification/config-create.js';import{notificationConfigUpdate}from'../../commands/notification/config-update.js';function a196_0x1c0d(_0x25a07c,_0x4afa79){_0x25a07c=_0x25a07c-0x187;const _0xfd6d0a=a196_0xfd6d();let _0x1c0d02=_0xfd6d0a[_0x25a07c];return _0x1c0d02;}function a196_0xfd6d(){const _0x53114a=['3333RzAocA','180YdggaK','3951405zgzlfB','2463248VhGfyW','15430zypDkC','5dZpRoV','1153495gkYkFx','6113ZGCDEA','208275FakRSo','54dxqfmM','6480920HLFVUe'];a196_0xfd6d=function(){return _0x53114a;};return a196_0xfd6d();}import{notificationConfigDelete}from'../../commands/notification/config-delete.js';export const notificationDefinitions=[notificationConfigList,notificationConfigCreate,notificationConfigUpdate,notificationConfigDelete];
1
+ (function(_0xb6ffbb,_0x578cda){const _0x553c04=a196_0x2821,_0x25345b=_0xb6ffbb();while(!![]){try{const _0x591e98=-parseInt(_0x553c04(0x97))/0x1+-parseInt(_0x553c04(0x99))/0x2*(-parseInt(_0x553c04(0x9b))/0x3)+parseInt(_0x553c04(0x9c))/0x4*(parseInt(_0x553c04(0x9d))/0x5)+parseInt(_0x553c04(0x98))/0x6*(-parseInt(_0x553c04(0x94))/0x7)+parseInt(_0x553c04(0x9e))/0x8*(-parseInt(_0x553c04(0x9a))/0x9)+parseInt(_0x553c04(0x95))/0xa*(-parseInt(_0x553c04(0x92))/0xb)+-parseInt(_0x553c04(0x93))/0xc*(-parseInt(_0x553c04(0x96))/0xd);if(_0x591e98===_0x578cda)break;else _0x25345b['push'](_0x25345b['shift']());}catch(_0x2c1daa){_0x25345b['push'](_0x25345b['shift']());}}}(a196_0x37f1,0xc96d7));function a196_0x37f1(){const _0x2e525e=['2631672DZBgac','11hAYVaE','120AtVhYV','321069vDFJrL','9304030WxdPEG','1118221YpEMWc','1208854fDSoPl','48svVJQA','158iMXFPR','18nrJLXy','58521ENfqhj','4VRBywH','7939675Vzzxdh'];a196_0x37f1=function(){return _0x2e525e;};return a196_0x37f1();}import{notificationConfigList}from'../../commands/notification/config-list.js';function a196_0x2821(_0x5d5b78,_0x2ef7aa){_0x5d5b78=_0x5d5b78-0x92;const _0x37f1dc=a196_0x37f1();let _0x282112=_0x37f1dc[_0x5d5b78];return _0x282112;}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];