skillwiki 0.10.10 → 0.10.11

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.
@@ -4652,7 +4652,7 @@ async function runSyncLintDelta(input) {
4652
4652
  const { mkdtempSync, rmSync, existsSync: fsExists } = await import("fs");
4653
4653
  const { join: pathJoin } = await import("path");
4654
4654
  const { tmpdir } = await import("os");
4655
- const { execFileSync: execFileSync2 } = await import("child_process");
4655
+ const { execFileSync: execFileSync3 } = await import("child_process");
4656
4656
  const vault = input.vault;
4657
4657
  const baseRef = input.baseRef ?? "origin/main";
4658
4658
  const days = input.days ?? 90;
@@ -4665,7 +4665,7 @@ async function runSyncLintDelta(input) {
4665
4665
  };
4666
4666
  }
4667
4667
  try {
4668
- execFileSync2("git", ["rev-parse", "--verify", baseRef], {
4668
+ execFileSync3("git", ["rev-parse", "--verify", baseRef], {
4669
4669
  cwd: vault,
4670
4670
  stdio: ["pipe", "pipe", "pipe"]
4671
4671
  });
@@ -4695,12 +4695,12 @@ async function runSyncLintDelta(input) {
4695
4695
  const fullFps = collectLintErrorFingerprints(fullOutput);
4696
4696
  const tmpRoot = mkdtempSync(pathJoin(tmpdir(), "skillwiki-lint-delta-"));
4697
4697
  try {
4698
- const archive = execFileSync2("git", ["archive", "--format=tar", baseRef], {
4698
+ const archive = execFileSync3("git", ["archive", "--format=tar", baseRef], {
4699
4699
  cwd: vault,
4700
4700
  stdio: ["pipe", "pipe", "pipe"],
4701
4701
  maxBuffer: 256 * 1024 * 1024
4702
4702
  });
4703
- execFileSync2("tar", ["-xf", "-"], {
4703
+ execFileSync3("tar", ["-xf", "-"], {
4704
4704
  cwd: tmpRoot,
4705
4705
  input: archive,
4706
4706
  stdio: ["pipe", "pipe", "pipe"]
@@ -7127,6 +7127,7 @@ function readCliPackageJson(baseUrl = import.meta.url) {
7127
7127
  }
7128
7128
 
7129
7129
  // src/utils/vault-write-gates.ts
7130
+ import { execFileSync as execFileSync2 } from "child_process";
7130
7131
  import { existsSync as existsSync14, readdirSync as readdirSync4, readFileSync as readFileSync12, statSync as statSync3 } from "fs";
7131
7132
  import { join as join26, relative as relative3 } from "path";
7132
7133
  var DEFAULT_DIRTY_VOLUME_THRESHOLD = 50;
@@ -7195,8 +7196,17 @@ function measureDirtyVolume(vault) {
7195
7196
  if (!gitDir) {
7196
7197
  return empty({ is_git_repo: false });
7197
7198
  }
7198
- const porcelain = git(vault, ["status", "--porcelain"]);
7199
- const lines = porcelain ? porcelain.split("\n").filter((l) => l.trim().length > 0) : [];
7199
+ let porcelain = "";
7200
+ try {
7201
+ porcelain = execFileSync2("git", ["status", "--porcelain"], {
7202
+ cwd: vault,
7203
+ encoding: "utf8",
7204
+ stdio: ["pipe", "pipe", "pipe"]
7205
+ });
7206
+ } catch {
7207
+ porcelain = "";
7208
+ }
7209
+ const lines = porcelain.replace(/\n+$/, "").split("\n").filter((l) => l.length > 0);
7200
7210
  let modified = 0;
7201
7211
  let untracked = 0;
7202
7212
  let expanded = 0;
@@ -7206,12 +7216,14 @@ function measureDirtyVolume(vault) {
7206
7216
  bucketMap.set(top, (bucketMap.get(top) ?? 0) + n);
7207
7217
  };
7208
7218
  for (const line of lines) {
7209
- const code = line.slice(0, 2);
7210
- let pathPart = line.slice(3);
7219
+ const match = line.match(/^(.{2}) (.*)$/);
7220
+ if (!match) continue;
7221
+ const code = match[1];
7222
+ let pathPart = match[2] ?? "";
7211
7223
  if (pathPart.includes(" -> ")) {
7212
7224
  pathPart = pathPart.split(" -> ").pop() ?? pathPart;
7213
7225
  }
7214
- const rel = pathPart.replace(/^"|"$/g, "").trim();
7226
+ const rel = pathPart.replace(/^"(.*)"$/, "$1").trim();
7215
7227
  if (!rel) continue;
7216
7228
  if (code === "??") {
7217
7229
  untracked += 1;
package/dist/cli.js CHANGED
@@ -79,7 +79,7 @@ import {
79
79
  taxonomyCommentForPage,
80
80
  upsertIndexEntry,
81
81
  writeLogEvent
82
- } from "./chunk-ZFEZZQFM.js";
82
+ } from "./chunk-P2FCRGKU.js";
83
83
  import {
84
84
  normalizeDistTag,
85
85
  readCache,
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  runSkillwikiMcpStdio
4
- } from "./chunk-ZFEZZQFM.js";
4
+ } from "./chunk-P2FCRGKU.js";
5
5
  import "./chunk-7I2TPIV5.js";
6
6
  import "./chunk-U34B2XQJ.js";
7
7
  import "./chunk-TYN2IHBY.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "skillwiki",
3
- "version": "0.10.10",
3
+ "version": "0.10.11",
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.10.10",
3
+ "version": "0.10.11",
4
4
  "skills": "./",
5
5
  "description": "Project-aware Karpathy-style knowledge base for Claude Code: 19 prompt-only skills (wiki-*, proj-*, using-skillwiki) backed by the deterministic `skillwiki` CLI.",
6
6
  "author": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "skillwiki",
3
- "version": "0.10.10",
3
+ "version": "0.10.11",
4
4
  "description": "Project-aware Karpathy-style knowledge base for Codex with 19 prompt-only skills backed by the deterministic skillwiki CLI.",
5
5
  "author": {
6
6
  "name": "karlorz",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skillwiki/skills",
3
- "version": "0.10.10",
3
+ "version": "0.10.11",
4
4
  "private": true,
5
5
  "files": [
6
6
  "wiki-*",