@salesforce/sfdx-agent-chat-generations 0.1.0 → 0.2.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-chat-generations` are documented in this file.
4
4
  Format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
5
5
 
6
+ ## [0.2.0] - 2026-07-29
7
+
8
+ ### Fixes
9
+ - **chat-generations**: accept azureOpenAI provider on GovCloud GPT-5 stream @W-23614921@ ([#711](https://github.com/forcedotcom/agentic-dx/pull/711))
10
+
6
11
  ## [0.1.0] - 2026-07-28
7
12
 
8
13
  _No changes — released alongside dependent packages._
@@ -90,8 +90,9 @@ type GPT5Generation = {
90
90
  };
91
91
  tool_invocations?: RawToolInvocation[] | null;
92
92
  };
93
+ export type GPT5Provider = 'openai' | 'azureOpenAI';
93
94
  type GPT5GenerationParameters = {
94
- provider: 'openai';
95
+ provider: GPT5Provider;
95
96
  created?: number;
96
97
  model?: string;
97
98
  usage?: GPT5TokenUsageDetails;
@@ -11,11 +11,15 @@
11
11
  export function isLLMGErrorEvent(chunk) {
12
12
  return 'error' in chunk && typeof chunk.error === 'object' && 'errorCode' in chunk.error;
13
13
  }
14
+ // Provider labels that denote an OpenAI GPT-5 envelope on this GPT-only path:
15
+ // 'openai' (commercial gateway) and 'azureOpenAI' (GovCloud's Azure-hosted
16
+ // gateway). A Bedrock/Anthropic envelope reaching here is still refused.
17
+ const GPT5_PROVIDERS = new Set(['openai', 'azureOpenAI']);
14
18
  /**
15
19
  * Type guard to check if a raw response is from GPT-5.
16
20
  */
17
21
  export function isGPT5Response(response) {
18
22
  const params = 'generation_details' in response ? response.generation_details?.parameters : undefined;
19
- return params !== undefined && 'provider' in params && params.provider === 'openai';
23
+ return params !== undefined && 'provider' in params && GPT5_PROVIDERS.has(params.provider);
20
24
  }
21
25
  //# sourceMappingURL=chat-response.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/sfdx-agent-chat-generations",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "description": "Temporary GovCloud chat/generations fallback for @salesforce/sfdx-agent-harness-mastra",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",