Skip to content

Commit 642cd31

Browse files
author
Conner Mo
committed
Merge upstream main and resolve conflicts
- Resolved import conflicts in conversation.py and conversation_service.py - Maintained clear logs functionality with error prevention - Updated dependencies and imports to match upstream changes
2 parents 0d1ba93 + d33dfee commit 642cd31

File tree

1,424 files changed

+64135
-18779
lines changed

Some content is hidden

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

1,424 files changed

+64135
-18779
lines changed

.claude/settings.json.example

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"permissions": {
3+
"allow": [],
4+
"deny": []
5+
},
6+
"env": {
7+
"__comment": "Environment variables for MCP servers. Override in .claude/settings.local.json with actual values.",
8+
"GITHUB_PERSONAL_ACCESS_TOKEN": "ghp_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
9+
},
10+
"enabledMcpjsonServers": [
11+
"context7",
12+
"sequential-thinking",
13+
"github",
14+
"fetch",
15+
"playwright",
16+
"ide"
17+
],
18+
"enableAllProjectMcpServers": true
19+
}

.devcontainer/README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,40 @@
11
# Development with devcontainer
2+
23
This project includes a devcontainer configuration that allows you to open the project in a container with a fully configured development environment.
34
Both frontend and backend environments are initialized when the container is started.
5+
46
## GitHub Codespaces
7+
58
[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/langgenius/dify)
69

710
you can simply click the button above to open this project in GitHub Codespaces.
811

912
For more info, check out the [GitHub documentation](https://docs.github.com/en/free-pro-team@latest/github/developing-online-with-codespaces/creating-a-codespace#creating-a-codespace).
1013

11-
1214
## VS Code Dev Containers
15+
1316
[![Open in Dev Containers](https://img.shields.io/static/v1?label=Dev%20Containers&message=Open&color=blue&logo=visualstudiocode)](https://vscode.dev/redirect?url=vscode://ms-vscode-remote.remote-containers/cloneInVolume?url=https://github.com/langgenius/dify)
1417

1518
if you have VS Code installed, you can click the button above to open this project in VS Code Dev Containers.
1619

1720
You can learn more in the [Dev Containers documentation](https://code.visualstudio.com/docs/devcontainers/containers).
1821

19-
2022
## Pros of Devcontainer
23+
2124
Unified Development Environment: By using devcontainers, you can ensure that all developers are developing in the same environment, reducing the occurrence of "it works on my machine" type of issues.
2225

2326
Quick Start: New developers can set up their development environment in a few simple steps, without spending a lot of time on environment configuration.
2427

2528
Isolation: Devcontainers isolate your project from your host operating system, reducing the chance of OS updates or other application installations impacting the development environment.
2629

2730
## Cons of Devcontainer
31+
2832
Learning Curve: For developers unfamiliar with Docker and VS Code, using devcontainers may be somewhat complex.
2933

3034
Performance Impact: While usually minimal, programs running inside a devcontainer may be slightly slower than those running directly on the host.
3135

3236
## Troubleshooting
37+
3338
if you see such error message when you open this project in codespaces:
3439
![Alt text](troubleshooting.png)
3540

.devcontainer/post_create_command.sh

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

3-
3+
corepack enable
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
8-
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
8+
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,plugin,workflow_storage"' >> ~/.bashrc
99
echo 'alias start-web="cd /workspaces/dify/web && pnpm dev"' >> ~/.bashrc
1010
echo 'alias start-web-prod="cd /workspaces/dify/web && pnpm build && pnpm start"' >> ~/.bashrc
1111
echo 'alias start-containers="cd /workspaces/dify/docker && docker-compose -f docker-compose.middleware.yaml -p dify --env-file middleware.env up -d"' >> ~/.bashrc

0 commit comments

Comments
 (0)