refactor: rename "Staggered Prompts" to "Timed Prompts" for clarity

Renames command terminology throughout codebase to better reflect
regular interval delivery rather than irregular/staggered timing.

Changes:
- Rename staggeredPrompts.ts → timedPrompts.ts
- Update class StaggeredPromptsCommand → TimedPromptsCommand
- Update command IDs: staggered-prompts → timed-prompts
- Update user-facing labels in settings and README
- Update property names: staggeredCount → timedCount
- Update method names: generateStaggeredPrompts → generateTimedPrompts
- Update API constants and type annotations

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Jarvis committed 2025-09-21 07:53:48 +02:00
1 parent 8147662d61
commit 4786e7647d
8 files changed
+65 -65

No files matched your search

+4 -4
View File
@@ -9,7 +9,7 @@ export class AnthropicClient {
private baseUrl = 'https://api.anthropic.com/v1/messages';
private readonly SYSTEM_PROMPT_SUFFIX = '\n\nIMPORTANT OUTPUT REQUIREMENTS:\n- Return ONLY the numbered writing prompts, nothing else\n- Do not include any explanations, questions, or additional commentary\n- Do not ask if the user wants more prompts or different styles\n- Format: numbered list with one prompt per line (1. [prompt], 2. [prompt], etc.)';
private readonly STAGGERED_PROMPT_MODIFIER = '\n\nFOR STAGGERED PROMPTS - MAKE THEM EXTREMELY SHORT AND DIRECT:\n- Each prompt should be answerable in 1-5 words or a single sentence\n- Focus on immediate, concrete observations or quick thoughts\n- Avoid complex scenarios or deep philosophical questions\n- Examples: "What color is closest to you?", "Your favorite word today:", "First sound you hear:", "Describe your mood in one word", "Name something soft"\n- Keep prompts simple, immediate, and concrete';
private readonly TIMED_PROMPT_MODIFIER = '\n\nFOR TIMED PROMPTS - MAKE THEM EXTREMELY SHORT AND DIRECT:\n- Each prompt should be answerable in 1-5 words or a single sentence\n- Focus on immediate, concrete observations or quick thoughts\n- Avoid complex scenarios or deep philosophical questions\n- Examples: "What color is closest to you?", "Your favorite word today:", "First sound you hear:", "Describe your mood in one word", "Name something soft"\n- Keep prompts simple, immediate, and concrete';
constructor(apiKey: string) {
this.apiKey = apiKey;
@@ -22,7 +22,7 @@ export class AnthropicClient {
model: AnthropicModel,
systemPrompt: string,
examplePrompt: string,
type: 'staggered' | 'note'
type: 'timed' | 'note'
): Promise<string[]> {
if (!this.apiKey) {
throw new Error('API key is required');
@@ -33,8 +33,8 @@ export class AnthropicClient {
// Build system prompt with type-specific modifiers
let finalSystemPrompt = systemPrompt;
if (type === 'staggered') {
finalSystemPrompt += this.STAGGERED_PROMPT_MODIFIER;
if (type === 'timed') {
finalSystemPrompt += this.TIMED_PROMPT_MODIFIER;
}
finalSystemPrompt += this.SYSTEM_PROMPT_SUFFIX;