@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.
@@ -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-beta.5";
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 basic machine information to differentiate the users
1678
+ * Get an anonymous hash to differentiate users without storing identifiable info
1678
1679
  */
1679
1680
  function getMachineFingerprint() {
1680
- return [hostname(), userInfo().username].join("-");
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 {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@regle/mcp-server",
3
- "version": "1.14.7-beta.5",
3
+ "version": "1.14.7",
4
4
  "description": "MCP Server for Regle",
5
5
  "dependencies": {
6
6
  "@modelcontextprotocol/sdk": "1.24.3",