mirror of
https://github.com/morluto/rea.git
synced 2026-11-14 02:32:54 +00:00
Reuse the schema-visible host path owner across session, firmware, managed, browser, Electron and Evidence-file inputs. Keep existing runtime and CLI path semantics. Refs #5493.
17 lines
580 B
TypeScript
17 lines
580 B
TypeScript
import { z } from "zod";
|
|
import { absoluteLocalPathStringSchema } from "../domain/localPath.js";
|
|
|
|
/** Optional expectations used to compare the live session with its caller. */
|
|
export const binarySessionInputSchema = z.strictObject({
|
|
expected_package_version: z.string().min(1).optional(),
|
|
expected_catalog_digest: z
|
|
.string()
|
|
.regex(/^[a-f0-9]{64}$/u)
|
|
.optional(),
|
|
expected_server_path: absoluteLocalPathStringSchema
|
|
.describe(
|
|
"Absolute local filesystem path expected for the running server; relative paths are rejected.",
|
|
)
|
|
.optional(),
|
|
});
|