skillwiki 0.2.0-beta.19 → 0.2.0-beta.20
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/cli.js +5 -2
- package/package.json +1 -1
- package/skills/.claude-plugin/plugin.json +1 -1
- package/skills/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -639,7 +639,10 @@ async function runOrphans(input) {
|
|
|
639
639
|
if (!scan.ok) return { exitCode: ExitCode.VAULT_PATH_INVALID, result: scan };
|
|
640
640
|
const slugToPath = {};
|
|
641
641
|
for (const p of scan.data.typedKnowledge) {
|
|
642
|
-
|
|
642
|
+
const rel = p.relPath.replace(/\.md$/, "");
|
|
643
|
+
slugToPath[rel] = p.relPath;
|
|
644
|
+
const filename = rel.split("/").pop();
|
|
645
|
+
if (!(filename in slugToPath)) slugToPath[filename] = p.relPath;
|
|
643
646
|
}
|
|
644
647
|
const adj = {};
|
|
645
648
|
for (const p of scan.data.typedKnowledge) adj[p.relPath] = /* @__PURE__ */ new Set();
|
|
@@ -648,7 +651,7 @@ async function runOrphans(input) {
|
|
|
648
651
|
const split = splitFrontmatter(text);
|
|
649
652
|
const body = split.ok ? split.data.body : text;
|
|
650
653
|
for (const slug of extractBodyWikilinks(body)) {
|
|
651
|
-
const tgt = slugToPath[slug.split("/").pop()];
|
|
654
|
+
const tgt = slugToPath[slug] ?? slugToPath[slug.split("/").pop()];
|
|
652
655
|
if (tgt) {
|
|
653
656
|
adj[p.relPath].add(tgt);
|
|
654
657
|
adj[tgt].add(p.relPath);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "skillwiki",
|
|
3
|
-
"version": "0.2.0-beta.
|
|
3
|
+
"version": "0.2.0-beta.20",
|
|
4
4
|
"skills": "./",
|
|
5
5
|
"description": "Project-aware Karpathy-style knowledge base for Claude Code: 11 prompt-only skills (wiki-*, proj-*, using-skillwiki) backed by the deterministic `skillwiki` CLI (8 subcommands, JSON-by-default).",
|
|
6
6
|
"author": {
|