@higgsfield/video-editor-mcp 1.0.7 → 1.1.1-dev.0

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 (189) hide show
  1. package/THIRD_PARTY_NOTICES.md +24 -24
  2. package/dist/cli.mjs +134 -125
  3. package/dist/index.html +136 -133
  4. package/dist/launcher.mjs +90 -90
  5. package/dist/server.mjs +1553 -1389
  6. package/node_modules/@higgsfield/higgsedit/README.md +181 -1
  7. package/node_modules/@higgsfield/higgsedit/dist/capture-page.js +902 -314
  8. package/node_modules/@higgsfield/higgsedit/dist/chunk-2JYLVSVV.mjs +1594 -0
  9. package/node_modules/@higgsfield/higgsedit/dist/chunk-2WKNH7OL.mjs +16 -0
  10. package/node_modules/@higgsfield/higgsedit/dist/{chunk-OMKZ5BXM.mjs → chunk-5LTTL3Q3.mjs} +1 -1
  11. package/node_modules/@higgsfield/higgsedit/dist/chunk-7PYXSJS7.mjs +717 -0
  12. package/node_modules/@higgsfield/higgsedit/dist/{chunk-MLJAIZGP.mjs → chunk-BH2QF635.mjs} +33 -326
  13. package/node_modules/@higgsfield/higgsedit/dist/{chunk-WZR5PZM7.mjs → chunk-BV5COOQZ.mjs} +250 -161
  14. package/node_modules/@higgsfield/higgsedit/dist/{chunk-HTCYVKFX.mjs → chunk-C3GSB3XZ.mjs} +8 -7
  15. package/node_modules/@higgsfield/higgsedit/dist/{chunk-CYH2EUQV.mjs → chunk-DVN4LUXV.mjs} +13 -4
  16. package/node_modules/@higgsfield/higgsedit/dist/chunk-F4CMIG5G.mjs +36 -0
  17. package/node_modules/@higgsfield/higgsedit/dist/chunk-IEPPEDEU.mjs +33 -0
  18. package/node_modules/@higgsfield/higgsedit/dist/{chunk-UVAZ6I6U.mjs → chunk-KIWGVAPJ.mjs} +16 -12
  19. package/node_modules/@higgsfield/higgsedit/dist/{chunk-L6QDNSL3.mjs → chunk-L5LWBA6A.mjs} +5 -5
  20. package/node_modules/@higgsfield/higgsedit/dist/chunk-LMQR3DHT.mjs +37 -0
  21. package/node_modules/@higgsfield/higgsedit/dist/chunk-LTKMGZ6T.mjs +58 -0
  22. package/node_modules/@higgsfield/higgsedit/dist/{chunk-VI6IV6JP.mjs → chunk-MV2JTTBQ.mjs} +65 -47
  23. package/node_modules/@higgsfield/higgsedit/dist/{chunk-4D6AXU4B.mjs → chunk-NARTAWRN.mjs} +50 -30
  24. package/node_modules/@higgsfield/higgsedit/dist/{chunk-27NBQ5FA.mjs → chunk-NUXTKQNM.mjs} +33 -21
  25. package/node_modules/@higgsfield/higgsedit/dist/chunk-OCIZ36XD.mjs +40 -0
  26. package/node_modules/@higgsfield/higgsedit/dist/{chunk-MK6PL7N4.mjs → chunk-OF6RMSM2.mjs} +19 -17
  27. package/node_modules/@higgsfield/higgsedit/dist/{chunk-6BETMESC.mjs → chunk-P2BGHTRR.mjs} +2 -2
  28. package/node_modules/@higgsfield/higgsedit/dist/{chunk-EKFC4S4M.mjs → chunk-PAHMD6SU.mjs} +5 -0
  29. package/node_modules/@higgsfield/higgsedit/dist/{chunk-QVLAEV3U.mjs → chunk-PFQYUJQL.mjs} +3 -4
  30. package/node_modules/@higgsfield/higgsedit/dist/chunk-QJTILFBS.mjs +335 -0
  31. package/node_modules/@higgsfield/higgsedit/dist/chunk-QQ3GGKDN.mjs +21 -0
  32. package/node_modules/@higgsfield/higgsedit/dist/chunk-TH7TK67K.mjs +23 -0
  33. package/node_modules/@higgsfield/higgsedit/dist/{chunk-SIMO6I3D.mjs → chunk-UDL5AHKO.mjs} +163 -158
  34. package/node_modules/@higgsfield/higgsedit/dist/chunk-UMWOUQN3.mjs +60 -0
  35. package/node_modules/@higgsfield/higgsedit/dist/{chunk-3AIM3THH.mjs → chunk-VLM5EOWJ.mjs} +4 -4
  36. package/node_modules/@higgsfield/higgsedit/dist/chunk-WENFTPXQ.mjs +403 -0
  37. package/node_modules/@higgsfield/higgsedit/dist/chunk-YLVXQIPX.mjs +464 -0
  38. package/node_modules/@higgsfield/higgsedit/dist/editor/.vite/manifest.json +559 -506
  39. package/node_modules/@higgsfield/higgsedit/dist/editor/assets/agent-corner-bottom-q4hZltI-.svg +431 -0
  40. package/node_modules/@higgsfield/higgsedit/dist/editor/assets/agent-corner-top-BJYI-I24.svg +431 -0
  41. package/node_modules/@higgsfield/higgsedit/dist/editor/assets/confirmation-BTnwl3LS.css +1 -0
  42. package/node_modules/@higgsfield/higgsedit/dist/editor/assets/drag-Bt_t4HZO.css +1 -0
  43. package/node_modules/@higgsfield/higgsedit/dist/editor/assets/local-B3OTAV_A.css +1 -0
  44. package/node_modules/@higgsfield/higgsedit/dist/editor/assets/menubar-2Y1Y2XJt.css +1 -0
  45. package/node_modules/@higgsfield/higgsedit/dist/editor/assets/model-DdE4hCgf.css +1 -0
  46. package/node_modules/@higgsfield/higgsedit/dist/editor/assets/{IconText1-CzbCrP7v.css → notifications-B08L1jSe.css} +1 -1
  47. package/node_modules/@higgsfield/higgsedit/dist/editor/assets/{panel-g852pZf_.css → panel-BRN_AbBM.css} +1 -1
  48. package/node_modules/@higgsfield/higgsedit/dist/editor/assets/panel-CYELNqrv.css +1 -0
  49. package/node_modules/@higgsfield/higgsedit/dist/editor/assets/panel-DYLpT6oA.css +1 -0
  50. package/node_modules/@higgsfield/higgsedit/dist/editor/assets/panel-v84HaGTZ.css +1 -0
  51. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/IconChainLink1-Bxb1Or0F.js +1 -0
  52. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/{IconCheckmark2Medium-daaES9uF.js → IconCheckmark2Medium-hegaz9mQ.js} +1 -1
  53. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/{IconChevronDownSmall-BhTBJk26.js → IconChevronDownSmall-DaruzJwU.js} +1 -1
  54. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/IconClosedCaptioning-BPqcqKsD.js +1 -0
  55. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/{IconCrossMedium-acfnCXOM.js → IconCrossMedium-BsPFJzc6.js} +1 -1
  56. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/IconOpenaiFilled-D1fzthmi.js +1 -0
  57. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/{IconPause-pTeVSvUe.js → IconPause-ClNg8pao.js} +1 -1
  58. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/{IconPlayFilled-CwdgIuDG.js → IconPlayFilled-CHb-7GSx.js} +1 -1
  59. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/IconSparklesSoftFilled-o7o33KRn.js +1 -0
  60. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/ai-composer-B9h-eaki.js +567 -0
  61. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/auto-layout-BO20Tg4B.js +1 -0
  62. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/{button-CjG6GcgF.js → button-Cg0U0zpV.js} +1 -1
  63. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/canvas-Bw4CVzfw.js +1 -0
  64. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/capabilities-BCd4-zPF.js +1 -0
  65. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/commands-QeSqAbCt.js +1 -0
  66. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/components-tXMtIZNL.js +51 -0
  67. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/confirmation-CO2PHR_z.js +1 -0
  68. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/dom-6aoQn29n.js +1 -0
  69. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/drag-Dw8b_vO2.js +1 -0
  70. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/{editing-CjWbiCxv.js → editing-Cy-SaOyB.js} +1 -1
  71. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/edits-CqLBqir0.js +1 -0
  72. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/export-dialog-BjBskOe3.js +2 -0
  73. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/factories-Bw_iQrUL.js +1 -0
  74. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/id3-CSR0NCRI.js +2 -0
  75. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/import-DP49i4ke.js +1 -0
  76. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/import-error-CMz9sLPe.js +1 -0
  77. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/ingest-DsmIc415.js +1 -0
  78. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/jsx-runtime-B5yqYJvp.js +1 -0
  79. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/{media-Bwjxu-0U.js → media-DQw6vU_T.js} +1 -1
  80. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/menubar-D31srALX.js +1 -0
  81. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/meters-D0nZVEJs.js +1 -0
  82. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/mode-DEG6doKF.js +1 -0
  83. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/model-Duf9fszJ.js +2 -0
  84. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/model-DyAkLA69.js +1 -0
  85. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/notifications-DqWZNIrK.js +9 -0
  86. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/palette-HT83gWgL.js +1 -0
  87. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/panel-B5Mvm6dg.js +7 -0
  88. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/panel-BC90wyvd.js +1 -0
  89. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/panel-Bw_ZJ2JI.js +3 -0
  90. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/panel-DNS060Nt.js +3 -0
  91. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/panel-DSgxIrEq.js +2 -0
  92. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/panel-DgBttE5O.js +1 -0
  93. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/panel-assets-_T2bHsHW.js +771 -0
  94. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/panel-inspector-DfHvAt5X.js +2 -0
  95. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/panel-nBZvHlkA.js +1 -0
  96. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/panel-timeline-DsCpJVSt.js +327 -0
  97. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/panel-viewport-CEhZwZ67.js +280 -0
  98. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/projects-2_tW9Do7.js +1 -0
  99. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/react-dom-1uB7Vbbb.js +1 -0
  100. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/schemas-CddYAOcj.js +64 -0
  101. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/session-BpFeKAI2.js +1 -0
  102. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/src-BLG3tYBa.js +2 -0
  103. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/styles-e2n2A_JN.js +284 -0
  104. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/supercomputer-CuV0zYKd.js +24 -0
  105. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/tabs-XeAgs9cs.js +1 -0
  106. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/toggle-DbNEaSIl.js +1 -0
  107. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/transport-C8Ll3qFl.js +69 -0
  108. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/transport-bar-Dv1LPFbu.js +1 -0
  109. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/useOpenInteractionType-HWSfSsp2.js +1 -0
  110. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/useRenderElement-D4SOg3N_.js +1 -0
  111. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/value-EB7YmAdS.js +1 -0
  112. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/writeback-support-fj5rA9k3.js +1 -0
  113. package/node_modules/@higgsfield/higgsedit/dist/editor/editor-B-WAkLt7.js +372 -0
  114. package/node_modules/@higgsfield/higgsedit/dist/higgsedit.mjs +39 -24
  115. package/node_modules/@higgsfield/higgsedit/dist/jsx/hooks.d.ts +26 -0
  116. package/node_modules/@higgsfield/higgsedit/dist/jsx/index.d.ts +17 -0
  117. package/node_modules/@higgsfield/higgsedit/dist/jsx/inspect.d.ts +42 -0
  118. package/node_modules/@higgsfield/higgsedit/dist/jsx/jsx-runtime.d.ts +28 -0
  119. package/node_modules/@higgsfield/higgsedit/dist/jsx/svg.d.ts +9 -0
  120. package/node_modules/@higgsfield/higgsedit/dist/jsx/time.d.ts +6 -0
  121. package/node_modules/@higgsfield/higgsedit/dist/jsx/types.d.ts +420 -0
  122. package/node_modules/@higgsfield/higgsedit/package.json +28 -20
  123. package/package.json +4 -3
  124. package/plugin/.codex-plugin/plugin.json +1 -1
  125. package/plugin/plugin.json +1 -1
  126. package/plugin/skills/video-editing/references/caption-titling.md +1 -1
  127. package/plugin/skills/video-editing/references/local-setup.md +3 -3
  128. package/node_modules/@higgsfield/higgsedit/dist/chunk-C6SASQHE.mjs +0 -424
  129. package/node_modules/@higgsfield/higgsedit/dist/chunk-FZ5U36SQ.mjs +0 -83
  130. package/node_modules/@higgsfield/higgsedit/dist/chunk-QLPCYN6K.mjs +0 -292
  131. package/node_modules/@higgsfield/higgsedit/dist/editor/assets/edit-drag-D2EV5ddd.css +0 -1
  132. package/node_modules/@higgsfield/higgsedit/dist/editor/assets/editor-CuRHT75g.css +0 -1
  133. package/node_modules/@higgsfield/higgsedit/dist/editor/assets/panel-DnuQD7ja.css +0 -1
  134. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/FieldControl-B0fenhBJ.js +0 -2
  135. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/IconChainLink1-Cwv1X7hi.js +0 -1
  136. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/IconEyeOpen-BqTT9_VV.js +0 -1
  137. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/IconEyeSlash-Whv58c1m.js +0 -1
  138. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/IconPencil-Dr17k_7e.js +0 -1
  139. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/IconPlay-BroH3ziH.js +0 -1
  140. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/IconPlusSmall-43T9aE3d.js +0 -1
  141. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/IconText1-BaP_p9DW.js +0 -1
  142. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/IconTrashCan-DX2w2AIC.js +0 -1
  143. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/ai-composer-C-l0eIdP.js +0 -560
  144. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/captions-Cd-bDG3G.js +0 -1
  145. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/clip-highlight-DpAvcA4x.js +0 -1
  146. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/components-e3ZbUVns.js +0 -1
  147. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/disposables-CwUPjcuA.js +0 -1
  148. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/drag-HLBkto5o.js +0 -1
  149. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/dropdown-BJ04G_X3.js +0 -1
  150. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/edit-drag-Bg6LggKC.js +0 -1
  151. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/edits-a2IixhrN.js +0 -1
  152. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/export-dialog-4I4gqI5V.js +0 -2
  153. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/face-tracker-DzVfjVOO.js +0 -1
  154. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/fit-imported-media-CaCB0x0b.js +0 -1
  155. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/generation-queue-DuL2F4-_.js +0 -1
  156. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/import-error-CMARA0Hy.js +0 -1
  157. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/jsx-runtime-B-hcVAMW.js +0 -1
  158. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/menubar-Bs26OdwP.js +0 -1
  159. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/meters-YEr9OQjq.js +0 -1
  160. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/paints-DS2Msf91.js +0 -67
  161. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/palette-CcS9IcAC.js +0 -1
  162. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/panel-7M3uQokX.js +0 -1
  163. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/panel-BBK1NyG-.js +0 -1
  164. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/panel-CHZTs7By.js +0 -4
  165. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/panel-DaSOa3MP.js +0 -2
  166. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/panel-DlK3RYVo.js +0 -1
  167. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/panel-Dst5OKWu.js +0 -2
  168. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/panel-H_ZoDiKK.js +0 -2
  169. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/panel-Rn9Z7Eek.js +0 -3
  170. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/panel-assets-FAghGFG3.js +0 -678
  171. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/panel-inspector-DEqULBNF.js +0 -260
  172. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/panel-timeline-0GYNz1uc.js +0 -333
  173. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/panel-viewport-DOWjJi5-.js +0 -317
  174. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/projects-BBJc7h5_.js +0 -2
  175. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/session-B9sZaFKC.js +0 -1
  176. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/supercomputer-CX-LCL6Y.js +0 -24
  177. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/tabs-CvKQ-eas.js +0 -1
  178. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/toggle-CrzrwiDZ.js +0 -1
  179. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/transport-BgRfk-Qq.js +0 -69
  180. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/transport-bar-C9nqAfE2.js +0 -1
  181. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/typography-C5-w9LOu-kD3uLKkf.js +0 -1
  182. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/useOpenInteractionType-DbrQ6Ehu.js +0 -1
  183. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/useRenderElement-bbxXdYq0.js +0 -1
  184. package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/writeback-support-BZfNpkmB.js +0 -1
  185. package/node_modules/@higgsfield/higgsedit/dist/editor/editor-Csn2_T_e.js +0 -293
  186. package/node_modules/@higgsfield/higgsedit/dist/export-settings.mjs +0 -75
  187. package/node_modules/@higgsfield/higgsedit/dist/history.mjs +0 -295
  188. package/node_modules/@higgsfield/higgsedit/dist/media-upload.mjs +0 -381
  189. package/node_modules/@higgsfield/higgsedit/dist/proxy.mjs +0 -170
package/dist/cli.mjs CHANGED
@@ -7,14 +7,13 @@ var __export = (target, all) => {
7
7
  __defProp(target, name, { get: all[name], enumerable: true });
8
8
  };
9
9
 
10
- // src/tools/video-editor-local/setup.ts
10
+ // src/video-editor-local/setup.ts
11
11
  import { spawnSync as spawnSync2 } from "node:child_process";
12
- import { existsSync as existsSync4, mkdirSync as mkdirSync3, rmSync as rmSync3 } from "node:fs";
13
- import { homedir as homedir3 } from "node:os";
12
+ import { existsSync as existsSync4, mkdirSync as mkdirSync4, rmSync as rmSync3 } from "node:fs";
14
13
  import { dirname as dirname4, join as join5, sep } from "node:path";
15
14
  import { pathToFileURL } from "node:url";
16
15
 
17
- // src/tools/video-editor-local/higgsedit.ts
16
+ // src/video-editor-local/higgsedit.ts
18
17
  import { existsSync, readFileSync, statSync } from "node:fs";
19
18
  import { createRequire } from "node:module";
20
19
  import { dirname, join } from "node:path";
@@ -33,11 +32,11 @@ function findCli(env = process.env, from = import.meta.url) {
33
32
  return path && existsSync(path) ? path : void 0;
34
33
  }
35
34
 
36
- // src/tools/video-editor-local/updates.ts
35
+ // src/video-editor-local/updates.ts
37
36
  import { execFileSync as execFileSync2 } from "node:child_process";
38
37
  import {
39
38
  existsSync as existsSync3,
40
- mkdirSync as mkdirSync2,
39
+ mkdirSync as mkdirSync3,
41
40
  readFileSync as readFileSync3,
42
41
  renameSync as renameSync2,
43
42
  rmSync as rmSync2,
@@ -47,7 +46,7 @@ import {
47
46
  import { homedir as homedir2 } from "node:os";
48
47
  import { dirname as dirname3, join as join4 } from "node:path";
49
48
 
50
- // node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/external.js
49
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/external.js
51
50
  var external_exports = {};
52
51
  __export(external_exports, {
53
52
  $brand: () => $brand,
@@ -290,7 +289,7 @@ __export(external_exports, {
290
289
  xor: () => xor
291
290
  });
292
291
 
293
- // node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/index.js
292
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/index.js
294
293
  var core_exports2 = {};
295
294
  __export(core_exports2, {
296
295
  $ZodAny: () => $ZodAny,
@@ -569,7 +568,7 @@ __export(core_exports2, {
569
568
  version: () => version
570
569
  });
571
570
 
572
- // node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/core.js
571
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/core.js
573
572
  var _a;
574
573
  var NEVER = /* @__PURE__ */ Object.freeze({
575
574
  status: "aborted"
@@ -646,7 +645,7 @@ function config(newConfig) {
646
645
  return globalConfig;
647
646
  }
648
647
 
649
- // node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/util.js
648
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/util.js
650
649
  var util_exports = {};
651
650
  __export(util_exports, {
652
651
  BIGINT_FORMAT_RANGES: () => BIGINT_FORMAT_RANGES,
@@ -1342,7 +1341,7 @@ var Class = class {
1342
1341
  }
1343
1342
  };
1344
1343
 
1345
- // node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/errors.js
1344
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/errors.js
1346
1345
  var initializer = (inst, def) => {
1347
1346
  inst.name = "$ZodError";
1348
1347
  Object.defineProperty(inst, "_zod", {
@@ -1481,7 +1480,7 @@ function prettifyError(error51) {
1481
1480
  return lines.join("\n");
1482
1481
  }
1483
1482
 
1484
- // node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/parse.js
1483
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/parse.js
1485
1484
  var _parse = (_Err) => (schema, value, _ctx, _params) => {
1486
1485
  const ctx = _ctx ? { ..._ctx, async: false } : { async: false };
1487
1486
  const result = schema._zod.run({ value, issues: [] }, ctx);
@@ -1569,7 +1568,7 @@ var _safeDecodeAsync = (_Err) => async (schema, value, _ctx) => {
1569
1568
  };
1570
1569
  var safeDecodeAsync = /* @__PURE__ */ _safeDecodeAsync($ZodRealError);
1571
1570
 
1572
- // node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/regexes.js
1571
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/regexes.js
1573
1572
  var regexes_exports = {};
1574
1573
  __export(regexes_exports, {
1575
1574
  base64: () => base64,
@@ -1728,7 +1727,7 @@ var sha512_hex = /^[0-9a-fA-F]{128}$/;
1728
1727
  var sha512_base64 = /* @__PURE__ */ fixedBase64(86, "==");
1729
1728
  var sha512_base64url = /* @__PURE__ */ fixedBase64url(86);
1730
1729
 
1731
- // node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/checks.js
1730
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/checks.js
1732
1731
  var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
1733
1732
  var _a3;
1734
1733
  inst._zod ?? (inst._zod = {});
@@ -2276,7 +2275,7 @@ var $ZodCheckOverwrite = /* @__PURE__ */ $constructor("$ZodCheckOverwrite", (ins
2276
2275
  };
2277
2276
  });
2278
2277
 
2279
- // node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/doc.js
2278
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/doc.js
2280
2279
  var Doc = class {
2281
2280
  constructor(args = []) {
2282
2281
  this.content = [];
@@ -2312,14 +2311,14 @@ var Doc = class {
2312
2311
  }
2313
2312
  };
2314
2313
 
2315
- // node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/versions.js
2314
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/versions.js
2316
2315
  var version = {
2317
2316
  major: 4,
2318
2317
  minor: 4,
2319
2318
  patch: 3
2320
2319
  };
2321
2320
 
2322
- // node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/schemas.js
2321
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/schemas.js
2323
2322
  var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
2324
2323
  var _a3;
2325
2324
  inst ?? (inst = {});
@@ -4412,7 +4411,7 @@ function handleRefineResult(result, payload, input, inst) {
4412
4411
  }
4413
4412
  }
4414
4413
 
4415
- // node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/index.js
4414
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/index.js
4416
4415
  var locales_exports = {};
4417
4416
  __export(locales_exports, {
4418
4417
  ar: () => ar_default,
@@ -4469,7 +4468,7 @@ __export(locales_exports, {
4469
4468
  zhTW: () => zh_TW_default
4470
4469
  });
4471
4470
 
4472
- // node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ar.js
4471
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ar.js
4473
4472
  var error = () => {
4474
4473
  const Sizable = {
4475
4474
  string: { unit: "\u062D\u0631\u0641", verb: "\u0623\u0646 \u064A\u062D\u0648\u064A" },
@@ -4576,7 +4575,7 @@ function ar_default() {
4576
4575
  };
4577
4576
  }
4578
4577
 
4579
- // node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/az.js
4578
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/az.js
4580
4579
  var error2 = () => {
4581
4580
  const Sizable = {
4582
4581
  string: { unit: "simvol", verb: "olmal\u0131d\u0131r" },
@@ -4682,7 +4681,7 @@ function az_default() {
4682
4681
  };
4683
4682
  }
4684
4683
 
4685
- // node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/be.js
4684
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/be.js
4686
4685
  function getBelarusianPlural(count, one, few, many) {
4687
4686
  const absCount = Math.abs(count);
4688
4687
  const lastDigit = absCount % 10;
@@ -4839,7 +4838,7 @@ function be_default() {
4839
4838
  };
4840
4839
  }
4841
4840
 
4842
- // node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/bg.js
4841
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/bg.js
4843
4842
  var error4 = () => {
4844
4843
  const Sizable = {
4845
4844
  string: { unit: "\u0441\u0438\u043C\u0432\u043E\u043B\u0430", verb: "\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430" },
@@ -4960,7 +4959,7 @@ function bg_default() {
4960
4959
  };
4961
4960
  }
4962
4961
 
4963
- // node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ca.js
4962
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ca.js
4964
4963
  var error5 = () => {
4965
4964
  const Sizable = {
4966
4965
  string: { unit: "car\xE0cters", verb: "contenir" },
@@ -5069,7 +5068,7 @@ function ca_default() {
5069
5068
  };
5070
5069
  }
5071
5070
 
5072
- // node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/cs.js
5071
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/cs.js
5073
5072
  var error6 = () => {
5074
5073
  const Sizable = {
5075
5074
  string: { unit: "znak\u016F", verb: "m\xEDt" },
@@ -5181,7 +5180,7 @@ function cs_default() {
5181
5180
  };
5182
5181
  }
5183
5182
 
5184
- // node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/da.js
5183
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/da.js
5185
5184
  var error7 = () => {
5186
5185
  const Sizable = {
5187
5186
  string: { unit: "tegn", verb: "havde" },
@@ -5297,7 +5296,7 @@ function da_default() {
5297
5296
  };
5298
5297
  }
5299
5298
 
5300
- // node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/de.js
5299
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/de.js
5301
5300
  var error8 = () => {
5302
5301
  const Sizable = {
5303
5302
  string: { unit: "Zeichen", verb: "zu haben" },
@@ -5406,7 +5405,7 @@ function de_default() {
5406
5405
  };
5407
5406
  }
5408
5407
 
5409
- // node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/el.js
5408
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/el.js
5410
5409
  var error9 = () => {
5411
5410
  const Sizable = {
5412
5411
  string: { unit: "\u03C7\u03B1\u03C1\u03B1\u03BA\u03C4\u03AE\u03C1\u03B5\u03C2", verb: "\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9" },
@@ -5516,7 +5515,7 @@ function el_default() {
5516
5515
  };
5517
5516
  }
5518
5517
 
5519
- // node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/en.js
5518
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/en.js
5520
5519
  var error10 = () => {
5521
5520
  const Sizable = {
5522
5521
  string: { unit: "characters", verb: "to have" },
@@ -5629,7 +5628,7 @@ function en_default() {
5629
5628
  };
5630
5629
  }
5631
5630
 
5632
- // node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/eo.js
5631
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/eo.js
5633
5632
  var error11 = () => {
5634
5633
  const Sizable = {
5635
5634
  string: { unit: "karaktrojn", verb: "havi" },
@@ -5739,7 +5738,7 @@ function eo_default() {
5739
5738
  };
5740
5739
  }
5741
5740
 
5742
- // node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/es.js
5741
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/es.js
5743
5742
  var error12 = () => {
5744
5743
  const Sizable = {
5745
5744
  string: { unit: "caracteres", verb: "tener" },
@@ -5872,7 +5871,7 @@ function es_default() {
5872
5871
  };
5873
5872
  }
5874
5873
 
5875
- // node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/fa.js
5874
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/fa.js
5876
5875
  var error13 = () => {
5877
5876
  const Sizable = {
5878
5877
  string: { unit: "\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631", verb: "\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F" },
@@ -5987,7 +5986,7 @@ function fa_default() {
5987
5986
  };
5988
5987
  }
5989
5988
 
5990
- // node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/fi.js
5989
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/fi.js
5991
5990
  var error14 = () => {
5992
5991
  const Sizable = {
5993
5992
  string: { unit: "merkki\xE4", subject: "merkkijonon" },
@@ -6100,7 +6099,7 @@ function fi_default() {
6100
6099
  };
6101
6100
  }
6102
6101
 
6103
- // node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/fr.js
6102
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/fr.js
6104
6103
  var error15 = () => {
6105
6104
  const Sizable = {
6106
6105
  string: { unit: "caract\xE8res", verb: "avoir" },
@@ -6226,7 +6225,7 @@ function fr_default() {
6226
6225
  };
6227
6226
  }
6228
6227
 
6229
- // node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/fr-CA.js
6228
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/fr-CA.js
6230
6229
  var error16 = () => {
6231
6230
  const Sizable = {
6232
6231
  string: { unit: "caract\xE8res", verb: "avoir" },
@@ -6334,7 +6333,7 @@ function fr_CA_default() {
6334
6333
  };
6335
6334
  }
6336
6335
 
6337
- // node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/he.js
6336
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/he.js
6338
6337
  var error17 = () => {
6339
6338
  const TypeNames = {
6340
6339
  string: { label: "\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA", gender: "f" },
@@ -6529,7 +6528,7 @@ function he_default() {
6529
6528
  };
6530
6529
  }
6531
6530
 
6532
- // node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/hr.js
6531
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/hr.js
6533
6532
  var error18 = () => {
6534
6533
  const Sizable = {
6535
6534
  string: { unit: "znakova", verb: "imati" },
@@ -6652,7 +6651,7 @@ function hr_default() {
6652
6651
  };
6653
6652
  }
6654
6653
 
6655
- // node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/hu.js
6654
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/hu.js
6656
6655
  var error19 = () => {
6657
6656
  const Sizable = {
6658
6657
  string: { unit: "karakter", verb: "legyen" },
@@ -6761,7 +6760,7 @@ function hu_default() {
6761
6760
  };
6762
6761
  }
6763
6762
 
6764
- // node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/hy.js
6763
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/hy.js
6765
6764
  function getArmenianPlural(count, one, many) {
6766
6765
  return Math.abs(count) === 1 ? one : many;
6767
6766
  }
@@ -6909,7 +6908,7 @@ function hy_default() {
6909
6908
  };
6910
6909
  }
6911
6910
 
6912
- // node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/id.js
6911
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/id.js
6913
6912
  var error21 = () => {
6914
6913
  const Sizable = {
6915
6914
  string: { unit: "karakter", verb: "memiliki" },
@@ -7016,7 +7015,7 @@ function id_default() {
7016
7015
  };
7017
7016
  }
7018
7017
 
7019
- // node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/is.js
7018
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/is.js
7020
7019
  var error22 = () => {
7021
7020
  const Sizable = {
7022
7021
  string: { unit: "stafi", verb: "a\xF0 hafa" },
@@ -7126,7 +7125,7 @@ function is_default() {
7126
7125
  };
7127
7126
  }
7128
7127
 
7129
- // node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/it.js
7128
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/it.js
7130
7129
  var error23 = () => {
7131
7130
  const Sizable = {
7132
7131
  string: { unit: "caratteri", verb: "avere" },
@@ -7235,7 +7234,7 @@ function it_default() {
7235
7234
  };
7236
7235
  }
7237
7236
 
7238
- // node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ja.js
7237
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ja.js
7239
7238
  var error24 = () => {
7240
7239
  const Sizable = {
7241
7240
  string: { unit: "\u6587\u5B57", verb: "\u3067\u3042\u308B" },
@@ -7343,7 +7342,7 @@ function ja_default() {
7343
7342
  };
7344
7343
  }
7345
7344
 
7346
- // node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ka.js
7345
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ka.js
7347
7346
  var error25 = () => {
7348
7347
  const Sizable = {
7349
7348
  string: { unit: "\u10E1\u10D8\u10DB\u10D1\u10DD\u10DA\u10DD", verb: "\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1" },
@@ -7456,7 +7455,7 @@ function ka_default() {
7456
7455
  };
7457
7456
  }
7458
7457
 
7459
- // node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/km.js
7458
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/km.js
7460
7459
  var error26 = () => {
7461
7460
  const Sizable = {
7462
7461
  string: { unit: "\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A", verb: "\u1782\u17BD\u179A\u1798\u17B6\u1793" },
@@ -7567,12 +7566,12 @@ function km_default() {
7567
7566
  };
7568
7567
  }
7569
7568
 
7570
- // node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/kh.js
7569
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/kh.js
7571
7570
  function kh_default() {
7572
7571
  return km_default();
7573
7572
  }
7574
7573
 
7575
- // node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ko.js
7574
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ko.js
7576
7575
  var error27 = () => {
7577
7576
  const Sizable = {
7578
7577
  string: { unit: "\uBB38\uC790", verb: "to have" },
@@ -7684,7 +7683,7 @@ function ko_default() {
7684
7683
  };
7685
7684
  }
7686
7685
 
7687
- // node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/lt.js
7686
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/lt.js
7688
7687
  var capitalizeFirstCharacter = (text) => {
7689
7688
  return text.charAt(0).toUpperCase() + text.slice(1);
7690
7689
  };
@@ -7888,7 +7887,7 @@ function lt_default() {
7888
7887
  };
7889
7888
  }
7890
7889
 
7891
- // node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/mk.js
7890
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/mk.js
7892
7891
  var error29 = () => {
7893
7892
  const Sizable = {
7894
7893
  string: { unit: "\u0437\u043D\u0430\u0446\u0438", verb: "\u0434\u0430 \u0438\u043C\u0430\u0430\u0442" },
@@ -7998,7 +7997,7 @@ function mk_default() {
7998
7997
  };
7999
7998
  }
8000
7999
 
8001
- // node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ms.js
8000
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ms.js
8002
8001
  var error30 = () => {
8003
8002
  const Sizable = {
8004
8003
  string: { unit: "aksara", verb: "mempunyai" },
@@ -8106,7 +8105,7 @@ function ms_default() {
8106
8105
  };
8107
8106
  }
8108
8107
 
8109
- // node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/nl.js
8108
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/nl.js
8110
8109
  var error31 = () => {
8111
8110
  const Sizable = {
8112
8111
  string: { unit: "tekens", verb: "heeft" },
@@ -8217,7 +8216,7 @@ function nl_default() {
8217
8216
  };
8218
8217
  }
8219
8218
 
8220
- // node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/no.js
8219
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/no.js
8221
8220
  var error32 = () => {
8222
8221
  const Sizable = {
8223
8222
  string: { unit: "tegn", verb: "\xE5 ha" },
@@ -8326,7 +8325,7 @@ function no_default() {
8326
8325
  };
8327
8326
  }
8328
8327
 
8329
- // node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ota.js
8328
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ota.js
8330
8329
  var error33 = () => {
8331
8330
  const Sizable = {
8332
8331
  string: { unit: "harf", verb: "olmal\u0131d\u0131r" },
@@ -8436,7 +8435,7 @@ function ota_default() {
8436
8435
  };
8437
8436
  }
8438
8437
 
8439
- // node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ps.js
8438
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ps.js
8440
8439
  var error34 = () => {
8441
8440
  const Sizable = {
8442
8441
  string: { unit: "\u062A\u0648\u06A9\u064A", verb: "\u0648\u0644\u0631\u064A" },
@@ -8551,7 +8550,7 @@ function ps_default() {
8551
8550
  };
8552
8551
  }
8553
8552
 
8554
- // node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/pl.js
8553
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/pl.js
8555
8554
  var error35 = () => {
8556
8555
  const Sizable = {
8557
8556
  string: { unit: "znak\xF3w", verb: "mie\u0107" },
@@ -8661,7 +8660,7 @@ function pl_default() {
8661
8660
  };
8662
8661
  }
8663
8662
 
8664
- // node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/pt.js
8663
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/pt.js
8665
8664
  var error36 = () => {
8666
8665
  const Sizable = {
8667
8666
  string: { unit: "caracteres", verb: "ter" },
@@ -8770,7 +8769,7 @@ function pt_default() {
8770
8769
  };
8771
8770
  }
8772
8771
 
8773
- // node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ro.js
8772
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ro.js
8774
8773
  var error37 = () => {
8775
8774
  const Sizable = {
8776
8775
  string: { unit: "caractere", verb: "s\u0103 aib\u0103" },
@@ -8890,7 +8889,7 @@ function ro_default() {
8890
8889
  };
8891
8890
  }
8892
8891
 
8893
- // node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ru.js
8892
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ru.js
8894
8893
  function getRussianPlural(count, one, few, many) {
8895
8894
  const absCount = Math.abs(count);
8896
8895
  const lastDigit = absCount % 10;
@@ -9047,7 +9046,7 @@ function ru_default() {
9047
9046
  };
9048
9047
  }
9049
9048
 
9050
- // node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/sl.js
9049
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/sl.js
9051
9050
  var error39 = () => {
9052
9051
  const Sizable = {
9053
9052
  string: { unit: "znakov", verb: "imeti" },
@@ -9157,7 +9156,7 @@ function sl_default() {
9157
9156
  };
9158
9157
  }
9159
9158
 
9160
- // node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/sv.js
9159
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/sv.js
9161
9160
  var error40 = () => {
9162
9161
  const Sizable = {
9163
9162
  string: { unit: "tecken", verb: "att ha" },
@@ -9268,7 +9267,7 @@ function sv_default() {
9268
9267
  };
9269
9268
  }
9270
9269
 
9271
- // node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ta.js
9270
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ta.js
9272
9271
  var error41 = () => {
9273
9272
  const Sizable = {
9274
9273
  string: { unit: "\u0B8E\u0BB4\u0BC1\u0BA4\u0BCD\u0BA4\u0BC1\u0B95\u0BCD\u0B95\u0BB3\u0BCD", verb: "\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD" },
@@ -9379,7 +9378,7 @@ function ta_default() {
9379
9378
  };
9380
9379
  }
9381
9380
 
9382
- // node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/th.js
9381
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/th.js
9383
9382
  var error42 = () => {
9384
9383
  const Sizable = {
9385
9384
  string: { unit: "\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23", verb: "\u0E04\u0E27\u0E23\u0E21\u0E35" },
@@ -9490,7 +9489,7 @@ function th_default() {
9490
9489
  };
9491
9490
  }
9492
9491
 
9493
- // node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/tr.js
9492
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/tr.js
9494
9493
  var error43 = () => {
9495
9494
  const Sizable = {
9496
9495
  string: { unit: "karakter", verb: "olmal\u0131" },
@@ -9596,7 +9595,7 @@ function tr_default() {
9596
9595
  };
9597
9596
  }
9598
9597
 
9599
- // node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/uk.js
9598
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/uk.js
9600
9599
  var error44 = () => {
9601
9600
  const Sizable = {
9602
9601
  string: { unit: "\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432", verb: "\u043C\u0430\u0442\u0438\u043C\u0435" },
@@ -9705,12 +9704,12 @@ function uk_default() {
9705
9704
  };
9706
9705
  }
9707
9706
 
9708
- // node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ua.js
9707
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ua.js
9709
9708
  function ua_default() {
9710
9709
  return uk_default();
9711
9710
  }
9712
9711
 
9713
- // node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ur.js
9712
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ur.js
9714
9713
  var error45 = () => {
9715
9714
  const Sizable = {
9716
9715
  string: { unit: "\u062D\u0631\u0648\u0641", verb: "\u06C1\u0648\u0646\u0627" },
@@ -9821,7 +9820,7 @@ function ur_default() {
9821
9820
  };
9822
9821
  }
9823
9822
 
9824
- // node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/uz.js
9823
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/uz.js
9825
9824
  var error46 = () => {
9826
9825
  const Sizable = {
9827
9826
  string: { unit: "belgi", verb: "bo\u2018lishi kerak" },
@@ -9932,7 +9931,7 @@ function uz_default() {
9932
9931
  };
9933
9932
  }
9934
9933
 
9935
- // node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/vi.js
9934
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/vi.js
9936
9935
  var error47 = () => {
9937
9936
  const Sizable = {
9938
9937
  string: { unit: "k\xFD t\u1EF1", verb: "c\xF3" },
@@ -10041,7 +10040,7 @@ function vi_default() {
10041
10040
  };
10042
10041
  }
10043
10042
 
10044
- // node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/zh-CN.js
10043
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/zh-CN.js
10045
10044
  var error48 = () => {
10046
10045
  const Sizable = {
10047
10046
  string: { unit: "\u5B57\u7B26", verb: "\u5305\u542B" },
@@ -10151,7 +10150,7 @@ function zh_CN_default() {
10151
10150
  };
10152
10151
  }
10153
10152
 
10154
- // node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/zh-TW.js
10153
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/zh-TW.js
10155
10154
  var error49 = () => {
10156
10155
  const Sizable = {
10157
10156
  string: { unit: "\u5B57\u5143", verb: "\u64C1\u6709" },
@@ -10259,7 +10258,7 @@ function zh_TW_default() {
10259
10258
  };
10260
10259
  }
10261
10260
 
10262
- // node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/yo.js
10261
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/yo.js
10263
10262
  var error50 = () => {
10264
10263
  const Sizable = {
10265
10264
  string: { unit: "\xE0mi", verb: "n\xED" },
@@ -10367,7 +10366,7 @@ function yo_default() {
10367
10366
  };
10368
10367
  }
10369
10368
 
10370
- // node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/registries.js
10369
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/registries.js
10371
10370
  var _a2;
10372
10371
  var $output = /* @__PURE__ */ Symbol("ZodOutput");
10373
10372
  var $input = /* @__PURE__ */ Symbol("ZodInput");
@@ -10417,7 +10416,7 @@ function registry() {
10417
10416
  (_a2 = globalThis).__zod_globalRegistry ?? (_a2.__zod_globalRegistry = registry());
10418
10417
  var globalRegistry = globalThis.__zod_globalRegistry;
10419
10418
 
10420
- // node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/api.js
10419
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/api.js
10421
10420
  // @__NO_SIDE_EFFECTS__
10422
10421
  function _string(Class2, params) {
10423
10422
  return new Class2({
@@ -11456,7 +11455,7 @@ function _stringFormat(Class2, format, fnOrRegex, _params = {}) {
11456
11455
  return inst;
11457
11456
  }
11458
11457
 
11459
- // node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/to-json-schema.js
11458
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/to-json-schema.js
11460
11459
  function initializeContext(params) {
11461
11460
  let target = params?.target ?? "draft-2020-12";
11462
11461
  if (target === "draft-4")
@@ -11815,7 +11814,7 @@ var createStandardJSONSchemaMethod = (schema, io, processors = {}) => (params) =
11815
11814
  return finalize(ctx, schema);
11816
11815
  };
11817
11816
 
11818
- // node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/json-schema-processors.js
11817
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/json-schema-processors.js
11819
11818
  var formatMap = {
11820
11819
  guid: "uuid",
11821
11820
  url: "uri",
@@ -12359,7 +12358,7 @@ function toJSONSchema(input, params) {
12359
12358
  return finalize(ctx, input);
12360
12359
  }
12361
12360
 
12362
- // node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/json-schema-generator.js
12361
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/json-schema-generator.js
12363
12362
  var JSONSchemaGenerator = class {
12364
12363
  /** @deprecated Access via ctx instead */
12365
12364
  get metadataRegistry() {
@@ -12434,10 +12433,10 @@ var JSONSchemaGenerator = class {
12434
12433
  }
12435
12434
  };
12436
12435
 
12437
- // node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/json-schema.js
12436
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/json-schema.js
12438
12437
  var json_schema_exports = {};
12439
12438
 
12440
- // node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/schemas.js
12439
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/schemas.js
12441
12440
  var schemas_exports2 = {};
12442
12441
  __export(schemas_exports2, {
12443
12442
  ZodAny: () => ZodAny,
@@ -12608,7 +12607,7 @@ __export(schemas_exports2, {
12608
12607
  xor: () => xor
12609
12608
  });
12610
12609
 
12611
- // node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/checks.js
12610
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/checks.js
12612
12611
  var checks_exports2 = {};
12613
12612
  __export(checks_exports2, {
12614
12613
  endsWith: () => _endsWith,
@@ -12642,7 +12641,7 @@ __export(checks_exports2, {
12642
12641
  uppercase: () => _uppercase
12643
12642
  });
12644
12643
 
12645
- // node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/iso.js
12644
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/iso.js
12646
12645
  var iso_exports = {};
12647
12646
  __export(iso_exports, {
12648
12647
  ZodISODate: () => ZodISODate,
@@ -12683,7 +12682,7 @@ function duration2(params) {
12683
12682
  return _isoDuration(ZodISODuration, params);
12684
12683
  }
12685
12684
 
12686
- // node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/errors.js
12685
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/errors.js
12687
12686
  var initializer2 = (inst, issues) => {
12688
12687
  $ZodError.init(inst, issues);
12689
12688
  inst.name = "ZodError";
@@ -12723,7 +12722,7 @@ var ZodRealError = /* @__PURE__ */ $constructor("ZodError", initializer2, {
12723
12722
  Parent: Error
12724
12723
  });
12725
12724
 
12726
- // node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/parse.js
12725
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/parse.js
12727
12726
  var parse2 = /* @__PURE__ */ _parse(ZodRealError);
12728
12727
  var parseAsync2 = /* @__PURE__ */ _parseAsync(ZodRealError);
12729
12728
  var safeParse2 = /* @__PURE__ */ _safeParse(ZodRealError);
@@ -12737,7 +12736,7 @@ var safeDecode2 = /* @__PURE__ */ _safeDecode(ZodRealError);
12737
12736
  var safeEncodeAsync2 = /* @__PURE__ */ _safeEncodeAsync(ZodRealError);
12738
12737
  var safeDecodeAsync2 = /* @__PURE__ */ _safeDecodeAsync(ZodRealError);
12739
12738
 
12740
- // node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/schemas.js
12739
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/schemas.js
12741
12740
  var _installedGroups = /* @__PURE__ */ new WeakMap();
12742
12741
  function _installLazyMethods(inst, group, methods) {
12743
12742
  const proto = Object.getPrototypeOf(inst);
@@ -14027,7 +14026,7 @@ function preprocess(fn, schema) {
14027
14026
  });
14028
14027
  }
14029
14028
 
14030
- // node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/compat.js
14029
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/compat.js
14031
14030
  var ZodIssueCode = {
14032
14031
  invalid_type: "invalid_type",
14033
14032
  too_big: "too_big",
@@ -14053,7 +14052,7 @@ var ZodFirstPartyTypeKind;
14053
14052
  /* @__PURE__ */ (function(ZodFirstPartyTypeKind2) {
14054
14053
  })(ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {}));
14055
14054
 
14056
- // node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/from-json-schema.js
14055
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/from-json-schema.js
14057
14056
  var z = {
14058
14057
  ...schemas_exports2,
14059
14058
  ...checks_exports2,
@@ -14533,7 +14532,7 @@ function fromJSONSchema(schema, params) {
14533
14532
  return convertSchema(normalized, ctx);
14534
14533
  }
14535
14534
 
14536
- // node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/coerce.js
14535
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/coerce.js
14537
14536
  var coerce_exports = {};
14538
14537
  __export(coerce_exports, {
14539
14538
  bigint: () => bigint3,
@@ -14558,16 +14557,16 @@ function date4(params) {
14558
14557
  return _coercedDate(ZodDate, params);
14559
14558
  }
14560
14559
 
14561
- // node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/external.js
14560
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/external.js
14562
14561
  config(en_default());
14563
14562
 
14564
- // src/tools/video-editor-local/plugin-updates.ts
14563
+ // src/adapters/codex-plugin.ts
14565
14564
  import { execFileSync } from "node:child_process";
14566
14565
  import {
14567
14566
  cpSync,
14568
14567
  existsSync as existsSync2,
14569
14568
  lstatSync,
14570
- mkdirSync,
14569
+ mkdirSync as mkdirSync2,
14571
14570
  readFileSync as readFileSync2,
14572
14571
  readdirSync,
14573
14572
  realpathSync,
@@ -14577,8 +14576,9 @@ import {
14577
14576
  } from "node:fs";
14578
14577
  import { dirname as dirname2, join as join3 } from "node:path";
14579
14578
 
14580
- // src/tools/video-editor-local/codex.ts
14579
+ // src/adapters/codex.ts
14581
14580
  import { spawnSync } from "node:child_process";
14581
+ import { mkdirSync } from "node:fs";
14582
14582
  import { homedir } from "node:os";
14583
14583
  import { join as join2 } from "node:path";
14584
14584
  function findCodex(capability = "mcp") {
@@ -14598,8 +14598,29 @@ function findCodex(capability = "mcp") {
14598
14598
  "Could not find the desktop app's Codex CLI. Install or update the app, or set CODEX_CLI_PATH."
14599
14599
  );
14600
14600
  }
14601
+ var ensureCodexHome = () => mkdirSync(process.env.CODEX_HOME ?? join2(homedir(), ".codex"), { recursive: true });
14602
+ function installCodex(name, entry2, ours) {
14603
+ ensureCodexHome();
14604
+ const codex = findCodex();
14605
+ const run3 = (...args) => spawnSync(codex, args, { encoding: "utf8" });
14606
+ const current = run3("mcp", "get", name, "--json");
14607
+ if (current.status === 0) {
14608
+ const { transport } = JSON.parse(current.stdout);
14609
+ if (transport?.command === entry2.command && transport.args?.join("\0") === entry2.args.join("\0"))
14610
+ return `${name} is already registered. Start a new chat to use it.`;
14611
+ if (transport?.args?.length !== 1 || !ours.includes(transport.args[0]))
14612
+ throw new Error(
14613
+ `${name} already exists with a different configuration; review it with \`codex mcp get ${name}\`. Nothing changed.`
14614
+ );
14615
+ const removed = run3("mcp", "remove", name);
14616
+ if (removed.status !== 0) throw new Error(removed.stderr || `Could not update ${name}.`);
14617
+ }
14618
+ const added = run3("mcp", "add", name, "--", entry2.command, ...entry2.args);
14619
+ if (added.status !== 0) throw new Error(added.stderr || "Codex registration failed.");
14620
+ return `Registered ${name}. Start a new chat to use it.`;
14621
+ }
14601
14622
 
14602
- // src/tools/video-editor-local/plugin-updates.ts
14623
+ // src/adapters/codex-plugin.ts
14603
14624
  var PLUGIN_ROLLBACK_ERROR = "Plugin refresh failed and rollback requires attention.";
14604
14625
  var identity = external_exports.object({
14605
14626
  name: external_exports.string().regex(/^[a-z][a-z0-9-]{0,63}$/),
@@ -14652,11 +14673,11 @@ function bundledPlugin(options) {
14652
14673
  if (!lstatSync(root).isDirectory()) throw new Error("Plugin bundle must be a directory");
14653
14674
  validateTree(root);
14654
14675
  const manifest = identity.parse(JSON.parse(readFileSync2(join3(root, "plugin.json"), "utf8")));
14655
- const legacy = identity.parse(
14676
+ const codex = identity.parse(
14656
14677
  JSON.parse(readFileSync2(join3(root, ".codex-plugin/plugin.json"), "utf8"))
14657
14678
  );
14658
- if (manifest.name !== legacy.name || manifest.version !== options.version || legacy.version !== options.version)
14659
- throw new Error("Plugin identity/version must match its package and compatibility manifest");
14679
+ if (manifest.name !== codex.name || manifest.version !== options.version || codex.version !== options.version)
14680
+ throw new Error("Plugin identity/version must match its package and Codex manifest");
14660
14681
  return { root, name: manifest.name };
14661
14682
  }
14662
14683
  function refreshBundledPlugin(options, install = false, runner = run) {
@@ -14673,7 +14694,7 @@ function refreshBundledPlugin(options, install = false, runner = run) {
14673
14694
  const codex = previous?.codex ?? findCodex("plugin");
14674
14695
  const marketplaceName = `higgsfield-video-editor-updates-${options.channel}`;
14675
14696
  const root = join3(options.root, "marketplace");
14676
- mkdirSync(root, { recursive: true });
14697
+ mkdirSync2(root, { recursive: true });
14677
14698
  const marketplaces = external_exports.object({ marketplaces: external_exports.array(external_exports.object({ name: external_exports.string(), root: external_exports.string() })) }).parse(JSON.parse(runner(codex, ["plugin", "marketplace", "list", "--json"])));
14678
14699
  const existing = marketplaces.marketplaces.find(
14679
14700
  (marketplace) => marketplace.name === marketplaceName
@@ -14692,7 +14713,7 @@ function refreshBundledPlugin(options, install = false, runner = run) {
14692
14713
  if (current && !current.enabled)
14693
14714
  throw new Error("Enable the plugin in the host before refreshing it");
14694
14715
  const catalog = join3(root, ".agents/plugins/marketplace.json");
14695
- mkdirSync(dirname2(catalog), { recursive: true });
14716
+ mkdirSync2(dirname2(catalog), { recursive: true });
14696
14717
  const oldCatalog = existsSync2(catalog) ? readFileSync2(catalog, "utf8") : null;
14697
14718
  const oldMarker = existsSync2(marker) ? readFileSync2(marker, "utf8") : null;
14698
14719
  if (current && oldCatalog === null)
@@ -14704,7 +14725,7 @@ function refreshBundledPlugin(options, install = false, runner = run) {
14704
14725
  try {
14705
14726
  cpSync(bundle.root, staging, { recursive: true });
14706
14727
  bindPackageRuntime(staging, options.dist);
14707
- mkdirSync(dirname2(destination), { recursive: true });
14728
+ mkdirSync2(dirname2(destination), { recursive: true });
14708
14729
  renameSync(staging, destination);
14709
14730
  } finally {
14710
14731
  rmSync(staging, { recursive: true, force: true });
@@ -14760,7 +14781,7 @@ function refreshBundledPlugin(options, install = false, runner = run) {
14760
14781
  }
14761
14782
  }
14762
14783
 
14763
- // src/tools/video-editor-local/updates.ts
14784
+ // src/video-editor-local/updates.ts
14764
14785
  var UPDATE_PACKAGE = "@higgsfield/video-editor-mcp";
14765
14786
  var UPDATE_REGISTRY = "https://registry.npmjs.org/";
14766
14787
  var CHECK_INTERVAL = 60 * 60 * 1e3;
@@ -14864,7 +14885,7 @@ var run2 = (command2, args, timeout, cwd) => execFileSync2(command2, args, {
14864
14885
  function updateEditor(options, force = false, runner = run2) {
14865
14886
  const { root, channel } = options;
14866
14887
  if (!force && !checkDue(root)) return "Already checked within the last hour.";
14867
- mkdirSync2(root, { recursive: true });
14888
+ mkdirSync3(root, { recursive: true });
14868
14889
  const lock = join4(root, "update.lock");
14869
14890
  try {
14870
14891
  if (Date.now() - statSync2(lock).mtimeMs > 10 * 60 * 1e3)
@@ -14872,7 +14893,7 @@ function updateEditor(options, force = false, runner = run2) {
14872
14893
  } catch {
14873
14894
  }
14874
14895
  try {
14875
- mkdirSync2(lock);
14896
+ mkdirSync3(lock);
14876
14897
  } catch {
14877
14898
  return "Another update is running.";
14878
14899
  }
@@ -14911,7 +14932,7 @@ function updateEditor(options, force = false, runner = run2) {
14911
14932
  let dist = packageDist(destination);
14912
14933
  if (!validPackage(dist, candidate)) {
14913
14934
  rmSync2(staging, { recursive: true, force: true });
14914
- mkdirSync2(staging);
14935
+ mkdirSync3(staging);
14915
14936
  runner(
14916
14937
  "npm",
14917
14938
  [
@@ -14966,7 +14987,12 @@ function updateEditor(options, force = false, runner = run2) {
14966
14987
  }
14967
14988
  }
14968
14989
 
14969
- // src/tools/video-editor-local/setup.ts
14990
+ // src/adapters/claude.ts
14991
+ var claudeConfig = (name, entry2) => ({
14992
+ mcpServers: { [name]: entry2 }
14993
+ });
14994
+
14995
+ // src/video-editor-local/setup.ts
14970
14996
  var NAME = "higgsfield-use-video-editor";
14971
14997
  var DIST = dirname4(import.meta.filename);
14972
14998
  var SERVER = join5(DIST, "server.mjs");
@@ -14990,36 +15016,18 @@ function doctor() {
14990
15016
  }
14991
15017
  ];
14992
15018
  }
14993
- function installCodex() {
15019
+ function assertPersistentInstall() {
14994
15020
  if (DIST.split(sep).includes("_npx"))
14995
15021
  throw new Error(
14996
15022
  `Install a persistent copy first (npm install --prefix ~/.higgsfield/video-editor-mcp ${UPDATE_PACKAGE}); an npx cache path must not be registered.`
14997
15023
  );
14998
15024
  if (!existsSync4(SERVER))
14999
15025
  throw new Error(`The server is missing at ${SERVER}; reinstall the package.`);
15000
- mkdirSync3(process.env.CODEX_HOME ?? join5(homedir3(), ".codex"), { recursive: true });
15001
- const codex = findCodex();
15002
- const run3 = (...args) => spawnSync2(codex, args, { encoding: "utf8" });
15003
- const current = run3("mcp", "get", NAME, "--json");
15004
- if (current.status === 0) {
15005
- const { transport } = JSON.parse(current.stdout);
15006
- if (transport?.command === entry.command && transport.args?.join("\0") === entry.args.join("\0"))
15007
- return `${NAME} is already registered. Start a new chat to use it.`;
15008
- if (transport?.args?.length !== 1 || ![SERVER, LAUNCHER].includes(transport.args[0]))
15009
- throw new Error(
15010
- `${NAME} already exists with a different configuration; review it with \`codex mcp get ${NAME}\`. Nothing changed.`
15011
- );
15012
- const removed = run3("mcp", "remove", NAME);
15013
- if (removed.status !== 0) throw new Error(removed.stderr || `Could not update ${NAME}.`);
15014
- }
15015
- const added = run3("mcp", "add", NAME, "--", entry.command, ...entry.args);
15016
- if (added.status !== 0) throw new Error(added.stderr || "Codex registration failed.");
15017
- return `Registered ${NAME}. Start a new chat to use it.`;
15018
15026
  }
15019
15027
  var command = process.argv[2] ?? "help";
15020
15028
  try {
15021
15029
  if (command === "config") {
15022
- console.log(JSON.stringify({ mcpServers: { [NAME]: entry } }, null, 2));
15030
+ console.log(JSON.stringify(claudeConfig(NAME, entry), null, 2));
15023
15031
  } else if (command === "doctor") {
15024
15032
  const checks = doctor();
15025
15033
  const ok = checks.every((check2) => check2.ok);
@@ -15028,14 +15036,15 @@ try {
15028
15036
  );
15029
15037
  process.exitCode = ok ? 0 : 1;
15030
15038
  } else if (command === "install-codex") {
15031
- console.log(installCodex());
15039
+ assertPersistentInstall();
15040
+ console.log(installCodex(NAME, entry, [SERVER, LAUNCHER]));
15032
15041
  } else if (command === "install-plugin") {
15033
- mkdirSync3(process.env.CODEX_HOME ?? join5(homedir3(), ".codex"), { recursive: true });
15042
+ ensureCodexHome();
15034
15043
  const options = updateOptions(DIST);
15035
15044
  const lock = join5(options.root, "update.lock");
15036
- mkdirSync3(options.root, { recursive: true });
15045
+ mkdirSync4(options.root, { recursive: true });
15037
15046
  try {
15038
- mkdirSync3(lock);
15047
+ mkdirSync4(lock);
15039
15048
  } catch {
15040
15049
  throw new Error("Another update is running; retry install-plugin after it finishes.");
15041
15050
  }