frontmatter in skills/t/p

This commit is contained in:
2026-02-17 22:36:54 +00:00
parent cb603e3cf9
commit d3f94e45ea
19 changed files with 46 additions and 36 deletions
@@ -19,6 +19,7 @@ type EmbeddableChatProps = {
onBeforeSend?: (text: string) => boolean | Promise<boolean>;
commandFeedback?: string | null;
defaultInput?: string;
promptPrefix?: string;
className?: string;
cwd?: { root?: string; path: string };
autoSend?: boolean;
@@ -32,6 +33,7 @@ export const EmbeddableChat = ({
onBeforeSend,
commandFeedback = null,
defaultInput = '',
promptPrefix,
className,
cwd,
autoSend = false,
@@ -126,8 +128,8 @@ export const EmbeddableChat = ({
}
}
// Prepend attachment content to the prompt
let prompt = text;
// Prepend metadata/attachment content to the prompt
let prompt = promptPrefix ? `${promptPrefix}\n\n${text}` : text;
const ids: string[] = [];
const images: { filename: string; dataUrl: string }[] = [];
for (const a of attachments) {