Fix TypeScript errors and export UserMessageWithAttachments

- Export UserMessageWithAttachments type from web-ui index
- Remove unused i18n import from extract-document tool
- Update models.generated.ts (model order changes from API)

This fixes type errors when sitegeist uses custom user message renderer
This commit is contained in:
Mario Zechner 2025-10-12 17:09:14 +02:00
parent f8b98f7dac
commit 4079bced36
3 changed files with 48 additions and 48 deletions

View file

@ -18,7 +18,7 @@ export { Input } from "./components/Input.js";
export { MessageEditor } from "./components/MessageEditor.js";
export { MessageList } from "./components/MessageList.js";
// Message components
export type { AppMessage, CustomMessages } from "./components/Messages.js";
export type { AppMessage, CustomMessages, UserMessageWithAttachments } from "./components/Messages.js";
export { AssistantMessage, ToolMessage, UserMessage } from "./components/Messages.js";
// Message renderer registry
export {

View file

@ -1,4 +1,4 @@
import { html, i18n } from "@mariozechner/mini-lit";
import { html } from "@mariozechner/mini-lit";
import type { AgentTool, ToolResultMessage } from "@mariozechner/pi-ai";
import { type Static, Type } from "@sinclair/typebox";
import { createRef, ref } from "lit/directives/ref.js";