Streamd v0.2.0: rename, modules panel, stable/beta channels
All checks were successful
release / build-and-upload (push) Successful in 7m5s

- Rename product/host binary to streamd (drm compat copy still shipped)
- Go module path streamd; STREAMD_* env aliases; agent UA streamd-agent
- Panel Modules store + agent pull sync (modstore / modsync)
- Rolling stable + beta download tags; README/docs channel curl blocks
- Release notes in docs/releases/v0.2.0.md attached by Forgejo Actions
This commit is contained in:
404errordeveloper 2026-10-10 15:58:26 +02:00
parent 066e018749
commit da8e1123ec
140 changed files with 2949 additions and 851 deletions

View file

@ -131,4 +131,43 @@ export const api = {
audit: (limit = 200) => api.get(`/api/audit?limit=${limit}`),
agents: () => api.get("/api/agents"),
apps: () => api.get("/api/apps"),
// --- modules ---
modules: () => api.get("/api/modules"),
module: (name, includeYaml) =>
api.get(`/api/modules/${encodeURIComponent(name)}${includeYaml ? "?include=yaml" : ""}`),
saveModuleYAML: (name, yaml) =>
api.put(`/api/modules/${encodeURIComponent(name)}`, { yaml }),
deleteModule: (name) => api.del(`/api/modules/${encodeURIComponent(name)}`),
uploadModuleZip: async (file, name) => {
const fd = new FormData();
fd.append("file", file, file.name || "module.zip");
if (name) fd.append("name", name);
const headers = {};
if (csrfToken) headers["X-CSRF-Token"] = csrfToken;
const res = await fetch("/api/modules/upload", {
method: "POST",
headers,
body: fd,
credentials: "same-origin",
});
const text = await res.text();
let data = null;
if (text) {
try {
data = JSON.parse(text);
} catch {
data = { raw: text };
}
}
if (res.status === 401) {
for (const fn of onUnauthorized) fn(data);
throw new ApiError((data && data.error) || "not signed in", 401, data);
}
if (!res.ok) {
const msg = (data && data.error) || res.statusText || `upload failed (${res.status})`;
throw new ApiError(msg, res.status, data);
}
return data;
},
};