skillwiki 0.9.23 → 0.9.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
|
@@ -7004,9 +7004,12 @@ function summarizeChecks(checks) {
|
|
|
7004
7004
|
function classifyLog(path, id, label, okPattern) {
|
|
7005
7005
|
if (!existsSync12(path)) return { id, label, status: "warn", detail: `log file missing: ${path}` };
|
|
7006
7006
|
const lines = readFileSync8(path, "utf8").split(/\r?\n/).filter(Boolean);
|
|
7007
|
-
|
|
7008
|
-
|
|
7009
|
-
|
|
7007
|
+
if (lines.length === 0) return { id, label, status: "warn", detail: `log file empty: ${path}` };
|
|
7008
|
+
const statusLine = [...lines].reverse().find(
|
|
7009
|
+
(line) => /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}Z /.test(line) && (okPattern.test(line) || /\bFAIL\b|\bERROR\b/i.test(line))
|
|
7010
|
+
);
|
|
7011
|
+
const last = statusLine ?? lines[lines.length - 1];
|
|
7012
|
+
if (/\bFAIL\b|\bERROR\b/i.test(last)) return { id, label, status: "error", detail: last.slice(0, 120) };
|
|
7010
7013
|
if (okPattern.test(last)) return { id, label, status: "pass", detail: last.slice(0, 120) };
|
|
7011
7014
|
return { id, label, status: "warn", detail: last.slice(0, 120) };
|
|
7012
7015
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "skillwiki",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.25",
|
|
4
4
|
"skills": "./",
|
|
5
5
|
"description": "Project-aware Karpathy-style knowledge base for Claude Code: 18 prompt-only skills (wiki-*, proj-*, using-skillwiki) backed by the deterministic `skillwiki` CLI.",
|
|
6
6
|
"author": {
|