@vincemakes/kiso-tui 0.1.19 → 0.1.20
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/editor.js +1 -0
- package/dist/render.js +4 -0
- package/package.json +1 -1
package/dist/editor.js
CHANGED
|
@@ -71,6 +71,7 @@ export const PROMPT = "▌you> "; // the kiso brick motif: one blue half-block,
|
|
|
71
71
|
export const PROMPT_WIDTH = displayWidth(PROMPT);
|
|
72
72
|
export const MENU_ITEMS = [
|
|
73
73
|
{ name: "/mode", desc: "switch the approval tier (manual/default/accept-edits/plan/bypass)" },
|
|
74
|
+
{ name: "/compact", desc: "summarize the older conversation to free context" },
|
|
74
75
|
{ name: "/think", desc: "show the last full thinking block" },
|
|
75
76
|
{ name: "/last", desc: "show the most recent tool call's input and output" },
|
|
76
77
|
{ name: "/status", desc: "show session id, event count, and context estimate" },
|
package/dist/render.js
CHANGED
|
@@ -117,6 +117,10 @@ export function renderEvent(ev, prevThinking = false, resolvePath = (p) => p) {
|
|
|
117
117
|
}
|
|
118
118
|
case "compacted":
|
|
119
119
|
return { text: `${p.dim} [compacted ${ev.cleared.length} results]${p.reset}\n`, newline: true, prompt: false };
|
|
120
|
+
case "summarized":
|
|
121
|
+
// ADR-0044: the /compact event is OFF-LOOP — it never appears in
|
|
122
|
+
// a run stream; rendered for the switch's completeness only.
|
|
123
|
+
return { text: `${p.dim} [summarized up to seq ${ev.coversToSeq}]${p.reset}\n`, newline: true, prompt: false };
|
|
120
124
|
case "uncertain_pending":
|
|
121
125
|
return {
|
|
122
126
|
text: `${p.red}⚠ ${escapeTerminal(ev.name)} failed (${ev.executionId}): ${escapeTerminal(ev.error.slice(0, 160))}${p.reset}\n`,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vincemakes/kiso-tui",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.20",
|
|
4
4
|
"description": "kiso tui — the pure terminal layer (cell renderer, dock, raw editor, diff, palette). Zero runtime dependencies: input is data, output is bytes.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|