codedd-cli 0.1.1__py3-none-any.whl → 0.1.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.
codedd_cli/__init__.py CHANGED
@@ -1,3 +1,3 @@
1
1
  """CodeDD CLI — run code audits from your terminal."""
2
2
 
3
- __version__ = "0.1.1"
3
+ __version__ = "0.1.2"
@@ -17,6 +17,7 @@ class Endpoints:
17
17
  # Scope
18
18
  REGISTER_SCOPE = "/api/cli/scope/register/"
19
19
  SCOPE_FILES = "/api/cli/scope/files/"
20
+ DELETE_REPO_FROM_SCOPE = "/delete_repo_from_scope/"
20
21
 
21
22
  # Audit lifecycle
22
23
  AUDIT_CAN_START = "/api/cli/audit/can-start/"
@@ -38,6 +39,7 @@ class Endpoints:
38
39
 
39
40
  # Local git statistics (for CLI-driven audits; enables dashboards)
40
41
  AUDIT_GIT_STATISTICS = "/api/cli/audit/git-statistics/"
42
+ AUDIT_GIT_DEVELOPMENT_ANALYSIS = "/api/cli/audit/git-development-analysis/"
41
43
  AUDIT_VULNERABILITY_VALIDATION = "/api/cli/audit/vulnerability-validation/"
42
44
 
43
45
  # Architecture analysis (Phase 1+2 run locally; server runs Phase 3 + storage)
@@ -1,24 +1,24 @@
1
- """
2
- API-layer exceptions with user-facing messages.
3
-
4
- Raised when the CLI cannot reach the CodeDD server (connection refused,
5
- timeout, server disconnected, etc.). Handled at the CLI entry point to
6
- display a single, clear message instead of a full traceback.
7
- """
8
-
9
- # Pre-defined message shown when the remote is not responding.
10
- CONNECTION_ERROR_MESSAGE = (
11
- "Unable to reach CodeDD. "
12
- "Check that the server is running and your network connection is available, "
13
- "or try again later."
14
- )
15
-
16
-
17
- class CodeDDConnectionError(Exception):
18
- """
19
- Raised when a request to the CodeDD API fails due to connection
20
- or transport errors (e.g. server not responding, timeout, disconnect).
21
- """
22
-
23
- def __init__(self, message: str | None = None) -> None:
24
- super().__init__(message or CONNECTION_ERROR_MESSAGE)
1
+ """
2
+ API-layer exceptions with user-facing messages.
3
+
4
+ Raised when the CLI cannot reach the CodeDD server (connection refused,
5
+ timeout, server disconnected, etc.). Handled at the CLI entry point to
6
+ display a single, clear message instead of a full traceback.
7
+ """
8
+
9
+ # Pre-defined message shown when the remote is not responding.
10
+ CONNECTION_ERROR_MESSAGE = (
11
+ "Unable to reach CodeDD. "
12
+ "Check that the server is running and your network connection is available, "
13
+ "or try again later."
14
+ )
15
+
16
+
17
+ class CodeDDConnectionError(Exception):
18
+ """
19
+ Raised when a request to the CodeDD API fails due to connection
20
+ or transport errors (e.g. server not responding, timeout, disconnect).
21
+ """
22
+
23
+ def __init__(self, message: str | None = None) -> None:
24
+ super().__init__(message or CONNECTION_ERROR_MESSAGE)