@nodaro/prompts 1.39.0 → 1.40.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/dist/{chunk-XIWWDGT5.cjs → chunk-2EW5B7ZV.cjs} +7 -7
- package/dist/{chunk-XIWWDGT5.cjs.map → chunk-2EW5B7ZV.cjs.map} +1 -1
- package/dist/{chunk-22KZOAGL.cjs → chunk-C3NHNECH.cjs} +86 -48
- package/dist/chunk-C3NHNECH.cjs.map +1 -0
- package/dist/{chunk-XRLOMTBZ.js → chunk-C46256GZ.js} +43 -5
- package/dist/chunk-C46256GZ.js.map +1 -0
- package/dist/{chunk-NMWKXAYA.cjs → chunk-DQFQJECU.cjs} +43 -5
- package/dist/chunk-DQFQJECU.cjs.map +1 -0
- package/dist/{chunk-XU54YJXQ.js → chunk-HQTHDTHN.js} +85 -49
- package/dist/chunk-HQTHDTHN.js.map +1 -0
- package/dist/{chunk-KUBZVWME.cjs → chunk-LXPKTI2K.cjs} +12 -5
- package/dist/chunk-LXPKTI2K.cjs.map +1 -0
- package/dist/{chunk-3INXNDV7.cjs → chunk-LZ53F5BN.cjs} +8 -8
- package/dist/chunk-LZ53F5BN.cjs.map +1 -0
- package/dist/{chunk-7XMTVYS5.js → chunk-N6VMPG5S.js} +12 -6
- package/dist/chunk-N6VMPG5S.js.map +1 -0
- package/dist/{chunk-6MPZHFIS.js → chunk-RB2F5JQF.js} +5 -5
- package/dist/chunk-RB2F5JQF.js.map +1 -0
- package/dist/{chunk-Z3SZXWRU.js → chunk-YS6HOWMW.js} +3 -3
- package/dist/{chunk-Z3SZXWRU.js.map → chunk-YS6HOWMW.js.map} +1 -1
- package/dist/entries/assembly.cjs +30 -22
- package/dist/entries/assembly.d.cts +90 -34
- package/dist/entries/assembly.d.ts +90 -34
- package/dist/entries/assembly.js +1 -1
- package/dist/entries/doctrine.cjs +46 -46
- package/dist/entries/doctrine.js +1 -1
- package/dist/entries/presets.cjs +32 -32
- package/dist/entries/presets.d.cts +2 -0
- package/dist/entries/presets.d.ts +2 -0
- package/dist/entries/presets.js +2 -2
- package/dist/entries/prompt-fields.cjs +26 -26
- package/dist/entries/prompt-fields.d.cts +2 -1
- package/dist/entries/prompt-fields.d.ts +2 -1
- package/dist/entries/prompt-fields.js +2 -2
- package/dist/index.cjs +133 -125
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +5 -5
- package/package.json +2 -2
- package/src/__tests__/factory-presets-prototype-keys.test.ts +43 -0
- package/src/__tests__/frame-reference-slots.test.ts +43 -0
- package/src/__tests__/gemini-omni-inputs.test.ts +12 -10
- package/src/__tests__/provider-prompt-doctrine.test.ts +14 -0
- package/src/__tests__/veo-i2v-inputs.test.ts +16 -11
- package/src/entries/assembly.ts +1 -0
- package/src/factory-presets/index.ts +4 -1
- package/src/factory-presets/references.ts +2 -1
- package/src/frame-reference-slots.ts +92 -0
- package/src/gemini-omni-inputs.ts +23 -22
- package/src/node-prompt-fields.ts +5 -3
- package/src/own-entry.ts +11 -0
- package/src/prompt-wizard-categories.ts +2 -0
- package/src/provider-prompt-doctrine.ts +45 -3
- package/src/ref-binding.ts +28 -3
- package/src/resolve-prompt.ts +2 -1
- package/src/seedance-2-inputs.ts +15 -40
- package/src/veo-i2v-inputs.ts +24 -17
- package/src/video-reference-resolver.ts +1 -1
- package/dist/chunk-22KZOAGL.cjs.map +0 -1
- package/dist/chunk-3INXNDV7.cjs.map +0 -1
- package/dist/chunk-6MPZHFIS.js.map +0 -1
- package/dist/chunk-7XMTVYS5.js.map +0 -1
- package/dist/chunk-KUBZVWME.cjs.map +0 -1
- package/dist/chunk-NMWKXAYA.cjs.map +0 -1
- package/dist/chunk-XRLOMTBZ.js.map +0 -1
- package/dist/chunk-XU54YJXQ.js.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkLXPKTI2K_cjs = require('./chunk-LXPKTI2K.cjs');
|
|
4
4
|
var workflow = require('@nodaro/shared/workflow');
|
|
5
5
|
var social = require('@nodaro/shared/social');
|
|
6
6
|
|
|
@@ -50,7 +50,7 @@ function computeNodeSendText(nodeType, data, args) {
|
|
|
50
50
|
const bare = withoutAffixes(data);
|
|
51
51
|
switch (nodeType) {
|
|
52
52
|
case "llm-chat":
|
|
53
|
-
return
|
|
53
|
+
return chunkLXPKTI2K_cjs.computeLlmChatFields(bare, {
|
|
54
54
|
override: args.override,
|
|
55
55
|
wiredUserInput: args.wired,
|
|
56
56
|
wiredSystemPrompt: args.wiredSystemPrompt,
|
|
@@ -59,15 +59,15 @@ function computeNodeSendText(nodeType, data, args) {
|
|
|
59
59
|
case "ai-writer":
|
|
60
60
|
return computeAiWriterInput(bare, args);
|
|
61
61
|
case "generate-script":
|
|
62
|
-
return
|
|
62
|
+
return chunkLXPKTI2K_cjs.computeScriptTopic(bare, { override: args.override, wired: args.wired, refMap: args.refMap });
|
|
63
63
|
case "generate-music": {
|
|
64
|
-
const prompt =
|
|
64
|
+
const prompt = chunkLXPKTI2K_cjs.computeNodePrompt(nodeType, bare, { override: args.override, wired: args.wired, refMap: args.refMap });
|
|
65
65
|
return present(prompt) ? prompt : present(data.lyrics) ? data.lyrics : "";
|
|
66
66
|
}
|
|
67
67
|
case "text-to-speech":
|
|
68
68
|
case "text-to-audio":
|
|
69
69
|
case "generate-image":
|
|
70
|
-
return
|
|
70
|
+
return chunkLXPKTI2K_cjs.computeNodePrompt(nodeType, bare, { override: args.override, wired: args.wired, refMap: args.refMap });
|
|
71
71
|
case "collection-write": {
|
|
72
72
|
const typed = [data.title, data.text, data.link].map((v) => typeof v === "string" ? workflow.resolveNodeRefs(v, args.refMap) : v).find((v) => present(v));
|
|
73
73
|
return [args.override, args.wired, typed].find(present) ?? "";
|
|
@@ -82,5 +82,5 @@ exports.WIRED_OUTPUT_NODE_TYPES = WIRED_OUTPUT_NODE_TYPES;
|
|
|
82
82
|
exports.computeAiWriterInput = computeAiWriterInput;
|
|
83
83
|
exports.computeNodeSendText = computeNodeSendText;
|
|
84
84
|
exports.stripAudioTags = stripAudioTags;
|
|
85
|
-
//# sourceMappingURL=chunk-
|
|
86
|
-
//# sourceMappingURL=chunk-
|
|
85
|
+
//# sourceMappingURL=chunk-2EW5B7ZV.cjs.map
|
|
86
|
+
//# sourceMappingURL=chunk-2EW5B7ZV.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/audio-tags.ts","../src/node-send-text.ts"],"names":["SOCIAL_POST_NODE_TYPES","computeLlmChatFields","computeScriptTopic","computeNodePrompt","resolveNodeRefs"],"mappings":";;;;;;;AAcA,SAAS,kBAAkB,IAAA,EAAsB;AAC/C,EAAA,IAAI,GAAA,GAAM,EAAA;AACV,EAAA,IAAI,IAAA,GAAO,CAAA;AACX,EAAA,IAAI,IAAA,GAAO,IAAA,CAAK,OAAA,CAAQ,GAAG,CAAA;AAC3B,EAAA,OAAO,SAAS,EAAA,EAAI;AAClB,IAAA,MAAM,KAAA,GAAQ,IAAA,CAAK,OAAA,CAAQ,GAAA,EAAK,OAAO,CAAC,CAAA;AACxC,IAAA,IAAI,UAAU,EAAA,EAAI;AAClB,IAAA,IAAI,KAAA,KAAU,OAAO,CAAA,EAAG;AAEtB,MAAA,IAAA,GAAO,IAAA,CAAK,OAAA,CAAQ,GAAA,EAAK,IAAA,GAAO,CAAC,CAAA;AACjC,MAAA;AAAA,IACF;AACA,IAAA,GAAA,IAAO,IAAA,CAAK,KAAA,CAAM,IAAA,EAAM,IAAI,CAAA;AAC5B,IAAA,IAAA,GAAO,KAAA,GAAQ,CAAA;AACf,IAAA,IAAA,GAAO,IAAA,CAAK,OAAA,CAAQ,GAAA,EAAK,IAAI,CAAA;AAAA,EAC/B;AACA,EAAA,OAAO,GAAA,GAAM,IAAA,CAAK,KAAA,CAAM,IAAI,CAAA;AAC9B;AAEO,SAAS,eAAe,IAAA,EAAsB;AACnD,EAAA,OAAO,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K,OAAO,KAAK,CAAA,CAAE,IAAA,CAAK,OAAO,CAAA,IAAK,EAAA;AAAA,IAC7D;AAAA,IACA;AACE,MAAA,OAAO,MAAA;AAAA;AAEb","file":"chunk-XIWWDGT5.cjs","sourcesContent":["/**\n * Remove inline `[audio tags]` from speech text, for a model that does not\n * perform them (it would read them aloud). Pure, dependency-free: the\n * backend's credit counter (lib/speech-credits.ts), its payload builder and\n * the editor's estimate (frontend/src/lib/speech-estimate.ts) all read it, so\n * the two engines count exactly the same characters.\n *\n * A tag is `[`, one or more characters that are not `]`, then `]` — what\n * `/\\[[^\\]]+\\]/g` matches. That pattern is quadratic on an unclosed run of `[`\n * (every `[` rescans to the end of the text), and the credit counter runs this\n * on raw request text on the API and orchestrator event loops, so the scan is\n * written by hand: one `indexOf` per `[`, and when no `]` is left no later `[`\n * can match either, so the rest of the text is kept in one slice.\n */\nfunction removeBracketTags(text: string): string {\n let out = \"\"\n let from = 0\n let open = text.indexOf(\"[\")\n while (open !== -1) {\n const close = text.indexOf(\"]\", open + 1)\n if (close === -1) break\n if (close === open + 1) {\n // \"[]\" is not a tag (needs 1+ characters); the \"[\" stays and the scan moves on.\n open = text.indexOf(\"[\", open + 1)\n continue\n }\n out += text.slice(from, open)\n from = close + 1\n open = text.indexOf(\"[\", from)\n }\n return out + text.slice(from)\n}\n\nexport function stripAudioTags(text: string): string {\n return removeBracketTags(text).replace(/\\s{2,}/g, \" \").trim()\n}\n","import { resolveNodeRefs } from \"@nodaro/shared/workflow\"\nimport { SOCIAL_POST_NODE_TYPES } from \"@nodaro/shared/social\"\nimport { computeLlmChatFields, computeNodePrompt, computeScriptTopic } from \"./resolve-prompt.js\"\n\n/**\n * Output nodes that send exactly what is WIRED into them — a webhook's\n * parameters, a social post's caption and media. When every wire produced\n * nothing in this run (a Filter List that kept no row, a node that was itself\n * skipped), there is nothing to send: the node is skipped with\n * `skipReason: \"empty_input\"` instead of posting an empty payload (a site that\n * validates its input answers 400 and alerts its owner) or failing the run\n * (a publish route refuses a post with no text and no media). A typed caption\n * with no wire at all is the author's choice and still runs, as before. ONE\n * list, read by the orchestrator's skip rule (`empty-input-skips.ts`).\n */\nexport const WIRED_OUTPUT_NODE_TYPES: ReadonlySet<string> = new Set([\"webhook-output\", ...SOCIAL_POST_NODE_TYPES])\n\n/**\n * Node types that send TEXT to a model or a voice and fail on an empty one —\n * `userInput: Too small` (llm-chat), \"no text found\" (text-to-speech) — so a\n * run with nothing upstream can skip them instead of failing. Never an image\n * or video node (an empty prompt is a legal request there) and never a social\n * post (an empty caption is the author's choice). ONE list, read by the\n * orchestrator's skip rule (`empty-input-skips.ts`); the engine never names a\n * type on its own.\n */\nexport const TEXT_REQUIRED_NODE_TYPES: ReadonlySet<string> = new Set([\n \"llm-chat\",\n \"ai-writer\",\n \"generate-script\",\n \"text-to-speech\",\n \"generate-music\",\n \"text-to-audio\",\n // Save to Collection refuses an empty record (\"nothing to save\"): a feed\n // with nothing new wired straight into it must skip it, not fail the run.\n \"collection-write\",\n // Generate Image: an empty prompt is a legal request in general (references\n // alone), but when the text it was WIRED produced nothing this run — the skip\n // rule's precondition — an empty prompt is a paid picture of nothing.\n \"generate-image\",\n])\n\n/**\n * The node's data without its prompt pre/post text: the skip decision is about\n * the CORE text. A prefix alone (\"Write a news item about:\") is not something\n * to send — with the affixes applied, an empty core read as non-empty and an\n * idle tick paid for a model call on the prefix.\n */\nconst withoutAffixes = (data: Record<string, unknown>): Record<string, unknown> => ({ ...data, promptPrefix: undefined, promptSuffix: undefined })\n\nexport interface NodeSendTextArgs {\n /** A list fan-out item (highest precedence). */\n override?: string\n /** The text wired into the node's main text input. */\n wired?: string\n /** llm-chat only: the text wired into `system-prompt`. */\n wiredSystemPrompt?: string\n refMap: ReadonlyMap<string, string>\n}\n\nconst present = (s?: string): s is string => typeof s === \"string\" && s.trim().length > 0\n\n/**\n * ai-writer's user input — the rule its sync-HTTP body applies: a fan-out\n * item, else the wired text, else the typed `userInput`, else the legacy\n * `prompt`. (ai-writer is renamed to llm-chat on load; saved graphs that\n * never reloaded still run it.)\n */\nexport function computeAiWriterInput(\n data: Record<string, unknown>,\n { override, wired }: Pick<NodeSendTextArgs, \"override\" | \"wired\">,\n): string {\n return [override, wired, data.userInput as string | undefined, data.prompt as string | undefined].find(present) ?? \"\"\n}\n\n/**\n * The text a text-requiring node would send, by the SAME rule its executor\n * uses (`computeLlmChatFields`, `computeScriptTopic`, `computeNodePrompt`,\n * `computeAiWriterInput`) — so \"would this node run on nothing?\" is answered\n * by the function that decides what it sends, not by a second reading of it.\n * Undefined for any other node type.\n */\nexport function computeNodeSendText(\n nodeType: string,\n data: Record<string, unknown>,\n args: NodeSendTextArgs,\n): string | undefined {\n const bare = withoutAffixes(data)\n switch (nodeType) {\n case \"llm-chat\":\n return computeLlmChatFields(bare, {\n override: args.override,\n wiredUserInput: args.wired,\n wiredSystemPrompt: args.wiredSystemPrompt,\n refMap: args.refMap,\n }).userInput\n case \"ai-writer\":\n return computeAiWriterInput(bare, args)\n case \"generate-script\":\n return computeScriptTopic(bare, { override: args.override, wired: args.wired, refMap: args.refMap })\n case \"generate-music\": {\n // A music node sings typed lyrics with no prompt; only both empty is nothing to send.\n const prompt = computeNodePrompt(nodeType, bare, { override: args.override, wired: args.wired, refMap: args.refMap })\n return present(prompt) ? prompt : present(data.lyrics as string | undefined) ? (data.lyrics as string) : \"\"\n }\n case \"text-to-speech\":\n case \"text-to-audio\":\n case \"generate-image\":\n return computeNodePrompt(nodeType, bare, { override: args.override, wired: args.wired, refMap: args.refMap })\n case \"collection-write\": {\n // The record's content: the item (a fan-out row, else what reached `in`),\n // else a title, text or link typed on the node. A picture alone is a\n // record too, but it never starves the node: only a wired TEXT input that\n // produced nothing can (the skip rule's precondition).\n // A typed field counts as the engines send it, its `{Node}` references\n // resolved: `{Feed || }` over a feed with nothing new is empty, so the\n // node skips instead of failing with an empty record (#1890).\n const typed = [data.title, data.text, data.link]\n .map((v) => (typeof v === \"string\" ? resolveNodeRefs(v, args.refMap) : v))\n .find((v): v is string => present(v as string | undefined))\n return [args.override, args.wired, typed].find(present) ?? \"\"\n }\n default:\n return undefined\n }\n}\n"]}
|
|
1
|
+
{"version":3,"sources":["../src/audio-tags.ts","../src/node-send-text.ts"],"names":["SOCIAL_POST_NODE_TYPES","computeLlmChatFields","computeScriptTopic","computeNodePrompt","resolveNodeRefs"],"mappings":";;;;;;;AAcA,SAAS,kBAAkB,IAAA,EAAsB;AAC/C,EAAA,IAAI,GAAA,GAAM,EAAA;AACV,EAAA,IAAI,IAAA,GAAO,CAAA;AACX,EAAA,IAAI,IAAA,GAAO,IAAA,CAAK,OAAA,CAAQ,GAAG,CAAA;AAC3B,EAAA,OAAO,SAAS,EAAA,EAAI;AAClB,IAAA,MAAM,KAAA,GAAQ,IAAA,CAAK,OAAA,CAAQ,GAAA,EAAK,OAAO,CAAC,CAAA;AACxC,IAAA,IAAI,UAAU,EAAA,EAAI;AAClB,IAAA,IAAI,KAAA,KAAU,OAAO,CAAA,EAAG;AAEtB,MAAA,IAAA,GAAO,IAAA,CAAK,OAAA,CAAQ,GAAA,EAAK,IAAA,GAAO,CAAC,CAAA;AACjC,MAAA;AAAA,IACF;AACA,IAAA,GAAA,IAAO,IAAA,CAAK,KAAA,CAAM,IAAA,EAAM,IAAI,CAAA;AAC5B,IAAA,IAAA,GAAO,KAAA,GAAQ,CAAA;AACf,IAAA,IAAA,GAAO,IAAA,CAAK,OAAA,CAAQ,GAAA,EAAK,IAAI,CAAA;AAAA,EAC/B;AACA,EAAA,OAAO,GAAA,GAAM,IAAA,CAAK,KAAA,CAAM,IAAI,CAAA;AAC9B;AAEO,SAAS,eAAe,IAAA,EAAsB;AACnD,EAAA,OAAO,kBAAkB,IAAI,CAAA,CAAE,QAAQ,SAAA,EAAW,GAAG,EAAE,IAAA,EAAK;AAC9D;ACpBO,IAAM,0CAA+C,IAAI,GAAA,CAAI,CAAC,gBAAA,EAAkB,GAAGA,6BAAsB,CAAC;AAW1G,IAAM,wBAAA,uB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text, for a model that does not\n * perform them (it would read them aloud). Pure, dependency-free: the\n * backend's credit counter (lib/speech-credits.ts), its payload builder and\n * the editor's estimate (frontend/src/lib/speech-estimate.ts) all read it, so\n * the two engines count exactly the same characters.\n *\n * A tag is `[`, one or more characters that are not `]`, then `]` — what\n * `/\\[[^\\]]+\\]/g` matches. That pattern is quadratic on an unclosed run of `[`\n * (every `[` rescans to the end of the text), and the credit counter runs this\n * on raw request text on the API and orchestrator event loops, so the scan is\n * written by hand: one `indexOf` per `[`, and when no `]` is left no later `[`\n * can match either, so the rest of the text is kept in one slice.\n */\nfunction removeBracketTags(text: string): string {\n let out = \"\"\n let from = 0\n let open = text.indexOf(\"[\")\n while (open !== -1) {\n const close = text.indexOf(\"]\", open + 1)\n if (close === -1) break\n if (close === open + 1) {\n // \"[]\" is not a tag (needs 1+ characters); the \"[\" stays and the scan moves on.\n open = text.indexOf(\"[\", open + 1)\n continue\n }\n out += text.slice(from, open)\n from = close + 1\n open = text.indexOf(\"[\", from)\n }\n return out + text.slice(from)\n}\n\nexport function stripAudioTags(text: string): string {\n return removeBracketTags(text).replace(/\\s{2,}/g, \" \").trim()\n}\n","import { resolveNodeRefs } from \"@nodaro/shared/workflow\"\nimport { SOCIAL_POST_NODE_TYPES } from \"@nodaro/shared/social\"\nimport { computeLlmChatFields, computeNodePrompt, computeScriptTopic } from \"./resolve-prompt.js\"\n\n/**\n * Output nodes that send exactly what is WIRED into them — a webhook's\n * parameters, a social post's caption and media. When every wire produced\n * nothing in this run (a Filter List that kept no row, a node that was itself\n * skipped), there is nothing to send: the node is skipped with\n * `skipReason: \"empty_input\"` instead of posting an empty payload (a site that\n * validates its input answers 400 and alerts its owner) or failing the run\n * (a publish route refuses a post with no text and no media). A typed caption\n * with no wire at all is the author's choice and still runs, as before. ONE\n * list, read by the orchestrator's skip rule (`empty-input-skips.ts`).\n */\nexport const WIRED_OUTPUT_NODE_TYPES: ReadonlySet<string> = new Set([\"webhook-output\", ...SOCIAL_POST_NODE_TYPES])\n\n/**\n * Node types that send TEXT to a model or a voice and fail on an empty one —\n * `userInput: Too small` (llm-chat), \"no text found\" (text-to-speech) — so a\n * run with nothing upstream can skip them instead of failing. Never an image\n * or video node (an empty prompt is a legal request there) and never a social\n * post (an empty caption is the author's choice). ONE list, read by the\n * orchestrator's skip rule (`empty-input-skips.ts`); the engine never names a\n * type on its own.\n */\nexport const TEXT_REQUIRED_NODE_TYPES: ReadonlySet<string> = new Set([\n \"llm-chat\",\n \"ai-writer\",\n \"generate-script\",\n \"text-to-speech\",\n \"generate-music\",\n \"text-to-audio\",\n // Save to Collection refuses an empty record (\"nothing to save\"): a feed\n // with nothing new wired straight into it must skip it, not fail the run.\n \"collection-write\",\n // Generate Image: an empty prompt is a legal request in general (references\n // alone), but when the text it was WIRED produced nothing this run — the skip\n // rule's precondition — an empty prompt is a paid picture of nothing.\n \"generate-image\",\n])\n\n/**\n * The node's data without its prompt pre/post text: the skip decision is about\n * the CORE text. A prefix alone (\"Write a news item about:\") is not something\n * to send — with the affixes applied, an empty core read as non-empty and an\n * idle tick paid for a model call on the prefix.\n */\nconst withoutAffixes = (data: Record<string, unknown>): Record<string, unknown> => ({ ...data, promptPrefix: undefined, promptSuffix: undefined })\n\nexport interface NodeSendTextArgs {\n /** A list fan-out item (highest precedence). */\n override?: string\n /** The text wired into the node's main text input. */\n wired?: string\n /** llm-chat only: the text wired into `system-prompt`. */\n wiredSystemPrompt?: string\n refMap: ReadonlyMap<string, string>\n}\n\nconst present = (s?: string): s is string => typeof s === \"string\" && s.trim().length > 0\n\n/**\n * ai-writer's user input — the rule its sync-HTTP body applies: a fan-out\n * item, else the wired text, else the typed `userInput`, else the legacy\n * `prompt`. (ai-writer is renamed to llm-chat on load; saved graphs that\n * never reloaded still run it.)\n */\nexport function computeAiWriterInput(\n data: Record<string, unknown>,\n { override, wired }: Pick<NodeSendTextArgs, \"override\" | \"wired\">,\n): string {\n return [override, wired, data.userInput as string | undefined, data.prompt as string | undefined].find(present) ?? \"\"\n}\n\n/**\n * The text a text-requiring node would send, by the SAME rule its executor\n * uses (`computeLlmChatFields`, `computeScriptTopic`, `computeNodePrompt`,\n * `computeAiWriterInput`) — so \"would this node run on nothing?\" is answered\n * by the function that decides what it sends, not by a second reading of it.\n * Undefined for any other node type.\n */\nexport function computeNodeSendText(\n nodeType: string,\n data: Record<string, unknown>,\n args: NodeSendTextArgs,\n): string | undefined {\n const bare = withoutAffixes(data)\n switch (nodeType) {\n case \"llm-chat\":\n return computeLlmChatFields(bare, {\n override: args.override,\n wiredUserInput: args.wired,\n wiredSystemPrompt: args.wiredSystemPrompt,\n refMap: args.refMap,\n }).userInput\n case \"ai-writer\":\n return computeAiWriterInput(bare, args)\n case \"generate-script\":\n return computeScriptTopic(bare, { override: args.override, wired: args.wired, refMap: args.refMap })\n case \"generate-music\": {\n // A music node sings typed lyrics with no prompt; only both empty is nothing to send.\n const prompt = computeNodePrompt(nodeType, bare, { override: args.override, wired: args.wired, refMap: args.refMap })\n return present(prompt) ? prompt : present(data.lyrics as string | undefined) ? (data.lyrics as string) : \"\"\n }\n case \"text-to-speech\":\n case \"text-to-audio\":\n case \"generate-image\":\n return computeNodePrompt(nodeType, bare, { override: args.override, wired: args.wired, refMap: args.refMap })\n case \"collection-write\": {\n // The record's content: the item (a fan-out row, else what reached `in`),\n // else a title, text or link typed on the node. A picture alone is a\n // record too, but it never starves the node: only a wired TEXT input that\n // produced nothing can (the skip rule's precondition).\n // A typed field counts as the engines send it, its `{Node}` references\n // resolved: `{Feed || }` over a feed with nothing new is empty, so the\n // node skips instead of failing with an empty record (#1890).\n const typed = [data.title, data.text, data.link]\n .map((v) => (typeof v === \"string\" ? resolveNodeRefs(v, args.refMap) : v))\n .find((v): v is string => present(v as string | undefined))\n return [args.override, args.wired, typed].find(present) ?? \"\"\n }\n default:\n return undefined\n }\n}\n"]}
|
|
@@ -11,8 +11,8 @@ var models = require('@nodaro/shared/models');
|
|
|
11
11
|
var video = require('@nodaro/shared/video');
|
|
12
12
|
|
|
13
13
|
// src/ref-binding.ts
|
|
14
|
-
function identityRefsSentence(firstOrdinal, lastOrdinal) {
|
|
15
|
-
return firstOrdinal === lastOrdinal ? `${
|
|
14
|
+
function identityRefsSentence(firstOrdinal, lastOrdinal, ordinal = REF_BINDING.ordinal) {
|
|
15
|
+
return firstOrdinal === lastOrdinal ? `${ordinal(firstOrdinal)} is an identity reference for this shot's subjects \u2014 match its subject's exact appearance; it is not a frame.` : `${ordinal(firstOrdinal)} through ${ordinal(lastOrdinal)} are identity references for this shot's subjects \u2014 match each subject's exact appearance; they are not frames.`;
|
|
16
16
|
}
|
|
17
17
|
var REF_BINDING = {
|
|
18
18
|
image: (label, n) => `the ${label} from @image_${n}`,
|
|
@@ -22,6 +22,14 @@ var REF_BINDING = {
|
|
|
22
22
|
ordinal: (n) => `@image_${n}`,
|
|
23
23
|
frame: (n, role) => `Use @image_${n} as the ${role} (${role === "opening" ? "first" : "last"}) frame of the video.`
|
|
24
24
|
};
|
|
25
|
+
function imageBindingFor(syntax) {
|
|
26
|
+
if (syntax === "@image_N") return { ordinal: REF_BINDING.ordinal, frame: REF_BINDING.frame };
|
|
27
|
+
const ordinal = syntax === "@image(n)" ? (n) => `@image(${n})` : (n) => `[Image ${n}]`;
|
|
28
|
+
return {
|
|
29
|
+
ordinal,
|
|
30
|
+
frame: (n, role) => `Use ${ordinal(n)} as the ${role} (${role === "opening" ? "first" : "last"}) frame of the video.`
|
|
31
|
+
};
|
|
32
|
+
}
|
|
25
33
|
var SEEDANCE_VIDEO_EDIT_PREFIX = "edit {video:1} as follows:\n";
|
|
26
34
|
function buildSeedanceVideoEditPrompt(prompt) {
|
|
27
35
|
const body = (prompt ?? "").trim();
|
|
@@ -765,15 +773,50 @@ function composeVideoPromptText(userPrompt, direction, structured, opts) {
|
|
|
765
773
|
}
|
|
766
774
|
return body;
|
|
767
775
|
}
|
|
776
|
+
|
|
777
|
+
// src/frame-reference-slots.ts
|
|
778
|
+
function placeFramesAfterReferences(args) {
|
|
779
|
+
const refs = (args.refImageUrls ?? []).filter((u) => typeof u === "string" && u.trim().length > 0);
|
|
780
|
+
const frameCount = (args.firstFrameUrl ? 1 : 0) + (args.lastFrameUrl ? 1 : 0);
|
|
781
|
+
const kept = refs.slice(0, Math.max(0, args.imageCap - frameCount));
|
|
782
|
+
const droppedRefImages = refs.length - kept.length;
|
|
783
|
+
const imageUrls = [...kept];
|
|
784
|
+
let firstFrameOrdinal = 0;
|
|
785
|
+
let lastFrameOrdinal = 0;
|
|
786
|
+
if (args.firstFrameUrl) {
|
|
787
|
+
imageUrls.push(args.firstFrameUrl);
|
|
788
|
+
firstFrameOrdinal = imageUrls.length;
|
|
789
|
+
}
|
|
790
|
+
if (args.lastFrameUrl) {
|
|
791
|
+
imageUrls.push(args.lastFrameUrl);
|
|
792
|
+
lastFrameOrdinal = imageUrls.length;
|
|
793
|
+
}
|
|
794
|
+
const syntax = args.syntax ?? "@image_N";
|
|
795
|
+
const binding = imageBindingFor(syntax);
|
|
796
|
+
const promptBindsStart = syntax === "@image_N" && promptBindsFirstFrame(args.prompt);
|
|
797
|
+
let frameSentence = "";
|
|
798
|
+
if (promptBindsStart && firstFrameOrdinal > 0 && lastFrameOrdinal === 0) ; else if (firstFrameOrdinal > 0 && lastFrameOrdinal > 0) {
|
|
799
|
+
frameSentence = `Use ${binding.ordinal(firstFrameOrdinal)} as the opening (first) frame and ${binding.ordinal(lastFrameOrdinal)} as the closing (last) frame of the video.`;
|
|
800
|
+
} else if (firstFrameOrdinal > 0) {
|
|
801
|
+
frameSentence = binding.frame(firstFrameOrdinal, "opening");
|
|
802
|
+
} else if (lastFrameOrdinal > 0) {
|
|
803
|
+
frameSentence = binding.frame(lastFrameOrdinal, "closing");
|
|
804
|
+
}
|
|
805
|
+
const identitySentence = args.bindIdentities && kept.length > 0 && frameCount > 0 ? identityRefsSentence(1, kept.length, binding.ordinal) : "";
|
|
806
|
+
const promptSuffix = [frameSentence, identitySentence].filter(Boolean).join(" ");
|
|
807
|
+
return { imageUrls, promptSuffix, droppedRefImages, firstFrameOrdinal, lastFrameOrdinal };
|
|
808
|
+
}
|
|
809
|
+
function promptBindsFirstFrame(prompt) {
|
|
810
|
+
if (!prompt) return false;
|
|
811
|
+
return /@image_\d+\s+as\s+the\s+(first|opening)\s*(\(first\))?\s*frame/i.test(prompt);
|
|
812
|
+
}
|
|
813
|
+
|
|
814
|
+
// src/seedance-2-inputs.ts
|
|
768
815
|
var clean = (u) => {
|
|
769
816
|
const t = u?.trim();
|
|
770
817
|
return t && t.length > 0 ? t : void 0;
|
|
771
818
|
};
|
|
772
819
|
var cleanList = (xs) => (xs ?? []).map(clean).filter((x) => x !== void 0);
|
|
773
|
-
function promptBindsFirstFrame(prompt) {
|
|
774
|
-
if (!prompt) return false;
|
|
775
|
-
return /@image_\d+\s+as\s+the\s+(first|opening)\s*(\(first\))?\s*frame/i.test(prompt);
|
|
776
|
-
}
|
|
777
820
|
function resolveSeedance2Inputs(args) {
|
|
778
821
|
const limits = args.limits ?? models.SEEDANCE_2_REF_LIMITS;
|
|
779
822
|
const firstFrameUrl = clean(args.firstFrameUrl);
|
|
@@ -789,30 +832,16 @@ function resolveSeedance2Inputs(args) {
|
|
|
789
832
|
}
|
|
790
833
|
return { mode: "first-frame", firstFrameUrl, lastFrameUrl: void 0, referenceImageUrls: [], referenceVideoUrls: [], referenceAudioUrls: [], promptSuffix: "", droppedRefImages: 0 };
|
|
791
834
|
}
|
|
792
|
-
const
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
}
|
|
803
|
-
if (lastFrameUrl) {
|
|
804
|
-
referenceImageUrls.push(lastFrameUrl);
|
|
805
|
-
lastOrdinal = referenceImageUrls.length;
|
|
806
|
-
}
|
|
807
|
-
let promptSuffix = "";
|
|
808
|
-
const suppressFrameSentence = promptBindsFirstFrame(args.prompt);
|
|
809
|
-
if (suppressFrameSentence && firstOrdinal > 0 && lastOrdinal === 0) ; else if (firstOrdinal > 0 && lastOrdinal > 0) {
|
|
810
|
-
promptSuffix = `Use ${REF_BINDING.ordinal(firstOrdinal)} as the opening (first) frame and ${REF_BINDING.ordinal(lastOrdinal)} as the closing (last) frame of the video.`;
|
|
811
|
-
} else if (firstOrdinal > 0) {
|
|
812
|
-
promptSuffix = REF_BINDING.frame(firstOrdinal, "opening");
|
|
813
|
-
} else if (lastOrdinal > 0) {
|
|
814
|
-
promptSuffix = REF_BINDING.frame(lastOrdinal, "closing");
|
|
815
|
-
}
|
|
835
|
+
const placed = placeFramesAfterReferences({
|
|
836
|
+
prompt: args.prompt,
|
|
837
|
+
firstFrameUrl,
|
|
838
|
+
lastFrameUrl,
|
|
839
|
+
refImageUrls: refImages,
|
|
840
|
+
imageCap: limits.images
|
|
841
|
+
});
|
|
842
|
+
const referenceImageUrls = placed.imageUrls;
|
|
843
|
+
const promptSuffix = placed.promptSuffix;
|
|
844
|
+
const droppedRefImages = placed.droppedRefImages;
|
|
816
845
|
return {
|
|
817
846
|
mode: "reference",
|
|
818
847
|
firstFrameUrl: void 0,
|
|
@@ -829,16 +858,18 @@ function geminiOmniInputSlots(provider) {
|
|
|
829
858
|
return models.VIDEO_REF_LIMITS_BY_PROVIDER[provider ?? DEFAULT_GEMINI_OMNI_PROVIDER]?.images ?? 7;
|
|
830
859
|
}
|
|
831
860
|
function resolveGeminiOmniI2vInputs(args) {
|
|
832
|
-
const refs = (args.refImageUrls ?? []).filter((u) => typeof u === "string" && u.length > 0);
|
|
833
861
|
const slots = geminiOmniInputSlots(args.provider) - (args.videoConnected ? 2 : 0);
|
|
834
|
-
const
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
862
|
+
const placed = placeFramesAfterReferences({
|
|
863
|
+
prompt: args.prompt,
|
|
864
|
+
firstFrameUrl: args.firstFrameUrl,
|
|
865
|
+
refImageUrls: args.refImageUrls,
|
|
866
|
+
imageCap: Math.max(1, slots),
|
|
867
|
+
bindIdentities: true
|
|
868
|
+
});
|
|
869
|
+
if (placed.imageUrls.length === 1) {
|
|
870
|
+
return { imageUrls: placed.imageUrls, promptSuffix: "", droppedRefImages: placed.droppedRefImages };
|
|
871
|
+
}
|
|
872
|
+
return { imageUrls: placed.imageUrls, promptSuffix: placed.promptSuffix, droppedRefImages: placed.droppedRefImages };
|
|
842
873
|
}
|
|
843
874
|
|
|
844
875
|
// src/veo-i2v-inputs.ts
|
|
@@ -853,15 +884,20 @@ function resolveVeoI2vInputs(args) {
|
|
|
853
884
|
droppedEndFrame: false
|
|
854
885
|
};
|
|
855
886
|
}
|
|
856
|
-
const
|
|
857
|
-
|
|
858
|
-
|
|
887
|
+
const placed = placeFramesAfterReferences({
|
|
888
|
+
prompt: args.prompt,
|
|
889
|
+
firstFrameUrl: args.firstFrameUrl,
|
|
890
|
+
lastFrameUrl: args.endFrameUrl,
|
|
891
|
+
refImageUrls: refs,
|
|
892
|
+
imageCap: VEO_INGREDIENT_SLOTS,
|
|
893
|
+
bindIdentities: true
|
|
894
|
+
});
|
|
859
895
|
return {
|
|
860
|
-
imageUrls:
|
|
896
|
+
imageUrls: placed.imageUrls,
|
|
861
897
|
generationType: "REFERENCE_2_VIDEO",
|
|
862
|
-
promptSuffix:
|
|
863
|
-
droppedRefImages,
|
|
864
|
-
droppedEndFrame:
|
|
898
|
+
promptSuffix: placed.promptSuffix,
|
|
899
|
+
droppedRefImages: placed.droppedRefImages,
|
|
900
|
+
droppedEndFrame: false
|
|
865
901
|
};
|
|
866
902
|
}
|
|
867
903
|
|
|
@@ -941,6 +977,8 @@ exports.composeSoundHintFromConnections = composeSoundHintFromConnections;
|
|
|
941
977
|
exports.composeVideoPromptText = composeVideoPromptText;
|
|
942
978
|
exports.getEffectiveSunoCustomMode = getEffectiveSunoCustomMode;
|
|
943
979
|
exports.identityRefsSentence = identityRefsSentence;
|
|
980
|
+
exports.imageBindingFor = imageBindingFor;
|
|
981
|
+
exports.placeFramesAfterReferences = placeFramesAfterReferences;
|
|
944
982
|
exports.planFrameDelivery = planFrameDelivery;
|
|
945
983
|
exports.promptBindsFirstFrame = promptBindsFirstFrame;
|
|
946
984
|
exports.resolveGeminiOmniI2vInputs = resolveGeminiOmniI2vInputs;
|
|
@@ -950,5 +988,5 @@ exports.resolveSeedance2Inputs = resolveSeedance2Inputs;
|
|
|
950
988
|
exports.resolveVeoI2vInputs = resolveVeoI2vInputs;
|
|
951
989
|
exports.resolveVideoReferenceCore = resolveVideoReferenceCore;
|
|
952
990
|
exports.truncateForField = truncateForField;
|
|
953
|
-
//# sourceMappingURL=chunk-
|
|
954
|
-
//# sourceMappingURL=chunk-
|
|
991
|
+
//# sourceMappingURL=chunk-C3NHNECH.cjs.map
|
|
992
|
+
//# sourceMappingURL=chunk-C3NHNECH.cjs.map
|