[{"data":1,"prerenderedAt":411},["ShallowReactive",2],{"doc-seo-\u002Fdocs\u002Fplatform\u002Fsemantic-engine":3,"content-query-hXLYwxYrEe":6},{"title":4,"description":5},"TypeScript Engine & Frameworks","How Strata combines framework plugins with scoped TypeScript Language Services across monorepos.",{"_path":7,"_dir":8,"_draft":9,"_partial":9,"_locale":10,"title":4,"description":5,"badge":11,"body":12,"_type":405,"_id":406,"_source":407,"_file":408,"_stem":409,"_extension":410},"\u002Fdocs\u002Fplatform\u002Fsemantic-engine","platform",false,"","Platform",{"type":13,"children":14,"toc":399},"root",[15,40,47,82,185,191],{"type":16,"tag":17,"props":18,"children":19},"element","p",{},[20,23,30,32,38],{"type":21,"value":22},"text","Strata runs TypeScript's own Language Service (",{"type":16,"tag":24,"props":25,"children":27},"code",{"className":26},[],[28],{"type":21,"value":29},"ts.LanguageService",{"type":21,"value":31}," and ",{"type":16,"tag":24,"props":33,"children":35},{"className":34},[],[36],{"type":21,"value":37},"ts.TypeChecker",{"type":21,"value":39},") in-process without loading an entire monorepo into one giant TypeScript program.",{"type":16,"tag":41,"props":42,"children":44},"h2",{"id":43},"how-framework-plugins-work",[45],{"type":21,"value":46},"How Framework Plugins Work",{"type":16,"tag":17,"props":48,"children":49},{},[50,52,58,60,66,67,73,74,80],{"type":21,"value":51},"Each supported framework (",{"type":16,"tag":24,"props":53,"children":55},{"className":54},[],[56],{"type":21,"value":57},"vue",{"type":21,"value":59},", ",{"type":16,"tag":24,"props":61,"children":63},{"className":62},[],[64],{"type":21,"value":65},"react",{"type":21,"value":59},{"type":16,"tag":24,"props":68,"children":70},{"className":69},[],[71],{"type":21,"value":72},"svelte",{"type":21,"value":59},{"type":16,"tag":24,"props":75,"children":77},{"className":76},[],[78],{"type":21,"value":79},"astro",{"type":21,"value":81},") is implemented as an isolated plugin:",{"type":16,"tag":83,"props":84,"children":85},"ul",{},[86,160],{"type":16,"tag":87,"props":88,"children":89},"li",{},[90,96,98,104,105,111,113,119,121,127,129,135,136,142,144,150,152,158],{"type":16,"tag":91,"props":92,"children":93},"strong",{},[94],{"type":21,"value":95},"Virtual TSX projection",{"type":21,"value":97},": ",{"type":16,"tag":24,"props":99,"children":101},{"className":100},[],[102],{"type":21,"value":103},".vue",{"type":21,"value":59},{"type":16,"tag":24,"props":106,"children":108},{"className":107},[],[109],{"type":21,"value":110},".svelte",{"type":21,"value":112},", and ",{"type":16,"tag":24,"props":114,"children":116},{"className":115},[],[117],{"type":21,"value":118},".astro",{"type":21,"value":120}," files are projected into valid Virtual TSX in memory (",{"type":16,"tag":24,"props":122,"children":124},{"className":123},[],[125],{"type":21,"value":126},"\u003Cpath>.__strata__.tsx",{"type":21,"value":128},") with a bidirectional offset map. That lets TypeScript's ",{"type":16,"tag":24,"props":130,"children":132},{"className":131},[],[133],{"type":21,"value":134},"TypeChecker",{"type":21,"value":31},{"type":16,"tag":24,"props":137,"children":139},{"className":138},[],[140],{"type":21,"value":141},"findReferences()",{"type":21,"value":143}," work across SFCs and ",{"type":16,"tag":24,"props":145,"children":147},{"className":146},[],[148],{"type":21,"value":149},".ts",{"type":21,"value":151},"\u002F",{"type":16,"tag":24,"props":153,"children":155},{"className":154},[],[156],{"type":21,"value":157},".tsx",{"type":21,"value":159}," files while mapping line and column numbers back to the original source file.",{"type":16,"tag":87,"props":161,"children":162},{},[163,168,170,176,177,183],{"type":16,"tag":91,"props":164,"children":165},{},[166],{"type":21,"value":167},"Fast syntax pass",{"type":21,"value":169},": Extracts template render sites, slots, render boundaries, and dynamic prop spreads (",{"type":16,"tag":24,"props":171,"children":173},{"className":172},[],[174],{"type":21,"value":175},"v-bind=\"attrs\"",{"type":21,"value":59},{"type":16,"tag":24,"props":178,"children":180},{"className":179},[],[181],{"type":21,"value":182},"{...props}",{"type":21,"value":184},") for fast graph queries.",{"type":16,"tag":41,"props":186,"children":188},{"id":187},"scoped-per-package-typescript-projects",[189],{"type":21,"value":190},"Scoped Per-Package TypeScript Projects",{"type":16,"tag":83,"props":192,"children":193},{},[194,210,251,276,302],{"type":16,"tag":87,"props":195,"children":196},{},[197,208],{"type":16,"tag":91,"props":198,"children":199},{},[200,202],{"type":21,"value":201},"One Language Service per ",{"type":16,"tag":24,"props":203,"children":205},{"className":204},[],[206],{"type":21,"value":207},"tsconfig.json",{"type":21,"value":209},": Each monorepo package gets its own lazily-created TypeScript Language Service.",{"type":16,"tag":87,"props":211,"children":212},{},[213,218,220,226,228,234,236,242,243,249],{"type":16,"tag":91,"props":214,"children":215},{},[216],{"type":21,"value":217},"Workspace & Nuxt resolution",{"type":21,"value":219},": Resolves monorepo ",{"type":16,"tag":24,"props":221,"children":223},{"className":222},[],[224],{"type":21,"value":225},"package.json#exports",{"type":21,"value":227}," directly to source files (even before ",{"type":16,"tag":24,"props":229,"children":231},{"className":230},[],[232],{"type":21,"value":233},"dist\u002F",{"type":21,"value":235}," is built) and reads ",{"type":16,"tag":24,"props":237,"children":239},{"className":238},[],[240],{"type":21,"value":241},".nuxt\u002Fimports.d.ts",{"type":21,"value":31},{"type":16,"tag":24,"props":244,"children":246},{"className":245},[],[247],{"type":21,"value":248},".nuxt\u002Fcomponents.d.ts",{"type":21,"value":250}," when present.",{"type":16,"tag":87,"props":252,"children":253},{},[254,259,261,266,268,274],{"type":16,"tag":91,"props":255,"children":256},{},[257],{"type":21,"value":258},"Pure-JS fallback",{"type":21,"value":260},": Packages without a ",{"type":16,"tag":24,"props":262,"children":264},{"className":263},[],[265],{"type":21,"value":207},{"type":21,"value":267}," still work using a synthetic ",{"type":16,"tag":24,"props":269,"children":271},{"className":270},[],[272],{"type":21,"value":273},"allowJs: true",{"type":21,"value":275}," configuration.",{"type":16,"tag":87,"props":277,"children":278},{},[279,284,286,292,294,300],{"type":16,"tag":91,"props":280,"children":281},{},[282],{"type":21,"value":283},"Bounded memory",{"type":21,"value":285},": An LRU pool keeps at most ",{"type":16,"tag":24,"props":287,"children":289},{"className":288},[],[290],{"type":21,"value":291},"3",{"type":21,"value":293}," active TypeScript projects in memory (with a ",{"type":16,"tag":24,"props":295,"children":297},{"className":296},[],[298],{"type":21,"value":299},"512 MB",{"type":21,"value":301}," soft cap and idle eviction) so long-running MCP sessions stay lightweight.",{"type":16,"tag":87,"props":303,"children":304},{},[305,310,312,318,319,325,326,332,333,339,340,346,347,353,355,360,362,368,370,376,377,383,384,390,391,397],{"type":16,"tag":91,"props":306,"children":307},{},[308],{"type":21,"value":309},"Fast vs exclusive execution lanes",{"type":21,"value":311},": Fast read-only calls (",{"type":16,"tag":24,"props":313,"children":315},{"className":314},[],[316],{"type":21,"value":317},"map_workspace",{"type":21,"value":59},{"type":16,"tag":24,"props":320,"children":322},{"className":321},[],[323],{"type":21,"value":324},"read_slice",{"type":21,"value":59},{"type":16,"tag":24,"props":327,"children":329},{"className":328},[],[330],{"type":21,"value":331},"search_code",{"type":21,"value":59},{"type":16,"tag":24,"props":334,"children":336},{"className":335},[],[337],{"type":21,"value":338},"inspect_file(resolve_types: false)",{"type":21,"value":59},{"type":16,"tag":24,"props":341,"children":343},{"className":342},[],[344],{"type":21,"value":345},"component_tree",{"type":21,"value":59},{"type":16,"tag":24,"props":348,"children":350},{"className":349},[],[351],{"type":21,"value":352},"state_flow",{"type":21,"value":354},") run up to ",{"type":16,"tag":91,"props":356,"children":357},{},[358],{"type":21,"value":359},"4 concurrently",{"type":21,"value":361},", while TypeScript-heavy calls (",{"type":16,"tag":24,"props":363,"children":365},{"className":364},[],[366],{"type":21,"value":367},"inspect_file",{"type":21,"value":369}," with ",{"type":16,"tag":24,"props":371,"children":373},{"className":372},[],[374],{"type":21,"value":375},"resolve_types: true",{"type":21,"value":59},{"type":16,"tag":24,"props":378,"children":380},{"className":379},[],[381],{"type":21,"value":382},"definition",{"type":21,"value":59},{"type":16,"tag":24,"props":385,"children":387},{"className":386},[],[388],{"type":21,"value":389},"references",{"type":21,"value":59},{"type":16,"tag":24,"props":392,"children":394},{"className":393},[],[395],{"type":21,"value":396},"impact",{"type":21,"value":398},") run exclusively so memory stays bounded.",{"title":10,"searchDepth":400,"depth":400,"links":401},3,[402,404],{"id":43,"depth":403,"text":46},2,{"id":187,"depth":403,"text":190},"markdown","content:docs:platform:semantic-engine.md","content","docs\u002Fplatform\u002Fsemantic-engine.md","docs\u002Fplatform\u002Fsemantic-engine","md",1795576105524]