virlow-mcp 3.70.0 → 3.70.1

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.
Files changed (2) hide show
  1. package/dist/cli.js +17 -4
  2. package/package.json +4 -4
package/dist/cli.js CHANGED
@@ -3012,6 +3012,21 @@ async function memoriesAllowed(api) {
3012
3012
  }
3013
3013
  }
3014
3014
  var MEMORIES_DISABLED_MESSAGE = 'AI memories are switched off for this account. Turn on "AI memories" in Settings \u2192 Security in the Virlow app to use this tool.';
3015
+ async function requireMemoriesSetting(api) {
3016
+ let me;
3017
+ try {
3018
+ me = await api.me();
3019
+ } catch (err) {
3020
+ throw new Error(memoriesUnreadableMessage(err));
3021
+ }
3022
+ if (me.memoriesEnabled !== true)
3023
+ throw new Error(MEMORIES_DISABLED_MESSAGE);
3024
+ }
3025
+ function memoriesUnreadableMessage(err) {
3026
+ const status = err instanceof ApiError ? err.status : void 0;
3027
+ const reason = status === 429 ? "Virlow is rate limiting requests right now" : `Virlow could not be reached (${err instanceof Error ? err.message : String(err)})`;
3028
+ return `Could not check whether AI memories are on: ${reason}. Nothing was changed. Wait a minute and try again; this is not the AI memories switch.`;
3029
+ }
3015
3030
 
3016
3031
  // ../../packages/mcp-core/dist/tools.js
3017
3032
  import { z } from "zod";
@@ -3165,9 +3180,7 @@ function buildServer(opts) {
3165
3180
  const requireMemories = async () => {
3166
3181
  if (!vault.isUnlocked())
3167
3182
  return;
3168
- if (!await memoriesAllowed(api)) {
3169
- throw new Error(MEMORIES_DISABLED_MESSAGE);
3170
- }
3183
+ await requireMemoriesSetting(api);
3171
3184
  };
3172
3185
  const requireCapture = async (namespace) => {
3173
3186
  if (!vault.isUnlocked())
@@ -4086,7 +4099,7 @@ function startUnlockServer(api, vault, opts = {}) {
4086
4099
  }
4087
4100
 
4088
4101
  // src/version.ts
4089
- var VERSION = true ? "3.70.0" : "dev";
4102
+ var VERSION = true ? "3.70.1" : "dev";
4090
4103
 
4091
4104
  // src/server.ts
4092
4105
  function defaultEmbeddingCacheDir() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "virlow-mcp",
3
- "version": "3.70.0",
3
+ "version": "3.70.1",
4
4
  "description": "Local MCP server for Virlow Secure Notes: end-to-end-encrypted AI memories and notes for Cursor, Claude, Codex, and any MCP client.",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",
@@ -34,9 +34,9 @@
34
34
  "esbuild": "^0.25.0",
35
35
  "typescript": "^5.8.0",
36
36
  "vitest": "^3.0.0",
37
- "@batalabs/virlow-memory": "3.70.0",
38
- "@batalabs/virlow-mcp-core": "3.70.0",
39
- "@batalabs/virlow-crypto": "3.70.0"
37
+ "@batalabs/virlow-memory": "3.70.1",
38
+ "@batalabs/virlow-mcp-core": "3.70.1",
39
+ "@batalabs/virlow-crypto": "3.70.1"
40
40
  },
41
41
  "scripts": {
42
42
  "build": "node build.mjs",