@contextstream/mcp-server 0.3.37 → 0.3.38
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/index.js +16 -15
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4696,6 +4696,20 @@ var CacheKeys = {
|
|
|
4696
4696
|
};
|
|
4697
4697
|
var globalCache = new MemoryCache();
|
|
4698
4698
|
|
|
4699
|
+
// src/version.ts
|
|
4700
|
+
import { createRequire } from "module";
|
|
4701
|
+
function getVersion() {
|
|
4702
|
+
try {
|
|
4703
|
+
const require2 = createRequire(import.meta.url);
|
|
4704
|
+
const pkg = require2("../package.json");
|
|
4705
|
+
const version = pkg?.version;
|
|
4706
|
+
if (typeof version === "string" && version.trim()) return version.trim();
|
|
4707
|
+
} catch {
|
|
4708
|
+
}
|
|
4709
|
+
return "unknown";
|
|
4710
|
+
}
|
|
4711
|
+
var VERSION = getVersion();
|
|
4712
|
+
|
|
4699
4713
|
// src/client.ts
|
|
4700
4714
|
var uuidSchema = external_exports.string().uuid();
|
|
4701
4715
|
function unwrapApiResponse(result) {
|
|
@@ -5662,7 +5676,8 @@ var ContextStreamClient = class {
|
|
|
5662
5676
|
project_id: params.project_id,
|
|
5663
5677
|
session_id: params.session_id,
|
|
5664
5678
|
include_recent_memory: params.include_recent_memory ?? true,
|
|
5665
|
-
include_decisions: params.include_decisions ?? true
|
|
5679
|
+
include_decisions: params.include_decisions ?? true,
|
|
5680
|
+
client_version: VERSION
|
|
5666
5681
|
}
|
|
5667
5682
|
});
|
|
5668
5683
|
const contextData = "data" in result && result.data ? result.data : result;
|
|
@@ -7152,20 +7167,6 @@ ${options.workspaceId ? `# Workspace ID: ${options.workspaceId}` : ""}
|
|
|
7152
7167
|
};
|
|
7153
7168
|
}
|
|
7154
7169
|
|
|
7155
|
-
// src/version.ts
|
|
7156
|
-
import { createRequire } from "module";
|
|
7157
|
-
function getVersion() {
|
|
7158
|
-
try {
|
|
7159
|
-
const require2 = createRequire(import.meta.url);
|
|
7160
|
-
const pkg = require2("../package.json");
|
|
7161
|
-
const version = pkg?.version;
|
|
7162
|
-
if (typeof version === "string" && version.trim()) return version.trim();
|
|
7163
|
-
} catch {
|
|
7164
|
-
}
|
|
7165
|
-
return "unknown";
|
|
7166
|
-
}
|
|
7167
|
-
var VERSION = getVersion();
|
|
7168
|
-
|
|
7169
7170
|
// src/tools.ts
|
|
7170
7171
|
var LESSON_DEDUP_WINDOW_MS = 2 * 60 * 1e3;
|
|
7171
7172
|
var recentLessonCaptures = /* @__PURE__ */ new Map();
|
package/package.json
CHANGED