show exit nodes in resource launcher

This commit is contained in:
miloschwartz
2026-09-29 17:05:07 -04:00
parent c0c0cfb18a
commit a46fc531d4
9 changed files with 64 additions and 10 deletions
@@ -125,6 +125,16 @@ export function formatPublicResourceAccess(
export function formatSiteResourceAccess(
resource: SiteResourceAccessInput
): LauncherAccessFields {
// Exit node (gateway) destinations are always 0.0.0.0/0 — not useful to
// show or copy. The launcher UI renders a localized capability label.
if (resource.mode === "gateway") {
return {
accessDisplay: "",
accessCopyValue: "",
accessUrl: null
};
}
if (
(resource.mode === "http" || resource.mode === "inference") &&
resource.fullDomain
@@ -55,12 +55,12 @@ const listAllSiteResourcesByOrgQuerySchema = z.strictObject({
}),
query: z.string().optional(),
mode: z
.enum(["host", "cidr", "http", "ssh", "inference"])
.enum(["host", "cidr", "http", "ssh", "inference", "gateway"])
.optional()
.catch(undefined)
.openapi({
type: "string",
enum: ["host", "cidr", "http", "ssh", "inference"],
enum: ["host", "cidr", "http", "ssh", "inference", "gateway"],
description: "Filter site resources by mode"
}),
sort_by: z