mirror of
https://github.com/zed-industries/zed.git
synced 2026-11-28 03:20:58 +01:00
986828d157
Review Thread: https://delta.dev/trunk/join/thread_01m2swv74pzp4c6xk46sh19fmk#s=pVggqzly Normalize legacy ACP tool reports and SDK v2 tool patches into one shared `ToolCall` model, preserving protocol source separately from local decisions and rendered views. - Retain reported kind/status, first-class name, metadata, and complete tool-content sources, including unknown v2 values and envelope metadata. - Keep authorization ownership and local outcomes separate from reported status. Support omitted/null/value patches without changing legacy permission-continuation behavior. - Preserve the status-before-content-validation contract: invalid presentation cannot roll back a terminal report or leave its permission unresolved. - Render supported v2 patches with read-only diff editors using `diffy`. Preserve sparse hunk coordinates, multi-file structure, additions/deletions, and original source without reading or modifying workspace files. Accept standalone unified patches and unambiguous bare hunks; retain explicit fallback and export text for unsupported input. - Keep native live diffs separate from protocol snapshots, preserve render identity on metadata-only updates, and align patch expansion/search with visible authorization content. This adds the shared model and presentation boundary; it does **not** enable v2 transport negotiation or change prompt lifecycle. Existing v1/native adapters continue to work. The existing one-active-authorization-per-tool policy is unchanged. Release Notes: - N/A
71 lines
1.7 KiB
TOML
71 lines
1.7 KiB
TOML
[package]
|
|
name = "acp_thread"
|
|
version = "0.1.0"
|
|
edition.workspace = true
|
|
publish.workspace = true
|
|
license = "GPL-3.0-or-later"
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[lib]
|
|
path = "src/acp_thread.rs"
|
|
doctest = false
|
|
|
|
[features]
|
|
test-support = ["gpui/test-support", "project/test-support", "dep:parking_lot"]
|
|
|
|
[dependencies]
|
|
action_log.workspace = true
|
|
agent_settings.workspace = true
|
|
agent-client-protocol.workspace = true
|
|
async-channel.workspace = true
|
|
base64.workspace = true
|
|
anyhow.workspace = true
|
|
buffer_diff.workspace = true
|
|
chrono.workspace = true
|
|
collections.workspace = true
|
|
diffy.workspace = true
|
|
feature_flags.workspace = true
|
|
multi_buffer.workspace = true
|
|
file_icons.workspace = true
|
|
futures.workspace = true
|
|
gpui.workspace = true
|
|
http_proxy.workspace = true
|
|
itertools.workspace = true
|
|
language.workspace = true
|
|
language_model.workspace = true
|
|
libc.workspace = true
|
|
log.workspace = true
|
|
markdown.workspace = true
|
|
mime.workspace = true
|
|
parking_lot = { workspace = true, optional = true }
|
|
image.workspace = true
|
|
project.workspace = true
|
|
sandbox.workspace = true
|
|
serde.workspace = true
|
|
serde_json.workspace = true
|
|
settings.workspace = true
|
|
task.workspace = true
|
|
telemetry.workspace = true
|
|
terminal.workspace = true
|
|
text.workspace = true
|
|
ui.workspace = true
|
|
url.workspace = true
|
|
util.workspace = true
|
|
uuid.workspace = true
|
|
watch.workspace = true
|
|
urlencoding.workspace = true
|
|
|
|
[dev-dependencies]
|
|
env_logger.workspace = true
|
|
gpui = { workspace = true, "features" = ["test-support"] }
|
|
indoc.workspace = true
|
|
markdown = { workspace = true, features = ["test-support"] }
|
|
parking_lot.workspace = true
|
|
project = { workspace = true, "features" = ["test-support"] }
|
|
rand.workspace = true
|
|
tempfile.workspace = true
|
|
util.workspace = true
|
|
settings.workspace = true
|