🚀 Socket Launch Week Day 4:Socket MCP Adds Org Alerts, Threat Feed Review, and Package Inspection.Learn more
Sign In

rlm-navigator

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rlm-navigator - npm Package Compare versions

Comparing version
1.3.5
to
2.0.0
+44
-0
daemon/rlm_daemon.py

@@ -840,2 +840,46 @@ """RLM Navigator Daemon — file watcher + TCP server + skeleton cache.

elif action == "enrich":
path = req.get("path", "")
abs_path = str((root_path / path).resolve())
if not abs_path.startswith(str(root_path)):
return json.dumps({"error": "Path outside project root"}).encode("utf-8")
skeleton = cache.get(abs_path)
if skeleton is None:
return json.dumps({"error": f"File not found or unsupported: {path}"}).encode("utf-8")
from config import RLMConfig
from node_enricher import (
parse_skeleton_symbols, build_enrichment_prompt,
call_enrichment_api, merge_enrichments, _parse_enrichment_response,
)
cfg = RLMConfig(root=root)
if not cfg.enrichment_enabled:
return json.dumps({"error": "Enrichment not enabled (no API key configured)"}).encode("utf-8")
symbols = parse_skeleton_symbols(skeleton)
if not symbols:
return json.dumps({"skeleton": skeleton, "enrichments": {}, "note": "No symbols found"}).encode("utf-8")
prompt = build_enrichment_prompt(path, symbols)
try:
raw = call_enrichment_api(prompt, cfg)
if raw is None:
return json.dumps({"error": "Enrichment API returned None"}).encode("utf-8")
enrichments = _parse_enrichment_response(raw)
enriched_skeleton = merge_enrichments(skeleton, enrichments)
response = json.dumps({
"skeleton": skeleton,
"enriched_skeleton": enriched_skeleton,
"enrichments": enrichments,
"symbols_sent": len(symbols),
"symbols_enriched": len(enrichments) if enrichments else 0,
"provider": cfg.enrichment_provider,
"model": cfg.enrichment_model,
}).encode("utf-8")
if stats:
stats.record("enrich", len(response))
return response
except Exception as e:
return json.dumps({"error": f"Enrichment failed: {str(e)}"}).encode("utf-8")
elif action == "shutdown":

@@ -842,0 +886,0 @@ if shutdown_event is None:

+1
-1
{
"name": "rlm-navigator",
"version": "1.3.5",
"version": "2.0.0",
"description": "Token-efficient codebase navigation for AI-assisted coding",

@@ -5,0 +5,0 @@ "bin": {