-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
priority:criticalCritical priority - must be addressed immediatelyCritical priority - must be addressed immediatelystatus:readyReady to be worked onReady to be worked ontype:featureNew feature or functionalityNew feature or functionality
Description
Description
Build the module that safely executes PowerShell commands locally and captures output for display in the chat interface.
Requirements
- Execute PowerShell cmdlets and scripts in isolated runspace
- Capture stdout, stderr, and object output
- Implement execution timeout (default 30s, configurable)
- Support pipeline operations
- Implement safety checks (block dangerous commands)
- Format output for chat display (tables, objects, text)
- Handle errors gracefully with meaningful messages
Technical Details
- Create
PowerShellHandler.psm1 - Use PowerShell runspaces for isolation
- Implement command whitelisting/blacklisting
- Stream output for long-running commands
- Format output using Format-Table, Format-List, Out-String
Acceptance Criteria
- Executes basic cmdlets (Get-Process, Get-Service, etc.)
- Captures all output types correctly
- Timeouts work as expected
- Dangerous commands are blocked
- Error messages are user-friendly
- Output formatting looks good in chat
Dependencies
- Issue WPF Chat Interface Foundation #1 (for UI integration)
- Issue Intent Router Engine #2 (for routing PowerShell intent)
Metadata
Metadata
Assignees
Labels
priority:criticalCritical priority - must be addressed immediatelyCritical priority - must be addressed immediatelystatus:readyReady to be worked onReady to be worked ontype:featureNew feature or functionalityNew feature or functionality