klui-code 0.1.3 → 0.1.5

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/README.md CHANGED
@@ -13,9 +13,19 @@ That's it: no account, no API key, no wallet. The installer brings its own Node.
13
13
  missing or older than 22.19, and puts everything in `~/.klui`. On first launch klui gets your
14
14
  device its own event pass and picks the default model.
15
15
 
16
- Already on Node 22.19+? `npm install -g klui-code` works too (and is the way on Windows).
17
- On Windows, Klui runs commands through Git Bash, so install [Git for Windows](https://git-scm.com/download/win)
18
- first if you don't have it.
16
+ Already on Node 22.19+? `npm install -g klui-code` works too.
17
+
18
+ On Windows, install [Git for Windows](https://git-scm.com/download/win) first (Klui runs commands
19
+ through Git Bash), then run this in PowerShell:
20
+
21
+ ```
22
+ irm https://klui.ai/code/install.ps1 | iex
23
+ klui
24
+ ```
25
+
26
+ It works the same way: your Node.js if it's 22.19 or newer, otherwise its own copy, all in
27
+ `~\.klui`, with no admin rights. If your computer blocks it, install [Node.js](https://nodejs.org)
28
+ (the LTS one) and run `npm install -g klui-code` instead.
19
29
 
20
30
  ## Using it
21
31
 
@@ -35,7 +45,7 @@ Klui warns when the selected model can only read text.
35
45
  | `/klui retry` | reconnect after a wifi hiccup |
36
46
  | `/sessions` or `/resume` | pick up an earlier chat |
37
47
  | `/update` | install the latest klui (or `klui update` in your shell); restart to use it |
38
- | `/usage` | tokens and messages in the last 24 hours and overall, subagents included |
48
+ | `/usage` | tokens and model requests in the last 24 hours and overall, including follow-up agent turns, compaction and subagents |
39
49
  | `shift+tab` | permission mode: **ask** (asks before edits and commands), **auto** (works freely in the project, asks before risky commands and changes outside it), **yolo** (never asks) |
40
50
  | `alt+t` | cycle reasoning level (low, medium, high; picked after each model switch) |
41
51
  | `ctrl+l` | model picker |
@@ -49,8 +59,11 @@ When Klui asks, answer yes, yes and don't ask again this session, no (which stop
49
59
  with a note for Klui. Reads and searches never ask. Klui starts in auto mode each launch.
50
60
 
51
61
  For a big job, ask Klui to use subagents: each is a fresh Klui with its own context, read-only
52
- (`explore`) or able to edit (`general`), on any event model. Several can run at once, and a
53
- background one reports back when it's done while Klui keeps working.
62
+ (`explore`, files and the web) or able to edit (`general`), on any event model. Several can run
63
+ at once, and a background one reports back when it's done while Klui keeps working. While one
64
+ runs, its row shows its last steps and what it's doing right now (waiting on the model, thinking,
65
+ drafting `styles.css`, running a command, retrying), with a token counter and the time. Expand
66
+ the row to see every step.
54
67
 
55
68
  For multi-step work Klui keeps a todo list above the editor, so you can see what it's on, what's
56
69
  done and what's next. The list is saved with the chat, so it survives `/resume` and compaction.
@@ -84,7 +97,8 @@ klui ──(1) device id──▶ Klui Pass ──▶ key from a pre-made pool
84
97
  `/sessions`, and three themes (`themes/`).
85
98
  - **Web access** (`src/extension/web.ts`): `web_search` and `web_fetch`. They run on the
86
99
  attendee's own machine with keyless services (Exa, then DuckDuckGo), never through Klui Pass, so
87
- every attendee has their own limits.
100
+ every attendee has their own limits. Fetched pages return their full extracted text; downloads
101
+ over 10 MiB are stopped with an error rather than truncated.
88
102
 
89
103
  Running the event? See [server/README.md](server/README.md).
90
104
 
@@ -118,7 +132,7 @@ a small pool and start Pass (see [server/README.md](server/README.md#local-dry-r
118
132
  ```
119
133
  npm version patch # or minor; commits and tags vX.Y.Z
120
134
  git push --follow-tags # CI publishes the tag to npm (needs the NPM_TOKEN secret)
121
- scp install.sh root@klui.ai:/srv/klui-code/install.sh # only when the installer changed
135
+ scp install.sh install.ps1 root@klui.ai:/srv/klui-code/ # only when an installer changed
122
136
  ```
123
137
 
124
138
  `npm publish` runs the tests first and rebuilds `dist/` from scratch. Installed copies see the new
package/dist/cli.js CHANGED
@@ -55,6 +55,8 @@ function seedSettings(config, piVersion) {
55
55
  settings.defaultProvider = PROVIDER;
56
56
  settings.defaultModel = config.defaultModel;
57
57
  }
58
+ // A provider that fails or stalls gets three more tries, 5 s apart (Pi's default doubles the wait).
59
+ settings.retry = { ...settings.retry, enabled: true, maxRetries: 3, baseDelayMs: 5000, maxAgentDelayMs: 5000 };
58
60
  settings.lastChangelogVersion = piVersion;
59
61
  settings.enableInstallTelemetry = false;
60
62
  mkdirSync(AGENT_DIR, { recursive: true });