feat: Introduce clipboard types for MCP prompt attachments
This commit is contained in:
parent
69682dcb1a
commit
99d177d442
|
|
@ -34,10 +34,28 @@ export interface ClipboardTextAttachment {
|
|||
content: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Format for MCP prompt attachments when copied to clipboard
|
||||
*/
|
||||
export interface ClipboardMcpPromptAttachment {
|
||||
type: typeof AttachmentType.MCP_PROMPT;
|
||||
name: string;
|
||||
serverName: string;
|
||||
promptName: string;
|
||||
content: string;
|
||||
arguments?: Record<string, string>;
|
||||
}
|
||||
|
||||
/**
|
||||
* Union type for all clipboard attachment types
|
||||
*/
|
||||
export type ClipboardAttachment = ClipboardTextAttachment | ClipboardMcpPromptAttachment;
|
||||
|
||||
/**
|
||||
* Parsed result from clipboard content
|
||||
*/
|
||||
export interface ParsedClipboardContent {
|
||||
message: string;
|
||||
textAttachments: ClipboardTextAttachment[];
|
||||
mcpPromptAttachments: ClipboardMcpPromptAttachment[];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -87,6 +87,8 @@ export type {
|
|||
KeyValuePair,
|
||||
BinaryDetectionOptions,
|
||||
ClipboardTextAttachment,
|
||||
ClipboardMcpPromptAttachment,
|
||||
ClipboardAttachment,
|
||||
ParsedClipboardContent
|
||||
} from './common';
|
||||
|
||||
|
|
|
|||
|
|
@ -4,7 +4,10 @@ import type {
|
|||
DatabaseMessageExtra,
|
||||
DatabaseMessageExtraTextFile,
|
||||
DatabaseMessageExtraLegacyContext,
|
||||
DatabaseMessageExtraMcpPrompt,
|
||||
ClipboardTextAttachment,
|
||||
ClipboardMcpPromptAttachment,
|
||||
ClipboardAttachment,
|
||||
ParsedClipboardContent
|
||||
} from '$lib/types';
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue