Rename idea_app to app_idea and update output directories to match plugin names

This commit is contained in:
Gigi
2025-04-01 14:10:15 +01:00
parent 798a911a48
commit 12dee55089
2 changed files with 24 additions and 8 deletions

16
plugins/app_idea.md Normal file
View File

@@ -0,0 +1,16 @@
Based on the following transcript and its summary, create a detailed app idea specification. The specification should include:
1. App name and tagline
2. Problem statement
3. Target audience
4. Key features
5. Technical considerations
6. User flow
7. Potential challenges
Transcript:
{transcript}
Summary:
{summary}
App Idea Specification:

View File

@@ -14,7 +14,7 @@ def determine_content_types(transcript_text: str) -> list[str]:
if re.search(r'\bblog post\b', text) or re.search(r'\bdraft\b', text):
content_types.append("blog_post")
if re.search(r'\bidea\b', text) and re.search(r'\bapp\b', text):
content_types.append("idea_app")
content_types.append("app_idea")
return content_types if content_types else ["default"]
@@ -45,12 +45,12 @@ def main():
# Set up directory paths
voice_memo_dir = Path("VoiceMemos")
draft_dir = voice_memo_dir / "drafts"
prompt_dir = voice_memo_dir / "prompts"
blog_posts_dir = voice_memo_dir / "blog_posts"
app_ideas_dir = voice_memo_dir / "app_ideas"
# Create output directories if they don't exist
draft_dir.mkdir(parents=True, exist_ok=True)
prompt_dir.mkdir(parents=True, exist_ok=True)
blog_posts_dir.mkdir(parents=True, exist_ok=True)
app_ideas_dir.mkdir(parents=True, exist_ok=True)
print(f"Processing transcript: {input_file}")
print("Extracting content...")
@@ -77,9 +77,9 @@ def main():
timestamp = time.strftime("%Y%m%d_%H%M%S")
filename = input_file.stem
if content_type == "blog_post":
output_file = draft_dir / f"{filename}_{timestamp}.md"
else: # idea_app
output_file = prompt_dir / f"{filename}_{timestamp}.md"
output_file = blog_posts_dir / f"{filename}_{timestamp}.md"
else: # app_idea
output_file = app_ideas_dir / f"{filename}_{timestamp}.md"
with open(output_file, 'w', encoding='utf-8') as f:
f.write(additional_content)