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 +4 -4
- data/README.md +2 -0
- data/lib/calmlens/version.rb +1 -1
- data/sig/types.rbs +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: c615605b46266e7f714034f5dcbab0e0618d61bab3639e0d7b68e0cc80510051
|
|
4
|
+
data.tar.gz: b393859d5a00e077321559483a958614bff37befef80a7c67985259ae04904cc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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.
|
data/lib/calmlens/version.rb
CHANGED
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
|
|
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,
|