@oh-my-pi/pi-agent-core 14.7.5 → 14.7.6

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,11 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [14.7.6] - 2026-05-07
6
+
7
+ ### Added
8
+
9
+ - Added `hideThinkingSummary` option/getter/setter on `Agent` and `AgentLoopConfig`. Forwarded to the underlying stream call so providers can omit reasoning/thinking summaries on demand.
5
10
  ## [14.7.2] - 2026-05-06
6
11
  ### Added
7
12
 
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": "14.7.5",
4
+ "version": "14.7.6",
5
5
  "description": "General-purpose agent with transport abstraction, state management, and attachment support",
6
6
  "homepage": "https://github.com/can1357/oh-my-pi",
7
7
  "author": "Can Boluk",
@@ -35,9 +35,9 @@
35
35
  "fmt": "biome format --write ."
36
36
  },
37
37
  "dependencies": {
38
- "@oh-my-pi/pi-ai": "14.7.5",
39
- "@oh-my-pi/pi-natives": "14.7.5",
40
- "@oh-my-pi/pi-utils": "14.7.5"
38
+ "@oh-my-pi/pi-ai": "14.7.6",
39
+ "@oh-my-pi/pi-natives": "14.7.6",
40
+ "@oh-my-pi/pi-utils": "14.7.6"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@sinclair/typebox": "^0.34.49",
package/src/agent.ts CHANGED
@@ -157,6 +157,12 @@ export interface AgentOptions {
157
157
  presencePenalty?: number;
158
158
  repetitionPenalty?: number;
159
159
  serviceTier?: ServiceTier;
160
+ /**
161
+ * If true, request that the underlying provider omit reasoning/thinking summaries
162
+ * from the response. The model still reasons internally; only the human-readable
163
+ * summary stream is suppressed. Useful when the UI hides thinking blocks anyway.
164
+ */
165
+ hideThinkingSummary?: boolean;
160
166
 
161
167
  /**
162
168
  * Maximum delay in milliseconds to wait for a retry when the server requests a long wait.
@@ -236,6 +242,7 @@ export class Agent {
236
242
  #presencePenalty?: number;
237
243
  #repetitionPenalty?: number;
238
244
  #serviceTier?: ServiceTier;
245
+ #hideThinkingSummary?: boolean;
239
246
  #maxRetryDelayMs?: number;
240
247
  #getToolContext?: (toolCall?: ToolCallContext) => AgentToolContext | undefined;
241
248
  #cursorExecHandlers?: CursorExecHandlers;
@@ -275,6 +282,7 @@ export class Agent {
275
282
  this.#presencePenalty = opts.presencePenalty;
276
283
  this.#repetitionPenalty = opts.repetitionPenalty;
277
284
  this.#serviceTier = opts.serviceTier;
285
+ this.#hideThinkingSummary = opts.hideThinkingSummary;
278
286
  this.#maxRetryDelayMs = opts.maxRetryDelayMs;
279
287
  this.getApiKey = opts.getApiKey;
280
288
  this.#onPayload = opts.onPayload;
@@ -395,6 +403,14 @@ export class Agent {
395
403
  this.#serviceTier = value;
396
404
  }
397
405
 
406
+ get hideThinkingSummary(): boolean | undefined {
407
+ return this.#hideThinkingSummary;
408
+ }
409
+
410
+ set hideThinkingSummary(value: boolean | undefined) {
411
+ this.#hideThinkingSummary = value;
412
+ }
413
+
398
414
  /**
399
415
  * Get the current max retry delay in milliseconds.
400
416
  */
@@ -758,6 +774,7 @@ export class Agent {
758
774
  presencePenalty: this.#presencePenalty,
759
775
  repetitionPenalty: this.#repetitionPenalty,
760
776
  serviceTier: this.#serviceTier,
777
+ hideThinkingSummary: this.#hideThinkingSummary,
761
778
  interruptMode: this.#interruptMode,
762
779
  sessionId: this.#sessionId,
763
780
  providerSessionState: this.#providerSessionState,