@jacklika/dsh-tool-memory-filesystem 0.1.3-alpha.1 → 0.1.3-alpha.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.
Files changed (2) hide show
  1. package/lib/index.js +9 -0
  2. package/package.json +3 -3
package/lib/index.js CHANGED
@@ -191,6 +191,15 @@ export async function resolveLinkTarget(root, extensions, target) {
191
191
  export async function listNotePaths(root, extensions, indexHiddenDirs = false) {
192
192
  const results = [];
193
193
  const exclude = new Set(['.git', 'node_modules', '.obsidian']);
194
+ try {
195
+ if (!(await stat(root)).isDirectory())
196
+ return results;
197
+ }
198
+ catch (err) {
199
+ if (err.code === 'ENOENT')
200
+ return results;
201
+ throw err;
202
+ }
194
203
  async function walk(dir) {
195
204
  const entries = await readdir(dir, { withFileTypes: true });
196
205
  for (const entry of entries) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@jacklika/dsh-tool-memory-filesystem",
3
3
  "description": "Model-facing wiki/memory tools over a local Markdown vault: read, search, and write notes with Obsidian-style links and YAML frontmatter.",
4
- "version": "0.1.3-alpha.1",
4
+ "version": "0.1.3-alpha.2",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -36,7 +36,7 @@
36
36
  },
37
37
  "peerDependencies": {
38
38
  "@deepseek-ai/cordis": "4.0.4",
39
- "@deepseek-ai/dsh-tools": ">=0.1.7-rc.1 <0.3.0",
40
- "@deepseek-ai/dsh-util-values": ">=0.1.7-rc.1 <0.3.0"
39
+ "@deepseek-ai/dsh-tools": ">=0.1.7-rc.1 <0.3.0-0",
40
+ "@deepseek-ai/dsh-util-values": ">=0.1.7-rc.1 <0.3.0-0"
41
41
  }
42
42
  }