chat-recall 0.5.23 → 0.5.24

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/mcp.js CHANGED
@@ -20633,7 +20633,7 @@ var init_http = __esm({
20633
20633
  CLI_VERSION = JSON.parse(readFileSync37(new URL("../package.json", import.meta.url), "utf-8")).version || CLI_VERSION;
20634
20634
  } catch {
20635
20635
  try {
20636
- if (true) CLI_VERSION = "0.5.23";
20636
+ if (true) CLI_VERSION = "0.5.24";
20637
20637
  } catch {
20638
20638
  }
20639
20639
  }
@@ -21145,7 +21145,7 @@ var init_telemetry = __esm({
21145
21145
  init_sync_client();
21146
21146
  cliVersion2 = () => {
21147
21147
  try {
21148
- return true ? "0.5.23" : "dev";
21148
+ return true ? "0.5.24" : "dev";
21149
21149
  } catch {
21150
21150
  return "dev";
21151
21151
  }
@@ -22953,7 +22953,7 @@ var init_sync_client = __esm({
22953
22953
  ownVersion = JSON.parse(readFileSync39(join49(dir, "../package.json"), "utf-8")).version || ownVersion;
22954
22954
  } catch {
22955
22955
  try {
22956
- if (true) ownVersion = "0.5.23";
22956
+ if (true) ownVersion = "0.5.24";
22957
22957
  } catch {
22958
22958
  }
22959
22959
  }
package/dist/watch.js CHANGED
@@ -7266,7 +7266,7 @@ async function archiveRawSession(store, sessionId) {
7266
7266
  }
7267
7267
  function detectForkPredecessor(sessionPath) {
7268
7268
  const { readFileSync: readFileSync47, readdirSync: readdirSync34 } = requireFs();
7269
- const { dirname: dirname26, join: join56, basename: basename27 } = requirePath();
7269
+ const { dirname: dirname26, join: join56, basename: basename28 } = requirePath();
7270
7270
  let text;
7271
7271
  try {
7272
7272
  text = readFileSync47(sessionPath, "utf-8");
@@ -7292,7 +7292,7 @@ function detectForkPredecessor(sessionPath) {
7292
7292
  if (text.includes(`"uuid":"${headParent}"`))
7293
7293
  return null;
7294
7294
  const dir = dirname26(sessionPath);
7295
- const self = basename27(sessionPath);
7295
+ const self = basename28(sessionPath);
7296
7296
  let entries;
7297
7297
  try {
7298
7298
  entries = readdirSync34(dir);
@@ -7304,7 +7304,7 @@ function detectForkPredecessor(sessionPath) {
7304
7304
  continue;
7305
7305
  try {
7306
7306
  if (readFileSync47(join56(dir, f), "utf-8").includes(`"uuid":"${headParent}"`)) {
7307
- return basename27(f, ".jsonl");
7307
+ return basename28(f, ".jsonl");
7308
7308
  }
7309
7309
  } catch {
7310
7310
  }
@@ -19213,7 +19213,7 @@ var init_http = __esm({
19213
19213
  CLI_VERSION = JSON.parse(readFileSync33(new URL("../package.json", import.meta.url), "utf-8")).version || CLI_VERSION;
19214
19214
  } catch {
19215
19215
  try {
19216
- if (true) CLI_VERSION = "0.5.23";
19216
+ if (true) CLI_VERSION = "0.5.24";
19217
19217
  } catch {
19218
19218
  }
19219
19219
  }
@@ -19721,7 +19721,7 @@ var init_telemetry = __esm({
19721
19721
  init_sync_client();
19722
19722
  cliVersion = () => {
19723
19723
  try {
19724
- return true ? "0.5.23" : "dev";
19724
+ return true ? "0.5.24" : "dev";
19725
19725
  } catch {
19726
19726
  return "dev";
19727
19727
  }
@@ -21565,7 +21565,7 @@ var init_sync_client = __esm({
21565
21565
  ownVersion = JSON.parse(readFileSync37(join44(dir, "../package.json"), "utf-8")).version || ownVersion;
21566
21566
  } catch {
21567
21567
  try {
21568
- if (true) ownVersion = "0.5.23";
21568
+ if (true) ownVersion = "0.5.24";
21569
21569
  } catch {
21570
21570
  }
21571
21571
  }
@@ -21592,7 +21592,7 @@ var init_sync_client = __esm({
21592
21592
 
21593
21593
  // ../engine/dist/core/artifact-codec.js
21594
21594
  import { readFileSync as readFileSync38 } from "fs";
21595
- import { join as join45 } from "path";
21595
+ import { basename as basename23, join as join45 } from "path";
21596
21596
  import { homedir as homedir15 } from "os";
21597
21597
  function parseCommandText(content, format, fallbackName) {
21598
21598
  if (format === "toml") {
@@ -21720,8 +21720,7 @@ function emit(type, art, toTool, projectPath) {
21720
21720
  };
21721
21721
  }
21722
21722
  function base(filePath) {
21723
- const b = filePath.split("/").pop() || filePath;
21724
- return b.replace(/\.(md|toml)$/, "");
21723
+ return basename23(filePath).replace(/\.(md|toml)$/, "");
21725
21724
  }
21726
21725
  var init_artifact_codec = __esm({
21727
21726
  "../engine/dist/core/artifact-codec.js"() {
@@ -21738,7 +21737,7 @@ var init_artifact_codec = __esm({
21738
21737
 
21739
21738
  // ../engine/dist/core/toolkit-sync.js
21740
21739
  import { existsSync as existsSync43, mkdirSync as mkdirSync10, readFileSync as readFileSync39, writeFileSync as writeFileSync10, cpSync } from "fs";
21741
- import { dirname as dirname20, join as join46, basename as basename23 } from "path";
21740
+ import { dirname as dirname20, join as join46, basename as basename24 } from "path";
21742
21741
  import { homedir as homedir16 } from "os";
21743
21742
  function rowFromMemoryItem(type, item) {
21744
21743
  const extra = item.extra || {};
@@ -21775,7 +21774,7 @@ function copySkill(row, toTool) {
21775
21774
  const skillDir = row.extra.skillDir || dirname20(row.filePath);
21776
21775
  if (!existsSync43(skillDir))
21777
21776
  return { ok: false, status: 404, error: `Source dir missing: ${skillDir}` };
21778
- const name = row.extra.skillName || basename23(skillDir);
21777
+ const name = row.extra.skillName || basename24(skillDir);
21779
21778
  const targetDir = join46(skillsDirFor(toTool), name);
21780
21779
  if (existsSync43(targetDir))
21781
21780
  return { ok: false, status: 409, error: `Already exists: ${targetDir}` };
@@ -22232,7 +22231,7 @@ __export(toolkit_pull_exports, {
22232
22231
  portableCommand: () => portableCommand
22233
22232
  });
22234
22233
  import { existsSync as existsSync46, mkdirSync as mkdirSync12, statSync as statSync41, writeFileSync as writeFileSync12 } from "node:fs";
22235
- import { dirname as dirname22, join as join49, basename as basename24, isAbsolute as isAbsolute3 } from "node:path";
22234
+ import { dirname as dirname22, join as join49, basename as basename25, isAbsolute as isAbsolute3 } from "node:path";
22236
22235
  function isExecutableFile(p) {
22237
22236
  try {
22238
22237
  return statSync41(p).isFile();
@@ -22249,7 +22248,7 @@ function portableCommand(cmd) {
22249
22248
  }
22250
22249
  if (isExecutableFile(cmd))
22251
22250
  return { command: cmd, rewritten: false };
22252
- const base2 = basename24(cmd);
22251
+ const base2 = basename25(cmd);
22253
22252
  if (onPath(base2))
22254
22253
  return { command: base2, rewritten: true };
22255
22254
  return { missing: cmd };
@@ -23133,7 +23132,7 @@ __export(collector_exports, {
23133
23132
  import { spawn as spawn2 } from "node:child_process";
23134
23133
  import { execSync as execSync4 } from "node:child_process";
23135
23134
  import { readFileSync as readFileSync45 } from "node:fs";
23136
- import { join as join54, basename as basename25 } from "node:path";
23135
+ import { join as join54, basename as basename26 } from "node:path";
23137
23136
  async function resolveCodeindexBin(autoInstall = true) {
23138
23137
  let st = checkCodeindexStatus();
23139
23138
  if (!st.installed && autoInstall)
@@ -23511,7 +23510,7 @@ async function collectCode(opts) {
23511
23510
  file,
23512
23511
  line: null,
23513
23512
  rule: "god_module",
23514
- title: `God module ${basename25(file)}`,
23513
+ title: `God module ${basename26(file)}`,
23515
23514
  snippet: `fan-in ${m.fan_in}, fan-out ${m.fan_out}`,
23516
23515
  why: FINDING_WHY.coupling,
23517
23516
  agentPrompt: couplingPrompt(file, m.fan_in ?? 0, m.fan_out ?? 0, Math.round((m.instability ?? 0) * 100) / 100)
@@ -23679,7 +23678,7 @@ async function collectCode(opts) {
23679
23678
  file,
23680
23679
  line: v.line ?? null,
23681
23680
  rule: v.violation_type ?? "manifest_violation",
23682
- title: `${v.violation_type} in ${basename25(file)}`,
23681
+ title: `${v.violation_type} in ${basename26(file)}`,
23683
23682
  snippet: v.description ?? "",
23684
23683
  why: FINDING_WHY.manifest,
23685
23684
  agentPrompt: manifestPrompt(v.violation_type ?? "", file, v.line ?? null, v.description ?? "")
@@ -24069,7 +24068,7 @@ init_settings();
24069
24068
  init_sync_client();
24070
24069
  init_http();
24071
24070
  import chokidar from "chokidar";
24072
- import { dirname as dirname25, basename as basename26, join as join55, resolve as resolve2, sep as sep3 } from "path";
24071
+ import { dirname as dirname25, basename as basename27, join as join55, resolve as resolve2, sep as sep3 } from "path";
24073
24072
  import { homedir as homedir20 } from "os";
24074
24073
 
24075
24074
  // src/intent-drain.ts
@@ -24354,7 +24353,7 @@ try {
24354
24353
  ownVersion2 = JSON.parse(readFileSync41(join50(dir, "../package.json"), "utf-8")).version || ownVersion2;
24355
24354
  } catch {
24356
24355
  try {
24357
- if (true) ownVersion2 = "0.5.23";
24356
+ if (true) ownVersion2 = "0.5.24";
24358
24357
  } catch {
24359
24358
  }
24360
24359
  }
@@ -24698,7 +24697,7 @@ async function runCollectorMigration(opts) {
24698
24697
  init_sync_ledger();
24699
24698
  init_collector_health();
24700
24699
  import { existsSync as existsSync50, readFileSync as readFileSync46 } from "fs";
24701
- var CLI_VERSION3 = true ? "0.5.23" : "0.0.0";
24700
+ var CLI_VERSION3 = true ? "0.5.24" : "0.0.0";
24702
24701
  var DEBOUNCE_MS = 5e3;
24703
24702
  var CLAUDE_DIR = claudeBackend.projectsDir();
24704
24703
  var PLANS_DIR = claudeBackend.plansDir();
@@ -24799,7 +24798,7 @@ function watchWithFallback(name, pattern, t) {
24799
24798
  return w;
24800
24799
  }
24801
24800
  var sessionWatcher = watchWithFallback("sessions", `${CLAUDE_DIR}/**/*.jsonl`, {
24802
- ignored: (p) => /agent-/.test(p) || /^\./.test(basename26(p)),
24801
+ ignored: (p) => /agent-/.test(p) || /^\./.test(basename27(p)),
24803
24802
  interval: 5e3
24804
24803
  });
24805
24804
  var plansWatcher = chokidar.watch(`${PLANS_DIR}/*.md`, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chat-recall",
3
- "version": "0.5.23",
3
+ "version": "0.5.24",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/munhq/chat-recall.git"