slidemind 0.1.2 → 0.1.3
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/package.json +1 -1
- package/src/bridge/config.mjs +8 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "slidemind",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "Connect Claude Code, Codex & opencode to the slidemind PowerPoint add-in — let your coding agent build and edit native, on-brand PowerPoint decks against your active corporate design, from the terminal.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
package/src/bridge/config.mjs
CHANGED
|
@@ -22,13 +22,19 @@ import os from "node:os";
|
|
|
22
22
|
import path from "node:path";
|
|
23
23
|
|
|
24
24
|
export function sessionConfigDir() {
|
|
25
|
+
// An explicitly set XDG_CONFIG_HOME wins on EVERY platform — it's a
|
|
26
|
+
// deliberate override (and how the test suite isolates the store, also on
|
|
27
|
+
// Windows). The platform default below is %APPDATA% on Windows, ~/.config
|
|
28
|
+
// elsewhere.
|
|
29
|
+
if (process.env.XDG_CONFIG_HOME) {
|
|
30
|
+
return path.join(process.env.XDG_CONFIG_HOME, "slidemind");
|
|
31
|
+
}
|
|
25
32
|
if (process.platform === "win32") {
|
|
26
33
|
const base =
|
|
27
34
|
process.env.APPDATA || path.join(os.homedir(), "AppData", "Roaming");
|
|
28
35
|
return path.join(base, "slidemind");
|
|
29
36
|
}
|
|
30
|
-
|
|
31
|
-
return path.join(base, "slidemind");
|
|
37
|
+
return path.join(os.homedir(), ".config", "slidemind");
|
|
32
38
|
}
|
|
33
39
|
|
|
34
40
|
export function sessionConfigPath() {
|