skillwiki 0.2.1-beta.25 → 0.2.1-beta.27

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 CHANGED
@@ -973,6 +973,7 @@ function isLegacyCitationStyle(body) {
973
973
  if (!hasSourcesFooter(body)) return true;
974
974
  const lines = stripFences(body).split("\n");
975
975
  let inSources = false;
976
+ let lastNonBlankWasTable = false;
976
977
  for (const line of lines) {
977
978
  if (/^## Sources\b/.test(line.trim())) {
978
979
  inSources = true;
@@ -980,9 +981,13 @@ function isLegacyCitationStyle(body) {
980
981
  }
981
982
  if (inSources) continue;
982
983
  const matches = [...line.matchAll(MARKER_RE)];
983
- if (matches.length === 0) continue;
984
+ if (matches.length === 0) {
985
+ if (line.trim().length > 0) lastNonBlankWasTable = /^\|/.test(line.trim());
986
+ continue;
987
+ }
984
988
  const markerOnly = line.replace(MARKER_RE, "").trim();
985
- if (markerOnly.length === 0) return true;
989
+ if (markerOnly.length === 0 && !lastNonBlankWasTable) return true;
990
+ lastNonBlankWasTable = false;
986
991
  const lastMatch = matches[matches.length - 1];
987
992
  const afterLast = line.slice(lastMatch.index + lastMatch[0].length).replace(MARKER_RE, "").trim();
988
993
  if (afterLast.length > 0) return true;
@@ -1212,7 +1217,16 @@ async function createSymlink(src, dst) {
1212
1217
  async function runInstall(input) {
1213
1218
  let entries;
1214
1219
  try {
1215
- entries = (await readdir2(input.skillsRoot, { withFileTypes: true })).filter((d) => d.isDirectory() && (d.name.startsWith("wiki-") || d.name.startsWith("proj-") || d.name === "dev-loop-research" || d.name === "using-skillwiki")).map((d) => d.name);
1220
+ const dirs = (await readdir2(input.skillsRoot, { withFileTypes: true })).filter((d) => d.isDirectory());
1221
+ const withSkill = [];
1222
+ for (const d of dirs) {
1223
+ try {
1224
+ await stat4(join6(input.skillsRoot, d.name, "SKILL.md"));
1225
+ withSkill.push(d.name);
1226
+ } catch {
1227
+ }
1228
+ }
1229
+ entries = withSkill;
1216
1230
  } catch (e) {
1217
1231
  return { exitCode: ExitCode.PREFLIGHT_FAILED, result: err("PREFLIGHT_FAILED", { message: String(e) }) };
1218
1232
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "skillwiki",
3
- "version": "0.2.1-beta.25",
3
+ "version": "0.2.1-beta.27",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "skillwiki": "dist/cli.js"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "skillwiki",
3
- "version": "0.2.1-beta.25",
3
+ "version": "0.2.1-beta.27",
4
4
  "skills": "./",
5
5
  "description": "Project-aware Karpathy-style knowledge base for Claude Code: 19 prompt-only skills (wiki-*, proj-*, dev-loop-research, using-skillwiki) backed by the deterministic `skillwiki` CLI.",
6
6
  "author": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skillwiki/skills",
3
- "version": "0.2.1-beta.25",
3
+ "version": "0.2.1-beta.27",
4
4
  "private": true,
5
5
  "files": [
6
6
  "wiki-*",