@salesforce/sfdx-agent-harness-mastra 0.85.0 → 0.87.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 +10 -0
- package/dist/mastra-event-adapter.d.ts +1 -1
- package/dist/mastra-event-adapter.js +3 -2
- package/package.json +17 -17
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,16 @@
|
|
|
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.87.0] - 2026-09-17
|
|
7
|
+
|
|
8
|
+
### Chores
|
|
9
|
+
- **deps**: upgrade all dependencies to latest @W-24127072@ ([#831](https://github.com/forcedotcom/agentic-dx/pull/831))
|
|
10
|
+
|
|
11
|
+
## [0.86.0] - 2026-09-17
|
|
12
|
+
|
|
13
|
+
### Fixes
|
|
14
|
+
- **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))
|
|
15
|
+
|
|
6
16
|
## [0.85.0] - 2026-09-16
|
|
7
17
|
|
|
8
18
|
### 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: '
|
|
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: '
|
|
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: '
|
|
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.
|
|
3
|
+
"version": "0.87.0",
|
|
4
4
|
"description": "Mastra-backed AgentHarness implementation for @salesforce/sfdx-agent-sdk",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -29,27 +29,27 @@
|
|
|
29
29
|
"LICENSE.txt"
|
|
30
30
|
],
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@ai-sdk/provider": "
|
|
33
|
-
"@anthropic-ai/bedrock-sdk": "^0.
|
|
34
|
-
"@anthropic-ai/sdk": "^0.
|
|
35
|
-
"@mastra/core": "^1.
|
|
36
|
-
"@mastra/libsql": "^1.
|
|
37
|
-
"@mastra/mcp": "^1.
|
|
38
|
-
"@mastra/memory": "^1.
|
|
39
|
-
"@mastra/schema-compat": "^1.3.
|
|
40
|
-
"@salesforce/agentic-common": "0.
|
|
32
|
+
"@ai-sdk/provider": "4.0.4",
|
|
33
|
+
"@anthropic-ai/bedrock-sdk": "^0.33.6",
|
|
34
|
+
"@anthropic-ai/sdk": "^0.126.0",
|
|
35
|
+
"@mastra/core": "^1.67.0",
|
|
36
|
+
"@mastra/libsql": "^1.23.0",
|
|
37
|
+
"@mastra/mcp": "^1.18.0",
|
|
38
|
+
"@mastra/memory": "^1.30.0",
|
|
39
|
+
"@mastra/schema-compat": "^1.3.10",
|
|
40
|
+
"@salesforce/agentic-common": "0.21.0",
|
|
41
41
|
"@smithy/eventstream-codec": "^4.5.2",
|
|
42
|
-
"openai": "^7.
|
|
42
|
+
"openai": "^7.17.0"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
|
-
"@salesforce/sfdx-agent-sdk": "0.
|
|
45
|
+
"@salesforce/sfdx-agent-sdk": "0.88.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.
|
|
50
|
+
"@salesforce/sfdx-agent-sdk": "0.88.0",
|
|
51
51
|
"@types/node": "^22.20.1",
|
|
52
|
-
"@vitest/coverage-istanbul": "^
|
|
52
|
+
"@vitest/coverage-istanbul": "^5.0.1",
|
|
53
53
|
"@vitest/eslint-plugin": "^1.6.27",
|
|
54
54
|
"eslint": "^10.10.0",
|
|
55
55
|
"eslint-config-prettier": "^10.1.8",
|
|
@@ -57,13 +57,13 @@
|
|
|
57
57
|
"eslint-plugin-import": "^2.32.0",
|
|
58
58
|
"eslint-plugin-n": "^18.3.0",
|
|
59
59
|
"globals": "^17.12.0",
|
|
60
|
-
"lint-staged": "^17.5.
|
|
61
|
-
"prettier": "^3.9.
|
|
60
|
+
"lint-staged": "^17.5.1",
|
|
61
|
+
"prettier": "^3.9.7",
|
|
62
62
|
"rimraf": "^6.1.3",
|
|
63
63
|
"tsx": "^4.23.13",
|
|
64
64
|
"typescript": "^7.0.2",
|
|
65
65
|
"typescript-eslint": "^8.70.0",
|
|
66
|
-
"vitest": "^
|
|
66
|
+
"vitest": "^5.0.1"
|
|
67
67
|
},
|
|
68
68
|
"engines": {
|
|
69
69
|
"node": ">=22.22.1"
|