bots-garden/sidekickspublic Fork
⑂ v1.5.0
Commits
⬇ Clone ▾
git clone https://git.rickub.com/bots-garden/sidekicks.git
git clone ssh://git@rickub.com/bots-garden/sidekicks.git

Host key fingerprint (ed25519): SHA256:iycHnxEyq0Q7uyVpB7JlznP0G7JrTPXLYRcAU5CSLhc — verify it before your first connect.

Download ZIP
🛟 Updated. 74ac365 · on v1.5.0 · k33g · 26d ago
README.md · 34 lines · 1.5 KBmarkdown
Blame HistoryOpen raw

wails-ui

Throwaway prototype for ADR 0002 — UI stack: one Wails v3 window with resizable panels (paneforge), a streamed Markdown conversation (markdown-it + Shiki + DOMPurify), a YAML editor (CodeMirror 6) and a terminal (xterm.js + a real PTY with creack/pty).

The prototype

Run it on macOS

Requirements: Go ≥ 1.26, Node ≥ 20, Xcode command line tools, and the Wails CLI:

go install github.com/wailsapp/wails/v3/cmd/wails3@v3.0.0
wails3 doctor

Then:

cd spikes/wails-ui
wails3 dev        # hot reload
# or
wails3 package && open bin/wails-ui.app   # build + .app bundle

What to check

  • Drag the separators; quit and relaunch: the layout is restored.
  • Simuler (50 chunks/s) and (500 chunks/s): the answer streams, the Go code block is coloured while still open, the HTML in the quote is shown as text, and the counter shows the elapsed time.
  • Type in the terminal: ls, htop, vim (resize the panel while htop runs).
  • Switch macOS between light and dark mode: every panel follows.

Where it was verified

Built and run on Linux arm64 (Ubuntu 26.04, GTK4 + WebKitGTK 6.0, Xvfb) inside the development sandbox on 2026-10-29: layout, streaming at 50 and 500 chunks/s, Shiki colouring, sanitisation and the PTY terminal work. It was then run on macOS by the project owner on 2026-10-29, following How to test milestone Initialize on macOS.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# wails-ui

Throwaway prototype for [ADR 0002 — UI stack](../../docs/adr/0002-ui-stack.md): one Wails v3 window with resizable panels ([paneforge](https://paneforge.com)), a streamed Markdown conversation (markdown-it + Shiki + DOMPurify), a YAML editor (CodeMirror 6) and a terminal (xterm.js + a real PTY with `creack/pty`).

![The prototype](../../docs/spikes/ui/prototype-linux.png)

## Run it on macOS

Requirements: Go ≥ 1.26, Node ≥ 20, Xcode command line tools, and the Wails CLI:

```bash
go install github.com/wailsapp/wails/v3/cmd/wails3@v3.0.0
wails3 doctor
```

Then:

```bash
cd spikes/wails-ui
wails3 dev        # hot reload
# or
wails3 package && open bin/wails-ui.app   # build + .app bundle
```

## What to check

- Drag the separators; quit and relaunch: the layout is restored.
- **Simuler (50 chunks/s)** and **(500 chunks/s)**: the answer streams, the Go code block is coloured while still open, the HTML in the quote is shown as text, and the counter shows the elapsed time.
- Type in the terminal: `ls`, `htop`, `vim` (resize the panel while `htop` runs).
- Switch macOS between light and dark mode: every panel follows.

## Where it was verified

Built and run on Linux arm64 (Ubuntu 26.04, GTK4 + WebKitGTK 6.0, Xvfb) inside the development sandbox on 2026-10-29: layout, streaming at 50 and 500 chunks/s, Shiki colouring, sanitisation and the PTY terminal work. It was then run on macOS by the project owner on 2026-10-29, following [How to test milestone Initialize on macOS](../../docs/en/how-to/test-milestone-initialize-on-macos.md).