Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/commands/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description: Complete generated reference for AskNews CLI commands

# CLI command reference

Generated from AskNews CLI 0.2.2 and AskNews API 0.31.1.
Generated from AskNews CLI 0.2.3 and AskNews API 0.31.1.

The installed CLI is authoritative. Run `asknews <command> --help` for the exact options in
your version. Regenerate these pages with `pnpm sync:openapi`.
Expand Down
1 change: 1 addition & 0 deletions docs/commands/routes/news.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ Search enriched real-time or historical news
| `--continents <value>` | Filter on articles where the content is most related to continents in this list. [query, array<string>, optional, allowed: Africa\|Asia\|Oceania\|Europe\|Middle East\|North America\|South America] |
| `--sentiment <value>` | Sentiment to filter articles on. [query, string, optional] Choices: negative, neutral, positive. |
| `--authors <value>` | Authors to filter articles by. [query, array<string>, optional] |
| `--podcasts <value>` | Control whether podcast transcripts are included alongside news articles. 'include' searches both news and podcasts, 'only' returns only podcasts, and 'none' excludes podcasts. [query, string, optional, default: "include"] Choices: include, only, none. |
| `--return-type <value>` | Format to return articles in. 'dicts' returns a list of article dictionaries with full metadata. 'string' returns a prompt-optimized string format. String is good for accepting concise input into LLMs, dicts is good for detailed analysis and using large json objects for further processing. [query, string, optional, default: "dicts"] Choices: string, dicts. |

**Examples:**
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@emergentmethods/asknews-cli",
"version": "0.2.2",
"version": "0.2.3",
"description": "The official AskNews CLI for humans, automation, and agents",
"type": "module",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion skills/asknews-cli/references/commands/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# CLI command reference

Generated from AskNews CLI 0.2.2 and AskNews API 0.31.1.
Generated from AskNews CLI 0.2.3 and AskNews API 0.31.1.

The installed CLI is authoritative. Run `asknews <command> --help` for the exact options in
your version. Regenerate these pages with `pnpm sync:openapi`.
Expand Down
1 change: 1 addition & 0 deletions skills/asknews-cli/references/commands/news.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ Search enriched real-time or historical news
| `--continents <value>` | Filter on articles where the content is most related to continents in this list. [query, array<string>, optional, allowed: Africa\|Asia\|Oceania\|Europe\|Middle East\|North America\|South America] |
| `--sentiment <value>` | Sentiment to filter articles on. [query, string, optional] Choices: negative, neutral, positive. |
| `--authors <value>` | Authors to filter articles by. [query, array<string>, optional] |
| `--podcasts <value>` | Control whether podcast transcripts are included alongside news articles. 'include' searches both news and podcasts, 'only' returns only podcasts, and 'none' excludes podcasts. [query, string, optional, default: "include"] Choices: include, only, none. |
| `--return-type <value>` | Format to return articles in. 'dicts' returns a list of article dictionaries with full metadata. 'string' returns a prompt-optimized string format. String is good for accepting concise input into LLMs, dicts is good for detailed analysis and using large json objects for further processing. [query, string, optional, default: "dicts"] Choices: string, dicts. |

**Examples:**
Expand Down
4 changes: 3 additions & 1 deletion skills/asknews-cli/references/task-recipes.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ The query is a semantic search where keywords are prioritized. Use `--string-gua
`--entity-guarantee` when a keyword or entity must be present, and `--reverse-string-guarantee` to
exclude a name or concept. Apply date, language, country, domain, entity, or string filters only
when justified by the task; inspect `asknews news search --help` for exact syntax and current
enums. Advanced parameters not exposed here (search method, strategy, geo filters, caching) remain
enums. Podcast transcripts are included by default; use `--podcasts none` to exclude them or
`--podcasts only` to search podcasts alone (podcast items have a `domain_url` ending in `.podcast`).
Advanced parameters not exposed here (search method, strategy, geo filters, caching) remain
available on `asknews api news search-news`.

When answering from articles:
Expand Down
4 changes: 4 additions & 0 deletions src/commands/curated.ts
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,10 @@ function registerNews(program: Command): void {
type: "array",
itemType: "string",
},
podcasts: {
description:
"Control whether podcast transcripts are included alongside news articles. 'include' searches both news and podcasts, 'only' returns only podcasts, and 'none' excludes podcasts.",
},
return_type: {
description:
"Format to return articles in. 'dicts' returns a list of article dictionaries with full metadata. 'string' returns a prompt-optimized string format. String is good for accepting concise input into LLMs, dicts is good for detailed analysis and using large json objects for further processing.",
Expand Down
1 change: 1 addition & 0 deletions test/contract/help-coverage.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ describe("command help OpenAPI coverage", () => {
"--continents",
"--sentiment",
"--authors",
"--podcasts",
"--return-type",
].sort(),
);
Expand Down
Loading