skillwiki 0.9.41 → 0.9.43
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
|
@@ -1216,8 +1216,98 @@ function writeReport(out, report) {
|
|
|
1216
1216
|
writeFileSync2(tmp, JSON.stringify(ok(report), null, 2) + "\n", "utf8");
|
|
1217
1217
|
renameSync(tmp, out);
|
|
1218
1218
|
}
|
|
1219
|
+
function buildIncompleteReport(input, syncMode) {
|
|
1220
|
+
const vaultSource = input.vaultSource ?? "resolved";
|
|
1221
|
+
const vaultSyncCoverage = syncMode === "off" ? { state: "skipped", status: "pass", reason: "--sync off" } : { state: "unknown", status: "unknown", reason: "health run not complete" };
|
|
1222
|
+
const vaultSyncComponent = syncMode === "off" ? {
|
|
1223
|
+
status: "pass",
|
|
1224
|
+
blocking: false,
|
|
1225
|
+
installed: false,
|
|
1226
|
+
summary: { pass: 0, info: 0, warn: 0, error: 0, skipped: 1 },
|
|
1227
|
+
checks: [{ id: "vault_sync_skipped", status: "pass", detail: "vault-sync checks skipped by --sync off" }]
|
|
1228
|
+
} : {
|
|
1229
|
+
status: "unknown",
|
|
1230
|
+
blocking: syncMode === "required",
|
|
1231
|
+
installed: false,
|
|
1232
|
+
summary: { pass: 0, info: 0, warn: 0, error: 0, skipped: 0 },
|
|
1233
|
+
checks: []
|
|
1234
|
+
};
|
|
1235
|
+
const warnings = [{
|
|
1236
|
+
id: "health_report_incomplete",
|
|
1237
|
+
message: "health report is incomplete; lint summary is still running or the command exited early"
|
|
1238
|
+
}];
|
|
1239
|
+
if (input.out && resolve2(input.out).startsWith(resolve2(input.vault) + "/")) {
|
|
1240
|
+
warnings.push({
|
|
1241
|
+
id: "report_inside_vault",
|
|
1242
|
+
message: "health report was written inside the vault; this may create sync churn"
|
|
1243
|
+
});
|
|
1244
|
+
}
|
|
1245
|
+
const reportWithoutHint = {
|
|
1246
|
+
schema_version: 1,
|
|
1247
|
+
policy_version: 1,
|
|
1248
|
+
tool: { name: "skillwiki", version: input.currentVersion },
|
|
1249
|
+
generated_at: (/* @__PURE__ */ new Date()).toISOString(),
|
|
1250
|
+
command_kind: "diagnostic",
|
|
1251
|
+
vault: { path: input.vault, source: vaultSource },
|
|
1252
|
+
overall_status: "unknown",
|
|
1253
|
+
blocking_status: "unknown",
|
|
1254
|
+
advisory_status: "unknown",
|
|
1255
|
+
coverage: {
|
|
1256
|
+
doctor: { state: "unknown", status: "unknown", reason: "health run not complete" },
|
|
1257
|
+
lint: { state: "unknown", status: "unknown", reason: "lint summary still running" },
|
|
1258
|
+
vault_sync: vaultSyncCoverage,
|
|
1259
|
+
query_readiness: { state: "unknown", status: "unknown", reason: "health run not complete" },
|
|
1260
|
+
source_freshness: { state: "unknown", status: "unknown", reason: "health run not complete" }
|
|
1261
|
+
},
|
|
1262
|
+
components: {
|
|
1263
|
+
doctor: {
|
|
1264
|
+
status: "unknown",
|
|
1265
|
+
blocking: false,
|
|
1266
|
+
summary: { pass: 0, info: 0, warn: 0, error: 0 },
|
|
1267
|
+
checks: []
|
|
1268
|
+
},
|
|
1269
|
+
lint: {
|
|
1270
|
+
status: "unknown",
|
|
1271
|
+
blocking: true,
|
|
1272
|
+
summary: { errors: 0, warnings: 0, info: 0 },
|
|
1273
|
+
buckets: [],
|
|
1274
|
+
details_included: false,
|
|
1275
|
+
truncated: false
|
|
1276
|
+
},
|
|
1277
|
+
vault_sync: vaultSyncComponent,
|
|
1278
|
+
query_readiness: {
|
|
1279
|
+
status: "unknown",
|
|
1280
|
+
blocking: false,
|
|
1281
|
+
summary: { score: 0 },
|
|
1282
|
+
signals: []
|
|
1283
|
+
},
|
|
1284
|
+
source_freshness: {
|
|
1285
|
+
status: "unknown",
|
|
1286
|
+
blocking: false,
|
|
1287
|
+
summary: { stale_pages: 0, file_source_url: 0, stale_sections: 0 }
|
|
1288
|
+
}
|
|
1289
|
+
},
|
|
1290
|
+
risk_flags: [],
|
|
1291
|
+
details_included: false,
|
|
1292
|
+
truncated: false,
|
|
1293
|
+
mutated: false,
|
|
1294
|
+
post_commit_ran: false,
|
|
1295
|
+
report_complete: false,
|
|
1296
|
+
report_written: !!input.out,
|
|
1297
|
+
report_path: input.out,
|
|
1298
|
+
warnings,
|
|
1299
|
+
self_check: { status: "pass", errors: [] }
|
|
1300
|
+
};
|
|
1301
|
+
return {
|
|
1302
|
+
...reportWithoutHint,
|
|
1303
|
+
humanHint: buildHumanHint(reportWithoutHint)
|
|
1304
|
+
};
|
|
1305
|
+
}
|
|
1219
1306
|
async function runHealth(input) {
|
|
1220
1307
|
const syncMode = input.sync ?? "optional";
|
|
1308
|
+
if (input.out) {
|
|
1309
|
+
writeReport(input.out, buildIncompleteReport(input, syncMode));
|
|
1310
|
+
}
|
|
1221
1311
|
const doctor = await runDoctor({
|
|
1222
1312
|
home: input.home,
|
|
1223
1313
|
envValue: input.envValue,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "skillwiki",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.43",
|
|
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": {
|