claude-memory-layer 1.0.38 → 1.0.40
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/dist/cli/index.js +11 -12
- package/dist/cli/index.js.map +2 -2
- package/dist/server/api/index.js +10 -11
- package/dist/server/api/index.js.map +2 -2
- package/dist/server/index.js +10 -11
- package/dist/server/index.js.map +2 -2
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -11634,7 +11634,7 @@ function computeKpiMetrics(events, usefulRecallRate) {
|
|
|
11634
11634
|
};
|
|
11635
11635
|
}
|
|
11636
11636
|
statsRouter.get("/shared", async (c) => {
|
|
11637
|
-
const memoryService =
|
|
11637
|
+
const memoryService = getLightweightServiceFromQuery(c);
|
|
11638
11638
|
try {
|
|
11639
11639
|
await memoryService.initialize();
|
|
11640
11640
|
const sharedStats = await memoryService.getSharedStoreStats();
|
|
@@ -11658,8 +11658,7 @@ statsRouter.get("/shared", async (c) => {
|
|
|
11658
11658
|
}
|
|
11659
11659
|
});
|
|
11660
11660
|
statsRouter.get("/endless", async (c) => {
|
|
11661
|
-
const
|
|
11662
|
-
const memoryService = getMemoryServiceForProject(projectPath);
|
|
11661
|
+
const memoryService = getLightweightServiceFromQuery(c);
|
|
11663
11662
|
try {
|
|
11664
11663
|
await memoryService.initialize();
|
|
11665
11664
|
const status = await memoryService.getEndlessModeStatus();
|
|
@@ -11691,7 +11690,7 @@ statsRouter.get("/levels/:level", async (c) => {
|
|
|
11691
11690
|
if (!validLevels.includes(level)) {
|
|
11692
11691
|
return c.json({ error: `Invalid level. Must be one of: ${validLevels.join(", ")}` }, 400);
|
|
11693
11692
|
}
|
|
11694
|
-
const memoryService =
|
|
11693
|
+
const memoryService = getLightweightServiceFromQuery(c);
|
|
11695
11694
|
try {
|
|
11696
11695
|
await memoryService.initialize();
|
|
11697
11696
|
let events = await memoryService.getEventsByLevel(level, { limit: limit * 2, offset });
|
|
@@ -11783,7 +11782,7 @@ statsRouter.get("/", async (c) => {
|
|
|
11783
11782
|
});
|
|
11784
11783
|
statsRouter.get("/most-accessed", async (c) => {
|
|
11785
11784
|
const limit = parseInt(c.req.query("limit") || "10", 10);
|
|
11786
|
-
const memoryService =
|
|
11785
|
+
const memoryService = getLightweightServiceFromQuery(c);
|
|
11787
11786
|
try {
|
|
11788
11787
|
await memoryService.initialize();
|
|
11789
11788
|
console.log("[most-accessed] Fetching most accessed memories, limit:", limit);
|
|
@@ -11814,7 +11813,7 @@ statsRouter.get("/most-accessed", async (c) => {
|
|
|
11814
11813
|
});
|
|
11815
11814
|
statsRouter.get("/timeline", async (c) => {
|
|
11816
11815
|
const days = parseInt(c.req.query("days") || "7", 10);
|
|
11817
|
-
const memoryService =
|
|
11816
|
+
const memoryService = getLightweightServiceFromQuery(c);
|
|
11818
11817
|
try {
|
|
11819
11818
|
await memoryService.initialize();
|
|
11820
11819
|
const recentEvents = await memoryService.getRecentEvents(1e4);
|
|
@@ -11846,7 +11845,7 @@ statsRouter.get("/timeline", async (c) => {
|
|
|
11846
11845
|
});
|
|
11847
11846
|
statsRouter.get("/helpfulness", async (c) => {
|
|
11848
11847
|
const limit = parseInt(c.req.query("limit") || "10", 10);
|
|
11849
|
-
const memoryService =
|
|
11848
|
+
const memoryService = getLightweightServiceFromQuery(c);
|
|
11850
11849
|
try {
|
|
11851
11850
|
await memoryService.initialize();
|
|
11852
11851
|
const stats = await memoryService.getHelpfulnessStats();
|
|
@@ -11903,7 +11902,7 @@ statsRouter.get("/usefulness", async (c) => {
|
|
|
11903
11902
|
});
|
|
11904
11903
|
statsRouter.get("/retrieval-traces", async (c) => {
|
|
11905
11904
|
const limit = parseInt(c.req.query("limit") || "50", 10);
|
|
11906
|
-
const memoryService =
|
|
11905
|
+
const memoryService = getLightweightServiceFromQuery(c);
|
|
11907
11906
|
try {
|
|
11908
11907
|
await memoryService.initialize();
|
|
11909
11908
|
const traces = await memoryService.getRecentRetrievalTraces(limit);
|
|
@@ -11957,7 +11956,7 @@ statsRouter.get("/retrieval-traces", async (c) => {
|
|
|
11957
11956
|
statsRouter.get("/retrieval-review-queue", async (c) => {
|
|
11958
11957
|
const limit = parseStatsLimit(c.req.query("limit"), 10, 50);
|
|
11959
11958
|
const scanLimit = parseStatsLimit(c.req.query("scanLimit"), 500, 5e3);
|
|
11960
|
-
const memoryService =
|
|
11959
|
+
const memoryService = getLightweightServiceFromQuery(c);
|
|
11961
11960
|
try {
|
|
11962
11961
|
await memoryService.initialize();
|
|
11963
11962
|
const traces = await memoryService.getRecentRetrievalTraces(scanLimit);
|
|
@@ -11991,7 +11990,7 @@ statsRouter.get("/retrieval-review-queue", async (c) => {
|
|
|
11991
11990
|
statsRouter.get("/kpi", async (c) => {
|
|
11992
11991
|
const rawWindow = c.req.query("window") || "7d";
|
|
11993
11992
|
const window = rawWindow === "24h" || rawWindow === "30d" ? rawWindow : "7d";
|
|
11994
|
-
const memoryService =
|
|
11993
|
+
const memoryService = getLightweightServiceFromQuery(c);
|
|
11995
11994
|
try {
|
|
11996
11995
|
await memoryService.initialize();
|
|
11997
11996
|
const now = Date.now();
|
|
@@ -12694,7 +12693,7 @@ function streamClaudeResponse(prompt, stream) {
|
|
|
12694
12693
|
import { Hono as Hono9 } from "hono";
|
|
12695
12694
|
var healthRouter = new Hono9();
|
|
12696
12695
|
healthRouter.get("/", async (c) => {
|
|
12697
|
-
const memoryService =
|
|
12696
|
+
const memoryService = getLightweightServiceFromQuery(c);
|
|
12698
12697
|
try {
|
|
12699
12698
|
await memoryService.initialize();
|
|
12700
12699
|
const [stats, outbox] = await Promise.all([
|
|
@@ -14615,7 +14614,7 @@ async function runMarketContextCommand(options) {
|
|
|
14615
14614
|
}
|
|
14616
14615
|
}
|
|
14617
14616
|
var program = new Command();
|
|
14618
|
-
program.name("claude-memory-layer").description("Claude Code Memory Plugin CLI").version("1.0.
|
|
14617
|
+
program.name("claude-memory-layer").description("Claude Code Memory Plugin CLI").version("1.0.40");
|
|
14619
14618
|
program.command("market-context").description("Fetch read-only DART/FRED/Finnhub context with structured MarketContextSnapshot bull/bear/risk/catalyst analysis").option("--company <name>", "Company name for DART fallback search and report subject").option("--dart-corp-code <code>", "Exact DART corp_code for issuer-specific filings").option("--symbol <ticker>", "Listed ticker for Finnhub company profile").option("--providers <list>", "Comma-separated providers: dart,fred,finnhub").option("--fred-series <list>", "Comma-separated FRED series IDs").option("--json", "Print structured JSON including analysis.marketSnapshot").option("--no-snapshot", "Disable MarketContextSnapshot and DART company snapshot analysis").action(async (options) => {
|
|
14620
14619
|
try {
|
|
14621
14620
|
await runMarketContextCommand(options);
|