Skip to content

Commit db7c88f

Browse files
GenerQAQclaude
andauthored
chore: update dependencies, improve CI workflows, and fix UI download (#436)
* chore: update dependencies, improve CI workflows, and fix UI download - Bump dependencies across dashboard, docs, landingpage, and sandbox-cloudflare - Add undici>=7.24.0 security override to dashboard and sandbox-cloudflare - Optimize CI workflows to start only required docker compose services - Remove redundant API health check wait in TS SDK release workflow - Add sandbox version consistency check to cloudflare test workflow - Add UI test workflow for lint and build validation - Fix downloadMessages response format to use code/message pattern in OSS UI - Add Docker build cache mount for Next.js in UI Dockerfile - Add missing toast import in messages page Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * fix: resolve CI failures in UI lint and landingpage tests - Fix ESLint circular reference by replacing FlatCompat with direct plugin imports (eslint-plugin-react-hooks v7 + @next/eslint-plugin-next) - Pin @payloadcms/plugin-seo to 3.79.0 to match payload version requirement Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * fix: merge duplicate pnpm fields in docs/package.json The pnpm config was split into two separate keys, causing the second to silently override the first and drop onlyBuiltDependencies. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent b3bb896 commit db7c88f

17 files changed

Lines changed: 4475 additions & 4101 deletions

File tree

.github/workflows/client-release-ts.yaml

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -51,29 +51,13 @@ jobs:
5151
cp .env.example .env
5252
cp core/config.yaml.example core/config.yaml
5353
54-
if ! docker compose up -d --wait --quiet-pull 2>&1; then
54+
if ! docker compose up -d --wait --quiet-pull acontext-server-pg acontext-server-redis acontext-server-rabbitmq acontext-server-seaweedfs acontext-server-seaweedfs-setup acontext-server-core acontext-server-api 2>&1; then
5555
echo "❌ Docker compose failed to start, showing logs:"
5656
docker compose logs
5757
exit 1
5858
fi
5959
echo "✅ All containers started successfully"
6060
61-
- name: Wait for API to be ready
62-
run: |
63-
timeout=120
64-
elapsed=0
65-
while [ $elapsed -lt $timeout ]; do
66-
if curl -f http://localhost:8029/health > /dev/null 2>&1; then
67-
echo "API is ready"
68-
exit 0
69-
fi
70-
echo "Waiting for API to be ready... ($elapsed/$timeout seconds)"
71-
sleep 5
72-
elapsed=$((elapsed + 5))
73-
done
74-
echo "API did not become ready in time"
75-
exit 1
76-
7761
- name: Run tests
7862
run: npm test
7963
env:

.github/workflows/core-test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
run: |
5252
cp .env.example .env
5353
cp core/config.yaml.example core/config.yaml
54-
if ! docker compose up -d --wait --quiet-pull 2>&1; then
54+
if ! docker compose up -d --wait --quiet-pull acontext-server-pg acontext-server-redis acontext-server-seaweedfs acontext-server-seaweedfs-setup 2>&1; then
5555
echo "❌ Docker compose failed to start, showing logs:"
5656
docker compose logs
5757
exit 1

.github/workflows/package-test-sandbox-cloudflare.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,19 @@ jobs:
3030
steps:
3131
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
3232

33+
- name: Check sandbox version consistency
34+
run: |
35+
DOCKER_TAG=$(grep -oP 'cloudflare/sandbox:\K[0-9]+\.[0-9]+\.[0-9]+' Dockerfile)
36+
SDK_VERSION=$(node -p "require('./package.json').dependencies['@cloudflare/sandbox'].replace(/[\^~>=<]/g, '')")
37+
echo "Docker image tag: $DOCKER_TAG"
38+
echo "SDK min version: $SDK_VERSION"
39+
LOWER=$(printf '%s\n%s' "$DOCKER_TAG" "$SDK_VERSION" | sort -V | head -n1)
40+
if [ "$LOWER" = "$DOCKER_TAG" ] && [ "$DOCKER_TAG" != "$SDK_VERSION" ]; then
41+
echo "::error::Docker image ($DOCKER_TAG) is older than SDK minimum ($SDK_VERSION). Update the Dockerfile."
42+
exit 1
43+
fi
44+
echo "Versions are consistent."
45+
3346
- name: Set up Node.js
3447
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6
3548
with:

.github/workflows/ui-test.yaml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: UI Test
2+
3+
on:
4+
push:
5+
branches:
6+
- dev
7+
paths:
8+
- "src/server/ui/**"
9+
- ".github/workflows/ui-test.yaml"
10+
pull_request:
11+
branches:
12+
- dev
13+
paths:
14+
- "src/server/ui/**"
15+
- ".github/workflows/ui-test.yaml"
16+
17+
concurrency:
18+
group: ${{ github.workflow }}-${{ github.ref }}
19+
cancel-in-progress: true
20+
21+
jobs:
22+
lint-and-build:
23+
runs-on: ubuntu-latest
24+
timeout-minutes: 15
25+
permissions:
26+
contents: read
27+
defaults:
28+
run:
29+
working-directory: src/server/ui
30+
steps:
31+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
32+
33+
- name: Setup pnpm
34+
uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4
35+
with:
36+
version: 10
37+
38+
- name: Set up Node.js
39+
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6
40+
with:
41+
node-version: "22"
42+
cache: "pnpm"
43+
cache-dependency-path: src/server/ui/pnpm-lock.yaml
44+
45+
- name: Install dependencies
46+
run: pnpm install --frozen-lockfile
47+
48+
- name: Run lint
49+
run: pnpm run lint
50+
51+
- name: Build
52+
run: pnpm run build

dashboard/package.json

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"cf-typegen": "wrangler types --env-interface CloudflareEnv cloudflare-env.d.ts"
1414
},
1515
"dependencies": {
16-
"@base-ui/react": "^1.2.0",
16+
"@base-ui/react": "^1.3.0",
1717
"@codemirror/lang-css": "^6.3.1",
1818
"@codemirror/lang-html": "^6.4.11",
1919
"@codemirror/lang-javascript": "^6.2.5",
@@ -24,7 +24,7 @@
2424
"@codemirror/lang-xml": "^6.1.0",
2525
"@codemirror/language": "^6.12.2",
2626
"@codemirror/legacy-modes": "^6.5.2",
27-
"@codemirror/view": "^6.39.17",
27+
"@codemirror/view": "^6.40.0",
2828
"@dnd-kit/core": "^6.3.1",
2929
"@dnd-kit/sortable": "^10.0.0",
3030
"@dnd-kit/utilities": "^3.2.2",
@@ -42,9 +42,9 @@
4242
"@radix-ui/react-tabs": "^1.1.13",
4343
"@radix-ui/react-tooltip": "^1.2.8",
4444
"@stripe/react-stripe-js": "^5.6.1",
45-
"@stripe/stripe-js": "^8.9.0",
45+
"@stripe/stripe-js": "^8.10.0",
4646
"@supabase/ssr": "^0.9.0",
47-
"@supabase/supabase-js": "^2.99.1",
47+
"@supabase/supabase-js": "^2.99.2",
4848
"@tailwindcss/typography": "^0.5.19",
4949
"@uiw/codemirror-theme-okaidia": "^4.25.8",
5050
"@uiw/react-codemirror": "^4.25.8",
@@ -70,19 +70,19 @@
7070
"sonner": "^2.0.7",
7171
"tailwind-merge": "^3.5.0",
7272
"tw-animate-css": "^1.4.0",
73-
"zustand": "^5.0.11"
73+
"zustand": "^5.0.12"
7474
},
7575
"devDependencies": {
76-
"@tailwindcss/postcss": "^4",
77-
"@types/node": "^25",
76+
"@tailwindcss/postcss": "^4.2.1",
77+
"@types/node": "^25.5.0",
7878
"@types/nprogress": "^0.2.3",
79-
"@types/react": "^19",
80-
"@types/react-dom": "^19",
81-
"eslint": "^9",
79+
"@types/react": "^19.2.14",
80+
"@types/react-dom": "^19.2.3",
81+
"eslint": "^9.39.4",
8282
"eslint-config-next": "16.1.6",
83-
"tailwindcss": "^4",
84-
"typescript": "^5",
85-
"wrangler": "^4.72.0"
83+
"tailwindcss": "^4.2.1",
84+
"typescript": "^5.9.3",
85+
"wrangler": "^4.74.0"
8686
},
8787
"pnpm": {
8888
"onlyBuiltDependencies": [
@@ -104,7 +104,8 @@
104104
"@isaacs/brace-expansion": ">=5.0.1",
105105
"fast-xml-parser": ">=5.4.2",
106106
"diff": ">=8.0.2",
107-
"@codemirror/state": "6.5.4"
107+
"@codemirror/state": "6.5.4",
108+
"undici": ">=7.24.0"
108109
}
109110
}
110111
}

0 commit comments

Comments
 (0)