Expand description
“Planetary mode”: renames a project’s well-known files into sci-fi systems and reports each one’s health as mission control would.
Every recognized stack has a fixed vocabulary that maps real files to flavour names:
| Stack | File | System |
|---|---|---|
| Node | package.json | ⚙️ Main Engine Core |
| Node | .env | 🛡️ Shield Generator |
| Node | node_modules/ | 🔧 System Components Bay |
| Node | src/ | 💾 Data Core |
| Node | .gitignore | 🚫 Lockdown Protocol |
| Node | package-lock.json | 📋 Manifest Registry |
| Python | requirements.txt | ⚙️ Dependencies Matrix |
| Python | venv/ | 🔧 Isolation Pod |
| Python | .env | 🛡️ Credentials Vault |
| Python | setup.py | 📋 Build Sequence |
| Python | main.py | 💾 Mission Core |
| Rust | Cargo.toml | ⚙️ Build Configuration |
| Rust | src/ | 💾 Source Matrix |
| Rust | Cargo.lock | 📋 Build Seal |
| Rust | target/ | 🔧 Artifact Chamber |
A diagnostic is attributed to a system when its check name or message
mentions the corresponding file, and every system’s status uses the
theatrical vocabulary OPERATIONAL / MINOR ALERT / OFFLINE.
use limitless_cli::models::{CheckStatus, DiagnosticResult};
use limitless_cli::modules::planetary::render_planetary_diagnostics_plain;
let results = vec![
DiagnosticResult::new("Dependencies", CheckStatus::Fail, "node_modules/ is missing")
.with_remediation("Run npm install"),
DiagnosticResult::new("Env Audit", CheckStatus::Pass, ".env present"),
];
let report = render_planetary_diagnostics_plain(&results);
assert!(report.contains("PLANETARY MODE"));
assert!(report.contains("Mission Health:"));
assert!(!report.contains('\x1b'));Constants§
- PLANETARY_
WIDTH - Overall width of the planetary report box, measured in characters.
Functions§
- get_
planetary_ mapping - Builds the file → sci-fi system dictionary for a project stack.
- planetary_
scan - Deep-scan entry point: builds a fresh snapshot and prints the report.
- render_
planetary_ diagnostics - Renders the planetary mission-control report for
diagnostics. - render_
planetary_ diagnostics_ plain - ANSI-free twin of
render_planetary_diagnostics, handy for logs/tests. - status_
icon - The console marker for a
CheckStatus:✓,⚠or✖. - theatrical_
status - The theatrical status label shown for a
CheckStatus:OPERATIONAL(pass),MINOR ALERT(warn) orOFFLINE(fail).