@salesforce/sfdx-agent-sdk 0.79.0 → 0.80.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-sdk` are documented in this file.
4
4
  Format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
5
5
 
6
+ ## [0.80.0] - 2026-09-14
7
+
8
+ ### Fixes
9
+ - **harness-mastra**: stamp Anthropic cache_control in the Mastra pass-through @W-24130072@ ([#811](https://github.com/forcedotcom/agentic-dx/pull/811))
10
+
6
11
  ## [0.79.0] - 2026-09-14
7
12
 
8
13
  ### Features
@@ -58,8 +58,11 @@ export declare enum ModelName {
58
58
  * - **Context-window tracking.** `ChatSession.getContextUsage()` reads
59
59
  * `contextWindow` to compute "% of context used".
60
60
  * - **Prompt-cache routing.** Anthropic-Claude-family models declare
61
- * `supportsPromptCache: true`; harnesses use the flag to enable cache
62
- * write/read on the wire.
61
+ * `supportsPromptCache: true`; GPT models declare `false`. Read by the
62
+ * Mastra Anthropic pass-through (`buildAnthropicLanguageModel` /
63
+ * `buildAnthropicDirectLanguageModel`) to gate `cache_control` stamping on
64
+ * Bedrock-Anthropic and direct-Anthropic requests — caching is a Claude-only,
65
+ * explicit opt-in; GPT's prefix cache is automatic and needs no stamp.
63
66
  *
64
67
  * In-tree subclasses pin `name` to a {@link ModelName} enum member;
65
68
  * instances built via {@link createClaudeModel} (the consumer-facing
@@ -46,8 +46,11 @@ export var ModelName;
46
46
  * - **Context-window tracking.** `ChatSession.getContextUsage()` reads
47
47
  * `contextWindow` to compute "% of context used".
48
48
  * - **Prompt-cache routing.** Anthropic-Claude-family models declare
49
- * `supportsPromptCache: true`; harnesses use the flag to enable cache
50
- * write/read on the wire.
49
+ * `supportsPromptCache: true`; GPT models declare `false`. Read by the
50
+ * Mastra Anthropic pass-through (`buildAnthropicLanguageModel` /
51
+ * `buildAnthropicDirectLanguageModel`) to gate `cache_control` stamping on
52
+ * Bedrock-Anthropic and direct-Anthropic requests — caching is a Claude-only,
53
+ * explicit opt-in; GPT's prefix cache is automatic and needs no stamp.
51
54
  *
52
55
  * In-tree subclasses pin `name` to a {@link ModelName} enum member;
53
56
  * instances built via {@link createClaudeModel} (the consumer-facing
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/sfdx-agent-sdk",
3
- "version": "0.79.0",
3
+ "version": "0.80.0",
4
4
  "description": "Harness-agnostic agentic infrastructure for Salesforce developer experience tooling",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -48,9 +48,9 @@
48
48
  },
49
49
  "devDependencies": {
50
50
  "@eslint/js": "^10.0.1",
51
- "@salesforce/sfdx-agent-harness-claude": "0.75.0",
52
- "@salesforce/sfdx-agent-harness-mastra": "0.78.0",
53
- "@salesforce/sfdx-agent-harness-openai": "0.44.0",
51
+ "@salesforce/sfdx-agent-harness-claude": "0.76.0",
52
+ "@salesforce/sfdx-agent-harness-mastra": "0.79.0",
53
+ "@salesforce/sfdx-agent-harness-openai": "0.45.0",
54
54
  "@types/node": "^22.20.1",
55
55
  "@vitest/coverage-istanbul": "^4.1.11",
56
56
  "@vitest/eslint-plugin": "^1.6.27",