Repository navigation
docs(clients): correct and expand Python & TypeScript client SDK references - #1117
Conversation
…rences
Audit-driven fixes to docs/agents/ROCKETRIDE_{python,typescript}_API.md,
verified against packages/client-{python,typescript}/src.
Corrections (would break copy-pasted code):
- Python: pipe() mime_type kwarg, constructor defaults, connect() signature
+ ConnectResult, use() threads default None + keyword-only, send() objinfo
default None, addInstruction(title, instruction).
- TypeScript: Question.add* return void (no chaining), TASK_STATUS.state
numeric enum + completed boolean polling, send() Promise<...| undefined>,
connect() real PKCE signature, onConnectError ConnectionException type,
setEvents pipeId param, dynamic answers field note.
- Both: removed phantom application/rocketride-tag MIME type (absent from
the codebase); fixed unsubstantiated Node 16 requirement.
Additions (verified API surface that was undocumented):
- Python: auth/connection lifecycle, restart(), get_task_token(), streaming
on_sse, exception hierarchy, top-level schema imports.
- TypeScript: auth/connection lifecycle, validate(), restart(),
getTaskToken(), getTaskPipeline(), streaming onSSE, add/removeMonitor,
exception classes.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
📝 WalkthroughWalkthroughThis PR updates RocketRide Python and TypeScript SDK API documentation to reflect new method signatures, execution APIs, streaming support, and type changes. Both documents are synchronized with client-side implementation changes for connection lifecycle, task management, data streaming, and error handling. ChangesRocketRide Client API Documentation
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Possibly related PRs
Suggested labels
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
🤖 Internal: Discord sync markerAuto-managed by the Discord notification workflow. Stores the linked Discord message ID. Do not edit or delete. |
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@docs/agents/ROCKETRIDE_typescript_API.md`:
- Around line 523-528: The documented chat() signature is missing the optional
onSSE parameter which causes a TypeScript mismatch; update the chat() API
signature to include the onSSE optional parameter (aligning it with how send()
and pipe() expose onSSE) by adding onSSE? to the chat({ token, question, ... })
declaration and any related examples so the documented function signature
matches the text that lists send() and pipe() having onSSE as the last
positional/option field.
- Around line 1035-1043: Add a language identifier to the fenced code block that
documents the error hierarchy (the block starting with "DAPException ...
RocketRideException ..."). Edit that fenced block to include a language tag such
as "text" (e.g., ```text) so markdownlint MD040 is satisfied and rendering is
preserved; keep the block content unchanged aside from adding the language
identifier.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Pro
Run ID: 4c82cec9-7156-4593-a82f-958985fde36b
📒 Files selected for processing (2)
docs/agents/ROCKETRIDE_python_API.mddocs/agents/ROCKETRIDE_typescript_API.md
…rences (rocketride-org#1117) Audit-driven fixes to docs/agents/ROCKETRIDE_{python,typescript}_API.md, verified against packages/client-{python,typescript}/src. Corrections (would break copy-pasted code): - Python: pipe() mime_type kwarg, constructor defaults, connect() signature + ConnectResult, use() threads default None + keyword-only, send() objinfo default None, addInstruction(title, instruction). - TypeScript: Question.add* return void (no chaining), TASK_STATUS.state numeric enum + completed boolean polling, send() Promise<...| undefined>, connect() real PKCE signature, onConnectError ConnectionException type, setEvents pipeId param, dynamic answers field note. - Both: removed phantom application/rocketride-tag MIME type (absent from the codebase); fixed unsubstantiated Node 16 requirement. Additions (verified API surface that was undocumented): - Python: auth/connection lifecycle, restart(), get_task_token(), streaming on_sse, exception hierarchy, top-level schema imports. - TypeScript: auth/connection lifecycle, validate(), restart(), getTaskToken(), getTaskPipeline(), streaming onSSE, add/removeMonitor, exception classes. Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Summary
Audit-driven fixes and additions to the client SDK reference docs (
docs/agents/ROCKETRIDE_{python,typescript}_API.md), every claim verified againstpackages/client-{python,typescript}/src. Docs-only — no code changes.Prompted by Ariel's review note that the client docs were likely outdated. They were: several documented examples would break on copy-paste, and large parts of the current API surface were undocumented.
Corrections (would break copy-pasted code)
Python
pipe()mimetype=→mime_type=(the real kwarg)(uri='', auth='');connect()real signature returningConnectResultuse()threadsdefaultNone(server decides) + keyword-only note;send()objinfodefaultNoneaddInstruction(title, instruction)TypeScript
Question.add*returnvoid(notQuestion— no chaining)TASK_STATUS.stateis a numericTASK_STATEenum +completed: boolean; polling usesstatus.completedsend(): Promise<PIPELINE_RESULT | undefined>;connect()real PKCE signatureonConnectErrorarg is aConnectionException;setEventsgainspipeId?Both
application/rocketride-tagMIME type (absent from the codebase)enginesfield;await usingneeds Node 20+/TS 5.2+)Additions (verified API surface that was undocumented)
attach/detach/login/logout/is_*),restart(),get_task_token(), streamingon_sse, exception hierarchy, top-level schema importsvalidate(),restart(),getTaskToken(),getTaskPipeline(), streamingonSSE,add/removeMonitor, exception classesVerification
ConnectOptionstype, TSaddInstructionparams).docs/agents/is the canonical source;build/vscode/docs/regenerates from it on./builder vscode:build.Summary by CodeRabbit