chore: remove echo-memory demo plugin

This commit is contained in:
Evan Hu committed 2026-03-21 02:52:49 +09:00
1 parent afcb260554
commit 9a1b1ed129
7 files changed
+1 -98

No files matched your search

+1 -2
View File
@@ -45,11 +45,10 @@ stdin: {"type": "after_turn", "agent_id": "...", "messages": [...]}
stdout: {"type": "ok"} stdout: {"type": "ok"}
``` ```
## Current Plugins (7) ## Current Plugins (6)
| Plugin | Hooks | Description | | Plugin | Hooks | Description |
|--------|-------|-------------| |--------|-------|-------------|
| echo-memory | ingest, after_turn | Demo plugin that echoes user messages as recalled memories |
| auto-summarizer | ingest, after_turn | Running conversation summary for long context compression | | auto-summarizer | ingest, after_turn | Running conversation summary for long context compression |
| conversation-logger | after_turn | Logs conversations to JSONL files for auditing and analytics | | conversation-logger | after_turn | Logs conversations to JSONL files for auditing and analytics |
| guardrails | ingest | Safety filter detecting PII, prompt injection, and credential exposure | | guardrails | ingest | Safety filter detecting PII, prompt injection, and credential exposure |
-14
View File
@@ -1,14 +0,0 @@
# echo-memory
Simple demo plugin that echoes back the user message as a "recalled memory". Useful for verifying the plugin system works end-to-end.
## Hooks
| Hook | Script | Description |
|------|--------|-------------|
| ingest | `hooks/ingest.py` | Echoes the user message back as a recalled memory fragment |
| after_turn | `hooks/after_turn.py` | Acknowledges each conversation turn (no-op demo) |
## Usage
Installed automatically when enabled in agent configuration.
-15
View File
@@ -1,15 +0,0 @@
# echo-memory hooks
Python hook scripts for the echo-memory demo plugin. Each script reads a JSON request from stdin and writes a JSON response to stdout.
## Scripts
| Script | Hook | Description |
|--------|------|-------------|
| `ingest.py` | ingest | Receives `{"message": "..."}`, returns it wrapped as a memory fragment |
| `after_turn.py` | after_turn | Receives the conversation messages array, responds with `{"type": "ok"}` |
## Protocol
- **Input**: JSON object on stdin (fields vary by hook type)
- **Output**: JSON object on stdout (`ingest_result` with memories, or `ok`)
-27
View File
@@ -1,27 +0,0 @@
#!/usr/bin/env python3
"""Echo memory after_turn hook — demo plugin.
Logs the number of messages in the conversation after each turn.
Receives via stdin:
{"type": "after_turn", "agent_id": "...", "messages": [...]}
Prints to stdout:
{"type": "ok"}
"""
import json
import sys
def main():
request = json.loads(sys.stdin.read())
agent_id = request.get("agent_id", "unknown")
messages = request.get("messages", [])
# In a real plugin you might update an index or persist state here.
# For this demo we just acknowledge.
print(json.dumps({"type": "ok"}), flush=True)
if __name__ == "__main__":
main()
-31
View File
@@ -1,31 +0,0 @@
#!/usr/bin/env python3
"""Echo memory ingest hook — demo plugin.
Echoes the user message back as a "recalled memory" to verify
the plugin system works end-to-end.
Receives via stdin:
{"type": "ingest", "agent_id": "...", "message": "user message text"}
Prints to stdout:
{"type": "ingest_result", "memories": [{"content": "..."}]}
"""
import json
import sys
def main():
request = json.loads(sys.stdin.read())
message = request.get("message", "")
agent_id = request.get("agent_id", "unknown")
memories = [
{"content": f"[echo-memory] Agent {agent_id} received: {message[:200]}"}
]
result = {"type": "ingest_result", "memories": memories}
print(json.dumps(result))
if __name__ == "__main__":
main()
-8
View File
@@ -1,8 +0,0 @@
name = "echo-memory"
version = "0.1.0"
description = "Simple demo plugin that echoes back the user message as a 'recalled memory'"
author = "librefang"
[hooks]
ingest = "hooks/ingest.py"
after_turn = "hooks/after_turn.py"
-1
View File
@@ -1 +0,0 @@
# No external dependencies — uses only Python stdlib