@salesforce/sfdx-agent-harness-claude 0.81.0 → 0.83.0

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
@@ -3,6 +3,15 @@
3
3
  All notable changes to `@salesforce/sfdx-agent-harness-claude` are documented in this file.
4
4
  Format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
5
5
 
6
+ ## [0.83.0] - 2026-09-17
7
+
8
+ ### Fixes
9
+ - **agent-sdk,harness-mastra**: classify aborted turns as finishReason 'cancelled' at the pre-stream sites @W-23749670@ ([#830](https://github.com/forcedotcom/agentic-dx/pull/830))
10
+
11
+ ## [0.82.0] - 2026-09-16
12
+
13
+ _No changes — released alongside dependent packages._
14
+
6
15
  ## [0.81.0] - 2026-09-16
7
16
 
8
17
  _No changes — released alongside dependent packages._
package/README.md CHANGED
@@ -218,9 +218,10 @@ When `StreamOptions.abortSignal` fires during an active turn with approval gatin
218
218
 
219
219
  - All pending permission Promises reject with an `AbortError`.
220
220
  - The underlying Claude subprocess is killed (existing `AbortController` wiring).
221
- - The single per-turn `eventStream` ends with an `error` event (`code: 'aborted'`, `error.name === 'AbortError'`)
222
- followed by a `finish` event (`finishReason: 'error'`). The `'error'` finish reason is used because the SDK's
223
- `FinishReason` type has no `'aborted'` value; the preceding `error` event carries the abort identity.
221
+ - The single per-turn `eventStream` ends with an `error` event (`code: 'cancelled'`, `error.name === 'AbortError'`)
222
+ followed by a `finish` event (`finishReason: 'cancelled'`). The canonical `'cancelled'` code and finish reason are
223
+ uniform across the Claude, Mastra, and OpenAI harnesses (W-23559264), so consumers distinguish a user cancel from a
224
+ genuine failure without branching on harness-specific codes — a cancelled turn never surfaces `finishReason: 'error'`.
224
225
 
225
226
  If the signal is already aborted when `stream()` is called, `stream()` throws synchronously (existing
226
227
  `AbortSignal.throwIfAborted()` behavior — unchanged).