@nodaro/shared 3.59.0 → 3.60.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-QE7W4YIK.cjs → chunk-5G23AJBU.cjs} +6 -6
- package/dist/{chunk-QE7W4YIK.cjs.map → chunk-5G23AJBU.cjs.map} +1 -1
- package/dist/{chunk-DKZGLIFW.cjs → chunk-5HK5Z5OB.cjs} +4 -4
- package/dist/{chunk-DKZGLIFW.cjs.map → chunk-5HK5Z5OB.cjs.map} +1 -1
- package/dist/{chunk-RSXQOFM7.cjs → chunk-5Y42RIGY.cjs} +8 -8
- package/dist/{chunk-RSXQOFM7.cjs.map → chunk-5Y42RIGY.cjs.map} +1 -1
- package/dist/{chunk-FHCMYGBV.js → chunk-6AJOTEVC.js} +3 -3
- package/dist/{chunk-FHCMYGBV.js.map → chunk-6AJOTEVC.js.map} +1 -1
- package/dist/{chunk-ZVUVSD5X.js → chunk-6Q6SI7AG.js} +3 -3
- package/dist/{chunk-ZVUVSD5X.js.map → chunk-6Q6SI7AG.js.map} +1 -1
- package/dist/{chunk-V3NONYLA.cjs → chunk-A6HRY3WF.cjs} +269 -18
- package/dist/chunk-A6HRY3WF.cjs.map +1 -0
- package/dist/{chunk-D574HZ35.cjs → chunk-AXT7YNOR.cjs} +51 -51
- package/dist/{chunk-D574HZ35.cjs.map → chunk-AXT7YNOR.cjs.map} +1 -1
- package/dist/{chunk-TA7ODVYJ.js → chunk-AZGONXWV.js} +4 -4
- package/dist/{chunk-TA7ODVYJ.js.map → chunk-AZGONXWV.js.map} +1 -1
- package/dist/{chunk-OFL4UH6L.cjs → chunk-BDXXOEBZ.cjs} +80 -57
- package/dist/chunk-BDXXOEBZ.cjs.map +1 -0
- package/dist/{chunk-NSZTHJZJ.cjs → chunk-BGIJO5V4.cjs} +39 -39
- package/dist/{chunk-NSZTHJZJ.cjs.map → chunk-BGIJO5V4.cjs.map} +1 -1
- package/dist/{chunk-NZRG5CXQ.cjs → chunk-BLJUCPMV.cjs} +5 -2
- package/dist/chunk-BLJUCPMV.cjs.map +1 -0
- package/dist/{chunk-NHZWVKGV.cjs → chunk-BXNPO3PL.cjs} +8 -8
- package/dist/{chunk-NHZWVKGV.cjs.map → chunk-BXNPO3PL.cjs.map} +1 -1
- package/dist/{chunk-UPD7W2KJ.cjs → chunk-CIOXUPCJ.cjs} +12 -12
- package/dist/{chunk-UPD7W2KJ.cjs.map → chunk-CIOXUPCJ.cjs.map} +1 -1
- package/dist/{chunk-YE4EDT57.cjs → chunk-DQIJPDHC.cjs} +11 -11
- package/dist/{chunk-YE4EDT57.cjs.map → chunk-DQIJPDHC.cjs.map} +1 -1
- package/dist/{chunk-UMPZR56R.js → chunk-DS2TOM32.js} +3 -3
- package/dist/{chunk-UMPZR56R.js.map → chunk-DS2TOM32.js.map} +1 -1
- package/dist/{chunk-YSEJOJNQ.js → chunk-EN2YI5TV.js} +3 -3
- package/dist/{chunk-YSEJOJNQ.js.map → chunk-EN2YI5TV.js.map} +1 -1
- package/dist/{chunk-ZU56AMFK.js → chunk-G6GMY5BC.js} +20 -4
- package/dist/chunk-G6GMY5BC.js.map +1 -0
- package/dist/chunk-G7ZYZQKO.cjs +27 -0
- package/dist/{chunk-6VXDW2U3.cjs.map → chunk-G7ZYZQKO.cjs.map} +1 -1
- package/dist/{chunk-PEATSEAD.cjs → chunk-GNPJ2JLE.cjs} +6 -6
- package/dist/{chunk-PEATSEAD.cjs.map → chunk-GNPJ2JLE.cjs.map} +1 -1
- package/dist/{chunk-VLQW4CVW.cjs → chunk-GWBQ3GPO.cjs} +41 -21
- package/dist/chunk-GWBQ3GPO.cjs.map +1 -0
- package/dist/{chunk-P7KSB5T6.cjs → chunk-HDHLZK7C.cjs} +5 -5
- package/dist/{chunk-P7KSB5T6.cjs.map → chunk-HDHLZK7C.cjs.map} +1 -1
- package/dist/{chunk-QLLR7GUY.cjs → chunk-HNEF2N5C.cjs} +5 -5
- package/dist/{chunk-QLLR7GUY.cjs.map → chunk-HNEF2N5C.cjs.map} +1 -1
- package/dist/{chunk-7JM5EZF3.cjs → chunk-HOKWJXHA.cjs} +13 -13
- package/dist/{chunk-7JM5EZF3.cjs.map → chunk-HOKWJXHA.cjs.map} +1 -1
- package/dist/{chunk-RGBNOCIO.js → chunk-ICDLYU4I.js} +9 -9
- package/dist/{chunk-RGBNOCIO.js.map → chunk-ICDLYU4I.js.map} +1 -1
- package/dist/{chunk-FJCRWDU5.js → chunk-IV6IDECY.js} +4 -4
- package/dist/{chunk-FJCRWDU5.js.map → chunk-IV6IDECY.js.map} +1 -1
- package/dist/{chunk-PIX4OCCQ.js → chunk-JKZVRKN3.js} +36 -14
- package/dist/chunk-JKZVRKN3.js.map +1 -0
- package/dist/{chunk-MTXVODG3.js → chunk-KJZVQIN4.js} +3 -3
- package/dist/{chunk-MTXVODG3.js.map → chunk-KJZVQIN4.js.map} +1 -1
- package/dist/{chunk-2VQHPILW.js → chunk-KOLC7AF2.js} +262 -19
- package/dist/chunk-KOLC7AF2.js.map +1 -0
- package/dist/{chunk-IP7QOHWQ.js → chunk-LN3EVFRS.js} +5 -5
- package/dist/{chunk-IP7QOHWQ.js.map → chunk-LN3EVFRS.js.map} +1 -1
- package/dist/{chunk-EO4W4MA3.js → chunk-MHY47BLL.js} +4 -4
- package/dist/{chunk-EO4W4MA3.js.map → chunk-MHY47BLL.js.map} +1 -1
- package/dist/{chunk-AWS4BWEC.js → chunk-Q6IES3U2.js} +5 -2
- package/dist/chunk-Q6IES3U2.js.map +1 -0
- package/dist/{chunk-62RC6K62.cjs → chunk-RRPPXZ36.cjs} +4 -4
- package/dist/{chunk-62RC6K62.cjs.map → chunk-RRPPXZ36.cjs.map} +1 -1
- package/dist/{chunk-3R2KVYXN.js → chunk-SCYBGTX6.js} +3 -3
- package/dist/{chunk-3R2KVYXN.js.map → chunk-SCYBGTX6.js.map} +1 -1
- package/dist/{chunk-K4L4G76I.cjs → chunk-SKFJIFEV.cjs} +21 -21
- package/dist/{chunk-K4L4G76I.cjs.map → chunk-SKFJIFEV.cjs.map} +1 -1
- package/dist/{chunk-2S7YYCRT.js → chunk-TZ42IVSF.js} +4 -4
- package/dist/{chunk-2S7YYCRT.js.map → chunk-TZ42IVSF.js.map} +1 -1
- package/dist/{chunk-PIEMWFSJ.js → chunk-URLDVK67.js} +3 -3
- package/dist/{chunk-PIEMWFSJ.js.map → chunk-URLDVK67.js.map} +1 -1
- package/dist/{chunk-IOET54EV.js → chunk-VB2ARGQ6.js} +35 -3
- package/dist/chunk-VB2ARGQ6.js.map +1 -0
- package/dist/{chunk-VOZI5F7V.js → chunk-VYQ25YQF.js} +3 -3
- package/dist/{chunk-VOZI5F7V.js.map → chunk-VYQ25YQF.js.map} +1 -1
- package/dist/{chunk-QSWUSXRL.cjs → chunk-WGKAOUEQ.cjs} +41 -2
- package/dist/chunk-WGKAOUEQ.cjs.map +1 -0
- package/dist/{chunk-ORJ5HQAB.js → chunk-YHVEZVAO.js} +4 -4
- package/dist/{chunk-ORJ5HQAB.js.map → chunk-YHVEZVAO.js.map} +1 -1
- package/dist/entries/apps.cjs +43 -43
- package/dist/entries/apps.js +8 -8
- package/dist/entries/credits.cjs +155 -151
- package/dist/entries/credits.d.cts +32 -3
- package/dist/entries/credits.d.ts +32 -3
- package/dist/entries/credits.js +8 -8
- package/dist/entries/llm-models.d.cts +1 -1
- package/dist/entries/llm-models.d.ts +1 -1
- package/dist/entries/model-catalog.cjs +144 -84
- package/dist/entries/model-catalog.d.cts +4 -47
- package/dist/entries/model-catalog.d.ts +4 -47
- package/dist/entries/model-catalog.js +5 -5
- package/dist/entries/models.cjs +305 -289
- package/dist/entries/models.d.cts +3 -3
- package/dist/entries/models.d.ts +3 -3
- package/dist/entries/models.js +4 -4
- package/dist/entries/nodes.cjs +208 -208
- package/dist/entries/nodes.d.cts +1 -1
- package/dist/entries/nodes.d.ts +1 -1
- package/dist/entries/nodes.js +10 -10
- package/dist/entries/pipeline.cjs +152 -152
- package/dist/entries/pipeline.d.cts +1 -1
- package/dist/entries/pipeline.d.ts +1 -1
- package/dist/entries/pipeline.js +3 -3
- package/dist/entries/ugc.cjs +71 -71
- package/dist/entries/ugc.js +4 -4
- package/dist/entries/video.cjs +117 -117
- package/dist/entries/video.js +4 -4
- package/dist/entries/workflow.cjs +147 -147
- package/dist/entries/workflow.d.cts +8 -0
- package/dist/entries/workflow.d.ts +8 -0
- package/dist/entries/workflow.js +2 -2
- package/dist/gpt-image-2-6-BeZdT-pW.d.cts +98 -0
- package/dist/gpt-image-2-6-BeZdT-pW.d.ts +98 -0
- package/dist/index.cjs +1314 -1234
- package/dist/index.d.cts +5 -4
- package/dist/index.d.ts +5 -4
- package/dist/index.js +20 -20
- package/dist/{model-catalog-QJ_AO9l0.d.cts → model-catalog-D6Es7VG-.d.cts} +56 -2
- package/dist/{model-catalog-QJ_AO9l0.d.ts → model-catalog-D6Es7VG-.d.ts} +56 -2
- package/dist/{model-constants-BwBdh6Rn.d.ts → model-constants-22k3fjp1.d.cts} +16 -1
- package/dist/{model-constants-BwBdh6Rn.d.cts → model-constants-22k3fjp1.d.ts} +16 -1
- package/package.json +1 -1
- package/src/__tests__/gpt-image-2-6-formats.test.ts +171 -0
- package/src/credit-identifiers.ts +63 -3
- package/src/entries/credits.ts +1 -0
- package/src/entries/model-catalog.ts +17 -0
- package/src/entries/models.ts +6 -0
- package/src/gpt-image-2-6.ts +72 -0
- package/src/model-catalog.ts +336 -13
- package/src/model-constants.ts +33 -0
- package/src/node-execution-state.ts +8 -0
- package/src/node-runtime-keys.ts +3 -0
- package/dist/chunk-2VQHPILW.js.map +0 -1
- package/dist/chunk-6VXDW2U3.cjs +0 -27
- package/dist/chunk-AWS4BWEC.js.map +0 -1
- package/dist/chunk-IOET54EV.js.map +0 -1
- package/dist/chunk-NZRG5CXQ.cjs.map +0 -1
- package/dist/chunk-OFL4UH6L.cjs.map +0 -1
- package/dist/chunk-PIX4OCCQ.js.map +0 -1
- package/dist/chunk-QSWUSXRL.cjs.map +0 -1
- package/dist/chunk-V3NONYLA.cjs.map +0 -1
- package/dist/chunk-VLQW4CVW.cjs.map +0 -1
- package/dist/chunk-ZU56AMFK.js.map +0 -1
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkBLJUCPMV_cjs = require('./chunk-BLJUCPMV.cjs');
|
|
4
4
|
var chunkYWNYGYI7_cjs = require('./chunk-YWNYGYI7.cjs');
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
5
|
+
var chunkRRPPXZ36_cjs = require('./chunk-RRPPXZ36.cjs');
|
|
6
|
+
var chunk5Y42RIGY_cjs = require('./chunk-5Y42RIGY.cjs');
|
|
7
|
+
var chunk5HK5Z5OB_cjs = require('./chunk-5HK5Z5OB.cjs');
|
|
8
8
|
var chunkPONP5J5E_cjs = require('./chunk-PONP5J5E.cjs');
|
|
9
9
|
var chunkKU6S7IYV_cjs = require('./chunk-KU6S7IYV.cjs');
|
|
10
|
-
var
|
|
11
|
-
var
|
|
12
|
-
var
|
|
10
|
+
var chunkBDXXOEBZ_cjs = require('./chunk-BDXXOEBZ.cjs');
|
|
11
|
+
var chunkGWBQ3GPO_cjs = require('./chunk-GWBQ3GPO.cjs');
|
|
12
|
+
var chunkA6HRY3WF_cjs = require('./chunk-A6HRY3WF.cjs');
|
|
13
13
|
var chunkR2VF5NQG_cjs = require('./chunk-R2VF5NQG.cjs');
|
|
14
14
|
var chunkWNVQ3SMB_cjs = require('./chunk-WNVQ3SMB.cjs');
|
|
15
15
|
var zod = require('zod');
|
|
@@ -90,8 +90,8 @@ var VIDEO_SETTINGS = ["aspect-ratio", "duration", "provider", "motion"];
|
|
|
90
90
|
var SETTINGS_CONSUMERS = {
|
|
91
91
|
"generate-video": {
|
|
92
92
|
accepts: VIDEO_SETTINGS,
|
|
93
|
-
models:
|
|
94
|
-
defaultModel:
|
|
93
|
+
models: chunkGWBQ3GPO_cjs.VIDEO_GEN_PROVIDERS,
|
|
94
|
+
defaultModel: chunkGWBQ3GPO_cjs.DEFAULT_VIDEO_PROVIDER,
|
|
95
95
|
duration: "model"
|
|
96
96
|
},
|
|
97
97
|
// Generate Video Pro has Generate Video's handles by construction
|
|
@@ -99,17 +99,17 @@ var SETTINGS_CONSUMERS = {
|
|
|
99
99
|
// settings; its own models and its own duration rule.
|
|
100
100
|
"generate-video-pro": {
|
|
101
101
|
accepts: VIDEO_SETTINGS,
|
|
102
|
-
models:
|
|
103
|
-
defaultModel:
|
|
102
|
+
models: chunkGWBQ3GPO_cjs.GVP_SUPPORTED_PROVIDERS,
|
|
103
|
+
defaultModel: chunkGWBQ3GPO_cjs.GVP_DEFAULT_PROVIDER,
|
|
104
104
|
duration: "total"
|
|
105
105
|
},
|
|
106
106
|
// A still image has no length, so no Duration.
|
|
107
107
|
"generate-image": {
|
|
108
108
|
accepts: ["aspect-ratio", "provider"],
|
|
109
|
-
models:
|
|
109
|
+
models: chunkGWBQ3GPO_cjs.IMAGE_GEN_PROVIDERS,
|
|
110
110
|
// The node's own default (NODE_DEFINITIONS) — only used to fit a wired
|
|
111
111
|
// ratio when the node names no model.
|
|
112
|
-
defaultModel:
|
|
112
|
+
defaultModel: chunkRRPPXZ36_cjs.IMAGE_MODEL_ROLE_DEFAULTS.general,
|
|
113
113
|
modelList: "providers"
|
|
114
114
|
}
|
|
115
115
|
};
|
|
@@ -164,8 +164,8 @@ function connectedSettingsSources(consumerId, consumerType, edges, typeOf) {
|
|
|
164
164
|
return out;
|
|
165
165
|
}
|
|
166
166
|
function snapToModelDuration(model, seconds) {
|
|
167
|
-
const durations =
|
|
168
|
-
if (!durations || durations.length === 0 ||
|
|
167
|
+
const durations = chunkA6HRY3WF_cjs.MODEL_CATALOG[model]?.durations;
|
|
168
|
+
if (!durations || durations.length === 0 || chunkA6HRY3WF_cjs.isAutoVideoDuration(seconds)) return seconds;
|
|
169
169
|
let best = durations[0];
|
|
170
170
|
for (const d of durations) {
|
|
171
171
|
const closer = Math.abs(d - seconds) < Math.abs(best - seconds);
|
|
@@ -194,7 +194,7 @@ function applySettingsInput(consumerType, consumerId, data, edges, typeOf) {
|
|
|
194
194
|
if (Number.isFinite(seconds)) next = { ...next, duration: snapToModelDuration(model, seconds) };
|
|
195
195
|
}
|
|
196
196
|
if (connected.some((c) => c.sourceType === "aspect-ratio") && typeof next.aspectRatio === "string") {
|
|
197
|
-
next = { ...next, aspectRatio:
|
|
197
|
+
next = { ...next, aspectRatio: chunkA6HRY3WF_cjs.fitAspectRatioToModel(model, next.aspectRatio) };
|
|
198
198
|
}
|
|
199
199
|
return { data: next };
|
|
200
200
|
}
|
|
@@ -325,7 +325,7 @@ var SCRIPT_TARGET_DURATION_RANGE = { min: 5, max: 600 };
|
|
|
325
325
|
var SCRIPT_SCENE_COUNT_DEFAULT = 5;
|
|
326
326
|
var SCRIPT_TARGET_DURATION_DEFAULT = 60;
|
|
327
327
|
var SCRIPT_TONE_MAX_LENGTH = 200;
|
|
328
|
-
var SCRIPT_STYLE_GUIDE_MAX_LENGTH =
|
|
328
|
+
var SCRIPT_STYLE_GUIDE_MAX_LENGTH = chunkGWBQ3GPO_cjs.LLM_TEXT_INPUT_MAX;
|
|
329
329
|
function clampInt(value, range) {
|
|
330
330
|
const n = typeof value === "number" ? value : typeof value === "string" && value.trim().length > 0 ? Number(value) : Number.NaN;
|
|
331
331
|
if (!Number.isFinite(n)) return void 0;
|
|
@@ -337,7 +337,7 @@ function clampText(value, max) {
|
|
|
337
337
|
return text.length > 0 ? text.slice(0, max) : void 0;
|
|
338
338
|
}
|
|
339
339
|
function readScriptSettings(data, refMap) {
|
|
340
|
-
const styleGuide = typeof data.styleGuide === "string" && refMap && refMap.size > 0 ?
|
|
340
|
+
const styleGuide = typeof data.styleGuide === "string" && refMap && refMap.size > 0 ? chunkBLJUCPMV_cjs.resolveNodeRefs(data.styleGuide, refMap) : data.styleGuide;
|
|
341
341
|
return {
|
|
342
342
|
sceneCount: clampInt(data.sceneCount, SCRIPT_SCENE_COUNT_RANGE),
|
|
343
343
|
// The panel's own fields (the ones a mapping writes) come first. `style` is
|
|
@@ -392,10 +392,10 @@ var LEGACY_JSON_OUTPUT_KINDS = Object.freeze({
|
|
|
392
392
|
// clip tickets, the sized plan), and UGC Cards' layer plan and caption plan.
|
|
393
393
|
// Their text pips (category, transcript, report) are not JSON pips. The pip an
|
|
394
394
|
// edge with no `sourceHandle` reads is the UGC wires' own (UGC_PRIMARY_HANDLE).
|
|
395
|
-
"ugc-creator": { primary:
|
|
396
|
-
"ugc-script": { primary:
|
|
397
|
-
"ugc-clips": { primary:
|
|
398
|
-
"ugc-cards": { primary:
|
|
395
|
+
"ugc-creator": { primary: chunk5HK5Z5OB_cjs.UGC_PRIMARY_HANDLE["ugc-creator"], pips: { creator: "other" } },
|
|
396
|
+
"ugc-script": { primary: chunk5HK5Z5OB_cjs.UGC_PRIMARY_HANDLE["ugc-script"], pips: { plan: "other" } },
|
|
397
|
+
"ugc-clips": { primary: chunk5HK5Z5OB_cjs.UGC_PRIMARY_HANDLE["ugc-clips"], pips: { clips: "other", "plan-out": "other" } },
|
|
398
|
+
"ugc-cards": { primary: chunk5HK5Z5OB_cjs.UGC_PRIMARY_HANDLE["ugc-cards"], pips: { layerPlan: "other", captionPlan: "other" } }
|
|
399
399
|
});
|
|
400
400
|
var JSON_OUTPUT_KINDS = Object.freeze(composeJsonOutputs(LEGACY_JSON_OUTPUT_KINDS, chunkPONP5J5E_cjs.unitJsonPips()));
|
|
401
401
|
function composeJsonOutputs(legacy, rows) {
|
|
@@ -411,12 +411,12 @@ var JSON_INPUT_KINDS = Object.freeze({
|
|
|
411
411
|
edl: "edl"
|
|
412
412
|
});
|
|
413
413
|
var own = (table, key) => Object.hasOwn(table, key) ? table[key] : void 0;
|
|
414
|
-
function declaredJsonOutput(nodeType, sourceHandle, renders =
|
|
414
|
+
function declaredJsonOutput(nodeType, sourceHandle, renders = chunk5Y42RIGY_cjs.RENDER_NODE_TYPES) {
|
|
415
415
|
if (typeof nodeType !== "string") return void 0;
|
|
416
416
|
const render = own(renders, nodeType);
|
|
417
417
|
if (render) {
|
|
418
|
-
const pip2 = sourceHandle ??
|
|
419
|
-
if (pip2 ===
|
|
418
|
+
const pip2 = sourceHandle ?? chunk5Y42RIGY_cjs.RENDER_JSON_HANDLE;
|
|
419
|
+
if (pip2 === chunk5Y42RIGY_cjs.RENDER_JSON_HANDLE) return render.jsonKind;
|
|
420
420
|
return pip2 === render.transcriptOutput.handle ? "transcript" : void 0;
|
|
421
421
|
}
|
|
422
422
|
const outputs = own(JSON_OUTPUT_KINDS, nodeType);
|
|
@@ -429,14 +429,14 @@ function declaredJsonOutputRows() {
|
|
|
429
429
|
([type, o]) => Object.entries(o.pips).map(([pip, kind]) => [type, pip, kind])
|
|
430
430
|
);
|
|
431
431
|
}
|
|
432
|
-
function jsonOutputKind(nodeType, sourceHandle, renders =
|
|
432
|
+
function jsonOutputKind(nodeType, sourceHandle, renders = chunk5Y42RIGY_cjs.RENDER_NODE_TYPES) {
|
|
433
433
|
const declared = declaredJsonOutput(nodeType, sourceHandle, renders);
|
|
434
434
|
return declared === "other" ? void 0 : declared;
|
|
435
435
|
}
|
|
436
436
|
function jsonInputKind(_nodeType, targetHandle) {
|
|
437
437
|
return typeof targetHandle === "string" ? own(JSON_INPUT_KINDS, targetHandle) : void 0;
|
|
438
438
|
}
|
|
439
|
-
function jsonKindMismatch(sourceType, sourceHandle, targetType, targetHandle, renders =
|
|
439
|
+
function jsonKindMismatch(sourceType, sourceHandle, targetType, targetHandle, renders = chunk5Y42RIGY_cjs.RENDER_NODE_TYPES) {
|
|
440
440
|
const input = jsonInputKind(targetType, targetHandle);
|
|
441
441
|
if (!input) return null;
|
|
442
442
|
const output = jsonOutputKind(sourceType, sourceHandle, renders);
|
|
@@ -452,7 +452,7 @@ function jsonKindMismatchMessage(mismatch, labels = {}) {
|
|
|
452
452
|
}
|
|
453
453
|
|
|
454
454
|
// src/preview-gate.ts
|
|
455
|
-
var PREVIEW_RENDER_NODE_TYPES = new Set(
|
|
455
|
+
var PREVIEW_RENDER_NODE_TYPES = new Set(chunk5Y42RIGY_cjs.RENDER_NODE_TYPE_IDS);
|
|
456
456
|
var REVIEW_HOLDING_USE_CASE_TYPES = new Set(chunkPONP5J5E_cjs.unitReviewHolds());
|
|
457
457
|
function isPreviewHoldingType(type) {
|
|
458
458
|
return PREVIEW_RENDER_NODE_TYPES.has(type ?? "") || REVIEW_HOLDING_USE_CASE_TYPES.has(type ?? "");
|
|
@@ -497,7 +497,7 @@ var outputModeOf = (edge) => {
|
|
|
497
497
|
return typeof mode === "string" ? mode : void 0;
|
|
498
498
|
};
|
|
499
499
|
function readsEach(render, consumerEdge, renderHandle) {
|
|
500
|
-
return (outputModeOf(consumerEdge) ??
|
|
500
|
+
return (outputModeOf(consumerEdge) ?? chunk5Y42RIGY_cjs.defaultEdgeOutputMode(render.type, renderHandle)) === "each";
|
|
501
501
|
}
|
|
502
502
|
function savedPreviewConsumers(render, children, nodeById, edges, reader) {
|
|
503
503
|
const data = dataOf(render);
|
|
@@ -533,7 +533,7 @@ function previewStops(nodes, edges, run = {}) {
|
|
|
533
533
|
return !!n && dataOf(n).skipped !== true;
|
|
534
534
|
});
|
|
535
535
|
const reader = run.savedRenders ?? SAVED_RENDER_STAMPS;
|
|
536
|
-
const { children } =
|
|
536
|
+
const { children } = chunkBLJUCPMV_cjs.buildFeedMaps(nodes, edges);
|
|
537
537
|
const previewRenderIds = [];
|
|
538
538
|
const savedPreviewRenderIds = [];
|
|
539
539
|
const seeds = [];
|
|
@@ -589,7 +589,7 @@ function withRunOverrides(nodes, overrides) {
|
|
|
589
589
|
const data = withoutRunOnlyFields(saved);
|
|
590
590
|
const fields = overrides?.[n.id];
|
|
591
591
|
if (!fields) return data === saved ? n : { ...n, data };
|
|
592
|
-
const merged =
|
|
592
|
+
const merged = chunk5Y42RIGY_cjs.mergeNodeInputOverrides(n.type ?? void 0, { ...data }, { ...fields });
|
|
593
593
|
for (const key of RUN_OVERRIDE_CLEARED_FIELDS) delete merged[key];
|
|
594
594
|
return { ...n, data: merged };
|
|
595
595
|
});
|
|
@@ -653,8 +653,8 @@ function loneMediaUrlKind(value) {
|
|
|
653
653
|
var MESSAGE_TRIGGER_TYPES = /* @__PURE__ */ new Set(["telegram-trigger", "telegram-account-trigger"]);
|
|
654
654
|
function isLoneMediaLinkSource(nodeType) {
|
|
655
655
|
if (!nodeType) return false;
|
|
656
|
-
if (
|
|
657
|
-
if (
|
|
656
|
+
if (chunk5Y42RIGY_cjs.IMAGE_PRODUCER_TYPES.has(nodeType) || chunk5Y42RIGY_cjs.VIDEO_PRODUCER_TYPES.has(nodeType) || chunk5Y42RIGY_cjs.AUDIO_PRODUCER_TYPES.has(nodeType)) return false;
|
|
657
|
+
if (chunk5Y42RIGY_cjs.DYNAMIC_PRODUCER_TYPES.has(nodeType) || MESSAGE_TRIGGER_TYPES.has(nodeType)) return false;
|
|
658
658
|
if (chunkWNVQ3SMB_cjs.ENTITY_NODE_KINDS.includes(nodeType) || nodeType === "face") return false;
|
|
659
659
|
return true;
|
|
660
660
|
}
|
|
@@ -906,9 +906,9 @@ function captionPlanPassThrough(input) {
|
|
|
906
906
|
|
|
907
907
|
// src/transcribe-preflight.ts
|
|
908
908
|
function transcribeWordTimestampsRefusal(provider) {
|
|
909
|
-
const lane = provider ||
|
|
910
|
-
if (
|
|
911
|
-
return `the "${lane}" engine does not return word timings \u2014 pick ${
|
|
909
|
+
const lane = provider || chunkGWBQ3GPO_cjs.DEFAULT_TRANSCRIBE_NODE_PROVIDER;
|
|
910
|
+
if (chunkGWBQ3GPO_cjs.transcribeLaneSupportsWordTimestamps(lane)) return null;
|
|
911
|
+
return `the "${lane}" engine does not return word timings \u2014 pick ${chunkGWBQ3GPO_cjs.transcribeProvidersWithWordTimestamps().join(" or ")}`;
|
|
912
912
|
}
|
|
913
913
|
var TRANSCRIBE_JSON_OUT = "json";
|
|
914
914
|
var TRANSCRIPT_IN = "transcript";
|
|
@@ -918,7 +918,7 @@ function findWordlessTranscriptFeeds(nodes, edges) {
|
|
|
918
918
|
const out = [];
|
|
919
919
|
for (const node of nodes) {
|
|
920
920
|
if (node.type !== "transcribe" || isSkipped(node)) continue;
|
|
921
|
-
const provider = typeof node.data?.provider === "string" && node.data.provider ||
|
|
921
|
+
const provider = typeof node.data?.provider === "string" && node.data.provider || chunkGWBQ3GPO_cjs.DEFAULT_TRANSCRIBE_NODE_PROVIDER;
|
|
922
922
|
const refusal = transcribeWordTimestampsRefusal(provider);
|
|
923
923
|
if (!refusal) continue;
|
|
924
924
|
const seen = /* @__PURE__ */ new Set();
|
|
@@ -937,7 +937,7 @@ function findWordlessTranscriptFeeds(nodes, edges) {
|
|
|
937
937
|
message: `Captions need word timings, but ${refusal}.`
|
|
938
938
|
});
|
|
939
939
|
} else if (!seen.has(target.id)) {
|
|
940
|
-
const remapped =
|
|
940
|
+
const remapped = chunk5Y42RIGY_cjs.renderTranscriptOutputOf(target.type);
|
|
941
941
|
if (remapped) {
|
|
942
942
|
seen.add(target.id);
|
|
943
943
|
frontier.push({ id: target.id, outHandle: remapped.handle });
|
|
@@ -985,8 +985,8 @@ function normalizeNodeModelParams(nodes) {
|
|
|
985
985
|
if (multi.length > 1) return node;
|
|
986
986
|
const provider = typeof d.provider === "string" ? d.provider : typeof multi[0] === "string" ? multi[0] : void 0;
|
|
987
987
|
if (!provider) return node;
|
|
988
|
-
const deferAuto = AUTO_ASPECT_AT_RUN_NODE_TYPES.has(type) && (type === "generate-image" ?
|
|
989
|
-
const normalized =
|
|
988
|
+
const deferAuto = AUTO_ASPECT_AT_RUN_NODE_TYPES.has(type) && (type === "generate-image" ? chunkBDXXOEBZ_cjs.imageGenAutoAspectNeedsSourceImage({ provider, aspectRatio: d.aspectRatio }) : chunkA6HRY3WF_cjs.autoAspectNeedsSourceImage(provider, d.aspectRatio));
|
|
989
|
+
const normalized = chunkA6HRY3WF_cjs.normalizeModelInput(provider, {
|
|
990
990
|
aspectRatio: !deferAuto && typeof d.aspectRatio === "string" ? d.aspectRatio : void 0,
|
|
991
991
|
resolution: typeof d.resolution === "string" ? d.resolution : void 0,
|
|
992
992
|
quality: typeof d.quality === "string" ? d.quality : void 0
|
|
@@ -1032,7 +1032,7 @@ function readPromptAffixes(data) {
|
|
|
1032
1032
|
|
|
1033
1033
|
// src/node-preset-extract.ts
|
|
1034
1034
|
var PRESET_APPLY_CLEAR_KEYS = [
|
|
1035
|
-
...
|
|
1035
|
+
...chunkGWBQ3GPO_cjs.COMPOSER_PLAN_FIELDS,
|
|
1036
1036
|
"lottieUrl",
|
|
1037
1037
|
// Scene revision history contains old plans and their reference/prompt context.
|
|
1038
1038
|
// Preserve it in workflows, never capture or resurrect it through a preset.
|
|
@@ -1108,7 +1108,7 @@ var PRESET_EXCLUDED_KEYS = /* @__PURE__ */ new Set([
|
|
|
1108
1108
|
function extractPresetData(data, nodeType) {
|
|
1109
1109
|
const out = {};
|
|
1110
1110
|
for (const key of Object.keys(data)) {
|
|
1111
|
-
if (
|
|
1111
|
+
if (chunkBLJUCPMV_cjs.isExecutionDataKey(key, nodeType)) continue;
|
|
1112
1112
|
if (PRESET_EXCLUDED_KEYS.has(key)) continue;
|
|
1113
1113
|
out[key] = data[key];
|
|
1114
1114
|
}
|
|
@@ -1288,7 +1288,7 @@ function renderPlanPath(renderId, nodes, edges) {
|
|
|
1288
1288
|
edge = teleportInput(node.id);
|
|
1289
1289
|
continue;
|
|
1290
1290
|
}
|
|
1291
|
-
const mode = outputModeOf2(consumer.data) ??
|
|
1291
|
+
const mode = outputModeOf2(consumer.data) ?? chunk5Y42RIGY_cjs.defaultEdgeOutputMode(node.type, edge.sourceHandle);
|
|
1292
1292
|
hops.unshift({ edge: consumer, each: mode === "each", ...node.type ? { source: node.type } : {} });
|
|
1293
1293
|
if (node.type === "edit-plan") return { planId: node.id, hops };
|
|
1294
1294
|
if (!EDL_PASS_THROUGH_TYPES.has(node.type ?? "")) return void 0;
|
|
@@ -1310,10 +1310,10 @@ function singlePick(clips, hop) {
|
|
|
1310
1310
|
const mode = outputModeOf2(hop.edge.data);
|
|
1311
1311
|
if (mode === "item") {
|
|
1312
1312
|
const expr = typeof data?.itemIndex === "string" ? data.itemIndex : "1";
|
|
1313
|
-
return [clips[
|
|
1313
|
+
return [clips[chunkBLJUCPMV_cjs.resolveIndex(expr, clips.length)] ?? clips[0]];
|
|
1314
1314
|
}
|
|
1315
1315
|
if (mode?.startsWith("item:")) return [clips[parseInt(mode.slice(5), 10)] ?? clips[0]];
|
|
1316
|
-
if (mode === "all") return
|
|
1316
|
+
if (mode === "all") return chunkBLJUCPMV_cjs.selectListItems(clips, data);
|
|
1317
1317
|
if (hop.source === "edit-plan") return keptClips(clips).slice(0, 1);
|
|
1318
1318
|
return clips.length === 1 ? clips : [];
|
|
1319
1319
|
}
|
|
@@ -1323,7 +1323,7 @@ function renderPlanValue(plan, row, hops = []) {
|
|
|
1323
1323
|
for (const [i, hop] of hops.entries()) {
|
|
1324
1324
|
if (clips.length === 0) return void 0;
|
|
1325
1325
|
if (hop.each) {
|
|
1326
|
-
clips =
|
|
1326
|
+
clips = chunkBLJUCPMV_cjs.selectListItems(clips, hop.edge.data);
|
|
1327
1327
|
if (i < hops.length - 1) clips = keptClips(clips);
|
|
1328
1328
|
} else {
|
|
1329
1329
|
clips = singlePick(clips, hop);
|
|
@@ -1354,7 +1354,7 @@ function renderLoneRow(renderId, nodes, edges, batchOf) {
|
|
|
1354
1354
|
const path = renderPlanPath(renderId, nodes, edges);
|
|
1355
1355
|
if (!path || path.hops.length < 2) return void 0;
|
|
1356
1356
|
const last = path.hops[path.hops.length - 1];
|
|
1357
|
-
if (!last.each || !
|
|
1357
|
+
if (!last.each || !chunkBLJUCPMV_cjs.isDefaultSelectorConfig(last.edge.data)) return void 0;
|
|
1358
1358
|
const passId = path.hops[path.hops.length - 2].edge.target;
|
|
1359
1359
|
const passNode = nodes.find((n) => n.id === passId);
|
|
1360
1360
|
const batch = passNode ? batchOf(passNode) : void 0;
|
|
@@ -1566,8 +1566,8 @@ var IDENTITY_TYPES_FOR_CLASSIFIER = /* @__PURE__ */ new Set([
|
|
|
1566
1566
|
"creature",
|
|
1567
1567
|
"location"
|
|
1568
1568
|
]);
|
|
1569
|
-
var VIDEO_SOURCE_TYPES_FOR_CLASSIFIER =
|
|
1570
|
-
var AUDIO_SOURCE_TYPES_FOR_CLASSIFIER = /* @__PURE__ */ new Set([...
|
|
1569
|
+
var VIDEO_SOURCE_TYPES_FOR_CLASSIFIER = chunk5Y42RIGY_cjs.VIDEO_PRODUCER_TYPES;
|
|
1570
|
+
var AUDIO_SOURCE_TYPES_FOR_CLASSIFIER = /* @__PURE__ */ new Set([...chunk5Y42RIGY_cjs.AUDIO_PRODUCER_TYPES, "youtube-video"]);
|
|
1571
1571
|
var DUAL_MODE_REVOICE_TARGETS = /* @__PURE__ */ new Set(["voice-changer", "voice-changer-pro", "dubbing"]);
|
|
1572
1572
|
function classifyLegacyTargetHandle(targetType, handle, sourceType, sentHandle = handle) {
|
|
1573
1573
|
if (!targetType) return handle;
|
|
@@ -1811,5 +1811,5 @@ exports.transcribeWordTimestampsRefusal = transcribeWordTimestampsRefusal;
|
|
|
1811
1811
|
exports.videoOverlayPassThrough = videoOverlayPassThrough;
|
|
1812
1812
|
exports.withRunOverrides = withRunOverrides;
|
|
1813
1813
|
exports.withWiredSettings = withWiredSettings;
|
|
1814
|
-
//# sourceMappingURL=chunk-
|
|
1815
|
-
//# sourceMappingURL=chunk-
|
|
1814
|
+
//# sourceMappingURL=chunk-AXT7YNOR.cjs.map
|
|
1815
|
+
//# sourceMappingURL=chunk-AXT7YNOR.cjs.map
|