Skip to content

Commit 356330f

Browse files
committed
chore(release): prepare v0.10.0
1 parent 3053a73 commit 356330f

15 files changed

Lines changed: 459 additions & 103 deletions

File tree

CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,21 @@ Before `1.0.0`, breaking changes may still ship in minor releases.
77

88
## [Unreleased]
99

10+
## [0.10.0]
11+
12+
### Added
13+
14+
- `kagi search` and `kagi batch` now preserve related search metadata from the Search API in structured output.
15+
- `kagi extract` now supports `--format json` and `--format compact` to expose the full Extract API envelope, including retained link metadata when returned by Kagi.
16+
17+
### Changed
18+
19+
- Assistant thread output now uses folders instead of tags, matching Kagi's current thread organization model.
20+
21+
### Fixed
22+
23+
- `kagi translate` now reports inactive subscription failures with a clearer message when Kagi Translate rejects access.
24+
1025
## [0.9.6]
1126

1227
### Fixed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "kagi"
3-
version = "0.9.6"
3+
version = "0.10.0"
44
edition = "2024"
55
description = "Agent-native CLI for Kagi subscribers with JSON-first search output"
66
license = "MIT"

docs/commands/assistant.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ Prompt mode returns:
266266
"saved": false,
267267
"shared": false,
268268
"branch_id": "00000000-0000-4000-0000-000000000000",
269-
"tag_ids": []
269+
"folder_ids": []
270270
},
271271
"message": {
272272
"id": "msg-1",
@@ -297,7 +297,7 @@ Prompt mode returns:
297297
"version": "202603171911.stage.707e740",
298298
"trace": "trace-123"
299299
},
300-
"tags": [],
300+
"folders": [],
301301
"threads": [
302302
{
303303
"id": "thread-1",
@@ -306,7 +306,7 @@ Prompt mode returns:
306306
"snippet": "Hello",
307307
"saved": false,
308308
"shared": false,
309-
"tag_ids": []
309+
"folder_ids": []
310310
}
311311
],
312312
"pagination": {

docs/commands/extract.mdx

Lines changed: 43 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ Extract the readable content of a web page as markdown using Kagi's Extract API.
1010
## Synopsis
1111

1212
```bash
13-
kagi extract <URL>
13+
kagi extract <URL> [--format markdown|json|compact]
1414
```
1515

1616
## Description
1717

18-
The `kagi extract` command sends one HTTPS URL to Kagi's v1 Extract API and prints the extracted page markdown to stdout. It is useful when a search result, article, or documentation page needs full-page text instead of a search snippet.
18+
The `kagi extract` command sends one HTTPS URL to Kagi's v1 Extract API and prints the extracted page markdown to stdout by default. It is useful when a search result, article, or documentation page needs full-page text instead of a search snippet.
1919

20-
The command uses JSON mode internally because that is the stable envelope returned by the API, then prints the first page's `markdown` field. If Kagi returns no page markdown, the CLI reports the Extract API error details and trace id when available.
20+
The command uses JSON mode internally because that is the stable envelope returned by the API, then prints the first page's `markdown` field. Use `--format json` or `--format compact` to print the full response envelope, including retained link metadata when Kagi returns it. If Kagi returns no page markdown, the CLI reports the Extract API error details and trace id when available.
2121

2222
## Authentication
2323

@@ -37,6 +37,16 @@ kagi extract "https://example.com/article"
3737

3838
Only `https://` URLs with a valid host are accepted.
3939

40+
### `--format <FORMAT>`
41+
42+
Output format. Default: `markdown`.
43+
44+
Supported values:
45+
46+
- `markdown` - print the first page's markdown content only
47+
- `json` - print the full Extract API response envelope
48+
- `compact` - print the full response envelope as compact JSON
49+
4050
## Output
4151

4252
The command prints markdown directly:
@@ -47,6 +57,30 @@ The command prints markdown directly:
4757
Extracted page content...
4858
```
4959

60+
With `--format json`, the command prints the full response envelope:
61+
62+
```json
63+
{
64+
"meta": {
65+
"trace": "trace-1",
66+
"node": "test",
67+
"ms": 12
68+
},
69+
"data": [
70+
{
71+
"url": "https://example.com/article",
72+
"markdown": "# Article title\n\nExtracted page content...",
73+
"links": [
74+
{
75+
"text": "Source",
76+
"url": "https://example.com/"
77+
}
78+
]
79+
}
80+
]
81+
}
82+
```
83+
5084
## Examples
5185

5286
### Save an Article
@@ -61,6 +95,12 @@ kagi extract "https://example.com/article" > article.md
6195
kagi extract "https://example.com/article" | sed -n '1,80p'
6296
```
6397

98+
### Inspect Retained Links
99+
100+
```bash
101+
kagi extract "https://example.com/article" --format json | jq '.data[0].links'
102+
```
103+
64104
## Exit Codes
65105

66106
| Code | Meaning |

docs/commands/search.mdx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,9 @@ kagi search "iran" --news --time day --format pretty
339339
# Extract URLs
340340
kagi search "rust" | jq -r '.data[].url'
341341

342+
# Inspect related search metadata when the API returns it
343+
kagi search "rust" | jq '.related_searches'
344+
342345
# Get first result
343346
kagi search "rust" | jq -r '.data[0].title'
344347

docs/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,4 +256,4 @@ The *kagi* CLI is open source and welcomes contributions. See the [Development G
256256

257257
---
258258

259-
*Last updated: June 2026 | kagi CLI v0.9.6*
259+
*Last updated: June 2026 | kagi CLI v0.10.0*

npm/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "kagi-cli",
3-
"version": "0.9.6",
3+
"version": "0.10.0",
44
"description": "Node wrapper that installs the native kagi CLI binary",
55
"license": "MIT",
66
"repository": {

0 commit comments

Comments
 (0)