aidp 0.21.0 → 0.21.1
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/lib/aidp/version.rb +1 -1
- data/lib/aidp/workflows/guided_agent.rb +13 -4
- 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: 3fd6b2db707c511e0bc99dedaf4c3f5ec8253eae8d7b93676c9b0dee8ef1f4ed
|
|
4
|
+
data.tar.gz: 558e0bb69e104ed325b77333d401ebde141eb2b7f969ac8eb473ce253331b244
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4e1455bf6c12523a5598ec8da183c7bf720512a8edee62e9dd22d32f75774bbb4801c506fd9d45da29486fdd15b9a249a2846f092ce1100cd8b2df84f9ee3c39
|
|
7
|
+
data.tar.gz: f100cbd42b108e823c0735d1c643cfc4cf3f9f9bc7ea92547466bc33a1001a36ceceedaee45f1e319214503edf804e982478047720be52fcafb23440728b8d55
|
data/lib/aidp/version.rb
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
+
require "fileutils"
|
|
3
4
|
require_relative "../harness/provider_manager"
|
|
4
5
|
require_relative "../harness/provider_factory"
|
|
5
6
|
require_relative "../harness/config_manager"
|
|
@@ -105,6 +106,7 @@ module Aidp
|
|
|
105
106
|
|
|
106
107
|
# Ask questions
|
|
107
108
|
question_response[:questions]&.each do |question|
|
|
109
|
+
puts "\n" + ("─" * 80) if iteration > 1 # Visual separator between Q&A pairs
|
|
108
110
|
answer = @prompt.ask(question)
|
|
109
111
|
@conversation_history << {role: "assistant", content: question}
|
|
110
112
|
@conversation_history << {role: "user", content: answer}
|
|
@@ -115,7 +117,8 @@ module Aidp
|
|
|
115
117
|
|
|
116
118
|
# Guard: break loop after 10 iterations to avoid infinite loop
|
|
117
119
|
if iteration >= 10
|
|
118
|
-
display_message("[
|
|
120
|
+
display_message("[WARNING] Planning loop exceeded 10 iterations. Provider may be returning generic responses.", type: :warning)
|
|
121
|
+
display_message("Continuing with the plan information gathered so far...", type: :info)
|
|
119
122
|
break
|
|
120
123
|
end
|
|
121
124
|
end
|
|
@@ -532,7 +535,9 @@ module Aidp
|
|
|
532
535
|
Generated by AIDP Plan & Execute workflow on #{Time.now.strftime("%Y-%m-%d")}
|
|
533
536
|
PRD
|
|
534
537
|
|
|
535
|
-
File.
|
|
538
|
+
docs_dir = File.join(@project_dir, "docs")
|
|
539
|
+
FileUtils.mkdir_p(docs_dir) unless Dir.exist?(docs_dir)
|
|
540
|
+
File.write(File.join(docs_dir, "prd.md"), prd_content)
|
|
536
541
|
end
|
|
537
542
|
|
|
538
543
|
def generate_nfr_from_plan(plan)
|
|
@@ -548,7 +553,9 @@ module Aidp
|
|
|
548
553
|
Generated by AIDP Plan & Execute workflow on #{Time.now.strftime("%Y-%m-%d")}
|
|
549
554
|
NFR
|
|
550
555
|
|
|
551
|
-
File.
|
|
556
|
+
docs_dir = File.join(@project_dir, "docs")
|
|
557
|
+
FileUtils.mkdir_p(docs_dir) unless Dir.exist?(docs_dir)
|
|
558
|
+
File.write(File.join(docs_dir, "nfrs.md"), nfr_content)
|
|
552
559
|
end
|
|
553
560
|
|
|
554
561
|
def generate_style_guide_from_plan(plan)
|
|
@@ -563,7 +570,9 @@ module Aidp
|
|
|
563
570
|
Generated by AIDP Plan & Execute workflow on #{Time.now.strftime("%Y-%m-%d")}
|
|
564
571
|
STYLE
|
|
565
572
|
|
|
566
|
-
File.
|
|
573
|
+
docs_dir = File.join(@project_dir, "docs")
|
|
574
|
+
FileUtils.mkdir_p(docs_dir) unless Dir.exist?(docs_dir)
|
|
575
|
+
File.write(File.join(docs_dir, "LLM_STYLE_GUIDE.md"), style_guide_content)
|
|
567
576
|
end
|
|
568
577
|
|
|
569
578
|
def format_hash_for_doc(hash)
|