aidp 0.9.0 → 0.9.2
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/cli/first_run_wizard.rb +21 -14
- data/lib/aidp/harness/configuration.rb +3 -1
- data/lib/aidp/harness/user_interface.rb +1 -1
- data/lib/aidp/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: bcf709ed6451e77499fff97f73bd358736e633981294d35f11fa1e70b740cf9d
|
4
|
+
data.tar.gz: 27f5538e3b397751ba0813a07f87020adcbd6f6712fe45c5c9263572eeed82ab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dec2b6e589618a445e2a66dbf14476e809dac13a5f14da7a33309ee9b489d3203197b4f0c55e13ff7dd569918ad2d5b9501556cb023afd6b1be6c22212a1b7ce
|
7
|
+
data.tar.gz: 5c91e5acd414d421111669df86bb5a79c553ff20252e54fdf9e5df5cb2986e48bc7729279b504d4bb6e490ec63f047c7cd7654157095d2a180e5c11844e1240c
|
@@ -188,17 +188,17 @@ module Aidp
|
|
188
188
|
|
189
189
|
provider_section = {}
|
190
190
|
providers.each do |prov|
|
191
|
-
provider_section[prov
|
191
|
+
provider_section[prov] = {"type" => (prov == "cursor") ? "package" : "usage_based", "default_flags" => []}
|
192
192
|
end
|
193
193
|
|
194
194
|
data = {
|
195
|
-
harness
|
196
|
-
max_retries
|
197
|
-
default_provider
|
198
|
-
fallback_providers
|
199
|
-
no_api_keys_required
|
195
|
+
"harness" => {
|
196
|
+
"max_retries" => 2,
|
197
|
+
"default_provider" => provider_name,
|
198
|
+
"fallback_providers" => fallback_providers,
|
199
|
+
"no_api_keys_required" => restrict
|
200
200
|
},
|
201
|
-
providers
|
201
|
+
"providers" => provider_section
|
202
202
|
}
|
203
203
|
File.write(dest, YAML.dump(data))
|
204
204
|
dest
|
@@ -248,18 +248,25 @@ module Aidp
|
|
248
248
|
providers.each do |prov|
|
249
249
|
# Try to preserve existing provider config if it exists
|
250
250
|
existing_provider = providers_config[prov.to_sym] || providers_config[prov.to_s]
|
251
|
-
|
251
|
+
if existing_provider
|
252
|
+
# Convert existing provider config to string keys
|
253
|
+
converted_provider = {}
|
254
|
+
existing_provider.each { |k, v| converted_provider[k.to_s] = v }
|
255
|
+
provider_section[prov] = converted_provider
|
256
|
+
else
|
257
|
+
provider_section[prov] = {"type" => (prov == "cursor") ? "package" : "usage_based", "default_flags" => []}
|
258
|
+
end
|
252
259
|
end
|
253
260
|
|
254
261
|
# Build the new config
|
255
262
|
data = {
|
256
|
-
harness
|
257
|
-
max_retries
|
258
|
-
default_provider
|
259
|
-
fallback_providers
|
260
|
-
no_api_keys_required
|
263
|
+
"harness" => {
|
264
|
+
"max_retries" => harness_config[:max_retries] || harness_config["max_retries"] || 2,
|
265
|
+
"default_provider" => provider_name,
|
266
|
+
"fallback_providers" => fallback_providers,
|
267
|
+
"no_api_keys_required" => restrict_input
|
261
268
|
},
|
262
|
-
providers
|
269
|
+
"providers" => provider_section
|
263
270
|
}
|
264
271
|
|
265
272
|
File.write(dest, YAML.dump(data))
|
@@ -298,7 +298,9 @@ module Aidp
|
|
298
298
|
end
|
299
299
|
|
300
300
|
# Validate each provider configuration using config_validator
|
301
|
-
|
301
|
+
# Only validate providers that are actually referenced in the harness configuration
|
302
|
+
providers_to_validate = [default_provider] + fallback_providers
|
303
|
+
providers_to_validate.uniq.each do |provider|
|
302
304
|
require_relative "config_validator"
|
303
305
|
validator = ConfigValidator.new(@project_dir)
|
304
306
|
validation_result = validator.validate_provider(provider)
|
@@ -1091,7 +1091,7 @@ module Aidp
|
|
1091
1091
|
number_str = input.strip
|
1092
1092
|
|
1093
1093
|
# Check for valid float format
|
1094
|
-
if !number_str.match?(/\A-?\d
|
1094
|
+
if !number_str.match?(/\A-?\d+(?:\.\d+)?\z/)
|
1095
1095
|
result[:error_message] = "Invalid number format"
|
1096
1096
|
result[:suggestions] = [
|
1097
1097
|
"Enter a number (e.g., 25, 3.14, -10.5)",
|
data/lib/aidp/version.rb
CHANGED