feat: individual tasks (#86)

* feat: hidden nodes and individual tasks

* chore: bump version
This commit is contained in:
LowderPlay
2026-08-25 17:21:07 +05:00
committed by GitHub
parent ada091c060
commit a92572ffdf
13 changed files with 216 additions and 60 deletions
+5 -1
View File
@@ -113,10 +113,14 @@ export type ProbeStatus = {
export function startProbeSSE(
id: string,
token: string,
onResult: (result: ProbeResult) => void,
onStatus: (status: Partial<ProbeStatus>) => void,
) {
const eventSource = new EventSource(`/api/v1/probe/${id}`);
const params = new URLSearchParams();
if (token) params.set("token", token);
const query = params.size > 0 ? `?${params.toString()}` : "";
const eventSource = new EventSource(`/api/v1/probe/${id}${query}`);
eventSource.addEventListener("started", (event) => {
const data = JSON.parse(event.data);