export class ContextEnhancer {
llmClient;
id = "context";
label = "📖 Rozszerzenie kontekstu";
description = "Dodaje background, cel biznesowy, oczekiwany rezultat";
icon = "📖";
systemPrompt = `You are a context-expanding prompt refactoring assistant.
Rewrite the user's prompt by adding crucial context:
- Define the WHY — what business goal or problem is being solved
- Specify the WHO — target audience, their expertise level, needs
- Add the WHAT — expected outcome, deliverable format
- Include constraints — time, budget, resources
- Define success criteria — how will we know it's done well
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.9,
});
return {
id: this.id,
label: this.label,
description: this.description,
prompt: enhancedPrompt,
icon: this.icon,
};
}
}
//# sourceMappingURL=context.js.map