@edihasaj/recall 0.6.1 → 0.6.3

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.
@@ -9,7 +9,7 @@ import {
9
9
  qualityReasons,
10
10
  revertCleanupRun,
11
11
  runDeterministicCleanup
12
- } from "./chunk-32CTFWA6.js";
12
+ } from "./chunk-LFWG3CBM.js";
13
13
  import "./chunk-A6XEULA4.js";
14
14
  import "./chunk-DNFKAHS6.js";
15
15
  import "./chunk-4CV4JOE5.js";
@@ -25,4 +25,4 @@ export {
25
25
  revertCleanupRun,
26
26
  runDeterministicCleanup
27
27
  };
28
- //# sourceMappingURL=cleanup-YQHZX2KZ.js.map
28
+ //# sourceMappingURL=cleanup-JM3CGHUV.js.map
package/dist/cli.js CHANGED
@@ -22,7 +22,7 @@ import {
22
22
  readCodexSessionStartInputFromStdin,
23
23
  readCodexToolInputFromStdin,
24
24
  restoreBackup
25
- } from "./chunk-TL3Z6RE6.js";
25
+ } from "./chunk-4P3NKEIJ.js";
26
26
  import {
27
27
  RECALL_DB_USER_VERSION,
28
28
  compileContext,
@@ -61,7 +61,7 @@ import {
61
61
  startEvalSession,
62
62
  togglePolicy,
63
63
  writeRepoContextArtifact
64
- } from "./chunk-4YT7G3OS.js";
64
+ } from "./chunk-DSNYEUZW.js";
65
65
  import {
66
66
  autoResolveContradictions,
67
67
  bootstrapEmbeddings,
@@ -88,11 +88,12 @@ import {
88
88
  queryMemories,
89
89
  queueMemoryEmbeddingSync,
90
90
  rebuildEmbeddingIndex,
91
+ recordAudit,
91
92
  rejectMemory,
92
93
  resolveContradiction,
93
94
  rollbackMemory,
94
95
  verifyEmbeddings
95
- } from "./chunk-32CTFWA6.js";
96
+ } from "./chunk-LFWG3CBM.js";
96
97
  import {
97
98
  memories,
98
99
  syncState
@@ -2551,7 +2552,18 @@ program.command("reject").description("Reject a memory (never inject again)").ar
2551
2552
  console.error(`Memory not found: ${idPrefix}`);
2552
2553
  process.exit(1);
2553
2554
  }
2555
+ const before = JSON.stringify(mem);
2554
2556
  rejectMemory(db, mem.id);
2557
+ const after = getMemory(db, mem.id);
2558
+ recordAudit(
2559
+ db,
2560
+ mem.id,
2561
+ "rejected",
2562
+ "cli",
2563
+ "manual reject",
2564
+ before,
2565
+ after ? JSON.stringify(after) : null
2566
+ );
2555
2567
  console.log(`Rejected: ${mem.id.slice(0, 8)}`);
2556
2568
  });
2557
2569
  program.command("compile").description("Compile active memories into injection pack").requiredOption("-r, --repo <repo>", "Repository name").option("-p, --path <path>", "File path for scoping").option("-q, --query <text>", "Optional query text for hybrid reranking").option("--include-candidates", "Allow strong candidate memories into hybrid ranking").option("-s, --session <id>", "Session ID").option("--threshold <n>", "Confidence threshold (default: dynamic from quality profile)").action(async (opts) => {
@@ -3210,7 +3222,7 @@ daemonCmd.command("uninstall").description("Remove the service").option("--label
3210
3222
  });
3211
3223
  var maintenanceCmd = program.command("maintenance").description("Inspect and manage the delegated maintenance task queue");
3212
3224
  maintenanceCmd.command("stats").description("Show backlog counts, completion stats, and mean latency").action(async () => {
3213
- const { getTaskStats } = await import("./tasks-4YUCCXEG.js");
3225
+ const { getTaskStats } = await import("./tasks-KHLJT7MP.js");
3214
3226
  const db = initDb();
3215
3227
  const stats = getTaskStats(db);
3216
3228
  console.log(`Total tasks: ${stats.total}`);
@@ -3236,7 +3248,7 @@ maintenanceCmd.command("stats").description("Show backlog counts, completion sta
3236
3248
  }
3237
3249
  });
3238
3250
  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) => {
3239
- const { listTasks } = await import("./tasks-4YUCCXEG.js");
3251
+ const { listTasks } = await import("./tasks-KHLJT7MP.js");
3240
3252
  const db = initDb();
3241
3253
  const tasks = listTasks(db, {
3242
3254
  status: opts.status,
@@ -3258,7 +3270,7 @@ maintenanceCmd.command("list").description("List tasks (default: pending)").opti
3258
3270
  }
3259
3271
  });
3260
3272
  maintenanceCmd.command("drop").description("Delete a task by id (or id prefix)").argument("<task-id>", "Task id or prefix").action(async (taskIdArg) => {
3261
- const { deleteTask, listTasks } = await import("./tasks-4YUCCXEG.js");
3273
+ const { deleteTask, listTasks } = await import("./tasks-KHLJT7MP.js");
3262
3274
  const db = initDb();
3263
3275
  const all = listTasks(db, { limit: 1e4 });
3264
3276
  const matches = all.filter((t) => t.id === taskIdArg || t.id.startsWith(taskIdArg));
@@ -3364,8 +3376,8 @@ credentialsCmd.command("clear").description("Remove provider credentials from th
3364
3376
  else console.log(`No ${provider} credentials found in Keychain.`);
3365
3377
  });
3366
3378
  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) => {
3367
- const { dispatchPendingTasks, formatDispatchReport, buildPrompt } = await import("./dispatcher-THKOANTR.js");
3368
- const { listTasks } = await import("./tasks-4YUCCXEG.js");
3379
+ const { dispatchPendingTasks, formatDispatchReport, buildPrompt } = await import("./dispatcher-C5S7SYY6.js");
3380
+ const { listTasks } = await import("./tasks-KHLJT7MP.js");
3369
3381
  const db = initDb();
3370
3382
  if (opts.preview) {
3371
3383
  const pending = listTasks(db, {
@@ -3422,7 +3434,7 @@ ${p.prompt.max_output_tokens}
3422
3434
  console.log(formatDispatchReport(report));
3423
3435
  });
3424
3436
  maintenanceCmd.command("cleanup").description("Run deterministic, LLM-free cleanup: exact-text dedupe, fragment rejection, repeat-correction promotion").option("--apply", "Persist changes (default is dry-run)").option("--only <action>", "Restrict to one action: dedupe_exact_merge|reject_fragment_candidate|promote_repeat_correction").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) => {
3425
- const { runDeterministicCleanup, formatCleanupReport, revertCleanupRun, listCleanupRuns } = await import("./cleanup-YQHZX2KZ.js");
3437
+ const { runDeterministicCleanup, formatCleanupReport, revertCleanupRun, listCleanupRuns } = await import("./cleanup-JM3CGHUV.js");
3426
3438
  const db = initDb();
3427
3439
  if (opts.list) {
3428
3440
  const runs = listCleanupRuns(db);