@adverant/nexus-memory-skill 2.3.2 → 2.3.4

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.
@@ -268,15 +268,12 @@ if [[ -z "$CONTENT" ]] || [[ "$CONTENT" == "null" ]]; then
268
268
  exit 0
269
269
  fi
270
270
 
271
- # Classify content to determine storage value
271
+ # Content quality check moved to API level
272
+ # Hook no longer filters content locally - API will return HTTP 400 if rejected
273
+ # This ensures users see the helpful error message from the API
274
+ # Still classify for bead detection and metadata tagging
272
275
  CONTENT_CLASS=$(classify_content "$CONTENT" "$EVENT_TYPE")
273
- log "Content classification: $CONTENT_CLASS"
274
-
275
- # Skip low-value content (routine commands, noise)
276
- if [[ "$CONTENT_CLASS" == "routine" ]] || [[ "$CONTENT_CLASS" == "noise" ]]; then
277
- log "Skipping $CONTENT_CLASS content (low value)"
278
- exit 0
279
- fi
276
+ log "Content classification: $CONTENT_CLASS (advisory only, not filtering)"
280
277
 
281
278
  # Truncate very long content (max 10000 chars)
282
279
  if [[ ${#CONTENT} -gt 10000 ]]; then
@@ -379,11 +376,29 @@ if [[ "$VERBOSE" == "1" ]]; then
379
376
  echo " Content type: $TRIAGE" >&2
380
377
  fi
381
378
 
379
+ elif [[ "$HTTP_CODE" == "400" ]]; then
380
+ # QUALITY FILTER REJECTION - show API's error message
381
+ echo "❌ Storage rejected (HTTP 400)" >&2
382
+ ERROR_MSG=$(echo "$BODY" | jq -r '.error.message // .message // ""' 2>/dev/null)
383
+ REASON=$(echo "$BODY" | jq -r '.error.reason // ""' 2>/dev/null)
384
+
385
+ if [[ -n "$ERROR_MSG" ]]; then
386
+ echo " Error: $ERROR_MSG" >&2
387
+ fi
388
+ if [[ -n "$REASON" ]] && [[ "$REASON" != "null" ]]; then
389
+ echo " Reason: $REASON" >&2
390
+ fi
391
+ exit 1 # Non-blocking error
392
+
382
393
  elif [[ "$HTTP_CODE" == "401" ]]; then
383
- echo "❌ Authentication failed - check NEXUS_API_KEY" >&2
394
+ # AUTHENTICATION FAILURE - clear actionable message
395
+ echo "❌ Authentication failed (HTTP 401)" >&2
396
+ echo " Check NEXUS_API_KEY environment variable" >&2
397
+ echo " Current key prefix: ${NEXUS_API_KEY:0:10}..." >&2
384
398
  exit 1 # Non-blocking error
385
399
 
386
400
  else
401
+ # OTHER ERROR - show details
387
402
  echo "❌ Storage failed (HTTP $HTTP_CODE)" >&2
388
403
  ERROR_MSG=$(echo "$BODY" | jq -r '.error.message // .message // ""' 2>/dev/null)
389
404
  if [[ -n "$ERROR_MSG" ]]; then
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adverant/nexus-memory-skill",
3
- "version": "2.3.2",
3
+ "version": "2.3.4",
4
4
  "description": "Claude Code skill for persistent memory via Nexus GraphRAG - store and recall memories across all sessions and projects",
5
5
  "main": "SKILL.md",
6
6
  "type": "module",