Everything a mod contributes, in one object literal.
`metadata` is the only required field. Every other slot is optional and
becomes an empty list when omitted, so a mod declares only the surfaces it
actually has.
Two slots are easy to misplace. Palette commands and chat slash commands
both live in the single top-level `commands` array. Tools live under
`ai.tools`, not in `commands`, because the model calls them rather than the
user.
type ModDefinition = Partial<Omit<Mod, 'metadata' | 'agents' | 'tools' | 'prompts'>> & { /** Display name, description, icon, and marketplace fields. */ readonly metadata: ModMetadata; /** * Declared agents and the tools the model may call. Agents are * configuration and have no handler; tools carry the `run` the model * invokes. */ readonly ai?: AiModDefinition; /** Reusable prompt text an author can insert in the composer. */ readonly prompts?: readonly Prompt[]; }