@@ -202,6 +202,60 @@ describe("configured plugin install release step", () => {
|
202 | 202 | expect(result.channelIds).toStrictEqual([]); |
203 | 203 | }); |
204 | 204 | |
| 205 | +it("collects provider plugins from channel-only model overrides", async () => { |
| 206 | +mocks.resolveProviderInstallCatalogEntries.mockReturnValue([ |
| 207 | +{ |
| 208 | +pluginId: "anthropic-provider", |
| 209 | +providerId: "anthropic", |
| 210 | +}, |
| 211 | +]); |
| 212 | + |
| 213 | +const { collectReleaseConfiguredPluginIds } = |
| 214 | +await import("./release-configured-plugin-installs.js"); |
| 215 | +const result = collectReleaseConfiguredPluginIds({ |
| 216 | +cfg: { |
| 217 | +channels: { |
| 218 | +modelByChannel: { |
| 219 | +discord: { |
| 220 | +default: "anthropic/claude-opus-4-7", |
| 221 | +}, |
| 222 | +}, |
| 223 | +}, |
| 224 | +}, |
| 225 | +env: {}, |
| 226 | +}); |
| 227 | + |
| 228 | +expect(result.pluginIds).toEqual(["anthropic-provider"]); |
| 229 | +expect(result.channelIds).toStrictEqual([]); |
| 230 | +}); |
| 231 | + |
| 232 | +it("collects provider plugins from provider-keyed channel model aliases", async () => { |
| 233 | +mocks.resolveProviderInstallCatalogEntries.mockReturnValue([ |
| 234 | +{ |
| 235 | +pluginId: "anthropic-provider", |
| 236 | +providerId: "anthropic", |
| 237 | +}, |
| 238 | +]); |
| 239 | + |
| 240 | +const { collectReleaseConfiguredPluginIds } = |
| 241 | +await import("./release-configured-plugin-installs.js"); |
| 242 | +const result = collectReleaseConfiguredPluginIds({ |
| 243 | +cfg: { |
| 244 | +channels: { |
| 245 | +modelByChannel: { |
| 246 | +anthropic: { |
| 247 | +discord: "claude-opus-4-7", |
| 248 | +}, |
| 249 | +}, |
| 250 | +}, |
| 251 | +}, |
| 252 | +env: {}, |
| 253 | +}); |
| 254 | + |
| 255 | +expect(result.pluginIds).toEqual(["anthropic-provider"]); |
| 256 | +expect(result.channelIds).toStrictEqual([]); |
| 257 | +}); |
| 258 | + |
205 | 259 | it("collects Codex from selectable OpenAI agent models even without integration discovery", async () => { |
206 | 260 | const { collectReleaseConfiguredPluginIds } = |
207 | 261 | await import("./release-configured-plugin-installs.js"); |
|