@octen.ai/cli 0.1.13 → 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 +20 -6
- package/dist/cli.js +2 -2
- package/dist/commands/extract.d.ts +2 -0
- package/dist/commands/{fetch.js → extract.js} +2 -2
- package/package.json +7 -1
- package/dist/commands/fetch.d.ts +0 -2
package/README.md
CHANGED
|
@@ -11,16 +11,30 @@ npm i -g @octen.ai/cli
|
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
Or run without installing: `npx @octen.ai/cli <command>`. Requires Node.js 18+.
|
|
14
|
+
Uninstall: `npm uninstall -g @octen.ai/cli`.
|
|
14
15
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
(
|
|
18
|
-
`chmod +x` it, and put it on your `PATH`. On macOS/Linux you can also use Homebrew:
|
|
16
|
+
### Without Node.js — Homebrew (macOS/Linux)
|
|
17
|
+
|
|
18
|
+
Install (one command — it taps automatically):
|
|
19
19
|
|
|
20
20
|
```sh
|
|
21
21
|
brew install Octen-Team/tap/octen
|
|
22
22
|
```
|
|
23
23
|
|
|
24
|
+
Uninstall:
|
|
25
|
+
|
|
26
|
+
```sh
|
|
27
|
+
brew uninstall octen
|
|
28
|
+
brew untap Octen-Team/tap # optional — also removes the tap
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
### Without Node.js — raw binary
|
|
32
|
+
|
|
33
|
+
Download the binary for your platform from the
|
|
34
|
+
[latest release](https://github.com/Octen-Team/octen-cli/releases/latest)
|
|
35
|
+
(`octen-darwin-arm64`, `octen-darwin-x64`, `octen-linux-x64`, `octen-linux-arm64`),
|
|
36
|
+
`chmod +x` it, and put it on your `PATH`.
|
|
37
|
+
|
|
24
38
|
Then enable tab-completion (one-time; `bash` / `zsh` / `fish`):
|
|
25
39
|
|
|
26
40
|
```sh
|
|
@@ -61,12 +75,12 @@ octen news "OpenAI announcement" --highlight --time-range day
|
|
|
61
75
|
|
|
62
76
|
---
|
|
63
77
|
|
|
64
|
-
### `octen
|
|
78
|
+
### `octen extract`
|
|
65
79
|
|
|
66
80
|
Extract content from one or more URLs (1–20).
|
|
67
81
|
|
|
68
82
|
```sh
|
|
69
|
-
octen
|
|
83
|
+
octen extract https://example.com --query "pricing" --max-age 3600 --images
|
|
70
84
|
```
|
|
71
85
|
|
|
72
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
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@octen.ai/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
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",
|
|
7
7
|
"author": "Octen <hello@octen.ai>",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "git+https://github.com/Octen-Team/octen-cli.git"
|
|
11
|
+
},
|
|
12
|
+
"homepage": "https://github.com/Octen-Team/octen-cli#readme",
|
|
13
|
+
"bugs": "https://github.com/Octen-Team/octen-cli/issues",
|
|
8
14
|
"publishConfig": {
|
|
9
15
|
"access": "public"
|
|
10
16
|
},
|
package/dist/commands/fetch.d.ts
DELETED