@salesforce/sfdx-agent-harness-mastra 0.36.0 → 0.38.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,22 @@
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.38.0] - 2026-07-30
7
+
8
+ ### Features
9
+ - **harness-openai**: MCP tool-progress @W-23558557@ ([#715](https://github.com/forcedotcom/agentic-dx/pull/715))
10
+
11
+ ### Tests
12
+ - **conformance**: cover abort while approval is parked @W-23597792 ([#710](https://github.com/forcedotcom/agentic-dx/pull/710))
13
+
14
+ ## [0.37.0] - 2026-07-28
15
+
16
+ ### Fixes
17
+ - **harness-openai**: treat usage: null like missing usage in finalizeUsage @W-23577076@ ([#697](https://github.com/forcedotcom/agentic-dx/pull/697))
18
+
19
+ ### Chores
20
+ - **deps**: bump the mastra group with 5 updates ([#706](https://github.com/forcedotcom/agentic-dx/pull/706))
21
+
6
22
  ## [0.36.0] - 2026-07-27
7
23
 
8
24
  ### Features
@@ -357,7 +357,9 @@ function toOpenAIInputFileOrImage(part) {
357
357
  * back to `undefined` `UsageMetadata` for consumers.
358
358
  */
359
359
  function finalizeUsage(usage, ctx, finishRaw) {
360
- const mapped = mapOpenAIUsage(usage === undefined
360
+ const mapped = mapOpenAIUsage(
361
+ // Gateway returns usage: null (not undefined) on billable-token-free completions; both collapse to the sentinel.
362
+ usage == null
361
363
  ? undefined
362
364
  : {
363
365
  prompt_tokens: usage.input_tokens,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/sfdx-agent-harness-mastra",
3
- "version": "0.36.0",
3
+ "version": "0.38.0",
4
4
  "description": "Mastra-backed AgentHarness implementation for @salesforce/sfdx-agent-sdk",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -32,21 +32,21 @@
32
32
  "@ai-sdk/provider": "^3.0.10",
33
33
  "@anthropic-ai/bedrock-sdk": "^0.32.0",
34
34
  "@anthropic-ai/sdk": "^0.111.0",
35
- "@mastra/core": "^1.50.1",
36
- "@mastra/libsql": "^1.15.1",
37
- "@mastra/mcp": "^1.13.1",
38
- "@mastra/memory": "^1.22.2",
35
+ "@mastra/core": "^1.51.0",
36
+ "@mastra/libsql": "^1.16.0",
37
+ "@mastra/mcp": "^1.14.0",
38
+ "@mastra/memory": "^1.23.0",
39
39
  "@mastra/schema-compat": "^1.2.11",
40
40
  "@salesforce/agentic-common": "0.13.0",
41
41
  "openai": "^6.0.0"
42
42
  },
43
43
  "peerDependencies": {
44
- "@salesforce/sfdx-agent-sdk": "0.37.0"
44
+ "@salesforce/sfdx-agent-sdk": "0.39.0"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@eslint/js": "^10.0.1",
48
48
  "@salesforce/harness-conformance": "0.0.1",
49
- "@salesforce/sfdx-agent-sdk": "0.37.0",
49
+ "@salesforce/sfdx-agent-sdk": "0.39.0",
50
50
  "@types/node": "^22.20.0",
51
51
  "@vitest/coverage-istanbul": "^4.1.10",
52
52
  "@vitest/eslint-plugin": "^1.6.22",