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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7e97ff16764d44d769c3ad8f3c8bb9a1d8bb70b4974e886a080aa459e684b5c2
4
- data.tar.gz: 66ed459f46a8c9f24ed6ecdf3f9fc6fa0c2308992a908a6bbb249289cad33650
3
+ metadata.gz: bcf709ed6451e77499fff97f73bd358736e633981294d35f11fa1e70b740cf9d
4
+ data.tar.gz: 27f5538e3b397751ba0813a07f87020adcbd6f6712fe45c5c9263572eeed82ab
5
5
  SHA512:
6
- metadata.gz: 653914639a2d590b7d64ac5e17c65c5a1a0b487c04d8fdd6d337ef3b9944df5c7328af109f22f9faf63f96d8b9050e87c8fdfead177272cb3fe943fed868f1bd
7
- data.tar.gz: 381226cdbd941f88d82f932d635007ead6f9528891aed359e2e0939688440c58e3cf218e66f9a3d17dc7b6dd3b34a3e68951c80b89bcc1808024a1ab4fe85c0e
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.to_sym] = {type: (prov == "cursor") ? "package" : "usage_based", default_flags: []}
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: 2,
197
- default_provider: provider_name,
198
- fallback_providers: fallback_providers,
199
- no_api_keys_required: restrict
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: provider_section
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
- provider_section[prov.to_sym] = (existing_provider || {type: (prov == "cursor") ? "package" : "usage_based", default_flags: []})
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: harness_config[:max_retries] || harness_config["max_retries"] || 2,
258
- default_provider: provider_name,
259
- fallback_providers: fallback_providers,
260
- no_api_keys_required: restrict_input
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: provider_section
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
- configured_providers.each do |provider|
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+\.?\d*\z/)
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Aidp
4
- VERSION = "0.9.0"
4
+ VERSION = "0.9.2"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aidp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.9.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bart Agapinan