cycode 3.15.1.dev1__py3-none-any.whl → 3.15.2.dev1__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 +1 -1
- cycode/cli/apps/ai_guardrails/session_start_command.py +8 -4
- cycode/cyclient/ai_security_manager_client.py +2 -0
- {cycode-3.15.1.dev1.dist-info → cycode-3.15.2.dev1.dist-info}/METADATA +1 -1
- {cycode-3.15.1.dev1.dist-info → cycode-3.15.2.dev1.dist-info}/RECORD +8 -8
- {cycode-3.15.1.dev1.dist-info → cycode-3.15.2.dev1.dist-info}/WHEEL +0 -0
- {cycode-3.15.1.dev1.dist-info → cycode-3.15.2.dev1.dist-info}/entry_points.txt +0 -0
- {cycode-3.15.1.dev1.dist-info → cycode-3.15.2.dev1.dist-info}/licenses/LICENCE +0 -0
cycode/__init__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = '3.15.
|
|
1
|
+
__version__ = '3.15.2.dev1' # DON'T TOUCH. Placeholder. Will be filled automatically on poetry build from Git Tag
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import sys
|
|
2
|
-
from typing import TYPE_CHECKING, Annotated
|
|
2
|
+
from typing import TYPE_CHECKING, Annotated, Optional
|
|
3
3
|
|
|
4
4
|
import typer
|
|
5
5
|
|
|
@@ -79,7 +79,7 @@ def _get_cursor_session_context() -> tuple[dict, dict]:
|
|
|
79
79
|
return mcp_servers, {}
|
|
80
80
|
|
|
81
81
|
|
|
82
|
-
def _report_session_context(ai_client: 'AISecurityManagerClient', ide: str) -> None:
|
|
82
|
+
def _report_session_context(ai_client: 'AISecurityManagerClient', ide: str, user_email: Optional[str]) -> None:
|
|
83
83
|
"""Report IDE session context to the AI security manager. Never raises."""
|
|
84
84
|
try:
|
|
85
85
|
if ide == AIIDEType.CLAUDE_CODE:
|
|
@@ -91,7 +91,11 @@ def _report_session_context(ai_client: 'AISecurityManagerClient', ide: str) -> N
|
|
|
91
91
|
|
|
92
92
|
if not mcp_servers and not enabled_plugins:
|
|
93
93
|
return
|
|
94
|
-
ai_client.report_session_context(
|
|
94
|
+
ai_client.report_session_context(
|
|
95
|
+
mcp_servers=mcp_servers,
|
|
96
|
+
enabled_plugins=enabled_plugins,
|
|
97
|
+
user_email=user_email,
|
|
98
|
+
)
|
|
95
99
|
except Exception as e:
|
|
96
100
|
logger.debug('Failed to report session context', exc_info=e)
|
|
97
101
|
|
|
@@ -148,4 +152,4 @@ def session_start_command(
|
|
|
148
152
|
logger.debug('Failed to create conversation during session start', exc_info=e)
|
|
149
153
|
|
|
150
154
|
# Step 5: Report session context (MCP servers)
|
|
151
|
-
_report_session_context(ai_client, ide)
|
|
155
|
+
_report_session_context(ai_client, ide, session_payload.ide_user_email)
|
|
@@ -95,11 +95,13 @@ class AISecurityManagerClient:
|
|
|
95
95
|
self,
|
|
96
96
|
mcp_servers: Optional[dict] = None,
|
|
97
97
|
enabled_plugins: Optional[dict] = None,
|
|
98
|
+
user_email: Optional[str] = None,
|
|
98
99
|
) -> None:
|
|
99
100
|
"""Report session context to the backend."""
|
|
100
101
|
body: dict = {
|
|
101
102
|
'mcp_servers': mcp_servers,
|
|
102
103
|
'enabled_plugins': enabled_plugins,
|
|
104
|
+
'user_email': user_email,
|
|
103
105
|
}
|
|
104
106
|
|
|
105
107
|
try:
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
cycode/__init__.py,sha256=
|
|
1
|
+
cycode/__init__.py,sha256=ShlC2vmR7GnX7hEZCzjGObMmBgan9a_9kDdplhSc6g8,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
|
|
@@ -20,7 +20,7 @@ cycode/cli/apps/ai_guardrails/scan/response_builders.py,sha256=tVFJCnGdqSmyileg-
|
|
|
20
20
|
cycode/cli/apps/ai_guardrails/scan/scan_command.py,sha256=_2fa6vz8ZmJlvCYrYNoWfX9fWrrpzcNCwL1UD-JxqLM,5618
|
|
21
21
|
cycode/cli/apps/ai_guardrails/scan/types.py,sha256=H25MKJhAXmp7Mz1YeCIRmAY1Zg5GSpgBq8G1TEI9PFk,1868
|
|
22
22
|
cycode/cli/apps/ai_guardrails/scan/utils.py,sha256=KVfX-NrcM-QW4quLtoNqfmz4GF0FlDs-TkqUOu1hAWM,2057
|
|
23
|
-
cycode/cli/apps/ai_guardrails/session_start_command.py,sha256=
|
|
23
|
+
cycode/cli/apps/ai_guardrails/session_start_command.py,sha256=fmRQLFFgE0IN9ATVA6dTvkfu-ZF40JRLVo2eAy7pfnk,5618
|
|
24
24
|
cycode/cli/apps/ai_guardrails/status_command.py,sha256=UerHtjIGi6sY4RXGR06Es6jQFQAEWTx2Dvhk784WQIM,3539
|
|
25
25
|
cycode/cli/apps/ai_guardrails/uninstall_command.py,sha256=0qhXNC4PQPqrtt5JmexcM4W6i-VyvObB3DQT_DINM1Q,2969
|
|
26
26
|
cycode/cli/apps/ai_remediation/__init__.py,sha256=8vYthY9RQeJqEni3AIF5sryz8n-XJQ6VNqG4aEFBAdY,553
|
|
@@ -183,7 +183,7 @@ cycode/cli/utils/version_checker.py,sha256=0f5PaTk02ZkDxzBqZOeMV9mU_CWcx6HKW80jU
|
|
|
183
183
|
cycode/cli/utils/yaml_utils.py,sha256=R-tqzl0C-zoa42rS7nfWeHu3GJ0jpbQUyyqYYU2hleM,1818
|
|
184
184
|
cycode/config.py,sha256=jHORGZQcAXkAGSf2XreC-RQoc8sdNWja69QKtPWTbWo,1044
|
|
185
185
|
cycode/cyclient/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
186
|
-
cycode/cyclient/ai_security_manager_client.py,sha256=
|
|
186
|
+
cycode/cyclient/ai_security_manager_client.py,sha256=aZKsq2yB7ZiptMGj0RBTuPYyjYiJ5FTjNTi5_i37t4Q,4282
|
|
187
187
|
cycode/cyclient/ai_security_manager_service_config.py,sha256=83pQzgOb93JW6E-dznJkI4c0NEXmQRlx9YZKMmjVwp8,808
|
|
188
188
|
cycode/cyclient/auth_client.py,sha256=TwbmZ358Ancf-Q-IZolvfljZ8691_6botsqd0R0PLPk,2105
|
|
189
189
|
cycode/cyclient/base_token_auth_client.py,sha256=3JIrSz0-ywVTIfxIs2zs5aGcE-x5GW3AgPHm9qA4ZDE,3857
|
|
@@ -204,8 +204,8 @@ cycode/cyclient/report_client.py,sha256=Scq30NeJPzgXv0hPLO1U05AdE9i_2iu6cIrSKpEJ
|
|
|
204
204
|
cycode/cyclient/scan_client.py,sha256=6TK5FQkfrvV7PHqRnUzEn1PBNd2oPYVamvIixcUfe3c,16755
|
|
205
205
|
cycode/cyclient/scan_config_base.py,sha256=mXsPZGYCtp85rv5GIige40yQZXuRcEKUW-VQJ0vgFzk,1201
|
|
206
206
|
cycode/logger.py,sha256=EfZGRK6VC5rE_LAjIcRrHFiQCueylCDXoG6bvGkrIME,2111
|
|
207
|
-
cycode-3.15.
|
|
208
|
-
cycode-3.15.
|
|
209
|
-
cycode-3.15.
|
|
210
|
-
cycode-3.15.
|
|
211
|
-
cycode-3.15.
|
|
207
|
+
cycode-3.15.2.dev1.dist-info/METADATA,sha256=y4IbWmtXgOF1hq7_R-1YL1bsJLYCmKkU_6zwh08bxic,87415
|
|
208
|
+
cycode-3.15.2.dev1.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
|
|
209
|
+
cycode-3.15.2.dev1.dist-info/entry_points.txt,sha256=iDcVJM8ByLElVgvBgtYxDjw1kT7O8Mo0LcWZIT5L3Ig,45
|
|
210
|
+
cycode-3.15.2.dev1.dist-info/licenses/LICENCE,sha256=2Wx4N6mD_4xB7-E3hPkZ3MPhpJy__k_I8MaCSO-PDRo,1068
|
|
211
|
+
cycode-3.15.2.dev1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|