@zosmaai/pi-llm-wiki 0.10.9 → 0.11.1
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 +6 -0
- package/README.de.md +35 -4
- package/README.es.md +260 -170
- package/README.fr.md +35 -4
- package/README.hi.md +35 -4
- package/README.ja.md +35 -4
- package/README.ko.md +35 -4
- package/README.md +41 -12
- package/README.pt.md +35 -4
- package/README.ru.md +35 -4
- package/README.zh.md +260 -170
- package/assets/demo.gif +0 -0
- package/dist/extensions/llm-wiki/lib/bootstrap.js +74 -0
- package/dist/extensions/llm-wiki/lib/embeddings.js +401 -0
- package/dist/extensions/llm-wiki/lib/guardrails.js +232 -0
- package/dist/extensions/llm-wiki/lib/indexing.js +78 -0
- package/dist/extensions/llm-wiki/lib/ingest-worker.js +410 -0
- package/dist/extensions/llm-wiki/lib/inject.js +65 -0
- package/dist/extensions/llm-wiki/lib/knowledge-document.js +442 -0
- package/dist/extensions/llm-wiki/lib/knowledge-links.js +206 -0
- package/dist/extensions/llm-wiki/lib/legacy-repair.js +443 -0
- package/dist/extensions/llm-wiki/lib/metadata.js +505 -0
- package/dist/extensions/llm-wiki/lib/model-command.js +85 -0
- package/dist/extensions/llm-wiki/lib/observation.js +283 -0
- package/dist/extensions/llm-wiki/lib/recall.js +875 -0
- package/dist/extensions/llm-wiki/lib/retro.js +158 -0
- package/dist/extensions/llm-wiki/lib/runtime.js +187 -0
- package/dist/extensions/llm-wiki/lib/source-extractors.js +426 -0
- package/dist/extensions/llm-wiki/lib/source-packet.js +229 -0
- package/dist/extensions/llm-wiki/lib/subagent.js +41 -0
- package/dist/extensions/llm-wiki/lib/task-config.js +201 -0
- package/dist/extensions/llm-wiki/lib/tools.js +1199 -0
- package/dist/extensions/llm-wiki/lib/trajectories-command.js +51 -0
- package/dist/extensions/llm-wiki/lib/trajectory.js +467 -0
- package/dist/extensions/llm-wiki/lib/utils.js +353 -0
- package/dist/extensions/llm-wiki/lib/vault-format.js +247 -0
- package/dist/extensions/llm-wiki/lib/visible-status.js +31 -0
- package/dist/extensions/llm-wiki/lib/wiki-service.js +128 -0
- package/dist/mcp/exec.js +121 -0
- package/dist/mcp/index.js +229 -0
- package/dist/mcp/operations.js +130 -0
- package/dist/package.json +1 -0
- package/docs/api.md +5 -2
- package/docs/architecture.md +5 -2
- package/docs/configuration.md +25 -0
- package/docs/superpowers/plans/2026-08-02-okf-foundation.md +1579 -0
- package/docs/superpowers/plans/2026-08-03-okf-foundation-remediation.md +3005 -0
- package/docs/superpowers/plans/2026-08-06-authoritative-event-history-phase-1-foundation-hardening.md +937 -0
- package/docs/superpowers/plans/2026-08-06-okf-foundation-release-remediation.md +1174 -0
- package/docs/superpowers/plans/2026-08-07-synthesis-language.md +98 -0
- package/docs/superpowers/specs/2026-08-02-okf-foundation-design.md +593 -0
- package/docs/superpowers/specs/2026-08-02-okf-v0.2-interoperability-design.md +542 -0
- package/docs/superpowers/specs/2026-08-07-synthesis-language-design.md +94 -0
- package/extensions/llm-wiki/index.ts +22 -36
- package/extensions/llm-wiki/lib/bootstrap.ts +87 -0
- package/extensions/llm-wiki/lib/embeddings.ts +9 -3
- package/extensions/llm-wiki/lib/guardrails.ts +26 -18
- package/extensions/llm-wiki/lib/indexing.ts +2 -1
- package/extensions/llm-wiki/lib/ingest-worker.ts +304 -28
- package/extensions/llm-wiki/lib/knowledge-document.ts +663 -0
- package/extensions/llm-wiki/lib/knowledge-links.ts +282 -0
- package/extensions/llm-wiki/lib/legacy-repair.ts +572 -0
- package/extensions/llm-wiki/lib/metadata.ts +550 -128
- package/extensions/llm-wiki/lib/model-command.ts +0 -1
- package/extensions/llm-wiki/lib/observation.ts +37 -43
- package/extensions/llm-wiki/lib/recall.ts +61 -33
- package/extensions/llm-wiki/lib/retro.ts +65 -41
- package/extensions/llm-wiki/lib/runtime.ts +0 -3
- package/extensions/llm-wiki/lib/source-extractors.ts +12 -17
- package/extensions/llm-wiki/lib/source-packet.ts +45 -32
- package/extensions/llm-wiki/lib/task-config.ts +36 -0
- package/extensions/llm-wiki/lib/tools.ts +413 -342
- package/extensions/llm-wiki/lib/trajectory.ts +15 -1
- package/extensions/llm-wiki/lib/utils.ts +127 -131
- package/extensions/llm-wiki/lib/vault-format.ts +363 -0
- package/extensions/llm-wiki/lib/wiki-service.ts +183 -0
- package/mcp/exec.ts +122 -0
- package/mcp/index.ts +60 -250
- package/mcp/operations.ts +176 -0
- package/package.json +8 -2
- package/scripts/migrate-llm-wiki.js +801 -0
- package/skills/llm-wiki/SKILL.md +12 -8
package/skills/llm-wiki/SKILL.md
CHANGED
|
@@ -32,7 +32,7 @@ WIKI_ROOT/
|
|
|
32
32
|
│ ├── analyses/ # Durable query answers
|
|
33
33
|
│ ├── cases/ # One specific past task per trajectory
|
|
34
34
|
│ └── skills/ # Reusable patterns distilled from trajectories
|
|
35
|
-
├── meta/ #
|
|
35
|
+
├── meta/ # Durable events + generated projections (extension-owned)
|
|
36
36
|
│ ├── registry.json # Master page catalog
|
|
37
37
|
│ ├── backlinks.json # Inbound link map
|
|
38
38
|
│ ├── index.md # Human-readable catalog
|
|
@@ -45,13 +45,15 @@ WIKI_ROOT/
|
|
|
45
45
|
## Golden Rules
|
|
46
46
|
|
|
47
47
|
1. **RAW IS IMMUTABLE.** Never edit `raw/`. Use `wiki_capture_source` to add sources.
|
|
48
|
-
2. **META IS
|
|
48
|
+
2. **META IS EXTENSION-OWNED.** Never edit `meta/` directly. `events.jsonl` is append-only authoritative activity state; other metadata files are generated projections.
|
|
49
49
|
3. **YOU OWN THE WIKI.** Create, update, and cross-reference everything in `wiki/`.
|
|
50
50
|
4. **ONE FILE PER THING.** Each entity, concept, source gets its own `.md` file.
|
|
51
|
-
5. **CROSS-REFERENCE EVERYTHING.** Every page needs at least 2 `[[
|
|
51
|
+
5. **CROSS-REFERENCE EVERYTHING.** Every page needs at least 2 links. Prefer standard Markdown: `[label](/folder/page.md)`. Legacy wikilinks `[[folder/page]]` remain readable.
|
|
52
52
|
6. **CITE SOURCES.** Every claim links back to its raw source packet.
|
|
53
53
|
7. **FLAG CONTRADICTIONS.** When sources disagree, document both sides.
|
|
54
54
|
|
|
55
|
+
> Preserve `meta/events.jsonl` in full-vault backups. `meta/log.md` and `wiki/log.md` cannot reconstruct it. Do not place secrets or private machine paths in manual event details.
|
|
56
|
+
|
|
55
57
|
## Agent Working-Memory (Trajectories)
|
|
56
58
|
|
|
57
59
|
The wiki captures not only what you *read* (sources) but what you *do*
|
|
@@ -149,7 +151,7 @@ After completing any meaningful task, call `wiki_retro` to save key insights:
|
|
|
149
151
|
**Do not wait for the user to ask.** Save insights proactively — one atomic insight per call.
|
|
150
152
|
|
|
151
153
|
```
|
|
152
|
-
wiki_retro(slug="kebab-case-slug", title="Brief descriptive title", body="Insight in your own words with [
|
|
154
|
+
wiki_retro(slug="kebab-case-slug", title="Brief descriptive title", body="Insight in your own words with [links](/folder/page.md)")
|
|
153
155
|
```
|
|
154
156
|
|
|
155
157
|
### Deeper Searches
|
|
@@ -214,7 +216,7 @@ Use these directly — they handle scaffolding, bookkeeping, recall, and capture
|
|
|
214
216
|
3. **Read**: `read raw/sources/SRC-*/extracted.md`
|
|
215
217
|
4. **Write**: Update skeleton source page with summary, entities, concepts
|
|
216
218
|
5. **Ensure**: `wiki_ensure_page(type="entity", title="...")` for each entity
|
|
217
|
-
6. **Cross-ref**: Add `[
|
|
219
|
+
6. **Cross-ref**: Add `[links](/folder/page.md)` between related pages
|
|
218
220
|
7. **Done**: Extension auto-rebuilds metadata
|
|
219
221
|
|
|
220
222
|
### Query → Answer → File
|
|
@@ -222,7 +224,7 @@ Use these directly — they handle scaffolding, bookkeeping, recall, and capture
|
|
|
222
224
|
1. **Layered recall**: Extension searches personal + project vaults, injects matching pages with vault labels
|
|
223
225
|
2. For better results: call `wiki_recall` explicitly with task-specific terms
|
|
224
226
|
3. Read those pages
|
|
225
|
-
4. Synthesize answer with `[
|
|
227
|
+
4. Synthesize answer with `[link](/folder/page.md)` citations
|
|
226
228
|
5. If novel: create analysis page via `wiki_ensure_page(type="analysis")`
|
|
227
229
|
6. Extension auto-updates metadata
|
|
228
230
|
|
|
@@ -248,7 +250,8 @@ Use these directly — they handle scaffolding, bookkeeping, recall, and capture
|
|
|
248
250
|
### Naming
|
|
249
251
|
|
|
250
252
|
- `kebab-case.md` for all files
|
|
251
|
-
-
|
|
253
|
+
- Standard Markdown links: `[label](/concepts/retrieval-augmented-generation.md)`
|
|
254
|
+
- Legacy wikilinks still readable: `[[concepts/retrieval-augmented-generation]]`
|
|
252
255
|
|
|
253
256
|
### Frontmatter
|
|
254
257
|
|
|
@@ -297,7 +300,8 @@ Open `wiki/` as an Obsidian vault. The extension generates:
|
|
|
297
300
|
|
|
298
301
|
- `meta/index.md` — browsable catalog
|
|
299
302
|
- `meta/backlinks.json` — for graph plugins
|
|
300
|
-
-
|
|
303
|
+
- Standard Markdown links — preferred for new pages
|
|
304
|
+
- Legacy wikilinks — still readable
|
|
301
305
|
|
|
302
306
|
Recommended plugins: Dataview, Graph View, Backlinks
|
|
303
307
|
|