@rulemetric/hooks 0.7.7 → 0.7.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rulemetric/hooks",
3
- "version": "0.7.7",
3
+ "version": "0.7.9",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -217,8 +217,11 @@ _rulemetric_inject_memories() {
217
217
  # Cap at 10 so a large memory set can't blow the context budget. Trust-gated
218
218
  # priority ordering (inject the proven-helpful ones first) is the distiller's
219
219
  # job — a later slice; today this is newest-active-first.
220
+ # rank=trust — the injection trust-gate: the API excludes measured-harmful
221
+ # memories and orders proven-helpful/manual first, so the cap surfaces the
222
+ # memories most likely to help (not just the newest). Don't spray unproven memory.
220
223
  response="$(curl -s --noproxy '*' --max-time 4 \
221
- "${api_url}/api/memories?projectPath=${encoded_path}&status=active&limit=10" \
224
+ "${api_url}/api/memories?projectPath=${encoded_path}&status=active&rank=trust&limit=10" \
222
225
  -H "Authorization: Bearer ${auth_token}" 2>/dev/null)" || return 0
223
226
 
224
227
  local count