@vincemakes/kiso-code 0.1.17 → 0.1.18

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.
Files changed (2) hide show
  1. package/dist/body.js +9 -7
  2. package/package.json +7 -7
package/dist/body.js CHANGED
@@ -54,13 +54,15 @@ export class Body {
54
54
  this.#active = opts.active();
55
55
  if (this.#isActive()) {
56
56
  this.#heartbeat = setInterval(() => {
57
- // #14 (P1): the idle heartbeat PAINTS NOTHING. An idle body
58
- // (every cell frozen) has no glyph/elapsed to advance — a
59
- // beat that renders anyway re-paints the tail + the dock
60
- // every 200ms with ZERO change (12s idle = 61 copies /
61
- // ~47KB the measured defect). Only an ACTIVE tail makes
62
- // the beat matter: paint, then.
63
- if (!this.#cells.some((c) => !c.done))
57
+ // #14/#15: the idle heartbeat PAINTS NOTHING unless an
58
+ // ANIMATION advances only a RUNNING tool's glyph/elapsed
59
+ // changes between beats. The #14 fix skipped an all-frozen
60
+ // body; #15 widened the skip to ANY no-change body: a cell
61
+ // that stays unfinished without animating (an unclosed text
62
+ // or thinking block) would otherwise re-paint the tail AND
63
+ // the dock every 200ms with zero change — the short-session
64
+ // leak (measured: 51KB / 46 beats after the recap, LF=0).
65
+ if (!this.#cells.some((c) => c.kind === "tool" && c.state === "running"))
64
66
  return;
65
67
  this.#spinnerI = (this.#spinnerI + 1) % SPINNER.length;
66
68
  this.#dirty = true; // the running cells' glyph/elapsed advance
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vincemakes/kiso-code",
3
- "version": "0.1.17",
3
+ "version": "0.1.18",
4
4
  "description": "kiso CLI — the coding-agent reference product: kiso chat / kiso resume / kiso sessions.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -18,12 +18,12 @@
18
18
  "test": "vitest run"
19
19
  },
20
20
  "dependencies": {
21
- "@vincemakes/kiso-core": "0.1.17",
22
- "@vincemakes/kiso-evals": "0.1.17",
23
- "@vincemakes/kiso-provider-anthropic": "0.1.17",
24
- "@vincemakes/kiso-provider-openai": "0.1.17",
25
- "@vincemakes/kiso-runtime": "0.1.17",
26
- "@vincemakes/kiso-tools-node": "0.1.17"
21
+ "@vincemakes/kiso-core": "0.1.18",
22
+ "@vincemakes/kiso-evals": "0.1.18",
23
+ "@vincemakes/kiso-provider-anthropic": "0.1.18",
24
+ "@vincemakes/kiso-provider-openai": "0.1.18",
25
+ "@vincemakes/kiso-runtime": "0.1.18",
26
+ "@vincemakes/kiso-tools-node": "0.1.18"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@types/node": "^26.1.2",