@salesforce/sfdx-agent-sdk 0.57.0 → 0.59.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-sdk` are documented in this file.
4
4
  Format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
5
5
 
6
+ ## [0.59.0] - 2026-08-28
7
+
8
+ _No changes — released alongside dependent packages._
9
+
10
+ ## [0.58.0] - 2026-08-28
11
+
12
+ ### Fixes
13
+ - **harness-mastra,agent-sdk**: resilient thread enumeration + exception-safe destroyChatSession @W-24014120@ ([#774](https://github.com/forcedotcom/agentic-dx/pull/774))
14
+
6
15
  ## [0.57.0] - 2026-08-27
7
16
 
8
17
  ### Features
package/dist/agent.js CHANGED
@@ -283,8 +283,17 @@ export class DefaultAgent {
283
283
  if (!session) {
284
284
  throw new AgentSDKError(`No ChatSession found with id: "${sessionId}"`, AgentSDKErrorType.CHAT_SESSION_NOT_FOUND);
285
285
  }
286
- await this.harness.destroyThread(this.agentId, sessionId);
287
- this.detachSession(sessionId, session);
286
+ try {
287
+ await this.harness.destroyThread(this.agentId, sessionId);
288
+ }
289
+ finally {
290
+ // Detach the in-memory session even if the harness threw (disk error,
291
+ // corrupt/unreachable backing row), so a thread that can't be torn down
292
+ // can't leave an undeletable chat attached. The harness failure still
293
+ // propagates — best-effort cleanup, not silently swallowed
294
+ // (spike agent-offline-failure-modes #11, W-24014120).
295
+ this.detachSession(sessionId, session);
296
+ }
288
297
  }
289
298
  /**
290
299
  * @requirements
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/sfdx-agent-sdk",
3
- "version": "0.57.0",
3
+ "version": "0.59.0",
4
4
  "description": "Harness-agnostic agentic infrastructure for Salesforce developer experience tooling",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -43,13 +43,13 @@
43
43
  "LICENSE.txt"
44
44
  ],
45
45
  "dependencies": {
46
- "@salesforce/agentic-common": "0.17.0"
46
+ "@salesforce/agentic-common": "0.18.0"
47
47
  },
48
48
  "devDependencies": {
49
49
  "@eslint/js": "^10.0.1",
50
- "@salesforce/sfdx-agent-harness-claude": "0.53.0",
51
- "@salesforce/sfdx-agent-harness-mastra": "0.56.0",
52
- "@salesforce/sfdx-agent-harness-openai": "0.22.0",
50
+ "@salesforce/sfdx-agent-harness-claude": "0.55.0",
51
+ "@salesforce/sfdx-agent-harness-mastra": "0.58.0",
52
+ "@salesforce/sfdx-agent-harness-openai": "0.24.0",
53
53
  "@types/node": "^22.20.1",
54
54
  "@vitest/coverage-istanbul": "^4.1.10",
55
55
  "@vitest/eslint-plugin": "^1.6.27",