Graphorin API reference v0.7.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:141
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
| Parameter | Type |
|---|---|
authorValue | string |
Returns
"same" | "older" | "newer" | "unparseable"