genkit_ops 0.1.3
genkit_ops: ^0.1.3 copied to clipboard
Caching, terminal diagnostics, redaction, and operational middleware for Genkit Dart generate calls.
We analyzed this package 8 hours ago, and awarded it 90 pub points (of a possible 160):
10/10 points: Provide a valid pubspec.yaml
5/5 points: Provide a valid README.md
5/5 points: Provide a valid CHANGELOG.md
10/10 points: Use an OSI-approved license
Detected license: MIT.
10/10 points: 20% or more of the public API has dartdoc comments
170 out of 170 API elements (100.0 %) have documentation comments.
10/10 points: Package has an example
0/20 points: Supports 0 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)
0/50 points: code has no errors, warnings, lints, or formatting issues
ERROR: The argument type 'GenkitSmartCacheMiddleware Function([GenkitCacheOptions?])' can't be assigned to the parameter type 'GenerateMiddleware Function(GenkitCacheOptions?, GenerateMiddlewareContext)'.
lib/src/middleware.dart:87:15
╷
87 │ create: ([GenkitCacheOptions? config]) {
│ ┌───────────────^
88 │ │ final options = config ?? GenkitCacheOptions(policy: cachePolicy);
89 │ │ return GenkitSmartCacheMiddleware(
90 │ │ store: options.store ?? cacheStore,
91 │ │ policy: options.policy,
92 │ │ keyBuilder: options.keyBuilder,
93 │ │ logger: options.logger,
94 │ │ );
95 │ │ },
│ └───────^
╵
To reproduce make sure you are using the lints_core and run dart analyze lib/src/middleware.dart
ERROR: The argument type 'GenkitAILoggerMiddleware Function([GenkitLoggerOptions?])' can't be assigned to the parameter type 'GenerateMiddleware Function(GenkitLoggerOptions?, GenerateMiddlewareContext)'.
lib/src/middleware.dart:99:15
╷
99 │ create: ([GenkitLoggerOptions? config]) {
│ ┌───────────────^
100 │ │ return GenkitAILoggerMiddleware(logger: config?.logger ?? logger);
101 │ │ },
│ └───────^
╵
To reproduce make sure you are using the lints_core and run dart analyze lib/src/middleware.dart
10/10 points: All of the package dependencies are supported in the latest version
| Package | Constraint | Compatible | Latest | Notes |
|---|---|---|---|---|
genkit |
>=0.13.0 <1.0.0 |
0.15.1 | 0.15.1 |
Transitive dependencies
| Package | Constraint | Compatible | Latest | Notes |
|---|---|---|---|---|
antlr4 |
- | 4.13.2 | 4.13.2 | |
args |
- | 2.7.0 | 2.7.0 | |
async |
- | 2.13.1 | 2.13.1 | |
boolean_selector |
- | 2.1.2 | 2.1.2 | |
characters |
- | 1.4.1 | 1.4.1 | |
clock |
- | 1.1.2 | 1.1.2 | |
collection |
- | 1.19.1 | 1.19.1 | |
crypto |
- | 3.0.7 | 3.0.7 | |
decimal |
- | 3.2.6 | 3.2.6 | |
dotprompt |
- | 0.0.1 | 1.0.1 | |
email_validator |
- | 3.0.0 | 3.0.0 | |
fixnum |
- | 1.1.1 | 1.1.1 | |
handlebars_dart |
- | 0.0.1 | 1.0.0 | |
http |
- | 1.6.0 | 1.6.0 | |
http_parser |
- | 4.1.2 | 4.1.2 | |
intl |
- | 0.20.3 | 0.20.3 | |
json_annotation |
- | 4.12.0 | 4.12.0 | |
json_schema_builder |
- | 0.1.6 | 0.1.6 | |
logging |
- | 1.3.0 | 1.3.0 | |
matcher |
- | 0.12.20 | 0.12.20 | |
meta |
- | 1.19.0 | 1.19.0 | |
opentelemetry |
- | 0.18.11 | 0.18.11 | |
path |
- | 1.9.1 | 1.9.1 | |
protobuf |
- | 6.0.0 | 6.0.0 | |
quiver |
- | 3.2.2 | 3.2.2 | |
rational |
- | 2.2.3 | 2.2.3 | |
schemantic |
- | 0.2.2 | 0.2.2 | |
source_span |
- | 1.10.2 | 1.10.2 | |
stack_trace |
- | 1.12.1 | 1.12.1 | |
stream_channel |
- | 2.1.4 | 2.1.4 | |
string_scanner |
- | 1.4.1 | 1.4.1 | |
term_glyph |
- | 1.2.2 | 1.2.2 | |
test_api |
- | 0.7.13 | 0.7.13 | |
typed_data |
- | 1.4.0 | 1.4.0 | |
web |
- | 1.1.1 | 1.1.1 | |
web_socket |
- | 1.0.1 | 1.0.1 | |
web_socket_channel |
- | 3.0.3 | 3.0.3 | |
yaml |
- | 3.1.3 | 3.1.3 |
To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides.
10/10 points: Package supports latest stable Dart and Flutter SDKs
20/20 points: Compatible with dependency constraint lower bounds
pub downgrade does not expose any static analysis error.
Analyzed with Pana 0.23.18, Dart 3.13.1.
Check the analysis log for details.