feat(core): resolve prompt attachments

This commit is contained in:
Dax Raad 2026-07-06 15:04:23 -04:00
commit 4d100de194
29 changed files with 610 additions and 426 deletions

View file

@ -1,7 +1,7 @@
export * as PromptInput from "./prompt-input.js"
import { Schema } from "effect"
import { AgentAttachment, Source } from "./prompt.js"
import { AgentAttachment, PromptMention } from "./prompt.js"
import { optional, statics } from "./schema.js"
export interface FileAttachment extends Schema.Schema.Type<typeof FileAttachment> {}
@ -9,7 +9,7 @@ export const FileAttachment = Schema.Struct({
uri: Schema.String,
name: Schema.String.pipe(optional),
description: Schema.String.pipe(optional),
source: Source.pipe(optional),
mention: PromptMention.pipe(optional),
})
.annotate({ identifier: "PromptInput.FileAttachment" })
.pipe(