Skip to main content
The shared package provides the common type definitions, validation schemas, and utility functions used across all Toolshed packages.

Schemas

See Schema Reference for the complete field-by-field documentation.

Types

Interfaces

See PluginContext Reference for full details.

Utility functions

serializeCatalog(tools, sources): SerializedCatalog

Serializes tools and sources into the wire format, deduplicating JSON Schema objects into a shared type dictionary.

deserializeCatalog(catalog): { tools, sources }

Deserializes the wire format back into ToolDefinition[] and SourceRegistration[].

searchTools(tools, query, limit?): ToolDefinition[]

Weighted fuzzy search across tool paths, names, and descriptions. Uses AND semantics for multi-token queries.