@vincemakes/kiso-code 0.17.0 → 0.19.0

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/dispatch.js CHANGED
@@ -107,6 +107,30 @@ export function dispatch(line, ctx) {
107
107
  ctx.chainRef.current = ctx.chainRef.current.then(land);
108
108
  return;
109
109
  }
110
+ if (trimmed === "/rewrap") {
111
+ // R4 (C4d): re-print the recent PROSE at the CURRENT width, at the
112
+ // bottom. kiso hard-folds every row before committing it (invariant
113
+ // ①), which is what makes the transcript the terminal's own — and
114
+ // is also why the terminal cannot re-wrap it on a resize: there is
115
+ // no soft-wrap flag to reflow. Appending is the one move ADR-0046
116
+ // allows, so this is the whole of what can be offered, and it says
117
+ // so rather than pretending the history changed.
118
+ ctx.chainRef.current = ctx.chainRef.current.then(async () => {
119
+ const r = body.rewrap();
120
+ if (r.lines.length === 0) {
121
+ bodyLog("[/rewrap] no prose to re-wrap yet");
122
+ }
123
+ else {
124
+ bodyLog(`--- re-wrapped ${r.blocks} block${r.blocks === 1 ? "" : "s"} at the current width (appended — the history above is unchanged) ---`);
125
+ for (const line of r.lines)
126
+ bodyLog(line);
127
+ if (r.skipped > 0)
128
+ bodyLog(`--- ${r.skipped} earlier block${r.skipped === 1 ? "" : "s"} not re-wrapped (bounded at two screens) ---`);
129
+ }
130
+ ctx.input.prompt();
131
+ });
132
+ return;
133
+ }
110
134
  if (trimmed === "/context") {
111
135
  // TUI2-R1 (E): the rent-ledger attribution — where the context went,
112
136
  // read from the session's TRACE SIDECAR (the observation file E1/E3
package/dist/index.js CHANGED
@@ -289,6 +289,15 @@ function makeLineInput() {
289
289
  dock.bindApproval(() => editor.panelState()); // W21: the panel's bound state
290
290
  dock.bindSheet(() => editor.sheetOpen()); // TUI2-R1 (D): the ? keys sheet
291
291
  dock.bindPick(() => editor.pickState()); // TUI2-R2 ②: the resume picker's band
292
+ // R5: the transcript viewer. The editor reports whether it is up and
293
+ // forwards the commands; the STATE lives in the compositor, because
294
+ // the entries the viewer lists are the compositor's own cells.
295
+ editor.bindViewer(() => dock.viewerOpen(), (cmd) => {
296
+ if (cmd === "open" || cmd === "close")
297
+ dock.viewerToggleMode();
298
+ else
299
+ dock.viewerKey(cmd);
300
+ });
292
301
  return editorInput(editor);
293
302
  }
294
303
  return readlineInput(createInterface({ input: process.stdin, output: process.stdout }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vincemakes/kiso-code",
3
- "version": "0.17.0",
3
+ "version": "0.19.0",
4
4
  "description": "kiso CLI — the durable coding agent that survives kill -9: kiso chat / kiso resume / kiso sessions.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -18,19 +18,19 @@
18
18
  "test": "vitest run"
19
19
  },
20
20
  "dependencies": {
21
- "@vincemakes/kiso-ask-ext": "0.17.0",
22
- "@vincemakes/kiso-core": "0.17.0",
23
- "@vincemakes/kiso-evals": "0.17.0",
24
- "@vincemakes/kiso-mcp-ext": "0.17.0",
25
- "@vincemakes/kiso-provider-anthropic": "0.17.0",
26
- "@vincemakes/kiso-provider-openai": "0.17.0",
27
- "@vincemakes/kiso-runtime": "0.17.0",
28
- "@vincemakes/kiso-skills-ext": "0.17.0",
29
- "@vincemakes/kiso-subagent-ext": "0.17.0",
30
- "@vincemakes/kiso-task-ext": "0.17.0",
31
- "@vincemakes/kiso-tools-node": "0.17.0",
32
- "@vincemakes/kiso-tui": "0.17.0",
33
- "@vincemakes/kiso-tui-cells": "0.17.0"
21
+ "@vincemakes/kiso-ask-ext": "0.19.0",
22
+ "@vincemakes/kiso-core": "0.19.0",
23
+ "@vincemakes/kiso-evals": "0.19.0",
24
+ "@vincemakes/kiso-mcp-ext": "0.19.0",
25
+ "@vincemakes/kiso-provider-anthropic": "0.19.0",
26
+ "@vincemakes/kiso-provider-openai": "0.19.0",
27
+ "@vincemakes/kiso-runtime": "0.19.0",
28
+ "@vincemakes/kiso-skills-ext": "0.19.0",
29
+ "@vincemakes/kiso-subagent-ext": "0.19.0",
30
+ "@vincemakes/kiso-task-ext": "0.19.0",
31
+ "@vincemakes/kiso-tools-node": "0.19.0",
32
+ "@vincemakes/kiso-tui": "0.19.0",
33
+ "@vincemakes/kiso-tui-cells": "0.19.0"
34
34
  },
35
35
  "devDependencies": {
36
36
  "@types/node": "^26.1.2",