mohdel 0.109.0 → 0.110.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.
@@ -278,8 +278,10 @@ function configToAuth (configuration) {
278
278
  * strings and pre-shaped arrays pass through untouched.
279
279
  *
280
280
  * Role mapping:
281
- * - factory `tool_result` → envelope `tool` (carrying `toolCallId`,
282
- * `content`, and optional `name` from `toolName`).
281
+ * - factory `tool_result` or `tool` → envelope `tool` (carrying
282
+ * `toolCallId`, `content`, and optional `name` from `toolName`).
283
+ * Spore emits the canonical `tool` role directly; the gate path
284
+ * (mohdel-gate-client) preserves it, so the factory path must too.
283
285
  * - `assistant.toolCalls` carries through as-is onto the envelope
284
286
  * Message so adapters can emit the provider-native tool_use.
285
287
  *
@@ -299,7 +301,7 @@ function toEnvelopePrompt (prompt) {
299
301
  })
300
302
  }
301
303
  for (const m of prompt.messages) {
302
- if (m.role === 'tool_result') {
304
+ if (m.role === 'tool_result' || m.role === 'tool') {
303
305
  const msg = {
304
306
  role: 'tool',
305
307
  content: m.content ?? ''
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mohdel",
3
- "version": "0.109.0",
3
+ "version": "0.110.0",
4
4
  "license": "MIT",
5
5
  "author": {
6
6
  "name": "Christophe Le Bars",
@@ -87,10 +87,10 @@
87
87
  "@opentelemetry/exporter-trace-otlp-grpc": "^0.218.0",
88
88
  "@opentelemetry/sdk-node": "^0.218.0",
89
89
  "chalk": "^5.4.0",
90
- "mohdel-thin-gate-linux-x64-gnu": "0.109.0"
90
+ "mohdel-thin-gate-linux-x64-gnu": "0.110.0"
91
91
  },
92
92
  "dependencies": {
93
- "@anthropic-ai/sdk": "^0.100.1",
93
+ "@anthropic-ai/sdk": "^0.102.0",
94
94
  "@cerebras/cerebras_cloud_sdk": "^1.61.1",
95
95
  "@google/genai": "^2.8.0",
96
96
  "@opentelemetry/api": "^1.9.1",