@edihasaj/recall 1.4.20 → 1.4.22

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.
Files changed (74) hide show
  1. package/README.md +6 -1
  2. package/dist/{chunk-Y4N76V2C.js → chunk-6OU4ABZY.js} +3 -3
  3. package/dist/{chunk-FEB2UGWX.js → chunk-BM3DGSJK.js} +2 -2
  4. package/dist/{chunk-XC4TMOGJ.js → chunk-CFEJ4RKR.js} +7 -7
  5. package/dist/{chunk-XGAOB7P4.js → chunk-CQMEHENR.js} +4 -4
  6. package/dist/{chunk-YRWMWNZZ.js → chunk-IKNDUOFO.js} +2 -2
  7. package/dist/{chunk-YRWMWNZZ.js.map → chunk-IKNDUOFO.js.map} +1 -1
  8. package/dist/{chunk-6LCNOVIO.js → chunk-JJQS4DFI.js} +3 -3
  9. package/dist/{chunk-42CRQMBI.js → chunk-MTV2LDYL.js} +2 -2
  10. package/dist/{chunk-ZRVSC273.js → chunk-MVTT3CM7.js} +130 -241
  11. package/dist/chunk-MVTT3CM7.js.map +1 -0
  12. package/dist/{chunk-7S5Q7JDT.js → chunk-NGYQ2AHM.js} +5 -5
  13. package/dist/{chunk-YLTZRBIA.js → chunk-RXXZNFDW.js} +9 -9
  14. package/dist/{chunk-HSZ65Q32.js → chunk-SQDYE2XF.js} +2 -2
  15. package/dist/{chunk-F5MDO6AR.js → chunk-TWRA4NBS.js} +7 -7
  16. package/dist/{chunk-N3ICISZV.js → chunk-VMH7WZX3.js} +212 -104
  17. package/dist/chunk-VMH7WZX3.js.map +1 -0
  18. package/dist/{chunk-GGUZPKZK.js → chunk-WQ5OB4H7.js} +3 -3
  19. package/dist/{chunk-Q5V6LJ5C.js → chunk-XRIZREO2.js} +2 -2
  20. package/dist/{chunk-UNIPRMOF.js → chunk-Y34CARBA.js} +2 -2
  21. package/dist/{chunk-TB7AEONN.js → chunk-YJ7NZ5IH.js} +9 -9
  22. package/dist/{chunk-VC2HZL56.js → chunk-ZQSOISUW.js} +5 -5
  23. package/dist/{cleanup-PRQIDSU4.js → cleanup-RNEO32SK.js} +11 -11
  24. package/dist/cli.js +43 -43
  25. package/dist/{codex-trust-K2F5CYSK.js → codex-trust-HRTNEFS5.js} +4 -4
  26. package/dist/daemon.js +21 -21
  27. package/dist/dispatcher-24X5DZXS.js +22 -0
  28. package/dist/{embeddings-KFMME77A.js → embeddings-CFCBZWBY.js} +5 -5
  29. package/dist/ingest-C6YEXHX4.js +20 -0
  30. package/dist/{keychain-CLT7BX3Q.js → keychain-WFBK2BII.js} +3 -3
  31. package/dist/mcp.js +15 -15
  32. package/dist/{memory-value-IA436OVQ.js → memory-value-NYBR5UUH.js} +11 -11
  33. package/dist/{provenance-2RKS6F3I.js → provenance-IH5BOM24.js} +9 -9
  34. package/dist/quality-LDNULMO2.js +25 -0
  35. package/dist/retrieval-62Y72KZG.js +15 -0
  36. package/dist/{store-JJ7YG7C2.js → store-EENGY24O.js} +4 -4
  37. package/dist/sync-server.js +2 -2
  38. package/dist/{tasks-DPGV2IIR.js → tasks-4CUEZTQM.js} +11 -11
  39. package/dist/{usage-JBUXGC3Q.js → usage-TBLMK643.js} +4 -4
  40. package/package.json +1 -1
  41. package/dist/chunk-N3ICISZV.js.map +0 -1
  42. package/dist/chunk-ZRVSC273.js.map +0 -1
  43. package/dist/dispatcher-FHN53HMY.js +0 -22
  44. package/dist/ingest-HYS4D73G.js +0 -20
  45. package/dist/quality-TYHATILR.js +0 -25
  46. package/dist/retrieval-HNUCJ45Z.js +0 -15
  47. /package/dist/{chunk-Y4N76V2C.js.map → chunk-6OU4ABZY.js.map} +0 -0
  48. /package/dist/{chunk-FEB2UGWX.js.map → chunk-BM3DGSJK.js.map} +0 -0
  49. /package/dist/{chunk-XC4TMOGJ.js.map → chunk-CFEJ4RKR.js.map} +0 -0
  50. /package/dist/{chunk-XGAOB7P4.js.map → chunk-CQMEHENR.js.map} +0 -0
  51. /package/dist/{chunk-6LCNOVIO.js.map → chunk-JJQS4DFI.js.map} +0 -0
  52. /package/dist/{chunk-42CRQMBI.js.map → chunk-MTV2LDYL.js.map} +0 -0
  53. /package/dist/{chunk-7S5Q7JDT.js.map → chunk-NGYQ2AHM.js.map} +0 -0
  54. /package/dist/{chunk-YLTZRBIA.js.map → chunk-RXXZNFDW.js.map} +0 -0
  55. /package/dist/{chunk-HSZ65Q32.js.map → chunk-SQDYE2XF.js.map} +0 -0
  56. /package/dist/{chunk-F5MDO6AR.js.map → chunk-TWRA4NBS.js.map} +0 -0
  57. /package/dist/{chunk-GGUZPKZK.js.map → chunk-WQ5OB4H7.js.map} +0 -0
  58. /package/dist/{chunk-Q5V6LJ5C.js.map → chunk-XRIZREO2.js.map} +0 -0
  59. /package/dist/{chunk-UNIPRMOF.js.map → chunk-Y34CARBA.js.map} +0 -0
  60. /package/dist/{chunk-TB7AEONN.js.map → chunk-YJ7NZ5IH.js.map} +0 -0
  61. /package/dist/{chunk-VC2HZL56.js.map → chunk-ZQSOISUW.js.map} +0 -0
  62. /package/dist/{cleanup-PRQIDSU4.js.map → cleanup-RNEO32SK.js.map} +0 -0
  63. /package/dist/{codex-trust-K2F5CYSK.js.map → codex-trust-HRTNEFS5.js.map} +0 -0
  64. /package/dist/{dispatcher-FHN53HMY.js.map → dispatcher-24X5DZXS.js.map} +0 -0
  65. /package/dist/{embeddings-KFMME77A.js.map → embeddings-CFCBZWBY.js.map} +0 -0
  66. /package/dist/{ingest-HYS4D73G.js.map → ingest-C6YEXHX4.js.map} +0 -0
  67. /package/dist/{keychain-CLT7BX3Q.js.map → keychain-WFBK2BII.js.map} +0 -0
  68. /package/dist/{memory-value-IA436OVQ.js.map → memory-value-NYBR5UUH.js.map} +0 -0
  69. /package/dist/{provenance-2RKS6F3I.js.map → provenance-IH5BOM24.js.map} +0 -0
  70. /package/dist/{quality-TYHATILR.js.map → quality-LDNULMO2.js.map} +0 -0
  71. /package/dist/{retrieval-HNUCJ45Z.js.map → retrieval-62Y72KZG.js.map} +0 -0
  72. /package/dist/{store-JJ7YG7C2.js.map → store-EENGY24O.js.map} +0 -0
  73. /package/dist/{tasks-DPGV2IIR.js.map → tasks-4CUEZTQM.js.map} +0 -0
  74. /package/dist/{usage-JBUXGC3Q.js.map → usage-TBLMK643.js.map} +0 -0
@@ -3,7 +3,7 @@ import {
3
3
  hasCommand,
4
4
  resolveCodexHomes,
5
5
  resolveUserHomeDir
6
- } from "./chunk-6LCNOVIO.js";
6
+ } from "./chunk-JJQS4DFI.js";
7
7
  import {
8
8
  RECALL_DB_USER_VERSION,
9
9
  captureCorrectionFallback,
@@ -17,9 +17,10 @@ import {
17
17
  initDb,
18
18
  listActivityEvents,
19
19
  listInjectedHistoryIdsForSession,
20
+ resolveLocalRepoPath,
20
21
  signalOutcomeFallback,
21
22
  startSessionLifecycle
22
- } from "./chunk-ZRVSC273.js";
23
+ } from "./chunk-MVTT3CM7.js";
23
24
  import {
24
25
  detectCorrections,
25
26
  isHighRiskRule,
@@ -27,7 +28,7 @@ import {
27
28
  isWorkspaceRootAlias,
28
29
  peekTasks,
29
30
  redactSensitiveText
30
- } from "./chunk-YLTZRBIA.js";
31
+ } from "./chunk-RXXZNFDW.js";
31
32
  import {
32
33
  detectAndRecordRetrievalMissesSemantic,
33
34
  listInjectedMemoryIdsForSession,
@@ -35,10 +36,10 @@ import {
35
36
  pathMatchesMemory,
36
37
  recordCompletionUseValueEventsSemantic,
37
38
  toolCallTouchesMemory
38
- } from "./chunk-F5MDO6AR.js";
39
+ } from "./chunk-TWRA4NBS.js";
39
40
  import {
40
41
  textMatches
41
- } from "./chunk-42CRQMBI.js";
42
+ } from "./chunk-MTV2LDYL.js";
42
43
  import {
43
44
  appendEvidence,
44
45
  createMemory,
@@ -47,44 +48,146 @@ import {
47
48
  queryMemories,
48
49
  recordAudit,
49
50
  rejectMemory
50
- } from "./chunk-XC4TMOGJ.js";
51
+ } from "./chunk-CFEJ4RKR.js";
51
52
  import {
52
53
  desc
53
- } from "./chunk-GGUZPKZK.js";
54
+ } from "./chunk-WQ5OB4H7.js";
54
55
  import {
55
56
  defineOwn,
56
57
  deleteOwn
57
- } from "./chunk-UNIPRMOF.js";
58
+ } from "./chunk-Y34CARBA.js";
58
59
  import {
59
60
  atomicWriteUtf8File,
60
61
  getEmbeddingModelInfo,
61
62
  readUtf8FileIfExists,
62
63
  tagActivitySource
63
- } from "./chunk-XGAOB7P4.js";
64
+ } from "./chunk-CQMEHENR.js";
64
65
  import {
65
66
  init_keychain,
66
67
  keychain_exports
67
- } from "./chunk-HSZ65Q32.js";
68
+ } from "./chunk-SQDYE2XF.js";
68
69
  import {
69
70
  activityEvents,
70
71
  and,
71
72
  eq,
72
73
  hookCalls,
73
74
  sql
74
- } from "./chunk-Q5V6LJ5C.js";
75
+ } from "./chunk-XRIZREO2.js";
75
76
  import {
76
77
  __toCommonJS,
77
78
  init_define_RECALL_BUILD_INFO
78
- } from "./chunk-YRWMWNZZ.js";
79
+ } from "./chunk-IKNDUOFO.js";
79
80
 
80
- // src/doctor/app-registrations.ts
81
+ // src/adapters/markdown.ts
81
82
  init_define_RECALL_BUILD_INFO();
83
+ function exportMarkdown(db, repo) {
84
+ const result = compileContext(db, { repo });
85
+ if (!result.text) {
86
+ return `# ${repo}
87
+
88
+ No active memories above confidence threshold.
89
+ `;
90
+ }
91
+ return result.text;
92
+ }
93
+ function exportClaude(db, repo) {
94
+ const result = compileContext(db, { repo });
95
+ if (!result.text) return "";
96
+ return `# CLAUDE.md \u2014 Auto-generated by Recall
97
+ # Do not edit manually. Run \`recall export -r ${repo} -f claude\` to regenerate.
98
+
99
+ ${result.text}`;
100
+ }
101
+ function exportCodex(db, repo) {
102
+ const result = compileContext(db, { repo });
103
+ if (!result.text) return "";
104
+ return `# AGENTS.md \u2014 Auto-generated by Recall
105
+ # Do not edit manually. Run \`recall export -r ${repo} -f codex\` to regenerate.
106
+
107
+ ${result.text}`;
108
+ }
109
+
110
+ // src/artifacts/context.ts
111
+ init_define_RECALL_BUILD_INFO();
112
+ import { mkdirSync } from "fs";
113
+ import { isAbsolute, join, resolve } from "path";
82
114
  import { execFileSync } from "child_process";
115
+ function getRepoContextArtifactPath(repoPath) {
116
+ return join(repoPath, ".recall", "context.md");
117
+ }
118
+ function renderRepoContextArtifact(db, repo) {
119
+ const compiled = exportMarkdown(db, repo).trimEnd();
120
+ const generatedAt = (/* @__PURE__ */ new Date()).toISOString();
121
+ return [
122
+ "<!-- Auto-generated by Recall. Do not edit manually. -->",
123
+ `<!-- Generated at: ${generatedAt} -->`,
124
+ "",
125
+ "# Recall Context",
126
+ "",
127
+ `Repo: \`${repo}\``,
128
+ "",
129
+ "Read this file before making repo-specific assumptions.",
130
+ "",
131
+ compiled,
132
+ ""
133
+ ].join("\n");
134
+ }
135
+ function writeRepoContextArtifact(db, input) {
136
+ const repo = input.repo ?? inferRepoSlugFromPath(input.repo_path) ?? null;
137
+ const repoPath = input.repo_path ?? (repo ? resolveLocalRepoPath(repo) : null);
138
+ if (!repo || !repoPath) {
139
+ return {
140
+ repo,
141
+ repo_path: repoPath,
142
+ output_path: null,
143
+ written: false
144
+ };
145
+ }
146
+ const outputPath = getRepoContextArtifactPath(repoPath);
147
+ mkdirSync(join(repoPath, ".recall"), { recursive: true });
148
+ ensureRepoContextExcluded(repoPath);
149
+ const content = renderRepoContextArtifact(db, repo);
150
+ const existing = readUtf8FileIfExists(outputPath);
151
+ if (existing !== content) {
152
+ atomicWriteUtf8File(outputPath, content);
153
+ }
154
+ return {
155
+ repo,
156
+ repo_path: repoPath,
157
+ output_path: outputPath,
158
+ written: existing !== content
159
+ };
160
+ }
161
+ function ensureRepoContextExcluded(repoPath) {
162
+ try {
163
+ const excludePath = execFileSync(
164
+ "git",
165
+ ["-C", repoPath, "rev-parse", "--git-path", "info/exclude"],
166
+ { encoding: "utf-8", stdio: ["ignore", "pipe", "ignore"] }
167
+ ).trim();
168
+ if (!excludePath) return;
169
+ const absoluteExcludePath = isAbsolute(excludePath) ? excludePath : resolve(repoPath, excludePath);
170
+ const existing = readUtf8FileIfExists(absoluteExcludePath) ?? "";
171
+ if (existing.split("\n").some((line) => line.trim() === ".recall/")) return;
172
+ const prefix = existing && !existing.endsWith("\n") ? "\n" : "";
173
+ atomicWriteUtf8File(
174
+ absoluteExcludePath,
175
+ `${existing}${prefix}# Recall generated context
176
+ .recall/
177
+ `
178
+ );
179
+ } catch {
180
+ }
181
+ }
182
+
183
+ // src/doctor/app-registrations.ts
184
+ init_define_RECALL_BUILD_INFO();
185
+ import { execFileSync as execFileSync2 } from "child_process";
83
186
  var INSTALLED_APP_PATH = "/Applications/Recall.app";
84
187
  var LSREGISTER = "/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister";
85
188
  function runLsregister(args) {
86
189
  try {
87
- return execFileSync(LSREGISTER, args, {
190
+ return execFileSync2(LSREGISTER, args, {
88
191
  encoding: "utf-8",
89
192
  stdio: ["ignore", "pipe", "ignore"],
90
193
  maxBuffer: 64 * 1024 * 1024
@@ -1262,10 +1365,10 @@ function parseCodexNotifyPayload(rawPayload) {
1262
1365
  return parsed;
1263
1366
  }
1264
1367
  function readStdinText() {
1265
- return new Promise((resolve5, reject) => {
1368
+ return new Promise((resolve6, reject) => {
1266
1369
  const chunks = [];
1267
1370
  process.stdin.on("data", (chunk) => chunks.push(Buffer.isBuffer(chunk) ? chunk : Buffer.from(chunk)));
1268
- process.stdin.on("end", () => resolve5(Buffer.concat(chunks).toString("utf-8")));
1371
+ process.stdin.on("end", () => resolve6(Buffer.concat(chunks).toString("utf-8")));
1269
1372
  process.stdin.on("error", reject);
1270
1373
  });
1271
1374
  }
@@ -1304,7 +1407,7 @@ import {
1304
1407
  copyFileSync,
1305
1408
  existsSync,
1306
1409
  lstatSync,
1307
- mkdirSync,
1410
+ mkdirSync as mkdirSync2,
1308
1411
  readFileSync,
1309
1412
  readdirSync,
1310
1413
  renameSync,
@@ -1313,7 +1416,7 @@ import {
1313
1416
  unlinkSync
1314
1417
  } from "fs";
1315
1418
  import { randomUUID as randomUUID2 } from "crypto";
1316
- import { basename, dirname, join } from "path";
1419
+ import { basename, dirname, join as join2 } from "path";
1317
1420
  import Database from "better-sqlite3";
1318
1421
  var DEFAULT_BACKUP_RETENTION = 2;
1319
1422
  var DEFAULT_INSTALL_BACKUP_RETENTION = 1;
@@ -1322,8 +1425,8 @@ var DAILY_BACKUP_RE = /^recall-(\d{4}-\d{2}-\d{2})\.db$/;
1322
1425
  var BACKUP_FILE_RE = /\.db(\.|$)/;
1323
1426
  var INSTALL_BACKUP_DIR_RE = /^published-\d+\.\d+\.\d+-/;
1324
1427
  function getBackupsDir(dbPath = getDbPath()) {
1325
- const dir = join(dirname(dbPath), "backups");
1326
- mkdirSync(dir, { recursive: true });
1428
+ const dir = join2(dirname(dbPath), "backups");
1429
+ mkdirSync2(dir, { recursive: true });
1327
1430
  return dir;
1328
1431
  }
1329
1432
  function todayStamp(now = /* @__PURE__ */ new Date()) {
@@ -1347,14 +1450,14 @@ function ensureDailyBackup(options = {}) {
1347
1450
  if (!existsSync(dbPath)) return result;
1348
1451
  const dir = getBackupsDir(dbPath);
1349
1452
  const stamp = todayStamp(options.now);
1350
- const target = join(dir, `recall-${stamp}.db`);
1453
+ const target = join2(dir, `recall-${stamp}.db`);
1351
1454
  if (!existsSync(target)) {
1352
1455
  atomicSnapshotFile(dbPath, target);
1353
1456
  result.created = target;
1354
1457
  } else if (!isRegularFileWithoutSymlink(target)) {
1355
1458
  throw new Error(`Refusing unsafe backup path: ${target}`);
1356
1459
  }
1357
- const all = readdirSync(dir).filter((name) => BACKUP_FILE_RE.test(name)).filter((name) => isRegularFileWithoutSymlink(join(dir, name))).map((name) => ({ name, path: join(dir, name), mtime: statSync(join(dir, name)).mtimeMs }));
1460
+ const all = readdirSync(dir).filter((name) => BACKUP_FILE_RE.test(name)).filter((name) => isRegularFileWithoutSymlink(join2(dir, name))).map((name) => ({ name, path: join2(dir, name), mtime: statSync(join2(dir, name)).mtimeMs }));
1358
1461
  const entries = all.filter((entry) => DAILY_BACKUP_RE.test(entry.name)).sort((a, b) => b.mtime - a.mtime);
1359
1462
  result.retained = entries.slice(0, retention).map((e) => e.path);
1360
1463
  for (const drop of entries.slice(retention)) {
@@ -1389,7 +1492,7 @@ function listBackups(dbPath = getDbPath()) {
1389
1492
  if (!existsSync(dir)) return [];
1390
1493
  const flat = readdirSync(dir).map((name) => {
1391
1494
  if (!BACKUP_FILE_RE.test(name)) return null;
1392
- const path = join(dir, name);
1495
+ const path = join2(dir, name);
1393
1496
  if (!isRegularFileWithoutSymlink(path)) return null;
1394
1497
  const stat = statSync(path);
1395
1498
  const match = name.match(DAILY_BACKUP_RE);
@@ -1410,8 +1513,8 @@ function listBackups(dbPath = getDbPath()) {
1410
1513
  }
1411
1514
  function listInstallBackupDirectories(dir) {
1412
1515
  return readdirSync(dir).filter((name) => INSTALL_BACKUP_DIR_RE.test(name)).map((name) => {
1413
- const directory = join(dir, name);
1414
- const path = join(directory, "recall.db");
1516
+ const directory = join2(dir, name);
1517
+ const path = join2(directory, "recall.db");
1415
1518
  if (!isDirectoryWithoutSymlink(directory) || !isRegularFileWithoutSymlink(path) || !isSqliteDatabase(path)) {
1416
1519
  return null;
1417
1520
  }
@@ -1431,7 +1534,7 @@ function restoreBackup(date, options = {}) {
1431
1534
  validateBackupDate(date);
1432
1535
  const dbPath = options.dbPath ?? getDbPath();
1433
1536
  const dir = getBackupsDir(dbPath);
1434
- const from = join(dir, `recall-${date}.db`);
1537
+ const from = join2(dir, `recall-${date}.db`);
1435
1538
  if (!existsSync(from)) {
1436
1539
  return { restored: false, from, to: dbPath };
1437
1540
  }
@@ -1474,7 +1577,7 @@ function atomicCopyFile(source, target) {
1474
1577
  if (!isRegularFileWithoutSymlink(source)) {
1475
1578
  throw new Error(`Refusing unsafe backup source: ${source}`);
1476
1579
  }
1477
- const temp = join(
1580
+ const temp = join2(
1478
1581
  dirname(target),
1479
1582
  `.${basename(target)}.${process.pid}.${randomUUID2()}.tmp`
1480
1583
  );
@@ -1501,7 +1604,7 @@ function atomicSnapshotFile(source, target) {
1501
1604
  if (!isRegularFileWithoutSymlink(source)) {
1502
1605
  throw new Error(`Refusing unsafe backup source: ${source}`);
1503
1606
  }
1504
- const temp = join(
1607
+ const temp = join2(
1505
1608
  dirname(target),
1506
1609
  `.${basename(target)}.${process.pid}.${randomUUID2()}.tmp`
1507
1610
  );
@@ -1536,15 +1639,15 @@ function isSqliteDatabase(path) {
1536
1639
  // src/doctor/report.ts
1537
1640
  init_define_RECALL_BUILD_INFO();
1538
1641
  import { existsSync as existsSync8, readFileSync as readFileSync6 } from "fs";
1539
- import { basename as basename2, join as join9 } from "path";
1642
+ import { basename as basename2, join as join10 } from "path";
1540
1643
  import Database3 from "better-sqlite3";
1541
1644
 
1542
1645
  // src/daemon/launchd.ts
1543
1646
  init_define_RECALL_BUILD_INFO();
1544
- import { chmodSync as chmodSync2, existsSync as existsSync2, mkdirSync as mkdirSync2, rmSync as rmSync2, writeFileSync } from "fs";
1647
+ import { chmodSync as chmodSync2, existsSync as existsSync2, mkdirSync as mkdirSync3, rmSync as rmSync2, writeFileSync } from "fs";
1545
1648
  import { homedir } from "os";
1546
- import { dirname as dirname2, join as join2, resolve } from "path";
1547
- import { execFileSync as execFileSync2 } from "child_process";
1649
+ import { dirname as dirname2, join as join3, resolve as resolve2 } from "path";
1650
+ import { execFileSync as execFileSync3 } from "child_process";
1548
1651
 
1549
1652
  // src/daemon/provider-env.ts
1550
1653
  init_define_RECALL_BUILD_INFO();
@@ -1582,14 +1685,14 @@ var DEFAULT_LABEL = "com.recall.daemon";
1582
1685
  function installLaunchAgent(opts = {}) {
1583
1686
  assertDarwin();
1584
1687
  const cfg = resolveConfig(opts);
1585
- mkdirSync2(dirname2(cfg.plistPath), { recursive: true });
1586
- mkdirSync2(dirname2(cfg.stdoutPath), { recursive: true });
1688
+ mkdirSync3(dirname2(cfg.plistPath), { recursive: true });
1689
+ mkdirSync3(dirname2(cfg.stdoutPath), { recursive: true });
1587
1690
  writeFileSync(cfg.plistPath, renderPlist(cfg), { mode: 384 });
1588
1691
  chmodSync2(cfg.plistPath, 384);
1589
1692
  tryRun("launchctl", ["bootout", domainTarget(), cfg.plistPath]);
1590
- execFileSync2("launchctl", ["bootstrap", domainTarget(), cfg.plistPath], stdioOpts());
1591
- execFileSync2("launchctl", ["enable", `${domainTarget()}/${cfg.label}`], stdioOpts());
1592
- execFileSync2("launchctl", ["kickstart", "-k", `${domainTarget()}/${cfg.label}`], stdioOpts());
1693
+ execFileSync3("launchctl", ["bootstrap", domainTarget(), cfg.plistPath], stdioOpts());
1694
+ execFileSync3("launchctl", ["enable", `${domainTarget()}/${cfg.label}`], stdioOpts());
1695
+ execFileSync3("launchctl", ["kickstart", "-k", `${domainTarget()}/${cfg.label}`], stdioOpts());
1593
1696
  return getLaunchAgentStatus(cfg.label);
1594
1697
  }
1595
1698
  function uninstallLaunchAgent(label = DEFAULT_LABEL) {
@@ -1606,9 +1709,9 @@ function startLaunchAgent(label = DEFAULT_LABEL) {
1606
1709
  if (!exists(cfg.plistPath)) {
1607
1710
  throw new Error(`LaunchAgent not installed: ${cfg.plistPath}`);
1608
1711
  }
1609
- execFileSync2("launchctl", ["enable", `${domainTarget()}/${cfg.label}`], stdioOpts());
1712
+ execFileSync3("launchctl", ["enable", `${domainTarget()}/${cfg.label}`], stdioOpts());
1610
1713
  tryRun("launchctl", ["bootstrap", domainTarget(), cfg.plistPath]);
1611
- execFileSync2("launchctl", ["kickstart", "-k", `${domainTarget()}/${cfg.label}`], stdioOpts());
1714
+ execFileSync3("launchctl", ["kickstart", "-k", `${domainTarget()}/${cfg.label}`], stdioOpts());
1612
1715
  return getLaunchAgentStatus(cfg.label);
1613
1716
  }
1614
1717
  function stopLaunchAgent(label = DEFAULT_LABEL) {
@@ -1675,15 +1778,15 @@ function resolveConfig(opts) {
1675
1778
  const home = homedir();
1676
1779
  const port = opts.port ?? parseInt(process.env.RECALL_PORT ?? "7890", 10);
1677
1780
  const maintenanceIntervalSeconds = opts.maintenanceIntervalSeconds ?? parseInt(process.env.RECALL_MAINTENANCE_INTERVAL_SECONDS ?? "3600", 10);
1678
- const dataDir = resolve(
1679
- opts.dataDir ?? process.env.RECALL_DATA_DIR ?? join2(home, ".recall")
1781
+ const dataDir = resolve2(
1782
+ opts.dataDir ?? process.env.RECALL_DATA_DIR ?? join3(home, ".recall")
1680
1783
  );
1681
- const nodePath = resolve(opts.nodePath ?? process.execPath);
1682
- const daemonScript = resolve(
1683
- opts.daemonScript ?? join2(process.cwd(), "dist", "daemon.js")
1784
+ const nodePath = resolve2(opts.nodePath ?? process.execPath);
1785
+ const daemonScript = resolve2(
1786
+ opts.daemonScript ?? join3(process.cwd(), "dist", "daemon.js")
1684
1787
  );
1685
- const plistPath = join2(home, "Library", "LaunchAgents", `${label}.plist`);
1686
- const logDir = join2(dataDir, "logs");
1788
+ const plistPath = join3(home, "Library", "LaunchAgents", `${label}.plist`);
1789
+ const logDir = join3(dataDir, "logs");
1687
1790
  const installed = readInstalledConfig(plistPath);
1688
1791
  return {
1689
1792
  label,
@@ -1693,8 +1796,8 @@ function resolveConfig(opts) {
1693
1796
  nodePath,
1694
1797
  daemonScript,
1695
1798
  plistPath,
1696
- stdoutPath: join2(logDir, "daemon.stdout.log"),
1697
- stderrPath: join2(logDir, "daemon.stderr.log"),
1799
+ stdoutPath: join3(logDir, "daemon.stdout.log"),
1800
+ stderrPath: join3(logDir, "daemon.stderr.log"),
1698
1801
  repoRoots: opts.repoRoots ?? process.env.RECALL_REPO_ROOTS,
1699
1802
  repoOverride: opts.repoOverride ?? process.env.RECALL_REPO_OVERRIDE ?? installed?.repoOverride,
1700
1803
  embeddingProvider: opts.embeddingProvider ?? process.env.RECALL_EMBEDDING_PROVIDER,
@@ -1764,14 +1867,14 @@ function extractState(output) {
1764
1867
  }
1765
1868
  function tryRun(cmd, args) {
1766
1869
  try {
1767
- execFileSync2(cmd, args, stdioOpts());
1870
+ execFileSync3(cmd, args, stdioOpts());
1768
1871
  } catch {
1769
1872
  return;
1770
1873
  }
1771
1874
  }
1772
1875
  function tryOutput(cmd, args) {
1773
1876
  try {
1774
- const output = execFileSync2(cmd, args, {
1877
+ const output = execFileSync3(cmd, args, {
1775
1878
  encoding: "utf8",
1776
1879
  stdio: ["ignore", "pipe", "pipe"]
1777
1880
  });
@@ -1786,7 +1889,7 @@ function tryOutput(cmd, args) {
1786
1889
  function readInstalledConfig(plistPath) {
1787
1890
  if (!exists(plistPath)) return null;
1788
1891
  try {
1789
- const raw = execFileSync2("plutil", ["-convert", "json", "-o", "-", plistPath], {
1892
+ const raw = execFileSync3("plutil", ["-convert", "json", "-o", "-", plistPath], {
1790
1893
  encoding: "utf8",
1791
1894
  stdio: ["ignore", "pipe", "pipe"]
1792
1895
  });
@@ -1831,17 +1934,17 @@ function assertDarwin() {
1831
1934
 
1832
1935
  // src/daemon/systemd.ts
1833
1936
  init_define_RECALL_BUILD_INFO();
1834
- import { chmodSync as chmodSync3, existsSync as existsSync3, mkdirSync as mkdirSync3, readFileSync as readFileSync2, rmSync as rmSync3, writeFileSync as writeFileSync2 } from "fs";
1937
+ import { chmodSync as chmodSync3, existsSync as existsSync3, mkdirSync as mkdirSync4, readFileSync as readFileSync2, rmSync as rmSync3, writeFileSync as writeFileSync2 } from "fs";
1835
1938
  import { homedir as homedir2 } from "os";
1836
- import { dirname as dirname3, join as join3, resolve as resolve2 } from "path";
1939
+ import { dirname as dirname3, join as join4, resolve as resolve3 } from "path";
1837
1940
  import { fileURLToPath } from "url";
1838
- import { execFileSync as execFileSync3 } from "child_process";
1941
+ import { execFileSync as execFileSync4 } from "child_process";
1839
1942
  var DEFAULT_LABEL2 = "recall-daemon";
1840
1943
  function installSystemdUnit(opts = {}) {
1841
1944
  assertLinux();
1842
1945
  const cfg = resolveConfig2(opts);
1843
- mkdirSync3(dirname3(cfg.unitPath), { recursive: true });
1844
- mkdirSync3(cfg.logDir, { recursive: true });
1946
+ mkdirSync4(dirname3(cfg.unitPath), { recursive: true });
1947
+ mkdirSync4(cfg.logDir, { recursive: true });
1845
1948
  writeFileSync2(cfg.unitPath, renderUnit(cfg), { mode: 384 });
1846
1949
  chmodSync3(cfg.unitPath, 384);
1847
1950
  for (const args of systemdInstallCommands(cfg.label)) systemctl(args);
@@ -1937,16 +2040,16 @@ function resolveConfig2(opts) {
1937
2040
  const home = homedir2();
1938
2041
  const port = opts.port ?? parseInt(process.env.RECALL_PORT ?? "7890", 10);
1939
2042
  const maintenanceIntervalSeconds = opts.maintenanceIntervalSeconds ?? parseInt(process.env.RECALL_MAINTENANCE_INTERVAL_SECONDS ?? "3600", 10);
1940
- const dataDir = resolve2(
1941
- opts.dataDir ?? process.env.RECALL_DATA_DIR ?? join3(home, ".recall")
2043
+ const dataDir = resolve3(
2044
+ opts.dataDir ?? process.env.RECALL_DATA_DIR ?? join4(home, ".recall")
1942
2045
  );
1943
- const nodePath = resolve2(opts.nodePath ?? process.execPath);
1944
- const daemonScript = resolve2(
2046
+ const nodePath = resolve3(opts.nodePath ?? process.execPath);
2047
+ const daemonScript = resolve3(
1945
2048
  opts.daemonScript ?? defaultDaemonScript()
1946
2049
  );
1947
- const configHome = process.env.XDG_CONFIG_HOME ?? join3(home, ".config");
1948
- const unitPath = join3(configHome, "systemd", "user", `${label}.service`);
1949
- const logDir = join3(dataDir, "logs");
2050
+ const configHome = process.env.XDG_CONFIG_HOME ?? join4(home, ".config");
2051
+ const unitPath = join4(configHome, "systemd", "user", `${label}.service`);
2052
+ const logDir = join4(dataDir, "logs");
1950
2053
  const installed = readInstalledConfig2(unitPath);
1951
2054
  return {
1952
2055
  label,
@@ -1970,7 +2073,7 @@ function resolveConfig2(opts) {
1970
2073
  }
1971
2074
  function defaultDaemonScript() {
1972
2075
  const here = dirname3(fileURLToPath(import.meta.url));
1973
- return join3(here, "daemon.js");
2076
+ return join4(here, "daemon.js");
1974
2077
  }
1975
2078
  function renderUnit(cfg) {
1976
2079
  const envLines = [
@@ -2043,18 +2146,18 @@ function unescapeSystemdValue(value) {
2043
2146
  return value.replaceAll("%%", "%").replaceAll('\\"', '"').replaceAll("\\\\", "\\");
2044
2147
  }
2045
2148
  function systemctl(args) {
2046
- execFileSync3("systemctl", args, { stdio: "pipe" });
2149
+ execFileSync4("systemctl", args, { stdio: "pipe" });
2047
2150
  }
2048
2151
  function trySystemctl(args) {
2049
2152
  try {
2050
- execFileSync3("systemctl", args, { stdio: "pipe" });
2153
+ execFileSync4("systemctl", args, { stdio: "pipe" });
2051
2154
  } catch {
2052
2155
  return;
2053
2156
  }
2054
2157
  }
2055
2158
  function trySystemctlOutput(args) {
2056
2159
  try {
2057
- const output = execFileSync3("systemctl", args, {
2160
+ const output = execFileSync4("systemctl", args, {
2058
2161
  encoding: "utf8",
2059
2162
  stdio: ["ignore", "pipe", "pipe"]
2060
2163
  });
@@ -2076,13 +2179,13 @@ function assertLinux() {
2076
2179
  init_define_RECALL_BUILD_INFO();
2077
2180
  import {
2078
2181
  existsSync as existsSync4,
2079
- mkdirSync as mkdirSync4,
2182
+ mkdirSync as mkdirSync5,
2080
2183
  readFileSync as readFileSync3,
2081
2184
  realpathSync,
2082
2185
  renameSync as renameSync2,
2083
2186
  writeFileSync as writeFileSync3
2084
2187
  } from "fs";
2085
- import { dirname as dirname4, join as join4, resolve as resolve3 } from "path";
2188
+ import { dirname as dirname4, join as join5, resolve as resolve4 } from "path";
2086
2189
  import { fileURLToPath as fileURLToPath2 } from "url";
2087
2190
  var CLAUDE_CONFIG_RELATIVE_PATH = [".claude", "settings.json"];
2088
2191
  var CLAUDE_MD_RELATIVE_PATH = [".claude", "CLAUDE.md"];
@@ -2094,7 +2197,7 @@ var CLAUDE_MD_BEGIN_NAME_RE = /recall:managed:(?:memory|claude-md):begin/;
2094
2197
  var CLAUDE_MD_BLOCK_RE = /<!--\s*recall:managed:(?:memory|claude-md):begin(?:\s+v\d+)?\s*-->[\s\S]*?<!--\s*recall:managed:(?:memory|claude-md):end\s*-->\n?/g;
2095
2198
  var SESSION_START_MATCHER = "startup|resume|clear|compact";
2096
2199
  var SESSION_END_MATCHER = "clear|resume|logout|prompt_input_exit|bypass_permissions_disabled|other";
2097
- var configPath = () => join4(resolveUserHomeDir(), ...CLAUDE_CONFIG_RELATIVE_PATH);
2200
+ var configPath = () => join5(resolveUserHomeDir(), ...CLAUDE_CONFIG_RELATIVE_PATH);
2098
2201
  var claudeCodeAdapter = {
2099
2202
  name: "claude-code",
2100
2203
  configPath,
@@ -2287,17 +2390,17 @@ function resolveHookCommandPrefix(options) {
2287
2390
  function resolveCliPath() {
2288
2391
  const fromEnv = process.env.RECALL_CLI_PATH;
2289
2392
  if (fromEnv && existsSync4(fromEnv)) {
2290
- return resolve3(fromEnv);
2393
+ return resolve4(fromEnv);
2291
2394
  }
2292
2395
  const fromArgv = process.argv[1];
2293
2396
  if (fromArgv && /(?:^|\/)cli\.[cm]?js$/.test(fromArgv) && existsSync4(fromArgv)) {
2294
- return resolve3(fromArgv);
2397
+ return resolve4(fromArgv);
2295
2398
  }
2296
- const sibling = resolve3(dirname4(fileURLToPath2(import.meta.url)), "..", "cli.js");
2399
+ const sibling = resolve4(dirname4(fileURLToPath2(import.meta.url)), "..", "cli.js");
2297
2400
  if (existsSync4(sibling)) {
2298
2401
  return sibling;
2299
2402
  }
2300
- const distCli = resolve3(process.cwd(), "dist", "cli.js");
2403
+ const distCli = resolve4(process.cwd(), "dist", "cli.js");
2301
2404
  if (existsSync4(distCli)) {
2302
2405
  return distCli;
2303
2406
  }
@@ -2316,7 +2419,7 @@ function readSettingsFile(configPath2) {
2316
2419
  }
2317
2420
  function writeSettingsFile(configPath2, previousRaw, settings) {
2318
2421
  const parentDir = dirname4(configPath2);
2319
- mkdirSync4(parentDir, { recursive: true });
2422
+ mkdirSync5(parentDir, { recursive: true });
2320
2423
  if (previousRaw != null) {
2321
2424
  const backupPath = `${configPath2}.recall.bak.${Date.now()}`;
2322
2425
  writeFileSync3(backupPath, previousRaw);
@@ -2363,7 +2466,7 @@ ${CLAUDE_MD_END}
2363
2466
  `;
2364
2467
  }
2365
2468
  function claudeMdPath() {
2366
- return join4(resolveUserHomeDir(), ...CLAUDE_MD_RELATIVE_PATH);
2469
+ return join5(resolveUserHomeDir(), ...CLAUDE_MD_RELATIVE_PATH);
2367
2470
  }
2368
2471
  function installClaudeCodeMemoryOverride(options = {}) {
2369
2472
  if (process.env.RECALL_SETUP_SKIP_CLAUDE_MD === "1") {
@@ -2377,7 +2480,7 @@ function installClaudeCodeMemoryOverride(options = {}) {
2377
2480
  const targetPath = options.configPath ?? claudeMdPath();
2378
2481
  const targetDir = dirname4(targetPath);
2379
2482
  if (!existsSync4(targetDir)) {
2380
- mkdirSync4(targetDir, { recursive: true });
2483
+ mkdirSync5(targetDir, { recursive: true });
2381
2484
  }
2382
2485
  const desired = buildClaudeMdBlock();
2383
2486
  const filePath = resolveClaudeMdFilePath(targetPath);
@@ -2477,16 +2580,16 @@ init_define_RECALL_BUILD_INFO();
2477
2580
 
2478
2581
  // src/agents/cursor.ts
2479
2582
  init_define_RECALL_BUILD_INFO();
2480
- import { join as join5 } from "path";
2583
+ import { join as join6 } from "path";
2481
2584
 
2482
2585
  // src/agents/hookless.ts
2483
2586
  init_define_RECALL_BUILD_INFO();
2484
2587
  import { existsSync as existsSync7 } from "fs";
2485
- import { resolve as resolve4 } from "path";
2588
+ import { resolve as resolve5 } from "path";
2486
2589
 
2487
2590
  // src/agents/mcp-json.ts
2488
2591
  init_define_RECALL_BUILD_INFO();
2489
- import { existsSync as existsSync5, mkdirSync as mkdirSync5, readFileSync as readFileSync4, renameSync as renameSync3, writeFileSync as writeFileSync4 } from "fs";
2592
+ import { existsSync as existsSync5, mkdirSync as mkdirSync6, readFileSync as readFileSync4, renameSync as renameSync3, writeFileSync as writeFileSync4 } from "fs";
2490
2593
  import { dirname as dirname5 } from "path";
2491
2594
  var RECALL_SERVER_KEY = "recall";
2492
2595
  function commandArgsEntry(spec) {
@@ -2610,7 +2713,7 @@ function readJsonConfig(configPath2) {
2610
2713
  return { raw, parsed: object };
2611
2714
  }
2612
2715
  function writeJsonConfig(configPath2, previousRaw, value) {
2613
- mkdirSync5(dirname5(configPath2), { recursive: true });
2716
+ mkdirSync6(dirname5(configPath2), { recursive: true });
2614
2717
  if (previousRaw != null) {
2615
2718
  writeFileSync4(`${configPath2}.recall.bak.${Date.now()}`, previousRaw);
2616
2719
  }
@@ -2637,7 +2740,7 @@ function sameJson2(left, right) {
2637
2740
 
2638
2741
  // src/agents/rules-block.ts
2639
2742
  init_define_RECALL_BUILD_INFO();
2640
- import { existsSync as existsSync6, mkdirSync as mkdirSync6, readFileSync as readFileSync5, rmSync as rmSync4, writeFileSync as writeFileSync5 } from "fs";
2743
+ import { existsSync as existsSync6, mkdirSync as mkdirSync7, readFileSync as readFileSync5, rmSync as rmSync4, writeFileSync as writeFileSync5 } from "fs";
2641
2744
  import { dirname as dirname6 } from "path";
2642
2745
  function beginMarker(block) {
2643
2746
  return `<!-- recall:managed:${block.name}:begin v${block.version} -->`;
@@ -2675,7 +2778,7 @@ function installManagedRules(targetPath, block) {
2675
2778
  };
2676
2779
  }
2677
2780
  const next = block.ownsFile ? `${block.preamble ?? ""}${desired}` : mergeIntoExisting(existing, desired, block);
2678
- mkdirSync6(dirname6(targetPath), { recursive: true });
2781
+ mkdirSync7(dirname6(targetPath), { recursive: true });
2679
2782
  writeFileSync5(targetPath, next);
2680
2783
  return {
2681
2784
  ok: true,
@@ -2851,16 +2954,16 @@ function resolveServerSpec(options, label) {
2851
2954
  return { nodePath, mcpPath };
2852
2955
  }
2853
2956
  function projectPath(options, ...segments) {
2854
- return resolve4(options.cwd ?? process.cwd(), ...segments);
2957
+ return resolve5(options.cwd ?? process.cwd(), ...segments);
2855
2958
  }
2856
2959
 
2857
2960
  // src/agents/cursor.ts
2858
2961
  var LABEL = "Cursor";
2859
2962
  function cursorHome(options = {}) {
2860
- return join5(options.homeDir ?? resolveUserHomeDir(), ".cursor");
2963
+ return join6(options.homeDir ?? resolveUserHomeDir(), ".cursor");
2861
2964
  }
2862
2965
  function cursorGlobalMcpPath(options = {}) {
2863
- return join5(cursorHome(options), "mcp.json");
2966
+ return join6(cursorHome(options), "mcp.json");
2864
2967
  }
2865
2968
  function cursorProjectMcpPath(options = {}) {
2866
2969
  return projectPath(options, ".cursor", "mcp.json");
@@ -2940,14 +3043,14 @@ var geminiCliAdapter = {
2940
3043
 
2941
3044
  // src/agents/github-copilot.ts
2942
3045
  init_define_RECALL_BUILD_INFO();
2943
- import { join as join6 } from "path";
3046
+ import { join as join7 } from "path";
2944
3047
  var LABEL2 = "GitHub Copilot";
2945
3048
  function copilotHome(options = {}) {
2946
- if (options.homeDir) return join6(options.homeDir, ".copilot");
2947
- return process.env.COPILOT_HOME ?? join6(resolveUserHomeDir(), ".copilot");
3049
+ if (options.homeDir) return join7(options.homeDir, ".copilot");
3050
+ return process.env.COPILOT_HOME ?? join7(resolveUserHomeDir(), ".copilot");
2948
3051
  }
2949
3052
  function copilotMcpConfigPath(options = {}) {
2950
- return join6(copilotHome(options), "mcp-config.json");
3053
+ return join7(copilotHome(options), "mcp-config.json");
2951
3054
  }
2952
3055
  function copilotInstructionsPath(options = {}) {
2953
3056
  return projectPath(options, ".github", "copilot-instructions.md");
@@ -2974,16 +3077,16 @@ var githubCopilotAdapter = createHooklessAdapter({
2974
3077
 
2975
3078
  // src/agents/opencode.ts
2976
3079
  init_define_RECALL_BUILD_INFO();
2977
- import { join as join7 } from "path";
3080
+ import { join as join8 } from "path";
2978
3081
  var LABEL3 = "opencode";
2979
3082
  function opencodeConfigDir(options = {}) {
2980
- return join7(options.homeDir ?? resolveUserHomeDir(), ".config", "opencode");
3083
+ return join8(options.homeDir ?? resolveUserHomeDir(), ".config", "opencode");
2981
3084
  }
2982
3085
  function opencodeConfigPath(options = {}) {
2983
- return join7(opencodeConfigDir(options), "opencode.json");
3086
+ return join8(opencodeConfigDir(options), "opencode.json");
2984
3087
  }
2985
3088
  function opencodeAgentsPath(options = {}) {
2986
- return join7(opencodeConfigDir(options), "AGENTS.md");
3089
+ return join8(opencodeConfigDir(options), "AGENTS.md");
2987
3090
  }
2988
3091
  var opencodeAdapter = createHooklessAdapter({
2989
3092
  name: "opencode",
@@ -3050,16 +3153,16 @@ var qwenAdapter = {
3050
3153
 
3051
3154
  // src/agents/windsurf.ts
3052
3155
  init_define_RECALL_BUILD_INFO();
3053
- import { join as join8 } from "path";
3156
+ import { join as join9 } from "path";
3054
3157
  var LABEL4 = "Windsurf";
3055
3158
  function windsurfConfigDir(options = {}) {
3056
- return join8(options.homeDir ?? resolveUserHomeDir(), ".codeium", "windsurf");
3159
+ return join9(options.homeDir ?? resolveUserHomeDir(), ".codeium", "windsurf");
3057
3160
  }
3058
3161
  function windsurfMcpConfigPath(options = {}) {
3059
- return join8(windsurfConfigDir(options), "mcp_config.json");
3162
+ return join9(windsurfConfigDir(options), "mcp_config.json");
3060
3163
  }
3061
3164
  function windsurfGlobalRulesPath(options = {}) {
3062
- return join8(windsurfConfigDir(options), "memories", "global_rules.md");
3165
+ return join9(windsurfConfigDir(options), "memories", "global_rules.md");
3063
3166
  }
3064
3167
  var windsurfAdapter = createHooklessAdapter({
3065
3168
  name: "windsurf",
@@ -3379,8 +3482,8 @@ function inspectHooklessInstall(agent, home) {
3379
3482
  };
3380
3483
  }
3381
3484
  function inspectClaudeCodeInstall(home) {
3382
- const configPath2 = join9(home, ".claude", "settings.json");
3383
- const userConfigPath = join9(home, ".claude.json");
3485
+ const configPath2 = join10(home, ".claude", "settings.json");
3486
+ const userConfigPath = join10(home, ".claude.json");
3384
3487
  const detected = existsSync8(configPath2) || existsSync8(userConfigPath) || hasCommand("claude");
3385
3488
  const notes = [];
3386
3489
  let mcp = false;
@@ -3412,7 +3515,7 @@ function inspectClaudeCodeInstall(home) {
3412
3515
  }
3413
3516
  if (!mcp) notes.push("MCP server 'recall' not registered in user configuration");
3414
3517
  const claudeMd = checkClaudeCodeMemoryOverride({
3415
- configPath: join9(home, ".claude", "CLAUDE.md")
3518
+ configPath: join10(home, ".claude", "CLAUDE.md")
3416
3519
  });
3417
3520
  if (claudeMd.status === "stale") {
3418
3521
  notes.push("CLAUDE.md memory-override block is out of date \u2014 run `recall doctor --fix`");
@@ -3433,8 +3536,8 @@ function inspectClaudeCodeInstall(home) {
3433
3536
  };
3434
3537
  }
3435
3538
  function inspectCodexHome(codexHome) {
3436
- const configPath2 = join9(codexHome, "config.toml");
3437
- const hooksPath = join9(codexHome, "hooks.json");
3539
+ const configPath2 = join10(codexHome, "config.toml");
3540
+ const hooksPath = join10(codexHome, "hooks.json");
3438
3541
  const detected = existsSync8(configPath2) || hasCommand("codex");
3439
3542
  const notes = [];
3440
3543
  let mcp = false;
@@ -3614,6 +3717,11 @@ function formatDoctorReport(report) {
3614
3717
  }
3615
3718
 
3616
3719
  export {
3720
+ exportMarkdown,
3721
+ exportClaude,
3722
+ exportCodex,
3723
+ getRepoContextArtifactPath,
3724
+ writeRepoContextArtifact,
3617
3725
  unregisterStrayApps,
3618
3726
  getHookCallStats,
3619
3727
  executePromptHook,
@@ -3665,4 +3773,4 @@ export {
3665
3773
  getDoctorReport,
3666
3774
  formatDoctorReport
3667
3775
  };
3668
- //# sourceMappingURL=chunk-N3ICISZV.js.map
3776
+ //# sourceMappingURL=chunk-VMH7WZX3.js.map