billion-context-pi 0.1.72 → 0.1.73
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/dist/cache-tool.d.ts +4 -2
- package/dist/index.js +463 -73
- package/dist/index.js.map +1 -1
- package/dist/live-only-tail.d.ts +13 -0
- package/dist/system-passthrough.d.ts +4 -0
- package/package.json +2 -2
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { SessionEntry, SessionMessageEntry } from "@earendil-works/pi-coding-agent";
|
|
2
|
+
type AgentMessage = SessionMessageEntry["message"];
|
|
3
|
+
/** Messages a host put in the live array WITHOUT writing a session entry. pi-web's
|
|
4
|
+
* "Generate title" copies session state into a fresh Agent and appends its
|
|
5
|
+
* instruction to `event.messages` only; on a Pi host ACP rebuilds the request from
|
|
6
|
+
* persisted entries alone (src/runtime.ts stateFor), so those messages are dropped
|
|
7
|
+
* and the model replies to nothing (#471). Returns the trailing live-only messages
|
|
8
|
+
* to re-append after the rebuild, or null when the live array is not a clean
|
|
9
|
+
* structural extension of the persisted branch — then the caller leaves behaviour
|
|
10
|
+
* unchanged. Recognised shapes: (1) new trailing message(s); (2) a text suffix
|
|
11
|
+
* appended INTO the final user message (returned as one fresh user message). */
|
|
12
|
+
export declare function liveOnlyTail(entries: SessionEntry[], live: AgentMessage[]): AgentMessage[] | null;
|
|
13
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "billion-context-pi",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.73",
|
|
4
4
|
"description": "One billion, not one million. Model-driven context management for the Pi coding agent.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"@earendil-works/pi-coding-agent": "0.83.0",
|
|
62
62
|
"@earendil-works/pi-tui": "0.83.0",
|
|
63
63
|
"@types/node": "^26.1.2",
|
|
64
|
-
"acp-kernel": "0.0.
|
|
64
|
+
"acp-kernel": "0.0.78",
|
|
65
65
|
"tsup": "^8.5.1",
|
|
66
66
|
"tsx": "^4.23.1",
|
|
67
67
|
"typescript": "^7.0.2"
|