@cueloop/integration-obsidian 0.1.0-alpha.102 → 0.1.0-alpha.104
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 +3 -3
- package/src/detect.ts +1 -0
- package/src/export.ts +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cueloop/integration-obsidian",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.104",
|
|
4
4
|
"description": "Export reviewed cueloop plans into an Obsidian vault",
|
|
5
5
|
"homepage": "https://github.com/mmurakaru/cueloop#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
"access": "public"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@cueloop/extension-api": "0.1.0-alpha.
|
|
28
|
-
"@cueloop/schema": "0.1.0-alpha.
|
|
27
|
+
"@cueloop/extension-api": "0.1.0-alpha.104",
|
|
28
|
+
"@cueloop/schema": "0.1.0-alpha.104",
|
|
29
29
|
"valibot": "^1.5.0"
|
|
30
30
|
},
|
|
31
31
|
"engines": {
|
package/src/detect.ts
CHANGED
|
@@ -18,6 +18,7 @@ export function obsidianConfigPath(platform: NodeJS.Platform = process.platform)
|
|
|
18
18
|
if (platform === "darwin") {
|
|
19
19
|
return join(homedir(), "Library", "Application Support", "obsidian", "obsidian.json");
|
|
20
20
|
}
|
|
21
|
+
|
|
21
22
|
if (platform === "win32") {
|
|
22
23
|
return join(
|
|
23
24
|
process.env.APPDATA ?? join(homedir(), "AppData", "Roaming"),
|
package/src/export.ts
CHANGED
|
@@ -50,6 +50,7 @@ export function exportSession(
|
|
|
50
50
|
const vault = config.vault ?? detectVaults(config.obsidianConfigPath)[0];
|
|
51
51
|
|
|
52
52
|
if (!vault) return { success: false, error: "no Obsidian vault configured or detected" };
|
|
53
|
+
|
|
53
54
|
if (!existsSync(vault)) return { success: false, error: `vault not found: ${vault}` };
|
|
54
55
|
|
|
55
56
|
const content = session.workingCopy ?? session.artifact.content;
|