@clipform/mcp-server 5.1.0 → 5.2.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.
- package/README.md +3 -3
- package/dist/api-client.js +1 -1
- package/dist/{chunk-DWFBJMC5.js → chunk-4KXP67SR.js} +3 -3
- package/dist/{chunk-QED4R32Z.js → chunk-5D3UEINC.js} +6 -1
- package/dist/{chunk-QED4R32Z.js.map → chunk-5D3UEINC.js.map} +1 -1
- package/dist/{chunk-RHMP5D55.js → chunk-H7MHP72Z.js} +87 -50
- package/dist/chunk-H7MHP72Z.js.map +1 -0
- package/dist/{chunk-WZ4LCPSY.js → chunk-NXNCAGMO.js} +63 -36
- package/dist/chunk-NXNCAGMO.js.map +1 -0
- package/dist/{chunk-25QAMDHS.js → chunk-SH53TD4L.js} +2 -2
- package/dist/index.js +5 -5
- package/dist/prompts.js +3 -3
- package/dist/resources.js +3 -3
- package/dist/server.js +5 -5
- package/package.json +1 -1
- package/server.json +2 -2
- package/dist/chunk-RHMP5D55.js.map +0 -1
- package/dist/chunk-WZ4LCPSY.js.map +0 -1
- /package/dist/{chunk-DWFBJMC5.js.map → chunk-4KXP67SR.js.map} +0 -0
- /package/dist/{chunk-25QAMDHS.js.map → chunk-SH53TD4L.js.map} +0 -0
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
FULL_CAPS,
|
|
3
3
|
getSessionContextWithAuth
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-SH53TD4L.js";
|
|
5
5
|
import {
|
|
6
6
|
FORM_TYPES,
|
|
7
|
+
MAX_CLIP_SECONDS,
|
|
8
|
+
NODE_TYPES,
|
|
9
|
+
PROD_URLS,
|
|
7
10
|
WORKFLOW_TYPES,
|
|
11
|
+
exposedCompositionIds,
|
|
8
12
|
getDiscoveryParams
|
|
9
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-5D3UEINC.js";
|
|
10
14
|
import {
|
|
11
15
|
__export
|
|
12
16
|
} from "./chunk-PZ5AY32C.js";
|
|
@@ -517,7 +521,7 @@ __export(core_exports2, {
|
|
|
517
521
|
parse: () => parse,
|
|
518
522
|
parseAsync: () => parseAsync,
|
|
519
523
|
prettifyError: () => prettifyError,
|
|
520
|
-
process: () =>
|
|
524
|
+
process: () => process2,
|
|
521
525
|
regexes: () => regexes_exports,
|
|
522
526
|
registry: () => registry,
|
|
523
527
|
safeDecode: () => safeDecode,
|
|
@@ -11442,7 +11446,7 @@ function initializeContext(params) {
|
|
|
11442
11446
|
external: params?.external ?? void 0
|
|
11443
11447
|
};
|
|
11444
11448
|
}
|
|
11445
|
-
function
|
|
11449
|
+
function process2(schema, ctx, _params = { path: [], schemaPath: [] }) {
|
|
11446
11450
|
var _a3;
|
|
11447
11451
|
const def = schema._zod.def;
|
|
11448
11452
|
const seen = ctx.seen.get(schema);
|
|
@@ -11479,7 +11483,7 @@ function process(schema, ctx, _params = { path: [], schemaPath: [] }) {
|
|
|
11479
11483
|
if (parent) {
|
|
11480
11484
|
if (!result.ref)
|
|
11481
11485
|
result.ref = parent;
|
|
11482
|
-
|
|
11486
|
+
process2(parent, ctx, params);
|
|
11483
11487
|
ctx.seen.get(parent).isParent = true;
|
|
11484
11488
|
}
|
|
11485
11489
|
}
|
|
@@ -11767,14 +11771,14 @@ function isTransforming(_schema, _ctx) {
|
|
|
11767
11771
|
}
|
|
11768
11772
|
var createToJSONSchemaMethod = (schema, processors = {}) => (params) => {
|
|
11769
11773
|
const ctx = initializeContext({ ...params, processors });
|
|
11770
|
-
|
|
11774
|
+
process2(schema, ctx);
|
|
11771
11775
|
extractDefs(ctx, schema);
|
|
11772
11776
|
return finalize(ctx, schema);
|
|
11773
11777
|
};
|
|
11774
11778
|
var createStandardJSONSchemaMethod = (schema, io, processors = {}) => (params) => {
|
|
11775
11779
|
const { libraryOptions, target } = params ?? {};
|
|
11776
11780
|
const ctx = initializeContext({ ...libraryOptions ?? {}, target, io, processors });
|
|
11777
|
-
|
|
11781
|
+
process2(schema, ctx);
|
|
11778
11782
|
extractDefs(ctx, schema);
|
|
11779
11783
|
return finalize(ctx, schema);
|
|
11780
11784
|
};
|
|
@@ -12020,7 +12024,7 @@ var arrayProcessor = (schema, ctx, _json, params) => {
|
|
|
12020
12024
|
if (typeof maximum === "number")
|
|
12021
12025
|
json2.maxItems = maximum;
|
|
12022
12026
|
json2.type = "array";
|
|
12023
|
-
json2.items =
|
|
12027
|
+
json2.items = process2(def.element, ctx, {
|
|
12024
12028
|
...params,
|
|
12025
12029
|
path: [...params.path, "items"]
|
|
12026
12030
|
});
|
|
@@ -12032,7 +12036,7 @@ var objectProcessor = (schema, ctx, _json, params) => {
|
|
|
12032
12036
|
json2.properties = {};
|
|
12033
12037
|
const shape = def.shape;
|
|
12034
12038
|
for (const key in shape) {
|
|
12035
|
-
json2.properties[key] =
|
|
12039
|
+
json2.properties[key] = process2(shape[key], ctx, {
|
|
12036
12040
|
...params,
|
|
12037
12041
|
path: [...params.path, "properties", key]
|
|
12038
12042
|
});
|
|
@@ -12055,7 +12059,7 @@ var objectProcessor = (schema, ctx, _json, params) => {
|
|
|
12055
12059
|
if (ctx.io === "output")
|
|
12056
12060
|
json2.additionalProperties = false;
|
|
12057
12061
|
} else if (def.catchall) {
|
|
12058
|
-
json2.additionalProperties =
|
|
12062
|
+
json2.additionalProperties = process2(def.catchall, ctx, {
|
|
12059
12063
|
...params,
|
|
12060
12064
|
path: [...params.path, "additionalProperties"]
|
|
12061
12065
|
});
|
|
@@ -12064,7 +12068,7 @@ var objectProcessor = (schema, ctx, _json, params) => {
|
|
|
12064
12068
|
var unionProcessor = (schema, ctx, json2, params) => {
|
|
12065
12069
|
const def = schema._zod.def;
|
|
12066
12070
|
const isExclusive = def.inclusive === false;
|
|
12067
|
-
const options = def.options.map((x, i) =>
|
|
12071
|
+
const options = def.options.map((x, i) => process2(x, ctx, {
|
|
12068
12072
|
...params,
|
|
12069
12073
|
path: [...params.path, isExclusive ? "oneOf" : "anyOf", i]
|
|
12070
12074
|
}));
|
|
@@ -12076,11 +12080,11 @@ var unionProcessor = (schema, ctx, json2, params) => {
|
|
|
12076
12080
|
};
|
|
12077
12081
|
var intersectionProcessor = (schema, ctx, json2, params) => {
|
|
12078
12082
|
const def = schema._zod.def;
|
|
12079
|
-
const a =
|
|
12083
|
+
const a = process2(def.left, ctx, {
|
|
12080
12084
|
...params,
|
|
12081
12085
|
path: [...params.path, "allOf", 0]
|
|
12082
12086
|
});
|
|
12083
|
-
const b =
|
|
12087
|
+
const b = process2(def.right, ctx, {
|
|
12084
12088
|
...params,
|
|
12085
12089
|
path: [...params.path, "allOf", 1]
|
|
12086
12090
|
});
|
|
@@ -12097,11 +12101,11 @@ var tupleProcessor = (schema, ctx, _json, params) => {
|
|
|
12097
12101
|
json2.type = "array";
|
|
12098
12102
|
const prefixPath = ctx.target === "draft-2020-12" ? "prefixItems" : "items";
|
|
12099
12103
|
const restPath = ctx.target === "draft-2020-12" ? "items" : ctx.target === "openapi-3.0" ? "items" : "additionalItems";
|
|
12100
|
-
const prefixItems = def.items.map((x, i) =>
|
|
12104
|
+
const prefixItems = def.items.map((x, i) => process2(x, ctx, {
|
|
12101
12105
|
...params,
|
|
12102
12106
|
path: [...params.path, prefixPath, i]
|
|
12103
12107
|
}));
|
|
12104
|
-
const rest = def.rest ?
|
|
12108
|
+
const rest = def.rest ? process2(def.rest, ctx, {
|
|
12105
12109
|
...params,
|
|
12106
12110
|
path: [...params.path, restPath, ...ctx.target === "openapi-3.0" ? [def.items.length] : []]
|
|
12107
12111
|
}) : null;
|
|
@@ -12141,7 +12145,7 @@ var recordProcessor = (schema, ctx, _json, params) => {
|
|
|
12141
12145
|
const keyBag = keyType._zod.bag;
|
|
12142
12146
|
const patterns = keyBag?.patterns;
|
|
12143
12147
|
if (def.mode === "loose" && patterns && patterns.size > 0) {
|
|
12144
|
-
const valueSchema =
|
|
12148
|
+
const valueSchema = process2(def.valueType, ctx, {
|
|
12145
12149
|
...params,
|
|
12146
12150
|
path: [...params.path, "patternProperties", "*"]
|
|
12147
12151
|
});
|
|
@@ -12151,12 +12155,12 @@ var recordProcessor = (schema, ctx, _json, params) => {
|
|
|
12151
12155
|
}
|
|
12152
12156
|
} else {
|
|
12153
12157
|
if (ctx.target === "draft-07" || ctx.target === "draft-2020-12") {
|
|
12154
|
-
json2.propertyNames =
|
|
12158
|
+
json2.propertyNames = process2(def.keyType, ctx, {
|
|
12155
12159
|
...params,
|
|
12156
12160
|
path: [...params.path, "propertyNames"]
|
|
12157
12161
|
});
|
|
12158
12162
|
}
|
|
12159
|
-
json2.additionalProperties =
|
|
12163
|
+
json2.additionalProperties = process2(def.valueType, ctx, {
|
|
12160
12164
|
...params,
|
|
12161
12165
|
path: [...params.path, "additionalProperties"]
|
|
12162
12166
|
});
|
|
@@ -12171,7 +12175,7 @@ var recordProcessor = (schema, ctx, _json, params) => {
|
|
|
12171
12175
|
};
|
|
12172
12176
|
var nullableProcessor = (schema, ctx, json2, params) => {
|
|
12173
12177
|
const def = schema._zod.def;
|
|
12174
|
-
const inner =
|
|
12178
|
+
const inner = process2(def.innerType, ctx, params);
|
|
12175
12179
|
const seen = ctx.seen.get(schema);
|
|
12176
12180
|
if (ctx.target === "openapi-3.0") {
|
|
12177
12181
|
seen.ref = def.innerType;
|
|
@@ -12182,20 +12186,20 @@ var nullableProcessor = (schema, ctx, json2, params) => {
|
|
|
12182
12186
|
};
|
|
12183
12187
|
var nonoptionalProcessor = (schema, ctx, _json, params) => {
|
|
12184
12188
|
const def = schema._zod.def;
|
|
12185
|
-
|
|
12189
|
+
process2(def.innerType, ctx, params);
|
|
12186
12190
|
const seen = ctx.seen.get(schema);
|
|
12187
12191
|
seen.ref = def.innerType;
|
|
12188
12192
|
};
|
|
12189
12193
|
var defaultProcessor = (schema, ctx, json2, params) => {
|
|
12190
12194
|
const def = schema._zod.def;
|
|
12191
|
-
|
|
12195
|
+
process2(def.innerType, ctx, params);
|
|
12192
12196
|
const seen = ctx.seen.get(schema);
|
|
12193
12197
|
seen.ref = def.innerType;
|
|
12194
12198
|
json2.default = JSON.parse(JSON.stringify(def.defaultValue));
|
|
12195
12199
|
};
|
|
12196
12200
|
var prefaultProcessor = (schema, ctx, json2, params) => {
|
|
12197
12201
|
const def = schema._zod.def;
|
|
12198
|
-
|
|
12202
|
+
process2(def.innerType, ctx, params);
|
|
12199
12203
|
const seen = ctx.seen.get(schema);
|
|
12200
12204
|
seen.ref = def.innerType;
|
|
12201
12205
|
if (ctx.io === "input")
|
|
@@ -12203,7 +12207,7 @@ var prefaultProcessor = (schema, ctx, json2, params) => {
|
|
|
12203
12207
|
};
|
|
12204
12208
|
var catchProcessor = (schema, ctx, json2, params) => {
|
|
12205
12209
|
const def = schema._zod.def;
|
|
12206
|
-
|
|
12210
|
+
process2(def.innerType, ctx, params);
|
|
12207
12211
|
const seen = ctx.seen.get(schema);
|
|
12208
12212
|
seen.ref = def.innerType;
|
|
12209
12213
|
let catchValue;
|
|
@@ -12218,32 +12222,32 @@ var pipeProcessor = (schema, ctx, _json, params) => {
|
|
|
12218
12222
|
const def = schema._zod.def;
|
|
12219
12223
|
const inIsTransform = def.in._zod.traits.has("$ZodTransform");
|
|
12220
12224
|
const innerType = ctx.io === "input" ? inIsTransform ? def.out : def.in : def.out;
|
|
12221
|
-
|
|
12225
|
+
process2(innerType, ctx, params);
|
|
12222
12226
|
const seen = ctx.seen.get(schema);
|
|
12223
12227
|
seen.ref = innerType;
|
|
12224
12228
|
};
|
|
12225
12229
|
var readonlyProcessor = (schema, ctx, json2, params) => {
|
|
12226
12230
|
const def = schema._zod.def;
|
|
12227
|
-
|
|
12231
|
+
process2(def.innerType, ctx, params);
|
|
12228
12232
|
const seen = ctx.seen.get(schema);
|
|
12229
12233
|
seen.ref = def.innerType;
|
|
12230
12234
|
json2.readOnly = true;
|
|
12231
12235
|
};
|
|
12232
12236
|
var promiseProcessor = (schema, ctx, _json, params) => {
|
|
12233
12237
|
const def = schema._zod.def;
|
|
12234
|
-
|
|
12238
|
+
process2(def.innerType, ctx, params);
|
|
12235
12239
|
const seen = ctx.seen.get(schema);
|
|
12236
12240
|
seen.ref = def.innerType;
|
|
12237
12241
|
};
|
|
12238
12242
|
var optionalProcessor = (schema, ctx, _json, params) => {
|
|
12239
12243
|
const def = schema._zod.def;
|
|
12240
|
-
|
|
12244
|
+
process2(def.innerType, ctx, params);
|
|
12241
12245
|
const seen = ctx.seen.get(schema);
|
|
12242
12246
|
seen.ref = def.innerType;
|
|
12243
12247
|
};
|
|
12244
12248
|
var lazyProcessor = (schema, ctx, _json, params) => {
|
|
12245
12249
|
const innerType = schema._zod.innerType;
|
|
12246
|
-
|
|
12250
|
+
process2(innerType, ctx, params);
|
|
12247
12251
|
const seen = ctx.seen.get(schema);
|
|
12248
12252
|
seen.ref = innerType;
|
|
12249
12253
|
};
|
|
@@ -12295,7 +12299,7 @@ function toJSONSchema(input, params) {
|
|
|
12295
12299
|
const defs = {};
|
|
12296
12300
|
for (const entry of registry2._idmap.entries()) {
|
|
12297
12301
|
const [_, schema] = entry;
|
|
12298
|
-
|
|
12302
|
+
process2(schema, ctx2);
|
|
12299
12303
|
}
|
|
12300
12304
|
const schemas = {};
|
|
12301
12305
|
const external = {
|
|
@@ -12318,7 +12322,7 @@ function toJSONSchema(input, params) {
|
|
|
12318
12322
|
return { schemas };
|
|
12319
12323
|
}
|
|
12320
12324
|
const ctx = initializeContext({ ...params, processors: allProcessors });
|
|
12321
|
-
|
|
12325
|
+
process2(input, ctx);
|
|
12322
12326
|
extractDefs(ctx, input);
|
|
12323
12327
|
return finalize(ctx, input);
|
|
12324
12328
|
}
|
|
@@ -12376,7 +12380,7 @@ var JSONSchemaGenerator = class {
|
|
|
12376
12380
|
* This must be called before emit().
|
|
12377
12381
|
*/
|
|
12378
12382
|
process(schema, _params = { path: [], schemaPath: [] }) {
|
|
12379
|
-
return
|
|
12383
|
+
return process2(schema, this.ctx, _params);
|
|
12380
12384
|
}
|
|
12381
12385
|
/**
|
|
12382
12386
|
* Emit the final JSON Schema after processing.
|
|
@@ -14525,6 +14529,27 @@ function date4(params) {
|
|
|
14525
14529
|
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/external.js
|
|
14526
14530
|
config(en_default());
|
|
14527
14531
|
|
|
14532
|
+
// src/lib/config.ts
|
|
14533
|
+
var _endScreen = NODE_TYPES.end_screen.config_schema.properties;
|
|
14534
|
+
var END_SCREEN_ICONS = _endScreen.icon.enum;
|
|
14535
|
+
var END_SCREEN_CTA_TYPES = _endScreen.cta_type.enum;
|
|
14536
|
+
var EXPOSED_COMPOSITIONS = exposedCompositionIds(
|
|
14537
|
+
process.env.NODE_ENV !== "production"
|
|
14538
|
+
);
|
|
14539
|
+
function targetsProductionApi(apiUrl = process.env.API_URL) {
|
|
14540
|
+
if (!apiUrl) return false;
|
|
14541
|
+
const origin = (u) => {
|
|
14542
|
+
try {
|
|
14543
|
+
return new URL(u.trim()).origin;
|
|
14544
|
+
} catch {
|
|
14545
|
+
return null;
|
|
14546
|
+
}
|
|
14547
|
+
};
|
|
14548
|
+
const target = origin(apiUrl);
|
|
14549
|
+
return target !== null && [PROD_URLS.api, PROD_URLS.mcp].some((u) => origin(u) === target);
|
|
14550
|
+
}
|
|
14551
|
+
var FORM_CLIP_RULES = process.env.NODE_ENV === "production" || targetsProductionApi();
|
|
14552
|
+
|
|
14528
14553
|
// src/prompts.ts
|
|
14529
14554
|
var WORKFLOW_TYPES2 = WORKFLOW_TYPES;
|
|
14530
14555
|
var MAX_PROMPT_QUESTIONS = 20;
|
|
@@ -14606,7 +14631,7 @@ function promptMessage(request, guides, workflow) {
|
|
|
14606
14631
|
}
|
|
14607
14632
|
var BUILD_ONCE_STEP = "**Build the whole form in ONE clipform_create_form call** - pass nodes, settings, and tags together; do NOT create an empty form and add nodes one by one:";
|
|
14608
14633
|
var TAGS_LINE = "- tags: one format (quiz/survey/interview/feedback/lead-gen), one genre (trivia/personality/nps/poll/testimonial), and 2-3 topic words";
|
|
14609
|
-
var ATTACH_MEDIA_STEP = "**Attach media**: pass node_id (and form_id) on each render call (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).";
|
|
14634
|
+
var ATTACH_MEDIA_STEP = FORM_CLIP_RULES ? "**Attach media**: every render is for one question, so pass form_id and node_id on each render call (clipform_render_video_template / clipform_render_composition) and each voiceover (clipform_generate_tts) - the render attaches to the node automatically once it finishes. Do not poll clipform_check_render to completion, just fire the renders and move on. Keep each clip under " + MAX_CLIP_SECONDS + " seconds." : "**Attach media**: pass node_id (and form_id) on each render call (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).";
|
|
14610
14635
|
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.";
|
|
14611
14636
|
var LOG_STEP = "**Log** with clipform_log_generation";
|
|
14612
14637
|
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.";
|
|
@@ -14636,7 +14661,7 @@ var quizWorkflow = (args, sessionContext, authMode, caps) => {
|
|
|
14636
14661
|
${TAGS_LINE}`,
|
|
14637
14662
|
caps.media && "**Generate narration** with clipform_generate_tts - batch ALL questions in a single call (pass an array of items). Narration asks the full question in natural words so the clip stands alone (never a verbatim read of the prompt, never the answer); the on-screen prompt is then a short reminder. Without narration, the prompt carries the full question.",
|
|
14638
14663
|
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:
|
|
14639
|
-
- Default - narrated slideshow: clipform_search_media (kind: "image", 3 images per question, batch all queries in one call), then clipform_render_video_template (template: "slideshow", controls.items + controls.audio_url) with wait: false per question - fires all renders in parallel - then collect URLs with clipform_check_render.
|
|
14664
|
+
- Default - narrated slideshow: clipform_search_media (kind: "image", 3 images per question, batch all queries in one call), then clipform_render_video_template (template: "slideshow", controls.items + controls.audio_url) with wait: false per question - fires all renders in parallel - then collect ${FORM_CLIP_RULES ? "the results" : "URLs"} with clipform_check_render.
|
|
14640
14665
|
- 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. Recipes take the narration as audio_url (the clip sizes to it); raw compositions take it as sound.narration. Never pass a duration.`,
|
|
14641
14666
|
caps.media && ATTACH_MEDIA_STEP,
|
|
14642
14667
|
REPUBLISH_STEP,
|
|
@@ -14714,7 +14739,7 @@ var comprehensionQuizWorkflow = (args, sessionContext, authMode, caps) => {
|
|
|
14714
14739
|
caps.media && `**Generate narration** with clipform_generate_tts - batch ALL questions in a single call. Reference the source naturally: "If you were paying attention, you'll know this one..." Keep each narration 5-10 seconds.`,
|
|
14715
14740
|
caps.media && `**Build video** for each question:
|
|
14716
14741
|
- clipform_search_media (kind: "image") - 3 images per question, batch all queries in one call
|
|
14717
|
-
- clipform_render_video_template (template: "slideshow", controls.items + controls.audio_url) with wait: false per question - fires all renders in parallel - then collect URLs with clipform_check_render`,
|
|
14742
|
+
- clipform_render_video_template (template: "slideshow", controls.items + controls.audio_url) with wait: false per question - fires all renders in parallel - then collect ${FORM_CLIP_RULES ? "the results" : "URLs"} with clipform_check_render`,
|
|
14718
14743
|
caps.media && ATTACH_MEDIA_STEP,
|
|
14719
14744
|
REPUBLISH_STEP,
|
|
14720
14745
|
caps.research && `${LOG_STEP} - include the source title and link as sources, using whatever of those the user provided`
|
|
@@ -14749,7 +14774,6 @@ Build a standard scored quiz${topic} instead: call clipform_get_workflow with ty
|
|
|
14749
14774
|
const steps = numbered([
|
|
14750
14775
|
"**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.",
|
|
14751
14776
|
`**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.`,
|
|
14752
|
-
"**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.",
|
|
14753
14777
|
`${BUILD_ONCE_STEP}
|
|
14754
14778
|
- Settings: show_step_counter: true, disable_back_navigation: true
|
|
14755
14779
|
- 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. On option_display: "letters" nodes (media with A/B/C/D badges, like a Grid), list options in the media's A/B/C/D order - their order is kept fixed, so randomise_options has no effect there. Vary which cell holds the correct answer across questions.
|
|
@@ -14757,6 +14781,7 @@ Build a standard scored quiz${topic} instead: call clipform_get_workflow with ty
|
|
|
14757
14781
|
- 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.
|
|
14758
14782
|
- tags: format "quiz", genre "trivia", and 2-3 topic words`,
|
|
14759
14783
|
"**Generate narration** with clipform_generate_tts - batch ALL items in one call. Narration asks the full question so the clip stands alone (compare mechanics name both sides; decode mechanics like flag or rebus ask the question but never decode the clue) and never describes what's on screen. An optional reveal node's narration gives the answer plus one surprising fact.",
|
|
14784
|
+
"**Render all clips** into their nodes (the form must exist first: every render needs its form_id and node_id) - 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.",
|
|
14760
14785
|
`${ATTACH_MEDIA_STEP} Attach the clue clip to each choice node; attach reveal clips to their button nodes only on questions that use one.`,
|
|
14761
14786
|
REPUBLISH_STEP,
|
|
14762
14787
|
caps.research && `${LOG_STEP} - record the composition IDs used per question alongside sources and attributions`
|
|
@@ -15222,6 +15247,8 @@ export {
|
|
|
15222
15247
|
ZodIssueCode,
|
|
15223
15248
|
coerce_exports,
|
|
15224
15249
|
external_exports,
|
|
15250
|
+
EXPOSED_COMPOSITIONS,
|
|
15251
|
+
FORM_CLIP_RULES,
|
|
15225
15252
|
WORKFLOW_TYPES2 as WORKFLOW_TYPES,
|
|
15226
15253
|
normalizeMediaStyle,
|
|
15227
15254
|
normalizeResponseFormat,
|
|
@@ -15232,4 +15259,4 @@ export {
|
|
|
15232
15259
|
getWorkflowText,
|
|
15233
15260
|
registerPrompts
|
|
15234
15261
|
};
|
|
15235
|
-
//# sourceMappingURL=chunk-
|
|
15262
|
+
//# sourceMappingURL=chunk-NXNCAGMO.js.map
|