refactor: flatten CLI directory structure - remove 'box in a box'
BEFORE: /opt/aitbc/cli/ ├── aitbc_cli/ # Python package (box in a box) │ ├── commands/ │ ├── main.py │ └── ... ├── setup.py AFTER: /opt/aitbc/cli/ # Flat structure ├── commands/ # Direct access ├── main.py # Direct access ├── auth/ ├── config/ ├── core/ ├── models/ ├── utils/ ├── plugins.py └── setup.py CHANGES MADE: - Moved all files from aitbc_cli/ to cli/ root - Fixed all relative imports (from . to absolute imports) - Updated setup.py entry point: aitbc_cli.main → main - Added CLI directory to Python path in entry script - Simplified deployment.py to remove dependency on deleted core.deployment - Fixed import paths in all command files - Recreated virtual environment with new structure BENEFITS: - Eliminated 'box in a box' nesting - Simpler directory structure - Direct access to all modules - Cleaner imports - Easier maintenance and development - CLI works with both 'python main.py' and 'aitbc' commands
This commit is contained in:
26
cli/security/__init__.py
Executable file
26
cli/security/__init__.py
Executable file
@@ -0,0 +1,26 @@
|
||||
"""
|
||||
AITBC CLI Security Module
|
||||
|
||||
Security controls and policies for CLI operations, including
|
||||
translation security, input validation, and operation auditing.
|
||||
"""
|
||||
|
||||
from .translation_policy import (
|
||||
CLITranslationSecurityManager,
|
||||
SecurityLevel,
|
||||
TranslationMode,
|
||||
cli_translation_security,
|
||||
secure_translation,
|
||||
configure_translation_security,
|
||||
get_translation_security_report
|
||||
)
|
||||
|
||||
__all__ = [
|
||||
"CLITranslationSecurityManager",
|
||||
"SecurityLevel",
|
||||
"TranslationMode",
|
||||
"cli_translation_security",
|
||||
"secure_translation",
|
||||
"configure_translation_security",
|
||||
"get_translation_security_report"
|
||||
]
|
||||
Reference in New Issue
Block a user