@nodaro/shared 3.50.0 → 3.51.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-XQBBBQZH.cjs → chunk-25OWMP6B.cjs} +47 -47
- package/dist/{chunk-XQBBBQZH.cjs.map → chunk-25OWMP6B.cjs.map} +1 -1
- package/dist/{chunk-T4EBNTKT.js → chunk-2LNQ2MDO.js} +3 -3
- package/dist/{chunk-T4EBNTKT.js.map → chunk-2LNQ2MDO.js.map} +1 -1
- package/dist/{chunk-HPT244UT.cjs → chunk-34EXMNOX.cjs} +9 -7
- package/dist/chunk-34EXMNOX.cjs.map +1 -0
- package/dist/{chunk-HLPRXII4.cjs → chunk-3APO7ABM.cjs} +3 -3
- package/dist/{chunk-HLPRXII4.cjs.map → chunk-3APO7ABM.cjs.map} +1 -1
- package/dist/{chunk-7VDPBFER.cjs → chunk-3M4BNKFJ.cjs} +32 -2
- package/dist/chunk-3M4BNKFJ.cjs.map +1 -0
- package/dist/{chunk-D33YBZ3B.cjs → chunk-5M43XMRB.cjs} +8 -8
- package/dist/{chunk-D33YBZ3B.cjs.map → chunk-5M43XMRB.cjs.map} +1 -1
- package/dist/{chunk-QZANEGZ3.cjs → chunk-66GADQRV.cjs} +21 -21
- package/dist/{chunk-QZANEGZ3.cjs.map → chunk-66GADQRV.cjs.map} +1 -1
- package/dist/{chunk-KOVIMPZS.js → chunk-6CVY3345.js} +3 -3
- package/dist/{chunk-KOVIMPZS.js.map → chunk-6CVY3345.js.map} +1 -1
- package/dist/{chunk-DZOCFLMK.js → chunk-6LCZPDIF.js} +3 -3
- package/dist/{chunk-DZOCFLMK.js.map → chunk-6LCZPDIF.js.map} +1 -1
- package/dist/{chunk-QLCSS6DK.js → chunk-7FCTCWHD.js} +3 -3
- package/dist/{chunk-QLCSS6DK.js.map → chunk-7FCTCWHD.js.map} +1 -1
- package/dist/{chunk-BQSXEU3O.cjs → chunk-7HWXJIQ6.cjs} +4 -4
- package/dist/{chunk-BQSXEU3O.cjs.map → chunk-7HWXJIQ6.cjs.map} +1 -1
- package/dist/{chunk-2JUNYRMS.cjs → chunk-7YFQKR5C.cjs} +21 -21
- package/dist/{chunk-2JUNYRMS.cjs.map → chunk-7YFQKR5C.cjs.map} +1 -1
- package/dist/{chunk-ML7Q2LTB.js → chunk-A24LLEXS.js} +9 -6
- package/dist/chunk-A24LLEXS.js.map +1 -0
- package/dist/{chunk-6TL7JMVF.js → chunk-AJFQ5242.js} +5 -5
- package/dist/{chunk-6TL7JMVF.js.map → chunk-AJFQ5242.js.map} +1 -1
- package/dist/{chunk-AENQLVQH.js → chunk-AJPV3RZJ.js} +5 -5
- package/dist/{chunk-AENQLVQH.js.map → chunk-AJPV3RZJ.js.map} +1 -1
- package/dist/{chunk-NEJ2PV4C.cjs → chunk-ANMCMSGR.cjs} +6 -3
- package/dist/chunk-ANMCMSGR.cjs.map +1 -0
- package/dist/{chunk-U6BDA2CX.cjs → chunk-AVUW7XKP.cjs} +16 -16
- package/dist/{chunk-U6BDA2CX.cjs.map → chunk-AVUW7XKP.cjs.map} +1 -1
- package/dist/{chunk-HCZYIYKK.js → chunk-BG5272F5.js} +4 -4
- package/dist/{chunk-HCZYIYKK.js.map → chunk-BG5272F5.js.map} +1 -1
- package/dist/{chunk-NU6UR5RI.cjs → chunk-CSPELPDB.cjs} +8 -8
- package/dist/{chunk-NU6UR5RI.cjs.map → chunk-CSPELPDB.cjs.map} +1 -1
- package/dist/{chunk-MFM7XRFO.js → chunk-DSSPAET7.js} +3 -3
- package/dist/{chunk-MFM7XRFO.js.map → chunk-DSSPAET7.js.map} +1 -1
- package/dist/{chunk-P4QT7JGD.cjs → chunk-FBLMWA2R.cjs} +13 -13
- package/dist/{chunk-P4QT7JGD.cjs.map → chunk-FBLMWA2R.cjs.map} +1 -1
- package/dist/{chunk-X62EMX7Y.js → chunk-FIROF3TM.js} +5 -5
- package/dist/{chunk-X62EMX7Y.js.map → chunk-FIROF3TM.js.map} +1 -1
- package/dist/{chunk-27LQR7DO.js → chunk-FRXVOYL2.js} +6 -4
- package/dist/chunk-FRXVOYL2.js.map +1 -0
- package/dist/{chunk-2BHOAYZW.js → chunk-FVII3KHN.js} +32 -2
- package/dist/chunk-FVII3KHN.js.map +1 -0
- package/dist/{chunk-VCHWYREY.js → chunk-GL5Z3CC4.js} +3 -3
- package/dist/{chunk-VCHWYREY.js.map → chunk-GL5Z3CC4.js.map} +1 -1
- package/dist/chunk-H7HKLN2W.cjs +27 -0
- package/dist/{chunk-QIXL2ZLX.cjs.map → chunk-H7HKLN2W.cjs.map} +1 -1
- package/dist/{chunk-WPT5ZTA2.js → chunk-HZL7QMXK.js} +17 -4
- package/dist/chunk-HZL7QMXK.js.map +1 -0
- package/dist/{chunk-TZBIY5C3.js → chunk-IB5B3EBD.js} +6 -3
- package/dist/chunk-IB5B3EBD.js.map +1 -0
- package/dist/{chunk-DDTA6X2S.cjs → chunk-IJ6XNHSD.cjs} +10 -10
- package/dist/{chunk-DDTA6X2S.cjs.map → chunk-IJ6XNHSD.cjs.map} +1 -1
- package/dist/{chunk-NGT2FYP2.cjs → chunk-J3HPEKGJ.cjs} +9 -6
- package/dist/chunk-J3HPEKGJ.cjs.map +1 -0
- package/dist/{chunk-HSJU5KNR.cjs → chunk-J4CVGAAV.cjs} +17 -4
- package/dist/chunk-J4CVGAAV.cjs.map +1 -0
- package/dist/{chunk-FV43YJ5I.js → chunk-JAD2SBD4.js} +4 -4
- package/dist/{chunk-FV43YJ5I.js.map → chunk-JAD2SBD4.js.map} +1 -1
- package/dist/{chunk-WAUWKYLF.js → chunk-JAGYUDOK.js} +3 -3
- package/dist/{chunk-WAUWKYLF.js.map → chunk-JAGYUDOK.js.map} +1 -1
- package/dist/{chunk-77R3HYOE.js → chunk-JZJRD7RG.js} +6 -6
- package/dist/{chunk-77R3HYOE.js.map → chunk-JZJRD7RG.js.map} +1 -1
- package/dist/{chunk-UDYFWB7D.cjs → chunk-MI63SSCJ.cjs} +4 -4
- package/dist/{chunk-UDYFWB7D.cjs.map → chunk-MI63SSCJ.cjs.map} +1 -1
- package/dist/{chunk-TA5MZZKE.cjs → chunk-MI6CZQCG.cjs} +45 -45
- package/dist/{chunk-TA5MZZKE.cjs.map → chunk-MI6CZQCG.cjs.map} +1 -1
- package/dist/{chunk-HNBJP2IR.js → chunk-OWVWV4T2.js} +3 -3
- package/dist/{chunk-HNBJP2IR.js.map → chunk-OWVWV4T2.js.map} +1 -1
- package/dist/{chunk-TMXFL6RC.cjs → chunk-QBXC3AXS.cjs} +12 -12
- package/dist/{chunk-TMXFL6RC.cjs.map → chunk-QBXC3AXS.cjs.map} +1 -1
- package/dist/{chunk-FEPSSBD5.cjs → chunk-SRLWSI6Q.cjs} +5 -5
- package/dist/{chunk-FEPSSBD5.cjs.map → chunk-SRLWSI6Q.cjs.map} +1 -1
- package/dist/{chunk-GIU37YMD.js → chunk-TRZMLQSL.js} +3 -3
- package/dist/{chunk-GIU37YMD.js.map → chunk-TRZMLQSL.js.map} +1 -1
- package/dist/{chunk-PSAWDKO3.cjs → chunk-TWF2OSH4.cjs} +4 -4
- package/dist/{chunk-PSAWDKO3.cjs.map → chunk-TWF2OSH4.cjs.map} +1 -1
- package/dist/{chunk-6GTTATPR.cjs → chunk-VLNOQJDO.cjs} +6 -6
- package/dist/{chunk-6GTTATPR.cjs.map → chunk-VLNOQJDO.cjs.map} +1 -1
- package/dist/{chunk-DPUIJHM7.cjs → chunk-VNHX6TQT.cjs} +5 -5
- package/dist/{chunk-DPUIJHM7.cjs.map → chunk-VNHX6TQT.cjs.map} +1 -1
- package/dist/{chunk-JGCGLHZL.js → chunk-VSNQLSME.js} +3 -3
- package/dist/{chunk-JGCGLHZL.js.map → chunk-VSNQLSME.js.map} +1 -1
- package/dist/{chunk-26L7NHK4.js → chunk-WBPJNXYN.js} +4 -4
- package/dist/{chunk-26L7NHK4.js.map → chunk-WBPJNXYN.js.map} +1 -1
- package/dist/{chunk-S5CRPOYD.cjs → chunk-XRXPWW7P.cjs} +52 -52
- package/dist/chunk-XRXPWW7P.cjs.map +1 -0
- package/dist/{chunk-QBRTPVT6.js → chunk-YOH5AUYL.js} +10 -10
- package/dist/chunk-YOH5AUYL.js.map +1 -0
- package/dist/{chunk-BLZBDPZJ.js → chunk-ZES6EZC4.js} +3 -3
- package/dist/{chunk-BLZBDPZJ.js.map → chunk-ZES6EZC4.js.map} +1 -1
- package/dist/entries/apps.cjs +43 -43
- package/dist/entries/apps.d.cts +1 -1
- package/dist/entries/apps.d.ts +1 -1
- package/dist/entries/apps.js +8 -8
- package/dist/entries/credits.cjs +151 -151
- package/dist/entries/credits.d.cts +1 -1
- package/dist/entries/credits.d.ts +1 -1
- package/dist/entries/credits.js +8 -8
- package/dist/entries/llm-models.cjs +57 -57
- package/dist/entries/llm-models.d.cts +7 -0
- package/dist/entries/llm-models.d.ts +7 -0
- package/dist/entries/llm-models.js +2 -2
- package/dist/entries/media.cjs +55 -55
- package/dist/entries/media.d.cts +23 -5
- package/dist/entries/media.d.ts +23 -5
- package/dist/entries/media.js +1 -1
- package/dist/entries/model-catalog.cjs +66 -66
- package/dist/entries/model-catalog.d.cts +2 -2
- package/dist/entries/model-catalog.d.ts +2 -2
- package/dist/entries/model-catalog.js +4 -4
- package/dist/entries/models.cjs +277 -277
- package/dist/entries/models.d.cts +1 -1
- package/dist/entries/models.d.ts +1 -1
- package/dist/entries/models.js +5 -5
- package/dist/entries/nodes.cjs +208 -208
- package/dist/entries/nodes.d.cts +9 -6
- package/dist/entries/nodes.d.ts +9 -6
- package/dist/entries/nodes.js +10 -10
- package/dist/entries/pipeline.cjs +149 -149
- package/dist/entries/pipeline.js +3 -3
- package/dist/entries/social.cjs +177 -177
- package/dist/entries/social.js +2 -2
- package/dist/entries/ugc.cjs +71 -71
- package/dist/entries/ugc.js +4 -4
- package/dist/entries/video.cjs +141 -141
- package/dist/entries/video.d.cts +1 -1
- package/dist/entries/video.d.ts +1 -1
- package/dist/entries/video.js +5 -5
- package/dist/entries/workflow.cjs +146 -146
- package/dist/entries/workflow.d.cts +13 -0
- package/dist/entries/workflow.d.ts +13 -0
- package/dist/entries/workflow.js +2 -2
- package/dist/index.cjs +1511 -1511
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +24 -24
- package/dist/{model-catalog-Ciqsc0ha.d.ts → model-catalog-Dm2UiwUe.d.cts} +4 -3
- package/dist/{model-catalog-Ciqsc0ha.d.cts → model-catalog-Dm2UiwUe.d.ts} +4 -3
- package/package.json +1 -1
- package/src/__tests__/llm-models.test.ts +18 -0
- package/src/__tests__/model-makers.test.ts +10 -0
- package/src/__tests__/model-tree.test.ts +5 -4
- package/src/__tests__/node-runtime-keys.test.ts +11 -0
- package/src/__tests__/preview-gate-use-case.test.ts +6 -0
- package/src/__tests__/template-categories.test.ts +9 -3
- package/src/llm-models.ts +37 -0
- package/src/model-catalog.ts +11 -7
- package/src/node-execution-state.ts +13 -0
- package/src/node-runtime-keys.ts +13 -0
- package/src/preview-gate.ts +7 -4
- package/src/template-categories.ts +2 -0
- package/src/video-face-mesh.ts +24 -5
- package/src/video-link.ts +3 -0
- package/dist/chunk-27LQR7DO.js.map +0 -1
- package/dist/chunk-2BHOAYZW.js.map +0 -1
- package/dist/chunk-7VDPBFER.cjs.map +0 -1
- package/dist/chunk-HPT244UT.cjs.map +0 -1
- package/dist/chunk-HSJU5KNR.cjs.map +0 -1
- package/dist/chunk-ML7Q2LTB.js.map +0 -1
- package/dist/chunk-NEJ2PV4C.cjs.map +0 -1
- package/dist/chunk-NGT2FYP2.cjs.map +0 -1
- package/dist/chunk-QBRTPVT6.js.map +0 -1
- package/dist/chunk-QIXL2ZLX.cjs +0 -27
- package/dist/chunk-S5CRPOYD.cjs.map +0 -1
- package/dist/chunk-TZBIY5C3.js.map +0 -1
- package/dist/chunk-WPT5ZTA2.js.map +0 -1
package/src/llm-models.ts
CHANGED
|
@@ -26,6 +26,13 @@ const EFFORT_RANK: Record<LlmReasoningEffort, number> = { none: 0, low: 1, mediu
|
|
|
26
26
|
export interface LlmModelDef {
|
|
27
27
|
id: string
|
|
28
28
|
displayName: string
|
|
29
|
+
/**
|
|
30
|
+
* The product line a person thinks in and filters by ("Claude", "GPT",
|
|
31
|
+
* "Gemini") — the LLM twin of a catalog entry's `series`. REQUIRED, so a new
|
|
32
|
+
* model cannot ship without one; one line never spans two vendors (registry
|
|
33
|
+
* test).
|
|
34
|
+
*/
|
|
35
|
+
series: string
|
|
29
36
|
desc: string
|
|
30
37
|
tier: LlmTier
|
|
31
38
|
kieFormat: KieApiFormat
|
|
@@ -225,6 +232,7 @@ export const LLM_MODELS: readonly LlmModelDef[] = [
|
|
|
225
232
|
{
|
|
226
233
|
id: "gemini-3-flash",
|
|
227
234
|
displayName: "Gemini 3 Flash",
|
|
235
|
+
series: "Gemini",
|
|
228
236
|
desc: "Fast and cheap, good for simple tasks",
|
|
229
237
|
tier: "economy",
|
|
230
238
|
kieFormat: "chat-completions",
|
|
@@ -249,6 +257,7 @@ export const LLM_MODELS: readonly LlmModelDef[] = [
|
|
|
249
257
|
{
|
|
250
258
|
id: "gemini-3.6-flash",
|
|
251
259
|
displayName: "Gemini 3.6 Flash",
|
|
260
|
+
series: "Gemini",
|
|
252
261
|
// Demoted 2026-09-06 alongside 3.7: superlatives belong to the CURRENT top
|
|
253
262
|
// model of a family only, and 3.8 now holds that slot.
|
|
254
263
|
desc: "Fast Gemini, sharper reasoning",
|
|
@@ -290,6 +299,7 @@ export const LLM_MODELS: readonly LlmModelDef[] = [
|
|
|
290
299
|
{
|
|
291
300
|
id: "gemini-3.7-flash",
|
|
292
301
|
displayName: "Gemini 3.7 Flash",
|
|
302
|
+
series: "Gemini",
|
|
293
303
|
// Demoted 2026-09-06 when 3.8 registered below: superlatives belong to the
|
|
294
304
|
// CURRENT top model of a family only (same rule the Opus entries follow) —
|
|
295
305
|
// `desc` renders in every picker, so leaving "Newest" on the older flash
|
|
@@ -326,6 +336,7 @@ export const LLM_MODELS: readonly LlmModelDef[] = [
|
|
|
326
336
|
{
|
|
327
337
|
id: "gemini-3.8-flash",
|
|
328
338
|
displayName: "Gemini 3.8 Flash",
|
|
339
|
+
series: "Gemini",
|
|
329
340
|
// Inherits "Newest" from 3.7 (demoted above). Deliberately does NOT name
|
|
330
341
|
// agentic video: that capability exists only on the direct Google lane
|
|
331
342
|
// (Interactions API, not wired here) and the modality caps below withhold
|
|
@@ -371,6 +382,7 @@ export const LLM_MODELS: readonly LlmModelDef[] = [
|
|
|
371
382
|
{
|
|
372
383
|
id: "claude-haiku-4.5",
|
|
373
384
|
displayName: "Claude Haiku 4.5",
|
|
385
|
+
series: "Claude",
|
|
374
386
|
// Demoted 2026-10-10 when claude-haiku-5.5 registered.
|
|
375
387
|
desc: "Previous Haiku, fast economy",
|
|
376
388
|
tier: "economy",
|
|
@@ -388,6 +400,7 @@ export const LLM_MODELS: readonly LlmModelDef[] = [
|
|
|
388
400
|
{
|
|
389
401
|
id: "claude-haiku-5.5",
|
|
390
402
|
displayName: "Claude Haiku 5.5",
|
|
403
|
+
series: "Claude",
|
|
391
404
|
desc: "Latest Haiku, fast and low-cost with reasoning",
|
|
392
405
|
tier: "economy",
|
|
393
406
|
kieFormat: "messages",
|
|
@@ -431,6 +444,7 @@ export const LLM_MODELS: readonly LlmModelDef[] = [
|
|
|
431
444
|
{
|
|
432
445
|
id: "claude-sonnet-4.6",
|
|
433
446
|
displayName: "Claude Sonnet 4.6",
|
|
447
|
+
series: "Claude",
|
|
434
448
|
desc: "Balanced quality and speed",
|
|
435
449
|
tier: "standard",
|
|
436
450
|
kieFormat: "messages",
|
|
@@ -450,6 +464,7 @@ export const LLM_MODELS: readonly LlmModelDef[] = [
|
|
|
450
464
|
{
|
|
451
465
|
id: "gpt-5.2",
|
|
452
466
|
displayName: "GPT-5.2",
|
|
467
|
+
series: "GPT",
|
|
453
468
|
desc: "Strong general purpose",
|
|
454
469
|
tier: "standard",
|
|
455
470
|
kieFormat: "chat-completions",
|
|
@@ -461,6 +476,7 @@ export const LLM_MODELS: readonly LlmModelDef[] = [
|
|
|
461
476
|
{
|
|
462
477
|
id: "gemini-3.1-pro",
|
|
463
478
|
displayName: "Gemini 3.1 Pro",
|
|
479
|
+
series: "Gemini",
|
|
464
480
|
desc: "Advanced reasoning, large context",
|
|
465
481
|
tier: "premium",
|
|
466
482
|
kieFormat: "chat-completions",
|
|
@@ -501,6 +517,7 @@ export const LLM_MODELS: readonly LlmModelDef[] = [
|
|
|
501
517
|
{
|
|
502
518
|
id: "gemini-4-argon",
|
|
503
519
|
displayName: "Gemini 4 Argon",
|
|
520
|
+
series: "Gemini",
|
|
504
521
|
desc: "Newest premium Gemini, 1M context",
|
|
505
522
|
tier: "premium",
|
|
506
523
|
kieFormat: "chat-completions",
|
|
@@ -550,6 +567,7 @@ export const LLM_MODELS: readonly LlmModelDef[] = [
|
|
|
550
567
|
{
|
|
551
568
|
id: "claude-opus-4.7",
|
|
552
569
|
displayName: "Claude Opus 4.7",
|
|
570
|
+
series: "Claude",
|
|
553
571
|
// Superlatives belong to the CURRENT top model only — `desc` renders in every
|
|
554
572
|
// model picker, so leaving "highest quality" on an older Opus steers
|
|
555
573
|
// quality-critical work backwards (all three Opus entries bill premium, so
|
|
@@ -572,6 +590,7 @@ export const LLM_MODELS: readonly LlmModelDef[] = [
|
|
|
572
590
|
{
|
|
573
591
|
id: "gpt-5.4",
|
|
574
592
|
displayName: "GPT-5.4",
|
|
593
|
+
series: "GPT",
|
|
575
594
|
// Demoted 2026-09-06: two GPT generations have shipped above it, so
|
|
576
595
|
// "Latest" steered the picker at the oldest premium GPT in the registry.
|
|
577
596
|
desc: "Older GPT, premium quality",
|
|
@@ -587,6 +606,7 @@ export const LLM_MODELS: readonly LlmModelDef[] = [
|
|
|
587
606
|
{
|
|
588
607
|
id: "gpt-5.5",
|
|
589
608
|
displayName: "GPT-5.5",
|
|
609
|
+
series: "GPT",
|
|
590
610
|
desc: "Previous flagship GPT, deep reasoning",
|
|
591
611
|
tier: "premium",
|
|
592
612
|
kieFormat: "responses",
|
|
@@ -601,6 +621,7 @@ export const LLM_MODELS: readonly LlmModelDef[] = [
|
|
|
601
621
|
{
|
|
602
622
|
id: "gpt-5.6-luna",
|
|
603
623
|
displayName: "GPT-5.6 Luna",
|
|
624
|
+
series: "GPT",
|
|
604
625
|
desc: "Fastest GPT-5.6, high-volume workloads",
|
|
605
626
|
tier: "economy",
|
|
606
627
|
kieFormat: "responses",
|
|
@@ -615,6 +636,7 @@ export const LLM_MODELS: readonly LlmModelDef[] = [
|
|
|
615
636
|
{
|
|
616
637
|
id: "gpt-5.6-terra",
|
|
617
638
|
displayName: "GPT-5.6 Terra",
|
|
639
|
+
series: "GPT",
|
|
618
640
|
desc: "Balanced GPT-5.6 for production work",
|
|
619
641
|
tier: "standard",
|
|
620
642
|
kieFormat: "responses",
|
|
@@ -629,6 +651,7 @@ export const LLM_MODELS: readonly LlmModelDef[] = [
|
|
|
629
651
|
{
|
|
630
652
|
id: "gpt-5.6-sol",
|
|
631
653
|
displayName: "GPT-5.6 Sol",
|
|
654
|
+
series: "GPT",
|
|
632
655
|
// Demoted 2026-09-06 when gpt-6-astra registered below — "Flagship /
|
|
633
656
|
// deepest" is the current top GPT's copy only. Worded to stay distinct
|
|
634
657
|
// from gpt-5.5's "Previous flagship GPT, deep reasoning": all three read
|
|
@@ -663,6 +686,7 @@ export const LLM_MODELS: readonly LlmModelDef[] = [
|
|
|
663
686
|
{
|
|
664
687
|
id: "gpt-6-astra",
|
|
665
688
|
displayName: "GPT-6 Astra",
|
|
689
|
+
series: "GPT",
|
|
666
690
|
desc: "Flagship GPT-6, deepest reasoning",
|
|
667
691
|
tier: "premium",
|
|
668
692
|
kieFormat: "responses",
|
|
@@ -730,6 +754,7 @@ export const LLM_MODELS: readonly LlmModelDef[] = [
|
|
|
730
754
|
{
|
|
731
755
|
id: "gpt-6-luna",
|
|
732
756
|
displayName: "GPT-6 Luna",
|
|
757
|
+
series: "GPT",
|
|
733
758
|
desc: "Fastest GPT-6, high-volume workloads",
|
|
734
759
|
tier: "economy",
|
|
735
760
|
kieFormat: "responses",
|
|
@@ -745,6 +770,7 @@ export const LLM_MODELS: readonly LlmModelDef[] = [
|
|
|
745
770
|
{
|
|
746
771
|
id: "gpt-6-sol",
|
|
747
772
|
displayName: "GPT-6 Sol",
|
|
773
|
+
series: "GPT",
|
|
748
774
|
desc: "Strong GPT-6, deep reasoning at lower cost",
|
|
749
775
|
// Premium by decision (2026-10-08), not by unit cost — "Sol" is the
|
|
750
776
|
// deep-reasoning rung of the family, and gpt-5.6-sol bills premium too.
|
|
@@ -762,6 +788,7 @@ export const LLM_MODELS: readonly LlmModelDef[] = [
|
|
|
762
788
|
{
|
|
763
789
|
id: "gpt-6.1-sol",
|
|
764
790
|
displayName: "GPT-6.1 Sol",
|
|
791
|
+
series: "GPT",
|
|
765
792
|
// Measured slow: 30–76 s for 500–1,100 output tokens (2026-10-08), roughly
|
|
766
793
|
// twice gpt-6-sol on the same request — say so where the picker shows it.
|
|
767
794
|
desc: "Newest GPT-6 Sol, thorough but slower",
|
|
@@ -783,6 +810,7 @@ export const LLM_MODELS: readonly LlmModelDef[] = [
|
|
|
783
810
|
{
|
|
784
811
|
id: "grok-4.6",
|
|
785
812
|
displayName: "Grok 4.6",
|
|
813
|
+
series: "Grok",
|
|
786
814
|
// Demoted 2026-10-08 when grok-4.7 registered — the flagship copy moved up.
|
|
787
815
|
desc: "Previous Grok, strong reasoning",
|
|
788
816
|
tier: "standard",
|
|
@@ -813,6 +841,7 @@ export const LLM_MODELS: readonly LlmModelDef[] = [
|
|
|
813
841
|
{
|
|
814
842
|
id: "grok-4.7",
|
|
815
843
|
displayName: "Grok 4.7",
|
|
844
|
+
series: "Grok",
|
|
816
845
|
desc: "xAI flagship, strong reasoning",
|
|
817
846
|
tier: "standard",
|
|
818
847
|
kieFormat: "responses",
|
|
@@ -837,6 +866,7 @@ export const LLM_MODELS: readonly LlmModelDef[] = [
|
|
|
837
866
|
{
|
|
838
867
|
id: "claude-sonnet-5",
|
|
839
868
|
displayName: "Claude Sonnet 5",
|
|
869
|
+
series: "Claude",
|
|
840
870
|
// Demoted 2026-10-08 when claude-sonnet-5.5 registered.
|
|
841
871
|
desc: "Previous Sonnet, near-Opus quality",
|
|
842
872
|
tier: "standard",
|
|
@@ -856,6 +886,7 @@ export const LLM_MODELS: readonly LlmModelDef[] = [
|
|
|
856
886
|
{
|
|
857
887
|
id: "claude-sonnet-5.5",
|
|
858
888
|
displayName: "Claude Sonnet 5.5",
|
|
889
|
+
series: "Claude",
|
|
859
890
|
desc: "Latest Sonnet, near-Opus quality at Sonnet cost",
|
|
860
891
|
tier: "standard",
|
|
861
892
|
kieFormat: "messages",
|
|
@@ -888,6 +919,7 @@ export const LLM_MODELS: readonly LlmModelDef[] = [
|
|
|
888
919
|
{
|
|
889
920
|
id: "claude-opus-4.8",
|
|
890
921
|
displayName: "Claude Opus 4.8",
|
|
922
|
+
series: "Claude",
|
|
891
923
|
desc: "Previous-gen Opus, long-horizon work",
|
|
892
924
|
tier: "premium",
|
|
893
925
|
kieFormat: "messages",
|
|
@@ -906,6 +938,7 @@ export const LLM_MODELS: readonly LlmModelDef[] = [
|
|
|
906
938
|
{
|
|
907
939
|
id: "claude-opus-5",
|
|
908
940
|
displayName: "Claude Opus 5",
|
|
941
|
+
series: "Claude",
|
|
909
942
|
// Demoted 2026-10-08 when claude-opus-5.5 registered.
|
|
910
943
|
desc: "Previous Opus, deep agentic reasoning",
|
|
911
944
|
tier: "premium",
|
|
@@ -931,6 +964,7 @@ export const LLM_MODELS: readonly LlmModelDef[] = [
|
|
|
931
964
|
{
|
|
932
965
|
id: "claude-opus-5.5",
|
|
933
966
|
displayName: "Claude Opus 5.5",
|
|
967
|
+
series: "Claude",
|
|
934
968
|
// Positioned as Fable-class (decided 2026-10-08: offered wherever Fable is).
|
|
935
969
|
desc: "Latest Opus, frontier-class reasoning",
|
|
936
970
|
tier: "premium",
|
|
@@ -961,6 +995,7 @@ export const LLM_MODELS: readonly LlmModelDef[] = [
|
|
|
961
995
|
{
|
|
962
996
|
id: "claude-fable-5",
|
|
963
997
|
displayName: "Claude Fable 5",
|
|
998
|
+
series: "Claude",
|
|
964
999
|
desc: "Frontier Claude above Opus, hardest problems",
|
|
965
1000
|
tier: "premium",
|
|
966
1001
|
kieFormat: "messages",
|
|
@@ -987,6 +1022,7 @@ export const LLM_MODELS: readonly LlmModelDef[] = [
|
|
|
987
1022
|
{
|
|
988
1023
|
id: "kimi-k3",
|
|
989
1024
|
displayName: "Kimi K3",
|
|
1025
|
+
series: "Kimi",
|
|
990
1026
|
desc: "Moonshot flagship, 1M context, careful reasoning",
|
|
991
1027
|
tier: "premium",
|
|
992
1028
|
kieFormat: "responses",
|
|
@@ -1009,6 +1045,7 @@ export const LLM_MODELS: readonly LlmModelDef[] = [
|
|
|
1009
1045
|
{
|
|
1010
1046
|
id: "deepseek-v4.1-flash",
|
|
1011
1047
|
displayName: "DeepSeek V4.1 Flash",
|
|
1048
|
+
series: "DeepSeek",
|
|
1012
1049
|
desc: "Very cheap and fast, solid reasoning",
|
|
1013
1050
|
tier: "economy",
|
|
1014
1051
|
kieFormat: "responses",
|
package/src/model-catalog.ts
CHANGED
|
@@ -235,10 +235,11 @@ export interface ModelCatalogEntry {
|
|
|
235
235
|
* Model LINE for the add-node Models tab — the brand-agnostic product line a
|
|
236
236
|
* user thinks in ("Nano Banana", "Flux", "VEO", "Kling", "ElevenLabs").
|
|
237
237
|
* Distinct from `family` (the lab: Google covers Nano Banana + Imagen + VEO).
|
|
238
|
-
* REQUIRED
|
|
239
|
-
*
|
|
238
|
+
* REQUIRED on every entry, so every model can be filtered by its line. The
|
|
239
|
+
* Models tab lists only node-creatable models (`buildModelTree`), so a
|
|
240
|
+
* series on an entry with no node (AI Audit) never shows up there.
|
|
240
241
|
*/
|
|
241
|
-
series
|
|
242
|
+
series: string
|
|
242
243
|
/**
|
|
243
244
|
* The value written into the creating node's data field when this model is
|
|
244
245
|
* picked from the Models tab, for models whose catalog id differs from the
|
|
@@ -2964,10 +2965,11 @@ const VIDEO_MODELS: Record<string, ModelCatalogEntry> = {
|
|
|
2964
2965
|
// wired), applies video-verified corrections under guards, and returns a
|
|
2965
2966
|
// disclosed report of what was checked, fixed, and left open. These two
|
|
2966
2967
|
// rows exist for pricing/MCP-discovery visibility only — the node has no
|
|
2967
|
-
// model picker in V1, so
|
|
2968
|
-
//
|
|
2969
|
-
//
|
|
2970
|
-
//
|
|
2968
|
+
// model picker in V1, so their `modes` has no Models-tab mapping (see
|
|
2969
|
+
// model-tree.ts's MODE_TO_NODE) — they must never appear as selectable
|
|
2970
|
+
// "video-analysis" models. Their `series` ("AI Audit", their own line) only
|
|
2971
|
+
// names the line for filtering; the Models tab lists node-creatable models
|
|
2972
|
+
// alone, so it never surfaces them. Two credit families, chosen by
|
|
2971
2973
|
// whether an analysis is wired into the node; the structural formula lives
|
|
2972
2974
|
// in video-analysis-pricing.ts.
|
|
2973
2975
|
"video-audit": {
|
|
@@ -2977,6 +2979,7 @@ const VIDEO_MODELS: Record<string, ModelCatalogEntry> = {
|
|
|
2977
2979
|
family: "Nodaro",
|
|
2978
2980
|
maker: "nodaro",
|
|
2979
2981
|
label: "AI Audit",
|
|
2982
|
+
series: "AI Audit",
|
|
2980
2983
|
description: "Re-watches a clip against a wired analysis, applies video-verified corrections under guards, and returns a disclosed report of what changed. Billed per duration bucket.",
|
|
2981
2984
|
useCases: ["video-audit", "qa", "shot-list", "verification"],
|
|
2982
2985
|
pricing: [
|
|
@@ -2994,6 +2997,7 @@ const VIDEO_MODELS: Record<string, ModelCatalogEntry> = {
|
|
|
2994
2997
|
family: "Nodaro",
|
|
2995
2998
|
maker: "nodaro",
|
|
2996
2999
|
label: "AI Audit (with analysis run)",
|
|
3000
|
+
series: "AI Audit",
|
|
2997
3001
|
description: "Same video-verified audit as AI Audit, but auto-runs a fast analysis first when none is wired in, then applies corrections under guards and returns a disclosed report. Billed per duration bucket.",
|
|
2998
3002
|
useCases: ["video-audit", "qa", "shot-list", "verification", "auto-analysis"],
|
|
2999
3003
|
pricing: [
|
|
@@ -102,6 +102,19 @@ export interface NodeExecutionStateWire<TOutput = Record<string, unknown>> {
|
|
|
102
102
|
completedAt?: string | null
|
|
103
103
|
/** The node's job is parked in `pending_review`; `status` stays "running". */
|
|
104
104
|
awaitingReview?: boolean
|
|
105
|
+
/**
|
|
106
|
+
* The node's job is waiting for a free concurrency slot (the job's status is
|
|
107
|
+
* `queued`; `status` here stays "pending"). Present only while it waits, and
|
|
108
|
+
* only on the node state of a single-node job as the execution reads list
|
|
109
|
+
* it. Concurrency limits are not enforced in this release, so nothing waits
|
|
110
|
+
* for a slot yet and the key does not appear yet.
|
|
111
|
+
*/
|
|
112
|
+
queued?: true
|
|
113
|
+
/**
|
|
114
|
+
* With `queued`: whole seconds the job has waited, counted from when it
|
|
115
|
+
* first started waiting. Absent when that time cannot be read.
|
|
116
|
+
*/
|
|
117
|
+
waitedSeconds?: number
|
|
105
118
|
progress?: number
|
|
106
119
|
/** Present on a `skipped` node the RUN skipped (see {@link NodeSkipReason}); absent on a router-gated one. */
|
|
107
120
|
skipReason?: NodeSkipReason | (string & {})
|
package/src/node-runtime-keys.ts
CHANGED
|
@@ -36,6 +36,12 @@ export const EXECUTION_DATA_KEYS: ReadonlySet<string> = new Set([
|
|
|
36
36
|
// running and the watch keeps polling. Pure run state, cleared by the next
|
|
37
37
|
// check that gets through, so it is ALSO in TRANSIENT_RUNTIME_KEYS below.
|
|
38
38
|
"jobConnectionLost",
|
|
39
|
+
// Where this node's job stands in line while it waits for a free slot
|
|
40
|
+
// (the job read's `queue` field), shown by the editor's queue badge. Pure run
|
|
41
|
+
// state, replaced on each read and cleared once the job leaves `queued`, so
|
|
42
|
+
// it is ALSO in TRANSIENT_RUNTIME_KEYS below: a badge never marks the
|
|
43
|
+
// workflow dirty and is never saved.
|
|
44
|
+
"queueInfo",
|
|
39
45
|
"isStreaming",
|
|
40
46
|
"generatedImageUrl",
|
|
41
47
|
"generatedVideoUrl",
|
|
@@ -163,6 +169,9 @@ export const EXECUTION_DATA_KEYS: ReadonlySet<string> = new Set([
|
|
|
163
169
|
// TRANSIENT_RUNTIME_KEYS — so a saved one can never turn a later plain run
|
|
164
170
|
// into a continuation of an old run.
|
|
165
171
|
"useCaseContinue",
|
|
172
|
+
// The content rights confirmation a run fetches a Video URL node's link
|
|
173
|
+
// under: that run's input override alone, never saved (also transient).
|
|
174
|
+
"rightsConfirmationId",
|
|
166
175
|
])
|
|
167
176
|
|
|
168
177
|
/**
|
|
@@ -228,6 +237,7 @@ export const TRANSIENT_RUNTIME_KEYS: ReadonlySet<string> = new Set([
|
|
|
228
237
|
"currentJobProgress",
|
|
229
238
|
"jobAwaitingReview",
|
|
230
239
|
"jobConnectionLost",
|
|
240
|
+
"queueInfo",
|
|
231
241
|
"isStreaming",
|
|
232
242
|
"subWorkflowProgress",
|
|
233
243
|
"__listTotal",
|
|
@@ -251,6 +261,9 @@ export const TRANSIENT_RUNTIME_KEYS: ReadonlySet<string> = new Set([
|
|
|
251
261
|
"__triggerData",
|
|
252
262
|
// A use-case node's continuation: one run's override, never config (above).
|
|
253
263
|
"useCaseContinue",
|
|
264
|
+
// The content rights confirmation a run fetches a Video URL node's link
|
|
265
|
+
// under: one run's override (RUN_ONLY_NODE_FIELDS), never config.
|
|
266
|
+
"rightsConfirmationId",
|
|
254
267
|
])
|
|
255
268
|
|
|
256
269
|
/**
|
package/src/preview-gate.ts
CHANGED
|
@@ -317,11 +317,14 @@ export const RUN_OVERRIDE_CLEARED_FIELDS = [
|
|
|
317
317
|
/**
|
|
318
318
|
* Node fields set for ONE run only, by that run's input override: a use-case
|
|
319
319
|
* node's continuation of an earlier run (`useCaseContinue` — a Render final, a
|
|
320
|
-
* Continue)
|
|
321
|
-
*
|
|
322
|
-
*
|
|
320
|
+
* Continue), and the content rights confirmation a Video URL node's link is
|
|
321
|
+
* fetched under (`rightsConfirmationId` — one download's, within an hour, so
|
|
322
|
+
* a saved one could only refuse a later run). Never saved
|
|
323
|
+
* (`TRANSIENT_RUNTIME_KEYS`); one found on a saved graph is stale, and every
|
|
324
|
+
* reader ignores it — the server's engine drops it before its override merge,
|
|
325
|
+
* and `withRunOverrides` before its own.
|
|
323
326
|
*/
|
|
324
|
-
export const RUN_ONLY_NODE_FIELDS = ["useCaseContinue"] as const
|
|
327
|
+
export const RUN_ONLY_NODE_FIELDS = ["useCaseContinue", "rightsConfirmationId"] as const
|
|
325
328
|
|
|
326
329
|
/** `data` without its saved run-only fields, or `data` itself when it holds none. */
|
|
327
330
|
function withoutRunOnlyFields(data: Data): Data {
|
|
@@ -14,6 +14,8 @@ export const TEMPLATE_CATEGORIES = [
|
|
|
14
14
|
"automations",
|
|
15
15
|
"campaign-concepts",
|
|
16
16
|
"social-creatives",
|
|
17
|
+
// Workflows an AI agent built through the MCP server, kept whole so every step can be opened and changed.
|
|
18
|
+
"mcp",
|
|
17
19
|
] as const
|
|
18
20
|
|
|
19
21
|
export type TemplateCategory = (typeof TEMPLATE_CATEGORIES)[number]
|
package/src/video-face-mesh.ts
CHANGED
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Video Face Mesh (`POST /v1/video-face-mesh`, job type `video-face-mesh`):
|
|
3
|
-
* thin face lines — a
|
|
4
|
-
* drawn on the faces of a clip, frame for
|
|
5
|
-
* Motion's face masking: the lines go on
|
|
6
|
-
* video model still sees where the mouth
|
|
3
|
+
* thin GRAY face lines — a wireframe, and darker eye and lip outlines, each a
|
|
4
|
+
* tone of the picture under it — drawn on the faces of a clip, frame for
|
|
5
|
+
* frame. An internal step of Nodaro Motion's face masking: the lines go on
|
|
6
|
+
* the masked (or depth) clip so the video model still sees where the mouth
|
|
7
|
+
* and the eyes are.
|
|
7
8
|
*
|
|
8
9
|
* Priced by the clip's length at the 30 fps basis Video Mask uses
|
|
9
10
|
* (`videoMaskBilledSeconds`), one row per length bucket.
|
|
10
11
|
*/
|
|
11
12
|
import { VIDEO_MASK_LIMITS, type VideoMaskZone } from "./video-mask.js"
|
|
13
|
+
import type { VideoDepthColormap } from "./video-depth.js"
|
|
12
14
|
|
|
13
15
|
/** The route, as the Cast Swap engine calls it. */
|
|
14
16
|
export const VIDEO_FACE_MESH_PATH = "/v1/video-face-mesh"
|
|
@@ -35,7 +37,7 @@ export const VIDEO_FACE_MESH_LIMITS = {
|
|
|
35
37
|
* same input: the model, the crop, the smoothing, the filters, the colours or
|
|
36
38
|
* the widths. Never for pricing, limits or messages.
|
|
37
39
|
*/
|
|
38
|
-
export const VIDEO_FACE_MESH_RECIPE = "2026-
|
|
40
|
+
export const VIDEO_FACE_MESH_RECIPE = "2026-11-01"
|
|
39
41
|
|
|
40
42
|
const VIDEO_FACE_MESH_BUCKETS_SEC = [5, 10, 15, 30, 60, 120, 300] as const
|
|
41
43
|
|
|
@@ -71,6 +73,21 @@ export interface VideoFaceMeshRequest {
|
|
|
71
73
|
readonly maxFaceHeightPct?: number
|
|
72
74
|
/** Margins (% of the frame) where no face is drawn. */
|
|
73
75
|
readonly zone?: Partial<VideoMaskZone> | null
|
|
76
|
+
/**
|
|
77
|
+
* The depth map's colormap (Video Depth's `VIDEO_DEPTH_COLORMAPS`) when the
|
|
78
|
+
* lines go on a depth map: each line is then a colour OF that map — the map
|
|
79
|
+
* at the line's tone of the depth under it. Needs `depthUrl`, except
|
|
80
|
+
* `grayscale` (a gray depth clip is its own depth). Left out with a
|
|
81
|
+
* `depthUrl`: `grayscale`.
|
|
82
|
+
*/
|
|
83
|
+
readonly colormap?: VideoDepthColormap
|
|
84
|
+
/**
|
|
85
|
+
* The GRAYSCALE depth render of the clip (Video Depth with `colormap:
|
|
86
|
+
* "grayscale"`, same frame count as `videoUrl`, any size): the depth each
|
|
87
|
+
* line's colour is read from. Left out (a blurred mask, a gray depth clip
|
|
88
|
+
* drawn on directly): each line is a gray tone of the pixel under it.
|
|
89
|
+
*/
|
|
90
|
+
readonly depthUrl?: string
|
|
74
91
|
}
|
|
75
92
|
|
|
76
93
|
/** A finished `video-face-mesh` job's `output_data`. */
|
|
@@ -84,5 +101,7 @@ export interface VideoFaceMeshOutput {
|
|
|
84
101
|
readonly framesWithFaces: number
|
|
85
102
|
/** Faces drawn, summed over the frames (0 = nothing drawn; the clip comes back as it was sent). */
|
|
86
103
|
readonly facesDrawn: number
|
|
104
|
+
/** The map the lines were coloured from (a request with `depthUrl`); absent = gray tones of the pixel under them. */
|
|
105
|
+
readonly colormap?: VideoDepthColormap
|
|
87
106
|
readonly recipe: string
|
|
88
107
|
}
|
package/src/video-link.ts
CHANGED
|
@@ -396,6 +396,9 @@ export const VIDEO_LINK_DERIVED_FIELDS = [
|
|
|
396
396
|
"downloadedAudioUrl",
|
|
397
397
|
"audioDownloadStatus",
|
|
398
398
|
"audioDownloadError",
|
|
399
|
+
// The content rights confirmation a run's own fetch of the link is made
|
|
400
|
+
// under: recorded for ONE link, so it never stands under another.
|
|
401
|
+
"rightsConfirmationId",
|
|
399
402
|
] as const
|
|
400
403
|
|
|
401
404
|
/**
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/picker-restrictions.ts","../src/component-types.ts","../src/oauth-scopes.ts","../src/recast-segment-packs.ts","../src/template-categories.ts"],"names":["INPUT_FIELD_MAP"],"mappings":";;;AAYA,IAAM,QAAA,GAAW,CAAC,CAAA,KAAA,CACf,KAAA,CAAM,QAAQ,CAAC,CAAA,GAAI,CAAA,GAAI,CAAC,CAAC,CAAA,EAAG,OAAO,CAAC,CAAA,KAAM,MAAM,MAAA,IAAa,CAAA,KAAM,QAAQ,CAAA,KAAM,EAAE,CAAA,CAAE,GAAA,CAAI,MAAM,CAAA;AAS3F,SAAS,0BAA0B,KAAA,EAIxB;AAChB,EAAA,IAAI,CAAC,KAAA,CAAM,QAAA,IAAY,CAAC,KAAA,CAAM,aAAa,OAAO,IAAA;AAClD,EAAA,KAAA,MAAW,IAAA,IAAQ,MAAM,KAAA,EAAO;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CAAwB,KAAK,CAAA,IAAK,yBAAA;AAC3C;AAOO,SAAS,6BAA6B,QAAA,EAAsC;AACjF,EAAA,MAAM,MAAA,GAAS,MAAA,CAAO,IAAA,CAAK,0BAA0B,CAAA,CAAE,MAAA,CAAO,CAAC,KAAA,KAAU,0BAAA,CAA2B,KAAK,CAAA,KAAM,QAAQ,CAAA;AACvH,EAAA,OAAO,CAAC,QAAA,EAAU,GAAG,MAAM,CAAA;AAC7B","file":"chunk-27LQR7DO.js","sourcesContent":["import { canonicalExposedFieldKey } from \"./exposed-field-keys.js\"\nimport { INPUT_FIELD_MAP } from \"./presentation-utils.js\"\n\n/** What an app's picker card may restrict (stored in `presentationSettings.cardMeta[nodeId]`). */\nexport interface PickerCardRestrictions {\n readonly pickerAllowedValues?: readonly string[]\n readonly pickerAllowedValuesByField?: Readonly<Record<string, readonly string[]>>\n}\n\n// Every submitted value is checked, whatever its type — a number or object where a\n// catalog id belongs must be refused, not skipped. An unset / cleared pick (\"\" , null)\n// is no selection and passes (the node falls back to its default).\nconst valuesOf = (v: unknown): string[] =>\n (Array.isArray(v) ? v : [v]).filter((x) => x !== undefined && x !== null && x !== \"\").map(String)\n\n/**\n * The first submitted picker value an app's card restrictions forbid, as the\n * runner's 400 text; null when all pass. Runs on every app run — `run_app`,\n * the SDK and a hand-built body included — so a restriction is never UI-only.\n * A submitted key is read through `canonicalExposedFieldKey`, so a legacy\n * spelling cannot slip past a restriction written against the current field.\n */\nexport function findRestrictedPickerValue(input: {\n readonly cardMeta: Readonly<Record<string, PickerCardRestrictions | undefined>> | undefined\n readonly nodes: ReadonlyArray<{ readonly id: string; readonly type?: string }>\n readonly inputValues: Readonly<Record<string, Readonly<Record<string, unknown>>>> | undefined\n}): string | null {\n if (!input.cardMeta || !input.inputValues) return null\n for (const node of input.nodes) {\n const meta = input.cardMeta[node.id]\n const submitted = input.inputValues[node.id]\n if (!meta || !submitted) continue\n const rules: Array<[string, readonly string[]]> = []\n const rep = node.type ? INPUT_FIELD_MAP[node.type]?.key : undefined\n if (rep && meta.pickerAllowedValues && meta.pickerAllowedValues.length > 0) rules.push([rep, meta.pickerAllowedValues])\n for (const [field, allowed] of Object.entries(meta.pickerAllowedValuesByField ?? {})) {\n if (allowed.length > 0) rules.push([field, allowed])\n }\n for (const [field, allowed] of rules) {\n for (const [key, raw] of Object.entries(submitted)) {\n if (canonicalExposedFieldKey(node.type, key) !== field) continue\n for (const value of valuesOf(raw)) {\n if (!allowed.includes(value)) return `Invalid value for ${field}: ${value}. Allowed: ${allowed.join(\", \")}`\n }\n }\n }\n }\n return null\n}\n","import { INPUT_FIELD_MAP as PRESENTATION_INPUT_MAP } from \"./presentation-utils.js\"\n\nexport interface ComponentHandle {\n id: string\n name: string\n type: \"image\" | \"video\" | \"audio\" | \"text\"\n required: boolean\n mediaPreview?: boolean\n fieldKey: string\n}\n\nexport interface ExposedSetting {\n nodeId: string\n field: string\n label: string\n type: \"select\" | \"text\" | \"number\" | \"toggle\" | \"aspect-ratio\"\n allowedValues?: unknown[]\n /** Full option list with labels for select fields (preferred over allowedValues). */\n options?: Array<{ value: string; label: string }>\n defaultValue: unknown\n /**\n * Set when the setting is one of the node's quick settings (the editor's bottom-bar levers): the node type,\n * so the consuming workflow can render the same control, and the node's own lever values its choices depend\n * on (its model, Draft, …), so the control offers what that model takes. Never prompts or results.\n */\n quick?: {\n nodeType: string\n context?: Record<string, string | number | boolean>\n }\n}\n\nexport interface ComponentMetadata {\n inputs: ComponentHandle[]\n outputs: ComponentHandle[]\n exposedSettings: ExposedSetting[]\n}\n\n/** Maps input node types to their data field key for inputOverrides (derived from presentation-utils) */\nexport const INPUT_FIELD_MAP: Record<string, string> = Object.fromEntries(\n Object.entries(PRESENTATION_INPUT_MAP).map(([k, v]) => [k, v.key]),\n)\n\n/** Separator used in component handle ids that target a specific port on a sub-workflow-input / sub-workflow-output node. */\nexport const HANDLE_PORT_SEPARATOR = \"::\"\n\n/**\n * Split a component handle id of the form `nodeId` or `nodeId::portId`.\n * Returns the literal nodeId when no separator is present.\n */\nexport function parseHandleId(handleId: string): { nodeId: string; portId?: string } {\n const sep = handleId.indexOf(HANDLE_PORT_SEPARATOR)\n if (sep < 0) return { nodeId: handleId }\n const portId = handleId.slice(sep + HANDLE_PORT_SEPARATOR.length)\n return { nodeId: handleId.slice(0, sep), portId: portId || undefined }\n}\n\n/**\n * Apply a value for a component input handle to the inputOverrides map.\n *\n * - Plain handles (id = nodeId) write to `inputOverrides[nodeId][fieldKey]`,\n * which the orchestrator shallow-merges into `node.data` at execution.\n * - Compound handles (id = nodeId::portId) write into\n * `inputOverrides[nodeId].__injectedPortValues[portId]`, the slot that\n * sub-workflow-input nodes read at runtime via output-extractor.\n *\n * Mutates the map in place so multi-port accumulation merges correctly when\n * iterating handles in a loop.\n */\nexport function applyHandleInputOverride(\n inputOverrides: Record<string, Record<string, unknown>>,\n handle: { id: string; fieldKey: string },\n value: unknown,\n): void {\n const { nodeId, portId } = parseHandleId(handle.id)\n if (portId) {\n const existing = (inputOverrides[nodeId]?.__injectedPortValues as Record<string, unknown> | undefined) ?? {}\n inputOverrides[nodeId] = {\n ...inputOverrides[nodeId],\n __injectedPortValues: { ...existing, [portId]: value },\n }\n } else {\n inputOverrides[nodeId] = { ...inputOverrides[nodeId], [handle.fieldKey]: value }\n }\n}\n\n/**\n * Has a value already been recorded for this handle in the inputOverrides map?\n * Used to skip fallback wiring when an upstream connection already supplied\n * the input.\n */\nexport function isHandleInputWired(\n inputOverrides: Record<string, Record<string, unknown>>,\n handle: { id: string; fieldKey: string },\n): boolean {\n const { nodeId, portId } = parseHandleId(handle.id)\n if (portId) {\n const injected = inputOverrides[nodeId]?.__injectedPortValues as Record<string, unknown> | undefined\n return injected?.[portId] !== undefined\n }\n return inputOverrides[nodeId]?.[handle.fieldKey] !== undefined\n}\n\n/** Maps output media types to NodeOutput field keys */\nexport const OUTPUT_FIELD_MAP: Record<string, string> = {\n image: \"imageUrl\",\n video: \"videoUrl\",\n audio: \"audioUrl\",\n text: \"text\",\n}\n\n/**\n * Merge exposed settings into inputOverrides format.\n * exposedSettings is keyed by \"nodeId:field\" -> value on the component node data.\n *\n * Connected inputs (already present in inputOverrides) always take priority\n * over exposed settings for the same node+field combination. This ensures\n * that mandatory upstream wires are never silently overwritten by stale\n * default / user-configured exposed-setting values.\n */\nexport function mergeExposedSettings(\n inputOverrides: Record<string, Record<string, unknown>>,\n exposedSettings: Record<string, unknown>,\n metadata: ComponentMetadata,\n): Record<string, Record<string, unknown>> {\n const merged = { ...inputOverrides }\n for (const setting of metadata.exposedSettings) {\n const key = `${setting.nodeId}:${setting.field}`\n const value = exposedSettings[key]\n if (value !== undefined) {\n // Skip if a connected input already provided this field\n if (merged[setting.nodeId]?.[setting.field] !== undefined) continue\n merged[setting.nodeId] = { ...merged[setting.nodeId], [setting.field]: value }\n }\n }\n return merged\n}\n","/**\n * The OAuth scopes a Nodaro token can carry — part of the public API contract\n * (published in the authorization server's `scopes_supported`, requested by\n * developer apps, typed in `@nodaro/sdk`). The server validates against this\n * list and the SDK types against it, so the two cannot drift.\n *\n * A scope in this list is published and handed to any Dynamic Client\n * Registration client that asks for everything, so add one in the same change\n * that makes something check it (see backend/src/lib/scopes.ts).\n */\nexport const OAUTH_SCOPES = [\n \"workflows:read\",\n \"workflows:write\",\n \"workflows:execute\",\n \"jobs:read\",\n \"assets:read\",\n \"assets:write\",\n \"credits:read\",\n \"apps:read\",\n \"pipelines:read\",\n \"pipelines:execute\",\n \"pipelines:approve\",\n \"presets:read\",\n \"workspaces:read\",\n \"workspaces:write\",\n] as const\n\nexport type OAuthScope = (typeof OAUTH_SCOPES)[number]\n","/**\n * How a recast render packs scenes into parts — the values `segmentSec` takes\n * on `POST /v1/recast`, `/v1/recast/estimate` and `/v1/recast/:id/start`. A\n * name, not seconds, despite the field's name:\n *\n * - `\"scenes-max\"` (Long): whole scenes grouped into as few parts as fit, the\n * fewest seams.\n * - `\"scenes\"` (Short): whole scenes in shorter parts.\n * - `\"max\"`: the longest parts the model allows, not grouped by scene.\n */\nexport const RECAST_SEGMENT_PACKS = [\"max\", \"scenes-max\", \"scenes\"] as const\n\nexport type RecastSegmentPack = (typeof RECAST_SEGMENT_PACKS)[number]\n","/**\n * The use cases a marketplace template is filed under — exactly one each.\n * Shared by the publish/browse routes (the `category` enum), the Templates\n * page (tiles, URL filter, labels) and the publish dialog, so the list can\n * only change in one place. Labels live with the frontend's i18n\n * (`lib/template-categories.ts`), keyed by these values.\n */\nexport const TEMPLATE_CATEGORIES = [\n \"product-imagery\",\n \"static-ads\",\n \"user-generated-content\",\n \"video-ads\",\n \"brand-assets\",\n \"automations\",\n \"campaign-concepts\",\n \"social-creatives\",\n] as const\n\nexport type TemplateCategory = (typeof TEMPLATE_CATEGORIES)[number]\n\n/** Where a template with no usable category is filed: the plain \"it is a workflow\" bucket. */\nexport const DEFAULT_TEMPLATE_CATEGORY: TemplateCategory = \"automations\"\n\n/**\n * The categories templates were filed under before September 2026, each\n * read as its new home. Migration 423 rewrites the rows with the same map;\n * this keeps an old link (`?category=video-production`), a cached card and a\n * row the migration has not reached yet resolving in the meantime.\n */\nexport const LEGACY_TEMPLATE_CATEGORIES: Readonly<Record<string, TemplateCategory>> = {\n \"image-generation\": \"product-imagery\",\n \"video-production\": \"video-ads\",\n \"audio-music\": \"social-creatives\",\n \"content-writing\": \"campaign-concepts\",\n \"social-media\": \"social-creatives\",\n \"data-processing\": \"automations\",\n \"multi-step\": \"automations\",\n other: \"automations\",\n}\n\nconst CURRENT = new Set<string>(TEMPLATE_CATEGORIES)\n\nexport function isTemplateCategory(value: unknown): value is TemplateCategory {\n return typeof value === \"string\" && CURRENT.has(value)\n}\n\n/** A current category as is, a legacy one as its new home, anything else as undefined. */\nexport function resolveTemplateCategory(value: string | null | undefined): TemplateCategory | undefined {\n if (value == null) return undefined\n if (isTemplateCategory(value)) return value\n return LEGACY_TEMPLATE_CATEGORIES[value]\n}\n\n/** The category a stored row reads as: resolved, else the default bucket. */\nexport function normalizeTemplateCategory(value: string | null | undefined): TemplateCategory {\n return resolveTemplateCategory(value) ?? DEFAULT_TEMPLATE_CATEGORY\n}\n\n/**\n * Every stored value that reads as `category` — the value itself and the\n * legacy ones that map to it — so a database filter matches rows the\n * migration has not rewritten yet.\n */\nexport function templateCategoryStoredValues(category: TemplateCategory): string[] {\n const legacy = Object.keys(LEGACY_TEMPLATE_CATEGORIES).filter((value) => LEGACY_TEMPLATE_CATEGORIES[value] === category)\n return [category, ...legacy]\n}\n"]}
|