@edihasaj/recall 0.6.0 → 0.6.2
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-KAGIAOD7.js → chunk-32CTFWA6.js} +2 -2
- package/dist/chunk-32CTFWA6.js.map +1 -0
- package/dist/{chunk-E4HJDGCW.js → chunk-4YT7G3OS.js} +2 -2
- package/dist/{chunk-7XCLKPJ3.js → chunk-TL3Z6RE6.js} +3 -3
- package/dist/{chunk-MJ4GGBTL.js → chunk-VDTKP3HO.js} +3 -3
- package/dist/{cleanup-MYSQ44EP.js → cleanup-YQHZX2KZ.js} +2 -2
- package/dist/cli.js +9 -9
- package/dist/daemon.js +8 -5
- package/dist/daemon.js.map +1 -1
- package/dist/{dispatcher-SUUX5AX6.js → dispatcher-THKOANTR.js} +2 -2
- package/dist/mcp.js +3 -3
- package/dist/{tasks-GSQUHD4F.js → tasks-4YUCCXEG.js} +2 -2
- package/package.json +1 -1
- package/dist/chunk-KAGIAOD7.js.map +0 -1
- /package/dist/{chunk-E4HJDGCW.js.map → chunk-4YT7G3OS.js.map} +0 -0
- /package/dist/{chunk-7XCLKPJ3.js.map → chunk-TL3Z6RE6.js.map} +0 -0
- /package/dist/{chunk-MJ4GGBTL.js.map → chunk-VDTKP3HO.js.map} +0 -0
- /package/dist/{cleanup-MYSQ44EP.js.map → cleanup-YQHZX2KZ.js.map} +0 -0
- /package/dist/{dispatcher-SUUX5AX6.js.map → dispatcher-THKOANTR.js.map} +0 -0
- /package/dist/{tasks-GSQUHD4F.js.map → tasks-4YUCCXEG.js.map} +0 -0
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
seedScannedConfidence,
|
|
31
31
|
statusFromConfidence,
|
|
32
32
|
tagActivitySource
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-32CTFWA6.js";
|
|
34
34
|
import {
|
|
35
35
|
activityEvents,
|
|
36
36
|
approvalRequests,
|
|
@@ -2980,4 +2980,4 @@ export {
|
|
|
2980
2980
|
signalOutcomeFallback,
|
|
2981
2981
|
sessionEndFallback
|
|
2982
2982
|
};
|
|
2983
|
-
//# sourceMappingURL=chunk-
|
|
2983
|
+
//# sourceMappingURL=chunk-4YT7G3OS.js.map
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
signalOutcomeFallback,
|
|
16
16
|
startSessionLifecycle,
|
|
17
17
|
toolCallTouchesMemory
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-4YT7G3OS.js";
|
|
19
19
|
import {
|
|
20
20
|
detectCorrections,
|
|
21
21
|
hookCallDedupeKey,
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
peekTasks,
|
|
25
25
|
queryMemories,
|
|
26
26
|
tagActivitySource
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-32CTFWA6.js";
|
|
28
28
|
import {
|
|
29
29
|
hookCalls
|
|
30
30
|
} from "./chunk-A6XEULA4.js";
|
|
@@ -967,4 +967,4 @@ export {
|
|
|
967
967
|
readCodexSessionEndInputFromStdin,
|
|
968
968
|
dispatchCodexNotify
|
|
969
969
|
};
|
|
970
|
-
//# sourceMappingURL=chunk-
|
|
970
|
+
//# sourceMappingURL=chunk-TL3Z6RE6.js.map
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
scanAndStore,
|
|
22
22
|
sessionEndFallback,
|
|
23
23
|
signalOutcomeFallback
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-4YT7G3OS.js";
|
|
25
25
|
import {
|
|
26
26
|
DEFAULT_LEASE_SECONDS,
|
|
27
27
|
TaskClaimConflictError,
|
|
@@ -48,7 +48,7 @@ import {
|
|
|
48
48
|
rollbackMemory,
|
|
49
49
|
submitTask,
|
|
50
50
|
tagActivitySource
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-32CTFWA6.js";
|
|
52
52
|
|
|
53
53
|
// src/mcp/factory.ts
|
|
54
54
|
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
@@ -950,4 +950,4 @@ function createRecallMcpServer(db = initDb()) {
|
|
|
950
950
|
export {
|
|
951
951
|
createRecallMcpServer
|
|
952
952
|
};
|
|
953
|
-
//# sourceMappingURL=chunk-
|
|
953
|
+
//# sourceMappingURL=chunk-VDTKP3HO.js.map
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
qualityReasons,
|
|
10
10
|
revertCleanupRun,
|
|
11
11
|
runDeterministicCleanup
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-32CTFWA6.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-
|
|
28
|
+
//# sourceMappingURL=cleanup-YQHZX2KZ.js.map
|
package/dist/cli.js
CHANGED
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
readCodexSessionStartInputFromStdin,
|
|
23
23
|
readCodexToolInputFromStdin,
|
|
24
24
|
restoreBackup
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-TL3Z6RE6.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-
|
|
64
|
+
} from "./chunk-4YT7G3OS.js";
|
|
65
65
|
import {
|
|
66
66
|
autoResolveContradictions,
|
|
67
67
|
bootstrapEmbeddings,
|
|
@@ -92,7 +92,7 @@ import {
|
|
|
92
92
|
resolveContradiction,
|
|
93
93
|
rollbackMemory,
|
|
94
94
|
verifyEmbeddings
|
|
95
|
-
} from "./chunk-
|
|
95
|
+
} from "./chunk-32CTFWA6.js";
|
|
96
96
|
import {
|
|
97
97
|
memories,
|
|
98
98
|
syncState
|
|
@@ -3210,7 +3210,7 @@ daemonCmd.command("uninstall").description("Remove the service").option("--label
|
|
|
3210
3210
|
});
|
|
3211
3211
|
var maintenanceCmd = program.command("maintenance").description("Inspect and manage the delegated maintenance task queue");
|
|
3212
3212
|
maintenanceCmd.command("stats").description("Show backlog counts, completion stats, and mean latency").action(async () => {
|
|
3213
|
-
const { getTaskStats } = await import("./tasks-
|
|
3213
|
+
const { getTaskStats } = await import("./tasks-4YUCCXEG.js");
|
|
3214
3214
|
const db = initDb();
|
|
3215
3215
|
const stats = getTaskStats(db);
|
|
3216
3216
|
console.log(`Total tasks: ${stats.total}`);
|
|
@@ -3236,7 +3236,7 @@ maintenanceCmd.command("stats").description("Show backlog counts, completion sta
|
|
|
3236
3236
|
}
|
|
3237
3237
|
});
|
|
3238
3238
|
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-
|
|
3239
|
+
const { listTasks } = await import("./tasks-4YUCCXEG.js");
|
|
3240
3240
|
const db = initDb();
|
|
3241
3241
|
const tasks = listTasks(db, {
|
|
3242
3242
|
status: opts.status,
|
|
@@ -3258,7 +3258,7 @@ maintenanceCmd.command("list").description("List tasks (default: pending)").opti
|
|
|
3258
3258
|
}
|
|
3259
3259
|
});
|
|
3260
3260
|
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-
|
|
3261
|
+
const { deleteTask, listTasks } = await import("./tasks-4YUCCXEG.js");
|
|
3262
3262
|
const db = initDb();
|
|
3263
3263
|
const all = listTasks(db, { limit: 1e4 });
|
|
3264
3264
|
const matches = all.filter((t) => t.id === taskIdArg || t.id.startsWith(taskIdArg));
|
|
@@ -3364,8 +3364,8 @@ credentialsCmd.command("clear").description("Remove provider credentials from th
|
|
|
3364
3364
|
else console.log(`No ${provider} credentials found in Keychain.`);
|
|
3365
3365
|
});
|
|
3366
3366
|
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-
|
|
3368
|
-
const { listTasks } = await import("./tasks-
|
|
3367
|
+
const { dispatchPendingTasks, formatDispatchReport, buildPrompt } = await import("./dispatcher-THKOANTR.js");
|
|
3368
|
+
const { listTasks } = await import("./tasks-4YUCCXEG.js");
|
|
3369
3369
|
const db = initDb();
|
|
3370
3370
|
if (opts.preview) {
|
|
3371
3371
|
const pending = listTasks(db, {
|
|
@@ -3422,7 +3422,7 @@ ${p.prompt.max_output_tokens}
|
|
|
3422
3422
|
console.log(formatDispatchReport(report));
|
|
3423
3423
|
});
|
|
3424
3424
|
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-
|
|
3425
|
+
const { runDeterministicCleanup, formatCleanupReport, revertCleanupRun, listCleanupRuns } = await import("./cleanup-YQHZX2KZ.js");
|
|
3426
3426
|
const db = initDb();
|
|
3427
3427
|
if (opts.list) {
|
|
3428
3428
|
const runs = listCleanupRuns(db);
|
package/dist/daemon.js
CHANGED
|
@@ -9,10 +9,10 @@ import {
|
|
|
9
9
|
handleSessionEndHook,
|
|
10
10
|
handleSessionStartHook,
|
|
11
11
|
handleToolHook
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-TL3Z6RE6.js";
|
|
13
13
|
import {
|
|
14
14
|
createRecallMcpServer
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-VDTKP3HO.js";
|
|
16
16
|
import {
|
|
17
17
|
bootstrapHistoryEmbeddings,
|
|
18
18
|
compileContext,
|
|
@@ -53,7 +53,7 @@ import {
|
|
|
53
53
|
updateHistorySnippet,
|
|
54
54
|
verifyHistoryEmbeddings,
|
|
55
55
|
writeRepoContextArtifact
|
|
56
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-4YT7G3OS.js";
|
|
57
57
|
import {
|
|
58
58
|
DEFAULT_ENQUEUE_CONFIG,
|
|
59
59
|
autoResolveContradictions,
|
|
@@ -87,7 +87,7 @@ import {
|
|
|
87
87
|
runDeterministicCleanup,
|
|
88
88
|
statusFromConfidence,
|
|
89
89
|
verifyEmbeddings
|
|
90
|
-
} from "./chunk-
|
|
90
|
+
} from "./chunk-32CTFWA6.js";
|
|
91
91
|
import {
|
|
92
92
|
activityEvents,
|
|
93
93
|
feedbackEvents,
|
|
@@ -103,6 +103,7 @@ import "./chunk-4CV4JOE5.js";
|
|
|
103
103
|
|
|
104
104
|
// src/daemon.ts
|
|
105
105
|
import { createServer } from "http";
|
|
106
|
+
import { createRequire } from "module";
|
|
106
107
|
|
|
107
108
|
// src/maintenance/lifecycle.ts
|
|
108
109
|
import { statSync } from "fs";
|
|
@@ -634,6 +635,8 @@ function sendJsonRpcError(res, status, code, message) {
|
|
|
634
635
|
// src/daemon.ts
|
|
635
636
|
var db;
|
|
636
637
|
var PORT = parseInt(process.env.RECALL_PORT ?? "7890", 10);
|
|
638
|
+
var requireFromHere = createRequire(import.meta.url);
|
|
639
|
+
var pkg = requireFromHere("../package.json");
|
|
637
640
|
var maintenanceConfig = loadMaintenanceConfigFromEnv();
|
|
638
641
|
var maintenanceRunning = false;
|
|
639
642
|
var dispatcherConfig = {
|
|
@@ -827,7 +830,7 @@ var server = createServer(async (req, res) => {
|
|
|
827
830
|
if (path === "/health" && method === "GET") {
|
|
828
831
|
return send(res, 200, {
|
|
829
832
|
status: "ok",
|
|
830
|
-
version:
|
|
833
|
+
version: pkg.version,
|
|
831
834
|
embeddings: getEmbeddingModelInfo()
|
|
832
835
|
});
|
|
833
836
|
}
|