fix(desktop): shared-compute usability — share toggle, usage indicator, model resync (#2448)

Signed-off-by: Tyler Longwell <tlongwell@block.xyz>
Co-authored-by: Michael Neale <michael.neale@gmail.com>
Co-authored-by: npub1qyvc0c5kl4gqv2fd97fsk46tu378sqgy35vc83rvgfwne90sel7s0ed67d <011987e296fd5006292d2f930b574be47c7801048d1983c46c425d3c95f0cffd@buzz.block.builderlab.xyz>
Co-authored-by: Tyler Longwell <tlongwell@block.xyz>
This commit is contained in:
Mic Neale
2026-07-24 16:21:01 +10:00
committed by GitHub
parent c86c4f59c4
commit 9cc9652c7d
16 changed files with 1036 additions and 71 deletions

View File

@@ -52,6 +52,27 @@ export async function meshNodeStatus(): Promise<MeshNodeStatus> {
return await invokeTauri<MeshNodeStatus>("mesh_node_status");
}
/**
* Host-side usage of the compute this machine is sharing. The
* local/remote/endpoint attempt split distinguishes this machine's own agents
* (local) from another member consuming this machine's compute (remote/endpoint).
*/
export type MeshServingUsage = {
inflight: number;
peakInflight: number;
requestsServed: number;
tokensServed: number;
tokensPerSecond: number;
localAttempts: number;
remoteAttempts: number;
endpointAttempts: number;
peers: number;
};
export async function meshServingUsage(): Promise<MeshServingUsage> {
return await invokeTauri<MeshServingUsage>("mesh_serving_usage");
}
export async function meshInstalledModels(): Promise<MeshModelOption[]> {
return await invokeTauri<MeshModelOption[]>("mesh_installed_models");
}