genaicode 2.41.1 → 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,34 @@ 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
+
21
+ ## 2.42.0 — 2026-11-21
22
+
23
+ ### Added
24
+
25
+ - `genaicode chat --pack`, `ui --pack` and `tower --pack` work without an explicit `lead:members` value, automatically assembling a pack from all installed agents (first MCP-capable one leads, or pass `-a <lead>` to choose the lead) (#226)
26
+ - `genaicode sessions --waiting --json --watch`: stays open and prints the waiting sessions as one JSON line whenever they change, for programs that show them; `--exit-with-stdin` ends it with its parent (#231)
27
+ - `npx genaicode install`: installs the `genaicode` command that updates itself, the same as the shell installer, with `--version`, `--bin-dir` and `--force` (#225)
28
+
29
+ ### Fixed
30
+
31
+ - Pack tasks work in projects opened through a symlink, and the browser explains merge conflicts when running the installed CLI (#229)
32
+ - `genaicode update`, `genaicode install` and `scripts/install.sh` revalidate npm's local package cache (`--prefer-online --no-prefer-offline`) so installing a newly published release no longer fails with `ETARGET` (#230)
33
+
34
+ ### Internal
35
+
36
+ - Desktop app: a menu bar icon lists the sessions that wait for you, with Approve and Deny for open questions; closing the window keeps the app in the menu bar (#231)
37
+ - First skeleton of a macOS desktop app in `src/desktop` (Tauri 2 shell that runs a bundled Node.js on `genaicode ui`); not part of the npm package (#228)
38
+
11
39
  ## 2.41.1 — 2026-11-21
12
40
 
13
41
  ### Fixed
package/docs/cli.md CHANGED
@@ -5,18 +5,22 @@
5
5
  ## Install the command
6
6
 
7
7
  `npx genaicode` works without installing anything. To type just `genaicode`, and have it
8
- update itself, run the installer (macOS and Linux, Node.js 20+ with npm):
8
+ update itself, install it once (macOS and Linux, Node.js 20+ with npm):
9
9
 
10
10
  ```bash
11
+ npx genaicode install
12
+ # or, without npx:
11
13
  curl -fsSL https://raw.githubusercontent.com/gtanczyk/genaicode/master/scripts/install.sh | sh
12
14
  ```
13
15
 
14
- It is a short shell script ([scripts/install.sh](../scripts/install.sh), read it first) that
15
- `npm install`s the published package without lifecycle scripts into
16
+ Both do the same thing (the shell version is [scripts/install.sh](../scripts/install.sh), read
17
+ it first): `npm install` the published package without lifecycle scripts into
16
18
  `~/.genaicode/versions/<version>`, points `~/.genaicode/current` at it and writes a
17
19
  `~/.local/bin/genaicode` shim. Nothing needs sudo. If `~/.local/bin` is not on your `PATH`,
18
- it prints the line to add to your shell profile. `GENAICODE_VERSION`, `GENAICODE_HOME` and
19
- `GENAICODE_BIN_DIR` change the version, the install directory and the bin directory.
20
+ it prints the line to add to your shell profile. `npx genaicode install` installs the version
21
+ npx ran; `--version <v>`, `--bin-dir <dir>` and `GENAICODE_HOME` change the version, the bin
22
+ directory and the install directory (for the script: `GENAICODE_VERSION`, `GENAICODE_BIN_DIR`,
23
+ `GENAICODE_HOME`).
20
24
 
21
25
  ```bash
22
26
  genaicode update # install the latest version now and print what changed
@@ -108,6 +112,13 @@ With `hooks install --answer`, Claude Code's approval questions can also be answ
108
112
  the browser's Sessions view has Approve and Deny (see
109
113
  [answering](agents.md#answering-from-the-tower-hooks-install---answer)).
110
114
 
115
+ A program that shows what waits (a menu bar, a status line) can keep one process open instead of
116
+ asking again and again: `npx genaicode sessions --waiting --json --watch` prints one line
117
+ `{"sessions":[...]}` at once and another whenever the waiting sessions or their open questions
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.
121
+
111
122
  `npx genaicode sessions archive --stale` puts away every session left waiting or half way for 2
112
123
  days or more (`sessions archive <id>` for one, `unarchive` to bring it back, `--archived` to list
113
124
  them); the agents' files stay as they are (see
@@ -156,6 +167,7 @@ npx genaicode # chat in this terminal (same as "genaicode c
156
167
  npx genaicode chat -a claude -C ../api
157
168
  npx genaicode ui # the same chat in your browser, served on 127.0.0.1
158
169
  npx genaicode chat --web # both: the terminal and the browser on one session
170
+ npx genaicode ui --pack # pack using all installed agents (first MCP agent leads)
159
171
  npx genaicode chat --pack claude:codex,gemini --web
160
172
  ```
161
173
 
@@ -170,7 +182,8 @@ the browser (`/web off` stops the server), and Enter in the terminal that runs
170
182
  `genaicode ui` brings it into that terminal. A prompt, an approval or a stop from either
171
183
  side shows up in both.
172
184
 
173
- With `--pack lead:member,member`, the lead chooses which tasks to delegate. **Pack tasks**
185
+ With `--pack` (all installed agents, first MCP-capable one leads; pass `-a <lead>` to choose the
186
+ lead) or `--pack lead:member,member`, the lead chooses which tasks to delegate. **Pack tasks**
174
187
  under its turn shows each worker's prompt, activity, result and changed files. The slot counter
175
188
  includes workers waiting for approval. `--max-parallel` sets the slot limit (default 4).
176
189
  `--max-tokens` and `--max-cost` include the lead and its workers.
@@ -185,8 +198,8 @@ when you exit. The task controls belong to the chat process that started them.
185
198
  Each prompt after the first continues the agent's own session (`AgentTask.resume`), so you
186
199
  can say "now add a test for that". Prompts sent while the agent works wait in a queue and
187
200
  run next; Esc stops the agent. When the agent asks for permission, `y` approves, `n`
188
- denies and `a` approves everything from then on (`/auto`, or the Auto-approve chip in the
189
- 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
190
203
  Code: `!npm run dev` runs in the project with its output in the transcript, and `/stop` (or
191
204
  Esc) ends it. `/agent`, `/model` and `/new` switch agent,
192
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.41.1",
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": {
@@ -90,7 +90,10 @@
90
90
  "check": "npm run type-check && npm run lint && npm test && npm run build",
91
91
  "prepublishOnly": "npm run check",
92
92
  "prepare": "npm run build",
93
- "format": "prettier --write ."
93
+ "format": "prettier --write .",
94
+ "desktop:prepare": "node src/desktop/scripts/prepare-runtime.mjs",
95
+ "desktop:dev": "cd src/desktop && tauri dev",
96
+ "desktop:build": "cd src/desktop && tauri build"
94
97
  },
95
98
  "dependencies": {
96
99
  "@anthropic-ai/sdk": "^0.74.0",
@@ -99,6 +102,7 @@
99
102
  },
100
103
  "devDependencies": {
101
104
  "@agentclientprotocol/sdk": "^2.0.2",
105
+ "@tauri-apps/cli": "^2.12.6",
102
106
  "@types/node": "^20.0.0",
103
107
  "@types/react": "^19.3.0",
104
108
  "@types/react-dom": "^19.3.0",
@@ -145,6 +149,7 @@
145
149
  ],
146
150
  "ignorePatterns": [
147
151
  "docs/examples/**/*",
152
+ "src/desktop/src-tauri/**/*",
148
153
  "dist",
149
154
  "coverage"
150
155
  ],