MCPcopy Create free account
hub / github.com/cursor/plugins / parseStateJson

Function parseStateJson

orchestrate/skills/orchestrate/scripts/schemas.ts:580–588  ·  view source on GitHub ↗
(text: string, source: string)

Source from the content-addressed store, hash-verified

578}
579
580export function parseStateJson(text: string, source: string): State {
581 return parseJsonWithSchema({
582 schema: StateSchema,
583 text,
584 source,
585 recoveryHint: `Fix the offending fields or delete ${source} to start fresh.`,
586 normalize: normalizeLegacyStateValue,
587 });
588}
589
590export function parseTreeStateJson(text: string, source: string): TreeState {
591 let value: unknown;

Callers 3

loadMethod · 0.90
resolveCommentTargetFunction · 0.90
schemas.test.tsFile · 0.90

Calls 1

parseJsonWithSchemaFunction · 0.85

Tested by

no test coverage detected