llm-wiki-compiler 0.10.0 → 0.11.0
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/CHANGELOG.md +19 -0
- package/README.md +15 -20
- package/dist/cli.js +413 -182
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +48 -1
- package/dist/index.js +743 -66
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,25 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [0.11.0] - 2026-06-16
|
|
9
|
+
|
|
10
|
+
Extends Open Knowledge Format support beyond the CLI: in-process SDK and MCP access to the OKF round-trip, and faithful reconstruction of an imported foreign bundle's original nested paths on re-export.
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
|
|
14
|
+
- **OKF SDK access** — `createWiki().exportOkf({ out? })` and `importOkf(dir, { dryRun?, trusted? })` run the OKF export/import round-trip in-process and return structured reports, with warnings and skips surfaced as data rather than console output. `OkfExportReport` and `OkfImportReport` are exported from the package types.
|
|
15
|
+
- **OKF MCP tools** — `llmwiki serve` now registers `export_okf` and a staging-only `import_okf`, bringing the server to 11 tools. `import_okf` previews a bundle with `dryRun` or stages it as review candidates; it exposes no trusted live-write path to agents, and its bundle path is confined under the project root.
|
|
16
|
+
- **Nested-path reconstruction on OKF re-export** — imported foreign OKF pages re-export at their original bundle-relative path (for example `tables/customers.md`) instead of `concepts/<slug>.md`, and native-to-foreign links round-trip. Paths that are unsafe, URL-unsafe, non-`.md`, reserved, escaping, or contested fall back to the slug path with a warning.
|
|
17
|
+
|
|
18
|
+
### Changed
|
|
19
|
+
|
|
20
|
+
- OKF link reversal now restores `[[wikilinks]]` from any bundle-relative `.md` link that resolves to a known imported page, not only `concepts/` and `queries/` slug links.
|
|
21
|
+
- OKF export refuses dangerous output targets — the filesystem root, the project root, directories inside `.git`, and non-empty directories that are not already OKF bundles — before writing, and wholesale-clears a recognized prior bundle while refusing any nested `.git`. All bundle writes are realpath-confined to the output directory.
|
|
22
|
+
|
|
23
|
+
### Contributors
|
|
24
|
+
|
|
25
|
+
No external contributors in this release.
|
|
26
|
+
|
|
8
27
|
## [0.10.0] - 2026-06-14
|
|
9
28
|
|
|
10
29
|
Adds a review-policy gate for generated knowledge, a full Open Knowledge Format (OKF) export/import round-trip, and a Mintlify documentation site.
|
package/README.md
CHANGED
|
@@ -1,19 +1,14 @@
|
|
|
1
1
|
# llmwiki
|
|
2
2
|
|
|
3
|
-
<
|
|
4
|
-
<
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
import external bundles with <code>llmwiki import --okf</code>,
|
|
13
|
-
and stage untrusted knowledge through review before it becomes live agent context.
|
|
14
|
-
</p>
|
|
15
|
-
</div>
|
|
16
|
-
</div>
|
|
3
|
+
<p align="center">
|
|
4
|
+
<img src="docs/images/okf-readme-banner.svg" alt="Breaking News: llmwiki supports Open Knowledge Format" width="900">
|
|
5
|
+
</p>
|
|
6
|
+
|
|
7
|
+
**Breaking News:** llmwiki is now an **Open Knowledge Format (OKF)** producer and consumer, aligning compiled agent knowledge with Google Cloud's emerging standard for portable knowledge sharing. Export compiled wikis with `llmwiki export --target okf`, import external bundles with `llmwiki import --okf`, and stage untrusted knowledge through review before it becomes live agent context.
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## What llmwiki does
|
|
17
12
|
|
|
18
13
|
Compile raw sources into an interlinked, citation-traceable markdown wiki that agents and humans can browse, query, lint, export, and reuse.
|
|
19
14
|
|
|
@@ -42,8 +37,8 @@ Do not use llmwiki as a general static-site generator, a heavy ontology database
|
|
|
42
37
|
- **Review policy.** Generated pages can be auto-held for review when confidence, contradiction, schema, or provenance rules trip.
|
|
43
38
|
- **Freshness repair.** `llmwiki lint` and `llmwiki next` surface stale/orphaned pages; `llmwiki refresh --stale` repairs changed knowledge without compiling unrelated new sources.
|
|
44
39
|
- **Eval harness.** `llmwiki eval` reports health score, citation coverage/precision, corpus stats, regression deltas, and optional judge-model citation support.
|
|
45
|
-
- **MCP server.** `llmwiki serve` exposes ingest, compile, query, lint, read, status, eval,
|
|
46
|
-
- **SDK.** `createWiki({ root })` drives ingest, compile, query, context, status, export, and
|
|
40
|
+
- **MCP server.** `llmwiki serve` exposes ingest, compile, query, lint, read, status, eval, context-pack, and OKF exchange tools to MCP-compatible agents.
|
|
41
|
+
- **SDK.** `createWiki({ root })` drives ingest, compile, query, context, status, export, eval, and OKF import/export from TypeScript without shelling out.
|
|
47
42
|
- **Open Knowledge Format exchange.** Export and import OKF bundles for portable, markdown-native knowledge exchange. External OKF imports are staged through the review queue by default; trusted bundles can be written live explicitly.
|
|
48
43
|
- **Other portable exports.** Export JSON, JSON-LD, GraphML, Marp slides, and `llms.txt` for downstream systems.
|
|
49
44
|
- **Provider portable.** Anthropic, Claude Agent SDK local login, OpenAI-compatible servers, Ollama, GitHub Copilot, and local OpenAI-compatible runtimes.
|
|
@@ -140,7 +135,7 @@ llmwiki import --okf ./dist/okf --dry-run
|
|
|
140
135
|
llmwiki import --okf ./dist/okf
|
|
141
136
|
```
|
|
142
137
|
|
|
143
|
-
OKF import is intentionally review-first: untrusted bundles become review candidates, not live wiki pages. The importer preserves foreign OKF metadata, stores llmwiki provenance under `x-llmwiki`, and re-exports imported pages honestly after local edits.
|
|
138
|
+
OKF import is intentionally review-first: untrusted bundles become review candidates, not live wiki pages. The importer preserves foreign OKF metadata, stores llmwiki provenance under `x-llmwiki`, and re-exports imported pages honestly after local edits, including safe original nested paths.
|
|
144
139
|
|
|
145
140
|
See [`docs/guides/open-knowledge-format.mdx`](docs/guides/open-knowledge-format.mdx), [`docs/cli/export.mdx`](docs/cli/export.mdx), and [`docs/cli/import.mdx`](docs/cli/import.mdx).
|
|
146
141
|
|
|
@@ -176,7 +171,7 @@ Run:
|
|
|
176
171
|
llmwiki serve --root /path/to/wiki-project
|
|
177
172
|
```
|
|
178
173
|
|
|
179
|
-
MCP clients can ingest sources, compile, query, search pages, read pages, lint, run eval, inspect status,
|
|
174
|
+
MCP clients can ingest sources, compile, query, search pages, read pages, lint, run eval, inspect status, request context packs, and exchange OKF bundles. Read-only tools work without provider credentials; LLM-backed tools validate provider credentials at call time.
|
|
180
175
|
|
|
181
176
|
See [`docs/guides/mcp-agent-integration.mdx`](docs/guides/mcp-agent-integration.mdx).
|
|
182
177
|
|
|
@@ -266,7 +261,7 @@ volta run --node 24 npx mint dev --port 3001
|
|
|
266
261
|
|
|
267
262
|
## Current release
|
|
268
263
|
|
|
269
|
-
Version `0.
|
|
264
|
+
Version `0.11.0` adds in-process SDK (`createWiki().exportOkf`/`importOkf`) and MCP (`export_okf`/`import_okf`) access to the Open Knowledge Format round-trip, plus faithful nested-path reconstruction when re-exporting imported foreign bundles. It builds on the 0.10.0 review policy, source-freshness repair, OKF CLI round-trip, and Mintlify docs site. See [`CHANGELOG.md`](CHANGELOG.md) for release history.
|
|
270
265
|
|
|
271
266
|
## Companion: Atomic Memory
|
|
272
267
|
|
|
@@ -279,7 +274,7 @@ Use them independently or together. The [`@atomicmemory/llmwiki`](https://github
|
|
|
279
274
|
|
|
280
275
|
## Contributing
|
|
281
276
|
|
|
282
|
-
|
|
277
|
+
Contributions are welcome. If llmwiki is missing something you need, open an issue or PR and describe the workflow you are trying to support - need-driven improvements are often the best ones. If you want to contribute more generally, roadmap items are a good place to start. For larger changes to core compile, review, import/export, or retrieval semantics, please start with an issue or design discussion so we can align on the contract first.
|
|
283
278
|
|
|
284
279
|
Before committing code changes, run:
|
|
285
280
|
|