conare 0.5.15 → 0.5.17

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 (2) hide show
  1. package/dist/index.js +5 -10
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1836,15 +1836,10 @@ function showCountingToolProgress(tool, checked, found, total) {
1836
1836
  countingSpinner?.message(`Scanning ${tool}: ${checkedText} files, ${found.toLocaleString()} importable`);
1837
1837
  }
1838
1838
  function showCountingToolDone(tool, count) {
1839
- toolTotals[tool] = count;
1840
1839
  countingSpinner?.message(`${tool}: ${count.toLocaleString()} chats`);
1841
1840
  }
1842
1841
  function showLocalChatsCounted() {
1843
- if (!countingSpinner)
1844
- return;
1845
- const entries = Object.entries(toolTotals).filter(([, n]) => n > 0);
1846
- const summary = entries.length ? entries.map(([tool, n]) => `${tool} ${n.toLocaleString()}`).join(", ") : "no chats found";
1847
- countingSpinner.stop(`Found ${summary}`);
1842
+ countingSpinner?.stop("Scan complete");
1848
1843
  countingSpinner = null;
1849
1844
  }
1850
1845
  async function promptApiKey(options) {
@@ -1936,10 +1931,9 @@ async function confirmBackgroundSync() {
1936
1931
  }));
1937
1932
  return value === "yes";
1938
1933
  }
1939
- var countingSpinner = null, toolTotals;
1934
+ var countingSpinner = null;
1940
1935
  var init_interactive = __esm(() => {
1941
1936
  init_dist2();
1942
- toolTotals = {};
1943
1937
  });
1944
1938
 
1945
1939
  // src/index.ts
@@ -4271,6 +4265,7 @@ async function main() {
4271
4265
  detectedCountApproximate: undefined
4272
4266
  }));
4273
4267
  let interactiveMode = false;
4268
+ let detectedTools;
4274
4269
  if (shouldRunInteractive) {
4275
4270
  startSetup();
4276
4271
  interactiveMode = true;
@@ -4293,7 +4288,7 @@ async function main() {
4293
4288
  }
4294
4289
  }
4295
4290
  showCountingLocalChats();
4296
- const detectedTools = await detect({ onProgress: renderDetectProgress });
4291
+ detectedTools = await detect({ onProgress: renderDetectProgress });
4297
4292
  showLocalChatsCounted();
4298
4293
  interactiveTargets = MCP_TARGETS.map((target) => {
4299
4294
  const detected = detectedTools.find((tool) => tool.id === target.id);
@@ -4481,7 +4476,7 @@ Nothing new to index.`);
4481
4476
  }
4482
4477
  log();
4483
4478
  }
4484
- const tools = await detect();
4479
+ const tools = detectedTools ?? await detect();
4485
4480
  if (!interactiveMode) {
4486
4481
  log("Detected AI tools:");
4487
4482
  for (const t of tools) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "conare",
3
- "version": "0.5.15",
3
+ "version": "0.5.17",
4
4
  "description": "Conare CLI for indexing AI chat history and configuring memory at conare.ai",
5
5
  "type": "module",
6
6
  "bin": {