Skip to content

Commit 9440c61

Browse files
committed
docs: update JCODE_DCP_PLAN.md — use git URL, mark DCP APIs complete
- J1: Change from local path to git = "https://github.com/quangdang46/dynamic_context_pruning" - Prerequisites: mark all 4 DCP API items as complete (D1-D4)
1 parent 20b30b8 commit 9440c61

1 file changed

Lines changed: 16 additions & 7 deletions

File tree

JCODE_DCP_PLAN.md

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,14 @@ Agent::messages_for_provider()
3232

3333
## Prerequisites
3434

35-
Before starting jcode implementation, DCP must have:
35+
DCP APIs are now complete (all 4 items implemented). Before building jcode with DCP:
3636

37-
- [x] `dcp_bridge.rs` — jcode ↔ DCP message converter (already exists)
38-
- [ ] `has_pending_work()` — DCP API Plan D1
39-
- [ ] `transform_messages_with_diff()` — DCP API Plan D2
40-
- [ ] DCP rebuilt and `Cargo.toml` path dependency updated
37+
- [x] `dcp_bridge.rs` — jcode ↔ DCP message converter (already exists in jcode)
38+
- [x] `has_pending_work()` — DCP API Plan D1 ✅
39+
- [x] `transform_messages_with_diff()` — DCP API Plan D2 ✅
40+
- [x] `count_messages_tokens()` — DCP API Plan D3 ✅
41+
- [x] `last_nudge_kind()` — DCP API Plan D4 ✅
42+
- [x] DCP committed at `https://github.com/quangdang46/dynamic_context_pruning`
4143

4244
---
4345

@@ -48,13 +50,20 @@ Before starting jcode implementation, DCP must have:
4850
**File**: `/data/projects/jcode-dcp/Cargo.toml`
4951

5052
```toml
51-
# Update the path to point to the updated DCP crate
52-
dynamic_context_pruning = { path = "/data/projects/dynamic_context_pruning/crates/dynamic_context_pruning", optional = true }
53+
# Use git URL — DCP is published at github.com/quangdang46/dynamic_context_pruning
54+
# The `dynamic_context_pruning` package is the umbrella crate at crates/dynamic_context_pruning/
55+
dynamic_context_pruning = { git = "https://github.com/quangdang46/dynamic_context_pruning", branch = "main", package = "dynamic_context_pruning" }
5356

5457
[features]
5558
dcp = ["dep:dynamic_context_pruning"]
5659
```
5760

61+
> **Dev note**: During active DCP development, you may want to use a local path instead:
62+
> ```toml
63+
> dynamic_context_pruning = { path = "/path/to/your/dynamic_context_pruning/crates/dynamic_context_pruning", optional = true }
64+
> ```
65+
> Switch back to the git URL when DCP features are stable.
66+
5867
Verify:
5968
```bash
6069
cargo check --features dcp

0 commit comments

Comments
 (0)