@contextstream/mcp-server 0.4.57 → 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.
- package/dist/hooks/auto-rules.js +65 -38
- package/dist/hooks/runner.js +69 -40
- package/dist/hooks/session-init.js +1036 -1
- package/dist/hooks/user-prompt-submit.js +4 -2
- package/dist/index.js +15130 -14822
- package/dist/test-server.js +1 -1
- package/package.json +1 -1
|
@@ -43,7 +43,7 @@ function compareVersions(v1, v2) {
|
|
|
43
43
|
}
|
|
44
44
|
return 0;
|
|
45
45
|
}
|
|
46
|
-
var CACHE_TTL_MS =
|
|
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
|
-
|
|
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({
|