Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion api/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "dify-api"
version = "1.17.1"
version = "1.18.0"
requires-python = "~=3.13.0"

dependencies = [
Expand Down
4 changes: 2 additions & 2 deletions api/uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@langgenius/difyctl",
"version": "1.17.1",
"version": "1.18.0",
"description": "Dify command-line interface",
"license": "Apache-2.0",
"files": [
Expand Down
2 changes: 1 addition & 1 deletion dify-agent/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "dify-agent"
version = "1.17.1"
version = "1.18.0"
description = "Add your description here"
readme = "README.md"
requires-python = ">=3.13,<4.0"
Expand Down
2 changes: 1 addition & 1 deletion dify-agent/uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 9 additions & 9 deletions docker/docker-compose-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ x-shared-worker-config: &shared-worker-config
# KNOWLEDGE_FS_WORKER_IMAGE must bundle the KnowledgeFS engine at KNOWLEDGE_FS_BACKGROUND_ENGINE_PATH;
# standard Dify API images do not, and the worker entrypoint exits without it.
x-knowledge-fs-celery-worker: &knowledge-fs-celery-worker
image: ${KNOWLEDGE_FS_WORKER_IMAGE:-langgenius/dify-api:1.17.0}
image: ${KNOWLEDGE_FS_WORKER_IMAGE:-langgenius/dify-api:1.18.0}
profiles:
- knowledge-fs-celery
restart: always
Expand Down Expand Up @@ -265,7 +265,7 @@ services:
# API service
api:
<<: *shared-api-worker-config
image: langgenius/dify-api:1.17.1
image: langgenius/dify-api:1.18.0
environment:
MODE: api
# The bundled Nginx supplies a verified client IP; keep direct API callers trusted.
Expand Down Expand Up @@ -315,7 +315,7 @@ services:
# WebSocket service for workflow collaboration.
api_websocket:
<<: *shared-api-worker-config
image: langgenius/dify-api:1.17.1
image: langgenius/dify-api:1.18.0
profiles:
- collaboration
environment:
Expand Down Expand Up @@ -347,7 +347,7 @@ services:
# The Celery worker for processing all queues (dataset, workflow, mail, etc.)
worker:
<<: *shared-worker-config
image: langgenius/dify-api:1.17.1
image: langgenius/dify-api:1.18.0
environment:
MODE: worker
SENTRY_DSN: ${API_SENTRY_DSN:-}
Expand Down Expand Up @@ -394,7 +394,7 @@ services:
# Keep this queue out of the generic worker so large file copies cannot starve existing jobs.
worker_knowledge_fs_upgrade:
<<: *shared-worker-config
image: langgenius/dify-api:1.17.1
image: langgenius/dify-api:1.18.0
profiles:
- knowledge-fs
environment:
Expand Down Expand Up @@ -427,7 +427,7 @@ services:
# Celery beat for scheduling periodic tasks.
worker_beat:
<<: *shared-worker-beat-config
image: langgenius/dify-api:1.17.1
image: langgenius/dify-api:1.18.0
environment:
MODE: beat
depends_on:
Expand Down Expand Up @@ -460,7 +460,7 @@ services:

# Frontend web application.
web:
image: langgenius/dify-web:1.17.1
image: langgenius/dify-web:1.18.0
restart: always
env_file:
- path: ./envs/core-services/web.env
Expand Down Expand Up @@ -621,7 +621,7 @@ services:
# on port 3128, which only allows agent_backend /agent-stub/ and the Dify API
# /files/* endpoints (see ssrf_proxy/squid-agent.conf.template).
local_sandbox:
image: langgenius/dify-agent-local-sandbox:1.17.1
image: langgenius/dify-agent-local-sandbox:1.18.0
command: ["shellctl", "serve", "--listen", "0.0.0.0:5004", "--require-auth-token"]
restart: always
env_file:
Expand Down Expand Up @@ -819,7 +819,7 @@ services:

# Dify Agent backend service.
agent_backend:
image: langgenius/dify-agent-backend:1.17.1
image: langgenius/dify-agent-backend:1.18.0
restart: always
env_file:
- path: ./envs/core-services/dify-agent.env
Expand Down
2 changes: 1 addition & 1 deletion docker/docker-compose.middleware.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ services:
# Exposes port 5004 on the host so a locally-run agent backend can reach it
# at http://localhost:5004 (DIFY_AGENT_LOCAL_SANDBOX_ENDPOINT).
local_sandbox:
image: langgenius/dify-agent-local-sandbox:1.17.1
image: langgenius/dify-agent-local-sandbox:1.18.0
restart: always
env_file:
- ./middleware.env
Expand Down
18 changes: 9 additions & 9 deletions docker/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ x-shared-worker-config: &shared-worker-config
# KNOWLEDGE_FS_WORKER_IMAGE must bundle the KnowledgeFS engine at KNOWLEDGE_FS_BACKGROUND_ENGINE_PATH;
# standard Dify API images do not, and the worker entrypoint exits without it.
x-knowledge-fs-celery-worker: &knowledge-fs-celery-worker
image: ${KNOWLEDGE_FS_WORKER_IMAGE:-langgenius/dify-api:1.17.0}
image: ${KNOWLEDGE_FS_WORKER_IMAGE:-langgenius/dify-api:1.18.0}
profiles:
- knowledge-fs-celery
restart: always
Expand Down Expand Up @@ -271,7 +271,7 @@ services:
# API service
api:
<<: *shared-api-worker-config
image: langgenius/dify-api:1.17.1
image: langgenius/dify-api:1.18.0
environment:
MODE: api
# The bundled Nginx supplies a verified client IP; keep direct API callers trusted.
Expand Down Expand Up @@ -321,7 +321,7 @@ services:
# WebSocket service for workflow collaboration.
api_websocket:
<<: *shared-api-worker-config
image: langgenius/dify-api:1.17.1
image: langgenius/dify-api:1.18.0
profiles:
- collaboration
environment:
Expand Down Expand Up @@ -353,7 +353,7 @@ services:
# The Celery worker for processing all queues (dataset, workflow, mail, etc.)
worker:
<<: *shared-worker-config
image: langgenius/dify-api:1.17.1
image: langgenius/dify-api:1.18.0
environment:
MODE: worker
SENTRY_DSN: ${API_SENTRY_DSN:-}
Expand Down Expand Up @@ -400,7 +400,7 @@ services:
# Keep this queue out of the generic worker so large file copies cannot starve existing jobs.
worker_knowledge_fs_upgrade:
<<: *shared-worker-config
image: langgenius/dify-api:1.17.1
image: langgenius/dify-api:1.18.0
profiles:
- knowledge-fs
environment:
Expand Down Expand Up @@ -433,7 +433,7 @@ services:
# Celery beat for scheduling periodic tasks.
worker_beat:
<<: *shared-worker-beat-config
image: langgenius/dify-api:1.17.1
image: langgenius/dify-api:1.18.0
environment:
MODE: beat
depends_on:
Expand Down Expand Up @@ -466,7 +466,7 @@ services:

# Frontend web application.
web:
image: langgenius/dify-web:1.17.1
image: langgenius/dify-web:1.18.0
restart: always
env_file:
- path: ./envs/core-services/web.env
Expand Down Expand Up @@ -627,7 +627,7 @@ services:
# on port 3128, which only allows agent_backend /agent-stub/ and the Dify API
# /files/* endpoints (see ssrf_proxy/squid-agent.conf.template).
local_sandbox:
image: langgenius/dify-agent-local-sandbox:1.17.1
image: langgenius/dify-agent-local-sandbox:1.18.0
command: ["shellctl", "serve", "--listen", "0.0.0.0:5004", "--require-auth-token"]
restart: always
env_file:
Expand Down Expand Up @@ -825,7 +825,7 @@ services:

# Dify Agent backend service.
agent_backend:
image: langgenius/dify-agent-backend:1.17.1
image: langgenius/dify-agent-backend:1.18.0
restart: always
env_file:
- path: ./envs/core-services/dify-agent.env
Expand Down
13 changes: 5 additions & 8 deletions web/features/new-rag/create/__tests__/page.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3053,25 +3053,22 @@ describe('CreateKnowledgePage', () => {
})

it('previews a selected file locally without claiming it', async () => {
const user = userEvent.setup()
navigationMock.startMode = 'upload'
const file = new File(['# 让状态可分析'], 'handbook.md', { type: 'text/markdown' })
const open = vi.spyOn(globalThis, 'open').mockReturnValue(null)
await renderPage()

fireEvent.change(
await user.upload(
screen.getByLabelText('knowledgeSpace.uploadFiles', {
selector: 'input[type="file"]',
}),
{ target: { files: [file] } },
file,
)
await act(async () => {
await Promise.resolve()
await Promise.resolve()
})
fireEvent.click(screen.getByRole('button', { name: 'knowledgeSpace.preview' }))
await user.click(screen.getByRole('button', { name: 'knowledgeSpace.preview' }))

const preview = await screen.findByRole('dialog', { name: 'handbook.md' })
expect(within(preview).getByLabelText('handbook.md')).toHaveTextContent('# 让状态可分析')
expect(await within(preview).findByLabelText('handbook.md')).toHaveTextContent('# 让状态可分析')
expect(open).not.toHaveBeenCalled()
expect(serviceMock.upload).not.toHaveBeenCalled()
})
Expand Down
2 changes: 1 addition & 1 deletion web/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dify-web",
"version": "1.17.1",
"version": "1.18.0",
"private": true,
"type": "module",
"imports": {
Expand Down
Loading