Commands implemented locally for portfolio context:
whoami - Portfolio identitycompanies - Work historyachievements - Accomplishmentsrepos - GitHub integrationsysmon - System monitorcv - Interactive CVhack - Privilege escalation gameopm - Package managergithub - GitHub explorerstats - Repository statsmarket - Market dataStandard Unix/Linux commands delegated to EcmaOS kernel:
mkdir, touch, rm, mv, cpls, cd, pwdps, kill, df, du, free, envfetch, downloadedit, loadsnake, video, play, screensavermatrix, decryptcore.js line ~427): Primary routingcore.js line ~573): App class mappingcore.js line ~829): Command listhelp.js): Command documentationassets/js/terminal/apps/window.CommandNameApp = CommandNameApp;handleCommand()appMap in runCommand()_layouts/terminal.htmlclass CommandNameApp {
constructor(terminal, filesystem, windowManager, os) {
this.terminal = terminal;
this.filesystem = filesystem;
this.windowManager = windowManager;
this.os = os;
}
async run(args) {
// Command implementation
// Use this.terminal.write() for output
// Use ANSI color codes for formatting
}
}
window.CommandNameApp = CommandNameApp;
When a command is not found in the switch statement:
default:
if (this.ecmaKernel) {
try {
if (typeof this.ecmaKernel.execute === 'function') {
await this.ecmaKernel.execute(input, this.terminal);
this.prompt();
return;
}
} catch (e) {
console.error("EcmaOS execution failed:", e);
}
}
this.terminal.write(`\x1b[1;31m${command}: command not found\x1b[0m\r\n`);
Implement Locally When:
Delegate to EcmaOS When:
All commands should:
\x1b[1;32m - Bold green (success)\x1b[1;31m - Bold red (error)\x1b[1;33m - Bold yellow (warning)\x1b[1;36m - Bold cyan (info)\x1b[1;30m - Bold black (subtle)\x1b[0m - Reset