New:Socket for Asana Is Now Available.Learn more
Get Started

@opencode-ai/ai

Package Overview
Dependencies
Maintainers
2
Versions
1226
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@opencode-ai/ai - npm Package Compare versions

Comparing version
0.0.0-dev-18808
to
0.0.0-dev-18809
+3
-4
dist/protocols/open-responses.js

@@ -1001,7 +1001,6 @@ import { Effect, Option, Schema } from "effect";

for (const item of event.response?.output ?? []) {
const id = item.id ?? (item.type === "function_call" ? item.call_id : undefined);
if (id === undefined)
if (item.type !== "function_call" ||
!item.call_id ||
!Object.values(current.tools).some((tool) => tool?.id === item.call_id))
continue;
if (item.type !== "function_call" || !current.tools[id])
continue;
const [next, emitted] = yield* onOutputItemDone(current, item);

@@ -1008,0 +1007,0 @@ current = next;

{
"$schema": "https://json.schemastore.org/package.json",
"version": "0.0.0-dev-18808",
"version": "0.0.0-dev-18809",
"name": "@opencode-ai/ai",

@@ -33,3 +33,3 @@ "type": "module",

"@effect/platform-node": "4.0.0-rc.112",
"@opencode-ai/http-recorder": "0.0.0-dev-18808",
"@opencode-ai/http-recorder": "0.0.0-dev-18809",
"@tsconfig/bun": "1.0.9",

@@ -43,3 +43,3 @@ "@types/bun": "1.3.13",

"@smithy/util-utf8": "4.2.2",
"@opencode-ai/schema": "0.0.0-dev-18808",
"@opencode-ai/schema": "0.0.0-dev-18809",
"aws4fetch": "1.0.20",

@@ -46,0 +46,0 @@ "effect": "4.0.0-rc.112",