From c3d08871539a3286394bcb97aaf972642fad901f Mon Sep 17 00:00:00 2001 From: Devops Bot Date: Mon, 5 Oct 2026 23:06:07 +0000 Subject: [PATCH] fix: Refresh model catalog from OpenAPI 0.32.3 --- docs/commands/README.md | 2 +- docs/commands/routes/api-alerts.md | 2 +- docs/commands/routes/api-autofilter.md | 2 +- docs/commands/routes/api-byok.md | 2 +- docs/commands/routes/api-chat.md | 2 +- docs/commands/routes/api-distribution.md | 2 +- docs/commands/routes/api-forecast.md | 2 +- docs/commands/routes/api-graph.md | 2 +- docs/commands/routes/api-index-urls.md | 2 +- docs/commands/routes/api-news.md | 2 +- docs/commands/routes/api-ping.md | 2 +- docs/commands/routes/api-profile.md | 2 +- docs/commands/routes/api-reddit.md | 2 +- docs/commands/routes/api-stories.md | 2 +- docs/commands/routes/api-websearch.md | 2 +- docs/commands/routes/api-wiki.md | 2 +- docs/commands/routes/research.md | 2 +- .../references/commands/api-alerts.md | 2 +- .../references/commands/api-autofilter.md | 2 +- .../references/commands/api-byok.md | 2 +- .../references/commands/api-chat.md | 2 +- .../references/commands/api-distribution.md | 2 +- .../references/commands/api-forecast.md | 2 +- .../references/commands/api-graph.md | 2 +- .../references/commands/api-index-urls.md | 2 +- .../references/commands/api-news.md | 2 +- .../references/commands/api-ping.md | 2 +- .../references/commands/api-profile.md | 2 +- .../references/commands/api-reddit.md | 2 +- .../references/commands/api-stories.md | 2 +- .../references/commands/api-websearch.md | 2 +- .../references/commands/api-wiki.md | 2 +- .../asknews-cli/references/commands/index.md | 2 +- .../references/commands/research.md | 2 +- src/generated/openapi.json | 7 ++- src/generated/operations.json | 41 ++++++++++++----- test/command-actions.test.ts | 45 +++++++++++++++++++ test/contract/help-coverage.test.ts | 22 +++++++++ 38 files changed, 137 insertions(+), 46 deletions(-) diff --git a/docs/commands/README.md b/docs/commands/README.md index a98105f..c162bca 100644 --- a/docs/commands/README.md +++ b/docs/commands/README.md @@ -5,7 +5,7 @@ description: Complete generated reference for AskNews CLI commands # CLI command reference -Generated from AskNews CLI 0.2.5 and AskNews API 0.32.1. +Generated from AskNews CLI 0.3.0 and AskNews API 0.32.3. The installed CLI is authoritative. Run `asknews --help` for the exact options in your version. Regenerate these pages with `pnpm sync:openapi`. diff --git a/docs/commands/routes/api-alerts.md b/docs/commands/routes/api-alerts.md index f3a0b8d..a2dc90f 100644 --- a/docs/commands/routes/api-alerts.md +++ b/docs/commands/routes/api-alerts.md @@ -5,7 +5,7 @@ description: Generated alerts API operations # api alerts -Generated from AskNews API 0.32.1. +Generated from AskNews API 0.32.3. ## Operations diff --git a/docs/commands/routes/api-autofilter.md b/docs/commands/routes/api-autofilter.md index 51c15dd..5552714 100644 --- a/docs/commands/routes/api-autofilter.md +++ b/docs/commands/routes/api-autofilter.md @@ -5,7 +5,7 @@ description: Generated autofilter API operations # api autofilter -Generated from AskNews API 0.32.1. +Generated from AskNews API 0.32.3. ## Operations diff --git a/docs/commands/routes/api-byok.md b/docs/commands/routes/api-byok.md index 2e03b68..384ccc9 100644 --- a/docs/commands/routes/api-byok.md +++ b/docs/commands/routes/api-byok.md @@ -5,7 +5,7 @@ description: Generated byok API operations # api byok -Generated from AskNews API 0.32.1. +Generated from AskNews API 0.32.3. ## Operations diff --git a/docs/commands/routes/api-chat.md b/docs/commands/routes/api-chat.md index e6c7646..e2ae865 100644 --- a/docs/commands/routes/api-chat.md +++ b/docs/commands/routes/api-chat.md @@ -5,7 +5,7 @@ description: Generated chat API operations # api chat -Generated from AskNews API 0.32.1. +Generated from AskNews API 0.32.3. ## Operations diff --git a/docs/commands/routes/api-distribution.md b/docs/commands/routes/api-distribution.md index 41e1560..f584857 100644 --- a/docs/commands/routes/api-distribution.md +++ b/docs/commands/routes/api-distribution.md @@ -5,7 +5,7 @@ description: Generated distribution API operations # api distribution -Generated from AskNews API 0.32.1. +Generated from AskNews API 0.32.3. ## Operations diff --git a/docs/commands/routes/api-forecast.md b/docs/commands/routes/api-forecast.md index 835a3d3..e988e37 100644 --- a/docs/commands/routes/api-forecast.md +++ b/docs/commands/routes/api-forecast.md @@ -5,7 +5,7 @@ description: Generated forecast API operations # api forecast -Generated from AskNews API 0.32.1. +Generated from AskNews API 0.32.3. ## Operations diff --git a/docs/commands/routes/api-graph.md b/docs/commands/routes/api-graph.md index e05b362..eeb34a0 100644 --- a/docs/commands/routes/api-graph.md +++ b/docs/commands/routes/api-graph.md @@ -5,7 +5,7 @@ description: Generated graph API operations # api graph -Generated from AskNews API 0.32.1. +Generated from AskNews API 0.32.3. ## Operations diff --git a/docs/commands/routes/api-index-urls.md b/docs/commands/routes/api-index-urls.md index 92b02ab..857f3c3 100644 --- a/docs/commands/routes/api-index-urls.md +++ b/docs/commands/routes/api-index-urls.md @@ -5,7 +5,7 @@ description: Generated index-urls API operations # api index-urls -Generated from AskNews API 0.32.1. +Generated from AskNews API 0.32.3. ## Operations diff --git a/docs/commands/routes/api-news.md b/docs/commands/routes/api-news.md index 7ee6971..d5b8435 100644 --- a/docs/commands/routes/api-news.md +++ b/docs/commands/routes/api-news.md @@ -5,7 +5,7 @@ description: Generated news API operations # api news -Generated from AskNews API 0.32.1. +Generated from AskNews API 0.32.3. ## Operations diff --git a/docs/commands/routes/api-ping.md b/docs/commands/routes/api-ping.md index eac9a5c..dadf84e 100644 --- a/docs/commands/routes/api-ping.md +++ b/docs/commands/routes/api-ping.md @@ -5,7 +5,7 @@ description: Generated ping API operations # api ping -Generated from AskNews API 0.32.1. +Generated from AskNews API 0.32.3. ## Operations diff --git a/docs/commands/routes/api-profile.md b/docs/commands/routes/api-profile.md index b760259..8fe2042 100644 --- a/docs/commands/routes/api-profile.md +++ b/docs/commands/routes/api-profile.md @@ -5,7 +5,7 @@ description: Generated profile API operations # api profile -Generated from AskNews API 0.32.1. +Generated from AskNews API 0.32.3. ## Operations diff --git a/docs/commands/routes/api-reddit.md b/docs/commands/routes/api-reddit.md index f2b8b83..de9b204 100644 --- a/docs/commands/routes/api-reddit.md +++ b/docs/commands/routes/api-reddit.md @@ -5,7 +5,7 @@ description: Generated reddit API operations # api reddit -Generated from AskNews API 0.32.1. +Generated from AskNews API 0.32.3. ## Operations diff --git a/docs/commands/routes/api-stories.md b/docs/commands/routes/api-stories.md index d83fb33..7ca2310 100644 --- a/docs/commands/routes/api-stories.md +++ b/docs/commands/routes/api-stories.md @@ -5,7 +5,7 @@ description: Generated stories API operations # api stories -Generated from AskNews API 0.32.1. +Generated from AskNews API 0.32.3. ## Operations diff --git a/docs/commands/routes/api-websearch.md b/docs/commands/routes/api-websearch.md index e921b09..c38ef8d 100644 --- a/docs/commands/routes/api-websearch.md +++ b/docs/commands/routes/api-websearch.md @@ -5,7 +5,7 @@ description: Generated websearch API operations # api websearch -Generated from AskNews API 0.32.1. +Generated from AskNews API 0.32.3. ## Operations diff --git a/docs/commands/routes/api-wiki.md b/docs/commands/routes/api-wiki.md index 7d84155..25a6018 100644 --- a/docs/commands/routes/api-wiki.md +++ b/docs/commands/routes/api-wiki.md @@ -5,7 +5,7 @@ description: Generated wiki API operations # api wiki -Generated from AskNews API 0.32.1. +Generated from AskNews API 0.32.3. ## Operations diff --git a/docs/commands/routes/research.md b/docs/commands/routes/research.md index 0ffb9e1..69d76cb 100644 --- a/docs/commands/routes/research.md +++ b/docs/commands/routes/research.md @@ -23,7 +23,7 @@ Run DeepNews research | Option | Description | | --- | --- | -| `--model ` | The model to use for DeepNews research. Defaults to claude-sonnet-5. [body, string\|null, optional, default: "claude-sonnet-5"] Choices: o1-mini, o1, o3-mini, o3, gpt-4o-mini, gpt-4o, gpt-4.1-2025-04-14, gpt-5-mini, gpt-5, command-nightly, claude-3-5-sonnet-20240620, claude-3-5-sonnet-latest, claude-3-7-sonnet-latest, claude-3-7-sonnet-20250219, claude-3-7-sonnet-nothinking, claude-sonnet-4-20250514, claude-opus-4-20250514, claude-sonnet-4-5-20250929, claude-opus-4-5-20251101, claude-sonnet-4-6, claude-sonnet-5, claude-opus-4-8, claude-opus-5, claude-opus-5-5, claude-opus-4-6, claude-fable-5, claude-fable-5-1, gpt-5.6-terra, gpt-5.6-sol, gpt-6-sol, gpt-6-astra, deepseek, deepseek-basic, deepseek-r1-0528, meta-llama/Meta-Llama-3-8B-Instruct, meta-llama/Meta-Llama-3.1-405B-Instruct, meta-llama/Meta-Llama-3.3-70B-Instruct, meta-llama/Llama-4-Maverick-17B-128E-Instruct, gemini-2.5-flash, gemini-2.5-pro, gemini-2.5-pro-preview-03-25, gemini-3-pro, gemini-3.1-pro, gemini-3-flash, gemini-3.5-flash, gemini-3.6-flash, open-source-best, kimi-k2p5. | +| `--model ` | The model to use for DeepNews research. Defaults to claude-sonnet-5. [body, string\|null, optional, default: "claude-sonnet-5"] Choices: o1-mini, o1, o3-mini, o3, gpt-4o-mini, gpt-4o, gpt-4.1-2025-04-14, gpt-5-mini, gpt-5, command-nightly, claude-3-5-sonnet-20240620, claude-3-5-sonnet-latest, claude-3-7-sonnet-latest, claude-3-7-sonnet-20250219, claude-3-7-sonnet-nothinking, claude-sonnet-4-20250514, claude-opus-4-20250514, claude-sonnet-4-5-20250929, claude-opus-4-5-20251101, claude-sonnet-4-6, claude-sonnet-5, claude-sonnet-5-5, claude-opus-4-8, claude-opus-5, claude-opus-5-5, claude-opus-4-6, claude-fable-5, claude-fable-5-1, gpt-5.6-terra, gpt-5.6-sol, gpt-6-sol, gpt-6.1-sol, gpt-6-astra, deepseek, deepseek-basic, deepseek-r1-0528, meta-llama/Meta-Llama-3-8B-Instruct, meta-llama/Meta-Llama-3.1-405B-Instruct, meta-llama/Meta-Llama-3.3-70B-Instruct, meta-llama/Llama-4-Maverick-17B-128E-Instruct, gemini-2.5-flash, gemini-2.5-pro, gemini-2.5-pro-preview-03-25, gemini-3-pro, gemini-3.1-pro, gemini-3-flash, gemini-3.5-flash, gemini-3.6-flash, open-source-best, kimi-k2p5, kimi-k3. | | `--filter-params ` | Filter parameters to apply to the AskNews search within DeepNews. [body, object\|null, optional] | | `--search-depth ` | The search depth for deep research. Higher values mean more thorough research. [body, integer, optional, min: 1, max: 190, default: 2] | | `--max-depth ` | The maximum research depth allowed. [body, integer, optional, min: 1, max: 200, default: 6] | diff --git a/skills/asknews-cli/references/commands/api-alerts.md b/skills/asknews-cli/references/commands/api-alerts.md index d61d46b..81d6b15 100644 --- a/skills/asknews-cli/references/commands/api-alerts.md +++ b/skills/asknews-cli/references/commands/api-alerts.md @@ -1,6 +1,6 @@ # api alerts -Generated from AskNews API 0.32.1. +Generated from AskNews API 0.32.3. ## Operations diff --git a/skills/asknews-cli/references/commands/api-autofilter.md b/skills/asknews-cli/references/commands/api-autofilter.md index 22ff6ef..5e38e37 100644 --- a/skills/asknews-cli/references/commands/api-autofilter.md +++ b/skills/asknews-cli/references/commands/api-autofilter.md @@ -1,6 +1,6 @@ # api autofilter -Generated from AskNews API 0.32.1. +Generated from AskNews API 0.32.3. ## Operations diff --git a/skills/asknews-cli/references/commands/api-byok.md b/skills/asknews-cli/references/commands/api-byok.md index f0d953f..d241b0f 100644 --- a/skills/asknews-cli/references/commands/api-byok.md +++ b/skills/asknews-cli/references/commands/api-byok.md @@ -1,6 +1,6 @@ # api byok -Generated from AskNews API 0.32.1. +Generated from AskNews API 0.32.3. ## Operations diff --git a/skills/asknews-cli/references/commands/api-chat.md b/skills/asknews-cli/references/commands/api-chat.md index fc27844..e04a163 100644 --- a/skills/asknews-cli/references/commands/api-chat.md +++ b/skills/asknews-cli/references/commands/api-chat.md @@ -1,6 +1,6 @@ # api chat -Generated from AskNews API 0.32.1. +Generated from AskNews API 0.32.3. ## Operations diff --git a/skills/asknews-cli/references/commands/api-distribution.md b/skills/asknews-cli/references/commands/api-distribution.md index f274774..ddd00e0 100644 --- a/skills/asknews-cli/references/commands/api-distribution.md +++ b/skills/asknews-cli/references/commands/api-distribution.md @@ -1,6 +1,6 @@ # api distribution -Generated from AskNews API 0.32.1. +Generated from AskNews API 0.32.3. ## Operations diff --git a/skills/asknews-cli/references/commands/api-forecast.md b/skills/asknews-cli/references/commands/api-forecast.md index a7085e1..8bee08c 100644 --- a/skills/asknews-cli/references/commands/api-forecast.md +++ b/skills/asknews-cli/references/commands/api-forecast.md @@ -1,6 +1,6 @@ # api forecast -Generated from AskNews API 0.32.1. +Generated from AskNews API 0.32.3. ## Operations diff --git a/skills/asknews-cli/references/commands/api-graph.md b/skills/asknews-cli/references/commands/api-graph.md index 126918e..504554b 100644 --- a/skills/asknews-cli/references/commands/api-graph.md +++ b/skills/asknews-cli/references/commands/api-graph.md @@ -1,6 +1,6 @@ # api graph -Generated from AskNews API 0.32.1. +Generated from AskNews API 0.32.3. ## Operations diff --git a/skills/asknews-cli/references/commands/api-index-urls.md b/skills/asknews-cli/references/commands/api-index-urls.md index a2d0d36..050d11e 100644 --- a/skills/asknews-cli/references/commands/api-index-urls.md +++ b/skills/asknews-cli/references/commands/api-index-urls.md @@ -1,6 +1,6 @@ # api index-urls -Generated from AskNews API 0.32.1. +Generated from AskNews API 0.32.3. ## Operations diff --git a/skills/asknews-cli/references/commands/api-news.md b/skills/asknews-cli/references/commands/api-news.md index 60b5023..d1b7b84 100644 --- a/skills/asknews-cli/references/commands/api-news.md +++ b/skills/asknews-cli/references/commands/api-news.md @@ -1,6 +1,6 @@ # api news -Generated from AskNews API 0.32.1. +Generated from AskNews API 0.32.3. ## Operations diff --git a/skills/asknews-cli/references/commands/api-ping.md b/skills/asknews-cli/references/commands/api-ping.md index 7b3a247..2c3b644 100644 --- a/skills/asknews-cli/references/commands/api-ping.md +++ b/skills/asknews-cli/references/commands/api-ping.md @@ -1,6 +1,6 @@ # api ping -Generated from AskNews API 0.32.1. +Generated from AskNews API 0.32.3. ## Operations diff --git a/skills/asknews-cli/references/commands/api-profile.md b/skills/asknews-cli/references/commands/api-profile.md index e20b41d..f4897fa 100644 --- a/skills/asknews-cli/references/commands/api-profile.md +++ b/skills/asknews-cli/references/commands/api-profile.md @@ -1,6 +1,6 @@ # api profile -Generated from AskNews API 0.32.1. +Generated from AskNews API 0.32.3. ## Operations diff --git a/skills/asknews-cli/references/commands/api-reddit.md b/skills/asknews-cli/references/commands/api-reddit.md index c97613d..5ec0d70 100644 --- a/skills/asknews-cli/references/commands/api-reddit.md +++ b/skills/asknews-cli/references/commands/api-reddit.md @@ -1,6 +1,6 @@ # api reddit -Generated from AskNews API 0.32.1. +Generated from AskNews API 0.32.3. ## Operations diff --git a/skills/asknews-cli/references/commands/api-stories.md b/skills/asknews-cli/references/commands/api-stories.md index bfe1171..d7a48d1 100644 --- a/skills/asknews-cli/references/commands/api-stories.md +++ b/skills/asknews-cli/references/commands/api-stories.md @@ -1,6 +1,6 @@ # api stories -Generated from AskNews API 0.32.1. +Generated from AskNews API 0.32.3. ## Operations diff --git a/skills/asknews-cli/references/commands/api-websearch.md b/skills/asknews-cli/references/commands/api-websearch.md index 202ed56..b645736 100644 --- a/skills/asknews-cli/references/commands/api-websearch.md +++ b/skills/asknews-cli/references/commands/api-websearch.md @@ -1,6 +1,6 @@ # api websearch -Generated from AskNews API 0.32.1. +Generated from AskNews API 0.32.3. ## Operations diff --git a/skills/asknews-cli/references/commands/api-wiki.md b/skills/asknews-cli/references/commands/api-wiki.md index f8026c6..5d36d92 100644 --- a/skills/asknews-cli/references/commands/api-wiki.md +++ b/skills/asknews-cli/references/commands/api-wiki.md @@ -1,6 +1,6 @@ # api wiki -Generated from AskNews API 0.32.1. +Generated from AskNews API 0.32.3. ## Operations diff --git a/skills/asknews-cli/references/commands/index.md b/skills/asknews-cli/references/commands/index.md index 659ff0a..e968595 100644 --- a/skills/asknews-cli/references/commands/index.md +++ b/skills/asknews-cli/references/commands/index.md @@ -1,6 +1,6 @@ # CLI command reference -Generated from AskNews CLI 0.2.5 and AskNews API 0.32.1. +Generated from AskNews CLI 0.3.0 and AskNews API 0.32.3. The installed CLI is authoritative. Run `asknews --help` for the exact options in your version. Regenerate these pages with `pnpm sync:openapi`. diff --git a/skills/asknews-cli/references/commands/research.md b/skills/asknews-cli/references/commands/research.md index 6bf4ca8..c0aa426 100644 --- a/skills/asknews-cli/references/commands/research.md +++ b/skills/asknews-cli/references/commands/research.md @@ -18,7 +18,7 @@ Run DeepNews research | Option | Description | | --- | --- | -| `--model ` | The model to use for DeepNews research. Defaults to claude-sonnet-5. [body, string\|null, optional, default: "claude-sonnet-5"] Choices: o1-mini, o1, o3-mini, o3, gpt-4o-mini, gpt-4o, gpt-4.1-2025-04-14, gpt-5-mini, gpt-5, command-nightly, claude-3-5-sonnet-20240620, claude-3-5-sonnet-latest, claude-3-7-sonnet-latest, claude-3-7-sonnet-20250219, claude-3-7-sonnet-nothinking, claude-sonnet-4-20250514, claude-opus-4-20250514, claude-sonnet-4-5-20250929, claude-opus-4-5-20251101, claude-sonnet-4-6, claude-sonnet-5, claude-opus-4-8, claude-opus-5, claude-opus-5-5, claude-opus-4-6, claude-fable-5, claude-fable-5-1, gpt-5.6-terra, gpt-5.6-sol, gpt-6-sol, gpt-6-astra, deepseek, deepseek-basic, deepseek-r1-0528, meta-llama/Meta-Llama-3-8B-Instruct, meta-llama/Meta-Llama-3.1-405B-Instruct, meta-llama/Meta-Llama-3.3-70B-Instruct, meta-llama/Llama-4-Maverick-17B-128E-Instruct, gemini-2.5-flash, gemini-2.5-pro, gemini-2.5-pro-preview-03-25, gemini-3-pro, gemini-3.1-pro, gemini-3-flash, gemini-3.5-flash, gemini-3.6-flash, open-source-best, kimi-k2p5. | +| `--model ` | The model to use for DeepNews research. Defaults to claude-sonnet-5. [body, string\|null, optional, default: "claude-sonnet-5"] Choices: o1-mini, o1, o3-mini, o3, gpt-4o-mini, gpt-4o, gpt-4.1-2025-04-14, gpt-5-mini, gpt-5, command-nightly, claude-3-5-sonnet-20240620, claude-3-5-sonnet-latest, claude-3-7-sonnet-latest, claude-3-7-sonnet-20250219, claude-3-7-sonnet-nothinking, claude-sonnet-4-20250514, claude-opus-4-20250514, claude-sonnet-4-5-20250929, claude-opus-4-5-20251101, claude-sonnet-4-6, claude-sonnet-5, claude-sonnet-5-5, claude-opus-4-8, claude-opus-5, claude-opus-5-5, claude-opus-4-6, claude-fable-5, claude-fable-5-1, gpt-5.6-terra, gpt-5.6-sol, gpt-6-sol, gpt-6.1-sol, gpt-6-astra, deepseek, deepseek-basic, deepseek-r1-0528, meta-llama/Meta-Llama-3-8B-Instruct, meta-llama/Meta-Llama-3.1-405B-Instruct, meta-llama/Meta-Llama-3.3-70B-Instruct, meta-llama/Llama-4-Maverick-17B-128E-Instruct, gemini-2.5-flash, gemini-2.5-pro, gemini-2.5-pro-preview-03-25, gemini-3-pro, gemini-3.1-pro, gemini-3-flash, gemini-3.5-flash, gemini-3.6-flash, open-source-best, kimi-k2p5, kimi-k3. | | `--filter-params ` | Filter parameters to apply to the AskNews search within DeepNews. [body, object\|null, optional] | | `--search-depth ` | The search depth for deep research. Higher values mean more thorough research. [body, integer, optional, min: 1, max: 190, default: 2] | | `--max-depth ` | The maximum research depth allowed. [body, integer, optional, min: 1, max: 200, default: 6] | diff --git a/src/generated/openapi.json b/src/generated/openapi.json index 62cccbb..aab9cf4 100644 --- a/src/generated/openapi.json +++ b/src/generated/openapi.json @@ -3,7 +3,7 @@ "info": { "title": "AskNews API", "description": "AskNews API [![status](https://status.asknews.app/api/badge/2/status?style=for-the-badge)](https://status.asknews.app/status/prod)", - "version": "0.32.1" + "version": "0.32.3" }, "servers": [ { @@ -19482,6 +19482,7 @@ "claude-opus-4-5-20251101", "claude-sonnet-4-6", "claude-sonnet-5", + "claude-sonnet-5-5", "claude-opus-4-8", "claude-opus-5", "claude-opus-5-5", @@ -19491,6 +19492,7 @@ "gpt-5.6-terra", "gpt-5.6-sol", "gpt-6-sol", + "gpt-6.1-sol", "gpt-6-astra", "deepseek", "deepseek-basic", @@ -19508,7 +19510,8 @@ "gemini-3.5-flash", "gemini-3.6-flash", "open-source-best", - "kimi-k2p5" + "kimi-k2p5", + "kimi-k3" ], "title": "DeepNewsModel" }, diff --git a/src/generated/operations.json b/src/generated/operations.json index 996503b..a4e9767 100644 --- a/src/generated/operations.json +++ b/src/generated/operations.json @@ -1,8 +1,8 @@ { - "generatedAt": "schema-version:0.32.1", - "schemaVersion": "0.32.1", + "generatedAt": "schema-version:0.32.3", + "schemaVersion": "0.32.3", "schemaUrl": "https://api.asknews.app/openapi.json", - "schemaSha256": "906eb24cff694ba3049a18b15e1b12d1bfeee19487570be9e6a1b17e962bf602", + "schemaSha256": "94bc7c87bbbb386e687787a73816f587073543c24c5394679c640a4b7ab7e8ec", "operations": [ { "operationId": "create_alert", @@ -1283,6 +1283,7 @@ "claude-opus-4-5-20251101", "claude-sonnet-4-6", "claude-sonnet-5", + "claude-sonnet-5-5", "claude-opus-4-8", "claude-opus-5", "claude-opus-5-5", @@ -1292,6 +1293,7 @@ "gpt-5.6-terra", "gpt-5.6-sol", "gpt-6-sol", + "gpt-6.1-sol", "gpt-6-astra", "deepseek", "deepseek-basic", @@ -1309,7 +1311,8 @@ "gemini-3.5-flash", "gemini-3.6-flash", "open-source-best", - "kimi-k2p5" + "kimi-k2p5", + "kimi-k3" ], "title": "DeepNewsModel" }, @@ -2400,6 +2403,7 @@ "claude-opus-4-5-20251101", "claude-sonnet-4-6", "claude-sonnet-5", + "claude-sonnet-5-5", "claude-opus-4-8", "claude-opus-5", "claude-opus-5-5", @@ -2409,6 +2413,7 @@ "gpt-5.6-terra", "gpt-5.6-sol", "gpt-6-sol", + "gpt-6.1-sol", "gpt-6-astra", "deepseek", "deepseek-basic", @@ -2426,7 +2431,8 @@ "gemini-3.5-flash", "gemini-3.6-flash", "open-source-best", - "kimi-k2p5" + "kimi-k2p5", + "kimi-k3" ], "title": "DeepNewsModel" }, @@ -3200,6 +3206,7 @@ "claude-opus-4-5-20251101", "claude-sonnet-4-6", "claude-sonnet-5", + "claude-sonnet-5-5", "claude-opus-4-8", "claude-opus-5", "claude-opus-5-5", @@ -3209,6 +3216,7 @@ "gpt-5.6-terra", "gpt-5.6-sol", "gpt-6-sol", + "gpt-6.1-sol", "gpt-6-astra", "deepseek", "deepseek-basic", @@ -3226,7 +3234,8 @@ "gemini-3.5-flash", "gemini-3.6-flash", "open-source-best", - "kimi-k2p5" + "kimi-k2p5", + "kimi-k3" ], "title": "DeepNewsModel" }, @@ -4865,6 +4874,7 @@ "claude-opus-4-5-20251101", "claude-sonnet-4-6", "claude-sonnet-5", + "claude-sonnet-5-5", "claude-opus-4-8", "claude-opus-5", "claude-opus-5-5", @@ -4874,6 +4884,7 @@ "gpt-5.6-terra", "gpt-5.6-sol", "gpt-6-sol", + "gpt-6.1-sol", "gpt-6-astra", "deepseek", "deepseek-basic", @@ -4891,7 +4902,8 @@ "gemini-3.5-flash", "gemini-3.6-flash", "open-source-best", - "kimi-k2p5" + "kimi-k2p5", + "kimi-k3" ], "title": "DeepNewsModel" }, @@ -6019,6 +6031,7 @@ "claude-opus-4-5-20251101", "claude-sonnet-4-6", "claude-sonnet-5", + "claude-sonnet-5-5", "claude-opus-4-8", "claude-opus-5", "claude-opus-5-5", @@ -6028,6 +6041,7 @@ "gpt-5.6-terra", "gpt-5.6-sol", "gpt-6-sol", + "gpt-6.1-sol", "gpt-6-astra", "deepseek", "deepseek-basic", @@ -6045,7 +6059,8 @@ "gemini-3.5-flash", "gemini-3.6-flash", "open-source-best", - "kimi-k2p5" + "kimi-k2p5", + "kimi-k3" ], "title": "DeepNewsModel" }, @@ -6810,6 +6825,7 @@ "claude-opus-4-5-20251101", "claude-sonnet-4-6", "claude-sonnet-5", + "claude-sonnet-5-5", "claude-opus-4-8", "claude-opus-5", "claude-opus-5-5", @@ -6819,6 +6835,7 @@ "gpt-5.6-terra", "gpt-5.6-sol", "gpt-6-sol", + "gpt-6.1-sol", "gpt-6-astra", "deepseek", "deepseek-basic", @@ -6836,7 +6853,8 @@ "gemini-3.5-flash", "gemini-3.6-flash", "open-source-best", - "kimi-k2p5" + "kimi-k2p5", + "kimi-k3" ], "title": "DeepNewsModel" }, @@ -7184,6 +7202,7 @@ "claude-opus-4-5-20251101", "claude-sonnet-4-6", "claude-sonnet-5", + "claude-sonnet-5-5", "claude-opus-4-8", "claude-opus-5", "claude-opus-5-5", @@ -7193,6 +7212,7 @@ "gpt-5.6-terra", "gpt-5.6-sol", "gpt-6-sol", + "gpt-6.1-sol", "gpt-6-astra", "deepseek", "deepseek-basic", @@ -7210,7 +7230,8 @@ "gemini-3.5-flash", "gemini-3.6-flash", "open-source-best", - "kimi-k2p5" + "kimi-k2p5", + "kimi-k3" ], "title": "DeepNewsModel" }, diff --git a/test/command-actions.test.ts b/test/command-actions.test.ts index c941b45..a5ba5f9 100644 --- a/test/command-actions.test.ts +++ b/test/command-actions.test.ts @@ -284,6 +284,51 @@ describe("command actions", () => { expect(requestBody).not.toHaveProperty("stream"); }); + test.each([ + "claude-sonnet-5-5", + "gpt-6.1-sol", + "claude-opus-5-5", + "gpt-6-sol", + "kimi-k3", + ])("forwards model %s unchanged through curated and generated research", async (model) => { + const requests: { url: string; body: unknown }[] = []; + vi.stubGlobal( + "fetch", + vi.fn(async (input: string | URL | Request, init?: RequestInit) => { + requests.push({ url: String(input), body: JSON.parse(String(init?.body)) }); + return new Response('{"ok":true}', { + headers: { "content-type": "application/json" }, + }); + }), + ); + + for (const args of [ + ["research", "energy"], + ["api", "chat", "deep-news", "--messages", '[{"role":"user","content":"energy"}]'], + ]) { + await buildCli().parseAsync([ + "node", + "asknews", + ...args, + "--model", + model, + "--api-key", + "ank_test", + "--api-url", + "https://api.example/v1", + "--output", + "json", + ]); + } + + expect(requests).toEqual( + Array.from({ length: 2 }, () => ({ + url: "https://api.example/v1/chat/deepnews", + body: { messages: [{ role: "user", content: "energy" }], model }, + })), + ); + }); + test("streams research by default when the output format supports it", async () => { let requestBody: Record | undefined; vi.stubGlobal( diff --git a/test/contract/help-coverage.test.ts b/test/contract/help-coverage.test.ts index 0ba16a4..e7ff3fc 100644 --- a/test/contract/help-coverage.test.ts +++ b/test/contract/help-coverage.test.ts @@ -1,6 +1,7 @@ import type { Command } from "commander"; import { describe, expect, test } from "vitest"; import { buildCli } from "../../src/cli.js"; +import schema from "../../src/generated/openapi.json" with { type: "json" }; import manifestJson from "../../src/generated/operations.json" with { type: "json" }; import { type JsonSchema, optionName } from "../../src/lib/schema-options.js"; import type { OperationManifest } from "../../src/lib/types.js"; @@ -148,6 +149,27 @@ describe("command help OpenAPI coverage", () => { expect(help).toContain("--stream [boolean]"); }); + test("research model choices and help preserve the complete schema catalog", () => { + const models = schema.components.schemas.DeepNewsModel.enum; + expect(models).toEqual( + expect.arrayContaining([ + "claude-sonnet-5-5", + "gpt-6.1-sol", + "claude-opus-5-5", + "gpt-6-sol", + "kimi-k3", + ]), + ); + for (const path of [["research"], ["api", "chat", "deep-news"]]) { + const command = findCommand(buildCli(), path); + expect(command.options.find((option) => option.long === "--model")?.argChoices).toEqual( + models, + ); + const help = command.helpInformation(); + for (const model of models) expect(help).toContain(model); + } + }); + test("every command renders help and has unique long options", () => { walkCommands(buildCli(), (command) => { expect(() => command.helpInformation()).not.toThrow();