9d554495cf
feat(cli): add OPENAPI_ENABLED env switch, default false
...
Gates the entire /openapi/v1/* blueprint on a single env var.
When false (default), the blueprint is never registered so all
CLI requests return 404 before any auth or logic runs.
Set OPENAPI_ENABLED=true to activate the endpoint group.
2026-05-14 20:16:14 -07:00
c2868075fa
Merge remote-tracking branch 'origin/main' into feat/cli
...
# Conflicts:
# docker/docker-compose.yaml
# pnpm-lock.yaml
# pnpm-workspace.yaml
2026-05-14 20:11:59 -07:00
af4b9bfa8f
chore: Remove pyright in favor of pyrefly ( #36154 )
2026-05-14 05:49:08 +00:00
b9e3130388
chore: drop unnecessary | None on LLMError and Mail.send ( #36147 )
...
Co-authored-by: Brian Wang <20699847+BrianWang1990@users.noreply.github.com >
2026-05-14 03:22:00 +00:00
9424bf60b0
fix: the /threads and /db-pool-stat endpoints in api... in... ( #35665 )
2026-05-12 05:43:37 +00:00
cbedcd2882
fix(security): harden self-hosted SECRET_KEY bootstrap ( #36049 )
...
Co-authored-by: EndlessLucky <66432853+EndlessLucky@users.noreply.github.com >
2026-05-12 05:35:24 +00:00
1f7da9c191
Merge branch 'main' into feat/cli
...
Conflicts resolved:
- api/services/app_service.py: extend AppListParams with status + openapi_visible fields so the openapi caller's per-page visibility gate survives the dict->BaseModel refactor; openapi controller now constructs AppListParams.
- pnpm-workspace.yaml: union of CLI-only entries (@napi-rs/keyring, @oclif/*) with main's bumped versions (@next/*, @orpc/*, eslint-plugin-sonarjs, eslint-plugin-storybook); kept eventsource-parser.
- pnpm-lock.yaml: regenerated.
- web/app/signin/utils/post-login-redirect.ts: union impl — keep main's resolvePostLoginRedirect(searchParams) + setOAuthPendingRedirect; add hardened sessionStorage-based setPostLoginRedirect for device flow with same-origin + path whitelist; device redirect takes precedence over oauth pending.
2026-05-11 19:29:37 -07:00
6779366dca
feat(api,web,cli): difyctl v1.0 — OAuth device flow, /openapi/v1 auth pipeline, CLI client
2026-05-11 18:40:39 -07:00
8fd616d27f
refactor: add type to test ( #30873 )
...
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-05-07 03:46:23 +00:00
3193e8a712
chore: reorg imports ( #35308 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-04-16 08:50:02 +00:00
53a22aa41b
feat: collaboration ( #30781 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: yyh <yuanyouhuilyz@gmail.com >
Co-authored-by: yyh <92089059+lyzno1@users.noreply.github.com >
2026-04-16 02:21:04 +00:00
1bcc7f78c7
refactor: replace bare dict with dict[str, Any] in models, providers, extensions, libs, and test utilities ( #35186 )
2026-04-14 17:51:25 +00:00
736880e046
feat: support configurable redis key prefix ( #35139 )
2026-04-14 09:31:41 +00:00
eeebedcfe8
refactor: replace bare dict with dict[str, Any] in core provider services and misc modules ( #35124 )
2026-04-14 03:03:08 +00:00
ed83f5369e
refactor: replace bare dict with dict[str, Any] in entities, workflow nodes, and tasks ( #35109 )
2026-04-14 03:02:39 +00:00
44ebfa3bb8
refactor(api): type _get_cluster_connection_health_params with TypedDict ( #34999 )
2026-04-13 00:52:12 +00:00
674495680d
refactor(api): type Redis connection param builder functions with TypedDicts ( #34875 )
2026-04-10 11:36:39 +00:00
af55665ff2
refactor(otel): replace Any with Tracer and [T] generics ( #34883 )
2026-04-10 07:37:14 +00:00
a31c1d2c69
refactor(api): type Celery SSL options and Sentinel transport dicts with TypedDicts ( #34871 )
2026-04-10 00:33:23 +00:00
27e484e7f8
feat: redis add retry logic ( #34566 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-04-09 03:08:25 +00:00
ae9fcc2969
refactor: use sessionmaker in controllers, events, models, and tasks 1 ( #34693 )
2026-04-07 23:47:20 +00:00
8d37116fec
refactor(api): type storage statistics with StorageStatisticsDict TypedDict ( #34609 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-04-07 00:59:32 +00:00
e83a4090ac
fix: lighten the health checks for the Worker and Worker Beat services, and disable them by default ( #34572 )
2026-04-06 02:26:26 +00:00
0f051d5886
refactor(api): type celery sqlcommenter tags with CelerySqlcommenterTagsDict TypedDict ( #34526 )
2026-04-03 12:06:15 +00:00
318a3d0308
refactor(api): tighten login and wrapper typing ( #34447 )
2026-04-02 09:36:58 +00:00
8f9dbf269e
chore(api): align Python support with 3.12 ( #34419 )
...
Co-authored-by: Asuka Minato <i@asukaminato.eu.org >
2026-04-02 05:07:32 +00:00
c51cd42cb4
refactor(api): replace json.loads with Pydantic validation in controllers and infra layers ( #34277 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-04-01 05:41:44 +00:00
f7b78b08fd
refactor(api): narrow otel instrumentor typing ( #33853 )
...
Co-authored-by: 复试资料 <study@example.com >
Co-authored-by: Asuka Minato <i@asukaminato.eu.org >
2026-03-31 10:13:31 +08:00
ae9a16a397
fix: upgrade langfuse SDK to v3+ for LLM-as-judge support ( #34265 )
...
Signed-off-by: majiayu000 <1835304752@qq.com >
2026-03-30 13:06:55 +00:00
40591a7c50
refactor(api): use standalone graphon package ( #34209 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-03-27 21:05:32 +00:00
5a8a68cab8
feat: enterprise otel exporter ( #33138 )
...
Co-authored-by: QuantumGhost <obelisk.reg+git@gmail.com >
Co-authored-by: Yunlu Wen <yunlu.wen@dify.ai >
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-03-27 07:56:31 +00:00
2ea85d3ba2
refactor: use EnumText for model_type and WorkflowNodeExecution.status ( #34093 )
...
Co-authored-by: Krishna Chaitanya <krishnabkc15@gmail.com >
2026-03-26 20:34:44 +00:00
52e7492cbc
refactor(api): rename dify_graph to graphon ( #34095 )
2026-03-25 21:58:56 +08:00
56593f20b0
refactor(api): continue decoupling dify_graph from API concerns ( #33580 )
...
Signed-off-by: -LAN- <laipz8200@outlook.com >
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: WH-2099 <wh2099@pm.me >
2026-03-25 20:32:24 +08:00
a2c4345c00
fix: pass default root to OpenDAL Operator for fs scheme ( #33678 )
...
Co-authored-by: QuantumGhost <obelisk.reg+git@gmail.com >
2026-03-19 15:30:13 +08:00
8a22cc06c9
refactor: migrate db.session.query to select in infra layer ( #33694 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-03-19 15:48:29 +09:00
a717519822
refactor(api): tighten phase 1 shared type contracts ( #33453 )
2026-03-17 17:50:51 +08:00
18ff5d9288
feat: add metrics to clean message and workflow-run task ( #33143 )
...
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: hj24 <mambahj24@gmail.com >
2026-03-17 13:55:28 +08:00
fb41b215c8
refactor(api): move workflow knowledge nodes and trigger nodes ( #33445 )
2026-03-15 15:24:59 +08:00
e64f4d6039
refactor: replace sa.String with EnumText in mapped_column for type s… ( #33332 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com >
2026-03-14 13:38:27 +09:00
a0f0c97133
chore(deps): bump opentelemetry-propagator-b3 from 1.28.0 to 1.40.0 in /api in the opentelemetry group ( #33308 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Asuka Minato <i@asukaminato.eu.org >
2026-03-12 00:37:48 +09:00
eaf86c521f
feat: Improve SQL Comment Context for Celery Worker Queries ( #33058 )
2026-03-10 12:37:26 +08:00
05ab107e73
feat: add export app messages ( #32990 )
2026-03-07 11:27:15 +08:00
2f4c740d46
feat: support redis xstream ( #32586 )
2026-03-04 13:18:55 +08:00
b584434e28
feat: redis connection support max connections ( #32935 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-03-04 11:52:43 +08:00
4fd6b52808
refactor(api): move model_runtime into dify_graph ( #32858 )
2026-03-02 20:15:32 +08:00
c917838f9c
refactor: move workflow package to dify_graph ( #32844 )
2026-03-02 18:42:30 +08:00
1f0fca89a8
refactor(workflow): move variables package into core.workflow ( #32750 )
2026-03-01 03:15:09 +08:00
eea1cf17ef
refactor(workflow): inject redis into graph engine manager ( #32622 )
2026-02-27 13:29:52 +08:00
349d2d8e4e
fix: replace deprecated SpanAttributes and ResourceAttributes with new semconv imports ( #32661 )
...
Co-authored-by: User <user@example.com >
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-02-27 08:53:45 +09:00