@dowse-dev/cli 0.1.0 → 0.2.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/LICENSE +21 -0
- package/README.md +36 -2
- package/dist/cli.js +149 -109
- package/package.json +4 -2
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Dowse
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -18,9 +18,22 @@ Supported agents: `claude-code`, `cursor`, `codex`, `vscode`, `gemini-cli`, `her
|
|
|
18
18
|
| `doctor [--agent <name>]` | Reports for each agent whether it is installed and configured, whether its key is valid and whether the server can be reached. Each problem comes with a repair. |
|
|
19
19
|
| `disconnect [--all \| --agent <name>]` | Removes Dowse and its skill. Leaves everything else alone. |
|
|
20
20
|
| `search <query>` | Searches the web. Options: `--max-results <1-20>`, `--depth basic\|advanced`, `--topic general\|news`, `--country <code>`, `--answer`. |
|
|
21
|
-
| `extract <url...>` | Reads pages.
|
|
21
|
+
| `extract <url...>` | Reads pages. Options: `--depth basic\|advanced`, `--format text\|markdown`. |
|
|
22
|
+
| `map <url>` | Lists the URLs of a site, from its sitemap and links. Options: `--max-depth <1-5>`, `--max-breadth <1-500>`, `--limit <1-5000>`, `--select-paths <regex>`, `--exclude-paths <regex>`, `--select-domains <regex>`, `--exclude-domains <regex>`, `--allow-external`, `--sitemap include\|skip\|only`, `--timeout <10-90>`. The regex flags can repeat. |
|
|
23
|
+
| `crawl <url>` | Reads many pages of one site. Takes the `map` options, but `--limit` goes to 100, plus `--depth basic\|advanced`, `--format text\|markdown` (default markdown) and `--max-chars <n>`. |
|
|
24
|
+
| `apps <store> <action> [<id> \| <query>]` | App Store (`apple`) and Google Play (`google`) data. See [Apps](#apps). |
|
|
22
25
|
|
|
23
|
-
`search` and `
|
|
26
|
+
`search`, `extract`, `map`, `crawl` and `apps` spend credits:
|
|
27
|
+
|
|
28
|
+
- `search`: 1 credit, or 2 with `--depth advanced`.
|
|
29
|
+
- `extract`: 1 credit per 5 URLs. A page that needs a browser costs 1 more. With `--depth advanced`, a blocked page can go to a paid reader for 2 more instead.
|
|
30
|
+
- `map`: 1 credit per 10 URLs returned, at most 10.
|
|
31
|
+
- `crawl`: 1 credit per 10 pages read, plus their `extract` price.
|
|
32
|
+
- `apps`: 1 credit per call that returns data. Errors and empty results are free.
|
|
33
|
+
|
|
34
|
+
Failed calls and failed pages are free. Every cost is on the [pricing page](https://dowse.dev/pricing).
|
|
35
|
+
|
|
36
|
+
`map` and `crawl` respect the start site's robots.txt. The `stopped` field of their output says why a walk ended early (`limit` or `deadline`).
|
|
24
37
|
|
|
25
38
|
After `connect` they need no key, because they use the one in your agent's config. Otherwise pass `--api-key` or set `DOWSE_API_KEY`.
|
|
26
39
|
|
|
@@ -28,6 +41,23 @@ Output is JSON on stdout, so agents can read it. Add `--pretty` for a version me
|
|
|
28
41
|
|
|
29
42
|
Each repair has `unattended_safe`. It's `true` when the repair only changes the Dowse entry or just waits, and `false` when it changes something else or needs a person.
|
|
30
43
|
|
|
44
|
+
## Apps
|
|
45
|
+
|
|
46
|
+
`apps <store> <action>` reads one page of app store data. `<store>` is `apple` or `google`.
|
|
47
|
+
|
|
48
|
+
- `app`, `reviews`, `similar`, `ratings`, `privacy`, `versions` take an app id: on the App Store the number (`324684580`) or the bundle id (`com.spotify.client`), on Google Play the package name (`com.spotify.music`). `developer` takes a developer id.
|
|
49
|
+
- `search` and `suggest` take a query. `list` (a top chart) takes neither.
|
|
50
|
+
- `ratings`, `privacy` and `versions` are App Store only.
|
|
51
|
+
- Options: `--country <code>` (default `us`), `--language <code>`, `--limit <n>` (search, list, developer, Google Play reviews), `--sort <s>` (reviews), `--offset <n>` (App Store reviews), `--cursor <c>` (Google Play reviews), `--collection <c>` and `--category <c>` (list).
|
|
52
|
+
- `data` holds each store's own fields, which differ between the stores. For the next page of reviews, pass `next_offset` as `--offset` (App Store) or `next_cursor` as `--cursor` with the same `--sort` (Google Play). No `next_offset` or `next_cursor` means the last page.
|
|
53
|
+
|
|
54
|
+
```sh
|
|
55
|
+
npx -y @dowse-dev/cli@latest apps apple app 324684580
|
|
56
|
+
npx -y @dowse-dev/cli@latest apps google search "podcast" --limit 10
|
|
57
|
+
npx -y @dowse-dev/cli@latest apps apple reviews 324684580 --sort helpful --offset 20
|
|
58
|
+
npx -y @dowse-dev/cli@latest apps google list --collection top_free --category GAME
|
|
59
|
+
```
|
|
60
|
+
|
|
31
61
|
## What it does to your configs
|
|
32
62
|
|
|
33
63
|
- Only the `dowse` entry changes. Other servers, settings, comments and formatting stay as they were.
|
|
@@ -43,3 +73,7 @@ Each repair has `unattended_safe`. It's `true` when the repair only changes the
|
|
|
43
73
|
The skill goes in `~/.agents/skills/dowse`, which Codex, Cursor, VS Code and Gemini CLI read, in `~/.claude/skills/dowse` for Claude Code, and in `~/.hermes/skills/dowse` for Hermes. It holds no key.
|
|
44
74
|
|
|
45
75
|
If you edit the skill, your copy is kept, and `disconnect` leaves it too. Anything else already named `dowse` there is left alone and reported.
|
|
76
|
+
|
|
77
|
+
## License
|
|
78
|
+
|
|
79
|
+
MIT. This covers the installer only; the Dowse service has its own [terms](https://dowse.dev/terms).
|