@vincemakes/kiso-provider-anthropic 0.40.3 → 0.40.4

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/dist/index.d.ts CHANGED
@@ -18,6 +18,10 @@ import type { Adapter } from "@vincemakes/kiso-core";
18
18
  export interface AnthropicProviderConfig {
19
19
  readonly apiKey?: string;
20
20
  readonly baseUrl?: string;
21
+ /** Headers the endpoint needs on every request, as the profile names
22
+ * them (a gateway's session header, say). Sent as the SDK's default
23
+ * headers; the credential stays in `apiKey`, never here. */
24
+ readonly headers?: Readonly<Record<string, string>>;
21
25
  /** PH-1c.1: opt-in prompt caching (see AnthropicAdapterOptions). */
22
26
  readonly promptCaching?: boolean;
23
27
  }
package/dist/index.js CHANGED
@@ -25,6 +25,7 @@ export function createAnthropicProvider(config = {}) {
25
25
  const client = new Anthropic({
26
26
  ...(config.apiKey !== undefined ? { apiKey: config.apiKey } : {}),
27
27
  ...(config.baseUrl !== undefined ? { baseURL: config.baseUrl } : {}),
28
+ ...(config.headers !== undefined ? { defaultHeaders: { ...config.headers } } : {}),
28
29
  // CX-1 F8: ONE retry authority — the kernel (see the openai factory).
29
30
  maxRetries: 0,
30
31
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vincemakes/kiso-provider-anthropic",
3
- "version": "0.40.3",
3
+ "version": "0.40.4",
4
4
  "description": "kiso Anthropic adapter \u2014 official SDK wire events mapped to the kiso event union.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -22,7 +22,7 @@
22
22
  },
23
23
  "dependencies": {
24
24
  "@anthropic-ai/sdk": "^0.115.0",
25
- "@vincemakes/kiso-core": "0.40.3"
25
+ "@vincemakes/kiso-core": "0.40.4"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@types/node": "^26.1.2",