ruby_todo 1.0.9 → 1.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/ruby_todo/ai_assistant/task_creator.rb +2 -0
- data/lib/ruby_todo/commands/ai_assistant.rb +23 -2
- data/lib/ruby_todo/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7b843fdda14d138619bd89530ac2133e5799a365101a9a8738d2309f671f33b4
|
4
|
+
data.tar.gz: c87f357f0eda45138a418aa833da84baaeda972a97871b984dd0d36a9bf286fa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d285c3bfe74592f2466e05873ddd024ac97855cc8517eab215437f2916a5c674dd48e7401c2dd22cc3e7f50f11ce839b73e984025c76cebf5d11257bbc7848e6
|
7
|
+
data.tar.gz: e7f5605b9e299197cfd45138325caff5df3160b2e79266615ed4d2fe419f1dced9b95a1671ba86fdb2b223cc7d183653a1ed243d588aa2d9f13949898f4a5216
|
data/CHANGELOG.md
CHANGED
@@ -83,6 +83,8 @@ module RubyTodo
|
|
83
83
|
- "fix login bug" → "Resolve Authentication Issue in Login System"
|
84
84
|
- "add monitoring to service" → "Implement Comprehensive Monitoring Solution for Service"
|
85
85
|
- "migrate repo to new org" → "Migrate Repository to New Organization Structure"
|
86
|
+
- "add newrelic to the questions engine app" → "Integrate New Relic Monitoring with Questions Engine Application"
|
87
|
+
- "create a new task to add newrelic to the questions engine app" → "Implement New Relic Monitoring for Questions Engine Application"
|
86
88
|
|
87
89
|
Create concise but descriptive titles that use proper capitalization and professional terminology.
|
88
90
|
PROMPT
|
@@ -837,9 +837,10 @@ module RubyTodo
|
|
837
837
|
# Create a CLI instance for executing commands
|
838
838
|
cli = RubyTodo::CLI.new
|
839
839
|
|
840
|
-
# Special case: handling natural language task creation
|
840
|
+
# Special case: handling natural language task creation with title enhancement
|
841
841
|
if prompt.match?(/create(?:\s+a)?\s+(?:new\s+)?task\s+(?:to|for|about)\s+(.+)/i)
|
842
|
-
|
842
|
+
task_description = prompt.match(/create(?:\s+a)?\s+(?:new\s+)?task\s+(?:to|for|about)\s+(.+)/i)[1].strip
|
843
|
+
handle_task_creation_with_enhancement(task_description, api_key)
|
843
844
|
return
|
844
845
|
end
|
845
846
|
|
@@ -1688,6 +1689,26 @@ module RubyTodo
|
|
1688
1689
|
end
|
1689
1690
|
end
|
1690
1691
|
|
1692
|
+
# Enhanced task creation that uses AI to improve titles
|
1693
|
+
def handle_task_creation_with_enhancement(task_description, api_key)
|
1694
|
+
# Get the default notebook
|
1695
|
+
notebook_name = default_notebook_name
|
1696
|
+
|
1697
|
+
# Log the original description if in verbose mode
|
1698
|
+
say "Original task description: #{task_description}" if @options[:verbose]
|
1699
|
+
|
1700
|
+
# Generate task details using AI
|
1701
|
+
task_details = generate_task_details(task_description, api_key)
|
1702
|
+
|
1703
|
+
# Log the enhanced title for better UX
|
1704
|
+
if task_details["title"] && task_details["title"] != task_description
|
1705
|
+
say "✨ Enhanced title: \"#{task_details["title"]}\"".green
|
1706
|
+
end
|
1707
|
+
|
1708
|
+
# Create the task with the enhanced details
|
1709
|
+
create_task_from_details(notebook_name, task_details)
|
1710
|
+
end
|
1711
|
+
|
1691
1712
|
def handle_natural_language_task_creation(prompt, _api_key)
|
1692
1713
|
# Make sure Ruby Todo is initialized
|
1693
1714
|
initialize_ruby_todo
|
data/lib/ruby_todo/version.rb
CHANGED