fix(mcp): use local sqlite scene storage

This commit is contained in:
Aymeric Rabot
2026-04-24 13:32:04 -07:00
parent 06d00566f0
commit b3d1f663f6
119 changed files with 1086 additions and 23694 deletions
+7 -3
View File
@@ -8,11 +8,15 @@ import { z } from 'zod'
/** A node identifier — non-empty string. The core uses `${prefix}_${nanoid}`. */
export const NodeIdSchema = z.string().min(1)
/** 2D point as [x, z] (floor plane). Matches core's tuple convention. */
export const Vec2Schema = z.tuple([z.number(), z.number()])
/**
* 2D point as [x, z] (floor plane). Use array length constraints instead of
* `z.tuple()` so MCP hosts that only accept JSON Schema's common `items` shape
* can register the tools.
*/
export const Vec2Schema = z.array(z.number()).min(2).max(2)
/** 3D point as [x, y, z]. */
export const Vec3Schema = z.tuple([z.number(), z.number(), z.number()])
export const Vec3Schema = z.array(z.number()).min(3).max(3)
/**
* A single patch operation. Union of create / update / delete.