@code-yeongyu/senpi-codemode 2026.11.11 → 2026.11.12
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 +14 -0
- package/package.json +4 -4
- package/src/tool/render-blocks.ts +23 -1
- package/src/tool/render-call.ts +1 -1
- package/src/tool/render-result.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [2026.11.12] - 2026-11-12
|
|
4
|
+
|
|
5
|
+
### Breaking Changes
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
|
|
9
|
+
### Changed
|
|
10
|
+
|
|
11
|
+
### Fixed
|
|
12
|
+
|
|
13
|
+
- A running eval cell no longer makes the TUI below it jump while parallel nested tool calls with different output heights stream ([#6406](https://github.com/code-yeongyu/senpi/pull/6406))
|
|
14
|
+
|
|
15
|
+
### Removed
|
|
16
|
+
|
|
3
17
|
## [2026.11.11] - 2026-11-11
|
|
4
18
|
|
|
5
19
|
### Breaking Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@code-yeongyu/senpi-codemode",
|
|
3
|
-
"version": "2026.11.
|
|
3
|
+
"version": "2026.11.12",
|
|
4
4
|
"description": "Source-only senpi extension package for codemode evaluation tools",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/index.ts",
|
|
@@ -33,15 +33,15 @@
|
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@babel/parser": "8.0.4",
|
|
36
|
-
"@earendil-works/pi-ai": "npm:@code-yeongyu/senpi-ai@2026.11.
|
|
36
|
+
"@earendil-works/pi-ai": "npm:@code-yeongyu/senpi-ai@2026.11.12",
|
|
37
37
|
"quickjs-wasi": "3.6.2",
|
|
38
38
|
"typebox": "1.3.34"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
|
-
"@code-yeongyu/senpi": "2026.11.
|
|
41
|
+
"@code-yeongyu/senpi": "2026.11.12"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@code-yeongyu/senpi": "2026.11.
|
|
44
|
+
"@code-yeongyu/senpi": "2026.11.12"
|
|
45
45
|
},
|
|
46
46
|
"keywords": [
|
|
47
47
|
"senpi",
|
|
@@ -67,6 +67,12 @@ class PlainTextComponent implements EvalRenderComponent {
|
|
|
67
67
|
#live = false;
|
|
68
68
|
#invalidate: (() => void) | undefined;
|
|
69
69
|
#idleTicks = 0;
|
|
70
|
+
// While a cell runs, the row never shrinks (senpi#6390): nested calls of different heights slide through the
|
|
71
|
+
// collapsed window, and a shrinking block moves every line below it. The floor resets when the cell stops
|
|
72
|
+
// running, the width changes, or the layout (expanded/collapsed) changes.
|
|
73
|
+
#heightFloor = 0;
|
|
74
|
+
#floorKey = "";
|
|
75
|
+
#layoutKey = "";
|
|
70
76
|
|
|
71
77
|
setBlocks(blocks: readonly RenderBlock[]): void {
|
|
72
78
|
this.#blocks = blocks;
|
|
@@ -81,8 +87,9 @@ class PlainTextComponent implements EvalRenderComponent {
|
|
|
81
87
|
* rebuild, session switch) stops itself after LIVE_TICKER_MAX_IDLE_TICKS and rearms on
|
|
82
88
|
* the next render, so dropped rows cannot accumulate intervals.
|
|
83
89
|
*/
|
|
84
|
-
syncLiveTicker(isLive: boolean, invalidate: () => void): void {
|
|
90
|
+
syncLiveTicker(isLive: boolean, invalidate: () => void, layoutKey = ""): void {
|
|
85
91
|
this.#live = isLive;
|
|
92
|
+
this.#layoutKey = layoutKey;
|
|
86
93
|
this.#invalidate = invalidate;
|
|
87
94
|
if (!isLive) {
|
|
88
95
|
this.stopLiveTicker();
|
|
@@ -134,6 +141,21 @@ class PlainTextComponent implements EvalRenderComponent {
|
|
|
134
141
|
assertNever(block);
|
|
135
142
|
}
|
|
136
143
|
}
|
|
144
|
+
return this.#holdLiveHeight(lines, width);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
#holdLiveHeight(lines: string[], width: number): string[] {
|
|
148
|
+
if (!this.#live) {
|
|
149
|
+
this.#heightFloor = 0;
|
|
150
|
+
return lines;
|
|
151
|
+
}
|
|
152
|
+
const key = `${width}|${this.#layoutKey}`;
|
|
153
|
+
if (key !== this.#floorKey) {
|
|
154
|
+
this.#floorKey = key;
|
|
155
|
+
this.#heightFloor = 0;
|
|
156
|
+
}
|
|
157
|
+
while (lines.length < this.#heightFloor) lines.push("");
|
|
158
|
+
this.#heightFloor = lines.length;
|
|
137
159
|
return lines;
|
|
138
160
|
}
|
|
139
161
|
|
package/src/tool/render-call.ts
CHANGED
|
@@ -54,7 +54,7 @@ export function renderEvalCall(
|
|
|
54
54
|
// renders (the host would otherwise fall back to a raw key=value row).
|
|
55
55
|
const code = typeof args.code === "string" ? args.code : "";
|
|
56
56
|
const language = knownLanguage(args.language);
|
|
57
|
-
component.syncLiveTicker(theme !== undefined, context.invalidate);
|
|
57
|
+
component.syncLiveTicker(theme !== undefined, context.invalidate, context.expanded ? "expanded" : "collapsed");
|
|
58
58
|
if (theme === undefined && context.spinnerFrame === undefined) {
|
|
59
59
|
const reset = args.reset === true ? " reset" : "";
|
|
60
60
|
const timeout = args.timeout === undefined ? "" : ` timeout ${args.timeout}s`;
|
|
@@ -101,7 +101,7 @@ export function renderEvalResult(
|
|
|
101
101
|
}
|
|
102
102
|
const expanded = options.expanded || context.expanded;
|
|
103
103
|
const imageProtocol = context.imageProtocol ?? null;
|
|
104
|
-
component.syncLiveTicker(hasLiveCell(details), context.invalidate);
|
|
104
|
+
component.syncLiveTicker(hasLiveCell(details), context.invalidate, expanded ? "expanded" : "collapsed");
|
|
105
105
|
if (details?.cells !== undefined && details.cells.length > 0) {
|
|
106
106
|
const blocks: RenderBlock[] = [
|
|
107
107
|
{
|