pi-tuck 1.11.1 → 1.11.2

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/CHANGELOG.md CHANGED
@@ -3,6 +3,13 @@
3
3
  All notable changes to pi-tuck. The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and versions follow
4
4
  [Semantic Versioning](https://semver.org/).
5
5
 
6
+ ## [1.11.2]
7
+
8
+ ### Fixed
9
+
10
+ - Kept prompt outputs: when a user prompt names a command (for example "Run: telex read NAME") and the agent runs it as
11
+ `cd DIR && telex read NAME`, the output is now carried whole in the summary, as it already was without the `cd` prefix.
12
+
6
13
  ## [1.11.1]
7
14
 
8
15
  ### Fixed
package/README.md CHANGED
@@ -12,7 +12,7 @@ pi install npm:pi-tuck
12
12
 
13
13
  Start a new Pi process after installing or updating. pi-tuck handles automatic compaction and `/compact` by default. Run `/tuck` to see the loaded version, cut history, and active cut policy.
14
14
 
15
- This README describes pi-tuck 1.11.1. To pin a published release, use a versioned source such as `pi install npm:pi-tuck@1.11.1` or `pi install git:github.com/galyavin/pi-tuck@v1.11.1`. To uninstall, run `pi remove` with the source you installed.
15
+ This README describes pi-tuck 1.11.2. To pin a published release, use a versioned source such as `pi install npm:pi-tuck@1.11.2` or `pi install git:github.com/galyavin/pi-tuck@v1.11.2`. To uninstall, run `pi remove` with the source you installed.
16
16
 
17
17
  ## Compaction and recall
18
18
 
@@ -38,6 +38,14 @@ Read the original by the hit's `entryId`, or use `{"index": 212}` to follow a `#
38
38
 
39
39
  Pi-tuck needs a supported Pi version and a nonvirtual model with a valid context window. Setting `"compaction": { "enabled": false }` in Pi's settings disables automatic compaction and makes pi-tuck stand down, including for `/compact` and recall. `/tuck` reports why a loaded compactor is standing down. Capacity notices go to stderr in headless runs.
40
40
 
41
+ ## Long runs
42
+
43
+ Three Pi agents worked for about two days on a hard research codebase, on one local model with a 272k window. That came to about 2,500 model requests and over 300M tokens of context.
44
+
45
+ Each time an agent filled its window, pi-tuck cut it back to about 40k tokens, with no model call. That happened about ten times, and every agent kept working after every cut.
46
+
47
+ The run showed us a few rough edges, and later releases fixed them. We keep watching long runs like this one.
48
+
41
49
  ## Footer
42
50
 
43
51
  In Pi's terminal UI, pi-tuck replaces Pi's footer. Under the folder and git branch, the bar fills toward pi-tuck's trim point, the number `/tuck` reports: a full bar means pi-tuck trims. Next to it are the context size and the trim point, the trim count once pi-tuck has trimmed, the cost when it is above $0, and the model with its thinking level. Other extensions' statuses stay below. The bar turns yellow at 85% of the trim point. A narrow terminal shows only the bar and the two sizes. Right after a trim, before the next reply, the size is the trim's own estimate, shown with `~`. When pi-tuck is not trimming for the model, the line shows the context against the window. `/tuck` shows the trim history.
@@ -1 +1 @@
1
- export declare const BUILD_ID = "952cfaf4cfce60b5ffa289b3838d6aa5e2649ba9997c52a144a2b91130c2dae6";
1
+ export declare const BUILD_ID = "af3354d4b75532f8a65d30e805ce634249fd18de42eb8988de21b51103e9acc2";
@@ -1 +1 @@
1
- export const BUILD_ID = "952cfaf4cfce60b5ffa289b3838d6aa5e2649ba9997c52a144a2b91130c2dae6";
1
+ export const BUILD_ID = "af3354d4b75532f8a65d30e805ce634249fd18de42eb8988de21b51103e9acc2";
@@ -91,7 +91,10 @@ export function promptOutputCandidates(entries, indices, resolvable) {
91
91
  for (const block of message.content) {
92
92
  if (block.type !== "toolCall" || block.name !== "bash" || typeof block.arguments?.command !== "string")
93
93
  continue;
94
- const command = block.arguments.command, lead = words(command.split(/[|;&<>]|\d>/u)[0]);
94
+ const command = block.arguments.command;
95
+ // A leading "cd DIR &&" is not what the prompt names; classifyBash already recognizes it.
96
+ const rest = classifyBash(command).directory === undefined ? command : command.slice(command.indexOf("&&") + 2);
97
+ const lead = words(rest.split(/[|;&<>]|\d>/u)[0]);
95
98
  if (lead.includes(" ") && prompt.includes(lead))
96
99
  named.set(block.id, command);
97
100
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-tuck",
3
- "version": "1.11.1",
3
+ "version": "1.11.2",
4
4
  "description": "Deterministic compaction for Pi with no model call, plus exact recall of earlier history.",
5
5
  "keywords": [
6
6
  "pi-package",
package/src/build-id.ts CHANGED
@@ -1 +1 @@
1
- export const BUILD_ID = "952cfaf4cfce60b5ffa289b3838d6aa5e2649ba9997c52a144a2b91130c2dae6";
1
+ export const BUILD_ID = "af3354d4b75532f8a65d30e805ce634249fd18de42eb8988de21b51103e9acc2";
package/src/kept-reads.ts CHANGED
@@ -70,7 +70,10 @@ export function promptOutputCandidates(entries: readonly (SessionEntry | Session
70
70
  if (message.role !== "assistant" || prompt === undefined || isDiscardedResponse(message)) continue;
71
71
  for (const block of message.content) {
72
72
  if (block.type !== "toolCall" || block.name !== "bash" || typeof (block.arguments as { command?: unknown })?.command !== "string") continue;
73
- const command = (block.arguments as { command: string }).command, lead = words(command.split(/[|;&<>]|\d>/u)[0]!);
73
+ const command = (block.arguments as { command: string }).command;
74
+ // A leading "cd DIR &&" is not what the prompt names; classifyBash already recognizes it.
75
+ const rest = classifyBash(command).directory === undefined ? command : command.slice(command.indexOf("&&") + 2);
76
+ const lead = words(rest.split(/[|;&<>]|\d>/u)[0]!);
74
77
  if (lead.includes(" ") && prompt.includes(lead)) named.set(block.id, command);
75
78
  }
76
79
  prompt = undefined;