Skip to content

Graphorin API reference v0.1.0


Graphorin API reference / @graphorin/skills / spec / compareAuthorSpecHint

Function: compareAuthorSpecHint()

ts
function compareAuthorSpecHint(authorValue): "same" | "older" | "newer" | "unparseable";

Defined in: packages/skills/src/spec/index.ts:137

Compare an author's graphorin-anthropic-spec value against the bundled snapshot date. Returns:

  • 'same' — the author targeted the same snapshot.
  • 'older' — the author targeted an older snapshot.
  • 'newer' — the author targeted a newer snapshot.
  • 'unparseable' — the author's value could not be interpreted as an ISO-8601 date.

Parameters

ParameterType
authorValuestring

Returns

"same" | "older" | "newer" | "unparseable"

Stable