@octen.ai/cli 0.2.0 → 0.3.0
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
|
@@ -75,12 +75,12 @@ octen news "OpenAI announcement" --highlight --time-range day
|
|
|
75
75
|
|
|
76
76
|
---
|
|
77
77
|
|
|
78
|
-
### `octen
|
|
78
|
+
### `octen extract`
|
|
79
79
|
|
|
80
80
|
Extract content from one or more URLs (1–20).
|
|
81
81
|
|
|
82
82
|
```sh
|
|
83
|
-
octen
|
|
83
|
+
octen extract https://example.com --query "pricing" --max-age 3600 --images
|
|
84
84
|
```
|
|
85
85
|
|
|
86
86
|
Options: `--query` (relevance hint), `--max-age <sec>` (cache age, 300–31536000), `--images`, `--videos`, `--audio`, `--favicon`, `--format` (markdown|text), `--fetch-timeout <sec>` (1–60), `--full` (print full page content).
|
package/dist/cli.js
CHANGED
|
@@ -6,7 +6,7 @@ import { fileURLToPath } from "node:url";
|
|
|
6
6
|
import pc from "picocolors";
|
|
7
7
|
import { exitCodeFor } from "./api/errors.js";
|
|
8
8
|
import { registerSearch } from "./commands/search.js";
|
|
9
|
-
import {
|
|
9
|
+
import { registerExtract } from "./commands/extract.js";
|
|
10
10
|
import { registerChat } from "./commands/chat.js";
|
|
11
11
|
import { registerEmbed } from "./commands/embed.js";
|
|
12
12
|
import { registerVlEmbed } from "./commands/vlEmbed.js";
|
|
@@ -35,7 +35,7 @@ registerConfigureMcp(program);
|
|
|
35
35
|
registerConfigureSkills(program);
|
|
36
36
|
registerSearch(program);
|
|
37
37
|
registerSearch(program, "news");
|
|
38
|
-
|
|
38
|
+
registerExtract(program);
|
|
39
39
|
registerChat(program);
|
|
40
40
|
registerEmbed(program);
|
|
41
41
|
registerVlEmbed(program);
|
|
@@ -3,9 +3,9 @@ import { buildExtractRequest } from "../api/extract.js";
|
|
|
3
3
|
import { chooseMode, emit } from "../output/render.js";
|
|
4
4
|
import { renderExtract } from "../output/pretty/extract.js";
|
|
5
5
|
import { makeClient, parseIntOpt } from "./utils.js";
|
|
6
|
-
export function
|
|
6
|
+
export function registerExtract(program) {
|
|
7
7
|
program
|
|
8
|
-
.command("
|
|
8
|
+
.command("extract")
|
|
9
9
|
.argument("<urls...>", "one or more URLs (1-20)")
|
|
10
10
|
.description("Extract content from URLs")
|
|
11
11
|
.option("--query <q>", "optional search query for relevance")
|
package/package.json
CHANGED
package/dist/commands/fetch.d.ts
DELETED