Skip to content

Sharpen body-format and output-contract docs#5

Merged
AngelMsger merged 1 commit into
mainfrom
docs/comment-format-and-output-precision
May 18, 2026
Merged

Sharpen body-format and output-contract docs#5
AngelMsger merged 1 commit into
mainfrom
docs/comment-format-and-output-precision

Conversation

@AngelMsger
Copy link
Copy Markdown
Owner

Third doc-review pass. Documentation precision only — no code change.
All three findings verified against the implementation.

  1. --body-format value setstechnical-design.md §5 merged
    page create/update and comment add/update into one
    storage|wiki|markdown note, but comment add/update only accept
    storage|wiki. Now split: page supports markdown, comment does not.
  2. List envelope vs. ndjson — README said list commands "return a
    {items,next,has_more} envelope" unconditionally; --format ndjson
    actually streams the items themselves. Now scoped to the default JSON
    output, with the ndjson behaviour spelled out.
  3. Testing strategy wording — §6.4 said the e2e suite asserts "stdout
    JSON"; corrected to "stdout output contract and exit codes", consistent
    with the raw-output exceptions documented in §6.1 (version,
    attachment download --output -, skill show).

Verification

Docs-only; go build / go test unaffected. No docs/cli/ regeneration
needed (no command or flag change).

🤖 Generated with Claude Code

Third doc-review pass — documentation precision only, no code change.

- technical-design.md §5: split the --body-format note — `page create/update`
  support storage|wiki|markdown, but `comment add/update` only storage|wiki.
- technical-design.md §6.4 (testing): the e2e suite asserts the stdout output
  contract and exit codes, not "JSON" uniformly (raw-output exceptions, §6.1).
- README: the {items,next,has_more} envelope is the default JSON shape;
  --format ndjson streams the items themselves instead.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@AngelMsger AngelMsger merged commit 1ca13f3 into main May 18, 2026
2 checks passed
@AngelMsger AngelMsger deleted the docs/comment-format-and-output-precision branch May 18, 2026 17:37
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