@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
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/video-link.ts"],"names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,eAAA;AAAA,EACA,kBAAA;AAAA,EACA,kBAAA;AAAA,EACA,oBAAA;AAAA,EACA,qBAAA;AAAA,EACA;AACF;AASO,SAAS,wBAAA,CACd,MACA,QAAA,EACyB;AACzB,EAAA,IAAI,EAAE,YAAA,IAAgB,QAAA,CAAA,EAAW,OAAO,IAAA;AACxC,EAAA,IAAI,OAAA,CAAQ,SAAS,UAAU,CAAA,KAAM,QAAQ,IAAA,CAAK,UAAU,GAAG,OAAO,IAAA;AACtE,EAAA,MAAM,GAAA,GAA+B,EAAE,GAAG,IAAA,EAAK;AAC/C,EAAA,KAAA,MAAW,GAAA,IAAO,yBAAA,EAA2B,OAAO,GAAA,CAAI,GAAG,CAAA;AAC3D,EAAA,OAAO,GAAA;AACT","file":"chunk-NEJ2PV4C.cjs","sourcesContent":["/**\n * The Video URL node (`youtube-video`) and the social-video import path —\n * structural vocabulary shared by the canvas, the orchestrator and the\n * download routes. Host names and a node-output rule only; no prompt content.\n *\n * ONE list, three readers:\n * - the backend's yt-dlp routes (`lib/url-validator.ts` re-exports these),\n * where the list IS the SSRF gate — yt-dlp does its own DNS + HTTP, so\n * nothing but this exact-suffix match stands between a pasted link and an\n * internal address;\n * - the editor, which decides from the same list whether a pasted link is\n * one it should download (it must never offer a host the server refuses,\n * nor sit on one the server accepts);\n * - both workflow engines, which read a node's output through\n * `resolveVideoLinkOutput`.\n *\n * ⚠️ Adding a host here ADMITS it to a server-side fetch. It is a security\n * decision, not a UI one — only fixed, reputable domains whose DNS an attacker\n * cannot control.\n */\nexport const SOCIAL_VIDEO_HOSTS = [\n \"youtube.com\", \"youtu.be\",\n \"tiktok.com\",\n \"instagram.com\",\n \"twitter.com\", \"x.com\",\n \"facebook.com\", \"fb.watch\", \"fb.com\",\n] as const\n\n/** YouTube-only subset (the metadata probe and the client ladder are YouTube-only). */\nexport const YOUTUBE_HOSTS = [\"youtube.com\", \"youtu.be\"] as const\n\n/** Instagram-only subset (the download path's proxy failover is Instagram-scoped). */\nexport const INSTAGRAM_HOSTS = [\"instagram.com\"] as const\n\nconst TIKTOK_HOSTS = [\"tiktok.com\"] as const\nconst TWITTER_HOSTS = [\"twitter.com\", \"x.com\"] as const\nconst FACEBOOK_HOSTS = [\"facebook.com\", \"fb.watch\", \"fb.com\"] as const\n\n/**\n * Exact registrable-domain match against an allowlist: the domain itself or a\n * true subdomain (`www.youtube.com`, `m.youtu.be`). A host that merely\n * CONTAINS an allowlisted name (`evilyoutube.com`, `youtube.com.attacker.example`,\n * or `netflix.com` for `x.com`) does not match.\n */\nexport function hostnameMatchesAllowlist(hostname: string, domains: readonly string[]): boolean {\n const h = hostname.toLowerCase().replace(/\\.$/, \"\") // strip FQDN trailing dot\n return domains.some((d) => {\n const dom = d.toLowerCase()\n return h === dom || h.endsWith(\".\" + dom)\n })\n}\n\n/**\n * True when the RAW link carries a character that URL parsers read differently:\n * a backslash or an ASCII control character.\n *\n * Every check in this file parses the WHATWG way (Node, the browser), where a\n * backslash in an http(s) URL is a slash — `https://tiktok.com\\@10.0.0.1/x` has\n * host `tiktok.com`. A parser that ends the authority at `/` alone reads the\n * same string as a user name at host `10.0.0.1`. The download tools are handed\n * the raw string and do their own parsing, DNS and HTTP, so a link the two\n * readings can disagree on is refused outright rather than reasoned about. Tabs\n * and newlines are dropped silently by one parser and kept by another — same\n * answer. No real video link contains any of these.\n */\nexport function hasUrlParserHazard(url: string): boolean {\n for (let i = 0; i < url.length; i++) {\n const code = url.charCodeAt(i)\n if (code === 0x5c || code <= 0x1f || code === 0x7f) return true\n }\n return false\n}\n\n/** True for an http(s) URL whose host is on the allowlist. Never throws. */\nexport function isSocialVideoUrl(url: string, domains: readonly string[] = SOCIAL_VIDEO_HOSTS): boolean {\n if (hasUrlParserHazard(url)) return false\n try {\n const parsed = new URL(url)\n if (parsed.protocol !== \"http:\" && parsed.protocol !== \"https:\") return false\n return hostnameMatchesAllowlist(parsed.hostname, domains)\n } catch {\n return false\n }\n}\n\nexport type VideoLinkPlatform = \"youtube\" | \"facebook\" | \"tiktok\" | \"instagram\" | \"twitter\" | \"unknown\"\n\n/** Which supported platform a link belongs to — by exact host, never by substring. */\nexport function detectVideoLinkPlatform(url: string): VideoLinkPlatform {\n if (isSocialVideoUrl(url, YOUTUBE_HOSTS)) return \"youtube\"\n if (isSocialVideoUrl(url, FACEBOOK_HOSTS)) return \"facebook\"\n if (isSocialVideoUrl(url, TIKTOK_HOSTS)) return \"tiktok\"\n if (isSocialVideoUrl(url, INSTAGRAM_HOSTS)) return \"instagram\"\n if (isSocialVideoUrl(url, TWITTER_HOSTS)) return \"twitter\"\n return \"unknown\"\n}\n\n/**\n * Node types that can use a Video URL node WITHOUT its downloaded file, because\n * they never read the video: `suno-cover` and `transcribe` take the node's\n * separately-fetched audio track (`downloadedAudioUrl`), `dubbing` hands the\n * page link to a provider that fetches it itself, and `content-recipe` cites the\n * post's page link on its `link` input (`videoLinkPageUrl`, both resolvers) —\n * a Video URL can reach it on no other input. A run whose only consumers of a\n * link are these must not be made to download — or to choose a part of — a\n * video nobody will look at. Structural vocabulary: it mirrors those\n * server-side readers; add a type here only together with its reader.\n */\nexport const VIDEO_LINK_TOLERANT_CONSUMER_TYPES: ReadonlySet<string> = new Set([\n \"suno-cover\",\n \"transcribe\",\n \"dubbing\",\n \"content-recipe\",\n])\n\n/**\n * The tolerant consumers that DO read something fetched from the link — the\n * separately-fetched audio track (`downloadedAudioUrl`): Transcribe and Suno\n * Cover. The rest of the tolerant set (Dubbing, Content Recipe) read only the\n * page link and need nothing fetched. A subset of the tolerant set by\n * construction (guard test).\n */\nexport const VIDEO_LINK_AUDIO_CONSUMER_TYPES: ReadonlySet<string> = new Set([\"suno-cover\", \"transcribe\"])\n\n/**\n * What a run must FETCH for a Video URL node holding a post link:\n * - `file`: some node in the run watches the video — download the video;\n * - `audio`: every reader is tolerant and at least one takes the audio track —\n * fetch the track only, never the video (and never ask for a part of it);\n * - `none`: every reader takes the page link alone — fetch nothing.\n */\nexport type VideoLinkNeed = \"file\" | \"audio\" | \"none\"\n\n/** The need of a node read by consumers of these types. No consumer reads nothing. */\nexport function videoLinkNeedOf(consumerTypes: Iterable<string>): VideoLinkNeed {\n let audio = false\n for (const type of consumerTypes) {\n if (!VIDEO_LINK_TOLERANT_CONSUMER_TYPES.has(type)) return \"file\"\n if (VIDEO_LINK_AUDIO_CONSUMER_TYPES.has(type)) audio = true\n }\n return audio ? \"audio\" : \"none\"\n}\n\n/** The node shape the graph readers need — open on purpose, both engines' nodes fit. */\nexport interface VideoLinkGraphNode {\n readonly id: string\n readonly type?: string\n readonly data?: unknown\n}\n\nexport interface VideoLinkGraphEdge {\n readonly source: string\n readonly target: string\n}\n\n/**\n * The need of every Video URL node that feeds the run, by node id — ONE reading\n * of the graph for the editor's pre-run gate, the app runner's card and the\n * server's pre-run fetch, so the three cannot disagree on what a run needs.\n *\n * `scopeIds` are the nodes about to run (`null` = every node: an app runs its\n * whole graph). The run is those nodes plus everything they read from, at any\n * depth; a link that feeds nothing in it is absent (a long video parked on the\n * canvas must never block an unrelated run). Skipped nodes are not part of the\n * run and pull nothing in.\n */\nexport function videoLinkRunNeeds(\n scopeIds: readonly string[] | null,\n nodes: readonly VideoLinkGraphNode[],\n edges: readonly VideoLinkGraphEdge[],\n): Map<string, VideoLinkNeed> {\n const byId = new Map(nodes.map((n) => [n.id, n] as const))\n const isSkipped = (id: string) => (byId.get(id)?.data as { skipped?: unknown } | undefined)?.skipped === true\n\n const sourcesOf = new Map<string, string[]>()\n for (const edge of edges) {\n const list = sourcesOf.get(edge.target)\n if (list) list.push(edge.source)\n else sourcesOf.set(edge.target, [edge.source])\n }\n\n // Everything the run touches: the nodes about to run plus all they read from.\n const inRun = new Set<string>()\n const queue = (scopeIds ?? nodes.map((n) => n.id)).filter((id) => !isSkipped(id))\n for (const id of queue) inRun.add(id)\n while (queue.length > 0) {\n const current = queue.pop()!\n for (const source of sourcesOf.get(current) ?? []) {\n if (inRun.has(source)) continue\n inRun.add(source)\n queue.push(source)\n }\n }\n\n const consumers = new Map<string, string[]>()\n for (const edge of edges) {\n if (byId.get(edge.source)?.type !== \"youtube-video\" || !inRun.has(edge.target)) continue\n const list = consumers.get(edge.source)\n const type = byId.get(edge.target)?.type ?? \"\"\n if (list) list.push(type)\n else consumers.set(edge.source, [type])\n }\n const needs = new Map<string, VideoLinkNeed>()\n for (const [id, types] of consumers) needs.set(id, videoLinkNeedOf(types))\n return needs\n}\n\n/**\n * The fields of a Video URL node's data that decide what it emits. Open-ended\n * on purpose: both engines hand over the node's whole `data` bag, and a closed\n * shape with only optional members would refuse it as having nothing in common.\n */\nexport interface VideoLinkNodeFields {\n readonly youtubeUrl?: unknown\n readonly downloadedVideoUrl?: unknown\n readonly downloadedFromUrl?: unknown\n readonly [key: string]: unknown\n}\n\nfunction trimmed(value: unknown): string | undefined {\n if (typeof value !== \"string\") return undefined\n const t = value.trim()\n return t === \"\" ? undefined : t\n}\n\n/**\n * The stored file that belongs to the node's CURRENT link, or undefined.\n *\n * `downloadedFromUrl` binds a file to the link it came from. The editor clears\n * the file whenever the link is edited, but a link can also change where no\n * editor is looking — an agent or an import rewriting the workflow JSON — and\n * without the binding the node would go on emitting the PREVIOUS video, which\n * is worse than emitting none. A node saved before the field existed has no\n * binding and is trusted as it always was.\n */\nexport function videoLinkDownloadedFile(data: VideoLinkNodeFields): string | undefined {\n const file = trimmed(data.downloadedVideoUrl)\n if (!file) return undefined\n const from = trimmed(data.downloadedFromUrl)\n if (from && from !== trimmed(data.youtubeUrl)) return undefined\n return file\n}\n\n/**\n * What a Video URL node emits on its `video` handle: the downloaded file when\n * one matches the link, else the link itself. The fallback is load-bearing — a\n * DIRECT file link (`https://cdn…/clip.mp4`) is a legitimate value of the URL\n * field and is never downloaded, so it must pass through.\n */\nexport function resolveVideoLinkOutput(data: VideoLinkNodeFields): string | undefined {\n return videoLinkDownloadedFile(data) ?? trimmed(data.youtubeUrl)\n}\n\n/**\n * The page link a Video URL node was given (the post's own address), never\n * the downloaded file. Read by consumers that CITE a post rather than watch\n * it — Content Recipe's \"Source post\" input stores it as the recipe's source.\n */\nexport function videoLinkPageUrl(data: VideoLinkNodeFields): string | undefined {\n return trimmed(data.youtubeUrl)\n}\n\n/**\n * True when the node holds a social link with no file for it yet — the state\n * in which its output is a web PAGE, which no video consumer can read.\n */\nexport function videoLinkNeedsDownload(data: VideoLinkNodeFields): boolean {\n const url = trimmed(data.youtubeUrl)\n if (!url || !isSocialVideoUrl(url)) return false\n return videoLinkDownloadedFile(data) === undefined\n}\n\n// ---------------------------------------------------------------------------\n// The link as an APP INPUT (a published app, MCP `run_app`, the SDK)\n// ---------------------------------------------------------------------------\n\n/**\n * File extensions accepted as DIRECT video-file links (pathname suffix match).\n * Mirrors save-to-storage's video auto-detect set.\n */\nexport const DIRECT_VIDEO_EXTENSIONS = [\".mp4\", \".webm\", \".mov\", \".avi\"] as const\n\n/**\n * True for a DIRECT video-file link: http(s) whose PATHNAME ends in a video\n * extension — `https://cdn.nodaro.ai/uploads/videos/<id>.mp4` and any other\n * cdn-style link. Query and fragment are ignored (signed CDN links keep the\n * extension in the path); an extension that appears only in the query does\n * not qualify. Host-agnostic BY DESIGN, which is exactly why admission is not\n * sufficient on its own: the download route pre-resolves these hosts before it\n * fetches (`resolvesOnlyToPublicAddresses`), and every other reader goes\n * through the SSRF-guarded fetch.\n *\n * A link carrying a backslash or a control character is refused first\n * (`hasUrlParserHazard`): the route pre-resolves the WHATWG host, and the\n * download tool would fetch whatever host ITS parser reads.\n */\nexport function isDirectVideoFileUrl(url: string): boolean {\n if (hasUrlParserHazard(url)) return false\n try {\n const parsed = new URL(url)\n if (parsed.protocol !== \"http:\" && parsed.protocol !== \"https:\") return false\n const path = parsed.pathname.toLowerCase()\n return DIRECT_VIDEO_EXTENSIONS.some((ext) => path.endsWith(ext))\n } catch {\n return false\n }\n}\n\n/**\n * A YouTube video shorter than this downloads whole the moment the link lands;\n * a longer one (or one whose length could not be read) waits for a part to be\n * chosen. The same 4 minutes Recast and Studio use — a two-hour talk nobody\n * asked for never gets fetched by accident. One number for the canvas node, the\n * app runner's card and the server's pre-run fetch.\n */\nexport const AUTO_DOWNLOAD_MAX_SEC = 240\n\n/** YouTube's quality cap (\"up to N rows\"). Other hosts have no ladder worth capping. */\nexport const YOUTUBE_MAX_HEIGHT = 1080\n\n/** The longest link an app input accepts. A real video link is a few hundred characters. */\nexport const MAX_VIDEO_LINK_INPUT_CHARS = 2048\n\nexport type VideoLinkInputProblem = \"empty\" | \"invalid\"\n\n/**\n * The ONE rule for what a Video URL app input may hold — the canvas node's own\n * (decided 2026-10-08): a link to a supported social host (downloaded before\n * the nodes that need the file run), or any other http(s) link (passed through\n * as it is, never downloaded; the nodes that read it fetch it through the\n * SSRF-guarded fetch). The app runner's card, the run-request lock and MCP\n * `get_app_inputs` all read it, so a link the card accepts is a link the\n * server accepts, and the reverse.\n *\n * Structural only: the server layers its SSRF guard on top (`safeUrlSchema`),\n * and the card refuses a literal local / private host. A link carrying a\n * backslash or a control character is refused (`hasUrlParserHazard`).\n * `null` = fine; leading and trailing spaces are not a problem (the card trims\n * before it sends).\n */\nexport function videoLinkInputProblem(value: unknown): VideoLinkInputProblem | null {\n if (value === undefined || value === null) return \"empty\"\n if (typeof value !== \"string\") return \"invalid\"\n const link = value.trim()\n if (link === \"\") return \"empty\"\n if (link.length > MAX_VIDEO_LINK_INPUT_CHARS) return \"invalid\"\n return isSocialVideoUrl(link) || isHttpLink(link) ? null : \"invalid\"\n}\n\nfunction isHttpLink(link: string): boolean {\n if (hasUrlParserHazard(link)) return false\n try {\n const parsed = new URL(link)\n return (parsed.protocol === \"http:\" || parsed.protocol === \"https:\") && parsed.hostname !== \"\"\n } catch {\n return false\n }\n}\n\n/**\n * The fields of a Video URL node's data that belong to ONE link: the file and\n * audio track fetched from it, the progress of that fetch, and what was read\n * from the link (its id, title, picture, length). Every one of them describes\n * the link it was made for.\n *\n * A run-time override that swaps the link (`dropStaleVideoLinkFields`) drops\n * these first, because the creator's published node carries all of them and a\n * shallow merge would leave them standing under the caller's link — the audio\n * track in particular has no binding to its link (`downloadedAudioUrl` is read\n * straight off the node by Transcribe and Suno Cover), so a caller's episode\n * would be transcribed from the creator's sample. The editor's own\n * link-change reset (`CLEARED_DOWNLOAD` in `lib/video-link-ingest.ts`) is\n * guarded to be inside this list.\n */\nexport const VIDEO_LINK_DERIVED_FIELDS = [\n \"videoId\",\n \"title\",\n \"thumbnailUrl\",\n \"downloadedVideoUrl\",\n \"downloadedThumbnailUrl\",\n \"downloadedFromUrl\",\n \"downloadedSection\",\n \"downloadStatus\",\n \"downloadError\",\n \"downloadErrorCode\",\n \"downloadId\",\n \"downloadIdUrl\",\n \"downloadMode\",\n \"downloadAllowSilent\",\n \"downloadPercent\",\n \"downloadPhase\",\n \"sectionStartSec\",\n \"sectionEndSec\",\n \"needsRangeChoice\",\n \"videoDurationSec\",\n \"downloadedAudioUrl\",\n \"audioDownloadStatus\",\n \"audioDownloadError\",\n] as const\n\n/**\n * The saved Video URL node data without what belonged to its previous link,\n * when `incoming` (the run's override for the node) points it at a different\n * one. A field the override brings itself is kept (the merge applies it after\n * this). Returns the SAME object when the link is not being changed; never\n * mutates.\n */\nexport function dropStaleVideoLinkFields(\n data: Record<string, unknown>,\n incoming: Record<string, unknown>,\n): Record<string, unknown> {\n if (!(\"youtubeUrl\" in incoming)) return data\n if (trimmed(incoming.youtubeUrl) === trimmed(data.youtubeUrl)) return data\n const out: Record<string, unknown> = { ...data }\n for (const key of VIDEO_LINK_DERIVED_FIELDS) delete out[key]\n return out\n}\n"]}
|