mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 06:50:43 +00:00
refactor: trim chat attachment type exports
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -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() : "";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user