feat: Introduce clipboard types for MCP prompt attachments
This commit is contained in:
parent
5e96dbc279
commit
ed7f18ac30
|
|
@ -34,10 +34,28 @@ export interface ClipboardTextAttachment {
|
||||||
content: string;
|
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
|
* Parsed result from clipboard content
|
||||||
*/
|
*/
|
||||||
export interface ParsedClipboardContent {
|
export interface ParsedClipboardContent {
|
||||||
message: string;
|
message: string;
|
||||||
textAttachments: ClipboardTextAttachment[];
|
textAttachments: ClipboardTextAttachment[];
|
||||||
|
mcpPromptAttachments: ClipboardMcpPromptAttachment[];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -87,6 +87,8 @@ export type {
|
||||||
KeyValuePair,
|
KeyValuePair,
|
||||||
BinaryDetectionOptions,
|
BinaryDetectionOptions,
|
||||||
ClipboardTextAttachment,
|
ClipboardTextAttachment,
|
||||||
|
ClipboardMcpPromptAttachment,
|
||||||
|
ClipboardAttachment,
|
||||||
ParsedClipboardContent
|
ParsedClipboardContent
|
||||||
} from './common';
|
} from './common';
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,10 @@ import type {
|
||||||
DatabaseMessageExtra,
|
DatabaseMessageExtra,
|
||||||
DatabaseMessageExtraTextFile,
|
DatabaseMessageExtraTextFile,
|
||||||
DatabaseMessageExtraLegacyContext,
|
DatabaseMessageExtraLegacyContext,
|
||||||
|
DatabaseMessageExtraMcpPrompt,
|
||||||
ClipboardTextAttachment,
|
ClipboardTextAttachment,
|
||||||
|
ClipboardMcpPromptAttachment,
|
||||||
|
ClipboardAttachment,
|
||||||
ParsedClipboardContent
|
ParsedClipboardContent
|
||||||
} from '$lib/types';
|
} from '$lib/types';
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue