cycode 3.25.1.dev4__py3-none-any.whl → 3.25.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
@@ -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.25.1.dev4' # DON'T TOUCH. Placeholder. Will be filled automatically on poetry build from Git Tag
8
+ __version__ = '3.25.1.dev5' # DON'T TOUCH. Placeholder. Will be filled automatically on poetry build from Git Tag
@@ -269,21 +269,18 @@ class Codex(IDE):
269
269
  )
270
270
 
271
271
  def build_hook_response(self, decision: HookDecision) -> dict:
272
- # Codex accepts the same hook response shapes as Claude Code:
273
- # - PROMPT: empty for allow, {"decision": "block", "reason": ...} for deny
274
- # - PreToolUse: hookSpecificOutput.permissionDecision
272
+ # Codex hook response shapes:
273
+ # - allow: empty (no objection). Older Codex runtimes reject an explicit
274
+ # PreToolUse permissionDecision "allow" as unsupported and report a
275
+ # failed hook on every call, so never send it.
276
+ # - PROMPT deny: {"decision": "block", "reason": ...}
277
+ # - PreToolUse deny: hookSpecificOutput.permissionDecision
278
+ if decision.action == DecisionAction.ALLOW:
279
+ return {}
280
+
275
281
  if decision.event_type == AiHookEventType.PROMPT:
276
- if decision.action == DecisionAction.ALLOW:
277
- return {}
278
282
  return {'decision': 'block', 'reason': decision.user_message or ''}
279
283
 
280
- if decision.action == DecisionAction.ALLOW:
281
- return {
282
- 'hookSpecificOutput': {
283
- 'hookEventName': 'PreToolUse',
284
- 'permissionDecision': 'allow',
285
- }
286
- }
287
284
  return {
288
285
  'hookSpecificOutput': {
289
286
  'hookEventName': 'PreToolUse',
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cycode
3
- Version: 3.25.1.dev4
3
+ Version: 3.25.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
@@ -1,4 +1,4 @@
1
- cycode/__init__.py,sha256=maSJqqkxg3160B3eJEs3M1LWs_m8n1e6k8181bbO1IA,396
1
+ cycode/__init__.py,sha256=6WKcMLjP5XCkzdZKqwYz8GeKUDhC-Ytqa32ZzGrlzBY,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
@@ -13,7 +13,7 @@ cycode/cli/apps/ai_guardrails/ides/_plugin_utils.py,sha256=XPIc9pZFEgdGVTSSAl9yq
13
13
  cycode/cli/apps/ai_guardrails/ides/_skill_utils.py,sha256=Xk8z-uquTMvg4JxNwZxnclR79ME7ZKq7rxht3aFQUeo,3972
14
14
  cycode/cli/apps/ai_guardrails/ides/base.py,sha256=B_wrSO48Hl__Xk92X4rKmwnY0RkP8jAJtE84wIW-Qnk,7985
15
15
  cycode/cli/apps/ai_guardrails/ides/claude_code.py,sha256=JCSB2PRPtZETFSskxV02hUwNRKExx7mXxtEmdxt_ruE,15707
16
- cycode/cli/apps/ai_guardrails/ides/codex.py,sha256=P3dCa2bHLoeKs10TN6OmwP6BjcuJkNMkfUFa4T7n9Vo,12335
16
+ cycode/cli/apps/ai_guardrails/ides/codex.py,sha256=6MsjPaNlYkho0y8cYOUX9_9kH0Ow9drQ4q0ahfWNyoc,12252
17
17
  cycode/cli/apps/ai_guardrails/ides/copilot.py,sha256=XK2CLdB3oLJrP5Z-pGNsLbnwfehv4AW4vTLdvSE3eb0,21894
18
18
  cycode/cli/apps/ai_guardrails/ides/cursor.py,sha256=cqi12ELV5ZF7ANUA9n33gc8Hj9hURqEBLJ3gzf-v68w,5850
19
19
  cycode/cli/apps/ai_guardrails/install_command.py,sha256=3T-Wj_Fr871uhfTe77CGqrkeAwvHafK_aEv7BZ0jAJU,4069
@@ -223,8 +223,8 @@ cycode/cyclient/report_client.py,sha256=Scq30NeJPzgXv0hPLO1U05AdE9i_2iu6cIrSKpEJ
223
223
  cycode/cyclient/scan_client.py,sha256=DqAZ7u6Z_cvw9A9RlLkAQUgLRwPCCAsUq5U9umt4F7Y,16955
224
224
  cycode/cyclient/scan_config_base.py,sha256=mXsPZGYCtp85rv5GIige40yQZXuRcEKUW-VQJ0vgFzk,1201
225
225
  cycode/logger.py,sha256=EfZGRK6VC5rE_LAjIcRrHFiQCueylCDXoG6bvGkrIME,2111
226
- cycode-3.25.1.dev4.dist-info/METADATA,sha256=Lf-JTQlrq2jGCZcRrGL1uQJexg0UkInWT_mOjm7A5bk,96824
227
- cycode-3.25.1.dev4.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
228
- cycode-3.25.1.dev4.dist-info/entry_points.txt,sha256=iDcVJM8ByLElVgvBgtYxDjw1kT7O8Mo0LcWZIT5L3Ig,45
229
- cycode-3.25.1.dev4.dist-info/licenses/LICENCE,sha256=2Wx4N6mD_4xB7-E3hPkZ3MPhpJy__k_I8MaCSO-PDRo,1068
230
- cycode-3.25.1.dev4.dist-info/RECORD,,
226
+ cycode-3.25.1.dev5.dist-info/METADATA,sha256=NdMkWG7AUN3Z3cckV3wmSsHHYlPCU5GnT1pEeT1iO00,96824
227
+ cycode-3.25.1.dev5.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
228
+ cycode-3.25.1.dev5.dist-info/entry_points.txt,sha256=iDcVJM8ByLElVgvBgtYxDjw1kT7O8Mo0LcWZIT5L3Ig,45
229
+ cycode-3.25.1.dev5.dist-info/licenses/LICENCE,sha256=2Wx4N6mD_4xB7-E3hPkZ3MPhpJy__k_I8MaCSO-PDRo,1068
230
+ cycode-3.25.1.dev5.dist-info/RECORD,,