1import{s as a,t as k}from"./index-DMraBsI-.js";import"./ui-vendor-C-1KqH15.js";import"./react-vendor-ByDWXJvr.js";import"./three-vendor-CfDQ9C4v.js";import"./pdf-vendor-BLM9xNEA.js";import"./stream-vendor-CoRm0Xqa.js";async function b({projectId:e,scriptText:o,quiet:i=!1}){if(!e)return{dna:!1,marketing:!1,poster:!1};const t=r=>()=>(i||k.success(r),!0),n=r=>m=>(console.error(`[post-ingest] ${r} failed`,m),!1),[s,l,f]=await Promise.all([a.functions.invoke("backfill-project-dna",{body:{projectId:e}}).then(t("Story DNA & Production Bible generated"),n("DNA backfill")),a.functions.invoke("generate-marketing-materials",{body:{projectId:e,...o?{script:o}:{}}}).then(t("Marketing materials generated"),n("marketing")),a.functions.invoke("generate-key-art-poster",{body:{projectId:e}}).then(t("Key art poster generated"),n("key art"))]);return{dna:!!s,marketing:!!l,poster:!!f}}export{b as runPostIngestPipeline};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.