memtrails 0.4.1 → 0.4.2

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.
package/CHANGELOG.md CHANGED
@@ -5,6 +5,12 @@ versions follow [Semantic Versioning](https://semver.org/).
5
5
 
6
6
  ## [Unreleased]
7
7
 
8
+ ## [0.4.2] — 2026-11-05
9
+
10
+ - Fixes: the first start no longer fails when run as root (as in most containers) with "is not this user's alone":
11
+ the downloaded Qdrant binary was unpacked with the archive's owner and then refused. TypeScript and Python; the Rust
12
+ version was not affected and is released at the same version.
13
+
8
14
  ## [0.4.1] — 2026-11-05
9
15
 
10
16
  - Native Python (`pip install memtrails`, asyncio) and Rust (`cargo add memtrails`, tokio) versions, with the same
@@ -77,10 +77,13 @@ export function qdrantReady(a = qdrantAsset()) {
77
77
  function tarProgram() {
78
78
  return process.platform === 'win32' ? join(process.env.SystemRoot || 'C:\\Windows', 'System32', 'tar.exe') : 'tar';
79
79
  }
80
- /** Unpack one archive with the system's tar (bsdtar on macOS and Windows reads zip too). */
80
+ /**
81
+ * Unpack one archive with the system's tar (bsdtar on macOS and Windows reads zip too). Run as root, tar would give
82
+ * the files the archive's owner, and the binary would then not be this user's alone.
83
+ */
81
84
  function untar(archive, into) {
82
85
  return new Promise((resolve, reject) => {
83
- const child = spawn(tarProgram(), ['-xf', archive, '-C', into], { stdio: 'ignore' });
86
+ const child = spawn(tarProgram(), ['--no-same-owner', '-xf', archive, '-C', into], { stdio: 'ignore' });
84
87
  child.once('error', reject);
85
88
  child.once('exit', (code) => (code === 0 ? resolve() : reject(new Error(`tar exited ${code}`))));
86
89
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "memtrails",
3
- "version": "0.4.1",
3
+ "version": "0.4.2",
4
4
  "description": "Retrieval and exploration for any text — e-mail, chat, notes, documents, news, commits, conversations. Searchable at once, on your own machine, in any language; optional consolidation into typed knowledge with a language model.",
5
5
  "keywords": [
6
6
  "retrieval",