diff --git a/README.md b/README.md
index 8fa46de..cd81e8a 100644
--- a/README.md
+++ b/README.md
@@ -16,7 +16,7 @@ First, install **StoryCraftr** using [pipx](https://pypa.github.io/pipx/), a too
To install **StoryCraftr**, run the following command:
```bash
-pipx install git+https://github.com/raestrada/storycraftr.git@v0.5.1-alpha1
+pipx install git+https://github.com/raestrada/storycraftr.git@v0.5.2-alpha1
```
### Important: Before using StoryCraftr, make sure to set your OpenAI API key:
diff --git a/docs/getting_started.md b/docs/getting_started.md
index 5216868..523e126 100644
--- a/docs/getting_started.md
+++ b/docs/getting_started.md
@@ -11,7 +11,7 @@ First, install **StoryCraftr** using [pipx](https://pypa.github.io/pipx/), a too
To install **StoryCraftr**, run the following command:
```bash
-pipx install git+https://github.com/raestrada/storycraftr.git@v0.5.1-alpha1
+pipx install git+https://github.com/raestrada/storycraftr.git@v0.5.2-alpha1
```
### Important: Before running the `storycraftr` command
diff --git a/docs/index.html b/docs/index.html
index b31b41b..187e418 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -310,7 +310,7 @@
Welcome to StoryCraftr 📚✨
🚧 Coming Soon - Beta Release! 🚀
Meanwhile, you can download the Alpha version, which is fully usable but may still have bugs:
- pipx install git+https://github.com/raestrada/storycraftr.git@v0.5.1-alpha1
+ pipx install git+https://github.com/raestrada/storycraftr.git@v0.5.2-alpha1
diff --git a/storycraftr/prompts/chapters.py b/storycraftr/prompts/chapters.py
index f8584b9..8daff47 100644
--- a/storycraftr/prompts/chapters.py
+++ b/storycraftr/prompts/chapters.py
@@ -3,14 +3,16 @@
CHAPTER_PROMPT_NEW = """
Write a detailed and engaging chapter for the following book premise: {prompt}.
Ensure the chapter contributes meaningfully to the plot, character development, and overall progression of the story.
-Generate content for a single chapter only, not an overarching story arc. The chapter should include a title and typical chapter structure, without subtitling or segmenting the content.
+Generate content for a single chapter only, not an overarching story arc.
+The chapter should include a title and typical chapter structure, without subtitling or segmenting the content.
"""
CHAPTER_PROMPT_REFINE = """
Refine and evolve the content based on this prompt: {prompt}.
Improve the narrative flow, character development, and pacing.
-Generate content for a single chapter only, not an overarching story arc. The chapter should include a title and typical chapter structure, without subtitling or segmenting the content.
+Generate content for a single chapter only, not an overarching story arc.
+The chapter should include a title and typical chapter structure, without subtitling or segmenting the content.
"""
@@ -33,7 +35,8 @@
EPILOGUE_PROMPT_NEW = """
Generate a complete and compelling epilogue for the book based on the following context: {prompt}.
The epilogue should tie up loose ends and provide closure in a way that complements the main storyline.
-Generate content for a single chapter only, not an overarching story arc. The chapter should include a title and typical chapter structure, without subtitling or segmenting the content.
+Generate content for a single chapter only, not an overarching story arc.
+The chapter should include a title and typical chapter structure, without subtitling or segmenting the content.
"""
@@ -41,5 +44,6 @@
Refine and evolve the content based on this prompt: {prompt}.
Improve its narrative flow, tie up remaining plot points, and evolve the content.
Ensure that the refined epilogue maintains the tone and themes of the story.
-Generate content for a single chapter only, not an overarching story arc. The chapter should include a title and typical chapter structure, without subtitling or segmenting the content.
+Generate content for a single chapter only, not an overarching story arc.
+The chapter should include a title and typical chapter structure, without subtitling or segmenting the content.
"""
diff --git a/storycraftr/prompts/outline.py b/storycraftr/prompts/outline.py
index f4b912a..d9dd1bb 100644
--- a/storycraftr/prompts/outline.py
+++ b/storycraftr/prompts/outline.py
@@ -1,37 +1,45 @@
GENERAL_OUTLINE_PROMPT_NEW = """
Create a general outline for the book {book_name} based on this prompt: {prompt}.
+Focus on general outline, then I will request help on plot-points, character-summary and chapt-synopsis.
"""
GENERAL_OUTLINE_PROMPT_REFINE = """
Refine and evolve the content based on this prompt: {prompt}.
Focus on improving the structure and flow of the outline, ensuring clarity and coherence throughout.
+Focus on general outline, then I will request help on plot-points, character-summary and chapt-synopsis.
"""
CHARACTER_SUMMARY_PROMPT_NEW = """
Generate a detailed character summary for the book {book_name} based on this prompt: {prompt}.
Define most important characters startign for the main characters and continuing with secondaries.
+Focus on character-summary, then I will request help on plot-points, general-outline and chapt-synopsis.
"""
CHARACTER_SUMMARY_PROMPT_REFINE = """
Refine and evolve the content based on this prompt: {prompt}.
Enhance character depth, motivation, and consistency with the overall narrative.
+Focus on character-summary, then I will request help on plot-points, general-outline and chapt-synopsis.
"""
PLOT_POINTS_PROMPT_NEW = """
Generate the main plot points for the book {book_name} based on this prompt: {prompt}.
+Focus on plot-points, then I will request help on plot-points, character-summary and chapt-synopsis.
"""
PLOT_POINTS_PROMPT_REFINE = """
Refine and evolve the content based on this prompt: {prompt}.
Ensure logical progression between plot points and strengthen the links between key events.
+Focus on plot-points, then I will request help on plot-points, character-summary and chapt-synopsis.
"""
CHAPTER_SYNOPSIS_PROMPT_NEW = """
Generate a chapter-by-chapter synopsis for the book {book_name} based on this prompt: {prompt}.
List all chapters and its synopsis.
+Focus on chapter-synopsis, then I will request help on gemneral-outline, character-summary and chapt-synopsis.
"""
CHAPTER_SYNOPSIS_PROMPT_REFINE = """
Refine and evolve the content based on this prompt: {prompt}.
Focus on improving chapter summaries by clarifying pivotal moments and enhancing narrative tension.
+Focus on chapter-synopsis, then I will request help on gemneral-outline, character-summary and chapt-synopsis.
"""
diff --git a/storycraftr/utils/core.py b/storycraftr/utils/core.py
index 7bc5310..a0fdd7f 100644
--- a/storycraftr/utils/core.py
+++ b/storycraftr/utils/core.py
@@ -1,6 +1,5 @@
import os
import secrets # Para generar números aleatorios seguros
-import hashlib
import json
from typing import NamedTuple
from rich.console import Console
@@ -12,15 +11,11 @@
def generate_prompt_with_hash(original_prompt, date):
- # Genera un hash basado en el contenido del prompt
- hash_object = hashlib.sha256(original_prompt.encode())
- hash_hex = hash_object.hexdigest()
-
# Selecciona una frase aleatoria de la lista usando secrets.choice para mayor seguridad
random_phrase = secrets.choice(longer_date_formats).format(date=date)
# Combina la frase seleccionada, un salto de lÃnea, el hash y el prompt original
- modified_prompt = f"{random_phrase}\n\n{hash_hex[:10]}: {original_prompt}" # Usa los primeros 10 caracteres del hash
+ modified_prompt = f"{random_phrase}\n\n{original_prompt}" # Usa los primeros 10 caracteres del hash
# Si el modo debug está activado, imprime el prompt modificado en formato Markdown
if debug_state.is_debug():