@zosmaai/pi-llm-wiki 0.10.2 → 0.10.4

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/README.md CHANGED
@@ -16,19 +16,7 @@
16
16
 
17
17
  <br/>
18
18
 
19
- <div align="center">
20
- <a href="https://github.com/zosmaai/pi-llm-wiki/stargazers">
21
- <img src="./assets/thank-you-for-the-star.png" alt="Thank you for starring pi-llm-wiki!" width="100%" />
22
- </a>
23
- <br/>
24
- <sub>
25
- If you find pi-llm-wiki useful,
26
- <a href="https://github.com/zosmaai/pi-llm-wiki">⭐ star the repo</a> —
27
- it lets us know we're building something that matters.
28
- </sub>
29
- </div>
30
19
 
31
- <br/>
32
20
 
33
21
  **Self-maintaining, Obsidian-compatible knowledge base for [pi](https://pi.dev).**
34
22
  Follows Andrej Karpathy's [LLM Wiki pattern](https://gist.github.com/karpathy/442a6bf555914893e9891c11519de94f).
@@ -402,9 +390,19 @@ See [CONTRIBUTING.md](CONTRIBUTING.md) for development setup, test patterns, and
402
390
 
403
391
  ---
404
392
 
405
- ## Star History
393
+ <div align="center">
394
+ <a href="https://github.com/zosmaai/pi-llm-wiki/stargazers">
395
+ <img src="./assets/thank-you-for-the-star.png" alt="Thank you for starring pi-llm-wiki!" width="100%" />
396
+ </a>
397
+ <br/>
398
+ <sub>
399
+ If you find pi-llm-wiki useful,
400
+ <a href="https://github.com/zosmaai/pi-llm-wiki">⭐ star the repo</a> —
401
+ it lets us know we're building something that matters.
402
+ </sub>
403
+ </div>
406
404
 
407
- [![Star History Chart](https://api.star-history.com/svg?repos=zosmaai/pi-llm-wiki&type=Date)](https://star-history.com/#zosmaai/pi-llm-wiki&Date)
405
+ <br/>
408
406
 
409
407
  ## Contributors
410
408
 
@@ -1,4 +1,4 @@
1
- import { existsSync, mkdirSync, readFileSync, writeFileSync } from "node:fs";
1
+ import { existsSync, mkdirSync, writeFileSync } from "node:fs";
2
2
  import { join } from "node:path";
3
3
  import type { AgentTool } from "@mariozechner/pi-agent-core";
4
4
  import type { Api, Model } from "@mariozechner/pi-ai";
@@ -1,5 +1,5 @@
1
- import { existsSync, mkdirSync, readFileSync, readdirSync, statSync, writeFileSync } from "node:fs";
2
- import { join, resolve } from "node:path";
1
+ import { existsSync, mkdirSync, readFileSync, readdirSync, writeFileSync } from "node:fs";
2
+ import { join } from "node:path";
3
3
  import {
4
4
  type VaultPaths,
5
5
  extractWikilinks,
@@ -7,7 +7,6 @@ import {
7
7
  fmtDate,
8
8
  parseFrontmatter,
9
9
  readJson,
10
- readText,
11
10
  writeJson,
12
11
  } from "./utils.js";
13
12
 
@@ -354,7 +354,12 @@ export function registerObservationReminder(
354
354
  reminderState.observeDoneThisSession = false;
355
355
  });
356
356
 
357
- pi.on("agent_end", async (_event, _ctx) => {
357
+ pi.on("agent_end", async (event, _ctx) => {
358
+ // Skip reminder on retries — willRetry means pi will re-run the agent,
359
+ // and queuing another reminder would duplicate them (issue: connection
360
+ // errors cause multiple retries, each firing agent_end).
361
+ if ("willRetry" in event && (event as { willRetry?: boolean }).willRetry) return;
362
+
358
363
  turnsSinceLastReminder++;
359
364
  if (turnsSinceLastReminder < REMINDER_INTERVAL) return;
360
365
  if (reminderState.observeDoneThisSession) return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zosmaai/pi-llm-wiki",
3
- "version": "0.10.2",
3
+ "version": "0.10.4",
4
4
  "description": "Self-maintaining LLM Wiki for Pi — Karpathy-pattern knowledge base with immutable source capture, automated ingestion, search, linting, and Obsidian-compatible vault. auto-updating personal & company wiki.",
5
5
  "keywords": [
6
6
  "pi",