@ank1015/agents-provider-anthropic-spec 0.1.1 → 0.1.11
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/CHANGELOG.md +4 -0
- package/README.md +1 -1
- package/dist/config.d.ts +9 -3
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +1 -0
- package/dist/config.js.map +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to `@ank1015/agents-provider-anthropic-spec` will be documented in this file.
|
|
4
4
|
|
|
5
|
+
## 0.1.11
|
|
6
|
+
|
|
7
|
+
- Depend on `@ank1015/agents-contracts@^0.1.11`.
|
|
8
|
+
|
|
5
9
|
## 0.1.1 - Model Catalog Update
|
|
6
10
|
|
|
7
11
|
- Added `claude-sonnet-5` with updated pricing and 128,000 max output tokens.
|
package/README.md
CHANGED
|
@@ -104,4 +104,4 @@ const request: LLMRequest<AnthropicProvider> = {
|
|
|
104
104
|
|
|
105
105
|
## Versioning
|
|
106
106
|
|
|
107
|
-
This package is currently `0.1.
|
|
107
|
+
This package is currently `0.1.11`. Until `1.0.0`, model metadata and provider option types may evolve as the surrounding agent runtime settles.
|
package/dist/config.d.ts
CHANGED
|
@@ -1,8 +1,14 @@
|
|
|
1
|
-
import type { Message
|
|
1
|
+
import type { Message } from '@anthropic-ai/sdk/resources/messages.js';
|
|
2
|
+
import type { AnthropicBeta as AnthropicSdkBeta } from '@anthropic-ai/sdk/resources/beta/beta.js';
|
|
3
|
+
import type { BetaFallbackParam, BetaMessage, MessageCreateParams as BetaMessageCreateParams } from '@anthropic-ai/sdk/resources/beta/messages.js';
|
|
2
4
|
import { z } from 'zod';
|
|
3
5
|
export declare const ANTHROPIC_PROVIDER: "anthropic";
|
|
4
6
|
export type AnthropicProvider = typeof ANTHROPIC_PROVIDER;
|
|
5
|
-
export
|
|
7
|
+
export declare const ANTHROPIC_SERVER_SIDE_FALLBACK_BETA: "server-side-fallback-2026-06-01";
|
|
8
|
+
export type AnthropicServerSideFallbackBeta = typeof ANTHROPIC_SERVER_SIDE_FALLBACK_BETA;
|
|
9
|
+
export type AnthropicBeta = AnthropicSdkBeta;
|
|
10
|
+
export type AnthropicFallbackParam = BetaFallbackParam;
|
|
11
|
+
export type AnthropicNativeMessage = Message | BetaMessage;
|
|
6
12
|
export declare const anthropicProviderConfigSchema: z.ZodObject<{
|
|
7
13
|
baseUrl: z.ZodOptional<z.ZodString>;
|
|
8
14
|
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -22,7 +28,7 @@ export type AnthropicProviderConfig = z.infer<typeof anthropicProviderConfigSche
|
|
|
22
28
|
* `max_tokens` is required by the Anthropic API but absent from the generic request, so it
|
|
23
29
|
* stays here as an optional override; the adapter defaults it to the model's `maxTokens`.
|
|
24
30
|
*/
|
|
25
|
-
export type AnthropicProviderOptions = Omit<
|
|
31
|
+
export type AnthropicProviderOptions = Omit<BetaMessageCreateParams, 'model' | 'messages' | 'stream' | 'system' | 'tools' | 'max_tokens'> & {
|
|
26
32
|
max_tokens?: number;
|
|
27
33
|
};
|
|
28
34
|
declare module '@ank1015/agents-contracts' {
|
package/dist/config.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,OAAO,
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,OAAO,EACR,MAAM,yCAAyC,CAAC;AACjD,OAAO,KAAK,EAAE,aAAa,IAAI,gBAAgB,EAAE,MAAM,0CAA0C,CAAC;AAClG,OAAO,KAAK,EACV,iBAAiB,EACjB,WAAW,EACX,mBAAmB,IAAI,uBAAuB,EAC/C,MAAM,8CAA8C,CAAC;AACtD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,kBAAkB,EAAG,WAAoB,CAAC;AAEvD,MAAM,MAAM,iBAAiB,GAAG,OAAO,kBAAkB,CAAC;AAE1D,eAAO,MAAM,mCAAmC,EAC9C,iCAA0C,CAAC;AAE7C,MAAM,MAAM,+BAA+B,GACzC,OAAO,mCAAmC,CAAC;AAE7C,MAAM,MAAM,aAAa,GAAG,gBAAgB,CAAC;AAE7C,MAAM,MAAM,sBAAsB,GAAG,iBAAiB,CAAC;AAEvD,MAAM,MAAM,sBAAsB,GAAG,OAAO,GAAG,WAAW,CAAC;AAE3D,eAAO,MAAM,6BAA6B;;;;;;;;;;;kBAK/B,CAAC;AAEZ,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AAEpF;;;;;GAKG;AACH,MAAM,MAAM,wBAAwB,GAAG,IAAI,CACzC,uBAAuB,EACvB,OAAO,GAAG,UAAU,GAAG,QAAQ,GAAG,QAAQ,GAAG,OAAO,GAAG,YAAY,CACpE,GAAG;IACF,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,OAAO,QAAQ,2BAA2B,CAAC;IACzC,UAAU,wBAAwB;QAChC,SAAS,EAAE,sBAAsB,CAAC;KACnC;IAED,UAAU,kBAAkB;QAC1B,SAAS,EAAE,wBAAwB,CAAC;KACrC;IAED,UAAU,iBAAiB;QACzB,SAAS,EAAE,uBAAuB,CAAC;KACpC;CACF"}
|
package/dist/config.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { baseProviderConfigSchema, secretRefSchema, } from '@ank1015/agents-contracts';
|
|
3
3
|
export const ANTHROPIC_PROVIDER = 'anthropic';
|
|
4
|
+
export const ANTHROPIC_SERVER_SIDE_FALLBACK_BETA = 'server-side-fallback-2026-06-01';
|
|
4
5
|
export const anthropicProviderConfigSchema = baseProviderConfigSchema
|
|
5
6
|
.extend({
|
|
6
7
|
provider: z.literal(ANTHROPIC_PROVIDER),
|
package/dist/config.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,wBAAwB,EACxB,eAAe,GAChB,MAAM,2BAA2B,CAAC;AAEnC,MAAM,CAAC,MAAM,kBAAkB,GAAG,WAAoB,CAAC;AAIvD,MAAM,CAAC,MAAM,mCAAmC,GAC9C,iCAA0C,CAAC;AAW7C,MAAM,CAAC,MAAM,6BAA6B,GAAG,wBAAwB;KAClE,MAAM,CAAC;IACN,QAAQ,EAAE,CAAC,CAAC,OAAO,CAAC,kBAAkB,CAAC;IACvC,MAAM,EAAE,eAAe;CACxB,CAAC;KACD,MAAM,EAAE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ank1015/agents-provider-anthropic-spec",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.11",
|
|
4
4
|
"description": "Anthropic provider static spec (model catalog, config + per-call option types) for @ank1015/agents.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"agents",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"clean": "rm -rf dist ../../.tsbuildinfo/provider-anthropic-spec.tsbuildinfo"
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
|
-
"@ank1015/agents-contracts": "^0.1.
|
|
56
|
+
"@ank1015/agents-contracts": "^0.1.11",
|
|
57
57
|
"@anthropic-ai/sdk": "^0.104.2",
|
|
58
58
|
"zod": "^4.4.3"
|
|
59
59
|
},
|