@cliangdev/conductor 0.51.0 → 0.52.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 (83) hide show
  1. package/assets/claude/agents/conductor-marketing-art-director.md +2 -1
  2. package/assets/claude/skills/conductor-marketing-create/SKILL.md +12 -2
  3. package/assets/claude/skills/conductor-marketing-create/references/capabilities.md +9 -2
  4. package/assets/claude/skills/conductor-marketing-create/references/direct.md +39 -6
  5. package/assets/claude/skills/conductor-marketing-create/references/platform-specs.md +15 -4
  6. package/assets/claude/skills/conductor-marketing-create/references/shotlist-template.md +2 -2
  7. package/assets/claude/skills/conductor-marketing-create/references/slideshow-formats.md +2 -1
  8. package/assets/claude/skills/conductor-marketing-create/references/team-run.md +3 -3
  9. package/assets/cli-manifest.json +4 -4
  10. package/dist/creative/assertions.js +30 -3
  11. package/dist/creative/frame.js +2 -2
  12. package/dist/creative/job/media.mjs +2 -2
  13. package/dist/creative/job/render.mjs +3 -0
  14. package/dist/creative/placements.js +2 -2
  15. package/dist/creative/placements.json +3 -3
  16. package/dist/creative/render.js +20 -8
  17. package/dist/lib/creative-render.d.ts +14 -1
  18. package/dist/lib/creative-render.d.ts.map +1 -1
  19. package/dist/lib/creative-render.js +3 -1
  20. package/dist/lib/creative-render.js.map +1 -1
  21. package/dist/lib/safe-zone/check.d.ts +31 -0
  22. package/dist/lib/safe-zone/check.d.ts.map +1 -0
  23. package/dist/lib/safe-zone/check.js +267 -0
  24. package/dist/lib/safe-zone/check.js.map +1 -0
  25. package/dist/lib/safe-zone/frames.d.ts +35 -0
  26. package/dist/lib/safe-zone/frames.d.ts.map +1 -0
  27. package/dist/lib/safe-zone/frames.js +132 -0
  28. package/dist/lib/safe-zone/frames.js.map +1 -0
  29. package/dist/lib/safe-zone/ocr.d.ts +42 -0
  30. package/dist/lib/safe-zone/ocr.d.ts.map +1 -0
  31. package/dist/lib/safe-zone/ocr.js +139 -0
  32. package/dist/lib/safe-zone/ocr.js.map +1 -0
  33. package/dist/lib/safe-zone/overlay.d.ts +59 -0
  34. package/dist/lib/safe-zone/overlay.d.ts.map +1 -0
  35. package/dist/lib/safe-zone/overlay.js +283 -0
  36. package/dist/lib/safe-zone/overlay.js.map +1 -0
  37. package/dist/lib/safe-zone/zones.d.ts +46 -0
  38. package/dist/lib/safe-zone/zones.d.ts.map +1 -0
  39. package/dist/lib/safe-zone/zones.js +84 -0
  40. package/dist/lib/safe-zone/zones.js.map +1 -0
  41. package/dist/lib/slideshow/compose.d.ts +2 -0
  42. package/dist/lib/slideshow/compose.d.ts.map +1 -1
  43. package/dist/lib/slideshow/compose.js +1 -1
  44. package/dist/lib/slideshow/compose.js.map +1 -1
  45. package/dist/lib/slideshow/css.d.ts +2 -0
  46. package/dist/lib/slideshow/css.d.ts.map +1 -1
  47. package/dist/lib/slideshow/css.js +9 -5
  48. package/dist/lib/slideshow/css.js.map +1 -1
  49. package/dist/lib/slideshow/html.d.ts +12 -3
  50. package/dist/lib/slideshow/html.d.ts.map +1 -1
  51. package/dist/lib/slideshow/html.js +16 -10
  52. package/dist/lib/slideshow/html.js.map +1 -1
  53. package/dist/lib/slideshow/spec-transport.d.ts.map +1 -1
  54. package/dist/lib/slideshow/spec-transport.js +4 -2
  55. package/dist/lib/slideshow/spec-transport.js.map +1 -1
  56. package/dist/lib/slideshow/spec.d.ts +8 -0
  57. package/dist/lib/slideshow/spec.d.ts.map +1 -1
  58. package/dist/lib/slideshow/spec.js +6 -0
  59. package/dist/lib/slideshow/spec.js.map +1 -1
  60. package/dist/lib/slideshow-pacing.d.ts +46 -0
  61. package/dist/lib/slideshow-pacing.d.ts.map +1 -0
  62. package/dist/lib/slideshow-pacing.js +98 -0
  63. package/dist/lib/slideshow-pacing.js.map +1 -0
  64. package/dist/mcp/index.d.ts +437 -6
  65. package/dist/mcp/index.d.ts.map +1 -1
  66. package/dist/mcp/index.js +24 -10
  67. package/dist/mcp/index.js.map +1 -1
  68. package/dist/mcp/tools/creative-drafts.d.ts +16 -2
  69. package/dist/mcp/tools/creative-drafts.d.ts.map +1 -1
  70. package/dist/mcp/tools/creative-drafts.js +237 -31
  71. package/dist/mcp/tools/creative-drafts.js.map +1 -1
  72. package/dist/mcp/tools/creatives.d.ts +12 -3
  73. package/dist/mcp/tools/creatives.d.ts.map +1 -1
  74. package/dist/mcp/tools/creatives.js +235 -17
  75. package/dist/mcp/tools/creatives.js.map +1 -1
  76. package/dist/mcp/tools/safe-zone-pixels.d.ts +165 -0
  77. package/dist/mcp/tools/safe-zone-pixels.d.ts.map +1 -0
  78. package/dist/mcp/tools/safe-zone-pixels.js +300 -0
  79. package/dist/mcp/tools/safe-zone-pixels.js.map +1 -0
  80. package/dist/mcp/tools/slideshow-render.d.ts.map +1 -1
  81. package/dist/mcp/tools/slideshow-render.js +3 -1
  82. package/dist/mcp/tools/slideshow-render.js.map +1 -1
  83. package/package.json +4 -2
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/mcp/index.ts"],"names":[],"mappings":";AAsRA,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAgnDjB,CAAA;AAwBD;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,EAAE,IAAI,CAAC,EAAE,OAAO;;cACxD,OAAO;cAAQ,MAAM;kBAAY,MAAM;;cAAa,MAAM;cAAQ,MAAM;;EAOtG;AAoBD,wBAAsB,YAAY,IAAI,OAAO,CAAC,IAAI,CAAC,CA+nClD"}
package/dist/mcp/index.js CHANGED
@@ -20,6 +20,7 @@ import { getMarketingInsights } from './tools/insights.js';
20
20
  import { getMarketingReport, setMarketingBenchmark, deleteMarketingBenchmark } from './tools/marketing-report.js';
21
21
  import { getBrandKit, updateBrandKit, createBrandKit, uploadBrandImage, listCreatives, listCreativeMedia, getCreative, createCreative, updateCreative, uploadCreativeMediaAny, uploadCreativePhoto, renderCreativeTool, previewCreative, attachCreativeToPost, createExperiment, } from './tools/creatives.js';
22
22
  import { previewCreativeDraft, commitCreativeDraft, } from './tools/creative-drafts.js';
23
+ import { closeOcr } from '../lib/safe-zone/ocr.js';
23
24
  import { resolveCreativeId } from '../lib/creative-id.js';
24
25
  import { deleteMedia, deleteCreative } from './tools/creative-delete.js';
25
26
  const CREATIVE_TOOLS = [
@@ -85,7 +86,7 @@ const CREATIVE_FIELD_PROPERTIES = {
85
86
  slideAltText: {
86
87
  type: 'array',
87
88
  items: { type: 'string' },
88
- description: 'CAROUSEL only: alt text per slide, index-aligned (entry N describes slide N in every placement).',
89
+ description: 'CAROUSEL only: alt text per slide, index-aligned (entry N describes slide N in every placement). Convention: describe the picture, then `Text: "line one" / "line two"` for the words printed on the slide (or `Text: none`). That Text part times the slides of a slideshow video.',
89
90
  },
90
91
  motion: {
91
92
  type: 'object',
@@ -121,7 +122,7 @@ const CREATIVE_FIELD_PROPERTIES = {
121
122
  },
122
123
  slideshow: {
123
124
  type: 'object',
124
- description: 'CAROUSEL only: how the 9x16 slides become a video when audio.source is track. slideDurations: seconds per 9x16 slide, one entry per slide, each 1-10 (default 3 for the first, 2.5 for the rest). zoom: slow push-in on each slide, default true. Slides cross-fade for 0.5 s.',
125
+ description: 'CAROUSEL only: how the 9x16 slides become a video when audio.source is track. slideDurations: seconds per 9x16 slide, one entry per slide, each 1-10. Omitted: the tool times each slide from its text (clamp(2.4 + 0.14 x words, 3.0, 4.8) s, +0.5 s on the first slide, +0.5 s on an app screen or chart), and 3.5 s first / 3.0 s rest when there is no text. zoom: slow push-in on each slide, default true. Slides cross-fade for 0.5 s, out of each slide\'s time.',
125
126
  properties: {
126
127
  slideDurations: { type: 'array', items: { type: 'number' } },
127
128
  zoom: { type: 'boolean' },
@@ -1614,7 +1615,7 @@ export const TOOLS = [
1614
1615
  },
1615
1616
  {
1616
1617
  name: 'render_creative',
1617
- description: 'Render a Creative to upload-ready frames — one JPEG per placement for STILL (Playwright on this machine), or one MP4 with a poster per placement for MOTION (ffmpeg-encoded on this machine) — or a small contact sheet with previewOnly. Runs synchronously: a STILL placement takes seconds; a MOTION placement takes roughly 20s per 8s of video, so a multi-placement MOTION render can take a couple of minutes. CLIP and CAROUSEL render on the server in one call (previewOnly is refused), unless the Creative has audio that needs encoding: a CAROUSEL with a track (adds one 9x16 slideshow MP4) or a CLIP with track, mix or none (re-muxed on this machine, with ffmpeg). Returns the render id, state, frame URLs (MOTION frames also carry durationSeconds/hasAudio/posterUrl) and any warnings. Call preview_creative to actually look at the result.',
1618
+ description: 'Render a Creative to upload-ready frames — one JPEG per placement for STILL (Playwright on this machine), or one MP4 with a poster per placement for MOTION (ffmpeg-encoded on this machine) — or a small contact sheet with previewOnly. Runs synchronously: a STILL placement takes seconds; a MOTION placement takes roughly 20s per 8s of video, so a multi-placement MOTION render can take a couple of minutes. CLIP and CAROUSEL render on the server in one call (previewOnly is refused), unless the Creative has audio that needs encoding: a CAROUSEL with a track (adds one 9x16 slideshow MP4) or a CLIP with track, mix or none (re-muxed on this machine, with ffmpeg). Returns the render id, state, frame URLs (MOTION frames also carry durationSeconds/hasAudio/posterUrl) and any warnings. For a CAROUSEL or CLIP with a 9x16 placement it also reports checks for text under the platform UI (reported only, never blocking). Call preview_creative to actually look at the result.',
1618
1619
  inputSchema: {
1619
1620
  type: 'object',
1620
1621
  properties: {
@@ -1628,11 +1629,12 @@ export const TOOLS = [
1628
1629
  },
1629
1630
  {
1630
1631
  name: 'preview_creative',
1631
- description: "Look at a Creative: returns its latest contact sheet as an image (rendering a fresh previewOnly one first if none exists yet). For MOTION this is three key moments across the animation, not the finished video, with a text note giving the duration and — once a full render of the current version exists — its rendered MP4 URLs. Use this to judge the actual artwork — does the headline read at a glance, is the copy sitting on the subject's face — not just the data. If the image is too large to inline it returns the URL instead, with a note saying so.",
1632
+ description: "Look at a Creative: returns its latest contact sheet as an image (rendering a fresh previewOnly one first if none exists yet). For MOTION this is three key moments across the animation, not the finished video, with a text note giving the duration and — once a full render of the current version exists — its rendered MP4 URLs. Use this to judge the actual artwork — does the headline read at a glance, is the copy sitting on the subject's face — not just the data. If the image is too large to inline it returns the URL instead, with a note saying so. For a saved CAROUSEL or CLIP with a 9x16 placement it also downloads the 9x16 slides or video, checks them for text under the platform UI (checks, passed) and writes the Instagram/TikTok UI overlay sheets to disk (overlaySheets).",
1632
1633
  inputSchema: {
1633
1634
  type: 'object',
1634
1635
  properties: {
1635
1636
  creativeId: { type: 'string', description: 'Creative id, or its display id such as 12a' },
1637
+ uiOverlay: { type: 'string', enum: ['instagram', 'tiktok', 'both', 'none'], description: 'Which platform UI sheets to write for a CAROUSEL or CLIP (default both).' },
1636
1638
  },
1637
1639
  required: ['creativeId'],
1638
1640
  },
@@ -1693,7 +1695,7 @@ export const TOOLS = [
1693
1695
  },
1694
1696
  {
1695
1697
  name: 'preview_creative_draft',
1696
- description: "Look at a Creative BEFORE anything is saved: renders a draft on this machine and returns the contact sheet as an image plus the draftDir, readiness gaps and warnings. Takes the create_creative fields, plus local files (photoPath, clipPath, audioPath, per-beat photoPath) that are used for the render only. It never writes to Conductor — no Creative, no upload. It also runs the full render's per-placement checks (text spill, platform safe zones such as TikTok/Reels' overlay band, contrast, fonts, images) without saving anything and returns them as checks plus a passed flag. If passed is false, fix the design (copy, layout, layoutOverrides, typeOverrides) and call this again BEFORE showing the image or asking for approval — a failing check would fail the real render. Only when passed is true, show the image to the person; only after they approve, call commit_creative_draft. To change something, call this again. With baseCreativeId, previews edits on top of a saved Creative. For kind CAROUSEL pass slidePaths instead of a photo (the spec.json compose_slideshow wrote beside them is kept with the draft, or pass slideshowSpecPath): it returns one contact sheet per placement (slides in order), readiness and per-slide aspect violations; with a track (audio.trackId or audioPath) it also renders the slideshow MP4 on this machine and returns its path as slideshowVideoPath. Violations come back as a structured error and nothing is rendered.",
1698
+ description: "Look at a Creative BEFORE anything is saved: renders a draft on this machine and returns the contact sheet as an image plus the draftDir, readiness gaps and warnings. Takes the create_creative fields, plus local files (photoPath, clipPath, audioPath, per-beat photoPath) that are used for the render only. It never writes to Conductor — no Creative, no upload. It also runs the full render's per-placement checks (text spill, platform safe zones such as TikTok/Reels' overlay band, contrast, fonts, images) without saving anything and returns them as checks plus a passed flag. If passed is false, fix the design (copy, layout, layoutOverrides, typeOverrides) and call this again BEFORE showing the image or asking for approval — a failing check would fail the real render. Only when passed is true, show the image to the person; only after they approve, call commit_creative_draft. To change something, call this again. With baseCreativeId, previews edits on top of a saved Creative. For kind CAROUSEL pass slidePaths instead of a photo (the spec.json compose_slideshow wrote beside them is kept with the draft, or pass slideshowSpecPath): it returns one contact sheet per placement (slides in order), readiness and per-slide aspect violations; with a track (audio.trackId or audioPath) it also renders the slideshow MP4 on this machine and returns its path as slideshowVideoPath, timing each slide from its text when slideDurations is omitted (returns slideDurations, slideshowDurationSeconds and pacing; say the total length when showing it). Finished 9:16 slides (CAROUSEL) and videos (kind CLIP, via clipPath or clipPaths: nothing is sent to Conductor, no commit; then upload_creative_media + create_creative) are read for text under the platform UI: checks with rule safeZoneText (top y<290 is an error on slide 1 and in the first 3 s) or safeZoneUnchecked (could not look); passed false means fix the files and re-preview BEFORE showing them. The image shown for them is the Instagram UI drawn over the slides or the first seconds and each cut; overlaySheets lists the Instagram and TikTok sheets on disk (uiOverlay: instagram | tiktok | both (default) | none). Violations come back as a structured error and nothing is rendered.",
1697
1699
  inputSchema: {
1698
1700
  type: 'object',
1699
1701
  properties: {
@@ -1713,7 +1715,9 @@ export const TOOLS = [
1713
1715
  },
1714
1716
  },
1715
1717
  photoPath: { type: 'string', description: 'A photo on this machine (optional; use instead of photoId)' },
1716
- clipPath: { type: 'string', description: 'MOTION only: a video clip on this machine used as the background (optional; use instead of motion.background.clipMediaId)' },
1718
+ clipPath: { type: 'string', description: 'MOTION: a video clip on this machine used as the background (optional; use instead of motion.background.clipMediaId). kind CLIP: the finished video to check (9:16 unless its aspect says otherwise).' },
1719
+ clipPaths: { type: 'object', additionalProperties: { type: 'string' }, description: 'kind CLIP only: finished videos on this machine per placement, e.g. {"9x16": "/clips/a.mp4"}.' },
1720
+ uiOverlay: { type: 'string', enum: ['instagram', 'tiktok', 'both', 'none'], description: 'Platform UI drawn over 9:16 frames (default both, written to disk; the Instagram sheet is the image shown for a CAROUSEL or CLIP).' },
1717
1721
  audioPath: { type: 'string', description: 'MOTION or CAROUSEL: an audio file on this machine used as the music track (optional; use instead of audio.trackId). For a CAROUSEL, set audio.source to track too. Committing uploads it into the library — record its source and licence.' },
1718
1722
  slidePaths: {
1719
1723
  type: 'object',
@@ -1784,11 +1788,12 @@ export const TOOLS = [
1784
1788
  },
1785
1789
  {
1786
1790
  name: 'attach_creative_to_post',
1787
- description: "Attach a Creative's rendered frames to a Post as its media — placement to platform (9x16 to TikTok/Instagram Reels, 4x5 to Instagram feed, 1x1 to Facebook, story to story targets; sequence frames in order) — for every destination that has not set its own custom media. A CAROUSEL goes to Instagram feed (4x5), Facebook feed (1x1, else 4x5) and TikTok (9x16); Reels, Stories and YouTube cannot take its photos. A CAROUSEL with a track also has a slideshow video: per target, carouselAs (photos | video) in publish options picks which is sent (default video for TikTok and YouTube, photos for Instagram and Facebook feed). Uses the latest SUCCEEDED, non-preview render unless renderId is given (a CLIP or CAROUSEL with none is rendered first). A DRAFT Creative that passes readiness becomes READY on attach; the result's creativeState is its state afterwards and stateNote, when set, says why it stayed DRAFT. Call get_post_status (postId) to verify.",
1791
+ description: "Attach a Creative's rendered frames to a Post as its media — placement to platform (9x16 to TikTok/Instagram Reels, 4x5 to Instagram feed, 1x1 to Facebook, story to story targets; sequence frames in order) — for every destination that has not set its own custom media. A CAROUSEL goes to Instagram feed (4x5), Facebook feed (1x1, else 4x5) and TikTok (9x16); Reels, Stories and YouTube cannot take its photos. A CAROUSEL with a track also has a slideshow video: per target, carouselAs (photos | video) in publish options picks which is sent (default video for TikTok and YouTube, photos for Instagram and Facebook feed). Uses the latest SUCCEEDED, non-preview render unless renderId is given (a CLIP or CAROUSEL with none is rendered first). A DRAFT Creative that passes readiness becomes READY on attach; the result's creativeState is its state afterwards and stateNote, when set, says why it stayed DRAFT. Call get_post_status (postId) to verify. Pre-flight for a CAROUSEL or CLIP with a 9x16 placement: the rendered pixels are read for text under the platform UI, and an error (top y<290 on slide 1 or in the first 3 s) is refused with code SAFE_ZONE_TEXT and the checks; fix the media, or pass ignoreSafeZone: true only after the person accepts it. Warnings are returned as safeZoneChecks.",
1788
1792
  inputSchema: {
1789
1793
  type: 'object',
1790
1794
  properties: {
1791
1795
  creativeId: { type: 'string', description: 'Creative id, or its display id such as 12a' },
1796
+ ignoreSafeZone: { type: 'boolean', description: 'Attach despite a SAFE_ZONE_TEXT refusal. Only after the person has seen the checks and accepts them.' },
1792
1797
  postId: { type: 'string', description: "The Post's Work Item id — same value get_post_status takes as postId" },
1793
1798
  workItemId: { type: 'string', description: 'Deprecated alias for postId' },
1794
1799
  renderId: { type: 'string', description: 'A specific render to attach (optional — defaults to the latest SUCCEEDED render)' },
@@ -2555,13 +2560,15 @@ export async function runMcpServer() {
2555
2560
  }, config, onProgress));
2556
2561
  }
2557
2562
  case 'preview_creative': {
2558
- const result = await previewCreative({ creativeId: params['creativeId'] }, config);
2563
+ const result = await previewCreative({ creativeId: params['creativeId'], uiOverlay: params['uiOverlay'] }, config);
2559
2564
  if (result.image) {
2560
2565
  return imageResponse(result.image, {
2561
2566
  renderId: result.renderId,
2562
2567
  state: result.state,
2563
2568
  url: result.url,
2564
2569
  note: result.note,
2570
+ ...(result.checks ? { checks: result.checks, passed: result.passed } : {}),
2571
+ ...(result.overlaySheets ? { overlaySheets: result.overlaySheets } : {}),
2565
2572
  });
2566
2573
  }
2567
2574
  return successResponse(result);
@@ -2668,12 +2675,14 @@ export async function runMcpServer() {
2668
2675
  return successResponse(await updateCreativeSlideText(params, config));
2669
2676
  }
2670
2677
  case 'attach_creative_to_post': {
2671
- return successResponse(await attachCreativeToPost({
2678
+ const attached = await attachCreativeToPost({
2672
2679
  creativeId: params['creativeId'],
2673
2680
  postId: params['postId'],
2674
2681
  workItemId: params['workItemId'],
2675
2682
  renderId: params['renderId'],
2676
- }, config));
2683
+ ignoreSafeZone: params['ignoreSafeZone'],
2684
+ }, config);
2685
+ return attached['code'] === 'SAFE_ZONE_TEXT' ? errorResponse(attached) : successResponse(attached);
2677
2686
  }
2678
2687
  case 'create_experiment': {
2679
2688
  return successResponse(await createExperiment({
@@ -2702,6 +2711,11 @@ export async function runMcpServer() {
2702
2711
  return errorResponse(message);
2703
2712
  }
2704
2713
  });
2714
+ // The OCR worker (safe-zone checks) stays warm for the session and is stopped when the client disconnects,
2715
+ // so the process can exit.
2716
+ server.onclose = () => {
2717
+ void closeOcr().catch(() => { });
2718
+ };
2705
2719
  const transport = new StdioServerTransport();
2706
2720
  await server.connect(transport);
2707
2721
  }