@codex-native/sdk 0.0.36 → 0.0.37

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/index.mjs CHANGED
@@ -895,7 +895,11 @@ ${request.systemInstructions}
895
895
  default:
896
896
  break;
897
897
  }
898
- if (event?.type !== "raw_event") {
898
+ const eventType = event?.type;
899
+ const itemType = event?.item?.type;
900
+ const skipRawEvent = eventType === "raw_event" || eventType === "turn.completed" || // Already emits response.completed + response_done
901
+ eventType === "item.started" && (itemType === "agent_message" || itemType === "reasoning") || eventType === "item.updated" && (itemType === "agent_message" || itemType === "reasoning") || eventType === "item.completed" && (itemType === "agent_message" || itemType === "reasoning");
902
+ if (!skipRawEvent) {
899
903
  const rawEvent = {
900
904
  type: "raw_event",
901
905
  raw: event