@zosmaai/pi-llm-wiki 0.11.0 → 0.11.2
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 +5 -0
- package/README.de.md +19 -1
- package/README.es.md +19 -1
- package/README.fr.md +19 -1
- package/README.hi.md +19 -1
- package/README.ja.md +19 -1
- package/README.ko.md +19 -1
- package/README.md +38 -3
- package/README.pt.md +19 -1
- package/README.ru.md +19 -1
- package/README.zh.md +19 -1
- package/dist/extensions/llm-wiki/lib/bootstrap.js +4 -1
- package/dist/extensions/llm-wiki/lib/ingest-worker.js +129 -29
- package/dist/extensions/llm-wiki/lib/metadata.js +37 -31
- package/dist/extensions/llm-wiki/lib/model-command.js +0 -1
- package/dist/extensions/llm-wiki/lib/runtime.js +0 -4
- package/dist/extensions/llm-wiki/lib/source-packet.js +1 -1
- package/dist/extensions/llm-wiki/lib/task-config.js +29 -0
- package/dist/extensions/llm-wiki/lib/tools.js +7 -0
- package/dist/extensions/llm-wiki/lib/utils.js +6 -0
- package/dist/mcp/index.js +2 -1
- package/docs/api.md +5 -2
- package/docs/architecture.md +5 -2
- package/docs/configuration.md +25 -0
- package/docs/superpowers/plans/2026-08-06-authoritative-event-history-phase-1-foundation-hardening.md +937 -0
- package/docs/superpowers/plans/2026-08-07-synthesis-language.md +98 -0
- package/docs/superpowers/specs/2026-08-02-okf-foundation-design.md +17 -2
- package/docs/superpowers/specs/2026-08-02-okf-v0.2-interoperability-design.md +6 -2
- package/docs/superpowers/specs/2026-08-07-synthesis-language-design.md +94 -0
- package/extensions/llm-wiki/lib/bootstrap.ts +4 -1
- package/extensions/llm-wiki/lib/ingest-worker.ts +161 -26
- package/extensions/llm-wiki/lib/knowledge-document.ts +2 -0
- package/extensions/llm-wiki/lib/metadata.ts +38 -31
- package/extensions/llm-wiki/lib/model-command.ts +0 -1
- package/extensions/llm-wiki/lib/runtime.ts +0 -3
- package/extensions/llm-wiki/lib/source-packet.ts +1 -1
- package/extensions/llm-wiki/lib/task-config.ts +36 -0
- package/extensions/llm-wiki/lib/tools.ts +9 -0
- package/extensions/llm-wiki/lib/utils.ts +7 -0
- package/mcp/index.ts +2 -1
- package/package.json +2 -2
- package/skills/llm-wiki/SKILL.md +4 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,11 @@
|
|
|
3
3
|
## [Unreleased]
|
|
4
4
|
|
|
5
5
|
### Fixed
|
|
6
|
+
- **MCP server failed to start on `@modelcontextprotocol/server` 2.0.0** (Issue #128): `mcp/index.ts` imported `StdioServerTransport` from the package root, but SDK 2.0.0 (published 2026-07-27) moved that export to the `./stdio` subpath, so `node dist/mcp/index.js` died with `SyntaxError: The requested module '@modelcontextprotocol/server' does not provide an export named 'StdioServerTransport'` before the transport ever connected. The declared range `^2.0.0-alpha.2` is a caret range over a prerelease, so it permits `2.0.0`: every fresh consumer install resolved the stable SDK against the pre-stable import, while `pnpm-lock.yaml` pinned the `2.0.0-alpha.2` floor — so `test/mcp-package.test.ts`, which does spawn the published command and complete the stdio handshake, only ever exercised the alpha where the root export still existed. Fixed by importing `StdioServerTransport` from `@modelcontextprotocol/server/stdio` (the `./stdio` subpath does not exist in `2.0.0-alpha.2`, so the range, the lockfile and the import move together), raising the range to `^2.0.0`, and refreshing the lockfile so the existing smoke test now runs against the SDK consumers actually get.
|
|
7
|
+
- **Packaged MCP server was never exercised with consumer-resolved dependencies**: a new `packaged-mcp-consumer` CI job packs the tarball, installs it into a directory with **no lockfile**, prints the resolved SDK version, and runs `scripts/mcp-smoke.mjs` — the stdio handshake (`initialize` → `tools/list`) — against that install. This closes the whole class of failure behind Issue #128: a dependency range that resolves differently for consumers than for this repo's lockfile can no longer break the published server undetected.
|
|
8
|
+
- **README documented a standalone MCP command that ships no JavaScript** (Issue #129): all ten READMEs pointed MCP clients at `node node_modules/@zosmaai/pi-llm-wiki/mcp/index.js`, but the published `mcp/` directory contains only TypeScript (`index.ts`, `exec.ts`, `operations.ts`), so the documented command failed with `MODULE_NOT_FOUND` — independently of any dependency-resolution problem. The runnable entry is `dist/mcp/index.js`, which the package's own `pi.mcpservers` manifest already declared correctly. Every README now documents that path and adds an `mcpServers` config block for `.mcp.json` / `claude_desktop_config.json` using **absolute** paths, because MCP clients spawn the command without a shell: a `~` in `args` or `env` is passed through literally and the server fails to start behind a generic connection error. A new `test/package-structure.test.ts` case derives the expected path from `pi.mcpservers` — the same command `test/mcp-package.test.ts` spawns and handshakes with — and asserts every documented `…/mcp/index.js` occurrence in every README resolves to it, so docs cannot drift from the runnable entry point again.
|
|
9
|
+
- **Authoritative activity history**: `meta/events.jsonl` is now documented as durable append-only extension state rather than rebuildable metadata. Missing or unreadable event sources warn and preserve existing Markdown logs while unrelated projections continue rebuilding.
|
|
10
|
+
- **Portable log privacy**: local-file capture events no longer duplicate caller-supplied filesystem paths into `events.jsonl` or OKF `wiki/log.md`; exact paths remain in extension-owned raw manifests.
|
|
6
11
|
- **Vault layout migration safety and packaging**: `scripts/migrate-llm-wiki.js` now runs on the minimum supported Node 18 runtime, accepts absolute or relative roots regardless of flag order, reserves the destination root atomically, uses no-clobber file moves, rejects destination collisions before moving data, and ships in the npm package. A durable journal records source hashes and completed moves so an interrupted migration resumes safely; file and directory durability boundaries are flushed before completion. Black-box tests cover paths with spaces, dry-run immutability, hash-preserving apply, idempotency, preflight/raced collisions, real subprocess `SIGKILL` recovery, doubled-layout recovery, packed-artifact contents, and packed execution on Node 18.
|
|
7
12
|
- **Malformed legacy pages blocked every metadata rebuild**: `wiki_lint auto_fix=true` now backs up recoverable malformed pages, repairs missing frontmatter or `type` fields, archives unparseable raw frontmatter, preserves bodies, and writes a manifest containing old/new SHA-256 hashes before rebuilding metadata. Audit-only lint remains read-only.
|
|
8
13
|
- **Generated source pages emitted unresolved first-party links**: source skeletons no longer create fake entity/concept links, and raw packet artifacts are rendered as extension-owned code paths rather than Markdown links inside the OKF bundle. Captured and ingested pages now rebuild without unexpected `link_unresolved` or `link_path_escape` diagnostics while retaining valid entity/concept backlinks.
|
package/README.de.md
CHANGED
|
@@ -363,11 +363,29 @@ The package ships a standalone MCP server exposing 5 wiki tools over stdio:
|
|
|
363
363
|
pi install npm:@zosmaai/pi-llm-wiki
|
|
364
364
|
|
|
365
365
|
# Standalone with any MCP client:
|
|
366
|
-
WIKI_ROOT=~/my-wiki node node_modules/@zosmaai/pi-llm-wiki/mcp/index.js
|
|
366
|
+
WIKI_ROOT=~/my-wiki node node_modules/@zosmaai/pi-llm-wiki/dist/mcp/index.js
|
|
367
367
|
```
|
|
368
368
|
|
|
369
369
|
Set `WIKI_ROOT` to your wiki vault directory. If unset, the server auto-detects from the current working directory.
|
|
370
370
|
|
|
371
|
+
### Client configuration
|
|
372
|
+
|
|
373
|
+
The same server as an entry in `.mcp.json` (Claude Code) or `claude_desktop_config.json`:
|
|
374
|
+
|
|
375
|
+
```json
|
|
376
|
+
{
|
|
377
|
+
"mcpServers": {
|
|
378
|
+
"llm-wiki": {
|
|
379
|
+
"command": "node",
|
|
380
|
+
"args": ["/absolute/path/to/node_modules/@zosmaai/pi-llm-wiki/dist/mcp/index.js"],
|
|
381
|
+
"env": { "WIKI_ROOT": "/absolute/path/to/my-wiki" }
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
```
|
|
386
|
+
|
|
387
|
+
> MCP clients spawn the command **without a shell**, so `~` is never expanded. A `~/my-wiki` in `args` or `env` is passed through literally and the server fails to start, which the client reports only as a generic connection error — use absolute paths here. The shell snippet above is fine: your shell expands `~` before `node` sees it.
|
|
388
|
+
|
|
371
389
|
---
|
|
372
390
|
|
|
373
391
|
## Skill-Verhalten
|
package/README.es.md
CHANGED
|
@@ -347,11 +347,29 @@ El paquete incluye un servidor MCP independiente que expone 5 herramientas de wi
|
|
|
347
347
|
pi install npm:@zosmaai/pi-llm-wiki
|
|
348
348
|
|
|
349
349
|
# Independiente con cualquier cliente MCP:
|
|
350
|
-
WIKI_ROOT=~/my-wiki node node_modules/@zosmaai/pi-llm-wiki/mcp/index.js
|
|
350
|
+
WIKI_ROOT=~/my-wiki node node_modules/@zosmaai/pi-llm-wiki/dist/mcp/index.js
|
|
351
351
|
```
|
|
352
352
|
|
|
353
353
|
Establece `WIKI_ROOT` en el directorio de tu vault de wiki. Si no está establecido, el servidor lo detecta automáticamente desde el directorio de trabajo actual.
|
|
354
354
|
|
|
355
|
+
### Configuración del cliente
|
|
356
|
+
|
|
357
|
+
El mismo servidor como entrada en `.mcp.json` (Claude Code) o `claude_desktop_config.json`:
|
|
358
|
+
|
|
359
|
+
```json
|
|
360
|
+
{
|
|
361
|
+
"mcpServers": {
|
|
362
|
+
"llm-wiki": {
|
|
363
|
+
"command": "node",
|
|
364
|
+
"args": ["/absolute/path/to/node_modules/@zosmaai/pi-llm-wiki/dist/mcp/index.js"],
|
|
365
|
+
"env": { "WIKI_ROOT": "/absolute/path/to/my-wiki" }
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
```
|
|
370
|
+
|
|
371
|
+
> Los clientes MCP lanzan el comando **sin shell**, por lo que `~` nunca se expande. Un `~/my-wiki` en `args` o `env` se pasa literalmente y el servidor no arranca, algo que el cliente solo informa como un error de conexión genérico: usa rutas absolutas aquí. El fragmento de shell anterior sí funciona, porque tu shell expande `~` antes de que `node` lo reciba.
|
|
372
|
+
|
|
355
373
|
---
|
|
356
374
|
|
|
357
375
|
## Comportamiento de la Habilidad
|
package/README.fr.md
CHANGED
|
@@ -363,11 +363,29 @@ The package ships a standalone MCP server exposing 5 wiki tools over stdio:
|
|
|
363
363
|
pi install npm:@zosmaai/pi-llm-wiki
|
|
364
364
|
|
|
365
365
|
# Standalone with any MCP client:
|
|
366
|
-
WIKI_ROOT=~/my-wiki node node_modules/@zosmaai/pi-llm-wiki/mcp/index.js
|
|
366
|
+
WIKI_ROOT=~/my-wiki node node_modules/@zosmaai/pi-llm-wiki/dist/mcp/index.js
|
|
367
367
|
```
|
|
368
368
|
|
|
369
369
|
Set `WIKI_ROOT` to your wiki vault directory. If unset, the server auto-detects from the current working directory.
|
|
370
370
|
|
|
371
|
+
### Client configuration
|
|
372
|
+
|
|
373
|
+
The same server as an entry in `.mcp.json` (Claude Code) or `claude_desktop_config.json`:
|
|
374
|
+
|
|
375
|
+
```json
|
|
376
|
+
{
|
|
377
|
+
"mcpServers": {
|
|
378
|
+
"llm-wiki": {
|
|
379
|
+
"command": "node",
|
|
380
|
+
"args": ["/absolute/path/to/node_modules/@zosmaai/pi-llm-wiki/dist/mcp/index.js"],
|
|
381
|
+
"env": { "WIKI_ROOT": "/absolute/path/to/my-wiki" }
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
```
|
|
386
|
+
|
|
387
|
+
> MCP clients spawn the command **without a shell**, so `~` is never expanded. A `~/my-wiki` in `args` or `env` is passed through literally and the server fails to start, which the client reports only as a generic connection error — use absolute paths here. The shell snippet above is fine: your shell expands `~` before `node` sees it.
|
|
388
|
+
|
|
371
389
|
---
|
|
372
390
|
|
|
373
391
|
## Comportement de la Compétence
|
package/README.hi.md
CHANGED
|
@@ -363,11 +363,29 @@ The package ships a standalone MCP server exposing 5 wiki tools over stdio:
|
|
|
363
363
|
pi install npm:@zosmaai/pi-llm-wiki
|
|
364
364
|
|
|
365
365
|
# Standalone with any MCP client:
|
|
366
|
-
WIKI_ROOT=~/my-wiki node node_modules/@zosmaai/pi-llm-wiki/mcp/index.js
|
|
366
|
+
WIKI_ROOT=~/my-wiki node node_modules/@zosmaai/pi-llm-wiki/dist/mcp/index.js
|
|
367
367
|
```
|
|
368
368
|
|
|
369
369
|
Set `WIKI_ROOT` to your wiki vault directory. If unset, the server auto-detects from the current working directory.
|
|
370
370
|
|
|
371
|
+
### Client configuration
|
|
372
|
+
|
|
373
|
+
The same server as an entry in `.mcp.json` (Claude Code) or `claude_desktop_config.json`:
|
|
374
|
+
|
|
375
|
+
```json
|
|
376
|
+
{
|
|
377
|
+
"mcpServers": {
|
|
378
|
+
"llm-wiki": {
|
|
379
|
+
"command": "node",
|
|
380
|
+
"args": ["/absolute/path/to/node_modules/@zosmaai/pi-llm-wiki/dist/mcp/index.js"],
|
|
381
|
+
"env": { "WIKI_ROOT": "/absolute/path/to/my-wiki" }
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
```
|
|
386
|
+
|
|
387
|
+
> MCP clients spawn the command **without a shell**, so `~` is never expanded. A `~/my-wiki` in `args` or `env` is passed through literally and the server fails to start, which the client reports only as a generic connection error — use absolute paths here. The shell snippet above is fine: your shell expands `~` before `node` sees it.
|
|
388
|
+
|
|
371
389
|
---
|
|
372
390
|
|
|
373
391
|
## स्किल व्यवहार
|
package/README.ja.md
CHANGED
|
@@ -363,11 +363,29 @@ The package ships a standalone MCP server exposing 5 wiki tools over stdio:
|
|
|
363
363
|
pi install npm:@zosmaai/pi-llm-wiki
|
|
364
364
|
|
|
365
365
|
# Standalone with any MCP client:
|
|
366
|
-
WIKI_ROOT=~/my-wiki node node_modules/@zosmaai/pi-llm-wiki/mcp/index.js
|
|
366
|
+
WIKI_ROOT=~/my-wiki node node_modules/@zosmaai/pi-llm-wiki/dist/mcp/index.js
|
|
367
367
|
```
|
|
368
368
|
|
|
369
369
|
Set `WIKI_ROOT` to your wiki vault directory. If unset, the server auto-detects from the current working directory.
|
|
370
370
|
|
|
371
|
+
### Client configuration
|
|
372
|
+
|
|
373
|
+
The same server as an entry in `.mcp.json` (Claude Code) or `claude_desktop_config.json`:
|
|
374
|
+
|
|
375
|
+
```json
|
|
376
|
+
{
|
|
377
|
+
"mcpServers": {
|
|
378
|
+
"llm-wiki": {
|
|
379
|
+
"command": "node",
|
|
380
|
+
"args": ["/absolute/path/to/node_modules/@zosmaai/pi-llm-wiki/dist/mcp/index.js"],
|
|
381
|
+
"env": { "WIKI_ROOT": "/absolute/path/to/my-wiki" }
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
```
|
|
386
|
+
|
|
387
|
+
> MCP clients spawn the command **without a shell**, so `~` is never expanded. A `~/my-wiki` in `args` or `env` is passed through literally and the server fails to start, which the client reports only as a generic connection error — use absolute paths here. The shell snippet above is fine: your shell expands `~` before `node` sees it.
|
|
388
|
+
|
|
371
389
|
---
|
|
372
390
|
|
|
373
391
|
## スキルの動作
|
package/README.ko.md
CHANGED
|
@@ -363,11 +363,29 @@ The package ships a standalone MCP server exposing 5 wiki tools over stdio:
|
|
|
363
363
|
pi install npm:@zosmaai/pi-llm-wiki
|
|
364
364
|
|
|
365
365
|
# Standalone with any MCP client:
|
|
366
|
-
WIKI_ROOT=~/my-wiki node node_modules/@zosmaai/pi-llm-wiki/mcp/index.js
|
|
366
|
+
WIKI_ROOT=~/my-wiki node node_modules/@zosmaai/pi-llm-wiki/dist/mcp/index.js
|
|
367
367
|
```
|
|
368
368
|
|
|
369
369
|
Set `WIKI_ROOT` to your wiki vault directory. If unset, the server auto-detects from the current working directory.
|
|
370
370
|
|
|
371
|
+
### Client configuration
|
|
372
|
+
|
|
373
|
+
The same server as an entry in `.mcp.json` (Claude Code) or `claude_desktop_config.json`:
|
|
374
|
+
|
|
375
|
+
```json
|
|
376
|
+
{
|
|
377
|
+
"mcpServers": {
|
|
378
|
+
"llm-wiki": {
|
|
379
|
+
"command": "node",
|
|
380
|
+
"args": ["/absolute/path/to/node_modules/@zosmaai/pi-llm-wiki/dist/mcp/index.js"],
|
|
381
|
+
"env": { "WIKI_ROOT": "/absolute/path/to/my-wiki" }
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
```
|
|
386
|
+
|
|
387
|
+
> MCP clients spawn the command **without a shell**, so `~` is never expanded. A `~/my-wiki` in `args` or `env` is passed through literally and the server fails to start, which the client reports only as a generic connection error — use absolute paths here. The shell snippet above is fine: your shell expands `~` before `node` sees it.
|
|
388
|
+
|
|
371
389
|
---
|
|
372
390
|
|
|
373
391
|
## 스킬 동작
|
package/README.md
CHANGED
|
@@ -271,11 +271,19 @@ my-wiki/
|
|
|
271
271
|
| `.llm-wiki/meta/registry.json` | Extension | Generated |
|
|
272
272
|
| `.llm-wiki/meta/backlinks.json` | Extension | Generated |
|
|
273
273
|
| `.llm-wiki/meta/index.md` | Extension | Generated |
|
|
274
|
-
| `.llm-wiki/meta/events.jsonl` | Extension / tool |
|
|
274
|
+
| `.llm-wiki/meta/events.jsonl` | Extension / tool | Authoritative append-only state; back up for activity continuity |
|
|
275
275
|
| `.llm-wiki/meta/log.md` | Extension | Generated from events |
|
|
276
276
|
| `.llm-wiki/meta/lint-report.md` | Extension | Generated |
|
|
277
277
|
| `.llm-wiki/WIKI_SCHEMA.md` | Human + explicit request | Operating manual |
|
|
278
278
|
|
|
279
|
+
### Activity history, backup, and portability
|
|
280
|
+
|
|
281
|
+
`meta/events.jsonl` is the authoritative source for recorded extension activity. Unlike registry, backlinks, indexes, logs, and embeddings, it cannot be rebuilt from wiki pages or raw packets. Preserve it when backing up or Git-synchronizing a complete pi-llm-wiki vault.
|
|
282
|
+
|
|
283
|
+
`meta/log.md` and OKF-mode `wiki/log.md` are generated views. `wiki/log.md` can travel with the OKF bundle as a readable snapshot, but it cannot reconstruct or resume the originating JSONL stream. Manual page edits are intentionally absent, so this is selected extension activity rather than a complete revision audit.
|
|
284
|
+
|
|
285
|
+
File-capture events omit machine-local paths from the public log projection. Callers of `wiki_log_event` still control arbitrary detail fields and must not record secrets or private host paths.
|
|
286
|
+
|
|
279
287
|
---
|
|
280
288
|
|
|
281
289
|
## Linking & Citation Style
|
|
@@ -351,11 +359,29 @@ The package ships a standalone MCP server exposing 5 wiki tools over stdio:
|
|
|
351
359
|
pi install npm:@zosmaai/pi-llm-wiki
|
|
352
360
|
|
|
353
361
|
# Standalone with any MCP client:
|
|
354
|
-
WIKI_ROOT=~/my-wiki node node_modules/@zosmaai/pi-llm-wiki/mcp/index.js
|
|
362
|
+
WIKI_ROOT=~/my-wiki node node_modules/@zosmaai/pi-llm-wiki/dist/mcp/index.js
|
|
355
363
|
```
|
|
356
364
|
|
|
357
365
|
Set `WIKI_ROOT` to your wiki vault directory. If unset, the server auto-detects from the current working directory.
|
|
358
366
|
|
|
367
|
+
### Client configuration
|
|
368
|
+
|
|
369
|
+
The same server as an entry in `.mcp.json` (Claude Code) or `claude_desktop_config.json`:
|
|
370
|
+
|
|
371
|
+
```json
|
|
372
|
+
{
|
|
373
|
+
"mcpServers": {
|
|
374
|
+
"llm-wiki": {
|
|
375
|
+
"command": "node",
|
|
376
|
+
"args": ["/absolute/path/to/node_modules/@zosmaai/pi-llm-wiki/dist/mcp/index.js"],
|
|
377
|
+
"env": { "WIKI_ROOT": "/absolute/path/to/my-wiki" }
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
```
|
|
382
|
+
|
|
383
|
+
> MCP clients spawn the command **without a shell**, so `~` is never expanded. A `~/my-wiki` in `args` or `env` is passed through literally and the server fails to start, which the client reports only as a generic connection error — use absolute paths here. The shell snippet above is fine: your shell expands `~` before `node` sees it.
|
|
384
|
+
|
|
359
385
|
---
|
|
360
386
|
|
|
361
387
|
## Skill Behavior
|
|
@@ -385,7 +411,7 @@ Each wiki vault has four layers with clear ownership:
|
|
|
385
411
|
```
|
|
386
412
|
.llm-wiki/raw/sources/SRC-*/ # Immutable source packets (extension-owned)
|
|
387
413
|
.llm-wiki/wiki/ # Editable knowledge pages (you + LLM)
|
|
388
|
-
.llm-wiki/meta/ #
|
|
414
|
+
.llm-wiki/meta/ # Durable event source + generated internal projections
|
|
389
415
|
.llm-wiki/ # Config and templates
|
|
390
416
|
```
|
|
391
417
|
|
|
@@ -475,6 +501,13 @@ Thanks to everyone who has contributed! This list is regenerated automatically b
|
|
|
475
501
|
<sub><b>Daniel Naab</b></sub>
|
|
476
502
|
</a>
|
|
477
503
|
</td>
|
|
504
|
+
<td align="center">
|
|
505
|
+
<a href="https://github.com/mkuhl">
|
|
506
|
+
<img src="https://avatars.githubusercontent.com/u/61073?v=4" width="64;" alt="mkuhl"/>
|
|
507
|
+
<br />
|
|
508
|
+
<sub><b>Mike P. Kuhl</b></sub>
|
|
509
|
+
</a>
|
|
510
|
+
</td>
|
|
478
511
|
<td align="center">
|
|
479
512
|
<a href="https://github.com/deestax">
|
|
480
513
|
<img src="https://avatars.githubusercontent.com/u/152369481?v=4" width="64;" alt="deestax"/>
|
|
@@ -482,6 +515,8 @@ Thanks to everyone who has contributed! This list is regenerated automatically b
|
|
|
482
515
|
<sub><b>Superdao</b></sub>
|
|
483
516
|
</a>
|
|
484
517
|
</td>
|
|
518
|
+
</tr>
|
|
519
|
+
<tr>
|
|
485
520
|
<td align="center">
|
|
486
521
|
<a href="https://github.com/mystery4f">
|
|
487
522
|
<img src="https://avatars.githubusercontent.com/u/40482524?v=4" width="64;" alt="mystery4f"/>
|
package/README.pt.md
CHANGED
|
@@ -363,11 +363,29 @@ The package ships a standalone MCP server exposing 5 wiki tools over stdio:
|
|
|
363
363
|
pi install npm:@zosmaai/pi-llm-wiki
|
|
364
364
|
|
|
365
365
|
# Standalone with any MCP client:
|
|
366
|
-
WIKI_ROOT=~/my-wiki node node_modules/@zosmaai/pi-llm-wiki/mcp/index.js
|
|
366
|
+
WIKI_ROOT=~/my-wiki node node_modules/@zosmaai/pi-llm-wiki/dist/mcp/index.js
|
|
367
367
|
```
|
|
368
368
|
|
|
369
369
|
Set `WIKI_ROOT` to your wiki vault directory. If unset, the server auto-detects from the current working directory.
|
|
370
370
|
|
|
371
|
+
### Client configuration
|
|
372
|
+
|
|
373
|
+
The same server as an entry in `.mcp.json` (Claude Code) or `claude_desktop_config.json`:
|
|
374
|
+
|
|
375
|
+
```json
|
|
376
|
+
{
|
|
377
|
+
"mcpServers": {
|
|
378
|
+
"llm-wiki": {
|
|
379
|
+
"command": "node",
|
|
380
|
+
"args": ["/absolute/path/to/node_modules/@zosmaai/pi-llm-wiki/dist/mcp/index.js"],
|
|
381
|
+
"env": { "WIKI_ROOT": "/absolute/path/to/my-wiki" }
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
```
|
|
386
|
+
|
|
387
|
+
> MCP clients spawn the command **without a shell**, so `~` is never expanded. A `~/my-wiki` in `args` or `env` is passed through literally and the server fails to start, which the client reports only as a generic connection error — use absolute paths here. The shell snippet above is fine: your shell expands `~` before `node` sees it.
|
|
388
|
+
|
|
371
389
|
---
|
|
372
390
|
|
|
373
391
|
## Comportamento da Skill
|
package/README.ru.md
CHANGED
|
@@ -363,11 +363,29 @@ The package ships a standalone MCP server exposing 5 wiki tools over stdio:
|
|
|
363
363
|
pi install npm:@zosmaai/pi-llm-wiki
|
|
364
364
|
|
|
365
365
|
# Standalone with any MCP client:
|
|
366
|
-
WIKI_ROOT=~/my-wiki node node_modules/@zosmaai/pi-llm-wiki/mcp/index.js
|
|
366
|
+
WIKI_ROOT=~/my-wiki node node_modules/@zosmaai/pi-llm-wiki/dist/mcp/index.js
|
|
367
367
|
```
|
|
368
368
|
|
|
369
369
|
Set `WIKI_ROOT` to your wiki vault directory. If unset, the server auto-detects from the current working directory.
|
|
370
370
|
|
|
371
|
+
### Client configuration
|
|
372
|
+
|
|
373
|
+
The same server as an entry in `.mcp.json` (Claude Code) or `claude_desktop_config.json`:
|
|
374
|
+
|
|
375
|
+
```json
|
|
376
|
+
{
|
|
377
|
+
"mcpServers": {
|
|
378
|
+
"llm-wiki": {
|
|
379
|
+
"command": "node",
|
|
380
|
+
"args": ["/absolute/path/to/node_modules/@zosmaai/pi-llm-wiki/dist/mcp/index.js"],
|
|
381
|
+
"env": { "WIKI_ROOT": "/absolute/path/to/my-wiki" }
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
```
|
|
386
|
+
|
|
387
|
+
> MCP clients spawn the command **without a shell**, so `~` is never expanded. A `~/my-wiki` in `args` or `env` is passed through literally and the server fails to start, which the client reports only as a generic connection error — use absolute paths here. The shell snippet above is fine: your shell expands `~` before `node` sees it.
|
|
388
|
+
|
|
371
389
|
---
|
|
372
390
|
|
|
373
391
|
## Поведение навыка
|
package/README.zh.md
CHANGED
|
@@ -347,11 +347,29 @@ my-wiki/
|
|
|
347
347
|
pi install npm:@zosmaai/pi-llm-wiki
|
|
348
348
|
|
|
349
349
|
# 独立使用任何 MCP 客户端:
|
|
350
|
-
WIKI_ROOT=~/my-wiki node node_modules/@zosmaai/pi-llm-wiki/mcp/index.js
|
|
350
|
+
WIKI_ROOT=~/my-wiki node node_modules/@zosmaai/pi-llm-wiki/dist/mcp/index.js
|
|
351
351
|
```
|
|
352
352
|
|
|
353
353
|
设置 `WIKI_ROOT` 为您的 wiki vault 目录。如果未设置,服务器从当前工作目录自动检测。
|
|
354
354
|
|
|
355
|
+
### 客户端配置
|
|
356
|
+
|
|
357
|
+
在 `.mcp.json`(Claude Code)或 `claude_desktop_config.json` 中配置同一个服务器:
|
|
358
|
+
|
|
359
|
+
```json
|
|
360
|
+
{
|
|
361
|
+
"mcpServers": {
|
|
362
|
+
"llm-wiki": {
|
|
363
|
+
"command": "node",
|
|
364
|
+
"args": ["/absolute/path/to/node_modules/@zosmaai/pi-llm-wiki/dist/mcp/index.js"],
|
|
365
|
+
"env": { "WIKI_ROOT": "/absolute/path/to/my-wiki" }
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
```
|
|
370
|
+
|
|
371
|
+
> MCP 客户端在**不经过 shell** 的情况下启动该命令,因此 `~` 不会被展开。`args` 或 `env` 中的 `~/my-wiki` 会被原样传递,服务器随即启动失败,而客户端只会报告一个笼统的连接错误——这里请使用绝对路径。上面的 shell 命令没有问题:`~` 由你的 shell 在 `node` 收到之前展开。
|
|
372
|
+
|
|
355
373
|
---
|
|
356
374
|
|
|
357
375
|
## 技能行为
|
|
@@ -12,9 +12,12 @@ export const WIKI_SCHEMA = [
|
|
|
12
12
|
"|------|-------|------|",
|
|
13
13
|
"| raw/** | extension | immutable after capture |",
|
|
14
14
|
"| wiki/** | model + user | editable knowledge pages |",
|
|
15
|
-
"| meta
|
|
15
|
+
"| meta/events.jsonl | extension tools | append-only authoritative state |",
|
|
16
|
+
"| meta/* except events.jsonl | extension | generated projections |",
|
|
16
17
|
"| . | human + explicit request | operating rules |",
|
|
17
18
|
"",
|
|
19
|
+
"Back up `meta/events.jsonl` to preserve activity history. Generated logs cannot reconstruct it.",
|
|
20
|
+
"",
|
|
18
21
|
"## Source Packet Format",
|
|
19
22
|
"",
|
|
20
23
|
"```",
|