@vincemakes/kiso-code 0.33.0 → 0.34.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.
Files changed (2) hide show
  1. package/dist/chat.js +11 -1
  2. package/package.json +15 -15
package/dist/chat.js CHANGED
@@ -148,8 +148,18 @@ endpoint) {
148
148
  // backend's own words and keeps its 0 — the display's rule, not the
149
149
  // record's.
150
150
  const unobservable = model !== undefined && lookupModelMetadata(model, endpoint)?.capabilities.promptCaching === "unobservable";
151
+ // DF-0322-F2: the DISPLAY is handed the provider's own word, not the
152
+ // canonical one. `canonicalizeUsage` sets `cacheRead ?? 0` because
153
+ // accounting has to sum numbers — correct there, and pinned that way by
154
+ // the gate — but it erases the difference between "the backend answered
155
+ // zero" and "the backend said nothing about caching". Handing the row the
156
+ // canonical zero made it claim a measurement that never happened, which
157
+ // is the family OR-10 and DF-0311-F1 belong to. OR-10's own comment drew
158
+ // this line first: the ledger keeps the backend's 0, the display's rule
159
+ // is not the record's.
160
+ const reportedCache = ev.cacheRead === null ? null : c.cacheRead;
151
161
  return {
152
- usage: { in: c.input, out: c.output, cache: unobservable ? null : c.cacheRead, known: ev.known },
162
+ usage: { in: c.input, out: c.output, cache: unobservable ? null : reportedCache, known: ev.known },
153
163
  total,
154
164
  missed: unobservable ? null : missed,
155
165
  costUsd: c.costUsd,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vincemakes/kiso-code",
3
- "version": "0.33.0",
3
+ "version": "0.34.0",
4
4
  "description": "kiso-code — the coding agent on kiso, the durable runtime for AI agents: kiso chat / kiso resume / kiso sessions.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -18,20 +18,20 @@
18
18
  "test": "vitest run"
19
19
  },
20
20
  "dependencies": {
21
- "@vincemakes/kiso-ask-ext": "0.33.0",
22
- "@vincemakes/kiso-core": "0.33.0",
23
- "@vincemakes/kiso-evals": "0.33.0",
24
- "@vincemakes/kiso-mcp-ext": "0.33.0",
25
- "@vincemakes/kiso-provider-anthropic": "0.33.0",
26
- "@vincemakes/kiso-provider-openai": "0.33.0",
27
- "@vincemakes/kiso-provider-openai-responses": "0.33.0",
28
- "@vincemakes/kiso-runtime": "0.33.0",
29
- "@vincemakes/kiso-skills-ext": "0.33.0",
30
- "@vincemakes/kiso-subagent-ext": "0.33.0",
31
- "@vincemakes/kiso-task-ext": "0.33.0",
32
- "@vincemakes/kiso-tools-node": "0.33.0",
33
- "@vincemakes/kiso-tui": "0.33.0",
34
- "@vincemakes/kiso-tui-cells": "0.33.0"
21
+ "@vincemakes/kiso-ask-ext": "0.34.0",
22
+ "@vincemakes/kiso-core": "0.34.0",
23
+ "@vincemakes/kiso-evals": "0.34.0",
24
+ "@vincemakes/kiso-mcp-ext": "0.34.0",
25
+ "@vincemakes/kiso-provider-anthropic": "0.34.0",
26
+ "@vincemakes/kiso-provider-openai": "0.34.0",
27
+ "@vincemakes/kiso-provider-openai-responses": "0.34.0",
28
+ "@vincemakes/kiso-runtime": "0.34.0",
29
+ "@vincemakes/kiso-skills-ext": "0.34.0",
30
+ "@vincemakes/kiso-subagent-ext": "0.34.0",
31
+ "@vincemakes/kiso-task-ext": "0.34.0",
32
+ "@vincemakes/kiso-tools-node": "0.34.0",
33
+ "@vincemakes/kiso-tui": "0.34.0",
34
+ "@vincemakes/kiso-tui-cells": "0.34.0"
35
35
  },
36
36
  "devDependencies": {
37
37
  "@types/node": "^26.1.2",