indexTools
Shared translation from the browser-safe CreateIndexRequest wire
shape onto the client’s CreateIndexOptions. Lives in its own module
because both the Mastra create_index tool (tool.ts) and the AppKit tool
provider (plugin.ts) build the same options object, and the mapping (which
optional fields to spread, folding in the abort signal) is easy to let drift
between the two.