skillwiki 0.2.1-beta.23 → 0.2.1-beta.25

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
@@ -947,7 +947,7 @@ import { dirname as dirname3, resolve as resolve2, join as join5 } from "path";
947
947
 
948
948
  // src/parsers/citations.ts
949
949
  var FENCE2 = /```[\s\S]*?```/g;
950
- var INLINE_CODE = /`[^`\n]+`/g;
950
+ var INLINE_CODE = /``[^`\n]+``|`[^`\n]+`/g;
951
951
  var MARKER_RE = /\^\[(raw\/[^\]]+)\]/g;
952
952
  function stripFences(body) {
953
953
  return body.replace(FENCE2, "").replace(INLINE_CODE, "");
@@ -979,15 +979,15 @@ function isLegacyCitationStyle(body) {
979
979
  continue;
980
980
  }
981
981
  if (inSources) continue;
982
+ const matches = [...line.matchAll(MARKER_RE)];
983
+ if (matches.length === 0) continue;
982
984
  const markerOnly = line.replace(MARKER_RE, "").trim();
983
- if (markerOnly.length === 0 && /\^\[raw\//.test(line)) return true;
984
- const lastMarkerIdx = line.lastIndexOf("^[raw/");
985
- if (lastMarkerIdx >= 0) {
986
- const afterLast = line.slice(lastMarkerIdx).replace(MARKER_RE, "").trim();
987
- if (afterLast.length > 0) return true;
988
- const beforeFirst = line.slice(0, line.indexOf("^[raw/")).trim();
989
- if (beforeFirst.length > 0 && !/[.!?]\s*$/.test(beforeFirst)) return true;
990
- }
985
+ if (markerOnly.length === 0) return true;
986
+ const lastMatch = matches[matches.length - 1];
987
+ const afterLast = line.slice(lastMatch.index + lastMatch[0].length).replace(MARKER_RE, "").trim();
988
+ if (afterLast.length > 0) return true;
989
+ const beforeFirst = line.slice(0, matches[0].index).trim();
990
+ if (beforeFirst.length > 0 && !/[.!?]\s*$/.test(beforeFirst)) return true;
991
991
  }
992
992
  return false;
993
993
  }
@@ -5894,7 +5894,7 @@ program.command("doctor").description("diagnose skillwiki setup issues").action(
5894
5894
  currentVersion: pkg.version,
5895
5895
  cwd: process.cwd()
5896
5896
  })));
5897
- program.command("status [vault]").description("output vault diagnostics").option("--human", "render terminal-readable output instead of JSON").option("--json", "output as JSON (default)").option("--wiki <name>", "wiki profile name").action(async (vault, opts) => {
5897
+ program.command("status [vault]").description("output vault diagnostics").option("--wiki <name>", "wiki profile name").action(async (vault, opts) => {
5898
5898
  const v = await resolveVaultArg(vault, opts.wiki);
5899
5899
  if (!v.ok) emit({ exitCode: v.exitCode, result: v.payload });
5900
5900
  else emit(await runStatus({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "skillwiki",
3
- "version": "0.2.1-beta.23",
3
+ "version": "0.2.1-beta.25",
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.23",
3
+ "version": "0.2.1-beta.25",
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.23",
3
+ "version": "0.2.1-beta.25",
4
4
  "private": true,
5
5
  "files": [
6
6
  "wiki-*",