adanos-cli 1.32.0__tar.gz → 1.34.0__tar.gz
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.
- {adanos_cli-1.32.0 → adanos_cli-1.34.0}/CHANGELOG.md +38 -0
- {adanos_cli-1.32.0 → adanos_cli-1.34.0}/PKG-INFO +70 -14
- {adanos_cli-1.32.0 → adanos_cli-1.34.0}/README.md +66 -10
- {adanos_cli-1.32.0 → adanos_cli-1.34.0}/pyproject.toml +2 -2
- {adanos_cli-1.32.0 → adanos_cli-1.34.0}/scripts/cli_audit.py +37 -8
- {adanos_cli-1.32.0 → adanos_cli-1.34.0}/scripts/generate_homebrew_formula.py +1 -1
- {adanos_cli-1.32.0 → adanos_cli-1.34.0}/src/adanos_cli/__init__.py +1 -1
- adanos_cli-1.34.0/src/adanos_cli/activity_log.py +190 -0
- adanos_cli-1.34.0/src/adanos_cli/assets/__init__.py +1 -0
- adanos_cli-1.34.0/src/adanos_cli/assets/adanos-mark-color.svg +16 -0
- {adanos_cli-1.32.0 → adanos_cli-1.34.0}/src/adanos_cli/config.py +1 -1
- {adanos_cli-1.32.0 → adanos_cli-1.34.0}/src/adanos_cli/endpoints.py +6 -1
- {adanos_cli-1.32.0 → adanos_cli-1.34.0}/src/adanos_cli/main.py +626 -122
- {adanos_cli-1.32.0 → adanos_cli-1.34.0}/src/adanos_cli/nlp.py +22 -0
- {adanos_cli-1.32.0 → adanos_cli-1.34.0}/src/adanos_cli/summaries.py +31 -14
- adanos_cli-1.34.0/tests/conftest.py +27 -0
- {adanos_cli-1.32.0 → adanos_cli-1.34.0}/tests/test_account.py +10 -10
- {adanos_cli-1.32.0 → adanos_cli-1.34.0}/tests/test_activity_log.py +111 -0
- {adanos_cli-1.32.0 → adanos_cli-1.34.0}/tests/test_agent_contract.py +156 -0
- adanos_cli-1.34.0/tests/test_api_154.py +71 -0
- {adanos_cli-1.32.0 → adanos_cli-1.34.0}/tests/test_auth.py +20 -4
- adanos_cli-1.34.0/tests/test_cli_audit.py +12 -0
- {adanos_cli-1.32.0 → adanos_cli-1.34.0}/tests/test_diagnostics.py +8 -1
- {adanos_cli-1.32.0 → adanos_cli-1.34.0}/tests/test_distribution.py +1 -1
- {adanos_cli-1.32.0 → adanos_cli-1.34.0}/tests/test_endpoint_coverage.py +1 -1
- {adanos_cli-1.32.0 → adanos_cli-1.34.0}/tests/test_onboarding.py +116 -10
- {adanos_cli-1.32.0 → adanos_cli-1.34.0}/tests/test_power_features.py +256 -1
- {adanos_cli-1.32.0 → adanos_cli-1.34.0}/tests/test_shell.py +136 -3
- {adanos_cli-1.32.0 → adanos_cli-1.34.0}/tests/test_watchlists.py +2 -2
- adanos_cli-1.32.0/src/adanos_cli/activity_log.py +0 -103
- adanos_cli-1.32.0/tests/conftest.py +0 -12
- {adanos_cli-1.32.0 → adanos_cli-1.34.0}/.github/workflows/ci.yml +0 -0
- {adanos_cli-1.32.0 → adanos_cli-1.34.0}/.github/workflows/cli-binaries.yml +0 -0
- {adanos_cli-1.32.0 → adanos_cli-1.34.0}/.github/workflows/publish-pypi.yml +0 -0
- {adanos_cli-1.32.0 → adanos_cli-1.34.0}/.gitignore +0 -0
- {adanos_cli-1.32.0 → adanos_cli-1.34.0}/LICENSE +0 -0
- {adanos_cli-1.32.0 → adanos_cli-1.34.0}/install.ps1 +0 -0
- {adanos_cli-1.32.0 → adanos_cli-1.34.0}/install.sh +0 -0
- {adanos_cli-1.32.0 → adanos_cli-1.34.0}/scripts/build_cli_binary.py +0 -0
- {adanos_cli-1.32.0 → adanos_cli-1.34.0}/scripts/pyinstaller_entrypoint.py +0 -0
- {adanos_cli-1.32.0 → adanos_cli-1.34.0}/src/adanos_cli/__main__.py +0 -0
- {adanos_cli-1.32.0 → adanos_cli-1.34.0}/src/adanos_cli/commands/__init__.py +0 -0
- {adanos_cli-1.32.0 → adanos_cli-1.34.0}/src/adanos_cli/commands/auth.py +0 -0
- {adanos_cli-1.32.0 → adanos_cli-1.34.0}/src/adanos_cli/commands/config.py +0 -0
- {adanos_cli-1.32.0 → adanos_cli-1.34.0}/src/adanos_cli/commands/extensions.py +0 -0
- {adanos_cli-1.32.0 → adanos_cli-1.34.0}/src/adanos_cli/commands/secrets.py +0 -0
- {adanos_cli-1.32.0 → adanos_cli-1.34.0}/src/adanos_cli/shell_history.py +0 -0
- {adanos_cli-1.32.0 → adanos_cli-1.34.0}/src/adanos_cli/tty.py +0 -0
- {adanos_cli-1.32.0 → adanos_cli-1.34.0}/src/adanos_cli/update_notifier.py +0 -0
- {adanos_cli-1.32.0 → adanos_cli-1.34.0}/src/adanos_cli/utils.py +0 -0
- {adanos_cli-1.32.0 → adanos_cli-1.34.0}/src/adanos_cli/watchlists.py +0 -0
- {adanos_cli-1.32.0 → adanos_cli-1.34.0}/tests/__init__.py +0 -0
- {adanos_cli-1.32.0 → adanos_cli-1.34.0}/tests/test_config_runtime.py +0 -0
- {adanos_cli-1.32.0 → adanos_cli-1.34.0}/tests/test_extensions.py +0 -0
- {adanos_cli-1.32.0 → adanos_cli-1.34.0}/tests/test_logs.py +0 -0
- {adanos_cli-1.32.0 → adanos_cli-1.34.0}/tests/test_tty.py +0 -0
- {adanos_cli-1.32.0 → adanos_cli-1.34.0}/tests/test_update_notifier.py +0 -0
|
@@ -5,6 +5,44 @@ All notable changes to `adanos-cli` will be documented in this file.
|
|
|
5
5
|
Format: [Keep a Changelog](https://keepachangelog.com/en/1.1.0/)
|
|
6
6
|
Versioning: [Semantic Versioning](https://semver.org/spec/v2.0.0.html)
|
|
7
7
|
|
|
8
|
+
## [Unreleased]
|
|
9
|
+
|
|
10
|
+
## [1.34.0] - 2026-10-13
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
- Add `--target` to `endpoint call sentiment.analyze` for sentiment about a company name or ticker.
|
|
14
|
+
|
|
15
|
+
### Changed
|
|
16
|
+
- Support API 1.54.0 and use `api.adanos.com` by default. Explicit saved, environment, and flag base URLs keep their precedence.
|
|
17
|
+
- Use `adanos.com` for website links, account recovery, package metadata, Homebrew, and the support email address.
|
|
18
|
+
|
|
19
|
+
## [1.33.0] - 2026-08-09
|
|
20
|
+
|
|
21
|
+
### Added
|
|
22
|
+
- Added a global, order-independent `--json` flag and structured JSON parser errors.
|
|
23
|
+
- Added `--token-stdin` for secure one-time onboarding token input.
|
|
24
|
+
- Added confirmation gates and `--force` for local profile, config, and watchlist deletion.
|
|
25
|
+
- Added direct multi-asset comparisons such as `adanos compare NVDA TSLA AAPL`; natural-language comparisons remain available through `adanos ask`.
|
|
26
|
+
- Added a fixed shell prompt with monthly API requests remaining and an explicit `/quota` refresh command.
|
|
27
|
+
|
|
28
|
+
### Changed
|
|
29
|
+
- Human market output now labels source activity precisely as mentions, trades, or tracked activity instead of the ambiguous `volume` label.
|
|
30
|
+
- The interactive shell now uses a clean wordmark by default and renders the bundled official Adanos mark in compatible iTerm2 sessions.
|
|
31
|
+
- Trader commands now lead with aggregate market behavior: `trending` and `search` no longer require a platform, `stats` defaults to all platforms, and `--platform` remains an optional source-level override.
|
|
32
|
+
- `scan`, watchlist symbols, briefing focus lists, and `compare` now accept natural space-separated asset lists while retaining the legacy flag/comma forms.
|
|
33
|
+
- Search summaries now show representative matching symbols and names instead of counts alone.
|
|
34
|
+
- Consensus output now describes its confidence score as data confidence.
|
|
35
|
+
- Explicit uppercase tickers in natural-language comparisons bypass unnecessary search calls before the four source comparisons.
|
|
36
|
+
- `--version` remains a conventional one-line response unless JSON is explicitly requested.
|
|
37
|
+
- Help and authentication examples now lead with hidden-prompt, stdin, or file-based secret input.
|
|
38
|
+
- The repository CLI audit now tests the requested binary and covers global JSON placement, structured parser errors, nested typo hints, and conventional version output.
|
|
39
|
+
- Text-mode token redemption now requires `--save` before consuming the one-time token; unsaved machine workflows must explicitly request JSON.
|
|
40
|
+
|
|
41
|
+
### Fixed
|
|
42
|
+
- Prevented onboarding identity, delivery tokens, natural-language queries, and help invocations from leaking into the local activity log.
|
|
43
|
+
- Converted onboarding transport failures into concise structured errors instead of tracebacks.
|
|
44
|
+
- Fixed nested typo suggestions so `adanos auth curent` suggests `adanos auth current`.
|
|
45
|
+
|
|
8
46
|
## [1.32.0] - 2026-08-09
|
|
9
47
|
|
|
10
48
|
### Changed
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
2
|
Name: adanos-cli
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.34.0
|
|
4
4
|
Summary: CLI for the Adanos Market Sentiment API
|
|
5
|
-
Project-URL: Homepage, https://adanos.
|
|
6
|
-
Project-URL: API_Docs, https://api.adanos.
|
|
5
|
+
Project-URL: Homepage, https://adanos.com
|
|
6
|
+
Project-URL: API_Docs, https://api.adanos.com/docs
|
|
7
7
|
Project-URL: Documentation, https://github.com/adanos-software/adanos-cli#readme
|
|
8
8
|
Project-URL: Repository, https://github.com/adanos-software/adanos-cli
|
|
9
9
|
Project-URL: Issues, https://github.com/adanos-software/adanos-cli/issues
|
|
@@ -28,14 +28,15 @@ Description-Content-Type: text/markdown
|
|
|
28
28
|
|
|
29
29
|
[](https://pypi.org/project/adanos-cli/)
|
|
30
30
|
|
|
31
|
-
`adanos-cli` is the command-line client for the [Adanos Market Sentiment API](https://api.adanos.
|
|
31
|
+
`adanos-cli` is the command-line client for the [Adanos Market Sentiment API](https://api.adanos.com/docs).
|
|
32
32
|
|
|
33
33
|
It is built for three use cases:
|
|
34
34
|
- traders who want fast stock and crypto sentiment reports
|
|
35
35
|
- analysts who want repeatable CLI workflows
|
|
36
36
|
- agents and automation that need stable JSON output
|
|
37
37
|
|
|
38
|
-
The CLI is versioned independently from the API backend. It
|
|
38
|
+
The CLI is versioned independently from the API backend. It supports API 1.54.0 at `https://api.adanos.com/docs` and uses the published Python SDK under the hood.
|
|
39
|
+
The default API host is `https://api.adanos.com`. Explicit `.org` or custom base URLs in saved settings, `ADANOS_BASE_URL`, or `--base-url` still take precedence.
|
|
39
40
|
|
|
40
41
|
## Install
|
|
41
42
|
|
|
@@ -89,7 +90,7 @@ python3 -m pip install -e ".[dev]"
|
|
|
89
90
|
If you already have an API key:
|
|
90
91
|
|
|
91
92
|
```bash
|
|
92
|
-
adanos login
|
|
93
|
+
adanos login # paste the key at the hidden prompt
|
|
93
94
|
adanos whoami
|
|
94
95
|
adanos doctor
|
|
95
96
|
```
|
|
@@ -97,9 +98,12 @@ adanos doctor
|
|
|
97
98
|
First market checks:
|
|
98
99
|
|
|
99
100
|
```bash
|
|
101
|
+
adanos stock TSLA
|
|
102
|
+
adanos compare NVDA TSLA AAPL
|
|
103
|
+
adanos trending stocks --limit 5
|
|
100
104
|
adanos consensus TSLA
|
|
101
105
|
adanos explain TSLA --profile investor
|
|
102
|
-
adanos scan
|
|
106
|
+
adanos scan stocks --style daytrader --top 10
|
|
103
107
|
```
|
|
104
108
|
|
|
105
109
|
Crypto:
|
|
@@ -123,6 +127,10 @@ Explicit interactive shell:
|
|
|
123
127
|
adanos shell
|
|
124
128
|
```
|
|
125
129
|
|
|
130
|
+
The shell prompt shows the latest monthly API request balance. Run `/quota` to
|
|
131
|
+
refresh it on demand; normal commands do not spend an extra request on quota
|
|
132
|
+
lookups.
|
|
133
|
+
|
|
126
134
|
One-shot command mode:
|
|
127
135
|
|
|
128
136
|
```bash
|
|
@@ -134,8 +142,7 @@ adanos stock NVDA
|
|
|
134
142
|
Persist a key locally:
|
|
135
143
|
|
|
136
144
|
```bash
|
|
137
|
-
adanos login
|
|
138
|
-
printf '%s\n' "$ADANOS_API_KEY" | adanos login --api-key-stdin
|
|
145
|
+
adanos login # interactive hidden prompt
|
|
139
146
|
adanos login --api-key-file ~/.config/adanos-cli/key.txt
|
|
140
147
|
```
|
|
141
148
|
|
|
@@ -150,14 +157,14 @@ Start a new signup from the CLI:
|
|
|
150
157
|
```bash
|
|
151
158
|
adanos onboard register --name "Jane Doe" --email "jane@example.com" --purpose "Trading research"
|
|
152
159
|
# then redeem the one-time token from the verification email
|
|
153
|
-
adanos onboard redeem --
|
|
160
|
+
adanos onboard redeem --save # paste the one-time code at the hidden prompt
|
|
154
161
|
```
|
|
155
162
|
|
|
156
163
|
Use profiles:
|
|
157
164
|
|
|
158
165
|
```bash
|
|
159
|
-
adanos auth login --
|
|
160
|
-
adanos auth login --
|
|
166
|
+
adanos auth login --profile prod
|
|
167
|
+
adanos auth login --profile staging
|
|
161
168
|
adanos auth switch prod
|
|
162
169
|
adanos auth current --json
|
|
163
170
|
```
|
|
@@ -189,6 +196,34 @@ Cross-platform consensus:
|
|
|
189
196
|
adanos consensus TSLA
|
|
190
197
|
```
|
|
191
198
|
|
|
199
|
+
Compare stocks across News, Reddit, X/Twitter, and Polymarket:
|
|
200
|
+
|
|
201
|
+
```bash
|
|
202
|
+
adanos compare NVDA TSLA AAPL
|
|
203
|
+
```
|
|
204
|
+
|
|
205
|
+
Common crypto symbols are detected automatically:
|
|
206
|
+
|
|
207
|
+
```bash
|
|
208
|
+
adanos compare BTC ETH
|
|
209
|
+
```
|
|
210
|
+
|
|
211
|
+
Search and trending use all relevant sources by default. Add `--platform` only when you want one source:
|
|
212
|
+
|
|
213
|
+
```bash
|
|
214
|
+
adanos search Tesla
|
|
215
|
+
adanos trending stocks --limit 5
|
|
216
|
+
adanos trending crypto --limit 10
|
|
217
|
+
adanos search Tesla --platform news-stocks
|
|
218
|
+
```
|
|
219
|
+
|
|
220
|
+
Sentiment screener:
|
|
221
|
+
|
|
222
|
+
```bash
|
|
223
|
+
adanos scan stocks --style daytrader --top 10
|
|
224
|
+
adanos scan crypto --min-buzz 60 --min-volume 50
|
|
225
|
+
```
|
|
226
|
+
|
|
192
227
|
Narrative explanation:
|
|
193
228
|
|
|
194
229
|
```bash
|
|
@@ -198,11 +233,19 @@ adanos explain TSLA --profile investor
|
|
|
198
233
|
Watchlists:
|
|
199
234
|
|
|
200
235
|
```bash
|
|
201
|
-
adanos watchlist add core --asset stocks --symbols TSLA
|
|
236
|
+
adanos watchlist add core --asset stocks --symbols TSLA NVDA AAPL
|
|
202
237
|
adanos watchlist report core --asset stocks
|
|
203
238
|
adanos watch core --kind watchlist --asset stocks --refresh 60 --iterations 1
|
|
204
239
|
```
|
|
205
240
|
|
|
241
|
+
Destructive local operations prompt in an interactive terminal and require `--force` in scripts or JSON mode:
|
|
242
|
+
|
|
243
|
+
```bash
|
|
244
|
+
adanos auth logout --profile staging --force
|
|
245
|
+
adanos watchlist delete core --force
|
|
246
|
+
adanos config clear --force
|
|
247
|
+
```
|
|
248
|
+
|
|
206
249
|
Raw endpoint access:
|
|
207
250
|
|
|
208
251
|
```bash
|
|
@@ -215,6 +258,7 @@ adanos endpoint call reddit-stocks.market-sentiment --from 2026-05-01 --to 2026-
|
|
|
215
258
|
adanos endpoint call reddit-stocks.stock.mentions --ticker TSLA --from 2026-05-01 --to 2026-05-07 --limit 10 --offset 10 --include-inherited
|
|
216
259
|
adanos endpoint call x-stocks.stock.explain --ticker TSLA
|
|
217
260
|
adanos endpoint call sentiment.analyze --text "TSLA looks like a short squeeze setup"
|
|
261
|
+
adanos endpoint call sentiment.analyze --text "Apple beats estimates while Tesla falls" --target Apple
|
|
218
262
|
```
|
|
219
263
|
|
|
220
264
|
Polymarket endpoint output includes both `market_count` for selected-window breadth and `current_market_count` for live-only active-market breadth.
|
|
@@ -281,6 +325,18 @@ The repo also generates a Homebrew formula artifact for each tagged binary relea
|
|
|
281
325
|
|
|
282
326
|
PyPI publishing also happens from this repo, not from the API monorepo.
|
|
283
327
|
|
|
328
|
+
## Uninstall
|
|
329
|
+
|
|
330
|
+
Use the matching installer:
|
|
331
|
+
|
|
332
|
+
```bash
|
|
333
|
+
pipx uninstall adanos-cli
|
|
334
|
+
brew uninstall adanos-cli
|
|
335
|
+
python3 -m pip uninstall adanos-cli
|
|
336
|
+
```
|
|
337
|
+
|
|
338
|
+
For the standalone installer, remove `~/.local/bin/adanos`. Local profiles and watchlists remain under `${XDG_CONFIG_HOME:-~/.config}/adanos-cli` until you explicitly remove them.
|
|
339
|
+
|
|
284
340
|
## Development
|
|
285
341
|
|
|
286
342
|
Install the repo in editable mode:
|
|
@@ -2,14 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
[](https://pypi.org/project/adanos-cli/)
|
|
4
4
|
|
|
5
|
-
`adanos-cli` is the command-line client for the [Adanos Market Sentiment API](https://api.adanos.
|
|
5
|
+
`adanos-cli` is the command-line client for the [Adanos Market Sentiment API](https://api.adanos.com/docs).
|
|
6
6
|
|
|
7
7
|
It is built for three use cases:
|
|
8
8
|
- traders who want fast stock and crypto sentiment reports
|
|
9
9
|
- analysts who want repeatable CLI workflows
|
|
10
10
|
- agents and automation that need stable JSON output
|
|
11
11
|
|
|
12
|
-
The CLI is versioned independently from the API backend. It
|
|
12
|
+
The CLI is versioned independently from the API backend. It supports API 1.54.0 at `https://api.adanos.com/docs` and uses the published Python SDK under the hood.
|
|
13
|
+
The default API host is `https://api.adanos.com`. Explicit `.org` or custom base URLs in saved settings, `ADANOS_BASE_URL`, or `--base-url` still take precedence.
|
|
13
14
|
|
|
14
15
|
## Install
|
|
15
16
|
|
|
@@ -63,7 +64,7 @@ python3 -m pip install -e ".[dev]"
|
|
|
63
64
|
If you already have an API key:
|
|
64
65
|
|
|
65
66
|
```bash
|
|
66
|
-
adanos login
|
|
67
|
+
adanos login # paste the key at the hidden prompt
|
|
67
68
|
adanos whoami
|
|
68
69
|
adanos doctor
|
|
69
70
|
```
|
|
@@ -71,9 +72,12 @@ adanos doctor
|
|
|
71
72
|
First market checks:
|
|
72
73
|
|
|
73
74
|
```bash
|
|
75
|
+
adanos stock TSLA
|
|
76
|
+
adanos compare NVDA TSLA AAPL
|
|
77
|
+
adanos trending stocks --limit 5
|
|
74
78
|
adanos consensus TSLA
|
|
75
79
|
adanos explain TSLA --profile investor
|
|
76
|
-
adanos scan
|
|
80
|
+
adanos scan stocks --style daytrader --top 10
|
|
77
81
|
```
|
|
78
82
|
|
|
79
83
|
Crypto:
|
|
@@ -97,6 +101,10 @@ Explicit interactive shell:
|
|
|
97
101
|
adanos shell
|
|
98
102
|
```
|
|
99
103
|
|
|
104
|
+
The shell prompt shows the latest monthly API request balance. Run `/quota` to
|
|
105
|
+
refresh it on demand; normal commands do not spend an extra request on quota
|
|
106
|
+
lookups.
|
|
107
|
+
|
|
100
108
|
One-shot command mode:
|
|
101
109
|
|
|
102
110
|
```bash
|
|
@@ -108,8 +116,7 @@ adanos stock NVDA
|
|
|
108
116
|
Persist a key locally:
|
|
109
117
|
|
|
110
118
|
```bash
|
|
111
|
-
adanos login
|
|
112
|
-
printf '%s\n' "$ADANOS_API_KEY" | adanos login --api-key-stdin
|
|
119
|
+
adanos login # interactive hidden prompt
|
|
113
120
|
adanos login --api-key-file ~/.config/adanos-cli/key.txt
|
|
114
121
|
```
|
|
115
122
|
|
|
@@ -124,14 +131,14 @@ Start a new signup from the CLI:
|
|
|
124
131
|
```bash
|
|
125
132
|
adanos onboard register --name "Jane Doe" --email "jane@example.com" --purpose "Trading research"
|
|
126
133
|
# then redeem the one-time token from the verification email
|
|
127
|
-
adanos onboard redeem --
|
|
134
|
+
adanos onboard redeem --save # paste the one-time code at the hidden prompt
|
|
128
135
|
```
|
|
129
136
|
|
|
130
137
|
Use profiles:
|
|
131
138
|
|
|
132
139
|
```bash
|
|
133
|
-
adanos auth login --
|
|
134
|
-
adanos auth login --
|
|
140
|
+
adanos auth login --profile prod
|
|
141
|
+
adanos auth login --profile staging
|
|
135
142
|
adanos auth switch prod
|
|
136
143
|
adanos auth current --json
|
|
137
144
|
```
|
|
@@ -163,6 +170,34 @@ Cross-platform consensus:
|
|
|
163
170
|
adanos consensus TSLA
|
|
164
171
|
```
|
|
165
172
|
|
|
173
|
+
Compare stocks across News, Reddit, X/Twitter, and Polymarket:
|
|
174
|
+
|
|
175
|
+
```bash
|
|
176
|
+
adanos compare NVDA TSLA AAPL
|
|
177
|
+
```
|
|
178
|
+
|
|
179
|
+
Common crypto symbols are detected automatically:
|
|
180
|
+
|
|
181
|
+
```bash
|
|
182
|
+
adanos compare BTC ETH
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
Search and trending use all relevant sources by default. Add `--platform` only when you want one source:
|
|
186
|
+
|
|
187
|
+
```bash
|
|
188
|
+
adanos search Tesla
|
|
189
|
+
adanos trending stocks --limit 5
|
|
190
|
+
adanos trending crypto --limit 10
|
|
191
|
+
adanos search Tesla --platform news-stocks
|
|
192
|
+
```
|
|
193
|
+
|
|
194
|
+
Sentiment screener:
|
|
195
|
+
|
|
196
|
+
```bash
|
|
197
|
+
adanos scan stocks --style daytrader --top 10
|
|
198
|
+
adanos scan crypto --min-buzz 60 --min-volume 50
|
|
199
|
+
```
|
|
200
|
+
|
|
166
201
|
Narrative explanation:
|
|
167
202
|
|
|
168
203
|
```bash
|
|
@@ -172,11 +207,19 @@ adanos explain TSLA --profile investor
|
|
|
172
207
|
Watchlists:
|
|
173
208
|
|
|
174
209
|
```bash
|
|
175
|
-
adanos watchlist add core --asset stocks --symbols TSLA
|
|
210
|
+
adanos watchlist add core --asset stocks --symbols TSLA NVDA AAPL
|
|
176
211
|
adanos watchlist report core --asset stocks
|
|
177
212
|
adanos watch core --kind watchlist --asset stocks --refresh 60 --iterations 1
|
|
178
213
|
```
|
|
179
214
|
|
|
215
|
+
Destructive local operations prompt in an interactive terminal and require `--force` in scripts or JSON mode:
|
|
216
|
+
|
|
217
|
+
```bash
|
|
218
|
+
adanos auth logout --profile staging --force
|
|
219
|
+
adanos watchlist delete core --force
|
|
220
|
+
adanos config clear --force
|
|
221
|
+
```
|
|
222
|
+
|
|
180
223
|
Raw endpoint access:
|
|
181
224
|
|
|
182
225
|
```bash
|
|
@@ -189,6 +232,7 @@ adanos endpoint call reddit-stocks.market-sentiment --from 2026-05-01 --to 2026-
|
|
|
189
232
|
adanos endpoint call reddit-stocks.stock.mentions --ticker TSLA --from 2026-05-01 --to 2026-05-07 --limit 10 --offset 10 --include-inherited
|
|
190
233
|
adanos endpoint call x-stocks.stock.explain --ticker TSLA
|
|
191
234
|
adanos endpoint call sentiment.analyze --text "TSLA looks like a short squeeze setup"
|
|
235
|
+
adanos endpoint call sentiment.analyze --text "Apple beats estimates while Tesla falls" --target Apple
|
|
192
236
|
```
|
|
193
237
|
|
|
194
238
|
Polymarket endpoint output includes both `market_count` for selected-window breadth and `current_market_count` for live-only active-market breadth.
|
|
@@ -255,6 +299,18 @@ The repo also generates a Homebrew formula artifact for each tagged binary relea
|
|
|
255
299
|
|
|
256
300
|
PyPI publishing also happens from this repo, not from the API monorepo.
|
|
257
301
|
|
|
302
|
+
## Uninstall
|
|
303
|
+
|
|
304
|
+
Use the matching installer:
|
|
305
|
+
|
|
306
|
+
```bash
|
|
307
|
+
pipx uninstall adanos-cli
|
|
308
|
+
brew uninstall adanos-cli
|
|
309
|
+
python3 -m pip uninstall adanos-cli
|
|
310
|
+
```
|
|
311
|
+
|
|
312
|
+
For the standalone installer, remove `~/.local/bin/adanos`. Local profiles and watchlists remain under `${XDG_CONFIG_HOME:-~/.config}/adanos-cli` until you explicitly remove them.
|
|
313
|
+
|
|
258
314
|
## Development
|
|
259
315
|
|
|
260
316
|
Install the repo in editable mode:
|
|
@@ -25,8 +25,8 @@ dev = [
|
|
|
25
25
|
]
|
|
26
26
|
|
|
27
27
|
[project.urls]
|
|
28
|
-
Homepage = "https://adanos.
|
|
29
|
-
API_Docs = "https://api.adanos.
|
|
28
|
+
Homepage = "https://adanos.com"
|
|
29
|
+
API_Docs = "https://api.adanos.com/docs"
|
|
30
30
|
Documentation = "https://github.com/adanos-software/adanos-cli#readme"
|
|
31
31
|
Repository = "https://github.com/adanos-software/adanos-cli"
|
|
32
32
|
Issues = "https://github.com/adanos-software/adanos-cli/issues"
|
|
@@ -8,7 +8,12 @@ import subprocess
|
|
|
8
8
|
import sys
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
def _command() -> list[str]:
|
|
11
|
+
def _command(argv: list[str] | None = None) -> list[str]:
|
|
12
|
+
requested = list(sys.argv[1:] if argv is None else argv)
|
|
13
|
+
if requested[:1] == ["--"]:
|
|
14
|
+
requested = requested[1:]
|
|
15
|
+
if requested:
|
|
16
|
+
return requested
|
|
12
17
|
adanos = shutil.which("adanos")
|
|
13
18
|
if adanos:
|
|
14
19
|
return [adanos]
|
|
@@ -25,13 +30,18 @@ def _assert_ok(name: str, result: subprocess.CompletedProcess[str]) -> None:
|
|
|
25
30
|
|
|
26
31
|
|
|
27
32
|
def main() -> int:
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
for name, args in (
|
|
34
|
+
("capabilities --output json", ("--output", "json", "capabilities")),
|
|
35
|
+
("capabilities --json prefix", ("--json", "capabilities")),
|
|
36
|
+
("capabilities --json suffix", ("capabilities", "--json")),
|
|
37
|
+
):
|
|
38
|
+
capabilities = _run(*args)
|
|
39
|
+
_assert_ok(name, capabilities)
|
|
40
|
+
payload = json.loads(capabilities.stdout)
|
|
41
|
+
assert payload["kind"] == "capabilities"
|
|
42
|
+
assert payload["command"] == "capabilities"
|
|
43
|
+
assert "auto" in payload["output_modes"]
|
|
44
|
+
assert "--api-key-stdin" in payload["auth"]["secret_input"]
|
|
35
45
|
|
|
36
46
|
text_capabilities = _run("--output", "text", "capabilities")
|
|
37
47
|
_assert_ok("capabilities text", text_capabilities)
|
|
@@ -48,9 +58,28 @@ def main() -> int:
|
|
|
48
58
|
_assert_ok("trending help", help_result)
|
|
49
59
|
assert "Examples:" in help_result.stdout
|
|
50
60
|
|
|
61
|
+
root_help = _run("--help")
|
|
62
|
+
_assert_ok("root help", root_help)
|
|
63
|
+
assert "--json" in root_help.stdout
|
|
64
|
+
|
|
65
|
+
version = _run("--version")
|
|
66
|
+
_assert_ok("version", version)
|
|
67
|
+
assert len(version.stdout.strip().splitlines()) == 1
|
|
68
|
+
assert version.stdout.startswith("adanos-cli ")
|
|
69
|
+
|
|
51
70
|
unknown = _run("wat")
|
|
52
71
|
assert unknown.returncode == 2
|
|
53
72
|
assert "hint:" in unknown.stderr
|
|
73
|
+
|
|
74
|
+
unknown_json = _run("--json", "not-a-command")
|
|
75
|
+
assert unknown_json.returncode == 2
|
|
76
|
+
assert unknown_json.stdout == ""
|
|
77
|
+
error_payload = json.loads(unknown_json.stderr)
|
|
78
|
+
assert error_payload["error"]["code"] == "usage_error"
|
|
79
|
+
|
|
80
|
+
nested_typo = _run("auth", "curent")
|
|
81
|
+
assert nested_typo.returncode == 2
|
|
82
|
+
assert "adanos auth current --help" in nested_typo.stderr
|
|
54
83
|
return 0
|
|
55
84
|
|
|
56
85
|
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
"""Local CLI activity logging."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
import json
|
|
6
|
+
from datetime import datetime, timezone
|
|
7
|
+
from pathlib import Path
|
|
8
|
+
from typing import Any
|
|
9
|
+
|
|
10
|
+
from . import config as cli_config
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
def activity_log_path() -> Path:
|
|
14
|
+
return cli_config.support_file_path("activity.log")
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
def _utc_now() -> str:
|
|
18
|
+
return datetime.now(timezone.utc).replace(microsecond=0).isoformat().replace("+00:00", "Z")
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
def sanitize_argv(argv: list[str]) -> list[str]:
|
|
22
|
+
sensitive_value_flags = {
|
|
23
|
+
"--api-key",
|
|
24
|
+
"--api-key-file",
|
|
25
|
+
"--company-name",
|
|
26
|
+
"--email",
|
|
27
|
+
"--name",
|
|
28
|
+
"--output-path",
|
|
29
|
+
"--purpose",
|
|
30
|
+
"--recovery-url",
|
|
31
|
+
"--text",
|
|
32
|
+
"--token",
|
|
33
|
+
}
|
|
34
|
+
ask_value_flags = {"--base-url", "--days", "--from", "--output", "--to"}
|
|
35
|
+
ask_bare_flags = {"--json", "--no-color", "--no-input", "--plain", "--quiet"}
|
|
36
|
+
sanitized: list[str] = []
|
|
37
|
+
redact_next = False
|
|
38
|
+
copy_next_ask_value = False
|
|
39
|
+
in_ask_query = False
|
|
40
|
+
ask_options_ended = False
|
|
41
|
+
ask_query_redacted = False
|
|
42
|
+
redact_later_positional = False
|
|
43
|
+
idx = 0
|
|
44
|
+
while idx < len(argv):
|
|
45
|
+
arg = argv[idx]
|
|
46
|
+
if redact_next:
|
|
47
|
+
if arg.startswith("-"):
|
|
48
|
+
sanitized.append("<redacted>")
|
|
49
|
+
redact_next = False
|
|
50
|
+
redact_later_positional = True
|
|
51
|
+
idx += 1
|
|
52
|
+
continue
|
|
53
|
+
sanitized.append("<redacted>")
|
|
54
|
+
redact_next = False
|
|
55
|
+
idx += 1
|
|
56
|
+
continue
|
|
57
|
+
if redact_later_positional and not arg.startswith("-"):
|
|
58
|
+
sanitized.append("<redacted>")
|
|
59
|
+
idx += 1
|
|
60
|
+
continue
|
|
61
|
+
|
|
62
|
+
flag_name = arg.split("=", 1)[0]
|
|
63
|
+
sensitive_spelling = flag_name in sensitive_value_flags or (
|
|
64
|
+
flag_name.startswith("--")
|
|
65
|
+
and len(flag_name) >= 5
|
|
66
|
+
and any(flag.startswith(flag_name) for flag in sensitive_value_flags)
|
|
67
|
+
)
|
|
68
|
+
if sensitive_spelling and "=" not in arg:
|
|
69
|
+
if in_ask_query:
|
|
70
|
+
copy_next_ask_value = False
|
|
71
|
+
sanitized.append(arg)
|
|
72
|
+
redact_next = True
|
|
73
|
+
idx += 1
|
|
74
|
+
continue
|
|
75
|
+
if sensitive_spelling:
|
|
76
|
+
if in_ask_query:
|
|
77
|
+
copy_next_ask_value = False
|
|
78
|
+
sanitized.append(f"{flag_name}=<redacted>")
|
|
79
|
+
idx += 1
|
|
80
|
+
continue
|
|
81
|
+
|
|
82
|
+
if arg == "ask" and not in_ask_query:
|
|
83
|
+
in_ask_query = True
|
|
84
|
+
sanitized.append(arg)
|
|
85
|
+
idx += 1
|
|
86
|
+
continue
|
|
87
|
+
if in_ask_query:
|
|
88
|
+
if ask_options_ended:
|
|
89
|
+
if not ask_query_redacted:
|
|
90
|
+
sanitized.append("<redacted>")
|
|
91
|
+
ask_query_redacted = True
|
|
92
|
+
idx += 1
|
|
93
|
+
continue
|
|
94
|
+
if arg == "--":
|
|
95
|
+
ask_options_ended = True
|
|
96
|
+
if not ask_query_redacted:
|
|
97
|
+
sanitized.append("<redacted>")
|
|
98
|
+
ask_query_redacted = True
|
|
99
|
+
idx += 1
|
|
100
|
+
continue
|
|
101
|
+
if copy_next_ask_value:
|
|
102
|
+
sanitized.append(arg)
|
|
103
|
+
copy_next_ask_value = False
|
|
104
|
+
idx += 1
|
|
105
|
+
continue
|
|
106
|
+
if arg in ask_value_flags:
|
|
107
|
+
sanitized.append(arg)
|
|
108
|
+
copy_next_ask_value = True
|
|
109
|
+
idx += 1
|
|
110
|
+
continue
|
|
111
|
+
if arg in ask_bare_flags:
|
|
112
|
+
sanitized.append(arg)
|
|
113
|
+
idx += 1
|
|
114
|
+
continue
|
|
115
|
+
if any(arg.startswith(flag + "=") for flag in ask_value_flags):
|
|
116
|
+
sanitized.append(arg)
|
|
117
|
+
idx += 1
|
|
118
|
+
continue
|
|
119
|
+
if not ask_query_redacted:
|
|
120
|
+
sanitized.append("<redacted>")
|
|
121
|
+
ask_query_redacted = True
|
|
122
|
+
idx += 1
|
|
123
|
+
continue
|
|
124
|
+
|
|
125
|
+
sanitized.append(arg)
|
|
126
|
+
idx += 1
|
|
127
|
+
|
|
128
|
+
if redact_next:
|
|
129
|
+
sanitized.append("<redacted>")
|
|
130
|
+
return sanitized
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
def _command_name(argv: list[str]) -> str | None:
|
|
134
|
+
value_flags = {"--api-key", "--api-key-file", "--base-url", "--output"}
|
|
135
|
+
skip_next = False
|
|
136
|
+
for token in argv:
|
|
137
|
+
if skip_next:
|
|
138
|
+
skip_next = False
|
|
139
|
+
continue
|
|
140
|
+
if token in value_flags:
|
|
141
|
+
skip_next = True
|
|
142
|
+
continue
|
|
143
|
+
if any(token.startswith(prefix + "=") for prefix in value_flags):
|
|
144
|
+
continue
|
|
145
|
+
if token.startswith("-"):
|
|
146
|
+
continue
|
|
147
|
+
return token
|
|
148
|
+
return None
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
def append_activity(argv: list[str], *, source: str, exit_code: int, duration_ms: int) -> None:
|
|
152
|
+
path = activity_log_path()
|
|
153
|
+
cli_config.ensure_config_dir()
|
|
154
|
+
entry = {
|
|
155
|
+
"captured_at": _utc_now(),
|
|
156
|
+
"source": source,
|
|
157
|
+
"command": _command_name(argv),
|
|
158
|
+
"argv": sanitize_argv(argv),
|
|
159
|
+
"exit_code": exit_code,
|
|
160
|
+
"ok": exit_code == 0,
|
|
161
|
+
"duration_ms": max(0, int(duration_ms)),
|
|
162
|
+
}
|
|
163
|
+
with path.open("a", encoding="utf-8") as handle:
|
|
164
|
+
handle.write(json.dumps(entry, ensure_ascii=False, sort_keys=True) + "\n")
|
|
165
|
+
cli_config.apply_secure_permissions(path)
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
def read_activity(*, limit: int = 20, command: str | None = None, source: str | None = None) -> list[dict[str, Any]]:
|
|
169
|
+
path = activity_log_path()
|
|
170
|
+
if not path.exists():
|
|
171
|
+
return []
|
|
172
|
+
|
|
173
|
+
entries: list[dict[str, Any]] = []
|
|
174
|
+
for line in path.read_text(encoding="utf-8").splitlines():
|
|
175
|
+
if not line.strip():
|
|
176
|
+
continue
|
|
177
|
+
try:
|
|
178
|
+
payload = json.loads(line)
|
|
179
|
+
except json.JSONDecodeError:
|
|
180
|
+
continue
|
|
181
|
+
if not isinstance(payload, dict):
|
|
182
|
+
continue
|
|
183
|
+
if command and payload.get("command") != command:
|
|
184
|
+
continue
|
|
185
|
+
if source and payload.get("source") != source:
|
|
186
|
+
continue
|
|
187
|
+
entries.append(payload)
|
|
188
|
+
|
|
189
|
+
entries.reverse()
|
|
190
|
+
return entries[: max(1, limit)]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"""Bundled Adanos CLI brand assets."""
|