You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: engines/code-graph/CHANGELOG.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
8
8
## [Unreleased]
9
9
10
+
### Deprecated
11
+
- The direct `miseledger` Cargo feature, `graphtrail context --evidence`, and `graphtrail links` are deprecated but remain functional. Use `brigade code sync .`, `brigade code context "rate limiting" --markdown`, `brigade code impact dispatch --json`, `brigade evidence crawl plan --target .`, `brigade evidence search "dispatch"`, `brigade evidence search "dispatch" --code-reference '{"schema":"brigade.code-reference.v1","repository":"escoffier-labs/brigade","revision":{"commit":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"},"file_path":"src/brigade/receipts_cmd.py","qualified_name":"brigade.receipts_cmd._metadata_with_delta","symbol_kind":"function","source_span":{"start_line":788,"line_count":3}}'`, and `brigade evidence doctor --target .` for structured composition. An exact code reference is matched before lexical fallback. Compatibility lasts through at least two minor GraphTrail releases or 90 days after the first GraphTrail release containing this deprecation, whichever is longer. Removal cannot occur before that policy is satisfied. The standalone release pipeline is unchanged.
cargo run --features miseledger -- links "dispatch" --json
188
188
```
189
189
190
+
### MiseLedger adapter deprecation
191
+
192
+
The direct `miseledger` Cargo feature, `graphtrail context --evidence`, and `graphtrail links` are deprecated but remain functional. Use Brigade for structured composition instead:
An exact code reference is matched before lexical fallback. GraphTrail will keep the direct adapter functional through at least two minor GraphTrail releases or 90 days after the first GraphTrail release containing this deprecation, whichever is longer. Removal cannot occur before that compatibility policy is satisfied. The direct adapter keeps its existing default database resolution and read-only FTS behavior during the compatibility window.
205
+
190
206
When `codesearch` is enabled, GraphTrail also reads the shared Code Search index
191
207
manifest from `CODE_INDEX_MANIFEST`, `XDG_DATA_HOME/code-index/manifest.json`, or
192
208
`~/.local/share/code-index/manifest.json`. `CODE_SEARCH_URL` still wins when it is
if std::env::var_os("CARGO_FEATURE_MISELEDGER").is_some(){
5
+
println!(
6
+
"cargo:warning=GraphTrail's direct MiseLedger adapter is deprecated. Use `brigade code sync`, `brigade code context`, `brigade code impact`, `brigade evidence crawl`, `brigade evidence search`, and `brigade evidence doctor` instead. The adapter remains functional for at least two minor GraphTrail releases or 90 days after the first GraphTrail release containing this deprecation, whichever is longer. It will not be removed before that compatibility policy is satisfied."
Copy file name to clipboardExpand all lines: engines/code-graph/src/adapters/miseledger.rs
+7Lines changed: 7 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,13 @@ use anyhow::{Context, Result};
9
9
use rusqlite::{Connection,OpenFlags, params};
10
10
use serde::Serialize;
11
11
12
+
/// Emitted once by each deprecated CLI command invocation, always on stderr.
13
+
pubconstDEPRECATION_WARNING:&str = "warning: GraphTrail's direct MiseLedger adapter is deprecated. Use `brigade code sync`, `brigade code context`, `brigade code impact`, `brigade evidence crawl`, `brigade evidence search`, and `brigade evidence doctor` instead. The adapter remains functional for at least two minor GraphTrail releases or 90 days after the first GraphTrail release containing this deprecation, whichever is longer. It will not be removed before that compatibility policy is satisfied.";
Copy file name to clipboardExpand all lines: engines/code-graph/tests/cli_read_only.rs
+198Lines changed: 198 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,9 @@ use std::time::SystemTime;
9
9
use graphtrail::store::{init_schema, open_db, sync_repo};
10
10
use sha2::{Digest,Sha256};
11
11
12
+
#[cfg(feature = "miseledger")]
13
+
constMISELEDGER_DEPRECATION_WARNING:&str = "warning: GraphTrail's direct MiseLedger adapter is deprecated. Use `brigade code sync`, `brigade code context`, `brigade code impact`, `brigade evidence crawl`, `brigade evidence search`, and `brigade evidence doctor` instead. The adapter remains functional for at least two minor GraphTrail releases or 90 days after the first GraphTrail release containing this deprecation, whichever is longer. It will not be removed before that compatibility policy is satisfied.";
14
+
12
15
fngraphtrail() -> &'staticstr{
13
16
env!("CARGO_BIN_EXE_graphtrail")
14
17
}
@@ -50,6 +53,60 @@ def run():
50
53
db
51
54
}
52
55
56
+
#[cfg(feature = "miseledger")]
57
+
fnbuild_miseledger_db(root:&Path) -> PathBuf{
58
+
let db = root.join("miseledger.db");
59
+
let conn = rusqlite::Connection::open(&db).unwrap();
60
+
conn.execute_batch(
61
+
"CREATE VIRTUAL TABLE item_fts USING fts5(item_id, source_kind, body);\
62
+
INSERT INTO item_fts (item_id, source_kind, body) VALUES\
0 commit comments