@opencode-ai/ai 0.0.0-next-17178 → 0.0.0-next-17183
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.
|
@@ -259,7 +259,11 @@ const lowerMessages = Effect.fn("BedrockConverse.lowerMessages")(function* (requ
|
|
|
259
259
|
continue;
|
|
260
260
|
}
|
|
261
261
|
}
|
|
262
|
-
messages.
|
|
262
|
+
const previous = messages.at(-1);
|
|
263
|
+
if (previous?.role === "user")
|
|
264
|
+
messages[messages.length - 1] = { role: "user", content: [...previous.content, ...content] };
|
|
265
|
+
else
|
|
266
|
+
messages.push({ role: "user", content });
|
|
263
267
|
continue;
|
|
264
268
|
}
|
|
265
269
|
if (message.role === "assistant") {
|
|
@@ -302,7 +306,11 @@ const lowerMessages = Effect.fn("BedrockConverse.lowerMessages")(function* (requ
|
|
|
302
306
|
if (cachePoint)
|
|
303
307
|
content.push(cachePoint);
|
|
304
308
|
}
|
|
305
|
-
messages.
|
|
309
|
+
const previous = messages.at(-1);
|
|
310
|
+
if (previous?.role === "user")
|
|
311
|
+
messages[messages.length - 1] = { role: "user", content: [...previous.content, ...content] };
|
|
312
|
+
else
|
|
313
|
+
messages.push({ role: "user", content });
|
|
306
314
|
}
|
|
307
315
|
return messages;
|
|
308
316
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
|
-
"version": "0.0.0-next-
|
|
3
|
+
"version": "0.0.0-next-17183",
|
|
4
4
|
"name": "@opencode-ai/ai",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@clack/prompts": "1.0.0-alpha.1",
|
|
32
32
|
"@effect/platform-node": "4.0.0-beta.101",
|
|
33
|
-
"@opencode-ai/http-recorder": "0.0.0-next-
|
|
33
|
+
"@opencode-ai/http-recorder": "0.0.0-next-17183",
|
|
34
34
|
"@tsconfig/bun": "1.0.9",
|
|
35
35
|
"@types/bun": "1.3.13",
|
|
36
36
|
"@typescript/native-preview": "7.0.0-dev.20251207.1",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@smithy/eventstream-codec": "4.2.14",
|
|
41
41
|
"@smithy/util-utf8": "4.2.2",
|
|
42
|
-
"@opencode-ai/schema": "0.0.0-next-
|
|
42
|
+
"@opencode-ai/schema": "0.0.0-next-17183",
|
|
43
43
|
"aws4fetch": "1.0.20",
|
|
44
44
|
"effect": "4.0.0-beta.101",
|
|
45
45
|
"google-auth-library": "10.5.0"
|