refactor: use canonical implementations and types directly

Remove forwarding wrappers and shadow aliases, migrate callers and verification scripts to their owners, and share one exhaustive semantic resource-bound projection.
This commit is contained in:
morluto
2026-10-09 23:35:19 +08:00
parent 3283a45d09
commit 765e809e36
119 changed files with 577 additions and 629 deletions
+3 -5
View File
@@ -1,9 +1,7 @@
import { z } from "zod";
import { isAbsolute } from "node:path";
import {
isAbsoluteLocalPath,
localPathStringSchema,
} from "../domain/localPath.js";
import { localPathStringSchema } from "../domain/localPath.js";
/** Optional expectations used to compare the live session with its caller. */
export const binarySessionInputSchema = z.strictObject({
@@ -13,7 +11,7 @@ export const binarySessionInputSchema = z.strictObject({
.regex(/^[a-f0-9]{64}$/u)
.optional(),
expected_server_path: localPathStringSchema
.refine(isAbsoluteLocalPath, {
.refine(isAbsolute, {
message:
"expected_server_path must be an absolute local filesystem path (for example /opt/rea/dist/main.js)",
})