@edihasaj/recall 0.8.8 → 0.8.10
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/{chunk-OGBKDDEL.js → chunk-2WNWDLUS.js} +2 -2
- package/dist/{chunk-LV262EKS.js → chunk-6RVG472Q.js} +2 -2
- package/dist/{chunk-XWMPT4KC.js → chunk-ORJTJU52.js} +3 -3
- package/dist/{chunk-7HXPR2BW.js → chunk-QXFNOEC5.js} +20 -6
- package/dist/chunk-QXFNOEC5.js.map +1 -0
- package/dist/{chunk-W373TA62.js → chunk-TW7QBUPE.js} +140 -3
- package/dist/chunk-TW7QBUPE.js.map +1 -0
- package/dist/cli.js +24 -7
- package/dist/cli.js.map +1 -1
- package/dist/daemon.js +5 -5
- package/dist/mcp.js +3 -3
- package/dist/memory-value-EO7V2QMP.js +33 -0
- package/dist/{quality-3SIDIPJV.js → quality-E272AKPW.js} +3 -3
- package/dist/quality-E272AKPW.js.map +1 -0
- package/package.json +1 -1
- package/dist/chunk-7HXPR2BW.js.map +0 -1
- package/dist/chunk-W373TA62.js.map +0 -1
- /package/dist/{chunk-OGBKDDEL.js.map → chunk-2WNWDLUS.js.map} +0 -0
- /package/dist/{chunk-LV262EKS.js.map → chunk-6RVG472Q.js.map} +0 -0
- /package/dist/{chunk-XWMPT4KC.js.map → chunk-ORJTJU52.js.map} +0 -0
- /package/dist/{quality-3SIDIPJV.js.map → memory-value-EO7V2QMP.js.map} +0 -0
package/dist/cli.js
CHANGED
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
readCodexSessionStartInputFromStdin,
|
|
24
24
|
readCodexToolInputFromStdin,
|
|
25
25
|
restoreBackup
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-QXFNOEC5.js";
|
|
27
27
|
import {
|
|
28
28
|
RECALL_DB_USER_VERSION,
|
|
29
29
|
compileContext,
|
|
@@ -66,8 +66,8 @@ import {
|
|
|
66
66
|
summarizeValueRetrievalEval,
|
|
67
67
|
togglePolicy,
|
|
68
68
|
writeRepoContextArtifact
|
|
69
|
-
} from "./chunk-
|
|
70
|
-
import "./chunk-
|
|
69
|
+
} from "./chunk-6RVG472Q.js";
|
|
70
|
+
import "./chunk-TW7QBUPE.js";
|
|
71
71
|
import "./chunk-PUMEMKGF.js";
|
|
72
72
|
import {
|
|
73
73
|
autoResolveContradictions,
|
|
@@ -2613,14 +2613,15 @@ hookCmd.command("session-start").description("Record session start").option("--s
|
|
|
2613
2613
|
}
|
|
2614
2614
|
}
|
|
2615
2615
|
}));
|
|
2616
|
-
hookCmd.command("session-end").description("Record session end").option("--session <id>", "Session ID").option("--repo <repo>", "Repository slug").option("--repo-path <path>", "Repository path").option("--path <path>", "File path context").option("--agent <agent>", "Agent name").option("--turn-count <count>", "Turn count").option("--claude-code-stdin", "Read Claude Code hook JSON from stdin").option("--codex-stdin", "Read Codex hook JSON from stdin").action(safeHookAction("session-end", async (opts) => {
|
|
2616
|
+
hookCmd.command("session-end").description("Record session end").option("--session <id>", "Session ID").option("--repo <repo>", "Repository slug").option("--repo-path <path>", "Repository path").option("--path <path>", "File path context").option("--agent <agent>", "Agent name").option("--turn-count <count>", "Turn count").option("--assistant-text <text>", "Last assistant completion text for value-use inference").option("--claude-code-stdin", "Read Claude Code hook JSON from stdin").option("--codex-stdin", "Read Codex hook JSON from stdin").action(safeHookAction("session-end", async (opts) => {
|
|
2617
2617
|
const input = opts.claudeCodeStdin ? await readClaudeCodeSessionEndInputFromStdin() : opts.codexStdin ? await readCodexSessionEndInputFromStdin() : {
|
|
2618
2618
|
session_id: opts.session,
|
|
2619
2619
|
repo: opts.repo,
|
|
2620
2620
|
repo_path: opts.repoPath,
|
|
2621
2621
|
path: opts.path,
|
|
2622
2622
|
agent: opts.agent,
|
|
2623
|
-
turn_count: opts.turnCount ? parseInteger(opts.turnCount, "turn-count") : void 0
|
|
2623
|
+
turn_count: opts.turnCount ? parseInteger(opts.turnCount, "turn-count") : void 0,
|
|
2624
|
+
last_assistant_turn: opts.assistantText
|
|
2624
2625
|
};
|
|
2625
2626
|
await executeSessionEndHook(input);
|
|
2626
2627
|
}));
|
|
@@ -3051,7 +3052,7 @@ evalCmd.command("value-retrieval").description("Run retrieval eval cases synthes
|
|
|
3051
3052
|
});
|
|
3052
3053
|
let snapshot = null;
|
|
3053
3054
|
if (opts.snapshot) {
|
|
3054
|
-
const { computeQualityReport, recordQualitySnapshot } = await import("./quality-
|
|
3055
|
+
const { computeQualityReport, recordQualitySnapshot } = await import("./quality-E272AKPW.js");
|
|
3055
3056
|
const qualityReport = computeQualityReport(db, { sinceIso: report.since });
|
|
3056
3057
|
snapshot = recordQualitySnapshot(
|
|
3057
3058
|
db,
|
|
@@ -3864,7 +3865,7 @@ maintenanceCmd.command("quality").description("Show injection outcome distributi
|
|
|
3864
3865
|
recordQualitySnapshot,
|
|
3865
3866
|
listQualitySnapshots,
|
|
3866
3867
|
diffQualitySnapshots
|
|
3867
|
-
} = await import("./quality-
|
|
3868
|
+
} = await import("./quality-E272AKPW.js");
|
|
3868
3869
|
const db = initDb();
|
|
3869
3870
|
if (opts.history) {
|
|
3870
3871
|
const snaps = listQualitySnapshots(db);
|
|
@@ -3921,6 +3922,22 @@ maintenanceCmd.command("quality").description("Show injection outcome distributi
|
|
|
3921
3922
|
}
|
|
3922
3923
|
console.log(formatQualityReport(report));
|
|
3923
3924
|
});
|
|
3925
|
+
maintenanceCmd.command("value-backfill").description("Backfill memory value events from historical injection outcomes").option("--since <iso>", "Only backfill injections at or after this timestamp").option("--apply", "Persist changes (default is dry-run)").option("--json", "Emit raw JSON report").action(async (opts) => {
|
|
3926
|
+
const {
|
|
3927
|
+
backfillMemoryValueEvents,
|
|
3928
|
+
formatMemoryValueBackfillReport
|
|
3929
|
+
} = await import("./memory-value-EO7V2QMP.js");
|
|
3930
|
+
const db = initDb();
|
|
3931
|
+
const report = backfillMemoryValueEvents(db, {
|
|
3932
|
+
sinceIso: opts.since,
|
|
3933
|
+
dryRun: !opts.apply
|
|
3934
|
+
});
|
|
3935
|
+
if (opts.json) {
|
|
3936
|
+
console.log(JSON.stringify(report, null, 2));
|
|
3937
|
+
return;
|
|
3938
|
+
}
|
|
3939
|
+
console.log(formatMemoryValueBackfillReport(report));
|
|
3940
|
+
});
|
|
3924
3941
|
maintenanceCmd.command("usage").description("Summarize LLM API usage (tokens, cost) across recent maintenance runs").option("--since <iso>", "Window start (default: last 30 days)").option("--limit <n>", "Recent-call rows to show", "10").option("--json", "Emit raw JSON summary").action(async (opts) => {
|
|
3925
3942
|
const { summarizeUsage, formatUsageReport } = await import("./usage-KHOLIR3S.js");
|
|
3926
3943
|
const db = initDb();
|