virlow-mcp 3.97.0 → 3.98.0

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 +9 -1
  2. package/package.json +4 -4
package/dist/cli.js CHANGED
@@ -509,6 +509,9 @@ async function decryptAttachment(key, enc) {
509
509
  return { filename, bytes };
510
510
  }
511
511
 
512
+ // ../../packages/crypto/dist/chunked.js
513
+ var AAD_LABEL = new TextEncoder().encode("virlow-file-v3");
514
+
512
515
  // ../../packages/crypto/dist/verifier.js
513
516
  async function verifyVerifierBlob(key, blob) {
514
517
  try {
@@ -2741,6 +2744,9 @@ ${bytesToBase64(bytes)}`;
2741
2744
  // ../../packages/mcp-core/dist/attachments.js
2742
2745
  var WRONG_KEY_MESSAGE = "Could not decrypt this file with your vault key. Open it in the Virlow app.";
2743
2746
  var API_LEGACY_RENAME_PREFIX = "This file uses an older format.";
2747
+ function largeFileMessage(size) {
2748
+ return `This file is ${formatSize(size)}, too large to read here. Open it in the Virlow app.`;
2749
+ }
2744
2750
  function renameFailure(err) {
2745
2751
  if (err instanceof ApiError && err.status === 409 && err.message.startsWith(API_LEGACY_RENAME_PREFIX)) {
2746
2752
  return new LegacyAttachmentError();
@@ -2795,6 +2801,8 @@ var AttachmentsService = class {
2795
2801
  const key = this.requireSession();
2796
2802
  const meta = await this.api.getFileMeta(id);
2797
2803
  await this.requireExposed(meta.noteId);
2804
+ if (meta.chunkSize)
2805
+ throw new Error(largeFileMessage(meta.size));
2798
2806
  const file = await this.api.getFile(id);
2799
2807
  if (file.noteId !== meta.noteId)
2800
2808
  await this.requireExposed(file.noteId);
@@ -6104,7 +6112,7 @@ function startUnlockServer(api, vault, opts = {}) {
6104
6112
  }
6105
6113
 
6106
6114
  // src/version.ts
6107
- var VERSION = true ? "3.97.0" : "dev";
6115
+ var VERSION = true ? "3.98.0" : "dev";
6108
6116
 
6109
6117
  // src/server.ts
6110
6118
  function defaultEmbeddingCacheDir() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "virlow-mcp",
3
- "version": "3.97.0",
3
+ "version": "3.98.0",
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": "^4.1.11",
37
- "@batalabs/virlow-crypto": "3.97.0",
38
- "@batalabs/virlow-mcp-core": "3.97.0",
39
- "@batalabs/virlow-memory": "3.97.0"
37
+ "@batalabs/virlow-crypto": "3.98.0",
38
+ "@batalabs/virlow-mcp-core": "3.98.0",
39
+ "@batalabs/virlow-memory": "3.98.0"
40
40
  },
41
41
  "scripts": {
42
42
  "build": "node build.mjs",