Skip to content

Bring back a check text command#11

Merged
ChrisChinchilla merged 7 commits intomainfrom
chrischinch/check_txt
Nov 10, 2025
Merged

Bring back a check text command#11
ChrisChinchilla merged 7 commits intomainfrom
chrischinch/check_txt

Conversation

@ChrisChinchilla
Copy link
Owner

Closes #6

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This pull request adds a new check_text tool to enable Vale linting of text content provided directly via stdin, without requiring a file. This complements the existing check_file tool by supporting dynamic content checking such as clipboard text, text snippets, or programmatically generated content.

  • Implements checkText() function in vale-runner.ts that executes Vale with text passed via stdin
  • Adds check_text tool definition and handler in index.ts
  • Minor whitespace cleanup (trailing whitespace removal)

Reviewed Changes

Copilot reviewed 4 out of 9 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
src/vale-runner.ts Adds new checkText() function to run Vale on text input via stdin; removes trailing whitespace
src/index.ts Imports checkText, adds check_text tool definition and request handler
build/vale-runner.js Compiled output of new checkText() function
build/vale-runner.d.ts Type declaration for new checkText() export
build/*.map Updated source maps for compiled files
.gitignore Adds .DS_Store to ignore macOS system files

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

ChrisChinchilla and others added 3 commits November 9, 2025 09:40
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy link
Contributor

Copilot AI commented Nov 9, 2025

@ChrisChinchilla I've opened a new pull request, #12, to work on those changes. Once the pull request is ready, I'll request review from you.

Copilot AI and others added 3 commits November 9, 2025 09:45
Co-authored-by: ChrisChinchilla <42080+ChrisChinchilla@users.noreply.github.com>
Replace `any` type with `ExecOptions` for type safety in vale-runner
Copy link
Collaborator

@theletterf theletterf left a comment

Choose a reason for hiding this comment

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

Nice!

@ChrisChinchilla ChrisChinchilla merged commit c6f8e37 into main Nov 10, 2025
2 checks passed
@ChrisChinchilla ChrisChinchilla deleted the chrischinch/check_txt branch November 10, 2025 08:40
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.

Retain text tool

4 participants