@salesforce/sfdx-agent-sdk 0.57.0 → 0.58.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 +5 -0
- package/dist/agent.js +11 -2
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,11 @@
|
|
|
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.58.0] - 2026-08-28
|
|
7
|
+
|
|
8
|
+
### Fixes
|
|
9
|
+
- **harness-mastra,agent-sdk**: resilient thread enumeration + exception-safe destroyChatSession @W-24014120@ ([#774](https://github.com/forcedotcom/agentic-dx/pull/774))
|
|
10
|
+
|
|
6
11
|
## [0.57.0] - 2026-08-27
|
|
7
12
|
|
|
8
13
|
### 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
|
-
|
|
287
|
-
|
|
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.
|
|
3
|
+
"version": "0.58.0",
|
|
4
4
|
"description": "Harness-agnostic agentic infrastructure for Salesforce developer experience tooling",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -47,9 +47,9 @@
|
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@eslint/js": "^10.0.1",
|
|
50
|
-
"@salesforce/sfdx-agent-harness-claude": "0.
|
|
51
|
-
"@salesforce/sfdx-agent-harness-mastra": "0.
|
|
52
|
-
"@salesforce/sfdx-agent-harness-openai": "0.
|
|
50
|
+
"@salesforce/sfdx-agent-harness-claude": "0.54.0",
|
|
51
|
+
"@salesforce/sfdx-agent-harness-mastra": "0.57.0",
|
|
52
|
+
"@salesforce/sfdx-agent-harness-openai": "0.23.0",
|
|
53
53
|
"@types/node": "^22.20.1",
|
|
54
54
|
"@vitest/coverage-istanbul": "^4.1.10",
|
|
55
55
|
"@vitest/eslint-plugin": "^1.6.27",
|