Refresh script library with batch uploads and beta handoff

This commit is contained in:
2026-09-18 09:57:57 -04:00
parent b2ec01daf5
commit ec51e38312
9 changed files with 576 additions and 382 deletions
+5
View File
@@ -36,8 +36,13 @@ export async function GET({ url }: { url: URL }) {
? serversMatchingScope(s.scope_type as ScopeType, s.scope_value)
: [];
const runningBeta = findRunningBetaForScript(s.id);
const current = versions.find(v => v.id === s.current_version_id);
return {
...s,
currentVersion: current ? {
id: current.id, version: current.version, sha256: current.sha256,
size: current.size, state: current.state, uploaded_at: current.uploaded_at
} : null,
latestVersion: versions[0]
? {
id: versions[0].id,