Skip to content

Commit bc3b3b4

Browse files
committed
fix conflicts
2 parents a8def40 + 809a0ab commit bc3b3b4

File tree

855 files changed

+22058
-11113
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

855 files changed

+22058
-11113
lines changed

.devcontainer/Dockerfile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
FROM mcr.microsoft.com/devcontainers/python:3.12
22

3-
# [Optional] Uncomment this section to install additional OS packages.
4-
# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
5-
# && apt-get -y install --no-install-recommends <your-package-list-here>
3+
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
4+
&& apt-get -y install libgmp-dev libmpfr-dev libmpc-dev

.devcontainer/post_create_command.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
#!/bin/bash
22

3-
npm add -g pnpm@10.8.0
3+
npm add -g pnpm@10.11.1
44
cd web && pnpm install
55
pipx install uv
66

77
echo 'alias start-api="cd /workspaces/dify/api && uv run python -m flask run --host 0.0.0.0 --port=5001 --debug"' >> ~/.bashrc
88
echo 'alias start-worker="cd /workspaces/dify/api && uv run python -m celery -A app.celery worker -P gevent -c 1 --loglevel INFO -Q dataset,generation,mail,ops_trace,app_deletion"' >> ~/.bashrc
99
echo 'alias start-web="cd /workspaces/dify/web && pnpm dev"' >> ~/.bashrc
10+
echo 'alias start-web-prod="cd /workspaces/dify/web && pnpm build && pnpm start"' >> ~/.bashrc
1011
echo 'alias start-containers="cd /workspaces/dify/docker && docker-compose -f docker-compose.middleware.yaml -p dify --env-file middleware.env up -d"' >> ~/.bashrc
1112
echo 'alias stop-containers="cd /workspaces/dify/docker && docker-compose -f docker-compose.middleware.yaml -p dify --env-file middleware.env down"' >> ~/.bashrc
1213

.github/actions/setup-uv/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ inputs:
88
uv-version:
99
description: UV version to set up
1010
required: true
11-
default: '0.6.14'
11+
default: '~=0.7.11'
1212
uv-lockfile:
1313
description: Path to the UV lockfile to restore cache from
1414
required: true

.github/pull_request_template.md

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,23 @@
1-
# Summary
1+
> [!IMPORTANT]
2+
>
3+
> 1. Make sure you have read our [contribution guidelines](https://github.com/langgenius/dify/blob/main/CONTRIBUTING.md)
4+
> 2. Ensure there is an associated issue and you have been assigned to it
5+
> 3. Use the correct syntax to link this PR: `Fixes #<issue number>`.
26
3-
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
7+
## Summary
48

5-
> [!Tip]
6-
> Close issue syntax: `Fixes #<issue number>` or `Resolves #<issue number>`, see [documentation](https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue#linking-a-pull-request-to-an-issue-using-a-keyword) for more details.
9+
<!-- Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change. -->
710

8-
9-
# Screenshots
11+
## Screenshots
1012

1113
| Before | After |
1214
|--------|-------|
1315
| ... | ... |
1416

15-
# Checklist
16-
17-
> [!IMPORTANT]
18-
> Please review the checklist below before submitting your pull request.
17+
## Checklist
1918

2019
- [ ] This change requires a documentation update, included: [Dify Document](https://github.com/langgenius/dify-docs)
2120
- [x] I understand that this PR may be closed in case there was no previous discussion or issues. (This doesn't apply to typos!)
2221
- [x] I've added a test for each change that was introduced, and I tried as much as possible to make a single atomic change.
2322
- [x] I've updated the documentation accordingly.
2423
- [x] I ran `dev/reformat`(backend) and `cd web && npx lint-staged`(frontend) to appease the lint gods
25-
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Deploy RAG Dev
2+
3+
permissions:
4+
contents: read
5+
6+
on:
7+
workflow_run:
8+
workflows: ["Build and Push API & Web"]
9+
branches:
10+
- "deploy/rag-dev"
11+
types:
12+
- completed
13+
14+
jobs:
15+
deploy:
16+
runs-on: ubuntu-latest
17+
if: |
18+
github.event.workflow_run.conclusion == 'success' &&
19+
github.event.workflow_run.head_branch == 'deploy/rag-dev'
20+
steps:
21+
- name: Deploy to server
22+
uses: appleboy/ssh-action@v0.1.8
23+
with:
24+
host: ${{ secrets.RAG_SSH_HOST }}
25+
username: ${{ secrets.SSH_USER }}
26+
key: ${{ secrets.SSH_PRIVATE_KEY }}
27+
script: |
28+
${{ vars.SSH_SCRIPT || secrets.SSH_SCRIPT }}

.github/workflows/expose_service_ports.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ yq eval '.services["elasticsearch"].ports += ["9200:9200"]' -i docker/docker-com
1010
yq eval '.services.couchbase-server.ports += ["8091-8096:8091-8096"]' -i docker/docker-compose.yaml
1111
yq eval '.services.couchbase-server.ports += ["11210:11210"]' -i docker/docker-compose.yaml
1212
yq eval '.services.tidb.ports += ["4000:4000"]' -i docker/tidb/docker-compose.yaml
13+
yq eval '.services.oceanbase.ports += ["2881:2881"]' -i docker/docker-compose.yaml
1314
yq eval '.services.opengauss.ports += ["6600:6600"]' -i docker/docker-compose.yaml
1415

1516
echo "Ports exposed for sandbox, weaviate, tidb, qdrant, chroma, milvus, pgvector, pgvecto-rs, elasticsearch, couchbase, opengauss"

.github/workflows/style.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ jobs:
139139
- name: Checkout code
140140
uses: actions/checkout@v4
141141
with:
142+
fetch-depth: 0
142143
persist-credentials: false
143144

144145
- name: Check changed files

.github/workflows/translate-i18n-base-on-english.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,19 @@ jobs:
3131
echo "FILES_CHANGED=false" >> $GITHUB_ENV
3232
fi
3333
34+
- name: Install pnpm
35+
uses: pnpm/action-setup@v4
36+
with:
37+
version: 10
38+
run_install: false
39+
3440
- name: Set up Node.js
3541
if: env.FILES_CHANGED == 'true'
3642
uses: actions/setup-node@v4
3743
with:
3844
node-version: 'lts/*'
45+
cache: pnpm
46+
cache-dependency-path: ./web/package.json
3947

4048
- name: Install dependencies
4149
if: env.FILES_CHANGED == 'true'

.github/workflows/vdb-tests.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,13 @@ jobs:
3131
with:
3232
persist-credentials: false
3333

34+
- name: Free Disk Space
35+
uses: endersonmenezes/free-disk-space@v2
36+
with:
37+
remove_dotnet: true
38+
remove_haskell: true
39+
remove_tool_cache: true
40+
3441
- name: Setup UV and Python
3542
uses: ./.github/actions/setup-uv
3643
with:
@@ -59,7 +66,7 @@ jobs:
5966
tidb
6067
tiflash
6168
62-
- name: Set up Vector Stores (Weaviate, Qdrant, PGVector, Milvus, PgVecto-RS, Chroma, MyScale, ElasticSearch, Couchbase)
69+
- name: Set up Vector Stores (Weaviate, Qdrant, PGVector, Milvus, PgVecto-RS, Chroma, MyScale, ElasticSearch, Couchbase, OceanBase)
6370
uses: hoverkraft-tech/compose-action@v2.0.2
6471
with:
6572
compose-file: |
@@ -75,9 +82,12 @@ jobs:
7582
pgvector
7683
chroma
7784
elasticsearch
85+
oceanbase
7886
79-
- name: Check TiDB Ready
80-
run: uv run --project api python api/tests/integration_tests/vdb/tidb_vector/check_tiflash_ready.py
87+
- name: Check VDB Ready (TiDB, Oceanbase)
88+
run: |
89+
uv run --project api python api/tests/integration_tests/vdb/tidb_vector/check_tiflash_ready.py
90+
uv run --project api python api/tests/integration_tests/vdb/oceanbase/check_oceanbase_ready.py
8191
8292
- name: Test Vector Stores
8393
run: uv run --project api bash dev/pytest/pytest_vdb.sh

.gitignore

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,12 +192,12 @@ sdks/python-client/dist
192192
sdks/python-client/dify_client.egg-info
193193

194194
.vscode/*
195-
!.vscode/launch.json
195+
!.vscode/launch.json.template
196+
!.vscode/README.md
196197
pyrightconfig.json
197198
api/.vscode
198199

199200
.idea/
200-
.vscode
201201

202202
# pnpm
203203
/.pnpm-store
@@ -207,3 +207,6 @@ plugins.jsonl
207207

208208
# mise
209209
mise.toml
210+
211+
# Next.js build output
212+
.next/

0 commit comments

Comments
 (0)