seekstone 0.15.1 → 0.15.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/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -517,7 +517,7 @@ function routeToLexical(query, topPaths, topN = 3) {
|
|
|
517
517
|
const words = new Set(queryWords(query));
|
|
518
518
|
if (words.size === 0) return false;
|
|
519
519
|
return topPaths.slice(0, topN).some((path2) => {
|
|
520
|
-
const base = (path2.split(/
|
|
520
|
+
const base = (path2.split("/").pop() ?? "").replace(/\.md$/, "").toLowerCase();
|
|
521
521
|
const parts = new Set(base.split(/\W+/).filter(Boolean));
|
|
522
522
|
return parts.size === words.size && [...parts].every((p) => words.has(p));
|
|
523
523
|
});
|
|
@@ -2508,8 +2508,8 @@ async function walkVault(vaultRoot2) {
|
|
|
2508
2508
|
const absPath = typeof m === "string" ? m : m.path;
|
|
2509
2509
|
const stats = typeof m === "string" ? await stat(absPath) : m.stats;
|
|
2510
2510
|
if (!stats) continue;
|
|
2511
|
-
const relPath = relative(vaultRoot2, absPath);
|
|
2512
|
-
const topDir = relPath.split(
|
|
2511
|
+
const relPath = relative(vaultRoot2, absPath).split(sep2).join("/");
|
|
2512
|
+
const topDir = relPath.split("/")[0] ?? "";
|
|
2513
2513
|
entries.push({
|
|
2514
2514
|
absPath,
|
|
2515
2515
|
relPath,
|
|
@@ -4254,7 +4254,7 @@ function startWatcher(ctx2, log2, opts) {
|
|
|
4254
4254
|
}
|
|
4255
4255
|
|
|
4256
4256
|
// src/index.ts
|
|
4257
|
-
var VERSION = true ? "0.15.
|
|
4257
|
+
var VERSION = true ? "0.15.2" : "0.0.0-dev";
|
|
4258
4258
|
var intent = parseCliIntent(process.argv.slice(2));
|
|
4259
4259
|
if (intent === "version") {
|
|
4260
4260
|
process.stdout.write(`${VERSION}
|