Support unban/unallow

This commit is contained in:
Jon Staab
2026-02-26 13:35:13 -08:00
parent 606a9343d9
commit 65483a6ef0
4 changed files with 117 additions and 40 deletions
+10
View File
@@ -29,6 +29,7 @@ import {
fromPairs,
groupBy,
remove,
simpleCache,
} from "@welshman/lib"
import type {Override} from "@welshman/lib"
import type {RepositoryUpdate} from "@welshman/net"
@@ -1124,6 +1125,15 @@ export const deriveSocketStatus = (url: string) =>
}),
)
export const deriveSupportedMethods = simpleCache(([url]: [string]) => {
return readable<ManagementMethod[]>([], set => {
manageRelay(url, {
method: ManagementMethod.SupportedMethods,
params: [],
}).then(({result = []}) => set(result))
})
})
export const deriveTimeout = (timeout: number) => {
const store = writable<boolean>(false)