-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathARCHITECTURE.json
More file actions
98 lines (94 loc) · 3.27 KB
/
Copy pathARCHITECTURE.json
File metadata and controls
98 lines (94 loc) · 3.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
{
"$schema": "https://raw.githubusercontent.com/microsoft/vscode/main/extensions/configuration-editing/schemas/devContainer.schema.json",
"name": "Orbit-DevOps Architecture",
"version": "1.0.0",
"description": "Enterprise Architecture Pattern for Orbit-DevOps - Windows System Diagnostic & Optimization",
"architecture": {
"layers": [
{
"name": "Diagnostic Layer",
"description": "Collects system metrics and health status",
"components": [
{
"name": "Core Diagnostic",
"path": "scripts/diagnostic/",
"scripts": ["SystemDiagnostic.ps1", "SystemDiagnosticUser.ps1"],
"responsibilities": ["Hardware info", "Disk metrics", "Service status", "Event logs"]
},
{
"name": "Analysis Engine",
"path": "scripts/analysis/",
"scripts": ["ScanStorage.ps1", "ScanTargets.ps1", "AnalyzeCursor.ps1"],
"responsibilities": ["Space usage calculation", "Pattern matching", "Target identification"]
}
]
},
{
"name": "Execution Layer",
"description": "Performs actions based on diagnostic data",
"components": [
{
"name": "Cleanup Engine",
"path": "scripts/cleanup/",
"scripts": ["ExecuteCleanup.ps1", "AdditionalCleanup.ps1", "ExecuteTotalCleanup.ps1"],
"responsibilities": ["File removal", "Docker pruning", "Cache clearing", "Safe execution"]
}
]
},
{
"name": "Utility Layer",
"description": "Support and configuration",
"components": [
{
"name": "Helpers",
"path": "scripts/utils/",
"scripts": ["check_environment.ps1", "verify_environment.ps1"],
"responsibilities": ["Pre-flight checks", "Environment setup", "Logging wrapper"]
}
]
}
],
"patterns": {
"design_patterns": [
{
"name": "Pipeline Pattern",
"description": "Diagnostic -> Analysis -> Execution workflow"
},
{
"name": "Dry-Run First",
"description": "Scripts verify actions before execution or offer 'Scan Only' modes"
},
{
"name": "Least Privilege",
"description": "Separation of User-mode scripts vs Admin-mode scripts"
}
],
"safety_mechanisms": [
"Non-destructive by default",
"Verbose logging to text files",
"Error handling blocks (Try/Catch)",
"Environment variable sanitization"
]
},
"data_flow": {
"standard_workflow": [
"User -> SystemDiagnosticUser.ps1 (Health Check)",
"SystemDiagnosticUser.ps1 -> Report.txt (Output)",
"User -> ScanStorage.ps1 (Identify Targets)",
"ScanStorage.ps1 -> Console/Log (Actionable Insights)",
"User -> AdditionalCleanup.ps1 (Safe Execution)",
"AdditionalCleanup.ps1 -> Disk (Free Space)"
]
}
},
"development": {
"setup": "scripts/utils/setup_environment.ps1",
"test": "Invoke-Pester tests/",
"lint": "Invoke-ScriptAnalyzer -Path .",
"requirements": {
"os": "Windows 10/11",
"powershell": ">= 5.1",
"modules": ["PSScriptAnalyzer", "Pester"]
}
}
}