Group 9: Implement shell script blueprint preview in Blitz #22

Open
opened 2026-04-16 12:46:58 +02:00 by kade · 0 comments
Owner

Overview

Integrate bashrs/flash for shell script parsing and create AST-based blueprint preview.

Description

  • Integrate bashrs/flash for shell script parsing
  • Create AST-based shell script preview
  • Add syntax highlighting with syntect
  • Implement blueprint visualization

Implementation Steps

  1. Add bashrs or flash dependency to shell-pool-visualization
  2. Create shell script parser:
    pub fn parse_shell_script(script: &str) -> Result<Ast>
    
  3. Create AST visualizer:
    pub fn visualize_ast(ast: &Ast) -> Result<Image>
    
  4. Add syntax highlighting with syntect
  5. Create blueprint preview UI component
  6. Add execution preview (simulate execution without running)

Files

  • services/blitz/crates/shell-pool-visualization/src/parser.rs (new)
  • services/blitz/crates/shell-pool-visualization/src/blueprint.rs (new)
  • services/blitz/crates/shell-pool-visualization/src/syntax_highlight.rs (new)

Dependencies

  • bashrs or flash (shell script parser)
  • syntect (syntax highlighting)

Estimated Effort

7-10 days

Success Criteria

  • Shell script parsing functional
  • AST visualization working
  • Syntax highlighting complete
  • Blueprint preview UI functional
  • Depends on: Group 8
  • This is part of the shell-pool Blitz integration epic. See plan document for full integration strategy.
## Overview Integrate bashrs/flash for shell script parsing and create AST-based blueprint preview. ## Description - Integrate bashrs/flash for shell script parsing - Create AST-based shell script preview - Add syntax highlighting with syntect - Implement blueprint visualization ## Implementation Steps 1. Add bashrs or flash dependency to shell-pool-visualization 2. Create shell script parser: ```rust pub fn parse_shell_script(script: &str) -> Result<Ast> ``` 3. Create AST visualizer: ```rust pub fn visualize_ast(ast: &Ast) -> Result<Image> ``` 4. Add syntax highlighting with syntect 5. Create blueprint preview UI component 6. Add execution preview (simulate execution without running) ## Files - `services/blitz/crates/shell-pool-visualization/src/parser.rs` (new) - `services/blitz/crates/shell-pool-visualization/src/blueprint.rs` (new) - `services/blitz/crates/shell-pool-visualization/src/syntax_highlight.rs` (new) ## Dependencies - bashrs or flash (shell script parser) - syntect (syntax highlighting) ## Estimated Effort 7-10 days ## Success Criteria - Shell script parsing functional - AST visualization working - Syntax highlighting complete - Blueprint preview UI functional ## Related Issues - Depends on: Group 8 - This is part of the shell-pool Blitz integration epic. See plan document for full integration strategy.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
kade/blitz#22
No description provided.