engrm 0.4.39 → 0.4.40

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.
@@ -3266,7 +3266,7 @@ import { existsSync as existsSync3, readFileSync as readFileSync2, writeFileSync
3266
3266
  import { join as join3 } from "node:path";
3267
3267
  import { homedir } from "node:os";
3268
3268
  var STATE_PATH = join3(homedir(), ".engrm", "config-fingerprint.json");
3269
- var CLIENT_VERSION = "0.4.39";
3269
+ var CLIENT_VERSION = "0.4.40";
3270
3270
  function hashFile(filePath) {
3271
3271
  try {
3272
3272
  if (!existsSync3(filePath))
@@ -3338,7 +3338,7 @@ function buildBeacon(db, config, sessionId, metrics) {
3338
3338
  sentinel_used: valueSignals.security_findings_count > 0,
3339
3339
  risk_score: riskScore,
3340
3340
  stacks_detected: stacks,
3341
- client_version: "0.4.39",
3341
+ client_version: "0.4.40",
3342
3342
  context_observations_injected: metrics?.contextObsInjected ?? 0,
3343
3343
  context_total_available: metrics?.contextTotalAvailable ?? 0,
3344
3344
  recall_attempts: metrics?.recallAttempts ?? 0,
package/dist/server.js CHANGED
@@ -13555,6 +13555,7 @@ function date4(params) {
13555
13555
  config(en_default());
13556
13556
  // src/server.ts
13557
13557
  import { createServer } from "node:http";
13558
+ import { randomUUID } from "node:crypto";
13558
13559
 
13559
13560
  // src/config.ts
13560
13561
  import { existsSync, mkdirSync, readFileSync, writeFileSync } from "node:fs";
@@ -23062,7 +23063,7 @@ process.on("SIGTERM", () => {
23062
23063
  });
23063
23064
  var server = new McpServer({
23064
23065
  name: "engrm",
23065
- version: "0.4.39"
23066
+ version: "0.4.40"
23066
23067
  });
23067
23068
  server.tool("save_observation", "Directly save a durable memory item now. Use this when something should be remembered on purpose instead of waiting for an end-of-session digest.", {
23068
23069
  type: exports_external.enum([
@@ -25088,7 +25089,7 @@ async function startHttpServer() {
25088
25089
  throw new Error("HTTP mode requires at least one bearer token via settings.json http.bearer_tokens or ENGRM_HTTP_BEARER_TOKENS");
25089
25090
  }
25090
25091
  const transport = new StreamableHTTPServerTransport({
25091
- sessionIdGenerator: undefined
25092
+ sessionIdGenerator: () => randomUUID()
25092
25093
  });
25093
25094
  await server.connect(transport);
25094
25095
  const httpServer = createServer(async (req, res) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "engrm",
3
- "version": "0.4.39",
3
+ "version": "0.4.40",
4
4
  "description": "Shared memory across devices, sessions, and agents, with thin MCP tools for durable capture, live continuity, and Hermes-ready remote MCP support",
5
5
  "mcpName": "io.github.dr12hes/engrm",
6
6
  "type": "module",