cycode 3.22.1.dev6__py3-none-any.whl → 3.22.1.dev8__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
@@ -5,4 +5,4 @@ import time as _time
5
5
  # end-to-end scan duration from the moment the user actually triggered it.
6
6
  _BOOT_WALL: float = _time.time()
7
7
 
8
- __version__ = '3.22.1.dev6' # DON'T TOUCH. Placeholder. Will be filled automatically on poetry build from Git Tag
8
+ __version__ = '3.22.1.dev8' # DON'T TOUCH. Placeholder. Will be filled automatically on poetry build from Git Tag
@@ -190,13 +190,9 @@ def _persist_uninstall(hooks_path: Path, existing: dict, modified: bool) -> tupl
190
190
  """Apply the uninstall result to disk and return ``(success, message)``."""
191
191
  if not modified:
192
192
  return True, 'No Cycode hooks found to remove'
193
+ # Never unlink: a shared settings file (Claude Code's settings.json) holds unrelated keys.
193
194
  if not existing.get('hooks'):
194
- try:
195
- hooks_path.unlink()
196
- except Exception as e:
197
- logger.debug('Failed to delete hooks file', exc_info=e)
198
- return False, f'Failed to remove hooks file: {hooks_path}'
199
- return True, f'Removed hooks file: {hooks_path}'
195
+ existing.pop('hooks', None)
200
196
  if not _save_hooks_file(hooks_path, existing):
201
197
  return False, f'Failed to update hooks file: {hooks_path}'
202
198
  return True, f'Cycode hooks removed from: {hooks_path}'
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cycode
3
- Version: 3.22.1.dev6
3
+ Version: 3.22.1.dev8
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
@@ -1,4 +1,4 @@
1
- cycode/__init__.py,sha256=jzVmBNPhnJhE-gIDJJoJ4D7EmjCBsI-V4GlpsRc_fjk,396
1
+ cycode/__init__.py,sha256=OWQg_lh7eQAdqyK0mS8XZWfIWNDn_H_SLYfCqKAdnDQ,396
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=AlR2durAEbsa47PDfIj7JtMvJDWA_Dq6wPtVuMJYSCs,10250
@@ -7,7 +7,7 @@ cycode/cli/apps/activation_manager.py,sha256=Hz9PDJFB-ZmYi4HSG8iYC-fR8j5v25VuUU-
7
7
  cycode/cli/apps/ai_guardrails/__init__.py,sha256=NsqB1Ca83BIjJMcDSt6suec6Ed0iNnacC0gBqkuuTtI,1367
8
8
  cycode/cli/apps/ai_guardrails/command_utils.py,sha256=NVwd0-2RGRKIqhsQ-4LNDR1D0gVm_o7n-z5LxG2bqAo,800
9
9
  cycode/cli/apps/ai_guardrails/consts.py,sha256=U9lToL22ik3oX6bcZxT5de79Fu0eZA5D5p-q9daE5Iw,778
10
- cycode/cli/apps/ai_guardrails/hooks_manager.py,sha256=FSZYYCzPDM86cUaJO6QHM_1e2yDZZcHa-y97qDT3MjY,9470
10
+ cycode/cli/apps/ai_guardrails/hooks_manager.py,sha256=zLUtZJ3yFu9n0r71lhhx9gUUXclTwgCyU38ULbVB--0,9329
11
11
  cycode/cli/apps/ai_guardrails/ides/__init__.py,sha256=9FPz984poZWPX6S6abuo-PThiXgJ_WpoUv47wiSXnKQ,2639
12
12
  cycode/cli/apps/ai_guardrails/ides/_plugin_utils.py,sha256=XPIc9pZFEgdGVTSSAl9yqI48F88GKlFnJ5FsLUhHjCE,3981
13
13
  cycode/cli/apps/ai_guardrails/ides/base.py,sha256=gyCxeDxuXaRBpYFzbgKHJAyJ6a1cDcXCGA3FKh67soM,7333
@@ -215,8 +215,8 @@ cycode/cyclient/report_client.py,sha256=Scq30NeJPzgXv0hPLO1U05AdE9i_2iu6cIrSKpEJ
215
215
  cycode/cyclient/scan_client.py,sha256=DqAZ7u6Z_cvw9A9RlLkAQUgLRwPCCAsUq5U9umt4F7Y,16955
216
216
  cycode/cyclient/scan_config_base.py,sha256=mXsPZGYCtp85rv5GIige40yQZXuRcEKUW-VQJ0vgFzk,1201
217
217
  cycode/logger.py,sha256=EfZGRK6VC5rE_LAjIcRrHFiQCueylCDXoG6bvGkrIME,2111
218
- cycode-3.22.1.dev6.dist-info/METADATA,sha256=Gq_np3TxW4MYHCzoWkOYOywCFsr_CTPWUxRg2JS2ho8,93596
219
- cycode-3.22.1.dev6.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
220
- cycode-3.22.1.dev6.dist-info/entry_points.txt,sha256=iDcVJM8ByLElVgvBgtYxDjw1kT7O8Mo0LcWZIT5L3Ig,45
221
- cycode-3.22.1.dev6.dist-info/licenses/LICENCE,sha256=2Wx4N6mD_4xB7-E3hPkZ3MPhpJy__k_I8MaCSO-PDRo,1068
222
- cycode-3.22.1.dev6.dist-info/RECORD,,
218
+ cycode-3.22.1.dev8.dist-info/METADATA,sha256=R_de0-4CsYDvfcAM91BcvauzKJNi7oXLlpWpo--9bos,93596
219
+ cycode-3.22.1.dev8.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
220
+ cycode-3.22.1.dev8.dist-info/entry_points.txt,sha256=iDcVJM8ByLElVgvBgtYxDjw1kT7O8Mo0LcWZIT5L3Ig,45
221
+ cycode-3.22.1.dev8.dist-info/licenses/LICENCE,sha256=2Wx4N6mD_4xB7-E3hPkZ3MPhpJy__k_I8MaCSO-PDRo,1068
222
+ cycode-3.22.1.dev8.dist-info/RECORD,,