Charles Yao
f9b38f9be0
fix(workflow-copilot): reachable reject at approval gate, client-only-action guard, contract doc fixes
2026-08-22 01:55:17 -07:00
Charles Yao and Claude Opus 4.8
7b2e975c5f
feat(workflow-copilot): typed contract schemas (TS + JSON) with lockstep check
...
Add contract_gen.py: a pure, deterministic generator that discovers every
StrEnum/dataclass/card defined in contract.py (plus EntryMode,
ConversationItem, and SessionView) via introspection and emits the checked-in
contract_schema.json (JSON Schema draft 2020-12) and
web/.../contract/types.ts. The discriminated ConversationItem union is built
from _Card.__subclasses__(), one oneOf/union branch per card kind.
test_contract.py gains a lockstep test that byte-compares a fresh
generate() call against the checked-in files (guards drift/hand-edits) and a
jsonschema.validate test that proves the generated schema is itself valid
and accepts a real SessionView instance.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com >
2026-08-22 01:10:47 -07:00
Charles Yao
d089a84da7
refactor(workflow-copilot): re-express Fix conversation items onto the card vocabulary
2026-08-22 00:48:03 -07:00
Charles Yao
55752cd435
feat(workflow-copilot): 17-kind card vocabulary + submit payload types
2026-08-22 00:00:46 -07:00
Charles Yao
5a098f89d4
fix(workflow-copilot): _run_status reports COMPLETE for Build/Edit terminal states
2026-08-21 23:49:45 -07:00
Charles Yao
eb1ee3981a
feat(workflow-copilot): Action/CheckpointRef + SessionView entry_mode/phase/actions/checkpoint
2026-08-21 23:36:53 -07:00
Charles Yao
6bceb1be62
feat(workflow-copilot): contract enums + Build/Edit PcState sets
2026-08-21 23:24:13 -07:00
Charles Yao and Claude Opus 4.8
4e73fb566b
test(copilot): full fix-flow engine acceptance on fakes
...
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com >
2026-08-18 21:45:05 -07:00
Charles Yao
6d4e9dd59b
feat(copilot): port canned placeholder agent
2026-08-18 21:45:05 -07:00
Charles Yao and Claude Opus 4.8
0bd9b1f94a
feat(copilot): port checklist handlers + merged fix registry
...
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com >
2026-08-18 21:45:05 -07:00
Charles Yao and Claude Opus 4.8
37008011e2
feat(copilot): port run-fix handlers
...
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com >
2026-08-18 21:45:04 -07:00
Charles Yao and Claude Opus 4.8
04f350d2e5
feat(copilot): port runner with version-CAS advance
...
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com >
2026-08-18 21:45:04 -07:00
Charles Yao and Claude Opus 4.8
aa6eb92ac6
test(copilot): in-memory repository/dify/agent fakes
...
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com >
2026-08-18 21:45:04 -07:00
Charles Yao and Claude Opus 4.8
95f2a11023
feat(copilot): port ports, value types, errors
...
Port dify-enterprise/server/pkg/enterprise/biz/copilot/{ports,errors}.go to
api/core/workflow_copilot as pure Python.
- errors.py: ConflictError, NotFoundError, BusyError (Exception subclasses,
replacing Go's sentinel error values).
- models.py: add Diagnosis, Risk, MutationIntent, ChangeSet, NodeEvent,
ApplyResult value dataclasses (Go: ports.go); tighten FixContext.diagnosis/
staged_repair/risk/change_set from Any to these real types now that they
live in the same module (avoids a models<->ports import cycle).
- ports.py: CopilotAgent / DifyPort / Repository as @runtime_checkable
Protocols, snake_case methods per the port plan; DifyPort methods take
actor: Actor instead of Go's ForwardAuth.
- test_ports.py: constructs each value type, asserts trivial stubs satisfy
each Protocol via isinstance, and checks the error types.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com >
2026-08-18 21:45:04 -07:00
Charles Yao
1b98b0fb29
feat(copilot): port domain models
2026-08-18 21:45:04 -07:00
Charles Yao
d779b1629a
feat(copilot): port PcState machine to api/core/workflow_copilot
2026-08-18 21:45:04 -07:00
zyssyz123
c38fb16efa
fix(agent): retain usage for incomplete runs ( #40937 )
2026-08-18 13:11:22 +00:00
Asuka Minato
4f81005662
test: migrate app runtime sessions and ORM models to SQLite ( #40590 )
2026-08-18 12:27:32 +00:00
Asuka Minato
f2dfa462e1
test: migrate agent runtime sessions and ORM models to SQLite ( #40587 )
2026-08-18 12:26:58 +00:00
Asuka Minato
beecf5730a
test: migrate telemetry and core entity ORM models to SQLite ( #40574 )
2026-08-18 12:25:42 +00:00
Asuka Minato and autofix-ci[bot]
eeda983b17
test: migrate service boundary sessions and ORM models to SQLite ( #40533 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-08-18 12:23:33 +00:00
Asuka Minato
5fde1d096e
test: eliminate remaining whole config mocks ( #40855 )
2026-08-18 12:01:49 +00:00
Asuka Minato
3bcd97b643
test: scope plugin and datasource config overrides ( #40854 )
2026-08-18 12:01:29 +00:00
Asuka Minato
20fdbcf36f
test: centralize enterprise config overrides ( #40853 )
2026-08-18 12:01:01 +00:00
zyssyz123
5a0a12cb44
fix: preserve Agent tool-generated file outputs ( #40917 )
2026-08-18 05:59:43 +00:00
蓝破碎半圆/破碎蓝调
ba5e7d76fd
fix: accept legacy plugin daemon list responses ( #38265 )
2026-08-18 04:11:49 +00:00
Harsh Kashyap and Harsh Kashyap
ca32e87683
fix(api): bound connect phase to 5.0s in two api/core/ outbound timeouts ( #40807 )
...
Co-authored-by: Harsh Kashyap <Harsh23Kashyap@users.noreply.github.com >
2026-08-18 03:38:59 +00:00
mesrop2008
50d6c19ef4
fix(api): clear stale cancellation signals when resuming a paused workflow ( #40905 )
2026-08-18 02:27:43 +00:00
Asuka Minato
3f0a9c5060
test: migrate RAG indexing sessions and ORM models to SQLite ( #40513 )
2026-08-17 12:13:02 +00:00
Asuka Minato
ce1aed8df5
test: migrate RAG pipeline sessions and ORM models to SQLite ( #40511 )
2026-08-17 12:12:46 +00:00
盐粒 Yanli
2aaac4dadb
feat(dify-agent): enforce signed upload size limits ( #40883 )
2026-08-17 11:59:42 +00:00
盐粒 Yanli
a679ee5644
fix(dify-agent): preserve snapshots for failed and cancelled runs ( #40876 )
2026-08-17 10:11:22 +00:00
盐粒 Yanli
96809473fc
feat(dify-agent): add context-aware history compaction ( #40872 )
2026-08-17 09:36:21 +00:00
zyssyz123
64587eae43
fix(workflow): preserve historical Agent node compatibility ( #40859 )
2026-08-17 07:31:38 +00:00
Asuka Minato
edb32fba92
test: migrate RAG processor residuals to SQLite ORM models ( #40608 )
2026-08-15 09:54:09 +00:00
Asuka Minato
582c73bc3b
test: migrate residual user ORM stand-ins to real models ( #40625 )
2026-08-15 09:52:59 +00:00
Harsh Kashyap and Harsh Kashyap
d43685bc79
fix(extension): chain original exception in APIBasedExtensionRequestor per PEP 3134 ( #40810 )
...
Co-authored-by: Harsh Kashyap <Harsh23Kashyap@users.noreply.github.com >
2026-08-15 08:48:28 +00:00
chelsealong
b537fed907
fix(api): point SSRF-blocked error message at the correct dify issue ( #40605 )
2026-08-14 11:46:50 +00:00
Asuka Minato
640bf56859
test: migrate workflow tool users to SQLite ORM models ( #40628 )
2026-08-14 08:54:31 +00:00
Asuka Minato
a958c2cadb
test: migrate RAG residual entities to real ORM models ( #40629 )
2026-08-14 08:53:56 +00:00
Asuka Minato
9f364339cc
test: migrate residual namespace ORM entities to real models ( #40633 )
2026-08-14 08:52:53 +00:00
林玮 (Jade Lin)
4e44ade07f
fix: handle long text URLs in webscraper ( #40757 )
2026-08-14 07:34:53 +00:00
Crazywoola
58653f2cdb
feat(workflow-generator): prefer installed tools ( #40611 )
2026-08-14 05:38:37 +00:00
Asuka Minato
c36161a73f
test: migrate OpenAPI and tool-file ORM entities ( #40637 )
2026-08-14 05:34:56 +00:00
Asuka Minato
d08dc6162c
test: migrate trace workflow run ORM model to real entity ( #40642 )
2026-08-14 05:34:29 +00:00
林玮 (Jade Lin)
755c154b1f
refactor: resolve completion model via manager ( #40756 )
2026-08-14 02:52:42 +00:00
Harsh Kashyap and Harsh Kashyap
8238684334
fix(api): chain original exception in 13 except blocks per PEP 3134 ( #40738 )
...
Co-authored-by: Harsh Kashyap <Harsh23Kashyap@users.noreply.github.com >
2026-08-13 17:50:05 +00:00
zyssyz123 and yyh
c9c7fb9962
fix(agent): meter internal LLM calls through API ( #40613 )
...
Co-authored-by: yyh <92089059+lyzno1@users.noreply.github.com >
2026-08-13 12:15:44 +00:00
林玮 (Jade Lin) and autofix-ci[bot]
b9248690b0
refactor: generalize hosted model quota lifecycle ( #40722 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-08-13 08:10:02 +00:00
盐粒 Yanli and Joel
79b8d7a797
fix(agent): normalize plugin provider identities ( #40619 )
...
Co-authored-by: Joel <iamjoel007@gmail.com >
2026-08-13 07:22:41 +00:00