@oh-my-pi/pi-agent-core 17.1.4 → 17.1.5

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/CHANGELOG.md CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [17.1.5] - 2026-07-27
6
+
7
+ ### Fixed
8
+
9
+ - Fixed proxy-stream clients dropping finalized provider-only content blocks, including Anthropic native web-search history, by allowing `done` and `error` events to carry terminal assistant content while retaining delta-reconstructed content from older proxy servers that omit it ([#6703](https://github.com/can1357/oh-my-pi/issues/6703)).
10
+
5
11
  ## [17.1.4] - 2026-07-26
6
12
 
7
13
  ### Changed
@@ -53,11 +53,13 @@ export type ProxyAssistantMessageEvent = {
53
53
  type: "done";
54
54
  reason: Extract<StopReason, "stop" | "length" | "toolUse">;
55
55
  usage: AssistantMessage["usage"];
56
+ content?: AssistantMessage["content"];
56
57
  } | {
57
58
  type: "error";
58
59
  reason: Extract<StopReason, "aborted" | "error">;
59
60
  errorMessage?: string;
60
61
  usage: AssistantMessage["usage"];
62
+ content?: AssistantMessage["content"];
61
63
  };
62
64
  export interface ProxyStreamOptions extends SimpleStreamOptions {
63
65
  /** Auth token for the proxy server */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "@oh-my-pi/pi-agent-core",
4
- "version": "17.1.4",
4
+ "version": "17.1.5",
5
5
  "description": "General-purpose agent with transport abstraction, state management, and attachment support",
6
6
  "homepage": "https://omp.sh",
7
7
  "author": "Can Boluk",
@@ -35,12 +35,12 @@
35
35
  "fmt": "biome format --write ."
36
36
  },
37
37
  "dependencies": {
38
- "@oh-my-pi/pi-ai": "17.1.4",
39
- "@oh-my-pi/pi-catalog": "17.1.4",
40
- "@oh-my-pi/pi-natives": "17.1.4",
41
- "@oh-my-pi/pi-utils": "17.1.4",
42
- "@oh-my-pi/pi-wire": "17.1.4",
43
- "@oh-my-pi/snapcompact": "17.1.4",
38
+ "@oh-my-pi/pi-ai": "17.1.5",
39
+ "@oh-my-pi/pi-catalog": "17.1.5",
40
+ "@oh-my-pi/pi-natives": "17.1.5",
41
+ "@oh-my-pi/pi-utils": "17.1.5",
42
+ "@oh-my-pi/pi-wire": "17.1.5",
43
+ "@oh-my-pi/snapcompact": "17.1.5",
44
44
  "@opentelemetry/api": "^1.9.1"
45
45
  },
46
46
  "devDependencies": {
package/src/proxy.ts CHANGED
@@ -56,12 +56,14 @@ export type ProxyAssistantMessageEvent =
56
56
  type: "done";
57
57
  reason: Extract<StopReason, "stop" | "length" | "toolUse">;
58
58
  usage: AssistantMessage["usage"];
59
+ content?: AssistantMessage["content"];
59
60
  }
60
61
  | {
61
62
  type: "error";
62
63
  reason: Extract<StopReason, "aborted" | "error">;
63
64
  errorMessage?: string;
64
65
  usage: AssistantMessage["usage"];
66
+ content?: AssistantMessage["content"];
65
67
  };
66
68
 
67
69
  export interface ProxyStreamOptions extends SimpleStreamOptions {
@@ -372,6 +374,7 @@ function processProxyEvent(
372
374
  case "done":
373
375
  partial.stopReason = proxyEvent.reason;
374
376
  partial.usage = proxyEvent.usage;
377
+ if (proxyEvent.content !== undefined) partial.content = proxyEvent.content;
375
378
  calculateCost(model, partial.usage);
376
379
  scrubPartialJson(partial);
377
380
  return { type: "done", reason: proxyEvent.reason, message: partial };
@@ -380,6 +383,7 @@ function processProxyEvent(
380
383
  partial.stopReason = proxyEvent.reason;
381
384
  partial.errorMessage = proxyEvent.errorMessage;
382
385
  partial.usage = proxyEvent.usage;
386
+ if (proxyEvent.content !== undefined) partial.content = proxyEvent.content;
383
387
  calculateCost(model, partial.usage);
384
388
  scrubPartialJson(partial);
385
389
  return { type: "error", reason: proxyEvent.reason, error: partial };