@octen.ai/cli 0.5.4 → 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 -0
- package/dist/api/chat.js +1 -0
- package/dist/api/search.d.ts +1 -0
- package/dist/api/search.js +1 -0
- package/dist/commands/broadSearch.js +1 -0
- package/dist/commands/chat.js +2 -0
- package/dist/commands/search.js +1 -0
- 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`, `--full-content`, `--images`, `--videos`, `--format` (text|markdown), `--safesearch`.
|
|
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-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
|
|
package/dist/api/chat.d.ts
CHANGED
package/dist/api/chat.js
CHANGED
|
@@ -48,6 +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("language", s.language);
|
|
51
52
|
put("include_images", s.includeImages);
|
|
52
53
|
if (s.fullContent) {
|
|
53
54
|
parameters["full_content"] = {
|
package/dist/api/search.d.ts
CHANGED
package/dist/api/search.js
CHANGED
|
@@ -56,6 +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("language", o.language);
|
|
59
60
|
put("include_images", o.images);
|
|
60
61
|
put("include_videos", o.videos);
|
|
61
62
|
if (o.highlight)
|
|
@@ -19,6 +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("--language <list>", "ISO 639-1 codes, comma-separated, e.g. en,ja", (v) => v.split(","))
|
|
22
23
|
.option("--highlight").option("--highlight-max-tokens <n>", "max tokens per highlight", parseIntOpt("--highlight-max-tokens"))
|
|
23
24
|
.option("--full-content").option("--full-content-max-tokens <n>", "max tokens per result", parseIntOpt("--full-content-max-tokens"))
|
|
24
25
|
.option("--images").option("--videos")
|
package/dist/commands/chat.js
CHANGED
|
@@ -95,6 +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-language <list>", "search tools: ISO 639-1 codes, comma-separated, e.g. en,ja", splitList)
|
|
98
99
|
.option("--search-include-images", "search tools: include image results")
|
|
99
100
|
.option("--search-full-content", "search tools: include full page content")
|
|
100
101
|
.option("--search-full-content-max-tokens <n>", "search tools: max tokens for full content", parseIntOpt("--search-full-content-max-tokens"))
|
|
@@ -140,6 +141,7 @@ export function registerChat(program) {
|
|
|
140
141
|
endTime: opts.searchEndTime,
|
|
141
142
|
format: opts.searchFormat,
|
|
142
143
|
safesearch: opts.searchSafesearch,
|
|
144
|
+
language: opts.searchLanguage,
|
|
143
145
|
includeImages: opts.searchIncludeImages,
|
|
144
146
|
fullContent: Boolean(opts.searchFullContent),
|
|
145
147
|
fullContentMaxTokens: opts.searchFullContentMaxTokens,
|
package/dist/commands/search.js
CHANGED
|
@@ -16,6 +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("--language <list>", "ISO 639-1 codes, comma-separated, e.g. en,ja", (v) => v.split(","))
|
|
19
20
|
.option("--highlight").option("--highlight-max-tokens <n>", "max tokens per highlight", parseIntOpt("--highlight-max-tokens"))
|
|
20
21
|
.option("--full-content").option("--full-content-max-tokens <n>", "max tokens per result", parseIntOpt("--full-content-max-tokens"))
|
|
21
22
|
.option("--images").option("--videos");
|