Fixes breakage introduced by #320 which changed `SiteNode.children` from embedded `BuildingNode | ItemNode` objects to flat `string[]` IDs. - `packages/mcp/src/lib/rehydrate-site-children.ts`: replace now-obsolete re-embedding logic with a no-op passthrough (call-site compatible) - `packages/mcp/src/tools/variants/generate-variants.ts`: drop the inline copy of the same function and its call - `packages/nodes/src/site/renderer.tsx`: cast `childId as AnyNodeId` since `SiteNode.children` is now `string[]`, not `AnyNodeId[]` Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
13 lines
485 B
TypeScript
13 lines
485 B
TypeScript
import type { SceneGraph } from '@pascal-app/core/clone-scene-graph'
|
|
|
|
/**
|
|
* Previously re-embedded `SiteNode.children` from flat IDs back to full node
|
|
* objects to match the old schema. Since `SiteNode.children` is now
|
|
* `string[]` (upstream change), `cloneSceneGraph` / `forkSceneGraph` already
|
|
* produce the correct form — this function is a no-op kept for call-site
|
|
* compatibility.
|
|
*/
|
|
export function rehydrateSiteChildren(graph: SceneGraph): SceneGraph {
|
|
return graph
|
|
}
|