@xandreed/plugin-models 0.15.1 → 0.16.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.
package/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  # @xandreed/plugin-models
2
2
 
3
- Efferent composable agent framework, 0.15.1. Node 24.5 or Bun.
3
+ Efferent composable agent framework, 0.16.0. Node 24.5 or Bun.
4
4
 
5
5
  Documentation: https://github.com/xandreeddev/efferent
@@ -36,10 +36,10 @@ export declare const modelsPlugin: import("@xandreed/core").TypedPlugin<{
36
36
  readonly api: "anthropic-messages";
37
37
  readonly images?: boolean;
38
38
  readonly apiKey?: string | Redacted.Redacted<string>;
39
+ readonly apiVersion?: string;
39
40
  readonly auth?: "x-api-key" | "bearer";
40
41
  readonly apiKeyEnv?: string;
41
42
  readonly cacheControl?: boolean;
42
- readonly apiVersion?: string;
43
43
  readonly betas?: readonly string[];
44
44
  };
45
45
  };
@@ -114,10 +114,10 @@ export declare const modelsPlugin: import("@xandreed/core").TypedPlugin<{
114
114
  readonly api: "anthropic-messages";
115
115
  readonly images?: boolean;
116
116
  readonly apiKey?: string | Redacted.Redacted<string>;
117
+ readonly apiVersion?: string;
117
118
  readonly auth?: "x-api-key" | "bearer";
118
119
  readonly apiKeyEnv?: string;
119
120
  readonly cacheControl?: boolean;
120
- readonly apiVersion?: string;
121
121
  readonly betas?: readonly string[];
122
122
  };
123
123
  };
@@ -174,5 +174,5 @@ export declare const modelsPlugin: import("@xandreed/core").TypedPlugin<{
174
174
  readonly proxy: string | Redacted.Redacted<string>;
175
175
  readonly noProxy: string;
176
176
  readonly thinkingPrefixMismatch: "error" | "provider-default" | "drop_block";
177
- }, ModelCatalog | UtilityLlm | LanguageModel.LanguageModel | AuthStore | SettingsStore, HarnessError | import("./index.js").AuthError | EffectConfig.ConfigError, SessionEnvironment>;
177
+ }, ModelCatalog | UtilityLlm | LanguageModel.LanguageModel | AuthStore | SettingsStore, HarnessError | EffectConfig.ConfigError | import("./index.js").AuthError, SessionEnvironment>;
178
178
  export default modelsPlugin;
@@ -56,7 +56,7 @@ const Config = Schema.Struct({
56
56
  }));
57
57
  export const modelsPlugin = definePlugin({
58
58
  id: "@xandreed/plugin-models",
59
- version: "0.15.1",
59
+ version: "0.16.0",
60
60
  scope: "runtime",
61
61
  config: Config,
62
62
  defaults: { model: "", fastModel: "", fallbackModel: "", inheritPrevious: !0, endpoints: {}, modelSettings: {}, storage: "local", credentials: {}, credentialEnv: {}, proxy: "", noProxy: "", thinkingPrefixMismatch: "drop_block" },
@@ -71,10 +71,10 @@ export declare const CurrentModelEndpoints: Context.Reference<{
71
71
  readonly api: "anthropic-messages";
72
72
  readonly images?: boolean;
73
73
  readonly apiKey?: string | import("effect/Redacted").Redacted<string>;
74
+ readonly apiVersion?: string;
74
75
  readonly auth?: "x-api-key" | "bearer";
75
76
  readonly apiKeyEnv?: string;
76
77
  readonly cacheControl?: boolean;
77
- readonly apiVersion?: string;
78
78
  readonly betas?: readonly string[];
79
79
  };
80
80
  }>;
@@ -18,7 +18,7 @@ export declare const currentRuntime: () => Runtime;
18
18
  export declare const modelsTransportContextFor: (options: {
19
19
  readonly proxy?: string | Redacted.Redacted<string>;
20
20
  readonly noProxy?: string;
21
- }) => Effect.Effect<Context.Context<never>, ProxyInvalid | ProxyUnsupported | Config.ConfigError, Scope.Scope>;
21
+ }) => Effect.Effect<Context.Context<never>, Config.ConfigError | ProxyInvalid | ProxyUnsupported, Scope.Scope>;
22
22
  /** The scoped transport: a proxy's, or the managed direct one on Node and Bun; none on another runtime without a proxy. */
23
23
  export declare const modelsTransportFor: (options: {
24
24
  readonly proxy?: string | Redacted.Redacted<string>;
@@ -26,7 +26,7 @@ export declare const modelsTransportFor: (options: {
26
26
  }) => Effect.Effect<Option.Option<{
27
27
  readonly fetch: ModelsFetch;
28
28
  readonly webSocketAgent?: (target: URL) => Effect.Effect<Option.Option<WebSocketProxy>, ProxyUnsupported>;
29
- }>, ProxyInvalid | ProxyUnsupported | Config.ConfigError, Scope.Scope>;
29
+ }>, Config.ConfigError | ProxyInvalid | ProxyUnsupported, Scope.Scope>;
30
30
  /**
31
31
  * `ModelsTransportLive(options)` — the models plugin's network path from a
32
32
  * proxy setting: `options.proxy` (or `https_proxy` / `HTTPS_PROXY` and
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xandreed/plugin-models",
3
- "version": "0.15.1",
3
+ "version": "0.16.0",
4
4
  "engines": {
5
5
  "node": ">=24.5",
6
6
  "bun": ">=1.3.0"
@@ -27,10 +27,11 @@
27
27
  "undici": "^7.30.1",
28
28
  "ws": "^8.21.0"
29
29
  },
30
+ "gitHead": "7eb972d259e80a0c88a99d81e84e9440aed884f0",
30
31
  "private": false,
31
32
  "types": "./dist/index.d.ts",
32
33
  "peerDependencies": {
33
- "@xandreed/core": "^0.15.1",
34
+ "@xandreed/core": "^0.16.0",
34
35
  "effect": "^4.0.7"
35
36
  },
36
37
  "files": [