MCPcopy Create free account
hub / github.com/RtlZeroMemory/Rezi / parseCursorProtocolVersion

Function parseCursorProtocolVersion

packages/core/src/repro/schema.ts:253–258  ·  view source on GitHub ↗
(value: unknown, path: string)

Source from the content-addressed store, hash-verified

251}
252
253function parseCursorProtocolVersion(value: unknown, path: string): ReproParseResult<2> {
254 if (value !== 2) {
255 return fail("ZR_REPRO_INVALID_BUNDLE", path, "cursorProtocolVersion must be 2");
256 }
257 return ok(value);
258}
259
260function parseSchema(value: unknown): ReproParseResult<ReproBundleSchema> {
261 if (typeof value !== "string") {

Callers 2

parseCaptureConfigFunction · 0.85
parseBackendCapsSnapshotFunction · 0.85

Calls 2

failFunction · 0.70
okFunction · 0.70

Tested by

no test coverage detected