crispy-recall 0.1.3 → 0.1.4

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.
@@ -57,6 +57,9 @@ function runDir() {
57
57
  function ensureDir() {
58
58
  (0, import_node_fs.mkdirSync)(recallRoot(), { recursive: true });
59
59
  }
60
+ function transcriptGlob(...segments) {
61
+ return segments.join("/").replace(/\\/g, "/");
62
+ }
60
63
  var import_node_fs, import_node_os, import_node_path, rootOverride;
61
64
  var init_paths = __esm({
62
65
  "src/paths.ts"() {
@@ -13203,9 +13206,9 @@ async function mtimeScan(opts) {
13203
13206
  const codexRoot = process.env["CODEX_HOME"] ?? (0, import_node_path7.join)((0, import_node_os3.homedir)(), ".codex");
13204
13207
  const patterns = [];
13205
13208
  if (vendors.includes("claude"))
13206
- patterns.push([(0, import_node_path7.join)(claudeRoot, "projects", "**", "*.jsonl"), "claude"]);
13209
+ patterns.push([transcriptGlob(claudeRoot, "projects", "**", "*.jsonl"), "claude"]);
13207
13210
  if (vendors.includes("codex"))
13208
- patterns.push([(0, import_node_path7.join)(codexRoot, "sessions", "**", "*.jsonl"), "codex"]);
13211
+ patterns.push([transcriptGlob(codexRoot, "sessions", "**", "*.jsonl"), "codex"]);
13209
13212
  const db3 = getDb(dbPath());
13210
13213
  const watermarks = /* @__PURE__ */ new Map();
13211
13214
  const rows = db3.all("SELECT * FROM ingest_watermark");
package/dist/recall.js CHANGED
@@ -2570,6 +2570,9 @@ function logsDir() {
2570
2570
  function ensureDir() {
2571
2571
  (0, import_node_fs.mkdirSync)(recallRoot(), { recursive: true });
2572
2572
  }
2573
+ function transcriptGlob(...segments) {
2574
+ return segments.join("/").replace(/\\/g, "/");
2575
+ }
2573
2576
  var import_node_fs, import_node_os, import_node_path, rootOverride;
2574
2577
  var init_paths = __esm({
2575
2578
  "src/paths.ts"() {
@@ -13757,9 +13760,9 @@ async function mtimeScan(opts) {
13757
13760
  const codexRoot = process.env["CODEX_HOME"] ?? (0, import_node_path6.join)((0, import_node_os3.homedir)(), ".codex");
13758
13761
  const patterns = [];
13759
13762
  if (vendors.includes("claude"))
13760
- patterns.push([(0, import_node_path6.join)(claudeRoot, "projects", "**", "*.jsonl"), "claude"]);
13763
+ patterns.push([transcriptGlob(claudeRoot, "projects", "**", "*.jsonl"), "claude"]);
13761
13764
  if (vendors.includes("codex"))
13762
- patterns.push([(0, import_node_path6.join)(codexRoot, "sessions", "**", "*.jsonl"), "codex"]);
13765
+ patterns.push([transcriptGlob(codexRoot, "sessions", "**", "*.jsonl"), "codex"]);
13763
13766
  const db4 = getDb(dbPath());
13764
13767
  const watermarks = /* @__PURE__ */ new Map();
13765
13768
  const rows = db4.all("SELECT * FROM ingest_watermark");
@@ -14556,7 +14559,7 @@ function listAllSessions(opts) {
14556
14559
  const codexRoot = process.env["CODEX_HOME"] ?? (0, import_node_path7.join)((0, import_node_os4.homedir)(), ".codex");
14557
14560
  const out = [];
14558
14561
  if (vendors.includes("claude")) {
14559
- const files = globSync((0, import_node_path7.join)(claudeRoot, "projects", "**", "*.jsonl"), { nodir: true });
14562
+ const files = globSync(transcriptGlob(claudeRoot, "projects", "**", "*.jsonl"), { nodir: true });
14560
14563
  for (const file of files) {
14561
14564
  out.push({
14562
14565
  sessionId: sessionIdFromPath2(file, "claude"),
@@ -14567,7 +14570,7 @@ function listAllSessions(opts) {
14567
14570
  }
14568
14571
  }
14569
14572
  if (vendors.includes("codex")) {
14570
- const files = globSync((0, import_node_path7.join)(codexRoot, "sessions", "**", "*.jsonl"), { nodir: true });
14573
+ const files = globSync(transcriptGlob(codexRoot, "sessions", "**", "*.jsonl"), { nodir: true });
14571
14574
  for (const file of files) {
14572
14575
  out.push({
14573
14576
  sessionId: sessionIdFromPath2(file, "codex"),
@@ -14593,6 +14596,7 @@ var init_session_manager_shim = __esm({
14593
14596
  init_esm5();
14594
14597
  import_node_os4 = require("node:os");
14595
14598
  import_node_path7 = require("node:path");
14599
+ init_paths();
14596
14600
  }
14597
14601
  });
14598
14602
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "crispy-recall",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "Local session transcript memory for Claude Code and Codex — search past sessions with FTS5 + semantic vectors.",
5
5
  "license": "MIT",
6
6
  "author": "Sylvester Wong",