@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 +3 -3
- package/dist/api/chat.d.ts +1 -1
- package/dist/api/chat.js +1 -1
- package/dist/api/search.d.ts +1 -1
- package/dist/api/search.js +1 -1
- package/dist/commands/broadSearch.js +1 -1
- package/dist/commands/chat.js +2 -2
- package/dist/commands/search.js +1 -1
- package/package.json +1 -1
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`, `--
|
|
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
|
|
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-
|
|
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
|
|
package/dist/api/chat.d.ts
CHANGED
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("
|
|
51
|
+
put("language", s.language);
|
|
52
52
|
put("include_images", s.includeImages);
|
|
53
53
|
if (s.fullContent) {
|
|
54
54
|
parameters["full_content"] = {
|
package/dist/api/search.d.ts
CHANGED
package/dist/api/search.js
CHANGED
|
@@ -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("
|
|
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("--
|
|
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")
|
package/dist/commands/chat.js
CHANGED
|
@@ -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-
|
|
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
|
-
|
|
144
|
+
language: opts.searchLanguage,
|
|
145
145
|
includeImages: opts.searchIncludeImages,
|
|
146
146
|
fullContent: Boolean(opts.searchFullContent),
|
|
147
147
|
fullContentMaxTokens: opts.searchFullContentMaxTokens,
|
package/dist/commands/search.js
CHANGED
|
@@ -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("--
|
|
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");
|