docs: add /launch feature documentation to API v1#438
docs: add /launch feature documentation to API v1#438jpelletier1 wants to merge 2 commits intomainfrom
Conversation
Add documentation for the /launch feature under a new 'Use Cases' section. The /launch route enables users to start conversations with pre-configured plugins from remote repositories. Includes: - URL formats (production with Base64 JSON and simple query params) - PluginSpec structure with all fields (source, ref, repo_path, parameters) - Example usage Co-authored-by: openhands <openhands@all-hands.dev>
all-hands-bot
left a comment
There was a problem hiding this comment.
🟡 Acceptable - Documentation accurately describes the /launch feature with verified PluginSpec structure. Minor improvement needed for completeness.
openhands/usage/api/v1.mdx
Outdated
| The `/launch` route enables users to specify a plugin location (e.g., GitHub repo) and an initial message to run within OpenHands Cloud. | ||
|
|
||
| - **URL format (production)**: <code>/launch?plugins=BASE64_ENCODED_JSON&message=Optional%20message</code> | ||
| - **URL format (simple)**: <code>/launch?plugin_source=github:owner/repo&plugin_ref=v1.0.0</code> |
There was a problem hiding this comment.
🟠 Important: The simple format documentation is missing the plugin_repo_path parameter.
The code supports this parameter (see launch.tsx line 73):
repo_path: searchParams.get("plugin_repo_path") ?? null,| - **URL format (simple)**: <code>/launch?plugin_source=github:owner/repo&plugin_ref=v1.0.0</code> | |
| - **URL format (simple)**: <code>/launch?plugin_source=github:owner/repo&plugin_ref=v1.0.0&plugin_repo_path=subdirectory</code> |
openhands/usage/api/v1.mdx
Outdated
| - **URL format (production)**: <code>/launch?plugins=BASE64_ENCODED_JSON&message=Optional%20message</code> | ||
| - **URL format (simple)**: <code>/launch?plugin_source=github:owner/repo&plugin_ref=v1.0.0</code> | ||
| - **PluginSpec structure**: | ||
| - `source` (string, required): Plugin source location (e.g., `github:owner/repo`, git URL, or local path) | ||
| - `ref` (string, optional): Branch, tag, or commit reference | ||
| - `repo_path` (string, optional): Subdirectory path within the repository | ||
| - `parameters` (object, optional): User-provided configuration values | ||
| - **Example**: <code>/launch?plugins=W3sic291cmNlIjoiZ2l0aHViOm9wZW5oYW5kcy9leGFtcGxlLXBsdWdpbiIsInJlZiI6InYxLjAuMCJ9XQ==&message=Analyze%20this%20codebase</code> |
There was a problem hiding this comment.
🟡 Suggestion: Consider using proper code blocks instead of inline <code> tags for the URL examples to improve readability:
**Production format:**/launch?plugins=BASE64_ENCODED_JSON&message=Optional%20message
**Simple format:**
/launch?plugin_source=github:owner/repo&plugin_ref=v1.0.0
**Example:**
/launch?plugins=W3sic291cmNlIjoiZ2l0aHViOm9wZW5oYW5kcy9leGFtcGxlLXBsdWdpbiIsInJlZiI6InYxLjAuMCJ9XQ==&message=Analyze%20this%20codebase
This makes the URLs easier to copy and test.
|
@OpenHands add |
|
Preview deployment for your docs. Learn more about Mintlify Previews.
|
|
I'm on it! jpelletier1 can track my progress at all-hands.dev |
- Added message as an optional parameter in PluginSpec structure - Updated example URLs to use app.all-hands.dev/launch instead of relative paths Co-authored-by: openhands <openhands@all-hands.dev>
|
✅ Done! I've updated the documentation:
Changes pushed in commit bd29d7c. Note: There are also 2 review comments on the PR that suggest:
Let me know if you'd like me to address those as well! |
Summary of Work CompletedI've successfully addressed the PR comment requesting updates to the ✅ Request Checklist
Changes MadeAll changes were concise and directly addressed the request:
Additional InformationI also identified 2 existing review comments on the PR suggesting:
These were noted in my PR comment for your consideration but not implemented as they weren't part of the current request. PR Link: #438 |
Summary of changes
Added documentation for the
/launchfeature to the API v1 documentation page under a new Use Cases section titled "Start Conversations from Plugins".The
/launchfeature enables users to specify a plugin location from a remote repository (e.g., GitHub) and an initial message to run within OpenHands Cloud.What's included:
openhands/usage/api/v1.mdxsource(required): Plugin source locationref(optional): Branch, tag, or commit referencerepo_path(optional): Subdirectory path within repositoryparameters(optional): User-provided configuration valuesThis documentation supports the
/launchfeature implemented in OpenHands/OpenHands#12699.@jpelletier1 can click here to continue refining the PR