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:
|
|
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
|
-
|
|
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 =
|
|
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
|
-
|
|
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
|
-
|
|
7199
|
-
|
|
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
|
|
7210
|
-
|
|
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(/^"
|
|
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
package/dist/skillwiki-mcp.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "skillwiki",
|
|
3
|
-
"version": "0.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": {
|