genaicode 2.42.0 → 2.43.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/docs/CHANGELOG.md CHANGED
@@ -8,6 +8,16 @@ fails. Merging to master refreshes the `release` PR; merging that publishes to n
8
8
 
9
9
  ## Unreleased
10
10
 
11
+ ## 2.43.0 — 2026-11-21
12
+
13
+ ### Added
14
+
15
+ - `<AgentChat>` (`onAutoApprove`) and the browser UI show an **Auto-approve all** button right on permission requests, matching the terminal chat's `a` shortcut to approve pending and future requests in one click (#234)
16
+
17
+ ### Fixed
18
+
19
+ - `sessions --waiting --json --watch` reads every agent's session store on each fifth look only, and at once when a hook reports something new, so a watch left open uses far less CPU (#232)
20
+
11
21
  ## 2.42.0 — 2026-11-21
12
22
 
13
23
  ### Added
package/docs/cli.md CHANGED
@@ -116,6 +116,8 @@ A program that shows what waits (a menu bar, a status line) can keep one process
116
116
  asking again and again: `npx genaicode sessions --waiting --json --watch` prints one line
117
117
  `{"sessions":[...]}` at once and another whenever the waiting sessions or their open questions
118
118
  change. With `--exit-with-stdin` it ends when its stdin closes, so it cannot outlive its parent.
119
+ It looks every 3 seconds: a question or anything else a hook reports shows at once, a session
120
+ that only finished its turn within 15 seconds.
119
121
 
120
122
  `npx genaicode sessions archive --stale` puts away every session left waiting or half way for 2
121
123
  days or more (`sessions archive <id>` for one, `unarchive` to bring it back, `--archived` to list
@@ -196,8 +198,8 @@ when you exit. The task controls belong to the chat process that started them.
196
198
  Each prompt after the first continues the agent's own session (`AgentTask.resume`), so you
197
199
  can say "now add a test for that". Prompts sent while the agent works wait in a queue and
198
200
  run next; Esc stops the agent. When the agent asks for permission, `y` approves, `n`
199
- denies and `a` approves everything from then on (`/auto`, or the Auto-approve chip in the
200
- browser; `-y` starts that way). `!` on an empty prompt switches to shell mode, as in Claude
201
+ denies and `a` approves everything from then on (`/auto`, **Auto-approve all** on the request, or the
202
+ Auto-approve chip in the browser; `-y` starts that way). `!` on an empty prompt switches to shell mode, as in Claude
201
203
  Code: `!npm run dev` runs in the project with its output in the transcript, and `/stop` (or
202
204
  Esc) ends it. `/agent`, `/model` and `/new` switch agent,
203
205
  model and session; `/fallback codex,gemini` picks the agents to switch to when the current one
package/docs/react.md CHANGED
@@ -76,6 +76,7 @@ sends, Shift+Enter adds a line and Esc stops. Props:
76
76
  | `state` | `SessionState`, or null before there is a session |
77
77
  | `onSend(text)`, `onStop()` | Enter or Send; Stop or Esc. No `onStop`, no Stop button |
78
78
  | `onApprove(id, decision)` | answers `state.approvals`; without it they show as waiting |
79
+ | `onAutoApprove()` | optional third button ("Auto-approve all") beside Approve and Deny to approve pending and future requests |
79
80
  | `onPackAction(turnId, id, action)` | pass the session's `actOnPackTask` to enable worker controls and return a diff or result text |
80
81
  | `renderPrompt(text, turn?)` | how a sent prompt shows (return null to hide it) |
81
82
  | `renderAfterTurn(turn, i)`, `renderFooter()` | your content after a turn, or at the end |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "genaicode",
3
- "version": "2.42.0",
3
+ "version": "2.43.0",
4
4
  "description": "Drive the coding-agent CLIs you already have (Claude Code, Codex, Copilot, Cursor, Gemini, opencode...) behind one API and one CLI, plus a thin provider-neutral LLM layer.",
5
5
  "author": "Grzegorz Tańczyk",
6
6
  "repository": {