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

Function isValidAndon

orchestrate/skills/orchestrate/scripts/core/andon.ts:239–243  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

237}
238
239function isValidAndon(value: unknown): value is Andon {
240 // Cached state JSON is git-fetched and partially untrusted, so validate via
241 // the strict schema rather than handrolling field checks.
242 return AndonSchema.safeParse(value).success;
243}
244
245function truncate(s: string, n: number): string {
246 return s.length > n ? `${s.slice(0, n)}…` : s;

Callers 1

syncFromCachedStateMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected