Summary
Create the core CLI command execution manager with process lifecycle management, output buffering, and blocked command safety.
Acceptance Criteria
Class Interface
\\js
class CLIManager {
constructor(config = {}) {}
async runCommand({ command, args, cwd, timeout, background, agent }) {}
getOutput(processId, offset) {}
listProcesses(statusFilter) {}
async killProcess(processId, signal) {}
async cleanup() {}
isCommandBlocked(command, args) {}
}
\\
Related
- Milestone: v2.7.0 — CLI Command Execution
Summary
Create the core CLI command execution manager with process lifecycle management, output buffering, and blocked command safety.
Acceptance Criteria
m -rf /,
m -rf ~, \ormat, \del /s /q\
eboot, \halt\
Class Interface
\\js
class CLIManager {
constructor(config = {}) {}
async runCommand({ command, args, cwd, timeout, background, agent }) {}
getOutput(processId, offset) {}
listProcesses(statusFilter) {}
async killProcess(processId, signal) {}
async cleanup() {}
isCommandBlocked(command, args) {}
}
\\
Related