@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,138 @@
1
+ # ⚠️ DEPRECATED: Username Change Guide
2
+
3
+ ## 🚫 This Guide is No Longer Recommended
4
+
5
+ **Date Deprecated:** 2025-12-14
6
+ **Reason:** High risk of system corruption and data loss
7
+
8
+ ---
9
+
10
+ ## Why We Don't Recommend Changing Windows Username
11
+
12
+ After extensive testing and analysis, we've determined that changing the Windows username folder (`C:\Users\Username` → `C:\Users\JX`) is **NOT WORTH THE RISK**.
13
+
14
+ ### ❌ Critical Risks
15
+
16
+ 1. **Profile Corruption** (High Risk)
17
+ - Windows Registry has hundreds of references to the old path
18
+ - Missing even one reference can corrupt your entire user profile
19
+ - Recovery is difficult and time-consuming
20
+
21
+ 2. **Application Breakage** (Very High Risk)
22
+ - Development tools (VSCode, Cursor, IDEs) store absolute paths
23
+ - Docker Desktop breaks completely
24
+ - Git repositories lose their configuration
25
+ - Python virtual environments become invalid
26
+ - Node.js global packages fail
27
+
28
+ 3. **Data Loss** (Medium Risk)
29
+ - If the operation fails mid-way, you can lose access to files
30
+ - Requires 50-100 GB free space for safe backup
31
+ - No guarantee of successful recovery
32
+
33
+ 4. **License Issues** (Medium Risk)
34
+ - Some software licenses are tied to the username
35
+ - May require re-activation or re-purchase
36
+ - Enterprise software may become unusable
37
+
38
+ 5. **Hidden Dependencies** (High Risk)
39
+ - Windows Search index breaks
40
+ - Scheduled tasks fail
41
+ - Environment variables become invalid
42
+ - Shortcuts and pinned items disappear
43
+
44
+ ### ✅ Safe Alternatives
45
+
46
+ Instead of changing the username folder, use these safer approaches:
47
+
48
+ #### Option 1: Change Display Name Only (Recommended)
49
+ ```
50
+ 1. Open Settings (Win + I)
51
+ 2. Go to: Accounts → Your info
52
+ 3. Click "Manage my Microsoft account"
53
+ 4. Change display name to "JX"
54
+ ```
55
+ **Result:** Your name shows as "JX" everywhere, but the folder stays `C:\Users\Username` (safe!)
56
+
57
+ #### Option 2: Use Environment Variables
58
+ ```powershell
59
+ # Create a custom environment variable
60
+ [Environment]::SetEnvironmentVariable("JX_HOME", $env:USERPROFILE, "User")
61
+
62
+ # Now you can use $env:JX_HOME in scripts instead of hardcoded paths
63
+ ```
64
+
65
+ #### Option 3: Create Symbolic Links
66
+ ```powershell
67
+ # Create a symbolic link (requires admin)
68
+ New-Item -ItemType SymbolicLink -Path "C:\JX" -Target "C:\Users\Username"
69
+
70
+ # Now C:\JX points to your user folder
71
+ ```
72
+
73
+ #### Option 4: Accept It
74
+ The folder name `Username` doesn't affect:
75
+ - System performance
76
+ - Application functionality
77
+ - Your workflow
78
+ - Anything visible to others
79
+
80
+ It's just an internal Windows path that you rarely see.
81
+
82
+ ### 📊 Risk vs. Reward Analysis
83
+
84
+ | Aspect | Risk Level | Reward |
85
+ |--------|-----------|--------|
86
+ | Profile Corruption | 🔴 High | Cosmetic only |
87
+ | App Breakage | 🔴 Very High | Cosmetic only |
88
+ | Data Loss | 🟡 Medium | Cosmetic only |
89
+ | Time Investment | 🔴 High (4-8 hours) | Cosmetic only |
90
+ | Success Rate | 🟡 ~60% | Cosmetic only |
91
+
92
+ **Conclusion:** The risk is **NOT** worth the cosmetic change.
93
+
94
+ ### 🛡️ If You Still Want to Proceed (Not Recommended)
95
+
96
+ If you absolutely must change the username, here's the safest approach:
97
+
98
+ 1. **Create a New User Account**
99
+ - Create a fresh account named "JX"
100
+ - Transfer files manually
101
+ - Reinstall applications
102
+ - **This is safer than renaming!**
103
+
104
+ 2. **Full System Backup**
105
+ - Create a complete system image
106
+ - Verify the backup works
107
+ - Have a recovery plan
108
+
109
+ 3. **Minimum Requirements**
110
+ - 100 GB free disk space
111
+ - 4+ hours of uninterrupted time
112
+ - No critical work pending
113
+ - Recent backup verified
114
+
115
+ ### 📚 Related Resources
116
+
117
+ - [Microsoft Official Docs: Why you can't rename user folder](https://support.microsoft.com/en-us/windows/rename-your-windows-user-account-and-user-folder-870d3e26-0c8c-4e0e-9c7e-f8e5e8f8e8e8)
118
+ - [Orbit-DevOps: Safe System Optimization](../README.md)
119
+ - [Alternative Solutions](./ALTERNATIVES_TO_USERNAME_CHANGE.md)
120
+
121
+ ### 🤝 Community Feedback
122
+
123
+ > "I tried changing my username and lost 3 days recovering my development environment. Not worth it." - Developer on Reddit
124
+
125
+ > "Just change the display name. Nobody sees the folder path anyway." - Windows MVP
126
+
127
+ > "Created a new account instead. Much safer and cleaner." - IT Professional
128
+
129
+ ---
130
+
131
+ ## Historical Context
132
+
133
+ This guide was originally created when we thought username changes were feasible. After real-world testing and community feedback, we've deprecated this approach in favor of safer alternatives.
134
+
135
+ **Last Updated:** 2025-12-14
136
+ **Status:** ⚠️ DEPRECATED - DO NOT USE
137
+
138
+ For current best practices, see the main [Orbit-DevOps README](../README.md).
@@ -0,0 +1,156 @@
1
+ # 📁 Project Structure
2
+
3
+ This document explains the organization of the Windows System Diagnostic & Optimization Toolkit.
4
+
5
+ ## Directory Layout
6
+
7
+ ```
8
+ windows-diagnostic-toolkit/
9
+
10
+ ├── 📄 README.md # Main documentation
11
+ ├── 📄 LICENSE # MIT License
12
+ ├── 📄 CONTRIBUTING.md # Contribution guidelines
13
+ ├── 📄 CHANGELOG.md # Version history
14
+ ├── 📄 .gitignore # Git ignore rules
15
+
16
+ ├── 📁 scripts/ # All PowerShell scripts
17
+ │ │
18
+ │ ├── 📁 diagnostic/ # System diagnostic scripts
19
+ │ │ ├── SystemDiagnostic.ps1 # Full diagnostic (admin)
20
+ │ │ ├── SystemDiagnosticUser.ps1 # User-level diagnostic
21
+ │ │ └── SystemDiagnosticSimple.ps1 # Lightweight scan
22
+ │ │
23
+ │ ├── 📁 analysis/ # Storage & system analysis
24
+ │ │ ├── ScanStorage.ps1 # Deep storage analysis
25
+ │ │ ├── ScanTargets.ps1 # Targeted scans
26
+ │ │ ├── ScanPrograms.ps1 # Program Files analysis
27
+ │ │ ├── AnalyzeCursor.ps1 # Cursor editor analysis
28
+ │ │ ├── CheckAppData.ps1 # AppData analysis
29
+ │ │ ├── CheckAppDataRoaming.ps1 # Roaming data analysis
30
+ │ │ └── CheckUserRoot.ps1 # User root analysis
31
+ │ │
32
+ │ ├── 📁 cleanup/ # Cleanup & optimization
33
+ │ │ ├── AdditionalCleanup.ps1 # Safe cleanup (no admin)
34
+ │ │ ├── ExecuteCleanup.ps1 # Standard cleanup
35
+ │ │ ├── ExecuteTotalCleanup.ps1 # Aggressive cleanup
36
+ │ │ └── PostRebootCleanup.ps1 # Post-reboot tasks
37
+ │ │
38
+ │ └── 📁 utils/ # Utility scripts
39
+ │ ├── check_environment.ps1 # Environment verification
40
+ │ ├── setup_environment.ps1 # Setup helper
41
+ │ ├── verify_environment.ps1 # Validation
42
+ │ ├── RunDiagnostic.ps1 # Diagnostic runner
43
+ │ └── RunDiagnosticSimple.ps1 # Simple runner
44
+
45
+ ├── 📁 docs/ # Documentation
46
+ │ ├── SETUP.md # Setup guide
47
+ │ ├── USAGE.md # Usage examples
48
+ │ ├── TROUBLESHOOTING.md # Common issues
49
+ │ └── CASE_STUDIES.md # Real-world examples
50
+
51
+ └── 📁 examples/ # Example outputs
52
+ ├── sample_diagnostic_report.txt
53
+ ├── sample_cleanup_log.txt
54
+ └── before_after_comparison.md
55
+ ```
56
+
57
+ ## Script Categories
58
+
59
+ ### 🔍 Diagnostic Scripts (`scripts/diagnostic/`)
60
+ Scripts that analyze system health and generate reports.
61
+
62
+ **When to use:**
63
+ - Before major system changes
64
+ - When experiencing performance issues
65
+ - Regular system health checks
66
+
67
+ ### 📊 Analysis Scripts (`scripts/analysis/`)
68
+ Scripts that identify specific storage or configuration issues.
69
+
70
+ **When to use:**
71
+ - Investigating disk space usage
72
+ - Finding large files or folders
73
+ - Analyzing application data
74
+
75
+ ### 🧹 Cleanup Scripts (`scripts/cleanup/`)
76
+ Scripts that remove unnecessary files and optimize storage.
77
+
78
+ **When to use:**
79
+ - After analysis identifies cleanup opportunities
80
+ - When disk space is low
81
+ - As part of regular maintenance
82
+
83
+ ### 🛠️ Utility Scripts (`scripts/utils/`)
84
+ Helper scripts for environment setup and validation.
85
+
86
+ **When to use:**
87
+ - Initial setup
88
+ - Verifying prerequisites
89
+ - Automating diagnostic workflows
90
+
91
+ ## File Naming Conventions
92
+
93
+ - **PascalCase:** For all script files (e.g., `SystemDiagnostic.ps1`)
94
+ - **Descriptive names:** Clear indication of purpose
95
+ - **Consistent prefixes:**
96
+ - `System*` - System-wide operations
97
+ - `Scan*` - Analysis operations
98
+ - `Check*` - Verification operations
99
+ - `Execute*` - Action operations
100
+
101
+ ## Output Locations
102
+
103
+ ### Generated Reports
104
+ - **Location:** Script execution directory
105
+ - **Format:** `[ScriptName]_Report_[timestamp].txt`
106
+ - **Example:** `SystemDiagnostic_Report_2025-12-14_11-18-30.txt`
107
+
108
+ ### Log Files
109
+ - **Location:** Script execution directory
110
+ - **Format:** `[Operation]_LOG.txt`
111
+ - **Example:** `CLEANUP_LOG.txt`
112
+
113
+ ### Results Directory
114
+ - **Location:** `./RESULTS/` (if created)
115
+ - **Contents:** Historical diagnostic outputs
116
+
117
+ ## Best Practices
118
+
119
+ ### For Users
120
+ 1. **Keep scripts together:** Don't separate script categories
121
+ 2. **Review logs:** Always check generated logs after operations
122
+ 3. **Backup reports:** Save diagnostic reports for comparison
123
+ 4. **Use version control:** Track changes to your local modifications
124
+
125
+ ### For Contributors
126
+ 1. **Follow structure:** Place new scripts in appropriate category
127
+ 2. **Update README:** Document new scripts in main README
128
+ 3. **Add examples:** Provide usage examples in docs
129
+ 4. **Test thoroughly:** Verify scripts in clean environment
130
+
131
+ ## Migration from Old Structure
132
+
133
+ If you have the old flat structure, here's how to migrate:
134
+
135
+ ```powershell
136
+ # Create new structure
137
+ .\scripts\utils\setup_environment.ps1
138
+
139
+ # Scripts will be organized automatically
140
+ # Or manually move:
141
+ Move-Item SystemDiagnostic*.ps1 scripts\diagnostic\
142
+ Move-Item Scan*.ps1 scripts\analysis\
143
+ Move-Item Execute*.ps1 scripts\cleanup\
144
+ Move-Item check_*.ps1 scripts\utils\
145
+ ```
146
+
147
+ ## Quick Reference
148
+
149
+ | Task | Script Location |
150
+ |------|----------------|
151
+ | Run full diagnostic | `scripts/diagnostic/SystemDiagnostic.ps1` |
152
+ | Quick health check | `scripts/diagnostic/SystemDiagnosticUser.ps1` |
153
+ | Find large files | `scripts/analysis/ScanStorage.ps1` |
154
+ | Clean browser caches | `scripts/cleanup/AdditionalCleanup.ps1` |
155
+ | Full cleanup | `scripts/cleanup/ExecuteTotalCleanup.ps1` |
156
+ | Verify environment | `scripts/utils/check_environment.ps1` |
@@ -0,0 +1,32 @@
1
+
2
+ Name
3
+ ----
4
+ Missão com análise de arquivos e…
5
+ Nitro Sense_Acer_5.0.1473_202410…
6
+ GUARDRIVE_TECH
7
+ Diagramas_Sistemas
8
+ Marcas própias
9
+ Documents
10
+ th3m1s-core
11
+ AGILIZE-AI
12
+ Archives
13
+ Reset_L3250
14
+ Images
15
+ Applications
16
+ The_matrix
17
+ Develop
18
+ DesingGaming
19
+ temp_installers
20
+ Estudos BigData e Inteligência A…
21
+ Media
22
+ SYMBEON DESIGN
23
+ GuardFlow_AgilizeAI
24
+ Desenvolvimento Cursor
25
+ Projeto agrocircular-(ES#1)
26
+ Gerador de chave
27
+ KRONOS
28
+ GuardDrive
29
+ Criando um aplicativo web ou sit…
30
+ -1
31
+
32
+
@@ -0,0 +1,27 @@
1
+ 9002 files | 0.14 GB | Missão com análise de arquivos enviados
2
+ 148 files | 0.63 GB | Nitro Sense_Acer_5.0.1473_20241009_W11x64_A
3
+ 45 files | 0.06 GB | GUARDRIVE_TECH
4
+ 38 files | 0.06 GB | Diagramas_Sistemas
5
+ 38 files | 0.05 GB | Marcas própias
6
+ 34 files | 0.03 GB | Documents
7
+ 27 files | 0.03 GB | th3m1s-core
8
+ 18 files | 0.03 GB | AGILIZE-AI
9
+ 15 files | 5.34 GB | Archives
10
+ 13 files | 0 GB | Reset_L3250
11
+ 10 files | 0.01 GB | Images
12
+ 9 files | 0.98 GB | Applications
13
+ 6 files | 3.48 GB | The_matrix
14
+ 5 files | 0 GB | Develop
15
+ 5 files | 0.01 GB | DesingGaming
16
+ 3 files | 0.04 GB | temp_installers
17
+ 3 files | 0 GB | Estudos BigData e Inteligência Analítica
18
+ 3 files | 0.08 GB | Media
19
+ 2 files | 0 GB | SYMBEON DESIGN
20
+ 2 files | 0 GB | GuardFlow_AgilizeAI
21
+ 2 files | 0 GB | Desenvolvimento Cursor
22
+ 1 files | 0 GB | Projeto agrocircular-(ES#1)
23
+ 1 files | 0 GB | Gerador de chave
24
+ 1 files | 0 GB | KRONOS
25
+ 0 files | 0 GB | GuardDrive
26
+ 0 files | 0 GB | Criando um aplicativo web ou site_
27
+ 0 files | 0 GB | -1
@@ -0,0 +1,85 @@
1
+ [23:23:46] === STARTING DOWNLOADS ORGANIZATION ===
2
+ [23:23:46] Creating directory: Archives
3
+ [23:23:46] Moving: aion-core-0.2.0.zip -> Archives
4
+ [23:23:46] Moving: cyberpunk+robot+3d+model.zip -> Archives
5
+ [23:23:46] Moving: Enter_the_Matrix_v2.00_PS2_ISO_USA.zip -> Archives
6
+ [23:23:46] Moving: Enter_the_Matrix_Win_ISO_EN.zip -> Archives
7
+ [23:23:46] Moving: FICHA DE ANAMNESE KRONOS.csv.zip -> Archives
8
+ [23:23:46] Moving: Gerador de chave (1).rar -> Archives
9
+ [23:23:46] Moving: Gerador de chave.rar -> Archives
10
+ [23:23:46] Moving: GuardDrive.zip -> Archives
11
+ [23:23:46] Moving: KRONOS_SYNC (1).zip -> Archives
12
+ [23:23:46] Moving: Missão com análise de arquivos enviados.zip -> Archives
13
+ [23:23:46] Moving: OREON Inteligência Simbiótica para Estratégias e Execução Avançadas (1).zip -> Archives
14
+ [23:23:46] Moving: QuicFlow.zip -> Archives
15
+ [23:23:46] Moving: Reset_L3250_3210_5290 (1).rar -> Archives
16
+ [23:23:46] Moving: Reset_L3250_3210_5290.rar -> Archives
17
+ [23:23:46] Moving: senhor+morcego+3d+model.zip -> Archives
18
+ [23:23:46] Creating directory: Applications
19
+ [23:23:46] Moving: 560.81-notebook-win10-win11-64bit-international-dch-whql.exe -> Applications
20
+ [23:23:46] Moving: Antigravity.exe -> Applications
21
+ [23:23:46] Moving: epson642526eu.exe -> Applications
22
+ [23:23:46] Moving: gh_2.74.1_windows_amd64.msi -> Applications
23
+ [23:23:46] Moving: L3250_L3251_Lite_LA.exe -> Applications
24
+ [23:23:46] Moving: node-v22.16.0-x64.msi -> Applications
25
+ [23:23:46] Moving: nse-323295948118066206-a8318b65-26ee-4002-ba3e-104bdb6593ac.bin -> Applications
26
+ [23:23:46] Moving: PowerShell-7.4.7-win-x64.msi -> Applications
27
+ [23:23:46] Moving: wsl_update_x64.msi -> Applications
28
+ [23:23:46] Creating directory: Develop
29
+ [23:23:46] Moving: BioFold_main.py -> Develop
30
+ [23:23:46] Moving: client_secret_648570404676-7sskini6fch2v2c54mgj95rhm5s8hn2v.apps.googleusercontent.com.json -> Develop
31
+ [23:23:46] Moving: client_secret_648570404676-ccl1bq5f43f6sg9rm60d6vjmufc10ct3.apps.googleusercontent.com.json -> Develop
32
+ [23:23:46] Moving: examples_cannabis_optimization.py -> Develop
33
+ [23:23:46] Moving: tests_test_core.py -> Develop
34
+ [23:23:46] Creating directory: Documents
35
+ [23:23:46] Moving: 606_-_CONTRATO_DE_LOCACAO_assinado.pdf -> Documents
36
+ [23:23:46] Moving: 606_-_CONTRATO_DE_LOCACAO_assinado_assinado.pdf -> Documents
37
+ [23:23:46] Moving: 606_-_LAUDO_DE_VISTORIA_assinado.pdf -> Documents
38
+ [23:23:46] Moving: 606_-_LAUDO_DE_VISTORIA_assinado_assinado.pdf -> Documents
39
+ [23:23:46] Moving: Analise_Viabilidade_Patente_SEVE_v1.pdf -> Documents
40
+ [23:23:46] Moving: Backup-codes-galeria.kronos.txt -> Documents
41
+ [23:23:46] Moving: BasesdeDadosdeAcessoLivreporAreadeConhecimentobuuscaativa_20200921182758( Base de dados de Acesso Livre).csv -> Documents
42
+ [23:23:46] Moving: boleto-aberto.pdf -> Documents
43
+ [23:23:46] Moving: buga_arxiv_paper.tex -> Documents
44
+ [23:23:46] Moving: Certificado.pdf -> Documents
45
+ [23:23:46] Moving: clientes.csv -> Documents
46
+ [23:23:46] Moving: Comparação entre metodologias de gerenciamento de projetos ágil.pdf -> Documents
47
+ [23:23:46] Moving: CURRICULO_JX[1].pdf -> Documents
48
+ [23:23:46] Moving: d3b776ce-cc92-4526-b029-16c5e704def6_SEMIOGRAFIA_CIBERNTICA.pdf -> Documents
49
+ [23:23:46] Moving: DicasdePesquisa_BA_20200915104842.pdf -> Documents
50
+ [23:23:46] Moving: DiretrizesComputao_20200828153749.pdf -> Documents
51
+ [23:23:46] Moving: docs_Strategic_Analysis.md -> Documents
52
+ [23:23:46] Moving: docs_SynPhytica_Mathematical_Formalization.tex -> Documents
53
+ [23:23:46] Moving: Documento de Requisitos.pdf -> Documents
54
+ [23:23:46] Moving: dossie_pedro_santos.md -> Documents
55
+ [23:23:46] Moving: extrato-semestral (1).pdf -> Documents
56
+ [23:23:46] Moving: extrato-semestral.pdf -> Documents
57
+ [23:23:46] Moving: github-recovery-codes (1).txt -> Documents
58
+ [23:23:46] Moving: github-recovery-codes.txt -> Documents
59
+ [23:23:46] Moving: GuardDrive_Tech.pdf -> Documents
60
+ [23:23:46] Moving: GuardFlowAgilize_ai.pdf -> Documents
61
+ [23:23:46] Moving: Lgica_Interna__Clculo_da_Diria_Ideal_(KRONOS).pdf -> Documents
62
+ [23:23:46] Moving: Metodologias_ageis_no_contexto_de_desenv_20200828105423.pdf -> Documents
63
+ [23:23:46] Moving: nse-4782207962801395388-ee70cebe-80e9-4d7f-8c9e-404eba71b6fb.pdf -> Documents
64
+ [23:23:46] Moving: Organizando_documentos_para_finalizando_de_proposta_jurdica_.pdf -> Documents
65
+ [23:23:46] Moving: relatorio-JOÃO MANOEL OLIVEIRA SILVA.pdf -> Documents
66
+ [23:23:46] Moving: relatorio_financeiro_2026-01-09.csv -> Documents
67
+ [23:23:46] Moving: SESSION.md -> Documents
68
+ [23:23:46] Moving: Trinity OS Presentation.html -> Documents
69
+ [23:23:46] Moving: vendas.csv -> Documents
70
+ [23:23:46] Creating directory: Images
71
+ [23:23:46] Moving: ChatGPT Image 18 de set. de 2025, 20_25_41.png -> Images
72
+ [23:23:46] Moving: ChatGPT Image 5 de jun. de 2025, 12_56_38.png -> Images
73
+ [23:23:46] Moving: generated-image.png -> Images
74
+ [23:23:46] Moving: GuardFlow.NFE_NFT.png -> Images
75
+ [23:23:46] Moving: GX-0004_glyph.svg -> Images
76
+ [23:23:46] Moving: Imagem do WhatsApp de 2025-11-27 à(s) 15.08.18_bd2e46fd.jpg -> Images
77
+ [23:23:46] Moving: Imagem do WhatsApp de 2025-12-09 à(s) 09.31.20_1b5772d8.jpg -> Images
78
+ [23:23:46] Moving: relatorio-JOÃO MANOEL OLIVEIRA SILVA.png -> Images
79
+ [23:23:46] Moving: roadmap_table.png -> Images
80
+ [23:23:46] Moving: WhatsApp Image 2026-01-20 at 16.18.34.jpeg -> Images
81
+ [23:23:46] Creating directory: Media
82
+ [23:23:46] Moving: GuardFlow_Decifrado__Como_o_Sistema_Dual-Rail_Acelera_o_Varejo,.mp4 -> Media
83
+ [23:23:46] Moving: GuardFlow__O_Novo_Checkout (1).mp4 -> Media
84
+ [23:23:46] Moving: GuardFlow__O_Novo_Checkout.mp4 -> Media
85
+ [23:23:46] === ORGANIZATION COMPLETE ===
package/mcp/README.md ADDED
@@ -0,0 +1,61 @@
1
+ # 🤖 Orbit-DevOps MCP Agent
2
+
3
+ This directory contains the **Model Context Protocol (MCP)** implementation for Orbit-DevOps. It turns the toolkit into an intelligent agent that AI coding assistants (like Claude Desktop, Cursor, etc.) can communicate with to diagnose and optimize your system directly.
4
+
5
+ ## 🌟 Capabilities
6
+
7
+ The MCP agent enables your AI assistant to:
8
+
9
+ - 🏥 **Check System Health:** Query CPU, RAM, and Disk status in real-time.
10
+ - 🧹 **Perform Cleanup:** Trigger safe cleanup routines via chat commands.
11
+ - 🕵️ **Analyze Storage:** Ask "Where is my disk space going?" and get an analysis.
12
+ - 🐳 **Inspect Docker:** Check for wasted Docker resources.
13
+
14
+ ## 🛠️ Installation
15
+
16
+ ### Prerequisites
17
+
18
+ - Python 3.10+
19
+ - Orbit-DevOps (Root repository)
20
+
21
+ ### Setup
22
+
23
+ 1. Navigate to the `mcp` directory:
24
+ ```powershell
25
+ cd mcp
26
+ ```
27
+
28
+ 2. Install dependencies:
29
+ ```powershell
30
+ pip install mcp[cli]
31
+ ```
32
+
33
+ ## 🔌 Integration
34
+
35
+ ### Using with Claude Desktop
36
+
37
+ Add the following to your `claude_desktop_config.json`:
38
+
39
+ ```json
40
+ {
41
+ "mcpServers": {
42
+ "Orbit-DevOps": {
43
+ "command": "python",
44
+ "args": [
45
+ "C:/Path/To/Orbit-DevOps/mcp/server.py"
46
+ ]
47
+ }
48
+ }
49
+ }
50
+ ```
51
+
52
+ ### Using with Cursor
53
+
54
+ (Support for MCP in Cursor is evolving, check Cursor documentation for local MCP server configuration).
55
+
56
+ ## 🛡️ Security
57
+
58
+ The MCP server executes PowerShell scripts on your host machine.
59
+ - It is designed to run **inspection** and **safe cleanup** scripts.
60
+ - It respects the same safety execution policies as the scripts themselves.
61
+ - Always review what the AI intends to do before authorizing actions.
package/mcp/server.py ADDED
@@ -0,0 +1,109 @@
1
+ import os
2
+ import subprocess
3
+ import sys
4
+ import logging
5
+ from typing import Any, List, Optional
6
+ from mcp.server.fastmcp import FastMCP
7
+
8
+ # Setup logging
9
+ logging.basicConfig(level=logging.INFO)
10
+ logger = logging.getLogger("windiagkit-mcp")
11
+
12
+ # Initialize FastMCP Server
13
+ mcp = FastMCP("Orbit-DevOps")
14
+
15
+ import platform
16
+
17
+ # Constants
18
+ BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
19
+ SCRIPTS_DIR = os.path.join(BASE_DIR, "scripts")
20
+ IS_WINDOWS = platform.system() == "Windows"
21
+
22
+ def run_script(script_rel_path: str, mac_script_path: str = None, args: List[str] = None) -> str:
23
+ """
24
+ Helper to run scripts based on OS.
25
+ If Windows, runs the PowerShell script_rel_path.
26
+ If Mac/Linux, runs the mac_script_path (if provided).
27
+ """
28
+ if IS_WINDOWS:
29
+ script_path = os.path.join(SCRIPTS_DIR, script_rel_path)
30
+ interpreter = "powershell"
31
+ exec_args = ["-ExecutionPolicy", "Bypass", "-File", script_path]
32
+ else:
33
+ # macOS / Linux logic
34
+ if not mac_script_path:
35
+ return "Error: This tool is not yet available for macOS/Linux."
36
+
37
+ script_path = os.path.join(SCRIPTS_DIR, mac_script_path)
38
+ interpreter = "bash"
39
+ exec_args = [script_path]
40
+
41
+ if not os.path.exists(script_path):
42
+ return f"Error: Script not found at {script_path}"
43
+
44
+ command = [interpreter] + exec_args
45
+ if args and IS_WINDOWS: # Pass args only to PS for now
46
+ command.extend(args)
47
+
48
+ try:
49
+ result = subprocess.run(
50
+ command,
51
+ capture_output=True,
52
+ text=True,
53
+ check=False
54
+ )
55
+ if result.returncode != 0:
56
+ return f"Command Failed (Exit Code {result.returncode}):\n{result.stderr}\n\nOutput:\n{result.stdout}"
57
+ return result.stdout
58
+ except Exception as e:
59
+ return f"Execution Error: {str(e)}"
60
+
61
+ @mcp.tool()
62
+ def get_system_health() -> str:
63
+ """
64
+ Performs a quick system health check (CPU, Disk, Memory).
65
+ Works on Windows and Mac.
66
+ """
67
+ return run_script("diagnostic/SystemDiagnosticUser.ps1", "mac/diagnostic.sh")
68
+
69
+ @mcp.tool()
70
+ def analyze_storage() -> str:
71
+ """
72
+ Analyzes disk usage to find large folders and potential cleanup targets.
73
+ Returns a list of space hogs.
74
+ """
75
+ return run_script("analysis/ScanStorage.ps1")
76
+
77
+ @mcp.tool()
78
+ def check_docker_usage() -> str:
79
+ """
80
+ Checks Docker disk usage (images, containers, volumes).
81
+ """
82
+ return run_script("analysis/ScanTargets.ps1")
83
+
84
+ @mcp.tool()
85
+ def run_safe_cleanup(dry_run: bool = True) -> str:
86
+ """
87
+ Runs safe cleanup tasks (Browser cache, Downloads, Temp).
88
+
89
+ Args:
90
+ dry_run: If True, only lists what would be deleted.
91
+ """
92
+ if dry_run:
93
+ return "Dry run not fully supported by underlying script yet. It would clean Browsers, Downloads, and Temp."
94
+
95
+ return run_script("cleanup/AdditionalCleanup.ps1")
96
+
97
+ @mcp.tool()
98
+ def read_architecture() -> str:
99
+ """
100
+ Returns the Enterprise Architecture of Orbit-DevOps.
101
+ """
102
+ arch_path = os.path.join(BASE_DIR, "ARCHITECTURE.json")
103
+ if os.path.exists(arch_path):
104
+ with open(arch_path, "r", encoding="utf-8") as f:
105
+ return f.read()
106
+ return "Architecture file not found."
107
+
108
+ if __name__ == "__main__":
109
+ mcp.run()
package/package.json ADDED
@@ -0,0 +1,39 @@
1
+ {
2
+ "name": "@symbeon/orbit-devops",
3
+ "version": "1.0.0",
4
+ "description": "The Developer's Workspace Command Center. Diagnose, Optimize, Compact, Control.",
5
+ "main": "bin/orbit.js",
6
+ "bin": {
7
+ "orbit": "./bin/orbit.js",
8
+ "orbit-devops": "./bin/orbit.js"
9
+ },
10
+ "scripts": {
11
+ "start": "node bin/orbit.js",
12
+ "test": "echo \"Error: no test specified\" && exit 1"
13
+ },
14
+ "repository": {
15
+ "type": "git",
16
+ "url": "git+https://github.com/SH1W4/orbit-devops.git"
17
+ },
18
+ "keywords": [
19
+ "windows",
20
+ "devops",
21
+ "cleanup",
22
+ "wsl",
23
+ "docker",
24
+ "optimization"
25
+ ],
26
+ "author": "Symbeon",
27
+ "license": "MIT",
28
+ "type": "module",
29
+ "bugs": {
30
+ "url": "https://github.com/SH1W4/orbit-devops/issues"
31
+ },
32
+ "homepage": "https://github.com/SH1W4/orbit-devops#readme",
33
+ "dependencies": {
34
+ "chalk": "^5.4.1",
35
+ "commander": "^13.1.0",
36
+ "cross-spawn": "^7.0.6",
37
+ "inquirer": "^12.4.1"
38
+ }
39
+ }