betahi-copilot-bridge 0.20.7 → 0.20.8
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/README.md +1 -1
- package/dist/main.js +4 -1
- package/dist/main.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<h1 align="center">copilot-bridge</h1>
|
|
2
2
|
|
|
3
3
|
<p align="center">
|
|
4
|
-
<a href="https://www.npmjs.com/package/betahi-copilot-bridge"><img src="https://img.shields.io/npm/v/betahi-copilot-bridge.svg?v=0.20.
|
|
4
|
+
<a href="https://www.npmjs.com/package/betahi-copilot-bridge"><img src="https://img.shields.io/npm/v/betahi-copilot-bridge.svg?v=0.20.8" alt="npm version"></a>
|
|
5
5
|
<a href="https://github.com/betahi/copilot-bridge/blob/main/LICENSE"><img src="https://img.shields.io/npm/l/betahi-copilot-bridge.svg" alt="license"></a>
|
|
6
6
|
</p>
|
|
7
7
|
|
package/dist/main.js
CHANGED
|
@@ -2666,6 +2666,9 @@ const webSearchResponseToEvents = (response) => {
|
|
|
2666
2666
|
content_block: block.type === "text" ? {
|
|
2667
2667
|
type: "text",
|
|
2668
2668
|
text: ""
|
|
2669
|
+
} : block.type === "server_tool_use" || block.type === "tool_use" ? {
|
|
2670
|
+
...block,
|
|
2671
|
+
input: {}
|
|
2669
2672
|
} : block
|
|
2670
2673
|
});
|
|
2671
2674
|
if (block.type === "text" && block.text) events$1.push({
|
|
@@ -2676,7 +2679,7 @@ const webSearchResponseToEvents = (response) => {
|
|
|
2676
2679
|
text: block.text
|
|
2677
2680
|
}
|
|
2678
2681
|
});
|
|
2679
|
-
else if (block.type === "server_tool_use") events$1.push({
|
|
2682
|
+
else if (block.type === "server_tool_use" || block.type === "tool_use") events$1.push({
|
|
2680
2683
|
type: "content_block_delta",
|
|
2681
2684
|
index,
|
|
2682
2685
|
delta: {
|