cycode 3.16.1.dev4__py3-none-any.whl → 3.16.1.dev5__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.
cycode/__init__.py CHANGED
@@ -1 +1 @@
1
- __version__ = '3.16.1.dev4' # DON'T TOUCH. Placeholder. Will be filled automatically on poetry build from Git Tag
1
+ __version__ = '3.16.1.dev5' # DON'T TOUCH. Placeholder. Will be filled automatically on poetry build from Git Tag
@@ -8,6 +8,7 @@ import tempfile
8
8
  import uuid
9
9
  from typing import Annotated, Any, Optional
10
10
 
11
+ import anyio
11
12
  import typer
12
13
  from pathvalidate import sanitize_filepath
13
14
  from pydantic import Field
@@ -65,6 +66,7 @@ def _get_current_executable() -> str:
65
66
  return 'cycode'
66
67
 
67
68
 
69
+ # ruff: disable[ASYNC109]
68
70
  async def _run_cycode_command(*args: str, timeout: int = _DEFAULT_RUN_COMMAND_TIMEOUT) -> dict[str, Any]:
69
71
  """Run a cycode command asynchronously and return the parsed result.
70
72
 
@@ -109,6 +111,9 @@ async def _run_cycode_command(*args: str, timeout: int = _DEFAULT_RUN_COMMAND_TI
109
111
  return {'error': f'Failed to run command: {e!s}'}
110
112
 
111
113
 
114
+ # ruff: enable[ASYNC109]
115
+
116
+
112
117
  def _sanitize_file_path(file_path: str) -> str:
113
118
  """Sanitize file path to prevent path traversal and other security issues.
114
119
 
@@ -238,7 +243,7 @@ async def _cycode_scan_tool(
238
243
 
239
244
  try:
240
245
  if paths:
241
- missing = [p for p in paths if not os.path.exists(p)]
246
+ missing = [p for p in paths if not await anyio.Path(p).exists()]
242
247
  if missing:
243
248
  return json.dumps({'error': f'Paths not found on disk: {missing}'}, indent=2)
244
249
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cycode
3
- Version: 3.16.1.dev4
3
+ Version: 3.16.1.dev5
4
4
  Summary: Boost security in your dev lifecycle via SAST, SCA, Secrets & IaC scanning.
5
5
  License-Expression: MIT
6
6
  License-File: LICENCE
@@ -20,6 +20,7 @@ Classifier: Programming Language :: Python :: 3.11
20
20
  Classifier: Programming Language :: Python :: 3.12
21
21
  Classifier: Programming Language :: Python :: 3.13
22
22
  Classifier: Programming Language :: Python :: 3.14
23
+ Requires-Dist: anyio (>=4.0.0,<4.13.0)
23
24
  Requires-Dist: arrow (>=1.0.0,<1.5.0)
24
25
  Requires-Dist: click (>=8.1.0,<8.2.0)
25
26
  Requires-Dist: colorama (>=0.4.3,<0.5.0)
@@ -1,4 +1,4 @@
1
- cycode/__init__.py,sha256=-jcaq9QLnhHVnRFMntewkGjBliaI6eKWfXQS2PENWJ8,115
1
+ cycode/__init__.py,sha256=B-9qSK1ifsZ4EPDrTlw8ws8nxyBM5K4JlzlsJBoA9-w,115
2
2
  cycode/__main__.py,sha256=Z3bD5yrA7yPvAChcADQrqCaZd0ChGI1gdiwALwbWJ6U,104
3
3
  cycode/cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
4
  cycode/cli/app.py,sha256=7ReEcVkRX9IaQ2I7jAj7Sl9smbtvxiuK8-9bitMEQik,7491
@@ -46,7 +46,7 @@ cycode/cli/apps/configure/prompts.py,sha256=z1KZiVJOlFeWKawFE_RyMOitekzuZqKu9aV6
46
46
  cycode/cli/apps/ignore/__init__.py,sha256=hk1jyJ5ecDeNxHu7gbbbugNiMMS5Y0wmFhi2FiokSHo,220
47
47
  cycode/cli/apps/ignore/ignore_command.py,sha256=eHKR9AKvUqwLi_q1M4cM8iYqhW8yb-y37xPMyUI1qUc,5767
48
48
  cycode/cli/apps/mcp/__init__.py,sha256=FMXPnuSH7RV0ZckJt5HgVvTvH8QWApyVOpFzRpAH104,460
49
- cycode/cli/apps/mcp/mcp_command.py,sha256=EqRtI_YFCYGO5XA24fM7Otp2kNvCeqUqLH_ZweEfNdA,17812
49
+ cycode/cli/apps/mcp/mcp_command.py,sha256=tSJOB7PAaXGZ3-dRXMRY1kNJhK7NiRF1WV7756UnAIY,17889
50
50
  cycode/cli/apps/report/__init__.py,sha256=SyrLy-D6-WOCVnieXW0dTZKy3yqCxMaqEcJLjo81nPQ,320
51
51
  cycode/cli/apps/report/report_command.py,sha256=k_7vx_QsHmDKjlW_vibmv9_55ML4-A7ObMGp67jWCFQ,412
52
52
  cycode/cli/apps/report/sbom/__init__.py,sha256=fZAryQHrn1V8KVKJvB97Virls1eEs4jHd5bvdIQv0ds,753
@@ -207,8 +207,8 @@ cycode/cyclient/report_client.py,sha256=Scq30NeJPzgXv0hPLO1U05AdE9i_2iu6cIrSKpEJ
207
207
  cycode/cyclient/scan_client.py,sha256=6TK5FQkfrvV7PHqRnUzEn1PBNd2oPYVamvIixcUfe3c,16755
208
208
  cycode/cyclient/scan_config_base.py,sha256=mXsPZGYCtp85rv5GIige40yQZXuRcEKUW-VQJ0vgFzk,1201
209
209
  cycode/logger.py,sha256=EfZGRK6VC5rE_LAjIcRrHFiQCueylCDXoG6bvGkrIME,2111
210
- cycode-3.16.1.dev4.dist-info/METADATA,sha256=wrChzYvBPqSSYZ3kSkF9_j1IIx9pDIr7XINIt89s2a8,89206
211
- cycode-3.16.1.dev4.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
212
- cycode-3.16.1.dev4.dist-info/entry_points.txt,sha256=iDcVJM8ByLElVgvBgtYxDjw1kT7O8Mo0LcWZIT5L3Ig,45
213
- cycode-3.16.1.dev4.dist-info/licenses/LICENCE,sha256=2Wx4N6mD_4xB7-E3hPkZ3MPhpJy__k_I8MaCSO-PDRo,1068
214
- cycode-3.16.1.dev4.dist-info/RECORD,,
210
+ cycode-3.16.1.dev5.dist-info/METADATA,sha256=KhJ0R07QToYVW3S6D6MN89hLQRRaZco8QMuAei53cew,89245
211
+ cycode-3.16.1.dev5.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
212
+ cycode-3.16.1.dev5.dist-info/entry_points.txt,sha256=iDcVJM8ByLElVgvBgtYxDjw1kT7O8Mo0LcWZIT5L3Ig,45
213
+ cycode-3.16.1.dev5.dist-info/licenses/LICENCE,sha256=2Wx4N6mD_4xB7-E3hPkZ3MPhpJy__k_I8MaCSO-PDRo,1068
214
+ cycode-3.16.1.dev5.dist-info/RECORD,,