virlow-mcp 3.97.0 → 3.99.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 +13 -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 {
@@ -529,6 +532,10 @@ async function canDecryptWithKey(key, ciphertextBase64, ivBase64) {
529
532
  }
530
533
  }
531
534
 
535
+ // ../../packages/crypto/dist/sharing.js
536
+ var SEAL_INFO = new TextEncoder().encode("virlow-seal-v1");
537
+ var COMMIT_LABEL = new TextEncoder().encode("virlow-wk-commit-v1");
538
+
532
539
  // ../../packages/mcp-core/dist/exposure.js
533
540
  function computeExposure(folders, opts = {}) {
534
541
  const byId = new Map(folders.map((f) => [f.id, f]));
@@ -2741,6 +2748,9 @@ ${bytesToBase64(bytes)}`;
2741
2748
  // ../../packages/mcp-core/dist/attachments.js
2742
2749
  var WRONG_KEY_MESSAGE = "Could not decrypt this file with your vault key. Open it in the Virlow app.";
2743
2750
  var API_LEGACY_RENAME_PREFIX = "This file uses an older format.";
2751
+ function largeFileMessage(size) {
2752
+ return `This file is ${formatSize(size)}, too large to read here. Open it in the Virlow app.`;
2753
+ }
2744
2754
  function renameFailure(err) {
2745
2755
  if (err instanceof ApiError && err.status === 409 && err.message.startsWith(API_LEGACY_RENAME_PREFIX)) {
2746
2756
  return new LegacyAttachmentError();
@@ -2795,6 +2805,8 @@ var AttachmentsService = class {
2795
2805
  const key = this.requireSession();
2796
2806
  const meta = await this.api.getFileMeta(id);
2797
2807
  await this.requireExposed(meta.noteId);
2808
+ if (meta.chunkSize)
2809
+ throw new Error(largeFileMessage(meta.size));
2798
2810
  const file = await this.api.getFile(id);
2799
2811
  if (file.noteId !== meta.noteId)
2800
2812
  await this.requireExposed(file.noteId);
@@ -6104,7 +6116,7 @@ function startUnlockServer(api, vault, opts = {}) {
6104
6116
  }
6105
6117
 
6106
6118
  // src/version.ts
6107
- var VERSION = true ? "3.97.0" : "dev";
6119
+ var VERSION = true ? "3.99.0" : "dev";
6108
6120
 
6109
6121
  // src/server.ts
6110
6122
  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.99.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.99.0",
38
+ "@batalabs/virlow-memory": "3.99.0",
39
+ "@batalabs/virlow-mcp-core": "3.99.0"
40
40
  },
41
41
  "scripts": {
42
42
  "build": "node build.mjs",