knowmind 0.1.26 → 0.1.27
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 +13 -0
- package/package.json +2 -2
- package/src/config.js +11 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# Knowmind CLI — Änderungen
|
|
2
2
|
|
|
3
|
+
## 0.1.27 (2026-07-16)
|
|
4
|
+
|
|
5
|
+
**Windows: `login` erzeugte eine unlesbare config.json (P0)**
|
|
6
|
+
- Der NTFS-Lockdown vergab Datei-Rechte mit Vererbungsflags `(OI)(CI)` — auf
|
|
7
|
+
Dateien sind solche ACEs wirkungslos (Inherit-Only). Ergebnis: direkt nach
|
|
8
|
+
erfolgreichem `knowmind login` war die Config für alle Konten gesperrt und
|
|
9
|
+
jeder Folgebefehl endete mit „Kein Token konfiguriert", obwohl icacls Exit 0
|
|
10
|
+
meldete. Jetzt bekommen Dateien `:F` ohne Vererbungsflags, Ordner weiterhin
|
|
11
|
+
`:(OI)(CI)F`. Gefunden im E2E-Kundendurchlauf auf Windows 11 (Deutsch).
|
|
12
|
+
- Betroffen: jede Neuanmeldung unter Windows seit Einführung des Lockdowns.
|
|
13
|
+
Abhilfe für Betroffene: einmal `knowmind login --token …` mit 0.1.27
|
|
14
|
+
wiederholen (überschreibt die Config mit korrekten Rechten).
|
|
15
|
+
|
|
3
16
|
## 0.1.25 (2026-06-23)
|
|
4
17
|
|
|
5
18
|
**Geführtes Onboarding nach `install`/`init`**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "knowmind",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.27",
|
|
4
4
|
"mcpName": "io.github.Schubeler-Consulting/knowmind",
|
|
5
5
|
"description": "Knowmind — das Agentengehirn aus Deutschland: CLI + MCP-Server (Langzeitgedächtnis & Wissensgraph für Ihre KI, Server in Deutschland).",
|
|
6
6
|
"type": "module",
|
|
@@ -58,4 +58,4 @@
|
|
|
58
58
|
"publishConfig": {
|
|
59
59
|
"access": "public"
|
|
60
60
|
}
|
|
61
|
-
}
|
|
61
|
+
}
|
package/src/config.js
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* - Beim Start löschen wir Backup-Files (`config.json.bak*`,
|
|
15
15
|
* `config.json.sc-backup`), die frühere Versionen hinterlassen haben.
|
|
16
16
|
*/
|
|
17
|
-
import { readFileSync, writeFileSync, mkdirSync, existsSync, readdirSync, unlinkSync } from "node:fs";
|
|
17
|
+
import { readFileSync, writeFileSync, mkdirSync, existsSync, readdirSync, unlinkSync, statSync } from "node:fs";
|
|
18
18
|
import { homedir, userInfo, platform } from "node:os";
|
|
19
19
|
import { join } from "node:path";
|
|
20
20
|
import { spawnSync } from "node:child_process";
|
|
@@ -69,15 +69,21 @@ function _lockdown(target) {
|
|
|
69
69
|
if (platform() !== "win32") return;
|
|
70
70
|
try {
|
|
71
71
|
const user = userInfo().username;
|
|
72
|
+
// (OI)(CI) gilt NUR für Ordner. Auf einer Datei erzeugen Vererbungsflags
|
|
73
|
+
// Inherit-Only-ACEs, die für die Datei selbst nicht greifen — Ergebnis
|
|
74
|
+
// wäre eine für ALLE (inkl. Besitzer) unlesbare config.json, obwohl
|
|
75
|
+
// icacls Exit 0 meldet. (E2E-Befund 2026-07-16: jeder frische
|
|
76
|
+
// `knowmind login` unter Windows machte die CLI unbrauchbar.)
|
|
77
|
+
const suffix = statSync(target).isDirectory() ? ":(OI)(CI)F" : ":F";
|
|
72
78
|
// /reset alleine reicht nicht — die geerbten Berechtigungen müssen weg.
|
|
73
79
|
spawnSync("icacls", [target, "/inheritance:r"], { stdio: "ignore" });
|
|
74
|
-
spawnSync("icacls", [target, "/grant:r", `${user}
|
|
75
|
-
spawnSync("icacls", [target, "/grant:r",
|
|
76
|
-
spawnSync("icacls", [target, "/grant:r",
|
|
80
|
+
spawnSync("icacls", [target, "/grant:r", `${user}${suffix}`], { stdio: "ignore" });
|
|
81
|
+
spawnSync("icacls", [target, "/grant:r", `SYSTEM${suffix}`], { stdio: "ignore" });
|
|
82
|
+
spawnSync("icacls", [target, "/grant:r", `Administratoren${suffix}`], {
|
|
77
83
|
stdio: "ignore",
|
|
78
84
|
});
|
|
79
85
|
// EN-Variante als Fallback (icacls akzeptiert beide nur in jeweiliger Locale)
|
|
80
|
-
spawnSync("icacls", [target, "/grant:r",
|
|
86
|
+
spawnSync("icacls", [target, "/grant:r", `Administrators${suffix}`], {
|
|
81
87
|
stdio: "ignore",
|
|
82
88
|
});
|
|
83
89
|
} catch {
|