skillwiki 0.2.1-beta.1 → 0.2.1-beta.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/cli.js +8 -1
- package/package.json +2 -2
- package/skills/.claude-plugin/plugin.json +2 -2
- package/skills/package.json +2 -2
package/dist/cli.js
CHANGED
|
@@ -878,6 +878,10 @@ function hasOrphanedCitations(body) {
|
|
|
878
878
|
}
|
|
879
879
|
return false;
|
|
880
880
|
}
|
|
881
|
+
function hasWikilinkCitations(body) {
|
|
882
|
+
const stripped = stripFences(body);
|
|
883
|
+
return /\[\[raw\/[^\]]+\]\]/.test(stripped);
|
|
884
|
+
}
|
|
881
885
|
|
|
882
886
|
// src/commands/audit.ts
|
|
883
887
|
async function runAudit(input) {
|
|
@@ -1704,7 +1708,7 @@ function hasDuplicateFrontmatter(body) {
|
|
|
1704
1708
|
}
|
|
1705
1709
|
var ERROR_ORDER = ["broken_wikilinks", "invalid_frontmatter", "raw_dedup", "tag_not_in_taxonomy"];
|
|
1706
1710
|
var WARNING_ORDER = ["index_incomplete", "index_link_format", "stale_page", "page_too_large", "log_rotate_needed", "orphans", "legacy_citation_style", "orphaned_citations", "duplicate_frontmatter", "missing_overview"];
|
|
1707
|
-
var INFO_ORDER = ["bridges", "page_structure", "topic_map_recommended", "frontmatter_wikilink"];
|
|
1711
|
+
var INFO_ORDER = ["bridges", "page_structure", "topic_map_recommended", "frontmatter_wikilink", "wikilink_citation"];
|
|
1708
1712
|
async function runLint(input) {
|
|
1709
1713
|
const buckets = {};
|
|
1710
1714
|
const links = await runLinks({ vault: input.vault });
|
|
@@ -1757,6 +1761,7 @@ async function runLint(input) {
|
|
|
1757
1761
|
const dupFrontmatter = [];
|
|
1758
1762
|
const noOverview = [];
|
|
1759
1763
|
const fmWikilinkFlags = [];
|
|
1764
|
+
const wikilinkCitationFlags = [];
|
|
1760
1765
|
for (const page of scan.data.typedKnowledge) {
|
|
1761
1766
|
const text = await readPage(page);
|
|
1762
1767
|
const split = splitFrontmatter(text);
|
|
@@ -1766,6 +1771,7 @@ async function runLint(input) {
|
|
|
1766
1771
|
if (hasDuplicateFrontmatter(body)) dupFrontmatter.push(page.relPath);
|
|
1767
1772
|
if (isLegacyCitationStyle(body)) legacyPages.push(page.relPath);
|
|
1768
1773
|
if (hasOrphanedCitations(body)) orphanedPages.push(page.relPath);
|
|
1774
|
+
if (hasWikilinkCitations(body)) wikilinkCitationFlags.push(page.relPath);
|
|
1769
1775
|
const fmLinks = rawFm.match(/\[\[([^\[\]|]+)(?:\|[^\[\]]*)?\]\]/g) ?? [];
|
|
1770
1776
|
for (const link of fmLinks) {
|
|
1771
1777
|
const target = link.replace(/^\[\[/, "").replace(/(?:\|[^\[\]]*)?\]\]$/, "").trim();
|
|
@@ -1794,6 +1800,7 @@ async function runLint(input) {
|
|
|
1794
1800
|
if (dupFrontmatter.length > 0) buckets.duplicate_frontmatter = dupFrontmatter;
|
|
1795
1801
|
if (noOverview.length > 0) buckets.missing_overview = noOverview;
|
|
1796
1802
|
if (fmWikilinkFlags.length > 0) buckets.frontmatter_wikilink = fmWikilinkFlags;
|
|
1803
|
+
if (wikilinkCitationFlags.length > 0) buckets.wikilink_citation = wikilinkCitationFlags;
|
|
1797
1804
|
}
|
|
1798
1805
|
const errorOut = ERROR_ORDER.flatMap((k) => buckets[k] ? [{ kind: k, items: buckets[k] }] : []);
|
|
1799
1806
|
const warningOut = WARNING_ORDER.flatMap((k) => buckets[k] ? [{ kind: k, items: buckets[k] }] : []);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "skillwiki",
|
|
3
|
-
"version": "0.2.1-beta.
|
|
4
|
-
"version": "0.2.1-beta.
|
|
3
|
+
"version": "0.2.1-beta.2",
|
|
4
|
+
"version": "0.2.1-beta.2",
|
|
5
5
|
"skills": "./",
|
|
6
6
|
"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).",
|
|
7
7
|
"author": {
|