@aeondave/pi-persona-mind 0.9.5 → 0.9.6
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/AGENTS.md +2 -2
- package/CHANGELOG.md +7 -0
- package/README.md +4 -3
- package/docs/DESIGN.md +9 -3
- package/package.json +6 -6
- package/src/core/host-compat.ts +2 -2
- package/src/index.ts +12 -2
package/AGENTS.md
CHANGED
|
@@ -9,7 +9,7 @@ coupled through a versioned local companion handshake to
|
|
|
9
9
|
- Typecheck: `npm run typecheck` (`tsc --noEmit`, strict + `exactOptionalPropertyTypes`)
|
|
10
10
|
- Tests: `npm test` · both: `npm run verify`
|
|
11
11
|
- Hermetic choke point: `node --import tsx --import ./test/setup/hermetic-env.ts --test test/*.test.ts`
|
|
12
|
-
- Installed Pi 1.6.
|
|
12
|
+
- Installed Pi 1.6.1 qualification: `node --import tsx scripts/qualify-host.mjs <absolute-pi-package-root> <absolute-pi-persona-extension-path> [<absolute-packed-mind-extension-path>]`
|
|
13
13
|
(isolated profile, offline synthetic provider; no cloud authentication/model-quality claim).
|
|
14
14
|
|
|
15
15
|
## Conventions
|
|
@@ -17,7 +17,7 @@ coupled through a versioned local companion handshake to
|
|
|
17
17
|
- User-requested commits use **AeonDave** as both author and committer, retaining the user's configured
|
|
18
18
|
email. Never add `Co-authored-by` or assistant/bot attribution; do not push unless explicitly requested.
|
|
19
19
|
- Erasable-syntax-only TS. `src/core/*` is pure (no Pi imports) and unit-tested.
|
|
20
|
-
- Target the latest stable Pi only (currently 1.6.
|
|
20
|
+
- Target the latest stable Pi only (currently 1.6.1), Node 22.19.0+. Keep host packages and
|
|
21
21
|
typebox as optional peers on `*`, with all four Pi development packages pinned together.
|
|
22
22
|
No historical-host branches; never bundle a second host runtime. Scope development security
|
|
23
23
|
overrides to their affected parent/version and remove them when that graph no longer needs them.
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.9.6](https://github.com/AeonDave/pi-persona-mind/releases/tag/v0.9.6) - 2026-11-27
|
|
4
|
+
|
|
5
|
+
- Delegated workers can receive their selected skills and Mind memory together. Previously Mind
|
|
6
|
+
could cause Persona to reject the delegation before the worker's first model call.
|
|
7
|
+
- Mind now requires Pi 1.6.1. Its memory, backlog and delegated-worker integration are tested
|
|
8
|
+
against that host.
|
|
9
|
+
|
|
3
10
|
## [0.9.5](https://github.com/AeonDave/pi-persona-mind/releases/tag/v0.9.5) - 2026-11-25
|
|
4
11
|
|
|
5
12
|
- Saved Persona workers rank lean memory by the launch task and show relative ages as of the
|
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<h1 align="center">pi-persona-mind</h1>
|
|
2
2
|
|
|
3
3
|
<p align="center">
|
|
4
|
-
<img src="https://raw.githubusercontent.com/AeonDave/pi-persona-mind/v0.9.
|
|
4
|
+
<img src="https://raw.githubusercontent.com/AeonDave/pi-persona-mind/v0.9.6/assets/banner.png" alt="pi-persona-mind — durable memory for Pi">
|
|
5
5
|
</p>
|
|
6
6
|
|
|
7
7
|
[](https://github.com/AeonDave/pi-persona-mind/actions/workflows/test.yml)
|
|
@@ -28,7 +28,7 @@ knowledge reviews use the current session model and incur model usage.
|
|
|
28
28
|
|
|
29
29
|
## Quick start
|
|
30
30
|
|
|
31
|
-
Mind 0.9.
|
|
31
|
+
Mind 0.9.6 requires **Pi 1.6.1**, **Node.js 22.19.0+**, and
|
|
32
32
|
[**pi-persona 1.18.1+**](https://github.com/AeonDave/pi-persona) loaded in the same instance.
|
|
33
33
|
|
|
34
34
|
```bash
|
|
@@ -76,7 +76,8 @@ or `shared` destination. Strong direct-user cues may be captured automatically,
|
|
|
76
76
|
Broader retention requires a separate deliberate `memory` call with an explicit durable scope.
|
|
77
77
|
|
|
78
78
|
Reminders notify you while Pi is open; they do not wake the model. Delegated workers receive a lean
|
|
79
|
-
memory selection
|
|
79
|
+
memory selection alongside any skills assigned with `delegate`. Session notes and memory/backlog
|
|
80
|
+
write tools stay with the supervisor. Home-directory sessions skip
|
|
80
81
|
project injection and reminders. See [lifetimes and scope](docs/DESIGN.md#four-lifetimes) and
|
|
81
82
|
[session notes](docs/DESIGN.md#session-notes) for persistence, branch-local forgetting and expiry.
|
|
82
83
|
|
package/docs/DESIGN.md
CHANGED
|
@@ -9,7 +9,7 @@ the user workflow is in [README](../README.md). Local design rationale and evalu
|
|
|
9
9
|
This design contract describes the current development tree; released changes are recorded separately
|
|
10
10
|
in CHANGELOG.md.
|
|
11
11
|
|
|
12
|
-
Target the latest stable Pi only, currently 1.6.
|
|
12
|
+
Target the latest stable Pi only, currently 1.6.1, and Node >=22.19. All four development Pi packages
|
|
13
13
|
are pinned together; runtime host/typebox packages remain optional wildcard peers. No second host
|
|
14
14
|
runtime or historical hook-shape adapter is bundled. A development-only security override does not
|
|
15
15
|
patch an installed host.
|
|
@@ -17,7 +17,7 @@ patch an installed host.
|
|
|
17
17
|
Mind requires a loaded compatible pi-persona through its versioned local companion handshake.
|
|
18
18
|
Missing/incompatible presence leaves tools inactive and suppresses capture, storage/import,
|
|
19
19
|
injection and reminders. A settings file or installed npm package is not proof of an active
|
|
20
|
-
companion. Mind 0.9.
|
|
20
|
+
companion. Mind 0.9.6 requires Persona 1.18.1 or later for these paired contracts. Its optional npm
|
|
21
21
|
peer declares that requirement without auto-installing or activating another extension.
|
|
22
22
|
|
|
23
23
|
The node-only core has no Pi imports. The factory wires native Pi hooks, tools, scope, scheduling
|
|
@@ -97,11 +97,17 @@ PI_PERSONA_DISABLE alone does not designate a worker. Workers get lean objective
|
|
|
97
97
|
no project/session notes, no memory/backlog tools and no reminders. Both Persona engines freeze the
|
|
98
98
|
launching persona. In-process workers receive it through their own extension bus; child processes
|
|
99
99
|
receive a scrubbed spawn-local payload. A later parent selection cannot move a worker's memory scope.
|
|
100
|
+
Mind appends worker memory through Pi's prompt options. Persona can preload the selected skill
|
|
101
|
+
bodies in Pi's skills section and verify both inputs when the worker resumes. Pi records the
|
|
102
|
+
worker's memory excerpts in its native system messages when the worker transcript is saved.
|
|
100
103
|
For a persisted worker with one valid Persona v1 contract on the active branch, lean memory ranking
|
|
101
104
|
uses the first user turn after that contract. Labels such as `today` and `1d` in the worker's lean
|
|
102
105
|
memory refer to that launch turn's timestamp. Mind reads current durable memory for each turn, and
|
|
103
106
|
Persona checks the resulting prompt against the saved contract.
|
|
104
107
|
|
|
108
|
+
After upgrading from 0.9.5, a worker saved with memory in a full-prompt override can report
|
|
109
|
+
`prompt configuration` on resume. Start a fresh delegation with the same brief and skills in that case.
|
|
110
|
+
|
|
105
111
|
Intercom/Exocom and worker output stay foreign reference material, not automatic capture requests.
|
|
106
112
|
Only the reserved pi-persona-deferred-input custom type replays direct user input. This is a
|
|
107
113
|
trusted-extension convention, not authentication against other code running in the same process.
|
|
@@ -554,7 +560,7 @@ language detector, language-specific factor, local tokenizer execution or runtim
|
|
|
554
560
|
The reference encoding is not the current model's billing counter, and eight curated vectors do not
|
|
555
561
|
establish broad language coverage or justify automatic budget tuning. The runtime budget is unchanged.
|
|
556
562
|
|
|
557
|
-
Tests isolate PI_PERSONA_* and a throwaway PI_AGENT_DIR, use the actual Pi 1.6.
|
|
563
|
+
Tests isolate PI_PERSONA_* and a throwaway PI_AGENT_DIR, use the actual Pi 1.6.1 SDK/tool pipeline and
|
|
558
564
|
offline providers, and join session_shutdown before SDK disposal. Native session tests cover persisted
|
|
559
565
|
reopen, branch/fork, in-memory behavior and owner revocation. Store tests cover lost writes, stale plans,
|
|
560
566
|
invalid inputs and concurrent apply. Installed-host/package qualification complements source tests.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aeondave/pi-persona-mind",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.6",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "Local memory for Pi with pi-persona — durable project and persona facts, session notes, bounded retrieval, and supervised automatic consolidation.",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"verify": "npm run typecheck && npm test"
|
|
53
53
|
},
|
|
54
54
|
"pi": {
|
|
55
|
-
"image": "https://raw.githubusercontent.com/AeonDave/pi-persona-mind/v0.9.
|
|
55
|
+
"image": "https://raw.githubusercontent.com/AeonDave/pi-persona-mind/v0.9.6/assets/banner.png",
|
|
56
56
|
"extensions": [
|
|
57
57
|
"./src/index.ts"
|
|
58
58
|
]
|
|
@@ -82,10 +82,10 @@
|
|
|
82
82
|
}
|
|
83
83
|
},
|
|
84
84
|
"devDependencies": {
|
|
85
|
-
"@earendil-works/pi-agent-core": "1.6.
|
|
86
|
-
"@earendil-works/pi-ai": "1.6.
|
|
87
|
-
"@earendil-works/pi-coding-agent": "1.6.
|
|
88
|
-
"@earendil-works/pi-tui": "1.6.
|
|
85
|
+
"@earendil-works/pi-agent-core": "1.6.1",
|
|
86
|
+
"@earendil-works/pi-ai": "1.6.1",
|
|
87
|
+
"@earendil-works/pi-coding-agent": "1.6.1",
|
|
88
|
+
"@earendil-works/pi-tui": "1.6.1",
|
|
89
89
|
"@types/node": "^22.0.0",
|
|
90
90
|
"tsx": "^4.19.0",
|
|
91
91
|
"typebox": "*",
|
package/src/core/host-compat.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/** The extension targets current Pi only; this is a floor check, not a compatibility layer. */
|
|
2
|
-
export const MIN_PI_VERSION = "1.6.
|
|
2
|
+
export const MIN_PI_VERSION = "1.6.1";
|
|
3
|
+
const minimum = MIN_PI_VERSION.split(".").map(Number);
|
|
3
4
|
|
|
4
5
|
export function isSupportedPiVersion(version: string): boolean {
|
|
5
6
|
const parsed = /^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-([0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*))?(?:\+[0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*)?$/.exec(version);
|
|
@@ -7,7 +8,6 @@ export function isSupportedPiVersion(version: string): boolean {
|
|
|
7
8
|
const parts = parsed.slice(1, 4).map(Number);
|
|
8
9
|
if (parts.some((part) => !Number.isSafeInteger(part))) return false;
|
|
9
10
|
const current = parts as [number, number, number];
|
|
10
|
-
const minimum = [1, 6, 0] as const;
|
|
11
11
|
for (let i = 0; i < minimum.length; i++) {
|
|
12
12
|
if (current[i]! > minimum[i]!) return true;
|
|
13
13
|
if (current[i]! < minimum[i]!) return false;
|
package/src/index.ts
CHANGED
|
@@ -1121,8 +1121,18 @@ export function createExtension(pi: ExtensionAPI, opts: ExtensionOptions = {}):
|
|
|
1121
1121
|
}
|
|
1122
1122
|
const injected = [block, sessionBlock, cueHint].filter(Boolean).join("\n\n");
|
|
1123
1123
|
if (!isDelegatedLeg) inspector.recordContext(ctx, injected, inspectorCurrent);
|
|
1124
|
-
if (injected) return
|
|
1125
|
-
|
|
1124
|
+
if (!injected) return;
|
|
1125
|
+
// Full supervisor memory stays request-local. A prior opaque worker prompt also owns
|
|
1126
|
+
// the whole request; keep it opaque so Persona can enforce its selected-skills guard.
|
|
1127
|
+
if (!isDelegatedLeg || event.systemPromptOptions.forceSystemPrompt !== undefined) {
|
|
1128
|
+
return { systemPrompt: `${event.systemPrompt}\n\n${injected}` };
|
|
1129
|
+
}
|
|
1130
|
+
// Pi gives a nonempty sections.addendum precedence over appendSystemPrompt. Preserve that
|
|
1131
|
+
// effective content in the field Persona fingerprints, leaving the skills section live.
|
|
1132
|
+
const options = event.systemPromptOptions;
|
|
1133
|
+
const prior = options.sections.addendum || options.appendSystemPrompt;
|
|
1134
|
+
options.appendSystemPrompt = prior ? `${prior}\n\n${injected}` : injected;
|
|
1135
|
+
if (options.sections.addendum) options.sections.addendum = options.appendSystemPrompt;
|
|
1126
1136
|
});
|
|
1127
1137
|
|
|
1128
1138
|
// The SYNC delegation path: a `delegate`/`council` tool_result whose report carries a BLOCKED/UNKNOWN
|