@symbeon/orbit-devops 1.0.0

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.
Files changed (89) hide show
  1. package/.agent/skills/orbit-devops/SKILL.md +54 -0
  2. package/.github/ISSUE_TEMPLATE/bug_report.md +44 -0
  3. package/.github/ISSUE_TEMPLATE/feature_request.md +33 -0
  4. package/.github/PULL_REQUEST_TEMPLATE.md +51 -0
  5. package/.github/dependabot.yml +64 -0
  6. package/ARCHITECTURE.json +98 -0
  7. package/AdditionalCleanup.ps1 +70 -0
  8. package/AnalyzeCursor.ps1 +25 -0
  9. package/AppDataAudit.ps1 +16 -0
  10. package/CHANGELOG.md +83 -0
  11. package/CONFIG_LOG.md +35 -0
  12. package/CONTRIBUTING.md +203 -0
  13. package/CategorizedScan.ps1 +37 -0
  14. package/CategorizedScan_v2.ps1 +38 -0
  15. package/CheckAnaconda.ps1 +9 -0
  16. package/CheckAppData.ps1 +8 -0
  17. package/CheckAppDataRoaming.ps1 +8 -0
  18. package/CheckBackupSizes.ps1 +17 -0
  19. package/CheckCacheSize.ps1 +17 -0
  20. package/CheckNodeModules.ps1 +17 -0
  21. package/CheckSpace.ps1 +2 -0
  22. package/CheckTargetSizes.ps1 +17 -0
  23. package/CheckUserRoot.ps1 +10 -0
  24. package/DeepStorageAnalysis.ps1 +76 -0
  25. package/DetailedBloatAudit.ps1 +55 -0
  26. package/DetailedBloatAudit_v3.ps1 +50 -0
  27. package/DetailedProcessAudit.ps1 +43 -0
  28. package/DiagnosticoSistema.ps1 +155 -0
  29. package/ExecuteCleanup.ps1 +73 -0
  30. package/ExecuteTotalCleanup.ps1 +86 -0
  31. package/FinalCategorizedReport.ps1 +49 -0
  32. package/FinalDeepDive.ps1 +34 -0
  33. package/ForcePush.ps1 +31 -0
  34. package/ForensicRAMAudit.ps1 +26 -0
  35. package/ForensicRAMAudit_UTF8.ps1 +32 -0
  36. package/ForensicRAMAudit_v2.ps1 +25 -0
  37. package/ForensicRAMAudit_v3.ps1 +25 -0
  38. package/FullRAMReport_Local.txt +0 -0
  39. package/FullRAMReport_UTF8.txt +1400 -0
  40. package/GiantHunt.ps1 +26 -0
  41. package/GlobalRAMAudit.ps1 +57 -0
  42. package/LICENSE +21 -0
  43. package/MeasureSuspects.ps1 +17 -0
  44. package/NEXT_STEPS.md +35 -0
  45. package/Orbit.ps1 +40 -0
  46. package/PostRebootCleanup.ps1 +60 -0
  47. package/RAMAudit.ps1 +41 -0
  48. package/RAMAudit_v2.ps1 +24 -0
  49. package/README.md +58 -0
  50. package/RootAudit.ps1 +14 -0
  51. package/RunDiagnostic.ps1 +119 -0
  52. package/RunDiagnosticSimple.ps1 +42 -0
  53. package/SECURITY.md +67 -0
  54. package/SETUP.md +34 -0
  55. package/SafeSurgery.ps1 +69 -0
  56. package/ScanPrograms.ps1 +13 -0
  57. package/ScanRepoWaste.ps1 +45 -0
  58. package/ScanStorage.ps1 +41 -0
  59. package/ScanTargets.ps1 +39 -0
  60. package/SimpleSurgicalAudit.ps1 +22 -0
  61. package/SurgicalBloatAudit.ps1 +35 -0
  62. package/SurgicalScan.ps1 +28 -0
  63. package/SystemDiagnostic.ps1 +588 -0
  64. package/SystemDiagnosticSimple.ps1 +141 -0
  65. package/SystemDiagnosticUser.ps1 +92 -0
  66. package/SystemDiagnosticUser_v2.ps1 +36 -0
  67. package/UserAudit.ps1 +23 -0
  68. package/bin/orbit.js +99 -0
  69. package/check_environment.ps1 +104 -0
  70. package/deep_downloads_org_log.txt +15 -0
  71. package/diagnostic_error.txt +83 -0
  72. package/diskpart_log.txt +0 -0
  73. package/docs/DEPRECATED_USERNAME_CHANGE.md +138 -0
  74. package/docs/PROJECT_STRUCTURE.md +156 -0
  75. package/downloads_audit.txt +32 -0
  76. package/downloads_audit_clear.txt +27 -0
  77. package/downloads_org_log.txt +85 -0
  78. package/mcp/README.md +61 -0
  79. package/mcp/server.py +109 -0
  80. package/package.json +39 -0
  81. package/scripts/mac/diagnostic.sh +46 -0
  82. package/scripts/stack/Push-Stack.ps1 +41 -0
  83. package/scripts/stack/SnapshotEnv.ps1 +22 -0
  84. package/scripts/utils/DeepOrganizeDownloads.ps1 +82 -0
  85. package/scripts/utils/OrganizeDownloads.ps1 +40 -0
  86. package/scripts/wsl/CompactWSL.ps1 +60 -0
  87. package/setup_environment.ps1 +59 -0
  88. package/sizes.txt +6 -0
  89. package/verify_environment.ps1 +46 -0
@@ -0,0 +1,54 @@
1
+ ---
2
+ name: orbit-devops
3
+ description: Enterprise-grade toolkit for Windows workspace diagnostic, optimization, and lifecycle management.
4
+ ---
5
+
6
+ # Orbit-DevOps Skill
7
+
8
+ This skill empowers AI agents to manage, diagnose, and optimize a developer's Windows environment using the **Orbit-DevOps** toolkit. It focuses on storage reclamation (Docker, WSL2, Node.js), system health monitoring, and environment reproducibility.
9
+
10
+ ## Core Principles
11
+
12
+ 1. **Scan Before Action**: Always run diagnostics or analysis before performing any cleanup or optimization.
13
+ 2. **Least Privilege**: Distinguish between user-mode scripts and those requiring Administrator privileges.
14
+ 3. **Reproducibility First**: Encourage the use of environment snapshots (`dev-stack.json`) before making significant changes.
15
+ 4. **Machine-Readable Control**: Refer to `SYSTEM_CONTROL_MAP.json` for precise script parameters and side effects.
16
+
17
+ ## Common Workflows
18
+
19
+ ### 1. System Health & Storage Audit
20
+ When asked about machine performance or disk space:
21
+ 1. Run `scripts/diagnostic/SystemDiagnosticUser.ps1` for a quick health overview.
22
+ 2. Run `scripts/analysis/ScanStorage.ps1` to find large folders in the user profile.
23
+ 3. Run `scripts/analysis/ScanTargets.ps1` specifically for Docker, WSL, and AppData hotspots.
24
+
25
+ ### 2. Workspace Optimization (Sanitation)
26
+ To reclaim space safely:
27
+ 1. Execute `AdditionalCleanup.ps1` for browser caches and temp files.
28
+ 2. Clean `npm-cache` using `npm cache clean --force` if large Node.js footprints are detected.
29
+ 3. Use `scripts/wsl/CompactWSL.ps1` (requires admin) to "squeeze" WSL2 virtual disks.
30
+
31
+ ### 3. Environment DNA Management
32
+ To ensure a portable and safe environment:
33
+ 1. Use `scripts/stack/SnapshotEnv.ps1` to generate a local `dev-stack.json`.
34
+ 2. Use `scripts/stack/Push-Stack.ps1` to sync the environment DNA to the `SH1W4/stack` repository.
35
+
36
+ ## Capabilities Mapping
37
+
38
+ | Capability | Command / Script | MCP Tool | Risk Level |
39
+ |------------|------------------|----------|------------|
40
+ | Health Check | `SystemDiagnosticUser.ps1` | `get_system_health` | Low |
41
+ | Storage Audit | `ScanStorage.ps1` | `analyze_storage` | Low |
42
+ | Safe Cleanup | `AdditionalCleanup.ps1` | `run_safe_cleanup` | Medium |
43
+ | WSL Compact | `CompactWSL.ps1` | `compact_wsl_disks` | High (Admin) |
44
+ | Stack Sync | `Push-Stack.ps1` | `snapshot_environment` | Low |
45
+
46
+ ## AI Configuration
47
+
48
+ Agents should use the **MCP Server** located at `mcp/server.py` as the primary interface for automated control. See `mcp/README.md` for connection details.
49
+
50
+ ## Troubleshooting
51
+
52
+ - **Path Issues**: Always use absolute paths or resolve them relative to the repository root.
53
+ - **Admin Access**: If a script fails with "Access Denied", verify if it requires administrative privileges.
54
+ - **WSL Errors**: Ensure WSL is not being held by active processes before running compaction.
@@ -0,0 +1,44 @@
1
+ ---
2
+ name: 🐛 Bug Report
3
+ about: Create a report to help us improve
4
+ title: '[BUG] '
5
+ labels: bug, needs-triage
6
+ assignees: ''
7
+ ---
8
+
9
+ ## 🐛 Bug Description
10
+ A clear and concise description of the bug.
11
+
12
+ ## 🔄 Steps To Reproduce
13
+ 1. Go to '...'
14
+ 2. Click on '....'
15
+ 3. Scroll down to '....'
16
+ 4. See error
17
+
18
+ ## 🤔 Expected Behavior
19
+ A clear and concise description of what you expected to happen.
20
+
21
+ ## 📷 Screenshots
22
+ If applicable, add screenshots to help explain your problem.
23
+
24
+ ## 🔧 Environment
25
+ - OS: [e.g. Windows 11, Ubuntu 22.04, macOS 14.0]
26
+ - Python Version: [e.g. 3.9, 3.10, 3.11]
27
+ - Orbit-DevOps Version: [e.g. 0.1.0]
28
+ - Installation Method: [e.g. pip, source, Docker]
29
+
30
+ ## 📝 Additional Context
31
+ Add any other context about the problem here.
32
+
33
+ ## 🔍 Logs
34
+ <details>
35
+ <summary>Relevant Log Output</summary>
36
+
37
+ ```
38
+ Paste any relevant logs here
39
+ ```
40
+ </details>
41
+
42
+ ## 🧪 Possible Solution
43
+ If you have ideas on how to solve this issue, please share them here.
44
+
@@ -0,0 +1,33 @@
1
+ ---
2
+ name: 🚀 Feature Request
3
+ about: Suggest an idea for this project
4
+ title: '[FEATURE] '
5
+ labels: enhancement, needs-triage
6
+ assignees: ''
7
+ ---
8
+
9
+ ## 🚀 Feature Description
10
+ A clear and concise description of the feature you'd like to see implemented.
11
+
12
+ ## 🤔 Problem Statement
13
+ Is your feature request related to a problem? Please describe.
14
+ Ex. I'm always frustrated when [...]
15
+
16
+ ## 💡 Proposed Solution
17
+ A clear and concise description of what you want to happen.
18
+
19
+ ## 🔄 Alternatives Considered
20
+ A clear and concise description of any alternative solutions or features you've considered.
21
+
22
+ ## 📝 Additional Context
23
+ Add any other context, examples, or screenshots about the feature request here.
24
+
25
+ ## 🔍 Implementation Ideas
26
+ If you have any thoughts on how this could be implemented, please share.
27
+
28
+ ## 🎯 Business Value
29
+ How would this feature benefit users and the project?
30
+
31
+ ## 📊 Success Metrics
32
+ How could we measure the success of this feature if implemented?
33
+
@@ -0,0 +1,51 @@
1
+ # 🚀 Pull Request
2
+
3
+ ## 📄 Description
4
+ A clear and concise description of what this PR achieves.
5
+
6
+ ## 🔗 Related Issues
7
+ Fixes #(issue_number)
8
+
9
+ ## 🧪 Testing Performed
10
+ Describe the tests you've performed to verify your changes:
11
+ - [ ] Unit tests
12
+ - [ ] Integration tests
13
+ - [ ] Manual testing
14
+ - [ ] Performance testing (if applicable)
15
+
16
+ ## 📝 Type of Change
17
+ - [ ] 🐛 Bug fix (non-breaking change which fixes an issue)
18
+ - [ ] ✨ New feature (non-breaking change which adds functionality)
19
+ - [ ] 💥 Breaking change (fix or feature that would cause existing functionality to not work as expected)
20
+ - [ ] 📚 Documentation update
21
+ - [ ] 🧹 Code refactoring (no functional changes)
22
+ - [ ] ⚡ Performance improvement
23
+ - [ ] 🔒 Security fix
24
+ - [ ] 🧪 Test updates
25
+ - [ ] 🛠️ CI/CD or build system changes
26
+
27
+ ## 🧠 Implementation Details
28
+ Brief explanation of the implementation approach.
29
+
30
+ ## 📸 Screenshots
31
+ If applicable, add screenshots to help explain your changes.
32
+
33
+ ## 🔍 Review Checklist
34
+ - [ ] My code follows the style guidelines of this project
35
+ - [ ] I have performed a self-review of my own code
36
+ - [ ] I have commented my code, particularly in hard-to-understand areas
37
+ - [ ] I have made corresponding changes to the documentation
38
+ - [ ] My changes generate no new warnings
39
+ - [ ] I have added tests that prove my fix is effective or that my feature works
40
+ - [ ] New and existing unit tests pass locally with my changes
41
+ - [ ] Any dependent changes have been merged and published
42
+
43
+ ## 📊 Performance Impact
44
+ Describe any performance impacts (positive or negative).
45
+
46
+ ## 🔒 Security Considerations
47
+ Explain any security implications of your changes.
48
+
49
+ ## 📋 Additional Notes
50
+ Any additional information that would be helpful to reviewers.
51
+
@@ -0,0 +1,64 @@
1
+ # 🤖 Dependabot Configuration - Enterprise Security
2
+ # Automated dependency updates and security patches
3
+
4
+ version: 2
5
+
6
+ updates:
7
+ # Python dependencies
8
+ - package-ecosystem: "pip"
9
+ directory: "/"
10
+ schedule:
11
+ interval: "weekly"
12
+ day: "monday"
13
+ time: "09:00"
14
+ timezone: "UTC"
15
+ open-pull-requests-limit: 5
16
+ reviewers:
17
+ - "NEO-SH1W4"
18
+ assignees:
19
+ - "NEO-SH1W4"
20
+ commit-message:
21
+ prefix: "⬆️ deps"
22
+ prefix-development: "⬆️ deps-dev"
23
+ include: "scope"
24
+ labels:
25
+ - "dependencies"
26
+ - "automated"
27
+ target-branch: "develop"
28
+
29
+ # GitHub Actions
30
+ - package-ecosystem: "github-actions"
31
+ directory: "/"
32
+ schedule:
33
+ interval: "weekly"
34
+ day: "tuesday"
35
+ time: "09:00"
36
+ timezone: "UTC"
37
+ open-pull-requests-limit: 3
38
+ reviewers:
39
+ - "NEO-SH1W4"
40
+ commit-message:
41
+ prefix: "⬆️ actions"
42
+ include: "scope"
43
+ labels:
44
+ - "github-actions"
45
+ - "automated"
46
+
47
+ # Docker
48
+ - package-ecosystem: "docker"
49
+ directory: "/"
50
+ schedule:
51
+ interval: "weekly"
52
+ day: "wednesday"
53
+ time: "09:00"
54
+ timezone: "UTC"
55
+ open-pull-requests-limit: 2
56
+ reviewers:
57
+ - "NEO-SH1W4"
58
+ commit-message:
59
+ prefix: "⬆️ docker"
60
+ include: "scope"
61
+ labels:
62
+ - "docker"
63
+ - "automated"
64
+
@@ -0,0 +1,98 @@
1
+ {
2
+ "$schema": "https://raw.githubusercontent.com/microsoft/vscode/main/extensions/configuration-editing/schemas/devContainer.schema.json",
3
+ "name": "Orbit-DevOps Architecture",
4
+ "version": "1.0.0",
5
+ "description": "Enterprise Architecture Pattern for Orbit-DevOps - Windows System Diagnostic & Optimization",
6
+
7
+ "architecture": {
8
+ "layers": [
9
+ {
10
+ "name": "Diagnostic Layer",
11
+ "description": "Collects system metrics and health status",
12
+ "components": [
13
+ {
14
+ "name": "Core Diagnostic",
15
+ "path": "scripts/diagnostic/",
16
+ "scripts": ["SystemDiagnostic.ps1", "SystemDiagnosticUser.ps1"],
17
+ "responsibilities": ["Hardware info", "Disk metrics", "Service status", "Event logs"]
18
+ },
19
+ {
20
+ "name": "Analysis Engine",
21
+ "path": "scripts/analysis/",
22
+ "scripts": ["ScanStorage.ps1", "ScanTargets.ps1", "AnalyzeCursor.ps1"],
23
+ "responsibilities": ["Space usage calculation", "Pattern matching", "Target identification"]
24
+ }
25
+ ]
26
+ },
27
+ {
28
+ "name": "Execution Layer",
29
+ "description": "Performs actions based on diagnostic data",
30
+ "components": [
31
+ {
32
+ "name": "Cleanup Engine",
33
+ "path": "scripts/cleanup/",
34
+ "scripts": ["ExecuteCleanup.ps1", "AdditionalCleanup.ps1", "ExecuteTotalCleanup.ps1"],
35
+ "responsibilities": ["File removal", "Docker pruning", "Cache clearing", "Safe execution"]
36
+ }
37
+ ]
38
+ },
39
+ {
40
+ "name": "Utility Layer",
41
+ "description": "Support and configuration",
42
+ "components": [
43
+ {
44
+ "name": "Helpers",
45
+ "path": "scripts/utils/",
46
+ "scripts": ["check_environment.ps1", "verify_environment.ps1"],
47
+ "responsibilities": ["Pre-flight checks", "Environment setup", "Logging wrapper"]
48
+ }
49
+ ]
50
+ }
51
+ ],
52
+
53
+ "patterns": {
54
+ "design_patterns": [
55
+ {
56
+ "name": "Pipeline Pattern",
57
+ "description": "Diagnostic -> Analysis -> Execution workflow"
58
+ },
59
+ {
60
+ "name": "Dry-Run First",
61
+ "description": "Scripts verify actions before execution or offer 'Scan Only' modes"
62
+ },
63
+ {
64
+ "name": "Least Privilege",
65
+ "description": "Separation of User-mode scripts vs Admin-mode scripts"
66
+ }
67
+ ],
68
+ "safety_mechanisms": [
69
+ "Non-destructive by default",
70
+ "Verbose logging to text files",
71
+ "Error handling blocks (Try/Catch)",
72
+ "Environment variable sanitization"
73
+ ]
74
+ },
75
+
76
+ "data_flow": {
77
+ "standard_workflow": [
78
+ "User -> SystemDiagnosticUser.ps1 (Health Check)",
79
+ "SystemDiagnosticUser.ps1 -> Report.txt (Output)",
80
+ "User -> ScanStorage.ps1 (Identify Targets)",
81
+ "ScanStorage.ps1 -> Console/Log (Actionable Insights)",
82
+ "User -> AdditionalCleanup.ps1 (Safe Execution)",
83
+ "AdditionalCleanup.ps1 -> Disk (Free Space)"
84
+ ]
85
+ }
86
+ },
87
+
88
+ "development": {
89
+ "setup": "scripts/utils/setup_environment.ps1",
90
+ "test": "Invoke-Pester tests/",
91
+ "lint": "Invoke-ScriptAnalyzer -Path .",
92
+ "requirements": {
93
+ "os": "Windows 10/11",
94
+ "powershell": ">= 5.1",
95
+ "modules": ["PSScriptAnalyzer", "Pester"]
96
+ }
97
+ }
98
+ }
@@ -0,0 +1,70 @@
1
+ # Script de Limpeza Adicional
2
+ # Pode ser executado sem privilégios de admin
3
+
4
+ $logPath = "$env:USERPROFILE\Desktop\DIAGNOSTIC_BACKUP\ADDITIONAL_CLEANUP_LOG.txt"
5
+
6
+ function Write-Log {
7
+ param($Message)
8
+ $line = "[$(Get-Date -Format 'HH:mm:ss')] $Message"
9
+ Write-Host $line -ForegroundColor Cyan
10
+ $line | Out-File -FilePath $logPath -Append -Encoding utf8
11
+ }
12
+
13
+ Write-Log "=== LIMPEZA ADICIONAL ==="
14
+
15
+ # 1. Cache do Google Chrome
16
+ Write-Log "Limpando cache do Google Chrome..."
17
+ $chromePath = "$env:USERPROFILE\AppData\Local\Google\Chrome\User Data\Default\Cache"
18
+ if (Test-Path $chromePath) {
19
+ $before = (Get-ChildItem $chromePath -Recurse -Force -ErrorAction SilentlyContinue | Measure-Object -Property Length -Sum).Sum / 1GB
20
+ Remove-Item "$chromePath\*" -Recurse -Force -ErrorAction SilentlyContinue
21
+ Write-Log "Chrome cache: ~$([math]::Round($before, 2)) GB limpo"
22
+ }
23
+
24
+ # 2. Cache do Edge
25
+ Write-Log "Limpando cache do Edge..."
26
+ $edgePath = "$env:USERPROFILE\AppData\Local\Microsoft\Edge\User Data\Default\Cache"
27
+ if (Test-Path $edgePath) {
28
+ $before = (Get-ChildItem $edgePath -Recurse -Force -ErrorAction SilentlyContinue | Measure-Object -Property Length -Sum).Sum / 1GB
29
+ Remove-Item "$edgePath\*" -Recurse -Force -ErrorAction SilentlyContinue
30
+ Write-Log "Edge cache: ~$([math]::Round($before, 2)) GB limpo"
31
+ }
32
+
33
+ # 3. Cache geral do usuário
34
+ Write-Log "Limpando .cache do usuário..."
35
+ $cachePath = "$env:USERPROFILE\.cache"
36
+ if (Test-Path $cachePath) {
37
+ $before = (Get-ChildItem $cachePath -Recurse -Force -ErrorAction SilentlyContinue | Measure-Object -Property Length -Sum).Sum / 1GB
38
+ Remove-Item "$cachePath\*" -Recurse -Force -ErrorAction SilentlyContinue
39
+ Write-Log ".cache: ~$([math]::Round($before, 2)) GB limpo"
40
+ }
41
+
42
+ # 4. Downloads - Instaladores
43
+ Write-Log "Removendo instaladores antigos de Downloads..."
44
+ $downloads = "$env:USERPROFILE\Downloads"
45
+ $installers = @("*.exe", "*.msi")
46
+ foreach ($pattern in $installers) {
47
+ Get-ChildItem $downloads -Filter $pattern -File | Where-Object {
48
+ $_.Name -match "Setup|Installer|Install|Driver|NVIDIA|Google"
49
+ } | ForEach-Object {
50
+ $sizeMB = [math]::Round($_.Length / 1MB, 0)
51
+ Write-Log "Removendo: $($_.Name) ($sizeMB MB)"
52
+ Remove-Item $_.FullName -Force -ErrorAction SilentlyContinue
53
+ }
54
+ }
55
+
56
+ # 5. Temp do usuário (arquivos antigos)
57
+ Write-Log "Limpando arquivos temporários antigos..."
58
+ $tempPath = "$env:USERPROFILE\AppData\Local\Temp"
59
+ $cutoffDate = (Get-Date).AddDays(-7)
60
+ Get-ChildItem $tempPath -Recurse -Force -ErrorAction SilentlyContinue |
61
+ Where-Object { $_.LastWriteTime -lt $cutoffDate } |
62
+ Remove-Item -Force -Recurse -ErrorAction SilentlyContinue
63
+
64
+ # 6. Status Final
65
+ Write-Log "=== RESULTADO ==="
66
+ $disk = Get-WmiObject Win32_LogicalDisk -Filter "DeviceID='C:'"
67
+ $freeGB = [math]::Round($disk.FreeSpace / 1GB, 2)
68
+ Write-Log "Espaço livre agora: $freeGB GB"
69
+
70
+ Write-Log "Limpeza concluída!"
@@ -0,0 +1,25 @@
1
+
2
+ $path = "$env:USERPROFILE\AppData\Roaming\Cursor"
3
+ if (Test-Path $path) {
4
+ Write-Host "Analyzing Cursor Data at $path..."
5
+
6
+ # Check top level folders
7
+ Get-ChildItem $path -Directory | ForEach-Object {
8
+ $size = (Get-ChildItem $_.FullName -Recurse -File -ErrorAction SilentlyContinue | Measure-Object -Property Length -Sum).Sum / 1MB
9
+ Write-Host "$($_.Name): $([math]::Round($size, 0)) MB"
10
+
11
+ # If it's "User Data" or "Code", dive deeper
12
+ if ($_.Name -match "User|Code|Storage") {
13
+ Write-Host " --- Deep dive into $($_.Name) ---"
14
+ Get-ChildItem $_.FullName -Directory | ForEach-Object {
15
+ $subSize = (Get-ChildItem $_.FullName -Recurse -File -ErrorAction SilentlyContinue | Measure-Object -Property Length -Sum).Sum / 1MB
16
+ if ($subSize -gt 100) {
17
+ Write-Host " $($_.Name): $([math]::Round($subSize, 0)) MB"
18
+ }
19
+ }
20
+ }
21
+ }
22
+ }
23
+ else {
24
+ Write-Host "Cursor path not found in Roaming."
25
+ }
@@ -0,0 +1,16 @@
1
+ $ErrorActionPreference = "SilentlyContinue"
2
+ $path = "$env:USERPROFILE\AppData\Local"
3
+ $folders = Get-ChildItem -Path $path -Directory
4
+
5
+ Write-Host "=== APPDATA\LOCAL AUDIT ===" -ForegroundColor Cyan
6
+ $results = foreach ($f in $folders) {
7
+ $size = Get-ChildItem $f.FullName -Recurse -Force -ErrorAction SilentlyContinue | Measure-Object -Property Length -Sum
8
+ if ($size.Sum -gt 100MB) {
9
+ [PSCustomObject]@{
10
+ Folder = $f.Name
11
+ SizeGB = [math]::Round($size.Sum / 1GB, 2)
12
+ }
13
+ }
14
+ }
15
+
16
+ $results | Sort-Object SizeGB -Descending | Format-Table -AutoSize
package/CHANGELOG.md ADDED
@@ -0,0 +1,83 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+ ## [1.0.0] - 2025-12-14
9
+
10
+ ### Added
11
+ - Initial release of Windows System Diagnostic & Optimization Toolkit
12
+ - Core diagnostic scripts:
13
+ - `SystemDiagnostic.ps1` - Full system diagnostic with admin privileges
14
+ - `SystemDiagnosticUser.ps1` - User-level diagnostic without admin
15
+ - `SystemDiagnosticSimple.ps1` - Lightweight diagnostic scan
16
+ - Storage analysis tools:
17
+ - `ScanStorage.ps1` - Deep storage analysis
18
+ - `ScanTargets.ps1` - Targeted scan for Docker, AppData, node_modules
19
+ - `AnalyzeCursor.ps1` - Cursor editor cache analysis
20
+ - `CheckAppData.ps1` - AppData folder analysis
21
+ - Cleanup scripts:
22
+ - `AdditionalCleanup.ps1` - Safe cleanup (browser caches, downloads, temp)
23
+ - `ExecuteCleanup.ps1` - Standard cleanup (Cursor backup, Docker, temp)
24
+ - `ExecuteTotalCleanup.ps1` - Aggressive cleanup including Anaconda
25
+ - `PostRebootCleanup.ps1` - Post-reboot optimization tasks
26
+ - Utility scripts:
27
+ - `check_environment.ps1` - Verify development tools installation
28
+ - `setup_environment.ps1` - Configure diagnostic environment
29
+ - `verify_environment.ps1` - Validate setup
30
+ - Documentation:
31
+ - Comprehensive README.md with usage examples
32
+ - CONTRIBUTING.md with development guidelines
33
+ - MIT License
34
+ - Detailed inline documentation in all scripts
35
+
36
+ ### Features
37
+ - **Safe & Non-Destructive:** Preserves user data and development environments
38
+ - **Detailed Logging:** All actions logged to timestamped files
39
+ - **Modular Design:** Use individual scripts or complete workflow
40
+ - **No Admin Required:** Most scripts work without elevation
41
+ - **Smart Cleanup:** Identifies and removes:
42
+ - Duplicate Cursor backups (6.5 GB typical)
43
+ - Unused Docker images and containers (20-25 GB typical)
44
+ - Browser caches (4-6 GB typical)
45
+ - Old installers in Downloads (2-3 GB typical)
46
+ - Anaconda/Conda distributions (9-10 GB typical)
47
+ - Temporary files and caches (1-2 GB typical)
48
+
49
+ ### Real-World Results
50
+ - Successfully recovered 19.7 GB (+82% increase) on development machine
51
+ - Reduced disk usage from critical 5% to healthy 9.2%
52
+ - Preserved all development data and configurations
53
+ - Improved system responsiveness
54
+
55
+ ### Known Limitations
56
+ - Windows-only (PowerShell-based)
57
+ - Some cleanup operations require administrator privileges
58
+ - Hibernation disable requires admin rights
59
+ - VSS (Volume Shadow Copy) operations require admin rights
60
+
61
+ ## [Unreleased]
62
+
63
+ ### Planned
64
+ - Linux/macOS versions of diagnostic scripts
65
+ - GUI wrapper for easier use
66
+ - Automated scheduled diagnostics
67
+ - JSON/CSV export for reports
68
+ - Integration with monitoring tools
69
+ - Machine learning-based cleanup recommendations
70
+
71
+ ---
72
+
73
+ ## Version History
74
+
75
+ ### Version Numbering
76
+ - **Major (X.0.0):** Breaking changes, major new features
77
+ - **Minor (0.X.0):** New features, backward compatible
78
+ - **Patch (0.0.X):** Bug fixes, minor improvements
79
+
80
+ ### Support
81
+ - Latest version: Full support
82
+ - Previous major version: Security fixes only
83
+ - Older versions: Community support only
package/CONFIG_LOG.md ADDED
@@ -0,0 +1,35 @@
1
+ # Relatório de Configuração do Ambiente
2
+ Data: 2025-06-01 20:06
3
+
4
+ ## Configurações Realizadas
5
+ 1. PYTHONPATH configurado para: C:\Users\JX\Desktop\PROJETOS\PLATAFORMAS\SYMBEON
6
+ 2. Ambiente virtual Python criado em: .venv
7
+
8
+ ## Estado do Ambiente
9
+ - Python: Python 3.11.5
10
+ - Rust: rustc 1.87.0 (17067e9ac 2025-05-09)
11
+ - WSL: Instalado
12
+
13
+ ## Próximos Passos
14
+ 1. Instalar ferramentas essenciais via Microsoft Store:
15
+ - App Installer (para winget)
16
+ - Windows Terminal (recomendado)
17
+
18
+ 2. Após instalar App Installer, executar:
19
+ `powershell
20
+ winget install --id Git.Git
21
+ winget install --id Microsoft.VisualStudioCode
22
+ winget install --id OpenJS.NodeJS.LTS
23
+ winget install --id Docker.DockerDesktop
24
+ `
25
+
26
+ 3. Configurar ambiente virtual:
27
+ `powershell
28
+ .\.venv\Scripts\Activate.ps1
29
+ pip install fastapi uvicorn pandas numpy torch transformers pytest black mypy ruff
30
+ `
31
+
32
+ ## Observações
33
+ - WSL já está instalado, facilitará a configuração do Docker posteriormente
34
+ - Rust está configurado corretamente com cargo no PATH
35
+ - Python está instalado e configurado corretamente