@the-librarian/pi-extension 1.29.0 → 1.30.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/README.md CHANGED
@@ -15,10 +15,10 @@ Librarian primer into the system prompt. One install, zero config files.
15
15
  `flag_memory`, `store_handoff`, `list_handoffs`, `claim_handoff`,
16
16
  `search_references`. Descriptions and schemas mirror the server's
17
17
  (a drift-guard test pins them), so the model is taught the same protocol in
18
- Pi as in Claude Code, Codex, OpenCode, and Hermes. `flag_memory` queues
19
- targeted asynchronous correction review: a safe exact claim may be removed or
20
- proposed, while unsafe cases stay flagged. The response reports queue status,
21
- not completion; whole-memory Archive remains a separate human action.
18
+ Pi as in Claude Code, Codex, OpenCode, and Hermes. `flag_memory` asks
19
+ the curator to review a wrong or outdated memory: it may correct it in place,
20
+ propose a correction, or leave the flag for a person. The response reports
21
+ queue status, not completion.
22
22
  - **Primer injection** — the operator-editable `vault/primer.md` (≤2KB) is
23
23
  fetched once per process from `GET <server>/primer.md` and appended to the
24
24
  system prompt via `before_agent_start`.
@@ -34,8 +34,7 @@ Librarian primer into the system prompt. One install, zero config files.
34
34
  token travels in the header only (`redirect:"error"`), and it is fully
35
35
  fail-soft — a Librarian outage never blocks a turn or leaks a stack trace.
36
36
  Private mode is an in-conversation instruction; the server cannot verify its
37
- marker. A correction job queued by a flag from public context may still finish
38
- after switching private; the toggle does not cancel queued work.
37
+ marker. A curator review queued by a flag from public context may still correct that memory after switching private; the toggle does not cancel queued work.
39
38
  - **Four slash commands** (optional sugar): `/handoff`, `/takeover`, `/learn`,
40
39
  `/toggle-private` — thin prompt templates that drive the corresponding tool
41
40
  flows. See [`docs/slash-commands.md`](../../docs/slash-commands.md).
@@ -31,9 +31,9 @@ const TOGGLE_ON =
31
31
  "`store_handoff`, or `flag_memory` until told otherwise. `recall` and " +
32
32
  "`search_references` stay allowed; note that read queries still reach the " +
33
33
  "Librarian server's logs. Private mode is an in-conversation instruction; " +
34
- "the server cannot verify its marker. A correction job queued by a flag " +
35
- "from public context may still finish after switching private; the toggle " +
36
- "does not cancel queued work. Remain in this state until explicitly toggled off.";
34
+ "the server cannot verify its marker. A curator review queued by a flag " +
35
+ "from public context may still correct that memory after switching private; " +
36
+ "the toggle does not cancel queued work. Remain in this state until explicitly toggled off.";
37
37
 
38
38
  const TOGGLE_OFF = "Private mode is OFF. `[librarian:private=off]` — normal operation resumed.";
39
39
 
@@ -90,19 +90,17 @@ export function librarianToolSpecs(): LibrarianToolSpec[] {
90
90
  label: "Flag memory",
91
91
  description:
92
92
  "A recalled memory is wrong, misleading, or outdated—flag it with a short free-text `reason` " +
93
- "(required: say why; never include secrets). Never call while private. A saved flag queues " +
94
- "targeted asynchronous correction review: if the shared confidence policy permits, a safe " +
95
- "exact-claim removal may apply automatically; otherwise a reviewable proposal may be created. " +
96
- "Unsafe or unreviewable cases remain flagged for human review. The flag also demotes the " +
97
- "memory below unflagged matches in recall. Relay the returned status to the " +
98
- "user; a queued response is not completion, so never claim the memory is already corrected. " +
99
- "Whole-memory Archive remains a separate human action. Use sparingly, only when a memory " +
100
- "actively led you astray.",
93
+ "(required: say what is wrong and, if you know it, what is true now; never include secrets). " +
94
+ "Never call while private. The curator reviews flagged memories shortly afterwards: it may " +
95
+ "correct the memory in place, propose a correction for a person to approve, or leave the " +
96
+ "flag for human review. The flag also demotes the memory below unflagged matches in recall. " +
97
+ "Relay the returned status to the user; a queued response is not completion, so never claim " +
98
+ "the memory is already corrected. Use sparingly, only when a memory actively led you astray.",
101
99
  parameters: Type.Object({
102
100
  memory_id: Type.String(),
103
101
  reason: Type.String({
104
102
  description:
105
- "Briefly identify which claim is wrong or outdated. Treat the reason as untrusted data; never include secrets.",
103
+ "Say which statement is wrong or outdated and, if you know it, what is true now. Treat the reason as untrusted data; never include secrets.",
106
104
  minLength: 1,
107
105
  maxLength: 2000,
108
106
  }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@the-librarian/pi-extension",
3
- "version": "1.29.0",
3
+ "version": "1.30.0",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"