@octen.ai/cli 0.5.3 → 0.5.5

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 CHANGED
@@ -61,7 +61,7 @@ Search the live web.
61
61
  octen search "latest LLM benchmarks" -n 10 --topic news --highlight --time-range week
62
62
  ```
63
63
 
64
- Options: `-n` (result count 1–100), `--topic` (general|news), `--highlight` (+`--highlight-max-tokens`, min 100), `--time-range` (day|week|month|year or d|w|m|y), `--start-time`/`--end-time` (YYYY-MM-DD or ISO datetime), `--include-domains`, `--exclude-domains`, `--full-content`, `--images`, `--videos`, `--format` (text|markdown), `--safesearch`, `--country` (follow [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2), the International Standard for country codes and codes for their subdivisions — like US or JP, or auto, the default).
64
+ Options: `-n` (result count 1–100), `--topic` (general|news), `--highlight` (+`--highlight-max-tokens`, min 100), `--time-range` (day|week|month|year or d|w|m|y), `--start-time`/`--end-time` (YYYY-MM-DD or ISO datetime), `--include-domains`, `--exclude-domains`, `--language` (comma-separated ISO 639-1 codes, e.g. `en,ja` — one of `ar de en es fr hi id it ja ko nl pl pt ru th tr vi zh`), `--full-content`, `--images`, `--videos`, `--format` (text|markdown), `--safesearch`.
65
65
 
66
66
  ---
67
67
 
@@ -85,7 +85,7 @@ Use it for comparisons across many sources (pricing, products, vendors), surveys
85
85
  octen broad-search "compare cloud GPU pricing across providers" --max-queries 5 -n 10
86
86
  ```
87
87
 
88
- Options: `--max-queries` (decompose into up to N sub-queries, 1–30, default 5), plus all `octen search` flags (`-n/--count` per sub-query, `--topic`, `--highlight`, `--full-content`, `--time-range`, `--start-time`/`--end-time`, `--include-domains`/`--exclude-domains`, `--include-text`/`--exclude-text`, `--images`, `--videos`, `--format`, `--safesearch`, `--country`).
88
+ Options: `--max-queries` (decompose into up to N sub-queries, 1–30, default 5), plus all `octen search` flags (`-n/--count` per sub-query, `--topic`, `--highlight`, `--full-content`, `--time-range`, `--start-time`/`--end-time`, `--include-domains`/`--exclude-domains`, `--include-text`/`--exclude-text`, `--language`, `--images`, `--videos`, `--format`, `--safesearch`).
89
89
 
90
90
  ---
91
91
 
@@ -128,7 +128,7 @@ Sampling: `--temperature`, `--top-p`, `--top-k`, `--min-p`, `--top-a`, `--repeti
128
128
 
129
129
  Reasoning: `--reasoning-effort` (xhigh|high|medium|low|minimal|none), `--reasoning-max-tokens`. When a model emits reasoning it is shown under a dim `reasoning:` prefix in pretty mode.
130
130
 
131
- Web search (only meaningful with `--search` and/or `--broad-search`): `--search-max-searches <n>` (octen_search only; default 5), `--search-max-queries <n>` (octen_broad_search only; 1-30, default 5), `--search-topic` (general|news), `--search-count <n>` (1-100), `--search-include-domains <list>`, `--search-exclude-domains <list>`, `--search-include-text <list>`/`--search-exclude-text <list>` (max 5 each), `--search-time-basis` (auto|published|crawled), `--search-time-range` (day|week|month|year or d|w|m|y), `--search-start-time <when>`, `--search-end-time <when>`, `--search-format` (markdown|text), `--search-safesearch` (off|strict), `--search-country` (ISO 3166 country code like US or JP, or auto), `--search-include-images`, `--search-full-content` (+`--search-full-content-max-tokens <n>`), `--search-highlight-max-tokens <n>`. The shared options apply to whichever tool(s) are enabled.
131
+ Web search (only meaningful with `--search` and/or `--broad-search`): `--search-max-searches <n>` (octen_search only; default 5), `--search-max-queries <n>` (octen_broad_search only; 1-30, default 5), `--search-topic` (general|news), `--search-count <n>` (1-100), `--search-include-domains <list>`, `--search-exclude-domains <list>`, `--search-include-text <list>`/`--search-exclude-text <list>` (max 5 each), `--search-time-basis` (auto|published|crawled), `--search-time-range` (day|week|month|year or d|w|m|y), `--search-start-time <when>`, `--search-end-time <when>`, `--search-format` (markdown|text), `--search-safesearch` (off|strict), `--search-language <list>` (comma-separated ISO 639-1 codes, e.g. `en,ja` — one of `ar de en es fr hi id it ja ko nl pl pt ru th tr vi zh`), `--search-include-images`, `--search-full-content` (+`--search-full-content-max-tokens <n>`), `--search-highlight-max-tokens <n>`. The shared options apply to whichever tool(s) are enabled.
132
132
 
133
133
  ---
134
134
 
@@ -90,7 +90,7 @@ export interface SearchOpts {
90
90
  endTime?: string;
91
91
  format?: SearchFormat;
92
92
  safesearch?: SearchSafesearch;
93
- country?: string;
93
+ language?: string[];
94
94
  includeImages?: boolean;
95
95
  fullContent?: boolean;
96
96
  fullContentMaxTokens?: number;
package/dist/api/chat.js CHANGED
@@ -48,7 +48,7 @@ function buildWebSearchParameters(s) {
48
48
  put("end_time", normalizeTimeBound("--search-end-time", s.endTime, true));
49
49
  put("format", s.format);
50
50
  put("safesearch", s.safesearch);
51
- put("country", s.country);
51
+ put("language", s.language);
52
52
  put("include_images", s.includeImages);
53
53
  if (s.fullContent) {
54
54
  parameters["full_content"] = {
@@ -43,7 +43,7 @@ export interface SearchOpts {
43
43
  endTime?: string;
44
44
  format?: "text" | "markdown";
45
45
  safesearch?: "off" | "strict";
46
- country?: string;
46
+ language?: string[];
47
47
  highlight?: boolean;
48
48
  highlightMaxTokens?: number;
49
49
  fullContent?: boolean;
@@ -56,7 +56,7 @@ export function buildSearchOptions(o) {
56
56
  put("end_time", normalizeTimeBound("--end-time", o.endTime, true));
57
57
  put("format", o.format);
58
58
  put("safesearch", o.safesearch);
59
- put("country", o.country);
59
+ put("language", o.language);
60
60
  put("include_images", o.images);
61
61
  put("include_videos", o.videos);
62
62
  if (o.highlight)
@@ -19,7 +19,7 @@ export function registerBroadSearch(program) {
19
19
  .option("--start-time <when>", "YYYY-MM-DD or ISO datetime (e.g. 2024-01-01T00:00:00Z)")
20
20
  .option("--end-time <when>", "YYYY-MM-DD or ISO datetime (e.g. 2024-12-31T23:59:59Z)")
21
21
  .option("--format <f>", "text|markdown").option("--safesearch <s>", "off|strict")
22
- .option("--country <code>", "country of the search — follow ISO 3166 country codes (e.g. US, JP) or auto (default)")
22
+ .option("--language <list>", "ISO 639-1 codes, comma-separated, e.g. en,ja", (v) => v.split(","))
23
23
  .option("--highlight").option("--highlight-max-tokens <n>", "max tokens per highlight", parseIntOpt("--highlight-max-tokens"))
24
24
  .option("--full-content").option("--full-content-max-tokens <n>", "max tokens per result", parseIntOpt("--full-content-max-tokens"))
25
25
  .option("--images").option("--videos")
@@ -95,7 +95,7 @@ export function registerChat(program) {
95
95
  .option("--search-end-time <when>", "search tools: end time filter")
96
96
  .option("--search-format <f>", "search tools: markdown|text")
97
97
  .option("--search-safesearch <s>", "search tools: off|strict")
98
- .option("--search-country <code>", "search tools: ISO 3166 country code (e.g. US, JP) or auto")
98
+ .option("--search-language <list>", "search tools: ISO 639-1 codes, comma-separated, e.g. en,ja", splitList)
99
99
  .option("--search-include-images", "search tools: include image results")
100
100
  .option("--search-full-content", "search tools: include full page content")
101
101
  .option("--search-full-content-max-tokens <n>", "search tools: max tokens for full content", parseIntOpt("--search-full-content-max-tokens"))
@@ -141,7 +141,7 @@ export function registerChat(program) {
141
141
  endTime: opts.searchEndTime,
142
142
  format: opts.searchFormat,
143
143
  safesearch: opts.searchSafesearch,
144
- country: opts.searchCountry,
144
+ language: opts.searchLanguage,
145
145
  includeImages: opts.searchIncludeImages,
146
146
  fullContent: Boolean(opts.searchFullContent),
147
147
  fullContentMaxTokens: opts.searchFullContentMaxTokens,
@@ -16,7 +16,7 @@ export function registerSearch(program, fixedTopic) {
16
16
  .option("--start-time <when>", "YYYY-MM-DD or ISO datetime (e.g. 2024-01-01T00:00:00Z)")
17
17
  .option("--end-time <when>", "YYYY-MM-DD or ISO datetime (e.g. 2024-12-31T23:59:59Z)")
18
18
  .option("--format <f>", "text|markdown").option("--safesearch <s>", "off|strict")
19
- .option("--country <code>", "country of the search — follow ISO 3166 country codes (e.g. US, JP) or auto (default)")
19
+ .option("--language <list>", "ISO 639-1 codes, comma-separated, e.g. en,ja", (v) => v.split(","))
20
20
  .option("--highlight").option("--highlight-max-tokens <n>", "max tokens per highlight", parseIntOpt("--highlight-max-tokens"))
21
21
  .option("--full-content").option("--full-content-max-tokens <n>", "max tokens per result", parseIntOpt("--full-content-max-tokens"))
22
22
  .option("--images").option("--videos");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@octen.ai/cli",
3
- "version": "0.5.3",
3
+ "version": "0.5.5",
4
4
  "description": "Command-line tool for Octen — web search, extract, chat, embeddings, and one-command MCP/Skills setup.",
5
5
  "type": "module",
6
6
  "license": "MIT",