@salesforce/sfdx-agent-harness-mastra 0.85.0 → 0.86.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,11 @@
3
3
  All notable changes to `@salesforce/sfdx-agent-harness-mastra` are documented in this file.
4
4
  Format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
5
5
 
6
+ ## [0.86.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
+
6
11
  ## [0.85.0] - 2026-09-16
7
12
 
8
13
  ### Features
@@ -40,7 +40,7 @@ import type { ChatEvent } from '@salesforce/sfdx-agent-sdk';
40
40
  * | `step-finish` | `step-finish` | `{ stepIndex, finishReason, usage }` from `stepResult` |
41
41
  * | `finish` | `finish` | `{ finishReason, usage }` from `output` |
42
42
  * | `error` / `tripwire` | `error` | `{ error, code? }` |
43
- * | `abort` | `error` | `{ error: DOMException('AbortError'), code: 'abort' }` |
43
+ * | `abort` | `error` | `{ error: DOMException('AbortError'), code: 'cancelled' }` |
44
44
  * | `start` | `start` | Symmetric counterpart to `finish` |
45
45
  * | `text-start`, | *(skipped)* | Informational lifecycle events — `undefined` returned |
46
46
  * | `text-end`, | | |
@@ -44,7 +44,7 @@ import { isClassifiedStreamError } from './stream-errors.js';
44
44
  * | `step-finish` | `step-finish` | `{ stepIndex, finishReason, usage }` from `stepResult` |
45
45
  * | `finish` | `finish` | `{ finishReason, usage }` from `output` |
46
46
  * | `error` / `tripwire` | `error` | `{ error, code? }` |
47
- * | `abort` | `error` | `{ error: DOMException('AbortError'), code: 'abort' }` |
47
+ * | `abort` | `error` | `{ error: DOMException('AbortError'), code: 'cancelled' }` |
48
48
  * | `start` | `start` | Symmetric counterpart to `finish` |
49
49
  * | `text-start`, | *(skipped)* | Informational lifecycle events — `undefined` returned |
50
50
  * | `text-end`, | | |
@@ -192,10 +192,11 @@ export class MastraEventAdapter {
192
192
  code: 'tripwire',
193
193
  };
194
194
  case 'abort':
195
+ // Canonicalize any abort chunk to `'cancelled'` (unreachable on the signal-fired path — see ARCHITECTURE.md).
195
196
  return {
196
197
  type: 'error',
197
198
  error: new DOMException('The stream was aborted.', 'AbortError'),
198
- code: 'abort',
199
+ code: 'cancelled',
199
200
  };
200
201
  case 'start':
201
202
  return { type: 'start' };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/sfdx-agent-harness-mastra",
3
- "version": "0.85.0",
3
+ "version": "0.86.0",
4
4
  "description": "Mastra-backed AgentHarness implementation for @salesforce/sfdx-agent-sdk",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -42,12 +42,12 @@
42
42
  "openai": "^7.0.0"
43
43
  },
44
44
  "peerDependencies": {
45
- "@salesforce/sfdx-agent-sdk": "0.86.0"
45
+ "@salesforce/sfdx-agent-sdk": "0.87.0"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@eslint/js": "^10.0.1",
49
49
  "@salesforce/harness-conformance": "0.0.1",
50
- "@salesforce/sfdx-agent-sdk": "0.86.0",
50
+ "@salesforce/sfdx-agent-sdk": "0.87.0",
51
51
  "@types/node": "^22.20.1",
52
52
  "@vitest/coverage-istanbul": "^4.1.11",
53
53
  "@vitest/eslint-plugin": "^1.6.27",