Commit 5dc17b4
fix(proxy): add KG endpoint + GET query-param agent_id namespacing (DAK-6899) (#216)
Two proxy fixes to unblock playground Mode 9 (KG Explorer):
1. allowlist.js: add POST /v1/knowledge/graph/full to the sandbox allow-list.
The playground KG Explorer calls this endpoint (not /knowledge/graph which
requires a single memory_id). full_knowledge_graph accepts agent_id and
builds the graph from all memories in that agent's namespace.
2. server.js: rewrite agent_id in GET URL query parameters (same session
namespace as POST body rewriting). Without this, GET /v1/knowledge/query
and GET /v1/knowledge/path land in a different namespace than the memories
that were seeded via POST store — making KG traversal always return empty.
All 9 playground modes now validated end-to-end.
Co-authored-by: Paperclip <noreply@paperclip.ing>1 parent cd401d7 commit 5dc17b4
2 files changed
Lines changed: 14 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| 77 | + | |
77 | 78 | | |
78 | 79 | | |
79 | 80 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
416 | 416 | | |
417 | 417 | | |
418 | 418 | | |
419 | | - | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
420 | 432 | | |
421 | 433 | | |
422 | 434 | | |
| |||
0 commit comments