Files
reverse-engineering-anything/src/contracts/sessionStatusContract.ts
T
morluto 0e83d92c58 fix(mcp): advertise existing absolute path constraints
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.
2026-10-20 19:54:14 +08:00

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(),
});