kimiflare 0.55.1 → 0.57.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/README.md +18 -10
- package/dist/index.js +679 -162
- package/dist/index.js.map +1 -1
- package/dist/sdk/index.js +27 -9
- package/dist/sdk/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -33,7 +33,12 @@
|
|
|
33
33
|
|
|
34
34
|
- **262k context window** — Read entire modules, large configs, and full stack traces without the model losing track.
|
|
35
35
|
- **Image understanding** — Drop image paths (PNG, JPG, WebP, GIF, BMP up to 5 MB) into any prompt. Great for UI reviews, diagrams, and screenshots.
|
|
36
|
-
- **Plan / Edit / Auto modes** — `plan`
|
|
36
|
+
- **Plan / Edit / Auto modes** — `plan` is a whitelist-only research mode: only read-only tools (read, glob, grep, web search, GitHub read-only, browser fetch) are allowed. Writes, edits, mutating bash, MCP tools, and LSP renames are all blocked. `edit` (default) prompts per mutating call. `auto` approves everything for trusted tasks.
|
|
37
|
+
- **Windows support** — OS-aware shell auto-detects `cmd.exe` / PowerShell on Windows, `bash` on Unix. The `bash` tool works out of the box on all platforms.
|
|
38
|
+
- **Message queuing** — Submit multiple messages while the agent is busy; they queue and auto-drain. Escape interrupts the current turn but preserves the queue.
|
|
39
|
+
- **Smart permission modal** — Denying a tool opens inline feedback so you can tell the agent what to do instead. Keyboard-native navigation (`↑/↓`, `j/k`, `Alt+1/2/3`).
|
|
40
|
+
- **Loop guardrails** — Agent hard-stops when all tools in a turn are blocked, preventing infinite token-burning cycles.
|
|
41
|
+
- **Persistent all-time cost history** — Append-only `history.jsonl` tracks daily usage forever, so `/cost` shows true all-time and monthly totals that survive across sessions and version updates.
|
|
37
42
|
- **Live cost tracking** — Status bar shows real-time spend based on Cloudflare pricing. Know exactly what each turn costs.
|
|
38
43
|
- **LSP + MCP** — Semantic code intelligence (hover, go-to-definition, references, diagnostics) via Language Server Protocol. Extend with external tools via Model Context Protocol.
|
|
39
44
|
- **Local structured memory** — SQLite + embeddings cross-session memory. The agent recalls facts, instructions, and preferences across sessions via `remember`, `recall`, and `forget` tools.
|
|
@@ -41,14 +46,16 @@
|
|
|
41
46
|
|
|
42
47
|
## Recently shipped
|
|
43
48
|
|
|
44
|
-
- **
|
|
45
|
-
- **
|
|
46
|
-
- **
|
|
47
|
-
- **
|
|
48
|
-
- **
|
|
49
|
-
- **
|
|
50
|
-
- **
|
|
51
|
-
- **
|
|
49
|
+
- **OS-aware shell with Windows support** — Auto-detects `cmd.exe`, PowerShell, or bash based on platform. Override with `KIMIFLARE_SHELL` or `/shell`.
|
|
50
|
+
- **Smart permission modal with inline feedback** — Deny a tool and immediately tell the agent what to do instead. Keyboard-native navigation with `↑/↓`, `j/k`, `Alt+1/2/3`.
|
|
51
|
+
- **True message queuing** — Enter queues messages while the agent is busy; Escape interrupts and auto-drains the queue.
|
|
52
|
+
- **Hard-stop loop guardrail** — Stops token-burning cycles when all tools in a turn are blocked.
|
|
53
|
+
- **Persistent all-time usage history** — `history.jsonl` tracks daily usage forever; `/cost` shows true all-time and monthly totals.
|
|
54
|
+
- **Humanized Cloudflare API errors** — Actionable error codes and structured error display instead of raw JSON dumps.
|
|
55
|
+
- **429 rate limit retry** — Automatic backoff and retry when Cloudflare rate-limits requests.
|
|
56
|
+
- **Tool state visualization** — Queued, rejected, and cancelled tools are clearly labeled in the TUI.
|
|
57
|
+
- **Paste preview placeholders** — Pasted content shows a snippet preview with sequential IDs instead of random hashes.
|
|
58
|
+
- **Headless SDK** — Programmatic `createAgentSession` API and JSONL-over-stdio RPC mode for building on top of KimiFlare.
|
|
52
59
|
|
|
53
60
|
See the full changelog at [github.com/sinameraji/kimiflare/releases](https://github.com/sinameraji/kimiflare/releases).
|
|
54
61
|
|
|
@@ -112,7 +119,7 @@ session.dispose();
|
|
|
112
119
|
```
|
|
113
120
|
|
|
114
121
|
**Key features:**
|
|
115
|
-
- `subscribe()` — receive typed events (`text_delta`, `tool_call`, `tool_result`, `task_update`, `usage`, `error`, `done`, etc.)
|
|
122
|
+
- `subscribe()` — receive typed events (`text_delta`, `tool_call`, `tool_result`, `task_update`, `usage`, `warning`, `error`, `done`, etc.)
|
|
116
123
|
- `prompt()` / `steer()` / `followUp()` — full conversation lifecycle
|
|
117
124
|
- `pause()` / `resume()` — graceful preemption
|
|
118
125
|
- `getStatus()` / `getUsage()` — inspect session state
|
|
@@ -191,6 +198,7 @@ kimiflare
|
|
|
191
198
|
| Command | Effect |
|
|
192
199
|
|---------|--------|
|
|
193
200
|
| `/mode edit\|plan\|auto` | Switch permission mode |
|
|
201
|
+
| `/shell auto\|bash\|cmd\|powershell` | Show or set the shell for the bash tool |
|
|
194
202
|
| `/thinking low\|medium\|high` | Reasoning effort (persists) |
|
|
195
203
|
| `/theme` | Interactive theme picker (`Ctrl+T`) |
|
|
196
204
|
| `/resume` | Pick a past conversation to restore |
|