skillwiki 0.10.54 → 0.10.56
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/{chunk-GAHMWLWU.js → chunk-6AMXNODT.js} +1 -1
- package/dist/{chunk-Q23OSECM.js → chunk-AVVFFPQ5.js} +7 -7
- package/dist/{chunk-EHUFPORA.js → chunk-FM6RWVW6.js} +3 -3
- package/dist/{chunk-HBQTTYXZ.js → chunk-JMV7YBQN.js} +2 -2
- package/dist/{chunk-IJ7DD7QZ.js → chunk-MHGUYPGE.js} +1 -0
- package/dist/{chunk-74OSLCXE.js → chunk-NG72ZD4C.js} +1 -1
- package/dist/{chunk-O3HCB7R2.js → chunk-NHRRYAXT.js} +2 -2
- package/dist/cli.js +25 -16
- package/dist/{index-projection-EXBX32RR.js → index-projection-IICN2TUG.js} +3 -3
- package/dist/{managed-write-preflight-CMVCRXRG.js → managed-write-preflight-SP2A57YY.js} +4 -4
- package/dist/skillwiki-mcp.js +7 -7
- package/dist/sources-JABI35OW.js +9 -0
- package/package.json +1 -1
- package/skills/.claude-plugin/plugin.json +1 -1
- package/skills/.codex-plugin/plugin.json +1 -1
- package/skills/package.json +1 -1
- package/dist/sources-BFYEFTS4.js +0 -9
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
import {
|
|
7
7
|
renderRootIndex,
|
|
8
8
|
writeRootIndexProjection
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-NHRRYAXT.js";
|
|
10
10
|
import {
|
|
11
11
|
CONFIG_KEYS,
|
|
12
12
|
acquireOwnedSyncLock,
|
|
@@ -35,11 +35,11 @@ import {
|
|
|
35
35
|
snapshotterAliasForLocalHost,
|
|
36
36
|
toUndirectedWeighted,
|
|
37
37
|
writeDotenv
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-FM6RWVW6.js";
|
|
39
39
|
import {
|
|
40
40
|
atomicWriteText,
|
|
41
41
|
prepareTypedPage
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-NG72ZD4C.js";
|
|
43
43
|
import {
|
|
44
44
|
applySourceCompileClaim,
|
|
45
45
|
applySourceCompilePublished,
|
|
@@ -52,11 +52,11 @@ import {
|
|
|
52
52
|
planSourceCompileRelease,
|
|
53
53
|
planSourceReview,
|
|
54
54
|
runSourcesPending
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-JMV7YBQN.js";
|
|
56
56
|
import {
|
|
57
57
|
eventPathFor,
|
|
58
58
|
writeLogEvent
|
|
59
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-6AMXNODT.js";
|
|
60
60
|
import {
|
|
61
61
|
CompoundSchema,
|
|
62
62
|
ExitCode,
|
|
@@ -77,7 +77,7 @@ import {
|
|
|
77
77
|
scanVault,
|
|
78
78
|
splitFrontmatter,
|
|
79
79
|
systemdPropertyFor
|
|
80
|
-
} from "./chunk-
|
|
80
|
+
} from "./chunk-MHGUYPGE.js";
|
|
81
81
|
|
|
82
82
|
// src/commands/log-append.ts
|
|
83
83
|
import { readFile, stat } from "fs/promises";
|
|
@@ -5918,7 +5918,7 @@ async function runQuery(input) {
|
|
|
5918
5918
|
}
|
|
5919
5919
|
let pendingSources;
|
|
5920
5920
|
if (input.includePending) {
|
|
5921
|
-
const { runSourcesPending: runSourcesPending2 } = await import("./sources-
|
|
5921
|
+
const { runSourcesPending: runSourcesPending2 } = await import("./sources-JABI35OW.js");
|
|
5922
5922
|
const pending = await runSourcesPending2({
|
|
5923
5923
|
vault: input.vault,
|
|
5924
5924
|
match: input.text,
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
atomicWriteText,
|
|
4
4
|
buildRootIndexUniverse
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-NG72ZD4C.js";
|
|
6
6
|
import {
|
|
7
7
|
authorizeRawOperation,
|
|
8
8
|
buildSourceReferenceIndex,
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
resolveExistingRegularFileInsideVault,
|
|
23
23
|
stripFencedBlocks,
|
|
24
24
|
writeLogEvent
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-6AMXNODT.js";
|
|
26
26
|
import {
|
|
27
27
|
ExitCode,
|
|
28
28
|
FleetManifestSchema,
|
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
scanVault,
|
|
41
41
|
splitFrontmatter,
|
|
42
42
|
vaultIoConcurrency
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-MHGUYPGE.js";
|
|
44
44
|
|
|
45
45
|
// src/utils/managed-write-preflight.ts
|
|
46
46
|
import { existsSync as existsSync11 } from "fs";
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
readLogEvents,
|
|
9
9
|
resolveExistingRegularFileInsideVault,
|
|
10
10
|
writeLogEvent
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-6AMXNODT.js";
|
|
12
12
|
import {
|
|
13
13
|
ExitCode,
|
|
14
14
|
RawSourceSchema,
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
scanSensitiveContent,
|
|
20
20
|
scanVault,
|
|
21
21
|
splitFrontmatter
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-MHGUYPGE.js";
|
|
23
23
|
|
|
24
24
|
// src/commands/sources.ts
|
|
25
25
|
import { readFile as readFile4 } from "fs/promises";
|
|
@@ -572,6 +572,7 @@ function isSyntheticPlaceholder(value) {
|
|
|
572
572
|
}
|
|
573
573
|
function isNonSecretTokenCapture(value) {
|
|
574
574
|
if (value.startsWith("//")) return true;
|
|
575
|
+
if (value.includes("/")) return true;
|
|
575
576
|
if (/^[a-z0-9.]+(?:-[a-z0-9.]+)+$/.test(value) && !/^[0-9a-f]+(?:-[0-9a-f]+)+$/.test(value)) return true;
|
|
576
577
|
return false;
|
|
577
578
|
}
|
|
@@ -3,11 +3,11 @@ import {
|
|
|
3
3
|
ROOT_INDEX_SECTION_ORDER,
|
|
4
4
|
atomicWriteText,
|
|
5
5
|
buildRootIndexUniverse
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-NG72ZD4C.js";
|
|
7
7
|
import {
|
|
8
8
|
err,
|
|
9
9
|
ok
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-MHGUYPGE.js";
|
|
11
11
|
|
|
12
12
|
// src/utils/index-projection.ts
|
|
13
13
|
import { readFile } from "fs/promises";
|
package/dist/cli.js
CHANGED
|
@@ -50,7 +50,7 @@ import {
|
|
|
50
50
|
snapshotterHealthChecks,
|
|
51
51
|
upsertIndexEntry,
|
|
52
52
|
vectorIndexStatus
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-AVVFFPQ5.js";
|
|
54
54
|
import {
|
|
55
55
|
normalizeDistTag,
|
|
56
56
|
readCache,
|
|
@@ -63,7 +63,7 @@ import {
|
|
|
63
63
|
UNMANAGED_START,
|
|
64
64
|
renderRootIndex,
|
|
65
65
|
writeRootIndexProjection
|
|
66
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-NHRRYAXT.js";
|
|
67
67
|
import {
|
|
68
68
|
FLEET_REL_PATH,
|
|
69
69
|
REDACTED_MALFORMED_REFERENCE,
|
|
@@ -147,12 +147,12 @@ import {
|
|
|
147
147
|
supersedeStaleReviewRequiredJournals,
|
|
148
148
|
taxonomyCommentForPage,
|
|
149
149
|
writeDotenv
|
|
150
|
-
} from "./chunk-
|
|
150
|
+
} from "./chunk-FM6RWVW6.js";
|
|
151
151
|
import {
|
|
152
152
|
assertTargetInsideVault,
|
|
153
153
|
atomicWriteText,
|
|
154
154
|
prepareTypedPage
|
|
155
|
-
} from "./chunk-
|
|
155
|
+
} from "./chunk-NG72ZD4C.js";
|
|
156
156
|
import {
|
|
157
157
|
applySourceDisposition,
|
|
158
158
|
decodeSourceActionApproval,
|
|
@@ -160,7 +160,7 @@ import {
|
|
|
160
160
|
inventorySources,
|
|
161
161
|
planSourceDisposition,
|
|
162
162
|
runSourcesPending
|
|
163
|
-
} from "./chunk-
|
|
163
|
+
} from "./chunk-JMV7YBQN.js";
|
|
164
164
|
import {
|
|
165
165
|
authorizeRawOperation,
|
|
166
166
|
buildSourceReferenceIndex,
|
|
@@ -177,7 +177,7 @@ import {
|
|
|
177
177
|
resolveExistingRegularFileInsideVault,
|
|
178
178
|
validateLogEvent,
|
|
179
179
|
writeLogEvent
|
|
180
|
-
} from "./chunk-
|
|
180
|
+
} from "./chunk-6AMXNODT.js";
|
|
181
181
|
import {
|
|
182
182
|
ExitCode,
|
|
183
183
|
MetaSchema,
|
|
@@ -198,7 +198,7 @@ import {
|
|
|
198
198
|
scanVault,
|
|
199
199
|
splitFrontmatter,
|
|
200
200
|
vaultIoConcurrency
|
|
201
|
-
} from "./chunk-
|
|
201
|
+
} from "./chunk-MHGUYPGE.js";
|
|
202
202
|
|
|
203
203
|
// src/cli.ts
|
|
204
204
|
import { join as join42 } from "path";
|
|
@@ -3658,6 +3658,7 @@ async function runArchive(input) {
|
|
|
3658
3658
|
});
|
|
3659
3659
|
if (!moved.ok) return { exitCode: ExitCode.WRITE_FAILED, result: moved };
|
|
3660
3660
|
}
|
|
3661
|
+
const rewrittenCascadePages = [];
|
|
3661
3662
|
if ((input.cascade || isRaw) && input.apply && cascade) {
|
|
3662
3663
|
for (const ref of cascade.source_array_refs) {
|
|
3663
3664
|
const absPath = join19(input.vault, ref.page);
|
|
@@ -3681,6 +3682,7 @@ ${fmRewritten}
|
|
|
3681
3682
|
}
|
|
3682
3683
|
const write = await safeWritePage(absPath, updated);
|
|
3683
3684
|
if (!write.ok) return { exitCode: ExitCode.WRITE_FAILED, result: write };
|
|
3685
|
+
rewrittenCascadePages.push(ref.page);
|
|
3684
3686
|
}
|
|
3685
3687
|
}
|
|
3686
3688
|
if (isRaw) {
|
|
@@ -3692,6 +3694,7 @@ ${fmRewritten}
|
|
|
3692
3694
|
if (updated !== original) {
|
|
3693
3695
|
const write = await safeWritePage(absPath, updated);
|
|
3694
3696
|
if (!write.ok) return { exitCode: ExitCode.WRITE_FAILED, result: write };
|
|
3697
|
+
rewrittenCascadePages.push(ref.page);
|
|
3695
3698
|
}
|
|
3696
3699
|
}
|
|
3697
3700
|
}
|
|
@@ -3702,7 +3705,7 @@ ${fmRewritten}
|
|
|
3702
3705
|
}
|
|
3703
3706
|
let indexUpdated = false;
|
|
3704
3707
|
if (!isRaw) {
|
|
3705
|
-
const { renderRootIndex: renderRootIndex2, writeRootIndexProjection: writeRootIndexProjection2 } = await import("./index-projection-
|
|
3708
|
+
const { renderRootIndex: renderRootIndex2, writeRootIndexProjection: writeRootIndexProjection2 } = await import("./index-projection-IICN2TUG.js");
|
|
3706
3709
|
const before = await readFile7(join19(input.vault, "index.md"), "utf8").catch(() => "");
|
|
3707
3710
|
const fullTarget = relPath.replace(/\.md$/, "");
|
|
3708
3711
|
const bare = fullTarget.split("/").pop() ?? fullTarget;
|
|
@@ -3720,10 +3723,13 @@ ${fmRewritten}
|
|
|
3720
3723
|
source: "cli"
|
|
3721
3724
|
});
|
|
3722
3725
|
const tombstonePath = await writeDeleteIntent(input.vault, archiveIntent);
|
|
3726
|
+
const lastOpFiles = [relPath, archivePath, tombstonePath, ...rewrittenCascadePages];
|
|
3727
|
+
if (indexUpdated) lastOpFiles.push("index.md");
|
|
3728
|
+
const uniqueLastOpFiles = [...new Set(lastOpFiles)];
|
|
3723
3729
|
appendLastOp(input.vault, {
|
|
3724
3730
|
operation: input.cascade ? "archive-cascade" : "archive",
|
|
3725
3731
|
summary: `moved ${relPath} to ${archivePath}${input.cascade ? ` (cascade: ${cascade?.source_array_refs.length ?? 0} source arrays updated)` : ""}; tombstone ${tombstonePath}`,
|
|
3726
|
-
files:
|
|
3732
|
+
files: uniqueLastOpFiles,
|
|
3727
3733
|
timestamp: (/* @__PURE__ */ new Date()).toISOString()
|
|
3728
3734
|
});
|
|
3729
3735
|
let remote;
|
|
@@ -3822,7 +3828,7 @@ async function runRemove(input) {
|
|
|
3822
3828
|
if (relPath.endsWith(".md") && !relPath.startsWith("raw/")) {
|
|
3823
3829
|
const { readFile: readFile22 } = await import("fs/promises");
|
|
3824
3830
|
const { join: pathJoin } = await import("path");
|
|
3825
|
-
const { renderRootIndex: renderRootIndex2, writeRootIndexProjection: writeRootIndexProjection2 } = await import("./index-projection-
|
|
3831
|
+
const { renderRootIndex: renderRootIndex2, writeRootIndexProjection: writeRootIndexProjection2 } = await import("./index-projection-IICN2TUG.js");
|
|
3826
3832
|
const before = await readFile22(pathJoin(input.vault, "index.md"), "utf8").catch(() => "");
|
|
3827
3833
|
const fullTarget = relPath.replace(/\.md$/, "");
|
|
3828
3834
|
const bare = fullTarget.split("/").pop() ?? fullTarget;
|
|
@@ -5301,14 +5307,17 @@ async function writeBriefArtifacts(vault, input) {
|
|
|
5301
5307
|
logUpdated = log.result.ok && log.result.data.appended;
|
|
5302
5308
|
}
|
|
5303
5309
|
if (materialChange) {
|
|
5310
|
+
const files = [
|
|
5311
|
+
"meta/latest-session-brief.md",
|
|
5312
|
+
".skillwiki/session-brief.md",
|
|
5313
|
+
".skillwiki/session-brief.json"
|
|
5314
|
+
];
|
|
5315
|
+
if (indexUpdated) files.push("index.md");
|
|
5316
|
+
if (logUpdated) files.push("log.md");
|
|
5304
5317
|
appendLastOp(vault, {
|
|
5305
5318
|
operation: "session-brief",
|
|
5306
5319
|
summary: "refreshed latest session brief",
|
|
5307
|
-
files
|
|
5308
|
-
"meta/latest-session-brief.md",
|
|
5309
|
-
".skillwiki/session-brief.md",
|
|
5310
|
-
".skillwiki/session-brief.json"
|
|
5311
|
-
],
|
|
5320
|
+
files,
|
|
5312
5321
|
timestamp: input.generatedAt
|
|
5313
5322
|
});
|
|
5314
5323
|
}
|
|
@@ -10099,7 +10108,7 @@ async function emitManagedVaultWrite(vault, command, mutate, opts) {
|
|
|
10099
10108
|
if (dirty) {
|
|
10100
10109
|
return emit(dirty, void 0, { postCommit: false });
|
|
10101
10110
|
}
|
|
10102
|
-
const { runManagedWriteTransaction: runManagedWriteTransaction2 } = await import("./managed-write-preflight-
|
|
10111
|
+
const { runManagedWriteTransaction: runManagedWriteTransaction2 } = await import("./managed-write-preflight-SP2A57YY.js");
|
|
10103
10112
|
const run = await runManagedWriteTransaction2({
|
|
10104
10113
|
vault,
|
|
10105
10114
|
command,
|
|
@@ -4,9 +4,9 @@ import {
|
|
|
4
4
|
UNMANAGED_START,
|
|
5
5
|
renderRootIndex,
|
|
6
6
|
writeRootIndexProjection
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-NHRRYAXT.js";
|
|
8
|
+
import "./chunk-NG72ZD4C.js";
|
|
9
|
+
import "./chunk-MHGUYPGE.js";
|
|
10
10
|
export {
|
|
11
11
|
UNMANAGED_END,
|
|
12
12
|
UNMANAGED_START,
|
|
@@ -6,10 +6,10 @@ import {
|
|
|
6
6
|
runManagedWritePeerGate,
|
|
7
7
|
runManagedWritePreflight,
|
|
8
8
|
runManagedWriteTransaction
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-FM6RWVW6.js";
|
|
10
|
+
import "./chunk-NG72ZD4C.js";
|
|
11
|
+
import "./chunk-6AMXNODT.js";
|
|
12
|
+
import "./chunk-MHGUYPGE.js";
|
|
13
13
|
export {
|
|
14
14
|
DEFAULT_MANAGED_WRITE_WAIT_MS,
|
|
15
15
|
MANAGED_WRITE_POLL_INTERVAL_MS,
|
package/dist/skillwiki-mcp.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
runSkillwikiMcpStdio
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-AVVFFPQ5.js";
|
|
5
5
|
import "./chunk-7I2TPIV5.js";
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-NHRRYAXT.js";
|
|
7
|
+
import "./chunk-FM6RWVW6.js";
|
|
8
|
+
import "./chunk-NG72ZD4C.js";
|
|
9
|
+
import "./chunk-JMV7YBQN.js";
|
|
10
|
+
import "./chunk-6AMXNODT.js";
|
|
11
|
+
import "./chunk-MHGUYPGE.js";
|
|
12
12
|
|
|
13
13
|
// src/mcp-entry.ts
|
|
14
14
|
runSkillwikiMcpStdio().catch((error) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "skillwiki",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.56",
|
|
4
4
|
"skills": "./",
|
|
5
5
|
"description": "Project-aware Karpathy-style knowledge base for Claude Code: 20 prompt-only skills (wiki-*, proj-*, using-skillwiki) backed by the deterministic `skillwiki` CLI.",
|
|
6
6
|
"author": {
|
package/skills/package.json
CHANGED