Skip to content

feat: update SDK installation instructions and enhance development scripts#1779

Merged
alt-glitch merged 1 commit intonextfrom
sid/0.8.0-sdk
Jul 22, 2025
Merged

feat: update SDK installation instructions and enhance development scripts#1779
alt-glitch merged 1 commit intonextfrom
sid/0.8.0-sdk

Conversation

@alt-glitch
Copy link
Copy Markdown
Contributor

  • Changed the "dev" script to run build snippets before starting the documentation server.
  • Added a new "dev:all" task in turbo.json for better dependency management.
  • Updated installation commands in documentation to reflect the new version 0.8.0 for various Composio packages.
  • Adjusted authentication snippets and examples for clarity and accuracy.

…ripts

- Changed the "dev" script to run build snippets before starting the documentation server.
- Added a new "dev:all" task in turbo.json for better dependency management.
- Updated installation commands in documentation to reflect the new version 0.8.0 for various Composio packages.
- Adjusted authentication snippets and examples for clarity and accuracy.
@alt-glitch alt-glitch merged commit 3495385 into next Jul 22, 2025
7 checks passed
@alt-glitch alt-glitch deleted the sid/0.8.0-sdk branch July 22, 2025 06:46
@claude
Copy link
Copy Markdown
Contributor

claude bot commented Jul 22, 2025

Claude finished @alt-glitch's task —— View job


Documentation Review Complete ✅

I've thoroughly reviewed the documentation changes in this PR focusing on grammar, spelling, clarity, readability, consistency, tone, and adherence to the style guide in fern/CLAUDE.md.

Todo List:

  • Read documentation style guide in fern/CLAUDE.md
  • Read all changed documentation files
  • Analyze changes for grammar and spelling issues
  • Review clarity and readability improvements
  • Check consistency and tone across files
  • Verify adherence to style guidelines
  • Provide comprehensive review feedback

🎯 Overall Assessment: EXCELLENT

This PR demonstrates strong attention to detail with consistent, professional documentation updates that significantly improve the developer experience.

Strengths

Version Consistency & Accuracy

  • Systematic version updates: All package versions consistently updated to 0.8.0 across Python and TypeScript SDKs
  • Complete coverage: Updated versions in quickstart guides, provider docs, and example files
  • Developer experience: Clear, actionable installation instructions

Development Workflow Improvements

  • Smart dependency management: The new dev:all task and updated dev script properly handle build dependencies
  • Better documentation build process: Running build snippets before starting the dev server prevents broken examples

Documentation Quality

  • Style guide compliance: Follows scientific research tone, avoids marketing language
  • Proper structure: Uses appropriate headers, code blocks, and formatting
  • Consistency: Maintains uniform tone and terminology across all files

🔍 Detailed Review Findings

Grammar & Spelling

No issues found - All text is grammatically correct with proper spelling throughout.

Clarity & Readability

Excellent clarity - Installation commands are clear and actionable. Code examples are well-structured with appropriate context.

Consistency & Tone

Professional consistency - Maintains the scientific research tone specified in the style guide. No marketing fluff or unnecessary elaboration.

Style Guide Adherence

Full compliance with fern/CLAUDE.md guidelines:

  • Scientific research tone ✅
  • Concise, direct language ✅
  • Proper code block formatting ✅
  • Appropriate use of components (CodeGroup, SnippetCode) ✅

🚀 Impact Assessment

This PR significantly improves:

  1. Developer onboarding - Consistent v0.8.0 installation instructions
  2. Documentation development - Better build process prevents broken examples
  3. Code maintenance - Cleaner authentication patterns in snippets

💡 Minor Suggestions (Optional improvements for future consideration)

  1. Version variable: Consider using a variable for version numbers to simplify future updates
  2. Installation verification: Could add verification steps after installation commands
  3. Migration note: A brief note about upgrading from previous versions might help existing users

Verdict: This PR is ready for merge. The documentation changes are professional, consistent, and significantly improve the developer experience with accurate version information and better development workflows.

f"https://api.github.com/repos/composiohq/composio/issues/{request.issue_number}",
headers={
"Accept": "application/vnd.github.v3+json",
"Authorization": f"Bearer {auth_credentials['access_token']}",
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

correctness: auth_credentials['access_token'] access will raise a KeyError if 'access_token' is missing, causing a runtime crash for incomplete credentials.

🤖 AI Agent Prompt for Cursor/Windsurf

📋 Copy this prompt to your AI coding assistant (Cursor, Windsurf, etc.) to get help fixing this issue

In fern/pages/src/tool-calling/custom-tools.mdx, on line 166, the code accesses `auth_credentials['access_token']` directly, which will raise a KeyError if 'access_token' is missing. Change this to use `auth_credentials.get('access_token', '')` to prevent runtime crashes when the key is absent.
📝 Committable Code Suggestion

‼️ Ensure you review the code suggestion before committing it to the branch. Make sure it replaces the highlighted code, contains no missing lines, and has no issues with indentation.

Suggested change
"Authorization": f"Bearer {auth_credentials['access_token']}",
"Authorization": f"Bearer {auth_credentials.get('access_token', '')}",

) -> dict:
"""Get information about a GitHub issue."""
response = requests.get(
f"https://api.github.com/repos/composiohq/composio/issues/{request.issue_number}",
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

security: request.issue_number is used directly in the GitHub API URL without validation, allowing path traversal or injection if attacker controls issue_number.

🤖 AI Agent Prompt for Cursor/Windsurf

📋 Copy this prompt to your AI coding assistant (Cursor, Windsurf, etc.) to get help fixing this issue

In fern/pages/src/tool-calling/custom-tools.mdx, lines 163-163, the code uses `request.issue_number` directly in the GitHub API URL, which could allow path traversal or injection if an attacker controls `issue_number`. Update the code to validate that `issue_number` is a digit before using it in the URL. Raise a ValueError if it is not valid. Apply the fix with correct indentation.
📝 Committable Code Suggestion

‼️ Ensure you review the code suggestion before committing it to the branch. Make sure it replaces the highlighted code, contains no missing lines, and has no issues with indentation.

Suggested change
f"https://api.github.com/repos/composiohq/composio/issues/{request.issue_number}",
issue_number = str(request.issue_number)
if not issue_number.isdigit():
raise ValueError("Invalid issue number")
response = requests.get(
f"https://api.github.com/repos/composiohq/composio/issues/{issue_number}",

user_id=user_id,
auth_config_id=airtable_auth_config_id,
config=auth_scheme.bearer_token()
config={"auth_scheme": "BEARER_TOKEN", "val": user_bearer_token},
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

correctness: user_bearer_token is used in the config for Airtable but is never defined, causing a runtime NameError and breaking authentication.

🤖 AI Agent Prompt for Cursor/Windsurf

📋 Copy this prompt to your AI coding assistant (Cursor, Windsurf, etc.) to get help fixing this issue

In fern/snippets/tool-calling/python/auth-tools.py, line 45, the variable `user_bearer_token` is used but never defined, which will cause a NameError at runtime. Replace `user_bearer_token` with a valid bearer token string or ensure it is defined before this line.
📝 Committable Code Suggestion

‼️ Ensure you review the code suggestion before committing it to the branch. Make sure it replaces the highlighted code, contains no missing lines, and has no issues with indentation.

Suggested change
config={"auth_scheme": "BEARER_TOKEN", "val": user_bearer_token},
config={"auth_scheme": "BEARER_TOKEN", "val": "your_airtable_bearer_token_here"},

@github-actions
Copy link
Copy Markdown
Contributor

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