Skip to content

Commit 5a37a84

Browse files
Merge branch 'main' into dependabot/frontegg
2 parents fe39500 + 869655c commit 5a37a84

8 files changed

Lines changed: 60 additions & 20 deletions

File tree

THIRD_PARTY_LICENSES.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16333,16 +16333,17 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
1633316333

1633416334
The following npm packages may be included in this product:
1633516335

16336-
- @ai-sdk/anthropic@2.0.45
16336+
- @ai-sdk/anthropic@2.0.49
1633716337
- @ai-sdk/azure@2.0.70
1633816338
- @ai-sdk/cerebras@1.0.7
1633916339
- @ai-sdk/cohere@2.0.3
1634016340
- @ai-sdk/deepinfra@1.0.7
1634116341
- @ai-sdk/deepseek@1.0.7
1634216342
- @ai-sdk/gateway@1.0.11
1634316343
- @ai-sdk/gateway@1.0.5
16344-
- @ai-sdk/google-vertex@3.0.70
16344+
- @ai-sdk/google-vertex@3.0.80
1634516345
- @ai-sdk/google@2.0.38
16346+
- @ai-sdk/google@2.0.43
1634616347
- @ai-sdk/groq@2.0.7
1634716348
- @ai-sdk/mistral@2.0.4
1634816349
- @ai-sdk/openai-compatible@1.0.7

package-lock.json

Lines changed: 26 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,14 @@
3131
},
3232
"private": true,
3333
"dependencies": {
34-
"@ai-sdk/anthropic": "2.0.45",
34+
"@ai-sdk/anthropic": "2.0.49",
3535
"@ai-sdk/azure": "2.0.70",
3636
"@ai-sdk/cerebras": "1.0.7",
3737
"@ai-sdk/cohere": "2.0.3",
3838
"@ai-sdk/deepinfra": "1.0.7",
3939
"@ai-sdk/deepseek": "1.0.7",
4040
"@ai-sdk/google": "2.0.38",
41-
"@ai-sdk/google-vertex": "^3.0.70",
41+
"@ai-sdk/google-vertex": "^3.0.80",
4242
"@ai-sdk/groq": "2.0.7",
4343
"@ai-sdk/mistral": "2.0.4",
4444
"@ai-sdk/openai": "2.0.68",

packages/openops/src/lib/ai/providers/anthropic.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { LanguageModel } from 'ai';
33
import { AiProvider } from '../providers';
44

55
const anthropicModels = [
6+
'claude-opus-4-5-20251101',
67
'claude-sonnet-4-5-20250929',
78
'claude-haiku-4-5-20251001',
89
'claude-4-opus-20250514',

packages/openops/src/lib/ai/providers/google-vertex.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ const googleVertexGeminiModels = [
1313
];
1414

1515
const googleVertexClaudeModels = [
16+
'claude-opus-4-5@20251101',
1617
'claude-sonnet-4-5@20250929',
1718
'claude-haiku-4-5@20251001',
1819
'claude-3-haiku@20240307',

packages/react-ui/src/app/lib/frontegg-setup.ts

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,38 @@ export const additionalFronteggParams = {
55
prompt: 'select_account',
66
};
77

8-
export function initializeFrontegg(url: string, tenant?: string): FronteggApp {
9-
const tenantResolver = tenant ? () => ({ tenant }) : undefined;
8+
let fronteggApp: FronteggApp | null = null;
9+
10+
type Options = {
11+
url: string;
12+
clientId?: string;
13+
tenant?: string;
14+
};
1015

11-
return initialize({
16+
export function initializeFrontegg({
17+
url,
18+
clientId,
19+
tenant,
20+
}: Options): FronteggApp {
21+
if (fronteggApp) {
22+
return fronteggApp;
23+
}
24+
const tenantResolver = tenant ? () => ({ tenant }) : undefined;
25+
const options = {
1226
contextOptions: {
1327
baseUrl: url,
28+
clientId,
1429
tenantResolver,
1530
},
1631
authOptions: {
1732
keepSessionAlive: true,
1833
},
1934
hostedLoginBox: true,
20-
});
35+
};
36+
fronteggApp = initialize(options);
37+
return fronteggApp;
38+
}
39+
40+
export function getFronteggApp(): FronteggApp | null {
41+
return fronteggApp;
2142
}

packages/react-ui/src/app/routes/cloud-connection/cloud-connection-page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ const CloudConnectionPage = () => {
4343
return;
4444
}
4545

46-
const app = initializeFrontegg(FRONTEGG_URL as string);
46+
const app = initializeFrontegg({ url: FRONTEGG_URL as string });
4747

4848
app.ready(() => {
4949
app.store.subscribe(() => {

packages/react-ui/src/app/routes/cloud-connection/cloud-logout-page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ const CloudLogoutPage = () => {
3737
return;
3838
}
3939

40-
const app = initializeFrontegg(FRONTEGG_URL as string);
40+
const app = initializeFrontegg({ url: FRONTEGG_URL as string });
4141

4242
Cookies.remove('cloud-token');
4343
Cookies.remove('cloud-refresh-token');

0 commit comments

Comments
 (0)