Skip to content

feat!: annotationsFrom takes structured-context's issue list - #32

Merged
mindsocket merged 2 commits into
mainfrom
claude/project-thread-plfu1w
Nov 10, 2026
Merged

mindsocket merged 2 commits into
mainfrom
claude/project-thread-plfu1w

Conversation

@mindsocket

Copy link
Copy Markdown
Owner

Requested by Rog · project thread

Follows mindsocket/structured-context#217 (released in 0.23.0). That release reports validation as one issues list, where each issue carries its kind and severity, and it drops nodeIssues.

What

  • annotationsFrom({ issues }, graph) reads the list. You can pass a ValidationResult or sctx validate --json output as it is. There's no separate ruleViolations input any more.
  • In UnattachedAnnotation, line/column become location (a SourceLocation), so a parse issue keeps its file. The navigator's "Not on a node" panel now groups by node, then by file.
  • nodes.validationSources gains parse, because it follows core's VALIDATION_ISSUE_KINDS. The generated schemas are regenerated.
  • Both packages now depend on structured-context ^0.23.0. exportSnapshot and the navigator pass issues straight through.
  • Docs trimmed so they point at structured-context's types instead of listing them.

Checks

bun test (78 pass), bun run typecheck, bun run lint. I couldn't run bun run build and test:package to the end here, because the sandbox blocks jsDelivr. The library build itself succeeded.

Breaking for hosts, so this should be a minor release (0.6.0). After it's published, the core plugin's map pane can drop its PROTOTYPE: adapter.


Generated by Claude Code

structured-context 0.23 reports validation as one `issues` list, each issue
with its kind and severity, and drops nodeIssues. annotationsFrom now takes
{ issues } as a ValidationResult or `sctx validate --json` gives it, so either
can be passed as it is.

UnattachedAnnotation's line/column become `location` (a SourceLocation), so a
parse issue keeps its file. 'parse' joins the validationSources enum, which
follows core's VALIDATION_ISSUE_KINDS.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019Xphpde5yiQF1dWi3KfETS
@mindsocket mindsocket self-assigned this Nov 10, 2026

@mindsocket mindsocket left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Work needed to simplify docs and code comments

Comment thread docs/api.md Resolved
…kinds from core

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019Xphpde5yiQF1dWi3KfETS
@mindsocket
mindsocket merged commit 58640f9 into main Nov 10, 2026
1 check passed
@mindsocket
mindsocket deleted the claude/project-thread-plfu1w branch November 10, 2026 03:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants