Replaced custom HMAC signing with jose SignJWT. Secret now read from env.
Code relevance annotation
Inline annotation explaining why a file or span was pulled into the agent's context.
Included in the single kansho full pack. Components are not offered as separate installs.
Reasons
Expected AuthError to be thrown — catch block silently returns null instead.
Pinned after v5.3 introduced breaking changes in key import. Do not upgrade without migration.
With jump handler
Compact — no detail
Component documentation
Code Relevance Annotation
components/sandbox/code-relevance-annotation.tsxPurpose
Explains why specific file and line ranges matter to an agent task.
Appropriate use
Use beside code inspection when operators need the reason, actor, and referenced locations.
Example
components/sandbox/code-relevance-annotation.tsx has a representative live example in the "With jump handler" section on /components/code-relevance-annotation.
States
Reasons are agent-edit, failing-test, search-match, memory-reference, lint, and review-comment; detail, actor, and jump callback are optional.
API and props
CodeRelevanceAnnotation accepts reason, title, detail, actor, mentions, onJump, and className; each mention supplies path, line, optional endLine, and optional snippet.
Dependencies
Direct imports are React, Lucide icons, InteractiveContainer, and cn.
Accessibility
Each mention exposes visible file and line text; mention rows become keyboard-operable buttons only when onJump is supplied.
Limitations
It does not load files, validate line ranges, navigate without onJump, collapse its always-visible content, or persist state.
Source
Source: components/sandbox/code-relevance-annotation.tsx.
Full pack
components/sandbox/code-relevance-annotation.tsx is documented at /components/code-relevance-annotation and installs only through the single Kansho full pack; no individual component install is offered.