export class ClarityEnhancer {
llmClient;
id = "clarity";
label = "✨ Klarowność i struktura";
description = "Poprawia czytelność, porządkuje myśli, rozbija złożone zdania";
icon = "✨";
systemPrompt = `You are a clarity-focused prompt refactoring assistant.
Rewrite the user's prompt to maximize clarity:
- Break run-on sentences into shorter, focused statements
- Use bullet points or numbered lists for multi-part requests
- Group related requirements together under clear headings
- Remove ambiguous phrases, filler words, and vague qualifiers
- Keep all original intent and information — reorganize, don't cut
Return ONLY the refactored prompt, no explanations.`;
constructor(llmClient) {
this.llmClient = llmClient;
}
async generate(originalPrompt, options) {
const enhancedPrompt = await this.llmClient.call({
systemPrompt: this.systemPrompt,
userPrompt: originalPrompt,
temperature: options.temperature * 0.8,
});
return {
id: this.id,
label: this.label,
description: this.description,
prompt: enhancedPrompt,
icon: this.icon,
};
}
}
//# sourceMappingURL=clarity.js.map