opc-agent 4.0.41 → 4.0.42

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.
@@ -1813,7 +1813,7 @@
1813
1813
 
1814
1814
  document.getElementById('typing-indicator').classList.remove('show');
1815
1815
 
1816
- if (res.headers.get('content-type')?.includes('text/event-stream')) {
1816
+ if (true) { // Always try SSE first — server returns text/event-stream for chat
1817
1817
  // SSE streaming
1818
1818
  const reader = res.body.getReader();
1819
1819
  const decoder = new TextDecoder();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opc-agent",
3
- "version": "4.0.41",
3
+ "version": "4.0.42",
4
4
  "description": "Open Agent Framework — Build, test, and run AI Agents for business workstations",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1813,7 +1813,7 @@
1813
1813
 
1814
1814
  document.getElementById('typing-indicator').classList.remove('show');
1815
1815
 
1816
- if (res.headers.get('content-type')?.includes('text/event-stream')) {
1816
+ if (true) { // Always try SSE first — server returns text/event-stream for chat
1817
1817
  // SSE streaming
1818
1818
  const reader = res.body.getReader();
1819
1819
  const decoder = new TextDecoder();