skillwiki 0.10.112 → 0.10.113

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.
Files changed (35) hide show
  1. package/dist/{chunk-KJG2CSYD.js → chunk-3TKNAOJH.js} +2 -2
  2. package/dist/{chunk-LOVLZNLX.js → chunk-5D5HFQ76.js} +1 -1
  3. package/dist/{chunk-APKDTEVV.js → chunk-5RHR4FEK.js} +18 -14
  4. package/dist/{chunk-EE7W3GLA.js → chunk-6VUK2FTX.js} +1 -1
  5. package/dist/{chunk-RR6VDWSI.js → chunk-CBT35FAW.js} +3 -3
  6. package/dist/{chunk-Q6EZF37H.js → chunk-FQERKMD7.js} +456 -16
  7. package/dist/{chunk-SKOLE6US.js → chunk-IJKJGQKL.js} +1 -1
  8. package/dist/{chunk-IR2DI4Y5.js → chunk-IJWZDQDH.js} +3 -3
  9. package/dist/{chunk-TKX6PSWZ.js → chunk-JL2SCLXT.js} +1 -1
  10. package/dist/{chunk-CKQPUHM2.js → chunk-K3YZESND.js} +2 -2
  11. package/dist/{chunk-DOHWNPAZ.js → chunk-OGEAFXON.js} +1 -1
  12. package/dist/{chunk-ABRYBO4T.js → chunk-OWWWO2XS.js} +3 -3
  13. package/dist/{chunk-FCA3RRNF.js → chunk-SEY4N4CT.js} +1 -1
  14. package/dist/{chunk-7POLZOFY.js → chunk-VNSZCK5V.js} +5 -2
  15. package/dist/{chunk-25OXNFDV.js → chunk-XJ5VEIH7.js} +3 -3
  16. package/dist/cli.js +534 -114
  17. package/dist/{index-projection-UNZG5UJZ.js → index-projection-RQSOEDXM.js} +5 -5
  18. package/dist/{journal-5IW3TZ5F.js → journal-V5XHBEI5.js} +3 -3
  19. package/dist/{managed-write-preflight-L7IRQ76C.js → managed-write-preflight-2BMHZWVJ.js} +7 -7
  20. package/dist/{mcp-auth-env-X5MI5IX6.js → mcp-auth-env-QONKW4EO.js} +3 -3
  21. package/dist/{migrate-RO4BJP5T.js → migrate-SRRCXI2K.js} +6 -6
  22. package/dist/{runtime-VMFYW2K3.js → runtime-LQZIG3XN.js} +4 -4
  23. package/dist/skillwiki-mcp.js +14 -14
  24. package/dist/sources-E6KHDRDE.js +10 -0
  25. package/dist/{watcher-MGHQD3UI.js → watcher-VJ3TOU6J.js} +4 -4
  26. package/package.json +1 -1
  27. package/skills/.claude-plugin/plugin.json +1 -1
  28. package/skills/.codex-plugin/plugin.json +1 -1
  29. package/skills/.cursor-plugin/plugin.json +1 -1
  30. package/skills/package.json +1 -1
  31. package/skills/skills/wiki-ingest/SKILL.md +47 -0
  32. package/skills/skills/wiki-lint/SKILL.md +7 -0
  33. package/skills/wiki-ingest/SKILL.md +47 -0
  34. package/skills/wiki-lint/SKILL.md +7 -0
  35. package/dist/sources-AOYP6ROO.js +0 -10
@@ -4,11 +4,11 @@ import {
4
4
  UNMANAGED_START,
5
5
  renderRootIndex,
6
6
  writeRootIndexProjection
7
- } from "./chunk-IR2DI4Y5.js";
8
- import "./chunk-KJG2CSYD.js";
9
- import "./chunk-TKX6PSWZ.js";
10
- import "./chunk-EE7W3GLA.js";
11
- import "./chunk-7POLZOFY.js";
7
+ } from "./chunk-IJWZDQDH.js";
8
+ import "./chunk-3TKNAOJH.js";
9
+ import "./chunk-JL2SCLXT.js";
10
+ import "./chunk-6VUK2FTX.js";
11
+ import "./chunk-VNSZCK5V.js";
12
12
  export {
13
13
  UNMANAGED_END,
14
14
  UNMANAGED_START,
@@ -3,9 +3,9 @@ import {
3
3
  readJournal,
4
4
  upsertJournal,
5
5
  writeJournal
6
- } from "./chunk-FCA3RRNF.js";
7
- import "./chunk-EE7W3GLA.js";
8
- import "./chunk-7POLZOFY.js";
6
+ } from "./chunk-SEY4N4CT.js";
7
+ import "./chunk-6VUK2FTX.js";
8
+ import "./chunk-VNSZCK5V.js";
9
9
  export {
10
10
  readJournal,
11
11
  upsertJournal,
@@ -6,13 +6,13 @@ import {
6
6
  runManagedWritePeerGate,
7
7
  runManagedWritePreflight,
8
8
  runManagedWriteTransaction
9
- } from "./chunk-Q6EZF37H.js";
10
- import "./chunk-CKQPUHM2.js";
11
- import "./chunk-KJG2CSYD.js";
12
- import "./chunk-TKX6PSWZ.js";
13
- import "./chunk-EE7W3GLA.js";
14
- import "./chunk-SKOLE6US.js";
15
- import "./chunk-7POLZOFY.js";
9
+ } from "./chunk-FQERKMD7.js";
10
+ import "./chunk-K3YZESND.js";
11
+ import "./chunk-3TKNAOJH.js";
12
+ import "./chunk-JL2SCLXT.js";
13
+ import "./chunk-6VUK2FTX.js";
14
+ import "./chunk-IJKJGQKL.js";
15
+ import "./chunk-VNSZCK5V.js";
16
16
  export {
17
17
  DEFAULT_MANAGED_WRITE_WAIT_MS,
18
18
  MANAGED_WRITE_POLL_INTERVAL_MS,
@@ -9,9 +9,9 @@ import {
9
9
  nonEmptyEnvValue,
10
10
  redactMcpSecret,
11
11
  resolveMcpAuthEnv
12
- } from "./chunk-DOHWNPAZ.js";
13
- import "./chunk-SKOLE6US.js";
14
- import "./chunk-7POLZOFY.js";
12
+ } from "./chunk-OGEAFXON.js";
13
+ import "./chunk-IJKJGQKL.js";
14
+ import "./chunk-VNSZCK5V.js";
15
15
  export {
16
16
  MCP_HOST_ID_ENV,
17
17
  MCP_TOKEN_ENV,
@@ -6,12 +6,12 @@ import {
6
6
  refreshInstalledClipPlist,
7
7
  stableCliBinary,
8
8
  xml
9
- } from "./chunk-25OXNFDV.js";
10
- import "./chunk-EE7W3GLA.js";
11
- import "./chunk-ABRYBO4T.js";
12
- import "./chunk-LOVLZNLX.js";
13
- import "./chunk-SKOLE6US.js";
14
- import "./chunk-7POLZOFY.js";
9
+ } from "./chunk-XJ5VEIH7.js";
10
+ import "./chunk-6VUK2FTX.js";
11
+ import "./chunk-OWWWO2XS.js";
12
+ import "./chunk-5D5HFQ76.js";
13
+ import "./chunk-IJKJGQKL.js";
14
+ import "./chunk-VNSZCK5V.js";
15
15
  export {
16
16
  CLIP_MIGRATION_HINT,
17
17
  migrateClipOutbox,
@@ -6,10 +6,10 @@ import {
6
6
  isRfc1918OrLoopback,
7
7
  loadClipCredentials,
8
8
  validateRuntime
9
- } from "./chunk-ABRYBO4T.js";
10
- import "./chunk-LOVLZNLX.js";
11
- import "./chunk-SKOLE6US.js";
12
- import "./chunk-7POLZOFY.js";
9
+ } from "./chunk-OWWWO2XS.js";
10
+ import "./chunk-5D5HFQ76.js";
11
+ import "./chunk-IJKJGQKL.js";
12
+ import "./chunk-VNSZCK5V.js";
13
13
  export {
14
14
  assertClipS3Endpoint,
15
15
  conditionalCreateProven,
@@ -1,21 +1,21 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  runSkillwikiMcpStdio
4
- } from "./chunk-APKDTEVV.js";
5
- import "./chunk-RR6VDWSI.js";
4
+ } from "./chunk-5RHR4FEK.js";
5
+ import "./chunk-CBT35FAW.js";
6
6
  import "./chunk-7I2TPIV5.js";
7
- import "./chunk-IR2DI4Y5.js";
8
- import "./chunk-Q6EZF37H.js";
9
- import "./chunk-CKQPUHM2.js";
10
- import "./chunk-KJG2CSYD.js";
11
- import "./chunk-TKX6PSWZ.js";
12
- import "./chunk-DOHWNPAZ.js";
13
- import "./chunk-25OXNFDV.js";
14
- import "./chunk-EE7W3GLA.js";
15
- import "./chunk-ABRYBO4T.js";
16
- import "./chunk-LOVLZNLX.js";
17
- import "./chunk-SKOLE6US.js";
18
- import "./chunk-7POLZOFY.js";
7
+ import "./chunk-IJWZDQDH.js";
8
+ import "./chunk-FQERKMD7.js";
9
+ import "./chunk-K3YZESND.js";
10
+ import "./chunk-3TKNAOJH.js";
11
+ import "./chunk-JL2SCLXT.js";
12
+ import "./chunk-OGEAFXON.js";
13
+ import "./chunk-XJ5VEIH7.js";
14
+ import "./chunk-6VUK2FTX.js";
15
+ import "./chunk-OWWWO2XS.js";
16
+ import "./chunk-5D5HFQ76.js";
17
+ import "./chunk-IJKJGQKL.js";
18
+ import "./chunk-VNSZCK5V.js";
19
19
 
20
20
  // src/mcp-entry.ts
21
21
  runSkillwikiMcpStdio().catch((error) => {
@@ -0,0 +1,10 @@
1
+ #!/usr/bin/env node
2
+ import {
3
+ runSourcesPending
4
+ } from "./chunk-CBT35FAW.js";
5
+ import "./chunk-K3YZESND.js";
6
+ import "./chunk-JL2SCLXT.js";
7
+ import "./chunk-VNSZCK5V.js";
8
+ export {
9
+ runSourcesPending
10
+ };
@@ -3,7 +3,7 @@ import {
3
3
  readJournal,
4
4
  upsertJournal,
5
5
  writeJournal
6
- } from "./chunk-FCA3RRNF.js";
6
+ } from "./chunk-SEY4N4CT.js";
7
7
  import {
8
8
  buildReadyHint
9
9
  } from "./chunk-OSL4J7GF.js";
@@ -14,11 +14,11 @@ import {
14
14
  sha256Hex
15
15
  } from "./chunk-ZRGZBAVS.js";
16
16
  import "./chunk-QESNTTVY.js";
17
- import "./chunk-EE7W3GLA.js";
17
+ import "./chunk-6VUK2FTX.js";
18
18
  import {
19
19
  assertPublicHttpsUrl
20
- } from "./chunk-LOVLZNLX.js";
21
- import "./chunk-7POLZOFY.js";
20
+ } from "./chunk-5D5HFQ76.js";
21
+ import "./chunk-VNSZCK5V.js";
22
22
 
23
23
  // src/clip-outbox/watcher.ts
24
24
  import { createRequire } from "module";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "skillwiki",
3
- "version": "0.10.112",
3
+ "version": "0.10.113",
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.112",
3
+ "version": "0.10.113",
4
4
  "skills": "./",
5
5
  "description": "Project-aware Karpathy-style knowledge base for Claude Code: 22 prompt-only skills (wiki-*, proj-*, using-skillwiki, skillwiki-mcp, skillwiki-connect) backed by the deterministic `skillwiki` CLI.",
6
6
  "author": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "skillwiki",
3
- "version": "0.10.112",
3
+ "version": "0.10.113",
4
4
  "description": "Project-aware Karpathy-style knowledge base for Codex with 22 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",
3
- "version": "0.10.112",
3
+ "version": "0.10.113",
4
4
  "description": "Project-aware Karpathy-style knowledge base: 22 prompt-only skills (wiki-*, proj-*, using-skillwiki, skillwiki-mcp, skillwiki-connect) backed by HTTP MCP wiki_capture.",
5
5
  "author": {
6
6
  "name": "karlorz"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skillwiki/skills",
3
- "version": "0.10.112",
3
+ "version": "0.10.113",
4
4
  "private": true,
5
5
  "files": [
6
6
  "wiki-*",
@@ -42,6 +42,53 @@ Run `skillwiki lang` at the start. Generate page-body prose, narrative sections,
42
42
  5. `skillwiki sources compile published <raw-path> [vault] --pages "<typed/a.md,typed/b.md>" --reason "<why>"` then `--write --approve <token>`
43
43
  6. Leave the review `open` unless the human resolves it with `skillwiki sources review <raw-path> --status accepted|needs-fix|dismissed --reason "<why>"`
44
44
  Goal, satellite, and headless sessions may list pending / compile status / reviews but must not claim or publish compile turns.
45
+ ## Output standard v2
46
+ `skillwiki ingest` stamps `output_standard: v2` on every new typed stub. v2 is an authoring contract. CLI lint reports advisory warnings on marked pages only. Publish, health, and lint exit stay unchanged by these checks.
47
+
48
+ ### Rung 1 — STE-80 (default)
49
+ STE is Simplified Technical English.
50
+ - Use at most 20 words for each instruction. Use at most 25 words for each description.
51
+ - One topic per paragraph. Each paragraph <= 6 sentences.
52
+ - One word, one meaning. Prefer simple verbs: use, start, stop, find, check.
53
+ - Keep technical terms (API, cache, Docker). Define each term once at first use.
54
+ - No hedges except in `## Uncertainty`. Never drop facts to shorten.
55
+ - Hedge list: might, may, perhaps, possibly, probably, likely, seems, appears to, arguably, somewhat, could be.
56
+ - Use `## Uncertainty` only for uncertainty the source itself reports. If the source reports none, omit the section or write "The source reports no open uncertainty."
57
+
58
+ ### Rung 2 — diagrams (default when content has structure)
59
+ Add one Mermaid diagram when the page has flow, components, timeline, hierarchy, or comparison. Keep a text summary beside the diagram. Directly after the diagram, add `**Least certain:**` and a bullet list of labels or edges.
60
+
61
+ The `**Least certain:**` bullets name diagram labels or edges. State why that part of the diagram is the least certain representation. Use one of these reasons: an interpretive grouping, a simplified step, an omitted condition, or a mapping the source does not state directly.
62
+
63
+ Never add doubt about a fact the source states as settled. Never turn a decision, constraint, or policy into an open question.
64
+
65
+ If a diagram has fewer than 3 labels and edges in total, list all of them. Otherwise list the 3 least-certain labels or edges.
66
+
67
+ A diagram must not present a shortened executable procedure. For safety or recovery flows, keep all required steps or point the node to the full text procedure.
68
+
69
+ ### Rung 3 — HTML (opt-in)
70
+ Set `html_render: true` by hand or with `skillwiki ingest --html`. Render outside the vault:
71
+
72
+ ```bash
73
+ skillwiki page render-html <page> [vault] --out <file>
74
+ ```
75
+
76
+ HTML is always opt-in. The renderer writes one self-contained file (TOC, tabs per H2, `<details>`, inline CSS and JS). Mermaid stays as readable source. No network fetch.
77
+
78
+ ### Rung 4 — video
79
+ Explainer video is out of scope. Use STE text plus a diagram.
80
+
81
+ ### Format table
82
+
83
+ | Content type | Format | Rung | Policy |
84
+ | --- | --- | --- | --- |
85
+ | Exact procedure (re-read later) | STE text | 1 | default |
86
+ | Relationships (structure / flow / hierarchy) | Mermaid diagram + text | 2 | default |
87
+ | Comparison / hands-on exploration | HTML interactive page | 3 | opt-in; otherwise STE + table or diagram |
88
+ | Concept from zero | Explainer video | 4 | out of scope; use STE + diagram |
89
+
90
+ Rules: formats stack; HTML is always opt-in; video is outside the current scope.
91
+
45
92
  ## Provenance defaults
46
93
  - Default `provenance: research`.
47
94
  - If cwd is inside `projects/{slug}/`, set `provenance: project` and add `provenance_projects: ["[[slug]]"]`.
@@ -19,6 +19,13 @@ Standard four reads.
19
19
  6. If `log_rotate_needed` is present and the user consents, run `skillwiki log-rotate <vault> --apply`. Otherwise leave alone.
20
20
  7. **Post-migration verification**: If the user recently migrated **vault content** (e.g., moved entity/concept pages to another vault), re-run `skillwiki lint <vault> --summary` and verify that broken_wikilinks count decreased. Remaining broken links for migrated content indicate pages still referencing the moved files — these should be cleaned up (remove citations or migrate the referencing pages too). This step is content moves only — not HTTP MCP client/plugin upgrades (those use `skillwiki doctor --check-mcp`).
21
21
  8. Append a `log.md` entry summarizing lint counts only when the user asked to record the maintenance result. Do not log routine `health` reports by default.
22
+ ## Output standard v2 WARN buckets
23
+ These four buckets apply only to typed pages whose frontmatter has `output_standard: v2`. They are advisory WARN findings. They do not change the lint exit code, publish, health exit, or release CI on content.
24
+ - `ste_sentence_length`: prose sentences > 25 words; ordered-list items and list items under Steps/Procedure headings > 20 words.
25
+ - `ste_hedge_words`: whole-word hedges outside `## Uncertainty`, outside the `**Least certain:**` list, and outside code and blockquotes.
26
+ - `ste_diagram_uncertainty`: a Mermaid block with no `**Least certain:**` bullet list after it.
27
+ - `ste_comparison_visual`: a `type: comparison` page with neither a Markdown table nor a Mermaid block.
28
+ Drill with `skillwiki lint <vault> --only <bucket>`.
22
29
  ## Stop conditions
23
30
  None — lint reports all findings even on per-page errors.
24
31
  ## Forbidden
@@ -42,6 +42,53 @@ Run `skillwiki lang` at the start. Generate page-body prose, narrative sections,
42
42
  5. `skillwiki sources compile published <raw-path> [vault] --pages "<typed/a.md,typed/b.md>" --reason "<why>"` then `--write --approve <token>`
43
43
  6. Leave the review `open` unless the human resolves it with `skillwiki sources review <raw-path> --status accepted|needs-fix|dismissed --reason "<why>"`
44
44
  Goal, satellite, and headless sessions may list pending / compile status / reviews but must not claim or publish compile turns.
45
+ ## Output standard v2
46
+ `skillwiki ingest` stamps `output_standard: v2` on every new typed stub. v2 is an authoring contract. CLI lint reports advisory warnings on marked pages only. Publish, health, and lint exit stay unchanged by these checks.
47
+
48
+ ### Rung 1 — STE-80 (default)
49
+ STE is Simplified Technical English.
50
+ - Use at most 20 words for each instruction. Use at most 25 words for each description.
51
+ - One topic per paragraph. Each paragraph <= 6 sentences.
52
+ - One word, one meaning. Prefer simple verbs: use, start, stop, find, check.
53
+ - Keep technical terms (API, cache, Docker). Define each term once at first use.
54
+ - No hedges except in `## Uncertainty`. Never drop facts to shorten.
55
+ - Hedge list: might, may, perhaps, possibly, probably, likely, seems, appears to, arguably, somewhat, could be.
56
+ - Use `## Uncertainty` only for uncertainty the source itself reports. If the source reports none, omit the section or write "The source reports no open uncertainty."
57
+
58
+ ### Rung 2 — diagrams (default when content has structure)
59
+ Add one Mermaid diagram when the page has flow, components, timeline, hierarchy, or comparison. Keep a text summary beside the diagram. Directly after the diagram, add `**Least certain:**` and a bullet list of labels or edges.
60
+
61
+ The `**Least certain:**` bullets name diagram labels or edges. State why that part of the diagram is the least certain representation. Use one of these reasons: an interpretive grouping, a simplified step, an omitted condition, or a mapping the source does not state directly.
62
+
63
+ Never add doubt about a fact the source states as settled. Never turn a decision, constraint, or policy into an open question.
64
+
65
+ If a diagram has fewer than 3 labels and edges in total, list all of them. Otherwise list the 3 least-certain labels or edges.
66
+
67
+ A diagram must not present a shortened executable procedure. For safety or recovery flows, keep all required steps or point the node to the full text procedure.
68
+
69
+ ### Rung 3 — HTML (opt-in)
70
+ Set `html_render: true` by hand or with `skillwiki ingest --html`. Render outside the vault:
71
+
72
+ ```bash
73
+ skillwiki page render-html <page> [vault] --out <file>
74
+ ```
75
+
76
+ HTML is always opt-in. The renderer writes one self-contained file (TOC, tabs per H2, `<details>`, inline CSS and JS). Mermaid stays as readable source. No network fetch.
77
+
78
+ ### Rung 4 — video
79
+ Explainer video is out of scope. Use STE text plus a diagram.
80
+
81
+ ### Format table
82
+
83
+ | Content type | Format | Rung | Policy |
84
+ | --- | --- | --- | --- |
85
+ | Exact procedure (re-read later) | STE text | 1 | default |
86
+ | Relationships (structure / flow / hierarchy) | Mermaid diagram + text | 2 | default |
87
+ | Comparison / hands-on exploration | HTML interactive page | 3 | opt-in; otherwise STE + table or diagram |
88
+ | Concept from zero | Explainer video | 4 | out of scope; use STE + diagram |
89
+
90
+ Rules: formats stack; HTML is always opt-in; video is outside the current scope.
91
+
45
92
  ## Provenance defaults
46
93
  - Default `provenance: research`.
47
94
  - If cwd is inside `projects/{slug}/`, set `provenance: project` and add `provenance_projects: ["[[slug]]"]`.
@@ -19,6 +19,13 @@ Standard four reads.
19
19
  6. If `log_rotate_needed` is present and the user consents, run `skillwiki log-rotate <vault> --apply`. Otherwise leave alone.
20
20
  7. **Post-migration verification**: If the user recently migrated **vault content** (e.g., moved entity/concept pages to another vault), re-run `skillwiki lint <vault> --summary` and verify that broken_wikilinks count decreased. Remaining broken links for migrated content indicate pages still referencing the moved files — these should be cleaned up (remove citations or migrate the referencing pages too). This step is content moves only — not HTTP MCP client/plugin upgrades (those use `skillwiki doctor --check-mcp`).
21
21
  8. Append a `log.md` entry summarizing lint counts only when the user asked to record the maintenance result. Do not log routine `health` reports by default.
22
+ ## Output standard v2 WARN buckets
23
+ These four buckets apply only to typed pages whose frontmatter has `output_standard: v2`. They are advisory WARN findings. They do not change the lint exit code, publish, health exit, or release CI on content.
24
+ - `ste_sentence_length`: prose sentences > 25 words; ordered-list items and list items under Steps/Procedure headings > 20 words.
25
+ - `ste_hedge_words`: whole-word hedges outside `## Uncertainty`, outside the `**Least certain:**` list, and outside code and blockquotes.
26
+ - `ste_diagram_uncertainty`: a Mermaid block with no `**Least certain:**` bullet list after it.
27
+ - `ste_comparison_visual`: a `type: comparison` page with neither a Markdown table nor a Mermaid block.
28
+ Drill with `skillwiki lint <vault> --only <bucket>`.
22
29
  ## Stop conditions
23
30
  None — lint reports all findings even on per-page errors.
24
31
  ## Forbidden
@@ -1,10 +0,0 @@
1
- #!/usr/bin/env node
2
- import {
3
- runSourcesPending
4
- } from "./chunk-RR6VDWSI.js";
5
- import "./chunk-CKQPUHM2.js";
6
- import "./chunk-TKX6PSWZ.js";
7
- import "./chunk-7POLZOFY.js";
8
- export {
9
- runSourcesPending
10
- };