test: satisfy post-merge push gates

This commit is contained in:
Dudu-0223
2026-07-14 11:02:49 +08:00
parent 30ba5bd23c
commit b69129601e
2 changed files with 5 additions and 1 deletions

View File

@@ -29,6 +29,9 @@ export function privateRoot(): string {
return defaultRoot
}
// Deliberately mirrors the JSONL path encoder, but keeps spill's empty-name
// policy (`""` -> `"~"`) local so storage backends stay decoupled.
/* jscpd:ignore-start */
/**
* Encode an arbitrary string as one safe path segment, injectively over ALL JS
* (UTF-16) strings. A session id / suggested name is untrusted input, so this
@@ -58,6 +61,7 @@ export function encodeSegment(raw: string): string {
}
return out
}
/* jscpd:ignore-end */
/**
* The session-scoped directory: `<root>/session-<hash(sessionId)>`, a short stable hash.