refactor: trim chat attachment type exports

This commit is contained in:
Peter Steinberger
2026-05-02 01:09:03 +01:00
parent 002c1d9c35
commit c80ffe3f01
3 changed files with 6 additions and 6 deletions

View File

@@ -27,7 +27,7 @@ export function decodeStrictBase64(value: string, maxDecodedBytes: number): Buff
return decoded;
}
export type SubagentInlineAttachment = {
type SubagentInlineAttachment = {
name: string;
content: string;
encoding?: "utf8" | "base64";
@@ -48,14 +48,14 @@ export type SubagentAttachmentReceiptFile = {
sha256: string;
};
export type SubagentAttachmentReceipt = {
type SubagentAttachmentReceipt = {
count: number;
totalBytes: number;
files: SubagentAttachmentReceiptFile[];
relDir: string;
};
export type MaterializeSubagentAttachmentsResult =
type MaterializeSubagentAttachmentsResult =
| {
status: "ok";
receipt: SubagentAttachmentReceipt;

View File

@@ -1,8 +1,8 @@
import { parseFenceSpans } from "../markdown/fences.js";
export type CanvasSurface = "assistant_message";
type CanvasSurface = "assistant_message";
export type CanvasPreview = {
type CanvasPreview = {
kind: "canvas";
surface: CanvasSurface;
render: "url";

View File

@@ -1,6 +1,6 @@
export type ToolContentBlock = Record<string, unknown>;
export function normalizeToolContentType(value: unknown): string {
function normalizeToolContentType(value: unknown): string {
return typeof value === "string" ? value.toLowerCase() : "";
}