Note: the HC3 hub browser in the VS Code extension (design draft)

Status: v1 implemented (2026-11-08) — flua --tool hubList, the hub tree in the VS Code extension (vscode/src/hub.ts), the QA actions and the remembered download folder. Stretch items (devices section, console tail, freshness badge, webview dashboard) remain.

Context and goal

flua is the engine — for agent-loop development and for programmers who want their standard toolset (VS Code, git, a debugger, tests). Wizards and GUI conveniences are apps built on top of flua, and the VS Code extension is the first such app. The discipline that keeps this true: nothing exists only in the app — every tree action is a CLI/--tool command first, so agents and CI get the same surface as the GUI.

This note designs the first app: an HC3 buffer in VS Code. It shows the hub and its QuickApps; a QA can be selected, downloaded, edited (the normal editor), tested (F5/--ui), and uploaded back — the whole loop without leaving VS Code or remembering ids.

The symmetry to state up front: this tree is the human version of what flua-mcp already gives agents (list, download, check, upload as typed tools). Both ride the same CLI commands, so they cannot drift apart, and the agent path stays the reference implementation.

What exists today (verified)

Design

Data source: one new CLI command

flua --tool hubList --json prints a stable shape:

{
  "hub": {"name": "HC3-00000422", "model": "HC3", "firmware": "5.221.22", "url": "http://192.168.1.20", "reachable": true},
  "qas": [{"id": 57, "name": "Heating", "type": "com.fibaro.deviceController", "room": "Living room"}]
}

The tree (extension side)

One new file vscode/src/hub.ts, a TreeDataProvider:

Stretch (not v1)

Alternatives considered

v1 scope

  1. flua --tool hubList --json with a pinning test for the shape and the missing-credentials error.
  2. vscode/src/hub.ts — the tree, refresh, and the five QA actions wired to the existing execFlua bridge.
  3. Command palette + context-menu entries.
  4. Docs: USAGE.md (--tool hubList) and the extension README.