Skip to content

Commit 1cf164c

Browse files
authored
Merge pull request #817 from Merit-Systems/master
[release] update models + fix cve
2 parents ef064bc + 76d9f1a commit 1cf164c

18 files changed

Lines changed: 166 additions & 48 deletions

File tree

.github/workflows/auto-test-publish.yml

Lines changed: 62 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
fetch-depth: 0
2828

2929
- name: Install pnpm
30-
run: npm install -g pnpm
30+
run: npm install -g pnpm@10.11.0
3131

3232
- name: Setup Node.js
3333
uses: actions/setup-node@v4
@@ -84,10 +84,17 @@ jobs:
8484
PACKAGE_NAME=$(node -p "require('./package.json').name")
8585
PACKAGE_VERSION=$(node -p "require('./package.json').version")
8686
87-
echo "🚀 Publishing $PACKAGE_NAME@$PACKAGE_VERSION to test tag..."
88-
pnpm publish --access public --tag test --no-git-checks
89-
echo "published=true" >> $GITHUB_OUTPUT
90-
echo "✅ Successfully published $PACKAGE_NAME to test tag"
87+
if [ "${{ github.event_name }}" = "pull_request" ]; then
88+
echo "🔍 Validating $PACKAGE_NAME@$PACKAGE_VERSION with publish dry-run..."
89+
pnpm publish --dry-run --access public --tag test --no-git-checks
90+
echo "published=false" >> $GITHUB_OUTPUT
91+
echo "✅ Successfully validated $PACKAGE_NAME publish"
92+
else
93+
echo "🚀 Publishing $PACKAGE_NAME@$PACKAGE_VERSION to test tag..."
94+
pnpm publish --access public --tag test --no-git-checks
95+
echo "published=true" >> $GITHUB_OUTPUT
96+
echo "✅ Successfully published $PACKAGE_NAME to test tag"
97+
fi
9198
9299
# React SDK
93100
- name: Version and build React SDK
@@ -126,10 +133,17 @@ jobs:
126133
PACKAGE_NAME=$(node -p "require('./package.json').name")
127134
PACKAGE_VERSION=$(node -p "require('./package.json').version")
128135
129-
echo "🚀 Publishing $PACKAGE_NAME@$PACKAGE_VERSION to test tag..."
130-
pnpm publish --access public --tag test --no-git-checks
131-
echo "published=true" >> $GITHUB_OUTPUT
132-
echo "✅ Successfully published $PACKAGE_NAME to test tag"
136+
if [ "${{ github.event_name }}" = "pull_request" ]; then
137+
echo "🔍 Validating $PACKAGE_NAME@$PACKAGE_VERSION with publish dry-run..."
138+
pnpm publish --dry-run --access public --tag test --no-git-checks
139+
echo "published=false" >> $GITHUB_OUTPUT
140+
echo "✅ Successfully validated $PACKAGE_NAME publish"
141+
else
142+
echo "🚀 Publishing $PACKAGE_NAME@$PACKAGE_VERSION to test tag..."
143+
pnpm publish --access public --tag test --no-git-checks
144+
echo "published=true" >> $GITHUB_OUTPUT
145+
echo "✅ Successfully published $PACKAGE_NAME to test tag"
146+
fi
133147
134148
# Next.js SDK
135149
- name: Version and build Next.js SDK
@@ -168,10 +182,17 @@ jobs:
168182
PACKAGE_NAME=$(node -p "require('./package.json').name")
169183
PACKAGE_VERSION=$(node -p "require('./package.json').version")
170184
171-
echo "🚀 Publishing $PACKAGE_NAME@$PACKAGE_VERSION to test tag..."
172-
pnpm publish --access public --tag test --no-git-checks
173-
echo "published=true" >> $GITHUB_OUTPUT
174-
echo "✅ Successfully published $PACKAGE_NAME to test tag"
185+
if [ "${{ github.event_name }}" = "pull_request" ]; then
186+
echo "🔍 Validating $PACKAGE_NAME@$PACKAGE_VERSION with publish dry-run..."
187+
pnpm publish --dry-run --access public --tag test --no-git-checks
188+
echo "published=false" >> $GITHUB_OUTPUT
189+
echo "✅ Successfully validated $PACKAGE_NAME publish"
190+
else
191+
echo "🚀 Publishing $PACKAGE_NAME@$PACKAGE_VERSION to test tag..."
192+
pnpm publish --access public --tag test --no-git-checks
193+
echo "published=true" >> $GITHUB_OUTPUT
194+
echo "✅ Successfully published $PACKAGE_NAME to test tag"
195+
fi
175196
176197
# AIx402 SDK
177198
- name: Version and build AIx402 SDK
@@ -210,10 +231,17 @@ jobs:
210231
PACKAGE_NAME=$(node -p "require('./package.json').name")
211232
PACKAGE_VERSION=$(node -p "require('./package.json').version")
212233
213-
echo "🚀 Publishing $PACKAGE_NAME@$PACKAGE_VERSION to test tag..."
214-
pnpm publish --access public --tag test --no-git-checks
215-
echo "published=true" >> $GITHUB_OUTPUT
216-
echo "✅ Successfully published $PACKAGE_NAME to test tag"
234+
if [ "${{ github.event_name }}" = "pull_request" ]; then
235+
echo "🔍 Validating $PACKAGE_NAME@$PACKAGE_VERSION with publish dry-run..."
236+
pnpm publish --dry-run --access public --tag test --no-git-checks
237+
echo "published=false" >> $GITHUB_OUTPUT
238+
echo "✅ Successfully validated $PACKAGE_NAME publish"
239+
else
240+
echo "🚀 Publishing $PACKAGE_NAME@$PACKAGE_VERSION to test tag..."
241+
pnpm publish --access public --tag test --no-git-checks
242+
echo "published=true" >> $GITHUB_OUTPUT
243+
echo "✅ Successfully published $PACKAGE_NAME to test tag"
244+
fi
217245
218246
# Echo Start CLI
219247
- name: Version and build Echo Start CLI
@@ -252,15 +280,26 @@ jobs:
252280
PACKAGE_NAME=$(node -p "require('./package.json').name")
253281
PACKAGE_VERSION=$(node -p "require('./package.json').version")
254282
255-
echo "🚀 Publishing $PACKAGE_NAME@$PACKAGE_VERSION to test tag..."
256-
pnpm publish --access public --tag test --no-git-checks
257-
echo "published=true" >> $GITHUB_OUTPUT
258-
echo "✅ Successfully published $PACKAGE_NAME to test tag"
283+
if [ "${{ github.event_name }}" = "pull_request" ]; then
284+
echo "🔍 Validating $PACKAGE_NAME@$PACKAGE_VERSION with publish dry-run..."
285+
pnpm publish --dry-run --access public --tag test --no-git-checks
286+
echo "published=false" >> $GITHUB_OUTPUT
287+
echo "✅ Successfully validated $PACKAGE_NAME publish"
288+
else
289+
echo "🚀 Publishing $PACKAGE_NAME@$PACKAGE_VERSION to test tag..."
290+
pnpm publish --access public --tag test --no-git-checks
291+
echo "published=true" >> $GITHUB_OUTPUT
292+
echo "✅ Successfully published $PACKAGE_NAME to test tag"
293+
fi
259294
260295
- name: Summary
261296
run: |
262-
echo "✅ Test version published successfully!"
297+
if [ "${{ github.event_name }}" = "pull_request" ]; then
298+
echo "✅ Test version validated successfully!"
299+
else
300+
echo "✅ Test version published successfully!"
301+
fi
263302
echo "📦 Version: ${{ steps.get-version.outputs.version }}"
264303
echo "🏷️ Tag: test"
265304
echo ""
266-
echo "Install with: npm install @merit-systems/echo-typescript-sdk@test"
305+
echo "Install with: npm install @merit-systems/echo-typescript-sdk@test"

.github/workflows/ci-checks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
uses: actions/checkout@v4
1919

2020
- name: Install pnpm
21-
run: npm install -g pnpm
21+
run: npm install -g pnpm@10.11.0
2222

2323
- name: Setup Node.js
2424
uses: actions/setup-node@v4

.github/workflows/integration-tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ jobs:
100100
uses: actions/checkout@v4
101101

102102
- name: Install pnpm
103-
run: npm install -g pnpm
103+
run: npm install -g pnpm@10.11.0
104104

105105
- name: Setup Node.js
106106
uses: actions/setup-node@v4
@@ -378,7 +378,7 @@ jobs:
378378
uses: actions/checkout@v4
379379

380380
- name: Install pnpm
381-
run: npm install -g pnpm
381+
run: npm install -g pnpm@10.11.0
382382

383383
- name: Setup Node.js
384384
uses: actions/setup-node@v4

.github/workflows/provider-smoke-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
uses: actions/checkout@v4
2222

2323
- name: Install pnpm
24-
run: npm install -g pnpm
24+
run: npm install -g pnpm@10.11.0
2525

2626
- name: Setup Node.js
2727
uses: actions/setup-node@v4

.github/workflows/publish-sdks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
fetch-depth: 0
3333

3434
- name: Install pnpm
35-
run: npm install -g pnpm
35+
run: npm install -g pnpm@10.11.0
3636

3737
- name: Setup Node.js
3838
uses: actions/setup-node@v4

.github/workflows/test-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ jobs:
9494
fetch-depth: 0
9595

9696
- name: Install pnpm
97-
run: npm install -g pnpm
97+
run: npm install -g pnpm@10.11.0
9898

9999
- name: Setup Node.js
100100
uses: actions/setup-node@v4

packages/sdk/next/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@merit-systems/echo-next-sdk",
3-
"version": "0.0.30",
3+
"version": "0.0.31",
44
"description": "Next.js SDK for Echo",
55
"type": "module",
66
"main": "./dist/index.js",

packages/sdk/react/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@merit-systems/echo-react-sdk",
3-
"version": "1.0.39",
3+
"version": "1.0.40",
44
"description": "React SDK for Echo OAuth2 + PKCE authentication and token management",
55
"type": "module",
66
"main": "./dist/index.cjs",

packages/sdk/ts/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@merit-systems/echo-typescript-sdk",
3-
"version": "1.0.23",
3+
"version": "1.0.24",
44
"description": "TypeScript SDK for Echo platform",
55
"type": "module",
66
"main": "./dist/index.cjs",

packages/sdk/ts/src/supported-models/chat/anthropic.ts

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,10 @@ export type AnthropicModel =
1111
| 'claude-haiku-4-5-20251001'
1212
| 'claude-opus-4-1-20250805'
1313
| 'claude-opus-4-20250514'
14+
| 'claude-opus-4-8'
1415
| 'claude-sonnet-4-20250514'
15-
| 'claude-sonnet-4-5-20250929';
16+
| 'claude-sonnet-4-5-20250929'
17+
| 'claude-sonnet-4-6';
1618

1719
export const AnthropicModels: SupportedModel[] = [
1820
{
@@ -69,6 +71,12 @@ export const AnthropicModels: SupportedModel[] = [
6971
output_cost_per_token: 0.000075,
7072
provider: 'Anthropic',
7173
},
74+
{
75+
model_id: 'claude-opus-4-8',
76+
input_cost_per_token: 0.000005,
77+
output_cost_per_token: 0.000025,
78+
provider: 'Anthropic',
79+
},
7280
{
7381
model_id: 'claude-sonnet-4-20250514',
7482
input_cost_per_token: 0.000003,
@@ -81,4 +89,10 @@ export const AnthropicModels: SupportedModel[] = [
8189
output_cost_per_token: 0.000015,
8290
provider: 'Anthropic',
8391
},
92+
{
93+
model_id: 'claude-sonnet-4-6',
94+
input_cost_per_token: 0.000003,
95+
output_cost_per_token: 0.000015,
96+
provider: 'Anthropic',
97+
},
8498
];

0 commit comments

Comments
 (0)