adanos-cli 1.31.0__tar.gz → 1.32.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.
Files changed (51) hide show
  1. {adanos_cli-1.31.0 → adanos_cli-1.32.0}/CHANGELOG.md +7 -0
  2. {adanos_cli-1.31.0 → adanos_cli-1.32.0}/PKG-INFO +2 -1
  3. {adanos_cli-1.31.0 → adanos_cli-1.32.0}/README.md +1 -0
  4. {adanos_cli-1.31.0 → adanos_cli-1.32.0}/src/adanos_cli/__init__.py +1 -1
  5. {adanos_cli-1.31.0 → adanos_cli-1.32.0}/src/adanos_cli/main.py +9 -1
  6. {adanos_cli-1.31.0 → adanos_cli-1.32.0}/tests/test_agent_contract.py +17 -0
  7. {adanos_cli-1.31.0 → adanos_cli-1.32.0}/.github/workflows/ci.yml +0 -0
  8. {adanos_cli-1.31.0 → adanos_cli-1.32.0}/.github/workflows/cli-binaries.yml +0 -0
  9. {adanos_cli-1.31.0 → adanos_cli-1.32.0}/.github/workflows/publish-pypi.yml +0 -0
  10. {adanos_cli-1.31.0 → adanos_cli-1.32.0}/.gitignore +0 -0
  11. {adanos_cli-1.31.0 → adanos_cli-1.32.0}/LICENSE +0 -0
  12. {adanos_cli-1.31.0 → adanos_cli-1.32.0}/install.ps1 +0 -0
  13. {adanos_cli-1.31.0 → adanos_cli-1.32.0}/install.sh +0 -0
  14. {adanos_cli-1.31.0 → adanos_cli-1.32.0}/pyproject.toml +0 -0
  15. {adanos_cli-1.31.0 → adanos_cli-1.32.0}/scripts/build_cli_binary.py +0 -0
  16. {adanos_cli-1.31.0 → adanos_cli-1.32.0}/scripts/cli_audit.py +0 -0
  17. {adanos_cli-1.31.0 → adanos_cli-1.32.0}/scripts/generate_homebrew_formula.py +0 -0
  18. {adanos_cli-1.31.0 → adanos_cli-1.32.0}/scripts/pyinstaller_entrypoint.py +0 -0
  19. {adanos_cli-1.31.0 → adanos_cli-1.32.0}/src/adanos_cli/__main__.py +0 -0
  20. {adanos_cli-1.31.0 → adanos_cli-1.32.0}/src/adanos_cli/activity_log.py +0 -0
  21. {adanos_cli-1.31.0 → adanos_cli-1.32.0}/src/adanos_cli/commands/__init__.py +0 -0
  22. {adanos_cli-1.31.0 → adanos_cli-1.32.0}/src/adanos_cli/commands/auth.py +0 -0
  23. {adanos_cli-1.31.0 → adanos_cli-1.32.0}/src/adanos_cli/commands/config.py +0 -0
  24. {adanos_cli-1.31.0 → adanos_cli-1.32.0}/src/adanos_cli/commands/extensions.py +0 -0
  25. {adanos_cli-1.31.0 → adanos_cli-1.32.0}/src/adanos_cli/commands/secrets.py +0 -0
  26. {adanos_cli-1.31.0 → adanos_cli-1.32.0}/src/adanos_cli/config.py +0 -0
  27. {adanos_cli-1.31.0 → adanos_cli-1.32.0}/src/adanos_cli/endpoints.py +0 -0
  28. {adanos_cli-1.31.0 → adanos_cli-1.32.0}/src/adanos_cli/nlp.py +0 -0
  29. {adanos_cli-1.31.0 → adanos_cli-1.32.0}/src/adanos_cli/shell_history.py +0 -0
  30. {adanos_cli-1.31.0 → adanos_cli-1.32.0}/src/adanos_cli/summaries.py +0 -0
  31. {adanos_cli-1.31.0 → adanos_cli-1.32.0}/src/adanos_cli/tty.py +0 -0
  32. {adanos_cli-1.31.0 → adanos_cli-1.32.0}/src/adanos_cli/update_notifier.py +0 -0
  33. {adanos_cli-1.31.0 → adanos_cli-1.32.0}/src/adanos_cli/utils.py +0 -0
  34. {adanos_cli-1.31.0 → adanos_cli-1.32.0}/src/adanos_cli/watchlists.py +0 -0
  35. {adanos_cli-1.31.0 → adanos_cli-1.32.0}/tests/__init__.py +0 -0
  36. {adanos_cli-1.31.0 → adanos_cli-1.32.0}/tests/conftest.py +0 -0
  37. {adanos_cli-1.31.0 → adanos_cli-1.32.0}/tests/test_account.py +0 -0
  38. {adanos_cli-1.31.0 → adanos_cli-1.32.0}/tests/test_activity_log.py +0 -0
  39. {adanos_cli-1.31.0 → adanos_cli-1.32.0}/tests/test_auth.py +0 -0
  40. {adanos_cli-1.31.0 → adanos_cli-1.32.0}/tests/test_config_runtime.py +0 -0
  41. {adanos_cli-1.31.0 → adanos_cli-1.32.0}/tests/test_diagnostics.py +0 -0
  42. {adanos_cli-1.31.0 → adanos_cli-1.32.0}/tests/test_distribution.py +0 -0
  43. {adanos_cli-1.31.0 → adanos_cli-1.32.0}/tests/test_endpoint_coverage.py +0 -0
  44. {adanos_cli-1.31.0 → adanos_cli-1.32.0}/tests/test_extensions.py +0 -0
  45. {adanos_cli-1.31.0 → adanos_cli-1.32.0}/tests/test_logs.py +0 -0
  46. {adanos_cli-1.31.0 → adanos_cli-1.32.0}/tests/test_onboarding.py +0 -0
  47. {adanos_cli-1.31.0 → adanos_cli-1.32.0}/tests/test_power_features.py +0 -0
  48. {adanos_cli-1.31.0 → adanos_cli-1.32.0}/tests/test_shell.py +0 -0
  49. {adanos_cli-1.31.0 → adanos_cli-1.32.0}/tests/test_tty.py +0 -0
  50. {adanos_cli-1.31.0 → adanos_cli-1.32.0}/tests/test_update_notifier.py +0 -0
  51. {adanos_cli-1.31.0 → adanos_cli-1.32.0}/tests/test_watchlists.py +0 -0
@@ -5,6 +5,13 @@ 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
+ ## [1.32.0] - 2026-08-09
9
+
10
+ ### Changed
11
+ - Synced CLI error and semantic guidance with Adanos Market Sentiment API `1.49.0`.
12
+ - Structured compare-limit errors now show `max_items`, and data-availability errors show `available_since`.
13
+ - Documented nullable Polymarket `unique_traders` and stable per-UTC-day `trend_history` semantics.
14
+
8
15
  ## [1.31.0] - 2026-07-03
9
16
 
10
17
  ### Added
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: adanos-cli
3
- Version: 1.31.0
3
+ Version: 1.32.0
4
4
  Summary: CLI for the Adanos Market Sentiment API
5
5
  Project-URL: Homepage, https://adanos.org
6
6
  Project-URL: API_Docs, https://api.adanos.org/docs
@@ -219,6 +219,7 @@ adanos endpoint call sentiment.analyze --text "TSLA looks like a short squeeze s
219
219
 
220
220
  Polymarket endpoint output includes both `market_count` for selected-window breadth and `current_market_count` for live-only active-market breadth.
221
221
  For API `1.45.1+`, Polymarket `top_mentions` in stock detail output are representative sentiment evidence, not a liquidity leaderboard. When market status is available, the CLI shows `market_status` alongside the evidence. For API `1.46.0+`, human summaries prefer `daily_trend[].bullish_pct` and `daily_trend[].bearish_pct` over deprecated positive/negative/neutral count fields.
222
+ Polymarket `unique_traders` can be `null` when retained wallet-level trades do not fully cover the requested window. Across platforms, each `trend_history` value represents its own UTC calendar day; the current partial day's value is not expected to equal the top-level period `buzz_score`.
222
223
 
223
224
  Period-capable commands and endpoint calls accept `--from YYYY-MM-DD` and `--to YYYY-MM-DD` as inclusive UTC date windows. `--days N` remains available for v1 compatibility, but is legacy; combining `--from`, `--to` and `--days` returns API validation error `422`. Search commands are the exception: they accept only `--limit` and use the API-managed recent summary window.
224
225
 
@@ -193,6 +193,7 @@ adanos endpoint call sentiment.analyze --text "TSLA looks like a short squeeze s
193
193
 
194
194
  Polymarket endpoint output includes both `market_count` for selected-window breadth and `current_market_count` for live-only active-market breadth.
195
195
  For API `1.45.1+`, Polymarket `top_mentions` in stock detail output are representative sentiment evidence, not a liquidity leaderboard. When market status is available, the CLI shows `market_status` alongside the evidence. For API `1.46.0+`, human summaries prefer `daily_trend[].bullish_pct` and `daily_trend[].bearish_pct` over deprecated positive/negative/neutral count fields.
196
+ Polymarket `unique_traders` can be `null` when retained wallet-level trades do not fully cover the requested window. Across platforms, each `trend_history` value represents its own UTC calendar day; the current partial day's value is not expected to equal the top-level period `buzz_score`.
196
197
 
197
198
  Period-capable commands and endpoint calls accept `--from YYYY-MM-DD` and `--to YYYY-MM-DD` as inclusive UTC date windows. `--days N` remains available for v1 compatibility, but is legacy; combining `--from`, `--to` and `--days` returns API validation error `422`. Search commands are the exception: they accept only `--limit` and use the API-managed recent summary window.
198
199
 
@@ -1,4 +1,4 @@
1
1
  """Adanos CLI package."""
2
2
 
3
3
  __all__ = ["__version__"]
4
- __version__ = "1.31.0"
4
+ __version__ = "1.32.0"
@@ -894,7 +894,15 @@ def _format_api_detail(detail: Any) -> str | None:
894
894
  if isinstance(detail, dict):
895
895
  message = detail.get("message") or detail.get("error") or detail.get("msg")
896
896
  if isinstance(message, str) and message.strip():
897
- return message.strip()
897
+ suffixes: list[str] = []
898
+ max_items = detail.get("max_items")
899
+ if isinstance(max_items, int):
900
+ suffixes.append(f"maximum: {max_items}")
901
+ available_since = detail.get("available_since")
902
+ if isinstance(available_since, str) and available_since.strip():
903
+ suffixes.append(f"available since: {available_since.strip()}")
904
+ suffix = f" ({'; '.join(suffixes)})" if suffixes else ""
905
+ return message.strip() + suffix
898
906
  if isinstance(detail, list):
899
907
  messages: list[str] = []
900
908
  for item in detail:
@@ -283,6 +283,23 @@ def test_endpoint_api_error_payload_preserves_integer_location(monkeypatch) -> N
283
283
  )
284
284
 
285
285
 
286
+ def test_api_149_structured_error_context_is_actionable() -> None:
287
+ assert cli_main._format_api_detail(
288
+ {
289
+ "error": "too_many_tickers",
290
+ "message": "Too many tickers.",
291
+ "max_items": 10,
292
+ }
293
+ ) == "Too many tickers. (maximum: 10)"
294
+ assert cli_main._format_api_detail(
295
+ {
296
+ "error": "data_unavailable",
297
+ "message": "Requested period predates public data.",
298
+ "available_since": "2025-01-01",
299
+ }
300
+ ) == "Requested period predates public data. (available since: 2025-01-01)"
301
+
302
+
286
303
  def test_period_help_uses_plain_inclusive_labels(capsys) -> None:
287
304
  assert cli_main.main(["stock", "--help"]) == 0
288
305
 
File without changes
File without changes
File without changes
File without changes
File without changes