# slaimiee/wwo architecture

> Architecture diagram of the GitHub repository slaimiee/wwo, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-03). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/slaimiee/wwo
- Repository: https://github.com/slaimiee/wwo

## Overview

WWO is a Wolvesville automation tool with a WPF Studio and an AutoHotkey runtime. The apparent user workflow is to configure blocks or programs in Studio, send commands over a named pipe, and run automation; recording can also be reviewed and imported into the workspace. The excerpts support the Studio-to-pipe and pipe-to-engine links, but not the internal call graph among the AutoHotkey scripts, so those runtime components are shown without guessed connections.

Main entry points: [`Studio/PipeServerManager.cs`](https://github.com/slaimiee/wwo/blob/main/Studio/PipeServerManager.cs) (Pipe server), [`Studio/ScenarioAdapter.cs`](https://github.com/slaimiee/wwo/blob/main/Studio/ScenarioAdapter.cs) (Scenario adapter), [`Studio/MainWindow.xaml.cs`](https://github.com/slaimiee/wwo/blob/main/Studio/MainWindow.xaml.cs) (Studio window), [`docs/config-and-pipe-v1.md`](https://github.com/slaimiee/wwo/blob/main/docs/config-and-pipe-v1.md) (Pipe protocol guide)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_studio["Studio"]
  node_studio_ui["Studio window<br/>[MainWindow.xaml.cs]"]
  node_block_workspace["Block workspace<br/>[BlockWorkspace.cs]"]
  node_program_workspace["Program workspace"]
  node_expressions["Block expressions"]
  node_help["Help and tours<br/>[StudioHelp.cs]"]
  node_recording_workflow["Recording workflow"]
  node_recording_extractor["Recording extractor"]
end

subgraph group_protocol["Pipe Protocol"]
  node_scenario_adapter["Scenario adapter<br/>[ScenarioAdapter.cs]"]
  node_scenario_programs["Program conversion"]
  node_pipe_server["Pipe server"]
end

subgraph group_runtime["Automation Runtime"]
  node_ahk_engine["AHK engine"]
  node_automation_entry["Automation entry<br/>[wolvesville.ahk]"]
  node_setup["Setup flow"]
  node_actions["Actions"]
  node_expressions_runtime["Runtime expressions"]
  node_rules["Rules"]
  node_transmit["Transmit"]
  node_ocr["OCR"]
  node_ui["Runtime UI<br/>[wolvesville-ui.ahk]"]
  node_json["JSON support"]
  node_studio_bridge["Studio bridge"]
end

subgraph group_docs["Formats"]
  node_scenario_schema["Scenario schema"]
  node_pipe_schema["Pipe schema<br/>[pipe.schema.json]"]
  node_pipe_docs["Pipe protocol guide"]
end

node_user(("User"))
node_wolvesville["Wolvesville client"]

node_user -->|"configures"| node_studio_ui
node_studio_ui -->|"requests connection"| node_pipe_server
node_block_workspace -->|"builds commands"| node_scenario_adapter
node_program_workspace -->|"builds program"| node_scenario_adapter
node_studio_ui -->|"decodes events"| node_scenario_adapter
node_scenario_adapter -->|"converts programs"| node_scenario_programs
node_pipe_server -->|"adapts requests"| node_scenario_adapter
node_pipe_server -->|"stores drafts"| node_scenario_programs
node_pipe_server -->|"launches process"| node_ahk_engine
node_recording_workflow -->|"sends commands"| node_pipe_server
node_recording_extractor -->|"imports recording"| node_pipe_server
node_studio_ui -.->|"starts recording"| node_recording_workflow
node_wolvesville -.->|"receives automation"| node_automation_entry
node_pipe_docs -->|"documents format"| node_pipe_schema
node_pipe_docs -->|"documents format"| node_scenario_schema

click node_studio_ui "https://github.com/slaimiee/wwo/blob/main/Studio/MainWindow.xaml.cs"
click node_block_workspace "https://github.com/slaimiee/wwo/blob/main/Studio/BlockWorkspace.cs"
click node_program_workspace "https://github.com/slaimiee/wwo/blob/main/Studio/ProgramWorkspace.cs"
click node_expressions "https://github.com/slaimiee/wwo/blob/main/Studio/BlockExpressions.cs"
click node_help "https://github.com/slaimiee/wwo/blob/main/Studio/StudioHelp.cs"
click node_recording_workflow "https://github.com/slaimiee/wwo/blob/main/Studio/RecordingWorkflow.cs"
click node_recording_extractor "https://github.com/slaimiee/wwo/blob/main/Studio/RecordingExtractorWindow.xaml.cs"
click node_scenario_adapter "https://github.com/slaimiee/wwo/blob/main/Studio/ScenarioAdapter.cs"
click node_scenario_programs "https://github.com/slaimiee/wwo/blob/main/Studio/ScenarioPrograms.cs"
click node_pipe_server "https://github.com/slaimiee/wwo/blob/main/Studio/PipeServerManager.cs"
click node_ahk_engine "https://github.com/slaimiee/wwo/blob/main/wolvesville-studio-engine.ahk"
click node_automation_entry "https://github.com/slaimiee/wwo/blob/main/wolvesville.ahk"
click node_setup "https://github.com/slaimiee/wwo/blob/main/wolvesville-setup.ahk"
click node_actions "https://github.com/slaimiee/wwo/blob/main/wolvesville-actions.ahk"
click node_expressions_runtime "https://github.com/slaimiee/wwo/blob/main/wolvesville-expressions.ahk"
click node_rules "https://github.com/slaimiee/wwo/blob/main/wolvesville-rules.ahk"
click node_transmit "https://github.com/slaimiee/wwo/blob/main/wolvesville-transmit.ahk"
click node_ocr "https://github.com/slaimiee/wwo/blob/main/wolvesville-ocr.ahk"
click node_ui "https://github.com/slaimiee/wwo/blob/main/wolvesville-ui.ahk"
click node_json "https://github.com/slaimiee/wwo/blob/main/wolvesville-json.ahk"
click node_studio_bridge "https://github.com/slaimiee/wwo/blob/main/wolvesville-studio-bridge.ahk"
click node_scenario_schema "https://github.com/slaimiee/wwo/blob/main/docs/scenario.schema.json"
click node_pipe_schema "https://github.com/slaimiee/wwo/blob/main/docs/pipe.schema.json"
click node_pipe_docs "https://github.com/slaimiee/wwo/blob/main/docs/config-and-pipe-v1.md"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_studio_ui,node_block_workspace,node_program_workspace,node_expressions,node_help,node_recording_workflow,node_recording_extractor,node_user,node_wolvesville toneBlue
class node_scenario_adapter,node_scenario_programs,node_pipe_server toneAmber
class node_ahk_engine,node_automation_entry,node_setup,node_actions,node_expressions_runtime,node_rules,node_transmit,node_ocr,node_ui,node_json,node_studio_bridge toneMint
class node_scenario_schema,node_pipe_schema,node_pipe_docs toneRose
```

## Components

### Studio

- [Studio window](https://github.com/slaimiee/wwo/blob/main/Studio/MainWindow.xaml.cs): `Studio/MainWindow.xaml.cs`
- [Block workspace](https://github.com/slaimiee/wwo/blob/main/Studio/BlockWorkspace.cs): `Studio/BlockWorkspace.cs`
- [Program workspace](https://github.com/slaimiee/wwo/blob/main/Studio/ProgramWorkspace.cs): `Studio/ProgramWorkspace.cs`
- [Block expressions](https://github.com/slaimiee/wwo/blob/main/Studio/BlockExpressions.cs): `Studio/BlockExpressions.cs`
- [Help and tours](https://github.com/slaimiee/wwo/blob/main/Studio/StudioHelp.cs): `Studio/StudioHelp.cs`
- [Recording workflow](https://github.com/slaimiee/wwo/blob/main/Studio/RecordingWorkflow.cs): `Studio/RecordingWorkflow.cs`
- [Recording extractor](https://github.com/slaimiee/wwo/blob/main/Studio/RecordingExtractorWindow.xaml.cs): `Studio/RecordingExtractorWindow.xaml.cs`

### Pipe Protocol

- [Scenario adapter](https://github.com/slaimiee/wwo/blob/main/Studio/ScenarioAdapter.cs): `Studio/ScenarioAdapter.cs`
- [Program conversion](https://github.com/slaimiee/wwo/blob/main/Studio/ScenarioPrograms.cs): `Studio/ScenarioPrograms.cs`
- [Pipe server](https://github.com/slaimiee/wwo/blob/main/Studio/PipeServerManager.cs): `Studio/PipeServerManager.cs`

### Automation Runtime

- [AHK engine](https://github.com/slaimiee/wwo/blob/main/wolvesville-studio-engine.ahk): `wolvesville-studio-engine.ahk`
- [Automation entry](https://github.com/slaimiee/wwo/blob/main/wolvesville.ahk): `wolvesville.ahk`
- [Setup flow](https://github.com/slaimiee/wwo/blob/main/wolvesville-setup.ahk): `wolvesville-setup.ahk`
- [Actions](https://github.com/slaimiee/wwo/blob/main/wolvesville-actions.ahk): `wolvesville-actions.ahk`
- [Runtime expressions](https://github.com/slaimiee/wwo/blob/main/wolvesville-expressions.ahk): `wolvesville-expressions.ahk`
- [Rules](https://github.com/slaimiee/wwo/blob/main/wolvesville-rules.ahk): `wolvesville-rules.ahk`
- [Transmit](https://github.com/slaimiee/wwo/blob/main/wolvesville-transmit.ahk): `wolvesville-transmit.ahk`
- [OCR](https://github.com/slaimiee/wwo/blob/main/wolvesville-ocr.ahk): `wolvesville-ocr.ahk`
- [Runtime UI](https://github.com/slaimiee/wwo/blob/main/wolvesville-ui.ahk): `wolvesville-ui.ahk`
- [JSON support](https://github.com/slaimiee/wwo/blob/main/wolvesville-json.ahk): `wolvesville-json.ahk`
- [Studio bridge](https://github.com/slaimiee/wwo/blob/main/wolvesville-studio-bridge.ahk): `wolvesville-studio-bridge.ahk`

### Formats

- [Scenario schema](https://github.com/slaimiee/wwo/blob/main/docs/scenario.schema.json): `docs/scenario.schema.json`
- [Pipe schema](https://github.com/slaimiee/wwo/blob/main/docs/pipe.schema.json): `docs/pipe.schema.json`
- [Pipe protocol guide](https://github.com/slaimiee/wwo/blob/main/docs/config-and-pipe-v1.md): `docs/config-and-pipe-v1.md`

### Other components

- **User**
- **Wolvesville client**

## Connections

- User → Studio window: configures (evidence: `Studio/MainWindow.xaml.cs`)
- Studio window → Pipe server: requests connection (evidence: `Studio/MainWindow.xaml.cs`)
- Block workspace → Scenario adapter: builds commands (evidence: `Studio/BlockWorkspace.cs`)
- Program workspace → Scenario adapter: builds program (evidence: `Studio/ProgramWorkspace.cs`)
- Studio window → Scenario adapter: decodes events (evidence: `Studio/MainWindow.xaml.cs`)
- Scenario adapter → Program conversion: converts programs (evidence: `Studio/ScenarioAdapter.cs`)
- Pipe server → Scenario adapter: adapts requests (evidence: `Studio/PipeServerManager.cs`)
- Pipe server → Program conversion: stores drafts (evidence: `Studio/PipeServerManager.cs`)
- Pipe server → AHK engine: launches process (evidence: `Studio/PipeServerManager.cs`)
- Recording workflow → Pipe server: sends commands (evidence: `Studio/RecordingWorkflow.cs`)
- Recording extractor → Pipe server: imports recording (evidence: `Studio/RecordingExtractorWindow.xaml.cs`)
- Studio window → Recording workflow: starts recording
- Wolvesville client → Automation entry: receives automation
- Pipe protocol guide → Pipe schema: documents format (evidence: `README.md`)
- Pipe protocol guide → Scenario schema: documents format (evidence: `README.md`)
