export class ConstraintsEnhancer {
llmClient;
id = "constraints";
label = "🚧 Ograniczenia i scope";
description = "Dodaje wyraźne granice, czego nie robić, warunki brzegowe";
icon = "🚧";
systemPrompt = `You are a constraints-focused prompt refactoring assistant.
Rewrite the user's prompt with explicit boundaries:
- Add DO / DO NOT sections with clear rules
- Define success criteria — what "done" looks like
- Specify constraints: budget, time, compatibility, dependencies
- Add edge cases to handle or ignore
- Define the scope boundary — what's IN and what's OUT
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.4,
});
return {
id: this.id,
label: this.label,
description: this.description,
prompt: enhancedPrompt,
icon: this.icon,
};
}
}
//# sourceMappingURL=constraints.js.map