@bismawy/pi-arnative 0.13.0 → 0.14.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/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # Changelog
2
2
 
3
+ ## [Unreleased]
4
+
5
+ ## [0.14.0] - 2026-11-19
6
+
7
+ ### Added
8
+ - **In-app Payload limit setting in `/arnative`.** Choose `Off`, `1 MB` (default), `4 MB`, `8 MB`, `16 MB`, `32 MB`, or `Custom` (1 to 1024 MB) under `/arnative` → **Payload limit**. Choices save to `config.json` (`payloadLimit`) and apply immediately to active sessions, footer pressure labels, and compaction input caps without restarting Pi; `PI_ARNATIVE_BYTE_WALL_MB` remains supported as a shell override (`extensions/arnative.ts`, `extensions/autocompact.ts`, `lib/preset-store.ts`).
9
+
10
+ ### Fixed
11
+ - **Box backgrounds are visible again on dark and 256-color terminals.** The user chat panel, system-message box, tool cards, selection and search highlight all sat at L≈19%, which resolves to `#001817` on the base theme: 1.14:1 against a black terminal, close enough to invisible that the chat bubble looked like it had no background at all. Every box now uses a measured lightness (`userMessageBg` L 32%, tool and system cards L 30%, selection L 36%), and box chroma has a floor so the tint survives quantization. On `TERM=xterm-256color` without `COLORTERM`, pi draws colors through `rgbToAnsi256`, which mapped the old backgrounds onto 6x6x6 cube black (index 16) for 13 of 14 themes; all 98 box tokens now quantize to a real color. Two themes' `primary` (`crimson`, `gruvbox`) and the thinking ramp's dimmest step were lifted to keep their contrast floors against the brighter canvas (`themes/gen-themes.mjs`, all `themes/*.json`, `lib/color.ts`, `extensions/ui-render-tweaks.ts`).
12
+
13
+ ## [0.13.1] - 2026-11-18
14
+
15
+ ### Changed
16
+ - **Organize `/arnative` into four top-level categories.** The root `/arnative` picker now lists `Appearance`, `Performance`, `Models`, and `Spend` with summaries of their contents, opening each category's submenu on `Enter` with `←` stepping back up (`extensions/arnative.ts`).
17
+
3
18
  ## [0.13.0] - 2026-11-18
4
19
 
5
20
  ### Added
package/README.md CHANGED
@@ -41,7 +41,7 @@ Saved to `~/.pi/agent/arnative/config.json` via `/arnative`:
41
41
  - **Smart:** Adapts to `Render cache` and `contextWindow`. With `Render cache: On`, windows `>= 192k` trigger at `90%` (`~180k` on `200k`, `~900k` on `1M`, `943,718` on `1,048,576`), while `< 192k` defers to Pi core. With `Render cache: Off`, `Smart` uses conservative tiers (`1M -> 20%`, `512k -> 40%`, `256k -> 80%`, `< 192k -> pi core`).
42
42
  - **Fixed budgets (`100k` to `400k`):** Fire at one absolute token count on any window. A budget above a model's capacity does not expand it; Pi core (`reserveTokens`) and provider limits still apply first.
43
43
  - **Trade-offs:** `Smart` retains raw history longer on large windows and avoids unnecessary summarization on short sessions. An earlier fixed budget such as `300k` shrinks prompts after compaction on 1M-window models, but pays an upfront summary cost and resets the prefix cache once; in a 6-turn GLM/Magpie coding A/B sample, `300k` broke even at request 5 and cost 16.1% less at configured rates, while a 2-turn ~250k test cost more than keeping the prefix cached. Thresholds are triggers, not hard caps.
44
- - **Byte guard (`PI_ARNATIVE_BYTE_WALL_MB`):** For `remote/*`, `remote-magpie/*`, and models that saw HTTP 413, payloads approaching `900 KB` (at the default `1` MB wall) are trimmed in-memory before sending without triggering compaction or altering session history. Set `PI_ARNATIVE_BYTE_WALL_MB` before starting Pi to scale the ceiling (for example `16` for a `16m` proxy limit); the footer shows wire bytes on the left row.
44
+ - **Payload limit (`/arnative` → Payload limit, or `PI_ARNATIVE_BYTE_WALL_MB`):** For `remote/*`, `remote-magpie/*`, and models that saw HTTP 413, payloads approaching `900 KB` (at the default `1 MB` limit) are trimmed in-memory before sending without triggering compaction or altering session history. Choose `Off`, `1 MB`, `4 MB`, `8 MB`, `16 MB`, `32 MB`, or `Custom` (1 to 1024 MB) in `/arnative` (saved to `config.json` and applied immediately; `PI_ARNATIVE_BYTE_WALL_MB` overrides it per shell). The footer shows wire bytes on the left row while active.
45
45
  - **Model heal:** **Full** (default: offline compat flags, `GET /models` limits and reasoning effort probes cached locally until new models appear, with failed fetches retried after 1h), **Flags** (offline only), or **Off**. Hand-edited fields are never overwritten. `/model-heal` forces every pass, warns that thinking probes can use paid tokens, and shows the stage it is in.
46
46
  - **Task list (`todo`):** Stored per session in `~/.pi/agent/arnative/todos/<session-id>.json` (uninstall `@juicesharp/rpiv-todo` first to avoid tool name conflict). Click `[show]` / `[hide]` (or single-click anywhere on the box) or press `ctrl+alt+o` (`alt+o`) to toggle; click `↑`/`↓` counters or press `ctrl+alt+j`/`k` (`alt+j`/`k`) to scroll. Auto-hides 30s after completion (set `PI_ARNATIVE_TODO_HIDE_MS` to override, `0` for immediate hide; expanding pauses the timer).
47
47
 
@@ -81,7 +81,7 @@ module deleted here is pruned from the installed copy (a stale entry point would
81
81
  | `ctrl+alt+k` · `alt+k` | Scroll task list up |
82
82
  | Click `[show]` / `[hide]` · `ctrl+o` | Toggle tool output box |
83
83
  | `←` / `Esc` | Step back to parent menu / close active screen |
84
- | `/arnative` | Settings menu (Themes, Headers, Footers, Animations, Render cache, Auto-compact, Model heal, Providers, Usage, Budget) |
84
+ | `/arnative` | Settings menu (Themes, Headers, Footers, Animations, Render cache, Auto-compact, Model heal, Payload limit, Providers, Usage, Budget) |
85
85
  | `/usage` | Token & cost dashboard |
86
86
  | `/todos` | Full task list recap |
87
87
  | `/providers` | Custom provider manager |