Add initial way to get info about execution context

This commit is contained in:
2026-01-10 13:37:39 -06:00
parent b235a6be9a
commit df2d4eea3f
4 changed files with 53 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
import { z } from "zod";
export const executionContextSchema = z.object({
diachron_root: z.string(),
});
export type ExecutionContext = z.infer<typeof executionContextSchema>;
export function parseExecutionContext(env: Record<string, string | undefined>): ExecutionContext {
return executionContextSchema.parse(env);
}