@edihasaj/recall 0.7.1 → 0.8.0

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/daemon.js CHANGED
@@ -12,10 +12,10 @@ import {
12
12
  handleSessionEndHook,
13
13
  handleSessionStartHook,
14
14
  handleToolHook
15
- } from "./chunk-CPOANMKD.js";
15
+ } from "./chunk-OLZS3M24.js";
16
16
  import {
17
17
  createRecallMcpServer
18
- } from "./chunk-GNXTOM5K.js";
18
+ } from "./chunk-I5TTXHOM.js";
19
19
  import {
20
20
  graphQuery
21
21
  } from "./chunk-AKODTKWM.js";
@@ -69,7 +69,7 @@ import {
69
69
  updateHistorySnippet,
70
70
  verifyHistoryEmbeddings,
71
71
  writeRepoContextArtifact
72
- } from "./chunk-PG2ZVVAT.js";
72
+ } from "./chunk-2G5DMOVA.js";
73
73
  import {
74
74
  DEFAULT_ENQUEUE_CONFIG,
75
75
  autoResolveContradictions,
@@ -90,7 +90,7 @@ import {
90
90
  resolveContradiction,
91
91
  rollbackMemory,
92
92
  runDeterministicCleanup
93
- } from "./chunk-PH6YNVHR.js";
93
+ } from "./chunk-BMWLHPLS.js";
94
94
  import {
95
95
  confirmMemory,
96
96
  getMemory,
@@ -1509,7 +1509,7 @@ var server = createServer2(async (req, res) => {
1509
1509
  if (path === "/correct" && method === "POST") {
1510
1510
  const body = await parseBody(req);
1511
1511
  const repo = resolveRepo(body);
1512
- const ids = await processCorrection(db, body.text, {
1512
+ const { ids, pendingTaskId } = await processCorrection(db, body.text, {
1513
1513
  sessionId: body.session_id ?? "hook",
1514
1514
  repo,
1515
1515
  path: body.path
@@ -1522,7 +1522,7 @@ var server = createServer2(async (req, res) => {
1522
1522
  event_type: "correction",
1523
1523
  memory_ids: ids,
1524
1524
  request: { text: body.text },
1525
- result: { created: ids }
1525
+ result: { created: ids, pending_task_id: pendingTaskId ?? null }
1526
1526
  });
1527
1527
  for (const id of ids) {
1528
1528
  safeIngestMemory(id);
@@ -1532,7 +1532,7 @@ var server = createServer2(async (req, res) => {
1532
1532
  source: "correction"
1533
1533
  });
1534
1534
  }
1535
- return send(res, 200, { created: ids });
1535
+ return send(res, 200, { created: ids, pending_task_id: pendingTaskId ?? null });
1536
1536
  }
1537
1537
  if (path === "/review" && method === "POST") {
1538
1538
  const body = await parseBody(req);