genaicode 2.41.1 → 2.42.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,24 @@ fails. Merging to master refreshes the `release` PR; merging that publishes to n
8
8
 
9
9
  ## Unreleased
10
10
 
11
+ ## 2.42.0 — 2026-11-21
12
+
13
+ ### Added
14
+
15
+ - `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)
16
+ - `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)
17
+ - `npx genaicode install`: installs the `genaicode` command that updates itself, the same as the shell installer, with `--version`, `--bin-dir` and `--force` (#225)
18
+
19
+ ### Fixed
20
+
21
+ - Pack tasks work in projects opened through a symlink, and the browser explains merge conflicts when running the installed CLI (#229)
22
+ - `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)
23
+
24
+ ### Internal
25
+
26
+ - 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)
27
+ - 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)
28
+
11
29
  ## 2.41.1 — 2026-11-21
12
30
 
13
31
  ### 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,11 @@ 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
+
111
120
  `npx genaicode sessions archive --stale` puts away every session left waiting or half way for 2
112
121
  days or more (`sessions archive <id>` for one, `unarchive` to bring it back, `--archived` to list
113
122
  them); the agents' files stay as they are (see
@@ -156,6 +165,7 @@ npx genaicode # chat in this terminal (same as "genaicode c
156
165
  npx genaicode chat -a claude -C ../api
157
166
  npx genaicode ui # the same chat in your browser, served on 127.0.0.1
158
167
  npx genaicode chat --web # both: the terminal and the browser on one session
168
+ npx genaicode ui --pack # pack using all installed agents (first MCP agent leads)
159
169
  npx genaicode chat --pack claude:codex,gemini --web
160
170
  ```
161
171
 
@@ -170,7 +180,8 @@ the browser (`/web off` stops the server), and Enter in the terminal that runs
170
180
  `genaicode ui` brings it into that terminal. A prompt, an approval or a stop from either
171
181
  side shows up in both.
172
182
 
173
- With `--pack lead:member,member`, the lead chooses which tasks to delegate. **Pack tasks**
183
+ With `--pack` (all installed agents, first MCP-capable one leads; pass `-a <lead>` to choose the
184
+ lead) or `--pack lead:member,member`, the lead chooses which tasks to delegate. **Pack tasks**
174
185
  under its turn shows each worker's prompt, activity, result and changed files. The slot counter
175
186
  includes workers waiting for approval. `--max-parallel` sets the slot limit (default 4).
176
187
  `--max-tokens` and `--max-cost` include the lead and its workers.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "genaicode",
3
- "version": "2.41.1",
3
+ "version": "2.42.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
  ],