refactor(workspaces): make Docker a generic runtime

The server build, typecheck, and dry-run package pass with the Docker implementation deleted from the tree. paseo-workspace-helper remains a mandatory generic runtime contract requirement.
This commit is contained in:
Mohamed Boudra
2026-08-13 21:59:13 +02:00
parent cbb8295ceb
commit 36d8464068
51 changed files with 781 additions and 464 deletions
@@ -4,7 +4,7 @@ export const COMMAND_RUNTIME_PROTOCOL_VERSION = 1 as const;
const ProtocolVersionSchema = z.literal(COMMAND_RUNTIME_PROTOCOL_VERSION);
const EnvironmentSchema = z.record(z.string(), z.string());
const OptionsSchema = z.record(z.string(), z.unknown());
const OptionsSchema = z.record(z.string(), z.json());
const CommandSchema = z.array(z.string()).min(1);
export const CommandRuntimeProjectSourceSchema = z.discriminatedUnion("kind", [
@@ -92,6 +92,7 @@ export const CommandRuntimeCreateInputSchema = z
export const CommandRuntimeLifecycleRequestSchema = z
.object({
protocolVersion: ProtocolVersionSchema,
runtimeInstanceId: z.string().min(1),
input: CommandRuntimeCreateInputSchema.optional(),
options: OptionsSchema,
workspaceIds: z.array(z.string()).optional(),
@@ -187,6 +188,7 @@ export const CommandRuntimeSpawnEnvelopeSchema = z
.object({
type: z.literal("spawn"),
protocolVersion: ProtocolVersionSchema,
runtimeInstanceId: z.string().min(1),
argv: CommandSchema,
cwd: z.string().optional(),
env: EnvironmentSchema,