Releases: microsoft/genaiscript
v2.5.1
- 🚀 Enhanced DevContainer: Updated to Node.js 24 for better performance and added Codespaces repository permissions for streamlined workflows.
- 🛠️ Trace Safety Improvements: Fixed null dereference issues in server trace handling, ensuring robust error handling and optional chaining support.
- 🌟 Environment Metadata Support: Added the ability to parse and merge default script metadata from
GENAISCRIPT_DEFAULT_SCRIPT_METAenvironment variable. - 📂 File Operations: Improved file writing and appending debug logs for better traceability.
- 🧪 New Tests: Introduced extensive tests for trace safety, environment metadata parsing, and template handling.
- 📜 Sample Script: Added a new sample showcasing
system.fs_write_fileusage. - 🧹 .gitignore Update: Ignored
install-gh-aw.shandgh-awfor cleaner repositories.
v2.5.0
🚀 Enhanced Model Context Protocol (MCP) Support
- Introduced MCP configuration loading for seamless integration of Claude-format servers.
- Added interpolation of environment variables in MCP configs for flexible setups.
- Expanded resource management to include MCP server resources.
🛡️ Improved Security
- Validated paths to prevent directory traversal attacks.
- Strengthened command execution with shell injection prevention.
🌐 Expanded Cloud Integration
- Enhanced AWS Bedrock support, including region validation and credential checks.
🖼️ Smarter Image Generation
- Fixed DALL-E model compatibility for both edit and generate modes.
🔄 Robust Retry Mechanism
- Added retry logic for resolving language chat models in VSCode.
🧪 Better Testing & Debugging
- Introduced comprehensive MCP configuration tests.
- Improved debug logging for resource and model handling.
⚡ Dependency Updates
- Upgraded to @modelcontextprotocol/sdk v1.18.0 for latest features and stability.
- Updated esbuild to v0.25.9.
This release brings powerful integrations, enhanced security, and smoother workflows for GenAIScript users! 🚀✨
v2.4.1
🎉 Exciting Updates in GenAIScript 2.4.1!
🚀 Enhanced Flexibility with Frontmatter Parameters
Markdown scripts can now define parameters directly in their frontmatter! These parameters seamlessly integrate with provided data or use defaults for smooth variable interpolation.
🌐 Domain Access Control
A new allowedDomains feature ensures secure and configurable domain access for HTTP requests. Scripts can now override global settings for precise control.
🔧 Improved Resource Resolution
Windows-style paths are now correctly handled, and proper file URIs are supported for better compatibility and reliability.
🛠️ Model Update
Scripts now leverage github_copilot_chat:gpt-4.1 for more advanced AI capabilities.
✅ Robust Testing
Additional tests ensure stability and correctness, covering domain filtering, frontmatter parsing, and fetch behavior.
Upgrade now and enjoy these improvements! 🎉
v2.4.0
🎉 Enhanced GitHub Integration: Introducing GitHub issue creation directly from the CLI with the --issue flag. Automatically generate titles and link sub-issues for seamless workflow management.
🚀 Dynamic Context Extraction: Extract text ranges around specific lines with token-aware precision, perfect for handling large files in limited contexts.
🛠️ Improved FFmpeg Support: Replaced fluent-ffmpeg with a lightweight custom implementation, enhancing performance, error handling, and support for advanced video/audio processing options.
📊 New Resource Tools: Access and read various resource types (e.g., URLs, files, and gists) via the new resource_list and resource_read tools.
📅 Activation Keywords: Expanded activation triggers for systems like changelogs, diagrams, and file generation, making them more intuitive and accessible.
🔧 Bug Fixes & Refinements: Addressed edge cases in GitHub client error handling, improved server trace management, and optimized CLI options for better usability.
v2.3.15
🚀 New Features
- Enhanced MCP Configuration: Added support for overriding MCP configurations via the
--mcpsoption in CLI and API. Includes flexible file-based overrides and improved error handling. - Improved Test Framework: Introduced advanced progress tracking, timeout handling, and detailed summaries for test runs, ensuring better visibility and control during execution.
🛠 Improvements
- CSV Parsing Resilience: Enhanced
CSVParseto gracefully handle errors and added fallback mechanisms for better data preservation. - Markdown Scripts: Added support for
@includedirectives to inline external file content, streamlining script modularity.
🐛 Bug Fixes
- Exit Codes: Fixed script cancellation to return proper exit codes, addressing issue #1853.
- OpenAI API Type: Added support for the
responsesAPI type in OpenAI integrations.
🧹 Miscellaneous
- Improved CLI options with better descriptions and defaults.
- Enhanced logging for test results and token usage statistics.
v2.3.14
What's New in GenAIScript 2.3.14 🚀
-
Enhanced Workspace Security 🛡️: Introduced robust protections against unauthorized file writes, including path traversal and
.envfile restrictions. Added new tests to validate workspace boundaries. -
Improved CLI Functionality 🛠️: Added
--filter-modeloption to test and list commands, allowing users to filter scripts by model. Enhanced test evaluation with better error handling and exit code preservation. -
File Operations Simplified 📂: Added a new
fs_write_filesystem tool for writing and appending text files securely within the workspace. Parent directories are created automatically. -
Support for URL-based MCP Configurations 🌐: MCP configurations now support
urlandtypefields for HTTP, WebSocket, and SSE transports, alongside existingcommandoptions. -
Documentation Overhaul 📚: Expanded repository structure and build instructions in the
.ruler/instructions.mdfile. Generated comprehensivellms.txtandllms-full.txtfiles for better LLM content optimization. -
Performance Updates ⚡: Optimized
generateIdfunction to accept custom sizes. Improvedhost.execto preserve exit codes and provide detailed error outputs. -
VS Code Integration 🖥️: Added support for
NODE_OPTIONSin the server manager for enhanced debugging and configuration flexibility. -
New Sample Scripts 📝: Introduced examples demonstrating workspace security, exit code handling, and more.
Enjoy a more secure, flexible, and user-friendly GenAIScript experience! 🎉
v2.3.13
- 🚀 Enhanced LLM Optimization: Improved markdown and MDX processing with better extraction of core concepts and actionable insights. Added support to ignore MDX imports for cleaner summaries.
- 🖼️ Image Rendering Upgrade: Terminal image rendering now supports fallback to Unicode characters when colors are disabled, ensuring better cross-environment compatibility.
- 🔄 Retry Logic Simplification: Streamlined retry mechanisms for OpenAI and fetch operations, reducing redundant constants and improving flexibility.
- 🛠️ Debugging Improvements: Enhanced debug logs across components, including fetch, file parsing, and patch application, for easier troubleshooting.
- 🧪 New Tests: Introduced tests for terminal image rendering, ensuring robust support for both color and Unicode outputs.
- 📖 Documentation Links: Updated action descriptions with clickable links for better usability.
- 🛡️ Dependency Updates: Upgraded dependencies, including Playwright and OpenAI SDK, for improved performance and security.
v2.3.12
What's New in 2.3.12
🚀 Enhanced Image Generation
- Introduced
BufferToBlobutility for improved image handling. - Updated image generation to use
gpt-image-1as the default model. - Streamlined FormData handling for multipart requests, boosting compatibility and efficiency.
🎨 Markdown Reporting Improvements
- Refined
toMarkdownReportfor clearer and more compact usage summaries, including better token and cost formatting.
🐛 Bug Fixes & Consistency
- Fixed string body handling in
traceFetchPost. - Addressed minor formatting and type inconsistencies across the codebase.
Enjoy a more robust and polished GenAIScript experience!
v2.3.11
🎉 Enhanced LLM Optimization: Introduced a new script for generating concise, LLM-optimized content from markdown files, improving clarity and relevance for AI processing.
🛠️ PHP & Ruby System Support: Added specialized systems for PHP and Ruby, enabling better code generation and adherence to best practices.
🚀 Azure & OpenAI Improvements: Updated Azure OpenAI API version and enhanced compatibility for image generation, including edit and generation modes.
🔍 Model Listing Enhancements: Improved handling of model listing across multiple providers, ensuring better debugging and provider-specific configurations.
📋 Gitignore Updates: Expanded .gitignore rules for better workspace management and reduced noise in development environments.
🐛 Bug Fixes: Addressed issues in file ignoring logic, environment variable parsing, and token handling for smoother operations.
v2.3.10
- 🚀 HTTP Transport for MCP Server: Added support for HTTP transport in the Model Context Protocol (MCP) server, enabling easier integration and network accessibility. Includes Fastify-based implementation with proxy support, CORS, and health check endpoints.
- 🛠️ Enhanced Code Helpers: Introduced new code helper scripts for C/C++, Go, Java, and Rust, providing best practice suggestions and code quality improvements.
- 🧹 Improved File Handling: Extended
.genai.mdsupport and refined file glob patterns for better script and markdown handling. - 🧪 CLI Usability Improvements: Added aliases (
ls) for list commands across CLI tools, enhancing user experience. - 🐛 Bug Fixes & Cleanup: Addressed various issues, including redundant code, type refinements, and regex fixes, ensuring a more robust and maintainable codebase.
- 🔍 Annotations & Diagnostics: Enhanced diagnostics parsing with better deduplication and improved GitHub annotation handling.
- 🌐 Azure Enhancements: Streamlined Azure OpenAI model listing and improved Azure AI Search chunking logic for better performance.