@edihasaj/recall 1.0.3 → 1.0.5

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.
@@ -26,7 +26,7 @@ import {
26
26
  scanAndStore,
27
27
  sessionEndFallback,
28
28
  signalOutcomeFallback
29
- } from "./chunk-2OYJ7ZZA.js";
29
+ } from "./chunk-YHNNSDCJ.js";
30
30
  import {
31
31
  DEFAULT_LEASE_SECONDS,
32
32
  TaskClaimConflictError,
@@ -47,7 +47,7 @@ import {
47
47
  releaseTask,
48
48
  rollbackMemory,
49
49
  submitTask
50
- } from "./chunk-EGAWRS37.js";
50
+ } from "./chunk-4LE3UXSJ.js";
51
51
  import {
52
52
  recordCompletionUseValueEventsSemantic
53
53
  } from "./chunk-GJKKJYFT.js";
@@ -1197,4 +1197,4 @@ function createRecallMcpServer(db = initDb()) {
1197
1197
  export {
1198
1198
  createRecallMcpServer
1199
1199
  };
1200
- //# sourceMappingURL=chunk-IPUK5THZ.js.map
1200
+ //# sourceMappingURL=chunk-57YMI65K.js.map
@@ -11,14 +11,14 @@ import {
11
11
  listInjectedHistoryIdsForSession,
12
12
  signalOutcomeFallback,
13
13
  startSessionLifecycle
14
- } from "./chunk-2OYJ7ZZA.js";
14
+ } from "./chunk-YHNNSDCJ.js";
15
15
  import {
16
16
  detectCorrections,
17
17
  isHighRiskRule,
18
18
  isTriggerTemplateRule,
19
19
  peekTasks,
20
20
  redactSensitiveText
21
- } from "./chunk-EGAWRS37.js";
21
+ } from "./chunk-4LE3UXSJ.js";
22
22
  import {
23
23
  detectAndRecordRetrievalMissesSemantic,
24
24
  listInjectedMemoryIdsForSession,
@@ -1167,4 +1167,4 @@ export {
1167
1167
  readCodexSessionEndInputFromStdin,
1168
1168
  dispatchCodexNotify
1169
1169
  };
1170
- //# sourceMappingURL=chunk-LOJTYQ4R.js.map
1170
+ //# sourceMappingURL=chunk-NKOF7N43.js.map
@@ -6,7 +6,7 @@ import {
6
6
  recordAudit,
7
7
  redactSensitiveValue,
8
8
  seedScannedConfidence
9
- } from "./chunk-EGAWRS37.js";
9
+ } from "./chunk-4LE3UXSJ.js";
10
10
  import {
11
11
  recordInjectionValueEvents,
12
12
  recordMemoryInjections,
@@ -6627,4 +6627,4 @@ export {
6627
6627
  pruneMemories,
6628
6628
  formatPruneReport
6629
6629
  };
6630
- //# sourceMappingURL=chunk-2OYJ7ZZA.js.map
6630
+ //# sourceMappingURL=chunk-YHNNSDCJ.js.map
@@ -12,7 +12,7 @@ import {
12
12
  qualityReasons,
13
13
  revertCleanupRun,
14
14
  runDeterministicCleanup
15
- } from "./chunk-EGAWRS37.js";
15
+ } from "./chunk-4LE3UXSJ.js";
16
16
  import "./chunk-FHEH6QDU.js";
17
17
  import "./chunk-CW3XJDH7.js";
18
18
  import "./chunk-4PK3YODK.js";
@@ -36,4 +36,4 @@ export {
36
36
  revertCleanupRun,
37
37
  runDeterministicCleanup
38
38
  };
39
- //# sourceMappingURL=cleanup-5XC6ZAEL.js.map
39
+ //# sourceMappingURL=cleanup-35DR4UG4.js.map
package/dist/cli.js CHANGED
@@ -23,7 +23,7 @@ import {
23
23
  readCodexSessionStartInputFromStdin,
24
24
  readCodexToolInputFromStdin,
25
25
  restoreBackup
26
- } from "./chunk-LOJTYQ4R.js";
26
+ } from "./chunk-NKOF7N43.js";
27
27
  import {
28
28
  RECALL_DB_USER_VERSION,
29
29
  closeDb,
@@ -69,7 +69,7 @@ import {
69
69
  summarizeValueRetrievalEval,
70
70
  togglePolicy,
71
71
  writeRepoContextArtifact
72
- } from "./chunk-2OYJ7ZZA.js";
72
+ } from "./chunk-YHNNSDCJ.js";
73
73
  import {
74
74
  autoResolveContradictions,
75
75
  computeAllHealthScores,
@@ -87,7 +87,7 @@ import {
87
87
  recordAudit,
88
88
  resolveContradiction,
89
89
  rollbackMemory
90
- } from "./chunk-EGAWRS37.js";
90
+ } from "./chunk-4LE3UXSJ.js";
91
91
  import "./chunk-GJKKJYFT.js";
92
92
  import "./chunk-FHEH6QDU.js";
93
93
  import "./chunk-CW3XJDH7.js";
@@ -4814,7 +4814,7 @@ graphCmd.command("query <query...>").description("Run graph-aware retrieval for
4814
4814
  });
4815
4815
  var maintenanceCmd = program.command("maintenance").description("Inspect and manage the delegated maintenance task queue");
4816
4816
  maintenanceCmd.command("stats").description("Show backlog counts, completion stats, and mean latency").action(async () => {
4817
- const { getTaskStats } = await import("./tasks-RAKTJXNN.js");
4817
+ const { getTaskStats } = await import("./tasks-ETMSGUUE.js");
4818
4818
  const db = initDb();
4819
4819
  const stats = getTaskStats(db);
4820
4820
  console.log(`Total tasks: ${stats.total}`);
@@ -4840,7 +4840,7 @@ maintenanceCmd.command("stats").description("Show backlog counts, completion sta
4840
4840
  }
4841
4841
  });
4842
4842
  maintenanceCmd.command("list").description("List tasks (default: pending)").option("-s, --status <status>", "pending|claimed|completed|abandoned", "pending").option("-k, --kind <kind>", "Filter by kind").option("-r, --repo <repo>", "Filter by repo").option("-n, --limit <n>", "Max entries", "20").action(async (opts) => {
4843
- const { listTasks } = await import("./tasks-RAKTJXNN.js");
4843
+ const { listTasks } = await import("./tasks-ETMSGUUE.js");
4844
4844
  const db = initDb();
4845
4845
  const tasks = listTasks(db, {
4846
4846
  status: opts.status,
@@ -4862,7 +4862,7 @@ maintenanceCmd.command("list").description("List tasks (default: pending)").opti
4862
4862
  }
4863
4863
  });
4864
4864
  maintenanceCmd.command("drop").description("Delete a task by id (or id prefix)").argument("<task-id>", "Task id or prefix").action(async (taskIdArg) => {
4865
- const { deleteTask, listTasks } = await import("./tasks-RAKTJXNN.js");
4865
+ const { deleteTask, listTasks } = await import("./tasks-ETMSGUUE.js");
4866
4866
  const db = initDb();
4867
4867
  const all = listTasks(db, { limit: 1e4 });
4868
4868
  const matches = all.filter((t) => t.id === taskIdArg || t.id.startsWith(taskIdArg));
@@ -4968,8 +4968,8 @@ credentialsCmd.command("clear").description("Remove provider credentials from th
4968
4968
  else console.log(`No ${provider} credentials found in Keychain.`);
4969
4969
  });
4970
4970
  maintenanceCmd.command("dispatch").description("Run the daemon-owned dispatcher once against pending maintenance tasks (requires a configured LLM provider)").option("--provider <provider>", "openai|anthropic|azure-openai (defaults to whichever is configured)").option("--model <model>", "Model override").option("--kind <kind>", "Restrict to a single task kind (repeatable)", (value, acc = []) => [...acc, value], []).option("--repo <repo>", "Restrict to a single repo").option("--max <n>", "Max tasks to run this round", "5").option("--dry-run", "Show which tasks would be dispatched; do not call the LLM").option("--preview", "Show the actual prompts that would be sent (no provider needed; no LLM call)").option("--json", "Emit the raw JSON report").action(async (opts) => {
4971
- const { dispatchPendingTasks, formatDispatchReport, buildPrompt } = await import("./dispatcher-EUWRNU7T.js");
4972
- const { listTasks } = await import("./tasks-RAKTJXNN.js");
4971
+ const { dispatchPendingTasks, formatDispatchReport, buildPrompt } = await import("./dispatcher-ZFATT7XU.js");
4972
+ const { listTasks } = await import("./tasks-ETMSGUUE.js");
4973
4973
  const db = initDb();
4974
4974
  if (opts.preview) {
4975
4975
  const pending = listTasks(db, {
@@ -5026,7 +5026,7 @@ ${p.prompt.max_output_tokens}
5026
5026
  console.log(formatDispatchReport(report));
5027
5027
  });
5028
5028
  maintenanceCmd.command("cleanup").description("Run deterministic, LLM-free cleanup for duplicate, low-quality, stale, and mis-scoped memories").option("--apply", "Persist changes (default is dry-run)").option("--only <action>", "Restrict to one action: dedupe_exact_merge|reject_fragment_candidate|promote_repeat_correction|suppress_unproductive_command|globalize_cross_repo|reject_test_fixture_repo|reject_invalid_scope|reject_generic_scanned_tooling").option("--revert <run-id>", "Revert a previous cleanup run (id or 8-char prefix)").option("--list", "List recent cleanup runs").option("--json", "Emit the raw JSON report").action(async (opts) => {
5029
- const { runDeterministicCleanup, formatCleanupReport, revertCleanupRun, listCleanupRuns } = await import("./cleanup-5XC6ZAEL.js");
5029
+ const { runDeterministicCleanup, formatCleanupReport, revertCleanupRun, listCleanupRuns } = await import("./cleanup-35DR4UG4.js");
5030
5030
  const db = initDb();
5031
5031
  if (opts.list) {
5032
5032
  const runs = listCleanupRuns(db);
package/dist/daemon.js CHANGED
@@ -10,10 +10,10 @@ import {
10
10
  handleSessionEndHook,
11
11
  handleSessionStartHook,
12
12
  handleToolHook
13
- } from "./chunk-LOJTYQ4R.js";
13
+ } from "./chunk-NKOF7N43.js";
14
14
  import {
15
15
  createRecallMcpServer
16
- } from "./chunk-IPUK5THZ.js";
16
+ } from "./chunk-57YMI65K.js";
17
17
  import {
18
18
  graphQuery
19
19
  } from "./chunk-MZWZKD5S.js";
@@ -56,7 +56,7 @@ import {
56
56
  updateHistorySnippet,
57
57
  verifyHistoryEmbeddings,
58
58
  writeRepoContextArtifact
59
- } from "./chunk-2OYJ7ZZA.js";
59
+ } from "./chunk-YHNNSDCJ.js";
60
60
  import {
61
61
  DEFAULT_ENQUEUE_CONFIG,
62
62
  autoResolveContradictions,
@@ -78,7 +78,7 @@ import {
78
78
  resolveContradiction,
79
79
  rollbackMemory,
80
80
  runDeterministicCleanup
81
- } from "./chunk-EGAWRS37.js";
81
+ } from "./chunk-4LE3UXSJ.js";
82
82
  import "./chunk-GJKKJYFT.js";
83
83
  import "./chunk-FHEH6QDU.js";
84
84
  import "./chunk-CW3XJDH7.js";
@@ -1021,6 +1021,12 @@ function formatMaintenanceSummary(result) {
1021
1021
  }
1022
1022
 
1023
1023
  // src/maintenance/dispatch-scheduling.ts
1024
+ var DISPATCHER_STARTUP_DELAY_MS = 3e3;
1025
+ function scheduleDispatcherStartupWake(dispatch, delayMs = DISPATCHER_STARTUP_DELAY_MS) {
1026
+ const timer = setTimeout(dispatch, delayMs);
1027
+ timer.unref?.();
1028
+ return timer;
1029
+ }
1024
1030
  function maintenanceCreatedDispatchableTasks(result) {
1025
1031
  return result.maintenance_tasks_enqueued > result.maintenance_tasks_dropped + result.maintenance_tasks_invalid;
1026
1032
  }
@@ -1267,6 +1273,7 @@ function wakeDispatcherDebounced() {
1267
1273
  }
1268
1274
  function scheduleDispatcherLoop() {
1269
1275
  if (!dispatcherConfig.enabled) return;
1276
+ scheduleDispatcherStartupWake(() => void runDispatcherOnce());
1270
1277
  const timer = setInterval(() => {
1271
1278
  void runDispatcherOnce();
1272
1279
  }, Math.max(60, dispatcherConfig.intervalSeconds) * 1e3);