feat: add sheets_insert_rows tool for inserting rows with optional da…#80
Merged
feat: add sheets_insert_rows tool for inserting rows with optional da…#80
Conversation
…ta and enhance validation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces a new feature for inserting rows into Google Sheets and improves documentation and validation for related tools. The most significant changes are the addition of the
sheets_insert_rowstool, enhancements to thesheets_append_valuesdescription, and the corresponding updates to documentation and tests.New Tool: Row Insertion
sheets_insert_rowstool to insert rows at a specific position with optional data, formatting inheritance, and flexible value input options (RAWorUSER_ENTERED). Includes implementation insrc/tools/insert-rows.ts, registration insrc/index.ts, and export insrc/tools/index.ts. [1] [2] [3] [4]sheets_insert_rowsviavalidateInsertRowsInputinsrc/utils/validators.ts, ensuring correct types, defaults, and error handling for all parameters.Documentation and Usability Improvements
README.mdto document the newsheets_insert_rowstool, its parameters, and usage examples. Also clarified the default overwrite behavior ofsheets_append_valuesand how to insert new rows. [1] [2]sheets_append_valuesinsrc/tools/append-values.tsto warn users about the defaultOVERWRITEbehavior and how to useINSERT_ROWSinstead.CHANGELOG.mdto reflect new features and documentation changes for version 1.5.0.1.5.0inpackage.json.Testing
handleInsertRowsfunction intests/unit/tools/insert-rows.test.ts, covering basic insertion, value population, formatting inheritance, error handling, and edge cases.sheets_insert_rowsintests/unit/utils/validators.test.ts, ensuring robust error reporting and correct defaults. [1] [2]…ta and enhance validation