lightman_ai 0.21.0__py3-none-any.whl → 0.21.2__py3-none-any.whl

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.

Potentially problematic release.


This version of lightman_ai might be problematic. Click here for more details.

lightman_ai/cli.py CHANGED
@@ -94,7 +94,8 @@ def run(
94
94
  if start_date and today:
95
95
  raise click.UsageError("--today and --start-date cannot be set at the same time.")
96
96
  elif today:
97
- start_datetime = datetime.now(ZoneInfo(settings.TIME_ZONE))
97
+ now = datetime.now(ZoneInfo(settings.TIME_ZONE))
98
+ start_datetime = datetime.combine(now, time(0, 0), tzinfo=ZoneInfo(settings.TIME_ZONE))
98
99
  elif isinstance(start_date, date):
99
100
  start_datetime = datetime.combine(start_date, time(0, 0), tzinfo=ZoneInfo(settings.TIME_ZONE))
100
101
  else:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: lightman_ai
3
- Version: 0.21.0
3
+ Version: 0.21.2
4
4
  Summary: LLM-powered cybersecurity news aggregator.
5
5
  Author-email: sdn4z <imsdn4z@gmail.com>
6
6
  License-File: LICENSE
@@ -256,6 +256,8 @@ lightman run --dry-run --agent openai --score 9
256
256
  | `--env-file` | Path to environment variables file | `.env` |
257
257
  | `--dry-run` | Preview results without taking action | `false` |
258
258
  | `--prompt-file` | File containing prompt templates | `lightman.toml` |
259
+ | `--start-date` | Start date to retrieve articles | None |
260
+ | `--today` | Retrieve articles from today | None |
259
261
 
260
262
  ### Example Workflows
261
263
 
@@ -364,11 +366,17 @@ This approach ensures that performance metrics reflect real-world usage scenario
364
366
  **Make sure to fill in the `RELEVANT_ARTICLES` with the ones you classify as relevant, so that you can compare the accuracy after running the `eval` script.***
365
367
 
366
368
  ## Sentry
369
+ Sentry is **optional**: the application does not require it to function, and all features will work even if Sentry is not configured or fails to start.
370
+ If you install the project via pip and want Sentry installed, run:
367
371
 
368
- - The application will automatically pick up and use environment variables if they are present in your environment or `.env` file.
369
- - To enable Sentry error monitoring, set the `SENTRY_DSN` environment variable. This is **mandatory** for Sentry to be enabled. If `SENTRY_DSN` is not set, Sentry will be skipped and the application will run normally.
370
- - If Sentry fails to initialize for any reason (e.g., network issues, invalid DSN), the application will log a warning and continue execution without error monitoring.
371
- - Sentry is **optional**: the application does not require it to function, and all features will work even if Sentry is not configured or fails to start.
372
+ ```bash
373
+ pip install lightman-ai[sentry]
374
+ ```
375
+ Sentry comes by default with the Docker image. If you don't want to use it, simply do not set `SENTRY_DSN` env variable.
376
+
377
+ The application will automatically pick up and use environment variables if they are present in your environment or `.env` file.
378
+ To enable Sentry, set the `SENTRY_DSN` environment variable. This is **mandatory** for Sentry to be enabled. If `SENTRY_DSN` is not set, Sentry will be skipped and the application will run normally.
379
+ If Sentry fails to initialize for any reason (e.g., network issues, invalid DSN), the application will log a warning and continue execution without error monitoring, and logging to stdout.
372
380
 
373
381
  ## 📄 License
374
382
 
@@ -1,5 +1,5 @@
1
1
  lightman_ai/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- lightman_ai/cli.py,sha256=RdG0qlNbK-wkz7XeSJu2qjBvBo_4Gw0K1DLitqPN1mc,4553
2
+ lightman_ai/cli.py,sha256=cxaDI1ibyHMGLxWZAm-lYzWKc9LknLRedSJQeOAwA_Y,4638
3
3
  lightman_ai/constants.py,sha256=qfZgcTLK51l--JDhns-uRANjccFEPN6iTFsJKn8T4vs,101
4
4
  lightman_ai/main.py,sha256=_RY05r1dd-q4L0BTIoKl6yC7lWrpQto0W3W72btGvQA,3527
5
5
  lightman_ai/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -29,8 +29,8 @@ lightman_ai/integrations/service_desk/integration.py,sha256=5r3bipao_apaDWLRiH4o
29
29
  lightman_ai/sources/base.py,sha256=M_n9H9GdcX2tbBcYkiakDxHCnuwP9fV4BQhNAadBubQ,242
30
30
  lightman_ai/sources/exceptions.py,sha256=X43BZ6hx-lZAEyM2q5PQXBw3vKPDx5nmY_uRiuITK9s,379
31
31
  lightman_ai/sources/the_hacker_news.py,sha256=JTqbAJ1Pf8QKxvwFg6vWmymgj8LtUpIV6hD0KMOwMG8,3034
32
- lightman_ai-0.21.0.dist-info/METADATA,sha256=EWTW_vhEqgGQbT4MqdCwTaWDKOq13mqvkG0bu-tRW6g,11915
33
- lightman_ai-0.21.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
34
- lightman_ai-0.21.0.dist-info/entry_points.txt,sha256=9H7Ji-zxbCWAaVL5Yg4fG5va0H_5Tr2kMGGMsghaAas,60
35
- lightman_ai-0.21.0.dist-info/licenses/LICENSE,sha256=NhxDmY3AGgeEsYHIfDGLNkzBVX94pARRDS8H46JZ1zQ,1076
36
- lightman_ai-0.21.0.dist-info/RECORD,,
32
+ lightman_ai-0.21.2.dist-info/METADATA,sha256=uFH56M6p4ED4R4zWFhTN1k80T3YtO6rG7JipcEXNYqQ,12261
33
+ lightman_ai-0.21.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
34
+ lightman_ai-0.21.2.dist-info/entry_points.txt,sha256=9H7Ji-zxbCWAaVL5Yg4fG5va0H_5Tr2kMGGMsghaAas,60
35
+ lightman_ai-0.21.2.dist-info/licenses/LICENSE,sha256=NhxDmY3AGgeEsYHIfDGLNkzBVX94pARRDS8H46JZ1zQ,1076
36
+ lightman_ai-0.21.2.dist-info/RECORD,,