@matthewfl/pi-contemplator 0.3.0 → 0.3.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@matthewfl/pi-contemplator",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"description": "A Pi extension that keeps long-running agentic sessions on track with background memory, contemplation, and structural review.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -7,9 +7,16 @@ import {
|
|
|
7
7
|
type MemoryCoverageCustomType,
|
|
8
8
|
} from "./types.js";
|
|
9
9
|
|
|
10
|
-
const SOURCE_ENTRY_TYPES = new Set(["
|
|
10
|
+
const SOURCE_ENTRY_TYPES = new Set(["custom_message", "branch_summary"]);
|
|
11
11
|
|
|
12
12
|
export function isSourceEntry(entry: Entry): boolean {
|
|
13
|
+
if (entry.type === "message") {
|
|
14
|
+
// Pi 0.87 persists its canonical system prompt as a message entry. It is
|
|
15
|
+
// extension/runtime configuration, not new conversation evidence; counting
|
|
16
|
+
// its large sections makes a fresh session immediately cross the observer
|
|
17
|
+
// threshold even though only a few hundred user-visible tokens exist.
|
|
18
|
+
return !isObject(entry.message) || entry.message.role !== "system";
|
|
19
|
+
}
|
|
13
20
|
return SOURCE_ENTRY_TYPES.has(entry.type);
|
|
14
21
|
}
|
|
15
22
|
|