Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
94 commits
Select commit Hold shift + click to select a range
81223e1
feat(desktop): routes, contracts and preview seams for clusters, sand…
jonathan308 Nov 9, 2026
da2cf0f
feat(desktop): name the Darkbloom network start (`network`) beside On…
jonathan308 Nov 9, 2026
0b7b70c
feat(desktop): relay the guided cluster setup session with checked sh…
jonathan308 Nov 9, 2026
4848d5d
feat(desktop): chat relay to this Mac's local API
jonathan308 Nov 9, 2026
f644cca
feat(desktop): Early access page, waitlist card and shared waitlist hook
jonathan308 Nov 9, 2026
63e23ae
feat(desktop): Studio serves the CLI's way: Only me, Darkbloom networ…
jonathan308 Nov 9, 2026
4dd24f0
feat(desktop): Updates returns to the previous release (`update_rollb…
jonathan308 Nov 9, 2026
00edd06
docs(desktop): Local API and serving modes, rollback in Updates, chan…
jonathan308 Nov 9, 2026
a3f5547
docs(desktop): document Early access, and name each card's button target
jonathan308 Nov 9, 2026
ba445c0
feat(desktop): Sandboxes page for Darkbloom Sandbox
jonathan308 Nov 9, 2026
1725b9f
fix(desktop): Studio's key field takes its own line when narrow; `rou…
jonathan308 Nov 9, 2026
e200233
fix(desktop): read the waitlists again when this Mac is linked
jonathan308 Nov 9, 2026
dbb32b2
test(desktop): Sandboxes preview, approval links and app wiring; work…
jonathan308 Nov 9, 2026
70b8dac
fix(desktop): Studio's restart hint ends with the next serving sessio…
jonathan308 Nov 9, 2026
5b88191
docs(desktop): the Sandboxes page, its controls and preview links
jonathan308 Nov 9, 2026
6471f42
fix(desktop): start each page's waitlists from loading, as useResourc…
jonathan308 Nov 9, 2026
c0014a6
fix(desktop): name me first's minutes field by its visible label
jonathan308 Nov 9, 2026
40f5dc9
test(desktop): drop a redundant cast from the Early access page test
jonathan308 Nov 9, 2026
5003520
fix(desktop): Studio says when no way to serve is saved yet
jonathan308 Nov 9, 2026
45ba13c
docs(provider): the app's Studio asks how this Mac serves, Darkbloom …
jonathan308 Nov 9, 2026
c938882
Merge desktop-catchup/waitlists-ui: Early access page, waitlist card …
jonathan308 Nov 9, 2026
fb73095
feat(cluster): run the onboarding for the desktop app (`--app-console`)
jonathan308 Nov 9, 2026
356e6a6
feat(desktop): announce the setup's stage, and say Cancelling until i…
jonathan308 Nov 9, 2026
ad0a261
fix(desktop): give the preview snapshot its base capability list
jonathan308 Nov 9, 2026
d9014d8
fix(desktop): the Sandboxes preview's links contact no Darkbloom service
jonathan308 Nov 9, 2026
935dac0
Merge desktop-catchup/local-serving: Studio serving modes, me first, …
jonathan308 Nov 9, 2026
a8bbdf4
Merge remote-tracking branch 'origin/feat/desktop-catch-up' into desk…
jonathan308 Nov 9, 2026
ca57c28
feat(desktop): the Clusters page — set up a pair, choose how it serve…
jonathan308 Nov 9, 2026
fbdc0d4
Merge origin/feat/desktop-catch-up: the preview's base capability lis…
jonathan308 Nov 9, 2026
376c903
Merge feat/desktop-catch-up (final waitlist hook and card, local serv…
jonathan308 Nov 9, 2026
159f120
test(desktop): the preview's capability list holds Early access's, wh…
jonathan308 Nov 9, 2026
aa2fddb
fix(desktop): the local-serving preview adds its capabilities to the …
jonathan308 Nov 9, 2026
ac2a286
fix(desktop): a model outside the catalog runs with Only me, in the C…
jonathan308 Nov 9, 2026
4a88e71
Merge desktop-catchup/local-serving: preview appends its capabilities
jonathan308 Nov 9, 2026
51f5aaf
feat(desktop): Sandboxes uses the shared waitlist notice and store
jonathan308 Nov 9, 2026
fd8048e
Merge feat/desktop-catch-up (preview capability list fixes) into clus…
jonathan308 Nov 9, 2026
11112c3
feat(desktop): Clusters uses the final waitlist hook; preview tests f…
jonathan308 Nov 9, 2026
ac8be32
fix(desktop): hold Set up until the setup's operation arrives
jonathan308 Nov 9, 2026
62a459e
feat(desktop): the guided cluster setup session in the local API
jonathan308 Nov 9, 2026
32fcc03
docs(desktop): document Clusters; the setup's title takes focus and W…
jonathan308 Nov 9, 2026
f969dc2
feat(desktop): Chat page after the iPhone app's chat
jonathan308 Nov 9, 2026
36a4ded
Merge desktop-catchup/sandboxes-ui: Sandboxes page
jonathan308 Nov 9, 2026
a18be1c
feat(desktop): read the setup session as the cluster console sends it
jonathan308 Nov 9, 2026
bd3092e
fix(desktop): the pair illustration's pulses find their cable under R…
jonathan308 Nov 9, 2026
03bfe00
feat(desktop-api): cluster, sandbox, sandbox-logs and waitlists resou…
jonathan308 Nov 9, 2026
2c31f18
docs(desktop): Chat section, changelog, and steadier message rendering
jonathan308 Nov 9, 2026
d159e2e
feat(desktop-api): start with network or solo, cluster_leave, waitlis…
jonathan308 Nov 9, 2026
9015728
Merge desktop-catchup/cluster-ui: Clusters page, guided setup and pai…
jonathan308 Nov 9, 2026
722db79
fix(desktop): finished answers settle to full ink in place
jonathan308 Nov 9, 2026
632ed2a
test(desktop-api): compare the cluster document by content, not by de…
jonathan308 Nov 9, 2026
9620923
fix(desktop, cluster): Serve this Mac alone names its models and stop…
jonathan308 Nov 9, 2026
6eaa908
docs(desktop): the cluster setup session, `--app-console`, and its lo…
jonathan308 Nov 9, 2026
b4c4c51
fix(desktop): Chat's launch lines claim privacy only when it holds
jonathan308 Nov 9, 2026
a92860a
fix(desktop-api): a `solo` start names its models
jonathan308 Nov 9, 2026
b986beb
fix(desktop): the preview's pair follows a guided setup as soon as it…
jonathan308 Nov 9, 2026
aa81eb8
feat(desktop-api): sandbox_setup with live progress through `sandbox …
jonathan308 Nov 9, 2026
0f3095c
feat(desktop-api): route_key through standard input only, and the new…
jonathan308 Nov 9, 2026
f87338c
test(desktop): chat tests wait on frames and allow a busy machine its…
jonathan308 Nov 9, 2026
5e89bc5
docs(desktop-api): routes, actions, Snapshot.local, capabilities and …
jonathan308 Nov 9, 2026
25ad464
Merge desktop-catchup/chat: Chat tab after the iPhone app
jonathan308 Nov 9, 2026
8bc501f
fix(desktop-api): keep the account key out of a failed route_key's me…
jonathan308 Nov 9, 2026
fffa1e0
Merge desktop-catchup/swift-api: desktop API routes and actions for c…
jonathan308 Nov 9, 2026
4783f07
fix(cluster): a cancelled app setup stops before its start changes th…
jonathan308 Nov 9, 2026
e3e19a7
Merge desktop-catchup/cluster-console: the guided cluster setup throu…
jonathan308 Nov 9, 2026
c7e1320
test(desktop-api): the merged runtime lists the guided cluster setup'…
jonathan308 Nov 9, 2026
6eeab6a
refactor(desktop): one place for how each way to serve starts and routes
jonathan308 Nov 9, 2026
8dcc2ff
refactor(desktop): one typed check for what the runtime supports
jonathan308 Nov 9, 2026
a472566
test(desktop-api): the capability test expects the guided cluster set…
jonathan308 Nov 9, 2026
403d35d
refactor(desktop): read why a waitlist is unavailable in one place
jonathan308 Nov 9, 2026
58627a5
refactor(desktop-api): one JSON body, decode and response helper for …
jonathan308 Nov 9, 2026
4211a08
refactor(desktop): one clipboard hook for the copy buttons' Copied state
jonathan308 Nov 9, 2026
ad49e98
refactor(desktop): Sandboxes reuses the stored operation dismissal
jonathan308 Nov 9, 2026
ef355f9
refactor(desktop-api): the cluster setup's child runs as every other …
jonathan308 Nov 9, 2026
471759c
refactor(desktop): the cluster setup relay shares the runtime stream …
jonathan308 Nov 9, 2026
da28ca3
refactor(desktop): drop foundation leftovers and a second day format
jonathan308 Nov 9, 2026
ea12af7
refactor(desktop-api): the cluster setup session's start, drain and a…
jonathan308 Nov 9, 2026
cb5ca36
refactor(desktop): one screen-reader-only class for the new pages
jonathan308 Nov 9, 2026
d942712
refactor(desktop): Chat reads its model list in a hook of its own
jonathan308 Nov 9, 2026
15a2dcd
refactor(desktop): Serve this Mac alone's dialog keeps its own choice
jonathan308 Nov 9, 2026
6ac9738
refactor(desktop): list the relays a lost renderer resets once
jonathan308 Nov 9, 2026
b78f303
refactor(desktop-api): cluster and sandbox status read their child on…
jonathan308 Nov 9, 2026
86bdcfd
refactor(desktop-api): an action's child runs through one dispatch, `…
jonathan308 Nov 9, 2026
cd2a3e6
Merge desktop-catchup/refactor-ts: the desktop app's refactor pass
jonathan308 Nov 9, 2026
aaed945
docs(desktop): the main-process table names the chat and cluster setu…
jonathan308 Nov 9, 2026
44b0daf
refactor(cluster): one hidden help for `--app-console` on `cluster` a…
jonathan308 Nov 9, 2026
3b7c240
style(sandbox): `SandboxSetupEvents` indents as the rest of Sources/d…
jonathan308 Nov 9, 2026
b111fdd
refactor(desktop-api): the waitlists' error joins its sentences with …
jonathan308 Nov 9, 2026
cde2a71
test(desktop-api): the new tests write their stand-in CLIs with `Desk…
jonathan308 Nov 9, 2026
4124ca3
test(desktop, cluster): the Clusters page on what the real runtime pr…
jonathan308 Nov 9, 2026
84e3530
refactor(cluster, desktop-api): both ends of the app console read its…
jonathan308 Nov 9, 2026
cc78d12
docs(desktop-api): cite the shared body read and child environment fo…
jonathan308 Nov 9, 2026
e9b0ab5
Merge desktop-catchup/refactor-swift: the Swift refactor pass
jonathan308 Nov 9, 2026
f6f91fe
fix(desktop): the development preview lists the network's models and …
jonathan308 Nov 10, 2026
9eda8e4
Merge dev (0f11fbe01a: #1932) into feat/desktop-catch-up
jonathan308 Nov 10, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions changelog.d/desktop-api-catch-up.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
### The desktop API reads clusters, Darkbloom Sandbox, waitlists and local serving, and runs their actions

- New resources: `cluster` (`darkbloom cluster status --json` as this build prints it; when it can't be read, the same shape with `state: "unknown"` and why), `sandbox` (the add-on's status, with its last update check in Unix seconds), `sandbox-logs` (the agent log's last 200 lines, without terminal escapes) and `waitlists` (`darkbloom waitlist --json`, or why there is no list and whether linking the Mac helps). Each is read only when the app asks, and repeated reads share one run.
- The state snapshot adds `local`: how this Mac serves (`[local]` in provider.toml), where your requests go, whether an account key is saved (never the key), and how long Darkbloom stays paused for you.
- New actions: start with `network` (`--network`) or, on a paired Mac, `solo` (`start --solo` with its models); `cluster_leave`; `waitlist_join`; `sandbox_pause`, `sandbox_resume`, `sandbox_uninstall` and `sandbox_setup`, which reports its lines, the installer's stage and the one browser approval while it runs and can be cancelled; `route`; `route_key`, whose key goes to `darkbloom route key --stdin` on standard input only and never reaches the operation journal, an operation, a snapshot or an error; `local_settings` (me first, applied at the next start); `tool_setup` (`start --opencode` or `--hermes`); and `update_rollback` (`update --rollback --yes`). Contradictory starts (two ways to serve) are refused before anything runs.
- `darkbloom sandbox setup --json-events` (hidden, for the app) writes each line and each installer event as one JSON object per line; a SIGTERM ends it, or reaches a running installer as Ctrl-C so an enrollment waiting for approval goes on.
- `darkbloom sandbox setup` shows the installer's approval link, code and progress as soon as the installer prints them. It read the installer's output 16 KiB at a time, so they could appear only once that much had arrived or the installer had ended.
- `capabilities` names `cluster`, `sandbox`, `waitlists`, `local_serving`, `tool_setup` and `update_rollback`.
5 changes: 5 additions & 0 deletions changelog.d/desktop-chat.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
### Chat in Darkbloom for Mac

- A Chat tab talks to the models this Mac serves on its local API (Only me, or Both, me first), with the iPhone app's look and motion: the Darkbloom mark over a faint field of blue pixel tiles and a new line each launch, your words in a quiet blue slab, replies as plain text with code blocks, reasoning folded into "Thought for N s", and streamed text that settles from faint to full ink. Everything stays still with Reduce Motion.
- Choose a model (this Mac's first, then your other Macs' and the Darkbloom network's, which is billed) and, for a model that reasons, its reasoning effort. Chats stay on this Mac, titled from their first message. Stop ends an answer; a refused one shows the local API's own words, such as a busy Mac's.
- Without a local API, Chat says so and opens Studio, where you turn it on. The app calls only this Mac's loopback address, and the local API key never reaches the page.
6 changes: 6 additions & 0 deletions changelog.d/desktop-cluster-setup-session.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
### The desktop app can run the two-Mac cluster setup with its own screens

- The local API runs the cluster setup for the app: `POST /control/v1/cluster/session` starts `darkbloom cluster` (or `darkbloom cluster local` with a model and an address) without a terminal, and the app reads its screen, answers its questions and follows it as it pairs the Macs, chooses the pair's model and how it serves, and starts serving. One setup runs at a time, and other actions wait for it.
- The setup's questions are the ones Terminal asks, in the same words: the pairing code, the model, how both Macs split it, how the pair serves, a copy, and the clusters waitlist. A wait offers its key only where Terminal acts on it (q cancels the pairing's wait; q leaves the start's wait), and the app's Cancel ends the setup at its next question or wait, as q does.
- A step the app can't take, such as sudo where macOS shows no prompt, says to run `darkbloom cluster` in Terminal. A runtime without this support says it needs a newer runtime.
- New hidden flag for the app: `darkbloom cluster --app-console` (and `darkbloom cluster local --app-console`) writes the setup's screen as JSON lines and reads its answers as JSON lines.
6 changes: 6 additions & 0 deletions changelog.d/desktop-clusters.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
### The desktop app's Clusters page sets up a two-Mac pair and runs it

- A new **Clusters** page sets up a pair with `darkbloom cluster`'s own steps, questions and words, without Terminal. **Set up a pair** (once your account is approved on the Clusters waitlist, which the page shows) and **Serve on my own Macs only** (no approval needed) open a guided setup: each step as the CLI says it, live work with one row per Mac, copy and download bars, the pairing code large with its Yes or No, and the questions as lists you move through with ↑ and ↓ and take with Enter, such as how the pair serves (Only me, Darkbloom network or Both, me first), the model with its split ("tensor parallel", "pipeline") and how both Macs split it. It ends with the ✓ or ✗ card. **Cancel** asks first while a pairing is in progress, and leaving the page doesn't stop a setup: it's there again when you come back.
- On a paired Mac the page shows both Macs and which one leads, whether the other Mac answers, the model with its mode and each Mac's share, how the pair serves, its state with the CLI's reason and next step, and the cluster service. **Start serving**, **Stop serving** and **Restart serving** act on the pair. **Change model or how it serves** opens the setup on the Mac that leads. **Serve this Mac alone** and **Leave the pair** ask first; leaving says what `darkbloom cluster leave` does.
- This Mac's overview shows the pair in one line, with a link to Clusters.
- With a Darkbloom CLI from before clusters, the page says it needs a newer CLI; with one that can't run the setup from the app, it names the Terminal commands to copy.
4 changes: 4 additions & 0 deletions changelog.d/desktop-early-access.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
### The desktop app shows Early access: where your account stands on each waitlist

- A new **Early access** page lists every waitlist the coordinator offers, such as Clusters and Darkbloom Sandbox, and where your account stands, as `darkbloom waitlist` says it: not joined, with **Join the waitlist**; your place in line and the day you joined; approved since a day, with **Open** for a feature that has a page in the app or else the command that starts it, to copy; or revoked, which joining again doesn't restore.
- When the list can't be shown, the page says why: a Mac that isn't linked links from the page with the app's own code, a coordinator without waitlists has nothing to join, and anything else shows the reason with **Try again**. A Darkbloom CLI without waitlists gets a one-line note to update it.
8 changes: 8 additions & 0 deletions changelog.d/desktop-local-serving.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
### The app's Studio serves the CLI's way, and Updates can roll back

- This Mac > Studio asks the start question in its own words: **Only me**, **Darkbloom network** or **Both, me first** (recommended), with the saved choice marked. **Apply** saves the new choice and restarts serving with the models serving now (or one you choose when none serves), and says so first. Before, Studio offered only "Alongside the network" and "Local only", and the network alone couldn't be chosen in the app.
- With **Both, me first**, Studio turns me first on or off and sets the minutes with none of your requests before Darkbloom comes back (1 to 120); a change applies when serving restarts, and **Restart serving** is offered. It says when Darkbloom is paused for you and when it comes back.
- **When this Mac can't take a request**: Only this Mac, Only my Macs (free) or My Macs first (then the network, billed to your balance), saved as `darkbloom route` saves it. The last two need your account API key: paste it once and **Save key**. The app sends it to the Keychain and keeps no copy; it shows only "Key saved".
- **Use it in your tools**: **Set up OpenCode** and **Set up Hermes** run `darkbloom --opencode` and `--hermes`; with an older CLI, Studio shows those commands to copy. Connection details add the port and address the local API listens on.
- Updates offers **Return to the previous release** (`darkbloom update --rollback`), asked first.
- With a CLI from before these, Studio stays as it was, with one line saying a newer Darkbloom CLI adds me first, request routing and tool setup.
6 changes: 6 additions & 0 deletions changelog.d/desktop-sandboxes.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
### The desktop app sets up and manages Darkbloom Sandbox

- The app's new **Sandboxes** page does what `darkbloom sandbox` does, in its words. Without the add-on it says what Darkbloom Sandbox is (approved GitHub Actions jobs in Linux and macOS VMs; each job pays its price minus a 10% fee into your Darkbloom balance, and inference pauses while a job runs), what this Mac needs and what loses jobs, and offers setup once Darkbloom approved your account from the waitlist: jobs at a time (automatic, or your own Linux and macOS counts), an optional work disk such as `/Volumes/FastSSD`, and whether to wait for the VM images.
- While setup runs, the page shows the installer's stages, the one browser approval with its code and **Open approval page**, and the waitlist; it says when the app can close because this Mac enrolls by itself. A setup that ends early says why: this Mac can't host it as it is, it was not enrolled, or a job is running so nothing changed.
- Once installed, the page shows the add-on's state and what it means for inference, free Linux and macOS slots, running jobs, images and work disks, with **Open console**, **Pause** and **Resume**, **Change jobs at a time**, the add-on's log, and **Uninstall** (running jobs end unpaid, so it asks first).
- A Darkbloom CLI without Darkbloom Sandbox support gets one line saying it needs a newer one.
13 changes: 13 additions & 0 deletions desktop-app/src/main/backend.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ const resources = new Set<Resource>([
'insights-month',
'request-history',
'hardware',
'cluster',
'sandbox',
'sandbox-logs',
'waitlists',
]);
export function validateDiscovery(value: unknown): {
port: number;
Expand Down Expand Up @@ -215,6 +219,15 @@ export class Backend extends EventEmitter {
redirect: 'error',
});
}
// The guided cluster setup's stream: the whole session on every change.
async openClusterSessionEvents(signal: AbortSignal) {
if (!this.connection) throw new Error('Runtime is not connected');
return fetch(`http://127.0.0.1:${this.connection.port}/control/v1/cluster/session/events`, {
headers: { Authorization: `Bearer ${this.connection.token}` },
signal,
redirect: 'error',
});
}
async watch() {
while (!this.stopped) {
try {
Expand Down
Loading
Loading