Support remote workspace service links

This commit is contained in:
Mohamed Boudra
2026-04-11 10:15:10 +07:00
parent 2bbdc7ed86
commit 3b8cfcbec6
15 changed files with 235 additions and 29 deletions
+1 -1
View File
@@ -1866,7 +1866,7 @@ export const WorkspaceScriptPayloadSchema = z.object({
type: z.enum(["script", "service"]).optional().default("service"),
hostname: z.string(),
port: z.number().int().positive().nullable(),
url: z.string().nullable(),
proxyUrl: z.string().nullable().optional().default(null),
lifecycle: WorkspaceScriptLifecycleSchema,
health: WorkspaceScriptHealthSchema.nullable(),
exitCode: z.number().nullable().optional().default(null),
@@ -139,7 +139,7 @@ describe("workspace message schemas", () => {
scriptName: "web",
hostname: "web.localhost",
port: 3000,
url: "http://web.localhost:6767",
proxyUrl: "http://web.localhost:6767",
lifecycle: "running",
health: "healthy",
},
@@ -158,7 +158,7 @@ describe("workspace message schemas", () => {
type: "service",
hostname: "web.localhost",
port: 3000,
url: "http://web.localhost:6767",
proxyUrl: "http://web.localhost:6767",
lifecycle: "running",
health: "healthy",
exitCode: null,
@@ -205,7 +205,7 @@ describe("workspace message schemas", () => {
scriptName: "web",
hostname: "web.localhost",
port: null,
url: null,
proxyUrl: null,
lifecycle: "stopped",
health: null,
},