@regle/mcp-server 1.14.7-beta.5 → 1.14.7
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/regle-mcp-server.js +5 -3
- package/package.json +1 -1
package/dist/regle-mcp-server.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
3
3
|
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
|
|
4
4
|
import { z } from "zod";
|
|
5
|
+
import { createHash } from "crypto";
|
|
5
6
|
import { hostname, userInfo } from "os";
|
|
6
7
|
import { PostHog } from "posthog-node";
|
|
7
8
|
|
|
@@ -1665,7 +1666,7 @@ function searchApi(query) {
|
|
|
1665
1666
|
return results;
|
|
1666
1667
|
}
|
|
1667
1668
|
|
|
1668
|
-
var version = "1.14.7
|
|
1669
|
+
var version = "1.14.7";
|
|
1669
1670
|
|
|
1670
1671
|
let posthogClient = null;
|
|
1671
1672
|
posthogClient = new PostHog("phc_kqgJoylCpKkGkkRGxb4MyN2mViehoQcUFEGwVkk4l8E", {
|
|
@@ -1674,10 +1675,11 @@ posthogClient = new PostHog("phc_kqgJoylCpKkGkkRGxb4MyN2mViehoQcUFEGwVkk4l8E", {
|
|
|
1674
1675
|
flushInterval: 0
|
|
1675
1676
|
});
|
|
1676
1677
|
/**
|
|
1677
|
-
* Get
|
|
1678
|
+
* Get an anonymous hash to differentiate users without storing identifiable info
|
|
1678
1679
|
*/
|
|
1679
1680
|
function getMachineFingerprint() {
|
|
1680
|
-
|
|
1681
|
+
const raw = [hostname(), userInfo().username].join("-");
|
|
1682
|
+
return createHash("sha256").update(raw).digest("hex").slice(0, 16);
|
|
1681
1683
|
}
|
|
1682
1684
|
function getBaseProperties(clientInfo) {
|
|
1683
1685
|
return {
|