Upgrade workspace to edition 2024, add --local flag to agent run
Edition 2024 changes: - gen is reserved: rename variable in query/engine.rs - set_var is unsafe: wrap in unsafe block in cli/agent.rs - match ergonomics: add explicit & in spectral.rs filter closure New --local flag for `poc-memory agent run` bypasses the daemon and runs the agent directly in-process. Useful for testing agent prompt changes without waiting in the daemon queue. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
c153daacd5
commit
0a62832fe3
7 changed files with 1515 additions and 56 deletions
|
|
@ -434,7 +434,7 @@ pub fn run_query(
|
|||
}
|
||||
|
||||
current = match stage {
|
||||
Stage::Generator(gen) => run_generator(gen, store),
|
||||
Stage::Generator(g) => run_generator(g, store),
|
||||
|
||||
Stage::Filter(filt) => {
|
||||
current.into_iter()
|
||||
|
|
@ -470,8 +470,8 @@ pub fn run_query(
|
|||
current
|
||||
}
|
||||
|
||||
fn run_generator(gen: &Generator, store: &Store) -> Vec<(String, f64)> {
|
||||
match gen {
|
||||
fn run_generator(g: &Generator, store: &Store) -> Vec<(String, f64)> {
|
||||
match g {
|
||||
Generator::All => {
|
||||
store.nodes.iter()
|
||||
.filter(|(_, n)| !n.deleted)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue