@kreuzberg/liter-llm-node 1.6.2 → 1.6.3

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.
package/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  // This file is auto-generated by alef — DO NOT EDIT.
2
- // alef:hash:797e09398ae0b95dd0e3de94d7374eedafcd20d08532c7cf378cbcd09e3083a7
2
+ // alef:hash:0c694843abf5c6a9fc8b410dfa73aea7c94ee538a40dc746dd72c50e7c986f97
3
3
  // To regenerate: alef generate
4
4
  // To verify freshness: alef verify --exit-code
5
5
  /* eslint-disable */
@@ -25,9 +25,8 @@ export declare function allProviders(): Array<ProviderConfig>;
25
25
  * Return the capability flags for a named provider.
26
26
  *
27
27
  * Performs an O(n) linear scan over the embedded registry (143 entries).
28
- * Returns an owned value so that bindings can box/copy it across the FFI
29
- * boundary without dealing with lifetimes. `ProviderCapabilities` is `Copy`,
30
- * so this is a cheap memcpy of seven `bool` fields.
28
+ * Returns an owned value so bindings can pass capability data without
29
+ * borrowing registry internals.
31
30
  *
32
31
  * For unknown `provider_name` values the function returns an all-`false`
33
32
  * sentinel so callers never need to handle `Option`.
@@ -159,8 +158,8 @@ export declare function createClientFromJson(json: string): DefaultClient;
159
158
  * Install the `ring` crypto provider as the rustls process default, idempotently.
160
159
  *
161
160
  * rustls 0.23+ removed the implicit default provider. This function installs
162
- * `ring` once per process. Subsequent calls are no-ops. Calling it from a
163
- * downstream Rust app that has already installed `aws-lc-rs` is safe the
161
+ * `ring` once per process. Subsequent calls are no-ops. Calling it after
162
+ * another rustls crypto provider has already been installed is safe: the
164
163
  * `Err` from `install_default()` is silently ignored.
165
164
  *
166
165
  * Called automatically by every internal `reqwest::Client` constructor
@@ -467,8 +466,8 @@ export interface Choice {
467
466
  * to pass it through (optionally modified), `Ok(None)` to drop the chunk,
468
467
  * or `Err(e)` to propagate a stream error.
469
468
  *
470
- * The trait is object-safe so implementations can be stored in a
471
- * `Vec<Box<dyn ChunkMiddleware>>` inside [`StreamPipeline`].
469
+ * The trait is object-safe so multiple middleware implementations can be
470
+ * chained inside [`StreamPipeline`].
472
471
  */
473
472
  export interface ChunkMiddleware {
474
473
  /**
@@ -1175,9 +1174,7 @@ export interface ProviderCapabilities {
1175
1174
  * Static configuration for a single provider entry in providers.json.
1176
1175
  *
1177
1176
  * This struct deliberately does not include capability flags or streaming
1178
- * format, which are accessed via the [`capabilities`] function. Keeping
1179
- * these fields separate preserves backward compatibility with all generated
1180
- * binding code that constructs `ProviderConfig` using struct literal syntax.
1177
+ * format, which are accessed via the [`capabilities`] function.
1181
1178
  */
1182
1179
  export interface ProviderConfig {
1183
1180
  /** Provider identifier (matches the entry key in providers.json). */
@@ -1356,9 +1353,8 @@ export interface SearchResult {
1356
1353
  /**
1357
1354
  * The value broadcast from a singleflight leader to all followers.
1358
1355
  *
1359
- * `Arc<LiterLlmError>` is used because `LiterLlmError` is not `Clone` and
1360
- * broadcast channels require `T: Clone`. The `Arc` adds only a reference-count
1361
- * bump per follower, which is negligible under the burst loads this layer targets.
1356
+ * The error value is shared so every follower receives the same upstream
1357
+ * failure without cloning the underlying error.
1362
1358
  */
1363
1359
  export declare class SingleflightResult {}
1364
1360
 
@@ -1594,7 +1590,7 @@ export declare function registerCustomProvider(config: CustomProviderConfig): vo
1594
1590
  *
1595
1591
  * Returns `true` if a provider with the given name was found and removed,
1596
1592
  * `false` if no such provider existed.
1597
- * @throws Returns an error only if the internal lock is poisoned.
1593
+ * @throws Returns an error if the custom-provider registry cannot be updated.
1598
1594
  */
1599
1595
  export declare function unregisterCustomProvider(name: string): boolean;
1600
1596
 
Binary file
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kreuzberg/liter-llm-node",
3
- "version": "1.6.2",
3
+ "version": "1.6.3",
4
4
  "description": "Universal LLM API client with Rust-powered polyglot bindings.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -33,12 +33,12 @@
33
33
  "@napi-rs/cli": "^3.6.2"
34
34
  },
35
35
  "optionalDependencies": {
36
- "@kreuzberg/liter-llm-node-darwin-arm64": "1.6.2",
37
- "@kreuzberg/liter-llm-node-darwin-x64": "1.6.2",
38
- "@kreuzberg/liter-llm-node-linux-arm64-gnu": "1.6.2",
39
- "@kreuzberg/liter-llm-node-linux-x64-gnu": "1.6.2",
40
- "@kreuzberg/liter-llm-node-win32-arm64-msvc": "1.6.2",
41
- "@kreuzberg/liter-llm-node-win32-x64-msvc": "1.6.2"
36
+ "@kreuzberg/liter-llm-node-darwin-arm64": "1.6.3",
37
+ "@kreuzberg/liter-llm-node-darwin-x64": "1.6.3",
38
+ "@kreuzberg/liter-llm-node-linux-arm64-gnu": "1.6.3",
39
+ "@kreuzberg/liter-llm-node-linux-x64-gnu": "1.6.3",
40
+ "@kreuzberg/liter-llm-node-win32-arm64-msvc": "1.6.3",
41
+ "@kreuzberg/liter-llm-node-win32-x64-msvc": "1.6.3"
42
42
  },
43
43
  "napi": {
44
44
  "binaryName": "liter-llm-node",