feather-ai 0.5.0 → 0.6.0

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: fa4e06ced9d8d48c533d41f97148fba4c26f3ffa478a603c4562960d50e6594f
4
- data.tar.gz: 6f04ec946376b964fbf0a049a7837f20bae6eab45690e802b22e4f03b3789bc3
3
+ metadata.gz: 4082e6dc24e5a79a008a9df90d99bff5b8a42db1eac2e240c1f47436b902b2b5
4
+ data.tar.gz: 22d57129281a1401dee9c437fc886a1c8757aa23f2654e659b972e55f24ff93c
5
5
  SHA512:
6
- metadata.gz: 943e45ed67690b5791d953ff443e3d94ba9b1866f1143373ca08dc2ef59826720cbdd4a34eeb6d91cf8d2a626822738e068a9cae4750f92fbe8a4aa2a91b2cb7
7
- data.tar.gz: 903b3b7968b1ebebc411e5e8c518649ca8b5cf617461cb630725b861a3dfaba8eed7e914b01803ff5b65c05d92d1806ac6607e4cc5ce235db5f74a9ed59d0d9e
6
+ metadata.gz: 8b5e837d4a212ec7b7f9c891f3c81412a331c177378482eeb35f5e89cd83d8694f6ceba9705322ad25c296f2c9b95a8724f134003ca8cebdc94e21b26c08d175
7
+ data.tar.gz: 5dce15b4d929339d5e84c7844d52db6110786473fbe1dd2377b8bcc154e0a7614cb5a249d2c3f2d965055c5d3862c53b725c5ee9c3e9f65bf299a2d747a92368
data/.rubocop.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  AllCops:
2
- TargetRubyVersion: 3.2
2
+ TargetRubyVersion: 3.3
3
3
  NewCops: enable
4
4
 
5
5
  plugins:
data/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.6.0 - 2026-11-24
4
+
5
+ - **Breaking:** default `model` (and the first of `consensus_models`) is now `claude-sonnet-5-5`. Anthropic retires `claude-sonnet-4-5` on 2026-11-30, after which the old default stops working. `tips_model` stays on `claude-haiku-4-5`.
6
+ - **Breaking:** requires `ruby_llm` >= 2.1 (the first release whose model registry knows `claude-sonnet-5-5`).
7
+ - **Breaking:** requires Ruby >= 3.3 (3.2 is end-of-life). CI now tests 3.3, 3.4 and 4.0.
8
+ - Removed the stale `sig/Feather.rbs` signatures, which described a `Feather` module that no longer exists.
9
+
3
10
  ## 0.5.0 - 2026-10-02
4
11
 
5
12
  - **Breaking:** requires `ruby_llm` 2.x (fixes the ReDoS advisory in 1.x). Dev dependencies updated to clear all `bundle-audit` findings (rubocop no longer pulls in `mcp`).
data/CLAUDE.md CHANGED
@@ -68,12 +68,12 @@ All errors inherit from `FeatherAi::Error`: `ConfigurationError` (e.g. no image
68
68
 
69
69
  ```ruby
70
70
  FeatherAi.configure do |c|
71
- c.provider = :anthropic # default
72
- c.model = "claude-sonnet-4" # default
73
- c.location = "Perth, Western Australia" # biases results to local species
74
- c.consensus_models = ["claude-sonnet-4", "claude-haiku-4"] # default
75
- c.tips_model = "claude-haiku-4" # default
76
- c.media_resolution = :high # default; Gemini-only image resolution
71
+ c.provider = :anthropic # default
72
+ c.model = "claude-sonnet-5-5" # default
73
+ c.location = "Perth, Western Australia" # biases results to local species
74
+ c.consensus_models = ["claude-sonnet-5-5", "claude-haiku-4-5"] # default
75
+ c.tips_model = "claude-haiku-4-5" # default
76
+ c.media_resolution = :high # default; Gemini-only image resolution
77
77
  end
78
78
  ```
79
79
 
@@ -92,7 +92,7 @@ Generators: `rails generate feather_ai:install [model_name]` scaffolds the ident
92
92
 
93
93
  - Double quotes for all strings (configured in `.rubocop.yml`)
94
94
  - `frozen_string_literal: true` in every Ruby file
95
- - Target Ruby version: >= 3.2 (gemspec requires it; CI tests 3.2, 3.3, 3.4)
95
+ - Target Ruby version: >= 3.3 (gemspec requires it; CI tests 3.3, 3.4, 4.0)
96
96
  - RSpec with `expect` syntax only (monkey patching disabled)
97
97
 
98
98
  ## Testing
data/README.md CHANGED
@@ -23,9 +23,9 @@ gem install feather-ai
23
23
  ```ruby
24
24
  FeatherAi.configure do |c|
25
25
  c.provider = :anthropic # Deprecated no-op; RubyLLM 2 resolves the provider from the model
26
- c.model = "claude-sonnet-4-5" # Default: "claude-sonnet-4-5"
26
+ c.model = "claude-sonnet-5-5" # Default: "claude-sonnet-5-5"
27
27
  c.location = "Perth, WA" # Optional: biases results to local species
28
- c.consensus_models = ["claude-sonnet-4-5", "claude-haiku-4-5"] # Models used in consensus mode
28
+ c.consensus_models = ["claude-sonnet-5-5", "claude-haiku-4-5"] # Models used in consensus mode
29
29
  c.tips_model = "claude-haiku-4-5" # Model for photography tips (default)
30
30
  c.media_resolution = :high # Gemini only (generationConfig.mediaResolution); ignored elsewhere
31
31
  c.tools = [] # RubyLLM tools available to every identification (default: none)
@@ -131,7 +131,7 @@ Consensus models are configurable:
131
131
 
132
132
  ```ruby
133
133
  FeatherAi.configure do |c|
134
- c.consensus_models = ["claude-sonnet-4-5", "claude-haiku-4-5"]
134
+ c.consensus_models = ["claude-sonnet-5-5", "claude-haiku-4-5"]
135
135
  end
136
136
  ```
137
137
 
@@ -303,7 +303,7 @@ after { FeatherAi.reset! }
303
303
  ```ruby
304
304
  # In an initialiser or boot file — before any threads are created
305
305
  FeatherAi.configure do |c|
306
- c.model = "claude-sonnet-4-5"
306
+ c.model = "claude-sonnet-5-5"
307
307
  end
308
308
  ```
309
309
 
@@ -9,9 +9,9 @@ module FeatherAi
9
9
 
10
10
  def initialize
11
11
  @provider = :anthropic
12
- @model = "claude-sonnet-4-5"
12
+ @model = "claude-sonnet-5-5"
13
13
  @location = nil
14
- @consensus_models = %w[claude-sonnet-4-5 claude-haiku-4-5]
14
+ @consensus_models = %w[claude-sonnet-5-5 claude-haiku-4-5]
15
15
  @tips_model = "claude-haiku-4-5"
16
16
  @media_resolution = :high
17
17
  @tools = []
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module FeatherAi
4
- VERSION = "0.5.0"
4
+ VERSION = "0.6.0"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: feather-ai
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandyn Britton
@@ -15,14 +15,14 @@ dependencies:
15
15
  requirements:
16
16
  - - "~>"
17
17
  - !ruby/object:Gem::Version
18
- version: '2.0'
18
+ version: '2.1'
19
19
  type: :runtime
20
20
  prerelease: false
21
21
  version_requirements: !ruby/object:Gem::Requirement
22
22
  requirements:
23
23
  - - "~>"
24
24
  - !ruby/object:Gem::Version
25
- version: '2.0'
25
+ version: '2.1'
26
26
  description: A Ruby gem for identifying birds from photos and audio using RubyLLM.
27
27
  Adds multi-modal identification, location-aware results, multi-model consensus,
28
28
  and a Rails integration.
@@ -32,11 +32,6 @@ executables: []
32
32
  extensions: []
33
33
  extra_rdoc_files: []
34
34
  files:
35
- - ".idea/.gitignore"
36
- - ".idea/Feather.iml"
37
- - ".idea/copilot.data.migration.ask2agent.xml"
38
- - ".idea/modules.xml"
39
- - ".idea/vcs.xml"
40
35
  - ".rspec"
41
36
  - ".rubocop.yml"
42
37
  - ".ruby-version"
@@ -61,7 +56,6 @@ files:
61
56
  - lib/generators/feather_ai/install_generator.rb
62
57
  - lib/generators/feather_ai/templates/correction_migration.rb.tt
63
58
  - lib/generators/feather_ai/templates/migration.rb.tt
64
- - sig/Feather.rbs
65
59
  homepage: https://github.com/Birdup-Australia/Feather
66
60
  licenses:
67
61
  - MIT
@@ -77,7 +71,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
77
71
  requirements:
78
72
  - - ">="
79
73
  - !ruby/object:Gem::Version
80
- version: 3.2.0
74
+ version: 3.3.0
81
75
  required_rubygems_version: !ruby/object:Gem::Requirement
82
76
  requirements:
83
77
  - - ">="
data/.idea/.gitignore DELETED
@@ -1,10 +0,0 @@
1
- # Default ignored files
2
- /shelf/
3
- /workspace.xml
4
- # Ignored default folder with query files
5
- /queries/
6
- # Datasource local storage ignored files
7
- /dataSources/
8
- /dataSources.local.xml
9
- # Editor-based HTTP Client requests
10
- /httpRequests/
data/.idea/Feather.iml DELETED
@@ -1,78 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <module type="RUBY_MODULE" version="4">
3
- <component name="ModuleRunConfigurationManager">
4
- <shared />
5
- </component>
6
- <component name="NewModuleRootManager">
7
- <content url="file://$MODULE_DIR$">
8
- <sourceFolder url="file://$MODULE_DIR$/features" isTestSource="true" />
9
- <sourceFolder url="file://$MODULE_DIR$/spec" isTestSource="true" />
10
- <sourceFolder url="file://$MODULE_DIR$/test" isTestSource="true" />
11
- </content>
12
- <orderEntry type="jdk" jdkName="rbenv: 3.4.8" jdkType="RUBY_SDK" />
13
- <orderEntry type="sourceFolder" forTests="false" />
14
- <orderEntry type="library" scope="PROVIDED" name="addressable (v2.8.9, rbenv: 3.4.8) [gem]" level="application" />
15
- <orderEntry type="library" scope="PROVIDED" name="ast (v2.4.3, rbenv: 3.4.8) [gem]" level="application" />
16
- <orderEntry type="library" scope="PROVIDED" name="base64 (v0.3.0, rbenv: 3.4.8) [gem]" level="application" />
17
- <orderEntry type="library" scope="PROVIDED" name="bigdecimal (v4.0.1, rbenv: 3.4.8) [gem]" level="application" />
18
- <orderEntry type="library" scope="PROVIDED" name="bundler (v2.6.9, rbenv: 3.4.8) [gem]" level="application" />
19
- <orderEntry type="library" scope="PROVIDED" name="crack (v1.0.1, rbenv: 3.4.8) [gem]" level="application" />
20
- <orderEntry type="library" scope="PROVIDED" name="date (v3.5.1, rbenv: 3.4.8) [gem]" level="application" />
21
- <orderEntry type="library" scope="PROVIDED" name="diff-lcs (v1.6.2, rbenv: 3.4.8) [gem]" level="application" />
22
- <orderEntry type="library" scope="PROVIDED" name="docile (v1.4.1, rbenv: 3.4.8) [gem]" level="application" />
23
- <orderEntry type="library" scope="PROVIDED" name="erb (v6.0.2, rbenv: 3.4.8) [gem]" level="application" />
24
- <orderEntry type="library" scope="PROVIDED" name="event_stream_parser (v1.0.0, rbenv: 3.4.8) [gem]" level="application" />
25
- <orderEntry type="library" scope="PROVIDED" name="faraday (v2.14.1, rbenv: 3.4.8) [gem]" level="application" />
26
- <orderEntry type="library" scope="PROVIDED" name="faraday-multipart (v1.2.0, rbenv: 3.4.8) [gem]" level="application" />
27
- <orderEntry type="library" scope="PROVIDED" name="faraday-net_http (v3.4.2, rbenv: 3.4.8) [gem]" level="application" />
28
- <orderEntry type="library" scope="PROVIDED" name="faraday-retry (v2.4.0, rbenv: 3.4.8) [gem]" level="application" />
29
- <orderEntry type="library" scope="PROVIDED" name="hashdiff (v1.2.1, rbenv: 3.4.8) [gem]" level="application" />
30
- <orderEntry type="library" scope="PROVIDED" name="io-console (v0.8.2, rbenv: 3.4.8) [gem]" level="application" />
31
- <orderEntry type="library" scope="PROVIDED" name="irb (v1.17.0, rbenv: 3.4.8) [gem]" level="application" />
32
- <orderEntry type="library" scope="PROVIDED" name="json (v2.19.1, rbenv: 3.4.8) [gem]" level="application" />
33
- <orderEntry type="library" scope="PROVIDED" name="json-schema (v6.2.0, rbenv: 3.4.8) [gem]" level="application" />
34
- <orderEntry type="library" scope="PROVIDED" name="language_server-protocol (v3.17.0.5, rbenv: 3.4.8) [gem]" level="application" />
35
- <orderEntry type="library" scope="PROVIDED" name="lint_roller (v1.1.0, rbenv: 3.4.8) [gem]" level="application" />
36
- <orderEntry type="library" scope="PROVIDED" name="logger (v1.7.0, rbenv: 3.4.8) [gem]" level="application" />
37
- <orderEntry type="library" scope="PROVIDED" name="marcel (v1.1.0, rbenv: 3.4.8) [gem]" level="application" />
38
- <orderEntry type="library" scope="PROVIDED" name="mcp (v0.8.0, rbenv: 3.4.8) [gem]" level="application" />
39
- <orderEntry type="library" scope="PROVIDED" name="multipart-post (v2.4.1, rbenv: 3.4.8) [gem]" level="application" />
40
- <orderEntry type="library" scope="PROVIDED" name="net-http (v0.9.1, rbenv: 3.4.8) [gem]" level="application" />
41
- <orderEntry type="library" scope="PROVIDED" name="parallel (v1.27.0, rbenv: 3.4.8) [gem]" level="application" />
42
- <orderEntry type="library" scope="PROVIDED" name="parser (v3.3.10.2, rbenv: 3.4.8) [gem]" level="application" />
43
- <orderEntry type="library" scope="PROVIDED" name="pp (v0.6.3, rbenv: 3.4.8) [gem]" level="application" />
44
- <orderEntry type="library" scope="PROVIDED" name="prettyprint (v0.2.0, rbenv: 3.4.8) [gem]" level="application" />
45
- <orderEntry type="library" scope="PROVIDED" name="prism (v1.9.0, rbenv: 3.4.8) [gem]" level="application" />
46
- <orderEntry type="library" scope="PROVIDED" name="psych (v5.3.1, rbenv: 3.4.8) [gem]" level="application" />
47
- <orderEntry type="library" scope="PROVIDED" name="public_suffix (v7.0.5, rbenv: 3.4.8) [gem]" level="application" />
48
- <orderEntry type="library" scope="PROVIDED" name="racc (v1.8.1, rbenv: 3.4.8) [gem]" level="application" />
49
- <orderEntry type="library" scope="PROVIDED" name="rainbow (v3.1.1, rbenv: 3.4.8) [gem]" level="application" />
50
- <orderEntry type="library" scope="PROVIDED" name="rake (v13.3.1, rbenv: 3.4.8) [gem]" level="application" />
51
- <orderEntry type="library" scope="PROVIDED" name="rdoc (v7.2.0, rbenv: 3.4.8) [gem]" level="application" />
52
- <orderEntry type="library" scope="PROVIDED" name="regexp_parser (v2.11.3, rbenv: 3.4.8) [gem]" level="application" />
53
- <orderEntry type="library" scope="PROVIDED" name="reline (v0.6.3, rbenv: 3.4.8) [gem]" level="application" />
54
- <orderEntry type="library" scope="PROVIDED" name="rexml (v3.4.4, rbenv: 3.4.8) [gem]" level="application" />
55
- <orderEntry type="library" scope="PROVIDED" name="rspec (v3.13.2, rbenv: 3.4.8) [gem]" level="application" />
56
- <orderEntry type="library" scope="PROVIDED" name="rspec-core (v3.13.6, rbenv: 3.4.8) [gem]" level="application" />
57
- <orderEntry type="library" scope="PROVIDED" name="rspec-expectations (v3.13.5, rbenv: 3.4.8) [gem]" level="application" />
58
- <orderEntry type="library" scope="PROVIDED" name="rspec-mocks (v3.13.8, rbenv: 3.4.8) [gem]" level="application" />
59
- <orderEntry type="library" scope="PROVIDED" name="rspec-support (v3.13.7, rbenv: 3.4.8) [gem]" level="application" />
60
- <orderEntry type="library" scope="PROVIDED" name="rubocop (v1.85.1, rbenv: 3.4.8) [gem]" level="application" />
61
- <orderEntry type="library" scope="PROVIDED" name="rubocop-ast (v1.49.1, rbenv: 3.4.8) [gem]" level="application" />
62
- <orderEntry type="library" scope="PROVIDED" name="rubocop-rspec (v3.9.0, rbenv: 3.4.8) [gem]" level="application" />
63
- <orderEntry type="library" scope="PROVIDED" name="ruby-progressbar (v1.13.0, rbenv: 3.4.8) [gem]" level="application" />
64
- <orderEntry type="library" scope="PROVIDED" name="ruby_llm (v1.14.0, rbenv: 3.4.8) [gem]" level="application" />
65
- <orderEntry type="library" scope="PROVIDED" name="ruby_llm-schema (v0.3.0, rbenv: 3.4.8) [gem]" level="application" />
66
- <orderEntry type="library" scope="PROVIDED" name="simplecov (v0.22.0, rbenv: 3.4.8) [gem]" level="application" />
67
- <orderEntry type="library" scope="PROVIDED" name="simplecov-html (v0.13.2, rbenv: 3.4.8) [gem]" level="application" />
68
- <orderEntry type="library" scope="PROVIDED" name="simplecov_json_formatter (v0.1.4, rbenv: 3.4.8) [gem]" level="application" />
69
- <orderEntry type="library" scope="PROVIDED" name="stringio (v3.2.0, rbenv: 3.4.8) [gem]" level="application" />
70
- <orderEntry type="library" scope="PROVIDED" name="tsort (v0.2.0, rbenv: 3.4.8) [gem]" level="application" />
71
- <orderEntry type="library" scope="PROVIDED" name="unicode-display_width (v3.2.0, rbenv: 3.4.8) [gem]" level="application" />
72
- <orderEntry type="library" scope="PROVIDED" name="unicode-emoji (v4.2.0, rbenv: 3.4.8) [gem]" level="application" />
73
- <orderEntry type="library" scope="PROVIDED" name="uri (v1.1.1, rbenv: 3.4.8) [gem]" level="application" />
74
- <orderEntry type="library" scope="PROVIDED" name="vcr (v6.4.0, rbenv: 3.4.8) [gem]" level="application" />
75
- <orderEntry type="library" scope="PROVIDED" name="webmock (v3.26.2, rbenv: 3.4.8) [gem]" level="application" />
76
- <orderEntry type="library" scope="PROVIDED" name="zeitwerk (v2.7.5, rbenv: 3.4.8) [gem]" level="application" />
77
- </component>
78
- </module>
@@ -1,6 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="Ask2AgentMigrationStateService">
4
- <option name="migrationStatus" value="COMPLETED" />
5
- </component>
6
- </project>
data/.idea/modules.xml DELETED
@@ -1,8 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="ProjectModuleManager">
4
- <modules>
5
- <module fileurl="file://$PROJECT_DIR$/.idea/Feather.iml" filepath="$PROJECT_DIR$/.idea/Feather.iml" />
6
- </modules>
7
- </component>
8
- </project>
data/.idea/vcs.xml DELETED
@@ -1,6 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="VcsDirectoryMappings">
4
- <mapping directory="$PROJECT_DIR$" vcs="Git" />
5
- </component>
6
- </project>
data/sig/Feather.rbs DELETED
@@ -1,91 +0,0 @@
1
- module Feather
2
- VERSION: String
3
-
4
- class Error < StandardError
5
- end
6
-
7
- class ConfigurationError < Error
8
- end
9
-
10
- class IdentificationError < Error
11
- end
12
-
13
- def self.configuration: () -> Configuration
14
- def self.configure: () { (Configuration) -> void } -> void
15
- def self.reset!: () -> nil
16
- def self.identify: (?String? image, ?String? audio, ?location: String?, ?consensus: bool) -> Result
17
-
18
- class Configuration
19
- attr_accessor provider: Symbol
20
- attr_accessor model: String
21
- attr_accessor location: String?
22
- attr_accessor consensus_models: Array[String]
23
- attr_accessor tips_model: String
24
-
25
- def initialize: () -> void
26
- def initialize_copy: (Configuration source) -> void
27
- end
28
-
29
- class Result
30
- attr_reader common_name: String?
31
- attr_reader species: String?
32
- attr_reader family: String?
33
- attr_reader confidence: Symbol?
34
- attr_reader region_native: bool?
35
- attr_reader candidates: Array[Result]
36
- attr_reader input_tokens: Integer?
37
- attr_reader output_tokens: Integer?
38
- attr_reader cost: Float?
39
- attr_reader model_id: String?
40
- attr_reader duration_ms: Integer?
41
- attr_reader source: Symbol?
42
- attr_reader consensus_models: Array[String]?
43
-
44
- def initialize: (Hash[Symbol, untyped] attrs) -> void
45
- def confident?: () -> bool
46
- def region_native?: () -> bool
47
- def photography_tips: () -> Hash[Symbol, String]?
48
- def to_h: () -> Hash[Symbol, untyped]
49
- end
50
-
51
- class Identifier
52
- SCHEMA: untyped
53
- PROVIDER_RATES: Hash[Symbol, Hash[Symbol, Float]]
54
-
55
- def initialize: (?config: Configuration) -> void
56
- def identify: (?String? image, ?String? audio, ?location: String?) -> Result
57
- end
58
-
59
- class Consensus
60
- def initialize: (?config: Configuration) -> void
61
- def identify: (?String? image, ?String? audio, ?location: String?) -> Result
62
- end
63
-
64
- class PhotographyTips
65
- SCHEMA: untyped
66
-
67
- def initialize: (species: String, common_name: String, ?config: Configuration) -> void
68
- def fetch: () -> Hash[Symbol, String]
69
- end
70
-
71
- module Instrumentation
72
- def self.instrument: (String event_name, ?Hash[Symbol, untyped] payload) { () -> untyped } -> untyped
73
- end
74
-
75
- module Rails
76
- module ActsAsSighting
77
- CORRECTABLE_FIELDS: Array[Symbol]
78
-
79
- module ClassMethods
80
- def acts_as_sighting: () -> void
81
- end
82
-
83
- module InstanceMethods
84
- def identify!: () -> Result
85
- def correct!: (Hash[Symbol | String, untyped] attrs) -> void
86
- def corrected?: () -> bool
87
- def correction_delta: () -> Hash[Symbol, Hash[Symbol, untyped]]
88
- end
89
- end
90
- end
91
- end