Commit cd401d7
fix(proxy): add /v1/memory/hybrid + fix /v1/agents/{id}/memories allowlist (DAK-6898) (#215)
Two endpoint fixes for the sandbox proxy allowlist:
1. POST /v1/memory/hybrid — was returning 403 (missing), now passes through.
Hybrid Search Tuner uses /memory/search with vector_weight param; this entry
allows the /memory/hybrid route for any direct API Explorer calls.
2. GET /v1/agents/{seg}/memories — replaces the wrong singular
/v1/agent/memories entry which the engine never had a matching route for
(always 404'd). The engine route is /v1/agents/{agent_id}/memories.
Updated proxy.test.js to assert new path allowed + old path blocked.
45/45 proxy tests pass.
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 80b33cc commit cd401d7
2 files changed
Lines changed: 14 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
42 | 46 | | |
43 | 47 | | |
44 | 48 | | |
| |||
53 | 57 | | |
54 | 58 | | |
55 | 59 | | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
60 | 64 | | |
61 | 65 | | |
62 | 66 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
112 | | - | |
113 | | - | |
114 | | - | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
115 | 118 | | |
116 | 119 | | |
117 | 120 | | |
| |||
0 commit comments