feat: add all application source code

- apps/api: FastAPI backend with Dockerfile
- apps/web: Next.js frontend with Dockerfile
- apps/sensor: Signal collection agent
- packages: shared packages

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
OG T
2026-03-22 18:57:44 +08:00
parent a840bf975b
commit 196d269b92
245 changed files with 42207 additions and 6 deletions

View File

@@ -0,0 +1,85 @@
"""
AWOOOI API Services
"""
from .dry_run import DryRunEngine, DryRunResult, dry_run_engine
from .approval import (
MultiSigEngine,
multi_sig_engine,
ApprovalState,
Signature,
UserRole,
ApprovalStatus,
RISK_MATRIX,
# Exceptions
ApprovalError,
InsufficientPermissionError,
DuplicateSignatureError,
TOCTOUConflictError,
ApprovalNotFoundError,
ApprovalAlreadyDecidedError,
)
from .trust_engine import (
TrustScoreManager,
trust_engine,
TrustRecord,
RiskAdjustment,
RiskLevel,
TrustThresholds,
normalize_action_pattern,
)
from .graph_rag import (
TopologyGraph,
topology_graph,
ServiceNode,
DependencyEdge,
NodeType,
EdgeType,
HealthStatus,
BlastRadiusResult,
RootCauseResult,
FullAnalysisResult,
create_mock_topology,
)
__all__ = [
# Dry-Run
"DryRunEngine",
"DryRunResult",
"dry_run_engine",
# Multi-Sig
"MultiSigEngine",
"multi_sig_engine",
"ApprovalState",
"Signature",
"UserRole",
"ApprovalStatus",
"RISK_MATRIX",
# Exceptions
"ApprovalError",
"InsufficientPermissionError",
"DuplicateSignatureError",
"TOCTOUConflictError",
"ApprovalNotFoundError",
"ApprovalAlreadyDecidedError",
# Trust Engine
"TrustScoreManager",
"trust_engine",
"TrustRecord",
"RiskAdjustment",
"RiskLevel",
"TrustThresholds",
"normalize_action_pattern",
# GraphRAG
"TopologyGraph",
"topology_graph",
"ServiceNode",
"DependencyEdge",
"NodeType",
"EdgeType",
"HealthStatus",
"BlastRadiusResult",
"RootCauseResult",
"FullAnalysisResult",
"create_mock_topology",
]