calmlens 0.1.0 → 0.1.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 86b8ba4a942285cf19fd32a128390b7dc9c19c8317b3e6d6b3d03d42306d7811
4
- data.tar.gz: fad92edc638c5a38cc99a60687251c7c20b13f41899a8f123182d0ac341b1a8c
3
+ metadata.gz: c615605b46266e7f714034f5dcbab0e0618d61bab3639e0d7b68e0cc80510051
4
+ data.tar.gz: b393859d5a00e077321559483a958614bff37befef80a7c67985259ae04904cc
5
5
  SHA512:
6
- metadata.gz: cd376e3647215281732a95ff55bd91b86155bad65782e632c264f5c0f43ceb61fa3b8db56346951c0dd4b98f214ebe309f0e70b447dc9ab6af237b2e91e6dcb1
7
- data.tar.gz: a636fe02abe826b641223ef4d1c712a86942116ea13914af934bc8800b4b99ffde9ceae2501e58734e389b0bc09307aa468c7fedd0f6467cd542e4d23a7fd0f4
6
+ metadata.gz: 32b0493921be2295f3b2eac51a9e087b79a4fa6b5369226dbcf895b0a9d06399060a0ad54410ed4534f85e8eba95060ce865a91e6f58c7345491fe1200d94339
7
+ data.tar.gz: 63e77b7d80e3dc187104b0a8be434abaab2aa6322199d8013187c6dbd036746500106e09ff3ca66429e0c70ea960e06a21860aa50887ede53a0757235319a17f
data/README.md CHANGED
@@ -220,3 +220,5 @@ request.path # => "/assets/project-1/<id>/content" (relative to base_url or cd
220
220
  ## Development
221
221
 
222
222
  Native tests (Ruby 3.1+, Bundler 2.6+): `bundle install && bundle exec ruby -Ilib -e 'Dir["test/*_test.rb"].each { |file| require_relative file }'`, and lint with `bundle exec rubocop`. `lib/calmlens/error_codes.rb` and the files in `testdata/` are generated by `bun packages/sdk-contract/generate.ts` from the repository root. Container/backend checks: `bun run test:sdk:e2e`. Type-check the signatures with `gem install steep && steep check` (see `Steepfile`) and `rbs -I sig validate`. Release by setting `CalmLens::VERSION` in `lib/calmlens/version.rb`.
223
+
224
+ Image moderation considers readable text directly. Optional OCR (`processingOptions.features.ocr.enabled: true` on the wire) adds a text moderation pass and stores retained text in the image’s `content.extractedText`. No separate text child is created. Read the image’s combined `moderation.report`; removing its content also removes the extracted text.
@@ -2,5 +2,5 @@
2
2
 
3
3
  module CalmLens
4
4
  # The gem version. The gemspec and the User-Agent header read it from here.
5
- VERSION = '0.1.0'
5
+ VERSION = '0.1.1'
6
6
  end
data/sig/types.rbs CHANGED
@@ -276,7 +276,7 @@ module CalmLens
276
276
  ?"faces" => Array[detected_face],
277
277
  ?"reason" => not_evaluated_reason
278
278
  }
279
- # Results of the features requested in `processingOptions.features`. OCR produces a text child
279
+ # Results of the features requested in `processingOptions.features`. OCR stores extracted text on the image
280
280
  # asset instead of a result here.
281
281
  type processing_feature_results = {
282
282
  ?"personDetection" => person_detection_result,
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: calmlens
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - CalmLens