Skip to content

docs: consolidate SDK documentation and fix README#47

Merged
varin-nair-factory merged 1 commit into
mainfrom
vn/docs-cleanup
May 22, 2026
Merged

docs: consolidate SDK documentation and fix README#47
varin-nair-factory merged 1 commit into
mainfrom
vn/docs-cleanup

Conversation

@varin-nair-factory
Copy link
Copy Markdown
Contributor

Summary

Consolidates SDK documentation into a single comprehensive usage guide and fixes stale references in the README.

Stacked on #46 (vn/code-quality-cleanup)

Changes

New: docs/sdk-usage-guide.md

Comprehensive SDK usage guide covering 26+ use cases with code snippets:

  • Getting Started section (install + minimal example)
  • Configuration Reference tables (CreateSessionOptions, MessageOptions, Error Types)
  • List Skills and Raw Notification Subscription sections
  • Low-level APIs paragraph (ProcessTransport, ProtocolEngine, DroidClient)
  • All existing use cases: one-shot run, structured output, multi-turn, streaming, MCP tools, spec mode, etc.

Deleted: 9 redundant doc files

All content superseded by sdk-usage-guide.md:

  • docs/examples/run.md, session-stream.md, multi-turn-session.md, permission-handler.md, spec-mode.md, init-metadata.md, tool-controls.md, list-sessions.md
  • docs/typescript-sdk-reference.md (unique content merged into usage guide)

Fixed: README.md

  • DroidMessageType.TurnCompleteDroidMessageType.Result
  • Message type table updated to match actual DroidMessageType enum values:
    • Removed nonexistent tool_use, turn_complete, create_message
    • Added assistant, user, tool_call, tool_call_delta, hook, result, assistant_text_complete, thinking_text_complete

Validation

  • npm run typecheck — passes
  • npm run lint — passes
  • npm run format:check — passes
  • npm test — 646 tests pass

@varin-nair-factory varin-nair-factory self-assigned this May 21, 2026
Base automatically changed from vn/code-quality-cleanup to main May 22, 2026 00:49
- Create comprehensive sdk-usage-guide.md with Getting Started, Config Reference, List Skills, Raw Notification, and Low-level APIs sections
- Delete 8 redundant example docs superseded by sdk-usage-guide.md
- Delete typescript-sdk-reference.md after merging unique content
- Fix README: DroidMessageType.TurnComplete → Result, update message type table to match actual enum values

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
@varin-nair-factory varin-nair-factory merged commit f9ea119 into main May 22, 2026
4 checks passed
@varin-nair-factory varin-nair-factory deleted the vn/docs-cleanup branch May 22, 2026 23:41
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