codedd-cli 0.1.1__tar.gz → 0.1.2__tar.gz
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-0.1.1 → codedd_cli-0.1.2}/PKG-INFO +5 -3
- {codedd_cli-0.1.1 → codedd_cli-0.1.2}/README.md +1 -1
- {codedd_cli-0.1.1 → codedd_cli-0.1.2}/codedd_cli/__init__.py +1 -1
- {codedd_cli-0.1.1 → codedd_cli-0.1.2}/codedd_cli/api/endpoints.py +2 -0
- {codedd_cli-0.1.1 → codedd_cli-0.1.2}/codedd_cli/api/exceptions.py +24 -24
- codedd_cli-0.1.2/codedd_cli/auditor/architecture_analyzer.py +2189 -0
- {codedd_cli-0.1.1 → codedd_cli-0.1.2}/codedd_cli/auditor/architecture_prompts.py +68 -0
- codedd_cli-0.1.2/codedd_cli/auditor/commit_classifier.py +350 -0
- {codedd_cli-0.1.1 → codedd_cli-0.1.2}/codedd_cli/auditor/complexity_analyzer.py +374 -63
- {codedd_cli-0.1.1 → codedd_cli-0.1.2}/codedd_cli/auditor/dependency_scanner.py +187 -101
- codedd_cli-0.1.2/codedd_cli/auditor/enhanced_architecture_detectors.py +381 -0
- {codedd_cli-0.1.1 → codedd_cli-0.1.2}/codedd_cli/auditor/file_auditor.py +581 -578
- codedd_cli-0.1.2/codedd_cli/auditor/git_stats_collector.py +711 -0
- {codedd_cli-0.1.1 → codedd_cli-0.1.2}/codedd_cli/auditor/response_parser.py +484 -484
- codedd_cli-0.1.2/codedd_cli/auditor/sub_audit_runner.py +601 -0
- {codedd_cli-0.1.1 → codedd_cli-0.1.2}/codedd_cli/auditor/vulnerability_validator.py +94 -35
- {codedd_cli-0.1.1 → codedd_cli-0.1.2}/codedd_cli/commands/__init__.py +1 -1
- codedd_cli-0.1.2/codedd_cli/commands/audit_cmd.py +1291 -0
- {codedd_cli-0.1.1 → codedd_cli-0.1.2}/codedd_cli/commands/scope_cmd.py +258 -19
- {codedd_cli-0.1.1 → codedd_cli-0.1.2}/codedd_cli/config/constants.py +1 -1
- {codedd_cli-0.1.1 → codedd_cli-0.1.2}/codedd_cli/llm/key_manager.py +1 -1
- {codedd_cli-0.1.1 → codedd_cli-0.1.2}/codedd_cli/utils/__init__.py +1 -1
- {codedd_cli-0.1.1 → codedd_cli-0.1.2}/codedd_cli/utils/display.py +291 -1
- {codedd_cli-0.1.1 → codedd_cli-0.1.2}/pyproject.toml +9 -2
- codedd_cli-0.1.1/codedd_cli/auditor/architecture_analyzer.py +0 -1251
- codedd_cli-0.1.1/codedd_cli/auditor/git_stats_collector.py +0 -417
- codedd_cli-0.1.1/codedd_cli/commands/audit_cmd.py +0 -1987
- {codedd_cli-0.1.1 → codedd_cli-0.1.2}/LICENSE +0 -0
- {codedd_cli-0.1.1 → codedd_cli-0.1.2}/codedd_cli/__main__.py +0 -0
- {codedd_cli-0.1.1 → codedd_cli-0.1.2}/codedd_cli/api/__init__.py +0 -0
- {codedd_cli-0.1.1 → codedd_cli-0.1.2}/codedd_cli/api/client.py +0 -0
- {codedd_cli-0.1.1 → codedd_cli-0.1.2}/codedd_cli/auditor/__init__.py +0 -0
- {codedd_cli-0.1.1 → codedd_cli-0.1.2}/codedd_cli/auth/__init__.py +0 -0
- {codedd_cli-0.1.1 → codedd_cli-0.1.2}/codedd_cli/auth/session.py +0 -0
- {codedd_cli-0.1.1 → codedd_cli-0.1.2}/codedd_cli/auth/token_manager.py +0 -0
- {codedd_cli-0.1.1 → codedd_cli-0.1.2}/codedd_cli/cli.py +0 -0
- {codedd_cli-0.1.1 → codedd_cli-0.1.2}/codedd_cli/commands/audits_cmd.py +0 -0
- {codedd_cli-0.1.1 → codedd_cli-0.1.2}/codedd_cli/commands/auth_cmd.py +0 -0
- {codedd_cli-0.1.1 → codedd_cli-0.1.2}/codedd_cli/commands/config_cmd.py +0 -0
- {codedd_cli-0.1.1 → codedd_cli-0.1.2}/codedd_cli/config/__init__.py +0 -0
- {codedd_cli-0.1.1 → codedd_cli-0.1.2}/codedd_cli/config/settings.py +0 -0
- {codedd_cli-0.1.1 → codedd_cli-0.1.2}/codedd_cli/llm/__init__.py +0 -0
- {codedd_cli-0.1.1 → codedd_cli-0.1.2}/codedd_cli/models/__init__.py +0 -0
- {codedd_cli-0.1.1 → codedd_cli-0.1.2}/codedd_cli/models/account.py +0 -0
- {codedd_cli-0.1.1 → codedd_cli-0.1.2}/codedd_cli/models/audit.py +0 -0
- {codedd_cli-0.1.1 → codedd_cli-0.1.2}/codedd_cli/models/local_directory.py +0 -0
- {codedd_cli-0.1.1 → codedd_cli-0.1.2}/codedd_cli/scanner/__init__.py +0 -0
- {codedd_cli-0.1.1 → codedd_cli-0.1.2}/codedd_cli/scanner/file_classifier.py +0 -0
- {codedd_cli-0.1.1 → codedd_cli-0.1.2}/codedd_cli/scanner/file_walker.py +0 -0
- {codedd_cli-0.1.1 → codedd_cli-0.1.2}/codedd_cli/scanner/line_counter.py +0 -0
- {codedd_cli-0.1.1 → codedd_cli-0.1.2}/codedd_cli/utils/directory_validator.py +0 -0
- {codedd_cli-0.1.1 → codedd_cli-0.1.2}/codedd_cli/utils/payload_inspector.py +0 -0
- {codedd_cli-0.1.1 → codedd_cli-0.1.2}/codedd_cli/utils/security.py +0 -0
- {codedd_cli-0.1.1 → codedd_cli-0.1.2}/codedd_cli/utils/validators.py +0 -0
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: codedd-cli
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.2
|
|
4
4
|
Summary: CLI tool for CodeDD — run code audits from your terminal
|
|
5
5
|
License: MIT
|
|
6
6
|
License-File: LICENSE
|
|
7
7
|
Keywords: code-audit,security,cli,codedd
|
|
8
8
|
Author: CodeDD
|
|
9
|
-
Author-email:
|
|
9
|
+
Author-email: info@codedd.ai
|
|
10
10
|
Requires-Python: >=3.10,<4.0
|
|
11
11
|
Classifier: Development Status :: 3 - Alpha
|
|
12
12
|
Classifier: Environment :: Console
|
|
@@ -20,7 +20,9 @@ Classifier: Programming Language :: Python :: 3.13
|
|
|
20
20
|
Classifier: Programming Language :: Python :: 3.14
|
|
21
21
|
Classifier: Topic :: Security
|
|
22
22
|
Classifier: Topic :: Software Development :: Quality Assurance
|
|
23
|
+
Provides-Extra: esprima
|
|
23
24
|
Requires-Dist: defusedxml (>=0.7.1)
|
|
25
|
+
Requires-Dist: esprima (>=4.0.0) ; extra == "esprima"
|
|
24
26
|
Requires-Dist: httpx (>=0.27.0)
|
|
25
27
|
Requires-Dist: keyring (>=25.0.0)
|
|
26
28
|
Requires-Dist: lizard (>=1.17.0)
|
|
@@ -78,7 +80,7 @@ cd codedd-cli
|
|
|
78
80
|
pip install -e .
|
|
79
81
|
```
|
|
80
82
|
|
|
81
|
-
### From PyPI
|
|
83
|
+
### From PyPI
|
|
82
84
|
|
|
83
85
|
```bash
|
|
84
86
|
pip install codedd-cli
|
|
@@ -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)
|