docs(sdk): add JSDoc to exported interfaces in packages/sdk/src/types.ts#26441
docs(sdk): add JSDoc to exported interfaces in packages/sdk/src/types.ts#26441cocosheng-g merged 2 commits intomainfrom
Conversation
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request focuses on improving the maintainability and usability of the SDK by documenting key interfaces. By providing clear descriptions for types and properties, it helps contributors and consumers better understand the agent's configuration, filesystem operations, and session context. Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here. Footnotes
|
|
Size Change: -4 B (0%) Total Size: 33.9 MB
ℹ️ View Unchanged
|
There was a problem hiding this comment.
Code Review
This pull request adds JSDoc documentation to the SDK's type definitions and interfaces to improve code clarity. The review feedback identifies several security risks, including prompt injection, command injection, and path traversal, and suggests enhancing the documentation with explicit security warnings and sanitization requirements for sensitive components like SystemInstructions, AgentShell, and AgentFilesystem.
Summary
This PR adds JSDoc documentation to several public interfaces in
packages/sdk/src/types.tsto improve discoverability and understanding for SDK consumers and contributors.Details
Added comprehensive JSDoc comments to:
SystemInstructionsGeminiCliAgentOptionsAgentFilesystemAgentShellOptionsAgentShellResultAgentShellSessionContextThese comments describe the purpose and usage of each interface and its properties.
Related Issues
Closes #21505
How to Validate
packages/sdk/src/types.tsto verify the added JSDoc comments.Pre-Merge Checklist