@openclaw/amazon-bedrock-mantle-provider 2026.6.6-beta.1 → 2026.6.6

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/discovery.js CHANGED
@@ -248,6 +248,21 @@ async function resolveImplicitMantleProvider(params) {
248
248
  },
249
249
  contextWindow: 1e6,
250
250
  maxTokens: 128e3
251
+ }, {
252
+ id: "anthropic.claude-mythos-preview",
253
+ name: "Claude Mythos Preview",
254
+ api: "anthropic-messages",
255
+ reasoning: true,
256
+ params: { canonicalModelId: "claude-mythos-preview" },
257
+ input: ["text", "image"],
258
+ cost: {
259
+ input: 0,
260
+ output: 0,
261
+ cacheRead: 0,
262
+ cacheWrite: 0
263
+ },
264
+ contextWindow: 1e6,
265
+ maxTokens: 128e3
251
266
  }];
252
267
  const allModels = [...models, ...claudeModels];
253
268
  return {
@@ -16,6 +16,20 @@ function resolveMantleAnthropicBaseUrl(baseUrl) {
16
16
  function requiresDefaultSampling(modelId) {
17
17
  return modelId.includes("claude-opus-4-7");
18
18
  }
19
+ function isClaudeMythosPreviewModel(model) {
20
+ return [
21
+ model.id,
22
+ model.name,
23
+ model.params?.canonicalModelId
24
+ ].filter((value) => typeof value === "string").some((value) => /(?:^|-)claude-mythos-preview(?=$|[^a-z0-9])/.test(value.trim().toLowerCase().replace(/[\s_.:]+/g, "-")));
25
+ }
26
+ function resolveMantleReasoning(model, options) {
27
+ if (requiresDefaultSampling(model.id)) return;
28
+ const reasoning = options?.reasoning ?? (isClaudeMythosPreviewModel(model) ? "high" : void 0);
29
+ if (!isClaudeMythosPreviewModel(model)) return reasoning;
30
+ if (reasoning === "minimal") return "low";
31
+ return reasoning === "xhigh" || reasoning === "max" ? "high" : reasoning;
32
+ }
19
33
  function mergeHeaders(...headerSources) {
20
34
  const merged = {};
21
35
  for (const headers of headerSources) if (headers) Object.assign(merged, headers);
@@ -72,17 +86,19 @@ function createMantleAnthropicStreamFn(deps) {
72
86
  });
73
87
  const base = buildMantleAnthropicBaseOptions(model, options, apiKey);
74
88
  const streamClient = client;
75
- if (!options?.reasoning || requiresDefaultSampling(model.id)) return streamFn(model, context, {
89
+ const reasoning = resolveMantleReasoning(model, options);
90
+ if (!reasoning) return streamFn(model, context, {
76
91
  ...base,
77
92
  client: streamClient,
78
93
  thinkingEnabled: false
79
94
  });
80
- const adjusted = adjustMaxTokensForThinking(base.maxTokens || 0, model.maxTokens, options.reasoning, options.thinkingBudgets);
95
+ const adjusted = adjustMaxTokensForThinking(base.maxTokens || 0, model.maxTokens, reasoning, options?.thinkingBudgets);
81
96
  return streamFn(model, context, {
82
97
  ...base,
83
98
  client: streamClient,
84
99
  maxTokens: adjusted.maxTokens,
85
100
  thinkingEnabled: true,
101
+ ...isClaudeMythosPreviewModel(model) ? { effort: reasoning } : {},
86
102
  thinkingBudgetTokens: adjusted.thinkingBudget
87
103
  });
88
104
  };
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@openclaw/amazon-bedrock-mantle-provider",
3
- "version": "2026.6.6-beta.1",
3
+ "version": "2026.6.6",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@openclaw/amazon-bedrock-mantle-provider",
9
- "version": "2026.6.6-beta.1",
9
+ "version": "2026.6.6",
10
10
  "dependencies": {
11
11
  "@anthropic-ai/sdk": "0.100.1",
12
12
  "@aws/bedrock-token-generator": "1.1.0"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openclaw/amazon-bedrock-mantle-provider",
3
- "version": "2026.6.6-beta.1",
3
+ "version": "2026.6.6",
4
4
  "description": "OpenClaw Amazon Bedrock Mantle provider plugin for OpenAI-compatible model routing.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -21,10 +21,10 @@
21
21
  "minHostVersion": ">=2026.5.12-beta.1"
22
22
  },
23
23
  "compat": {
24
- "pluginApi": ">=2026.6.6-beta.1"
24
+ "pluginApi": ">=2026.6.6"
25
25
  },
26
26
  "build": {
27
- "openclawVersion": "2026.6.6-beta.1",
27
+ "openclawVersion": "2026.6.6",
28
28
  "bundledDist": false
29
29
  },
30
30
  "release": {
@@ -42,7 +42,7 @@
42
42
  "README.md"
43
43
  ],
44
44
  "peerDependencies": {
45
- "openclaw": ">=2026.6.6-beta.1"
45
+ "openclaw": ">=2026.6.6"
46
46
  },
47
47
  "peerDependenciesMeta": {
48
48
  "openclaw": {