diff --git a/CHANGELOG.md b/CHANGELOG.md index fba22f1..249dc60 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,12 +6,16 @@ - `kagi assistant` and `kagi ask-page` JSON output no longer has `meta.version`, `meta.trace`, `message.reply_html`, or `message.trace_id`, because Kagi's v2 Assistant API returns markdown only. `message.id` is now the assistant turn id. - `kagi assistant --assistant --model ` is now an error, because built-in assistants always use their own model. +- `kagi search --format csv` and `kagi batch --format csv` gain a fourth column: the header is now `title,url,snippet,published`. ### Fixed - `kagi assistant` and `kagi ask-page` work again after Kagi moved Assistant to its v2 API; prompts no longer fail with `HTTP 405 Method Not Allowed`. - `kagi assistant --assistant` with a built-in assistant such as `Code` now selects it as a model, as the web app does. - Assistant citation markers are rewritten to `[^1]`, `[^2]`, ... to match `references_markdown`. +- `kagi search` snippets no longer include Kagi's "Summarize" link text, and whitespace in snippets is collapsed. +- `kagi search` with a session token fills `published` with the result's date as `YYYY-MM-DDT00:00:00Z` and removes the date from the snippet. Relative dates such as "Yesterday" stay in the snippet and leave `published` as `null`. +- `pretty` and `markdown` output print `published` under the URL, `csv` adds the column, and `--template` accepts `{{published}}`, for API-key searches too. ## [0.20.1] diff --git a/docs/content/docs/commands/search.mdx b/docs/content/docs/commands/search.mdx index 65691fb..b9cb78e 100644 --- a/docs/content/docs/commands/search.mdx +++ b/docs/content/docs/commands/search.mdx @@ -78,7 +78,7 @@ Possible values: - `compact` - minified JSON - `pretty` - terminal-friendly output - `markdown` - markdown list output -- `csv` - CSV table output +- `csv` - CSV table output with `title,url,snippet,published` columns ### `--no-color` @@ -179,7 +179,7 @@ kagi search --no-personalized "rust web framework" ### `--template