@devries-cameron20 / t3code Mirror · read-only
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 04:45 UTC

main
ts 9 lines 387 Bytes
Raw
1 import { ChatFileAttachment, ChatImageAttachment } from "@t3tools/contracts";
2 import * as Schema from "effect/Schema";
3 import * as Struct from "effect/Struct";
4
5 // Keep screenshot provenance in app metadata; its recursive tree breaks model tool schemas.
6 export const McpAttachmentInput = Schema.Union([
7 ChatImageAttachment.mapFields(Struct.omit(["source"])),
8 ChatFileAttachment,
9 ]);