docs/mcp/PLAN.md and TODO-MCP.md (2026-09-23): lucisv gets a Model Context Protocol server for coding agents as a separate block — a new crate composing the six library crates, never lucisv_server or the CLI, interacting with them only through lucisv.toml/filelist discovery, atomic on-disk edits the LSP's watcher already sees, and (M6) a read-only warm start from the LSP's index cache; shipped as a third binary in every platform vsix (M5). Six lanes, dev → QA → lead on trunk, both Opus 5.5 by the owner's ruling; no release until the block is done. M1: crates/lucisv_mcp (binary lucisv-mcp), no new dependency — newline-delimited JSON-RPC over stdio with the pinned serde_json, one synchronous loop on a PARSE_STACK_SIZE thread, legacy-era handshake (2025-11-25 echoed or offered, 2025-06-18 accepted; the 2026-07-28 era filed as MCP-4). Project: roots, Discovery, filelist-or-walk with the 1 MiB cap, IndexBuilder, per-call freshness sweep (size/mtime/ctime/inode + git's racy-clean rule, absorb in one merge, re-walk on a miss/every 5 s/on overview) so no answer is older than the disk when the call arrived; walked files outside every root dropped with a warning; paths refused outside the roots. Tools project_overview, list_units, unit_interface (params, ports with packed/unpacked ranges, instantiation template, modports, class/package members read off the declaration itself), outline, read_item (name, kind:name, name@LINE, always@LINE…), search_symbols — closed schemas, read-only annotations, compact renderings (PLAN §4.5), structuredContent beside the text. Invalid tool arguments are tool errors (SEP-1303), columns are 1-based bytes everywhere. QA (Opus, two rounds): 51 qa_m1 tests; the one wrong answer (a class's extends/members read by bare name) and nine smaller findings fixed under the lead's rulings; finding 11 (a bare escaped name ending in @digits) carried to M2. opentitan hw/: 3 944 files indexed in 1.6 s release, later calls 5–11 ms, a miss walk 145 ms; checkout untouched. Gates through tools/guard.sh: fmt, clippy, workspace 4 548 passed. Co-Authored-By: Claude Fable 5.1 <[email protected]>
47 lines
1.7 KiB
TOML
47 lines
1.7 KiB
TOML
[workspace]
|
|
resolver = "2"
|
|
members = [
|
|
"crates/vlog_parser",
|
|
"crates/vlog_semantic",
|
|
"crates/vlog_refactor",
|
|
"crates/vlog_formatter",
|
|
"crates/vlog_linter",
|
|
"crates/lucisv_core",
|
|
"crates/lucisv",
|
|
"crates/lucisv_server",
|
|
"crates/lucisv_mcp",
|
|
]
|
|
|
|
[workspace.package]
|
|
version = "0.55.0"
|
|
authors = ["Guoliang Chen"]
|
|
edition = "2021"
|
|
license = "MIT"
|
|
|
|
# `rayon` is sanctioned by TODO.md §3 (parallel file processing) and used by
|
|
# `lucisv` only. Pinned exactly, because a work-stealing scheduler is exactly
|
|
# the kind of dependency whose minor releases can change thread behavior;
|
|
# justification in docs/features/parallel-files/README.md.
|
|
[workspace.dependencies]
|
|
rayon = "=1.12.0"
|
|
|
|
# The LSP stack, sanctioned by TODO.md §6 ("`tower-lsp` or `lsp-server`"), used
|
|
# by `lucisv_server` only. `lsp-server` is rust-analyzer's synchronous transport
|
|
# (no async runtime); `lsp-types` is the protocol's data model, which is not
|
|
# something to hand-roll. All pinned exactly for the same reason `rayon` is: a
|
|
# wire protocol's Rust bindings change shape between minor releases. Transitive
|
|
# count, build scripts and the versions considered are audited in
|
|
# docs/features/lucisv-server/README.md.
|
|
lsp-server = "=0.10.0"
|
|
# `proposed` is what carries LSP 3.18's `textDocument/inlineCompletion` — the
|
|
# params, the client/server capability. Nothing else in the feature is used,
|
|
# and the *response* types are hand-rolled in `inline.rs` because 0.97's are
|
|
# an older draft than the client implements
|
|
# (docs/features/inline-templates/README.md).
|
|
lsp-types = { version = "=0.97.0", features = ["proposed"] }
|
|
serde = "=1.0.229"
|
|
serde_json = "=1.0.140"
|
|
|
|
[profile.release]
|
|
lto = true
|