@vincemakes/kiso-code 0.15.10 → 0.15.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.
@@ -86,6 +86,29 @@ export function armByteTrace() {
86
86
  });
87
87
  }
88
88
  process.stdin.on("data", (chunk) => line("in", chunk));
89
+ // REL-0152-D1 — ASK THE TERMINAL WHAT IT THINKS.
90
+ //
91
+ // Four rounds have measured what kiso SENDS and found it clean, and
92
+ // the stray brackets are still there. What has never been measured is
93
+ // what the TERMINAL believes, and both candidate mechanisms can be
94
+ // asked about directly:
95
+ //
96
+ // ESC[18t the text area in rows/cols. If it disagrees with
97
+ // process.stdout.columns, kiso is drawing rows to the
98
+ // wrong width and the columns it never reaches keep
99
+ // whatever was there — a `[` at one edge and a `]` at
100
+ // the other is exactly that.
101
+ // ESC[?69$p DECLRMM. A set left/right margin confines every write
102
+ // AND every erase to a sub-region, with the same result.
103
+ // ESC[6n the cursor, as a liveness check on the reply path: no
104
+ // answer at all means this terminal ignores queries and
105
+ // the two above prove nothing either way.
106
+ //
107
+ // The replies arrive on stdin and land here as `in` records, so one
108
+ // capture carries both sides. Sent ONLY when the trace is armed — a
109
+ // session that is not being diagnosed sends no queries. The listener
110
+ // is attached first, above, so a fast reply cannot outrun it.
111
+ process.stdout.write("\x1b[18t\x1b[?69$p\x1b[6n");
89
112
  // The environment goes in the record FIRST, because kiso emits
90
113
  // DIFFERENT frame bytes per terminal — DEC 2026 synchronized output
91
114
  // where it is supported, a cursor-hide degrade on Apple Terminal —
package/dist/chat.js CHANGED
@@ -614,6 +614,15 @@ submitTurn) {
614
614
  case "text_end":
615
615
  body.textEnd();
616
616
  break;
617
+ case "model_output_abandoned":
618
+ // F4: the transcript must not glue drafts — the durable void
619
+ // closes the abandoned draft VISIBLY, and the retried stream
620
+ // (or the error terminal) opens on a fresh block. Without
621
+ // this, the projection is clean while the screen welds two
622
+ // answers into one — the surface-lying class.
623
+ body.textEnd();
624
+ body.notice("stream interrupted — the draft above is abandoned");
625
+ break;
617
626
  case "usage": {
618
627
  const delta = usageFromEvent(session.provider, ev, prevTotal, agentModel);
619
628
  usage = delta.usage;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vincemakes/kiso-code",
3
- "version": "0.15.10",
3
+ "version": "0.15.12",
4
4
  "description": "kiso CLI \u2014 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.15.10",
22
- "@vincemakes/kiso-core": "0.15.10",
23
- "@vincemakes/kiso-evals": "0.15.10",
24
- "@vincemakes/kiso-mcp-ext": "0.15.10",
25
- "@vincemakes/kiso-provider-anthropic": "0.15.10",
26
- "@vincemakes/kiso-provider-openai": "0.15.10",
27
- "@vincemakes/kiso-runtime": "0.15.10",
28
- "@vincemakes/kiso-skills-ext": "0.15.10",
29
- "@vincemakes/kiso-subagent-ext": "0.15.10",
30
- "@vincemakes/kiso-task-ext": "0.15.10",
31
- "@vincemakes/kiso-tools-node": "0.15.10",
32
- "@vincemakes/kiso-tui": "0.15.10",
33
- "@vincemakes/kiso-tui-cells": "0.15.10"
21
+ "@vincemakes/kiso-ask-ext": "0.15.12",
22
+ "@vincemakes/kiso-core": "0.15.12",
23
+ "@vincemakes/kiso-evals": "0.15.12",
24
+ "@vincemakes/kiso-mcp-ext": "0.15.12",
25
+ "@vincemakes/kiso-provider-anthropic": "0.15.12",
26
+ "@vincemakes/kiso-provider-openai": "0.15.12",
27
+ "@vincemakes/kiso-runtime": "0.15.12",
28
+ "@vincemakes/kiso-skills-ext": "0.15.12",
29
+ "@vincemakes/kiso-subagent-ext": "0.15.12",
30
+ "@vincemakes/kiso-task-ext": "0.15.12",
31
+ "@vincemakes/kiso-tools-node": "0.15.12",
32
+ "@vincemakes/kiso-tui": "0.15.12",
33
+ "@vincemakes/kiso-tui-cells": "0.15.12"
34
34
  },
35
35
  "devDependencies": {
36
36
  "@types/node": "^26.1.2",