kimiflare 0.68.2 → 0.70.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 +29 -0
- package/dist/index.js +3223 -2817
- package/dist/index.js.map +1 -1
- package/dist/sdk/index.js +202 -61
- package/dist/sdk/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -237,6 +237,35 @@ kimiflare
|
|
|
237
237
|
| `Shift+Tab` | Cycle mode (edit → plan → auto) |
|
|
238
238
|
| `↑` / `↓` | Walk prompt history |
|
|
239
239
|
|
|
240
|
+
## Logs
|
|
241
|
+
|
|
242
|
+
KimiFlare writes structured JSON logs of agent-side activity (tool calls,
|
|
243
|
+
permission decisions, MCP/LSP lifecycle, session events, errors) to
|
|
244
|
+
`~/.config/kimiflare/logs/<date>.jsonl`, one file per day, with 7-day
|
|
245
|
+
retention pruned automatically at startup.
|
|
246
|
+
|
|
247
|
+
The logs deliberately exclude prompts and completions — those live in
|
|
248
|
+
[Cloudflare AI Gateway](https://developers.cloudflare.com/ai-gateway/)
|
|
249
|
+
already, and each log entry includes the Gateway `request_id` so you
|
|
250
|
+
can join them when you need the network side.
|
|
251
|
+
|
|
252
|
+
```sh
|
|
253
|
+
kimiflare logs path # today's file
|
|
254
|
+
kimiflare logs dir # log directory
|
|
255
|
+
kimiflare logs prune # delete files older than 7 days
|
|
256
|
+
|
|
257
|
+
# Tail this session's activity, formatted:
|
|
258
|
+
tail -f $(kimiflare logs path) | jq
|
|
259
|
+
|
|
260
|
+
# Find the slowest tool calls in the last day:
|
|
261
|
+
jq -r 'select(.event == "tool:end") | "\(.data.duration_ms)\t\(.data.tool)"' \
|
|
262
|
+
$(kimiflare logs path) | sort -rn | head
|
|
263
|
+
```
|
|
264
|
+
|
|
265
|
+
Disable the file sink entirely with `KIMIFLARE_LOG_SINK=off`. The
|
|
266
|
+
separate `KIMIFLARE_LOG_LEVEL` env var (default `off`) controls stderr
|
|
267
|
+
output — independent of the file sink.
|
|
268
|
+
|
|
240
269
|
## Development
|
|
241
270
|
|
|
242
271
|
```sh
|