feat: NoMemory/Cleaner memory system + doc update

- _sdk_local/ removed (moved to standalone sdk repo)
- internal/agent/core: NoMemory/Cleaner data-flow breakpoints
- internal/memory: clean_text, document store refactor
- internal/plugin/registry.go: plugin API alignment
- docs: PLUGIN_DEV.md, ARCHITECTURE.md NoMemory/Cleaner docs
- plan.md, review.md: status update
This commit is contained in:
JianFeeeee
2026-07-25 11:17:31 +08:00
parent 4a2df503ed
commit 31664a7853
36 changed files with 639 additions and 2488 deletions

View File

@ -214,8 +214,13 @@ func TestCmdRunNonZeroExit(t *testing.T) {
}
func TestTruncateOutput(t *testing.T) {
p, _, err := setupPlugin()
if err != nil {
t.Fatal(err)
}
short := "hello"
if s := truncateOutput(short); s != short {
if s := p.truncateOutput(short); s != short {
t.Fatalf("expected %q, got %q", short, s)
}
@ -223,7 +228,7 @@ func TestTruncateOutput(t *testing.T) {
for i := range long {
long[i] = 'x'
}
s := truncateOutput(string(long))
s := p.truncateOutput(string(long))
if len(s) >= 40000 {
t.Fatal("expected truncation")
}