@akanjs/cli 3.2.0-rc.23 → 3.2.0-rc.24

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/.build-stamp CHANGED
@@ -1,2 +1,2 @@
1
- 453653a82e17f6d621f9b780ce9abf46be6943bf11498171f1ecc6df5b88d5a9
2
- fcddfd18-304c-4a25-a9ea-0a160d001c94
1
+ dcbcd94203ef4c5c9ad76f291cfe7eb19ce55485ab0d278f65cb2ef180b0563f
2
+ 57fb187c-e934-47af-b251-de7eb0dfce25
@@ -126,9 +126,10 @@ pages declaring one name never clash, and a registry kept outside the surface re
126
126
  carries `{ provider, status }`, the hostname and the HTTP status; the provider's own sentence goes to the server
127
127
  log only, because it can quote an account id or part of a key and `Err` data reaches the browser.
128
128
  `LlmOverflow.refusal(host, status, reason)` builds it, and reads the one refusal a chat can undo — a prompt past
129
- the window, recognized from each provider's own sentence — as `agent.error.contextOverflow` with the `limit` it
130
- named, which the relay flags so the chat compacts and asks again. An adaptor an app wrote throws through the same function, so its refusals
131
- translate and recover the way the shipped ones do without a key in the framework's dictionary it cannot add.
129
+ the window, recognized from each provider's own sentence — as `agent.error.contextOverflow` with the `limit` and
130
+ `requested` it named, which the relay flags so the chat compacts and asks again. An adaptor an app wrote throws through the same function, so its refusals
131
+ translate and recover the way the shipped ones do without a key in the framework's dictionary it cannot add. An
132
+ adaptor's own size cap throws that error with `{ limit, requested }` in its own unit, bytes included.
132
133
  - **`accepts` is answered per model, through `option.setLlm({ accepts })`.** An adaptor answers for an API and one
133
134
  API serves models that differ, so the override rides beside the `model` it is a fact about. It is not a table
134
135
  the framework keeps: a table is a claim about models that ship after it, and getting this wrong is the worst
@@ -603,8 +604,8 @@ pages declaring one name never clash, and a registry kept outside the surface re
603
604
  `window − answer ceiling (8,192 when unreported) − compact.buffer (13,000, the margin Claude Code leaves)` —
604
605
  measured by the provider's own count of the last turn (`done.usage`, kept on that assistant message) plus the
605
606
  four-character estimate for what arrived since, so a Korean transcript the character rule reads as small is
606
- still caught. The window comes from `option.setLlm({ contextWindow })` or from the first refusal that names it;
607
- with neither, only the ceiling runs. **A refusal for length is answered once**: a relay flags it `overflow` on
607
+ still caught. The window comes from `option.setLlm({ contextWindow })` or from a refusal that names it, scaled by
608
+ its `limit / requested` to this estimate when it gives both; with neither, only the ceiling runs. **A refusal for length is answered once**: a relay flags it `overflow` on
608
609
  the wire, and the session compacts and sends the same turn again, and a second refusal in the same send fails
609
610
  with `agent.error.contextOverflow`. Either way the history above the last `keep` messages
610
611
  becomes one message standing in for it, flagged `summary` on the wire — `<Agent.Chat compact={{ at, keep, buffer }} />`
@@ -575,6 +575,10 @@ at every event.
575
575
  short neutral prompt stands in, as each adaptor's own fallback is about a screen. `compact { at, keep }` summarizes
576
576
  the head, and a tool result is capped at 20,000 characters as the browser caps it. Its calls carry no ip, so an
577
577
  ip-scoped `rateLimit` counts them under one unknown address.
578
+ - **A refusal for length.** With `compact` set, a round whose call fails as `agent.error.contextOverflow` compacts
579
+ regardless of `at` and asks once more, as one round; a second refusal, or nothing to cut, ends the run with the
580
+ error. An adaptor with its own size cap throws that error with `{ limit, requested }` in its own unit, bytes
581
+ included, and the run lowers `at` to where that request would have fit.
578
582
 
579
583
  ## Rolling MCP Out To An App
580
584
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akanjs/cli",
3
- "version": "3.2.0-rc.23",
3
+ "version": "3.2.0-rc.24",
4
4
  "sourceType": "module",
5
5
  "type": "module",
6
6
  "publishConfig": {
@@ -39,7 +39,7 @@
39
39
  "@earendil-works/pi-tui": "1.3.0",
40
40
  "@inquirer/prompts": "^8.7.3",
41
41
  "@tailwindcss/node": "^4.3.3",
42
- "akanjs": "3.2.0-rc.23",
42
+ "akanjs": "3.2.0-rc.24",
43
43
  "chalk": "^6.0.1",
44
44
  "commander": "^15.0.0",
45
45
  "dayjs": "^1.11.23",