Skip to content

feat(output)!: Render semantic JSON for both audiences - #33

Merged
philprime merged 1 commit into
mainfrom
philprime/feat/semantic-json-output
Sep 24, 2026
Merged

philprime merged 1 commit into
mainfrom
philprime/feat/semantic-json-output

Conversation

@philprime

Copy link
Copy Markdown
Member

Make --json render normalized semantic documentation and combine it with --agent to include safe follow-up navigation. The CLI retains only these two output flags, with no interactive terminal dependencies.

Breaking output contract
Page JSON now exposes .title, declarations, availability, semantic content blocks, and resolved reference groups instead of upstream DocC fields such as .metadata.title. Raw DocC export is removed. Catalogs remain top-level arrays, with navigation added for the agent audience. CLI help, bundled skills, repository guidance, and release smoke checks use the new contract.

Verification
Focused regression tests, make test, make analyze, make build, and live integration checks passed. Direct release checks confirmed semantic agent JSON and the two-flag help output. Rebased onto origin/main after #32 merged, verified the source tree was unchanged, and reran tests and analysis.

Use --json for normalized documentation and combine it with --agent for navigation commands. Update bundled skills, output contracts, and release smoke checks without adding another output flag.

BREAKING CHANGE: types view --json now returns semantic fields such as title instead of raw DocC metadata. Raw DocC export is removed.
@philprime
philprime marked this pull request as ready for review September 24, 2026 18:40
@philprime
philprime enabled auto-merge (squash) September 24, 2026 18:41
@philprime
philprime merged commit cc810fb into main Sep 24, 2026
15 checks passed
@philprime
philprime deleted the philprime/feat/semantic-json-output branch September 24, 2026 18:46
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.

1 participant