@clipform/mcp-server 2.10.2 → 2.10.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,9 @@
1
1
  import {
2
+ FULL_CAPS,
2
3
  WORKFLOW_TYPES,
3
4
  getDiscoveryParams,
4
5
  getSessionContextWithAuth
5
- } from "./chunk-IL26A4IN.js";
6
+ } from "./chunk-O35IVA4L.js";
6
7
  import {
7
8
  __export
8
9
  } from "./chunk-G3PMV62Z.js";
@@ -4101,17 +4102,23 @@ var BUILD_ONCE_STEP = "**Build the whole form in ONE clipform_create_form call**
4101
4102
  var TAGS_LINE = "- tags: one format (quiz/survey/interview/feedback/lead-gen), one genre (trivia/personality/nps/poll/testimonial), and 2-3 topic words";
4102
4103
  var ATTACH_MEDIA_STEP = "**Attach media**: pass node_id (and form_id) on each render call (clipform_generate_video / clipform_render_video_template / clipform_render_composition) so it attaches to the node automatically once the render finishes - do not poll clipform_check_render to completion, just fire the renders and move on. Fall back to the manual two-step only for a render that didn't take a node_id: first clipform_upload_media_asset (batch all uploads in one call, include captions), then clipform_attach_node_media (batch all attachments in one call), setting show_captions: true and fit_media: true (generated renders must not be cropped).";
4103
4104
  var REPUBLISH_STEP = "**Republish** with clipform_update_form (is_live: true) - forms are live from creation, but media and edits added since are only visible in the live form after republishing. Never skip this when you attached anything.";
4104
- function quizWorkflow(args, sessionContext, authMode = "authenticated") {
4105
+ var LOG_STEP = "**Log** with clipform_log_generation";
4106
+ var TEXT_ONLY_OVERRIDE = "\n\n> **Text-only override:** If the user explicitly asked for text-only (no video), skip the video production and media attachment steps. Still generate narration.";
4107
+ function numbered(steps) {
4108
+ return steps.filter((s) => typeof s === "string").map((s, i) => `${i + 1}. ${s}`).join("\n");
4109
+ }
4110
+ function intro(sessionContext, discovery) {
4111
+ return `${sessionContext ? sessionContext + "\n\n" : ""}${discovery}`;
4112
+ }
4113
+ var quizWorkflow = (args, sessionContext, authMode, caps) => {
4105
4114
  const topic = args.topic ? ` about "${args.topic}"` : "";
4106
4115
  const count = args.question_count ?? 8;
4107
4116
  const discovery = buildDiscovery(getDiscoveryParams("quiz", void 0, authMode === "anonymous" ? "demo" : "full"), args, authMode);
4108
- return `${sessionContext ? sessionContext + "\n\n" : ""}${discovery}Here's how to build a great ${count}-question video quiz${topic} with Clipform. Read the attached quiz guide for craft knowledge on question design, difficulty curves, and narration style.
4109
-
4110
- ## Workflow
4111
-
4112
- 1. **Research** the topic - find surprising facts, common misconceptions, myth-busters
4113
- 2. **Write questions** - follow the difficulty curve (easy start, hard middle, satisfying end). Target ${count} questions.
4114
- 3. ${BUILD_ONCE_STEP}
4117
+ const craft = caps.media ? "question design, difficulty curves, and narration style" : "question design and difficulty curves";
4118
+ const steps = numbered([
4119
+ "**Research** the topic - find surprising facts, common misconceptions, myth-busters",
4120
+ `**Write questions** - follow the difficulty curve (easy start, hard middle, satisfying end). Target ${count} questions.`,
4121
+ `${BUILD_ONCE_STEP}
4115
4122
  - Settings: show_step_counter: true, disable_back_navigation: true
4116
4123
  - One choice node per question: config { choice: { show_answer_feedback: true }, randomise_options: true }, options with score: 1 on the correct answer and score: 0 on 3-4 plausible wrong ones. The viewer shuffles options at render time, so list them in any order. Scored options enable correct-answer marking automatically.
4117
4124
  - Final end_screen node - EVERY quiz must have:
@@ -4120,34 +4127,29 @@ function quizWorkflow(args, sessionContext, authMode = "authenticated") {
4120
4127
  - cta_type: "restart", cta_text: a short challenge like "Beat your score?" or "Try again?"
4121
4128
  - title and message that fit the quiz's voice - short, punchy, and specific to the topic (not generic "Good job!"). Example: title: "Well played!", message: "Share your score and challenge a friend."
4122
4129
  - NOTE: Personalised messages per score tier (score_ranges) are coming soon. For now, write one great end screen message that works for all scores.
4123
- ${TAGS_LINE}
4124
- 4. **Generate narration** with clipform_generate_tts - batch ALL questions in a single call (pass an array of items). Tease the question - do NOT reveal the answer or read options aloud. Keep each narration 5-15 seconds.
4125
- 5. **Build video** for each question - pass each question's node_id (and form_id) on the render call so it attaches automatically once done. Pick per question; mixing treatments across one quiz is fine:
4130
+ ${TAGS_LINE}`,
4131
+ caps.media && "**Generate narration** with clipform_generate_tts - batch ALL questions in a single call (pass an array of items). Tease the question - do NOT reveal the answer or read options aloud. Keep each narration 5-15 seconds.",
4132
+ caps.media && `**Build video** for each question - pass each question's node_id (and form_id) on the render call so it attaches automatically once done. Pick per question; mixing treatments across one quiz is fine:
4126
4133
  - Default - narrated slideshow: clipform_search_media (kind: "image", 3 images per question, batch all queries in one call), then clipform_generate_video with wait: false per question - fires all renders in parallel - then collect URLs with clipform_check_render.
4127
- - Designed visual - when a recipe or composition fits the question or the user asks for one (e.g. a versus, a grid reveal, guess-the-city): recipe book first - clipform_list_video_templates and match the mechanic to a recipe, then clipform_render_video_template with its curated controls (wait: false, one call per question). Only if no recipe fits, drop to the raw primitives - clipform_list_compositions, then ONE clipform_render_composition call with items (all clips render in parallel). Collect job_ids with clipform_check_render. Both take narration via sound.narration.
4128
- 6. ${ATTACH_MEDIA_STEP}
4129
- 7. ${REPUBLISH_STEP}
4130
- 8. **Log** with clipform_log_generation (sources, images, attributions)
4134
+ - Designed visual - when a recipe or composition fits the question or the user asks for one (e.g. a versus, a grid reveal, guess-the-city): recipe book first - clipform_list_video_templates and match the mechanic to a recipe, then clipform_render_video_template with its curated controls (wait: false, one call per question). Only if no recipe fits, drop to the raw primitives - clipform_list_compositions, then ONE clipform_render_composition call with items (all clips render in parallel). Collect job_ids with clipform_check_render. Both take narration via sound.narration.`,
4135
+ caps.media && ATTACH_MEDIA_STEP,
4136
+ REPUBLISH_STEP,
4137
+ caps.research && `${LOG_STEP} (sources, images, attributions)`
4138
+ ]);
4139
+ return `${intro(sessionContext, discovery)}Here's how to build a great ${count}-question ${caps.media ? "video " : ""}quiz${topic} with Clipform. Read the attached quiz guide for craft knowledge on ${craft}.
4131
4140
 
4132
- > **Text-only override:** If the user explicitly asked for text-only (no video), skip steps 5-6 (video production and media attachment). Still generate narration in step 4.`;
4133
- }
4134
- function personalityQuizWorkflow(args, sessionContext, authMode = "authenticated") {
4141
+ ## Workflow
4142
+
4143
+ ${steps}${caps.media ? TEXT_ONLY_OVERRIDE : ""}`;
4144
+ };
4145
+ var personalityQuizWorkflow = (args, sessionContext, authMode, caps) => {
4135
4146
  const topic = args.topic ? ` - "${args.topic}"` : "";
4136
4147
  const count = args.question_count ?? 8;
4137
4148
  const discovery = buildDiscovery(getDiscoveryParams("quiz", "personality", authMode === "anonymous" ? "demo" : "full"), args, authMode);
4138
- return `${sessionContext ? sessionContext + "\n\n" : ""}${discovery}Here's how to build a ${count}-question personality quiz${topic} with Clipform. Read the attached personality quiz guide for craft knowledge on category design, option weighting, and outcome writing.
4139
-
4140
- ## How it differs from a knowledge quiz
4141
-
4142
- There are NO correct answers. Each option should feel equally valid - the quiz is about self-expression, not testing knowledge. show_answer_feedback must be false.
4143
-
4144
- **NOTE:** Full category-based personality scoring (where each option maps to outcome categories and the winning category determines the result) is coming soon. For now, build personality quizzes as engaging choice-based forms with a single end screen. The experience is still great - respondents enjoy the questions themselves.
4145
-
4146
- ## Workflow
4147
-
4148
- 1. **Define 3-5 outcome categories** conceptually - these guide your question design even though automated scoring is not yet available.
4149
- 2. **Write questions** - each question should feel revealing but fun. Target ${count} questions.
4150
- 3. ${BUILD_ONCE_STEP}
4149
+ const steps = numbered([
4150
+ "**Define 3-5 outcome categories** conceptually - these guide your question design even though automated scoring is not yet available.",
4151
+ `**Write questions** - each question should feel revealing but fun. Target ${count} questions.`,
4152
+ `${BUILD_ONCE_STEP}
4151
4153
  - Settings: show_step_counter: true, disable_back_navigation: true
4152
4154
  - One choice node per question: config { choice: { show_answer_feedback: false } } (no right/wrong!)
4153
4155
  - Do NOT set randomise_options (option order matters for personality quizzes - lead with the most appealing)
@@ -4158,33 +4160,42 @@ There are NO correct answers. Each option should feel equally valid - the quiz i
4158
4160
  - cta_type: "restart", cta_text: "Find out again?" or "Take it again?"
4159
4161
  - Write a title and message that feel personal and shareable. Example: title: "Thanks for playing!", message: "Share this quiz with friends and compare your answers."
4160
4162
  - NOTE: Automated result screens per category (scoring_results) are coming soon. For now, write one engaging end screen.
4161
- ${TAGS_LINE}
4162
- 4. **Generate narration** with clipform_generate_tts - batch ALL questions in a single call. Conversational, reflective tone. "What does this say about you?" not "Do you know the answer?"
4163
- 5. **Build video** + **attach media** (same as knowledge quiz workflow)
4164
- 6. ${REPUBLISH_STEP}
4165
- 7. **Log** with clipform_log_generation`;
4166
- }
4167
- function comprehensionQuizWorkflow(args, sessionContext, authMode = "authenticated") {
4163
+ ${TAGS_LINE}`,
4164
+ caps.media && '**Generate narration** with clipform_generate_tts - batch ALL questions in a single call. Conversational, reflective tone. "What does this say about you?" not "Do you know the answer?"',
4165
+ caps.media && "**Build video** + **attach media** (same as knowledge quiz workflow)",
4166
+ REPUBLISH_STEP,
4167
+ caps.research && LOG_STEP
4168
+ ]);
4169
+ return `${intro(sessionContext, discovery)}Here's how to build a ${count}-question personality quiz${topic} with Clipform. Read the attached personality quiz guide for craft knowledge on category design, option weighting, and outcome writing.
4170
+
4171
+ ## How it differs from a knowledge quiz
4172
+
4173
+ There are NO correct answers. Each option should feel equally valid - the quiz is about self-expression, not testing knowledge. show_answer_feedback must be false.
4174
+
4175
+ **NOTE:** Full category-based personality scoring (where each option maps to outcome categories and the winning category determines the result) is coming soon. For now, build personality quizzes as engaging choice-based forms with a single end screen. The experience is still great - respondents enjoy the questions themselves.
4176
+
4177
+ ## Workflow
4178
+
4179
+ ${steps}`;
4180
+ };
4181
+ var comprehensionQuizWorkflow = (args, sessionContext, authMode, caps) => {
4168
4182
  const count = args.question_count ?? 8;
4169
4183
  const audienceLabel = args.audience ? ` (${args.audience})` : "";
4170
4184
  const discovery = buildDiscovery(getDiscoveryParams("quiz", "comprehension", authMode === "anonymous" ? "demo" : "full"), args, authMode);
4171
- return `${sessionContext ? sessionContext + "\n\n" : ""}${discovery}Here's how to build a ${count}-question comprehension quiz from a YouTube video. Read the attached quiz and comprehension guides for craft knowledge on question design and distractor techniques.
4172
-
4173
- ## Comprehension Quiz Workflow
4174
-
4175
- 1. **Get the video content** - ask the user to paste the video's transcript, closed captions, or a detailed summary of its key points (this workflow does not extract YouTube captions itself). Use the YouTube URL, if given, only as a reference/source link for step 10, not as something to fetch.
4176
- 2. **Analyse the content** - identify:
4185
+ const steps = numbered([
4186
+ `**Get the video content** - ask the user to paste the video's transcript, closed captions, or a detailed summary of its key points (this workflow does not extract YouTube captions itself). Use the YouTube URL, if given, only as a reference/source link${caps.research ? " for the audit log" : ""}, not as something to fetch.`,
4187
+ `**Analyse the content** - identify:
4177
4188
  - Key claims, facts, or arguments made in the video
4178
4189
  - Specific details a casual viewer might miss
4179
4190
  - The video's main thesis or conclusion
4180
- - Any surprising or counterintuitive points
4181
- 3. **Write comprehension questions** - these test whether someone WATCHED the video, not general knowledge:
4191
+ - Any surprising or counterintuitive points`,
4192
+ `**Write comprehension questions** - these test whether someone WATCHED the video, not general knowledge:
4182
4193
  - "According to the video, what is the main reason...?"
4183
4194
  - "What example does the video use to illustrate...?"
4184
4195
  - Include 1-2 inference questions: "Based on the video, why does the presenter believe...?"
4185
- - Avoid questions answerable without watching (e.g., common knowledge about the topic)
4186
- 4. **Adapt to the audience**${audienceLabel} - simplify language for younger audiences, focus on concrete/visual details rather than abstract arguments
4187
- 5. ${BUILD_ONCE_STEP}
4196
+ - Avoid questions answerable without watching (e.g., common knowledge about the topic)`,
4197
+ `**Adapt to the audience**${audienceLabel} - simplify language for younger audiences, focus on concrete/visual details rather than abstract arguments`,
4198
+ `${BUILD_ONCE_STEP}
4188
4199
  - Settings: show_step_counter: true, disable_back_navigation: true
4189
4200
  - One choice node per question: config { choice: { show_answer_feedback: true }, randomise_options: true }, options with score: 1 on the correct answer and score: 0 on 3-4 plausible wrong ones - make distractors things someone might guess without watching. The viewer shuffles options at render time, so list them in any order. Scored options enable correct-answer marking automatically.
4190
4201
  - Final end_screen node:
@@ -4193,14 +4204,20 @@ function comprehensionQuizWorkflow(args, sessionContext, authMode = "authenticat
4193
4204
  - cta_type: "restart", cta_text: "Rewatch and try again?"
4194
4205
  - title and message that reference the video. Example: title: "How well do you know this video?", message: "Share your score and see if your friends were really paying attention."
4195
4206
  - NOTE: Personalised messages per score tier (score_ranges) are coming soon. For now, write one great end screen message.
4196
- - tags: ["quiz", "comprehension", "youtube"] + 2-3 topic words from the video
4197
- 6. **Generate narration** with clipform_generate_tts - batch ALL questions in a single call. Reference the video naturally: "If you watched closely, you'll know this one..." Keep each narration 5-10 seconds.
4198
- 7. **Build video** for each question:
4207
+ - tags: ["quiz", "comprehension", "youtube"] + 2-3 topic words from the video`,
4208
+ caps.media && `**Generate narration** with clipform_generate_tts - batch ALL questions in a single call. Reference the video naturally: "If you watched closely, you'll know this one..." Keep each narration 5-10 seconds.`,
4209
+ caps.media && `**Build video** for each question:
4199
4210
  - clipform_search_media (kind: "image") - 3 images per question, batch all queries in one call
4200
- - clipform_generate_video with wait: false per question - fires all renders in parallel - then collect URLs with clipform_check_render
4201
- 8. ${ATTACH_MEDIA_STEP}
4202
- 9. ${REPUBLISH_STEP}
4203
- 10. **Log** with clipform_log_generation - include the YouTube URL and video title/channel as sources, using whatever of those the user provided
4211
+ - clipform_generate_video with wait: false per question - fires all renders in parallel - then collect URLs with clipform_check_render`,
4212
+ caps.media && ATTACH_MEDIA_STEP,
4213
+ REPUBLISH_STEP,
4214
+ caps.research && `${LOG_STEP} - include the YouTube URL and video title/channel as sources, using whatever of those the user provided`
4215
+ ]);
4216
+ return `${intro(sessionContext, discovery)}Here's how to build a ${count}-question comprehension quiz from a YouTube video. Read the attached quiz and comprehension guides for craft knowledge on question design and distractor techniques.
4217
+
4218
+ ## Comprehension Quiz Workflow
4219
+
4220
+ ${steps}
4204
4221
 
4205
4222
  ## Question Types for Comprehension
4206
4223
 
@@ -4212,91 +4229,100 @@ function comprehensionQuizWorkflow(args, sessionContext, authMode = "authenticat
4212
4229
  | Contrast | "The video compares X and Y. What was the key difference?" | Comprehension depth |
4213
4230
  | Conclusion | "What was the presenter's final point?" | Watched to the end |
4214
4231
 
4215
- Wrong answers should sound right to someone who didn't watch but googled the topic. The quiz should be unfair to non-watchers and fair to watchers.
4216
-
4217
- > **Text-only override:** If the user explicitly asked for text-only (no video), skip steps 7-8 (video production and media attachment). Still generate narration in step 6.`;
4218
- }
4219
- function compositionQuizWorkflow(args, sessionContext, authMode = "authenticated") {
4232
+ Wrong answers should sound right to someone who didn't watch but googled the topic. The quiz should be unfair to non-watchers and fair to watchers.${caps.media ? TEXT_ONLY_OVERRIDE : ""}`;
4233
+ };
4234
+ var compositionQuizWorkflow = (args, sessionContext, authMode, caps) => {
4220
4235
  const topic = args.topic ? ` about "${args.topic}"` : "";
4221
4236
  const count = args.question_count ?? 5;
4222
4237
  const discovery = buildDiscovery(getDiscoveryParams("quiz", "composition", authMode === "anonymous" ? "demo" : "full"), args, authMode);
4223
- return `${sessionContext ? sessionContext + "\n\n" : ""}${discovery}Here's how to build a ${count}-question composition quiz${topic} with Clipform - a guess-and-reveal quiz where each question is a rendered composition (flag sweep, Rebus, blurred photo resolving) instead of a stock-image slideshow. Read the attached quiz and composition guides for the mechanic matrix, the Composition Question Node pattern, and difficulty design.
4224
-
4225
- ## Composition Quiz Workflow
4238
+ if (!caps.media) {
4239
+ return `${intro(sessionContext, discovery)}A composition quiz is a guess-and-reveal quiz built from rendered video clips (flag sweeps, blurred photos resolving, and similar), which needs the media tools - this connection exposes form-building tools only, so those renders are not available here.
4226
4240
 
4227
- 1. **Discover what's renderable - recipe book first.** Call clipform_list_video_templates and match each question's mechanic against a recipe's description/keywords (e.g. guess-the-city for a where-in-the-world/geography mechanic, mystery-reveal for guess-the-image/flag, colour-grid for palette-matching). Render a matched recipe with clipform_render_video_template and its curated controls. Only when no recipe fits a question, drop to the raw primitives - clipform_list_compositions, matched via the composition guide's matrix - and render with clipform_render_composition. Availability varies by session; choose ONLY from what these tools return. Mix 2-3 mechanics across the quiz; for questions with no fitting recipe or composition, use the base quiz's Ken Burns pipeline instead.
4228
- 2. **Write questions** - difficulty curve as in the base guide. Difficulty = subject obscurity (Japan's flag vs Kiribati's), never clue degradation. ${count} questions \u2248 ${count + 1} nodes total (one scored choice node per question + the end screen); an optional reveal beat adds one node per question it's used on - check the plan's node limit.
4229
- 3. **Render all clips** - raw-composition clips batch in ONE clipform_render_composition call with items (parallel); recipe clips render one clipform_render_video_template call each (wait: false). Collect all job_ids with clipform_check_render. Chain-state compositions: clue clip animate: true; when a question uses an optional reveal clip, animate: false + answer props.
4230
- 4. ${BUILD_ONCE_STEP}
4241
+ Build a standard scored quiz${topic} instead: call clipform_get_workflow with type "quiz" and follow that recipe. ${count} questions is a good target.`;
4242
+ }
4243
+ const steps = numbered([
4244
+ "**Discover what's renderable - recipe book first.** Call clipform_list_video_templates and match each question's mechanic against a recipe's description/keywords (e.g. guess-the-city for a where-in-the-world/geography mechanic, mystery-reveal for guess-the-image/flag, colour-grid for palette-matching). Render a matched recipe with clipform_render_video_template and its curated controls. Only when no recipe fits a question, drop to the raw primitives - clipform_list_compositions, matched via the composition guide's matrix - and render with clipform_render_composition. Availability varies by session; choose ONLY from what these tools return. Mix 2-3 mechanics across the quiz; for questions with no fitting recipe or composition, use the base quiz's Ken Burns pipeline instead.",
4245
+ `**Write questions** - difficulty curve as in the base guide. Difficulty = subject obscurity (Japan's flag vs Kiribati's), never clue degradation. ${count} questions \u2248 ${count + 1} nodes total (one scored choice node per question + the end screen); an optional reveal beat adds one node per question it's used on - check the plan's node limit.`,
4246
+ "**Render all clips** - raw-composition clips batch in ONE clipform_render_composition call with items (parallel); recipe clips render one clipform_render_video_template call each (wait: false). Collect all job_ids with clipform_check_render. Chain-state compositions: clue clip animate: true; when a question uses an optional reveal clip, animate: false + answer props.",
4247
+ `${BUILD_ONCE_STEP}
4231
4248
  - Settings: show_step_counter: true, disable_back_navigation: true
4232
4249
  - Per question, ONE scored choice node (type: "choice"): question as prompt, config { choice: { show_answer_feedback: true }, randomise_options: true }, options with score: 1 on the correct answer and score: 0 on 2-3 wrong ones. Scored options enable correct-answer marking automatically - the viewer's answer feedback delivers the correct answer.
4233
4250
  - Optional reveal beat (type: "button"): add one only when the quiz wants extra context or celebration - the answer in the prompt ("It was Japan!"), config { button_text: "Next one" }
4234
4251
  - Final end_screen node: show_score: true, icon: "trophy", show_share_button: true, cta_type: "restart", cta_text: a short challenge. NOTE: per-tier messages (score_ranges) are coming soon - write one great message.
4235
- - tags: format "quiz", genre "trivia", and 2-3 topic words
4236
- 5. **Generate narration** with clipform_generate_tts - batch ALL items in one call. The visual does the teasing: set stakes, never describe what's on screen or read the clue aloud. If a question uses the optional reveal node, its narration can celebrate.
4237
- 6. ${ATTACH_MEDIA_STEP} Attach the clue clip to each choice node; attach reveal clips to their button nodes only on questions that use one.
4238
- 7. ${REPUBLISH_STEP}
4239
- 8. **Log** with clipform_log_generation - record the composition IDs used per question alongside sources and attributions`;
4240
- }
4241
- function interviewWorkflow(args, sessionContext, authMode = "authenticated") {
4252
+ - tags: format "quiz", genre "trivia", and 2-3 topic words`,
4253
+ "**Generate narration** with clipform_generate_tts - batch ALL items in one call. The visual does the teasing: set stakes, never describe what's on screen or read the clue aloud. If a question uses the optional reveal node, its narration can celebrate.",
4254
+ `${ATTACH_MEDIA_STEP} Attach the clue clip to each choice node; attach reveal clips to their button nodes only on questions that use one.`,
4255
+ REPUBLISH_STEP,
4256
+ caps.research && `${LOG_STEP} - record the composition IDs used per question alongside sources and attributions`
4257
+ ]);
4258
+ return `${intro(sessionContext, discovery)}Here's how to build a ${count}-question composition quiz${topic} with Clipform - a guess-and-reveal quiz where each question is a rendered composition (flag sweep, Rebus, blurred photo resolving) instead of a stock-image slideshow. Read the attached quiz and composition guides for the mechanic matrix, the Composition Question Node pattern, and difficulty design.
4259
+
4260
+ ## Composition Quiz Workflow
4261
+
4262
+ ${steps}`;
4263
+ };
4264
+ var interviewWorkflow = (args, sessionContext, authMode, caps) => {
4242
4265
  const purpose = args.purpose ?? "responses";
4243
4266
  const format = args.response_format ?? "all";
4244
4267
  const consent = args.needs_consent ?? true;
4245
4268
  const discovery = buildDiscovery(getDiscoveryParams("interview", void 0, authMode === "anonymous" ? "demo" : "full"), args, authMode);
4246
- return `${sessionContext ? sessionContext + "\n\n" : ""}${discovery}Here's how to build an interview form for collecting ${purpose} with Clipform. Read the attached interview guide for craft knowledge on question design and pacing.
4247
-
4248
- ## Workflow
4249
-
4250
- 1. **Identify the ask** - what do you need from respondents? ${purpose}.
4251
- 2. ${BUILD_ONCE_STEP}
4269
+ const steps = numbered([
4270
+ `**Identify the ask** - what do you need from respondents? ${purpose}.`,
4271
+ `${BUILD_ONCE_STEP}
4252
4272
  - Settings: show_step_counter: true, disable_back_navigation: false
4253
4273
  - Warm-up question first (type: "open") - something easy: "Tell us your name and role"
4254
4274
  - 2-3 core questions (type: "open") - one topic per question.${format === "all" ? " Enable text + audio + video responses." : ` Enable ${format} responses.`}
4255
4275
  - Contact collection (type: "details") - first name + email minimum${consent ? `
4256
4276
  - Consent node - "I agree that my response may be used in [context]"` : ""}
4257
4277
  - End screen that sets expectations: "Thanks! We'll be in touch."
4258
- ${TAGS_LINE}
4259
- 3. **Optional - Rich Media:** Add TTS narration (clipform_generate_tts, batch all questions in one call) with a warm, inviting tone - "We'd love to hear your story..." Video backgrounds (clipform_search_media \u2192 clipform_generate_video) on the intro question can set a professional tone.
4260
- 4. ${REPUBLISH_STEP}
4261
- 5. **Log** with clipform_log_generation`;
4262
- }
4263
- function surveyWorkflow(args, sessionContext, authMode = "authenticated") {
4264
- const topic = args.topic ? ` for ${args.topic}` : "";
4265
- const anonymous = args.anonymous ?? true;
4266
- const discovery = buildDiscovery(getDiscoveryParams("survey", void 0, authMode === "anonymous" ? "demo" : "full"), args, authMode);
4267
- return `${sessionContext ? sessionContext + "\n\n" : ""}${discovery}Here's how to build a survey${topic} with Clipform. Read the attached survey guide for craft knowledge on question design and reducing respondent fatigue.
4278
+ ${TAGS_LINE}`,
4279
+ caps.media && `**Optional - Rich Media:** Add TTS narration (clipform_generate_tts, batch all questions in one call) with a warm, inviting tone - "We'd love to hear your story..." Video backgrounds (clipform_search_media \u2192 clipform_generate_video) on the intro question can set a professional tone.`,
4280
+ REPUBLISH_STEP,
4281
+ caps.research && LOG_STEP
4282
+ ]);
4283
+ return `${intro(sessionContext, discovery)}Here's how to build an interview form for collecting ${purpose} with Clipform. Read the attached interview guide for craft knowledge on question design and pacing.
4268
4284
 
4269
4285
  ## Workflow
4270
4286
 
4271
- 1. **Define the key metric** - what's the one number you care about? (NPS, satisfaction, likelihood to recommend)
4272
- 2. ${BUILD_ONCE_STEP}
4287
+ ${steps}`;
4288
+ };
4289
+ var surveyWorkflow = (args, sessionContext, authMode, caps) => {
4290
+ const topic = args.topic ? ` for ${args.topic}` : "";
4291
+ const anonymous = args.anonymous ?? true;
4292
+ const discovery = buildDiscovery(getDiscoveryParams("survey", void 0, authMode === "anonymous" ? "demo" : "full"), args, authMode);
4293
+ const steps = numbered([
4294
+ "**Define the key metric** - what's the one number you care about? (NPS, satisfaction, likelihood to recommend)",
4295
+ `${BUILD_ONCE_STEP}
4273
4296
  - Settings: show_step_counter: true, disable_back_navigation: false
4274
4297
  - Key metric question FIRST (type: "choice" or "rating") - while attention is highest
4275
4298
  - One "why?" follow-up (type: "open") - "What's the main reason for your score?"
4276
4299
  - 2-3 specific questions (type: "choice") - only ask what you'll act on${!anonymous ? `
4277
4300
  - Contact collection (type: "details") - name + email for follow-up` : ""}
4278
4301
  - End screen: "Thanks for your feedback!"
4279
- ${TAGS_LINE}
4280
- 3. **Optional - Rich Media:** For a more engaging experience, add TTS narration (clipform_generate_tts) for the intro or key questions, video backgrounds (clipform_search_media \u2192 clipform_generate_video), or background music (clipform_search_music).
4281
- 4. ${REPUBLISH_STEP}
4282
- 5. **Log** with clipform_log_generation
4302
+ ${TAGS_LINE}`,
4303
+ caps.media && "**Optional - Rich Media:** For a more engaging experience, add TTS narration (clipform_generate_tts) for the intro or key questions, video backgrounds (clipform_search_media \u2192 clipform_generate_video), or background music (clipform_search_music).",
4304
+ REPUBLISH_STEP,
4305
+ caps.research && LOG_STEP
4306
+ ]);
4307
+ return `${intro(sessionContext, discovery)}Here's how to build a survey${topic} with Clipform. Read the attached survey guide for craft knowledge on question design and reducing respondent fatigue.
4308
+
4309
+ ## Workflow
4310
+
4311
+ ${steps}
4283
4312
 
4284
4313
  ## Key rule: 5 questions max. Every extra question costs completions.`;
4285
- }
4286
- function funnelWorkflow(_args, sessionContext, _authMode = "authenticated") {
4314
+ };
4315
+ var funnelWorkflow = (_args, sessionContext) => {
4287
4316
  return `${sessionContext ? sessionContext + "\n\n" : ""}Funnel capabilities with conditional routing and branching logic are planned but not yet available.
4288
4317
 
4289
4318
  Proceed now: build a linear qualification survey or quiz directly with clipform_create_form instead of branching - do not defer to another prompt or stop to ask the user. Order the questions to gather the qualification criteria, then finish with a single end screen.`;
4290
- }
4291
- function testimonialWorkflow(args, sessionContext, authMode = "authenticated") {
4319
+ };
4320
+ var testimonialWorkflow = (args, sessionContext, authMode, caps) => {
4292
4321
  const useCase = args.use_case ?? "customer stories";
4293
4322
  const discovery = buildDiscovery(getDiscoveryParams("testimonial", void 0, authMode === "anonymous" ? "demo" : "full"), args, authMode);
4294
- return `${sessionContext ? sessionContext + "\n\n" : ""}${discovery}Here's how to build a testimonial collection form for ${useCase} with Clipform. Read the attached testimonial guide for craft knowledge on storytelling prompts and making respondents comfortable.
4295
-
4296
- ## Workflow
4297
-
4298
- 1. **Define the story arc** - what transformation or experience do you want to capture?
4299
- 2. ${BUILD_ONCE_STEP}
4323
+ const steps = numbered([
4324
+ "**Define the story arc** - what transformation or experience do you want to capture?",
4325
+ `${BUILD_ONCE_STEP}
4300
4326
  - Settings: show_step_counter: true, disable_back_navigation: false
4301
4327
  - Warm-up question (type: "open") - "Tell us your name and [role/relationship/context]". Enable video + audio + text responses.
4302
4328
  - 2-3 storytelling prompts (type: "open") - follow the before \u2192 during \u2192 after arc. Enable video responses. Example prompts:
@@ -4305,64 +4331,71 @@ function testimonialWorkflow(args, sessionContext, authMode = "authenticated") {
4305
4331
  - "What's different now? What would you tell someone considering it?"
4306
4332
  - Consent node - "I agree that my response may be used in marketing materials, on the website, and in sales presentations."
4307
4333
  - End screen: "Thank you for sharing your story! Your experience will help others." icon: "party", no score, no restart CTA
4308
- - tags: format "testimonial", genre "story", and 2-3 topic words
4309
- 3. **Generate narration** with clipform_generate_tts - batch all prompts in a single call. Warm, appreciative tone - "We'd love to hear your story..." Keep each narration 5-8 seconds.
4310
- 4. **Optional: build video** for the intro/warm-up question to set the tone.
4311
- 5. ${REPUBLISH_STEP}
4312
- 6. **Log** with clipform_log_generation
4313
-
4314
- > **Text-only override:** If the user explicitly asked for text-only (no video), skip steps 3-4 (narration and video production).`;
4315
- }
4316
- function applicationWorkflow(args, sessionContext, authMode = "authenticated") {
4317
- const role = args.role ?? "an application";
4318
- const discovery = buildDiscovery(getDiscoveryParams("application", void 0, authMode === "anonymous" ? "demo" : "full"), args, authMode);
4319
- return `${sessionContext ? sessionContext + "\n\n" : ""}${discovery}Here's how to build ${role} form with Clipform. Read the attached application guide for craft knowledge on structuring multi-section applications.
4334
+ - tags: format "testimonial", genre "story", and 2-3 topic words`,
4335
+ caps.media && `**Generate narration** with clipform_generate_tts - batch all prompts in a single call. Warm, appreciative tone - "We'd love to hear your story..." Keep each narration 5-8 seconds.`,
4336
+ caps.media && "**Optional: build video** for the intro/warm-up question to set the tone.",
4337
+ REPUBLISH_STEP,
4338
+ caps.research && LOG_STEP
4339
+ ]);
4340
+ return `${intro(sessionContext, discovery)}Here's how to build a testimonial collection form for ${useCase} with Clipform. Read the attached testimonial guide for craft knowledge on storytelling prompts and making respondents comfortable.
4320
4341
 
4321
4342
  ## Workflow
4322
4343
 
4323
- 1. **Define what you're screening for** - what qualifications matter, and what questions reveal fit?
4324
- 2. ${BUILD_ONCE_STEP}
4344
+ ${steps}${caps.media ? "\n\n> **Text-only override:** If the user explicitly asked for text-only (no video), skip the narration and video production steps." : ""}`;
4345
+ };
4346
+ var applicationWorkflow = (args, sessionContext, authMode, caps) => {
4347
+ const role = args.role ?? "an application";
4348
+ const discovery = buildDiscovery(getDiscoveryParams("application", void 0, authMode === "anonymous" ? "demo" : "full"), args, authMode);
4349
+ const steps = numbered([
4350
+ "**Define what you're screening for** - what qualifications matter, and what questions reveal fit?",
4351
+ `${BUILD_ONCE_STEP}
4325
4352
  - Settings: show_step_counter: true, disable_back_navigation: false
4326
4353
  - Contact collection first (type: "details") - name, email, phone - while motivation is high
4327
4354
  - 2-3 structured screening questions (type: "choice") - experience level, availability, relevant qualifications. These help you filter quickly.
4328
4355
  - 1-2 open response questions (type: "open") - "Tell us why you're interested" or "Walk us through a relevant experience." Enable video + audio + text responses.
4329
4356
  - Optional "Anything else?" (type: "open") - catches things you didn't think to ask.
4330
4357
  - End screen: "Your application has been submitted. We'll review it and get back to you." icon: "tick", no score, no restart
4331
- - tags: format "application", genre "screening", and 2-3 topic words
4332
- 3. **Optional - Rich Media:** Add TTS narration (clipform_generate_tts) - professional and welcoming: "Thanks for your interest - let's get to know you." Video backgrounds (clipform_search_media \u2192 clipform_generate_video) on the intro can make the application feel more personal.
4333
- 4. ${REPUBLISH_STEP}
4334
- 5. **Log** with clipform_log_generation`;
4335
- }
4336
- function bookingWorkflow(args, sessionContext, authMode = "authenticated") {
4337
- const eventName = args.event_name ?? "an event";
4338
- const eventType = args.event_type ?? "event";
4339
- const discovery = buildDiscovery(getDiscoveryParams("booking", void 0, authMode === "anonymous" ? "demo" : "full"), args, authMode);
4340
- return `${sessionContext ? sessionContext + "\n\n" : ""}${discovery}Here's how to build a ${eventType} registration form for ${eventName} with Clipform. Read the attached booking guide for craft knowledge on keeping registrations fast.
4358
+ - tags: format "application", genre "screening", and 2-3 topic words`,
4359
+ caps.media && `**Optional - Rich Media:** Add TTS narration (clipform_generate_tts) - professional and welcoming: "Thanks for your interest - let's get to know you." Video backgrounds (clipform_search_media \u2192 clipform_generate_video) on the intro can make the application feel more personal.`,
4360
+ REPUBLISH_STEP,
4361
+ caps.research && LOG_STEP
4362
+ ]);
4363
+ return `${intro(sessionContext, discovery)}Here's how to build ${role} form with Clipform. Read the attached application guide for craft knowledge on structuring multi-section applications.
4341
4364
 
4342
4365
  ## Workflow
4343
4366
 
4344
- 1. **Define the essentials** - what info do you actually need from attendees? Keep the list short.
4345
- 2. ${BUILD_ONCE_STEP}
4367
+ ${steps}`;
4368
+ };
4369
+ var bookingWorkflow = (args, sessionContext, authMode, caps) => {
4370
+ const eventName = args.event_name ?? "an event";
4371
+ const eventType = args.event_type ?? "event";
4372
+ const discovery = buildDiscovery(getDiscoveryParams("booking", void 0, authMode === "anonymous" ? "demo" : "full"), args, authMode);
4373
+ const steps = numbered([
4374
+ "**Define the essentials** - what info do you actually need from attendees? Keep the list short.",
4375
+ `${BUILD_ONCE_STEP}
4346
4376
  - Settings: show_step_counter: false (it's so short, a counter adds unnecessary UI), disable_back_navigation: false
4347
4377
  - Contact collection (type: "details") - name + email minimum. Add phone only if needed.
4348
4378
  - 1-3 event-specific questions (type: "choice") - session preferences, dietary requirements, experience level. Only ask what you'll use.
4349
4379
  - End screen: "You're registered! Here's what to expect." Include event details (date, time, location/link) in the message. icon: "tick", no score, no restart, cta_type: "external_link" with a URL to calendar invite or event page (if available)
4350
- - tags: format "registration", genre "${eventType}", and 2-3 topic words
4351
- 3. **Optional: add welcome video** - a short intro from the host. Generate narration with clipform_generate_tts, then build a video with clipform_search_media + clipform_generate_video.
4352
- 4. ${REPUBLISH_STEP}
4353
- 5. **Log** with clipform_log_generation
4380
+ - tags: format "registration", genre "${eventType}", and 2-3 topic words`,
4381
+ caps.media && "**Optional: add welcome video** - a short intro from the host. Generate narration with clipform_generate_tts, then build a video with clipform_search_media + clipform_generate_video.",
4382
+ REPUBLISH_STEP,
4383
+ caps.research && LOG_STEP
4384
+ ]);
4385
+ return `${intro(sessionContext, discovery)}Here's how to build a ${eventType} registration form for ${eventName} with Clipform. Read the attached booking guide for craft knowledge on keeping registrations fast.
4386
+
4387
+ ## Workflow
4388
+
4389
+ ${steps}
4354
4390
 
4355
4391
  ## Key rule: 3-5 fields max. Every extra field costs registrations.`;
4356
- }
4357
- function intakeWorkflow(args, sessionContext, authMode = "authenticated") {
4392
+ };
4393
+ var intakeWorkflow = (args, sessionContext, authMode, caps) => {
4358
4394
  const useCase = args.use_case ?? "new clients";
4359
4395
  const discovery = buildDiscovery(getDiscoveryParams("intake", void 0, authMode === "anonymous" ? "demo" : "full"), args, authMode);
4360
- return `${sessionContext ? sessionContext + "\n\n" : ""}${discovery}Here's how to build a client intake form for ${useCase} with Clipform. Read the attached intake guide for craft knowledge on a warm welcome and low-friction capture.
4361
-
4362
- ## Workflow
4363
-
4364
- 1. **Decide what you actually need** - contact details plus one open question about what the client is looking for. Capture, don't qualify.
4365
- 2. ${BUILD_ONCE_STEP}
4396
+ const steps = numbered([
4397
+ "**Decide what you actually need** - contact details plus one open question about what the client is looking for. Capture, don't qualify.",
4398
+ `${BUILD_ONCE_STEP}
4366
4399
  - Settings: show_step_counter: true, disable_back_navigation: false
4367
4400
  - Welcome (type: "button") - warm intro: "Thanks for reaching out - a couple of quick questions so we can help you properly." button_text: "Let's begin"
4368
4401
  - Contact collection (type: "details") - first name + email; phone optional
@@ -4370,33 +4403,42 @@ function intakeWorkflow(args, sessionContext, authMode = "authenticated") {
4370
4403
  - Optional one qualifier (type: "choice") - only if it changes what you do next ("What are you most interested in?"). Don't stack these.
4371
4404
  - Optional "Anything else?" (type: "open") - catches what you didn't think to ask
4372
4405
  - End screen: "Thanks! We've got your details and we'll be in touch shortly." icon: "tick", no score, no restart
4373
- - tags: format "intake", genre "onboarding", and 2-3 topic words
4374
- 3. **Optional: add a welcome video** - a short personal intro from you. Generate narration with clipform_generate_tts, then build a video with clipform_search_media + clipform_generate_video.
4375
- 4. ${REPUBLISH_STEP}
4376
- 5. **Log** with clipform_log_generation
4406
+ - tags: format "intake", genre "onboarding", and 2-3 topic words`,
4407
+ caps.media && "**Optional: add a welcome video** - a short personal intro from you. Generate narration with clipform_generate_tts, then build a video with clipform_search_media + clipform_generate_video.",
4408
+ REPUBLISH_STEP,
4409
+ caps.research && LOG_STEP
4410
+ ]);
4411
+ return `${intro(sessionContext, discovery)}Here's how to build a client intake form for ${useCase} with Clipform. Read the attached intake guide for craft knowledge on a warm welcome and low-friction capture.
4412
+
4413
+ ## Workflow
4414
+
4415
+ ${steps}
4377
4416
 
4378
4417
  ## Key rule: 3-5 steps max. An intake that feels like paperwork loses the client you just won.`;
4379
- }
4380
- function leadCaptureWorkflow(args, sessionContext, authMode = "authenticated") {
4418
+ };
4419
+ var leadCaptureWorkflow = (args, sessionContext, authMode, caps) => {
4381
4420
  const useCase = args.use_case ?? "enquiries";
4382
4421
  const discovery = buildDiscovery(getDiscoveryParams("lead-capture", void 0, authMode === "anonymous" ? "demo" : "full"), args, authMode);
4383
- return `${sessionContext ? sessionContext + "\n\n" : ""}${discovery}Here's how to build a lead capture form for ${useCase} with Clipform. Read the attached lead-capture guide - the whole game is minimal friction. This is a LINEAR form: no branching, no scoring.
4384
-
4385
- ## Workflow
4386
-
4387
- 1. **Decide the one thing you need** - a contact. Everything else is optional and costs conversions.
4388
- 2. ${BUILD_ONCE_STEP}
4422
+ const steps = numbered([
4423
+ "**Decide the one thing you need** - a contact. Everything else is optional and costs conversions.",
4424
+ `${BUILD_ONCE_STEP}
4389
4425
  - Settings: show_step_counter: false, disable_back_navigation: false
4390
4426
  - Optional hook (type: "button") - one line restating the value, e.g. "Want in? Drop your details and we'll be in touch." button_text: "Count me in"
4391
4427
  - Contact collection (type: "details") - first name + email; phone only if you'll call
4392
4428
  - Optional ONE qualifier (type: "choice") - only if the answer routes your follow-up ("What are you most interested in?"). If it doesn't, cut it.
4393
4429
  - End screen: "Thanks! We'll be in touch soon." Set the expectation (when/how). icon: "tick", no score, no restart
4394
- - tags: format "lead-capture", genre "enquiry", and 2-3 topic words
4395
- 3. ${REPUBLISH_STEP}
4396
- 4. **Log** with clipform_log_generation
4430
+ - tags: format "lead-capture", genre "enquiry", and 2-3 topic words`,
4431
+ REPUBLISH_STEP,
4432
+ caps.research && LOG_STEP
4433
+ ]);
4434
+ return `${intro(sessionContext, discovery)}Here's how to build a lead capture form for ${useCase} with Clipform. Read the attached lead-capture guide - the whole game is minimal friction. This is a LINEAR form: no branching, no scoring.
4435
+
4436
+ ## Workflow
4437
+
4438
+ ${steps}
4397
4439
 
4398
4440
  ## Key rule: 3-4 steps max. Get the contact early, qualify lightly or not at all.`;
4399
- }
4441
+ };
4400
4442
  var WORKFLOW_BUILDERS = {
4401
4443
  "quiz": quizWorkflow,
4402
4444
  "interview": interviewWorkflow,
@@ -4413,14 +4455,16 @@ var QUIZ_VARIANT_BUILDERS = {
4413
4455
  "comprehension": comprehensionQuizWorkflow,
4414
4456
  "composition": compositionQuizWorkflow
4415
4457
  };
4416
- async function getWorkflowText(type, args = {}, variant) {
4458
+ async function getWorkflowText(type, args = {}, variant, caps = FULL_CAPS) {
4417
4459
  const { text: sessionContext, authMode } = await getSessionContextWithAuth();
4418
4460
  if (type === "quiz" && variant) {
4419
- return QUIZ_VARIANT_BUILDERS[variant](args, sessionContext, authMode);
4461
+ return QUIZ_VARIANT_BUILDERS[variant](args, sessionContext, authMode, caps);
4420
4462
  }
4421
- return WORKFLOW_BUILDERS[type](args, sessionContext, authMode);
4463
+ return WORKFLOW_BUILDERS[type](args, sessionContext, authMode, caps);
4422
4464
  }
4423
- function registerPrompts(server) {
4465
+ function registerPrompts(server, caps = FULL_CAPS) {
4466
+ const mediaStyleArg = caps.media ? { media_style: external_exports.enum(MEDIA_STYLE_ENUM).optional().default("video").describe("Media style: text only, still images, or slideshow video with narration (default: video)") } : {};
4467
+ const styleNote = (args) => caps.media ? `, ${args.media_style ?? "video"} style` : "";
4424
4468
  server.registerPrompt(
4425
4469
  "create-quiz",
4426
4470
  {
@@ -4429,7 +4473,7 @@ function registerPrompts(server) {
4429
4473
  argsSchema: {
4430
4474
  topic: external_exports.string().optional().describe("Quiz topic (e.g. 'Space exploration', 'Premier League')"),
4431
4475
  question_count: external_exports.string().optional().default("8").describe("Number of questions (default: 8)"),
4432
- media_style: external_exports.enum(MEDIA_STYLE_ENUM).optional().default("video").describe("Media style: text only, still images, or slideshow video with narration (default: video)")
4476
+ ...mediaStyleArg
4433
4477
  }
4434
4478
  },
4435
4479
  async (rawArgs) => {
@@ -4440,7 +4484,7 @@ function registerPrompts(server) {
4440
4484
  role: "user",
4441
4485
  content: {
4442
4486
  type: "text",
4443
- text: `I want to create a quiz${args.topic ? ` about "${args.topic}"` : ""}. ${args.question_count ?? 8} questions, ${args.media_style ?? "video"} style.`
4487
+ text: `I want to create a quiz${args.topic ? ` about "${args.topic}"` : ""}. ${args.question_count ?? 8} questions${styleNote(args)}.`
4444
4488
  }
4445
4489
  },
4446
4490
  resourceLink("guide-quiz", "clipform://guides/quiz", "Quiz Writing Guide"),
@@ -4448,7 +4492,7 @@ function registerPrompts(server) {
4448
4492
  role: "assistant",
4449
4493
  content: {
4450
4494
  type: "text",
4451
- text: await getWorkflowText("quiz", args)
4495
+ text: await getWorkflowText("quiz", args, void 0, caps)
4452
4496
  }
4453
4497
  }
4454
4498
  ]
@@ -4464,7 +4508,7 @@ function registerPrompts(server) {
4464
4508
  topic: external_exports.string().optional().describe("Quiz theme (e.g. 'Which city are you?', 'What's your work style?')"),
4465
4509
  categories: external_exports.string().optional().describe("Comma-separated outcome categories (e.g. 'Creative, Analytical, Leader, Collaborator')"),
4466
4510
  question_count: external_exports.string().optional().default("8").describe("Number of questions (default: 8)"),
4467
- media_style: external_exports.enum(MEDIA_STYLE_ENUM).optional().default("video").describe("Media style (default: video)")
4511
+ ...mediaStyleArg
4468
4512
  }
4469
4513
  },
4470
4514
  async (rawArgs) => {
@@ -4478,7 +4522,7 @@ Outcome categories: ${args.categories}` : "";
4478
4522
  role: "user",
4479
4523
  content: {
4480
4524
  type: "text",
4481
- text: `I want to create a personality quiz${args.topic ? ` - "${args.topic}"` : ""}. ${args.question_count ?? 8} questions, ${args.media_style ?? "video"} style.${categoriesNote}`
4525
+ text: `I want to create a personality quiz${args.topic ? ` - "${args.topic}"` : ""}. ${args.question_count ?? 8} questions${styleNote(args)}.${categoriesNote}`
4482
4526
  }
4483
4527
  },
4484
4528
  resourceLink("guide-quiz", "clipform://guides/quiz", "Quiz Writing Guide"),
@@ -4487,7 +4531,7 @@ Outcome categories: ${args.categories}` : "";
4487
4531
  role: "assistant",
4488
4532
  content: {
4489
4533
  type: "text",
4490
- text: await getWorkflowText("quiz", args, "personality")
4534
+ text: await getWorkflowText("quiz", args, "personality", caps)
4491
4535
  }
4492
4536
  }
4493
4537
  ]
@@ -4521,7 +4565,7 @@ Outcome categories: ${args.categories}` : "";
4521
4565
  role: "assistant",
4522
4566
  content: {
4523
4567
  type: "text",
4524
- text: await getWorkflowText("interview", args)
4568
+ text: await getWorkflowText("interview", args, void 0, caps)
4525
4569
  }
4526
4570
  }
4527
4571
  ]
@@ -4554,7 +4598,7 @@ Outcome categories: ${args.categories}` : "";
4554
4598
  role: "assistant",
4555
4599
  content: {
4556
4600
  type: "text",
4557
- text: await getWorkflowText("survey", args)
4601
+ text: await getWorkflowText("survey", args, void 0, caps)
4558
4602
  }
4559
4603
  }
4560
4604
  ]
@@ -4570,7 +4614,7 @@ Outcome categories: ${args.categories}` : "";
4570
4614
  youtube_url: external_exports.string().optional().describe("YouTube video URL to create the quiz from"),
4571
4615
  question_count: external_exports.string().optional().default("8").describe("Number of questions (default: 8)"),
4572
4616
  audience: external_exports.string().optional().describe("Target audience (e.g. 'children aged 5-8', 'university students', 'general')"),
4573
- media_style: external_exports.enum(MEDIA_STYLE_ENUM).optional().default("video").describe("Media style (default: video)")
4617
+ ...mediaStyleArg
4574
4618
  }
4575
4619
  },
4576
4620
  async (rawArgs) => {
@@ -4583,7 +4627,7 @@ Outcome categories: ${args.categories}` : "";
4583
4627
  role: "user",
4584
4628
  content: {
4585
4629
  type: "text",
4586
- text: `I want to create a comprehension quiz based on a YouTube video. ${args.question_count ?? 8} questions, ${args.media_style ?? "video"} style.${urlNote}${audienceNote}`
4630
+ text: `I want to create a comprehension quiz based on a YouTube video. ${args.question_count ?? 8} questions${styleNote(args)}.${urlNote}${audienceNote}`
4587
4631
  }
4588
4632
  },
4589
4633
  resourceLink("guide-quiz", "clipform://guides/quiz", "Quiz Writing Guide"),
@@ -4592,14 +4636,14 @@ Outcome categories: ${args.categories}` : "";
4592
4636
  role: "assistant",
4593
4637
  content: {
4594
4638
  type: "text",
4595
- text: await getWorkflowText("quiz", args, "comprehension")
4639
+ text: await getWorkflowText("quiz", args, "comprehension", caps)
4596
4640
  }
4597
4641
  }
4598
4642
  ]
4599
4643
  };
4600
4644
  }
4601
4645
  );
4602
- server.registerPrompt(
4646
+ if (caps.media) server.registerPrompt(
4603
4647
  "create-composition-quiz",
4604
4648
  {
4605
4649
  title: "Create a Composition Quiz",
@@ -4626,7 +4670,7 @@ Outcome categories: ${args.categories}` : "";
4626
4670
  role: "assistant",
4627
4671
  content: {
4628
4672
  type: "text",
4629
- text: await getWorkflowText("quiz", args, "composition")
4673
+ text: await getWorkflowText("quiz", args, "composition", caps)
4630
4674
  }
4631
4675
  }
4632
4676
  ]
@@ -4659,7 +4703,7 @@ Outcome categories: ${args.categories}` : "";
4659
4703
  description: "Build a video testimonial collection form - capture authentic customer stories on camera",
4660
4704
  argsSchema: {
4661
4705
  use_case: external_exports.string().optional().describe("What stories you're collecting (e.g. 'customer success', 'product review', 'case study')"),
4662
- media_style: external_exports.enum(MEDIA_STYLE_ENUM).optional().default("video").describe("Media style (default: video)")
4706
+ ...mediaStyleArg
4663
4707
  }
4664
4708
  },
4665
4709
  async (args) => ({
@@ -4676,7 +4720,7 @@ Outcome categories: ${args.categories}` : "";
4676
4720
  role: "assistant",
4677
4721
  content: {
4678
4722
  type: "text",
4679
- text: await getWorkflowText("testimonial", args)
4723
+ text: await getWorkflowText("testimonial", args, void 0, caps)
4680
4724
  }
4681
4725
  }
4682
4726
  ]
@@ -4705,7 +4749,7 @@ Outcome categories: ${args.categories}` : "";
4705
4749
  role: "assistant",
4706
4750
  content: {
4707
4751
  type: "text",
4708
- text: await getWorkflowText("application", args)
4752
+ text: await getWorkflowText("application", args, void 0, caps)
4709
4753
  }
4710
4754
  }
4711
4755
  ]
@@ -4735,7 +4779,7 @@ Outcome categories: ${args.categories}` : "";
4735
4779
  role: "assistant",
4736
4780
  content: {
4737
4781
  type: "text",
4738
- text: await getWorkflowText("booking", args)
4782
+ text: await getWorkflowText("booking", args, void 0, caps)
4739
4783
  }
4740
4784
  }
4741
4785
  ]
@@ -4765,7 +4809,7 @@ Outcome categories: ${args.categories}` : "";
4765
4809
  role: "assistant",
4766
4810
  content: {
4767
4811
  type: "text",
4768
- text: await getWorkflowText("intake", args)
4812
+ text: await getWorkflowText("intake", args, void 0, caps)
4769
4813
  }
4770
4814
  }
4771
4815
  ]
@@ -4794,7 +4838,7 @@ Outcome categories: ${args.categories}` : "";
4794
4838
  role: "assistant",
4795
4839
  content: {
4796
4840
  type: "text",
4797
- text: await getWorkflowText("lead-capture", args)
4841
+ text: await getWorkflowText("lead-capture", args, void 0, caps)
4798
4842
  }
4799
4843
  }
4800
4844
  ]
@@ -4812,4 +4856,4 @@ export {
4812
4856
  getWorkflowText,
4813
4857
  registerPrompts
4814
4858
  };
4815
- //# sourceMappingURL=chunk-4QF4KGPE.js.map
4859
+ //# sourceMappingURL=chunk-QZO6MGNN.js.map