@contextstream/mcp-server 0.4.56 → 0.4.58

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.
@@ -43,7 +43,7 @@ function compareVersions(v1, v2) {
43
43
  }
44
44
  return 0;
45
45
  }
46
- var CACHE_TTL_MS = 24 * 60 * 60 * 1e3;
46
+ var CACHE_TTL_MS = 12 * 60 * 60 * 1e3;
47
47
  var latestVersionPromise = null;
48
48
  function getCacheFilePath() {
49
49
  return join(homedir(), ".contextstream", "version-cache.json");
@@ -684,7 +684,9 @@ async function runUserPromptSubmitHook() {
684
684
  const clientName = editorFormat === "claude" ? "claude-code" : editorFormat;
685
685
  const saveExchangePromise = lastExchange ? saveLastExchange(lastExchange, cwd, clientName) : Promise.resolve();
686
686
  if (editorFormat === "claude") {
687
- const [ctx, versionNotice] = await Promise.all([fetchSessionContext(), versionNoticePromise, saveExchangePromise]);
687
+ saveExchangePromise.catch(() => {
688
+ });
689
+ const [ctx, versionNotice] = await Promise.all([fetchSessionContext(), versionNoticePromise]);
688
690
  const claudeReminder = buildClaudeReminder(ctx, versionNotice);
689
691
  console.log(
690
692
  JSON.stringify({